diff --git a/.env.docker b/.env.docker index f097745..a6caffd 100644 --- a/.env.docker +++ b/.env.docker @@ -4,6 +4,14 @@ # Update NEXTAUTH_URL with your server IP or domain NEXTAUTH_URL="http://192.168.1.190:3000" +# ============================================ +# PostgreSQL Configuration +# ============================================ +POSTGRES_PORT=5432 +POSTGRES_DB=memento +POSTGRES_USER=memento +POSTGRES_PASSWORD=memento + # ============================================ # AI Provider Configuration # ============================================ diff --git a/.env.docker.example b/.env.docker.example index 98fcff7..c167275 100644 --- a/.env.docker.example +++ b/.env.docker.example @@ -11,6 +11,14 @@ NEXTAUTH_URL="http://YOUR_SERVER_IP:3000" +# ============================================ +# PostgreSQL Configuration +# ============================================ +POSTGRES_PORT=5432 +POSTGRES_DB=memento +POSTGRES_USER=memento +POSTGRES_PASSWORD=memento + # ============================================ # MCP Server Configuration # ============================================ diff --git a/.env.example b/.env.example index 7fc91ba..e9fc2be 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,8 @@ # ============================================ # Database Configuration # ============================================ -DATABASE_URL="file:/app/prisma/dev.db" +DATABASE_URL="postgresql://memento:memento@localhost:5432/memento" +POSTGRES_PORT=5432 # ============================================ # NextAuth Configuration diff --git a/README.md b/README.md index 01dc4b1..f20a331 100644 --- a/README.md +++ b/README.md @@ -1,432 +1,208 @@ -# Memento - Your Digital Notepad ☕ +# Memento - Smart Note-Taking App -A beautiful and functional note-taking app inspired by Google Keep, built with Next.js 16, TypeScript, Tailwind CSS 4, and Prisma. +A modern, AI-powered note-taking application inspired by Google Keep. Built with Next.js 16, PostgreSQL, Prisma, and Tailwind CSS 4. -## 🌟 Support Memento +![License](https://img.shields.io/badge/license-MIT-blue) +![Docker](https://img.shields.io/badge/docker-ready-blue) +![Node](https://img.shields.io/badge/node-22-green) -**Memento is 100% free and open-source!** If you find it useful, please consider supporting its development: +## Features -- **[☕ Buy me a coffee on Ko-fi](https://ko-fi.com/yourusername)** - One-time or monthly support -- **[💚 Sponsor on GitHub](https://github.com/sponsors/yourusername)** - Recurring support -- **[⭐ Star on GitHub](https://github.com/yourusername/memento)** - Free way to show support +### Core +- Create, edit, delete notes with text or checklists +- Pin, archive, and organize notes into notebooks +- Labels with contextual colors +- Real-time search across all notes +- 10 soft pastel color themes + dark mode +- Responsive masonry grid layout (1-5 columns) +- Image upload with original size preservation +- Drag-and-drop note reordering +- Markdown support -Your support helps: -- ☕ Keep the developer fueled with coffee -- 🐛 Cover hosting and server costs (~$50/month) -- ✨ Fund development of new features -- 📚 Improve documentation -- 🌍 Keep Memento 100% open-source +### AI-Powered +- Automatic title suggestions +- Semantic search across notes +- Paragraph refactoring +- Memory Echo: surfaces connections between your notes +- Multi-provider: OpenAI, Ollama, or auto-detect ---- +### MCP Server (22 Tools) +Full Model Context Protocol server for AI agent integration: +- **Notes**: create, read, update, delete, search, duplicate +- **Notebooks**: create, list, update, delete +- **Labels**: create, list, update, delete, assign to notes +- **System**: health check, stats, bulk operations +- Modes: stdio (Claude Desktop) or SSE (N8N, HTTP) -## 🚀 Project Location +### Authentication & Security +- NextAuth.js with credentials provider +- Email/password authentication +- Password reset via SMTP +- Role-based access (USER/ADMIN) -The complete application is in the `keep-notes/` directory. +## Quick Start (Local) -## ✅ Completed Features - -### Core Functionality -- ✅ Create, read, update, delete notes -- ✅ Text notes and checklist notes -- ✅ Pin/unpin notes -- ✅ Archive/unarchive notes -- ✅ Real-time search across all notes -- ✅ Color customization (10 soft pastel themes) -- ✅ Label management -- ✅ Responsive masonry grid layout -- ✅ Drag-and-drop note reordering -- ✅ **Image upload with original size preservation** - -### UI/UX Features -- ✅ Expandable note input (Google Keep style) -- ✅ Modal note editor with full editing (`!max-w-[min(95vw,1600px)]`) -- ✅ **Images display at original dimensions** (no cropping, `h-auto` without `w-full`) -- ✅ Hover effects and smooth animations -- ✅ **Masonry layout with CSS columns** (responsive: 1-5 columns) -- ✅ **Soft pastel color themes** (bg-red-50, bg-blue-50, etc.) -- ✅ Dark mode with system preference -- ✅ Mobile responsive design -- ✅ Icon-based navigation with 9 toolbar icons -- ✅ Toast notifications (via shadcn) - -### Integration Features -- ✅ **REST API** (4 endpoints: GET, POST, PUT, DELETE) - - `/api/notes` - List all notes - - `/api/notes` - Create new note - - `/api/notes/[id]` - Update note - - `/api/notes/[id]` - Delete note -- ✅ **MCP Server** (Model Context Protocol) with 9 tools: - - `getNotes` - Fetch all notes - - `createNote` - Create new note - - `updateNote` - Update existing note - - `deleteNote` - Delete note - - `searchNotes` - Search notes by query - - `getNoteById` - Get specific note - - `archiveNote` - Archive/unarchive note - - `pinNote` - Pin/unpin note - - `addLabel` - Add label to note - -### Technical Features -- ✅ Next.js 16 with App Router & Turbopack -- ✅ Server Actions for mutations -- ✅ TypeScript throughout -- ✅ Tailwind CSS 4 -- ✅ shadcn/ui components (11 components) -- ✅ Prisma ORM 5.22.0 with SQLite -- ✅ Type-safe database operations -- ✅ **Base64 image encoding** (FileReader.readAsDataURL) -- ✅ **@modelcontextprotocol/sdk** v1.0.4 - -## 🏃 Quick Start +**Prerequisites:** Node.js 22, PostgreSQL 16 ```bash -cd keep-notes +cd memento-note npm install -npx prisma generate -npx prisma migrate dev + +# Configure database +cp .env.example .env +# Edit .env with your PostgreSQL connection string + +# Setup database +npx prisma migrate dev --name init + +# Start development server npm run dev ``` -Then open http://localhost:3000 +Open http://localhost:3000 -## 📱 Application Features +## Docker Deployment -### 1. Note Creation -- Click the input field to expand -- Add title and content -- **Upload images** (displayed at original size) -- Switch to checklist mode with one click -- Add labels and choose from 10 soft pastel colors +### Using Docker Compose (root) -### 2. Note Management -- **Edit**: Click any note to open the editor (max-width: 95vw or 1600px) -- **Pin**: Click pin icon to keep notes at top -- **Archive**: Move notes to archive -- **Delete**: Remove notes permanently -- **Color**: Choose from 10 beautiful pastel colors -- **Labels**: Add multiple labels -- **Images**: Upload images that preserve original dimensions - -### 3. Checklist Notes -- Create todo lists -- Check/uncheck items -- Add/remove items dynamically -- Strike-through completed items - -### 4. Search & Navigation -- Real-time search in header -- Search by title or content -- Navigate to Archive page -- Dark/light mode toggle - -### 5. API Integration -Use the REST API to integrate with other services: ```bash -# Get all notes -curl http://localhost:3000/api/notes +# Configure environment +cp .env.docker.example .env.docker +# Edit .env.docker with your settings -# Create a note -curl -X POST http://localhost:3000/api/notes \ - -H "Content-Type: application/json" \ - -d '{"title":"API Note","content":"Created via API"}' +# Start all services (PostgreSQL + app + MCP server) +docker compose up -d -# Update a note -curl -X PUT http://localhost:3000/api/notes/1 \ - -H "Content-Type: application/json" \ - -d '{"title":"Updated","content":"Modified via API"}' - -# Delete a note -curl -X DELETE http://localhost:3000/api/notes/1 +# Check status +docker compose ps ``` -### 6. MCP Server for AI Agents -Start the MCP server for integration with Claude, N8N, or other MCP clients: +Services: +- **memento-note** - Web app on port 3000 +- **postgres** - PostgreSQL 16 on port 5432 (configurable via `POSTGRES_PORT`) +- **mcp-server** - MCP server on port 3001 (SSE mode) +- **ollama** - Optional local LLM (use profile `--profile ollama`) + +### Standalone (memento-note only) + ```bash -cd keep-notes -npm run mcp +cd memento-note +chmod +x deploy.sh +./deploy.sh build +./deploy.sh start ``` -The MCP server exposes 9 tools for AI agents to interact with your notes: -- Create, read, update, and delete notes -- Search notes by content -- Manage pins, archives, and labels -- Perfect for N8N workflows, Claude Desktop, or custom integrations +### Useful Commands -Example N8N workflow available in: `n8n-memento-workflow.json` - -## 🛠️ Tech Stack - -- **Frontend**: Next.js 16, React, TypeScript, Tailwind CSS 4 -- **UI Components**: shadcn/ui (11 components: Dialog, Tooltip, Badge, etc.) -- **Icons**: Lucide React (Bell, Image, UserPlus, Palette, Archive, etc.) -- **Backend**: Next.js Server Actions -- **Database**: Prisma ORM 5.22.0 + SQLite (upgradeable to PostgreSQL) -- **Styling**: Tailwind CSS 4 with soft pastel themes (bg-*-50) -- **Layout**: CSS columns for masonry grid (responsive 1-5 columns) -- **Images**: Base64 encoding, original size preservation -- **Integration**: REST API + MCP Server (@modelcontextprotocol/sdk v1.0.4) - -## 📂 Project Structure - -``` -keep-notes/ -├── app/ -│ ├── actions/notes.ts # Server actions (CRUD + images) -│ ├── api/notes/ # REST API endpoints -│ ├── archive/page.tsx # Archive page -│ ├── layout.tsx # Root layout -│ └── page.tsx # Home page -├── components/ -│ ├── ui/ # shadcn components -│ ├── header.tsx # Navigation -│ ├── note-card.tsx # Note display (masonry, images) -│ ├── note-editor.tsx # Note editing (!max-w-[95vw]) -│ ├── note-input.tsx # Note creation (image upload) -│ └── note-grid.tsx # Masonry layout -├── lib/ -│ ├── types.ts # TypeScript types (Note with images) -│ └── utils.ts # Utilities -├── prisma/ -│ ├── schema.prisma # Database schema (images String?) -│ └── dev.db # SQLite database -├── mcp/ -│ └── server.ts # MCP server (9 tools) -└── package.json # Scripts: dev, build, start, mcp -``` -│ ├── note-editor.tsx # Edit modal -│ ├── note-grid.tsx # Grid layout -│ └── note-input.tsx # Note creation -├── lib/ -│ ├── prisma.ts # DB client -│ ├── types.ts # TypeScript types -│ └── utils.ts # Utilities -└── prisma/ - ├── schema.prisma # Database schema - └── migrations/ # DB migrations +```bash +docker compose logs -f memento-note # View logs +docker compose exec memento-note sh # Shell access +./deploy.sh backup # PostgreSQL backup (pg_dump) +./deploy.sh update # Pull, rebuild, restart ``` -## 🎨 Color Themes +## MCP Server -The app includes 10 color themes: -- Default (White) -- Red -- Orange -- Yellow -- Green -- Teal -- Blue -- Purple -- Pink -- Gray +The MCP server enables AI agents to interact with your notes programmatically. -All themes support dark mode! +### Configuration -## 🔧 Configuration +Set in `.env.docker`: +``` +MCP_MODE=stdio # or "sse" for HTTP/N8N +MCP_PORT=3001 # SSE mode port +``` -### Database -Currently uses SQLite. To switch to PostgreSQL: +### N8N Integration -1. Edit `prisma/schema.prisma`: -```prisma -datasource db { - provider = "postgresql" +Configure an MCP tool node in N8N pointing to: +``` +http://mcp-server:3001/sse +``` + +### Claude Desktop + +Add to your `claude_desktop_config.json`: +```json +{ + "mcpServers": { + "memento": { + "command": "node", + "args": ["path/to/mcp-server/index.js"], + "env": { + "DATABASE_URL": "postgresql://memento:memento@localhost:5432/memento" + } + } + } } ``` -2. Update `prisma.config.ts` with PostgreSQL URL -3. Run: `npx prisma migrate dev` +## Tech Stack + +| Component | Technology | +|-----------|-----------| +| Frontend | Next.js 16, React 19, TypeScript | +| Styling | Tailwind CSS 4, shadcn/ui | +| Database | PostgreSQL 16, Prisma 5 | +| Auth | NextAuth.js v5 | +| AI | OpenAI SDK, Ollama | +| MCP | @modelcontextprotocol/sdk | +| Deploy | Docker, Docker Compose | + +## Project Structure + +``` +memento-note/ # Main Next.js application +├── app/ # App Router pages & API routes +├── components/ # React components +├── lib/ # Utilities, Prisma client, i18n +├── prisma/ # Database schema & migrations +├── public/ # Static assets, icons, uploads +└── scripts/ # Utility scripts + +mcp-server/ # MCP protocol server +├── index.js # Stdio mode entry +├── index-sse.js # SSE mode entry +├── prisma/ # Shared database schema +└── Dockerfile + +docker-compose.yml # Root orchestration +.env.docker.example # Environment template +``` + +## Configuration ### Environment Variables -Located in `.env`: -``` -DATABASE_URL="file:./dev.db" -``` -## 🚀 Deployment +| Variable | Description | Default | +|----------|-------------|---------| +| `DATABASE_URL` | PostgreSQL connection string | `postgresql://memento:memento@localhost:5432/memento` | +| `POSTGRES_PORT` | PostgreSQL host port | `5432` | +| `POSTGRES_PASSWORD` | PostgreSQL password | `memento` | +| `NEXTAUTH_SECRET` | Auth encryption key | (required) | +| `NEXTAUTH_URL` | Public URL | `http://localhost:3000` | +| `AI_PROVIDER` | AI provider (`openai`, `ollama`, `auto`) | `auto` | +| `OPENAI_API_KEY` | OpenAI API key | (optional) | +| `OLLAMA_BASE_URL` | Ollama endpoint | (optional) | +| `MCP_MODE` | MCP server mode (`stdio` or `sse`) | `stdio` | -### 🐳 Docker Deployment (Recommended for Proxmox) +## Contributing -Keep Notes includes complete Docker configuration for easy deployment on Proxmox or any Docker host. +Contributions welcome! Please: -#### Quick Start +- [Report bugs](https://github.com/yourusername/memento/issues) +- [Suggest features](https://github.com/yourusername/memento/discussions) +- Submit pull requests -```bash -cd keep-notes +## Support -# Create environment file -cat > .env << EOF -NEXTAUTH_URL=http://localhost:3000 -NEXTAUTH_SECRET=$(openssl rand -base64 32) -EOF +Memento is free and open-source. If you find it useful: -# Build and start -docker-compose build -docker-compose up -d +- [Ko-fi](https://ko-fi.com/yourusername) - One-time or monthly support +- [BuyMeACoffee](https://buymeacoffee.com/yourusername) - Buy me a coffee +- [GitHub Sponsors](https://github.com/sponsors/yourusername) - Recurring support +- Star the repo - Free and helps visibility! -# Access at http://localhost:3000 -``` +## License -#### Deployment Script - -We provide an automation script for common tasks: - -```bash -chmod +x deploy.sh - -# Build image -./deploy.sh build - -# Start containers -./deploy.sh start - -# View logs -./deploy.sh logs - -# Backup database -./deploy.sh backup - -# Update application -./deploy.sh update -``` - -#### Features - -- ✅ **Multi-stage Docker build** for optimized image size -- ✅ **Persistent volumes** for database and uploads -- ✅ **Health checks** for automatic restart -- ✅ **Resource limits** for stable performance -- ✅ **Ollama support** for local AI models (optional) -- ✅ **Nginx reverse proxy** configuration included -- ✅ **Automated backups** with cron scripts - -#### Architecture - -``` -keep-notes/ -├── Dockerfile # Multi-stage build -├── docker-compose.yml # Container orchestration -├── .dockerignore # Build optimization -├── deploy.sh # Deployment automation -└── DOCKER_DEPLOYMENT.md # Complete guide -``` - -#### Supported Platforms - -- **Proxmox VE** (LXC containers or VMs) -- **Docker hosts** (Linux, Windows, macOS) -- **Cloud providers** (AWS, GCP, Azure) -- **Kubernetes** (via Docker Compose) - -#### AI Features Setup - -**Option 1: OpenAI (Cloud)** -```yaml -# In .env or docker-compose.yml -OPENAI_API_KEY=sk-your-key-here -``` - -**Option 2: Ollama (Local AI)** -```bash -# Uncomment ollama service in docker-compose.yml -./deploy.sh start -./deploy.sh ollama-pull granite4 -``` - -#### Documentation - -See [DOCKER_DEPLOYMENT.md](keep-notes/DOCKER_DEPLOYMENT.md) for: -- Complete Proxmox deployment guide -- SSL/HTTPS configuration with Let's Encrypt -- Database backup and restore procedures -- Performance tuning and resource recommendations -- Troubleshooting common issues -- Security best practices - -### ☁️ Vercel (Alternative) - -For serverless deployment: - -```bash -cd keep-notes -npm run build -vercel deploy -``` - -### 📦 Traditional Deployment - -For traditional VPS or bare metal: - -```bash -cd keep-notes -npm install -npx prisma generate -npx prisma migrate deploy -npm run build -npm start -``` - -## 📝 Development Notes - -### Server Actions -All CRUD operations use Next.js Server Actions: -- `createNote()` - Create new note -- `updateNote()` - Update existing note -- `deleteNote()` - Delete note -- `getNotes()` - Fetch all notes -- `searchNotes()` - Search notes -- `togglePin()` - Pin/unpin -- `toggleArchive()` - Archive/unarchive - -### Type Safety -Full TypeScript coverage with interfaces: -- `Note` - Main note type -- `CheckItem` - Checklist item -- `NoteColor` - Color themes - -### Responsive Design -- Mobile: Single column -- Tablet: 2 columns -- Desktop: 3-4 columns -- Auto-adjusts with window size - -## 🎯 Future Enhancements - -Possible additions: -- [x] User authentication (NextAuth.js) ✅ Already implemented! -- [ ] Real-time collaboration -- [x] Image uploads ✅ Already implemented! -- [ ] Rich text editor -- [ ] Note sharing -- [x] Reminders ✅ Already implemented! -- [ ] Export to PDF/Markdown -- [ ] Voice notes -- [ ] Drawing support - -## 🤝 Contributing - -We welcome contributions! Please feel free to: - -- **Report bugs**: [Open an issue](https://github.com/yourusername/memento/issues) -- **Suggest features**: [Start a discussion](https://github.com/yourusername/memento/discussions) -- **Submit pull requests**: Fork and create a PR -- **Share feedback**: [Support page](/support) - -## ☕ Support Development - -Enjoying Memento? Consider supporting its development: - -- **[Donate on Ko-fi](https://ko-fi.com/yourusername)** - Buy me a coffee ☕ -- **[GitHub Sponsors](https://github.com/sponsors/yourusername)** - Monthly sponsorship 💚 -- **[Star the repo](https://github.com/yourusername/memento)** - It's free! ⭐ - -## 📄 License - -MIT License - feel free to use for personal or commercial projects! - ---- - -**Built with ❤️ and ☕ using Next.js 16, TypeScript, and Tailwind CSS 4** - -Server running at: http://localhost:3000 - -**⭐ If you like Memento, please consider giving it a star on GitHub!** +MIT License - feel free to use for personal or commercial projects. diff --git a/docker-compose.yml b/docker-compose.yml index ba1a63f..8885b03 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,34 @@ services: # ============================================ - # keep-notes - Next.js Web Application + # PostgreSQL - Database # ============================================ - keep-notes: + postgres: + image: postgres:16-alpine + container_name: memento-postgres + ports: + - "${POSTGRES_PORT:-5432}:5432" + environment: + - POSTGRES_DB=${POSTGRES_DB:-memento} + - POSTGRES_USER=${POSTGRES_USER:-memento} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-memento} + volumes: + - postgres-data:/var/lib/postgresql/data + restart: unless-stopped + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-memento}"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 10s + networks: + - memento-network + + # ============================================ + # memento-note - Next.js Web Application + # ============================================ + memento-note: build: - context: ./keep-notes + context: ./memento-note dockerfile: Dockerfile container_name: memento-web env_file: @@ -12,7 +36,7 @@ services: ports: - "3000:3000" environment: - - DATABASE_URL=file:/app/prisma/dev.db + - DATABASE_URL=postgresql://${POSTGRES_USER:-memento}:${POSTGRES_PASSWORD:-memento}@postgres:5432/${POSTGRES_DB:-memento} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-changethisinproduction} - NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000} - NODE_ENV=production @@ -34,8 +58,10 @@ services: - AI_MODEL_TAGS=${AI_MODEL_TAGS} - AI_MODEL_EMBEDDING=${AI_MODEL_EMBEDDING} volumes: - - db-data:/app/prisma - uploads-data:/app/public/uploads + depends_on: + postgres: + condition: service_healthy restart: unless-stopped healthcheck: test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"] @@ -71,14 +97,10 @@ services: # Mode: 'stdio' (default, for Claude Desktop) or 'sse' (for HTTP/N8N) - MCP_MODE=${MCP_MODE:-stdio} - PORT=${MCP_PORT:-3001} - # Database path - must match the volume mount - - DATABASE_URL=file:/app/db/dev.db + - DATABASE_URL=postgresql://${POSTGRES_USER:-memento}:${POSTGRES_PASSWORD:-memento}@postgres:5432/${POSTGRES_DB:-memento} - NODE_ENV=production - volumes: - # Shared database with keep-notes - - db-data:/app/db depends_on: - keep-notes: + postgres: condition: service_healthy restart: unless-stopped networks: @@ -119,7 +141,7 @@ services: # Volumes - Data Persistence # ============================================ volumes: - db-data: + postgres-data: driver: local uploads-data: driver: local diff --git a/keep-notes/prisma/client-generated/default.d.ts b/keep-notes/prisma/client-generated/default.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/keep-notes/prisma/client-generated/default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/default.js b/keep-notes/prisma/client-generated/default.js deleted file mode 100644 index fa52f0c..0000000 --- a/keep-notes/prisma/client-generated/default.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { ...require('.') } \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/edge.d.ts b/keep-notes/prisma/client-generated/edge.d.ts deleted file mode 100644 index 274b8fa..0000000 --- a/keep-notes/prisma/client-generated/edge.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./default" \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/edge.js b/keep-notes/prisma/client-generated/edge.js deleted file mode 100644 index 163ac79..0000000 --- a/keep-notes/prisma/client-generated/edge.js +++ /dev/null @@ -1,349 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - NotFoundError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime -} = require('./runtime/edge.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.NotFoundError = NotFoundError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - contentUpdatedAt: 'contentUpdatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - Notebook: 'Notebook', - Label: 'Label', - Note: 'Note', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "/Users/sepehr/dev/Keep/keep-notes/prisma/client-generated", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "debian-openssl-1.1.x" - }, - { - "fromEnvVar": null, - "value": "darwin-arm64", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/Users/sepehr/dev/Keep/keep-notes/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": null - }, - "relativePath": "..", - "clientVersion": "5.22.0", - "engineVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "datasourceNames": [ - "db" - ], - "activeProvider": "sqlite", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n accounts Account[]\n aiFeedback AiFeedback[]\n labels Label[]\n memoryEchoInsights MemoryEchoInsight[]\n notes Note[]\n sentShares NoteShare[] @relation(\"SentShares\")\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n notebooks Notebook[]\n sessions Session[]\n aiSettings UserAISettings?\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n labels Label[]\n notes Note[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] @relation(\"LabelToNote\")\n\n @@unique([notebookId, name])\n @@index([notebookId])\n @@index([userId])\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n contentUpdatedAt DateTime @default(now())\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n aiFeedback AiFeedback[]\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n notebook Notebook? @relation(fields: [notebookId], references: [id])\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[]\n labelRelations Label[] @relation(\"LabelToNote\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n showRecentNotes Boolean @default(false)\n emailNotifications Boolean @default(false)\n desktopNotifications Boolean @default(false)\n anonymousAnalytics Boolean @default(false)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", - "inlineSchemaHash": "381aecea84bd838d251133f5b824e84d9af9ce717bf24e0cf9d156a0096c79f3", - "copyEngine": true -} -config.dirname = '/' - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"contentUpdatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"showRecentNotes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"desktopNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"anonymousAnalytics\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined - -config.injectableEdgeEnv = () => ({ - parsed: { - DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined - } -}) - -if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { - Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) -} - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - diff --git a/keep-notes/prisma/client-generated/index-browser.js b/keep-notes/prisma/client-generated/index-browser.js deleted file mode 100644 index 2a25849..0000000 --- a/keep-notes/prisma/client-generated/index-browser.js +++ /dev/null @@ -1,337 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.NotFoundError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - contentUpdatedAt: 'contentUpdatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - Notebook: 'Notebook', - Label: 'Label', - Note: 'Note', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/keep-notes/prisma/client-generated/index.d.ts b/keep-notes/prisma/client-generated/index.d.ts deleted file mode 100644 index 1377d01..0000000 --- a/keep-notes/prisma/client-generated/index.d.ts +++ /dev/null @@ -1,23428 +0,0 @@ - -/** - * Client -**/ - -import * as runtime from './runtime/library.js'; -import $Types = runtime.Types // general types -import $Public = runtime.Types.Public -import $Utils = runtime.Types.Utils -import $Extensions = runtime.Types.Extensions -import $Result = runtime.Types.Result - -export type PrismaPromise = $Public.PrismaPromise - - -/** - * Model User - * - */ -export type User = $Result.DefaultSelection -/** - * Model Account - * - */ -export type Account = $Result.DefaultSelection -/** - * Model Session - * - */ -export type Session = $Result.DefaultSelection -/** - * Model VerificationToken - * - */ -export type VerificationToken = $Result.DefaultSelection -/** - * Model Notebook - * - */ -export type Notebook = $Result.DefaultSelection -/** - * Model Label - * - */ -export type Label = $Result.DefaultSelection -/** - * Model Note - * - */ -export type Note = $Result.DefaultSelection -/** - * Model NoteShare - * - */ -export type NoteShare = $Result.DefaultSelection -/** - * Model SystemConfig - * - */ -export type SystemConfig = $Result.DefaultSelection -/** - * Model AiFeedback - * - */ -export type AiFeedback = $Result.DefaultSelection -/** - * Model MemoryEchoInsight - * - */ -export type MemoryEchoInsight = $Result.DefaultSelection -/** - * Model UserAISettings - * - */ -export type UserAISettings = $Result.DefaultSelection - -/** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export class PrismaClient< - ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, - ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - /** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - - constructor(optionsArg ?: Prisma.Subset); - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void; - - /** - * Connect with the database - */ - $connect(): $Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): $Utils.JsPromise; - - /** - * Add a middleware - * @deprecated since 4.16.0. For new code, prefer client extensions instead. - * @see https://pris.ly/d/extensions - */ - $use(cb: Prisma.Middleware): void - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. - * @example - * ``` - * const [george, bob, alice] = await prisma.$transaction([ - * prisma.user.create({ data: { name: 'George' } }), - * prisma.user.create({ data: { name: 'Bob' } }), - * prisma.user.create({ data: { name: 'Alice' } }), - * ]) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). - */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise - - - $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs> - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.account`: Exposes CRUD operations for the **Account** model. - * Example usage: - * ```ts - * // Fetch zero or more Accounts - * const accounts = await prisma.account.findMany() - * ``` - */ - get account(): Prisma.AccountDelegate; - - /** - * `prisma.session`: Exposes CRUD operations for the **Session** model. - * Example usage: - * ```ts - * // Fetch zero or more Sessions - * const sessions = await prisma.session.findMany() - * ``` - */ - get session(): Prisma.SessionDelegate; - - /** - * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model. - * Example usage: - * ```ts - * // Fetch zero or more VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * ``` - */ - get verificationToken(): Prisma.VerificationTokenDelegate; - - /** - * `prisma.notebook`: Exposes CRUD operations for the **Notebook** model. - * Example usage: - * ```ts - * // Fetch zero or more Notebooks - * const notebooks = await prisma.notebook.findMany() - * ``` - */ - get notebook(): Prisma.NotebookDelegate; - - /** - * `prisma.label`: Exposes CRUD operations for the **Label** model. - * Example usage: - * ```ts - * // Fetch zero or more Labels - * const labels = await prisma.label.findMany() - * ``` - */ - get label(): Prisma.LabelDelegate; - - /** - * `prisma.note`: Exposes CRUD operations for the **Note** model. - * Example usage: - * ```ts - * // Fetch zero or more Notes - * const notes = await prisma.note.findMany() - * ``` - */ - get note(): Prisma.NoteDelegate; - - /** - * `prisma.noteShare`: Exposes CRUD operations for the **NoteShare** model. - * Example usage: - * ```ts - * // Fetch zero or more NoteShares - * const noteShares = await prisma.noteShare.findMany() - * ``` - */ - get noteShare(): Prisma.NoteShareDelegate; - - /** - * `prisma.systemConfig`: Exposes CRUD operations for the **SystemConfig** model. - * Example usage: - * ```ts - * // Fetch zero or more SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany() - * ``` - */ - get systemConfig(): Prisma.SystemConfigDelegate; - - /** - * `prisma.aiFeedback`: Exposes CRUD operations for the **AiFeedback** model. - * Example usage: - * ```ts - * // Fetch zero or more AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany() - * ``` - */ - get aiFeedback(): Prisma.AiFeedbackDelegate; - - /** - * `prisma.memoryEchoInsight`: Exposes CRUD operations for the **MemoryEchoInsight** model. - * Example usage: - * ```ts - * // Fetch zero or more MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany() - * ``` - */ - get memoryEchoInsight(): Prisma.MemoryEchoInsightDelegate; - - /** - * `prisma.userAISettings`: Exposes CRUD operations for the **UserAISettings** model. - * Example usage: - * ```ts - * // Fetch zero or more UserAISettings - * const userAISettings = await prisma.userAISettings.findMany() - * ``` - */ - get userAISettings(): Prisma.UserAISettingsDelegate; -} - -export namespace Prisma { - export import DMMF = runtime.DMMF - - export type PrismaPromise = $Public.PrismaPromise - - /** - * Validator - */ - export import validator = runtime.Public.validator - - /** - * Prisma Errors - */ - export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - export import PrismaClientInitializationError = runtime.PrismaClientInitializationError - export import PrismaClientValidationError = runtime.PrismaClientValidationError - export import NotFoundError = runtime.NotFoundError - - /** - * Re-export of sql-template-tag - */ - export import sql = runtime.sqltag - export import empty = runtime.empty - export import join = runtime.join - export import raw = runtime.raw - export import Sql = runtime.Sql - - - - /** - * Decimal.js - */ - export import Decimal = runtime.Decimal - - export type DecimalJsLike = runtime.DecimalJsLike - - /** - * Metrics - */ - export type Metrics = runtime.Metrics - export type Metric = runtime.Metric - export type MetricHistogram = runtime.MetricHistogram - export type MetricHistogramBucket = runtime.MetricHistogramBucket - - /** - * Extensions - */ - export import Extension = $Extensions.UserArgs - export import getExtensionContext = runtime.Extensions.getExtensionContext - export import Args = $Public.Args - export import Payload = $Public.Payload - export import Result = $Public.Result - export import Exact = $Public.Exact - - /** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ - export type PrismaVersion = { - client: string - } - - export const prismaVersion: PrismaVersion - - /** - * Utility Types - */ - - - export import JsonObject = runtime.JsonObject - export import JsonArray = runtime.JsonArray - export import JsonValue = runtime.JsonValue - export import InputJsonObject = runtime.InputJsonObject - export import InputJsonArray = runtime.InputJsonArray - export import InputJsonValue = runtime.InputJsonValue - - /** - * Types of the values used to represent different kinds of `null` values when working with JSON fields. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - namespace NullTypes { - /** - * Type of `Prisma.DbNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class DbNull { - private DbNull: never - private constructor() - } - - /** - * Type of `Prisma.JsonNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class JsonNull { - private JsonNull: never - private constructor() - } - - /** - * Type of `Prisma.AnyNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class AnyNull { - private AnyNull: never - private constructor() - } - } - - /** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const DbNull: NullTypes.DbNull - - /** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const JsonNull: NullTypes.JsonNull - - /** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const AnyNull: NullTypes.AnyNull - - type SelectAndInclude = { - select: any - include: any - } - - type SelectAndOmit = { - select: any - omit: any - } - - /** - * Get the type of the value, that the Promise holds. - */ - export type PromiseType> = T extends PromiseLike ? U : T; - - /** - * Get the return type of a function which returns a Promise. - */ - export type PromiseReturnType $Utils.JsPromise> = PromiseType> - - /** - * From T, pick a set of properties whose keys are in the union K - */ - type Prisma__Pick = { - [P in K]: T[P]; - }; - - - export type Enumerable = T | Array; - - export type RequiredKeys = { - [K in keyof T]-?: {} extends Prisma__Pick ? never : K - }[keyof T] - - export type TruthyKeys = keyof { - [K in keyof T as T[K] extends false | undefined | null ? never : K]: K - } - - export type TrueKeys = TruthyKeys>> - - /** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ - export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; - }; - - /** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ - export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never - } & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - - /** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ - export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never - } & - K - - type Without = { [P in Exclude]?: never }; - - /** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ - type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - - /** - * Is T a Record? - */ - type IsObject = T extends Array - ? False - : T extends Date - ? False - : T extends Uint8Array - ? False - : T extends BigInt - ? False - : T extends object - ? True - : False - - - /** - * If it's T[], return T - */ - export type UnEnumerate = T extends Array ? U : T - - /** - * From ts-toolbelt - */ - - type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - - type EitherStrict = Strict<__Either> - - type EitherLoose = ComputeRaw<__Either> - - type _Either< - O extends object, - K extends Key, - strict extends Boolean - > = { - 1: EitherStrict - 0: EitherLoose - }[strict] - - type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 - > = O extends unknown ? _Either : never - - export type Union = any - - type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] - } & {} - - /** Helper Types for "Merge" **/ - export type IntersectOf = ( - U extends unknown ? (k: U) => void : never - ) extends (k: infer I) => void - ? I - : never - - export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; - } & {}; - - type _Merge = IntersectOf; - }>>; - - type Key = string | number | symbol; - type AtBasic = K extends keyof O ? O[K] : never; - type AtStrict = O[K & keyof O]; - type AtLoose = O extends unknown ? AtStrict : never; - export type At = { - 1: AtStrict; - 0: AtLoose; - }[strict]; - - export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; - } & {}; - - export type OptionalFlat = { - [K in keyof O]?: O[K]; - } & {}; - - type _Record = { - [P in K]: T; - }; - - // cause typescript not to expand types and preserve names - type NoExpand = T extends unknown ? T : never; - - // this type assumes the passed object is entirely optional - type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O - : never>; - - type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - - export type Strict = ComputeRaw<_Strict>; - /** End Helper Types for "Merge" **/ - - export type Merge = ComputeRaw<_Merge>>; - - /** - A [[Boolean]] - */ - export type Boolean = True | False - - // /** - // 1 - // */ - export type True = 1 - - /** - 0 - */ - export type False = 0 - - export type Not = { - 0: 1 - 1: 0 - }[B] - - export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - - export type Has = Not< - Extends, U1> - > - - export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } - }[B1][B2] - - export type Keys = U extends unknown ? keyof U : never - - type Cast = A extends B ? A : B; - - export const type: unique symbol; - - - - /** - * Used by group by - */ - - export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never - } : never - - type FieldPaths< - T, - U = Omit - > = IsObject extends True ? U : T - - type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K - }[keyof T] - - /** - * Convert tuple to union - */ - type _TupleToUnion = T extends (infer E)[] ? E : never - type TupleToUnion = _TupleToUnion - type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - - /** - * Like `Pick`, but additionally can also accept an array of keys - */ - type PickEnumerable | keyof T> = Prisma__Pick> - - /** - * Exclude all keys with underscores - */ - type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - - export type FieldRef = runtime.FieldRef - - type FieldRefInputType = Model extends never ? never : FieldRef - - - export const ModelName: { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - Notebook: 'Notebook', - Label: 'Label', - Note: 'Note', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' - }; - - export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - export type Datasources = { - db?: Datasource - } - - interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { - returns: Prisma.TypeMap - } - - export type TypeMap = { - meta: { - modelProps: "user" | "account" | "session" | "verificationToken" | "notebook" | "label" | "note" | "noteShare" | "systemConfig" | "aiFeedback" | "memoryEchoInsight" | "userAISettings" - txIsolationLevel: Prisma.TransactionIsolationLevel - } - model: { - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.UserUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: $Utils.Optional | number - } - } - } - Account: { - payload: Prisma.$AccountPayload - fields: Prisma.AccountFieldRefs - operations: { - findUnique: { - args: Prisma.AccountFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AccountFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.AccountFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AccountFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.AccountFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.AccountCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.AccountCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AccountCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.AccountDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.AccountUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AccountDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AccountUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.AccountUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.AccountAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.AccountGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.AccountCountArgs - result: $Utils.Optional | number - } - } - } - Session: { - payload: Prisma.$SessionPayload - fields: Prisma.SessionFieldRefs - operations: { - findUnique: { - args: Prisma.SessionFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SessionFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SessionFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SessionFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SessionFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SessionCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SessionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SessionCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SessionDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SessionUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SessionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SessionUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.SessionUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SessionAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SessionGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SessionCountArgs - result: $Utils.Optional | number - } - } - } - VerificationToken: { - payload: Prisma.$VerificationTokenPayload - fields: Prisma.VerificationTokenFieldRefs - operations: { - findUnique: { - args: Prisma.VerificationTokenFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.VerificationTokenFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.VerificationTokenFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.VerificationTokenFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.VerificationTokenFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.VerificationTokenCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.VerificationTokenCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.VerificationTokenCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.VerificationTokenDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.VerificationTokenUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.VerificationTokenDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.VerificationTokenUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.VerificationTokenUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.VerificationTokenAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.VerificationTokenGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.VerificationTokenCountArgs - result: $Utils.Optional | number - } - } - } - Notebook: { - payload: Prisma.$NotebookPayload - fields: Prisma.NotebookFieldRefs - operations: { - findUnique: { - args: Prisma.NotebookFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NotebookFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NotebookFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NotebookFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NotebookFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NotebookCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NotebookCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NotebookCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NotebookDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NotebookUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NotebookDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NotebookUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NotebookUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NotebookAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NotebookGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NotebookCountArgs - result: $Utils.Optional | number - } - } - } - Label: { - payload: Prisma.$LabelPayload - fields: Prisma.LabelFieldRefs - operations: { - findUnique: { - args: Prisma.LabelFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.LabelFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.LabelFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.LabelFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.LabelFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.LabelCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.LabelCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.LabelCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.LabelDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.LabelUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.LabelDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.LabelUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.LabelUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.LabelAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.LabelGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.LabelCountArgs - result: $Utils.Optional | number - } - } - } - Note: { - payload: Prisma.$NotePayload - fields: Prisma.NoteFieldRefs - operations: { - findUnique: { - args: Prisma.NoteFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NoteFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NoteFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NoteFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NoteFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NoteCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NoteCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NoteCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NoteDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NoteUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NoteDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NoteUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NoteUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NoteAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NoteGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NoteCountArgs - result: $Utils.Optional | number - } - } - } - NoteShare: { - payload: Prisma.$NoteSharePayload - fields: Prisma.NoteShareFieldRefs - operations: { - findUnique: { - args: Prisma.NoteShareFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NoteShareFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NoteShareFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NoteShareFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NoteShareFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NoteShareCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NoteShareCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NoteShareCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NoteShareDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NoteShareUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NoteShareDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NoteShareUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NoteShareUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NoteShareAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NoteShareGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NoteShareCountArgs - result: $Utils.Optional | number - } - } - } - SystemConfig: { - payload: Prisma.$SystemConfigPayload - fields: Prisma.SystemConfigFieldRefs - operations: { - findUnique: { - args: Prisma.SystemConfigFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SystemConfigFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SystemConfigFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SystemConfigFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SystemConfigFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SystemConfigCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SystemConfigCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SystemConfigCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SystemConfigDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SystemConfigUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SystemConfigDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SystemConfigUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.SystemConfigUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SystemConfigAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SystemConfigGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SystemConfigCountArgs - result: $Utils.Optional | number - } - } - } - AiFeedback: { - payload: Prisma.$AiFeedbackPayload - fields: Prisma.AiFeedbackFieldRefs - operations: { - findUnique: { - args: Prisma.AiFeedbackFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AiFeedbackFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.AiFeedbackFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AiFeedbackFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.AiFeedbackFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.AiFeedbackCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.AiFeedbackCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AiFeedbackCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.AiFeedbackDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.AiFeedbackUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AiFeedbackDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AiFeedbackUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.AiFeedbackUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.AiFeedbackAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.AiFeedbackGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.AiFeedbackCountArgs - result: $Utils.Optional | number - } - } - } - MemoryEchoInsight: { - payload: Prisma.$MemoryEchoInsightPayload - fields: Prisma.MemoryEchoInsightFieldRefs - operations: { - findUnique: { - args: Prisma.MemoryEchoInsightFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.MemoryEchoInsightFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.MemoryEchoInsightFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.MemoryEchoInsightFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.MemoryEchoInsightFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.MemoryEchoInsightCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.MemoryEchoInsightCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.MemoryEchoInsightCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.MemoryEchoInsightDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.MemoryEchoInsightUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.MemoryEchoInsightDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.MemoryEchoInsightUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.MemoryEchoInsightUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.MemoryEchoInsightAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.MemoryEchoInsightGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.MemoryEchoInsightCountArgs - result: $Utils.Optional | number - } - } - } - UserAISettings: { - payload: Prisma.$UserAISettingsPayload - fields: Prisma.UserAISettingsFieldRefs - operations: { - findUnique: { - args: Prisma.UserAISettingsFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserAISettingsFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserAISettingsFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserAISettingsFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.UserAISettingsFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.UserAISettingsCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.UserAISettingsCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserAISettingsCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserAISettingsDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.UserAISettingsUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserAISettingsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserAISettingsUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.UserAISettingsUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAISettingsAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.UserAISettingsGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.UserAISettingsCountArgs - result: $Utils.Optional | number - } - } - } - } - } & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } - } - export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> - export type DefaultPrismaClient = PrismaClient - export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' - export interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Defaults to stdout - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * ] - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: Prisma.TransactionIsolationLevel - } - } - - - /* Types for Logging */ - export type LogLevel = 'info' | 'query' | 'warn' | 'error' - export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' - } - - export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never - export type GetEvents = T extends Array ? - GetLogType | GetLogType | GetLogType | GetLogType - : never - - export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string - } - - export type LogEvent = { - timestamp: Date - message: string - target: string - } - /* End Types for Logging */ - - - export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - - /** - * These options are being passed into the middleware as "params" - */ - export type MiddlewareParams = { - model?: ModelName - action: PrismaAction - args: any - dataPath: string[] - runInTransaction: boolean - } - - /** - * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation - */ - export type Middleware = ( - params: MiddlewareParams, - next: (params: MiddlewareParams) => $Utils.JsPromise, - ) => $Utils.JsPromise - - // tested in getLogLevel.test.ts - export function getLogLevel(log: Array): LogLevel | undefined; - - /** - * `PrismaClient` proxy available in interactive transactions. - */ - export type TransactionClient = Omit - - export type Datasource = { - url?: string - } - - /** - * Count Types - */ - - - /** - * Count Type UserCountOutputType - */ - - export type UserCountOutputType = { - accounts: number - aiFeedback: number - labels: number - memoryEchoInsights: number - notes: number - sentShares: number - receivedShares: number - notebooks: number - sessions: number - } - - export type UserCountOutputTypeSelect = { - accounts?: boolean | UserCountOutputTypeCountAccountsArgs - aiFeedback?: boolean | UserCountOutputTypeCountAiFeedbackArgs - labels?: boolean | UserCountOutputTypeCountLabelsArgs - memoryEchoInsights?: boolean | UserCountOutputTypeCountMemoryEchoInsightsArgs - notes?: boolean | UserCountOutputTypeCountNotesArgs - sentShares?: boolean | UserCountOutputTypeCountSentSharesArgs - receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs - notebooks?: boolean | UserCountOutputTypeCountNotebooksArgs - sessions?: boolean | UserCountOutputTypeCountSessionsArgs - } - - // Custom InputTypes - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: UserCountOutputTypeSelect | null - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountAccountsArgs = { - where?: AccountWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountAiFeedbackArgs = { - where?: AiFeedbackWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountLabelsArgs = { - where?: LabelWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountMemoryEchoInsightsArgs = { - where?: MemoryEchoInsightWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountNotesArgs = { - where?: NoteWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountSentSharesArgs = { - where?: NoteShareWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountReceivedSharesArgs = { - where?: NoteShareWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountNotebooksArgs = { - where?: NotebookWhereInput - } - - /** - * UserCountOutputType without action - */ - export type UserCountOutputTypeCountSessionsArgs = { - where?: SessionWhereInput - } - - - /** - * Count Type NotebookCountOutputType - */ - - export type NotebookCountOutputType = { - labels: number - notes: number - } - - export type NotebookCountOutputTypeSelect = { - labels?: boolean | NotebookCountOutputTypeCountLabelsArgs - notes?: boolean | NotebookCountOutputTypeCountNotesArgs - } - - // Custom InputTypes - /** - * NotebookCountOutputType without action - */ - export type NotebookCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the NotebookCountOutputType - */ - select?: NotebookCountOutputTypeSelect | null - } - - /** - * NotebookCountOutputType without action - */ - export type NotebookCountOutputTypeCountLabelsArgs = { - where?: LabelWhereInput - } - - /** - * NotebookCountOutputType without action - */ - export type NotebookCountOutputTypeCountNotesArgs = { - where?: NoteWhereInput - } - - - /** - * Count Type LabelCountOutputType - */ - - export type LabelCountOutputType = { - notes: number - } - - export type LabelCountOutputTypeSelect = { - notes?: boolean | LabelCountOutputTypeCountNotesArgs - } - - // Custom InputTypes - /** - * LabelCountOutputType without action - */ - export type LabelCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the LabelCountOutputType - */ - select?: LabelCountOutputTypeSelect | null - } - - /** - * LabelCountOutputType without action - */ - export type LabelCountOutputTypeCountNotesArgs = { - where?: NoteWhereInput - } - - - /** - * Count Type NoteCountOutputType - */ - - export type NoteCountOutputType = { - aiFeedback: number - memoryEchoAsNote2: number - memoryEchoAsNote1: number - shares: number - labelRelations: number - } - - export type NoteCountOutputTypeSelect = { - aiFeedback?: boolean | NoteCountOutputTypeCountAiFeedbackArgs - memoryEchoAsNote2?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote2Args - memoryEchoAsNote1?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote1Args - shares?: boolean | NoteCountOutputTypeCountSharesArgs - labelRelations?: boolean | NoteCountOutputTypeCountLabelRelationsArgs - } - - // Custom InputTypes - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the NoteCountOutputType - */ - select?: NoteCountOutputTypeSelect | null - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountAiFeedbackArgs = { - where?: AiFeedbackWhereInput - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountMemoryEchoAsNote2Args = { - where?: MemoryEchoInsightWhereInput - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountMemoryEchoAsNote1Args = { - where?: MemoryEchoInsightWhereInput - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountSharesArgs = { - where?: NoteShareWhereInput - } - - /** - * NoteCountOutputType without action - */ - export type NoteCountOutputTypeCountLabelRelationsArgs = { - where?: LabelWhereInput - } - - - /** - * Models - */ - - /** - * Model User - */ - - export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - export type UserMinAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - password: string | null - role: string | null - image: string | null - theme: string | null - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type UserMaxAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - password: string | null - role: string | null - image: string | null - theme: string | null - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type UserCountAggregateOutputType = { - id: number - name: number - email: number - emailVerified: number - password: number - role: number - image: number - theme: number - resetToken: number - resetTokenExpiry: number - createdAt: number - updatedAt: number - _all: number - } - - - export type UserMinAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - } - - export type UserMaxAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - } - - export type UserCountAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType - } - - export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type UserGroupByArgs = { - where?: UserWhereInput - orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] - by: UserScalarFieldEnum[] | UserScalarFieldEnum - having?: UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType - } - - export type UserGroupByOutputType = { - id: string - name: string | null - email: string - emailVerified: Date | null - password: string | null - role: string - image: string | null - theme: string - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date - updatedAt: Date - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type UserSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - accounts?: boolean | User$accountsArgs - aiFeedback?: boolean | User$aiFeedbackArgs - labels?: boolean | User$labelsArgs - memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs - notes?: boolean | User$notesArgs - sentShares?: boolean | User$sentSharesArgs - receivedShares?: boolean | User$receivedSharesArgs - notebooks?: boolean | User$notebooksArgs - sessions?: boolean | User$sessionsArgs - aiSettings?: boolean | User$aiSettingsArgs - _count?: boolean | UserCountOutputTypeDefaultArgs - }, ExtArgs["result"]["user"]> - - export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["user"]> - - export type UserSelectScalar = { - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type UserInclude = { - accounts?: boolean | User$accountsArgs - aiFeedback?: boolean | User$aiFeedbackArgs - labels?: boolean | User$labelsArgs - memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs - notes?: boolean | User$notesArgs - sentShares?: boolean | User$sentSharesArgs - receivedShares?: boolean | User$receivedSharesArgs - notebooks?: boolean | User$notebooksArgs - sessions?: boolean | User$sessionsArgs - aiSettings?: boolean | User$aiSettingsArgs - _count?: boolean | UserCountOutputTypeDefaultArgs - } - export type UserIncludeCreateManyAndReturn = {} - - export type $UserPayload = { - name: "User" - objects: { - accounts: Prisma.$AccountPayload[] - aiFeedback: Prisma.$AiFeedbackPayload[] - labels: Prisma.$LabelPayload[] - memoryEchoInsights: Prisma.$MemoryEchoInsightPayload[] - notes: Prisma.$NotePayload[] - sentShares: Prisma.$NoteSharePayload[] - receivedShares: Prisma.$NoteSharePayload[] - notebooks: Prisma.$NotebookPayload[] - sessions: Prisma.$SessionPayload[] - aiSettings: Prisma.$UserAISettingsPayload | null - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string | null - email: string - emailVerified: Date | null - password: string | null - role: string - image: string | null - theme: string - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["user"]> - composites: {} - } - - type UserGetPayload = $Result.GetResult - - type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - - export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the User model - */ - readonly fields: UserFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - accounts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - aiFeedback = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - labels = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - memoryEchoInsights = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - sentShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - receivedShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notebooks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - aiSettings = {}>(args?: Subset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the User model - */ - interface UserFieldRefs { - readonly id: FieldRef<"User", 'String'> - readonly name: FieldRef<"User", 'String'> - readonly email: FieldRef<"User", 'String'> - readonly emailVerified: FieldRef<"User", 'DateTime'> - readonly password: FieldRef<"User", 'String'> - readonly role: FieldRef<"User", 'String'> - readonly image: FieldRef<"User", 'String'> - readonly theme: FieldRef<"User", 'String'> - readonly resetToken: FieldRef<"User", 'String'> - readonly resetTokenExpiry: FieldRef<"User", 'DateTime'> - readonly createdAt: FieldRef<"User", 'DateTime'> - readonly updatedAt: FieldRef<"User", 'DateTime'> - } - - - // Custom InputTypes - /** - * User findUnique - */ - export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findUniqueOrThrow - */ - export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findFirst - */ - export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findFirstOrThrow - */ - export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findMany - */ - export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter, which Users to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User create - */ - export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The data needed to create a User. - */ - data: XOR - } - - /** - * User createMany - */ - export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - } - - /** - * User createManyAndReturn - */ - export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelectCreateManyAndReturn | null - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - } - - /** - * User update - */ - export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The data needed to update a User. - */ - data: XOR - /** - * Choose, which User to update. - */ - where: UserWhereUniqueInput - } - - /** - * User updateMany - */ - export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: XOR - /** - * Filter which Users to update - */ - where?: UserWhereInput - } - - /** - * User upsert - */ - export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * The filter to search for the User to update in case it exists. - */ - where: UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * User delete - */ - export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - /** - * Filter which User to delete. - */ - where: UserWhereUniqueInput - } - - /** - * User deleteMany - */ - export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: UserWhereInput - } - - /** - * User.accounts - */ - export type User$accountsArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - where?: AccountWhereInput - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - cursor?: AccountWhereUniqueInput - take?: number - skip?: number - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * User.aiFeedback - */ - export type User$aiFeedbackArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - cursor?: AiFeedbackWhereUniqueInput - take?: number - skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * User.labels - */ - export type User$labelsArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - where?: LabelWhereInput - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - cursor?: LabelWhereUniqueInput - take?: number - skip?: number - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * User.memoryEchoInsights - */ - export type User$memoryEchoInsightsArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * User.notes - */ - export type User$notesArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - where?: NoteWhereInput - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - cursor?: NoteWhereUniqueInput - take?: number - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * User.sentShares - */ - export type User$sentSharesArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - cursor?: NoteShareWhereUniqueInput - take?: number - skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * User.receivedShares - */ - export type User$receivedSharesArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - cursor?: NoteShareWhereUniqueInput - take?: number - skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * User.notebooks - */ - export type User$notebooksArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - where?: NotebookWhereInput - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - cursor?: NotebookWhereUniqueInput - take?: number - skip?: number - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * User.sessions - */ - export type User$sessionsArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - where?: SessionWhereInput - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - cursor?: SessionWhereUniqueInput - take?: number - skip?: number - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * User.aiSettings - */ - export type User$aiSettingsArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - where?: UserAISettingsWhereInput - } - - /** - * User without action - */ - export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - } - - - /** - * Model Account - */ - - export type AggregateAccount = { - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null - } - - export type AccountAvgAggregateOutputType = { - expires_at: number | null - } - - export type AccountSumAggregateOutputType = { - expires_at: number | null - } - - export type AccountMinAggregateOutputType = { - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AccountMaxAggregateOutputType = { - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AccountCountAggregateOutputType = { - userId: number - type: number - provider: number - providerAccountId: number - refresh_token: number - access_token: number - expires_at: number - token_type: number - scope: number - id_token: number - session_state: number - createdAt: number - updatedAt: number - _all: number - } - - - export type AccountAvgAggregateInputType = { - expires_at?: true - } - - export type AccountSumAggregateInputType = { - expires_at?: true - } - - export type AccountMinAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - } - - export type AccountMaxAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - } - - export type AccountCountAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type AccountAggregateArgs = { - /** - * Filter which Account to aggregate. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Accounts - **/ - _count?: true | AccountCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: AccountAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: AccountSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AccountMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AccountMaxAggregateInputType - } - - export type GetAccountAggregateType = { - [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type AccountGroupByArgs = { - where?: AccountWhereInput - orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[] - by: AccountScalarFieldEnum[] | AccountScalarFieldEnum - having?: AccountScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AccountCountAggregateInputType | true - _avg?: AccountAvgAggregateInputType - _sum?: AccountSumAggregateInputType - _min?: AccountMinAggregateInputType - _max?: AccountMaxAggregateInputType - } - - export type AccountGroupByOutputType = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date - updatedAt: Date - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null - } - - type GetAccountGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type AccountSelect = $Extensions.GetSelect<{ - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["account"]> - - export type AccountSelectCreateManyAndReturn = $Extensions.GetSelect<{ - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["account"]> - - export type AccountSelectScalar = { - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type AccountInclude = { - user?: boolean | UserDefaultArgs - } - export type AccountIncludeCreateManyAndReturn = { - user?: boolean | UserDefaultArgs - } - - export type $AccountPayload = { - name: "Account" - objects: { - user: Prisma.$UserPayload - } - scalars: $Extensions.GetPayloadResult<{ - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["account"]> - composites: {} - } - - type AccountGetPayload = $Result.GetResult - - type AccountCountArgs = - Omit & { - select?: AccountCountAggregateInputType | true - } - - export interface AccountDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } - /** - * Find zero or one Account that matches the filter. - * @param {AccountFindUniqueArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Account that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Account that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Account that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Accounts that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Accounts - * const accounts = await prisma.account.findMany() - * - * // Get first 10 Accounts - * const accounts = await prisma.account.findMany({ take: 10 }) - * - * // Only select the `userId` - * const accountWithUserIdOnly = await prisma.account.findMany({ select: { userId: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Account. - * @param {AccountCreateArgs} args - Arguments to create a Account. - * @example - * // Create one Account - * const Account = await prisma.account.create({ - * data: { - * // ... data to create a Account - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Accounts. - * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Accounts and returns the data saved in the database. - * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Accounts and only return the `userId` - * const accountWithUserIdOnly = await prisma.account.createManyAndReturn({ - * select: { userId: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Account. - * @param {AccountDeleteArgs} args - Arguments to delete one Account. - * @example - * // Delete one Account - * const Account = await prisma.account.delete({ - * where: { - * // ... filter to delete one Account - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Account. - * @param {AccountUpdateArgs} args - Arguments to update one Account. - * @example - * // Update one Account - * const account = await prisma.account.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Accounts. - * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. - * @example - * // Delete a few Accounts - * const { count } = await prisma.account.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Accounts - * const account = await prisma.account.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Account. - * @param {AccountUpsertArgs} args - Arguments to update or create a Account. - * @example - * // Update or create a Account - * const account = await prisma.account.upsert({ - * create: { - * // ... data to create a Account - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Account we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountCountArgs} args - Arguments to filter Accounts to count. - * @example - * // Count the number of Accounts - * const count = await prisma.account.count({ - * where: { - * // ... the filter for the Accounts we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AccountGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: AccountGroupByArgs['orderBy'] } - : { orderBy?: AccountGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Account model - */ - readonly fields: AccountFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Account. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__AccountClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Account model - */ - interface AccountFieldRefs { - readonly userId: FieldRef<"Account", 'String'> - readonly type: FieldRef<"Account", 'String'> - readonly provider: FieldRef<"Account", 'String'> - readonly providerAccountId: FieldRef<"Account", 'String'> - readonly refresh_token: FieldRef<"Account", 'String'> - readonly access_token: FieldRef<"Account", 'String'> - readonly expires_at: FieldRef<"Account", 'Int'> - readonly token_type: FieldRef<"Account", 'String'> - readonly scope: FieldRef<"Account", 'String'> - readonly id_token: FieldRef<"Account", 'String'> - readonly session_state: FieldRef<"Account", 'String'> - readonly createdAt: FieldRef<"Account", 'DateTime'> - readonly updatedAt: FieldRef<"Account", 'DateTime'> - } - - - // Custom InputTypes - /** - * Account findUnique - */ - export type AccountFindUniqueArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: AccountWhereUniqueInput - } - - /** - * Account findUniqueOrThrow - */ - export type AccountFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: AccountWhereUniqueInput - } - - /** - * Account findFirst - */ - export type AccountFindFirstArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account findFirstOrThrow - */ - export type AccountFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account findMany - */ - export type AccountFindManyArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter, which Accounts to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account create - */ - export type AccountCreateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * The data needed to create a Account. - */ - data: XOR - } - - /** - * Account createMany - */ - export type AccountCreateManyArgs = { - /** - * The data used to create many Accounts. - */ - data: AccountCreateManyInput | AccountCreateManyInput[] - } - - /** - * Account createManyAndReturn - */ - export type AccountCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelectCreateManyAndReturn | null - /** - * The data used to create many Accounts. - */ - data: AccountCreateManyInput | AccountCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountIncludeCreateManyAndReturn | null - } - - /** - * Account update - */ - export type AccountUpdateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * The data needed to update a Account. - */ - data: XOR - /** - * Choose, which Account to update. - */ - where: AccountWhereUniqueInput - } - - /** - * Account updateMany - */ - export type AccountUpdateManyArgs = { - /** - * The data used to update Accounts. - */ - data: XOR - /** - * Filter which Accounts to update - */ - where?: AccountWhereInput - } - - /** - * Account upsert - */ - export type AccountUpsertArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * The filter to search for the Account to update in case it exists. - */ - where: AccountWhereUniqueInput - /** - * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. - */ - create: XOR - /** - * In case the Account was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Account delete - */ - export type AccountDeleteArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - /** - * Filter which Account to delete. - */ - where: AccountWhereUniqueInput - } - - /** - * Account deleteMany - */ - export type AccountDeleteManyArgs = { - /** - * Filter which Accounts to delete - */ - where?: AccountWhereInput - } - - /** - * Account without action - */ - export type AccountDefaultArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AccountInclude | null - } - - - /** - * Model Session - */ - - export type AggregateSession = { - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null - } - - export type SessionMinAggregateOutputType = { - sessionToken: string | null - userId: string | null - expires: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SessionMaxAggregateOutputType = { - sessionToken: string | null - userId: string | null - expires: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SessionCountAggregateOutputType = { - sessionToken: number - userId: number - expires: number - createdAt: number - updatedAt: number - _all: number - } - - - export type SessionMinAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - } - - export type SessionMaxAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - } - - export type SessionCountAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type SessionAggregateArgs = { - /** - * Filter which Session to aggregate. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Sessions - **/ - _count?: true | SessionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SessionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SessionMaxAggregateInputType - } - - export type GetSessionAggregateType = { - [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SessionGroupByArgs = { - where?: SessionWhereInput - orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[] - by: SessionScalarFieldEnum[] | SessionScalarFieldEnum - having?: SessionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SessionCountAggregateInputType | true - _min?: SessionMinAggregateInputType - _max?: SessionMaxAggregateInputType - } - - export type SessionGroupByOutputType = { - sessionToken: string - userId: string - expires: Date - createdAt: Date - updatedAt: Date - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null - } - - type GetSessionGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SessionSelect = $Extensions.GetSelect<{ - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["session"]> - - export type SessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["session"]> - - export type SessionSelectScalar = { - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type SessionInclude = { - user?: boolean | UserDefaultArgs - } - export type SessionIncludeCreateManyAndReturn = { - user?: boolean | UserDefaultArgs - } - - export type $SessionPayload = { - name: "Session" - objects: { - user: Prisma.$UserPayload - } - scalars: $Extensions.GetPayloadResult<{ - sessionToken: string - userId: string - expires: Date - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["session"]> - composites: {} - } - - type SessionGetPayload = $Result.GetResult - - type SessionCountArgs = - Omit & { - select?: SessionCountAggregateInputType | true - } - - export interface SessionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } - /** - * Find zero or one Session that matches the filter. - * @param {SessionFindUniqueArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Session that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Session that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Session that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Sessions that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Sessions - * const sessions = await prisma.session.findMany() - * - * // Get first 10 Sessions - * const sessions = await prisma.session.findMany({ take: 10 }) - * - * // Only select the `sessionToken` - * const sessionWithSessionTokenOnly = await prisma.session.findMany({ select: { sessionToken: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Session. - * @param {SessionCreateArgs} args - Arguments to create a Session. - * @example - * // Create one Session - * const Session = await prisma.session.create({ - * data: { - * // ... data to create a Session - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Sessions. - * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Sessions and returns the data saved in the database. - * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Sessions and only return the `sessionToken` - * const sessionWithSessionTokenOnly = await prisma.session.createManyAndReturn({ - * select: { sessionToken: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Session. - * @param {SessionDeleteArgs} args - Arguments to delete one Session. - * @example - * // Delete one Session - * const Session = await prisma.session.delete({ - * where: { - * // ... filter to delete one Session - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Session. - * @param {SessionUpdateArgs} args - Arguments to update one Session. - * @example - * // Update one Session - * const session = await prisma.session.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Sessions. - * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. - * @example - * // Delete a few Sessions - * const { count } = await prisma.session.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Sessions - * const session = await prisma.session.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Session. - * @param {SessionUpsertArgs} args - Arguments to update or create a Session. - * @example - * // Update or create a Session - * const session = await prisma.session.upsert({ - * create: { - * // ... data to create a Session - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Session we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionCountArgs} args - Arguments to filter Sessions to count. - * @example - * // Count the number of Sessions - * const count = await prisma.session.count({ - * where: { - * // ... the filter for the Sessions we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SessionGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SessionGroupByArgs['orderBy'] } - : { orderBy?: SessionGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Session model - */ - readonly fields: SessionFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Session. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__SessionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Session model - */ - interface SessionFieldRefs { - readonly sessionToken: FieldRef<"Session", 'String'> - readonly userId: FieldRef<"Session", 'String'> - readonly expires: FieldRef<"Session", 'DateTime'> - readonly createdAt: FieldRef<"Session", 'DateTime'> - readonly updatedAt: FieldRef<"Session", 'DateTime'> - } - - - // Custom InputTypes - /** - * Session findUnique - */ - export type SessionFindUniqueArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: SessionWhereUniqueInput - } - - /** - * Session findUniqueOrThrow - */ - export type SessionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: SessionWhereUniqueInput - } - - /** - * Session findFirst - */ - export type SessionFindFirstArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session findFirstOrThrow - */ - export type SessionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session findMany - */ - export type SessionFindManyArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter, which Sessions to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session create - */ - export type SessionCreateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * The data needed to create a Session. - */ - data: XOR - } - - /** - * Session createMany - */ - export type SessionCreateManyArgs = { - /** - * The data used to create many Sessions. - */ - data: SessionCreateManyInput | SessionCreateManyInput[] - } - - /** - * Session createManyAndReturn - */ - export type SessionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelectCreateManyAndReturn | null - /** - * The data used to create many Sessions. - */ - data: SessionCreateManyInput | SessionCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionIncludeCreateManyAndReturn | null - } - - /** - * Session update - */ - export type SessionUpdateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * The data needed to update a Session. - */ - data: XOR - /** - * Choose, which Session to update. - */ - where: SessionWhereUniqueInput - } - - /** - * Session updateMany - */ - export type SessionUpdateManyArgs = { - /** - * The data used to update Sessions. - */ - data: XOR - /** - * Filter which Sessions to update - */ - where?: SessionWhereInput - } - - /** - * Session upsert - */ - export type SessionUpsertArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * The filter to search for the Session to update in case it exists. - */ - where: SessionWhereUniqueInput - /** - * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. - */ - create: XOR - /** - * In case the Session was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Session delete - */ - export type SessionDeleteArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - /** - * Filter which Session to delete. - */ - where: SessionWhereUniqueInput - } - - /** - * Session deleteMany - */ - export type SessionDeleteManyArgs = { - /** - * Filter which Sessions to delete - */ - where?: SessionWhereInput - } - - /** - * Session without action - */ - export type SessionDefaultArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: SessionInclude | null - } - - - /** - * Model VerificationToken - */ - - export type AggregateVerificationToken = { - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null - } - - export type VerificationTokenMinAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null - } - - export type VerificationTokenMaxAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null - } - - export type VerificationTokenCountAggregateOutputType = { - identifier: number - token: number - expires: number - _all: number - } - - - export type VerificationTokenMinAggregateInputType = { - identifier?: true - token?: true - expires?: true - } - - export type VerificationTokenMaxAggregateInputType = { - identifier?: true - token?: true - expires?: true - } - - export type VerificationTokenCountAggregateInputType = { - identifier?: true - token?: true - expires?: true - _all?: true - } - - export type VerificationTokenAggregateArgs = { - /** - * Filter which VerificationToken to aggregate. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned VerificationTokens - **/ - _count?: true | VerificationTokenCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: VerificationTokenMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: VerificationTokenMaxAggregateInputType - } - - export type GetVerificationTokenAggregateType = { - [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type VerificationTokenGroupByArgs = { - where?: VerificationTokenWhereInput - orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[] - by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum - having?: VerificationTokenScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: VerificationTokenCountAggregateInputType | true - _min?: VerificationTokenMinAggregateInputType - _max?: VerificationTokenMaxAggregateInputType - } - - export type VerificationTokenGroupByOutputType = { - identifier: string - token: string - expires: Date - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null - } - - type GetVerificationTokenGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type VerificationTokenSelect = $Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean - }, ExtArgs["result"]["verificationToken"]> - - export type VerificationTokenSelectCreateManyAndReturn = $Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean - }, ExtArgs["result"]["verificationToken"]> - - export type VerificationTokenSelectScalar = { - identifier?: boolean - token?: boolean - expires?: boolean - } - - - export type $VerificationTokenPayload = { - name: "VerificationToken" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - identifier: string - token: string - expires: Date - }, ExtArgs["result"]["verificationToken"]> - composites: {} - } - - type VerificationTokenGetPayload = $Result.GetResult - - type VerificationTokenCountArgs = - Omit & { - select?: VerificationTokenCountAggregateInputType | true - } - - export interface VerificationTokenDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['VerificationToken'], meta: { name: 'VerificationToken' } } - /** - * Find zero or one VerificationToken that matches the filter. - * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first VerificationToken that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first VerificationToken that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more VerificationTokens that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * - * // Get first 10 VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 }) - * - * // Only select the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a VerificationToken. - * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken. - * @example - * // Create one VerificationToken - * const VerificationToken = await prisma.verificationToken.create({ - * data: { - * // ... data to create a VerificationToken - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many VerificationTokens. - * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many VerificationTokens and returns the data saved in the database. - * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({ - * select: { identifier: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a VerificationToken. - * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken. - * @example - * // Delete one VerificationToken - * const VerificationToken = await prisma.verificationToken.delete({ - * where: { - * // ... filter to delete one VerificationToken - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one VerificationToken. - * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken. - * @example - * // Update one VerificationToken - * const verificationToken = await prisma.verificationToken.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more VerificationTokens. - * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete. - * @example - * // Delete a few VerificationTokens - * const { count } = await prisma.verificationToken.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one VerificationToken. - * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken. - * @example - * // Update or create a VerificationToken - * const verificationToken = await prisma.verificationToken.upsert({ - * create: { - * // ... data to create a VerificationToken - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the VerificationToken we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count. - * @example - * // Count the number of VerificationTokens - * const count = await prisma.verificationToken.count({ - * where: { - * // ... the filter for the VerificationTokens we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends VerificationTokenGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: VerificationTokenGroupByArgs['orderBy'] } - : { orderBy?: VerificationTokenGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the VerificationToken model - */ - readonly fields: VerificationTokenFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for VerificationToken. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__VerificationTokenClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the VerificationToken model - */ - interface VerificationTokenFieldRefs { - readonly identifier: FieldRef<"VerificationToken", 'String'> - readonly token: FieldRef<"VerificationToken", 'String'> - readonly expires: FieldRef<"VerificationToken", 'DateTime'> - } - - - // Custom InputTypes - /** - * VerificationToken findUnique - */ - export type VerificationTokenFindUniqueArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken findUniqueOrThrow - */ - export type VerificationTokenFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken findFirst - */ - export type VerificationTokenFindFirstArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken findFirstOrThrow - */ - export type VerificationTokenFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken findMany - */ - export type VerificationTokenFindManyArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationTokens to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken create - */ - export type VerificationTokenCreateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The data needed to create a VerificationToken. - */ - data: XOR - } - - /** - * VerificationToken createMany - */ - export type VerificationTokenCreateManyArgs = { - /** - * The data used to create many VerificationTokens. - */ - data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[] - } - - /** - * VerificationToken createManyAndReturn - */ - export type VerificationTokenCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelectCreateManyAndReturn | null - /** - * The data used to create many VerificationTokens. - */ - data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[] - } - - /** - * VerificationToken update - */ - export type VerificationTokenUpdateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The data needed to update a VerificationToken. - */ - data: XOR - /** - * Choose, which VerificationToken to update. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken updateMany - */ - export type VerificationTokenUpdateManyArgs = { - /** - * The data used to update VerificationTokens. - */ - data: XOR - /** - * Filter which VerificationTokens to update - */ - where?: VerificationTokenWhereInput - } - - /** - * VerificationToken upsert - */ - export type VerificationTokenUpsertArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The filter to search for the VerificationToken to update in case it exists. - */ - where: VerificationTokenWhereUniqueInput - /** - * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data. - */ - create: XOR - /** - * In case the VerificationToken was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * VerificationToken delete - */ - export type VerificationTokenDeleteArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter which VerificationToken to delete. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken deleteMany - */ - export type VerificationTokenDeleteManyArgs = { - /** - * Filter which VerificationTokens to delete - */ - where?: VerificationTokenWhereInput - } - - /** - * VerificationToken without action - */ - export type VerificationTokenDefaultArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - } - - - /** - * Model Notebook - */ - - export type AggregateNotebook = { - _count: NotebookCountAggregateOutputType | null - _avg: NotebookAvgAggregateOutputType | null - _sum: NotebookSumAggregateOutputType | null - _min: NotebookMinAggregateOutputType | null - _max: NotebookMaxAggregateOutputType | null - } - - export type NotebookAvgAggregateOutputType = { - order: number | null - } - - export type NotebookSumAggregateOutputType = { - order: number | null - } - - export type NotebookMinAggregateOutputType = { - id: string | null - name: string | null - icon: string | null - color: string | null - order: number | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NotebookMaxAggregateOutputType = { - id: string | null - name: string | null - icon: string | null - color: string | null - order: number | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NotebookCountAggregateOutputType = { - id: number - name: number - icon: number - color: number - order: number - userId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type NotebookAvgAggregateInputType = { - order?: true - } - - export type NotebookSumAggregateInputType = { - order?: true - } - - export type NotebookMinAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type NotebookMaxAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type NotebookCountAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type NotebookAggregateArgs = { - /** - * Filter which Notebook to aggregate. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Notebooks - **/ - _count?: true | NotebookCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: NotebookAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: NotebookSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NotebookMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NotebookMaxAggregateInputType - } - - export type GetNotebookAggregateType = { - [P in keyof T & keyof AggregateNotebook]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NotebookGroupByArgs = { - where?: NotebookWhereInput - orderBy?: NotebookOrderByWithAggregationInput | NotebookOrderByWithAggregationInput[] - by: NotebookScalarFieldEnum[] | NotebookScalarFieldEnum - having?: NotebookScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NotebookCountAggregateInputType | true - _avg?: NotebookAvgAggregateInputType - _sum?: NotebookSumAggregateInputType - _min?: NotebookMinAggregateInputType - _max?: NotebookMaxAggregateInputType - } - - export type NotebookGroupByOutputType = { - id: string - name: string - icon: string | null - color: string | null - order: number - userId: string - createdAt: Date - updatedAt: Date - _count: NotebookCountAggregateOutputType | null - _avg: NotebookAvgAggregateOutputType | null - _sum: NotebookSumAggregateOutputType | null - _min: NotebookMinAggregateOutputType | null - _max: NotebookMaxAggregateOutputType | null - } - - type GetNotebookGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NotebookGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NotebookSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - labels?: boolean | Notebook$labelsArgs - notes?: boolean | Notebook$notesArgs - user?: boolean | UserDefaultArgs - _count?: boolean | NotebookCountOutputTypeDefaultArgs - }, ExtArgs["result"]["notebook"]> - - export type NotebookSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["notebook"]> - - export type NotebookSelectScalar = { - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type NotebookInclude = { - labels?: boolean | Notebook$labelsArgs - notes?: boolean | Notebook$notesArgs - user?: boolean | UserDefaultArgs - _count?: boolean | NotebookCountOutputTypeDefaultArgs - } - export type NotebookIncludeCreateManyAndReturn = { - user?: boolean | UserDefaultArgs - } - - export type $NotebookPayload = { - name: "Notebook" - objects: { - labels: Prisma.$LabelPayload[] - notes: Prisma.$NotePayload[] - user: Prisma.$UserPayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - icon: string | null - color: string | null - order: number - userId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["notebook"]> - composites: {} - } - - type NotebookGetPayload = $Result.GetResult - - type NotebookCountArgs = - Omit & { - select?: NotebookCountAggregateInputType | true - } - - export interface NotebookDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Notebook'], meta: { name: 'Notebook' } } - /** - * Find zero or one Notebook that matches the filter. - * @param {NotebookFindUniqueArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Notebook that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NotebookFindUniqueOrThrowArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Notebook that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindFirstArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Notebook that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindFirstOrThrowArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Notebooks that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Notebooks - * const notebooks = await prisma.notebook.findMany() - * - * // Get first 10 Notebooks - * const notebooks = await prisma.notebook.findMany({ take: 10 }) - * - * // Only select the `id` - * const notebookWithIdOnly = await prisma.notebook.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Notebook. - * @param {NotebookCreateArgs} args - Arguments to create a Notebook. - * @example - * // Create one Notebook - * const Notebook = await prisma.notebook.create({ - * data: { - * // ... data to create a Notebook - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Notebooks. - * @param {NotebookCreateManyArgs} args - Arguments to create many Notebooks. - * @example - * // Create many Notebooks - * const notebook = await prisma.notebook.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Notebooks and returns the data saved in the database. - * @param {NotebookCreateManyAndReturnArgs} args - Arguments to create many Notebooks. - * @example - * // Create many Notebooks - * const notebook = await prisma.notebook.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Notebooks and only return the `id` - * const notebookWithIdOnly = await prisma.notebook.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Notebook. - * @param {NotebookDeleteArgs} args - Arguments to delete one Notebook. - * @example - * // Delete one Notebook - * const Notebook = await prisma.notebook.delete({ - * where: { - * // ... filter to delete one Notebook - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Notebook. - * @param {NotebookUpdateArgs} args - Arguments to update one Notebook. - * @example - * // Update one Notebook - * const notebook = await prisma.notebook.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Notebooks. - * @param {NotebookDeleteManyArgs} args - Arguments to filter Notebooks to delete. - * @example - * // Delete a few Notebooks - * const { count } = await prisma.notebook.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Notebooks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Notebooks - * const notebook = await prisma.notebook.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Notebook. - * @param {NotebookUpsertArgs} args - Arguments to update or create a Notebook. - * @example - * // Update or create a Notebook - * const notebook = await prisma.notebook.upsert({ - * create: { - * // ... data to create a Notebook - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Notebook we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Notebooks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookCountArgs} args - Arguments to filter Notebooks to count. - * @example - * // Count the number of Notebooks - * const count = await prisma.notebook.count({ - * where: { - * // ... the filter for the Notebooks we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Notebook. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Notebook. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NotebookGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NotebookGroupByArgs['orderBy'] } - : { orderBy?: NotebookGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNotebookGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Notebook model - */ - readonly fields: NotebookFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Notebook. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NotebookClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - labels = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Notebook model - */ - interface NotebookFieldRefs { - readonly id: FieldRef<"Notebook", 'String'> - readonly name: FieldRef<"Notebook", 'String'> - readonly icon: FieldRef<"Notebook", 'String'> - readonly color: FieldRef<"Notebook", 'String'> - readonly order: FieldRef<"Notebook", 'Int'> - readonly userId: FieldRef<"Notebook", 'String'> - readonly createdAt: FieldRef<"Notebook", 'DateTime'> - readonly updatedAt: FieldRef<"Notebook", 'DateTime'> - } - - - // Custom InputTypes - /** - * Notebook findUnique - */ - export type NotebookFindUniqueArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter, which Notebook to fetch. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook findUniqueOrThrow - */ - export type NotebookFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter, which Notebook to fetch. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook findFirst - */ - export type NotebookFindFirstArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter, which Notebook to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notebooks. - */ - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook findFirstOrThrow - */ - export type NotebookFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter, which Notebook to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notebooks. - */ - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook findMany - */ - export type NotebookFindManyArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter, which Notebooks to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook create - */ - export type NotebookCreateArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * The data needed to create a Notebook. - */ - data: XOR - } - - /** - * Notebook createMany - */ - export type NotebookCreateManyArgs = { - /** - * The data used to create many Notebooks. - */ - data: NotebookCreateManyInput | NotebookCreateManyInput[] - } - - /** - * Notebook createManyAndReturn - */ - export type NotebookCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelectCreateManyAndReturn | null - /** - * The data used to create many Notebooks. - */ - data: NotebookCreateManyInput | NotebookCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookIncludeCreateManyAndReturn | null - } - - /** - * Notebook update - */ - export type NotebookUpdateArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * The data needed to update a Notebook. - */ - data: XOR - /** - * Choose, which Notebook to update. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook updateMany - */ - export type NotebookUpdateManyArgs = { - /** - * The data used to update Notebooks. - */ - data: XOR - /** - * Filter which Notebooks to update - */ - where?: NotebookWhereInput - } - - /** - * Notebook upsert - */ - export type NotebookUpsertArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * The filter to search for the Notebook to update in case it exists. - */ - where: NotebookWhereUniqueInput - /** - * In case the Notebook found by the `where` argument doesn't exist, create a new Notebook with this data. - */ - create: XOR - /** - * In case the Notebook was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Notebook delete - */ - export type NotebookDeleteArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - /** - * Filter which Notebook to delete. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook deleteMany - */ - export type NotebookDeleteManyArgs = { - /** - * Filter which Notebooks to delete - */ - where?: NotebookWhereInput - } - - /** - * Notebook.labels - */ - export type Notebook$labelsArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - where?: LabelWhereInput - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - cursor?: LabelWhereUniqueInput - take?: number - skip?: number - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Notebook.notes - */ - export type Notebook$notesArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - where?: NoteWhereInput - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - cursor?: NoteWhereUniqueInput - take?: number - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Notebook without action - */ - export type NotebookDefaultArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - } - - - /** - * Model Label - */ - - export type AggregateLabel = { - _count: LabelCountAggregateOutputType | null - _min: LabelMinAggregateOutputType | null - _max: LabelMaxAggregateOutputType | null - } - - export type LabelMinAggregateOutputType = { - id: string | null - name: string | null - color: string | null - notebookId: string | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type LabelMaxAggregateOutputType = { - id: string | null - name: string | null - color: string | null - notebookId: string | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type LabelCountAggregateOutputType = { - id: number - name: number - color: number - notebookId: number - userId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type LabelMinAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type LabelMaxAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type LabelCountAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type LabelAggregateArgs = { - /** - * Filter which Label to aggregate. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Labels - **/ - _count?: true | LabelCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: LabelMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: LabelMaxAggregateInputType - } - - export type GetLabelAggregateType = { - [P in keyof T & keyof AggregateLabel]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type LabelGroupByArgs = { - where?: LabelWhereInput - orderBy?: LabelOrderByWithAggregationInput | LabelOrderByWithAggregationInput[] - by: LabelScalarFieldEnum[] | LabelScalarFieldEnum - having?: LabelScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: LabelCountAggregateInputType | true - _min?: LabelMinAggregateInputType - _max?: LabelMaxAggregateInputType - } - - export type LabelGroupByOutputType = { - id: string - name: string - color: string - notebookId: string | null - userId: string | null - createdAt: Date - updatedAt: Date - _count: LabelCountAggregateOutputType | null - _min: LabelMinAggregateOutputType | null - _max: LabelMaxAggregateOutputType | null - } - - type GetLabelGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof LabelGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type LabelSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Label$userArgs - notebook?: boolean | Label$notebookArgs - notes?: boolean | Label$notesArgs - _count?: boolean | LabelCountOutputTypeDefaultArgs - }, ExtArgs["result"]["label"]> - - export type LabelSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Label$userArgs - notebook?: boolean | Label$notebookArgs - }, ExtArgs["result"]["label"]> - - export type LabelSelectScalar = { - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type LabelInclude = { - user?: boolean | Label$userArgs - notebook?: boolean | Label$notebookArgs - notes?: boolean | Label$notesArgs - _count?: boolean | LabelCountOutputTypeDefaultArgs - } - export type LabelIncludeCreateManyAndReturn = { - user?: boolean | Label$userArgs - notebook?: boolean | Label$notebookArgs - } - - export type $LabelPayload = { - name: "Label" - objects: { - user: Prisma.$UserPayload | null - notebook: Prisma.$NotebookPayload | null - notes: Prisma.$NotePayload[] - } - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - color: string - notebookId: string | null - userId: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["label"]> - composites: {} - } - - type LabelGetPayload = $Result.GetResult - - type LabelCountArgs = - Omit & { - select?: LabelCountAggregateInputType | true - } - - export interface LabelDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Label'], meta: { name: 'Label' } } - /** - * Find zero or one Label that matches the filter. - * @param {LabelFindUniqueArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Label that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {LabelFindUniqueOrThrowArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Label that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindFirstArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Label that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindFirstOrThrowArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Labels that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Labels - * const labels = await prisma.label.findMany() - * - * // Get first 10 Labels - * const labels = await prisma.label.findMany({ take: 10 }) - * - * // Only select the `id` - * const labelWithIdOnly = await prisma.label.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Label. - * @param {LabelCreateArgs} args - Arguments to create a Label. - * @example - * // Create one Label - * const Label = await prisma.label.create({ - * data: { - * // ... data to create a Label - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Labels. - * @param {LabelCreateManyArgs} args - Arguments to create many Labels. - * @example - * // Create many Labels - * const label = await prisma.label.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Labels and returns the data saved in the database. - * @param {LabelCreateManyAndReturnArgs} args - Arguments to create many Labels. - * @example - * // Create many Labels - * const label = await prisma.label.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Labels and only return the `id` - * const labelWithIdOnly = await prisma.label.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Label. - * @param {LabelDeleteArgs} args - Arguments to delete one Label. - * @example - * // Delete one Label - * const Label = await prisma.label.delete({ - * where: { - * // ... filter to delete one Label - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Label. - * @param {LabelUpdateArgs} args - Arguments to update one Label. - * @example - * // Update one Label - * const label = await prisma.label.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Labels. - * @param {LabelDeleteManyArgs} args - Arguments to filter Labels to delete. - * @example - * // Delete a few Labels - * const { count } = await prisma.label.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Labels. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Labels - * const label = await prisma.label.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Label. - * @param {LabelUpsertArgs} args - Arguments to update or create a Label. - * @example - * // Update or create a Label - * const label = await prisma.label.upsert({ - * create: { - * // ... data to create a Label - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Label we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Labels. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelCountArgs} args - Arguments to filter Labels to count. - * @example - * // Count the number of Labels - * const count = await prisma.label.count({ - * where: { - * // ... the filter for the Labels we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Label. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Label. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends LabelGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: LabelGroupByArgs['orderBy'] } - : { orderBy?: LabelGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetLabelGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Label model - */ - readonly fields: LabelFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Label. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__LabelClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - notebook = {}>(args?: Subset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Label model - */ - interface LabelFieldRefs { - readonly id: FieldRef<"Label", 'String'> - readonly name: FieldRef<"Label", 'String'> - readonly color: FieldRef<"Label", 'String'> - readonly notebookId: FieldRef<"Label", 'String'> - readonly userId: FieldRef<"Label", 'String'> - readonly createdAt: FieldRef<"Label", 'DateTime'> - readonly updatedAt: FieldRef<"Label", 'DateTime'> - } - - - // Custom InputTypes - /** - * Label findUnique - */ - export type LabelFindUniqueArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter, which Label to fetch. - */ - where: LabelWhereUniqueInput - } - - /** - * Label findUniqueOrThrow - */ - export type LabelFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter, which Label to fetch. - */ - where: LabelWhereUniqueInput - } - - /** - * Label findFirst - */ - export type LabelFindFirstArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter, which Label to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Labels. - */ - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label findFirstOrThrow - */ - export type LabelFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter, which Label to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Labels. - */ - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label findMany - */ - export type LabelFindManyArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter, which Labels to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label create - */ - export type LabelCreateArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * The data needed to create a Label. - */ - data: XOR - } - - /** - * Label createMany - */ - export type LabelCreateManyArgs = { - /** - * The data used to create many Labels. - */ - data: LabelCreateManyInput | LabelCreateManyInput[] - } - - /** - * Label createManyAndReturn - */ - export type LabelCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelectCreateManyAndReturn | null - /** - * The data used to create many Labels. - */ - data: LabelCreateManyInput | LabelCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelIncludeCreateManyAndReturn | null - } - - /** - * Label update - */ - export type LabelUpdateArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * The data needed to update a Label. - */ - data: XOR - /** - * Choose, which Label to update. - */ - where: LabelWhereUniqueInput - } - - /** - * Label updateMany - */ - export type LabelUpdateManyArgs = { - /** - * The data used to update Labels. - */ - data: XOR - /** - * Filter which Labels to update - */ - where?: LabelWhereInput - } - - /** - * Label upsert - */ - export type LabelUpsertArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * The filter to search for the Label to update in case it exists. - */ - where: LabelWhereUniqueInput - /** - * In case the Label found by the `where` argument doesn't exist, create a new Label with this data. - */ - create: XOR - /** - * In case the Label was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Label delete - */ - export type LabelDeleteArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - /** - * Filter which Label to delete. - */ - where: LabelWhereUniqueInput - } - - /** - * Label deleteMany - */ - export type LabelDeleteManyArgs = { - /** - * Filter which Labels to delete - */ - where?: LabelWhereInput - } - - /** - * Label.user - */ - export type Label$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - - /** - * Label.notebook - */ - export type Label$notebookArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - where?: NotebookWhereInput - } - - /** - * Label.notes - */ - export type Label$notesArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - where?: NoteWhereInput - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - cursor?: NoteWhereUniqueInput - take?: number - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Label without action - */ - export type LabelDefaultArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - } - - - /** - * Model Note - */ - - export type AggregateNote = { - _count: NoteCountAggregateOutputType | null - _avg: NoteAvgAggregateOutputType | null - _sum: NoteSumAggregateOutputType | null - _min: NoteMinAggregateOutputType | null - _max: NoteMaxAggregateOutputType | null - } - - export type NoteAvgAggregateOutputType = { - order: number | null - aiConfidence: number | null - languageConfidence: number | null - } - - export type NoteSumAggregateOutputType = { - order: number | null - aiConfidence: number | null - languageConfidence: number | null - } - - export type NoteMinAggregateOutputType = { - id: string | null - title: string | null - content: string | null - color: string | null - isPinned: boolean | null - isArchived: boolean | null - type: string | null - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean | null - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean | null - size: string | null - embedding: string | null - sharedWith: string | null - userId: string | null - order: number | null - notebookId: string | null - createdAt: Date | null - updatedAt: Date | null - contentUpdatedAt: Date | null - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - } - - export type NoteMaxAggregateOutputType = { - id: string | null - title: string | null - content: string | null - color: string | null - isPinned: boolean | null - isArchived: boolean | null - type: string | null - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean | null - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean | null - size: string | null - embedding: string | null - sharedWith: string | null - userId: string | null - order: number | null - notebookId: string | null - createdAt: Date | null - updatedAt: Date | null - contentUpdatedAt: Date | null - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - } - - export type NoteCountAggregateOutputType = { - id: number - title: number - content: number - color: number - isPinned: number - isArchived: number - type: number - checkItems: number - labels: number - images: number - links: number - reminder: number - isReminderDone: number - reminderRecurrence: number - reminderLocation: number - isMarkdown: number - size: number - embedding: number - sharedWith: number - userId: number - order: number - notebookId: number - createdAt: number - updatedAt: number - contentUpdatedAt: number - autoGenerated: number - aiProvider: number - aiConfidence: number - language: number - languageConfidence: number - lastAiAnalysis: number - _all: number - } - - - export type NoteAvgAggregateInputType = { - order?: true - aiConfidence?: true - languageConfidence?: true - } - - export type NoteSumAggregateInputType = { - order?: true - aiConfidence?: true - languageConfidence?: true - } - - export type NoteMinAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - contentUpdatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - } - - export type NoteMaxAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - contentUpdatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - } - - export type NoteCountAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - contentUpdatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - _all?: true - } - - export type NoteAggregateArgs = { - /** - * Filter which Note to aggregate. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Notes - **/ - _count?: true | NoteCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: NoteAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: NoteSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NoteMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NoteMaxAggregateInputType - } - - export type GetNoteAggregateType = { - [P in keyof T & keyof AggregateNote]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NoteGroupByArgs = { - where?: NoteWhereInput - orderBy?: NoteOrderByWithAggregationInput | NoteOrderByWithAggregationInput[] - by: NoteScalarFieldEnum[] | NoteScalarFieldEnum - having?: NoteScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NoteCountAggregateInputType | true - _avg?: NoteAvgAggregateInputType - _sum?: NoteSumAggregateInputType - _min?: NoteMinAggregateInputType - _max?: NoteMaxAggregateInputType - } - - export type NoteGroupByOutputType = { - id: string - title: string | null - content: string - color: string - isPinned: boolean - isArchived: boolean - type: string - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean - size: string - embedding: string | null - sharedWith: string | null - userId: string | null - order: number - notebookId: string | null - createdAt: Date - updatedAt: Date - contentUpdatedAt: Date - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - _count: NoteCountAggregateOutputType | null - _avg: NoteAvgAggregateOutputType | null - _sum: NoteSumAggregateOutputType | null - _min: NoteMinAggregateOutputType | null - _max: NoteMaxAggregateOutputType | null - } - - type GetNoteGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NoteGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NoteSelect = $Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - contentUpdatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - aiFeedback?: boolean | Note$aiFeedbackArgs - memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args - memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args - notebook?: boolean | Note$notebookArgs - user?: boolean | Note$userArgs - shares?: boolean | Note$sharesArgs - labelRelations?: boolean | Note$labelRelationsArgs - _count?: boolean | NoteCountOutputTypeDefaultArgs - }, ExtArgs["result"]["note"]> - - export type NoteSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - contentUpdatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - notebook?: boolean | Note$notebookArgs - user?: boolean | Note$userArgs - }, ExtArgs["result"]["note"]> - - export type NoteSelectScalar = { - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - contentUpdatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - } - - export type NoteInclude = { - aiFeedback?: boolean | Note$aiFeedbackArgs - memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args - memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args - notebook?: boolean | Note$notebookArgs - user?: boolean | Note$userArgs - shares?: boolean | Note$sharesArgs - labelRelations?: boolean | Note$labelRelationsArgs - _count?: boolean | NoteCountOutputTypeDefaultArgs - } - export type NoteIncludeCreateManyAndReturn = { - notebook?: boolean | Note$notebookArgs - user?: boolean | Note$userArgs - } - - export type $NotePayload = { - name: "Note" - objects: { - aiFeedback: Prisma.$AiFeedbackPayload[] - memoryEchoAsNote2: Prisma.$MemoryEchoInsightPayload[] - memoryEchoAsNote1: Prisma.$MemoryEchoInsightPayload[] - notebook: Prisma.$NotebookPayload | null - user: Prisma.$UserPayload | null - shares: Prisma.$NoteSharePayload[] - labelRelations: Prisma.$LabelPayload[] - } - scalars: $Extensions.GetPayloadResult<{ - id: string - title: string | null - content: string - color: string - isPinned: boolean - isArchived: boolean - type: string - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean - size: string - embedding: string | null - sharedWith: string | null - userId: string | null - order: number - notebookId: string | null - createdAt: Date - updatedAt: Date - contentUpdatedAt: Date - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - }, ExtArgs["result"]["note"]> - composites: {} - } - - type NoteGetPayload = $Result.GetResult - - type NoteCountArgs = - Omit & { - select?: NoteCountAggregateInputType | true - } - - export interface NoteDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Note'], meta: { name: 'Note' } } - /** - * Find zero or one Note that matches the filter. - * @param {NoteFindUniqueArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Note that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NoteFindUniqueOrThrowArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Note that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindFirstArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Note that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindFirstOrThrowArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Notes that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Notes - * const notes = await prisma.note.findMany() - * - * // Get first 10 Notes - * const notes = await prisma.note.findMany({ take: 10 }) - * - * // Only select the `id` - * const noteWithIdOnly = await prisma.note.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Note. - * @param {NoteCreateArgs} args - Arguments to create a Note. - * @example - * // Create one Note - * const Note = await prisma.note.create({ - * data: { - * // ... data to create a Note - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Notes. - * @param {NoteCreateManyArgs} args - Arguments to create many Notes. - * @example - * // Create many Notes - * const note = await prisma.note.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Notes and returns the data saved in the database. - * @param {NoteCreateManyAndReturnArgs} args - Arguments to create many Notes. - * @example - * // Create many Notes - * const note = await prisma.note.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Notes and only return the `id` - * const noteWithIdOnly = await prisma.note.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Note. - * @param {NoteDeleteArgs} args - Arguments to delete one Note. - * @example - * // Delete one Note - * const Note = await prisma.note.delete({ - * where: { - * // ... filter to delete one Note - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Note. - * @param {NoteUpdateArgs} args - Arguments to update one Note. - * @example - * // Update one Note - * const note = await prisma.note.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Notes. - * @param {NoteDeleteManyArgs} args - Arguments to filter Notes to delete. - * @example - * // Delete a few Notes - * const { count } = await prisma.note.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Notes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Notes - * const note = await prisma.note.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Note. - * @param {NoteUpsertArgs} args - Arguments to update or create a Note. - * @example - * // Update or create a Note - * const note = await prisma.note.upsert({ - * create: { - * // ... data to create a Note - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Note we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Notes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteCountArgs} args - Arguments to filter Notes to count. - * @example - * // Count the number of Notes - * const count = await prisma.note.count({ - * where: { - * // ... the filter for the Notes we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Note. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Note. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NoteGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NoteGroupByArgs['orderBy'] } - : { orderBy?: NoteGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNoteGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Note model - */ - readonly fields: NoteFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Note. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NoteClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - aiFeedback = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - memoryEchoAsNote2 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - memoryEchoAsNote1 = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - notebook = {}>(args?: Subset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - shares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - labelRelations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Note model - */ - interface NoteFieldRefs { - readonly id: FieldRef<"Note", 'String'> - readonly title: FieldRef<"Note", 'String'> - readonly content: FieldRef<"Note", 'String'> - readonly color: FieldRef<"Note", 'String'> - readonly isPinned: FieldRef<"Note", 'Boolean'> - readonly isArchived: FieldRef<"Note", 'Boolean'> - readonly type: FieldRef<"Note", 'String'> - readonly checkItems: FieldRef<"Note", 'String'> - readonly labels: FieldRef<"Note", 'String'> - readonly images: FieldRef<"Note", 'String'> - readonly links: FieldRef<"Note", 'String'> - readonly reminder: FieldRef<"Note", 'DateTime'> - readonly isReminderDone: FieldRef<"Note", 'Boolean'> - readonly reminderRecurrence: FieldRef<"Note", 'String'> - readonly reminderLocation: FieldRef<"Note", 'String'> - readonly isMarkdown: FieldRef<"Note", 'Boolean'> - readonly size: FieldRef<"Note", 'String'> - readonly embedding: FieldRef<"Note", 'String'> - readonly sharedWith: FieldRef<"Note", 'String'> - readonly userId: FieldRef<"Note", 'String'> - readonly order: FieldRef<"Note", 'Int'> - readonly notebookId: FieldRef<"Note", 'String'> - readonly createdAt: FieldRef<"Note", 'DateTime'> - readonly updatedAt: FieldRef<"Note", 'DateTime'> - readonly contentUpdatedAt: FieldRef<"Note", 'DateTime'> - readonly autoGenerated: FieldRef<"Note", 'Boolean'> - readonly aiProvider: FieldRef<"Note", 'String'> - readonly aiConfidence: FieldRef<"Note", 'Int'> - readonly language: FieldRef<"Note", 'String'> - readonly languageConfidence: FieldRef<"Note", 'Float'> - readonly lastAiAnalysis: FieldRef<"Note", 'DateTime'> - } - - - // Custom InputTypes - /** - * Note findUnique - */ - export type NoteFindUniqueArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter, which Note to fetch. - */ - where: NoteWhereUniqueInput - } - - /** - * Note findUniqueOrThrow - */ - export type NoteFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter, which Note to fetch. - */ - where: NoteWhereUniqueInput - } - - /** - * Note findFirst - */ - export type NoteFindFirstArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter, which Note to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notes. - */ - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note findFirstOrThrow - */ - export type NoteFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter, which Note to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notes. - */ - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note findMany - */ - export type NoteFindManyArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter, which Notes to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note create - */ - export type NoteCreateArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * The data needed to create a Note. - */ - data: XOR - } - - /** - * Note createMany - */ - export type NoteCreateManyArgs = { - /** - * The data used to create many Notes. - */ - data: NoteCreateManyInput | NoteCreateManyInput[] - } - - /** - * Note createManyAndReturn - */ - export type NoteCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelectCreateManyAndReturn | null - /** - * The data used to create many Notes. - */ - data: NoteCreateManyInput | NoteCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteIncludeCreateManyAndReturn | null - } - - /** - * Note update - */ - export type NoteUpdateArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * The data needed to update a Note. - */ - data: XOR - /** - * Choose, which Note to update. - */ - where: NoteWhereUniqueInput - } - - /** - * Note updateMany - */ - export type NoteUpdateManyArgs = { - /** - * The data used to update Notes. - */ - data: XOR - /** - * Filter which Notes to update - */ - where?: NoteWhereInput - } - - /** - * Note upsert - */ - export type NoteUpsertArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * The filter to search for the Note to update in case it exists. - */ - where: NoteWhereUniqueInput - /** - * In case the Note found by the `where` argument doesn't exist, create a new Note with this data. - */ - create: XOR - /** - * In case the Note was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Note delete - */ - export type NoteDeleteArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - /** - * Filter which Note to delete. - */ - where: NoteWhereUniqueInput - } - - /** - * Note deleteMany - */ - export type NoteDeleteManyArgs = { - /** - * Filter which Notes to delete - */ - where?: NoteWhereInput - } - - /** - * Note.aiFeedback - */ - export type Note$aiFeedbackArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - cursor?: AiFeedbackWhereUniqueInput - take?: number - skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * Note.memoryEchoAsNote2 - */ - export type Note$memoryEchoAsNote2Args = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * Note.memoryEchoAsNote1 - */ - export type Note$memoryEchoAsNote1Args = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - cursor?: MemoryEchoInsightWhereUniqueInput - take?: number - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * Note.notebook - */ - export type Note$notebookArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NotebookInclude | null - where?: NotebookWhereInput - } - - /** - * Note.user - */ - export type Note$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - - /** - * Note.shares - */ - export type Note$sharesArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - cursor?: NoteShareWhereUniqueInput - take?: number - skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * Note.labelRelations - */ - export type Note$labelRelationsArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: LabelInclude | null - where?: LabelWhereInput - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - cursor?: LabelWhereUniqueInput - take?: number - skip?: number - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Note without action - */ - export type NoteDefaultArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteInclude | null - } - - - /** - * Model NoteShare - */ - - export type AggregateNoteShare = { - _count: NoteShareCountAggregateOutputType | null - _min: NoteShareMinAggregateOutputType | null - _max: NoteShareMaxAggregateOutputType | null - } - - export type NoteShareMinAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - sharedBy: string | null - status: string | null - permission: string | null - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NoteShareMaxAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - sharedBy: string | null - status: string | null - permission: string | null - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NoteShareCountAggregateOutputType = { - id: number - noteId: number - userId: number - sharedBy: number - status: number - permission: number - notifiedAt: number - respondedAt: number - createdAt: number - updatedAt: number - _all: number - } - - - export type NoteShareMinAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - } - - export type NoteShareMaxAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - } - - export type NoteShareCountAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type NoteShareAggregateArgs = { - /** - * Filter which NoteShare to aggregate. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned NoteShares - **/ - _count?: true | NoteShareCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NoteShareMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NoteShareMaxAggregateInputType - } - - export type GetNoteShareAggregateType = { - [P in keyof T & keyof AggregateNoteShare]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NoteShareGroupByArgs = { - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithAggregationInput | NoteShareOrderByWithAggregationInput[] - by: NoteShareScalarFieldEnum[] | NoteShareScalarFieldEnum - having?: NoteShareScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NoteShareCountAggregateInputType | true - _min?: NoteShareMinAggregateInputType - _max?: NoteShareMaxAggregateInputType - } - - export type NoteShareGroupByOutputType = { - id: string - noteId: string - userId: string - sharedBy: string - status: string - permission: string - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date - updatedAt: Date - _count: NoteShareCountAggregateOutputType | null - _min: NoteShareMinAggregateOutputType | null - _max: NoteShareMaxAggregateOutputType | null - } - - type GetNoteShareGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NoteShareGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NoteShareSelect = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - sharer?: boolean | UserDefaultArgs - user?: boolean | UserDefaultArgs - note?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["noteShare"]> - - export type NoteShareSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - sharer?: boolean | UserDefaultArgs - user?: boolean | UserDefaultArgs - note?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["noteShare"]> - - export type NoteShareSelectScalar = { - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - export type NoteShareInclude = { - sharer?: boolean | UserDefaultArgs - user?: boolean | UserDefaultArgs - note?: boolean | NoteDefaultArgs - } - export type NoteShareIncludeCreateManyAndReturn = { - sharer?: boolean | UserDefaultArgs - user?: boolean | UserDefaultArgs - note?: boolean | NoteDefaultArgs - } - - export type $NoteSharePayload = { - name: "NoteShare" - objects: { - sharer: Prisma.$UserPayload - user: Prisma.$UserPayload - note: Prisma.$NotePayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - noteId: string - userId: string - sharedBy: string - status: string - permission: string - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["noteShare"]> - composites: {} - } - - type NoteShareGetPayload = $Result.GetResult - - type NoteShareCountArgs = - Omit & { - select?: NoteShareCountAggregateInputType | true - } - - export interface NoteShareDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['NoteShare'], meta: { name: 'NoteShare' } } - /** - * Find zero or one NoteShare that matches the filter. - * @param {NoteShareFindUniqueArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one NoteShare that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NoteShareFindUniqueOrThrowArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first NoteShare that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindFirstArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first NoteShare that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindFirstOrThrowArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more NoteShares that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all NoteShares - * const noteShares = await prisma.noteShare.findMany() - * - * // Get first 10 NoteShares - * const noteShares = await prisma.noteShare.findMany({ take: 10 }) - * - * // Only select the `id` - * const noteShareWithIdOnly = await prisma.noteShare.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a NoteShare. - * @param {NoteShareCreateArgs} args - Arguments to create a NoteShare. - * @example - * // Create one NoteShare - * const NoteShare = await prisma.noteShare.create({ - * data: { - * // ... data to create a NoteShare - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many NoteShares. - * @param {NoteShareCreateManyArgs} args - Arguments to create many NoteShares. - * @example - * // Create many NoteShares - * const noteShare = await prisma.noteShare.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many NoteShares and returns the data saved in the database. - * @param {NoteShareCreateManyAndReturnArgs} args - Arguments to create many NoteShares. - * @example - * // Create many NoteShares - * const noteShare = await prisma.noteShare.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many NoteShares and only return the `id` - * const noteShareWithIdOnly = await prisma.noteShare.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a NoteShare. - * @param {NoteShareDeleteArgs} args - Arguments to delete one NoteShare. - * @example - * // Delete one NoteShare - * const NoteShare = await prisma.noteShare.delete({ - * where: { - * // ... filter to delete one NoteShare - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one NoteShare. - * @param {NoteShareUpdateArgs} args - Arguments to update one NoteShare. - * @example - * // Update one NoteShare - * const noteShare = await prisma.noteShare.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more NoteShares. - * @param {NoteShareDeleteManyArgs} args - Arguments to filter NoteShares to delete. - * @example - * // Delete a few NoteShares - * const { count } = await prisma.noteShare.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more NoteShares. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many NoteShares - * const noteShare = await prisma.noteShare.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one NoteShare. - * @param {NoteShareUpsertArgs} args - Arguments to update or create a NoteShare. - * @example - * // Update or create a NoteShare - * const noteShare = await prisma.noteShare.upsert({ - * create: { - * // ... data to create a NoteShare - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the NoteShare we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of NoteShares. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareCountArgs} args - Arguments to filter NoteShares to count. - * @example - * // Count the number of NoteShares - * const count = await prisma.noteShare.count({ - * where: { - * // ... the filter for the NoteShares we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a NoteShare. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by NoteShare. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NoteShareGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NoteShareGroupByArgs['orderBy'] } - : { orderBy?: NoteShareGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNoteShareGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the NoteShare model - */ - readonly fields: NoteShareFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for NoteShare. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NoteShareClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - sharer = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the NoteShare model - */ - interface NoteShareFieldRefs { - readonly id: FieldRef<"NoteShare", 'String'> - readonly noteId: FieldRef<"NoteShare", 'String'> - readonly userId: FieldRef<"NoteShare", 'String'> - readonly sharedBy: FieldRef<"NoteShare", 'String'> - readonly status: FieldRef<"NoteShare", 'String'> - readonly permission: FieldRef<"NoteShare", 'String'> - readonly notifiedAt: FieldRef<"NoteShare", 'DateTime'> - readonly respondedAt: FieldRef<"NoteShare", 'DateTime'> - readonly createdAt: FieldRef<"NoteShare", 'DateTime'> - readonly updatedAt: FieldRef<"NoteShare", 'DateTime'> - } - - - // Custom InputTypes - /** - * NoteShare findUnique - */ - export type NoteShareFindUniqueArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter, which NoteShare to fetch. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare findUniqueOrThrow - */ - export type NoteShareFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter, which NoteShare to fetch. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare findFirst - */ - export type NoteShareFindFirstArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter, which NoteShare to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of NoteShares. - */ - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare findFirstOrThrow - */ - export type NoteShareFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter, which NoteShare to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of NoteShares. - */ - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare findMany - */ - export type NoteShareFindManyArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter, which NoteShares to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare create - */ - export type NoteShareCreateArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * The data needed to create a NoteShare. - */ - data: XOR - } - - /** - * NoteShare createMany - */ - export type NoteShareCreateManyArgs = { - /** - * The data used to create many NoteShares. - */ - data: NoteShareCreateManyInput | NoteShareCreateManyInput[] - } - - /** - * NoteShare createManyAndReturn - */ - export type NoteShareCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelectCreateManyAndReturn | null - /** - * The data used to create many NoteShares. - */ - data: NoteShareCreateManyInput | NoteShareCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareIncludeCreateManyAndReturn | null - } - - /** - * NoteShare update - */ - export type NoteShareUpdateArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * The data needed to update a NoteShare. - */ - data: XOR - /** - * Choose, which NoteShare to update. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare updateMany - */ - export type NoteShareUpdateManyArgs = { - /** - * The data used to update NoteShares. - */ - data: XOR - /** - * Filter which NoteShares to update - */ - where?: NoteShareWhereInput - } - - /** - * NoteShare upsert - */ - export type NoteShareUpsertArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * The filter to search for the NoteShare to update in case it exists. - */ - where: NoteShareWhereUniqueInput - /** - * In case the NoteShare found by the `where` argument doesn't exist, create a new NoteShare with this data. - */ - create: XOR - /** - * In case the NoteShare was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * NoteShare delete - */ - export type NoteShareDeleteArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - /** - * Filter which NoteShare to delete. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare deleteMany - */ - export type NoteShareDeleteManyArgs = { - /** - * Filter which NoteShares to delete - */ - where?: NoteShareWhereInput - } - - /** - * NoteShare without action - */ - export type NoteShareDefaultArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: NoteShareInclude | null - } - - - /** - * Model SystemConfig - */ - - export type AggregateSystemConfig = { - _count: SystemConfigCountAggregateOutputType | null - _min: SystemConfigMinAggregateOutputType | null - _max: SystemConfigMaxAggregateOutputType | null - } - - export type SystemConfigMinAggregateOutputType = { - key: string | null - value: string | null - } - - export type SystemConfigMaxAggregateOutputType = { - key: string | null - value: string | null - } - - export type SystemConfigCountAggregateOutputType = { - key: number - value: number - _all: number - } - - - export type SystemConfigMinAggregateInputType = { - key?: true - value?: true - } - - export type SystemConfigMaxAggregateInputType = { - key?: true - value?: true - } - - export type SystemConfigCountAggregateInputType = { - key?: true - value?: true - _all?: true - } - - export type SystemConfigAggregateArgs = { - /** - * Filter which SystemConfig to aggregate. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SystemConfigs - **/ - _count?: true | SystemConfigCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SystemConfigMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SystemConfigMaxAggregateInputType - } - - export type GetSystemConfigAggregateType = { - [P in keyof T & keyof AggregateSystemConfig]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SystemConfigGroupByArgs = { - where?: SystemConfigWhereInput - orderBy?: SystemConfigOrderByWithAggregationInput | SystemConfigOrderByWithAggregationInput[] - by: SystemConfigScalarFieldEnum[] | SystemConfigScalarFieldEnum - having?: SystemConfigScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SystemConfigCountAggregateInputType | true - _min?: SystemConfigMinAggregateInputType - _max?: SystemConfigMaxAggregateInputType - } - - export type SystemConfigGroupByOutputType = { - key: string - value: string - _count: SystemConfigCountAggregateOutputType | null - _min: SystemConfigMinAggregateOutputType | null - _max: SystemConfigMaxAggregateOutputType | null - } - - type GetSystemConfigGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SystemConfigGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SystemConfigSelect = $Extensions.GetSelect<{ - key?: boolean - value?: boolean - }, ExtArgs["result"]["systemConfig"]> - - export type SystemConfigSelectCreateManyAndReturn = $Extensions.GetSelect<{ - key?: boolean - value?: boolean - }, ExtArgs["result"]["systemConfig"]> - - export type SystemConfigSelectScalar = { - key?: boolean - value?: boolean - } - - - export type $SystemConfigPayload = { - name: "SystemConfig" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - key: string - value: string - }, ExtArgs["result"]["systemConfig"]> - composites: {} - } - - type SystemConfigGetPayload = $Result.GetResult - - type SystemConfigCountArgs = - Omit & { - select?: SystemConfigCountAggregateInputType | true - } - - export interface SystemConfigDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SystemConfig'], meta: { name: 'SystemConfig' } } - /** - * Find zero or one SystemConfig that matches the filter. - * @param {SystemConfigFindUniqueArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one SystemConfig that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SystemConfigFindUniqueOrThrowArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first SystemConfig that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindFirstArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first SystemConfig that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindFirstOrThrowArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more SystemConfigs that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany() - * - * // Get first 10 SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany({ take: 10 }) - * - * // Only select the `key` - * const systemConfigWithKeyOnly = await prisma.systemConfig.findMany({ select: { key: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a SystemConfig. - * @param {SystemConfigCreateArgs} args - Arguments to create a SystemConfig. - * @example - * // Create one SystemConfig - * const SystemConfig = await prisma.systemConfig.create({ - * data: { - * // ... data to create a SystemConfig - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many SystemConfigs. - * @param {SystemConfigCreateManyArgs} args - Arguments to create many SystemConfigs. - * @example - * // Create many SystemConfigs - * const systemConfig = await prisma.systemConfig.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SystemConfigs and returns the data saved in the database. - * @param {SystemConfigCreateManyAndReturnArgs} args - Arguments to create many SystemConfigs. - * @example - * // Create many SystemConfigs - * const systemConfig = await prisma.systemConfig.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SystemConfigs and only return the `key` - * const systemConfigWithKeyOnly = await prisma.systemConfig.createManyAndReturn({ - * select: { key: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a SystemConfig. - * @param {SystemConfigDeleteArgs} args - Arguments to delete one SystemConfig. - * @example - * // Delete one SystemConfig - * const SystemConfig = await prisma.systemConfig.delete({ - * where: { - * // ... filter to delete one SystemConfig - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one SystemConfig. - * @param {SystemConfigUpdateArgs} args - Arguments to update one SystemConfig. - * @example - * // Update one SystemConfig - * const systemConfig = await prisma.systemConfig.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more SystemConfigs. - * @param {SystemConfigDeleteManyArgs} args - Arguments to filter SystemConfigs to delete. - * @example - * // Delete a few SystemConfigs - * const { count } = await prisma.systemConfig.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SystemConfigs. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SystemConfigs - * const systemConfig = await prisma.systemConfig.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one SystemConfig. - * @param {SystemConfigUpsertArgs} args - Arguments to update or create a SystemConfig. - * @example - * // Update or create a SystemConfig - * const systemConfig = await prisma.systemConfig.upsert({ - * create: { - * // ... data to create a SystemConfig - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SystemConfig we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of SystemConfigs. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigCountArgs} args - Arguments to filter SystemConfigs to count. - * @example - * // Count the number of SystemConfigs - * const count = await prisma.systemConfig.count({ - * where: { - * // ... the filter for the SystemConfigs we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SystemConfig. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by SystemConfig. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SystemConfigGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SystemConfigGroupByArgs['orderBy'] } - : { orderBy?: SystemConfigGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSystemConfigGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SystemConfig model - */ - readonly fields: SystemConfigFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SystemConfig. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__SystemConfigClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the SystemConfig model - */ - interface SystemConfigFieldRefs { - readonly key: FieldRef<"SystemConfig", 'String'> - readonly value: FieldRef<"SystemConfig", 'String'> - } - - - // Custom InputTypes - /** - * SystemConfig findUnique - */ - export type SystemConfigFindUniqueArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig findUniqueOrThrow - */ - export type SystemConfigFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig findFirst - */ - export type SystemConfigFindFirstArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SystemConfigs. - */ - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig findFirstOrThrow - */ - export type SystemConfigFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SystemConfigs. - */ - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig findMany - */ - export type SystemConfigFindManyArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfigs to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig create - */ - export type SystemConfigCreateArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The data needed to create a SystemConfig. - */ - data: XOR - } - - /** - * SystemConfig createMany - */ - export type SystemConfigCreateManyArgs = { - /** - * The data used to create many SystemConfigs. - */ - data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[] - } - - /** - * SystemConfig createManyAndReturn - */ - export type SystemConfigCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelectCreateManyAndReturn | null - /** - * The data used to create many SystemConfigs. - */ - data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[] - } - - /** - * SystemConfig update - */ - export type SystemConfigUpdateArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The data needed to update a SystemConfig. - */ - data: XOR - /** - * Choose, which SystemConfig to update. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig updateMany - */ - export type SystemConfigUpdateManyArgs = { - /** - * The data used to update SystemConfigs. - */ - data: XOR - /** - * Filter which SystemConfigs to update - */ - where?: SystemConfigWhereInput - } - - /** - * SystemConfig upsert - */ - export type SystemConfigUpsertArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The filter to search for the SystemConfig to update in case it exists. - */ - where: SystemConfigWhereUniqueInput - /** - * In case the SystemConfig found by the `where` argument doesn't exist, create a new SystemConfig with this data. - */ - create: XOR - /** - * In case the SystemConfig was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SystemConfig delete - */ - export type SystemConfigDeleteArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter which SystemConfig to delete. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig deleteMany - */ - export type SystemConfigDeleteManyArgs = { - /** - * Filter which SystemConfigs to delete - */ - where?: SystemConfigWhereInput - } - - /** - * SystemConfig without action - */ - export type SystemConfigDefaultArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - } - - - /** - * Model AiFeedback - */ - - export type AggregateAiFeedback = { - _count: AiFeedbackCountAggregateOutputType | null - _min: AiFeedbackMinAggregateOutputType | null - _max: AiFeedbackMaxAggregateOutputType | null - } - - export type AiFeedbackMinAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - feedbackType: string | null - feature: string | null - originalContent: string | null - correctedContent: string | null - metadata: string | null - createdAt: Date | null - } - - export type AiFeedbackMaxAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - feedbackType: string | null - feature: string | null - originalContent: string | null - correctedContent: string | null - metadata: string | null - createdAt: Date | null - } - - export type AiFeedbackCountAggregateOutputType = { - id: number - noteId: number - userId: number - feedbackType: number - feature: number - originalContent: number - correctedContent: number - metadata: number - createdAt: number - _all: number - } - - - export type AiFeedbackMinAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - } - - export type AiFeedbackMaxAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - } - - export type AiFeedbackCountAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - _all?: true - } - - export type AiFeedbackAggregateArgs = { - /** - * Filter which AiFeedback to aggregate. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AiFeedbacks - **/ - _count?: true | AiFeedbackCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AiFeedbackMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AiFeedbackMaxAggregateInputType - } - - export type GetAiFeedbackAggregateType = { - [P in keyof T & keyof AggregateAiFeedback]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type AiFeedbackGroupByArgs = { - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithAggregationInput | AiFeedbackOrderByWithAggregationInput[] - by: AiFeedbackScalarFieldEnum[] | AiFeedbackScalarFieldEnum - having?: AiFeedbackScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AiFeedbackCountAggregateInputType | true - _min?: AiFeedbackMinAggregateInputType - _max?: AiFeedbackMaxAggregateInputType - } - - export type AiFeedbackGroupByOutputType = { - id: string - noteId: string - userId: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent: string | null - metadata: string | null - createdAt: Date - _count: AiFeedbackCountAggregateOutputType | null - _min: AiFeedbackMinAggregateOutputType | null - _max: AiFeedbackMaxAggregateOutputType | null - } - - type GetAiFeedbackGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof AiFeedbackGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type AiFeedbackSelect = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - user?: boolean | AiFeedback$userArgs - note?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["aiFeedback"]> - - export type AiFeedbackSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - user?: boolean | AiFeedback$userArgs - note?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["aiFeedback"]> - - export type AiFeedbackSelectScalar = { - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - } - - export type AiFeedbackInclude = { - user?: boolean | AiFeedback$userArgs - note?: boolean | NoteDefaultArgs - } - export type AiFeedbackIncludeCreateManyAndReturn = { - user?: boolean | AiFeedback$userArgs - note?: boolean | NoteDefaultArgs - } - - export type $AiFeedbackPayload = { - name: "AiFeedback" - objects: { - user: Prisma.$UserPayload | null - note: Prisma.$NotePayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - noteId: string - userId: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent: string | null - metadata: string | null - createdAt: Date - }, ExtArgs["result"]["aiFeedback"]> - composites: {} - } - - type AiFeedbackGetPayload = $Result.GetResult - - type AiFeedbackCountArgs = - Omit & { - select?: AiFeedbackCountAggregateInputType | true - } - - export interface AiFeedbackDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AiFeedback'], meta: { name: 'AiFeedback' } } - /** - * Find zero or one AiFeedback that matches the filter. - * @param {AiFeedbackFindUniqueArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one AiFeedback that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AiFeedbackFindUniqueOrThrowArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first AiFeedback that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindFirstArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first AiFeedback that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindFirstOrThrowArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more AiFeedbacks that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany() - * - * // Get first 10 AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany({ take: 10 }) - * - * // Only select the `id` - * const aiFeedbackWithIdOnly = await prisma.aiFeedback.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a AiFeedback. - * @param {AiFeedbackCreateArgs} args - Arguments to create a AiFeedback. - * @example - * // Create one AiFeedback - * const AiFeedback = await prisma.aiFeedback.create({ - * data: { - * // ... data to create a AiFeedback - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many AiFeedbacks. - * @param {AiFeedbackCreateManyArgs} args - Arguments to create many AiFeedbacks. - * @example - * // Create many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AiFeedbacks and returns the data saved in the database. - * @param {AiFeedbackCreateManyAndReturnArgs} args - Arguments to create many AiFeedbacks. - * @example - * // Create many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AiFeedbacks and only return the `id` - * const aiFeedbackWithIdOnly = await prisma.aiFeedback.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a AiFeedback. - * @param {AiFeedbackDeleteArgs} args - Arguments to delete one AiFeedback. - * @example - * // Delete one AiFeedback - * const AiFeedback = await prisma.aiFeedback.delete({ - * where: { - * // ... filter to delete one AiFeedback - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one AiFeedback. - * @param {AiFeedbackUpdateArgs} args - Arguments to update one AiFeedback. - * @example - * // Update one AiFeedback - * const aiFeedback = await prisma.aiFeedback.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more AiFeedbacks. - * @param {AiFeedbackDeleteManyArgs} args - Arguments to filter AiFeedbacks to delete. - * @example - * // Delete a few AiFeedbacks - * const { count } = await prisma.aiFeedback.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AiFeedbacks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one AiFeedback. - * @param {AiFeedbackUpsertArgs} args - Arguments to update or create a AiFeedback. - * @example - * // Update or create a AiFeedback - * const aiFeedback = await prisma.aiFeedback.upsert({ - * create: { - * // ... data to create a AiFeedback - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AiFeedback we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of AiFeedbacks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackCountArgs} args - Arguments to filter AiFeedbacks to count. - * @example - * // Count the number of AiFeedbacks - * const count = await prisma.aiFeedback.count({ - * where: { - * // ... the filter for the AiFeedbacks we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AiFeedback. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by AiFeedback. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AiFeedbackGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: AiFeedbackGroupByArgs['orderBy'] } - : { orderBy?: AiFeedbackGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAiFeedbackGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the AiFeedback model - */ - readonly fields: AiFeedbackFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for AiFeedback. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__AiFeedbackClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - note = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the AiFeedback model - */ - interface AiFeedbackFieldRefs { - readonly id: FieldRef<"AiFeedback", 'String'> - readonly noteId: FieldRef<"AiFeedback", 'String'> - readonly userId: FieldRef<"AiFeedback", 'String'> - readonly feedbackType: FieldRef<"AiFeedback", 'String'> - readonly feature: FieldRef<"AiFeedback", 'String'> - readonly originalContent: FieldRef<"AiFeedback", 'String'> - readonly correctedContent: FieldRef<"AiFeedback", 'String'> - readonly metadata: FieldRef<"AiFeedback", 'String'> - readonly createdAt: FieldRef<"AiFeedback", 'DateTime'> - } - - - // Custom InputTypes - /** - * AiFeedback findUnique - */ - export type AiFeedbackFindUniqueArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter, which AiFeedback to fetch. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback findUniqueOrThrow - */ - export type AiFeedbackFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter, which AiFeedback to fetch. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback findFirst - */ - export type AiFeedbackFindFirstArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter, which AiFeedback to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AiFeedbacks. - */ - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback findFirstOrThrow - */ - export type AiFeedbackFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter, which AiFeedback to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AiFeedbacks. - */ - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback findMany - */ - export type AiFeedbackFindManyArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter, which AiFeedbacks to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback create - */ - export type AiFeedbackCreateArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * The data needed to create a AiFeedback. - */ - data: XOR - } - - /** - * AiFeedback createMany - */ - export type AiFeedbackCreateManyArgs = { - /** - * The data used to create many AiFeedbacks. - */ - data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[] - } - - /** - * AiFeedback createManyAndReturn - */ - export type AiFeedbackCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelectCreateManyAndReturn | null - /** - * The data used to create many AiFeedbacks. - */ - data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackIncludeCreateManyAndReturn | null - } - - /** - * AiFeedback update - */ - export type AiFeedbackUpdateArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * The data needed to update a AiFeedback. - */ - data: XOR - /** - * Choose, which AiFeedback to update. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback updateMany - */ - export type AiFeedbackUpdateManyArgs = { - /** - * The data used to update AiFeedbacks. - */ - data: XOR - /** - * Filter which AiFeedbacks to update - */ - where?: AiFeedbackWhereInput - } - - /** - * AiFeedback upsert - */ - export type AiFeedbackUpsertArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * The filter to search for the AiFeedback to update in case it exists. - */ - where: AiFeedbackWhereUniqueInput - /** - * In case the AiFeedback found by the `where` argument doesn't exist, create a new AiFeedback with this data. - */ - create: XOR - /** - * In case the AiFeedback was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * AiFeedback delete - */ - export type AiFeedbackDeleteArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - /** - * Filter which AiFeedback to delete. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback deleteMany - */ - export type AiFeedbackDeleteManyArgs = { - /** - * Filter which AiFeedbacks to delete - */ - where?: AiFeedbackWhereInput - } - - /** - * AiFeedback.user - */ - export type AiFeedback$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - - /** - * AiFeedback without action - */ - export type AiFeedbackDefaultArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: AiFeedbackInclude | null - } - - - /** - * Model MemoryEchoInsight - */ - - export type AggregateMemoryEchoInsight = { - _count: MemoryEchoInsightCountAggregateOutputType | null - _avg: MemoryEchoInsightAvgAggregateOutputType | null - _sum: MemoryEchoInsightSumAggregateOutputType | null - _min: MemoryEchoInsightMinAggregateOutputType | null - _max: MemoryEchoInsightMaxAggregateOutputType | null - } - - export type MemoryEchoInsightAvgAggregateOutputType = { - similarityScore: number | null - } - - export type MemoryEchoInsightSumAggregateOutputType = { - similarityScore: number | null - } - - export type MemoryEchoInsightMinAggregateOutputType = { - id: string | null - userId: string | null - note1Id: string | null - note2Id: string | null - similarityScore: number | null - insight: string | null - insightDate: Date | null - viewed: boolean | null - feedback: string | null - dismissed: boolean | null - } - - export type MemoryEchoInsightMaxAggregateOutputType = { - id: string | null - userId: string | null - note1Id: string | null - note2Id: string | null - similarityScore: number | null - insight: string | null - insightDate: Date | null - viewed: boolean | null - feedback: string | null - dismissed: boolean | null - } - - export type MemoryEchoInsightCountAggregateOutputType = { - id: number - userId: number - note1Id: number - note2Id: number - similarityScore: number - insight: number - insightDate: number - viewed: number - feedback: number - dismissed: number - _all: number - } - - - export type MemoryEchoInsightAvgAggregateInputType = { - similarityScore?: true - } - - export type MemoryEchoInsightSumAggregateInputType = { - similarityScore?: true - } - - export type MemoryEchoInsightMinAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - } - - export type MemoryEchoInsightMaxAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - } - - export type MemoryEchoInsightCountAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - _all?: true - } - - export type MemoryEchoInsightAggregateArgs = { - /** - * Filter which MemoryEchoInsight to aggregate. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned MemoryEchoInsights - **/ - _count?: true | MemoryEchoInsightCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: MemoryEchoInsightAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: MemoryEchoInsightSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: MemoryEchoInsightMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: MemoryEchoInsightMaxAggregateInputType - } - - export type GetMemoryEchoInsightAggregateType = { - [P in keyof T & keyof AggregateMemoryEchoInsight]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type MemoryEchoInsightGroupByArgs = { - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithAggregationInput | MemoryEchoInsightOrderByWithAggregationInput[] - by: MemoryEchoInsightScalarFieldEnum[] | MemoryEchoInsightScalarFieldEnum - having?: MemoryEchoInsightScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: MemoryEchoInsightCountAggregateInputType | true - _avg?: MemoryEchoInsightAvgAggregateInputType - _sum?: MemoryEchoInsightSumAggregateInputType - _min?: MemoryEchoInsightMinAggregateInputType - _max?: MemoryEchoInsightMaxAggregateInputType - } - - export type MemoryEchoInsightGroupByOutputType = { - id: string - userId: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate: Date - viewed: boolean - feedback: string | null - dismissed: boolean - _count: MemoryEchoInsightCountAggregateOutputType | null - _avg: MemoryEchoInsightAvgAggregateOutputType | null - _sum: MemoryEchoInsightSumAggregateOutputType | null - _min: MemoryEchoInsightMinAggregateOutputType | null - _max: MemoryEchoInsightMaxAggregateOutputType | null - } - - type GetMemoryEchoInsightGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof MemoryEchoInsightGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type MemoryEchoInsightSelect = $Extensions.GetSelect<{ - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - user?: boolean | MemoryEchoInsight$userArgs - note2?: boolean | NoteDefaultArgs - note1?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["memoryEchoInsight"]> - - export type MemoryEchoInsightSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - user?: boolean | MemoryEchoInsight$userArgs - note2?: boolean | NoteDefaultArgs - note1?: boolean | NoteDefaultArgs - }, ExtArgs["result"]["memoryEchoInsight"]> - - export type MemoryEchoInsightSelectScalar = { - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - } - - export type MemoryEchoInsightInclude = { - user?: boolean | MemoryEchoInsight$userArgs - note2?: boolean | NoteDefaultArgs - note1?: boolean | NoteDefaultArgs - } - export type MemoryEchoInsightIncludeCreateManyAndReturn = { - user?: boolean | MemoryEchoInsight$userArgs - note2?: boolean | NoteDefaultArgs - note1?: boolean | NoteDefaultArgs - } - - export type $MemoryEchoInsightPayload = { - name: "MemoryEchoInsight" - objects: { - user: Prisma.$UserPayload | null - note2: Prisma.$NotePayload - note1: Prisma.$NotePayload - } - scalars: $Extensions.GetPayloadResult<{ - id: string - userId: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate: Date - viewed: boolean - feedback: string | null - dismissed: boolean - }, ExtArgs["result"]["memoryEchoInsight"]> - composites: {} - } - - type MemoryEchoInsightGetPayload = $Result.GetResult - - type MemoryEchoInsightCountArgs = - Omit & { - select?: MemoryEchoInsightCountAggregateInputType | true - } - - export interface MemoryEchoInsightDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['MemoryEchoInsight'], meta: { name: 'MemoryEchoInsight' } } - /** - * Find zero or one MemoryEchoInsight that matches the filter. - * @param {MemoryEchoInsightFindUniqueArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one MemoryEchoInsight that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {MemoryEchoInsightFindUniqueOrThrowArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first MemoryEchoInsight that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindFirstArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first MemoryEchoInsight that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindFirstOrThrowArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more MemoryEchoInsights that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany() - * - * // Get first 10 MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany({ take: 10 }) - * - * // Only select the `id` - * const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a MemoryEchoInsight. - * @param {MemoryEchoInsightCreateArgs} args - Arguments to create a MemoryEchoInsight. - * @example - * // Create one MemoryEchoInsight - * const MemoryEchoInsight = await prisma.memoryEchoInsight.create({ - * data: { - * // ... data to create a MemoryEchoInsight - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many MemoryEchoInsights. - * @param {MemoryEchoInsightCreateManyArgs} args - Arguments to create many MemoryEchoInsights. - * @example - * // Create many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many MemoryEchoInsights and returns the data saved in the database. - * @param {MemoryEchoInsightCreateManyAndReturnArgs} args - Arguments to create many MemoryEchoInsights. - * @example - * // Create many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many MemoryEchoInsights and only return the `id` - * const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a MemoryEchoInsight. - * @param {MemoryEchoInsightDeleteArgs} args - Arguments to delete one MemoryEchoInsight. - * @example - * // Delete one MemoryEchoInsight - * const MemoryEchoInsight = await prisma.memoryEchoInsight.delete({ - * where: { - * // ... filter to delete one MemoryEchoInsight - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one MemoryEchoInsight. - * @param {MemoryEchoInsightUpdateArgs} args - Arguments to update one MemoryEchoInsight. - * @example - * // Update one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more MemoryEchoInsights. - * @param {MemoryEchoInsightDeleteManyArgs} args - Arguments to filter MemoryEchoInsights to delete. - * @example - * // Delete a few MemoryEchoInsights - * const { count } = await prisma.memoryEchoInsight.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more MemoryEchoInsights. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one MemoryEchoInsight. - * @param {MemoryEchoInsightUpsertArgs} args - Arguments to update or create a MemoryEchoInsight. - * @example - * // Update or create a MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.upsert({ - * create: { - * // ... data to create a MemoryEchoInsight - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the MemoryEchoInsight we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of MemoryEchoInsights. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightCountArgs} args - Arguments to filter MemoryEchoInsights to count. - * @example - * // Count the number of MemoryEchoInsights - * const count = await prisma.memoryEchoInsight.count({ - * where: { - * // ... the filter for the MemoryEchoInsights we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a MemoryEchoInsight. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by MemoryEchoInsight. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends MemoryEchoInsightGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: MemoryEchoInsightGroupByArgs['orderBy'] } - : { orderBy?: MemoryEchoInsightGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMemoryEchoInsightGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the MemoryEchoInsight model - */ - readonly fields: MemoryEchoInsightFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for MemoryEchoInsight. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__MemoryEchoInsightClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | null, null, ExtArgs> - note2 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - note1 = {}>(args?: Subset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the MemoryEchoInsight model - */ - interface MemoryEchoInsightFieldRefs { - readonly id: FieldRef<"MemoryEchoInsight", 'String'> - readonly userId: FieldRef<"MemoryEchoInsight", 'String'> - readonly note1Id: FieldRef<"MemoryEchoInsight", 'String'> - readonly note2Id: FieldRef<"MemoryEchoInsight", 'String'> - readonly similarityScore: FieldRef<"MemoryEchoInsight", 'Float'> - readonly insight: FieldRef<"MemoryEchoInsight", 'String'> - readonly insightDate: FieldRef<"MemoryEchoInsight", 'DateTime'> - readonly viewed: FieldRef<"MemoryEchoInsight", 'Boolean'> - readonly feedback: FieldRef<"MemoryEchoInsight", 'String'> - readonly dismissed: FieldRef<"MemoryEchoInsight", 'Boolean'> - } - - - // Custom InputTypes - /** - * MemoryEchoInsight findUnique - */ - export type MemoryEchoInsightFindUniqueArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight findUniqueOrThrow - */ - export type MemoryEchoInsightFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight findFirst - */ - export type MemoryEchoInsightFindFirstArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MemoryEchoInsights. - */ - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight findFirstOrThrow - */ - export type MemoryEchoInsightFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MemoryEchoInsights. - */ - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight findMany - */ - export type MemoryEchoInsightFindManyArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter, which MemoryEchoInsights to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight create - */ - export type MemoryEchoInsightCreateArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * The data needed to create a MemoryEchoInsight. - */ - data: XOR - } - - /** - * MemoryEchoInsight createMany - */ - export type MemoryEchoInsightCreateManyArgs = { - /** - * The data used to create many MemoryEchoInsights. - */ - data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[] - } - - /** - * MemoryEchoInsight createManyAndReturn - */ - export type MemoryEchoInsightCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelectCreateManyAndReturn | null - /** - * The data used to create many MemoryEchoInsights. - */ - data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightIncludeCreateManyAndReturn | null - } - - /** - * MemoryEchoInsight update - */ - export type MemoryEchoInsightUpdateArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * The data needed to update a MemoryEchoInsight. - */ - data: XOR - /** - * Choose, which MemoryEchoInsight to update. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight updateMany - */ - export type MemoryEchoInsightUpdateManyArgs = { - /** - * The data used to update MemoryEchoInsights. - */ - data: XOR - /** - * Filter which MemoryEchoInsights to update - */ - where?: MemoryEchoInsightWhereInput - } - - /** - * MemoryEchoInsight upsert - */ - export type MemoryEchoInsightUpsertArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * The filter to search for the MemoryEchoInsight to update in case it exists. - */ - where: MemoryEchoInsightWhereUniqueInput - /** - * In case the MemoryEchoInsight found by the `where` argument doesn't exist, create a new MemoryEchoInsight with this data. - */ - create: XOR - /** - * In case the MemoryEchoInsight was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * MemoryEchoInsight delete - */ - export type MemoryEchoInsightDeleteArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - /** - * Filter which MemoryEchoInsight to delete. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight deleteMany - */ - export type MemoryEchoInsightDeleteManyArgs = { - /** - * Filter which MemoryEchoInsights to delete - */ - where?: MemoryEchoInsightWhereInput - } - - /** - * MemoryEchoInsight.user - */ - export type MemoryEchoInsight$userArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserInclude | null - where?: UserWhereInput - } - - /** - * MemoryEchoInsight without action - */ - export type MemoryEchoInsightDefaultArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: MemoryEchoInsightInclude | null - } - - - /** - * Model UserAISettings - */ - - export type AggregateUserAISettings = { - _count: UserAISettingsCountAggregateOutputType | null - _min: UserAISettingsMinAggregateOutputType | null - _max: UserAISettingsMaxAggregateOutputType | null - } - - export type UserAISettingsMinAggregateOutputType = { - userId: string | null - titleSuggestions: boolean | null - semanticSearch: boolean | null - paragraphRefactor: boolean | null - memoryEcho: boolean | null - memoryEchoFrequency: string | null - aiProvider: string | null - preferredLanguage: string | null - fontSize: string | null - demoMode: boolean | null - showRecentNotes: boolean | null - emailNotifications: boolean | null - desktopNotifications: boolean | null - anonymousAnalytics: boolean | null - } - - export type UserAISettingsMaxAggregateOutputType = { - userId: string | null - titleSuggestions: boolean | null - semanticSearch: boolean | null - paragraphRefactor: boolean | null - memoryEcho: boolean | null - memoryEchoFrequency: string | null - aiProvider: string | null - preferredLanguage: string | null - fontSize: string | null - demoMode: boolean | null - showRecentNotes: boolean | null - emailNotifications: boolean | null - desktopNotifications: boolean | null - anonymousAnalytics: boolean | null - } - - export type UserAISettingsCountAggregateOutputType = { - userId: number - titleSuggestions: number - semanticSearch: number - paragraphRefactor: number - memoryEcho: number - memoryEchoFrequency: number - aiProvider: number - preferredLanguage: number - fontSize: number - demoMode: number - showRecentNotes: number - emailNotifications: number - desktopNotifications: number - anonymousAnalytics: number - _all: number - } - - - export type UserAISettingsMinAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - } - - export type UserAISettingsMaxAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - } - - export type UserAISettingsCountAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - _all?: true - } - - export type UserAISettingsAggregateArgs = { - /** - * Filter which UserAISettings to aggregate. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned UserAISettings - **/ - _count?: true | UserAISettingsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserAISettingsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserAISettingsMaxAggregateInputType - } - - export type GetUserAISettingsAggregateType = { - [P in keyof T & keyof AggregateUserAISettings]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type UserAISettingsGroupByArgs = { - where?: UserAISettingsWhereInput - orderBy?: UserAISettingsOrderByWithAggregationInput | UserAISettingsOrderByWithAggregationInput[] - by: UserAISettingsScalarFieldEnum[] | UserAISettingsScalarFieldEnum - having?: UserAISettingsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserAISettingsCountAggregateInputType | true - _min?: UserAISettingsMinAggregateInputType - _max?: UserAISettingsMaxAggregateInputType - } - - export type UserAISettingsGroupByOutputType = { - userId: string - titleSuggestions: boolean - semanticSearch: boolean - paragraphRefactor: boolean - memoryEcho: boolean - memoryEchoFrequency: string - aiProvider: string - preferredLanguage: string - fontSize: string - demoMode: boolean - showRecentNotes: boolean - emailNotifications: boolean - desktopNotifications: boolean - anonymousAnalytics: boolean - _count: UserAISettingsCountAggregateOutputType | null - _min: UserAISettingsMinAggregateOutputType | null - _max: UserAISettingsMaxAggregateOutputType | null - } - - type GetUserAISettingsGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof UserAISettingsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type UserAISettingsSelect = $Extensions.GetSelect<{ - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["userAISettings"]> - - export type UserAISettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - user?: boolean | UserDefaultArgs - }, ExtArgs["result"]["userAISettings"]> - - export type UserAISettingsSelectScalar = { - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsInclude = { - user?: boolean | UserDefaultArgs - } - export type UserAISettingsIncludeCreateManyAndReturn = { - user?: boolean | UserDefaultArgs - } - - export type $UserAISettingsPayload = { - name: "UserAISettings" - objects: { - user: Prisma.$UserPayload - } - scalars: $Extensions.GetPayloadResult<{ - userId: string - titleSuggestions: boolean - semanticSearch: boolean - paragraphRefactor: boolean - memoryEcho: boolean - memoryEchoFrequency: string - aiProvider: string - preferredLanguage: string - fontSize: string - demoMode: boolean - showRecentNotes: boolean - emailNotifications: boolean - desktopNotifications: boolean - anonymousAnalytics: boolean - }, ExtArgs["result"]["userAISettings"]> - composites: {} - } - - type UserAISettingsGetPayload = $Result.GetResult - - type UserAISettingsCountArgs = - Omit & { - select?: UserAISettingsCountAggregateInputType | true - } - - export interface UserAISettingsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['UserAISettings'], meta: { name: 'UserAISettings' } } - /** - * Find zero or one UserAISettings that matches the filter. - * @param {UserAISettingsFindUniqueArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one UserAISettings that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserAISettingsFindUniqueOrThrowArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first UserAISettings that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindFirstArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first UserAISettings that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindFirstOrThrowArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more UserAISettings that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all UserAISettings - * const userAISettings = await prisma.userAISettings.findMany() - * - * // Get first 10 UserAISettings - * const userAISettings = await prisma.userAISettings.findMany({ take: 10 }) - * - * // Only select the `userId` - * const userAISettingsWithUserIdOnly = await prisma.userAISettings.findMany({ select: { userId: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a UserAISettings. - * @param {UserAISettingsCreateArgs} args - Arguments to create a UserAISettings. - * @example - * // Create one UserAISettings - * const UserAISettings = await prisma.userAISettings.create({ - * data: { - * // ... data to create a UserAISettings - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many UserAISettings. - * @param {UserAISettingsCreateManyArgs} args - Arguments to create many UserAISettings. - * @example - * // Create many UserAISettings - * const userAISettings = await prisma.userAISettings.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many UserAISettings and returns the data saved in the database. - * @param {UserAISettingsCreateManyAndReturnArgs} args - Arguments to create many UserAISettings. - * @example - * // Create many UserAISettings - * const userAISettings = await prisma.userAISettings.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many UserAISettings and only return the `userId` - * const userAISettingsWithUserIdOnly = await prisma.userAISettings.createManyAndReturn({ - * select: { userId: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a UserAISettings. - * @param {UserAISettingsDeleteArgs} args - Arguments to delete one UserAISettings. - * @example - * // Delete one UserAISettings - * const UserAISettings = await prisma.userAISettings.delete({ - * where: { - * // ... filter to delete one UserAISettings - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one UserAISettings. - * @param {UserAISettingsUpdateArgs} args - Arguments to update one UserAISettings. - * @example - * // Update one UserAISettings - * const userAISettings = await prisma.userAISettings.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more UserAISettings. - * @param {UserAISettingsDeleteManyArgs} args - Arguments to filter UserAISettings to delete. - * @example - * // Delete a few UserAISettings - * const { count } = await prisma.userAISettings.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many UserAISettings - * const userAISettings = await prisma.userAISettings.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one UserAISettings. - * @param {UserAISettingsUpsertArgs} args - Arguments to update or create a UserAISettings. - * @example - * // Update or create a UserAISettings - * const userAISettings = await prisma.userAISettings.upsert({ - * create: { - * // ... data to create a UserAISettings - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the UserAISettings we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsCountArgs} args - Arguments to filter UserAISettings to count. - * @example - * // Count the number of UserAISettings - * const count = await prisma.userAISettings.count({ - * where: { - * // ... the filter for the UserAISettings we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserAISettingsGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: UserAISettingsGroupByArgs['orderBy'] } - : { orderBy?: UserAISettingsGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserAISettingsGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the UserAISettings model - */ - readonly fields: UserAISettingsFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for UserAISettings. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__UserAISettingsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the UserAISettings model - */ - interface UserAISettingsFieldRefs { - readonly userId: FieldRef<"UserAISettings", 'String'> - readonly titleSuggestions: FieldRef<"UserAISettings", 'Boolean'> - readonly semanticSearch: FieldRef<"UserAISettings", 'Boolean'> - readonly paragraphRefactor: FieldRef<"UserAISettings", 'Boolean'> - readonly memoryEcho: FieldRef<"UserAISettings", 'Boolean'> - readonly memoryEchoFrequency: FieldRef<"UserAISettings", 'String'> - readonly aiProvider: FieldRef<"UserAISettings", 'String'> - readonly preferredLanguage: FieldRef<"UserAISettings", 'String'> - readonly fontSize: FieldRef<"UserAISettings", 'String'> - readonly demoMode: FieldRef<"UserAISettings", 'Boolean'> - readonly showRecentNotes: FieldRef<"UserAISettings", 'Boolean'> - readonly emailNotifications: FieldRef<"UserAISettings", 'Boolean'> - readonly desktopNotifications: FieldRef<"UserAISettings", 'Boolean'> - readonly anonymousAnalytics: FieldRef<"UserAISettings", 'Boolean'> - } - - - // Custom InputTypes - /** - * UserAISettings findUnique - */ - export type UserAISettingsFindUniqueArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter, which UserAISettings to fetch. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings findUniqueOrThrow - */ - export type UserAISettingsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter, which UserAISettings to fetch. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings findFirst - */ - export type UserAISettingsFindFirstArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of UserAISettings. - */ - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings findFirstOrThrow - */ - export type UserAISettingsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of UserAISettings. - */ - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings findMany - */ - export type UserAISettingsFindManyArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings create - */ - export type UserAISettingsCreateArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * The data needed to create a UserAISettings. - */ - data: XOR - } - - /** - * UserAISettings createMany - */ - export type UserAISettingsCreateManyArgs = { - /** - * The data used to create many UserAISettings. - */ - data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[] - } - - /** - * UserAISettings createManyAndReturn - */ - export type UserAISettingsCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelectCreateManyAndReturn | null - /** - * The data used to create many UserAISettings. - */ - data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsIncludeCreateManyAndReturn | null - } - - /** - * UserAISettings update - */ - export type UserAISettingsUpdateArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * The data needed to update a UserAISettings. - */ - data: XOR - /** - * Choose, which UserAISettings to update. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings updateMany - */ - export type UserAISettingsUpdateManyArgs = { - /** - * The data used to update UserAISettings. - */ - data: XOR - /** - * Filter which UserAISettings to update - */ - where?: UserAISettingsWhereInput - } - - /** - * UserAISettings upsert - */ - export type UserAISettingsUpsertArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * The filter to search for the UserAISettings to update in case it exists. - */ - where: UserAISettingsWhereUniqueInput - /** - * In case the UserAISettings found by the `where` argument doesn't exist, create a new UserAISettings with this data. - */ - create: XOR - /** - * In case the UserAISettings was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * UserAISettings delete - */ - export type UserAISettingsDeleteArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - /** - * Filter which UserAISettings to delete. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings deleteMany - */ - export type UserAISettingsDeleteManyArgs = { - /** - * Filter which UserAISettings to delete - */ - where?: UserAISettingsWhereInput - } - - /** - * UserAISettings without action - */ - export type UserAISettingsDefaultArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Choose, which related nodes to fetch as well - */ - include?: UserAISettingsInclude | null - } - - - /** - * Enums - */ - - export const TransactionIsolationLevel: { - Serializable: 'Serializable' - }; - - export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - - export const UserScalarFieldEnum: { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - - export const AccountScalarFieldEnum: { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - - export const SessionScalarFieldEnum: { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - - export const VerificationTokenScalarFieldEnum: { - identifier: 'identifier', - token: 'token', - expires: 'expires' - }; - - export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - - export const NotebookScalarFieldEnum: { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type NotebookScalarFieldEnum = (typeof NotebookScalarFieldEnum)[keyof typeof NotebookScalarFieldEnum] - - - export const LabelScalarFieldEnum: { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type LabelScalarFieldEnum = (typeof LabelScalarFieldEnum)[keyof typeof LabelScalarFieldEnum] - - - export const NoteScalarFieldEnum: { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - contentUpdatedAt: 'contentUpdatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' - }; - - export type NoteScalarFieldEnum = (typeof NoteScalarFieldEnum)[keyof typeof NoteScalarFieldEnum] - - - export const NoteShareScalarFieldEnum: { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type NoteShareScalarFieldEnum = (typeof NoteShareScalarFieldEnum)[keyof typeof NoteShareScalarFieldEnum] - - - export const SystemConfigScalarFieldEnum: { - key: 'key', - value: 'value' - }; - - export type SystemConfigScalarFieldEnum = (typeof SystemConfigScalarFieldEnum)[keyof typeof SystemConfigScalarFieldEnum] - - - export const AiFeedbackScalarFieldEnum: { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' - }; - - export type AiFeedbackScalarFieldEnum = (typeof AiFeedbackScalarFieldEnum)[keyof typeof AiFeedbackScalarFieldEnum] - - - export const MemoryEchoInsightScalarFieldEnum: { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' - }; - - export type MemoryEchoInsightScalarFieldEnum = (typeof MemoryEchoInsightScalarFieldEnum)[keyof typeof MemoryEchoInsightScalarFieldEnum] - - - export const UserAISettingsScalarFieldEnum: { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' - }; - - export type UserAISettingsScalarFieldEnum = (typeof UserAISettingsScalarFieldEnum)[keyof typeof UserAISettingsScalarFieldEnum] - - - export const SortOrder: { - asc: 'asc', - desc: 'desc' - }; - - export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - - export const NullsOrder: { - first: 'first', - last: 'last' - }; - - export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - /** - * Field references - */ - - - /** - * Reference to a field of type 'String' - */ - export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - - /** - * Reference to a field of type 'DateTime' - */ - export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - - /** - * Reference to a field of type 'Int' - */ - export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - - /** - * Reference to a field of type 'Boolean' - */ - export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - - /** - * Reference to a field of type 'Float' - */ - export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - /** - * Deep Input Types - */ - - - export type UserWhereInput = { - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - id?: StringFilter<"User"> | string - name?: StringNullableFilter<"User"> | string | null - email?: StringFilter<"User"> | string - emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null - password?: StringNullableFilter<"User"> | string | null - role?: StringFilter<"User"> | string - image?: StringNullableFilter<"User"> | string | null - theme?: StringFilter<"User"> | string - resetToken?: StringNullableFilter<"User"> | string | null - resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - accounts?: AccountListRelationFilter - aiFeedback?: AiFeedbackListRelationFilter - labels?: LabelListRelationFilter - memoryEchoInsights?: MemoryEchoInsightListRelationFilter - notes?: NoteListRelationFilter - sentShares?: NoteShareListRelationFilter - receivedShares?: NoteShareListRelationFilter - notebooks?: NotebookListRelationFilter - sessions?: SessionListRelationFilter - aiSettings?: XOR | null - } - - export type UserOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrderInput | SortOrder - email?: SortOrder - emailVerified?: SortOrderInput | SortOrder - password?: SortOrderInput | SortOrder - role?: SortOrder - image?: SortOrderInput | SortOrder - theme?: SortOrder - resetToken?: SortOrderInput | SortOrder - resetTokenExpiry?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - accounts?: AccountOrderByRelationAggregateInput - aiFeedback?: AiFeedbackOrderByRelationAggregateInput - labels?: LabelOrderByRelationAggregateInput - memoryEchoInsights?: MemoryEchoInsightOrderByRelationAggregateInput - notes?: NoteOrderByRelationAggregateInput - sentShares?: NoteShareOrderByRelationAggregateInput - receivedShares?: NoteShareOrderByRelationAggregateInput - notebooks?: NotebookOrderByRelationAggregateInput - sessions?: SessionOrderByRelationAggregateInput - aiSettings?: UserAISettingsOrderByWithRelationInput - } - - export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - resetToken?: string - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - name?: StringNullableFilter<"User"> | string | null - emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null - password?: StringNullableFilter<"User"> | string | null - role?: StringFilter<"User"> | string - image?: StringNullableFilter<"User"> | string | null - theme?: StringFilter<"User"> | string - resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - accounts?: AccountListRelationFilter - aiFeedback?: AiFeedbackListRelationFilter - labels?: LabelListRelationFilter - memoryEchoInsights?: MemoryEchoInsightListRelationFilter - notes?: NoteListRelationFilter - sentShares?: NoteShareListRelationFilter - receivedShares?: NoteShareListRelationFilter - notebooks?: NotebookListRelationFilter - sessions?: SessionListRelationFilter - aiSettings?: XOR | null - }, "id" | "email" | "resetToken"> - - export type UserOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrderInput | SortOrder - email?: SortOrder - emailVerified?: SortOrderInput | SortOrder - password?: SortOrderInput | SortOrder - role?: SortOrder - image?: SortOrderInput | SortOrder - theme?: SortOrder - resetToken?: SortOrderInput | SortOrder - resetTokenExpiry?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: UserCountOrderByAggregateInput - _max?: UserMaxOrderByAggregateInput - _min?: UserMinOrderByAggregateInput - } - - export type UserScalarWhereWithAggregatesInput = { - AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - OR?: UserScalarWhereWithAggregatesInput[] - NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"User"> | string - name?: StringNullableWithAggregatesFilter<"User"> | string | null - email?: StringWithAggregatesFilter<"User"> | string - emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - password?: StringNullableWithAggregatesFilter<"User"> | string | null - role?: StringWithAggregatesFilter<"User"> | string - image?: StringNullableWithAggregatesFilter<"User"> | string | null - theme?: StringWithAggregatesFilter<"User"> | string - resetToken?: StringNullableWithAggregatesFilter<"User"> | string | null - resetTokenExpiry?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - } - - export type AccountWhereInput = { - AND?: AccountWhereInput | AccountWhereInput[] - OR?: AccountWhereInput[] - NOT?: AccountWhereInput | AccountWhereInput[] - userId?: StringFilter<"Account"> | string - type?: StringFilter<"Account"> | string - provider?: StringFilter<"Account"> | string - providerAccountId?: StringFilter<"Account"> | string - refresh_token?: StringNullableFilter<"Account"> | string | null - access_token?: StringNullableFilter<"Account"> | string | null - expires_at?: IntNullableFilter<"Account"> | number | null - token_type?: StringNullableFilter<"Account"> | string | null - scope?: StringNullableFilter<"Account"> | string | null - id_token?: StringNullableFilter<"Account"> | string | null - session_state?: StringNullableFilter<"Account"> | string | null - createdAt?: DateTimeFilter<"Account"> | Date | string - updatedAt?: DateTimeFilter<"Account"> | Date | string - user?: XOR - } - - export type AccountOrderByWithRelationInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrderInput | SortOrder - access_token?: SortOrderInput | SortOrder - expires_at?: SortOrderInput | SortOrder - token_type?: SortOrderInput | SortOrder - scope?: SortOrderInput | SortOrder - id_token?: SortOrderInput | SortOrder - session_state?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - user?: UserOrderByWithRelationInput - } - - export type AccountWhereUniqueInput = Prisma.AtLeast<{ - provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput - AND?: AccountWhereInput | AccountWhereInput[] - OR?: AccountWhereInput[] - NOT?: AccountWhereInput | AccountWhereInput[] - userId?: StringFilter<"Account"> | string - type?: StringFilter<"Account"> | string - provider?: StringFilter<"Account"> | string - providerAccountId?: StringFilter<"Account"> | string - refresh_token?: StringNullableFilter<"Account"> | string | null - access_token?: StringNullableFilter<"Account"> | string | null - expires_at?: IntNullableFilter<"Account"> | number | null - token_type?: StringNullableFilter<"Account"> | string | null - scope?: StringNullableFilter<"Account"> | string | null - id_token?: StringNullableFilter<"Account"> | string | null - session_state?: StringNullableFilter<"Account"> | string | null - createdAt?: DateTimeFilter<"Account"> | Date | string - updatedAt?: DateTimeFilter<"Account"> | Date | string - user?: XOR - }, "provider_providerAccountId"> - - export type AccountOrderByWithAggregationInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrderInput | SortOrder - access_token?: SortOrderInput | SortOrder - expires_at?: SortOrderInput | SortOrder - token_type?: SortOrderInput | SortOrder - scope?: SortOrderInput | SortOrder - id_token?: SortOrderInput | SortOrder - session_state?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: AccountCountOrderByAggregateInput - _avg?: AccountAvgOrderByAggregateInput - _max?: AccountMaxOrderByAggregateInput - _min?: AccountMinOrderByAggregateInput - _sum?: AccountSumOrderByAggregateInput - } - - export type AccountScalarWhereWithAggregatesInput = { - AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] - OR?: AccountScalarWhereWithAggregatesInput[] - NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] - userId?: StringWithAggregatesFilter<"Account"> | string - type?: StringWithAggregatesFilter<"Account"> | string - provider?: StringWithAggregatesFilter<"Account"> | string - providerAccountId?: StringWithAggregatesFilter<"Account"> | string - refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null - token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null - scope?: StringNullableWithAggregatesFilter<"Account"> | string | null - id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string - } - - export type SessionWhereInput = { - AND?: SessionWhereInput | SessionWhereInput[] - OR?: SessionWhereInput[] - NOT?: SessionWhereInput | SessionWhereInput[] - sessionToken?: StringFilter<"Session"> | string - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string - user?: XOR - } - - export type SessionOrderByWithRelationInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - user?: UserOrderByWithRelationInput - } - - export type SessionWhereUniqueInput = Prisma.AtLeast<{ - sessionToken?: string - AND?: SessionWhereInput | SessionWhereInput[] - OR?: SessionWhereInput[] - NOT?: SessionWhereInput | SessionWhereInput[] - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string - user?: XOR - }, "sessionToken"> - - export type SessionOrderByWithAggregationInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: SessionCountOrderByAggregateInput - _max?: SessionMaxOrderByAggregateInput - _min?: SessionMinOrderByAggregateInput - } - - export type SessionScalarWhereWithAggregatesInput = { - AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] - OR?: SessionScalarWhereWithAggregatesInput[] - NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] - sessionToken?: StringWithAggregatesFilter<"Session"> | string - userId?: StringWithAggregatesFilter<"Session"> | string - expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string - createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string - } - - export type VerificationTokenWhereInput = { - AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - OR?: VerificationTokenWhereInput[] - NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - identifier?: StringFilter<"VerificationToken"> | string - token?: StringFilter<"VerificationToken"> | string - expires?: DateTimeFilter<"VerificationToken"> | Date | string - } - - export type VerificationTokenOrderByWithRelationInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{ - identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput - AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - OR?: VerificationTokenWhereInput[] - NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - identifier?: StringFilter<"VerificationToken"> | string - token?: StringFilter<"VerificationToken"> | string - expires?: DateTimeFilter<"VerificationToken"> | Date | string - }, "identifier_token"> - - export type VerificationTokenOrderByWithAggregationInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - _count?: VerificationTokenCountOrderByAggregateInput - _max?: VerificationTokenMaxOrderByAggregateInput - _min?: VerificationTokenMinOrderByAggregateInput - } - - export type VerificationTokenScalarWhereWithAggregatesInput = { - AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] - OR?: VerificationTokenScalarWhereWithAggregatesInput[] - NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] - identifier?: StringWithAggregatesFilter<"VerificationToken"> | string - token?: StringWithAggregatesFilter<"VerificationToken"> | string - expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string - } - - export type NotebookWhereInput = { - AND?: NotebookWhereInput | NotebookWhereInput[] - OR?: NotebookWhereInput[] - NOT?: NotebookWhereInput | NotebookWhereInput[] - id?: StringFilter<"Notebook"> | string - name?: StringFilter<"Notebook"> | string - icon?: StringNullableFilter<"Notebook"> | string | null - color?: StringNullableFilter<"Notebook"> | string | null - order?: IntFilter<"Notebook"> | number - userId?: StringFilter<"Notebook"> | string - createdAt?: DateTimeFilter<"Notebook"> | Date | string - updatedAt?: DateTimeFilter<"Notebook"> | Date | string - labels?: LabelListRelationFilter - notes?: NoteListRelationFilter - user?: XOR - } - - export type NotebookOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - labels?: LabelOrderByRelationAggregateInput - notes?: NoteOrderByRelationAggregateInput - user?: UserOrderByWithRelationInput - } - - export type NotebookWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: NotebookWhereInput | NotebookWhereInput[] - OR?: NotebookWhereInput[] - NOT?: NotebookWhereInput | NotebookWhereInput[] - name?: StringFilter<"Notebook"> | string - icon?: StringNullableFilter<"Notebook"> | string | null - color?: StringNullableFilter<"Notebook"> | string | null - order?: IntFilter<"Notebook"> | number - userId?: StringFilter<"Notebook"> | string - createdAt?: DateTimeFilter<"Notebook"> | Date | string - updatedAt?: DateTimeFilter<"Notebook"> | Date | string - labels?: LabelListRelationFilter - notes?: NoteListRelationFilter - user?: XOR - }, "id"> - - export type NotebookOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: NotebookCountOrderByAggregateInput - _avg?: NotebookAvgOrderByAggregateInput - _max?: NotebookMaxOrderByAggregateInput - _min?: NotebookMinOrderByAggregateInput - _sum?: NotebookSumOrderByAggregateInput - } - - export type NotebookScalarWhereWithAggregatesInput = { - AND?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[] - OR?: NotebookScalarWhereWithAggregatesInput[] - NOT?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Notebook"> | string - name?: StringWithAggregatesFilter<"Notebook"> | string - icon?: StringNullableWithAggregatesFilter<"Notebook"> | string | null - color?: StringNullableWithAggregatesFilter<"Notebook"> | string | null - order?: IntWithAggregatesFilter<"Notebook"> | number - userId?: StringWithAggregatesFilter<"Notebook"> | string - createdAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string - } - - export type LabelWhereInput = { - AND?: LabelWhereInput | LabelWhereInput[] - OR?: LabelWhereInput[] - NOT?: LabelWhereInput | LabelWhereInput[] - id?: StringFilter<"Label"> | string - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string - user?: XOR | null - notebook?: XOR | null - notes?: NoteListRelationFilter - } - - export type LabelOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - user?: UserOrderByWithRelationInput - notebook?: NotebookOrderByWithRelationInput - notes?: NoteOrderByRelationAggregateInput - } - - export type LabelWhereUniqueInput = Prisma.AtLeast<{ - id?: string - notebookId_name?: LabelNotebookIdNameCompoundUniqueInput - AND?: LabelWhereInput | LabelWhereInput[] - OR?: LabelWhereInput[] - NOT?: LabelWhereInput | LabelWhereInput[] - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string - user?: XOR | null - notebook?: XOR | null - notes?: NoteListRelationFilter - }, "id" | "notebookId_name"> - - export type LabelOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: LabelCountOrderByAggregateInput - _max?: LabelMaxOrderByAggregateInput - _min?: LabelMinOrderByAggregateInput - } - - export type LabelScalarWhereWithAggregatesInput = { - AND?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[] - OR?: LabelScalarWhereWithAggregatesInput[] - NOT?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Label"> | string - name?: StringWithAggregatesFilter<"Label"> | string - color?: StringWithAggregatesFilter<"Label"> | string - notebookId?: StringNullableWithAggregatesFilter<"Label"> | string | null - userId?: StringNullableWithAggregatesFilter<"Label"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string - } - - export type NoteWhereInput = { - AND?: NoteWhereInput | NoteWhereInput[] - OR?: NoteWhereInput[] - NOT?: NoteWhereInput | NoteWhereInput[] - id?: StringFilter<"Note"> | string - title?: StringNullableFilter<"Note"> | string | null - content?: StringFilter<"Note"> | string - color?: StringFilter<"Note"> | string - isPinned?: BoolFilter<"Note"> | boolean - isArchived?: BoolFilter<"Note"> | boolean - type?: StringFilter<"Note"> | string - checkItems?: StringNullableFilter<"Note"> | string | null - labels?: StringNullableFilter<"Note"> | string | null - images?: StringNullableFilter<"Note"> | string | null - links?: StringNullableFilter<"Note"> | string | null - reminder?: DateTimeNullableFilter<"Note"> | Date | string | null - isReminderDone?: BoolFilter<"Note"> | boolean - reminderRecurrence?: StringNullableFilter<"Note"> | string | null - reminderLocation?: StringNullableFilter<"Note"> | string | null - isMarkdown?: BoolFilter<"Note"> | boolean - size?: StringFilter<"Note"> | string - embedding?: StringNullableFilter<"Note"> | string | null - sharedWith?: StringNullableFilter<"Note"> | string | null - userId?: StringNullableFilter<"Note"> | string | null - order?: IntFilter<"Note"> | number - notebookId?: StringNullableFilter<"Note"> | string | null - createdAt?: DateTimeFilter<"Note"> | Date | string - updatedAt?: DateTimeFilter<"Note"> | Date | string - contentUpdatedAt?: DateTimeFilter<"Note"> | Date | string - autoGenerated?: BoolNullableFilter<"Note"> | boolean | null - aiProvider?: StringNullableFilter<"Note"> | string | null - aiConfidence?: IntNullableFilter<"Note"> | number | null - language?: StringNullableFilter<"Note"> | string | null - languageConfidence?: FloatNullableFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null - aiFeedback?: AiFeedbackListRelationFilter - memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter - memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter - notebook?: XOR | null - user?: XOR | null - shares?: NoteShareListRelationFilter - labelRelations?: LabelListRelationFilter - } - - export type NoteOrderByWithRelationInput = { - id?: SortOrder - title?: SortOrderInput | SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrderInput | SortOrder - labels?: SortOrderInput | SortOrder - images?: SortOrderInput | SortOrder - links?: SortOrderInput | SortOrder - reminder?: SortOrderInput | SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrderInput | SortOrder - reminderLocation?: SortOrderInput | SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrderInput | SortOrder - sharedWith?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - order?: SortOrder - notebookId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - contentUpdatedAt?: SortOrder - autoGenerated?: SortOrderInput | SortOrder - aiProvider?: SortOrderInput | SortOrder - aiConfidence?: SortOrderInput | SortOrder - language?: SortOrderInput | SortOrder - languageConfidence?: SortOrderInput | SortOrder - lastAiAnalysis?: SortOrderInput | SortOrder - aiFeedback?: AiFeedbackOrderByRelationAggregateInput - memoryEchoAsNote2?: MemoryEchoInsightOrderByRelationAggregateInput - memoryEchoAsNote1?: MemoryEchoInsightOrderByRelationAggregateInput - notebook?: NotebookOrderByWithRelationInput - user?: UserOrderByWithRelationInput - shares?: NoteShareOrderByRelationAggregateInput - labelRelations?: LabelOrderByRelationAggregateInput - } - - export type NoteWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: NoteWhereInput | NoteWhereInput[] - OR?: NoteWhereInput[] - NOT?: NoteWhereInput | NoteWhereInput[] - title?: StringNullableFilter<"Note"> | string | null - content?: StringFilter<"Note"> | string - color?: StringFilter<"Note"> | string - isPinned?: BoolFilter<"Note"> | boolean - isArchived?: BoolFilter<"Note"> | boolean - type?: StringFilter<"Note"> | string - checkItems?: StringNullableFilter<"Note"> | string | null - labels?: StringNullableFilter<"Note"> | string | null - images?: StringNullableFilter<"Note"> | string | null - links?: StringNullableFilter<"Note"> | string | null - reminder?: DateTimeNullableFilter<"Note"> | Date | string | null - isReminderDone?: BoolFilter<"Note"> | boolean - reminderRecurrence?: StringNullableFilter<"Note"> | string | null - reminderLocation?: StringNullableFilter<"Note"> | string | null - isMarkdown?: BoolFilter<"Note"> | boolean - size?: StringFilter<"Note"> | string - embedding?: StringNullableFilter<"Note"> | string | null - sharedWith?: StringNullableFilter<"Note"> | string | null - userId?: StringNullableFilter<"Note"> | string | null - order?: IntFilter<"Note"> | number - notebookId?: StringNullableFilter<"Note"> | string | null - createdAt?: DateTimeFilter<"Note"> | Date | string - updatedAt?: DateTimeFilter<"Note"> | Date | string - contentUpdatedAt?: DateTimeFilter<"Note"> | Date | string - autoGenerated?: BoolNullableFilter<"Note"> | boolean | null - aiProvider?: StringNullableFilter<"Note"> | string | null - aiConfidence?: IntNullableFilter<"Note"> | number | null - language?: StringNullableFilter<"Note"> | string | null - languageConfidence?: FloatNullableFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null - aiFeedback?: AiFeedbackListRelationFilter - memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter - memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter - notebook?: XOR | null - user?: XOR | null - shares?: NoteShareListRelationFilter - labelRelations?: LabelListRelationFilter - }, "id"> - - export type NoteOrderByWithAggregationInput = { - id?: SortOrder - title?: SortOrderInput | SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrderInput | SortOrder - labels?: SortOrderInput | SortOrder - images?: SortOrderInput | SortOrder - links?: SortOrderInput | SortOrder - reminder?: SortOrderInput | SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrderInput | SortOrder - reminderLocation?: SortOrderInput | SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrderInput | SortOrder - sharedWith?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - order?: SortOrder - notebookId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - contentUpdatedAt?: SortOrder - autoGenerated?: SortOrderInput | SortOrder - aiProvider?: SortOrderInput | SortOrder - aiConfidence?: SortOrderInput | SortOrder - language?: SortOrderInput | SortOrder - languageConfidence?: SortOrderInput | SortOrder - lastAiAnalysis?: SortOrderInput | SortOrder - _count?: NoteCountOrderByAggregateInput - _avg?: NoteAvgOrderByAggregateInput - _max?: NoteMaxOrderByAggregateInput - _min?: NoteMinOrderByAggregateInput - _sum?: NoteSumOrderByAggregateInput - } - - export type NoteScalarWhereWithAggregatesInput = { - AND?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[] - OR?: NoteScalarWhereWithAggregatesInput[] - NOT?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Note"> | string - title?: StringNullableWithAggregatesFilter<"Note"> | string | null - content?: StringWithAggregatesFilter<"Note"> | string - color?: StringWithAggregatesFilter<"Note"> | string - isPinned?: BoolWithAggregatesFilter<"Note"> | boolean - isArchived?: BoolWithAggregatesFilter<"Note"> | boolean - type?: StringWithAggregatesFilter<"Note"> | string - checkItems?: StringNullableWithAggregatesFilter<"Note"> | string | null - labels?: StringNullableWithAggregatesFilter<"Note"> | string | null - images?: StringNullableWithAggregatesFilter<"Note"> | string | null - links?: StringNullableWithAggregatesFilter<"Note"> | string | null - reminder?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null - isReminderDone?: BoolWithAggregatesFilter<"Note"> | boolean - reminderRecurrence?: StringNullableWithAggregatesFilter<"Note"> | string | null - reminderLocation?: StringNullableWithAggregatesFilter<"Note"> | string | null - isMarkdown?: BoolWithAggregatesFilter<"Note"> | boolean - size?: StringWithAggregatesFilter<"Note"> | string - embedding?: StringNullableWithAggregatesFilter<"Note"> | string | null - sharedWith?: StringNullableWithAggregatesFilter<"Note"> | string | null - userId?: StringNullableWithAggregatesFilter<"Note"> | string | null - order?: IntWithAggregatesFilter<"Note"> | number - notebookId?: StringNullableWithAggregatesFilter<"Note"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string - contentUpdatedAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string - autoGenerated?: BoolNullableWithAggregatesFilter<"Note"> | boolean | null - aiProvider?: StringNullableWithAggregatesFilter<"Note"> | string | null - aiConfidence?: IntNullableWithAggregatesFilter<"Note"> | number | null - language?: StringNullableWithAggregatesFilter<"Note"> | string | null - languageConfidence?: FloatNullableWithAggregatesFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null - } - - export type NoteShareWhereInput = { - AND?: NoteShareWhereInput | NoteShareWhereInput[] - OR?: NoteShareWhereInput[] - NOT?: NoteShareWhereInput | NoteShareWhereInput[] - id?: StringFilter<"NoteShare"> | string - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - sharer?: XOR - user?: XOR - note?: XOR - } - - export type NoteShareOrderByWithRelationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrderInput | SortOrder - respondedAt?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - sharer?: UserOrderByWithRelationInput - user?: UserOrderByWithRelationInput - note?: NoteOrderByWithRelationInput - } - - export type NoteShareWhereUniqueInput = Prisma.AtLeast<{ - id?: string - noteId_userId?: NoteShareNoteIdUserIdCompoundUniqueInput - AND?: NoteShareWhereInput | NoteShareWhereInput[] - OR?: NoteShareWhereInput[] - NOT?: NoteShareWhereInput | NoteShareWhereInput[] - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - sharer?: XOR - user?: XOR - note?: XOR - }, "id" | "noteId_userId"> - - export type NoteShareOrderByWithAggregationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrderInput | SortOrder - respondedAt?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: NoteShareCountOrderByAggregateInput - _max?: NoteShareMaxOrderByAggregateInput - _min?: NoteShareMinOrderByAggregateInput - } - - export type NoteShareScalarWhereWithAggregatesInput = { - AND?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[] - OR?: NoteShareScalarWhereWithAggregatesInput[] - NOT?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"NoteShare"> | string - noteId?: StringWithAggregatesFilter<"NoteShare"> | string - userId?: StringWithAggregatesFilter<"NoteShare"> | string - sharedBy?: StringWithAggregatesFilter<"NoteShare"> | string - status?: StringWithAggregatesFilter<"NoteShare"> | string - permission?: StringWithAggregatesFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string - } - - export type SystemConfigWhereInput = { - AND?: SystemConfigWhereInput | SystemConfigWhereInput[] - OR?: SystemConfigWhereInput[] - NOT?: SystemConfigWhereInput | SystemConfigWhereInput[] - key?: StringFilter<"SystemConfig"> | string - value?: StringFilter<"SystemConfig"> | string - } - - export type SystemConfigOrderByWithRelationInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigWhereUniqueInput = Prisma.AtLeast<{ - key?: string - AND?: SystemConfigWhereInput | SystemConfigWhereInput[] - OR?: SystemConfigWhereInput[] - NOT?: SystemConfigWhereInput | SystemConfigWhereInput[] - value?: StringFilter<"SystemConfig"> | string - }, "key"> - - export type SystemConfigOrderByWithAggregationInput = { - key?: SortOrder - value?: SortOrder - _count?: SystemConfigCountOrderByAggregateInput - _max?: SystemConfigMaxOrderByAggregateInput - _min?: SystemConfigMinOrderByAggregateInput - } - - export type SystemConfigScalarWhereWithAggregatesInput = { - AND?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[] - OR?: SystemConfigScalarWhereWithAggregatesInput[] - NOT?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[] - key?: StringWithAggregatesFilter<"SystemConfig"> | string - value?: StringWithAggregatesFilter<"SystemConfig"> | string - } - - export type AiFeedbackWhereInput = { - AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - OR?: AiFeedbackWhereInput[] - NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - id?: StringFilter<"AiFeedback"> | string - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - user?: XOR | null - note?: XOR - } - - export type AiFeedbackOrderByWithRelationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrderInput | SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrderInput | SortOrder - metadata?: SortOrderInput | SortOrder - createdAt?: SortOrder - user?: UserOrderByWithRelationInput - note?: NoteOrderByWithRelationInput - } - - export type AiFeedbackWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - OR?: AiFeedbackWhereInput[] - NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - user?: XOR | null - note?: XOR - }, "id"> - - export type AiFeedbackOrderByWithAggregationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrderInput | SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrderInput | SortOrder - metadata?: SortOrderInput | SortOrder - createdAt?: SortOrder - _count?: AiFeedbackCountOrderByAggregateInput - _max?: AiFeedbackMaxOrderByAggregateInput - _min?: AiFeedbackMinOrderByAggregateInput - } - - export type AiFeedbackScalarWhereWithAggregatesInput = { - AND?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[] - OR?: AiFeedbackScalarWhereWithAggregatesInput[] - NOT?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"AiFeedback"> | string - noteId?: StringWithAggregatesFilter<"AiFeedback"> | string - userId?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - feedbackType?: StringWithAggregatesFilter<"AiFeedback"> | string - feature?: StringWithAggregatesFilter<"AiFeedback"> | string - originalContent?: StringWithAggregatesFilter<"AiFeedback"> | string - correctedContent?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - metadata?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"AiFeedback"> | Date | string - } - - export type MemoryEchoInsightWhereInput = { - AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - OR?: MemoryEchoInsightWhereInput[] - NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - id?: StringFilter<"MemoryEchoInsight"> | string - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - user?: XOR | null - note2?: XOR - note1?: XOR - } - - export type MemoryEchoInsightOrderByWithRelationInput = { - id?: SortOrder - userId?: SortOrderInput | SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrderInput | SortOrder - dismissed?: SortOrder - user?: UserOrderByWithRelationInput - note2?: NoteOrderByWithRelationInput - note1?: NoteOrderByWithRelationInput - } - - export type MemoryEchoInsightWhereUniqueInput = Prisma.AtLeast<{ - id?: string - userId_insightDate?: MemoryEchoInsightUserIdInsightDateCompoundUniqueInput - AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - OR?: MemoryEchoInsightWhereInput[] - NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - user?: XOR | null - note2?: XOR - note1?: XOR - }, "id" | "userId_insightDate"> - - export type MemoryEchoInsightOrderByWithAggregationInput = { - id?: SortOrder - userId?: SortOrderInput | SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrderInput | SortOrder - dismissed?: SortOrder - _count?: MemoryEchoInsightCountOrderByAggregateInput - _avg?: MemoryEchoInsightAvgOrderByAggregateInput - _max?: MemoryEchoInsightMaxOrderByAggregateInput - _min?: MemoryEchoInsightMinOrderByAggregateInput - _sum?: MemoryEchoInsightSumOrderByAggregateInput - } - - export type MemoryEchoInsightScalarWhereWithAggregatesInput = { - AND?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[] - OR?: MemoryEchoInsightScalarWhereWithAggregatesInput[] - NOT?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - userId?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - note2Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatWithAggregatesFilter<"MemoryEchoInsight"> | number - insight?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeWithAggregatesFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean - } - - export type UserAISettingsWhereInput = { - AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - OR?: UserAISettingsWhereInput[] - NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - userId?: StringFilter<"UserAISettings"> | string - titleSuggestions?: BoolFilter<"UserAISettings"> | boolean - semanticSearch?: BoolFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean - memoryEcho?: BoolFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringFilter<"UserAISettings"> | string - aiProvider?: StringFilter<"UserAISettings"> | string - preferredLanguage?: StringFilter<"UserAISettings"> | string - fontSize?: StringFilter<"UserAISettings"> | string - demoMode?: BoolFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolFilter<"UserAISettings"> | boolean - emailNotifications?: BoolFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolFilter<"UserAISettings"> | boolean - user?: XOR - } - - export type UserAISettingsOrderByWithRelationInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - user?: UserOrderByWithRelationInput - } - - export type UserAISettingsWhereUniqueInput = Prisma.AtLeast<{ - userId?: string - AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - OR?: UserAISettingsWhereInput[] - NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - titleSuggestions?: BoolFilter<"UserAISettings"> | boolean - semanticSearch?: BoolFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean - memoryEcho?: BoolFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringFilter<"UserAISettings"> | string - aiProvider?: StringFilter<"UserAISettings"> | string - preferredLanguage?: StringFilter<"UserAISettings"> | string - fontSize?: StringFilter<"UserAISettings"> | string - demoMode?: BoolFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolFilter<"UserAISettings"> | boolean - emailNotifications?: BoolFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolFilter<"UserAISettings"> | boolean - user?: XOR - }, "userId"> - - export type UserAISettingsOrderByWithAggregationInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - _count?: UserAISettingsCountOrderByAggregateInput - _max?: UserAISettingsMaxOrderByAggregateInput - _min?: UserAISettingsMinOrderByAggregateInput - } - - export type UserAISettingsScalarWhereWithAggregatesInput = { - AND?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[] - OR?: UserAISettingsScalarWhereWithAggregatesInput[] - NOT?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[] - userId?: StringWithAggregatesFilter<"UserAISettings"> | string - titleSuggestions?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - semanticSearch?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - memoryEcho?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringWithAggregatesFilter<"UserAISettings"> | string - aiProvider?: StringWithAggregatesFilter<"UserAISettings"> | string - preferredLanguage?: StringWithAggregatesFilter<"UserAISettings"> | string - fontSize?: StringWithAggregatesFilter<"UserAISettings"> | string - demoMode?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - emailNotifications?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - } - - export type UserCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type UserCreateManyInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type UserUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountCreateInput = { - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - user: UserCreateNestedOneWithoutAccountsInput - } - - export type AccountUncheckedCreateInput = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUpdateInput = { - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutAccountsNestedInput - } - - export type AccountUncheckedUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountCreateManyInput = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUpdateManyMutationInput = { - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountUncheckedUpdateManyInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionCreateInput = { - sessionToken: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - user: UserCreateNestedOneWithoutSessionsInput - } - - export type SessionUncheckedCreateInput = { - sessionToken: string - userId: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUpdateInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutSessionsNestedInput - } - - export type SessionUncheckedUpdateInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionCreateManyInput = { - sessionToken: string - userId: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUpdateManyMutationInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUncheckedUpdateManyInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenCreateInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUncheckedCreateInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUpdateInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenUncheckedUpdateInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenCreateManyInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUpdateManyMutationInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenUncheckedUpdateManyInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookCreateInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelCreateNestedManyWithoutNotebookInput - notes?: NoteCreateNestedManyWithoutNotebookInput - user: UserCreateNestedOneWithoutNotebooksInput - } - - export type NotebookUncheckedCreateInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput - notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUpdateManyWithoutNotebookNestedInput - notes?: NoteUpdateManyWithoutNotebookNestedInput - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput - } - - export type NotebookUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput - notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput - } - - export type NotebookCreateManyInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelCreateInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - user?: UserCreateNestedOneWithoutLabelsInput - notebook?: NotebookCreateNestedOneWithoutLabelsInput - notes?: NoteCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelUncheckedCreateInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutLabelsNestedInput - notebook?: NotebookUpdateOneWithoutLabelsNestedInput - notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelCreateManyInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteCreateInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type NoteCreateManyInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type NoteUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteShareCreateInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - sharer: UserCreateNestedOneWithoutSentSharesInput - user: UserCreateNestedOneWithoutReceivedSharesInput - note: NoteCreateNestedOneWithoutSharesInput - } - - export type NoteShareUncheckedCreateInput = { - id?: string - noteId: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput - user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput - note?: NoteUpdateOneRequiredWithoutSharesNestedInput - } - - export type NoteShareUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareCreateManyInput = { - id?: string - noteId: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SystemConfigCreateInput = { - key: string - value: string - } - - export type SystemConfigUncheckedCreateInput = { - key: string - value: string - } - - export type SystemConfigUpdateInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigUncheckedUpdateInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigCreateManyInput = { - key: string - value: string - } - - export type SystemConfigUpdateManyMutationInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigUncheckedUpdateManyInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type AiFeedbackCreateInput = { - id?: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - user?: UserCreateNestedOneWithoutAiFeedbackInput - note: NoteCreateNestedOneWithoutAiFeedbackInput - } - - export type AiFeedbackUncheckedCreateInput = { - id?: string - noteId: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutAiFeedbackNestedInput - note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput - } - - export type AiFeedbackUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackCreateManyInput = { - id?: string - noteId: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MemoryEchoInsightCreateInput = { - id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - } - - export type MemoryEchoInsightUncheckedCreateInput = { - id?: string - userId?: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - } - - export type MemoryEchoInsightUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightCreateManyInput = { - id?: string - userId?: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsCreateInput = { - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - user: UserCreateNestedOneWithoutAiSettingsInput - } - - export type UserAISettingsUncheckedCreateInput = { - userId: string - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUpdateInput = { - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - user?: UserUpdateOneRequiredWithoutAiSettingsNestedInput - } - - export type UserAISettingsUncheckedUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsCreateManyInput = { - userId: string - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUpdateManyMutationInput = { - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsUncheckedUpdateManyInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type StringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type AccountListRelationFilter = { - every?: AccountWhereInput - some?: AccountWhereInput - none?: AccountWhereInput - } - - export type AiFeedbackListRelationFilter = { - every?: AiFeedbackWhereInput - some?: AiFeedbackWhereInput - none?: AiFeedbackWhereInput - } - - export type LabelListRelationFilter = { - every?: LabelWhereInput - some?: LabelWhereInput - none?: LabelWhereInput - } - - export type MemoryEchoInsightListRelationFilter = { - every?: MemoryEchoInsightWhereInput - some?: MemoryEchoInsightWhereInput - none?: MemoryEchoInsightWhereInput - } - - export type NoteListRelationFilter = { - every?: NoteWhereInput - some?: NoteWhereInput - none?: NoteWhereInput - } - - export type NoteShareListRelationFilter = { - every?: NoteShareWhereInput - some?: NoteShareWhereInput - none?: NoteShareWhereInput - } - - export type NotebookListRelationFilter = { - every?: NotebookWhereInput - some?: NotebookWhereInput - none?: NotebookWhereInput - } - - export type SessionListRelationFilter = { - every?: SessionWhereInput - some?: SessionWhereInput - none?: SessionWhereInput - } - - export type UserAISettingsNullableRelationFilter = { - is?: UserAISettingsWhereInput | null - isNot?: UserAISettingsWhereInput | null - } - - export type SortOrderInput = { - sort: SortOrder - nulls?: NullsOrder - } - - export type AccountOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type AiFeedbackOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type LabelOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type MemoryEchoInsightOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type NoteOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type NoteShareOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type NotebookOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type SessionOrderByRelationAggregateInput = { - _count?: SortOrder - } - - export type UserCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type UserRelationFilter = { - is?: UserWhereInput - isNot?: UserWhereInput - } - - export type AccountProviderProviderAccountIdCompoundUniqueInput = { - provider: string - providerAccountId: string - } - - export type AccountCountOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountAvgOrderByAggregateInput = { - expires_at?: SortOrder - } - - export type AccountMaxOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountMinOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountSumOrderByAggregateInput = { - expires_at?: SortOrder - } - - export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type SessionCountOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SessionMaxOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SessionMinOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type VerificationTokenIdentifierTokenCompoundUniqueInput = { - identifier: string - token: string - } - - export type VerificationTokenCountOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenMaxOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenMinOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type IntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type NotebookCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookAvgOrderByAggregateInput = { - order?: SortOrder - } - - export type NotebookMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookSumOrderByAggregateInput = { - order?: SortOrder - } - - export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type UserNullableRelationFilter = { - is?: UserWhereInput | null - isNot?: UserWhereInput | null - } - - export type NotebookNullableRelationFilter = { - is?: NotebookWhereInput | null - isNot?: NotebookWhereInput | null - } - - export type LabelNotebookIdNameCompoundUniqueInput = { - notebookId: string - name: string - } - - export type LabelCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type LabelMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type LabelMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type BoolNullableFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null - } - - export type FloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type NoteCountOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - contentUpdatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteAvgOrderByAggregateInput = { - order?: SortOrder - aiConfidence?: SortOrder - languageConfidence?: SortOrder - } - - export type NoteMaxOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - contentUpdatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteMinOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - contentUpdatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteSumOrderByAggregateInput = { - order?: SortOrder - aiConfidence?: SortOrder - languageConfidence?: SortOrder - } - - export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedBoolNullableFilter<$PrismaModel> - _max?: NestedBoolNullableFilter<$PrismaModel> - } - - export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type NoteRelationFilter = { - is?: NoteWhereInput - isNot?: NoteWhereInput - } - - export type NoteShareNoteIdUserIdCompoundUniqueInput = { - noteId: string - userId: string - } - - export type NoteShareCountOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NoteShareMaxOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NoteShareMinOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SystemConfigCountOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigMaxOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigMinOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type AiFeedbackCountOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type AiFeedbackMaxOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type AiFeedbackMinOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type FloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type MemoryEchoInsightUserIdInsightDateCompoundUniqueInput = { - userId: string - insightDate: Date | string - } - - export type MemoryEchoInsightCountOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightAvgOrderByAggregateInput = { - similarityScore?: SortOrder - } - - export type MemoryEchoInsightMaxOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightMinOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightSumOrderByAggregateInput = { - similarityScore?: SortOrder - } - - export type FloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - export type UserAISettingsCountOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type UserAISettingsMaxOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type UserAISettingsMinOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type AccountCreateNestedManyWithoutUserInput = { - create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] - createMany?: AccountCreateManyUserInputEnvelope - connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - } - - export type AiFeedbackCreateNestedManyWithoutUserInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - } - - export type LabelCreateNestedManyWithoutUserInput = { - create?: XOR | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[] - connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[] - createMany?: LabelCreateManyUserInputEnvelope - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type MemoryEchoInsightCreateNestedManyWithoutUserInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type NoteCreateNestedManyWithoutUserInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type NoteShareCreateNestedManyWithoutSharerInput = { - create?: XOR | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[] - createMany?: NoteShareCreateManySharerInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type NoteShareCreateNestedManyWithoutUserInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type NotebookCreateNestedManyWithoutUserInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - } - - export type SessionCreateNestedManyWithoutUserInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - } - - export type UserAISettingsCreateNestedOneWithoutUserInput = { - create?: XOR - connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput - connect?: UserAISettingsWhereUniqueInput - } - - export type AccountUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] - createMany?: AccountCreateManyUserInputEnvelope - connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - } - - export type AiFeedbackUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - } - - export type LabelUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[] - connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[] - createMany?: LabelCreateManyUserInputEnvelope - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type NoteUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type NoteShareUncheckedCreateNestedManyWithoutSharerInput = { - create?: XOR | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[] - createMany?: NoteShareCreateManySharerInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type NoteShareUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type NotebookUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - } - - export type SessionUncheckedCreateNestedManyWithoutUserInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - } - - export type UserAISettingsUncheckedCreateNestedOneWithoutUserInput = { - create?: XOR - connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput - connect?: UserAISettingsWhereUniqueInput - } - - export type StringFieldUpdateOperationsInput = { - set?: string - } - - export type NullableStringFieldUpdateOperationsInput = { - set?: string | null - } - - export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null - } - - export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string - } - - export type AccountUpdateManyWithoutUserNestedInput = { - create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] - upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AccountCreateManyUserInputEnvelope - set?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] - } - - export type AiFeedbackUpdateManyWithoutUserNestedInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - } - - export type LabelUpdateManyWithoutUserNestedInput = { - create?: XOR | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[] - connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[] - createMany?: LabelCreateManyUserInputEnvelope - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type MemoryEchoInsightUpdateManyWithoutUserNestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type NoteUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type NoteShareUpdateManyWithoutSharerNestedInput = { - create?: XOR | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[] - createMany?: NoteShareCreateManySharerInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type NoteShareUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type NotebookUpdateManyWithoutUserNestedInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] - } - - export type SessionUpdateManyWithoutUserNestedInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] - } - - export type UserAISettingsUpdateOneWithoutUserNestedInput = { - create?: XOR - connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput - upsert?: UserAISettingsUpsertWithoutUserInput - disconnect?: UserAISettingsWhereInput | boolean - delete?: UserAISettingsWhereInput | boolean - connect?: UserAISettingsWhereUniqueInput - update?: XOR, UserAISettingsUncheckedUpdateWithoutUserInput> - } - - export type AccountUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] - upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AccountCreateManyUserInputEnvelope - set?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] - update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] - } - - export type AiFeedbackUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[] - createMany?: AiFeedbackCreateManyUserInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - } - - export type LabelUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[] - connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[] - createMany?: LabelCreateManyUserInputEnvelope - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[] - createMany?: MemoryEchoInsightCreateManyUserInputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type NoteUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteCreateManyUserInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type NoteShareUncheckedUpdateManyWithoutSharerNestedInput = { - create?: XOR | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[] - createMany?: NoteShareCreateManySharerInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type NoteShareUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NoteShareCreateManyUserInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type NotebookUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[] - connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[] - upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[] - createMany?: NotebookCreateManyUserInputEnvelope - set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[] - update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[] - deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[] - } - - export type SessionUncheckedUpdateManyWithoutUserNestedInput = { - create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] - upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: SessionCreateManyUserInputEnvelope - set?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] - update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[] - } - - export type UserAISettingsUncheckedUpdateOneWithoutUserNestedInput = { - create?: XOR - connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput - upsert?: UserAISettingsUpsertWithoutUserInput - disconnect?: UserAISettingsWhereInput | boolean - delete?: UserAISettingsWhereInput | boolean - connect?: UserAISettingsWhereUniqueInput - update?: XOR, UserAISettingsUncheckedUpdateWithoutUserInput> - } - - export type UserCreateNestedOneWithoutAccountsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAccountsInput - connect?: UserWhereUniqueInput - } - - export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type UserUpdateOneRequiredWithoutAccountsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAccountsInput - upsert?: UserUpsertWithoutAccountsInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutAccountsInput> - } - - export type UserCreateNestedOneWithoutSessionsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSessionsInput - connect?: UserWhereUniqueInput - } - - export type UserUpdateOneRequiredWithoutSessionsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSessionsInput - upsert?: UserUpsertWithoutSessionsInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutSessionsInput> - } - - export type LabelCreateNestedManyWithoutNotebookInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type NoteCreateNestedManyWithoutNotebookInput = { - create?: XOR | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[] - createMany?: NoteCreateManyNotebookInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type UserCreateNestedOneWithoutNotebooksInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput - connect?: UserWhereUniqueInput - } - - export type LabelUncheckedCreateNestedManyWithoutNotebookInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type NoteUncheckedCreateNestedManyWithoutNotebookInput = { - create?: XOR | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[] - createMany?: NoteCreateManyNotebookInputEnvelope - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type LabelUpdateManyWithoutNotebookNestedInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[] - updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type NoteUpdateManyWithoutNotebookNestedInput = { - create?: XOR | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutNotebookInput | NoteUpsertWithWhereUniqueWithoutNotebookInput[] - createMany?: NoteCreateManyNotebookInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutNotebookInput | NoteUpdateWithWhereUniqueWithoutNotebookInput[] - updateMany?: NoteUpdateManyWithWhereWithoutNotebookInput | NoteUpdateManyWithWhereWithoutNotebookInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type UserUpdateOneRequiredWithoutNotebooksNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput - upsert?: UserUpsertWithoutNotebooksInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutNotebooksInput> - } - - export type LabelUncheckedUpdateManyWithoutNotebookNestedInput = { - create?: XOR | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[] - createMany?: LabelCreateManyNotebookInputEnvelope - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[] - updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type NoteUncheckedUpdateManyWithoutNotebookNestedInput = { - create?: XOR | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[] - connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutNotebookInput | NoteUpsertWithWhereUniqueWithoutNotebookInput[] - createMany?: NoteCreateManyNotebookInputEnvelope - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutNotebookInput | NoteUpdateWithWhereUniqueWithoutNotebookInput[] - updateMany?: NoteUpdateManyWithWhereWithoutNotebookInput | NoteUpdateManyWithWhereWithoutNotebookInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type UserCreateNestedOneWithoutLabelsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutLabelsInput - connect?: UserWhereUniqueInput - } - - export type NotebookCreateNestedOneWithoutLabelsInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutLabelsInput - connect?: NotebookWhereUniqueInput - } - - export type NoteCreateNestedManyWithoutLabelRelationsInput = { - create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] - connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type NoteUncheckedCreateNestedManyWithoutLabelRelationsInput = { - create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] - connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - } - - export type UserUpdateOneWithoutLabelsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutLabelsInput - upsert?: UserUpsertWithoutLabelsInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutLabelsInput> - } - - export type NotebookUpdateOneWithoutLabelsNestedInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutLabelsInput - upsert?: NotebookUpsertWithoutLabelsInput - disconnect?: NotebookWhereInput | boolean - delete?: NotebookWhereInput | boolean - connect?: NotebookWhereUniqueInput - update?: XOR, NotebookUncheckedUpdateWithoutLabelsInput> - } - - export type NoteUpdateManyWithoutLabelRelationsNestedInput = { - create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] - connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutLabelRelationsInput | NoteUpsertWithWhereUniqueWithoutLabelRelationsInput[] - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutLabelRelationsInput | NoteUpdateWithWhereUniqueWithoutLabelRelationsInput[] - updateMany?: NoteUpdateManyWithWhereWithoutLabelRelationsInput | NoteUpdateManyWithWhereWithoutLabelRelationsInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput = { - create?: XOR | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[] - connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[] - upsert?: NoteUpsertWithWhereUniqueWithoutLabelRelationsInput | NoteUpsertWithWhereUniqueWithoutLabelRelationsInput[] - set?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[] - update?: NoteUpdateWithWhereUniqueWithoutLabelRelationsInput | NoteUpdateWithWhereUniqueWithoutLabelRelationsInput[] - updateMany?: NoteUpdateManyWithWhereWithoutLabelRelationsInput | NoteUpdateManyWithWhereWithoutLabelRelationsInput[] - deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[] - } - - export type AiFeedbackCreateNestedManyWithoutNoteInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - } - - export type MemoryEchoInsightCreateNestedManyWithoutNote2Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type MemoryEchoInsightCreateNestedManyWithoutNote1Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type NotebookCreateNestedOneWithoutNotesInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput - connect?: NotebookWhereUniqueInput - } - - export type UserCreateNestedOneWithoutNotesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotesInput - connect?: UserWhereUniqueInput - } - - export type NoteShareCreateNestedManyWithoutNoteInput = { - create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] - createMany?: NoteShareCreateManyNoteInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type LabelCreateNestedManyWithoutNotesInput = { - create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type AiFeedbackUncheckedCreateNestedManyWithoutNoteInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - } - - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - } - - export type NoteShareUncheckedCreateNestedManyWithoutNoteInput = { - create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] - createMany?: NoteShareCreateManyNoteInputEnvelope - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - } - - export type LabelUncheckedCreateNestedManyWithoutNotesInput = { - create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - } - - export type BoolFieldUpdateOperationsInput = { - set?: boolean - } - - export type NullableBoolFieldUpdateOperationsInput = { - set?: boolean | null - } - - export type NullableFloatFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type AiFeedbackUpdateManyWithoutNoteNestedInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - } - - export type MemoryEchoInsightUpdateManyWithoutNote2NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type MemoryEchoInsightUpdateManyWithoutNote1NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type NotebookUpdateOneWithoutNotesNestedInput = { - create?: XOR - connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput - upsert?: NotebookUpsertWithoutNotesInput - disconnect?: NotebookWhereInput | boolean - delete?: NotebookWhereInput | boolean - connect?: NotebookWhereUniqueInput - update?: XOR, NotebookUncheckedUpdateWithoutNotesInput> - } - - export type UserUpdateOneWithoutNotesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutNotesInput - upsert?: UserUpsertWithoutNotesInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutNotesInput> - } - - export type NoteShareUpdateManyWithoutNoteNestedInput = { - create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[] - createMany?: NoteShareCreateManyNoteInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type LabelUpdateManyWithoutNotesNestedInput = { - create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutNotesInput | LabelUpsertWithWhereUniqueWithoutNotesInput[] - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutNotesInput | LabelUpdateWithWhereUniqueWithoutNotesInput[] - updateMany?: LabelUpdateManyWithWhereWithoutNotesInput | LabelUpdateManyWithWhereWithoutNotesInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput = { - create?: XOR | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[] - connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[] - upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[] - createMany?: AiFeedbackCreateManyNoteInputEnvelope - set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[] - update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[] - updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[] - deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[] - createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput = { - create?: XOR | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[] - connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[] - upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[] - createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope - set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[] - update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[] - updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[] - deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - } - - export type NoteShareUncheckedUpdateManyWithoutNoteNestedInput = { - create?: XOR | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[] - connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[] - upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[] - createMany?: NoteShareCreateManyNoteInputEnvelope - set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[] - update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[] - updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[] - deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - } - - export type LabelUncheckedUpdateManyWithoutNotesNestedInput = { - create?: XOR | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[] - connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[] - upsert?: LabelUpsertWithWhereUniqueWithoutNotesInput | LabelUpsertWithWhereUniqueWithoutNotesInput[] - set?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[] - update?: LabelUpdateWithWhereUniqueWithoutNotesInput | LabelUpdateWithWhereUniqueWithoutNotesInput[] - updateMany?: LabelUpdateManyWithWhereWithoutNotesInput | LabelUpdateManyWithWhereWithoutNotesInput[] - deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[] - } - - export type UserCreateNestedOneWithoutSentSharesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput - connect?: UserWhereUniqueInput - } - - export type UserCreateNestedOneWithoutReceivedSharesInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput - connect?: UserWhereUniqueInput - } - - export type NoteCreateNestedOneWithoutSharesInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutSharesInput - connect?: NoteWhereUniqueInput - } - - export type UserUpdateOneRequiredWithoutSentSharesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput - upsert?: UserUpsertWithoutSentSharesInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutSentSharesInput> - } - - export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput - upsert?: UserUpsertWithoutReceivedSharesInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutReceivedSharesInput> - } - - export type NoteUpdateOneRequiredWithoutSharesNestedInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutSharesInput - upsert?: NoteUpsertWithoutSharesInput - connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutSharesInput> - } - - export type UserCreateNestedOneWithoutAiFeedbackInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAiFeedbackInput - connect?: UserWhereUniqueInput - } - - export type NoteCreateNestedOneWithoutAiFeedbackInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput - connect?: NoteWhereUniqueInput - } - - export type UserUpdateOneWithoutAiFeedbackNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAiFeedbackInput - upsert?: UserUpsertWithoutAiFeedbackInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutAiFeedbackInput> - } - - export type NoteUpdateOneRequiredWithoutAiFeedbackNestedInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput - upsert?: NoteUpsertWithoutAiFeedbackInput - connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutAiFeedbackInput> - } - - export type UserCreateNestedOneWithoutMemoryEchoInsightsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput - connect?: UserWhereUniqueInput - } - - export type NoteCreateNestedOneWithoutMemoryEchoAsNote2Input = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote2Input - connect?: NoteWhereUniqueInput - } - - export type NoteCreateNestedOneWithoutMemoryEchoAsNote1Input = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input - connect?: NoteWhereUniqueInput - } - - export type FloatFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type UserUpdateOneWithoutMemoryEchoInsightsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput - upsert?: UserUpsertWithoutMemoryEchoInsightsInput - disconnect?: UserWhereInput | boolean - delete?: UserWhereInput | boolean - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutMemoryEchoInsightsInput> - } - - export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote2Input - upsert?: NoteUpsertWithoutMemoryEchoAsNote2Input - connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input> - } - - export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput = { - create?: XOR - connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input - upsert?: NoteUpsertWithoutMemoryEchoAsNote1Input - connect?: NoteWhereUniqueInput - update?: XOR, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input> - } - - export type UserCreateNestedOneWithoutAiSettingsInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput - connect?: UserWhereUniqueInput - } - - export type UserUpdateOneRequiredWithoutAiSettingsNestedInput = { - create?: XOR - connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput - upsert?: UserUpsertWithoutAiSettingsInput - connect?: UserWhereUniqueInput - update?: XOR, UserUncheckedUpdateWithoutAiSettingsInput> - } - - export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type NestedBoolNullableFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null - } - - export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedBoolNullableFilter<$PrismaModel> - _max?: NestedBoolNullableFilter<$PrismaModel> - } - - export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - export type AccountCreateWithoutUserInput = { - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUncheckedCreateWithoutUserInput = { - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountCreateOrConnectWithoutUserInput = { - where: AccountWhereUniqueInput - create: XOR - } - - export type AccountCreateManyUserInputEnvelope = { - data: AccountCreateManyUserInput | AccountCreateManyUserInput[] - } - - export type AiFeedbackCreateWithoutUserInput = { - id?: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - note: NoteCreateNestedOneWithoutAiFeedbackInput - } - - export type AiFeedbackUncheckedCreateWithoutUserInput = { - id?: string - noteId: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackCreateOrConnectWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - create: XOR - } - - export type AiFeedbackCreateManyUserInputEnvelope = { - data: AiFeedbackCreateManyUserInput | AiFeedbackCreateManyUserInput[] - } - - export type LabelCreateWithoutUserInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - notebook?: NotebookCreateNestedOneWithoutLabelsInput - notes?: NoteCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelUncheckedCreateWithoutUserInput = { - id?: string - name: string - color?: string - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelCreateOrConnectWithoutUserInput = { - where: LabelWhereUniqueInput - create: XOR - } - - export type LabelCreateManyUserInputEnvelope = { - data: LabelCreateManyUserInput | LabelCreateManyUserInput[] - } - - export type MemoryEchoInsightCreateWithoutUserInput = { - id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - } - - export type MemoryEchoInsightUncheckedCreateWithoutUserInput = { - id?: string - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightCreateOrConnectWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - create: XOR - } - - export type MemoryEchoInsightCreateManyUserInputEnvelope = { - data: MemoryEchoInsightCreateManyUserInput | MemoryEchoInsightCreateManyUserInput[] - } - - export type NoteCreateWithoutUserInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutUserInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutUserInput = { - where: NoteWhereUniqueInput - create: XOR - } - - export type NoteCreateManyUserInputEnvelope = { - data: NoteCreateManyUserInput | NoteCreateManyUserInput[] - } - - export type NoteShareCreateWithoutSharerInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - user: UserCreateNestedOneWithoutReceivedSharesInput - note: NoteCreateNestedOneWithoutSharesInput - } - - export type NoteShareUncheckedCreateWithoutSharerInput = { - id?: string - noteId: string - userId: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateOrConnectWithoutSharerInput = { - where: NoteShareWhereUniqueInput - create: XOR - } - - export type NoteShareCreateManySharerInputEnvelope = { - data: NoteShareCreateManySharerInput | NoteShareCreateManySharerInput[] - } - - export type NoteShareCreateWithoutUserInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - sharer: UserCreateNestedOneWithoutSentSharesInput - note: NoteCreateNestedOneWithoutSharesInput - } - - export type NoteShareUncheckedCreateWithoutUserInput = { - id?: string - noteId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateOrConnectWithoutUserInput = { - where: NoteShareWhereUniqueInput - create: XOR - } - - export type NoteShareCreateManyUserInputEnvelope = { - data: NoteShareCreateManyUserInput | NoteShareCreateManyUserInput[] - } - - export type NotebookCreateWithoutUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelCreateNestedManyWithoutNotebookInput - notes?: NoteCreateNestedManyWithoutNotebookInput - } - - export type NotebookUncheckedCreateWithoutUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput - notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookCreateOrConnectWithoutUserInput = { - where: NotebookWhereUniqueInput - create: XOR - } - - export type NotebookCreateManyUserInputEnvelope = { - data: NotebookCreateManyUserInput | NotebookCreateManyUserInput[] - } - - export type SessionCreateWithoutUserInput = { - sessionToken: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUncheckedCreateWithoutUserInput = { - sessionToken: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionCreateOrConnectWithoutUserInput = { - where: SessionWhereUniqueInput - create: XOR - } - - export type SessionCreateManyUserInputEnvelope = { - data: SessionCreateManyUserInput | SessionCreateManyUserInput[] - } - - export type UserAISettingsCreateWithoutUserInput = { - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUncheckedCreateWithoutUserInput = { - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsCreateOrConnectWithoutUserInput = { - where: UserAISettingsWhereUniqueInput - create: XOR - } - - export type AccountUpsertWithWhereUniqueWithoutUserInput = { - where: AccountWhereUniqueInput - update: XOR - create: XOR - } - - export type AccountUpdateWithWhereUniqueWithoutUserInput = { - where: AccountWhereUniqueInput - data: XOR - } - - export type AccountUpdateManyWithWhereWithoutUserInput = { - where: AccountScalarWhereInput - data: XOR - } - - export type AccountScalarWhereInput = { - AND?: AccountScalarWhereInput | AccountScalarWhereInput[] - OR?: AccountScalarWhereInput[] - NOT?: AccountScalarWhereInput | AccountScalarWhereInput[] - userId?: StringFilter<"Account"> | string - type?: StringFilter<"Account"> | string - provider?: StringFilter<"Account"> | string - providerAccountId?: StringFilter<"Account"> | string - refresh_token?: StringNullableFilter<"Account"> | string | null - access_token?: StringNullableFilter<"Account"> | string | null - expires_at?: IntNullableFilter<"Account"> | number | null - token_type?: StringNullableFilter<"Account"> | string | null - scope?: StringNullableFilter<"Account"> | string | null - id_token?: StringNullableFilter<"Account"> | string | null - session_state?: StringNullableFilter<"Account"> | string | null - createdAt?: DateTimeFilter<"Account"> | Date | string - updatedAt?: DateTimeFilter<"Account"> | Date | string - } - - export type AiFeedbackUpsertWithWhereUniqueWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - update: XOR - create: XOR - } - - export type AiFeedbackUpdateWithWhereUniqueWithoutUserInput = { - where: AiFeedbackWhereUniqueInput - data: XOR - } - - export type AiFeedbackUpdateManyWithWhereWithoutUserInput = { - where: AiFeedbackScalarWhereInput - data: XOR - } - - export type AiFeedbackScalarWhereInput = { - AND?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - OR?: AiFeedbackScalarWhereInput[] - NOT?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[] - id?: StringFilter<"AiFeedback"> | string - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - } - - export type LabelUpsertWithWhereUniqueWithoutUserInput = { - where: LabelWhereUniqueInput - update: XOR - create: XOR - } - - export type LabelUpdateWithWhereUniqueWithoutUserInput = { - where: LabelWhereUniqueInput - data: XOR - } - - export type LabelUpdateManyWithWhereWithoutUserInput = { - where: LabelScalarWhereInput - data: XOR - } - - export type LabelScalarWhereInput = { - AND?: LabelScalarWhereInput | LabelScalarWhereInput[] - OR?: LabelScalarWhereInput[] - NOT?: LabelScalarWhereInput | LabelScalarWhereInput[] - id?: StringFilter<"Label"> | string - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string - } - - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR - } - - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR - } - - export type MemoryEchoInsightUpdateManyWithWhereWithoutUserInput = { - where: MemoryEchoInsightScalarWhereInput - data: XOR - } - - export type MemoryEchoInsightScalarWhereInput = { - AND?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - OR?: MemoryEchoInsightScalarWhereInput[] - NOT?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[] - id?: StringFilter<"MemoryEchoInsight"> | string - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - } - - export type NoteUpsertWithWhereUniqueWithoutUserInput = { - where: NoteWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteUpdateWithWhereUniqueWithoutUserInput = { - where: NoteWhereUniqueInput - data: XOR - } - - export type NoteUpdateManyWithWhereWithoutUserInput = { - where: NoteScalarWhereInput - data: XOR - } - - export type NoteScalarWhereInput = { - AND?: NoteScalarWhereInput | NoteScalarWhereInput[] - OR?: NoteScalarWhereInput[] - NOT?: NoteScalarWhereInput | NoteScalarWhereInput[] - id?: StringFilter<"Note"> | string - title?: StringNullableFilter<"Note"> | string | null - content?: StringFilter<"Note"> | string - color?: StringFilter<"Note"> | string - isPinned?: BoolFilter<"Note"> | boolean - isArchived?: BoolFilter<"Note"> | boolean - type?: StringFilter<"Note"> | string - checkItems?: StringNullableFilter<"Note"> | string | null - labels?: StringNullableFilter<"Note"> | string | null - images?: StringNullableFilter<"Note"> | string | null - links?: StringNullableFilter<"Note"> | string | null - reminder?: DateTimeNullableFilter<"Note"> | Date | string | null - isReminderDone?: BoolFilter<"Note"> | boolean - reminderRecurrence?: StringNullableFilter<"Note"> | string | null - reminderLocation?: StringNullableFilter<"Note"> | string | null - isMarkdown?: BoolFilter<"Note"> | boolean - size?: StringFilter<"Note"> | string - embedding?: StringNullableFilter<"Note"> | string | null - sharedWith?: StringNullableFilter<"Note"> | string | null - userId?: StringNullableFilter<"Note"> | string | null - order?: IntFilter<"Note"> | number - notebookId?: StringNullableFilter<"Note"> | string | null - createdAt?: DateTimeFilter<"Note"> | Date | string - updatedAt?: DateTimeFilter<"Note"> | Date | string - contentUpdatedAt?: DateTimeFilter<"Note"> | Date | string - autoGenerated?: BoolNullableFilter<"Note"> | boolean | null - aiProvider?: StringNullableFilter<"Note"> | string | null - aiConfidence?: IntNullableFilter<"Note"> | number | null - language?: StringNullableFilter<"Note"> | string | null - languageConfidence?: FloatNullableFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null - } - - export type NoteShareUpsertWithWhereUniqueWithoutSharerInput = { - where: NoteShareWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteShareUpdateWithWhereUniqueWithoutSharerInput = { - where: NoteShareWhereUniqueInput - data: XOR - } - - export type NoteShareUpdateManyWithWhereWithoutSharerInput = { - where: NoteShareScalarWhereInput - data: XOR - } - - export type NoteShareScalarWhereInput = { - AND?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - OR?: NoteShareScalarWhereInput[] - NOT?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[] - id?: StringFilter<"NoteShare"> | string - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - } - - export type NoteShareUpsertWithWhereUniqueWithoutUserInput = { - where: NoteShareWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteShareUpdateWithWhereUniqueWithoutUserInput = { - where: NoteShareWhereUniqueInput - data: XOR - } - - export type NoteShareUpdateManyWithWhereWithoutUserInput = { - where: NoteShareScalarWhereInput - data: XOR - } - - export type NotebookUpsertWithWhereUniqueWithoutUserInput = { - where: NotebookWhereUniqueInput - update: XOR - create: XOR - } - - export type NotebookUpdateWithWhereUniqueWithoutUserInput = { - where: NotebookWhereUniqueInput - data: XOR - } - - export type NotebookUpdateManyWithWhereWithoutUserInput = { - where: NotebookScalarWhereInput - data: XOR - } - - export type NotebookScalarWhereInput = { - AND?: NotebookScalarWhereInput | NotebookScalarWhereInput[] - OR?: NotebookScalarWhereInput[] - NOT?: NotebookScalarWhereInput | NotebookScalarWhereInput[] - id?: StringFilter<"Notebook"> | string - name?: StringFilter<"Notebook"> | string - icon?: StringNullableFilter<"Notebook"> | string | null - color?: StringNullableFilter<"Notebook"> | string | null - order?: IntFilter<"Notebook"> | number - userId?: StringFilter<"Notebook"> | string - createdAt?: DateTimeFilter<"Notebook"> | Date | string - updatedAt?: DateTimeFilter<"Notebook"> | Date | string - } - - export type SessionUpsertWithWhereUniqueWithoutUserInput = { - where: SessionWhereUniqueInput - update: XOR - create: XOR - } - - export type SessionUpdateWithWhereUniqueWithoutUserInput = { - where: SessionWhereUniqueInput - data: XOR - } - - export type SessionUpdateManyWithWhereWithoutUserInput = { - where: SessionScalarWhereInput - data: XOR - } - - export type SessionScalarWhereInput = { - AND?: SessionScalarWhereInput | SessionScalarWhereInput[] - OR?: SessionScalarWhereInput[] - NOT?: SessionScalarWhereInput | SessionScalarWhereInput[] - sessionToken?: StringFilter<"Session"> | string - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string - } - - export type UserAISettingsUpsertWithoutUserInput = { - update: XOR - create: XOR - where?: UserAISettingsWhereInput - } - - export type UserAISettingsUpdateToOneWithWhereWithoutUserInput = { - where?: UserAISettingsWhereInput - data: XOR - } - - export type UserAISettingsUpdateWithoutUserInput = { - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsUncheckedUpdateWithoutUserInput = { - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserCreateWithoutAccountsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutAccountsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutAccountsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutAccountsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutAccountsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutAccountsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutAccountsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type UserCreateWithoutSessionsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutSessionsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutSessionsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutSessionsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutSessionsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutSessionsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutSessionsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type LabelCreateWithoutNotebookInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - user?: UserCreateNestedOneWithoutLabelsInput - notes?: NoteCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelUncheckedCreateWithoutNotebookInput = { - id?: string - name: string - color?: string - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput - } - - export type LabelCreateOrConnectWithoutNotebookInput = { - where: LabelWhereUniqueInput - create: XOR - } - - export type LabelCreateManyNotebookInputEnvelope = { - data: LabelCreateManyNotebookInput | LabelCreateManyNotebookInput[] - } - - export type NoteCreateWithoutNotebookInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutNotebookInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutNotebookInput = { - where: NoteWhereUniqueInput - create: XOR - } - - export type NoteCreateManyNotebookInputEnvelope = { - data: NoteCreateManyNotebookInput | NoteCreateManyNotebookInput[] - } - - export type UserCreateWithoutNotebooksInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutNotebooksInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutNotebooksInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type LabelUpsertWithWhereUniqueWithoutNotebookInput = { - where: LabelWhereUniqueInput - update: XOR - create: XOR - } - - export type LabelUpdateWithWhereUniqueWithoutNotebookInput = { - where: LabelWhereUniqueInput - data: XOR - } - - export type LabelUpdateManyWithWhereWithoutNotebookInput = { - where: LabelScalarWhereInput - data: XOR - } - - export type NoteUpsertWithWhereUniqueWithoutNotebookInput = { - where: NoteWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteUpdateWithWhereUniqueWithoutNotebookInput = { - where: NoteWhereUniqueInput - data: XOR - } - - export type NoteUpdateManyWithWhereWithoutNotebookInput = { - where: NoteScalarWhereInput - data: XOR - } - - export type UserUpsertWithoutNotebooksInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutNotebooksInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutNotebooksInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutNotebooksInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type UserCreateWithoutLabelsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutLabelsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutLabelsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NotebookCreateWithoutLabelsInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteCreateNestedManyWithoutNotebookInput - user: UserCreateNestedOneWithoutNotebooksInput - } - - export type NotebookUncheckedCreateWithoutLabelsInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookCreateOrConnectWithoutLabelsInput = { - where: NotebookWhereUniqueInput - create: XOR - } - - export type NoteCreateWithoutLabelRelationsInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - } - - export type NoteUncheckedCreateWithoutLabelRelationsInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - } - - export type NoteCreateOrConnectWithoutLabelRelationsInput = { - where: NoteWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutLabelsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutLabelsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type NotebookUpsertWithoutLabelsInput = { - update: XOR - create: XOR - where?: NotebookWhereInput - } - - export type NotebookUpdateToOneWithWhereWithoutLabelsInput = { - where?: NotebookWhereInput - data: XOR - } - - export type NotebookUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUpdateManyWithoutNotebookNestedInput - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput - } - - export type NotebookUncheckedUpdateWithoutLabelsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput - } - - export type NoteUpsertWithWhereUniqueWithoutLabelRelationsInput = { - where: NoteWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteUpdateWithWhereUniqueWithoutLabelRelationsInput = { - where: NoteWhereUniqueInput - data: XOR - } - - export type NoteUpdateManyWithWhereWithoutLabelRelationsInput = { - where: NoteScalarWhereInput - data: XOR - } - - export type AiFeedbackCreateWithoutNoteInput = { - id?: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - user?: UserCreateNestedOneWithoutAiFeedbackInput - } - - export type AiFeedbackUncheckedCreateWithoutNoteInput = { - id?: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackCreateOrConnectWithoutNoteInput = { - where: AiFeedbackWhereUniqueInput - create: XOR - } - - export type AiFeedbackCreateManyNoteInputEnvelope = { - data: AiFeedbackCreateManyNoteInput | AiFeedbackCreateManyNoteInput[] - } - - export type MemoryEchoInsightCreateWithoutNote2Input = { - id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput - note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input - } - - export type MemoryEchoInsightUncheckedCreateWithoutNote2Input = { - id?: string - userId?: string | null - note1Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightCreateOrConnectWithoutNote2Input = { - where: MemoryEchoInsightWhereUniqueInput - create: XOR - } - - export type MemoryEchoInsightCreateManyNote2InputEnvelope = { - data: MemoryEchoInsightCreateManyNote2Input | MemoryEchoInsightCreateManyNote2Input[] - } - - export type MemoryEchoInsightCreateWithoutNote1Input = { - id?: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput - note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input - } - - export type MemoryEchoInsightUncheckedCreateWithoutNote1Input = { - id?: string - userId?: string | null - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightCreateOrConnectWithoutNote1Input = { - where: MemoryEchoInsightWhereUniqueInput - create: XOR - } - - export type MemoryEchoInsightCreateManyNote1InputEnvelope = { - data: MemoryEchoInsightCreateManyNote1Input | MemoryEchoInsightCreateManyNote1Input[] - } - - export type NotebookCreateWithoutNotesInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelCreateNestedManyWithoutNotebookInput - user: UserCreateNestedOneWithoutNotebooksInput - } - - export type NotebookUncheckedCreateWithoutNotesInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput - } - - export type NotebookCreateOrConnectWithoutNotesInput = { - where: NotebookWhereUniqueInput - create: XOR - } - - export type UserCreateWithoutNotesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutNotesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutNotesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteShareCreateWithoutNoteInput = { - id?: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - sharer: UserCreateNestedOneWithoutSentSharesInput - user: UserCreateNestedOneWithoutReceivedSharesInput - } - - export type NoteShareUncheckedCreateWithoutNoteInput = { - id?: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateOrConnectWithoutNoteInput = { - where: NoteShareWhereUniqueInput - create: XOR - } - - export type NoteShareCreateManyNoteInputEnvelope = { - data: NoteShareCreateManyNoteInput | NoteShareCreateManyNoteInput[] - } - - export type LabelCreateWithoutNotesInput = { - id?: string - name: string - color?: string - createdAt?: Date | string - updatedAt?: Date | string - user?: UserCreateNestedOneWithoutLabelsInput - notebook?: NotebookCreateNestedOneWithoutLabelsInput - } - - export type LabelUncheckedCreateWithoutNotesInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelCreateOrConnectWithoutNotesInput = { - where: LabelWhereUniqueInput - create: XOR - } - - export type AiFeedbackUpsertWithWhereUniqueWithoutNoteInput = { - where: AiFeedbackWhereUniqueInput - update: XOR - create: XOR - } - - export type AiFeedbackUpdateWithWhereUniqueWithoutNoteInput = { - where: AiFeedbackWhereUniqueInput - data: XOR - } - - export type AiFeedbackUpdateManyWithWhereWithoutNoteInput = { - where: AiFeedbackScalarWhereInput - data: XOR - } - - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR - } - - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR - } - - export type MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input = { - where: MemoryEchoInsightScalarWhereInput - data: XOR - } - - export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input = { - where: MemoryEchoInsightWhereUniqueInput - update: XOR - create: XOR - } - - export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input = { - where: MemoryEchoInsightWhereUniqueInput - data: XOR - } - - export type MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input = { - where: MemoryEchoInsightScalarWhereInput - data: XOR - } - - export type NotebookUpsertWithoutNotesInput = { - update: XOR - create: XOR - where?: NotebookWhereInput - } - - export type NotebookUpdateToOneWithWhereWithoutNotesInput = { - where?: NotebookWhereInput - data: XOR - } - - export type NotebookUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUpdateManyWithoutNotebookNestedInput - user?: UserUpdateOneRequiredWithoutNotebooksNestedInput - } - - export type NotebookUncheckedUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput - } - - export type UserUpsertWithoutNotesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutNotesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type NoteShareUpsertWithWhereUniqueWithoutNoteInput = { - where: NoteShareWhereUniqueInput - update: XOR - create: XOR - } - - export type NoteShareUpdateWithWhereUniqueWithoutNoteInput = { - where: NoteShareWhereUniqueInput - data: XOR - } - - export type NoteShareUpdateManyWithWhereWithoutNoteInput = { - where: NoteShareScalarWhereInput - data: XOR - } - - export type LabelUpsertWithWhereUniqueWithoutNotesInput = { - where: LabelWhereUniqueInput - update: XOR - create: XOR - } - - export type LabelUpdateWithWhereUniqueWithoutNotesInput = { - where: LabelWhereUniqueInput - data: XOR - } - - export type LabelUpdateManyWithWhereWithoutNotesInput = { - where: LabelScalarWhereInput - data: XOR - } - - export type UserCreateWithoutSentSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutSentSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutSentSharesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserCreateWithoutReceivedSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutReceivedSharesInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutReceivedSharesInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteCreateWithoutSharesInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutSharesInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutSharesInput = { - where: NoteWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutSentSharesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutSentSharesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutSentSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutSentSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type UserUpsertWithoutReceivedSharesInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutReceivedSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutReceivedSharesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type NoteUpsertWithoutSharesInput = { - update: XOR - create: XOR - where?: NoteWhereInput - } - - export type NoteUpdateToOneWithWhereWithoutSharesInput = { - where?: NoteWhereInput - data: XOR - } - - export type NoteUpdateWithoutSharesInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutSharesInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type UserCreateWithoutAiFeedbackInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutAiFeedbackInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutAiFeedbackInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteCreateWithoutAiFeedbackInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutAiFeedbackInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutAiFeedbackInput = { - where: NoteWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutAiFeedbackInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutAiFeedbackInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type NoteUpsertWithoutAiFeedbackInput = { - update: XOR - create: XOR - where?: NoteWhereInput - } - - export type NoteUpdateToOneWithWhereWithoutAiFeedbackInput = { - where?: NoteWhereInput - data: XOR - } - - export type NoteUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutAiFeedbackInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type UserCreateWithoutMemoryEchoInsightsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput - } - - export type UserUncheckedCreateWithoutMemoryEchoInsightsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput - } - - export type UserCreateOrConnectWithoutMemoryEchoInsightsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type NoteCreateWithoutMemoryEchoAsNote2Input = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutMemoryEchoAsNote2Input = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutMemoryEchoAsNote2Input = { - where: NoteWhereUniqueInput - create: XOR - } - - export type NoteCreateWithoutMemoryEchoAsNote1Input = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input - notebook?: NotebookCreateNestedOneWithoutNotesInput - user?: UserCreateNestedOneWithoutNotesInput - shares?: NoteShareCreateNestedManyWithoutNoteInput - labelRelations?: LabelCreateNestedManyWithoutNotesInput - } - - export type NoteUncheckedCreateWithoutMemoryEchoAsNote1Input = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input - shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput - labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput - } - - export type NoteCreateOrConnectWithoutMemoryEchoAsNote1Input = { - where: NoteWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutMemoryEchoInsightsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutMemoryEchoInsightsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutMemoryEchoInsightsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutMemoryEchoInsightsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput - } - - export type NoteUpsertWithoutMemoryEchoAsNote2Input = { - update: XOR - create: XOR - where?: NoteWhereInput - } - - export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote2Input = { - where?: NoteWhereInput - data: XOR - } - - export type NoteUpdateWithoutMemoryEchoAsNote2Input = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type NoteUpsertWithoutMemoryEchoAsNote1Input = { - update: XOR - create: XOR - where?: NoteWhereInput - } - - export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote1Input = { - where?: NoteWhereInput - data: XOR - } - - export type NoteUpdateWithoutMemoryEchoAsNote1Input = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type UserCreateWithoutAiSettingsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput - labels?: LabelCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput - notes?: NoteCreateNestedManyWithoutUserInput - sentShares?: NoteShareCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareCreateNestedManyWithoutUserInput - notebooks?: NotebookCreateNestedManyWithoutUserInput - sessions?: SessionCreateNestedManyWithoutUserInput - } - - export type UserUncheckedCreateWithoutAiSettingsInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: AccountUncheckedCreateNestedManyWithoutUserInput - aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput - labels?: LabelUncheckedCreateNestedManyWithoutUserInput - memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput - notes?: NoteUncheckedCreateNestedManyWithoutUserInput - sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput - receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput - notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput - sessions?: SessionUncheckedCreateNestedManyWithoutUserInput - } - - export type UserCreateOrConnectWithoutAiSettingsInput = { - where: UserWhereUniqueInput - create: XOR - } - - export type UserUpsertWithoutAiSettingsInput = { - update: XOR - create: XOR - where?: UserWhereInput - } - - export type UserUpdateToOneWithWhereWithoutAiSettingsInput = { - where?: UserWhereInput - data: XOR - } - - export type UserUpdateWithoutAiSettingsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput - labels?: LabelUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput - notes?: NoteUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUpdateManyWithoutUserNestedInput - notebooks?: NotebookUpdateManyWithoutUserNestedInput - sessions?: SessionUpdateManyWithoutUserNestedInput - } - - export type UserUncheckedUpdateWithoutAiSettingsInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput - labels?: LabelUncheckedUpdateManyWithoutUserNestedInput - memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput - notes?: NoteUncheckedUpdateManyWithoutUserNestedInput - sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput - receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput - notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput - sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput - } - - export type AccountCreateManyUserInput = { - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AiFeedbackCreateManyUserInput = { - id?: string - noteId: string - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type LabelCreateManyUserInput = { - id?: string - name: string - color?: string - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type MemoryEchoInsightCreateManyUserInput = { - id?: string - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type NoteCreateManyUserInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type NoteShareCreateManySharerInput = { - id?: string - noteId: string - userId: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareCreateManyUserInput = { - id?: string - noteId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookCreateManyUserInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionCreateManyUserInput = { - sessionToken: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUpdateWithoutUserInput = { - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountUncheckedUpdateWithoutUserInput = { - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountUncheckedUpdateManyWithoutUserInput = { - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput - } - - export type AiFeedbackUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notebook?: NotebookUpdateOneWithoutLabelsNestedInput - notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MemoryEchoInsightUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - } - - export type MemoryEchoInsightUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type NoteUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteShareUpdateWithoutSharerInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput - note?: NoteUpdateOneRequiredWithoutSharesNestedInput - } - - export type NoteShareUncheckedUpdateWithoutSharerInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyWithoutSharerInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput - note?: NoteUpdateOneRequiredWithoutSharesNestedInput - } - - export type NoteShareUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUpdateManyWithoutNotebookNestedInput - notes?: NoteUpdateManyWithoutNotebookNestedInput - } - - export type NotebookUncheckedUpdateWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput - notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput - } - - export type NotebookUncheckedUpdateManyWithoutUserInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUpdateWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUncheckedUpdateWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUncheckedUpdateManyWithoutUserInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelCreateManyNotebookInput = { - id?: string - name: string - color?: string - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteCreateManyNotebookInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - createdAt?: Date | string - updatedAt?: Date | string - contentUpdatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type LabelUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutLabelsNestedInput - notes?: NoteUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput - } - - export type LabelUncheckedUpdateManyWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput - } - - export type NoteUncheckedUpdateManyWithoutNotebookInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteUpdateWithoutLabelRelationsInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput - notebook?: NotebookUpdateOneWithoutNotesNestedInput - user?: UserUpdateOneWithoutNotesNestedInput - shares?: NoteShareUpdateManyWithoutNoteNestedInput - } - - export type NoteUncheckedUpdateWithoutLabelRelationsInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput - memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput - memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput - shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput - } - - export type NoteUncheckedUpdateManyWithoutLabelRelationsInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - contentUpdatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type AiFeedbackCreateManyNoteInput = { - id?: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type MemoryEchoInsightCreateManyNote2Input = { - id?: string - userId?: string | null - note1Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightCreateManyNote1Input = { - id?: string - userId?: string | null - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type NoteShareCreateManyNoteInput = { - id?: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AiFeedbackUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutAiFeedbackNestedInput - } - - export type AiFeedbackUncheckedUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUncheckedUpdateManyWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MemoryEchoInsightUpdateWithoutNote2Input = { - id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput - note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput - } - - export type MemoryEchoInsightUncheckedUpdateWithoutNote2Input = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2Input = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUpdateWithoutNote1Input = { - id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput - note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput - } - - export type MemoryEchoInsightUncheckedUpdateWithoutNote1Input = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1Input = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type NoteShareUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput - user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput - } - - export type NoteShareUncheckedUpdateWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyWithoutNoteInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - user?: UserUpdateOneWithoutLabelsNestedInput - notebook?: NotebookUpdateOneWithoutLabelsNestedInput - } - - export type LabelUncheckedUpdateWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUncheckedUpdateManyWithoutNotesInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - - - /** - * Aliases for legacy arg types - */ - /** - * @deprecated Use UserCountOutputTypeDefaultArgs instead - */ - export type UserCountOutputTypeArgs = UserCountOutputTypeDefaultArgs - /** - * @deprecated Use NotebookCountOutputTypeDefaultArgs instead - */ - export type NotebookCountOutputTypeArgs = NotebookCountOutputTypeDefaultArgs - /** - * @deprecated Use LabelCountOutputTypeDefaultArgs instead - */ - export type LabelCountOutputTypeArgs = LabelCountOutputTypeDefaultArgs - /** - * @deprecated Use NoteCountOutputTypeDefaultArgs instead - */ - export type NoteCountOutputTypeArgs = NoteCountOutputTypeDefaultArgs - /** - * @deprecated Use UserDefaultArgs instead - */ - export type UserArgs = UserDefaultArgs - /** - * @deprecated Use AccountDefaultArgs instead - */ - export type AccountArgs = AccountDefaultArgs - /** - * @deprecated Use SessionDefaultArgs instead - */ - export type SessionArgs = SessionDefaultArgs - /** - * @deprecated Use VerificationTokenDefaultArgs instead - */ - export type VerificationTokenArgs = VerificationTokenDefaultArgs - /** - * @deprecated Use NotebookDefaultArgs instead - */ - export type NotebookArgs = NotebookDefaultArgs - /** - * @deprecated Use LabelDefaultArgs instead - */ - export type LabelArgs = LabelDefaultArgs - /** - * @deprecated Use NoteDefaultArgs instead - */ - export type NoteArgs = NoteDefaultArgs - /** - * @deprecated Use NoteShareDefaultArgs instead - */ - export type NoteShareArgs = NoteShareDefaultArgs - /** - * @deprecated Use SystemConfigDefaultArgs instead - */ - export type SystemConfigArgs = SystemConfigDefaultArgs - /** - * @deprecated Use AiFeedbackDefaultArgs instead - */ - export type AiFeedbackArgs = AiFeedbackDefaultArgs - /** - * @deprecated Use MemoryEchoInsightDefaultArgs instead - */ - export type MemoryEchoInsightArgs = MemoryEchoInsightDefaultArgs - /** - * @deprecated Use UserAISettingsDefaultArgs instead - */ - export type UserAISettingsArgs = UserAISettingsDefaultArgs - - /** - * Batch Payload for updateMany & deleteMany & createMany - */ - - export type BatchPayload = { - count: number - } - - /** - * DMMF - */ - export const dmmf: runtime.BaseDMMF -} \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/index.js b/keep-notes/prisma/client-generated/index.js deleted file mode 100644 index b77f045..0000000 --- a/keep-notes/prisma/client-generated/index.js +++ /dev/null @@ -1,374 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - NotFoundError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime -} = require('./runtime/library.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.NotFoundError = NotFoundError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - const path = require('path') - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - contentUpdatedAt: 'contentUpdatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - Notebook: 'Notebook', - Label: 'Label', - Note: 'Note', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "/Users/sepehr/dev/Keep/keep-notes/prisma/client-generated", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "debian-openssl-1.1.x" - }, - { - "fromEnvVar": null, - "value": "darwin-arm64", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/Users/sepehr/dev/Keep/keep-notes/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": null - }, - "relativePath": "..", - "clientVersion": "5.22.0", - "engineVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "datasourceNames": [ - "db" - ], - "activeProvider": "sqlite", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"./client-generated\"\n binaryTargets = [\"debian-openssl-1.1.x\", \"native\"]\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n accounts Account[]\n aiFeedback AiFeedback[]\n labels Label[]\n memoryEchoInsights MemoryEchoInsight[]\n notes Note[]\n sentShares NoteShare[] @relation(\"SentShares\")\n receivedShares NoteShare[] @relation(\"ReceivedShares\")\n notebooks Notebook[]\n sessions Session[]\n aiSettings UserAISettings?\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n labels Label[]\n notes Note[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId, order])\n @@index([userId])\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade)\n notes Note[] @relation(\"LabelToNote\")\n\n @@unique([notebookId, name])\n @@index([notebookId])\n @@index([userId])\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n contentUpdatedAt DateTime @default(now())\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n aiFeedback AiFeedback[]\n memoryEchoAsNote2 MemoryEchoInsight[] @relation(\"EchoNote2\")\n memoryEchoAsNote1 MemoryEchoInsight[] @relation(\"EchoNote1\")\n notebook Notebook? @relation(fields: [notebookId], references: [id])\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n shares NoteShare[]\n labelRelations Label[] @relation(\"LabelToNote\")\n\n @@index([isPinned])\n @@index([isArchived])\n @@index([order])\n @@index([reminder])\n @@index([userId])\n @@index([userId, notebookId])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sharer User @relation(\"SentShares\", fields: [sharedBy], references: [id], onDelete: Cascade)\n user User @relation(\"ReceivedShares\", fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@unique([noteId, userId])\n @@index([userId])\n @@index([status])\n @@index([sharedBy])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)\n\n @@index([noteId])\n @@index([userId])\n @@index([feature])\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n user User? @relation(fields: [userId], references: [id], onDelete: Cascade)\n note2 Note @relation(\"EchoNote2\", fields: [note2Id], references: [id], onDelete: Cascade)\n note1 Note @relation(\"EchoNote1\", fields: [note1Id], references: [id], onDelete: Cascade)\n\n @@unique([userId, insightDate])\n @@index([userId, insightDate])\n @@index([userId, dismissed])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n showRecentNotes Boolean @default(false)\n emailNotifications Boolean @default(false)\n desktopNotifications Boolean @default(false)\n anonymousAnalytics Boolean @default(false)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([memoryEcho])\n @@index([aiProvider])\n @@index([memoryEchoFrequency])\n @@index([preferredLanguage])\n}\n", - "inlineSchemaHash": "381aecea84bd838d251133f5b824e84d9af9ce717bf24e0cf9d156a0096c79f3", - "copyEngine": true -} - -const fs = require('fs') - -config.dirname = __dirname -if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { - const alternativePaths = [ - "prisma/client-generated", - "client-generated", - ] - - const alternativePath = alternativePaths.find((altPath) => { - return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma')) - }) ?? alternativePaths[0] - - config.dirname = path.join(process.cwd(), alternativePath) - config.isBundled = true -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoInsights\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sentShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"SentShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"receivedShares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebooks\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiSettings\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"UserAISettings\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"labels\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NotebookToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"LabelToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"LabelToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"notebookId\",\"name\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"notebookId\",\"name\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"contentUpdatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiFeedback\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AiFeedback\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote2\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoAsNote1\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MemoryEchoInsight\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebook\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Notebook\",\"relationName\":\"NoteToNotebook\",\"relationFromFields\":[\"notebookId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"NoteToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"shares\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"NoteShare\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labelRelations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Label\",\"relationName\":\"LabelToNote\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"sharer\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"SentShares\",\"relationFromFields\":[\"sharedBy\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"ReceivedShares\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"NoteToNoteShare\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"AiFeedbackToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"AiFeedbackToNote\",\"relationFromFields\":[\"noteId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"MemoryEchoInsightToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote2\",\"relationFromFields\":[\"note2Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Note\",\"relationName\":\"EchoNote1\",\"relationFromFields\":[\"note1Id\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"showRecentNotes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"desktopNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"anonymousAnalytics\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"relationName\":\"UserToUserAISettings\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined - - -const { warnEnvConflicts } = require('./runtime/library.js') - -warnEnvConflicts({ - rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath), - schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath) -}) - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - -// file annotations for bundling tools to include these files -path.join(__dirname, "libquery_engine-debian-openssl-1.1.x.so.node"); -path.join(process.cwd(), "prisma/client-generated/libquery_engine-debian-openssl-1.1.x.so.node") - -// file annotations for bundling tools to include these files -path.join(__dirname, "libquery_engine-darwin-arm64.dylib.node"); -path.join(process.cwd(), "prisma/client-generated/libquery_engine-darwin-arm64.dylib.node") -// file annotations for bundling tools to include these files -path.join(__dirname, "schema.prisma"); -path.join(process.cwd(), "prisma/client-generated/schema.prisma") diff --git a/keep-notes/prisma/client-generated/libquery_engine-debian-openssl-1.1.x.so.node b/keep-notes/prisma/client-generated/libquery_engine-debian-openssl-1.1.x.so.node deleted file mode 100755 index 6e8d9b0..0000000 Binary files a/keep-notes/prisma/client-generated/libquery_engine-debian-openssl-1.1.x.so.node and /dev/null differ diff --git a/keep-notes/prisma/client-generated/package.json b/keep-notes/prisma/client-generated/package.json deleted file mode 100644 index 95ca443..0000000 --- a/keep-notes/prisma/client-generated/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "name": "prisma-client-c7d0481a8b6fe66201cd99a6918bf4825dcac3497bdeb3b0ebcd8068fbb018d7", - "main": "index.js", - "types": "index.d.ts", - "browser": "index-browser.js", - "exports": { - "./package.json": "./package.json", - ".": { - "require": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "import": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "default": "./index.js" - }, - "./edge": { - "types": "./edge.d.ts", - "require": "./edge.js", - "import": "./edge.js", - "default": "./edge.js" - }, - "./react-native": { - "types": "./react-native.d.ts", - "require": "./react-native.js", - "import": "./react-native.js", - "default": "./react-native.js" - }, - "./extension": { - "types": "./extension.d.ts", - "require": "./extension.js", - "import": "./extension.js", - "default": "./extension.js" - }, - "./index-browser": { - "types": "./index.d.ts", - "require": "./index-browser.js", - "import": "./index-browser.js", - "default": "./index-browser.js" - }, - "./index": { - "types": "./index.d.ts", - "require": "./index.js", - "import": "./index.js", - "default": "./index.js" - }, - "./wasm": { - "types": "./wasm.d.ts", - "require": "./wasm.js", - "import": "./wasm.js", - "default": "./wasm.js" - }, - "./runtime/library": { - "types": "./runtime/library.d.ts", - "require": "./runtime/library.js", - "import": "./runtime/library.js", - "default": "./runtime/library.js" - }, - "./runtime/binary": { - "types": "./runtime/binary.d.ts", - "require": "./runtime/binary.js", - "import": "./runtime/binary.js", - "default": "./runtime/binary.js" - }, - "./generator-build": { - "require": "./generator-build/index.js", - "import": "./generator-build/index.js", - "default": "./generator-build/index.js" - }, - "./sql": { - "require": { - "types": "./sql.d.ts", - "node": "./sql.js", - "default": "./sql.js" - }, - "import": { - "types": "./sql.d.ts", - "node": "./sql.mjs", - "default": "./sql.mjs" - }, - "default": "./sql.js" - }, - "./*": "./*" - }, - "version": "5.22.0", - "sideEffects": false -} \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node b/keep-notes/prisma/client-generated/query_engine-windows.dll.node deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp11680 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp11680 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp11680 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp17688 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp17688 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp17688 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp26184 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp26184 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp26184 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp27060 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp27060 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp27060 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp45988 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp45988 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp45988 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp51844 b/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp51844 deleted file mode 100644 index d46657b..0000000 Binary files a/keep-notes/prisma/client-generated/query_engine-windows.dll.node.tmp51844 and /dev/null differ diff --git a/keep-notes/prisma/client-generated/runtime/edge-esm.js b/keep-notes/prisma/client-generated/runtime/edge-esm.js deleted file mode 100644 index dda5f88..0000000 --- a/keep-notes/prisma/client-generated/runtime/edge-esm.js +++ /dev/null @@ -1,31 +0,0 @@ -var sa=Object.create;var Kr=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var ua=Object.getPrototypeOf,ca=Object.prototype.hasOwnProperty;var zr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ae=(e,t)=>()=>(e&&(t=e(e=0)),t);var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yr=(e,t)=>{for(var r in t)Kr(e,r,{get:t[r],enumerable:!0})},pa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of la(t))!ca.call(e,i)&&i!==r&&Kr(e,i,{get:()=>t[i],enumerable:!(n=aa(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?sa(ua(e)):{},pa(t||!e||!e.__esModule?Kr(r,"default",{value:e,enumerable:!0}):r,e));var y,c=Ae(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var b,p=Ae(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Ae(()=>{"use strict";E=()=>{};E.prototype=E});var m=Ae(()=>{"use strict"});var Ei=Le(Ye=>{"use strict";f();c();p();d();m();var oi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),da=oi(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var M=A.indexOf("=");M===-1&&(M=R);var F=M===R?0:4-M%4;return[M,F]}function l(A){var R=a(A),M=R[0],F=R[1];return(M+F)*3/4-F}function u(A,R,M){return(R+M)*3/4-M}function g(A){var R,M=a(A),F=M[0],q=M[1],D=new n(u(A,F,q)),I=0,oe=q>0?F-4:F,J;for(J=0;J>16&255,D[I++]=R>>8&255,D[I++]=R&255;return q===2&&(R=r[A.charCodeAt(J)]<<2|r[A.charCodeAt(J+1)]>>4,D[I++]=R&255),q===1&&(R=r[A.charCodeAt(J)]<<10|r[A.charCodeAt(J+1)]<<4|r[A.charCodeAt(J+2)]>>2,D[I++]=R>>8&255,D[I++]=R&255),D}function h(A){return t[A>>18&63]+t[A>>12&63]+t[A>>6&63]+t[A&63]}function v(A,R,M){for(var F,q=[],D=R;Doe?oe:I+D));return F===1?(R=A[M-1],q.push(t[R>>2]+t[R<<4&63]+"==")):F===2&&(R=(A[M-2]<<8)+A[M-1],q.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),q.join("")}}),ma=oi(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,A=t[r+v];for(v+=S,s=A&(1<<-h)-1,A>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(A?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:s-1,R=i?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?r+=S/u:r+=S*Math.pow(2,1-v),r*u>=2&&(a++,u/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*u-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+A]=l&255,A+=R,l/=256,o-=8);for(a=a<0;t[n+A]=a&255,A+=R,a/=256,g-=8);t[n+A-R]|=M*128}}),Zr=da(),Ke=ma(),ti=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=T;Ye.SlowBuffer=Ea;Ye.INSPECT_MAX_BYTES=50;var ur=2147483647;Ye.kMaxLength=ur;T.TYPED_ARRAY_SUPPORT=fa();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fa(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function be(e){if(e>ur)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return si(e,t,r)}T.poolSize=8192;function si(e,t,r){if(typeof e=="string")return ha(e,t);if(ArrayBuffer.isView(e))return ya(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return li(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=wa(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return si(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ai(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ga(e,t,r){return ai(e),e<=0?be(e):t!==void 0?typeof r=="string"?be(e).fill(t,r):be(e).fill(t):be(e)}T.alloc=function(e,t,r){return ga(e,t,r)};function tn(e){return ai(e),be(e<0?0:rn(e)|0)}T.allocUnsafe=function(e){return tn(e)};T.allocUnsafeSlow=function(e){return tn(e)};function ha(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ui(e,t)|0,n=be(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Xr(e){let t=e.length<0?0:rn(e.length)|0,r=be(t);for(let n=0;n=ur)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ur.toString(16)+" bytes");return e|0}function Ea(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ui(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return en(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return wi(e).length;default:if(i)return n?-1:en(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=ui;function ba(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Oa(this,t,r);case"utf8":case"utf-8":return pi(this,t,r);case"ascii":return Sa(this,t,r);case"latin1":case"binary":return Ia(this,t,r);case"base64":return Aa(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ka(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Be(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};ti&&(T.prototype[ti]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,on(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:ri(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ri(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ri(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return xa(this,e,t,r);case"utf8":case"utf-8":return Pa(this,e,t,r);case"ascii":case"latin1":case"binary":return va(this,e,t,r);case"base64":return Ta(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ca(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Aa(e,t,r){return t===0&&r===e.length?Zr.fromByteArray(e):Zr.fromByteArray(e.slice(t,r))}function pi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Ra(n)}var ni=4096;function Ra(e){let t=e.length;if(t<=ni)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Re(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Re(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||H(e,4,this.length),Ke.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||H(e,4,this.length),Ke.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!1,52,8)};function re(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function di(e,t,r,n,i){yi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function mi(e,t,r,n,i){yi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Re(function(e,t=0){return di(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Re(function(e,t=0){return mi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Re(function(e,t=0){return di(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Re(function(e,t=0){return mi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fi(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function gi(e,t,r,n,i){return t=+t,r=r>>>0,i||fi(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return gi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return gi(this,e,t,!1,r)};function hi(e,t,r,n,i){return t=+t,r=r>>>0,i||fi(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return hi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return hi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ii(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ii(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ii(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Da(e,t,r){ze(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Pt(t,e.length-(r+1))}function yi(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new We.ERR_OUT_OF_RANGE("value",a,e)}Da(n,i,o)}function ze(e,t){if(typeof e!="number")throw new We.ERR_INVALID_ARG_TYPE(t,"number",e)}function Pt(e,t,r){throw Math.floor(e)!==e?(ze(e,r),new We.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Ma=/[^+/0-9A-Za-z-_]/g;function Na(e){if(e=e.split("=")[0],e=e.trim().replace(Ma,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function en(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Fa(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function wi(e){return Zr.toByteArray(Na(e))}function cr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function on(e){return e!==e}var La=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Re(e){return typeof BigInt>"u"?qa:e}function qa(){throw new Error("BigInt not supported")}});var w,f=Ae(()=>{"use strict";w=qe(Ei())});function Ba(){return!1}var Ua,$a,Ci,Ai=Ae(()=>{"use strict";f();c();p();d();m();Ua={},$a={existsSync:Ba,promises:Ua},Ci=$a});function Ha(...e){return e.join("/")}function Wa(...e){return e.join("/")}var $i,Ka,za,Tt,Vi=Ae(()=>{"use strict";f();c();p();d();m();$i="/",Ka={sep:$i},za={resolve:Ha,posix:Ka,join:Wa,sep:$i},Tt=za});var fr,Ji=Ae(()=>{"use strict";f();c();p();d();m();fr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Qi=Le((gm,Gi)=>{"use strict";f();c();p();d();m();Gi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Ki=Le((Rm,Wi)=>{"use strict";f();c();p();d();m();Wi.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Yi=Le((Mm,zi)=>{"use strict";f();c();p();d();m();var rl=Ki();zi.exports=e=>typeof e=="string"?e.replace(rl(),""):e});var wn=Le((Sh,go)=>{"use strict";f();c();p();d();m();go.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{Wu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var $o=Le(()=>{"use strict";f();c();p();d();m()});f();c();p();d();m();var Pi={};Yr(Pi,{defineExtension:()=>bi,getExtensionContext:()=>xi});f();c();p();d();m();f();c();p();d();m();function bi(e){return typeof e=="function"?e:t=>t.$extends(e)}f();c();p();d();m();function xi(e){return e}var Ti={};Yr(Ti,{validator:()=>vi});f();c();p();d();m();f();c();p();d();m();function vi(...e){return t=>t}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var sn,Ri,Si,Ii,Oi=!0;typeof y<"u"&&({FORCE_COLOR:sn,NODE_DISABLE_COLORS:Ri,NO_COLOR:Si,TERM:Ii}=y.env||{},Oi=y.stdout&&y.stdout.isTTY);var Va={enabled:!Ri&&Si==null&&Ii!=="dumb"&&(sn!=null&&sn!=="0"||Oi)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Va.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Zp=V(0,0),pr=V(1,22),dr=V(2,22),Xp=V(3,23),ki=V(4,24),ed=V(7,27),td=V(8,28),rd=V(9,29),nd=V(30,39),Ze=V(31,39),Di=V(32,39),Mi=V(33,39),Ni=V(34,39),id=V(35,39),Fi=V(36,39),od=V(37,39),_i=V(90,39),sd=V(90,39),ad=V(40,49),ld=V(41,49),ud=V(42,49),cd=V(43,49),pd=V(44,49),dd=V(45,49),md=V(46,49),fd=V(47,49);f();c();p();d();m();var ja=100,Li=["green","yellow","blue","magenta","cyan","red"],mr=[],qi=Date.now(),Ja=0,an=typeof y<"u"?y.env:{};globalThis.DEBUG??=an.DEBUG??"";globalThis.DEBUG_COLORS??=an.DEBUG_COLORS?an.DEBUG_COLORS==="true":!0;var vt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Ga(e){let t={color:Li[Ja++%Li.length],enabled:vt.enabled(e),namespace:e,log:vt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&mr.push([o,...n]),mr.length>ja&&mr.shift(),vt.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:Qa(g)),u=`+${Date.now()-qi}ms`;qi=Date.now(),a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Bi=new Proxy(Ga,{get:(e,t)=>vt[t],set:(e,t,r)=>vt[t]=r});function Qa(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Ui(){mr.length=0}var ee=Bi;f();c();p();d();m();f();c();p();d();m();var ji="library";function Ct(e){let t=Ya();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":ji)}function Ya(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}f();c();p();d();m();f();c();p();d();m();var Ue;(t=>{let e;(I=>(I.findUnique="findUnique",I.findUniqueOrThrow="findUniqueOrThrow",I.findFirst="findFirst",I.findFirstOrThrow="findFirstOrThrow",I.findMany="findMany",I.create="create",I.createMany="createMany",I.createManyAndReturn="createManyAndReturn",I.update="update",I.updateMany="updateMany",I.upsert="upsert",I.delete="delete",I.deleteMany="deleteMany",I.groupBy="groupBy",I.count="count",I.aggregate="aggregate",I.findRaw="findRaw",I.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Ue||={});var Rt={};Yr(Rt,{error:()=>el,info:()=>Xa,log:()=>Za,query:()=>tl,should:()=>Hi,tags:()=>At,warn:()=>ln});f();c();p();d();m();var At={error:Ze("prisma:error"),warn:Mi("prisma:warn"),info:Fi("prisma:info"),query:Ni("prisma:query")},Hi={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function Za(...e){console.log(...e)}function ln(e,...t){Hi.warn()&&console.warn(`${At.warn} ${e}`,...t)}function Xa(e,...t){console.info(`${At.info} ${e}`,...t)}function el(e,...t){console.error(`${At.error} ${e}`,...t)}function tl(e,...t){console.log(`${At.query} ${e}`,...t)}f();c();p();d();m();function xe(e,t){throw new Error(t)}f();c();p();d();m();function un(e,t){return Object.prototype.hasOwnProperty.call(e,t)}f();c();p();d();m();var cn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});f();c();p();d();m();function Xe(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}f();c();p();d();m();function pn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{Zi.has(e)||(Zi.add(e),ln(t,...r))};f();c();p();d();m();var K=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(K,"PrismaClientKnownRequestError");var Se=class extends K{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};N(Se,"NotFoundError");f();c();p();d();m();var G=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(G,"PrismaClientInitializationError");f();c();p();d();m();var Ie=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(Ie,"PrismaClientRustPanicError");f();c();p();d();m();var se=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(se,"PrismaClientUnknownRequestError");f();c();p();d();m();var z=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(z,"PrismaClientValidationError");f();c();p();d();m();f();c();p();d();m();var et=9e15,Me=1e9,dn="0123456789abcdef",yr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",wr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",mn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-et,maxE:et,crypto:!1},no,Pe,_=!0,br="[DecimalError] ",De=br+"Invalid argument: ",io=br+"Precision limit exceeded",oo=br+"crypto unavailable",so="[object Decimal]",X=Math.floor,Q=Math.pow,nl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,il=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ol=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ao=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,k=7,sl=9007199254740991,al=yr.length-1,fn=wr.length-1,C={toStringTag:so};C.absoluteValue=C.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)};C.ceil=function(){return O(new this.constructor(this),this.e+1,2)};C.clampedTo=C.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(De+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};C.comparedTo=C.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};C.cosine=C.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=ll(n,mo(n,r)),n.precision=e,n.rounding=t,O(Pe==2||Pe==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};C.cubeRoot=C.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*Q(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Y(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=Q(r,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=U(u.plus(g).times(a),u.plus(l),s+2,1),Y(a.d).slice(0,s)===(r=Y(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(O(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(O(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,O(n,e,h.rounding,t)};C.decimalPlaces=C.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-X(this.e/k))*k,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};C.dividedBy=C.div=function(e){return U(this,new this.constructor(e))};C.dividedToIntegerBy=C.divToInt=function(e){var t=this,r=t.constructor;return O(U(t,new r(e),0,1,1),r.precision,r.rounding)};C.equals=C.eq=function(e){return this.cmp(e)===0};C.floor=function(){return O(new this.constructor(this),this.e+1,3)};C.greaterThan=C.gt=function(e){return this.cmp(e)>0};C.greaterThanOrEqualTo=C.gte=function(e){var t=this.cmp(e);return t==1||t===0};C.hyperbolicCosine=C.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/Pr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=tt(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return O(o,s.precision=r,s.rounding=n,!0)};C.hyperbolicSine=C.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=tt(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Pr(5,e)),i=tt(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)};C.hyperbolicTangent=C.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,U(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};C.inverseCosine=C.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?ce(r,i,o):new r(0):new r(NaN):t.isZero()?ce(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=ce(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};C.inverseHyperbolicCosine=C.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};C.inverseHyperbolicSine=C.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};C.inverseHyperbolicTangent=C.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=U(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};C.inverseSine=C.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=ce(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};C.inverseTangent=C.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=fn)return s=ce(g,h+4,v).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=fn)return s=ce(g,h+4,v).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/k+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/k),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};C.isNaN=function(){return!this.s};C.isNegative=C.isNeg=function(){return this.s<0};C.isPositive=C.isPos=function(){return this.s>0};C.isZero=function(){return!!this.d&&this.d[0]===0};C.lessThan=C.lt=function(e){return this.cmp(e)<0};C.lessThanOrEqualTo=C.lte=function(e){return this.cmp(e)<1};C.logarithm=C.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=ke(u,a),n=t?Er(g,a+10):ke(e,a),l=U(s,n,a,1),St(l.d,i=h,v))do if(a+=10,s=ke(u,a),n=t?Er(g,a+10):ke(e,a),l=U(s,n,a,1),!o){+Y(l.d).slice(i+1,i+15)+1==1e14&&(l=O(l,h+1,0));break}while(St(l.d,i+=10,v));return _=!0,O(l,h,v)};C.minus=C.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.constructor;if(e=new A(e),!S.d||!e.d)return!S.s||!e.s?e=new A(NaN):S.d?e.s=-e.s:e=new A(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,v=e.d,a=A.precision,l=A.rounding,!u[0]||!v[0]){if(v[0])e.s=-e.s;else if(u[0])e=new A(S);else return new A(l===3?-0:0);return _?O(e,a,l):e}if(r=X(e.e/k),g=X(S.e/k),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=v.length):(t=v,r=g,s=u.length),n=Math.max(Math.ceil(a/k),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=v.length,h=n0;--n)u[s++]=0;for(n=v.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/pe|0,u[i]%=pe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=xr(u,n),_?O(e,a,l):e};C.precision=C.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(De+e);return r.d?(t=lo(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};C.round=function(){var e=this,t=e.constructor;return O(new t(e),e.e+1,t.rounding)};C.sine=C.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=cl(n,mo(n,r)),n.precision=e,n.rounding=t,O(Pe>2?r.neg():r,e,t,!0)):new n(NaN)};C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Y(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=X((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(U(s,o,r+2,1)).times(.5),Y(o.d).slice(0,r)===(t=Y(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(O(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(O(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,O(n,l,g.rounding,e)};C.tangent=C.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=U(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(Pe==2||Pe==4?r.neg():r,e,t,!0)):new n(NaN)};C.times=C.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=X(g.e/k)+X(e.e/k),l=v.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%pe|0,t=a/pe|0;o[i]=(o[i]+t)%pe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=xr(o,r),_?O(e,h.precision,h.rounding):e};C.toBinary=function(e,t){return yn(this,2,e,t)};C.toDecimalPlaces=C.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ne(e,0,Me),t===void 0?t=n.rounding:ne(t,0,8),O(r,e+r.e+1,t))};C.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,!0):(ne(e,0,Me),t===void 0?t=i.rounding:ne(t,0,8),n=O(new i(n),e+1,t),r=me(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=me(i):(ne(e,0,Me),t===void 0?t=o.rounding:ne(t,0,8),n=O(new o(i),e+i.e+1,t),r=me(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};C.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.d,R=S.constructor;if(!A)return new R(S);if(u=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=lo(A)-S.e-1,s=o%k,t.d[0]=Q(10,s<0?k+s:s),e==null)e=o>0?t:u;else{if(a=new R(e),!a.isInt()||a.lt(u))throw Error(De+a);e=a.gt(t)?o>0?t:u:a}for(_=!1,a=new R(Y(A)),g=R.precision,R.precision=o=A.length*k*2;h=U(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=U(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,v=U(u,n,o,1).minus(S).abs().cmp(U(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],R.precision=g,_=!0,v};C.toHexadecimal=C.toHex=function(e,t){return yn(this,16,e,t)};C.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ne(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=U(r,e,0,t,1).times(e),_=!0,O(r)):(e.s=r.s,r=e),r};C.toNumber=function(){return+this};C.toOctal=function(e,t){return yn(this,8,e,t)};C.toPower=C.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(Q(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return O(a,n,o);if(t=X(e.e/k),t>=e.d.length-1&&(r=u<0?-u:u)<=sl)return i=uo(l,a,r,n),e.s<0?new l(1).div(i):O(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=gn(e.times(ke(a,n+r)),n),i.d&&(i=O(i,n+5,1),St(i.d,n,o)&&(t=n+10,i=O(gn(e.times(ke(a,t+r)),t),t+5,1),+Y(i.d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,O(i,n,o))};C.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ne(e,1,Me),t===void 0?t=i.rounding:ne(t,0,8),n=O(new i(n),e,t),r=me(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toSignificantDigits=C.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ne(e,1,Me),t===void 0?t=n.rounding:ne(t,0,8)),O(new n(r),e,t)};C.toString=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};C.truncated=C.trunc=function(){return O(new this.constructor(this),this.e+1,1)};C.valueOf=C.toJSON=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Y(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(De+e)}function St(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=k,i=0):(i=Math.ceil((t+1)/k),t%=k),o=Q(10,k-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==Q(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==Q(10,t-3)-1,s}function hr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function ll(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Pr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=tt(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var U=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,v,S,A,R,M,F,q,D,I,oe,J,Qr,sr,xt,Hr,ue,ar,lr=n.constructor,Wr=n.s==i.s?1:-1,Z=n.d,$=i.d;if(!Z||!Z[0]||!$||!$[0])return new lr(!n.s||!i.s||(Z?$&&Z[0]==$[0]:!$)?NaN:Z&&Z[0]==0||!$?Wr*0:Wr/0);for(l?(S=1,g=n.e-i.e):(l=pe,S=k,g=X(n.e/S)-X(i.e/S)),ue=$.length,xt=Z.length,F=new lr(Wr),q=F.d=[],h=0;$[h]==(Z[h]||0);h++);if($[h]>(Z[h]||0)&&g--,o==null?(J=o=lr.precision,s=lr.rounding):a?J=o+(n.e-i.e)+1:J=o,J<0)q.push(1),A=!0;else{if(J=J/S+2|0,h=0,ue==1){for(v=0,$=$[0],J++;(h1&&($=e($,v,l),Z=e(Z,v,l),ue=$.length,xt=Z.length),sr=ue,D=Z.slice(0,ue),I=D.length;I=l/2&&++Hr;do v=0,u=t($,D,ue,I),u<0?(oe=D[0],ue!=I&&(oe=oe*l+(D[1]||0)),v=oe/Hr|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),M=R.length,I=D.length,u=t(R,D,M,I),u==1&&(v--,r(R,ue=10;v/=10)h++;F.e=h+g*S-1,O(F,a?o+F.e+1:o,s,A)}return F}}();function O(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=k,s=t,g=h[v=0],l=g/Q(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/k),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=k,s=o-k+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=k,s=o-k+i,l=s<0?0:g/Q(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%Q(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/Q(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=Q(10,(k-t%k)%k),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=Q(10,k-o),h[v]=s>0?(g/Q(10,i-s)%Q(10,s)|0)*a:0),u)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==pe&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=pe)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+Oe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Oe(-i-1)+o,r&&(n=r-s)>0&&(o+=Oe(n))):i>=s?(o+=Oe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Oe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Oe(n))),o}function xr(e,t){var r=e[0];for(t*=k;r>=10;r/=10)t++;return t}function Er(e,t,r){if(t>al)throw _=!0,r&&(e.precision=r),Error(io);return O(new e(yr),t,1,!0)}function ce(e,t,r){if(t>fn)throw Error(io);return O(new e(wr),t,r,!0)}function lo(e){var t=e.length-1,r=t*k+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Oe(e){for(var t="";e--;)t+="0";return t}function uo(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/k+4);for(_=!1;;){if(r%2&&(o=o.times(t),to(o.d,s)&&(i=!0)),r=X(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),to(t.d,s)}return _=!0,o}function eo(e){return e.d[e.d.length-1]&1}function co(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=A):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(Q(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++g),a=s.plus(U(o,r,l,1)),Y(a.d).slice(0,l)===Y(s.d).slice(0,l)){for(i=h;i--;)s=O(s.times(s),l,1);if(t==null)if(u<3&&St(s.d,l-n,S,u))v.precision=l+=10,r=o=a=new v(1),g=0,u++;else return O(s,v.precision=A,S,_=!0);else return v.precision=A,s}s=a}}function ke(e,t){var r,n,i,o,s,a,l,u,g,h,v,S=1,A=10,R=e,M=R.d,F=R.constructor,q=F.rounding,D=F.precision;if(R.s<0||!M||!M[0]||!R.e&&M[0]==1&&M.length==1)return new F(M&&!M[0]?-1/0:R.s!=1?NaN:M?0:R);if(t==null?(_=!1,g=D):g=t,F.precision=g+=A,r=Y(M),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=Y(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new F("0."+r),o++):R=new F(n+"."+r.slice(1))}else return u=Er(F,g+2,D).times(o+""),R=ke(new F(n+"."+r.slice(1)),g-A).plus(u),F.precision=D,t==null?O(R,D,q,_=!0):R;for(h=R,l=s=R=U(R.minus(1),R.plus(1),g,1),v=O(R.times(R),g,1),i=3;;){if(s=O(s.times(v),g,1),u=l.plus(U(s,new F(i),g,1)),Y(u.d).slice(0,g)===Y(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(Er(F,g+2,D).times(o+""))),l=U(l,new F(S),g,1),t==null)if(St(l.d,g-A,q,a))F.precision=g+=A,u=s=R=U(h.minus(1),h.plus(1),g,1),v=O(R.times(R),g,1),i=a=1;else return O(l,F.precision=D,q,_=!0);else return F.precision=D,l;l=u,i+=2}}function po(e){return String(e.s*e.s/0)}function hn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%k,r<0&&(n+=k),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ao.test(t))return hn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(il.test(t))r=16,t=t.toLowerCase();else if(nl.test(t))r=2;else if(ol.test(t))r=8;else throw Error(De+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=uo(n,new n(r),o,o*2)),u=hr(t,r,pe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=xr(u,g),e.d=u,_=!1,s&&(e=U(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?Q(2,l):$e.pow(2,l))),_=!0,e)}function cl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:tt(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Pr(5,r)),t=tt(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function tt(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/k);for(_=!1,l=r.times(r),a=new e(n);;){if(s=U(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=U(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return _=!0,s.d.length=h+1,s}function Pr(e,t){for(var r=e;--t;)r*=e;return r}function mo(e,t){var r,n=t.s<0,i=ce(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Pe=n?4:1,t;if(r=t.divToInt(i),r.isZero())Pe=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Pe=eo(r)?n?2:3:n?4:1,t;Pe=eo(r)?n?1:4:n?3:2}return t.minus(i).abs()}function yn(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor,A=r!==void 0;if(A?(ne(r,1,Me),n===void 0?n=S.rounding:ne(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=po(e);else{for(g=me(e),s=g.indexOf("."),A?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=hr(me(v),10,i),v.e=v.d.length),h=hr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=A?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=U(e,v,r,n,0,i),h=e.d,o=e.e,u=no),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=hr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function pl(e){return new this(e).abs()}function dl(e){return new this(e).acos()}function ml(e){return new this(e).acosh()}function fl(e,t){return new this(e).plus(t)}function gl(e){return new this(e).asin()}function hl(e){return new this(e).asinh()}function yl(e){return new this(e).atan()}function wl(e){return new this(e).atanh()}function El(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ce(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ce(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ce(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(U(e,t,o,1)),t=ce(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(U(e,t,o,1)),r}function bl(e){return new this(e).cbrt()}function xl(e){return O(e=new this(e),e.e+1,2)}function Pl(e,t,r){return new this(e).clamp(t,r)}function vl(e){if(!e||typeof e!="object")throw Error(br+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,Me,"rounding",0,8,"toExpNeg",-et,0,"toExpPos",0,et,"maxE",0,et,"minE",-et,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(De+r+": "+n);if(r="crypto",i&&(this[r]=mn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(oo);else this[r]=!1;else throw Error(De+r+": "+n);return this}function Tl(e){return new this(e).cos()}function Cl(e){return new this(e).cosh()}function fo(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,ro(o)){u.s=o.s,_?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(oo);else for(;o=10;i/=10)n++;ne.highlight()},eu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function tu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function ru({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(nu(t))),i){a.push("");let u=[i.toString()];o&&(u.push(o),u.push(s.dim(")"))),a.push(u.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function nu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function ot(e){let t=e.showColors?Xl:eu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=tu(e),ru(r,t)}f();c();p();d();m();var xo=qe(wn());f();c();p();d();m();function wo(e,t,r){let n=Eo(e),i=iu(n),o=su(i);o?Tr(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Eo(e){return e.errors.flatMap(t=>t.kind==="Union"?Eo(t):[t])}function iu(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:ou(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function ou(e,t){return[...new Set(e.concat(t))]}function su(e){return pn(e,(t,r)=>{let n=ho(t),i=ho(r);return n!==i?n-i:yo(t)-yo(r)})}function ho(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function yo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}f();c();p();d();m();var ae=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};f();c();p();d();m();f();c();p();d();m();var st=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};f();c();p();d();m();f();c();p();d();m();var Cr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};f();c();p();d();m();var Ar=e=>e,Rr={bold:Ar,red:Ar,green:Ar,dim:Ar,enabled:!1},bo={bold:pr,red:Ze,green:Di,dim:dr,enabled:!0},at={write(e){e.writeLine(",")}};f();c();p();d();m();var fe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};f();c();p();d();m();var Ne=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var lt=class extends Ne{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Cr(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new fe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(at,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ut=class e extends Ne{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof lt&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new fe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(at,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};f();c();p();d();m();var W=class extends Ne{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new fe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};f();c();p();d();m();var Ot=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(at,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Tr(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":lu(e,t);break;case"IncludeOnScalar":uu(e,t);break;case"EmptySelection":cu(e,t,r);break;case"UnknownSelectionField":fu(e,t);break;case"InvalidSelectionValue":gu(e,t);break;case"UnknownArgument":hu(e,t);break;case"UnknownInputField":yu(e,t);break;case"RequiredArgumentMissing":wu(e,t);break;case"InvalidArgumentType":Eu(e,t);break;case"InvalidArgumentValue":bu(e,t);break;case"ValueTooLarge":xu(e,t);break;case"SomeFieldsMissing":Pu(e,t);break;case"TooManyFieldsGiven":vu(e,t);break;case"Union":wo(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function lu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function uu(e,t){let[r,n]=kt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ae(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Dt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function cu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){pu(e,t,i);return}if(n.hasField("select")){du(e,t);return}}if(r?.[rt(e.outputType.name)]){mu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function pu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ae(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function du(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),To(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Dt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function mu(e,t){let r=new Ot;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ae("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=kt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ut;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function fu(e,t){let r=Co(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":To(n,e.outputType);break;case"include":Tu(n,e.outputType);break;case"omit":Cu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Dt(n)),i.join(" ")})}function gu(e,t){let r=Co(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function hu(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Au(n,e.arguments)),t.addErrorMessage(i=>Po(i,r,e.arguments.map(o=>o.name)))}function yu(e,t){let[r,n]=kt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Ao(o,e.inputType)}t.addErrorMessage(o=>Po(o,n,e.inputType.fields.map(s=>s.name)))}function Po(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Su(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Dt(e)),n.join(" ")}function wu(e,t){let r;t.addErrorMessage(l=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=kt(e.argumentPath),s=new Ot,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ae(o,s).makeRequired())}else{let l=e.inputTypes.map(vo).join(" | ");a.addSuggestion(new ae(o,l).makeRequired())}}function vo(e){return e.kind==="list"?`${vo(e.elementType)}[]`:e.name}function Eu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Sr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function bu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Sr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function xu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Pu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Ao(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Sr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Dt(i)),o.join(" ")})}function vu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Sr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function To(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,"true"))}function Tu(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ae(r.name,"true"))}function Cu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ae(r.name,"true"))}function Au(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function Co(e,t){let[r,n]=kt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Ao(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function kt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Dt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Sr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Ru=3;function Su(e,t){let r=1/0,n;for(let i of t){let o=(0,xo.default)(e,i);o>Ru||o`}};function ct(e){return e instanceof Mt}f();c();p();d();m();var Ir=Symbol(),En=new WeakMap,Te=class{constructor(t){t===Ir?En.set(this,`Prisma.${this._getName()}`):En.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return En.get(this)}},Nt=class extends Te{_getNamespace(){return"NullTypes"}},Ft=class extends Nt{};xn(Ft,"DbNull");var _t=class extends Nt{};xn(_t,"JsonNull");var Lt=class extends Nt{};xn(Lt,"AnyNull");var bn={classes:{DbNull:Ft,JsonNull:_t,AnyNull:Lt},instances:{DbNull:new Ft(Ir),JsonNull:new _t(Ir),AnyNull:new Lt(Ir)}};function xn(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}f();c();p();d();m();var So=": ",Or=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+So.length}write(t){let r=new fe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(So).write(this.value)}};var Pn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function pt(e){return new Pn(Io(e))}function Io(e){let t=new ut;for(let[r,n]of Object.entries(e)){let i=new Or(r,Oo(n));t.addField(i)}return t}function Oo(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(it(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=vr(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof Te?new W(`Prisma.${e._getName()}`):ct(e)?new W(`prisma.${Ro(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Iu(e):typeof e=="object"?Io(e):new W(Object.prototype.toString.call(e))}function Iu(e){let t=new lt;for(let r of e)t.addItem(Oo(r));return t}function kr(e,t){let r=t==="pretty"?bo:Rr,n=e.renderAllMessages(r),i=new st(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Dr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=pt(e);for(let h of t)Tr(h,a,s);let{message:l,args:u}=kr(a,r),g=ot({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new z(g,{clientVersion:o})}f();c();p();d();m();f();c();p();d();m();var ge=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};f();c();p();d();m();function qt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}f();c();p();d();m();function he(e){return e.replace(/^./,t=>t.toLowerCase())}f();c();p();d();m();function Do(e,t,r){let n=he(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Ou({...e,...ko(t.name,e,t.result.$allModels),...ko(t.name,e,t.result[n])})}function Ou(e){let t=new ge,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Xe(e,n=>({...n,needs:r(n.name,new Set)}))}function ko(e,t,r){return r?Xe(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:ku(t,o,i)})):{}}function ku(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Mo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function No(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Mr=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ge;this.modelExtensionsCache=new ge;this.queryCallbacksCache=new ge;this.clientExtensions=qt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=qt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Do(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=he(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},dt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Mr(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Mr(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};f();c();p();d();m();f();c();p();d();m();var Fo=Symbol(),Bt=class{constructor(t){if(t!==Fo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?vn:t}},vn=new Bt(Fo);function ye(e){return e instanceof Bt}var Du={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},_o="explicitly `undefined` values are not allowed";function Cn({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=dt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Tn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:Du[t],query:Ut(r,h)}}function Ut({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:qo(r,n),selection:Mu(e,t,i,n)}}function Mu(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Lu(e,n)):Nu(n,t,r)}function Nu(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&Fu(n,t,e),e.isPreviewFeatureOn("omitApi")&&_u(n,r,e),n}function Fu(e,t,r){for(let[n,i]of Object.entries(t)){if(ye(i))continue;let o=r.nestSelection(n);if(An(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Ut(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Ut(i,o)}}function _u(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=No(i,n);for(let[s,a]of Object.entries(o)){if(ye(a))continue;An(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function Lu(e,t){let r={},n=t.getComputedFields(),i=Mo(e,n);for(let[o,s]of Object.entries(i)){if(ye(s))continue;let a=t.nestSelection(o);An(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||ye(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Ut({},a):r[o]=!0;continue}r[o]=Ut(s,a)}}return r}function Lo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(nt(e)){if(vr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(ct(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return qu(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(Bu(e))return e.values;if(it(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Te){if(e!==bn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Uu(e))return e.toJSON();if(typeof e=="object")return qo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function qo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);ye(i)||(i!==void 0?r[n]=Lo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:_o}))}return r}function qu(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[rt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:xe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};f();c();p();d();m();var $t=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};f();c();p();d();m();function $u(e){return{models:Rn(e.models),enums:Rn(e.enums),types:Rn(e.types)}}function Rn(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function Vu(e,t){let r=qt(()=>ju(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ju(e){return{datamodel:{models:Sn(e.models),enums:Sn(e.enums),types:Sn(e.types)}}}function Sn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}f();c();p();d();m();var In=new WeakMap,Nr="$$PrismaTypedSql",On=class{constructor(t,r){In.set(this,{sql:t,values:r}),Object.defineProperty(this,Nr,{value:Nr})}get sql(){return In.get(this).sql}get values(){return In.get(this).values}};function Ju(e){return(...t)=>new On(e,t)}function Bo(e){return e!=null&&e[Nr]===Nr}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function Vt(e){return{ok:!1,error:e,map(){return Vt(e)},flatMap(){return Vt(e)}}}var kn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Dn=e=>{let t=new kn,r=we(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:we(t,e.queryRaw.bind(e)),executeRaw:we(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>Gu(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=Hu(t,e.getConnectionInfo.bind(e))),n},Gu=(e,t)=>{let r=we(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:we(e,t.queryRaw.bind(t)),executeRaw:we(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>Qu(e,o))}},Qu=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:we(e,t.queryRaw.bind(t)),executeRaw:we(e,t.executeRaw.bind(t)),commit:we(e,t.commit.bind(t)),rollback:we(e,t.rollback.bind(t))});function we(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Vt({kind:"GenericJs",id:i})}}}function Hu(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Vt({kind:"GenericJs",id:i})}}}var oa=qe(Uo());var iD=qe($o());Ji();Ai();Vi();f();c();p();d();m();var le=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}f();c();p();d();m();f();c();p();d();m();var Fr={enumerable:!0,configurable:!0,writable:!0};function _r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Fr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Jo=Symbol.for("nodejs.util.inspect.custom");function Ee(e,t){let r=Yu(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Go(Reflect.ownKeys(o),r),a=Go(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Fr,...l?.getPropertyDescriptor(s)}:Fr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[Jo]=function(){let o={...this};return delete o[Jo],o},i}function Yu(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Go(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}f();c();p();d();m();function mt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}f();c();p();d();m();function Lr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}f();c();p();d();m();function Qo(e){if(e===void 0)return"";let t=pt(e);return new st(0,{colors:Rr}).write(t).toString()}f();c();p();d();m();var Zu="P2037";function Jt({error:e,user_facing_error:t},r,n){return t.error_code?new K(Xu(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new se(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function Xu(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===Zu&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Mn=class{getLocation(){return null}};function Fe(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Mn}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Ho={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function ft(e={}){let t=tc(e);return Object.entries(t).reduce((n,[i,o])=>(Ho[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function tc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function qr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Wo(e,t){let r=qr(e);return t({action:"aggregate",unpacker:r,argsMapper:ft})(e)}f();c();p();d();m();function rc(e={}){let{select:t,...r}=e;return typeof t=="object"?ft({...r,_count:t}):ft({...r,_count:{_all:!0}})}function nc(e={}){return typeof e.select=="object"?t=>qr(e)(t)._count:t=>qr(e)(t)._count._all}function Ko(e,t){return t({action:"count",unpacker:nc(e),argsMapper:rc})(e)}f();c();p();d();m();function ic(e={}){let t=ft(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function oc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function zo(e,t){return t({action:"groupBy",unpacker:oc(e),argsMapper:ic})(e)}function Yo(e,t,r){if(t==="aggregate")return n=>Wo(n,r);if(t==="count")return n=>Ko(n,r);if(t==="groupBy")return n=>zo(n,r)}f();c();p();d();m();function Zo(e,t){let r=t.fields.filter(i=>!i.relationName),n=cn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Mt(e,o,s.type,s.isList,s.kind==="enum")},..._r(Object.keys(n))})}f();c();p();d();m();f();c();p();d();m();var Xo=e=>Array.isArray(e)?e:e.split("."),Nn=(e,t)=>Xo(t).reduce((r,n)=>r&&r[n],e),es=(e,t,r)=>Xo(t).reduceRight((n,i,o,s)=>Object.assign({},Nn(e,s.slice(0,o)),{[i]:n}),r);function sc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function ac(e,t,r){return t===void 0?e??{}:es(t,r,e||!0)}function Fn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Fe(e._errorFormat),g=sc(n,i),h=ac(l,o,g),v=r({dataPath:g,callsite:u})(h),S=lc(e,t);return new Proxy(v,{get(A,R){if(!S.includes(R))return A[R];let F=[a[R].type,r,R],q=[g,h];return Fn(e,...F,...q)},..._r([...S,...Object.getOwnPropertyNames(v)])})}}function lc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}f();c();p();d();m();function ts(e,t,r,n){return e===Ue.ModelAction.findFirstOrThrow||e===Ue.ModelAction.findUniqueOrThrow?uc(t,r,n):n}function uc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=ot({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new z(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof K&&o.code==="P2025"?new Se(`No ${e} found`,t):o})}}var cc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],pc=["aggregate","count","groupBy"];function _n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[dc(e,t),fc(e,t),jt(r),te("name",()=>t),te("$name",()=>t),te("$parent",()=>e._appliedParent)];return Ee({},n)}function dc(e,t){let r=he(t),n=Object.keys(Ue.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=ts(o,t,e._clientVersion,s);let a=l=>u=>{let g=Fe(e._errorFormat);return e._createPrismaPromise(h=>{let v={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...v,...l})})};return cc.includes(o)?Fn(e,t,a):mc(i)?Yo(e,i,a):a({})}}}function mc(e){return pc.includes(e)}function fc(e,t){return Ve(te("fields",()=>{let r=e._runtimeDataModel.models[t];return Zo(t,r)}))}f();c();p();d();m();function rs(e){return e.replace(/^./,t=>t.toUpperCase())}var Ln=Symbol();function Gt(e){let t=[gc(e),te(Ln,()=>e),te("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(jt(r)),Ee(e,t)}function gc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(he),n=[...new Set(t.concat(r))];return Ve({getKeys(){return n},getPropertyValue(i){let o=rs(i);if(e._runtimeDataModel.models[o]!==void 0)return _n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return _n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ns(e){return e[Ln]?e[Ln]:e}function is(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Gt(t)}f();c();p();d();m();f();c();p();d();m();function os({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(mt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(mt(u))}hc(e,l.needs)&&s.push(yc(l,Ee(e,s)))}return s.length>0||a.length>0?Ee(e,[...s,...a]):e}function hc(e,t){return t.every(r=>un(e,r))}function yc(e,t){return Ve(te(e.name,()=>e.compute(t)))}f();c();p();d();m();function Br({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=Br({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function as({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Br({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=he(l);return os({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}f();c();p();d();m();f();c();p();d();m();function ls(e){if(e instanceof le)return wc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ls(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=fs(o,l),a.args=s,cs(e,a,r,n+1)}})})}function ps(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return cs(e,t,s)}function ds(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ms(r,n,0,e):e(r)}}function ms(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=fs(i,l),ms(a,t,r+1,n)}})}var us=e=>e;function fs(e=us,t=us){return r=>e(t(r))}f();c();p();d();m();var gs=ee("prisma:client"),hs={Vercel:"vercel","Netlify CI":"netlify"};function ys({postinstall:e,ciName:t,clientVersion:r}){if(gs("checkPlatformCaching:postinstall",e),gs("checkPlatformCaching:ciName",t),e===!0&&t&&t in hs){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${hs[t]}-build`;throw console.error(n),new G(n,r)}}f();c();p();d();m();function ws(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Ec="Cloudflare-Workers",bc="node";function Es(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Ec?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===bc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var xc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function qn(){let e=Es();return{id:e,prettyName:xc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function gt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw qn().id==="workerd"?new G(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new G(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new G("error: Missing URL environment variable, value, or override.",n);return i}f();c();p();d();m();f();c();p();d();m();var Ur=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var ie=class extends Ur{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};f();c();p();d();m();f();c();p();d();m();function L(e,t){return{...e,isRetryable:t}}var ht=class extends ie{constructor(r){super("This request must be retried",L(r,!0));this.name="ForcedRetryError";this.code="P5001"}};N(ht,"ForcedRetryError");f();c();p();d();m();var je=class extends ie{constructor(r,n){super(r,L(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};N(je,"InvalidDatasourceError");f();c();p();d();m();var Je=class extends ie{constructor(r,n){super(r,L(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};N(Je,"NotImplementedYetError");f();c();p();d();m();f();c();p();d();m();var j=class extends ie{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var Ge=class extends j{constructor(r){super("Schema needs to be uploaded",L(r,!0));this.name="SchemaMissingError";this.code="P5005"}};N(Ge,"SchemaMissingError");f();c();p();d();m();f();c();p();d();m();var Bn="This request could not be understood by the server",Ht=class extends j{constructor(r,n,i){super(n||Bn,L(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};N(Ht,"BadRequestError");f();c();p();d();m();var Wt=class extends j{constructor(r,n){super("Engine not started: healthcheck timeout",L(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};N(Wt,"HealthcheckTimeoutError");f();c();p();d();m();var Kt=class extends j{constructor(r,n,i){super(n,L(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};N(Kt,"EngineStartupError");f();c();p();d();m();var zt=class extends j{constructor(r){super("Engine version is not supported",L(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};N(zt,"EngineVersionNotSupportedError");f();c();p();d();m();var Un="Request timed out",Yt=class extends j{constructor(r,n=Un){super(n,L(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};N(Yt,"GatewayTimeoutError");f();c();p();d();m();var Pc="Interactive transaction error",Zt=class extends j{constructor(r,n=Pc){super(n,L(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};N(Zt,"InteractiveTransactionError");f();c();p();d();m();var vc="Request parameters are invalid",Xt=class extends j{constructor(r,n=vc){super(n,L(r,!1));this.name="InvalidRequestError";this.code="P5011"}};N(Xt,"InvalidRequestError");f();c();p();d();m();var $n="Requested resource does not exist",er=class extends j{constructor(r,n=$n){super(n,L(r,!1));this.name="NotFoundError";this.code="P5003"}};N(er,"NotFoundError");f();c();p();d();m();var Vn="Unknown server error",yt=class extends j{constructor(r,n,i){super(n||Vn,L(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};N(yt,"ServerError");f();c();p();d();m();var jn="Unauthorized, check your connection string",tr=class extends j{constructor(r,n=jn){super(n,L(r,!1));this.name="UnauthorizedError";this.code="P5007"}};N(tr,"UnauthorizedError");f();c();p();d();m();var Jn="Usage exceeded, retry again later",rr=class extends j{constructor(r,n=Jn){super(n,L(r,!0));this.name="UsageExceededError";this.code="P5008"}};N(rr,"UsageExceededError");async function Tc(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function nr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Tc(e);if(n.type==="QueryEngineError")throw new K(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new yt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new Ge(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new zt(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Kt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new G(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Wt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Zt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Xt(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new tr(r,wt(jn,n));if(e.status===404)return new er(r,wt($n,n));if(e.status===429)throw new rr(r,wt(Jn,n));if(e.status===504)throw new Yt(r,wt(Un,n));if(e.status>=500)throw new yt(r,wt(Vn,n));if(e.status>=400)throw new Ht(r,wt(Bn,n))}function wt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}f();c();p();d();m();function bs(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}f();c();p();d();m();var Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function xs(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,u=g&63,r+=Ce[s]+Ce[a]+Ce[l]+Ce[u];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Ce[s]+Ce[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Ce[s]+Ce[a]+Ce[l]+"="),r}f();c();p();d();m();function Ps(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new G("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}f();c();p();d();m();function Cc(e){return e[0]*1e3+e[1]/1e6}function vs(e){return new Date(Cc(e))}f();c();p();d();m();var Ts={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};f();c();p();d();m();f();c();p();d();m();var ir=class extends ie{constructor(r,n){super(`Cannot fetch data from service: -${r}`,L(n,!0));this.name="RequestError";this.code="P5010"}};N(ir,"RequestError");async function Qe(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(Gn)(e,t)}catch(i){let o=i.message??"Unknown error";throw new ir(o,{clientVersion:n})}}function Rc(e){return{...e.headers,"Content-Type":"application/json"}}function Sc(e){return{method:e.method,headers:Rc(e)}}function Ic(e,t){return{text:()=>Promise.resolve(w.Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(w.Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new Qn(t.headers)}}async function Gn(e,t={}){let r=Oc("https"),n=Sc(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:g,headers:{location:h}}=u;g>=301&&g<=399&&h&&(h.startsWith("http")===!1?s(Gn(`${o}${h}`,t)):s(Gn(h,t))),u.on("data",v=>i.push(v)),u.on("end",()=>s(Ic(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var Oc=typeof zr<"u"?zr:()=>{},Qn=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var kc=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Cs=ee("prisma:client:dataproxyEngine");async function Dc(e,t){let r=Ts["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&kc.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),g=Mc(`<=${a}.${l}.${u}`),h=await Qe(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();Cs("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(A){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),A}return S.version}throw new Je("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function As(e,t){let r=await Dc(e,t);return Cs("version",r),r}function Mc(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Rs=3,Hn=ee("prisma:client:dataproxyEngine"),Wn=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},or=class{constructor(t){this.name="DataProxyEngine";Ps(t),this.config=t,this.env={...t.env,...typeof y<"u"?y.env:{}},this.inlineSchema=xs(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new Wn({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await As(t,this.config),Hn("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:vs(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Qe(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Hn("schema response status",r.status);let n=await nr(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Lr(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?Jt(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Hn("graphql response status",a.status),await this.handleError(await nr(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?Jt(l.errors[0],this.config.clientVersion,this.config.activeProvider):new se(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Qe(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await nr(l,this.clientVersion));let u=await l.json(),g=u.extensions;g&&this.propagateResponseExtensions(g);let h=u.id,v=u["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await nr(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=gt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new je(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new Je("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof ie)||!i.isRetryable)throw i;if(r>=Rs)throw i instanceof ht?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Rs} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await bs(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof Ge)throw await this.uploadSchema(),new ht({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ss({copyEngine:e=!0},t){let r;try{r=gt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&gr("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Ct(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s){let u;throw u=["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."],new z(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new or(t);throw new z("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}f();c();p();d();m();function $r({generator:e}){return e?.previewFeatures??[]}f();c();p();d();m();var Is=e=>({command:e});f();c();p();d();m();f();c();p();d();m();var Os=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);f();c();p();d();m();function Et(e){try{return ks(e,"fast")}catch{return ks(e,"slow")}}function ks(e,t){return JSON.stringify(e.map(r=>Ms(r,t)))}function Ms(e,t){return Array.isArray(e)?e.map(r=>Ms(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:nt(e)?{prisma__type:"date",prisma__value:e.toJSON()}:ve.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Nc(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Ns(e):e}function Nc(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ns(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Ds);let t={};for(let r of Object.keys(e))t[r]=Ds(e[r]);return t}function Ds(e){return typeof e=="bigint"?e.toString():Ns(e)}f();c();p();d();m();var Fc=["$connect","$disconnect","$on","$transaction","$use","$extends"],Fs=Fc;var _c=/^(\s*alter\s)/i,_s=ee("prisma:client");function Kn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&_c.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var zn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Bo(r))n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Et(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Os(r),i={values:Et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?_s(`prisma.${e}(${n}, ${i.values})`):_s(`prisma.${e}(${n})`),{query:n,parameters:i}},Ls={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new le(t,r)}},qs={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};f();c();p();d();m();function Yn(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Bs(r(o)):Bs(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Bs(e){return typeof e.then=="function"?e:Promise.resolve(e)}f();c();p();d();m();var Us={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Zn=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Us}};function $s(e){return e.includes("tracing")?new Zn:Us}f();c();p();d();m();function Vs(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}f();c();p();d();m();function js(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}f();c();p();d();m();var Vr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};f();c();p();d();m();var Qs=qe(Yi());f();c();p();d();m();function jr(e){return typeof e.batchRequestIdx=="number"}f();c();p();d();m();function Js(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(Xn(e.query.arguments)),t.push(Xn(e.query.selection)),t.join("")}function Xn(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${Xn(n)})`:r}).join(" ")})`}f();c();p();d();m();var Lc={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function ei(e){return Lc[e]}f();c();p();d();m();var Jr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iHe("bigint",r));case"bytes-array":return t.map(r=>He("bytes",r));case"decimal-array":return t.map(r=>He("decimal",r));case"datetime-array":return t.map(r=>He("datetime",r));case"date-array":return t.map(r=>He("date",r));case"time-array":return t.map(r=>He("time",r));default:return t}}function Gs(e){let t=[],r=qc(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>ei(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Uc(o),containsWrite:u,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Hs(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ei(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Js(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Bc(t),$c(t,i)||t instanceof Se)throw t;if(t instanceof K&&Vc(t)){let u=Ws(t.meta);Dr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=ot({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new K(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Ie(l,this.client._clientVersion);if(t instanceof se)throw new se(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof G)throw new G(l,this.client._clientVersion);if(t instanceof Ie)throw new Ie(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Qs.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Nn(o,s),l=i==="queryRaw"?Gs(a):It(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Uc(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Hs(e)};xe(e,"Unknown transaction kind")}}function Hs(e){return{id:e.id,payload:e.payload}}function $c(e,t){return jr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Vc(e){return e.code==="P2009"||e.code==="P2012"}function Ws(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Ws)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}f();c();p();d();m();var Ks="5.22.0";var zs=Ks;f();c();p();d();m();var ta=qe(wn());f();c();p();d();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var Ys=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Zs=["pretty","colorless","minimal"],Xs=["info","query","warn","error"],Jc={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=bt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!$r(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Ct()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!Zs.includes(e)){let t=bt(e,Zs);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Xs.includes(r)){let n=bt(r,Xs);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=bt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Qc(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(Hc(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=bt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ra(e,t){for(let[r,n]of Object.entries(e)){if(!Ys.includes(r)){let i=bt(r,Ys);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Jc[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function bt(e,t){if(t.length===0||typeof e!="string")return"";let r=Gc(e,t);return r?` Did you mean "${r}"?`:""}function Gc(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,ta.default)(e,i)}));r.sort((i,o)=>i.distancert(n)===t);if(r)return e[r]}function Hc(e,t){let r=pt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=kr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}f();c();p();d();m();function na(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!jr(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var _e=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Wc={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Kc=Symbol.for("prisma.client.transaction.id"),zc={id:0,nextId(){return++this.id}};function Yc(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Vr;this._createPrismaPromise=Yn();this.$extends=is;e=n?.__internal?.configOverride?.(e)??e,ys(e),n&&ra(n,e);let i=new fr().on("error",()=>{});this._extensions=dt.empty(),this._previewFeatures=$r(e),this._clientVersion=e.clientVersion??zs,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=$s(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&Tt.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&Tt.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Dn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new G(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new G("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&ee.enable("prisma:client");let h=Tt.resolve(e.dirname,e.relativePath);Ci.existsSync(h)||(h=e.dirname),_e("dirname",e.dirname),_e("relativePath",e.relativePath),_e("cwd",h);let v=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,datamodelPath:Tt.join(e.dirname,e.filename??"schema.prisma"),prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&js(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:ws(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:gt,getBatchRequestPayload:Lr,prismaGraphQLToJSError:Jt,PrismaClientUnknownRequestError:se,PrismaClientInitializationError:G,PrismaClientKnownRequestError:K,debug:ee("prisma:client:accelerateEngine"),engineVersion:oa.version,clientVersion:e.clientVersion}},_e("clientVersion",e.clientVersion),this._engine=Ss(e,this._engineConfig),this._requestHandler=new Gr(this,i),l.log)for(let S of l.log){let A=typeof S=="string"?S:S.emit==="stdout"?S.level:null;A&&this.$on(A,R=>{Rt.log(`${Rt.tags[A]??""}`,R.message||R.query)})}this._metrics=new $t(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Gt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ui()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:zn({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ia(n,i);return Kn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new z("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Kn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new z(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Is,callsite:Fe(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:zn({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ia(n,i));throw new z("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new z("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=zc.nextId(),s=Vs(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return na(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Gt(Ee(ns(this),[te("_appliedParent",()=>this._appliedParent._createItxClient(n)),te("_createPrismaPromise",()=>Yn(n)),te(Kc,()=>n.id),mt(Fs)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??Wc,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,M=>g(u,F=>(M?.end(),l(F))));let{runInTransaction:h,args:v,...S}=u,A={...n,...S};v&&(A.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete A.transaction;let R=await ps(this,A);return A.model?as({result:R,modelName:A.model,args:A.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=u?u(n):n;let A={name:"serialize"},R=this._tracingHelper.runInChildSpan(A,()=>Cn({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(_e("Prisma Client call:"),_e(`prisma.${i}(${Qo(n)})`),_e("Generated request:"),_e(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(A){throw A.clientVersion=this._clientVersion,A}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new z("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ia(e,t){return Zc(e)?[new le(e,t),Ls]:[e,qs]}function Zc(e){return Array.isArray(e)&&Array.isArray(e.raw)}f();c();p();d();m();var Xc=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function ep(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Xc.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}f();c();p();d();m();var export_warnEnvConflicts=void 0;export{Bi as Debug,ve as Decimal,Pi as Extensions,$t as MetricsClient,Se as NotFoundError,G as PrismaClientInitializationError,K as PrismaClientKnownRequestError,Ie as PrismaClientRustPanicError,se as PrismaClientUnknownRequestError,z as PrismaClientValidationError,Ti as Public,le as Sql,Vu as defineDmmfProperty,It as deserializeJsonResponse,$u as dmmfToRuntimeDataModel,zu as empty,Yc as getPrismaClient,qn as getRuntime,Ku as join,ep as makeStrictEnum,Ju as makeTypedQueryFactory,bn as objectEnumValues,Vo as raw,Cn as serializeJsonQuery,vn as skip,jo as sqltag,export_warnEnvConflicts as warnEnvConflicts,gr as warnOnce}; -//# sourceMappingURL=edge-esm.js.map diff --git a/keep-notes/prisma/client-generated/runtime/edge.js b/keep-notes/prisma/client-generated/runtime/edge.js deleted file mode 100644 index f8010b0..0000000 --- a/keep-notes/prisma/client-generated/runtime/edge.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict";var fa=Object.create;var cr=Object.defineProperty;var ga=Object.getOwnPropertyDescriptor;var ha=Object.getOwnPropertyNames;var ya=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty;var Se=(e,t)=>()=>(e&&(t=e(e=0)),t);var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pr=(e,t)=>{for(var r in t)cr(e,r,{get:t[r],enumerable:!0})},oi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ha(t))!wa.call(e,i)&&i!==r&&cr(e,i,{get:()=>t[i],enumerable:!(n=ga(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?fa(ya(e)):{},oi(t||!e||!e.__esModule?cr(r,"default",{value:e,enumerable:!0}):r,e)),Ea=e=>oi(cr({},"__esModule",{value:!0}),e);var y,c=Se(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var b,p=Se(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Se(()=>{"use strict";E=()=>{};E.prototype=E});var m=Se(()=>{"use strict"});var Ti=Le(Ye=>{"use strict";f();c();p();d();m();var ci=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ba=ci(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var M=A.indexOf("=");M===-1&&(M=R);var F=M===R?0:4-M%4;return[M,F]}function l(A){var R=a(A),M=R[0],F=R[1];return(M+F)*3/4-F}function u(A,R,M){return(R+M)*3/4-M}function g(A){var R,M=a(A),F=M[0],q=M[1],D=new n(u(A,F,q)),I=0,ae=q>0?F-4:F,J;for(J=0;J>16&255,D[I++]=R>>8&255,D[I++]=R&255;return q===2&&(R=r[A.charCodeAt(J)]<<2|r[A.charCodeAt(J+1)]>>4,D[I++]=R&255),q===1&&(R=r[A.charCodeAt(J)]<<10|r[A.charCodeAt(J+1)]<<4|r[A.charCodeAt(J+2)]>>2,D[I++]=R>>8&255,D[I++]=R&255),D}function h(A){return t[A>>18&63]+t[A>>12&63]+t[A>>6&63]+t[A&63]}function v(A,R,M){for(var F,q=[],D=R;Dae?ae:I+D));return F===1?(R=A[M-1],q.push(t[R>>2]+t[R<<4&63]+"==")):F===2&&(R=(A[M-2]<<8)+A[M-1],q.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),q.join("")}}),xa=ci(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,A=t[r+v];for(v+=S,s=A&(1<<-h)-1,A>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(A?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:s-1,R=i?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?r+=S/u:r+=S*Math.pow(2,1-v),r*u>=2&&(a++,u/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*u-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+A]=l&255,A+=R,l/=256,o-=8);for(a=a<0;t[n+A]=a&255,A+=R,a/=256,g-=8);t[n+A-R]|=M*128}}),tn=ba(),Ke=xa(),si=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=T;Ye.SlowBuffer=Ra;Ye.INSPECT_MAX_BYTES=50;var dr=2147483647;Ye.kMaxLength=dr;T.TYPED_ARRAY_SUPPORT=Pa();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Pa(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function xe(e){if(e>dr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return on(e)}return pi(e,t,r)}T.poolSize=8192;function pi(e,t,r){if(typeof e=="string")return Ta(e,t);if(ArrayBuffer.isView(e))return Ca(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return mi(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=Aa(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return pi(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function di(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function va(e,t,r){return di(e),e<=0?xe(e):t!==void 0?typeof r=="string"?xe(e).fill(t,r):xe(e).fill(t):xe(e)}T.alloc=function(e,t,r){return va(e,t,r)};function on(e){return di(e),xe(e<0?0:sn(e)|0)}T.allocUnsafe=function(e){return on(e)};T.allocUnsafeSlow=function(e){return on(e)};function Ta(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=fi(e,t)|0,n=xe(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function rn(e){let t=e.length<0?0:sn(e.length)|0,r=xe(t);for(let n=0;n=dr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dr.toString(16)+" bytes");return e|0}function Ra(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function fi(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return vi(e).length;default:if(i)return n?-1:nn(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=fi;function Sa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return qa(this,t,r);case"utf8":case"utf-8":return hi(this,t,r);case"ascii":return _a(this,t,r);case"latin1":case"binary":return La(this,t,r);case"base64":return Na(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ba(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Be(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};si&&(T.prototype[si]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ln(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:ai(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ai(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ai(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return Ia(this,e,t,r);case"utf8":case"utf-8":return Oa(this,e,t,r);case"ascii":case"latin1":case"binary":return ka(this,e,t,r);case"base64":return Da(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ma(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Na(e,t,r){return t===0&&r===e.length?tn.fromByteArray(e):tn.fromByteArray(e.slice(t,r))}function hi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Fa(n)}var li=4096;function Fa(e){let t=e.length;if(t<=li)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Ie(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Ie(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||H(e,4,this.length),Ke.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||H(e,4,this.length),Ke.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!1,52,8)};function re(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function yi(e,t,r,n,i){Pi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function wi(e,t,r,n,i){Pi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Ie(function(e,t=0){return yi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Ie(function(e,t=0){return wi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Ie(function(e,t=0){return yi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Ie(function(e,t=0){return wi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ei(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bi(e,t,r,n,i){return t=+t,r=r>>>0,i||Ei(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return bi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return bi(this,e,t,!1,r)};function xi(e,t,r,n,i){return t=+t,r=r>>>0,i||Ei(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return xi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return xi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ui(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ui(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ui(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ua(e,t,r){ze(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Tt(t,e.length-(r+1))}function Pi(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new We.ERR_OUT_OF_RANGE("value",a,e)}Ua(n,i,o)}function ze(e,t){if(typeof e!="number")throw new We.ERR_INVALID_ARG_TYPE(t,"number",e)}function Tt(e,t,r){throw Math.floor(e)!==e?(ze(e,r),new We.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var $a=/[^+/0-9A-Za-z-_]/g;function Va(e){if(e=e.split("=")[0],e=e.trim().replace($a,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ja(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function vi(e){return tn.toByteArray(Va(e))}function mr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ln(e){return e!==e}var Ga=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Ie(e){return typeof BigInt>"u"?Qa:e}function Qa(){throw new Error("BigInt not supported")}});var w,f=Se(()=>{"use strict";w=qe(Ti())});function Ha(){return!1}var Wa,Ka,Si,Ii=Se(()=>{"use strict";f();c();p();d();m();Wa={},Ka={existsSync:Ha,promises:Wa},Si=Ka});function tl(...e){return e.join("/")}function rl(...e){return e.join("/")}var ji,nl,il,At,Ji=Se(()=>{"use strict";f();c();p();d();m();ji="/",nl={sep:ji},il={resolve:tl,posix:nl,join:rl,sep:ji},At=il});var yr,Qi=Se(()=>{"use strict";f();c();p();d();m();yr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Wi=Le((hm,Hi)=>{"use strict";f();c();p();d();m();Hi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Yi=Le((Sm,zi)=>{"use strict";f();c();p();d();m();zi.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Xi=Le((Nm,Zi)=>{"use strict";f();c();p();d();m();var cl=Yi();Zi.exports=e=>typeof e=="string"?e.replace(cl(),""):e});var Tn=Le((Ih,yo)=>{"use strict";f();c();p();d();m();yo.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{Xu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Qo=Le(()=>{"use strict";f();c();p();d();m()});var rp={};pr(rp,{Debug:()=>mn,Decimal:()=>fe,Extensions:()=>un,MetricsClient:()=>ft,NotFoundError:()=>ve,PrismaClientInitializationError:()=>G,PrismaClientKnownRequestError:()=>W,PrismaClientRustPanicError:()=>Te,PrismaClientUnknownRequestError:()=>ne,PrismaClientValidationError:()=>K,Public:()=>cn,Sql:()=>oe,defineDmmfProperty:()=>Vo,deserializeJsonResponse:()=>rt,dmmfToRuntimeDataModel:()=>$o,empty:()=>Wo,getPrismaClient:()=>pa,getRuntime:()=>Gr,join:()=>Ho,makeStrictEnum:()=>da,makeTypedQueryFactory:()=>jo,objectEnumValues:()=>Dr,raw:()=>_n,serializeJsonQuery:()=>qr,skip:()=>Lr,sqltag:()=>Ln,warnEnvConflicts:()=>void 0,warnOnce:()=>Ot});module.exports=Ea(rp);f();c();p();d();m();var un={};pr(un,{defineExtension:()=>Ci,getExtensionContext:()=>Ai});f();c();p();d();m();f();c();p();d();m();function Ci(e){return typeof e=="function"?e:t=>t.$extends(e)}f();c();p();d();m();function Ai(e){return e}var cn={};pr(cn,{validator:()=>Ri});f();c();p();d();m();f();c();p();d();m();function Ri(...e){return t=>t}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var pn,Oi,ki,Di,Mi=!0;typeof y<"u"&&({FORCE_COLOR:pn,NODE_DISABLE_COLORS:Oi,NO_COLOR:ki,TERM:Di}=y.env||{},Mi=y.stdout&&y.stdout.isTTY);var za={enabled:!Oi&&ki==null&&Di!=="dumb"&&(pn!=null&&pn!=="0"||Mi)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!za.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Xp=V(0,0),fr=V(1,22),gr=V(2,22),ed=V(3,23),Ni=V(4,24),td=V(7,27),rd=V(8,28),nd=V(9,29),id=V(30,39),Ze=V(31,39),Fi=V(32,39),_i=V(33,39),Li=V(34,39),od=V(35,39),qi=V(36,39),sd=V(37,39),Bi=V(90,39),ad=V(90,39),ld=V(40,49),ud=V(41,49),cd=V(42,49),pd=V(43,49),dd=V(44,49),md=V(45,49),fd=V(46,49),gd=V(47,49);f();c();p();d();m();var Ya=100,Ui=["green","yellow","blue","magenta","cyan","red"],hr=[],$i=Date.now(),Za=0,dn=typeof y<"u"?y.env:{};globalThis.DEBUG??=dn.DEBUG??"";globalThis.DEBUG_COLORS??=dn.DEBUG_COLORS?dn.DEBUG_COLORS==="true":!0;var Ct={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Xa(e){let t={color:Ui[Za++%Ui.length],enabled:Ct.enabled(e),namespace:e,log:Ct.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&hr.push([o,...n]),hr.length>Ya&&hr.shift(),Ct.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:el(g)),u=`+${Date.now()-$i}ms`;$i=Date.now(),a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var mn=new Proxy(Xa,{get:(e,t)=>Ct[t],set:(e,t,r)=>Ct[t]=r});function el(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Vi(){hr.length=0}var ee=mn;f();c();p();d();m();f();c();p();d();m();var Gi="library";function Rt(e){let t=ol();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":Gi)}function ol(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}f();c();p();d();m();f();c();p();d();m();var Ue;(t=>{let e;(I=>(I.findUnique="findUnique",I.findUniqueOrThrow="findUniqueOrThrow",I.findFirst="findFirst",I.findFirstOrThrow="findFirstOrThrow",I.findMany="findMany",I.create="create",I.createMany="createMany",I.createManyAndReturn="createManyAndReturn",I.update="update",I.updateMany="updateMany",I.upsert="upsert",I.delete="delete",I.deleteMany="deleteMany",I.groupBy="groupBy",I.count="count",I.aggregate="aggregate",I.findRaw="findRaw",I.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Ue||={});var It={};pr(It,{error:()=>ll,info:()=>al,log:()=>sl,query:()=>ul,should:()=>Ki,tags:()=>St,warn:()=>fn});f();c();p();d();m();var St={error:Ze("prisma:error"),warn:_i("prisma:warn"),info:qi("prisma:info"),query:Li("prisma:query")},Ki={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function sl(...e){console.log(...e)}function fn(e,...t){Ki.warn()&&console.warn(`${St.warn} ${e}`,...t)}function al(e,...t){console.info(`${St.info} ${e}`,...t)}function ll(e,...t){console.error(`${St.error} ${e}`,...t)}function ul(e,...t){console.log(`${St.query} ${e}`,...t)}f();c();p();d();m();function Pe(e,t){throw new Error(t)}f();c();p();d();m();function gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}f();c();p();d();m();var hn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});f();c();p();d();m();function Xe(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}f();c();p();d();m();function yn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{eo.has(e)||(eo.add(e),fn(t,...r))};f();c();p();d();m();var W=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(W,"PrismaClientKnownRequestError");var ve=class extends W{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};N(ve,"NotFoundError");f();c();p();d();m();var G=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(G,"PrismaClientInitializationError");f();c();p();d();m();var Te=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(Te,"PrismaClientRustPanicError");f();c();p();d();m();var ne=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(ne,"PrismaClientUnknownRequestError");f();c();p();d();m();var K=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(K,"PrismaClientValidationError");f();c();p();d();m();f();c();p();d();m();var et=9e15,Me=1e9,wn="0123456789abcdef",Er="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",br="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",En={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-et,maxE:et,crypto:!1},oo,Ce,_=!0,Pr="[DecimalError] ",De=Pr+"Invalid argument: ",so=Pr+"Precision limit exceeded",ao=Pr+"crypto unavailable",lo="[object Decimal]",X=Math.floor,Q=Math.pow,pl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,dl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ml=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,uo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,k=7,fl=9007199254740991,gl=Er.length-1,bn=br.length-1,C={toStringTag:lo};C.absoluteValue=C.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)};C.ceil=function(){return O(new this.constructor(this),this.e+1,2)};C.clampedTo=C.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(De+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};C.comparedTo=C.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};C.cosine=C.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=hl(n,go(n,r)),n.precision=e,n.rounding=t,O(Ce==2||Ce==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};C.cubeRoot=C.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*Q(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Y(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=Q(r,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=U(u.plus(g).times(a),u.plus(l),s+2,1),Y(a.d).slice(0,s)===(r=Y(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(O(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(O(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,O(n,e,h.rounding,t)};C.decimalPlaces=C.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-X(this.e/k))*k,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};C.dividedBy=C.div=function(e){return U(this,new this.constructor(e))};C.dividedToIntegerBy=C.divToInt=function(e){var t=this,r=t.constructor;return O(U(t,new r(e),0,1,1),r.precision,r.rounding)};C.equals=C.eq=function(e){return this.cmp(e)===0};C.floor=function(){return O(new this.constructor(this),this.e+1,3)};C.greaterThan=C.gt=function(e){return this.cmp(e)>0};C.greaterThanOrEqualTo=C.gte=function(e){var t=this.cmp(e);return t==1||t===0};C.hyperbolicCosine=C.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/Tr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=tt(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return O(o,s.precision=r,s.rounding=n,!0)};C.hyperbolicSine=C.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=tt(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Tr(5,e)),i=tt(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)};C.hyperbolicTangent=C.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,U(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};C.inverseCosine=C.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?ce(r,i,o):new r(0):new r(NaN):t.isZero()?ce(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=ce(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};C.inverseHyperbolicCosine=C.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};C.inverseHyperbolicSine=C.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};C.inverseHyperbolicTangent=C.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=U(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};C.inverseSine=C.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=ce(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};C.inverseTangent=C.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=bn)return s=ce(g,h+4,v).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=bn)return s=ce(g,h+4,v).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/k+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/k),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};C.isNaN=function(){return!this.s};C.isNegative=C.isNeg=function(){return this.s<0};C.isPositive=C.isPos=function(){return this.s>0};C.isZero=function(){return!!this.d&&this.d[0]===0};C.lessThan=C.lt=function(e){return this.cmp(e)<0};C.lessThanOrEqualTo=C.lte=function(e){return this.cmp(e)<1};C.logarithm=C.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=ke(u,a),n=t?xr(g,a+10):ke(e,a),l=U(s,n,a,1),kt(l.d,i=h,v))do if(a+=10,s=ke(u,a),n=t?xr(g,a+10):ke(e,a),l=U(s,n,a,1),!o){+Y(l.d).slice(i+1,i+15)+1==1e14&&(l=O(l,h+1,0));break}while(kt(l.d,i+=10,v));return _=!0,O(l,h,v)};C.minus=C.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.constructor;if(e=new A(e),!S.d||!e.d)return!S.s||!e.s?e=new A(NaN):S.d?e.s=-e.s:e=new A(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,v=e.d,a=A.precision,l=A.rounding,!u[0]||!v[0]){if(v[0])e.s=-e.s;else if(u[0])e=new A(S);else return new A(l===3?-0:0);return _?O(e,a,l):e}if(r=X(e.e/k),g=X(S.e/k),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=v.length):(t=v,r=g,s=u.length),n=Math.max(Math.ceil(a/k),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=v.length,h=n0;--n)u[s++]=0;for(n=v.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/pe|0,u[i]%=pe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=vr(u,n),_?O(e,a,l):e};C.precision=C.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(De+e);return r.d?(t=co(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};C.round=function(){var e=this,t=e.constructor;return O(new t(e),e.e+1,t.rounding)};C.sine=C.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=wl(n,go(n,r)),n.precision=e,n.rounding=t,O(Ce>2?r.neg():r,e,t,!0)):new n(NaN)};C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Y(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=X((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(U(s,o,r+2,1)).times(.5),Y(o.d).slice(0,r)===(t=Y(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(O(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(O(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,O(n,l,g.rounding,e)};C.tangent=C.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=U(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(Ce==2||Ce==4?r.neg():r,e,t,!0)):new n(NaN)};C.times=C.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=X(g.e/k)+X(e.e/k),l=v.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%pe|0,t=a/pe|0;o[i]=(o[i]+t)%pe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=vr(o,r),_?O(e,h.precision,h.rounding):e};C.toBinary=function(e,t){return vn(this,2,e,t)};C.toDecimalPlaces=C.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ie(e,0,Me),t===void 0?t=n.rounding:ie(t,0,8),O(r,e+r.e+1,t))};C.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,!0):(ie(e,0,Me),t===void 0?t=i.rounding:ie(t,0,8),n=O(new i(n),e+1,t),r=me(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=me(i):(ie(e,0,Me),t===void 0?t=o.rounding:ie(t,0,8),n=O(new o(i),e+i.e+1,t),r=me(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};C.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.d,R=S.constructor;if(!A)return new R(S);if(u=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=co(A)-S.e-1,s=o%k,t.d[0]=Q(10,s<0?k+s:s),e==null)e=o>0?t:u;else{if(a=new R(e),!a.isInt()||a.lt(u))throw Error(De+a);e=a.gt(t)?o>0?t:u:a}for(_=!1,a=new R(Y(A)),g=R.precision,R.precision=o=A.length*k*2;h=U(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=U(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,v=U(u,n,o,1).minus(S).abs().cmp(U(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],R.precision=g,_=!0,v};C.toHexadecimal=C.toHex=function(e,t){return vn(this,16,e,t)};C.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ie(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=U(r,e,0,t,1).times(e),_=!0,O(r)):(e.s=r.s,r=e),r};C.toNumber=function(){return+this};C.toOctal=function(e,t){return vn(this,8,e,t)};C.toPower=C.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(Q(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return O(a,n,o);if(t=X(e.e/k),t>=e.d.length-1&&(r=u<0?-u:u)<=fl)return i=po(l,a,r,n),e.s<0?new l(1).div(i):O(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=xn(e.times(ke(a,n+r)),n),i.d&&(i=O(i,n+5,1),kt(i.d,n,o)&&(t=n+10,i=O(xn(e.times(ke(a,t+r)),t),t+5,1),+Y(i.d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,O(i,n,o))};C.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,Me),t===void 0?t=i.rounding:ie(t,0,8),n=O(new i(n),e,t),r=me(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toSignificantDigits=C.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ie(e,1,Me),t===void 0?t=n.rounding:ie(t,0,8)),O(new n(r),e,t)};C.toString=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};C.truncated=C.trunc=function(){return O(new this.constructor(this),this.e+1,1)};C.valueOf=C.toJSON=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Y(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(De+e)}function kt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=k,i=0):(i=Math.ceil((t+1)/k),t%=k),o=Q(10,k-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==Q(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==Q(10,t-3)-1,s}function wr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function hl(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Tr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=tt(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var U=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,v,S,A,R,M,F,q,D,I,ae,J,Zr,ar,vt,Xr,ue,lr,ur=n.constructor,en=n.s==i.s?1:-1,Z=n.d,$=i.d;if(!Z||!Z[0]||!$||!$[0])return new ur(!n.s||!i.s||(Z?$&&Z[0]==$[0]:!$)?NaN:Z&&Z[0]==0||!$?en*0:en/0);for(l?(S=1,g=n.e-i.e):(l=pe,S=k,g=X(n.e/S)-X(i.e/S)),ue=$.length,vt=Z.length,F=new ur(en),q=F.d=[],h=0;$[h]==(Z[h]||0);h++);if($[h]>(Z[h]||0)&&g--,o==null?(J=o=ur.precision,s=ur.rounding):a?J=o+(n.e-i.e)+1:J=o,J<0)q.push(1),A=!0;else{if(J=J/S+2|0,h=0,ue==1){for(v=0,$=$[0],J++;(h1&&($=e($,v,l),Z=e(Z,v,l),ue=$.length,vt=Z.length),ar=ue,D=Z.slice(0,ue),I=D.length;I=l/2&&++Xr;do v=0,u=t($,D,ue,I),u<0?(ae=D[0],ue!=I&&(ae=ae*l+(D[1]||0)),v=ae/Xr|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),M=R.length,I=D.length,u=t(R,D,M,I),u==1&&(v--,r(R,ue=10;v/=10)h++;F.e=h+g*S-1,O(F,a?o+F.e+1:o,s,A)}return F}}();function O(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=k,s=t,g=h[v=0],l=g/Q(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/k),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=k,s=o-k+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=k,s=o-k+i,l=s<0?0:g/Q(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%Q(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/Q(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=Q(10,(k-t%k)%k),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=Q(10,k-o),h[v]=s>0?(g/Q(10,i-s)%Q(10,s)|0)*a:0),u)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==pe&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=pe)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+Oe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Oe(-i-1)+o,r&&(n=r-s)>0&&(o+=Oe(n))):i>=s?(o+=Oe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Oe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Oe(n))),o}function vr(e,t){var r=e[0];for(t*=k;r>=10;r/=10)t++;return t}function xr(e,t,r){if(t>gl)throw _=!0,r&&(e.precision=r),Error(so);return O(new e(Er),t,1,!0)}function ce(e,t,r){if(t>bn)throw Error(so);return O(new e(br),t,r,!0)}function co(e){var t=e.length-1,r=t*k+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Oe(e){for(var t="";e--;)t+="0";return t}function po(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/k+4);for(_=!1;;){if(r%2&&(o=o.times(t),no(o.d,s)&&(i=!0)),r=X(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),no(t.d,s)}return _=!0,o}function ro(e){return e.d[e.d.length-1]&1}function mo(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=A):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(Q(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++g),a=s.plus(U(o,r,l,1)),Y(a.d).slice(0,l)===Y(s.d).slice(0,l)){for(i=h;i--;)s=O(s.times(s),l,1);if(t==null)if(u<3&&kt(s.d,l-n,S,u))v.precision=l+=10,r=o=a=new v(1),g=0,u++;else return O(s,v.precision=A,S,_=!0);else return v.precision=A,s}s=a}}function ke(e,t){var r,n,i,o,s,a,l,u,g,h,v,S=1,A=10,R=e,M=R.d,F=R.constructor,q=F.rounding,D=F.precision;if(R.s<0||!M||!M[0]||!R.e&&M[0]==1&&M.length==1)return new F(M&&!M[0]?-1/0:R.s!=1?NaN:M?0:R);if(t==null?(_=!1,g=D):g=t,F.precision=g+=A,r=Y(M),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=Y(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new F("0."+r),o++):R=new F(n+"."+r.slice(1))}else return u=xr(F,g+2,D).times(o+""),R=ke(new F(n+"."+r.slice(1)),g-A).plus(u),F.precision=D,t==null?O(R,D,q,_=!0):R;for(h=R,l=s=R=U(R.minus(1),R.plus(1),g,1),v=O(R.times(R),g,1),i=3;;){if(s=O(s.times(v),g,1),u=l.plus(U(s,new F(i),g,1)),Y(u.d).slice(0,g)===Y(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(xr(F,g+2,D).times(o+""))),l=U(l,new F(S),g,1),t==null)if(kt(l.d,g-A,q,a))F.precision=g+=A,u=s=R=U(h.minus(1),h.plus(1),g,1),v=O(R.times(R),g,1),i=a=1;else return O(l,F.precision=D,q,_=!0);else return F.precision=D,l;l=u,i+=2}}function fo(e){return String(e.s*e.s/0)}function Pn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%k,r<0&&(n+=k),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),uo.test(t))return Pn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(dl.test(t))r=16,t=t.toLowerCase();else if(pl.test(t))r=2;else if(ml.test(t))r=8;else throw Error(De+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=po(n,new n(r),o,o*2)),u=wr(t,r,pe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=vr(u,g),e.d=u,_=!1,s&&(e=U(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?Q(2,l):$e.pow(2,l))),_=!0,e)}function wl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:tt(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Tr(5,r)),t=tt(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function tt(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/k);for(_=!1,l=r.times(r),a=new e(n);;){if(s=U(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=U(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return _=!0,s.d.length=h+1,s}function Tr(e,t){for(var r=e;--t;)r*=e;return r}function go(e,t){var r,n=t.s<0,i=ce(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ce=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ce=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ce=ro(r)?n?2:3:n?4:1,t;Ce=ro(r)?n?1:4:n?3:2}return t.minus(i).abs()}function vn(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor,A=r!==void 0;if(A?(ie(r,1,Me),n===void 0?n=S.rounding:ie(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=fo(e);else{for(g=me(e),s=g.indexOf("."),A?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=wr(me(v),10,i),v.e=v.d.length),h=wr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=A?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=U(e,v,r,n,0,i),h=e.d,o=e.e,u=oo),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=wr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function El(e){return new this(e).abs()}function bl(e){return new this(e).acos()}function xl(e){return new this(e).acosh()}function Pl(e,t){return new this(e).plus(t)}function vl(e){return new this(e).asin()}function Tl(e){return new this(e).asinh()}function Cl(e){return new this(e).atan()}function Al(e){return new this(e).atanh()}function Rl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ce(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ce(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ce(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(U(e,t,o,1)),t=ce(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(U(e,t,o,1)),r}function Sl(e){return new this(e).cbrt()}function Il(e){return O(e=new this(e),e.e+1,2)}function Ol(e,t,r){return new this(e).clamp(t,r)}function kl(e){if(!e||typeof e!="object")throw Error(Pr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,Me,"rounding",0,8,"toExpNeg",-et,0,"toExpPos",0,et,"maxE",0,et,"minE",-et,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(De+r+": "+n);if(r="crypto",i&&(this[r]=En[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(ao);else this[r]=!1;else throw Error(De+r+": "+n);return this}function Dl(e){return new this(e).cos()}function Ml(e){return new this(e).cosh()}function ho(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,io(o)){u.s=o.s,_?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(ao);else for(;o=10;i/=10)n++;ne.highlight()},lu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function uu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function cu({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(pu(t))),i){a.push("");let u=[i.toString()];o&&(u.push(o),u.push(s.dim(")"))),a.push(u.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function pu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function st(e){let t=e.showColors?au:lu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=uu(e),cu(r,t)}f();c();p();d();m();var vo=qe(Tn());f();c();p();d();m();function bo(e,t,r){let n=xo(e),i=du(n),o=fu(i);o?Ar(o,t,r):t.addErrorMessage(()=>"Unknown error")}function xo(e){return e.errors.flatMap(t=>t.kind==="Union"?xo(t):[t])}function du(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:mu(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function mu(e,t){return[...new Set(e.concat(t))]}function fu(e){return yn(e,(t,r)=>{let n=wo(t),i=wo(r);return n!==i?n-i:Eo(t)-Eo(r)})}function wo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Eo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}f();c();p();d();m();var le=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};f();c();p();d();m();f();c();p();d();m();var at=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};f();c();p();d();m();f();c();p();d();m();var Rr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};f();c();p();d();m();var Sr=e=>e,Ir={bold:Sr,red:Sr,green:Sr,dim:Sr,enabled:!1},Po={bold:fr,red:Ze,green:Fi,dim:gr,enabled:!0},lt={write(e){e.writeLine(",")}};f();c();p();d();m();var ge=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};f();c();p();d();m();var Ne=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var ut=class extends Ne{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Rr(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new ge("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(lt,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ct=class e extends Ne{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof ut&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new ge("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(lt,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};f();c();p();d();m();var z=class extends Ne{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new ge(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};f();c();p();d();m();var Dt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(lt,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Ar(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":hu(e,t);break;case"IncludeOnScalar":yu(e,t);break;case"EmptySelection":wu(e,t,r);break;case"UnknownSelectionField":Pu(e,t);break;case"InvalidSelectionValue":vu(e,t);break;case"UnknownArgument":Tu(e,t);break;case"UnknownInputField":Cu(e,t);break;case"RequiredArgumentMissing":Au(e,t);break;case"InvalidArgumentType":Ru(e,t);break;case"InvalidArgumentValue":Su(e,t);break;case"ValueTooLarge":Iu(e,t);break;case"SomeFieldsMissing":Ou(e,t);break;case"TooManyFieldsGiven":ku(e,t);break;case"Union":bo(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function hu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function yu(e,t){let[r,n]=Mt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new le(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Nt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function wu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Eu(e,t,i);return}if(n.hasField("select")){bu(e,t);return}}if(r?.[nt(e.outputType.name)]){xu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Eu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new le(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function bu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Ao(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Nt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function xu(e,t){let r=new Dt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new le("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=Mt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ct;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Pu(e,t){let r=Ro(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Ao(n,e.outputType);break;case"include":Du(n,e.outputType);break;case"omit":Mu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Nt(n)),i.join(" ")})}function vu(e,t){let r=Ro(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Tu(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Nu(n,e.arguments)),t.addErrorMessage(i=>To(i,r,e.arguments.map(o=>o.name)))}function Cu(e,t){let[r,n]=Mt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&So(o,e.inputType)}t.addErrorMessage(o=>To(o,n,e.inputType.fields.map(s=>s.name)))}function To(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=_u(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Nt(e)),n.join(" ")}function Au(e,t){let r;t.addErrorMessage(l=>r?.value instanceof z&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=Mt(e.argumentPath),s=new Dt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new le(o,s).makeRequired())}else{let l=e.inputTypes.map(Co).join(" | ");a.addSuggestion(new le(o,l).makeRequired())}}function Co(e){return e.kind==="list"?`${Co(e.elementType)}[]`:e.name}function Ru(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Or("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Su(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Or("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Iu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof z&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Ou(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&So(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Or("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Nt(i)),o.join(" ")})}function ku(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Or("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Ao(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,"true"))}function Du(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new le(r.name,"true"))}function Mu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new le(r.name,"true"))}function Nu(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Ro(e,t){let[r,n]=Mt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function So(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Mt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Nt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Or(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Fu=3;function _u(e,t){let r=1/0,n;for(let i of t){let o=(0,vo.default)(e,i);o>Fu||o`}};function pt(e){return e instanceof Ft}f();c();p();d();m();var kr=Symbol(),Cn=new WeakMap,Ae=class{constructor(t){t===kr?Cn.set(this,`Prisma.${this._getName()}`):Cn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Cn.get(this)}},_t=class extends Ae{_getNamespace(){return"NullTypes"}},Lt=class extends _t{};An(Lt,"DbNull");var qt=class extends _t{};An(qt,"JsonNull");var Bt=class extends _t{};An(Bt,"AnyNull");var Dr={classes:{DbNull:Lt,JsonNull:qt,AnyNull:Bt},instances:{DbNull:new Lt(kr),JsonNull:new qt(kr),AnyNull:new Bt(kr)}};function An(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}f();c();p();d();m();var Oo=": ",Mr=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Oo.length}write(t){let r=new ge(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Oo).write(this.value)}};var Rn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function dt(e){return new Rn(ko(e))}function ko(e){let t=new ct;for(let[r,n]of Object.entries(e)){let i=new Mr(r,Do(n));t.addField(i)}return t}function Do(e){if(typeof e=="string")return new z(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new z(String(e));if(typeof e=="bigint")return new z(`${e}n`);if(e===null)return new z("null");if(e===void 0)return new z("undefined");if(ot(e))return new z(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new z(`Buffer.alloc(${e.byteLength})`):new z(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Cr(e)?e.toISOString():"Invalid Date";return new z(`new Date("${t}")`)}return e instanceof Ae?new z(`Prisma.${e._getName()}`):pt(e)?new z(`prisma.${Io(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Lu(e):typeof e=="object"?ko(e):new z(Object.prototype.toString.call(e))}function Lu(e){let t=new ut;for(let r of e)t.addItem(Do(r));return t}function Nr(e,t){let r=t==="pretty"?Po:Ir,n=e.renderAllMessages(r),i=new at(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Fr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=dt(e);for(let h of t)Ar(h,a,s);let{message:l,args:u}=Nr(a,r),g=st({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new K(g,{clientVersion:o})}f();c();p();d();m();f();c();p();d();m();var he=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};f();c();p();d();m();function Ut(e){let t;return{get(){return t||(t={value:e()}),t.value}}}f();c();p();d();m();function ye(e){return e.replace(/^./,t=>t.toLowerCase())}f();c();p();d();m();function No(e,t,r){let n=ye(r);return!t.result||!(t.result.$allModels||t.result[n])?e:qu({...e,...Mo(t.name,e,t.result.$allModels),...Mo(t.name,e,t.result[n])})}function qu(e){let t=new he,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Xe(e,n=>({...n,needs:r(n.name,new Set)}))}function Mo(e,t,r){return r?Xe(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Bu(t,o,i)})):{}}function Bu(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Fo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function _o(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var _r=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new he;this.modelExtensionsCache=new he;this.queryCallbacksCache=new he;this.clientExtensions=Ut(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=Ut(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>No(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=ye(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},mt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new _r(t))}isEmpty(){return this.head===void 0}append(t){return new e(new _r(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};f();c();p();d();m();f();c();p();d();m();var Lo=Symbol(),$t=class{constructor(t){if(t!==Lo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Lr:t}},Lr=new $t(Lo);function we(e){return e instanceof $t}var Uu={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},qo="explicitly `undefined` values are not allowed";function qr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=mt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Sn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:Uu[t],query:Vt(r,h)}}function Vt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:Uo(r,n),selection:$u(e,t,i,n)}}function $u(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Gu(e,n)):Vu(n,t,r)}function Vu(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&ju(n,t,e),e.isPreviewFeatureOn("omitApi")&&Ju(n,r,e),n}function ju(e,t,r){for(let[n,i]of Object.entries(t)){if(we(i))continue;let o=r.nestSelection(n);if(In(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Vt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Vt(i,o)}}function Ju(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=_o(i,n);for(let[s,a]of Object.entries(o)){if(we(a))continue;In(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function Gu(e,t){let r={},n=t.getComputedFields(),i=Fo(e,n);for(let[o,s]of Object.entries(i)){if(we(s))continue;let a=t.nestSelection(o);In(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||we(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Vt({},a):r[o]=!0;continue}r[o]=Vt(s,a)}}return r}function Bo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(it(e)){if(Cr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(pt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return Qu(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(Hu(e))return e.values;if(ot(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Ae){if(e!==Dr.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Wu(e))return e.toJSON();if(typeof e=="object")return Uo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Uo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);we(i)||(i!==void 0?r[n]=Bo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:qo}))}return r}function Qu(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[nt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Pe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};f();c();p();d();m();var ft=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};f();c();p();d();m();function $o(e){return{models:On(e.models),enums:On(e.enums),types:On(e.types)}}function On(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function Vo(e,t){let r=Ut(()=>Ku(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function Ku(e){return{datamodel:{models:kn(e.models),enums:kn(e.enums),types:kn(e.types)}}}function kn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}f();c();p();d();m();var Dn=new WeakMap,Br="$$PrismaTypedSql",Mn=class{constructor(t,r){Dn.set(this,{sql:t,values:r}),Object.defineProperty(this,Br,{value:Br})}get sql(){return Dn.get(this).sql}get values(){return Dn.get(this).values}};function jo(e){return(...t)=>new Mn(e,t)}function Jo(e){return e!=null&&e[Br]===Br}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function jt(e){return{ok:!1,error:e,map(){return jt(e)},flatMap(){return jt(e)}}}var Nn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Fn=e=>{let t=new Nn,r=Ee(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ee(t,e.queryRaw.bind(e)),executeRaw:Ee(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>zu(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=Zu(t,e.getConnectionInfo.bind(e))),n},zu=(e,t)=>{let r=Ee(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ee(e,t.queryRaw.bind(t)),executeRaw:Ee(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>Yu(e,o))}},Yu=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ee(e,t.queryRaw.bind(t)),executeRaw:Ee(e,t.executeRaw.bind(t)),commit:Ee(e,t.commit.bind(t)),rollback:Ee(e,t.rollback.bind(t))});function Ee(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return jt({kind:"GenericJs",id:i})}}}function Zu(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return jt({kind:"GenericJs",id:i})}}}var ca=qe(Go());var iD=qe(Qo());Qi();Ii();Ji();f();c();p();d();m();var oe=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}f();c();p();d();m();f();c();p();d();m();var Ur={enumerable:!0,configurable:!0,writable:!0};function $r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Ur,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Ko=Symbol.for("nodejs.util.inspect.custom");function be(e,t){let r=ec(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=zo(Reflect.ownKeys(o),r),a=zo(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Ur,...l?.getPropertyDescriptor(s)}:Ur:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[Ko]=function(){let o={...this};return delete o[Ko],o},i}function ec(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function zo(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}f();c();p();d();m();function gt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}f();c();p();d();m();function Vr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}f();c();p();d();m();function Yo(e){if(e===void 0)return"";let t=dt(e);return new at(0,{colors:Ir}).write(t).toString()}f();c();p();d();m();var tc="P2037";function Gt({error:e,user_facing_error:t},r,n){return t.error_code?new W(rc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new ne(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function rc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===tc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var qn=class{getLocation(){return null}};function Fe(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new qn}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Zo={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function ht(e={}){let t=ic(e);return Object.entries(t).reduce((n,[i,o])=>(Zo[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function ic(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function jr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Xo(e,t){let r=jr(e);return t({action:"aggregate",unpacker:r,argsMapper:ht})(e)}f();c();p();d();m();function oc(e={}){let{select:t,...r}=e;return typeof t=="object"?ht({...r,_count:t}):ht({...r,_count:{_all:!0}})}function sc(e={}){return typeof e.select=="object"?t=>jr(e)(t)._count:t=>jr(e)(t)._count._all}function es(e,t){return t({action:"count",unpacker:sc(e),argsMapper:oc})(e)}f();c();p();d();m();function ac(e={}){let t=ht(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function lc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function ts(e,t){return t({action:"groupBy",unpacker:lc(e),argsMapper:ac})(e)}function rs(e,t,r){if(t==="aggregate")return n=>Xo(n,r);if(t==="count")return n=>es(n,r);if(t==="groupBy")return n=>ts(n,r)}f();c();p();d();m();function ns(e,t){let r=t.fields.filter(i=>!i.relationName),n=hn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Ft(e,o,s.type,s.isList,s.kind==="enum")},...$r(Object.keys(n))})}f();c();p();d();m();f();c();p();d();m();var is=e=>Array.isArray(e)?e:e.split("."),Bn=(e,t)=>is(t).reduce((r,n)=>r&&r[n],e),os=(e,t,r)=>is(t).reduceRight((n,i,o,s)=>Object.assign({},Bn(e,s.slice(0,o)),{[i]:n}),r);function uc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function cc(e,t,r){return t===void 0?e??{}:os(t,r,e||!0)}function Un(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Fe(e._errorFormat),g=uc(n,i),h=cc(l,o,g),v=r({dataPath:g,callsite:u})(h),S=pc(e,t);return new Proxy(v,{get(A,R){if(!S.includes(R))return A[R];let F=[a[R].type,r,R],q=[g,h];return Un(e,...F,...q)},...$r([...S,...Object.getOwnPropertyNames(v)])})}}function pc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}f();c();p();d();m();function ss(e,t,r,n){return e===Ue.ModelAction.findFirstOrThrow||e===Ue.ModelAction.findUniqueOrThrow?dc(t,r,n):n}function dc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=st({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new K(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof W&&o.code==="P2025"?new ve(`No ${e} found`,t):o})}}var mc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],fc=["aggregate","count","groupBy"];function $n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[gc(e,t),yc(e,t),Jt(r),te("name",()=>t),te("$name",()=>t),te("$parent",()=>e._appliedParent)];return be({},n)}function gc(e,t){let r=ye(t),n=Object.keys(Ue.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=ss(o,t,e._clientVersion,s);let a=l=>u=>{let g=Fe(e._errorFormat);return e._createPrismaPromise(h=>{let v={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...v,...l})})};return mc.includes(o)?Un(e,t,a):hc(i)?rs(e,i,a):a({})}}}function hc(e){return fc.includes(e)}function yc(e,t){return Ve(te("fields",()=>{let r=e._runtimeDataModel.models[t];return ns(t,r)}))}f();c();p();d();m();function as(e){return e.replace(/^./,t=>t.toUpperCase())}var Vn=Symbol();function Qt(e){let t=[wc(e),te(Vn,()=>e),te("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(Jt(r)),be(e,t)}function wc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(ye),n=[...new Set(t.concat(r))];return Ve({getKeys(){return n},getPropertyValue(i){let o=as(i);if(e._runtimeDataModel.models[o]!==void 0)return $n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return $n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ls(e){return e[Vn]?e[Vn]:e}function us(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Qt(t)}f();c();p();d();m();f();c();p();d();m();function cs({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(gt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(gt(u))}Ec(e,l.needs)&&s.push(bc(l,be(e,s)))}return s.length>0||a.length>0?be(e,[...s,...a]):e}function Ec(e,t){return t.every(r=>gn(e,r))}function bc(e,t){return Ve(te(e.name,()=>e.compute(t)))}f();c();p();d();m();function Jr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=Jr({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function ds({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Jr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=ye(l);return cs({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}f();c();p();d();m();f();c();p();d();m();function ms(e){if(e instanceof oe)return xc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ms(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=Es(o,l),a.args=s,gs(e,a,r,n+1)}})})}function hs(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return gs(e,t,s)}function ys(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ws(r,n,0,e):e(r)}}function ws(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=Es(i,l),ws(a,t,r+1,n)}})}var fs=e=>e;function Es(e=fs,t=fs){return r=>e(t(r))}f();c();p();d();m();var bs=ee("prisma:client"),xs={Vercel:"vercel","Netlify CI":"netlify"};function Ps({postinstall:e,ciName:t,clientVersion:r}){if(bs("checkPlatformCaching:postinstall",e),bs("checkPlatformCaching:ciName",t),e===!0&&t&&t in xs){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${xs[t]}-build`;throw console.error(n),new G(n,r)}}f();c();p();d();m();function vs(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Pc="Cloudflare-Workers",vc="node";function Ts(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Pc?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===vc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Tc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Gr(){let e=Ts();return{id:e,prettyName:Tc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function yt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Gr().id==="workerd"?new G(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new G(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new G("error: Missing URL environment variable, value, or override.",n);return i}f();c();p();d();m();f();c();p();d();m();var Qr=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Qr{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};f();c();p();d();m();f();c();p();d();m();function L(e,t){return{...e,isRetryable:t}}var wt=class extends se{constructor(r){super("This request must be retried",L(r,!0));this.name="ForcedRetryError";this.code="P5001"}};N(wt,"ForcedRetryError");f();c();p();d();m();var je=class extends se{constructor(r,n){super(r,L(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};N(je,"InvalidDatasourceError");f();c();p();d();m();var Je=class extends se{constructor(r,n){super(r,L(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};N(Je,"NotImplementedYetError");f();c();p();d();m();f();c();p();d();m();var j=class extends se{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var Ge=class extends j{constructor(r){super("Schema needs to be uploaded",L(r,!0));this.name="SchemaMissingError";this.code="P5005"}};N(Ge,"SchemaMissingError");f();c();p();d();m();f();c();p();d();m();var jn="This request could not be understood by the server",Wt=class extends j{constructor(r,n,i){super(n||jn,L(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};N(Wt,"BadRequestError");f();c();p();d();m();var Kt=class extends j{constructor(r,n){super("Engine not started: healthcheck timeout",L(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};N(Kt,"HealthcheckTimeoutError");f();c();p();d();m();var zt=class extends j{constructor(r,n,i){super(n,L(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};N(zt,"EngineStartupError");f();c();p();d();m();var Yt=class extends j{constructor(r){super("Engine version is not supported",L(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};N(Yt,"EngineVersionNotSupportedError");f();c();p();d();m();var Jn="Request timed out",Zt=class extends j{constructor(r,n=Jn){super(n,L(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};N(Zt,"GatewayTimeoutError");f();c();p();d();m();var Cc="Interactive transaction error",Xt=class extends j{constructor(r,n=Cc){super(n,L(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};N(Xt,"InteractiveTransactionError");f();c();p();d();m();var Ac="Request parameters are invalid",er=class extends j{constructor(r,n=Ac){super(n,L(r,!1));this.name="InvalidRequestError";this.code="P5011"}};N(er,"InvalidRequestError");f();c();p();d();m();var Gn="Requested resource does not exist",tr=class extends j{constructor(r,n=Gn){super(n,L(r,!1));this.name="NotFoundError";this.code="P5003"}};N(tr,"NotFoundError");f();c();p();d();m();var Qn="Unknown server error",Et=class extends j{constructor(r,n,i){super(n||Qn,L(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};N(Et,"ServerError");f();c();p();d();m();var Hn="Unauthorized, check your connection string",rr=class extends j{constructor(r,n=Hn){super(n,L(r,!1));this.name="UnauthorizedError";this.code="P5007"}};N(rr,"UnauthorizedError");f();c();p();d();m();var Wn="Usage exceeded, retry again later",nr=class extends j{constructor(r,n=Wn){super(n,L(r,!0));this.name="UsageExceededError";this.code="P5008"}};N(nr,"UsageExceededError");async function Rc(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function ir(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Rc(e);if(n.type==="QueryEngineError")throw new W(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Et(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new Ge(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new Yt(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new zt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new G(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Kt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Xt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new er(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new rr(r,bt(Hn,n));if(e.status===404)return new tr(r,bt(Gn,n));if(e.status===429)throw new nr(r,bt(Wn,n));if(e.status===504)throw new Zt(r,bt(Jn,n));if(e.status>=500)throw new Et(r,bt(Qn,n));if(e.status>=400)throw new Wt(r,bt(jn,n))}function bt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}f();c();p();d();m();function Cs(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}f();c();p();d();m();var Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function As(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,u=g&63,r+=Re[s]+Re[a]+Re[l]+Re[u];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Re[s]+Re[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Re[s]+Re[a]+Re[l]+"="),r}f();c();p();d();m();function Rs(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new G("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}f();c();p();d();m();function Sc(e){return e[0]*1e3+e[1]/1e6}function Ss(e){return new Date(Sc(e))}f();c();p();d();m();var Is={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};f();c();p();d();m();f();c();p();d();m();var or=class extends se{constructor(r,n){super(`Cannot fetch data from service: -${r}`,L(n,!0));this.name="RequestError";this.code="P5010"}};N(or,"RequestError");async function Qe(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(Kn)(e,t)}catch(i){let o=i.message??"Unknown error";throw new or(o,{clientVersion:n})}}function Oc(e){return{...e.headers,"Content-Type":"application/json"}}function kc(e){return{method:e.method,headers:Oc(e)}}function Dc(e,t){return{text:()=>Promise.resolve(w.Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(w.Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new zn(t.headers)}}async function Kn(e,t={}){let r=Mc("https"),n=kc(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:g,headers:{location:h}}=u;g>=301&&g<=399&&h&&(h.startsWith("http")===!1?s(Kn(`${o}${h}`,t)):s(Kn(h,t))),u.on("data",v=>i.push(v)),u.on("end",()=>s(Dc(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var Mc=typeof require<"u"?require:()=>{},zn=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var Nc=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Os=ee("prisma:client:dataproxyEngine");async function Fc(e,t){let r=Is["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&Nc.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),g=_c(`<=${a}.${l}.${u}`),h=await Qe(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();Os("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(A){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),A}return S.version}throw new Je("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function ks(e,t){let r=await Fc(e,t);return Os("version",r),r}function _c(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Ds=3,Yn=ee("prisma:client:dataproxyEngine"),Zn=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},sr=class{constructor(t){this.name="DataProxyEngine";Rs(t),this.config=t,this.env={...t.env,...typeof y<"u"?y.env:{}},this.inlineSchema=As(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new Zn({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await ks(t,this.config),Yn("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:Ss(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Qe(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Yn("schema response status",r.status);let n=await ir(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Vr(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?Gt(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Yn("graphql response status",a.status),await this.handleError(await ir(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?Gt(l.errors[0],this.config.clientVersion,this.config.activeProvider):new ne(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Qe(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await ir(l,this.clientVersion));let u=await l.json(),g=u.extensions;g&&this.propagateResponseExtensions(g);let h=u.id,v=u["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await ir(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=yt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new je(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new Je("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=Ds)throw i instanceof wt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Ds} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Cs(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof Ge)throw await this.uploadSchema(),new wt({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ms({copyEngine:e=!0},t){let r;try{r=yt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Ot("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Rt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s){let u;throw u=["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."],new K(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new sr(t);throw new K("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}f();c();p();d();m();function Hr({generator:e}){return e?.previewFeatures??[]}f();c();p();d();m();var Ns=e=>({command:e});f();c();p();d();m();f();c();p();d();m();var Fs=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);f();c();p();d();m();function xt(e){try{return _s(e,"fast")}catch{return _s(e,"slow")}}function _s(e,t){return JSON.stringify(e.map(r=>qs(r,t)))}function qs(e,t){return Array.isArray(e)?e.map(r=>qs(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:it(e)?{prisma__type:"date",prisma__value:e.toJSON()}:fe.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Lc(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Bs(e):e}function Lc(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Bs(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Ls);let t={};for(let r of Object.keys(e))t[r]=Ls(e[r]);return t}function Ls(e){return typeof e=="bigint"?e.toString():Bs(e)}f();c();p();d();m();var qc=["$connect","$disconnect","$on","$transaction","$use","$extends"],Us=qc;var Bc=/^(\s*alter\s)/i,$s=ee("prisma:client");function Xn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Bc.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var ei=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Jo(r))n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:xt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Fs(r),i={values:xt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?$s(`prisma.${e}(${n}, ${i.values})`):$s(`prisma.${e}(${n})`),{query:n,parameters:i}},Vs={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},js={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};f();c();p();d();m();function ti(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Js(r(o)):Js(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Js(e){return typeof e.then=="function"?e:Promise.resolve(e)}f();c();p();d();m();var Gs={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},ri=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Gs}};function Qs(e){return e.includes("tracing")?new ri:Gs}f();c();p();d();m();function Hs(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}f();c();p();d();m();function Ws(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}f();c();p();d();m();var Wr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};f();c();p();d();m();var Ys=qe(Xi());f();c();p();d();m();function Kr(e){return typeof e.batchRequestIdx=="number"}f();c();p();d();m();function Ks(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(ni(e.query.arguments)),t.push(ni(e.query.selection)),t.join("")}function ni(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${ni(n)})`:r}).join(" ")})`}f();c();p();d();m();var Uc={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function ii(e){return Uc[e]}f();c();p();d();m();var zr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iHe("bigint",r));case"bytes-array":return t.map(r=>He("bytes",r));case"decimal-array":return t.map(r=>He("decimal",r));case"datetime-array":return t.map(r=>He("datetime",r));case"date-array":return t.map(r=>He("date",r));case"time-array":return t.map(r=>He("time",r));default:return t}}function zs(e){let t=[],r=$c(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>ii(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:jc(o),containsWrite:u,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Zs(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ii(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Ks(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Vc(t),Jc(t,i)||t instanceof ve)throw t;if(t instanceof W&&Gc(t)){let u=Xs(t.meta);Fr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=st({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new W(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Te(l,this.client._clientVersion);if(t instanceof ne)throw new ne(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof G)throw new G(l,this.client._clientVersion);if(t instanceof Te)throw new Te(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Ys.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Bn(o,s),l=i==="queryRaw"?zs(a):rt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function jc(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Zs(e)};Pe(e,"Unknown transaction kind")}}function Zs(e){return{id:e.id,payload:e.payload}}function Jc(e,t){return Kr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Gc(e){return e.code==="P2009"||e.code==="P2012"}function Xs(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Xs)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}f();c();p();d();m();var ea="5.22.0";var ta=ea;f();c();p();d();m();var sa=qe(Tn());f();c();p();d();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var ra=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],na=["pretty","colorless","minimal"],ia=["info","query","warn","error"],Hc={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=Pt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Hr(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Rt()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!na.includes(e)){let t=Pt(e,na);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!ia.includes(r)){let n=Pt(r,ia);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Pt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Kc(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(zc(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=Pt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function aa(e,t){for(let[r,n]of Object.entries(e)){if(!ra.includes(r)){let i=Pt(r,ra);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Hc[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Pt(e,t){if(t.length===0||typeof e!="string")return"";let r=Wc(e,t);return r?` Did you mean "${r}"?`:""}function Wc(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,sa.default)(e,i)}));r.sort((i,o)=>i.distancent(n)===t);if(r)return e[r]}function zc(e,t){let r=dt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Nr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}f();c();p();d();m();function la(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!Kr(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var _e=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Yc={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Zc=Symbol.for("prisma.client.transaction.id"),Xc={id:0,nextId(){return++this.id}};function pa(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Wr;this._createPrismaPromise=ti();this.$extends=us;e=n?.__internal?.configOverride?.(e)??e,Ps(e),n&&aa(n,e);let i=new yr().on("error",()=>{});this._extensions=mt.empty(),this._previewFeatures=Hr(e),this._clientVersion=e.clientVersion??ta,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Qs(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&At.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&At.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Fn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new G(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new G("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&ee.enable("prisma:client");let h=At.resolve(e.dirname,e.relativePath);Si.existsSync(h)||(h=e.dirname),_e("dirname",e.dirname),_e("relativePath",e.relativePath),_e("cwd",h);let v=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,datamodelPath:At.join(e.dirname,e.filename??"schema.prisma"),prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&Ws(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:vs(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:yt,getBatchRequestPayload:Vr,prismaGraphQLToJSError:Gt,PrismaClientUnknownRequestError:ne,PrismaClientInitializationError:G,PrismaClientKnownRequestError:W,debug:ee("prisma:client:accelerateEngine"),engineVersion:ca.version,clientVersion:e.clientVersion}},_e("clientVersion",e.clientVersion),this._engine=Ms(e,this._engineConfig),this._requestHandler=new Yr(this,i),l.log)for(let S of l.log){let A=typeof S=="string"?S:S.emit==="stdout"?S.level:null;A&&this.$on(A,R=>{It.log(`${It.tags[A]??""}`,R.message||R.query)})}this._metrics=new ft(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Qt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Vi()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:ei({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ua(n,i);return Xn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new K("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Xn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new K(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Ns,callsite:Fe(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:ei({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ua(n,i));throw new K("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new K("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=Xc.nextId(),s=Hs(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return la(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Qt(be(ls(this),[te("_appliedParent",()=>this._appliedParent._createItxClient(n)),te("_createPrismaPromise",()=>ti(n)),te(Zc,()=>n.id),gt(Us)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??Yc,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,M=>g(u,F=>(M?.end(),l(F))));let{runInTransaction:h,args:v,...S}=u,A={...n,...S};v&&(A.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete A.transaction;let R=await hs(this,A);return A.model?ds({result:R,modelName:A.model,args:A.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=u?u(n):n;let A={name:"serialize"},R=this._tracingHelper.runInChildSpan(A,()=>qr({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(_e("Prisma Client call:"),_e(`prisma.${i}(${Yo(n)})`),_e("Generated request:"),_e(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(A){throw A.clientVersion=this._clientVersion,A}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new K("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ua(e,t){return ep(e)?[new oe(e,t),Vs]:[e,js]}function ep(e){return Array.isArray(e)&&Array.isArray(e.raw)}f();c();p();d();m();var tp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function da(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!tp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}f();c();p();d();m();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=edge.js.map diff --git a/keep-notes/prisma/client-generated/runtime/index-browser.d.ts b/keep-notes/prisma/client-generated/runtime/index-browser.d.ts deleted file mode 100644 index f033b86..0000000 --- a/keep-notes/prisma/client-generated/runtime/index-browser.d.ts +++ /dev/null @@ -1,365 +0,0 @@ -declare class AnyNull extends NullTypesEnumValue { -} - -declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -declare class DbNull extends NullTypesEnumValue { -} - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: Runtime; - prettyName: string; - isEdge: boolean; -}; - -declare class JsonNull extends NullTypesEnumValue { -} - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -declare type Narrowable = string | number | bigint | boolean | []; - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * Base class for unique values of object-valued enums. - */ -declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown"; - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -export { } diff --git a/keep-notes/prisma/client-generated/runtime/index-browser.js b/keep-notes/prisma/client-generated/runtime/index-browser.js deleted file mode 100644 index 8f0457d..0000000 --- a/keep-notes/prisma/client-generated/runtime/index-browser.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict";var de=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.prototype.hasOwnProperty;var Me=(e,n)=>{for(var i in n)de(e,i,{get:n[i],enumerable:!0})},Xe=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ge(n))!Je.call(e,r)&&r!==i&&de(e,r,{get:()=>n[r],enumerable:!(t=We(n,r))||t.enumerable});return e};var Ke=e=>Xe(de({},"__esModule",{value:!0}),e);var Xn={};Me(Xn,{Decimal:()=>je,Public:()=>he,getRuntime:()=>be,makeStrictEnum:()=>Pe,objectEnumValues:()=>Oe});module.exports=Ke(Xn);var he={};Me(he,{validator:()=>Ce});function Ce(...e){return n=>n}var ne=Symbol(),pe=new WeakMap,ge=class{constructor(n){n===ne?pe.set(this,"Prisma.".concat(this._getName())):pe.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return pe.get(this)}},G=class extends ge{_getNamespace(){return"NullTypes"}},J=class extends G{};me(J,"DbNull");var X=class extends G{};me(X,"JsonNull");var K=class extends G{};me(K,"AnyNull");var Oe={classes:{DbNull:J,JsonNull:X,AnyNull:K},instances:{DbNull:new J(ne),JsonNull:new X(ne),AnyNull:new K(ne)}};function me(e,n){Object.defineProperty(e,"name",{value:n,configurable:!0})}var xe=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Pe(e){return new Proxy(e,{get(n,i){if(i in n)return n[i];if(!xe.has(i))throw new TypeError("Invalid enum value: ".concat(String(i)))}})}var Qe="Cloudflare-Workers",Ye="node";function Re(){var e,n,i;return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":((e=globalThis.navigator)==null?void 0:e.userAgent)===Qe?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":((i=(n=globalThis.process)==null?void 0:n.release)==null?void 0:i.name)===Ye?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var ze={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function be(){let e=Re();return{id:e,prettyName:ze[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var H=9e15,$=1e9,we="0123456789abcdef",te="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",re="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ne={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-H,maxE:H,crypto:!1},Te,Z,w=!0,oe="[DecimalError] ",V=oe+"Invalid argument: ",Le=oe+"Precision limit exceeded",De=oe+"crypto unavailable",Fe="[object Decimal]",b=Math.floor,C=Math.pow,ye=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,en=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,nn=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ie=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=1e7,m=7,tn=9007199254740991,rn=te.length-1,ve=re.length-1,h={toStringTag:Fe};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)};h.ceil=function(){return p(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,n){var i,t=this,r=t.constructor;if(e=new r(e),n=new r(n),!e.s||!n.s)return new r(NaN);if(e.gt(n))throw Error(V+n);return i=t.cmp(e),i<0?e:t.cmp(n)>0?n:new r(t)};h.comparedTo=h.cmp=function(e){var n,i,t,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,l=s.s,f=e.s;if(!o||!u)return!l||!f?NaN:l!==f?l:o===u?0:!o^l<0?1:-1;if(!o[0]||!u[0])return o[0]?l:u[0]?-f:0;if(l!==f)return l;if(s.e!==e.e)return s.e>e.e^l<0?1:-1;for(t=o.length,r=u.length,n=0,i=tu[n]^l<0?1:-1;return t===r?0:t>r^l<0?1:-1};h.cosine=h.cos=function(){var e,n,i=this,t=i.constructor;return i.d?i.d[0]?(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=sn(t,$e(t,i)),t.precision=e,t.rounding=n,p(Z==2||Z==3?i.neg():i,e,n,!0)):new t(1):new t(NaN)};h.cubeRoot=h.cbrt=function(){var e,n,i,t,r,s,o,u,l,f,c=this,a=c.constructor;if(!c.isFinite()||c.isZero())return new a(c);for(w=!1,s=c.s*C(c.s*c,1/3),!s||Math.abs(s)==1/0?(i=O(c.d),e=c.e,(s=(e-i.length+1)%3)&&(i+=s==1||s==-2?"0":"00"),s=C(i,1/3),e=b((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?i="5e"+e:(i=s.toExponential(),i=i.slice(0,i.indexOf("e")+1)+e),t=new a(i),t.s=c.s):t=new a(s.toString()),o=(e=a.precision)+3;;)if(u=t,l=u.times(u).times(u),f=l.plus(c),t=S(f.plus(c).times(u),f.plus(l),o+2,1),O(u.d).slice(0,o)===(i=O(t.d)).slice(0,o))if(i=i.slice(o-3,o+1),i=="9999"||!r&&i=="4999"){if(!r&&(p(u,e+1,0),u.times(u).times(u).eq(c))){t=u;break}o+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(t,e+1,1),n=!t.times(t).times(t).eq(c));break}return w=!0,p(t,e,a.rounding,n)};h.decimalPlaces=h.dp=function(){var e,n=this.d,i=NaN;if(n){if(e=n.length-1,i=(e-b(this.e/m))*m,e=n[e],e)for(;e%10==0;e/=10)i--;i<0&&(i=0)}return i};h.dividedBy=h.div=function(e){return S(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var n=this,i=n.constructor;return p(S(n,new i(e),0,1,1),i.precision,i.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return p(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var n=this.cmp(e);return n==1||n===0};h.hyperbolicCosine=h.cosh=function(){var e,n,i,t,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;i=o.precision,t=o.rounding,o.precision=i+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),n=(1/fe(4,e)).toString()):(e=16,n="2.3283064365386962890625e-10"),s=j(o,1,s.times(n),new o(1),!0);for(var l,f=e,c=new o(8);f--;)l=s.times(s),s=u.minus(l.times(c.minus(l.times(c))));return p(s,o.precision=i,o.rounding=t,!0)};h.hyperbolicSine=h.sinh=function(){var e,n,i,t,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(n=s.precision,i=s.rounding,s.precision=n+Math.max(r.e,r.sd())+4,s.rounding=1,t=r.d.length,t<3)r=j(s,2,r,r,!0);else{e=1.4*Math.sqrt(t),e=e>16?16:e|0,r=r.times(1/fe(5,e)),r=j(s,2,r,r,!0);for(var o,u=new s(5),l=new s(16),f=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(l.times(o).plus(f))))}return s.precision=n,s.rounding=i,p(r,n,i,!0)};h.hyperbolicTangent=h.tanh=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+7,t.rounding=1,S(i.sinh(),i.cosh(),t.precision=e,t.rounding=n)):new t(i.s)};h.inverseCosine=h.acos=function(){var e,n=this,i=n.constructor,t=n.abs().cmp(1),r=i.precision,s=i.rounding;return t!==-1?t===0?n.isNeg()?L(i,r,s):new i(0):new i(NaN):n.isZero()?L(i,r+4,s).times(.5):(i.precision=r+6,i.rounding=1,n=n.asin(),e=L(i,r+4,s).times(.5),i.precision=r,i.rounding=s,e.minus(n))};h.inverseHyperbolicCosine=h.acosh=function(){var e,n,i=this,t=i.constructor;return i.lte(1)?new t(i.eq(1)?0:NaN):i.isFinite()?(e=t.precision,n=t.rounding,t.precision=e+Math.max(Math.abs(i.e),i.sd())+4,t.rounding=1,w=!1,i=i.times(i).minus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln()):new t(i)};h.inverseHyperbolicSine=h.asinh=function(){var e,n,i=this,t=i.constructor;return!i.isFinite()||i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+2*Math.max(Math.abs(i.e),i.sd())+6,t.rounding=1,w=!1,i=i.times(i).plus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,n,i,t,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,n=s.rounding,t=r.sd(),Math.max(t,e)<2*-r.e-1?p(new s(r),e,n,!0):(s.precision=i=t-r.e,r=S(r.plus(1),new s(1).minus(r),i+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=n,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,n,i,t,r=this,s=r.constructor;return r.isZero()?new s(r):(n=r.abs().cmp(1),i=s.precision,t=s.rounding,n!==-1?n===0?(e=L(s,i+4,t).times(.5),e.s=r.s,e):new s(NaN):(s.precision=i+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=i,s.rounding=t,r.times(2)))};h.inverseTangent=h.atan=function(){var e,n,i,t,r,s,o,u,l,f=this,c=f.constructor,a=c.precision,d=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&a+4<=ve)return o=L(c,a+4,d).times(.25),o.s=f.s,o}else{if(!f.s)return new c(NaN);if(a+4<=ve)return o=L(c,a+4,d).times(.5),o.s=f.s,o}for(c.precision=u=a+10,c.rounding=1,i=Math.min(28,u/m+2|0),e=i;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(w=!1,n=Math.ceil(u/m),t=1,l=f.times(f),o=new c(f),r=f;e!==-1;)if(r=r.times(l),s=o.minus(r.div(t+=2)),r=r.times(l),o=s.plus(r.div(t+=2)),o.d[n]!==void 0)for(e=n;o.d[e]===s.d[e]&&e--;);return i&&(o=o.times(2<this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var n,i,t,r,s,o,u,l,f=this,c=f.constructor,a=c.precision,d=c.rounding,g=5;if(e==null)e=new c(10),n=!0;else{if(e=new c(e),i=e.d,e.s<0||!i||!i[0]||e.eq(1))return new c(NaN);n=e.eq(10)}if(i=f.d,f.s<0||!i||!i[0]||f.eq(1))return new c(i&&!i[0]?-1/0:f.s!=1?NaN:i?0:1/0);if(n)if(i.length>1)s=!0;else{for(r=i[0];r%10===0;)r/=10;s=r!==1}if(w=!1,u=a+g,o=B(f,u),t=n?se(c,u+10):B(e,u),l=S(o,t,u,1),x(l.d,r=a,d))do if(u+=10,o=B(f,u),t=n?se(c,u+10):B(e,u),l=S(o,t,u,1),!s){+O(l.d).slice(r+1,r+15)+1==1e14&&(l=p(l,a+1,0));break}while(x(l.d,r+=10,d));return w=!0,p(l,a,d)};h.minus=h.sub=function(e){var n,i,t,r,s,o,u,l,f,c,a,d,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,d=e.d,u=v.precision,l=v.rounding,!f[0]||!d[0]){if(d[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(l===3?-0:0);return w?p(e,u,l):e}if(i=b(e.e/m),c=b(g.e/m),f=f.slice(),s=c-i,s){for(a=s<0,a?(n=f,s=-s,o=d.length):(n=d,i=c,o=f.length),t=Math.max(Math.ceil(u/m),o)+2,s>t&&(s=t,n.length=1),n.reverse(),t=s;t--;)n.push(0);n.reverse()}else{for(t=f.length,o=d.length,a=t0;--t)f[o++]=0;for(t=d.length;t>s;){if(f[--t]o?s+1:o+1,r>o&&(r=o,i.length=1),i.reverse();r--;)i.push(0);i.reverse()}for(o=f.length,r=c.length,o-r<0&&(r=o,i=c,c=f,f=i),n=0;r;)n=(f[--r]=f[r]+c[r]+n)/D|0,f[r]%=D;for(n&&(f.unshift(n),++t),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=ue(f,t),w?p(e,u,l):e};h.precision=h.sd=function(e){var n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(V+e);return i.d?(n=Ze(i.d),e&&i.e+1>n&&(n=i.e+1)):n=NaN,n};h.round=function(){var e=this,n=e.constructor;return p(new n(e),e.e+1,n.rounding)};h.sine=h.sin=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=un(t,$e(t,i)),t.precision=e,t.rounding=n,p(Z>2?i.neg():i,e,n,!0)):new t(NaN)};h.squareRoot=h.sqrt=function(){var e,n,i,t,r,s,o=this,u=o.d,l=o.e,f=o.s,c=o.constructor;if(f!==1||!u||!u[0])return new c(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(w=!1,f=Math.sqrt(+o),f==0||f==1/0?(n=O(u),(n.length+l)%2==0&&(n+="0"),f=Math.sqrt(n),l=b((l+1)/2)-(l<0||l%2),f==1/0?n="5e"+l:(n=f.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),t=new c(n)):t=new c(f.toString()),i=(l=c.precision)+3;;)if(s=t,t=s.plus(S(o,s,i+2,1)).times(.5),O(s.d).slice(0,i)===(n=O(t.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!r&&n=="4999"){if(!r&&(p(s,l+1,0),s.times(s).eq(o))){t=s;break}i+=4,r=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(t,l+1,1),e=!t.times(t).eq(o));break}return w=!0,p(t,l,c.rounding,e)};h.tangent=h.tan=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+10,t.rounding=1,i=i.sin(),i.s=1,i=S(i,new t(1).minus(i.times(i)).sqrt(),e+10,0),t.precision=e,t.rounding=n,p(Z==2||Z==4?i.neg():i,e,n,!0)):new t(NaN)};h.times=h.mul=function(e){var n,i,t,r,s,o,u,l,f,c=this,a=c.constructor,d=c.d,g=(e=new a(e)).d;if(e.s*=c.s,!d||!d[0]||!g||!g[0])return new a(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(i=b(c.e/m)+b(e.e/m),l=d.length,f=g.length,l=0;){for(n=0,r=l+t;r>t;)u=s[r]+g[t]*d[r-t-1]+n,s[r--]=u%D|0,n=u/D|0;s[r]=(s[r]+n)%D|0}for(;!s[--o];)s.pop();return n?++i:s.shift(),e.d=s,e.e=ue(s,i),w?p(e,a.precision,a.rounding):e};h.toBinary=function(e,n){return ke(this,2,e,n)};h.toDecimalPlaces=h.toDP=function(e,n){var i=this,t=i.constructor;return i=new t(i),e===void 0?i:(_(e,0,$),n===void 0?n=t.rounding:_(n,0,8),p(i,e+i.e+1,n))};h.toExponential=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=F(t,!0):(_(e,0,$),n===void 0?n=r.rounding:_(n,0,8),t=p(new r(t),e+1,n),i=F(t,!0,e+1)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toFixed=function(e,n){var i,t,r=this,s=r.constructor;return e===void 0?i=F(r):(_(e,0,$),n===void 0?n=s.rounding:_(n,0,8),t=p(new s(r),e+r.e+1,n),i=F(t,!1,e+t.e+1)),r.isNeg()&&!r.isZero()?"-"+i:i};h.toFraction=function(e){var n,i,t,r,s,o,u,l,f,c,a,d,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=i=new N(1),t=l=new N(0),n=new N(t),s=n.e=Ze(v)-g.e-1,o=s%m,n.d[0]=C(10,o<0?m+o:o),e==null)e=s>0?n:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error(V+u);e=u.gt(n)?s>0?n:f:u}for(w=!1,u=new N(O(v)),c=N.precision,N.precision=s=v.length*m*2;a=S(u,n,0,1,1),r=i.plus(a.times(t)),r.cmp(e)!=1;)i=t,t=r,r=f,f=l.plus(a.times(r)),l=r,r=n,n=u.minus(a.times(r)),u=r;return r=S(e.minus(i),t,0,1,1),l=l.plus(r.times(f)),i=i.plus(r.times(t)),l.s=f.s=g.s,d=S(f,t,s,1).minus(g).abs().cmp(S(l,i,s,1).minus(g).abs())<1?[f,t]:[l,i],N.precision=c,w=!0,d};h.toHexadecimal=h.toHex=function(e,n){return ke(this,16,e,n)};h.toNearest=function(e,n){var i=this,t=i.constructor;if(i=new t(i),e==null){if(!i.d)return i;e=new t(1),n=t.rounding}else{if(e=new t(e),n===void 0?n=t.rounding:_(n,0,8),!i.d)return e.s?i:e;if(!e.d)return e.s&&(e.s=i.s),e}return e.d[0]?(w=!1,i=S(i,e,0,n,1).times(e),w=!0,p(i)):(e.s=i.s,i=e),i};h.toNumber=function(){return+this};h.toOctal=function(e,n){return ke(this,8,e,n)};h.toPower=h.pow=function(e){var n,i,t,r,s,o,u=this,l=u.constructor,f=+(e=new l(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new l(C(+u,f));if(u=new l(u),u.eq(1))return u;if(t=l.precision,s=l.rounding,e.eq(1))return p(u,t,s);if(n=b(e.e/m),n>=e.d.length-1&&(i=f<0?-f:f)<=tn)return r=Ue(l,u,i,t),e.s<0?new l(1).div(r):p(r,t,s);if(o=u.s,o<0){if(nl.maxE+1||n0?o/0:0):(w=!1,l.rounding=u.s=1,i=Math.min(12,(n+"").length),r=Ee(e.times(B(u,t+i)),t),r.d&&(r=p(r,t+5,1),x(r.d,t,s)&&(n=t+10,r=p(Ee(e.times(B(u,n+i)),n),n+5,1),+O(r.d).slice(t+1,t+15)+1==1e14&&(r=p(r,t+1,0)))),r.s=o,w=!0,l.rounding=s,p(r,t,s))};h.toPrecision=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=F(t,t.e<=r.toExpNeg||t.e>=r.toExpPos):(_(e,1,$),n===void 0?n=r.rounding:_(n,0,8),t=p(new r(t),e,n),i=F(t,e<=t.e||t.e<=r.toExpNeg,e)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toSignificantDigits=h.toSD=function(e,n){var i=this,t=i.constructor;return e===void 0?(e=t.precision,n=t.rounding):(_(e,1,$),n===void 0?n=t.rounding:_(n,0,8)),p(new t(i),e,n)};h.toString=function(){var e=this,n=e.constructor,i=F(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()&&!e.isZero()?"-"+i:i};h.truncated=h.trunc=function(){return p(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,n=e.constructor,i=F(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()?"-"+i:i};function O(e){var n,i,t,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,n=1;ni)throw Error(V+e)}function x(e,n,i,t){var r,s,o,u;for(s=e[0];s>=10;s/=10)--n;return--n<0?(n+=m,r=0):(r=Math.ceil((n+1)/m),n%=m),s=C(10,m-n),u=e[r]%s|0,t==null?n<3?(n==0?u=u/100|0:n==1&&(u=u/10|0),o=i<4&&u==99999||i>3&&u==49999||u==5e4||u==0):o=(i<4&&u+1==s||i>3&&u+1==s/2)&&(e[r+1]/s/100|0)==C(10,n-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:n<4?(n==0?u=u/1e3|0:n==1?u=u/100|0:n==2&&(u=u/10|0),o=(t||i<4)&&u==9999||!t&&i>3&&u==4999):o=((t||i<4)&&u+1==s||!t&&i>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==C(10,n-3)-1,o}function ie(e,n,i){for(var t,r=[0],s,o=0,u=e.length;oi-1&&(r[t+1]===void 0&&(r[t+1]=0),r[t+1]+=r[t]/i|0,r[t]%=i)}return r.reverse()}function sn(e,n){var i,t,r;if(n.isZero())return n;t=n.d.length,t<32?(i=Math.ceil(t/3),r=(1/fe(4,i)).toString()):(i=16,r="2.3283064365386962890625e-10"),e.precision+=i,n=j(e,1,n.times(r),new e(1));for(var s=i;s--;){var o=n.times(n);n=o.times(o).minus(o).times(8).plus(1)}return e.precision-=i,n}var S=function(){function e(t,r,s){var o,u=0,l=t.length;for(t=t.slice();l--;)o=t[l]*r+u,t[l]=o%s|0,u=o/s|0;return u&&t.unshift(u),t}function n(t,r,s,o){var u,l;if(s!=o)l=s>o?1:-1;else for(u=l=0;ur[u]?1:-1;break}return l}function i(t,r,s,o){for(var u=0;s--;)t[s]-=u,u=t[s]1;)t.shift()}return function(t,r,s,o,u,l){var f,c,a,d,g,v,N,A,M,q,E,P,Y,I,le,z,W,ce,T,y,ee=t.constructor,ae=t.s==r.s?1:-1,R=t.d,k=r.d;if(!R||!R[0]||!k||!k[0])return new ee(!t.s||!r.s||(R?k&&R[0]==k[0]:!k)?NaN:R&&R[0]==0||!k?ae*0:ae/0);for(l?(g=1,c=t.e-r.e):(l=D,g=m,c=b(t.e/g)-b(r.e/g)),T=k.length,W=R.length,M=new ee(ae),q=M.d=[],a=0;k[a]==(R[a]||0);a++);if(k[a]>(R[a]||0)&&c--,s==null?(I=s=ee.precision,o=ee.rounding):u?I=s+(t.e-r.e)+1:I=s,I<0)q.push(1),v=!0;else{if(I=I/g+2|0,a=0,T==1){for(d=0,k=k[0],I++;(a1&&(k=e(k,d,l),R=e(R,d,l),T=k.length,W=R.length),z=T,E=R.slice(0,T),P=E.length;P=l/2&&++ce;do d=0,f=n(k,E,T,P),f<0?(Y=E[0],T!=P&&(Y=Y*l+(E[1]||0)),d=Y/ce|0,d>1?(d>=l&&(d=l-1),N=e(k,d,l),A=N.length,P=E.length,f=n(N,E,A,P),f==1&&(d--,i(N,T=10;d/=10)a++;M.e=a+c*g-1,p(M,u?s+M.e+1:s,o,v)}return M}}();function p(e,n,i,t){var r,s,o,u,l,f,c,a,d,g=e.constructor;e:if(n!=null){if(a=e.d,!a)return e;for(r=1,u=a[0];u>=10;u/=10)r++;if(s=n-r,s<0)s+=m,o=n,c=a[d=0],l=c/C(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/m),u=a.length,d>=u)if(t){for(;u++<=d;)a.push(0);c=l=0,r=1,s%=m,o=s-m+1}else break e;else{for(c=u=a[d],r=1;u>=10;u/=10)r++;s%=m,o=s-m+r,l=o<0?0:c/C(10,r-o-1)%10|0}if(t=t||n<0||a[d+1]!==void 0||(o<0?c:c%C(10,r-o-1)),f=i<4?(l||t)&&(i==0||i==(e.s<0?3:2)):l>5||l==5&&(i==4||t||i==6&&(s>0?o>0?c/C(10,r-o):0:a[d-1])%10&1||i==(e.s<0?8:7)),n<1||!a[0])return a.length=0,f?(n-=e.e+1,a[0]=C(10,(m-n%m)%m),e.e=-n||0):a[0]=e.e=0,e;if(s==0?(a.length=d,u=1,d--):(a.length=d+1,u=C(10,m-s),a[d]=o>0?(c/C(10,r-o)%C(10,o)|0)*u:0),f)for(;;)if(d==0){for(s=1,o=a[0];o>=10;o/=10)s++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,a[0]==D&&(a[0]=1));break}else{if(a[d]+=u,a[d]!=D)break;a[d--]=0,u=1}for(s=a.length;a[--s]===0;)a.pop()}return w&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e0?s=s.charAt(0)+"."+s.slice(1)+U(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+U(-r-1)+s,i&&(t=i-o)>0&&(s+=U(t))):r>=o?(s+=U(r+1-o),i&&(t=i-r-1)>0&&(s=s+"."+U(t))):((t=r+1)0&&(r+1===o&&(s+="."),s+=U(t))),s}function ue(e,n){var i=e[0];for(n*=m;i>=10;i/=10)n++;return n}function se(e,n,i){if(n>rn)throw w=!0,i&&(e.precision=i),Error(Le);return p(new e(te),n,1,!0)}function L(e,n,i){if(n>ve)throw Error(Le);return p(new e(re),n,i,!0)}function Ze(e){var n=e.length-1,i=n*m+1;if(n=e[n],n){for(;n%10==0;n/=10)i--;for(n=e[0];n>=10;n/=10)i++}return i}function U(e){for(var n="";e--;)n+="0";return n}function Ue(e,n,i,t){var r,s=new e(1),o=Math.ceil(t/m+4);for(w=!1;;){if(i%2&&(s=s.times(n),_e(s.d,o)&&(r=!0)),i=b(i/2),i===0){i=s.d.length-1,r&&s.d[i]===0&&++s.d[i];break}n=n.times(n),_e(n.d,o)}return w=!0,s}function Ae(e){return e.d[e.d.length-1]&1}function Be(e,n,i){for(var t,r=new e(n[0]),s=0;++s17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(n==null?(w=!1,l=v):l=n,u=new d(.03125);e.e>-2;)e=e.times(u),a+=5;for(t=Math.log(C(2,a))/Math.LN10*2+5|0,l+=t,i=s=o=new d(1),d.precision=l;;){if(s=p(s.times(e),l,1),i=i.times(++c),u=o.plus(S(s,i,l,1)),O(u.d).slice(0,l)===O(o.d).slice(0,l)){for(r=a;r--;)o=p(o.times(o),l,1);if(n==null)if(f<3&&x(o.d,l-t,g,f))d.precision=l+=10,i=s=u=new d(1),c=0,f++;else return p(o,d.precision=v,g,w=!0);else return d.precision=v,o}o=u}}function B(e,n){var i,t,r,s,o,u,l,f,c,a,d,g=1,v=10,N=e,A=N.d,M=N.constructor,q=M.rounding,E=M.precision;if(N.s<0||!A||!A[0]||!N.e&&A[0]==1&&A.length==1)return new M(A&&!A[0]?-1/0:N.s!=1?NaN:A?0:N);if(n==null?(w=!1,c=E):c=n,M.precision=c+=v,i=O(A),t=i.charAt(0),Math.abs(s=N.e)<15e14){for(;t<7&&t!=1||t==1&&i.charAt(1)>3;)N=N.times(e),i=O(N.d),t=i.charAt(0),g++;s=N.e,t>1?(N=new M("0."+i),s++):N=new M(t+"."+i.slice(1))}else return f=se(M,c+2,E).times(s+""),N=B(new M(t+"."+i.slice(1)),c-v).plus(f),M.precision=E,n==null?p(N,E,q,w=!0):N;for(a=N,l=o=N=S(N.minus(1),N.plus(1),c,1),d=p(N.times(N),c,1),r=3;;){if(o=p(o.times(d),c,1),f=l.plus(S(o,new M(r),c,1)),O(f.d).slice(0,c)===O(l.d).slice(0,c))if(l=l.times(2),s!==0&&(l=l.plus(se(M,c+2,E).times(s+""))),l=S(l,new M(g),c,1),n==null)if(x(l.d,c-v,q,u))M.precision=c+=v,f=o=N=S(a.minus(1),a.plus(1),c,1),d=p(N.times(N),c,1),r=u=1;else return p(l,M.precision=E,q,w=!0);else return M.precision=E,l;l=f,r+=2}}function Ve(e){return String(e.s*e.s/0)}function Se(e,n){var i,t,r;for((i=n.indexOf("."))>-1&&(n=n.replace(".","")),(t=n.search(/e/i))>0?(i<0&&(i=t),i+=+n.slice(t+1),n=n.substring(0,t)):i<0&&(i=n.length),t=0;n.charCodeAt(t)===48;t++);for(r=n.length;n.charCodeAt(r-1)===48;--r);if(n=n.slice(t,r),n){if(r-=t,e.e=i=i-t-1,e.d=[],t=(i+1)%m,i<0&&(t+=m),te.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(n=n.replace(/(\d)_(?=\d)/g,"$1"),Ie.test(n))return Se(e,n)}else if(n==="Infinity"||n==="NaN")return+n||(e.s=NaN),e.e=NaN,e.d=null,e;if(en.test(n))i=16,n=n.toLowerCase();else if(ye.test(n))i=2;else if(nn.test(n))i=8;else throw Error(V+n);for(s=n.search(/p/i),s>0?(l=+n.slice(s+1),n=n.substring(2,s)):n=n.slice(2),s=n.indexOf("."),o=s>=0,t=e.constructor,o&&(n=n.replace(".",""),u=n.length,s=u-s,r=Ue(t,new t(i),s,s*2)),f=ie(n,i,D),c=f.length-1,s=c;f[s]===0;--s)f.pop();return s<0?new t(e.s*0):(e.e=ue(f,c),e.d=f,w=!1,o&&(e=S(e,r,u*4)),l&&(e=e.times(Math.abs(l)<54?C(2,l):Q.pow(2,l))),w=!0,e)}function un(e,n){var i,t=n.d.length;if(t<3)return n.isZero()?n:j(e,2,n,n);i=1.4*Math.sqrt(t),i=i>16?16:i|0,n=n.times(1/fe(5,i)),n=j(e,2,n,n);for(var r,s=new e(5),o=new e(16),u=new e(20);i--;)r=n.times(n),n=n.times(s.plus(r.times(o.times(r).minus(u))));return n}function j(e,n,i,t,r){var s,o,u,l,f=1,c=e.precision,a=Math.ceil(c/m);for(w=!1,l=i.times(i),u=new e(t);;){if(o=S(u.times(l),new e(n++*n++),c,1),u=r?t.plus(o):t.minus(o),t=S(o.times(l),new e(n++*n++),c,1),o=u.plus(t),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=t,t=o,o=s,f++}return w=!0,o.d.length=a+1,o}function fe(e,n){for(var i=e;--n;)i*=e;return i}function $e(e,n){var i,t=n.s<0,r=L(e,e.precision,1),s=r.times(.5);if(n=n.abs(),n.lte(s))return Z=t?4:1,n;if(i=n.divToInt(r),i.isZero())Z=t?3:2;else{if(n=n.minus(i.times(r)),n.lte(s))return Z=Ae(i)?t?2:3:t?4:1,n;Z=Ae(i)?t?1:4:t?3:2}return n.minus(r).abs()}function ke(e,n,i,t){var r,s,o,u,l,f,c,a,d,g=e.constructor,v=i!==void 0;if(v?(_(i,1,$),t===void 0?t=g.rounding:_(t,0,8)):(i=g.precision,t=g.rounding),!e.isFinite())c=Ve(e);else{for(c=F(e),o=c.indexOf("."),v?(r=2,n==16?i=i*4-3:n==8&&(i=i*3-2)):r=n,o>=0&&(c=c.replace(".",""),d=new g(1),d.e=c.length-o,d.d=ie(F(d),10,r),d.e=d.d.length),a=ie(c,10,r),s=l=a.length;a[--l]==0;)a.pop();if(!a[0])c=v?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=a,e.e=s,e=S(e,d,i,t,0,r),a=e.d,s=e.e,f=Te),o=a[i],u=r/2,f=f||a[i+1]!==void 0,f=t<4?(o!==void 0||f)&&(t===0||t===(e.s<0?3:2)):o>u||o===u&&(t===4||f||t===6&&a[i-1]&1||t===(e.s<0?8:7)),a.length=i,f)for(;++a[--i]>r-1;)a[i]=0,i||(++s,a.unshift(1));for(l=a.length;!a[l-1];--l);for(o=0,c="";o1)if(n==16||n==8){for(o=n==16?4:3,--l;l%o;l++)c+="0";for(a=ie(c,r,n),l=a.length;!a[l-1];--l);for(o=1,c="1.";ol)for(s-=l;s--;)c+="0";else sn)return e.length=n,!0}function fn(e){return new this(e).abs()}function ln(e){return new this(e).acos()}function cn(e){return new this(e).acosh()}function an(e,n){return new this(e).plus(n)}function dn(e){return new this(e).asin()}function hn(e){return new this(e).asinh()}function pn(e){return new this(e).atan()}function gn(e){return new this(e).atanh()}function mn(e,n){e=new this(e),n=new this(n);var i,t=this.precision,r=this.rounding,s=t+4;return!e.s||!n.s?i=new this(NaN):!e.d&&!n.d?(i=L(this,s,1).times(n.s>0?.25:.75),i.s=e.s):!n.d||e.isZero()?(i=n.s<0?L(this,t,r):new this(0),i.s=e.s):!e.d||n.isZero()?(i=L(this,s,1).times(.5),i.s=e.s):n.s<0?(this.precision=s,this.rounding=1,i=this.atan(S(e,n,s,1)),n=L(this,s,1),this.precision=t,this.rounding=r,i=e.s<0?i.minus(n):i.plus(n)):i=this.atan(S(e,n,s,1)),i}function wn(e){return new this(e).cbrt()}function Nn(e){return p(e=new this(e),e.e+1,2)}function vn(e,n,i){return new this(e).clamp(n,i)}function En(e){if(!e||typeof e!="object")throw Error(oe+"Object expected");var n,i,t,r=e.defaults===!0,s=["precision",1,$,"rounding",0,8,"toExpNeg",-H,0,"toExpPos",0,H,"maxE",0,H,"minE",-H,0,"modulo",0,9];for(n=0;n=s[n+1]&&t<=s[n+2])this[i]=t;else throw Error(V+i+": "+t);if(i="crypto",r&&(this[i]=Ne[i]),(t=e[i])!==void 0)if(t===!0||t===!1||t===0||t===1)if(t)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(De);else this[i]=!1;else throw Error(V+i+": "+t);return this}function Sn(e){return new this(e).cos()}function kn(e){return new this(e).cosh()}function He(e){var n,i,t;function r(s){var o,u,l,f=this;if(!(f instanceof r))return new r(s);if(f.constructor=r,qe(s)){f.s=s.s,w?!s.d||s.e>r.maxE?(f.e=NaN,f.d=null):s.e=10;u/=10)o++;w?o>r.maxE?(f.e=NaN,f.d=null):o=429e7?n[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(n=crypto.randomBytes(t*=4);s=214e7?crypto.randomBytes(4).copy(n,s):(u.push(r%1e7),s+=4);s=t/4}else throw Error(De);else for(;s=10;r/=10)t++;t - * MIT Licence - *) -*/ -//# sourceMappingURL=index-browser.js.map diff --git a/keep-notes/prisma/client-generated/runtime/library.d.ts b/keep-notes/prisma/client-generated/runtime/library.d.ts deleted file mode 100644 index e46bd06..0000000 --- a/keep-notes/prisma/client-generated/runtime/library.d.ts +++ /dev/null @@ -1,3403 +0,0 @@ -/** - * @param this - */ -declare function $extends(this: Client, extension: ExtensionArgs | ((client: Client) => Client)): Client; - -declare type AccelerateEngineConfig = { - inlineSchema: EngineConfig['inlineSchema']; - inlineSchemaHash: EngineConfig['inlineSchemaHash']; - env: EngineConfig['env']; - generator?: { - previewFeatures: string[]; - }; - inlineDatasources: EngineConfig['inlineDatasources']; - overrideDatasources: EngineConfig['overrideDatasources']; - clientVersion: EngineConfig['clientVersion']; - engineVersion: EngineConfig['engineVersion']; - logEmitter: EngineConfig['logEmitter']; - logQueries?: EngineConfig['logQueries']; - logLevel?: EngineConfig['logLevel']; - tracingHelper: EngineConfig['tracingHelper']; - accelerateUtils?: EngineConfig['accelerateUtils']; -}; - -export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw'; - -declare type ActiveConnectorType = Exclude; - -export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum'; - -export declare type AllModelsToStringIndex, K extends PropertyKey> = Args extends { - [P in K]: { - $allModels: infer AllModels; - }; -} ? { - [P in K]: Record; -} : {}; - -declare class AnyNull extends NullTypesEnumValue { -} - -export declare type ApplyOmit = Compute<{ - [K in keyof T as OmitValue extends true ? never : K]: T[K]; -}>; - -export declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -export declare type Args_3 = Args; - -/** - * Original `quaint::ValueType` enum tag from Prisma's `quaint`. - * Query arguments marked with this type are sanitized before being sent to the database. - * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined. - */ -declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time'; - -/** - * Attributes is a map from string to attribute values. - * - * Note: only the own enumerable keys are counted as valid attribute keys. - */ -declare interface Attributes { - [attributeKey: string]: AttributeValue | undefined; -} - -/** - * Attribute values may be any non-nullish primitive value except an object. - * - * null or undefined attribute values are invalid and will result in undefined behavior. - */ -declare type AttributeValue = string | number | boolean | Array | Array | Array; - -export declare type BaseDMMF = { - readonly datamodel: Omit; -}; - -declare type BatchArgs = { - queries: BatchQuery[]; - transaction?: { - isolationLevel?: IsolationLevel; - }; -}; - -declare type BatchInternalParams = { - requests: RequestParams[]; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare type BatchQuery = { - model: string | undefined; - operation: string; - args: JsArgs | RawQueryArgs; -}; - -declare type BatchQueryEngineResult = QueryEngineResult | Error; - -declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise; - -declare type BatchQueryOptionsCbArgs = { - args: BatchArgs; - query: (args: BatchArgs, __internalParams?: BatchInternalParams) => Promise; - __internalParams: BatchInternalParams; -}; - -declare type BatchTransactionOptions = { - isolationLevel?: Transaction_2.IsolationLevel; -}; - -declare interface BinaryTargetsEnvValue { - fromEnvVar: string | null; - value: string; - native?: boolean; -} - -export declare type Call = (F & { - params: P; -})['returns']; - -declare interface CallSite { - getLocation(): LocationInFile | null; -} - -export declare type Cast = A extends W ? A : W; - -declare type Client = ReturnType extends new () => infer T ? T : never; - -export declare type ClientArg = { - [MethodName in string]: unknown; -}; - -export declare type ClientArgs = { - client: ClientArg; -}; - -export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin; - -export declare type ClientOptionDef = undefined | { - [K in string]: any; -}; - -export declare type ClientOtherOps = { - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $queryRawTyped(query: TypedSql): PrismaPromise; - $queryRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $executeRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $runCommandRaw(command: InputJsonObject): PrismaPromise; -}; - -declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum]; - -declare const ColumnTypeEnum: { - readonly Int32: 0; - readonly Int64: 1; - readonly Float: 2; - readonly Double: 3; - readonly Numeric: 4; - readonly Boolean: 5; - readonly Character: 6; - readonly Text: 7; - readonly Date: 8; - readonly Time: 9; - readonly DateTime: 10; - readonly Json: 11; - readonly Enum: 12; - readonly Bytes: 13; - readonly Set: 14; - readonly Uuid: 15; - readonly Int32Array: 64; - readonly Int64Array: 65; - readonly FloatArray: 66; - readonly DoubleArray: 67; - readonly NumericArray: 68; - readonly BooleanArray: 69; - readonly CharacterArray: 70; - readonly TextArray: 71; - readonly DateArray: 72; - readonly TimeArray: 73; - readonly DateTimeArray: 74; - readonly JsonArray: 75; - readonly EnumArray: 76; - readonly BytesArray: 77; - readonly UuidArray: 78; - readonly UnknownNumber: 128; -}; - -export declare type Compute = T extends Function ? T : { - [K in keyof T]: T[K]; -} & unknown; - -export declare type ComputeDeep = T extends Function ? T : { - [K in keyof T]: ComputeDeep; -} & unknown; - -declare type ComputedField = { - name: string; - needs: string[]; - compute: ResultArgsFieldCompute; -}; - -declare type ComputedFieldsMap = { - [fieldName: string]: ComputedField; -}; - -declare type ConnectionInfo = { - schemaName?: string; - maxBindValues?: number; -}; - -declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb'; - -declare interface Context { - /** - * Get a value from the context. - * - * @param key key which identifies a context value - */ - getValue(key: symbol): unknown; - /** - * Create a new context which inherits from this context and has - * the given key set to the given value. - * - * @param key context key for which to set the value - * @param value value to set for the given key - */ - setValue(key: symbol, value: unknown): Context; - /** - * Return a new context which inherits from this context but does - * not contain a value for the given key. - * - * @param key context key for which to clear a value - */ - deleteValue(key: symbol): Context; -} - -declare type Context_2 = T extends { - [K: symbol]: { - ctx: infer C; - }; -} ? C & T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -} : T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -}; - -export declare type Count = { - [K in keyof O]: Count; -} & {}; - -declare type CustomDataProxyFetch = (fetch: Fetch) => Fetch; - -declare class DataLoader { - private options; - batches: { - [key: string]: Job[]; - }; - private tickActive; - constructor(options: DataLoaderOptions); - request(request: T): Promise; - private dispatchBatches; - get [Symbol.toStringTag](): string; -} - -declare type DataLoaderOptions = { - singleLoader: (request: T) => Promise; - batchLoader: (request: T[]) => Promise; - batchBy: (request: T) => string | undefined; - batchOrder: (requestA: T, requestB: T) => number; -}; - -declare type Datasource = { - url?: string; -}; - -declare type Datasources = { - [name in string]: Datasource; -}; - -declare class DbNull extends NullTypesEnumValue { -} - -export declare const Debug: typeof debugCreate & { - enable(namespace: any): void; - disable(): any; - enabled(namespace: string): boolean; - log: (...args: string[]) => void; - formatters: {}; -}; - -/** - * Create a new debug instance with the given namespace. - * - * @example - * ```ts - * import Debug from '@prisma/debug' - * const debug = Debug('prisma:client') - * debug('Hello World') - * ``` - */ -declare function debugCreate(namespace: string): ((...args: any[]) => void) & { - color: string; - enabled: boolean; - namespace: string; - log: (...args: string[]) => void; - extend: () => void; -}; - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -/** - * Interface for any Decimal.js-like library - * Allows us to accept Decimal.js from different - * versions and some compatible alternatives - */ -export declare interface DecimalJsLike { - d: number[]; - e: number; - s: number; - toFixed(): string; -} - -export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>; - -export declare type DefaultSelection = Args extends { - omit: infer LocalOmit; -} ? ApplyOmit['default'], PatchFlat>>> : ApplyOmit['default'], ExtractGlobalOmit>>; - -export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void; - -declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client; - -declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"]; - -export declare function deserializeJsonResponse(result: unknown): unknown; - -export declare type DevTypeMapDef = { - meta: { - modelProps: string; - }; - model: { - [Model in PropertyKey]: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; - }; - other: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; -}; - -export declare type DevTypeMapFnDef = { - args: any; - result: any; - payload: OperationPayload; -}; - -export declare namespace DMMF { - export type Document = ReadonlyDeep_2<{ - datamodel: Datamodel; - schema: Schema; - mappings: Mappings; - }>; - export type Mappings = ReadonlyDeep_2<{ - modelOperations: ModelMapping[]; - otherOperations: { - read: string[]; - write: string[]; - }; - }>; - export type OtherOperationMappings = ReadonlyDeep_2<{ - read: string[]; - write: string[]; - }>; - export type DatamodelEnum = ReadonlyDeep_2<{ - name: string; - values: EnumValue[]; - dbName?: string | null; - documentation?: string; - }>; - export type SchemaEnum = ReadonlyDeep_2<{ - name: string; - values: string[]; - }>; - export type EnumValue = ReadonlyDeep_2<{ - name: string; - dbName: string | null; - }>; - export type Datamodel = ReadonlyDeep_2<{ - models: Model[]; - enums: DatamodelEnum[]; - types: Model[]; - indexes: Index[]; - }>; - export type uniqueIndex = ReadonlyDeep_2<{ - name: string; - fields: string[]; - }>; - export type PrimaryKey = ReadonlyDeep_2<{ - name: string | null; - fields: string[]; - }>; - export type Model = ReadonlyDeep_2<{ - name: string; - dbName: string | null; - fields: Field[]; - uniqueFields: string[][]; - uniqueIndexes: uniqueIndex[]; - documentation?: string; - primaryKey: PrimaryKey | null; - isGenerated?: boolean; - }>; - export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported'; - export type FieldNamespace = 'model' | 'prisma'; - export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes'; - export type Field = ReadonlyDeep_2<{ - kind: FieldKind; - name: string; - isRequired: boolean; - isList: boolean; - isUnique: boolean; - isId: boolean; - isReadOnly: boolean; - isGenerated?: boolean; - isUpdatedAt?: boolean; - /** - * Describes the data type in the same the way it is defined in the Prisma schema: - * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName - */ - type: string; - dbName?: string | null; - hasDefaultValue: boolean; - default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[]; - relationFromFields?: string[]; - relationToFields?: string[]; - relationOnDelete?: string; - relationName?: string; - documentation?: string; - }>; - export type FieldDefault = ReadonlyDeep_2<{ - name: string; - args: any[]; - }>; - export type FieldDefaultScalar = string | boolean | number; - export type Index = ReadonlyDeep_2<{ - model: string; - type: IndexType; - isDefinedOnField: boolean; - name?: string; - dbName?: string; - algorithm?: string; - clustered?: boolean; - fields: IndexField[]; - }>; - export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext'; - export type IndexField = ReadonlyDeep_2<{ - name: string; - sortOrder?: SortOrder; - length?: number; - operatorClass?: string; - }>; - export type SortOrder = 'asc' | 'desc'; - export type Schema = ReadonlyDeep_2<{ - rootQueryType?: string; - rootMutationType?: string; - inputObjectTypes: { - model?: InputType[]; - prisma: InputType[]; - }; - outputObjectTypes: { - model: OutputType[]; - prisma: OutputType[]; - }; - enumTypes: { - model?: SchemaEnum[]; - prisma: SchemaEnum[]; - }; - fieldRefTypes: { - prisma?: FieldRefType[]; - }; - }>; - export type Query = ReadonlyDeep_2<{ - name: string; - args: SchemaArg[]; - output: QueryOutput; - }>; - export type QueryOutput = ReadonlyDeep_2<{ - name: string; - isRequired: boolean; - isList: boolean; - }>; - export type TypeRef = { - isList: boolean; - type: string; - location: AllowedLocations; - namespace?: FieldNamespace; - }; - export type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>; - export type SchemaArg = ReadonlyDeep_2<{ - name: string; - comment?: string; - isNullable: boolean; - isRequired: boolean; - inputTypes: InputTypeRef[]; - deprecation?: Deprecation; - }>; - export type OutputType = ReadonlyDeep_2<{ - name: string; - fields: SchemaField[]; - }>; - export type SchemaField = ReadonlyDeep_2<{ - name: string; - isNullable?: boolean; - outputType: OutputTypeRef; - args: SchemaArg[]; - deprecation?: Deprecation; - documentation?: string; - }>; - export type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>; - export type Deprecation = ReadonlyDeep_2<{ - sinceVersion: string; - reason: string; - plannedRemovalVersion?: string; - }>; - export type InputType = ReadonlyDeep_2<{ - name: string; - constraints: { - maxNumFields: number | null; - minNumFields: number | null; - fields?: string[]; - }; - meta?: { - source?: string; - }; - fields: SchemaArg[]; - }>; - export type FieldRefType = ReadonlyDeep_2<{ - name: string; - allowTypes: FieldRefAllowType[]; - fields: SchemaArg[]; - }>; - export type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>; - export type ModelMapping = ReadonlyDeep_2<{ - model: string; - plural: string; - findUnique?: string | null; - findUniqueOrThrow?: string | null; - findFirst?: string | null; - findFirstOrThrow?: string | null; - findMany?: string | null; - create?: string | null; - createMany?: string | null; - createManyAndReturn?: string | null; - update?: string | null; - updateMany?: string | null; - upsert?: string | null; - delete?: string | null; - deleteMany?: string | null; - aggregate?: string | null; - groupBy?: string | null; - count?: string | null; - findRaw?: string | null; - aggregateRaw?: string | null; - }>; - export enum ModelAction { - findUnique = "findUnique", - findUniqueOrThrow = "findUniqueOrThrow", - findFirst = "findFirst", - findFirstOrThrow = "findFirstOrThrow", - findMany = "findMany", - create = "create", - createMany = "createMany", - createManyAndReturn = "createManyAndReturn", - update = "update", - updateMany = "updateMany", - upsert = "upsert", - delete = "delete", - deleteMany = "deleteMany", - groupBy = "groupBy", - count = "count",// TODO: count does not actually exist, why? - aggregate = "aggregate", - findRaw = "findRaw", - aggregateRaw = "aggregateRaw" - } -} - -export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel; - -export declare interface DriverAdapter extends Queryable { - /** - * Starts new transaction. - */ - transactionContext(): Promise>; - /** - * Optional method that returns extra connection info - */ - getConnectionInfo?(): Result_4; -} - -/** Client */ -export declare type DynamicClientExtensionArgs, ClientOptions> = { - [P in keyof C_]: unknown; -} & { - [K: symbol]: { - ctx: Optional, ITXClientDenyList> & { - $parent: Optional, ITXClientDenyList>; - }; - }; -}; - -export declare type DynamicClientExtensionThis, ClientOptions> = { - [P in keyof ExtArgs['client']]: Return; -} & { - [P in Exclude]: DynamicModelExtensionThis, ExtArgs, ClientOptions>; -} & { - [P in Exclude]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never; -} & { - [P in Exclude]: DynamicClientExtensionThisBuiltin[P]; -} & { - [K: symbol]: { - types: TypeMap['other']; - }; -}; - -export declare type DynamicClientExtensionThisBuiltin, ClientOptions> = { - $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call, ClientOptions>; - $transaction

[]>(arg: [...P], options?: { - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise>; - $transaction(fn: (client: Omit, ITXClientDenyList>) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise; - $disconnect(): Promise; - $connect(): Promise; -}; - -/** Model */ -export declare type DynamicModelExtensionArgs, ClientOptions> = { - [K in keyof M_]: K extends '$allModels' ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: {}; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: { - ctx: DynamicModelExtensionThis, ExtArgs, ClientOptions> & { - $parent: DynamicClientExtensionThis; - } & { - $name: ModelKey; - } & { - /** - * @deprecated Use `$name` instead. - */ - name: ModelKey; - }; - }; - } : never; -}; - -export declare type DynamicModelExtensionFluentApi = { - [K in keyof TypeMap['model'][M]['payload']['objects']]: (args?: Exact>) => PrismaPromise, [K]> | Null> & DynamicModelExtensionFluentApi, ClientOptions>; -}; - -export declare type DynamicModelExtensionFnResult = P extends FluentOperation ? DynamicModelExtensionFluentApi & PrismaPromise | Null> : PrismaPromise>; - -export declare type DynamicModelExtensionFnResultBase = GetResult; - -export declare type DynamicModelExtensionFnResultNull

= P extends 'findUnique' | 'findFirst' ? null : never; - -export declare type DynamicModelExtensionOperationFn = {} extends TypeMap['model'][M]['operations'][P]['args'] ? (args?: Exact) => DynamicModelExtensionFnResult, ClientOptions> : (args: Exact) => DynamicModelExtensionFnResult, ClientOptions>; - -export declare type DynamicModelExtensionThis, ClientOptions> = { - [P in keyof ExtArgs['model'][Uncapitalize]]: Return][P]>; -} & { - [P in Exclude]>]: DynamicModelExtensionOperationFn; -} & { - [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize]>]: TypeMap['model'][M]['fields']; -} & { - [K: symbol]: { - types: TypeMap['model'][M]; - }; -}; - -/** Query */ -export declare type DynamicQueryExtensionArgs = { - [K in keyof Q_]: K extends '$allOperations' ? (args: { - model?: string; - operation: string; - args: any; - query: (args: any) => PrismaPromise; - }) => Promise : K extends '$allModels' ? { - [P in keyof Q_[K] | keyof TypeMap['model'][keyof TypeMap['model']]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb : P extends keyof TypeMap['model'][keyof TypeMap['model']]['operations'] ? DynamicQueryExtensionCb : never; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof Q_[K] | keyof TypeMap['model'][ModelKey]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb, keyof TypeMap['model'][ModelKey]['operations']> : P extends keyof TypeMap['model'][ModelKey]['operations'] ? DynamicQueryExtensionCb, P> : never; - } : K extends keyof TypeMap['other']['operations'] ? DynamicQueryExtensionCb<[TypeMap], 0, 'other', K> : never; -}; - -export declare type DynamicQueryExtensionCb = >(args: A) => Promise; - -export declare type DynamicQueryExtensionCbArgs = (_1 extends unknown ? _2 extends unknown ? { - args: DynamicQueryExtensionCbArgsArgs; - model: _0 extends 0 ? undefined : _1; - operation: _2; - query: >(args: A) => PrismaPromise; -} : never : never) & { - query: (args: DynamicQueryExtensionCbArgsArgs) => PrismaPromise; -}; - -export declare type DynamicQueryExtensionCbArgsArgs = _2 extends '$queryRaw' | '$executeRaw' ? Sql : TypeMap[_0][_1]['operations'][_2]['args']; - -/** Result */ -export declare type DynamicResultExtensionArgs = { - [K in keyof R_]: { - [P in keyof R_[K]]?: { - needs?: DynamicResultExtensionNeeds, R_[K][P]>; - compute(data: DynamicResultExtensionData, R_[K][P]>): any; - }; - }; -}; - -export declare type DynamicResultExtensionData = GetFindResult; - -export declare type DynamicResultExtensionNeeds = { - [K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never; -} & { - [N in keyof TypeMap['model'][M]['payload']['scalars']]?: boolean; -}; - -/** - * Placeholder value for "no text". - */ -export declare const empty: Sql; - -export declare type EmptyToUnknown = T; - -declare interface Engine { - /** The name of the engine. This is meant to be consumed externally */ - readonly name: string; - onBeforeExit(callback: () => Promise): void; - start(): Promise; - stop(): Promise; - version(forceRun?: boolean): Promise | string; - request(query: JsonQuery, options: RequestOptions_2): Promise>; - requestBatch(queries: JsonQuery[], options: RequestBatchOptions): Promise[]>; - transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise>; - transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - metrics(options: MetricsOptionsJson): Promise; - metrics(options: MetricsOptionsPrometheus): Promise; - applyPendingMigrations(): Promise; -} - -declare interface EngineConfig { - cwd: string; - dirname: string; - datamodelPath: string; - enableDebugLogs?: boolean; - allowTriggerPanic?: boolean; - prismaPath?: string; - generator?: GeneratorConfig; - overrideDatasources: Datasources; - showColors?: boolean; - logQueries?: boolean; - logLevel?: 'info' | 'warn'; - env: Record; - flags?: string[]; - clientVersion: string; - engineVersion: string; - previewFeatures?: string[]; - engineEndpoint?: string; - activeProvider?: string; - logEmitter: LogEmitter; - transactionOptions: Transaction_2.Options; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`. - * If set, this is only used in the library engine, and all queries would be performed through it, - * rather than Prisma's Rust drivers. - * @remarks only used by LibraryEngine.ts - */ - adapter?: ErrorCapturingDriverAdapter; - /** - * The contents of the schema encoded into a string - * @remarks only used by DataProxyEngine.ts - */ - inlineSchema: string; - /** - * The contents of the datasource url saved in a string - * @remarks only used by DataProxyEngine.ts - */ - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - /** - * The string hash that was produced for a given schema - * @remarks only used by DataProxyEngine.ts - */ - inlineSchemaHash: string; - /** - * The helper for interaction with OTEL tracing - * @remarks enabling is determined by the client and @prisma/instrumentation package - */ - tracingHelper: TracingHelper; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * Web Assembly module loading configuration - */ - engineWasm?: WasmLoadingConfig; - /** - * Allows Accelerate to use runtime utilities from the client. These are - * necessary for the AccelerateEngine to function correctly. - */ - accelerateUtils?: { - resolveDatasourceUrl: typeof resolveDatasourceUrl; - getBatchRequestPayload: typeof getBatchRequestPayload; - prismaGraphQLToJSError: typeof prismaGraphQLToJSError; - PrismaClientUnknownRequestError: typeof PrismaClientUnknownRequestError; - PrismaClientInitializationError: typeof PrismaClientInitializationError; - PrismaClientKnownRequestError: typeof PrismaClientKnownRequestError; - debug: (...args: any[]) => void; - engineVersion: string; - clientVersion: string; - }; -} - -declare type EngineEvent = E extends QueryEventType ? QueryEvent : LogEvent; - -declare type EngineEventType = QueryEventType | LogEventType; - -declare type EngineProtocol = 'graphql' | 'json'; - -declare type EngineSpan = { - span: boolean; - name: string; - trace_id: string; - span_id: string; - parent_span_id: string; - start_time: [number, number]; - end_time: [number, number]; - attributes?: Record; - links?: { - trace_id: string; - span_id: string; - }[]; - kind: EngineSpanKind; -}; - -declare type EngineSpanEvent = { - span: boolean; - spans: EngineSpan[]; -}; - -declare type EngineSpanKind = 'client' | 'internal'; - -declare type EnvPaths = { - rootEnvPath: string | null; - schemaEnvPath: string | undefined; -}; - -declare interface EnvValue { - fromEnvVar: null | string; - value: null | string; -} - -export declare type Equals = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? 1 : 0; - -declare type Error_2 = { - kind: 'GenericJs'; - id: number; -} | { - kind: 'UnsupportedNativeDataType'; - type: string; -} | { - kind: 'Postgres'; - code: string; - severity: string; - message: string; - detail: string | undefined; - column: string | undefined; - hint: string | undefined; -} | { - kind: 'Mysql'; - code: number; - message: string; - state: string; -} | { - kind: 'Sqlite'; - /** - * Sqlite extended error code: https://www.sqlite.org/rescode.html - */ - extendedCode: number; - message: string; -}; - -declare interface ErrorCapturingDriverAdapter extends DriverAdapter { - readonly errorRegistry: ErrorRegistry; -} - -declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal'; - -declare type ErrorRecord = { - error: unknown; -}; - -declare interface ErrorRegistry { - consumeError(id: number): ErrorRecord | undefined; -} - -declare interface ErrorWithBatchIndex { - batchRequestIdx?: number; -} - -declare type EventCallback = [E] extends ['beforeExit'] ? () => Promise : [E] extends [LogLevel] ? (event: EngineEvent) => void : never; - -export declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -/** - * Defines Exception. - * - * string or an object with one of (message or name or code) and optional stack - */ -declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string; - -declare interface ExceptionWithCode { - code: string | number; - name?: string; - message?: string; - stack?: string; -} - -declare interface ExceptionWithMessage { - code?: string | number; - message: string; - name?: string; - stack?: string; -} - -declare interface ExceptionWithName { - code?: string | number; - message?: string; - name: string; - stack?: string; -} - -declare type ExtendedEventType = LogLevel | 'beforeExit'; - -declare type ExtendedSpanOptions = SpanOptions & { - /** The name of the span */ - name: string; - internal?: boolean; - middleware?: boolean; - /** Whether it propagates context (?=true) */ - active?: boolean; - /** The context to append the span to */ - context?: Context; -}; - -/** $extends, defineExtension */ -export declare interface ExtendsHook, TypeMap extends TypeMapDef = Call, ClientOptions = {}> { - extArgs: ExtArgs; - , MergedArgs extends InternalArgs = MergeExtArgs>(extension: ((client: DynamicClientExtensionThis) => { - $extends: { - extArgs: Args; - }; - }) | { - name?: string; - query?: DynamicQueryExtensionArgs; - result?: DynamicResultExtensionArgs & R; - model?: DynamicModelExtensionArgs & M; - client?: DynamicClientExtensionArgs & C; - }): { - extends: DynamicClientExtensionThis, TypeMapCb, MergedArgs, ClientOptions>; - define: (client: any) => { - $extends: { - extArgs: Args; - }; - }; - }[Variant]; -} - -export declare type ExtensionArgs = Optional; - -declare namespace Extensions { - export { - defineExtension, - getExtensionContext - } -} -export { Extensions } - -declare namespace Extensions_2 { - export { - InternalArgs, - DefaultArgs, - GetPayloadResultExtensionKeys, - GetPayloadResultExtensionObject, - GetPayloadResult, - GetSelect, - GetOmit, - DynamicQueryExtensionArgs, - DynamicQueryExtensionCb, - DynamicQueryExtensionCbArgs, - DynamicQueryExtensionCbArgsArgs, - DynamicResultExtensionArgs, - DynamicResultExtensionNeeds, - DynamicResultExtensionData, - DynamicModelExtensionArgs, - DynamicModelExtensionThis, - DynamicModelExtensionOperationFn, - DynamicModelExtensionFnResult, - DynamicModelExtensionFnResultBase, - DynamicModelExtensionFluentApi, - DynamicModelExtensionFnResultNull, - DynamicClientExtensionArgs, - DynamicClientExtensionThis, - ClientBuiltInProp, - DynamicClientExtensionThisBuiltin, - ExtendsHook, - MergeExtArgs, - AllModelsToStringIndex, - TypeMapDef, - DevTypeMapDef, - DevTypeMapFnDef, - ClientOptionDef, - ClientOtherOps, - TypeMapCbDef, - ModelKey, - RequiredExtensionArgs as UserArgs - } -} - -export declare type ExtractGlobalOmit = Options extends { - omit: { - [K in ModelName]: infer GlobalOmit; - }; -} ? GlobalOmit : {}; - -declare type Fetch = typeof nodeFetch; - -/** - * A reference to a specific field of a specific model - */ -export declare interface FieldRef { - readonly modelName: Model; - readonly name: string; - readonly typeName: FieldType; - readonly isList: boolean; -} - -export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete'; - -export declare interface Fn { - params: Params; - returns: Returns; -} - -declare interface GeneratorConfig { - name: string; - output: EnvValue | null; - isCustomOutput?: boolean; - provider: EnvValue; - config: { - /** `output` is a reserved name and will only be available directly at `generator.output` */ - output?: never; - /** `provider` is a reserved name and will only be available directly at `generator.provider` */ - provider?: never; - /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */ - binaryTargets?: never; - /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */ - previewFeatures?: never; - } & { - [key: string]: string | string[] | undefined; - }; - binaryTargets: BinaryTargetsEnvValue[]; - previewFeatures: string[]; - envPaths?: EnvPaths; - sourceFilePath: string; -} - -export declare type GetAggregateResult

= { - [K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count : { - [J in keyof A[K] & string]: P['scalars'][J] | null; - }; -}; - -declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2): QueryEngineBatchRequest; - -export declare type GetBatchResult = { - count: number; -}; - -export declare type GetCountResult = A extends { - select: infer S; -} ? (S extends true ? number : Count) : number; - -declare function getExtensionContext(that: T): Context_2; - -export declare type GetFindResult

= Equals extends 1 ? DefaultSelection : A extends { - select: infer S extends object; -} & Record | { - include: infer I extends object; -} & Record ? { - [K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult | SelectField & null : never : K extends '_count' ? Count> : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection | SelectField & null : never : P extends { - scalars: { - [k in K]: infer O; - }; - } ? O : K extends '_count' ? Count : never; -} & (A extends { - include: any; -} & Record ? DefaultSelection : unknown) : DefaultSelection; - -export declare type GetGroupByResult

= A extends { - by: string[]; -} ? Array & { - [K in A['by'][number]]: P['scalars'][K]; -}> : A extends { - by: string; -} ? Array & { - [K in A['by']]: P['scalars'][K]; -}> : {}[]; - -export declare type GetOmit = { - [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType; -}; - -export declare type GetPayloadResult, R extends InternalArgs['result'][string]> = Omit> & GetPayloadResultExtensionObject; - -export declare type GetPayloadResultExtensionKeys = KR; - -export declare type GetPayloadResultExtensionObject = { - [K in GetPayloadResultExtensionKeys]: R[K] extends () => { - compute: (...args: any) => infer C; - } ? C : never; -}; - -export declare function getPrismaClient(config: GetPrismaClientConfig): { - new (optionsArg?: PrismaClientOptions): { - _originalClient: any; - _runtimeDataModel: RuntimeDataModel; - _requestHandler: RequestHandler; - _connectionPromise?: Promise | undefined; - _disconnectionPromise?: Promise | undefined; - _engineConfig: EngineConfig; - _accelerateEngineConfig: AccelerateEngineConfig; - _clientVersion: string; - _errorFormat: ErrorFormat; - _tracingHelper: TracingHelper; - _metrics: MetricsClient; - _middlewares: MiddlewareHandler; - _previewFeatures: string[]; - _activeProvider: string; - _globalOmit?: GlobalOmitOptions | undefined; - _extensions: MergedExtensionsList; - _engine: Engine; - /** - * A fully constructed/applied Client that references the parent - * PrismaClient. This is used for Client extensions only. - */ - _appliedParent: any; - _createPrismaPromise: PrismaPromiseFactory; - /** - * Hook a middleware into the client - * @param middleware to hook - */ - $use(middleware: QueryMiddleware): void; - $on(eventType: E, callback: EventCallback): void; - $connect(): Promise; - /** - * Disconnect from the database - */ - $disconnect(): Promise; - /** - * Executes a raw query and always returns a number - */ - $executeRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Executes a raw command only for MongoDB - * - * @param command - * @returns - */ - $runCommandRaw(command: Record): PrismaPromise_2; - /** - * Executes a raw query and returns selected data - */ - $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Counterpart to $queryRaw, that returns strongly typed results - * @param typedSql - */ - $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2; - /** - * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Execute a batch of requests in a transaction - * @param requests - * @param options - */ - _transactionWithArray({ promises, options, }: { - promises: Array>; - options?: BatchTransactionOptions; - }): Promise; - /** - * Perform a long-running transaction - * @param callback - * @param options - * @returns - */ - _transactionWithCallback({ callback, options, }: { - callback: (client: Client) => Promise; - options?: Options; - }): Promise; - _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client; - /** - * Execute queries within a transaction - * @param input a callback or a query list - * @param options to set timeouts (callback) - * @returns - */ - $transaction(input: any, options?: any): Promise; - /** - * Runs the middlewares over params before executing a request - * @param internalParams - * @returns - */ - _request(internalParams: InternalRequestParams): Promise; - _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise; - readonly $metrics: MetricsClient; - /** - * Shortcut for checking a preview flag - * @param feature preview flag - * @returns - */ - _hasPreviewFlag(feature: string): boolean; - $applyPendingMigrations(): Promise; - $extends: typeof $extends; - readonly [Symbol.toStringTag]: string; - }; -}; - -/** - * Config that is stored into the generated client. When the generated client is - * loaded, this same config is passed to {@link getPrismaClient} which creates a - * closure with that config around a non-instantiated [[PrismaClient]]. - */ -declare type GetPrismaClientConfig = { - runtimeDataModel: RuntimeDataModel; - generator?: GeneratorConfig; - relativeEnvPaths: { - rootEnvPath?: string | null; - schemaEnvPath?: string | null; - }; - relativePath: string; - dirname: string; - filename?: string; - clientVersion: string; - engineVersion: string; - datasourceNames: string[]; - activeProvider: ActiveConnectorType; - /** - * The contents of the schema encoded into a string - * @remarks only used for the purpose of data proxy - */ - inlineSchema: string; - /** - * A special env object just for the data proxy edge runtime. - * Allows bundlers to inject their own env variables (Vercel). - * Allows platforms to declare global variables as env (Workers). - * @remarks only used for the purpose of data proxy - */ - injectableEdgeEnv?: () => LoadedEnv; - /** - * The contents of the datasource url saved in a string. - * This can either be an env var name or connection string. - * It is needed by the client to connect to the Data Proxy. - * @remarks only used for the purpose of data proxy - */ - inlineDatasources: { - [name in string]: { - url: EnvValue; - }; - }; - /** - * The string hash that was produced for a given schema - * @remarks only used for the purpose of data proxy - */ - inlineSchemaHash: string; - /** - * A marker to indicate that the client was not generated via `prisma - * generate` but was generated via `generate --postinstall` script instead. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - postinstall?: boolean; - /** - * Information about the CI where the Prisma Client has been generated. The - * name of the CI environment is stored at generation time because CI - * information is not always available at runtime. Moreover, the edge client - * has no notion of environment variables, so this works around that. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - ciName?: string; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * A boolean that is `false` when the client was generated with --no-engine. At - * runtime, this means the client will be bound to be using the Data Proxy. - */ - copyEngine?: boolean; - /** - * Optional wasm loading configuration - */ - engineWasm?: WasmLoadingConfig; -}; - -export declare type GetResult = { - findUnique: GetFindResult | null; - findUniqueOrThrow: GetFindResult; - findFirst: GetFindResult | null; - findFirstOrThrow: GetFindResult; - findMany: GetFindResult[]; - create: GetFindResult; - createMany: GetBatchResult; - createManyAndReturn: GetFindResult[]; - update: GetFindResult; - updateMany: GetBatchResult; - upsert: GetFindResult; - delete: GetFindResult; - deleteMany: GetBatchResult; - aggregate: GetAggregateResult; - count: GetCountResult; - groupBy: GetGroupByResult; - $queryRaw: unknown; - $queryRawTyped: unknown; - $executeRaw: number; - $queryRawUnsafe: unknown; - $executeRawUnsafe: number; - $runCommandRaw: JsonObject; - findRaw: JsonObject; - aggregateRaw: JsonObject; -}[OperationName]; - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: Runtime; - prettyName: string; - isEdge: boolean; -}; - -export declare type GetSelect, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = { - [K in KR | keyof Base]?: K extends KR ? boolean : Base[K]; -}; - -declare type GlobalOmitOptions = { - [modelName: string]: { - [fieldName: string]: boolean; - }; -}; - -declare type HandleErrorParams = { - args: JsArgs; - error: any; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - modelName?: string; - globalOmit?: GlobalOmitOptions; -}; - -/** - * Defines High-Resolution Time. - * - * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. - * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. - * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. - * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: - * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210. - * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds: - * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000. - * This is represented in HrTime format as [1609504210, 150000000]. - */ -declare type HrTime = [number, number]; - -/** - * Matches a JSON array. - * Unlike \`JsonArray\`, readonly arrays are assignable to this type. - */ -export declare interface InputJsonArray extends ReadonlyArray { -} - -/** - * Matches a JSON object. - * Unlike \`JsonObject\`, this type allows undefined and read-only properties. - */ -export declare type InputJsonObject = { - readonly [Key in string]?: InputJsonValue | null; -}; - -/** - * Matches any valid value that can be used as an input for operations like - * create and update as the value of a JSON field. Unlike \`JsonValue\`, this - * type allows read-only arrays and read-only object properties and disallows - * \`null\` at the top level. - * - * \`null\` cannot be used as the value of a JSON field because its meaning - * would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or - * \`Prisma.DbNull\` to clear the JSON value and set the field to the database - * NULL value instead. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values - */ -export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | { - toJSON(): unknown; -}; - -declare type InteractiveTransactionInfo = { - /** - * Transaction ID returned by the query engine. - */ - id: string; - /** - * Arbitrary payload the meaning of which depends on the `Engine` implementation. - * For example, `DataProxyEngine` needs to associate different API endpoints with transactions. - * In `LibraryEngine` and `BinaryEngine` it is currently not used. - */ - payload: Payload; -}; - -declare type InteractiveTransactionOptions = Transaction_2.InteractiveTransactionInfo; - -export declare type InternalArgs = { - result: { - [K in keyof R]: { - [P in keyof R[K]]: () => R[K][P]; - }; - }; - model: { - [K in keyof M]: { - [P in keyof M[K]]: () => M[K][P]; - }; - }; - query: { - [K in keyof Q]: { - [P in keyof Q[K]]: () => Q[K][P]; - }; - }; - client: { - [K in keyof C]: () => C[K]; - }; -}; - -declare type InternalRequestParams = { - /** - * The original client method being called. - * Even though the rootField / operation can be changed, - * this method stays as it is, as it's what the user's - * code looks like - */ - clientMethod: string; - /** - * Name of js model that triggered the request. Might be used - * for warnings or error messages - */ - jsModelName?: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - unpacker?: Unpacker; - otelParentCtx?: Context; - /** Used to "desugar" a user input into an "expanded" one */ - argsMapper?: (args?: UserArgs_2) => UserArgs_2; - /** Used to convert args for middleware and back */ - middlewareArgsMapper?: MiddlewareArgsMapper; - /** Used for Accelerate client extension via Data Proxy */ - customDataProxyFetch?: (fetch: Fetch) => Fetch; -} & Omit; - -declare enum IsolationLevel { - ReadUncommitted = "ReadUncommitted", - ReadCommitted = "ReadCommitted", - RepeatableRead = "RepeatableRead", - Snapshot = "Snapshot", - Serializable = "Serializable" -} - -declare function isSkip(value: unknown): value is Skip; - -export declare function isTypedSql(value: unknown): value is UnknownTypedSql; - -export declare type ITXClientDenyList = (typeof denylist)[number]; - -export declare const itxClientDenyList: readonly (string | symbol)[]; - -declare interface Job { - resolve: (data: any) => void; - reject: (data: any) => void; - request: any; -} - -/** - * Create a SQL query for a list of values. - */ -export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql; - -export declare type JsArgs = { - select?: Selection_2; - include?: Selection_2; - omit?: Omission; - [argName: string]: JsInputValue; -}; - -export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef | JsInputValue[] | Skip | { - [key: string]: JsInputValue; -}; - -declare type JsonArgumentValue = number | string | boolean | null | RawTaggedValue | JsonArgumentValue[] | { - [key: string]: JsonArgumentValue; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON array. - */ -export declare interface JsonArray extends Array { -} - -export declare type JsonBatchQuery = { - batch: JsonQuery[]; - transaction?: { - isolationLevel?: Transaction_2.IsolationLevel; - }; -}; - -export declare interface JsonConvertible { - toJSON(): unknown; -} - -declare type JsonFieldSelection = { - arguments?: Record | RawTaggedValue; - selection: JsonSelectionSet; -}; - -declare class JsonNull extends NullTypesEnumValue { -} - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON object. - * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. - */ -export declare type JsonObject = { - [Key in string]?: JsonValue; -}; - -export declare type JsonQuery = { - modelName?: string; - action: JsonQueryAction; - query: JsonFieldSelection; -}; - -declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw'; - -declare type JsonSelectionSet = { - $scalars?: boolean; - $composites?: boolean; -} & { - [fieldName: string]: boolean | JsonFieldSelection; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches any valid JSON value. - */ -export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null; - -export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | { - [key: string]: JsOutputValue; -}; - -export declare type JsPromise = Promise & {}; - -declare type KnownErrorParams = { - code: string; - clientVersion: string; - meta?: Record; - batchRequestIdx?: number; -}; - -/** - * A pointer from the current {@link Span} to another span in the same trace or - * in a different trace. - * Few examples of Link usage. - * 1. Batch Processing: A batch of elements may contain elements associated - * with one or more traces/spans. Since there can only be one parent - * SpanContext, Link is used to keep reference to SpanContext of all - * elements in the batch. - * 2. Public Endpoint: A SpanContext in incoming client request on a public - * endpoint is untrusted from service provider perspective. In such case it - * is advisable to start a new trace with appropriate sampling decision. - * However, it is desirable to associate incoming SpanContext to new trace - * initiated on service provider side so two traces (from Client and from - * Service Provider) can be correlated. - */ -declare interface Link { - /** The {@link SpanContext} of a linked span. */ - context: SpanContext; - /** A set of {@link SpanAttributes} on the link. */ - attributes?: SpanAttributes; - /** Count of attributes of the link that were dropped due to collection limits */ - droppedAttributesCount?: number; -} - -declare type LoadedEnv = { - message?: string; - parsed: { - [x: string]: string; - }; -} | undefined; - -declare type LocationInFile = { - fileName: string; - lineNumber: number | null; - columnNumber: number | null; -}; - -declare type LogDefinition = { - level: LogLevel; - emit: 'stdout' | 'event'; -}; - -/** - * Typings for the events we emit. - * - * @remarks - * If this is updated, our edge runtime shim needs to be updated as well. - */ -declare type LogEmitter = { - on(event: E, listener: (event: EngineEvent) => void): LogEmitter; - emit(event: QueryEventType, payload: QueryEvent): boolean; - emit(event: LogEventType, payload: LogEvent): boolean; -}; - -declare type LogEvent = { - timestamp: Date; - message: string; - target: string; -}; - -declare type LogEventType = 'info' | 'warn' | 'error'; - -declare type LogLevel = 'info' | 'query' | 'warn' | 'error'; - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql; - -/** - * Class that holds the list of all extensions, applied to particular instance, - * as well as resolved versions of the components that need to apply on - * different levels. Main idea of this class: avoid re-resolving as much of the - * stuff as possible when new extensions are added while also delaying the - * resolve until the point it is actually needed. For example, computed fields - * of the model won't be resolved unless the model is actually queried. Neither - * adding extensions with `client` component only cause other components to - * recompute. - */ -declare class MergedExtensionsList { - private head?; - private constructor(); - static empty(): MergedExtensionsList; - static single(extension: ExtensionArgs): MergedExtensionsList; - isEmpty(): boolean; - append(extension: ExtensionArgs): MergedExtensionsList; - getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined; - getAllClientExtensions(): ClientArg | undefined; - getAllModelExtensions(dmmfModelName: string): ModelArg | undefined; - getAllQueryCallbacks(jsModelName: string, operation: string): any; - getAllBatchQueryCallbacks(): BatchQueryOptionsCb[]; -} - -export declare type MergeExtArgs, Args extends Record> = ComputeDeep & AllModelsToStringIndex>; - -export declare type Metric = { - key: string; - value: T; - labels: Record; - description: string; -}; - -export declare type MetricHistogram = { - buckets: MetricHistogramBucket[]; - sum: number; - count: number; -}; - -export declare type MetricHistogramBucket = [maxValue: number, count: number]; - -export declare type Metrics = { - counters: Metric[]; - gauges: Metric[]; - histograms: Metric[]; -}; - -export declare class MetricsClient { - private _engine; - constructor(engine: Engine); - /** - * Returns all metrics gathered up to this point in prometheus format. - * Result of this call can be exposed directly to prometheus scraping endpoint - * - * @param options - * @returns - */ - prometheus(options?: MetricsOptions): Promise; - /** - * Returns all metrics gathered up to this point in prometheus format. - * - * @param options - * @returns - */ - json(options?: MetricsOptions): Promise; -} - -declare type MetricsOptions = { - /** - * Labels to add to every metrics in key-value format - */ - globalLabels?: Record; -}; - -declare type MetricsOptionsCommon = { - globalLabels?: Record; -}; - -declare type MetricsOptionsJson = { - format: 'json'; -} & MetricsOptionsCommon; - -declare type MetricsOptionsPrometheus = { - format: 'prometheus'; -} & MetricsOptionsCommon; - -declare type MiddlewareArgsMapper = { - requestArgsToMiddlewareArgs(requestArgs: RequestArgs): MiddlewareArgs; - middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs; -}; - -declare class MiddlewareHandler { - private _middlewares; - use(middleware: M): void; - get(id: number): M | undefined; - has(id: number): boolean; - length(): number; -} - -export declare type ModelArg = { - [MethodName in string]: unknown; -}; - -export declare type ModelArgs = { - model: { - [ModelName in string]: ModelArg; - }; -}; - -export declare type ModelKey = M extends keyof TypeMap['model'] ? M : Capitalize; - -export declare type ModelQueryOptionsCb = (args: ModelQueryOptionsCbArgs) => Promise; - -export declare type ModelQueryOptionsCbArgs = { - model: string; - operation: string; - args: JsArgs; - query: (args: JsArgs) => Promise; -}; - -export declare type NameArgs = { - name?: string; -}; - -export declare type Narrow = { - [K in keyof A]: A[K] extends Function ? A[K] : Narrow; -} | (A extends Narrowable ? A : never); - -export declare type Narrowable = string | number | bigint | boolean | []; - -export declare type NeverToUnknown = [T] extends [never] ? unknown : T; - -/** - * Imitates `fetch` via `https` to only suit our needs, it does nothing more. - * This is because we cannot bundle `node-fetch` as it uses many other Node.js - * utilities, while also bloating our bundles. This approach is much leaner. - * @param url - * @param options - * @returns - */ -declare function nodeFetch(url: string, options?: RequestOptions): Promise; - -declare class NodeHeaders { - readonly headers: Map; - constructor(init?: Record); - append(name: string, value: string): void; - delete(name: string): void; - get(name: string): string | null; - has(name: string): boolean; - set(name: string, value: string): void; - forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any): void; -} - -/** - * @deprecated Please don´t rely on type checks to this error anymore. - * This will become a regular `PrismaClientKnownRequestError` with code `P2025` - * in the future major version of the client. - * Instead of `error instanceof Prisma.NotFoundError` use `error.code === "P2025"`. - */ -export declare class NotFoundError extends PrismaClientKnownRequestError { - constructor(message: string, clientVersion: string); -} - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * List of Prisma enums that must use unique objects instead of strings as their values. - */ -export declare const objectEnumNames: string[]; - -/** - * Base class for unique values of object-valued enums. - */ -export declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"]; - -export declare type Omission = Record; - -declare type Omit_2 = { - [P in keyof T as P extends K ? never : P]: T[P]; -}; -export { Omit_2 as Omit } - -export declare type OmitValue = Key extends keyof Omit ? Omit[Key] : false; - -export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -export declare type OperationPayload = { - name: string; - scalars: { - [ScalarName in string]: unknown; - }; - objects: { - [ObjectName in string]: unknown; - }; - composites: { - [CompositeName in string]: unknown; - }; -}; - -export declare type Optional = { - [P in K & keyof O]?: O[P]; -} & { - [P in Exclude]: O[P]; -}; - -export declare type OptionalFlat = { - [K in keyof T]?: T[K]; -}; - -export declare type OptionalKeys = { - [K in keyof O]-?: {} extends Pick_2 ? K : never; -}[keyof O]; - -declare type Options = { - maxWait?: number; - timeout?: number; - isolationLevel?: IsolationLevel; -}; - -declare type Options_2 = { - clientVersion: string; -}; - -export declare type Or = { - 0: { - 0: 0; - 1: 1; - }; - 1: { - 0: 1; - 1: 1; - }; -}[A][B]; - -export declare type PatchFlat = O1 & Omit_2; - -export declare type Path = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path : Default : O : never; - -export declare type Payload = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? T[symbol]['types']['payload'] : any; - -export declare type PayloadToResult = RenameAndNestPayloadKeys

> = { - [K in keyof O]?: O[K][K] extends any[] ? PayloadToResult[] : O[K][K] extends object ? PayloadToResult : O[K][K]; -}; - -declare type Pick_2 = { - [P in keyof T as P extends K ? P : never]: T[P]; -}; -export { Pick_2 as Pick } - -export declare class PrismaClientInitializationError extends Error { - clientVersion: string; - errorCode?: string; - retryable?: boolean; - constructor(message: string, clientVersion: string, errorCode?: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex { - code: string; - meta?: Record; - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare type PrismaClientOptions = { - /** - * Overwrites the primary datasource url from your schema.prisma file - */ - datasourceUrl?: string; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale. - */ - adapter?: DriverAdapter | null; - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources; - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat; - /** - * The default values for Transaction options - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: Transaction_2.Options; - /** - * @example - * \`\`\` - * // Defaults to stdout - * log: ['query', 'info', 'warn'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * ] - * \`\`\` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: Array; - omit?: GlobalOmitOptions; - /** - * @internal - * You probably don't want to use this. \`__internal\` is used by internal tooling. - */ - __internal?: { - debug?: boolean; - engine?: { - cwd?: string; - binaryPath?: string; - endpoint?: string; - allowTriggerPanic?: boolean; - }; - /** This can be used for testing purposes */ - configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig; - }; -}; - -export declare class PrismaClientRustPanicError extends Error { - clientVersion: string; - constructor(message: string, clientVersion: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex { - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientValidationError extends Error { - name: string; - clientVersion: string; - constructor(message: string, { clientVersion }: Options_2); - get [Symbol.toStringTag](): string; -} - -declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError; - -export declare interface PrismaPromise extends Promise { - [Symbol.toStringTag]: 'PrismaPromise'; -} - -/** - * Prisma's `Promise` that is backwards-compatible. All additions on top of the - * original `Promise` are optional so that it can be backwards-compatible. - * @see [[createPrismaPromise]] - */ -declare interface PrismaPromise_2 extends Promise { - /** - * Extension of the original `.then` function - * @param onfulfilled same as regular promises - * @param onrejected same as regular promises - * @param transaction transaction options - */ - then(onfulfilled?: (value: A) => R1 | PromiseLike, onrejected?: (error: unknown) => R2 | PromiseLike, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.catch` function - * @param onrejected same as regular promises - * @param transaction transaction options - */ - catch(onrejected?: ((reason: any) => R | PromiseLike) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.finally` function - * @param onfinally same as regular promises - * @param transaction transaction options - */ - finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Called when executing a batch of regular tx - * @param transaction transaction options for batch tx - */ - requestTransaction?(transaction: PrismaPromiseBatchTransaction): PromiseLike; -} - -declare type PrismaPromiseBatchTransaction = { - kind: 'batch'; - id: number; - isolationLevel?: IsolationLevel; - index: number; - lock: PromiseLike; -}; - -declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => PrismaPromise_2; - -/** - * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which - * is essentially a proxy for `Promise`. All the transaction-compatible client - * methods return one, this allows for pre-preparing queries without executing - * them until `.then` is called. It's the foundation of Prisma's query batching. - * @param callback that will be wrapped within our promise implementation - * @see [[PrismaPromise]] - * @returns - */ -declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2; - -declare type PrismaPromiseInteractiveTransaction = { - kind: 'itx'; - id: string; - payload: PayloadType; -}; - -declare type PrismaPromiseTransaction = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction; - -export declare const PrivateResultType: unique symbol; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare namespace Public_2 { - export { - Args, - Result, - Payload, - PrismaPromise, - Operation, - Exact - } -} - -declare type Query = { - sql: string; - args: Array; - argTypes: Array; -}; - -declare interface Queryable { - readonly provider: 'mysql' | 'postgres' | 'sqlite'; - readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {}); - /** - * Execute a query given as SQL, interpolating the given parameters, - * and returning the type-aware result set of the query. - * - * This is the preferred way of executing `SELECT` queries. - */ - queryRaw(params: Query): Promise>; - /** - * Execute a query given as SQL, interpolating the given parameters, - * and returning the number of affected rows. - * - * This is the preferred way of executing `INSERT`, `UPDATE`, `DELETE` queries, - * as well as transactional queries. - */ - executeRaw(params: Query): Promise>; -} - -declare type QueryEngineBatchGraphQLRequest = { - batch: QueryEngineRequest[]; - transaction?: boolean; - isolationLevel?: Transaction_2.IsolationLevel; -}; - -declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery; - -declare type QueryEngineConfig = { - datamodel: string; - configDir: string; - logQueries: boolean; - ignoreEnvVarErrors: boolean; - datasourceOverrides: Record; - env: Record; - logLevel: QueryEngineLogLevel; - telemetry?: QueryEngineTelemetry; - engineProtocol: EngineProtocol; -}; - -declare interface QueryEngineConstructor { - new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingDriverAdapter): QueryEngineInstance; -} - -declare type QueryEngineInstance = { - connect(headers: string): Promise; - disconnect(headers: string): Promise; - /** - * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest` - * @param headersStr JSON.stringified `QueryEngineRequestHeaders` - */ - query(requestStr: string, headersStr: string, transactionId?: string): Promise; - sdlSchema(): Promise; - dmmf(traceparent: string): Promise; - startTransaction(options: string, traceHeaders: string): Promise; - commitTransaction(id: string, traceHeaders: string): Promise; - rollbackTransaction(id: string, traceHeaders: string): Promise; - metrics(options: string): Promise; - applyPendingMigrations(): Promise; -}; - -declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off'; - -declare type QueryEngineRequest = { - query: string; - variables: Object; -}; - -declare type QueryEngineResult = { - data: T; - elapsed: number; -}; - -declare type QueryEngineTelemetry = { - enabled: Boolean; - endpoint: string; -}; - -declare type QueryEvent = { - timestamp: Date; - query: string; - params: string; - duration: number; - target: string; -}; - -declare type QueryEventType = 'query'; - -declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise) => Promise; - -declare type QueryMiddlewareParams = { - /** The model this is executed on */ - model?: string; - /** The action that is being handled */ - action: Action; - /** TODO what is this */ - dataPath: string[]; - /** TODO what is this */ - runInTransaction: boolean; - args?: UserArgs_2; -}; - -export declare type QueryOptions = { - query: { - [ModelName in string]: { - [ModelAction in string]: ModelQueryOptionsCb; - } | QueryOptionsCb; - }; -}; - -export declare type QueryOptionsCb = (args: QueryOptionsCbArgs) => Promise; - -export declare type QueryOptionsCbArgs = { - model?: string; - operation: string; - args: JsArgs | RawQueryArgs; - query: (args: JsArgs | RawQueryArgs) => Promise; -}; - -/** - * Create raw SQL statement. - */ -export declare function raw(value: string): Sql; - -export declare type RawParameters = { - __prismaRawParameters__: true; - values: string; -}; - -export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]]; - -declare type RawTaggedValue = { - $type: 'Raw'; - value: unknown; -}; - -/** - * Supported value or SQL instance. - */ -export declare type RawValue = Value | Sql; - -export declare type ReadonlyDeep = { - readonly [K in keyof T]: ReadonlyDeep; -}; - -declare type ReadonlyDeep_2 = { - +readonly [K in keyof O]: ReadonlyDeep_2; -}; - -declare type Record_2 = { - [P in T]: U; -}; -export { Record_2 as Record } - -export declare type RenameAndNestPayloadKeys

= { - [K in keyof P as K extends 'scalars' | 'objects' | 'composites' ? keyof P[K] : never]: P[K]; -}; - -declare type RequestBatchOptions = { - transaction?: TransactionOptions_2; - traceparent?: string; - numTry?: number; - containsWrite: boolean; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare interface RequestError { - error: string; - user_facing_error: { - is_panic: boolean; - message: string; - meta?: Record; - error_code?: string; - batch_request_idx?: number; - }; -} - -declare class RequestHandler { - client: Client; - dataloader: DataLoader; - private logEmitter?; - constructor(client: Client, logEmitter?: LogEmitter); - request(params: RequestParams): Promise; - mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResult): any; - /** - * Handles the error and logs it, logging the error is done synchronously waiting for the event - * handlers to finish. - */ - handleAndLogRequestError(params: HandleErrorParams): never; - handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never; - sanitizeMessage(message: any): any; - unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any; - get [Symbol.toStringTag](): string; -} - -declare type RequestOptions = { - method?: string; - headers?: Record; - body?: string; -}; - -declare type RequestOptions_2 = { - traceparent?: string; - numTry?: number; - interactiveTransaction?: InteractiveTransactionOptions; - isWrite: boolean; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare type RequestParams = { - modelName?: string; - action: Action; - protocolQuery: JsonQuery; - dataPath: string[]; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - extensions: MergedExtensionsList; - args?: any; - headers?: Record; - unpacker?: Unpacker; - otelParentCtx?: Context; - otelChildCtx?: Context; - globalOmit?: GlobalOmitOptions; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare type RequestResponse = { - ok: boolean; - url: string; - statusText?: string; - status: number; - headers: NodeHeaders; - text: () => Promise; - json: () => Promise; -}; - -declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions; -export { RequiredExtensionArgs } -export { RequiredExtensionArgs as UserArgs } - -export declare type RequiredKeys = { - [K in keyof O]-?: {} extends Pick_2 ? never : K; -}[keyof O]; - -declare function resolveDatasourceUrl({ inlineDatasources, overrideDatasources, env, clientVersion, }: { - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - overrideDatasources: Datasources; - env: Record; - clientVersion: string; -}): string; - -export declare type Result = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? GetResult : GetResult<{ - composites: {}; - objects: {}; - scalars: {}; - name: ''; -}, {}, F>; - -export declare type Result_2 = Result; - -declare namespace Result_3 { - export { - Operation, - FluentOperation, - Count, - GetFindResult, - SelectablePayloadFields, - SelectField, - DefaultSelection, - UnwrapPayload, - ApplyOmit, - OmitValue, - GetCountResult, - Aggregate, - GetAggregateResult, - GetBatchResult, - GetGroupByResult, - GetResult, - ExtractGlobalOmit - } -} - -declare type Result_4 = { - map(fn: (value: T) => U): Result_4; - flatMap(fn: (value: T) => Result_4): Result_4; -} & ({ - readonly ok: true; - readonly value: T; -} | { - readonly ok: false; - readonly error: Error_2; -}); - -export declare type ResultArg = { - [FieldName in string]: ResultFieldDefinition; -}; - -export declare type ResultArgs = { - result: { - [ModelName in string]: ResultArg; - }; -}; - -export declare type ResultArgsFieldCompute = (model: any) => unknown; - -export declare type ResultFieldDefinition = { - needs?: { - [FieldName in string]: boolean; - }; - compute: ResultArgsFieldCompute; -}; - -declare interface ResultSet { - /** - * List of column types appearing in a database query, in the same order as `columnNames`. - * They are used within the Query Engine to convert values from JS to Quaint values. - */ - columnTypes: Array; - /** - * List of column names appearing in a database query, in the same order as `columnTypes`. - */ - columnNames: Array; - /** - * List of rows retrieved from a database query. - * Each row is a list of values, whose length matches `columnNames` and `columnTypes`. - */ - rows: Array>; - /** - * The last ID of an `INSERT` statement, if any. - * This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite. - */ - lastInsertId?: string; -} - -export declare type Return = T extends (...args: any[]) => infer R ? R : T; - -declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown"; - -export declare type RuntimeDataModel = { - readonly models: Record; - readonly enums: Record; - readonly types: Record; -}; - -declare type RuntimeEnum = Omit; - -declare type RuntimeModel = Omit; - -export declare type Select = T extends U ? T : never; - -export declare type SelectablePayloadFields = { - objects: { - [k in K]: O; - }; -} | { - composites: { - [k in K]: O; - }; -}; - -export declare type SelectField

, K extends PropertyKey> = P extends { - objects: Record; -} ? P['objects'][K] : P extends { - composites: Record; -} ? P['composites'][K] : never; - -declare type Selection_2 = Record; -export { Selection_2 as Selection } - -export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery; - -declare type SerializeParams = { - runtimeDataModel: RuntimeDataModel; - modelName?: string; - action: Action; - args?: JsArgs; - extensions?: MergedExtensionsList; - callsite?: CallSite; - clientMethod: string; - clientVersion: string; - errorFormat: ErrorFormat; - previewFeatures: string[]; - globalOmit?: GlobalOmitOptions; -}; - -declare class Skip { - constructor(param?: symbol); - ifUndefined(value: T | undefined): T | Skip; -} - -export declare const skip: Skip; - -/** - * An interface that represents a span. A span represents a single operation - * within a trace. Examples of span might include remote procedure calls or a - * in-process function calls to sub-components. A Trace has a single, top-level - * "root" Span that in turn may have zero or more child Spans, which in turn - * may have children. - * - * Spans are created by the {@link Tracer.startSpan} method. - */ -declare interface Span { - /** - * Returns the {@link SpanContext} object associated with this Span. - * - * Get an immutable, serializable identifier for this span that can be used - * to create new child spans. Returned SpanContext is usable even after the - * span ends. - * - * @returns the SpanContext object associated with this Span. - */ - spanContext(): SpanContext; - /** - * Sets an attribute to the span. - * - * Sets a single Attribute with the key and value passed as arguments. - * - * @param key the key for this attribute. - * @param value the value for this attribute. Setting a value null or - * undefined is invalid and will result in undefined behavior. - */ - setAttribute(key: string, value: SpanAttributeValue): this; - /** - * Sets attributes to the span. - * - * @param attributes the attributes that will be added. - * null or undefined attribute values - * are invalid and will result in undefined behavior. - */ - setAttributes(attributes: SpanAttributes): this; - /** - * Adds an event to the Span. - * - * @param name the name of the event. - * @param [attributesOrStartTime] the attributes that will be added; these are - * associated with this event. Can be also a start time - * if type is {@type TimeInput} and 3rd param is undefined - * @param [startTime] start time of the event. - */ - addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this; - /** - * Adds a single link to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param link the link to add. - */ - addLink(link: Link): this; - /** - * Adds multiple links to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param links the links to add. - */ - addLinks(links: Link[]): this; - /** - * Sets a status to the span. If used, this will override the default Span - * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value - * of previous calls to SetStatus on the Span. - * - * @param status the SpanStatus to set. - */ - setStatus(status: SpanStatus): this; - /** - * Updates the Span name. - * - * This will override the name provided via {@link Tracer.startSpan}. - * - * Upon this update, any sampling behavior based on Span name will depend on - * the implementation. - * - * @param name the Span name. - */ - updateName(name: string): this; - /** - * Marks the end of Span execution. - * - * Call to End of a Span MUST not have any effects on child spans. Those may - * still be running and can be ended later. - * - * Do not return `this`. The Span generally should not be used after it - * is ended so chaining is not desired in this context. - * - * @param [endTime] the time to set as Span's end time. If not provided, - * use the current time as the span's end time. - */ - end(endTime?: TimeInput): void; - /** - * Returns the flag whether this span will be recorded. - * - * @returns true if this Span is active and recording information like events - * with the `AddEvent` operation and attributes using `setAttributes`. - */ - isRecording(): boolean; - /** - * Sets exception as a span event - * @param exception the exception the only accepted values are string or Error - * @param [time] the time to set as Span's event time. If not provided, - * use the current time. - */ - recordException(exception: Exception, time?: TimeInput): void; -} - -/** - * @deprecated please use {@link Attributes} - */ -declare type SpanAttributes = Attributes; - -/** - * @deprecated please use {@link AttributeValue} - */ -declare type SpanAttributeValue = AttributeValue; - -declare type SpanCallback = (span?: Span, context?: Context) => R; - -/** - * A SpanContext represents the portion of a {@link Span} which must be - * serialized and propagated along side of a {@link Baggage}. - */ -declare interface SpanContext { - /** - * The ID of the trace that this span belongs to. It is worldwide unique - * with practically sufficient probability by being made as 16 randomly - * generated bytes, encoded as a 32 lowercase hex characters corresponding to - * 128 bits. - */ - traceId: string; - /** - * The ID of the Span. It is globally unique with practically sufficient - * probability by being made as 8 randomly generated bytes, encoded as a 16 - * lowercase hex characters corresponding to 64 bits. - */ - spanId: string; - /** - * Only true if the SpanContext was propagated from a remote parent. - */ - isRemote?: boolean; - /** - * Trace flags to propagate. - * - * It is represented as 1 byte (bitmap). Bit to represent whether trace is - * sampled or not. When set, the least significant bit documents that the - * caller may have recorded trace data. A caller who does not record trace - * data out-of-band leaves this flag unset. - * - * see {@link TraceFlags} for valid flag values. - */ - traceFlags: number; - /** - * Tracing-system-specific info to propagate. - * - * The tracestate field value is a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * More Info: https://www.w3.org/TR/trace-context/#tracestate-field - * - * Examples: - * Single tracing system (generic format): - * tracestate: rojo=00f067aa0ba902b7 - * Multiple tracing systems (with different formatting): - * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE - */ - traceState?: TraceState; -} - -declare enum SpanKind { - /** Default value. Indicates that the span is used internally. */ - INTERNAL = 0, - /** - * Indicates that the span covers server-side handling of an RPC or other - * remote request. - */ - SERVER = 1, - /** - * Indicates that the span covers the client-side wrapper around an RPC or - * other remote request. - */ - CLIENT = 2, - /** - * Indicates that the span describes producer sending a message to a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - PRODUCER = 3, - /** - * Indicates that the span describes consumer receiving a message from a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - CONSUMER = 4 -} - -/** - * Options needed for span creation - */ -declare interface SpanOptions { - /** - * The SpanKind of a span - * @default {@link SpanKind.INTERNAL} - */ - kind?: SpanKind; - /** A span's attributes */ - attributes?: SpanAttributes; - /** {@link Link}s span to other spans */ - links?: Link[]; - /** A manually specified start time for the created `Span` object. */ - startTime?: TimeInput; - /** The new span should be a root span. (Ignore parent from context). */ - root?: boolean; -} - -declare interface SpanStatus { - /** The status code of this message. */ - code: SpanStatusCode; - /** A developer-facing error message. */ - message?: string; -} - -/** - * An enumeration of status codes. - */ -declare enum SpanStatusCode { - /** - * The default status. - */ - UNSET = 0, - /** - * The operation has been validated by an Application developer or - * Operator to have completed successfully. - */ - OK = 1, - /** - * The operation contains an error. - */ - ERROR = 2 -} - -/** - * A SQL instance can be nested within each other to build SQL strings. - */ -export declare class Sql { - readonly values: Value[]; - readonly strings: string[]; - constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]); - get sql(): string; - get statement(): string; - get text(): string; - inspect(): { - sql: string; - statement: string; - text: string; - values: unknown[]; - }; -} - -/** - * Create a SQL object from a template string. - */ -export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql; - -/** - * Defines TimeInput. - * - * hrtime, epoch milliseconds, performance.now() or Date - */ -declare type TimeInput = HrTime | number | Date; - -export declare type ToTuple = T extends any[] ? T : [T]; - -declare interface TraceState { - /** - * Create a new TraceState which inherits from this TraceState and has the - * given key set. - * The new entry will always be added in the front of the list of states. - * - * @param key key of the TraceState entry. - * @param value value of the TraceState entry. - */ - set(key: string, value: string): TraceState; - /** - * Return a new TraceState which inherits from this TraceState but does not - * contain the given key. - * - * @param key the key for the TraceState entry to be removed. - */ - unset(key: string): TraceState; - /** - * Returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - * - * @param key with which the specified value is to be associated. - * @returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - */ - get(key: string): string | undefined; - /** - * Serializes the TraceState to a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * - * @returns the serialized string. - */ - serialize(): string; -} - -declare interface TracingHelper { - isEnabled(): boolean; - getTraceParent(context?: Context): string; - createEngineSpan(engineSpanEvent: EngineSpanEvent): void; - getActiveContext(): Context | undefined; - runInChildSpan(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback): R; -} - -declare interface Transaction extends Queryable { - /** - * Transaction options. - */ - readonly options: TransactionOptions; - /** - * Commit the transaction. - */ - commit(): Promise>; - /** - * Rolls back the transaction. - */ - rollback(): Promise>; -} - -declare namespace Transaction_2 { - export { - IsolationLevel, - Options, - InteractiveTransactionInfo, - TransactionHeaders - } -} - -declare interface TransactionContext extends Queryable { - /** - * Starts new transaction. - */ - startTransaction(): Promise>; -} - -declare type TransactionHeaders = { - traceparent?: string; -}; - -declare type TransactionOptions = { - usePhantomQuery: boolean; -}; - -declare type TransactionOptions_2 = { - kind: 'itx'; - options: InteractiveTransactionOptions; -} | { - kind: 'batch'; - options: BatchTransactionOptions; -}; - -export declare class TypedSql { - [PrivateResultType]: Result; - constructor(sql: string, values: Values); - get sql(): string; - get values(): Values; -} - -export declare type TypeMapCbDef = Fn<{ - extArgs: InternalArgs; - clientOptions: ClientOptionDef; -}, TypeMapDef>; - -/** Shared */ -export declare type TypeMapDef = Record; - -declare namespace Types { - export { - Result_3 as Result, - Extensions_2 as Extensions, - Utils, - Public_2 as Public, - isSkip, - Skip, - skip, - UnknownTypedSql, - OperationPayload as Payload - } -} -export { Types } - -declare type UnknownErrorParams = { - clientVersion: string; - batchRequestIdx?: number; -}; - -export declare type UnknownTypedSql = TypedSql; - -declare type Unpacker = (data: any) => any; - -export declare type UnwrapPayload

= {} extends P ? unknown : { - [K in keyof P]: P[K] extends { - scalars: infer S; - composites: infer C; - }[] ? Array> : P[K] extends { - scalars: infer S; - composites: infer C; - } | null ? S & UnwrapPayload | Select : never; -}; - -export declare type UnwrapPromise

= P extends Promise ? R : P; - -export declare type UnwrapTuple = { - [K in keyof Tuple]: K extends `${number}` ? Tuple[K] extends PrismaPromise ? X : UnwrapPromise : UnwrapPromise; -}; - -/** - * Input that flows from the user into the Client. - */ -declare type UserArgs_2 = any; - -declare namespace Utils { - export { - EmptyToUnknown, - NeverToUnknown, - PatchFlat, - Omit_2 as Omit, - Pick_2 as Pick, - ComputeDeep, - Compute, - OptionalFlat, - ReadonlyDeep, - Narrowable, - Narrow, - Exact, - Cast, - Record_2 as Record, - UnwrapPromise, - UnwrapTuple, - Path, - Fn, - Call, - RequiredKeys, - OptionalKeys, - Optional, - Return, - ToTuple, - RenameAndNestPayloadKeys, - PayloadToResult, - Select, - Equals, - Or, - JsPromise - } -} - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -/** - * Values supported by SQL engine. - */ -export declare type Value = unknown; - -export declare function warnEnvConflicts(envPaths: any): void; - -export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void; - -declare type WasmLoadingConfig = { - /** - * WASM-bindgen runtime for corresponding module - */ - getRuntime: () => { - __wbg_set_wasm(exports: unknown): any; - QueryEngine: QueryEngineConstructor; - }; - /** - * Loads the raw wasm module for the wasm query engine. This configuration is - * generated specifically for each type of client, eg. Node.js client and Edge - * clients will have different implementations. - * @remarks this is a callback on purpose, we only load the wasm if needed. - * @remarks only used by LibraryEngine.ts - */ - getQueryEngineWasmModule: () => Promise; -}; - -export { } diff --git a/keep-notes/prisma/client-generated/runtime/library.js b/keep-notes/prisma/client-generated/runtime/library.js deleted file mode 100644 index f60b9c2..0000000 --- a/keep-notes/prisma/client-generated/runtime/library.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict";var eu=Object.create;var Nr=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var ru=Object.getOwnPropertyNames;var nu=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ut=(e,t)=>{for(var r in t)Nr(e,r,{get:t[r],enumerable:!0})},ho=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ru(t))!iu.call(e,i)&&i!==r&&Nr(e,i,{get:()=>t[i],enumerable:!(n=tu(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?eu(nu(e)):{},ho(t||!e||!e.__esModule?Nr(r,"default",{value:e,enumerable:!0}):r,e)),ou=e=>ho(Nr({},"__esModule",{value:!0}),e);var jo=Z((pf,Zn)=>{"use strict";var v=Zn.exports;Zn.exports.default=v;var D="\x1B[",Ht="\x1B]",ft="\x07",Jr=";",qo=process.env.TERM_PROGRAM==="Apple_Terminal";v.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};v.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=qo?"\x1B7":D+"s";v.cursorRestorePosition=qo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r[Ht,"8",Jr,Jr,t,ft,e,Ht,"8",Jr,Jr,ft].join("");v.image=(e,t={})=>{let r=`${Ht}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+ft};v.iTerm={setCwd:(e=process.cwd())=>`${Ht}50;CurrentDir=${e}${ft}`,annotation:(e,t={})=>{let r=`${Ht}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ft}}});var Xn=Z((df,Vo)=>{"use strict";Vo.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var Gu=require("os"),Bo=require("tty"),de=Xn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function ei(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ti(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Qu(e){let t=ti(e,e&&e.isTTY);return ei(t)}Uo.exports={supportsColor:Qu,stdout:ei(ti(!0,Bo.isatty(1))),stderr:ei(ti(!0,Bo.isatty(2)))}});var Wo=Z((ff,Jo)=>{"use strict";var Ju=Go(),gt=Xn();function Qo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ri(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(gt("no-hyperlink")||gt("no-hyperlinks")||gt("hyperlink=false")||gt("hyperlink=never"))return!1;if(gt("hyperlink=true")||gt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Ju.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Qo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Qo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Jo.exports={supportsHyperlink:ri,stdout:ri(process.stdout),stderr:ri(process.stderr)}});var Ko=Z((gf,Kt)=>{"use strict";var Wu=jo(),ni=Wo(),Ho=(e,t,{target:r="stdout",...n}={})=>ni[r]?Wu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Kt.exports=(e,t,r={})=>Ho(e,t,r);Kt.exports.stderr=(e,t,r={})=>Ho(e,t,{target:"stderr",...r});Kt.exports.isSupported=ni.stdout;Kt.exports.stderr.isSupported=ni.stderr});var oi=Z((Rf,Hu)=>{Hu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var si=Z(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.enginesVersion=void 0;Wr.enginesVersion=oi().prisma.enginesVersion});var Xo=Z((Gf,Yu)=>{Yu.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var ts=Z((Qf,Kr)=>{"use strict";var Zu=require("fs"),es=require("path"),Xu=require("os"),ec=Xo(),tc=ec.version,rc=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function nc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,` -`);let n;for(;(n=rc.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,` -`),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function ci(e){console.log(`[dotenv@${tc}][DEBUG] ${e}`)}function ic(e){return e[0]==="~"?es.join(Xu.homedir(),e.slice(1)):e}function oc(e){let t=es.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug),i=!!(e&&e.override);e&&(e.path!=null&&(t=ic(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=Hr.parse(Zu.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&ci(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&ci(`Failed to load ${t} ${o.message}`),{error:o}}}var Hr={config:oc,parse:nc};Kr.exports.config=Hr.config;Kr.exports.parse=Hr.parse;Kr.exports=Hr});var as=Z((Zf,ss)=>{"use strict";ss.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var us=Z((Xf,ls)=>{"use strict";var uc=as();ls.exports=e=>{let t=uc(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var fi=Z((og,cs)=>{"use strict";cs.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var fs=Z((lg,ms)=>{"use strict";ms.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var bi=Z((ug,gs)=>{"use strict";var yc=fs();gs.exports=e=>typeof e=="string"?e.replace(yc(),""):e});var hs=Z((dg,Zr)=>{"use strict";Zr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};Zr.exports.default=Zr.exports});var Ai=Z((Th,$s)=>{"use strict";$s.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;sGn,Decimal:()=>xe,Extensions:()=>jn,MetricsClient:()=>Dt,NotFoundError:()=>Le,PrismaClientInitializationError:()=>R,PrismaClientKnownRequestError:()=>V,PrismaClientRustPanicError:()=>le,PrismaClientUnknownRequestError:()=>B,PrismaClientValidationError:()=>J,Public:()=>Vn,Sql:()=>oe,defineDmmfProperty:()=>ua,deserializeJsonResponse:()=>wt,dmmfToRuntimeDataModel:()=>la,empty:()=>ma,getPrismaClient:()=>Yl,getRuntime:()=>In,join:()=>da,makeStrictEnum:()=>Zl,makeTypedQueryFactory:()=>ca,objectEnumValues:()=>yn,raw:()=>ji,serializeJsonQuery:()=>vn,skip:()=>Pn,sqltag:()=>Vi,warnEnvConflicts:()=>Xl,warnOnce:()=>tr});module.exports=ou(Nm);var jn={};Ut(jn,{defineExtension:()=>yo,getExtensionContext:()=>bo});function yo(e){return typeof e=="function"?e:t=>t.$extends(e)}function bo(e){return e}var Vn={};Ut(Vn,{validator:()=>Eo});function Eo(...e){return t=>t}var Mr={};Ut(Mr,{$:()=>To,bgBlack:()=>gu,bgBlue:()=>Eu,bgCyan:()=>xu,bgGreen:()=>yu,bgMagenta:()=>wu,bgRed:()=>hu,bgWhite:()=>Pu,bgYellow:()=>bu,black:()=>pu,blue:()=>rt,bold:()=>H,cyan:()=>De,dim:()=>Oe,gray:()=>Gt,green:()=>qe,grey:()=>fu,hidden:()=>uu,inverse:()=>lu,italic:()=>au,magenta:()=>du,red:()=>ce,reset:()=>su,strikethrough:()=>cu,underline:()=>X,white:()=>mu,yellow:()=>ke});var Bn,wo,xo,Po,vo=!0;typeof process<"u"&&({FORCE_COLOR:Bn,NODE_DISABLE_COLORS:wo,NO_COLOR:xo,TERM:Po}=process.env||{},vo=process.stdout&&process.stdout.isTTY);var To={enabled:!wo&&xo==null&&Po!=="dumb"&&(Bn!=null&&Bn!=="0"||vo)};function M(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!To.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var su=M(0,0),H=M(1,22),Oe=M(2,22),au=M(3,23),X=M(4,24),lu=M(7,27),uu=M(8,28),cu=M(9,29),pu=M(30,39),ce=M(31,39),qe=M(32,39),ke=M(33,39),rt=M(34,39),du=M(35,39),De=M(36,39),mu=M(37,39),Gt=M(90,39),fu=M(90,39),gu=M(40,49),hu=M(41,49),yu=M(42,49),bu=M(43,49),Eu=M(44,49),wu=M(45,49),xu=M(46,49),Pu=M(47,49);var vu=100,Ro=["green","yellow","blue","magenta","cyan","red"],Qt=[],Co=Date.now(),Tu=0,Un=typeof process<"u"?process.env:{};globalThis.DEBUG??=Un.DEBUG??"";globalThis.DEBUG_COLORS??=Un.DEBUG_COLORS?Un.DEBUG_COLORS==="true":!0;var Jt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Ru(e){let t={color:Ro[Tu++%Ro.length],enabled:Jt.enabled(e),namespace:e,log:Jt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Qt.push([o,...n]),Qt.length>vu&&Qt.shift(),Jt.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Cu(c)),u=`+${Date.now()-Co}ms`;Co=Date.now(),globalThis.DEBUG_COLORS?a(Mr[s](H(o)),...l,Mr[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Gn=new Proxy(Ru,{get:(e,t)=>Jt[t],set:(e,t,r)=>Jt[t]=r});function Cu(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function So(e=7500){let t=Qt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.length!!(e&&typeof e=="object"),jr=e=>e&&!!e[_e],Ee=(e,t,r)=>{if(jr(e)){let n=e[_e](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(Wn(e)){if(!Wn(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let s of e.keys()){let a=e[s];jr(a)&&a[Su]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.lengthEe(u,s[c],r))&&i.every((u,c)=>Ee(u,a[c],r))&&(o.length===0||Ee(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>Ee(s,t[a],r))}return Object.keys(e).every(n=>{let i=e[n];return(n in t||jr(o=i)&&o[_e]().matcherType==="optional")&&Ee(i,t[n],r);var o})}return Object.is(t,e)},Ge=e=>{var t,r,n;return Wn(e)?jr(e)?(t=(r=(n=e[_e]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Wt(e,Ge):Wt(Object.values(e),Ge):[]},Wt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function pe(e){return Object.assign(e,{optional:()=>Au(e),and:t=>j(e,t),or:t=>Iu(e,t),select:t=>t===void 0?Oo(e):Oo(t,e)})}function Au(e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Ge(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ee(e,t,n),selections:r}},getSelectionKeys:()=>Ge(e),matcherType:"optional"})})}function j(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"and"})})}function Iu(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return Wt(e,Ge).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"or"})})}function I(e){return{[_e]:()=>({match:t=>({matched:!!e(t)})})}}function Oo(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return pe({[_e]:()=>({match:n=>{let i={[t??Vr]:n};return{matched:r===void 0||Ee(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??Vr].concat(r===void 0?[]:Ge(r))})})}function ye(e){return typeof e=="number"}function je(e){return typeof e=="string"}function Ve(e){return typeof e=="bigint"}var Km=pe(I(function(e){return!0}));var Be=e=>Object.assign(pe(e),{startsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.endsWith(r)))));var r},minLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length>=r))(t))),length:t=>Be(j(e,(r=>I(n=>je(n)&&n.length===r))(t))),maxLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length<=r))(t))),includes:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.includes(r)))));var r},regex:t=>{return Be(j(e,(r=t,I(n=>je(n)&&!!n.match(r)))));var r}}),zm=Be(I(je)),be=e=>Object.assign(pe(e),{between:(t,r)=>be(j(e,((n,i)=>I(o=>ye(o)&&n<=o&&i>=o))(t,r))),lt:t=>be(j(e,(r=>I(n=>ye(n)&&nbe(j(e,(r=>I(n=>ye(n)&&n>r))(t))),lte:t=>be(j(e,(r=>I(n=>ye(n)&&n<=r))(t))),gte:t=>be(j(e,(r=>I(n=>ye(n)&&n>=r))(t))),int:()=>be(j(e,I(t=>ye(t)&&Number.isInteger(t)))),finite:()=>be(j(e,I(t=>ye(t)&&Number.isFinite(t)))),positive:()=>be(j(e,I(t=>ye(t)&&t>0))),negative:()=>be(j(e,I(t=>ye(t)&&t<0)))}),Ym=be(I(ye)),Ue=e=>Object.assign(pe(e),{between:(t,r)=>Ue(j(e,((n,i)=>I(o=>Ve(o)&&n<=o&&i>=o))(t,r))),lt:t=>Ue(j(e,(r=>I(n=>Ve(n)&&nUe(j(e,(r=>I(n=>Ve(n)&&n>r))(t))),lte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n<=r))(t))),gte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n>=r))(t))),positive:()=>Ue(j(e,I(t=>Ve(t)&&t>0))),negative:()=>Ue(j(e,I(t=>Ve(t)&&t<0)))}),Zm=Ue(I(Ve)),Xm=pe(I(function(e){return typeof e=="boolean"})),ef=pe(I(function(e){return typeof e=="symbol"})),tf=pe(I(function(e){return e==null})),rf=pe(I(function(e){return e!=null}));var Hn={matched:!1,value:void 0};function mt(e){return new Kn(e,Hn)}var Kn=class e{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,s={},a=(u,c)=>{o=!0,s[u]=c},l=!n.some(u=>Ee(u,this.input,a))||i&&!i(this.input)?Hn:{matched:!0,value:r(o?Vr in s?s[Vr]:s:this.input,this.input)};return new e(this.input,l)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new e(this.input,n?{matched:!0,value:r(this.input,this.input)}:Hn)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}run(){return this.exhaustive()}returnType(){return this}};var Fo=require("util");var Ou={warn:ke("prisma:warn")},ku={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Br(e,...t){ku.warn()&&console.warn(`${Ou.warn} ${e}`,...t)}var Du=(0,Fo.promisify)(_o.default.exec),te=L("prisma:get-platform"),_u=["1.0.x","1.1.x","3.0.x"];async function Lo(){let e=Gr.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Qr("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await Lu(),n=await Uu(),i=Mu({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await $u(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Fu(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=mt({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return te(`Found distro info: -${JSON.stringify(a,null,2)}`),a}async function Lu(){let e="/etc/os-release";try{let t=await zn.default.readFile(e,{encoding:"utf-8"});return Fu(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function Nu(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return No(r)}}function ko(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return No(r)}}function No(e){let t=(()=>{if($o(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(_u.includes(t))return t}function Mu(e){return mt(e).with({familyDistro:"musl"},()=>(te('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(te('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(te('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(te(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function $u(e){let t='grep -v "libssl.so.0"',r=await Do(e);if(r){te(`Found libssl.so file using platform-specific paths: ${r}`);let o=ko(r);if(te(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}te('Falling back to "ldconfig" and other generic paths');let n=await Qr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Do(["/lib64","/usr/lib64","/lib"])),n){te(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=ko(n);if(te(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await Qr("openssl version -v");if(i){te(`Found openssl binary with version: ${i}`);let o=Nu(i);if(te(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return te("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Do(e){for(let t of e){let r=await qu(t);if(r)return r}}async function qu(e){try{return(await zn.default.readdir(e)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await Mo();return e}function ju(e){return e.binaryTarget!==void 0}async function Yn(){let{memoized:e,...t}=await Mo();return t}var Ur={};async function Mo(){if(ju(Ur))return Promise.resolve({...Ur,memoized:!0});let e=await Lo(),t=Vu(e);return Ur={...e,binaryTarget:t},{...Ur,memoized:!1}}function Vu(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&Br(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${r}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=mt({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");Br(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". -${c}`)}let u="debian";if(t==="linux"&&o===void 0&&te(`Distro is "${a}". Falling back to Prisma engines built for "${u}".`),t==="darwin"&&r==="arm64")return"darwin-arm64";if(t==="darwin")return"darwin";if(t==="win32")return"windows";if(t==="freebsd")return o;if(t==="openbsd")return"openbsd";if(t==="netbsd")return"netbsd";if(t==="linux"&&o==="nixos")return"linux-nixos";if(t==="linux"&&r==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(t==="linux"&&r==="arm")return`linux-arm-openssl-${i||l}`;if(t==="linux"&&o==="musl"){let c="linux-musl";return!i||$o(i)?c:`${c}-openssl-${i}`}return t==="linux"&&o&&i?`${o}-openssl-${i}`:(t!=="linux"&&Br(`Prisma detected unknown OS "${t}" and may not work as expected. Defaulting to "linux".`),i?`${u}-openssl-${i}`:o?`${o}-openssl-${l}`:`${u}-openssl-${l}`)}async function Bu(e){try{return await e()}catch{return}}function Qr(e){return Bu(async()=>{let t=await Du(e);return te(`Command "${e}" successfully returned "${t.stdout}"`),t.stdout})}async function Uu(){return typeof Gr.default.machine=="function"?Gr.default.machine():(await Qr("uname -m"))?.trim()}function $o(e){return e.startsWith("1.")}var zo=k(Ko());function ii(e){return(0,zo.default)(e,e,{fallback:X})}var Ku=k(si());var $=k(require("path")),zu=k(si()),Lf=L("prisma:engines");function Yo(){return $.default.join(__dirname,"../")}var Nf="libquery-engine";$.default.join(__dirname,"../query-engine-darwin");$.default.join(__dirname,"../query-engine-darwin-arm64");$.default.join(__dirname,"../query-engine-debian-openssl-1.0.x");$.default.join(__dirname,"../query-engine-debian-openssl-1.1.x");$.default.join(__dirname,"../query-engine-debian-openssl-3.0.x");$.default.join(__dirname,"../query-engine-linux-static-x64");$.default.join(__dirname,"../query-engine-linux-static-arm64");$.default.join(__dirname,"../query-engine-rhel-openssl-1.0.x");$.default.join(__dirname,"../query-engine-rhel-openssl-1.1.x");$.default.join(__dirname,"../query-engine-rhel-openssl-3.0.x");$.default.join(__dirname,"../libquery_engine-darwin.dylib.node");$.default.join(__dirname,"../libquery_engine-darwin-arm64.dylib.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-musl.so.node");$.default.join(__dirname,"../libquery_engine-linux-musl-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-3.0.x.so.node");$.default.join(__dirname,"../query_engine-windows.dll.node");var ai=k(require("fs")),Zo=L("chmodPlusX");function li(e){if(process.platform==="win32")return;let t=ai.default.statSync(e),r=t.mode|64|8|1;if(t.mode===r){Zo(`Execution permissions of ${e} are fine`);return}let n=r.toString(8).slice(-3);Zo(`Have to call chmodPlusX on ${e}`),ai.default.chmodSync(e,n)}function ui(e){let t=e.e,r=a=>`Prisma cannot find the required \`${a}\` system library in your system`,n=t.message.includes("cannot open shared object file"),i=`Please refer to the documentation about Prisma's system requirements: ${ii("https://pris.ly/d/system-requirements")}`,o=`Unable to require(\`${Oe(e.id)}\`).`,s=mt({message:t.message,code:t.code}).with({code:"ENOENT"},()=>"File does not exist.").when(({message:a})=>n&&a.includes("libz"),()=>`${r("libz")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libgcc_s"),()=>`${r("libgcc_s")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libssl"),()=>{let a=e.platformInfo.libssl?`openssl-${e.platformInfo.libssl}`:"openssl";return`${r("libssl")}. Please install ${a} and try again.`}).when(({message:a})=>a.includes("GLIBC"),()=>`Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${i}`).when(({message:a})=>e.platformInfo.platform==="linux"&&a.includes("symbol not found"),()=>`The Prisma engines are not compatible with your system ${e.platformInfo.originalDistro} on (${e.platformInfo.archFromUname}) which uses the \`${e.platformInfo.binaryTarget}\` binaryTarget by default. ${i}`).otherwise(()=>`The Prisma engines do not seem to be compatible with your system. ${i}`);return`${o} -${s} - -Details: ${t.message}`}var di=k(ts()),zr=k(require("fs"));var ht=k(require("path"));function rs(e){let t=e.ignoreProcessEnv?{}:process.env,r=n=>n.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,s){let a=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(s);if(!a)return o;let l=a[1],u,c;if(l==="\\")c=a[0],u=c.replace("\\$","$");else{let p=a[2];c=a[0].substring(l.length),u=Object.hasOwnProperty.call(t,p)?t[p]:e.parsed[p]||"",u=r(u)}return o.replace(c,u)},n)??n;for(let n in e.parsed){let i=Object.hasOwnProperty.call(t,n)?t[n]:e.parsed[n];e.parsed[n]=r(i)}for(let n in e.parsed)t[n]=e.parsed[n];return e}var pi=L("prisma:tryLoadEnv");function zt({rootEnvPath:e,schemaEnvPath:t},r={conflictCheck:"none"}){let n=ns(e);r.conflictCheck!=="none"&&sc(n,t,r.conflictCheck);let i=null;return is(n?.path,t)||(i=ns(t)),!n&&!i&&pi("No Environment variables loaded"),i?.dotenvResult.error?console.error(ce(H("Schema Env Error: "))+i.dotenvResult.error):{message:[n?.message,i?.message].filter(Boolean).join(` -`),parsed:{...n?.dotenvResult?.parsed,...i?.dotenvResult?.parsed}}}function sc(e,t,r){let n=e?.dotenvResult.parsed,i=!is(e?.path,t);if(n&&t&&i&&zr.default.existsSync(t)){let o=di.default.parse(zr.default.readFileSync(t)),s=[];for(let a in o)n[a]===o[a]&&s.push(a);if(s.length>0){let a=ht.default.relative(process.cwd(),e.path),l=ht.default.relative(process.cwd(),t);if(r==="error"){let u=`There is a conflict between env var${s.length>1?"s":""} in ${X(a)} and ${X(l)} -Conflicting env vars: -${s.map(c=>` ${H(c)}`).join(` -`)} - -We suggest to move the contents of ${X(l)} to ${X(a)} to consolidate your env vars. -`;throw new Error(u)}else if(r==="warn"){let u=`Conflict for env var${s.length>1?"s":""} ${s.map(c=>H(c)).join(", ")} in ${X(a)} and ${X(l)} -Env vars from ${X(l)} overwrite the ones from ${X(a)} - `;console.warn(`${ke("warn(prisma)")} ${u}`)}}}}function ns(e){if(ac(e)){pi(`Environment variables loaded from ${e}`);let t=di.default.config({path:e,debug:process.env.DOTENV_CONFIG_DEBUG?!0:void 0});return{dotenvResult:rs(t),message:Oe(`Environment variables loaded from ${ht.default.relative(process.cwd(),e)}`),path:e}}else pi(`Environment variables not found at ${e}`);return null}function is(e,t){return e&&t&&ht.default.resolve(e)===ht.default.resolve(t)}function ac(e){return!!(e&&zr.default.existsSync(e))}var os="library";function Yt(e){let t=lc();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":os)}function lc(){let e=process.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}var Je;(t=>{let e;(E=>(E.findUnique="findUnique",E.findUniqueOrThrow="findUniqueOrThrow",E.findFirst="findFirst",E.findFirstOrThrow="findFirstOrThrow",E.findMany="findMany",E.create="create",E.createMany="createMany",E.createManyAndReturn="createManyAndReturn",E.update="update",E.updateMany="updateMany",E.upsert="upsert",E.delete="delete",E.deleteMany="deleteMany",E.groupBy="groupBy",E.count="count",E.aggregate="aggregate",E.findRaw="findRaw",E.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Je||={});var Zt=k(require("path"));function mi(e){return Zt.default.sep===Zt.default.posix.sep?e:e.split(Zt.default.sep).join(Zt.default.posix.sep)}var ps=k(fi());function hi(e){return String(new gi(e))}var gi=class{constructor(t){this.config=t}toString(){let{config:t}=this,r=t.provider.fromEnvVar?`env("${t.provider.fromEnvVar}")`:t.provider.value,n=JSON.parse(JSON.stringify({provider:r,binaryTargets:cc(t.binaryTargets)}));return`generator ${t.name} { -${(0,ps.default)(pc(n),2)} -}`}};function cc(e){let t;if(e.length>0){let r=e.find(n=>n.fromEnvVar!==null);r?t=`env("${r.fromEnvVar}")`:t=e.map(n=>n.native?"native":n.value)}else t=void 0;return t}function pc(e){let t=Object.keys(e).reduce((r,n)=>Math.max(r,n.length),0);return Object.entries(e).map(([r,n])=>`${r.padEnd(t)} = ${dc(n)}`).join(` -`)}function dc(e){return JSON.parse(JSON.stringify(e,(t,r)=>Array.isArray(r)?`[${r.map(n=>JSON.stringify(n)).join(", ")}]`:JSON.stringify(r)))}var er={};Ut(er,{error:()=>gc,info:()=>fc,log:()=>mc,query:()=>hc,should:()=>ds,tags:()=>Xt,warn:()=>yi});var Xt={error:ce("prisma:error"),warn:ke("prisma:warn"),info:De("prisma:info"),query:rt("prisma:query")},ds={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function mc(...e){console.log(...e)}function yi(e,...t){ds.warn()&&console.warn(`${Xt.warn} ${e}`,...t)}function fc(e,...t){console.info(`${Xt.info} ${e}`,...t)}function gc(e,...t){console.error(`${Xt.error} ${e}`,...t)}function hc(e,...t){console.log(`${Xt.query} ${e}`,...t)}function Yr(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}function Fe(e,t){throw new Error(t)}function Ei(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var wi=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});function yt(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function xi(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{ys.has(e)||(ys.add(e),yi(t,...r))};var V=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};w(V,"PrismaClientKnownRequestError");var Le=class extends V{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};w(Le,"NotFoundError");var R=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};w(R,"PrismaClientInitializationError");var le=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};w(le,"PrismaClientRustPanicError");var B=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};w(B,"PrismaClientUnknownRequestError");var J=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};w(J,"PrismaClientValidationError");var bt=9e15,ze=1e9,Pi="0123456789abcdef",tn="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",rn="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",vi={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-bt,maxE:bt,crypto:!1},xs,Ne,x=!0,on="[DecimalError] ",Ke=on+"Invalid argument: ",Ps=on+"Precision limit exceeded",vs=on+"crypto unavailable",Ts="[object Decimal]",ee=Math.floor,G=Math.pow,bc=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ec=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,wc=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Rs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ge=1e7,b=7,xc=9007199254740991,Pc=tn.length-1,Ti=rn.length-1,m={toStringTag:Ts};m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),y(e)};m.ceil=function(){return y(new this.constructor(this),this.e+1,2)};m.clampedTo=m.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Ke+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};m.comparedTo=m.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};m.cosine=m.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+b,n.rounding=1,r=vc(n,Os(n,r)),n.precision=e,n.rounding=t,y(Ne==2||Ne==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};m.cubeRoot=m.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,c=this,p=c.constructor;if(!c.isFinite()||c.isZero())return new p(c);for(x=!1,o=c.s*G(c.s*c,1/3),!o||Math.abs(o)==1/0?(r=K(c.d),e=c.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=G(r,1/3),e=ee((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new p(r),n.s=c.s):n=new p(o.toString()),s=(e=p.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(c),n=N(u.plus(c).times(a),u.plus(l),s+2,1),K(a.d).slice(0,s)===(r=K(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(y(a,e+1,0),a.times(a).times(a).eq(c))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(y(n,e+1,1),t=!n.times(n).times(n).eq(c));break}return x=!0,y(n,e,p.rounding,t)};m.decimalPlaces=m.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-ee(this.e/b))*b,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};m.dividedBy=m.div=function(e){return N(this,new this.constructor(e))};m.dividedToIntegerBy=m.divToInt=function(e){var t=this,r=t.constructor;return y(N(t,new r(e),0,1,1),r.precision,r.rounding)};m.equals=m.eq=function(e){return this.cmp(e)===0};m.floor=function(){return y(new this.constructor(this),this.e+1,3)};m.greaterThan=m.gt=function(e){return this.cmp(e)>0};m.greaterThanOrEqualTo=m.gte=function(e){var t=this.cmp(e);return t==1||t===0};m.hyperbolicCosine=m.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/an(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=Et(s,1,o.times(t),new s(1),!0);for(var l,u=e,c=new s(8);u--;)l=o.times(o),o=a.minus(l.times(c.minus(l.times(c))));return y(o,s.precision=r,s.rounding=n,!0)};m.hyperbolicSine=m.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Et(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/an(5,e)),i=Et(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,y(i,t,r,!0)};m.hyperbolicTangent=m.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,N(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};m.inverseCosine=m.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?fe(r,i,o):new r(0):new r(NaN):t.isZero()?fe(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=fe(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};m.inverseHyperbolicCosine=m.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,x=!1,r=r.times(r).minus(1).sqrt().plus(r),x=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};m.inverseHyperbolicSine=m.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,x=!1,r=r.times(r).plus(1).sqrt().plus(r),x=!0,n.precision=e,n.rounding=t,r.ln())};m.inverseHyperbolicTangent=m.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?y(new o(i),e,t,!0):(o.precision=r=n-i.e,i=N(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};m.inverseSine=m.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=fe(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};m.inverseTangent=m.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&p+4<=Ti)return s=fe(c,p+4,d).times(.25),s.s=u.s,s}else{if(!u.s)return new c(NaN);if(p+4<=Ti)return s=fe(c,p+4,d).times(.5),s.s=u.s,s}for(c.precision=a=p+10,c.rounding=1,r=Math.min(28,a/b+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(x=!1,t=Math.ceil(a/b),n=1,l=u.times(u),s=new c(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};m.isNaN=function(){return!this.s};m.isNegative=m.isNeg=function(){return this.s<0};m.isPositive=m.isPos=function(){return this.s>0};m.isZero=function(){return!!this.d&&this.d[0]===0};m.lessThan=m.lt=function(e){return this.cmp(e)<0};m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1};m.logarithm=m.log=function(e){var t,r,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding,f=5;if(e==null)e=new c(10),t=!0;else{if(e=new c(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new c(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(x=!1,a=p+f,s=He(u,a),n=t?nn(c,a+10):He(e,a),l=N(s,n,a,1),rr(l.d,i=p,d))do if(a+=10,s=He(u,a),n=t?nn(c,a+10):He(e,a),l=N(s,n,a,1),!o){+K(l.d).slice(i+1,i+15)+1==1e14&&(l=y(l,p+1,0));break}while(rr(l.d,i+=10,d));return x=!0,y(l,p,d)};m.minus=m.sub=function(e){var t,r,n,i,o,s,a,l,u,c,p,d,f=this,g=f.constructor;if(e=new g(e),!f.d||!e.d)return!f.s||!e.s?e=new g(NaN):f.d?e.s=-e.s:e=new g(e.d||f.s!==e.s?f:NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(u=f.d,d=e.d,a=g.precision,l=g.rounding,!u[0]||!d[0]){if(d[0])e.s=-e.s;else if(u[0])e=new g(f);else return new g(l===3?-0:0);return x?y(e,a,l):e}if(r=ee(e.e/b),c=ee(f.e/b),u=u.slice(),o=c-r,o){for(p=o<0,p?(t=u,o=-o,s=d.length):(t=d,r=c,s=u.length),n=Math.max(Math.ceil(a/b),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=d.length,p=n0;--n)u[s++]=0;for(n=d.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=c.length,s-i<0&&(i=s,r=c,c=u,u=r),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/ge|0,u[i]%=ge;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=sn(u,n),x?y(e,a,l):e};m.precision=m.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ke+e);return r.d?(t=Cs(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};m.round=function(){var e=this,t=e.constructor;return y(new t(e),e.e+1,t.rounding)};m.sine=m.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+b,n.rounding=1,r=Rc(n,Os(n,r)),n.precision=e,n.rounding=t,y(Ne>2?r.neg():r,e,t,!0)):new n(NaN)};m.squareRoot=m.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,c=s.constructor;if(u!==1||!a||!a[0])return new c(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(x=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=K(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=ee((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new c(t)):n=new c(u.toString()),r=(l=c.precision)+3;;)if(o=n,n=o.plus(N(s,o,r+2,1)).times(.5),K(o.d).slice(0,r)===(t=K(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(y(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(y(n,l+1,1),e=!n.times(n).eq(s));break}return x=!0,y(n,l,c.rounding,e)};m.tangent=m.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=N(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,y(Ne==2||Ne==4?r.neg():r,e,t,!0)):new n(NaN)};m.times=m.mul=function(e){var t,r,n,i,o,s,a,l,u,c=this,p=c.constructor,d=c.d,f=(e=new p(e)).d;if(e.s*=c.s,!d||!d[0]||!f||!f[0])return new p(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:e.s*0);for(r=ee(c.e/b)+ee(e.e/b),l=d.length,u=f.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+f[n]*d[i-n-1]+t,o[i--]=a%ge|0,t=a/ge|0;o[i]=(o[i]+t)%ge|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=sn(o,r),x?y(e,p.precision,p.rounding):e};m.toBinary=function(e,t){return Si(this,2,e,t)};m.toDecimalPlaces=m.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ie(e,0,ze),t===void 0?t=n.rounding:ie(t,0,8),y(r,e+r.e+1,t))};m.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,!0):(ie(e,0,ze),t===void 0?t=i.rounding:ie(t,0,8),n=y(new i(n),e+1,t),r=we(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};m.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=we(i):(ie(e,0,ze),t===void 0?t=o.rounding:ie(t,0,8),n=y(new o(i),e+i.e+1,t),r=we(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};m.toFraction=function(e){var t,r,n,i,o,s,a,l,u,c,p,d,f=this,g=f.d,h=f.constructor;if(!g)return new h(f);if(u=r=new h(1),n=l=new h(0),t=new h(n),o=t.e=Cs(g)-f.e-1,s=o%b,t.d[0]=G(10,s<0?b+s:s),e==null)e=o>0?t:u;else{if(a=new h(e),!a.isInt()||a.lt(u))throw Error(Ke+a);e=a.gt(t)?o>0?t:u:a}for(x=!1,a=new h(K(g)),c=h.precision,h.precision=o=g.length*b*2;p=N(a,t,0,1,1),i=r.plus(p.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(p.times(i)),l=i,i=t,t=a.minus(p.times(i)),a=i;return i=N(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=f.s,d=N(u,n,o,1).minus(f).abs().cmp(N(l,r,o,1).minus(f).abs())<1?[u,n]:[l,r],h.precision=c,x=!0,d};m.toHexadecimal=m.toHex=function(e,t){return Si(this,16,e,t)};m.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ie(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(x=!1,r=N(r,e,0,t,1).times(e),x=!0,y(r)):(e.s=r.s,r=e),r};m.toNumber=function(){return+this};m.toOctal=function(e,t){return Si(this,8,e,t)};m.toPower=m.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(G(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return y(a,n,o);if(t=ee(e.e/b),t>=e.d.length-1&&(r=u<0?-u:u)<=xc)return i=Ss(l,a,r,n),e.s<0?new l(1).div(i):y(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(x=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=Ri(e.times(He(a,n+r)),n),i.d&&(i=y(i,n+5,1),rr(i.d,n,o)&&(t=n+10,i=y(Ri(e.times(He(a,t+r)),t),t+5,1),+K(i.d).slice(n+1,n+15)+1==1e14&&(i=y(i,n+1,0)))),i.s=s,x=!0,l.rounding=o,y(i,n,o))};m.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,ze),t===void 0?t=i.rounding:ie(t,0,8),n=y(new i(n),e,t),r=we(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};m.toSignificantDigits=m.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ie(e,1,ze),t===void 0?t=n.rounding:ie(t,0,8)),y(new n(r),e,t)};m.toString=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};m.truncated=m.trunc=function(){return y(new this.constructor(this),this.e+1,1)};m.valueOf=m.toJSON=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function K(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(Ke+e)}function rr(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=b,i=0):(i=Math.ceil((t+1)/b),t%=b),o=G(10,b-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==G(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==G(10,t-3)-1,s}function en(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function vc(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/an(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=Et(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var N=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,c,p,d,f,g,h,O,T,S,C,E,me,ae,Bt,U,ne,Ie,z,dt,Lr=n.constructor,qn=n.s==i.s?1:-1,Y=n.d,_=i.d;if(!Y||!Y[0]||!_||!_[0])return new Lr(!n.s||!i.s||(Y?_&&Y[0]==_[0]:!_)?NaN:Y&&Y[0]==0||!_?qn*0:qn/0);for(l?(f=1,c=n.e-i.e):(l=ge,f=b,c=ee(n.e/f)-ee(i.e/f)),z=_.length,ne=Y.length,T=new Lr(qn),S=T.d=[],p=0;_[p]==(Y[p]||0);p++);if(_[p]>(Y[p]||0)&&c--,o==null?(ae=o=Lr.precision,s=Lr.rounding):a?ae=o+(n.e-i.e)+1:ae=o,ae<0)S.push(1),g=!0;else{if(ae=ae/f+2|0,p=0,z==1){for(d=0,_=_[0],ae++;(p1&&(_=e(_,d,l),Y=e(Y,d,l),z=_.length,ne=Y.length),U=z,C=Y.slice(0,z),E=C.length;E=l/2&&++Ie;do d=0,u=t(_,C,z,E),u<0?(me=C[0],z!=E&&(me=me*l+(C[1]||0)),d=me/Ie|0,d>1?(d>=l&&(d=l-1),h=e(_,d,l),O=h.length,E=C.length,u=t(h,C,O,E),u==1&&(d--,r(h,z=10;d/=10)p++;T.e=p+c*f-1,y(T,a?o+T.e+1:o,s,g)}return T}}();function y(e,t,r,n){var i,o,s,a,l,u,c,p,d,f=e.constructor;e:if(t!=null){if(p=e.d,!p)return e;for(i=1,a=p[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=b,s=t,c=p[d=0],l=c/G(10,i-s-1)%10|0;else if(d=Math.ceil((o+1)/b),a=p.length,d>=a)if(n){for(;a++<=d;)p.push(0);c=l=0,i=1,o%=b,s=o-b+1}else break e;else{for(c=a=p[d],i=1;a>=10;a/=10)i++;o%=b,s=o-b+i,l=s<0?0:c/G(10,i-s-1)%10|0}if(n=n||t<0||p[d+1]!==void 0||(s<0?c:c%G(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?c/G(10,i-s):0:p[d-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,u?(t-=e.e+1,p[0]=G(10,(b-t%b)%b),e.e=-t||0):p[0]=e.e=0,e;if(o==0?(p.length=d,a=1,d--):(p.length=d+1,a=G(10,b-o),p[d]=s>0?(c/G(10,i-s)%G(10,s)|0)*a:0),u)for(;;)if(d==0){for(o=1,s=p[0];s>=10;s/=10)o++;for(s=p[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,p[0]==ge&&(p[0]=1));break}else{if(p[d]+=a,p[d]!=ge)break;p[d--]=0,a=1}for(o=p.length;p[--o]===0;)p.pop()}return x&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+We(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+We(-i-1)+o,r&&(n=r-s)>0&&(o+=We(n))):i>=s?(o+=We(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+We(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=We(n))),o}function sn(e,t){var r=e[0];for(t*=b;r>=10;r/=10)t++;return t}function nn(e,t,r){if(t>Pc)throw x=!0,r&&(e.precision=r),Error(Ps);return y(new e(tn),t,1,!0)}function fe(e,t,r){if(t>Ti)throw Error(Ps);return y(new e(rn),t,r,!0)}function Cs(e){var t=e.length-1,r=t*b+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function We(e){for(var t="";e--;)t+="0";return t}function Ss(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/b+4);for(x=!1;;){if(r%2&&(o=o.times(t),Es(o.d,s)&&(i=!0)),r=ee(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),Es(t.d,s)}return x=!0,o}function bs(e){return e.d[e.d.length-1]&1}function As(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(x=!1,l=g):l=t,a=new d(.03125);e.e>-2;)e=e.times(a),p+=5;for(n=Math.log(G(2,p))/Math.LN10*2+5|0,l+=n,r=o=s=new d(1),d.precision=l;;){if(o=y(o.times(e),l,1),r=r.times(++c),a=s.plus(N(o,r,l,1)),K(a.d).slice(0,l)===K(s.d).slice(0,l)){for(i=p;i--;)s=y(s.times(s),l,1);if(t==null)if(u<3&&rr(s.d,l-n,f,u))d.precision=l+=10,r=o=a=new d(1),c=0,u++;else return y(s,d.precision=g,f,x=!0);else return d.precision=g,s}s=a}}function He(e,t){var r,n,i,o,s,a,l,u,c,p,d,f=1,g=10,h=e,O=h.d,T=h.constructor,S=T.rounding,C=T.precision;if(h.s<0||!O||!O[0]||!h.e&&O[0]==1&&O.length==1)return new T(O&&!O[0]?-1/0:h.s!=1?NaN:O?0:h);if(t==null?(x=!1,c=C):c=t,T.precision=c+=g,r=K(O),n=r.charAt(0),Math.abs(o=h.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=K(h.d),n=r.charAt(0),f++;o=h.e,n>1?(h=new T("0."+r),o++):h=new T(n+"."+r.slice(1))}else return u=nn(T,c+2,C).times(o+""),h=He(new T(n+"."+r.slice(1)),c-g).plus(u),T.precision=C,t==null?y(h,C,S,x=!0):h;for(p=h,l=s=h=N(h.minus(1),h.plus(1),c,1),d=y(h.times(h),c,1),i=3;;){if(s=y(s.times(d),c,1),u=l.plus(N(s,new T(i),c,1)),K(u.d).slice(0,c)===K(l.d).slice(0,c))if(l=l.times(2),o!==0&&(l=l.plus(nn(T,c+2,C).times(o+""))),l=N(l,new T(f),c,1),t==null)if(rr(l.d,c-g,S,a))T.precision=c+=g,u=s=h=N(p.minus(1),p.plus(1),c,1),d=y(h.times(h),c,1),i=a=1;else return y(l,T.precision=C,S,x=!0);else return T.precision=C,l;l=u,i+=2}}function Is(e){return String(e.s*e.s/0)}function Ci(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%b,r<0&&(n+=b),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Rs.test(t))return Ci(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ec.test(t))r=16,t=t.toLowerCase();else if(bc.test(t))r=2;else if(wc.test(t))r=8;else throw Error(Ke+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=Ss(n,new n(r),o,o*2)),u=en(t,r,ge),c=u.length-1,o=c;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=sn(u,c),e.d=u,x=!1,s&&(e=N(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?G(2,l):it.pow(2,l))),x=!0,e)}function Rc(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Et(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/an(5,r)),t=Et(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function Et(e,t,r,n,i){var o,s,a,l,u=1,c=e.precision,p=Math.ceil(c/b);for(x=!1,l=r.times(r),a=new e(n);;){if(s=N(a.times(l),new e(t++*t++),c,1),a=i?n.plus(s):n.minus(s),n=N(s.times(l),new e(t++*t++),c,1),s=a.plus(n),s.d[p]!==void 0){for(o=p;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return x=!0,s.d.length=p+1,s}function an(e,t){for(var r=e;--t;)r*=e;return r}function Os(e,t){var r,n=t.s<0,i=fe(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ne=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ne=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ne=bs(r)?n?2:3:n?4:1,t;Ne=bs(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Si(e,t,r,n){var i,o,s,a,l,u,c,p,d,f=e.constructor,g=r!==void 0;if(g?(ie(r,1,ze),n===void 0?n=f.rounding:ie(n,0,8)):(r=f.precision,n=f.rounding),!e.isFinite())c=Is(e);else{for(c=we(e),s=c.indexOf("."),g?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(c=c.replace(".",""),d=new f(1),d.e=c.length-s,d.d=en(we(d),10,i),d.e=d.d.length),p=en(c,10,i),o=l=p.length;p[--l]==0;)p.pop();if(!p[0])c=g?"0p+0":"0";else{if(s<0?o--:(e=new f(e),e.d=p,e.e=o,e=N(e,d,r,n,0,i),p=e.d,o=e.e,u=xs),s=p[r],a=i/2,u=u||p[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&p[r-1]&1||n===(e.s<0?8:7)),p.length=r,u)for(;++p[--r]>i-1;)p[r]=0,r||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(s=0,c="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)c+="0";for(p=en(c,i,t),l=p.length;!p[l-1];--l);for(s=1,c="1.";sl)for(o-=l;o--;)c+="0";else ot)return e.length=t,!0}function Cc(e){return new this(e).abs()}function Sc(e){return new this(e).acos()}function Ac(e){return new this(e).acosh()}function Ic(e,t){return new this(e).plus(t)}function Oc(e){return new this(e).asin()}function kc(e){return new this(e).asinh()}function Dc(e){return new this(e).atan()}function _c(e){return new this(e).atanh()}function Fc(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=fe(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?fe(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=fe(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(N(e,t,o,1)),t=fe(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(N(e,t,o,1)),r}function Lc(e){return new this(e).cbrt()}function Nc(e){return y(e=new this(e),e.e+1,2)}function Mc(e,t,r){return new this(e).clamp(t,r)}function $c(e){if(!e||typeof e!="object")throw Error(on+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,ze,"rounding",0,8,"toExpNeg",-bt,0,"toExpPos",0,bt,"maxE",0,bt,"minE",-bt,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Ke+r+": "+n);if(r="crypto",i&&(this[r]=vi[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(vs);else this[r]=!1;else throw Error(Ke+r+": "+n);return this}function qc(e){return new this(e).cos()}function jc(e){return new this(e).cosh()}function ks(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,ws(o)){u.s=o.s,x?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;x?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(vs);else for(;o=10;i/=10)n++;nH(rt(e)),punctuation:rt,directive:De,function:De,variable:e=>H(rt(e)),string:e=>H(qe(e)),boolean:ke,number:De,comment:Gt};var mp=e=>e,un={},fp=0,P={manual:un.Prism&&un.Prism.manual,disableWorkerMessageHandler:un.Prism&&un.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof he){let t=e;return new he(t.type,P.util.encode(t.content),t.alias)}else return Array.isArray(e)?e.map(P.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Ie instanceof he)continue;if(me&&U!=t.length-1){S.lastIndex=ne;var p=S.exec(e);if(!p)break;var c=p.index+(E?p[1].length:0),d=p.index+p[0].length,a=U,l=ne;for(let _=t.length;a<_&&(l=l&&(++U,ne=l);if(t[U]instanceof he)continue;u=a-U,Ie=e.slice(ne,l),p.index-=ne}else{S.lastIndex=0;var p=S.exec(Ie),u=1}if(!p){if(o)break;continue}E&&(ae=p[1]?p[1].length:0);var c=p.index+ae,p=p[0].slice(ae),d=c+p.length,f=Ie.slice(0,c),g=Ie.slice(d);let z=[U,u];f&&(++U,ne+=f.length,z.push(f));let dt=new he(h,C?P.tokenize(p,C):p,Bt,p,me);if(z.push(dt),g&&z.push(g),Array.prototype.splice.apply(t,z),u!=1&&P.matchGrammar(e,t,r,U,ne,!0,h),o)break}}}},tokenize:function(e,t){let r=[e],n=t.rest;if(n){for(let i in n)t[i]=n[i];delete t.rest}return P.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){let r=P.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){let r=P.hooks.all[e];if(!(!r||!r.length))for(var n=0,i;i=r[n++];)i(t)}},Token:he};P.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};P.languages.javascript=P.languages.extend("clike",{"class-name":[P.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});P.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;P.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:P.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:P.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:P.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:P.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});P.languages.markup&&P.languages.markup.tag.addInlined("script","javascript");P.languages.js=P.languages.javascript;P.languages.typescript=P.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});P.languages.ts=P.languages.typescript;function he(e,t,r,n,i){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0,this.greedy=!!i}he.stringify=function(e,t){return typeof e=="string"?e:Array.isArray(e)?e.map(function(r){return he.stringify(r,t)}).join(""):gp(e.type)(e.content)};function gp(e){return Ds[e]||mp}function _s(e){return hp(e,P.languages.javascript)}function hp(e,t){return P.tokenize(e,t).map(n=>he.stringify(n)).join("")}var Fs=k(us());function Ls(e){return(0,Fs.default)(e)}var cn=class e{static read(t){let r;try{r=Ns.default.readFileSync(t,"utf-8")}catch{return null}return e.fromContent(r)}static fromContent(t){let r=t.split(/\r?\n/);return new e(1,r)}constructor(t,r){this.firstLineNumber=t,this.lines=r}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(t,r){if(tthis.lines.length+this.firstLineNumber)return this;let n=t-this.firstLineNumber,i=[...this.lines];return i[n]=r(i[n]),new e(this.firstLineNumber,i)}mapLines(t){return new e(this.firstLineNumber,this.lines.map((r,n)=>t(r,this.firstLineNumber+n)))}lineAt(t){return this.lines[t-this.firstLineNumber]}prependSymbolAt(t,r){return this.mapLines((n,i)=>i===t?`${r} ${n}`:` ${n}`)}slice(t,r){let n=this.lines.slice(t-1,r).join(` -`);return new e(t,Ls(n).split(` -`))}highlight(){let t=_s(this.toString());return new e(this.firstLineNumber,t.split(` -`))}toString(){return this.lines.join(` -`)}};var yp={red:ce,gray:Gt,dim:Oe,bold:H,underline:X,highlightSource:e=>e.highlight()},bp={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Ep({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function wp({callsite:e,message:t,originalMethod:r,isPanic:n,callArguments:i},o){let s=Ep({message:t,originalMethod:r,isPanic:n,callArguments:i});if(!e||typeof window<"u"||process.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=cn.read(a.fileName)?.slice(l,a.lineNumber),c=u?.lineAt(a.lineNumber);if(u&&c){let p=Pp(c),d=xp(c);if(!d)return s;s.functionName=`${d.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,g=>g.slice(0,d.openingBraceIndex))),u=o.highlightSource(u);let f=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((g,h)=>o.gray(String(h).padStart(f))+" "+g).mapLines(g=>o.dim(g)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let g=p+f+1;g+=2,s.callArguments=(0,Ms.default)(i,g).slice(g)}}return s}function xp(e){let t=Object.keys(Je.ModelAction).join("|"),n=new RegExp(String.raw`\.(${t})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Pp(e){let t=0;for(let r=0;r"Unknown error")}function Bs(e){return e.errors.flatMap(t=>t.kind==="Union"?Bs(t):[t])}function Rp(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Cp(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Cp(e,t){return[...new Set(e.concat(t))]}function Sp(e){return xi(e,(t,r)=>{let n=qs(t),i=qs(r);return n!==i?n-i:js(t)-js(r)})}function qs(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function js(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}var ue=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};var Rt=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};var dn=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};var mn=e=>e,fn={bold:mn,red:mn,green:mn,dim:mn,enabled:!1},Us={bold:H,red:ce,green:qe,dim:Oe,enabled:!0},Ct={write(e){e.writeLine(",")}};var Pe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};var Ye=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var St=class extends Ye{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new dn(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new Pe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(Ct,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var At=class e extends Ye{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof St&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new Pe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(Ct,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};var W=class extends Ye{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new Pe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};var nr=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(Ct,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function pn(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Ip(e,t);break;case"IncludeOnScalar":Op(e,t);break;case"EmptySelection":kp(e,t,r);break;case"UnknownSelectionField":Lp(e,t);break;case"InvalidSelectionValue":Np(e,t);break;case"UnknownArgument":Mp(e,t);break;case"UnknownInputField":$p(e,t);break;case"RequiredArgumentMissing":qp(e,t);break;case"InvalidArgumentType":jp(e,t);break;case"InvalidArgumentValue":Vp(e,t);break;case"ValueTooLarge":Bp(e,t);break;case"SomeFieldsMissing":Up(e,t);break;case"TooManyFieldsGiven":Gp(e,t);break;case"Union":Vs(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Ip(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Op(e,t){let[r,n]=ir(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ue(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${or(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function kp(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Dp(e,t,i);return}if(n.hasField("select")){_p(e,t);return}}if(r?.[xt(e.outputType.name)]){Fp(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Dp(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ue(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function _p(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Ws(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${or(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Fp(e,t){let r=new nr;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ue("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=ir(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new At;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Lp(e,t){let r=Hs(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Ws(n,e.outputType);break;case"include":Qp(n,e.outputType);break;case"omit":Jp(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(or(n)),i.join(" ")})}function Np(e,t){let r=Hs(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Mp(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Wp(n,e.arguments)),t.addErrorMessage(i=>Qs(i,r,e.arguments.map(o=>o.name)))}function $p(e,t){let[r,n]=ir(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Ks(o,e.inputType)}t.addErrorMessage(o=>Qs(o,n,e.inputType.fields.map(s=>s.name)))}function Qs(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Kp(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(or(e)),n.join(" ")}function qp(e,t){let r;t.addErrorMessage(l=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=ir(e.argumentPath),s=new nr,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ue(o,s).makeRequired())}else{let l=e.inputTypes.map(Js).join(" | ");a.addSuggestion(new ue(o,l).makeRequired())}}function Js(e){return e.kind==="list"?`${Js(e.elementType)}[]`:e.name}function jp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=gn("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Vp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=gn("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Bp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Up(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Ks(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${gn("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(or(i)),o.join(" ")})}function Gp(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${gn("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Ws(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ue(r.name,"true"))}function Qp(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ue(r.name,"true"))}function Jp(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ue(r.name,"true"))}function Wp(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ue(r.name,r.typeNames.join(" | ")))}function Hs(e,t){let[r,n]=ir(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Ks(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ue(r.name,r.typeNames.join(" | ")))}function ir(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function or({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function gn(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Hp=3;function Kp(e,t){let r=1/0,n;for(let i of t){let o=(0,Gs.default)(e,i);o>Hp||o`}};function It(e){return e instanceof sr}var hn=Symbol(),Ii=new WeakMap,Me=class{constructor(t){t===hn?Ii.set(this,`Prisma.${this._getName()}`):Ii.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Ii.get(this)}},ar=class extends Me{_getNamespace(){return"NullTypes"}},lr=class extends ar{};Oi(lr,"DbNull");var ur=class extends ar{};Oi(ur,"JsonNull");var cr=class extends ar{};Oi(cr,"AnyNull");var yn={classes:{DbNull:lr,JsonNull:ur,AnyNull:cr},instances:{DbNull:new lr(hn),JsonNull:new ur(hn),AnyNull:new cr(hn)}};function Oi(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var Ys=": ",bn=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Ys.length}write(t){let r=new Pe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Ys).write(this.value)}};var ki=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function Ot(e){return new ki(Zs(e))}function Zs(e){let t=new At;for(let[r,n]of Object.entries(e)){let i=new bn(r,Xs(n));t.addField(i)}return t}function Xs(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(vt(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return Buffer.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=ln(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof Me?new W(`Prisma.${e._getName()}`):It(e)?new W(`prisma.${zs(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?zp(e):typeof e=="object"?Zs(e):new W(Object.prototype.toString.call(e))}function zp(e){let t=new St;for(let r of e)t.addItem(Xs(r));return t}function En(e,t){let r=t==="pretty"?Us:fn,n=e.renderAllMessages(r),i=new Rt(0,{colors:r}).write(e).toString();return{message:n,args:i}}function wn({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=Ot(e);for(let p of t)pn(p,a,s);let{message:l,args:u}=En(a,r),c=Tt({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new J(c,{clientVersion:o})}var ve=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};function pr(e){let t;return{get(){return t||(t={value:e()}),t.value}}}function Te(e){return e.replace(/^./,t=>t.toLowerCase())}function ta(e,t,r){let n=Te(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Yp({...e,...ea(t.name,e,t.result.$allModels),...ea(t.name,e,t.result[n])})}function Yp(e){let t=new ve,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return yt(e,n=>({...n,needs:r(n.name,new Set)}))}function ea(e,t,r){return r?yt(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Zp(t,o,i)})):{}}function Zp(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function ra(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function na(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var xn=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ve;this.modelExtensionsCache=new ve;this.queryCallbacksCache=new ve;this.clientExtensions=pr(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=pr(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>ta(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Te(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},kt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new xn(t))}isEmpty(){return this.head===void 0}append(t){return new e(new xn(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};var ia=Symbol(),dr=class{constructor(t){if(t!==ia)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Pn:t}},Pn=new dr(ia);function Re(e){return e instanceof dr}var Xp={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},oa="explicitly `undefined` values are not allowed";function vn({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=kt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c}){let p=new Di({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c});return{modelName:e,action:Xp[t],query:mr(r,p)}}function mr({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:aa(r,n),selection:ed(e,t,i,n)}}function ed(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),id(e,n)):td(n,t,r)}function td(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&rd(n,t,e),e.isPreviewFeatureOn("omitApi")&&nd(n,r,e),n}function rd(e,t,r){for(let[n,i]of Object.entries(t)){if(Re(i))continue;let o=r.nestSelection(n);if(_i(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=mr(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=mr(i,o)}}function nd(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=na(i,n);for(let[s,a]of Object.entries(o)){if(Re(a))continue;_i(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function id(e,t){let r={},n=t.getComputedFields(),i=ra(e,n);for(let[o,s]of Object.entries(i)){if(Re(s))continue;let a=t.nestSelection(o);_i(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Re(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=mr({},a):r[o]=!0;continue}r[o]=mr(s,a)}}return r}function sa(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(Pt(e)){if(ln(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(It(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return od(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:Buffer.from(e).toString("base64")};if(sd(e))return e.values;if(vt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Me){if(e!==yn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(ad(e))return e.toJSON();if(typeof e=="object")return aa(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function aa(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Re(i)||(i!==void 0?r[n]=sa(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:oa}))}return r}function od(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[xt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Fe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};var Dt=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};function la(e){return{models:Fi(e.models),enums:Fi(e.enums),types:Fi(e.types)}}function Fi(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function ua(e,t){let r=pr(()=>ld(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ld(e){return{datamodel:{models:Li(e.models),enums:Li(e.enums),types:Li(e.types)}}}function Li(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}var Ni=new WeakMap,Tn="$$PrismaTypedSql",Mi=class{constructor(t,r){Ni.set(this,{sql:t,values:r}),Object.defineProperty(this,Tn,{value:Tn})}get sql(){return Ni.get(this).sql}get values(){return Ni.get(this).values}};function ca(e){return(...t)=>new Mi(e,t)}function pa(e){return e!=null&&e[Tn]===Tn}function fr(e){return{ok:!1,error:e,map(){return fr(e)},flatMap(){return fr(e)}}}var $i=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},qi=e=>{let t=new $i,r=Ce(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ce(t,e.queryRaw.bind(e)),executeRaw:Ce(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>ud(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=pd(t,e.getConnectionInfo.bind(e))),n},ud=(e,t)=>{let r=Ce(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>cd(e,o))}},cd=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),commit:Ce(e,t.commit.bind(t)),rollback:Ce(e,t.rollback.bind(t))});function Ce(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return fr({kind:"GenericJs",id:i})}}}function pd(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return fr({kind:"GenericJs",id:i})}}}var Wl=k(oi());var Hl=require("async_hooks"),Kl=require("events"),zl=k(require("fs")),Fr=k(require("path"));var oe=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}var Rn={enumerable:!0,configurable:!0,writable:!0};function Cn(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Rn,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var fa=Symbol.for("nodejs.util.inspect.custom");function Se(e,t){let r=dd(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=ga(Reflect.ownKeys(o),r),a=ga(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Rn,...l?.getPropertyDescriptor(s)}:Rn:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[fa]=function(){let o={...this};return delete o[fa],o},i}function dd(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function ga(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}function _t(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}function Ft(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}function ha(e){if(e===void 0)return"";let t=Ot(e);return new Rt(0,{colors:fn}).write(t).toString()}var md="P2037";function st({error:e,user_facing_error:t},r,n){return t.error_code?new V(fd(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new B(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function fd(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===md&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}var hr="";function ya(e){var t=e.split(` -`);return t.reduce(function(r,n){var i=yd(n)||Ed(n)||Pd(n)||Cd(n)||Td(n);return i&&r.push(i),r},[])}var gd=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hd=/\((\S*)(?::(\d+))(?::(\d+))\)/;function yd(e){var t=gd.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=hd.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||hr,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var bd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Ed(e){var t=bd.exec(e);return t?{file:t[2],methodName:t[1]||hr,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var wd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,xd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Pd(e){var t=wd.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=xd.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||hr,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var vd=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Td(e){var t=vd.exec(e);return t?{file:t[3],methodName:t[1]||hr,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Rd=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Cd(e){var t=Rd.exec(e);return t?{file:t[2],methodName:t[1]||hr,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Bi=class{getLocation(){return null}},Ui=class{constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=ya(t).find(i=>{if(!i.file)return!1;let o=mi(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ze(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Bi:new Ui}var ba={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function Lt(e={}){let t=Ad(e);return Object.entries(t).reduce((n,[i,o])=>(ba[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Ad(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Sn(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Ea(e,t){let r=Sn(e);return t({action:"aggregate",unpacker:r,argsMapper:Lt})(e)}function Id(e={}){let{select:t,...r}=e;return typeof t=="object"?Lt({...r,_count:t}):Lt({...r,_count:{_all:!0}})}function Od(e={}){return typeof e.select=="object"?t=>Sn(e)(t)._count:t=>Sn(e)(t)._count._all}function wa(e,t){return t({action:"count",unpacker:Od(e),argsMapper:Id})(e)}function kd(e={}){let t=Lt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Dd(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function xa(e,t){return t({action:"groupBy",unpacker:Dd(e),argsMapper:kd})(e)}function Pa(e,t,r){if(t==="aggregate")return n=>Ea(n,r);if(t==="count")return n=>wa(n,r);if(t==="groupBy")return n=>xa(n,r)}function va(e,t){let r=t.fields.filter(i=>!i.relationName),n=wi(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new sr(e,o,s.type,s.isList,s.kind==="enum")},...Cn(Object.keys(n))})}var Ta=e=>Array.isArray(e)?e:e.split("."),Gi=(e,t)=>Ta(t).reduce((r,n)=>r&&r[n],e),Ra=(e,t,r)=>Ta(t).reduceRight((n,i,o,s)=>Object.assign({},Gi(e,s.slice(0,o)),{[i]:n}),r);function _d(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Fd(e,t,r){return t===void 0?e??{}:Ra(t,r,e||!0)}function Qi(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ze(e._errorFormat),c=_d(n,i),p=Fd(l,o,c),d=r({dataPath:c,callsite:u})(p),f=Ld(e,t);return new Proxy(d,{get(g,h){if(!f.includes(h))return g[h];let T=[a[h].type,r,h],S=[c,p];return Qi(e,...T,...S)},...Cn([...f,...Object.getOwnPropertyNames(d)])})}}function Ld(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}function Ca(e,t,r,n){return e===Je.ModelAction.findFirstOrThrow||e===Je.ModelAction.findUniqueOrThrow?Nd(t,r,n):n}function Nd(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=Tt({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new J(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof V&&o.code==="P2025"?new Le(`No ${e} found`,t):o})}}var Md=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],$d=["aggregate","count","groupBy"];function Ji(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[qd(e,t),Vd(e,t),gr(r),re("name",()=>t),re("$name",()=>t),re("$parent",()=>e._appliedParent)];return Se({},n)}function qd(e,t){let r=Te(t),n=Object.keys(Je.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=Ca(o,t,e._clientVersion,s);let a=l=>u=>{let c=Ze(e._errorFormat);return e._createPrismaPromise(p=>{let d={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:p,callsite:c};return s({...d,...l})})};return Md.includes(o)?Qi(e,t,a):jd(i)?Pa(e,i,a):a({})}}}function jd(e){return $d.includes(e)}function Vd(e,t){return ot(re("fields",()=>{let r=e._runtimeDataModel.models[t];return va(t,r)}))}function Sa(e){return e.replace(/^./,t=>t.toUpperCase())}var Wi=Symbol();function yr(e){let t=[Bd(e),re(Wi,()=>e),re("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(gr(r)),Se(e,t)}function Bd(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Te),n=[...new Set(t.concat(r))];return ot({getKeys(){return n},getPropertyValue(i){let o=Sa(i);if(e._runtimeDataModel.models[o]!==void 0)return Ji(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Ji(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Aa(e){return e[Wi]?e[Wi]:e}function Ia(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return yr(t)}function Oa({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(c=>n[c]);u.length>0&&a.push(_t(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(c=>!r[c]);u.length>0&&a.push(_t(u))}Ud(e,l.needs)&&s.push(Gd(l,Se(e,s)))}return s.length>0||a.length>0?Se(e,[...s,...a]):e}function Ud(e,t){return t.every(r=>Ei(e,r))}function Gd(e,t){return ot(re(e.name,()=>e.compute(t)))}function An({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sc.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=An({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function Da({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:An({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let c=Te(l);return Oa({result:a,modelName:c,select:u.select,omit:u.select?void 0:{...o?.[c],...u.omit},extensions:n})}})}function _a(e){if(e instanceof oe)return Qd(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:_a(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=qa(o,l),a.args=s,La(e,a,r,n+1)}})})}function Na(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return La(e,t,s)}function Ma(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?$a(r,n,0,e):e(r)}}function $a(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=qa(i,l),$a(a,t,r+1,n)}})}var Fa=e=>e;function qa(e=Fa,t=Fa){return r=>e(t(r))}var ja=L("prisma:client"),Va={Vercel:"vercel","Netlify CI":"netlify"};function Ba({postinstall:e,ciName:t,clientVersion:r}){if(ja("checkPlatformCaching:postinstall",e),ja("checkPlatformCaching:ciName",t),e===!0&&t&&t in Va){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Va[t]}-build`;throw console.error(n),new R(n,r)}}function Ua(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}var Jd="Cloudflare-Workers",Wd="node";function Ga(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Jd?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Wd?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Hd={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function In(){let e=Ga();return{id:e,prettyName:Hd[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var Ka=k(require("fs")),Er=k(require("path"));function On(e){let{runtimeBinaryTarget:t}=e;return`Add "${t}" to \`binaryTargets\` in the "schema.prisma" file and run \`prisma generate\` after saving it: - -${Kd(e)}`}function Kd(e){let{generator:t,generatorBinaryTargets:r,runtimeBinaryTarget:n}=e,i={fromEnvVar:null,value:n},o=[...r,i];return hi({...t,binaryTargets:o})}function Xe(e){let{runtimeBinaryTarget:t}=e;return`Prisma Client could not locate the Query Engine for runtime "${t}".`}function et(e){let{searchedLocations:t}=e;return`The following locations have been searched: -${[...new Set(t)].map(i=>` ${i}`).join(` -`)}`}function Qa(e){let{runtimeBinaryTarget:t}=e;return`${Xe(e)} - -This happened because \`binaryTargets\` have been pinned, but the actual deployment also required "${t}". -${On(e)} - -${et(e)}`}function kn(e){return`We would appreciate if you could take the time to share some information with us. -Please help us by answering a few questions: https://pris.ly/${e}`}function Dn(e){let{errorStack:t}=e;return t?.match(/\/\.next|\/next@|\/next\//)?` - -We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.`:""}function Ja(e){let{queryEngineName:t}=e;return`${Xe(e)}${Dn(e)} - -This is likely caused by a bundler that has not copied "${t}" next to the resulting bundle. -Ensure that "${t}" has been copied next to the bundle or in "${e.expectedLocation}". - -${kn("engine-not-found-bundler-investigation")} - -${et(e)}`}function Wa(e){let{runtimeBinaryTarget:t,generatorBinaryTargets:r}=e,n=r.find(i=>i.native);return`${Xe(e)} - -This happened because Prisma Client was generated for "${n?.value??"unknown"}", but the actual deployment required "${t}". -${On(e)} - -${et(e)}`}function Ha(e){let{queryEngineName:t}=e;return`${Xe(e)}${Dn(e)} - -This is likely caused by tooling that has not copied "${t}" to the deployment folder. -Ensure that you ran \`prisma generate\` and that "${t}" has been copied to "${e.expectedLocation}". - -${kn("engine-not-found-tooling-investigation")} - -${et(e)}`}var zd=L("prisma:client:engines:resolveEnginePath"),Yd=()=>new RegExp("runtime[\\\\/]library\\.m?js$");async function za(e,t){let r={binary:process.env.PRISMA_QUERY_ENGINE_BINARY,library:process.env.PRISMA_QUERY_ENGINE_LIBRARY}[e]??t.prismaPath;if(r!==void 0)return r;let{enginePath:n,searchedLocations:i}=await Zd(e,t);if(zd("enginePath",n),n!==void 0&&e==="binary"&&li(n),n!==void 0)return t.prismaPath=n;let o=await nt(),s=t.generator?.binaryTargets??[],a=s.some(d=>d.native),l=!s.some(d=>d.value===o),u=__filename.match(Yd())===null,c={searchedLocations:i,generatorBinaryTargets:s,generator:t.generator,runtimeBinaryTarget:o,queryEngineName:Ya(e,o),expectedLocation:Er.default.relative(process.cwd(),t.dirname),errorStack:new Error().stack},p;throw a&&l?p=Wa(c):l?p=Qa(c):u?p=Ja(c):p=Ha(c),new R(p,t.clientVersion)}async function Zd(engineType,config){let binaryTarget=await nt(),searchedLocations=[],dirname=eval("__dirname"),searchLocations=[config.dirname,Er.default.resolve(dirname,".."),config.generator?.output?.value??dirname,Er.default.resolve(dirname,"../../../.prisma/client"),"/tmp/prisma-engines",config.cwd];__filename.includes("resolveEnginePath")&&searchLocations.push(Yo());for(let e of searchLocations){let t=Ya(engineType,binaryTarget),r=Er.default.join(e,t);if(searchedLocations.push(e),Ka.default.existsSync(r))return{enginePath:r,searchedLocations}}return{enginePath:void 0,searchedLocations}}function Ya(e,t){return e==="library"?qr(t,"fs"):`query-engine-${t}${t==="windows"?".exe":""}`}var Hi=k(bi());function Za(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}function Xa(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}var el=k(hs());function tl({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,el.default)({user:t,repo:r,template:n,title:e,body:i})}function rl({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=So(6e3-(s?.length??0)),l=Xa((0,Hi.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",c=(0,Hi.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${process.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?Za(s):""} -\`\`\` -`),p=tl({title:r,body:c});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${X(p)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}function Nt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var _n=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends _n{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Mt=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Mt,"ForcedRetryError");var at=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(at,"InvalidDatasourceError");var lt=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(lt,"NotImplementedYetError");var q=class extends se{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var ut=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(ut,"SchemaMissingError");var Ki="This request could not be understood by the server",wr=class extends q{constructor(r,n,i){super(n||Ki,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(wr,"BadRequestError");var xr=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(xr,"HealthcheckTimeoutError");var Pr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(Pr,"EngineStartupError");var vr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(vr,"EngineVersionNotSupportedError");var zi="Request timed out",Tr=class extends q{constructor(r,n=zi){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(Tr,"GatewayTimeoutError");var Xd="Interactive transaction error",Rr=class extends q{constructor(r,n=Xd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Rr,"InteractiveTransactionError");var em="Request parameters are invalid",Cr=class extends q{constructor(r,n=em){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(Cr,"InvalidRequestError");var Yi="Requested resource does not exist",Sr=class extends q{constructor(r,n=Yi){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};w(Sr,"NotFoundError");var Zi="Unknown server error",$t=class extends q{constructor(r,n,i){super(n||Zi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w($t,"ServerError");var Xi="Unauthorized, check your connection string",Ar=class extends q{constructor(r,n=Xi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Ar,"UnauthorizedError");var eo="Usage exceeded, retry again later",Ir=class extends q{constructor(r,n=eo){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(Ir,"UsageExceededError");async function tm(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Or(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await tm(e);if(n.type==="QueryEngineError")throw new V(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new $t(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new ut(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new vr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Pr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new xr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Rr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Cr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Ar(r,qt(Xi,n));if(e.status===404)return new Sr(r,qt(Yi,n));if(e.status===429)throw new Ir(r,qt(eo,n));if(e.status===504)throw new Tr(r,qt(zi,n));if(e.status>=500)throw new $t(r,qt(Zi,n));if(e.status>=400)throw new wr(r,qt(Ki,n))}function qt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function nl(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function il(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=$e[s]+$e[a]+$e[l]+$e[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=$e[s]+$e[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=$e[s]+$e[a]+$e[l]+"="),r}function ol(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}function rm(e){return e[0]*1e3+e[1]/1e6}function sl(e){return new Date(rm(e))}var al={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var kr=class extends se{constructor(r,n){super(`Cannot fetch data from service: -${r}`,A(n,!0));this.name="RequestError";this.code="P5010"}};w(kr,"RequestError");async function ct(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(to)(e,t)}catch(i){let o=i.message??"Unknown error";throw new kr(o,{clientVersion:n})}}function im(e){return{...e.headers,"Content-Type":"application/json"}}function om(e){return{method:e.method,headers:im(e)}}function sm(e,t){return{text:()=>Promise.resolve(Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new ro(t.headers)}}async function to(e,t={}){let r=am("https"),n=om(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:c,headers:{location:p}}=u;c>=301&&c<=399&&p&&(p.startsWith("http")===!1?s(to(`${o}${p}`,t)):s(to(p,t))),u.on("data",d=>i.push(d)),u.on("end",()=>s(sm(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var am=typeof require<"u"?require:()=>{},ro=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var lm=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,ll=L("prisma:client:dataproxyEngine");async function um(e,t){let r=al["@prisma/engines-version"],n=t.clientVersion??"unknown";if(process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&lm.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),c=cm(`<=${a}.${l}.${u}`),p=await ct(c,{clientVersion:n});if(!p.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${p.status} ${p.statusText}, response body: ${await p.text()||""}`);let d=await p.text();ll("length of body fetched from unpkg.com",d.length);let f;try{f=JSON.parse(d)}catch(g){throw console.error("JSON.parse error: body fetched from unpkg.com: ",d),g}return f.version}throw new lt("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function ul(e,t){let r=await um(e,t);return ll("version",r),r}function cm(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var cl=3,no=L("prisma:client:dataproxyEngine"),io=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},Dr=class{constructor(t){this.name="DataProxyEngine";ol(t),this.config=t,this.env={...t.env,...typeof process<"u"?process.env:{}},this.inlineSchema=il(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new io({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await ul(t,this.config),no("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:sl(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await ct(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||no("schema response status",r.status);let n=await Or(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Ft(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?st(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||no("graphql response status",a.status),await this.handleError(await Or(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?st(l.errors[0],this.config.clientVersion,this.config.activeProvider):new B(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await ct(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Or(l,this.clientVersion));let u=await l.json(),c=u.extensions;c&&this.propagateResponseExtensions(c);let p=u.id,d=u["data-proxy"].endpoint;return{id:p,payload:{endpoint:d}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Or(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=Nt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new at(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new lt("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=cl)throw i instanceof Mt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${cl} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await nl(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof ut)throw await this.uploadSchema(),new Mt({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function pl(e){if(e?.kind==="itx")return e.options.id}var so=k(require("os")),dl=k(require("path"));var oo=Symbol("PrismaLibraryEngineCache");function pm(){let e=globalThis;return e[oo]===void 0&&(e[oo]={}),e[oo]}function dm(e){let t=pm();if(t[e]!==void 0)return t[e];let r=dl.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=so.default.constants.dlopen.RTLD_LAZY|so.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,r,i),t[e]=n.exports,n.exports}var ml={async loadLibrary(e){let t=await Yn(),r=await za("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>dm(r))}catch(n){let i=ui({e:n,platformInfo:t,id:r});throw new R(i,e.clientVersion)}}};var ao,fl={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new R(`The \`adapter\` option for \`PrismaClient\` is required in this context (${In().prettyName})`,t);if(n===void 0)throw new R("WASM engine was unexpectedly `undefined`",t);ao===void 0&&(ao=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new R("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},l=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(l.exports),o.QueryEngine})());let i=await ao;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var mm="P2036",Ae=L("prisma:client:libraryEngine");function fm(e){return e.item_type==="query"&&"query"in e}function gm(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var gl=[...Jn,"native"],_r=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??ml,t.engineWasm!==void 0&&(this.libraryLoader=r??fl),this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(hm(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new V(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Ae("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;Qn(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let t=await nt();if(!gl.includes(t))throw new R(`Unknown ${ce("PRISMA_QUERY_ENGINE_LIBRARY")} ${ce(H(t))}. Possible binaryTargets: ${qe(gl.join(", "))} or a path to the query engine library. -You may have to run ${qe("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return t}}parseEngineResponse(t){if(!t)throw new B("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new B("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new WeakRef(this),{adapter:r}=this.config;r&&Ae("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",fm(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):gm(r)?this.loggerRustPanic=new le(lo(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Ae(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Ae("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Ae("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ae("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Ae("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Ae("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Ae(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof R)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new le(lo(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new B(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Ae("requestBatch");let i=Ft(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),pl(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u,elapsed:0});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new le(lo(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:st(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===mm&&this.config.adapter){let r=t.meta?.id;Yr(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return Yr(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function hm(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function lo(e,t){return rl({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function hl({copyEngine:e=!0},t){let r;try{r=Nt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...process.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&tr("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Yt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new J(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new Dr(t);if(a)return new _r(t);throw new J("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}function Fn({generator:e}){return e?.previewFeatures??[]}var yl=e=>({command:e});var bl=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);function jt(e){try{return El(e,"fast")}catch{return El(e,"slow")}}function El(e,t){return JSON.stringify(e.map(r=>xl(r,t)))}function xl(e,t){return Array.isArray(e)?e.map(r=>xl(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:Pt(e)?{prisma__type:"date",prisma__value:e.toJSON()}:xe.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:ym(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Pl(e):e}function ym(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Pl(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(wl);let t={};for(let r of Object.keys(e))t[r]=wl(e[r]);return t}function wl(e){return typeof e=="bigint"?e.toString():Pl(e)}var bm=["$connect","$disconnect","$on","$transaction","$use","$extends"],vl=bm;var Em=/^(\s*alter\s)/i,Tl=L("prisma:client");function uo(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Em.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var co=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(pa(r))n=r.sql,i={values:jt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:jt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:jt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:jt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=bl(r),i={values:jt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Tl(`prisma.${e}(${n}, ${i.values})`):Tl(`prisma.${e}(${n})`),{query:n,parameters:i}},Rl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},Cl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function po(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Sl(r(o)):Sl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Sl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Al={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},mo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Al}};function Il(e){return e.includes("tracing")?new mo:Al}function Ol(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function kl(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var Ln=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Fl=k(bi());function Nn(e){return typeof e.batchRequestIdx=="number"}function Dl(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(fo(e.query.arguments)),t.push(fo(e.query.selection)),t.join("")}function fo(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${fo(n)})`:r}).join(" ")})`}var wm={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function go(e){return wm[e]}var Mn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ipt("bigint",r));case"bytes-array":return t.map(r=>pt("bytes",r));case"decimal-array":return t.map(r=>pt("decimal",r));case"datetime-array":return t.map(r=>pt("datetime",r));case"date-array":return t.map(r=>pt("date",r));case"time-array":return t.map(r=>pt("time",r));default:return t}}function _l(e){let t=[],r=xm(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>go(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:vm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Ll(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:go(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Dl(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Pm(t),Tm(t,i)||t instanceof Le)throw t;if(t instanceof V&&Rm(t)){let u=Nl(t.meta);wn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Tt({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new V(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Fl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Gi(o,s),l=i==="queryRaw"?_l(a):wt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function vm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Ll(e)};Fe(e,"Unknown transaction kind")}}function Ll(e){return{id:e.id,payload:e.payload}}function Tm(e,t){return Nn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Rm(e){return e.code==="P2009"||e.code==="P2012"}function Nl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Nl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Ml="5.22.0";var $l=Ml;var Ul=k(Ai());var F=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};w(F,"PrismaClientConstructorValidationError");var ql=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],jl=["pretty","colorless","minimal"],Vl=["info","query","warn","error"],Sm={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=Vt(r,t)||` Available datasources: ${t.join(", ")}`;throw new F(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new F(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new F('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Fn(t).includes("driverAdapters"))throw new F('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Yt()==="binary")throw new F('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!jl.includes(e)){let t=Vt(e,jl);throw new F(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Vl.includes(r)){let n=Vt(r,Vl);throw new F(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Vt(i,o);throw new F(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new F(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new F(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new F(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new F('"omit" option is expected to be an object.');if(e===null)throw new F('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Im(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new F(Om(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new F(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=Vt(r,t);throw new F(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function Gl(e,t){for(let[r,n]of Object.entries(e)){if(!ql.includes(r)){let i=Vt(r,ql);throw new F(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Sm[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new F('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Vt(e,t){if(t.length===0||typeof e!="string")return"";let r=Am(e,t);return r?` Did you mean "${r}"?`:""}function Am(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Ul.default)(e,i)}));r.sort((i,o)=>i.distancext(n)===t);if(r)return e[r]}function Om(e,t){let r=Ot(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=En(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}function Ql(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=c,a()},c=>{if(!Nn(c)){l(c);return}c.batchRequestIdx===u?l(c):(i||(i=c),a())})})}var tt=L("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var km={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Dm=Symbol.for("prisma.client.transaction.id"),_m={id:0,nextId(){return++this.id}};function Yl(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Ln;this._createPrismaPromise=po();this.$extends=Ia;e=n?.__internal?.configOverride?.(e)??e,Ba(e),n&&Gl(n,e);let i=new Kl.EventEmitter().on("error",()=>{});this._extensions=kt.empty(),this._previewFeatures=Fn(e),this._clientVersion=e.clientVersion??$l,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Il(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&Fr.default.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&Fr.default.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=qi(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new R(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new R("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=!s&&zt(o,{conflictCheck:"none"})||e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},c=u.debug===!0;c&&L.enable("prisma:client");let p=Fr.default.resolve(e.dirname,e.relativePath);zl.default.existsSync(p)||(p=e.dirname),tt("dirname",e.dirname),tt("relativePath",e.relativePath),tt("cwd",p);let d=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:process.env.NODE_ENV==="production"?this._errorFormat="minimal":process.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:p,dirname:e.dirname,enableDebugLogs:c,allowTriggerPanic:d.allowTriggerPanic,datamodelPath:Fr.default.join(e.dirname,e.filename??"schema.prisma"),prismaPath:d.binaryPath??void 0,engineEndpoint:d.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&kl(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(f=>typeof f=="string"?f==="query":f.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Ua(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Nt,getBatchRequestPayload:Ft,prismaGraphQLToJSError:st,PrismaClientUnknownRequestError:B,PrismaClientInitializationError:R,PrismaClientKnownRequestError:V,debug:L("prisma:client:accelerateEngine"),engineVersion:Wl.version,clientVersion:e.clientVersion}},tt("clientVersion",e.clientVersion),this._engine=hl(e,this._engineConfig),this._requestHandler=new $n(this,i),l.log)for(let f of l.log){let g=typeof f=="string"?f:f.emit==="stdout"?f.level:null;g&&this.$on(g,h=>{er.log(`${er.tags[g]??""}`,h.message||h.query)})}this._metrics=new Dt(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=yr(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ao()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=Jl(n,i);return uo(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new J("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(uo(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new J(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:yl,callsite:Ze(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...Jl(n,i));throw new J("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new J("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=_m.nextId(),s=Ol(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let c=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,p={kind:"batch",id:o,index:u,isolationLevel:c,lock:s};return l.requestTransaction?.(p)??l});return Ql(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return yr(Se(Aa(this),[re("_appliedParent",()=>this._appliedParent._createItxClient(n)),re("_createPrismaPromise",()=>po(n)),re(Dm,()=>n.id),_t(vl)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??km,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let c=this._middlewares.get(++a);if(c)return this._tracingHelper.runInChildSpan(s.middleware,O=>c(u,T=>(O?.end(),l(T))));let{runInTransaction:p,args:d,...f}=u,g={...n,...f};d&&(g.args=i.middlewareArgsToRequestArgs(d)),n.transaction!==void 0&&p===!1&&delete g.transaction;let h=await Na(this,g);return g.model?Da({result:h,modelName:g.model,args:g.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):h};return this._tracingHelper.runInChildSpan(s.operation,()=>new Hl.AsyncResource("prisma-client-request").runInAsyncScope(()=>l(o)))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:c,unpacker:p,otelParentCtx:d,customDataProxyFetch:f}){try{n=u?u(n):n;let g={name:"serialize"},h=this._tracingHelper.runInChildSpan(g,()=>vn({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return L.enabled("prisma:client")&&(tt("Prisma Client call:"),tt(`prisma.${i}(${ha(n)})`),tt("Generated request:"),tt(JSON.stringify(h,null,2)+` -`)),c?.kind==="batch"&&await c.lock,this._requestHandler.request({protocolQuery:h,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:c,unpacker:p,otelParentCtx:d,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:f})}catch(g){throw g.clientVersion=this._clientVersion,g}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new J("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function Jl(e,t){return Fm(e)?[new oe(e,t),Rl]:[e,Cl]}function Fm(e){return Array.isArray(e)&&Array.isArray(e.raw)}var Lm=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Zl(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Lm.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}function Xl(e){zt(e,{conflictCheck:"warn"})}0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -/*! Bundled license information: - -decimal.js/decimal.mjs: - (*! - * decimal.js v10.4.3 - * An arbitrary-precision Decimal type for JavaScript. - * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2022 Michael Mclaughlin - * MIT Licence - *) -*/ -//# sourceMappingURL=library.js.map diff --git a/keep-notes/prisma/client-generated/runtime/react-native.js b/keep-notes/prisma/client-generated/runtime/react-native.js deleted file mode 100644 index e542e40..0000000 --- a/keep-notes/prisma/client-generated/runtime/react-native.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict";var aa=Object.create;var tr=Object.defineProperty;var la=Object.getOwnPropertyDescriptor;var ua=Object.getOwnPropertyNames;var ca=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(e,t)=>{for(var r in t)tr(e,r,{get:t[r],enumerable:!0})},Hn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ua(t))!pa.call(e,i)&&i!==r&&tr(e,i,{get:()=>t[i],enumerable:!(n=la(t,i))||n.enumerable});return e};var he=(e,t,r)=>(r=e!=null?aa(ca(e)):{},Hn(t||!e||!e.__esModule?tr(r,"default",{value:e,enumerable:!0}):r,e)),da=e=>Hn(tr({},"__esModule",{value:!0}),e);var y,c=Le(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var x,p=Le(()=>{"use strict";x=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Le(()=>{"use strict";E=()=>{};E.prototype=E});var b,f=Le(()=>{"use strict";b=class{constructor(t){this.value=t}deref(){return this.value}}});var mi=ge(tt=>{"use strict";m();c();p();d();f();var ei=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fa=ei(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var F=C.indexOf("=");F===-1&&(F=A);var _=F===A?0:4-F%4;return[F,_]}function l(C){var A=a(C),F=A[0],_=A[1];return(F+_)*3/4-_}function u(C,A,F){return(A+F)*3/4-F}function g(C){var A,F=a(C),_=F[0],N=F[1],M=new n(u(C,_,N)),O=0,Y=N>0?_-4:_,q;for(q=0;q>16&255,M[O++]=A>>8&255,M[O++]=A&255;return N===2&&(A=r[C.charCodeAt(q)]<<2|r[C.charCodeAt(q+1)]>>4,M[O++]=A&255),N===1&&(A=r[C.charCodeAt(q)]<<10|r[C.charCodeAt(q+1)]<<4|r[C.charCodeAt(q+2)]>>2,M[O++]=A>>8&255,M[O++]=A&255),M}function h(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function P(C,A,F){for(var _,N=[],M=A;MY?Y:O+M));return _===1?(A=C[F-1],N.push(t[A>>2]+t[A<<4&63]+"==")):_===2&&(A=(C[F-2]<<8)+C[F-1],N.push(t[A>>10]+t[A>>4&63]+t[A<<2&63]+"=")),N.join("")}}),ma=ei(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,P=n?o-1:0,S=n?-1:1,C=t[r+P];for(P+=S,s=C&(1<<-h)-1,C>>=-h,h+=l;h>0;s=s*256+t[r+P],P+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+P],P+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(C?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:s-1,A=i?1:-1,F=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+P>=1?r+=S/u:r+=S*Math.pow(2,1-P),r*u>=2&&(a++,u/=2),a+P>=h?(l=0,a=h):a+P>=1?(l=(r*u-1)*Math.pow(2,o),a=a+P):(l=r*Math.pow(2,P-1)*Math.pow(2,o),a=0));o>=8;t[n+C]=l&255,C+=A,l/=256,o-=8);for(a=a<0;t[n+C]=a&255,C+=A,a/=256,g-=8);t[n+C-A]|=F*128}}),Gr=fa(),Xe=ma(),zn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;tt.Buffer=T;tt.SlowBuffer=Ea;tt.INSPECT_MAX_BYTES=50;var rr=2147483647;tt.kMaxLength=rr;T.TYPED_ARRAY_SUPPORT=ga();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ga(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function Oe(e){if(e>rr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Hr(e)}return ti(e,t,r)}T.poolSize=8192;function ti(e,t,r){if(typeof e=="string")return ya(e,t);if(ArrayBuffer.isView(e))return wa(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ye(e,ArrayBuffer)||e&&ye(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(e,SharedArrayBuffer)||e&&ye(e.buffer,SharedArrayBuffer)))return ni(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=ba(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return ti(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ri(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ha(e,t,r){return ri(e),e<=0?Oe(e):t!==void 0?typeof r=="string"?Oe(e).fill(t,r):Oe(e).fill(t):Oe(e)}T.alloc=function(e,t,r){return ha(e,t,r)};function Hr(e){return ri(e),Oe(e<0?0:zr(e)|0)}T.allocUnsafe=function(e){return Hr(e)};T.allocUnsafeSlow=function(e){return Hr(e)};function ya(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ii(e,t)|0,n=Oe(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Wr(e){let t=e.length<0?0:zr(e.length)|0,r=Oe(t);for(let n=0;n=rr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rr.toString(16)+" bytes");return e|0}function Ea(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(ye(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),ye(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ii(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ye(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Kr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return fi(e).length;default:if(i)return n?-1:Kr(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=ii;function xa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Fa(this,t,r);case"utf8":case"utf-8":return si(this,t,r);case"ascii":return Oa(this,t,r);case"latin1":case"binary":return ka(this,t,r);case"base64":return Ra(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ma(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Je(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};zn&&(T.prototype[zn]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(ye(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Zr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:Yn(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Yn(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Yn(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return va(this,e,t,r);case"utf8":case"utf-8":return Pa(this,e,t,r);case"ascii":case"latin1":case"binary":return Ta(this,e,t,r);case"base64":return Ca(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aa(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ra(e,t,r){return t===0&&r===e.length?Gr.fromByteArray(e):Gr.fromByteArray(e.slice(t,r))}function si(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Sa(n)}var Zn=4096;function Sa(e){let t=e.length;if(t<=Zn)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||G(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||G(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||G(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||G(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Ne(function(e){e=e>>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||G(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||G(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||G(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||G(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Ne(function(e){e=e>>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||G(e,4,this.length),Xe.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||G(e,4,this.length),Xe.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||G(e,8,this.length),Xe.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||G(e,8,this.length),Xe.read(this,e,!1,52,8)};function oe(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;oe(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;oe(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ai(e,t,r,n,i){di(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function li(e,t,r,n,i){di(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Ne(function(e,t=0){return ai(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Ne(function(e,t=0){return li(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);oe(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);oe(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Ne(function(e,t=0){return ai(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Ne(function(e,t=0){return li(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ui(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ci(e,t,r,n,i){return t=+t,r=r>>>0,i||ui(e,t,r,4,34028234663852886e22,-34028234663852886e22),Xe.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return ci(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return ci(this,e,t,!1,r)};function pi(e,t,r,n,i){return t=+t,r=r>>>0,i||ui(e,t,r,8,17976931348623157e292,-17976931348623157e292),Xe.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return pi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return pi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=Xn(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Xn(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function Xn(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ia(e,t,r){et(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Tt(t,e.length-(r+1))}function di(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Ze.ERR_OUT_OF_RANGE("value",a,e)}Ia(n,i,o)}function et(e,t){if(typeof e!="number")throw new Ze.ERR_INVALID_ARG_TYPE(t,"number",e)}function Tt(e,t,r){throw Math.floor(e)!==e?(et(e,r),new Ze.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Ze.ERR_BUFFER_OUT_OF_BOUNDS:new Ze.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var _a=/[^+/0-9A-Za-z-_]/g;function La(e){if(e=e.split("=")[0],e=e.trim().replace(_a,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Kr(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Na(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function fi(e){return Gr.toByteArray(La(e))}function nr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ye(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Zr(e){return e!==e}var $a=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Ne(e){return typeof BigInt>"u"?Ba:e}function Ba(){throw new Error("BigInt not supported")}});var w,m=Le(()=>{"use strict";w=he(mi())});function ja(){return!1}var qa,Ua,ir,tn=Le(()=>{"use strict";m();c();p();d();f();qa={},Ua={existsSync:ja,promises:qa},ir=Ua});function cl(...e){return e.join("/")}function pl(...e){return e.join("/")}var Ri,dl,fl,we,an=Le(()=>{"use strict";m();c();p();d();f();Ri="/",dl={sep:Ri},fl={resolve:cl,posix:dl,join:pl,sep:Ri},we=fl});var ki=ge((nf,Oi)=>{"use strict";m();c();p();d();f();Oi.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Mi=ge((cf,Fi)=>{"use strict";m();c();p();d();f();var gl=ki();Fi.exports=e=>{let t=gl(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var sr,Ii=Le(()=>{"use strict";m();c();p();d();f();sr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Li=ge((Vf,_i)=>{"use strict";m();c();p();d();f();_i.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var $i=ge((tm,Di)=>{"use strict";m();c();p();d();f();Di.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var cn=ge((am,Bi)=>{"use strict";m();c();p();d();f();var El=$i();Bi.exports=e=>typeof e=="string"?e.replace(El(),""):e});var ji=ge((Cm,lr)=>{"use strict";m();c();p();d();f();lr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};lr.exports.default=lr.exports});var En=ge((Xy,lo)=>{"use strict";m();c();p();d();f();lo.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{gc.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var $o=ge(()=>{"use strict";m();c();p();d();f()});var vp={};Pt(vp,{Debug:()=>on,Decimal:()=>Ee,Extensions:()=>Xr,MetricsClient:()=>yt,NotFoundError:()=>Me,PrismaClientInitializationError:()=>V,PrismaClientKnownRequestError:()=>W,PrismaClientRustPanicError:()=>ue,PrismaClientUnknownRequestError:()=>K,PrismaClientValidationError:()=>H,Public:()=>en,Sql:()=>ae,defineDmmfProperty:()=>_o,deserializeJsonResponse:()=>ot,dmmfToRuntimeDataModel:()=>Io,empty:()=>jo,getPrismaClient:()=>ia,getRuntime:()=>ws,join:()=>Bo,makeStrictEnum:()=>oa,makeTypedQueryFactory:()=>Lo,objectEnumValues:()=>Cr,raw:()=>Mn,serializeJsonQuery:()=>Fr,skip:()=>kr,sqltag:()=>In,warnEnvConflicts:()=>void 0,warnOnce:()=>Lt});module.exports=da(vp);m();c();p();d();f();var Xr={};Pt(Xr,{defineExtension:()=>gi,getExtensionContext:()=>hi});m();c();p();d();f();m();c();p();d();f();function gi(e){return typeof e=="function"?e:t=>t.$extends(e)}m();c();p();d();f();function hi(e){return e}var en={};Pt(en,{validator:()=>yi});m();c();p();d();f();m();c();p();d();f();function yi(...e){return t=>t}m();c();p();d();f();m();c();p();d();f();var or={};Pt(or,{$:()=>vi,bgBlack:()=>Za,bgBlue:()=>rl,bgCyan:()=>il,bgGreen:()=>el,bgMagenta:()=>nl,bgRed:()=>Xa,bgWhite:()=>ol,bgYellow:()=>tl,black:()=>Ka,blue:()=>We,bold:()=>pe,cyan:()=>ke,dim:()=>Ct,gray:()=>Ot,green:()=>Rt,grey:()=>Ya,hidden:()=>Ga,inverse:()=>Ja,italic:()=>Qa,magenta:()=>Ha,red:()=>Ge,reset:()=>Va,strikethrough:()=>Wa,underline:()=>At,white:()=>za,yellow:()=>St});m();c();p();d();f();var rn,wi,bi,Ei,xi=!0;typeof y<"u"&&({FORCE_COLOR:rn,NODE_DISABLE_COLORS:wi,NO_COLOR:bi,TERM:Ei}=y.env||{},xi=y.stdout&&y.stdout.isTTY);var vi={enabled:!wi&&bi==null&&Ei!=="dumb"&&(rn!=null&&rn!=="0"||xi)};function U(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!vi.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Va=U(0,0),pe=U(1,22),Ct=U(2,22),Qa=U(3,23),At=U(4,24),Ja=U(7,27),Ga=U(8,28),Wa=U(9,29),Ka=U(30,39),Ge=U(31,39),Rt=U(32,39),St=U(33,39),We=U(34,39),Ha=U(35,39),ke=U(36,39),za=U(37,39),Ot=U(90,39),Ya=U(90,39),Za=U(40,49),Xa=U(41,49),el=U(42,49),tl=U(43,49),rl=U(44,49),nl=U(45,49),il=U(46,49),ol=U(47,49);m();c();p();d();f();var sl=100,Pi=["green","yellow","blue","magenta","cyan","red"],kt=[],Ti=Date.now(),al=0,nn=typeof y<"u"?y.env:{};globalThis.DEBUG??=nn.DEBUG??"";globalThis.DEBUG_COLORS??=nn.DEBUG_COLORS?nn.DEBUG_COLORS==="true":!0;var Ft={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function ll(e){let t={color:Pi[al++%Pi.length],enabled:Ft.enabled(e),namespace:e,log:Ft.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&kt.push([o,...n]),kt.length>sl&&kt.shift(),Ft.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:ul(g)),u=`+${Date.now()-Ti}ms`;Ti=Date.now(),globalThis.DEBUG_COLORS?a(or[s](pe(o)),...l,or[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var on=new Proxy(ll,{get:(e,t)=>Ft[t],set:(e,t,r)=>Ft[t]=r});function ul(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Ci(e=7500){let t=kt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.length{let e;(O=>(O.findUnique="findUnique",O.findUniqueOrThrow="findUniqueOrThrow",O.findFirst="findFirst",O.findFirstOrThrow="findFirstOrThrow",O.findMany="findMany",O.create="create",O.createMany="createMany",O.createManyAndReturn="createManyAndReturn",O.update="update",O.updateMany="updateMany",O.upsert="upsert",O.delete="delete",O.deleteMany="deleteMany",O.groupBy="groupBy",O.count="count",O.aggregate="aggregate",O.findRaw="findRaw",O.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(De||={});m();c();p();d();f();an();function ln(e){return we.sep===we.posix.sep?e:e.split(we.sep).join(we.posix.sep)}var _t={};Pt(_t,{error:()=>wl,info:()=>yl,log:()=>hl,query:()=>bl,should:()=>Ni,tags:()=>It,warn:()=>un});m();c();p();d();f();var It={error:Ge("prisma:error"),warn:St("prisma:warn"),info:ke("prisma:info"),query:We("prisma:query")},Ni={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function hl(...e){console.log(...e)}function un(e,...t){Ni.warn()&&console.warn(`${It.warn} ${e}`,...t)}function yl(e,...t){console.info(`${It.info} ${e}`,...t)}function wl(e,...t){console.error(`${It.error} ${e}`,...t)}function bl(e,...t){console.log(`${It.query} ${e}`,...t)}m();c();p();d();f();function ar(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}m();c();p();d();f();function Fe(e,t){throw new Error(t)}m();c();p();d();f();function pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}m();c();p();d();f();var dn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});m();c();p();d();f();function rt(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}m();c();p();d();f();function fn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{qi.has(e)||(qi.add(e),un(t,...r))};m();c();p();d();f();var W=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};re(W,"PrismaClientKnownRequestError");var Me=class extends W{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};re(Me,"NotFoundError");m();c();p();d();f();var V=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};re(V,"PrismaClientInitializationError");m();c();p();d();f();var ue=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};re(ue,"PrismaClientRustPanicError");m();c();p();d();f();var K=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};re(K,"PrismaClientUnknownRequestError");m();c();p();d();f();var H=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};re(H,"PrismaClientValidationError");m();c();p();d();f();m();c();p();d();f();var nt=9e15,qe=1e9,mn="0123456789abcdef",cr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",pr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",gn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-nt,maxE:nt,crypto:!1},Gi,Ie,L=!0,fr="[DecimalError] ",je=fr+"Invalid argument: ",Wi=fr+"Precision limit exceeded",Ki=fr+"crypto unavailable",Hi="[object Decimal]",te=Math.floor,J=Math.pow,xl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,vl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Pl=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,zi=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fe=1e7,I=7,Tl=9007199254740991,Cl=cr.length-1,hn=pr.length-1,R={toStringTag:Hi};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),k(e)};R.ceil=function(){return k(new this.constructor(this),this.e+1,2)};R.clampedTo=R.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(je+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};R.comparedTo=R.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};R.cosine=R.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+I,n.rounding=1,r=Al(n,to(n,r)),n.precision=e,n.rounding=t,k(Ie==2||Ie==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};R.cubeRoot=R.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(L=!1,o=g.s*J(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Z(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=J(r,1/3),e=te((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=j(u.plus(g).times(a),u.plus(l),s+2,1),Z(a.d).slice(0,s)===(r=Z(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(k(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(k(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return L=!0,k(n,e,h.rounding,t)};R.decimalPlaces=R.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-te(this.e/I))*I,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};R.dividedBy=R.div=function(e){return j(this,new this.constructor(e))};R.dividedToIntegerBy=R.divToInt=function(e){var t=this,r=t.constructor;return k(j(t,new r(e),0,1,1),r.precision,r.rounding)};R.equals=R.eq=function(e){return this.cmp(e)===0};R.floor=function(){return k(new this.constructor(this),this.e+1,3)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){var t=this.cmp(e);return t==1||t===0};R.hyperbolicCosine=R.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/gr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=it(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return k(o,s.precision=r,s.rounding=n,!0)};R.hyperbolicSine=R.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=it(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/gr(5,e)),i=it(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,k(i,t,r,!0)};R.hyperbolicTangent=R.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,j(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};R.inverseCosine=R.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?de(r,i,o):new r(0):new r(NaN):t.isZero()?de(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=de(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};R.inverseHyperbolicCosine=R.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,L=!1,r=r.times(r).minus(1).sqrt().plus(r),L=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};R.inverseHyperbolicSine=R.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,L=!1,r=r.times(r).plus(1).sqrt().plus(r),L=!0,n.precision=e,n.rounding=t,r.ln())};R.inverseHyperbolicTangent=R.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?k(new o(i),e,t,!0):(o.precision=r=n-i.e,i=j(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};R.inverseSine=R.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=de(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};R.inverseTangent=R.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,P=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=hn)return s=de(g,h+4,P).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=hn)return s=de(g,h+4,P).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/I+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(L=!1,t=Math.ceil(a/I),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};R.isNaN=function(){return!this.s};R.isNegative=R.isNeg=function(){return this.s<0};R.isPositive=R.isPos=function(){return this.s>0};R.isZero=function(){return!!this.d&&this.d[0]===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,P=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(L=!1,a=h+S,s=Be(u,a),n=t?dr(g,a+10):Be(e,a),l=j(s,n,a,1),Nt(l.d,i=h,P))do if(a+=10,s=Be(u,a),n=t?dr(g,a+10):Be(e,a),l=j(s,n,a,1),!o){+Z(l.d).slice(i+1,i+15)+1==1e14&&(l=k(l,h+1,0));break}while(Nt(l.d,i+=10,P));return L=!0,k(l,h,P)};R.minus=R.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,P,S=this,C=S.constructor;if(e=new C(e),!S.d||!e.d)return!S.s||!e.s?e=new C(NaN):S.d?e.s=-e.s:e=new C(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,P=e.d,a=C.precision,l=C.rounding,!u[0]||!P[0]){if(P[0])e.s=-e.s;else if(u[0])e=new C(S);else return new C(l===3?-0:0);return L?k(e,a,l):e}if(r=te(e.e/I),g=te(S.e/I),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=P.length):(t=P,r=g,s=u.length),n=Math.max(Math.ceil(a/I),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=P.length,h=n0;--n)u[s++]=0;for(n=P.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/fe|0,u[i]%=fe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=mr(u,n),L?k(e,a,l):e};R.precision=R.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(je+e);return r.d?(t=Yi(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};R.round=function(){var e=this,t=e.constructor;return k(new t(e),e.e+1,t.rounding)};R.sine=R.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+I,n.rounding=1,r=Sl(n,to(n,r)),n.precision=e,n.rounding=t,k(Ie>2?r.neg():r,e,t,!0)):new n(NaN)};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(L=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Z(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=te((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(j(s,o,r+2,1)).times(.5),Z(o.d).slice(0,r)===(t=Z(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(k(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(k(n,l+1,1),e=!n.times(n).eq(s));break}return L=!0,k(n,l,g.rounding,e)};R.tangent=R.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=j(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,k(Ie==2||Ie==4?r.neg():r,e,t,!0)):new n(NaN)};R.times=R.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,P=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!P||!P[0]||!S||!S[0])return new h(!e.s||P&&!P[0]&&!S||S&&!S[0]&&!P?NaN:!P||!S?e.s/0:e.s*0);for(r=te(g.e/I)+te(e.e/I),l=P.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*P[i-n-1]+t,o[i--]=a%fe|0,t=a/fe|0;o[i]=(o[i]+t)%fe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=mr(o,r),L?k(e,h.precision,h.rounding):e};R.toBinary=function(e,t){return bn(this,2,e,t)};R.toDecimalPlaces=R.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(se(e,0,qe),t===void 0?t=n.rounding:se(t,0,8),k(r,e+r.e+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=be(n,!0):(se(e,0,qe),t===void 0?t=i.rounding:se(t,0,8),n=k(new i(n),e+1,t),r=be(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};R.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=be(i):(se(e,0,qe),t===void 0?t=o.rounding:se(t,0,8),n=k(new o(i),e+i.e+1,t),r=be(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};R.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,P,S=this,C=S.d,A=S.constructor;if(!C)return new A(S);if(u=r=new A(1),n=l=new A(0),t=new A(n),o=t.e=Yi(C)-S.e-1,s=o%I,t.d[0]=J(10,s<0?I+s:s),e==null)e=o>0?t:u;else{if(a=new A(e),!a.isInt()||a.lt(u))throw Error(je+a);e=a.gt(t)?o>0?t:u:a}for(L=!1,a=new A(Z(C)),g=A.precision,A.precision=o=C.length*I*2;h=j(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=j(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,P=j(u,n,o,1).minus(S).abs().cmp(j(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],A.precision=g,L=!0,P};R.toHexadecimal=R.toHex=function(e,t){return bn(this,16,e,t)};R.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:se(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(L=!1,r=j(r,e,0,t,1).times(e),L=!0,k(r)):(e.s=r.s,r=e),r};R.toNumber=function(){return+this};R.toOctal=function(e,t){return bn(this,8,e,t)};R.toPower=R.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(J(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return k(a,n,o);if(t=te(e.e/I),t>=e.d.length-1&&(r=u<0?-u:u)<=Tl)return i=Zi(l,a,r,n),e.s<0?new l(1).div(i):k(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(L=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=yn(e.times(Be(a,n+r)),n),i.d&&(i=k(i,n+5,1),Nt(i.d,n,o)&&(t=n+10,i=k(yn(e.times(Be(a,t+r)),t),t+5,1),+Z(i.d).slice(n+1,n+15)+1==1e14&&(i=k(i,n+1,0)))),i.s=s,L=!0,l.rounding=o,k(i,n,o))};R.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=be(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(se(e,1,qe),t===void 0?t=i.rounding:se(t,0,8),n=k(new i(n),e,t),r=be(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};R.toSignificantDigits=R.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(se(e,1,qe),t===void 0?t=n.rounding:se(t,0,8)),k(new n(r),e,t)};R.toString=function(){var e=this,t=e.constructor,r=be(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};R.truncated=R.trunc=function(){return k(new this.constructor(this),this.e+1,1)};R.valueOf=R.toJSON=function(){var e=this,t=e.constructor,r=be(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Z(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(je+e)}function Nt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=I,i=0):(i=Math.ceil((t+1)/I),t%=I),o=J(10,I-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==J(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==J(10,t-3)-1,s}function ur(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function Al(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/gr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=it(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var j=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,P,S,C,A,F,_,N,M,O,Y,q,vt,Q,ie,Se,X,Ye,er=n.constructor,Jr=n.s==i.s?1:-1,ee=n.d,$=i.d;if(!ee||!ee[0]||!$||!$[0])return new er(!n.s||!i.s||(ee?$&&ee[0]==$[0]:!$)?NaN:ee&&ee[0]==0||!$?Jr*0:Jr/0);for(l?(S=1,g=n.e-i.e):(l=fe,S=I,g=te(n.e/S)-te(i.e/S)),X=$.length,ie=ee.length,_=new er(Jr),N=_.d=[],h=0;$[h]==(ee[h]||0);h++);if($[h]>(ee[h]||0)&&g--,o==null?(q=o=er.precision,s=er.rounding):a?q=o+(n.e-i.e)+1:q=o,q<0)N.push(1),C=!0;else{if(q=q/S+2|0,h=0,X==1){for(P=0,$=$[0],q++;(h1&&($=e($,P,l),ee=e(ee,P,l),X=$.length,ie=ee.length),Q=X,M=ee.slice(0,X),O=M.length;O=l/2&&++Se;do P=0,u=t($,M,X,O),u<0?(Y=M[0],X!=O&&(Y=Y*l+(M[1]||0)),P=Y/Se|0,P>1?(P>=l&&(P=l-1),A=e($,P,l),F=A.length,O=M.length,u=t(A,M,F,O),u==1&&(P--,r(A,X=10;P/=10)h++;_.e=h+g*S-1,k(_,a?o+_.e+1:o,s,C)}return _}}();function k(e,t,r,n){var i,o,s,a,l,u,g,h,P,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=I,s=t,g=h[P=0],l=g/J(10,i-s-1)%10|0;else if(P=Math.ceil((o+1)/I),a=h.length,P>=a)if(n){for(;a++<=P;)h.push(0);g=l=0,i=1,o%=I,s=o-I+1}else break e;else{for(g=a=h[P],i=1;a>=10;a/=10)i++;o%=I,s=o-I+i,l=s<0?0:g/J(10,i-s-1)%10|0}if(n=n||t<0||h[P+1]!==void 0||(s<0?g:g%J(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/J(10,i-s):0:h[P-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=J(10,(I-t%I)%I),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=P,a=1,P--):(h.length=P+1,a=J(10,I-o),h[P]=s>0?(g/J(10,i-s)%J(10,s)|0)*a:0),u)for(;;)if(P==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==fe&&(h[0]=1));break}else{if(h[P]+=a,h[P]!=fe)break;h[P--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return L&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+$e(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+$e(-i-1)+o,r&&(n=r-s)>0&&(o+=$e(n))):i>=s?(o+=$e(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+$e(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=$e(n))),o}function mr(e,t){var r=e[0];for(t*=I;r>=10;r/=10)t++;return t}function dr(e,t,r){if(t>Cl)throw L=!0,r&&(e.precision=r),Error(Wi);return k(new e(cr),t,1,!0)}function de(e,t,r){if(t>hn)throw Error(Wi);return k(new e(pr),t,r,!0)}function Yi(e){var t=e.length-1,r=t*I+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function $e(e){for(var t="";e--;)t+="0";return t}function Zi(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/I+4);for(L=!1;;){if(r%2&&(o=o.times(t),Qi(o.d,s)&&(i=!0)),r=te(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),Qi(t.d,s)}return L=!0,o}function Vi(e){return e.d[e.d.length-1]&1}function Xi(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new P(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(L=!1,l=C):l=t,a=new P(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(J(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new P(1),P.precision=l;;){if(o=k(o.times(e),l,1),r=r.times(++g),a=s.plus(j(o,r,l,1)),Z(a.d).slice(0,l)===Z(s.d).slice(0,l)){for(i=h;i--;)s=k(s.times(s),l,1);if(t==null)if(u<3&&Nt(s.d,l-n,S,u))P.precision=l+=10,r=o=a=new P(1),g=0,u++;else return k(s,P.precision=C,S,L=!0);else return P.precision=C,s}s=a}}function Be(e,t){var r,n,i,o,s,a,l,u,g,h,P,S=1,C=10,A=e,F=A.d,_=A.constructor,N=_.rounding,M=_.precision;if(A.s<0||!F||!F[0]||!A.e&&F[0]==1&&F.length==1)return new _(F&&!F[0]?-1/0:A.s!=1?NaN:F?0:A);if(t==null?(L=!1,g=M):g=t,_.precision=g+=C,r=Z(F),n=r.charAt(0),Math.abs(o=A.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)A=A.times(e),r=Z(A.d),n=r.charAt(0),S++;o=A.e,n>1?(A=new _("0."+r),o++):A=new _(n+"."+r.slice(1))}else return u=dr(_,g+2,M).times(o+""),A=Be(new _(n+"."+r.slice(1)),g-C).plus(u),_.precision=M,t==null?k(A,M,N,L=!0):A;for(h=A,l=s=A=j(A.minus(1),A.plus(1),g,1),P=k(A.times(A),g,1),i=3;;){if(s=k(s.times(P),g,1),u=l.plus(j(s,new _(i),g,1)),Z(u.d).slice(0,g)===Z(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(dr(_,g+2,M).times(o+""))),l=j(l,new _(S),g,1),t==null)if(Nt(l.d,g-C,N,a))_.precision=g+=C,u=s=A=j(h.minus(1),h.plus(1),g,1),P=k(A.times(A),g,1),i=a=1;else return k(l,_.precision=M,N,L=!0);else return _.precision=M,l;l=u,i+=2}}function eo(e){return String(e.s*e.s/0)}function wn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%I,r<0&&(n+=I),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),zi.test(t))return wn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(vl.test(t))r=16,t=t.toLowerCase();else if(xl.test(t))r=2;else if(Pl.test(t))r=8;else throw Error(je+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=Zi(n,new n(r),o,o*2)),u=ur(t,r,fe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=mr(u,g),e.d=u,L=!1,s&&(e=j(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?J(2,l):Ke.pow(2,l))),L=!0,e)}function Sl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:it(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/gr(5,r)),t=it(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function it(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/I);for(L=!1,l=r.times(r),a=new e(n);;){if(s=j(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=j(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return L=!0,s.d.length=h+1,s}function gr(e,t){for(var r=e;--t;)r*=e;return r}function to(e,t){var r,n=t.s<0,i=de(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ie=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ie=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ie=Vi(r)?n?2:3:n?4:1,t;Ie=Vi(r)?n?1:4:n?3:2}return t.minus(i).abs()}function bn(e,t,r,n){var i,o,s,a,l,u,g,h,P,S=e.constructor,C=r!==void 0;if(C?(se(r,1,qe),n===void 0?n=S.rounding:se(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=eo(e);else{for(g=be(e),s=g.indexOf("."),C?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),P=new S(1),P.e=g.length-s,P.d=ur(be(P),10,i),P.e=P.d.length),h=ur(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=C?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=j(e,P,r,n,0,i),h=e.d,o=e.e,u=Gi),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=ur(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function Ol(e){return new this(e).abs()}function kl(e){return new this(e).acos()}function Fl(e){return new this(e).acosh()}function Ml(e,t){return new this(e).plus(t)}function Il(e){return new this(e).asin()}function _l(e){return new this(e).asinh()}function Ll(e){return new this(e).atan()}function Nl(e){return new this(e).atanh()}function Dl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=de(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?de(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=de(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(j(e,t,o,1)),t=de(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(j(e,t,o,1)),r}function $l(e){return new this(e).cbrt()}function Bl(e){return k(e=new this(e),e.e+1,2)}function jl(e,t,r){return new this(e).clamp(t,r)}function ql(e){if(!e||typeof e!="object")throw Error(fr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,qe,"rounding",0,8,"toExpNeg",-nt,0,"toExpPos",0,nt,"maxE",0,nt,"minE",-nt,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(je+r+": "+n);if(r="crypto",i&&(this[r]=gn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(Ki);else this[r]=!1;else throw Error(je+r+": "+n);return this}function Ul(e){return new this(e).cos()}function Vl(e){return new this(e).cosh()}function ro(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,Ji(o)){u.s=o.s,L?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;L?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(Ki);else for(;o=10;i/=10)n++;npe(We(e)),punctuation:We,directive:ke,function:ke,variable:e=>pe(We(e)),string:e=>pe(Rt(e)),boolean:St,number:ke,comment:Ot};var hu=e=>e,yr={},yu=0,D={manual:yr.Prism&&yr.Prism.manual,disableWorkerMessageHandler:yr.Prism&&yr.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof me){let t=e;return new me(t.type,D.util.encode(t.content),t.alias)}else return Array.isArray(e)?e.map(D.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Se instanceof me)continue;if(Y&&Q!=t.length-1){N.lastIndex=ie;var h=N.exec(e);if(!h)break;var g=h.index+(O?h[1].length:0),P=h.index+h[0].length,a=Q,l=ie;for(let $=t.length;a<$&&(l=l&&(++Q,ie=l);if(t[Q]instanceof me)continue;u=a-Q,Se=e.slice(ie,l),h.index-=ie}else{N.lastIndex=0;var h=N.exec(Se),u=1}if(!h){if(o)break;continue}O&&(q=h[1]?h[1].length:0);var g=h.index+q,h=h[0].slice(q),P=g+h.length,S=Se.slice(0,g),C=Se.slice(P);let X=[Q,u];S&&(++Q,ie+=S.length,X.push(S));let Ye=new me(A,M?D.tokenize(h,M):h,vt,h,Y);if(X.push(Ye),C&&X.push(C),Array.prototype.splice.apply(t,X),u!=1&&D.matchGrammar(e,t,r,Q,ie,!0,A),o)break}}}},tokenize:function(e,t){let r=[e],n=t.rest;if(n){for(let i in n)t[i]=n[i];delete t.rest}return D.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){let r=D.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){let r=D.hooks.all[e];if(!(!r||!r.length))for(var n=0,i;i=r[n++];)i(t)}},Token:me};D.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};D.languages.javascript=D.languages.extend("clike",{"class-name":[D.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});D.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;D.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:D.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:D.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:D.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:D.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});D.languages.markup&&D.languages.markup.tag.addInlined("script","javascript");D.languages.js=D.languages.javascript;D.languages.typescript=D.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});D.languages.ts=D.languages.typescript;function me(e,t,r,n,i){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0,this.greedy=!!i}me.stringify=function(e,t){return typeof e=="string"?e:Array.isArray(e)?e.map(function(r){return me.stringify(r,t)}).join(""):wu(e.type)(e.content)};function wu(e){return no[e]||hu}function io(e){return bu(e,D.languages.javascript)}function bu(e,t){return D.tokenize(e,t).map(n=>me.stringify(n)).join("")}m();c();p();d();f();var oo=he(Mi());function so(e){return(0,oo.default)(e)}var wr=class e{static read(t){let r;try{r=ir.readFileSync(t,"utf-8")}catch{return null}return e.fromContent(r)}static fromContent(t){let r=t.split(/\r?\n/);return new e(1,r)}constructor(t,r){this.firstLineNumber=t,this.lines=r}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(t,r){if(tthis.lines.length+this.firstLineNumber)return this;let n=t-this.firstLineNumber,i=[...this.lines];return i[n]=r(i[n]),new e(this.firstLineNumber,i)}mapLines(t){return new e(this.firstLineNumber,this.lines.map((r,n)=>t(r,this.firstLineNumber+n)))}lineAt(t){return this.lines[t-this.firstLineNumber]}prependSymbolAt(t,r){return this.mapLines((n,i)=>i===t?`${r} ${n}`:` ${n}`)}slice(t,r){let n=this.lines.slice(t-1,r).join(` -`);return new e(t,so(n).split(` -`))}highlight(){let t=io(this.toString());return new e(this.firstLineNumber,t.split(` -`))}toString(){return this.lines.join(` -`)}};var Eu={red:Ge,gray:Ot,dim:Ct,bold:pe,underline:At,highlightSource:e=>e.highlight()},xu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function vu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Pu({callsite:e,message:t,originalMethod:r,isPanic:n,callArguments:i},o){let s=vu({message:t,originalMethod:r,isPanic:n,callArguments:i});if(!e||typeof window<"u"||y.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=wr.read(a.fileName)?.slice(l,a.lineNumber),g=u?.lineAt(a.lineNumber);if(u&&g){let h=Cu(g),P=Tu(g);if(!P)return s;s.functionName=`${P.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,C=>C.slice(0,P.openingBraceIndex))),u=o.highlightSource(u);let S=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((C,A)=>o.gray(String(A).padStart(S))+" "+C).mapLines(C=>o.dim(C)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let C=h+S+1;C+=2,s.callArguments=(0,ao.default)(i,C).slice(C)}}return s}function Tu(e){let t=Object.keys(De.ModelAction).join("|"),n=new RegExp(String.raw`\.(${t})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Cu(e){let t=0;for(let r=0;r"Unknown error")}function fo(e){return e.errors.flatMap(t=>t.kind==="Union"?fo(t):[t])}function Su(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Ou(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Ou(e,t){return[...new Set(e.concat(t))]}function ku(e){return fn(e,(t,r)=>{let n=uo(t),i=uo(r);return n!==i?n-i:co(t)-co(r)})}function uo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function co(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}m();c();p();d();f();var ce=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};m();c();p();d();f();m();c();p();d();f();var ct=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};m();c();p();d();f();m();c();p();d();f();var Er=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};m();c();p();d();f();var xr=e=>e,vr={bold:xr,red:xr,green:xr,dim:xr,enabled:!1},mo={bold:pe,red:Ge,green:Rt,dim:Ct,enabled:!0},pt={write(e){e.writeLine(",")}};m();c();p();d();f();var xe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};m();c();p();d();f();var Ue=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var dt=class extends Ue{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Er(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new xe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(pt,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ft=class e extends Ue{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof dt&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new xe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(pt,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};m();c();p();d();f();var z=class extends Ue{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new xe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};m();c();p();d();f();var Dt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(pt,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function br(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Mu(e,t);break;case"IncludeOnScalar":Iu(e,t);break;case"EmptySelection":_u(e,t,r);break;case"UnknownSelectionField":$u(e,t);break;case"InvalidSelectionValue":Bu(e,t);break;case"UnknownArgument":ju(e,t);break;case"UnknownInputField":qu(e,t);break;case"RequiredArgumentMissing":Uu(e,t);break;case"InvalidArgumentType":Vu(e,t);break;case"InvalidArgumentValue":Qu(e,t);break;case"ValueTooLarge":Ju(e,t);break;case"SomeFieldsMissing":Gu(e,t);break;case"TooManyFieldsGiven":Wu(e,t);break;case"Union":po(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Mu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Iu(e,t){let[r,n]=$t(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ce(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Bt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function _u(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Lu(e,t,i);return}if(n.hasField("select")){Nu(e,t);return}}if(r?.[st(e.outputType.name)]){Du(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Lu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ce(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Nu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),wo(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Bt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Du(e,t){let r=new Dt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ce("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=$t(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ft;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function $u(e,t){let r=bo(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":wo(n,e.outputType);break;case"include":Ku(n,e.outputType);break;case"omit":Hu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Bt(n)),i.join(" ")})}function Bu(e,t){let r=bo(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function ju(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),zu(n,e.arguments)),t.addErrorMessage(i=>ho(i,r,e.arguments.map(o=>o.name)))}function qu(e,t){let[r,n]=$t(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Eo(o,e.inputType)}t.addErrorMessage(o=>ho(o,n,e.inputType.fields.map(s=>s.name)))}function ho(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Zu(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Bt(e)),n.join(" ")}function Uu(e,t){let r;t.addErrorMessage(l=>r?.value instanceof z&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=$t(e.argumentPath),s=new Dt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ce(o,s).makeRequired())}else{let l=e.inputTypes.map(yo).join(" | ");a.addSuggestion(new ce(o,l).makeRequired())}}function yo(e){return e.kind==="list"?`${yo(e.elementType)}[]`:e.name}function Vu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Pr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Qu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Pr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Ju(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof z&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Gu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Eo(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Pr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Bt(i)),o.join(" ")})}function Wu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Pr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function wo(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,"true"))}function Ku(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ce(r.name,"true"))}function Hu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ce(r.name,"true"))}function zu(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function bo(e,t){let[r,n]=$t(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Eo(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function $t(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Bt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Pr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Yu=3;function Zu(e,t){let r=1/0,n;for(let i of t){let o=(0,go.default)(e,i);o>Yu||o`}};function mt(e){return e instanceof jt}m();c();p();d();f();var Tr=Symbol(),xn=new WeakMap,_e=class{constructor(t){t===Tr?xn.set(this,`Prisma.${this._getName()}`):xn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return xn.get(this)}},qt=class extends _e{_getNamespace(){return"NullTypes"}},Ut=class extends qt{};vn(Ut,"DbNull");var Vt=class extends qt{};vn(Vt,"JsonNull");var Qt=class extends qt{};vn(Qt,"AnyNull");var Cr={classes:{DbNull:Ut,JsonNull:Vt,AnyNull:Qt},instances:{DbNull:new Ut(Tr),JsonNull:new Vt(Tr),AnyNull:new Qt(Tr)}};function vn(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}m();c();p();d();f();var vo=": ",Ar=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+vo.length}write(t){let r=new xe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(vo).write(this.value)}};var Pn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function gt(e){return new Pn(Po(e))}function Po(e){let t=new ft;for(let[r,n]of Object.entries(e)){let i=new Ar(r,To(n));t.addField(i)}return t}function To(e){if(typeof e=="string")return new z(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new z(String(e));if(typeof e=="bigint")return new z(`${e}n`);if(e===null)return new z("null");if(e===void 0)return new z("undefined");if(lt(e))return new z(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new z(`Buffer.alloc(${e.byteLength})`):new z(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=hr(e)?e.toISOString():"Invalid Date";return new z(`new Date("${t}")`)}return e instanceof _e?new z(`Prisma.${e._getName()}`):mt(e)?new z(`prisma.${xo(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Xu(e):typeof e=="object"?Po(e):new z(Object.prototype.toString.call(e))}function Xu(e){let t=new dt;for(let r of e)t.addItem(To(r));return t}function Rr(e,t){let r=t==="pretty"?mo:vr,n=e.renderAllMessages(r),i=new ct(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Sr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=gt(e);for(let h of t)br(h,a,s);let{message:l,args:u}=Rr(a,r),g=ut({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new H(g,{clientVersion:o})}m();c();p();d();f();m();c();p();d();f();var ve=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};m();c();p();d();f();function Jt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}m();c();p();d();f();function Pe(e){return e.replace(/^./,t=>t.toLowerCase())}m();c();p();d();f();function Ao(e,t,r){let n=Pe(r);return!t.result||!(t.result.$allModels||t.result[n])?e:ec({...e,...Co(t.name,e,t.result.$allModels),...Co(t.name,e,t.result[n])})}function ec(e){let t=new ve,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return rt(e,n=>({...n,needs:r(n.name,new Set)}))}function Co(e,t,r){return r?rt(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:tc(t,o,i)})):{}}function tc(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Ro(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function So(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Or=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ve;this.modelExtensionsCache=new ve;this.queryCallbacksCache=new ve;this.clientExtensions=Jt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=Jt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Ao(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Pe(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ht=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Or(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Or(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};m();c();p();d();f();m();c();p();d();f();var Oo=Symbol(),Gt=class{constructor(t){if(t!==Oo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?kr:t}},kr=new Gt(Oo);function Te(e){return e instanceof Gt}var rc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},ko="explicitly `undefined` values are not allowed";function Fr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=ht.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Tn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:rc[t],query:Wt(r,h)}}function Wt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:Mo(r,n),selection:nc(e,t,i,n)}}function nc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),ac(e,n)):ic(n,t,r)}function ic(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&oc(n,t,e),e.isPreviewFeatureOn("omitApi")&&sc(n,r,e),n}function oc(e,t,r){for(let[n,i]of Object.entries(t)){if(Te(i))continue;let o=r.nestSelection(n);if(Cn(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Wt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Wt(i,o)}}function sc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=So(i,n);for(let[s,a]of Object.entries(o)){if(Te(a))continue;Cn(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function ac(e,t){let r={},n=t.getComputedFields(),i=Ro(e,n);for(let[o,s]of Object.entries(i)){if(Te(s))continue;let a=t.nestSelection(o);Cn(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Te(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Wt({},a):r[o]=!0;continue}r[o]=Wt(s,a)}}return r}function Fo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(at(e)){if(hr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(mt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return lc(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(uc(e))return e.values;if(lt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof _e){if(e!==Cr.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(cc(e))return e.toJSON();if(typeof e=="object")return Mo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Mo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Te(i)||(i!==void 0?r[n]=Fo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:ko}))}return r}function lc(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[st(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Fe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};m();c();p();d();f();var yt=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};m();c();p();d();f();function Io(e){return{models:An(e.models),enums:An(e.enums),types:An(e.types)}}function An(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function _o(e,t){let r=Jt(()=>pc(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function pc(e){return{datamodel:{models:Rn(e.models),enums:Rn(e.enums),types:Rn(e.types)}}}function Rn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}m();c();p();d();f();var Sn=new WeakMap,Mr="$$PrismaTypedSql",On=class{constructor(t,r){Sn.set(this,{sql:t,values:r}),Object.defineProperty(this,Mr,{value:Mr})}get sql(){return Sn.get(this).sql}get values(){return Sn.get(this).values}};function Lo(e){return(...t)=>new On(e,t)}function No(e){return e!=null&&e[Mr]===Mr}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();function Kt(e){return{ok:!1,error:e,map(){return Kt(e)},flatMap(){return Kt(e)}}}var kn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Fn=e=>{let t=new kn,r=Ce(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ce(t,e.queryRaw.bind(e)),executeRaw:Ce(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>dc(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=mc(t,e.getConnectionInfo.bind(e))),n},dc=(e,t)=>{let r=Ce(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>fc(e,o))}},fc=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),commit:Ce(e,t.commit.bind(t)),rollback:Ce(e,t.rollback.bind(t))});function Ce(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Kt({kind:"GenericJs",id:i})}}}function mc(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Kt({kind:"GenericJs",id:i})}}}var na=he(Do());var YO=he($o());Ii();tn();an();m();c();p();d();f();var ae=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}m();c();p();d();f();m();c();p();d();f();var Ir={enumerable:!0,configurable:!0,writable:!0};function _r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Ir,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var qo=Symbol.for("nodejs.util.inspect.custom");function Ae(e,t){let r=hc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Uo(Reflect.ownKeys(o),r),a=Uo(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Ir,...l?.getPropertyDescriptor(s)}:Ir:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[qo]=function(){let o={...this};return delete o[qo],o},i}function hc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Uo(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}m();c();p();d();f();function wt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}m();c();p();d();f();function Lr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}m();c();p();d();f();function Vo(e){if(e===void 0)return"";let t=gt(e);return new ct(0,{colors:vr}).write(t).toString()}m();c();p();d();f();var yc="P2037";function Nr({error:e,user_facing_error:t},r,n){return t.error_code?new W(wc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new K(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function wc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===yc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var zt="";function Qo(e){var t=e.split(` -`);return t.reduce(function(r,n){var i=xc(n)||Pc(n)||Ac(n)||kc(n)||Sc(n);return i&&r.push(i),r},[])}var bc=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ec=/\((\S*)(?::(\d+))(?::(\d+))\)/;function xc(e){var t=bc.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=Ec.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||zt,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var vc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Pc(e){var t=vc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Tc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Cc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ac(e){var t=Tc.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=Cc.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||zt,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var Rc=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Sc(e){var t=Rc.exec(e);return t?{file:t[3],methodName:t[1]||zt,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Oc=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function kc(e){var t=Oc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var _n=class{getLocation(){return null}},Ln=class{constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=Qo(t).find(i=>{if(!i.file)return!1;let o=ln(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ve(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new _n:new Ln}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var Jo={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function bt(e={}){let t=Mc(e);return Object.entries(t).reduce((n,[i,o])=>(Jo[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Mc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Dr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Go(e,t){let r=Dr(e);return t({action:"aggregate",unpacker:r,argsMapper:bt})(e)}m();c();p();d();f();function Ic(e={}){let{select:t,...r}=e;return typeof t=="object"?bt({...r,_count:t}):bt({...r,_count:{_all:!0}})}function _c(e={}){return typeof e.select=="object"?t=>Dr(e)(t)._count:t=>Dr(e)(t)._count._all}function Wo(e,t){return t({action:"count",unpacker:_c(e),argsMapper:Ic})(e)}m();c();p();d();f();function Lc(e={}){let t=bt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Nc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function Ko(e,t){return t({action:"groupBy",unpacker:Nc(e),argsMapper:Lc})(e)}function Ho(e,t,r){if(t==="aggregate")return n=>Go(n,r);if(t==="count")return n=>Wo(n,r);if(t==="groupBy")return n=>Ko(n,r)}m();c();p();d();f();function zo(e,t){let r=t.fields.filter(i=>!i.relationName),n=dn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new jt(e,o,s.type,s.isList,s.kind==="enum")},..._r(Object.keys(n))})}m();c();p();d();f();m();c();p();d();f();var Yo=e=>Array.isArray(e)?e:e.split("."),Nn=(e,t)=>Yo(t).reduce((r,n)=>r&&r[n],e),Zo=(e,t,r)=>Yo(t).reduceRight((n,i,o,s)=>Object.assign({},Nn(e,s.slice(0,o)),{[i]:n}),r);function Dc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function $c(e,t,r){return t===void 0?e??{}:Zo(t,r,e||!0)}function Dn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ve(e._errorFormat),g=Dc(n,i),h=$c(l,o,g),P=r({dataPath:g,callsite:u})(h),S=Bc(e,t);return new Proxy(P,{get(C,A){if(!S.includes(A))return C[A];let _=[a[A].type,r,A],N=[g,h];return Dn(e,..._,...N)},..._r([...S,...Object.getOwnPropertyNames(P)])})}}function Bc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}m();c();p();d();f();function Xo(e,t,r,n){return e===De.ModelAction.findFirstOrThrow||e===De.ModelAction.findUniqueOrThrow?jc(t,r,n):n}function jc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=ut({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new H(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof W&&o.code==="P2025"?new Me(`No ${e} found`,t):o})}}var qc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Uc=["aggregate","count","groupBy"];function $n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[Vc(e,t),Jc(e,t),Ht(r),ne("name",()=>t),ne("$name",()=>t),ne("$parent",()=>e._appliedParent)];return Ae({},n)}function Vc(e,t){let r=Pe(t),n=Object.keys(De.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=Xo(o,t,e._clientVersion,s);let a=l=>u=>{let g=Ve(e._errorFormat);return e._createPrismaPromise(h=>{let P={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...P,...l})})};return qc.includes(o)?Dn(e,t,a):Qc(i)?Ho(e,i,a):a({})}}}function Qc(e){return Uc.includes(e)}function Jc(e,t){return He(ne("fields",()=>{let r=e._runtimeDataModel.models[t];return zo(t,r)}))}m();c();p();d();f();function es(e){return e.replace(/^./,t=>t.toUpperCase())}var Bn=Symbol();function Yt(e){let t=[Gc(e),ne(Bn,()=>e),ne("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(Ht(r)),Ae(e,t)}function Gc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Pe),n=[...new Set(t.concat(r))];return He({getKeys(){return n},getPropertyValue(i){let o=es(i);if(e._runtimeDataModel.models[o]!==void 0)return $n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return $n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ts(e){return e[Bn]?e[Bn]:e}function rs(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Yt(t)}m();c();p();d();f();m();c();p();d();f();function ns({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(wt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(wt(u))}Wc(e,l.needs)&&s.push(Kc(l,Ae(e,s)))}return s.length>0||a.length>0?Ae(e,[...s,...a]):e}function Wc(e,t){return t.every(r=>pn(e,r))}function Kc(e,t){return He(ne(e.name,()=>e.compute(t)))}m();c();p();d();f();function $r({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=$r({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function os({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:$r({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=Pe(l);return ns({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}m();c();p();d();f();m();c();p();d();f();function ss(e){if(e instanceof ae)return Hc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ss(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=ds(o,l),a.args=s,ls(e,a,r,n+1)}})})}function us(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return ls(e,t,s)}function cs(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ps(r,n,0,e):e(r)}}function ps(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=ds(i,l),ps(a,t,r+1,n)}})}var as=e=>e;function ds(e=as,t=as){return r=>e(t(r))}m();c();p();d();f();var fs=le("prisma:client"),ms={Vercel:"vercel","Netlify CI":"netlify"};function gs({postinstall:e,ciName:t,clientVersion:r}){if(fs("checkPlatformCaching:postinstall",e),fs("checkPlatformCaching:ciName",t),e===!0&&t&&t in ms){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${ms[t]}-build`;throw console.error(n),new V(n,r)}}m();c();p();d();f();function hs(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var zc="Cloudflare-Workers",Yc="node";function ys(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===zc?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Yc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Zc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function ws(){let e=ys();return{id:e,prettyName:Zc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}m();c();p();d();f();m();c();p();d();f();var jn=he(cn());m();c();p();d();f();function bs(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}m();c();p();d();f();function Es(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}m();c();p();d();f();var xs=he(ji());function vs({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,xs.default)({user:t,repo:r,template:n,title:e,body:i})}function Ps({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=Ci(6e3-(s?.length??0)),l=Es((0,jn.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",g=(0,jn.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${y.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?bs(s):""} -\`\`\` -`),h=vs({title:r,body:g});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${At(h)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}m();c();p();d();f();function Br({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new V(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new V("error: Missing URL environment variable, value, or override.",n);return i}m();c();p();d();f();m();c();p();d();f();function Ts(e){if(e?.kind==="itx")return e.options.id}m();c();p();d();f();var qn=class{constructor(t,r,n){this.engineObject=__PrismaProxy.create({datamodel:t.datamodel,env:y.env,ignoreEnvVarErrors:!0,datasourceOverrides:t.datasourceOverrides??{},logLevel:t.logLevel,logQueries:t.logQueries??!1,logCallback:r})}async connect(t){return __PrismaProxy.connect(this.engineObject,t)}async disconnect(t){return __PrismaProxy.disconnect(this.engineObject,t)}query(t,r,n){return __PrismaProxy.execute(this.engineObject,t,r,n)}sdlSchema(){return Promise.resolve("{}")}dmmf(t){return Promise.resolve("{}")}async startTransaction(t,r){return __PrismaProxy.startTransaction(this.engineObject,t,r)}async commitTransaction(t,r){return __PrismaProxy.commitTransaction(this.engineObject,t,r)}async rollbackTransaction(t,r){return __PrismaProxy.rollbackTransaction(this.engineObject,t,r)}metrics(t){return Promise.resolve("{}")}async applyPendingMigrations(){return __PrismaProxy.applyPendingMigrations(this.engineObject)}},Cs={async loadLibrary(e){if(!__PrismaProxy)throw new V("__PrismaProxy not detected make sure React Native bindings are installed",e.clientVersion);return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:qn}}};var Xc="P2036",Re=le("prisma:client:libraryEngine");function ep(e){return e.item_type==="query"&&"query"in e}function tp(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var bR=[...sn,"native"],Xt=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=Cs,this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){await this.start(),await this.engine?.applyPendingMigrations()}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(rp(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new W(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Re("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(t){if(!t)throw new K("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new K("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new b(this),{adapter:r}=this.config;r&&Re("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:y.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",ep(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):tp(r)?this.loggerRustPanic=new ue(Un(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Re(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Re("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Re("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Re("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Re("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Re("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Re(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new K(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof V)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new ue(Un(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new K(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Re("requestBatch");let i=Lr(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),Ts(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new K(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u,elapsed:0});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new ue(Un(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:Nr(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Xc&&this.config.adapter){let r=t.meta?.id;ar(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return ar(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function rp(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function Un(e,t){return Ps({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function As({copyEngine:e=!0},t){let r;try{r=Br({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Lt("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Mt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new H(u.join(` -`),{clientVersion:t.clientVersion})}return new Xt(t)}m();c();p();d();f();function jr({generator:e}){return e?.previewFeatures??[]}m();c();p();d();f();var Rs=e=>({command:e});m();c();p();d();f();m();c();p();d();f();var Ss=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);m();c();p();d();f();function Et(e){try{return Os(e,"fast")}catch{return Os(e,"slow")}}function Os(e,t){return JSON.stringify(e.map(r=>Fs(r,t)))}function Fs(e,t){return Array.isArray(e)?e.map(r=>Fs(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:at(e)?{prisma__type:"date",prisma__value:e.toJSON()}:Ee.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:np(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Ms(e):e}function np(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ms(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(ks);let t={};for(let r of Object.keys(e))t[r]=ks(e[r]);return t}function ks(e){return typeof e=="bigint"?e.toString():Ms(e)}m();c();p();d();f();var ip=["$connect","$disconnect","$on","$transaction","$use","$extends"],Is=ip;var op=/^(\s*alter\s)/i,_s=le("prisma:client");function Vn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&op.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Qn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(No(r))n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Et(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Ss(r),i={values:Et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?_s(`prisma.${e}(${n}, ${i.values})`):_s(`prisma.${e}(${n})`),{query:n,parameters:i}},Ls={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ae(t,r)}},Ns={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};m();c();p();d();f();function Jn(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Ds(r(o)):Ds(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Ds(e){return typeof e.then=="function"?e:Promise.resolve(e)}m();c();p();d();f();var $s={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Gn=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??$s}};function Bs(e){return e.includes("tracing")?new Gn:$s}m();c();p();d();f();function js(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}m();c();p();d();f();function qs(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}m();c();p();d();f();var qr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};m();c();p();d();f();var Qs=he(cn());m();c();p();d();f();function Ur(e){return typeof e.batchRequestIdx=="number"}m();c();p();d();f();function Us(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(Wn(e.query.arguments)),t.push(Wn(e.query.selection)),t.join("")}function Wn(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${Wn(n)})`:r}).join(" ")})`}m();c();p();d();f();var sp={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function Kn(e){return sp[e]}m();c();p();d();f();var Vr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ize("bigint",r));case"bytes-array":return t.map(r=>ze("bytes",r));case"decimal-array":return t.map(r=>ze("decimal",r));case"datetime-array":return t.map(r=>ze("datetime",r));case"date-array":return t.map(r=>ze("date",r));case"time-array":return t.map(r=>ze("time",r));default:return t}}function Vs(e){let t=[],r=ap(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>Kn(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:up(o),containsWrite:u,customDataProxyFetch:i})).map((h,P)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[P],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Js(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Kn(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Us(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(lp(t),cp(t,i)||t instanceof Me)throw t;if(t instanceof W&&pp(t)){let u=Gs(t.meta);Sr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=ut({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new W(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ue(l,this.client._clientVersion);if(t instanceof K)throw new K(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof V)throw new V(l,this.client._clientVersion);if(t instanceof ue)throw new ue(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Qs.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Nn(o,s),l=i==="queryRaw"?Vs(a):ot(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function up(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Js(e)};Fe(e,"Unknown transaction kind")}}function Js(e){return{id:e.id,payload:e.payload}}function cp(e,t){return Ur(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function pp(e){return e.code==="P2009"||e.code==="P2012"}function Gs(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Gs)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}m();c();p();d();f();var Ws="5.22.0";var Ks=Ws;m();c();p();d();f();var Xs=he(En());m();c();p();d();f();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};re(B,"PrismaClientConstructorValidationError");var Hs=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],zs=["pretty","colorless","minimal"],Ys=["info","query","warn","error"],fp={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=xt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!jr(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Mt()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!zs.includes(e)){let t=xt(e,zs);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Ys.includes(r)){let n=xt(r,Ys);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=xt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=gp(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(hp(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=xt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ea(e,t){for(let[r,n]of Object.entries(e)){if(!Hs.includes(r)){let i=xt(r,Hs);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}fp[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function xt(e,t){if(t.length===0||typeof e!="string")return"";let r=mp(e,t);return r?` Did you mean "${r}"?`:""}function mp(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Xs.default)(e,i)}));r.sort((i,o)=>i.distancest(n)===t);if(r)return e[r]}function hp(e,t){let r=gt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Rr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}m();c();p();d();f();function ta(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!Ur(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var Qe=le("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var yp={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},wp=Symbol.for("prisma.client.transaction.id"),bp={id:0,nextId(){return++this.id}};function ia(e){class t{constructor(n){this._originalClient=this;this._middlewares=new qr;this._createPrismaPromise=Jn();this.$extends=rs;e=n?.__internal?.configOverride?.(e)??e,gs(e),n&&ea(n,e);let i=new sr().on("error",()=>{});this._extensions=ht.empty(),this._previewFeatures=jr(e),this._clientVersion=e.clientVersion??Ks,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Bs(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&we.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&we.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Fn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new V(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new V("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&le.enable("prisma:client");let h=we.resolve(e.dirname,e.relativePath);ir.existsSync(h)||(h=e.dirname),Qe("dirname",e.dirname),Qe("relativePath",e.relativePath),Qe("cwd",h);let P=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:P.allowTriggerPanic,datamodelPath:we.join(e.dirname,e.filename??"schema.prisma"),prismaPath:P.binaryPath??void 0,engineEndpoint:P.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&qs(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:hs(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Br,getBatchRequestPayload:Lr,prismaGraphQLToJSError:Nr,PrismaClientUnknownRequestError:K,PrismaClientInitializationError:V,PrismaClientKnownRequestError:W,debug:le("prisma:client:accelerateEngine"),engineVersion:na.version,clientVersion:e.clientVersion}},Qe("clientVersion",e.clientVersion),this._engine=As(e,this._engineConfig),this._requestHandler=new Qr(this,i),l.log)for(let S of l.log){let C=typeof S=="string"?S:S.emit==="stdout"?S.level:null;C&&this.$on(C,A=>{_t.log(`${_t.tags[C]??""}`,A.message||A.query)})}this._metrics=new yt(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Yt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ai()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Qn({clientMethod:i,activeProvider:a}),callsite:Ve(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ra(n,i);return Vn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new H("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Vn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new H(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Rs,callsite:Ve(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Qn({clientMethod:i,activeProvider:a}),callsite:Ve(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ra(n,i));throw new H("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new H("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=bp.nextId(),s=js(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return ta(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Yt(Ae(ts(this),[ne("_appliedParent",()=>this._appliedParent._createItxClient(n)),ne("_createPrismaPromise",()=>Jn(n)),ne(wp,()=>n.id),wt(Is)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??yp,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,F=>g(u,_=>(F?.end(),l(_))));let{runInTransaction:h,args:P,...S}=u,C={...n,...S};P&&(C.args=i.middlewareArgsToRequestArgs(P)),n.transaction!==void 0&&h===!1&&delete C.transaction;let A=await us(this,C);return C.model?os({result:A,modelName:C.model,args:C.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):A};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:P,customDataProxyFetch:S}){try{n=u?u(n):n;let C={name:"serialize"},A=this._tracingHelper.runInChildSpan(C,()=>Fr({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return le.enabled("prisma:client")&&(Qe("Prisma Client call:"),Qe(`prisma.${i}(${Vo(n)})`),Qe("Generated request:"),Qe(JSON.stringify(A,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:A,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:P,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(C){throw C.clientVersion=this._clientVersion,C}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new H("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ra(e,t){return Ep(e)?[new ae(e,t),Ls]:[e,Ns]}function Ep(e){return Array.isArray(e)&&Array.isArray(e.raw)}m();c();p();d();f();var xp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function oa(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!xp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}m();c();p();d();f();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=react-native.js.map diff --git a/keep-notes/prisma/client-generated/runtime/wasm.js b/keep-notes/prisma/client-generated/runtime/wasm.js deleted file mode 100644 index c3ed3bd..0000000 --- a/keep-notes/prisma/client-generated/runtime/wasm.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict";var Uo=Object.create;var kt=Object.defineProperty;var qo=Object.getOwnPropertyDescriptor;var Bo=Object.getOwnPropertyNames;var $o=Object.getPrototypeOf,Vo=Object.prototype.hasOwnProperty;var se=(e,t)=>()=>(e&&(t=e(e=0)),t);var De=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t)=>{for(var r in t)kt(e,r,{get:t[r],enumerable:!0})},rn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bo(t))!Vo.call(e,i)&&i!==r&&kt(e,i,{get:()=>t[i],enumerable:!(n=qo(t,i))||n.enumerable});return e};var Fe=(e,t,r)=>(r=e!=null?Uo($o(e)):{},rn(t||!e||!e.__esModule?kt(r,"default",{value:e,enumerable:!0}):r,e)),jo=e=>rn(kt({},"__esModule",{value:!0}),e);function gr(e,t){if(t=t.toLowerCase(),t==="utf8"||t==="utf-8")return new y(Wo.encode(e));if(t==="base64"||t==="base64url")return e=e.replace(/-/g,"+").replace(/_/g,"/"),e=e.replace(/[^A-Za-z0-9+/]/g,""),new y([...atob(e)].map(r=>r.charCodeAt(0)));if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return new y([...e].map(r=>r.charCodeAt(0)));if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let r=new y(e.length*2),n=new DataView(r.buffer);for(let i=0;ia.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,u)=>function(g=0){return B(g,"offset"),Y(g,"offset"),V(g,"offset",this.length-1),new DataView(this.buffer)[r[a]](g,u)},o=(a,u)=>function(g,T=0){let C=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),O=Go[C];return B(T,"offset"),Y(T,"offset"),V(T,"offset",this.length-1),Jo(g,"value",O[0],O[1]),new DataView(this.buffer)[r[a]](T,g,u),T+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(u=>{u.includes("Uint")&&(e[u.replace("Uint","UInt")]=e[u]),u.includes("Float64")&&(e[u.replace("Float64","Double")]=e[u]),u.includes("Float32")&&(e[u.replace("Float32","Float")]=e[u])})};n.forEach((a,u)=>{a.startsWith("read")&&(e[a]=i(u,!1),e[a+"LE"]=i(u,!0),e[a+"BE"]=i(u,!1)),a.startsWith("write")&&(e[a]=o(u,!1),e[a+"LE"]=o(u,!0),e[a+"BE"]=o(u,!1)),s([a,a+"LE",a+"BE"])})}function on(e){throw new Error(`Buffer polyfill does not implement "${e}"`)}function It(e,t){if(!(e instanceof Uint8Array))throw new TypeError(`The "${t}" argument must be an instance of Buffer or Uint8Array`)}function V(e,t,r=zo+1){if(e<0||e>r){let n=new RangeError(`The value of "${t}" is out of range. It must be >= 0 && <= ${r}. Received ${e}`);throw n.code="ERR_OUT_OF_RANGE",n}}function B(e,t){if(typeof e!="number"){let r=new TypeError(`The "${t}" argument must be of type number. Received type ${typeof e}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Y(e,t){if(!Number.isInteger(e)||Number.isNaN(e)){let r=new RangeError(`The value of "${t}" is out of range. It must be an integer. Received ${e}`);throw r.code="ERR_OUT_OF_RANGE",r}}function Jo(e,t,r,n){if(en){let i=new RangeError(`The value of "${t}" is out of range. It must be >= ${r} and <= ${n}. Received ${e}`);throw i.code="ERR_OUT_OF_RANGE",i}}function nn(e,t){if(typeof e!="string"){let r=new TypeError(`The "${t}" argument must be of type string. Received type ${typeof e}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Yo(e,t="utf8"){return y.from(e,t)}var y,Go,Wo,Ko,Ho,zo,b,hr,c=se(()=>{"use strict";y=class e extends Uint8Array{constructor(){super(...arguments);this._isBuffer=!0}get offset(){return this.byteOffset}static alloc(r,n=0,i="utf8"){return nn(i,"encoding"),e.allocUnsafe(r).fill(n,i)}static allocUnsafe(r){return e.from(r)}static allocUnsafeSlow(r){return e.from(r)}static isBuffer(r){return r&&!!r._isBuffer}static byteLength(r,n="utf8"){if(typeof r=="string")return gr(r,n).byteLength;if(r&&r.byteLength)return r.byteLength;let i=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw i.code="ERR_INVALID_ARG_TYPE",i}static isEncoding(r){return Ho.includes(r)}static compare(r,n){It(r,"buff1"),It(n,"buff2");for(let i=0;in[i])return 1}return r.length===n.length?0:r.length>n.length?1:-1}static from(r,n="utf8"){if(r&&typeof r=="object"&&r.type==="Buffer")return new e(r.data);if(typeof r=="number")return new e(new Uint8Array(r));if(typeof r=="string")return gr(r,n);if(ArrayBuffer.isView(r)){let{byteOffset:i,byteLength:o,buffer:s}=r;return"map"in r&&typeof r.map=="function"?new e(r.map(a=>a%256),i,o):new e(s,i,o)}if(r&&typeof r=="object"&&("length"in r||"byteLength"in r||"buffer"in r))return new e(r);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(r,n){if(r.length===0)return e.alloc(0);let i=[].concat(...r.map(s=>[...s])),o=e.alloc(n!==void 0?n:i.length);return o.set(n!==void 0?i.slice(0,n):i),o}slice(r=0,n=this.length){return this.subarray(r,n)}subarray(r=0,n=this.length){return Object.setPrototypeOf(super.subarray(r,n),e.prototype)}reverse(){return super.reverse(),this}readIntBE(r,n){B(r,"offset"),Y(r,"offset"),V(r,"offset",this.length-1),B(n,"byteLength"),Y(n,"byteLength");let i=new DataView(this.buffer,r,n),o=0;for(let s=0;s=0;s--)o.setUint8(s,r&255),r=r/256;return n+i}writeUintBE(r,n,i){return this.writeUIntBE(r,n,i)}writeUIntLE(r,n,i){B(n,"offset"),Y(n,"offset"),V(n,"offset",this.length-1),B(i,"byteLength"),Y(i,"byteLength");let o=new DataView(this.buffer,n,i);for(let s=0;sn===r[i])}copy(r,n=0,i=0,o=this.length){V(n,"targetStart"),V(i,"sourceStart",this.length),V(o,"sourceEnd"),n>>>=0,i>>>=0,o>>>=0;let s=0;for(;i=this.length?this.length-u:r.length),u);return this}includes(r,n=null,i="utf-8"){return this.indexOf(r,n,i)!==-1}lastIndexOf(r,n=null,i="utf-8"){return this.indexOf(r,n,i,!0)}indexOf(r,n=null,i="utf-8",o=!1){let s=o?this.findLastIndex.bind(this):this.findIndex.bind(this);i=typeof n=="string"?n:i;let a=e.from(typeof r=="number"?[r]:r,i),u=typeof n=="string"?0:n;return u=typeof n=="number"?u:null,u=Number.isNaN(u)?null:u,u??=o?this.length:0,u=u<0?this.length+u:u,a.length===0&&o===!1?u>=this.length?this.length:u:a.length===0&&o===!0?(u>=this.length?this.length:u)||this.length:s((g,T)=>(o?T<=u:T>=u)&&this[T]===a[0]&&a.every((O,A)=>this[T+A]===O))}toString(r="utf8",n=0,i=this.length){if(n=n<0?0:n,r=r.toString().toLowerCase(),i<=0)return"";if(r==="utf8"||r==="utf-8")return Ko.decode(this.slice(n,i));if(r==="base64"||r==="base64url"){let o=btoa(this.reduce((s,a)=>s+hr(a),""));return r==="base64url"?o.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):o}if(r==="binary"||r==="ascii"||r==="latin1"||r==="latin-1")return this.slice(n,i).reduce((o,s)=>o+hr(s&(r==="ascii"?127:255)),"");if(r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le"){let o=new DataView(this.buffer.slice(n,i));return Array.from({length:o.byteLength/2},(s,a)=>a*2+1o+s.toString(16).padStart(2,"0"),"");on(`encoding "${r}"`)}toLocaleString(){return this.toString()}inspect(){return``}};Go={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},Wo=new TextEncoder,Ko=new TextDecoder,Ho=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],zo=4294967295;Qo(y.prototype);b=new Proxy(Yo,{construct(e,[t,r]){return y.from(t,r)},get(e,t){return y[t]}}),hr=String.fromCodePoint});var h,m=se(()=>{"use strict";h={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var x,p=se(()=>{"use strict";x=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=se(()=>{"use strict";E=()=>{};E.prototype=E});var w,f=se(()=>{"use strict";w=class{constructor(t){this.value=t}deref(){return this.value}}});function un(e,t){var r,n,i,o,s,a,u,g,T=e.constructor,C=T.precision;if(!e.s||!t.s)return t.s||(t=new T(e)),U?D(t,C):t;if(u=e.d,g=t.d,s=e.e,i=t.e,u=u.slice(),o=s-i,o){for(o<0?(n=u,o=-o,a=g.length):(n=g,i=s,a=u.length),s=Math.ceil(C/N),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=u.length,o=g.length,a-o<0&&(o=a,n=g,g=u,u=n),r=0;o;)r=(u[--o]=u[o]+g[o]+r)/Q|0,u[o]%=Q;for(r&&(u.unshift(r),++i),a=u.length;u[--a]==0;)u.pop();return t.d=u,t.e=i,U?D(t,C):t}function le(e,t,r){if(e!==~~e||er)throw Error(Oe+e)}function ae(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t16)throw Error(br+$(e));if(!e.s)return new T(Z);for(t==null?(U=!1,a=C):a=t,s=new T(.03125);e.abs().gte(.1);)e=e.times(s),g+=5;for(n=Math.log(Se(2,g))/Math.LN10*2+5|0,a+=n,r=i=o=new T(Z),T.precision=a;;){if(i=D(i.times(e),a),r=r.times(++u),s=o.plus(ye(i,r,a)),ae(s.d).slice(0,a)===ae(o.d).slice(0,a)){for(;g--;)o=D(o.times(o),a);return T.precision=C,t==null?(U=!0,D(o,C)):o}o=s}}function $(e){for(var t=e.e*N,r=e.d[0];r>=10;r/=10)t++;return t}function yr(e,t,r){if(t>e.LN10.sd())throw U=!0,r&&(e.precision=r),Error(re+"LN10 precision limit exceeded");return D(new e(e.LN10),t)}function Pe(e){for(var t="";e--;)t+="0";return t}function it(e,t){var r,n,i,o,s,a,u,g,T,C=1,O=10,A=e,M=A.d,S=A.constructor,I=S.precision;if(A.s<1)throw Error(re+(A.s?"NaN":"-Infinity"));if(A.eq(Z))return new S(0);if(t==null?(U=!1,g=I):g=t,A.eq(10))return t==null&&(U=!0),yr(S,g);if(g+=O,S.precision=g,r=ae(M),n=r.charAt(0),o=$(A),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)A=A.times(e),r=ae(A.d),n=r.charAt(0),C++;o=$(A),n>1?(A=new S("0."+r),o++):A=new S(n+"."+r.slice(1))}else return u=yr(S,g+2,I).times(o+""),A=it(new S(n+"."+r.slice(1)),g-O).plus(u),S.precision=I,t==null?(U=!0,D(A,I)):A;for(a=s=A=ye(A.minus(Z),A.plus(Z),g),T=D(A.times(A),g),i=3;;){if(s=D(s.times(T),g),u=a.plus(ye(s,new S(i),g)),ae(u.d).slice(0,g)===ae(a.d).slice(0,g))return a=a.times(2),o!==0&&(a=a.plus(yr(S,g+2,I).times(o+""))),a=ye(a,new S(C),g),S.precision=I,t==null?(U=!0,D(a,I)):a;a=u,i+=2}}function sn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ue(r/N),e.d=[],n=(r+1)%N,r<0&&(n+=N),nLt||e.e<-Lt))throw Error(br+r)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,r){var n,i,o,s,a,u,g,T,C=e.d;for(s=1,o=C[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=N,i=t,g=C[T=0];else{if(T=Math.ceil((n+1)/N),o=C.length,T>=o)return e;for(g=o=C[T],s=1;o>=10;o/=10)s++;n%=N,i=n-N+s}if(r!==void 0&&(o=Se(10,s-i-1),a=g/o%10|0,u=t<0||C[T+1]!==void 0||g%o,u=r<4?(a||u)&&(r==0||r==(e.s<0?3:2)):a>5||a==5&&(r==4||u||r==6&&(n>0?i>0?g/Se(10,s-i):0:C[T-1])%10&1||r==(e.s<0?8:7))),t<1||!C[0])return u?(o=$(e),C.length=1,t=t-o-1,C[0]=Se(10,(N-t%N)%N),e.e=Ue(-t/N)||0):(C.length=1,C[0]=e.e=e.s=0),e;if(n==0?(C.length=T,o=1,T--):(C.length=T+1,o=Se(10,N-n),C[T]=i>0?(g/Se(10,s-i)%Se(10,i)|0)*o:0),u)for(;;)if(T==0){(C[0]+=o)==Q&&(C[0]=1,++e.e);break}else{if(C[T]+=o,C[T]!=Q)break;C[T--]=0,o=1}for(n=C.length;C[--n]===0;)C.pop();if(U&&(e.e>Lt||e.e<-Lt))throw Error(br+$(e));return e}function mn(e,t){var r,n,i,o,s,a,u,g,T,C,O=e.constructor,A=O.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new O(e),U?D(t,A):t;if(u=e.d,C=t.d,n=t.e,g=e.e,u=u.slice(),s=g-n,s){for(T=s<0,T?(r=u,s=-s,a=C.length):(r=C,n=g,a=u.length),i=Math.max(Math.ceil(A/N),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=u.length,a=C.length,T=i0;--i)u[a++]=0;for(i=C.length;i>s;){if(u[--i]0?o=o.charAt(0)+"."+o.slice(1)+Pe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Pe(-i-1)+o,r&&(n=r-s)>0&&(o+=Pe(n))):i>=s?(o+=Pe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Pe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Pe(n))),e.s<0?"-"+o:o}function an(e,t){if(e.length>t)return e.length=t,!0}function pn(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Oe+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return sn(s,o.toString())}else if(typeof o!="string")throw Error(Oe+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Zo.test(o))sn(s,o);else throw Error(Oe+o)}if(i.prototype=R,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=pn,i.config=i.set=es,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oe+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oe+r+": "+n);return this}var Ne,Xo,wr,U,re,Oe,br,Ue,Se,Zo,Z,Q,N,ln,Lt,R,ye,wr,_t,dn=se(()=>{"use strict";c();m();p();d();f();l();Ne=1e9,Xo={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},U=!0,re="[DecimalError] ",Oe=re+"Invalid argument: ",br=re+"Exponent out of range: ",Ue=Math.floor,Se=Math.pow,Zo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Q=1e7,N=7,ln=9007199254740991,Lt=Ue(ln/N),R={};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};R.comparedTo=R.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};R.decimalPlaces=R.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*N;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};R.dividedBy=R.div=function(e){return ye(this,new this.constructor(e))};R.dividedToIntegerBy=R.idiv=function(e){var t=this,r=t.constructor;return D(ye(t,new r(e),0,1),r.precision)};R.equals=R.eq=function(e){return!this.cmp(e)};R.exponent=function(){return $(this)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){return this.cmp(e)>=0};R.isInteger=R.isint=function(){return this.e>this.d.length-2};R.isNegative=R.isneg=function(){return this.s<0};R.isPositive=R.ispos=function(){return this.s>0};R.isZero=function(){return this.s===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Z))throw Error(re+"NaN");if(r.s<1)throw Error(re+(r.s?"NaN":"-Infinity"));return r.eq(Z)?new n(0):(U=!1,t=ye(it(r,o),it(e,o),o),U=!0,D(t,i))};R.minus=R.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mn(t,e):un(t,(e.s=-e.s,e))};R.modulo=R.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(re+"NaN");return r.s?(U=!1,t=ye(r,e,0,1).times(e),U=!0,r.minus(t)):D(new n(r),i)};R.naturalExponential=R.exp=function(){return cn(this)};R.naturalLogarithm=R.ln=function(){return it(this)};R.negated=R.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};R.plus=R.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?un(t,e):mn(t,(e.s=-e.s,e))};R.precision=R.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oe+e);if(t=$(i)+1,n=i.d.length-1,r=n*N+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,o,s,a=this,u=a.constructor;if(a.s<1){if(!a.s)return new u(0);throw Error(re+"NaN")}for(e=$(a),U=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=ae(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ue((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=s=r+3;;)if(o=n,n=o.plus(ye(a,o,s+2)).times(.5),ae(o.d).slice(0,s)===(t=ae(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(D(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(t!="9999")break;s+=4}return U=!0,D(n,r)};R.times=R.mul=function(e){var t,r,n,i,o,s,a,u,g,T=this,C=T.constructor,O=T.d,A=(e=new C(e)).d;if(!T.s||!e.s)return new C(0);for(e.s*=T.s,r=T.e+e.e,u=O.length,g=A.length,u=0;){for(t=0,i=u+n;i>n;)a=o[i]+A[n]*O[i-n-1]+t,o[i--]=a%Q|0,t=a/Q|0;o[i]=(o[i]+t)%Q|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,U?D(e,C.precision):e};R.toDecimalPlaces=R.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(le(e,0,Ne),t===void 0?t=n.rounding:le(t,0,8),D(r,e+$(r)+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ke(n,!0):(le(e,0,Ne),t===void 0?t=i.rounding:le(t,0,8),n=D(new i(n),e+1,t),r=ke(n,!0,e+1)),r};R.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?ke(i):(le(e,0,Ne),t===void 0?t=o.rounding:le(t,0,8),n=D(new o(i),e+$(i)+1,t),r=ke(n.abs(),!1,e+$(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};R.toInteger=R.toint=function(){var e=this,t=e.constructor;return D(new t(e),$(e)+1,t.rounding)};R.toNumber=function(){return+this};R.toPower=R.pow=function(e){var t,r,n,i,o,s,a=this,u=a.constructor,g=12,T=+(e=new u(e));if(!e.s)return new u(Z);if(a=new u(a),!a.s){if(e.s<1)throw Error(re+"Infinity");return a}if(a.eq(Z))return a;if(n=u.precision,e.eq(Z))return D(a,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=a.s,s){if((r=T<0?-T:T)<=ln){for(i=new u(Z),t=Math.ceil(n/N+4),U=!1;r%2&&(i=i.times(a),an(i.d,t)),r=Ue(r/2),r!==0;)a=a.times(a),an(a.d,t);return U=!0,e.s<0?new u(Z).div(i):D(i,n)}}else if(o<0)throw Error(re+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,a.s=1,U=!1,i=e.times(it(a,n+g)),U=!0,i=cn(i),i.s=o,i};R.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=$(i),n=ke(i,r<=o.toExpNeg||r>=o.toExpPos)):(le(e,1,Ne),t===void 0?t=o.rounding:le(t,0,8),i=D(new o(i),e,t),r=$(i),n=ke(i,e<=r||r<=o.toExpNeg,e)),n};R.toSignificantDigits=R.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(le(e,1,Ne),t===void 0?t=n.rounding:le(t,0,8)),D(new n(r),e,t)};R.toString=R.valueOf=R.val=R.toJSON=R[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$(e),r=e.constructor;return ke(e,t<=r.toExpNeg||t>=r.toExpPos)};ye=function(){function e(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%Q|0,s=o/Q|0;return s&&n.unshift(s),n}function t(n,i,o,s){var a,u;if(o!=s)u=o>s?1:-1;else for(a=u=0;ai[a]?1:-1;break}return u}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]1;)n.shift()}return function(n,i,o,s){var a,u,g,T,C,O,A,M,S,I,ne,z,_e,k,Ae,fr,ie,St,Ot=n.constructor,No=n.s==i.s?1:-1,oe=n.d,q=i.d;if(!n.s)return new Ot(n);if(!i.s)throw Error(re+"Division by zero");for(u=n.e-i.e,ie=q.length,Ae=oe.length,A=new Ot(No),M=A.d=[],g=0;q[g]==(oe[g]||0);)++g;if(q[g]>(oe[g]||0)&&--u,o==null?z=o=Ot.precision:s?z=o+($(n)-$(i))+1:z=o,z<0)return new Ot(0);if(z=z/N+2|0,g=0,ie==1)for(T=0,q=q[0],z++;(g1&&(q=e(q,T),oe=e(oe,T),ie=q.length,Ae=oe.length),k=ie,S=oe.slice(0,ie),I=S.length;I=Q/2&&++fr;do T=0,a=t(q,S,ie,I),a<0?(ne=S[0],ie!=I&&(ne=ne*Q+(S[1]||0)),T=ne/fr|0,T>1?(T>=Q&&(T=Q-1),C=e(q,T),O=C.length,I=S.length,a=t(C,S,O,I),a==1&&(T--,r(C,ie{"use strict";dn();v=class extends _t{static isDecimal(t){return t instanceof _t}static random(t=20){{let n=crypto.getRandomValues(new Uint8Array(t)).reduce((i,o)=>i+o,"");return new _t(`0.${n.slice(0,t)}`)}}},ue=v});function ts(){return!1}var rs,ns,yn,bn=se(()=>{"use strict";c();m();p();d();f();l();rs={},ns={existsSync:ts,promises:rs},yn=ns});function us(...e){return e.join("/")}function cs(...e){return e.join("/")}var In,ms,ps,st,Ln=se(()=>{"use strict";c();m();p();d();f();l();In="/",ms={sep:In},ps={resolve:us,posix:ms,join:cs,sep:In},st=ps});var Ut,Dn=se(()=>{"use strict";c();m();p();d();f();l();Ut=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Nn=De((Wc,Fn)=>{"use strict";c();m();p();d();f();l();Fn.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Bn=De((am,qn)=>{"use strict";c();m();p();d();f();l();qn.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Vn=De((fm,$n)=>{"use strict";c();m();p();d();f();l();var bs=Bn();$n.exports=e=>typeof e=="string"?e.replace(bs(),""):e});var kr=De((Mf,Jn)=>{"use strict";c();m();p();d();f();l();Jn.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{fa.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Ei=De(()=>{"use strict";c();m();p();d();f();l()});var ul={};Mt(ul,{Debug:()=>Tr,Decimal:()=>ue,Extensions:()=>Er,MetricsClient:()=>Ze,NotFoundError:()=>we,PrismaClientInitializationError:()=>L,PrismaClientKnownRequestError:()=>J,PrismaClientRustPanicError:()=>Ee,PrismaClientUnknownRequestError:()=>G,PrismaClientValidationError:()=>j,Public:()=>xr,Sql:()=>X,defineDmmfProperty:()=>hi,deserializeJsonResponse:()=>$e,dmmfToRuntimeDataModel:()=>gi,empty:()=>Pi,getPrismaClient:()=>_o,getRuntime:()=>Ce,join:()=>xi,makeStrictEnum:()=>Do,makeTypedQueryFactory:()=>yi,objectEnumValues:()=>Wt,raw:()=>Vr,serializeJsonQuery:()=>Zt,skip:()=>Xt,sqltag:()=>jr,warnEnvConflicts:()=>void 0,warnOnce:()=>ct});module.exports=jo(ul);c();m();p();d();f();l();var Er={};Mt(Er,{defineExtension:()=>fn,getExtensionContext:()=>gn});c();m();p();d();f();l();c();m();p();d();f();l();function fn(e){return typeof e=="function"?e:t=>t.$extends(e)}c();m();p();d();f();l();function gn(e){return e}var xr={};Mt(xr,{validator:()=>hn});c();m();p();d();f();l();c();m();p();d();f();l();function hn(...e){return t=>t}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Pr,wn,En,xn,Pn=!0;typeof h<"u"&&({FORCE_COLOR:Pr,NODE_DISABLE_COLORS:wn,NO_COLOR:En,TERM:xn}=h.env||{},Pn=h.stdout&&h.stdout.isTTY);var is={enabled:!wn&&En==null&&xn!=="dumb"&&(Pr!=null&&Pr!=="0"||Pn)};function F(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!is.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var fu=F(0,0),Dt=F(1,22),Ft=F(2,22),gu=F(3,23),vn=F(4,24),hu=F(7,27),yu=F(8,28),bu=F(9,29),wu=F(30,39),qe=F(31,39),Tn=F(32,39),Cn=F(33,39),Rn=F(34,39),Eu=F(35,39),An=F(36,39),xu=F(37,39),Sn=F(90,39),Pu=F(90,39),vu=F(40,49),Tu=F(41,49),Cu=F(42,49),Ru=F(43,49),Au=F(44,49),Su=F(45,49),Ou=F(46,49),ku=F(47,49);c();m();p();d();f();l();var os=100,On=["green","yellow","blue","magenta","cyan","red"],Nt=[],kn=Date.now(),ss=0,vr=typeof h<"u"?h.env:{};globalThis.DEBUG??=vr.DEBUG??"";globalThis.DEBUG_COLORS??=vr.DEBUG_COLORS?vr.DEBUG_COLORS==="true":!0;var ot={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function as(e){let t={color:On[ss++%On.length],enabled:ot.enabled(e),namespace:e,log:ot.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Nt.push([o,...n]),Nt.length>os&&Nt.shift(),ot.enabled(o)||i){let u=n.map(T=>typeof T=="string"?T:ls(T)),g=`+${Date.now()-kn}ms`;kn=Date.now(),a(o,...u,g)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Tr=new Proxy(as,{get:(e,t)=>ot[t],set:(e,t,r)=>ot[t]=r});function ls(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Mn(){Nt.length=0}var ee=Tr;c();m();p();d();f();l();c();m();p();d();f();l();var Cr=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];c();m();p();d();f();l();var _n="library";function at(e){let t=ds();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":_n)}function ds(){let e=h.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}c();m();p();d();f();l();c();m();p();d();f();l();var Me;(t=>{let e;(k=>(k.findUnique="findUnique",k.findUniqueOrThrow="findUniqueOrThrow",k.findFirst="findFirst",k.findFirstOrThrow="findFirstOrThrow",k.findMany="findMany",k.create="create",k.createMany="createMany",k.createManyAndReturn="createManyAndReturn",k.update="update",k.updateMany="updateMany",k.upsert="upsert",k.delete="delete",k.deleteMany="deleteMany",k.groupBy="groupBy",k.count="count",k.aggregate="aggregate",k.findRaw="findRaw",k.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Me||={});var ut={};Mt(ut,{error:()=>hs,info:()=>gs,log:()=>fs,query:()=>ys,should:()=>Un,tags:()=>lt,warn:()=>Rr});c();m();p();d();f();l();var lt={error:qe("prisma:error"),warn:Cn("prisma:warn"),info:An("prisma:info"),query:Rn("prisma:query")},Un={warn:()=>!h.env.PRISMA_DISABLE_WARNINGS};function fs(...e){console.log(...e)}function Rr(e,...t){Un.warn()&&console.warn(`${lt.warn} ${e}`,...t)}function gs(e,...t){console.info(`${lt.info} ${e}`,...t)}function hs(e,...t){console.error(`${lt.error} ${e}`,...t)}function ys(e,...t){console.log(`${lt.query} ${e}`,...t)}c();m();p();d();f();l();function qt(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}c();m();p();d();f();l();function be(e,t){throw new Error(t)}c();m();p();d();f();l();function Ar(e,t){return Object.prototype.hasOwnProperty.call(e,t)}c();m();p();d();f();l();var Sr=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});c();m();p();d();f();l();function Be(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}c();m();p();d();f();l();function Or(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{jn.has(e)||(jn.add(e),Rr(t,...r))};c();m();p();d();f();l();var J=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};K(J,"PrismaClientKnownRequestError");var we=class extends J{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};K(we,"NotFoundError");c();m();p();d();f();l();var L=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};K(L,"PrismaClientInitializationError");c();m();p();d();f();l();var Ee=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};K(Ee,"PrismaClientRustPanicError");c();m();p();d();f();l();var G=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};K(G,"PrismaClientUnknownRequestError");c();m();p();d();f();l();var j=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};K(j,"PrismaClientValidationError");c();m();p();d();f();l();l();function $e(e){return e===null?e:Array.isArray(e)?e.map($e):typeof e=="object"?ws(e)?Es(e):Be(e,$e):e}function ws(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function Es({$type:e,value:t}){switch(e){case"BigInt":return BigInt(t);case"Bytes":return b.from(t,"base64");case"DateTime":return new Date(t);case"Decimal":return new ue(t);case"Json":return JSON.parse(t);default:be(t,"Unknown tagged value")}}c();m();p();d();f();l();c();m();p();d();f();l();function Ve(e){return e.substring(0,1).toLowerCase()+e.substring(1)}c();m();p();d();f();l();function je(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Bt(e){return e.toString()!=="Invalid Date"}c();m();p();d();f();l();l();function Qe(e){return v.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}c();m();p();d();f();l();c();m();p();d();f();l();var xs=Fe(Nn());var Ps={red:qe,gray:Sn,dim:Ft,bold:Dt,underline:vn,highlightSource:e=>e.highlight()},vs={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Ts({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Cs({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],u=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${u}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${u}`)),t&&a.push(s.underline(Rs(t))),i){a.push("");let g=[i.toString()];o&&(g.push(o),g.push(s.dim(")"))),a.push(g.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function Rs(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function Je(e){let t=e.showColors?Ps:vs,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=Ts(e),Cs(r,t)}c();m();p();d();f();l();var Yn=Fe(kr());c();m();p();d();f();l();function Kn(e,t,r){let n=Hn(e),i=As(n),o=Os(i);o?$t(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Hn(e){return e.errors.flatMap(t=>t.kind==="Union"?Hn(t):[t])}function As(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Ss(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Ss(e,t){return[...new Set(e.concat(t))]}function Os(e){return Or(e,(t,r)=>{let n=Gn(t),i=Gn(r);return n!==i?n-i:Wn(t)-Wn(r)})}function Gn(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Wn(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}c();m();p();d();f();l();var te=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};c();m();p();d();f();l();c();m();p();d();f();l();var Ge=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};c();m();p();d();f();l();c();m();p();d();f();l();var Vt=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};c();m();p();d();f();l();var jt=e=>e,Qt={bold:jt,red:jt,green:jt,dim:jt,enabled:!1},zn={bold:Dt,red:qe,green:Tn,dim:Ft,enabled:!0},We={write(e){e.writeLine(",")}};c();m();p();d();f();l();var ce=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};c();m();p();d();f();l();var ve=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var Ke=class extends ve{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Vt(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new ce("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(We,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var He=class e extends ve{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let u;if(s.value instanceof e?u=s.value.getField(a):s.value instanceof Ke&&(u=s.value.getField(Number(a))),!u)return;s=u}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new ce("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(We,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};c();m();p();d();f();l();var W=class extends ve{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new ce(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};c();m();p();d();f();l();var mt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(We,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function $t(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Ms(e,t);break;case"IncludeOnScalar":Is(e,t);break;case"EmptySelection":Ls(e,t,r);break;case"UnknownSelectionField":Ns(e,t);break;case"InvalidSelectionValue":Us(e,t);break;case"UnknownArgument":qs(e,t);break;case"UnknownInputField":Bs(e,t);break;case"RequiredArgumentMissing":$s(e,t);break;case"InvalidArgumentType":Vs(e,t);break;case"InvalidArgumentValue":js(e,t);break;case"ValueTooLarge":Qs(e,t);break;case"SomeFieldsMissing":Js(e,t);break;case"TooManyFieldsGiven":Gs(e,t);break;case"Union":Kn(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Ms(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Is(e,t){let[r,n]=pt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new te(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${dt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function Ls(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){_s(e,t,i);return}if(n.hasField("select")){Ds(e,t);return}}if(r?.[Ve(e.outputType.name)]){Fs(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function _s(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new te(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ds(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),ei(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${dt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Fs(e,t){let r=new mt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new te("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=pt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let u=a?.value.asObject()??new He;u.addSuggestion(n),a.value=u}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ns(e,t){let r=ti(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":ei(n,e.outputType);break;case"include":Ws(n,e.outputType);break;case"omit":Ks(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(dt(n)),i.join(" ")})}function Us(e,t){let r=ti(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function qs(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Hs(n,e.arguments)),t.addErrorMessage(i=>Xn(i,r,e.arguments.map(o=>o.name)))}function Bs(e,t){let[r,n]=pt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&ri(o,e.inputType)}t.addErrorMessage(o=>Xn(o,n,e.inputType.fields.map(s=>s.name)))}function Xn(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Ys(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(dt(e)),n.join(" ")}function $s(e,t){let r;t.addErrorMessage(u=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${u.green(o)}\` must not be ${u.red("null")}.`:`Argument \`${u.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=pt(e.argumentPath),s=new mt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let u of e.inputTypes[0].fields)s.addField(u.name,u.typeNames.join(" | "));a.addSuggestion(new te(o,s).makeRequired())}else{let u=e.inputTypes.map(Zn).join(" | ");a.addSuggestion(new te(o,u).makeRequired())}}function Zn(e){return e.kind==="list"?`${Zn(e.elementType)}[]`:e.name}function Vs(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Jt("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function js(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Jt("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Qs(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Js(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&ri(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Jt("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(dt(i)),o.join(" ")})}function Gs(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Jt("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function ei(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new te(r.name,"true"))}function Ws(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new te(r.name,"true"))}function Ks(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new te(r.name,"true"))}function Hs(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new te(r.name,r.typeNames.join(" | ")))}function ti(e,t){let[r,n]=pt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),u=o?.getField(n);return o&&u?{parentKind:"select",parent:o,field:u,fieldName:n}:(u=s?.getField(n),s&&u?{parentKind:"include",field:u,parent:s,fieldName:n}:(u=a?.getField(n),a&&u?{parentKind:"omit",field:u,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function ri(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new te(r.name,r.typeNames.join(" | ")))}function pt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function dt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Jt(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var zs=3;function Ys(e,t){let r=1/0,n;for(let i of t){let o=(0,Yn.default)(e,i);o>zs||o`}};function ze(e){return e instanceof ft}c();m();p();d();f();l();var Gt=Symbol(),Mr=new WeakMap,xe=class{constructor(t){t===Gt?Mr.set(this,`Prisma.${this._getName()}`):Mr.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Mr.get(this)}},gt=class extends xe{_getNamespace(){return"NullTypes"}},ht=class extends gt{};Ir(ht,"DbNull");var yt=class extends gt{};Ir(yt,"JsonNull");var bt=class extends gt{};Ir(bt,"AnyNull");var Wt={classes:{DbNull:ht,JsonNull:yt,AnyNull:bt},instances:{DbNull:new ht(Gt),JsonNull:new yt(Gt),AnyNull:new bt(Gt)}};function Ir(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}c();m();p();d();f();l();var ii=": ",Kt=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+ii.length}write(t){let r=new ce(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(ii).write(this.value)}};var Lr=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function Ye(e){return new Lr(oi(e))}function oi(e){let t=new He;for(let[r,n]of Object.entries(e)){let i=new Kt(r,si(n));t.addField(i)}return t}function si(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(Qe(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return b.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Bt(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof xe?new W(`Prisma.${e._getName()}`):ze(e)?new W(`prisma.${ni(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Xs(e):typeof e=="object"?oi(e):new W(Object.prototype.toString.call(e))}function Xs(e){let t=new Ke;for(let r of e)t.addItem(si(r));return t}function Ht(e,t){let r=t==="pretty"?zn:Qt,n=e.renderAllMessages(r),i=new Ge(0,{colors:r}).write(e).toString();return{message:n,args:i}}function zt({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=Ye(e);for(let C of t)$t(C,a,s);let{message:u,args:g}=Ht(a,r),T=Je({message:u,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:g});throw new j(T,{clientVersion:o})}c();m();p();d();f();l();c();m();p();d();f();l();var me=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};c();m();p();d();f();l();function wt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}c();m();p();d();f();l();function pe(e){return e.replace(/^./,t=>t.toLowerCase())}c();m();p();d();f();l();function li(e,t,r){let n=pe(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Zs({...e,...ai(t.name,e,t.result.$allModels),...ai(t.name,e,t.result[n])})}function Zs(e){let t=new me,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Be(e,n=>({...n,needs:r(n.name,new Set)}))}function ai(e,t,r){return r?Be(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:ea(t,o,i)})):{}}function ea(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function ui(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function ci(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Yt=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new me;this.modelExtensionsCache=new me;this.queryCallbacksCache=new me;this.clientExtensions=wt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=wt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>li(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=pe(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},Xe=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Yt(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Yt(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};c();m();p();d();f();l();c();m();p();d();f();l();var mi=Symbol(),Et=class{constructor(t){if(t!==mi)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Xt:t}},Xt=new Et(mi);function de(e){return e instanceof Et}var ta={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},pi="explicitly `undefined` values are not allowed";function Zt({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=Xe.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:u,previewFeatures:g,globalOmit:T}){let C=new _r({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:u,previewFeatures:g,globalOmit:T});return{modelName:e,action:ta[t],query:xt(r,C)}}function xt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:fi(r,n),selection:ra(e,t,i,n)}}function ra(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),sa(e,n)):na(n,t,r)}function na(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&ia(n,t,e),e.isPreviewFeatureOn("omitApi")&&oa(n,r,e),n}function ia(e,t,r){for(let[n,i]of Object.entries(t)){if(de(i))continue;let o=r.nestSelection(n);if(Dr(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=xt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=xt(i,o)}}function oa(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=ci(i,n);for(let[s,a]of Object.entries(o)){if(de(a))continue;Dr(a,r.nestSelection(s));let u=r.findField(s);n?.[s]&&!u||(e[s]=!a)}}function sa(e,t){let r={},n=t.getComputedFields(),i=ui(e,n);for(let[o,s]of Object.entries(i)){if(de(s))continue;let a=t.nestSelection(o);Dr(s,a);let u=t.findField(o);if(!(n?.[o]&&!u)){if(s===!1||s===void 0||de(s)){r[o]=!1;continue}if(s===!0){u?.kind==="object"?r[o]=xt({},a):r[o]=!0;continue}r[o]=xt(s,a)}}return r}function di(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(je(e)){if(Bt(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(ze(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return aa(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:b.from(e).toString("base64")};if(la(e))return e.values;if(Qe(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof xe){if(e!==Wt.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(ua(e))return e.toJSON();if(typeof e=="object")return fi(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function fi(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);de(i)||(i!==void 0?r[n]=di(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:pi}))}return r}function aa(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[Ve(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:be(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};c();m();p();d();f();l();var Ze=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};c();m();p();d();f();l();function gi(e){return{models:Fr(e.models),enums:Fr(e.enums),types:Fr(e.types)}}function Fr(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function hi(e,t){let r=wt(()=>ca(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ca(e){throw new Error("Prisma.dmmf is not available when running in edge runtimes.")}function Nr(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}c();m();p();d();f();l();var Ur=new WeakMap,er="$$PrismaTypedSql",qr=class{constructor(t,r){Ur.set(this,{sql:t,values:r}),Object.defineProperty(this,er,{value:er})}get sql(){return Ur.get(this).sql}get values(){return Ur.get(this).values}};function yi(e){return(...t)=>new qr(e,t)}function bi(e){return e!=null&&e[er]===er}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();function Pt(e){return{ok:!1,error:e,map(){return Pt(e)},flatMap(){return Pt(e)}}}var Br=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},$r=e=>{let t=new Br,r=fe(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:fe(t,e.queryRaw.bind(e)),executeRaw:fe(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>ma(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=da(t,e.getConnectionInfo.bind(e))),n},ma=(e,t)=>{let r=fe(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:fe(e,t.queryRaw.bind(t)),executeRaw:fe(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>pa(e,o))}},pa=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:fe(e,t.queryRaw.bind(t)),executeRaw:fe(e,t.executeRaw.bind(t)),commit:fe(e,t.commit.bind(t)),rollback:fe(e,t.rollback.bind(t))});function fe(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Pt({kind:"GenericJs",id:i})}}}function da(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Pt({kind:"GenericJs",id:i})}}}var Lo=Fe(wi());var ek=Fe(Ei());Dn();bn();Ln();c();m();p();d();f();l();var X=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}c();m();p();d();f();l();c();m();p();d();f();l();var tr={enumerable:!0,configurable:!0,writable:!0};function rr(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>tr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var vi=Symbol.for("nodejs.util.inspect.custom");function ge(e,t){let r=ga(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Ti(Reflect.ownKeys(o),r),a=Ti(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let u=r.get(s);return u?u.getPropertyDescriptor?{...tr,...u?.getPropertyDescriptor(s)}:tr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[vi]=function(){let o={...this};return delete o[vi],o},i}function ga(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Ti(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}c();m();p();d();f();l();function et(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}c();m();p();d();f();l();function nr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}c();m();p();d();f();l();function Ci(e){if(e===void 0)return"";let t=Ye(e);return new Ge(0,{colors:Qt}).write(t).toString()}c();m();p();d();f();l();var ha="P2037";function ir({error:e,user_facing_error:t},r,n){return t.error_code?new J(ya(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new G(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function ya(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===ha&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Qr=class{getLocation(){return null}};function Te(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Qr}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Ri={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function tt(e={}){let t=wa(e);return Object.entries(t).reduce((n,[i,o])=>(Ri[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function wa(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function or(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Ai(e,t){let r=or(e);return t({action:"aggregate",unpacker:r,argsMapper:tt})(e)}c();m();p();d();f();l();function Ea(e={}){let{select:t,...r}=e;return typeof t=="object"?tt({...r,_count:t}):tt({...r,_count:{_all:!0}})}function xa(e={}){return typeof e.select=="object"?t=>or(e)(t)._count:t=>or(e)(t)._count._all}function Si(e,t){return t({action:"count",unpacker:xa(e),argsMapper:Ea})(e)}c();m();p();d();f();l();function Pa(e={}){let t=tt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function va(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function Oi(e,t){return t({action:"groupBy",unpacker:va(e),argsMapper:Pa})(e)}function ki(e,t,r){if(t==="aggregate")return n=>Ai(n,r);if(t==="count")return n=>Si(n,r);if(t==="groupBy")return n=>Oi(n,r)}c();m();p();d();f();l();function Mi(e,t){let r=t.fields.filter(i=>!i.relationName),n=Sr(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new ft(e,o,s.type,s.isList,s.kind==="enum")},...rr(Object.keys(n))})}c();m();p();d();f();l();c();m();p();d();f();l();var Ii=e=>Array.isArray(e)?e:e.split("."),Jr=(e,t)=>Ii(t).reduce((r,n)=>r&&r[n],e),Li=(e,t,r)=>Ii(t).reduceRight((n,i,o,s)=>Object.assign({},Jr(e,s.slice(0,o)),{[i]:n}),r);function Ta(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Ca(e,t,r){return t===void 0?e??{}:Li(t,r,e||!0)}function Gr(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((u,g)=>({...u,[g.name]:g}),{});return u=>{let g=Te(e._errorFormat),T=Ta(n,i),C=Ca(u,o,T),O=r({dataPath:T,callsite:g})(C),A=Ra(e,t);return new Proxy(O,{get(M,S){if(!A.includes(S))return M[S];let ne=[a[S].type,r,S],z=[T,C];return Gr(e,...ne,...z)},...rr([...A,...Object.getOwnPropertyNames(O)])})}}function Ra(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}c();m();p();d();f();l();function _i(e,t,r,n){return e===Me.ModelAction.findFirstOrThrow||e===Me.ModelAction.findUniqueOrThrow?Aa(t,r,n):n}function Aa(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=Je({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new j(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof J&&o.code==="P2025"?new we(`No ${e} found`,t):o})}}var Sa=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Oa=["aggregate","count","groupBy"];function Wr(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[ka(e,t),Ia(e,t),vt(r),H("name",()=>t),H("$name",()=>t),H("$parent",()=>e._appliedParent)];return ge({},n)}function ka(e,t){let r=pe(t),n=Object.keys(Me.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=u=>e._request(u);s=_i(o,t,e._clientVersion,s);let a=u=>g=>{let T=Te(e._errorFormat);return e._createPrismaPromise(C=>{let O={args:g,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:C,callsite:T};return s({...O,...u})})};return Sa.includes(o)?Gr(e,t,a):Ma(i)?ki(e,i,a):a({})}}}function Ma(e){return Oa.includes(e)}function Ia(e,t){return Ie(H("fields",()=>{let r=e._runtimeDataModel.models[t];return Mi(t,r)}))}c();m();p();d();f();l();function Di(e){return e.replace(/^./,t=>t.toUpperCase())}var Kr=Symbol();function Tt(e){let t=[La(e),H(Kr,()=>e),H("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(vt(r)),ge(e,t)}function La(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(pe),n=[...new Set(t.concat(r))];return Ie({getKeys(){return n},getPropertyValue(i){let o=Di(i);if(e._runtimeDataModel.models[o]!==void 0)return Wr(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Wr(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Fi(e){return e[Kr]?e[Kr]:e}function Ni(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Tt(t)}c();m();p();d();f();l();c();m();p();d();f();l();function Ui({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let u of Object.values(o)){if(n){if(n[u.name])continue;let g=u.needs.filter(T=>n[T]);g.length>0&&a.push(et(g))}else if(r){if(!r[u.name])continue;let g=u.needs.filter(T=>!r[T]);g.length>0&&a.push(et(g))}_a(e,u.needs)&&s.push(Da(u,ge(e,s)))}return s.length>0||a.length>0?ge(e,[...s,...a]):e}function _a(e,t){return t.every(r=>Ar(e,r))}function Da(e,t){return Ie(H(e.name,()=>e.compute(t)))}c();m();p();d();f();l();function sr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sT.name===o);if(!u||u.kind!=="object"||!u.relationName)continue;let g=typeof s=="object"?s:{};t[o]=sr({visitor:i,result:t[o],args:g,modelName:u.type,runtimeDataModel:n})}}function Bi({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:sr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,u,g)=>{let T=pe(u);return Ui({result:a,modelName:T,select:g.select,omit:g.select?void 0:{...o?.[T],...g.omit},extensions:n})}})}c();m();p();d();f();l();c();m();p();d();f();l();l();function $i(e){if(e instanceof X)return Fa(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:$i(t.args??{}),__internalParams:t,query:(s,a=t)=>{let u=a.customDataProxyFetch;return a.customDataProxyFetch=Wi(o,u),a.args=s,ji(e,a,r,n+1)}})})}function Qi(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return ji(e,t,s)}function Ji(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?Gi(r,n,0,e):e(r)}}function Gi(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let u=a.customDataProxyFetch;return a.customDataProxyFetch=Wi(i,u),Gi(a,t,r+1,n)}})}var Vi=e=>e;function Wi(e=Vi,t=Vi){return r=>e(t(r))}c();m();p();d();f();l();var Ki=ee("prisma:client"),Hi={Vercel:"vercel","Netlify CI":"netlify"};function zi({postinstall:e,ciName:t,clientVersion:r}){if(Ki("checkPlatformCaching:postinstall",e),Ki("checkPlatformCaching:ciName",t),e===!0&&t&&t in Hi){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Hi[t]}-build`;throw console.error(n),new L(n,r)}}c();m();p();d();f();l();function Yi(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Na="Cloudflare-Workers",Ua="node";function Xi(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Na?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Ua?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var qa={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Ce(){let e=Xi();return{id:e,prettyName:qa[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}c();m();p();d();f();l();c();m();p();d();f();l();function ar({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Ce().id==="workerd"?new L(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new L(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new L("error: Missing URL environment variable, value, or override.",n);return i}c();m();p();d();f();l();c();m();p();d();f();l();function Zi(e){if(e?.kind==="itx")return e.options.id}c();m();p();d();f();l();var Hr,eo={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new L(`The \`adapter\` option for \`PrismaClient\` is required in this context (${Ce().prettyName})`,t);if(n===void 0)throw new L("WASM engine was unexpectedly `undefined`",t);Hr===void 0&&(Hr=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new L("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},u=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(u.exports),o.QueryEngine})());let i=await Hr;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var Ba="P2036",he=ee("prisma:client:libraryEngine");function $a(e){return e.item_type==="query"&&"query"in e}function Va(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var VR=[...Cr,"native"],Rt=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??eo,this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(ja(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new J(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(he("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(t){if(!t)throw new G("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new G("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new w(this),{adapter:r}=this.config;r&&he("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:h.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new L(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",$a(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):(Va(r),this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path}))}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return he(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{he("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,he("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new L(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return he("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),he("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,he("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){he(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new G(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof L)throw s;s.code==="GenericFailure"&&s.message?.startsWith("PANIC:");let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new G(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){he("requestBatch");let i=nr(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),Zi(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new G(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:u}=s;if(Array.isArray(a))return a.map(g=>g.errors&&g.errors.length>0?this.loggerRustPanic??this.buildQueryError(g.errors[0]):{data:g,elapsed:0});throw u&&u.length===1?new Error(u[0].error):new Error(JSON.stringify(s))}buildQueryError(t){t.user_facing_error.is_panic;let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:ir(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Ba&&this.config.adapter){let r=t.meta?.id;qt(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return qt(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function ja(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}c();m();p();d();f();l();var At="Accelerate has not been setup correctly. Make sure your client is using `.$extends(withAccelerate())`. See https://pris.ly/d/accelerate-getting-started",lr=class{constructor(t){this.config=t;this.name="AccelerateEngine";this.resolveDatasourceUrl=this.config.accelerateUtils?.resolveDatasourceUrl;this.getBatchRequestPayload=this.config.accelerateUtils?.getBatchRequestPayload;this.prismaGraphQLToJSError=this.config.accelerateUtils?.prismaGraphQLToJSError;this.PrismaClientUnknownRequestError=this.config.accelerateUtils?.PrismaClientUnknownRequestError;this.PrismaClientInitializationError=this.config.accelerateUtils?.PrismaClientInitializationError;this.PrismaClientKnownRequestError=this.config.accelerateUtils?.PrismaClientKnownRequestError;this.debug=this.config.accelerateUtils?.debug;this.engineVersion=this.config.accelerateUtils?.engineVersion;this.clientVersion=this.config.accelerateUtils?.clientVersion}onBeforeExit(t){}async start(){}async stop(){}version(t){return"unknown"}transaction(t,r,n){throw new L(At,this.config.clientVersion)}metrics(t){throw new L(At,this.config.clientVersion)}request(t,r){throw new L(At,this.config.clientVersion)}requestBatch(t,r){throw new L(At,this.config.clientVersion)}applyPendingMigrations(){throw new L(At,this.config.clientVersion)}};function to({copyEngine:e=!0},t){let r;try{r=ar({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...h.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&ct("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=at(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",u=i==="binary";if(o&&s||s&&!1){let g;throw e?r?.startsWith("prisma://")?g=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:g=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:g=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new j(g.join(` -`),{clientVersion:t.clientVersion})}if(s)return new Rt(t);if(o)return new lr(t);{let g=[`PrismaClient failed to initialize because it wasn't configured to run in this environment (${Ce().prettyName}).`,"In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:","- Enable Driver Adapters: https://pris.ly/d/driver-adapters","- Enable Accelerate: https://pris.ly/d/accelerate"];throw new j(g.join(` -`),{clientVersion:t.clientVersion})}throw new j("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}c();m();p();d();f();l();function ur({generator:e}){return e?.previewFeatures??[]}c();m();p();d();f();l();var ro=e=>({command:e});c();m();p();d();f();l();c();m();p();d();f();l();var no=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);c();m();p();d();f();l();l();function rt(e){try{return io(e,"fast")}catch{return io(e,"slow")}}function io(e,t){return JSON.stringify(e.map(r=>so(r,t)))}function so(e,t){return Array.isArray(e)?e.map(r=>so(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:je(e)?{prisma__type:"date",prisma__value:e.toJSON()}:ue.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:b.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Qa(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:b.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?ao(e):e}function Qa(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function ao(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(oo);let t={};for(let r of Object.keys(e))t[r]=oo(e[r]);return t}function oo(e){return typeof e=="bigint"?e.toString():ao(e)}c();m();p();d();f();l();var Ja=["$connect","$disconnect","$on","$transaction","$use","$extends"],lo=Ja;var Ga=/^(\s*alter\s)/i,uo=ee("prisma:client");function zr(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Ga.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Yr=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(bi(r))n=r.sql,i={values:rt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:rt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:rt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:rt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=no(r),i={values:rt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?uo(`prisma.${e}(${n}, ${i.values})`):uo(`prisma.${e}(${n})`),{query:n,parameters:i}},co={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new X(t,r)}},mo={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};c();m();p();d();f();l();function Xr(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=po(r(o)):po(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function po(e){return typeof e.then=="function"?e:Promise.resolve(e)}c();m();p();d();f();l();var fo={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Zr=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??fo}};function go(e){return e.includes("tracing")?new Zr:fo}c();m();p();d();f();l();function ho(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}c();m();p();d();f();l();function yo(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}c();m();p();d();f();l();var cr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};c();m();p();d();f();l();var Eo=Fe(Vn());c();m();p();d();f();l();function mr(e){return typeof e.batchRequestIdx=="number"}c();m();p();d();f();l();function bo(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(en(e.query.arguments)),t.push(en(e.query.selection)),t.join("")}function en(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${en(n)})`:r}).join(" ")})`}c();m();p();d();f();l();var Wa={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function tn(e){return Wa[e]}c();m();p();d();f();l();var pr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,h.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iLe("bigint",r));case"bytes-array":return t.map(r=>Le("bytes",r));case"decimal-array":return t.map(r=>Le("decimal",r));case"datetime-array":return t.map(r=>Le("datetime",r));case"date-array":return t.map(r=>Le("date",r));case"time-array":return t.map(r=>Le("time",r));default:return t}}function wo(e){let t=[],r=Ka(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(C=>C.protocolQuery),u=this.client._tracingHelper.getTraceParent(s),g=n.some(C=>tn(C.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:u,transaction:za(o),containsWrite:g,customDataProxyFetch:i})).map((C,O)=>{if(C instanceof Error)return C;try{return this.mapQueryEngineResult(n[O],C)}catch(A){return A}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?xo(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:tn(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:bo(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return h.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Ha(t),Ya(t,i)||t instanceof we)throw t;if(t instanceof J&&Xa(t)){let g=Po(t.meta);zt({args:o,errors:[g],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let u=t.message;if(n&&(u=Je({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:u})),u=this.sanitizeMessage(u),t.code){let g=s?{modelName:s,...t.meta}:t.meta;throw new J(u,{code:t.code,clientVersion:this.client._clientVersion,meta:g,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Ee(u,this.client._clientVersion);if(t instanceof G)throw new G(u,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof L)throw new L(u,this.client._clientVersion);if(t instanceof Ee)throw new Ee(u,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Eo.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(g=>g!=="select"&&g!=="include"),a=Jr(o,s),u=i==="queryRaw"?wo(a):$e(a);return n?n(u):u}get[Symbol.toStringTag](){return"RequestHandler"}};function za(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:xo(e)};be(e,"Unknown transaction kind")}}function xo(e){return{id:e.id,payload:e.payload}}function Ya(e,t){return mr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Xa(e){return e.code==="P2009"||e.code==="P2012"}function Po(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Po)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}c();m();p();d();f();l();var vo="5.22.0";var To=vo;c();m();p();d();f();l();var Oo=Fe(kr());c();m();p();d();f();l();var _=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};K(_,"PrismaClientConstructorValidationError");var Co=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Ro=["pretty","colorless","minimal"],Ao=["info","query","warn","error"],el={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new _(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=nt(r,t)||` Available datasources: ${t.join(", ")}`;throw new _(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new _(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new _(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new _(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new _('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!ur(t).includes("driverAdapters"))throw new _('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(at()==="binary")throw new _('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new _(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new _(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!Ro.includes(e)){let t=nt(e,Ro);throw new _(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new _(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Ao.includes(r)){let n=nt(r,Ao);throw new _(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=nt(i,o);throw new _(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new _(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new _(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new _(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new _('"omit" option is expected to be an object.');if(e===null)throw new _('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=rl(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let u=o.fields.find(g=>g.name===s);if(!u){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(u.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new _(nl(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new _(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=nt(r,t);throw new _(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ko(e,t){for(let[r,n]of Object.entries(e)){if(!Co.includes(r)){let i=nt(r,Co);throw new _(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}el[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new _('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function nt(e,t){if(t.length===0||typeof e!="string")return"";let r=tl(e,t);return r?` Did you mean "${r}"?`:""}function tl(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Oo.default)(e,i)}));r.sort((i,o)=>i.distanceVe(n)===t);if(r)return e[r]}function nl(e,t){let r=Ye(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Ht(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}c();m();p();d();f();l();function Mo(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},u=g=>{o||(o=!0,r(g))};for(let g=0;g{n[g]=T,a()},T=>{if(!mr(T)){u(T);return}T.batchRequestIdx===g?u(T):(i||(i=T),a())})})}var Re=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var il={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},ol=Symbol.for("prisma.client.transaction.id"),sl={id:0,nextId(){return++this.id}};function _o(e){class t{constructor(n){this._originalClient=this;this._middlewares=new cr;this._createPrismaPromise=Xr();this.$extends=Ni;e=n?.__internal?.configOverride?.(e)??e,zi(e),n&&ko(n,e);let i=new Ut().on("error",()=>{});this._extensions=Xe.empty(),this._previewFeatures=ur(e),this._clientVersion=e.clientVersion??To,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=go(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&st.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&st.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=$r(n.adapter);let u=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==u)throw new L(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${u}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new L("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let u=n??{},g=u.__internal??{},T=g.debug===!0;T&&ee.enable("prisma:client");let C=st.resolve(e.dirname,e.relativePath);yn.existsSync(C)||(C=e.dirname),Re("dirname",e.dirname),Re("relativePath",e.relativePath),Re("cwd",C);let O=g.engine||{};if(u.errorFormat?this._errorFormat=u.errorFormat:h.env.NODE_ENV==="production"?this._errorFormat="minimal":h.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:C,dirname:e.dirname,enableDebugLogs:T,allowTriggerPanic:O.allowTriggerPanic,datamodelPath:st.join(e.dirname,e.filename??"schema.prisma"),prismaPath:O.binaryPath??void 0,engineEndpoint:O.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:u.log&&yo(u.log),logQueries:u.log&&!!(typeof u.log=="string"?u.log==="query":u.log.find(A=>typeof A=="string"?A==="query":A.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Yi(u,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:u.transactionOptions?.maxWait??2e3,timeout:u.transactionOptions?.timeout??5e3,isolationLevel:u.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:ar,getBatchRequestPayload:nr,prismaGraphQLToJSError:ir,PrismaClientUnknownRequestError:G,PrismaClientInitializationError:L,PrismaClientKnownRequestError:J,debug:ee("prisma:client:accelerateEngine"),engineVersion:Lo.version,clientVersion:e.clientVersion}},Re("clientVersion",e.clientVersion),this._engine=to(e,this._engineConfig),this._requestHandler=new dr(this,i),u.log)for(let A of u.log){let M=typeof A=="string"?A:A.emit==="stdout"?A.level:null;M&&this.$on(M,S=>{ut.log(`${ut.tags[M]??""}`,S.message||S.query)})}this._metrics=new Ze(this._engine)}catch(u){throw u.clientVersion=this._clientVersion,u}return this._appliedParent=Tt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Mn()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Yr({clientMethod:i,activeProvider:a}),callsite:Te(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=Io(n,i);return zr(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new j("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(zr(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new j(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:ro,callsite:Te(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Yr({clientMethod:i,activeProvider:a}),callsite:Te(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...Io(n,i));throw new j("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new j("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=sl.nextId(),s=ho(n.length),a=n.map((u,g)=>{if(u?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let T=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,C={kind:"batch",id:o,index:g,isolationLevel:T,lock:s};return u.requestTransaction?.(C)??u});return Mo(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),u;try{let g={kind:"itx",...a};u=await n(this._createItxClient(g)),await this._engine.transaction("commit",o,a)}catch(g){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),g}return u}_createItxClient(n){return Tt(ge(Fi(this),[H("_appliedParent",()=>this._appliedParent._createItxClient(n)),H("_createPrismaPromise",()=>Xr(n)),H(ol,()=>n.id),et(lo)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??il,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,u=async g=>{let T=this._middlewares.get(++a);if(T)return this._tracingHelper.runInChildSpan(s.middleware,I=>T(g,ne=>(I?.end(),u(ne))));let{runInTransaction:C,args:O,...A}=g,M={...n,...A};O&&(M.args=i.middlewareArgsToRequestArgs(O)),n.transaction!==void 0&&C===!1&&delete M.transaction;let S=await Qi(this,M);return M.model?Bi({result:S,modelName:M.model,args:M.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):S};return this._tracingHelper.runInChildSpan(s.operation,()=>u(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:u,argsMapper:g,transaction:T,unpacker:C,otelParentCtx:O,customDataProxyFetch:A}){try{n=g?g(n):n;let M={name:"serialize"},S=this._tracingHelper.runInChildSpan(M,()=>Zt({modelName:u,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(Re("Prisma Client call:"),Re(`prisma.${i}(${Ci(n)})`),Re("Generated request:"),Re(JSON.stringify(S,null,2)+` -`)),T?.kind==="batch"&&await T.lock,this._requestHandler.request({protocolQuery:S,modelName:u,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:T,unpacker:C,otelParentCtx:O,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:A})}catch(M){throw M.clientVersion=this._clientVersion,M}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new j("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function Io(e,t){return al(e)?[new X(e,t),co]:[e,mo]}function al(e){return Array.isArray(e)&&Array.isArray(e.raw)}c();m();p();d();f();l();var ll=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Do(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!ll.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}c();m();p();d();f();l();l();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=wasm.js.map diff --git a/keep-notes/prisma/client-generated/schema.prisma b/keep-notes/prisma/client-generated/schema.prisma deleted file mode 100644 index 13e1998..0000000 --- a/keep-notes/prisma/client-generated/schema.prisma +++ /dev/null @@ -1,240 +0,0 @@ -generator client { - provider = "prisma-client-js" - output = "./client-generated" - binaryTargets = ["debian-openssl-1.1.x", "native"] -} - -datasource db { - provider = "sqlite" - url = env("DATABASE_URL") -} - -model User { - id String @id @default(cuid()) - name String? - email String @unique - emailVerified DateTime? - password String? - role String @default("USER") - image String? - theme String @default("light") - resetToken String? @unique - resetTokenExpiry DateTime? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - accounts Account[] - aiFeedback AiFeedback[] - labels Label[] - memoryEchoInsights MemoryEchoInsight[] - notes Note[] - sentShares NoteShare[] @relation("SentShares") - receivedShares NoteShare[] @relation("ReceivedShares") - notebooks Notebook[] - sessions Session[] - aiSettings UserAISettings? -} - -model Account { - userId String - type String - provider String - providerAccountId String - refresh_token String? - access_token String? - expires_at Int? - token_type String? - scope String? - id_token String? - session_state String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - @@id([provider, providerAccountId]) -} - -model Session { - sessionToken String @unique - userId String - expires DateTime - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - user User @relation(fields: [userId], references: [id], onDelete: Cascade) -} - -model VerificationToken { - identifier String - token String - expires DateTime - - @@id([identifier, token]) -} - -model Notebook { - id String @id @default(cuid()) - name String - icon String? - color String? - order Int - userId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - labels Label[] - notes Note[] - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - @@index([userId, order]) - @@index([userId]) -} - -model Label { - id String @id @default(cuid()) - name String - color String @default("gray") - notebookId String? - userId String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - notebook Notebook? @relation(fields: [notebookId], references: [id], onDelete: Cascade) - notes Note[] @relation("LabelToNote") - - @@unique([notebookId, name]) - @@index([notebookId]) - @@index([userId]) -} - -model Note { - id String @id @default(cuid()) - title String? - content String - color String @default("default") - isPinned Boolean @default(false) - isArchived Boolean @default(false) - type String @default("text") - checkItems String? - labels String? - images String? - links String? - reminder DateTime? - isReminderDone Boolean @default(false) - reminderRecurrence String? - reminderLocation String? - isMarkdown Boolean @default(false) - size String @default("small") - embedding String? - sharedWith String? - userId String? - order Int @default(0) - notebookId String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - contentUpdatedAt DateTime @default(now()) - autoGenerated Boolean? - aiProvider String? - aiConfidence Int? - language String? - languageConfidence Float? - lastAiAnalysis DateTime? - aiFeedback AiFeedback[] - memoryEchoAsNote2 MemoryEchoInsight[] @relation("EchoNote2") - memoryEchoAsNote1 MemoryEchoInsight[] @relation("EchoNote1") - notebook Notebook? @relation(fields: [notebookId], references: [id]) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - shares NoteShare[] - labelRelations Label[] @relation("LabelToNote") - - @@index([isPinned]) - @@index([isArchived]) - @@index([order]) - @@index([reminder]) - @@index([userId]) - @@index([userId, notebookId]) -} - -model NoteShare { - id String @id @default(cuid()) - noteId String - userId String - sharedBy String - status String @default("pending") - permission String @default("view") - notifiedAt DateTime? - respondedAt DateTime? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - sharer User @relation("SentShares", fields: [sharedBy], references: [id], onDelete: Cascade) - user User @relation("ReceivedShares", fields: [userId], references: [id], onDelete: Cascade) - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) - - @@unique([noteId, userId]) - @@index([userId]) - @@index([status]) - @@index([sharedBy]) -} - -model SystemConfig { - key String @id - value String -} - -model AiFeedback { - id String @id @default(cuid()) - noteId String - userId String? - feedbackType String - feature String - originalContent String - correctedContent String? - metadata String? - createdAt DateTime @default(now()) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - note Note @relation(fields: [noteId], references: [id], onDelete: Cascade) - - @@index([noteId]) - @@index([userId]) - @@index([feature]) -} - -model MemoryEchoInsight { - id String @id @default(cuid()) - userId String? - note1Id String - note2Id String - similarityScore Float - insight String - insightDate DateTime @default(now()) - viewed Boolean @default(false) - feedback String? - dismissed Boolean @default(false) - user User? @relation(fields: [userId], references: [id], onDelete: Cascade) - note2 Note @relation("EchoNote2", fields: [note2Id], references: [id], onDelete: Cascade) - note1 Note @relation("EchoNote1", fields: [note1Id], references: [id], onDelete: Cascade) - - @@unique([userId, insightDate]) - @@index([userId, insightDate]) - @@index([userId, dismissed]) -} - -model UserAISettings { - userId String @id - titleSuggestions Boolean @default(true) - semanticSearch Boolean @default(true) - paragraphRefactor Boolean @default(true) - memoryEcho Boolean @default(true) - memoryEchoFrequency String @default("daily") - aiProvider String @default("auto") - preferredLanguage String @default("auto") - fontSize String @default("medium") - demoMode Boolean @default(false) - showRecentNotes Boolean @default(false) - emailNotifications Boolean @default(false) - desktopNotifications Boolean @default(false) - anonymousAnalytics Boolean @default(false) - user User @relation(fields: [userId], references: [id], onDelete: Cascade) - - @@index([memoryEcho]) - @@index([aiProvider]) - @@index([memoryEchoFrequency]) - @@index([preferredLanguage]) -} diff --git a/keep-notes/prisma/client-generated/wasm.d.ts b/keep-notes/prisma/client-generated/wasm.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/keep-notes/prisma/client-generated/wasm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/keep-notes/prisma/client-generated/wasm.js b/keep-notes/prisma/client-generated/wasm.js deleted file mode 100644 index 2a25849..0000000 --- a/keep-notes/prisma/client-generated/wasm.js +++ /dev/null @@ -1,337 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.NotFoundError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - contentUpdatedAt: 'contentUpdatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - Notebook: 'Notebook', - Label: 'Label', - Note: 'Note', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/mcp-server/.dockerignore b/mcp-server/.dockerignore index 2942c74..a9c174a 100644 --- a/mcp-server/.dockerignore +++ b/mcp-server/.dockerignore @@ -6,6 +6,5 @@ node_modules .env.* *.log .DS_Store -index-sse.js README-SSE.md N8N-CONFIG.md diff --git a/mcp-server/.gitignore b/mcp-server/.gitignore new file mode 100644 index 0000000..713d500 --- /dev/null +++ b/mcp-server/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +.env diff --git a/mcp-server/Dockerfile b/mcp-server/Dockerfile index 7976b53..0b29ddd 100644 --- a/mcp-server/Dockerfile +++ b/mcp-server/Dockerfile @@ -1,5 +1,5 @@ # Base image -FROM node:20-alpine +FROM node:22-alpine # Install dependencies WORKDIR /app @@ -16,15 +16,13 @@ RUN npm ci --only=production # Copy application code COPY . . -# Copy Prisma schema and client +# Copy Prisma schema and generate client COPY prisma ./prisma +RUN npx prisma generate # Create non-root user RUN addgroup -g 1001 -S mcp && \ - adduser -u 1001 -S mcp -G mcp - -# Create database directory -RUN mkdir -p /app/db && \ + adduser -u 1001 -S mcp -G mcp && \ chown -R mcp:mcp /app USER mcp diff --git a/mcp-server/index-sse.js b/mcp-server/index-sse.js index 6f0d675..d059566 100644 --- a/mcp-server/index-sse.js +++ b/mcp-server/index-sse.js @@ -88,14 +88,8 @@ app.use((req, res, next) => { next(); }); -// Initialize Prisma Client with correct database path -const prisma = new PrismaClient({ - datasources: { - db: { - url: 'file:D:/dev_new_pc/Keep/keep-notes/prisma/dev.db' - } - } -}); +// Initialize Prisma Client +const prisma = new PrismaClient(); // Helper to parse JSON fields function parseNote(dbNote) { @@ -141,7 +135,7 @@ function parseNoteLightweight(dbNote) { // Create MCP server const server = new Server( { - name: 'keep-notes-mcp-server', + name: 'memento-mcp-server', version: '2.0.0', }, { @@ -1357,7 +1351,7 @@ app.listen(PORT, '0.0.0.0', () => { 20. update_label - Update label 21. delete_label - Delete label -📋 Database: D:/dev_new_pc/Keep/keep-notes/prisma/dev.db +📋 Database: PostgreSQL (via DATABASE_URL env var) 🌐 For N8N configuration: Use SSE endpoint: http://YOUR_IP:${PORT}/sse diff --git a/mcp-server/index.js b/mcp-server/index.js index 66d5236..f9f13b2 100644 --- a/mcp-server/index.js +++ b/mcp-server/index.js @@ -14,14 +14,8 @@ import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); -// Initialize Prisma Client with correct database path -const prisma = new PrismaClient({ - datasources: { - db: { - url: 'file:D:/dev_new_pc/Keep/keep-notes/prisma/dev.db' - } - } -}); +// Initialize Prisma Client +const prisma = new PrismaClient(); // Helper to parse JSON fields function parseNote(dbNote) { @@ -45,7 +39,7 @@ function parseNotebook(dbNotebook) { // Create MCP server const server = new Server( { - name: 'keep-notes-mcp-server', + name: 'memento-mcp-server', version: '2.0.0', }, { diff --git a/mcp-server/node_modules/.bin/mime b/mcp-server/node_modules/.bin/mime deleted file mode 100644 index 7751de3..0000000 --- a/mcp-server/node_modules/.bin/mime +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir=`cygpath -w "$basedir"` - fi - ;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../mime/cli.js" "$@" -else - exec node "$basedir/../mime/cli.js" "$@" -fi diff --git a/mcp-server/node_modules/.bin/mime.cmd b/mcp-server/node_modules/.bin/mime.cmd deleted file mode 100644 index 54491f1..0000000 --- a/mcp-server/node_modules/.bin/mime.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %* diff --git a/mcp-server/node_modules/.bin/mime.ps1 b/mcp-server/node_modules/.bin/mime.ps1 deleted file mode 100644 index 2222f40..0000000 --- a/mcp-server/node_modules/.bin/mime.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args - } else { - & "$basedir/node$exe" "$basedir/../mime/cli.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../mime/cli.js" $args - } else { - & "node$exe" "$basedir/../mime/cli.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/mcp-server/node_modules/.bin/prisma b/mcp-server/node_modules/.bin/prisma deleted file mode 100644 index d770cd3..0000000 --- a/mcp-server/node_modules/.bin/prisma +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) - if command -v cygpath > /dev/null 2>&1; then - basedir=`cygpath -w "$basedir"` - fi - ;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../prisma/build/index.js" "$@" -else - exec node "$basedir/../prisma/build/index.js" "$@" -fi diff --git a/mcp-server/node_modules/.bin/prisma.cmd b/mcp-server/node_modules/.bin/prisma.cmd deleted file mode 100644 index e5ffbc1..0000000 --- a/mcp-server/node_modules/.bin/prisma.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\prisma\build\index.js" %* diff --git a/mcp-server/node_modules/.bin/prisma.ps1 b/mcp-server/node_modules/.bin/prisma.ps1 deleted file mode 100644 index 68894ed..0000000 --- a/mcp-server/node_modules/.bin/prisma.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../prisma/build/index.js" $args - } else { - & "$basedir/node$exe" "$basedir/../prisma/build/index.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../prisma/build/index.js" $args - } else { - & "node$exe" "$basedir/../prisma/build/index.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine deleted file mode 100644 index d46657b..0000000 Binary files a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine and /dev/null differ diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 deleted file mode 100644 index 37663e8..0000000 --- a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -b72732897f7fb1d24ea9d26cb254b78b10d4257eaeb27f04d9fb82d20addc5d5 \ No newline at end of file diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 deleted file mode 100644 index 80aa2fc..0000000 --- a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +++ /dev/null @@ -1 +0,0 @@ -7d58cada77c5833e57d2ab4ad61ea2948247b2caa8575066b2fe3bc7e4ea4e5a \ No newline at end of file diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine deleted file mode 100644 index 5e1e20d..0000000 Binary files a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine and /dev/null differ diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 deleted file mode 100644 index 32aaa56..0000000 --- a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -cfdcce35f151ea8e57772f07fd909b6118389119b76e51ab1105ef86f955048b \ No newline at end of file diff --git a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 b/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 deleted file mode 100644 index 66dd092..0000000 --- a/mcp-server/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +++ /dev/null @@ -1 +0,0 @@ -a7d949e16cc5937aa77d67888c8993118ef16c764e536e9ed7c17cfe61bb65ad \ No newline at end of file diff --git a/mcp-server/node_modules/.package-lock.json b/mcp-server/node_modules/.package-lock.json deleted file mode 100644 index 597b21f..0000000 --- a/mcp-server/node_modules/.package-lock.json +++ /dev/null @@ -1,1610 +0,0 @@ -{ - "name": "memento-mcp-server", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@hono/node-server": { - "version": "1.19.7", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.7.tgz", - "integrity": "sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==", - "license": "MIT", - "engines": { - "node": ">=18.14.1" - }, - "peerDependencies": { - "hono": "^4" - } - }, - "node_modules/@modelcontextprotocol/sdk": { - "version": "1.25.1", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.1.tgz", - "integrity": "sha512-yO28oVFFC7EBoiKdAn+VqRm+plcfv4v0xp6osG/VsCB0NlPZWi87ajbCZZ8f/RvOFLEu7//rSRmuZZ7lMoe3gQ==", - "license": "MIT", - "dependencies": { - "@hono/node-server": "^1.19.7", - "ajv": "^8.17.1", - "ajv-formats": "^3.0.1", - "content-type": "^1.0.5", - "cors": "^2.8.5", - "cross-spawn": "^7.0.5", - "eventsource": "^3.0.2", - "eventsource-parser": "^3.0.0", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "jose": "^6.1.1", - "json-schema-typed": "^8.0.2", - "pkce-challenge": "^5.0.0", - "raw-body": "^3.0.0", - "zod": "^3.25 || ^4.0", - "zod-to-json-schema": "^3.25.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@cfworker/json-schema": "^4.1.1", - "zod": "^3.25 || ^4.0" - }, - "peerDependenciesMeta": { - "@cfworker/json-schema": { - "optional": true - }, - "zod": { - "optional": false - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "license": "MIT", - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz", - "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==", - "license": "MIT", - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.3", - "http-errors": "^2.0.0", - "iconv-lite": "^0.7.0", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.1", - "type-is": "^2.0.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz", - "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "license": "MIT", - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", - "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", - "license": "MIT", - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.2.1", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.0", - "depd": "^2.0.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "finalhandler": "^2.1.0", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "merge-descriptors": "^2.0.0", - "mime-types": "^3.0.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", - "range-parser": "^1.2.1", - "router": "^2.2.0", - "send": "^1.1.0", - "serve-static": "^2.2.0", - "statuses": "^2.0.1", - "type-is": "^2.0.1", - "vary": "^1.1.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", - "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", - "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", - "license": "MIT", - "dependencies": { - "mime-db": "^1.54.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/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==", - "license": "MIT" - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", - "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.3", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^2.0.0", - "http-errors": "^2.0.1", - "mime-types": "^3.0.2", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", - "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", - "license": "MIT", - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.2.0" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", - "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", - "license": "MIT", - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@prisma/client": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.22.0.tgz", - "integrity": "sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==", - "hasInstallScript": true, - "license": "Apache-2.0", - "engines": { - "node": ">=16.13" - }, - "peerDependencies": { - "prisma": "*" - }, - "peerDependenciesMeta": { - "prisma": { - "optional": true - } - } - }, - "node_modules/@prisma/debug": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.22.0.tgz", - "integrity": "sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==", - "devOptional": true, - "license": "Apache-2.0" - }, - "node_modules/@prisma/engines": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.22.0.tgz", - "integrity": "sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==", - "devOptional": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "@prisma/debug": "5.22.0", - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/fetch-engine": "5.22.0", - "@prisma/get-platform": "5.22.0" - } - }, - "node_modules/@prisma/engines-version": { - "version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2.tgz", - "integrity": "sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==", - "devOptional": true, - "license": "Apache-2.0" - }, - "node_modules/@prisma/fetch-engine": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-5.22.0.tgz", - "integrity": "sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==", - "devOptional": true, - "license": "Apache-2.0", - "dependencies": { - "@prisma/debug": "5.22.0", - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/get-platform": "5.22.0" - } - }, - "node_modules/@prisma/get-platform": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-5.22.0.tgz", - "integrity": "sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==", - "devOptional": true, - "license": "Apache-2.0", - "dependencies": { - "@prisma/debug": "5.22.0" - } - }, - "node_modules/@types/node": { - "version": "20.19.27", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.27.tgz", - "integrity": "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "license": "MIT", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", - "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "license": "MIT" - }, - "node_modules/body-parser": { - "version": "1.20.4", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", - "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "~1.2.0", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "on-finished": "~2.4.1", - "qs": "~6.14.0", - "raw-body": "~2.5.3", - "type-is": "~1.6.18", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/body-parser/node_modules/raw-body": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", - "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "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==", - "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/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", - "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", - "license": "MIT" - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "license": "MIT", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "license": "MIT", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "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==", - "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/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "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==", - "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==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventsource": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", - "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", - "license": "MIT", - "dependencies": { - "eventsource-parser": "^3.0.1" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/eventsource-parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.6.tgz", - "integrity": "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==", - "license": "MIT", - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", - "license": "MIT", - "peer": true, - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "~1.20.3", - "content-disposition": "~0.5.4", - "content-type": "~1.0.4", - "cookie": "~0.7.1", - "cookie-signature": "~1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.3.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "~0.1.12", - "proxy-addr": "~2.0.7", - "qs": "~6.14.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "~0.19.0", - "serve-static": "~1.16.2", - "setprototypeof": "1.2.0", - "statuses": "~2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express-rate-limit": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.1.tgz", - "integrity": "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": ">= 4.11" - } - }, - "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==", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/finalhandler": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", - "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "statuses": "~2.0.2", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "ideallyInert": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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==", - "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==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hono": { - "version": "4.11.3", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.3.tgz", - "integrity": "sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=16.9.0" - } - }, - "node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "license": "MIT", - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/iconv-lite": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz", - "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" - }, - "node_modules/jose": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", - "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "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==", - "license": "MIT" - }, - "node_modules/json-schema-typed": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", - "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", - "license": "BSD-2-Clause" - }, - "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==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "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==", - "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==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "license": "MIT", - "engines": { - "node": ">= 0.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==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "license": "MIT" - }, - "node_modules/pkce-challenge": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", - "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", - "license": "MIT", - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/prisma": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.22.0.tgz", - "integrity": "sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==", - "devOptional": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "peer": true, - "dependencies": { - "@prisma/engines": "5.22.0" - }, - "bin": { - "prisma": "build/index.js" - }, - "engines": { - "node": ">=16.13" - }, - "optionalDependencies": { - "fsevents": "2.3.3" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/qs": { - "version": "6.14.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", - "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", - "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.7.0", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "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==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/router": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", - "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "depd": "^2.0.0", - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/router/node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/router/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==", - "license": "MIT" - }, - "node_modules/router/node_modules/path-to-regexp": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz", - "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "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/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" - }, - "node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/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==", - "license": "MIT" - }, - "node_modules/serve-static": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", - "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", - "license": "MIT", - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "~0.19.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "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==", - "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==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "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.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "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==", - "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==", - "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/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "license": "MIT", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "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/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/zod": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.5.tgz", - "integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==", - "license": "MIT", - "peer": true, - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-to-json-schema": { - "version": "3.25.1", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz", - "integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==", - "license": "ISC", - "peerDependencies": { - "zod": "^3.25 || ^4" - } - } - } -} diff --git a/mcp-server/node_modules/.prisma/client/default.d.ts b/mcp-server/node_modules/.prisma/client/default.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/mcp-server/node_modules/.prisma/client/default.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/default.js b/mcp-server/node_modules/.prisma/client/default.js deleted file mode 100644 index fa52f0c..0000000 --- a/mcp-server/node_modules/.prisma/client/default.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { ...require('.') } \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/deno/edge.d.ts b/mcp-server/node_modules/.prisma/client/deno/edge.d.ts deleted file mode 100644 index bca0a97..0000000 --- a/mcp-server/node_modules/.prisma/client/deno/edge.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -class PrismaClient { - constructor() { - throw new Error( - '@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.', - ) - } -} - -export { PrismaClient } diff --git a/mcp-server/node_modules/.prisma/client/edge.d.ts b/mcp-server/node_modules/.prisma/client/edge.d.ts deleted file mode 100644 index 274b8fa..0000000 --- a/mcp-server/node_modules/.prisma/client/edge.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./default" \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/edge.js b/mcp-server/node_modules/.prisma/client/edge.js deleted file mode 100644 index c14f2eb..0000000 --- a/mcp-server/node_modules/.prisma/client/edge.js +++ /dev/null @@ -1,342 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - NotFoundError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime -} = require('./runtime/edge.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.NotFoundError = NotFoundError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - Note: 'Note', - Notebook: 'Notebook', - Label: 'Label', - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "D:\\dev_new_pc\\Keep\\mcp-server\\node_modules\\.prisma\\client", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "windows", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "D:\\dev_new_pc\\Keep\\mcp-server\\prisma\\schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": null - }, - "relativePath": "../../../prisma", - "clientVersion": "5.22.0", - "engineVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "datasourceNames": [ - "db" - ], - "activeProvider": "sqlite", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": null, - "value": "file:../../keep-notes/prisma/dev.db" - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../node_modules/.prisma/client\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = \"file:../../keep-notes/prisma/dev.db\"\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([noteId, userId])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n\n @@unique([userId, insightDate])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n showRecentNotes Boolean @default(false)\n emailNotifications Boolean @default(false)\n desktopNotifications Boolean @default(false)\n anonymousAnalytics Boolean @default(false)\n}\n", - "inlineSchemaHash": "6a26806e7b9877b7e438c48efac7d74491a5f9cec9077bf64e4b64230ba79c87", - "copyEngine": true -} -config.dirname = '/' - -config.runtimeDataModel = JSON.parse("{\"models\":{\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"showRecentNotes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"desktopNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"anonymousAnalytics\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined - -config.injectableEdgeEnv = () => ({ - parsed: {} -}) - -if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { - Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) -} - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - diff --git a/mcp-server/node_modules/.prisma/client/index-browser.js b/mcp-server/node_modules/.prisma/client/index-browser.js deleted file mode 100644 index b2f36bf..0000000 --- a/mcp-server/node_modules/.prisma/client/index-browser.js +++ /dev/null @@ -1,336 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.NotFoundError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - Note: 'Note', - Notebook: 'Notebook', - Label: 'Label', - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/mcp-server/node_modules/.prisma/client/index.d.ts b/mcp-server/node_modules/.prisma/client/index.d.ts deleted file mode 100644 index c26225a..0000000 --- a/mcp-server/node_modules/.prisma/client/index.d.ts +++ /dev/null @@ -1,16685 +0,0 @@ - -/** - * Client -**/ - -import * as runtime from './runtime/library.js'; -import $Types = runtime.Types // general types -import $Public = runtime.Types.Public -import $Utils = runtime.Types.Utils -import $Extensions = runtime.Types.Extensions -import $Result = runtime.Types.Result - -export type PrismaPromise = $Public.PrismaPromise - - -/** - * Model Note - * - */ -export type Note = $Result.DefaultSelection -/** - * Model Notebook - * - */ -export type Notebook = $Result.DefaultSelection -/** - * Model Label - * - */ -export type Label = $Result.DefaultSelection -/** - * Model User - * - */ -export type User = $Result.DefaultSelection -/** - * Model Account - * - */ -export type Account = $Result.DefaultSelection -/** - * Model Session - * - */ -export type Session = $Result.DefaultSelection -/** - * Model VerificationToken - * - */ -export type VerificationToken = $Result.DefaultSelection -/** - * Model NoteShare - * - */ -export type NoteShare = $Result.DefaultSelection -/** - * Model SystemConfig - * - */ -export type SystemConfig = $Result.DefaultSelection -/** - * Model AiFeedback - * - */ -export type AiFeedback = $Result.DefaultSelection -/** - * Model MemoryEchoInsight - * - */ -export type MemoryEchoInsight = $Result.DefaultSelection -/** - * Model UserAISettings - * - */ -export type UserAISettings = $Result.DefaultSelection - -/** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Notes - * const notes = await prisma.note.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export class PrismaClient< - ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, - ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - /** - * ## Prisma Client ʲˢ - * - * Type-safe database client for TypeScript & Node.js - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Notes - * const notes = await prisma.note.findMany() - * ``` - * - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ - - constructor(optionsArg ?: Prisma.Subset); - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void; - - /** - * Connect with the database - */ - $connect(): $Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): $Utils.JsPromise; - - /** - * Add a middleware - * @deprecated since 4.16.0. For new code, prefer client extensions instead. - * @see https://pris.ly/d/extensions - */ - $use(cb: Prisma.Middleware): void - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. - * @example - * ``` - * const [george, bob, alice] = await prisma.$transaction([ - * prisma.user.create({ data: { name: 'George' } }), - * prisma.user.create({ data: { name: 'Bob' } }), - * prisma.user.create({ data: { name: 'Alice' } }), - * ]) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). - */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise - - - $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs> - - /** - * `prisma.note`: Exposes CRUD operations for the **Note** model. - * Example usage: - * ```ts - * // Fetch zero or more Notes - * const notes = await prisma.note.findMany() - * ``` - */ - get note(): Prisma.NoteDelegate; - - /** - * `prisma.notebook`: Exposes CRUD operations for the **Notebook** model. - * Example usage: - * ```ts - * // Fetch zero or more Notebooks - * const notebooks = await prisma.notebook.findMany() - * ``` - */ - get notebook(): Prisma.NotebookDelegate; - - /** - * `prisma.label`: Exposes CRUD operations for the **Label** model. - * Example usage: - * ```ts - * // Fetch zero or more Labels - * const labels = await prisma.label.findMany() - * ``` - */ - get label(): Prisma.LabelDelegate; - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.account`: Exposes CRUD operations for the **Account** model. - * Example usage: - * ```ts - * // Fetch zero or more Accounts - * const accounts = await prisma.account.findMany() - * ``` - */ - get account(): Prisma.AccountDelegate; - - /** - * `prisma.session`: Exposes CRUD operations for the **Session** model. - * Example usage: - * ```ts - * // Fetch zero or more Sessions - * const sessions = await prisma.session.findMany() - * ``` - */ - get session(): Prisma.SessionDelegate; - - /** - * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model. - * Example usage: - * ```ts - * // Fetch zero or more VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * ``` - */ - get verificationToken(): Prisma.VerificationTokenDelegate; - - /** - * `prisma.noteShare`: Exposes CRUD operations for the **NoteShare** model. - * Example usage: - * ```ts - * // Fetch zero or more NoteShares - * const noteShares = await prisma.noteShare.findMany() - * ``` - */ - get noteShare(): Prisma.NoteShareDelegate; - - /** - * `prisma.systemConfig`: Exposes CRUD operations for the **SystemConfig** model. - * Example usage: - * ```ts - * // Fetch zero or more SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany() - * ``` - */ - get systemConfig(): Prisma.SystemConfigDelegate; - - /** - * `prisma.aiFeedback`: Exposes CRUD operations for the **AiFeedback** model. - * Example usage: - * ```ts - * // Fetch zero or more AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany() - * ``` - */ - get aiFeedback(): Prisma.AiFeedbackDelegate; - - /** - * `prisma.memoryEchoInsight`: Exposes CRUD operations for the **MemoryEchoInsight** model. - * Example usage: - * ```ts - * // Fetch zero or more MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany() - * ``` - */ - get memoryEchoInsight(): Prisma.MemoryEchoInsightDelegate; - - /** - * `prisma.userAISettings`: Exposes CRUD operations for the **UserAISettings** model. - * Example usage: - * ```ts - * // Fetch zero or more UserAISettings - * const userAISettings = await prisma.userAISettings.findMany() - * ``` - */ - get userAISettings(): Prisma.UserAISettingsDelegate; -} - -export namespace Prisma { - export import DMMF = runtime.DMMF - - export type PrismaPromise = $Public.PrismaPromise - - /** - * Validator - */ - export import validator = runtime.Public.validator - - /** - * Prisma Errors - */ - export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - export import PrismaClientInitializationError = runtime.PrismaClientInitializationError - export import PrismaClientValidationError = runtime.PrismaClientValidationError - export import NotFoundError = runtime.NotFoundError - - /** - * Re-export of sql-template-tag - */ - export import sql = runtime.sqltag - export import empty = runtime.empty - export import join = runtime.join - export import raw = runtime.raw - export import Sql = runtime.Sql - - - - /** - * Decimal.js - */ - export import Decimal = runtime.Decimal - - export type DecimalJsLike = runtime.DecimalJsLike - - /** - * Metrics - */ - export type Metrics = runtime.Metrics - export type Metric = runtime.Metric - export type MetricHistogram = runtime.MetricHistogram - export type MetricHistogramBucket = runtime.MetricHistogramBucket - - /** - * Extensions - */ - export import Extension = $Extensions.UserArgs - export import getExtensionContext = runtime.Extensions.getExtensionContext - export import Args = $Public.Args - export import Payload = $Public.Payload - export import Result = $Public.Result - export import Exact = $Public.Exact - - /** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ - export type PrismaVersion = { - client: string - } - - export const prismaVersion: PrismaVersion - - /** - * Utility Types - */ - - - export import JsonObject = runtime.JsonObject - export import JsonArray = runtime.JsonArray - export import JsonValue = runtime.JsonValue - export import InputJsonObject = runtime.InputJsonObject - export import InputJsonArray = runtime.InputJsonArray - export import InputJsonValue = runtime.InputJsonValue - - /** - * Types of the values used to represent different kinds of `null` values when working with JSON fields. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - namespace NullTypes { - /** - * Type of `Prisma.DbNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class DbNull { - private DbNull: never - private constructor() - } - - /** - * Type of `Prisma.JsonNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class JsonNull { - private JsonNull: never - private constructor() - } - - /** - * Type of `Prisma.AnyNull`. - * - * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - class AnyNull { - private AnyNull: never - private constructor() - } - } - - /** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const DbNull: NullTypes.DbNull - - /** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const JsonNull: NullTypes.JsonNull - - /** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ - export const AnyNull: NullTypes.AnyNull - - type SelectAndInclude = { - select: any - include: any - } - - type SelectAndOmit = { - select: any - omit: any - } - - /** - * Get the type of the value, that the Promise holds. - */ - export type PromiseType> = T extends PromiseLike ? U : T; - - /** - * Get the return type of a function which returns a Promise. - */ - export type PromiseReturnType $Utils.JsPromise> = PromiseType> - - /** - * From T, pick a set of properties whose keys are in the union K - */ - type Prisma__Pick = { - [P in K]: T[P]; - }; - - - export type Enumerable = T | Array; - - export type RequiredKeys = { - [K in keyof T]-?: {} extends Prisma__Pick ? never : K - }[keyof T] - - export type TruthyKeys = keyof { - [K in keyof T as T[K] extends false | undefined | null ? never : K]: K - } - - export type TrueKeys = TruthyKeys>> - - /** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ - export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; - }; - - /** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ - export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never - } & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - - /** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ - export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never - } & - K - - type Without = { [P in Exclude]?: never }; - - /** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ - type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - - /** - * Is T a Record? - */ - type IsObject = T extends Array - ? False - : T extends Date - ? False - : T extends Uint8Array - ? False - : T extends BigInt - ? False - : T extends object - ? True - : False - - - /** - * If it's T[], return T - */ - export type UnEnumerate = T extends Array ? U : T - - /** - * From ts-toolbelt - */ - - type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - - type EitherStrict = Strict<__Either> - - type EitherLoose = ComputeRaw<__Either> - - type _Either< - O extends object, - K extends Key, - strict extends Boolean - > = { - 1: EitherStrict - 0: EitherLoose - }[strict] - - type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 - > = O extends unknown ? _Either : never - - export type Union = any - - type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] - } & {} - - /** Helper Types for "Merge" **/ - export type IntersectOf = ( - U extends unknown ? (k: U) => void : never - ) extends (k: infer I) => void - ? I - : never - - export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; - } & {}; - - type _Merge = IntersectOf; - }>>; - - type Key = string | number | symbol; - type AtBasic = K extends keyof O ? O[K] : never; - type AtStrict = O[K & keyof O]; - type AtLoose = O extends unknown ? AtStrict : never; - export type At = { - 1: AtStrict; - 0: AtLoose; - }[strict]; - - export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; - } & {}; - - export type OptionalFlat = { - [K in keyof O]?: O[K]; - } & {}; - - type _Record = { - [P in K]: T; - }; - - // cause typescript not to expand types and preserve names - type NoExpand = T extends unknown ? T : never; - - // this type assumes the passed object is entirely optional - type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O - : never>; - - type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - - export type Strict = ComputeRaw<_Strict>; - /** End Helper Types for "Merge" **/ - - export type Merge = ComputeRaw<_Merge>>; - - /** - A [[Boolean]] - */ - export type Boolean = True | False - - // /** - // 1 - // */ - export type True = 1 - - /** - 0 - */ - export type False = 0 - - export type Not = { - 0: 1 - 1: 0 - }[B] - - export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - - export type Has = Not< - Extends, U1> - > - - export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } - }[B1][B2] - - export type Keys = U extends unknown ? keyof U : never - - type Cast = A extends B ? A : B; - - export const type: unique symbol; - - - - /** - * Used by group by - */ - - export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never - } : never - - type FieldPaths< - T, - U = Omit - > = IsObject extends True ? U : T - - type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K - }[keyof T] - - /** - * Convert tuple to union - */ - type _TupleToUnion = T extends (infer E)[] ? E : never - type TupleToUnion = _TupleToUnion - type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - - /** - * Like `Pick`, but additionally can also accept an array of keys - */ - type PickEnumerable | keyof T> = Prisma__Pick> - - /** - * Exclude all keys with underscores - */ - type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - - export type FieldRef = runtime.FieldRef - - type FieldRefInputType = Model extends never ? never : FieldRef - - - export const ModelName: { - Note: 'Note', - Notebook: 'Notebook', - Label: 'Label', - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' - }; - - export type ModelName = (typeof ModelName)[keyof typeof ModelName] - - - export type Datasources = { - db?: Datasource - } - - interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { - returns: Prisma.TypeMap - } - - export type TypeMap = { - meta: { - modelProps: "note" | "notebook" | "label" | "user" | "account" | "session" | "verificationToken" | "noteShare" | "systemConfig" | "aiFeedback" | "memoryEchoInsight" | "userAISettings" - txIsolationLevel: Prisma.TransactionIsolationLevel - } - model: { - Note: { - payload: Prisma.$NotePayload - fields: Prisma.NoteFieldRefs - operations: { - findUnique: { - args: Prisma.NoteFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NoteFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NoteFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NoteFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NoteFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NoteCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NoteCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NoteCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NoteDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NoteUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NoteDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NoteUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NoteUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NoteAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NoteGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NoteCountArgs - result: $Utils.Optional | number - } - } - } - Notebook: { - payload: Prisma.$NotebookPayload - fields: Prisma.NotebookFieldRefs - operations: { - findUnique: { - args: Prisma.NotebookFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NotebookFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NotebookFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NotebookFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NotebookFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NotebookCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NotebookCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NotebookCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NotebookDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NotebookUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NotebookDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NotebookUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NotebookUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NotebookAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NotebookGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NotebookCountArgs - result: $Utils.Optional | number - } - } - } - Label: { - payload: Prisma.$LabelPayload - fields: Prisma.LabelFieldRefs - operations: { - findUnique: { - args: Prisma.LabelFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.LabelFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.LabelFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.LabelFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.LabelFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.LabelCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.LabelCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.LabelCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.LabelDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.LabelUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.LabelDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.LabelUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.LabelUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.LabelAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.LabelGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.LabelCountArgs - result: $Utils.Optional | number - } - } - } - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.UserUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: $Utils.Optional | number - } - } - } - Account: { - payload: Prisma.$AccountPayload - fields: Prisma.AccountFieldRefs - operations: { - findUnique: { - args: Prisma.AccountFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AccountFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.AccountFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AccountFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.AccountFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.AccountCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.AccountCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AccountCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.AccountDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.AccountUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AccountDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AccountUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.AccountUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.AccountAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.AccountGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.AccountCountArgs - result: $Utils.Optional | number - } - } - } - Session: { - payload: Prisma.$SessionPayload - fields: Prisma.SessionFieldRefs - operations: { - findUnique: { - args: Prisma.SessionFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SessionFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SessionFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SessionFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SessionFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SessionCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SessionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SessionCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SessionDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SessionUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SessionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SessionUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.SessionUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SessionAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SessionGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SessionCountArgs - result: $Utils.Optional | number - } - } - } - VerificationToken: { - payload: Prisma.$VerificationTokenPayload - fields: Prisma.VerificationTokenFieldRefs - operations: { - findUnique: { - args: Prisma.VerificationTokenFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.VerificationTokenFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.VerificationTokenFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.VerificationTokenFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.VerificationTokenFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.VerificationTokenCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.VerificationTokenCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.VerificationTokenCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.VerificationTokenDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.VerificationTokenUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.VerificationTokenDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.VerificationTokenUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.VerificationTokenUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.VerificationTokenAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.VerificationTokenGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.VerificationTokenCountArgs - result: $Utils.Optional | number - } - } - } - NoteShare: { - payload: Prisma.$NoteSharePayload - fields: Prisma.NoteShareFieldRefs - operations: { - findUnique: { - args: Prisma.NoteShareFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NoteShareFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.NoteShareFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NoteShareFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.NoteShareFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.NoteShareCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.NoteShareCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NoteShareCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.NoteShareDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.NoteShareUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NoteShareDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NoteShareUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.NoteShareUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.NoteShareAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.NoteShareGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.NoteShareCountArgs - result: $Utils.Optional | number - } - } - } - SystemConfig: { - payload: Prisma.$SystemConfigPayload - fields: Prisma.SystemConfigFieldRefs - operations: { - findUnique: { - args: Prisma.SystemConfigFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SystemConfigFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.SystemConfigFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SystemConfigFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.SystemConfigFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.SystemConfigCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.SystemConfigCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SystemConfigCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.SystemConfigDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.SystemConfigUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SystemConfigDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SystemConfigUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.SystemConfigUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.SystemConfigAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.SystemConfigGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.SystemConfigCountArgs - result: $Utils.Optional | number - } - } - } - AiFeedback: { - payload: Prisma.$AiFeedbackPayload - fields: Prisma.AiFeedbackFieldRefs - operations: { - findUnique: { - args: Prisma.AiFeedbackFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AiFeedbackFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.AiFeedbackFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AiFeedbackFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.AiFeedbackFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.AiFeedbackCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.AiFeedbackCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AiFeedbackCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.AiFeedbackDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.AiFeedbackUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AiFeedbackDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AiFeedbackUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.AiFeedbackUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.AiFeedbackAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.AiFeedbackGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.AiFeedbackCountArgs - result: $Utils.Optional | number - } - } - } - MemoryEchoInsight: { - payload: Prisma.$MemoryEchoInsightPayload - fields: Prisma.MemoryEchoInsightFieldRefs - operations: { - findUnique: { - args: Prisma.MemoryEchoInsightFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.MemoryEchoInsightFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.MemoryEchoInsightFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.MemoryEchoInsightFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.MemoryEchoInsightFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.MemoryEchoInsightCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.MemoryEchoInsightCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.MemoryEchoInsightCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.MemoryEchoInsightDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.MemoryEchoInsightUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.MemoryEchoInsightDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.MemoryEchoInsightUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.MemoryEchoInsightUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.MemoryEchoInsightAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.MemoryEchoInsightGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.MemoryEchoInsightCountArgs - result: $Utils.Optional | number - } - } - } - UserAISettings: { - payload: Prisma.$UserAISettingsPayload - fields: Prisma.UserAISettingsFieldRefs - operations: { - findUnique: { - args: Prisma.UserAISettingsFindUniqueArgs - result: $Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserAISettingsFindUniqueOrThrowArgs - result: $Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserAISettingsFindFirstArgs - result: $Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserAISettingsFindFirstOrThrowArgs - result: $Utils.PayloadToResult - } - findMany: { - args: Prisma.UserAISettingsFindManyArgs - result: $Utils.PayloadToResult[] - } - create: { - args: Prisma.UserAISettingsCreateArgs - result: $Utils.PayloadToResult - } - createMany: { - args: Prisma.UserAISettingsCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserAISettingsCreateManyAndReturnArgs - result: $Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserAISettingsDeleteArgs - result: $Utils.PayloadToResult - } - update: { - args: Prisma.UserAISettingsUpdateArgs - result: $Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserAISettingsDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserAISettingsUpdateManyArgs - result: BatchPayload - } - upsert: { - args: Prisma.UserAISettingsUpsertArgs - result: $Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAISettingsAggregateArgs - result: $Utils.Optional - } - groupBy: { - args: Prisma.UserAISettingsGroupByArgs - result: $Utils.Optional[] - } - count: { - args: Prisma.UserAISettingsCountArgs - result: $Utils.Optional | number - } - } - } - } - } & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } - } - export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> - export type DefaultPrismaClient = PrismaClient - export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' - export interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Defaults to stdout - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * ] - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: Prisma.TransactionIsolationLevel - } - } - - - /* Types for Logging */ - export type LogLevel = 'info' | 'query' | 'warn' | 'error' - export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' - } - - export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never - export type GetEvents = T extends Array ? - GetLogType | GetLogType | GetLogType | GetLogType - : never - - export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string - } - - export type LogEvent = { - timestamp: Date - message: string - target: string - } - /* End Types for Logging */ - - - export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - - /** - * These options are being passed into the middleware as "params" - */ - export type MiddlewareParams = { - model?: ModelName - action: PrismaAction - args: any - dataPath: string[] - runInTransaction: boolean - } - - /** - * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation - */ - export type Middleware = ( - params: MiddlewareParams, - next: (params: MiddlewareParams) => $Utils.JsPromise, - ) => $Utils.JsPromise - - // tested in getLogLevel.test.ts - export function getLogLevel(log: Array): LogLevel | undefined; - - /** - * `PrismaClient` proxy available in interactive transactions. - */ - export type TransactionClient = Omit - - export type Datasource = { - url?: string - } - - /** - * Count Types - */ - - - - /** - * Models - */ - - /** - * Model Note - */ - - export type AggregateNote = { - _count: NoteCountAggregateOutputType | null - _avg: NoteAvgAggregateOutputType | null - _sum: NoteSumAggregateOutputType | null - _min: NoteMinAggregateOutputType | null - _max: NoteMaxAggregateOutputType | null - } - - export type NoteAvgAggregateOutputType = { - order: number | null - aiConfidence: number | null - languageConfidence: number | null - } - - export type NoteSumAggregateOutputType = { - order: number | null - aiConfidence: number | null - languageConfidence: number | null - } - - export type NoteMinAggregateOutputType = { - id: string | null - title: string | null - content: string | null - color: string | null - isPinned: boolean | null - isArchived: boolean | null - type: string | null - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean | null - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean | null - size: string | null - embedding: string | null - sharedWith: string | null - userId: string | null - order: number | null - notebookId: string | null - createdAt: Date | null - updatedAt: Date | null - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - } - - export type NoteMaxAggregateOutputType = { - id: string | null - title: string | null - content: string | null - color: string | null - isPinned: boolean | null - isArchived: boolean | null - type: string | null - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean | null - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean | null - size: string | null - embedding: string | null - sharedWith: string | null - userId: string | null - order: number | null - notebookId: string | null - createdAt: Date | null - updatedAt: Date | null - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - } - - export type NoteCountAggregateOutputType = { - id: number - title: number - content: number - color: number - isPinned: number - isArchived: number - type: number - checkItems: number - labels: number - images: number - links: number - reminder: number - isReminderDone: number - reminderRecurrence: number - reminderLocation: number - isMarkdown: number - size: number - embedding: number - sharedWith: number - userId: number - order: number - notebookId: number - createdAt: number - updatedAt: number - autoGenerated: number - aiProvider: number - aiConfidence: number - language: number - languageConfidence: number - lastAiAnalysis: number - _all: number - } - - - export type NoteAvgAggregateInputType = { - order?: true - aiConfidence?: true - languageConfidence?: true - } - - export type NoteSumAggregateInputType = { - order?: true - aiConfidence?: true - languageConfidence?: true - } - - export type NoteMinAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - } - - export type NoteMaxAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - } - - export type NoteCountAggregateInputType = { - id?: true - title?: true - content?: true - color?: true - isPinned?: true - isArchived?: true - type?: true - checkItems?: true - labels?: true - images?: true - links?: true - reminder?: true - isReminderDone?: true - reminderRecurrence?: true - reminderLocation?: true - isMarkdown?: true - size?: true - embedding?: true - sharedWith?: true - userId?: true - order?: true - notebookId?: true - createdAt?: true - updatedAt?: true - autoGenerated?: true - aiProvider?: true - aiConfidence?: true - language?: true - languageConfidence?: true - lastAiAnalysis?: true - _all?: true - } - - export type NoteAggregateArgs = { - /** - * Filter which Note to aggregate. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Notes - **/ - _count?: true | NoteCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: NoteAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: NoteSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NoteMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NoteMaxAggregateInputType - } - - export type GetNoteAggregateType = { - [P in keyof T & keyof AggregateNote]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NoteGroupByArgs = { - where?: NoteWhereInput - orderBy?: NoteOrderByWithAggregationInput | NoteOrderByWithAggregationInput[] - by: NoteScalarFieldEnum[] | NoteScalarFieldEnum - having?: NoteScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NoteCountAggregateInputType | true - _avg?: NoteAvgAggregateInputType - _sum?: NoteSumAggregateInputType - _min?: NoteMinAggregateInputType - _max?: NoteMaxAggregateInputType - } - - export type NoteGroupByOutputType = { - id: string - title: string | null - content: string - color: string - isPinned: boolean - isArchived: boolean - type: string - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean - size: string - embedding: string | null - sharedWith: string | null - userId: string | null - order: number - notebookId: string | null - createdAt: Date - updatedAt: Date - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - _count: NoteCountAggregateOutputType | null - _avg: NoteAvgAggregateOutputType | null - _sum: NoteSumAggregateOutputType | null - _min: NoteMinAggregateOutputType | null - _max: NoteMaxAggregateOutputType | null - } - - type GetNoteGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NoteGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NoteSelect = $Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - }, ExtArgs["result"]["note"]> - - export type NoteSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - }, ExtArgs["result"]["note"]> - - export type NoteSelectScalar = { - id?: boolean - title?: boolean - content?: boolean - color?: boolean - isPinned?: boolean - isArchived?: boolean - type?: boolean - checkItems?: boolean - labels?: boolean - images?: boolean - links?: boolean - reminder?: boolean - isReminderDone?: boolean - reminderRecurrence?: boolean - reminderLocation?: boolean - isMarkdown?: boolean - size?: boolean - embedding?: boolean - sharedWith?: boolean - userId?: boolean - order?: boolean - notebookId?: boolean - createdAt?: boolean - updatedAt?: boolean - autoGenerated?: boolean - aiProvider?: boolean - aiConfidence?: boolean - language?: boolean - languageConfidence?: boolean - lastAiAnalysis?: boolean - } - - - export type $NotePayload = { - name: "Note" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - title: string | null - content: string - color: string - isPinned: boolean - isArchived: boolean - type: string - checkItems: string | null - labels: string | null - images: string | null - links: string | null - reminder: Date | null - isReminderDone: boolean - reminderRecurrence: string | null - reminderLocation: string | null - isMarkdown: boolean - size: string - embedding: string | null - sharedWith: string | null - userId: string | null - order: number - notebookId: string | null - createdAt: Date - updatedAt: Date - autoGenerated: boolean | null - aiProvider: string | null - aiConfidence: number | null - language: string | null - languageConfidence: number | null - lastAiAnalysis: Date | null - }, ExtArgs["result"]["note"]> - composites: {} - } - - type NoteGetPayload = $Result.GetResult - - type NoteCountArgs = - Omit & { - select?: NoteCountAggregateInputType | true - } - - export interface NoteDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Note'], meta: { name: 'Note' } } - /** - * Find zero or one Note that matches the filter. - * @param {NoteFindUniqueArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Note that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NoteFindUniqueOrThrowArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Note that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindFirstArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Note that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindFirstOrThrowArgs} args - Arguments to find a Note - * @example - * // Get one Note - * const note = await prisma.note.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Notes that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Notes - * const notes = await prisma.note.findMany() - * - * // Get first 10 Notes - * const notes = await prisma.note.findMany({ take: 10 }) - * - * // Only select the `id` - * const noteWithIdOnly = await prisma.note.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Note. - * @param {NoteCreateArgs} args - Arguments to create a Note. - * @example - * // Create one Note - * const Note = await prisma.note.create({ - * data: { - * // ... data to create a Note - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Notes. - * @param {NoteCreateManyArgs} args - Arguments to create many Notes. - * @example - * // Create many Notes - * const note = await prisma.note.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Notes and returns the data saved in the database. - * @param {NoteCreateManyAndReturnArgs} args - Arguments to create many Notes. - * @example - * // Create many Notes - * const note = await prisma.note.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Notes and only return the `id` - * const noteWithIdOnly = await prisma.note.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Note. - * @param {NoteDeleteArgs} args - Arguments to delete one Note. - * @example - * // Delete one Note - * const Note = await prisma.note.delete({ - * where: { - * // ... filter to delete one Note - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Note. - * @param {NoteUpdateArgs} args - Arguments to update one Note. - * @example - * // Update one Note - * const note = await prisma.note.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Notes. - * @param {NoteDeleteManyArgs} args - Arguments to filter Notes to delete. - * @example - * // Delete a few Notes - * const { count } = await prisma.note.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Notes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Notes - * const note = await prisma.note.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Note. - * @param {NoteUpsertArgs} args - Arguments to update or create a Note. - * @example - * // Update or create a Note - * const note = await prisma.note.upsert({ - * create: { - * // ... data to create a Note - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Note we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NoteClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Notes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteCountArgs} args - Arguments to filter Notes to count. - * @example - * // Count the number of Notes - * const count = await prisma.note.count({ - * where: { - * // ... the filter for the Notes we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Note. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Note. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NoteGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NoteGroupByArgs['orderBy'] } - : { orderBy?: NoteGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNoteGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Note model - */ - readonly fields: NoteFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Note. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NoteClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Note model - */ - interface NoteFieldRefs { - readonly id: FieldRef<"Note", 'String'> - readonly title: FieldRef<"Note", 'String'> - readonly content: FieldRef<"Note", 'String'> - readonly color: FieldRef<"Note", 'String'> - readonly isPinned: FieldRef<"Note", 'Boolean'> - readonly isArchived: FieldRef<"Note", 'Boolean'> - readonly type: FieldRef<"Note", 'String'> - readonly checkItems: FieldRef<"Note", 'String'> - readonly labels: FieldRef<"Note", 'String'> - readonly images: FieldRef<"Note", 'String'> - readonly links: FieldRef<"Note", 'String'> - readonly reminder: FieldRef<"Note", 'DateTime'> - readonly isReminderDone: FieldRef<"Note", 'Boolean'> - readonly reminderRecurrence: FieldRef<"Note", 'String'> - readonly reminderLocation: FieldRef<"Note", 'String'> - readonly isMarkdown: FieldRef<"Note", 'Boolean'> - readonly size: FieldRef<"Note", 'String'> - readonly embedding: FieldRef<"Note", 'String'> - readonly sharedWith: FieldRef<"Note", 'String'> - readonly userId: FieldRef<"Note", 'String'> - readonly order: FieldRef<"Note", 'Int'> - readonly notebookId: FieldRef<"Note", 'String'> - readonly createdAt: FieldRef<"Note", 'DateTime'> - readonly updatedAt: FieldRef<"Note", 'DateTime'> - readonly autoGenerated: FieldRef<"Note", 'Boolean'> - readonly aiProvider: FieldRef<"Note", 'String'> - readonly aiConfidence: FieldRef<"Note", 'Int'> - readonly language: FieldRef<"Note", 'String'> - readonly languageConfidence: FieldRef<"Note", 'Float'> - readonly lastAiAnalysis: FieldRef<"Note", 'DateTime'> - } - - - // Custom InputTypes - /** - * Note findUnique - */ - export type NoteFindUniqueArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter, which Note to fetch. - */ - where: NoteWhereUniqueInput - } - - /** - * Note findUniqueOrThrow - */ - export type NoteFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter, which Note to fetch. - */ - where: NoteWhereUniqueInput - } - - /** - * Note findFirst - */ - export type NoteFindFirstArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter, which Note to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notes. - */ - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note findFirstOrThrow - */ - export type NoteFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter, which Note to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notes. - */ - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note findMany - */ - export type NoteFindManyArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter, which Notes to fetch. - */ - where?: NoteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notes to fetch. - */ - orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Notes. - */ - cursor?: NoteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notes from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notes. - */ - skip?: number - distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[] - } - - /** - * Note create - */ - export type NoteCreateArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * The data needed to create a Note. - */ - data: XOR - } - - /** - * Note createMany - */ - export type NoteCreateManyArgs = { - /** - * The data used to create many Notes. - */ - data: NoteCreateManyInput | NoteCreateManyInput[] - } - - /** - * Note createManyAndReturn - */ - export type NoteCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelectCreateManyAndReturn | null - /** - * The data used to create many Notes. - */ - data: NoteCreateManyInput | NoteCreateManyInput[] - } - - /** - * Note update - */ - export type NoteUpdateArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * The data needed to update a Note. - */ - data: XOR - /** - * Choose, which Note to update. - */ - where: NoteWhereUniqueInput - } - - /** - * Note updateMany - */ - export type NoteUpdateManyArgs = { - /** - * The data used to update Notes. - */ - data: XOR - /** - * Filter which Notes to update - */ - where?: NoteWhereInput - } - - /** - * Note upsert - */ - export type NoteUpsertArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * The filter to search for the Note to update in case it exists. - */ - where: NoteWhereUniqueInput - /** - * In case the Note found by the `where` argument doesn't exist, create a new Note with this data. - */ - create: XOR - /** - * In case the Note was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Note delete - */ - export type NoteDeleteArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - /** - * Filter which Note to delete. - */ - where: NoteWhereUniqueInput - } - - /** - * Note deleteMany - */ - export type NoteDeleteManyArgs = { - /** - * Filter which Notes to delete - */ - where?: NoteWhereInput - } - - /** - * Note without action - */ - export type NoteDefaultArgs = { - /** - * Select specific fields to fetch from the Note - */ - select?: NoteSelect | null - } - - - /** - * Model Notebook - */ - - export type AggregateNotebook = { - _count: NotebookCountAggregateOutputType | null - _avg: NotebookAvgAggregateOutputType | null - _sum: NotebookSumAggregateOutputType | null - _min: NotebookMinAggregateOutputType | null - _max: NotebookMaxAggregateOutputType | null - } - - export type NotebookAvgAggregateOutputType = { - order: number | null - } - - export type NotebookSumAggregateOutputType = { - order: number | null - } - - export type NotebookMinAggregateOutputType = { - id: string | null - name: string | null - icon: string | null - color: string | null - order: number | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NotebookMaxAggregateOutputType = { - id: string | null - name: string | null - icon: string | null - color: string | null - order: number | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NotebookCountAggregateOutputType = { - id: number - name: number - icon: number - color: number - order: number - userId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type NotebookAvgAggregateInputType = { - order?: true - } - - export type NotebookSumAggregateInputType = { - order?: true - } - - export type NotebookMinAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type NotebookMaxAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type NotebookCountAggregateInputType = { - id?: true - name?: true - icon?: true - color?: true - order?: true - userId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type NotebookAggregateArgs = { - /** - * Filter which Notebook to aggregate. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Notebooks - **/ - _count?: true | NotebookCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: NotebookAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: NotebookSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NotebookMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NotebookMaxAggregateInputType - } - - export type GetNotebookAggregateType = { - [P in keyof T & keyof AggregateNotebook]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NotebookGroupByArgs = { - where?: NotebookWhereInput - orderBy?: NotebookOrderByWithAggregationInput | NotebookOrderByWithAggregationInput[] - by: NotebookScalarFieldEnum[] | NotebookScalarFieldEnum - having?: NotebookScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NotebookCountAggregateInputType | true - _avg?: NotebookAvgAggregateInputType - _sum?: NotebookSumAggregateInputType - _min?: NotebookMinAggregateInputType - _max?: NotebookMaxAggregateInputType - } - - export type NotebookGroupByOutputType = { - id: string - name: string - icon: string | null - color: string | null - order: number - userId: string - createdAt: Date - updatedAt: Date - _count: NotebookCountAggregateOutputType | null - _avg: NotebookAvgAggregateOutputType | null - _sum: NotebookSumAggregateOutputType | null - _min: NotebookMinAggregateOutputType | null - _max: NotebookMaxAggregateOutputType | null - } - - type GetNotebookGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NotebookGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NotebookSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["notebook"]> - - export type NotebookSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["notebook"]> - - export type NotebookSelectScalar = { - id?: boolean - name?: boolean - icon?: boolean - color?: boolean - order?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $NotebookPayload = { - name: "Notebook" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - icon: string | null - color: string | null - order: number - userId: string - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["notebook"]> - composites: {} - } - - type NotebookGetPayload = $Result.GetResult - - type NotebookCountArgs = - Omit & { - select?: NotebookCountAggregateInputType | true - } - - export interface NotebookDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Notebook'], meta: { name: 'Notebook' } } - /** - * Find zero or one Notebook that matches the filter. - * @param {NotebookFindUniqueArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Notebook that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NotebookFindUniqueOrThrowArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Notebook that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindFirstArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Notebook that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindFirstOrThrowArgs} args - Arguments to find a Notebook - * @example - * // Get one Notebook - * const notebook = await prisma.notebook.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Notebooks that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Notebooks - * const notebooks = await prisma.notebook.findMany() - * - * // Get first 10 Notebooks - * const notebooks = await prisma.notebook.findMany({ take: 10 }) - * - * // Only select the `id` - * const notebookWithIdOnly = await prisma.notebook.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Notebook. - * @param {NotebookCreateArgs} args - Arguments to create a Notebook. - * @example - * // Create one Notebook - * const Notebook = await prisma.notebook.create({ - * data: { - * // ... data to create a Notebook - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Notebooks. - * @param {NotebookCreateManyArgs} args - Arguments to create many Notebooks. - * @example - * // Create many Notebooks - * const notebook = await prisma.notebook.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Notebooks and returns the data saved in the database. - * @param {NotebookCreateManyAndReturnArgs} args - Arguments to create many Notebooks. - * @example - * // Create many Notebooks - * const notebook = await prisma.notebook.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Notebooks and only return the `id` - * const notebookWithIdOnly = await prisma.notebook.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Notebook. - * @param {NotebookDeleteArgs} args - Arguments to delete one Notebook. - * @example - * // Delete one Notebook - * const Notebook = await prisma.notebook.delete({ - * where: { - * // ... filter to delete one Notebook - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Notebook. - * @param {NotebookUpdateArgs} args - Arguments to update one Notebook. - * @example - * // Update one Notebook - * const notebook = await prisma.notebook.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Notebooks. - * @param {NotebookDeleteManyArgs} args - Arguments to filter Notebooks to delete. - * @example - * // Delete a few Notebooks - * const { count } = await prisma.notebook.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Notebooks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Notebooks - * const notebook = await prisma.notebook.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Notebook. - * @param {NotebookUpsertArgs} args - Arguments to update or create a Notebook. - * @example - * // Update or create a Notebook - * const notebook = await prisma.notebook.upsert({ - * create: { - * // ... data to create a Notebook - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Notebook we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NotebookClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Notebooks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookCountArgs} args - Arguments to filter Notebooks to count. - * @example - * // Count the number of Notebooks - * const count = await prisma.notebook.count({ - * where: { - * // ... the filter for the Notebooks we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Notebook. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Notebook. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NotebookGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NotebookGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NotebookGroupByArgs['orderBy'] } - : { orderBy?: NotebookGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNotebookGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Notebook model - */ - readonly fields: NotebookFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Notebook. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NotebookClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Notebook model - */ - interface NotebookFieldRefs { - readonly id: FieldRef<"Notebook", 'String'> - readonly name: FieldRef<"Notebook", 'String'> - readonly icon: FieldRef<"Notebook", 'String'> - readonly color: FieldRef<"Notebook", 'String'> - readonly order: FieldRef<"Notebook", 'Int'> - readonly userId: FieldRef<"Notebook", 'String'> - readonly createdAt: FieldRef<"Notebook", 'DateTime'> - readonly updatedAt: FieldRef<"Notebook", 'DateTime'> - } - - - // Custom InputTypes - /** - * Notebook findUnique - */ - export type NotebookFindUniqueArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter, which Notebook to fetch. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook findUniqueOrThrow - */ - export type NotebookFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter, which Notebook to fetch. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook findFirst - */ - export type NotebookFindFirstArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter, which Notebook to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notebooks. - */ - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook findFirstOrThrow - */ - export type NotebookFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter, which Notebook to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Notebooks. - */ - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook findMany - */ - export type NotebookFindManyArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter, which Notebooks to fetch. - */ - where?: NotebookWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Notebooks to fetch. - */ - orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Notebooks. - */ - cursor?: NotebookWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Notebooks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Notebooks. - */ - skip?: number - distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[] - } - - /** - * Notebook create - */ - export type NotebookCreateArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * The data needed to create a Notebook. - */ - data: XOR - } - - /** - * Notebook createMany - */ - export type NotebookCreateManyArgs = { - /** - * The data used to create many Notebooks. - */ - data: NotebookCreateManyInput | NotebookCreateManyInput[] - } - - /** - * Notebook createManyAndReturn - */ - export type NotebookCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelectCreateManyAndReturn | null - /** - * The data used to create many Notebooks. - */ - data: NotebookCreateManyInput | NotebookCreateManyInput[] - } - - /** - * Notebook update - */ - export type NotebookUpdateArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * The data needed to update a Notebook. - */ - data: XOR - /** - * Choose, which Notebook to update. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook updateMany - */ - export type NotebookUpdateManyArgs = { - /** - * The data used to update Notebooks. - */ - data: XOR - /** - * Filter which Notebooks to update - */ - where?: NotebookWhereInput - } - - /** - * Notebook upsert - */ - export type NotebookUpsertArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * The filter to search for the Notebook to update in case it exists. - */ - where: NotebookWhereUniqueInput - /** - * In case the Notebook found by the `where` argument doesn't exist, create a new Notebook with this data. - */ - create: XOR - /** - * In case the Notebook was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Notebook delete - */ - export type NotebookDeleteArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - /** - * Filter which Notebook to delete. - */ - where: NotebookWhereUniqueInput - } - - /** - * Notebook deleteMany - */ - export type NotebookDeleteManyArgs = { - /** - * Filter which Notebooks to delete - */ - where?: NotebookWhereInput - } - - /** - * Notebook without action - */ - export type NotebookDefaultArgs = { - /** - * Select specific fields to fetch from the Notebook - */ - select?: NotebookSelect | null - } - - - /** - * Model Label - */ - - export type AggregateLabel = { - _count: LabelCountAggregateOutputType | null - _min: LabelMinAggregateOutputType | null - _max: LabelMaxAggregateOutputType | null - } - - export type LabelMinAggregateOutputType = { - id: string | null - name: string | null - color: string | null - notebookId: string | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type LabelMaxAggregateOutputType = { - id: string | null - name: string | null - color: string | null - notebookId: string | null - userId: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type LabelCountAggregateOutputType = { - id: number - name: number - color: number - notebookId: number - userId: number - createdAt: number - updatedAt: number - _all: number - } - - - export type LabelMinAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type LabelMaxAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - } - - export type LabelCountAggregateInputType = { - id?: true - name?: true - color?: true - notebookId?: true - userId?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type LabelAggregateArgs = { - /** - * Filter which Label to aggregate. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Labels - **/ - _count?: true | LabelCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: LabelMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: LabelMaxAggregateInputType - } - - export type GetLabelAggregateType = { - [P in keyof T & keyof AggregateLabel]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type LabelGroupByArgs = { - where?: LabelWhereInput - orderBy?: LabelOrderByWithAggregationInput | LabelOrderByWithAggregationInput[] - by: LabelScalarFieldEnum[] | LabelScalarFieldEnum - having?: LabelScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: LabelCountAggregateInputType | true - _min?: LabelMinAggregateInputType - _max?: LabelMaxAggregateInputType - } - - export type LabelGroupByOutputType = { - id: string - name: string - color: string - notebookId: string | null - userId: string | null - createdAt: Date - updatedAt: Date - _count: LabelCountAggregateOutputType | null - _min: LabelMinAggregateOutputType | null - _max: LabelMaxAggregateOutputType | null - } - - type GetLabelGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof LabelGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type LabelSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["label"]> - - export type LabelSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["label"]> - - export type LabelSelectScalar = { - id?: boolean - name?: boolean - color?: boolean - notebookId?: boolean - userId?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $LabelPayload = { - name: "Label" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string - color: string - notebookId: string | null - userId: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["label"]> - composites: {} - } - - type LabelGetPayload = $Result.GetResult - - type LabelCountArgs = - Omit & { - select?: LabelCountAggregateInputType | true - } - - export interface LabelDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Label'], meta: { name: 'Label' } } - /** - * Find zero or one Label that matches the filter. - * @param {LabelFindUniqueArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Label that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {LabelFindUniqueOrThrowArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Label that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindFirstArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Label that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindFirstOrThrowArgs} args - Arguments to find a Label - * @example - * // Get one Label - * const label = await prisma.label.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Labels that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Labels - * const labels = await prisma.label.findMany() - * - * // Get first 10 Labels - * const labels = await prisma.label.findMany({ take: 10 }) - * - * // Only select the `id` - * const labelWithIdOnly = await prisma.label.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Label. - * @param {LabelCreateArgs} args - Arguments to create a Label. - * @example - * // Create one Label - * const Label = await prisma.label.create({ - * data: { - * // ... data to create a Label - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Labels. - * @param {LabelCreateManyArgs} args - Arguments to create many Labels. - * @example - * // Create many Labels - * const label = await prisma.label.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Labels and returns the data saved in the database. - * @param {LabelCreateManyAndReturnArgs} args - Arguments to create many Labels. - * @example - * // Create many Labels - * const label = await prisma.label.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Labels and only return the `id` - * const labelWithIdOnly = await prisma.label.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Label. - * @param {LabelDeleteArgs} args - Arguments to delete one Label. - * @example - * // Delete one Label - * const Label = await prisma.label.delete({ - * where: { - * // ... filter to delete one Label - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Label. - * @param {LabelUpdateArgs} args - Arguments to update one Label. - * @example - * // Update one Label - * const label = await prisma.label.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Labels. - * @param {LabelDeleteManyArgs} args - Arguments to filter Labels to delete. - * @example - * // Delete a few Labels - * const { count } = await prisma.label.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Labels. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Labels - * const label = await prisma.label.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Label. - * @param {LabelUpsertArgs} args - Arguments to update or create a Label. - * @example - * // Update or create a Label - * const label = await prisma.label.upsert({ - * create: { - * // ... data to create a Label - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Label we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__LabelClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Labels. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelCountArgs} args - Arguments to filter Labels to count. - * @example - * // Count the number of Labels - * const count = await prisma.label.count({ - * where: { - * // ... the filter for the Labels we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Label. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Label. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {LabelGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends LabelGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: LabelGroupByArgs['orderBy'] } - : { orderBy?: LabelGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetLabelGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Label model - */ - readonly fields: LabelFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Label. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__LabelClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Label model - */ - interface LabelFieldRefs { - readonly id: FieldRef<"Label", 'String'> - readonly name: FieldRef<"Label", 'String'> - readonly color: FieldRef<"Label", 'String'> - readonly notebookId: FieldRef<"Label", 'String'> - readonly userId: FieldRef<"Label", 'String'> - readonly createdAt: FieldRef<"Label", 'DateTime'> - readonly updatedAt: FieldRef<"Label", 'DateTime'> - } - - - // Custom InputTypes - /** - * Label findUnique - */ - export type LabelFindUniqueArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter, which Label to fetch. - */ - where: LabelWhereUniqueInput - } - - /** - * Label findUniqueOrThrow - */ - export type LabelFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter, which Label to fetch. - */ - where: LabelWhereUniqueInput - } - - /** - * Label findFirst - */ - export type LabelFindFirstArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter, which Label to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Labels. - */ - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label findFirstOrThrow - */ - export type LabelFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter, which Label to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Labels. - */ - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label findMany - */ - export type LabelFindManyArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter, which Labels to fetch. - */ - where?: LabelWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Labels to fetch. - */ - orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Labels. - */ - cursor?: LabelWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Labels from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Labels. - */ - skip?: number - distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[] - } - - /** - * Label create - */ - export type LabelCreateArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * The data needed to create a Label. - */ - data: XOR - } - - /** - * Label createMany - */ - export type LabelCreateManyArgs = { - /** - * The data used to create many Labels. - */ - data: LabelCreateManyInput | LabelCreateManyInput[] - } - - /** - * Label createManyAndReturn - */ - export type LabelCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelectCreateManyAndReturn | null - /** - * The data used to create many Labels. - */ - data: LabelCreateManyInput | LabelCreateManyInput[] - } - - /** - * Label update - */ - export type LabelUpdateArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * The data needed to update a Label. - */ - data: XOR - /** - * Choose, which Label to update. - */ - where: LabelWhereUniqueInput - } - - /** - * Label updateMany - */ - export type LabelUpdateManyArgs = { - /** - * The data used to update Labels. - */ - data: XOR - /** - * Filter which Labels to update - */ - where?: LabelWhereInput - } - - /** - * Label upsert - */ - export type LabelUpsertArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * The filter to search for the Label to update in case it exists. - */ - where: LabelWhereUniqueInput - /** - * In case the Label found by the `where` argument doesn't exist, create a new Label with this data. - */ - create: XOR - /** - * In case the Label was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Label delete - */ - export type LabelDeleteArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - /** - * Filter which Label to delete. - */ - where: LabelWhereUniqueInput - } - - /** - * Label deleteMany - */ - export type LabelDeleteManyArgs = { - /** - * Filter which Labels to delete - */ - where?: LabelWhereInput - } - - /** - * Label without action - */ - export type LabelDefaultArgs = { - /** - * Select specific fields to fetch from the Label - */ - select?: LabelSelect | null - } - - - /** - * Model User - */ - - export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - export type UserMinAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - password: string | null - role: string | null - image: string | null - theme: string | null - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type UserMaxAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: Date | null - password: string | null - role: string | null - image: string | null - theme: string | null - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type UserCountAggregateOutputType = { - id: number - name: number - email: number - emailVerified: number - password: number - role: number - image: number - theme: number - resetToken: number - resetTokenExpiry: number - createdAt: number - updatedAt: number - _all: number - } - - - export type UserMinAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - } - - export type UserMaxAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - } - - export type UserCountAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - password?: true - role?: true - image?: true - theme?: true - resetToken?: true - resetTokenExpiry?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType - } - - export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type UserGroupByArgs = { - where?: UserWhereInput - orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] - by: UserScalarFieldEnum[] | UserScalarFieldEnum - having?: UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType - } - - export type UserGroupByOutputType = { - id: string - name: string | null - email: string - emailVerified: Date | null - password: string | null - role: string - image: string | null - theme: string - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date - updatedAt: Date - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null - } - - type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type UserSelect = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["user"]> - - export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["user"]> - - export type UserSelectScalar = { - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - password?: boolean - role?: boolean - image?: boolean - theme?: boolean - resetToken?: boolean - resetTokenExpiry?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $UserPayload = { - name: "User" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - name: string | null - email: string - emailVerified: Date | null - password: string | null - role: string - image: string | null - theme: string - resetToken: string | null - resetTokenExpiry: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["user"]> - composites: {} - } - - type UserGetPayload = $Result.GetResult - - type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - - export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the User model - */ - readonly fields: UserFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the User model - */ - interface UserFieldRefs { - readonly id: FieldRef<"User", 'String'> - readonly name: FieldRef<"User", 'String'> - readonly email: FieldRef<"User", 'String'> - readonly emailVerified: FieldRef<"User", 'DateTime'> - readonly password: FieldRef<"User", 'String'> - readonly role: FieldRef<"User", 'String'> - readonly image: FieldRef<"User", 'String'> - readonly theme: FieldRef<"User", 'String'> - readonly resetToken: FieldRef<"User", 'String'> - readonly resetTokenExpiry: FieldRef<"User", 'DateTime'> - readonly createdAt: FieldRef<"User", 'DateTime'> - readonly updatedAt: FieldRef<"User", 'DateTime'> - } - - - // Custom InputTypes - /** - * User findUnique - */ - export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findUniqueOrThrow - */ - export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter, which User to fetch. - */ - where: UserWhereUniqueInput - } - - /** - * User findFirst - */ - export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findFirstOrThrow - */ - export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter, which User to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User findMany - */ - export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter, which Users to fetch. - */ - where?: UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] - } - - /** - * User create - */ - export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * The data needed to create a User. - */ - data: XOR - } - - /** - * User createMany - */ - export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - } - - /** - * User createManyAndReturn - */ - export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelectCreateManyAndReturn | null - /** - * The data used to create many Users. - */ - data: UserCreateManyInput | UserCreateManyInput[] - } - - /** - * User update - */ - export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * The data needed to update a User. - */ - data: XOR - /** - * Choose, which User to update. - */ - where: UserWhereUniqueInput - } - - /** - * User updateMany - */ - export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: XOR - /** - * Filter which Users to update - */ - where?: UserWhereInput - } - - /** - * User upsert - */ - export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * The filter to search for the User to update in case it exists. - */ - where: UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * User delete - */ - export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - /** - * Filter which User to delete. - */ - where: UserWhereUniqueInput - } - - /** - * User deleteMany - */ - export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: UserWhereInput - } - - /** - * User without action - */ - export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: UserSelect | null - } - - - /** - * Model Account - */ - - export type AggregateAccount = { - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null - } - - export type AccountAvgAggregateOutputType = { - expires_at: number | null - } - - export type AccountSumAggregateOutputType = { - expires_at: number | null - } - - export type AccountMinAggregateOutputType = { - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AccountMaxAggregateOutputType = { - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date | null - updatedAt: Date | null - } - - export type AccountCountAggregateOutputType = { - userId: number - type: number - provider: number - providerAccountId: number - refresh_token: number - access_token: number - expires_at: number - token_type: number - scope: number - id_token: number - session_state: number - createdAt: number - updatedAt: number - _all: number - } - - - export type AccountAvgAggregateInputType = { - expires_at?: true - } - - export type AccountSumAggregateInputType = { - expires_at?: true - } - - export type AccountMinAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - } - - export type AccountMaxAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - } - - export type AccountCountAggregateInputType = { - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type AccountAggregateArgs = { - /** - * Filter which Account to aggregate. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Accounts - **/ - _count?: true | AccountCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: AccountAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: AccountSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AccountMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AccountMaxAggregateInputType - } - - export type GetAccountAggregateType = { - [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type AccountGroupByArgs = { - where?: AccountWhereInput - orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[] - by: AccountScalarFieldEnum[] | AccountScalarFieldEnum - having?: AccountScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AccountCountAggregateInputType | true - _avg?: AccountAvgAggregateInputType - _sum?: AccountSumAggregateInputType - _min?: AccountMinAggregateInputType - _max?: AccountMaxAggregateInputType - } - - export type AccountGroupByOutputType = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date - updatedAt: Date - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null - } - - type GetAccountGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type AccountSelect = $Extensions.GetSelect<{ - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["account"]> - - export type AccountSelectCreateManyAndReturn = $Extensions.GetSelect<{ - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["account"]> - - export type AccountSelectScalar = { - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $AccountPayload = { - name: "Account" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["account"]> - composites: {} - } - - type AccountGetPayload = $Result.GetResult - - type AccountCountArgs = - Omit & { - select?: AccountCountAggregateInputType | true - } - - export interface AccountDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } - /** - * Find zero or one Account that matches the filter. - * @param {AccountFindUniqueArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Account that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Account that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Account that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Accounts that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Accounts - * const accounts = await prisma.account.findMany() - * - * // Get first 10 Accounts - * const accounts = await prisma.account.findMany({ take: 10 }) - * - * // Only select the `userId` - * const accountWithUserIdOnly = await prisma.account.findMany({ select: { userId: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Account. - * @param {AccountCreateArgs} args - Arguments to create a Account. - * @example - * // Create one Account - * const Account = await prisma.account.create({ - * data: { - * // ... data to create a Account - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Accounts. - * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Accounts and returns the data saved in the database. - * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Accounts and only return the `userId` - * const accountWithUserIdOnly = await prisma.account.createManyAndReturn({ - * select: { userId: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Account. - * @param {AccountDeleteArgs} args - Arguments to delete one Account. - * @example - * // Delete one Account - * const Account = await prisma.account.delete({ - * where: { - * // ... filter to delete one Account - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Account. - * @param {AccountUpdateArgs} args - Arguments to update one Account. - * @example - * // Update one Account - * const account = await prisma.account.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Accounts. - * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. - * @example - * // Delete a few Accounts - * const { count } = await prisma.account.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Accounts - * const account = await prisma.account.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Account. - * @param {AccountUpsertArgs} args - Arguments to update or create a Account. - * @example - * // Update or create a Account - * const account = await prisma.account.upsert({ - * create: { - * // ... data to create a Account - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Account we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountCountArgs} args - Arguments to filter Accounts to count. - * @example - * // Count the number of Accounts - * const count = await prisma.account.count({ - * where: { - * // ... the filter for the Accounts we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AccountGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: AccountGroupByArgs['orderBy'] } - : { orderBy?: AccountGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Account model - */ - readonly fields: AccountFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Account. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__AccountClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Account model - */ - interface AccountFieldRefs { - readonly userId: FieldRef<"Account", 'String'> - readonly type: FieldRef<"Account", 'String'> - readonly provider: FieldRef<"Account", 'String'> - readonly providerAccountId: FieldRef<"Account", 'String'> - readonly refresh_token: FieldRef<"Account", 'String'> - readonly access_token: FieldRef<"Account", 'String'> - readonly expires_at: FieldRef<"Account", 'Int'> - readonly token_type: FieldRef<"Account", 'String'> - readonly scope: FieldRef<"Account", 'String'> - readonly id_token: FieldRef<"Account", 'String'> - readonly session_state: FieldRef<"Account", 'String'> - readonly createdAt: FieldRef<"Account", 'DateTime'> - readonly updatedAt: FieldRef<"Account", 'DateTime'> - } - - - // Custom InputTypes - /** - * Account findUnique - */ - export type AccountFindUniqueArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter, which Account to fetch. - */ - where: AccountWhereUniqueInput - } - - /** - * Account findUniqueOrThrow - */ - export type AccountFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter, which Account to fetch. - */ - where: AccountWhereUniqueInput - } - - /** - * Account findFirst - */ - export type AccountFindFirstArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter, which Account to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account findFirstOrThrow - */ - export type AccountFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter, which Account to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account findMany - */ - export type AccountFindManyArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter, which Accounts to fetch. - */ - where?: AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Accounts. - */ - cursor?: AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Accounts. - */ - skip?: number - distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] - } - - /** - * Account create - */ - export type AccountCreateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * The data needed to create a Account. - */ - data: XOR - } - - /** - * Account createMany - */ - export type AccountCreateManyArgs = { - /** - * The data used to create many Accounts. - */ - data: AccountCreateManyInput | AccountCreateManyInput[] - } - - /** - * Account createManyAndReturn - */ - export type AccountCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelectCreateManyAndReturn | null - /** - * The data used to create many Accounts. - */ - data: AccountCreateManyInput | AccountCreateManyInput[] - } - - /** - * Account update - */ - export type AccountUpdateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * The data needed to update a Account. - */ - data: XOR - /** - * Choose, which Account to update. - */ - where: AccountWhereUniqueInput - } - - /** - * Account updateMany - */ - export type AccountUpdateManyArgs = { - /** - * The data used to update Accounts. - */ - data: XOR - /** - * Filter which Accounts to update - */ - where?: AccountWhereInput - } - - /** - * Account upsert - */ - export type AccountUpsertArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * The filter to search for the Account to update in case it exists. - */ - where: AccountWhereUniqueInput - /** - * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. - */ - create: XOR - /** - * In case the Account was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Account delete - */ - export type AccountDeleteArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - /** - * Filter which Account to delete. - */ - where: AccountWhereUniqueInput - } - - /** - * Account deleteMany - */ - export type AccountDeleteManyArgs = { - /** - * Filter which Accounts to delete - */ - where?: AccountWhereInput - } - - /** - * Account without action - */ - export type AccountDefaultArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: AccountSelect | null - } - - - /** - * Model Session - */ - - export type AggregateSession = { - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null - } - - export type SessionMinAggregateOutputType = { - sessionToken: string | null - userId: string | null - expires: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SessionMaxAggregateOutputType = { - sessionToken: string | null - userId: string | null - expires: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type SessionCountAggregateOutputType = { - sessionToken: number - userId: number - expires: number - createdAt: number - updatedAt: number - _all: number - } - - - export type SessionMinAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - } - - export type SessionMaxAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - } - - export type SessionCountAggregateInputType = { - sessionToken?: true - userId?: true - expires?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type SessionAggregateArgs = { - /** - * Filter which Session to aggregate. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Sessions - **/ - _count?: true | SessionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SessionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SessionMaxAggregateInputType - } - - export type GetSessionAggregateType = { - [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SessionGroupByArgs = { - where?: SessionWhereInput - orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[] - by: SessionScalarFieldEnum[] | SessionScalarFieldEnum - having?: SessionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SessionCountAggregateInputType | true - _min?: SessionMinAggregateInputType - _max?: SessionMaxAggregateInputType - } - - export type SessionGroupByOutputType = { - sessionToken: string - userId: string - expires: Date - createdAt: Date - updatedAt: Date - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null - } - - type GetSessionGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SessionSelect = $Extensions.GetSelect<{ - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["session"]> - - export type SessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["session"]> - - export type SessionSelectScalar = { - sessionToken?: boolean - userId?: boolean - expires?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $SessionPayload = { - name: "Session" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - sessionToken: string - userId: string - expires: Date - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["session"]> - composites: {} - } - - type SessionGetPayload = $Result.GetResult - - type SessionCountArgs = - Omit & { - select?: SessionCountAggregateInputType | true - } - - export interface SessionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } - /** - * Find zero or one Session that matches the filter. - * @param {SessionFindUniqueArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one Session that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first Session that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first Session that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more Sessions that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Sessions - * const sessions = await prisma.session.findMany() - * - * // Get first 10 Sessions - * const sessions = await prisma.session.findMany({ take: 10 }) - * - * // Only select the `sessionToken` - * const sessionWithSessionTokenOnly = await prisma.session.findMany({ select: { sessionToken: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a Session. - * @param {SessionCreateArgs} args - Arguments to create a Session. - * @example - * // Create one Session - * const Session = await prisma.session.create({ - * data: { - * // ... data to create a Session - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many Sessions. - * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Sessions and returns the data saved in the database. - * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Sessions and only return the `sessionToken` - * const sessionWithSessionTokenOnly = await prisma.session.createManyAndReturn({ - * select: { sessionToken: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a Session. - * @param {SessionDeleteArgs} args - Arguments to delete one Session. - * @example - * // Delete one Session - * const Session = await prisma.session.delete({ - * where: { - * // ... filter to delete one Session - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one Session. - * @param {SessionUpdateArgs} args - Arguments to update one Session. - * @example - * // Update one Session - * const session = await prisma.session.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more Sessions. - * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. - * @example - * // Delete a few Sessions - * const { count } = await prisma.session.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Sessions - * const session = await prisma.session.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one Session. - * @param {SessionUpsertArgs} args - Arguments to update or create a Session. - * @example - * // Update or create a Session - * const session = await prisma.session.upsert({ - * create: { - * // ... data to create a Session - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Session we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionCountArgs} args - Arguments to filter Sessions to count. - * @example - * // Count the number of Sessions - * const count = await prisma.session.count({ - * where: { - * // ... the filter for the Sessions we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SessionGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SessionGroupByArgs['orderBy'] } - : { orderBy?: SessionGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the Session model - */ - readonly fields: SessionFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for Session. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__SessionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the Session model - */ - interface SessionFieldRefs { - readonly sessionToken: FieldRef<"Session", 'String'> - readonly userId: FieldRef<"Session", 'String'> - readonly expires: FieldRef<"Session", 'DateTime'> - readonly createdAt: FieldRef<"Session", 'DateTime'> - readonly updatedAt: FieldRef<"Session", 'DateTime'> - } - - - // Custom InputTypes - /** - * Session findUnique - */ - export type SessionFindUniqueArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter, which Session to fetch. - */ - where: SessionWhereUniqueInput - } - - /** - * Session findUniqueOrThrow - */ - export type SessionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter, which Session to fetch. - */ - where: SessionWhereUniqueInput - } - - /** - * Session findFirst - */ - export type SessionFindFirstArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter, which Session to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session findFirstOrThrow - */ - export type SessionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter, which Session to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session findMany - */ - export type SessionFindManyArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter, which Sessions to fetch. - */ - where?: SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Sessions. - */ - cursor?: SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Sessions. - */ - skip?: number - distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] - } - - /** - * Session create - */ - export type SessionCreateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * The data needed to create a Session. - */ - data: XOR - } - - /** - * Session createMany - */ - export type SessionCreateManyArgs = { - /** - * The data used to create many Sessions. - */ - data: SessionCreateManyInput | SessionCreateManyInput[] - } - - /** - * Session createManyAndReturn - */ - export type SessionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelectCreateManyAndReturn | null - /** - * The data used to create many Sessions. - */ - data: SessionCreateManyInput | SessionCreateManyInput[] - } - - /** - * Session update - */ - export type SessionUpdateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * The data needed to update a Session. - */ - data: XOR - /** - * Choose, which Session to update. - */ - where: SessionWhereUniqueInput - } - - /** - * Session updateMany - */ - export type SessionUpdateManyArgs = { - /** - * The data used to update Sessions. - */ - data: XOR - /** - * Filter which Sessions to update - */ - where?: SessionWhereInput - } - - /** - * Session upsert - */ - export type SessionUpsertArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * The filter to search for the Session to update in case it exists. - */ - where: SessionWhereUniqueInput - /** - * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. - */ - create: XOR - /** - * In case the Session was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * Session delete - */ - export type SessionDeleteArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - /** - * Filter which Session to delete. - */ - where: SessionWhereUniqueInput - } - - /** - * Session deleteMany - */ - export type SessionDeleteManyArgs = { - /** - * Filter which Sessions to delete - */ - where?: SessionWhereInput - } - - /** - * Session without action - */ - export type SessionDefaultArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: SessionSelect | null - } - - - /** - * Model VerificationToken - */ - - export type AggregateVerificationToken = { - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null - } - - export type VerificationTokenMinAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null - } - - export type VerificationTokenMaxAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null - } - - export type VerificationTokenCountAggregateOutputType = { - identifier: number - token: number - expires: number - _all: number - } - - - export type VerificationTokenMinAggregateInputType = { - identifier?: true - token?: true - expires?: true - } - - export type VerificationTokenMaxAggregateInputType = { - identifier?: true - token?: true - expires?: true - } - - export type VerificationTokenCountAggregateInputType = { - identifier?: true - token?: true - expires?: true - _all?: true - } - - export type VerificationTokenAggregateArgs = { - /** - * Filter which VerificationToken to aggregate. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned VerificationTokens - **/ - _count?: true | VerificationTokenCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: VerificationTokenMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: VerificationTokenMaxAggregateInputType - } - - export type GetVerificationTokenAggregateType = { - [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type VerificationTokenGroupByArgs = { - where?: VerificationTokenWhereInput - orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[] - by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum - having?: VerificationTokenScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: VerificationTokenCountAggregateInputType | true - _min?: VerificationTokenMinAggregateInputType - _max?: VerificationTokenMaxAggregateInputType - } - - export type VerificationTokenGroupByOutputType = { - identifier: string - token: string - expires: Date - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null - } - - type GetVerificationTokenGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type VerificationTokenSelect = $Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean - }, ExtArgs["result"]["verificationToken"]> - - export type VerificationTokenSelectCreateManyAndReturn = $Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean - }, ExtArgs["result"]["verificationToken"]> - - export type VerificationTokenSelectScalar = { - identifier?: boolean - token?: boolean - expires?: boolean - } - - - export type $VerificationTokenPayload = { - name: "VerificationToken" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - identifier: string - token: string - expires: Date - }, ExtArgs["result"]["verificationToken"]> - composites: {} - } - - type VerificationTokenGetPayload = $Result.GetResult - - type VerificationTokenCountArgs = - Omit & { - select?: VerificationTokenCountAggregateInputType | true - } - - export interface VerificationTokenDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['VerificationToken'], meta: { name: 'VerificationToken' } } - /** - * Find zero or one VerificationToken that matches the filter. - * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first VerificationToken that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first VerificationToken that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more VerificationTokens that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * - * // Get first 10 VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 }) - * - * // Only select the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a VerificationToken. - * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken. - * @example - * // Create one VerificationToken - * const VerificationToken = await prisma.verificationToken.create({ - * data: { - * // ... data to create a VerificationToken - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many VerificationTokens. - * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many VerificationTokens and returns the data saved in the database. - * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({ - * select: { identifier: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a VerificationToken. - * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken. - * @example - * // Delete one VerificationToken - * const VerificationToken = await prisma.verificationToken.delete({ - * where: { - * // ... filter to delete one VerificationToken - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one VerificationToken. - * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken. - * @example - * // Update one VerificationToken - * const verificationToken = await prisma.verificationToken.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more VerificationTokens. - * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete. - * @example - * // Delete a few VerificationTokens - * const { count } = await prisma.verificationToken.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one VerificationToken. - * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken. - * @example - * // Update or create a VerificationToken - * const verificationToken = await prisma.verificationToken.upsert({ - * create: { - * // ... data to create a VerificationToken - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the VerificationToken we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__VerificationTokenClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count. - * @example - * // Count the number of VerificationTokens - * const count = await prisma.verificationToken.count({ - * where: { - * // ... the filter for the VerificationTokens we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends VerificationTokenGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: VerificationTokenGroupByArgs['orderBy'] } - : { orderBy?: VerificationTokenGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the VerificationToken model - */ - readonly fields: VerificationTokenFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for VerificationToken. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__VerificationTokenClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the VerificationToken model - */ - interface VerificationTokenFieldRefs { - readonly identifier: FieldRef<"VerificationToken", 'String'> - readonly token: FieldRef<"VerificationToken", 'String'> - readonly expires: FieldRef<"VerificationToken", 'DateTime'> - } - - - // Custom InputTypes - /** - * VerificationToken findUnique - */ - export type VerificationTokenFindUniqueArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken findUniqueOrThrow - */ - export type VerificationTokenFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken findFirst - */ - export type VerificationTokenFindFirstArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken findFirstOrThrow - */ - export type VerificationTokenFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken findMany - */ - export type VerificationTokenFindManyArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter, which VerificationTokens to fetch. - */ - where?: VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing VerificationTokens. - */ - cursor?: VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` VerificationTokens. - */ - skip?: number - distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[] - } - - /** - * VerificationToken create - */ - export type VerificationTokenCreateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The data needed to create a VerificationToken. - */ - data: XOR - } - - /** - * VerificationToken createMany - */ - export type VerificationTokenCreateManyArgs = { - /** - * The data used to create many VerificationTokens. - */ - data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[] - } - - /** - * VerificationToken createManyAndReturn - */ - export type VerificationTokenCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelectCreateManyAndReturn | null - /** - * The data used to create many VerificationTokens. - */ - data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[] - } - - /** - * VerificationToken update - */ - export type VerificationTokenUpdateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The data needed to update a VerificationToken. - */ - data: XOR - /** - * Choose, which VerificationToken to update. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken updateMany - */ - export type VerificationTokenUpdateManyArgs = { - /** - * The data used to update VerificationTokens. - */ - data: XOR - /** - * Filter which VerificationTokens to update - */ - where?: VerificationTokenWhereInput - } - - /** - * VerificationToken upsert - */ - export type VerificationTokenUpsertArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * The filter to search for the VerificationToken to update in case it exists. - */ - where: VerificationTokenWhereUniqueInput - /** - * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data. - */ - create: XOR - /** - * In case the VerificationToken was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * VerificationToken delete - */ - export type VerificationTokenDeleteArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - /** - * Filter which VerificationToken to delete. - */ - where: VerificationTokenWhereUniqueInput - } - - /** - * VerificationToken deleteMany - */ - export type VerificationTokenDeleteManyArgs = { - /** - * Filter which VerificationTokens to delete - */ - where?: VerificationTokenWhereInput - } - - /** - * VerificationToken without action - */ - export type VerificationTokenDefaultArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: VerificationTokenSelect | null - } - - - /** - * Model NoteShare - */ - - export type AggregateNoteShare = { - _count: NoteShareCountAggregateOutputType | null - _min: NoteShareMinAggregateOutputType | null - _max: NoteShareMaxAggregateOutputType | null - } - - export type NoteShareMinAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - sharedBy: string | null - status: string | null - permission: string | null - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NoteShareMaxAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - sharedBy: string | null - status: string | null - permission: string | null - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date | null - updatedAt: Date | null - } - - export type NoteShareCountAggregateOutputType = { - id: number - noteId: number - userId: number - sharedBy: number - status: number - permission: number - notifiedAt: number - respondedAt: number - createdAt: number - updatedAt: number - _all: number - } - - - export type NoteShareMinAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - } - - export type NoteShareMaxAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - } - - export type NoteShareCountAggregateInputType = { - id?: true - noteId?: true - userId?: true - sharedBy?: true - status?: true - permission?: true - notifiedAt?: true - respondedAt?: true - createdAt?: true - updatedAt?: true - _all?: true - } - - export type NoteShareAggregateArgs = { - /** - * Filter which NoteShare to aggregate. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned NoteShares - **/ - _count?: true | NoteShareCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NoteShareMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NoteShareMaxAggregateInputType - } - - export type GetNoteShareAggregateType = { - [P in keyof T & keyof AggregateNoteShare]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type NoteShareGroupByArgs = { - where?: NoteShareWhereInput - orderBy?: NoteShareOrderByWithAggregationInput | NoteShareOrderByWithAggregationInput[] - by: NoteShareScalarFieldEnum[] | NoteShareScalarFieldEnum - having?: NoteShareScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NoteShareCountAggregateInputType | true - _min?: NoteShareMinAggregateInputType - _max?: NoteShareMaxAggregateInputType - } - - export type NoteShareGroupByOutputType = { - id: string - noteId: string - userId: string - sharedBy: string - status: string - permission: string - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date - updatedAt: Date - _count: NoteShareCountAggregateOutputType | null - _min: NoteShareMinAggregateOutputType | null - _max: NoteShareMaxAggregateOutputType | null - } - - type GetNoteShareGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof NoteShareGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type NoteShareSelect = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["noteShare"]> - - export type NoteShareSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - }, ExtArgs["result"]["noteShare"]> - - export type NoteShareSelectScalar = { - id?: boolean - noteId?: boolean - userId?: boolean - sharedBy?: boolean - status?: boolean - permission?: boolean - notifiedAt?: boolean - respondedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - } - - - export type $NoteSharePayload = { - name: "NoteShare" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - noteId: string - userId: string - sharedBy: string - status: string - permission: string - notifiedAt: Date | null - respondedAt: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["noteShare"]> - composites: {} - } - - type NoteShareGetPayload = $Result.GetResult - - type NoteShareCountArgs = - Omit & { - select?: NoteShareCountAggregateInputType | true - } - - export interface NoteShareDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['NoteShare'], meta: { name: 'NoteShare' } } - /** - * Find zero or one NoteShare that matches the filter. - * @param {NoteShareFindUniqueArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one NoteShare that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NoteShareFindUniqueOrThrowArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first NoteShare that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindFirstArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first NoteShare that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindFirstOrThrowArgs} args - Arguments to find a NoteShare - * @example - * // Get one NoteShare - * const noteShare = await prisma.noteShare.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more NoteShares that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all NoteShares - * const noteShares = await prisma.noteShare.findMany() - * - * // Get first 10 NoteShares - * const noteShares = await prisma.noteShare.findMany({ take: 10 }) - * - * // Only select the `id` - * const noteShareWithIdOnly = await prisma.noteShare.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a NoteShare. - * @param {NoteShareCreateArgs} args - Arguments to create a NoteShare. - * @example - * // Create one NoteShare - * const NoteShare = await prisma.noteShare.create({ - * data: { - * // ... data to create a NoteShare - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many NoteShares. - * @param {NoteShareCreateManyArgs} args - Arguments to create many NoteShares. - * @example - * // Create many NoteShares - * const noteShare = await prisma.noteShare.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many NoteShares and returns the data saved in the database. - * @param {NoteShareCreateManyAndReturnArgs} args - Arguments to create many NoteShares. - * @example - * // Create many NoteShares - * const noteShare = await prisma.noteShare.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many NoteShares and only return the `id` - * const noteShareWithIdOnly = await prisma.noteShare.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a NoteShare. - * @param {NoteShareDeleteArgs} args - Arguments to delete one NoteShare. - * @example - * // Delete one NoteShare - * const NoteShare = await prisma.noteShare.delete({ - * where: { - * // ... filter to delete one NoteShare - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one NoteShare. - * @param {NoteShareUpdateArgs} args - Arguments to update one NoteShare. - * @example - * // Update one NoteShare - * const noteShare = await prisma.noteShare.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more NoteShares. - * @param {NoteShareDeleteManyArgs} args - Arguments to filter NoteShares to delete. - * @example - * // Delete a few NoteShares - * const { count } = await prisma.noteShare.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more NoteShares. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many NoteShares - * const noteShare = await prisma.noteShare.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one NoteShare. - * @param {NoteShareUpsertArgs} args - Arguments to update or create a NoteShare. - * @example - * // Update or create a NoteShare - * const noteShare = await prisma.noteShare.upsert({ - * create: { - * // ... data to create a NoteShare - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the NoteShare we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__NoteShareClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of NoteShares. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareCountArgs} args - Arguments to filter NoteShares to count. - * @example - * // Count the number of NoteShares - * const count = await prisma.noteShare.count({ - * where: { - * // ... the filter for the NoteShares we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a NoteShare. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by NoteShare. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NoteShareGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends NoteShareGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: NoteShareGroupByArgs['orderBy'] } - : { orderBy?: NoteShareGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNoteShareGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the NoteShare model - */ - readonly fields: NoteShareFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for NoteShare. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__NoteShareClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the NoteShare model - */ - interface NoteShareFieldRefs { - readonly id: FieldRef<"NoteShare", 'String'> - readonly noteId: FieldRef<"NoteShare", 'String'> - readonly userId: FieldRef<"NoteShare", 'String'> - readonly sharedBy: FieldRef<"NoteShare", 'String'> - readonly status: FieldRef<"NoteShare", 'String'> - readonly permission: FieldRef<"NoteShare", 'String'> - readonly notifiedAt: FieldRef<"NoteShare", 'DateTime'> - readonly respondedAt: FieldRef<"NoteShare", 'DateTime'> - readonly createdAt: FieldRef<"NoteShare", 'DateTime'> - readonly updatedAt: FieldRef<"NoteShare", 'DateTime'> - } - - - // Custom InputTypes - /** - * NoteShare findUnique - */ - export type NoteShareFindUniqueArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter, which NoteShare to fetch. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare findUniqueOrThrow - */ - export type NoteShareFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter, which NoteShare to fetch. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare findFirst - */ - export type NoteShareFindFirstArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter, which NoteShare to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of NoteShares. - */ - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare findFirstOrThrow - */ - export type NoteShareFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter, which NoteShare to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of NoteShares. - */ - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare findMany - */ - export type NoteShareFindManyArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter, which NoteShares to fetch. - */ - where?: NoteShareWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of NoteShares to fetch. - */ - orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing NoteShares. - */ - cursor?: NoteShareWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` NoteShares from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` NoteShares. - */ - skip?: number - distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[] - } - - /** - * NoteShare create - */ - export type NoteShareCreateArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * The data needed to create a NoteShare. - */ - data: XOR - } - - /** - * NoteShare createMany - */ - export type NoteShareCreateManyArgs = { - /** - * The data used to create many NoteShares. - */ - data: NoteShareCreateManyInput | NoteShareCreateManyInput[] - } - - /** - * NoteShare createManyAndReturn - */ - export type NoteShareCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelectCreateManyAndReturn | null - /** - * The data used to create many NoteShares. - */ - data: NoteShareCreateManyInput | NoteShareCreateManyInput[] - } - - /** - * NoteShare update - */ - export type NoteShareUpdateArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * The data needed to update a NoteShare. - */ - data: XOR - /** - * Choose, which NoteShare to update. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare updateMany - */ - export type NoteShareUpdateManyArgs = { - /** - * The data used to update NoteShares. - */ - data: XOR - /** - * Filter which NoteShares to update - */ - where?: NoteShareWhereInput - } - - /** - * NoteShare upsert - */ - export type NoteShareUpsertArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * The filter to search for the NoteShare to update in case it exists. - */ - where: NoteShareWhereUniqueInput - /** - * In case the NoteShare found by the `where` argument doesn't exist, create a new NoteShare with this data. - */ - create: XOR - /** - * In case the NoteShare was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * NoteShare delete - */ - export type NoteShareDeleteArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - /** - * Filter which NoteShare to delete. - */ - where: NoteShareWhereUniqueInput - } - - /** - * NoteShare deleteMany - */ - export type NoteShareDeleteManyArgs = { - /** - * Filter which NoteShares to delete - */ - where?: NoteShareWhereInput - } - - /** - * NoteShare without action - */ - export type NoteShareDefaultArgs = { - /** - * Select specific fields to fetch from the NoteShare - */ - select?: NoteShareSelect | null - } - - - /** - * Model SystemConfig - */ - - export type AggregateSystemConfig = { - _count: SystemConfigCountAggregateOutputType | null - _min: SystemConfigMinAggregateOutputType | null - _max: SystemConfigMaxAggregateOutputType | null - } - - export type SystemConfigMinAggregateOutputType = { - key: string | null - value: string | null - } - - export type SystemConfigMaxAggregateOutputType = { - key: string | null - value: string | null - } - - export type SystemConfigCountAggregateOutputType = { - key: number - value: number - _all: number - } - - - export type SystemConfigMinAggregateInputType = { - key?: true - value?: true - } - - export type SystemConfigMaxAggregateInputType = { - key?: true - value?: true - } - - export type SystemConfigCountAggregateInputType = { - key?: true - value?: true - _all?: true - } - - export type SystemConfigAggregateArgs = { - /** - * Filter which SystemConfig to aggregate. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SystemConfigs - **/ - _count?: true | SystemConfigCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SystemConfigMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SystemConfigMaxAggregateInputType - } - - export type GetSystemConfigAggregateType = { - [P in keyof T & keyof AggregateSystemConfig]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type SystemConfigGroupByArgs = { - where?: SystemConfigWhereInput - orderBy?: SystemConfigOrderByWithAggregationInput | SystemConfigOrderByWithAggregationInput[] - by: SystemConfigScalarFieldEnum[] | SystemConfigScalarFieldEnum - having?: SystemConfigScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SystemConfigCountAggregateInputType | true - _min?: SystemConfigMinAggregateInputType - _max?: SystemConfigMaxAggregateInputType - } - - export type SystemConfigGroupByOutputType = { - key: string - value: string - _count: SystemConfigCountAggregateOutputType | null - _min: SystemConfigMinAggregateOutputType | null - _max: SystemConfigMaxAggregateOutputType | null - } - - type GetSystemConfigGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof SystemConfigGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type SystemConfigSelect = $Extensions.GetSelect<{ - key?: boolean - value?: boolean - }, ExtArgs["result"]["systemConfig"]> - - export type SystemConfigSelectCreateManyAndReturn = $Extensions.GetSelect<{ - key?: boolean - value?: boolean - }, ExtArgs["result"]["systemConfig"]> - - export type SystemConfigSelectScalar = { - key?: boolean - value?: boolean - } - - - export type $SystemConfigPayload = { - name: "SystemConfig" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - key: string - value: string - }, ExtArgs["result"]["systemConfig"]> - composites: {} - } - - type SystemConfigGetPayload = $Result.GetResult - - type SystemConfigCountArgs = - Omit & { - select?: SystemConfigCountAggregateInputType | true - } - - export interface SystemConfigDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SystemConfig'], meta: { name: 'SystemConfig' } } - /** - * Find zero or one SystemConfig that matches the filter. - * @param {SystemConfigFindUniqueArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one SystemConfig that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SystemConfigFindUniqueOrThrowArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first SystemConfig that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindFirstArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first SystemConfig that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindFirstOrThrowArgs} args - Arguments to find a SystemConfig - * @example - * // Get one SystemConfig - * const systemConfig = await prisma.systemConfig.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more SystemConfigs that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany() - * - * // Get first 10 SystemConfigs - * const systemConfigs = await prisma.systemConfig.findMany({ take: 10 }) - * - * // Only select the `key` - * const systemConfigWithKeyOnly = await prisma.systemConfig.findMany({ select: { key: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a SystemConfig. - * @param {SystemConfigCreateArgs} args - Arguments to create a SystemConfig. - * @example - * // Create one SystemConfig - * const SystemConfig = await prisma.systemConfig.create({ - * data: { - * // ... data to create a SystemConfig - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many SystemConfigs. - * @param {SystemConfigCreateManyArgs} args - Arguments to create many SystemConfigs. - * @example - * // Create many SystemConfigs - * const systemConfig = await prisma.systemConfig.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SystemConfigs and returns the data saved in the database. - * @param {SystemConfigCreateManyAndReturnArgs} args - Arguments to create many SystemConfigs. - * @example - * // Create many SystemConfigs - * const systemConfig = await prisma.systemConfig.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SystemConfigs and only return the `key` - * const systemConfigWithKeyOnly = await prisma.systemConfig.createManyAndReturn({ - * select: { key: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a SystemConfig. - * @param {SystemConfigDeleteArgs} args - Arguments to delete one SystemConfig. - * @example - * // Delete one SystemConfig - * const SystemConfig = await prisma.systemConfig.delete({ - * where: { - * // ... filter to delete one SystemConfig - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one SystemConfig. - * @param {SystemConfigUpdateArgs} args - Arguments to update one SystemConfig. - * @example - * // Update one SystemConfig - * const systemConfig = await prisma.systemConfig.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more SystemConfigs. - * @param {SystemConfigDeleteManyArgs} args - Arguments to filter SystemConfigs to delete. - * @example - * // Delete a few SystemConfigs - * const { count } = await prisma.systemConfig.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SystemConfigs. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SystemConfigs - * const systemConfig = await prisma.systemConfig.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one SystemConfig. - * @param {SystemConfigUpsertArgs} args - Arguments to update or create a SystemConfig. - * @example - * // Update or create a SystemConfig - * const systemConfig = await prisma.systemConfig.upsert({ - * create: { - * // ... data to create a SystemConfig - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SystemConfig we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__SystemConfigClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of SystemConfigs. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigCountArgs} args - Arguments to filter SystemConfigs to count. - * @example - * // Count the number of SystemConfigs - * const count = await prisma.systemConfig.count({ - * where: { - * // ... the filter for the SystemConfigs we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SystemConfig. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by SystemConfig. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SystemConfigGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SystemConfigGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: SystemConfigGroupByArgs['orderBy'] } - : { orderBy?: SystemConfigGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSystemConfigGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the SystemConfig model - */ - readonly fields: SystemConfigFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for SystemConfig. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__SystemConfigClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the SystemConfig model - */ - interface SystemConfigFieldRefs { - readonly key: FieldRef<"SystemConfig", 'String'> - readonly value: FieldRef<"SystemConfig", 'String'> - } - - - // Custom InputTypes - /** - * SystemConfig findUnique - */ - export type SystemConfigFindUniqueArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig findUniqueOrThrow - */ - export type SystemConfigFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig findFirst - */ - export type SystemConfigFindFirstArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SystemConfigs. - */ - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig findFirstOrThrow - */ - export type SystemConfigFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfig to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SystemConfigs. - */ - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig findMany - */ - export type SystemConfigFindManyArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter, which SystemConfigs to fetch. - */ - where?: SystemConfigWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SystemConfigs to fetch. - */ - orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SystemConfigs. - */ - cursor?: SystemConfigWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SystemConfigs from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SystemConfigs. - */ - skip?: number - distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[] - } - - /** - * SystemConfig create - */ - export type SystemConfigCreateArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The data needed to create a SystemConfig. - */ - data: XOR - } - - /** - * SystemConfig createMany - */ - export type SystemConfigCreateManyArgs = { - /** - * The data used to create many SystemConfigs. - */ - data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[] - } - - /** - * SystemConfig createManyAndReturn - */ - export type SystemConfigCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelectCreateManyAndReturn | null - /** - * The data used to create many SystemConfigs. - */ - data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[] - } - - /** - * SystemConfig update - */ - export type SystemConfigUpdateArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The data needed to update a SystemConfig. - */ - data: XOR - /** - * Choose, which SystemConfig to update. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig updateMany - */ - export type SystemConfigUpdateManyArgs = { - /** - * The data used to update SystemConfigs. - */ - data: XOR - /** - * Filter which SystemConfigs to update - */ - where?: SystemConfigWhereInput - } - - /** - * SystemConfig upsert - */ - export type SystemConfigUpsertArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * The filter to search for the SystemConfig to update in case it exists. - */ - where: SystemConfigWhereUniqueInput - /** - * In case the SystemConfig found by the `where` argument doesn't exist, create a new SystemConfig with this data. - */ - create: XOR - /** - * In case the SystemConfig was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * SystemConfig delete - */ - export type SystemConfigDeleteArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - /** - * Filter which SystemConfig to delete. - */ - where: SystemConfigWhereUniqueInput - } - - /** - * SystemConfig deleteMany - */ - export type SystemConfigDeleteManyArgs = { - /** - * Filter which SystemConfigs to delete - */ - where?: SystemConfigWhereInput - } - - /** - * SystemConfig without action - */ - export type SystemConfigDefaultArgs = { - /** - * Select specific fields to fetch from the SystemConfig - */ - select?: SystemConfigSelect | null - } - - - /** - * Model AiFeedback - */ - - export type AggregateAiFeedback = { - _count: AiFeedbackCountAggregateOutputType | null - _min: AiFeedbackMinAggregateOutputType | null - _max: AiFeedbackMaxAggregateOutputType | null - } - - export type AiFeedbackMinAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - feedbackType: string | null - feature: string | null - originalContent: string | null - correctedContent: string | null - metadata: string | null - createdAt: Date | null - } - - export type AiFeedbackMaxAggregateOutputType = { - id: string | null - noteId: string | null - userId: string | null - feedbackType: string | null - feature: string | null - originalContent: string | null - correctedContent: string | null - metadata: string | null - createdAt: Date | null - } - - export type AiFeedbackCountAggregateOutputType = { - id: number - noteId: number - userId: number - feedbackType: number - feature: number - originalContent: number - correctedContent: number - metadata: number - createdAt: number - _all: number - } - - - export type AiFeedbackMinAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - } - - export type AiFeedbackMaxAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - } - - export type AiFeedbackCountAggregateInputType = { - id?: true - noteId?: true - userId?: true - feedbackType?: true - feature?: true - originalContent?: true - correctedContent?: true - metadata?: true - createdAt?: true - _all?: true - } - - export type AiFeedbackAggregateArgs = { - /** - * Filter which AiFeedback to aggregate. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AiFeedbacks - **/ - _count?: true | AiFeedbackCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AiFeedbackMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AiFeedbackMaxAggregateInputType - } - - export type GetAiFeedbackAggregateType = { - [P in keyof T & keyof AggregateAiFeedback]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type AiFeedbackGroupByArgs = { - where?: AiFeedbackWhereInput - orderBy?: AiFeedbackOrderByWithAggregationInput | AiFeedbackOrderByWithAggregationInput[] - by: AiFeedbackScalarFieldEnum[] | AiFeedbackScalarFieldEnum - having?: AiFeedbackScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AiFeedbackCountAggregateInputType | true - _min?: AiFeedbackMinAggregateInputType - _max?: AiFeedbackMaxAggregateInputType - } - - export type AiFeedbackGroupByOutputType = { - id: string - noteId: string - userId: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent: string | null - metadata: string | null - createdAt: Date - _count: AiFeedbackCountAggregateOutputType | null - _min: AiFeedbackMinAggregateOutputType | null - _max: AiFeedbackMaxAggregateOutputType | null - } - - type GetAiFeedbackGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof AiFeedbackGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type AiFeedbackSelect = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - }, ExtArgs["result"]["aiFeedback"]> - - export type AiFeedbackSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - }, ExtArgs["result"]["aiFeedback"]> - - export type AiFeedbackSelectScalar = { - id?: boolean - noteId?: boolean - userId?: boolean - feedbackType?: boolean - feature?: boolean - originalContent?: boolean - correctedContent?: boolean - metadata?: boolean - createdAt?: boolean - } - - - export type $AiFeedbackPayload = { - name: "AiFeedback" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - noteId: string - userId: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent: string | null - metadata: string | null - createdAt: Date - }, ExtArgs["result"]["aiFeedback"]> - composites: {} - } - - type AiFeedbackGetPayload = $Result.GetResult - - type AiFeedbackCountArgs = - Omit & { - select?: AiFeedbackCountAggregateInputType | true - } - - export interface AiFeedbackDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AiFeedback'], meta: { name: 'AiFeedback' } } - /** - * Find zero or one AiFeedback that matches the filter. - * @param {AiFeedbackFindUniqueArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one AiFeedback that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AiFeedbackFindUniqueOrThrowArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first AiFeedback that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindFirstArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first AiFeedback that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindFirstOrThrowArgs} args - Arguments to find a AiFeedback - * @example - * // Get one AiFeedback - * const aiFeedback = await prisma.aiFeedback.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more AiFeedbacks that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany() - * - * // Get first 10 AiFeedbacks - * const aiFeedbacks = await prisma.aiFeedback.findMany({ take: 10 }) - * - * // Only select the `id` - * const aiFeedbackWithIdOnly = await prisma.aiFeedback.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a AiFeedback. - * @param {AiFeedbackCreateArgs} args - Arguments to create a AiFeedback. - * @example - * // Create one AiFeedback - * const AiFeedback = await prisma.aiFeedback.create({ - * data: { - * // ... data to create a AiFeedback - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many AiFeedbacks. - * @param {AiFeedbackCreateManyArgs} args - Arguments to create many AiFeedbacks. - * @example - * // Create many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AiFeedbacks and returns the data saved in the database. - * @param {AiFeedbackCreateManyAndReturnArgs} args - Arguments to create many AiFeedbacks. - * @example - * // Create many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AiFeedbacks and only return the `id` - * const aiFeedbackWithIdOnly = await prisma.aiFeedback.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a AiFeedback. - * @param {AiFeedbackDeleteArgs} args - Arguments to delete one AiFeedback. - * @example - * // Delete one AiFeedback - * const AiFeedback = await prisma.aiFeedback.delete({ - * where: { - * // ... filter to delete one AiFeedback - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one AiFeedback. - * @param {AiFeedbackUpdateArgs} args - Arguments to update one AiFeedback. - * @example - * // Update one AiFeedback - * const aiFeedback = await prisma.aiFeedback.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more AiFeedbacks. - * @param {AiFeedbackDeleteManyArgs} args - Arguments to filter AiFeedbacks to delete. - * @example - * // Delete a few AiFeedbacks - * const { count } = await prisma.aiFeedback.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AiFeedbacks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AiFeedbacks - * const aiFeedback = await prisma.aiFeedback.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one AiFeedback. - * @param {AiFeedbackUpsertArgs} args - Arguments to update or create a AiFeedback. - * @example - * // Update or create a AiFeedback - * const aiFeedback = await prisma.aiFeedback.upsert({ - * create: { - * // ... data to create a AiFeedback - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AiFeedback we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__AiFeedbackClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of AiFeedbacks. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackCountArgs} args - Arguments to filter AiFeedbacks to count. - * @example - * // Count the number of AiFeedbacks - * const count = await prisma.aiFeedback.count({ - * where: { - * // ... the filter for the AiFeedbacks we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AiFeedback. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by AiFeedback. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AiFeedbackGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AiFeedbackGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: AiFeedbackGroupByArgs['orderBy'] } - : { orderBy?: AiFeedbackGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAiFeedbackGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the AiFeedback model - */ - readonly fields: AiFeedbackFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for AiFeedback. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__AiFeedbackClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the AiFeedback model - */ - interface AiFeedbackFieldRefs { - readonly id: FieldRef<"AiFeedback", 'String'> - readonly noteId: FieldRef<"AiFeedback", 'String'> - readonly userId: FieldRef<"AiFeedback", 'String'> - readonly feedbackType: FieldRef<"AiFeedback", 'String'> - readonly feature: FieldRef<"AiFeedback", 'String'> - readonly originalContent: FieldRef<"AiFeedback", 'String'> - readonly correctedContent: FieldRef<"AiFeedback", 'String'> - readonly metadata: FieldRef<"AiFeedback", 'String'> - readonly createdAt: FieldRef<"AiFeedback", 'DateTime'> - } - - - // Custom InputTypes - /** - * AiFeedback findUnique - */ - export type AiFeedbackFindUniqueArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter, which AiFeedback to fetch. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback findUniqueOrThrow - */ - export type AiFeedbackFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter, which AiFeedback to fetch. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback findFirst - */ - export type AiFeedbackFindFirstArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter, which AiFeedback to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AiFeedbacks. - */ - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback findFirstOrThrow - */ - export type AiFeedbackFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter, which AiFeedback to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AiFeedbacks. - */ - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback findMany - */ - export type AiFeedbackFindManyArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter, which AiFeedbacks to fetch. - */ - where?: AiFeedbackWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AiFeedbacks to fetch. - */ - orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AiFeedbacks. - */ - cursor?: AiFeedbackWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AiFeedbacks from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AiFeedbacks. - */ - skip?: number - distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[] - } - - /** - * AiFeedback create - */ - export type AiFeedbackCreateArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * The data needed to create a AiFeedback. - */ - data: XOR - } - - /** - * AiFeedback createMany - */ - export type AiFeedbackCreateManyArgs = { - /** - * The data used to create many AiFeedbacks. - */ - data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[] - } - - /** - * AiFeedback createManyAndReturn - */ - export type AiFeedbackCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelectCreateManyAndReturn | null - /** - * The data used to create many AiFeedbacks. - */ - data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[] - } - - /** - * AiFeedback update - */ - export type AiFeedbackUpdateArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * The data needed to update a AiFeedback. - */ - data: XOR - /** - * Choose, which AiFeedback to update. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback updateMany - */ - export type AiFeedbackUpdateManyArgs = { - /** - * The data used to update AiFeedbacks. - */ - data: XOR - /** - * Filter which AiFeedbacks to update - */ - where?: AiFeedbackWhereInput - } - - /** - * AiFeedback upsert - */ - export type AiFeedbackUpsertArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * The filter to search for the AiFeedback to update in case it exists. - */ - where: AiFeedbackWhereUniqueInput - /** - * In case the AiFeedback found by the `where` argument doesn't exist, create a new AiFeedback with this data. - */ - create: XOR - /** - * In case the AiFeedback was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * AiFeedback delete - */ - export type AiFeedbackDeleteArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - /** - * Filter which AiFeedback to delete. - */ - where: AiFeedbackWhereUniqueInput - } - - /** - * AiFeedback deleteMany - */ - export type AiFeedbackDeleteManyArgs = { - /** - * Filter which AiFeedbacks to delete - */ - where?: AiFeedbackWhereInput - } - - /** - * AiFeedback without action - */ - export type AiFeedbackDefaultArgs = { - /** - * Select specific fields to fetch from the AiFeedback - */ - select?: AiFeedbackSelect | null - } - - - /** - * Model MemoryEchoInsight - */ - - export type AggregateMemoryEchoInsight = { - _count: MemoryEchoInsightCountAggregateOutputType | null - _avg: MemoryEchoInsightAvgAggregateOutputType | null - _sum: MemoryEchoInsightSumAggregateOutputType | null - _min: MemoryEchoInsightMinAggregateOutputType | null - _max: MemoryEchoInsightMaxAggregateOutputType | null - } - - export type MemoryEchoInsightAvgAggregateOutputType = { - similarityScore: number | null - } - - export type MemoryEchoInsightSumAggregateOutputType = { - similarityScore: number | null - } - - export type MemoryEchoInsightMinAggregateOutputType = { - id: string | null - userId: string | null - note1Id: string | null - note2Id: string | null - similarityScore: number | null - insight: string | null - insightDate: Date | null - viewed: boolean | null - feedback: string | null - dismissed: boolean | null - } - - export type MemoryEchoInsightMaxAggregateOutputType = { - id: string | null - userId: string | null - note1Id: string | null - note2Id: string | null - similarityScore: number | null - insight: string | null - insightDate: Date | null - viewed: boolean | null - feedback: string | null - dismissed: boolean | null - } - - export type MemoryEchoInsightCountAggregateOutputType = { - id: number - userId: number - note1Id: number - note2Id: number - similarityScore: number - insight: number - insightDate: number - viewed: number - feedback: number - dismissed: number - _all: number - } - - - export type MemoryEchoInsightAvgAggregateInputType = { - similarityScore?: true - } - - export type MemoryEchoInsightSumAggregateInputType = { - similarityScore?: true - } - - export type MemoryEchoInsightMinAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - } - - export type MemoryEchoInsightMaxAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - } - - export type MemoryEchoInsightCountAggregateInputType = { - id?: true - userId?: true - note1Id?: true - note2Id?: true - similarityScore?: true - insight?: true - insightDate?: true - viewed?: true - feedback?: true - dismissed?: true - _all?: true - } - - export type MemoryEchoInsightAggregateArgs = { - /** - * Filter which MemoryEchoInsight to aggregate. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned MemoryEchoInsights - **/ - _count?: true | MemoryEchoInsightCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: MemoryEchoInsightAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: MemoryEchoInsightSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: MemoryEchoInsightMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: MemoryEchoInsightMaxAggregateInputType - } - - export type GetMemoryEchoInsightAggregateType = { - [P in keyof T & keyof AggregateMemoryEchoInsight]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type MemoryEchoInsightGroupByArgs = { - where?: MemoryEchoInsightWhereInput - orderBy?: MemoryEchoInsightOrderByWithAggregationInput | MemoryEchoInsightOrderByWithAggregationInput[] - by: MemoryEchoInsightScalarFieldEnum[] | MemoryEchoInsightScalarFieldEnum - having?: MemoryEchoInsightScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: MemoryEchoInsightCountAggregateInputType | true - _avg?: MemoryEchoInsightAvgAggregateInputType - _sum?: MemoryEchoInsightSumAggregateInputType - _min?: MemoryEchoInsightMinAggregateInputType - _max?: MemoryEchoInsightMaxAggregateInputType - } - - export type MemoryEchoInsightGroupByOutputType = { - id: string - userId: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate: Date - viewed: boolean - feedback: string | null - dismissed: boolean - _count: MemoryEchoInsightCountAggregateOutputType | null - _avg: MemoryEchoInsightAvgAggregateOutputType | null - _sum: MemoryEchoInsightSumAggregateOutputType | null - _min: MemoryEchoInsightMinAggregateOutputType | null - _max: MemoryEchoInsightMaxAggregateOutputType | null - } - - type GetMemoryEchoInsightGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof MemoryEchoInsightGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type MemoryEchoInsightSelect = $Extensions.GetSelect<{ - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - }, ExtArgs["result"]["memoryEchoInsight"]> - - export type MemoryEchoInsightSelectCreateManyAndReturn = $Extensions.GetSelect<{ - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - }, ExtArgs["result"]["memoryEchoInsight"]> - - export type MemoryEchoInsightSelectScalar = { - id?: boolean - userId?: boolean - note1Id?: boolean - note2Id?: boolean - similarityScore?: boolean - insight?: boolean - insightDate?: boolean - viewed?: boolean - feedback?: boolean - dismissed?: boolean - } - - - export type $MemoryEchoInsightPayload = { - name: "MemoryEchoInsight" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - id: string - userId: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate: Date - viewed: boolean - feedback: string | null - dismissed: boolean - }, ExtArgs["result"]["memoryEchoInsight"]> - composites: {} - } - - type MemoryEchoInsightGetPayload = $Result.GetResult - - type MemoryEchoInsightCountArgs = - Omit & { - select?: MemoryEchoInsightCountAggregateInputType | true - } - - export interface MemoryEchoInsightDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['MemoryEchoInsight'], meta: { name: 'MemoryEchoInsight' } } - /** - * Find zero or one MemoryEchoInsight that matches the filter. - * @param {MemoryEchoInsightFindUniqueArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one MemoryEchoInsight that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {MemoryEchoInsightFindUniqueOrThrowArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first MemoryEchoInsight that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindFirstArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first MemoryEchoInsight that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindFirstOrThrowArgs} args - Arguments to find a MemoryEchoInsight - * @example - * // Get one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more MemoryEchoInsights that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany() - * - * // Get first 10 MemoryEchoInsights - * const memoryEchoInsights = await prisma.memoryEchoInsight.findMany({ take: 10 }) - * - * // Only select the `id` - * const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.findMany({ select: { id: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a MemoryEchoInsight. - * @param {MemoryEchoInsightCreateArgs} args - Arguments to create a MemoryEchoInsight. - * @example - * // Create one MemoryEchoInsight - * const MemoryEchoInsight = await prisma.memoryEchoInsight.create({ - * data: { - * // ... data to create a MemoryEchoInsight - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many MemoryEchoInsights. - * @param {MemoryEchoInsightCreateManyArgs} args - Arguments to create many MemoryEchoInsights. - * @example - * // Create many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many MemoryEchoInsights and returns the data saved in the database. - * @param {MemoryEchoInsightCreateManyAndReturnArgs} args - Arguments to create many MemoryEchoInsights. - * @example - * // Create many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many MemoryEchoInsights and only return the `id` - * const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a MemoryEchoInsight. - * @param {MemoryEchoInsightDeleteArgs} args - Arguments to delete one MemoryEchoInsight. - * @example - * // Delete one MemoryEchoInsight - * const MemoryEchoInsight = await prisma.memoryEchoInsight.delete({ - * where: { - * // ... filter to delete one MemoryEchoInsight - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one MemoryEchoInsight. - * @param {MemoryEchoInsightUpdateArgs} args - Arguments to update one MemoryEchoInsight. - * @example - * // Update one MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more MemoryEchoInsights. - * @param {MemoryEchoInsightDeleteManyArgs} args - Arguments to filter MemoryEchoInsights to delete. - * @example - * // Delete a few MemoryEchoInsights - * const { count } = await prisma.memoryEchoInsight.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more MemoryEchoInsights. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many MemoryEchoInsights - * const memoryEchoInsight = await prisma.memoryEchoInsight.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one MemoryEchoInsight. - * @param {MemoryEchoInsightUpsertArgs} args - Arguments to update or create a MemoryEchoInsight. - * @example - * // Update or create a MemoryEchoInsight - * const memoryEchoInsight = await prisma.memoryEchoInsight.upsert({ - * create: { - * // ... data to create a MemoryEchoInsight - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the MemoryEchoInsight we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__MemoryEchoInsightClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of MemoryEchoInsights. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightCountArgs} args - Arguments to filter MemoryEchoInsights to count. - * @example - * // Count the number of MemoryEchoInsights - * const count = await prisma.memoryEchoInsight.count({ - * where: { - * // ... the filter for the MemoryEchoInsights we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a MemoryEchoInsight. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by MemoryEchoInsight. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MemoryEchoInsightGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends MemoryEchoInsightGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: MemoryEchoInsightGroupByArgs['orderBy'] } - : { orderBy?: MemoryEchoInsightGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMemoryEchoInsightGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the MemoryEchoInsight model - */ - readonly fields: MemoryEchoInsightFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for MemoryEchoInsight. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__MemoryEchoInsightClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the MemoryEchoInsight model - */ - interface MemoryEchoInsightFieldRefs { - readonly id: FieldRef<"MemoryEchoInsight", 'String'> - readonly userId: FieldRef<"MemoryEchoInsight", 'String'> - readonly note1Id: FieldRef<"MemoryEchoInsight", 'String'> - readonly note2Id: FieldRef<"MemoryEchoInsight", 'String'> - readonly similarityScore: FieldRef<"MemoryEchoInsight", 'Float'> - readonly insight: FieldRef<"MemoryEchoInsight", 'String'> - readonly insightDate: FieldRef<"MemoryEchoInsight", 'DateTime'> - readonly viewed: FieldRef<"MemoryEchoInsight", 'Boolean'> - readonly feedback: FieldRef<"MemoryEchoInsight", 'String'> - readonly dismissed: FieldRef<"MemoryEchoInsight", 'Boolean'> - } - - - // Custom InputTypes - /** - * MemoryEchoInsight findUnique - */ - export type MemoryEchoInsightFindUniqueArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight findUniqueOrThrow - */ - export type MemoryEchoInsightFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight findFirst - */ - export type MemoryEchoInsightFindFirstArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MemoryEchoInsights. - */ - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight findFirstOrThrow - */ - export type MemoryEchoInsightFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter, which MemoryEchoInsight to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MemoryEchoInsights. - */ - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight findMany - */ - export type MemoryEchoInsightFindManyArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter, which MemoryEchoInsights to fetch. - */ - where?: MemoryEchoInsightWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MemoryEchoInsights to fetch. - */ - orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing MemoryEchoInsights. - */ - cursor?: MemoryEchoInsightWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MemoryEchoInsights from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` MemoryEchoInsights. - */ - skip?: number - distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[] - } - - /** - * MemoryEchoInsight create - */ - export type MemoryEchoInsightCreateArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * The data needed to create a MemoryEchoInsight. - */ - data: XOR - } - - /** - * MemoryEchoInsight createMany - */ - export type MemoryEchoInsightCreateManyArgs = { - /** - * The data used to create many MemoryEchoInsights. - */ - data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[] - } - - /** - * MemoryEchoInsight createManyAndReturn - */ - export type MemoryEchoInsightCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelectCreateManyAndReturn | null - /** - * The data used to create many MemoryEchoInsights. - */ - data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[] - } - - /** - * MemoryEchoInsight update - */ - export type MemoryEchoInsightUpdateArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * The data needed to update a MemoryEchoInsight. - */ - data: XOR - /** - * Choose, which MemoryEchoInsight to update. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight updateMany - */ - export type MemoryEchoInsightUpdateManyArgs = { - /** - * The data used to update MemoryEchoInsights. - */ - data: XOR - /** - * Filter which MemoryEchoInsights to update - */ - where?: MemoryEchoInsightWhereInput - } - - /** - * MemoryEchoInsight upsert - */ - export type MemoryEchoInsightUpsertArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * The filter to search for the MemoryEchoInsight to update in case it exists. - */ - where: MemoryEchoInsightWhereUniqueInput - /** - * In case the MemoryEchoInsight found by the `where` argument doesn't exist, create a new MemoryEchoInsight with this data. - */ - create: XOR - /** - * In case the MemoryEchoInsight was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * MemoryEchoInsight delete - */ - export type MemoryEchoInsightDeleteArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - /** - * Filter which MemoryEchoInsight to delete. - */ - where: MemoryEchoInsightWhereUniqueInput - } - - /** - * MemoryEchoInsight deleteMany - */ - export type MemoryEchoInsightDeleteManyArgs = { - /** - * Filter which MemoryEchoInsights to delete - */ - where?: MemoryEchoInsightWhereInput - } - - /** - * MemoryEchoInsight without action - */ - export type MemoryEchoInsightDefaultArgs = { - /** - * Select specific fields to fetch from the MemoryEchoInsight - */ - select?: MemoryEchoInsightSelect | null - } - - - /** - * Model UserAISettings - */ - - export type AggregateUserAISettings = { - _count: UserAISettingsCountAggregateOutputType | null - _min: UserAISettingsMinAggregateOutputType | null - _max: UserAISettingsMaxAggregateOutputType | null - } - - export type UserAISettingsMinAggregateOutputType = { - userId: string | null - titleSuggestions: boolean | null - semanticSearch: boolean | null - paragraphRefactor: boolean | null - memoryEcho: boolean | null - memoryEchoFrequency: string | null - aiProvider: string | null - preferredLanguage: string | null - fontSize: string | null - demoMode: boolean | null - showRecentNotes: boolean | null - emailNotifications: boolean | null - desktopNotifications: boolean | null - anonymousAnalytics: boolean | null - } - - export type UserAISettingsMaxAggregateOutputType = { - userId: string | null - titleSuggestions: boolean | null - semanticSearch: boolean | null - paragraphRefactor: boolean | null - memoryEcho: boolean | null - memoryEchoFrequency: string | null - aiProvider: string | null - preferredLanguage: string | null - fontSize: string | null - demoMode: boolean | null - showRecentNotes: boolean | null - emailNotifications: boolean | null - desktopNotifications: boolean | null - anonymousAnalytics: boolean | null - } - - export type UserAISettingsCountAggregateOutputType = { - userId: number - titleSuggestions: number - semanticSearch: number - paragraphRefactor: number - memoryEcho: number - memoryEchoFrequency: number - aiProvider: number - preferredLanguage: number - fontSize: number - demoMode: number - showRecentNotes: number - emailNotifications: number - desktopNotifications: number - anonymousAnalytics: number - _all: number - } - - - export type UserAISettingsMinAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - } - - export type UserAISettingsMaxAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - } - - export type UserAISettingsCountAggregateInputType = { - userId?: true - titleSuggestions?: true - semanticSearch?: true - paragraphRefactor?: true - memoryEcho?: true - memoryEchoFrequency?: true - aiProvider?: true - preferredLanguage?: true - fontSize?: true - demoMode?: true - showRecentNotes?: true - emailNotifications?: true - desktopNotifications?: true - anonymousAnalytics?: true - _all?: true - } - - export type UserAISettingsAggregateArgs = { - /** - * Filter which UserAISettings to aggregate. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned UserAISettings - **/ - _count?: true | UserAISettingsCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserAISettingsMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserAISettingsMaxAggregateInputType - } - - export type GetUserAISettingsAggregateType = { - [P in keyof T & keyof AggregateUserAISettings]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : GetScalarType - : GetScalarType - } - - - - - export type UserAISettingsGroupByArgs = { - where?: UserAISettingsWhereInput - orderBy?: UserAISettingsOrderByWithAggregationInput | UserAISettingsOrderByWithAggregationInput[] - by: UserAISettingsScalarFieldEnum[] | UserAISettingsScalarFieldEnum - having?: UserAISettingsScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserAISettingsCountAggregateInputType | true - _min?: UserAISettingsMinAggregateInputType - _max?: UserAISettingsMaxAggregateInputType - } - - export type UserAISettingsGroupByOutputType = { - userId: string - titleSuggestions: boolean - semanticSearch: boolean - paragraphRefactor: boolean - memoryEcho: boolean - memoryEchoFrequency: string - aiProvider: string - preferredLanguage: string - fontSize: string - demoMode: boolean - showRecentNotes: boolean - emailNotifications: boolean - desktopNotifications: boolean - anonymousAnalytics: boolean - _count: UserAISettingsCountAggregateOutputType | null - _min: UserAISettingsMinAggregateOutputType | null - _max: UserAISettingsMaxAggregateOutputType | null - } - - type GetUserAISettingsGroupByPayload = Prisma.PrismaPromise< - Array< - PickEnumerable & - { - [P in ((keyof T) & (keyof UserAISettingsGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : GetScalarType - : GetScalarType - } - > - > - - - export type UserAISettingsSelect = $Extensions.GetSelect<{ - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - }, ExtArgs["result"]["userAISettings"]> - - export type UserAISettingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - }, ExtArgs["result"]["userAISettings"]> - - export type UserAISettingsSelectScalar = { - userId?: boolean - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: boolean - aiProvider?: boolean - preferredLanguage?: boolean - fontSize?: boolean - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - - export type $UserAISettingsPayload = { - name: "UserAISettings" - objects: {} - scalars: $Extensions.GetPayloadResult<{ - userId: string - titleSuggestions: boolean - semanticSearch: boolean - paragraphRefactor: boolean - memoryEcho: boolean - memoryEchoFrequency: string - aiProvider: string - preferredLanguage: string - fontSize: string - demoMode: boolean - showRecentNotes: boolean - emailNotifications: boolean - desktopNotifications: boolean - anonymousAnalytics: boolean - }, ExtArgs["result"]["userAISettings"]> - composites: {} - } - - type UserAISettingsGetPayload = $Result.GetResult - - type UserAISettingsCountArgs = - Omit & { - select?: UserAISettingsCountAggregateInputType | true - } - - export interface UserAISettingsDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['UserAISettings'], meta: { name: 'UserAISettings' } } - /** - * Find zero or one UserAISettings that matches the filter. - * @param {UserAISettingsFindUniqueArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> - - /** - * Find one UserAISettings that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserAISettingsFindUniqueOrThrowArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> - - /** - * Find the first UserAISettings that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindFirstArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> - - /** - * Find the first UserAISettings that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindFirstOrThrowArgs} args - Arguments to find a UserAISettings - * @example - * // Get one UserAISettings - * const userAISettings = await prisma.userAISettings.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> - - /** - * Find zero or more UserAISettings that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all UserAISettings - * const userAISettings = await prisma.userAISettings.findMany() - * - * // Get first 10 UserAISettings - * const userAISettings = await prisma.userAISettings.findMany({ take: 10 }) - * - * // Only select the `userId` - * const userAISettingsWithUserIdOnly = await prisma.userAISettings.findMany({ select: { userId: true } }) - * - */ - findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> - - /** - * Create a UserAISettings. - * @param {UserAISettingsCreateArgs} args - Arguments to create a UserAISettings. - * @example - * // Create one UserAISettings - * const UserAISettings = await prisma.userAISettings.create({ - * data: { - * // ... data to create a UserAISettings - * } - * }) - * - */ - create(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "create">, never, ExtArgs> - - /** - * Create many UserAISettings. - * @param {UserAISettingsCreateManyArgs} args - Arguments to create many UserAISettings. - * @example - * // Create many UserAISettings - * const userAISettings = await prisma.userAISettings.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Create many UserAISettings and returns the data saved in the database. - * @param {UserAISettingsCreateManyAndReturnArgs} args - Arguments to create many UserAISettings. - * @example - * // Create many UserAISettings - * const userAISettings = await prisma.userAISettings.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many UserAISettings and only return the `userId` - * const userAISettingsWithUserIdOnly = await prisma.userAISettings.createManyAndReturn({ - * select: { userId: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> - - /** - * Delete a UserAISettings. - * @param {UserAISettingsDeleteArgs} args - Arguments to delete one UserAISettings. - * @example - * // Delete one UserAISettings - * const UserAISettings = await prisma.userAISettings.delete({ - * where: { - * // ... filter to delete one UserAISettings - * } - * }) - * - */ - delete(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "delete">, never, ExtArgs> - - /** - * Update one UserAISettings. - * @param {UserAISettingsUpdateArgs} args - Arguments to update one UserAISettings. - * @example - * // Update one UserAISettings - * const userAISettings = await prisma.userAISettings.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "update">, never, ExtArgs> - - /** - * Delete zero or more UserAISettings. - * @param {UserAISettingsDeleteManyArgs} args - Arguments to filter UserAISettings to delete. - * @example - * // Delete a few UserAISettings - * const { count } = await prisma.userAISettings.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many UserAISettings - * const userAISettings = await prisma.userAISettings.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: SelectSubset>): Prisma.PrismaPromise - - /** - * Create or update one UserAISettings. - * @param {UserAISettingsUpsertArgs} args - Arguments to update or create a UserAISettings. - * @example - * // Update or create a UserAISettings - * const userAISettings = await prisma.userAISettings.upsert({ - * create: { - * // ... data to create a UserAISettings - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the UserAISettings we want to update - * } - * }) - */ - upsert(args: SelectSubset>): Prisma__UserAISettingsClient<$Result.GetResult, T, "upsert">, never, ExtArgs> - - - /** - * Count the number of UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsCountArgs} args - Arguments to filter UserAISettings to count. - * @example - * // Count the number of UserAISettings - * const count = await prisma.userAISettings.count({ - * where: { - * // ... the filter for the UserAISettings we want to count - * } - * }) - **/ - count( - args?: Subset, - ): Prisma.PrismaPromise< - T extends $Utils.Record<'select', any> - ? T['select'] extends true - ? number - : GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Subset): Prisma.PrismaPromise> - - /** - * Group by UserAISettings. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAISettingsGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserAISettingsGroupByArgs, - HasSelectOrTake extends Or< - Extends<'skip', Keys>, - Extends<'take', Keys> - >, - OrderByArg extends True extends HasSelectOrTake - ? { orderBy: UserAISettingsGroupByArgs['orderBy'] } - : { orderBy?: UserAISettingsGroupByArgs['orderBy'] }, - OrderFields extends ExcludeUnderscoreKeys>>, - ByFields extends MaybeTupleToUnion, - ByValid extends Has, - HavingFields extends GetHavingFields, - HavingValid extends Has, - ByEmpty extends T['by'] extends never[] ? True : False, - InputErrors extends ByEmpty extends True - ? `Error: "by" must not be empty.` - : HavingValid extends False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Keys - ? 'orderBy' extends Keys - ? ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserAISettingsGroupByPayload : Prisma.PrismaPromise - /** - * Fields of the UserAISettings model - */ - readonly fields: UserAISettingsFieldRefs; - } - - /** - * The delegate class that acts as a "Promise-like" for UserAISettings. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ - export interface Prisma__UserAISettingsClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise - } - - - - - /** - * Fields of the UserAISettings model - */ - interface UserAISettingsFieldRefs { - readonly userId: FieldRef<"UserAISettings", 'String'> - readonly titleSuggestions: FieldRef<"UserAISettings", 'Boolean'> - readonly semanticSearch: FieldRef<"UserAISettings", 'Boolean'> - readonly paragraphRefactor: FieldRef<"UserAISettings", 'Boolean'> - readonly memoryEcho: FieldRef<"UserAISettings", 'Boolean'> - readonly memoryEchoFrequency: FieldRef<"UserAISettings", 'String'> - readonly aiProvider: FieldRef<"UserAISettings", 'String'> - readonly preferredLanguage: FieldRef<"UserAISettings", 'String'> - readonly fontSize: FieldRef<"UserAISettings", 'String'> - readonly demoMode: FieldRef<"UserAISettings", 'Boolean'> - readonly showRecentNotes: FieldRef<"UserAISettings", 'Boolean'> - readonly emailNotifications: FieldRef<"UserAISettings", 'Boolean'> - readonly desktopNotifications: FieldRef<"UserAISettings", 'Boolean'> - readonly anonymousAnalytics: FieldRef<"UserAISettings", 'Boolean'> - } - - - // Custom InputTypes - /** - * UserAISettings findUnique - */ - export type UserAISettingsFindUniqueArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter, which UserAISettings to fetch. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings findUniqueOrThrow - */ - export type UserAISettingsFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter, which UserAISettings to fetch. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings findFirst - */ - export type UserAISettingsFindFirstArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of UserAISettings. - */ - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings findFirstOrThrow - */ - export type UserAISettingsFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of UserAISettings. - */ - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings findMany - */ - export type UserAISettingsFindManyArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter, which UserAISettings to fetch. - */ - where?: UserAISettingsWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of UserAISettings to fetch. - */ - orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing UserAISettings. - */ - cursor?: UserAISettingsWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` UserAISettings from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` UserAISettings. - */ - skip?: number - distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[] - } - - /** - * UserAISettings create - */ - export type UserAISettingsCreateArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * The data needed to create a UserAISettings. - */ - data: XOR - } - - /** - * UserAISettings createMany - */ - export type UserAISettingsCreateManyArgs = { - /** - * The data used to create many UserAISettings. - */ - data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[] - } - - /** - * UserAISettings createManyAndReturn - */ - export type UserAISettingsCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelectCreateManyAndReturn | null - /** - * The data used to create many UserAISettings. - */ - data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[] - } - - /** - * UserAISettings update - */ - export type UserAISettingsUpdateArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * The data needed to update a UserAISettings. - */ - data: XOR - /** - * Choose, which UserAISettings to update. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings updateMany - */ - export type UserAISettingsUpdateManyArgs = { - /** - * The data used to update UserAISettings. - */ - data: XOR - /** - * Filter which UserAISettings to update - */ - where?: UserAISettingsWhereInput - } - - /** - * UserAISettings upsert - */ - export type UserAISettingsUpsertArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * The filter to search for the UserAISettings to update in case it exists. - */ - where: UserAISettingsWhereUniqueInput - /** - * In case the UserAISettings found by the `where` argument doesn't exist, create a new UserAISettings with this data. - */ - create: XOR - /** - * In case the UserAISettings was found with the provided `where` argument, update it with this data. - */ - update: XOR - } - - /** - * UserAISettings delete - */ - export type UserAISettingsDeleteArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - /** - * Filter which UserAISettings to delete. - */ - where: UserAISettingsWhereUniqueInput - } - - /** - * UserAISettings deleteMany - */ - export type UserAISettingsDeleteManyArgs = { - /** - * Filter which UserAISettings to delete - */ - where?: UserAISettingsWhereInput - } - - /** - * UserAISettings without action - */ - export type UserAISettingsDefaultArgs = { - /** - * Select specific fields to fetch from the UserAISettings - */ - select?: UserAISettingsSelect | null - } - - - /** - * Enums - */ - - export const TransactionIsolationLevel: { - Serializable: 'Serializable' - }; - - export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - - export const NoteScalarFieldEnum: { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' - }; - - export type NoteScalarFieldEnum = (typeof NoteScalarFieldEnum)[keyof typeof NoteScalarFieldEnum] - - - export const NotebookScalarFieldEnum: { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type NotebookScalarFieldEnum = (typeof NotebookScalarFieldEnum)[keyof typeof NotebookScalarFieldEnum] - - - export const LabelScalarFieldEnum: { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type LabelScalarFieldEnum = (typeof LabelScalarFieldEnum)[keyof typeof LabelScalarFieldEnum] - - - export const UserScalarFieldEnum: { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - - export const AccountScalarFieldEnum: { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - - export const SessionScalarFieldEnum: { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - - export const VerificationTokenScalarFieldEnum: { - identifier: 'identifier', - token: 'token', - expires: 'expires' - }; - - export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - - export const NoteShareScalarFieldEnum: { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' - }; - - export type NoteShareScalarFieldEnum = (typeof NoteShareScalarFieldEnum)[keyof typeof NoteShareScalarFieldEnum] - - - export const SystemConfigScalarFieldEnum: { - key: 'key', - value: 'value' - }; - - export type SystemConfigScalarFieldEnum = (typeof SystemConfigScalarFieldEnum)[keyof typeof SystemConfigScalarFieldEnum] - - - export const AiFeedbackScalarFieldEnum: { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' - }; - - export type AiFeedbackScalarFieldEnum = (typeof AiFeedbackScalarFieldEnum)[keyof typeof AiFeedbackScalarFieldEnum] - - - export const MemoryEchoInsightScalarFieldEnum: { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' - }; - - export type MemoryEchoInsightScalarFieldEnum = (typeof MemoryEchoInsightScalarFieldEnum)[keyof typeof MemoryEchoInsightScalarFieldEnum] - - - export const UserAISettingsScalarFieldEnum: { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' - }; - - export type UserAISettingsScalarFieldEnum = (typeof UserAISettingsScalarFieldEnum)[keyof typeof UserAISettingsScalarFieldEnum] - - - export const SortOrder: { - asc: 'asc', - desc: 'desc' - }; - - export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - - export const NullsOrder: { - first: 'first', - last: 'last' - }; - - export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - /** - * Field references - */ - - - /** - * Reference to a field of type 'String' - */ - export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - - /** - * Reference to a field of type 'Boolean' - */ - export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - - /** - * Reference to a field of type 'DateTime' - */ - export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - - /** - * Reference to a field of type 'Int' - */ - export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - - /** - * Reference to a field of type 'Float' - */ - export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - /** - * Deep Input Types - */ - - - export type NoteWhereInput = { - AND?: NoteWhereInput | NoteWhereInput[] - OR?: NoteWhereInput[] - NOT?: NoteWhereInput | NoteWhereInput[] - id?: StringFilter<"Note"> | string - title?: StringNullableFilter<"Note"> | string | null - content?: StringFilter<"Note"> | string - color?: StringFilter<"Note"> | string - isPinned?: BoolFilter<"Note"> | boolean - isArchived?: BoolFilter<"Note"> | boolean - type?: StringFilter<"Note"> | string - checkItems?: StringNullableFilter<"Note"> | string | null - labels?: StringNullableFilter<"Note"> | string | null - images?: StringNullableFilter<"Note"> | string | null - links?: StringNullableFilter<"Note"> | string | null - reminder?: DateTimeNullableFilter<"Note"> | Date | string | null - isReminderDone?: BoolFilter<"Note"> | boolean - reminderRecurrence?: StringNullableFilter<"Note"> | string | null - reminderLocation?: StringNullableFilter<"Note"> | string | null - isMarkdown?: BoolFilter<"Note"> | boolean - size?: StringFilter<"Note"> | string - embedding?: StringNullableFilter<"Note"> | string | null - sharedWith?: StringNullableFilter<"Note"> | string | null - userId?: StringNullableFilter<"Note"> | string | null - order?: IntFilter<"Note"> | number - notebookId?: StringNullableFilter<"Note"> | string | null - createdAt?: DateTimeFilter<"Note"> | Date | string - updatedAt?: DateTimeFilter<"Note"> | Date | string - autoGenerated?: BoolNullableFilter<"Note"> | boolean | null - aiProvider?: StringNullableFilter<"Note"> | string | null - aiConfidence?: IntNullableFilter<"Note"> | number | null - language?: StringNullableFilter<"Note"> | string | null - languageConfidence?: FloatNullableFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null - } - - export type NoteOrderByWithRelationInput = { - id?: SortOrder - title?: SortOrderInput | SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrderInput | SortOrder - labels?: SortOrderInput | SortOrder - images?: SortOrderInput | SortOrder - links?: SortOrderInput | SortOrder - reminder?: SortOrderInput | SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrderInput | SortOrder - reminderLocation?: SortOrderInput | SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrderInput | SortOrder - sharedWith?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - order?: SortOrder - notebookId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - autoGenerated?: SortOrderInput | SortOrder - aiProvider?: SortOrderInput | SortOrder - aiConfidence?: SortOrderInput | SortOrder - language?: SortOrderInput | SortOrder - languageConfidence?: SortOrderInput | SortOrder - lastAiAnalysis?: SortOrderInput | SortOrder - } - - export type NoteWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: NoteWhereInput | NoteWhereInput[] - OR?: NoteWhereInput[] - NOT?: NoteWhereInput | NoteWhereInput[] - title?: StringNullableFilter<"Note"> | string | null - content?: StringFilter<"Note"> | string - color?: StringFilter<"Note"> | string - isPinned?: BoolFilter<"Note"> | boolean - isArchived?: BoolFilter<"Note"> | boolean - type?: StringFilter<"Note"> | string - checkItems?: StringNullableFilter<"Note"> | string | null - labels?: StringNullableFilter<"Note"> | string | null - images?: StringNullableFilter<"Note"> | string | null - links?: StringNullableFilter<"Note"> | string | null - reminder?: DateTimeNullableFilter<"Note"> | Date | string | null - isReminderDone?: BoolFilter<"Note"> | boolean - reminderRecurrence?: StringNullableFilter<"Note"> | string | null - reminderLocation?: StringNullableFilter<"Note"> | string | null - isMarkdown?: BoolFilter<"Note"> | boolean - size?: StringFilter<"Note"> | string - embedding?: StringNullableFilter<"Note"> | string | null - sharedWith?: StringNullableFilter<"Note"> | string | null - userId?: StringNullableFilter<"Note"> | string | null - order?: IntFilter<"Note"> | number - notebookId?: StringNullableFilter<"Note"> | string | null - createdAt?: DateTimeFilter<"Note"> | Date | string - updatedAt?: DateTimeFilter<"Note"> | Date | string - autoGenerated?: BoolNullableFilter<"Note"> | boolean | null - aiProvider?: StringNullableFilter<"Note"> | string | null - aiConfidence?: IntNullableFilter<"Note"> | number | null - language?: StringNullableFilter<"Note"> | string | null - languageConfidence?: FloatNullableFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null - }, "id"> - - export type NoteOrderByWithAggregationInput = { - id?: SortOrder - title?: SortOrderInput | SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrderInput | SortOrder - labels?: SortOrderInput | SortOrder - images?: SortOrderInput | SortOrder - links?: SortOrderInput | SortOrder - reminder?: SortOrderInput | SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrderInput | SortOrder - reminderLocation?: SortOrderInput | SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrderInput | SortOrder - sharedWith?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - order?: SortOrder - notebookId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - autoGenerated?: SortOrderInput | SortOrder - aiProvider?: SortOrderInput | SortOrder - aiConfidence?: SortOrderInput | SortOrder - language?: SortOrderInput | SortOrder - languageConfidence?: SortOrderInput | SortOrder - lastAiAnalysis?: SortOrderInput | SortOrder - _count?: NoteCountOrderByAggregateInput - _avg?: NoteAvgOrderByAggregateInput - _max?: NoteMaxOrderByAggregateInput - _min?: NoteMinOrderByAggregateInput - _sum?: NoteSumOrderByAggregateInput - } - - export type NoteScalarWhereWithAggregatesInput = { - AND?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[] - OR?: NoteScalarWhereWithAggregatesInput[] - NOT?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Note"> | string - title?: StringNullableWithAggregatesFilter<"Note"> | string | null - content?: StringWithAggregatesFilter<"Note"> | string - color?: StringWithAggregatesFilter<"Note"> | string - isPinned?: BoolWithAggregatesFilter<"Note"> | boolean - isArchived?: BoolWithAggregatesFilter<"Note"> | boolean - type?: StringWithAggregatesFilter<"Note"> | string - checkItems?: StringNullableWithAggregatesFilter<"Note"> | string | null - labels?: StringNullableWithAggregatesFilter<"Note"> | string | null - images?: StringNullableWithAggregatesFilter<"Note"> | string | null - links?: StringNullableWithAggregatesFilter<"Note"> | string | null - reminder?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null - isReminderDone?: BoolWithAggregatesFilter<"Note"> | boolean - reminderRecurrence?: StringNullableWithAggregatesFilter<"Note"> | string | null - reminderLocation?: StringNullableWithAggregatesFilter<"Note"> | string | null - isMarkdown?: BoolWithAggregatesFilter<"Note"> | boolean - size?: StringWithAggregatesFilter<"Note"> | string - embedding?: StringNullableWithAggregatesFilter<"Note"> | string | null - sharedWith?: StringNullableWithAggregatesFilter<"Note"> | string | null - userId?: StringNullableWithAggregatesFilter<"Note"> | string | null - order?: IntWithAggregatesFilter<"Note"> | number - notebookId?: StringNullableWithAggregatesFilter<"Note"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string - autoGenerated?: BoolNullableWithAggregatesFilter<"Note"> | boolean | null - aiProvider?: StringNullableWithAggregatesFilter<"Note"> | string | null - aiConfidence?: IntNullableWithAggregatesFilter<"Note"> | number | null - language?: StringNullableWithAggregatesFilter<"Note"> | string | null - languageConfidence?: FloatNullableWithAggregatesFilter<"Note"> | number | null - lastAiAnalysis?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null - } - - export type NotebookWhereInput = { - AND?: NotebookWhereInput | NotebookWhereInput[] - OR?: NotebookWhereInput[] - NOT?: NotebookWhereInput | NotebookWhereInput[] - id?: StringFilter<"Notebook"> | string - name?: StringFilter<"Notebook"> | string - icon?: StringNullableFilter<"Notebook"> | string | null - color?: StringNullableFilter<"Notebook"> | string | null - order?: IntFilter<"Notebook"> | number - userId?: StringFilter<"Notebook"> | string - createdAt?: DateTimeFilter<"Notebook"> | Date | string - updatedAt?: DateTimeFilter<"Notebook"> | Date | string - } - - export type NotebookOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: NotebookWhereInput | NotebookWhereInput[] - OR?: NotebookWhereInput[] - NOT?: NotebookWhereInput | NotebookWhereInput[] - name?: StringFilter<"Notebook"> | string - icon?: StringNullableFilter<"Notebook"> | string | null - color?: StringNullableFilter<"Notebook"> | string | null - order?: IntFilter<"Notebook"> | number - userId?: StringFilter<"Notebook"> | string - createdAt?: DateTimeFilter<"Notebook"> | Date | string - updatedAt?: DateTimeFilter<"Notebook"> | Date | string - }, "id"> - - export type NotebookOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrderInput | SortOrder - color?: SortOrderInput | SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: NotebookCountOrderByAggregateInput - _avg?: NotebookAvgOrderByAggregateInput - _max?: NotebookMaxOrderByAggregateInput - _min?: NotebookMinOrderByAggregateInput - _sum?: NotebookSumOrderByAggregateInput - } - - export type NotebookScalarWhereWithAggregatesInput = { - AND?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[] - OR?: NotebookScalarWhereWithAggregatesInput[] - NOT?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Notebook"> | string - name?: StringWithAggregatesFilter<"Notebook"> | string - icon?: StringNullableWithAggregatesFilter<"Notebook"> | string | null - color?: StringNullableWithAggregatesFilter<"Notebook"> | string | null - order?: IntWithAggregatesFilter<"Notebook"> | number - userId?: StringWithAggregatesFilter<"Notebook"> | string - createdAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string - } - - export type LabelWhereInput = { - AND?: LabelWhereInput | LabelWhereInput[] - OR?: LabelWhereInput[] - NOT?: LabelWhereInput | LabelWhereInput[] - id?: StringFilter<"Label"> | string - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string - } - - export type LabelOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type LabelWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: LabelWhereInput | LabelWhereInput[] - OR?: LabelWhereInput[] - NOT?: LabelWhereInput | LabelWhereInput[] - name?: StringFilter<"Label"> | string - color?: StringFilter<"Label"> | string - notebookId?: StringNullableFilter<"Label"> | string | null - userId?: StringNullableFilter<"Label"> | string | null - createdAt?: DateTimeFilter<"Label"> | Date | string - updatedAt?: DateTimeFilter<"Label"> | Date | string - }, "id"> - - export type LabelOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrderInput | SortOrder - userId?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: LabelCountOrderByAggregateInput - _max?: LabelMaxOrderByAggregateInput - _min?: LabelMinOrderByAggregateInput - } - - export type LabelScalarWhereWithAggregatesInput = { - AND?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[] - OR?: LabelScalarWhereWithAggregatesInput[] - NOT?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"Label"> | string - name?: StringWithAggregatesFilter<"Label"> | string - color?: StringWithAggregatesFilter<"Label"> | string - notebookId?: StringNullableWithAggregatesFilter<"Label"> | string | null - userId?: StringNullableWithAggregatesFilter<"Label"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string - } - - export type UserWhereInput = { - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - id?: StringFilter<"User"> | string - name?: StringNullableFilter<"User"> | string | null - email?: StringFilter<"User"> | string - emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null - password?: StringNullableFilter<"User"> | string | null - role?: StringFilter<"User"> | string - image?: StringNullableFilter<"User"> | string | null - theme?: StringFilter<"User"> | string - resetToken?: StringNullableFilter<"User"> | string | null - resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - } - - export type UserOrderByWithRelationInput = { - id?: SortOrder - name?: SortOrderInput | SortOrder - email?: SortOrder - emailVerified?: SortOrderInput | SortOrder - password?: SortOrderInput | SortOrder - role?: SortOrder - image?: SortOrderInput | SortOrder - theme?: SortOrder - resetToken?: SortOrderInput | SortOrder - resetTokenExpiry?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - resetToken?: string - AND?: UserWhereInput | UserWhereInput[] - OR?: UserWhereInput[] - NOT?: UserWhereInput | UserWhereInput[] - name?: StringNullableFilter<"User"> | string | null - emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null - password?: StringNullableFilter<"User"> | string | null - role?: StringFilter<"User"> | string - image?: StringNullableFilter<"User"> | string | null - theme?: StringFilter<"User"> | string - resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null - createdAt?: DateTimeFilter<"User"> | Date | string - updatedAt?: DateTimeFilter<"User"> | Date | string - }, "id" | "email" | "resetToken"> - - export type UserOrderByWithAggregationInput = { - id?: SortOrder - name?: SortOrderInput | SortOrder - email?: SortOrder - emailVerified?: SortOrderInput | SortOrder - password?: SortOrderInput | SortOrder - role?: SortOrder - image?: SortOrderInput | SortOrder - theme?: SortOrder - resetToken?: SortOrderInput | SortOrder - resetTokenExpiry?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: UserCountOrderByAggregateInput - _max?: UserMaxOrderByAggregateInput - _min?: UserMinOrderByAggregateInput - } - - export type UserScalarWhereWithAggregatesInput = { - AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - OR?: UserScalarWhereWithAggregatesInput[] - NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"User"> | string - name?: StringNullableWithAggregatesFilter<"User"> | string | null - email?: StringWithAggregatesFilter<"User"> | string - emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - password?: StringNullableWithAggregatesFilter<"User"> | string | null - role?: StringWithAggregatesFilter<"User"> | string - image?: StringNullableWithAggregatesFilter<"User"> | string | null - theme?: StringWithAggregatesFilter<"User"> | string - resetToken?: StringNullableWithAggregatesFilter<"User"> | string | null - resetTokenExpiry?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string - } - - export type AccountWhereInput = { - AND?: AccountWhereInput | AccountWhereInput[] - OR?: AccountWhereInput[] - NOT?: AccountWhereInput | AccountWhereInput[] - userId?: StringFilter<"Account"> | string - type?: StringFilter<"Account"> | string - provider?: StringFilter<"Account"> | string - providerAccountId?: StringFilter<"Account"> | string - refresh_token?: StringNullableFilter<"Account"> | string | null - access_token?: StringNullableFilter<"Account"> | string | null - expires_at?: IntNullableFilter<"Account"> | number | null - token_type?: StringNullableFilter<"Account"> | string | null - scope?: StringNullableFilter<"Account"> | string | null - id_token?: StringNullableFilter<"Account"> | string | null - session_state?: StringNullableFilter<"Account"> | string | null - createdAt?: DateTimeFilter<"Account"> | Date | string - updatedAt?: DateTimeFilter<"Account"> | Date | string - } - - export type AccountOrderByWithRelationInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrderInput | SortOrder - access_token?: SortOrderInput | SortOrder - expires_at?: SortOrderInput | SortOrder - token_type?: SortOrderInput | SortOrder - scope?: SortOrderInput | SortOrder - id_token?: SortOrderInput | SortOrder - session_state?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountWhereUniqueInput = Prisma.AtLeast<{ - provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput - AND?: AccountWhereInput | AccountWhereInput[] - OR?: AccountWhereInput[] - NOT?: AccountWhereInput | AccountWhereInput[] - userId?: StringFilter<"Account"> | string - type?: StringFilter<"Account"> | string - provider?: StringFilter<"Account"> | string - providerAccountId?: StringFilter<"Account"> | string - refresh_token?: StringNullableFilter<"Account"> | string | null - access_token?: StringNullableFilter<"Account"> | string | null - expires_at?: IntNullableFilter<"Account"> | number | null - token_type?: StringNullableFilter<"Account"> | string | null - scope?: StringNullableFilter<"Account"> | string | null - id_token?: StringNullableFilter<"Account"> | string | null - session_state?: StringNullableFilter<"Account"> | string | null - createdAt?: DateTimeFilter<"Account"> | Date | string - updatedAt?: DateTimeFilter<"Account"> | Date | string - }, "provider_providerAccountId"> - - export type AccountOrderByWithAggregationInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrderInput | SortOrder - access_token?: SortOrderInput | SortOrder - expires_at?: SortOrderInput | SortOrder - token_type?: SortOrderInput | SortOrder - scope?: SortOrderInput | SortOrder - id_token?: SortOrderInput | SortOrder - session_state?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: AccountCountOrderByAggregateInput - _avg?: AccountAvgOrderByAggregateInput - _max?: AccountMaxOrderByAggregateInput - _min?: AccountMinOrderByAggregateInput - _sum?: AccountSumOrderByAggregateInput - } - - export type AccountScalarWhereWithAggregatesInput = { - AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] - OR?: AccountScalarWhereWithAggregatesInput[] - NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] - userId?: StringWithAggregatesFilter<"Account"> | string - type?: StringWithAggregatesFilter<"Account"> | string - provider?: StringWithAggregatesFilter<"Account"> | string - providerAccountId?: StringWithAggregatesFilter<"Account"> | string - refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null - token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null - scope?: StringNullableWithAggregatesFilter<"Account"> | string | null - id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null - session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string - } - - export type SessionWhereInput = { - AND?: SessionWhereInput | SessionWhereInput[] - OR?: SessionWhereInput[] - NOT?: SessionWhereInput | SessionWhereInput[] - sessionToken?: StringFilter<"Session"> | string - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string - } - - export type SessionOrderByWithRelationInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SessionWhereUniqueInput = Prisma.AtLeast<{ - sessionToken?: string - AND?: SessionWhereInput | SessionWhereInput[] - OR?: SessionWhereInput[] - NOT?: SessionWhereInput | SessionWhereInput[] - userId?: StringFilter<"Session"> | string - expires?: DateTimeFilter<"Session"> | Date | string - createdAt?: DateTimeFilter<"Session"> | Date | string - updatedAt?: DateTimeFilter<"Session"> | Date | string - }, "sessionToken"> - - export type SessionOrderByWithAggregationInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: SessionCountOrderByAggregateInput - _max?: SessionMaxOrderByAggregateInput - _min?: SessionMinOrderByAggregateInput - } - - export type SessionScalarWhereWithAggregatesInput = { - AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] - OR?: SessionScalarWhereWithAggregatesInput[] - NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] - sessionToken?: StringWithAggregatesFilter<"Session"> | string - userId?: StringWithAggregatesFilter<"Session"> | string - expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string - createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string - } - - export type VerificationTokenWhereInput = { - AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - OR?: VerificationTokenWhereInput[] - NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - identifier?: StringFilter<"VerificationToken"> | string - token?: StringFilter<"VerificationToken"> | string - expires?: DateTimeFilter<"VerificationToken"> | Date | string - } - - export type VerificationTokenOrderByWithRelationInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{ - identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput - AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - OR?: VerificationTokenWhereInput[] - NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[] - identifier?: StringFilter<"VerificationToken"> | string - token?: StringFilter<"VerificationToken"> | string - expires?: DateTimeFilter<"VerificationToken"> | Date | string - }, "identifier_token"> - - export type VerificationTokenOrderByWithAggregationInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - _count?: VerificationTokenCountOrderByAggregateInput - _max?: VerificationTokenMaxOrderByAggregateInput - _min?: VerificationTokenMinOrderByAggregateInput - } - - export type VerificationTokenScalarWhereWithAggregatesInput = { - AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] - OR?: VerificationTokenScalarWhereWithAggregatesInput[] - NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[] - identifier?: StringWithAggregatesFilter<"VerificationToken"> | string - token?: StringWithAggregatesFilter<"VerificationToken"> | string - expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string - } - - export type NoteShareWhereInput = { - AND?: NoteShareWhereInput | NoteShareWhereInput[] - OR?: NoteShareWhereInput[] - NOT?: NoteShareWhereInput | NoteShareWhereInput[] - id?: StringFilter<"NoteShare"> | string - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - } - - export type NoteShareOrderByWithRelationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrderInput | SortOrder - respondedAt?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NoteShareWhereUniqueInput = Prisma.AtLeast<{ - id?: string - noteId_userId?: NoteShareNoteIdUserIdCompoundUniqueInput - AND?: NoteShareWhereInput | NoteShareWhereInput[] - OR?: NoteShareWhereInput[] - NOT?: NoteShareWhereInput | NoteShareWhereInput[] - noteId?: StringFilter<"NoteShare"> | string - userId?: StringFilter<"NoteShare"> | string - sharedBy?: StringFilter<"NoteShare"> | string - status?: StringFilter<"NoteShare"> | string - permission?: StringFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeFilter<"NoteShare"> | Date | string - }, "id" | "noteId_userId"> - - export type NoteShareOrderByWithAggregationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrderInput | SortOrder - respondedAt?: SortOrderInput | SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - _count?: NoteShareCountOrderByAggregateInput - _max?: NoteShareMaxOrderByAggregateInput - _min?: NoteShareMinOrderByAggregateInput - } - - export type NoteShareScalarWhereWithAggregatesInput = { - AND?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[] - OR?: NoteShareScalarWhereWithAggregatesInput[] - NOT?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"NoteShare"> | string - noteId?: StringWithAggregatesFilter<"NoteShare"> | string - userId?: StringWithAggregatesFilter<"NoteShare"> | string - sharedBy?: StringWithAggregatesFilter<"NoteShare"> | string - status?: StringWithAggregatesFilter<"NoteShare"> | string - permission?: StringWithAggregatesFilter<"NoteShare"> | string - notifiedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null - respondedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null - createdAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string - updatedAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string - } - - export type SystemConfigWhereInput = { - AND?: SystemConfigWhereInput | SystemConfigWhereInput[] - OR?: SystemConfigWhereInput[] - NOT?: SystemConfigWhereInput | SystemConfigWhereInput[] - key?: StringFilter<"SystemConfig"> | string - value?: StringFilter<"SystemConfig"> | string - } - - export type SystemConfigOrderByWithRelationInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigWhereUniqueInput = Prisma.AtLeast<{ - key?: string - AND?: SystemConfigWhereInput | SystemConfigWhereInput[] - OR?: SystemConfigWhereInput[] - NOT?: SystemConfigWhereInput | SystemConfigWhereInput[] - value?: StringFilter<"SystemConfig"> | string - }, "key"> - - export type SystemConfigOrderByWithAggregationInput = { - key?: SortOrder - value?: SortOrder - _count?: SystemConfigCountOrderByAggregateInput - _max?: SystemConfigMaxOrderByAggregateInput - _min?: SystemConfigMinOrderByAggregateInput - } - - export type SystemConfigScalarWhereWithAggregatesInput = { - AND?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[] - OR?: SystemConfigScalarWhereWithAggregatesInput[] - NOT?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[] - key?: StringWithAggregatesFilter<"SystemConfig"> | string - value?: StringWithAggregatesFilter<"SystemConfig"> | string - } - - export type AiFeedbackWhereInput = { - AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - OR?: AiFeedbackWhereInput[] - NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - id?: StringFilter<"AiFeedback"> | string - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - } - - export type AiFeedbackOrderByWithRelationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrderInput | SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrderInput | SortOrder - metadata?: SortOrderInput | SortOrder - createdAt?: SortOrder - } - - export type AiFeedbackWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - OR?: AiFeedbackWhereInput[] - NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[] - noteId?: StringFilter<"AiFeedback"> | string - userId?: StringNullableFilter<"AiFeedback"> | string | null - feedbackType?: StringFilter<"AiFeedback"> | string - feature?: StringFilter<"AiFeedback"> | string - originalContent?: StringFilter<"AiFeedback"> | string - correctedContent?: StringNullableFilter<"AiFeedback"> | string | null - metadata?: StringNullableFilter<"AiFeedback"> | string | null - createdAt?: DateTimeFilter<"AiFeedback"> | Date | string - }, "id"> - - export type AiFeedbackOrderByWithAggregationInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrderInput | SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrderInput | SortOrder - metadata?: SortOrderInput | SortOrder - createdAt?: SortOrder - _count?: AiFeedbackCountOrderByAggregateInput - _max?: AiFeedbackMaxOrderByAggregateInput - _min?: AiFeedbackMinOrderByAggregateInput - } - - export type AiFeedbackScalarWhereWithAggregatesInput = { - AND?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[] - OR?: AiFeedbackScalarWhereWithAggregatesInput[] - NOT?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"AiFeedback"> | string - noteId?: StringWithAggregatesFilter<"AiFeedback"> | string - userId?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - feedbackType?: StringWithAggregatesFilter<"AiFeedback"> | string - feature?: StringWithAggregatesFilter<"AiFeedback"> | string - originalContent?: StringWithAggregatesFilter<"AiFeedback"> | string - correctedContent?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - metadata?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null - createdAt?: DateTimeWithAggregatesFilter<"AiFeedback"> | Date | string - } - - export type MemoryEchoInsightWhereInput = { - AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - OR?: MemoryEchoInsightWhereInput[] - NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - id?: StringFilter<"MemoryEchoInsight"> | string - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - } - - export type MemoryEchoInsightOrderByWithRelationInput = { - id?: SortOrder - userId?: SortOrderInput | SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrderInput | SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightWhereUniqueInput = Prisma.AtLeast<{ - id?: string - userId_insightDate?: MemoryEchoInsightUserIdInsightDateCompoundUniqueInput - AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - OR?: MemoryEchoInsightWhereInput[] - NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[] - userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringFilter<"MemoryEchoInsight"> | string - note2Id?: StringFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatFilter<"MemoryEchoInsight"> | number - insight?: StringFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean - }, "id" | "userId_insightDate"> - - export type MemoryEchoInsightOrderByWithAggregationInput = { - id?: SortOrder - userId?: SortOrderInput | SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrderInput | SortOrder - dismissed?: SortOrder - _count?: MemoryEchoInsightCountOrderByAggregateInput - _avg?: MemoryEchoInsightAvgOrderByAggregateInput - _max?: MemoryEchoInsightMaxOrderByAggregateInput - _min?: MemoryEchoInsightMinOrderByAggregateInput - _sum?: MemoryEchoInsightSumOrderByAggregateInput - } - - export type MemoryEchoInsightScalarWhereWithAggregatesInput = { - AND?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[] - OR?: MemoryEchoInsightScalarWhereWithAggregatesInput[] - NOT?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[] - id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - userId?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null - note1Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - note2Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - similarityScore?: FloatWithAggregatesFilter<"MemoryEchoInsight"> | number - insight?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string - insightDate?: DateTimeWithAggregatesFilter<"MemoryEchoInsight"> | Date | string - viewed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean - feedback?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null - dismissed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean - } - - export type UserAISettingsWhereInput = { - AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - OR?: UserAISettingsWhereInput[] - NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - userId?: StringFilter<"UserAISettings"> | string - titleSuggestions?: BoolFilter<"UserAISettings"> | boolean - semanticSearch?: BoolFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean - memoryEcho?: BoolFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringFilter<"UserAISettings"> | string - aiProvider?: StringFilter<"UserAISettings"> | string - preferredLanguage?: StringFilter<"UserAISettings"> | string - fontSize?: StringFilter<"UserAISettings"> | string - demoMode?: BoolFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolFilter<"UserAISettings"> | boolean - emailNotifications?: BoolFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolFilter<"UserAISettings"> | boolean - } - - export type UserAISettingsOrderByWithRelationInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type UserAISettingsWhereUniqueInput = Prisma.AtLeast<{ - userId?: string - AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - OR?: UserAISettingsWhereInput[] - NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[] - titleSuggestions?: BoolFilter<"UserAISettings"> | boolean - semanticSearch?: BoolFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean - memoryEcho?: BoolFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringFilter<"UserAISettings"> | string - aiProvider?: StringFilter<"UserAISettings"> | string - preferredLanguage?: StringFilter<"UserAISettings"> | string - fontSize?: StringFilter<"UserAISettings"> | string - demoMode?: BoolFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolFilter<"UserAISettings"> | boolean - emailNotifications?: BoolFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolFilter<"UserAISettings"> | boolean - }, "userId"> - - export type UserAISettingsOrderByWithAggregationInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - _count?: UserAISettingsCountOrderByAggregateInput - _max?: UserAISettingsMaxOrderByAggregateInput - _min?: UserAISettingsMinOrderByAggregateInput - } - - export type UserAISettingsScalarWhereWithAggregatesInput = { - AND?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[] - OR?: UserAISettingsScalarWhereWithAggregatesInput[] - NOT?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[] - userId?: StringWithAggregatesFilter<"UserAISettings"> | string - titleSuggestions?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - semanticSearch?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - paragraphRefactor?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - memoryEcho?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - memoryEchoFrequency?: StringWithAggregatesFilter<"UserAISettings"> | string - aiProvider?: StringWithAggregatesFilter<"UserAISettings"> | string - preferredLanguage?: StringWithAggregatesFilter<"UserAISettings"> | string - fontSize?: StringWithAggregatesFilter<"UserAISettings"> | string - demoMode?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - showRecentNotes?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - emailNotifications?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - desktopNotifications?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - anonymousAnalytics?: BoolWithAggregatesFilter<"UserAISettings"> | boolean - } - - export type NoteCreateInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type NoteUncheckedCreateInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type NoteUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteCreateManyInput = { - id?: string - title?: string | null - content: string - color?: string - isPinned?: boolean - isArchived?: boolean - type?: string - checkItems?: string | null - labels?: string | null - images?: string | null - links?: string | null - reminder?: Date | string | null - isReminderDone?: boolean - reminderRecurrence?: string | null - reminderLocation?: string | null - isMarkdown?: boolean - size?: string - embedding?: string | null - sharedWith?: string | null - userId?: string | null - order?: number - notebookId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - autoGenerated?: boolean | null - aiProvider?: string | null - aiConfidence?: number | null - language?: string | null - languageConfidence?: number | null - lastAiAnalysis?: Date | string | null - } - - export type NoteUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NoteUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - title?: NullableStringFieldUpdateOperationsInput | string | null - content?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - isPinned?: BoolFieldUpdateOperationsInput | boolean - isArchived?: BoolFieldUpdateOperationsInput | boolean - type?: StringFieldUpdateOperationsInput | string - checkItems?: NullableStringFieldUpdateOperationsInput | string | null - labels?: NullableStringFieldUpdateOperationsInput | string | null - images?: NullableStringFieldUpdateOperationsInput | string | null - links?: NullableStringFieldUpdateOperationsInput | string | null - reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isReminderDone?: BoolFieldUpdateOperationsInput | boolean - reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null - reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null - isMarkdown?: BoolFieldUpdateOperationsInput | boolean - size?: StringFieldUpdateOperationsInput | string - embedding?: NullableStringFieldUpdateOperationsInput | string | null - sharedWith?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null - aiProvider?: NullableStringFieldUpdateOperationsInput | string | null - aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null - language?: NullableStringFieldUpdateOperationsInput | string | null - languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null - lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - } - - export type NotebookCreateInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookUncheckedCreateInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookCreateManyInput = { - id?: string - name: string - icon?: string | null - color?: string | null - order: number - userId: string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NotebookUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NotebookUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - icon?: NullableStringFieldUpdateOperationsInput | string | null - color?: NullableStringFieldUpdateOperationsInput | string | null - order?: IntFieldUpdateOperationsInput | number - userId?: StringFieldUpdateOperationsInput | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelCreateInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelUncheckedCreateInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelCreateManyInput = { - id?: string - name: string - color?: string - notebookId?: string | null - userId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type LabelUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type LabelUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: StringFieldUpdateOperationsInput | string - color?: StringFieldUpdateOperationsInput | string - notebookId?: NullableStringFieldUpdateOperationsInput | string | null - userId?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type UserUncheckedCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type UserUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserCreateManyInput = { - id?: string - name?: string | null - email: string - emailVerified?: Date | string | null - password?: string | null - role?: string - image?: string | null - theme?: string - resetToken?: string | null - resetTokenExpiry?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type UserUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type UserUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - name?: NullableStringFieldUpdateOperationsInput | string | null - email?: StringFieldUpdateOperationsInput | string - emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - password?: NullableStringFieldUpdateOperationsInput | string | null - role?: StringFieldUpdateOperationsInput | string - image?: NullableStringFieldUpdateOperationsInput | string | null - theme?: StringFieldUpdateOperationsInput | string - resetToken?: NullableStringFieldUpdateOperationsInput | string | null - resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountCreateInput = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUncheckedCreateInput = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountUncheckedUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountCreateManyInput = { - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type AccountUpdateManyMutationInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AccountUncheckedUpdateManyInput = { - userId?: StringFieldUpdateOperationsInput | string - type?: StringFieldUpdateOperationsInput | string - provider?: StringFieldUpdateOperationsInput | string - providerAccountId?: StringFieldUpdateOperationsInput | string - refresh_token?: NullableStringFieldUpdateOperationsInput | string | null - access_token?: NullableStringFieldUpdateOperationsInput | string | null - expires_at?: NullableIntFieldUpdateOperationsInput | number | null - token_type?: NullableStringFieldUpdateOperationsInput | string | null - scope?: NullableStringFieldUpdateOperationsInput | string | null - id_token?: NullableStringFieldUpdateOperationsInput | string | null - session_state?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionCreateInput = { - sessionToken: string - userId: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUncheckedCreateInput = { - sessionToken: string - userId: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUpdateInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUncheckedUpdateInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionCreateManyInput = { - sessionToken: string - userId: string - expires: Date | string - createdAt?: Date | string - updatedAt?: Date | string - } - - export type SessionUpdateManyMutationInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SessionUncheckedUpdateManyInput = { - sessionToken?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenCreateInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUncheckedCreateInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUpdateInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenUncheckedUpdateInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenCreateManyInput = { - identifier: string - token: string - expires: Date | string - } - - export type VerificationTokenUpdateManyMutationInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type VerificationTokenUncheckedUpdateManyInput = { - identifier?: StringFieldUpdateOperationsInput | string - token?: StringFieldUpdateOperationsInput | string - expires?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareCreateInput = { - id?: string - noteId: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareUncheckedCreateInput = { - id?: string - noteId: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareCreateManyInput = { - id?: string - noteId: string - userId: string - sharedBy: string - status?: string - permission?: string - notifiedAt?: Date | string | null - respondedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - } - - export type NoteShareUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type NoteShareUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: StringFieldUpdateOperationsInput | string - sharedBy?: StringFieldUpdateOperationsInput | string - status?: StringFieldUpdateOperationsInput | string - permission?: StringFieldUpdateOperationsInput | string - notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type SystemConfigCreateInput = { - key: string - value: string - } - - export type SystemConfigUncheckedCreateInput = { - key: string - value: string - } - - export type SystemConfigUpdateInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigUncheckedUpdateInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigCreateManyInput = { - key: string - value: string - } - - export type SystemConfigUpdateManyMutationInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type SystemConfigUncheckedUpdateManyInput = { - key?: StringFieldUpdateOperationsInput | string - value?: StringFieldUpdateOperationsInput | string - } - - export type AiFeedbackCreateInput = { - id?: string - noteId: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackUncheckedCreateInput = { - id?: string - noteId: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackCreateManyInput = { - id?: string - noteId: string - userId?: string | null - feedbackType: string - feature: string - originalContent: string - correctedContent?: string | null - metadata?: string | null - createdAt?: Date | string - } - - export type AiFeedbackUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type AiFeedbackUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - noteId?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - feedbackType?: StringFieldUpdateOperationsInput | string - feature?: StringFieldUpdateOperationsInput | string - originalContent?: StringFieldUpdateOperationsInput | string - correctedContent?: NullableStringFieldUpdateOperationsInput | string | null - metadata?: NullableStringFieldUpdateOperationsInput | string | null - createdAt?: DateTimeFieldUpdateOperationsInput | Date | string - } - - export type MemoryEchoInsightCreateInput = { - id?: string - userId?: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightUncheckedCreateInput = { - id?: string - userId?: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightCreateManyInput = { - id?: string - userId?: string | null - note1Id: string - note2Id: string - similarityScore: number - insight: string - insightDate?: Date | string - viewed?: boolean - feedback?: string | null - dismissed?: boolean - } - - export type MemoryEchoInsightUpdateManyMutationInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type MemoryEchoInsightUncheckedUpdateManyInput = { - id?: StringFieldUpdateOperationsInput | string - userId?: NullableStringFieldUpdateOperationsInput | string | null - note1Id?: StringFieldUpdateOperationsInput | string - note2Id?: StringFieldUpdateOperationsInput | string - similarityScore?: FloatFieldUpdateOperationsInput | number - insight?: StringFieldUpdateOperationsInput | string - insightDate?: DateTimeFieldUpdateOperationsInput | Date | string - viewed?: BoolFieldUpdateOperationsInput | boolean - feedback?: NullableStringFieldUpdateOperationsInput | string | null - dismissed?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsCreateInput = { - userId: string - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUncheckedCreateInput = { - userId: string - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsUncheckedUpdateInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsCreateManyInput = { - userId: string - titleSuggestions?: boolean - semanticSearch?: boolean - paragraphRefactor?: boolean - memoryEcho?: boolean - memoryEchoFrequency?: string - aiProvider?: string - preferredLanguage?: string - fontSize?: string - demoMode?: boolean - showRecentNotes?: boolean - emailNotifications?: boolean - desktopNotifications?: boolean - anonymousAnalytics?: boolean - } - - export type UserAISettingsUpdateManyMutationInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type UserAISettingsUncheckedUpdateManyInput = { - userId?: StringFieldUpdateOperationsInput | string - titleSuggestions?: BoolFieldUpdateOperationsInput | boolean - semanticSearch?: BoolFieldUpdateOperationsInput | boolean - paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean - memoryEcho?: BoolFieldUpdateOperationsInput | boolean - memoryEchoFrequency?: StringFieldUpdateOperationsInput | string - aiProvider?: StringFieldUpdateOperationsInput | string - preferredLanguage?: StringFieldUpdateOperationsInput | string - fontSize?: StringFieldUpdateOperationsInput | string - demoMode?: BoolFieldUpdateOperationsInput | boolean - showRecentNotes?: BoolFieldUpdateOperationsInput | boolean - emailNotifications?: BoolFieldUpdateOperationsInput | boolean - desktopNotifications?: BoolFieldUpdateOperationsInput | boolean - anonymousAnalytics?: BoolFieldUpdateOperationsInput | boolean - } - - export type StringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type IntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type BoolNullableFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null - } - - export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type FloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type SortOrderInput = { - sort: SortOrder - nulls?: NullsOrder - } - - export type NoteCountOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteAvgOrderByAggregateInput = { - order?: SortOrder - aiConfidence?: SortOrder - languageConfidence?: SortOrder - } - - export type NoteMaxOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteMinOrderByAggregateInput = { - id?: SortOrder - title?: SortOrder - content?: SortOrder - color?: SortOrder - isPinned?: SortOrder - isArchived?: SortOrder - type?: SortOrder - checkItems?: SortOrder - labels?: SortOrder - images?: SortOrder - links?: SortOrder - reminder?: SortOrder - isReminderDone?: SortOrder - reminderRecurrence?: SortOrder - reminderLocation?: SortOrder - isMarkdown?: SortOrder - size?: SortOrder - embedding?: SortOrder - sharedWith?: SortOrder - userId?: SortOrder - order?: SortOrder - notebookId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - autoGenerated?: SortOrder - aiProvider?: SortOrder - aiConfidence?: SortOrder - language?: SortOrder - languageConfidence?: SortOrder - lastAiAnalysis?: SortOrder - } - - export type NoteSumOrderByAggregateInput = { - order?: SortOrder - aiConfidence?: SortOrder - languageConfidence?: SortOrder - } - - export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedBoolNullableFilter<$PrismaModel> - _max?: NestedBoolNullableFilter<$PrismaModel> - } - - export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type NotebookCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookAvgOrderByAggregateInput = { - order?: SortOrder - } - - export type NotebookMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - icon?: SortOrder - color?: SortOrder - order?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NotebookSumOrderByAggregateInput = { - order?: SortOrder - } - - export type LabelCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type LabelMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type LabelMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - color?: SortOrder - notebookId?: SortOrder - userId?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserCountOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserMaxOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type UserMinOrderByAggregateInput = { - id?: SortOrder - name?: SortOrder - email?: SortOrder - emailVerified?: SortOrder - password?: SortOrder - role?: SortOrder - image?: SortOrder - theme?: SortOrder - resetToken?: SortOrder - resetTokenExpiry?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountProviderProviderAccountIdCompoundUniqueInput = { - provider: string - providerAccountId: string - } - - export type AccountCountOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountAvgOrderByAggregateInput = { - expires_at?: SortOrder - } - - export type AccountMaxOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountMinOrderByAggregateInput = { - userId?: SortOrder - type?: SortOrder - provider?: SortOrder - providerAccountId?: SortOrder - refresh_token?: SortOrder - access_token?: SortOrder - expires_at?: SortOrder - token_type?: SortOrder - scope?: SortOrder - id_token?: SortOrder - session_state?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type AccountSumOrderByAggregateInput = { - expires_at?: SortOrder - } - - export type SessionCountOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SessionMaxOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SessionMinOrderByAggregateInput = { - sessionToken?: SortOrder - userId?: SortOrder - expires?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type VerificationTokenIdentifierTokenCompoundUniqueInput = { - identifier: string - token: string - } - - export type VerificationTokenCountOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenMaxOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type VerificationTokenMinOrderByAggregateInput = { - identifier?: SortOrder - token?: SortOrder - expires?: SortOrder - } - - export type NoteShareNoteIdUserIdCompoundUniqueInput = { - noteId: string - userId: string - } - - export type NoteShareCountOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NoteShareMaxOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type NoteShareMinOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - sharedBy?: SortOrder - status?: SortOrder - permission?: SortOrder - notifiedAt?: SortOrder - respondedAt?: SortOrder - createdAt?: SortOrder - updatedAt?: SortOrder - } - - export type SystemConfigCountOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigMaxOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type SystemConfigMinOrderByAggregateInput = { - key?: SortOrder - value?: SortOrder - } - - export type AiFeedbackCountOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type AiFeedbackMaxOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type AiFeedbackMinOrderByAggregateInput = { - id?: SortOrder - noteId?: SortOrder - userId?: SortOrder - feedbackType?: SortOrder - feature?: SortOrder - originalContent?: SortOrder - correctedContent?: SortOrder - metadata?: SortOrder - createdAt?: SortOrder - } - - export type FloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type MemoryEchoInsightUserIdInsightDateCompoundUniqueInput = { - userId: string - insightDate: Date | string - } - - export type MemoryEchoInsightCountOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightAvgOrderByAggregateInput = { - similarityScore?: SortOrder - } - - export type MemoryEchoInsightMaxOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightMinOrderByAggregateInput = { - id?: SortOrder - userId?: SortOrder - note1Id?: SortOrder - note2Id?: SortOrder - similarityScore?: SortOrder - insight?: SortOrder - insightDate?: SortOrder - viewed?: SortOrder - feedback?: SortOrder - dismissed?: SortOrder - } - - export type MemoryEchoInsightSumOrderByAggregateInput = { - similarityScore?: SortOrder - } - - export type FloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - export type UserAISettingsCountOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type UserAISettingsMaxOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type UserAISettingsMinOrderByAggregateInput = { - userId?: SortOrder - titleSuggestions?: SortOrder - semanticSearch?: SortOrder - paragraphRefactor?: SortOrder - memoryEcho?: SortOrder - memoryEchoFrequency?: SortOrder - aiProvider?: SortOrder - preferredLanguage?: SortOrder - fontSize?: SortOrder - demoMode?: SortOrder - showRecentNotes?: SortOrder - emailNotifications?: SortOrder - desktopNotifications?: SortOrder - anonymousAnalytics?: SortOrder - } - - export type StringFieldUpdateOperationsInput = { - set?: string - } - - export type NullableStringFieldUpdateOperationsInput = { - set?: string | null - } - - export type BoolFieldUpdateOperationsInput = { - set?: boolean - } - - export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null - } - - export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string - } - - export type NullableBoolFieldUpdateOperationsInput = { - set?: boolean | null - } - - export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type NullableFloatFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type FloatFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number - } - - export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringFilter<$PrismaModel> | string - } - - export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableFilter<$PrismaModel> | string | null - } - - export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - - export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntFilter<$PrismaModel> | number - } - - export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeFilter<$PrismaModel> | Date | string - } - - export type NestedBoolNullableFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null - } - - export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableFilter<$PrismaModel> | number | null - } - - export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableFilter<$PrismaModel> | number | null - } - - export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedStringFilter<$PrismaModel> - _max?: NestedStringFilter<$PrismaModel> - } - - export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | StringFieldRefInput<$PrismaModel> - lte?: string | StringFieldRefInput<$PrismaModel> - gt?: string | StringFieldRefInput<$PrismaModel> - gte?: string | StringFieldRefInput<$PrismaModel> - contains?: string | StringFieldRefInput<$PrismaModel> - startsWith?: string | StringFieldRefInput<$PrismaModel> - endsWith?: string | StringFieldRefInput<$PrismaModel> - not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedStringNullableFilter<$PrismaModel> - _max?: NestedStringNullableFilter<$PrismaModel> - } - - export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - - export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - - export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedIntFilter<$PrismaModel> - _min?: NestedIntFilter<$PrismaModel> - _max?: NestedIntFilter<$PrismaModel> - } - - export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatFilter<$PrismaModel> | number - } - - export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedDateTimeFilter<$PrismaModel> - _max?: NestedDateTimeFilter<$PrismaModel> - } - - export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null - not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedBoolNullableFilter<$PrismaModel> - _max?: NestedBoolNullableFilter<$PrismaModel> - } - - export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | IntFieldRefInput<$PrismaModel> - lte?: number | IntFieldRefInput<$PrismaModel> - gt?: number | IntFieldRefInput<$PrismaModel> - gte?: number | IntFieldRefInput<$PrismaModel> - not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedIntNullableFilter<$PrismaModel> - _max?: NestedIntNullableFilter<$PrismaModel> - } - - export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: NestedIntNullableFilter<$PrismaModel> - _avg?: NestedFloatNullableFilter<$PrismaModel> - _sum?: NestedFloatNullableFilter<$PrismaModel> - _min?: NestedFloatNullableFilter<$PrismaModel> - _max?: NestedFloatNullableFilter<$PrismaModel> - } - - export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | FloatFieldRefInput<$PrismaModel> - lte?: number | FloatFieldRefInput<$PrismaModel> - gt?: number | FloatFieldRefInput<$PrismaModel> - gte?: number | FloatFieldRefInput<$PrismaModel> - not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number - _count?: NestedIntFilter<$PrismaModel> - _avg?: NestedFloatFilter<$PrismaModel> - _sum?: NestedFloatFilter<$PrismaModel> - _min?: NestedFloatFilter<$PrismaModel> - _max?: NestedFloatFilter<$PrismaModel> - } - - - - /** - * Aliases for legacy arg types - */ - /** - * @deprecated Use NoteDefaultArgs instead - */ - export type NoteArgs = NoteDefaultArgs - /** - * @deprecated Use NotebookDefaultArgs instead - */ - export type NotebookArgs = NotebookDefaultArgs - /** - * @deprecated Use LabelDefaultArgs instead - */ - export type LabelArgs = LabelDefaultArgs - /** - * @deprecated Use UserDefaultArgs instead - */ - export type UserArgs = UserDefaultArgs - /** - * @deprecated Use AccountDefaultArgs instead - */ - export type AccountArgs = AccountDefaultArgs - /** - * @deprecated Use SessionDefaultArgs instead - */ - export type SessionArgs = SessionDefaultArgs - /** - * @deprecated Use VerificationTokenDefaultArgs instead - */ - export type VerificationTokenArgs = VerificationTokenDefaultArgs - /** - * @deprecated Use NoteShareDefaultArgs instead - */ - export type NoteShareArgs = NoteShareDefaultArgs - /** - * @deprecated Use SystemConfigDefaultArgs instead - */ - export type SystemConfigArgs = SystemConfigDefaultArgs - /** - * @deprecated Use AiFeedbackDefaultArgs instead - */ - export type AiFeedbackArgs = AiFeedbackDefaultArgs - /** - * @deprecated Use MemoryEchoInsightDefaultArgs instead - */ - export type MemoryEchoInsightArgs = MemoryEchoInsightDefaultArgs - /** - * @deprecated Use UserAISettingsDefaultArgs instead - */ - export type UserAISettingsArgs = UserAISettingsDefaultArgs - - /** - * Batch Payload for updateMany & deleteMany & createMany - */ - - export type BatchPayload = { - count: number - } - - /** - * DMMF - */ - export const dmmf: runtime.BaseDMMF -} \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/index.js b/mcp-server/node_modules/.prisma/client/index.js deleted file mode 100644 index 45cd14d..0000000 --- a/mcp-server/node_modules/.prisma/client/index.js +++ /dev/null @@ -1,365 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - PrismaClientKnownRequestError, - PrismaClientUnknownRequestError, - PrismaClientRustPanicError, - PrismaClientInitializationError, - PrismaClientValidationError, - NotFoundError, - getPrismaClient, - sqltag, - empty, - join, - raw, - skip, - Decimal, - Debug, - objectEnumValues, - makeStrictEnum, - Extensions, - warnOnce, - defineDmmfProperty, - Public, - getRuntime -} = require('./runtime/library.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; -Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError -Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError -Prisma.PrismaClientInitializationError = PrismaClientInitializationError -Prisma.PrismaClientValidationError = PrismaClientValidationError -Prisma.NotFoundError = NotFoundError -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = sqltag -Prisma.empty = empty -Prisma.join = join -Prisma.raw = raw -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = Extensions.getExtensionContext -Prisma.defineExtension = Extensions.defineExtension - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - - - const path = require('path') - -/** - * Enums - */ -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - Note: 'Note', - Notebook: 'Notebook', - Label: 'Label', - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; -/** - * Create the Client - */ -const config = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client-js" - }, - "output": { - "value": "D:\\dev_new_pc\\Keep\\mcp-server\\node_modules\\.prisma\\client", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "windows", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "D:\\dev_new_pc\\Keep\\mcp-server\\prisma\\schema.prisma", - "isCustomOutput": true - }, - "relativeEnvPaths": { - "rootEnvPath": null - }, - "relativePath": "../../../prisma", - "clientVersion": "5.22.0", - "engineVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "datasourceNames": [ - "db" - ], - "activeProvider": "sqlite", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": null, - "value": "file:../../keep-notes/prisma/dev.db" - } - } - }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../node_modules/.prisma/client\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n url = \"file:../../keep-notes/prisma/dev.db\"\n}\n\nmodel Note {\n id String @id @default(cuid())\n title String?\n content String\n color String @default(\"default\")\n isPinned Boolean @default(false)\n isArchived Boolean @default(false)\n type String @default(\"text\")\n checkItems String?\n labels String?\n images String?\n links String?\n reminder DateTime?\n isReminderDone Boolean @default(false)\n reminderRecurrence String?\n reminderLocation String?\n isMarkdown Boolean @default(false)\n size String @default(\"small\")\n embedding String?\n sharedWith String?\n userId String?\n order Int @default(0)\n notebookId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n autoGenerated Boolean?\n aiProvider String?\n aiConfidence Int?\n language String?\n languageConfidence Float?\n lastAiAnalysis DateTime?\n}\n\nmodel Notebook {\n id String @id @default(cuid())\n name String\n icon String?\n color String?\n order Int\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Label {\n id String @id @default(cuid())\n name String\n color String @default(\"gray\")\n notebookId String?\n userId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified DateTime?\n password String?\n role String @default(\"USER\")\n image String?\n theme String @default(\"light\")\n resetToken String? @unique\n resetTokenExpiry DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Account {\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String?\n access_token String?\n expires_at Int?\n token_type String?\n scope String?\n id_token String?\n session_state String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@id([provider, providerAccountId])\n}\n\nmodel Session {\n sessionToken String @unique\n userId String\n expires DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel VerificationToken {\n identifier String\n token String\n expires DateTime\n\n @@id([identifier, token])\n}\n\nmodel NoteShare {\n id String @id @default(cuid())\n noteId String\n userId String\n sharedBy String\n status String @default(\"pending\")\n permission String @default(\"view\")\n notifiedAt DateTime?\n respondedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([noteId, userId])\n}\n\nmodel SystemConfig {\n key String @id\n value String\n}\n\nmodel AiFeedback {\n id String @id @default(cuid())\n noteId String\n userId String?\n feedbackType String\n feature String\n originalContent String\n correctedContent String?\n metadata String?\n createdAt DateTime @default(now())\n}\n\nmodel MemoryEchoInsight {\n id String @id @default(cuid())\n userId String?\n note1Id String\n note2Id String\n similarityScore Float\n insight String\n insightDate DateTime @default(now())\n viewed Boolean @default(false)\n feedback String?\n dismissed Boolean @default(false)\n\n @@unique([userId, insightDate])\n}\n\nmodel UserAISettings {\n userId String @id\n titleSuggestions Boolean @default(true)\n semanticSearch Boolean @default(true)\n paragraphRefactor Boolean @default(true)\n memoryEcho Boolean @default(true)\n memoryEchoFrequency String @default(\"daily\")\n aiProvider String @default(\"auto\")\n preferredLanguage String @default(\"auto\")\n fontSize String @default(\"medium\")\n demoMode Boolean @default(false)\n showRecentNotes Boolean @default(false)\n emailNotifications Boolean @default(false)\n desktopNotifications Boolean @default(false)\n anonymousAnalytics Boolean @default(false)\n}\n", - "inlineSchemaHash": "6a26806e7b9877b7e438c48efac7d74491a5f9cec9077bf64e4b64230ba79c87", - "copyEngine": true -} - -const fs = require('fs') - -config.dirname = __dirname -if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { - const alternativePaths = [ - "node_modules/.prisma/client", - ".prisma/client", - ] - - const alternativePath = alternativePaths.find((altPath) => { - return fs.existsSync(path.join(process.cwd(), altPath, 'schema.prisma')) - }) ?? alternativePaths[0] - - config.dirname = path.join(process.cwd(), alternativePath) - config.isBundled = true -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"Note\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"default\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isPinned\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isArchived\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"text\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"checkItems\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"labels\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"images\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"links\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isReminderDone\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderRecurrence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderLocation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isMarkdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"small\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"embedding\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedWith\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"autoGenerated\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"language\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"languageConfidence\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastAiAnalysis\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Notebook\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"order\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Label\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"gray\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notebookId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"User\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"USER\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"theme\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"light\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resetTokenExpiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"fields\":[{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"identifier\",\"token\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"NoteShare\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sharedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"permission\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"view\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifiedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"respondedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"noteId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"noteId\",\"userId\"]}],\"isGenerated\":false},\"SystemConfig\":{\"dbName\":null,\"fields\":[{\"name\":\"key\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AiFeedback\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"noteId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedbackType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feature\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"originalContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"correctedContent\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"metadata\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MemoryEchoInsight\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note1Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"note2Id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"similarityScore\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Float\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insight\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"insightDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"viewed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"feedback\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dismissed\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"insightDate\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"insightDate\"]}],\"isGenerated\":false},\"UserAISettings\":{\"dbName\":null,\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"titleSuggestions\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"semanticSearch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"paragraphRefactor\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEcho\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"memoryEchoFrequency\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"daily\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"aiProvider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"preferredLanguage\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"auto\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fontSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"medium\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"demoMode\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"showRecentNotes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"desktopNotifications\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"anonymousAnalytics\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") -defineDmmfProperty(exports.Prisma, config.runtimeDataModel) -config.engineWasm = undefined - - -const { warnEnvConflicts } = require('./runtime/library.js') - -warnEnvConflicts({ - rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath), - schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath) -}) - -const PrismaClient = getPrismaClient(config) -exports.PrismaClient = PrismaClient -Object.assign(exports, Prisma) - -// file annotations for bundling tools to include these files -path.join(__dirname, "query_engine-windows.dll.node"); -path.join(process.cwd(), "node_modules/.prisma/client/query_engine-windows.dll.node") -// file annotations for bundling tools to include these files -path.join(__dirname, "schema.prisma"); -path.join(process.cwd(), "node_modules/.prisma/client/schema.prisma") diff --git a/mcp-server/node_modules/.prisma/client/package.json b/mcp-server/node_modules/.prisma/client/package.json deleted file mode 100644 index 37979f7..0000000 --- a/mcp-server/node_modules/.prisma/client/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "name": "prisma-client-335178138a2302fddc6069fd0c4da8598be3b531edb6ec6288b57b847324be3b", - "main": "index.js", - "types": "index.d.ts", - "browser": "index-browser.js", - "exports": { - "./package.json": "./package.json", - ".": { - "require": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "import": { - "node": "./index.js", - "edge-light": "./wasm.js", - "workerd": "./wasm.js", - "worker": "./wasm.js", - "browser": "./index-browser.js", - "default": "./index.js" - }, - "default": "./index.js" - }, - "./edge": { - "types": "./edge.d.ts", - "require": "./edge.js", - "import": "./edge.js", - "default": "./edge.js" - }, - "./react-native": { - "types": "./react-native.d.ts", - "require": "./react-native.js", - "import": "./react-native.js", - "default": "./react-native.js" - }, - "./extension": { - "types": "./extension.d.ts", - "require": "./extension.js", - "import": "./extension.js", - "default": "./extension.js" - }, - "./index-browser": { - "types": "./index.d.ts", - "require": "./index-browser.js", - "import": "./index-browser.js", - "default": "./index-browser.js" - }, - "./index": { - "types": "./index.d.ts", - "require": "./index.js", - "import": "./index.js", - "default": "./index.js" - }, - "./wasm": { - "types": "./wasm.d.ts", - "require": "./wasm.js", - "import": "./wasm.js", - "default": "./wasm.js" - }, - "./runtime/library": { - "types": "./runtime/library.d.ts", - "require": "./runtime/library.js", - "import": "./runtime/library.js", - "default": "./runtime/library.js" - }, - "./runtime/binary": { - "types": "./runtime/binary.d.ts", - "require": "./runtime/binary.js", - "import": "./runtime/binary.js", - "default": "./runtime/binary.js" - }, - "./generator-build": { - "require": "./generator-build/index.js", - "import": "./generator-build/index.js", - "default": "./generator-build/index.js" - }, - "./sql": { - "require": { - "types": "./sql.d.ts", - "node": "./sql.js", - "default": "./sql.js" - }, - "import": { - "types": "./sql.d.ts", - "node": "./sql.mjs", - "default": "./sql.mjs" - }, - "default": "./sql.js" - }, - "./*": "./*" - }, - "version": "5.22.0", - "sideEffects": false -} \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/query_engine-windows.dll.node b/mcp-server/node_modules/.prisma/client/query_engine-windows.dll.node deleted file mode 100644 index d46657b..0000000 Binary files a/mcp-server/node_modules/.prisma/client/query_engine-windows.dll.node and /dev/null differ diff --git a/mcp-server/node_modules/.prisma/client/runtime/edge-esm.js b/mcp-server/node_modules/.prisma/client/runtime/edge-esm.js deleted file mode 100644 index dda5f88..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/edge-esm.js +++ /dev/null @@ -1,31 +0,0 @@ -var sa=Object.create;var Kr=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var ua=Object.getPrototypeOf,ca=Object.prototype.hasOwnProperty;var zr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ae=(e,t)=>()=>(e&&(t=e(e=0)),t);var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yr=(e,t)=>{for(var r in t)Kr(e,r,{get:t[r],enumerable:!0})},pa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of la(t))!ca.call(e,i)&&i!==r&&Kr(e,i,{get:()=>t[i],enumerable:!(n=aa(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?sa(ua(e)):{},pa(t||!e||!e.__esModule?Kr(r,"default",{value:e,enumerable:!0}):r,e));var y,c=Ae(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var b,p=Ae(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Ae(()=>{"use strict";E=()=>{};E.prototype=E});var m=Ae(()=>{"use strict"});var Ei=Le(Ye=>{"use strict";f();c();p();d();m();var oi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),da=oi(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var M=A.indexOf("=");M===-1&&(M=R);var F=M===R?0:4-M%4;return[M,F]}function l(A){var R=a(A),M=R[0],F=R[1];return(M+F)*3/4-F}function u(A,R,M){return(R+M)*3/4-M}function g(A){var R,M=a(A),F=M[0],q=M[1],D=new n(u(A,F,q)),I=0,oe=q>0?F-4:F,J;for(J=0;J>16&255,D[I++]=R>>8&255,D[I++]=R&255;return q===2&&(R=r[A.charCodeAt(J)]<<2|r[A.charCodeAt(J+1)]>>4,D[I++]=R&255),q===1&&(R=r[A.charCodeAt(J)]<<10|r[A.charCodeAt(J+1)]<<4|r[A.charCodeAt(J+2)]>>2,D[I++]=R>>8&255,D[I++]=R&255),D}function h(A){return t[A>>18&63]+t[A>>12&63]+t[A>>6&63]+t[A&63]}function v(A,R,M){for(var F,q=[],D=R;Doe?oe:I+D));return F===1?(R=A[M-1],q.push(t[R>>2]+t[R<<4&63]+"==")):F===2&&(R=(A[M-2]<<8)+A[M-1],q.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),q.join("")}}),ma=oi(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,A=t[r+v];for(v+=S,s=A&(1<<-h)-1,A>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(A?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:s-1,R=i?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?r+=S/u:r+=S*Math.pow(2,1-v),r*u>=2&&(a++,u/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*u-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+A]=l&255,A+=R,l/=256,o-=8);for(a=a<0;t[n+A]=a&255,A+=R,a/=256,g-=8);t[n+A-R]|=M*128}}),Zr=da(),Ke=ma(),ti=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=T;Ye.SlowBuffer=Ea;Ye.INSPECT_MAX_BYTES=50;var ur=2147483647;Ye.kMaxLength=ur;T.TYPED_ARRAY_SUPPORT=fa();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fa(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function be(e){if(e>ur)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return tn(e)}return si(e,t,r)}T.poolSize=8192;function si(e,t,r){if(typeof e=="string")return ha(e,t);if(ArrayBuffer.isView(e))return ya(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return li(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=wa(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return si(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ai(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ga(e,t,r){return ai(e),e<=0?be(e):t!==void 0?typeof r=="string"?be(e).fill(t,r):be(e).fill(t):be(e)}T.alloc=function(e,t,r){return ga(e,t,r)};function tn(e){return ai(e),be(e<0?0:rn(e)|0)}T.allocUnsafe=function(e){return tn(e)};T.allocUnsafeSlow=function(e){return tn(e)};function ha(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ui(e,t)|0,n=be(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Xr(e){let t=e.length<0?0:rn(e.length)|0,r=be(t);for(let n=0;n=ur)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ur.toString(16)+" bytes");return e|0}function Ea(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ui(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return en(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return wi(e).length;default:if(i)return n?-1:en(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=ui;function ba(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Oa(this,t,r);case"utf8":case"utf-8":return pi(this,t,r);case"ascii":return Sa(this,t,r);case"latin1":case"binary":return Ia(this,t,r);case"base64":return Aa(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ka(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Be(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};ti&&(T.prototype[ti]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,on(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:ri(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ri(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ri(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return xa(this,e,t,r);case"utf8":case"utf-8":return Pa(this,e,t,r);case"ascii":case"latin1":case"binary":return va(this,e,t,r);case"base64":return Ta(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ca(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Aa(e,t,r){return t===0&&r===e.length?Zr.fromByteArray(e):Zr.fromByteArray(e.slice(t,r))}function pi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Ra(n)}var ni=4096;function Ra(e){let t=e.length;if(t<=ni)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Re(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Re(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Pt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||H(e,4,this.length),Ke.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||H(e,4,this.length),Ke.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!1,52,8)};function re(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function di(e,t,r,n,i){yi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function mi(e,t,r,n,i){yi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Re(function(e,t=0){return di(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Re(function(e,t=0){return mi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Re(function(e,t=0){return di(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Re(function(e,t=0){return mi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fi(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function gi(e,t,r,n,i){return t=+t,r=r>>>0,i||fi(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return gi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return gi(this,e,t,!1,r)};function hi(e,t,r,n,i){return t=+t,r=r>>>0,i||fi(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return hi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return hi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ii(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ii(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ii(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Da(e,t,r){ze(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Pt(t,e.length-(r+1))}function yi(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new We.ERR_OUT_OF_RANGE("value",a,e)}Da(n,i,o)}function ze(e,t){if(typeof e!="number")throw new We.ERR_INVALID_ARG_TYPE(t,"number",e)}function Pt(e,t,r){throw Math.floor(e)!==e?(ze(e,r),new We.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Ma=/[^+/0-9A-Za-z-_]/g;function Na(e){if(e=e.split("=")[0],e=e.trim().replace(Ma,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function en(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Fa(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function wi(e){return Zr.toByteArray(Na(e))}function cr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function on(e){return e!==e}var La=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Re(e){return typeof BigInt>"u"?qa:e}function qa(){throw new Error("BigInt not supported")}});var w,f=Ae(()=>{"use strict";w=qe(Ei())});function Ba(){return!1}var Ua,$a,Ci,Ai=Ae(()=>{"use strict";f();c();p();d();m();Ua={},$a={existsSync:Ba,promises:Ua},Ci=$a});function Ha(...e){return e.join("/")}function Wa(...e){return e.join("/")}var $i,Ka,za,Tt,Vi=Ae(()=>{"use strict";f();c();p();d();m();$i="/",Ka={sep:$i},za={resolve:Ha,posix:Ka,join:Wa,sep:$i},Tt=za});var fr,Ji=Ae(()=>{"use strict";f();c();p();d();m();fr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Qi=Le((gm,Gi)=>{"use strict";f();c();p();d();m();Gi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Ki=Le((Rm,Wi)=>{"use strict";f();c();p();d();m();Wi.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Yi=Le((Mm,zi)=>{"use strict";f();c();p();d();m();var rl=Ki();zi.exports=e=>typeof e=="string"?e.replace(rl(),""):e});var wn=Le((Sh,go)=>{"use strict";f();c();p();d();m();go.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{Wu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var $o=Le(()=>{"use strict";f();c();p();d();m()});f();c();p();d();m();var Pi={};Yr(Pi,{defineExtension:()=>bi,getExtensionContext:()=>xi});f();c();p();d();m();f();c();p();d();m();function bi(e){return typeof e=="function"?e:t=>t.$extends(e)}f();c();p();d();m();function xi(e){return e}var Ti={};Yr(Ti,{validator:()=>vi});f();c();p();d();m();f();c();p();d();m();function vi(...e){return t=>t}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var sn,Ri,Si,Ii,Oi=!0;typeof y<"u"&&({FORCE_COLOR:sn,NODE_DISABLE_COLORS:Ri,NO_COLOR:Si,TERM:Ii}=y.env||{},Oi=y.stdout&&y.stdout.isTTY);var Va={enabled:!Ri&&Si==null&&Ii!=="dumb"&&(sn!=null&&sn!=="0"||Oi)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Va.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Zp=V(0,0),pr=V(1,22),dr=V(2,22),Xp=V(3,23),ki=V(4,24),ed=V(7,27),td=V(8,28),rd=V(9,29),nd=V(30,39),Ze=V(31,39),Di=V(32,39),Mi=V(33,39),Ni=V(34,39),id=V(35,39),Fi=V(36,39),od=V(37,39),_i=V(90,39),sd=V(90,39),ad=V(40,49),ld=V(41,49),ud=V(42,49),cd=V(43,49),pd=V(44,49),dd=V(45,49),md=V(46,49),fd=V(47,49);f();c();p();d();m();var ja=100,Li=["green","yellow","blue","magenta","cyan","red"],mr=[],qi=Date.now(),Ja=0,an=typeof y<"u"?y.env:{};globalThis.DEBUG??=an.DEBUG??"";globalThis.DEBUG_COLORS??=an.DEBUG_COLORS?an.DEBUG_COLORS==="true":!0;var vt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Ga(e){let t={color:Li[Ja++%Li.length],enabled:vt.enabled(e),namespace:e,log:vt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&mr.push([o,...n]),mr.length>ja&&mr.shift(),vt.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:Qa(g)),u=`+${Date.now()-qi}ms`;qi=Date.now(),a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Bi=new Proxy(Ga,{get:(e,t)=>vt[t],set:(e,t,r)=>vt[t]=r});function Qa(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Ui(){mr.length=0}var ee=Bi;f();c();p();d();m();f();c();p();d();m();var ji="library";function Ct(e){let t=Ya();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":ji)}function Ya(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}f();c();p();d();m();f();c();p();d();m();var Ue;(t=>{let e;(I=>(I.findUnique="findUnique",I.findUniqueOrThrow="findUniqueOrThrow",I.findFirst="findFirst",I.findFirstOrThrow="findFirstOrThrow",I.findMany="findMany",I.create="create",I.createMany="createMany",I.createManyAndReturn="createManyAndReturn",I.update="update",I.updateMany="updateMany",I.upsert="upsert",I.delete="delete",I.deleteMany="deleteMany",I.groupBy="groupBy",I.count="count",I.aggregate="aggregate",I.findRaw="findRaw",I.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Ue||={});var Rt={};Yr(Rt,{error:()=>el,info:()=>Xa,log:()=>Za,query:()=>tl,should:()=>Hi,tags:()=>At,warn:()=>ln});f();c();p();d();m();var At={error:Ze("prisma:error"),warn:Mi("prisma:warn"),info:Fi("prisma:info"),query:Ni("prisma:query")},Hi={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function Za(...e){console.log(...e)}function ln(e,...t){Hi.warn()&&console.warn(`${At.warn} ${e}`,...t)}function Xa(e,...t){console.info(`${At.info} ${e}`,...t)}function el(e,...t){console.error(`${At.error} ${e}`,...t)}function tl(e,...t){console.log(`${At.query} ${e}`,...t)}f();c();p();d();m();function xe(e,t){throw new Error(t)}f();c();p();d();m();function un(e,t){return Object.prototype.hasOwnProperty.call(e,t)}f();c();p();d();m();var cn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});f();c();p();d();m();function Xe(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}f();c();p();d();m();function pn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{Zi.has(e)||(Zi.add(e),ln(t,...r))};f();c();p();d();m();var K=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(K,"PrismaClientKnownRequestError");var Se=class extends K{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};N(Se,"NotFoundError");f();c();p();d();m();var G=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(G,"PrismaClientInitializationError");f();c();p();d();m();var Ie=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(Ie,"PrismaClientRustPanicError");f();c();p();d();m();var se=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(se,"PrismaClientUnknownRequestError");f();c();p();d();m();var z=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(z,"PrismaClientValidationError");f();c();p();d();m();f();c();p();d();m();var et=9e15,Me=1e9,dn="0123456789abcdef",yr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",wr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",mn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-et,maxE:et,crypto:!1},no,Pe,_=!0,br="[DecimalError] ",De=br+"Invalid argument: ",io=br+"Precision limit exceeded",oo=br+"crypto unavailable",so="[object Decimal]",X=Math.floor,Q=Math.pow,nl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,il=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ol=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ao=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,k=7,sl=9007199254740991,al=yr.length-1,fn=wr.length-1,C={toStringTag:so};C.absoluteValue=C.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)};C.ceil=function(){return O(new this.constructor(this),this.e+1,2)};C.clampedTo=C.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(De+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};C.comparedTo=C.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};C.cosine=C.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=ll(n,mo(n,r)),n.precision=e,n.rounding=t,O(Pe==2||Pe==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};C.cubeRoot=C.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*Q(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Y(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=Q(r,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=U(u.plus(g).times(a),u.plus(l),s+2,1),Y(a.d).slice(0,s)===(r=Y(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(O(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(O(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,O(n,e,h.rounding,t)};C.decimalPlaces=C.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-X(this.e/k))*k,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};C.dividedBy=C.div=function(e){return U(this,new this.constructor(e))};C.dividedToIntegerBy=C.divToInt=function(e){var t=this,r=t.constructor;return O(U(t,new r(e),0,1,1),r.precision,r.rounding)};C.equals=C.eq=function(e){return this.cmp(e)===0};C.floor=function(){return O(new this.constructor(this),this.e+1,3)};C.greaterThan=C.gt=function(e){return this.cmp(e)>0};C.greaterThanOrEqualTo=C.gte=function(e){var t=this.cmp(e);return t==1||t===0};C.hyperbolicCosine=C.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/Pr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=tt(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return O(o,s.precision=r,s.rounding=n,!0)};C.hyperbolicSine=C.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=tt(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Pr(5,e)),i=tt(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)};C.hyperbolicTangent=C.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,U(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};C.inverseCosine=C.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?ce(r,i,o):new r(0):new r(NaN):t.isZero()?ce(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=ce(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};C.inverseHyperbolicCosine=C.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};C.inverseHyperbolicSine=C.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};C.inverseHyperbolicTangent=C.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=U(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};C.inverseSine=C.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=ce(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};C.inverseTangent=C.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=fn)return s=ce(g,h+4,v).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=fn)return s=ce(g,h+4,v).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/k+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/k),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};C.isNaN=function(){return!this.s};C.isNegative=C.isNeg=function(){return this.s<0};C.isPositive=C.isPos=function(){return this.s>0};C.isZero=function(){return!!this.d&&this.d[0]===0};C.lessThan=C.lt=function(e){return this.cmp(e)<0};C.lessThanOrEqualTo=C.lte=function(e){return this.cmp(e)<1};C.logarithm=C.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=ke(u,a),n=t?Er(g,a+10):ke(e,a),l=U(s,n,a,1),St(l.d,i=h,v))do if(a+=10,s=ke(u,a),n=t?Er(g,a+10):ke(e,a),l=U(s,n,a,1),!o){+Y(l.d).slice(i+1,i+15)+1==1e14&&(l=O(l,h+1,0));break}while(St(l.d,i+=10,v));return _=!0,O(l,h,v)};C.minus=C.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.constructor;if(e=new A(e),!S.d||!e.d)return!S.s||!e.s?e=new A(NaN):S.d?e.s=-e.s:e=new A(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,v=e.d,a=A.precision,l=A.rounding,!u[0]||!v[0]){if(v[0])e.s=-e.s;else if(u[0])e=new A(S);else return new A(l===3?-0:0);return _?O(e,a,l):e}if(r=X(e.e/k),g=X(S.e/k),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=v.length):(t=v,r=g,s=u.length),n=Math.max(Math.ceil(a/k),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=v.length,h=n0;--n)u[s++]=0;for(n=v.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/pe|0,u[i]%=pe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=xr(u,n),_?O(e,a,l):e};C.precision=C.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(De+e);return r.d?(t=lo(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};C.round=function(){var e=this,t=e.constructor;return O(new t(e),e.e+1,t.rounding)};C.sine=C.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=cl(n,mo(n,r)),n.precision=e,n.rounding=t,O(Pe>2?r.neg():r,e,t,!0)):new n(NaN)};C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Y(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=X((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(U(s,o,r+2,1)).times(.5),Y(o.d).slice(0,r)===(t=Y(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(O(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(O(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,O(n,l,g.rounding,e)};C.tangent=C.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=U(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(Pe==2||Pe==4?r.neg():r,e,t,!0)):new n(NaN)};C.times=C.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=X(g.e/k)+X(e.e/k),l=v.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%pe|0,t=a/pe|0;o[i]=(o[i]+t)%pe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=xr(o,r),_?O(e,h.precision,h.rounding):e};C.toBinary=function(e,t){return yn(this,2,e,t)};C.toDecimalPlaces=C.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ne(e,0,Me),t===void 0?t=n.rounding:ne(t,0,8),O(r,e+r.e+1,t))};C.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,!0):(ne(e,0,Me),t===void 0?t=i.rounding:ne(t,0,8),n=O(new i(n),e+1,t),r=me(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=me(i):(ne(e,0,Me),t===void 0?t=o.rounding:ne(t,0,8),n=O(new o(i),e+i.e+1,t),r=me(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};C.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.d,R=S.constructor;if(!A)return new R(S);if(u=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=lo(A)-S.e-1,s=o%k,t.d[0]=Q(10,s<0?k+s:s),e==null)e=o>0?t:u;else{if(a=new R(e),!a.isInt()||a.lt(u))throw Error(De+a);e=a.gt(t)?o>0?t:u:a}for(_=!1,a=new R(Y(A)),g=R.precision,R.precision=o=A.length*k*2;h=U(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=U(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,v=U(u,n,o,1).minus(S).abs().cmp(U(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],R.precision=g,_=!0,v};C.toHexadecimal=C.toHex=function(e,t){return yn(this,16,e,t)};C.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ne(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=U(r,e,0,t,1).times(e),_=!0,O(r)):(e.s=r.s,r=e),r};C.toNumber=function(){return+this};C.toOctal=function(e,t){return yn(this,8,e,t)};C.toPower=C.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(Q(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return O(a,n,o);if(t=X(e.e/k),t>=e.d.length-1&&(r=u<0?-u:u)<=sl)return i=uo(l,a,r,n),e.s<0?new l(1).div(i):O(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=gn(e.times(ke(a,n+r)),n),i.d&&(i=O(i,n+5,1),St(i.d,n,o)&&(t=n+10,i=O(gn(e.times(ke(a,t+r)),t),t+5,1),+Y(i.d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,O(i,n,o))};C.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ne(e,1,Me),t===void 0?t=i.rounding:ne(t,0,8),n=O(new i(n),e,t),r=me(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toSignificantDigits=C.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ne(e,1,Me),t===void 0?t=n.rounding:ne(t,0,8)),O(new n(r),e,t)};C.toString=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};C.truncated=C.trunc=function(){return O(new this.constructor(this),this.e+1,1)};C.valueOf=C.toJSON=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Y(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(De+e)}function St(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=k,i=0):(i=Math.ceil((t+1)/k),t%=k),o=Q(10,k-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==Q(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==Q(10,t-3)-1,s}function hr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function ll(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Pr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=tt(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var U=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,v,S,A,R,M,F,q,D,I,oe,J,Qr,sr,xt,Hr,ue,ar,lr=n.constructor,Wr=n.s==i.s?1:-1,Z=n.d,$=i.d;if(!Z||!Z[0]||!$||!$[0])return new lr(!n.s||!i.s||(Z?$&&Z[0]==$[0]:!$)?NaN:Z&&Z[0]==0||!$?Wr*0:Wr/0);for(l?(S=1,g=n.e-i.e):(l=pe,S=k,g=X(n.e/S)-X(i.e/S)),ue=$.length,xt=Z.length,F=new lr(Wr),q=F.d=[],h=0;$[h]==(Z[h]||0);h++);if($[h]>(Z[h]||0)&&g--,o==null?(J=o=lr.precision,s=lr.rounding):a?J=o+(n.e-i.e)+1:J=o,J<0)q.push(1),A=!0;else{if(J=J/S+2|0,h=0,ue==1){for(v=0,$=$[0],J++;(h1&&($=e($,v,l),Z=e(Z,v,l),ue=$.length,xt=Z.length),sr=ue,D=Z.slice(0,ue),I=D.length;I=l/2&&++Hr;do v=0,u=t($,D,ue,I),u<0?(oe=D[0],ue!=I&&(oe=oe*l+(D[1]||0)),v=oe/Hr|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),M=R.length,I=D.length,u=t(R,D,M,I),u==1&&(v--,r(R,ue=10;v/=10)h++;F.e=h+g*S-1,O(F,a?o+F.e+1:o,s,A)}return F}}();function O(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=k,s=t,g=h[v=0],l=g/Q(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/k),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=k,s=o-k+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=k,s=o-k+i,l=s<0?0:g/Q(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%Q(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/Q(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=Q(10,(k-t%k)%k),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=Q(10,k-o),h[v]=s>0?(g/Q(10,i-s)%Q(10,s)|0)*a:0),u)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==pe&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=pe)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+Oe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Oe(-i-1)+o,r&&(n=r-s)>0&&(o+=Oe(n))):i>=s?(o+=Oe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Oe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Oe(n))),o}function xr(e,t){var r=e[0];for(t*=k;r>=10;r/=10)t++;return t}function Er(e,t,r){if(t>al)throw _=!0,r&&(e.precision=r),Error(io);return O(new e(yr),t,1,!0)}function ce(e,t,r){if(t>fn)throw Error(io);return O(new e(wr),t,r,!0)}function lo(e){var t=e.length-1,r=t*k+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Oe(e){for(var t="";e--;)t+="0";return t}function uo(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/k+4);for(_=!1;;){if(r%2&&(o=o.times(t),to(o.d,s)&&(i=!0)),r=X(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),to(t.d,s)}return _=!0,o}function eo(e){return e.d[e.d.length-1]&1}function co(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=A):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(Q(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++g),a=s.plus(U(o,r,l,1)),Y(a.d).slice(0,l)===Y(s.d).slice(0,l)){for(i=h;i--;)s=O(s.times(s),l,1);if(t==null)if(u<3&&St(s.d,l-n,S,u))v.precision=l+=10,r=o=a=new v(1),g=0,u++;else return O(s,v.precision=A,S,_=!0);else return v.precision=A,s}s=a}}function ke(e,t){var r,n,i,o,s,a,l,u,g,h,v,S=1,A=10,R=e,M=R.d,F=R.constructor,q=F.rounding,D=F.precision;if(R.s<0||!M||!M[0]||!R.e&&M[0]==1&&M.length==1)return new F(M&&!M[0]?-1/0:R.s!=1?NaN:M?0:R);if(t==null?(_=!1,g=D):g=t,F.precision=g+=A,r=Y(M),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=Y(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new F("0."+r),o++):R=new F(n+"."+r.slice(1))}else return u=Er(F,g+2,D).times(o+""),R=ke(new F(n+"."+r.slice(1)),g-A).plus(u),F.precision=D,t==null?O(R,D,q,_=!0):R;for(h=R,l=s=R=U(R.minus(1),R.plus(1),g,1),v=O(R.times(R),g,1),i=3;;){if(s=O(s.times(v),g,1),u=l.plus(U(s,new F(i),g,1)),Y(u.d).slice(0,g)===Y(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(Er(F,g+2,D).times(o+""))),l=U(l,new F(S),g,1),t==null)if(St(l.d,g-A,q,a))F.precision=g+=A,u=s=R=U(h.minus(1),h.plus(1),g,1),v=O(R.times(R),g,1),i=a=1;else return O(l,F.precision=D,q,_=!0);else return F.precision=D,l;l=u,i+=2}}function po(e){return String(e.s*e.s/0)}function hn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%k,r<0&&(n+=k),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ao.test(t))return hn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(il.test(t))r=16,t=t.toLowerCase();else if(nl.test(t))r=2;else if(ol.test(t))r=8;else throw Error(De+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=uo(n,new n(r),o,o*2)),u=hr(t,r,pe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=xr(u,g),e.d=u,_=!1,s&&(e=U(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?Q(2,l):$e.pow(2,l))),_=!0,e)}function cl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:tt(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Pr(5,r)),t=tt(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function tt(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/k);for(_=!1,l=r.times(r),a=new e(n);;){if(s=U(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=U(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return _=!0,s.d.length=h+1,s}function Pr(e,t){for(var r=e;--t;)r*=e;return r}function mo(e,t){var r,n=t.s<0,i=ce(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Pe=n?4:1,t;if(r=t.divToInt(i),r.isZero())Pe=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Pe=eo(r)?n?2:3:n?4:1,t;Pe=eo(r)?n?1:4:n?3:2}return t.minus(i).abs()}function yn(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor,A=r!==void 0;if(A?(ne(r,1,Me),n===void 0?n=S.rounding:ne(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=po(e);else{for(g=me(e),s=g.indexOf("."),A?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=hr(me(v),10,i),v.e=v.d.length),h=hr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=A?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=U(e,v,r,n,0,i),h=e.d,o=e.e,u=no),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=hr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function pl(e){return new this(e).abs()}function dl(e){return new this(e).acos()}function ml(e){return new this(e).acosh()}function fl(e,t){return new this(e).plus(t)}function gl(e){return new this(e).asin()}function hl(e){return new this(e).asinh()}function yl(e){return new this(e).atan()}function wl(e){return new this(e).atanh()}function El(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ce(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ce(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ce(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(U(e,t,o,1)),t=ce(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(U(e,t,o,1)),r}function bl(e){return new this(e).cbrt()}function xl(e){return O(e=new this(e),e.e+1,2)}function Pl(e,t,r){return new this(e).clamp(t,r)}function vl(e){if(!e||typeof e!="object")throw Error(br+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,Me,"rounding",0,8,"toExpNeg",-et,0,"toExpPos",0,et,"maxE",0,et,"minE",-et,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(De+r+": "+n);if(r="crypto",i&&(this[r]=mn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(oo);else this[r]=!1;else throw Error(De+r+": "+n);return this}function Tl(e){return new this(e).cos()}function Cl(e){return new this(e).cosh()}function fo(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,ro(o)){u.s=o.s,_?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(oo);else for(;o=10;i/=10)n++;ne.highlight()},eu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function tu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function ru({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(nu(t))),i){a.push("");let u=[i.toString()];o&&(u.push(o),u.push(s.dim(")"))),a.push(u.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function nu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function ot(e){let t=e.showColors?Xl:eu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=tu(e),ru(r,t)}f();c();p();d();m();var xo=qe(wn());f();c();p();d();m();function wo(e,t,r){let n=Eo(e),i=iu(n),o=su(i);o?Tr(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Eo(e){return e.errors.flatMap(t=>t.kind==="Union"?Eo(t):[t])}function iu(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:ou(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function ou(e,t){return[...new Set(e.concat(t))]}function su(e){return pn(e,(t,r)=>{let n=ho(t),i=ho(r);return n!==i?n-i:yo(t)-yo(r)})}function ho(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function yo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}f();c();p();d();m();var ae=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};f();c();p();d();m();f();c();p();d();m();var st=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};f();c();p();d();m();f();c();p();d();m();var Cr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};f();c();p();d();m();var Ar=e=>e,Rr={bold:Ar,red:Ar,green:Ar,dim:Ar,enabled:!1},bo={bold:pr,red:Ze,green:Di,dim:dr,enabled:!0},at={write(e){e.writeLine(",")}};f();c();p();d();m();var fe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};f();c();p();d();m();var Ne=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var lt=class extends Ne{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Cr(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new fe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(at,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ut=class e extends Ne{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof lt&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new fe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(at,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};f();c();p();d();m();var W=class extends Ne{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new fe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};f();c();p();d();m();var Ot=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(at,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Tr(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":lu(e,t);break;case"IncludeOnScalar":uu(e,t);break;case"EmptySelection":cu(e,t,r);break;case"UnknownSelectionField":fu(e,t);break;case"InvalidSelectionValue":gu(e,t);break;case"UnknownArgument":hu(e,t);break;case"UnknownInputField":yu(e,t);break;case"RequiredArgumentMissing":wu(e,t);break;case"InvalidArgumentType":Eu(e,t);break;case"InvalidArgumentValue":bu(e,t);break;case"ValueTooLarge":xu(e,t);break;case"SomeFieldsMissing":Pu(e,t);break;case"TooManyFieldsGiven":vu(e,t);break;case"Union":wo(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function lu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function uu(e,t){let[r,n]=kt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ae(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Dt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function cu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){pu(e,t,i);return}if(n.hasField("select")){du(e,t);return}}if(r?.[rt(e.outputType.name)]){mu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function pu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ae(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function du(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),To(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Dt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function mu(e,t){let r=new Ot;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ae("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=kt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ut;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function fu(e,t){let r=Co(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":To(n,e.outputType);break;case"include":Tu(n,e.outputType);break;case"omit":Cu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Dt(n)),i.join(" ")})}function gu(e,t){let r=Co(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function hu(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Au(n,e.arguments)),t.addErrorMessage(i=>Po(i,r,e.arguments.map(o=>o.name)))}function yu(e,t){let[r,n]=kt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Ao(o,e.inputType)}t.addErrorMessage(o=>Po(o,n,e.inputType.fields.map(s=>s.name)))}function Po(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Su(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Dt(e)),n.join(" ")}function wu(e,t){let r;t.addErrorMessage(l=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=kt(e.argumentPath),s=new Ot,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ae(o,s).makeRequired())}else{let l=e.inputTypes.map(vo).join(" | ");a.addSuggestion(new ae(o,l).makeRequired())}}function vo(e){return e.kind==="list"?`${vo(e.elementType)}[]`:e.name}function Eu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Sr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function bu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Sr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function xu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Pu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Ao(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Sr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Dt(i)),o.join(" ")})}function vu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Sr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function To(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,"true"))}function Tu(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ae(r.name,"true"))}function Cu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ae(r.name,"true"))}function Au(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function Co(e,t){let[r,n]=kt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Ao(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ae(r.name,r.typeNames.join(" | ")))}function kt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Dt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Sr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Ru=3;function Su(e,t){let r=1/0,n;for(let i of t){let o=(0,xo.default)(e,i);o>Ru||o`}};function ct(e){return e instanceof Mt}f();c();p();d();m();var Ir=Symbol(),En=new WeakMap,Te=class{constructor(t){t===Ir?En.set(this,`Prisma.${this._getName()}`):En.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return En.get(this)}},Nt=class extends Te{_getNamespace(){return"NullTypes"}},Ft=class extends Nt{};xn(Ft,"DbNull");var _t=class extends Nt{};xn(_t,"JsonNull");var Lt=class extends Nt{};xn(Lt,"AnyNull");var bn={classes:{DbNull:Ft,JsonNull:_t,AnyNull:Lt},instances:{DbNull:new Ft(Ir),JsonNull:new _t(Ir),AnyNull:new Lt(Ir)}};function xn(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}f();c();p();d();m();var So=": ",Or=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+So.length}write(t){let r=new fe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(So).write(this.value)}};var Pn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function pt(e){return new Pn(Io(e))}function Io(e){let t=new ut;for(let[r,n]of Object.entries(e)){let i=new Or(r,Oo(n));t.addField(i)}return t}function Oo(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(it(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=vr(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof Te?new W(`Prisma.${e._getName()}`):ct(e)?new W(`prisma.${Ro(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Iu(e):typeof e=="object"?Io(e):new W(Object.prototype.toString.call(e))}function Iu(e){let t=new lt;for(let r of e)t.addItem(Oo(r));return t}function kr(e,t){let r=t==="pretty"?bo:Rr,n=e.renderAllMessages(r),i=new st(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Dr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=pt(e);for(let h of t)Tr(h,a,s);let{message:l,args:u}=kr(a,r),g=ot({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new z(g,{clientVersion:o})}f();c();p();d();m();f();c();p();d();m();var ge=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};f();c();p();d();m();function qt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}f();c();p();d();m();function he(e){return e.replace(/^./,t=>t.toLowerCase())}f();c();p();d();m();function Do(e,t,r){let n=he(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Ou({...e,...ko(t.name,e,t.result.$allModels),...ko(t.name,e,t.result[n])})}function Ou(e){let t=new ge,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Xe(e,n=>({...n,needs:r(n.name,new Set)}))}function ko(e,t,r){return r?Xe(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:ku(t,o,i)})):{}}function ku(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Mo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function No(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Mr=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ge;this.modelExtensionsCache=new ge;this.queryCallbacksCache=new ge;this.clientExtensions=qt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=qt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Do(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=he(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},dt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Mr(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Mr(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};f();c();p();d();m();f();c();p();d();m();var Fo=Symbol(),Bt=class{constructor(t){if(t!==Fo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?vn:t}},vn=new Bt(Fo);function ye(e){return e instanceof Bt}var Du={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},_o="explicitly `undefined` values are not allowed";function Cn({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=dt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Tn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:Du[t],query:Ut(r,h)}}function Ut({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:qo(r,n),selection:Mu(e,t,i,n)}}function Mu(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Lu(e,n)):Nu(n,t,r)}function Nu(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&Fu(n,t,e),e.isPreviewFeatureOn("omitApi")&&_u(n,r,e),n}function Fu(e,t,r){for(let[n,i]of Object.entries(t)){if(ye(i))continue;let o=r.nestSelection(n);if(An(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Ut(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Ut(i,o)}}function _u(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=No(i,n);for(let[s,a]of Object.entries(o)){if(ye(a))continue;An(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function Lu(e,t){let r={},n=t.getComputedFields(),i=Mo(e,n);for(let[o,s]of Object.entries(i)){if(ye(s))continue;let a=t.nestSelection(o);An(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||ye(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Ut({},a):r[o]=!0;continue}r[o]=Ut(s,a)}}return r}function Lo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(nt(e)){if(vr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(ct(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return qu(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(Bu(e))return e.values;if(it(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Te){if(e!==bn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Uu(e))return e.toJSON();if(typeof e=="object")return qo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function qo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);ye(i)||(i!==void 0?r[n]=Lo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:_o}))}return r}function qu(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[rt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:xe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};f();c();p();d();m();var $t=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};f();c();p();d();m();function $u(e){return{models:Rn(e.models),enums:Rn(e.enums),types:Rn(e.types)}}function Rn(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function Vu(e,t){let r=qt(()=>ju(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ju(e){return{datamodel:{models:Sn(e.models),enums:Sn(e.enums),types:Sn(e.types)}}}function Sn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}f();c();p();d();m();var In=new WeakMap,Nr="$$PrismaTypedSql",On=class{constructor(t,r){In.set(this,{sql:t,values:r}),Object.defineProperty(this,Nr,{value:Nr})}get sql(){return In.get(this).sql}get values(){return In.get(this).values}};function Ju(e){return(...t)=>new On(e,t)}function Bo(e){return e!=null&&e[Nr]===Nr}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function Vt(e){return{ok:!1,error:e,map(){return Vt(e)},flatMap(){return Vt(e)}}}var kn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Dn=e=>{let t=new kn,r=we(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:we(t,e.queryRaw.bind(e)),executeRaw:we(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>Gu(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=Hu(t,e.getConnectionInfo.bind(e))),n},Gu=(e,t)=>{let r=we(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:we(e,t.queryRaw.bind(t)),executeRaw:we(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>Qu(e,o))}},Qu=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:we(e,t.queryRaw.bind(t)),executeRaw:we(e,t.executeRaw.bind(t)),commit:we(e,t.commit.bind(t)),rollback:we(e,t.rollback.bind(t))});function we(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Vt({kind:"GenericJs",id:i})}}}function Hu(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Vt({kind:"GenericJs",id:i})}}}var oa=qe(Uo());var iD=qe($o());Ji();Ai();Vi();f();c();p();d();m();var le=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}f();c();p();d();m();f();c();p();d();m();var Fr={enumerable:!0,configurable:!0,writable:!0};function _r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Fr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Jo=Symbol.for("nodejs.util.inspect.custom");function Ee(e,t){let r=Yu(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Go(Reflect.ownKeys(o),r),a=Go(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Fr,...l?.getPropertyDescriptor(s)}:Fr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[Jo]=function(){let o={...this};return delete o[Jo],o},i}function Yu(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Go(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}f();c();p();d();m();function mt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}f();c();p();d();m();function Lr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}f();c();p();d();m();function Qo(e){if(e===void 0)return"";let t=pt(e);return new st(0,{colors:Rr}).write(t).toString()}f();c();p();d();m();var Zu="P2037";function Jt({error:e,user_facing_error:t},r,n){return t.error_code?new K(Xu(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new se(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function Xu(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===Zu&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Mn=class{getLocation(){return null}};function Fe(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Mn}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Ho={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function ft(e={}){let t=tc(e);return Object.entries(t).reduce((n,[i,o])=>(Ho[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function tc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function qr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Wo(e,t){let r=qr(e);return t({action:"aggregate",unpacker:r,argsMapper:ft})(e)}f();c();p();d();m();function rc(e={}){let{select:t,...r}=e;return typeof t=="object"?ft({...r,_count:t}):ft({...r,_count:{_all:!0}})}function nc(e={}){return typeof e.select=="object"?t=>qr(e)(t)._count:t=>qr(e)(t)._count._all}function Ko(e,t){return t({action:"count",unpacker:nc(e),argsMapper:rc})(e)}f();c();p();d();m();function ic(e={}){let t=ft(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function oc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function zo(e,t){return t({action:"groupBy",unpacker:oc(e),argsMapper:ic})(e)}function Yo(e,t,r){if(t==="aggregate")return n=>Wo(n,r);if(t==="count")return n=>Ko(n,r);if(t==="groupBy")return n=>zo(n,r)}f();c();p();d();m();function Zo(e,t){let r=t.fields.filter(i=>!i.relationName),n=cn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Mt(e,o,s.type,s.isList,s.kind==="enum")},..._r(Object.keys(n))})}f();c();p();d();m();f();c();p();d();m();var Xo=e=>Array.isArray(e)?e:e.split("."),Nn=(e,t)=>Xo(t).reduce((r,n)=>r&&r[n],e),es=(e,t,r)=>Xo(t).reduceRight((n,i,o,s)=>Object.assign({},Nn(e,s.slice(0,o)),{[i]:n}),r);function sc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function ac(e,t,r){return t===void 0?e??{}:es(t,r,e||!0)}function Fn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Fe(e._errorFormat),g=sc(n,i),h=ac(l,o,g),v=r({dataPath:g,callsite:u})(h),S=lc(e,t);return new Proxy(v,{get(A,R){if(!S.includes(R))return A[R];let F=[a[R].type,r,R],q=[g,h];return Fn(e,...F,...q)},..._r([...S,...Object.getOwnPropertyNames(v)])})}}function lc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}f();c();p();d();m();function ts(e,t,r,n){return e===Ue.ModelAction.findFirstOrThrow||e===Ue.ModelAction.findUniqueOrThrow?uc(t,r,n):n}function uc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=ot({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new z(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof K&&o.code==="P2025"?new Se(`No ${e} found`,t):o})}}var cc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],pc=["aggregate","count","groupBy"];function _n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[dc(e,t),fc(e,t),jt(r),te("name",()=>t),te("$name",()=>t),te("$parent",()=>e._appliedParent)];return Ee({},n)}function dc(e,t){let r=he(t),n=Object.keys(Ue.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=ts(o,t,e._clientVersion,s);let a=l=>u=>{let g=Fe(e._errorFormat);return e._createPrismaPromise(h=>{let v={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...v,...l})})};return cc.includes(o)?Fn(e,t,a):mc(i)?Yo(e,i,a):a({})}}}function mc(e){return pc.includes(e)}function fc(e,t){return Ve(te("fields",()=>{let r=e._runtimeDataModel.models[t];return Zo(t,r)}))}f();c();p();d();m();function rs(e){return e.replace(/^./,t=>t.toUpperCase())}var Ln=Symbol();function Gt(e){let t=[gc(e),te(Ln,()=>e),te("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(jt(r)),Ee(e,t)}function gc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(he),n=[...new Set(t.concat(r))];return Ve({getKeys(){return n},getPropertyValue(i){let o=rs(i);if(e._runtimeDataModel.models[o]!==void 0)return _n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return _n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ns(e){return e[Ln]?e[Ln]:e}function is(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Gt(t)}f();c();p();d();m();f();c();p();d();m();function os({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(mt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(mt(u))}hc(e,l.needs)&&s.push(yc(l,Ee(e,s)))}return s.length>0||a.length>0?Ee(e,[...s,...a]):e}function hc(e,t){return t.every(r=>un(e,r))}function yc(e,t){return Ve(te(e.name,()=>e.compute(t)))}f();c();p();d();m();function Br({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=Br({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function as({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Br({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=he(l);return os({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}f();c();p();d();m();f();c();p();d();m();function ls(e){if(e instanceof le)return wc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ls(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=fs(o,l),a.args=s,cs(e,a,r,n+1)}})})}function ps(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return cs(e,t,s)}function ds(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ms(r,n,0,e):e(r)}}function ms(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=fs(i,l),ms(a,t,r+1,n)}})}var us=e=>e;function fs(e=us,t=us){return r=>e(t(r))}f();c();p();d();m();var gs=ee("prisma:client"),hs={Vercel:"vercel","Netlify CI":"netlify"};function ys({postinstall:e,ciName:t,clientVersion:r}){if(gs("checkPlatformCaching:postinstall",e),gs("checkPlatformCaching:ciName",t),e===!0&&t&&t in hs){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${hs[t]}-build`;throw console.error(n),new G(n,r)}}f();c();p();d();m();function ws(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Ec="Cloudflare-Workers",bc="node";function Es(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Ec?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===bc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var xc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function qn(){let e=Es();return{id:e,prettyName:xc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function gt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw qn().id==="workerd"?new G(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new G(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new G("error: Missing URL environment variable, value, or override.",n);return i}f();c();p();d();m();f();c();p();d();m();var Ur=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var ie=class extends Ur{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};f();c();p();d();m();f();c();p();d();m();function L(e,t){return{...e,isRetryable:t}}var ht=class extends ie{constructor(r){super("This request must be retried",L(r,!0));this.name="ForcedRetryError";this.code="P5001"}};N(ht,"ForcedRetryError");f();c();p();d();m();var je=class extends ie{constructor(r,n){super(r,L(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};N(je,"InvalidDatasourceError");f();c();p();d();m();var Je=class extends ie{constructor(r,n){super(r,L(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};N(Je,"NotImplementedYetError");f();c();p();d();m();f();c();p();d();m();var j=class extends ie{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var Ge=class extends j{constructor(r){super("Schema needs to be uploaded",L(r,!0));this.name="SchemaMissingError";this.code="P5005"}};N(Ge,"SchemaMissingError");f();c();p();d();m();f();c();p();d();m();var Bn="This request could not be understood by the server",Ht=class extends j{constructor(r,n,i){super(n||Bn,L(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};N(Ht,"BadRequestError");f();c();p();d();m();var Wt=class extends j{constructor(r,n){super("Engine not started: healthcheck timeout",L(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};N(Wt,"HealthcheckTimeoutError");f();c();p();d();m();var Kt=class extends j{constructor(r,n,i){super(n,L(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};N(Kt,"EngineStartupError");f();c();p();d();m();var zt=class extends j{constructor(r){super("Engine version is not supported",L(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};N(zt,"EngineVersionNotSupportedError");f();c();p();d();m();var Un="Request timed out",Yt=class extends j{constructor(r,n=Un){super(n,L(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};N(Yt,"GatewayTimeoutError");f();c();p();d();m();var Pc="Interactive transaction error",Zt=class extends j{constructor(r,n=Pc){super(n,L(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};N(Zt,"InteractiveTransactionError");f();c();p();d();m();var vc="Request parameters are invalid",Xt=class extends j{constructor(r,n=vc){super(n,L(r,!1));this.name="InvalidRequestError";this.code="P5011"}};N(Xt,"InvalidRequestError");f();c();p();d();m();var $n="Requested resource does not exist",er=class extends j{constructor(r,n=$n){super(n,L(r,!1));this.name="NotFoundError";this.code="P5003"}};N(er,"NotFoundError");f();c();p();d();m();var Vn="Unknown server error",yt=class extends j{constructor(r,n,i){super(n||Vn,L(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};N(yt,"ServerError");f();c();p();d();m();var jn="Unauthorized, check your connection string",tr=class extends j{constructor(r,n=jn){super(n,L(r,!1));this.name="UnauthorizedError";this.code="P5007"}};N(tr,"UnauthorizedError");f();c();p();d();m();var Jn="Usage exceeded, retry again later",rr=class extends j{constructor(r,n=Jn){super(n,L(r,!0));this.name="UsageExceededError";this.code="P5008"}};N(rr,"UsageExceededError");async function Tc(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function nr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Tc(e);if(n.type==="QueryEngineError")throw new K(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new yt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new Ge(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new zt(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Kt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new G(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Wt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Zt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Xt(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new tr(r,wt(jn,n));if(e.status===404)return new er(r,wt($n,n));if(e.status===429)throw new rr(r,wt(Jn,n));if(e.status===504)throw new Yt(r,wt(Un,n));if(e.status>=500)throw new yt(r,wt(Vn,n));if(e.status>=400)throw new Ht(r,wt(Bn,n))}function wt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}f();c();p();d();m();function bs(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}f();c();p();d();m();var Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function xs(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,u=g&63,r+=Ce[s]+Ce[a]+Ce[l]+Ce[u];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Ce[s]+Ce[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Ce[s]+Ce[a]+Ce[l]+"="),r}f();c();p();d();m();function Ps(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new G("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}f();c();p();d();m();function Cc(e){return e[0]*1e3+e[1]/1e6}function vs(e){return new Date(Cc(e))}f();c();p();d();m();var Ts={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};f();c();p();d();m();f();c();p();d();m();var ir=class extends ie{constructor(r,n){super(`Cannot fetch data from service: -${r}`,L(n,!0));this.name="RequestError";this.code="P5010"}};N(ir,"RequestError");async function Qe(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(Gn)(e,t)}catch(i){let o=i.message??"Unknown error";throw new ir(o,{clientVersion:n})}}function Rc(e){return{...e.headers,"Content-Type":"application/json"}}function Sc(e){return{method:e.method,headers:Rc(e)}}function Ic(e,t){return{text:()=>Promise.resolve(w.Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(w.Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new Qn(t.headers)}}async function Gn(e,t={}){let r=Oc("https"),n=Sc(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:g,headers:{location:h}}=u;g>=301&&g<=399&&h&&(h.startsWith("http")===!1?s(Gn(`${o}${h}`,t)):s(Gn(h,t))),u.on("data",v=>i.push(v)),u.on("end",()=>s(Ic(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var Oc=typeof zr<"u"?zr:()=>{},Qn=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var kc=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Cs=ee("prisma:client:dataproxyEngine");async function Dc(e,t){let r=Ts["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&kc.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),g=Mc(`<=${a}.${l}.${u}`),h=await Qe(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();Cs("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(A){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),A}return S.version}throw new Je("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function As(e,t){let r=await Dc(e,t);return Cs("version",r),r}function Mc(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Rs=3,Hn=ee("prisma:client:dataproxyEngine"),Wn=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},or=class{constructor(t){this.name="DataProxyEngine";Ps(t),this.config=t,this.env={...t.env,...typeof y<"u"?y.env:{}},this.inlineSchema=xs(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new Wn({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await As(t,this.config),Hn("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:vs(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Qe(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Hn("schema response status",r.status);let n=await nr(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Lr(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?Jt(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Hn("graphql response status",a.status),await this.handleError(await nr(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?Jt(l.errors[0],this.config.clientVersion,this.config.activeProvider):new se(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Qe(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await nr(l,this.clientVersion));let u=await l.json(),g=u.extensions;g&&this.propagateResponseExtensions(g);let h=u.id,v=u["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await nr(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=gt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new je(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new Je("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof ie)||!i.isRetryable)throw i;if(r>=Rs)throw i instanceof ht?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Rs} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await bs(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof Ge)throw await this.uploadSchema(),new ht({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ss({copyEngine:e=!0},t){let r;try{r=gt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&gr("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Ct(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s){let u;throw u=["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."],new z(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new or(t);throw new z("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}f();c();p();d();m();function $r({generator:e}){return e?.previewFeatures??[]}f();c();p();d();m();var Is=e=>({command:e});f();c();p();d();m();f();c();p();d();m();var Os=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);f();c();p();d();m();function Et(e){try{return ks(e,"fast")}catch{return ks(e,"slow")}}function ks(e,t){return JSON.stringify(e.map(r=>Ms(r,t)))}function Ms(e,t){return Array.isArray(e)?e.map(r=>Ms(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:nt(e)?{prisma__type:"date",prisma__value:e.toJSON()}:ve.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Nc(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Ns(e):e}function Nc(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ns(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Ds);let t={};for(let r of Object.keys(e))t[r]=Ds(e[r]);return t}function Ds(e){return typeof e=="bigint"?e.toString():Ns(e)}f();c();p();d();m();var Fc=["$connect","$disconnect","$on","$transaction","$use","$extends"],Fs=Fc;var _c=/^(\s*alter\s)/i,_s=ee("prisma:client");function Kn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&_c.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var zn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Bo(r))n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Et(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Os(r),i={values:Et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?_s(`prisma.${e}(${n}, ${i.values})`):_s(`prisma.${e}(${n})`),{query:n,parameters:i}},Ls={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new le(t,r)}},qs={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};f();c();p();d();m();function Yn(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Bs(r(o)):Bs(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Bs(e){return typeof e.then=="function"?e:Promise.resolve(e)}f();c();p();d();m();var Us={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Zn=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Us}};function $s(e){return e.includes("tracing")?new Zn:Us}f();c();p();d();m();function Vs(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}f();c();p();d();m();function js(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}f();c();p();d();m();var Vr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};f();c();p();d();m();var Qs=qe(Yi());f();c();p();d();m();function jr(e){return typeof e.batchRequestIdx=="number"}f();c();p();d();m();function Js(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(Xn(e.query.arguments)),t.push(Xn(e.query.selection)),t.join("")}function Xn(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${Xn(n)})`:r}).join(" ")})`}f();c();p();d();m();var Lc={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function ei(e){return Lc[e]}f();c();p();d();m();var Jr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iHe("bigint",r));case"bytes-array":return t.map(r=>He("bytes",r));case"decimal-array":return t.map(r=>He("decimal",r));case"datetime-array":return t.map(r=>He("datetime",r));case"date-array":return t.map(r=>He("date",r));case"time-array":return t.map(r=>He("time",r));default:return t}}function Gs(e){let t=[],r=qc(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>ei(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Uc(o),containsWrite:u,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Hs(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ei(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Js(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Bc(t),$c(t,i)||t instanceof Se)throw t;if(t instanceof K&&Vc(t)){let u=Ws(t.meta);Dr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=ot({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new K(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Ie(l,this.client._clientVersion);if(t instanceof se)throw new se(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof G)throw new G(l,this.client._clientVersion);if(t instanceof Ie)throw new Ie(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Qs.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Nn(o,s),l=i==="queryRaw"?Gs(a):It(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Uc(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Hs(e)};xe(e,"Unknown transaction kind")}}function Hs(e){return{id:e.id,payload:e.payload}}function $c(e,t){return jr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Vc(e){return e.code==="P2009"||e.code==="P2012"}function Ws(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Ws)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}f();c();p();d();m();var Ks="5.22.0";var zs=Ks;f();c();p();d();m();var ta=qe(wn());f();c();p();d();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var Ys=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Zs=["pretty","colorless","minimal"],Xs=["info","query","warn","error"],Jc={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=bt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!$r(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Ct()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!Zs.includes(e)){let t=bt(e,Zs);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Xs.includes(r)){let n=bt(r,Xs);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=bt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Qc(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(Hc(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=bt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ra(e,t){for(let[r,n]of Object.entries(e)){if(!Ys.includes(r)){let i=bt(r,Ys);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Jc[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function bt(e,t){if(t.length===0||typeof e!="string")return"";let r=Gc(e,t);return r?` Did you mean "${r}"?`:""}function Gc(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,ta.default)(e,i)}));r.sort((i,o)=>i.distancert(n)===t);if(r)return e[r]}function Hc(e,t){let r=pt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=kr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}f();c();p();d();m();function na(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!jr(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var _e=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Wc={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Kc=Symbol.for("prisma.client.transaction.id"),zc={id:0,nextId(){return++this.id}};function Yc(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Vr;this._createPrismaPromise=Yn();this.$extends=is;e=n?.__internal?.configOverride?.(e)??e,ys(e),n&&ra(n,e);let i=new fr().on("error",()=>{});this._extensions=dt.empty(),this._previewFeatures=$r(e),this._clientVersion=e.clientVersion??zs,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=$s(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&Tt.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&Tt.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Dn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new G(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new G("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&ee.enable("prisma:client");let h=Tt.resolve(e.dirname,e.relativePath);Ci.existsSync(h)||(h=e.dirname),_e("dirname",e.dirname),_e("relativePath",e.relativePath),_e("cwd",h);let v=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,datamodelPath:Tt.join(e.dirname,e.filename??"schema.prisma"),prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&js(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:ws(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:gt,getBatchRequestPayload:Lr,prismaGraphQLToJSError:Jt,PrismaClientUnknownRequestError:se,PrismaClientInitializationError:G,PrismaClientKnownRequestError:K,debug:ee("prisma:client:accelerateEngine"),engineVersion:oa.version,clientVersion:e.clientVersion}},_e("clientVersion",e.clientVersion),this._engine=Ss(e,this._engineConfig),this._requestHandler=new Gr(this,i),l.log)for(let S of l.log){let A=typeof S=="string"?S:S.emit==="stdout"?S.level:null;A&&this.$on(A,R=>{Rt.log(`${Rt.tags[A]??""}`,R.message||R.query)})}this._metrics=new $t(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Gt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ui()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:zn({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ia(n,i);return Kn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new z("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Kn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new z(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Is,callsite:Fe(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:zn({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ia(n,i));throw new z("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new z("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=zc.nextId(),s=Vs(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return na(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Gt(Ee(ns(this),[te("_appliedParent",()=>this._appliedParent._createItxClient(n)),te("_createPrismaPromise",()=>Yn(n)),te(Kc,()=>n.id),mt(Fs)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??Wc,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,M=>g(u,F=>(M?.end(),l(F))));let{runInTransaction:h,args:v,...S}=u,A={...n,...S};v&&(A.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete A.transaction;let R=await ps(this,A);return A.model?as({result:R,modelName:A.model,args:A.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=u?u(n):n;let A={name:"serialize"},R=this._tracingHelper.runInChildSpan(A,()=>Cn({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(_e("Prisma Client call:"),_e(`prisma.${i}(${Qo(n)})`),_e("Generated request:"),_e(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(A){throw A.clientVersion=this._clientVersion,A}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new z("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ia(e,t){return Zc(e)?[new le(e,t),Ls]:[e,qs]}function Zc(e){return Array.isArray(e)&&Array.isArray(e.raw)}f();c();p();d();m();var Xc=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function ep(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Xc.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}f();c();p();d();m();var export_warnEnvConflicts=void 0;export{Bi as Debug,ve as Decimal,Pi as Extensions,$t as MetricsClient,Se as NotFoundError,G as PrismaClientInitializationError,K as PrismaClientKnownRequestError,Ie as PrismaClientRustPanicError,se as PrismaClientUnknownRequestError,z as PrismaClientValidationError,Ti as Public,le as Sql,Vu as defineDmmfProperty,It as deserializeJsonResponse,$u as dmmfToRuntimeDataModel,zu as empty,Yc as getPrismaClient,qn as getRuntime,Ku as join,ep as makeStrictEnum,Ju as makeTypedQueryFactory,bn as objectEnumValues,Vo as raw,Cn as serializeJsonQuery,vn as skip,jo as sqltag,export_warnEnvConflicts as warnEnvConflicts,gr as warnOnce}; -//# sourceMappingURL=edge-esm.js.map diff --git a/mcp-server/node_modules/.prisma/client/runtime/edge.js b/mcp-server/node_modules/.prisma/client/runtime/edge.js deleted file mode 100644 index f8010b0..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/edge.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict";var fa=Object.create;var cr=Object.defineProperty;var ga=Object.getOwnPropertyDescriptor;var ha=Object.getOwnPropertyNames;var ya=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty;var Se=(e,t)=>()=>(e&&(t=e(e=0)),t);var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pr=(e,t)=>{for(var r in t)cr(e,r,{get:t[r],enumerable:!0})},oi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ha(t))!wa.call(e,i)&&i!==r&&cr(e,i,{get:()=>t[i],enumerable:!(n=ga(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?fa(ya(e)):{},oi(t||!e||!e.__esModule?cr(r,"default",{value:e,enumerable:!0}):r,e)),Ea=e=>oi(cr({},"__esModule",{value:!0}),e);var y,c=Se(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var b,p=Se(()=>{"use strict";b=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Se(()=>{"use strict";E=()=>{};E.prototype=E});var m=Se(()=>{"use strict"});var Ti=Le(Ye=>{"use strict";f();c();p();d();m();var ci=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ba=ci(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var M=A.indexOf("=");M===-1&&(M=R);var F=M===R?0:4-M%4;return[M,F]}function l(A){var R=a(A),M=R[0],F=R[1];return(M+F)*3/4-F}function u(A,R,M){return(R+M)*3/4-M}function g(A){var R,M=a(A),F=M[0],q=M[1],D=new n(u(A,F,q)),I=0,ae=q>0?F-4:F,J;for(J=0;J>16&255,D[I++]=R>>8&255,D[I++]=R&255;return q===2&&(R=r[A.charCodeAt(J)]<<2|r[A.charCodeAt(J+1)]>>4,D[I++]=R&255),q===1&&(R=r[A.charCodeAt(J)]<<10|r[A.charCodeAt(J+1)]<<4|r[A.charCodeAt(J+2)]>>2,D[I++]=R>>8&255,D[I++]=R&255),D}function h(A){return t[A>>18&63]+t[A>>12&63]+t[A>>6&63]+t[A&63]}function v(A,R,M){for(var F,q=[],D=R;Dae?ae:I+D));return F===1?(R=A[M-1],q.push(t[R>>2]+t[R<<4&63]+"==")):F===2&&(R=(A[M-2]<<8)+A[M-1],q.push(t[R>>10]+t[R>>4&63]+t[R<<2&63]+"=")),q.join("")}}),xa=ci(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,v=n?o-1:0,S=n?-1:1,A=t[r+v];for(v+=S,s=A&(1<<-h)-1,A>>=-h,h+=l;h>0;s=s*256+t[r+v],v+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+v],v+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(A?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(A?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=i?0:s-1,R=i?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+v>=1?r+=S/u:r+=S*Math.pow(2,1-v),r*u>=2&&(a++,u/=2),a+v>=h?(l=0,a=h):a+v>=1?(l=(r*u-1)*Math.pow(2,o),a=a+v):(l=r*Math.pow(2,v-1)*Math.pow(2,o),a=0));o>=8;t[n+A]=l&255,A+=R,l/=256,o-=8);for(a=a<0;t[n+A]=a&255,A+=R,a/=256,g-=8);t[n+A-R]|=M*128}}),tn=ba(),Ke=xa(),si=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ye.Buffer=T;Ye.SlowBuffer=Ra;Ye.INSPECT_MAX_BYTES=50;var dr=2147483647;Ye.kMaxLength=dr;T.TYPED_ARRAY_SUPPORT=Pa();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Pa(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function xe(e){if(e>dr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return on(e)}return pi(e,t,r)}T.poolSize=8192;function pi(e,t,r){if(typeof e=="string")return Ta(e,t);if(ArrayBuffer.isView(e))return Ca(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(de(e,ArrayBuffer)||e&&de(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(e,SharedArrayBuffer)||e&&de(e.buffer,SharedArrayBuffer)))return mi(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=Aa(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return pi(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function di(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function va(e,t,r){return di(e),e<=0?xe(e):t!==void 0?typeof r=="string"?xe(e).fill(t,r):xe(e).fill(t):xe(e)}T.alloc=function(e,t,r){return va(e,t,r)};function on(e){return di(e),xe(e<0?0:sn(e)|0)}T.allocUnsafe=function(e){return on(e)};T.allocUnsafeSlow=function(e){return on(e)};function Ta(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=fi(e,t)|0,n=xe(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function rn(e){let t=e.length<0?0:sn(e.length)|0,r=xe(t);for(let n=0;n=dr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dr.toString(16)+" bytes");return e|0}function Ra(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),de(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function fi(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||de(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return nn(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return vi(e).length;default:if(i)return n?-1:nn(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=fi;function Sa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return qa(this,t,r);case"utf8":case"utf-8":return hi(this,t,r);case"ascii":return _a(this,t,r);case"latin1":case"binary":return La(this,t,r);case"base64":return Na(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ba(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Be(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};si&&(T.prototype[si]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(de(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ln(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:ai(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ai(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ai(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return Ia(this,e,t,r);case"utf8":case"utf-8":return Oa(this,e,t,r);case"ascii":case"latin1":case"binary":return ka(this,e,t,r);case"base64":return Da(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ma(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Na(e,t,r){return t===0&&r===e.length?tn.fromByteArray(e):tn.fromByteArray(e.slice(t,r))}function hi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Fa(n)}var li=4096;function Fa(e){let t=e.length;if(t<=li)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||H(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Ie(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||H(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||H(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||H(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||H(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Ie(function(e){e=e>>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,ze(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||H(e,4,this.length),Ke.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||H(e,4,this.length),Ke.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||H(e,8,this.length),Ke.read(this,e,!1,52,8)};function re(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;re(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function yi(e,t,r,n,i){Pi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function wi(e,t,r,n,i){Pi(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Ie(function(e,t=0){return yi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Ie(function(e,t=0){return wi(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);re(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||re(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Ie(function(e,t=0){return yi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Ie(function(e,t=0){return wi(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ei(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bi(e,t,r,n,i){return t=+t,r=r>>>0,i||Ei(e,t,r,4,34028234663852886e22,-34028234663852886e22),Ke.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return bi(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return bi(this,e,t,!1,r)};function xi(e,t,r,n,i){return t=+t,r=r>>>0,i||Ei(e,t,r,8,17976931348623157e292,-17976931348623157e292),Ke.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return xi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return xi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=ui(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=ui(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ui(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ua(e,t,r){ze(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Tt(t,e.length-(r+1))}function Pi(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new We.ERR_OUT_OF_RANGE("value",a,e)}Ua(n,i,o)}function ze(e,t){if(typeof e!="number")throw new We.ERR_INVALID_ARG_TYPE(t,"number",e)}function Tt(e,t,r){throw Math.floor(e)!==e?(ze(e,r),new We.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var $a=/[^+/0-9A-Za-z-_]/g;function Va(e){if(e=e.split("=")[0],e=e.trim().replace($a,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nn(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function ja(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function vi(e){return tn.toByteArray(Va(e))}function mr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function de(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ln(e){return e!==e}var Ga=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Ie(e){return typeof BigInt>"u"?Qa:e}function Qa(){throw new Error("BigInt not supported")}});var w,f=Se(()=>{"use strict";w=qe(Ti())});function Ha(){return!1}var Wa,Ka,Si,Ii=Se(()=>{"use strict";f();c();p();d();m();Wa={},Ka={existsSync:Ha,promises:Wa},Si=Ka});function tl(...e){return e.join("/")}function rl(...e){return e.join("/")}var ji,nl,il,At,Ji=Se(()=>{"use strict";f();c();p();d();m();ji="/",nl={sep:ji},il={resolve:tl,posix:nl,join:rl,sep:ji},At=il});var yr,Qi=Se(()=>{"use strict";f();c();p();d();m();yr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Wi=Le((hm,Hi)=>{"use strict";f();c();p();d();m();Hi.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Yi=Le((Sm,zi)=>{"use strict";f();c();p();d();m();zi.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Xi=Le((Nm,Zi)=>{"use strict";f();c();p();d();m();var cl=Yi();Zi.exports=e=>typeof e=="string"?e.replace(cl(),""):e});var Tn=Le((Ih,yo)=>{"use strict";f();c();p();d();m();yo.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{Xu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Qo=Le(()=>{"use strict";f();c();p();d();m()});var rp={};pr(rp,{Debug:()=>mn,Decimal:()=>fe,Extensions:()=>un,MetricsClient:()=>ft,NotFoundError:()=>ve,PrismaClientInitializationError:()=>G,PrismaClientKnownRequestError:()=>W,PrismaClientRustPanicError:()=>Te,PrismaClientUnknownRequestError:()=>ne,PrismaClientValidationError:()=>K,Public:()=>cn,Sql:()=>oe,defineDmmfProperty:()=>Vo,deserializeJsonResponse:()=>rt,dmmfToRuntimeDataModel:()=>$o,empty:()=>Wo,getPrismaClient:()=>pa,getRuntime:()=>Gr,join:()=>Ho,makeStrictEnum:()=>da,makeTypedQueryFactory:()=>jo,objectEnumValues:()=>Dr,raw:()=>_n,serializeJsonQuery:()=>qr,skip:()=>Lr,sqltag:()=>Ln,warnEnvConflicts:()=>void 0,warnOnce:()=>Ot});module.exports=Ea(rp);f();c();p();d();m();var un={};pr(un,{defineExtension:()=>Ci,getExtensionContext:()=>Ai});f();c();p();d();m();f();c();p();d();m();function Ci(e){return typeof e=="function"?e:t=>t.$extends(e)}f();c();p();d();m();function Ai(e){return e}var cn={};pr(cn,{validator:()=>Ri});f();c();p();d();m();f();c();p();d();m();function Ri(...e){return t=>t}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var pn,Oi,ki,Di,Mi=!0;typeof y<"u"&&({FORCE_COLOR:pn,NODE_DISABLE_COLORS:Oi,NO_COLOR:ki,TERM:Di}=y.env||{},Mi=y.stdout&&y.stdout.isTTY);var za={enabled:!Oi&&ki==null&&Di!=="dumb"&&(pn!=null&&pn!=="0"||Mi)};function V(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!za.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Xp=V(0,0),fr=V(1,22),gr=V(2,22),ed=V(3,23),Ni=V(4,24),td=V(7,27),rd=V(8,28),nd=V(9,29),id=V(30,39),Ze=V(31,39),Fi=V(32,39),_i=V(33,39),Li=V(34,39),od=V(35,39),qi=V(36,39),sd=V(37,39),Bi=V(90,39),ad=V(90,39),ld=V(40,49),ud=V(41,49),cd=V(42,49),pd=V(43,49),dd=V(44,49),md=V(45,49),fd=V(46,49),gd=V(47,49);f();c();p();d();m();var Ya=100,Ui=["green","yellow","blue","magenta","cyan","red"],hr=[],$i=Date.now(),Za=0,dn=typeof y<"u"?y.env:{};globalThis.DEBUG??=dn.DEBUG??"";globalThis.DEBUG_COLORS??=dn.DEBUG_COLORS?dn.DEBUG_COLORS==="true":!0;var Ct={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Xa(e){let t={color:Ui[Za++%Ui.length],enabled:Ct.enabled(e),namespace:e,log:Ct.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&hr.push([o,...n]),hr.length>Ya&&hr.shift(),Ct.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:el(g)),u=`+${Date.now()-$i}ms`;$i=Date.now(),a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var mn=new Proxy(Xa,{get:(e,t)=>Ct[t],set:(e,t,r)=>Ct[t]=r});function el(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Vi(){hr.length=0}var ee=mn;f();c();p();d();m();f();c();p();d();m();var Gi="library";function Rt(e){let t=ol();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":Gi)}function ol(){let e=y.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}f();c();p();d();m();f();c();p();d();m();var Ue;(t=>{let e;(I=>(I.findUnique="findUnique",I.findUniqueOrThrow="findUniqueOrThrow",I.findFirst="findFirst",I.findFirstOrThrow="findFirstOrThrow",I.findMany="findMany",I.create="create",I.createMany="createMany",I.createManyAndReturn="createManyAndReturn",I.update="update",I.updateMany="updateMany",I.upsert="upsert",I.delete="delete",I.deleteMany="deleteMany",I.groupBy="groupBy",I.count="count",I.aggregate="aggregate",I.findRaw="findRaw",I.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Ue||={});var It={};pr(It,{error:()=>ll,info:()=>al,log:()=>sl,query:()=>ul,should:()=>Ki,tags:()=>St,warn:()=>fn});f();c();p();d();m();var St={error:Ze("prisma:error"),warn:_i("prisma:warn"),info:qi("prisma:info"),query:Li("prisma:query")},Ki={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function sl(...e){console.log(...e)}function fn(e,...t){Ki.warn()&&console.warn(`${St.warn} ${e}`,...t)}function al(e,...t){console.info(`${St.info} ${e}`,...t)}function ll(e,...t){console.error(`${St.error} ${e}`,...t)}function ul(e,...t){console.log(`${St.query} ${e}`,...t)}f();c();p();d();m();function Pe(e,t){throw new Error(t)}f();c();p();d();m();function gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}f();c();p();d();m();var hn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});f();c();p();d();m();function Xe(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}f();c();p();d();m();function yn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{eo.has(e)||(eo.add(e),fn(t,...r))};f();c();p();d();m();var W=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};N(W,"PrismaClientKnownRequestError");var ve=class extends W{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};N(ve,"NotFoundError");f();c();p();d();m();var G=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};N(G,"PrismaClientInitializationError");f();c();p();d();m();var Te=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};N(Te,"PrismaClientRustPanicError");f();c();p();d();m();var ne=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};N(ne,"PrismaClientUnknownRequestError");f();c();p();d();m();var K=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};N(K,"PrismaClientValidationError");f();c();p();d();m();f();c();p();d();m();var et=9e15,Me=1e9,wn="0123456789abcdef",Er="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",br="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",En={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-et,maxE:et,crypto:!1},oo,Ce,_=!0,Pr="[DecimalError] ",De=Pr+"Invalid argument: ",so=Pr+"Precision limit exceeded",ao=Pr+"crypto unavailable",lo="[object Decimal]",X=Math.floor,Q=Math.pow,pl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,dl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ml=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,uo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pe=1e7,k=7,fl=9007199254740991,gl=Er.length-1,bn=br.length-1,C={toStringTag:lo};C.absoluteValue=C.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)};C.ceil=function(){return O(new this.constructor(this),this.e+1,2)};C.clampedTo=C.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(De+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};C.comparedTo=C.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};C.cosine=C.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=hl(n,go(n,r)),n.precision=e,n.rounding=t,O(Ce==2||Ce==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};C.cubeRoot=C.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(_=!1,o=g.s*Q(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Y(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=Q(r,1/3),e=X((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=U(u.plus(g).times(a),u.plus(l),s+2,1),Y(a.d).slice(0,s)===(r=Y(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(O(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(O(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return _=!0,O(n,e,h.rounding,t)};C.decimalPlaces=C.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-X(this.e/k))*k,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};C.dividedBy=C.div=function(e){return U(this,new this.constructor(e))};C.dividedToIntegerBy=C.divToInt=function(e){var t=this,r=t.constructor;return O(U(t,new r(e),0,1,1),r.precision,r.rounding)};C.equals=C.eq=function(e){return this.cmp(e)===0};C.floor=function(){return O(new this.constructor(this),this.e+1,3)};C.greaterThan=C.gt=function(e){return this.cmp(e)>0};C.greaterThanOrEqualTo=C.gte=function(e){var t=this.cmp(e);return t==1||t===0};C.hyperbolicCosine=C.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/Tr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=tt(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return O(o,s.precision=r,s.rounding=n,!0)};C.hyperbolicSine=C.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=tt(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/Tr(5,e)),i=tt(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)};C.hyperbolicTangent=C.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,U(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};C.inverseCosine=C.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?ce(r,i,o):new r(0):new r(NaN):t.isZero()?ce(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=ce(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};C.inverseHyperbolicCosine=C.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,_=!1,r=r.times(r).minus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};C.inverseHyperbolicSine=C.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,_=!1,r=r.times(r).plus(1).sqrt().plus(r),_=!0,n.precision=e,n.rounding=t,r.ln())};C.inverseHyperbolicTangent=C.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=U(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};C.inverseSine=C.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=ce(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};C.inverseTangent=C.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=bn)return s=ce(g,h+4,v).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=bn)return s=ce(g,h+4,v).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/k+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(_=!1,t=Math.ceil(a/k),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};C.isNaN=function(){return!this.s};C.isNegative=C.isNeg=function(){return this.s<0};C.isPositive=C.isPos=function(){return this.s>0};C.isZero=function(){return!!this.d&&this.d[0]===0};C.lessThan=C.lt=function(e){return this.cmp(e)<0};C.lessThanOrEqualTo=C.lte=function(e){return this.cmp(e)<1};C.logarithm=C.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,v=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(_=!1,a=h+S,s=ke(u,a),n=t?xr(g,a+10):ke(e,a),l=U(s,n,a,1),kt(l.d,i=h,v))do if(a+=10,s=ke(u,a),n=t?xr(g,a+10):ke(e,a),l=U(s,n,a,1),!o){+Y(l.d).slice(i+1,i+15)+1==1e14&&(l=O(l,h+1,0));break}while(kt(l.d,i+=10,v));return _=!0,O(l,h,v)};C.minus=C.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.constructor;if(e=new A(e),!S.d||!e.d)return!S.s||!e.s?e=new A(NaN):S.d?e.s=-e.s:e=new A(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,v=e.d,a=A.precision,l=A.rounding,!u[0]||!v[0]){if(v[0])e.s=-e.s;else if(u[0])e=new A(S);else return new A(l===3?-0:0);return _?O(e,a,l):e}if(r=X(e.e/k),g=X(S.e/k),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=v.length):(t=v,r=g,s=u.length),n=Math.max(Math.ceil(a/k),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=v.length,h=n0;--n)u[s++]=0;for(n=v.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/pe|0,u[i]%=pe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=vr(u,n),_?O(e,a,l):e};C.precision=C.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(De+e);return r.d?(t=co(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};C.round=function(){var e=this,t=e.constructor;return O(new t(e),e.e+1,t.rounding)};C.sine=C.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+k,n.rounding=1,r=wl(n,go(n,r)),n.precision=e,n.rounding=t,O(Ce>2?r.neg():r,e,t,!0)):new n(NaN)};C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(_=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Y(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=X((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(U(s,o,r+2,1)).times(.5),Y(o.d).slice(0,r)===(t=Y(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(O(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(O(n,l+1,1),e=!n.times(n).eq(s));break}return _=!0,O(n,l,g.rounding,e)};C.tangent=C.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=U(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(Ce==2||Ce==4?r.neg():r,e,t,!0)):new n(NaN)};C.times=C.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,v=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!v||!v[0]||!S||!S[0])return new h(!e.s||v&&!v[0]&&!S||S&&!S[0]&&!v?NaN:!v||!S?e.s/0:e.s*0);for(r=X(g.e/k)+X(e.e/k),l=v.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%pe|0,t=a/pe|0;o[i]=(o[i]+t)%pe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=vr(o,r),_?O(e,h.precision,h.rounding):e};C.toBinary=function(e,t){return vn(this,2,e,t)};C.toDecimalPlaces=C.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ie(e,0,Me),t===void 0?t=n.rounding:ie(t,0,8),O(r,e+r.e+1,t))};C.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,!0):(ie(e,0,Me),t===void 0?t=i.rounding:ie(t,0,8),n=O(new i(n),e+1,t),r=me(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=me(i):(ie(e,0,Me),t===void 0?t=o.rounding:ie(t,0,8),n=O(new o(i),e+i.e+1,t),r=me(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};C.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,v,S=this,A=S.d,R=S.constructor;if(!A)return new R(S);if(u=r=new R(1),n=l=new R(0),t=new R(n),o=t.e=co(A)-S.e-1,s=o%k,t.d[0]=Q(10,s<0?k+s:s),e==null)e=o>0?t:u;else{if(a=new R(e),!a.isInt()||a.lt(u))throw Error(De+a);e=a.gt(t)?o>0?t:u:a}for(_=!1,a=new R(Y(A)),g=R.precision,R.precision=o=A.length*k*2;h=U(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=U(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,v=U(u,n,o,1).minus(S).abs().cmp(U(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],R.precision=g,_=!0,v};C.toHexadecimal=C.toHex=function(e,t){return vn(this,16,e,t)};C.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ie(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(_=!1,r=U(r,e,0,t,1).times(e),_=!0,O(r)):(e.s=r.s,r=e),r};C.toNumber=function(){return+this};C.toOctal=function(e,t){return vn(this,8,e,t)};C.toPower=C.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(Q(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return O(a,n,o);if(t=X(e.e/k),t>=e.d.length-1&&(r=u<0?-u:u)<=fl)return i=po(l,a,r,n),e.s<0?new l(1).div(i):O(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(_=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=xn(e.times(ke(a,n+r)),n),i.d&&(i=O(i,n+5,1),kt(i.d,n,o)&&(t=n+10,i=O(xn(e.times(ke(a,t+r)),t),t+5,1),+Y(i.d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0)))),i.s=s,_=!0,l.rounding=o,O(i,n,o))};C.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=me(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,Me),t===void 0?t=i.rounding:ie(t,0,8),n=O(new i(n),e,t),r=me(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};C.toSignificantDigits=C.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ie(e,1,Me),t===void 0?t=n.rounding:ie(t,0,8)),O(new n(r),e,t)};C.toString=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};C.truncated=C.trunc=function(){return O(new this.constructor(this),this.e+1,1)};C.valueOf=C.toJSON=function(){var e=this,t=e.constructor,r=me(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Y(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(De+e)}function kt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=k,i=0):(i=Math.ceil((t+1)/k),t%=k),o=Q(10,k-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==Q(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==Q(10,t-3)-1,s}function wr(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function hl(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/Tr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=tt(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var U=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,v,S,A,R,M,F,q,D,I,ae,J,Zr,ar,vt,Xr,ue,lr,ur=n.constructor,en=n.s==i.s?1:-1,Z=n.d,$=i.d;if(!Z||!Z[0]||!$||!$[0])return new ur(!n.s||!i.s||(Z?$&&Z[0]==$[0]:!$)?NaN:Z&&Z[0]==0||!$?en*0:en/0);for(l?(S=1,g=n.e-i.e):(l=pe,S=k,g=X(n.e/S)-X(i.e/S)),ue=$.length,vt=Z.length,F=new ur(en),q=F.d=[],h=0;$[h]==(Z[h]||0);h++);if($[h]>(Z[h]||0)&&g--,o==null?(J=o=ur.precision,s=ur.rounding):a?J=o+(n.e-i.e)+1:J=o,J<0)q.push(1),A=!0;else{if(J=J/S+2|0,h=0,ue==1){for(v=0,$=$[0],J++;(h1&&($=e($,v,l),Z=e(Z,v,l),ue=$.length,vt=Z.length),ar=ue,D=Z.slice(0,ue),I=D.length;I=l/2&&++Xr;do v=0,u=t($,D,ue,I),u<0?(ae=D[0],ue!=I&&(ae=ae*l+(D[1]||0)),v=ae/Xr|0,v>1?(v>=l&&(v=l-1),R=e($,v,l),M=R.length,I=D.length,u=t(R,D,M,I),u==1&&(v--,r(R,ue=10;v/=10)h++;F.e=h+g*S-1,O(F,a?o+F.e+1:o,s,A)}return F}}();function O(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=k,s=t,g=h[v=0],l=g/Q(10,i-s-1)%10|0;else if(v=Math.ceil((o+1)/k),a=h.length,v>=a)if(n){for(;a++<=v;)h.push(0);g=l=0,i=1,o%=k,s=o-k+1}else break e;else{for(g=a=h[v],i=1;a>=10;a/=10)i++;o%=k,s=o-k+i,l=s<0?0:g/Q(10,i-s-1)%10|0}if(n=n||t<0||h[v+1]!==void 0||(s<0?g:g%Q(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/Q(10,i-s):0:h[v-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=Q(10,(k-t%k)%k),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=v,a=1,v--):(h.length=v+1,a=Q(10,k-o),h[v]=s>0?(g/Q(10,i-s)%Q(10,s)|0)*a:0),u)for(;;)if(v==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==pe&&(h[0]=1));break}else{if(h[v]+=a,h[v]!=pe)break;h[v--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return _&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+Oe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Oe(-i-1)+o,r&&(n=r-s)>0&&(o+=Oe(n))):i>=s?(o+=Oe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Oe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Oe(n))),o}function vr(e,t){var r=e[0];for(t*=k;r>=10;r/=10)t++;return t}function xr(e,t,r){if(t>gl)throw _=!0,r&&(e.precision=r),Error(so);return O(new e(Er),t,1,!0)}function ce(e,t,r){if(t>bn)throw Error(so);return O(new e(br),t,r,!0)}function co(e){var t=e.length-1,r=t*k+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Oe(e){for(var t="";e--;)t+="0";return t}function po(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/k+4);for(_=!1;;){if(r%2&&(o=o.times(t),no(o.d,s)&&(i=!0)),r=X(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),no(t.d,s)}return _=!0,o}function ro(e){return e.d[e.d.length-1]&1}function mo(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(_=!1,l=A):l=t,a=new v(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(Q(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new v(1),v.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++g),a=s.plus(U(o,r,l,1)),Y(a.d).slice(0,l)===Y(s.d).slice(0,l)){for(i=h;i--;)s=O(s.times(s),l,1);if(t==null)if(u<3&&kt(s.d,l-n,S,u))v.precision=l+=10,r=o=a=new v(1),g=0,u++;else return O(s,v.precision=A,S,_=!0);else return v.precision=A,s}s=a}}function ke(e,t){var r,n,i,o,s,a,l,u,g,h,v,S=1,A=10,R=e,M=R.d,F=R.constructor,q=F.rounding,D=F.precision;if(R.s<0||!M||!M[0]||!R.e&&M[0]==1&&M.length==1)return new F(M&&!M[0]?-1/0:R.s!=1?NaN:M?0:R);if(t==null?(_=!1,g=D):g=t,F.precision=g+=A,r=Y(M),n=r.charAt(0),Math.abs(o=R.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)R=R.times(e),r=Y(R.d),n=r.charAt(0),S++;o=R.e,n>1?(R=new F("0."+r),o++):R=new F(n+"."+r.slice(1))}else return u=xr(F,g+2,D).times(o+""),R=ke(new F(n+"."+r.slice(1)),g-A).plus(u),F.precision=D,t==null?O(R,D,q,_=!0):R;for(h=R,l=s=R=U(R.minus(1),R.plus(1),g,1),v=O(R.times(R),g,1),i=3;;){if(s=O(s.times(v),g,1),u=l.plus(U(s,new F(i),g,1)),Y(u.d).slice(0,g)===Y(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(xr(F,g+2,D).times(o+""))),l=U(l,new F(S),g,1),t==null)if(kt(l.d,g-A,q,a))F.precision=g+=A,u=s=R=U(h.minus(1),h.plus(1),g,1),v=O(R.times(R),g,1),i=a=1;else return O(l,F.precision=D,q,_=!0);else return F.precision=D,l;l=u,i+=2}}function fo(e){return String(e.s*e.s/0)}function Pn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%k,r<0&&(n+=k),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),uo.test(t))return Pn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(dl.test(t))r=16,t=t.toLowerCase();else if(pl.test(t))r=2;else if(ml.test(t))r=8;else throw Error(De+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=po(n,new n(r),o,o*2)),u=wr(t,r,pe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=vr(u,g),e.d=u,_=!1,s&&(e=U(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?Q(2,l):$e.pow(2,l))),_=!0,e)}function wl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:tt(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/Tr(5,r)),t=tt(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function tt(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/k);for(_=!1,l=r.times(r),a=new e(n);;){if(s=U(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=U(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return _=!0,s.d.length=h+1,s}function Tr(e,t){for(var r=e;--t;)r*=e;return r}function go(e,t){var r,n=t.s<0,i=ce(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ce=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ce=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ce=ro(r)?n?2:3:n?4:1,t;Ce=ro(r)?n?1:4:n?3:2}return t.minus(i).abs()}function vn(e,t,r,n){var i,o,s,a,l,u,g,h,v,S=e.constructor,A=r!==void 0;if(A?(ie(r,1,Me),n===void 0?n=S.rounding:ie(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=fo(e);else{for(g=me(e),s=g.indexOf("."),A?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),v=new S(1),v.e=g.length-s,v.d=wr(me(v),10,i),v.e=v.d.length),h=wr(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=A?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=U(e,v,r,n,0,i),h=e.d,o=e.e,u=oo),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=wr(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function El(e){return new this(e).abs()}function bl(e){return new this(e).acos()}function xl(e){return new this(e).acosh()}function Pl(e,t){return new this(e).plus(t)}function vl(e){return new this(e).asin()}function Tl(e){return new this(e).asinh()}function Cl(e){return new this(e).atan()}function Al(e){return new this(e).atanh()}function Rl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ce(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ce(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ce(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(U(e,t,o,1)),t=ce(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(U(e,t,o,1)),r}function Sl(e){return new this(e).cbrt()}function Il(e){return O(e=new this(e),e.e+1,2)}function Ol(e,t,r){return new this(e).clamp(t,r)}function kl(e){if(!e||typeof e!="object")throw Error(Pr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,Me,"rounding",0,8,"toExpNeg",-et,0,"toExpPos",0,et,"maxE",0,et,"minE",-et,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(De+r+": "+n);if(r="crypto",i&&(this[r]=En[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(ao);else this[r]=!1;else throw Error(De+r+": "+n);return this}function Dl(e){return new this(e).cos()}function Ml(e){return new this(e).cosh()}function ho(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,io(o)){u.s=o.s,_?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;_?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(ao);else for(;o=10;i/=10)n++;ne.highlight()},lu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function uu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function cu({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],l=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${l}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${l}`)),t&&a.push(s.underline(pu(t))),i){a.push("");let u=[i.toString()];o&&(u.push(o),u.push(s.dim(")"))),a.push(u.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function pu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function st(e){let t=e.showColors?au:lu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=uu(e),cu(r,t)}f();c();p();d();m();var vo=qe(Tn());f();c();p();d();m();function bo(e,t,r){let n=xo(e),i=du(n),o=fu(i);o?Ar(o,t,r):t.addErrorMessage(()=>"Unknown error")}function xo(e){return e.errors.flatMap(t=>t.kind==="Union"?xo(t):[t])}function du(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:mu(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function mu(e,t){return[...new Set(e.concat(t))]}function fu(e){return yn(e,(t,r)=>{let n=wo(t),i=wo(r);return n!==i?n-i:Eo(t)-Eo(r)})}function wo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Eo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}f();c();p();d();m();var le=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};f();c();p();d();m();f();c();p();d();m();var at=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};f();c();p();d();m();f();c();p();d();m();var Rr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};f();c();p();d();m();var Sr=e=>e,Ir={bold:Sr,red:Sr,green:Sr,dim:Sr,enabled:!1},Po={bold:fr,red:Ze,green:Fi,dim:gr,enabled:!0},lt={write(e){e.writeLine(",")}};f();c();p();d();m();var ge=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};f();c();p();d();m();var Ne=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var ut=class extends Ne{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Rr(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new ge("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(lt,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ct=class e extends Ne{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof ut&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new ge("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(lt,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};f();c();p();d();m();var z=class extends Ne{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new ge(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};f();c();p();d();m();var Dt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(lt,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function Ar(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":hu(e,t);break;case"IncludeOnScalar":yu(e,t);break;case"EmptySelection":wu(e,t,r);break;case"UnknownSelectionField":Pu(e,t);break;case"InvalidSelectionValue":vu(e,t);break;case"UnknownArgument":Tu(e,t);break;case"UnknownInputField":Cu(e,t);break;case"RequiredArgumentMissing":Au(e,t);break;case"InvalidArgumentType":Ru(e,t);break;case"InvalidArgumentValue":Su(e,t);break;case"ValueTooLarge":Iu(e,t);break;case"SomeFieldsMissing":Ou(e,t);break;case"TooManyFieldsGiven":ku(e,t);break;case"Union":bo(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function hu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function yu(e,t){let[r,n]=Mt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new le(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Nt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function wu(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Eu(e,t,i);return}if(n.hasField("select")){bu(e,t);return}}if(r?.[nt(e.outputType.name)]){xu(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Eu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new le(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function bu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Ao(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Nt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function xu(e,t){let r=new Dt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new le("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=Mt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ct;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Pu(e,t){let r=Ro(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Ao(n,e.outputType);break;case"include":Du(n,e.outputType);break;case"omit":Mu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Nt(n)),i.join(" ")})}function vu(e,t){let r=Ro(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Tu(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Nu(n,e.arguments)),t.addErrorMessage(i=>To(i,r,e.arguments.map(o=>o.name)))}function Cu(e,t){let[r,n]=Mt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&So(o,e.inputType)}t.addErrorMessage(o=>To(o,n,e.inputType.fields.map(s=>s.name)))}function To(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=_u(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Nt(e)),n.join(" ")}function Au(e,t){let r;t.addErrorMessage(l=>r?.value instanceof z&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=Mt(e.argumentPath),s=new Dt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new le(o,s).makeRequired())}else{let l=e.inputTypes.map(Co).join(" | ");a.addSuggestion(new le(o,l).makeRequired())}}function Co(e){return e.kind==="list"?`${Co(e.elementType)}[]`:e.name}function Ru(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Or("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Su(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Or("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Iu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof z&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Ou(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&So(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Or("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Nt(i)),o.join(" ")})}function ku(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Or("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Ao(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,"true"))}function Du(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new le(r.name,"true"))}function Mu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new le(r.name,"true"))}function Nu(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Ro(e,t){let[r,n]=Mt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function So(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new le(r.name,r.typeNames.join(" | ")))}function Mt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Nt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Or(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Fu=3;function _u(e,t){let r=1/0,n;for(let i of t){let o=(0,vo.default)(e,i);o>Fu||o`}};function pt(e){return e instanceof Ft}f();c();p();d();m();var kr=Symbol(),Cn=new WeakMap,Ae=class{constructor(t){t===kr?Cn.set(this,`Prisma.${this._getName()}`):Cn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Cn.get(this)}},_t=class extends Ae{_getNamespace(){return"NullTypes"}},Lt=class extends _t{};An(Lt,"DbNull");var qt=class extends _t{};An(qt,"JsonNull");var Bt=class extends _t{};An(Bt,"AnyNull");var Dr={classes:{DbNull:Lt,JsonNull:qt,AnyNull:Bt},instances:{DbNull:new Lt(kr),JsonNull:new qt(kr),AnyNull:new Bt(kr)}};function An(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}f();c();p();d();m();var Oo=": ",Mr=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Oo.length}write(t){let r=new ge(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Oo).write(this.value)}};var Rn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function dt(e){return new Rn(ko(e))}function ko(e){let t=new ct;for(let[r,n]of Object.entries(e)){let i=new Mr(r,Do(n));t.addField(i)}return t}function Do(e){if(typeof e=="string")return new z(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new z(String(e));if(typeof e=="bigint")return new z(`${e}n`);if(e===null)return new z("null");if(e===void 0)return new z("undefined");if(ot(e))return new z(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new z(`Buffer.alloc(${e.byteLength})`):new z(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Cr(e)?e.toISOString():"Invalid Date";return new z(`new Date("${t}")`)}return e instanceof Ae?new z(`Prisma.${e._getName()}`):pt(e)?new z(`prisma.${Io(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Lu(e):typeof e=="object"?ko(e):new z(Object.prototype.toString.call(e))}function Lu(e){let t=new ut;for(let r of e)t.addItem(Do(r));return t}function Nr(e,t){let r=t==="pretty"?Po:Ir,n=e.renderAllMessages(r),i=new at(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Fr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=dt(e);for(let h of t)Ar(h,a,s);let{message:l,args:u}=Nr(a,r),g=st({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new K(g,{clientVersion:o})}f();c();p();d();m();f();c();p();d();m();var he=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};f();c();p();d();m();function Ut(e){let t;return{get(){return t||(t={value:e()}),t.value}}}f();c();p();d();m();function ye(e){return e.replace(/^./,t=>t.toLowerCase())}f();c();p();d();m();function No(e,t,r){let n=ye(r);return!t.result||!(t.result.$allModels||t.result[n])?e:qu({...e,...Mo(t.name,e,t.result.$allModels),...Mo(t.name,e,t.result[n])})}function qu(e){let t=new he,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Xe(e,n=>({...n,needs:r(n.name,new Set)}))}function Mo(e,t,r){return r?Xe(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Bu(t,o,i)})):{}}function Bu(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Fo(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function _o(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var _r=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new he;this.modelExtensionsCache=new he;this.queryCallbacksCache=new he;this.clientExtensions=Ut(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=Ut(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>No(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=ye(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},mt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new _r(t))}isEmpty(){return this.head===void 0}append(t){return new e(new _r(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};f();c();p();d();m();f();c();p();d();m();var Lo=Symbol(),$t=class{constructor(t){if(t!==Lo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Lr:t}},Lr=new $t(Lo);function we(e){return e instanceof $t}var Uu={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},qo="explicitly `undefined` values are not allowed";function qr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=mt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Sn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:Uu[t],query:Vt(r,h)}}function Vt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:Uo(r,n),selection:$u(e,t,i,n)}}function $u(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),Gu(e,n)):Vu(n,t,r)}function Vu(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&ju(n,t,e),e.isPreviewFeatureOn("omitApi")&&Ju(n,r,e),n}function ju(e,t,r){for(let[n,i]of Object.entries(t)){if(we(i))continue;let o=r.nestSelection(n);if(In(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Vt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Vt(i,o)}}function Ju(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=_o(i,n);for(let[s,a]of Object.entries(o)){if(we(a))continue;In(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function Gu(e,t){let r={},n=t.getComputedFields(),i=Fo(e,n);for(let[o,s]of Object.entries(i)){if(we(s))continue;let a=t.nestSelection(o);In(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||we(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Vt({},a):r[o]=!0;continue}r[o]=Vt(s,a)}}return r}function Bo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(it(e)){if(Cr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(pt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return Qu(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(Hu(e))return e.values;if(ot(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Ae){if(e!==Dr.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Wu(e))return e.toJSON();if(typeof e=="object")return Uo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Uo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);we(i)||(i!==void 0?r[n]=Bo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:qo}))}return r}function Qu(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[nt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Pe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};f();c();p();d();m();var ft=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};f();c();p();d();m();function $o(e){return{models:On(e.models),enums:On(e.enums),types:On(e.types)}}function On(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function Vo(e,t){let r=Ut(()=>Ku(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function Ku(e){return{datamodel:{models:kn(e.models),enums:kn(e.enums),types:kn(e.types)}}}function kn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}f();c();p();d();m();var Dn=new WeakMap,Br="$$PrismaTypedSql",Mn=class{constructor(t,r){Dn.set(this,{sql:t,values:r}),Object.defineProperty(this,Br,{value:Br})}get sql(){return Dn.get(this).sql}get values(){return Dn.get(this).values}};function jo(e){return(...t)=>new Mn(e,t)}function Jo(e){return e!=null&&e[Br]===Br}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function jt(e){return{ok:!1,error:e,map(){return jt(e)},flatMap(){return jt(e)}}}var Nn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Fn=e=>{let t=new Nn,r=Ee(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ee(t,e.queryRaw.bind(e)),executeRaw:Ee(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>zu(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=Zu(t,e.getConnectionInfo.bind(e))),n},zu=(e,t)=>{let r=Ee(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ee(e,t.queryRaw.bind(t)),executeRaw:Ee(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>Yu(e,o))}},Yu=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ee(e,t.queryRaw.bind(t)),executeRaw:Ee(e,t.executeRaw.bind(t)),commit:Ee(e,t.commit.bind(t)),rollback:Ee(e,t.rollback.bind(t))});function Ee(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return jt({kind:"GenericJs",id:i})}}}function Zu(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return jt({kind:"GenericJs",id:i})}}}var ca=qe(Go());var iD=qe(Qo());Qi();Ii();Ji();f();c();p();d();m();var oe=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}f();c();p();d();m();f();c();p();d();m();var Ur={enumerable:!0,configurable:!0,writable:!0};function $r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Ur,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Ko=Symbol.for("nodejs.util.inspect.custom");function be(e,t){let r=ec(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=zo(Reflect.ownKeys(o),r),a=zo(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Ur,...l?.getPropertyDescriptor(s)}:Ur:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[Ko]=function(){let o={...this};return delete o[Ko],o},i}function ec(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function zo(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}f();c();p();d();m();function gt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}f();c();p();d();m();function Vr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}f();c();p();d();m();function Yo(e){if(e===void 0)return"";let t=dt(e);return new at(0,{colors:Ir}).write(t).toString()}f();c();p();d();m();var tc="P2037";function Gt({error:e,user_facing_error:t},r,n){return t.error_code?new W(rc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new ne(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function rc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===tc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var qn=class{getLocation(){return null}};function Fe(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new qn}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Zo={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function ht(e={}){let t=ic(e);return Object.entries(t).reduce((n,[i,o])=>(Zo[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function ic(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function jr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Xo(e,t){let r=jr(e);return t({action:"aggregate",unpacker:r,argsMapper:ht})(e)}f();c();p();d();m();function oc(e={}){let{select:t,...r}=e;return typeof t=="object"?ht({...r,_count:t}):ht({...r,_count:{_all:!0}})}function sc(e={}){return typeof e.select=="object"?t=>jr(e)(t)._count:t=>jr(e)(t)._count._all}function es(e,t){return t({action:"count",unpacker:sc(e),argsMapper:oc})(e)}f();c();p();d();m();function ac(e={}){let t=ht(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function lc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function ts(e,t){return t({action:"groupBy",unpacker:lc(e),argsMapper:ac})(e)}function rs(e,t,r){if(t==="aggregate")return n=>Xo(n,r);if(t==="count")return n=>es(n,r);if(t==="groupBy")return n=>ts(n,r)}f();c();p();d();m();function ns(e,t){let r=t.fields.filter(i=>!i.relationName),n=hn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Ft(e,o,s.type,s.isList,s.kind==="enum")},...$r(Object.keys(n))})}f();c();p();d();m();f();c();p();d();m();var is=e=>Array.isArray(e)?e:e.split("."),Bn=(e,t)=>is(t).reduce((r,n)=>r&&r[n],e),os=(e,t,r)=>is(t).reduceRight((n,i,o,s)=>Object.assign({},Bn(e,s.slice(0,o)),{[i]:n}),r);function uc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function cc(e,t,r){return t===void 0?e??{}:os(t,r,e||!0)}function Un(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Fe(e._errorFormat),g=uc(n,i),h=cc(l,o,g),v=r({dataPath:g,callsite:u})(h),S=pc(e,t);return new Proxy(v,{get(A,R){if(!S.includes(R))return A[R];let F=[a[R].type,r,R],q=[g,h];return Un(e,...F,...q)},...$r([...S,...Object.getOwnPropertyNames(v)])})}}function pc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}f();c();p();d();m();function ss(e,t,r,n){return e===Ue.ModelAction.findFirstOrThrow||e===Ue.ModelAction.findUniqueOrThrow?dc(t,r,n):n}function dc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=st({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new K(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof W&&o.code==="P2025"?new ve(`No ${e} found`,t):o})}}var mc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],fc=["aggregate","count","groupBy"];function $n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[gc(e,t),yc(e,t),Jt(r),te("name",()=>t),te("$name",()=>t),te("$parent",()=>e._appliedParent)];return be({},n)}function gc(e,t){let r=ye(t),n=Object.keys(Ue.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=ss(o,t,e._clientVersion,s);let a=l=>u=>{let g=Fe(e._errorFormat);return e._createPrismaPromise(h=>{let v={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...v,...l})})};return mc.includes(o)?Un(e,t,a):hc(i)?rs(e,i,a):a({})}}}function hc(e){return fc.includes(e)}function yc(e,t){return Ve(te("fields",()=>{let r=e._runtimeDataModel.models[t];return ns(t,r)}))}f();c();p();d();m();function as(e){return e.replace(/^./,t=>t.toUpperCase())}var Vn=Symbol();function Qt(e){let t=[wc(e),te(Vn,()=>e),te("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(Jt(r)),be(e,t)}function wc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(ye),n=[...new Set(t.concat(r))];return Ve({getKeys(){return n},getPropertyValue(i){let o=as(i);if(e._runtimeDataModel.models[o]!==void 0)return $n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return $n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ls(e){return e[Vn]?e[Vn]:e}function us(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Qt(t)}f();c();p();d();m();f();c();p();d();m();function cs({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(gt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(gt(u))}Ec(e,l.needs)&&s.push(bc(l,be(e,s)))}return s.length>0||a.length>0?be(e,[...s,...a]):e}function Ec(e,t){return t.every(r=>gn(e,r))}function bc(e,t){return Ve(te(e.name,()=>e.compute(t)))}f();c();p();d();m();function Jr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=Jr({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function ds({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:Jr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=ye(l);return cs({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}f();c();p();d();m();f();c();p();d();m();function ms(e){if(e instanceof oe)return xc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ms(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=Es(o,l),a.args=s,gs(e,a,r,n+1)}})})}function hs(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return gs(e,t,s)}function ys(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ws(r,n,0,e):e(r)}}function ws(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=Es(i,l),ws(a,t,r+1,n)}})}var fs=e=>e;function Es(e=fs,t=fs){return r=>e(t(r))}f();c();p();d();m();var bs=ee("prisma:client"),xs={Vercel:"vercel","Netlify CI":"netlify"};function Ps({postinstall:e,ciName:t,clientVersion:r}){if(bs("checkPlatformCaching:postinstall",e),bs("checkPlatformCaching:ciName",t),e===!0&&t&&t in xs){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${xs[t]}-build`;throw console.error(n),new G(n,r)}}f();c();p();d();m();function vs(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();var Pc="Cloudflare-Workers",vc="node";function Ts(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Pc?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===vc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Tc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Gr(){let e=Ts();return{id:e,prettyName:Tc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}f();c();p();d();m();f();c();p();d();m();f();c();p();d();m();function yt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Gr().id==="workerd"?new G(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new G(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new G("error: Missing URL environment variable, value, or override.",n);return i}f();c();p();d();m();f();c();p();d();m();var Qr=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Qr{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};f();c();p();d();m();f();c();p();d();m();function L(e,t){return{...e,isRetryable:t}}var wt=class extends se{constructor(r){super("This request must be retried",L(r,!0));this.name="ForcedRetryError";this.code="P5001"}};N(wt,"ForcedRetryError");f();c();p();d();m();var je=class extends se{constructor(r,n){super(r,L(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};N(je,"InvalidDatasourceError");f();c();p();d();m();var Je=class extends se{constructor(r,n){super(r,L(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};N(Je,"NotImplementedYetError");f();c();p();d();m();f();c();p();d();m();var j=class extends se{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var Ge=class extends j{constructor(r){super("Schema needs to be uploaded",L(r,!0));this.name="SchemaMissingError";this.code="P5005"}};N(Ge,"SchemaMissingError");f();c();p();d();m();f();c();p();d();m();var jn="This request could not be understood by the server",Wt=class extends j{constructor(r,n,i){super(n||jn,L(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};N(Wt,"BadRequestError");f();c();p();d();m();var Kt=class extends j{constructor(r,n){super("Engine not started: healthcheck timeout",L(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};N(Kt,"HealthcheckTimeoutError");f();c();p();d();m();var zt=class extends j{constructor(r,n,i){super(n,L(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};N(zt,"EngineStartupError");f();c();p();d();m();var Yt=class extends j{constructor(r){super("Engine version is not supported",L(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};N(Yt,"EngineVersionNotSupportedError");f();c();p();d();m();var Jn="Request timed out",Zt=class extends j{constructor(r,n=Jn){super(n,L(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};N(Zt,"GatewayTimeoutError");f();c();p();d();m();var Cc="Interactive transaction error",Xt=class extends j{constructor(r,n=Cc){super(n,L(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};N(Xt,"InteractiveTransactionError");f();c();p();d();m();var Ac="Request parameters are invalid",er=class extends j{constructor(r,n=Ac){super(n,L(r,!1));this.name="InvalidRequestError";this.code="P5011"}};N(er,"InvalidRequestError");f();c();p();d();m();var Gn="Requested resource does not exist",tr=class extends j{constructor(r,n=Gn){super(n,L(r,!1));this.name="NotFoundError";this.code="P5003"}};N(tr,"NotFoundError");f();c();p();d();m();var Qn="Unknown server error",Et=class extends j{constructor(r,n,i){super(n||Qn,L(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};N(Et,"ServerError");f();c();p();d();m();var Hn="Unauthorized, check your connection string",rr=class extends j{constructor(r,n=Hn){super(n,L(r,!1));this.name="UnauthorizedError";this.code="P5007"}};N(rr,"UnauthorizedError");f();c();p();d();m();var Wn="Usage exceeded, retry again later",nr=class extends j{constructor(r,n=Wn){super(n,L(r,!0));this.name="UsageExceededError";this.code="P5008"}};N(nr,"UsageExceededError");async function Rc(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function ir(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await Rc(e);if(n.type==="QueryEngineError")throw new W(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Et(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new Ge(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new Yt(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new zt(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new G(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Kt(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Xt(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new er(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new rr(r,bt(Hn,n));if(e.status===404)return new tr(r,bt(Gn,n));if(e.status===429)throw new nr(r,bt(Wn,n));if(e.status===504)throw new Zt(r,bt(Jn,n));if(e.status>=500)throw new Et(r,bt(Qn,n));if(e.status>=400)throw new Wt(r,bt(jn,n))}function bt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}f();c();p();d();m();function Cs(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}f();c();p();d();m();var Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function As(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,g;for(let h=0;h>18,a=(g&258048)>>12,l=(g&4032)>>6,u=g&63,r+=Re[s]+Re[a]+Re[l]+Re[u];return i==1?(g=t[o],s=(g&252)>>2,a=(g&3)<<4,r+=Re[s]+Re[a]+"=="):i==2&&(g=t[o]<<8|t[o+1],s=(g&64512)>>10,a=(g&1008)>>4,l=(g&15)<<2,r+=Re[s]+Re[a]+Re[l]+"="),r}f();c();p();d();m();function Rs(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new G("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}f();c();p();d();m();function Sc(e){return e[0]*1e3+e[1]/1e6}function Ss(e){return new Date(Sc(e))}f();c();p();d();m();var Is={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};f();c();p();d();m();f();c();p();d();m();var or=class extends se{constructor(r,n){super(`Cannot fetch data from service: -${r}`,L(n,!0));this.name="RequestError";this.code="P5010"}};N(or,"RequestError");async function Qe(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(Kn)(e,t)}catch(i){let o=i.message??"Unknown error";throw new or(o,{clientVersion:n})}}function Oc(e){return{...e.headers,"Content-Type":"application/json"}}function kc(e){return{method:e.method,headers:Oc(e)}}function Dc(e,t){return{text:()=>Promise.resolve(w.Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(w.Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new zn(t.headers)}}async function Kn(e,t={}){let r=Mc("https"),n=kc(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:g,headers:{location:h}}=u;g>=301&&g<=399&&h&&(h.startsWith("http")===!1?s(Kn(`${o}${h}`,t)):s(Kn(h,t))),u.on("data",v=>i.push(v)),u.on("end",()=>s(Dc(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var Mc=typeof require<"u"?require:()=>{},zn=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var Nc=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Os=ee("prisma:client:dataproxyEngine");async function Fc(e,t){let r=Is["@prisma/engines-version"],n=t.clientVersion??"unknown";if(y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return y.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&Nc.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),g=_c(`<=${a}.${l}.${u}`),h=await Qe(g,{clientVersion:n});if(!h.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${h.status} ${h.statusText}, response body: ${await h.text()||""}`);let v=await h.text();Os("length of body fetched from unpkg.com",v.length);let S;try{S=JSON.parse(v)}catch(A){throw console.error("JSON.parse error: body fetched from unpkg.com: ",v),A}return S.version}throw new Je("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function ks(e,t){let r=await Fc(e,t);return Os("version",r),r}function _c(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Ds=3,Yn=ee("prisma:client:dataproxyEngine"),Zn=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},sr=class{constructor(t){this.name="DataProxyEngine";Rs(t),this.config=t,this.env={...t.env,...typeof y<"u"?y.env:{}},this.inlineSchema=As(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new Zn({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await ks(t,this.config),Yn("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:Ss(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await Qe(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Yn("schema response status",r.status);let n=await ir(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Vr(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?Gt(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Yn("graphql response status",a.status),await this.handleError(await ir(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?Gt(l.errors[0],this.config.clientVersion,this.config.activeProvider):new ne(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await Qe(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await ir(l,this.clientVersion));let u=await l.json(),g=u.extensions;g&&this.propagateResponseExtensions(g);let h=u.id,v=u["data-proxy"].endpoint;return{id:h,payload:{endpoint:v}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await Qe(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await ir(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=yt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new je(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new je(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new Je("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=Ds)throw i instanceof wt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Ds} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Cs(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof Ge)throw await this.uploadSchema(),new wt({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ms({copyEngine:e=!0},t){let r;try{r=yt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Ot("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Rt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s){let u;throw u=["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."],new K(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new sr(t);throw new K("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}f();c();p();d();m();function Hr({generator:e}){return e?.previewFeatures??[]}f();c();p();d();m();var Ns=e=>({command:e});f();c();p();d();m();f();c();p();d();m();var Fs=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);f();c();p();d();m();function xt(e){try{return _s(e,"fast")}catch{return _s(e,"slow")}}function _s(e,t){return JSON.stringify(e.map(r=>qs(r,t)))}function qs(e,t){return Array.isArray(e)?e.map(r=>qs(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:it(e)?{prisma__type:"date",prisma__value:e.toJSON()}:fe.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Lc(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Bs(e):e}function Lc(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Bs(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(Ls);let t={};for(let r of Object.keys(e))t[r]=Ls(e[r]);return t}function Ls(e){return typeof e=="bigint"?e.toString():Bs(e)}f();c();p();d();m();var qc=["$connect","$disconnect","$on","$transaction","$use","$extends"],Us=qc;var Bc=/^(\s*alter\s)/i,$s=ee("prisma:client");function Xn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Bc.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var ei=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Jo(r))n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:xt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:xt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Fs(r),i={values:xt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?$s(`prisma.${e}(${n}, ${i.values})`):$s(`prisma.${e}(${n})`),{query:n,parameters:i}},Vs={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},js={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};f();c();p();d();m();function ti(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Js(r(o)):Js(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Js(e){return typeof e.then=="function"?e:Promise.resolve(e)}f();c();p();d();m();var Gs={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},ri=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Gs}};function Qs(e){return e.includes("tracing")?new ri:Gs}f();c();p();d();m();function Hs(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}f();c();p();d();m();function Ws(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}f();c();p();d();m();var Wr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};f();c();p();d();m();var Ys=qe(Xi());f();c();p();d();m();function Kr(e){return typeof e.batchRequestIdx=="number"}f();c();p();d();m();function Ks(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(ni(e.query.arguments)),t.push(ni(e.query.selection)),t.join("")}function ni(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${ni(n)})`:r}).join(" ")})`}f();c();p();d();m();var Uc={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function ii(e){return Uc[e]}f();c();p();d();m();var zr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iHe("bigint",r));case"bytes-array":return t.map(r=>He("bytes",r));case"decimal-array":return t.map(r=>He("decimal",r));case"datetime-array":return t.map(r=>He("datetime",r));case"date-array":return t.map(r=>He("date",r));case"time-array":return t.map(r=>He("time",r));default:return t}}function zs(e){let t=[],r=$c(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>ii(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:jc(o),containsWrite:u,customDataProxyFetch:i})).map((h,v)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[v],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Zs(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:ii(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Ks(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Vc(t),Jc(t,i)||t instanceof ve)throw t;if(t instanceof W&&Gc(t)){let u=Xs(t.meta);Fr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=st({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new W(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Te(l,this.client._clientVersion);if(t instanceof ne)throw new ne(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof G)throw new G(l,this.client._clientVersion);if(t instanceof Te)throw new Te(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Ys.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Bn(o,s),l=i==="queryRaw"?zs(a):rt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function jc(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Zs(e)};Pe(e,"Unknown transaction kind")}}function Zs(e){return{id:e.id,payload:e.payload}}function Jc(e,t){return Kr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Gc(e){return e.code==="P2009"||e.code==="P2012"}function Xs(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Xs)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}f();c();p();d();m();var ea="5.22.0";var ta=ea;f();c();p();d();m();var sa=qe(Tn());f();c();p();d();m();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};N(B,"PrismaClientConstructorValidationError");var ra=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],na=["pretty","colorless","minimal"],ia=["info","query","warn","error"],Hc={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=Pt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Hr(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Rt()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!na.includes(e)){let t=Pt(e,na);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!ia.includes(r)){let n=Pt(r,ia);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Pt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Kc(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(zc(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=Pt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function aa(e,t){for(let[r,n]of Object.entries(e)){if(!ra.includes(r)){let i=Pt(r,ra);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Hc[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Pt(e,t){if(t.length===0||typeof e!="string")return"";let r=Wc(e,t);return r?` Did you mean "${r}"?`:""}function Wc(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,sa.default)(e,i)}));r.sort((i,o)=>i.distancent(n)===t);if(r)return e[r]}function zc(e,t){let r=dt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Nr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}f();c();p();d();m();function la(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!Kr(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var _e=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Yc={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Zc=Symbol.for("prisma.client.transaction.id"),Xc={id:0,nextId(){return++this.id}};function pa(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Wr;this._createPrismaPromise=ti();this.$extends=us;e=n?.__internal?.configOverride?.(e)??e,Ps(e),n&&aa(n,e);let i=new yr().on("error",()=>{});this._extensions=mt.empty(),this._previewFeatures=Hr(e),this._clientVersion=e.clientVersion??ta,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Qs(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&At.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&At.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Fn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new G(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new G("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&ee.enable("prisma:client");let h=At.resolve(e.dirname,e.relativePath);Si.existsSync(h)||(h=e.dirname),_e("dirname",e.dirname),_e("relativePath",e.relativePath),_e("cwd",h);let v=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:v.allowTriggerPanic,datamodelPath:At.join(e.dirname,e.filename??"schema.prisma"),prismaPath:v.binaryPath??void 0,engineEndpoint:v.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&Ws(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:vs(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:yt,getBatchRequestPayload:Vr,prismaGraphQLToJSError:Gt,PrismaClientUnknownRequestError:ne,PrismaClientInitializationError:G,PrismaClientKnownRequestError:W,debug:ee("prisma:client:accelerateEngine"),engineVersion:ca.version,clientVersion:e.clientVersion}},_e("clientVersion",e.clientVersion),this._engine=Ms(e,this._engineConfig),this._requestHandler=new Yr(this,i),l.log)for(let S of l.log){let A=typeof S=="string"?S:S.emit==="stdout"?S.level:null;A&&this.$on(A,R=>{It.log(`${It.tags[A]??""}`,R.message||R.query)})}this._metrics=new ft(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Qt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Vi()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:ei({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ua(n,i);return Xn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new K("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Xn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new K(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Ns,callsite:Fe(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:ei({clientMethod:i,activeProvider:a}),callsite:Fe(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ua(n,i));throw new K("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new K("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=Xc.nextId(),s=Hs(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return la(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Qt(be(ls(this),[te("_appliedParent",()=>this._appliedParent._createItxClient(n)),te("_createPrismaPromise",()=>ti(n)),te(Zc,()=>n.id),gt(Us)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??Yc,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,M=>g(u,F=>(M?.end(),l(F))));let{runInTransaction:h,args:v,...S}=u,A={...n,...S};v&&(A.args=i.middlewareArgsToRequestArgs(v)),n.transaction!==void 0&&h===!1&&delete A.transaction;let R=await hs(this,A);return A.model?ds({result:R,modelName:A.model,args:A.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):R};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:v,customDataProxyFetch:S}){try{n=u?u(n):n;let A={name:"serialize"},R=this._tracingHelper.runInChildSpan(A,()=>qr({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(_e("Prisma Client call:"),_e(`prisma.${i}(${Yo(n)})`),_e("Generated request:"),_e(JSON.stringify(R,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:R,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:v,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(A){throw A.clientVersion=this._clientVersion,A}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new K("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ua(e,t){return ep(e)?[new oe(e,t),Vs]:[e,js]}function ep(e){return Array.isArray(e)&&Array.isArray(e.raw)}f();c();p();d();m();var tp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function da(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!tp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}f();c();p();d();m();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=edge.js.map diff --git a/mcp-server/node_modules/.prisma/client/runtime/index-browser.d.ts b/mcp-server/node_modules/.prisma/client/runtime/index-browser.d.ts deleted file mode 100644 index fefa233..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/index-browser.d.ts +++ /dev/null @@ -1,365 +0,0 @@ -declare class AnyNull extends NullTypesEnumValue { -} - -declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -declare class DbNull extends NullTypesEnumValue { -} - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: Runtime; - prettyName: string; - isEdge: boolean; -}; - -declare class JsonNull extends NullTypesEnumValue { -} - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -declare type Narrowable = string | number | bigint | boolean | []; - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * Base class for unique values of object-valued enums. - */ -declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown"; - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -export { } diff --git a/mcp-server/node_modules/.prisma/client/runtime/index-browser.js b/mcp-server/node_modules/.prisma/client/runtime/index-browser.js deleted file mode 100644 index 8f0457d..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/index-browser.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict";var de=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.prototype.hasOwnProperty;var Me=(e,n)=>{for(var i in n)de(e,i,{get:n[i],enumerable:!0})},Xe=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ge(n))!Je.call(e,r)&&r!==i&&de(e,r,{get:()=>n[r],enumerable:!(t=We(n,r))||t.enumerable});return e};var Ke=e=>Xe(de({},"__esModule",{value:!0}),e);var Xn={};Me(Xn,{Decimal:()=>je,Public:()=>he,getRuntime:()=>be,makeStrictEnum:()=>Pe,objectEnumValues:()=>Oe});module.exports=Ke(Xn);var he={};Me(he,{validator:()=>Ce});function Ce(...e){return n=>n}var ne=Symbol(),pe=new WeakMap,ge=class{constructor(n){n===ne?pe.set(this,"Prisma.".concat(this._getName())):pe.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return pe.get(this)}},G=class extends ge{_getNamespace(){return"NullTypes"}},J=class extends G{};me(J,"DbNull");var X=class extends G{};me(X,"JsonNull");var K=class extends G{};me(K,"AnyNull");var Oe={classes:{DbNull:J,JsonNull:X,AnyNull:K},instances:{DbNull:new J(ne),JsonNull:new X(ne),AnyNull:new K(ne)}};function me(e,n){Object.defineProperty(e,"name",{value:n,configurable:!0})}var xe=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Pe(e){return new Proxy(e,{get(n,i){if(i in n)return n[i];if(!xe.has(i))throw new TypeError("Invalid enum value: ".concat(String(i)))}})}var Qe="Cloudflare-Workers",Ye="node";function Re(){var e,n,i;return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":((e=globalThis.navigator)==null?void 0:e.userAgent)===Qe?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":((i=(n=globalThis.process)==null?void 0:n.release)==null?void 0:i.name)===Ye?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var ze={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function be(){let e=Re();return{id:e,prettyName:ze[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var H=9e15,$=1e9,we="0123456789abcdef",te="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",re="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ne={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-H,maxE:H,crypto:!1},Te,Z,w=!0,oe="[DecimalError] ",V=oe+"Invalid argument: ",Le=oe+"Precision limit exceeded",De=oe+"crypto unavailable",Fe="[object Decimal]",b=Math.floor,C=Math.pow,ye=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,en=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,nn=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ie=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=1e7,m=7,tn=9007199254740991,rn=te.length-1,ve=re.length-1,h={toStringTag:Fe};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)};h.ceil=function(){return p(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,n){var i,t=this,r=t.constructor;if(e=new r(e),n=new r(n),!e.s||!n.s)return new r(NaN);if(e.gt(n))throw Error(V+n);return i=t.cmp(e),i<0?e:t.cmp(n)>0?n:new r(t)};h.comparedTo=h.cmp=function(e){var n,i,t,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,l=s.s,f=e.s;if(!o||!u)return!l||!f?NaN:l!==f?l:o===u?0:!o^l<0?1:-1;if(!o[0]||!u[0])return o[0]?l:u[0]?-f:0;if(l!==f)return l;if(s.e!==e.e)return s.e>e.e^l<0?1:-1;for(t=o.length,r=u.length,n=0,i=tu[n]^l<0?1:-1;return t===r?0:t>r^l<0?1:-1};h.cosine=h.cos=function(){var e,n,i=this,t=i.constructor;return i.d?i.d[0]?(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=sn(t,$e(t,i)),t.precision=e,t.rounding=n,p(Z==2||Z==3?i.neg():i,e,n,!0)):new t(1):new t(NaN)};h.cubeRoot=h.cbrt=function(){var e,n,i,t,r,s,o,u,l,f,c=this,a=c.constructor;if(!c.isFinite()||c.isZero())return new a(c);for(w=!1,s=c.s*C(c.s*c,1/3),!s||Math.abs(s)==1/0?(i=O(c.d),e=c.e,(s=(e-i.length+1)%3)&&(i+=s==1||s==-2?"0":"00"),s=C(i,1/3),e=b((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?i="5e"+e:(i=s.toExponential(),i=i.slice(0,i.indexOf("e")+1)+e),t=new a(i),t.s=c.s):t=new a(s.toString()),o=(e=a.precision)+3;;)if(u=t,l=u.times(u).times(u),f=l.plus(c),t=S(f.plus(c).times(u),f.plus(l),o+2,1),O(u.d).slice(0,o)===(i=O(t.d)).slice(0,o))if(i=i.slice(o-3,o+1),i=="9999"||!r&&i=="4999"){if(!r&&(p(u,e+1,0),u.times(u).times(u).eq(c))){t=u;break}o+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(t,e+1,1),n=!t.times(t).times(t).eq(c));break}return w=!0,p(t,e,a.rounding,n)};h.decimalPlaces=h.dp=function(){var e,n=this.d,i=NaN;if(n){if(e=n.length-1,i=(e-b(this.e/m))*m,e=n[e],e)for(;e%10==0;e/=10)i--;i<0&&(i=0)}return i};h.dividedBy=h.div=function(e){return S(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var n=this,i=n.constructor;return p(S(n,new i(e),0,1,1),i.precision,i.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return p(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var n=this.cmp(e);return n==1||n===0};h.hyperbolicCosine=h.cosh=function(){var e,n,i,t,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;i=o.precision,t=o.rounding,o.precision=i+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),n=(1/fe(4,e)).toString()):(e=16,n="2.3283064365386962890625e-10"),s=j(o,1,s.times(n),new o(1),!0);for(var l,f=e,c=new o(8);f--;)l=s.times(s),s=u.minus(l.times(c.minus(l.times(c))));return p(s,o.precision=i,o.rounding=t,!0)};h.hyperbolicSine=h.sinh=function(){var e,n,i,t,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(n=s.precision,i=s.rounding,s.precision=n+Math.max(r.e,r.sd())+4,s.rounding=1,t=r.d.length,t<3)r=j(s,2,r,r,!0);else{e=1.4*Math.sqrt(t),e=e>16?16:e|0,r=r.times(1/fe(5,e)),r=j(s,2,r,r,!0);for(var o,u=new s(5),l=new s(16),f=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(l.times(o).plus(f))))}return s.precision=n,s.rounding=i,p(r,n,i,!0)};h.hyperbolicTangent=h.tanh=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+7,t.rounding=1,S(i.sinh(),i.cosh(),t.precision=e,t.rounding=n)):new t(i.s)};h.inverseCosine=h.acos=function(){var e,n=this,i=n.constructor,t=n.abs().cmp(1),r=i.precision,s=i.rounding;return t!==-1?t===0?n.isNeg()?L(i,r,s):new i(0):new i(NaN):n.isZero()?L(i,r+4,s).times(.5):(i.precision=r+6,i.rounding=1,n=n.asin(),e=L(i,r+4,s).times(.5),i.precision=r,i.rounding=s,e.minus(n))};h.inverseHyperbolicCosine=h.acosh=function(){var e,n,i=this,t=i.constructor;return i.lte(1)?new t(i.eq(1)?0:NaN):i.isFinite()?(e=t.precision,n=t.rounding,t.precision=e+Math.max(Math.abs(i.e),i.sd())+4,t.rounding=1,w=!1,i=i.times(i).minus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln()):new t(i)};h.inverseHyperbolicSine=h.asinh=function(){var e,n,i=this,t=i.constructor;return!i.isFinite()||i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+2*Math.max(Math.abs(i.e),i.sd())+6,t.rounding=1,w=!1,i=i.times(i).plus(1).sqrt().plus(i),w=!0,t.precision=e,t.rounding=n,i.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,n,i,t,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,n=s.rounding,t=r.sd(),Math.max(t,e)<2*-r.e-1?p(new s(r),e,n,!0):(s.precision=i=t-r.e,r=S(r.plus(1),new s(1).minus(r),i+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=n,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,n,i,t,r=this,s=r.constructor;return r.isZero()?new s(r):(n=r.abs().cmp(1),i=s.precision,t=s.rounding,n!==-1?n===0?(e=L(s,i+4,t).times(.5),e.s=r.s,e):new s(NaN):(s.precision=i+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=i,s.rounding=t,r.times(2)))};h.inverseTangent=h.atan=function(){var e,n,i,t,r,s,o,u,l,f=this,c=f.constructor,a=c.precision,d=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&a+4<=ve)return o=L(c,a+4,d).times(.25),o.s=f.s,o}else{if(!f.s)return new c(NaN);if(a+4<=ve)return o=L(c,a+4,d).times(.5),o.s=f.s,o}for(c.precision=u=a+10,c.rounding=1,i=Math.min(28,u/m+2|0),e=i;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(w=!1,n=Math.ceil(u/m),t=1,l=f.times(f),o=new c(f),r=f;e!==-1;)if(r=r.times(l),s=o.minus(r.div(t+=2)),r=r.times(l),o=s.plus(r.div(t+=2)),o.d[n]!==void 0)for(e=n;o.d[e]===s.d[e]&&e--;);return i&&(o=o.times(2<this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var n,i,t,r,s,o,u,l,f=this,c=f.constructor,a=c.precision,d=c.rounding,g=5;if(e==null)e=new c(10),n=!0;else{if(e=new c(e),i=e.d,e.s<0||!i||!i[0]||e.eq(1))return new c(NaN);n=e.eq(10)}if(i=f.d,f.s<0||!i||!i[0]||f.eq(1))return new c(i&&!i[0]?-1/0:f.s!=1?NaN:i?0:1/0);if(n)if(i.length>1)s=!0;else{for(r=i[0];r%10===0;)r/=10;s=r!==1}if(w=!1,u=a+g,o=B(f,u),t=n?se(c,u+10):B(e,u),l=S(o,t,u,1),x(l.d,r=a,d))do if(u+=10,o=B(f,u),t=n?se(c,u+10):B(e,u),l=S(o,t,u,1),!s){+O(l.d).slice(r+1,r+15)+1==1e14&&(l=p(l,a+1,0));break}while(x(l.d,r+=10,d));return w=!0,p(l,a,d)};h.minus=h.sub=function(e){var n,i,t,r,s,o,u,l,f,c,a,d,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,d=e.d,u=v.precision,l=v.rounding,!f[0]||!d[0]){if(d[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(l===3?-0:0);return w?p(e,u,l):e}if(i=b(e.e/m),c=b(g.e/m),f=f.slice(),s=c-i,s){for(a=s<0,a?(n=f,s=-s,o=d.length):(n=d,i=c,o=f.length),t=Math.max(Math.ceil(u/m),o)+2,s>t&&(s=t,n.length=1),n.reverse(),t=s;t--;)n.push(0);n.reverse()}else{for(t=f.length,o=d.length,a=t0;--t)f[o++]=0;for(t=d.length;t>s;){if(f[--t]o?s+1:o+1,r>o&&(r=o,i.length=1),i.reverse();r--;)i.push(0);i.reverse()}for(o=f.length,r=c.length,o-r<0&&(r=o,i=c,c=f,f=i),n=0;r;)n=(f[--r]=f[r]+c[r]+n)/D|0,f[r]%=D;for(n&&(f.unshift(n),++t),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=ue(f,t),w?p(e,u,l):e};h.precision=h.sd=function(e){var n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(V+e);return i.d?(n=Ze(i.d),e&&i.e+1>n&&(n=i.e+1)):n=NaN,n};h.round=function(){var e=this,n=e.constructor;return p(new n(e),e.e+1,n.rounding)};h.sine=h.sin=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+Math.max(i.e,i.sd())+m,t.rounding=1,i=un(t,$e(t,i)),t.precision=e,t.rounding=n,p(Z>2?i.neg():i,e,n,!0)):new t(NaN)};h.squareRoot=h.sqrt=function(){var e,n,i,t,r,s,o=this,u=o.d,l=o.e,f=o.s,c=o.constructor;if(f!==1||!u||!u[0])return new c(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(w=!1,f=Math.sqrt(+o),f==0||f==1/0?(n=O(u),(n.length+l)%2==0&&(n+="0"),f=Math.sqrt(n),l=b((l+1)/2)-(l<0||l%2),f==1/0?n="5e"+l:(n=f.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),t=new c(n)):t=new c(f.toString()),i=(l=c.precision)+3;;)if(s=t,t=s.plus(S(o,s,i+2,1)).times(.5),O(s.d).slice(0,i)===(n=O(t.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!r&&n=="4999"){if(!r&&(p(s,l+1,0),s.times(s).eq(o))){t=s;break}i+=4,r=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(t,l+1,1),e=!t.times(t).eq(o));break}return w=!0,p(t,l,c.rounding,e)};h.tangent=h.tan=function(){var e,n,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(e=t.precision,n=t.rounding,t.precision=e+10,t.rounding=1,i=i.sin(),i.s=1,i=S(i,new t(1).minus(i.times(i)).sqrt(),e+10,0),t.precision=e,t.rounding=n,p(Z==2||Z==4?i.neg():i,e,n,!0)):new t(NaN)};h.times=h.mul=function(e){var n,i,t,r,s,o,u,l,f,c=this,a=c.constructor,d=c.d,g=(e=new a(e)).d;if(e.s*=c.s,!d||!d[0]||!g||!g[0])return new a(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(i=b(c.e/m)+b(e.e/m),l=d.length,f=g.length,l=0;){for(n=0,r=l+t;r>t;)u=s[r]+g[t]*d[r-t-1]+n,s[r--]=u%D|0,n=u/D|0;s[r]=(s[r]+n)%D|0}for(;!s[--o];)s.pop();return n?++i:s.shift(),e.d=s,e.e=ue(s,i),w?p(e,a.precision,a.rounding):e};h.toBinary=function(e,n){return ke(this,2,e,n)};h.toDecimalPlaces=h.toDP=function(e,n){var i=this,t=i.constructor;return i=new t(i),e===void 0?i:(_(e,0,$),n===void 0?n=t.rounding:_(n,0,8),p(i,e+i.e+1,n))};h.toExponential=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=F(t,!0):(_(e,0,$),n===void 0?n=r.rounding:_(n,0,8),t=p(new r(t),e+1,n),i=F(t,!0,e+1)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toFixed=function(e,n){var i,t,r=this,s=r.constructor;return e===void 0?i=F(r):(_(e,0,$),n===void 0?n=s.rounding:_(n,0,8),t=p(new s(r),e+r.e+1,n),i=F(t,!1,e+t.e+1)),r.isNeg()&&!r.isZero()?"-"+i:i};h.toFraction=function(e){var n,i,t,r,s,o,u,l,f,c,a,d,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=i=new N(1),t=l=new N(0),n=new N(t),s=n.e=Ze(v)-g.e-1,o=s%m,n.d[0]=C(10,o<0?m+o:o),e==null)e=s>0?n:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error(V+u);e=u.gt(n)?s>0?n:f:u}for(w=!1,u=new N(O(v)),c=N.precision,N.precision=s=v.length*m*2;a=S(u,n,0,1,1),r=i.plus(a.times(t)),r.cmp(e)!=1;)i=t,t=r,r=f,f=l.plus(a.times(r)),l=r,r=n,n=u.minus(a.times(r)),u=r;return r=S(e.minus(i),t,0,1,1),l=l.plus(r.times(f)),i=i.plus(r.times(t)),l.s=f.s=g.s,d=S(f,t,s,1).minus(g).abs().cmp(S(l,i,s,1).minus(g).abs())<1?[f,t]:[l,i],N.precision=c,w=!0,d};h.toHexadecimal=h.toHex=function(e,n){return ke(this,16,e,n)};h.toNearest=function(e,n){var i=this,t=i.constructor;if(i=new t(i),e==null){if(!i.d)return i;e=new t(1),n=t.rounding}else{if(e=new t(e),n===void 0?n=t.rounding:_(n,0,8),!i.d)return e.s?i:e;if(!e.d)return e.s&&(e.s=i.s),e}return e.d[0]?(w=!1,i=S(i,e,0,n,1).times(e),w=!0,p(i)):(e.s=i.s,i=e),i};h.toNumber=function(){return+this};h.toOctal=function(e,n){return ke(this,8,e,n)};h.toPower=h.pow=function(e){var n,i,t,r,s,o,u=this,l=u.constructor,f=+(e=new l(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new l(C(+u,f));if(u=new l(u),u.eq(1))return u;if(t=l.precision,s=l.rounding,e.eq(1))return p(u,t,s);if(n=b(e.e/m),n>=e.d.length-1&&(i=f<0?-f:f)<=tn)return r=Ue(l,u,i,t),e.s<0?new l(1).div(r):p(r,t,s);if(o=u.s,o<0){if(nl.maxE+1||n0?o/0:0):(w=!1,l.rounding=u.s=1,i=Math.min(12,(n+"").length),r=Ee(e.times(B(u,t+i)),t),r.d&&(r=p(r,t+5,1),x(r.d,t,s)&&(n=t+10,r=p(Ee(e.times(B(u,n+i)),n),n+5,1),+O(r.d).slice(t+1,t+15)+1==1e14&&(r=p(r,t+1,0)))),r.s=o,w=!0,l.rounding=s,p(r,t,s))};h.toPrecision=function(e,n){var i,t=this,r=t.constructor;return e===void 0?i=F(t,t.e<=r.toExpNeg||t.e>=r.toExpPos):(_(e,1,$),n===void 0?n=r.rounding:_(n,0,8),t=p(new r(t),e,n),i=F(t,e<=t.e||t.e<=r.toExpNeg,e)),t.isNeg()&&!t.isZero()?"-"+i:i};h.toSignificantDigits=h.toSD=function(e,n){var i=this,t=i.constructor;return e===void 0?(e=t.precision,n=t.rounding):(_(e,1,$),n===void 0?n=t.rounding:_(n,0,8)),p(new t(i),e,n)};h.toString=function(){var e=this,n=e.constructor,i=F(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()&&!e.isZero()?"-"+i:i};h.truncated=h.trunc=function(){return p(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,n=e.constructor,i=F(e,e.e<=n.toExpNeg||e.e>=n.toExpPos);return e.isNeg()?"-"+i:i};function O(e){var n,i,t,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,n=1;ni)throw Error(V+e)}function x(e,n,i,t){var r,s,o,u;for(s=e[0];s>=10;s/=10)--n;return--n<0?(n+=m,r=0):(r=Math.ceil((n+1)/m),n%=m),s=C(10,m-n),u=e[r]%s|0,t==null?n<3?(n==0?u=u/100|0:n==1&&(u=u/10|0),o=i<4&&u==99999||i>3&&u==49999||u==5e4||u==0):o=(i<4&&u+1==s||i>3&&u+1==s/2)&&(e[r+1]/s/100|0)==C(10,n-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:n<4?(n==0?u=u/1e3|0:n==1?u=u/100|0:n==2&&(u=u/10|0),o=(t||i<4)&&u==9999||!t&&i>3&&u==4999):o=((t||i<4)&&u+1==s||!t&&i>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==C(10,n-3)-1,o}function ie(e,n,i){for(var t,r=[0],s,o=0,u=e.length;oi-1&&(r[t+1]===void 0&&(r[t+1]=0),r[t+1]+=r[t]/i|0,r[t]%=i)}return r.reverse()}function sn(e,n){var i,t,r;if(n.isZero())return n;t=n.d.length,t<32?(i=Math.ceil(t/3),r=(1/fe(4,i)).toString()):(i=16,r="2.3283064365386962890625e-10"),e.precision+=i,n=j(e,1,n.times(r),new e(1));for(var s=i;s--;){var o=n.times(n);n=o.times(o).minus(o).times(8).plus(1)}return e.precision-=i,n}var S=function(){function e(t,r,s){var o,u=0,l=t.length;for(t=t.slice();l--;)o=t[l]*r+u,t[l]=o%s|0,u=o/s|0;return u&&t.unshift(u),t}function n(t,r,s,o){var u,l;if(s!=o)l=s>o?1:-1;else for(u=l=0;ur[u]?1:-1;break}return l}function i(t,r,s,o){for(var u=0;s--;)t[s]-=u,u=t[s]1;)t.shift()}return function(t,r,s,o,u,l){var f,c,a,d,g,v,N,A,M,q,E,P,Y,I,le,z,W,ce,T,y,ee=t.constructor,ae=t.s==r.s?1:-1,R=t.d,k=r.d;if(!R||!R[0]||!k||!k[0])return new ee(!t.s||!r.s||(R?k&&R[0]==k[0]:!k)?NaN:R&&R[0]==0||!k?ae*0:ae/0);for(l?(g=1,c=t.e-r.e):(l=D,g=m,c=b(t.e/g)-b(r.e/g)),T=k.length,W=R.length,M=new ee(ae),q=M.d=[],a=0;k[a]==(R[a]||0);a++);if(k[a]>(R[a]||0)&&c--,s==null?(I=s=ee.precision,o=ee.rounding):u?I=s+(t.e-r.e)+1:I=s,I<0)q.push(1),v=!0;else{if(I=I/g+2|0,a=0,T==1){for(d=0,k=k[0],I++;(a1&&(k=e(k,d,l),R=e(R,d,l),T=k.length,W=R.length),z=T,E=R.slice(0,T),P=E.length;P=l/2&&++ce;do d=0,f=n(k,E,T,P),f<0?(Y=E[0],T!=P&&(Y=Y*l+(E[1]||0)),d=Y/ce|0,d>1?(d>=l&&(d=l-1),N=e(k,d,l),A=N.length,P=E.length,f=n(N,E,A,P),f==1&&(d--,i(N,T=10;d/=10)a++;M.e=a+c*g-1,p(M,u?s+M.e+1:s,o,v)}return M}}();function p(e,n,i,t){var r,s,o,u,l,f,c,a,d,g=e.constructor;e:if(n!=null){if(a=e.d,!a)return e;for(r=1,u=a[0];u>=10;u/=10)r++;if(s=n-r,s<0)s+=m,o=n,c=a[d=0],l=c/C(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/m),u=a.length,d>=u)if(t){for(;u++<=d;)a.push(0);c=l=0,r=1,s%=m,o=s-m+1}else break e;else{for(c=u=a[d],r=1;u>=10;u/=10)r++;s%=m,o=s-m+r,l=o<0?0:c/C(10,r-o-1)%10|0}if(t=t||n<0||a[d+1]!==void 0||(o<0?c:c%C(10,r-o-1)),f=i<4?(l||t)&&(i==0||i==(e.s<0?3:2)):l>5||l==5&&(i==4||t||i==6&&(s>0?o>0?c/C(10,r-o):0:a[d-1])%10&1||i==(e.s<0?8:7)),n<1||!a[0])return a.length=0,f?(n-=e.e+1,a[0]=C(10,(m-n%m)%m),e.e=-n||0):a[0]=e.e=0,e;if(s==0?(a.length=d,u=1,d--):(a.length=d+1,u=C(10,m-s),a[d]=o>0?(c/C(10,r-o)%C(10,o)|0)*u:0),f)for(;;)if(d==0){for(s=1,o=a[0];o>=10;o/=10)s++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,a[0]==D&&(a[0]=1));break}else{if(a[d]+=u,a[d]!=D)break;a[d--]=0,u=1}for(s=a.length;a[--s]===0;)a.pop()}return w&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e0?s=s.charAt(0)+"."+s.slice(1)+U(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+U(-r-1)+s,i&&(t=i-o)>0&&(s+=U(t))):r>=o?(s+=U(r+1-o),i&&(t=i-r-1)>0&&(s=s+"."+U(t))):((t=r+1)0&&(r+1===o&&(s+="."),s+=U(t))),s}function ue(e,n){var i=e[0];for(n*=m;i>=10;i/=10)n++;return n}function se(e,n,i){if(n>rn)throw w=!0,i&&(e.precision=i),Error(Le);return p(new e(te),n,1,!0)}function L(e,n,i){if(n>ve)throw Error(Le);return p(new e(re),n,i,!0)}function Ze(e){var n=e.length-1,i=n*m+1;if(n=e[n],n){for(;n%10==0;n/=10)i--;for(n=e[0];n>=10;n/=10)i++}return i}function U(e){for(var n="";e--;)n+="0";return n}function Ue(e,n,i,t){var r,s=new e(1),o=Math.ceil(t/m+4);for(w=!1;;){if(i%2&&(s=s.times(n),_e(s.d,o)&&(r=!0)),i=b(i/2),i===0){i=s.d.length-1,r&&s.d[i]===0&&++s.d[i];break}n=n.times(n),_e(n.d,o)}return w=!0,s}function Ae(e){return e.d[e.d.length-1]&1}function Be(e,n,i){for(var t,r=new e(n[0]),s=0;++s17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(n==null?(w=!1,l=v):l=n,u=new d(.03125);e.e>-2;)e=e.times(u),a+=5;for(t=Math.log(C(2,a))/Math.LN10*2+5|0,l+=t,i=s=o=new d(1),d.precision=l;;){if(s=p(s.times(e),l,1),i=i.times(++c),u=o.plus(S(s,i,l,1)),O(u.d).slice(0,l)===O(o.d).slice(0,l)){for(r=a;r--;)o=p(o.times(o),l,1);if(n==null)if(f<3&&x(o.d,l-t,g,f))d.precision=l+=10,i=s=u=new d(1),c=0,f++;else return p(o,d.precision=v,g,w=!0);else return d.precision=v,o}o=u}}function B(e,n){var i,t,r,s,o,u,l,f,c,a,d,g=1,v=10,N=e,A=N.d,M=N.constructor,q=M.rounding,E=M.precision;if(N.s<0||!A||!A[0]||!N.e&&A[0]==1&&A.length==1)return new M(A&&!A[0]?-1/0:N.s!=1?NaN:A?0:N);if(n==null?(w=!1,c=E):c=n,M.precision=c+=v,i=O(A),t=i.charAt(0),Math.abs(s=N.e)<15e14){for(;t<7&&t!=1||t==1&&i.charAt(1)>3;)N=N.times(e),i=O(N.d),t=i.charAt(0),g++;s=N.e,t>1?(N=new M("0."+i),s++):N=new M(t+"."+i.slice(1))}else return f=se(M,c+2,E).times(s+""),N=B(new M(t+"."+i.slice(1)),c-v).plus(f),M.precision=E,n==null?p(N,E,q,w=!0):N;for(a=N,l=o=N=S(N.minus(1),N.plus(1),c,1),d=p(N.times(N),c,1),r=3;;){if(o=p(o.times(d),c,1),f=l.plus(S(o,new M(r),c,1)),O(f.d).slice(0,c)===O(l.d).slice(0,c))if(l=l.times(2),s!==0&&(l=l.plus(se(M,c+2,E).times(s+""))),l=S(l,new M(g),c,1),n==null)if(x(l.d,c-v,q,u))M.precision=c+=v,f=o=N=S(a.minus(1),a.plus(1),c,1),d=p(N.times(N),c,1),r=u=1;else return p(l,M.precision=E,q,w=!0);else return M.precision=E,l;l=f,r+=2}}function Ve(e){return String(e.s*e.s/0)}function Se(e,n){var i,t,r;for((i=n.indexOf("."))>-1&&(n=n.replace(".","")),(t=n.search(/e/i))>0?(i<0&&(i=t),i+=+n.slice(t+1),n=n.substring(0,t)):i<0&&(i=n.length),t=0;n.charCodeAt(t)===48;t++);for(r=n.length;n.charCodeAt(r-1)===48;--r);if(n=n.slice(t,r),n){if(r-=t,e.e=i=i-t-1,e.d=[],t=(i+1)%m,i<0&&(t+=m),te.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(n=n.replace(/(\d)_(?=\d)/g,"$1"),Ie.test(n))return Se(e,n)}else if(n==="Infinity"||n==="NaN")return+n||(e.s=NaN),e.e=NaN,e.d=null,e;if(en.test(n))i=16,n=n.toLowerCase();else if(ye.test(n))i=2;else if(nn.test(n))i=8;else throw Error(V+n);for(s=n.search(/p/i),s>0?(l=+n.slice(s+1),n=n.substring(2,s)):n=n.slice(2),s=n.indexOf("."),o=s>=0,t=e.constructor,o&&(n=n.replace(".",""),u=n.length,s=u-s,r=Ue(t,new t(i),s,s*2)),f=ie(n,i,D),c=f.length-1,s=c;f[s]===0;--s)f.pop();return s<0?new t(e.s*0):(e.e=ue(f,c),e.d=f,w=!1,o&&(e=S(e,r,u*4)),l&&(e=e.times(Math.abs(l)<54?C(2,l):Q.pow(2,l))),w=!0,e)}function un(e,n){var i,t=n.d.length;if(t<3)return n.isZero()?n:j(e,2,n,n);i=1.4*Math.sqrt(t),i=i>16?16:i|0,n=n.times(1/fe(5,i)),n=j(e,2,n,n);for(var r,s=new e(5),o=new e(16),u=new e(20);i--;)r=n.times(n),n=n.times(s.plus(r.times(o.times(r).minus(u))));return n}function j(e,n,i,t,r){var s,o,u,l,f=1,c=e.precision,a=Math.ceil(c/m);for(w=!1,l=i.times(i),u=new e(t);;){if(o=S(u.times(l),new e(n++*n++),c,1),u=r?t.plus(o):t.minus(o),t=S(o.times(l),new e(n++*n++),c,1),o=u.plus(t),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=t,t=o,o=s,f++}return w=!0,o.d.length=a+1,o}function fe(e,n){for(var i=e;--n;)i*=e;return i}function $e(e,n){var i,t=n.s<0,r=L(e,e.precision,1),s=r.times(.5);if(n=n.abs(),n.lte(s))return Z=t?4:1,n;if(i=n.divToInt(r),i.isZero())Z=t?3:2;else{if(n=n.minus(i.times(r)),n.lte(s))return Z=Ae(i)?t?2:3:t?4:1,n;Z=Ae(i)?t?1:4:t?3:2}return n.minus(r).abs()}function ke(e,n,i,t){var r,s,o,u,l,f,c,a,d,g=e.constructor,v=i!==void 0;if(v?(_(i,1,$),t===void 0?t=g.rounding:_(t,0,8)):(i=g.precision,t=g.rounding),!e.isFinite())c=Ve(e);else{for(c=F(e),o=c.indexOf("."),v?(r=2,n==16?i=i*4-3:n==8&&(i=i*3-2)):r=n,o>=0&&(c=c.replace(".",""),d=new g(1),d.e=c.length-o,d.d=ie(F(d),10,r),d.e=d.d.length),a=ie(c,10,r),s=l=a.length;a[--l]==0;)a.pop();if(!a[0])c=v?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=a,e.e=s,e=S(e,d,i,t,0,r),a=e.d,s=e.e,f=Te),o=a[i],u=r/2,f=f||a[i+1]!==void 0,f=t<4?(o!==void 0||f)&&(t===0||t===(e.s<0?3:2)):o>u||o===u&&(t===4||f||t===6&&a[i-1]&1||t===(e.s<0?8:7)),a.length=i,f)for(;++a[--i]>r-1;)a[i]=0,i||(++s,a.unshift(1));for(l=a.length;!a[l-1];--l);for(o=0,c="";o1)if(n==16||n==8){for(o=n==16?4:3,--l;l%o;l++)c+="0";for(a=ie(c,r,n),l=a.length;!a[l-1];--l);for(o=1,c="1.";ol)for(s-=l;s--;)c+="0";else sn)return e.length=n,!0}function fn(e){return new this(e).abs()}function ln(e){return new this(e).acos()}function cn(e){return new this(e).acosh()}function an(e,n){return new this(e).plus(n)}function dn(e){return new this(e).asin()}function hn(e){return new this(e).asinh()}function pn(e){return new this(e).atan()}function gn(e){return new this(e).atanh()}function mn(e,n){e=new this(e),n=new this(n);var i,t=this.precision,r=this.rounding,s=t+4;return!e.s||!n.s?i=new this(NaN):!e.d&&!n.d?(i=L(this,s,1).times(n.s>0?.25:.75),i.s=e.s):!n.d||e.isZero()?(i=n.s<0?L(this,t,r):new this(0),i.s=e.s):!e.d||n.isZero()?(i=L(this,s,1).times(.5),i.s=e.s):n.s<0?(this.precision=s,this.rounding=1,i=this.atan(S(e,n,s,1)),n=L(this,s,1),this.precision=t,this.rounding=r,i=e.s<0?i.minus(n):i.plus(n)):i=this.atan(S(e,n,s,1)),i}function wn(e){return new this(e).cbrt()}function Nn(e){return p(e=new this(e),e.e+1,2)}function vn(e,n,i){return new this(e).clamp(n,i)}function En(e){if(!e||typeof e!="object")throw Error(oe+"Object expected");var n,i,t,r=e.defaults===!0,s=["precision",1,$,"rounding",0,8,"toExpNeg",-H,0,"toExpPos",0,H,"maxE",0,H,"minE",-H,0,"modulo",0,9];for(n=0;n=s[n+1]&&t<=s[n+2])this[i]=t;else throw Error(V+i+": "+t);if(i="crypto",r&&(this[i]=Ne[i]),(t=e[i])!==void 0)if(t===!0||t===!1||t===0||t===1)if(t)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(De);else this[i]=!1;else throw Error(V+i+": "+t);return this}function Sn(e){return new this(e).cos()}function kn(e){return new this(e).cosh()}function He(e){var n,i,t;function r(s){var o,u,l,f=this;if(!(f instanceof r))return new r(s);if(f.constructor=r,qe(s)){f.s=s.s,w?!s.d||s.e>r.maxE?(f.e=NaN,f.d=null):s.e=10;u/=10)o++;w?o>r.maxE?(f.e=NaN,f.d=null):o=429e7?n[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(n=crypto.randomBytes(t*=4);s=214e7?crypto.randomBytes(4).copy(n,s):(u.push(r%1e7),s+=4);s=t/4}else throw Error(De);else for(;s=10;r/=10)t++;t - * MIT Licence - *) -*/ -//# sourceMappingURL=index-browser.js.map diff --git a/mcp-server/node_modules/.prisma/client/runtime/library.d.ts b/mcp-server/node_modules/.prisma/client/runtime/library.d.ts deleted file mode 100644 index d92cd02..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/library.d.ts +++ /dev/null @@ -1,3403 +0,0 @@ -/** - * @param this - */ -declare function $extends(this: Client, extension: ExtensionArgs | ((client: Client) => Client)): Client; - -declare type AccelerateEngineConfig = { - inlineSchema: EngineConfig['inlineSchema']; - inlineSchemaHash: EngineConfig['inlineSchemaHash']; - env: EngineConfig['env']; - generator?: { - previewFeatures: string[]; - }; - inlineDatasources: EngineConfig['inlineDatasources']; - overrideDatasources: EngineConfig['overrideDatasources']; - clientVersion: EngineConfig['clientVersion']; - engineVersion: EngineConfig['engineVersion']; - logEmitter: EngineConfig['logEmitter']; - logQueries?: EngineConfig['logQueries']; - logLevel?: EngineConfig['logLevel']; - tracingHelper: EngineConfig['tracingHelper']; - accelerateUtils?: EngineConfig['accelerateUtils']; -}; - -export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw'; - -declare type ActiveConnectorType = Exclude; - -export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum'; - -export declare type AllModelsToStringIndex, K extends PropertyKey> = Args extends { - [P in K]: { - $allModels: infer AllModels; - }; -} ? { - [P in K]: Record; -} : {}; - -declare class AnyNull extends NullTypesEnumValue { -} - -export declare type ApplyOmit = Compute<{ - [K in keyof T as OmitValue extends true ? never : K]: T[K]; -}>; - -export declare type Args = T extends { - [K: symbol]: { - types: { - operations: { - [K in F]: { - args: any; - }; - }; - }; - }; -} ? T[symbol]['types']['operations'][F]['args'] : any; - -export declare type Args_3 = Args; - -/** - * Original `quaint::ValueType` enum tag from Prisma's `quaint`. - * Query arguments marked with this type are sanitized before being sent to the database. - * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined. - */ -declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time'; - -/** - * Attributes is a map from string to attribute values. - * - * Note: only the own enumerable keys are counted as valid attribute keys. - */ -declare interface Attributes { - [attributeKey: string]: AttributeValue | undefined; -} - -/** - * Attribute values may be any non-nullish primitive value except an object. - * - * null or undefined attribute values are invalid and will result in undefined behavior. - */ -declare type AttributeValue = string | number | boolean | Array | Array | Array; - -export declare type BaseDMMF = { - readonly datamodel: Omit; -}; - -declare type BatchArgs = { - queries: BatchQuery[]; - transaction?: { - isolationLevel?: IsolationLevel; - }; -}; - -declare type BatchInternalParams = { - requests: RequestParams[]; - customDataProxyFetch?: CustomDataProxyFetch; -}; - -declare type BatchQuery = { - model: string | undefined; - operation: string; - args: JsArgs | RawQueryArgs; -}; - -declare type BatchQueryEngineResult = QueryEngineResult | Error; - -declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise; - -declare type BatchQueryOptionsCbArgs = { - args: BatchArgs; - query: (args: BatchArgs, __internalParams?: BatchInternalParams) => Promise; - __internalParams: BatchInternalParams; -}; - -declare type BatchTransactionOptions = { - isolationLevel?: Transaction_2.IsolationLevel; -}; - -declare interface BinaryTargetsEnvValue { - fromEnvVar: string | null; - value: string; - native?: boolean; -} - -export declare type Call = (F & { - params: P; -})['returns']; - -declare interface CallSite { - getLocation(): LocationInFile | null; -} - -export declare type Cast = A extends W ? A : W; - -declare type Client = ReturnType extends new () => infer T ? T : never; - -export declare type ClientArg = { - [MethodName in string]: unknown; -}; - -export declare type ClientArgs = { - client: ClientArg; -}; - -export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin; - -export declare type ClientOptionDef = undefined | { - [K in string]: any; -}; - -export declare type ClientOtherOps = { - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $queryRawTyped(query: TypedSql): PrismaPromise; - $queryRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise; - $executeRawUnsafe(query: string, ...values: any[]): PrismaPromise; - $runCommandRaw(command: InputJsonObject): PrismaPromise; -}; - -declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum]; - -declare const ColumnTypeEnum: { - readonly Int32: 0; - readonly Int64: 1; - readonly Float: 2; - readonly Double: 3; - readonly Numeric: 4; - readonly Boolean: 5; - readonly Character: 6; - readonly Text: 7; - readonly Date: 8; - readonly Time: 9; - readonly DateTime: 10; - readonly Json: 11; - readonly Enum: 12; - readonly Bytes: 13; - readonly Set: 14; - readonly Uuid: 15; - readonly Int32Array: 64; - readonly Int64Array: 65; - readonly FloatArray: 66; - readonly DoubleArray: 67; - readonly NumericArray: 68; - readonly BooleanArray: 69; - readonly CharacterArray: 70; - readonly TextArray: 71; - readonly DateArray: 72; - readonly TimeArray: 73; - readonly DateTimeArray: 74; - readonly JsonArray: 75; - readonly EnumArray: 76; - readonly BytesArray: 77; - readonly UuidArray: 78; - readonly UnknownNumber: 128; -}; - -export declare type Compute = T extends Function ? T : { - [K in keyof T]: T[K]; -} & unknown; - -export declare type ComputeDeep = T extends Function ? T : { - [K in keyof T]: ComputeDeep; -} & unknown; - -declare type ComputedField = { - name: string; - needs: string[]; - compute: ResultArgsFieldCompute; -}; - -declare type ComputedFieldsMap = { - [fieldName: string]: ComputedField; -}; - -declare type ConnectionInfo = { - schemaName?: string; - maxBindValues?: number; -}; - -declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb'; - -declare interface Context { - /** - * Get a value from the context. - * - * @param key key which identifies a context value - */ - getValue(key: symbol): unknown; - /** - * Create a new context which inherits from this context and has - * the given key set to the given value. - * - * @param key context key for which to set the value - * @param value value to set for the given key - */ - setValue(key: symbol, value: unknown): Context; - /** - * Return a new context which inherits from this context but does - * not contain a value for the given key. - * - * @param key context key for which to clear a value - */ - deleteValue(key: symbol): Context; -} - -declare type Context_2 = T extends { - [K: symbol]: { - ctx: infer C; - }; -} ? C & T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -} : T & { - /** - * @deprecated Use `$name` instead. - */ - name?: string; - $name?: string; - $parent?: unknown; -}; - -export declare type Count = { - [K in keyof O]: Count; -} & {}; - -declare type CustomDataProxyFetch = (fetch: Fetch) => Fetch; - -declare class DataLoader { - private options; - batches: { - [key: string]: Job[]; - }; - private tickActive; - constructor(options: DataLoaderOptions); - request(request: T): Promise; - private dispatchBatches; - get [Symbol.toStringTag](): string; -} - -declare type DataLoaderOptions = { - singleLoader: (request: T) => Promise; - batchLoader: (request: T[]) => Promise; - batchBy: (request: T) => string | undefined; - batchOrder: (requestA: T, requestB: T) => number; -}; - -declare type Datasource = { - url?: string; -}; - -declare type Datasources = { - [name in string]: Datasource; -}; - -declare class DbNull extends NullTypesEnumValue { -} - -export declare const Debug: typeof debugCreate & { - enable(namespace: any): void; - disable(): any; - enabled(namespace: string): boolean; - log: (...args: string[]) => void; - formatters: {}; -}; - -/** - * Create a new debug instance with the given namespace. - * - * @example - * ```ts - * import Debug from '@prisma/debug' - * const debug = Debug('prisma:client') - * debug('Hello World') - * ``` - */ -declare function debugCreate(namespace: string): ((...args: any[]) => void) & { - color: string; - enabled: boolean; - namespace: string; - log: (...args: string[]) => void; - extend: () => void; -}; - -export declare namespace Decimal { - export type Constructor = typeof Decimal; - export type Instance = Decimal; - export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - export type Modulo = Rounding | 9; - export type Value = string | number | Decimal; - - // http://mikemcl.github.io/decimal.js/#constructor-properties - export interface Config { - precision?: number; - rounding?: Rounding; - toExpNeg?: number; - toExpPos?: number; - minE?: number; - maxE?: number; - crypto?: boolean; - modulo?: Modulo; - defaults?: boolean; - } -} - -export declare class Decimal { - readonly d: number[]; - readonly e: number; - readonly s: number; - - constructor(n: Decimal.Value); - - absoluteValue(): Decimal; - abs(): Decimal; - - ceil(): Decimal; - - clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal; - clamp(min: Decimal.Value, max: Decimal.Value): Decimal; - - comparedTo(n: Decimal.Value): number; - cmp(n: Decimal.Value): number; - - cosine(): Decimal; - cos(): Decimal; - - cubeRoot(): Decimal; - cbrt(): Decimal; - - decimalPlaces(): number; - dp(): number; - - dividedBy(n: Decimal.Value): Decimal; - div(n: Decimal.Value): Decimal; - - dividedToIntegerBy(n: Decimal.Value): Decimal; - divToInt(n: Decimal.Value): Decimal; - - equals(n: Decimal.Value): boolean; - eq(n: Decimal.Value): boolean; - - floor(): Decimal; - - greaterThan(n: Decimal.Value): boolean; - gt(n: Decimal.Value): boolean; - - greaterThanOrEqualTo(n: Decimal.Value): boolean; - gte(n: Decimal.Value): boolean; - - hyperbolicCosine(): Decimal; - cosh(): Decimal; - - hyperbolicSine(): Decimal; - sinh(): Decimal; - - hyperbolicTangent(): Decimal; - tanh(): Decimal; - - inverseCosine(): Decimal; - acos(): Decimal; - - inverseHyperbolicCosine(): Decimal; - acosh(): Decimal; - - inverseHyperbolicSine(): Decimal; - asinh(): Decimal; - - inverseHyperbolicTangent(): Decimal; - atanh(): Decimal; - - inverseSine(): Decimal; - asin(): Decimal; - - inverseTangent(): Decimal; - atan(): Decimal; - - isFinite(): boolean; - - isInteger(): boolean; - isInt(): boolean; - - isNaN(): boolean; - - isNegative(): boolean; - isNeg(): boolean; - - isPositive(): boolean; - isPos(): boolean; - - isZero(): boolean; - - lessThan(n: Decimal.Value): boolean; - lt(n: Decimal.Value): boolean; - - lessThanOrEqualTo(n: Decimal.Value): boolean; - lte(n: Decimal.Value): boolean; - - logarithm(n?: Decimal.Value): Decimal; - log(n?: Decimal.Value): Decimal; - - minus(n: Decimal.Value): Decimal; - sub(n: Decimal.Value): Decimal; - - modulo(n: Decimal.Value): Decimal; - mod(n: Decimal.Value): Decimal; - - naturalExponential(): Decimal; - exp(): Decimal; - - naturalLogarithm(): Decimal; - ln(): Decimal; - - negated(): Decimal; - neg(): Decimal; - - plus(n: Decimal.Value): Decimal; - add(n: Decimal.Value): Decimal; - - precision(includeZeros?: boolean): number; - sd(includeZeros?: boolean): number; - - round(): Decimal; - - sine() : Decimal; - sin() : Decimal; - - squareRoot(): Decimal; - sqrt(): Decimal; - - tangent() : Decimal; - tan() : Decimal; - - times(n: Decimal.Value): Decimal; - mul(n: Decimal.Value) : Decimal; - - toBinary(significantDigits?: number): string; - toBinary(significantDigits: number, rounding: Decimal.Rounding): string; - - toDecimalPlaces(decimalPlaces?: number): Decimal; - toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - toDP(decimalPlaces?: number): Decimal; - toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; - - toExponential(decimalPlaces?: number): string; - toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFixed(decimalPlaces?: number): string; - toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; - - toFraction(max_denominator?: Decimal.Value): Decimal[]; - - toHexadecimal(significantDigits?: number): string; - toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; - toHex(significantDigits?: number): string; - toHex(significantDigits: number, rounding?: Decimal.Rounding): string; - - toJSON(): string; - - toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; - - toNumber(): number; - - toOctal(significantDigits?: number): string; - toOctal(significantDigits: number, rounding: Decimal.Rounding): string; - - toPower(n: Decimal.Value): Decimal; - pow(n: Decimal.Value): Decimal; - - toPrecision(significantDigits?: number): string; - toPrecision(significantDigits: number, rounding: Decimal.Rounding): string; - - toSignificantDigits(significantDigits?: number): Decimal; - toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal; - toSD(significantDigits?: number): Decimal; - toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal; - - toString(): string; - - truncated(): Decimal; - trunc(): Decimal; - - valueOf(): string; - - static abs(n: Decimal.Value): Decimal; - static acos(n: Decimal.Value): Decimal; - static acosh(n: Decimal.Value): Decimal; - static add(x: Decimal.Value, y: Decimal.Value): Decimal; - static asin(n: Decimal.Value): Decimal; - static asinh(n: Decimal.Value): Decimal; - static atan(n: Decimal.Value): Decimal; - static atanh(n: Decimal.Value): Decimal; - static atan2(y: Decimal.Value, x: Decimal.Value): Decimal; - static cbrt(n: Decimal.Value): Decimal; - static ceil(n: Decimal.Value): Decimal; - static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal; - static clone(object?: Decimal.Config): Decimal.Constructor; - static config(object: Decimal.Config): Decimal.Constructor; - static cos(n: Decimal.Value): Decimal; - static cosh(n: Decimal.Value): Decimal; - static div(x: Decimal.Value, y: Decimal.Value): Decimal; - static exp(n: Decimal.Value): Decimal; - static floor(n: Decimal.Value): Decimal; - static hypot(...n: Decimal.Value[]): Decimal; - static isDecimal(object: any): object is Decimal; - static ln(n: Decimal.Value): Decimal; - static log(n: Decimal.Value, base?: Decimal.Value): Decimal; - static log2(n: Decimal.Value): Decimal; - static log10(n: Decimal.Value): Decimal; - static max(...n: Decimal.Value[]): Decimal; - static min(...n: Decimal.Value[]): Decimal; - static mod(x: Decimal.Value, y: Decimal.Value): Decimal; - static mul(x: Decimal.Value, y: Decimal.Value): Decimal; - static noConflict(): Decimal.Constructor; // Browser only - static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal; - static random(significantDigits?: number): Decimal; - static round(n: Decimal.Value): Decimal; - static set(object: Decimal.Config): Decimal.Constructor; - static sign(n: Decimal.Value): number; - static sin(n: Decimal.Value): Decimal; - static sinh(n: Decimal.Value): Decimal; - static sqrt(n: Decimal.Value): Decimal; - static sub(x: Decimal.Value, y: Decimal.Value): Decimal; - static sum(...n: Decimal.Value[]): Decimal; - static tan(n: Decimal.Value): Decimal; - static tanh(n: Decimal.Value): Decimal; - static trunc(n: Decimal.Value): Decimal; - - static readonly default?: Decimal.Constructor; - static readonly Decimal?: Decimal.Constructor; - - static readonly precision: number; - static readonly rounding: Decimal.Rounding; - static readonly toExpNeg: number; - static readonly toExpPos: number; - static readonly minE: number; - static readonly maxE: number; - static readonly crypto: boolean; - static readonly modulo: Decimal.Modulo; - - static readonly ROUND_UP: 0; - static readonly ROUND_DOWN: 1; - static readonly ROUND_CEIL: 2; - static readonly ROUND_FLOOR: 3; - static readonly ROUND_HALF_UP: 4; - static readonly ROUND_HALF_DOWN: 5; - static readonly ROUND_HALF_EVEN: 6; - static readonly ROUND_HALF_CEIL: 7; - static readonly ROUND_HALF_FLOOR: 8; - static readonly EUCLID: 9; -} - -/** - * Interface for any Decimal.js-like library - * Allows us to accept Decimal.js from different - * versions and some compatible alternatives - */ -export declare interface DecimalJsLike { - d: number[]; - e: number; - s: number; - toFixed(): string; -} - -export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>; - -export declare type DefaultSelection = Args extends { - omit: infer LocalOmit; -} ? ApplyOmit['default'], PatchFlat>>> : ApplyOmit['default'], ExtractGlobalOmit>>; - -export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void; - -declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client; - -declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"]; - -export declare function deserializeJsonResponse(result: unknown): unknown; - -export declare type DevTypeMapDef = { - meta: { - modelProps: string; - }; - model: { - [Model in PropertyKey]: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; - }; - other: { - [Operation in PropertyKey]: DevTypeMapFnDef; - }; -}; - -export declare type DevTypeMapFnDef = { - args: any; - result: any; - payload: OperationPayload; -}; - -export declare namespace DMMF { - export type Document = ReadonlyDeep_2<{ - datamodel: Datamodel; - schema: Schema; - mappings: Mappings; - }>; - export type Mappings = ReadonlyDeep_2<{ - modelOperations: ModelMapping[]; - otherOperations: { - read: string[]; - write: string[]; - }; - }>; - export type OtherOperationMappings = ReadonlyDeep_2<{ - read: string[]; - write: string[]; - }>; - export type DatamodelEnum = ReadonlyDeep_2<{ - name: string; - values: EnumValue[]; - dbName?: string | null; - documentation?: string; - }>; - export type SchemaEnum = ReadonlyDeep_2<{ - name: string; - values: string[]; - }>; - export type EnumValue = ReadonlyDeep_2<{ - name: string; - dbName: string | null; - }>; - export type Datamodel = ReadonlyDeep_2<{ - models: Model[]; - enums: DatamodelEnum[]; - types: Model[]; - indexes: Index[]; - }>; - export type uniqueIndex = ReadonlyDeep_2<{ - name: string; - fields: string[]; - }>; - export type PrimaryKey = ReadonlyDeep_2<{ - name: string | null; - fields: string[]; - }>; - export type Model = ReadonlyDeep_2<{ - name: string; - dbName: string | null; - fields: Field[]; - uniqueFields: string[][]; - uniqueIndexes: uniqueIndex[]; - documentation?: string; - primaryKey: PrimaryKey | null; - isGenerated?: boolean; - }>; - export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported'; - export type FieldNamespace = 'model' | 'prisma'; - export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes'; - export type Field = ReadonlyDeep_2<{ - kind: FieldKind; - name: string; - isRequired: boolean; - isList: boolean; - isUnique: boolean; - isId: boolean; - isReadOnly: boolean; - isGenerated?: boolean; - isUpdatedAt?: boolean; - /** - * Describes the data type in the same the way it is defined in the Prisma schema: - * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName - */ - type: string; - dbName?: string | null; - hasDefaultValue: boolean; - default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[]; - relationFromFields?: string[]; - relationToFields?: string[]; - relationOnDelete?: string; - relationName?: string; - documentation?: string; - }>; - export type FieldDefault = ReadonlyDeep_2<{ - name: string; - args: any[]; - }>; - export type FieldDefaultScalar = string | boolean | number; - export type Index = ReadonlyDeep_2<{ - model: string; - type: IndexType; - isDefinedOnField: boolean; - name?: string; - dbName?: string; - algorithm?: string; - clustered?: boolean; - fields: IndexField[]; - }>; - export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext'; - export type IndexField = ReadonlyDeep_2<{ - name: string; - sortOrder?: SortOrder; - length?: number; - operatorClass?: string; - }>; - export type SortOrder = 'asc' | 'desc'; - export type Schema = ReadonlyDeep_2<{ - rootQueryType?: string; - rootMutationType?: string; - inputObjectTypes: { - model?: InputType[]; - prisma: InputType[]; - }; - outputObjectTypes: { - model: OutputType[]; - prisma: OutputType[]; - }; - enumTypes: { - model?: SchemaEnum[]; - prisma: SchemaEnum[]; - }; - fieldRefTypes: { - prisma?: FieldRefType[]; - }; - }>; - export type Query = ReadonlyDeep_2<{ - name: string; - args: SchemaArg[]; - output: QueryOutput; - }>; - export type QueryOutput = ReadonlyDeep_2<{ - name: string; - isRequired: boolean; - isList: boolean; - }>; - export type TypeRef = { - isList: boolean; - type: string; - location: AllowedLocations; - namespace?: FieldNamespace; - }; - export type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>; - export type SchemaArg = ReadonlyDeep_2<{ - name: string; - comment?: string; - isNullable: boolean; - isRequired: boolean; - inputTypes: InputTypeRef[]; - deprecation?: Deprecation; - }>; - export type OutputType = ReadonlyDeep_2<{ - name: string; - fields: SchemaField[]; - }>; - export type SchemaField = ReadonlyDeep_2<{ - name: string; - isNullable?: boolean; - outputType: OutputTypeRef; - args: SchemaArg[]; - deprecation?: Deprecation; - documentation?: string; - }>; - export type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>; - export type Deprecation = ReadonlyDeep_2<{ - sinceVersion: string; - reason: string; - plannedRemovalVersion?: string; - }>; - export type InputType = ReadonlyDeep_2<{ - name: string; - constraints: { - maxNumFields: number | null; - minNumFields: number | null; - fields?: string[]; - }; - meta?: { - source?: string; - }; - fields: SchemaArg[]; - }>; - export type FieldRefType = ReadonlyDeep_2<{ - name: string; - allowTypes: FieldRefAllowType[]; - fields: SchemaArg[]; - }>; - export type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>; - export type ModelMapping = ReadonlyDeep_2<{ - model: string; - plural: string; - findUnique?: string | null; - findUniqueOrThrow?: string | null; - findFirst?: string | null; - findFirstOrThrow?: string | null; - findMany?: string | null; - create?: string | null; - createMany?: string | null; - createManyAndReturn?: string | null; - update?: string | null; - updateMany?: string | null; - upsert?: string | null; - delete?: string | null; - deleteMany?: string | null; - aggregate?: string | null; - groupBy?: string | null; - count?: string | null; - findRaw?: string | null; - aggregateRaw?: string | null; - }>; - export enum ModelAction { - findUnique = "findUnique", - findUniqueOrThrow = "findUniqueOrThrow", - findFirst = "findFirst", - findFirstOrThrow = "findFirstOrThrow", - findMany = "findMany", - create = "create", - createMany = "createMany", - createManyAndReturn = "createManyAndReturn", - update = "update", - updateMany = "updateMany", - upsert = "upsert", - delete = "delete", - deleteMany = "deleteMany", - groupBy = "groupBy", - count = "count",// TODO: count does not actually exist, why? - aggregate = "aggregate", - findRaw = "findRaw", - aggregateRaw = "aggregateRaw" - } -} - -export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel; - -export declare interface DriverAdapter extends Queryable { - /** - * Starts new transaction. - */ - transactionContext(): Promise>; - /** - * Optional method that returns extra connection info - */ - getConnectionInfo?(): Result_4; -} - -/** Client */ -export declare type DynamicClientExtensionArgs, ClientOptions> = { - [P in keyof C_]: unknown; -} & { - [K: symbol]: { - ctx: Optional, ITXClientDenyList> & { - $parent: Optional, ITXClientDenyList>; - }; - }; -}; - -export declare type DynamicClientExtensionThis, ClientOptions> = { - [P in keyof ExtArgs['client']]: Return; -} & { - [P in Exclude]: DynamicModelExtensionThis, ExtArgs, ClientOptions>; -} & { - [P in Exclude]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never; -} & { - [P in Exclude]: DynamicClientExtensionThisBuiltin[P]; -} & { - [K: symbol]: { - types: TypeMap['other']; - }; -}; - -export declare type DynamicClientExtensionThisBuiltin, ClientOptions> = { - $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call, ClientOptions>; - $transaction

[]>(arg: [...P], options?: { - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise>; - $transaction(fn: (client: Omit, ITXClientDenyList>) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: TypeMap['meta']['txIsolationLevel']; - }): Promise; - $disconnect(): Promise; - $connect(): Promise; -}; - -/** Model */ -export declare type DynamicModelExtensionArgs, ClientOptions> = { - [K in keyof M_]: K extends '$allModels' ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: {}; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof M_[K]]?: unknown; - } & { - [K: symbol]: { - ctx: DynamicModelExtensionThis, ExtArgs, ClientOptions> & { - $parent: DynamicClientExtensionThis; - } & { - $name: ModelKey; - } & { - /** - * @deprecated Use `$name` instead. - */ - name: ModelKey; - }; - }; - } : never; -}; - -export declare type DynamicModelExtensionFluentApi = { - [K in keyof TypeMap['model'][M]['payload']['objects']]: (args?: Exact>) => PrismaPromise, [K]> | Null> & DynamicModelExtensionFluentApi, ClientOptions>; -}; - -export declare type DynamicModelExtensionFnResult = P extends FluentOperation ? DynamicModelExtensionFluentApi & PrismaPromise | Null> : PrismaPromise>; - -export declare type DynamicModelExtensionFnResultBase = GetResult; - -export declare type DynamicModelExtensionFnResultNull

= P extends 'findUnique' | 'findFirst' ? null : never; - -export declare type DynamicModelExtensionOperationFn = {} extends TypeMap['model'][M]['operations'][P]['args'] ? (args?: Exact) => DynamicModelExtensionFnResult, ClientOptions> : (args: Exact) => DynamicModelExtensionFnResult, ClientOptions>; - -export declare type DynamicModelExtensionThis, ClientOptions> = { - [P in keyof ExtArgs['model'][Uncapitalize]]: Return][P]>; -} & { - [P in Exclude]>]: DynamicModelExtensionOperationFn; -} & { - [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize]>]: TypeMap['model'][M]['fields']; -} & { - [K: symbol]: { - types: TypeMap['model'][M]; - }; -}; - -/** Query */ -export declare type DynamicQueryExtensionArgs = { - [K in keyof Q_]: K extends '$allOperations' ? (args: { - model?: string; - operation: string; - args: any; - query: (args: any) => PrismaPromise; - }) => Promise : K extends '$allModels' ? { - [P in keyof Q_[K] | keyof TypeMap['model'][keyof TypeMap['model']]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb : P extends keyof TypeMap['model'][keyof TypeMap['model']]['operations'] ? DynamicQueryExtensionCb : never; - } : K extends TypeMap['meta']['modelProps'] ? { - [P in keyof Q_[K] | keyof TypeMap['model'][ModelKey]['operations'] | '$allOperations']?: P extends '$allOperations' ? DynamicQueryExtensionCb, keyof TypeMap['model'][ModelKey]['operations']> : P extends keyof TypeMap['model'][ModelKey]['operations'] ? DynamicQueryExtensionCb, P> : never; - } : K extends keyof TypeMap['other']['operations'] ? DynamicQueryExtensionCb<[TypeMap], 0, 'other', K> : never; -}; - -export declare type DynamicQueryExtensionCb = >(args: A) => Promise; - -export declare type DynamicQueryExtensionCbArgs = (_1 extends unknown ? _2 extends unknown ? { - args: DynamicQueryExtensionCbArgsArgs; - model: _0 extends 0 ? undefined : _1; - operation: _2; - query: >(args: A) => PrismaPromise; -} : never : never) & { - query: (args: DynamicQueryExtensionCbArgsArgs) => PrismaPromise; -}; - -export declare type DynamicQueryExtensionCbArgsArgs = _2 extends '$queryRaw' | '$executeRaw' ? Sql : TypeMap[_0][_1]['operations'][_2]['args']; - -/** Result */ -export declare type DynamicResultExtensionArgs = { - [K in keyof R_]: { - [P in keyof R_[K]]?: { - needs?: DynamicResultExtensionNeeds, R_[K][P]>; - compute(data: DynamicResultExtensionData, R_[K][P]>): any; - }; - }; -}; - -export declare type DynamicResultExtensionData = GetFindResult; - -export declare type DynamicResultExtensionNeeds = { - [K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never; -} & { - [N in keyof TypeMap['model'][M]['payload']['scalars']]?: boolean; -}; - -/** - * Placeholder value for "no text". - */ -export declare const empty: Sql; - -export declare type EmptyToUnknown = T; - -declare interface Engine { - /** The name of the engine. This is meant to be consumed externally */ - readonly name: string; - onBeforeExit(callback: () => Promise): void; - start(): Promise; - stop(): Promise; - version(forceRun?: boolean): Promise | string; - request(query: JsonQuery, options: RequestOptions_2): Promise>; - requestBatch(queries: JsonQuery[], options: RequestBatchOptions): Promise[]>; - transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise>; - transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo): Promise; - metrics(options: MetricsOptionsJson): Promise; - metrics(options: MetricsOptionsPrometheus): Promise; - applyPendingMigrations(): Promise; -} - -declare interface EngineConfig { - cwd: string; - dirname: string; - datamodelPath: string; - enableDebugLogs?: boolean; - allowTriggerPanic?: boolean; - prismaPath?: string; - generator?: GeneratorConfig; - overrideDatasources: Datasources; - showColors?: boolean; - logQueries?: boolean; - logLevel?: 'info' | 'warn'; - env: Record; - flags?: string[]; - clientVersion: string; - engineVersion: string; - previewFeatures?: string[]; - engineEndpoint?: string; - activeProvider?: string; - logEmitter: LogEmitter; - transactionOptions: Transaction_2.Options; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`. - * If set, this is only used in the library engine, and all queries would be performed through it, - * rather than Prisma's Rust drivers. - * @remarks only used by LibraryEngine.ts - */ - adapter?: ErrorCapturingDriverAdapter; - /** - * The contents of the schema encoded into a string - * @remarks only used by DataProxyEngine.ts - */ - inlineSchema: string; - /** - * The contents of the datasource url saved in a string - * @remarks only used by DataProxyEngine.ts - */ - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - /** - * The string hash that was produced for a given schema - * @remarks only used by DataProxyEngine.ts - */ - inlineSchemaHash: string; - /** - * The helper for interaction with OTEL tracing - * @remarks enabling is determined by the client and @prisma/instrumentation package - */ - tracingHelper: TracingHelper; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * Web Assembly module loading configuration - */ - engineWasm?: WasmLoadingConfig; - /** - * Allows Accelerate to use runtime utilities from the client. These are - * necessary for the AccelerateEngine to function correctly. - */ - accelerateUtils?: { - resolveDatasourceUrl: typeof resolveDatasourceUrl; - getBatchRequestPayload: typeof getBatchRequestPayload; - prismaGraphQLToJSError: typeof prismaGraphQLToJSError; - PrismaClientUnknownRequestError: typeof PrismaClientUnknownRequestError; - PrismaClientInitializationError: typeof PrismaClientInitializationError; - PrismaClientKnownRequestError: typeof PrismaClientKnownRequestError; - debug: (...args: any[]) => void; - engineVersion: string; - clientVersion: string; - }; -} - -declare type EngineEvent = E extends QueryEventType ? QueryEvent : LogEvent; - -declare type EngineEventType = QueryEventType | LogEventType; - -declare type EngineProtocol = 'graphql' | 'json'; - -declare type EngineSpan = { - span: boolean; - name: string; - trace_id: string; - span_id: string; - parent_span_id: string; - start_time: [number, number]; - end_time: [number, number]; - attributes?: Record; - links?: { - trace_id: string; - span_id: string; - }[]; - kind: EngineSpanKind; -}; - -declare type EngineSpanEvent = { - span: boolean; - spans: EngineSpan[]; -}; - -declare type EngineSpanKind = 'client' | 'internal'; - -declare type EnvPaths = { - rootEnvPath: string | null; - schemaEnvPath: string | undefined; -}; - -declare interface EnvValue { - fromEnvVar: null | string; - value: null | string; -} - -export declare type Equals = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? 1 : 0; - -declare type Error_2 = { - kind: 'GenericJs'; - id: number; -} | { - kind: 'UnsupportedNativeDataType'; - type: string; -} | { - kind: 'Postgres'; - code: string; - severity: string; - message: string; - detail: string | undefined; - column: string | undefined; - hint: string | undefined; -} | { - kind: 'Mysql'; - code: number; - message: string; - state: string; -} | { - kind: 'Sqlite'; - /** - * Sqlite extended error code: https://www.sqlite.org/rescode.html - */ - extendedCode: number; - message: string; -}; - -declare interface ErrorCapturingDriverAdapter extends DriverAdapter { - readonly errorRegistry: ErrorRegistry; -} - -declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal'; - -declare type ErrorRecord = { - error: unknown; -}; - -declare interface ErrorRegistry { - consumeError(id: number): ErrorRecord | undefined; -} - -declare interface ErrorWithBatchIndex { - batchRequestIdx?: number; -} - -declare type EventCallback = [E] extends ['beforeExit'] ? () => Promise : [E] extends [LogLevel] ? (event: EngineEvent) => void : never; - -export declare type Exact = (A extends unknown ? (W extends A ? { - [K in keyof A]: Exact; -} : W) : never) | (A extends Narrowable ? A : never); - -/** - * Defines Exception. - * - * string or an object with one of (message or name or code) and optional stack - */ -declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string; - -declare interface ExceptionWithCode { - code: string | number; - name?: string; - message?: string; - stack?: string; -} - -declare interface ExceptionWithMessage { - code?: string | number; - message: string; - name?: string; - stack?: string; -} - -declare interface ExceptionWithName { - code?: string | number; - message?: string; - name: string; - stack?: string; -} - -declare type ExtendedEventType = LogLevel | 'beforeExit'; - -declare type ExtendedSpanOptions = SpanOptions & { - /** The name of the span */ - name: string; - internal?: boolean; - middleware?: boolean; - /** Whether it propagates context (?=true) */ - active?: boolean; - /** The context to append the span to */ - context?: Context; -}; - -/** $extends, defineExtension */ -export declare interface ExtendsHook, TypeMap extends TypeMapDef = Call, ClientOptions = {}> { - extArgs: ExtArgs; - , MergedArgs extends InternalArgs = MergeExtArgs>(extension: ((client: DynamicClientExtensionThis) => { - $extends: { - extArgs: Args; - }; - }) | { - name?: string; - query?: DynamicQueryExtensionArgs; - result?: DynamicResultExtensionArgs & R; - model?: DynamicModelExtensionArgs & M; - client?: DynamicClientExtensionArgs & C; - }): { - extends: DynamicClientExtensionThis, TypeMapCb, MergedArgs, ClientOptions>; - define: (client: any) => { - $extends: { - extArgs: Args; - }; - }; - }[Variant]; -} - -export declare type ExtensionArgs = Optional; - -declare namespace Extensions { - export { - defineExtension, - getExtensionContext - } -} -export { Extensions } - -declare namespace Extensions_2 { - export { - InternalArgs, - DefaultArgs, - GetPayloadResultExtensionKeys, - GetPayloadResultExtensionObject, - GetPayloadResult, - GetSelect, - GetOmit, - DynamicQueryExtensionArgs, - DynamicQueryExtensionCb, - DynamicQueryExtensionCbArgs, - DynamicQueryExtensionCbArgsArgs, - DynamicResultExtensionArgs, - DynamicResultExtensionNeeds, - DynamicResultExtensionData, - DynamicModelExtensionArgs, - DynamicModelExtensionThis, - DynamicModelExtensionOperationFn, - DynamicModelExtensionFnResult, - DynamicModelExtensionFnResultBase, - DynamicModelExtensionFluentApi, - DynamicModelExtensionFnResultNull, - DynamicClientExtensionArgs, - DynamicClientExtensionThis, - ClientBuiltInProp, - DynamicClientExtensionThisBuiltin, - ExtendsHook, - MergeExtArgs, - AllModelsToStringIndex, - TypeMapDef, - DevTypeMapDef, - DevTypeMapFnDef, - ClientOptionDef, - ClientOtherOps, - TypeMapCbDef, - ModelKey, - RequiredExtensionArgs as UserArgs - } -} - -export declare type ExtractGlobalOmit = Options extends { - omit: { - [K in ModelName]: infer GlobalOmit; - }; -} ? GlobalOmit : {}; - -declare type Fetch = typeof nodeFetch; - -/** - * A reference to a specific field of a specific model - */ -export declare interface FieldRef { - readonly modelName: Model; - readonly name: string; - readonly typeName: FieldType; - readonly isList: boolean; -} - -export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete'; - -export declare interface Fn { - params: Params; - returns: Returns; -} - -declare interface GeneratorConfig { - name: string; - output: EnvValue | null; - isCustomOutput?: boolean; - provider: EnvValue; - config: { - /** `output` is a reserved name and will only be available directly at `generator.output` */ - output?: never; - /** `provider` is a reserved name and will only be available directly at `generator.provider` */ - provider?: never; - /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */ - binaryTargets?: never; - /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */ - previewFeatures?: never; - } & { - [key: string]: string | string[] | undefined; - }; - binaryTargets: BinaryTargetsEnvValue[]; - previewFeatures: string[]; - envPaths?: EnvPaths; - sourceFilePath: string; -} - -export declare type GetAggregateResult

= { - [K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count : { - [J in keyof A[K] & string]: P['scalars'][J] | null; - }; -}; - -declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2): QueryEngineBatchRequest; - -export declare type GetBatchResult = { - count: number; -}; - -export declare type GetCountResult = A extends { - select: infer S; -} ? (S extends true ? number : Count) : number; - -declare function getExtensionContext(that: T): Context_2; - -export declare type GetFindResult

= Equals extends 1 ? DefaultSelection : A extends { - select: infer S extends object; -} & Record | { - include: infer I extends object; -} & Record ? { - [K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? GetFindResult | SelectField & null : never : K extends '_count' ? Count> : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection[] : never : P extends SelectablePayloadFields ? O extends OperationPayload ? DefaultSelection | SelectField & null : never : P extends { - scalars: { - [k in K]: infer O; - }; - } ? O : K extends '_count' ? Count : never; -} & (A extends { - include: any; -} & Record ? DefaultSelection : unknown) : DefaultSelection; - -export declare type GetGroupByResult

= A extends { - by: string[]; -} ? Array & { - [K in A['by'][number]]: P['scalars'][K]; -}> : A extends { - by: string; -} ? Array & { - [K in A['by']]: P['scalars'][K]; -}> : {}[]; - -export declare type GetOmit = { - [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType; -}; - -export declare type GetPayloadResult, R extends InternalArgs['result'][string]> = Omit> & GetPayloadResultExtensionObject; - -export declare type GetPayloadResultExtensionKeys = KR; - -export declare type GetPayloadResultExtensionObject = { - [K in GetPayloadResultExtensionKeys]: R[K] extends () => { - compute: (...args: any) => infer C; - } ? C : never; -}; - -export declare function getPrismaClient(config: GetPrismaClientConfig): { - new (optionsArg?: PrismaClientOptions): { - _originalClient: any; - _runtimeDataModel: RuntimeDataModel; - _requestHandler: RequestHandler; - _connectionPromise?: Promise | undefined; - _disconnectionPromise?: Promise | undefined; - _engineConfig: EngineConfig; - _accelerateEngineConfig: AccelerateEngineConfig; - _clientVersion: string; - _errorFormat: ErrorFormat; - _tracingHelper: TracingHelper; - _metrics: MetricsClient; - _middlewares: MiddlewareHandler; - _previewFeatures: string[]; - _activeProvider: string; - _globalOmit?: GlobalOmitOptions | undefined; - _extensions: MergedExtensionsList; - _engine: Engine; - /** - * A fully constructed/applied Client that references the parent - * PrismaClient. This is used for Client extensions only. - */ - _appliedParent: any; - _createPrismaPromise: PrismaPromiseFactory; - /** - * Hook a middleware into the client - * @param middleware to hook - */ - $use(middleware: QueryMiddleware): void; - $on(eventType: E, callback: EventCallback): void; - $connect(): Promise; - /** - * Disconnect from the database - */ - $disconnect(): Promise; - /** - * Executes a raw query and always returns a number - */ - $executeRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Executes a raw command only for MongoDB - * - * @param command - * @returns - */ - $runCommandRaw(command: Record): PrismaPromise_2; - /** - * Executes a raw query and returns selected data - */ - $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper): Promise; - /** - * Executes a raw query provided through a safe tag function - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2; - /** - * Counterpart to $queryRaw, that returns strongly typed results - * @param typedSql - */ - $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2; - /** - * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections - * @see https://github.com/prisma/prisma/issues/7142 - * - * @param query - * @param values - * @returns - */ - $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2; - /** - * Execute a batch of requests in a transaction - * @param requests - * @param options - */ - _transactionWithArray({ promises, options, }: { - promises: Array>; - options?: BatchTransactionOptions; - }): Promise; - /** - * Perform a long-running transaction - * @param callback - * @param options - * @returns - */ - _transactionWithCallback({ callback, options, }: { - callback: (client: Client) => Promise; - options?: Options; - }): Promise; - _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client; - /** - * Execute queries within a transaction - * @param input a callback or a query list - * @param options to set timeouts (callback) - * @returns - */ - $transaction(input: any, options?: any): Promise; - /** - * Runs the middlewares over params before executing a request - * @param internalParams - * @returns - */ - _request(internalParams: InternalRequestParams): Promise; - _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise; - readonly $metrics: MetricsClient; - /** - * Shortcut for checking a preview flag - * @param feature preview flag - * @returns - */ - _hasPreviewFlag(feature: string): boolean; - $applyPendingMigrations(): Promise; - $extends: typeof $extends; - readonly [Symbol.toStringTag]: string; - }; -}; - -/** - * Config that is stored into the generated client. When the generated client is - * loaded, this same config is passed to {@link getPrismaClient} which creates a - * closure with that config around a non-instantiated [[PrismaClient]]. - */ -declare type GetPrismaClientConfig = { - runtimeDataModel: RuntimeDataModel; - generator?: GeneratorConfig; - relativeEnvPaths: { - rootEnvPath?: string | null; - schemaEnvPath?: string | null; - }; - relativePath: string; - dirname: string; - filename?: string; - clientVersion: string; - engineVersion: string; - datasourceNames: string[]; - activeProvider: ActiveConnectorType; - /** - * The contents of the schema encoded into a string - * @remarks only used for the purpose of data proxy - */ - inlineSchema: string; - /** - * A special env object just for the data proxy edge runtime. - * Allows bundlers to inject their own env variables (Vercel). - * Allows platforms to declare global variables as env (Workers). - * @remarks only used for the purpose of data proxy - */ - injectableEdgeEnv?: () => LoadedEnv; - /** - * The contents of the datasource url saved in a string. - * This can either be an env var name or connection string. - * It is needed by the client to connect to the Data Proxy. - * @remarks only used for the purpose of data proxy - */ - inlineDatasources: { - [name in string]: { - url: EnvValue; - }; - }; - /** - * The string hash that was produced for a given schema - * @remarks only used for the purpose of data proxy - */ - inlineSchemaHash: string; - /** - * A marker to indicate that the client was not generated via `prisma - * generate` but was generated via `generate --postinstall` script instead. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - postinstall?: boolean; - /** - * Information about the CI where the Prisma Client has been generated. The - * name of the CI environment is stored at generation time because CI - * information is not always available at runtime. Moreover, the edge client - * has no notion of environment variables, so this works around that. - * @remarks used to error for Vercel/Netlify for schema caching issues - */ - ciName?: string; - /** - * Information about whether we have not found a schema.prisma file in the - * default location, and that we fell back to finding the schema.prisma file - * in the current working directory. This usually means it has been bundled. - */ - isBundled?: boolean; - /** - * A boolean that is `false` when the client was generated with --no-engine. At - * runtime, this means the client will be bound to be using the Data Proxy. - */ - copyEngine?: boolean; - /** - * Optional wasm loading configuration - */ - engineWasm?: WasmLoadingConfig; -}; - -export declare type GetResult = { - findUnique: GetFindResult | null; - findUniqueOrThrow: GetFindResult; - findFirst: GetFindResult | null; - findFirstOrThrow: GetFindResult; - findMany: GetFindResult[]; - create: GetFindResult; - createMany: GetBatchResult; - createManyAndReturn: GetFindResult[]; - update: GetFindResult; - updateMany: GetBatchResult; - upsert: GetFindResult; - delete: GetFindResult; - deleteMany: GetBatchResult; - aggregate: GetAggregateResult; - count: GetCountResult; - groupBy: GetGroupByResult; - $queryRaw: unknown; - $queryRawTyped: unknown; - $executeRaw: number; - $queryRawUnsafe: unknown; - $executeRawUnsafe: number; - $runCommandRaw: JsonObject; - findRaw: JsonObject; - aggregateRaw: JsonObject; -}[OperationName]; - -export declare function getRuntime(): GetRuntimeOutput; - -declare type GetRuntimeOutput = { - id: Runtime; - prettyName: string; - isEdge: boolean; -}; - -export declare type GetSelect, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = { - [K in KR | keyof Base]?: K extends KR ? boolean : Base[K]; -}; - -declare type GlobalOmitOptions = { - [modelName: string]: { - [fieldName: string]: boolean; - }; -}; - -declare type HandleErrorParams = { - args: JsArgs; - error: any; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - modelName?: string; - globalOmit?: GlobalOmitOptions; -}; - -/** - * Defines High-Resolution Time. - * - * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. - * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. - * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. - * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: - * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210. - * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds: - * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000. - * This is represented in HrTime format as [1609504210, 150000000]. - */ -declare type HrTime = [number, number]; - -/** - * Matches a JSON array. - * Unlike \`JsonArray\`, readonly arrays are assignable to this type. - */ -export declare interface InputJsonArray extends ReadonlyArray { -} - -/** - * Matches a JSON object. - * Unlike \`JsonObject\`, this type allows undefined and read-only properties. - */ -export declare type InputJsonObject = { - readonly [Key in string]?: InputJsonValue | null; -}; - -/** - * Matches any valid value that can be used as an input for operations like - * create and update as the value of a JSON field. Unlike \`JsonValue\`, this - * type allows read-only arrays and read-only object properties and disallows - * \`null\` at the top level. - * - * \`null\` cannot be used as the value of a JSON field because its meaning - * would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or - * \`Prisma.DbNull\` to clear the JSON value and set the field to the database - * NULL value instead. - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values - */ -export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | { - toJSON(): unknown; -}; - -declare type InteractiveTransactionInfo = { - /** - * Transaction ID returned by the query engine. - */ - id: string; - /** - * Arbitrary payload the meaning of which depends on the `Engine` implementation. - * For example, `DataProxyEngine` needs to associate different API endpoints with transactions. - * In `LibraryEngine` and `BinaryEngine` it is currently not used. - */ - payload: Payload; -}; - -declare type InteractiveTransactionOptions = Transaction_2.InteractiveTransactionInfo; - -export declare type InternalArgs = { - result: { - [K in keyof R]: { - [P in keyof R[K]]: () => R[K][P]; - }; - }; - model: { - [K in keyof M]: { - [P in keyof M[K]]: () => M[K][P]; - }; - }; - query: { - [K in keyof Q]: { - [P in keyof Q[K]]: () => Q[K][P]; - }; - }; - client: { - [K in keyof C]: () => C[K]; - }; -}; - -declare type InternalRequestParams = { - /** - * The original client method being called. - * Even though the rootField / operation can be changed, - * this method stays as it is, as it's what the user's - * code looks like - */ - clientMethod: string; - /** - * Name of js model that triggered the request. Might be used - * for warnings or error messages - */ - jsModelName?: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - unpacker?: Unpacker; - otelParentCtx?: Context; - /** Used to "desugar" a user input into an "expanded" one */ - argsMapper?: (args?: UserArgs_2) => UserArgs_2; - /** Used to convert args for middleware and back */ - middlewareArgsMapper?: MiddlewareArgsMapper; - /** Used for Accelerate client extension via Data Proxy */ - customDataProxyFetch?: (fetch: Fetch) => Fetch; -} & Omit; - -declare enum IsolationLevel { - ReadUncommitted = "ReadUncommitted", - ReadCommitted = "ReadCommitted", - RepeatableRead = "RepeatableRead", - Snapshot = "Snapshot", - Serializable = "Serializable" -} - -declare function isSkip(value: unknown): value is Skip; - -export declare function isTypedSql(value: unknown): value is UnknownTypedSql; - -export declare type ITXClientDenyList = (typeof denylist)[number]; - -export declare const itxClientDenyList: readonly (string | symbol)[]; - -declare interface Job { - resolve: (data: any) => void; - reject: (data: any) => void; - request: any; -} - -/** - * Create a SQL query for a list of values. - */ -export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql; - -export declare type JsArgs = { - select?: Selection_2; - include?: Selection_2; - omit?: Omission; - [argName: string]: JsInputValue; -}; - -export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef | JsInputValue[] | Skip | { - [key: string]: JsInputValue; -}; - -declare type JsonArgumentValue = number | string | boolean | null | RawTaggedValue | JsonArgumentValue[] | { - [key: string]: JsonArgumentValue; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON array. - */ -export declare interface JsonArray extends Array { -} - -export declare type JsonBatchQuery = { - batch: JsonQuery[]; - transaction?: { - isolationLevel?: Transaction_2.IsolationLevel; - }; -}; - -export declare interface JsonConvertible { - toJSON(): unknown; -} - -declare type JsonFieldSelection = { - arguments?: Record | RawTaggedValue; - selection: JsonSelectionSet; -}; - -declare class JsonNull extends NullTypesEnumValue { -} - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches a JSON object. - * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. - */ -export declare type JsonObject = { - [Key in string]?: JsonValue; -}; - -export declare type JsonQuery = { - modelName?: string; - action: JsonQueryAction; - query: JsonFieldSelection; -}; - -declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw'; - -declare type JsonSelectionSet = { - $scalars?: boolean; - $composites?: boolean; -} & { - [fieldName: string]: boolean | JsonFieldSelection; -}; - -/** - * From https://github.com/sindresorhus/type-fest/ - * Matches any valid JSON value. - */ -export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null; - -export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | { - [key: string]: JsOutputValue; -}; - -export declare type JsPromise = Promise & {}; - -declare type KnownErrorParams = { - code: string; - clientVersion: string; - meta?: Record; - batchRequestIdx?: number; -}; - -/** - * A pointer from the current {@link Span} to another span in the same trace or - * in a different trace. - * Few examples of Link usage. - * 1. Batch Processing: A batch of elements may contain elements associated - * with one or more traces/spans. Since there can only be one parent - * SpanContext, Link is used to keep reference to SpanContext of all - * elements in the batch. - * 2. Public Endpoint: A SpanContext in incoming client request on a public - * endpoint is untrusted from service provider perspective. In such case it - * is advisable to start a new trace with appropriate sampling decision. - * However, it is desirable to associate incoming SpanContext to new trace - * initiated on service provider side so two traces (from Client and from - * Service Provider) can be correlated. - */ -declare interface Link { - /** The {@link SpanContext} of a linked span. */ - context: SpanContext; - /** A set of {@link SpanAttributes} on the link. */ - attributes?: SpanAttributes; - /** Count of attributes of the link that were dropped due to collection limits */ - droppedAttributesCount?: number; -} - -declare type LoadedEnv = { - message?: string; - parsed: { - [x: string]: string; - }; -} | undefined; - -declare type LocationInFile = { - fileName: string; - lineNumber: number | null; - columnNumber: number | null; -}; - -declare type LogDefinition = { - level: LogLevel; - emit: 'stdout' | 'event'; -}; - -/** - * Typings for the events we emit. - * - * @remarks - * If this is updated, our edge runtime shim needs to be updated as well. - */ -declare type LogEmitter = { - on(event: E, listener: (event: EngineEvent) => void): LogEmitter; - emit(event: QueryEventType, payload: QueryEvent): boolean; - emit(event: LogEventType, payload: LogEvent): boolean; -}; - -declare type LogEvent = { - timestamp: Date; - message: string; - target: string; -}; - -declare type LogEventType = 'info' | 'warn' | 'error'; - -declare type LogLevel = 'info' | 'query' | 'warn' | 'error'; - -/** - * Generates more strict variant of an enum which, unlike regular enum, - * throws on non-existing property access. This can be useful in following situations: - * - we have an API, that accepts both `undefined` and `SomeEnumType` as an input - * - enum values are generated dynamically from DMMF. - * - * In that case, if using normal enums and no compile-time typechecking, using non-existing property - * will result in `undefined` value being used, which will be accepted. Using strict enum - * in this case will help to have a runtime exception, telling you that you are probably doing something wrong. - * - * Note: if you need to check for existence of a value in the enum you can still use either - * `in` operator or `hasOwnProperty` function. - * - * @param definition - * @returns - */ -export declare function makeStrictEnum>(definition: T): T; - -export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql; - -/** - * Class that holds the list of all extensions, applied to particular instance, - * as well as resolved versions of the components that need to apply on - * different levels. Main idea of this class: avoid re-resolving as much of the - * stuff as possible when new extensions are added while also delaying the - * resolve until the point it is actually needed. For example, computed fields - * of the model won't be resolved unless the model is actually queried. Neither - * adding extensions with `client` component only cause other components to - * recompute. - */ -declare class MergedExtensionsList { - private head?; - private constructor(); - static empty(): MergedExtensionsList; - static single(extension: ExtensionArgs): MergedExtensionsList; - isEmpty(): boolean; - append(extension: ExtensionArgs): MergedExtensionsList; - getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined; - getAllClientExtensions(): ClientArg | undefined; - getAllModelExtensions(dmmfModelName: string): ModelArg | undefined; - getAllQueryCallbacks(jsModelName: string, operation: string): any; - getAllBatchQueryCallbacks(): BatchQueryOptionsCb[]; -} - -export declare type MergeExtArgs, Args extends Record> = ComputeDeep & AllModelsToStringIndex>; - -export declare type Metric = { - key: string; - value: T; - labels: Record; - description: string; -}; - -export declare type MetricHistogram = { - buckets: MetricHistogramBucket[]; - sum: number; - count: number; -}; - -export declare type MetricHistogramBucket = [maxValue: number, count: number]; - -export declare type Metrics = { - counters: Metric[]; - gauges: Metric[]; - histograms: Metric[]; -}; - -export declare class MetricsClient { - private _engine; - constructor(engine: Engine); - /** - * Returns all metrics gathered up to this point in prometheus format. - * Result of this call can be exposed directly to prometheus scraping endpoint - * - * @param options - * @returns - */ - prometheus(options?: MetricsOptions): Promise; - /** - * Returns all metrics gathered up to this point in prometheus format. - * - * @param options - * @returns - */ - json(options?: MetricsOptions): Promise; -} - -declare type MetricsOptions = { - /** - * Labels to add to every metrics in key-value format - */ - globalLabels?: Record; -}; - -declare type MetricsOptionsCommon = { - globalLabels?: Record; -}; - -declare type MetricsOptionsJson = { - format: 'json'; -} & MetricsOptionsCommon; - -declare type MetricsOptionsPrometheus = { - format: 'prometheus'; -} & MetricsOptionsCommon; - -declare type MiddlewareArgsMapper = { - requestArgsToMiddlewareArgs(requestArgs: RequestArgs): MiddlewareArgs; - middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs; -}; - -declare class MiddlewareHandler { - private _middlewares; - use(middleware: M): void; - get(id: number): M | undefined; - has(id: number): boolean; - length(): number; -} - -export declare type ModelArg = { - [MethodName in string]: unknown; -}; - -export declare type ModelArgs = { - model: { - [ModelName in string]: ModelArg; - }; -}; - -export declare type ModelKey = M extends keyof TypeMap['model'] ? M : Capitalize; - -export declare type ModelQueryOptionsCb = (args: ModelQueryOptionsCbArgs) => Promise; - -export declare type ModelQueryOptionsCbArgs = { - model: string; - operation: string; - args: JsArgs; - query: (args: JsArgs) => Promise; -}; - -export declare type NameArgs = { - name?: string; -}; - -export declare type Narrow = { - [K in keyof A]: A[K] extends Function ? A[K] : Narrow; -} | (A extends Narrowable ? A : never); - -export declare type Narrowable = string | number | bigint | boolean | []; - -export declare type NeverToUnknown = [T] extends [never] ? unknown : T; - -/** - * Imitates `fetch` via `https` to only suit our needs, it does nothing more. - * This is because we cannot bundle `node-fetch` as it uses many other Node.js - * utilities, while also bloating our bundles. This approach is much leaner. - * @param url - * @param options - * @returns - */ -declare function nodeFetch(url: string, options?: RequestOptions): Promise; - -declare class NodeHeaders { - readonly headers: Map; - constructor(init?: Record); - append(name: string, value: string): void; - delete(name: string): void; - get(name: string): string | null; - has(name: string): boolean; - set(name: string, value: string): void; - forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any): void; -} - -/** - * @deprecated Please don´t rely on type checks to this error anymore. - * This will become a regular `PrismaClientKnownRequestError` with code `P2025` - * in the future major version of the client. - * Instead of `error instanceof Prisma.NotFoundError` use `error.code === "P2025"`. - */ -export declare class NotFoundError extends PrismaClientKnownRequestError { - constructor(message: string, clientVersion: string); -} - -declare class NullTypesEnumValue extends ObjectEnumValue { - _getNamespace(): string; -} - -/** - * List of Prisma enums that must use unique objects instead of strings as their values. - */ -export declare const objectEnumNames: string[]; - -/** - * Base class for unique values of object-valued enums. - */ -export declare abstract class ObjectEnumValue { - constructor(arg?: symbol); - abstract _getNamespace(): string; - _getName(): string; - toString(): string; -} - -export declare const objectEnumValues: { - classes: { - DbNull: typeof DbNull; - JsonNull: typeof JsonNull; - AnyNull: typeof AnyNull; - }; - instances: { - DbNull: DbNull; - JsonNull: JsonNull; - AnyNull: AnyNull; - }; -}; - -declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"]; - -export declare type Omission = Record; - -declare type Omit_2 = { - [P in keyof T as P extends K ? never : P]: T[P]; -}; -export { Omit_2 as Omit } - -export declare type OmitValue = Key extends keyof Omit ? Omit[Key] : false; - -export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw'; - -export declare type OperationPayload = { - name: string; - scalars: { - [ScalarName in string]: unknown; - }; - objects: { - [ObjectName in string]: unknown; - }; - composites: { - [CompositeName in string]: unknown; - }; -}; - -export declare type Optional = { - [P in K & keyof O]?: O[P]; -} & { - [P in Exclude]: O[P]; -}; - -export declare type OptionalFlat = { - [K in keyof T]?: T[K]; -}; - -export declare type OptionalKeys = { - [K in keyof O]-?: {} extends Pick_2 ? K : never; -}[keyof O]; - -declare type Options = { - maxWait?: number; - timeout?: number; - isolationLevel?: IsolationLevel; -}; - -declare type Options_2 = { - clientVersion: string; -}; - -export declare type Or = { - 0: { - 0: 0; - 1: 1; - }; - 1: { - 0: 1; - 1: 1; - }; -}[A][B]; - -export declare type PatchFlat = O1 & Omit_2; - -export declare type Path = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path : Default : O : never; - -export declare type Payload = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? T[symbol]['types']['payload'] : any; - -export declare type PayloadToResult = RenameAndNestPayloadKeys

> = { - [K in keyof O]?: O[K][K] extends any[] ? PayloadToResult[] : O[K][K] extends object ? PayloadToResult : O[K][K]; -}; - -declare type Pick_2 = { - [P in keyof T as P extends K ? P : never]: T[P]; -}; -export { Pick_2 as Pick } - -export declare class PrismaClientInitializationError extends Error { - clientVersion: string; - errorCode?: string; - retryable?: boolean; - constructor(message: string, clientVersion: string, errorCode?: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex { - code: string; - meta?: Record; - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare type PrismaClientOptions = { - /** - * Overwrites the primary datasource url from your schema.prisma file - */ - datasourceUrl?: string; - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale. - */ - adapter?: DriverAdapter | null; - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources; - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat; - /** - * The default values for Transaction options - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: Transaction_2.Options; - /** - * @example - * \`\`\` - * // Defaults to stdout - * log: ['query', 'info', 'warn'] - * - * // Emit as events - * log: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * ] - * \`\`\` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: Array; - omit?: GlobalOmitOptions; - /** - * @internal - * You probably don't want to use this. \`__internal\` is used by internal tooling. - */ - __internal?: { - debug?: boolean; - engine?: { - cwd?: string; - binaryPath?: string; - endpoint?: string; - allowTriggerPanic?: boolean; - }; - /** This can be used for testing purposes */ - configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig; - }; -}; - -export declare class PrismaClientRustPanicError extends Error { - clientVersion: string; - constructor(message: string, clientVersion: string); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex { - clientVersion: string; - batchRequestIdx?: number; - constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams); - get [Symbol.toStringTag](): string; -} - -export declare class PrismaClientValidationError extends Error { - name: string; - clientVersion: string; - constructor(message: string, { clientVersion }: Options_2); - get [Symbol.toStringTag](): string; -} - -declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError; - -export declare interface PrismaPromise extends Promise { - [Symbol.toStringTag]: 'PrismaPromise'; -} - -/** - * Prisma's `Promise` that is backwards-compatible. All additions on top of the - * original `Promise` are optional so that it can be backwards-compatible. - * @see [[createPrismaPromise]] - */ -declare interface PrismaPromise_2 extends Promise { - /** - * Extension of the original `.then` function - * @param onfulfilled same as regular promises - * @param onrejected same as regular promises - * @param transaction transaction options - */ - then(onfulfilled?: (value: A) => R1 | PromiseLike, onrejected?: (error: unknown) => R2 | PromiseLike, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.catch` function - * @param onrejected same as regular promises - * @param transaction transaction options - */ - catch(onrejected?: ((reason: any) => R | PromiseLike) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Extension of the original `.finally` function - * @param onfinally same as regular promises - * @param transaction transaction options - */ - finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise; - /** - * Called when executing a batch of regular tx - * @param transaction transaction options for batch tx - */ - requestTransaction?(transaction: PrismaPromiseBatchTransaction): PromiseLike; -} - -declare type PrismaPromiseBatchTransaction = { - kind: 'batch'; - id: number; - isolationLevel?: IsolationLevel; - index: number; - lock: PromiseLike; -}; - -declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => PrismaPromise_2; - -/** - * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which - * is essentially a proxy for `Promise`. All the transaction-compatible client - * methods return one, this allows for pre-preparing queries without executing - * them until `.then` is called. It's the foundation of Prisma's query batching. - * @param callback that will be wrapped within our promise implementation - * @see [[PrismaPromise]] - * @returns - */ -declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2; - -declare type PrismaPromiseInteractiveTransaction = { - kind: 'itx'; - id: string; - payload: PayloadType; -}; - -declare type PrismaPromiseTransaction = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction; - -export declare const PrivateResultType: unique symbol; - -declare namespace Public { - export { - validator - } -} -export { Public } - -declare namespace Public_2 { - export { - Args, - Result, - Payload, - PrismaPromise, - Operation, - Exact - } -} - -declare type Query = { - sql: string; - args: Array; - argTypes: Array; -}; - -declare interface Queryable { - readonly provider: 'mysql' | 'postgres' | 'sqlite'; - readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {}); - /** - * Execute a query given as SQL, interpolating the given parameters, - * and returning the type-aware result set of the query. - * - * This is the preferred way of executing `SELECT` queries. - */ - queryRaw(params: Query): Promise>; - /** - * Execute a query given as SQL, interpolating the given parameters, - * and returning the number of affected rows. - * - * This is the preferred way of executing `INSERT`, `UPDATE`, `DELETE` queries, - * as well as transactional queries. - */ - executeRaw(params: Query): Promise>; -} - -declare type QueryEngineBatchGraphQLRequest = { - batch: QueryEngineRequest[]; - transaction?: boolean; - isolationLevel?: Transaction_2.IsolationLevel; -}; - -declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery; - -declare type QueryEngineConfig = { - datamodel: string; - configDir: string; - logQueries: boolean; - ignoreEnvVarErrors: boolean; - datasourceOverrides: Record; - env: Record; - logLevel: QueryEngineLogLevel; - telemetry?: QueryEngineTelemetry; - engineProtocol: EngineProtocol; -}; - -declare interface QueryEngineConstructor { - new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingDriverAdapter): QueryEngineInstance; -} - -declare type QueryEngineInstance = { - connect(headers: string): Promise; - disconnect(headers: string): Promise; - /** - * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest` - * @param headersStr JSON.stringified `QueryEngineRequestHeaders` - */ - query(requestStr: string, headersStr: string, transactionId?: string): Promise; - sdlSchema(): Promise; - dmmf(traceparent: string): Promise; - startTransaction(options: string, traceHeaders: string): Promise; - commitTransaction(id: string, traceHeaders: string): Promise; - rollbackTransaction(id: string, traceHeaders: string): Promise; - metrics(options: string): Promise; - applyPendingMigrations(): Promise; -}; - -declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off'; - -declare type QueryEngineRequest = { - query: string; - variables: Object; -}; - -declare type QueryEngineResult = { - data: T; - elapsed: number; -}; - -declare type QueryEngineTelemetry = { - enabled: Boolean; - endpoint: string; -}; - -declare type QueryEvent = { - timestamp: Date; - query: string; - params: string; - duration: number; - target: string; -}; - -declare type QueryEventType = 'query'; - -declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise) => Promise; - -declare type QueryMiddlewareParams = { - /** The model this is executed on */ - model?: string; - /** The action that is being handled */ - action: Action; - /** TODO what is this */ - dataPath: string[]; - /** TODO what is this */ - runInTransaction: boolean; - args?: UserArgs_2; -}; - -export declare type QueryOptions = { - query: { - [ModelName in string]: { - [ModelAction in string]: ModelQueryOptionsCb; - } | QueryOptionsCb; - }; -}; - -export declare type QueryOptionsCb = (args: QueryOptionsCbArgs) => Promise; - -export declare type QueryOptionsCbArgs = { - model?: string; - operation: string; - args: JsArgs | RawQueryArgs; - query: (args: JsArgs | RawQueryArgs) => Promise; -}; - -/** - * Create raw SQL statement. - */ -export declare function raw(value: string): Sql; - -export declare type RawParameters = { - __prismaRawParameters__: true; - values: string; -}; - -export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]]; - -declare type RawTaggedValue = { - $type: 'Raw'; - value: unknown; -}; - -/** - * Supported value or SQL instance. - */ -export declare type RawValue = Value | Sql; - -export declare type ReadonlyDeep = { - readonly [K in keyof T]: ReadonlyDeep; -}; - -declare type ReadonlyDeep_2 = { - +readonly [K in keyof O]: ReadonlyDeep_2; -}; - -declare type Record_2 = { - [P in T]: U; -}; -export { Record_2 as Record } - -export declare type RenameAndNestPayloadKeys

= { - [K in keyof P as K extends 'scalars' | 'objects' | 'composites' ? keyof P[K] : never]: P[K]; -}; - -declare type RequestBatchOptions = { - transaction?: TransactionOptions_2; - traceparent?: string; - numTry?: number; - containsWrite: boolean; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare interface RequestError { - error: string; - user_facing_error: { - is_panic: boolean; - message: string; - meta?: Record; - error_code?: string; - batch_request_idx?: number; - }; -} - -declare class RequestHandler { - client: Client; - dataloader: DataLoader; - private logEmitter?; - constructor(client: Client, logEmitter?: LogEmitter); - request(params: RequestParams): Promise; - mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResult): any; - /** - * Handles the error and logs it, logging the error is done synchronously waiting for the event - * handlers to finish. - */ - handleAndLogRequestError(params: HandleErrorParams): never; - handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never; - sanitizeMessage(message: any): any; - unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any; - get [Symbol.toStringTag](): string; -} - -declare type RequestOptions = { - method?: string; - headers?: Record; - body?: string; -}; - -declare type RequestOptions_2 = { - traceparent?: string; - numTry?: number; - interactiveTransaction?: InteractiveTransactionOptions; - isWrite: boolean; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare type RequestParams = { - modelName?: string; - action: Action; - protocolQuery: JsonQuery; - dataPath: string[]; - clientMethod: string; - callsite?: CallSite; - transaction?: PrismaPromiseTransaction; - extensions: MergedExtensionsList; - args?: any; - headers?: Record; - unpacker?: Unpacker; - otelParentCtx?: Context; - otelChildCtx?: Context; - globalOmit?: GlobalOmitOptions; - customDataProxyFetch?: (fetch: Fetch) => Fetch; -}; - -declare type RequestResponse = { - ok: boolean; - url: string; - statusText?: string; - status: number; - headers: NodeHeaders; - text: () => Promise; - json: () => Promise; -}; - -declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions; -export { RequiredExtensionArgs } -export { RequiredExtensionArgs as UserArgs } - -export declare type RequiredKeys = { - [K in keyof O]-?: {} extends Pick_2 ? never : K; -}[keyof O]; - -declare function resolveDatasourceUrl({ inlineDatasources, overrideDatasources, env, clientVersion, }: { - inlineDatasources: GetPrismaClientConfig['inlineDatasources']; - overrideDatasources: Datasources; - env: Record; - clientVersion: string; -}): string; - -export declare type Result = T extends { - [K: symbol]: { - types: { - payload: any; - }; - }; -} ? GetResult : GetResult<{ - composites: {}; - objects: {}; - scalars: {}; - name: ''; -}, {}, F>; - -export declare type Result_2 = Result; - -declare namespace Result_3 { - export { - Operation, - FluentOperation, - Count, - GetFindResult, - SelectablePayloadFields, - SelectField, - DefaultSelection, - UnwrapPayload, - ApplyOmit, - OmitValue, - GetCountResult, - Aggregate, - GetAggregateResult, - GetBatchResult, - GetGroupByResult, - GetResult, - ExtractGlobalOmit - } -} - -declare type Result_4 = { - map(fn: (value: T) => U): Result_4; - flatMap(fn: (value: T) => Result_4): Result_4; -} & ({ - readonly ok: true; - readonly value: T; -} | { - readonly ok: false; - readonly error: Error_2; -}); - -export declare type ResultArg = { - [FieldName in string]: ResultFieldDefinition; -}; - -export declare type ResultArgs = { - result: { - [ModelName in string]: ResultArg; - }; -}; - -export declare type ResultArgsFieldCompute = (model: any) => unknown; - -export declare type ResultFieldDefinition = { - needs?: { - [FieldName in string]: boolean; - }; - compute: ResultArgsFieldCompute; -}; - -declare interface ResultSet { - /** - * List of column types appearing in a database query, in the same order as `columnNames`. - * They are used within the Query Engine to convert values from JS to Quaint values. - */ - columnTypes: Array; - /** - * List of column names appearing in a database query, in the same order as `columnTypes`. - */ - columnNames: Array; - /** - * List of rows retrieved from a database query. - * Each row is a list of values, whose length matches `columnNames` and `columnTypes`. - */ - rows: Array>; - /** - * The last ID of an `INSERT` statement, if any. - * This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite. - */ - lastInsertId?: string; -} - -export declare type Return = T extends (...args: any[]) => infer R ? R : T; - -declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown"; - -export declare type RuntimeDataModel = { - readonly models: Record; - readonly enums: Record; - readonly types: Record; -}; - -declare type RuntimeEnum = Omit; - -declare type RuntimeModel = Omit; - -export declare type Select = T extends U ? T : never; - -export declare type SelectablePayloadFields = { - objects: { - [k in K]: O; - }; -} | { - composites: { - [k in K]: O; - }; -}; - -export declare type SelectField

, K extends PropertyKey> = P extends { - objects: Record; -} ? P['objects'][K] : P extends { - composites: Record; -} ? P['composites'][K] : never; - -declare type Selection_2 = Record; -export { Selection_2 as Selection } - -export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery; - -declare type SerializeParams = { - runtimeDataModel: RuntimeDataModel; - modelName?: string; - action: Action; - args?: JsArgs; - extensions?: MergedExtensionsList; - callsite?: CallSite; - clientMethod: string; - clientVersion: string; - errorFormat: ErrorFormat; - previewFeatures: string[]; - globalOmit?: GlobalOmitOptions; -}; - -declare class Skip { - constructor(param?: symbol); - ifUndefined(value: T | undefined): T | Skip; -} - -export declare const skip: Skip; - -/** - * An interface that represents a span. A span represents a single operation - * within a trace. Examples of span might include remote procedure calls or a - * in-process function calls to sub-components. A Trace has a single, top-level - * "root" Span that in turn may have zero or more child Spans, which in turn - * may have children. - * - * Spans are created by the {@link Tracer.startSpan} method. - */ -declare interface Span { - /** - * Returns the {@link SpanContext} object associated with this Span. - * - * Get an immutable, serializable identifier for this span that can be used - * to create new child spans. Returned SpanContext is usable even after the - * span ends. - * - * @returns the SpanContext object associated with this Span. - */ - spanContext(): SpanContext; - /** - * Sets an attribute to the span. - * - * Sets a single Attribute with the key and value passed as arguments. - * - * @param key the key for this attribute. - * @param value the value for this attribute. Setting a value null or - * undefined is invalid and will result in undefined behavior. - */ - setAttribute(key: string, value: SpanAttributeValue): this; - /** - * Sets attributes to the span. - * - * @param attributes the attributes that will be added. - * null or undefined attribute values - * are invalid and will result in undefined behavior. - */ - setAttributes(attributes: SpanAttributes): this; - /** - * Adds an event to the Span. - * - * @param name the name of the event. - * @param [attributesOrStartTime] the attributes that will be added; these are - * associated with this event. Can be also a start time - * if type is {@type TimeInput} and 3rd param is undefined - * @param [startTime] start time of the event. - */ - addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this; - /** - * Adds a single link to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param link the link to add. - */ - addLink(link: Link): this; - /** - * Adds multiple links to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param links the links to add. - */ - addLinks(links: Link[]): this; - /** - * Sets a status to the span. If used, this will override the default Span - * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value - * of previous calls to SetStatus on the Span. - * - * @param status the SpanStatus to set. - */ - setStatus(status: SpanStatus): this; - /** - * Updates the Span name. - * - * This will override the name provided via {@link Tracer.startSpan}. - * - * Upon this update, any sampling behavior based on Span name will depend on - * the implementation. - * - * @param name the Span name. - */ - updateName(name: string): this; - /** - * Marks the end of Span execution. - * - * Call to End of a Span MUST not have any effects on child spans. Those may - * still be running and can be ended later. - * - * Do not return `this`. The Span generally should not be used after it - * is ended so chaining is not desired in this context. - * - * @param [endTime] the time to set as Span's end time. If not provided, - * use the current time as the span's end time. - */ - end(endTime?: TimeInput): void; - /** - * Returns the flag whether this span will be recorded. - * - * @returns true if this Span is active and recording information like events - * with the `AddEvent` operation and attributes using `setAttributes`. - */ - isRecording(): boolean; - /** - * Sets exception as a span event - * @param exception the exception the only accepted values are string or Error - * @param [time] the time to set as Span's event time. If not provided, - * use the current time. - */ - recordException(exception: Exception, time?: TimeInput): void; -} - -/** - * @deprecated please use {@link Attributes} - */ -declare type SpanAttributes = Attributes; - -/** - * @deprecated please use {@link AttributeValue} - */ -declare type SpanAttributeValue = AttributeValue; - -declare type SpanCallback = (span?: Span, context?: Context) => R; - -/** - * A SpanContext represents the portion of a {@link Span} which must be - * serialized and propagated along side of a {@link Baggage}. - */ -declare interface SpanContext { - /** - * The ID of the trace that this span belongs to. It is worldwide unique - * with practically sufficient probability by being made as 16 randomly - * generated bytes, encoded as a 32 lowercase hex characters corresponding to - * 128 bits. - */ - traceId: string; - /** - * The ID of the Span. It is globally unique with practically sufficient - * probability by being made as 8 randomly generated bytes, encoded as a 16 - * lowercase hex characters corresponding to 64 bits. - */ - spanId: string; - /** - * Only true if the SpanContext was propagated from a remote parent. - */ - isRemote?: boolean; - /** - * Trace flags to propagate. - * - * It is represented as 1 byte (bitmap). Bit to represent whether trace is - * sampled or not. When set, the least significant bit documents that the - * caller may have recorded trace data. A caller who does not record trace - * data out-of-band leaves this flag unset. - * - * see {@link TraceFlags} for valid flag values. - */ - traceFlags: number; - /** - * Tracing-system-specific info to propagate. - * - * The tracestate field value is a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * More Info: https://www.w3.org/TR/trace-context/#tracestate-field - * - * Examples: - * Single tracing system (generic format): - * tracestate: rojo=00f067aa0ba902b7 - * Multiple tracing systems (with different formatting): - * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE - */ - traceState?: TraceState; -} - -declare enum SpanKind { - /** Default value. Indicates that the span is used internally. */ - INTERNAL = 0, - /** - * Indicates that the span covers server-side handling of an RPC or other - * remote request. - */ - SERVER = 1, - /** - * Indicates that the span covers the client-side wrapper around an RPC or - * other remote request. - */ - CLIENT = 2, - /** - * Indicates that the span describes producer sending a message to a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - PRODUCER = 3, - /** - * Indicates that the span describes consumer receiving a message from a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - CONSUMER = 4 -} - -/** - * Options needed for span creation - */ -declare interface SpanOptions { - /** - * The SpanKind of a span - * @default {@link SpanKind.INTERNAL} - */ - kind?: SpanKind; - /** A span's attributes */ - attributes?: SpanAttributes; - /** {@link Link}s span to other spans */ - links?: Link[]; - /** A manually specified start time for the created `Span` object. */ - startTime?: TimeInput; - /** The new span should be a root span. (Ignore parent from context). */ - root?: boolean; -} - -declare interface SpanStatus { - /** The status code of this message. */ - code: SpanStatusCode; - /** A developer-facing error message. */ - message?: string; -} - -/** - * An enumeration of status codes. - */ -declare enum SpanStatusCode { - /** - * The default status. - */ - UNSET = 0, - /** - * The operation has been validated by an Application developer or - * Operator to have completed successfully. - */ - OK = 1, - /** - * The operation contains an error. - */ - ERROR = 2 -} - -/** - * A SQL instance can be nested within each other to build SQL strings. - */ -export declare class Sql { - readonly values: Value[]; - readonly strings: string[]; - constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]); - get sql(): string; - get statement(): string; - get text(): string; - inspect(): { - sql: string; - statement: string; - text: string; - values: unknown[]; - }; -} - -/** - * Create a SQL object from a template string. - */ -export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql; - -/** - * Defines TimeInput. - * - * hrtime, epoch milliseconds, performance.now() or Date - */ -declare type TimeInput = HrTime | number | Date; - -export declare type ToTuple = T extends any[] ? T : [T]; - -declare interface TraceState { - /** - * Create a new TraceState which inherits from this TraceState and has the - * given key set. - * The new entry will always be added in the front of the list of states. - * - * @param key key of the TraceState entry. - * @param value value of the TraceState entry. - */ - set(key: string, value: string): TraceState; - /** - * Return a new TraceState which inherits from this TraceState but does not - * contain the given key. - * - * @param key the key for the TraceState entry to be removed. - */ - unset(key: string): TraceState; - /** - * Returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - * - * @param key with which the specified value is to be associated. - * @returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - */ - get(key: string): string | undefined; - /** - * Serializes the TraceState to a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * - * @returns the serialized string. - */ - serialize(): string; -} - -declare interface TracingHelper { - isEnabled(): boolean; - getTraceParent(context?: Context): string; - createEngineSpan(engineSpanEvent: EngineSpanEvent): void; - getActiveContext(): Context | undefined; - runInChildSpan(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback): R; -} - -declare interface Transaction extends Queryable { - /** - * Transaction options. - */ - readonly options: TransactionOptions; - /** - * Commit the transaction. - */ - commit(): Promise>; - /** - * Rolls back the transaction. - */ - rollback(): Promise>; -} - -declare namespace Transaction_2 { - export { - IsolationLevel, - Options, - InteractiveTransactionInfo, - TransactionHeaders - } -} - -declare interface TransactionContext extends Queryable { - /** - * Starts new transaction. - */ - startTransaction(): Promise>; -} - -declare type TransactionHeaders = { - traceparent?: string; -}; - -declare type TransactionOptions = { - usePhantomQuery: boolean; -}; - -declare type TransactionOptions_2 = { - kind: 'itx'; - options: InteractiveTransactionOptions; -} | { - kind: 'batch'; - options: BatchTransactionOptions; -}; - -export declare class TypedSql { - [PrivateResultType]: Result; - constructor(sql: string, values: Values); - get sql(): string; - get values(): Values; -} - -export declare type TypeMapCbDef = Fn<{ - extArgs: InternalArgs; - clientOptions: ClientOptionDef; -}, TypeMapDef>; - -/** Shared */ -export declare type TypeMapDef = Record; - -declare namespace Types { - export { - Result_3 as Result, - Extensions_2 as Extensions, - Utils, - Public_2 as Public, - isSkip, - Skip, - skip, - UnknownTypedSql, - OperationPayload as Payload - } -} -export { Types } - -declare type UnknownErrorParams = { - clientVersion: string; - batchRequestIdx?: number; -}; - -export declare type UnknownTypedSql = TypedSql; - -declare type Unpacker = (data: any) => any; - -export declare type UnwrapPayload

= {} extends P ? unknown : { - [K in keyof P]: P[K] extends { - scalars: infer S; - composites: infer C; - }[] ? Array> : P[K] extends { - scalars: infer S; - composites: infer C; - } | null ? S & UnwrapPayload | Select : never; -}; - -export declare type UnwrapPromise

= P extends Promise ? R : P; - -export declare type UnwrapTuple = { - [K in keyof Tuple]: K extends `${number}` ? Tuple[K] extends PrismaPromise ? X : UnwrapPromise : UnwrapPromise; -}; - -/** - * Input that flows from the user into the Client. - */ -declare type UserArgs_2 = any; - -declare namespace Utils { - export { - EmptyToUnknown, - NeverToUnknown, - PatchFlat, - Omit_2 as Omit, - Pick_2 as Pick, - ComputeDeep, - Compute, - OptionalFlat, - ReadonlyDeep, - Narrowable, - Narrow, - Exact, - Cast, - Record_2 as Record, - UnwrapPromise, - UnwrapTuple, - Path, - Fn, - Call, - RequiredKeys, - OptionalKeys, - Optional, - Return, - ToTuple, - RenameAndNestPayloadKeys, - PayloadToResult, - Select, - Equals, - Or, - JsPromise - } -} - -declare function validator(): (select: Exact) => S; - -declare function validator, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): (select: Exact>) => S; - -declare function validator, O extends keyof C[M] & Operation, P extends keyof Args>(client: C, model: M, operation: O, prop: P): (select: Exact[P]>) => S; - -/** - * Values supported by SQL engine. - */ -export declare type Value = unknown; - -export declare function warnEnvConflicts(envPaths: any): void; - -export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void; - -declare type WasmLoadingConfig = { - /** - * WASM-bindgen runtime for corresponding module - */ - getRuntime: () => { - __wbg_set_wasm(exports: unknown): any; - QueryEngine: QueryEngineConstructor; - }; - /** - * Loads the raw wasm module for the wasm query engine. This configuration is - * generated specifically for each type of client, eg. Node.js client and Edge - * clients will have different implementations. - * @remarks this is a callback on purpose, we only load the wasm if needed. - * @remarks only used by LibraryEngine.ts - */ - getQueryEngineWasmModule: () => Promise; -}; - -export { } diff --git a/mcp-server/node_modules/.prisma/client/runtime/library.js b/mcp-server/node_modules/.prisma/client/runtime/library.js deleted file mode 100644 index f60b9c2..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/library.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict";var eu=Object.create;var Nr=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var ru=Object.getOwnPropertyNames;var nu=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ut=(e,t)=>{for(var r in t)Nr(e,r,{get:t[r],enumerable:!0})},ho=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ru(t))!iu.call(e,i)&&i!==r&&Nr(e,i,{get:()=>t[i],enumerable:!(n=tu(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?eu(nu(e)):{},ho(t||!e||!e.__esModule?Nr(r,"default",{value:e,enumerable:!0}):r,e)),ou=e=>ho(Nr({},"__esModule",{value:!0}),e);var jo=Z((pf,Zn)=>{"use strict";var v=Zn.exports;Zn.exports.default=v;var D="\x1B[",Ht="\x1B]",ft="\x07",Jr=";",qo=process.env.TERM_PROGRAM==="Apple_Terminal";v.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};v.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=qo?"\x1B7":D+"s";v.cursorRestorePosition=qo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r[Ht,"8",Jr,Jr,t,ft,e,Ht,"8",Jr,Jr,ft].join("");v.image=(e,t={})=>{let r=`${Ht}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+ft};v.iTerm={setCwd:(e=process.cwd())=>`${Ht}50;CurrentDir=${e}${ft}`,annotation:(e,t={})=>{let r=`${Ht}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ft}}});var Xn=Z((df,Vo)=>{"use strict";Vo.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var Gu=require("os"),Bo=require("tty"),de=Xn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function ei(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ti(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Qu(e){let t=ti(e,e&&e.isTTY);return ei(t)}Uo.exports={supportsColor:Qu,stdout:ei(ti(!0,Bo.isatty(1))),stderr:ei(ti(!0,Bo.isatty(2)))}});var Wo=Z((ff,Jo)=>{"use strict";var Ju=Go(),gt=Xn();function Qo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ri(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(gt("no-hyperlink")||gt("no-hyperlinks")||gt("hyperlink=false")||gt("hyperlink=never"))return!1;if(gt("hyperlink=true")||gt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Ju.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Qo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Qo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Jo.exports={supportsHyperlink:ri,stdout:ri(process.stdout),stderr:ri(process.stderr)}});var Ko=Z((gf,Kt)=>{"use strict";var Wu=jo(),ni=Wo(),Ho=(e,t,{target:r="stdout",...n}={})=>ni[r]?Wu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Kt.exports=(e,t,r={})=>Ho(e,t,r);Kt.exports.stderr=(e,t,r={})=>Ho(e,t,{target:"stderr",...r});Kt.exports.isSupported=ni.stdout;Kt.exports.stderr.isSupported=ni.stderr});var oi=Z((Rf,Hu)=>{Hu.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var si=Z(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.enginesVersion=void 0;Wr.enginesVersion=oi().prisma.enginesVersion});var Xo=Z((Gf,Yu)=>{Yu.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var ts=Z((Qf,Kr)=>{"use strict";var Zu=require("fs"),es=require("path"),Xu=require("os"),ec=Xo(),tc=ec.version,rc=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function nc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,` -`);let n;for(;(n=rc.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,` -`),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function ci(e){console.log(`[dotenv@${tc}][DEBUG] ${e}`)}function ic(e){return e[0]==="~"?es.join(Xu.homedir(),e.slice(1)):e}function oc(e){let t=es.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug),i=!!(e&&e.override);e&&(e.path!=null&&(t=ic(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=Hr.parse(Zu.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&ci(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&ci(`Failed to load ${t} ${o.message}`),{error:o}}}var Hr={config:oc,parse:nc};Kr.exports.config=Hr.config;Kr.exports.parse=Hr.parse;Kr.exports=Hr});var as=Z((Zf,ss)=>{"use strict";ss.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var us=Z((Xf,ls)=>{"use strict";var uc=as();ls.exports=e=>{let t=uc(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var fi=Z((og,cs)=>{"use strict";cs.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var fs=Z((lg,ms)=>{"use strict";ms.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var bi=Z((ug,gs)=>{"use strict";var yc=fs();gs.exports=e=>typeof e=="string"?e.replace(yc(),""):e});var hs=Z((dg,Zr)=>{"use strict";Zr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};Zr.exports.default=Zr.exports});var Ai=Z((Th,$s)=>{"use strict";$s.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;sGn,Decimal:()=>xe,Extensions:()=>jn,MetricsClient:()=>Dt,NotFoundError:()=>Le,PrismaClientInitializationError:()=>R,PrismaClientKnownRequestError:()=>V,PrismaClientRustPanicError:()=>le,PrismaClientUnknownRequestError:()=>B,PrismaClientValidationError:()=>J,Public:()=>Vn,Sql:()=>oe,defineDmmfProperty:()=>ua,deserializeJsonResponse:()=>wt,dmmfToRuntimeDataModel:()=>la,empty:()=>ma,getPrismaClient:()=>Yl,getRuntime:()=>In,join:()=>da,makeStrictEnum:()=>Zl,makeTypedQueryFactory:()=>ca,objectEnumValues:()=>yn,raw:()=>ji,serializeJsonQuery:()=>vn,skip:()=>Pn,sqltag:()=>Vi,warnEnvConflicts:()=>Xl,warnOnce:()=>tr});module.exports=ou(Nm);var jn={};Ut(jn,{defineExtension:()=>yo,getExtensionContext:()=>bo});function yo(e){return typeof e=="function"?e:t=>t.$extends(e)}function bo(e){return e}var Vn={};Ut(Vn,{validator:()=>Eo});function Eo(...e){return t=>t}var Mr={};Ut(Mr,{$:()=>To,bgBlack:()=>gu,bgBlue:()=>Eu,bgCyan:()=>xu,bgGreen:()=>yu,bgMagenta:()=>wu,bgRed:()=>hu,bgWhite:()=>Pu,bgYellow:()=>bu,black:()=>pu,blue:()=>rt,bold:()=>H,cyan:()=>De,dim:()=>Oe,gray:()=>Gt,green:()=>qe,grey:()=>fu,hidden:()=>uu,inverse:()=>lu,italic:()=>au,magenta:()=>du,red:()=>ce,reset:()=>su,strikethrough:()=>cu,underline:()=>X,white:()=>mu,yellow:()=>ke});var Bn,wo,xo,Po,vo=!0;typeof process<"u"&&({FORCE_COLOR:Bn,NODE_DISABLE_COLORS:wo,NO_COLOR:xo,TERM:Po}=process.env||{},vo=process.stdout&&process.stdout.isTTY);var To={enabled:!wo&&xo==null&&Po!=="dumb"&&(Bn!=null&&Bn!=="0"||vo)};function M(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!To.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var su=M(0,0),H=M(1,22),Oe=M(2,22),au=M(3,23),X=M(4,24),lu=M(7,27),uu=M(8,28),cu=M(9,29),pu=M(30,39),ce=M(31,39),qe=M(32,39),ke=M(33,39),rt=M(34,39),du=M(35,39),De=M(36,39),mu=M(37,39),Gt=M(90,39),fu=M(90,39),gu=M(40,49),hu=M(41,49),yu=M(42,49),bu=M(43,49),Eu=M(44,49),wu=M(45,49),xu=M(46,49),Pu=M(47,49);var vu=100,Ro=["green","yellow","blue","magenta","cyan","red"],Qt=[],Co=Date.now(),Tu=0,Un=typeof process<"u"?process.env:{};globalThis.DEBUG??=Un.DEBUG??"";globalThis.DEBUG_COLORS??=Un.DEBUG_COLORS?Un.DEBUG_COLORS==="true":!0;var Jt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Ru(e){let t={color:Ro[Tu++%Ro.length],enabled:Jt.enabled(e),namespace:e,log:Jt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Qt.push([o,...n]),Qt.length>vu&&Qt.shift(),Jt.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Cu(c)),u=`+${Date.now()-Co}ms`;Co=Date.now(),globalThis.DEBUG_COLORS?a(Mr[s](H(o)),...l,Mr[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Gn=new Proxy(Ru,{get:(e,t)=>Jt[t],set:(e,t,r)=>Jt[t]=r});function Cu(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function So(e=7500){let t=Qt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.length!!(e&&typeof e=="object"),jr=e=>e&&!!e[_e],Ee=(e,t,r)=>{if(jr(e)){let n=e[_e](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(Wn(e)){if(!Wn(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let s of e.keys()){let a=e[s];jr(a)&&a[Su]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.lengthEe(u,s[c],r))&&i.every((u,c)=>Ee(u,a[c],r))&&(o.length===0||Ee(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>Ee(s,t[a],r))}return Object.keys(e).every(n=>{let i=e[n];return(n in t||jr(o=i)&&o[_e]().matcherType==="optional")&&Ee(i,t[n],r);var o})}return Object.is(t,e)},Ge=e=>{var t,r,n;return Wn(e)?jr(e)?(t=(r=(n=e[_e]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Wt(e,Ge):Wt(Object.values(e),Ge):[]},Wt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function pe(e){return Object.assign(e,{optional:()=>Au(e),and:t=>j(e,t),or:t=>Iu(e,t),select:t=>t===void 0?Oo(e):Oo(t,e)})}function Au(e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Ge(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ee(e,t,n),selections:r}},getSelectionKeys:()=>Ge(e),matcherType:"optional"})})}function j(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"and"})})}function Iu(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return Wt(e,Ge).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"or"})})}function I(e){return{[_e]:()=>({match:t=>({matched:!!e(t)})})}}function Oo(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return pe({[_e]:()=>({match:n=>{let i={[t??Vr]:n};return{matched:r===void 0||Ee(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??Vr].concat(r===void 0?[]:Ge(r))})})}function ye(e){return typeof e=="number"}function je(e){return typeof e=="string"}function Ve(e){return typeof e=="bigint"}var Km=pe(I(function(e){return!0}));var Be=e=>Object.assign(pe(e),{startsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.endsWith(r)))));var r},minLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length>=r))(t))),length:t=>Be(j(e,(r=>I(n=>je(n)&&n.length===r))(t))),maxLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length<=r))(t))),includes:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.includes(r)))));var r},regex:t=>{return Be(j(e,(r=t,I(n=>je(n)&&!!n.match(r)))));var r}}),zm=Be(I(je)),be=e=>Object.assign(pe(e),{between:(t,r)=>be(j(e,((n,i)=>I(o=>ye(o)&&n<=o&&i>=o))(t,r))),lt:t=>be(j(e,(r=>I(n=>ye(n)&&nbe(j(e,(r=>I(n=>ye(n)&&n>r))(t))),lte:t=>be(j(e,(r=>I(n=>ye(n)&&n<=r))(t))),gte:t=>be(j(e,(r=>I(n=>ye(n)&&n>=r))(t))),int:()=>be(j(e,I(t=>ye(t)&&Number.isInteger(t)))),finite:()=>be(j(e,I(t=>ye(t)&&Number.isFinite(t)))),positive:()=>be(j(e,I(t=>ye(t)&&t>0))),negative:()=>be(j(e,I(t=>ye(t)&&t<0)))}),Ym=be(I(ye)),Ue=e=>Object.assign(pe(e),{between:(t,r)=>Ue(j(e,((n,i)=>I(o=>Ve(o)&&n<=o&&i>=o))(t,r))),lt:t=>Ue(j(e,(r=>I(n=>Ve(n)&&nUe(j(e,(r=>I(n=>Ve(n)&&n>r))(t))),lte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n<=r))(t))),gte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n>=r))(t))),positive:()=>Ue(j(e,I(t=>Ve(t)&&t>0))),negative:()=>Ue(j(e,I(t=>Ve(t)&&t<0)))}),Zm=Ue(I(Ve)),Xm=pe(I(function(e){return typeof e=="boolean"})),ef=pe(I(function(e){return typeof e=="symbol"})),tf=pe(I(function(e){return e==null})),rf=pe(I(function(e){return e!=null}));var Hn={matched:!1,value:void 0};function mt(e){return new Kn(e,Hn)}var Kn=class e{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,s={},a=(u,c)=>{o=!0,s[u]=c},l=!n.some(u=>Ee(u,this.input,a))||i&&!i(this.input)?Hn:{matched:!0,value:r(o?Vr in s?s[Vr]:s:this.input,this.input)};return new e(this.input,l)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new e(this.input,n?{matched:!0,value:r(this.input,this.input)}:Hn)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}run(){return this.exhaustive()}returnType(){return this}};var Fo=require("util");var Ou={warn:ke("prisma:warn")},ku={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Br(e,...t){ku.warn()&&console.warn(`${Ou.warn} ${e}`,...t)}var Du=(0,Fo.promisify)(_o.default.exec),te=L("prisma:get-platform"),_u=["1.0.x","1.1.x","3.0.x"];async function Lo(){let e=Gr.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Qr("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await Lu(),n=await Uu(),i=Mu({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await $u(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Fu(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=mt({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return te(`Found distro info: -${JSON.stringify(a,null,2)}`),a}async function Lu(){let e="/etc/os-release";try{let t=await zn.default.readFile(e,{encoding:"utf-8"});return Fu(t)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function Nu(e){let t=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(t){let r=`${t[1]}.x`;return No(r)}}function ko(e){let t=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(t){let r=`${t[1]}${t[2]??".0"}.x`;return No(r)}}function No(e){let t=(()=>{if($o(e))return e;let r=e.split(".");return r[1]="0",r.join(".")})();if(_u.includes(t))return t}function Mu(e){return mt(e).with({familyDistro:"musl"},()=>(te('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:t})=>(te('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${t}-linux-gnu`,`/lib/${t}-linux-gnu`])).with({familyDistro:"rhel"},()=>(te('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:t,arch:r,archFromUname:n})=>(te(`Don't know any platform-specific paths for "${t}" on ${r} (${n})`),[]))}async function $u(e){let t='grep -v "libssl.so.0"',r=await Do(e);if(r){te(`Found libssl.so file using platform-specific paths: ${r}`);let o=ko(r);if(te(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}te('Falling back to "ldconfig" and other generic paths');let n=await Qr(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${t}`);if(n||(n=await Do(["/lib64","/usr/lib64","/lib"])),n){te(`Found libssl.so file using "ldconfig" or other generic paths: ${n}`);let o=ko(n);if(te(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let i=await Qr("openssl version -v");if(i){te(`Found openssl binary with version: ${i}`);let o=Nu(i);if(te(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return te("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Do(e){for(let t of e){let r=await qu(t);if(r)return r}}async function qu(e){try{return(await zn.default.readdir(e)).find(r=>r.startsWith("libssl.so.")&&!r.startsWith("libssl.so.0"))}catch(t){if(t.code==="ENOENT")return;throw t}}async function nt(){let{binaryTarget:e}=await Mo();return e}function ju(e){return e.binaryTarget!==void 0}async function Yn(){let{memoized:e,...t}=await Mo();return t}var Ur={};async function Mo(){if(ju(Ur))return Promise.resolve({...Ur,memoized:!0});let e=await Lo(),t=Vu(e);return Ur={...e,binaryTarget:t},{...Ur,memoized:!1}}function Vu(e){let{platform:t,arch:r,archFromUname:n,libssl:i,targetDistro:o,familyDistro:s,originalDistro:a}=e;t==="linux"&&!["x64","arm64"].includes(r)&&Br(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${r}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${n}".`);let l="1.1.x";if(t==="linux"&&i===void 0){let c=mt({familyDistro:s}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");Br(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". -${c}`)}let u="debian";if(t==="linux"&&o===void 0&&te(`Distro is "${a}". Falling back to Prisma engines built for "${u}".`),t==="darwin"&&r==="arm64")return"darwin-arm64";if(t==="darwin")return"darwin";if(t==="win32")return"windows";if(t==="freebsd")return o;if(t==="openbsd")return"openbsd";if(t==="netbsd")return"netbsd";if(t==="linux"&&o==="nixos")return"linux-nixos";if(t==="linux"&&r==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(t==="linux"&&r==="arm")return`linux-arm-openssl-${i||l}`;if(t==="linux"&&o==="musl"){let c="linux-musl";return!i||$o(i)?c:`${c}-openssl-${i}`}return t==="linux"&&o&&i?`${o}-openssl-${i}`:(t!=="linux"&&Br(`Prisma detected unknown OS "${t}" and may not work as expected. Defaulting to "linux".`),i?`${u}-openssl-${i}`:o?`${o}-openssl-${l}`:`${u}-openssl-${l}`)}async function Bu(e){try{return await e()}catch{return}}function Qr(e){return Bu(async()=>{let t=await Du(e);return te(`Command "${e}" successfully returned "${t.stdout}"`),t.stdout})}async function Uu(){return typeof Gr.default.machine=="function"?Gr.default.machine():(await Qr("uname -m"))?.trim()}function $o(e){return e.startsWith("1.")}var zo=k(Ko());function ii(e){return(0,zo.default)(e,e,{fallback:X})}var Ku=k(si());var $=k(require("path")),zu=k(si()),Lf=L("prisma:engines");function Yo(){return $.default.join(__dirname,"../")}var Nf="libquery-engine";$.default.join(__dirname,"../query-engine-darwin");$.default.join(__dirname,"../query-engine-darwin-arm64");$.default.join(__dirname,"../query-engine-debian-openssl-1.0.x");$.default.join(__dirname,"../query-engine-debian-openssl-1.1.x");$.default.join(__dirname,"../query-engine-debian-openssl-3.0.x");$.default.join(__dirname,"../query-engine-linux-static-x64");$.default.join(__dirname,"../query-engine-linux-static-arm64");$.default.join(__dirname,"../query-engine-rhel-openssl-1.0.x");$.default.join(__dirname,"../query-engine-rhel-openssl-1.1.x");$.default.join(__dirname,"../query-engine-rhel-openssl-3.0.x");$.default.join(__dirname,"../libquery_engine-darwin.dylib.node");$.default.join(__dirname,"../libquery_engine-darwin-arm64.dylib.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-debian-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-arm64-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-linux-musl.so.node");$.default.join(__dirname,"../libquery_engine-linux-musl-openssl-3.0.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-1.0.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-1.1.x.so.node");$.default.join(__dirname,"../libquery_engine-rhel-openssl-3.0.x.so.node");$.default.join(__dirname,"../query_engine-windows.dll.node");var ai=k(require("fs")),Zo=L("chmodPlusX");function li(e){if(process.platform==="win32")return;let t=ai.default.statSync(e),r=t.mode|64|8|1;if(t.mode===r){Zo(`Execution permissions of ${e} are fine`);return}let n=r.toString(8).slice(-3);Zo(`Have to call chmodPlusX on ${e}`),ai.default.chmodSync(e,n)}function ui(e){let t=e.e,r=a=>`Prisma cannot find the required \`${a}\` system library in your system`,n=t.message.includes("cannot open shared object file"),i=`Please refer to the documentation about Prisma's system requirements: ${ii("https://pris.ly/d/system-requirements")}`,o=`Unable to require(\`${Oe(e.id)}\`).`,s=mt({message:t.message,code:t.code}).with({code:"ENOENT"},()=>"File does not exist.").when(({message:a})=>n&&a.includes("libz"),()=>`${r("libz")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libgcc_s"),()=>`${r("libgcc_s")}. Please install it and try again.`).when(({message:a})=>n&&a.includes("libssl"),()=>{let a=e.platformInfo.libssl?`openssl-${e.platformInfo.libssl}`:"openssl";return`${r("libssl")}. Please install ${a} and try again.`}).when(({message:a})=>a.includes("GLIBC"),()=>`Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${i}`).when(({message:a})=>e.platformInfo.platform==="linux"&&a.includes("symbol not found"),()=>`The Prisma engines are not compatible with your system ${e.platformInfo.originalDistro} on (${e.platformInfo.archFromUname}) which uses the \`${e.platformInfo.binaryTarget}\` binaryTarget by default. ${i}`).otherwise(()=>`The Prisma engines do not seem to be compatible with your system. ${i}`);return`${o} -${s} - -Details: ${t.message}`}var di=k(ts()),zr=k(require("fs"));var ht=k(require("path"));function rs(e){let t=e.ignoreProcessEnv?{}:process.env,r=n=>n.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,s){let a=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(s);if(!a)return o;let l=a[1],u,c;if(l==="\\")c=a[0],u=c.replace("\\$","$");else{let p=a[2];c=a[0].substring(l.length),u=Object.hasOwnProperty.call(t,p)?t[p]:e.parsed[p]||"",u=r(u)}return o.replace(c,u)},n)??n;for(let n in e.parsed){let i=Object.hasOwnProperty.call(t,n)?t[n]:e.parsed[n];e.parsed[n]=r(i)}for(let n in e.parsed)t[n]=e.parsed[n];return e}var pi=L("prisma:tryLoadEnv");function zt({rootEnvPath:e,schemaEnvPath:t},r={conflictCheck:"none"}){let n=ns(e);r.conflictCheck!=="none"&&sc(n,t,r.conflictCheck);let i=null;return is(n?.path,t)||(i=ns(t)),!n&&!i&&pi("No Environment variables loaded"),i?.dotenvResult.error?console.error(ce(H("Schema Env Error: "))+i.dotenvResult.error):{message:[n?.message,i?.message].filter(Boolean).join(` -`),parsed:{...n?.dotenvResult?.parsed,...i?.dotenvResult?.parsed}}}function sc(e,t,r){let n=e?.dotenvResult.parsed,i=!is(e?.path,t);if(n&&t&&i&&zr.default.existsSync(t)){let o=di.default.parse(zr.default.readFileSync(t)),s=[];for(let a in o)n[a]===o[a]&&s.push(a);if(s.length>0){let a=ht.default.relative(process.cwd(),e.path),l=ht.default.relative(process.cwd(),t);if(r==="error"){let u=`There is a conflict between env var${s.length>1?"s":""} in ${X(a)} and ${X(l)} -Conflicting env vars: -${s.map(c=>` ${H(c)}`).join(` -`)} - -We suggest to move the contents of ${X(l)} to ${X(a)} to consolidate your env vars. -`;throw new Error(u)}else if(r==="warn"){let u=`Conflict for env var${s.length>1?"s":""} ${s.map(c=>H(c)).join(", ")} in ${X(a)} and ${X(l)} -Env vars from ${X(l)} overwrite the ones from ${X(a)} - `;console.warn(`${ke("warn(prisma)")} ${u}`)}}}}function ns(e){if(ac(e)){pi(`Environment variables loaded from ${e}`);let t=di.default.config({path:e,debug:process.env.DOTENV_CONFIG_DEBUG?!0:void 0});return{dotenvResult:rs(t),message:Oe(`Environment variables loaded from ${ht.default.relative(process.cwd(),e)}`),path:e}}else pi(`Environment variables not found at ${e}`);return null}function is(e,t){return e&&t&&ht.default.resolve(e)===ht.default.resolve(t)}function ac(e){return!!(e&&zr.default.existsSync(e))}var os="library";function Yt(e){let t=lc();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":os)}function lc(){let e=process.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}var Je;(t=>{let e;(E=>(E.findUnique="findUnique",E.findUniqueOrThrow="findUniqueOrThrow",E.findFirst="findFirst",E.findFirstOrThrow="findFirstOrThrow",E.findMany="findMany",E.create="create",E.createMany="createMany",E.createManyAndReturn="createManyAndReturn",E.update="update",E.updateMany="updateMany",E.upsert="upsert",E.delete="delete",E.deleteMany="deleteMany",E.groupBy="groupBy",E.count="count",E.aggregate="aggregate",E.findRaw="findRaw",E.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Je||={});var Zt=k(require("path"));function mi(e){return Zt.default.sep===Zt.default.posix.sep?e:e.split(Zt.default.sep).join(Zt.default.posix.sep)}var ps=k(fi());function hi(e){return String(new gi(e))}var gi=class{constructor(t){this.config=t}toString(){let{config:t}=this,r=t.provider.fromEnvVar?`env("${t.provider.fromEnvVar}")`:t.provider.value,n=JSON.parse(JSON.stringify({provider:r,binaryTargets:cc(t.binaryTargets)}));return`generator ${t.name} { -${(0,ps.default)(pc(n),2)} -}`}};function cc(e){let t;if(e.length>0){let r=e.find(n=>n.fromEnvVar!==null);r?t=`env("${r.fromEnvVar}")`:t=e.map(n=>n.native?"native":n.value)}else t=void 0;return t}function pc(e){let t=Object.keys(e).reduce((r,n)=>Math.max(r,n.length),0);return Object.entries(e).map(([r,n])=>`${r.padEnd(t)} = ${dc(n)}`).join(` -`)}function dc(e){return JSON.parse(JSON.stringify(e,(t,r)=>Array.isArray(r)?`[${r.map(n=>JSON.stringify(n)).join(", ")}]`:JSON.stringify(r)))}var er={};Ut(er,{error:()=>gc,info:()=>fc,log:()=>mc,query:()=>hc,should:()=>ds,tags:()=>Xt,warn:()=>yi});var Xt={error:ce("prisma:error"),warn:ke("prisma:warn"),info:De("prisma:info"),query:rt("prisma:query")},ds={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function mc(...e){console.log(...e)}function yi(e,...t){ds.warn()&&console.warn(`${Xt.warn} ${e}`,...t)}function fc(e,...t){console.info(`${Xt.info} ${e}`,...t)}function gc(e,...t){console.error(`${Xt.error} ${e}`,...t)}function hc(e,...t){console.log(`${Xt.query} ${e}`,...t)}function Yr(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}function Fe(e,t){throw new Error(t)}function Ei(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var wi=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});function yt(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function xi(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{ys.has(e)||(ys.add(e),yi(t,...r))};var V=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};w(V,"PrismaClientKnownRequestError");var Le=class extends V{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};w(Le,"NotFoundError");var R=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};w(R,"PrismaClientInitializationError");var le=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};w(le,"PrismaClientRustPanicError");var B=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};w(B,"PrismaClientUnknownRequestError");var J=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};w(J,"PrismaClientValidationError");var bt=9e15,ze=1e9,Pi="0123456789abcdef",tn="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",rn="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",vi={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-bt,maxE:bt,crypto:!1},xs,Ne,x=!0,on="[DecimalError] ",Ke=on+"Invalid argument: ",Ps=on+"Precision limit exceeded",vs=on+"crypto unavailable",Ts="[object Decimal]",ee=Math.floor,G=Math.pow,bc=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ec=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,wc=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Rs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ge=1e7,b=7,xc=9007199254740991,Pc=tn.length-1,Ti=rn.length-1,m={toStringTag:Ts};m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),y(e)};m.ceil=function(){return y(new this.constructor(this),this.e+1,2)};m.clampedTo=m.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(Ke+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};m.comparedTo=m.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};m.cosine=m.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+b,n.rounding=1,r=vc(n,Os(n,r)),n.precision=e,n.rounding=t,y(Ne==2||Ne==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};m.cubeRoot=m.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,c=this,p=c.constructor;if(!c.isFinite()||c.isZero())return new p(c);for(x=!1,o=c.s*G(c.s*c,1/3),!o||Math.abs(o)==1/0?(r=K(c.d),e=c.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=G(r,1/3),e=ee((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new p(r),n.s=c.s):n=new p(o.toString()),s=(e=p.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(c),n=N(u.plus(c).times(a),u.plus(l),s+2,1),K(a.d).slice(0,s)===(r=K(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(y(a,e+1,0),a.times(a).times(a).eq(c))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(y(n,e+1,1),t=!n.times(n).times(n).eq(c));break}return x=!0,y(n,e,p.rounding,t)};m.decimalPlaces=m.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-ee(this.e/b))*b,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};m.dividedBy=m.div=function(e){return N(this,new this.constructor(e))};m.dividedToIntegerBy=m.divToInt=function(e){var t=this,r=t.constructor;return y(N(t,new r(e),0,1,1),r.precision,r.rounding)};m.equals=m.eq=function(e){return this.cmp(e)===0};m.floor=function(){return y(new this.constructor(this),this.e+1,3)};m.greaterThan=m.gt=function(e){return this.cmp(e)>0};m.greaterThanOrEqualTo=m.gte=function(e){var t=this.cmp(e);return t==1||t===0};m.hyperbolicCosine=m.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/an(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=Et(s,1,o.times(t),new s(1),!0);for(var l,u=e,c=new s(8);u--;)l=o.times(o),o=a.minus(l.times(c.minus(l.times(c))));return y(o,s.precision=r,s.rounding=n,!0)};m.hyperbolicSine=m.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Et(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/an(5,e)),i=Et(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,y(i,t,r,!0)};m.hyperbolicTangent=m.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,N(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};m.inverseCosine=m.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?fe(r,i,o):new r(0):new r(NaN):t.isZero()?fe(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=fe(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};m.inverseHyperbolicCosine=m.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,x=!1,r=r.times(r).minus(1).sqrt().plus(r),x=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};m.inverseHyperbolicSine=m.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,x=!1,r=r.times(r).plus(1).sqrt().plus(r),x=!0,n.precision=e,n.rounding=t,r.ln())};m.inverseHyperbolicTangent=m.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?y(new o(i),e,t,!0):(o.precision=r=n-i.e,i=N(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};m.inverseSine=m.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=fe(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};m.inverseTangent=m.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&p+4<=Ti)return s=fe(c,p+4,d).times(.25),s.s=u.s,s}else{if(!u.s)return new c(NaN);if(p+4<=Ti)return s=fe(c,p+4,d).times(.5),s.s=u.s,s}for(c.precision=a=p+10,c.rounding=1,r=Math.min(28,a/b+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(x=!1,t=Math.ceil(a/b),n=1,l=u.times(u),s=new c(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};m.isNaN=function(){return!this.s};m.isNegative=m.isNeg=function(){return this.s<0};m.isPositive=m.isPos=function(){return this.s>0};m.isZero=function(){return!!this.d&&this.d[0]===0};m.lessThan=m.lt=function(e){return this.cmp(e)<0};m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1};m.logarithm=m.log=function(e){var t,r,n,i,o,s,a,l,u=this,c=u.constructor,p=c.precision,d=c.rounding,f=5;if(e==null)e=new c(10),t=!0;else{if(e=new c(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new c(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(x=!1,a=p+f,s=He(u,a),n=t?nn(c,a+10):He(e,a),l=N(s,n,a,1),rr(l.d,i=p,d))do if(a+=10,s=He(u,a),n=t?nn(c,a+10):He(e,a),l=N(s,n,a,1),!o){+K(l.d).slice(i+1,i+15)+1==1e14&&(l=y(l,p+1,0));break}while(rr(l.d,i+=10,d));return x=!0,y(l,p,d)};m.minus=m.sub=function(e){var t,r,n,i,o,s,a,l,u,c,p,d,f=this,g=f.constructor;if(e=new g(e),!f.d||!e.d)return!f.s||!e.s?e=new g(NaN):f.d?e.s=-e.s:e=new g(e.d||f.s!==e.s?f:NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(u=f.d,d=e.d,a=g.precision,l=g.rounding,!u[0]||!d[0]){if(d[0])e.s=-e.s;else if(u[0])e=new g(f);else return new g(l===3?-0:0);return x?y(e,a,l):e}if(r=ee(e.e/b),c=ee(f.e/b),u=u.slice(),o=c-r,o){for(p=o<0,p?(t=u,o=-o,s=d.length):(t=d,r=c,s=u.length),n=Math.max(Math.ceil(a/b),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=d.length,p=n0;--n)u[s++]=0;for(n=d.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=c.length,s-i<0&&(i=s,r=c,c=u,u=r),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/ge|0,u[i]%=ge;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=sn(u,n),x?y(e,a,l):e};m.precision=m.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ke+e);return r.d?(t=Cs(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};m.round=function(){var e=this,t=e.constructor;return y(new t(e),e.e+1,t.rounding)};m.sine=m.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+b,n.rounding=1,r=Rc(n,Os(n,r)),n.precision=e,n.rounding=t,y(Ne>2?r.neg():r,e,t,!0)):new n(NaN)};m.squareRoot=m.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,c=s.constructor;if(u!==1||!a||!a[0])return new c(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(x=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=K(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=ee((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new c(t)):n=new c(u.toString()),r=(l=c.precision)+3;;)if(o=n,n=o.plus(N(s,o,r+2,1)).times(.5),K(o.d).slice(0,r)===(t=K(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(y(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(y(n,l+1,1),e=!n.times(n).eq(s));break}return x=!0,y(n,l,c.rounding,e)};m.tangent=m.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=N(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,y(Ne==2||Ne==4?r.neg():r,e,t,!0)):new n(NaN)};m.times=m.mul=function(e){var t,r,n,i,o,s,a,l,u,c=this,p=c.constructor,d=c.d,f=(e=new p(e)).d;if(e.s*=c.s,!d||!d[0]||!f||!f[0])return new p(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:e.s*0);for(r=ee(c.e/b)+ee(e.e/b),l=d.length,u=f.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+f[n]*d[i-n-1]+t,o[i--]=a%ge|0,t=a/ge|0;o[i]=(o[i]+t)%ge|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=sn(o,r),x?y(e,p.precision,p.rounding):e};m.toBinary=function(e,t){return Si(this,2,e,t)};m.toDecimalPlaces=m.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ie(e,0,ze),t===void 0?t=n.rounding:ie(t,0,8),y(r,e+r.e+1,t))};m.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,!0):(ie(e,0,ze),t===void 0?t=i.rounding:ie(t,0,8),n=y(new i(n),e+1,t),r=we(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};m.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=we(i):(ie(e,0,ze),t===void 0?t=o.rounding:ie(t,0,8),n=y(new o(i),e+i.e+1,t),r=we(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};m.toFraction=function(e){var t,r,n,i,o,s,a,l,u,c,p,d,f=this,g=f.d,h=f.constructor;if(!g)return new h(f);if(u=r=new h(1),n=l=new h(0),t=new h(n),o=t.e=Cs(g)-f.e-1,s=o%b,t.d[0]=G(10,s<0?b+s:s),e==null)e=o>0?t:u;else{if(a=new h(e),!a.isInt()||a.lt(u))throw Error(Ke+a);e=a.gt(t)?o>0?t:u:a}for(x=!1,a=new h(K(g)),c=h.precision,h.precision=o=g.length*b*2;p=N(a,t,0,1,1),i=r.plus(p.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(p.times(i)),l=i,i=t,t=a.minus(p.times(i)),a=i;return i=N(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=f.s,d=N(u,n,o,1).minus(f).abs().cmp(N(l,r,o,1).minus(f).abs())<1?[u,n]:[l,r],h.precision=c,x=!0,d};m.toHexadecimal=m.toHex=function(e,t){return Si(this,16,e,t)};m.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:ie(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(x=!1,r=N(r,e,0,t,1).times(e),x=!0,y(r)):(e.s=r.s,r=e),r};m.toNumber=function(){return+this};m.toOctal=function(e,t){return Si(this,8,e,t)};m.toPower=m.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(G(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return y(a,n,o);if(t=ee(e.e/b),t>=e.d.length-1&&(r=u<0?-u:u)<=xc)return i=Ss(l,a,r,n),e.s<0?new l(1).div(i):y(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(x=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=Ri(e.times(He(a,n+r)),n),i.d&&(i=y(i,n+5,1),rr(i.d,n,o)&&(t=n+10,i=y(Ri(e.times(He(a,t+r)),t),t+5,1),+K(i.d).slice(n+1,n+15)+1==1e14&&(i=y(i,n+1,0)))),i.s=s,x=!0,l.rounding=o,y(i,n,o))};m.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=we(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(ie(e,1,ze),t===void 0?t=i.rounding:ie(t,0,8),n=y(new i(n),e,t),r=we(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};m.toSignificantDigits=m.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ie(e,1,ze),t===void 0?t=n.rounding:ie(t,0,8)),y(new n(r),e,t)};m.toString=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};m.truncated=m.trunc=function(){return y(new this.constructor(this),this.e+1,1)};m.valueOf=m.toJSON=function(){var e=this,t=e.constructor,r=we(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function K(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(Ke+e)}function rr(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=b,i=0):(i=Math.ceil((t+1)/b),t%=b),o=G(10,b-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==G(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==G(10,t-3)-1,s}function en(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function vc(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/an(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=Et(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var N=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,c,p,d,f,g,h,O,T,S,C,E,me,ae,Bt,U,ne,Ie,z,dt,Lr=n.constructor,qn=n.s==i.s?1:-1,Y=n.d,_=i.d;if(!Y||!Y[0]||!_||!_[0])return new Lr(!n.s||!i.s||(Y?_&&Y[0]==_[0]:!_)?NaN:Y&&Y[0]==0||!_?qn*0:qn/0);for(l?(f=1,c=n.e-i.e):(l=ge,f=b,c=ee(n.e/f)-ee(i.e/f)),z=_.length,ne=Y.length,T=new Lr(qn),S=T.d=[],p=0;_[p]==(Y[p]||0);p++);if(_[p]>(Y[p]||0)&&c--,o==null?(ae=o=Lr.precision,s=Lr.rounding):a?ae=o+(n.e-i.e)+1:ae=o,ae<0)S.push(1),g=!0;else{if(ae=ae/f+2|0,p=0,z==1){for(d=0,_=_[0],ae++;(p1&&(_=e(_,d,l),Y=e(Y,d,l),z=_.length,ne=Y.length),U=z,C=Y.slice(0,z),E=C.length;E=l/2&&++Ie;do d=0,u=t(_,C,z,E),u<0?(me=C[0],z!=E&&(me=me*l+(C[1]||0)),d=me/Ie|0,d>1?(d>=l&&(d=l-1),h=e(_,d,l),O=h.length,E=C.length,u=t(h,C,O,E),u==1&&(d--,r(h,z=10;d/=10)p++;T.e=p+c*f-1,y(T,a?o+T.e+1:o,s,g)}return T}}();function y(e,t,r,n){var i,o,s,a,l,u,c,p,d,f=e.constructor;e:if(t!=null){if(p=e.d,!p)return e;for(i=1,a=p[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=b,s=t,c=p[d=0],l=c/G(10,i-s-1)%10|0;else if(d=Math.ceil((o+1)/b),a=p.length,d>=a)if(n){for(;a++<=d;)p.push(0);c=l=0,i=1,o%=b,s=o-b+1}else break e;else{for(c=a=p[d],i=1;a>=10;a/=10)i++;o%=b,s=o-b+i,l=s<0?0:c/G(10,i-s-1)%10|0}if(n=n||t<0||p[d+1]!==void 0||(s<0?c:c%G(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?c/G(10,i-s):0:p[d-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,u?(t-=e.e+1,p[0]=G(10,(b-t%b)%b),e.e=-t||0):p[0]=e.e=0,e;if(o==0?(p.length=d,a=1,d--):(p.length=d+1,a=G(10,b-o),p[d]=s>0?(c/G(10,i-s)%G(10,s)|0)*a:0),u)for(;;)if(d==0){for(o=1,s=p[0];s>=10;s/=10)o++;for(s=p[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,p[0]==ge&&(p[0]=1));break}else{if(p[d]+=a,p[d]!=ge)break;p[d--]=0,a=1}for(o=p.length;p[--o]===0;)p.pop()}return x&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+We(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+We(-i-1)+o,r&&(n=r-s)>0&&(o+=We(n))):i>=s?(o+=We(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+We(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=We(n))),o}function sn(e,t){var r=e[0];for(t*=b;r>=10;r/=10)t++;return t}function nn(e,t,r){if(t>Pc)throw x=!0,r&&(e.precision=r),Error(Ps);return y(new e(tn),t,1,!0)}function fe(e,t,r){if(t>Ti)throw Error(Ps);return y(new e(rn),t,r,!0)}function Cs(e){var t=e.length-1,r=t*b+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function We(e){for(var t="";e--;)t+="0";return t}function Ss(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/b+4);for(x=!1;;){if(r%2&&(o=o.times(t),Es(o.d,s)&&(i=!0)),r=ee(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),Es(t.d,s)}return x=!0,o}function bs(e){return e.d[e.d.length-1]&1}function As(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(x=!1,l=g):l=t,a=new d(.03125);e.e>-2;)e=e.times(a),p+=5;for(n=Math.log(G(2,p))/Math.LN10*2+5|0,l+=n,r=o=s=new d(1),d.precision=l;;){if(o=y(o.times(e),l,1),r=r.times(++c),a=s.plus(N(o,r,l,1)),K(a.d).slice(0,l)===K(s.d).slice(0,l)){for(i=p;i--;)s=y(s.times(s),l,1);if(t==null)if(u<3&&rr(s.d,l-n,f,u))d.precision=l+=10,r=o=a=new d(1),c=0,u++;else return y(s,d.precision=g,f,x=!0);else return d.precision=g,s}s=a}}function He(e,t){var r,n,i,o,s,a,l,u,c,p,d,f=1,g=10,h=e,O=h.d,T=h.constructor,S=T.rounding,C=T.precision;if(h.s<0||!O||!O[0]||!h.e&&O[0]==1&&O.length==1)return new T(O&&!O[0]?-1/0:h.s!=1?NaN:O?0:h);if(t==null?(x=!1,c=C):c=t,T.precision=c+=g,r=K(O),n=r.charAt(0),Math.abs(o=h.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=K(h.d),n=r.charAt(0),f++;o=h.e,n>1?(h=new T("0."+r),o++):h=new T(n+"."+r.slice(1))}else return u=nn(T,c+2,C).times(o+""),h=He(new T(n+"."+r.slice(1)),c-g).plus(u),T.precision=C,t==null?y(h,C,S,x=!0):h;for(p=h,l=s=h=N(h.minus(1),h.plus(1),c,1),d=y(h.times(h),c,1),i=3;;){if(s=y(s.times(d),c,1),u=l.plus(N(s,new T(i),c,1)),K(u.d).slice(0,c)===K(l.d).slice(0,c))if(l=l.times(2),o!==0&&(l=l.plus(nn(T,c+2,C).times(o+""))),l=N(l,new T(f),c,1),t==null)if(rr(l.d,c-g,S,a))T.precision=c+=g,u=s=h=N(p.minus(1),p.plus(1),c,1),d=y(h.times(h),c,1),i=a=1;else return y(l,T.precision=C,S,x=!0);else return T.precision=C,l;l=u,i+=2}}function Is(e){return String(e.s*e.s/0)}function Ci(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%b,r<0&&(n+=b),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Rs.test(t))return Ci(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ec.test(t))r=16,t=t.toLowerCase();else if(bc.test(t))r=2;else if(wc.test(t))r=8;else throw Error(Ke+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=Ss(n,new n(r),o,o*2)),u=en(t,r,ge),c=u.length-1,o=c;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=sn(u,c),e.d=u,x=!1,s&&(e=N(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?G(2,l):it.pow(2,l))),x=!0,e)}function Rc(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Et(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/an(5,r)),t=Et(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function Et(e,t,r,n,i){var o,s,a,l,u=1,c=e.precision,p=Math.ceil(c/b);for(x=!1,l=r.times(r),a=new e(n);;){if(s=N(a.times(l),new e(t++*t++),c,1),a=i?n.plus(s):n.minus(s),n=N(s.times(l),new e(t++*t++),c,1),s=a.plus(n),s.d[p]!==void 0){for(o=p;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return x=!0,s.d.length=p+1,s}function an(e,t){for(var r=e;--t;)r*=e;return r}function Os(e,t){var r,n=t.s<0,i=fe(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ne=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ne=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ne=bs(r)?n?2:3:n?4:1,t;Ne=bs(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Si(e,t,r,n){var i,o,s,a,l,u,c,p,d,f=e.constructor,g=r!==void 0;if(g?(ie(r,1,ze),n===void 0?n=f.rounding:ie(n,0,8)):(r=f.precision,n=f.rounding),!e.isFinite())c=Is(e);else{for(c=we(e),s=c.indexOf("."),g?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(c=c.replace(".",""),d=new f(1),d.e=c.length-s,d.d=en(we(d),10,i),d.e=d.d.length),p=en(c,10,i),o=l=p.length;p[--l]==0;)p.pop();if(!p[0])c=g?"0p+0":"0";else{if(s<0?o--:(e=new f(e),e.d=p,e.e=o,e=N(e,d,r,n,0,i),p=e.d,o=e.e,u=xs),s=p[r],a=i/2,u=u||p[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&p[r-1]&1||n===(e.s<0?8:7)),p.length=r,u)for(;++p[--r]>i-1;)p[r]=0,r||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(s=0,c="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)c+="0";for(p=en(c,i,t),l=p.length;!p[l-1];--l);for(s=1,c="1.";sl)for(o-=l;o--;)c+="0";else ot)return e.length=t,!0}function Cc(e){return new this(e).abs()}function Sc(e){return new this(e).acos()}function Ac(e){return new this(e).acosh()}function Ic(e,t){return new this(e).plus(t)}function Oc(e){return new this(e).asin()}function kc(e){return new this(e).asinh()}function Dc(e){return new this(e).atan()}function _c(e){return new this(e).atanh()}function Fc(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=fe(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?fe(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=fe(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(N(e,t,o,1)),t=fe(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(N(e,t,o,1)),r}function Lc(e){return new this(e).cbrt()}function Nc(e){return y(e=new this(e),e.e+1,2)}function Mc(e,t,r){return new this(e).clamp(t,r)}function $c(e){if(!e||typeof e!="object")throw Error(on+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,ze,"rounding",0,8,"toExpNeg",-bt,0,"toExpPos",0,bt,"maxE",0,bt,"minE",-bt,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Ke+r+": "+n);if(r="crypto",i&&(this[r]=vi[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(vs);else this[r]=!1;else throw Error(Ke+r+": "+n);return this}function qc(e){return new this(e).cos()}function jc(e){return new this(e).cosh()}function ks(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,ws(o)){u.s=o.s,x?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;x?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(vs);else for(;o=10;i/=10)n++;nH(rt(e)),punctuation:rt,directive:De,function:De,variable:e=>H(rt(e)),string:e=>H(qe(e)),boolean:ke,number:De,comment:Gt};var mp=e=>e,un={},fp=0,P={manual:un.Prism&&un.Prism.manual,disableWorkerMessageHandler:un.Prism&&un.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof he){let t=e;return new he(t.type,P.util.encode(t.content),t.alias)}else return Array.isArray(e)?e.map(P.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Ie instanceof he)continue;if(me&&U!=t.length-1){S.lastIndex=ne;var p=S.exec(e);if(!p)break;var c=p.index+(E?p[1].length:0),d=p.index+p[0].length,a=U,l=ne;for(let _=t.length;a<_&&(l=l&&(++U,ne=l);if(t[U]instanceof he)continue;u=a-U,Ie=e.slice(ne,l),p.index-=ne}else{S.lastIndex=0;var p=S.exec(Ie),u=1}if(!p){if(o)break;continue}E&&(ae=p[1]?p[1].length:0);var c=p.index+ae,p=p[0].slice(ae),d=c+p.length,f=Ie.slice(0,c),g=Ie.slice(d);let z=[U,u];f&&(++U,ne+=f.length,z.push(f));let dt=new he(h,C?P.tokenize(p,C):p,Bt,p,me);if(z.push(dt),g&&z.push(g),Array.prototype.splice.apply(t,z),u!=1&&P.matchGrammar(e,t,r,U,ne,!0,h),o)break}}}},tokenize:function(e,t){let r=[e],n=t.rest;if(n){for(let i in n)t[i]=n[i];delete t.rest}return P.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){let r=P.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){let r=P.hooks.all[e];if(!(!r||!r.length))for(var n=0,i;i=r[n++];)i(t)}},Token:he};P.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};P.languages.javascript=P.languages.extend("clike",{"class-name":[P.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});P.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;P.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:P.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:P.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:P.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:P.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});P.languages.markup&&P.languages.markup.tag.addInlined("script","javascript");P.languages.js=P.languages.javascript;P.languages.typescript=P.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});P.languages.ts=P.languages.typescript;function he(e,t,r,n,i){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0,this.greedy=!!i}he.stringify=function(e,t){return typeof e=="string"?e:Array.isArray(e)?e.map(function(r){return he.stringify(r,t)}).join(""):gp(e.type)(e.content)};function gp(e){return Ds[e]||mp}function _s(e){return hp(e,P.languages.javascript)}function hp(e,t){return P.tokenize(e,t).map(n=>he.stringify(n)).join("")}var Fs=k(us());function Ls(e){return(0,Fs.default)(e)}var cn=class e{static read(t){let r;try{r=Ns.default.readFileSync(t,"utf-8")}catch{return null}return e.fromContent(r)}static fromContent(t){let r=t.split(/\r?\n/);return new e(1,r)}constructor(t,r){this.firstLineNumber=t,this.lines=r}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(t,r){if(tthis.lines.length+this.firstLineNumber)return this;let n=t-this.firstLineNumber,i=[...this.lines];return i[n]=r(i[n]),new e(this.firstLineNumber,i)}mapLines(t){return new e(this.firstLineNumber,this.lines.map((r,n)=>t(r,this.firstLineNumber+n)))}lineAt(t){return this.lines[t-this.firstLineNumber]}prependSymbolAt(t,r){return this.mapLines((n,i)=>i===t?`${r} ${n}`:` ${n}`)}slice(t,r){let n=this.lines.slice(t-1,r).join(` -`);return new e(t,Ls(n).split(` -`))}highlight(){let t=_s(this.toString());return new e(this.firstLineNumber,t.split(` -`))}toString(){return this.lines.join(` -`)}};var yp={red:ce,gray:Gt,dim:Oe,bold:H,underline:X,highlightSource:e=>e.highlight()},bp={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Ep({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function wp({callsite:e,message:t,originalMethod:r,isPanic:n,callArguments:i},o){let s=Ep({message:t,originalMethod:r,isPanic:n,callArguments:i});if(!e||typeof window<"u"||process.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=cn.read(a.fileName)?.slice(l,a.lineNumber),c=u?.lineAt(a.lineNumber);if(u&&c){let p=Pp(c),d=xp(c);if(!d)return s;s.functionName=`${d.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,g=>g.slice(0,d.openingBraceIndex))),u=o.highlightSource(u);let f=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((g,h)=>o.gray(String(h).padStart(f))+" "+g).mapLines(g=>o.dim(g)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let g=p+f+1;g+=2,s.callArguments=(0,Ms.default)(i,g).slice(g)}}return s}function xp(e){let t=Object.keys(Je.ModelAction).join("|"),n=new RegExp(String.raw`\.(${t})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Pp(e){let t=0;for(let r=0;r"Unknown error")}function Bs(e){return e.errors.flatMap(t=>t.kind==="Union"?Bs(t):[t])}function Rp(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Cp(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Cp(e,t){return[...new Set(e.concat(t))]}function Sp(e){return xi(e,(t,r)=>{let n=qs(t),i=qs(r);return n!==i?n-i:js(t)-js(r)})}function qs(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function js(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}var ue=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};var Rt=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};var dn=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};var mn=e=>e,fn={bold:mn,red:mn,green:mn,dim:mn,enabled:!1},Us={bold:H,red:ce,green:qe,dim:Oe,enabled:!0},Ct={write(e){e.writeLine(",")}};var Pe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};var Ye=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var St=class extends Ye{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new dn(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new Pe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(Ct,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var At=class e extends Ye{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof St&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new Pe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(Ct,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};var W=class extends Ye{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new Pe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};var nr=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(Ct,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function pn(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Ip(e,t);break;case"IncludeOnScalar":Op(e,t);break;case"EmptySelection":kp(e,t,r);break;case"UnknownSelectionField":Lp(e,t);break;case"InvalidSelectionValue":Np(e,t);break;case"UnknownArgument":Mp(e,t);break;case"UnknownInputField":$p(e,t);break;case"RequiredArgumentMissing":qp(e,t);break;case"InvalidArgumentType":jp(e,t);break;case"InvalidArgumentValue":Vp(e,t);break;case"ValueTooLarge":Bp(e,t);break;case"SomeFieldsMissing":Up(e,t);break;case"TooManyFieldsGiven":Gp(e,t);break;case"Union":Vs(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Ip(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Op(e,t){let[r,n]=ir(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ue(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${or(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function kp(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Dp(e,t,i);return}if(n.hasField("select")){_p(e,t);return}}if(r?.[xt(e.outputType.name)]){Fp(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Dp(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ue(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function _p(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),Ws(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${or(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Fp(e,t){let r=new nr;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ue("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=ir(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new At;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Lp(e,t){let r=Hs(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":Ws(n,e.outputType);break;case"include":Qp(n,e.outputType);break;case"omit":Jp(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(or(n)),i.join(" ")})}function Np(e,t){let r=Hs(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function Mp(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Wp(n,e.arguments)),t.addErrorMessage(i=>Qs(i,r,e.arguments.map(o=>o.name)))}function $p(e,t){let[r,n]=ir(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Ks(o,e.inputType)}t.addErrorMessage(o=>Qs(o,n,e.inputType.fields.map(s=>s.name)))}function Qs(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Kp(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(or(e)),n.join(" ")}function qp(e,t){let r;t.addErrorMessage(l=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=ir(e.argumentPath),s=new nr,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ue(o,s).makeRequired())}else{let l=e.inputTypes.map(Js).join(" | ");a.addSuggestion(new ue(o,l).makeRequired())}}function Js(e){return e.kind==="list"?`${Js(e.elementType)}[]`:e.name}function jp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=gn("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Vp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=gn("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Bp(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Up(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Ks(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${gn("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(or(i)),o.join(" ")})}function Gp(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${gn("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function Ws(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ue(r.name,"true"))}function Qp(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ue(r.name,"true"))}function Jp(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ue(r.name,"true"))}function Wp(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ue(r.name,r.typeNames.join(" | ")))}function Hs(e,t){let[r,n]=ir(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Ks(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ue(r.name,r.typeNames.join(" | ")))}function ir(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function or({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function gn(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Hp=3;function Kp(e,t){let r=1/0,n;for(let i of t){let o=(0,Gs.default)(e,i);o>Hp||o`}};function It(e){return e instanceof sr}var hn=Symbol(),Ii=new WeakMap,Me=class{constructor(t){t===hn?Ii.set(this,`Prisma.${this._getName()}`):Ii.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Ii.get(this)}},ar=class extends Me{_getNamespace(){return"NullTypes"}},lr=class extends ar{};Oi(lr,"DbNull");var ur=class extends ar{};Oi(ur,"JsonNull");var cr=class extends ar{};Oi(cr,"AnyNull");var yn={classes:{DbNull:lr,JsonNull:ur,AnyNull:cr},instances:{DbNull:new lr(hn),JsonNull:new ur(hn),AnyNull:new cr(hn)}};function Oi(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var Ys=": ",bn=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+Ys.length}write(t){let r=new Pe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(Ys).write(this.value)}};var ki=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function Ot(e){return new ki(Zs(e))}function Zs(e){let t=new At;for(let[r,n]of Object.entries(e)){let i=new bn(r,Xs(n));t.addField(i)}return t}function Xs(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(vt(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return Buffer.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=ln(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof Me?new W(`Prisma.${e._getName()}`):It(e)?new W(`prisma.${zs(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?zp(e):typeof e=="object"?Zs(e):new W(Object.prototype.toString.call(e))}function zp(e){let t=new St;for(let r of e)t.addItem(Xs(r));return t}function En(e,t){let r=t==="pretty"?Us:fn,n=e.renderAllMessages(r),i=new Rt(0,{colors:r}).write(e).toString();return{message:n,args:i}}function wn({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=Ot(e);for(let p of t)pn(p,a,s);let{message:l,args:u}=En(a,r),c=Tt({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new J(c,{clientVersion:o})}var ve=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};function pr(e){let t;return{get(){return t||(t={value:e()}),t.value}}}function Te(e){return e.replace(/^./,t=>t.toLowerCase())}function ta(e,t,r){let n=Te(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Yp({...e,...ea(t.name,e,t.result.$allModels),...ea(t.name,e,t.result[n])})}function Yp(e){let t=new ve,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return yt(e,n=>({...n,needs:r(n.name,new Set)}))}function ea(e,t,r){return r?yt(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:Zp(t,o,i)})):{}}function Zp(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function ra(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function na(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var xn=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ve;this.modelExtensionsCache=new ve;this.queryCallbacksCache=new ve;this.clientExtensions=pr(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=pr(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>ta(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Te(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},kt=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new xn(t))}isEmpty(){return this.head===void 0}append(t){return new e(new xn(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};var ia=Symbol(),dr=class{constructor(t){if(t!==ia)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Pn:t}},Pn=new dr(ia);function Re(e){return e instanceof dr}var Xp={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},oa="explicitly `undefined` values are not allowed";function vn({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=kt.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c}){let p=new Di({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c});return{modelName:e,action:Xp[t],query:mr(r,p)}}function mr({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:aa(r,n),selection:ed(e,t,i,n)}}function ed(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),id(e,n)):td(n,t,r)}function td(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&rd(n,t,e),e.isPreviewFeatureOn("omitApi")&&nd(n,r,e),n}function rd(e,t,r){for(let[n,i]of Object.entries(t)){if(Re(i))continue;let o=r.nestSelection(n);if(_i(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=mr(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=mr(i,o)}}function nd(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=na(i,n);for(let[s,a]of Object.entries(o)){if(Re(a))continue;_i(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function id(e,t){let r={},n=t.getComputedFields(),i=ra(e,n);for(let[o,s]of Object.entries(i)){if(Re(s))continue;let a=t.nestSelection(o);_i(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Re(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=mr({},a):r[o]=!0;continue}r[o]=mr(s,a)}}return r}function sa(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(Pt(e)){if(ln(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(It(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return od(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:Buffer.from(e).toString("base64")};if(sd(e))return e.values;if(vt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof Me){if(e!==yn.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(ad(e))return e.toJSON();if(typeof e=="object")return aa(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function aa(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Re(i)||(i!==void 0?r[n]=sa(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:oa}))}return r}function od(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[xt(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Fe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};var Dt=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};function la(e){return{models:Fi(e.models),enums:Fi(e.enums),types:Fi(e.types)}}function Fi(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function ua(e,t){let r=pr(()=>ld(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ld(e){return{datamodel:{models:Li(e.models),enums:Li(e.enums),types:Li(e.types)}}}function Li(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}var Ni=new WeakMap,Tn="$$PrismaTypedSql",Mi=class{constructor(t,r){Ni.set(this,{sql:t,values:r}),Object.defineProperty(this,Tn,{value:Tn})}get sql(){return Ni.get(this).sql}get values(){return Ni.get(this).values}};function ca(e){return(...t)=>new Mi(e,t)}function pa(e){return e!=null&&e[Tn]===Tn}function fr(e){return{ok:!1,error:e,map(){return fr(e)},flatMap(){return fr(e)}}}var $i=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},qi=e=>{let t=new $i,r=Ce(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ce(t,e.queryRaw.bind(e)),executeRaw:Ce(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>ud(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=pd(t,e.getConnectionInfo.bind(e))),n},ud=(e,t)=>{let r=Ce(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>cd(e,o))}},cd=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),commit:Ce(e,t.commit.bind(t)),rollback:Ce(e,t.rollback.bind(t))});function Ce(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return fr({kind:"GenericJs",id:i})}}}function pd(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return fr({kind:"GenericJs",id:i})}}}var Wl=k(oi());var Hl=require("async_hooks"),Kl=require("events"),zl=k(require("fs")),Fr=k(require("path"));var oe=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}var Rn={enumerable:!0,configurable:!0,writable:!0};function Cn(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Rn,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var fa=Symbol.for("nodejs.util.inspect.custom");function Se(e,t){let r=dd(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=ga(Reflect.ownKeys(o),r),a=ga(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Rn,...l?.getPropertyDescriptor(s)}:Rn:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[fa]=function(){let o={...this};return delete o[fa],o},i}function dd(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function ga(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}function _t(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}function Ft(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}function ha(e){if(e===void 0)return"";let t=Ot(e);return new Rt(0,{colors:fn}).write(t).toString()}var md="P2037";function st({error:e,user_facing_error:t},r,n){return t.error_code?new V(fd(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new B(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function fd(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===md&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}var hr="";function ya(e){var t=e.split(` -`);return t.reduce(function(r,n){var i=yd(n)||Ed(n)||Pd(n)||Cd(n)||Td(n);return i&&r.push(i),r},[])}var gd=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hd=/\((\S*)(?::(\d+))(?::(\d+))\)/;function yd(e){var t=gd.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=hd.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||hr,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var bd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Ed(e){var t=bd.exec(e);return t?{file:t[2],methodName:t[1]||hr,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var wd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,xd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Pd(e){var t=wd.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=xd.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||hr,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var vd=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Td(e){var t=vd.exec(e);return t?{file:t[3],methodName:t[1]||hr,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Rd=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Cd(e){var t=Rd.exec(e);return t?{file:t[2],methodName:t[1]||hr,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Bi=class{getLocation(){return null}},Ui=class{constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=ya(t).find(i=>{if(!i.file)return!1;let o=mi(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ze(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Bi:new Ui}var ba={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function Lt(e={}){let t=Ad(e);return Object.entries(t).reduce((n,[i,o])=>(ba[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Ad(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Sn(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Ea(e,t){let r=Sn(e);return t({action:"aggregate",unpacker:r,argsMapper:Lt})(e)}function Id(e={}){let{select:t,...r}=e;return typeof t=="object"?Lt({...r,_count:t}):Lt({...r,_count:{_all:!0}})}function Od(e={}){return typeof e.select=="object"?t=>Sn(e)(t)._count:t=>Sn(e)(t)._count._all}function wa(e,t){return t({action:"count",unpacker:Od(e),argsMapper:Id})(e)}function kd(e={}){let t=Lt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Dd(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function xa(e,t){return t({action:"groupBy",unpacker:Dd(e),argsMapper:kd})(e)}function Pa(e,t,r){if(t==="aggregate")return n=>Ea(n,r);if(t==="count")return n=>wa(n,r);if(t==="groupBy")return n=>xa(n,r)}function va(e,t){let r=t.fields.filter(i=>!i.relationName),n=wi(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new sr(e,o,s.type,s.isList,s.kind==="enum")},...Cn(Object.keys(n))})}var Ta=e=>Array.isArray(e)?e:e.split("."),Gi=(e,t)=>Ta(t).reduce((r,n)=>r&&r[n],e),Ra=(e,t,r)=>Ta(t).reduceRight((n,i,o,s)=>Object.assign({},Gi(e,s.slice(0,o)),{[i]:n}),r);function _d(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Fd(e,t,r){return t===void 0?e??{}:Ra(t,r,e||!0)}function Qi(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ze(e._errorFormat),c=_d(n,i),p=Fd(l,o,c),d=r({dataPath:c,callsite:u})(p),f=Ld(e,t);return new Proxy(d,{get(g,h){if(!f.includes(h))return g[h];let T=[a[h].type,r,h],S=[c,p];return Qi(e,...T,...S)},...Cn([...f,...Object.getOwnPropertyNames(d)])})}}function Ld(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}function Ca(e,t,r,n){return e===Je.ModelAction.findFirstOrThrow||e===Je.ModelAction.findUniqueOrThrow?Nd(t,r,n):n}function Nd(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=Tt({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new J(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof V&&o.code==="P2025"?new Le(`No ${e} found`,t):o})}}var Md=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],$d=["aggregate","count","groupBy"];function Ji(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[qd(e,t),Vd(e,t),gr(r),re("name",()=>t),re("$name",()=>t),re("$parent",()=>e._appliedParent)];return Se({},n)}function qd(e,t){let r=Te(t),n=Object.keys(Je.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=Ca(o,t,e._clientVersion,s);let a=l=>u=>{let c=Ze(e._errorFormat);return e._createPrismaPromise(p=>{let d={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:p,callsite:c};return s({...d,...l})})};return Md.includes(o)?Qi(e,t,a):jd(i)?Pa(e,i,a):a({})}}}function jd(e){return $d.includes(e)}function Vd(e,t){return ot(re("fields",()=>{let r=e._runtimeDataModel.models[t];return va(t,r)}))}function Sa(e){return e.replace(/^./,t=>t.toUpperCase())}var Wi=Symbol();function yr(e){let t=[Bd(e),re(Wi,()=>e),re("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(gr(r)),Se(e,t)}function Bd(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Te),n=[...new Set(t.concat(r))];return ot({getKeys(){return n},getPropertyValue(i){let o=Sa(i);if(e._runtimeDataModel.models[o]!==void 0)return Ji(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Ji(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Aa(e){return e[Wi]?e[Wi]:e}function Ia(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return yr(t)}function Oa({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(c=>n[c]);u.length>0&&a.push(_t(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(c=>!r[c]);u.length>0&&a.push(_t(u))}Ud(e,l.needs)&&s.push(Gd(l,Se(e,s)))}return s.length>0||a.length>0?Se(e,[...s,...a]):e}function Ud(e,t){return t.every(r=>Ei(e,r))}function Gd(e,t){return ot(re(e.name,()=>e.compute(t)))}function An({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sc.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=An({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function Da({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:An({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let c=Te(l);return Oa({result:a,modelName:c,select:u.select,omit:u.select?void 0:{...o?.[c],...u.omit},extensions:n})}})}function _a(e){if(e instanceof oe)return Qd(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:_a(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=qa(o,l),a.args=s,La(e,a,r,n+1)}})})}function Na(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return La(e,t,s)}function Ma(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?$a(r,n,0,e):e(r)}}function $a(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=qa(i,l),$a(a,t,r+1,n)}})}var Fa=e=>e;function qa(e=Fa,t=Fa){return r=>e(t(r))}var ja=L("prisma:client"),Va={Vercel:"vercel","Netlify CI":"netlify"};function Ba({postinstall:e,ciName:t,clientVersion:r}){if(ja("checkPlatformCaching:postinstall",e),ja("checkPlatformCaching:ciName",t),e===!0&&t&&t in Va){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Va[t]}-build`;throw console.error(n),new R(n,r)}}function Ua(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}var Jd="Cloudflare-Workers",Wd="node";function Ga(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Jd?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Wd?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Hd={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function In(){let e=Ga();return{id:e,prettyName:Hd[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var Ka=k(require("fs")),Er=k(require("path"));function On(e){let{runtimeBinaryTarget:t}=e;return`Add "${t}" to \`binaryTargets\` in the "schema.prisma" file and run \`prisma generate\` after saving it: - -${Kd(e)}`}function Kd(e){let{generator:t,generatorBinaryTargets:r,runtimeBinaryTarget:n}=e,i={fromEnvVar:null,value:n},o=[...r,i];return hi({...t,binaryTargets:o})}function Xe(e){let{runtimeBinaryTarget:t}=e;return`Prisma Client could not locate the Query Engine for runtime "${t}".`}function et(e){let{searchedLocations:t}=e;return`The following locations have been searched: -${[...new Set(t)].map(i=>` ${i}`).join(` -`)}`}function Qa(e){let{runtimeBinaryTarget:t}=e;return`${Xe(e)} - -This happened because \`binaryTargets\` have been pinned, but the actual deployment also required "${t}". -${On(e)} - -${et(e)}`}function kn(e){return`We would appreciate if you could take the time to share some information with us. -Please help us by answering a few questions: https://pris.ly/${e}`}function Dn(e){let{errorStack:t}=e;return t?.match(/\/\.next|\/next@|\/next\//)?` - -We detected that you are using Next.js, learn how to fix this: https://pris.ly/d/engine-not-found-nextjs.`:""}function Ja(e){let{queryEngineName:t}=e;return`${Xe(e)}${Dn(e)} - -This is likely caused by a bundler that has not copied "${t}" next to the resulting bundle. -Ensure that "${t}" has been copied next to the bundle or in "${e.expectedLocation}". - -${kn("engine-not-found-bundler-investigation")} - -${et(e)}`}function Wa(e){let{runtimeBinaryTarget:t,generatorBinaryTargets:r}=e,n=r.find(i=>i.native);return`${Xe(e)} - -This happened because Prisma Client was generated for "${n?.value??"unknown"}", but the actual deployment required "${t}". -${On(e)} - -${et(e)}`}function Ha(e){let{queryEngineName:t}=e;return`${Xe(e)}${Dn(e)} - -This is likely caused by tooling that has not copied "${t}" to the deployment folder. -Ensure that you ran \`prisma generate\` and that "${t}" has been copied to "${e.expectedLocation}". - -${kn("engine-not-found-tooling-investigation")} - -${et(e)}`}var zd=L("prisma:client:engines:resolveEnginePath"),Yd=()=>new RegExp("runtime[\\\\/]library\\.m?js$");async function za(e,t){let r={binary:process.env.PRISMA_QUERY_ENGINE_BINARY,library:process.env.PRISMA_QUERY_ENGINE_LIBRARY}[e]??t.prismaPath;if(r!==void 0)return r;let{enginePath:n,searchedLocations:i}=await Zd(e,t);if(zd("enginePath",n),n!==void 0&&e==="binary"&&li(n),n!==void 0)return t.prismaPath=n;let o=await nt(),s=t.generator?.binaryTargets??[],a=s.some(d=>d.native),l=!s.some(d=>d.value===o),u=__filename.match(Yd())===null,c={searchedLocations:i,generatorBinaryTargets:s,generator:t.generator,runtimeBinaryTarget:o,queryEngineName:Ya(e,o),expectedLocation:Er.default.relative(process.cwd(),t.dirname),errorStack:new Error().stack},p;throw a&&l?p=Wa(c):l?p=Qa(c):u?p=Ja(c):p=Ha(c),new R(p,t.clientVersion)}async function Zd(engineType,config){let binaryTarget=await nt(),searchedLocations=[],dirname=eval("__dirname"),searchLocations=[config.dirname,Er.default.resolve(dirname,".."),config.generator?.output?.value??dirname,Er.default.resolve(dirname,"../../../.prisma/client"),"/tmp/prisma-engines",config.cwd];__filename.includes("resolveEnginePath")&&searchLocations.push(Yo());for(let e of searchLocations){let t=Ya(engineType,binaryTarget),r=Er.default.join(e,t);if(searchedLocations.push(e),Ka.default.existsSync(r))return{enginePath:r,searchedLocations}}return{enginePath:void 0,searchedLocations}}function Ya(e,t){return e==="library"?qr(t,"fs"):`query-engine-${t}${t==="windows"?".exe":""}`}var Hi=k(bi());function Za(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}function Xa(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}var el=k(hs());function tl({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,el.default)({user:t,repo:r,template:n,title:e,body:i})}function rl({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=So(6e3-(s?.length??0)),l=Xa((0,Hi.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",c=(0,Hi.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${process.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?Za(s):""} -\`\`\` -`),p=tl({title:r,body:c});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${X(p)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}function Nt({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var _n=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends _n{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Mt=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Mt,"ForcedRetryError");var at=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(at,"InvalidDatasourceError");var lt=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(lt,"NotImplementedYetError");var q=class extends se{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var ut=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(ut,"SchemaMissingError");var Ki="This request could not be understood by the server",wr=class extends q{constructor(r,n,i){super(n||Ki,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(wr,"BadRequestError");var xr=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(xr,"HealthcheckTimeoutError");var Pr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(Pr,"EngineStartupError");var vr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(vr,"EngineVersionNotSupportedError");var zi="Request timed out",Tr=class extends q{constructor(r,n=zi){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(Tr,"GatewayTimeoutError");var Xd="Interactive transaction error",Rr=class extends q{constructor(r,n=Xd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Rr,"InteractiveTransactionError");var em="Request parameters are invalid",Cr=class extends q{constructor(r,n=em){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(Cr,"InvalidRequestError");var Yi="Requested resource does not exist",Sr=class extends q{constructor(r,n=Yi){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};w(Sr,"NotFoundError");var Zi="Unknown server error",$t=class extends q{constructor(r,n,i){super(n||Zi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w($t,"ServerError");var Xi="Unauthorized, check your connection string",Ar=class extends q{constructor(r,n=Xi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Ar,"UnauthorizedError");var eo="Usage exceeded, retry again later",Ir=class extends q{constructor(r,n=eo){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(Ir,"UsageExceededError");async function tm(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Or(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await tm(e);if(n.type==="QueryEngineError")throw new V(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new $t(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new ut(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new vr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Pr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new xr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Rr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Cr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Ar(r,qt(Xi,n));if(e.status===404)return new Sr(r,qt(Yi,n));if(e.status===429)throw new Ir(r,qt(eo,n));if(e.status===504)throw new Tr(r,qt(zi,n));if(e.status>=500)throw new $t(r,qt(Zi,n));if(e.status>=400)throw new wr(r,qt(Ki,n))}function qt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function nl(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function il(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=$e[s]+$e[a]+$e[l]+$e[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=$e[s]+$e[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=$e[s]+$e[a]+$e[l]+"="),r}function ol(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}function rm(e){return e[0]*1e3+e[1]/1e6}function sl(e){return new Date(rm(e))}var al={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var kr=class extends se{constructor(r,n){super(`Cannot fetch data from service: -${r}`,A(n,!0));this.name="RequestError";this.code="P5010"}};w(kr,"RequestError");async function ct(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(to)(e,t)}catch(i){let o=i.message??"Unknown error";throw new kr(o,{clientVersion:n})}}function im(e){return{...e.headers,"Content-Type":"application/json"}}function om(e){return{method:e.method,headers:im(e)}}function sm(e,t){return{text:()=>Promise.resolve(Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new ro(t.headers)}}async function to(e,t={}){let r=am("https"),n=om(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:c,headers:{location:p}}=u;c>=301&&c<=399&&p&&(p.startsWith("http")===!1?s(to(`${o}${p}`,t)):s(to(p,t))),u.on("data",d=>i.push(d)),u.on("end",()=>s(sm(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var am=typeof require<"u"?require:()=>{},ro=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var lm=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,ll=L("prisma:client:dataproxyEngine");async function um(e,t){let r=al["@prisma/engines-version"],n=t.clientVersion??"unknown";if(process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&lm.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),c=cm(`<=${a}.${l}.${u}`),p=await ct(c,{clientVersion:n});if(!p.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${p.status} ${p.statusText}, response body: ${await p.text()||""}`);let d=await p.text();ll("length of body fetched from unpkg.com",d.length);let f;try{f=JSON.parse(d)}catch(g){throw console.error("JSON.parse error: body fetched from unpkg.com: ",d),g}return f.version}throw new lt("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function ul(e,t){let r=await um(e,t);return ll("version",r),r}function cm(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var cl=3,no=L("prisma:client:dataproxyEngine"),io=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},Dr=class{constructor(t){this.name="DataProxyEngine";ol(t),this.config=t,this.env={...t.env,...typeof process<"u"?process.env:{}},this.inlineSchema=il(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new io({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await ul(t,this.config),no("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:sl(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await ct(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||no("schema response status",r.status);let n=await Or(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Ft(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?st(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||no("graphql response status",a.status),await this.handleError(await Or(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?st(l.errors[0],this.config.clientVersion,this.config.activeProvider):new B(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await ct(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Or(l,this.clientVersion));let u=await l.json(),c=u.extensions;c&&this.propagateResponseExtensions(c);let p=u.id,d=u["data-proxy"].endpoint;return{id:p,payload:{endpoint:d}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Or(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=Nt({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new at(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new lt("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=cl)throw i instanceof Mt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${cl} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await nl(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof ut)throw await this.uploadSchema(),new Mt({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function pl(e){if(e?.kind==="itx")return e.options.id}var so=k(require("os")),dl=k(require("path"));var oo=Symbol("PrismaLibraryEngineCache");function pm(){let e=globalThis;return e[oo]===void 0&&(e[oo]={}),e[oo]}function dm(e){let t=pm();if(t[e]!==void 0)return t[e];let r=dl.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=so.default.constants.dlopen.RTLD_LAZY|so.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,r,i),t[e]=n.exports,n.exports}var ml={async loadLibrary(e){let t=await Yn(),r=await za("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>dm(r))}catch(n){let i=ui({e:n,platformInfo:t,id:r});throw new R(i,e.clientVersion)}}};var ao,fl={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new R(`The \`adapter\` option for \`PrismaClient\` is required in this context (${In().prettyName})`,t);if(n===void 0)throw new R("WASM engine was unexpectedly `undefined`",t);ao===void 0&&(ao=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new R("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},l=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(l.exports),o.QueryEngine})());let i=await ao;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var mm="P2036",Ae=L("prisma:client:libraryEngine");function fm(e){return e.item_type==="query"&&"query"in e}function gm(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var gl=[...Jn,"native"],_r=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??ml,t.engineWasm!==void 0&&(this.libraryLoader=r??fl),this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(hm(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new V(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Ae("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;Qn(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let t=await nt();if(!gl.includes(t))throw new R(`Unknown ${ce("PRISMA_QUERY_ENGINE_LIBRARY")} ${ce(H(t))}. Possible binaryTargets: ${qe(gl.join(", "))} or a path to the query engine library. -You may have to run ${qe("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return t}}parseEngineResponse(t){if(!t)throw new B("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new B("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new WeakRef(this),{adapter:r}=this.config;r&&Ae("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",fm(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):gm(r)?this.loggerRustPanic=new le(lo(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Ae(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Ae("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Ae("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ae("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Ae("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Ae("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Ae(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof R)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new le(lo(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new B(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Ae("requestBatch");let i=Ft(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),pl(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u,elapsed:0});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new le(lo(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:st(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===mm&&this.config.adapter){let r=t.meta?.id;Yr(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return Yr(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function hm(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function lo(e,t){return rl({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function hl({copyEngine:e=!0},t){let r;try{r=Nt({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...process.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&tr("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Yt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new J(u.join(` -`),{clientVersion:t.clientVersion})}if(o)return new Dr(t);if(a)return new _r(t);throw new J("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}function Fn({generator:e}){return e?.previewFeatures??[]}var yl=e=>({command:e});var bl=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);function jt(e){try{return El(e,"fast")}catch{return El(e,"slow")}}function El(e,t){return JSON.stringify(e.map(r=>xl(r,t)))}function xl(e,t){return Array.isArray(e)?e.map(r=>xl(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:Pt(e)?{prisma__type:"date",prisma__value:e.toJSON()}:xe.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:ym(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Pl(e):e}function ym(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Pl(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(wl);let t={};for(let r of Object.keys(e))t[r]=wl(e[r]);return t}function wl(e){return typeof e=="bigint"?e.toString():Pl(e)}var bm=["$connect","$disconnect","$on","$transaction","$use","$extends"],vl=bm;var Em=/^(\s*alter\s)/i,Tl=L("prisma:client");function uo(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Em.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var co=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(pa(r))n=r.sql,i={values:jt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:jt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:jt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:jt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=bl(r),i={values:jt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Tl(`prisma.${e}(${n}, ${i.values})`):Tl(`prisma.${e}(${n})`),{query:n,parameters:i}},Rl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},Cl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function po(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Sl(r(o)):Sl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Sl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Al={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},mo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Al}};function Il(e){return e.includes("tracing")?new mo:Al}function Ol(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function kl(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var Ln=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Fl=k(bi());function Nn(e){return typeof e.batchRequestIdx=="number"}function Dl(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(fo(e.query.arguments)),t.push(fo(e.query.selection)),t.join("")}function fo(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${fo(n)})`:r}).join(" ")})`}var wm={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function go(e){return wm[e]}var Mn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ipt("bigint",r));case"bytes-array":return t.map(r=>pt("bytes",r));case"decimal-array":return t.map(r=>pt("decimal",r));case"datetime-array":return t.map(r=>pt("datetime",r));case"date-array":return t.map(r=>pt("date",r));case"time-array":return t.map(r=>pt("time",r));default:return t}}function _l(e){let t=[],r=xm(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>go(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:vm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Ll(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:go(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Dl(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Pm(t),Tm(t,i)||t instanceof Le)throw t;if(t instanceof V&&Rm(t)){let u=Nl(t.meta);wn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Tt({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new V(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Fl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Gi(o,s),l=i==="queryRaw"?_l(a):wt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function vm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Ll(e)};Fe(e,"Unknown transaction kind")}}function Ll(e){return{id:e.id,payload:e.payload}}function Tm(e,t){return Nn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Rm(e){return e.code==="P2009"||e.code==="P2012"}function Nl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Nl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Ml="5.22.0";var $l=Ml;var Ul=k(Ai());var F=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};w(F,"PrismaClientConstructorValidationError");var ql=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],jl=["pretty","colorless","minimal"],Vl=["info","query","warn","error"],Sm={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=Vt(r,t)||` Available datasources: ${t.join(", ")}`;throw new F(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new F(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new F('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!Fn(t).includes("driverAdapters"))throw new F('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Yt()==="binary")throw new F('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new F(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!jl.includes(e)){let t=Vt(e,jl);throw new F(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Vl.includes(r)){let n=Vt(r,Vl);throw new F(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=Vt(i,o);throw new F(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new F(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new F(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new F(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new F('"omit" option is expected to be an object.');if(e===null)throw new F('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=Im(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new F(Om(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new F(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=Vt(r,t);throw new F(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function Gl(e,t){for(let[r,n]of Object.entries(e)){if(!ql.includes(r)){let i=Vt(r,ql);throw new F(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}Sm[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new F('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function Vt(e,t){if(t.length===0||typeof e!="string")return"";let r=Am(e,t);return r?` Did you mean "${r}"?`:""}function Am(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Ul.default)(e,i)}));r.sort((i,o)=>i.distancext(n)===t);if(r)return e[r]}function Om(e,t){let r=Ot(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=En(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}function Ql(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=c,a()},c=>{if(!Nn(c)){l(c);return}c.batchRequestIdx===u?l(c):(i||(i=c),a())})})}var tt=L("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var km={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Dm=Symbol.for("prisma.client.transaction.id"),_m={id:0,nextId(){return++this.id}};function Yl(e){class t{constructor(n){this._originalClient=this;this._middlewares=new Ln;this._createPrismaPromise=po();this.$extends=Ia;e=n?.__internal?.configOverride?.(e)??e,Ba(e),n&&Gl(n,e);let i=new Kl.EventEmitter().on("error",()=>{});this._extensions=kt.empty(),this._previewFeatures=Fn(e),this._clientVersion=e.clientVersion??$l,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Il(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&Fr.default.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&Fr.default.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=qi(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new R(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new R("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=!s&&zt(o,{conflictCheck:"none"})||e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},c=u.debug===!0;c&&L.enable("prisma:client");let p=Fr.default.resolve(e.dirname,e.relativePath);zl.default.existsSync(p)||(p=e.dirname),tt("dirname",e.dirname),tt("relativePath",e.relativePath),tt("cwd",p);let d=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:process.env.NODE_ENV==="production"?this._errorFormat="minimal":process.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:p,dirname:e.dirname,enableDebugLogs:c,allowTriggerPanic:d.allowTriggerPanic,datamodelPath:Fr.default.join(e.dirname,e.filename??"schema.prisma"),prismaPath:d.binaryPath??void 0,engineEndpoint:d.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&kl(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(f=>typeof f=="string"?f==="query":f.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Ua(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Nt,getBatchRequestPayload:Ft,prismaGraphQLToJSError:st,PrismaClientUnknownRequestError:B,PrismaClientInitializationError:R,PrismaClientKnownRequestError:V,debug:L("prisma:client:accelerateEngine"),engineVersion:Wl.version,clientVersion:e.clientVersion}},tt("clientVersion",e.clientVersion),this._engine=hl(e,this._engineConfig),this._requestHandler=new $n(this,i),l.log)for(let f of l.log){let g=typeof f=="string"?f:f.emit==="stdout"?f.level:null;g&&this.$on(g,h=>{er.log(`${er.tags[g]??""}`,h.message||h.query)})}this._metrics=new Dt(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=yr(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ao()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=Jl(n,i);return uo(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new J("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(uo(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new J(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:yl,callsite:Ze(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:co({clientMethod:i,activeProvider:a}),callsite:Ze(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...Jl(n,i));throw new J("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new J("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=_m.nextId(),s=Ol(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let c=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,p={kind:"batch",id:o,index:u,isolationLevel:c,lock:s};return l.requestTransaction?.(p)??l});return Ql(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return yr(Se(Aa(this),[re("_appliedParent",()=>this._appliedParent._createItxClient(n)),re("_createPrismaPromise",()=>po(n)),re(Dm,()=>n.id),_t(vl)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??km,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let c=this._middlewares.get(++a);if(c)return this._tracingHelper.runInChildSpan(s.middleware,O=>c(u,T=>(O?.end(),l(T))));let{runInTransaction:p,args:d,...f}=u,g={...n,...f};d&&(g.args=i.middlewareArgsToRequestArgs(d)),n.transaction!==void 0&&p===!1&&delete g.transaction;let h=await Na(this,g);return g.model?Da({result:h,modelName:g.model,args:g.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):h};return this._tracingHelper.runInChildSpan(s.operation,()=>new Hl.AsyncResource("prisma-client-request").runInAsyncScope(()=>l(o)))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:c,unpacker:p,otelParentCtx:d,customDataProxyFetch:f}){try{n=u?u(n):n;let g={name:"serialize"},h=this._tracingHelper.runInChildSpan(g,()=>vn({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return L.enabled("prisma:client")&&(tt("Prisma Client call:"),tt(`prisma.${i}(${ha(n)})`),tt("Generated request:"),tt(JSON.stringify(h,null,2)+` -`)),c?.kind==="batch"&&await c.lock,this._requestHandler.request({protocolQuery:h,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:c,unpacker:p,otelParentCtx:d,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:f})}catch(g){throw g.clientVersion=this._clientVersion,g}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new J("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function Jl(e,t){return Fm(e)?[new oe(e,t),Rl]:[e,Cl]}function Fm(e){return Array.isArray(e)&&Array.isArray(e.raw)}var Lm=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Zl(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!Lm.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}function Xl(e){zt(e,{conflictCheck:"warn"})}0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -/*! Bundled license information: - -decimal.js/decimal.mjs: - (*! - * decimal.js v10.4.3 - * An arbitrary-precision Decimal type for JavaScript. - * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2022 Michael Mclaughlin - * MIT Licence - *) -*/ -//# sourceMappingURL=library.js.map diff --git a/mcp-server/node_modules/.prisma/client/runtime/react-native.js b/mcp-server/node_modules/.prisma/client/runtime/react-native.js deleted file mode 100644 index e542e40..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/react-native.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict";var aa=Object.create;var tr=Object.defineProperty;var la=Object.getOwnPropertyDescriptor;var ua=Object.getOwnPropertyNames;var ca=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pt=(e,t)=>{for(var r in t)tr(e,r,{get:t[r],enumerable:!0})},Hn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ua(t))!pa.call(e,i)&&i!==r&&tr(e,i,{get:()=>t[i],enumerable:!(n=la(t,i))||n.enumerable});return e};var he=(e,t,r)=>(r=e!=null?aa(ca(e)):{},Hn(t||!e||!e.__esModule?tr(r,"default",{value:e,enumerable:!0}):r,e)),da=e=>Hn(tr({},"__esModule",{value:!0}),e);var y,c=Le(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var x,p=Le(()=>{"use strict";x=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=Le(()=>{"use strict";E=()=>{};E.prototype=E});var b,f=Le(()=>{"use strict";b=class{constructor(t){this.value=t}deref(){return this.value}}});var mi=ge(tt=>{"use strict";m();c();p();d();f();var ei=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fa=ei(e=>{"use strict";e.byteLength=l,e.toByteArray=g,e.fromByteArray=S;var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var F=C.indexOf("=");F===-1&&(F=A);var _=F===A?0:4-F%4;return[F,_]}function l(C){var A=a(C),F=A[0],_=A[1];return(F+_)*3/4-_}function u(C,A,F){return(A+F)*3/4-F}function g(C){var A,F=a(C),_=F[0],N=F[1],M=new n(u(C,_,N)),O=0,Y=N>0?_-4:_,q;for(q=0;q>16&255,M[O++]=A>>8&255,M[O++]=A&255;return N===2&&(A=r[C.charCodeAt(q)]<<2|r[C.charCodeAt(q+1)]>>4,M[O++]=A&255),N===1&&(A=r[C.charCodeAt(q)]<<10|r[C.charCodeAt(q+1)]<<4|r[C.charCodeAt(q+2)]>>2,M[O++]=A>>8&255,M[O++]=A&255),M}function h(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function P(C,A,F){for(var _,N=[],M=A;MY?Y:O+M));return _===1?(A=C[F-1],N.push(t[A>>2]+t[A<<4&63]+"==")):_===2&&(A=(C[F-2]<<8)+C[F-1],N.push(t[A>>10]+t[A>>4&63]+t[A<<2&63]+"=")),N.join("")}}),ma=ei(e=>{e.read=function(t,r,n,i,o){var s,a,l=o*8-i-1,u=(1<>1,h=-7,P=n?o-1:0,S=n?-1:1,C=t[r+P];for(P+=S,s=C&(1<<-h)-1,C>>=-h,h+=l;h>0;s=s*256+t[r+P],P+=S,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=a*256+t[r+P],P+=S,h-=8);if(s===0)s=1-g;else{if(s===u)return a?NaN:(C?-1:1)*(1/0);a=a+Math.pow(2,i),s=s-g}return(C?-1:1)*a*Math.pow(2,s-i)},e.write=function(t,r,n,i,o,s){var a,l,u,g=s*8-o-1,h=(1<>1,S=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:s-1,A=i?1:-1,F=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+P>=1?r+=S/u:r+=S*Math.pow(2,1-P),r*u>=2&&(a++,u/=2),a+P>=h?(l=0,a=h):a+P>=1?(l=(r*u-1)*Math.pow(2,o),a=a+P):(l=r*Math.pow(2,P-1)*Math.pow(2,o),a=0));o>=8;t[n+C]=l&255,C+=A,l/=256,o-=8);for(a=a<0;t[n+C]=a&255,C+=A,a/=256,g-=8);t[n+C-A]|=F*128}}),Gr=fa(),Xe=ma(),zn=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;tt.Buffer=T;tt.SlowBuffer=Ea;tt.INSPECT_MAX_BYTES=50;var rr=2147483647;tt.kMaxLength=rr;T.TYPED_ARRAY_SUPPORT=ga();!T.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ga(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}});Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function Oe(e){if(e>rr)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,T.prototype),t}function T(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Hr(e)}return ti(e,t,r)}T.poolSize=8192;function ti(e,t,r){if(typeof e=="string")return ya(e,t);if(ArrayBuffer.isView(e))return wa(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ye(e,ArrayBuffer)||e&&ye(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(e,SharedArrayBuffer)||e&&ye(e.buffer,SharedArrayBuffer)))return ni(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return T.from(n,t,r);let i=ba(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return T.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}T.from=function(e,t,r){return ti(e,t,r)};Object.setPrototypeOf(T.prototype,Uint8Array.prototype);Object.setPrototypeOf(T,Uint8Array);function ri(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ha(e,t,r){return ri(e),e<=0?Oe(e):t!==void 0?typeof r=="string"?Oe(e).fill(t,r):Oe(e).fill(t):Oe(e)}T.alloc=function(e,t,r){return ha(e,t,r)};function Hr(e){return ri(e),Oe(e<0?0:zr(e)|0)}T.allocUnsafe=function(e){return Hr(e)};T.allocUnsafeSlow=function(e){return Hr(e)};function ya(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!T.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=ii(e,t)|0,n=Oe(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function Wr(e){let t=e.length<0?0:zr(e.length)|0,r=Oe(t);for(let n=0;n=rr)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rr.toString(16)+" bytes");return e|0}function Ea(e){return+e!=e&&(e=0),T.alloc(+e)}T.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==T.prototype};T.compare=function(e,t){if(ye(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),ye(t,Uint8Array)&&(t=T.from(t,t.offset,t.byteLength)),!T.isBuffer(e)||!T.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(T.isBuffer(o)||(o=T.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(T.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function ii(e,t){if(T.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ye(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Kr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return fi(e).length;default:if(i)return n?-1:Kr(e).length;t=(""+t).toLowerCase(),i=!0}}T.byteLength=ii;function xa(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Fa(this,t,r);case"utf8":case"utf-8":return si(this,t,r);case"ascii":return Oa(this,t,r);case"latin1":case"binary":return ka(this,t,r);case"base64":return Ra(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ma(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}T.prototype._isBuffer=!0;function Je(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}T.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""};zn&&(T.prototype[zn]=T.prototype.inspect);T.prototype.compare=function(e,t,r,n,i){if(ye(e,Uint8Array)&&(e=T.from(e,e.offset,e.byteLength)),!T.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),l=this.slice(n,i),u=e.slice(t,r);for(let g=0;g2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Zr(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=T.from(t,n)),T.isBuffer(t))return t.length===0?-1:Yn(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Yn(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Yn(e,t,r,n,i){let o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function l(g,h){return o===1?g[h]:g.readUInt16BE(h*o)}let u;if(i){let g=-1;for(u=r;us&&(r=s-a),u=r;u>=0;u--){let g=!0;for(let h=0;hi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(r)?(r=r>>>0,n===void 0&&(n="utf8")):(n=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return va(this,e,t,r);case"utf8":case"utf-8":return Pa(this,e,t,r);case"ascii":case"latin1":case"binary":return Ta(this,e,t,r);case"base64":return Ca(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aa(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ra(e,t,r){return t===0&&r===e.length?Gr.fromByteArray(e):Gr.fromByteArray(e.slice(t,r))}function si(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+a<=r){let l,u,g,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(h=(o&31)<<6|l&63,h>127&&(s=h));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(h=(o&15)<<12|(l&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=e[i+1],u=e[i+2],g=e[i+3],(l&192)===128&&(u&192)===128&&(g&192)===128&&(h=(o&15)<<18|(l&63)<<12|(u&63)<<6|g&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Sa(n)}var Zn=4096;function Sa(e){let t=e.length;if(t<=Zn)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=t;or&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),tr)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n};T.prototype.readUint8=T.prototype.readUInt8=function(e,t){return e=e>>>0,t||G(e,1,this.length),this[e]};T.prototype.readUint16LE=T.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||G(e,2,this.length),this[e]|this[e+1]<<8};T.prototype.readUint16BE=T.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||G(e,2,this.length),this[e]<<8|this[e+1]};T.prototype.readUint32LE=T.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||G(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};T.prototype.readUint32BE=T.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};T.prototype.readBigUInt64LE=Ne(function(e){e=e>>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+r*2**24;return BigInt(n)+(BigInt(i)<>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+r;return(BigInt(n)<>>0,t=t>>>0,r||G(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};T.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,r||G(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};T.prototype.readInt8=function(e,t){return e=e>>>0,t||G(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};T.prototype.readInt16LE=function(e,t){e=e>>>0,t||G(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};T.prototype.readInt16BE=function(e,t){e=e>>>0,t||G(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};T.prototype.readInt32LE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};T.prototype.readInt32BE=function(e,t){return e=e>>>0,t||G(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};T.prototype.readBigInt64LE=Ne(function(e){e=e>>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(r<<24);return(BigInt(n)<>>0,et(e,"offset");let t=this[e],r=this[e+7];(t===void 0||r===void 0)&&Tt(e,this.length-8);let n=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(n)<>>0,t||G(e,4,this.length),Xe.read(this,e,!0,23,4)};T.prototype.readFloatBE=function(e,t){return e=e>>>0,t||G(e,4,this.length),Xe.read(this,e,!1,23,4)};T.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||G(e,8,this.length),Xe.read(this,e,!0,52,8)};T.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||G(e,8,this.length),Xe.read(this,e,!1,52,8)};function oe(e,t,r,n,i,o){if(!T.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;oe(this,e,t,r,s,0)}let i=1,o=0;for(this[t]=e&255;++o>>0,r=r>>>0,!n){let s=Math.pow(2,8*r)-1;oe(this,e,t,r,s,0)}let i=r-1,o=1;for(this[t+i]=e&255;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r};T.prototype.writeUint8=T.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,1,255,0),this[t]=e&255,t+1};T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ai(e,t,r,n,i){di(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function li(e,t,r,n,i){di(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}T.prototype.writeBigUInt64LE=Ne(function(e,t=0){return ai(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeBigUInt64BE=Ne(function(e,t=0){return li(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});T.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);oe(this,e,t,r,a-1,-a)}let i=0,o=1,s=0;for(this[t]=e&255;++i>0)-s&255;return t+r};T.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let a=Math.pow(2,8*r-1);oe(this,e,t,r,a-1,-a)}let i=r-1,o=1,s=0;for(this[t+i]=e&255;--i>=0&&(o*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r};T.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};T.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};T.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};T.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};T.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,r||oe(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};T.prototype.writeBigInt64LE=Ne(function(e,t=0){return ai(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});T.prototype.writeBigInt64BE=Ne(function(e,t=0){return li(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ui(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ci(e,t,r,n,i){return t=+t,r=r>>>0,i||ui(e,t,r,4,34028234663852886e22,-34028234663852886e22),Xe.write(e,t,r,n,23,4),r+4}T.prototype.writeFloatLE=function(e,t,r){return ci(this,e,t,!0,r)};T.prototype.writeFloatBE=function(e,t,r){return ci(this,e,t,!1,r)};function pi(e,t,r,n,i){return t=+t,r=r>>>0,i||ui(e,t,r,8,17976931348623157e292,-17976931348623157e292),Xe.write(e,t,r,n,52,8),r+8}T.prototype.writeDoubleLE=function(e,t,r){return pi(this,e,t,!0,r)};T.prototype.writeDoubleBE=function(e,t,r){return pi(this,e,t,!1,r)};T.prototype.copy=function(e,t,r,n){if(!T.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>0,r=r===void 0?this.length:r>>>0,e||(e=0);let i;if(typeof e=="number")for(i=t;i2**32?i=Xn(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Xn(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function Xn(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ia(e,t,r){et(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Tt(t,e.length-(r+1))}function di(e,t,r,n,i,o){if(e>r||e3?t===0||t===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${t}${s} and <= ${r}${s}`,new Ze.ERR_OUT_OF_RANGE("value",a,e)}Ia(n,i,o)}function et(e,t){if(typeof e!="number")throw new Ze.ERR_INVALID_ARG_TYPE(t,"number",e)}function Tt(e,t,r){throw Math.floor(e)!==e?(et(e,r),new Ze.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Ze.ERR_BUFFER_OUT_OF_BOUNDS:new Ze.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var _a=/[^+/0-9A-Za-z-_]/g;function La(e){if(e=e.split("=")[0],e=e.trim().replace(_a,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Kr(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function Na(e){let t=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function fi(e){return Gr.toByteArray(La(e))}function nr(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ye(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Zr(e){return e!==e}var $a=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Ne(e){return typeof BigInt>"u"?Ba:e}function Ba(){throw new Error("BigInt not supported")}});var w,m=Le(()=>{"use strict";w=he(mi())});function ja(){return!1}var qa,Ua,ir,tn=Le(()=>{"use strict";m();c();p();d();f();qa={},Ua={existsSync:ja,promises:qa},ir=Ua});function cl(...e){return e.join("/")}function pl(...e){return e.join("/")}var Ri,dl,fl,we,an=Le(()=>{"use strict";m();c();p();d();f();Ri="/",dl={sep:Ri},fl={resolve:cl,posix:dl,join:pl,sep:Ri},we=fl});var ki=ge((nf,Oi)=>{"use strict";m();c();p();d();f();Oi.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Mi=ge((cf,Fi)=>{"use strict";m();c();p();d();f();var gl=ki();Fi.exports=e=>{let t=gl(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var sr,Ii=Le(()=>{"use strict";m();c();p();d();f();sr=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Li=ge((Vf,_i)=>{"use strict";m();c();p();d();f();_i.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var $i=ge((tm,Di)=>{"use strict";m();c();p();d();f();Di.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var cn=ge((am,Bi)=>{"use strict";m();c();p();d();f();var El=$i();Bi.exports=e=>typeof e=="string"?e.replace(El(),""):e});var ji=ge((Cm,lr)=>{"use strict";m();c();p();d();f();lr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};lr.exports.default=lr.exports});var En=ge((Xy,lo)=>{"use strict";m();c();p();d();f();lo.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{gc.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var $o=ge(()=>{"use strict";m();c();p();d();f()});var vp={};Pt(vp,{Debug:()=>on,Decimal:()=>Ee,Extensions:()=>Xr,MetricsClient:()=>yt,NotFoundError:()=>Me,PrismaClientInitializationError:()=>V,PrismaClientKnownRequestError:()=>W,PrismaClientRustPanicError:()=>ue,PrismaClientUnknownRequestError:()=>K,PrismaClientValidationError:()=>H,Public:()=>en,Sql:()=>ae,defineDmmfProperty:()=>_o,deserializeJsonResponse:()=>ot,dmmfToRuntimeDataModel:()=>Io,empty:()=>jo,getPrismaClient:()=>ia,getRuntime:()=>ws,join:()=>Bo,makeStrictEnum:()=>oa,makeTypedQueryFactory:()=>Lo,objectEnumValues:()=>Cr,raw:()=>Mn,serializeJsonQuery:()=>Fr,skip:()=>kr,sqltag:()=>In,warnEnvConflicts:()=>void 0,warnOnce:()=>Lt});module.exports=da(vp);m();c();p();d();f();var Xr={};Pt(Xr,{defineExtension:()=>gi,getExtensionContext:()=>hi});m();c();p();d();f();m();c();p();d();f();function gi(e){return typeof e=="function"?e:t=>t.$extends(e)}m();c();p();d();f();function hi(e){return e}var en={};Pt(en,{validator:()=>yi});m();c();p();d();f();m();c();p();d();f();function yi(...e){return t=>t}m();c();p();d();f();m();c();p();d();f();var or={};Pt(or,{$:()=>vi,bgBlack:()=>Za,bgBlue:()=>rl,bgCyan:()=>il,bgGreen:()=>el,bgMagenta:()=>nl,bgRed:()=>Xa,bgWhite:()=>ol,bgYellow:()=>tl,black:()=>Ka,blue:()=>We,bold:()=>pe,cyan:()=>ke,dim:()=>Ct,gray:()=>Ot,green:()=>Rt,grey:()=>Ya,hidden:()=>Ga,inverse:()=>Ja,italic:()=>Qa,magenta:()=>Ha,red:()=>Ge,reset:()=>Va,strikethrough:()=>Wa,underline:()=>At,white:()=>za,yellow:()=>St});m();c();p();d();f();var rn,wi,bi,Ei,xi=!0;typeof y<"u"&&({FORCE_COLOR:rn,NODE_DISABLE_COLORS:wi,NO_COLOR:bi,TERM:Ei}=y.env||{},xi=y.stdout&&y.stdout.isTTY);var vi={enabled:!wi&&bi==null&&Ei!=="dumb"&&(rn!=null&&rn!=="0"||xi)};function U(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!vi.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Va=U(0,0),pe=U(1,22),Ct=U(2,22),Qa=U(3,23),At=U(4,24),Ja=U(7,27),Ga=U(8,28),Wa=U(9,29),Ka=U(30,39),Ge=U(31,39),Rt=U(32,39),St=U(33,39),We=U(34,39),Ha=U(35,39),ke=U(36,39),za=U(37,39),Ot=U(90,39),Ya=U(90,39),Za=U(40,49),Xa=U(41,49),el=U(42,49),tl=U(43,49),rl=U(44,49),nl=U(45,49),il=U(46,49),ol=U(47,49);m();c();p();d();f();var sl=100,Pi=["green","yellow","blue","magenta","cyan","red"],kt=[],Ti=Date.now(),al=0,nn=typeof y<"u"?y.env:{};globalThis.DEBUG??=nn.DEBUG??"";globalThis.DEBUG_COLORS??=nn.DEBUG_COLORS?nn.DEBUG_COLORS==="true":!0;var Ft={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function ll(e){let t={color:Pi[al++%Pi.length],enabled:Ft.enabled(e),namespace:e,log:Ft.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&kt.push([o,...n]),kt.length>sl&&kt.shift(),Ft.enabled(o)||i){let l=n.map(g=>typeof g=="string"?g:ul(g)),u=`+${Date.now()-Ti}ms`;Ti=Date.now(),globalThis.DEBUG_COLORS?a(or[s](pe(o)),...l,or[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var on=new Proxy(ll,{get:(e,t)=>Ft[t],set:(e,t,r)=>Ft[t]=r});function ul(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Ci(e=7500){let t=kt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` -`);return t.length{let e;(O=>(O.findUnique="findUnique",O.findUniqueOrThrow="findUniqueOrThrow",O.findFirst="findFirst",O.findFirstOrThrow="findFirstOrThrow",O.findMany="findMany",O.create="create",O.createMany="createMany",O.createManyAndReturn="createManyAndReturn",O.update="update",O.updateMany="updateMany",O.upsert="upsert",O.delete="delete",O.deleteMany="deleteMany",O.groupBy="groupBy",O.count="count",O.aggregate="aggregate",O.findRaw="findRaw",O.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(De||={});m();c();p();d();f();an();function ln(e){return we.sep===we.posix.sep?e:e.split(we.sep).join(we.posix.sep)}var _t={};Pt(_t,{error:()=>wl,info:()=>yl,log:()=>hl,query:()=>bl,should:()=>Ni,tags:()=>It,warn:()=>un});m();c();p();d();f();var It={error:Ge("prisma:error"),warn:St("prisma:warn"),info:ke("prisma:info"),query:We("prisma:query")},Ni={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function hl(...e){console.log(...e)}function un(e,...t){Ni.warn()&&console.warn(`${It.warn} ${e}`,...t)}function yl(e,...t){console.info(`${It.info} ${e}`,...t)}function wl(e,...t){console.error(`${It.error} ${e}`,...t)}function bl(e,...t){console.log(`${It.query} ${e}`,...t)}m();c();p();d();f();function ar(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}m();c();p();d();f();function Fe(e,t){throw new Error(t)}m();c();p();d();f();function pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}m();c();p();d();f();var dn=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});m();c();p();d();f();function rt(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}m();c();p();d();f();function fn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{qi.has(e)||(qi.add(e),un(t,...r))};m();c();p();d();f();var W=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};re(W,"PrismaClientKnownRequestError");var Me=class extends W{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};re(Me,"NotFoundError");m();c();p();d();f();var V=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};re(V,"PrismaClientInitializationError");m();c();p();d();f();var ue=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};re(ue,"PrismaClientRustPanicError");m();c();p();d();f();var K=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};re(K,"PrismaClientUnknownRequestError");m();c();p();d();f();var H=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};re(H,"PrismaClientValidationError");m();c();p();d();f();m();c();p();d();f();var nt=9e15,qe=1e9,mn="0123456789abcdef",cr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",pr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",gn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-nt,maxE:nt,crypto:!1},Gi,Ie,L=!0,fr="[DecimalError] ",je=fr+"Invalid argument: ",Wi=fr+"Precision limit exceeded",Ki=fr+"crypto unavailable",Hi="[object Decimal]",te=Math.floor,J=Math.pow,xl=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,vl=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Pl=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,zi=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fe=1e7,I=7,Tl=9007199254740991,Cl=cr.length-1,hn=pr.length-1,R={toStringTag:Hi};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),k(e)};R.ceil=function(){return k(new this.constructor(this),this.e+1,2)};R.clampedTo=R.clamp=function(e,t){var r,n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(je+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new i(n)};R.comparedTo=R.cmp=function(e){var t,r,n,i,o=this,s=o.d,a=(e=new o.constructor(e)).d,l=o.s,u=e.s;if(!s||!a)return!l||!u?NaN:l!==u?l:s===a?0:!s^l<0?1:-1;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(n=s.length,i=a.length,t=0,r=na[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1};R.cosine=R.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+I,n.rounding=1,r=Al(n,to(n,r)),n.precision=e,n.rounding=t,k(Ie==2||Ie==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)};R.cubeRoot=R.cbrt=function(){var e,t,r,n,i,o,s,a,l,u,g=this,h=g.constructor;if(!g.isFinite()||g.isZero())return new h(g);for(L=!1,o=g.s*J(g.s*g,1/3),!o||Math.abs(o)==1/0?(r=Z(g.d),e=g.e,(o=(e-r.length+1)%3)&&(r+=o==1||o==-2?"0":"00"),o=J(r,1/3),e=te((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?r="5e"+e:(r=o.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=g.s):n=new h(o.toString()),s=(e=h.precision)+3;;)if(a=n,l=a.times(a).times(a),u=l.plus(g),n=j(u.plus(g).times(a),u.plus(l),s+2,1),Z(a.d).slice(0,s)===(r=Z(n.d)).slice(0,s))if(r=r.slice(s-3,s+1),r=="9999"||!i&&r=="4999"){if(!i&&(k(a,e+1,0),a.times(a).times(a).eq(g))){n=a;break}s+=4,i=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(k(n,e+1,1),t=!n.times(n).times(n).eq(g));break}return L=!0,k(n,e,h.rounding,t)};R.decimalPlaces=R.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-te(this.e/I))*I,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r};R.dividedBy=R.div=function(e){return j(this,new this.constructor(e))};R.dividedToIntegerBy=R.divToInt=function(e){var t=this,r=t.constructor;return k(j(t,new r(e),0,1,1),r.precision,r.rounding)};R.equals=R.eq=function(e){return this.cmp(e)===0};R.floor=function(){return k(new this.constructor(this),this.e+1,3)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){var t=this.cmp(e);return t==1||t===0};R.hyperbolicCosine=R.cosh=function(){var e,t,r,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),t=(1/gr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),o=it(s,1,o.times(t),new s(1),!0);for(var l,u=e,g=new s(8);u--;)l=o.times(o),o=a.minus(l.times(g.minus(l.times(g))));return k(o,s.precision=r,s.rounding=n,!0)};R.hyperbolicSine=R.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=it(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/gr(5,e)),i=it(o,2,i,i,!0);for(var s,a=new o(5),l=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(a.plus(s.times(l.times(s).plus(u))))}return o.precision=t,o.rounding=r,k(i,t,r,!0)};R.hyperbolicTangent=R.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,j(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)};R.inverseCosine=R.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?t.isNeg()?de(r,i,o):new r(0):new r(NaN):t.isZero()?de(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=de(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))};R.inverseHyperbolicCosine=R.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,L=!1,r=r.times(r).minus(1).sqrt().plus(r),L=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)};R.inverseHyperbolicSine=R.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,L=!1,r=r.times(r).plus(1).sqrt().plus(r),L=!0,n.precision=e,n.rounding=t,r.ln())};R.inverseHyperbolicTangent=R.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?k(new o(i),e,t,!0):(o.precision=r=n-i.e,i=j(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)};R.inverseSine=R.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,t!==-1?t===0?(e=de(o,r+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))};R.inverseTangent=R.atan=function(){var e,t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,P=g.rounding;if(u.isFinite()){if(u.isZero())return new g(u);if(u.abs().eq(1)&&h+4<=hn)return s=de(g,h+4,P).times(.25),s.s=u.s,s}else{if(!u.s)return new g(NaN);if(h+4<=hn)return s=de(g,h+4,P).times(.5),s.s=u.s,s}for(g.precision=a=h+10,g.rounding=1,r=Math.min(28,a/I+2|0),e=r;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(L=!1,t=Math.ceil(a/I),n=1,l=u.times(u),s=new g(u),i=u;e!==-1;)if(i=i.times(l),o=s.minus(i.div(n+=2)),i=i.times(l),s=o.plus(i.div(n+=2)),s.d[t]!==void 0)for(e=t;s.d[e]===o.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2};R.isNaN=function(){return!this.s};R.isNegative=R.isNeg=function(){return this.s<0};R.isPositive=R.isPos=function(){return this.s>0};R.isZero=function(){return!!this.d&&this.d[0]===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.log=function(e){var t,r,n,i,o,s,a,l,u=this,g=u.constructor,h=g.precision,P=g.rounding,S=5;if(e==null)e=new g(10),t=!0;else{if(e=new g(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new g(r&&!r[0]?-1/0:u.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=i!==1}if(L=!1,a=h+S,s=Be(u,a),n=t?dr(g,a+10):Be(e,a),l=j(s,n,a,1),Nt(l.d,i=h,P))do if(a+=10,s=Be(u,a),n=t?dr(g,a+10):Be(e,a),l=j(s,n,a,1),!o){+Z(l.d).slice(i+1,i+15)+1==1e14&&(l=k(l,h+1,0));break}while(Nt(l.d,i+=10,P));return L=!0,k(l,h,P)};R.minus=R.sub=function(e){var t,r,n,i,o,s,a,l,u,g,h,P,S=this,C=S.constructor;if(e=new C(e),!S.d||!e.d)return!S.s||!e.s?e=new C(NaN):S.d?e.s=-e.s:e=new C(e.d||S.s!==e.s?S:NaN),e;if(S.s!=e.s)return e.s=-e.s,S.plus(e);if(u=S.d,P=e.d,a=C.precision,l=C.rounding,!u[0]||!P[0]){if(P[0])e.s=-e.s;else if(u[0])e=new C(S);else return new C(l===3?-0:0);return L?k(e,a,l):e}if(r=te(e.e/I),g=te(S.e/I),u=u.slice(),o=g-r,o){for(h=o<0,h?(t=u,o=-o,s=P.length):(t=P,r=g,s=u.length),n=Math.max(Math.ceil(a/I),s)+2,o>n&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for(n=u.length,s=P.length,h=n0;--n)u[s++]=0;for(n=P.length;n>o;){if(u[--n]s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=u.length,i=g.length,s-i<0&&(i=s,r=g,g=u,u=r),t=0;i;)t=(u[--i]=u[i]+g[i]+t)/fe|0,u[i]%=fe;for(t&&(u.unshift(t),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=mr(u,n),L?k(e,a,l):e};R.precision=R.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(je+e);return r.d?(t=Yi(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t};R.round=function(){var e=this,t=e.constructor;return k(new t(e),e.e+1,t.rounding)};R.sine=R.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+I,n.rounding=1,r=Sl(n,to(n,r)),n.precision=e,n.rounding=t,k(Ie>2?r.neg():r,e,t,!0)):new n(NaN)};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,o,s=this,a=s.d,l=s.e,u=s.s,g=s.constructor;if(u!==1||!a||!a[0])return new g(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(L=!1,u=Math.sqrt(+s),u==0||u==1/0?(t=Z(a),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=te((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),n=new g(t)):n=new g(u.toString()),r=(l=g.precision)+3;;)if(o=n,n=o.plus(j(s,o,r+2,1)).times(.5),Z(o.d).slice(0,r)===(t=Z(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!i&&t=="4999"){if(!i&&(k(o,l+1,0),o.times(o).eq(s))){n=o;break}r+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(k(n,l+1,1),e=!n.times(n).eq(s));break}return L=!0,k(n,l,g.rounding,e)};R.tangent=R.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=j(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,k(Ie==2||Ie==4?r.neg():r,e,t,!0)):new n(NaN)};R.times=R.mul=function(e){var t,r,n,i,o,s,a,l,u,g=this,h=g.constructor,P=g.d,S=(e=new h(e)).d;if(e.s*=g.s,!P||!P[0]||!S||!S[0])return new h(!e.s||P&&!P[0]&&!S||S&&!S[0]&&!P?NaN:!P||!S?e.s/0:e.s*0);for(r=te(g.e/I)+te(e.e/I),l=P.length,u=S.length,l=0;){for(t=0,i=l+n;i>n;)a=o[i]+S[n]*P[i-n-1]+t,o[i--]=a%fe|0,t=a/fe|0;o[i]=(o[i]+t)%fe|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=mr(o,r),L?k(e,h.precision,h.rounding):e};R.toBinary=function(e,t){return bn(this,2,e,t)};R.toDecimalPlaces=R.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(se(e,0,qe),t===void 0?t=n.rounding:se(t,0,8),k(r,e+r.e+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=be(n,!0):(se(e,0,qe),t===void 0?t=i.rounding:se(t,0,8),n=k(new i(n),e+1,t),r=be(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r};R.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?r=be(i):(se(e,0,qe),t===void 0?t=o.rounding:se(t,0,8),n=k(new o(i),e+i.e+1,t),r=be(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r};R.toFraction=function(e){var t,r,n,i,o,s,a,l,u,g,h,P,S=this,C=S.d,A=S.constructor;if(!C)return new A(S);if(u=r=new A(1),n=l=new A(0),t=new A(n),o=t.e=Yi(C)-S.e-1,s=o%I,t.d[0]=J(10,s<0?I+s:s),e==null)e=o>0?t:u;else{if(a=new A(e),!a.isInt()||a.lt(u))throw Error(je+a);e=a.gt(t)?o>0?t:u:a}for(L=!1,a=new A(Z(C)),g=A.precision,A.precision=o=C.length*I*2;h=j(a,t,0,1,1),i=r.plus(h.times(n)),i.cmp(e)!=1;)r=n,n=i,i=u,u=l.plus(h.times(i)),l=i,i=t,t=a.minus(h.times(i)),a=i;return i=j(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=S.s,P=j(u,n,o,1).minus(S).abs().cmp(j(l,r,o,1).minus(S).abs())<1?[u,n]:[l,r],A.precision=g,L=!0,P};R.toHexadecimal=R.toHex=function(e,t){return bn(this,16,e,t)};R.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:se(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(L=!1,r=j(r,e,0,t,1).times(e),L=!0,k(r)):(e.s=r.s,r=e),r};R.toNumber=function(){return+this};R.toOctal=function(e,t){return bn(this,8,e,t)};R.toPower=R.pow=function(e){var t,r,n,i,o,s,a=this,l=a.constructor,u=+(e=new l(e));if(!a.d||!e.d||!a.d[0]||!e.d[0])return new l(J(+a,u));if(a=new l(a),a.eq(1))return a;if(n=l.precision,o=l.rounding,e.eq(1))return k(a,n,o);if(t=te(e.e/I),t>=e.d.length-1&&(r=u<0?-u:u)<=Tl)return i=Zi(l,a,r,n),e.s<0?new l(1).div(i):k(i,n,o);if(s=a.s,s<0){if(tl.maxE+1||t0?s/0:0):(L=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),i=yn(e.times(Be(a,n+r)),n),i.d&&(i=k(i,n+5,1),Nt(i.d,n,o)&&(t=n+10,i=k(yn(e.times(Be(a,t+r)),t),t+5,1),+Z(i.d).slice(n+1,n+15)+1==1e14&&(i=k(i,n+1,0)))),i.s=s,L=!0,l.rounding=o,k(i,n,o))};R.toPrecision=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=be(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(se(e,1,qe),t===void 0?t=i.rounding:se(t,0,8),n=k(new i(n),e,t),r=be(n,e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r};R.toSignificantDigits=R.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(se(e,1,qe),t===void 0?t=n.rounding:se(t,0,8)),k(new n(r),e,t)};R.toString=function(){var e=this,t=e.constructor,r=be(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};R.truncated=R.trunc=function(){return k(new this.constructor(this),this.e+1,1)};R.valueOf=R.toJSON=function(){var e=this,t=e.constructor,r=be(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function Z(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;tr)throw Error(je+e)}function Nt(e,t,r,n){var i,o,s,a;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=I,i=0):(i=Math.ceil((t+1)/I),t%=I),o=J(10,I-t),a=e[i]%o|0,n==null?t<3?(t==0?a=a/100|0:t==1&&(a=a/10|0),s=r<4&&a==99999||r>3&&a==49999||a==5e4||a==0):s=(r<4&&a+1==o||r>3&&a+1==o/2)&&(e[i+1]/o/100|0)==J(10,t-2)-1||(a==o/2||a==0)&&(e[i+1]/o/100|0)==0:t<4?(t==0?a=a/1e3|0:t==1?a=a/100|0:t==2&&(a=a/10|0),s=(n||r<4)&&a==9999||!n&&r>3&&a==4999):s=((n||r<4)&&a+1==o||!n&&r>3&&a+1==o/2)&&(e[i+1]/o/1e3|0)==J(10,t-3)-1,s}function ur(e,t,r){for(var n,i=[0],o,s=0,a=e.length;sr-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function Al(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),i=(1/gr(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=it(e,1,t.times(i),new e(1));for(var o=r;o--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}var j=function(){function e(n,i,o){var s,a=0,l=n.length;for(n=n.slice();l--;)s=n[l]*i+a,n[l]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function t(n,i,o,s){var a,l;if(o!=s)l=o>s?1:-1;else for(a=l=0;ai[a]?1:-1;break}return l}function r(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,s,a,l){var u,g,h,P,S,C,A,F,_,N,M,O,Y,q,vt,Q,ie,Se,X,Ye,er=n.constructor,Jr=n.s==i.s?1:-1,ee=n.d,$=i.d;if(!ee||!ee[0]||!$||!$[0])return new er(!n.s||!i.s||(ee?$&&ee[0]==$[0]:!$)?NaN:ee&&ee[0]==0||!$?Jr*0:Jr/0);for(l?(S=1,g=n.e-i.e):(l=fe,S=I,g=te(n.e/S)-te(i.e/S)),X=$.length,ie=ee.length,_=new er(Jr),N=_.d=[],h=0;$[h]==(ee[h]||0);h++);if($[h]>(ee[h]||0)&&g--,o==null?(q=o=er.precision,s=er.rounding):a?q=o+(n.e-i.e)+1:q=o,q<0)N.push(1),C=!0;else{if(q=q/S+2|0,h=0,X==1){for(P=0,$=$[0],q++;(h1&&($=e($,P,l),ee=e(ee,P,l),X=$.length,ie=ee.length),Q=X,M=ee.slice(0,X),O=M.length;O=l/2&&++Se;do P=0,u=t($,M,X,O),u<0?(Y=M[0],X!=O&&(Y=Y*l+(M[1]||0)),P=Y/Se|0,P>1?(P>=l&&(P=l-1),A=e($,P,l),F=A.length,O=M.length,u=t(A,M,F,O),u==1&&(P--,r(A,X=10;P/=10)h++;_.e=h+g*S-1,k(_,a?o+_.e+1:o,s,C)}return _}}();function k(e,t,r,n){var i,o,s,a,l,u,g,h,P,S=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(i=1,a=h[0];a>=10;a/=10)i++;if(o=t-i,o<0)o+=I,s=t,g=h[P=0],l=g/J(10,i-s-1)%10|0;else if(P=Math.ceil((o+1)/I),a=h.length,P>=a)if(n){for(;a++<=P;)h.push(0);g=l=0,i=1,o%=I,s=o-I+1}else break e;else{for(g=a=h[P],i=1;a>=10;a/=10)i++;o%=I,s=o-I+i,l=s<0?0:g/J(10,i-s-1)%10|0}if(n=n||t<0||h[P+1]!==void 0||(s<0?g:g%J(10,i-s-1)),u=r<4?(l||n)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||n||r==6&&(o>0?s>0?g/J(10,i-s):0:h[P-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,u?(t-=e.e+1,h[0]=J(10,(I-t%I)%I),e.e=-t||0):h[0]=e.e=0,e;if(o==0?(h.length=P,a=1,P--):(h.length=P+1,a=J(10,I-o),h[P]=s>0?(g/J(10,i-s)%J(10,s)|0)*a:0),u)for(;;)if(P==0){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(e.e++,h[0]==fe&&(h[0]=1));break}else{if(h[P]+=a,h[P]!=fe)break;h[P--]=0,a=1}for(o=h.length;h[--o]===0;)h.pop()}return L&&(e.e>S.maxE?(e.d=null,e.e=NaN):e.e0?o=o.charAt(0)+"."+o.slice(1)+$e(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+$e(-i-1)+o,r&&(n=r-s)>0&&(o+=$e(n))):i>=s?(o+=$e(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+$e(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=$e(n))),o}function mr(e,t){var r=e[0];for(t*=I;r>=10;r/=10)t++;return t}function dr(e,t,r){if(t>Cl)throw L=!0,r&&(e.precision=r),Error(Wi);return k(new e(cr),t,1,!0)}function de(e,t,r){if(t>hn)throw Error(Wi);return k(new e(pr),t,r,!0)}function Yi(e){var t=e.length-1,r=t*I+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function $e(e){for(var t="";e--;)t+="0";return t}function Zi(e,t,r,n){var i,o=new e(1),s=Math.ceil(n/I+4);for(L=!1;;){if(r%2&&(o=o.times(t),Qi(o.d,s)&&(i=!0)),r=te(r/2),r===0){r=o.d.length-1,i&&o.d[r]===0&&++o.d[r];break}t=t.times(t),Qi(t.d,s)}return L=!0,o}function Vi(e){return e.d[e.d.length-1]&1}function Xi(e,t,r){for(var n,i=new e(t[0]),o=0;++o17)return new P(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(t==null?(L=!1,l=C):l=t,a=new P(.03125);e.e>-2;)e=e.times(a),h+=5;for(n=Math.log(J(2,h))/Math.LN10*2+5|0,l+=n,r=o=s=new P(1),P.precision=l;;){if(o=k(o.times(e),l,1),r=r.times(++g),a=s.plus(j(o,r,l,1)),Z(a.d).slice(0,l)===Z(s.d).slice(0,l)){for(i=h;i--;)s=k(s.times(s),l,1);if(t==null)if(u<3&&Nt(s.d,l-n,S,u))P.precision=l+=10,r=o=a=new P(1),g=0,u++;else return k(s,P.precision=C,S,L=!0);else return P.precision=C,s}s=a}}function Be(e,t){var r,n,i,o,s,a,l,u,g,h,P,S=1,C=10,A=e,F=A.d,_=A.constructor,N=_.rounding,M=_.precision;if(A.s<0||!F||!F[0]||!A.e&&F[0]==1&&F.length==1)return new _(F&&!F[0]?-1/0:A.s!=1?NaN:F?0:A);if(t==null?(L=!1,g=M):g=t,_.precision=g+=C,r=Z(F),n=r.charAt(0),Math.abs(o=A.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)A=A.times(e),r=Z(A.d),n=r.charAt(0),S++;o=A.e,n>1?(A=new _("0."+r),o++):A=new _(n+"."+r.slice(1))}else return u=dr(_,g+2,M).times(o+""),A=Be(new _(n+"."+r.slice(1)),g-C).plus(u),_.precision=M,t==null?k(A,M,N,L=!0):A;for(h=A,l=s=A=j(A.minus(1),A.plus(1),g,1),P=k(A.times(A),g,1),i=3;;){if(s=k(s.times(P),g,1),u=l.plus(j(s,new _(i),g,1)),Z(u.d).slice(0,g)===Z(l.d).slice(0,g))if(l=l.times(2),o!==0&&(l=l.plus(dr(_,g+2,M).times(o+""))),l=j(l,new _(S),g,1),t==null)if(Nt(l.d,g-C,N,a))_.precision=g+=C,u=s=A=j(h.minus(1),h.plus(1),g,1),P=k(A.times(A),g,1),i=a=1;else return k(l,_.precision=M,N,L=!0);else return _.precision=M,l;l=u,i+=2}}function eo(e){return String(e.s*e.s/0)}function wn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);if(t=t.slice(n,i),t){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%I,r<0&&(n+=I),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),zi.test(t))return wn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(vl.test(t))r=16,t=t.toLowerCase();else if(xl.test(t))r=2;else if(Pl.test(t))r=8;else throw Error(je+t);for(o=t.search(/p/i),o>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,n=e.constructor,s&&(t=t.replace(".",""),a=t.length,o=a-o,i=Zi(n,new n(r),o,o*2)),u=ur(t,r,fe),g=u.length-1,o=g;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=mr(u,g),e.d=u,L=!1,s&&(e=j(e,i,a*4)),l&&(e=e.times(Math.abs(l)<54?J(2,l):Ke.pow(2,l))),L=!0,e)}function Sl(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:it(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/gr(5,r)),t=it(e,2,t,t);for(var i,o=new e(5),s=new e(16),a=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(s.times(i).minus(a))));return t}function it(e,t,r,n,i){var o,s,a,l,u=1,g=e.precision,h=Math.ceil(g/I);for(L=!1,l=r.times(r),a=new e(n);;){if(s=j(a.times(l),new e(t++*t++),g,1),a=i?n.plus(s):n.minus(s),n=j(s.times(l),new e(t++*t++),g,1),s=a.plus(n),s.d[h]!==void 0){for(o=h;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return L=!0,s.d.length=h+1,s}function gr(e,t){for(var r=e;--t;)r*=e;return r}function to(e,t){var r,n=t.s<0,i=de(e,e.precision,1),o=i.times(.5);if(t=t.abs(),t.lte(o))return Ie=n?4:1,t;if(r=t.divToInt(i),r.isZero())Ie=n?3:2;else{if(t=t.minus(r.times(i)),t.lte(o))return Ie=Vi(r)?n?2:3:n?4:1,t;Ie=Vi(r)?n?1:4:n?3:2}return t.minus(i).abs()}function bn(e,t,r,n){var i,o,s,a,l,u,g,h,P,S=e.constructor,C=r!==void 0;if(C?(se(r,1,qe),n===void 0?n=S.rounding:se(n,0,8)):(r=S.precision,n=S.rounding),!e.isFinite())g=eo(e);else{for(g=be(e),s=g.indexOf("."),C?(i=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):i=t,s>=0&&(g=g.replace(".",""),P=new S(1),P.e=g.length-s,P.d=ur(be(P),10,i),P.e=P.d.length),h=ur(g,10,i),o=l=h.length;h[--l]==0;)h.pop();if(!h[0])g=C?"0p+0":"0";else{if(s<0?o--:(e=new S(e),e.d=h,e.e=o,e=j(e,P,r,n,0,i),h=e.d,o=e.e,u=Gi),s=h[r],a=i/2,u=u||h[r+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>i-1;)h[r]=0,r||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(s=0,g="";s1)if(t==16||t==8){for(s=t==16?4:3,--l;l%s;l++)g+="0";for(h=ur(g,i,t),l=h.length;!h[l-1];--l);for(s=1,g="1.";sl)for(o-=l;o--;)g+="0";else ot)return e.length=t,!0}function Ol(e){return new this(e).abs()}function kl(e){return new this(e).acos()}function Fl(e){return new this(e).acosh()}function Ml(e,t){return new this(e).plus(t)}function Il(e){return new this(e).asin()}function _l(e){return new this(e).asinh()}function Ll(e){return new this(e).atan()}function Nl(e){return new this(e).atanh()}function Dl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=de(this,o,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?de(this,n,i):new this(0),r.s=e.s):!e.d||t.isZero()?(r=de(this,o,1).times(.5),r.s=e.s):t.s<0?(this.precision=o,this.rounding=1,r=this.atan(j(e,t,o,1)),t=de(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(j(e,t,o,1)),r}function $l(e){return new this(e).cbrt()}function Bl(e){return k(e=new this(e),e.e+1,2)}function jl(e,t,r){return new this(e).clamp(t,r)}function ql(e){if(!e||typeof e!="object")throw Error(fr+"Object expected");var t,r,n,i=e.defaults===!0,o=["precision",1,qe,"rounding",0,8,"toExpNeg",-nt,0,"toExpPos",0,nt,"maxE",0,nt,"minE",-nt,0,"modulo",0,9];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(je+r+": "+n);if(r="crypto",i&&(this[r]=gn[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(Ki);else this[r]=!1;else throw Error(je+r+": "+n);return this}function Ul(e){return new this(e).cos()}function Vl(e){return new this(e).cosh()}function ro(e){var t,r,n;function i(o){var s,a,l,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,Ji(o)){u.s=o.s,L?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e=10;a/=10)s++;L?s>i.maxE?(u.e=NaN,u.d=null):s=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(t,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(Ki);else for(;o=10;i/=10)n++;npe(We(e)),punctuation:We,directive:ke,function:ke,variable:e=>pe(We(e)),string:e=>pe(Rt(e)),boolean:St,number:ke,comment:Ot};var hu=e=>e,yr={},yu=0,D={manual:yr.Prism&&yr.Prism.manual,disableWorkerMessageHandler:yr.Prism&&yr.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof me){let t=e;return new me(t.type,D.util.encode(t.content),t.alias)}else return Array.isArray(e)?e.map(D.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(Se instanceof me)continue;if(Y&&Q!=t.length-1){N.lastIndex=ie;var h=N.exec(e);if(!h)break;var g=h.index+(O?h[1].length:0),P=h.index+h[0].length,a=Q,l=ie;for(let $=t.length;a<$&&(l=l&&(++Q,ie=l);if(t[Q]instanceof me)continue;u=a-Q,Se=e.slice(ie,l),h.index-=ie}else{N.lastIndex=0;var h=N.exec(Se),u=1}if(!h){if(o)break;continue}O&&(q=h[1]?h[1].length:0);var g=h.index+q,h=h[0].slice(q),P=g+h.length,S=Se.slice(0,g),C=Se.slice(P);let X=[Q,u];S&&(++Q,ie+=S.length,X.push(S));let Ye=new me(A,M?D.tokenize(h,M):h,vt,h,Y);if(X.push(Ye),C&&X.push(C),Array.prototype.splice.apply(t,X),u!=1&&D.matchGrammar(e,t,r,Q,ie,!0,A),o)break}}}},tokenize:function(e,t){let r=[e],n=t.rest;if(n){for(let i in n)t[i]=n[i];delete t.rest}return D.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){let r=D.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){let r=D.hooks.all[e];if(!(!r||!r.length))for(var n=0,i;i=r[n++];)i(t)}},Token:me};D.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};D.languages.javascript=D.languages.extend("clike",{"class-name":[D.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});D.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;D.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:D.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:D.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:D.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:D.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});D.languages.markup&&D.languages.markup.tag.addInlined("script","javascript");D.languages.js=D.languages.javascript;D.languages.typescript=D.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});D.languages.ts=D.languages.typescript;function me(e,t,r,n,i){this.type=e,this.content=t,this.alias=r,this.length=(n||"").length|0,this.greedy=!!i}me.stringify=function(e,t){return typeof e=="string"?e:Array.isArray(e)?e.map(function(r){return me.stringify(r,t)}).join(""):wu(e.type)(e.content)};function wu(e){return no[e]||hu}function io(e){return bu(e,D.languages.javascript)}function bu(e,t){return D.tokenize(e,t).map(n=>me.stringify(n)).join("")}m();c();p();d();f();var oo=he(Mi());function so(e){return(0,oo.default)(e)}var wr=class e{static read(t){let r;try{r=ir.readFileSync(t,"utf-8")}catch{return null}return e.fromContent(r)}static fromContent(t){let r=t.split(/\r?\n/);return new e(1,r)}constructor(t,r){this.firstLineNumber=t,this.lines=r}get lastLineNumber(){return this.firstLineNumber+this.lines.length-1}mapLineAt(t,r){if(tthis.lines.length+this.firstLineNumber)return this;let n=t-this.firstLineNumber,i=[...this.lines];return i[n]=r(i[n]),new e(this.firstLineNumber,i)}mapLines(t){return new e(this.firstLineNumber,this.lines.map((r,n)=>t(r,this.firstLineNumber+n)))}lineAt(t){return this.lines[t-this.firstLineNumber]}prependSymbolAt(t,r){return this.mapLines((n,i)=>i===t?`${r} ${n}`:` ${n}`)}slice(t,r){let n=this.lines.slice(t-1,r).join(` -`);return new e(t,so(n).split(` -`))}highlight(){let t=io(this.toString());return new e(this.firstLineNumber,t.split(` -`))}toString(){return this.lines.join(` -`)}};var Eu={red:Ge,gray:Ot,dim:Ct,bold:pe,underline:At,highlightSource:e=>e.highlight()},xu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function vu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Pu({callsite:e,message:t,originalMethod:r,isPanic:n,callArguments:i},o){let s=vu({message:t,originalMethod:r,isPanic:n,callArguments:i});if(!e||typeof window<"u"||y.env.NODE_ENV==="production")return s;let a=e.getLocation();if(!a||!a.lineNumber||!a.columnNumber)return s;let l=Math.max(1,a.lineNumber-3),u=wr.read(a.fileName)?.slice(l,a.lineNumber),g=u?.lineAt(a.lineNumber);if(u&&g){let h=Cu(g),P=Tu(g);if(!P)return s;s.functionName=`${P.code})`,s.location=a,n||(u=u.mapLineAt(a.lineNumber,C=>C.slice(0,P.openingBraceIndex))),u=o.highlightSource(u);let S=String(u.lastLineNumber).length;if(s.contextLines=u.mapLines((C,A)=>o.gray(String(A).padStart(S))+" "+C).mapLines(C=>o.dim(C)).prependSymbolAt(a.lineNumber,o.bold(o.red("\u2192"))),i){let C=h+S+1;C+=2,s.callArguments=(0,ao.default)(i,C).slice(C)}}return s}function Tu(e){let t=Object.keys(De.ModelAction).join("|"),n=new RegExp(String.raw`\.(${t})\(`).exec(e);if(n){let i=n.index+n[0].length,o=e.lastIndexOf(" ",n.index)+1;return{code:e.slice(o,i),openingBraceIndex:i}}return null}function Cu(e){let t=0;for(let r=0;r"Unknown error")}function fo(e){return e.errors.flatMap(t=>t.kind==="Union"?fo(t):[t])}function Su(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Ou(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Ou(e,t){return[...new Set(e.concat(t))]}function ku(e){return fn(e,(t,r)=>{let n=uo(t),i=uo(r);return n!==i?n-i:co(t)-co(r)})}function uo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function co(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}m();c();p();d();f();var ce=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};m();c();p();d();f();m();c();p();d();f();var ct=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};m();c();p();d();f();m();c();p();d();f();var Er=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};m();c();p();d();f();var xr=e=>e,vr={bold:xr,red:xr,green:xr,dim:xr,enabled:!1},mo={bold:pe,red:Ge,green:Rt,dim:Ct,enabled:!0},pt={write(e){e.writeLine(",")}};m();c();p();d();f();var xe=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};m();c();p();d();f();var Ue=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var dt=class extends Ue{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Er(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new xe("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(pt,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var ft=class e extends Ue{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let l;if(s.value instanceof e?l=s.value.getField(a):s.value instanceof dt&&(l=s.value.getField(Number(a))),!l)return;s=l}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new xe("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(pt,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};m();c();p();d();f();var z=class extends Ue{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new xe(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};m();c();p();d();f();var Dt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(pt,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function br(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Mu(e,t);break;case"IncludeOnScalar":Iu(e,t);break;case"EmptySelection":_u(e,t,r);break;case"UnknownSelectionField":$u(e,t);break;case"InvalidSelectionValue":Bu(e,t);break;case"UnknownArgument":ju(e,t);break;case"UnknownInputField":qu(e,t);break;case"RequiredArgumentMissing":Uu(e,t);break;case"InvalidArgumentType":Vu(e,t);break;case"InvalidArgumentValue":Qu(e,t);break;case"ValueTooLarge":Ju(e,t);break;case"SomeFieldsMissing":Gu(e,t);break;case"TooManyFieldsGiven":Wu(e,t);break;case"Union":po(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Mu(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Iu(e,t){let[r,n]=$t(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new ce(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${Bt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function _u(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){Lu(e,t,i);return}if(n.hasField("select")){Nu(e,t);return}}if(r?.[st(e.outputType.name)]){Du(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function Lu(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new ce(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Nu(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),wo(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${Bt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Du(e,t){let r=new Dt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new ce("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=$t(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let l=a?.value.asObject()??new ft;l.addSuggestion(n),a.value=l}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function $u(e,t){let r=bo(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":wo(n,e.outputType);break;case"include":Ku(n,e.outputType);break;case"omit":Hu(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(Bt(n)),i.join(" ")})}function Bu(e,t){let r=bo(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function ju(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),zu(n,e.arguments)),t.addErrorMessage(i=>ho(i,r,e.arguments.map(o=>o.name)))}function qu(e,t){let[r,n]=$t(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&Eo(o,e.inputType)}t.addErrorMessage(o=>ho(o,n,e.inputType.fields.map(s=>s.name)))}function ho(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Zu(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(Bt(e)),n.join(" ")}function Uu(e,t){let r;t.addErrorMessage(l=>r?.value instanceof z&&r.value.text==="null"?`Argument \`${l.green(o)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=$t(e.argumentPath),s=new Dt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)s.addField(l.name,l.typeNames.join(" | "));a.addSuggestion(new ce(o,s).makeRequired())}else{let l=e.inputTypes.map(yo).join(" | ");a.addSuggestion(new ce(o,l).makeRequired())}}function yo(e){return e.kind==="list"?`${yo(e.elementType)}[]`:e.name}function Vu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Pr("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function Qu(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Pr("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Ju(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof z&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Gu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&Eo(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Pr("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(Bt(i)),o.join(" ")})}function Wu(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Pr("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function wo(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,"true"))}function Ku(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new ce(r.name,"true"))}function Hu(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new ce(r.name,"true"))}function zu(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function bo(e,t){let[r,n]=$t(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),l=o?.getField(n);return o&&l?{parentKind:"select",parent:o,field:l,fieldName:n}:(l=s?.getField(n),s&&l?{parentKind:"include",field:l,parent:s,fieldName:n}:(l=a?.getField(n),a&&l?{parentKind:"omit",field:l,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function Eo(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new ce(r.name,r.typeNames.join(" | ")))}function $t(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function Bt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Pr(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var Yu=3;function Zu(e,t){let r=1/0,n;for(let i of t){let o=(0,go.default)(e,i);o>Yu||o`}};function mt(e){return e instanceof jt}m();c();p();d();f();var Tr=Symbol(),xn=new WeakMap,_e=class{constructor(t){t===Tr?xn.set(this,`Prisma.${this._getName()}`):xn.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return xn.get(this)}},qt=class extends _e{_getNamespace(){return"NullTypes"}},Ut=class extends qt{};vn(Ut,"DbNull");var Vt=class extends qt{};vn(Vt,"JsonNull");var Qt=class extends qt{};vn(Qt,"AnyNull");var Cr={classes:{DbNull:Ut,JsonNull:Vt,AnyNull:Qt},instances:{DbNull:new Ut(Tr),JsonNull:new Vt(Tr),AnyNull:new Qt(Tr)}};function vn(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}m();c();p();d();f();var vo=": ",Ar=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+vo.length}write(t){let r=new xe(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(vo).write(this.value)}};var Pn=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function gt(e){return new Pn(Po(e))}function Po(e){let t=new ft;for(let[r,n]of Object.entries(e)){let i=new Ar(r,To(n));t.addField(i)}return t}function To(e){if(typeof e=="string")return new z(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new z(String(e));if(typeof e=="bigint")return new z(`${e}n`);if(e===null)return new z("null");if(e===void 0)return new z("undefined");if(lt(e))return new z(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return w.Buffer.isBuffer(e)?new z(`Buffer.alloc(${e.byteLength})`):new z(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=hr(e)?e.toISOString():"Invalid Date";return new z(`new Date("${t}")`)}return e instanceof _e?new z(`Prisma.${e._getName()}`):mt(e)?new z(`prisma.${xo(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Xu(e):typeof e=="object"?Po(e):new z(Object.prototype.toString.call(e))}function Xu(e){let t=new dt;for(let r of e)t.addItem(To(r));return t}function Rr(e,t){let r=t==="pretty"?mo:vr,n=e.renderAllMessages(r),i=new ct(0,{colors:r}).write(e).toString();return{message:n,args:i}}function Sr({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=gt(e);for(let h of t)br(h,a,s);let{message:l,args:u}=Rr(a,r),g=ut({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new H(g,{clientVersion:o})}m();c();p();d();f();m();c();p();d();f();var ve=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};m();c();p();d();f();function Jt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}m();c();p();d();f();function Pe(e){return e.replace(/^./,t=>t.toLowerCase())}m();c();p();d();f();function Ao(e,t,r){let n=Pe(r);return!t.result||!(t.result.$allModels||t.result[n])?e:ec({...e,...Co(t.name,e,t.result.$allModels),...Co(t.name,e,t.result[n])})}function ec(e){let t=new ve,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return rt(e,n=>({...n,needs:r(n.name,new Set)}))}function Co(e,t,r){return r?rt(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:tc(t,o,i)})):{}}function tc(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Ro(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function So(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Or=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new ve;this.modelExtensionsCache=new ve;this.queryCallbacksCache=new ve;this.clientExtensions=Jt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=Jt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>Ao(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Pe(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ht=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Or(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Or(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};m();c();p();d();f();m();c();p();d();f();var Oo=Symbol(),Gt=class{constructor(t){if(t!==Oo)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?kr:t}},kr=new Gt(Oo);function Te(e){return e instanceof Gt}var rc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},ko="explicitly `undefined` values are not allowed";function Fr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=ht.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g}){let h=new Tn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:g});return{modelName:e,action:rc[t],query:Wt(r,h)}}function Wt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:Mo(r,n),selection:nc(e,t,i,n)}}function nc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),ac(e,n)):ic(n,t,r)}function ic(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&oc(n,t,e),e.isPreviewFeatureOn("omitApi")&&sc(n,r,e),n}function oc(e,t,r){for(let[n,i]of Object.entries(t)){if(Te(i))continue;let o=r.nestSelection(n);if(Cn(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Wt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Wt(i,o)}}function sc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=So(i,n);for(let[s,a]of Object.entries(o)){if(Te(a))continue;Cn(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function ac(e,t){let r={},n=t.getComputedFields(),i=Ro(e,n);for(let[o,s]of Object.entries(i)){if(Te(s))continue;let a=t.nestSelection(o);Cn(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||Te(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Wt({},a):r[o]=!0;continue}r[o]=Wt(s,a)}}return r}function Fo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(at(e)){if(hr(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(mt(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return lc(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:w.Buffer.from(e).toString("base64")};if(uc(e))return e.values;if(lt(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof _e){if(e!==Cr.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(cc(e))return e.toJSON();if(typeof e=="object")return Mo(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function Mo(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);Te(i)||(i!==void 0?r[n]=Fo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:ko}))}return r}function lc(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[st(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Fe(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};m();c();p();d();f();var yt=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};m();c();p();d();f();function Io(e){return{models:An(e.models),enums:An(e.enums),types:An(e.types)}}function An(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function _o(e,t){let r=Jt(()=>pc(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function pc(e){return{datamodel:{models:Rn(e.models),enums:Rn(e.enums),types:Rn(e.types)}}}function Rn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}m();c();p();d();f();var Sn=new WeakMap,Mr="$$PrismaTypedSql",On=class{constructor(t,r){Sn.set(this,{sql:t,values:r}),Object.defineProperty(this,Mr,{value:Mr})}get sql(){return Sn.get(this).sql}get values(){return Sn.get(this).values}};function Lo(e){return(...t)=>new On(e,t)}function No(e){return e!=null&&e[Mr]===Mr}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();function Kt(e){return{ok:!1,error:e,map(){return Kt(e)},flatMap(){return Kt(e)}}}var kn=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},Fn=e=>{let t=new kn,r=Ce(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:Ce(t,e.queryRaw.bind(e)),executeRaw:Ce(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>dc(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=mc(t,e.getConnectionInfo.bind(e))),n},dc=(e,t)=>{let r=Ce(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>fc(e,o))}},fc=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:Ce(e,t.queryRaw.bind(t)),executeRaw:Ce(e,t.executeRaw.bind(t)),commit:Ce(e,t.commit.bind(t)),rollback:Ce(e,t.rollback.bind(t))});function Ce(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Kt({kind:"GenericJs",id:i})}}}function mc(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Kt({kind:"GenericJs",id:i})}}}var na=he(Do());var YO=he($o());Ii();tn();an();m();c();p();d();f();var ae=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}m();c();p();d();f();m();c();p();d();f();var Ir={enumerable:!0,configurable:!0,writable:!0};function _r(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>Ir,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var qo=Symbol.for("nodejs.util.inspect.custom");function Ae(e,t){let r=hc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Uo(Reflect.ownKeys(o),r),a=Uo(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...Ir,...l?.getPropertyDescriptor(s)}:Ir:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[qo]=function(){let o={...this};return delete o[qo],o},i}function hc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Uo(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}m();c();p();d();f();function wt(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}m();c();p();d();f();function Lr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}m();c();p();d();f();function Vo(e){if(e===void 0)return"";let t=gt(e);return new ct(0,{colors:vr}).write(t).toString()}m();c();p();d();f();var yc="P2037";function Nr({error:e,user_facing_error:t},r,n){return t.error_code?new W(wc(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new K(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function wc(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===yc&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var zt="";function Qo(e){var t=e.split(` -`);return t.reduce(function(r,n){var i=xc(n)||Pc(n)||Ac(n)||kc(n)||Sc(n);return i&&r.push(i),r},[])}var bc=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ec=/\((\S*)(?::(\d+))(?::(\d+))\)/;function xc(e){var t=bc.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=Ec.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||zt,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var vc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Pc(e){var t=vc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Tc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Cc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ac(e){var t=Tc.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=Cc.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||zt,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var Rc=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Sc(e){var t=Rc.exec(e);return t?{file:t[3],methodName:t[1]||zt,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Oc=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function kc(e){var t=Oc.exec(e);return t?{file:t[2],methodName:t[1]||zt,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var _n=class{getLocation(){return null}},Ln=class{constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=Qo(t).find(i=>{if(!i.file)return!1;let o=ln(i.file);return o!==""&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.endsWith("/runtime/edge.js")&&!o.endsWith("/runtime/edge-esm.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function Ve(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new _n:new Ln}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var Jo={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function bt(e={}){let t=Mc(e);return Object.entries(t).reduce((n,[i,o])=>(Jo[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Mc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function Dr(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Go(e,t){let r=Dr(e);return t({action:"aggregate",unpacker:r,argsMapper:bt})(e)}m();c();p();d();f();function Ic(e={}){let{select:t,...r}=e;return typeof t=="object"?bt({...r,_count:t}):bt({...r,_count:{_all:!0}})}function _c(e={}){return typeof e.select=="object"?t=>Dr(e)(t)._count:t=>Dr(e)(t)._count._all}function Wo(e,t){return t({action:"count",unpacker:_c(e),argsMapper:Ic})(e)}m();c();p();d();f();function Lc(e={}){let t=bt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Nc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function Ko(e,t){return t({action:"groupBy",unpacker:Nc(e),argsMapper:Lc})(e)}function Ho(e,t,r){if(t==="aggregate")return n=>Go(n,r);if(t==="count")return n=>Wo(n,r);if(t==="groupBy")return n=>Ko(n,r)}m();c();p();d();f();function zo(e,t){let r=t.fields.filter(i=>!i.relationName),n=dn(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new jt(e,o,s.type,s.isList,s.kind==="enum")},..._r(Object.keys(n))})}m();c();p();d();f();m();c();p();d();f();var Yo=e=>Array.isArray(e)?e:e.split("."),Nn=(e,t)=>Yo(t).reduce((r,n)=>r&&r[n],e),Zo=(e,t,r)=>Yo(t).reduceRight((n,i,o,s)=>Object.assign({},Nn(e,s.slice(0,o)),{[i]:n}),r);function Dc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function $c(e,t,r){return t===void 0?e??{}:Zo(t,r,e||!0)}function Dn(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=Ve(e._errorFormat),g=Dc(n,i),h=$c(l,o,g),P=r({dataPath:g,callsite:u})(h),S=Bc(e,t);return new Proxy(P,{get(C,A){if(!S.includes(A))return C[A];let _=[a[A].type,r,A],N=[g,h];return Dn(e,..._,...N)},..._r([...S,...Object.getOwnPropertyNames(P)])})}}function Bc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}m();c();p();d();f();function Xo(e,t,r,n){return e===De.ModelAction.findFirstOrThrow||e===De.ModelAction.findUniqueOrThrow?jc(t,r,n):n}function jc(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=ut({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new H(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof W&&o.code==="P2025"?new Me(`No ${e} found`,t):o})}}var qc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Uc=["aggregate","count","groupBy"];function $n(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[Vc(e,t),Jc(e,t),Ht(r),ne("name",()=>t),ne("$name",()=>t),ne("$parent",()=>e._appliedParent)];return Ae({},n)}function Vc(e,t){let r=Pe(t),n=Object.keys(De.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=l=>e._request(l);s=Xo(o,t,e._clientVersion,s);let a=l=>u=>{let g=Ve(e._errorFormat);return e._createPrismaPromise(h=>{let P={args:u,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:h,callsite:g};return s({...P,...l})})};return qc.includes(o)?Dn(e,t,a):Qc(i)?Ho(e,i,a):a({})}}}function Qc(e){return Uc.includes(e)}function Jc(e,t){return He(ne("fields",()=>{let r=e._runtimeDataModel.models[t];return zo(t,r)}))}m();c();p();d();f();function es(e){return e.replace(/^./,t=>t.toUpperCase())}var Bn=Symbol();function Yt(e){let t=[Gc(e),ne(Bn,()=>e),ne("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(Ht(r)),Ae(e,t)}function Gc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Pe),n=[...new Set(t.concat(r))];return He({getKeys(){return n},getPropertyValue(i){let o=es(i);if(e._runtimeDataModel.models[o]!==void 0)return $n(e,o);if(e._runtimeDataModel.models[i]!==void 0)return $n(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function ts(e){return e[Bn]?e[Bn]:e}function rs(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Yt(t)}m();c();p();d();f();m();c();p();d();f();function ns({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(g=>n[g]);u.length>0&&a.push(wt(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(g=>!r[g]);u.length>0&&a.push(wt(u))}Wc(e,l.needs)&&s.push(Kc(l,Ae(e,s)))}return s.length>0||a.length>0?Ae(e,[...s,...a]):e}function Wc(e,t){return t.every(r=>pn(e,r))}function Kc(e,t){return He(ne(e.name,()=>e.compute(t)))}m();c();p();d();f();function $r({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sg.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=$r({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function os({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:$r({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let g=Pe(l);return ns({result:a,modelName:g,select:u.select,omit:u.select?void 0:{...o?.[g],...u.omit},extensions:n})}})}m();c();p();d();f();m();c();p();d();f();function ss(e){if(e instanceof ae)return Hc(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:ss(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=ds(o,l),a.args=s,ls(e,a,r,n+1)}})})}function us(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return ls(e,t,s)}function cs(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ps(r,n,0,e):e(r)}}function ps(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=ds(i,l),ps(a,t,r+1,n)}})}var as=e=>e;function ds(e=as,t=as){return r=>e(t(r))}m();c();p();d();f();var fs=le("prisma:client"),ms={Vercel:"vercel","Netlify CI":"netlify"};function gs({postinstall:e,ciName:t,clientVersion:r}){if(fs("checkPlatformCaching:postinstall",e),fs("checkPlatformCaching:ciName",t),e===!0&&t&&t in ms){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${ms[t]}-build`;throw console.error(n),new V(n,r)}}m();c();p();d();f();function hs(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}m();c();p();d();f();m();c();p();d();f();m();c();p();d();f();var zc="Cloudflare-Workers",Yc="node";function ys(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===zc?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Yc?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var Zc={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function ws(){let e=ys();return{id:e,prettyName:Zc[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}m();c();p();d();f();m();c();p();d();f();var jn=he(cn());m();c();p();d();f();function bs(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}m();c();p();d();f();function Es(e){return e.split(` -`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(` -`)}m();c();p();d();f();var xs=he(ji());function vs({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,xs.default)({user:t,repo:r,template:n,title:e,body:i})}function Ps({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=Ci(6e3-(s?.length??0)),l=Es((0,jn.default)(a)),u=n?`# Description -\`\`\` -${n} -\`\`\``:"",g=(0,jn.default)(`Hi Prisma Team! My Prisma Client just crashed. This is the report: -## Versions - -| Name | Version | -|-----------------|--------------------| -| Node | ${y.version?.padEnd(19)}| -| OS | ${t?.padEnd(19)}| -| Prisma Client | ${e?.padEnd(19)}| -| Query Engine | ${i?.padEnd(19)}| -| Database | ${o?.padEnd(19)}| - -${u} - -## Logs -\`\`\` -${l} -\`\`\` - -## Client Snippet -\`\`\`ts -// PLEASE FILL YOUR CODE SNIPPET HERE -\`\`\` - -## Schema -\`\`\`prisma -// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE -\`\`\` - -## Prisma Engine Query -\`\`\` -${s?bs(s):""} -\`\`\` -`),h=vs({title:r,body:g});return`${r} - -This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic. - -${At(h)} - -If you want the Prisma team to look into it, please open the link above \u{1F64F} -To increase the chance of success, please post your schema and a snippet of -how you used Prisma Client in the issue. -`}m();c();p();d();f();function Br({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new V(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new V("error: Missing URL environment variable, value, or override.",n);return i}m();c();p();d();f();m();c();p();d();f();function Ts(e){if(e?.kind==="itx")return e.options.id}m();c();p();d();f();var qn=class{constructor(t,r,n){this.engineObject=__PrismaProxy.create({datamodel:t.datamodel,env:y.env,ignoreEnvVarErrors:!0,datasourceOverrides:t.datasourceOverrides??{},logLevel:t.logLevel,logQueries:t.logQueries??!1,logCallback:r})}async connect(t){return __PrismaProxy.connect(this.engineObject,t)}async disconnect(t){return __PrismaProxy.disconnect(this.engineObject,t)}query(t,r,n){return __PrismaProxy.execute(this.engineObject,t,r,n)}sdlSchema(){return Promise.resolve("{}")}dmmf(t){return Promise.resolve("{}")}async startTransaction(t,r){return __PrismaProxy.startTransaction(this.engineObject,t,r)}async commitTransaction(t,r){return __PrismaProxy.commitTransaction(this.engineObject,t,r)}async rollbackTransaction(t,r){return __PrismaProxy.rollbackTransaction(this.engineObject,t,r)}metrics(t){return Promise.resolve("{}")}async applyPendingMigrations(){return __PrismaProxy.applyPendingMigrations(this.engineObject)}},Cs={async loadLibrary(e){if(!__PrismaProxy)throw new V("__PrismaProxy not detected make sure React Native bindings are installed",e.clientVersion);return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:qn}}};var Xc="P2036",Re=le("prisma:client:libraryEngine");function ep(e){return e.item_type==="query"&&"query"in e}function tp(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var bR=[...sn,"native"],Xt=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=Cs,this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){await this.start(),await this.engine?.applyPendingMigrations()}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(rp(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new W(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Re("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(t){if(!t)throw new K("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new K("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new b(this),{adapter:r}=this.config;r&&Re("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:y.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",ep(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):tp(r)?this.loggerRustPanic=new ue(Un(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Re(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Re("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Re("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new V(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Re("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Re("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Re("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Re(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new K(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof V)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new ue(Un(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new K(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Re("requestBatch");let i=Lr(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),Ts(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new K(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u,elapsed:0});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new ue(Un(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:Nr(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Xc&&this.config.adapter){let r=t.meta?.id;ar(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return ar(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function rp(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function Un(e,t){return Ps({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function As({copyEngine:e=!0},t){let r;try{r=Br({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...y.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Lt("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Mt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new H(u.join(` -`),{clientVersion:t.clientVersion})}return new Xt(t)}m();c();p();d();f();function jr({generator:e}){return e?.previewFeatures??[]}m();c();p();d();f();var Rs=e=>({command:e});m();c();p();d();f();m();c();p();d();f();var Ss=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);m();c();p();d();f();function Et(e){try{return Os(e,"fast")}catch{return Os(e,"slow")}}function Os(e,t){return JSON.stringify(e.map(r=>Fs(r,t)))}function Fs(e,t){return Array.isArray(e)?e.map(r=>Fs(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:at(e)?{prisma__type:"date",prisma__value:e.toJSON()}:Ee.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:w.Buffer.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:np(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:w.Buffer.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?Ms(e):e}function np(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function Ms(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(ks);let t={};for(let r of Object.keys(e))t[r]=ks(e[r]);return t}function ks(e){return typeof e=="bigint"?e.toString():Ms(e)}m();c();p();d();f();var ip=["$connect","$disconnect","$on","$transaction","$use","$extends"],Is=ip;var op=/^(\s*alter\s)/i,_s=le("prisma:client");function Vn(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&op.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Qn=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(No(r))n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Et(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Et(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Ss(r),i={values:Et(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?_s(`prisma.${e}(${n}, ${i.values})`):_s(`prisma.${e}(${n})`),{query:n,parameters:i}},Ls={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ae(t,r)}},Ns={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};m();c();p();d();f();function Jn(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Ds(r(o)):Ds(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Ds(e){return typeof e.then=="function"?e:Promise.resolve(e)}m();c();p();d();f();var $s={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Gn=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??$s}};function Bs(e){return e.includes("tracing")?new Gn:$s}m();c();p();d();f();function js(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}m();c();p();d();f();function qs(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}m();c();p();d();f();var qr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};m();c();p();d();f();var Qs=he(cn());m();c();p();d();f();function Ur(e){return typeof e.batchRequestIdx=="number"}m();c();p();d();f();function Us(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(Wn(e.query.arguments)),t.push(Wn(e.query.selection)),t.join("")}function Wn(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${Wn(n)})`:r}).join(" ")})`}m();c();p();d();f();var sp={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function Kn(e){return sp[e]}m();c();p();d();f();var Vr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,y.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;ize("bigint",r));case"bytes-array":return t.map(r=>ze("bytes",r));case"decimal-array":return t.map(r=>ze("decimal",r));case"datetime-array":return t.map(r=>ze("datetime",r));case"date-array":return t.map(r=>ze("date",r));case"time-array":return t.map(r=>ze("time",r));default:return t}}function Vs(e){let t=[],r=ap(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(h=>h.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(h=>Kn(h.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:up(o),containsWrite:u,customDataProxyFetch:i})).map((h,P)=>{if(h instanceof Error)return h;try{return this.mapQueryEngineResult(n[P],h)}catch(S){return S}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Js(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Kn(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Us(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return y.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(lp(t),cp(t,i)||t instanceof Me)throw t;if(t instanceof W&&pp(t)){let u=Gs(t.meta);Sr({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=ut({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new W(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ue(l,this.client._clientVersion);if(t instanceof K)throw new K(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof V)throw new V(l,this.client._clientVersion);if(t instanceof ue)throw new ue(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Qs.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Nn(o,s),l=i==="queryRaw"?Vs(a):ot(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function up(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Js(e)};Fe(e,"Unknown transaction kind")}}function Js(e){return{id:e.id,payload:e.payload}}function cp(e,t){return Ur(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function pp(e){return e.code==="P2009"||e.code==="P2012"}function Gs(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Gs)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}m();c();p();d();f();var Ws="5.22.0";var Ks=Ws;m();c();p();d();f();var Xs=he(En());m();c();p();d();f();var B=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};re(B,"PrismaClientConstructorValidationError");var Hs=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],zs=["pretty","colorless","minimal"],Ys=["info","query","warn","error"],fp={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=xt(r,t)||` Available datasources: ${t.join(", ")}`;throw new B(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new B(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new B(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new B('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!jr(t).includes("driverAdapters"))throw new B('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(Mt()==="binary")throw new B('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new B(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!zs.includes(e)){let t=xt(e,zs);throw new B(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new B(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Ys.includes(r)){let n=xt(r,Ys);throw new B(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=xt(i,o);throw new B(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new B(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new B(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new B(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new B('"omit" option is expected to be an object.');if(e===null)throw new B('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=gp(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let l=o.fields.find(u=>u.name===s);if(!l){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(l.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new B(hp(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new B(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=xt(r,t);throw new B(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ea(e,t){for(let[r,n]of Object.entries(e)){if(!Hs.includes(r)){let i=xt(r,Hs);throw new B(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}fp[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new B('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function xt(e,t){if(t.length===0||typeof e!="string")return"";let r=mp(e,t);return r?` Did you mean "${r}"?`:""}function mp(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Xs.default)(e,i)}));r.sort((i,o)=>i.distancest(n)===t);if(r)return e[r]}function hp(e,t){let r=gt(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Rr(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}m();c();p();d();f();function ta(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=u=>{o||(o=!0,r(u))};for(let u=0;u{n[u]=g,a()},g=>{if(!Ur(g)){l(g);return}g.batchRequestIdx===u?l(g):(i||(i=g),a())})})}var Qe=le("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var yp={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},wp=Symbol.for("prisma.client.transaction.id"),bp={id:0,nextId(){return++this.id}};function ia(e){class t{constructor(n){this._originalClient=this;this._middlewares=new qr;this._createPrismaPromise=Jn();this.$extends=rs;e=n?.__internal?.configOverride?.(e)??e,gs(e),n&&ea(n,e);let i=new sr().on("error",()=>{});this._extensions=ht.empty(),this._previewFeatures=jr(e),this._clientVersion=e.clientVersion??Ks,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=Bs(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&we.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&we.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=Fn(n.adapter);let l=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==l)throw new V(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${l}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new V("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let l=n??{},u=l.__internal??{},g=u.debug===!0;g&&le.enable("prisma:client");let h=we.resolve(e.dirname,e.relativePath);ir.existsSync(h)||(h=e.dirname),Qe("dirname",e.dirname),Qe("relativePath",e.relativePath),Qe("cwd",h);let P=u.engine||{};if(l.errorFormat?this._errorFormat=l.errorFormat:y.env.NODE_ENV==="production"?this._errorFormat="minimal":y.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:h,dirname:e.dirname,enableDebugLogs:g,allowTriggerPanic:P.allowTriggerPanic,datamodelPath:we.join(e.dirname,e.filename??"schema.prisma"),prismaPath:P.binaryPath??void 0,engineEndpoint:P.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:l.log&&qs(l.log),logQueries:l.log&&!!(typeof l.log=="string"?l.log==="query":l.log.find(S=>typeof S=="string"?S==="query":S.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:hs(l,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:l.transactionOptions?.maxWait??2e3,timeout:l.transactionOptions?.timeout??5e3,isolationLevel:l.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:Br,getBatchRequestPayload:Lr,prismaGraphQLToJSError:Nr,PrismaClientUnknownRequestError:K,PrismaClientInitializationError:V,PrismaClientKnownRequestError:W,debug:le("prisma:client:accelerateEngine"),engineVersion:na.version,clientVersion:e.clientVersion}},Qe("clientVersion",e.clientVersion),this._engine=As(e,this._engineConfig),this._requestHandler=new Qr(this,i),l.log)for(let S of l.log){let C=typeof S=="string"?S:S.emit==="stdout"?S.level:null;C&&this.$on(C,A=>{_t.log(`${_t.tags[C]??""}`,A.message||A.query)})}this._metrics=new yt(this._engine)}catch(l){throw l.clientVersion=this._clientVersion,l}return this._appliedParent=Yt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Ai()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Qn({clientMethod:i,activeProvider:a}),callsite:Ve(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=ra(n,i);return Vn(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new H("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(Vn(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new H(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:Rs,callsite:Ve(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Qn({clientMethod:i,activeProvider:a}),callsite:Ve(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...ra(n,i));throw new H("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new H("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=bp.nextId(),s=js(n.length),a=n.map((l,u)=>{if(l?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let g=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,h={kind:"batch",id:o,index:u,isolationLevel:g,lock:s};return l.requestTransaction?.(h)??l});return ta(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),l;try{let u={kind:"itx",...a};l=await n(this._createItxClient(u)),await this._engine.transaction("commit",o,a)}catch(u){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),u}return l}_createItxClient(n){return Yt(Ae(ts(this),[ne("_appliedParent",()=>this._appliedParent._createItxClient(n)),ne("_createPrismaPromise",()=>Jn(n)),ne(wp,()=>n.id),wt(Is)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??yp,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,l=async u=>{let g=this._middlewares.get(++a);if(g)return this._tracingHelper.runInChildSpan(s.middleware,F=>g(u,_=>(F?.end(),l(_))));let{runInTransaction:h,args:P,...S}=u,C={...n,...S};P&&(C.args=i.middlewareArgsToRequestArgs(P)),n.transaction!==void 0&&h===!1&&delete C.transaction;let A=await us(this,C);return C.model?os({result:A,modelName:C.model,args:C.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):A};return this._tracingHelper.runInChildSpan(s.operation,()=>l(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:l,argsMapper:u,transaction:g,unpacker:h,otelParentCtx:P,customDataProxyFetch:S}){try{n=u?u(n):n;let C={name:"serialize"},A=this._tracingHelper.runInChildSpan(C,()=>Fr({modelName:l,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return le.enabled("prisma:client")&&(Qe("Prisma Client call:"),Qe(`prisma.${i}(${Vo(n)})`),Qe("Generated request:"),Qe(JSON.stringify(A,null,2)+` -`)),g?.kind==="batch"&&await g.lock,this._requestHandler.request({protocolQuery:A,modelName:l,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:g,unpacker:h,otelParentCtx:P,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:S})}catch(C){throw C.clientVersion=this._clientVersion,C}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new H("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function ra(e,t){return Ep(e)?[new ae(e,t),Ls]:[e,Ns]}function Ep(e){return Array.isArray(e)&&Array.isArray(e.raw)}m();c();p();d();f();var xp=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function oa(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!xp.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}m();c();p();d();f();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=react-native.js.map diff --git a/mcp-server/node_modules/.prisma/client/runtime/wasm.js b/mcp-server/node_modules/.prisma/client/runtime/wasm.js deleted file mode 100644 index c3ed3bd..0000000 --- a/mcp-server/node_modules/.prisma/client/runtime/wasm.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict";var Uo=Object.create;var kt=Object.defineProperty;var qo=Object.getOwnPropertyDescriptor;var Bo=Object.getOwnPropertyNames;var $o=Object.getPrototypeOf,Vo=Object.prototype.hasOwnProperty;var se=(e,t)=>()=>(e&&(t=e(e=0)),t);var De=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t)=>{for(var r in t)kt(e,r,{get:t[r],enumerable:!0})},rn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bo(t))!Vo.call(e,i)&&i!==r&&kt(e,i,{get:()=>t[i],enumerable:!(n=qo(t,i))||n.enumerable});return e};var Fe=(e,t,r)=>(r=e!=null?Uo($o(e)):{},rn(t||!e||!e.__esModule?kt(r,"default",{value:e,enumerable:!0}):r,e)),jo=e=>rn(kt({},"__esModule",{value:!0}),e);function gr(e,t){if(t=t.toLowerCase(),t==="utf8"||t==="utf-8")return new y(Wo.encode(e));if(t==="base64"||t==="base64url")return e=e.replace(/-/g,"+").replace(/_/g,"/"),e=e.replace(/[^A-Za-z0-9+/]/g,""),new y([...atob(e)].map(r=>r.charCodeAt(0)));if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return new y([...e].map(r=>r.charCodeAt(0)));if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let r=new y(e.length*2),n=new DataView(r.buffer);for(let i=0;ia.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,u)=>function(g=0){return B(g,"offset"),Y(g,"offset"),V(g,"offset",this.length-1),new DataView(this.buffer)[r[a]](g,u)},o=(a,u)=>function(g,T=0){let C=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),O=Go[C];return B(T,"offset"),Y(T,"offset"),V(T,"offset",this.length-1),Jo(g,"value",O[0],O[1]),new DataView(this.buffer)[r[a]](T,g,u),T+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(u=>{u.includes("Uint")&&(e[u.replace("Uint","UInt")]=e[u]),u.includes("Float64")&&(e[u.replace("Float64","Double")]=e[u]),u.includes("Float32")&&(e[u.replace("Float32","Float")]=e[u])})};n.forEach((a,u)=>{a.startsWith("read")&&(e[a]=i(u,!1),e[a+"LE"]=i(u,!0),e[a+"BE"]=i(u,!1)),a.startsWith("write")&&(e[a]=o(u,!1),e[a+"LE"]=o(u,!0),e[a+"BE"]=o(u,!1)),s([a,a+"LE",a+"BE"])})}function on(e){throw new Error(`Buffer polyfill does not implement "${e}"`)}function It(e,t){if(!(e instanceof Uint8Array))throw new TypeError(`The "${t}" argument must be an instance of Buffer or Uint8Array`)}function V(e,t,r=zo+1){if(e<0||e>r){let n=new RangeError(`The value of "${t}" is out of range. It must be >= 0 && <= ${r}. Received ${e}`);throw n.code="ERR_OUT_OF_RANGE",n}}function B(e,t){if(typeof e!="number"){let r=new TypeError(`The "${t}" argument must be of type number. Received type ${typeof e}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Y(e,t){if(!Number.isInteger(e)||Number.isNaN(e)){let r=new RangeError(`The value of "${t}" is out of range. It must be an integer. Received ${e}`);throw r.code="ERR_OUT_OF_RANGE",r}}function Jo(e,t,r,n){if(en){let i=new RangeError(`The value of "${t}" is out of range. It must be >= ${r} and <= ${n}. Received ${e}`);throw i.code="ERR_OUT_OF_RANGE",i}}function nn(e,t){if(typeof e!="string"){let r=new TypeError(`The "${t}" argument must be of type string. Received type ${typeof e}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Yo(e,t="utf8"){return y.from(e,t)}var y,Go,Wo,Ko,Ho,zo,b,hr,c=se(()=>{"use strict";y=class e extends Uint8Array{constructor(){super(...arguments);this._isBuffer=!0}get offset(){return this.byteOffset}static alloc(r,n=0,i="utf8"){return nn(i,"encoding"),e.allocUnsafe(r).fill(n,i)}static allocUnsafe(r){return e.from(r)}static allocUnsafeSlow(r){return e.from(r)}static isBuffer(r){return r&&!!r._isBuffer}static byteLength(r,n="utf8"){if(typeof r=="string")return gr(r,n).byteLength;if(r&&r.byteLength)return r.byteLength;let i=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw i.code="ERR_INVALID_ARG_TYPE",i}static isEncoding(r){return Ho.includes(r)}static compare(r,n){It(r,"buff1"),It(n,"buff2");for(let i=0;in[i])return 1}return r.length===n.length?0:r.length>n.length?1:-1}static from(r,n="utf8"){if(r&&typeof r=="object"&&r.type==="Buffer")return new e(r.data);if(typeof r=="number")return new e(new Uint8Array(r));if(typeof r=="string")return gr(r,n);if(ArrayBuffer.isView(r)){let{byteOffset:i,byteLength:o,buffer:s}=r;return"map"in r&&typeof r.map=="function"?new e(r.map(a=>a%256),i,o):new e(s,i,o)}if(r&&typeof r=="object"&&("length"in r||"byteLength"in r||"buffer"in r))return new e(r);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(r,n){if(r.length===0)return e.alloc(0);let i=[].concat(...r.map(s=>[...s])),o=e.alloc(n!==void 0?n:i.length);return o.set(n!==void 0?i.slice(0,n):i),o}slice(r=0,n=this.length){return this.subarray(r,n)}subarray(r=0,n=this.length){return Object.setPrototypeOf(super.subarray(r,n),e.prototype)}reverse(){return super.reverse(),this}readIntBE(r,n){B(r,"offset"),Y(r,"offset"),V(r,"offset",this.length-1),B(n,"byteLength"),Y(n,"byteLength");let i=new DataView(this.buffer,r,n),o=0;for(let s=0;s=0;s--)o.setUint8(s,r&255),r=r/256;return n+i}writeUintBE(r,n,i){return this.writeUIntBE(r,n,i)}writeUIntLE(r,n,i){B(n,"offset"),Y(n,"offset"),V(n,"offset",this.length-1),B(i,"byteLength"),Y(i,"byteLength");let o=new DataView(this.buffer,n,i);for(let s=0;sn===r[i])}copy(r,n=0,i=0,o=this.length){V(n,"targetStart"),V(i,"sourceStart",this.length),V(o,"sourceEnd"),n>>>=0,i>>>=0,o>>>=0;let s=0;for(;i=this.length?this.length-u:r.length),u);return this}includes(r,n=null,i="utf-8"){return this.indexOf(r,n,i)!==-1}lastIndexOf(r,n=null,i="utf-8"){return this.indexOf(r,n,i,!0)}indexOf(r,n=null,i="utf-8",o=!1){let s=o?this.findLastIndex.bind(this):this.findIndex.bind(this);i=typeof n=="string"?n:i;let a=e.from(typeof r=="number"?[r]:r,i),u=typeof n=="string"?0:n;return u=typeof n=="number"?u:null,u=Number.isNaN(u)?null:u,u??=o?this.length:0,u=u<0?this.length+u:u,a.length===0&&o===!1?u>=this.length?this.length:u:a.length===0&&o===!0?(u>=this.length?this.length:u)||this.length:s((g,T)=>(o?T<=u:T>=u)&&this[T]===a[0]&&a.every((O,A)=>this[T+A]===O))}toString(r="utf8",n=0,i=this.length){if(n=n<0?0:n,r=r.toString().toLowerCase(),i<=0)return"";if(r==="utf8"||r==="utf-8")return Ko.decode(this.slice(n,i));if(r==="base64"||r==="base64url"){let o=btoa(this.reduce((s,a)=>s+hr(a),""));return r==="base64url"?o.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):o}if(r==="binary"||r==="ascii"||r==="latin1"||r==="latin-1")return this.slice(n,i).reduce((o,s)=>o+hr(s&(r==="ascii"?127:255)),"");if(r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le"){let o=new DataView(this.buffer.slice(n,i));return Array.from({length:o.byteLength/2},(s,a)=>a*2+1o+s.toString(16).padStart(2,"0"),"");on(`encoding "${r}"`)}toLocaleString(){return this.toString()}inspect(){return``}};Go={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},Wo=new TextEncoder,Ko=new TextDecoder,Ho=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],zo=4294967295;Qo(y.prototype);b=new Proxy(Yo,{construct(e,[t,r]){return y.from(t,r)},get(e,t){return y[t]}}),hr=String.fromCodePoint});var h,m=se(()=>{"use strict";h={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}});var x,p=se(()=>{"use strict";x=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var E,d=se(()=>{"use strict";E=()=>{};E.prototype=E});var w,f=se(()=>{"use strict";w=class{constructor(t){this.value=t}deref(){return this.value}}});function un(e,t){var r,n,i,o,s,a,u,g,T=e.constructor,C=T.precision;if(!e.s||!t.s)return t.s||(t=new T(e)),U?D(t,C):t;if(u=e.d,g=t.d,s=e.e,i=t.e,u=u.slice(),o=s-i,o){for(o<0?(n=u,o=-o,a=g.length):(n=g,i=s,a=u.length),s=Math.ceil(C/N),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=u.length,o=g.length,a-o<0&&(o=a,n=g,g=u,u=n),r=0;o;)r=(u[--o]=u[o]+g[o]+r)/Q|0,u[o]%=Q;for(r&&(u.unshift(r),++i),a=u.length;u[--a]==0;)u.pop();return t.d=u,t.e=i,U?D(t,C):t}function le(e,t,r){if(e!==~~e||er)throw Error(Oe+e)}function ae(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t16)throw Error(br+$(e));if(!e.s)return new T(Z);for(t==null?(U=!1,a=C):a=t,s=new T(.03125);e.abs().gte(.1);)e=e.times(s),g+=5;for(n=Math.log(Se(2,g))/Math.LN10*2+5|0,a+=n,r=i=o=new T(Z),T.precision=a;;){if(i=D(i.times(e),a),r=r.times(++u),s=o.plus(ye(i,r,a)),ae(s.d).slice(0,a)===ae(o.d).slice(0,a)){for(;g--;)o=D(o.times(o),a);return T.precision=C,t==null?(U=!0,D(o,C)):o}o=s}}function $(e){for(var t=e.e*N,r=e.d[0];r>=10;r/=10)t++;return t}function yr(e,t,r){if(t>e.LN10.sd())throw U=!0,r&&(e.precision=r),Error(re+"LN10 precision limit exceeded");return D(new e(e.LN10),t)}function Pe(e){for(var t="";e--;)t+="0";return t}function it(e,t){var r,n,i,o,s,a,u,g,T,C=1,O=10,A=e,M=A.d,S=A.constructor,I=S.precision;if(A.s<1)throw Error(re+(A.s?"NaN":"-Infinity"));if(A.eq(Z))return new S(0);if(t==null?(U=!1,g=I):g=t,A.eq(10))return t==null&&(U=!0),yr(S,g);if(g+=O,S.precision=g,r=ae(M),n=r.charAt(0),o=$(A),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)A=A.times(e),r=ae(A.d),n=r.charAt(0),C++;o=$(A),n>1?(A=new S("0."+r),o++):A=new S(n+"."+r.slice(1))}else return u=yr(S,g+2,I).times(o+""),A=it(new S(n+"."+r.slice(1)),g-O).plus(u),S.precision=I,t==null?(U=!0,D(A,I)):A;for(a=s=A=ye(A.minus(Z),A.plus(Z),g),T=D(A.times(A),g),i=3;;){if(s=D(s.times(T),g),u=a.plus(ye(s,new S(i),g)),ae(u.d).slice(0,g)===ae(a.d).slice(0,g))return a=a.times(2),o!==0&&(a=a.plus(yr(S,g+2,I).times(o+""))),a=ye(a,new S(C),g),S.precision=I,t==null?(U=!0,D(a,I)):a;a=u,i+=2}}function sn(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ue(r/N),e.d=[],n=(r+1)%N,r<0&&(n+=N),nLt||e.e<-Lt))throw Error(br+r)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,r){var n,i,o,s,a,u,g,T,C=e.d;for(s=1,o=C[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=N,i=t,g=C[T=0];else{if(T=Math.ceil((n+1)/N),o=C.length,T>=o)return e;for(g=o=C[T],s=1;o>=10;o/=10)s++;n%=N,i=n-N+s}if(r!==void 0&&(o=Se(10,s-i-1),a=g/o%10|0,u=t<0||C[T+1]!==void 0||g%o,u=r<4?(a||u)&&(r==0||r==(e.s<0?3:2)):a>5||a==5&&(r==4||u||r==6&&(n>0?i>0?g/Se(10,s-i):0:C[T-1])%10&1||r==(e.s<0?8:7))),t<1||!C[0])return u?(o=$(e),C.length=1,t=t-o-1,C[0]=Se(10,(N-t%N)%N),e.e=Ue(-t/N)||0):(C.length=1,C[0]=e.e=e.s=0),e;if(n==0?(C.length=T,o=1,T--):(C.length=T+1,o=Se(10,N-n),C[T]=i>0?(g/Se(10,s-i)%Se(10,i)|0)*o:0),u)for(;;)if(T==0){(C[0]+=o)==Q&&(C[0]=1,++e.e);break}else{if(C[T]+=o,C[T]!=Q)break;C[T--]=0,o=1}for(n=C.length;C[--n]===0;)C.pop();if(U&&(e.e>Lt||e.e<-Lt))throw Error(br+$(e));return e}function mn(e,t){var r,n,i,o,s,a,u,g,T,C,O=e.constructor,A=O.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new O(e),U?D(t,A):t;if(u=e.d,C=t.d,n=t.e,g=e.e,u=u.slice(),s=g-n,s){for(T=s<0,T?(r=u,s=-s,a=C.length):(r=C,n=g,a=u.length),i=Math.max(Math.ceil(A/N),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=u.length,a=C.length,T=i0;--i)u[a++]=0;for(i=C.length;i>s;){if(u[--i]0?o=o.charAt(0)+"."+o.slice(1)+Pe(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Pe(-i-1)+o,r&&(n=r-s)>0&&(o+=Pe(n))):i>=s?(o+=Pe(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+Pe(n))):((n=i+1)0&&(i+1===s&&(o+="."),o+=Pe(n))),e.s<0?"-"+o:o}function an(e,t){if(e.length>t)return e.length=t,!0}function pn(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Oe+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return sn(s,o.toString())}else if(typeof o!="string")throw Error(Oe+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Zo.test(o))sn(s,o);else throw Error(Oe+o)}if(i.prototype=R,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=pn,i.config=i.set=es,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oe+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oe+r+": "+n);return this}var Ne,Xo,wr,U,re,Oe,br,Ue,Se,Zo,Z,Q,N,ln,Lt,R,ye,wr,_t,dn=se(()=>{"use strict";c();m();p();d();f();l();Ne=1e9,Xo={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},U=!0,re="[DecimalError] ",Oe=re+"Invalid argument: ",br=re+"Exponent out of range: ",Ue=Math.floor,Se=Math.pow,Zo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Q=1e7,N=7,ln=9007199254740991,Lt=Ue(ln/N),R={};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};R.comparedTo=R.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};R.decimalPlaces=R.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*N;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};R.dividedBy=R.div=function(e){return ye(this,new this.constructor(e))};R.dividedToIntegerBy=R.idiv=function(e){var t=this,r=t.constructor;return D(ye(t,new r(e),0,1),r.precision)};R.equals=R.eq=function(e){return!this.cmp(e)};R.exponent=function(){return $(this)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){return this.cmp(e)>=0};R.isInteger=R.isint=function(){return this.e>this.d.length-2};R.isNegative=R.isneg=function(){return this.s<0};R.isPositive=R.ispos=function(){return this.s>0};R.isZero=function(){return this.s===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Z))throw Error(re+"NaN");if(r.s<1)throw Error(re+(r.s?"NaN":"-Infinity"));return r.eq(Z)?new n(0):(U=!1,t=ye(it(r,o),it(e,o),o),U=!0,D(t,i))};R.minus=R.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mn(t,e):un(t,(e.s=-e.s,e))};R.modulo=R.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(re+"NaN");return r.s?(U=!1,t=ye(r,e,0,1).times(e),U=!0,r.minus(t)):D(new n(r),i)};R.naturalExponential=R.exp=function(){return cn(this)};R.naturalLogarithm=R.ln=function(){return it(this)};R.negated=R.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};R.plus=R.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?un(t,e):mn(t,(e.s=-e.s,e))};R.precision=R.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oe+e);if(t=$(i)+1,n=i.d.length-1,r=n*N+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,o,s,a=this,u=a.constructor;if(a.s<1){if(!a.s)return new u(0);throw Error(re+"NaN")}for(e=$(a),U=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=ae(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ue((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=s=r+3;;)if(o=n,n=o.plus(ye(a,o,s+2)).times(.5),ae(o.d).slice(0,s)===(t=ae(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(D(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(t!="9999")break;s+=4}return U=!0,D(n,r)};R.times=R.mul=function(e){var t,r,n,i,o,s,a,u,g,T=this,C=T.constructor,O=T.d,A=(e=new C(e)).d;if(!T.s||!e.s)return new C(0);for(e.s*=T.s,r=T.e+e.e,u=O.length,g=A.length,u=0;){for(t=0,i=u+n;i>n;)a=o[i]+A[n]*O[i-n-1]+t,o[i--]=a%Q|0,t=a/Q|0;o[i]=(o[i]+t)%Q|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,U?D(e,C.precision):e};R.toDecimalPlaces=R.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(le(e,0,Ne),t===void 0?t=n.rounding:le(t,0,8),D(r,e+$(r)+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ke(n,!0):(le(e,0,Ne),t===void 0?t=i.rounding:le(t,0,8),n=D(new i(n),e+1,t),r=ke(n,!0,e+1)),r};R.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?ke(i):(le(e,0,Ne),t===void 0?t=o.rounding:le(t,0,8),n=D(new o(i),e+$(i)+1,t),r=ke(n.abs(),!1,e+$(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};R.toInteger=R.toint=function(){var e=this,t=e.constructor;return D(new t(e),$(e)+1,t.rounding)};R.toNumber=function(){return+this};R.toPower=R.pow=function(e){var t,r,n,i,o,s,a=this,u=a.constructor,g=12,T=+(e=new u(e));if(!e.s)return new u(Z);if(a=new u(a),!a.s){if(e.s<1)throw Error(re+"Infinity");return a}if(a.eq(Z))return a;if(n=u.precision,e.eq(Z))return D(a,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=a.s,s){if((r=T<0?-T:T)<=ln){for(i=new u(Z),t=Math.ceil(n/N+4),U=!1;r%2&&(i=i.times(a),an(i.d,t)),r=Ue(r/2),r!==0;)a=a.times(a),an(a.d,t);return U=!0,e.s<0?new u(Z).div(i):D(i,n)}}else if(o<0)throw Error(re+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,a.s=1,U=!1,i=e.times(it(a,n+g)),U=!0,i=cn(i),i.s=o,i};R.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=$(i),n=ke(i,r<=o.toExpNeg||r>=o.toExpPos)):(le(e,1,Ne),t===void 0?t=o.rounding:le(t,0,8),i=D(new o(i),e,t),r=$(i),n=ke(i,e<=r||r<=o.toExpNeg,e)),n};R.toSignificantDigits=R.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(le(e,1,Ne),t===void 0?t=n.rounding:le(t,0,8)),D(new n(r),e,t)};R.toString=R.valueOf=R.val=R.toJSON=R[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$(e),r=e.constructor;return ke(e,t<=r.toExpNeg||t>=r.toExpPos)};ye=function(){function e(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%Q|0,s=o/Q|0;return s&&n.unshift(s),n}function t(n,i,o,s){var a,u;if(o!=s)u=o>s?1:-1;else for(a=u=0;ai[a]?1:-1;break}return u}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]1;)n.shift()}return function(n,i,o,s){var a,u,g,T,C,O,A,M,S,I,ne,z,_e,k,Ae,fr,ie,St,Ot=n.constructor,No=n.s==i.s?1:-1,oe=n.d,q=i.d;if(!n.s)return new Ot(n);if(!i.s)throw Error(re+"Division by zero");for(u=n.e-i.e,ie=q.length,Ae=oe.length,A=new Ot(No),M=A.d=[],g=0;q[g]==(oe[g]||0);)++g;if(q[g]>(oe[g]||0)&&--u,o==null?z=o=Ot.precision:s?z=o+($(n)-$(i))+1:z=o,z<0)return new Ot(0);if(z=z/N+2|0,g=0,ie==1)for(T=0,q=q[0],z++;(g1&&(q=e(q,T),oe=e(oe,T),ie=q.length,Ae=oe.length),k=ie,S=oe.slice(0,ie),I=S.length;I=Q/2&&++fr;do T=0,a=t(q,S,ie,I),a<0?(ne=S[0],ie!=I&&(ne=ne*Q+(S[1]||0)),T=ne/fr|0,T>1?(T>=Q&&(T=Q-1),C=e(q,T),O=C.length,I=S.length,a=t(C,S,O,I),a==1&&(T--,r(C,ie{"use strict";dn();v=class extends _t{static isDecimal(t){return t instanceof _t}static random(t=20){{let n=crypto.getRandomValues(new Uint8Array(t)).reduce((i,o)=>i+o,"");return new _t(`0.${n.slice(0,t)}`)}}},ue=v});function ts(){return!1}var rs,ns,yn,bn=se(()=>{"use strict";c();m();p();d();f();l();rs={},ns={existsSync:ts,promises:rs},yn=ns});function us(...e){return e.join("/")}function cs(...e){return e.join("/")}var In,ms,ps,st,Ln=se(()=>{"use strict";c();m();p();d();f();l();In="/",ms={sep:In},ps={resolve:us,posix:ms,join:cs,sep:In},st=ps});var Ut,Dn=se(()=>{"use strict";c();m();p();d();f();l();Ut=class{constructor(){this.events={}}on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var Nn=De((Wc,Fn)=>{"use strict";c();m();p();d();f();l();Fn.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Bn=De((am,qn)=>{"use strict";c();m();p();d();f();l();qn.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Vn=De((fm,$n)=>{"use strict";c();m();p();d();f();l();var bs=Bn();$n.exports=e=>typeof e=="string"?e.replace(bs(),""):e});var kr=De((Mf,Jn)=>{"use strict";c();m();p();d();f();l();Jn.exports=function(){function e(t,r,n,i,o){return tn?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s{fa.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Ei=De(()=>{"use strict";c();m();p();d();f();l()});var ul={};Mt(ul,{Debug:()=>Tr,Decimal:()=>ue,Extensions:()=>Er,MetricsClient:()=>Ze,NotFoundError:()=>we,PrismaClientInitializationError:()=>L,PrismaClientKnownRequestError:()=>J,PrismaClientRustPanicError:()=>Ee,PrismaClientUnknownRequestError:()=>G,PrismaClientValidationError:()=>j,Public:()=>xr,Sql:()=>X,defineDmmfProperty:()=>hi,deserializeJsonResponse:()=>$e,dmmfToRuntimeDataModel:()=>gi,empty:()=>Pi,getPrismaClient:()=>_o,getRuntime:()=>Ce,join:()=>xi,makeStrictEnum:()=>Do,makeTypedQueryFactory:()=>yi,objectEnumValues:()=>Wt,raw:()=>Vr,serializeJsonQuery:()=>Zt,skip:()=>Xt,sqltag:()=>jr,warnEnvConflicts:()=>void 0,warnOnce:()=>ct});module.exports=jo(ul);c();m();p();d();f();l();var Er={};Mt(Er,{defineExtension:()=>fn,getExtensionContext:()=>gn});c();m();p();d();f();l();c();m();p();d();f();l();function fn(e){return typeof e=="function"?e:t=>t.$extends(e)}c();m();p();d();f();l();function gn(e){return e}var xr={};Mt(xr,{validator:()=>hn});c();m();p();d();f();l();c();m();p();d();f();l();function hn(...e){return t=>t}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Pr,wn,En,xn,Pn=!0;typeof h<"u"&&({FORCE_COLOR:Pr,NODE_DISABLE_COLORS:wn,NO_COLOR:En,TERM:xn}=h.env||{},Pn=h.stdout&&h.stdout.isTTY);var is={enabled:!wn&&En==null&&xn!=="dumb"&&(Pr!=null&&Pr!=="0"||Pn)};function F(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!is.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var fu=F(0,0),Dt=F(1,22),Ft=F(2,22),gu=F(3,23),vn=F(4,24),hu=F(7,27),yu=F(8,28),bu=F(9,29),wu=F(30,39),qe=F(31,39),Tn=F(32,39),Cn=F(33,39),Rn=F(34,39),Eu=F(35,39),An=F(36,39),xu=F(37,39),Sn=F(90,39),Pu=F(90,39),vu=F(40,49),Tu=F(41,49),Cu=F(42,49),Ru=F(43,49),Au=F(44,49),Su=F(45,49),Ou=F(46,49),ku=F(47,49);c();m();p();d();f();l();var os=100,On=["green","yellow","blue","magenta","cyan","red"],Nt=[],kn=Date.now(),ss=0,vr=typeof h<"u"?h.env:{};globalThis.DEBUG??=vr.DEBUG??"";globalThis.DEBUG_COLORS??=vr.DEBUG_COLORS?vr.DEBUG_COLORS==="true":!0;var ot={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function as(e){let t={color:On[ss++%On.length],enabled:ot.enabled(e),namespace:e,log:ot.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Nt.push([o,...n]),Nt.length>os&&Nt.shift(),ot.enabled(o)||i){let u=n.map(T=>typeof T=="string"?T:ls(T)),g=`+${Date.now()-kn}ms`;kn=Date.now(),a(o,...u,g)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Tr=new Proxy(as,{get:(e,t)=>ot[t],set:(e,t,r)=>ot[t]=r});function ls(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function Mn(){Nt.length=0}var ee=Tr;c();m();p();d();f();l();c();m();p();d();f();l();var Cr=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];c();m();p();d();f();l();var _n="library";function at(e){let t=ds();return t||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":_n)}function ds(){let e=h.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}c();m();p();d();f();l();c();m();p();d();f();l();var Me;(t=>{let e;(k=>(k.findUnique="findUnique",k.findUniqueOrThrow="findUniqueOrThrow",k.findFirst="findFirst",k.findFirstOrThrow="findFirstOrThrow",k.findMany="findMany",k.create="create",k.createMany="createMany",k.createManyAndReturn="createManyAndReturn",k.update="update",k.updateMany="updateMany",k.upsert="upsert",k.delete="delete",k.deleteMany="deleteMany",k.groupBy="groupBy",k.count="count",k.aggregate="aggregate",k.findRaw="findRaw",k.aggregateRaw="aggregateRaw"))(e=t.ModelAction||={})})(Me||={});var ut={};Mt(ut,{error:()=>hs,info:()=>gs,log:()=>fs,query:()=>ys,should:()=>Un,tags:()=>lt,warn:()=>Rr});c();m();p();d();f();l();var lt={error:qe("prisma:error"),warn:Cn("prisma:warn"),info:An("prisma:info"),query:Rn("prisma:query")},Un={warn:()=>!h.env.PRISMA_DISABLE_WARNINGS};function fs(...e){console.log(...e)}function Rr(e,...t){Un.warn()&&console.warn(`${lt.warn} ${e}`,...t)}function gs(e,...t){console.info(`${lt.info} ${e}`,...t)}function hs(e,...t){console.error(`${lt.error} ${e}`,...t)}function ys(e,...t){console.log(`${lt.query} ${e}`,...t)}c();m();p();d();f();l();function qt(e,t){if(!e)throw new Error(`${t}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}c();m();p();d();f();l();function be(e,t){throw new Error(t)}c();m();p();d();f();l();function Ar(e,t){return Object.prototype.hasOwnProperty.call(e,t)}c();m();p();d();f();l();var Sr=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),{});c();m();p();d();f();l();function Be(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}c();m();p();d();f();l();function Or(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n{jn.has(e)||(jn.add(e),Rr(t,...r))};c();m();p();d();f();l();var J=class extends Error{constructor(t,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(t),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};K(J,"PrismaClientKnownRequestError");var we=class extends J{constructor(t,r){super(t,{code:"P2025",clientVersion:r}),this.name="NotFoundError"}};K(we,"NotFoundError");c();m();p();d();f();l();var L=class e extends Error{constructor(t,r,n){super(t),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};K(L,"PrismaClientInitializationError");c();m();p();d();f();l();var Ee=class extends Error{constructor(t,r){super(t),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};K(Ee,"PrismaClientRustPanicError");c();m();p();d();f();l();var G=class extends Error{constructor(t,{clientVersion:r,batchRequestIdx:n}){super(t),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};K(G,"PrismaClientUnknownRequestError");c();m();p();d();f();l();var j=class extends Error{constructor(r,{clientVersion:n}){super(r);this.name="PrismaClientValidationError";this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};K(j,"PrismaClientValidationError");c();m();p();d();f();l();l();function $e(e){return e===null?e:Array.isArray(e)?e.map($e):typeof e=="object"?ws(e)?Es(e):Be(e,$e):e}function ws(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function Es({$type:e,value:t}){switch(e){case"BigInt":return BigInt(t);case"Bytes":return b.from(t,"base64");case"DateTime":return new Date(t);case"Decimal":return new ue(t);case"Json":return JSON.parse(t);default:be(t,"Unknown tagged value")}}c();m();p();d();f();l();c();m();p();d();f();l();function Ve(e){return e.substring(0,1).toLowerCase()+e.substring(1)}c();m();p();d();f();l();function je(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Bt(e){return e.toString()!=="Invalid Date"}c();m();p();d();f();l();l();function Qe(e){return v.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}c();m();p();d();f();l();c();m();p();d();f();l();var xs=Fe(Nn());var Ps={red:qe,gray:Sn,dim:Ft,bold:Dt,underline:vn,highlightSource:e=>e.highlight()},vs={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Ts({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Cs({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],u=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${u}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${u}`)),t&&a.push(s.underline(Rs(t))),i){a.push("");let g=[i.toString()];o&&(g.push(o),g.push(s.dim(")"))),a.push(g.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` -`)}function Rs(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function Je(e){let t=e.showColors?Ps:vs,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=Ts(e),Cs(r,t)}c();m();p();d();f();l();var Yn=Fe(kr());c();m();p();d();f();l();function Kn(e,t,r){let n=Hn(e),i=As(n),o=Os(i);o?$t(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Hn(e){return e.errors.flatMap(t=>t.kind==="Union"?Hn(t):[t])}function As(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Ss(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Ss(e,t){return[...new Set(e.concat(t))]}function Os(e){return Or(e,(t,r)=>{let n=Gn(t),i=Gn(r);return n!==i?n-i:Wn(t)-Wn(r)})}function Gn(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Wn(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}c();m();p();d();f();l();var te=class{constructor(t,r){this.name=t;this.value=r;this.isRequired=!1}makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};c();m();p();d();f();l();c();m();p();d();f();l();var Ge=class{constructor(t=0,r){this.context=r;this.lines=[];this.currentLine="";this.currentIndent=0;this.currentIndent=t}write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` -`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};c();m();p();d();f();l();c();m();p();d();f();l();var Vt=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};c();m();p();d();f();l();var jt=e=>e,Qt={bold:jt,red:jt,green:jt,dim:jt,enabled:!1},zn={bold:Dt,red:qe,green:Tn,dim:Ft,enabled:!0},We={write(e){e.writeLine(",")}};c();m();p();d();f();l();var ce=class{constructor(t){this.contents=t;this.isUnderlined=!1;this.color=t=>t}underline(){return this.isUnderlined=!0,this}setColor(t){return this.color=t,this}write(t){let r=t.getCurrentLineLength();t.write(this.color(this.contents)),this.isUnderlined&&t.afterNextNewline(()=>{t.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};c();m();p();d();f();l();var ve=class{constructor(){this.hasError=!1}markAsError(){return this.hasError=!0,this}};var Ke=class extends ve{constructor(){super(...arguments);this.items=[]}addItem(r){return this.items.push(new Vt(r)),this}getField(r){return this.items[r]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(n=>n.value.getPrintWidth()))+2}write(r){if(this.items.length===0){this.writeEmpty(r);return}this.writeWithItems(r)}writeEmpty(r){let n=new ce("[]");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithItems(r){let{colors:n}=r.context;r.writeLine("[").withIndent(()=>r.writeJoined(We,this.items).newLine()).write("]"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(n.red("~".repeat(this.getPrintWidth())))})}asObject(){}};var He=class e extends ve{constructor(){super(...arguments);this.fields={};this.suggestions=[]}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let s=o;for(let a of i){let u;if(s.value instanceof e?u=s.value.getField(a):s.value instanceof Ke&&(u=s.value.getField(Number(a))),!u)return;s=u}return s}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof e))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let s=i.value.getFieldValue(o);if(!s||!(s instanceof e))return;let a=s.getSelectionParent();if(!a)return;i=a}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(i=>i.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new ce("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(We,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};c();m();p();d();f();l();var W=class extends ve{constructor(r){super();this.text=r}getPrintWidth(){return this.text.length}write(r){let n=new ce(this.text);this.hasError&&n.underline().setColor(r.context.colors.red),r.write(n)}asObject(){}};c();m();p();d();f();l();var mt=class{constructor(){this.fields=[]}addField(t,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${t}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(t){let{colors:{green:r}}=t.context;t.writeLine(r("{")).withIndent(()=>{t.writeJoined(We,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function $t(e,t,r){switch(e.kind){case"MutuallyExclusiveFields":Ms(e,t);break;case"IncludeOnScalar":Is(e,t);break;case"EmptySelection":Ls(e,t,r);break;case"UnknownSelectionField":Ns(e,t);break;case"InvalidSelectionValue":Us(e,t);break;case"UnknownArgument":qs(e,t);break;case"UnknownInputField":Bs(e,t);break;case"RequiredArgumentMissing":$s(e,t);break;case"InvalidArgumentType":Vs(e,t);break;case"InvalidArgumentValue":js(e,t);break;case"ValueTooLarge":Qs(e,t);break;case"SomeFieldsMissing":Js(e,t);break;case"TooManyFieldsGiven":Gs(e,t);break;case"Union":Kn(e,t,r);break;default:throw new Error("not implemented: "+e.kind)}}function Ms(e,t){let r=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();r&&(r.getField(e.firstField)?.markAsError(),r.getField(e.secondField)?.markAsError()),t.addErrorMessage(n=>`Please ${n.bold("either")} use ${n.green(`\`${e.firstField}\``)} or ${n.green(`\`${e.secondField}\``)}, but ${n.red("not both")} at the same time.`)}function Is(e,t){let[r,n]=pt(e.selectionPath),i=e.outputType,o=t.arguments.getDeepSelectionParent(r)?.value;if(o&&(o.getField(n)?.markAsError(),i))for(let s of i.fields)s.isRelation&&o.addSuggestion(new te(s.name,"true"));t.addErrorMessage(s=>{let a=`Invalid scalar field ${s.red(`\`${n}\``)} for ${s.bold("include")} statement`;return i?a+=` on model ${s.bold(i.name)}. ${dt(s)}`:a+=".",a+=` -Note that ${s.bold("include")} statements only accept relation fields.`,a})}function Ls(e,t,r){let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getField("omit")?.value.asObject();if(i){_s(e,t,i);return}if(n.hasField("select")){Ds(e,t);return}}if(r?.[Ve(e.outputType.name)]){Fs(e,t);return}t.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function _s(e,t,r){r.removeAllFields();for(let n of e.outputType.fields)r.addSuggestion(new te(n.name,"false"));t.addErrorMessage(n=>`The ${n.red("omit")} statement includes every field of the model ${n.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ds(e,t){let r=e.outputType,n=t.arguments.getDeepSelectionParent(e.selectionPath)?.value,i=n?.isEmpty()??!1;n&&(n.removeAllFields(),ei(n,r)),t.addErrorMessage(o=>i?`The ${o.red("`select`")} statement for type ${o.bold(r.name)} must not be empty. ${dt(o)}`:`The ${o.red("`select`")} statement for type ${o.bold(r.name)} needs ${o.bold("at least one truthy value")}.`)}function Fs(e,t){let r=new mt;for(let i of e.outputType.fields)i.isRelation||r.addField(i.name,"false");let n=new te("omit",r).makeRequired();if(e.selectionPath.length===0)t.arguments.addSuggestion(n);else{let[i,o]=pt(e.selectionPath),a=t.arguments.getDeepSelectionParent(i)?.value.asObject()?.getField(o);if(a){let u=a?.value.asObject()??new He;u.addSuggestion(n),a.value=u}}t.addErrorMessage(i=>`The global ${i.red("omit")} configuration excludes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function Ns(e,t){let r=ti(e.selectionPath,t);if(r.parentKind!=="unknown"){r.field.markAsError();let n=r.parent;switch(r.parentKind){case"select":ei(n,e.outputType);break;case"include":Ws(n,e.outputType);break;case"omit":Ks(n,e.outputType);break}}t.addErrorMessage(n=>{let i=[`Unknown field ${n.red(`\`${r.fieldName}\``)}`];return r.parentKind!=="unknown"&&i.push(`for ${n.bold(r.parentKind)} statement`),i.push(`on model ${n.bold(`\`${e.outputType.name}\``)}.`),i.push(dt(n)),i.join(" ")})}function Us(e,t){let r=ti(e.selectionPath,t);r.parentKind!=="unknown"&&r.field.value.markAsError(),t.addErrorMessage(n=>`Invalid value for selection field \`${n.red(r.fieldName)}\`: ${e.underlyingError}`)}function qs(e,t){let r=e.argumentPath[0],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(r)?.markAsError(),Hs(n,e.arguments)),t.addErrorMessage(i=>Xn(i,r,e.arguments.map(o=>o.name)))}function Bs(e,t){let[r,n]=pt(e.argumentPath),i=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){i.getDeepField(e.argumentPath)?.markAsError();let o=i.getDeepFieldValue(r)?.asObject();o&&ri(o,e.inputType)}t.addErrorMessage(o=>Xn(o,n,e.inputType.fields.map(s=>s.name)))}function Xn(e,t,r){let n=[`Unknown argument \`${e.red(t)}\`.`],i=Ys(t,r);return i&&n.push(`Did you mean \`${e.green(i)}\`?`),r.length>0&&n.push(dt(e)),n.join(" ")}function $s(e,t){let r;t.addErrorMessage(u=>r?.value instanceof W&&r.value.text==="null"?`Argument \`${u.green(o)}\` must not be ${u.red("null")}.`:`Argument \`${u.green(o)}\` is missing.`);let n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!n)return;let[i,o]=pt(e.argumentPath),s=new mt,a=n.getDeepFieldValue(i)?.asObject();if(a)if(r=a.getField(o),r&&a.removeField(o),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let u of e.inputTypes[0].fields)s.addField(u.name,u.typeNames.join(" | "));a.addSuggestion(new te(o,s).makeRequired())}else{let u=e.inputTypes.map(Zn).join(" | ");a.addSuggestion(new te(o,u).makeRequired())}}function Zn(e){return e.kind==="list"?`${Zn(e.elementType)}[]`:e.name}function Vs(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=Jt("or",e.argument.typeNames.map(s=>i.green(s)));return`Argument \`${i.bold(r)}\`: Invalid value provided. Expected ${o}, provided ${i.red(e.inferredType)}.`})}function js(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&n.getDeepFieldValue(e.argumentPath)?.markAsError(),t.addErrorMessage(i=>{let o=[`Invalid value for argument \`${i.bold(r)}\``];if(e.underlyingError&&o.push(`: ${e.underlyingError}`),o.push("."),e.argument.typeNames.length>0){let s=Jt("or",e.argument.typeNames.map(a=>i.green(a)));o.push(` Expected ${s}.`)}return o.join("")})}function Qs(e,t){let r=e.argument.name,n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i;if(n){let s=n.getDeepField(e.argumentPath)?.value;s?.markAsError(),s instanceof W&&(i=s.text)}t.addErrorMessage(o=>{let s=["Unable to fit value"];return i&&s.push(o.red(i)),s.push(`into a 64-bit signed integer for field \`${o.bold(r)}\``),s.join(" ")})}function Js(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(n){let i=n.getDeepFieldValue(e.argumentPath)?.asObject();i&&ri(i,e.inputType)}t.addErrorMessage(i=>{let o=[`Argument \`${i.bold(r)}\` of type ${i.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?o.push(`${i.green("at least one of")} ${Jt("or",e.constraints.requiredFields.map(s=>`\`${i.bold(s)}\``))} arguments.`):o.push(`${i.green("at least one")} argument.`):o.push(`${i.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),o.push(dt(i)),o.join(" ")})}function Gs(e,t){let r=e.argumentPath[e.argumentPath.length-1],n=t.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),i=[];if(n){let o=n.getDeepFieldValue(e.argumentPath)?.asObject();o&&(o.markAsError(),i=Object.keys(o.getFields()))}t.addErrorMessage(o=>{let s=[`Argument \`${o.bold(r)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?s.push(`${o.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?s.push(`${o.green("at most one")} argument,`):s.push(`${o.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),s.push(`but you provided ${Jt("and",i.map(a=>o.red(a)))}. Please choose`),e.constraints.maxFieldCount===1?s.push("one."):s.push(`${e.constraints.maxFieldCount}.`),s.join(" ")})}function ei(e,t){for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new te(r.name,"true"))}function Ws(e,t){for(let r of t.fields)r.isRelation&&!e.hasField(r.name)&&e.addSuggestion(new te(r.name,"true"))}function Ks(e,t){for(let r of t.fields)!e.hasField(r.name)&&!r.isRelation&&e.addSuggestion(new te(r.name,"true"))}function Hs(e,t){for(let r of t)e.hasField(r.name)||e.addSuggestion(new te(r.name,r.typeNames.join(" | ")))}function ti(e,t){let[r,n]=pt(e),i=t.arguments.getDeepSubSelectionValue(r)?.asObject();if(!i)return{parentKind:"unknown",fieldName:n};let o=i.getFieldValue("select")?.asObject(),s=i.getFieldValue("include")?.asObject(),a=i.getFieldValue("omit")?.asObject(),u=o?.getField(n);return o&&u?{parentKind:"select",parent:o,field:u,fieldName:n}:(u=s?.getField(n),s&&u?{parentKind:"include",field:u,parent:s,fieldName:n}:(u=a?.getField(n),a&&u?{parentKind:"omit",field:u,parent:a,fieldName:n}:{parentKind:"unknown",fieldName:n}))}function ri(e,t){if(t.kind==="object")for(let r of t.fields)e.hasField(r.name)||e.addSuggestion(new te(r.name,r.typeNames.join(" | ")))}function pt(e){let t=[...e],r=t.pop();if(!r)throw new Error("unexpected empty path");return[t,r]}function dt({green:e,enabled:t}){return"Available options are "+(t?`listed in ${e("green")}`:"marked with ?")+"."}function Jt(e,t){if(t.length===1)return t[0];let r=[...t],n=r.pop();return`${r.join(", ")} ${e} ${n}`}var zs=3;function Ys(e,t){let r=1/0,n;for(let i of t){let o=(0,Yn.default)(e,i);o>zs||o`}};function ze(e){return e instanceof ft}c();m();p();d();f();l();var Gt=Symbol(),Mr=new WeakMap,xe=class{constructor(t){t===Gt?Mr.set(this,`Prisma.${this._getName()}`):Mr.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Mr.get(this)}},gt=class extends xe{_getNamespace(){return"NullTypes"}},ht=class extends gt{};Ir(ht,"DbNull");var yt=class extends gt{};Ir(yt,"JsonNull");var bt=class extends gt{};Ir(bt,"AnyNull");var Wt={classes:{DbNull:ht,JsonNull:yt,AnyNull:bt},instances:{DbNull:new ht(Gt),JsonNull:new yt(Gt),AnyNull:new bt(Gt)}};function Ir(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}c();m();p();d();f();l();var ii=": ",Kt=class{constructor(t,r){this.name=t;this.value=r;this.hasError=!1}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+ii.length}write(t){let r=new ce(this.name);this.hasError&&r.underline().setColor(t.context.colors.red),t.write(r).write(ii).write(this.value)}};var Lr=class{constructor(t){this.errorMessages=[];this.arguments=t}write(t){t.write(this.arguments)}addErrorMessage(t){this.errorMessages.push(t)}renderAllMessages(t){return this.errorMessages.map(r=>r(t)).join(` -`)}};function Ye(e){return new Lr(oi(e))}function oi(e){let t=new He;for(let[r,n]of Object.entries(e)){let i=new Kt(r,si(n));t.addField(i)}return t}function si(e){if(typeof e=="string")return new W(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new W(String(e));if(typeof e=="bigint")return new W(`${e}n`);if(e===null)return new W("null");if(e===void 0)return new W("undefined");if(Qe(e))return new W(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return b.isBuffer(e)?new W(`Buffer.alloc(${e.byteLength})`):new W(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Bt(e)?e.toISOString():"Invalid Date";return new W(`new Date("${t}")`)}return e instanceof xe?new W(`Prisma.${e._getName()}`):ze(e)?new W(`prisma.${ni(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?Xs(e):typeof e=="object"?oi(e):new W(Object.prototype.toString.call(e))}function Xs(e){let t=new Ke;for(let r of e)t.addItem(si(r));return t}function Ht(e,t){let r=t==="pretty"?zn:Qt,n=e.renderAllMessages(r),i=new Ge(0,{colors:r}).write(e).toString();return{message:n,args:i}}function zt({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=Ye(e);for(let C of t)$t(C,a,s);let{message:u,args:g}=Ht(a,r),T=Je({message:u,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:g});throw new j(T,{clientVersion:o})}c();m();p();d();f();l();c();m();p();d();f();l();var me=class{constructor(){this._map=new Map}get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};c();m();p();d();f();l();function wt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}c();m();p();d();f();l();function pe(e){return e.replace(/^./,t=>t.toLowerCase())}c();m();p();d();f();l();function li(e,t,r){let n=pe(r);return!t.result||!(t.result.$allModels||t.result[n])?e:Zs({...e,...ai(t.name,e,t.result.$allModels),...ai(t.name,e,t.result[n])})}function Zs(e){let t=new me,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Be(e,n=>({...n,needs:r(n.name,new Set)}))}function ai(e,t,r){return r?Be(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:ea(t,o,i)})):{}}function ea(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function ui(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function ci(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var Yt=class{constructor(t,r){this.extension=t;this.previous=r;this.computedFieldsCache=new me;this.modelExtensionsCache=new me;this.queryCallbacksCache=new me;this.clientExtensions=wt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());this.batchCallbacks=wt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t})}getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>li(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=pe(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},Xe=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new Yt(t))}isEmpty(){return this.head===void 0}append(t){return new e(new Yt(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};c();m();p();d();f();l();c();m();p();d();f();l();var mi=Symbol(),Et=class{constructor(t){if(t!==mi)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?Xt:t}},Xt=new Et(mi);function de(e){return e instanceof Et}var ta={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},pi="explicitly `undefined` values are not allowed";function Zt({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=Xe.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:u,previewFeatures:g,globalOmit:T}){let C=new _r({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:u,previewFeatures:g,globalOmit:T});return{modelName:e,action:ta[t],query:xt(r,C)}}function xt({select:e,include:t,...r}={},n){let i;return n.isPreviewFeatureOn("omitApi")&&(i=r.omit,delete r.omit),{arguments:fi(r,n),selection:ra(e,t,i,n)}}function ra(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.isPreviewFeatureOn("omitApi")&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),sa(e,n)):na(n,t,r)}function na(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&ia(n,t,e),e.isPreviewFeatureOn("omitApi")&&oa(n,r,e),n}function ia(e,t,r){for(let[n,i]of Object.entries(t)){if(de(i))continue;let o=r.nestSelection(n);if(Dr(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=xt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=xt(i,o)}}function oa(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=ci(i,n);for(let[s,a]of Object.entries(o)){if(de(a))continue;Dr(a,r.nestSelection(s));let u=r.findField(s);n?.[s]&&!u||(e[s]=!a)}}function sa(e,t){let r={},n=t.getComputedFields(),i=ui(e,n);for(let[o,s]of Object.entries(i)){if(de(s))continue;let a=t.nestSelection(o);Dr(s,a);let u=t.findField(o);if(!(n?.[o]&&!u)){if(s===!1||s===void 0||de(s)){r[o]=!1;continue}if(s===!0){u?.kind==="object"?r[o]=xt({},a):r[o]=!0;continue}r[o]=xt(s,a)}}return r}function di(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(je(e)){if(Bt(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(ze(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return aa(e,t);if(ArrayBuffer.isView(e))return{$type:"Bytes",value:b.from(e).toString("base64")};if(la(e))return e.values;if(Qe(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof xe){if(e!==Wt.instances[e._getName()])throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(ua(e))return e.toJSON();if(typeof e=="object")return fi(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function fi(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);de(i)||(i!==void 0?r[n]=di(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:pi}))}return r}function aa(e,t){let r=[];for(let n=0;n({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[Ve(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:be(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};c();m();p();d();f();l();var Ze=class{constructor(t){this._engine=t}prometheus(t){return this._engine.metrics({format:"prometheus",...t})}json(t){return this._engine.metrics({format:"json",...t})}};c();m();p();d();f();l();function gi(e){return{models:Fr(e.models),enums:Fr(e.enums),types:Fr(e.types)}}function Fr(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}function hi(e,t){let r=wt(()=>ca(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function ca(e){throw new Error("Prisma.dmmf is not available when running in edge runtimes.")}function Nr(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}c();m();p();d();f();l();var Ur=new WeakMap,er="$$PrismaTypedSql",qr=class{constructor(t,r){Ur.set(this,{sql:t,values:r}),Object.defineProperty(this,er,{value:er})}get sql(){return Ur.get(this).sql}get values(){return Ur.get(this).values}};function yi(e){return(...t)=>new qr(e,t)}function bi(e){return e!=null&&e[er]===er}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();function Pt(e){return{ok:!1,error:e,map(){return Pt(e)},flatMap(){return Pt(e)}}}var Br=class{constructor(){this.registeredErrors=[]}consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}},$r=e=>{let t=new Br,r=fe(t,e.transactionContext.bind(e)),n={adapterName:e.adapterName,errorRegistry:t,queryRaw:fe(t,e.queryRaw.bind(e)),executeRaw:fe(t,e.executeRaw.bind(e)),provider:e.provider,transactionContext:async(...i)=>(await r(...i)).map(s=>ma(t,s))};return e.getConnectionInfo&&(n.getConnectionInfo=da(t,e.getConnectionInfo.bind(e))),n},ma=(e,t)=>{let r=fe(e,t.startTransaction.bind(t));return{adapterName:t.adapterName,provider:t.provider,queryRaw:fe(e,t.queryRaw.bind(t)),executeRaw:fe(e,t.executeRaw.bind(t)),startTransaction:async(...n)=>(await r(...n)).map(o=>pa(e,o))}},pa=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:fe(e,t.queryRaw.bind(t)),executeRaw:fe(e,t.executeRaw.bind(t)),commit:fe(e,t.commit.bind(t)),rollback:fe(e,t.rollback.bind(t))});function fe(e,t){return async(...r)=>{try{return await t(...r)}catch(n){let i=e.registerNewError(n);return Pt({kind:"GenericJs",id:i})}}}function da(e,t){return(...r)=>{try{return t(...r)}catch(n){let i=e.registerNewError(n);return Pt({kind:"GenericJs",id:i})}}}var Lo=Fe(wi());var ek=Fe(Ei());Dn();bn();Ln();c();m();p();d();f();l();var X=class e{constructor(t,r){if(t.length-1!==r.length)throw t.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${t.length} strings to have ${t.length-1} values`);let n=r.reduce((s,a)=>s+(a instanceof e?a.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=t[0];let i=0,o=0;for(;ie.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}c();m();p();d();f();l();c();m();p();d();f();l();var tr={enumerable:!0,configurable:!0,writable:!0};function rr(e){let t=new Set(e);return{getOwnPropertyDescriptor:()=>tr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var vi=Symbol.for("nodejs.util.inspect.custom");function ge(e,t){let r=ga(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Ti(Reflect.ownKeys(o),r),a=Ti(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let u=r.get(s);return u?u.getPropertyDescriptor?{...tr,...u?.getPropertyDescriptor(s)}:tr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)}});return i[vi]=function(){let o={...this};return delete o[vi],o},i}function ga(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Ti(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}c();m();p();d();f();l();function et(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}c();m();p();d();f();l();function nr(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}c();m();p();d();f();l();function Ci(e){if(e===void 0)return"";let t=Ye(e);return new Ge(0,{colors:Qt}).write(t).toString()}c();m();p();d();f();l();var ha="P2037";function ir({error:e,user_facing_error:t},r,n){return t.error_code?new J(ya(t,n),{code:t.error_code,clientVersion:r,meta:t.meta,batchRequestIdx:t.batch_request_idx}):new G(e,{clientVersion:r,batchRequestIdx:t.batch_request_idx})}function ya(e,t){let r=e.message;return(t==="postgresql"||t==="postgres"||t==="mysql")&&e.error_code===ha&&(r+=` -Prisma Accelerate has built-in connection pooling to prevent such errors: https://pris.ly/client/error-accelerate`),r}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Qr=class{getLocation(){return null}};function Te(e){return typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Qr}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Ri={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function tt(e={}){let t=wa(e);return Object.entries(t).reduce((n,[i,o])=>(Ri[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function wa(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function or(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function Ai(e,t){let r=or(e);return t({action:"aggregate",unpacker:r,argsMapper:tt})(e)}c();m();p();d();f();l();function Ea(e={}){let{select:t,...r}=e;return typeof t=="object"?tt({...r,_count:t}):tt({...r,_count:{_all:!0}})}function xa(e={}){return typeof e.select=="object"?t=>or(e)(t)._count:t=>or(e)(t)._count._all}function Si(e,t){return t({action:"count",unpacker:xa(e),argsMapper:Ea})(e)}c();m();p();d();f();l();function Pa(e={}){let t=tt(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function va(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function Oi(e,t){return t({action:"groupBy",unpacker:va(e),argsMapper:Pa})(e)}function ki(e,t,r){if(t==="aggregate")return n=>Ai(n,r);if(t==="count")return n=>Si(n,r);if(t==="groupBy")return n=>Oi(n,r)}c();m();p();d();f();l();function Mi(e,t){let r=t.fields.filter(i=>!i.relationName),n=Sr(r,i=>i.name);return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new ft(e,o,s.type,s.isList,s.kind==="enum")},...rr(Object.keys(n))})}c();m();p();d();f();l();c();m();p();d();f();l();var Ii=e=>Array.isArray(e)?e:e.split("."),Jr=(e,t)=>Ii(t).reduce((r,n)=>r&&r[n],e),Li=(e,t,r)=>Ii(t).reduceRight((n,i,o,s)=>Object.assign({},Jr(e,s.slice(0,o)),{[i]:n}),r);function Ta(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Ca(e,t,r){return t===void 0?e??{}:Li(t,r,e||!0)}function Gr(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((u,g)=>({...u,[g.name]:g}),{});return u=>{let g=Te(e._errorFormat),T=Ta(n,i),C=Ca(u,o,T),O=r({dataPath:T,callsite:g})(C),A=Ra(e,t);return new Proxy(O,{get(M,S){if(!A.includes(S))return M[S];let ne=[a[S].type,r,S],z=[T,C];return Gr(e,...ne,...z)},...rr([...A,...Object.getOwnPropertyNames(O)])})}}function Ra(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}c();m();p();d();f();l();function _i(e,t,r,n){return e===Me.ModelAction.findFirstOrThrow||e===Me.ModelAction.findUniqueOrThrow?Aa(t,r,n):n}function Aa(e,t,r){return async n=>{if("rejectOnNotFound"in n.args){let o=Je({originalMethod:n.clientMethod,callsite:n.callsite,message:"'rejectOnNotFound' option is not supported"});throw new j(o,{clientVersion:t})}return await r(n).catch(o=>{throw o instanceof J&&o.code==="P2025"?new we(`No ${e} found`,t):o})}}var Sa=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Oa=["aggregate","count","groupBy"];function Wr(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[ka(e,t),Ia(e,t),vt(r),H("name",()=>t),H("$name",()=>t),H("$parent",()=>e._appliedParent)];return ge({},n)}function ka(e,t){let r=pe(t),n=Object.keys(Me.ModelAction).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=u=>e._request(u);s=_i(o,t,e._clientVersion,s);let a=u=>g=>{let T=Te(e._errorFormat);return e._createPrismaPromise(C=>{let O={args:g,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:C,callsite:T};return s({...O,...u})})};return Sa.includes(o)?Gr(e,t,a):Ma(i)?ki(e,i,a):a({})}}}function Ma(e){return Oa.includes(e)}function Ia(e,t){return Ie(H("fields",()=>{let r=e._runtimeDataModel.models[t];return Mi(t,r)}))}c();m();p();d();f();l();function Di(e){return e.replace(/^./,t=>t.toUpperCase())}var Kr=Symbol();function Tt(e){let t=[La(e),H(Kr,()=>e),H("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(vt(r)),ge(e,t)}function La(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(pe),n=[...new Set(t.concat(r))];return Ie({getKeys(){return n},getPropertyValue(i){let o=Di(i);if(e._runtimeDataModel.models[o]!==void 0)return Wr(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Wr(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Fi(e){return e[Kr]?e[Kr]:e}function Ni(e){if(typeof e=="function")return e(this);if(e.client?.__AccelerateEngine){let r=e.client.__AccelerateEngine;this._originalClient._engine=new r(this._originalClient._accelerateEngineConfig)}let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$use:{value:void 0},$on:{value:void 0}});return Tt(t)}c();m();p();d();f();l();c();m();p();d();f();l();function Ui({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let u of Object.values(o)){if(n){if(n[u.name])continue;let g=u.needs.filter(T=>n[T]);g.length>0&&a.push(et(g))}else if(r){if(!r[u.name])continue;let g=u.needs.filter(T=>!r[T]);g.length>0&&a.push(et(g))}_a(e,u.needs)&&s.push(Da(u,ge(e,s)))}return s.length>0||a.length>0?ge(e,[...s,...a]):e}function _a(e,t){return t.every(r=>Ar(e,r))}function Da(e,t){return Ie(H(e.name,()=>e.compute(t)))}c();m();p();d();f();l();function sr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;sT.name===o);if(!u||u.kind!=="object"||!u.relationName)continue;let g=typeof s=="object"?s:{};t[o]=sr({visitor:i,result:t[o],args:g,modelName:u.type,runtimeDataModel:n})}}function Bi({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:sr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,u,g)=>{let T=pe(u);return Ui({result:a,modelName:T,select:g.select,omit:g.select?void 0:{...o?.[T],...g.omit},extensions:n})}})}c();m();p();d();f();l();c();m();p();d();f();l();l();function $i(e){if(e instanceof X)return Fa(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:$i(t.args??{}),__internalParams:t,query:(s,a=t)=>{let u=a.customDataProxyFetch;return a.customDataProxyFetch=Wi(o,u),a.args=s,ji(e,a,r,n+1)}})})}function Qi(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return ji(e,t,s)}function Ji(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?Gi(r,n,0,e):e(r)}}function Gi(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let u=a.customDataProxyFetch;return a.customDataProxyFetch=Wi(i,u),Gi(a,t,r+1,n)}})}var Vi=e=>e;function Wi(e=Vi,t=Vi){return r=>e(t(r))}c();m();p();d();f();l();var Ki=ee("prisma:client"),Hi={Vercel:"vercel","Netlify CI":"netlify"};function zi({postinstall:e,ciName:t,clientVersion:r}){if(Ki("checkPlatformCaching:postinstall",e),Ki("checkPlatformCaching:ciName",t),e===!0&&t&&t in Hi){let n=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process. - -Learn how: https://pris.ly/d/${Hi[t]}-build`;throw console.error(n),new L(n,r)}}c();m();p();d();f();l();function Yi(e,t){return e?e.datasources?e.datasources:e.datasourceUrl?{[t[0]]:{url:e.datasourceUrl}}:{}:{}}c();m();p();d();f();l();c();m();p();d();f();l();c();m();p();d();f();l();var Na="Cloudflare-Workers",Ua="node";function Xi(){return typeof Netlify=="object"?"netlify":typeof EdgeRuntime=="string"?"edge-light":globalThis.navigator?.userAgent===Na?"workerd":globalThis.Deno?"deno":globalThis.__lagon__?"lagon":globalThis.process?.release?.name===Ua?"node":globalThis.Bun?"bun":globalThis.fastly?"fastly":"unknown"}var qa={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Ce(){let e=Xi();return{id:e,prettyName:qa[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}c();m();p();d();f();l();c();m();p();d();f();l();function ar({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw Ce().id==="workerd"?new L(`error: Environment variable not found: ${s.fromEnvVar}. - -In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`. -To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,n):new L(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new L("error: Missing URL environment variable, value, or override.",n);return i}c();m();p();d();f();l();c();m();p();d();f();l();function Zi(e){if(e?.kind==="itx")return e.options.id}c();m();p();d();f();l();var Hr,eo={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new L(`The \`adapter\` option for \`PrismaClient\` is required in this context (${Ce().prettyName})`,t);if(n===void 0)throw new L("WASM engine was unexpectedly `undefined`",t);Hr===void 0&&(Hr=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new L("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},u=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(u.exports),o.QueryEngine})());let i=await Hr;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var Ba="P2036",he=ee("prisma:client:libraryEngine");function $a(e){return e.item_type==="query"&&"query"in e}function Va(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var VR=[...Cr,"native"],Rt=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??eo,this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(ja(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new J(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(he("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){}parseEngineResponse(t){if(!t)throw new G("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new G("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new w(this),{adapter:r}=this.config;r&&he("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:h.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new L(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",$a(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):(Va(r),this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path}))}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return he(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{he("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,he("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new L(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return he("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),he("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,he("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){he(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new G(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof L)throw s;s.code==="GenericFailure"&&s.message?.startsWith("PANIC:");let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new G(`${a.message} -${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){he("requestBatch");let i=nr(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),Zi(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new G(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:u}=s;if(Array.isArray(a))return a.map(g=>g.errors&&g.errors.length>0?this.loggerRustPanic??this.buildQueryError(g.errors[0]):{data:g,elapsed:0});throw u&&u.length===1?new Error(u[0].error):new Error(JSON.stringify(s))}buildQueryError(t){t.user_facing_error.is_panic;let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:ir(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Ba&&this.config.adapter){let r=t.meta?.id;qt(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return qt(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function ja(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}c();m();p();d();f();l();var At="Accelerate has not been setup correctly. Make sure your client is using `.$extends(withAccelerate())`. See https://pris.ly/d/accelerate-getting-started",lr=class{constructor(t){this.config=t;this.name="AccelerateEngine";this.resolveDatasourceUrl=this.config.accelerateUtils?.resolveDatasourceUrl;this.getBatchRequestPayload=this.config.accelerateUtils?.getBatchRequestPayload;this.prismaGraphQLToJSError=this.config.accelerateUtils?.prismaGraphQLToJSError;this.PrismaClientUnknownRequestError=this.config.accelerateUtils?.PrismaClientUnknownRequestError;this.PrismaClientInitializationError=this.config.accelerateUtils?.PrismaClientInitializationError;this.PrismaClientKnownRequestError=this.config.accelerateUtils?.PrismaClientKnownRequestError;this.debug=this.config.accelerateUtils?.debug;this.engineVersion=this.config.accelerateUtils?.engineVersion;this.clientVersion=this.config.accelerateUtils?.clientVersion}onBeforeExit(t){}async start(){}async stop(){}version(t){return"unknown"}transaction(t,r,n){throw new L(At,this.config.clientVersion)}metrics(t){throw new L(At,this.config.clientVersion)}request(t,r){throw new L(At,this.config.clientVersion)}requestBatch(t,r){throw new L(At,this.config.clientVersion)}applyPendingMigrations(){throw new L(At,this.config.clientVersion)}};function to({copyEngine:e=!0},t){let r;try{r=ar({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...h.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&ct("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=at(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",u=i==="binary";if(o&&s||s&&!1){let g;throw e?r?.startsWith("prisma://")?g=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:g=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:g=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new j(g.join(` -`),{clientVersion:t.clientVersion})}if(s)return new Rt(t);if(o)return new lr(t);{let g=[`PrismaClient failed to initialize because it wasn't configured to run in this environment (${Ce().prettyName}).`,"In order to run Prisma Client in an edge runtime, you will need to configure one of the following options:","- Enable Driver Adapters: https://pris.ly/d/driver-adapters","- Enable Accelerate: https://pris.ly/d/accelerate"];throw new j(g.join(` -`),{clientVersion:t.clientVersion})}throw new j("Invalid client engine type, please use `library` or `binary`",{clientVersion:t.clientVersion})}c();m();p();d();f();l();function ur({generator:e}){return e?.previewFeatures??[]}c();m();p();d();f();l();var ro=e=>({command:e});c();m();p();d();f();l();c();m();p();d();f();l();var no=e=>e.strings.reduce((t,r,n)=>`${t}@P${n}${r}`);c();m();p();d();f();l();l();function rt(e){try{return io(e,"fast")}catch{return io(e,"slow")}}function io(e,t){return JSON.stringify(e.map(r=>so(r,t)))}function so(e,t){return Array.isArray(e)?e.map(r=>so(r,t)):typeof e=="bigint"?{prisma__type:"bigint",prisma__value:e.toString()}:je(e)?{prisma__type:"date",prisma__value:e.toJSON()}:ue.isDecimal(e)?{prisma__type:"decimal",prisma__value:e.toJSON()}:b.isBuffer(e)?{prisma__type:"bytes",prisma__value:e.toString("base64")}:Qa(e)||ArrayBuffer.isView(e)?{prisma__type:"bytes",prisma__value:b.from(e).toString("base64")}:typeof e=="object"&&t==="slow"?ao(e):e}function Qa(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function ao(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map(oo);let t={};for(let r of Object.keys(e))t[r]=oo(e[r]);return t}function oo(e){return typeof e=="bigint"?e.toString():ao(e)}c();m();p();d();f();l();var Ja=["$connect","$disconnect","$on","$transaction","$use","$extends"],lo=Ja;var Ga=/^(\s*alter\s)/i,uo=ee("prisma:client");function zr(e,t,r,n){if(!(e!=="postgresql"&&e!=="cockroachdb")&&r.length>0&&Ga.exec(t))throw new Error(`Running ALTER using ${n} is not supported -Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization. - -Example: - await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`) - -More Information: https://pris.ly/d/execute-raw -`)}var Yr=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(bi(r))n=r.sql,i={values:rt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:rt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:rt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:rt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=no(r),i={values:rt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?uo(`prisma.${e}(${n}, ${i.values})`):uo(`prisma.${e}(${n})`),{query:n,parameters:i}},co={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new X(t,r)}},mo={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};c();m();p();d();f();l();function Xr(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=po(r(o)):po(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function po(e){return typeof e.then=="function"?e:Promise.resolve(e)}c();m();p();d();f();l();var fo={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},Zr=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??fo}};function go(e){return e.includes("tracing")?new Zr:fo}c();m();p();d();f();l();function ho(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}c();m();p();d();f();l();function yo(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}c();m();p();d();f();l();var cr=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};c();m();p();d();f();l();var Eo=Fe(Vn());c();m();p();d();f();l();function mr(e){return typeof e.batchRequestIdx=="number"}c();m();p();d();f();l();function bo(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(en(e.query.arguments)),t.push(en(e.query.selection)),t.join("")}function en(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${en(n)})`:r}).join(" ")})`}c();m();p();d();f();l();var Wa={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateOne:!0,upsertOne:!0};function tn(e){return Wa[e]}c();m();p();d();f();l();var pr=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,h.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i{for(let i=0;iLe("bigint",r));case"bytes-array":return t.map(r=>Le("bytes",r));case"decimal-array":return t.map(r=>Le("decimal",r));case"datetime-array":return t.map(r=>Le("datetime",r));case"date-array":return t.map(r=>Le("date",r));case"time-array":return t.map(r=>Le("time",r));default:return t}}function wo(e){let t=[],r=Ka(e);for(let n=0;n{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(C=>C.protocolQuery),u=this.client._tracingHelper.getTraceParent(s),g=n.some(C=>tn(C.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:u,transaction:za(o),containsWrite:g,customDataProxyFetch:i})).map((C,O)=>{if(C instanceof Error)return C;try{return this.mapQueryEngineResult(n[O],C)}catch(A){return A}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?xo(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:tn(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:bo(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return h.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Ha(t),Ya(t,i)||t instanceof we)throw t;if(t instanceof J&&Xa(t)){let g=Po(t.meta);zt({args:o,errors:[g],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let u=t.message;if(n&&(u=Je({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:u})),u=this.sanitizeMessage(u),t.code){let g=s?{modelName:s,...t.meta}:t.meta;throw new J(u,{code:t.code,clientVersion:this.client._clientVersion,meta:g,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new Ee(u,this.client._clientVersion);if(t instanceof G)throw new G(u,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof L)throw new L(u,this.client._clientVersion);if(t instanceof Ee)throw new Ee(u,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Eo.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(g=>g!=="select"&&g!=="include"),a=Jr(o,s),u=i==="queryRaw"?wo(a):$e(a);return n?n(u):u}get[Symbol.toStringTag](){return"RequestHandler"}};function za(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:xo(e)};be(e,"Unknown transaction kind")}}function xo(e){return{id:e.id,payload:e.payload}}function Ya(e,t){return mr(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Xa(e){return e.code==="P2009"||e.code==="P2012"}function Po(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Po)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}c();m();p();d();f();l();var vo="5.22.0";var To=vo;c();m();p();d();f();l();var Oo=Fe(kr());c();m();p();d();f();l();var _=class extends Error{constructor(t){super(t+` -Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};K(_,"PrismaClientConstructorValidationError");var Co=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Ro=["pretty","colorless","minimal"],Ao=["info","query","warn","error"],el={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new _(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=nt(r,t)||` Available datasources: ${t.join(", ")}`;throw new _(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new _(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new _(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new _(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor. -It should have this form: { url: "CONNECTION_STRING" }`)}}}},adapter:(e,t)=>{if(e===null)return;if(e===void 0)throw new _('"adapter" property must not be undefined, use null to conditionally disable driver adapters.');if(!ur(t).includes("driverAdapters"))throw new _('"adapter" property can only be provided to PrismaClient constructor when "driverAdapters" preview feature is enabled.');if(at()==="binary")throw new _('Cannot use a driver adapter with the "binary" Query Engine. Please use the "library" Query Engine.')},datasourceUrl:e=>{if(typeof e<"u"&&typeof e!="string")throw new _(`Invalid value ${JSON.stringify(e)} for "datasourceUrl" provided to PrismaClient constructor. -Expected string or undefined.`)},errorFormat:e=>{if(e){if(typeof e!="string")throw new _(`Invalid value ${JSON.stringify(e)} for "errorFormat" provided to PrismaClient constructor.`);if(!Ro.includes(e)){let t=nt(e,Ro);throw new _(`Invalid errorFormat ${e} provided to PrismaClient constructor.${t}`)}}},log:e=>{if(!e)return;if(!Array.isArray(e))throw new _(`Invalid value ${JSON.stringify(e)} for "log" provided to PrismaClient constructor.`);function t(r){if(typeof r=="string"&&!Ao.includes(r)){let n=nt(r,Ao);throw new _(`Invalid log level "${r}" provided to PrismaClient constructor.${n}`)}}for(let r of e){t(r);let n={level:t,emit:i=>{let o=["stdout","event"];if(!o.includes(i)){let s=nt(i,o);throw new _(`Invalid value ${JSON.stringify(i)} for "emit" in logLevel provided to PrismaClient constructor.${s}`)}}};if(r&&typeof r=="object")for(let[i,o]of Object.entries(r))if(n[i])n[i](o);else throw new _(`Invalid property ${i} for "log" provided to PrismaClient constructor`)}},transactionOptions:e=>{if(!e)return;let t=e.maxWait;if(t!=null&&t<=0)throw new _(`Invalid value ${t} for maxWait in "transactionOptions" provided to PrismaClient constructor. maxWait needs to be greater than 0`);let r=e.timeout;if(r!=null&&r<=0)throw new _(`Invalid value ${r} for timeout in "transactionOptions" provided to PrismaClient constructor. timeout needs to be greater than 0`)},omit:(e,t)=>{if(typeof e!="object")throw new _('"omit" option is expected to be an object.');if(e===null)throw new _('"omit" option can not be `null`');let r=[];for(let[n,i]of Object.entries(e)){let o=rl(n,t.runtimeDataModel);if(!o){r.push({kind:"UnknownModel",modelKey:n});continue}for(let[s,a]of Object.entries(i)){let u=o.fields.find(g=>g.name===s);if(!u){r.push({kind:"UnknownField",modelKey:n,fieldName:s});continue}if(u.relationName){r.push({kind:"RelationInOmit",modelKey:n,fieldName:s});continue}typeof a!="boolean"&&r.push({kind:"InvalidFieldValue",modelKey:n,fieldName:s})}}if(r.length>0)throw new _(nl(e,r))},__internal:e=>{if(!e)return;let t=["debug","engine","configOverride"];if(typeof e!="object")throw new _(`Invalid value ${JSON.stringify(e)} for "__internal" to PrismaClient constructor`);for(let[r]of Object.entries(e))if(!t.includes(r)){let n=nt(r,t);throw new _(`Invalid property ${JSON.stringify(r)} for "__internal" provided to PrismaClient constructor.${n}`)}}};function ko(e,t){for(let[r,n]of Object.entries(e)){if(!Co.includes(r)){let i=nt(r,Co);throw new _(`Unknown property ${r} provided to PrismaClient constructor.${i}`)}el[r](n,t)}if(e.datasourceUrl&&e.datasources)throw new _('Can not use "datasourceUrl" and "datasources" options at the same time. Pick one of them')}function nt(e,t){if(t.length===0||typeof e!="string")return"";let r=tl(e,t);return r?` Did you mean "${r}"?`:""}function tl(e,t){if(t.length===0)return null;let r=t.map(i=>({value:i,distance:(0,Oo.default)(e,i)}));r.sort((i,o)=>i.distanceVe(n)===t);if(r)return e[r]}function nl(e,t){let r=Ye(e);for(let o of t)switch(o.kind){case"UnknownModel":r.arguments.getField(o.modelKey)?.markAsError(),r.addErrorMessage(()=>`Unknown model name: ${o.modelKey}.`);break;case"UnknownField":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>`Model "${o.modelKey}" does not have a field named "${o.fieldName}".`);break;case"RelationInOmit":r.arguments.getDeepField([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>'Relations are already excluded by default and can not be specified in "omit".');break;case"InvalidFieldValue":r.arguments.getDeepFieldValue([o.modelKey,o.fieldName])?.markAsError(),r.addErrorMessage(()=>"Omit field option value must be a boolean.");break}let{message:n,args:i}=Ht(r,"colorless");return`Error validating "omit" option: - -${i} - -${n}`}c();m();p();d();f();l();function Mo(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},u=g=>{o||(o=!0,r(g))};for(let g=0;g{n[g]=T,a()},T=>{if(!mr(T)){u(T);return}T.batchRequestIdx===g?u(T):(i||(i=T),a())})})}var Re=ee("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var il={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},ol=Symbol.for("prisma.client.transaction.id"),sl={id:0,nextId(){return++this.id}};function _o(e){class t{constructor(n){this._originalClient=this;this._middlewares=new cr;this._createPrismaPromise=Xr();this.$extends=Ni;e=n?.__internal?.configOverride?.(e)??e,zi(e),n&&ko(n,e);let i=new Ut().on("error",()=>{});this._extensions=Xe.empty(),this._previewFeatures=ur(e),this._clientVersion=e.clientVersion??To,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=go(this._previewFeatures);let o={rootEnvPath:e.relativeEnvPaths.rootEnvPath&&st.resolve(e.dirname,e.relativeEnvPaths.rootEnvPath),schemaEnvPath:e.relativeEnvPaths.schemaEnvPath&&st.resolve(e.dirname,e.relativeEnvPaths.schemaEnvPath)},s;if(n?.adapter){s=$r(n.adapter);let u=e.activeProvider==="postgresql"?"postgres":e.activeProvider;if(s.provider!==u)throw new L(`The Driver Adapter \`${s.adapterName}\`, based on \`${s.provider}\`, is not compatible with the provider \`${u}\` specified in the Prisma schema.`,this._clientVersion);if(n.datasources||n.datasourceUrl!==void 0)throw new L("Custom datasource configuration is not compatible with Prisma Driver Adapters. Please define the database connection string directly in the Driver Adapter configuration.",this._clientVersion)}let a=e.injectableEdgeEnv?.();try{let u=n??{},g=u.__internal??{},T=g.debug===!0;T&&ee.enable("prisma:client");let C=st.resolve(e.dirname,e.relativePath);yn.existsSync(C)||(C=e.dirname),Re("dirname",e.dirname),Re("relativePath",e.relativePath),Re("cwd",C);let O=g.engine||{};if(u.errorFormat?this._errorFormat=u.errorFormat:h.env.NODE_ENV==="production"?this._errorFormat="minimal":h.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={cwd:C,dirname:e.dirname,enableDebugLogs:T,allowTriggerPanic:O.allowTriggerPanic,datamodelPath:st.join(e.dirname,e.filename??"schema.prisma"),prismaPath:O.binaryPath??void 0,engineEndpoint:O.endpoint,generator:e.generator,showColors:this._errorFormat==="pretty",logLevel:u.log&&yo(u.log),logQueries:u.log&&!!(typeof u.log=="string"?u.log==="query":u.log.find(A=>typeof A=="string"?A==="query":A.level==="query")),env:a?.parsed??{},flags:[],engineWasm:e.engineWasm,clientVersion:e.clientVersion,engineVersion:e.engineVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,overrideDatasources:Yi(u,e.datasourceNames),inlineDatasources:e.inlineDatasources,inlineSchemaHash:e.inlineSchemaHash,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:u.transactionOptions?.maxWait??2e3,timeout:u.transactionOptions?.timeout??5e3,isolationLevel:u.transactionOptions?.isolationLevel},logEmitter:i,isBundled:e.isBundled,adapter:s},this._accelerateEngineConfig={...this._engineConfig,accelerateUtils:{resolveDatasourceUrl:ar,getBatchRequestPayload:nr,prismaGraphQLToJSError:ir,PrismaClientUnknownRequestError:G,PrismaClientInitializationError:L,PrismaClientKnownRequestError:J,debug:ee("prisma:client:accelerateEngine"),engineVersion:Lo.version,clientVersion:e.clientVersion}},Re("clientVersion",e.clientVersion),this._engine=to(e,this._engineConfig),this._requestHandler=new dr(this,i),u.log)for(let A of u.log){let M=typeof A=="string"?A:A.emit==="stdout"?A.level:null;M&&this.$on(M,S=>{ut.log(`${ut.tags[M]??""}`,S.message||S.query)})}this._metrics=new Ze(this._engine)}catch(u){throw u.clientVersion=this._clientVersion,u}return this._appliedParent=Tt(this)}get[Symbol.toStringTag](){return"PrismaClient"}$use(n){this._middlewares.use(n)}$on(n,i){n==="beforeExit"?this._engine.onBeforeExit(i):n&&this._engineConfig.logEmitter.on(n,i)}$connect(){try{return this._engine.start()}catch(n){throw n.clientVersion=this._clientVersion,n}}async $disconnect(){try{await this._engine.stop()}catch(n){throw n.clientVersion=this._clientVersion,n}finally{Mn()}}$executeRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"executeRaw",args:o,transaction:n,clientMethod:i,argsMapper:Yr({clientMethod:i,activeProvider:a}),callsite:Te(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$executeRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0){let[s,a]=Io(n,i);return zr(this._activeProvider,s.text,s.values,Array.isArray(n)?"prisma.$executeRaw``":"prisma.$executeRaw(sql``)"),this.$executeRawInternal(o,"$executeRaw",s,a)}throw new j("`$executeRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw\n",{clientVersion:this._clientVersion})})}$executeRawUnsafe(n,...i){return this._createPrismaPromise(o=>(zr(this._activeProvider,n,i,"prisma.$executeRawUnsafe(, [...values])"),this.$executeRawInternal(o,"$executeRawUnsafe",[n,...i])))}$runCommandRaw(n){if(e.activeProvider!=="mongodb")throw new j(`The ${e.activeProvider} provider does not support $runCommandRaw. Use the mongodb provider.`,{clientVersion:this._clientVersion});return this._createPrismaPromise(i=>this._request({args:n,clientMethod:"$runCommandRaw",dataPath:[],action:"runCommandRaw",argsMapper:ro,callsite:Te(this._errorFormat),transaction:i}))}async $queryRawInternal(n,i,o,s){let a=this._activeProvider;return this._request({action:"queryRaw",args:o,transaction:n,clientMethod:i,argsMapper:Yr({clientMethod:i,activeProvider:a}),callsite:Te(this._errorFormat),dataPath:[],middlewareArgsMapper:s})}$queryRaw(n,...i){return this._createPrismaPromise(o=>{if(n.raw!==void 0||n.sql!==void 0)return this.$queryRawInternal(o,"$queryRaw",...Io(n,i));throw new j("`$queryRaw` is a tag function, please use it like the following:\n```\nconst result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`\n```\n\nOr read our docs at https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#queryraw\n",{clientVersion:this._clientVersion})})}$queryRawTyped(n){return this._createPrismaPromise(i=>{if(!this._hasPreviewFlag("typedSql"))throw new j("`typedSql` preview feature must be enabled in order to access $queryRawTyped API",{clientVersion:this._clientVersion});return this.$queryRawInternal(i,"$queryRawTyped",n)})}$queryRawUnsafe(n,...i){return this._createPrismaPromise(o=>this.$queryRawInternal(o,"$queryRawUnsafe",[n,...i]))}_transactionWithArray({promises:n,options:i}){let o=sl.nextId(),s=ho(n.length),a=n.map((u,g)=>{if(u?.[Symbol.toStringTag]!=="PrismaPromise")throw new Error("All elements of the array need to be Prisma Client promises. Hint: Please make sure you are not awaiting the Prisma client calls you intended to pass in the $transaction function.");let T=i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel,C={kind:"batch",id:o,index:g,isolationLevel:T,lock:s};return u.requestTransaction?.(C)??u});return Mo(a)}async _transactionWithCallback({callback:n,options:i}){let o={traceparent:this._tracingHelper.getTraceParent()},s={maxWait:i?.maxWait??this._engineConfig.transactionOptions.maxWait,timeout:i?.timeout??this._engineConfig.transactionOptions.timeout,isolationLevel:i?.isolationLevel??this._engineConfig.transactionOptions.isolationLevel},a=await this._engine.transaction("start",o,s),u;try{let g={kind:"itx",...a};u=await n(this._createItxClient(g)),await this._engine.transaction("commit",o,a)}catch(g){throw await this._engine.transaction("rollback",o,a).catch(()=>{}),g}return u}_createItxClient(n){return Tt(ge(Fi(this),[H("_appliedParent",()=>this._appliedParent._createItxClient(n)),H("_createPrismaPromise",()=>Xr(n)),H(ol,()=>n.id),et(lo)]))}$transaction(n,i){let o;typeof n=="function"?this._engineConfig.adapter?.adapterName==="@prisma/adapter-d1"?o=()=>{throw new Error("Cloudflare D1 does not support interactive transactions. We recommend you to refactor your queries with that limitation in mind, and use batch transactions with `prisma.$transactions([])` where applicable.")}:o=()=>this._transactionWithCallback({callback:n,options:i}):o=()=>this._transactionWithArray({promises:n,options:i});let s={name:"transaction",attributes:{method:"$transaction"}};return this._tracingHelper.runInChildSpan(s,o)}_request(n){n.otelParentCtx=this._tracingHelper.getActiveContext();let i=n.middlewareArgsMapper??il,o={args:i.requestArgsToMiddlewareArgs(n.args),dataPath:n.dataPath,runInTransaction:!!n.transaction,action:n.action,model:n.model},s={middleware:{name:"middleware",middleware:!0,attributes:{method:"$use"},active:!1},operation:{name:"operation",attributes:{method:o.action,model:o.model,name:o.model?`${o.model}.${o.action}`:o.action}}},a=-1,u=async g=>{let T=this._middlewares.get(++a);if(T)return this._tracingHelper.runInChildSpan(s.middleware,I=>T(g,ne=>(I?.end(),u(ne))));let{runInTransaction:C,args:O,...A}=g,M={...n,...A};O&&(M.args=i.middlewareArgsToRequestArgs(O)),n.transaction!==void 0&&C===!1&&delete M.transaction;let S=await Qi(this,M);return M.model?Bi({result:S,modelName:M.model,args:M.args,extensions:this._extensions,runtimeDataModel:this._runtimeDataModel,globalOmit:this._globalOmit}):S};return this._tracingHelper.runInChildSpan(s.operation,()=>u(o))}async _executeRequest({args:n,clientMethod:i,dataPath:o,callsite:s,action:a,model:u,argsMapper:g,transaction:T,unpacker:C,otelParentCtx:O,customDataProxyFetch:A}){try{n=g?g(n):n;let M={name:"serialize"},S=this._tracingHelper.runInChildSpan(M,()=>Zt({modelName:u,runtimeDataModel:this._runtimeDataModel,action:a,args:n,clientMethod:i,callsite:s,extensions:this._extensions,errorFormat:this._errorFormat,clientVersion:this._clientVersion,previewFeatures:this._previewFeatures,globalOmit:this._globalOmit}));return ee.enabled("prisma:client")&&(Re("Prisma Client call:"),Re(`prisma.${i}(${Ci(n)})`),Re("Generated request:"),Re(JSON.stringify(S,null,2)+` -`)),T?.kind==="batch"&&await T.lock,this._requestHandler.request({protocolQuery:S,modelName:u,action:a,clientMethod:i,dataPath:o,callsite:s,args:n,extensions:this._extensions,transaction:T,unpacker:C,otelParentCtx:O,otelChildCtx:this._tracingHelper.getActiveContext(),globalOmit:this._globalOmit,customDataProxyFetch:A})}catch(M){throw M.clientVersion=this._clientVersion,M}}get $metrics(){if(!this._hasPreviewFlag("metrics"))throw new j("`metrics` preview feature must be enabled in order to access metrics API",{clientVersion:this._clientVersion});return this._metrics}_hasPreviewFlag(n){return!!this._engineConfig.previewFeatures?.includes(n)}$applyPendingMigrations(){return this._engine.applyPendingMigrations()}}return t}function Io(e,t){return al(e)?[new X(e,t),co]:[e,mo]}function al(e){return Array.isArray(e)&&Array.isArray(e.raw)}c();m();p();d();f();l();var ll=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Do(e){return new Proxy(e,{get(t,r){if(r in t)return t[r];if(!ll.has(r))throw new TypeError(`Invalid enum value: ${String(r)}`)}})}c();m();p();d();f();l();l();0&&(module.exports={Debug,Decimal,Extensions,MetricsClient,NotFoundError,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Public,Sql,defineDmmfProperty,deserializeJsonResponse,dmmfToRuntimeDataModel,empty,getPrismaClient,getRuntime,join,makeStrictEnum,makeTypedQueryFactory,objectEnumValues,raw,serializeJsonQuery,skip,sqltag,warnEnvConflicts,warnOnce}); -//# sourceMappingURL=wasm.js.map diff --git a/mcp-server/node_modules/.prisma/client/schema.prisma b/mcp-server/node_modules/.prisma/client/schema.prisma deleted file mode 100644 index d800bc8..0000000 --- a/mcp-server/node_modules/.prisma/client/schema.prisma +++ /dev/null @@ -1,176 +0,0 @@ -generator client { - provider = "prisma-client-js" - output = "../node_modules/.prisma/client" -} - -datasource db { - provider = "sqlite" - url = "file:../../keep-notes/prisma/dev.db" -} - -model Note { - id String @id @default(cuid()) - title String? - content String - color String @default("default") - isPinned Boolean @default(false) - isArchived Boolean @default(false) - type String @default("text") - checkItems String? - labels String? - images String? - links String? - reminder DateTime? - isReminderDone Boolean @default(false) - reminderRecurrence String? - reminderLocation String? - isMarkdown Boolean @default(false) - size String @default("small") - embedding String? - sharedWith String? - userId String? - order Int @default(0) - notebookId String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - autoGenerated Boolean? - aiProvider String? - aiConfidence Int? - language String? - languageConfidence Float? - lastAiAnalysis DateTime? -} - -model Notebook { - id String @id @default(cuid()) - name String - icon String? - color String? - order Int - userId String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt -} - -model Label { - id String @id @default(cuid()) - name String - color String @default("gray") - notebookId String? - userId String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt -} - -model User { - id String @id @default(cuid()) - name String? - email String @unique - emailVerified DateTime? - password String? - role String @default("USER") - image String? - theme String @default("light") - resetToken String? @unique - resetTokenExpiry DateTime? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt -} - -model Account { - userId String - type String - provider String - providerAccountId String - refresh_token String? - access_token String? - expires_at Int? - token_type String? - scope String? - id_token String? - session_state String? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - @@id([provider, providerAccountId]) -} - -model Session { - sessionToken String @unique - userId String - expires DateTime - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt -} - -model VerificationToken { - identifier String - token String - expires DateTime - - @@id([identifier, token]) -} - -model NoteShare { - id String @id @default(cuid()) - noteId String - userId String - sharedBy String - status String @default("pending") - permission String @default("view") - notifiedAt DateTime? - respondedAt DateTime? - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - - @@unique([noteId, userId]) -} - -model SystemConfig { - key String @id - value String -} - -model AiFeedback { - id String @id @default(cuid()) - noteId String - userId String? - feedbackType String - feature String - originalContent String - correctedContent String? - metadata String? - createdAt DateTime @default(now()) -} - -model MemoryEchoInsight { - id String @id @default(cuid()) - userId String? - note1Id String - note2Id String - similarityScore Float - insight String - insightDate DateTime @default(now()) - viewed Boolean @default(false) - feedback String? - dismissed Boolean @default(false) - - @@unique([userId, insightDate]) -} - -model UserAISettings { - userId String @id - titleSuggestions Boolean @default(true) - semanticSearch Boolean @default(true) - paragraphRefactor Boolean @default(true) - memoryEcho Boolean @default(true) - memoryEchoFrequency String @default("daily") - aiProvider String @default("auto") - preferredLanguage String @default("auto") - fontSize String @default("medium") - demoMode Boolean @default(false) - showRecentNotes Boolean @default(false) - emailNotifications Boolean @default(false) - desktopNotifications Boolean @default(false) - anonymousAnalytics Boolean @default(false) -} diff --git a/mcp-server/node_modules/.prisma/client/wasm.d.ts b/mcp-server/node_modules/.prisma/client/wasm.d.ts deleted file mode 100644 index bc20c6c..0000000 --- a/mcp-server/node_modules/.prisma/client/wasm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./index" \ No newline at end of file diff --git a/mcp-server/node_modules/.prisma/client/wasm.js b/mcp-server/node_modules/.prisma/client/wasm.js deleted file mode 100644 index b2f36bf..0000000 --- a/mcp-server/node_modules/.prisma/client/wasm.js +++ /dev/null @@ -1,336 +0,0 @@ - -Object.defineProperty(exports, "__esModule", { value: true }); - -const { - Decimal, - objectEnumValues, - makeStrictEnum, - Public, - getRuntime, - skip -} = require('./runtime/index-browser.js') - - -const Prisma = {} - -exports.Prisma = Prisma -exports.$Enums = {} - -/** - * Prisma Client JS version: 5.22.0 - * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 - */ -Prisma.prismaVersion = { - client: "5.22.0", - engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" -} - -Prisma.PrismaClientKnownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)}; -Prisma.PrismaClientUnknownRequestError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientRustPanicError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientInitializationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.PrismaClientValidationError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.NotFoundError = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.Decimal = Decimal - -/** - * Re-export of sql-template-tag - */ -Prisma.sql = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.empty = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.join = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.raw = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.validator = Public.validator - -/** -* Extensions -*/ -Prisma.getExtensionContext = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} -Prisma.defineExtension = () => { - const runtimeName = getRuntime().prettyName; - throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). -In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, -)} - -/** - * Shorthand utilities for JSON filtering - */ -Prisma.DbNull = objectEnumValues.instances.DbNull -Prisma.JsonNull = objectEnumValues.instances.JsonNull -Prisma.AnyNull = objectEnumValues.instances.AnyNull - -Prisma.NullTypes = { - DbNull: objectEnumValues.classes.DbNull, - JsonNull: objectEnumValues.classes.JsonNull, - AnyNull: objectEnumValues.classes.AnyNull -} - - - -/** - * Enums - */ - -exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ - Serializable: 'Serializable' -}); - -exports.Prisma.NoteScalarFieldEnum = { - id: 'id', - title: 'title', - content: 'content', - color: 'color', - isPinned: 'isPinned', - isArchived: 'isArchived', - type: 'type', - checkItems: 'checkItems', - labels: 'labels', - images: 'images', - links: 'links', - reminder: 'reminder', - isReminderDone: 'isReminderDone', - reminderRecurrence: 'reminderRecurrence', - reminderLocation: 'reminderLocation', - isMarkdown: 'isMarkdown', - size: 'size', - embedding: 'embedding', - sharedWith: 'sharedWith', - userId: 'userId', - order: 'order', - notebookId: 'notebookId', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - autoGenerated: 'autoGenerated', - aiProvider: 'aiProvider', - aiConfidence: 'aiConfidence', - language: 'language', - languageConfidence: 'languageConfidence', - lastAiAnalysis: 'lastAiAnalysis' -}; - -exports.Prisma.NotebookScalarFieldEnum = { - id: 'id', - name: 'name', - icon: 'icon', - color: 'color', - order: 'order', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.LabelScalarFieldEnum = { - id: 'id', - name: 'name', - color: 'color', - notebookId: 'notebookId', - userId: 'userId', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - emailVerified: 'emailVerified', - password: 'password', - role: 'role', - image: 'image', - theme: 'theme', - resetToken: 'resetToken', - resetTokenExpiry: 'resetTokenExpiry', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.AccountScalarFieldEnum = { - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SessionScalarFieldEnum = { - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -}; - -exports.Prisma.NoteShareScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - sharedBy: 'sharedBy', - status: 'status', - permission: 'permission', - notifiedAt: 'notifiedAt', - respondedAt: 'respondedAt', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -}; - -exports.Prisma.SystemConfigScalarFieldEnum = { - key: 'key', - value: 'value' -}; - -exports.Prisma.AiFeedbackScalarFieldEnum = { - id: 'id', - noteId: 'noteId', - userId: 'userId', - feedbackType: 'feedbackType', - feature: 'feature', - originalContent: 'originalContent', - correctedContent: 'correctedContent', - metadata: 'metadata', - createdAt: 'createdAt' -}; - -exports.Prisma.MemoryEchoInsightScalarFieldEnum = { - id: 'id', - userId: 'userId', - note1Id: 'note1Id', - note2Id: 'note2Id', - similarityScore: 'similarityScore', - insight: 'insight', - insightDate: 'insightDate', - viewed: 'viewed', - feedback: 'feedback', - dismissed: 'dismissed' -}; - -exports.Prisma.UserAISettingsScalarFieldEnum = { - userId: 'userId', - titleSuggestions: 'titleSuggestions', - semanticSearch: 'semanticSearch', - paragraphRefactor: 'paragraphRefactor', - memoryEcho: 'memoryEcho', - memoryEchoFrequency: 'memoryEchoFrequency', - aiProvider: 'aiProvider', - preferredLanguage: 'preferredLanguage', - fontSize: 'fontSize', - demoMode: 'demoMode', - showRecentNotes: 'showRecentNotes', - emailNotifications: 'emailNotifications', - desktopNotifications: 'desktopNotifications', - anonymousAnalytics: 'anonymousAnalytics' -}; - -exports.Prisma.SortOrder = { - asc: 'asc', - desc: 'desc' -}; - -exports.Prisma.NullsOrder = { - first: 'first', - last: 'last' -}; - - -exports.Prisma.ModelName = { - Note: 'Note', - Notebook: 'Notebook', - Label: 'Label', - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - NoteShare: 'NoteShare', - SystemConfig: 'SystemConfig', - AiFeedback: 'AiFeedback', - MemoryEchoInsight: 'MemoryEchoInsight', - UserAISettings: 'UserAISettings' -}; - -/** - * This is a stub Prisma Client that will error at runtime if called. - */ -class PrismaClient { - constructor() { - return new Proxy(this, { - get(target, prop) { - let message - const runtime = getRuntime() - if (runtime.isEdge) { - message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: -- Use Prisma Accelerate: https://pris.ly/d/accelerate -- Use Driver Adapters: https://pris.ly/d/driver-adapters -`; - } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' - } - - message += ` -If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` - - throw new Error(message) - } - }) - } -} - -exports.PrismaClient = PrismaClient - -Object.assign(exports, Prisma) diff --git a/mcp-server/node_modules/@hono/node-server/README.md b/mcp-server/node_modules/@hono/node-server/README.md deleted file mode 100644 index fd046c3..0000000 --- a/mcp-server/node_modules/@hono/node-server/README.md +++ /dev/null @@ -1,340 +0,0 @@ -# Node.js Adapter for Hono - -This adapter `@hono/node-server` allows you to run your Hono application on Node.js. -Initially, Hono wasn't designed for Node.js, but with this adapter, you can now use Hono on Node.js. -It utilizes web standard APIs implemented in Node.js version 18 or higher. - -## Benchmarks - -Hono is 3.5 times faster than Express. - -Express: - -```txt -$ bombardier -d 10s --fasthttp http://localhost:3000/ - -Statistics Avg Stdev Max - Reqs/sec 16438.94 1603.39 19155.47 - Latency 7.60ms 7.51ms 559.89ms - HTTP codes: - 1xx - 0, 2xx - 164494, 3xx - 0, 4xx - 0, 5xx - 0 - others - 0 - Throughput: 4.55MB/s -``` - -Hono + `@hono/node-server`: - -```txt -$ bombardier -d 10s --fasthttp http://localhost:3000/ - -Statistics Avg Stdev Max - Reqs/sec 58296.56 5512.74 74403.56 - Latency 2.14ms 1.46ms 190.92ms - HTTP codes: - 1xx - 0, 2xx - 583059, 3xx - 0, 4xx - 0, 5xx - 0 - others - 0 - Throughput: 12.56MB/s -``` - -## Requirements - -It works on Node.js versions greater than 18.x. The specific required Node.js versions are as follows: - -- 18.x => 18.14.1+ -- 19.x => 19.7.0+ -- 20.x => 20.0.0+ - -Essentially, you can simply use the latest version of each major release. - -## Installation - -You can install it from the npm registry with `npm` command: - -```sh -npm install @hono/node-server -``` - -Or use `yarn`: - -```sh -yarn add @hono/node-server -``` - -## Usage - -Just import `@hono/node-server` at the top and write the code as usual. -The same code that runs on Cloudflare Workers, Deno, and Bun will work. - -```ts -import { serve } from '@hono/node-server' -import { Hono } from 'hono' - -const app = new Hono() -app.get('/', (c) => c.text('Hono meets Node.js')) - -serve(app, (info) => { - console.log(`Listening on http://localhost:${info.port}`) // Listening on http://localhost:3000 -}) -``` - -For example, run it using `ts-node`. Then an HTTP server will be launched. The default port is `3000`. - -```sh -ts-node ./index.ts -``` - -Open `http://localhost:3000` with your browser. - -## Options - -### `port` - -```ts -serve({ - fetch: app.fetch, - port: 8787, // Port number, default is 3000 -}) -``` - -### `createServer` - -```ts -import { createServer } from 'node:https' -import fs from 'node:fs' - -//... - -serve({ - fetch: app.fetch, - createServer: createServer, - serverOptions: { - key: fs.readFileSync('test/fixtures/keys/agent1-key.pem'), - cert: fs.readFileSync('test/fixtures/keys/agent1-cert.pem'), - }, -}) -``` - -### `overrideGlobalObjects` - -The default value is `true`. The Node.js Adapter rewrites the global Request/Response and uses a lightweight Request/Response to improve performance. If you don't want to do that, set `false`. - -```ts -serve({ - fetch: app.fetch, - overrideGlobalObjects: false, -}) -``` - -### `autoCleanupIncoming` - -The default value is `true`. The Node.js Adapter automatically cleans up (explicitly call `destroy()` method) if application is not finished to consume the incoming request. If you don't want to do that, set `false`. - -If the application accepts connections from arbitrary clients, this cleanup must be done otherwise incomplete requests from clients may cause the application to stop responding. If your application only accepts connections from trusted clients, such as in a reverse proxy environment and there is no process that returns a response without reading the body of the POST request all the way through, you can improve performance by setting it to `false`. - -```ts -serve({ - fetch: app.fetch, - autoCleanupIncoming: false, -}) -``` - -## Middleware - -Most built-in middleware also works with Node.js. -Read [the documentation](https://hono.dev/middleware/builtin/basic-auth) and use the Middleware of your liking. - -```ts -import { serve } from '@hono/node-server' -import { Hono } from 'hono' -import { prettyJSON } from 'hono/pretty-json' - -const app = new Hono() - -app.get('*', prettyJSON()) -app.get('/', (c) => c.json({ 'Hono meets': 'Node.js' })) - -serve(app) -``` - -## Serve Static Middleware - -Use Serve Static Middleware that has been created for Node.js. - -```ts -import { serveStatic } from '@hono/node-server/serve-static' - -//... - -app.use('/static/*', serveStatic({ root: './' })) -``` - -If using a relative path, `root` will be relative to the current working directory from which the app was started. - -This can cause confusion when running your application locally. - -Imagine your project structure is: - -``` -my-hono-project/ - src/ - index.ts - static/ - index.html -``` - -Typically, you would run your app from the project's root directory (`my-hono-project`), -so you would need the following code to serve the `static` folder: - -```ts -app.use('/static/*', serveStatic({ root: './static' })) -``` - -Notice that `root` here is not relative to `src/index.ts`, rather to `my-hono-project`. - -### Options - -#### `rewriteRequestPath` - -If you want to serve files in `./.foojs` with the request path `/__foo/*`, you can write like the following. - -```ts -app.use( - '/__foo/*', - serveStatic({ - root: './.foojs/', - rewriteRequestPath: (path: string) => path.replace(/^\/__foo/, ''), - }) -) -``` - -#### `onFound` - -You can specify handling when the requested file is found with `onFound`. - -```ts -app.use( - '/static/*', - serveStatic({ - // ... - onFound: (_path, c) => { - c.header('Cache-Control', `public, immutable, max-age=31536000`) - }, - }) -) -``` - -#### `onNotFound` - -The `onNotFound` is useful for debugging. You can write a handle for when a file is not found. - -```ts -app.use( - '/static/*', - serveStatic({ - root: './non-existent-dir', - onNotFound: (path, c) => { - console.log(`${path} is not found, request to ${c.req.path}`) - }, - }) -) -``` - -#### `precompressed` - -The `precompressed` option checks if files with extensions like `.br` or `.gz` are available and serves them based on the `Accept-Encoding` header. It prioritizes Brotli, then Zstd, and Gzip. If none are available, it serves the original file. - -```ts -app.use( - '/static/*', - serveStatic({ - precompressed: true, - }) -) -``` - -## ConnInfo Helper - -You can use the [ConnInfo Helper](https://hono.dev/docs/helpers/conninfo) by importing `getConnInfo` from `@hono/node-server/conninfo`. - -```ts -import { getConnInfo } from '@hono/node-server/conninfo' - -app.get('/', (c) => { - const info = getConnInfo(c) // info is `ConnInfo` - return c.text(`Your remote address is ${info.remote.address}`) -}) -``` - -## Accessing Node.js API - -You can access the Node.js API from `c.env` in Node.js. For example, if you want to specify a type, you can write the following. - -```ts -import { serve } from '@hono/node-server' -import type { HttpBindings } from '@hono/node-server' -import { Hono } from 'hono' - -const app = new Hono<{ Bindings: HttpBindings }>() - -app.get('/', (c) => { - return c.json({ - remoteAddress: c.env.incoming.socket.remoteAddress, - }) -}) - -serve(app) -``` - -The APIs that you can get from `c.env` are as follows. - -```ts -type HttpBindings = { - incoming: IncomingMessage - outgoing: ServerResponse -} - -type Http2Bindings = { - incoming: Http2ServerRequest - outgoing: Http2ServerResponse -} -``` - -## Direct response from Node.js API - -You can directly respond to the client from the Node.js API. -In that case, the response from Hono should be ignored, so return `RESPONSE_ALREADY_SENT`. - -> [!NOTE] -> This feature can be used when migrating existing Node.js applications to Hono, but we recommend using Hono's API for new applications. - -```ts -import { serve } from '@hono/node-server' -import type { HttpBindings } from '@hono/node-server' -import { RESPONSE_ALREADY_SENT } from '@hono/node-server/utils/response' -import { Hono } from 'hono' - -const app = new Hono<{ Bindings: HttpBindings }>() - -app.get('/', (c) => { - const { outgoing } = c.env - outgoing.writeHead(200, { 'Content-Type': 'text/plain' }) - outgoing.end('Hello World\n') - - return RESPONSE_ALREADY_SENT -}) - -serve(app) -``` - -## Related projects - -- Hono - -- Hono GitHub repository - - -## Author - -Yusuke Wada - -## License - -MIT diff --git a/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.mts b/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.mts deleted file mode 100644 index 4c756d1..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.mts +++ /dev/null @@ -1,10 +0,0 @@ -import { GetConnInfo } from 'hono/conninfo'; - -/** - * ConnInfo Helper for Node.js - * @param c Context - * @returns ConnInfo - */ -declare const getConnInfo: GetConnInfo; - -export { getConnInfo }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.ts b/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.ts deleted file mode 100644 index 4c756d1..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/conninfo.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { GetConnInfo } from 'hono/conninfo'; - -/** - * ConnInfo Helper for Node.js - * @param c Context - * @returns ConnInfo - */ -declare const getConnInfo: GetConnInfo; - -export { getConnInfo }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/conninfo.js b/mcp-server/node_modules/@hono/node-server/dist/conninfo.js deleted file mode 100644 index 131934d..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/conninfo.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/conninfo.ts -var conninfo_exports = {}; -__export(conninfo_exports, { - getConnInfo: () => getConnInfo -}); -module.exports = __toCommonJS(conninfo_exports); -var getConnInfo = (c) => { - const bindings = c.env.server ? c.env.server : c.env; - const address = bindings.incoming.socket.remoteAddress; - const port = bindings.incoming.socket.remotePort; - const family = bindings.incoming.socket.remoteFamily; - return { - remote: { - address, - port, - addressType: family === "IPv4" ? "IPv4" : family === "IPv6" ? "IPv6" : void 0 - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getConnInfo -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/conninfo.mjs b/mcp-server/node_modules/@hono/node-server/dist/conninfo.mjs deleted file mode 100644 index ab3cc95..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/conninfo.mjs +++ /dev/null @@ -1,17 +0,0 @@ -// src/conninfo.ts -var getConnInfo = (c) => { - const bindings = c.env.server ? c.env.server : c.env; - const address = bindings.incoming.socket.remoteAddress; - const port = bindings.incoming.socket.remotePort; - const family = bindings.incoming.socket.remoteFamily; - return { - remote: { - address, - port, - addressType: family === "IPv4" ? "IPv4" : family === "IPv6" ? "IPv6" : void 0 - } - }; -}; -export { - getConnInfo -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/globals.d.mts b/mcp-server/node_modules/@hono/node-server/dist/globals.d.mts deleted file mode 100644 index 223e65e..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/globals.d.mts +++ /dev/null @@ -1,2 +0,0 @@ - -export { } diff --git a/mcp-server/node_modules/@hono/node-server/dist/globals.d.ts b/mcp-server/node_modules/@hono/node-server/dist/globals.d.ts deleted file mode 100644 index 223e65e..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/globals.d.ts +++ /dev/null @@ -1,2 +0,0 @@ - -export { } diff --git a/mcp-server/node_modules/@hono/node-server/dist/globals.js b/mcp-server/node_modules/@hono/node-server/dist/globals.js deleted file mode 100644 index baf479a..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/globals.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/globals.ts -var import_node_crypto = __toESM(require("crypto")); -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = import_node_crypto.default; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/globals.mjs b/mcp-server/node_modules/@hono/node-server/dist/globals.mjs deleted file mode 100644 index 0e28b65..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/globals.mjs +++ /dev/null @@ -1,15 +0,0 @@ -// src/globals.ts -import crypto from "crypto"; -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = crypto; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/index.d.mts b/mcp-server/node_modules/@hono/node-server/dist/index.d.mts deleted file mode 100644 index b9f383b..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/index.d.mts +++ /dev/null @@ -1,8 +0,0 @@ -export { createAdaptorServer, serve } from './server.mjs'; -export { getRequestListener } from './listener.mjs'; -export { RequestError } from './request.mjs'; -export { Http2Bindings, HttpBindings, ServerType } from './types.mjs'; -import 'node:net'; -import 'node:http'; -import 'node:http2'; -import 'node:https'; diff --git a/mcp-server/node_modules/@hono/node-server/dist/index.d.ts b/mcp-server/node_modules/@hono/node-server/dist/index.d.ts deleted file mode 100644 index 7a03b52..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { createAdaptorServer, serve } from './server.js'; -export { getRequestListener } from './listener.js'; -export { RequestError } from './request.js'; -export { Http2Bindings, HttpBindings, ServerType } from './types.js'; -import 'node:net'; -import 'node:http'; -import 'node:http2'; -import 'node:https'; diff --git a/mcp-server/node_modules/@hono/node-server/dist/index.js b/mcp-server/node_modules/@hono/node-server/dist/index.js deleted file mode 100644 index 13435b9..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/index.js +++ /dev/null @@ -1,623 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - RequestError: () => RequestError, - createAdaptorServer: () => createAdaptorServer, - getRequestListener: () => getRequestListener, - serve: () => serve -}); -module.exports = __toCommonJS(src_exports); - -// src/server.ts -var import_node_http = require("http"); - -// src/listener.ts -var import_node_http22 = require("http2"); - -// src/request.ts -var import_node_http2 = require("http2"); -var import_node_stream = require("stream"); -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= import_node_stream.Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = import_node_stream.Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof import_node_http2.Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof import_node_http2.Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -var import_node_crypto = __toESM(require("crypto")); -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = import_node_crypto.default; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof import_node_http22.Http2ServerRequest) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/server.ts -var createAdaptorServer = (options) => { - const fetchCallback = options.fetch; - const requestListener = getRequestListener(fetchCallback, { - hostname: options.hostname, - overrideGlobalObjects: options.overrideGlobalObjects, - autoCleanupIncoming: options.autoCleanupIncoming - }); - const createServer = options.createServer || import_node_http.createServer; - const server = createServer(options.serverOptions || {}, requestListener); - return server; -}; -var serve = (options, listeningListener) => { - const server = createAdaptorServer(options); - server.listen(options?.port ?? 3e3, options.hostname, () => { - const serverInfo = server.address(); - listeningListener && listeningListener(serverInfo); - }); - return server; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - RequestError, - createAdaptorServer, - getRequestListener, - serve -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/index.mjs b/mcp-server/node_modules/@hono/node-server/dist/index.mjs deleted file mode 100644 index b4176ef..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/index.mjs +++ /dev/null @@ -1,583 +0,0 @@ -// src/server.ts -import { createServer as createServerHTTP } from "http"; - -// src/listener.ts -import { Http2ServerRequest as Http2ServerRequest2 } from "http2"; - -// src/request.ts -import { Http2ServerRequest } from "http2"; -import { Readable } from "stream"; -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -import crypto from "crypto"; -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = crypto; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof Http2ServerRequest2) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/server.ts -var createAdaptorServer = (options) => { - const fetchCallback = options.fetch; - const requestListener = getRequestListener(fetchCallback, { - hostname: options.hostname, - overrideGlobalObjects: options.overrideGlobalObjects, - autoCleanupIncoming: options.autoCleanupIncoming - }); - const createServer = options.createServer || createServerHTTP; - const server = createServer(options.serverOptions || {}, requestListener); - return server; -}; -var serve = (options, listeningListener) => { - const server = createAdaptorServer(options); - server.listen(options?.port ?? 3e3, options.hostname, () => { - const serverInfo = server.address(); - listeningListener && listeningListener(serverInfo); - }); - return server; -}; -export { - RequestError, - createAdaptorServer, - getRequestListener, - serve -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/listener.d.mts b/mcp-server/node_modules/@hono/node-server/dist/listener.d.mts deleted file mode 100644 index a48eaff..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/listener.d.mts +++ /dev/null @@ -1,13 +0,0 @@ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Http2ServerRequest, Http2ServerResponse } from 'node:http2'; -import { FetchCallback, CustomErrorHandler } from './types.mjs'; -import 'node:https'; - -declare const getRequestListener: (fetchCallback: FetchCallback, options?: { - hostname?: string; - errorHandler?: CustomErrorHandler; - overrideGlobalObjects?: boolean; - autoCleanupIncoming?: boolean; -}) => (incoming: IncomingMessage | Http2ServerRequest, outgoing: ServerResponse | Http2ServerResponse) => Promise; - -export { getRequestListener }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/listener.d.ts b/mcp-server/node_modules/@hono/node-server/dist/listener.d.ts deleted file mode 100644 index 2bb0b8f..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/listener.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Http2ServerRequest, Http2ServerResponse } from 'node:http2'; -import { FetchCallback, CustomErrorHandler } from './types.js'; -import 'node:https'; - -declare const getRequestListener: (fetchCallback: FetchCallback, options?: { - hostname?: string; - errorHandler?: CustomErrorHandler; - overrideGlobalObjects?: boolean; - autoCleanupIncoming?: boolean; -}) => (incoming: IncomingMessage | Http2ServerRequest, outgoing: ServerResponse | Http2ServerResponse) => Promise; - -export { getRequestListener }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/listener.js b/mcp-server/node_modules/@hono/node-server/dist/listener.js deleted file mode 100644 index 23efef8..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/listener.js +++ /dev/null @@ -1,591 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/listener.ts -var listener_exports = {}; -__export(listener_exports, { - getRequestListener: () => getRequestListener -}); -module.exports = __toCommonJS(listener_exports); -var import_node_http22 = require("http2"); - -// src/request.ts -var import_node_http2 = require("http2"); -var import_node_stream = require("stream"); -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= import_node_stream.Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = import_node_stream.Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof import_node_http2.Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof import_node_http2.Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -var import_node_crypto = __toESM(require("crypto")); -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = import_node_crypto.default; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof import_node_http22.Http2ServerRequest) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getRequestListener -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/listener.mjs b/mcp-server/node_modules/@hono/node-server/dist/listener.mjs deleted file mode 100644 index 36cab9c..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/listener.mjs +++ /dev/null @@ -1,556 +0,0 @@ -// src/listener.ts -import { Http2ServerRequest as Http2ServerRequest2 } from "http2"; - -// src/request.ts -import { Http2ServerRequest } from "http2"; -import { Readable } from "stream"; -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -import crypto from "crypto"; -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = crypto; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof Http2ServerRequest2) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; -export { - getRequestListener -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/request.d.mts b/mcp-server/node_modules/@hono/node-server/dist/request.d.mts deleted file mode 100644 index e3045cc..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/request.d.mts +++ /dev/null @@ -1,25 +0,0 @@ -import { IncomingMessage } from 'node:http'; -import { Http2ServerRequest } from 'node:http2'; - -declare class RequestError extends Error { - constructor(message: string, options?: { - cause?: unknown; - }); -} -declare const toRequestError: (e: unknown) => RequestError; -declare const GlobalRequest: { - new (input: RequestInfo | URL, init?: RequestInit): globalThis.Request; - prototype: globalThis.Request; -}; -declare class Request extends GlobalRequest { - constructor(input: string | Request, options?: RequestInit); -} -type IncomingMessageWithWrapBodyStream = IncomingMessage & { - [wrapBodyStream]: boolean; -}; -declare const wrapBodyStream: unique symbol; -declare const abortControllerKey: unique symbol; -declare const getAbortController: unique symbol; -declare const newRequest: (incoming: IncomingMessage | Http2ServerRequest, defaultHostname?: string) => any; - -export { GlobalRequest, type IncomingMessageWithWrapBodyStream, Request, RequestError, abortControllerKey, getAbortController, newRequest, toRequestError, wrapBodyStream }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/request.d.ts b/mcp-server/node_modules/@hono/node-server/dist/request.d.ts deleted file mode 100644 index e3045cc..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/request.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { IncomingMessage } from 'node:http'; -import { Http2ServerRequest } from 'node:http2'; - -declare class RequestError extends Error { - constructor(message: string, options?: { - cause?: unknown; - }); -} -declare const toRequestError: (e: unknown) => RequestError; -declare const GlobalRequest: { - new (input: RequestInfo | URL, init?: RequestInit): globalThis.Request; - prototype: globalThis.Request; -}; -declare class Request extends GlobalRequest { - constructor(input: string | Request, options?: RequestInit); -} -type IncomingMessageWithWrapBodyStream = IncomingMessage & { - [wrapBodyStream]: boolean; -}; -declare const wrapBodyStream: unique symbol; -declare const abortControllerKey: unique symbol; -declare const getAbortController: unique symbol; -declare const newRequest: (incoming: IncomingMessage | Http2ServerRequest, defaultHostname?: string) => any; - -export { GlobalRequest, type IncomingMessageWithWrapBodyStream, Request, RequestError, abortControllerKey, getAbortController, newRequest, toRequestError, wrapBodyStream }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/request.js b/mcp-server/node_modules/@hono/node-server/dist/request.js deleted file mode 100644 index a0a3ad2..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/request.js +++ /dev/null @@ -1,227 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/request.ts -var request_exports = {}; -__export(request_exports, { - GlobalRequest: () => GlobalRequest, - Request: () => Request, - RequestError: () => RequestError, - abortControllerKey: () => abortControllerKey, - getAbortController: () => getAbortController, - newRequest: () => newRequest, - toRequestError: () => toRequestError, - wrapBodyStream: () => wrapBodyStream -}); -module.exports = __toCommonJS(request_exports); -var import_node_http2 = require("http2"); -var import_node_stream = require("stream"); -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= import_node_stream.Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = import_node_stream.Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof import_node_http2.Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof import_node_http2.Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - GlobalRequest, - Request, - RequestError, - abortControllerKey, - getAbortController, - newRequest, - toRequestError, - wrapBodyStream -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/request.mjs b/mcp-server/node_modules/@hono/node-server/dist/request.mjs deleted file mode 100644 index 1e5cb64..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/request.mjs +++ /dev/null @@ -1,195 +0,0 @@ -// src/request.ts -import { Http2ServerRequest } from "http2"; -import { Readable } from "stream"; -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; -export { - GlobalRequest, - Request, - RequestError, - abortControllerKey, - getAbortController, - newRequest, - toRequestError, - wrapBodyStream -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/response.d.mts b/mcp-server/node_modules/@hono/node-server/dist/response.d.mts deleted file mode 100644 index 95f542f..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/response.d.mts +++ /dev/null @@ -1,26 +0,0 @@ -import { OutgoingHttpHeaders } from 'node:http'; - -declare const getResponseCache: unique symbol; -declare const cacheKey: unique symbol; -type InternalCache = [ - number, - string | ReadableStream, - Record | Headers | OutgoingHttpHeaders -]; -declare const GlobalResponse: { - new (body?: BodyInit | null, init?: ResponseInit): globalThis.Response; - prototype: globalThis.Response; - error(): globalThis.Response; - json(data: any, init?: ResponseInit): globalThis.Response; - redirect(url: string | URL, status?: number): globalThis.Response; -}; -declare class Response { - #private; - [getResponseCache](): globalThis.Response; - constructor(body?: BodyInit | null, init?: ResponseInit); - get headers(): Headers; - get status(): number; - get ok(): boolean; -} - -export { GlobalResponse, type InternalCache, Response, cacheKey }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/response.d.ts b/mcp-server/node_modules/@hono/node-server/dist/response.d.ts deleted file mode 100644 index 95f542f..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/response.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { OutgoingHttpHeaders } from 'node:http'; - -declare const getResponseCache: unique symbol; -declare const cacheKey: unique symbol; -type InternalCache = [ - number, - string | ReadableStream, - Record | Headers | OutgoingHttpHeaders -]; -declare const GlobalResponse: { - new (body?: BodyInit | null, init?: ResponseInit): globalThis.Response; - prototype: globalThis.Response; - error(): globalThis.Response; - json(data: any, init?: ResponseInit): globalThis.Response; - redirect(url: string | URL, status?: number): globalThis.Response; -}; -declare class Response { - #private; - [getResponseCache](): globalThis.Response; - constructor(body?: BodyInit | null, init?: ResponseInit); - get headers(): Headers; - get status(): number; - get ok(): boolean; -} - -export { GlobalResponse, type InternalCache, Response, cacheKey }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/response.js b/mcp-server/node_modules/@hono/node-server/dist/response.js deleted file mode 100644 index 1a85329..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/response.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/response.ts -var response_exports = {}; -__export(response_exports, { - GlobalResponse: () => GlobalResponse, - Response: () => Response, - cacheKey: () => cacheKey -}); -module.exports = __toCommonJS(response_exports); -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response, GlobalResponse); -Object.setPrototypeOf(Response.prototype, GlobalResponse.prototype); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - GlobalResponse, - Response, - cacheKey -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/response.mjs b/mcp-server/node_modules/@hono/node-server/dist/response.mjs deleted file mode 100644 index 547e4ad..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/response.mjs +++ /dev/null @@ -1,72 +0,0 @@ -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response, GlobalResponse); -Object.setPrototypeOf(Response.prototype, GlobalResponse.prototype); -export { - GlobalResponse, - Response, - cacheKey -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.mts b/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.mts deleted file mode 100644 index 9a1c83d..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.mts +++ /dev/null @@ -1,17 +0,0 @@ -import { Env, Context, MiddlewareHandler } from 'hono'; - -type ServeStaticOptions = { - /** - * Root path, relative to current working directory from which the app was started. Absolute paths are not supported. - */ - root?: string; - path?: string; - index?: string; - precompressed?: boolean; - rewriteRequestPath?: (path: string, c: Context) => string; - onFound?: (path: string, c: Context) => void | Promise; - onNotFound?: (path: string, c: Context) => void | Promise; -}; -declare const serveStatic: (options?: ServeStaticOptions) => MiddlewareHandler; - -export { type ServeStaticOptions, serveStatic }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.ts b/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.ts deleted file mode 100644 index 9a1c83d..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/serve-static.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Env, Context, MiddlewareHandler } from 'hono'; - -type ServeStaticOptions = { - /** - * Root path, relative to current working directory from which the app was started. Absolute paths are not supported. - */ - root?: string; - path?: string; - index?: string; - precompressed?: boolean; - rewriteRequestPath?: (path: string, c: Context) => string; - onFound?: (path: string, c: Context) => void | Promise; - onNotFound?: (path: string, c: Context) => void | Promise; -}; -declare const serveStatic: (options?: ServeStaticOptions) => MiddlewareHandler; - -export { type ServeStaticOptions, serveStatic }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/serve-static.js b/mcp-server/node_modules/@hono/node-server/dist/serve-static.js deleted file mode 100644 index 687f0f8..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/serve-static.js +++ /dev/null @@ -1,153 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/serve-static.ts -var serve_static_exports = {}; -__export(serve_static_exports, { - serveStatic: () => serveStatic -}); -module.exports = __toCommonJS(serve_static_exports); -var import_mime = require("hono/utils/mime"); -var import_node_fs = require("fs"); -var import_node_path = require("path"); -var COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i; -var ENCODINGS = { - br: ".br", - zstd: ".zst", - gzip: ".gz" -}; -var ENCODINGS_ORDERED_KEYS = Object.keys(ENCODINGS); -var createStreamBody = (stream) => { - const body = new ReadableStream({ - start(controller) { - stream.on("data", (chunk) => { - controller.enqueue(chunk); - }); - stream.on("error", (err) => { - controller.error(err); - }); - stream.on("end", () => { - controller.close(); - }); - }, - cancel() { - stream.destroy(); - } - }); - return body; -}; -var getStats = (path) => { - let stats; - try { - stats = (0, import_node_fs.statSync)(path); - } catch { - } - return stats; -}; -var serveStatic = (options = { root: "" }) => { - const root = options.root || ""; - const optionPath = options.path; - if (root !== "" && !(0, import_node_fs.existsSync)(root)) { - console.error(`serveStatic: root path '${root}' is not found, are you sure it's correct?`); - } - return async (c, next) => { - if (c.finalized) { - return next(); - } - let filename; - if (optionPath) { - filename = optionPath; - } else { - try { - filename = decodeURIComponent(c.req.path); - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - throw new Error(); - } - } catch { - await options.onNotFound?.(c.req.path, c); - return next(); - } - } - let path = (0, import_node_path.join)( - root, - !optionPath && options.rewriteRequestPath ? options.rewriteRequestPath(filename, c) : filename - ); - let stats = getStats(path); - if (stats && stats.isDirectory()) { - const indexFile = options.index ?? "index.html"; - path = (0, import_node_path.join)(path, indexFile); - stats = getStats(path); - } - if (!stats) { - await options.onNotFound?.(path, c); - return next(); - } - const mimeType = (0, import_mime.getMimeType)(path); - c.header("Content-Type", mimeType || "application/octet-stream"); - if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) { - const acceptEncodingSet = new Set( - c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()) - ); - for (const encoding of ENCODINGS_ORDERED_KEYS) { - if (!acceptEncodingSet.has(encoding)) { - continue; - } - const precompressedStats = getStats(path + ENCODINGS[encoding]); - if (precompressedStats) { - c.header("Content-Encoding", encoding); - c.header("Vary", "Accept-Encoding", { append: true }); - stats = precompressedStats; - path = path + ENCODINGS[encoding]; - break; - } - } - } - let result; - const size = stats.size; - const range = c.req.header("range") || ""; - if (c.req.method == "HEAD" || c.req.method == "OPTIONS") { - c.header("Content-Length", size.toString()); - c.status(200); - result = c.body(null); - } else if (!range) { - c.header("Content-Length", size.toString()); - result = c.body(createStreamBody((0, import_node_fs.createReadStream)(path)), 200); - } else { - c.header("Accept-Ranges", "bytes"); - c.header("Date", stats.birthtime.toUTCString()); - const parts = range.replace(/bytes=/, "").split("-", 2); - const start = parseInt(parts[0], 10) || 0; - let end = parseInt(parts[1], 10) || size - 1; - if (size < end - start + 1) { - end = size - 1; - } - const chunksize = end - start + 1; - const stream = (0, import_node_fs.createReadStream)(path, { start, end }); - c.header("Content-Length", chunksize.toString()); - c.header("Content-Range", `bytes ${start}-${end}/${stats.size}`); - result = c.body(createStreamBody(stream), 206); - } - await options.onFound?.(path, c); - return result; - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - serveStatic -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/serve-static.mjs b/mcp-server/node_modules/@hono/node-server/dist/serve-static.mjs deleted file mode 100644 index 4333604..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/serve-static.mjs +++ /dev/null @@ -1,128 +0,0 @@ -// src/serve-static.ts -import { getMimeType } from "hono/utils/mime"; -import { createReadStream, statSync, existsSync } from "fs"; -import { join } from "path"; -var COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i; -var ENCODINGS = { - br: ".br", - zstd: ".zst", - gzip: ".gz" -}; -var ENCODINGS_ORDERED_KEYS = Object.keys(ENCODINGS); -var createStreamBody = (stream) => { - const body = new ReadableStream({ - start(controller) { - stream.on("data", (chunk) => { - controller.enqueue(chunk); - }); - stream.on("error", (err) => { - controller.error(err); - }); - stream.on("end", () => { - controller.close(); - }); - }, - cancel() { - stream.destroy(); - } - }); - return body; -}; -var getStats = (path) => { - let stats; - try { - stats = statSync(path); - } catch { - } - return stats; -}; -var serveStatic = (options = { root: "" }) => { - const root = options.root || ""; - const optionPath = options.path; - if (root !== "" && !existsSync(root)) { - console.error(`serveStatic: root path '${root}' is not found, are you sure it's correct?`); - } - return async (c, next) => { - if (c.finalized) { - return next(); - } - let filename; - if (optionPath) { - filename = optionPath; - } else { - try { - filename = decodeURIComponent(c.req.path); - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - throw new Error(); - } - } catch { - await options.onNotFound?.(c.req.path, c); - return next(); - } - } - let path = join( - root, - !optionPath && options.rewriteRequestPath ? options.rewriteRequestPath(filename, c) : filename - ); - let stats = getStats(path); - if (stats && stats.isDirectory()) { - const indexFile = options.index ?? "index.html"; - path = join(path, indexFile); - stats = getStats(path); - } - if (!stats) { - await options.onNotFound?.(path, c); - return next(); - } - const mimeType = getMimeType(path); - c.header("Content-Type", mimeType || "application/octet-stream"); - if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) { - const acceptEncodingSet = new Set( - c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()) - ); - for (const encoding of ENCODINGS_ORDERED_KEYS) { - if (!acceptEncodingSet.has(encoding)) { - continue; - } - const precompressedStats = getStats(path + ENCODINGS[encoding]); - if (precompressedStats) { - c.header("Content-Encoding", encoding); - c.header("Vary", "Accept-Encoding", { append: true }); - stats = precompressedStats; - path = path + ENCODINGS[encoding]; - break; - } - } - } - let result; - const size = stats.size; - const range = c.req.header("range") || ""; - if (c.req.method == "HEAD" || c.req.method == "OPTIONS") { - c.header("Content-Length", size.toString()); - c.status(200); - result = c.body(null); - } else if (!range) { - c.header("Content-Length", size.toString()); - result = c.body(createStreamBody(createReadStream(path)), 200); - } else { - c.header("Accept-Ranges", "bytes"); - c.header("Date", stats.birthtime.toUTCString()); - const parts = range.replace(/bytes=/, "").split("-", 2); - const start = parseInt(parts[0], 10) || 0; - let end = parseInt(parts[1], 10) || size - 1; - if (size < end - start + 1) { - end = size - 1; - } - const chunksize = end - start + 1; - const stream = createReadStream(path, { start, end }); - c.header("Content-Length", chunksize.toString()); - c.header("Content-Range", `bytes ${start}-${end}/${stats.size}`); - result = c.body(createStreamBody(stream), 206); - } - await options.onFound?.(path, c); - return result; - }; -}; -export { - serveStatic -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/server.d.mts b/mcp-server/node_modules/@hono/node-server/dist/server.d.mts deleted file mode 100644 index a8e9543..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/server.d.mts +++ /dev/null @@ -1,10 +0,0 @@ -import { AddressInfo } from 'node:net'; -import { Options, ServerType } from './types.mjs'; -import 'node:http'; -import 'node:http2'; -import 'node:https'; - -declare const createAdaptorServer: (options: Options) => ServerType; -declare const serve: (options: Options, listeningListener?: (info: AddressInfo) => void) => ServerType; - -export { createAdaptorServer, serve }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/server.d.ts b/mcp-server/node_modules/@hono/node-server/dist/server.d.ts deleted file mode 100644 index b639283..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/server.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AddressInfo } from 'node:net'; -import { Options, ServerType } from './types.js'; -import 'node:http'; -import 'node:http2'; -import 'node:https'; - -declare const createAdaptorServer: (options: Options) => ServerType; -declare const serve: (options: Options, listeningListener?: (info: AddressInfo) => void) => ServerType; - -export { createAdaptorServer, serve }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/server.js b/mcp-server/node_modules/@hono/node-server/dist/server.js deleted file mode 100644 index 6dce5d9..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/server.js +++ /dev/null @@ -1,617 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/server.ts -var server_exports = {}; -__export(server_exports, { - createAdaptorServer: () => createAdaptorServer, - serve: () => serve -}); -module.exports = __toCommonJS(server_exports); -var import_node_http = require("http"); - -// src/listener.ts -var import_node_http22 = require("http2"); - -// src/request.ts -var import_node_http2 = require("http2"); -var import_node_stream = require("stream"); -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= import_node_stream.Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = import_node_stream.Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof import_node_http2.Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof import_node_http2.Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -var import_node_crypto = __toESM(require("crypto")); -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = import_node_crypto.default; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof import_node_http22.Http2ServerRequest) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/server.ts -var createAdaptorServer = (options) => { - const fetchCallback = options.fetch; - const requestListener = getRequestListener(fetchCallback, { - hostname: options.hostname, - overrideGlobalObjects: options.overrideGlobalObjects, - autoCleanupIncoming: options.autoCleanupIncoming - }); - const createServer = options.createServer || import_node_http.createServer; - const server = createServer(options.serverOptions || {}, requestListener); - return server; -}; -var serve = (options, listeningListener) => { - const server = createAdaptorServer(options); - server.listen(options?.port ?? 3e3, options.hostname, () => { - const serverInfo = server.address(); - listeningListener && listeningListener(serverInfo); - }); - return server; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createAdaptorServer, - serve -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/server.mjs b/mcp-server/node_modules/@hono/node-server/dist/server.mjs deleted file mode 100644 index a8dd067..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/server.mjs +++ /dev/null @@ -1,581 +0,0 @@ -// src/server.ts -import { createServer as createServerHTTP } from "http"; - -// src/listener.ts -import { Http2ServerRequest as Http2ServerRequest2 } from "http2"; - -// src/request.ts -import { Http2ServerRequest } from "http2"; -import { Readable } from "stream"; -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -import crypto from "crypto"; -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = crypto; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof Http2ServerRequest2) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/server.ts -var createAdaptorServer = (options) => { - const fetchCallback = options.fetch; - const requestListener = getRequestListener(fetchCallback, { - hostname: options.hostname, - overrideGlobalObjects: options.overrideGlobalObjects, - autoCleanupIncoming: options.autoCleanupIncoming - }); - const createServer = options.createServer || createServerHTTP; - const server = createServer(options.serverOptions || {}, requestListener); - return server; -}; -var serve = (options, listeningListener) => { - const server = createAdaptorServer(options); - server.listen(options?.port ?? 3e3, options.hostname, () => { - const serverInfo = server.address(); - listeningListener && listeningListener(serverInfo); - }); - return server; -}; -export { - createAdaptorServer, - serve -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/types.d.mts b/mcp-server/node_modules/@hono/node-server/dist/types.d.mts deleted file mode 100644 index c258f6a..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/types.d.mts +++ /dev/null @@ -1,44 +0,0 @@ -import { IncomingMessage, ServerResponse, ServerOptions as ServerOptions$1, createServer, Server } from 'node:http'; -import { Http2ServerRequest, Http2ServerResponse, ServerOptions as ServerOptions$3, createServer as createServer$2, SecureServerOptions, createSecureServer, Http2Server, Http2SecureServer } from 'node:http2'; -import { ServerOptions as ServerOptions$2, createServer as createServer$1 } from 'node:https'; - -type HttpBindings = { - incoming: IncomingMessage; - outgoing: ServerResponse; -}; -type Http2Bindings = { - incoming: Http2ServerRequest; - outgoing: Http2ServerResponse; -}; -type FetchCallback = (request: Request, env: HttpBindings | Http2Bindings) => Promise | unknown; -type NextHandlerOption = { - fetch: FetchCallback; -}; -type ServerType = Server | Http2Server | Http2SecureServer; -type createHttpOptions = { - serverOptions?: ServerOptions$1; - createServer?: typeof createServer; -}; -type createHttpsOptions = { - serverOptions?: ServerOptions$2; - createServer?: typeof createServer$1; -}; -type createHttp2Options = { - serverOptions?: ServerOptions$3; - createServer?: typeof createServer$2; -}; -type createSecureHttp2Options = { - serverOptions?: SecureServerOptions; - createServer?: typeof createSecureServer; -}; -type ServerOptions = createHttpOptions | createHttpsOptions | createHttp2Options | createSecureHttp2Options; -type Options = { - fetch: FetchCallback; - overrideGlobalObjects?: boolean; - autoCleanupIncoming?: boolean; - port?: number; - hostname?: string; -} & ServerOptions; -type CustomErrorHandler = (err: unknown) => void | Response | Promise; - -export type { CustomErrorHandler, FetchCallback, Http2Bindings, HttpBindings, NextHandlerOption, Options, ServerOptions, ServerType }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/types.d.ts b/mcp-server/node_modules/@hono/node-server/dist/types.d.ts deleted file mode 100644 index c258f6a..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/types.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { IncomingMessage, ServerResponse, ServerOptions as ServerOptions$1, createServer, Server } from 'node:http'; -import { Http2ServerRequest, Http2ServerResponse, ServerOptions as ServerOptions$3, createServer as createServer$2, SecureServerOptions, createSecureServer, Http2Server, Http2SecureServer } from 'node:http2'; -import { ServerOptions as ServerOptions$2, createServer as createServer$1 } from 'node:https'; - -type HttpBindings = { - incoming: IncomingMessage; - outgoing: ServerResponse; -}; -type Http2Bindings = { - incoming: Http2ServerRequest; - outgoing: Http2ServerResponse; -}; -type FetchCallback = (request: Request, env: HttpBindings | Http2Bindings) => Promise | unknown; -type NextHandlerOption = { - fetch: FetchCallback; -}; -type ServerType = Server | Http2Server | Http2SecureServer; -type createHttpOptions = { - serverOptions?: ServerOptions$1; - createServer?: typeof createServer; -}; -type createHttpsOptions = { - serverOptions?: ServerOptions$2; - createServer?: typeof createServer$1; -}; -type createHttp2Options = { - serverOptions?: ServerOptions$3; - createServer?: typeof createServer$2; -}; -type createSecureHttp2Options = { - serverOptions?: SecureServerOptions; - createServer?: typeof createSecureServer; -}; -type ServerOptions = createHttpOptions | createHttpsOptions | createHttp2Options | createSecureHttp2Options; -type Options = { - fetch: FetchCallback; - overrideGlobalObjects?: boolean; - autoCleanupIncoming?: boolean; - port?: number; - hostname?: string; -} & ServerOptions; -type CustomErrorHandler = (err: unknown) => void | Response | Promise; - -export type { CustomErrorHandler, FetchCallback, Http2Bindings, HttpBindings, NextHandlerOption, Options, ServerOptions, ServerType }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/types.js b/mcp-server/node_modules/@hono/node-server/dist/types.js deleted file mode 100644 index 14bbc9e..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/types.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/types.ts -var types_exports = {}; -module.exports = __toCommonJS(types_exports); diff --git a/mcp-server/node_modules/@hono/node-server/dist/types.mjs b/mcp-server/node_modules/@hono/node-server/dist/types.mjs deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils.d.mts b/mcp-server/node_modules/@hono/node-server/dist/utils.d.mts deleted file mode 100644 index 966a2b4..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils.d.mts +++ /dev/null @@ -1,9 +0,0 @@ -import { OutgoingHttpHeaders } from 'node:http'; -import { Writable } from 'node:stream'; - -declare function readWithoutBlocking(readPromise: Promise>): Promise | undefined>; -declare function writeFromReadableStreamDefaultReader(reader: ReadableStreamDefaultReader, writable: Writable, currentReadPromise?: Promise> | undefined): Promise; -declare function writeFromReadableStream(stream: ReadableStream, writable: Writable): Promise | undefined; -declare const buildOutgoingHttpHeaders: (headers: Headers | HeadersInit | null | undefined) => OutgoingHttpHeaders; - -export { buildOutgoingHttpHeaders, readWithoutBlocking, writeFromReadableStream, writeFromReadableStreamDefaultReader }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils.d.ts b/mcp-server/node_modules/@hono/node-server/dist/utils.d.ts deleted file mode 100644 index 966a2b4..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { OutgoingHttpHeaders } from 'node:http'; -import { Writable } from 'node:stream'; - -declare function readWithoutBlocking(readPromise: Promise>): Promise | undefined>; -declare function writeFromReadableStreamDefaultReader(reader: ReadableStreamDefaultReader, writable: Writable, currentReadPromise?: Promise> | undefined): Promise; -declare function writeFromReadableStream(stream: ReadableStream, writable: Writable): Promise | undefined; -declare const buildOutgoingHttpHeaders: (headers: Headers | HeadersInit | null | undefined) => OutgoingHttpHeaders; - -export { buildOutgoingHttpHeaders, readWithoutBlocking, writeFromReadableStream, writeFromReadableStreamDefaultReader }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils.js b/mcp-server/node_modules/@hono/node-server/dist/utils.js deleted file mode 100644 index 7d416f1..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/utils.ts -var utils_exports = {}; -__export(utils_exports, { - buildOutgoingHttpHeaders: () => buildOutgoingHttpHeaders, - readWithoutBlocking: () => readWithoutBlocking, - writeFromReadableStream: () => writeFromReadableStream, - writeFromReadableStreamDefaultReader: () => writeFromReadableStreamDefaultReader -}); -module.exports = __toCommonJS(utils_exports); -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - buildOutgoingHttpHeaders, - readWithoutBlocking, - writeFromReadableStream, - writeFromReadableStreamDefaultReader -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils.mjs b/mcp-server/node_modules/@hono/node-server/dist/utils.mjs deleted file mode 100644 index 5184acb..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils.mjs +++ /dev/null @@ -1,71 +0,0 @@ -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; -export { - buildOutgoingHttpHeaders, - readWithoutBlocking, - writeFromReadableStream, - writeFromReadableStreamDefaultReader -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.mts b/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.mts deleted file mode 100644 index 523b753..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.mts +++ /dev/null @@ -1,3 +0,0 @@ -declare const RESPONSE_ALREADY_SENT: Response; - -export { RESPONSE_ALREADY_SENT }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.ts b/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.ts deleted file mode 100644 index 523b753..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const RESPONSE_ALREADY_SENT: Response; - -export { RESPONSE_ALREADY_SENT }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response.js b/mcp-server/node_modules/@hono/node-server/dist/utils/response.js deleted file mode 100644 index 6fe007b..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/utils/response.ts -var response_exports = {}; -__export(response_exports, { - RESPONSE_ALREADY_SENT: () => RESPONSE_ALREADY_SENT -}); -module.exports = __toCommonJS(response_exports); - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/utils/response.ts -var RESPONSE_ALREADY_SENT = new Response(null, { - headers: { [X_ALREADY_SENT]: "true" } -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - RESPONSE_ALREADY_SENT -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response.mjs b/mcp-server/node_modules/@hono/node-server/dist/utils/response.mjs deleted file mode 100644 index 5d42aaa..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response.mjs +++ /dev/null @@ -1,10 +0,0 @@ -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/utils/response.ts -var RESPONSE_ALREADY_SENT = new Response(null, { - headers: { [X_ALREADY_SENT]: "true" } -}); -export { - RESPONSE_ALREADY_SENT -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.mts b/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.mts deleted file mode 100644 index f09b912..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +++ /dev/null @@ -1,3 +0,0 @@ -declare const X_ALREADY_SENT = "x-hono-already-sent"; - -export { X_ALREADY_SENT }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.ts b/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.ts deleted file mode 100644 index f09b912..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const X_ALREADY_SENT = "x-hono-already-sent"; - -export { X_ALREADY_SENT }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.js b/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.js deleted file mode 100644 index 615e7c5..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/utils/response/constants.ts -var constants_exports = {}; -__export(constants_exports, { - X_ALREADY_SENT: () => X_ALREADY_SENT -}); -module.exports = __toCommonJS(constants_exports); -var X_ALREADY_SENT = "x-hono-already-sent"; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - X_ALREADY_SENT -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.mjs b/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.mjs deleted file mode 100644 index e6ed45f..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/utils/response/constants.mjs +++ /dev/null @@ -1,5 +0,0 @@ -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; -export { - X_ALREADY_SENT -}; diff --git a/mcp-server/node_modules/@hono/node-server/dist/vercel.d.mts b/mcp-server/node_modules/@hono/node-server/dist/vercel.d.mts deleted file mode 100644 index d187c05..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/vercel.d.mts +++ /dev/null @@ -1,7 +0,0 @@ -import * as http2 from 'http2'; -import * as http from 'http'; -import { Hono } from 'hono'; - -declare const handle: (app: Hono) => (incoming: http.IncomingMessage | http2.Http2ServerRequest, outgoing: http.ServerResponse | http2.Http2ServerResponse) => Promise; - -export { handle }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/vercel.d.ts b/mcp-server/node_modules/@hono/node-server/dist/vercel.d.ts deleted file mode 100644 index d187c05..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/vercel.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as http2 from 'http2'; -import * as http from 'http'; -import { Hono } from 'hono'; - -declare const handle: (app: Hono) => (incoming: http.IncomingMessage | http2.Http2ServerRequest, outgoing: http.ServerResponse | http2.Http2ServerResponse) => Promise; - -export { handle }; diff --git a/mcp-server/node_modules/@hono/node-server/dist/vercel.js b/mcp-server/node_modules/@hono/node-server/dist/vercel.js deleted file mode 100644 index be774c0..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/vercel.js +++ /dev/null @@ -1,598 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/vercel.ts -var vercel_exports = {}; -__export(vercel_exports, { - handle: () => handle -}); -module.exports = __toCommonJS(vercel_exports); - -// src/listener.ts -var import_node_http22 = require("http2"); - -// src/request.ts -var import_node_http2 = require("http2"); -var import_node_stream = require("stream"); -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= import_node_stream.Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = import_node_stream.Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof import_node_http2.Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof import_node_http2.Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof import_node_http2.Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -var import_node_crypto = __toESM(require("crypto")); -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = import_node_crypto.default; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof import_node_http22.Http2ServerRequest) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/vercel.ts -var handle = (app) => { - return getRequestListener(app.fetch); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - handle -}); diff --git a/mcp-server/node_modules/@hono/node-server/dist/vercel.mjs b/mcp-server/node_modules/@hono/node-server/dist/vercel.mjs deleted file mode 100644 index afbe56a..0000000 --- a/mcp-server/node_modules/@hono/node-server/dist/vercel.mjs +++ /dev/null @@ -1,561 +0,0 @@ -// src/listener.ts -import { Http2ServerRequest as Http2ServerRequest2 } from "http2"; - -// src/request.ts -import { Http2ServerRequest } from "http2"; -import { Readable } from "stream"; -var RequestError = class extends Error { - constructor(message, options) { - super(message, options); - this.name = "RequestError"; - } -}; -var toRequestError = (e) => { - if (e instanceof RequestError) { - return e; - } - return new RequestError(e.message, { cause: e }); -}; -var GlobalRequest = global.Request; -var Request = class extends GlobalRequest { - constructor(input, options) { - if (typeof input === "object" && getRequestCache in input) { - input = input[getRequestCache](); - } - if (typeof options?.body?.getReader !== "undefined") { - ; - options.duplex ??= "half"; - } - super(input, options); - } -}; -var newHeadersFromIncoming = (incoming) => { - const headerRecord = []; - const rawHeaders = incoming.rawHeaders; - for (let i = 0; i < rawHeaders.length; i += 2) { - const { [i]: key, [i + 1]: value } = rawHeaders; - if (key.charCodeAt(0) !== /*:*/ - 58) { - headerRecord.push([key, value]); - } - } - return new Headers(headerRecord); -}; -var wrapBodyStream = Symbol("wrapBodyStream"); -var newRequestFromIncoming = (method, url, headers, incoming, abortController) => { - const init = { - method, - headers, - signal: abortController.signal - }; - if (method === "TRACE") { - init.method = "GET"; - const req = new Request(url, init); - Object.defineProperty(req, "method", { - get() { - return "TRACE"; - } - }); - return req; - } - if (!(method === "GET" || method === "HEAD")) { - if ("rawBody" in incoming && incoming.rawBody instanceof Buffer) { - init.body = new ReadableStream({ - start(controller) { - controller.enqueue(incoming.rawBody); - controller.close(); - } - }); - } else if (incoming[wrapBodyStream]) { - let reader; - init.body = new ReadableStream({ - async pull(controller) { - try { - reader ||= Readable.toWeb(incoming).getReader(); - const { done, value } = await reader.read(); - if (done) { - controller.close(); - } else { - controller.enqueue(value); - } - } catch (error) { - controller.error(error); - } - } - }); - } else { - init.body = Readable.toWeb(incoming); - } - } - return new Request(url, init); -}; -var getRequestCache = Symbol("getRequestCache"); -var requestCache = Symbol("requestCache"); -var incomingKey = Symbol("incomingKey"); -var urlKey = Symbol("urlKey"); -var headersKey = Symbol("headersKey"); -var abortControllerKey = Symbol("abortControllerKey"); -var getAbortController = Symbol("getAbortController"); -var requestPrototype = { - get method() { - return this[incomingKey].method || "GET"; - }, - get url() { - return this[urlKey]; - }, - get headers() { - return this[headersKey] ||= newHeadersFromIncoming(this[incomingKey]); - }, - [getAbortController]() { - this[getRequestCache](); - return this[abortControllerKey]; - }, - [getRequestCache]() { - this[abortControllerKey] ||= new AbortController(); - return this[requestCache] ||= newRequestFromIncoming( - this.method, - this[urlKey], - this.headers, - this[incomingKey], - this[abortControllerKey] - ); - } -}; -[ - "body", - "bodyUsed", - "cache", - "credentials", - "destination", - "integrity", - "mode", - "redirect", - "referrer", - "referrerPolicy", - "signal", - "keepalive" -].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - get() { - return this[getRequestCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(requestPrototype, k, { - value: function() { - return this[getRequestCache]()[k](); - } - }); -}); -Object.setPrototypeOf(requestPrototype, Request.prototype); -var newRequest = (incoming, defaultHostname) => { - const req = Object.create(requestPrototype); - req[incomingKey] = incoming; - const incomingUrl = incoming.url || ""; - if (incomingUrl[0] !== "/" && // short-circuit for performance. most requests are relative URL. - (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) { - if (incoming instanceof Http2ServerRequest) { - throw new RequestError("Absolute URL for :path is not allowed in HTTP/2"); - } - try { - const url2 = new URL(incomingUrl); - req[urlKey] = url2.href; - } catch (e) { - throw new RequestError("Invalid absolute URL", { cause: e }); - } - return req; - } - const host = (incoming instanceof Http2ServerRequest ? incoming.authority : incoming.headers.host) || defaultHostname; - if (!host) { - throw new RequestError("Missing host header"); - } - let scheme; - if (incoming instanceof Http2ServerRequest) { - scheme = incoming.scheme; - if (!(scheme === "http" || scheme === "https")) { - throw new RequestError("Unsupported scheme"); - } - } else { - scheme = incoming.socket && incoming.socket.encrypted ? "https" : "http"; - } - const url = new URL(`${scheme}://${host}${incomingUrl}`); - if (url.hostname.length !== host.length && url.hostname !== host.replace(/:\d+$/, "")) { - throw new RequestError("Invalid host header"); - } - req[urlKey] = url.href; - return req; -}; - -// src/response.ts -var responseCache = Symbol("responseCache"); -var getResponseCache = Symbol("getResponseCache"); -var cacheKey = Symbol("cache"); -var GlobalResponse = global.Response; -var Response2 = class _Response { - #body; - #init; - [getResponseCache]() { - delete this[cacheKey]; - return this[responseCache] ||= new GlobalResponse(this.#body, this.#init); - } - constructor(body, init) { - let headers; - this.#body = body; - if (init instanceof _Response) { - const cachedGlobalResponse = init[responseCache]; - if (cachedGlobalResponse) { - this.#init = cachedGlobalResponse; - this[getResponseCache](); - return; - } else { - this.#init = init.#init; - headers = new Headers(init.#init.headers); - } - } else { - this.#init = init; - } - if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) { - headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" }; - this[cacheKey] = [init?.status || 200, body, headers]; - } - } - get headers() { - const cache = this[cacheKey]; - if (cache) { - if (!(cache[2] instanceof Headers)) { - cache[2] = new Headers(cache[2]); - } - return cache[2]; - } - return this[getResponseCache]().headers; - } - get status() { - return this[cacheKey]?.[0] ?? this[getResponseCache]().status; - } - get ok() { - const status = this.status; - return status >= 200 && status < 300; - } -}; -["body", "bodyUsed", "redirected", "statusText", "trailers", "type", "url"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - get() { - return this[getResponseCache]()[k]; - } - }); -}); -["arrayBuffer", "blob", "clone", "formData", "json", "text"].forEach((k) => { - Object.defineProperty(Response2.prototype, k, { - value: function() { - return this[getResponseCache]()[k](); - } - }); -}); -Object.setPrototypeOf(Response2, GlobalResponse); -Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype); - -// src/utils.ts -async function readWithoutBlocking(readPromise) { - return Promise.race([readPromise, Promise.resolve().then(() => Promise.resolve(void 0))]); -} -function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromise) { - const cancel = (error) => { - reader.cancel(error).catch(() => { - }); - }; - writable.on("close", cancel); - writable.on("error", cancel); - (currentReadPromise ?? reader.read()).then(flow, handleStreamError); - return reader.closed.finally(() => { - writable.off("close", cancel); - writable.off("error", cancel); - }); - function handleStreamError(error) { - if (error) { - writable.destroy(error); - } - } - function onDrain() { - reader.read().then(flow, handleStreamError); - } - function flow({ done, value }) { - try { - if (done) { - writable.end(); - } else if (!writable.write(value)) { - writable.once("drain", onDrain); - } else { - return reader.read().then(flow, handleStreamError); - } - } catch (e) { - handleStreamError(e); - } - } -} -function writeFromReadableStream(stream, writable) { - if (stream.locked) { - throw new TypeError("ReadableStream is locked."); - } else if (writable.destroyed) { - return; - } - return writeFromReadableStreamDefaultReader(stream.getReader(), writable); -} -var buildOutgoingHttpHeaders = (headers) => { - const res = {}; - if (!(headers instanceof Headers)) { - headers = new Headers(headers ?? void 0); - } - const cookies = []; - for (const [k, v] of headers) { - if (k === "set-cookie") { - cookies.push(v); - } else { - res[k] = v; - } - } - if (cookies.length > 0) { - res["set-cookie"] = cookies; - } - res["content-type"] ??= "text/plain; charset=UTF-8"; - return res; -}; - -// src/utils/response/constants.ts -var X_ALREADY_SENT = "x-hono-already-sent"; - -// src/globals.ts -import crypto from "crypto"; -var webFetch = global.fetch; -if (typeof global.crypto === "undefined") { - global.crypto = crypto; -} -global.fetch = (info, init) => { - init = { - // Disable compression handling so people can return the result of a fetch - // directly in the loader without messing with the Content-Encoding header. - compress: false, - ...init - }; - return webFetch(info, init); -}; - -// src/listener.ts -var outgoingEnded = Symbol("outgoingEnded"); -var handleRequestError = () => new Response(null, { - status: 400 -}); -var handleFetchError = (e) => new Response(null, { - status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 -}); -var handleResponseError = (e, outgoing) => { - const err = e instanceof Error ? e : new Error("unknown error", { cause: e }); - if (err.code === "ERR_STREAM_PREMATURE_CLOSE") { - console.info("The user aborted a request."); - } else { - console.error(e); - if (!outgoing.headersSent) { - outgoing.writeHead(500, { "Content-Type": "text/plain" }); - } - outgoing.end(`Error: ${err.message}`); - outgoing.destroy(err); - } -}; -var flushHeaders = (outgoing) => { - if ("flushHeaders" in outgoing && outgoing.writable) { - outgoing.flushHeaders(); - } -}; -var responseViaCache = async (res, outgoing) => { - let [status, body, header] = res[cacheKey]; - if (header instanceof Headers) { - header = buildOutgoingHttpHeaders(header); - } - if (typeof body === "string") { - header["Content-Length"] = Buffer.byteLength(body); - } else if (body instanceof Uint8Array) { - header["Content-Length"] = body.byteLength; - } else if (body instanceof Blob) { - header["Content-Length"] = body.size; - } - outgoing.writeHead(status, header); - if (typeof body === "string" || body instanceof Uint8Array) { - outgoing.end(body); - } else if (body instanceof Blob) { - outgoing.end(new Uint8Array(await body.arrayBuffer())); - } else { - flushHeaders(outgoing); - await writeFromReadableStream(body, outgoing)?.catch( - (e) => handleResponseError(e, outgoing) - ); - } - ; - outgoing[outgoingEnded]?.(); -}; -var isPromise = (res) => typeof res.then === "function"; -var responseViaResponseObject = async (res, outgoing, options = {}) => { - if (isPromise(res)) { - if (options.errorHandler) { - try { - res = await res; - } catch (err) { - const errRes = await options.errorHandler(err); - if (!errRes) { - return; - } - res = errRes; - } - } else { - res = await res.catch(handleFetchError); - } - } - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); - if (res.body) { - const reader = res.body.getReader(); - const values = []; - let done = false; - let currentReadPromise = void 0; - if (resHeaderRecord["transfer-encoding"] !== "chunked") { - let maxReadCount = 2; - for (let i = 0; i < maxReadCount; i++) { - currentReadPromise ||= reader.read(); - const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => { - console.error(e); - done = true; - }); - if (!chunk) { - if (i === 1) { - await new Promise((resolve) => setTimeout(resolve)); - maxReadCount = 3; - continue; - } - break; - } - currentReadPromise = void 0; - if (chunk.value) { - values.push(chunk.value); - } - if (chunk.done) { - done = true; - break; - } - } - if (done && !("content-length" in resHeaderRecord)) { - resHeaderRecord["content-length"] = values.reduce((acc, value) => acc + value.length, 0); - } - } - outgoing.writeHead(res.status, resHeaderRecord); - values.forEach((value) => { - ; - outgoing.write(value); - }); - if (done) { - outgoing.end(); - } else { - if (values.length === 0) { - flushHeaders(outgoing); - } - await writeFromReadableStreamDefaultReader(reader, outgoing, currentReadPromise); - } - } else if (resHeaderRecord[X_ALREADY_SENT]) { - } else { - outgoing.writeHead(res.status, resHeaderRecord); - outgoing.end(); - } - ; - outgoing[outgoingEnded]?.(); -}; -var getRequestListener = (fetchCallback, options = {}) => { - const autoCleanupIncoming = options.autoCleanupIncoming ?? true; - if (options.overrideGlobalObjects !== false && global.Request !== Request) { - Object.defineProperty(global, "Request", { - value: Request - }); - Object.defineProperty(global, "Response", { - value: Response2 - }); - } - return async (incoming, outgoing) => { - let res, req; - try { - req = newRequest(incoming, options.hostname); - let incomingEnded = !autoCleanupIncoming || incoming.method === "GET" || incoming.method === "HEAD"; - if (!incomingEnded) { - ; - incoming[wrapBodyStream] = true; - incoming.on("end", () => { - incomingEnded = true; - }); - if (incoming instanceof Http2ServerRequest2) { - ; - outgoing[outgoingEnded] = () => { - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - outgoing.destroy(); - }); - } - }); - } - }; - } - } - outgoing.on("close", () => { - const abortController = req[abortControllerKey]; - if (abortController) { - if (incoming.errored) { - req[abortControllerKey].abort(incoming.errored.toString()); - } else if (!outgoing.writableFinished) { - req[abortControllerKey].abort("Client connection prematurely closed."); - } - } - if (!incomingEnded) { - setTimeout(() => { - if (!incomingEnded) { - setTimeout(() => { - incoming.destroy(); - }); - } - }); - } - }); - res = fetchCallback(req, { incoming, outgoing }); - if (cacheKey in res) { - return responseViaCache(res, outgoing); - } - } catch (e) { - if (!res) { - if (options.errorHandler) { - res = await options.errorHandler(req ? e : toRequestError(e)); - if (!res) { - return; - } - } else if (!req) { - res = handleRequestError(); - } else { - res = handleFetchError(e); - } - } else { - return handleResponseError(e, outgoing); - } - } - try { - return await responseViaResponseObject(res, outgoing, options); - } catch (e) { - return handleResponseError(e, outgoing); - } - }; -}; - -// src/vercel.ts -var handle = (app) => { - return getRequestListener(app.fetch); -}; -export { - handle -}; diff --git a/mcp-server/node_modules/@hono/node-server/package.json b/mcp-server/node_modules/@hono/node-server/package.json deleted file mode 100644 index ee7acfc..0000000 --- a/mcp-server/node_modules/@hono/node-server/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "name": "@hono/node-server", - "version": "1.19.7", - "description": "Node.js Adapter for Hono", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "files": [ - "dist" - ], - "exports": { - ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs" - }, - "./serve-static": { - "types": "./dist/serve-static.d.ts", - "require": "./dist/serve-static.js", - "import": "./dist/serve-static.mjs" - }, - "./vercel": { - "types": "./dist/vercel.d.ts", - "require": "./dist/vercel.js", - "import": "./dist/vercel.mjs" - }, - "./utils/*": { - "types": "./dist/utils/*.d.ts", - "require": "./dist/utils/*.js", - "import": "./dist/utils/*.mjs" - }, - "./conninfo": { - "types": "./dist/conninfo.d.ts", - "require": "./dist/conninfo.js", - "import": "./dist/conninfo.mjs" - } - }, - "typesVersions": { - "*": { - ".": [ - "./dist/index.d.ts" - ], - "serve-static": [ - "./dist/serve-static.d.ts" - ], - "vercel": [ - "./dist/vercel.d.ts" - ], - "utils/*": [ - "./dist/utils/*.d.ts" - ], - "conninfo": [ - "./dist/conninfo.d.ts" - ] - } - }, - "scripts": { - "test": "node --expose-gc node_modules/jest/bin/jest.js", - "build": "tsup --external hono", - "watch": "tsup --watch", - "postbuild": "publint", - "prerelease": "bun run build && bun run test", - "release": "np", - "lint": "eslint src test", - "lint:fix": "eslint src test --fix", - "format": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"", - "format:fix": "prettier --write \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/honojs/node-server.git" - }, - "homepage": "https://github.com/honojs/node-server", - "author": "Yusuke Wada (https://github.com/yusukebe)", - "publishConfig": { - "registry": "https://registry.npmjs.org", - "access": "public" - }, - "engines": { - "node": ">=18.14.1" - }, - "devDependencies": { - "@hono/eslint-config": "^1.0.1", - "@types/jest": "^29.5.3", - "@types/node": "^20.10.0", - "@types/supertest": "^2.0.12", - "@whatwg-node/fetch": "^0.9.14", - "eslint": "^9.10.0", - "hono": "^4.4.10", - "jest": "^29.6.1", - "np": "^7.7.0", - "prettier": "^3.2.4", - "publint": "^0.1.16", - "supertest": "^6.3.3", - "ts-jest": "^29.1.1", - "tsup": "^7.2.0", - "typescript": "^5.3.2" - }, - "peerDependencies": { - "hono": "^4" - }, - "packageManager": "bun@1.2.20" -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/LICENSE deleted file mode 100644 index 3d48435..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Anthropic, PBC - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/README.md deleted file mode 100644 index e0d3f20..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/README.md +++ /dev/null @@ -1,169 +0,0 @@ -# MCP TypeScript SDK ![NPM Version](https://img.shields.io/npm/v/%40modelcontextprotocol%2Fsdk) ![MIT licensed](https://img.shields.io/npm/l/%40modelcontextprotocol%2Fsdk) - -

-Table of Contents - -- [Overview](#overview) -- [Installation](#installation) -- [Quick Start](#quick-start) -- [Core Concepts](#core-concepts) -- [Examples](#examples) -- [Documentation](#documentation) -- [Contributing](#contributing) -- [License](#license) - -
- -## Overview - -The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements -[the full MCP specification](https://modelcontextprotocol.io/specification/draft), making it easy to: - -- Create MCP servers that expose resources, prompts and tools -- Build MCP clients that can connect to any MCP server -- Use standard transports like stdio and Streamable HTTP - -## Installation - -```bash -npm install @modelcontextprotocol/sdk zod -``` - -This SDK has a **required peer dependency** on `zod` for schema validation. The SDK internally imports from `zod/v4`, but maintains backwards compatibility with projects using Zod v3.25 or later. You can use either API in your code by importing from `zod/v3` or `zod/v4`: - -## Quick Start - -To see the SDK in action end-to-end, start from the runnable examples in `src/examples`: - -1. **Install dependencies** (from the SDK repo root): - - ```bash - npm install - ``` - -2. **Run the example Streamable HTTP server**: - - ```bash - npx tsx src/examples/server/simpleStreamableHttp.ts - ``` - -3. **Run the interactive client in another terminal**: - - ```bash - npx tsx src/examples/client/simpleStreamableHttp.ts - ``` - -This pair of examples demonstrates tools, resources, prompts, sampling, elicitation, tasks and logging. For a guided walkthrough and variations (stateless servers, JSON-only responses, SSE compatibility, OAuth, etc.), see [docs/server.md](docs/server.md) and -[docs/client.md](docs/client.md). - -## Core Concepts - -### Servers and transports - -An MCP server is typically created with `McpServer` and connected to a transport such as Streamable HTTP or stdio. The SDK supports: - -- **Streamable HTTP** for remote servers (recommended). -- **HTTP + SSE** for backwards compatibility only. -- **stdio** for local, process-spawned integrations. - -Runnable server examples live under `src/examples/server` and are documented in [docs/server.md](docs/server.md). - -### Tools, resources, prompts - -- **Tools** let LLMs ask your server to take actions (computation, side effects, network calls). -- **Resources** expose read-only data that clients can surface to users or models. -- **Prompts** are reusable templates that help users talk to models in a consistent way. - -The detailed APIs, including `ResourceTemplate`, completions, and display-name metadata, are covered in [docs/server.md](docs/server.md#tools-resources-and-prompts), with runnable implementations in [`simpleStreamableHttp.ts`](src/examples/server/simpleStreamableHttp.ts). - -### Capabilities: sampling, elicitation, and tasks - -The SDK includes higher-level capabilities for richer workflows: - -- **Sampling**: server-side tools can ask connected clients to run LLM completions. -- **Form elicitation**: tools can request non-sensitive input via structured forms. -- **URL elicitation**: servers can ask users to complete secure flows in a browser (e.g., API key entry, payments, OAuth). -- **Tasks (experimental)**: long-running tool calls can be turned into tasks that you poll or resume later. - -Conceptual overviews and links to runnable examples are in: - -- [docs/capabilities.md](docs/capabilities.md) - -Key example servers include: - -- [`toolWithSampleServer.ts`](src/examples/server/toolWithSampleServer.ts) -- [`elicitationFormExample.ts`](src/examples/server/elicitationFormExample.ts) -- [`elicitationUrlExample.ts`](src/examples/server/elicitationUrlExample.ts) - -### Clients - -The high-level `Client` class connects to MCP servers over different transports and exposes helpers like `listTools`, `callTool`, `listResources`, `readResource`, `listPrompts`, and `getPrompt`. - -Runnable clients live under `src/examples/client` and are described in [docs/client.md](docs/client.md), including: - -- Interactive Streamable HTTP client ([`simpleStreamableHttp.ts`](src/examples/client/simpleStreamableHttp.ts)) -- Streamable HTTP client with SSE fallback ([`streamableHttpWithSseFallbackClient.ts`](src/examples/client/streamableHttpWithSseFallbackClient.ts)) -- OAuth-enabled clients and polling/parallel examples - -### Node.js Web Crypto (globalThis.crypto) compatibility - -Some parts of the SDK (for example, JWT-based client authentication in `auth-extensions.ts` via `jose`) rely on the Web Crypto API exposed as `globalThis.crypto`. - -See [docs/faq.md](docs/faq.md) for details on supported Node.js versions and how to polyfill `globalThis.crypto` when running on older Node.js runtimes. - -## Examples - -The SDK ships runnable examples under `src/examples`. Use these tables to find the scenario you care about and jump straight to the corresponding code and docs. - -### Server examples - -| Scenario | Description | Example file(s) | Related docs | -| --------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -| Streamable HTTP server (stateful) | Feature-rich server with tools, resources, prompts, logging, tasks, sampling, and optional OAuth. | [`simpleStreamableHttp.ts`](src/examples/server/simpleStreamableHttp.ts) | [`server.md`](docs/server.md), [`capabilities.md`](docs/capabilities.md) | -| Streamable HTTP server (stateless) | No session tracking; good for simple API-style servers. | [`simpleStatelessStreamableHttp.ts`](src/examples/server/simpleStatelessStreamableHttp.ts) | [`server.md`](docs/server.md) | -| JSON response mode (no SSE) | Streamable HTTP with JSON responses only and limited notifications. | [`jsonResponseStreamableHttp.ts`](src/examples/server/jsonResponseStreamableHttp.ts) | [`server.md`](docs/server.md) | -| Server notifications over Streamable HTTP | Demonstrates server-initiated notifications using SSE with Streamable HTTP. | [`standaloneSseWithGetStreamableHttp.ts`](src/examples/server/standaloneSseWithGetStreamableHttp.ts) | [`server.md`](docs/server.md) | -| Deprecated HTTP+SSE server | Legacy HTTP+SSE transport for backwards-compatibility testing. | [`simpleSseServer.ts`](src/examples/server/simpleSseServer.ts) | [`server.md`](docs/server.md) | -| Backwards-compatible server (Streamable HTTP + SSE) | Single server that supports both Streamable HTTP and legacy SSE clients. | [`sseAndStreamableHttpCompatibleServer.ts`](src/examples/server/sseAndStreamableHttpCompatibleServer.ts) | [`server.md`](docs/server.md) | -| Form elicitation server | Uses form elicitation to collect non-sensitive user input. | [`elicitationFormExample.ts`](src/examples/server/elicitationFormExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) | -| URL elicitation server | Demonstrates URL-mode elicitation in an OAuth-protected server. | [`elicitationUrlExample.ts`](src/examples/server/elicitationUrlExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) | -| Sampling and tasks server | Combines tools, logging, sampling, and experimental task-based execution. | [`toolWithSampleServer.ts`](src/examples/server/toolWithSampleServer.ts) | [`capabilities.md`](docs/capabilities.md) | -| OAuth demo authorization server | In-memory OAuth provider used with the example servers. | [`demoInMemoryOAuthProvider.ts`](src/examples/server/demoInMemoryOAuthProvider.ts) | [`server.md`](docs/server.md) | - -### Client examples - -| Scenario | Description | Example file(s) | Related docs | -| --------------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -| Interactive Streamable HTTP client | CLI client that exercises tools, resources, prompts, elicitation, and tasks. | [`simpleStreamableHttp.ts`](src/examples/client/simpleStreamableHttp.ts) | [`client.md`](docs/client.md) | -| Backwards-compatible client (Streamable HTTP → SSE) | Tries Streamable HTTP first, then falls back to SSE on 4xx responses. | [`streamableHttpWithSseFallbackClient.ts`](src/examples/client/streamableHttpWithSseFallbackClient.ts) | [`client.md`](docs/client.md), [`server.md`](docs/server.md) | -| SSE polling client | Polls a legacy SSE server and demonstrates notification handling. | [`ssePollingClient.ts`](src/examples/client/ssePollingClient.ts) | [`client.md`](docs/client.md) | -| Parallel tool calls client | Shows how to run multiple tool calls in parallel. | [`parallelToolCallsClient.ts`](src/examples/client/parallelToolCallsClient.ts) | [`client.md`](docs/client.md) | -| Multiple clients in parallel | Demonstrates connecting multiple clients concurrently to the same server. | [`multipleClientsParallel.ts`](src/examples/client/multipleClientsParallel.ts) | [`client.md`](docs/client.md) | -| OAuth clients | Examples of client_credentials (basic and private_key_jwt) and reusable providers. | [`simpleOAuthClient.ts`](src/examples/client/simpleOAuthClient.ts), [`simpleOAuthClientProvider.ts`](src/examples/client/simpleOAuthClientProvider.ts), [`simpleClientCredentials.ts`](src/examples/client/simpleClientCredentials.ts) | [`client.md`](docs/client.md) | -| URL elicitation client | Works with the URL elicitation server to drive secure browser flows. | [`elicitationUrlExample.ts`](src/examples/client/elicitationUrlExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) | - -Shared utilities: - -- In-memory event store for resumability: [`inMemoryEventStore.ts`](src/examples/shared/inMemoryEventStore.ts) (see [`server.md`](docs/server.md)). - -For more details on how to run these examples (including recommended commands and deployment diagrams), see `src/examples/README.md`. - -## Documentation - -- Local SDK docs: - - [docs/server.md](docs/server.md) – building and running MCP servers, transports, tools/resources/prompts, CORS, DNS rebinding, and multi-node deployment. - - [docs/client.md](docs/client.md) – using the high-level client, transports, backwards compatibility, and OAuth helpers. - - [docs/capabilities.md](docs/capabilities.md) – sampling, elicitation (form and URL), and experimental task-based execution. - - [docs/faq.md](docs/faq.md) – environment and troubleshooting FAQs (including Node.js Web Crypto support). -- External references: - - [Model Context Protocol documentation](https://modelcontextprotocol.io) - - [MCP Specification](https://spec.modelcontextprotocol.io) - - [Example Servers](https://github.com/modelcontextprotocol/servers) - -## Contributing - -Issues and pull requests are welcome on GitHub at . - -## License - -This project is licensed under the MIT License—see the [LICENSE](LICENSE) file for details. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts deleted file mode 100644 index 2a3f6bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * OAuth provider extensions for specialized authentication flows. - * - * This module provides ready-to-use OAuthClientProvider implementations - * for common machine-to-machine authentication scenarios. - */ -import { OAuthClientInformation, OAuthClientMetadata, OAuthTokens } from '../shared/auth.js'; -import { AddClientAuthentication, OAuthClientProvider } from './auth.js'; -/** - * Helper to produce a private_key_jwt client authentication function. - * - * Usage: - * const addClientAuth = createPrivateKeyJwtAuth({ issuer, subject, privateKey, alg, audience? }); - * // pass addClientAuth as provider.addClientAuthentication implementation - */ -export declare function createPrivateKeyJwtAuth(options: { - issuer: string; - subject: string; - privateKey: string | Uint8Array | Record; - alg: string; - audience?: string | URL; - lifetimeSeconds?: number; - claims?: Record; -}): AddClientAuthentication; -/** - * Options for creating a ClientCredentialsProvider. - */ -export interface ClientCredentialsProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * The client_secret for client_secret_basic authentication. - */ - clientSecret: string; - /** - * Optional client name for metadata. - */ - clientName?: string; -} -/** - * OAuth provider for client_credentials grant with client_secret_basic authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a client_id and client_secret. - * - * @example - * const provider = new ClientCredentialsProvider({ - * clientId: 'my-client', - * clientSecret: 'my-secret' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export declare class ClientCredentialsProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - constructor(options: ClientCredentialsProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -/** - * Options for creating a PrivateKeyJwtProvider. - */ -export interface PrivateKeyJwtProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * The private key for signing JWT assertions. - * Can be a PEM string, Uint8Array, or JWK object. - */ - privateKey: string | Uint8Array | Record; - /** - * The algorithm to use for signing (e.g., 'RS256', 'ES256'). - */ - algorithm: string; - /** - * Optional client name for metadata. - */ - clientName?: string; - /** - * Optional JWT lifetime in seconds (default: 300). - */ - jwtLifetimeSeconds?: number; -} -/** - * OAuth provider for client_credentials grant with private_key_jwt authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a signed JWT assertion (RFC 7523 Section 2.2). - * - * @example - * const provider = new PrivateKeyJwtProvider({ - * clientId: 'my-client', - * privateKey: pemEncodedPrivateKey, - * algorithm: 'RS256' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export declare class PrivateKeyJwtProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - addClientAuthentication: AddClientAuthentication; - constructor(options: PrivateKeyJwtProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -/** - * Options for creating a StaticPrivateKeyJwtProvider. - */ -export interface StaticPrivateKeyJwtProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * A pre-built JWT client assertion to use for authentication. - * - * This token should already contain the appropriate claims - * (iss, sub, aud, exp, etc.) and be signed by the client's key. - */ - jwtBearerAssertion: string; - /** - * Optional client name for metadata. - */ - clientName?: string; -} -/** - * OAuth provider for client_credentials grant with a static private_key_jwt assertion. - * - * This provider mirrors {@link PrivateKeyJwtProvider} but instead of constructing and - * signing a JWT on each request, it accepts a pre-built JWT assertion string and - * uses it directly for authentication. - */ -export declare class StaticPrivateKeyJwtProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - addClientAuthentication: AddClientAuthentication; - constructor(options: StaticPrivateKeyJwtProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -//# sourceMappingURL=auth-extensions.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map deleted file mode 100644 index 863e23a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"au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EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IACnE,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,eAAe,CAAsB;IAC7C,uBAAuB,EAAE,uBAAuB,CAAC;gBAErC,OAAO,EAAE,kCAAkC;IAkBvD,IAAI,WAAW,IAAI,SAAS,CAE3B;IAED,IAAI,cAAc,IAAI,mBAAmB,CAExC;IAED,iBAAiB,IAAI,sBAAsB;IAI3C,qBAAqB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI;IAIzD,MAAM,IAAI,WAAW,GAAG,SAAS;IAIjC,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIrC,uBAAuB,IAAI,IAAI;IAI/B,gBAAgB,IAAI,IAAI;IAIxB,YAAY,IAAI,MAAM;IAItB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,eAAe;CAKvD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js deleted file mode 100644 index ca75167..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +++ /dev/null @@ -1,296 +0,0 @@ -"use strict"; -/** - * OAuth provider extensions for specialized authentication flows. - * - * This module provides ready-to-use OAuthClientProvider implementations - * for common machine-to-machine authentication scenarios. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StaticPrivateKeyJwtProvider = exports.PrivateKeyJwtProvider = exports.ClientCredentialsProvider = void 0; -exports.createPrivateKeyJwtAuth = createPrivateKeyJwtAuth; -/** - * Helper to produce a private_key_jwt client authentication function. - * - * Usage: - * const addClientAuth = createPrivateKeyJwtAuth({ issuer, subject, privateKey, alg, audience? }); - * // pass addClientAuth as provider.addClientAuthentication implementation - */ -function createPrivateKeyJwtAuth(options) { - return async (_headers, params, url, metadata) => { - // Lazy import to avoid heavy dependency unless used - if (typeof globalThis.crypto === 'undefined') { - throw new TypeError('crypto is not available, please ensure you add have Web Crypto API support for older Node.js versions (see https://github.com/modelcontextprotocol/typescript-sdk#nodejs-web-crypto-globalthiscrypto-compatibility)'); - } - const jose = await Promise.resolve().then(() => __importStar(require('jose'))); - const audience = String(options.audience ?? metadata?.issuer ?? url); - const lifetimeSeconds = options.lifetimeSeconds ?? 300; - const now = Math.floor(Date.now() / 1000); - const jti = `${Date.now()}-${Math.random().toString(36).slice(2)}`; - const baseClaims = { - iss: options.issuer, - sub: options.subject, - aud: audience, - exp: now + lifetimeSeconds, - iat: now, - jti - }; - const claims = options.claims ? { ...baseClaims, ...options.claims } : baseClaims; - // Import key for the requested algorithm - const alg = options.alg; - let key; - if (typeof options.privateKey === 'string') { - if (alg.startsWith('RS') || alg.startsWith('ES') || alg.startsWith('PS')) { - key = await jose.importPKCS8(options.privateKey, alg); - } - else if (alg.startsWith('HS')) { - key = new TextEncoder().encode(options.privateKey); - } - else { - throw new Error(`Unsupported algorithm ${alg}`); - } - } - else if (options.privateKey instanceof Uint8Array) { - if (alg.startsWith('HS')) { - key = options.privateKey; - } - else { - // Assume PKCS#8 DER in Uint8Array for asymmetric algorithms - key = await jose.importPKCS8(new TextDecoder().decode(options.privateKey), alg); - } - } - else { - // Treat as JWK - key = await jose.importJWK(options.privateKey, alg); - } - // Sign JWT - const assertion = await new jose.SignJWT(claims) - .setProtectedHeader({ alg, typ: 'JWT' }) - .setIssuer(options.issuer) - .setSubject(options.subject) - .setAudience(audience) - .setIssuedAt(now) - .setExpirationTime(now + lifetimeSeconds) - .setJti(jti) - .sign(key); - params.set('client_assertion', assertion); - params.set('client_assertion_type', 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'); - }; -} -/** - * OAuth provider for client_credentials grant with client_secret_basic authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a client_id and client_secret. - * - * @example - * const provider = new ClientCredentialsProvider({ - * clientId: 'my-client', - * clientSecret: 'my-secret' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -class ClientCredentialsProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId, - client_secret: options.clientSecret - }; - this._clientMetadata = { - client_name: options.clientName ?? 'client-credentials-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'client_secret_basic' - }; - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -exports.ClientCredentialsProvider = ClientCredentialsProvider; -/** - * OAuth provider for client_credentials grant with private_key_jwt authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a signed JWT assertion (RFC 7523 Section 2.2). - * - * @example - * const provider = new PrivateKeyJwtProvider({ - * clientId: 'my-client', - * privateKey: pemEncodedPrivateKey, - * algorithm: 'RS256' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -class PrivateKeyJwtProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId - }; - this._clientMetadata = { - client_name: options.clientName ?? 'private-key-jwt-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'private_key_jwt' - }; - this.addClientAuthentication = createPrivateKeyJwtAuth({ - issuer: options.clientId, - subject: options.clientId, - privateKey: options.privateKey, - alg: options.algorithm, - lifetimeSeconds: options.jwtLifetimeSeconds - }); - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -exports.PrivateKeyJwtProvider = PrivateKeyJwtProvider; -/** - * OAuth provider for client_credentials grant with a static private_key_jwt assertion. - * - * This provider mirrors {@link PrivateKeyJwtProvider} but instead of constructing and - * signing a JWT on each request, it accepts a pre-built JWT assertion string and - * uses it directly for authentication. - */ -class StaticPrivateKeyJwtProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId - }; - this._clientMetadata = { - client_name: options.clientName ?? 'static-private-key-jwt-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'private_key_jwt' - }; - const assertion = options.jwtBearerAssertion; - this.addClientAuthentication = async (_headers, params) => { - params.set('client_assertion', assertion); - params.set('client_assertion_type', 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'); - }; - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -exports.StaticPrivateKeyJwtProvider = StaticPrivateKeyJwtProvider; -//# sourceMappingURL=auth-extensions.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map deleted file mode 100644 index fc5bc6e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-extensions.js","sourceRoot":"","sources":["../../../src/client/auth-extensions.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;AAaH,0DAwEC;AA/ED;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,OAQvC;IACG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QAC7C,oDAAoD;QACpD,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YAC3C,MAAM,IAAI,SAAS,CACf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C1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,uBAAuB;QACnB,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACvF,CAAC;IAED,gBAAgB;QACZ,kCAAkC;IACtC,CAAC;IAED,YAAY;QACR,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,mBAAmB,CAAC,KAAc;QAC9B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACzE,IAAI,KAAK;YAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAjED,kEAiEC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts deleted file mode 100644 index c1405d6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { OAuthClientMetadata, OAuthClientInformationMixed, OAuthTokens, OAuthMetadata, OAuthClientInformationFull, OAuthProtectedResourceMetadata, AuthorizationServerMetadata } from '../shared/auth.js'; -import { OAuthError } from '../server/auth/errors.js'; -import { FetchLike } from '../shared/transport.js'; -/** - * Function type for adding client authentication to token requests. - */ -export type AddClientAuthentication = (headers: Headers, params: URLSearchParams, url: string | URL, metadata?: AuthorizationServerMetadata) => void | Promise; -/** - * Implements an end-to-end OAuth client to be used with one MCP server. - * - * This client relies upon a concept of an authorized "session," the exact - * meaning of which is application-defined. Tokens, authorization codes, and - * code verifiers should not cross different sessions. - */ -export interface OAuthClientProvider { - /** - * The URL to redirect the user agent to after authorization. - * Return undefined for non-interactive flows that don't require user interaction - * (e.g., client_credentials, jwt-bearer). - */ - get redirectUrl(): string | URL | undefined; - /** - * External URL the server should use to fetch client metadata document - */ - clientMetadataUrl?: string; - /** - * Metadata about this OAuth client. - */ - get clientMetadata(): OAuthClientMetadata; - /** - * Returns a OAuth2 state parameter. - */ - state?(): string | Promise; - /** - * Loads information about this OAuth client, as registered already with the - * server, or returns `undefined` if the client is not registered with the - * server. - */ - clientInformation(): OAuthClientInformationMixed | undefined | Promise; - /** - * If implemented, this permits the OAuth client to dynamically register with - * the server. Client information saved this way should later be read via - * `clientInformation()`. - * - * This method is not required to be implemented if client information is - * statically known (e.g., pre-registered). - */ - saveClientInformation?(clientInformation: OAuthClientInformationMixed): void | Promise; - /** - * Loads any existing OAuth tokens for the current session, or returns - * `undefined` if there are no saved tokens. - */ - tokens(): OAuthTokens | undefined | Promise; - /** - * Stores new OAuth tokens for the current session, after a successful - * authorization. - */ - saveTokens(tokens: OAuthTokens): void | Promise; - /** - * Invoked to redirect the user agent to the given URL to begin the authorization flow. - */ - redirectToAuthorization(authorizationUrl: URL): void | Promise; - /** - * Saves a PKCE code verifier for the current session, before redirecting to - * the authorization flow. - */ - saveCodeVerifier(codeVerifier: string): void | Promise; - /** - * Loads the PKCE code verifier for the current session, necessary to validate - * the authorization result. - */ - codeVerifier(): string | Promise; - /** - * Adds custom client authentication to OAuth token requests. - * - * This optional method allows implementations to customize how client credentials - * are included in token exchange and refresh requests. When provided, this method - * is called instead of the default authentication logic, giving full control over - * the authentication mechanism. - * - * Common use cases include: - * - Supporting authentication methods beyond the standard OAuth 2.0 methods - * - Adding custom headers for proprietary authentication schemes - * - Implementing client assertion-based authentication (e.g., JWT bearer tokens) - * - * @param headers - The request headers (can be modified to add authentication) - * @param params - The request body parameters (can be modified to add credentials) - * @param url - The token endpoint URL being called - * @param metadata - Optional OAuth metadata for the server, which may include supported authentication methods - */ - addClientAuthentication?: AddClientAuthentication; - /** - * If defined, overrides the selection and validation of the - * RFC 8707 Resource Indicator. If left undefined, default - * validation behavior will be used. - * - * Implementations must verify the returned resource matches the MCP server. - */ - validateResourceURL?(serverUrl: string | URL, resource?: string): Promise; - /** - * If implemented, provides a way for the client to invalidate (e.g. delete) the specified - * credentials, in the case where the server has indicated that they are no longer valid. - * This avoids requiring the user to intervene manually. - */ - invalidateCredentials?(scope: 'all' | 'client' | 'tokens' | 'verifier'): void | Promise; - /** - * Prepares grant-specific parameters for a token request. - * - * This optional method allows providers to customize the token request based on - * the grant type they support. When implemented, it returns the grant type and - * any grant-specific parameters needed for the token exchange. - * - * If not implemented, the default behavior depends on the flow: - * - For authorization code flow: uses code, code_verifier, and redirect_uri - * - For client_credentials: detected via grant_types in clientMetadata - * - * @param scope - Optional scope to request - * @returns Grant type and parameters, or undefined to use default behavior - * - * @example - * // For client_credentials grant: - * prepareTokenRequest(scope) { - * return { - * grantType: 'client_credentials', - * params: scope ? { scope } : {} - * }; - * } - * - * @example - * // For authorization_code grant (default behavior): - * async prepareTokenRequest() { - * return { - * grantType: 'authorization_code', - * params: { - * code: this.authorizationCode, - * code_verifier: await this.codeVerifier(), - * redirect_uri: String(this.redirectUrl) - * } - * }; - * } - */ - prepareTokenRequest?(scope?: string): URLSearchParams | Promise | undefined; -} -export type AuthResult = 'AUTHORIZED' | 'REDIRECT'; -export declare class UnauthorizedError extends Error { - constructor(message?: string); -} -type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none'; -/** - * Determines the best client authentication method to use based on server support and client configuration. - * - * Priority order (highest to lowest): - * 1. client_secret_basic (if client secret is available) - * 2. client_secret_post (if client secret is available) - * 3. none (for public clients) - * - * @param clientInformation - OAuth client information containing credentials - * @param supportedMethods - Authentication methods supported by the authorization server - * @returns The selected authentication method - */ -export declare function selectClientAuthMethod(clientInformation: OAuthClientInformationMixed, supportedMethods: string[]): ClientAuthMethod; -/** - * Parses an OAuth error response from a string or Response object. - * - * If the input is a standard OAuth2.0 error response, it will be parsed according to the spec - * and an instance of the appropriate OAuthError subclass will be returned. - * If parsing fails, it falls back to a generic ServerError that includes - * the response status (if available) and original content. - * - * @param input - A Response object or string containing the error response - * @returns A Promise that resolves to an OAuthError instance - */ -export declare function parseErrorResponse(input: Response | string): Promise; -/** - * Orchestrates the full auth flow with a server. - * - * This can be used as a single entry point for all authorization functionality, - * instead of linking together the other lower-level functions in this module. - */ -export declare function auth(provider: OAuthClientProvider, options: { - serverUrl: string | URL; - authorizationCode?: string; - scope?: string; - resourceMetadataUrl?: URL; - fetchFn?: FetchLike; -}): Promise; -/** - * SEP-991: URL-based Client IDs - * Validate that the client_id is a valid URL with https scheme - */ -export declare function isHttpsUrl(value?: string): boolean; -export declare function selectResourceURL(serverUrl: string | URL, provider: OAuthClientProvider, resourceMetadata?: OAuthProtectedResourceMetadata): Promise; -/** - * Extract resource_metadata, scope, and error from WWW-Authenticate header. - */ -export declare function extractWWWAuthenticateParams(res: Response): { - resourceMetadataUrl?: URL; - scope?: string; - error?: string; -}; -/** - * Extract resource_metadata from response header. - * @deprecated Use `extractWWWAuthenticateParams` instead. - */ -export declare function extractResourceMetadataUrl(res: Response): URL | undefined; -/** - * Looks up RFC 9728 OAuth 2.0 Protected Resource Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - */ -export declare function discoverOAuthProtectedResourceMetadata(serverUrl: string | URL, opts?: { - protocolVersion?: string; - resourceMetadataUrl?: string | URL; -}, fetchFn?: FetchLike): Promise; -/** - * Looks up RFC 8414 OAuth 2.0 Authorization Server Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - * - * @deprecated This function is deprecated in favor of `discoverAuthorizationServerMetadata`. - */ -export declare function discoverOAuthMetadata(issuer: string | URL, { authorizationServerUrl, protocolVersion }?: { - authorizationServerUrl?: string | URL; - protocolVersion?: string; -}, fetchFn?: FetchLike): Promise; -/** - * Builds a list of discovery URLs to try for authorization server metadata. - * URLs are returned in priority order: - * 1. OAuth metadata at the given URL - * 2. OIDC metadata endpoints at the given URL - */ -export declare function buildDiscoveryUrls(authorizationServerUrl: string | URL): { - url: URL; - type: 'oauth' | 'oidc'; -}[]; -/** - * Discovers authorization server metadata with support for RFC 8414 OAuth 2.0 Authorization Server Metadata - * and OpenID Connect Discovery 1.0 specifications. - * - * This function implements a fallback strategy for authorization server discovery: - * 1. Attempts RFC 8414 OAuth metadata discovery first - * 2. If OAuth discovery fails, falls back to OpenID Connect Discovery - * - * @param authorizationServerUrl - The authorization server URL obtained from the MCP Server's - * protected resource metadata, or the MCP server's URL if the - * metadata was not found. - * @param options - Configuration options - * @param options.fetchFn - Optional fetch function for making HTTP requests, defaults to global fetch - * @param options.protocolVersion - MCP protocol version to use, defaults to LATEST_PROTOCOL_VERSION - * @returns Promise resolving to authorization server metadata, or undefined if discovery fails - */ -export declare function discoverAuthorizationServerMetadata(authorizationServerUrl: string | URL, { fetchFn, protocolVersion }?: { - fetchFn?: FetchLike; - protocolVersion?: string; -}): Promise; -/** - * Begins the authorization flow with the given server, by generating a PKCE challenge and constructing the authorization URL. - */ -export declare function startAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, redirectUrl, scope, state, resource }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - redirectUrl: string | URL; - scope?: string; - state?: string; - resource?: URL; -}): Promise<{ - authorizationUrl: URL; - codeVerifier: string; -}>; -/** - * Prepares token request parameters for an authorization code exchange. - * - * This is the default implementation used by fetchToken when the provider - * doesn't implement prepareTokenRequest. - * - * @param authorizationCode - The authorization code received from the authorization endpoint - * @param codeVerifier - The PKCE code verifier - * @param redirectUri - The redirect URI used in the authorization request - * @returns URLSearchParams for the authorization_code grant - */ -export declare function prepareAuthorizationCodeRequest(authorizationCode: string, codeVerifier: string, redirectUri: string | URL): URLSearchParams; -/** - * Exchanges an authorization code for an access token with the given server. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Falls back to appropriate defaults when server metadata is unavailable - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, auth code, etc. - * @returns Promise resolving to OAuth tokens - * @throws {Error} When token exchange fails or authentication is invalid - */ -export declare function exchangeAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, authorizationCode, codeVerifier, redirectUri, resource, addClientAuthentication, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - authorizationCode: string; - codeVerifier: string; - redirectUri: string | URL; - resource?: URL; - addClientAuthentication?: OAuthClientProvider['addClientAuthentication']; - fetchFn?: FetchLike; -}): Promise; -/** - * Exchange a refresh token for an updated access token. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Preserves the original refresh token if a new one is not returned - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, refresh token, etc. - * @returns Promise resolving to OAuth tokens (preserves original refresh_token if not replaced) - * @throws {Error} When token refresh fails or authentication is invalid - */ -export declare function refreshAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - refreshToken: string; - resource?: URL; - addClientAuthentication?: OAuthClientProvider['addClientAuthentication']; - fetchFn?: FetchLike; -}): Promise; -/** - * Unified token fetching that works with any grant type via provider.prepareTokenRequest(). - * - * This function provides a single entry point for obtaining tokens regardless of the - * OAuth grant type. The provider's prepareTokenRequest() method determines which grant - * to use and supplies the grant-specific parameters. - * - * @param provider - OAuth client provider that implements prepareTokenRequest() - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration for the token request - * @returns Promise resolving to OAuth tokens - * @throws {Error} When provider doesn't implement prepareTokenRequest or token fetch fails - * - * @example - * // Provider for client_credentials: - * class MyProvider implements OAuthClientProvider { - * prepareTokenRequest(scope) { - * const params = new URLSearchParams({ grant_type: 'client_credentials' }); - * if (scope) params.set('scope', scope); - * return params; - * } - * // ... other methods - * } - * - * const tokens = await fetchToken(provider, authServerUrl, { metadata }); - */ -export declare function fetchToken(provider: OAuthClientProvider, authorizationServerUrl: string | URL, { metadata, resource, authorizationCode, fetchFn }?: { - metadata?: AuthorizationServerMetadata; - resource?: URL; - /** Authorization code for the default authorization_code grant flow */ - authorizationCode?: string; - fetchFn?: FetchLike; -}): Promise; -/** - * Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591. - */ -export declare function registerClient(authorizationServerUrl: string | URL, { metadata, clientMetadata, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientMetadata: OAuthClientMetadata; - fetchFn?: FetchLike; -}): Promise; -export {}; -//# sourceMappingURL=auth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map deleted file mode 100644 index 012c440..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/client/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,mBAAmB,EAEnB,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,8BAA8B,EAE9B,2BAA2B,EAE9B,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAKH,UAAU,EAGb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAClC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,QAAQ,CAAC,EAAE,2BAA2B,KACrC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,GA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AAC,CAWtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CACtC,sBAAsB,EAAE,MAAM,GAAG,GAAG,EACpC,EACI,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,uBAAuB,EACvB,OAAO,EACV,EAAE;IACC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,iBAAiB,EAAE,2BAA2B,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,uBAAuB,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,GACF,OAAO,CAAC,WAAW,CAAC,CAiBtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,UAAU,CAC5B,QAAQ,EAAE,mBAAmB,EAC7B,sBAAsB,EAAE,MAAM,GAAG,GAAG,EACpC,EACI,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACV,GAAE;IACC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;CAClB,GACP,OAAO,CAAC,WAAW,CAAC,CA+BtB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAChC,sBAAsB,EAAE,MAAM,GAAG,GAAG,EACpC,EACI,QAAQ,EACR,cAAc,EACd,OAAO,EACV,EAAE;IACC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,cAAc,EAAE,mBAAmB,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,GACF,OAAO,CAAC,0BAA0B,CAAC,CA0BrC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js deleted file mode 100644 index f89657f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +++ /dev/null @@ -1,848 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnauthorizedError = void 0; -exports.selectClientAuthMethod = selectClientAuthMethod; -exports.parseErrorResponse = parseErrorResponse; -exports.auth = auth; -exports.isHttpsUrl = isHttpsUrl; -exports.selectResourceURL = selectResourceURL; -exports.extractWWWAuthenticateParams = extractWWWAuthenticateParams; -exports.extractResourceMetadataUrl = extractResourceMetadataUrl; -exports.discoverOAuthProtectedResourceMetadata = discoverOAuthProtectedResourceMetadata; -exports.discoverOAuthMetadata = discoverOAuthMetadata; -exports.buildDiscoveryUrls = buildDiscoveryUrls; -exports.discoverAuthorizationServerMetadata = discoverAuthorizationServerMetadata; -exports.startAuthorization = startAuthorization; -exports.prepareAuthorizationCodeRequest = prepareAuthorizationCodeRequest; -exports.exchangeAuthorization = exchangeAuthorization; -exports.refreshAuthorization = refreshAuthorization; -exports.fetchToken = fetchToken; -exports.registerClient = registerClient; -const pkce_challenge_1 = __importDefault(require("pkce-challenge")); -const types_js_1 = require("../types.js"); -const auth_js_1 = require("../shared/auth.js"); -const auth_js_2 = require("../shared/auth.js"); -const auth_utils_js_1 = require("../shared/auth-utils.js"); -const errors_js_1 = require("../server/auth/errors.js"); -class UnauthorizedError extends Error { - constructor(message) { - super(message ?? 'Unauthorized'); - } -} -exports.UnauthorizedError = UnauthorizedError; -function isClientAuthMethod(method) { - return ['client_secret_basic', 'client_secret_post', 'none'].includes(method); -} -const AUTHORIZATION_CODE_RESPONSE_TYPE = 'code'; -const AUTHORIZATION_CODE_CHALLENGE_METHOD = 'S256'; -/** - * Determines the best client authentication method to use based on server support and client configuration. - * - * Priority order (highest to lowest): - * 1. client_secret_basic (if client secret is available) - * 2. client_secret_post (if client secret is available) - * 3. none (for public clients) - * - * @param clientInformation - OAuth client information containing credentials - * @param supportedMethods - Authentication methods supported by the authorization server - * @returns The selected authentication method - */ -function selectClientAuthMethod(clientInformation, supportedMethods) { - const hasClientSecret = clientInformation.client_secret !== undefined; - // If server doesn't specify supported methods, use RFC 6749 defaults - if (supportedMethods.length === 0) { - return hasClientSecret ? 'client_secret_post' : 'none'; - } - // Prefer the method returned by the server during client registration if valid and supported - if ('token_endpoint_auth_method' in clientInformation && - clientInformation.token_endpoint_auth_method && - isClientAuthMethod(clientInformation.token_endpoint_auth_method) && - supportedMethods.includes(clientInformation.token_endpoint_auth_method)) { - return clientInformation.token_endpoint_auth_method; - } - // Try methods in priority order (most secure first) - if (hasClientSecret && supportedMethods.includes('client_secret_basic')) { - return 'client_secret_basic'; - } - if (hasClientSecret && supportedMethods.includes('client_secret_post')) { - return 'client_secret_post'; - } - if (supportedMethods.includes('none')) { - return 'none'; - } - // Fallback: use what we have - return hasClientSecret ? 'client_secret_post' : 'none'; -} -/** - * Applies client authentication to the request based on the specified method. - * - * Implements OAuth 2.1 client authentication methods: - * - client_secret_basic: HTTP Basic authentication (RFC 6749 Section 2.3.1) - * - client_secret_post: Credentials in request body (RFC 6749 Section 2.3.1) - * - none: Public client authentication (RFC 6749 Section 2.1) - * - * @param method - The authentication method to use - * @param clientInformation - OAuth client information containing credentials - * @param headers - HTTP headers object to modify - * @param params - URL search parameters to modify - * @throws {Error} When required credentials are missing - */ -function applyClientAuthentication(method, clientInformation, headers, params) { - const { client_id, client_secret } = clientInformation; - switch (method) { - case 'client_secret_basic': - applyBasicAuth(client_id, client_secret, headers); - return; - case 'client_secret_post': - applyPostAuth(client_id, client_secret, params); - return; - case 'none': - applyPublicAuth(client_id, params); - return; - default: - throw new Error(`Unsupported client authentication method: ${method}`); - } -} -/** - * Applies HTTP Basic authentication (RFC 6749 Section 2.3.1) - */ -function applyBasicAuth(clientId, clientSecret, headers) { - if (!clientSecret) { - throw new Error('client_secret_basic authentication requires a client_secret'); - } - const credentials = btoa(`${clientId}:${clientSecret}`); - headers.set('Authorization', `Basic ${credentials}`); -} -/** - * Applies POST body authentication (RFC 6749 Section 2.3.1) - */ -function applyPostAuth(clientId, clientSecret, params) { - params.set('client_id', clientId); - if (clientSecret) { - params.set('client_secret', clientSecret); - } -} -/** - * Applies public client authentication (RFC 6749 Section 2.1) - */ -function applyPublicAuth(clientId, params) { - params.set('client_id', clientId); -} -/** - * Parses an OAuth error response from a string or Response object. - * - * If the input is a standard OAuth2.0 error response, it will be parsed according to the spec - * and an instance of the appropriate OAuthError subclass will be returned. - * If parsing fails, it falls back to a generic ServerError that includes - * the response status (if available) and original content. - * - * @param input - A Response object or string containing the error response - * @returns A Promise that resolves to an OAuthError instance - */ -async function parseErrorResponse(input) { - const statusCode = input instanceof Response ? input.status : undefined; - const body = input instanceof Response ? await input.text() : input; - try { - const result = auth_js_1.OAuthErrorResponseSchema.parse(JSON.parse(body)); - const { error, error_description, error_uri } = result; - const errorClass = errors_js_1.OAUTH_ERRORS[error] || errors_js_1.ServerError; - return new errorClass(error_description || '', error_uri); - } - catch (error) { - // Not a valid OAuth error response, but try to inform the user of the raw data anyway - const errorMessage = `${statusCode ? `HTTP ${statusCode}: ` : ''}Invalid OAuth error response: ${error}. Raw body: ${body}`; - return new errors_js_1.ServerError(errorMessage); - } -} -/** - * Orchestrates the full auth flow with a server. - * - * This can be used as a single entry point for all authorization functionality, - * instead of linking together the other lower-level functions in this module. - */ -async function auth(provider, options) { - try { - return await authInternal(provider, options); - } - catch (error) { - // Handle recoverable error types by invalidating credentials and retrying - if (error instanceof errors_js_1.InvalidClientError || error instanceof errors_js_1.UnauthorizedClientError) { - await provider.invalidateCredentials?.('all'); - return await authInternal(provider, options); - } - else if (error instanceof errors_js_1.InvalidGrantError) { - await provider.invalidateCredentials?.('tokens'); - return await authInternal(provider, options); - } - // Throw otherwise - throw error; - } -} -async function authInternal(provider, { serverUrl, authorizationCode, scope, resourceMetadataUrl, fetchFn }) { - let resourceMetadata; - let authorizationServerUrl; - try { - resourceMetadata = await discoverOAuthProtectedResourceMetadata(serverUrl, { resourceMetadataUrl }, fetchFn); - if (resourceMetadata.authorization_servers && resourceMetadata.authorization_servers.length > 0) { - authorizationServerUrl = resourceMetadata.authorization_servers[0]; - } - } - catch { - // Ignore errors and fall back to /.well-known/oauth-authorization-server - } - /** - * If we don't get a valid authorization server metadata from protected resource metadata, - * fallback to the legacy MCP spec's implementation (version 2025-03-26): MCP server base URL acts as the Authorization server. - */ - if (!authorizationServerUrl) { - authorizationServerUrl = new URL('/', serverUrl); - } - const resource = await selectResourceURL(serverUrl, provider, resourceMetadata); - const metadata = await discoverAuthorizationServerMetadata(authorizationServerUrl, { - fetchFn - }); - // Handle client registration if needed - let clientInformation = await Promise.resolve(provider.clientInformation()); - if (!clientInformation) { - if (authorizationCode !== undefined) { - throw new Error('Existing OAuth client information is required when exchanging an authorization code'); - } - const supportsUrlBasedClientId = metadata?.client_id_metadata_document_supported === true; - const clientMetadataUrl = provider.clientMetadataUrl; - if (clientMetadataUrl && !isHttpsUrl(clientMetadataUrl)) { - throw new errors_js_1.InvalidClientMetadataError(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${clientMetadataUrl}`); - } - const shouldUseUrlBasedClientId = supportsUrlBasedClientId && clientMetadataUrl; - if (shouldUseUrlBasedClientId) { - // SEP-991: URL-based Client IDs - clientInformation = { - client_id: clientMetadataUrl - }; - await provider.saveClientInformation?.(clientInformation); - } - else { - // Fallback to dynamic registration - if (!provider.saveClientInformation) { - throw new Error('OAuth client information must be saveable for dynamic registration'); - } - const fullInformation = await registerClient(authorizationServerUrl, { - metadata, - clientMetadata: provider.clientMetadata, - fetchFn - }); - await provider.saveClientInformation(fullInformation); - clientInformation = fullInformation; - } - } - // Non-interactive flows (e.g., client_credentials, jwt-bearer) don't need a redirect URL - const nonInteractiveFlow = !provider.redirectUrl; - // Exchange authorization code for tokens, or fetch tokens directly for non-interactive flows - if (authorizationCode !== undefined || nonInteractiveFlow) { - const tokens = await fetchToken(provider, authorizationServerUrl, { - metadata, - resource, - authorizationCode, - fetchFn - }); - await provider.saveTokens(tokens); - return 'AUTHORIZED'; - } - const tokens = await provider.tokens(); - // Handle token refresh or new authorization - if (tokens?.refresh_token) { - try { - // Attempt to refresh the token - const newTokens = await refreshAuthorization(authorizationServerUrl, { - metadata, - clientInformation, - refreshToken: tokens.refresh_token, - resource, - addClientAuthentication: provider.addClientAuthentication, - fetchFn - }); - await provider.saveTokens(newTokens); - return 'AUTHORIZED'; - } - catch (error) { - // If this is a ServerError, or an unknown type, log it out and try to continue. Otherwise, escalate so we can fix things and retry. - if (!(error instanceof errors_js_1.OAuthError) || error instanceof errors_js_1.ServerError) { - // Could not refresh OAuth tokens - } - else { - // Refresh failed for another reason, re-throw - throw error; - } - } - } - const state = provider.state ? await provider.state() : undefined; - // Start new authorization flow - const { authorizationUrl, codeVerifier } = await startAuthorization(authorizationServerUrl, { - metadata, - clientInformation, - state, - redirectUrl: provider.redirectUrl, - scope: scope || resourceMetadata?.scopes_supported?.join(' ') || provider.clientMetadata.scope, - resource - }); - await provider.saveCodeVerifier(codeVerifier); - await provider.redirectToAuthorization(authorizationUrl); - return 'REDIRECT'; -} -/** - * SEP-991: URL-based Client IDs - * Validate that the client_id is a valid URL with https scheme - */ -function isHttpsUrl(value) { - if (!value) - return false; - try { - const url = new URL(value); - return url.protocol === 'https:' && url.pathname !== '/'; - } - catch { - return false; - } -} -async function selectResourceURL(serverUrl, provider, resourceMetadata) { - const defaultResource = (0, auth_utils_js_1.resourceUrlFromServerUrl)(serverUrl); - // If provider has custom validation, delegate to it - if (provider.validateResourceURL) { - return await provider.validateResourceURL(defaultResource, resourceMetadata?.resource); - } - // Only include resource parameter when Protected Resource Metadata is present - if (!resourceMetadata) { - return undefined; - } - // Validate that the metadata's resource is compatible with our request - if (!(0, auth_utils_js_1.checkResourceAllowed)({ requestedResource: defaultResource, configuredResource: resourceMetadata.resource })) { - throw new Error(`Protected resource ${resourceMetadata.resource} does not match expected ${defaultResource} (or origin)`); - } - // Prefer the resource from metadata since it's what the server is telling us to request - return new URL(resourceMetadata.resource); -} -/** - * Extract resource_metadata, scope, and error from WWW-Authenticate header. - */ -function extractWWWAuthenticateParams(res) { - const authenticateHeader = res.headers.get('WWW-Authenticate'); - if (!authenticateHeader) { - return {}; - } - const [type, scheme] = authenticateHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !scheme) { - return {}; - } - const resourceMetadataMatch = extractFieldFromWwwAuth(res, 'resource_metadata') || undefined; - let resourceMetadataUrl; - if (resourceMetadataMatch) { - try { - resourceMetadataUrl = new URL(resourceMetadataMatch); - } - catch { - // Ignore invalid URL - } - } - const scope = extractFieldFromWwwAuth(res, 'scope') || undefined; - const error = extractFieldFromWwwAuth(res, 'error') || undefined; - return { - resourceMetadataUrl, - scope, - error - }; -} -/** - * Extracts a specific field's value from the WWW-Authenticate header string. - * - * @param response The HTTP response object containing the headers. - * @param fieldName The name of the field to extract (e.g., "realm", "nonce"). - * @returns The field value - */ -function extractFieldFromWwwAuth(response, fieldName) { - const wwwAuthHeader = response.headers.get('WWW-Authenticate'); - if (!wwwAuthHeader) { - return null; - } - const pattern = new RegExp(`${fieldName}=(?:"([^"]+)"|([^\\s,]+))`); - const match = wwwAuthHeader.match(pattern); - if (match) { - // Pattern matches: field_name="value" or field_name=value (unquoted) - return match[1] || match[2]; - } - return null; -} -/** - * Extract resource_metadata from response header. - * @deprecated Use `extractWWWAuthenticateParams` instead. - */ -function extractResourceMetadataUrl(res) { - const authenticateHeader = res.headers.get('WWW-Authenticate'); - if (!authenticateHeader) { - return undefined; - } - const [type, scheme] = authenticateHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !scheme) { - return undefined; - } - const regex = /resource_metadata="([^"]*)"/; - const match = regex.exec(authenticateHeader); - if (!match) { - return undefined; - } - try { - return new URL(match[1]); - } - catch { - return undefined; - } -} -/** - * Looks up RFC 9728 OAuth 2.0 Protected Resource Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - */ -async function discoverOAuthProtectedResourceMetadata(serverUrl, opts, fetchFn = fetch) { - const response = await discoverMetadataWithFallback(serverUrl, 'oauth-protected-resource', fetchFn, { - protocolVersion: opts?.protocolVersion, - metadataUrl: opts?.resourceMetadataUrl - }); - if (!response || response.status === 404) { - await response?.body?.cancel(); - throw new Error(`Resource server does not implement OAuth 2.0 Protected Resource Metadata.`); - } - if (!response.ok) { - await response.body?.cancel(); - throw new Error(`HTTP ${response.status} trying to load well-known OAuth protected resource metadata.`); - } - return auth_js_2.OAuthProtectedResourceMetadataSchema.parse(await response.json()); -} -/** - * Helper function to handle fetch with CORS retry logic - */ -async function fetchWithCorsRetry(url, headers, fetchFn = fetch) { - try { - return await fetchFn(url, { headers }); - } - catch (error) { - if (error instanceof TypeError) { - if (headers) { - // CORS errors come back as TypeError, retry without headers - return fetchWithCorsRetry(url, undefined, fetchFn); - } - else { - // We're getting CORS errors on retry too, return undefined - return undefined; - } - } - throw error; - } -} -/** - * Constructs the well-known path for auth-related metadata discovery - */ -function buildWellKnownPath(wellKnownPrefix, pathname = '', options = {}) { - // Strip trailing slash from pathname to avoid double slashes - if (pathname.endsWith('/')) { - pathname = pathname.slice(0, -1); - } - return options.prependPathname ? `${pathname}/.well-known/${wellKnownPrefix}` : `/.well-known/${wellKnownPrefix}${pathname}`; -} -/** - * Tries to discover OAuth metadata at a specific URL - */ -async function tryMetadataDiscovery(url, protocolVersion, fetchFn = fetch) { - const headers = { - 'MCP-Protocol-Version': protocolVersion - }; - return await fetchWithCorsRetry(url, headers, fetchFn); -} -/** - * Determines if fallback to root discovery should be attempted - */ -function shouldAttemptFallback(response, pathname) { - return !response || (response.status >= 400 && response.status < 500 && pathname !== '/'); -} -/** - * Generic function for discovering OAuth metadata with fallback support - */ -async function discoverMetadataWithFallback(serverUrl, wellKnownType, fetchFn, opts) { - const issuer = new URL(serverUrl); - const protocolVersion = opts?.protocolVersion ?? types_js_1.LATEST_PROTOCOL_VERSION; - let url; - if (opts?.metadataUrl) { - url = new URL(opts.metadataUrl); - } - else { - // Try path-aware discovery first - const wellKnownPath = buildWellKnownPath(wellKnownType, issuer.pathname); - url = new URL(wellKnownPath, opts?.metadataServerUrl ?? issuer); - url.search = issuer.search; - } - let response = await tryMetadataDiscovery(url, protocolVersion, fetchFn); - // If path-aware discovery fails with 404 and we're not already at root, try fallback to root discovery - if (!opts?.metadataUrl && shouldAttemptFallback(response, issuer.pathname)) { - const rootUrl = new URL(`/.well-known/${wellKnownType}`, issuer); - response = await tryMetadataDiscovery(rootUrl, protocolVersion, fetchFn); - } - return response; -} -/** - * Looks up RFC 8414 OAuth 2.0 Authorization Server Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - * - * @deprecated This function is deprecated in favor of `discoverAuthorizationServerMetadata`. - */ -async function discoverOAuthMetadata(issuer, { authorizationServerUrl, protocolVersion } = {}, fetchFn = fetch) { - if (typeof issuer === 'string') { - issuer = new URL(issuer); - } - if (!authorizationServerUrl) { - authorizationServerUrl = issuer; - } - if (typeof authorizationServerUrl === 'string') { - authorizationServerUrl = new URL(authorizationServerUrl); - } - protocolVersion ?? (protocolVersion = types_js_1.LATEST_PROTOCOL_VERSION); - const response = await discoverMetadataWithFallback(authorizationServerUrl, 'oauth-authorization-server', fetchFn, { - protocolVersion, - metadataServerUrl: authorizationServerUrl - }); - if (!response || response.status === 404) { - await response?.body?.cancel(); - return undefined; - } - if (!response.ok) { - await response.body?.cancel(); - throw new Error(`HTTP ${response.status} trying to load well-known OAuth metadata`); - } - return auth_js_2.OAuthMetadataSchema.parse(await response.json()); -} -/** - * Builds a list of discovery URLs to try for authorization server metadata. - * URLs are returned in priority order: - * 1. OAuth metadata at the given URL - * 2. OIDC metadata endpoints at the given URL - */ -function buildDiscoveryUrls(authorizationServerUrl) { - const url = typeof authorizationServerUrl === 'string' ? new URL(authorizationServerUrl) : authorizationServerUrl; - const hasPath = url.pathname !== '/'; - const urlsToTry = []; - if (!hasPath) { - // Root path: https://example.com/.well-known/oauth-authorization-server - urlsToTry.push({ - url: new URL('/.well-known/oauth-authorization-server', url.origin), - type: 'oauth' - }); - // OIDC: https://example.com/.well-known/openid-configuration - urlsToTry.push({ - url: new URL(`/.well-known/openid-configuration`, url.origin), - type: 'oidc' - }); - return urlsToTry; - } - // Strip trailing slash from pathname to avoid double slashes - let pathname = url.pathname; - if (pathname.endsWith('/')) { - pathname = pathname.slice(0, -1); - } - // 1. OAuth metadata at the given URL - // Insert well-known before the path: https://example.com/.well-known/oauth-authorization-server/tenant1 - urlsToTry.push({ - url: new URL(`/.well-known/oauth-authorization-server${pathname}`, url.origin), - type: 'oauth' - }); - // 2. OIDC metadata endpoints - // RFC 8414 style: Insert /.well-known/openid-configuration before the path - urlsToTry.push({ - url: new URL(`/.well-known/openid-configuration${pathname}`, url.origin), - type: 'oidc' - }); - // OIDC Discovery 1.0 style: Append /.well-known/openid-configuration after the path - urlsToTry.push({ - url: new URL(`${pathname}/.well-known/openid-configuration`, url.origin), - type: 'oidc' - }); - return urlsToTry; -} -/** - * Discovers authorization server metadata with support for RFC 8414 OAuth 2.0 Authorization Server Metadata - * and OpenID Connect Discovery 1.0 specifications. - * - * This function implements a fallback strategy for authorization server discovery: - * 1. Attempts RFC 8414 OAuth metadata discovery first - * 2. If OAuth discovery fails, falls back to OpenID Connect Discovery - * - * @param authorizationServerUrl - The authorization server URL obtained from the MCP Server's - * protected resource metadata, or the MCP server's URL if the - * metadata was not found. - * @param options - Configuration options - * @param options.fetchFn - Optional fetch function for making HTTP requests, defaults to global fetch - * @param options.protocolVersion - MCP protocol version to use, defaults to LATEST_PROTOCOL_VERSION - * @returns Promise resolving to authorization server metadata, or undefined if discovery fails - */ -async function discoverAuthorizationServerMetadata(authorizationServerUrl, { fetchFn = fetch, protocolVersion = types_js_1.LATEST_PROTOCOL_VERSION } = {}) { - const headers = { - 'MCP-Protocol-Version': protocolVersion, - Accept: 'application/json' - }; - // Get the list of URLs to try - const urlsToTry = buildDiscoveryUrls(authorizationServerUrl); - // Try each URL in order - for (const { url: endpointUrl, type } of urlsToTry) { - const response = await fetchWithCorsRetry(endpointUrl, headers, fetchFn); - if (!response) { - /** - * CORS error occurred - don't throw as the endpoint may not allow CORS, - * continue trying other possible endpoints - */ - continue; - } - if (!response.ok) { - await response.body?.cancel(); - // Continue looking for any 4xx response code. - if (response.status >= 400 && response.status < 500) { - continue; // Try next URL - } - throw new Error(`HTTP ${response.status} trying to load ${type === 'oauth' ? 'OAuth' : 'OpenID provider'} metadata from ${endpointUrl}`); - } - // Parse and validate based on type - if (type === 'oauth') { - return auth_js_2.OAuthMetadataSchema.parse(await response.json()); - } - else { - return auth_js_1.OpenIdProviderDiscoveryMetadataSchema.parse(await response.json()); - } - } - return undefined; -} -/** - * Begins the authorization flow with the given server, by generating a PKCE challenge and constructing the authorization URL. - */ -async function startAuthorization(authorizationServerUrl, { metadata, clientInformation, redirectUrl, scope, state, resource }) { - let authorizationUrl; - if (metadata) { - authorizationUrl = new URL(metadata.authorization_endpoint); - if (!metadata.response_types_supported.includes(AUTHORIZATION_CODE_RESPONSE_TYPE)) { - throw new Error(`Incompatible auth server: does not support response type ${AUTHORIZATION_CODE_RESPONSE_TYPE}`); - } - if (metadata.code_challenge_methods_supported && - !metadata.code_challenge_methods_supported.includes(AUTHORIZATION_CODE_CHALLENGE_METHOD)) { - throw new Error(`Incompatible auth server: does not support code challenge method ${AUTHORIZATION_CODE_CHALLENGE_METHOD}`); - } - } - else { - authorizationUrl = new URL('/authorize', authorizationServerUrl); - } - // Generate PKCE challenge - const challenge = await (0, pkce_challenge_1.default)(); - const codeVerifier = challenge.code_verifier; - const codeChallenge = challenge.code_challenge; - authorizationUrl.searchParams.set('response_type', AUTHORIZATION_CODE_RESPONSE_TYPE); - authorizationUrl.searchParams.set('client_id', clientInformation.client_id); - authorizationUrl.searchParams.set('code_challenge', codeChallenge); - authorizationUrl.searchParams.set('code_challenge_method', AUTHORIZATION_CODE_CHALLENGE_METHOD); - authorizationUrl.searchParams.set('redirect_uri', String(redirectUrl)); - if (state) { - authorizationUrl.searchParams.set('state', state); - } - if (scope) { - authorizationUrl.searchParams.set('scope', scope); - } - if (scope?.includes('offline_access')) { - // if the request includes the OIDC-only "offline_access" scope, - // we need to set the prompt to "consent" to ensure the user is prompted to grant offline access - // https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess - authorizationUrl.searchParams.append('prompt', 'consent'); - } - if (resource) { - authorizationUrl.searchParams.set('resource', resource.href); - } - return { authorizationUrl, codeVerifier }; -} -/** - * Prepares token request parameters for an authorization code exchange. - * - * This is the default implementation used by fetchToken when the provider - * doesn't implement prepareTokenRequest. - * - * @param authorizationCode - The authorization code received from the authorization endpoint - * @param codeVerifier - The PKCE code verifier - * @param redirectUri - The redirect URI used in the authorization request - * @returns URLSearchParams for the authorization_code grant - */ -function prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, redirectUri) { - return new URLSearchParams({ - grant_type: 'authorization_code', - code: authorizationCode, - code_verifier: codeVerifier, - redirect_uri: String(redirectUri) - }); -} -/** - * Internal helper to execute a token request with the given parameters. - * Used by exchangeAuthorization, refreshAuthorization, and fetchToken. - */ -async function executeTokenRequest(authorizationServerUrl, { metadata, tokenRequestParams, clientInformation, addClientAuthentication, resource, fetchFn }) { - const tokenUrl = metadata?.token_endpoint ? new URL(metadata.token_endpoint) : new URL('/token', authorizationServerUrl); - const headers = new Headers({ - 'Content-Type': 'application/x-www-form-urlencoded', - Accept: 'application/json' - }); - if (resource) { - tokenRequestParams.set('resource', resource.href); - } - if (addClientAuthentication) { - await addClientAuthentication(headers, tokenRequestParams, tokenUrl, metadata); - } - else if (clientInformation) { - const supportedMethods = metadata?.token_endpoint_auth_methods_supported ?? []; - const authMethod = selectClientAuthMethod(clientInformation, supportedMethods); - applyClientAuthentication(authMethod, clientInformation, headers, tokenRequestParams); - } - const response = await (fetchFn ?? fetch)(tokenUrl, { - method: 'POST', - headers, - body: tokenRequestParams - }); - if (!response.ok) { - throw await parseErrorResponse(response); - } - return auth_js_2.OAuthTokensSchema.parse(await response.json()); -} -/** - * Exchanges an authorization code for an access token with the given server. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Falls back to appropriate defaults when server metadata is unavailable - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, auth code, etc. - * @returns Promise resolving to OAuth tokens - * @throws {Error} When token exchange fails or authentication is invalid - */ -async function exchangeAuthorization(authorizationServerUrl, { metadata, clientInformation, authorizationCode, codeVerifier, redirectUri, resource, addClientAuthentication, fetchFn }) { - const tokenRequestParams = prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, redirectUri); - return executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation, - addClientAuthentication, - resource, - fetchFn - }); -} -/** - * Exchange a refresh token for an updated access token. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Preserves the original refresh token if a new one is not returned - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, refresh token, etc. - * @returns Promise resolving to OAuth tokens (preserves original refresh_token if not replaced) - * @throws {Error} When token refresh fails or authentication is invalid - */ -async function refreshAuthorization(authorizationServerUrl, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }) { - const tokenRequestParams = new URLSearchParams({ - grant_type: 'refresh_token', - refresh_token: refreshToken - }); - const tokens = await executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation, - addClientAuthentication, - resource, - fetchFn - }); - // Preserve original refresh token if server didn't return a new one - return { refresh_token: refreshToken, ...tokens }; -} -/** - * Unified token fetching that works with any grant type via provider.prepareTokenRequest(). - * - * This function provides a single entry point for obtaining tokens regardless of the - * OAuth grant type. The provider's prepareTokenRequest() method determines which grant - * to use and supplies the grant-specific parameters. - * - * @param provider - OAuth client provider that implements prepareTokenRequest() - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration for the token request - * @returns Promise resolving to OAuth tokens - * @throws {Error} When provider doesn't implement prepareTokenRequest or token fetch fails - * - * @example - * // Provider for client_credentials: - * class MyProvider implements OAuthClientProvider { - * prepareTokenRequest(scope) { - * const params = new URLSearchParams({ grant_type: 'client_credentials' }); - * if (scope) params.set('scope', scope); - * return params; - * } - * // ... other methods - * } - * - * const tokens = await fetchToken(provider, authServerUrl, { metadata }); - */ -async function fetchToken(provider, authorizationServerUrl, { metadata, resource, authorizationCode, fetchFn } = {}) { - const scope = provider.clientMetadata.scope; - // Use provider's prepareTokenRequest if available, otherwise fall back to authorization_code - let tokenRequestParams; - if (provider.prepareTokenRequest) { - tokenRequestParams = await provider.prepareTokenRequest(scope); - } - // Default to authorization_code grant if no custom prepareTokenRequest - if (!tokenRequestParams) { - if (!authorizationCode) { - throw new Error('Either provider.prepareTokenRequest() or authorizationCode is required'); - } - if (!provider.redirectUrl) { - throw new Error('redirectUrl is required for authorization_code flow'); - } - const codeVerifier = await provider.codeVerifier(); - tokenRequestParams = prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, provider.redirectUrl); - } - const clientInformation = await provider.clientInformation(); - return executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation: clientInformation ?? undefined, - addClientAuthentication: provider.addClientAuthentication, - resource, - fetchFn - }); -} -/** - * Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591. - */ -async function registerClient(authorizationServerUrl, { metadata, clientMetadata, fetchFn }) { - let registrationUrl; - if (metadata) { - if (!metadata.registration_endpoint) { - throw new Error('Incompatible auth server: does not support dynamic client registration'); - } - registrationUrl = new URL(metadata.registration_endpoint); - } - else { - registrationUrl = new URL('/register', authorizationServerUrl); - } - const response = await (fetchFn ?? fetch)(registrationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(clientMetadata) - }); - if (!response.ok) { - throw await parseErrorResponse(response); - } - return auth_js_2.OAuthClientInformationFullSchema.parse(await response.json()); -} -//# sourceMappingURL=auth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map deleted file mode 100644 index dab4f2a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/client/auth.ts"],"names":[],"mappings":";;;;;;AA8NA,wDAiCC;AA+ED,gDAcC;AAQD,oBAyBC;AAsJD,gCAQC;AAED,8CAuBC;AAKD,oEA8BC;AA8BD,gEAsBC;AAQD,wFAoBC;AAgGD,sDAsCC;AAQD,gDAgDC;AAkBD,kFAkDC;AAKD,gDAmEC;AAaD,0EAWC;AAoED,sDAgCC;AAcD,oDAkCC;AA4BD,gCA8CC;AAKD,wCAqCC;AAjxCD,oEAA2C;AAC3C,0CAAsD;AACtD,+CAW2B;AAC3B,+CAK2B;AAC3B,2DAAyF;AACzF,wDAQkC;AAsKlC,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAY,OAAgB;QACxB,KAAK,CAAC,OAAO,IAAI,cAAc,CAAC,CAAC;IACrC,CAAC;CACJ;AAJD,8CAIC;AAID,SAAS,kBAAkB,CAAC,MAAc;IACtC,OAAO,CAAC,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,gCAAgC,GAAG,MAAM,CAAC;AAChD,MAAM,mCAAmC,GAAG,MAAM,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,SAAgB,sBAAsB,CAAC,iBAA8C,EAAE,gBAA0B;IAC7G,MAAM,eAAe,GAAG,iBAAiB,CAAC,aAAa,KAAK,SAAS,CA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CAAC;QAED,eAAe,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC9D,CAAC;SAAM,CAAC;QACJ,eAAe,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE,sBAAsB,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,IAAI,KAAK,CAAC,CAAC,eAAe,EAAE;QACvD,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACL,cAAc,EAAE,kBAAkB;SACrC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC;KACvC,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,0CAAgC,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts deleted file mode 100644 index efc0186..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +++ /dev/null @@ -1,588 +0,0 @@ -import { Protocol, type ProtocolOptions, type RequestOptions } from '../shared/protocol.js'; -import type { Transport } from '../shared/transport.js'; -import { type CallToolRequest, CallToolResultSchema, type ClientCapabilities, type ClientNotification, type ClientRequest, type ClientResult, type CompatibilityCallToolResultSchema, type CompleteRequest, type GetPromptRequest, type Implementation, type ListPromptsRequest, type ListResourcesRequest, type ListResourceTemplatesRequest, type ListToolsRequest, type LoggingLevel, type ReadResourceRequest, type ServerCapabilities, type SubscribeRequest, type UnsubscribeRequest, type ListChangedHandlers, type Request, type Notification, type Result } from '../types.js'; -import type { jsonSchemaValidator } from '../validation/types.js'; -import { AnyObjectSchema, SchemaOutput } from '../server/zod-compat.js'; -import type { RequestHandlerExtra } from '../shared/protocol.js'; -import { ExperimentalClientTasks } from '../experimental/tasks/client.js'; -/** - * Determines which elicitation modes are supported based on declared client capabilities. - * - * According to the spec: - * - An empty elicitation capability object defaults to form mode support (backwards compatibility) - * - URL mode is only supported if explicitly declared - * - * @param capabilities - The client's elicitation capabilities - * @returns An object indicating which modes are supported - */ -export declare function getSupportedElicitationModes(capabilities: ClientCapabilities['elicitation']): { - supportsFormMode: boolean; - supportsUrlMode: boolean; -}; -export type ClientOptions = ProtocolOptions & { - /** - * Capabilities to advertise as being supported by this client. - */ - capabilities?: ClientCapabilities; - /** - * JSON Schema validator for tool output validation. - * - * The validator is used to validate structured content returned by tools - * against their declared output schemas. - * - * @default AjvJsonSchemaValidator - * - * @example - * ```typescript - * // ajv - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new AjvJsonSchemaValidator() - * } - * ); - * - * // @cfworker/json-schema - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new CfWorkerJsonSchemaValidator() - * } - * ); - * ``` - */ - jsonSchemaValidator?: jsonSchemaValidator; - /** - * Configure handlers for list changed notifications (tools, prompts, resources). - * - * @example - * ```typescript - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * listChanged: { - * tools: { - * onChanged: (error, tools) => { - * if (error) { - * console.error('Failed to refresh tools:', error); - * return; - * } - * console.log('Tools updated:', tools); - * } - * }, - * prompts: { - * onChanged: (error, prompts) => console.log('Prompts updated:', prompts) - * } - * } - * } - * ); - * ``` - */ - listChanged?: ListChangedHandlers; -}; -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed client - * const client = new Client({ - * name: "CustomClient", - * version: "1.0.0" - * }) - * ``` - */ -export declare class Client extends Protocol { - private _clientInfo; - private _serverCapabilities?; - private _serverVersion?; - private _capabilities; - private _instructions?; - private _jsonSchemaValidator; - private _cachedToolOutputValidators; - private _cachedKnownTaskTools; - private _cachedRequiredTaskTools; - private _experimental?; - private _listChangedDebounceTimers; - private _pendingListChangedConfig?; - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo: Implementation, options?: ClientOptions); - /** - * Set up handlers for list changed notifications based on config and server capabilities. - * This should only be called after initialization when server capabilities are known. - * Handlers are silently skipped if the server doesn't advertise the corresponding listChanged capability. - * @internal - */ - private _setupListChangedHandlers; - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalClientTasks; - }; - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities: ClientCapabilities): void; - /** - * Override request handler registration to enforce client-side validation for elicitation. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => ClientResult | ResultT | Promise): void; - protected assertCapability(capability: keyof ServerCapabilities, method: string): void; - connect(transport: Transport, options?: RequestOptions): Promise; - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities(): ServerCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion(): Implementation | undefined; - /** - * After initialization has completed, this may be populated with information about the server's instructions. - */ - getInstructions(): string | undefined; - protected assertCapabilityForMethod(method: RequestT['method']): void; - protected assertNotificationCapability(method: NotificationT['method']): void; - protected assertRequestHandlerCapability(method: string): void; - protected assertTaskCapability(method: string): void; - protected assertTaskHandlerCapability(method: string): void; - ping(options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - complete(params: CompleteRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - completion: { - [x: string]: unknown; - values: string[]; - total?: number | undefined; - hasMore?: boolean | undefined; - }; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - setLoggingLevel(level: LoggingLevel, options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - getPrompt(params: GetPromptRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - messages: { - role: "user" | "assistant"; - content: { - type: "text"; - text: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "image"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "audio"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "resource"; - resource: { - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - }; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - uri: string; - name: string; - type: "resource_link"; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - description?: string | undefined; - }>; - listPrompts(params?: ListPromptsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - prompts: { - name: string; - description?: string | undefined; - arguments?: { - name: string; - description?: string | undefined; - required?: boolean | undefined; - }[] | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - listResources(params?: ListResourcesRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - resources: { - uri: string; - name: string; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - listResourceTemplates(params?: ListResourceTemplatesRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - resourceTemplates: { - uriTemplate: string; - name: string; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - readResource(params: ReadResourceRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - contents: ({ - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - })[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - subscribeResource(params: SubscribeRequest['params'], options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - unsubscribeResource(params: UnsubscribeRequest['params'], options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Calls a tool and waits for the result. Automatically validates structured output if the tool has an outputSchema. - * - * For task-based execution with streaming behavior, use client.experimental.tasks.callToolStream() instead. - */ - callTool(params: CallToolRequest['params'], resultSchema?: typeof CallToolResultSchema | typeof CompatibilityCallToolResultSchema, options?: RequestOptions): Promise<{ - [x: string]: unknown; - content: ({ - type: "text"; - text: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "image"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "audio"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "resource"; - resource: { - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - }; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - uri: string; - name: string; - type: "resource_link"; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - })[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - structuredContent?: Record | undefined; - isError?: boolean | undefined; - } | { - [x: string]: unknown; - toolResult: unknown; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - private isToolTask; - /** - * Check if a tool requires task-based execution. - * Unlike isToolTask which includes 'optional' tools, this only checks for 'required'. - */ - private isToolTaskRequired; - /** - * Cache validators for tool output schemas. - * Called after listTools() to pre-compile validators for better performance. - */ - private cacheToolMetadata; - /** - * Get cached validator for a tool - */ - private getToolOutputValidator; - listTools(params?: ListToolsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - tools: { - inputSchema: { - [x: string]: unknown; - type: "object"; - properties?: Record | undefined; - required?: string[] | undefined; - }; - name: string; - description?: string | undefined; - outputSchema?: { - [x: string]: unknown; - type: "object"; - properties?: Record | undefined; - required?: string[] | undefined; - } | undefined; - annotations?: { - title?: string | undefined; - readOnlyHint?: boolean | undefined; - destructiveHint?: boolean | undefined; - idempotentHint?: boolean | undefined; - openWorldHint?: boolean | undefined; - } | undefined; - execution?: { - taskSupport?: "optional" | "required" | "forbidden" | undefined; - } | undefined; - _meta?: Record | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - /** - * Set up a single list changed handler. - * @internal - */ - private _setupListChangedHandler; - sendRootsListChanged(): Promise; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map deleted file mode 100644 index f66bbdb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACH,KAAK,eAAe,EACpB,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EAIpB,KAAK,gBAAgB,EAErB,KAAK,cAAc,EAGnB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,4BAA4B,EAEjC,KAAK,gBAAgB,EAErB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EAExB,KAAK,kBAAkB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AC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;IAI5E,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;IAI9E,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;IAIxF;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,EACjC,YAAY,GAAE,OAAO,oBAAoB,GAAG,OAAO,iCAAwD,EAC3G,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD5B,OAAO,CAAC,UAAU;IAQlB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAIxB,SAAS,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS7E;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAwD1B,oBAAoB;CAG7B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js deleted file mode 100644 index 2e05752..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +++ /dev/null @@ -1,627 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Client = void 0; -exports.getSupportedElicitationModes = getSupportedElicitationModes; -const protocol_js_1 = require("../shared/protocol.js"); -const types_js_1 = require("../types.js"); -const ajv_provider_js_1 = require("../validation/ajv-provider.js"); -const zod_compat_js_1 = require("../server/zod-compat.js"); -const client_js_1 = require("../experimental/tasks/client.js"); -const helpers_js_1 = require("../experimental/tasks/helpers.js"); -/** - * Elicitation default application helper. Applies defaults to the data based on the schema. - * - * @param schema - The schema to apply defaults to. - * @param data - The data to apply defaults to. - */ -function applyElicitationDefaults(schema, data) { - if (!schema || data === null || typeof data !== 'object') - return; - // Handle object properties - if (schema.type === 'object' && schema.properties && typeof schema.properties === 'object') { - const obj = data; - const props = schema.properties; - for (const key of Object.keys(props)) { - const propSchema = props[key]; - // If missing or explicitly undefined, apply default if present - if (obj[key] === undefined && Object.prototype.hasOwnProperty.call(propSchema, 'default')) { - obj[key] = propSchema.default; - } - // Recurse into existing nested objects/arrays - if (obj[key] !== undefined) { - applyElicitationDefaults(propSchema, obj[key]); - } - } - } - if (Array.isArray(schema.anyOf)) { - for (const sub of schema.anyOf) { - // Skip boolean schemas (true/false are valid JSON Schemas but have no defaults) - if (typeof sub !== 'boolean') { - applyElicitationDefaults(sub, data); - } - } - } - // Combine schemas - if (Array.isArray(schema.oneOf)) { - for (const sub of schema.oneOf) { - // Skip boolean schemas (true/false are valid JSON Schemas but have no defaults) - if (typeof sub !== 'boolean') { - applyElicitationDefaults(sub, data); - } - } - } -} -/** - * Determines which elicitation modes are supported based on declared client capabilities. - * - * According to the spec: - * - An empty elicitation capability object defaults to form mode support (backwards compatibility) - * - URL mode is only supported if explicitly declared - * - * @param capabilities - The client's elicitation capabilities - * @returns An object indicating which modes are supported - */ -function getSupportedElicitationModes(capabilities) { - if (!capabilities) { - return { supportsFormMode: false, supportsUrlMode: false }; - } - const hasFormCapability = capabilities.form !== undefined; - const hasUrlCapability = capabilities.url !== undefined; - // If neither form nor url are explicitly declared, form mode is supported (backwards compatibility) - const supportsFormMode = hasFormCapability || (!hasFormCapability && !hasUrlCapability); - const supportsUrlMode = hasUrlCapability; - return { supportsFormMode, supportsUrlMode }; -} -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed client - * const client = new Client({ - * name: "CustomClient", - * version: "1.0.0" - * }) - * ``` - */ -class Client extends protocol_js_1.Protocol { - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo, options) { - super(options); - this._clientInfo = _clientInfo; - this._cachedToolOutputValidators = new Map(); - this._cachedKnownTaskTools = new Set(); - this._cachedRequiredTaskTools = new Set(); - this._listChangedDebounceTimers = new Map(); - this._capabilities = options?.capabilities ?? {}; - this._jsonSchemaValidator = options?.jsonSchemaValidator ?? new ajv_provider_js_1.AjvJsonSchemaValidator(); - // Store list changed config for setup after connection (when we know server capabilities) - if (options?.listChanged) { - this._pendingListChangedConfig = options.listChanged; - } - } - /** - * Set up handlers for list changed notifications based on config and server capabilities. - * This should only be called after initialization when server capabilities are known. - * Handlers are silently skipped if the server doesn't advertise the corresponding listChanged capability. - * @internal - */ - _setupListChangedHandlers(config) { - if (config.tools && this._serverCapabilities?.tools?.listChanged) { - this._setupListChangedHandler('tools', types_js_1.ToolListChangedNotificationSchema, config.tools, async () => { - const result = await this.listTools(); - return result.tools; - }); - } - if (config.prompts && this._serverCapabilities?.prompts?.listChanged) { - this._setupListChangedHandler('prompts', types_js_1.PromptListChangedNotificationSchema, config.prompts, async () => { - const result = await this.listPrompts(); - return result.prompts; - }); - } - if (config.resources && this._serverCapabilities?.resources?.listChanged) { - this._setupListChangedHandler('resources', types_js_1.ResourceListChangedNotificationSchema, config.resources, async () => { - const result = await this.listResources(); - return result.resources; - }); - } - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new client_js_1.ExperimentalClientTasks(this) - }; - } - return this._experimental; - } - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities) { - if (this.transport) { - throw new Error('Cannot register capabilities after connecting to transport'); - } - this._capabilities = (0, protocol_js_1.mergeCapabilities)(this._capabilities, capabilities); - } - /** - * Override request handler registration to enforce client-side validation for elicitation. - */ - setRequestHandler(requestSchema, handler) { - const shape = (0, zod_compat_js_1.getObjectShape)(requestSchema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value using type-safe property access - let methodValue; - if ((0, zod_compat_js_1.isZ4Schema)(methodSchema)) { - const v4Schema = methodSchema; - const v4Def = v4Schema._zod?.def; - methodValue = v4Def?.value ?? v4Schema.value; - } - else { - const v3Schema = methodSchema; - const legacyDef = v3Schema._def; - methodValue = legacyDef?.value ?? v3Schema.value; - } - if (typeof methodValue !== 'string') { - throw new Error('Schema method literal must be a string'); - } - const method = methodValue; - if (method === 'elicitation/create') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = (0, zod_compat_js_1.safeParse)(types_js_1.ElicitRequestSchema, request); - if (!validatedRequest.success) { - // Type guard: if success is false, error is guaranteed to exist - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid elicitation request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - params.mode = params.mode ?? 'form'; - const { supportsFormMode, supportsUrlMode } = getSupportedElicitationModes(this._capabilities.elicitation); - if (params.mode === 'form' && !supportsFormMode) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, 'Client does not support form-mode elicitation requests'); - } - if (params.mode === 'url' && !supportsUrlMode) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, 'Client does not support URL-mode elicitation requests'); - } - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = (0, zod_compat_js_1.safeParse)(types_js_1.CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against ElicitResultSchema - const validationResult = (0, zod_compat_js_1.safeParse)(types_js_1.ElicitResultSchema, result); - if (!validationResult.success) { - // Type guard: if success is false, error is guaranteed to exist - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid elicitation result: ${errorMessage}`); - } - const validatedResult = validationResult.data; - const requestedSchema = params.mode === 'form' ? params.requestedSchema : undefined; - if (params.mode === 'form' && validatedResult.action === 'accept' && validatedResult.content && requestedSchema) { - if (this._capabilities.elicitation?.form?.applyDefaults) { - try { - applyElicitationDefaults(requestedSchema, validatedResult.content); - } - catch { - // gracefully ignore errors in default application - } - } - } - return validatedResult; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - if (method === 'sampling/createMessage') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = (0, zod_compat_js_1.safeParse)(types_js_1.CreateMessageRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid sampling request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = (0, zod_compat_js_1.safeParse)(types_js_1.CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against CreateMessageResultSchema - const validationResult = (0, zod_compat_js_1.safeParse)(types_js_1.CreateMessageResultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid sampling result: ${errorMessage}`); - } - return validationResult.data; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - // Other handlers use default behavior - return super.setRequestHandler(requestSchema, handler); - } - assertCapability(capability, method) { - if (!this._serverCapabilities?.[capability]) { - throw new Error(`Server does not support ${capability} (required for ${method})`); - } - } - async connect(transport, options) { - await super.connect(transport); - // When transport sessionId is already set this means we are trying to reconnect. - // In this case we don't need to initialize again. - if (transport.sessionId !== undefined) { - return; - } - try { - const result = await this.request({ - method: 'initialize', - params: { - protocolVersion: types_js_1.LATEST_PROTOCOL_VERSION, - capabilities: this._capabilities, - clientInfo: this._clientInfo - } - }, types_js_1.InitializeResultSchema, options); - if (result === undefined) { - throw new Error(`Server sent invalid initialize result: ${result}`); - } - if (!types_js_1.SUPPORTED_PROTOCOL_VERSIONS.includes(result.protocolVersion)) { - throw new Error(`Server's protocol version is not supported: ${result.protocolVersion}`); - } - this._serverCapabilities = result.capabilities; - this._serverVersion = result.serverInfo; - // HTTP transports must set the protocol version in each header after initialization. - if (transport.setProtocolVersion) { - transport.setProtocolVersion(result.protocolVersion); - } - this._instructions = result.instructions; - await this.notification({ - method: 'notifications/initialized' - }); - // Set up list changed handlers now that we know server capabilities - if (this._pendingListChangedConfig) { - this._setupListChangedHandlers(this._pendingListChangedConfig); - this._pendingListChangedConfig = undefined; - } - } - catch (error) { - // Disconnect if initialization fails. - void this.close(); - throw error; - } - } - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities() { - return this._serverCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion() { - return this._serverVersion; - } - /** - * After initialization has completed, this may be populated with information about the server's instructions. - */ - getInstructions() { - return this._instructions; - } - assertCapabilityForMethod(method) { - switch (method) { - case 'logging/setLevel': - if (!this._serverCapabilities?.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'prompts/get': - case 'prompts/list': - if (!this._serverCapabilities?.prompts) { - throw new Error(`Server does not support prompts (required for ${method})`); - } - break; - case 'resources/list': - case 'resources/templates/list': - case 'resources/read': - case 'resources/subscribe': - case 'resources/unsubscribe': - if (!this._serverCapabilities?.resources) { - throw new Error(`Server does not support resources (required for ${method})`); - } - if (method === 'resources/subscribe' && !this._serverCapabilities.resources.subscribe) { - throw new Error(`Server does not support resource subscriptions (required for ${method})`); - } - break; - case 'tools/call': - case 'tools/list': - if (!this._serverCapabilities?.tools) { - throw new Error(`Server does not support tools (required for ${method})`); - } - break; - case 'completion/complete': - if (!this._serverCapabilities?.completions) { - throw new Error(`Server does not support completions (required for ${method})`); - } - break; - case 'initialize': - // No specific capability required for initialize - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertNotificationCapability(method) { - switch (method) { - case 'notifications/roots/list_changed': - if (!this._capabilities.roots?.listChanged) { - throw new Error(`Client does not support roots list changed notifications (required for ${method})`); - } - break; - case 'notifications/initialized': - // No specific capability required for initialized - break; - case 'notifications/cancelled': - // Cancellation notifications are always allowed - break; - case 'notifications/progress': - // Progress notifications are always allowed - break; - } - } - assertRequestHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - switch (method) { - case 'sampling/createMessage': - if (!this._capabilities.sampling) { - throw new Error(`Client does not support sampling capability (required for ${method})`); - } - break; - case 'elicitation/create': - if (!this._capabilities.elicitation) { - throw new Error(`Client does not support elicitation capability (required for ${method})`); - } - break; - case 'roots/list': - if (!this._capabilities.roots) { - throw new Error(`Client does not support roots capability (required for ${method})`); - } - break; - case 'tasks/get': - case 'tasks/list': - case 'tasks/result': - case 'tasks/cancel': - if (!this._capabilities.tasks) { - throw new Error(`Client does not support tasks capability (required for ${method})`); - } - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertTaskCapability(method) { - (0, helpers_js_1.assertToolsCallTaskCapability)(this._serverCapabilities?.tasks?.requests, method, 'Server'); - } - assertTaskHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - (0, helpers_js_1.assertClientRequestTaskCapability)(this._capabilities.tasks?.requests, method, 'Client'); - } - async ping(options) { - return this.request({ method: 'ping' }, types_js_1.EmptyResultSchema, options); - } - async complete(params, options) { - return this.request({ method: 'completion/complete', params }, types_js_1.CompleteResultSchema, options); - } - async setLoggingLevel(level, options) { - return this.request({ method: 'logging/setLevel', params: { level } }, types_js_1.EmptyResultSchema, options); - } - async getPrompt(params, options) { - return this.request({ method: 'prompts/get', params }, types_js_1.GetPromptResultSchema, options); - } - async listPrompts(params, options) { - return this.request({ method: 'prompts/list', params }, types_js_1.ListPromptsResultSchema, options); - } - async listResources(params, options) { - return this.request({ method: 'resources/list', params }, types_js_1.ListResourcesResultSchema, options); - } - async listResourceTemplates(params, options) { - return this.request({ method: 'resources/templates/list', params }, types_js_1.ListResourceTemplatesResultSchema, options); - } - async readResource(params, options) { - return this.request({ method: 'resources/read', params }, types_js_1.ReadResourceResultSchema, options); - } - async subscribeResource(params, options) { - return this.request({ method: 'resources/subscribe', params }, types_js_1.EmptyResultSchema, options); - } - async unsubscribeResource(params, options) { - return this.request({ method: 'resources/unsubscribe', params }, types_js_1.EmptyResultSchema, options); - } - /** - * Calls a tool and waits for the result. Automatically validates structured output if the tool has an outputSchema. - * - * For task-based execution with streaming behavior, use client.experimental.tasks.callToolStream() instead. - */ - async callTool(params, resultSchema = types_js_1.CallToolResultSchema, options) { - // Guard: required-task tools need experimental API - if (this.isToolTaskRequired(params.name)) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, `Tool "${params.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`); - } - const result = await this.request({ method: 'tools/call', params }, resultSchema, options); - // Check if the tool has an outputSchema - const validator = this.getToolOutputValidator(params.name); - if (validator) { - // If tool has outputSchema, it MUST return structuredContent (unless it's an error) - if (!result.structuredContent && !result.isError) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`); - } - // Only validate structured content if present (not when there's an error) - if (result.structuredContent) { - try { - // Validate the structured content against the schema - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`); - } - } - catch (error) { - if (error instanceof types_js_1.McpError) { - throw error; - } - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Failed to validate structured content: ${error instanceof Error ? error.message : String(error)}`); - } - } - } - return result; - } - isToolTask(toolName) { - if (!this._serverCapabilities?.tasks?.requests?.tools?.call) { - return false; - } - return this._cachedKnownTaskTools.has(toolName); - } - /** - * Check if a tool requires task-based execution. - * Unlike isToolTask which includes 'optional' tools, this only checks for 'required'. - */ - isToolTaskRequired(toolName) { - return this._cachedRequiredTaskTools.has(toolName); - } - /** - * Cache validators for tool output schemas. - * Called after listTools() to pre-compile validators for better performance. - */ - cacheToolMetadata(tools) { - this._cachedToolOutputValidators.clear(); - this._cachedKnownTaskTools.clear(); - this._cachedRequiredTaskTools.clear(); - for (const tool of tools) { - // If the tool has an outputSchema, create and cache the validator - if (tool.outputSchema) { - const toolValidator = this._jsonSchemaValidator.getValidator(tool.outputSchema); - this._cachedToolOutputValidators.set(tool.name, toolValidator); - } - // If the tool supports task-based execution, cache that information - const taskSupport = tool.execution?.taskSupport; - if (taskSupport === 'required' || taskSupport === 'optional') { - this._cachedKnownTaskTools.add(tool.name); - } - if (taskSupport === 'required') { - this._cachedRequiredTaskTools.add(tool.name); - } - } - } - /** - * Get cached validator for a tool - */ - getToolOutputValidator(toolName) { - return this._cachedToolOutputValidators.get(toolName); - } - async listTools(params, options) { - const result = await this.request({ method: 'tools/list', params }, types_js_1.ListToolsResultSchema, options); - // Cache the tools and their output schemas for future validation - this.cacheToolMetadata(result.tools); - return result; - } - /** - * Set up a single list changed handler. - * @internal - */ - _setupListChangedHandler(listType, notificationSchema, options, fetcher) { - // Validate options using Zod schema (validates autoRefresh and debounceMs) - const parseResult = types_js_1.ListChangedOptionsBaseSchema.safeParse(options); - if (!parseResult.success) { - throw new Error(`Invalid ${listType} listChanged options: ${parseResult.error.message}`); - } - // Validate callback - if (typeof options.onChanged !== 'function') { - throw new Error(`Invalid ${listType} listChanged options: onChanged must be a function`); - } - const { autoRefresh, debounceMs } = parseResult.data; - const { onChanged } = options; - const refresh = async () => { - if (!autoRefresh) { - onChanged(null, null); - return; - } - try { - const items = await fetcher(); - onChanged(null, items); - } - catch (e) { - const error = e instanceof Error ? e : new Error(String(e)); - onChanged(error, null); - } - }; - const handler = () => { - if (debounceMs) { - // Clear any pending debounce timer for this list type - const existingTimer = this._listChangedDebounceTimers.get(listType); - if (existingTimer) { - clearTimeout(existingTimer); - } - // Set up debounced refresh - const timer = setTimeout(refresh, debounceMs); - this._listChangedDebounceTimers.set(listType, timer); - } - else { - // No debounce, refresh immediately - refresh(); - } - }; - // Register notification handler - this.setNotificationHandler(notificationSchema, handler); - } - async sendRootsListChanged() { - return this.notification({ method: 'notifications/roots/list_changed' }); - } -} -exports.Client = Client; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map deleted file mode 100644 index 820fa4b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sd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3B,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,MAAM,KAAK,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC5D,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,OAAO,GAAG,GAAG,EAAE;YACjB,IAAI,UAAU,EAAE,CAAC;gBACb,sDAAsD;gBACtD,MAAM,aAAa,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACpE,IAAI,aAAa,EAAE,CAAC;oBAChB,YAAY,CAAC,aAAa,CAAC,CAAC;gBAChC,CAAC;gBAED,2BAA2B;gBAC3B,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBAC9C,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YACzD,CAAC;iBAAM,CAAC;gBACJ,mCAAmC;gBACnC,OAAO,EAAE,CAAC;YACd,CAAC;QACL,CAAC,CAAC;QAEF,gCAAgC;QAChC,IAAI,CAAC,sBAAsB,CAAC,kBAAqC,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,oBAAoB;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,kCAAkC,EAAE,CAAC,CAAC;IAC7E,CAAC;CACJ;AAhqBD,wBAgqBC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts deleted file mode 100644 index 726ac57..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { OAuthClientProvider } from './auth.js'; -import { FetchLike } from '../shared/transport.js'; -/** - * Middleware function that wraps and enhances fetch functionality. - * Takes a fetch handler and returns an enhanced fetch handler. - */ -export type Middleware = (next: FetchLike) => FetchLike; -/** - * Creates a fetch wrapper that handles OAuth authentication automatically. - * - * This wrapper will: - * - Add Authorization headers with access tokens - * - Handle 401 responses by attempting re-authentication - * - Retry the original request after successful auth - * - Handle OAuth errors appropriately (InvalidClientError, etc.) - * - * The baseUrl parameter is optional and defaults to using the domain from the request URL. - * However, you should explicitly provide baseUrl when: - * - Making requests to multiple subdomains (e.g., api.example.com, cdn.example.com) - * - Using API paths that differ from OAuth discovery paths (e.g., requesting /api/v1/data but OAuth is at /) - * - The OAuth server is on a different domain than your API requests - * - You want to ensure consistent OAuth behavior regardless of request URLs - * - * For MCP transports, set baseUrl to the same URL you pass to the transport constructor. - * - * Note: This wrapper is designed for general-purpose fetch operations. - * MCP transports (SSE and StreamableHTTP) already have built-in OAuth handling - * and should not need this wrapper. - * - * @param provider - OAuth client provider for authentication - * @param baseUrl - Base URL for OAuth server discovery (defaults to request URL domain) - * @returns A fetch middleware function - */ -export declare const withOAuth: (provider: OAuthClientProvider, baseUrl?: string | URL) => Middleware; -/** - * Logger function type for HTTP requests - */ -export type RequestLogger = (input: { - method: string; - url: string | URL; - status: number; - statusText: string; - duration: number; - requestHeaders?: Headers; - responseHeaders?: Headers; - error?: Error; -}) => void; -/** - * Configuration options for the logging middleware - */ -export type LoggingOptions = { - /** - * Custom logger function, defaults to console logging - */ - logger?: RequestLogger; - /** - * Whether to include request headers in logs - * @default false - */ - includeRequestHeaders?: boolean; - /** - * Whether to include response headers in logs - * @default false - */ - includeResponseHeaders?: boolean; - /** - * Status level filter - only log requests with status >= this value - * Set to 0 to log all requests, 400 to log only errors - * @default 0 - */ - statusLevel?: number; -}; -/** - * Creates a fetch middleware that logs HTTP requests and responses. - * - * When called without arguments `withLogging()`, it uses the default logger that: - * - Logs successful requests (2xx) to `console.log` - * - Logs error responses (4xx/5xx) and network errors to `console.error` - * - Logs all requests regardless of status (statusLevel: 0) - * - Does not include request or response headers in logs - * - Measures and displays request duration in milliseconds - * - * Important: the default logger uses both `console.log` and `console.error` so it should not be used with - * `stdio` transports and applications. - * - * @param options - Logging configuration options - * @returns A fetch middleware function - */ -export declare const withLogging: (options?: LoggingOptions) => Middleware; -/** - * Composes multiple fetch middleware functions into a single middleware pipeline. - * Middleware are applied in the order they appear, creating a chain of handlers. - * - * @example - * ```typescript - * // Create a middleware pipeline that handles both OAuth and logging - * const enhancedFetch = applyMiddlewares( - * withOAuth(oauthProvider, 'https://api.example.com'), - * withLogging({ statusLevel: 400 }) - * )(fetch); - * - * // Use the enhanced fetch - it will handle auth and log errors - * const response = await enhancedFetch('https://api.example.com/data'); - * ``` - * - * @param middleware - Array of fetch middleware to compose into a pipeline - * @returns A single composed middleware function - */ -export declare const applyMiddlewares: (...middleware: Middleware[]) => Middleware; -/** - * Helper function to create custom fetch middleware with cleaner syntax. - * Provides the next handler and request details as separate parameters for easier access. - * - * @example - * ```typescript - * // Create custom authentication middleware - * const customAuthMiddleware = createMiddleware(async (next, input, init) => { - * const headers = new Headers(init?.headers); - * headers.set('X-Custom-Auth', 'my-token'); - * - * const response = await next(input, { ...init, headers }); - * - * if (response.status === 401) { - * console.log('Authentication failed'); - * } - * - * return response; - * }); - * - * // Create conditional middleware - * const conditionalMiddleware = createMiddleware(async (next, input, init) => { - * const url = typeof input === 'string' ? input : input.toString(); - * - * // Only add headers for API routes - * if (url.includes('/api/')) { - * const headers = new Headers(init?.headers); - * headers.set('X-API-Version', 'v2'); - * return next(input, { ...init, headers }); - * } - * - * // Pass through for non-API routes - * return next(input, init); - * }); - * - * // Create caching middleware - * const cacheMiddleware = createMiddleware(async (next, input, init) => { - * const cacheKey = typeof input === 'string' ? input : input.toString(); - * - * // Check cache first - * const cached = await getFromCache(cacheKey); - * if (cached) { - * return new Response(cached, { status: 200 }); - * } - * - * // Make request and cache result - * const response = await next(input, init); - * if (response.ok) { - * await saveToCache(cacheKey, await response.clone().text()); - * } - * - * return response; - * }); - * ``` - * - * @param handler - Function that receives the next handler and request parameters - * @returns A fetch middleware function - */ -export declare const createMiddleware: (handler: (next: FetchLike, input: string | URL, init?: RequestInit) => Promise) => Middleware; -//# sourceMappingURL=middleware.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map deleted file mode 100644 index 88ac778..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/client/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,mBAAmB,EAAqB,MAAM,WAAW,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,SAAS,KAAK,SAAS,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,SAAS,aACP,mBAAmB,YAAY,MAAM,GAAG,GAAG,KAAG,UA0DxD,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,KAAK,IAAI,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,aAAa,cAAc,KAAQ,UA6E1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB,kBAAmB,UAAU,EAAE,KAAG,UAI9D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,eAAO,MAAM,gBAAgB,YAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,KAAG,UAE3H,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js deleted file mode 100644 index 4dae753..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +++ /dev/null @@ -1,252 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createMiddleware = exports.applyMiddlewares = exports.withLogging = exports.withOAuth = void 0; -const auth_js_1 = require("./auth.js"); -/** - * Creates a fetch wrapper that handles OAuth authentication automatically. - * - * This wrapper will: - * - Add Authorization headers with access tokens - * - Handle 401 responses by attempting re-authentication - * - Retry the original request after successful auth - * - Handle OAuth errors appropriately (InvalidClientError, etc.) - * - * The baseUrl parameter is optional and defaults to using the domain from the request URL. - * However, you should explicitly provide baseUrl when: - * - Making requests to multiple subdomains (e.g., api.example.com, cdn.example.com) - * - Using API paths that differ from OAuth discovery paths (e.g., requesting /api/v1/data but OAuth is at /) - * - The OAuth server is on a different domain than your API requests - * - You want to ensure consistent OAuth behavior regardless of request URLs - * - * For MCP transports, set baseUrl to the same URL you pass to the transport constructor. - * - * Note: This wrapper is designed for general-purpose fetch operations. - * MCP transports (SSE and StreamableHTTP) already have built-in OAuth handling - * and should not need this wrapper. - * - * @param provider - OAuth client provider for authentication - * @param baseUrl - Base URL for OAuth server discovery (defaults to request URL domain) - * @returns A fetch middleware function - */ -const withOAuth = (provider, baseUrl) => next => { - return async (input, init) => { - const makeRequest = async () => { - const headers = new Headers(init?.headers); - // Add authorization header if tokens are available - const tokens = await provider.tokens(); - if (tokens) { - headers.set('Authorization', `Bearer ${tokens.access_token}`); - } - return await next(input, { ...init, headers }); - }; - let response = await makeRequest(); - // Handle 401 responses by attempting re-authentication - if (response.status === 401) { - try { - const { resourceMetadataUrl, scope } = (0, auth_js_1.extractWWWAuthenticateParams)(response); - // Use provided baseUrl or extract from request URL - const serverUrl = baseUrl || (typeof input === 'string' ? new URL(input).origin : input.origin); - const result = await (0, auth_js_1.auth)(provider, { - serverUrl, - resourceMetadataUrl, - scope, - fetchFn: next - }); - if (result === 'REDIRECT') { - throw new auth_js_1.UnauthorizedError('Authentication requires user authorization - redirect initiated'); - } - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(`Authentication failed with result: ${result}`); - } - // Retry the request with fresh tokens - response = await makeRequest(); - } - catch (error) { - if (error instanceof auth_js_1.UnauthorizedError) { - throw error; - } - throw new auth_js_1.UnauthorizedError(`Failed to re-authenticate: ${error instanceof Error ? error.message : String(error)}`); - } - } - // If we still have a 401 after re-auth attempt, throw an error - if (response.status === 401) { - const url = typeof input === 'string' ? input : input.toString(); - throw new auth_js_1.UnauthorizedError(`Authentication failed for ${url}`); - } - return response; - }; -}; -exports.withOAuth = withOAuth; -/** - * Creates a fetch middleware that logs HTTP requests and responses. - * - * When called without arguments `withLogging()`, it uses the default logger that: - * - Logs successful requests (2xx) to `console.log` - * - Logs error responses (4xx/5xx) and network errors to `console.error` - * - Logs all requests regardless of status (statusLevel: 0) - * - Does not include request or response headers in logs - * - Measures and displays request duration in milliseconds - * - * Important: the default logger uses both `console.log` and `console.error` so it should not be used with - * `stdio` transports and applications. - * - * @param options - Logging configuration options - * @returns A fetch middleware function - */ -const withLogging = (options = {}) => { - const { logger, includeRequestHeaders = false, includeResponseHeaders = false, statusLevel = 0 } = options; - const defaultLogger = input => { - const { method, url, status, statusText, duration, requestHeaders, responseHeaders, error } = input; - let message = error - ? `HTTP ${method} ${url} failed: ${error.message} (${duration}ms)` - : `HTTP ${method} ${url} ${status} ${statusText} (${duration}ms)`; - // Add headers to message if requested - if (includeRequestHeaders && requestHeaders) { - const reqHeaders = Array.from(requestHeaders.entries()) - .map(([key, value]) => `${key}: ${value}`) - .join(', '); - message += `\n Request Headers: {${reqHeaders}}`; - } - if (includeResponseHeaders && responseHeaders) { - const resHeaders = Array.from(responseHeaders.entries()) - .map(([key, value]) => `${key}: ${value}`) - .join(', '); - message += `\n Response Headers: {${resHeaders}}`; - } - if (error || status >= 400) { - // eslint-disable-next-line no-console - console.error(message); - } - else { - // eslint-disable-next-line no-console - console.log(message); - } - }; - const logFn = logger || defaultLogger; - return next => async (input, init) => { - const startTime = performance.now(); - const method = init?.method || 'GET'; - const url = typeof input === 'string' ? input : input.toString(); - const requestHeaders = includeRequestHeaders ? new Headers(init?.headers) : undefined; - try { - const response = await next(input, init); - const duration = performance.now() - startTime; - // Only log if status meets the log level threshold - if (response.status >= statusLevel) { - logFn({ - method, - url, - status: response.status, - statusText: response.statusText, - duration, - requestHeaders, - responseHeaders: includeResponseHeaders ? response.headers : undefined - }); - } - return response; - } - catch (error) { - const duration = performance.now() - startTime; - // Always log errors regardless of log level - logFn({ - method, - url, - status: 0, - statusText: 'Network Error', - duration, - requestHeaders, - error: error - }); - throw error; - } - }; -}; -exports.withLogging = withLogging; -/** - * Composes multiple fetch middleware functions into a single middleware pipeline. - * Middleware are applied in the order they appear, creating a chain of handlers. - * - * @example - * ```typescript - * // Create a middleware pipeline that handles both OAuth and logging - * const enhancedFetch = applyMiddlewares( - * withOAuth(oauthProvider, 'https://api.example.com'), - * withLogging({ statusLevel: 400 }) - * )(fetch); - * - * // Use the enhanced fetch - it will handle auth and log errors - * const response = await enhancedFetch('https://api.example.com/data'); - * ``` - * - * @param middleware - Array of fetch middleware to compose into a pipeline - * @returns A single composed middleware function - */ -const applyMiddlewares = (...middleware) => { - return next => { - return middleware.reduce((handler, mw) => mw(handler), next); - }; -}; -exports.applyMiddlewares = applyMiddlewares; -/** - * Helper function to create custom fetch middleware with cleaner syntax. - * Provides the next handler and request details as separate parameters for easier access. - * - * @example - * ```typescript - * // Create custom authentication middleware - * const customAuthMiddleware = createMiddleware(async (next, input, init) => { - * const headers = new Headers(init?.headers); - * headers.set('X-Custom-Auth', 'my-token'); - * - * const response = await next(input, { ...init, headers }); - * - * if (response.status === 401) { - * console.log('Authentication failed'); - * } - * - * return response; - * }); - * - * // Create conditional middleware - * const conditionalMiddleware = createMiddleware(async (next, input, init) => { - * const url = typeof input === 'string' ? input : input.toString(); - * - * // Only add headers for API routes - * if (url.includes('/api/')) { - * const headers = new Headers(init?.headers); - * headers.set('X-API-Version', 'v2'); - * return next(input, { ...init, headers }); - * } - * - * // Pass through for non-API routes - * return next(input, init); - * }); - * - * // Create caching middleware - * const cacheMiddleware = createMiddleware(async (next, input, init) => { - * const cacheKey = typeof input === 'string' ? input : input.toString(); - * - * // Check cache first - * const cached = await getFromCache(cacheKey); - * if (cached) { - * return new Response(cached, { status: 200 }); - * } - * - * // Make request and cache result - * const response = await next(input, init); - * if (response.ok) { - * await saveToCache(cacheKey, await response.clone().text()); - * } - * - * return response; - * }); - * ``` - * - * @param handler - Function that receives the next handler and request parameters - * @returns A fetch middleware function - */ -const createMiddleware = (handler) => { - return next => (input, init) => handler(next, input, init); -}; -exports.createMiddleware = createMiddleware; -//# sourceMappingURL=middleware.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map deleted file mode 100644 index d28adff..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/client/middleware.ts"],"names":[],"mappings":";;;AAAA,uCAAuG;AASvG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACI,MAAM,SAAS,GAClB,CAAC,QAA6B,EAAE,OAAsB,EAAc,EAAE,CACtE,IAAI,CAAC,EAAE;IACH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACzB,MAAM,WAAW,GAAG,KAAK,IAAuB,EAAE;YAC9C,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE3C,mDAAmD;YACnD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;YACvC,IAAI,MAAM,EAAE,CAAC;gBACT,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;YAClE,CAAC;YAED,OAAO,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QACnD,CAAC,CAAC;QAEF,IAAI,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;QAEnC,uDAAuD;QACvD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC;gBACD,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,IAAA,sCAA4B,EAAC,QAAQ,CAAC,CAAC;gBAE9E,mDAAmD;gBACnD,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC,OAAO,KAAK,K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AAC;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;YAE/C,4CAA4C;YAC5C,KAAK,CAAC;gBACF,MAAM;gBACN,GAAG;gBACH,MAAM,EAAE,CAAC;gBACT,UAAU,EAAE,eAAe;gBAC3B,QAAQ;gBACR,cAAc;gBACd,KAAK,EAAE,KAAc;aACxB,CAAC,CAAC;YAEH,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC,CAAC;AACN,CAAC,CAAC;AA7EW,QAAA,WAAW,eA6EtB;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,gBAAgB,GAAG,CAAC,GAAG,UAAwB,EAAc,EAAE;IACxE,OAAO,IAAI,CAAC,EAAE;QACV,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC,CAAC;AAJW,QAAA,gBAAgB,oBAI3B;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAAwF,EAAc,EAAE;IACrI,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,KAAqB,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts deleted file mode 100644 index acf99f1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { type ErrorEvent, type EventSourceInit } from 'eventsource'; -import { Transport, FetchLike } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -import { OAuthClientProvider } from './auth.js'; -export declare class SseError extends Error { - readonly code: number | undefined; - readonly event: ErrorEvent; - constructor(code: number | undefined, message: string | undefined, event: ErrorEvent); -} -/** - * Configuration options for the `SSEClientTransport`. - */ -export type SSEClientTransportOptions = { - /** - * An OAuth client provider to use for authentication. - * - * When an `authProvider` is specified and the SSE connection is started: - * 1. The connection is attempted with any existing access token from the `authProvider`. - * 2. If the access token has expired, the `authProvider` is used to refresh the token. - * 3. If token refresh fails or no access token exists, and auth is required, `OAuthClientProvider.redirectToAuthorization` is called, and an `UnauthorizedError` will be thrown from `connect`/`start`. - * - * After the user has finished authorizing via their user agent, and is redirected back to the MCP client application, call `SSEClientTransport.finishAuth` with the authorization code before retrying the connection. - * - * If an `authProvider` is not provided, and auth is required, an `UnauthorizedError` will be thrown. - * - * `UnauthorizedError` might also be thrown when sending any message over the SSE transport, indicating that the session has expired, and needs to be re-authed and reconnected. - */ - authProvider?: OAuthClientProvider; - /** - * Customizes the initial SSE request to the server (the request that begins the stream). - * - * NOTE: Setting this property will prevent an `Authorization` header from - * being automatically attached to the SSE request, if an `authProvider` is - * also given. This can be worked around by setting the `Authorization` header - * manually. - */ - eventSourceInit?: EventSourceInit; - /** - * Customizes recurring POST requests to the server. - */ - requestInit?: RequestInit; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; -}; -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * @deprecated SSEClientTransport is deprecated. Prefer to use StreamableHTTPClientTransport where possible instead. Note that because some servers are still using SSE, clients may need to support both transports during the migration period. - */ -export declare class SSEClientTransport implements Transport { - private _eventSource?; - private _endpoint?; - private _abortController?; - private _url; - private _resourceMetadataUrl?; - private _scope?; - private _eventSourceInit?; - private _requestInit?; - private _authProvider?; - private _fetch?; - private _fetchWithInit; - private _protocolVersion?; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL, opts?: SSEClientTransportOptions); - private _authThenStart; - private _commonHeaders; - private _startOrAuth; - start(): Promise; - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - finishAuth(authorizationCode: string): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; - setProtocolVersion(version: string): void; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map deleted file mode 100644 index 14ee939..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../src/client/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAyC,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAkD,mBAAmB,EAAqB,MAAM,WAAW,CAAC;AAEnH,qBAAa,QAAS,SAAQ,KAAK;aAEX,IAAI,EAAE,MAAM,GAAG,SAAS;aAExB,KAAK,EAAE,UAAU;gBAFjB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxC,OAAO,EAAE,MAAM,GAAG,SAAS,EACX,KAAK,EAAE,UAAU;CAIxC;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IAEnC;;;;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protocol/sdk/dist/cjs/client/sse.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js deleted file mode 100644 index 8ca8dad..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSEClientTransport = exports.SseError = void 0; -const eventsource_1 = require("eventsource"); -const transport_js_1 = require("../shared/transport.js"); -const types_js_1 = require("../types.js"); -const auth_js_1 = require("./auth.js"); -class SseError extends Error { - constructor(code, message, event) { - super(`SSE error: ${message}`); - this.code = code; - this.event = event; - } -} -exports.SseError = SseError; -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * @deprecated SSEClientTransport is deprecated. Prefer to use StreamableHTTPClientTransport where possible instead. Note that because some servers are still using SSE, clients may need to support both transports during the migration period. - */ -class SSEClientTransport { - constructor(url, opts) { - this._url = url; - this._resourceMetadataUrl = undefined; - this._scope = undefined; - this._eventSourceInit = opts?.eventSourceInit; - this._requestInit = opts?.requestInit; - this._authProvider = opts?.authProvider; - this._fetch = opts?.fetch; - this._fetchWithInit = (0, transport_js_1.createFetchWithInit)(opts?.fetch, opts?.requestInit); - } - async _authThenStart() { - if (!this._authProvider) { - throw new auth_js_1.UnauthorizedError('No auth provider'); - } - let result; - try { - result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - } - catch (error) { - this.onerror?.(error); - throw error; - } - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(); - } - return await this._startOrAuth(); - } - async _commonHeaders() { - const headers = {}; - if (this._authProvider) { - const tokens = await this._authProvider.tokens(); - if (tokens) { - headers['Authorization'] = `Bearer ${tokens.access_token}`; - } - } - if (this._protocolVersion) { - headers['mcp-protocol-version'] = this._protocolVersion; - } - const extraHeaders = (0, transport_js_1.normalizeHeaders)(this._requestInit?.headers); - return new Headers({ - ...headers, - ...extraHeaders - }); - } - _startOrAuth() { - const fetchImpl = (this?._eventSourceInit?.fetch ?? this._fetch ?? fetch); - return new Promise((resolve, reject) => { - this._eventSource = new eventsource_1.EventSource(this._url.href, { - ...this._eventSourceInit, - fetch: async (url, init) => { - const headers = await this._commonHeaders(); - headers.set('Accept', 'text/event-stream'); - const response = await fetchImpl(url, { - ...init, - headers - }); - if (response.status === 401 && response.headers.has('www-authenticate')) { - const { resourceMetadataUrl, scope } = (0, auth_js_1.extractWWWAuthenticateParams)(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - } - return response; - } - }); - this._abortController = new AbortController(); - this._eventSource.onerror = event => { - if (event.code === 401 && this._authProvider) { - this._authThenStart().then(resolve, reject); - return; - } - const error = new SseError(event.code, event.message, event); - reject(error); - this.onerror?.(error); - }; - this._eventSource.onopen = () => { - // The connection is open, but we need to wait for the endpoint to be received. - }; - this._eventSource.addEventListener('endpoint', (event) => { - const messageEvent = event; - try { - this._endpoint = new URL(messageEvent.data, this._url); - if (this._endpoint.origin !== this._url.origin) { - throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`); - } - } - catch (error) { - reject(error); - this.onerror?.(error); - void this.close(); - return; - } - resolve(); - }); - this._eventSource.onmessage = (event) => { - const messageEvent = event; - let message; - try { - message = types_js_1.JSONRPCMessageSchema.parse(JSON.parse(messageEvent.data)); - } - catch (error) { - this.onerror?.(error); - return; - } - this.onmessage?.(message); - }; - }); - } - async start() { - if (this._eventSource) { - throw new Error('SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return await this._startOrAuth(); - } - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - async finishAuth(authorizationCode) { - if (!this._authProvider) { - throw new auth_js_1.UnauthorizedError('No auth provider'); - } - const result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - authorizationCode, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError('Failed to authorize'); - } - } - async close() { - this._abortController?.abort(); - this._eventSource?.close(); - this.onclose?.(); - } - async send(message) { - if (!this._endpoint) { - throw new Error('Not connected'); - } - try { - const headers = await this._commonHeaders(); - headers.set('content-type', 'application/json'); - const init = { - ...this._requestInit, - method: 'POST', - headers, - body: JSON.stringify(message), - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._endpoint, init); - if (!response.ok) { - const text = await response.text().catch(() => null); - if (response.status === 401 && this._authProvider) { - const { resourceMetadataUrl, scope } = (0, auth_js_1.extractWWWAuthenticateParams)(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - const result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(); - } - // Purposely _not_ awaited, so we don't call onerror twice - return this.send(message); - } - throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${text}`); - } - // Release connection - POST responses don't have content we need - await response.body?.cancel(); - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - setProtocolVersion(version) { - this._protocolVersion = version; - } -} -exports.SSEClientTransport = SSEClientTransport; -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map deleted file mode 100644 index daa8b98..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../../src/client/sse.ts"],"names":[],"mappings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AQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,EAAE,CAAC,KAAc,CAAC,CAAC;YAC/B,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC;IACpC,CAAC;CACJ;AA1OD,gDA0OC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts deleted file mode 100644 index a411dba..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { IOType } from 'node:child_process'; -import { Stream } from 'node:stream'; -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -export type StdioServerParameters = { - /** - * The executable to run to start the server. - */ - command: string; - /** - * Command line arguments to pass to the executable. - */ - args?: string[]; - /** - * The environment to use when spawning the process. - * - * If not specified, the result of getDefaultEnvironment() will be used. - */ - env?: Record; - /** - * How to handle stderr of the child process. This matches the semantics of Node's `child_process.spawn`. - * - * The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr. - */ - stderr?: IOType | Stream | number; - /** - * The working directory to use when spawning the process. - * - * If not specified, the current working directory will be inherited. - */ - cwd?: string; -}; -/** - * Environment variables to inherit by default, if an environment is not explicitly given. - */ -export declare const DEFAULT_INHERITED_ENV_VARS: string[]; -/** - * Returns a default environment object including only environment variables deemed safe to inherit. - */ -export declare function getDefaultEnvironment(): Record; -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioClientTransport implements Transport { - private _process?; - private _readBuffer; - private _serverParams; - private _stderrStream; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(server: StdioServerParameters); - /** - * Starts the server process and prepares to communicate with it. - */ - start(): Promise; - /** - * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". - * - * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to - * attach listeners before the start method is invoked. This prevents loss of any early - * error output emitted by the child process. - */ - get stderr(): Stream | null; - /** - * The child process pid spawned by this transport. - * - * This is only available after the transport has been started. - */ - get pid(): number | null; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map deleted file mode 100644 index 73b267b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/client/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,EAAE,MAAM,EAAe,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAElC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,UAiBuB,CAAC;AAE/D;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB9D;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IAClD,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,aAAa,CAAwB;IAC7C,OAAO,CAAC,aAAa,CAA4B;IAEjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,MAAM,EAAE,qBAAqB;IAOzC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAqD5B;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAM1B;IAED;;;;OAIG;IACH,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;IAED,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyC5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAc/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js deleted file mode 100644 index ee48b40..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StdioClientTransport = exports.DEFAULT_INHERITED_ENV_VARS = void 0; -exports.getDefaultEnvironment = getDefaultEnvironment; -const cross_spawn_1 = __importDefault(require("cross-spawn")); -const node_process_1 = __importDefault(require("node:process")); -const node_stream_1 = require("node:stream"); -const stdio_js_1 = require("../shared/stdio.js"); -/** - * Environment variables to inherit by default, if an environment is not explicitly given. - */ -exports.DEFAULT_INHERITED_ENV_VARS = node_process_1.default.platform === 'win32' - ? [ - 'APPDATA', - 'HOMEDRIVE', - 'HOMEPATH', - 'LOCALAPPDATA', - 'PATH', - 'PROCESSOR_ARCHITECTURE', - 'SYSTEMDRIVE', - 'SYSTEMROOT', - 'TEMP', - 'USERNAME', - 'USERPROFILE', - 'PROGRAMFILES' - ] - : /* list inspired by the default env inheritance of sudo */ - ['HOME', 'LOGNAME', 'PATH', 'SHELL', 'TERM', 'USER']; -/** - * Returns a default environment object including only environment variables deemed safe to inherit. - */ -function getDefaultEnvironment() { - const env = {}; - for (const key of exports.DEFAULT_INHERITED_ENV_VARS) { - const value = node_process_1.default.env[key]; - if (value === undefined) { - continue; - } - if (value.startsWith('()')) { - // Skip functions, which are a security risk. - continue; - } - env[key] = value; - } - return env; -} -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -class StdioClientTransport { - constructor(server) { - this._readBuffer = new stdio_js_1.ReadBuffer(); - this._stderrStream = null; - this._serverParams = server; - if (server.stderr === 'pipe' || server.stderr === 'overlapped') { - this._stderrStream = new node_stream_1.PassThrough(); - } - } - /** - * Starts the server process and prepares to communicate with it. - */ - async start() { - if (this._process) { - throw new Error('StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return new Promise((resolve, reject) => { - this._process = (0, cross_spawn_1.default)(this._serverParams.command, this._serverParams.args ?? [], { - // merge default env with server env because mcp server needs some env vars - env: { - ...getDefaultEnvironment(), - ...this._serverParams.env - }, - stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'], - shell: false, - windowsHide: node_process_1.default.platform === 'win32' && isElectron(), - cwd: this._serverParams.cwd - }); - this._process.on('error', error => { - reject(error); - this.onerror?.(error); - }); - this._process.on('spawn', () => { - resolve(); - }); - this._process.on('close', _code => { - this._process = undefined; - this.onclose?.(); - }); - this._process.stdin?.on('error', error => { - this.onerror?.(error); - }); - this._process.stdout?.on('data', chunk => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }); - this._process.stdout?.on('error', error => { - this.onerror?.(error); - }); - if (this._stderrStream && this._process.stderr) { - this._process.stderr.pipe(this._stderrStream); - } - }); - } - /** - * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". - * - * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to - * attach listeners before the start method is invoked. This prevents loss of any early - * error output emitted by the child process. - */ - get stderr() { - if (this._stderrStream) { - return this._stderrStream; - } - return this._process?.stderr ?? null; - } - /** - * The child process pid spawned by this transport. - * - * This is only available after the transport has been started. - */ - get pid() { - return this._process?.pid ?? null; - } - processReadBuffer() { - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - async close() { - if (this._process) { - const processToClose = this._process; - this._process = undefined; - const closePromise = new Promise(resolve => { - processToClose.once('close', () => { - resolve(); - }); - }); - try { - processToClose.stdin?.end(); - } - catch { - // ignore - } - await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]); - if (processToClose.exitCode === null) { - try { - processToClose.kill('SIGTERM'); - } - catch { - // ignore - } - await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]); - } - if (processToClose.exitCode === null) { - try { - processToClose.kill('SIGKILL'); - } - catch { - // ignore - } - } - } - this._readBuffer.clear(); - } - send(message) { - return new Promise(resolve => { - if (!this._process?.stdin) { - throw new Error('Not connected'); - } - const json = (0, stdio_js_1.serializeMessage)(message); - if (this._process.stdin.write(json)) { - resolve(); - } - else { - this._process.stdin.once('drain', resolve); - } - }); - } -} -exports.StdioClientTransport = StdioClientTransport; -function isElectron() { - return 'type' in node_process_1.default; -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map deleted file mode 100644 index 40253bc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/client/stdio.ts"],"names":[],"mappings":";;;;;;AAkEA,sDAkBC;AAnFD,8DAAgC;AAChC,gEAAmC;AACnC,6CAAkD;AAClD,iDAAkE;AAqClE;;GAEG;AACU,QAAA,0BAA0B,GACnC,sBAAO,CAAC,QAAQ,KAAK,OAAO;IACxB,CAAC,CAAC;QACI,SAAS;QACT,WAAW;QACX,UAAU;QACV,cAAc;QACd,MAAM;QACN,wBAAwB;QACxB,aAAa;QACb,YAAY;QACZ,MAAM;QACN,UAAU;QACV,aAAa;QACb,cAAc;KACjB;IACH,CAAC,CAAC,0DAA0D;QAC1D,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D;;GAEG;AACH,SAAgB,qBAAqB;IACjC,MAAM,GAAG,GAA2B,EAAE,CAAC;IAEvC,KAAK,MAAM,GAAG,IAAI,kCAA0B,EAAE,CAAC;QAC3C,MAAM,KAAK,GAAG,sBAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,SAAS;QACb,CAAC;QAED,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACzB,6CAA6C;YAC7C,SAAS;QACb,CAAC;QAED,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,OA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-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts deleted file mode 100644 index 6035b24..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { Transport, FetchLike } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -import { OAuthClientProvider } from './auth.js'; -export declare class StreamableHTTPError extends Error { - readonly code: number | undefined; - constructor(code: number | undefined, message: string | undefined); -} -/** - * Options for starting or authenticating an SSE connection - */ -export interface StartSSEOptions { - /** - * The resumption token used to continue long-running requests that were interrupted. - * - * This allows clients to reconnect and continue from where they left off. - */ - resumptionToken?: string; - /** - * A callback that is invoked when the resumption token changes. - * - * This allows clients to persist the latest token for potential reconnection. - */ - onresumptiontoken?: (token: string) => void; - /** - * Override Message ID to associate with the replay message - * so that response can be associate with the new resumed request. - */ - replayMessageId?: string | number; -} -/** - * Configuration options for reconnection behavior of the StreamableHTTPClientTransport. - */ -export interface StreamableHTTPReconnectionOptions { - /** - * Maximum backoff time between reconnection attempts in milliseconds. - * Default is 30000 (30 seconds). - */ - maxReconnectionDelay: number; - /** - * Initial backoff time between reconnection attempts in milliseconds. - * Default is 1000 (1 second). - */ - initialReconnectionDelay: number; - /** - * The factor by which the reconnection delay increases after each attempt. - * Default is 1.5. - */ - reconnectionDelayGrowFactor: number; - /** - * Maximum number of reconnection attempts before giving up. - * Default is 2. - */ - maxRetries: number; -} -/** - * Configuration options for the `StreamableHTTPClientTransport`. - */ -export type StreamableHTTPClientTransportOptions = { - /** - * An OAuth client provider to use for authentication. - * - * When an `authProvider` is specified and the connection is started: - * 1. The connection is attempted with any existing access token from the `authProvider`. - * 2. If the access token has expired, the `authProvider` is used to refresh the token. - * 3. If token refresh fails or no access token exists, and auth is required, `OAuthClientProvider.redirectToAuthorization` is called, and an `UnauthorizedError` will be thrown from `connect`/`start`. - * - * After the user has finished authorizing via their user agent, and is redirected back to the MCP client application, call `StreamableHTTPClientTransport.finishAuth` with the authorization code before retrying the connection. - * - * If an `authProvider` is not provided, and auth is required, an `UnauthorizedError` will be thrown. - * - * `UnauthorizedError` might also be thrown when sending any message over the transport, indicating that the session has expired, and needs to be re-authed and reconnected. - */ - authProvider?: OAuthClientProvider; - /** - * Customizes HTTP requests to the server. - */ - requestInit?: RequestInit; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; - /** - * Options to configure the reconnection behavior. - */ - reconnectionOptions?: StreamableHTTPReconnectionOptions; - /** - * Session ID for the connection. This is used to identify the session on the server. - * When not provided and connecting to a server that supports session IDs, the server will generate a new session ID. - */ - sessionId?: string; -}; -/** - * Client transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It will connect to a server using HTTP POST for sending messages and HTTP GET with Server-Sent Events - * for receiving messages. - */ -export declare class StreamableHTTPClientTransport implements Transport { - private _abortController?; - private _url; - private _resourceMetadataUrl?; - private _scope?; - private _requestInit?; - private _authProvider?; - private _fetch?; - private _fetchWithInit; - private _sessionId?; - private _reconnectionOptions; - private _protocolVersion?; - private _hasCompletedAuthFlow; - private _lastUpscopingHeader?; - private _serverRetryMs?; - private _reconnectionTimeout?; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL, opts?: StreamableHTTPClientTransportOptions); - private _authThenStart; - private _commonHeaders; - private _startOrAuthSse; - /** - * Calculates the next reconnection delay using backoff algorithm - * - * @param attempt Current reconnection attempt count for the specific stream - * @returns Time to wait in milliseconds before next reconnection attempt - */ - private _getNextReconnectionDelay; - /** - * Schedule a reconnection attempt using server-provided retry interval or backoff - * - * @param lastEventId The ID of the last received event for resumability - * @param attemptCount Current reconnection attempt count for this specific stream - */ - private _scheduleReconnection; - private _handleSseStream; - start(): Promise; - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - finishAuth(authorizationCode: string): Promise; - close(): Promise; - send(message: JSONRPCMessage | JSONRPCMessage[], options?: { - resumptionToken?: string; - onresumptiontoken?: (token: string) => void; - }): Promise; - get sessionId(): string | undefined; - /** - * Terminates the current session by sending a DELETE request to the server. - * - * Clients that no longer need a particular session - * (e.g., because the user is leaving the client application) SHOULD send an - * HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly - * terminate the session. - * - * The server MAY respond with HTTP 405 Method Not Allowed, indicating that - * the server does not allow clients to terminate sessions. - */ - terminateSession(): Promise; - setProtocolVersion(version: string): void; - get protocolVersion(): string | undefined; - /** - * Resume an SSE stream from a previous event ID. - * Opens a GET SSE connection with Last-Event-ID header to replay missed events. - * - * @param lastEventId The event ID to resume from - * @param options Optional callback to receive new resumption tokens - */ - resumeStream(lastEventId: string, options?: { - onresumptiontoken?: (token: string) => void; - }): Promise; -} -//# sourceMappingURL=streamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map deleted file mode 100644 index 5b6ffb8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.d.ts","sourceRoot":"","sources":["../../../src/client/streamableHttp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAyC,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAwE,cAAc,EAAwB,MAAM,aAAa,CAAC;AACzI,OAAO,EAAkD,mBAAmB,EAAqB,MAAM,WAAW,CAAC;AAWnH,qBAAa,mBAAoB,SAAQ,KAAK;aAEtB,IAAI,EAAE,MAAM,GAAG,SAAS;gBAAxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxC,OAAO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AAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAMpH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js deleted file mode 100644 index a29a7d3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +++ /dev/null @@ -1,482 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StreamableHTTPClientTransport = exports.StreamableHTTPError = void 0; -const transport_js_1 = require("../shared/transport.js"); -const types_js_1 = require("../types.js"); -const auth_js_1 = require("./auth.js"); -const stream_1 = require("eventsource-parser/stream"); -// Default reconnection options for StreamableHTTP connections -const DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS = { - initialReconnectionDelay: 1000, - maxReconnectionDelay: 30000, - reconnectionDelayGrowFactor: 1.5, - maxRetries: 2 -}; -class StreamableHTTPError extends Error { - constructor(code, message) { - super(`Streamable HTTP error: ${message}`); - this.code = code; - } -} -exports.StreamableHTTPError = StreamableHTTPError; -/** - * Client transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It will connect to a server using HTTP POST for sending messages and HTTP GET with Server-Sent Events - * for receiving messages. - */ -class StreamableHTTPClientTransport { - constructor(url, opts) { - this._hasCompletedAuthFlow = false; // Circuit breaker: detect auth success followed by immediate 401 - this._url = url; - this._resourceMetadataUrl = undefined; - this._scope = undefined; - this._requestInit = opts?.requestInit; - this._authProvider = opts?.authProvider; - this._fetch = opts?.fetch; - this._fetchWithInit = (0, transport_js_1.createFetchWithInit)(opts?.fetch, opts?.requestInit); - this._sessionId = opts?.sessionId; - this._reconnectionOptions = opts?.reconnectionOptions ?? DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS; - } - async _authThenStart() { - if (!this._authProvider) { - throw new auth_js_1.UnauthorizedError('No auth provider'); - } - let result; - try { - result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - } - catch (error) { - this.onerror?.(error); - throw error; - } - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(); - } - return await this._startOrAuthSse({ resumptionToken: undefined }); - } - async _commonHeaders() { - const headers = {}; - if (this._authProvider) { - const tokens = await this._authProvider.tokens(); - if (tokens) { - headers['Authorization'] = `Bearer ${tokens.access_token}`; - } - } - if (this._sessionId) { - headers['mcp-session-id'] = this._sessionId; - } - if (this._protocolVersion) { - headers['mcp-protocol-version'] = this._protocolVersion; - } - const extraHeaders = (0, transport_js_1.normalizeHeaders)(this._requestInit?.headers); - return new Headers({ - ...headers, - ...extraHeaders - }); - } - async _startOrAuthSse(options) { - const { resumptionToken } = options; - try { - // Try to open an initial SSE stream with GET to listen for server messages - // This is optional according to the spec - server may not support it - const headers = await this._commonHeaders(); - headers.set('Accept', 'text/event-stream'); - // Include Last-Event-ID header for resumable streams if provided - if (resumptionToken) { - headers.set('last-event-id', resumptionToken); - } - const response = await (this._fetch ?? fetch)(this._url, { - method: 'GET', - headers, - signal: this._abortController?.signal - }); - if (!response.ok) { - await response.body?.cancel(); - if (response.status === 401 && this._authProvider) { - // Need to authenticate - return await this._authThenStart(); - } - // 405 indicates that the server does not offer an SSE stream at GET endpoint - // This is an expected case that should not trigger an error - if (response.status === 405) { - return; - } - throw new StreamableHTTPError(response.status, `Failed to open SSE stream: ${response.statusText}`); - } - this._handleSseStream(response.body, options, true); - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - /** - * Calculates the next reconnection delay using backoff algorithm - * - * @param attempt Current reconnection attempt count for the specific stream - * @returns Time to wait in milliseconds before next reconnection attempt - */ - _getNextReconnectionDelay(attempt) { - // Use server-provided retry value if available - if (this._serverRetryMs !== undefined) { - return this._serverRetryMs; - } - // Fall back to exponential backoff - const initialDelay = this._reconnectionOptions.initialReconnectionDelay; - const growFactor = this._reconnectionOptions.reconnectionDelayGrowFactor; - const maxDelay = this._reconnectionOptions.maxReconnectionDelay; - // Cap at maximum delay - return Math.min(initialDelay * Math.pow(growFactor, attempt), maxDelay); - } - /** - * Schedule a reconnection attempt using server-provided retry interval or backoff - * - * @param lastEventId The ID of the last received event for resumability - * @param attemptCount Current reconnection attempt count for this specific stream - */ - _scheduleReconnection(options, attemptCount = 0) { - // Use provided options or default options - const maxRetries = this._reconnectionOptions.maxRetries; - // Check if we've exceeded maximum retry attempts - if (attemptCount >= maxRetries) { - this.onerror?.(new Error(`Maximum reconnection attempts (${maxRetries}) exceeded.`)); - return; - } - // Calculate next delay based on current attempt count - const delay = this._getNextReconnectionDelay(attemptCount); - // Schedule the reconnection - this._reconnectionTimeout = setTimeout(() => { - // Use the last event ID to resume where we left off - this._startOrAuthSse(options).catch(error => { - this.onerror?.(new Error(`Failed to reconnect SSE stream: ${error instanceof Error ? error.message : String(error)}`)); - // Schedule another attempt if this one failed, incrementing the attempt counter - this._scheduleReconnection(options, attemptCount + 1); - }); - }, delay); - } - _handleSseStream(stream, options, isReconnectable) { - if (!stream) { - return; - } - const { onresumptiontoken, replayMessageId } = options; - let lastEventId; - // Track whether we've received a priming event (event with ID) - // Per spec, server SHOULD send a priming event with ID before closing - let hasPrimingEvent = false; - // Track whether we've received a response - if so, no need to reconnect - // Reconnection is for when server disconnects BEFORE sending response - let receivedResponse = false; - const processStream = async () => { - // this is the closest we can get to trying to catch network errors - // if something happens reader will throw - try { - // Create a pipeline: binary stream -> text decoder -> SSE parser - const reader = stream - .pipeThrough(new TextDecoderStream()) - .pipeThrough(new stream_1.EventSourceParserStream({ - onRetry: (retryMs) => { - // Capture server-provided retry value for reconnection timing - this._serverRetryMs = retryMs; - } - })) - .getReader(); - while (true) { - const { value: event, done } = await reader.read(); - if (done) { - break; - } - // Update last event ID if provided - if (event.id) { - lastEventId = event.id; - // Mark that we've received a priming event - stream is now resumable - hasPrimingEvent = true; - onresumptiontoken?.(event.id); - } - // Skip events with no data (priming events, keep-alives) - if (!event.data) { - continue; - } - if (!event.event || event.event === 'message') { - try { - const message = types_js_1.JSONRPCMessageSchema.parse(JSON.parse(event.data)); - if ((0, types_js_1.isJSONRPCResultResponse)(message)) { - // Mark that we received a response - no need to reconnect for this request - receivedResponse = true; - if (replayMessageId !== undefined) { - message.id = replayMessageId; - } - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - // Handle graceful server-side disconnect - // Server may close connection after sending event ID and retry field - // Reconnect if: already reconnectable (GET stream) OR received a priming event (POST stream with event ID) - // BUT don't reconnect if we already received a response - the request is complete - const canResume = isReconnectable || hasPrimingEvent; - const needsReconnect = canResume && !receivedResponse; - if (needsReconnect && this._abortController && !this._abortController.signal.aborted) { - this._scheduleReconnection({ - resumptionToken: lastEventId, - onresumptiontoken, - replayMessageId - }, 0); - } - } - catch (error) { - // Handle stream errors - likely a network disconnect - this.onerror?.(new Error(`SSE stream disconnected: ${error}`)); - // Attempt to reconnect if the stream disconnects unexpectedly and we aren't closing - // Reconnect if: already reconnectable (GET stream) OR received a priming event (POST stream with event ID) - // BUT don't reconnect if we already received a response - the request is complete - const canResume = isReconnectable || hasPrimingEvent; - const needsReconnect = canResume && !receivedResponse; - if (needsReconnect && this._abortController && !this._abortController.signal.aborted) { - // Use the exponential backoff reconnection strategy - try { - this._scheduleReconnection({ - resumptionToken: lastEventId, - onresumptiontoken, - replayMessageId - }, 0); - } - catch (error) { - this.onerror?.(new Error(`Failed to reconnect: ${error instanceof Error ? error.message : String(error)}`)); - } - } - } - }; - processStream(); - } - async start() { - if (this._abortController) { - throw new Error('StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - this._abortController = new AbortController(); - } - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - async finishAuth(authorizationCode) { - if (!this._authProvider) { - throw new auth_js_1.UnauthorizedError('No auth provider'); - } - const result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - authorizationCode, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError('Failed to authorize'); - } - } - async close() { - if (this._reconnectionTimeout) { - clearTimeout(this._reconnectionTimeout); - this._reconnectionTimeout = undefined; - } - this._abortController?.abort(); - this.onclose?.(); - } - async send(message, options) { - try { - const { resumptionToken, onresumptiontoken } = options || {}; - if (resumptionToken) { - // If we have at last event ID, we need to reconnect the SSE stream - this._startOrAuthSse({ resumptionToken, replayMessageId: (0, types_js_1.isJSONRPCRequest)(message) ? message.id : undefined }).catch(err => this.onerror?.(err)); - return; - } - const headers = await this._commonHeaders(); - headers.set('content-type', 'application/json'); - headers.set('accept', 'application/json, text/event-stream'); - const init = { - ...this._requestInit, - method: 'POST', - headers, - body: JSON.stringify(message), - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._url, init); - // Handle session ID received during initialization - const sessionId = response.headers.get('mcp-session-id'); - if (sessionId) { - this._sessionId = sessionId; - } - if (!response.ok) { - const text = await response.text().catch(() => null); - if (response.status === 401 && this._authProvider) { - // Prevent infinite recursion when server returns 401 after successful auth - if (this._hasCompletedAuthFlow) { - throw new StreamableHTTPError(401, 'Server returned 401 after successful authentication'); - } - const { resourceMetadataUrl, scope } = (0, auth_js_1.extractWWWAuthenticateParams)(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - const result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(); - } - // Mark that we completed auth flow - this._hasCompletedAuthFlow = true; - // Purposely _not_ awaited, so we don't call onerror twice - return this.send(message); - } - if (response.status === 403 && this._authProvider) { - const { resourceMetadataUrl, scope, error } = (0, auth_js_1.extractWWWAuthenticateParams)(response); - if (error === 'insufficient_scope') { - const wwwAuthHeader = response.headers.get('WWW-Authenticate'); - // Check if we've already tried upscoping with this header to prevent infinite loops. - if (this._lastUpscopingHeader === wwwAuthHeader) { - throw new StreamableHTTPError(403, 'Server returned 403 after trying upscoping'); - } - if (scope) { - this._scope = scope; - } - if (resourceMetadataUrl) { - this._resourceMetadataUrl = resourceMetadataUrl; - } - // Mark that upscoping was tried. - this._lastUpscopingHeader = wwwAuthHeader ?? undefined; - const result = await (0, auth_js_1.auth)(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetch - }); - if (result !== 'AUTHORIZED') { - throw new auth_js_1.UnauthorizedError(); - } - return this.send(message); - } - } - throw new StreamableHTTPError(response.status, `Error POSTing to endpoint: ${text}`); - } - // Reset auth loop flag on successful response - this._hasCompletedAuthFlow = false; - this._lastUpscopingHeader = undefined; - // If the response is 202 Accepted, there's no body to process - if (response.status === 202) { - await response.body?.cancel(); - // if the accepted notification is initialized, we start the SSE stream - // if it's supported by the server - if ((0, types_js_1.isInitializedNotification)(message)) { - // Start without a lastEventId since this is a fresh connection - this._startOrAuthSse({ resumptionToken: undefined }).catch(err => this.onerror?.(err)); - } - return; - } - // Get original message(s) for detecting request IDs - const messages = Array.isArray(message) ? message : [message]; - const hasRequests = messages.filter(msg => 'method' in msg && 'id' in msg && msg.id !== undefined).length > 0; - // Check the response type - const contentType = response.headers.get('content-type'); - if (hasRequests) { - if (contentType?.includes('text/event-stream')) { - // Handle SSE stream responses for requests - // We use the same handler as standalone streams, which now supports - // reconnection with the last event ID - this._handleSseStream(response.body, { onresumptiontoken }, false); - } - else if (contentType?.includes('application/json')) { - // For non-streaming servers, we might get direct JSON responses - const data = await response.json(); - const responseMessages = Array.isArray(data) - ? data.map(msg => types_js_1.JSONRPCMessageSchema.parse(msg)) - : [types_js_1.JSONRPCMessageSchema.parse(data)]; - for (const msg of responseMessages) { - this.onmessage?.(msg); - } - } - else { - await response.body?.cancel(); - throw new StreamableHTTPError(-1, `Unexpected content type: ${contentType}`); - } - } - else { - // No requests in message but got 200 OK - still need to release connection - await response.body?.cancel(); - } - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - get sessionId() { - return this._sessionId; - } - /** - * Terminates the current session by sending a DELETE request to the server. - * - * Clients that no longer need a particular session - * (e.g., because the user is leaving the client application) SHOULD send an - * HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly - * terminate the session. - * - * The server MAY respond with HTTP 405 Method Not Allowed, indicating that - * the server does not allow clients to terminate sessions. - */ - async terminateSession() { - if (!this._sessionId) { - return; // No session to terminate - } - try { - const headers = await this._commonHeaders(); - const init = { - ...this._requestInit, - method: 'DELETE', - headers, - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._url, init); - await response.body?.cancel(); - // We specifically handle 405 as a valid response according to the spec, - // meaning the server does not support explicit session termination - if (!response.ok && response.status !== 405) { - throw new StreamableHTTPError(response.status, `Failed to terminate session: ${response.statusText}`); - } - this._sessionId = undefined; - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - setProtocolVersion(version) { - this._protocolVersion = version; - } - get protocolVersion() { - return this._protocolVersion; - } - /** - * Resume an SSE stream from a previous event ID. - * Opens a GET SSE connection with Last-Event-ID header to replay missed events. - * - * @param lastEventId The event ID to resume from - * @param options Optional callback to receive new resumption tokens - */ - async resumeStream(lastEventId, options) { - await this._startOrAuthSse({ - resumptionToken: lastEventId, - onresumptiontoken: options?.onresumptiontoken - }); - } -} -exports.StreamableHTTPClientTransport = StreamableHTTPClientTransport; -//# sourceMappingURL=streamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map deleted file mode 100644 index 9e12cb7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.js","sourceRoot":"","sources":["../../../src/client/streamableHttp.ts"],"names":[],"mappings":";;;AAAA,yDAAqG;AACrG,0CAAyI;AACzI,uCAAmH;AACnH,sDAAoE;AAEpE,8DAA8D;AAC9D,MAAM,4CAA4C,GAAsC;IACpF,wBAAwB,EAAE,IAAI;IAC9B,oBAAoB,EAAE,KAAK;IAC3B,2BAA2B,EAAE,GAAG;IAChC,UAAU,EAAE,CAAC;CAChB,CAAC;AAEF,MAAa,mBAAoB,SAAQ,KAAK;IAC1C,YACoB,IAAwB,EACxC,OAA2B;QAE3B,KAAK,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC;QAH3B,SAAI,GAAJ,IAAI,CAAoB;IAI5C,CAAC;CACJ;AAPD,kDAOC;AAkGD;;;;GAIG;AACH,MAAa,6BAA6B;IAqBtC,YAAY,GAAQ,EAAE,IAA2C;QATzD,0BAAqB,GAAG,KAAK,CAAC,CAAC,iEAAiE;QAUpG,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,oBAAoB,GAAG,SAAS,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,IAAI,EAAE,WAAW,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,IAAI,EAAE,YAAY,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,IAAA,kCAAmB,EAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QAC1E,IAAI,CAAC,UAAU,GAAG,IAAI,EAAE,SAAS,CAAC;QAClC,IAAI,CAAC,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,IAAI,4CAA4C,C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,QAAQ,CAAC,MAAM,EAAE,gCAAgC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAChC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,EAAE,CAAC,KAAc,CAAC,CAAC;YAC/B,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC;IACpC,CAAC;IACD,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAAC,WAAmB,EAAE,OAAyD;QAC7F,MAAM,IAAI,CAAC,eAAe,CAAC;YACvB,eAAe,EAAE,WAAW;YAC5B,iBAAiB,EAAE,OAAO,EAAE,iBAAiB;SAChD,CAAC,CAAC;IACP,CAAC;CACJ;AAtiBD,sEAsiBC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts deleted file mode 100644 index 78f95de..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -export declare class WebSocketClientTransport implements Transport { - private _socket?; - private _url; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL); - start(): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=websocket.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map deleted file mode 100644 index 2882d98..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/client/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAInE;;GAEG;AACH,qBAAa,wBAAyB,YAAW,SAAS;IACtD,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG;IAIpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAsChB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAW/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js deleted file mode 100644 index 0cadb38..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebSocketClientTransport = void 0; -const types_js_1 = require("../types.js"); -const SUBPROTOCOL = 'mcp'; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -class WebSocketClientTransport { - constructor(url) { - this._url = url; - } - start() { - if (this._socket) { - throw new Error('WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return new Promise((resolve, reject) => { - this._socket = new WebSocket(this._url, SUBPROTOCOL); - this._socket.onerror = event => { - const error = 'error' in event ? event.error : new Error(`WebSocket error: ${JSON.stringify(event)}`); - reject(error); - this.onerror?.(error); - }; - this._socket.onopen = () => { - resolve(); - }; - this._socket.onclose = () => { - this.onclose?.(); - }; - this._socket.onmessage = (event) => { - let message; - try { - message = types_js_1.JSONRPCMessageSchema.parse(JSON.parse(event.data)); - } - catch (error) { - this.onerror?.(error); - return; - } - this.onmessage?.(message); - }; - }); - } - async close() { - this._socket?.close(); - } - send(message) { - return new Promise((resolve, reject) => { - if (!this._socket) { - reject(new Error('Not connected')); - return; - } - this._socket?.send(JSON.stringify(message)); - resolve(); - }); - } -} -exports.WebSocketClientTransport = WebSocketClientTransport; -//# sourceMappingURL=websocket.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map deleted file mode 100644 index ff439d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../src/client/websocket.ts"],"names":[],"mappings":";;;AACA,0CAAmE;AAEnE,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAa,wBAAwB;IAQjC,YAAY,GAAQ;QAChB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IACpB,CAAC;IAED,KAAK;QACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACX,mHAAmH,CACtH,CAAC;QACN,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,IAAI,CAAC,OAAO,GAAG,IAAI,SAAS,CA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;YACnC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAChB,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;gBACnC,OAAO;YACX,CAAC;YAED,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAjED,4DAiEC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts deleted file mode 100644 index 611f6eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationUrlExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map deleted file mode 100644 index e749adf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/elicitationUrlExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js deleted file mode 100644 index cb4d58b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +++ /dev/null @@ -1,692 +0,0 @@ -"use strict"; -// Run with: npx tsx src/examples/client/elicitationUrlExample.ts -// -// This example demonstrates how to use URL elicitation to securely -// collect user input in a remote (HTTP) server. -// URL elicitation allows servers to prompt the end-user to open a URL in their browser -// to collect sensitive information. -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const node_readline_1 = require("node:readline"); -const types_js_1 = require("../../types.js"); -const metadataUtils_js_1 = require("../../shared/metadataUtils.js"); -const node_child_process_1 = require("node:child_process"); -const simpleOAuthClientProvider_js_1 = require("./simpleOAuthClientProvider.js"); -const auth_js_1 = require("../../client/auth.js"); -const node_http_1 = require("node:http"); -// Set up OAuth (required for this example) -const OAUTH_CALLBACK_PORT = 8090; // Use different port than auth server (3001) -const OAUTH_CALLBACK_URL = `http://localhost:${OAUTH_CALLBACK_PORT}/callback`; -let oauthProvider = undefined; -console.log('Getting OAuth token...'); -const clientMetadata = { - client_name: 'Elicitation MCP Client', - redirect_uris: [OAUTH_CALLBACK_URL], - grant_types: ['authorization_code', 'refresh_token'], - response_types: ['code'], - token_endpoint_auth_method: 'client_secret_post', - scope: 'mcp:tools' -}; -oauthProvider = new simpleOAuthClientProvider_js_1.InMemoryOAuthClientProvider(OAUTH_CALLBACK_URL, clientMetadata, (redirectUrl) => { - console.log(`🌐 Opening browser for OAuth redirect: ${redirectUrl.toString()}`); - openBrowser(redirectUrl.toString()); -}); -// Create readline interface for user input -const readline = (0, node_readline_1.createInterface)({ - input: process.stdin, - output: process.stdout -}); -let abortCommand = new AbortController(); -// Global client and transport for interactive commands -let client = null; -let transport = null; -let serverUrl = 'http://localhost:3000/mcp'; -let sessionId = undefined; -let isProcessingCommand = false; -let isProcessingElicitations = false; -const elicitationQueue = []; -let elicitationQueueSignal = null; -let elicitationsCompleteSignal = null; -// Map to track pending URL elicitations waiting for completion notifications -const pendingURLElicitations = new Map(); -async function main() { - console.log('MCP Interactive Client'); - console.log('====================='); - // Connect to server immediately with default settings - await connect(); - // Start the elicitation loop in the background - elicitationLoop().catch(error => { - console.error('Unexpected error in elicitation loop:', error); - process.exit(1); - }); - // Short delay allowing the server to send any SSE elicitations on connection - await new Promise(resolve => setTimeout(resolve, 200)); - // Wait until we are done processing any initial elicitations - await waitForElicitationsToComplete(); - // Print help and start the command loop - printHelp(); - await commandLoop(); -} -async function waitForElicitationsToComplete() { - // Wait until the queue is empty and nothing is being processed - while (elicitationQueue.length > 0 || isProcessingElicitations) { - await new Promise(resolve => setTimeout(resolve, 100)); - } -} -function printHelp() { - console.log('\nAvailable commands:'); - console.log(' connect [url] - Connect to MCP server (default: http://localhost:3000/mcp)'); - console.log(' disconnect - Disconnect from server'); - console.log(' terminate-session - Terminate the current session'); - console.log(' reconnect - Reconnect to the server'); - console.log(' list-tools - List available tools'); - console.log(' call-tool [args] - Call a tool with optional JSON arguments'); - console.log(' payment-confirm - Test URL elicitation via error response with payment-confirm tool'); - console.log(' third-party-auth - Test tool that requires third-party OAuth credentials'); - console.log(' help - Show this help'); - console.log(' quit - Exit the program'); -} -async function commandLoop() { - await new Promise(resolve => { - if (!isProcessingElicitations) { - resolve(); - } - else { - elicitationsCompleteSignal = resolve; - } - }); - readline.question('\n> ', { signal: abortCommand.signal }, async (input) => { - isProcessingCommand = true; - const args = input.trim().split(/\s+/); - const command = args[0]?.toLowerCase(); - try { - switch (command) { - case 'connect': - await connect(args[1]); - break; - case 'disconnect': - await disconnect(); - break; - case 'terminate-session': - await terminateSession(); - break; - case 'reconnect': - await reconnect(); - break; - case 'list-tools': - await listTools(); - break; - case 'call-tool': - if (args.length < 2) { - console.log('Usage: call-tool [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callTool(toolName, toolArgs); - } - break; - case 'payment-confirm': - await callPaymentConfirmTool(); - break; - case 'third-party-auth': - await callThirdPartyAuthTool(); - break; - case 'help': - printHelp(); - break; - case 'quit': - case 'exit': - await cleanup(); - return; - default: - if (command) { - console.log(`Unknown command: ${command}`); - } - break; - } - } - catch (error) { - console.error(`Error executing command: ${error}`); - } - finally { - isProcessingCommand = false; - } - // Process another command after we've processed the this one - await commandLoop(); - }); -} -async function elicitationLoop() { - while (true) { - // Wait until we have elicitations to process - await new Promise(resolve => { - if (elicitationQueue.length > 0) { - resolve(); - } - else { - elicitationQueueSignal = resolve; - } - }); - isProcessingElicitations = true; - abortCommand.abort(); // Abort the command loop if it's running - // Process all queued elicitations - while (elicitationQueue.length > 0) { - const queued = elicitationQueue.shift(); - console.log(`📤 Processing queued elicitation (${elicitationQueue.length} remaining)`); - try { - const result = await handleElicitationRequest(queued.request); - queued.resolve(result); - } - catch (error) { - queued.reject(error instanceof Error ? error : new Error(String(error))); - } - } - console.log('✅ All queued elicitations processed. Resuming command loop...\n'); - isProcessingElicitations = false; - // Reset the abort controller for the next command loop - abortCommand = new AbortController(); - // Resume the command loop - if (elicitationsCompleteSignal) { - elicitationsCompleteSignal(); - elicitationsCompleteSignal = null; - } - } -} -async function openBrowser(url) { - const command = `open "${url}"`; - (0, node_child_process_1.exec)(command, error => { - if (error) { - console.error(`Failed to open browser: ${error.message}`); - console.log(`Please manually open: ${url}`); - } - }); -} -/** - * Enqueues an elicitation request and returns the result. - * - * This function is used so that our CLI (which can only handle one input request at a time) - * can handle elicitation requests and the command loop. - * - * @param request - The elicitation request to be handled - * @returns The elicitation result - */ -async function elicitationRequestHandler(request) { - // If we are processing a command, handle this elicitation immediately - if (isProcessingCommand) { - console.log('📋 Processing elicitation immediately (during command execution)'); - return await handleElicitationRequest(request); - } - // Otherwise, queue the request to be handled by the elicitation loop - console.log(`📥 Queueing elicitation request (queue size will be: ${elicitationQueue.length + 1})`); - return new Promise((resolve, reject) => { - elicitationQueue.push({ - request, - resolve, - reject - }); - // Signal the elicitation loop that there's work to do - if (elicitationQueueSignal) { - elicitationQueueSignal(); - elicitationQueueSignal = null; - } - }); -} -/** - * Handles an elicitation request. - * - * This function is used to handle the elicitation request and return the result. - * - * @param request - The elicitation request to be handled - * @returns The elicitation result - */ -async function handleElicitationRequest(request) { - const mode = request.params.mode; - console.log('\n🔔 Elicitation Request Received:'); - console.log(`Mode: ${mode}`); - if (mode === 'url') { - return { - action: await handleURLElicitation(request.params) - }; - } - else { - // Should not happen because the client declares its capabilities to the server, - // but being defensive is a good practice: - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Unsupported elicitation mode: ${mode}`); - } -} -/** - * Handles a URL elicitation by opening the URL in the browser. - * - * Note: This is a shared code for both request handlers and error handlers. - * As a result of sharing schema, there is no big forking of logic for the client. - * - * @param params - The URL elicitation request parameters - * @returns The action to take (accept, cancel, or decline) - */ -async function handleURLElicitation(params) { - const url = params.url; - const elicitationId = params.elicitationId; - const message = params.message; - console.log(`🆔 Elicitation ID: ${elicitationId}`); // Print for illustration - // Parse URL to show domain for security - let domain = 'unknown domain'; - try { - const parsedUrl = new URL(url); - domain = parsedUrl.hostname; - } - catch { - console.error('Invalid URL provided by server'); - return 'decline'; - } - // Example security warning to help prevent phishing attacks - console.log('\n⚠️ \x1b[33mSECURITY WARNING\x1b[0m ⚠️'); - console.log('\x1b[33mThe server is requesting you to open an external URL.\x1b[0m'); - console.log('\x1b[33mOnly proceed if you trust this server and understand why it needs this.\x1b[0m\n'); - console.log(`🌐 Target domain: \x1b[36m${domain}\x1b[0m`); - console.log(`🔗 Full URL: \x1b[36m${url}\x1b[0m`); - console.log(`\nℹ️ Server's reason:\n\n\x1b[36m${message}\x1b[0m\n`); - // 1. Ask for user consent to open the URL - const consent = await new Promise(resolve => { - readline.question('\nDo you want to open this URL in your browser? (y/n): ', input => { - resolve(input.trim().toLowerCase()); - }); - }); - // 2. If user did not consent, return appropriate result - if (consent === 'no' || consent === 'n') { - console.log('❌ URL navigation declined.'); - return 'decline'; - } - else if (consent !== 'yes' && consent !== 'y') { - console.log('🚫 Invalid response. Cancelling elicitation.'); - return 'cancel'; - } - // 3. Wait for completion notification in the background - const completionPromise = new Promise((resolve, reject) => { - const timeout = setTimeout(() => { - pendingURLElicitations.delete(elicitationId); - console.log(`\x1b[31m❌ Elicitation ${elicitationId} timed out waiting for completion.\x1b[0m`); - reject(new Error('Elicitation completion timeout')); - }, 5 * 60 * 1000); // 5 minute timeout - pendingURLElicitations.set(elicitationId, { - resolve: () => { - clearTimeout(timeout); - resolve(); - }, - reject, - timeout - }); - }); - completionPromise.catch(error => { - console.error('Background completion wait failed:', error); - }); - // 4. Open the URL in the browser - console.log(`\n🚀 Opening browser to: ${url}`); - await openBrowser(url); - console.log('\n⏳ Waiting for you to complete the interaction in your browser...'); - console.log(' The server will send a notification once you complete the action.'); - // 5. Acknowledge the user accepted the elicitation - return 'accept'; -} -/** - * Example OAuth callback handler - in production, use a more robust approach - * for handling callbacks and storing tokens - */ -/** - * Starts a temporary HTTP server to receive the OAuth callback - */ -async function waitForOAuthCallback() { - return new Promise((resolve, reject) => { - const server = (0, node_http_1.createServer)((req, res) => { - // Ignore favicon requests - if (req.url === '/favicon.ico') { - res.writeHead(404); - res.end(); - return; - } - console.log(`📥 Received callback: ${req.url}`); - const parsedUrl = new URL(req.url || '', 'http://localhost'); - const code = parsedUrl.searchParams.get('code'); - const error = parsedUrl.searchParams.get('error'); - if (code) { - console.log(`✅ Authorization code received: ${code?.substring(0, 10)}...`); - res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Successful!

-

This simulates successful authorization of the MCP client, which now has an access token for the MCP server.

-

This window will close automatically in 10 seconds.

- - - - `); - resolve(code); - setTimeout(() => server.close(), 15000); - } - else if (error) { - console.log(`❌ Authorization error: ${error}`); - res.writeHead(400, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Failed

-

Error: ${error}

- - - `); - reject(new Error(`OAuth authorization failed: ${error}`)); - } - else { - console.log(`❌ No authorization code or error in callback`); - res.writeHead(400); - res.end('Bad request'); - reject(new Error('No authorization code provided')); - } - }); - server.listen(OAUTH_CALLBACK_PORT, () => { - console.log(`OAuth callback server started on http://localhost:${OAUTH_CALLBACK_PORT}`); - }); - }); -} -/** - * Attempts to connect to the MCP server with OAuth authentication. - * Handles OAuth flow recursively if authorization is required. - */ -async function attemptConnection(oauthProvider) { - console.log('🚢 Creating transport with OAuth provider...'); - const baseUrl = new URL(serverUrl); - transport = new streamableHttp_js_1.StreamableHTTPClientTransport(baseUrl, { - sessionId: sessionId, - authProvider: oauthProvider - }); - console.log('🚢 Transport created'); - try { - console.log('🔌 Attempting connection (this will trigger OAuth redirect if needed)...'); - await client.connect(transport); - sessionId = transport.sessionId; - console.log('Transport created with session ID:', sessionId); - console.log('✅ Connected successfully'); - } - catch (error) { - if (error instanceof auth_js_1.UnauthorizedError) { - console.log('🔐 OAuth required - waiting for authorization...'); - const callbackPromise = waitForOAuthCallback(); - const authCode = await callbackPromise; - await transport.finishAuth(authCode); - console.log('🔐 Authorization code received:', authCode); - console.log('🔌 Reconnecting with authenticated transport...'); - // Recursively retry connection after OAuth completion - await attemptConnection(oauthProvider); - } - else { - console.error('❌ Connection failed with non-auth error:', error); - throw error; - } - } -} -async function connect(url) { - if (client) { - console.log('Already connected. Disconnect first.'); - return; - } - if (url) { - serverUrl = url; - } - console.log(`🔗 Attempting to connect to ${serverUrl}...`); - // Create a new client with elicitation capability - console.log('👤 Creating MCP client...'); - client = new index_js_1.Client({ - name: 'example-client', - version: '1.0.0' - }, { - capabilities: { - elicitation: { - // Only URL elicitation is supported in this demo - // (see server/elicitationExample.ts for a demo of form mode elicitation) - url: {} - } - } - }); - console.log('👤 Client created'); - // Set up elicitation request handler with proper validation - client.setRequestHandler(types_js_1.ElicitRequestSchema, elicitationRequestHandler); - // Set up notification handler for elicitation completion - client.setNotificationHandler(types_js_1.ElicitationCompleteNotificationSchema, notification => { - const { elicitationId } = notification.params; - const pending = pendingURLElicitations.get(elicitationId); - if (pending) { - clearTimeout(pending.timeout); - pendingURLElicitations.delete(elicitationId); - console.log(`\x1b[32m✅ Elicitation ${elicitationId} completed!\x1b[0m`); - pending.resolve(); - } - else { - // Shouldn't happen - discard it! - console.warn(`Received completion notification for unknown elicitation: ${elicitationId}`); - } - }); - try { - console.log('🔐 Starting OAuth flow...'); - await attemptConnection(oauthProvider); - console.log('Connected to MCP server'); - // Set up error handler after connection is established so we don't double log errors - client.onerror = error => { - console.error('\x1b[31mClient error:', error, '\x1b[0m'); - }; - } - catch (error) { - console.error('Failed to connect:', error); - client = null; - transport = null; - return; - } -} -async function disconnect() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - await transport.close(); - console.log('Disconnected from MCP server'); - client = null; - transport = null; - } - catch (error) { - console.error('Error disconnecting:', error); - } -} -async function terminateSession() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - console.log('Terminating session with ID:', transport.sessionId); - await transport.terminateSession(); - console.log('Session terminated successfully'); - // Check if sessionId was cleared after termination - if (!transport.sessionId) { - console.log('Session ID has been cleared'); - sessionId = undefined; - // Also close the transport and clear client objects - await transport.close(); - console.log('Transport closed after session termination'); - client = null; - transport = null; - } - else { - console.log('Server responded with 405 Method Not Allowed (session termination not supported)'); - console.log('Session ID is still active:', transport.sessionId); - } - } - catch (error) { - console.error('Error terminating session:', error); - } -} -async function reconnect() { - if (client) { - await disconnect(); - } - await connect(); -} -async function listTools() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, types_js_1.ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - id: ${tool.name}, name: ${(0, metadataUtils_js_1.getDisplayName)(tool)}, description: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server (${error})`); - } -} -async function callTool(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name, - arguments: args - } - }; - console.log(`Calling tool '${name}' with args:`, args); - const result = await client.request(request, types_js_1.CallToolResultSchema); - console.log('Tool result:'); - const resourceLinks = []; - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else if (item.type === 'resource_link') { - const resourceLink = item; - resourceLinks.push(resourceLink); - console.log(` 📁 Resource Link: ${resourceLink.name}`); - console.log(` URI: ${resourceLink.uri}`); - if (resourceLink.mimeType) { - console.log(` Type: ${resourceLink.mimeType}`); - } - if (resourceLink.description) { - console.log(` Description: ${resourceLink.description}`); - } - } - else if (item.type === 'resource') { - console.log(` [Embedded Resource: ${item.resource.uri}]`); - } - else if (item.type === 'image') { - console.log(` [Image: ${item.mimeType}]`); - } - else if (item.type === 'audio') { - console.log(` [Audio: ${item.mimeType}]`); - } - else { - console.log(` [Unknown content type]:`, item); - } - }); - // Offer to read resource links - if (resourceLinks.length > 0) { - console.log(`\nFound ${resourceLinks.length} resource link(s). Use 'read-resource ' to read their content.`); - } - } - catch (error) { - if (error instanceof types_js_1.UrlElicitationRequiredError) { - console.log('\n🔔 Elicitation Required Error Received:'); - console.log(`Message: ${error.message}`); - for (const e of error.elicitations) { - await handleURLElicitation(e); // For the error handler, we discard the action result because we don't respond to an error response - } - return; - } - console.log(`Error calling tool ${name}: ${error}`); - } -} -async function cleanup() { - if (client && transport) { - try { - // First try to terminate the session gracefully - if (transport.sessionId) { - try { - console.log('Terminating session before exit...'); - await transport.terminateSession(); - console.log('Session terminated successfully'); - } - catch (error) { - console.error('Error terminating session:', error); - } - } - // Then close the transport - await transport.close(); - } - catch (error) { - console.error('Error closing transport:', error); - } - } - process.stdin.setRawMode(false); - readline.close(); - console.log('\nGoodbye!'); - process.exit(0); -} -async function callPaymentConfirmTool() { - console.log('Calling payment-confirm tool...'); - await callTool('payment-confirm', { cartId: 'cart_123' }); -} -async function callThirdPartyAuthTool() { - console.log('Calling third-party-auth tool...'); - await callTool('third-party-auth', { param1: 'test' }); -} -// Set up raw mode for keyboard input to capture Escape key -process.stdin.setRawMode(true); -process.stdin.on('data', async (data) => { - // Check for Escape key (27) - if (data.length === 1 && data[0] === 27) { - console.log('\nESC key pressed. Disconnecting from server...'); - // Abort current operation and disconnect from server - if (client && transport) { - await disconnect(); - console.log('Disconnected. Press Enter to continue.'); - } - else { - console.log('Not connected to server.'); - } - // Re-display the prompt - process.stdout.write('> '); - } -}); -// Handle Ctrl+C -process.on('SIGINT', async () => { - console.log('\nReceived SIGINT. Cleaning up...'); - await cleanup(); -}); -// Start the interactive client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=elicitationUrlExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map deleted file mode 100644 index fd32734..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.js","sourceRoot":"","sources":["../../../../src/examples/client/elicitationUrlExample.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,EAAE;AACF,mEAAmE;AACnE,gDAAgD;AAChD,uFAAuF;AACvF,oCAAoC;;AAEpC,oDAA+C;AAC/C,sEAA+E;AAC/E,iDAAgD;AAChD,6CAcwB;AACxB,oEAA+D;AAE/D,2DAA0C;AAC1C,iFAA6E;AAC7E,kDAAyD;AACzD,yCAAyC;AAEzC,2CAA2C;AAC3C,MAAM,mBAAmB,GAAG,IAAI,CAAC,CAAC,6CAA6C;AAC/E,MAAM,kBAAkB,GAAG,oBAAoB,mBAAmB,WAAW,CAAC;AAC9E,IAAI,aAAa,GAA4C,SAAS,CAAC;AAEvE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;AACtC,MAAM,cAAc,GAAwB;IACxC,WAAW,EAAE,wBAA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,MAAM,EAAE,CAAC,CAAC;AAC3D,CAAC;AAED,2DAA2D;AAC3D,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC/B,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,EAAC,IAAI,EAAC,EAAE;IAClC,4BAA4B;IAC5B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;QAE/D,qDAAqD;QACrD,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;YACtB,MAAM,UAAU,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QAC1D,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QAC5C,CAAC;QAED,wBAAwB;QACxB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,gBAAgB;AAChB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACjD,MAAM,OAAO,EAAE,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts deleted file mode 100644 index 0ac5af8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=multipleClientsParallel.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map deleted file mode 100644 index 91051dc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleClientsParallel.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/multipleClientsParallel.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js deleted file mode 100644 index 5cfbb2f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -/** - * Multiple Clients MCP Example - * - * This client demonstrates how to: - * 1. Create multiple MCP clients in parallel - * 2. Each client calls a single tool - * 3. Track notifications from each client independently - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function createAndRunClient(config) { - console.log(`[${config.id}] Creating client: ${config.name}`); - const client = new index_js_1.Client({ - name: config.name, - version: '1.0.0' - }); - const transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(serverUrl)); - // Set up client-specific error handler - client.onerror = error => { - console.error(`[${config.id}] Client error:`, error); - }; - // Set up client-specific notification handler - client.setNotificationHandler(types_js_1.LoggingMessageNotificationSchema, notification => { - console.log(`[${config.id}] Notification: ${notification.params.data}`); - }); - try { - // Connect to the server - await client.connect(transport); - console.log(`[${config.id}] Connected to MCP server`); - // Call the specified tool - console.log(`[${config.id}] Calling tool: ${config.toolName}`); - const toolRequest = { - method: 'tools/call', - params: { - name: config.toolName, - arguments: { - ...config.toolArguments, - // Add client ID to arguments for identification in notifications - caller: config.id - } - } - }; - const result = await client.request(toolRequest, types_js_1.CallToolResultSchema); - console.log(`[${config.id}] Tool call completed`); - // Keep the connection open for a bit to receive notifications - await new Promise(resolve => setTimeout(resolve, 5000)); - // Disconnect - await transport.close(); - console.log(`[${config.id}] Disconnected from MCP server`); - return { id: config.id, result }; - } - catch (error) { - console.error(`[${config.id}] Error:`, error); - throw error; - } -} -async function main() { - console.log('MCP Multiple Clients Example'); - console.log('============================'); - console.log(`Server URL: ${serverUrl}`); - console.log(''); - try { - // Define client configurations - const clientConfigs = [ - { - id: 'client1', - name: 'basic-client-1', - toolName: 'start-notification-stream', - toolArguments: { - interval: 3, // 1 second between notifications - count: 5 // Send 5 notifications - } - }, - { - id: 'client2', - name: 'basic-client-2', - toolName: 'start-notification-stream', - toolArguments: { - interval: 2, // 2 seconds between notifications - count: 3 // Send 3 notifications - } - }, - { - id: 'client3', - name: 'basic-client-3', - toolName: 'start-notification-stream', - toolArguments: { - interval: 1, // 0.5 second between notifications - count: 8 // Send 8 notifications - } - } - ]; - // Start all clients in parallel - console.log(`Starting ${clientConfigs.length} clients in parallel...`); - console.log(''); - const clientPromises = clientConfigs.map(config => createAndRunClient(config)); - const results = await Promise.all(clientPromises); - // Display results from all clients - console.log('\n=== Final Results ==='); - results.forEach(({ id, result }) => { - console.log(`\n[${id}] Tool result:`); - if (Array.isArray(result.content)) { - result.content.forEach((item) => { - if (item.type === 'text' && item.text) { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - else { - console.log(` Unexpected result format:`, result); - } - }); - console.log('\n=== All clients completed successfully ==='); - } - catch (error) { - console.error('Error running multiple clients:', error); - process.exit(1); - } -} -// Start the example -main().catch((error) => { - console.error('Error running MCP multiple clients example:', error); - process.exit(1); -}); -//# sourceMappingURL=multipleClientsParallel.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map deleted file mode 100644 index 05812d1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleClientsParallel.js","sourceRoot":"","sources":["../../../../src/examples/client/multipleClientsParallel.ts"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,sEAA+E;AAC/E,6CAAyH;AAEzH;;;;;;;GAOG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AASzD,KAAK,UAAU,kBAAkB,CAAC,MAAoB;IAClD,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,EAAE,sBAAsB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,IAAI,iBAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,OAAO,EAAE,OAAO;KACnB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,IAAI,iDAA6B,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;IAExE,uCAAuC;IACvC,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,EAAE;QACrB,OAAO,CAAC,KAAK,CAAC,IA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,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts deleted file mode 100644 index e93d4d6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=parallelToolCallsClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map deleted file mode 100644 index 25a3b82..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parallelToolCallsClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/parallelToolCallsClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js deleted file mode 100644 index e5a9829..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js +++ /dev/null @@ -1,176 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -/** - * Parallel Tool Calls MCP Client - * - * This client demonstrates how to: - * 1. Start multiple tool calls in parallel - * 2. Track notifications from each tool call using a caller parameter - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function main() { - console.log('MCP Parallel Tool Calls Client'); - console.log('=============================='); - console.log(`Connecting to server at: ${serverUrl}`); - let client; - let transport; - try { - // Create client with streamable HTTP transport - client = new index_js_1.Client({ - name: 'parallel-tool-calls-client', - version: '1.0.0' - }); - client.onerror = error => { - console.error('Client error:', error); - }; - // Connect to the server - transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(serverUrl)); - await client.connect(transport); - console.log('Successfully connected to MCP server'); - // Set up notification handler with caller identification - client.setNotificationHandler(types_js_1.LoggingMessageNotificationSchema, notification => { - console.log(`Notification: ${notification.params.data}`); - }); - console.log('List tools'); - const toolsRequest = await listTools(client); - console.log('Tools: ', toolsRequest); - // 2. Start multiple notification tools in parallel - console.log('\n=== Starting Multiple Notification Streams in Parallel ==='); - const toolResults = await startParallelNotificationTools(client); - // Log the results from each tool call - for (const [caller, result] of Object.entries(toolResults)) { - console.log(`\n=== Tool result for ${caller} ===`); - result.content.forEach((item) => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - // 3. Wait for all notifications (10 seconds) - console.log('\n=== Waiting for all notifications ==='); - await new Promise(resolve => setTimeout(resolve, 10000)); - // 4. Disconnect - console.log('\n=== Disconnecting ==='); - await transport.close(); - console.log('Disconnected from MCP server'); - } - catch (error) { - console.error('Error running client:', error); - process.exit(1); - } -} -/** - * List available tools on the server - */ -async function listTools(client) { - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, types_js_1.ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - ${tool.name}: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server: ${error}`); - } -} -/** - * Start multiple notification tools in parallel with different configurations - * Each tool call includes a caller parameter to identify its notifications - */ -async function startParallelNotificationTools(client) { - try { - // Define multiple tool calls with different configurations - const toolCalls = [ - { - caller: 'fast-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 2, // 0.5 second between notifications - count: 10, // Send 10 notifications - caller: 'fast-notifier' // Identify this tool call - } - } - } - }, - { - caller: 'slow-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 5, // 2 seconds between notifications - count: 5, // Send 5 notifications - caller: 'slow-notifier' // Identify this tool call - } - } - } - }, - { - caller: 'burst-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 1, // 0.1 second between notifications - count: 3, // Send just 3 notifications - caller: 'burst-notifier' // Identify this tool call - } - } - } - } - ]; - console.log(`Starting ${toolCalls.length} notification tools in parallel...`); - // Start all tool calls in parallel - const toolPromises = toolCalls.map(({ caller, request }) => { - console.log(`Starting tool call for ${caller}...`); - return client - .request(request, types_js_1.CallToolResultSchema) - .then(result => ({ caller, result })) - .catch(error => { - console.error(`Error in tool call for ${caller}:`, error); - throw error; - }); - }); - // Wait for all tool calls to complete - const results = await Promise.all(toolPromises); - // Organize results by caller - const resultsByTool = {}; - results.forEach(({ caller, result }) => { - resultsByTool[caller] = result; - }); - return resultsByTool; - } - catch (error) { - console.error(`Error starting parallel notification tools:`, error); - throw error; - } -} -// Start the client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=parallelToolCallsClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map deleted file mode 100644 index dabdf48..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parallelToolCallsClient.js","sourceRoot":"","sources":["../../../../src/examples/client/parallelToolCallsClient.ts"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,sEAA+E;AAC/E,6CAMwB;AAExB;;;;;;GAMG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AAEzD,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;IAErD,IAAI,MAAc,CAAC;IACnB,IAAI,SAAwC,CAAC;IAE7C,IAAI,CAAC;QACD,+CAA+C;QAC/C,MAAM,GAAG,IAAI,iBAAM,CAAC;YAChB,IAAI,EAAE,4BAA4B;YAClC,OAAO,EAAE,OAAO;SACnB,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,EAAE;YACrB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC,CAAC;QAEF,wBAAwB;QACxB,SAAS,GAAG,IAAI,iDAA6B,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;QAClE,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QAEpD,yDAAyD;QACzD,MAAM,CAAC,sBAAsB,CAAC,2CAAgC,EAAE,YAAY,CAAC,EAAE;YAC3E,OAAO,CAAC,GAAG,CAAC,iBAAiB,YAAY,CAAC,MA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;QAEH,sCAAsC;QACtC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEhD,6BAA6B;QAC7B,MAAM,aAAa,GAAmC,EAAE,CAAC;QACzD,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;YACnC,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,OAAO,aAAa,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;QACpE,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts deleted file mode 100644 index 876d25d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env node -/** - * Example demonstrating client_credentials grant for machine-to-machine authentication. - * - * Supports two authentication methods based on environment variables: - * - * 1. client_secret_basic (default): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_SECRET - OAuth client secret (required) - * - * 2. private_key_jwt (when MCP_CLIENT_PRIVATE_KEY_PEM is set): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_PRIVATE_KEY_PEM - PEM-encoded private key for JWT signing (required) - * MCP_CLIENT_ALGORITHM - Signing algorithm (default: RS256) - * - * Common: - * MCP_SERVER_URL - Server URL (default: http://localhost:3000/mcp) - */ -export {}; -//# sourceMappingURL=simpleClientCredentials.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map deleted file mode 100644 index 7a935db..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleClientCredentials.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleClientCredentials.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;GAgBG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js deleted file mode 100644 index 0b251b1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env node -"use strict"; -/** - * Example demonstrating client_credentials grant for machine-to-machine authentication. - * - * Supports two authentication methods based on environment variables: - * - * 1. client_secret_basic (default): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_SECRET - OAuth client secret (required) - * - * 2. private_key_jwt (when MCP_CLIENT_PRIVATE_KEY_PEM is set): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_PRIVATE_KEY_PEM - PEM-encoded private key for JWT signing (required) - * MCP_CLIENT_ALGORITHM - Signing algorithm (default: RS256) - * - * Common: - * MCP_SERVER_URL - Server URL (default: http://localhost:3000/mcp) - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const auth_extensions_js_1 = require("../../client/auth-extensions.js"); -const DEFAULT_SERVER_URL = process.env.MCP_SERVER_URL || 'http://localhost:3000/mcp'; -function createProvider() { - const clientId = process.env.MCP_CLIENT_ID; - if (!clientId) { - console.error('MCP_CLIENT_ID environment variable is required'); - process.exit(1); - } - // If private key is provided, use private_key_jwt authentication - const privateKeyPem = process.env.MCP_CLIENT_PRIVATE_KEY_PEM; - if (privateKeyPem) { - const algorithm = process.env.MCP_CLIENT_ALGORITHM || 'RS256'; - console.log('Using private_key_jwt authentication'); - return new auth_extensions_js_1.PrivateKeyJwtProvider({ - clientId, - privateKey: privateKeyPem, - algorithm - }); - } - // Otherwise, use client_secret_basic authentication - const clientSecret = process.env.MCP_CLIENT_SECRET; - if (!clientSecret) { - console.error('MCP_CLIENT_SECRET or MCP_CLIENT_PRIVATE_KEY_PEM environment variable is required'); - process.exit(1); - } - console.log('Using client_secret_basic authentication'); - return new auth_extensions_js_1.ClientCredentialsProvider({ - clientId, - clientSecret - }); -} -async function main() { - const provider = createProvider(); - const client = new index_js_1.Client({ name: 'client-credentials-example', version: '1.0.0' }, { capabilities: {} }); - const transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(DEFAULT_SERVER_URL), { - authProvider: provider - }); - await client.connect(transport); - console.log('Connected successfully.'); - const tools = await client.listTools(); - console.log('Available tools:', tools.tools.map(t => t.name).join(', ') || '(none)'); - await transport.close(); -} -main().catch(err => { - console.error(err); - process.exit(1); -}); -//# sourceMappingURL=simpleClientCredentials.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map deleted file mode 100644 index 65e4b52..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleClientCredentials.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleClientCredentials.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;GAgBG;;AAEH,oDAA+C;AAC/C,sEAA+E;AAC/E,wEAAmG;AAGnG,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,2BAA2B,CAAC;AAErF,SAAS,cAAc;IACnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;IAC3C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,iEAAiE;IACjE,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC7D,IAAI,aAAa,EAAE,CAAC;QAChB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,OAAO,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QACpD,OAAO,IAAI,0CAAqB,CAAC;YAC7B,QAAQ;YACR,UAAU,EAAE,aAAa;YACzB,SAAS;SACZ,CAAC,CAAC;IACP,CAAC;IAED,oDAAoD;IACpD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACnD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,kFAAkF,CAAC,CAAC;QAClG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACxD,OAAO,IAAI,8CAAyB,CAAC;QACjC,QAAQ;QACR,YAAY;KACf,CAAC,CAAC;AACP,CAAC;AAED,KAAK,UAAU,IAAI;IACf,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAElC,MAAM,MAAM,GAAG,IAAI,iBAAM,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC;IAE1G,MAAM,SAAS,GAAG,IAAI,iDAA6B,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,EAAE;QAC7E,YAAY,EAAE,QAAQ;KACzB,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;IACvC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,CAAC;IAErF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IACf,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts deleted file mode 100644 index e4b43db..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -export {}; -//# sourceMappingURL=simpleOAuthClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map deleted file mode 100644 index c09eef8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js deleted file mode 100644 index 4b74120..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +++ /dev/null @@ -1,413 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_http_1 = require("node:http"); -const node_readline_1 = require("node:readline"); -const node_url_1 = require("node:url"); -const node_child_process_1 = require("node:child_process"); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -const auth_js_1 = require("../../client/auth.js"); -const simpleOAuthClientProvider_js_1 = require("./simpleOAuthClientProvider.js"); -// Configuration -const DEFAULT_SERVER_URL = 'http://localhost:3000/mcp'; -const CALLBACK_PORT = 8090; // Use different port than auth server (3001) -const CALLBACK_URL = `http://localhost:${CALLBACK_PORT}/callback`; -/** - * Interactive MCP client with OAuth authentication - * Demonstrates the complete OAuth flow with browser-based authorization - */ -class InteractiveOAuthClient { - constructor(serverUrl, clientMetadataUrl) { - this.serverUrl = serverUrl; - this.clientMetadataUrl = clientMetadataUrl; - this.client = null; - this.rl = (0, node_readline_1.createInterface)({ - input: process.stdin, - output: process.stdout - }); - } - /** - * Prompts user for input via readline - */ - async question(query) { - return new Promise(resolve => { - this.rl.question(query, resolve); - }); - } - /** - * Opens the authorization URL in the user's default browser - */ - async openBrowser(url) { - console.log(`🌐 Opening browser for authorization: ${url}`); - const command = `open "${url}"`; - (0, node_child_process_1.exec)(command, error => { - if (error) { - console.error(`Failed to open browser: ${error.message}`); - console.log(`Please manually open: ${url}`); - } - }); - } - /** - * Example OAuth callback handler - in production, use a more robust approach - * for handling callbacks and storing tokens - */ - /** - * Starts a temporary HTTP server to receive the OAuth callback - */ - async waitForOAuthCallback() { - return new Promise((resolve, reject) => { - const server = (0, node_http_1.createServer)((req, res) => { - // Ignore favicon requests - if (req.url === '/favicon.ico') { - res.writeHead(404); - res.end(); - return; - } - console.log(`📥 Received callback: ${req.url}`); - const parsedUrl = new node_url_1.URL(req.url || '', 'http://localhost'); - const code = parsedUrl.searchParams.get('code'); - const error = parsedUrl.searchParams.get('error'); - if (code) { - console.log(`✅ Authorization code received: ${code?.substring(0, 10)}...`); - res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Successful!

-

You can close this window and return to the terminal.

- - - - `); - resolve(code); - setTimeout(() => server.close(), 3000); - } - else if (error) { - console.log(`❌ Authorization error: ${error}`); - res.writeHead(400, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Failed

-

Error: ${error}

- - - `); - reject(new Error(`OAuth authorization failed: ${error}`)); - } - else { - console.log(`❌ No authorization code or error in callback`); - res.writeHead(400); - res.end('Bad request'); - reject(new Error('No authorization code provided')); - } - }); - server.listen(CALLBACK_PORT, () => { - console.log(`OAuth callback server started on http://localhost:${CALLBACK_PORT}`); - }); - }); - } - async attemptConnection(oauthProvider) { - console.log('🚢 Creating transport with OAuth provider...'); - const baseUrl = new node_url_1.URL(this.serverUrl); - const transport = new streamableHttp_js_1.StreamableHTTPClientTransport(baseUrl, { - authProvider: oauthProvider - }); - console.log('🚢 Transport created'); - try { - console.log('🔌 Attempting connection (this will trigger OAuth redirect)...'); - await this.client.connect(transport); - console.log('✅ Connected successfully'); - } - catch (error) { - if (error instanceof auth_js_1.UnauthorizedError) { - console.log('🔐 OAuth required - waiting for authorization...'); - const callbackPromise = this.waitForOAuthCallback(); - const authCode = await callbackPromise; - await transport.finishAuth(authCode); - console.log('🔐 Authorization code received:', authCode); - console.log('🔌 Reconnecting with authenticated transport...'); - await this.attemptConnection(oauthProvider); - } - else { - console.error('❌ Connection failed with non-auth error:', error); - throw error; - } - } - } - /** - * Establishes connection to the MCP server with OAuth authentication - */ - async connect() { - console.log(`🔗 Attempting to connect to ${this.serverUrl}...`); - const clientMetadata = { - client_name: 'Simple OAuth MCP Client', - redirect_uris: [CALLBACK_URL], - grant_types: ['authorization_code', 'refresh_token'], - response_types: ['code'], - token_endpoint_auth_method: 'client_secret_post' - }; - console.log('🔐 Creating OAuth provider...'); - const oauthProvider = new simpleOAuthClientProvider_js_1.InMemoryOAuthClientProvider(CALLBACK_URL, clientMetadata, (redirectUrl) => { - console.log(`📌 OAuth redirect handler called - opening browser`); - console.log(`Opening browser to: ${redirectUrl.toString()}`); - this.openBrowser(redirectUrl.toString()); - }, this.clientMetadataUrl); - console.log('🔐 OAuth provider created'); - console.log('👤 Creating MCP client...'); - this.client = new index_js_1.Client({ - name: 'simple-oauth-client', - version: '1.0.0' - }, { capabilities: {} }); - console.log('👤 Client created'); - console.log('🔐 Starting OAuth flow...'); - await this.attemptConnection(oauthProvider); - // Start interactive loop - await this.interactiveLoop(); - } - /** - * Main interactive loop for user commands - */ - async interactiveLoop() { - console.log('\n🎯 Interactive MCP Client with OAuth'); - console.log('Commands:'); - console.log(' list - List available tools'); - console.log(' call [args] - Call a tool'); - console.log(' stream [args] - Call a tool with streaming (shows task status)'); - console.log(' quit - Exit the client'); - console.log(); - while (true) { - try { - const command = await this.question('mcp> '); - if (!command.trim()) { - continue; - } - if (command === 'quit') { - console.log('\n👋 Goodbye!'); - this.close(); - process.exit(0); - } - else if (command === 'list') { - await this.listTools(); - } - else if (command.startsWith('call ')) { - await this.handleCallTool(command); - } - else if (command.startsWith('stream ')) { - await this.handleStreamTool(command); - } - else { - console.log("❌ Unknown command. Try 'list', 'call ', 'stream ', or 'quit'"); - } - } - catch (error) { - if (error instanceof Error && error.message === 'SIGINT') { - console.log('\n\n👋 Goodbye!'); - break; - } - console.error('❌ Error:', error); - } - } - } - async listTools() { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - const request = { - method: 'tools/list', - params: {} - }; - const result = await this.client.request(request, types_js_1.ListToolsResultSchema); - if (result.tools && result.tools.length > 0) { - console.log('\n📋 Available tools:'); - result.tools.forEach((tool, index) => { - console.log(`${index + 1}. ${tool.name}`); - if (tool.description) { - console.log(` Description: ${tool.description}`); - } - console.log(); - }); - } - else { - console.log('No tools available'); - } - } - catch (error) { - console.error('❌ Failed to list tools:', error); - } - } - async handleCallTool(command) { - const parts = command.split(/\s+/); - const toolName = parts[1]; - if (!toolName) { - console.log('❌ Please specify a tool name'); - return; - } - // Parse arguments (simple JSON-like format) - let toolArgs = {}; - if (parts.length > 2) { - const argsString = parts.slice(2).join(' '); - try { - toolArgs = JSON.parse(argsString); - } - catch { - console.log('❌ Invalid arguments format (expected JSON)'); - return; - } - } - await this.callTool(toolName, toolArgs); - } - async callTool(toolName, toolArgs) { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name: toolName, - arguments: toolArgs - } - }; - const result = await this.client.request(request, types_js_1.CallToolResultSchema); - console.log(`\n🔧 Tool '${toolName}' result:`); - if (result.content) { - result.content.forEach(content => { - if (content.type === 'text') { - console.log(content.text); - } - else { - console.log(content); - } - }); - } - else { - console.log(result); - } - } - catch (error) { - console.error(`❌ Failed to call tool '${toolName}':`, error); - } - } - async handleStreamTool(command) { - const parts = command.split(/\s+/); - const toolName = parts[1]; - if (!toolName) { - console.log('❌ Please specify a tool name'); - return; - } - // Parse arguments (simple JSON-like format) - let toolArgs = {}; - if (parts.length > 2) { - const argsString = parts.slice(2).join(' '); - try { - toolArgs = JSON.parse(argsString); - } - catch { - console.log('❌ Invalid arguments format (expected JSON)'); - return; - } - } - await this.streamTool(toolName, toolArgs); - } - async streamTool(toolName, toolArgs) { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - // Using the experimental tasks API - WARNING: may change without notice - console.log(`\n🔧 Streaming tool '${toolName}'...`); - const stream = this.client.experimental.tasks.callToolStream({ - name: toolName, - arguments: toolArgs - }, types_js_1.CallToolResultSchema, { - task: { - taskId: `task-${Date.now()}`, - ttl: 60000 - } - }); - // Iterate through all messages yielded by the generator - for await (const message of stream) { - switch (message.type) { - case 'taskCreated': - console.log(`✓ Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`⟳ Status: ${message.task.status}`); - if (message.task.statusMessage) { - console.log(` ${message.task.statusMessage}`); - } - break; - case 'result': - console.log('✓ Completed!'); - message.result.content.forEach(content => { - if (content.type === 'text') { - console.log(content.text); - } - else { - console.log(content); - } - }); - break; - case 'error': - console.log('✗ Error:'); - console.log(` ${message.error.message}`); - break; - } - } - } - catch (error) { - console.error(`❌ Failed to stream tool '${toolName}':`, error); - } - } - close() { - this.rl.close(); - if (this.client) { - // Note: Client doesn't have a close method in the current implementation - // This would typically close the transport connection - } - } -} -/** - * Main entry point - */ -async function main() { - const args = process.argv.slice(2); - const serverUrl = args[0] || DEFAULT_SERVER_URL; - const clientMetadataUrl = args[1]; - console.log('🚀 Simple MCP OAuth Client'); - console.log(`Connecting to: ${serverUrl}`); - if (clientMetadataUrl) { - console.log(`Client Metadata URL: ${clientMetadataUrl}`); - } - console.log(); - const client = new InteractiveOAuthClient(serverUrl, clientMetadataUrl); - // Handle graceful shutdown - process.on('SIGINT', () => { - console.log('\n\n👋 Goodbye!'); - client.close(); - process.exit(0); - }); - try { - await client.connect(); - } - catch (error) { - console.error('Failed to start client:', error); - process.exit(1); - } - finally { - client.close(); - } -} -// Run if this file is executed directly -main().catch(error => { - console.error('Unhandled error:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleOAuthClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map deleted file mode 100644 index 3126524..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClient.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClient.ts"],"names":[],"mappings":";;;AAEA,yCAAyC;AACzC,iDAAgD;AAChD,uCAA+B;AAC/B,2DAA0C;AAC1C,oDAA+C;AAC/C,sEAA+E;AAE/E,6CAAgH;AAChH,kDAAyD;AACzD,iFAA6E;AAE7E,gBAAgB;AAChB,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AACvD,MAAM,aAAa,GAAG,IAAI,CAAC,CAAC,6CAA6C;AACzE,MAAM,YAAY,GAAG,oBAAoB,aAAa,WAAW,CAAC;AAElE;;;GAGG;AACH,MAAM,sBAAsB;IAOxB,YACY,SAAiB,EACjB,iBAA0B;QAD1B,cAAS,GAAT,SAAS,CAAQ;QACjB,sBAAiB,GAAjB,iBAAiB,CAAS;QAR9B,WAAM,GAAkB,IAAI,CAAC;QACpB,OAAE,GAAG,IAAA,+BAAe,EAAC;YAClC,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC,CAAC;IAKA,CAAC;IAEJ;;OAEG;IACK,KAAK,CAAC,QAAQ,CAAC,KAAa;QAChC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YACzB,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,WAAW,CAAC,GAAW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AAQ,EAAE,GAAG,EAAE;QACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC/B,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC;QACD,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;YAAS,CAAC;QACP,MAAM,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;AACL,CAAC;AAED,wCAAwC;AACxC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IACzC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts deleted file mode 100644 index 092616c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { OAuthClientProvider } from '../../client/auth.js'; -import { OAuthClientInformationMixed, OAuthClientMetadata, OAuthTokens } from '../../shared/auth.js'; -/** - * In-memory OAuth client provider for demonstration purposes - * In production, you should persist tokens securely - */ -export declare class InMemoryOAuthClientProvider implements OAuthClientProvider { - private readonly _redirectUrl; - private readonly _clientMetadata; - readonly clientMetadataUrl?: string | undefined; - private _clientInformation?; - private _tokens?; - private _codeVerifier?; - constructor(_redirectUrl: string | URL, _clientMetadata: OAuthClientMetadata, onRedirect?: (url: URL) => void, clientMetadataUrl?: string | undefined); - private _onRedirect; - get redirectUrl(): string | URL; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformationMixed | undefined; - saveClientInformation(clientInformation: OAuthClientInformationMixed): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(authorizationUrl: URL): void; - saveCodeVerifier(codeVerifier: string): void; - codeVerifier(): string; -} -//# sourceMappingURL=simpleOAuthClientProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map deleted file mode 100644 index 21efe94..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClientProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErG;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IAM/D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;aAEhB,iBAAiB,CAAC,EAAE,MAAM;IAR9C,OAAO,CAAC,kBAAkB,CAAC,CAA8B;IACzD,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,aAAa,CAAC,CAAS;gBAGV,YAAY,EAAE,MAAM,GAAG,GAAG,EAC1B,eAAe,EAAE,mBAAmB,EACrD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,EACf,iBAAiB,CAAC,EAAE,MAAM,YAAA;IAS9C,OAAO,CAAC,WAAW,CAAqB;IAExC,IAAI,WAAW,IAAI,MAAM,GAAG,GAAG,CAE9B;IAED,IAAI,cAAc,IAAI,mBAAmB,CAExC;IAED,iBAAiB,IAAI,2BAA2B,GAAG,SAAS;IAI5D,qBAAqB,CAAC,iBAAiB,EAAE,2BAA2B,GAAG,IAAI;IAI3E,MAAM,IAAI,WAAW,GAAG,SAAS;IAIjC,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIrC,uBAAuB,CAAC,gBAAgB,EAAE,GAAG,GAAG,IAAI;IAIpD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAI5C,YAAY,IAAI,MAAM;CAMzB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js deleted file mode 100644 index 58959bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InMemoryOAuthClientProvider = void 0; -/** - * In-memory OAuth client provider for demonstration purposes - * In production, you should persist tokens securely - */ -class InMemoryOAuthClientProvider { - constructor(_redirectUrl, _clientMetadata, onRedirect, clientMetadataUrl) { - this._redirectUrl = _redirectUrl; - this._clientMetadata = _clientMetadata; - this.clientMetadataUrl = clientMetadataUrl; - this._onRedirect = - onRedirect || - (url => { - console.log(`Redirect to: ${url.toString()}`); - }); - } - get redirectUrl() { - return this._redirectUrl; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInformation; - } - saveClientInformation(clientInformation) { - this._clientInformation = clientInformation; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization(authorizationUrl) { - this._onRedirect(authorizationUrl); - } - saveCodeVerifier(codeVerifier) { - this._codeVerifier = codeVerifier; - } - codeVerifier() { - if (!this._codeVerifier) { - throw new Error('No code verifier saved'); - } - return this._codeVerifier; - } -} -exports.InMemoryOAuthClientProvider = InMemoryOAuthClientProvider; -//# sourceMappingURL=simpleOAuthClientProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map deleted file mode 100644 index 10771f8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClientProvider.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClientProvider.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH,MAAa,2BAA2B;IAKpC,YACqB,YAA0B,EAC1B,eAAoC,EACrD,UAA+B,EACf,iBAA0B;QAHzB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,oBAAe,GAAf,eAAe,CAAqB;QAErC,sBAAiB,GAAjB,iBAAiB,CAAS;QAE1C,IAAI,CAAC,WAAW;YACZ,UAAU;gBACV,CAAC,GAAG,CAAC,EAAE;oBACH,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;IACX,CAAC;IAID,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,iBAAiB;QACb,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACnC,CAAC;IAED,qBAAqB,CAAC,iBAA8C;QAChE,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAChD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,UAAU,CAAC,MAAmB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,uBAAuB,CAAC,gBAAqB;QACzC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACvC,CAAC;IAED,gBAAgB,CAAC,YAAoB;QACjC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACtC,CAAC;IAED,YAAY;QACR,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ;AA1DD,kEA0DC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts deleted file mode 100644 index a20be42..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map deleted file mode 100644 index 28406b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js deleted file mode 100644 index bb0dec9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +++ /dev/null @@ -1,818 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const node_readline_1 = require("node:readline"); -const types_js_1 = require("../../types.js"); -const metadataUtils_js_1 = require("../../shared/metadataUtils.js"); -const ajv_1 = require("ajv"); -// Create readline interface for user input -const readline = (0, node_readline_1.createInterface)({ - input: process.stdin, - output: process.stdout -}); -// Track received notifications for debugging resumability -let notificationCount = 0; -// Global client and transport for interactive commands -let client = null; -let transport = null; -let serverUrl = 'http://localhost:3000/mcp'; -let notificationsToolLastEventId = undefined; -let sessionId = undefined; -async function main() { - console.log('MCP Interactive Client'); - console.log('====================='); - // Connect to server immediately with default settings - await connect(); - // Print help and start the command loop - printHelp(); - commandLoop(); -} -function printHelp() { - console.log('\nAvailable commands:'); - console.log(' connect [url] - Connect to MCP server (default: http://localhost:3000/mcp)'); - console.log(' disconnect - Disconnect from server'); - console.log(' terminate-session - Terminate the current session'); - console.log(' reconnect - Reconnect to the server'); - console.log(' list-tools - List available tools'); - console.log(' call-tool [args] - Call a tool with optional JSON arguments'); - console.log(' call-tool-task [args] - Call a tool with task-based execution (example: call-tool-task delay {"duration":3000})'); - console.log(' greet [name] - Call the greet tool'); - console.log(' multi-greet [name] - Call the multi-greet tool with notifications'); - console.log(' collect-info [type] - Test form elicitation with collect-user-info tool (contact/preferences/feedback)'); - console.log(' start-notifications [interval] [count] - Start periodic notifications'); - console.log(' run-notifications-tool-with-resumability [interval] [count] - Run notification tool with resumability'); - console.log(' list-prompts - List available prompts'); - console.log(' get-prompt [name] [args] - Get a prompt with optional JSON arguments'); - console.log(' list-resources - List available resources'); - console.log(' read-resource - Read a specific resource by URI'); - console.log(' help - Show this help'); - console.log(' quit - Exit the program'); -} -function commandLoop() { - readline.question('\n> ', async (input) => { - const args = input.trim().split(/\s+/); - const command = args[0]?.toLowerCase(); - try { - switch (command) { - case 'connect': - await connect(args[1]); - break; - case 'disconnect': - await disconnect(); - break; - case 'terminate-session': - await terminateSession(); - break; - case 'reconnect': - await reconnect(); - break; - case 'list-tools': - await listTools(); - break; - case 'call-tool': - if (args.length < 2) { - console.log('Usage: call-tool [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callTool(toolName, toolArgs); - } - break; - case 'greet': - await callGreetTool(args[1] || 'MCP User'); - break; - case 'multi-greet': - await callMultiGreetTool(args[1] || 'MCP User'); - break; - case 'collect-info': - await callCollectInfoTool(args[1] || 'contact'); - break; - case 'start-notifications': { - const interval = args[1] ? parseInt(args[1], 10) : 2000; - const count = args[2] ? parseInt(args[2], 10) : 10; - await startNotifications(interval, count); - break; - } - case 'run-notifications-tool-with-resumability': { - const interval = args[1] ? parseInt(args[1], 10) : 2000; - const count = args[2] ? parseInt(args[2], 10) : 10; - await runNotificationsToolWithResumability(interval, count); - break; - } - case 'call-tool-task': - if (args.length < 2) { - console.log('Usage: call-tool-task [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callToolTask(toolName, toolArgs); - } - break; - case 'list-prompts': - await listPrompts(); - break; - case 'get-prompt': - if (args.length < 2) { - console.log('Usage: get-prompt [args]'); - } - else { - const promptName = args[1]; - let promptArgs = {}; - if (args.length > 2) { - try { - promptArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await getPrompt(promptName, promptArgs); - } - break; - case 'list-resources': - await listResources(); - break; - case 'read-resource': - if (args.length < 2) { - console.log('Usage: read-resource '); - } - else { - await readResource(args[1]); - } - break; - case 'help': - printHelp(); - break; - case 'quit': - case 'exit': - await cleanup(); - return; - default: - if (command) { - console.log(`Unknown command: ${command}`); - } - break; - } - } - catch (error) { - console.error(`Error executing command: ${error}`); - } - // Continue the command loop - commandLoop(); - }); -} -async function connect(url) { - if (client) { - console.log('Already connected. Disconnect first.'); - return; - } - if (url) { - serverUrl = url; - } - console.log(`Connecting to ${serverUrl}...`); - try { - // Create a new client with form elicitation capability - client = new index_js_1.Client({ - name: 'example-client', - version: '1.0.0' - }, { - capabilities: { - elicitation: { - form: {} - } - } - }); - client.onerror = error => { - console.error('\x1b[31mClient error:', error, '\x1b[0m'); - }; - // Set up elicitation request handler with proper validation - client.setRequestHandler(types_js_1.ElicitRequestSchema, async (request) => { - if (request.params.mode !== 'form') { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Unsupported elicitation mode: ${request.params.mode}`); - } - console.log('\n🔔 Elicitation (form) Request Received:'); - console.log(`Message: ${request.params.message}`); - console.log(`Related Task: ${request.params._meta?.[types_js_1.RELATED_TASK_META_KEY]?.taskId}`); - console.log('Requested Schema:'); - console.log(JSON.stringify(request.params.requestedSchema, null, 2)); - const schema = request.params.requestedSchema; - const properties = schema.properties; - const required = schema.required || []; - // Set up AJV validator for the requested schema - const ajv = new ajv_1.Ajv(); - const validate = ajv.compile(schema); - let attempts = 0; - const maxAttempts = 3; - while (attempts < maxAttempts) { - attempts++; - console.log(`\nPlease provide the following information (attempt ${attempts}/${maxAttempts}):`); - const content = {}; - let inputCancelled = false; - // Collect input for each field - for (const [fieldName, fieldSchema] of Object.entries(properties)) { - const field = fieldSchema; - const isRequired = required.includes(fieldName); - let prompt = `${field.title || fieldName}`; - // Add helpful information to the prompt - if (field.description) { - prompt += ` (${field.description})`; - } - if (field.enum) { - prompt += ` [options: ${field.enum.join(', ')}]`; - } - if (field.type === 'number' || field.type === 'integer') { - if (field.minimum !== undefined && field.maximum !== undefined) { - prompt += ` [${field.minimum}-${field.maximum}]`; - } - else if (field.minimum !== undefined) { - prompt += ` [min: ${field.minimum}]`; - } - else if (field.maximum !== undefined) { - prompt += ` [max: ${field.maximum}]`; - } - } - if (field.type === 'string' && field.format) { - prompt += ` [format: ${field.format}]`; - } - if (isRequired) { - prompt += ' *required*'; - } - if (field.default !== undefined) { - prompt += ` [default: ${field.default}]`; - } - prompt += ': '; - const answer = await new Promise(resolve => { - readline.question(prompt, input => { - resolve(input.trim()); - }); - }); - // Check for cancellation - if (answer.toLowerCase() === 'cancel' || answer.toLowerCase() === 'c') { - inputCancelled = true; - break; - } - // Parse and validate the input - try { - if (answer === '' && field.default !== undefined) { - content[fieldName] = field.default; - } - else if (answer === '' && !isRequired) { - // Skip optional empty fields - continue; - } - else if (answer === '') { - throw new Error(`${fieldName} is required`); - } - else { - // Parse the value based on type - let parsedValue; - if (field.type === 'boolean') { - parsedValue = answer.toLowerCase() === 'true' || answer.toLowerCase() === 'yes' || answer === '1'; - } - else if (field.type === 'number') { - parsedValue = parseFloat(answer); - if (isNaN(parsedValue)) { - throw new Error(`${fieldName} must be a valid number`); - } - } - else if (field.type === 'integer') { - parsedValue = parseInt(answer, 10); - if (isNaN(parsedValue)) { - throw new Error(`${fieldName} must be a valid integer`); - } - } - else if (field.enum) { - if (!field.enum.includes(answer)) { - throw new Error(`${fieldName} must be one of: ${field.enum.join(', ')}`); - } - parsedValue = answer; - } - else { - parsedValue = answer; - } - content[fieldName] = parsedValue; - } - } - catch (error) { - console.log(`❌ Error: ${error}`); - // Continue to next attempt - break; - } - } - if (inputCancelled) { - return { action: 'cancel' }; - } - // If we didn't complete all fields due to an error, try again - if (Object.keys(content).length !== - Object.keys(properties).filter(name => required.includes(name) || content[name] !== undefined).length) { - if (attempts < maxAttempts) { - console.log('Please try again...'); - continue; - } - else { - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - } - } - // Validate the complete object against the schema - const isValid = validate(content); - if (!isValid) { - console.log('❌ Validation errors:'); - validate.errors?.forEach(error => { - console.log(` - ${error.instancePath || 'root'}: ${error.message}`); - }); - if (attempts < maxAttempts) { - console.log('Please correct the errors and try again...'); - continue; - } - else { - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - } - } - // Show the collected data and ask for confirmation - console.log('\n✅ Collected data:'); - console.log(JSON.stringify(content, null, 2)); - const confirmAnswer = await new Promise(resolve => { - readline.question('\nSubmit this information? (yes/no/cancel): ', input => { - resolve(input.trim().toLowerCase()); - }); - }); - if (confirmAnswer === 'yes' || confirmAnswer === 'y') { - return { - action: 'accept', - content - }; - } - else if (confirmAnswer === 'cancel' || confirmAnswer === 'c') { - return { action: 'cancel' }; - } - else if (confirmAnswer === 'no' || confirmAnswer === 'n') { - if (attempts < maxAttempts) { - console.log('Please re-enter the information...'); - continue; - } - else { - return { action: 'decline' }; - } - } - } - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - }); - transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(serverUrl), { - sessionId: sessionId - }); - // Set up notification handlers - client.setNotificationHandler(types_js_1.LoggingMessageNotificationSchema, notification => { - notificationCount++; - console.log(`\nNotification #${notificationCount}: ${notification.params.level} - ${notification.params.data}`); - // Re-display the prompt - process.stdout.write('> '); - }); - client.setNotificationHandler(types_js_1.ResourceListChangedNotificationSchema, async (_) => { - console.log(`\nResource list changed notification received!`); - try { - if (!client) { - console.log('Client disconnected, cannot fetch resources'); - return; - } - const resourcesResult = await client.request({ - method: 'resources/list', - params: {} - }, types_js_1.ListResourcesResultSchema); - console.log('Available resources count:', resourcesResult.resources.length); - } - catch { - console.log('Failed to list resources after change notification'); - } - // Re-display the prompt - process.stdout.write('> '); - }); - // Connect the client - await client.connect(transport); - sessionId = transport.sessionId; - console.log('Transport created with session ID:', sessionId); - console.log('Connected to MCP server'); - } - catch (error) { - console.error('Failed to connect:', error); - client = null; - transport = null; - } -} -async function disconnect() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - await transport.close(); - console.log('Disconnected from MCP server'); - client = null; - transport = null; - } - catch (error) { - console.error('Error disconnecting:', error); - } -} -async function terminateSession() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - console.log('Terminating session with ID:', transport.sessionId); - await transport.terminateSession(); - console.log('Session terminated successfully'); - // Check if sessionId was cleared after termination - if (!transport.sessionId) { - console.log('Session ID has been cleared'); - sessionId = undefined; - // Also close the transport and clear client objects - await transport.close(); - console.log('Transport closed after session termination'); - client = null; - transport = null; - } - else { - console.log('Server responded with 405 Method Not Allowed (session termination not supported)'); - console.log('Session ID is still active:', transport.sessionId); - } - } - catch (error) { - console.error('Error terminating session:', error); - } -} -async function reconnect() { - if (client) { - await disconnect(); - } - await connect(); -} -async function listTools() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, types_js_1.ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - id: ${tool.name}, name: ${(0, metadataUtils_js_1.getDisplayName)(tool)}, description: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server (${error})`); - } -} -async function callTool(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name, - arguments: args - } - }; - console.log(`Calling tool '${name}' with args:`, args); - const result = await client.request(request, types_js_1.CallToolResultSchema); - console.log('Tool result:'); - const resourceLinks = []; - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else if (item.type === 'resource_link') { - const resourceLink = item; - resourceLinks.push(resourceLink); - console.log(` 📁 Resource Link: ${resourceLink.name}`); - console.log(` URI: ${resourceLink.uri}`); - if (resourceLink.mimeType) { - console.log(` Type: ${resourceLink.mimeType}`); - } - if (resourceLink.description) { - console.log(` Description: ${resourceLink.description}`); - } - } - else if (item.type === 'resource') { - console.log(` [Embedded Resource: ${item.resource.uri}]`); - } - else if (item.type === 'image') { - console.log(` [Image: ${item.mimeType}]`); - } - else if (item.type === 'audio') { - console.log(` [Audio: ${item.mimeType}]`); - } - else { - console.log(` [Unknown content type]:`, item); - } - }); - // Offer to read resource links - if (resourceLinks.length > 0) { - console.log(`\nFound ${resourceLinks.length} resource link(s). Use 'read-resource ' to read their content.`); - } - } - catch (error) { - console.log(`Error calling tool ${name}: ${error}`); - } -} -async function callGreetTool(name) { - await callTool('greet', { name }); -} -async function callMultiGreetTool(name) { - console.log('Calling multi-greet tool with notifications...'); - await callTool('multi-greet', { name }); -} -async function callCollectInfoTool(infoType) { - console.log(`Testing form elicitation with collect-user-info tool (${infoType})...`); - await callTool('collect-user-info', { infoType }); -} -async function startNotifications(interval, count) { - console.log(`Starting notification stream: interval=${interval}ms, count=${count || 'unlimited'}`); - await callTool('start-notification-stream', { interval, count }); -} -async function runNotificationsToolWithResumability(interval, count) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - console.log(`Starting notification stream with resumability: interval=${interval}ms, count=${count || 'unlimited'}`); - console.log(`Using resumption token: ${notificationsToolLastEventId || 'none'}`); - const request = { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { interval, count } - } - }; - const onLastEventIdUpdate = (event) => { - notificationsToolLastEventId = event; - console.log(`Updated resumption token: ${event}`); - }; - const result = await client.request(request, types_js_1.CallToolResultSchema, { - resumptionToken: notificationsToolLastEventId, - onresumptiontoken: onLastEventIdUpdate - }); - console.log('Tool result:'); - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - catch (error) { - console.log(`Error starting notification stream: ${error}`); - } -} -async function listPrompts() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const promptsRequest = { - method: 'prompts/list', - params: {} - }; - const promptsResult = await client.request(promptsRequest, types_js_1.ListPromptsResultSchema); - console.log('Available prompts:'); - if (promptsResult.prompts.length === 0) { - console.log(' No prompts available'); - } - else { - for (const prompt of promptsResult.prompts) { - console.log(` - id: ${prompt.name}, name: ${(0, metadataUtils_js_1.getDisplayName)(prompt)}, description: ${prompt.description}`); - } - } - } - catch (error) { - console.log(`Prompts not supported by this server (${error})`); - } -} -async function getPrompt(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const promptRequest = { - method: 'prompts/get', - params: { - name, - arguments: args - } - }; - const promptResult = await client.request(promptRequest, types_js_1.GetPromptResultSchema); - console.log('Prompt template:'); - promptResult.messages.forEach((msg, index) => { - console.log(` [${index + 1}] ${msg.role}: ${msg.content.type === 'text' ? msg.content.text : JSON.stringify(msg.content)}`); - }); - } - catch (error) { - console.log(`Error getting prompt ${name}: ${error}`); - } -} -async function listResources() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const resourcesRequest = { - method: 'resources/list', - params: {} - }; - const resourcesResult = await client.request(resourcesRequest, types_js_1.ListResourcesResultSchema); - console.log('Available resources:'); - if (resourcesResult.resources.length === 0) { - console.log(' No resources available'); - } - else { - for (const resource of resourcesResult.resources) { - console.log(` - id: ${resource.name}, name: ${(0, metadataUtils_js_1.getDisplayName)(resource)}, description: ${resource.uri}`); - } - } - } - catch (error) { - console.log(`Resources not supported by this server (${error})`); - } -} -async function readResource(uri) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'resources/read', - params: { uri } - }; - console.log(`Reading resource: ${uri}`); - const result = await client.request(request, types_js_1.ReadResourceResultSchema); - console.log('Resource contents:'); - for (const content of result.contents) { - console.log(` URI: ${content.uri}`); - if (content.mimeType) { - console.log(` Type: ${content.mimeType}`); - } - if ('text' in content && typeof content.text === 'string') { - console.log(' Content:'); - console.log(' ---'); - console.log(content.text - .split('\n') - .map((line) => ' ' + line) - .join('\n')); - console.log(' ---'); - } - else if ('blob' in content && typeof content.blob === 'string') { - console.log(` [Binary data: ${content.blob.length} bytes]`); - } - } - } - catch (error) { - console.log(`Error reading resource ${uri}: ${error}`); - } -} -async function callToolTask(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - console.log(`Calling tool '${name}' with task-based execution...`); - console.log('Arguments:', args); - // Use task-based execution - call now, fetch later - // Using the experimental tasks API - WARNING: may change without notice - console.log('This will return immediately while processing continues in the background...'); - try { - // Call the tool with task metadata using streaming API - const stream = client.experimental.tasks.callToolStream({ - name, - arguments: args - }, types_js_1.CallToolResultSchema, { - task: { - ttl: 60000 // Keep results for 60 seconds - } - }); - console.log('Waiting for task completion...'); - let lastStatus = ''; - for await (const message of stream) { - switch (message.type) { - case 'taskCreated': - console.log('Task created successfully with ID:', message.task.taskId); - break; - case 'taskStatus': - if (lastStatus !== message.task.status) { - console.log(` ${message.task.status}${message.task.statusMessage ? ` - ${message.task.statusMessage}` : ''}`); - } - lastStatus = message.task.status; - break; - case 'result': - console.log('Task completed!'); - console.log('Tool result:'); - message.result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - }); - break; - case 'error': - throw message.error; - } - } - } - catch (error) { - console.log(`Error with task-based execution: ${error}`); - } -} -async function cleanup() { - if (client && transport) { - try { - // First try to terminate the session gracefully - if (transport.sessionId) { - try { - console.log('Terminating session before exit...'); - await transport.terminateSession(); - console.log('Session terminated successfully'); - } - catch (error) { - console.error('Error terminating session:', error); - } - } - // Then close the transport - await transport.close(); - } - catch (error) { - console.error('Error closing transport:', error); - } - } - process.stdin.setRawMode(false); - readline.close(); - console.log('\nGoodbye!'); - process.exit(0); -} -// Set up raw mode for keyboard input to capture Escape key -process.stdin.setRawMode(true); -process.stdin.on('data', async (data) => { - // Check for Escape key (27) - if (data.length === 1 && data[0] === 27) { - console.log('\nESC key pressed. Disconnecting from server...'); - // Abort current operation and disconnect from server - if (client && transport) { - await disconnect(); - console.log('Disconnected. Press Enter to continue.'); - } - else { - console.log('Not connected to server.'); - } - // Re-display the prompt - process.stdout.write('> '); - } -}); -// Handle Ctrl+C -process.on('SIGINT', async () => { - console.log('\nReceived SIGINT. Cleaning up...'); - await cleanup(); -}); -// Start the interactive client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map deleted file mode 100644 index f975269..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleStreamableHttp.ts"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,sEAA+E;AAC/E,iDAAgD;AAChD,6CAoBwB;AACxB,oEAA+D;AAC/D,6BAA0B;AAE1B,2CAA2C;AAC3C,MAAM,QAAQ,GAAG,IAAA,+BAAe,EAAC;IAC7B,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,MAAM,EAAE,OAAO,CAAC,MAAM;CACzB,CAAC,CAAC;AAEH,0DAA0D;AAC1D,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAE1B,uDAAuD;AACvD,IAAI,MAAM,GAAkB,IAAI,CAAC;AACjC,IAAI,SAAS,GAAyC,IAAI,CAAC;AAC3D,IAAI,SAAS,GAAG,2BAA2B,CAAC;AAC5C,IAAI,4BAA4B,GAAuB,SAAS,CAAC;AACjE,IAAI,SAAS,GAAuB,SAAS,CAAC;AAE9C,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAErC,sDAAsD;IACtD,MAAM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AAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts deleted file mode 100644 index c794066..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Simple interactive task client demonstrating elicitation and sampling responses. - * - * This client connects to simpleTaskInteractive.ts server and demonstrates: - * - Handling elicitation requests (y/n confirmation) - * - Handling sampling requests (returns a hardcoded haiku) - * - Using task-based tool execution with streaming - */ -export {}; -//# sourceMappingURL=simpleTaskInteractiveClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map deleted file mode 100644 index 89b7338..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractiveClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleTaskInteractiveClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js deleted file mode 100644 index d08970d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js +++ /dev/null @@ -1,157 +0,0 @@ -"use strict"; -/** - * Simple interactive task client demonstrating elicitation and sampling responses. - * - * This client connects to simpleTaskInteractive.ts server and demonstrates: - * - Handling elicitation requests (y/n confirmation) - * - Handling sampling requests (returns a hardcoded haiku) - * - Using task-based tool execution with streaming - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const node_readline_1 = require("node:readline"); -const types_js_1 = require("../../types.js"); -// Create readline interface for user input -const readline = (0, node_readline_1.createInterface)({ - input: process.stdin, - output: process.stdout -}); -function question(prompt) { - return new Promise(resolve => { - readline.question(prompt, answer => { - resolve(answer.trim()); - }); - }); -} -function getTextContent(result) { - const textContent = result.content.find((c) => c.type === 'text'); - return textContent?.text ?? '(no text)'; -} -async function elicitationCallback(params) { - console.log(`\n[Elicitation] Server asks: ${params.message}`); - // Simple terminal prompt for y/n - const response = await question('Your response (y/n): '); - const confirmed = ['y', 'yes', 'true', '1'].includes(response.toLowerCase()); - console.log(`[Elicitation] Responding with: confirm=${confirmed}`); - return { action: 'accept', content: { confirm: confirmed } }; -} -async function samplingCallback(params) { - // Get the prompt from the first message - let prompt = 'unknown'; - if (params.messages && params.messages.length > 0) { - const firstMessage = params.messages[0]; - const content = firstMessage.content; - if (typeof content === 'object' && !Array.isArray(content) && content.type === 'text' && 'text' in content) { - prompt = content.text; - } - else if (Array.isArray(content)) { - const textPart = content.find(c => c.type === 'text' && 'text' in c); - if (textPart && 'text' in textPart) { - prompt = textPart.text; - } - } - } - console.log(`\n[Sampling] Server requests LLM completion for: ${prompt}`); - // Return a hardcoded haiku (in real use, call your LLM here) - const haiku = `Cherry blossoms fall -Softly on the quiet pond -Spring whispers goodbye`; - console.log('[Sampling] Responding with haiku'); - return { - model: 'mock-haiku-model', - role: 'assistant', - content: { type: 'text', text: haiku } - }; -} -async function run(url) { - console.log('Simple Task Interactive Client'); - console.log('=============================='); - console.log(`Connecting to ${url}...`); - // Create client with elicitation and sampling capabilities - const client = new index_js_1.Client({ name: 'simple-task-interactive-client', version: '1.0.0' }, { - capabilities: { - elicitation: { form: {} }, - sampling: {} - } - }); - // Set up elicitation request handler - client.setRequestHandler(types_js_1.ElicitRequestSchema, async (request) => { - if (request.params.mode && request.params.mode !== 'form') { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Unsupported elicitation mode: ${request.params.mode}`); - } - return elicitationCallback(request.params); - }); - // Set up sampling request handler - client.setRequestHandler(types_js_1.CreateMessageRequestSchema, async (request) => { - return samplingCallback(request.params); - }); - // Connect to server - const transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(url)); - await client.connect(transport); - console.log('Connected!\n'); - // List tools - const toolsResult = await client.listTools(); - console.log(`Available tools: ${toolsResult.tools.map(t => t.name).join(', ')}`); - // Demo 1: Elicitation (confirm_delete) - console.log('\n--- Demo 1: Elicitation ---'); - console.log('Calling confirm_delete tool...'); - const confirmStream = client.experimental.tasks.callToolStream({ name: 'confirm_delete', arguments: { filename: 'important.txt' } }, types_js_1.CallToolResultSchema, { task: { ttl: 60000 } }); - for await (const message of confirmStream) { - switch (message.type) { - case 'taskCreated': - console.log(`Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`Task status: ${message.task.status}`); - break; - case 'result': - console.log(`Result: ${getTextContent(message.result)}`); - break; - case 'error': - console.error(`Error: ${message.error}`); - break; - } - } - // Demo 2: Sampling (write_haiku) - console.log('\n--- Demo 2: Sampling ---'); - console.log('Calling write_haiku tool...'); - const haikuStream = client.experimental.tasks.callToolStream({ name: 'write_haiku', arguments: { topic: 'autumn leaves' } }, types_js_1.CallToolResultSchema, { - task: { ttl: 60000 } - }); - for await (const message of haikuStream) { - switch (message.type) { - case 'taskCreated': - console.log(`Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`Task status: ${message.task.status}`); - break; - case 'result': - console.log(`Result:\n${getTextContent(message.result)}`); - break; - case 'error': - console.error(`Error: ${message.error}`); - break; - } - } - // Cleanup - console.log('\nDemo complete. Closing connection...'); - await transport.close(); - readline.close(); -} -// Parse command line arguments -const args = process.argv.slice(2); -let url = 'http://localhost:8000/mcp'; -for (let i = 0; i < args.length; i++) { - if (args[i] === '--url' && args[i + 1]) { - url = args[i + 1]; - i++; - } -} -// Run the client -run(url).catch(error => { - console.error('Error running client:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleTaskInteractiveClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map deleted file mode 100644 index c766c87..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractiveClient.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleTaskInteractiveClient.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAEH,oDAA+C;AAC/C,sEAA+E;AAC/E,iDAAgD;AAChD,6CASwB;AAExB,2CAA2C;AAC3C,MAAM,QAAQ,GAAG,IAAA,+BAAe,EAAC;IAC7B,KAAK,EAAE,OAAO,CAAC,KAAK;IACpB,MAAM,EAAE,OAAO,CAAC,MAAM;CACzB,CAAC,CAAC;AAEH,SAAS,QAAQ,CAAC,MAAc;IAC5B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACzB,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;YAC/B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,cAAc,CAAC,MAA2D;IAC/E,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CA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ACT,OAAO,CAAC,GAAG,CAAC,YAAY,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC1D,MAAM;YACV,KAAK,OAAO;gBACR,OAAO,CAAC,KAAK,CAAC,UAAU,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;gBACzC,MAAM;QACd,CAAC;IACL,CAAC;IAED,UAAU;IACV,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IACtD,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,CAAC;AACrB,CAAC;AAED,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,GAAG,GAAG,2BAA2B,CAAC;AAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;IACnC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACrC,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAClB,CAAC,EAAE,CAAC;IACR,CAAC;AACL,CAAC;AAED,iBAAiB;AACjB,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts deleted file mode 100644 index 134b4b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ssePollingClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map deleted file mode 100644 index 59e4153..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/ssePollingClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js deleted file mode 100644 index a529ae5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * SSE Polling Example Client (SEP-1699) - * - * This example demonstrates client-side behavior during server-initiated - * SSE stream disconnection and automatic reconnection. - * - * Key features demonstrated: - * - Automatic reconnection when server closes SSE stream - * - Event replay via Last-Event-ID header - * - Resumption token tracking via onresumptiontoken callback - * - * Run with: npx tsx src/examples/client/ssePollingClient.ts - * Requires: ssePollingExample.ts server running on port 3001 - */ -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -const SERVER_URL = 'http://localhost:3001/mcp'; -async function main() { - console.log('SSE Polling Example Client'); - console.log('=========================='); - console.log(`Connecting to ${SERVER_URL}...`); - console.log(''); - // Create transport with reconnection options - const transport = new streamableHttp_js_1.StreamableHTTPClientTransport(new URL(SERVER_URL), { - // Use default reconnection options - SDK handles automatic reconnection - }); - // Track the last event ID for debugging - let lastEventId; - // Set up transport error handler to observe disconnections - // Filter out expected errors from SSE reconnection - transport.onerror = error => { - // Skip abort errors during intentional close - if (error.message.includes('AbortError')) - return; - // Show SSE disconnect (expected when server closes stream) - if (error.message.includes('Unexpected end of JSON')) { - console.log('[Transport] SSE stream disconnected - client will auto-reconnect'); - return; - } - console.log(`[Transport] Error: ${error.message}`); - }; - // Set up transport close handler - transport.onclose = () => { - console.log('[Transport] Connection closed'); - }; - // Create and connect client - const client = new index_js_1.Client({ - name: 'sse-polling-client', - version: '1.0.0' - }); - // Set up notification handler to receive progress updates - client.setNotificationHandler(types_js_1.LoggingMessageNotificationSchema, notification => { - const data = notification.params.data; - console.log(`[Notification] ${data}`); - }); - try { - await client.connect(transport); - console.log('[Client] Connected successfully'); - console.log(''); - // Call the long-task tool - console.log('[Client] Calling long-task tool...'); - console.log('[Client] Server will disconnect mid-task to demonstrate polling'); - console.log(''); - const result = await client.request({ - method: 'tools/call', - params: { - name: 'long-task', - arguments: {} - } - }, types_js_1.CallToolResultSchema, { - // Track resumption tokens for debugging - onresumptiontoken: token => { - lastEventId = token; - console.log(`[Event ID] ${token}`); - } - }); - console.log(''); - console.log('[Client] Tool completed!'); - console.log(`[Result] ${JSON.stringify(result.content, null, 2)}`); - console.log(''); - console.log(`[Debug] Final event ID: ${lastEventId}`); - } - catch (error) { - console.error('[Error]', error); - } - finally { - await transport.close(); - console.log('[Client] Disconnected'); - } -} -main().catch(console.error); -//# sourceMappingURL=ssePollingClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map deleted file mode 100644 index bcc881d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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C,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,2BAA2B,WAAW,EAAE,CAAC,CAAC;IAC1D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;YAAS,CAAC;QACP,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IACzC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts deleted file mode 100644 index c2679e6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=streamableHttpWithSseFallbackClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map deleted file mode 100644 index b79ae2a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttpWithSseFallbackClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/streamableHttpWithSseFallbackClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js deleted file mode 100644 index bf3e9a8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const index_js_1 = require("../../client/index.js"); -const streamableHttp_js_1 = require("../../client/streamableHttp.js"); -const sse_js_1 = require("../../client/sse.js"); -const types_js_1 = require("../../types.js"); -/** - * Simplified Backwards Compatible MCP Client - * - * This client demonstrates backward compatibility with both: - * 1. Modern servers using Streamable HTTP transport (protocol version 2025-03-26) - * 2. Older servers using HTTP+SSE transport (protocol version 2024-11-05) - * - * Following the MCP specification for backwards compatibility: - * - Attempts to POST an initialize request to the server URL first (modern transport) - * - If that fails with 4xx status, falls back to GET request for SSE stream (older transport) - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function main() { - console.log('MCP Backwards Compatible Client'); - console.log('==============================='); - console.log(`Connecting to server at: ${serverUrl}`); - let client; - let transport; - try { - // Try connecting with automatic transport detection - const connection = await connectWithBackwardsCompatibility(serverUrl); - client = connection.client; - transport = connection.transport; - // Set up notification handler - client.setNotificationHandler(types_js_1.LoggingMessageNotificationSchema, notification => { - console.log(`Notification: ${notification.params.level} - ${notification.params.data}`); - }); - // DEMO WORKFLOW: - // 1. List available tools - console.log('\n=== Listing Available Tools ==='); - await listTools(client); - // 2. Call the notification tool - console.log('\n=== Starting Notification Stream ==='); - await startNotificationTool(client); - // 3. Wait for all notifications (5 seconds) - console.log('\n=== Waiting for all notifications ==='); - await new Promise(resolve => setTimeout(resolve, 5000)); - // 4. Disconnect - console.log('\n=== Disconnecting ==='); - await transport.close(); - console.log('Disconnected from MCP server'); - } - catch (error) { - console.error('Error running client:', error); - process.exit(1); - } -} -/** - * Connect to an MCP server with backwards compatibility - * Following the spec for client backward compatibility - */ -async function connectWithBackwardsCompatibility(url) { - console.log('1. Trying Streamable HTTP transport first...'); - // Step 1: Try Streamable HTTP transport first - const client = new index_js_1.Client({ - name: 'backwards-compatible-client', - version: '1.0.0' - }); - client.onerror = error => { - console.error('Client error:', error); - }; - const baseUrl = new URL(url); - try { - // Create modern transport - const streamableTransport = new streamableHttp_js_1.StreamableHTTPClientTransport(baseUrl); - await client.connect(streamableTransport); - console.log('Successfully connected using modern Streamable HTTP transport.'); - return { - client, - transport: streamableTransport, - transportType: 'streamable-http' - }; - } - catch (error) { - // Step 2: If transport fails, try the older SSE transport - console.log(`StreamableHttp transport connection failed: ${error}`); - console.log('2. Falling back to deprecated HTTP+SSE transport...'); - try { - // Create SSE transport pointing to /sse endpoint - const sseTransport = new sse_js_1.SSEClientTransport(baseUrl); - const sseClient = new index_js_1.Client({ - name: 'backwards-compatible-client', - version: '1.0.0' - }); - await sseClient.connect(sseTransport); - console.log('Successfully connected using deprecated HTTP+SSE transport.'); - return { - client: sseClient, - transport: sseTransport, - transportType: 'sse' - }; - } - catch (sseError) { - console.error(`Failed to connect with either transport method:\n1. Streamable HTTP error: ${error}\n2. SSE error: ${sseError}`); - throw new Error('Could not connect to server with any available transport'); - } - } -} -/** - * List available tools on the server - */ -async function listTools(client) { - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, types_js_1.ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - ${tool.name}: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server: ${error}`); - } -} -/** - * Start a notification stream by calling the notification tool - */ -async function startNotificationTool(client) { - try { - // Call the notification tool using reasonable defaults - const request = { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 1000, // 1 second between notifications - count: 5 // Send 5 notifications - } - } - }; - console.log('Calling notification tool...'); - const result = await client.request(request, types_js_1.CallToolResultSchema); - console.log('Tool result:'); - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - catch (error) { - console.log(`Error calling notification tool: ${error}`); - } -} -// Start the client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=streamableHttpWithSseFallbackClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map deleted file mode 100644 index f3bec99..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttpWithSseFallbackClient.js","sourceRoot":"","sources":["../../../../src/examples/client/streamableHttpWithSseFallbackClient.ts"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,sEAA+E;AAC/E,gDAAyD;AACzD,6CAMwB;AAExB;;;;;;;;;;GAUG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AAEzD,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;IAErD,IAAI,MAAc,CAAC;IACnB,IAAI,SAA6D,CAAC;IAElE,IAAI,CAAC;QACD,oDAAoD;QACpD,MAAM,UAAU,GAAG,MAAM,iCAAiC,CAAC,SAAS,CAAC,CAAC;QACtE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QA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C,GAAG,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC1B,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBACvB,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAClC,CAAC;iBAAM,CAAC;gBACJ,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,IAAI,WAAW,EAAE,IAAI,CAAC,CAAC;YACjD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,GAAG,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAC;IAC7D,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts deleted file mode 100644 index 218aeac..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { AuthorizationParams, OAuthServerProvider } from '../../server/auth/provider.js'; -import { OAuthRegisteredClientsStore } from '../../server/auth/clients.js'; -import { OAuthClientInformationFull, OAuthMetadata, OAuthTokens } from '../../shared/auth.js'; -import { Response } from 'express'; -import { AuthInfo } from '../../server/auth/types.js'; -export declare class DemoInMemoryClientsStore implements OAuthRegisteredClientsStore { - private clients; - getClient(clientId: string): Promise<{ - redirect_uris: string[]; - client_id: string; - token_endpoint_auth_method?: string | undefined; - grant_types?: string[] | undefined; - response_types?: string[] | undefined; - client_name?: string | undefined; - client_uri?: string | undefined; - logo_uri?: string | undefined; - scope?: string | undefined; - contacts?: string[] | undefined; - tos_uri?: string | undefined; - policy_uri?: string | undefined; - jwks_uri?: string | undefined; - jwks?: any; - software_id?: string | undefined; - software_version?: string | undefined; - software_statement?: string | undefined; - client_secret?: string | undefined; - client_id_issued_at?: number | undefined; - client_secret_expires_at?: number | undefined; - } | undefined>; - registerClient(clientMetadata: OAuthClientInformationFull): Promise<{ - redirect_uris: string[]; - client_id: string; - token_endpoint_auth_method?: string | undefined; - grant_types?: string[] | undefined; - response_types?: string[] | undefined; - client_name?: string | undefined; - client_uri?: string | undefined; - logo_uri?: string | undefined; - scope?: string | undefined; - contacts?: string[] | undefined; - tos_uri?: string | undefined; - policy_uri?: string | undefined; - jwks_uri?: string | undefined; - jwks?: any; - software_id?: string | undefined; - software_version?: string | undefined; - software_statement?: string | undefined; - client_secret?: string | undefined; - client_id_issued_at?: number | undefined; - client_secret_expires_at?: number | undefined; - }>; -} -/** - * 🚨 DEMO ONLY - NOT FOR PRODUCTION - * - * This example demonstrates MCP OAuth flow but lacks some of the features required for production use, - * for example: - * - Persistent token storage - * - Rate limiting - */ -export declare class DemoInMemoryAuthProvider implements OAuthServerProvider { - private validateResource?; - clientsStore: DemoInMemoryClientsStore; - private codes; - private tokens; - constructor(validateResource?: ((resource?: URL) => boolean) | undefined); - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - challengeForAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string): Promise; - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, _codeVerifier?: string): Promise; - exchangeRefreshToken(_client: OAuthClientInformationFull, _refreshToken: string, _scopes?: string[], _resource?: URL): Promise; - verifyAccessToken(token: string): Promise; -} -export declare const setupAuthServer: ({ authServerUrl, mcpServerUrl, strictResource }: { - authServerUrl: URL; - mcpServerUrl: URL; - strictResource: boolean; -}) => OAuthMetadata; -//# sourceMappingURL=demoInMemoryOAuthProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map deleted file mode 100644 index 8a4a43f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"demoInMemoryOAuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/demoInMemoryOAuthProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAgB,EAAW,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAKtD,qBAAa,wBAAyB,YAAW,2BAA2B;IACxE,OAAO,CAAC,OAAO,CAAiD;IAE1D,SAAS,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;IAI1B,cAAc,CAAC,cAAc,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAIlE;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAWpD,OAAO,CAAC,gBAAgB,CAAC;IAVrC,YAAY,2BAAkC;IAC9C,OAAO,CAAC,KAAK,CAMT;IACJ,OAAO,CAAC,MAAM,CAA+B;gBAEzB,gBAAgB,CAAC,GAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,OAAO,aAAA;IAE5D,SAAS,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAwCxG,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAU7G,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,EAAE,MAAM,EAGzB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,WAAW,CAAC;IAoCjB,oBAAoB,CACtB,OAAO,EAAE,0BAA0B,EACnC,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,SAAS,CAAC,EAAE,GAAG,GAChB,OAAO,CAAC,WAAW,CAAC;IAIjB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAc5D;AAED,eAAO,MAAM,eAAe,oDAIzB;IACC,aAAa,EAAE,GAAG,CAAC;IACnB,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CAC3B,KAAG,aA+EH,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js deleted file mode 100644 index c439a34..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setupAuthServer = exports.DemoInMemoryAuthProvider = exports.DemoInMemoryClientsStore = void 0; -const node_crypto_1 = require("node:crypto"); -const express_1 = __importDefault(require("express")); -const router_js_1 = require("../../server/auth/router.js"); -const auth_utils_js_1 = require("../../shared/auth-utils.js"); -const errors_js_1 = require("../../server/auth/errors.js"); -class DemoInMemoryClientsStore { - constructor() { - this.clients = new Map(); - } - async getClient(clientId) { - return this.clients.get(clientId); - } - async registerClient(clientMetadata) { - this.clients.set(clientMetadata.client_id, clientMetadata); - return clientMetadata; - } -} -exports.DemoInMemoryClientsStore = DemoInMemoryClientsStore; -/** - * 🚨 DEMO ONLY - NOT FOR PRODUCTION - * - * This example demonstrates MCP OAuth flow but lacks some of the features required for production use, - * for example: - * - Persistent token storage - * - Rate limiting - */ -class DemoInMemoryAuthProvider { - constructor(validateResource) { - this.validateResource = validateResource; - this.clientsStore = new DemoInMemoryClientsStore(); - this.codes = new Map(); - this.tokens = new Map(); - } - async authorize(client, params, res) { - const code = (0, node_crypto_1.randomUUID)(); - const searchParams = new URLSearchParams({ - code - }); - if (params.state !== undefined) { - searchParams.set('state', params.state); - } - this.codes.set(code, { - client, - params - }); - // Simulate a user login - // Set a secure HTTP-only session cookie with authorization info - if (res.cookie) { - const authCookieData = { - userId: 'demo_user', - name: 'Demo User', - timestamp: Date.now() - }; - res.cookie('demo_session', JSON.stringify(authCookieData), { - httpOnly: true, - secure: false, // In production, this should be true - sameSite: 'lax', - maxAge: 24 * 60 * 60 * 1000, // 24 hours - for demo purposes - path: '/' // Available to all routes - }); - } - if (!client.redirect_uris.includes(params.redirectUri)) { - throw new errors_js_1.InvalidRequestError('Unregistered redirect_uri'); - } - const targetUrl = new URL(params.redirectUri); - targetUrl.search = searchParams.toString(); - res.redirect(targetUrl.toString()); - } - async challengeForAuthorizationCode(client, authorizationCode) { - // Store the challenge with the code data - const codeData = this.codes.get(authorizationCode); - if (!codeData) { - throw new Error('Invalid authorization code'); - } - return codeData.params.codeChallenge; - } - async exchangeAuthorizationCode(client, authorizationCode, - // Note: code verifier is checked in token.ts by default - // it's unused here for that reason. - _codeVerifier) { - const codeData = this.codes.get(authorizationCode); - if (!codeData) { - throw new Error('Invalid authorization code'); - } - if (codeData.client.client_id !== client.client_id) { - throw new Error(`Authorization code was not issued to this client, ${codeData.client.client_id} != ${client.client_id}`); - } - if (this.validateResource && !this.validateResource(codeData.params.resource)) { - throw new Error(`Invalid resource: ${codeData.params.resource}`); - } - this.codes.delete(authorizationCode); - const token = (0, node_crypto_1.randomUUID)(); - const tokenData = { - token, - clientId: client.client_id, - scopes: codeData.params.scopes || [], - expiresAt: Date.now() + 3600000, // 1 hour - resource: codeData.params.resource, - type: 'access' - }; - this.tokens.set(token, tokenData); - return { - access_token: token, - token_type: 'bearer', - expires_in: 3600, - scope: (codeData.params.scopes || []).join(' ') - }; - } - async exchangeRefreshToken(_client, _refreshToken, _scopes, _resource) { - throw new Error('Not implemented for example demo'); - } - async verifyAccessToken(token) { - const tokenData = this.tokens.get(token); - if (!tokenData || !tokenData.expiresAt || tokenData.expiresAt < Date.now()) { - throw new Error('Invalid or expired token'); - } - return { - token, - clientId: tokenData.clientId, - scopes: tokenData.scopes, - expiresAt: Math.floor(tokenData.expiresAt / 1000), - resource: tokenData.resource - }; - } -} -exports.DemoInMemoryAuthProvider = DemoInMemoryAuthProvider; -const setupAuthServer = ({ authServerUrl, mcpServerUrl, strictResource }) => { - // Create separate auth server app - // NOTE: This is a separate app on a separate port to illustrate - // how to separate an OAuth Authorization Server from a Resource - // server in the SDK. The SDK is not intended to be provide a standalone - // authorization server. - const validateResource = strictResource - ? (resource) => { - if (!resource) - return false; - const expectedResource = (0, auth_utils_js_1.resourceUrlFromServerUrl)(mcpServerUrl); - return resource.toString() === expectedResource.toString(); - } - : undefined; - const provider = new DemoInMemoryAuthProvider(validateResource); - const authApp = (0, express_1.default)(); - authApp.use(express_1.default.json()); - // For introspection requests - authApp.use(express_1.default.urlencoded()); - // Add OAuth routes to the auth server - // NOTE: this will also add a protected resource metadata route, - // but it won't be used, so leave it. - authApp.use((0, router_js_1.mcpAuthRouter)({ - provider, - issuerUrl: authServerUrl, - scopesSupported: ['mcp:tools'] - })); - authApp.post('/introspect', async (req, res) => { - try { - const { token } = req.body; - if (!token) { - res.status(400).json({ error: 'Token is required' }); - return; - } - const tokenInfo = await provider.verifyAccessToken(token); - res.json({ - active: true, - client_id: tokenInfo.clientId, - scope: tokenInfo.scopes.join(' '), - exp: tokenInfo.expiresAt, - aud: tokenInfo.resource - }); - return; - } - catch (error) { - res.status(401).json({ - active: false, - error: 'Unauthorized', - error_description: `Invalid token: ${error}` - }); - } - }); - const auth_port = authServerUrl.port; - // Start the auth server - authApp.listen(auth_port, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`OAuth Authorization Server listening on port ${auth_port}`); - }); - // Note: we could fetch this from the server, but then we end up - // with some top level async which gets annoying. - const oauthMetadata = (0, router_js_1.createOAuthMetadata)({ - provider, - issuerUrl: authServerUrl, - scopesSupported: ['mcp:tools'] - }); - oauthMetadata.introspection_endpoint = new URL('/introspect', authServerUrl).href; - return oauthMetadata; -}; -exports.setupAuthServer = setupAuthServer; -//# sourceMappingURL=demoInMemoryOAuthProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map deleted file mode 100644 index e19a20d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"demoInMemoryOAuthProvider.js","sourceRoot":"","sources":["../../../../src/examples/server/demoInMemoryOAuthProvider.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAyC;AAIzC,sDAAqD;AAErD,2DAAiF;AACjF,8DAAsE;AACtE,2DAAkE;AAElE,MAAa,wBAAwB;IAArC;QACY,YAAO,GAAG,IAAI,GAAG,EAAsC,CAAC;IAUpE,CAAC;IARG,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,cAA0C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CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,gDAAgD,SAAS,EAAE,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,gEAAgE;IAChE,iDAAiD;IACjD,MAAM,aAAa,GAAkB,IAAA,+BAAmB,EAAC;QACrD,QAAQ;QACR,SAAS,EAAE,aAAa;QACxB,eAAe,EAAE,CAAC,WAAW,CAAC;KACjC,CAAC,CAAC;IAEH,aAAa,CAAC,sBAAsB,GAAG,IAAI,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC;IAElF,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AAvFW,QAAA,eAAe,mBAuF1B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts deleted file mode 100644 index e4b736e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationFormExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map deleted file mode 100644 index c569df4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationFormExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/elicitationFormExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js deleted file mode 100644 index c9f60fa..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +++ /dev/null @@ -1,431 +0,0 @@ -"use strict"; -// Run with: npx tsx src/examples/server/elicitationFormExample.ts -// -// This example demonstrates how to use form elicitation to collect structured user input -// with JSON Schema validation via a local HTTP server with SSE streaming. -// Form elicitation allows servers to request *non-sensitive* user input through the client -// with schema-based validation. -// Note: See also elicitationUrlExample.ts for an example of using URL elicitation -// to collect *sensitive* user input via a browser. -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -const express_js_1 = require("../../server/express.js"); -// Create MCP server - it will automatically use AjvJsonSchemaValidator with sensible defaults -// The validator supports format validation (email, date, etc.) if ajv-formats is installed -const mcpServer = new mcp_js_1.McpServer({ - name: 'form-elicitation-example-server', - version: '1.0.0' -}, { - capabilities: {} -}); -/** - * Example 1: Simple user registration tool - * Collects username, email, and password from the user - */ -mcpServer.registerTool('register_user', { - description: 'Register a new user account by collecting their information', - inputSchema: {} -}, async () => { - try { - // Request user information through form elicitation - const result = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Please provide your registration information:', - requestedSchema: { - type: 'object', - properties: { - username: { - type: 'string', - title: 'Username', - description: 'Your desired username (3-20 characters)', - minLength: 3, - maxLength: 20 - }, - email: { - type: 'string', - title: 'Email', - description: 'Your email address', - format: 'email' - }, - password: { - type: 'string', - title: 'Password', - description: 'Your password (min 8 characters)', - minLength: 8 - }, - newsletter: { - type: 'boolean', - title: 'Newsletter', - description: 'Subscribe to newsletter?', - default: false - } - }, - required: ['username', 'email', 'password'] - } - }); - // Handle the different possible actions - if (result.action === 'accept' && result.content) { - const { username, email, newsletter } = result.content; - return { - content: [ - { - type: 'text', - text: `Registration successful!\n\nUsername: ${username}\nEmail: ${email}\nNewsletter: ${newsletter ? 'Yes' : 'No'}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [ - { - type: 'text', - text: 'Registration cancelled by user.' - } - ] - }; - } - else { - return { - content: [ - { - type: 'text', - text: 'Registration was cancelled.' - } - ] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Registration failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -/** - * Example 2: Multi-step workflow with multiple form elicitation requests - * Demonstrates how to collect information in multiple steps - */ -mcpServer.registerTool('create_event', { - description: 'Create a calendar event by collecting event details', - inputSchema: {} -}, async () => { - try { - // Step 1: Collect basic event information - const basicInfo = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Step 1: Enter basic event information', - requestedSchema: { - type: 'object', - properties: { - title: { - type: 'string', - title: 'Event Title', - description: 'Name of the event', - minLength: 1 - }, - description: { - type: 'string', - title: 'Description', - description: 'Event description (optional)' - } - }, - required: ['title'] - } - }); - if (basicInfo.action !== 'accept' || !basicInfo.content) { - return { - content: [{ type: 'text', text: 'Event creation cancelled.' }] - }; - } - // Step 2: Collect date and time - const dateTime = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Step 2: Enter date and time', - requestedSchema: { - type: 'object', - properties: { - date: { - type: 'string', - title: 'Date', - description: 'Event date', - format: 'date' - }, - startTime: { - type: 'string', - title: 'Start Time', - description: 'Event start time (HH:MM)' - }, - duration: { - type: 'integer', - title: 'Duration', - description: 'Duration in minutes', - minimum: 15, - maximum: 480 - } - }, - required: ['date', 'startTime', 'duration'] - } - }); - if (dateTime.action !== 'accept' || !dateTime.content) { - return { - content: [{ type: 'text', text: 'Event creation cancelled.' }] - }; - } - // Combine all collected information - const event = { - ...basicInfo.content, - ...dateTime.content - }; - return { - content: [ - { - type: 'text', - text: `Event created successfully!\n\n${JSON.stringify(event, null, 2)}` - } - ] - }; - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Event creation failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -/** - * Example 3: Collecting address information - * Demonstrates validation with patterns and optional fields - */ -mcpServer.registerTool('update_shipping_address', { - description: 'Update shipping address with validation', - inputSchema: {} -}, async () => { - try { - const result = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Please provide your shipping address:', - requestedSchema: { - type: 'object', - properties: { - name: { - type: 'string', - title: 'Full Name', - description: 'Recipient name', - minLength: 1 - }, - street: { - type: 'string', - title: 'Street Address', - minLength: 1 - }, - city: { - type: 'string', - title: 'City', - minLength: 1 - }, - state: { - type: 'string', - title: 'State/Province', - minLength: 2, - maxLength: 2 - }, - zipCode: { - type: 'string', - title: 'ZIP/Postal Code', - description: '5-digit ZIP code' - }, - phone: { - type: 'string', - title: 'Phone Number (optional)', - description: 'Contact phone number' - } - }, - required: ['name', 'street', 'city', 'state', 'zipCode'] - } - }); - if (result.action === 'accept' && result.content) { - return { - content: [ - { - type: 'text', - text: `Address updated successfully!\n\n${JSON.stringify(result.content, null, 2)}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [{ type: 'text', text: 'Address update cancelled by user.' }] - }; - } - else { - return { - content: [{ type: 'text', text: 'Address update was cancelled.' }] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Address update failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -async function main() { - const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000; - const app = (0, express_js_1.createMcpExpressApp)(); - // Map to store transports by session ID - const transports = {}; - // MCP POST endpoint - const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (sessionId) { - console.log(`Received MCP request for session: ${sessionId}`); - } - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport for this session - transport = transports[sessionId]; - } - else if (!sessionId && (0, types_js_1.isInitializeRequest)(req.body)) { - // New initialization request - create new transport - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - await mcpServer.connect(transport); - await transport.handleRequest(req, res, req.body); - return; - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } - }; - app.post('/mcp', mcpPostHandler); - // Handle GET requests for SSE streams - const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Establishing SSE stream for session ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - }; - app.get('/mcp', mcpGetHandler); - // Handle DELETE requests for session termination - const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } - }; - app.delete('/mcp', mcpDeleteHandler); - // Start listening - app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Form elicitation example server is running on http://localhost:${PORT}/mcp`); - console.log('Available tools:'); - console.log(' - register_user: Collect user registration information'); - console.log(' - create_event: Multi-step event creation'); - console.log(' - update_shipping_address: Collect and validate address'); - console.log('\nConnect your MCP client to this server using the HTTP transport.'); - }); - // Handle server shutdown - process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); - }); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=elicitationFormExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map deleted file mode 100644 index f294edd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationFormExample.js","sourceRoot":"","sources":["../../../../src/examples/server/elicitationFormExample.ts"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,EAAE;AACF,yFAAyF;AACzF,0EAA0E;AAC1E,2FAA2F;AAC3F,gCAAgC;AAChC,kFAAkF;AAClF,mDAAmD;;AAEnD,6CAAyC;AAEzC,gDAAgD;AAChD,sEAA+E;AAC/E,6CAAqD;AACrD,wDAA8D;AAE9D,8FAA8F;AAC9F,2FAA2F;AAC3F,MAAM,SAAS,GAAG,IAAI,kBAAS,CAC3B;IACI,IAAI,EAAE,iCAAiC;IACvC,OAAO,EAAE,OAAO;CACnB,EACD;IACI,YAAY,EAAE,EAAE;CACnB,CACJ,CAAC;AAEF;;;GAGG;AACH,SAAS,CAAC,YAAY,CAClB,eAAe,EACf;IACI,WAAW,EAAE,6DAA6D;IAC1E,WAAW,EAAE,EAAE;CAClB,EACD,KAAK,IAAI,EAAE;IACP,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K,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;YAC9E,CAAC;QACL,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts deleted file mode 100644 index 611f6eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationUrlExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map deleted file mode 100644 index 04acd66..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/elicitationUrlExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js deleted file mode 100644 index 53c860b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +++ /dev/null @@ -1,656 +0,0 @@ -"use strict"; -// Run with: npx tsx src/examples/server/elicitationUrlExample.ts -// -// This example demonstrates how to use URL elicitation to securely collect -// *sensitive* user input in a remote (HTTP) server. -// URL elicitation allows servers to prompt the end-user to open a URL in their browser -// to collect sensitive information. -// Note: See also elicitationFormExample.ts for an example of using form (not URL) elicitation -// to collect *non-sensitive* user input with a structured schema. -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const express_1 = __importDefault(require("express")); -const node_crypto_1 = require("node:crypto"); -const zod_1 = require("zod"); -const mcp_js_1 = require("../../server/mcp.js"); -const express_js_1 = require("../../server/express.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const router_js_1 = require("../../server/auth/router.js"); -const bearerAuth_js_1 = require("../../server/auth/middleware/bearerAuth.js"); -const types_js_1 = require("../../types.js"); -const inMemoryEventStore_js_1 = require("../shared/inMemoryEventStore.js"); -const demoInMemoryOAuthProvider_js_1 = require("./demoInMemoryOAuthProvider.js"); -const auth_utils_js_1 = require("../../shared/auth-utils.js"); -const cors_1 = __importDefault(require("cors")); -// Create an MCP server with implementation details -const getServer = () => { - const mcpServer = new mcp_js_1.McpServer({ - name: 'url-elicitation-http-server', - version: '1.0.0' - }, { - capabilities: { logging: {} } - }); - mcpServer.registerTool('payment-confirm', { - description: 'A tool that confirms a payment directly with a user', - inputSchema: { - cartId: zod_1.z.string().describe('The ID of the cart to confirm') - } - }, async ({ cartId }, extra) => { - /* - In a real world scenario, there would be some logic here to check if the user has the provided cartId. - For the purposes of this example, we'll throw an error (-> elicits the client to open a URL to confirm payment) - */ - const sessionId = extra.sessionId; - if (!sessionId) { - throw new Error('Expected a Session ID'); - } - // Create and track the elicitation - const elicitationId = generateTrackedElicitation(sessionId, elicitationId => mcpServer.server.createElicitationCompletionNotifier(elicitationId)); - throw new types_js_1.UrlElicitationRequiredError([ - { - mode: 'url', - message: 'This tool requires a payment confirmation. Open the link to confirm payment!', - url: `http://localhost:${MCP_PORT}/confirm-payment?session=${sessionId}&elicitation=${elicitationId}&cartId=${encodeURIComponent(cartId)}`, - elicitationId - } - ]); - }); - mcpServer.registerTool('third-party-auth', { - description: 'A demo tool that requires third-party OAuth credentials', - inputSchema: { - param1: zod_1.z.string().describe('First parameter') - } - }, async (_, extra) => { - /* - In a real world scenario, there would be some logic here to check if we already have a valid access token for the user. - Auth info (with a subject or `sub` claim) can be typically be found in `extra.authInfo`. - If we do, we can just return the result of the tool call. - If we don't, we can throw an ElicitationRequiredError to request the user to authenticate. - For the purposes of this example, we'll throw an error (-> elicits the client to open a URL to authenticate). - */ - const sessionId = extra.sessionId; - if (!sessionId) { - throw new Error('Expected a Session ID'); - } - // Create and track the elicitation - const elicitationId = generateTrackedElicitation(sessionId, elicitationId => mcpServer.server.createElicitationCompletionNotifier(elicitationId)); - // Simulate OAuth callback and token exchange after 5 seconds - // In a real app, this would be called from your OAuth callback handler - setTimeout(() => { - console.log(`Simulating OAuth token received for elicitation ${elicitationId}`); - completeURLElicitation(elicitationId); - }, 5000); - throw new types_js_1.UrlElicitationRequiredError([ - { - mode: 'url', - message: 'This tool requires access to your example.com account. Open the link to authenticate!', - url: 'https://www.example.com/oauth/authorize', - elicitationId - } - ]); - }); - return mcpServer; -}; -const elicitationsMap = new Map(); -// Clean up old elicitations after 1 hour to prevent memory leaks -const ELICITATION_TTL_MS = 60 * 60 * 1000; // 1 hour -const CLEANUP_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes -function cleanupOldElicitations() { - const now = new Date(); - for (const [id, metadata] of elicitationsMap.entries()) { - if (now.getTime() - metadata.createdAt.getTime() > ELICITATION_TTL_MS) { - elicitationsMap.delete(id); - console.log(`Cleaned up expired elicitation: ${id}`); - } - } -} -setInterval(cleanupOldElicitations, CLEANUP_INTERVAL_MS); -/** - * Elicitation IDs must be unique strings within the MCP session - * UUIDs are used in this example for simplicity - */ -function generateElicitationId() { - return (0, node_crypto_1.randomUUID)(); -} -/** - * Helper function to create and track a new elicitation. - */ -function generateTrackedElicitation(sessionId, createCompletionNotifier) { - const elicitationId = generateElicitationId(); - // Create a Promise and its resolver for tracking completion - let completeResolver; - const completedPromise = new Promise(resolve => { - completeResolver = resolve; - }); - const completionNotifier = createCompletionNotifier ? createCompletionNotifier(elicitationId) : undefined; - // Store the elicitation in our map - elicitationsMap.set(elicitationId, { - status: 'pending', - completedPromise, - completeResolver: completeResolver, - createdAt: new Date(), - sessionId, - completionNotifier - }); - return elicitationId; -} -/** - * Helper function to complete an elicitation. - */ -function completeURLElicitation(elicitationId) { - const elicitation = elicitationsMap.get(elicitationId); - if (!elicitation) { - console.warn(`Attempted to complete unknown elicitation: ${elicitationId}`); - return; - } - if (elicitation.status === 'complete') { - console.warn(`Elicitation already complete: ${elicitationId}`); - return; - } - // Update metadata - elicitation.status = 'complete'; - // Send completion notification to the client - if (elicitation.completionNotifier) { - console.log(`Sending notifications/elicitation/complete notification for elicitation ${elicitationId}`); - elicitation.completionNotifier().catch(error => { - console.error(`Failed to send completion notification for elicitation ${elicitationId}:`, error); - }); - } - // Resolve the promise to unblock any waiting code - elicitation.completeResolver(); -} -const MCP_PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -const AUTH_PORT = process.env.MCP_AUTH_PORT ? parseInt(process.env.MCP_AUTH_PORT, 10) : 3001; -const app = (0, express_js_1.createMcpExpressApp)(); -// Allow CORS all domains, expose the Mcp-Session-Id header -app.use((0, cors_1.default)({ - origin: '*', // Allow all origins - exposedHeaders: ['Mcp-Session-Id'], - credentials: true // Allow cookies to be sent cross-origin -})); -// Set up OAuth (required for this example) -let authMiddleware = null; -// Create auth middleware for MCP endpoints -const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`); -const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`); -const oauthMetadata = (0, demoInMemoryOAuthProvider_js_1.setupAuthServer)({ authServerUrl, mcpServerUrl, strictResource: true }); -const tokenVerifier = { - verifyAccessToken: async (token) => { - const endpoint = oauthMetadata.introspection_endpoint; - if (!endpoint) { - throw new Error('No token verification endpoint available in metadata'); - } - const response = await fetch(endpoint, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: new URLSearchParams({ - token: token - }).toString() - }); - if (!response.ok) { - const text = await response.text().catch(() => null); - throw new Error(`Invalid or expired token: ${text}`); - } - const data = await response.json(); - if (!data.aud) { - throw new Error(`Resource Indicator (RFC8707) missing`); - } - if (!(0, auth_utils_js_1.checkResourceAllowed)({ requestedResource: data.aud, configuredResource: mcpServerUrl })) { - throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`); - } - // Convert the response to AuthInfo format - return { - token, - clientId: data.client_id, - scopes: data.scope ? data.scope.split(' ') : [], - expiresAt: data.exp - }; - } -}; -// Add metadata routes to the main MCP server -app.use((0, router_js_1.mcpAuthMetadataRouter)({ - oauthMetadata, - resourceServerUrl: mcpServerUrl, - scopesSupported: ['mcp:tools'], - resourceName: 'MCP Demo Server' -})); -authMiddleware = (0, bearerAuth_js_1.requireBearerAuth)({ - verifier: tokenVerifier, - requiredScopes: [], - resourceMetadataUrl: (0, router_js_1.getOAuthProtectedResourceMetadataUrl)(mcpServerUrl) -}); -/** - * API Key Form Handling - * - * Many servers today require an API key to operate, but there's no scalable way to do this dynamically for remote servers within MCP protocol. - * URL-mode elicitation enables the server to host a simple form and get the secret data securely from the user without involving the LLM or client. - **/ -async function sendApiKeyElicitation(sessionId, sender, createCompletionNotifier) { - if (!sessionId) { - console.error('No session ID provided'); - throw new Error('Expected a Session ID to track elicitation'); - } - console.log('🔑 URL elicitation demo: Requesting API key from client...'); - const elicitationId = generateTrackedElicitation(sessionId, createCompletionNotifier); - try { - const result = await sender({ - mode: 'url', - message: 'Please provide your API key to authenticate with this server', - // Host the form on the same server. In a real app, you might coordinate passing these state variables differently. - url: `http://localhost:${MCP_PORT}/api-key-form?session=${sessionId}&elicitation=${elicitationId}`, - elicitationId - }); - switch (result.action) { - case 'accept': - console.log('🔑 URL elicitation demo: Client accepted the API key elicitation (now pending form submission)'); - // Wait for the API key to be submitted via the form - // The form submission will complete the elicitation - break; - default: - console.log('🔑 URL elicitation demo: Client declined to provide an API key'); - // In a real app, this might close the connection, but for the demo, we'll continue - break; - } - } - catch (error) { - console.error('Error during API key elicitation:', error); - } -} -// API Key Form endpoint - serves a simple HTML form -app.get('/api-key-form', (req, res) => { - const mcpSessionId = req.query.session; - const elicitationId = req.query.elicitation; - if (!mcpSessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie - // In production, this is often handled by some user auth middleware to ensure the user has a valid session - // This session is different from the MCP session. - // This userSession is the cookie that the MCP Server's Authorization Server sets for the user when they log in. - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // Serve a simple HTML form - res.send(` - - - - Submit Your API Key - - - -

API Key Required

-
✓ Logged in as: ${userSession.name}
-
- - - - -
-
This is a demo showing how a server can securely elicit sensitive data from a user using a URL.
- - - `); -}); -// Handle API key form submission -app.post('/api-key-form', express_1.default.urlencoded(), (req, res) => { - const { session: sessionId, apiKey, elicitation: elicitationId } = req.body; - if (!sessionId || !apiKey || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie here too - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // A real app might store this API key to be used later for the user. - console.log(`🔑 Received API key \x1b[32m${apiKey}\x1b[0m for session ${sessionId}`); - // If we have an elicitationId, complete the elicitation - completeURLElicitation(elicitationId); - // Send a success response - res.send(` - - - - Success - - - -
-

Success ✓

-

API key received.

-
-

You can close this window and return to your MCP client.

- - - `); -}); -// Helper to get the user session from the demo_session cookie -function getUserSessionCookie(cookieHeader) { - if (!cookieHeader) - return null; - const cookies = cookieHeader.split(';'); - for (const cookie of cookies) { - const [name, value] = cookie.trim().split('='); - if (name === 'demo_session' && value) { - try { - return JSON.parse(decodeURIComponent(value)); - } - catch (error) { - console.error('Failed to parse demo_session cookie:', error); - return null; - } - } - } - return null; -} -/** - * Payment Confirmation Form Handling - * - * This demonstrates how a server can use URL-mode elicitation to get user confirmation - * for sensitive operations like payment processing. - **/ -// Payment Confirmation Form endpoint - serves a simple HTML form -app.get('/confirm-payment', (req, res) => { - const mcpSessionId = req.query.session; - const elicitationId = req.query.elicitation; - const cartId = req.query.cartId; - if (!mcpSessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie - // In production, this is often handled by some user auth middleware to ensure the user has a valid session - // This session is different from the MCP session. - // This userSession is the cookie that the MCP Server's Authorization Server sets for the user when they log in. - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // Serve a simple HTML form - res.send(` - - - - Confirm Payment - - - -

Confirm Payment

-
✓ Logged in as: ${userSession.name}
- ${cartId ? `
Cart ID: ${cartId}
` : ''} -
- ⚠️ Please review your order before confirming. -
-
- - - ${cartId ? `` : ''} - - -
-
This is a demo showing how a server can securely get user confirmation for sensitive operations using URL-mode elicitation.
- - - `); -}); -// Handle Payment Confirmation form submission -app.post('/confirm-payment', express_1.default.urlencoded(), (req, res) => { - const { session: sessionId, elicitation: elicitationId, cartId, action } = req.body; - if (!sessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie here too - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - if (action === 'confirm') { - // A real app would process the payment here - console.log(`💳 Payment confirmed for cart ${cartId || 'unknown'} by user ${userSession.name} (session ${sessionId})`); - // Complete the elicitation - completeURLElicitation(elicitationId); - // Send a success response - res.send(` - - - - Payment Confirmed - - - -
-

Payment Confirmed ✓

-

Your payment has been successfully processed.

- ${cartId ? `

Cart ID: ${cartId}

` : ''} -
-

You can close this window and return to your MCP client.

- - - `); - } - else if (action === 'cancel') { - console.log(`💳 Payment cancelled for cart ${cartId || 'unknown'} by user ${userSession.name} (session ${sessionId})`); - // The client will still receive a notifications/elicitation/complete notification, - // which indicates that the out-of-band interaction is complete (but not necessarily successful) - completeURLElicitation(elicitationId); - res.send(` - - - - Payment Cancelled - - - -
-

Payment Cancelled

-

Your payment has been cancelled.

-
-

You can close this window and return to your MCP client.

- - - `); - } - else { - res.status(400).send('

Error

Invalid action

'); - } -}); -// Map to store transports by session ID -const transports = {}; -const sessionsNeedingElicitation = {}; -// MCP POST endpoint -const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - console.debug(`Received MCP POST for session: ${sessionId || 'unknown'}`); - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && (0, types_js_1.isInitializeRequest)(req.body)) { - const server = getServer(); - // New initialization request - const eventStore = new inMemoryEventStore_js_1.InMemoryEventStore(); - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - sessionsNeedingElicitation[sessionId] = { - elicitationSender: params => server.server.elicitInput(params), - createCompletionNotifier: elicitationId => server.server.createElicitationCompletionNotifier(elicitationId) - }; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - delete sessionsNeedingElicitation[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - // so responses can flow back through the same transport - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - // The existing transport is already connected to the server - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}; -// Set up routes with auth middleware -app.post('/mcp', authMiddleware, mcpPostHandler); -// Handle GET requests for SSE streams (using built-in support from StreamableHTTP) -const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - // Check for Last-Event-ID header for resumability - const lastEventId = req.headers['last-event-id']; - if (lastEventId) { - console.log(`Client reconnecting with Last-Event-ID: ${lastEventId}`); - } - else { - console.log(`Establishing new SSE stream for session ${sessionId}`); - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - if (sessionsNeedingElicitation[sessionId]) { - const { elicitationSender, createCompletionNotifier } = sessionsNeedingElicitation[sessionId]; - // Send an elicitation request to the client in the background - sendApiKeyElicitation(sessionId, elicitationSender, createCompletionNotifier) - .then(() => { - // Only delete on successful send for this demo - delete sessionsNeedingElicitation[sessionId]; - console.log(`🔑 URL elicitation demo: Finished sending API key elicitation request for session ${sessionId}`); - }) - .catch(error => { - console.error('Error sending API key elicitation:', error); - // Keep in map to potentially retry on next reconnect - }); - } -}; -// Set up GET route with conditional auth middleware -app.get('/mcp', authMiddleware, mcpGetHandler); -// Handle DELETE requests for session termination (according to MCP spec) -const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } -}; -// Set up DELETE route with auth middleware -app.delete('/mcp', authMiddleware, mcpDeleteHandler); -app.listen(MCP_PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${MCP_PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - delete sessionsNeedingElicitation[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=elicitationUrlExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map deleted file mode 100644 index a37e196..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.js","sourceRoot":"","sources":["../../../../src/examples/server/elicitationUrlExample.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,EAAE;AACF,2EAA2E;AAC3E,oDAAoD;AACpD,uFAAuF;AACvF,oCAAoC;AACpC,8FAA8F;AAC9F,kEAAkE;;;;;AAElE,sDAAqD;AACrD,6CAAyC;AACzC,6BAAwB;AACxB,gDAAgD;AAChD,wDAA8D;AAC9D,sEAA+E;AAC/E,2DAA0G;AAC1G,8EAA+E;AAC/E,6CAAwI;AACxI,2EAAqE;AACrE,iFAAiE;AAEjE,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AC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts deleted file mode 100644 index bc6abdd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Example MCP server using Hono with WebStandardStreamableHTTPServerTransport - * - * This example demonstrates using the Web Standard transport directly with Hono, - * which works on any runtime: Node.js, Cloudflare Workers, Deno, Bun, etc. - * - * Run with: npx tsx src/examples/server/honoWebStandardStreamableHttp.ts - */ -export {}; -//# sourceMappingURL=honoWebStandardStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map deleted file mode 100644 index a6a6199..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"honoWebStandardStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/honoWebStandardStreamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js deleted file mode 100644 index 8d96cfe..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -/** - * Example MCP server using Hono with WebStandardStreamableHTTPServerTransport - * - * This example demonstrates using the Web Standard transport directly with Hono, - * which works on any runtime: Node.js, Cloudflare Workers, Deno, Bun, etc. - * - * Run with: npx tsx src/examples/server/honoWebStandardStreamableHttp.ts - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const hono_1 = require("hono"); -const cors_1 = require("hono/cors"); -const node_server_1 = require("@hono/node-server"); -const z = __importStar(require("zod/v4")); -const mcp_js_1 = require("../../server/mcp.js"); -const webStandardStreamableHttp_js_1 = require("../../server/webStandardStreamableHttp.js"); -// Create the MCP server -const server = new mcp_js_1.McpServer({ - name: 'hono-webstandard-mcp-server', - version: '1.0.0' -}); -// Register a simple greeting tool -server.registerTool('greet', { - title: 'Greeting Tool', - description: 'A simple greeting tool', - inputSchema: { name: z.string().describe('Name to greet') } -}, async ({ name }) => { - return { - content: [{ type: 'text', text: `Hello, ${name}! (from Hono + WebStandard transport)` }] - }; -}); -// Create a stateless transport (no options = no session management) -const transport = new webStandardStreamableHttp_js_1.WebStandardStreamableHTTPServerTransport(); -// Create the Hono app -const app = new hono_1.Hono(); -// Enable CORS for all origins -app.use('*', (0, cors_1.cors)({ - origin: '*', - allowMethods: ['GET', 'POST', 'DELETE', 'OPTIONS'], - allowHeaders: ['Content-Type', 'mcp-session-id', 'Last-Event-ID', 'mcp-protocol-version'], - exposeHeaders: ['mcp-session-id', 'mcp-protocol-version'] -})); -// Health check endpoint -app.get('/health', c => c.json({ status: 'ok' })); -// MCP endpoint -app.all('/mcp', c => transport.handleRequest(c.req.raw)); -// Start the server -const PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -server.connect(transport).then(() => { - console.log(`Starting Hono MCP server on port ${PORT}`); - console.log(`Health check: http://localhost:${PORT}/health`); - console.log(`MCP endpoint: http://localhost:${PORT}/mcp`); - (0, node_server_1.serve)({ - fetch: app.fetch, - port: PORT - }); -}); -//# sourceMappingURL=honoWebStandardStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map deleted file mode 100644 index 4f3bc2d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"honoWebStandardStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/honoWebStandardStreamableHttp.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+BAA4B;AAC5B,oCAAiC;AACjC,mDAA0C;AAC1C,0CAA4B;AAC5B,gDAAgD;AAChD,4FAAqG;AAGrG,wBAAwB;AACxB,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;IACzB,IA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AACnB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAE9E,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAChC,OAAO,CAAC,GAAG,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,kCAAkC,IAAI,SAAS,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,kCAAkC,IAAI,MAAM,CAAC,CAAC;IAE1D,IAAA,mBAAK,EAAC;QACF,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,IAAI,EAAE,IAAI;KACb,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts deleted file mode 100644 index 477fa6b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=jsonResponseStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map deleted file mode 100644 index ee8117e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jsonResponseStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/jsonResponseStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js deleted file mode 100644 index ecd769b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const z = __importStar(require("zod/v4")); -const types_js_1 = require("../../types.js"); -const express_js_1 = require("../../server/express.js"); -// Create an MCP server with implementation details -const getServer = () => { - const server = new mcp_js_1.McpServer({ - name: 'json-response-streamable-http-server', - version: '1.0.0' - }, { - capabilities: { - logging: {} - } - }); - // Register a simple tool that returns a greeting - server.registerTool('greet', { - description: 'A simple greeting tool', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }) => { - return { - content: [ - { - type: 'text', - text: `Hello, ${name}!` - } - ] - }; - }); - // Register a tool that sends multiple greetings with notifications - server.registerTool('multi-greet', { - description: 'A tool that sends different greetings with delays between them', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - await server.sendLoggingMessage({ - level: 'debug', - data: `Starting multi-greet for ${name}` - }, extra.sessionId); - await sleep(1000); // Wait 1 second before first greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending first greeting to ${name}` - }, extra.sessionId); - await sleep(1000); // Wait another second before second greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending second greeting to ${name}` - }, extra.sessionId); - return { - content: [ - { - type: 'text', - text: `Good morning, ${name}!` - } - ] - }; - }); - return server; -}; -const app = (0, express_js_1.createMcpExpressApp)(); -// Map to store transports by session ID -const transports = {}; -app.post('/mcp', async (req, res) => { - console.log('Received MCP request:', req.body); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && (0, types_js_1.isInitializeRequest)(req.body)) { - // New initialization request - use JSON response mode - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - enableJsonResponse: true, // Enable JSON response mode - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Connect the transport to the MCP server BEFORE handling the request - const server = getServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams according to spec -app.get('/mcp', async (req, res) => { - // Since this is a very simple example, we don't support GET requests for this server - // The spec requires returning 405 Method Not Allowed in this case - res.status(405).set('Allow', 'POST').send('Method Not Allowed'); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - process.exit(0); -}); -//# sourceMappingURL=jsonResponseStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map deleted file mode 100644 index dd8782c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jsonResponseStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/jsonResponseStreamableHttp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAAyC;AACzC,gDAAgD;AAChD,sEAA+E;AAC/E,0CAA4B;AAC5B,6CAAqE;AACrE,wDAA8D;AAE9D,mDAAmD;AACnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,kBAAS,CACxB;QACI,IAAI,EAAE,sCAAsC;QAC5C,OAAO,EAAE,OAAO;KACnB,EACD;QACI,YAAY,EAAE;YACV,OAAO,EAAE,EAAE;SACd;KACJ,CACJ,CAAC;IAEF,iDAAiD;IACjD,MAAM,CAAC,YAAY,CACf,OAAO,EACP;QACI,WAAW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AAC;AAEH,mBAAmB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;IACrB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,gDAAgD,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts deleted file mode 100644 index a6cb497..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node -/** - * Example MCP server using the high-level McpServer API with outputSchema - * This demonstrates how to easily create tools with structured output - */ -export {}; -//# sourceMappingURL=mcpServerOutputSchema.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map deleted file mode 100644 index bd3abdc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcpServerOutputSchema.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/mcpServerOutputSchema.ts"],"names":[],"mappings":";AACA;;;GAGG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js deleted file mode 100644 index 4ac7e5c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js +++ /dev/null @@ -1,95 +0,0 @@ -#!/usr/bin/env node -"use strict"; -/** - * Example MCP server using the high-level McpServer API with outputSchema - * This demonstrates how to easily create tools with structured output - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const mcp_js_1 = require("../../server/mcp.js"); -const stdio_js_1 = require("../../server/stdio.js"); -const z = __importStar(require("zod/v4")); -const server = new mcp_js_1.McpServer({ - name: 'mcp-output-schema-high-level-example', - version: '1.0.0' -}); -// Define a tool with structured output - Weather data -server.registerTool('get_weather', { - description: 'Get weather information for a city', - inputSchema: { - city: z.string().describe('City name'), - country: z.string().describe('Country code (e.g., US, UK)') - }, - outputSchema: { - temperature: z.object({ - celsius: z.number(), - fahrenheit: z.number() - }), - conditions: z.enum(['sunny', 'cloudy', 'rainy', 'stormy', 'snowy']), - humidity: z.number().min(0).max(100), - wind: z.object({ - speed_kmh: z.number(), - direction: z.string() - }) - } -}, async ({ city, country }) => { - // Parameters are available but not used in this example - void city; - void country; - // Simulate weather API call - const temp_c = Math.round((Math.random() * 35 - 5) * 10) / 10; - const conditions = ['sunny', 'cloudy', 'rainy', 'stormy', 'snowy'][Math.floor(Math.random() * 5)]; - const structuredContent = { - temperature: { - celsius: temp_c, - fahrenheit: Math.round(((temp_c * 9) / 5 + 32) * 10) / 10 - }, - conditions, - humidity: Math.round(Math.random() * 100), - wind: { - speed_kmh: Math.round(Math.random() * 50), - direction: ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'][Math.floor(Math.random() * 8)] - } - }; - return { - content: [ - { - type: 'text', - text: JSON.stringify(structuredContent, null, 2) - } - ], - structuredContent - }; -}); -async function main() { - const transport = new stdio_js_1.StdioServerTransport(); - await server.connect(transport); - console.error('High-level Output Schema Example Server running on stdio'); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=mcpServerOutputSchema.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map deleted file mode 100644 index ba0f8b2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcpServerOutputSchema.js","sourceRoot":"","sources":["../../../../src/examples/server/mcpServerOutputSchema.ts"],"names":[],"mappings":";;AACA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAgD;AAChD,oDAA6D;AAC7D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E,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts deleted file mode 100644 index 4269b78..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleSseServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map deleted file mode 100644 index 08a1b45..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleSseServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleSseServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js deleted file mode 100644 index ed1efd5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const mcp_js_1 = require("../../server/mcp.js"); -const sse_js_1 = require("../../server/sse.js"); -const z = __importStar(require("zod/v4")); -const express_js_1 = require("../../server/express.js"); -/** - * This example server demonstrates the deprecated HTTP+SSE transport - * (protocol version 2024-11-05). It mainly used for testing backward compatible clients. - * - * The server exposes two endpoints: - * - /mcp: For establishing the SSE stream (GET) - * - /messages: For receiving client messages (POST) - * - */ -// Create an MCP server instance -const getServer = () => { - const server = new mcp_js_1.McpServer({ - name: 'simple-sse-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(1000), - count: z.number().describe('Number of notifications to send').default(10) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - // Send the initial notification - await server.sendLoggingMessage({ - level: 'info', - data: `Starting notification stream with ${count} messages every ${interval}ms` - }, extra.sessionId); - // Send periodic notifications - while (counter < count) { - counter++; - await sleep(interval); - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - } - return { - content: [ - { - type: 'text', - text: `Completed sending ${count} notifications every ${interval}ms` - } - ] - }; - }); - return server; -}; -const app = (0, express_js_1.createMcpExpressApp)(); -// Store transports by session ID -const transports = {}; -// SSE endpoint for establishing the stream -app.get('/mcp', async (req, res) => { - console.log('Received GET request to /sse (establishing SSE stream)'); - try { - // Create a new SSE transport for the client - // The endpoint for POST messages is '/messages' - const transport = new sse_js_1.SSEServerTransport('/messages', res); - // Store the transport by session ID - const sessionId = transport.sessionId; - transports[sessionId] = transport; - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - console.log(`SSE transport closed for session ${sessionId}`); - delete transports[sessionId]; - }; - // Connect the transport to the MCP server - const server = getServer(); - await server.connect(transport); - console.log(`Established SSE stream with session ID: ${sessionId}`); - } - catch (error) { - console.error('Error establishing SSE stream:', error); - if (!res.headersSent) { - res.status(500).send('Error establishing SSE stream'); - } - } -}); -// Messages endpoint for receiving client JSON-RPC requests -app.post('/messages', async (req, res) => { - console.log('Received POST request to /messages'); - // Extract session ID from URL query parameter - // In the SSE protocol, this is added by the client based on the endpoint event - const sessionId = req.query.sessionId; - if (!sessionId) { - console.error('No session ID provided in request URL'); - res.status(400).send('Missing sessionId parameter'); - return; - } - const transport = transports[sessionId]; - if (!transport) { - console.error(`No active transport found for session ID: ${sessionId}`); - res.status(404).send('Session not found'); - return; - } - try { - // Handle the POST message with the transport - await transport.handlePostMessage(req, res, req.body); - } - catch (error) { - console.error('Error handling request:', error); - if (!res.headersSent) { - res.status(500).send('Error handling request'); - } - } -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Simple SSE Server (deprecated protocol version 2024-11-05) listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleSseServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map deleted file mode 100644 index e3a334c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleSseServer.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleSseServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAgD;AAChD,gDAAyD;AACzD,0CAA4B;AAE5B,wDAA8D;AAE9D;;;;;;;;GAQG;AAEH,gCAAgC;AAChC,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,kBAAS,CACxB;QACI,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,OAAO;KACnB,EACD,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CACpC,CAAC;IAEF,MAAM,CAAC,YAAY,CACf,2BAA2B,EAC3B;QACI,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE;YACT,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;YAC7F,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;SAC5E;KACJ,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAA2B,EAAE;QAC1D,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;QAC9E,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB,gCAAgC;QAChC,MAAM,MAAM,CAAC,kBAA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UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts deleted file mode 100644 index 0aa4ad2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStatelessStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map deleted file mode 100644 index 92deb06..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStatelessStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleStatelessStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js deleted file mode 100644 index 87601ab..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +++ /dev/null @@ -1,166 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const z = __importStar(require("zod/v4")); -const express_js_1 = require("../../server/express.js"); -const getServer = () => { - // Create an MCP server with implementation details - const server = new mcp_js_1.McpServer({ - name: 'stateless-streamable-http-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - // Register a simple prompt - server.registerPrompt('greeting-template', { - description: 'A simple greeting prompt template', - argsSchema: { - name: z.string().describe('Name to include in greeting') - } - }, async ({ name }) => { - return { - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please greet ${name} in a friendly manner.` - } - } - ] - }; - }); - // Register a tool specifically for testing resumability - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(10) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - // Create a simple resource at a fixed URI - server.registerResource('greeting-resource', 'https://example.com/greetings/default', { mimeType: 'text/plain' }, async () => { - return { - contents: [ - { - uri: 'https://example.com/greetings/default', - text: 'Hello, world!' - } - ] - }; - }); - return server; -}; -const app = (0, express_js_1.createMcpExpressApp)(); -app.post('/mcp', async (req, res) => { - const server = getServer(); - try { - const transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: undefined - }); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - res.on('close', () => { - console.log('Request closed'); - transport.close(); - server.close(); - }); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -app.get('/mcp', async (req, res) => { - console.log('Received GET MCP request'); - res.writeHead(405).end(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - })); -}); -app.delete('/mcp', async (req, res) => { - console.log('Received DELETE MCP request'); - res.writeHead(405).end(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - })); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Stateless Streamable HTTP Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - process.exit(0); -}); -//# sourceMappingURL=simpleStatelessStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map deleted file mode 100644 index e87774a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStatelessStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleStatelessStreamableHttp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAgD;AAChD,sEAA+E;AAC/E,0CAA4B;AAE5B,wDAA8D;AAE9D,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,mDAAmD;IACnD,MAAM,MAAM,GAAG,IAAI,kBAAS,CACxB;QACI,IAAI,EAAE,kCAAkC;QACxC,OAAO,EAAE,OAAO;KACnB,EACD,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CACpC,CAAC;IAEF,2BAA2B;IAC3B,MAAM,CAAC,cAAc,CACjB,mBAAmB,EACnB;QACI,WAAW,EAAE,mCAAmC;QAChD,UAAU,EAAE;YACR,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;SAC3D;KACJ,EACD,KAAK,EAAE,EAAE,IAAI,EAAE,EAA4B,EAAE;QACzC,OAAO;YACH,QAAQ,EAAE;gBACN;oBACI,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,gBAAgB,IAAI,wBAAwB;qBACrD;iBACJ;aACJ;SACJ,CAAC;IACN,CAAC,CACJ,CAAC;IAEF,wDAAwD;IACxD,MAAM,CAAC,YAAY,CACf,2BAA2B,EAC3B;QACI,WAAW,EAAE,gEAAgE;QAC7E,WAAW,EAAE;YACT,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,C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AAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts deleted file mode 100644 index a20be42..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map deleted file mode 100644 index e3cf042..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js deleted file mode 100644 index 5fb8e3c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +++ /dev/null @@ -1,661 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const z = __importStar(require("zod/v4")); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const router_js_1 = require("../../server/auth/router.js"); -const bearerAuth_js_1 = require("../../server/auth/middleware/bearerAuth.js"); -const express_js_1 = require("../../server/express.js"); -const types_js_1 = require("../../types.js"); -const inMemoryEventStore_js_1 = require("../shared/inMemoryEventStore.js"); -const in_memory_js_1 = require("../../experimental/tasks/stores/in-memory.js"); -const demoInMemoryOAuthProvider_js_1 = require("./demoInMemoryOAuthProvider.js"); -const auth_utils_js_1 = require("../../shared/auth-utils.js"); -// Check for OAuth flag -const useOAuth = process.argv.includes('--oauth'); -const strictOAuth = process.argv.includes('--oauth-strict'); -// Create shared task store for demonstration -const taskStore = new in_memory_js_1.InMemoryTaskStore(); -// Create an MCP server with implementation details -const getServer = () => { - const server = new mcp_js_1.McpServer({ - name: 'simple-streamable-http-server', - version: '1.0.0', - icons: [{ src: './mcp.svg', sizes: ['512x512'], mimeType: 'image/svg+xml' }], - websiteUrl: 'https://github.com/modelcontextprotocol/typescript-sdk' - }, { - capabilities: { logging: {}, tasks: { requests: { tools: { call: {} } } } }, - taskStore, // Enable task support - taskMessageQueue: new in_memory_js_1.InMemoryTaskMessageQueue() - }); - // Register a simple tool that returns a greeting - server.registerTool('greet', { - title: 'Greeting Tool', // Display name for UI - description: 'A simple greeting tool', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }) => { - return { - content: [ - { - type: 'text', - text: `Hello, ${name}!` - } - ] - }; - }); - // Register a tool that sends multiple greetings with notifications (with annotations) - server.registerTool('multi-greet', { - description: 'A tool that sends different greetings with delays between them', - inputSchema: { - name: z.string().describe('Name to greet') - }, - annotations: { - title: 'Multiple Greeting Tool', - readOnlyHint: true, - openWorldHint: false - } - }, async ({ name }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - await server.sendLoggingMessage({ - level: 'debug', - data: `Starting multi-greet for ${name}` - }, extra.sessionId); - await sleep(1000); // Wait 1 second before first greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending first greeting to ${name}` - }, extra.sessionId); - await sleep(1000); // Wait another second before second greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending second greeting to ${name}` - }, extra.sessionId); - return { - content: [ - { - type: 'text', - text: `Good morning, ${name}!` - } - ] - }; - }); - // Register a tool that demonstrates form elicitation (user input collection with a schema) - // This creates a closure that captures the server instance - server.registerTool('collect-user-info', { - description: 'A tool that collects user information through form elicitation', - inputSchema: { - infoType: z.enum(['contact', 'preferences', 'feedback']).describe('Type of information to collect') - } - }, async ({ infoType }, extra) => { - let message; - let requestedSchema; - switch (infoType) { - case 'contact': - message = 'Please provide your contact information'; - requestedSchema = { - type: 'object', - properties: { - name: { - type: 'string', - title: 'Full Name', - description: 'Your full name' - }, - email: { - type: 'string', - title: 'Email Address', - description: 'Your email address', - format: 'email' - }, - phone: { - type: 'string', - title: 'Phone Number', - description: 'Your phone number (optional)' - } - }, - required: ['name', 'email'] - }; - break; - case 'preferences': - message = 'Please set your preferences'; - requestedSchema = { - type: 'object', - properties: { - theme: { - type: 'string', - title: 'Theme', - description: 'Choose your preferred theme', - enum: ['light', 'dark', 'auto'], - enumNames: ['Light', 'Dark', 'Auto'] - }, - notifications: { - type: 'boolean', - title: 'Enable Notifications', - description: 'Would you like to receive notifications?', - default: true - }, - frequency: { - type: 'string', - title: 'Notification Frequency', - description: 'How often would you like notifications?', - enum: ['daily', 'weekly', 'monthly'], - enumNames: ['Daily', 'Weekly', 'Monthly'] - } - }, - required: ['theme'] - }; - break; - case 'feedback': - message = 'Please provide your feedback'; - requestedSchema = { - type: 'object', - properties: { - rating: { - type: 'integer', - title: 'Rating', - description: 'Rate your experience (1-5)', - minimum: 1, - maximum: 5 - }, - comments: { - type: 'string', - title: 'Comments', - description: 'Additional comments (optional)', - maxLength: 500 - }, - recommend: { - type: 'boolean', - title: 'Would you recommend this?', - description: 'Would you recommend this to others?' - } - }, - required: ['rating', 'recommend'] - }; - break; - default: - throw new Error(`Unknown info type: ${infoType}`); - } - try { - // Use sendRequest through the extra parameter to elicit input - const result = await extra.sendRequest({ - method: 'elicitation/create', - params: { - mode: 'form', - message, - requestedSchema - } - }, types_js_1.ElicitResultSchema); - if (result.action === 'accept') { - return { - content: [ - { - type: 'text', - text: `Thank you! Collected ${infoType} information: ${JSON.stringify(result.content, null, 2)}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [ - { - type: 'text', - text: `No information was collected. User declined ${infoType} information request.` - } - ] - }; - } - else { - return { - content: [ - { - type: 'text', - text: `Information collection was cancelled by the user.` - } - ] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Error collecting ${infoType} information: ${error}` - } - ] - }; - } - }); - // Register a simple prompt with title - server.registerPrompt('greeting-template', { - title: 'Greeting Template', // Display name for UI - description: 'A simple greeting prompt template', - argsSchema: { - name: z.string().describe('Name to include in greeting') - } - }, async ({ name }) => { - return { - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please greet ${name} in a friendly manner.` - } - } - ] - }; - }); - // Register a tool specifically for testing resumability - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(50) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - // Create a simple resource at a fixed URI - server.registerResource('greeting-resource', 'https://example.com/greetings/default', { - title: 'Default Greeting', // Display name for UI - description: 'A simple greeting resource', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'https://example.com/greetings/default', - text: 'Hello, world!' - } - ] - }; - }); - // Create additional resources for ResourceLink demonstration - server.registerResource('example-file-1', 'file:///example/file1.txt', { - title: 'Example File 1', - description: 'First example file for ResourceLink demonstration', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'file:///example/file1.txt', - text: 'This is the content of file 1' - } - ] - }; - }); - server.registerResource('example-file-2', 'file:///example/file2.txt', { - title: 'Example File 2', - description: 'Second example file for ResourceLink demonstration', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'file:///example/file2.txt', - text: 'This is the content of file 2' - } - ] - }; - }); - // Register a tool that returns ResourceLinks - server.registerTool('list-files', { - title: 'List Files with ResourceLinks', - description: 'Returns a list of files as ResourceLinks without embedding their content', - inputSchema: { - includeDescriptions: z.boolean().optional().describe('Whether to include descriptions in the resource links') - } - }, async ({ includeDescriptions = true }) => { - const resourceLinks = [ - { - type: 'resource_link', - uri: 'https://example.com/greetings/default', - name: 'Default Greeting', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'A simple greeting resource' }) - }, - { - type: 'resource_link', - uri: 'file:///example/file1.txt', - name: 'Example File 1', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'First example file for ResourceLink demonstration' }) - }, - { - type: 'resource_link', - uri: 'file:///example/file2.txt', - name: 'Example File 2', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'Second example file for ResourceLink demonstration' }) - } - ]; - return { - content: [ - { - type: 'text', - text: 'Here are the available files as resource links:' - }, - ...resourceLinks, - { - type: 'text', - text: '\nYou can read any of these resources using their URI.' - } - ] - }; - }); - // Register a long-running tool that demonstrates task execution - // Using the experimental tasks API - WARNING: may change without notice - server.experimental.tasks.registerToolTask('delay', { - title: 'Delay', - description: 'A simple tool that delays for a specified duration, useful for testing task execution', - inputSchema: { - duration: z.number().describe('Duration in milliseconds').default(5000) - } - }, { - async createTask({ duration }, { taskStore, taskRequestedTtl }) { - // Create the task - const task = await taskStore.createTask({ - ttl: taskRequestedTtl - }); - // Simulate out-of-band work - (async () => { - await new Promise(resolve => setTimeout(resolve, duration)); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [ - { - type: 'text', - text: `Completed ${duration}ms delay` - } - ] - }); - })(); - // Return CreateTaskResult with the created task - return { - task - }; - }, - async getTask(_args, { taskId, taskStore }) { - return await taskStore.getTask(taskId); - }, - async getTaskResult(_args, { taskId, taskStore }) { - const result = await taskStore.getTaskResult(taskId); - return result; - } - }); - return server; -}; -const MCP_PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -const AUTH_PORT = process.env.MCP_AUTH_PORT ? parseInt(process.env.MCP_AUTH_PORT, 10) : 3001; -const app = (0, express_js_1.createMcpExpressApp)(); -// Set up OAuth if enabled -let authMiddleware = null; -if (useOAuth) { - // Create auth middleware for MCP endpoints - const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`); - const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`); - const oauthMetadata = (0, demoInMemoryOAuthProvider_js_1.setupAuthServer)({ authServerUrl, mcpServerUrl, strictResource: strictOAuth }); - const tokenVerifier = { - verifyAccessToken: async (token) => { - const endpoint = oauthMetadata.introspection_endpoint; - if (!endpoint) { - throw new Error('No token verification endpoint available in metadata'); - } - const response = await fetch(endpoint, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: new URLSearchParams({ - token: token - }).toString() - }); - if (!response.ok) { - const text = await response.text().catch(() => null); - throw new Error(`Invalid or expired token: ${text}`); - } - const data = await response.json(); - if (strictOAuth) { - if (!data.aud) { - throw new Error(`Resource Indicator (RFC8707) missing`); - } - if (!(0, auth_utils_js_1.checkResourceAllowed)({ requestedResource: data.aud, configuredResource: mcpServerUrl })) { - throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`); - } - } - // Convert the response to AuthInfo format - return { - token, - clientId: data.client_id, - scopes: data.scope ? data.scope.split(' ') : [], - expiresAt: data.exp - }; - } - }; - // Add metadata routes to the main MCP server - app.use((0, router_js_1.mcpAuthMetadataRouter)({ - oauthMetadata, - resourceServerUrl: mcpServerUrl, - scopesSupported: ['mcp:tools'], - resourceName: 'MCP Demo Server' - })); - authMiddleware = (0, bearerAuth_js_1.requireBearerAuth)({ - verifier: tokenVerifier, - requiredScopes: [], - resourceMetadataUrl: (0, router_js_1.getOAuthProtectedResourceMetadataUrl)(mcpServerUrl) - }); -} -// Map to store transports by session ID -const transports = {}; -// MCP POST endpoint with optional auth -const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (sessionId) { - console.log(`Received MCP request for session: ${sessionId}`); - } - else { - console.log('Request body:', req.body); - } - if (useOAuth && req.auth) { - console.log('Authenticated user:', req.auth); - } - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && (0, types_js_1.isInitializeRequest)(req.body)) { - // New initialization request - const eventStore = new inMemoryEventStore_js_1.InMemoryEventStore(); - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - // so responses can flow back through the same transport - const server = getServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - // The existing transport is already connected to the server - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}; -// Set up routes with conditional auth middleware -if (useOAuth && authMiddleware) { - app.post('/mcp', authMiddleware, mcpPostHandler); -} -else { - app.post('/mcp', mcpPostHandler); -} -// Handle GET requests for SSE streams (using built-in support from StreamableHTTP) -const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - if (useOAuth && req.auth) { - console.log('Authenticated SSE connection from user:', req.auth); - } - // Check for Last-Event-ID header for resumability - const lastEventId = req.headers['last-event-id']; - if (lastEventId) { - console.log(`Client reconnecting with Last-Event-ID: ${lastEventId}`); - } - else { - console.log(`Establishing new SSE stream for session ${sessionId}`); - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}; -// Set up GET route with conditional auth middleware -if (useOAuth && authMiddleware) { - app.get('/mcp', authMiddleware, mcpGetHandler); -} -else { - app.get('/mcp', mcpGetHandler); -} -// Handle DELETE requests for session termination (according to MCP spec) -const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } -}; -// Set up DELETE route with conditional auth middleware -if (useOAuth && authMiddleware) { - app.delete('/mcp', authMiddleware, mcpDeleteHandler); -} -else { - app.delete('/mcp', mcpDeleteHandler); -} -app.listen(MCP_PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${MCP_PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map deleted file mode 100644 index bd27afc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleStreamableHttp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAAyC;AACzC,0CAA4B;AAC5B,gDAAgD;AAChD,sEAA+E;AAC/E,2DAA0G;AAC1G,8EAA+E;AAC/E,wDAA8D;AAC9D,6CAQwB;AACxB,2EAAqE;AACrE,+EAA2G;AAC3G,iFAAiE;AAEjE,8DAAkE;AAElE,uBAAuB;AACvB,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAClD,MAAM,W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gD,QAAQ,EAAE,CAAC,CAAC;AAC5E,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAEvC,6DAA6D;IAC7D,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACjC,IAAI,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC;YAC1D,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts deleted file mode 100644 index 661c9f0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Simple interactive task server demonstrating elicitation and sampling. - * - * This server demonstrates the task message queue pattern from the MCP Tasks spec: - * - confirm_delete: Uses elicitation to ask the user for confirmation - * - write_haiku: Uses sampling to request an LLM to generate content - * - * Both tools use the "call-now, fetch-later" pattern where the initial call - * creates a task, and the result is fetched via tasks/result endpoint. - */ -export {}; -//# sourceMappingURL=simpleTaskInteractive.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map deleted file mode 100644 index 3e48b9e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractive.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleTaskInteractive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js deleted file mode 100644 index cd95140..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +++ /dev/null @@ -1,600 +0,0 @@ -"use strict"; -/** - * Simple interactive task server demonstrating elicitation and sampling. - * - * This server demonstrates the task message queue pattern from the MCP Tasks spec: - * - confirm_delete: Uses elicitation to ask the user for confirmation - * - write_haiku: Uses sampling to request an LLM to generate content - * - * Both tools use the "call-now, fetch-later" pattern where the initial call - * creates a task, and the result is fetched via tasks/result endpoint. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const index_js_1 = require("../../server/index.js"); -const express_js_1 = require("../../server/express.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -const interfaces_js_1 = require("../../experimental/tasks/interfaces.js"); -const in_memory_js_1 = require("../../experimental/tasks/stores/in-memory.js"); -// ============================================================================ -// Resolver - Promise-like for passing results between async operations -// ============================================================================ -class Resolver { - constructor() { - this._done = false; - this._promise = new Promise((resolve, reject) => { - this._resolve = resolve; - this._reject = reject; - }); - } - setResult(value) { - if (this._done) - return; - this._done = true; - this._resolve(value); - } - setException(error) { - if (this._done) - return; - this._done = true; - this._reject(error); - } - wait() { - return this._promise; - } - done() { - return this._done; - } -} -class TaskMessageQueueWithResolvers { - constructor() { - this.queues = new Map(); - this.waitResolvers = new Map(); - } - getQueue(taskId) { - let queue = this.queues.get(taskId); - if (!queue) { - queue = []; - this.queues.set(taskId, queue); - } - return queue; - } - async enqueue(taskId, message, _sessionId, maxSize) { - const queue = this.getQueue(taskId); - if (maxSize !== undefined && queue.length >= maxSize) { - throw new Error(`Task message queue overflow: queue size (${queue.length}) exceeds maximum (${maxSize})`); - } - queue.push(message); - // Notify any waiters - this.notifyWaiters(taskId); - } - async enqueueWithResolver(taskId, message, resolver, originalRequestId) { - const queue = this.getQueue(taskId); - const queuedMessage = { - type: 'request', - message, - timestamp: Date.now(), - resolver, - originalRequestId - }; - queue.push(queuedMessage); - this.notifyWaiters(taskId); - } - async dequeue(taskId, _sessionId) { - const queue = this.getQueue(taskId); - return queue.shift(); - } - async dequeueAll(taskId, _sessionId) { - const queue = this.queues.get(taskId) ?? []; - this.queues.delete(taskId); - return queue; - } - async waitForMessage(taskId) { - // Check if there are already messages - const queue = this.getQueue(taskId); - if (queue.length > 0) - return; - // Wait for a message to be added - return new Promise(resolve => { - let waiters = this.waitResolvers.get(taskId); - if (!waiters) { - waiters = []; - this.waitResolvers.set(taskId, waiters); - } - waiters.push(resolve); - }); - } - notifyWaiters(taskId) { - const waiters = this.waitResolvers.get(taskId); - if (waiters) { - this.waitResolvers.delete(taskId); - for (const resolve of waiters) { - resolve(); - } - } - } - cleanup() { - this.queues.clear(); - this.waitResolvers.clear(); - } -} -// ============================================================================ -// Extended task store with wait functionality -// ============================================================================ -class TaskStoreWithNotifications extends in_memory_js_1.InMemoryTaskStore { - constructor() { - super(...arguments); - this.updateResolvers = new Map(); - } - async updateTaskStatus(taskId, status, statusMessage, sessionId) { - await super.updateTaskStatus(taskId, status, statusMessage, sessionId); - this.notifyUpdate(taskId); - } - async storeTaskResult(taskId, status, result, sessionId) { - await super.storeTaskResult(taskId, status, result, sessionId); - this.notifyUpdate(taskId); - } - async waitForUpdate(taskId) { - return new Promise(resolve => { - let waiters = this.updateResolvers.get(taskId); - if (!waiters) { - waiters = []; - this.updateResolvers.set(taskId, waiters); - } - waiters.push(resolve); - }); - } - notifyUpdate(taskId) { - const waiters = this.updateResolvers.get(taskId); - if (waiters) { - this.updateResolvers.delete(taskId); - for (const resolve of waiters) { - resolve(); - } - } - } -} -// ============================================================================ -// Task Result Handler - delivers queued messages and routes responses -// ============================================================================ -class TaskResultHandler { - constructor(store, queue) { - this.store = store; - this.queue = queue; - this.pendingRequests = new Map(); - } - async handle(taskId, server, _sessionId) { - while (true) { - // Get fresh task state - const task = await this.store.getTask(taskId); - if (!task) { - throw new Error(`Task not found: ${taskId}`); - } - // Dequeue and send all pending messages - await this.deliverQueuedMessages(taskId, server, _sessionId); - // If task is terminal, return result - if ((0, interfaces_js_1.isTerminal)(task.status)) { - const result = await this.store.getTaskResult(taskId); - // Add related-task metadata per spec - return { - ...result, - _meta: { - ...(result._meta || {}), - [types_js_1.RELATED_TASK_META_KEY]: { taskId } - } - }; - } - // Wait for task update or new message - await this.waitForUpdate(taskId); - } - } - async deliverQueuedMessages(taskId, server, _sessionId) { - while (true) { - const message = await this.queue.dequeue(taskId); - if (!message) - break; - console.log(`[Server] Delivering queued ${message.type} message for task ${taskId}`); - if (message.type === 'request') { - const reqMessage = message; - // Send the request via the server - // Store the resolver so we can route the response back - if (reqMessage.resolver && reqMessage.originalRequestId) { - this.pendingRequests.set(reqMessage.originalRequestId, reqMessage.resolver); - } - // Send the message - for elicitation/sampling, we use the server's methods - // But since we're in tasks/result context, we need to send via transport - // This is simplified - in production you'd use proper message routing - try { - const request = reqMessage.message; - let response; - if (request.method === 'elicitation/create') { - // Send elicitation request to client - const params = request.params; - response = await server.elicitInput(params); - } - else if (request.method === 'sampling/createMessage') { - // Send sampling request to client - const params = request.params; - response = await server.createMessage(params); - } - else { - throw new Error(`Unknown request method: ${request.method}`); - } - // Route response back to resolver - if (reqMessage.resolver) { - reqMessage.resolver.setResult(response); - } - } - catch (error) { - if (reqMessage.resolver) { - reqMessage.resolver.setException(error instanceof Error ? error : new Error(String(error))); - } - } - } - // For notifications, we'd send them too but this example focuses on requests - } - } - async waitForUpdate(taskId) { - // Race between store update and queue message - await Promise.race([this.store.waitForUpdate(taskId), this.queue.waitForMessage(taskId)]); - } - routeResponse(requestId, response) { - const resolver = this.pendingRequests.get(requestId); - if (resolver && !resolver.done()) { - this.pendingRequests.delete(requestId); - resolver.setResult(response); - return true; - } - return false; - } - routeError(requestId, error) { - const resolver = this.pendingRequests.get(requestId); - if (resolver && !resolver.done()) { - this.pendingRequests.delete(requestId); - resolver.setException(error); - return true; - } - return false; - } -} -// ============================================================================ -// Task Session - wraps server to enqueue requests during task execution -// ============================================================================ -class TaskSession { - constructor(server, taskId, store, queue) { - this.server = server; - this.taskId = taskId; - this.store = store; - this.queue = queue; - this.requestCounter = 0; - } - nextRequestId() { - return `task-${this.taskId}-${++this.requestCounter}`; - } - async elicit(message, requestedSchema) { - // Update task status to input_required - await this.store.updateTaskStatus(this.taskId, 'input_required'); - const requestId = this.nextRequestId(); - // Build the elicitation request with related-task metadata - const params = { - message, - requestedSchema, - mode: 'form', - _meta: { - [types_js_1.RELATED_TASK_META_KEY]: { taskId: this.taskId } - } - }; - const jsonrpcRequest = { - jsonrpc: '2.0', - id: requestId, - method: 'elicitation/create', - params - }; - // Create resolver to wait for response - const resolver = new Resolver(); - // Enqueue the request - await this.queue.enqueueWithResolver(this.taskId, jsonrpcRequest, resolver, requestId); - try { - // Wait for response - const response = await resolver.wait(); - // Update status back to working - await this.store.updateTaskStatus(this.taskId, 'working'); - return response; - } - catch (error) { - await this.store.updateTaskStatus(this.taskId, 'working'); - throw error; - } - } - async createMessage(messages, maxTokens) { - // Update task status to input_required - await this.store.updateTaskStatus(this.taskId, 'input_required'); - const requestId = this.nextRequestId(); - // Build the sampling request with related-task metadata - const params = { - messages, - maxTokens, - _meta: { - [types_js_1.RELATED_TASK_META_KEY]: { taskId: this.taskId } - } - }; - const jsonrpcRequest = { - jsonrpc: '2.0', - id: requestId, - method: 'sampling/createMessage', - params - }; - // Create resolver to wait for response - const resolver = new Resolver(); - // Enqueue the request - await this.queue.enqueueWithResolver(this.taskId, jsonrpcRequest, resolver, requestId); - try { - // Wait for response - const response = await resolver.wait(); - // Update status back to working - await this.store.updateTaskStatus(this.taskId, 'working'); - return response; - } - catch (error) { - await this.store.updateTaskStatus(this.taskId, 'working'); - throw error; - } - } -} -// ============================================================================ -// Server Setup -// ============================================================================ -const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 8000; -// Create shared stores -const taskStore = new TaskStoreWithNotifications(); -const messageQueue = new TaskMessageQueueWithResolvers(); -const taskResultHandler = new TaskResultHandler(taskStore, messageQueue); -// Track active task executions -const activeTaskExecutions = new Map(); -// Create the server -const createServer = () => { - const server = new index_js_1.Server({ name: 'simple-task-interactive', version: '1.0.0' }, { - capabilities: { - tools: {}, - tasks: { - requests: { - tools: { call: {} } - } - } - } - }); - // Register tools - server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => { - return { - tools: [ - { - name: 'confirm_delete', - description: 'Asks for confirmation before deleting (demonstrates elicitation)', - inputSchema: { - type: 'object', - properties: { - filename: { type: 'string' } - } - }, - execution: { taskSupport: 'required' } - }, - { - name: 'write_haiku', - description: 'Asks LLM to write a haiku (demonstrates sampling)', - inputSchema: { - type: 'object', - properties: { - topic: { type: 'string' } - } - }, - execution: { taskSupport: 'required' } - } - ] - }; - }); - // Handle tool calls - server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request, extra) => { - const { name, arguments: args } = request.params; - const taskParams = (request.params._meta?.task || request.params.task); - // Validate task mode - these tools require tasks - if (!taskParams) { - throw new Error(`Tool ${name} requires task mode`); - } - // Create task - const taskOptions = { - ttl: taskParams.ttl, - pollInterval: taskParams.pollInterval ?? 1000 - }; - const task = await taskStore.createTask(taskOptions, extra.requestId, request, extra.sessionId); - console.log(`\n[Server] ${name} called, task created: ${task.taskId}`); - // Start background task execution - const taskExecution = (async () => { - try { - const taskSession = new TaskSession(server, task.taskId, taskStore, messageQueue); - if (name === 'confirm_delete') { - const filename = args?.filename ?? 'unknown.txt'; - console.log(`[Server] confirm_delete: asking about '${filename}'`); - console.log('[Server] Sending elicitation request to client...'); - const result = await taskSession.elicit(`Are you sure you want to delete '${filename}'?`, { - type: 'object', - properties: { - confirm: { type: 'boolean' } - }, - required: ['confirm'] - }); - console.log(`[Server] Received elicitation response: action=${result.action}, content=${JSON.stringify(result.content)}`); - let text; - if (result.action === 'accept' && result.content) { - const confirmed = result.content.confirm; - text = confirmed ? `Deleted '${filename}'` : 'Deletion cancelled'; - } - else { - text = 'Deletion cancelled'; - } - console.log(`[Server] Completing task with result: ${text}`); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [{ type: 'text', text }] - }); - } - else if (name === 'write_haiku') { - const topic = args?.topic ?? 'nature'; - console.log(`[Server] write_haiku: topic '${topic}'`); - console.log('[Server] Sending sampling request to client...'); - const result = await taskSession.createMessage([ - { - role: 'user', - content: { type: 'text', text: `Write a haiku about ${topic}` } - } - ], 50); - let haiku = 'No response'; - if (result.content && 'text' in result.content) { - haiku = result.content.text; - } - console.log(`[Server] Received sampling response: ${haiku.substring(0, 50)}...`); - console.log('[Server] Completing task with haiku'); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [{ type: 'text', text: `Haiku:\n${haiku}` }] - }); - } - } - catch (error) { - console.error(`[Server] Task ${task.taskId} failed:`, error); - await taskStore.storeTaskResult(task.taskId, 'failed', { - content: [{ type: 'text', text: `Error: ${error}` }], - isError: true - }); - } - finally { - activeTaskExecutions.delete(task.taskId); - } - })(); - activeTaskExecutions.set(task.taskId, { - promise: taskExecution, - server, - sessionId: extra.sessionId ?? '' - }); - return { task }; - }); - // Handle tasks/get - server.setRequestHandler(types_js_1.GetTaskRequestSchema, async (request) => { - const { taskId } = request.params; - const task = await taskStore.getTask(taskId); - if (!task) { - throw new Error(`Task ${taskId} not found`); - } - return task; - }); - // Handle tasks/result - server.setRequestHandler(types_js_1.GetTaskPayloadRequestSchema, async (request, extra) => { - const { taskId } = request.params; - console.log(`[Server] tasks/result called for task ${taskId}`); - return taskResultHandler.handle(taskId, server, extra.sessionId ?? ''); - }); - return server; -}; -// ============================================================================ -// Express App Setup -// ============================================================================ -const app = (0, express_js_1.createMcpExpressApp)(); -// Map to store transports by session ID -const transports = {}; -// Helper to check if request is initialize -const isInitializeRequest = (body) => { - return typeof body === 'object' && body !== null && 'method' in body && body.method === 'initialize'; -}; -// MCP POST endpoint -app.post('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - try { - let transport; - if (sessionId && transports[sessionId]) { - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - onsessioninitialized: sid => { - console.log(`Session initialized: ${sid}`); - transports[sid] = transport; - } - }); - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}`); - delete transports[sid]; - } - }; - const server = createServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; - } - else { - res.status(400).json({ - jsonrpc: '2.0', - error: { code: -32000, message: 'Bad Request: No valid session ID' }, - id: null - }); - return; - } - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { code: -32603, message: 'Internal server error' }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams -app.get('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Handle DELETE requests for session termination -app.delete('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Session termination request: ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Start server -app.listen(PORT, () => { - console.log(`Starting server on http://localhost:${PORT}/mcp`); - console.log('\nAvailable tools:'); - console.log(' - confirm_delete: Demonstrates elicitation (asks user y/n)'); - console.log(' - write_haiku: Demonstrates sampling (requests LLM completion)'); -}); -// Handle shutdown -process.on('SIGINT', async () => { - console.log('\nShutting down server...'); - for (const sessionId of Object.keys(transports)) { - try { - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing session ${sessionId}:`, error); - } - } - taskStore.cleanup(); - messageQueue.cleanup(); - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleTaskInteractive.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map deleted file mode 100644 index faabd3f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractive.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleTaskInteractive.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;AAGH,6CAAyC;AACzC,oDAA+C;AAC/C,wDAA8D;AAC9D,sEAA+E;AAC/E,6CAsBwB;AACxB,0EAAuI;AACvI,+EAAiF;AAEjF,+EAA+E;AAC/E,uEAAuE;AACvE,+EAA+E;AAE/E,MAAM,QAAQ;IAMV;QAFQ,UAAK,GAAG,KAAK,CAAC;QAGlB,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC/C,IAAI,CAAC,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CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAChE,CAAC;IACL,CAAC;IACD,SAAS,CAAC,OAAO,EAAE,CAAC;IACpB,YAAY,CAAC,OAAO,EAAE,CAAC;IACvB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts deleted file mode 100644 index c536d0c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=sseAndStreamableHttpCompatibleServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map deleted file mode 100644 index fb982c8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sseAndStreamableHttpCompatibleServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/sseAndStreamableHttpCompatibleServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js deleted file mode 100644 index 6e2c1b4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +++ /dev/null @@ -1,256 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const sse_js_1 = require("../../server/sse.js"); -const z = __importStar(require("zod/v4")); -const types_js_1 = require("../../types.js"); -const inMemoryEventStore_js_1 = require("../shared/inMemoryEventStore.js"); -const express_js_1 = require("../../server/express.js"); -/** - * This example server demonstrates backwards compatibility with both: - * 1. The deprecated HTTP+SSE transport (protocol version 2024-11-05) - * 2. The Streamable HTTP transport (protocol version 2025-11-25) - * - * It maintains a single MCP server instance but exposes two transport options: - * - /mcp: The new Streamable HTTP endpoint (supports GET/POST/DELETE) - * - /sse: The deprecated SSE endpoint for older clients (GET to establish stream) - * - /messages: The deprecated POST endpoint for older clients (POST to send messages) - */ -const getServer = () => { - const server = new mcp_js_1.McpServer({ - name: 'backwards-compatible-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - // Register a simple tool that sends notifications over time - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(50) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - return server; -}; -// Create Express application -const app = (0, express_js_1.createMcpExpressApp)(); -// Store transports by session ID -const transports = {}; -//============================================================================= -// STREAMABLE HTTP TRANSPORT (PROTOCOL VERSION 2025-11-25) -//============================================================================= -// Handle all MCP Streamable HTTP requests (GET, POST, DELETE) on a single endpoint -app.all('/mcp', async (req, res) => { - console.log(`Received ${req.method} request to /mcp`); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Check if the transport is of the correct type - const existingTransport = transports[sessionId]; - if (existingTransport instanceof streamableHttp_js_1.StreamableHTTPServerTransport) { - // Reuse existing transport - transport = existingTransport; - } - else { - // Transport exists but is not a StreamableHTTPServerTransport (could be SSEServerTransport) - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: Session exists but uses a different transport protocol' - }, - id: null - }); - return; - } - } - else if (!sessionId && req.method === 'POST' && (0, types_js_1.isInitializeRequest)(req.body)) { - const eventStore = new inMemoryEventStore_js_1.InMemoryEventStore(); - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - console.log(`StreamableHTTP session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server - const server = getServer(); - await server.connect(transport); - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with the transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -//============================================================================= -// DEPRECATED HTTP+SSE TRANSPORT (PROTOCOL VERSION 2024-11-05) -//============================================================================= -app.get('/sse', async (req, res) => { - console.log('Received GET request to /sse (deprecated SSE transport)'); - const transport = new sse_js_1.SSEServerTransport('/messages', res); - transports[transport.sessionId] = transport; - res.on('close', () => { - delete transports[transport.sessionId]; - }); - const server = getServer(); - await server.connect(transport); -}); -app.post('/messages', async (req, res) => { - const sessionId = req.query.sessionId; - let transport; - const existingTransport = transports[sessionId]; - if (existingTransport instanceof sse_js_1.SSEServerTransport) { - // Reuse existing transport - transport = existingTransport; - } - else { - // Transport exists but is not a SSEServerTransport (could be StreamableHTTPServerTransport) - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: Session exists but uses a different transport protocol' - }, - id: null - }); - return; - } - if (transport) { - await transport.handlePostMessage(req, res, req.body); - } - else { - res.status(400).send('No transport found for sessionId'); - } -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Backwards compatible MCP server listening on port ${PORT}`); - console.log(` -============================================== -SUPPORTED TRANSPORT OPTIONS: - -1. Streamable Http(Protocol version: 2025-11-25) - Endpoint: /mcp - Methods: GET, POST, DELETE - Usage: - - Initialize with POST to /mcp - - Establish SSE stream with GET to /mcp - - Send requests with POST to /mcp - - Terminate session with DELETE to /mcp - -2. Http + SSE (Protocol version: 2024-11-05) - Endpoints: /sse (GET) and /messages (POST) - Usage: - - Establish SSE stream with GET to /sse - - Send requests with POST to /messages?sessionId= -============================================== -`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=sseAndStreamableHttpCompatibleServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map deleted file mode 100644 index 3f6331a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sseAndStreamableHttpCompatibleServer.js","sourceRoot":"","sources":["../../../../src/examples/server/sseAndStreamableHttpCompatibleServer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAAyC;AACzC,gDAAgD;AAChD,sEAA+E;AAC/E,gDAAyD;AACzD,0CAA4B;AAC5B,6CAAqE;AACrE,2EAAqE;AACrE,wDAA8D;AAE9D;;;;;;;;;GASG;AAEH,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,kBAAS,CACxB;QACI,IAAI,EAAE,6BAA6B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YAC1D,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts deleted file mode 100644 index 63e4554..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ssePollingExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map deleted file mode 100644 index 9382731..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/ssePollingExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js deleted file mode 100644 index 4792896..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const mcp_js_1 = require("../../server/mcp.js"); -const express_js_1 = require("../../server/express.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const inMemoryEventStore_js_1 = require("../shared/inMemoryEventStore.js"); -const cors_1 = __importDefault(require("cors")); -// Create the MCP server -const server = new mcp_js_1.McpServer({ - name: 'sse-polling-example', - version: '1.0.0' -}, { - capabilities: { logging: {} } -}); -// Register a long-running tool that demonstrates server-initiated disconnect -server.tool('long-task', 'A long-running task that sends progress updates. Server will disconnect mid-task to demonstrate polling.', {}, async (_args, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - console.log(`[${extra.sessionId}] Starting long-task...`); - // Send first progress notification - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 25% - Starting work...' - }, extra.sessionId); - await sleep(1000); - // Send second progress notification - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 50% - Halfway there...' - }, extra.sessionId); - await sleep(1000); - // Server decides to disconnect the client to free resources - // Client will reconnect via GET with Last-Event-ID after the transport's retryInterval - // Use extra.closeSSEStream callback - available when eventStore is configured - if (extra.closeSSEStream) { - console.log(`[${extra.sessionId}] Closing SSE stream to trigger client polling...`); - extra.closeSSEStream(); - } - // Continue processing while client is disconnected - // Events are stored in eventStore and will be replayed on reconnect - await sleep(500); - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 75% - Almost done (sent while client disconnected)...' - }, extra.sessionId); - await sleep(500); - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 100% - Complete!' - }, extra.sessionId); - console.log(`[${extra.sessionId}] Task complete`); - return { - content: [ - { - type: 'text', - text: 'Long task completed successfully!' - } - ] - }; -}); -// Set up Express app -const app = (0, express_js_1.createMcpExpressApp)(); -app.use((0, cors_1.default)()); -// Create event store for resumability -const eventStore = new inMemoryEventStore_js_1.InMemoryEventStore(); -// Track transports by session ID for session reuse -const transports = new Map(); -// Handle all MCP requests -app.all('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - // Reuse existing transport or create new one - let transport = sessionId ? transports.get(sessionId) : undefined; - if (!transport) { - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - eventStore, - retryInterval: 2000, // Default retry interval for priming events - onsessioninitialized: id => { - console.log(`[${id}] Session initialized`); - transports.set(id, transport); - } - }); - // Connect the MCP server to the transport - await server.connect(transport); - } - await transport.handleRequest(req, res, req.body); -}); -// Start the server -const PORT = 3001; -app.listen(PORT, () => { - console.log(`SSE Polling Example Server running on http://localhost:${PORT}/mcp`); - console.log(''); - console.log('This server demonstrates SEP-1699 SSE polling:'); - console.log('- retryInterval: 2000ms (client waits 2s before reconnecting)'); - console.log('- eventStore: InMemoryEventStore (events are persisted for replay)'); - console.log(''); - console.log('Try calling the "long-task" tool to see server-initiated disconnect in action.'); -}); -//# sourceMappingURL=ssePollingExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map deleted file mode 100644 index 99267c8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingExample.js","sourceRoot":"","sources":["../../../../src/examples/server/ssePollingExample.ts"],"names":[],"mappings":";;;;;AAeA,6CAAyC;AACzC,gDAAgD;AAChD,wDAA8D;AAC9D,sEAA+E;AAE/E,2EAAqE;AACrE,gDAAwB;AAExB,wBAAwB;AACxB,MAAM,MAAM,GAAG,IAAI,kBAAS,CACxB;IACI,IAAI,EAAE,qBAAqB;IAC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AAC,GAAG,CAAC,EAAE,EAAE,SAAU,CAAC,CAAC;YACnC,CAAC;SACJ,CAAC,CAAC;QAEH,0CAA0C;QAC1C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,0DAA0D,IAAI,MAAM,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,oEAAoE,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,gFAAgF,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts deleted file mode 100644 index 4df1783..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=standaloneSseWithGetStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map deleted file mode 100644 index df60dc5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"standaloneSseWithGetStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/standaloneSseWithGetStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js deleted file mode 100644 index 31a8f06..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const node_crypto_1 = require("node:crypto"); -const mcp_js_1 = require("../../server/mcp.js"); -const streamableHttp_js_1 = require("../../server/streamableHttp.js"); -const types_js_1 = require("../../types.js"); -const express_js_1 = require("../../server/express.js"); -// Create an MCP server with implementation details -const server = new mcp_js_1.McpServer({ - name: 'resource-list-changed-notification-server', - version: '1.0.0' -}); -// Store transports by session ID to send notifications -const transports = {}; -const addResource = (name, content) => { - const uri = `https://mcp-example.com/dynamic/${encodeURIComponent(name)}`; - server.registerResource(name, uri, { mimeType: 'text/plain', description: `Dynamic resource: ${name}` }, async () => { - return { - contents: [{ uri, text: content }] - }; - }); -}; -addResource('example-resource', 'Initial content for example-resource'); -const resourceChangeInterval = setInterval(() => { - const name = (0, node_crypto_1.randomUUID)(); - addResource(name, `Content for ${name}`); -}, 5000); // Change resources every 5 seconds for testing -const app = (0, express_js_1.createMcpExpressApp)(); -app.post('/mcp', async (req, res) => { - console.log('Received MCP request:', req.body); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && (0, types_js_1.isInitializeRequest)(req.body)) { - // New initialization request - transport = new streamableHttp_js_1.StreamableHTTPServerTransport({ - sessionIdGenerator: () => (0, node_crypto_1.randomUUID)(), - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Connect the transport to the MCP server - await server.connect(transport); - // Handle the request - the onsessioninitialized callback will store the transport - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams (now using built-in support from StreamableHTTP) -app.get('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Establishing SSE stream for session ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - clearInterval(resourceChangeInterval); - await server.close(); - process.exit(0); -}); -//# sourceMappingURL=standaloneSseWithGetStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map deleted file mode 100644 index 84753c6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"standaloneSseWithGetStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/standaloneSseWithGetStreamableHttp.ts"],"names":[],"mappings":";;AACA,6CAAyC;AACzC,gDAAgD;AAChD,sEAA+E;AAC/E,6CAAyE;AACzE,wDAA8D;AAE9D,mDAAmD;AACnD,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;IACzB,IAAI,EAAE,2CAA2C;IACjD,OAAO,EAAE,OAAO;CACnB,CAAC,CAAC;AAEH,uDAAuD;AACvD,MAAM,UAAU,GAA2D,EAAE,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,OAAe,EAAE,EAAE;IAClD,MAAM,GAAG,GAAG,mCAAmC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1E,MAAM,CAAC,gBAAgB,CACnB,IAAI,EACJ,GAAG,EACH,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,qBAAqB,IAAI,EAAE,EAAE,EACpE,KAAK,IAAiC,EAAE;QACpC,OAAO;YACH,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SACrC,CAAC;IACN,CAAC,CACJ,CAAC;AACN,CAAC,CAAC;AAEF,WAAW,CAAC,kBAAkB,EAAE,sCAAsC,CAAC,CAAC;AAExE,MAAM,sBAAsB,GAAG,WAAW,CAAC,GAAG,EAAE;IAC5C,MAAM,IAAI,GAAG,IAAA,wBAAU,GAAE,CAAC;IAC1B,WAAW,CAAC,IAAI,EAAE,eAAe,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,+CAA+C;AAEzD,MAAM,GAAG,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GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;IACrB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACtC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts deleted file mode 100644 index acc24b6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=toolWithSampleServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map deleted file mode 100644 index bd0cebc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolWithSampleServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/toolWithSampleServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js deleted file mode 100644 index 45d3837..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -// Run with: npx tsx src/examples/server/toolWithSampleServer.ts -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const mcp_js_1 = require("../../server/mcp.js"); -const stdio_js_1 = require("../../server/stdio.js"); -const z = __importStar(require("zod/v4")); -const mcpServer = new mcp_js_1.McpServer({ - name: 'tools-with-sample-server', - version: '1.0.0' -}); -// Tool that uses LLM sampling to summarize any text -mcpServer.registerTool('summarize', { - description: 'Summarize any text using an LLM', - inputSchema: { - text: z.string().describe('Text to summarize') - } -}, async ({ text }) => { - // Call the LLM through MCP sampling - const response = await mcpServer.server.createMessage({ - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please summarize the following text concisely:\n\n${text}` - } - } - ], - maxTokens: 500 - }); - // Since we're not passing tools param to createMessage, response.content is single content - return { - content: [ - { - type: 'text', - text: response.content.type === 'text' ? response.content.text : 'Unable to generate summary' - } - ] - }; -}); -async function main() { - const transport = new stdio_js_1.StdioServerTransport(); - await mcpServer.connect(transport); - console.log('MCP server is running...'); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=toolWithSampleServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map deleted file mode 100644 index 287e11e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolWithSampleServer.js","sourceRoot":"","sources":["../../../../src/examples/server/toolWithSampleServer.ts"],"names":[],"mappings":";AAAA,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;AAEhE,gDAAgD;AAChD,oDAA6D;AAC7D,0CAA4B;AAE5B,MAAM,SAAS,GAAG,IAAI,kBAAS,CAAC;IAC5B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;CACnB,CAAC,CAAC;AAEH,oDAAoD;AACpD,SAAS,CAAC,YAAY,CAClB,WAAW,EACX;IACI,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE;QACT,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;KACjD;CACJ,EACD,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACf,oCAAoC;IACpC,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC;QAClD,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,qDAAqD,IAAI,EAAE;iBACpE;aACJ;SACJ;QACD,SAAS,EAAE,GAAG;KACjB,CAAC,CAAC;IAEH,2FAA2F;IAC3F,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,4BAA4B;aAChG;SACJ;KACJ,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,KAAK,UAAU,IAAI;IACf,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAC5C,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts deleted file mode 100644 index 26ff38c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { JSONRPCMessage } from '../../types.js'; -import { EventStore } from '../../server/streamableHttp.js'; -/** - * Simple in-memory implementation of the EventStore interface for resumability - * This is primarily intended for examples and testing, not for production use - * where a persistent storage solution would be more appropriate. - */ -export declare class InMemoryEventStore implements EventStore { - private events; - /** - * Generates a unique event ID for a given stream ID - */ - private generateEventId; - /** - * Extracts the stream ID from an event ID - */ - private getStreamIdFromEventId; - /** - * Stores an event with a generated event ID - * Implements EventStore.storeEvent - */ - storeEvent(streamId: string, message: JSONRPCMessage): Promise; - /** - * Replays events that occurred after a specific event ID - * Implements EventStore.replayEventsAfter - */ - replayEventsAfter(lastEventId: string, { send }: { - send: (eventId: string, message: JSONRPCMessage) => Promise; - }): Promise; -} -//# sourceMappingURL=inMemoryEventStore.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map deleted file mode 100644 index a67ee6c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemoryEventStore.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/inMemoryEventStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,UAAU;IACjD,OAAO,CAAC,MAAM,CAAyE;IAEvF;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAK9B;;;OAGG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAM5E;;;OAGG;IACG,iBAAiB,CACnB,WAAW,EAAE,MAAM,EACnB,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,GAChF,OAAO,CAAC,MAAM,CAAC;CAkCrB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js deleted file mode 100644 index d33ffdb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InMemoryEventStore = void 0; -/** - * Simple in-memory implementation of the EventStore interface for resumability - * This is primarily intended for examples and testing, not for production use - * where a persistent storage solution would be more appropriate. - */ -class InMemoryEventStore { - constructor() { - this.events = new Map(); - } - /** - * Generates a unique event ID for a given stream ID - */ - generateEventId(streamId) { - return `${streamId}_${Date.now()}_${Math.random().toString(36).substring(2, 10)}`; - } - /** - * Extracts the stream ID from an event ID - */ - getStreamIdFromEventId(eventId) { - const parts = eventId.split('_'); - return parts.length > 0 ? parts[0] : ''; - } - /** - * Stores an event with a generated event ID - * Implements EventStore.storeEvent - */ - async storeEvent(streamId, message) { - const eventId = this.generateEventId(streamId); - this.events.set(eventId, { streamId, message }); - return eventId; - } - /** - * Replays events that occurred after a specific event ID - * Implements EventStore.replayEventsAfter - */ - async replayEventsAfter(lastEventId, { send }) { - if (!lastEventId || !this.events.has(lastEventId)) { - return ''; - } - // Extract the stream ID from the event ID - const streamId = this.getStreamIdFromEventId(lastEventId); - if (!streamId) { - return ''; - } - let foundLastEvent = false; - // Sort events by eventId for chronological ordering - const sortedEvents = [...this.events.entries()].sort((a, b) => a[0].localeCompare(b[0])); - for (const [eventId, { streamId: eventStreamId, message }] of sortedEvents) { - // Only include events from the same stream - if (eventStreamId !== streamId) { - continue; - } - // Start sending events after we find the lastEventId - if (eventId === lastEventId) { - foundLastEvent = true; - continue; - } - if (foundLastEvent) { - await send(eventId, message); - } - } - return streamId; - } -} -exports.InMemoryEventStore = InMemoryEventStore; -//# sourceMappingURL=inMemoryEventStore.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map deleted file mode 100644 index d696450..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemoryEventStore.js","sourceRoot":"","sources":["../../../../src/examples/shared/inMemoryEventStore.ts"],"names":[],"mappings":";;;AAGA;;;;GAIG;AACH,MAAa,kBAAkB;IAA/B;QACY,WAAM,GAA+D,IAAI,GAAG,EAAE,CAAC;IAoE3F,CAAC;IAlEG;;OAEG;IACK,eAAe,CAAC,QAAgB;QACpC,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;IACtF,CAAC;IAED;;OAEG;IACK,sBAAsB,CAAC,OAAe;QAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,QAAgB,EAAE,OAAuB;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QAChD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CACnB,WAAmB,EACnB,EAAE,IAAI,EAAyE;QAE/E,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAChD,OAAO,EAAE,CAAC;QACd,CAAC;QAED,0CAA0C;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,oDAAoD;QACpD,MAAM,YAAY,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzF,KAAK,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC;YACzE,2CAA2C;YAC3C,IAAI,aAAa,KAAK,QAAQ,EAAE,CAAC;gBAC7B,SAAS;YACb,CAAC;YAED,qDAAqD;YACrD,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;gBAC1B,cAAc,GAAG,IAAI,CAAC;gBACtB,SAAS;YACb,CAAC;YAED,IAAI,cAAc,EAAE,CAAC;gBACjB,MAAM,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACjC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AArED,gDAqEC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts deleted file mode 100644 index 2a86335..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Experimental MCP SDK features. - * WARNING: These APIs are experimental and may change without notice. - * - * Import experimental features from this module: - * ```typescript - * import { TaskStore, InMemoryTaskStore } from '@modelcontextprotocol/sdk/experimental'; - * ``` - * - * @experimental - */ -export * from './tasks/index.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map deleted file mode 100644 index 410892a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js deleted file mode 100644 index 7634e67..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -/** - * Experimental MCP SDK features. - * WARNING: These APIs are experimental and may change without notice. - * - * Import experimental features from this module: - * ```typescript - * import { TaskStore, InMemoryTaskStore } from '@modelcontextprotocol/sdk/experimental'; - * ``` - * - * @experimental - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tasks/index.js"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map deleted file mode 100644 index 110189e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;AAEH,mDAAiC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts deleted file mode 100644 index 9c7a928..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Experimental client task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { Client } from '../../client/index.js'; -import type { RequestOptions } from '../../shared/protocol.js'; -import type { ResponseMessage } from '../../shared/responseMessage.js'; -import type { AnyObjectSchema, SchemaOutput } from '../../server/zod-compat.js'; -import type { CallToolRequest, ClientRequest, Notification, Request, Result } from '../../types.js'; -import { CallToolResultSchema, type CompatibilityCallToolResultSchema } from '../../types.js'; -import type { GetTaskResult, ListTasksResult, CancelTaskResult } from './types.js'; -/** - * Experimental task features for MCP clients. - * - * Access via `client.experimental.tasks`: - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'tool', arguments: {} }); - * const task = await client.experimental.tasks.getTask(taskId); - * ``` - * - * @experimental - */ -export declare class ExperimentalClientTasks { - private readonly _client; - constructor(_client: Client); - /** - * Calls a tool and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to tool execution, allowing you to - * observe intermediate task status updates for long-running tool calls. - * Automatically validates structured output if the tool has an outputSchema. - * - * @example - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'myTool', arguments: {} }); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Tool execution started:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Tool status:', message.task.status); - * break; - * case 'result': - * console.log('Tool result:', message.result); - * break; - * case 'error': - * console.error('Tool error:', message.error); - * break; - * } - * } - * ``` - * - * @param params - Tool call parameters (name and arguments) - * @param resultSchema - Zod schema for validating the result (defaults to CallToolResultSchema) - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - callToolStream(params: CallToolRequest['params'], resultSchema?: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - getTask(taskId: string, options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - getTaskResult(taskId: string, resultSchema?: T, options?: RequestOptions): Promise>; - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - listTasks(cursor?: string, options?: RequestOptions): Promise; - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - cancelTask(taskId: string, options?: RequestOptions): Promise; - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request: ClientRequest | RequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; -} -//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map deleted file mode 100644 index e54158d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAE,oBAAoB,EAAE,KAAK,iCAAiC,EAAuB,MAAM,gBAAgB,CAAC;AAEnH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgBnF;;;;;;;;;;GAUG;AACH,qBAAa,uBAAuB,CAChC,QAAQ,SAAS,OAAO,GAAG,OAAO,EAClC,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,OAAO,SAAS,MAAM,GAAG,MAAM;IAEnB,O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ules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js deleted file mode 100644 index cb7d26f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +++ /dev/null @@ -1,188 +0,0 @@ -"use strict"; -/** - * Experimental client task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExperimentalClientTasks = void 0; -const types_js_1 = require("../../types.js"); -/** - * Experimental task features for MCP clients. - * - * Access via `client.experimental.tasks`: - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'tool', arguments: {} }); - * const task = await client.experimental.tasks.getTask(taskId); - * ``` - * - * @experimental - */ -class ExperimentalClientTasks { - constructor(_client) { - this._client = _client; - } - /** - * Calls a tool and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to tool execution, allowing you to - * observe intermediate task status updates for long-running tool calls. - * Automatically validates structured output if the tool has an outputSchema. - * - * @example - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'myTool', arguments: {} }); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Tool execution started:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Tool status:', message.task.status); - * break; - * case 'result': - * console.log('Tool result:', message.result); - * break; - * case 'error': - * console.error('Tool error:', message.error); - * break; - * } - * } - * ``` - * - * @param params - Tool call parameters (name and arguments) - * @param resultSchema - Zod schema for validating the result (defaults to CallToolResultSchema) - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - async *callToolStream(params, resultSchema = types_js_1.CallToolResultSchema, options) { - // Access Client's internal methods - const clientInternal = this._client; - // Add task creation parameters if server supports it and not explicitly provided - const optionsWithTask = { - ...options, - // We check if the tool is known to be a task during auto-configuration, but assume - // the caller knows what they're doing if they pass this explicitly - task: options?.task ?? (clientInternal.isToolTask(params.name) ? {} : undefined) - }; - const stream = clientInternal.requestStream({ method: 'tools/call', params }, resultSchema, optionsWithTask); - // Get the validator for this tool (if it has an output schema) - const validator = clientInternal.getToolOutputValidator(params.name); - // Iterate through the stream and validate the final result if needed - for await (const message of stream) { - // If this is a result message and the tool has an output schema, validate it - if (message.type === 'result' && validator) { - const result = message.result; - // If tool has outputSchema, it MUST return structuredContent (unless it's an error) - if (!result.structuredContent && !result.isError) { - yield { - type: 'error', - error: new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`) - }; - return; - } - // Only validate structured content if present (not when there's an error) - if (result.structuredContent) { - try { - // Validate the structured content against the schema - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - yield { - type: 'error', - error: new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`) - }; - return; - } - } - catch (error) { - if (error instanceof types_js_1.McpError) { - yield { type: 'error', error }; - return; - } - yield { - type: 'error', - error: new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Failed to validate structured content: ${error instanceof Error ? error.message : String(error)}`) - }; - return; - } - } - } - // Yield the message (either validated result or any other message type) - yield message; - } - } - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - async getTask(taskId, options) { - return this._client.getTask({ taskId }, options); - } - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - async getTaskResult(taskId, resultSchema, options) { - // Delegate to the client's underlying Protocol method - return this._client.getTaskResult({ taskId }, resultSchema, options); - } - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - async listTasks(cursor, options) { - // Delegate to the client's underlying Protocol method - return this._client.listTasks(cursor ? { cursor } : undefined, options); - } - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - async cancelTask(taskId, options) { - // Delegate to the client's underlying Protocol method - return this._client.cancelTask({ taskId }, options); - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request, resultSchema, options) { - return this._client.requestStream(request, resultSchema, options); - } -} -exports.ExperimentalClientTasks = ExperimentalClientTasks; -//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map deleted file mode 100644 index a5dd7bd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/client.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAOH,6CAAmH;AAkBnH;;;;;;;;;;GAUG;AACH,MAAa,uBAAuB;IAKhC,YAA6B,OAAiD;QAAjD,YAAO,GAAP,OAAO,CAA0C;IAAG,CAAC;IAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,KAAK,CAAC,CAAC,cAAc,CACjB,MAAiC,EACjC,eAAkB,+BAAyB,EAC3C,OAAwB;QAExB,mCAAmC;QACnC,MAAM,cAAc,GAAG,IAAI,CAAC,OAA8C,CAAC;QAE3E,iFAAiF;QACjF,MAAM,eAAe,GAAG;YACpB,GAAG,OAAO;YACV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AAC,MAAc,EAAE,OAAwB;QACrD,sDAAsD;QACtD,OACI,IAAI,CAAC,OAGR,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,aAAa,CACT,OAAiC,EACjC,YAAe,EACf,OAAwB;QAUxB,OAAQ,IAAI,CAAC,OAA8C,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC;CACJ;AA9ND,0DA8NC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts deleted file mode 100644 index f5e505f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Experimental task capability assertion helpers. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -/** - * Type representing the task requests capability structure. - * This is derived from ClientTasksCapability.requests and ServerTasksCapability.requests. - */ -interface TaskRequestsCapability { - tools?: { - call?: object; - }; - sampling?: { - createMessage?: object; - }; - elicitation?: { - create?: object; - }; -} -/** - * Asserts that task creation is supported for tools/call. - * Used by Client.assertTaskCapability and Server.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export declare function assertToolsCallTaskCapability(requests: TaskRequestsCapability | undefined, method: string, entityName: 'Server' | 'Client'): void; -/** - * Asserts that task creation is supported for sampling/createMessage or elicitation/create. - * Used by Server.assertTaskCapability and Client.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export declare function assertClientRequestTaskCapability(requests: TaskRequestsCapability | undefined, method: string, entityName: 'Server' | 'Client'): void; -export {}; -//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map deleted file mode 100644 index 99dc903..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,UAAU,sBAAsB;IAC5B,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,WAAW,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CACzC,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAChC,IAAI,CAgBN;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAC7C,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAChC,IAAI,CAsBN"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js deleted file mode 100644 index 6348ab0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/** - * Experimental task capability assertion helpers. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assertToolsCallTaskCapability = assertToolsCallTaskCapability; -exports.assertClientRequestTaskCapability = assertClientRequestTaskCapability; -/** - * Asserts that task creation is supported for tools/call. - * Used by Client.assertTaskCapability and Server.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -function assertToolsCallTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case 'tools/call': - if (!requests.tools?.call) { - throw new Error(`${entityName} does not support task creation for tools/call (required for ${method})`); - } - break; - default: - // Method doesn't support tasks, which is fine - no error - break; - } -} -/** - * Asserts that task creation is supported for sampling/createMessage or elicitation/create. - * Used by Server.assertTaskCapability and Client.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -function assertClientRequestTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case 'sampling/createMessage': - if (!requests.sampling?.createMessage) { - throw new Error(`${entityName} does not support task creation for sampling/createMessage (required for ${method})`); - } - break; - case 'elicitation/create': - if (!requests.elicitation?.create) { - throw new Error(`${entityName} does not support task creation for elicitation/create (required for ${method})`); - } - break; - default: - // Method doesn't support tasks, which is fine - no error - break; - } -} -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map deleted file mode 100644 index 1054273..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/helpers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAuBH,sEAoBC;AAaD,8EA0BC;AAtED;;;;;;;;;;GAUG;AACH,SAAgB,6BAA6B,CACzC,QAA4C,EAC5C,MAAc,EACd,UAA+B;IAE/B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,iDAAiD,MAAM,GAAG,CAAC,CAAC;IAC7F,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACb,KAAK,YAAY;YACb,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,gEAAgE,MAAM,GAAG,CAAC,CAAC;YAC5G,CAAC;YACD,MAAM;QAEV;YACI,yDAAyD;YACzD,MAAM;IACd,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,iCAAiC,CAC7C,QAA4C,EAC5C,MAAc,EACd,UAA+B;IAE/B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,iDAAiD,MAAM,GAAG,CAAC,CAAC;IAC7F,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACb,KAAK,wBAAwB;YACzB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,4EAA4E,MAAM,GAAG,CAAC,CAAC;YACxH,CAAC;YACD,MAAM;QAEV,KAAK,oBAAoB;YACrB,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;gBAChC,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,wEAAwE,MAAM,GAAG,CAAC,CAAC;YACpH,CAAC;YACD,MAAM;QAEV;YACI,yDAAyD;YACzD,MAAM;IACd,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts deleted file mode 100644 index 33ab791..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Experimental task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -export * from './types.js'; -export * from './interfaces.js'; -export * from './helpers.js'; -export * from './client.js'; -export * from './server.js'; -export * from './mcp-server.js'; -export * from './stores/in-memory.js'; -export type { ResponseMessage, TaskStatusMessage, TaskCreatedMessage, ResultMessage, ErrorMessage, BaseResponseMessage } from '../../shared/responseMessage.js'; -export { takeResult, toArrayAsync } from '../../shared/responseMessage.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map deleted file mode 100644 index cf117ed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,YAAY,CAAC;AAG3B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,cAAc,CAAC;AAG7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EACR,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js deleted file mode 100644 index 25296f6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/** - * Experimental task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toArrayAsync = exports.takeResult = void 0; -// Re-export spec types for convenience -__exportStar(require("./types.js"), exports); -// SDK implementation interfaces -__exportStar(require("./interfaces.js"), exports); -// Assertion helpers -__exportStar(require("./helpers.js"), exports); -// Wrapper classes -__exportStar(require("./client.js"), exports); -__exportStar(require("./server.js"), exports); -__exportStar(require("./mcp-server.js"), exports); -// Store implementations -__exportStar(require("./stores/in-memory.js"), exports); -var responseMessage_js_1 = require("../../shared/responseMessage.js"); -Object.defineProperty(exports, "takeResult", { enumerable: true, get: function () { return responseMessage_js_1.takeResult; } }); -Object.defineProperty(exports, "toArrayAsync", { enumerable: true, get: function () { return responseMessage_js_1.toArrayAsync; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map deleted file mode 100644 index 3d57065..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;AAEH,uCAAuC;AACvC,6CAA2B;AAE3B,gCAAgC;AAChC,kDAAgC;AAEhC,oBAAoB;AACpB,+CAA6B;AAE7B,kBAAkB;AAClB,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAEhC,wBAAwB;AACxB,wDAAsC;AAWtC,sEAA2E;AAAlE,gHAAA,UAAU,OAAA;AAAE,kHAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts deleted file mode 100644 index b0bb989..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +++ /dev/null @@ -1,232 +0,0 @@ -/** - * Experimental task interfaces for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - */ -import { Task, RequestId, Result, JSONRPCRequest, JSONRPCNotification, JSONRPCResultResponse, JSONRPCErrorResponse, ServerRequest, ServerNotification, CallToolResult, GetTaskResult, ToolExecution, Request } from '../../types.js'; -import { CreateTaskResult } from './types.js'; -import type { RequestHandlerExtra, RequestTaskStore } from '../../shared/protocol.js'; -import type { ZodRawShapeCompat, AnySchema, ShapeOutput } from '../../server/zod-compat.js'; -/** - * Extended handler extra with task store for task creation. - * @experimental - */ -export interface CreateTaskRequestHandlerExtra extends RequestHandlerExtra { - taskStore: RequestTaskStore; -} -/** - * Extended handler extra with task ID and store for task operations. - * @experimental - */ -export interface TaskRequestHandlerExtra extends RequestHandlerExtra { - taskId: string; - taskStore: RequestTaskStore; -} -/** - * Base callback type for tool handlers. - * @experimental - */ -export type BaseToolCallback, Args extends undefined | ZodRawShapeCompat | AnySchema = undefined> = Args extends ZodRawShapeCompat ? (args: ShapeOutput, extra: ExtraT) => SendResultT | Promise : Args extends AnySchema ? (args: unknown, extra: ExtraT) => SendResultT | Promise : (extra: ExtraT) => SendResultT | Promise; -/** - * Handler for creating a task. - * @experimental - */ -export type CreateTaskRequestHandler = BaseToolCallback; -/** - * Handler for task operations (get, getResult). - * @experimental - */ -export type TaskRequestHandler = BaseToolCallback; -/** - * Interface for task-based tool handlers. - * @experimental - */ -export interface ToolTaskHandler { - createTask: CreateTaskRequestHandler; - getTask: TaskRequestHandler; - getTaskResult: TaskRequestHandler; -} -/** - * Task-specific execution configuration. - * taskSupport cannot be 'forbidden' for task-based tools. - * @experimental - */ -export type TaskToolExecution = Omit & { - taskSupport: TaskSupport extends 'forbidden' | undefined ? never : TaskSupport; -}; -/** - * Represents a message queued for side-channel delivery via tasks/result. - * - * This is a serializable data structure that can be stored in external systems. - * All fields are JSON-serializable. - */ -export type QueuedMessage = QueuedRequest | QueuedNotification | QueuedResponse | QueuedError; -export interface BaseQueuedMessage { - /** Type of message */ - type: string; - /** When the message was queued (milliseconds since epoch) */ - timestamp: number; -} -export interface QueuedRequest extends BaseQueuedMessage { - type: 'request'; - /** The actual JSONRPC request */ - message: JSONRPCRequest; -} -export interface QueuedNotification extends BaseQueuedMessage { - type: 'notification'; - /** The actual JSONRPC notification */ - message: JSONRPCNotification; -} -export interface QueuedResponse extends BaseQueuedMessage { - type: 'response'; - /** The actual JSONRPC response */ - message: JSONRPCResultResponse; -} -export interface QueuedError extends BaseQueuedMessage { - type: 'error'; - /** The actual JSONRPC error */ - message: JSONRPCErrorResponse; -} -/** - * Interface for managing per-task FIFO message queues. - * - * Similar to TaskStore, this allows pluggable queue implementations - * (in-memory, Redis, other distributed queues, etc.). - * - * Each method accepts taskId and optional sessionId parameters to enable - * a single queue instance to manage messages for multiple tasks, with - * isolation based on task ID and session ID. - * - * All methods are async to support external storage implementations. - * All data in QueuedMessage must be JSON-serializable. - * - * @experimental - */ -export interface TaskMessageQueue { - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - enqueue(taskId: string, message: QueuedMessage, sessionId?: string, maxSize?: number): Promise; - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - dequeue(taskId: string, sessionId?: string): Promise; - /** - * Removes and returns all messages from the queue for a specific task. - * Used when tasks are cancelled or failed to clean up pending messages. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - dequeueAll(taskId: string, sessionId?: string): Promise; -} -/** - * Task creation options. - * @experimental - */ -export interface CreateTaskOptions { - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl?: number | null; - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval?: number; - /** - * Additional context to pass to the task store. - */ - context?: Record; -} -/** - * Interface for storing and retrieving task state and results. - * - * Similar to Transport, this allows pluggable task storage implementations - * (in-memory, database, distributed cache, etc.). - * - * @experimental - */ -export interface TaskStore { - /** - * Creates a new task with the given creation parameters and original request. - * The implementation must generate a unique taskId and createdAt timestamp. - * - * TTL Management: - * - The implementation receives the TTL suggested by the requestor via taskParams.ttl - * - The implementation MAY override the requested TTL (e.g., to enforce limits) - * - The actual TTL used MUST be returned in the Task object - * - Null TTL indicates unlimited task lifetime (no automatic cleanup) - * - Cleanup SHOULD occur automatically after TTL expires, regardless of task status - * - * @param taskParams - The task creation parameters from the request (ttl, pollInterval) - * @param requestId - The JSON-RPC request ID - * @param request - The original request that triggered task creation - * @param sessionId - Optional session ID for binding the task to a specific session - * @returns The created task object - */ - createTask(taskParams: CreateTaskOptions, requestId: RequestId, request: Request, sessionId?: string): Promise; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns The task object, or null if it does not exist - */ - getTask(taskId: string, sessionId?: string): Promise; - /** - * Stores the result of a task and sets its final status. - * - * @param taskId - The task identifier - * @param status - The final status: 'completed' for success, 'failed' for errors - * @param result - The result to store - * @param sessionId - Optional session ID for binding the operation to a specific session - */ - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result, sessionId?: string): Promise; - /** - * Retrieves the stored result of a task. - * - * @param taskId - The task identifier - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns The stored result - */ - getTaskResult(taskId: string, sessionId?: string): Promise; - /** - * Updates a task's status (e.g., to 'cancelled', 'failed', 'completed'). - * - * @param taskId - The task identifier - * @param status - The new status - * @param statusMessage - Optional diagnostic message for failed tasks or other status information - * @param sessionId - Optional session ID for binding the operation to a specific session - */ - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string, sessionId?: string): Promise; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @param cursor - Optional cursor for pagination - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns An object containing the tasks array and an optional nextCursor - */ - listTasks(cursor?: string, sessionId?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; -} -/** - * Checks if a task status represents a terminal state. - * Terminal states are those where the task has finished and will not change. - * - * @param status - The task status to check - * @returns True if the status is terminal (completed, failed, or cancelled) - * @experimental - */ -export declare function isTerminal(status: Task['status']): boolean; -//# sourceMappingURL=interfaces.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map deleted file mode 100644 index afd1d70..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,IAAI,EACJ,SAAS,EACT,MAAM,EACN,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,OAAO,EACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM5F;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,aAAa,EAAE,kBAAkB,CAAC;IACzG,SAAS,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB,CAAC,aAAa,EAAE,kBAAkB,CAAC;IACnG,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CACxB,WAAW,SAAS,MAAM,EAC1B,MAAM,SAAS,mBAAmB,CAAC,aAAa,EAAE,kBAAkB,CAAC,EACrE,IAAI,SAAS,SAAS,GAAG,iBAAiB,GAAG,SAAS,GAAG,SAAS,IAClE,IAAI,SAA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AAM,CAAA;KAAE,CAAC,CAAC;CACnG;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAE1D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js deleted file mode 100644 index 8f533bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/** - * Experimental task interfaces for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTerminal = isTerminal; -/** - * Checks if a task status represents a terminal state. - * Terminal states are those where the task has finished and will not change. - * - * @param status - The task status to check - * @returns True if the status is terminal (completed, failed, or cancelled) - * @experimental - */ -function isTerminal(status) { - return status === 'completed' || status === 'failed' || status === 'cancelled'; -} -//# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map deleted file mode 100644 index c3cd4ed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/interfaces.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AA2RH,gCAEC;AAVD;;;;;;;GAOG;AACH,SAAgB,UAAU,CAAC,MAAsB;IAC7C,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts deleted file mode 100644 index b3244f9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Experimental McpServer task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { McpServer, RegisteredTool } from '../../server/mcp.js'; -import type { ZodRawShapeCompat, AnySchema } from '../../server/zod-compat.js'; -import type { ToolAnnotations } from '../../types.js'; -import type { ToolTaskHandler, TaskToolExecution } from './interfaces.js'; -/** - * Experimental task features for McpServer. - * - * Access via `server.experimental.tasks`: - * ```typescript - * server.experimental.tasks.registerToolTask('long-running', config, handler); - * ``` - * - * @experimental - */ -export declare class ExperimentalMcpServerTasks { - private readonly _mcpServer; - constructor(_mcpServer: McpServer); - /** - * Registers a task-based tool with a config object and handler. - * - * Task-based tools support long-running operations that can be polled for status - * and results. The handler must implement `createTask`, `getTask`, and `getTaskResult` - * methods. - * - * @example - * ```typescript - * server.experimental.tasks.registerToolTask('long-computation', { - * description: 'Performs a long computation', - * inputSchema: { input: z.string() }, - * execution: { taskSupport: 'required' } - * }, { - * createTask: async (args, extra) => { - * const task = await extra.taskStore.createTask({ ttl: 300000 }); - * startBackgroundWork(task.taskId, args); - * return { task }; - * }, - * getTask: async (args, extra) => { - * return extra.taskStore.getTask(extra.taskId); - * }, - * getTaskResult: async (args, extra) => { - * return extra.taskStore.getTaskResult(extra.taskId); - * } - * }); - * ``` - * - * @param name - The tool name - * @param config - Tool configuration (description, schemas, etc.) - * @param handler - Task handler with createTask, getTask, getTaskResult methods - * @returns RegisteredTool for managing the tool's lifecycle - * - * @experimental - */ - registerToolTask(name: string, config: { - title?: string; - description?: string; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - execution?: TaskToolExecution; - _meta?: Record; - }, handler: ToolTaskHandler): RegisteredTool; - registerToolTask(name: string, config: { - title?: string; - description?: string; - inputSchema: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - execution?: TaskToolExecution; - _meta?: Record; - }, handler: ToolTaskHandler): RegisteredTool; -} -//# sourceMappingURL=mcp-server.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map deleted file mode 100644 index 84ee9e0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/mcp-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAkB,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAoB1E;;;;;;;;;GASG;AACH,qBAAa,0BAA0B;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,SAAS;IAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,gBAAgB,CAAC,UAAU,SAAS,SAAS,GAAG,iBAAiB,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,UAAU,CAAC;QAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;QAC9B,SAAS,CAAC,EAAE,iBAAiB,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GACpC,cAAc;IAEjB,gBAAgB,CAAC,SAAS,SAAS,iBAAiB,GAAG,SAAS,EAAE,UAAU,SAAS,SAAS,GAAG,iBAAiB,GAAG,SAAS,EAC1H,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,SAAS,CAAC;QACvB,YAAY,CAAC,EAAE,UAAU,CAAC;QAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;QAC9B,SAAS,CAAC,EAAE,iBAAiB,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GACpC,cAAc;CAsCpB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js deleted file mode 100644 index a2718e1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/** - * Experimental McpServer task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExperimentalMcpServerTasks = void 0; -/** - * Experimental task features for McpServer. - * - * Access via `server.experimental.tasks`: - * ```typescript - * server.experimental.tasks.registerToolTask('long-running', config, handler); - * ``` - * - * @experimental - */ -class ExperimentalMcpServerTasks { - constructor(_mcpServer) { - this._mcpServer = _mcpServer; - } - registerToolTask(name, config, handler) { - // Validate that taskSupport is not 'forbidden' for task-based tools - const execution = { taskSupport: 'required', ...config.execution }; - if (execution.taskSupport === 'forbidden') { - throw new Error(`Cannot register task-based tool '${name}' with taskSupport 'forbidden'. Use registerTool() instead.`); - } - // Access McpServer's internal _createRegisteredTool method - const mcpServerInternal = this._mcpServer; - return mcpServerInternal._createRegisteredTool(name, config.title, config.description, config.inputSchema, config.outputSchema, config.annotations, execution, config._meta, handler); - } -} -exports.ExperimentalMcpServerTasks = ExperimentalMcpServerTasks; -//# sourceMappingURL=mcp-server.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map deleted file mode 100644 index ff3e8c4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/mcp-server.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAyBH;;;;;;;;;GASG;AACH,MAAa,0BAA0B;IACnC,YAA6B,UAAqB;QAArB,eAAU,GAAV,UAAU,CAAW;IAAG,CAAC;IAgEtD,gBAAgB,CAIZ,IAAY,EACZ,MAQC,EACD,OAAmC;QAEnC,oEAAoE;QACpE,MAAM,SAAS,GAAkB,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAClF,IAAI,SAAS,CAAC,WAAW,KAAK,WAAW,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,6DAA6D,CAAC,CAAC;QAC3H,CAAC;QAED,2DAA2D;QAC3D,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAA0C,CAAC;QAC1E,OAAO,iBAAiB,CAAC,qBAAqB,CAC1C,IAAI,EACJ,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,WAAW,EAClB,SAAS,EACT,MAAM,CAAC,KAAK,EACZ,OAAwD,CAC3D,CAAC;IACN,CAAC;CACJ;AArGD,gEAqGC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts deleted file mode 100644 index 185e0ba..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Experimental server task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { Server } from '../../server/index.js'; -import type { RequestOptions } from '../../shared/protocol.js'; -import type { ResponseMessage } from '../../shared/responseMessage.js'; -import type { AnySchema, SchemaOutput } from '../../server/zod-compat.js'; -import type { ServerRequest, Notification, Request, Result, GetTaskResult, ListTasksResult, CancelTaskResult } from '../../types.js'; -/** - * Experimental task features for low-level MCP servers. - * - * Access via `server.experimental.tasks`: - * ```typescript - * const stream = server.experimental.tasks.requestStream(request, schema, options); - * ``` - * - * For high-level server usage with task-based tools, use `McpServer.experimental.tasks` instead. - * - * @experimental - */ -export declare class ExperimentalServerTasks { - private readonly _server; - constructor(_server: Server); - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request: ServerRequest | RequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - getTask(taskId: string, options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - getTaskResult(taskId: string, resultSchema?: T, options?: RequestOptions): Promise>; - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - listTasks(cursor?: string, options?: RequestOptions): Promise; - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - cancelTask(taskId: string, options?: RequestOptions): Promise; -} -//# sourceMappingURL=server.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map deleted file mode 100644 index a168185..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAErI;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB,CAChC,QAAQ,SAAS,OAAO,GAAG,OAAO,EAClC,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,OAAO,SAAS,MAAM,GAAG,MAAM;IAEnB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC;IAE9E;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,CAAC,SAAS,SAAS,EAC7B,OAAO,EAAE,aAAa,GAAG,QAAQ,EACjC,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,cAAc,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAY/D;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAK/E;;;;;;;;;OASG;IACG,aAAa,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAY9H;;;;;;;;OAQG;IACG,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAQpF;;;;;;;OAOG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAOxF"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js deleted file mode 100644 index 200d4b9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -/** - * Experimental server task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExperimentalServerTasks = void 0; -/** - * Experimental task features for low-level MCP servers. - * - * Access via `server.experimental.tasks`: - * ```typescript - * const stream = server.experimental.tasks.requestStream(request, schema, options); - * ``` - * - * For high-level server usage with task-based tools, use `McpServer.experimental.tasks` instead. - * - * @experimental - */ -class ExperimentalServerTasks { - constructor(_server) { - this._server = _server; - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request, resultSchema, options) { - return this._server.requestStream(request, resultSchema, options); - } - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - async getTask(taskId, options) { - return this._server.getTask({ taskId }, options); - } - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - async getTaskResult(taskId, resultSchema, options) { - return this._server.getTaskResult({ taskId }, resultSchema, options); - } - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - async listTasks(cursor, options) { - return this._server.listTasks(cursor ? { cursor } : undefined, options); - } - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - async cancelTask(taskId, options) { - return this._server.cancelTask({ taskId }, options); - } -} -exports.ExperimentalServerTasks = ExperimentalServerTasks; -//# sourceMappingURL=server.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map deleted file mode 100644 index 905631d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/server.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAQH;;;;;;;;;;;GAWG;AACH,MAAa,uBAAuB;IAKhC,YAA6B,OAAiD;QAAjD,YAAO,GAAP,OAAO,CAA0C;IAAG,CAAC;IAElF;;;;;;;;;;;;;OAaG;IACH,aAAa,CACT,OAAiC,EACjC,YAAe,EACf,OAAwB;QAUxB,OAAQ,IAAI,CAAC,OAA8C,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAwB;QAElD,OAAQ,IAAI,CAAC,OAAwC,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CAAsB,MAAc,EAAE,YAAgB,EAAE,OAAwB;QAC/F,OACI,IAAI,CAAC,OAOR,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CAAC,MAAe,EAAE,OAAwB;QACrD,OACI,IAAI,CAAC,OAGR,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,OAAwB;QACrD,OACI,IAAI,CAAC,OAGR,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACJ;AAzGD,0DAyGC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts deleted file mode 100644 index d30795e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * In-memory implementations of TaskStore and TaskMessageQueue. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import { Task, RequestId, Result, Request } from '../../../types.js'; -import { TaskStore, TaskMessageQueue, QueuedMessage, CreateTaskOptions } from '../interfaces.js'; -/** - * A simple in-memory implementation of TaskStore for demonstration purposes. - * - * This implementation stores all tasks in memory and provides automatic cleanup - * based on the ttl duration specified in the task creation parameters. - * - * Note: This is not suitable for production use as all data is lost on restart. - * For production, consider implementing TaskStore with a database or distributed cache. - * - * @experimental - */ -export declare class InMemoryTaskStore implements TaskStore { - private tasks; - private cleanupTimers; - /** - * Generates a unique task ID. - * Uses 16 bytes of random data encoded as hex (32 characters). - */ - private generateTaskId; - createTask(taskParams: CreateTaskOptions, requestId: RequestId, request: Request, _sessionId?: string): Promise; - getTask(taskId: string, _sessionId?: string): Promise; - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result, _sessionId?: string): Promise; - getTaskResult(taskId: string, _sessionId?: string): Promise; - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string, _sessionId?: string): Promise; - listTasks(cursor?: string, _sessionId?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; - /** - * Cleanup all timers (useful for testing or graceful shutdown) - */ - cleanup(): void; - /** - * Get all tasks (useful for debugging) - */ - getAllTasks(): Task[]; -} -/** - * A simple in-memory implementation of TaskMessageQueue for demonstration purposes. - * - * This implementation stores messages in memory, organized by task ID and optional session ID. - * Messages are stored in FIFO queues per task. - * - * Note: This is not suitable for production use in distributed systems. - * For production, consider implementing TaskMessageQueue with Redis or other distributed queues. - * - * @experimental - */ -export declare class InMemoryTaskMessageQueue implements TaskMessageQueue { - private queues; - /** - * Generates a queue key from taskId. - * SessionId is intentionally ignored because taskIds are globally unique - * and tasks need to be accessible across HTTP requests/sessions. - */ - private getQueueKey; - /** - * Gets or creates a queue for the given task and session. - */ - private getQueue; - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - enqueue(taskId: string, message: QueuedMessage, sessionId?: string, maxSize?: number): Promise; - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - dequeue(taskId: string, sessionId?: string): Promise; - /** - * Removes and returns all messages from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - dequeueAll(taskId: string, sessionId?: string): Promise; -} -//# sourceMappingURL=in-memory.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map deleted file mode 100644 index 1825e87..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory.d.ts","sourceRoot":"","sources":["../../../../../src/experimental/tasks/stores/in-memory.ts"],"names":[],"m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;;OAEG;IACH,OAAO,IAAI,IAAI;IAQf;;OAEG;IACH,WAAW,IAAI,IAAI,EAAE;CAGxB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,wBAAyB,YAAW,gBAAgB;IAC7D,OAAO,CAAC,MAAM,CAAsC;IAEpD;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAUhB;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW1G;;;;;OAKG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;IAKrF;;;;;OAKG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAMjF"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js deleted file mode 100644 index fe1b1e7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +++ /dev/null @@ -1,251 +0,0 @@ -"use strict"; -/** - * In-memory implementations of TaskStore and TaskMessageQueue. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InMemoryTaskMessageQueue = exports.InMemoryTaskStore = void 0; -const interfaces_js_1 = require("../interfaces.js"); -const node_crypto_1 = require("node:crypto"); -/** - * A simple in-memory implementation of TaskStore for demonstration purposes. - * - * This implementation stores all tasks in memory and provides automatic cleanup - * based on the ttl duration specified in the task creation parameters. - * - * Note: This is not suitable for production use as all data is lost on restart. - * For production, consider implementing TaskStore with a database or distributed cache. - * - * @experimental - */ -class InMemoryTaskStore { - constructor() { - this.tasks = new Map(); - this.cleanupTimers = new Map(); - } - /** - * Generates a unique task ID. - * Uses 16 bytes of random data encoded as hex (32 characters). - */ - generateTaskId() { - return (0, node_crypto_1.randomBytes)(16).toString('hex'); - } - async createTask(taskParams, requestId, request, _sessionId) { - // Generate a unique task ID - const taskId = this.generateTaskId(); - // Ensure uniqueness - if (this.tasks.has(taskId)) { - throw new Error(`Task with ID ${taskId} already exists`); - } - const actualTtl = taskParams.ttl ?? null; - // Create task with generated ID and timestamps - const createdAt = new Date().toISOString(); - const task = { - taskId, - status: 'working', - ttl: actualTtl, - createdAt, - lastUpdatedAt: createdAt, - pollInterval: taskParams.pollInterval ?? 1000 - }; - this.tasks.set(taskId, { - task, - request, - requestId - }); - // Schedule cleanup if ttl is specified - // Cleanup occurs regardless of task status - if (actualTtl) { - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, actualTtl); - this.cleanupTimers.set(taskId, timer); - } - return task; - } - async getTask(taskId, _sessionId) { - const stored = this.tasks.get(taskId); - return stored ? { ...stored.task } : null; - } - async storeTaskResult(taskId, status, result, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - // Don't allow storing results for tasks already in terminal state - if ((0, interfaces_js_1.isTerminal)(stored.task.status)) { - throw new Error(`Cannot store result for task ${taskId} in terminal status '${stored.task.status}'. Task results can only be stored once.`); - } - stored.result = result; - stored.task.status = status; - stored.task.lastUpdatedAt = new Date().toISOString(); - // Reset cleanup timer to start from now (if ttl is set) - if (stored.task.ttl) { - const existingTimer = this.cleanupTimers.get(taskId); - if (existingTimer) { - clearTimeout(existingTimer); - } - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, stored.task.ttl); - this.cleanupTimers.set(taskId, timer); - } - } - async getTaskResult(taskId, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - if (!stored.result) { - throw new Error(`Task ${taskId} has no result stored`); - } - return stored.result; - } - async updateTaskStatus(taskId, status, statusMessage, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - // Don't allow transitions from terminal states - if ((0, interfaces_js_1.isTerminal)(stored.task.status)) { - throw new Error(`Cannot update task ${taskId} from terminal status '${stored.task.status}' to '${status}'. Terminal states (completed, failed, cancelled) cannot transition to other states.`); - } - stored.task.status = status; - if (statusMessage) { - stored.task.statusMessage = statusMessage; - } - stored.task.lastUpdatedAt = new Date().toISOString(); - // If task is in a terminal state and has ttl, start cleanup timer - if ((0, interfaces_js_1.isTerminal)(status) && stored.task.ttl) { - const existingTimer = this.cleanupTimers.get(taskId); - if (existingTimer) { - clearTimeout(existingTimer); - } - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, stored.task.ttl); - this.cleanupTimers.set(taskId, timer); - } - } - async listTasks(cursor, _sessionId) { - const PAGE_SIZE = 10; - const allTaskIds = Array.from(this.tasks.keys()); - let startIndex = 0; - if (cursor) { - const cursorIndex = allTaskIds.indexOf(cursor); - if (cursorIndex >= 0) { - startIndex = cursorIndex + 1; - } - else { - // Invalid cursor - throw error - throw new Error(`Invalid cursor: ${cursor}`); - } - } - const pageTaskIds = allTaskIds.slice(startIndex, startIndex + PAGE_SIZE); - const tasks = pageTaskIds.map(taskId => { - const stored = this.tasks.get(taskId); - return { ...stored.task }; - }); - const nextCursor = startIndex + PAGE_SIZE < allTaskIds.length ? pageTaskIds[pageTaskIds.length - 1] : undefined; - return { tasks, nextCursor }; - } - /** - * Cleanup all timers (useful for testing or graceful shutdown) - */ - cleanup() { - for (const timer of this.cleanupTimers.values()) { - clearTimeout(timer); - } - this.cleanupTimers.clear(); - this.tasks.clear(); - } - /** - * Get all tasks (useful for debugging) - */ - getAllTasks() { - return Array.from(this.tasks.values()).map(stored => ({ ...stored.task })); - } -} -exports.InMemoryTaskStore = InMemoryTaskStore; -/** - * A simple in-memory implementation of TaskMessageQueue for demonstration purposes. - * - * This implementation stores messages in memory, organized by task ID and optional session ID. - * Messages are stored in FIFO queues per task. - * - * Note: This is not suitable for production use in distributed systems. - * For production, consider implementing TaskMessageQueue with Redis or other distributed queues. - * - * @experimental - */ -class InMemoryTaskMessageQueue { - constructor() { - this.queues = new Map(); - } - /** - * Generates a queue key from taskId. - * SessionId is intentionally ignored because taskIds are globally unique - * and tasks need to be accessible across HTTP requests/sessions. - */ - getQueueKey(taskId, _sessionId) { - return taskId; - } - /** - * Gets or creates a queue for the given task and session. - */ - getQueue(taskId, sessionId) { - const key = this.getQueueKey(taskId, sessionId); - let queue = this.queues.get(key); - if (!queue) { - queue = []; - this.queues.set(key, queue); - } - return queue; - } - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - async enqueue(taskId, message, sessionId, maxSize) { - const queue = this.getQueue(taskId, sessionId); - // Atomically check size and enqueue - if (maxSize !== undefined && queue.length >= maxSize) { - throw new Error(`Task message queue overflow: queue size (${queue.length}) exceeds maximum (${maxSize})`); - } - queue.push(message); - } - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - async dequeue(taskId, sessionId) { - const queue = this.getQueue(taskId, sessionId); - return queue.shift(); - } - /** - * Removes and returns all messages from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - async dequeueAll(taskId, sessionId) { - const key = this.getQueueKey(taskId, sessionId); - const queue = this.queues.get(key) ?? []; - this.queues.delete(key); - return queue; - } -} -exports.InMemoryTaskMessageQueue = InMemoryTaskMessageQueue; -//# sourceMappingURL=in-memory.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map deleted file mode 100644 index a4d21a9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory.js","sourceRoot":"","sources":["../../../../../src/experimental/tasks/stores/in-memory.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,oDAA6G;AAC7G,6CAA0C;AAS1C;;;;;;;;;;GAUG;AACH,MAAa,iBAAiB;IAA9B;QACY,UAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;QACtC,kBAAa,GAAG,IAAI,GAAG,EAAyC,CAAC;IAsL7E,CAAC;IApLG;;;OAGG;IACK,cAAc;QAClB,OAAO,IAAA,yBAAW,EAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,UAA6B,EAAE,SAAoB,EAAE,OAAgB,EAAE,UAAmB;QACvG,4BAA4B;QAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAErC,oBAAoB;QACpB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,gBAAgB,MAAM,iBAAiB,CAAC,CAAC;QAC7D,CAAC;QAED,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,IAAI,IAAI,CAAC;QAEzC,+CAA+C;QAC/C,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;Q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CAAoC;QACpC,IAAI,OAAO,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,4CAA4C,KAAK,CAAC,MAAM,sBAAsB,OAAO,GAAG,CAAC,CAAC;QAC9G,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,SAAkB;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,SAAkB;QAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AApED,4DAoEC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts deleted file mode 100644 index 6022e19..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Re-exports of task-related types from the MCP protocol spec. - * WARNING: These APIs are experimental and may change without notice. - * - * These types are defined in types.ts (matching the protocol spec) and - * re-exported here for convenience when working with experimental task features. - */ -export { TaskCreationParamsSchema, RelatedTaskMetadataSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema } from '../../types.js'; -export type { Task, TaskCreationParams, RelatedTaskMetadata, CreateTaskResult, TaskStatusNotificationParams, TaskStatusNotification, GetTaskRequest, GetTaskResult, GetTaskPayloadRequest, ListTasksRequest, ListTasksResult, CancelTaskRequest, CancelTaskResult } from '../../types.js'; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map deleted file mode 100644 index f7b9ead..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACR,IAAI,EACJ,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js deleted file mode 100644 index b051c84..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/** - * Re-exports of task-related types from the MCP protocol spec. - * WARNING: These APIs are experimental and may change without notice. - * - * These types are defined in types.ts (matching the protocol spec) and - * re-exported here for convenience when working with experimental task features. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServerTasksCapabilitySchema = exports.ClientTasksCapabilitySchema = exports.CancelTaskResultSchema = exports.CancelTaskRequestSchema = exports.ListTasksResultSchema = exports.ListTasksRequestSchema = exports.GetTaskPayloadRequestSchema = exports.GetTaskResultSchema = exports.GetTaskRequestSchema = exports.TaskStatusNotificationSchema = exports.TaskStatusNotificationParamsSchema = exports.CreateTaskResultSchema = exports.TaskSchema = exports.RelatedTaskMetadataSchema = exports.TaskCreationParamsSchema = void 0; -// Task schemas (Zod) -var types_js_1 = require("../../types.js"); -Object.defineProperty(exports, "TaskCreationParamsSchema", { enumerable: true, get: function () { return types_js_1.TaskCreationParamsSchema; } }); -Object.defineProperty(exports, "RelatedTaskMetadataSchema", { enumerable: true, get: function () { return types_js_1.RelatedTaskMetadataSchema; } }); -Object.defineProperty(exports, "TaskSchema", { enumerable: true, get: function () { return types_js_1.TaskSchema; } }); -Object.defineProperty(exports, "CreateTaskResultSchema", { enumerable: true, get: function () { return types_js_1.CreateTaskResultSchema; } }); -Object.defineProperty(exports, "TaskStatusNotificationParamsSchema", { enumerable: true, get: function () { return types_js_1.TaskStatusNotificationParamsSchema; } }); -Object.defineProperty(exports, "TaskStatusNotificationSchema", { enumerable: true, get: function () { return types_js_1.TaskStatusNotificationSchema; } }); -Object.defineProperty(exports, "GetTaskRequestSchema", { enumerable: true, get: function () { return types_js_1.GetTaskRequestSchema; } }); -Object.defineProperty(exports, "GetTaskResultSchema", { enumerable: true, get: function () { return types_js_1.GetTaskResultSchema; } }); -Object.defineProperty(exports, "GetTaskPayloadRequestSchema", { enumerable: true, get: function () { return types_js_1.GetTaskPayloadRequestSchema; } }); -Object.defineProperty(exports, "ListTasksRequestSchema", { enumerable: true, get: function () { return types_js_1.ListTasksRequestSchema; } }); -Object.defineProperty(exports, "ListTasksResultSchema", { enumerable: true, get: function () { return types_js_1.ListTasksResultSchema; } }); -Object.defineProperty(exports, "CancelTaskRequestSchema", { enumerable: true, get: function () { return types_js_1.CancelTaskRequestSchema; } }); -Object.defineProperty(exports, "CancelTaskResultSchema", { enumerable: true, get: function () { return types_js_1.CancelTaskResultSchema; } }); -Object.defineProperty(exports, "ClientTasksCapabilitySchema", { enumerable: true, get: function () { return types_js_1.ClientTasksCapabilitySchema; } }); -Object.defineProperty(exports, "ServerTasksCapabilitySchema", { enumerable: true, get: function () { return types_js_1.ServerTasksCapabilitySchema; } }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map deleted file mode 100644 index adfc3ab..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,qBAAqB;AACrB,2CAgBwB;AAfpB,oHAAA,wBAAwB,OAAA;AACxB,qHAAA,yBAAyB,OAAA;AACzB,sGAAA,UAAU,OAAA;AACV,kHAAA,sBAAsB,OAAA;AACtB,8HAAA,kCAAkC,OAAA;AAClC,wHAAA,4BAA4B,OAAA;AAC5B,gHAAA,oBAAoB,OAAA;AACpB,+GAAA,mBAAmB,OAAA;AACnB,uHAAA,2BAA2B,OAAA;AAC3B,kHAAA,sBAAsB,OAAA;AACtB,iHAAA,qBAAqB,OAAA;AACrB,mHAAA,uBAAuB,OAAA;AACvB,kHAAA,sBAAsB,OAAA;AACtB,uHAAA,2BAA2B,OAAA;AAC3B,uHAAA,2BAA2B,OAAA"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts deleted file mode 100644 index 32a931a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Transport } from './shared/transport.js'; -import { JSONRPCMessage, RequestId } from './types.js'; -import { AuthInfo } from './server/auth/types.js'; -/** - * In-memory transport for creating clients and servers that talk to each other within the same process. - */ -export declare class InMemoryTransport implements Transport { - private _otherTransport?; - private _messageQueue; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: { - authInfo?: AuthInfo; - }) => void; - sessionId?: string; - /** - * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. - */ - static createLinkedPair(): [InMemoryTransport, InMemoryTransport]; - start(): Promise; - close(): Promise; - /** - * Sends a message with optional auth info. - * This is useful for testing authentication scenarios. - */ - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - authInfo?: AuthInfo; - }): Promise; -} -//# sourceMappingURL=inMemory.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map deleted file mode 100644 index 46bc74b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemory.d.ts","sourceRoot":"","sources":["../../src/inMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAOlD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IAC/C,OAAO,CAAC,eAAe,CAAC,CAAoB;IAC5C,OAAO,CAAC,aAAa,CAAuB;IAE5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAQ3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B;;;OAGG;IACG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAWtH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js deleted file mode 100644 index 9c6cb0e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InMemoryTransport = void 0; -/** - * In-memory transport for creating clients and servers that talk to each other within the same process. - */ -class InMemoryTransport { - constructor() { - this._messageQueue = []; - } - /** - * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. - */ - static createLinkedPair() { - const clientTransport = new InMemoryTransport(); - const serverTransport = new InMemoryTransport(); - clientTransport._otherTransport = serverTransport; - serverTransport._otherTransport = clientTransport; - return [clientTransport, serverTransport]; - } - async start() { - // Process any messages that were queued before start was called - while (this._messageQueue.length > 0) { - const queuedMessage = this._messageQueue.shift(); - this.onmessage?.(queuedMessage.message, queuedMessage.extra); - } - } - async close() { - const other = this._otherTransport; - this._otherTransport = undefined; - await other?.close(); - this.onclose?.(); - } - /** - * Sends a message with optional auth info. - * This is useful for testing authentication scenarios. - */ - async send(message, options) { - if (!this._otherTransport) { - throw new Error('Not connected'); - } - if (this._otherTransport.onmessage) { - this._otherTransport.onmessage(message, { authInfo: options?.authInfo }); - } - else { - this._otherTransport._messageQueue.push({ message, extra: { authInfo: options?.authInfo } }); - } - } -} -exports.InMemoryTransport = InMemoryTransport; -//# sourceMappingURL=inMemory.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map deleted file mode 100644 index a45f3a8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemory.js","sourceRoot":"","sources":["../../src/inMemory.ts"],"names":[],"mappings":";;;AASA;;GAEG;AACH,MAAa,iBAAiB;IAA9B;QAEY,kBAAa,GAAoB,EAAE,CAAC;IAgDhD,CAAC;IAzCG;;OAEG;IACH,MAAM,CAAC,gBAAgB;QACnB,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,KAAK;QACP,gEAAgE;QAChE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAG,CAAC;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,MAAM,KAAK,EAAE,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,OAAuB,EAAE,OAA+D;QAC/F,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;YACjC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QACjG,CAAC;IACL,CAAC;CACJ;AAlDD,8CAkDC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json deleted file mode 100644 index b731bd6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type": "commonjs"} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts deleted file mode 100644 index be6899a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { OAuthClientInformationFull } from '../../shared/auth.js'; -/** - * Stores information about registered OAuth clients for this server. - */ -export interface OAuthRegisteredClientsStore { - /** - * Returns information about a registered client, based on its ID. - */ - getClient(clientId: string): OAuthClientInformationFull | undefined | Promise; - /** - * Registers a new client with the server. The client ID and secret will be automatically generated by the library. A modified version of the client information can be returned to reflect specific values enforced by the server. - * - * NOTE: Implementations should NOT delete expired client secrets in-place. Auth middleware provided by this library will automatically check the `client_secret_expires_at` field and reject requests with expired secrets. Any custom logic for authenticating clients should check the `client_secret_expires_at` field as well. - * - * If unimplemented, dynamic client registration is unsupported. - */ - registerClient?(client: Omit): OAuthClientInformationFull | Promise; -} -//# sourceMappingURL=clients.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map deleted file mode 100644 index ab3851d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/clients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,0BAA0B,GAAG,SAAS,GAAG,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IAEtH;;;;;;OAMG;IACH,cAAc,CAAC,CACX,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,WAAW,GAAG,qBAAqB,CAAC,GAC9E,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACvE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js deleted file mode 100644 index 866b88b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=clients.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map deleted file mode 100644 index 0210104..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/server/auth/clients.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts deleted file mode 100644 index 7fddf95..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import { OAuthErrorResponse } from '../../shared/auth.js'; -/** - * Base class for all OAuth errors - */ -export declare class OAuthError extends Error { - readonly errorUri?: string | undefined; - static errorCode: string; - constructor(message: string, errorUri?: string | undefined); - /** - * Converts the error to a standard OAuth error response object - */ - toResponseObject(): OAuthErrorResponse; - get errorCode(): string; -} -/** - * Invalid request error - The request is missing a required parameter, - * includes an invalid parameter value, includes a parameter more than once, - * or is otherwise malformed. - */ -export declare class InvalidRequestError extends OAuthError { - static errorCode: string; -} -/** - * Invalid client error - Client authentication failed (e.g., unknown client, no client - * authentication included, or unsupported authentication method). - */ -export declare class InvalidClientError extends OAuthError { - static errorCode: string; -} -/** - * Invalid grant error - The provided authorization grant or refresh token is - * invalid, expired, revoked, does not match the redirection URI used in the - * authorization request, or was issued to another client. - */ -export declare class InvalidGrantError extends OAuthError { - static errorCode: string; -} -/** - * Unauthorized client error - The authenticated client is not authorized to use - * this authorization grant type. - */ -export declare class UnauthorizedClientError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported grant type error - The authorization grant type is not supported - * by the authorization server. - */ -export declare class UnsupportedGrantTypeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid scope error - The requested scope is invalid, unknown, malformed, or - * exceeds the scope granted by the resource owner. - */ -export declare class InvalidScopeError extends OAuthError { - static errorCode: string; -} -/** - * Access denied error - The resource owner or authorization server denied the request. - */ -export declare class AccessDeniedError extends OAuthError { - static errorCode: string; -} -/** - * Server error - The authorization server encountered an unexpected condition - * that prevented it from fulfilling the request. - */ -export declare class ServerError extends OAuthError { - static errorCode: string; -} -/** - * Temporarily unavailable error - The authorization server is currently unable to - * handle the request due to a temporary overloading or maintenance of the server. - */ -export declare class TemporarilyUnavailableError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported response type error - The authorization server does not support - * obtaining an authorization code using this method. - */ -export declare class UnsupportedResponseTypeError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported token type error - The authorization server does not support - * the requested token type. - */ -export declare class UnsupportedTokenTypeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid token error - The access token provided is expired, revoked, malformed, - * or invalid for other reasons. - */ -export declare class InvalidTokenError extends OAuthError { - static errorCode: string; -} -/** - * Method not allowed error - The HTTP method used is not allowed for this endpoint. - * (Custom, non-standard error) - */ -export declare class MethodNotAllowedError extends OAuthError { - static errorCode: string; -} -/** - * Too many requests error - Rate limit exceeded. - * (Custom, non-standard error based on RFC 6585) - */ -export declare class TooManyRequestsError extends OAuthError { - static errorCode: string; -} -/** - * Invalid client metadata error - The client metadata is invalid. - * (Custom error for dynamic client registration - RFC 7591) - */ -export declare class InvalidClientMetadataError extends OAuthError { - static errorCode: string; -} -/** - * Insufficient scope error - The request requires higher privileges than provided by the access token. - */ -export declare class InsufficientScopeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid target error - The requested resource is invalid, missing, unknown, or malformed. - * (Custom error for resource indicators - RFC 8707) - */ -export declare class InvalidTargetError extends OAuthError { - static errorCode: string; -} -/** - * A utility class for defining one-off error codes - */ -export declare class CustomOAuthError extends OAuthError { - private readonly customErrorCode; - constructor(customErrorCode: string, message: string, errorUri?: string); - get errorCode(): string; -} -/** - * A full list of all OAuthErrors, enabling parsing from error responses - */ -export declare const OAUTH_ERRORS: { - readonly [x: string]: typeof InvalidRequestError; -}; -//# sourceMappingURL=errors.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map deleted file mode 100644 index 5c0e992..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;aAKb,QAAQ,CAAC,EAAE,MAAM;IAJrC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC;gBAGrB,OAAO,EAAE,MAAM,EACC,QAAQ,CAAC,EAAE,MAAM,YAAA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,UAAU;IAChD,MAAM,CAAC,SAAS,SAAuB;CAC1C;AAED;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACtD,MAAM,CAAC,SAAS,SAA6B;CAChD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;IAClD,MAAM,CAAC,SAAS,SAAwB;CAC3C;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAC9C,MAAM,CAAC,SAAS,SAAoB;CACvC;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAExC,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,MAAM,EACxC,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM;IAKrB,IAAI,SAAS,IAAI,MAAM,CAEtB;CACJ;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;CAkBf,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js deleted file mode 100644 index e67478c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +++ /dev/null @@ -1,202 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OAUTH_ERRORS = exports.CustomOAuthError = exports.InvalidTargetError = exports.InsufficientScopeError = exports.InvalidClientMetadataError = exports.TooManyRequestsError = exports.MethodNotAllowedError = exports.InvalidTokenError = exports.UnsupportedTokenTypeError = exports.UnsupportedResponseTypeError = exports.TemporarilyUnavailableError = exports.ServerError = exports.AccessDeniedError = exports.InvalidScopeError = exports.UnsupportedGrantTypeError = exports.UnauthorizedClientError = exports.InvalidGrantError = exports.InvalidClientError = exports.InvalidRequestError = exports.OAuthError = void 0; -/** - * Base class for all OAuth errors - */ -class OAuthError extends Error { - constructor(message, errorUri) { - super(message); - this.errorUri = errorUri; - this.name = this.constructor.name; - } - /** - * Converts the error to a standard OAuth error response object - */ - toResponseObject() { - const response = { - error: this.errorCode, - error_description: this.message - }; - if (this.errorUri) { - response.error_uri = this.errorUri; - } - return response; - } - get errorCode() { - return this.constructor.errorCode; - } -} -exports.OAuthError = OAuthError; -/** - * Invalid request error - The request is missing a required parameter, - * includes an invalid parameter value, includes a parameter more than once, - * or is otherwise malformed. - */ -class InvalidRequestError extends OAuthError { -} -exports.InvalidRequestError = InvalidRequestError; -InvalidRequestError.errorCode = 'invalid_request'; -/** - * Invalid client error - Client authentication failed (e.g., unknown client, no client - * authentication included, or unsupported authentication method). - */ -class InvalidClientError extends OAuthError { -} -exports.InvalidClientError = InvalidClientError; -InvalidClientError.errorCode = 'invalid_client'; -/** - * Invalid grant error - The provided authorization grant or refresh token is - * invalid, expired, revoked, does not match the redirection URI used in the - * authorization request, or was issued to another client. - */ -class InvalidGrantError extends OAuthError { -} -exports.InvalidGrantError = InvalidGrantError; -InvalidGrantError.errorCode = 'invalid_grant'; -/** - * Unauthorized client error - The authenticated client is not authorized to use - * this authorization grant type. - */ -class UnauthorizedClientError extends OAuthError { -} -exports.UnauthorizedClientError = UnauthorizedClientError; -UnauthorizedClientError.errorCode = 'unauthorized_client'; -/** - * Unsupported grant type error - The authorization grant type is not supported - * by the authorization server. - */ -class UnsupportedGrantTypeError extends OAuthError { -} -exports.UnsupportedGrantTypeError = UnsupportedGrantTypeError; -UnsupportedGrantTypeError.errorCode = 'unsupported_grant_type'; -/** - * Invalid scope error - The requested scope is invalid, unknown, malformed, or - * exceeds the scope granted by the resource owner. - */ -class InvalidScopeError extends OAuthError { -} -exports.InvalidScopeError = InvalidScopeError; -InvalidScopeError.errorCode = 'invalid_scope'; -/** - * Access denied error - The resource owner or authorization server denied the request. - */ -class AccessDeniedError extends OAuthError { -} -exports.AccessDeniedError = AccessDeniedError; -AccessDeniedError.errorCode = 'access_denied'; -/** - * Server error - The authorization server encountered an unexpected condition - * that prevented it from fulfilling the request. - */ -class ServerError extends OAuthError { -} -exports.ServerError = ServerError; -ServerError.errorCode = 'server_error'; -/** - * Temporarily unavailable error - The authorization server is currently unable to - * handle the request due to a temporary overloading or maintenance of the server. - */ -class TemporarilyUnavailableError extends OAuthError { -} -exports.TemporarilyUnavailableError = TemporarilyUnavailableError; -TemporarilyUnavailableError.errorCode = 'temporarily_unavailable'; -/** - * Unsupported response type error - The authorization server does not support - * obtaining an authorization code using this method. - */ -class UnsupportedResponseTypeError extends OAuthError { -} -exports.UnsupportedResponseTypeError = UnsupportedResponseTypeError; -UnsupportedResponseTypeError.errorCode = 'unsupported_response_type'; -/** - * Unsupported token type error - The authorization server does not support - * the requested token type. - */ -class UnsupportedTokenTypeError extends OAuthError { -} -exports.UnsupportedTokenTypeError = UnsupportedTokenTypeError; -UnsupportedTokenTypeError.errorCode = 'unsupported_token_type'; -/** - * Invalid token error - The access token provided is expired, revoked, malformed, - * or invalid for other reasons. - */ -class InvalidTokenError extends OAuthError { -} -exports.InvalidTokenError = InvalidTokenError; -InvalidTokenError.errorCode = 'invalid_token'; -/** - * Method not allowed error - The HTTP method used is not allowed for this endpoint. - * (Custom, non-standard error) - */ -class MethodNotAllowedError extends OAuthError { -} -exports.MethodNotAllowedError = MethodNotAllowedError; -MethodNotAllowedError.errorCode = 'method_not_allowed'; -/** - * Too many requests error - Rate limit exceeded. - * (Custom, non-standard error based on RFC 6585) - */ -class TooManyRequestsError extends OAuthError { -} -exports.TooManyRequestsError = TooManyRequestsError; -TooManyRequestsError.errorCode = 'too_many_requests'; -/** - * Invalid client metadata error - The client metadata is invalid. - * (Custom error for dynamic client registration - RFC 7591) - */ -class InvalidClientMetadataError extends OAuthError { -} -exports.InvalidClientMetadataError = InvalidClientMetadataError; -InvalidClientMetadataError.errorCode = 'invalid_client_metadata'; -/** - * Insufficient scope error - The request requires higher privileges than provided by the access token. - */ -class InsufficientScopeError extends OAuthError { -} -exports.InsufficientScopeError = InsufficientScopeError; -InsufficientScopeError.errorCode = 'insufficient_scope'; -/** - * Invalid target error - The requested resource is invalid, missing, unknown, or malformed. - * (Custom error for resource indicators - RFC 8707) - */ -class InvalidTargetError extends OAuthError { -} -exports.InvalidTargetError = InvalidTargetError; -InvalidTargetError.errorCode = 'invalid_target'; -/** - * A utility class for defining one-off error codes - */ -class CustomOAuthError extends OAuthError { - constructor(customErrorCode, message, errorUri) { - super(message, errorUri); - this.customErrorCode = customErrorCode; - } - get errorCode() { - return this.customErrorCode; - } -} -exports.CustomOAuthError = CustomOAuthError; -/** - * A full list of all OAuthErrors, enabling parsing from error responses - */ -exports.OAUTH_ERRORS = { - [InvalidRequestError.errorCode]: InvalidRequestError, - [InvalidClientError.errorCode]: InvalidClientError, - [InvalidGrantError.errorCode]: InvalidGrantError, - [UnauthorizedClientError.errorCode]: UnauthorizedClientError, - [UnsupportedGrantTypeError.errorCode]: UnsupportedGrantTypeError, - [InvalidScopeError.errorCode]: InvalidScopeError, - [AccessDeniedError.errorCode]: AccessDeniedError, - [ServerError.errorCode]: ServerError, - [TemporarilyUnavailableError.errorCode]: TemporarilyUnavailableError, - [UnsupportedResponseTypeError.errorCode]: UnsupportedResponseTypeError, - [UnsupportedTokenTypeError.errorCode]: UnsupportedTokenTypeError, - [InvalidTokenError.errorCode]: InvalidTokenError, - [MethodNotAllowedError.errorCode]: MethodNotAllowedError, - [TooManyRequestsError.errorCode]: TooManyRequestsError, - [InvalidClientMetadataError.errorCode]: InvalidClientMetadataError, - [InsufficientScopeError.errorCode]: InsufficientScopeError, - [InvalidTargetError.errorCode]: InvalidTargetError -}; -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map deleted file mode 100644 index f802594..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","s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C;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;CACJ;AAZD,4CAYC;AAED;;GAEG;AACU,QAAA,YAAY,GAAG;IACxB,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,mBAAmB;IACpD,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,kBAAkB;IAClD,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAChD,CAAC,uBAAuB,CAAC,SAAS,CAAC,EAAE,uBAAuB;IAC5D,CAAC,yBAAyB,CAAC,SAAS,CAAC,EAAE,yBAAyB;IAChE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAChD,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAChD,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,WAAW;IACpC,CAAC,2BAA2B,CAAC,SAAS,CAAC,EAAE,2BAA2B;IACpE,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE,4BAA4B;IACtE,CAAC,yBAAyB,CAAC,SAAS,CAAC,EAAE,yBAAyB;IAChE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAChD,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,qBAAqB;IACxD,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,oBAAoB;IACtD,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,0BAA0B;IAClE,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE,sBAAsB;IAC1D,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,kBAAkB;CAC5C,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts deleted file mode 100644 index 38e9829..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthServerProvider } from '../provider.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type AuthorizationHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the authorization endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function authorizationHandler({ provider, rateLimit: rateLimitConfig }: AuthorizationHandlerOptions): RequestHandler; -//# sourceMappingURL=authorize.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map deleted file mode 100644 index b067988..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/authorize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAqBF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,2BAA2B,GAAG,cAAc,CAgH1H"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js deleted file mode 100644 index 9022082..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.authorizationHandler = authorizationHandler; -const z = __importStar(require("zod/v4")); -const express_1 = __importDefault(require("express")); -const express_rate_limit_1 = require("express-rate-limit"); -const allowedMethods_js_1 = require("../middleware/allowedMethods.js"); -const errors_js_1 = require("../errors.js"); -// Parameters that must be validated in order to issue redirects. -const ClientAuthorizationParamsSchema = z.object({ - client_id: z.string(), - redirect_uri: z - .string() - .optional() - .refine(value => value === undefined || URL.canParse(value), { message: 'redirect_uri must be a valid URL' }) -}); -// Parameters that must be validated for a successful authorization request. Failure can be reported to the redirect URI. -const RequestAuthorizationParamsSchema = z.object({ - response_type: z.literal('code'), - code_challenge: z.string(), - code_challenge_method: z.literal('S256'), - scope: z.string().optional(), - state: z.string().optional(), - resource: z.string().url().optional() -}); -function authorizationHandler({ provider, rateLimit: rateLimitConfig }) { - // Create a router to apply middleware - const router = express_1.default.Router(); - router.use((0, allowedMethods_js_1.allowedMethods)(['GET', 'POST'])); - router.use(express_1.default.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use((0, express_rate_limit_1.rateLimit)({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 100, // 100 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new errors_js_1.TooManyRequestsError('You have exceeded the rate limit for authorization requests').toResponseObject(), - ...rateLimitConfig - })); - } - router.all('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - // In the authorization flow, errors are split into two categories: - // 1. Pre-redirect errors (direct response with 400) - // 2. Post-redirect errors (redirect with error parameters) - // Phase 1: Validate client_id and redirect_uri. Any errors here must be direct responses. - let client_id, redirect_uri, client; - try { - const result = ClientAuthorizationParamsSchema.safeParse(req.method === 'POST' ? req.body : req.query); - if (!result.success) { - throw new errors_js_1.InvalidRequestError(result.error.message); - } - client_id = result.data.client_id; - redirect_uri = result.data.redirect_uri; - client = await provider.clientsStore.getClient(client_id); - if (!client) { - throw new errors_js_1.InvalidClientError('Invalid client_id'); - } - if (redirect_uri !== undefined) { - if (!client.redirect_uris.includes(redirect_uri)) { - throw new errors_js_1.InvalidRequestError('Unregistered redirect_uri'); - } - } - else if (client.redirect_uris.length === 1) { - redirect_uri = client.redirect_uris[0]; - } - else { - throw new errors_js_1.InvalidRequestError('redirect_uri must be specified when client has multiple registered URIs'); - } - } - catch (error) { - // Pre-redirect errors - return direct response - // - // These don't need to be JSON encoded, as they'll be displayed in a user - // agent, but OTOH they all represent exceptional situations (arguably, - // "programmer error"), so presenting a nice HTML page doesn't help the - // user anyway. - if (error instanceof errors_js_1.OAuthError) { - const status = error instanceof errors_js_1.ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - return; - } - // Phase 2: Validate other parameters. Any errors here should go into redirect responses. - let state; - try { - // Parse and validate authorization parameters - const parseResult = RequestAuthorizationParamsSchema.safeParse(req.method === 'POST' ? req.body : req.query); - if (!parseResult.success) { - throw new errors_js_1.InvalidRequestError(parseResult.error.message); - } - const { scope, code_challenge, resource } = parseResult.data; - state = parseResult.data.state; - // Validate scopes - let requestedScopes = []; - if (scope !== undefined) { - requestedScopes = scope.split(' '); - } - // All validation passed, proceed with authorization - await provider.authorize(client, { - state, - scopes: requestedScopes, - redirectUri: redirect_uri, - codeChallenge: code_challenge, - resource: resource ? new URL(resource) : undefined - }, res); - } - catch (error) { - // Post-redirect errors - redirect with error parameters - if (error instanceof errors_js_1.OAuthError) { - res.redirect(302, createErrorRedirect(redirect_uri, error, state)); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.redirect(302, createErrorRedirect(redirect_uri, serverError, state)); - } - } - }); - return router; -} -/** - * Helper function to create redirect URL with error parameters - */ -function createErrorRedirect(redirectUri, error, state) { - const errorUrl = new URL(redirectUri); - errorUrl.searchParams.set('error', error.errorCode); - errorUrl.searchParams.set('error_description', error.message); - if (error.errorUri) { - errorUrl.searchParams.set('error_uri', error.errorUri); - } - if (state) { - errorUrl.searchParams.set('state', state); - } - return errorUrl.href; -} -//# sourceMappingURL=authorize.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map deleted file mode 100644 index 28e8762..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authorize.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/authorize.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,oDAgHC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B,CAAC,WAAmB,EAAE,KAAiB,EAAE,KAAc;IAC/E,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACpD,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9D,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjB,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACR,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts deleted file mode 100644 index 4d03286..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthMetadata, OAuthProtectedResourceMetadata } from '../../../shared/auth.js'; -export declare function metadataHandler(metadata: OAuthMetadata | OAuthProtectedResourceMetadata): RequestHandler; -//# sourceMappingURL=metadata.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map deleted file mode 100644 index 55e3a50..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/metadata.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAIxF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,8BAA8B,GAAG,cAAc,CAaxG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js deleted file mode 100644 index 4e00bc5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.metadataHandler = metadataHandler; -const express_1 = __importDefault(require("express")); -const cors_1 = __importDefault(require("cors")); -const allowedMethods_js_1 = require("../middleware/allowedMethods.js"); -function metadataHandler(metadata) { - // Nested router so we can configure middleware and restrict HTTP method - const router = express_1.default.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use((0, cors_1.default)()); - router.use((0, allowedMethods_js_1.allowedMethods)(['GET', 'OPTIONS'])); - router.get('/', (req, res) => { - res.status(200).json(metadata); - }); - return router; -} -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map deleted file mode 100644 index 9679c9f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/metadata.ts"],"names":[],"mappings":";;;;;AAKA,0CAaC;AAlBD,sDAAkD;AAElD,gDAAwB;AACxB,uEAAiE;AAEjE,SAAgB,eAAe,CAAC,QAAwD;IACpF,wEAAwE;IACxE,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,kFAAkF;IAClF,MAAM,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC;IAEnB,MAAM,CAAC,GAAG,CAAC,IAAA,kCAAc,EAAC,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACzB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts deleted file mode 100644 index e9add28..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type ClientRegistrationHandlerOptions = { - /** - * A store used to save information about dynamically registered OAuth clients. - */ - clientsStore: OAuthRegisteredClientsStore; - /** - * The number of seconds after which to expire issued client secrets, or 0 to prevent expiration of client secrets (not recommended). - * - * If not set, defaults to 30 days. - */ - clientSecretExpirySeconds?: number; - /** - * Rate limiting configuration for the client registration endpoint. - * Set to false to disable rate limiting for this endpoint. - * Registration endpoints are particularly sensitive to abuse and should be rate limited. - */ - rateLimit?: Partial | false; - /** - * Whether to generate a client ID before calling the client registration endpoint. - * - * If not set, defaults to true. - */ - clientIdGeneration?: boolean; -}; -export declare function clientRegistrationHandler({ clientsStore, clientSecretExpirySeconds, rateLimit: rateLimitConfig, clientIdGeneration }: ClientRegistrationHandlerOptions): RequestHandler; -//# sourceMappingURL=register.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map deleted file mode 100644 index a38ebdb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/register.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIlD,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,gCAAgC,GAAG;IAC3C;;OAEG;IACH,YAAY,EAAE,2BAA2B,CAAC;IAE1C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;IAE9C;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAIF,wBAAgB,yBAAyB,CAAC,EACtC,YAAY,EACZ,yBAAgE,EAChE,SAAS,EAAE,eAAe,EAC1B,kBAAyB,EAC5B,EAAE,gCAAgC,GAAG,cAAc,CA0EnD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js deleted file mode 100644 index e40c5c9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clientRegistrationHandler = clientRegistrationHandler; -const express_1 = __importDefault(require("express")); -const auth_js_1 = require("../../../shared/auth.js"); -const node_crypto_1 = __importDefault(require("node:crypto")); -const cors_1 = __importDefault(require("cors")); -const express_rate_limit_1 = require("express-rate-limit"); -const allowedMethods_js_1 = require("../middleware/allowedMethods.js"); -const errors_js_1 = require("../errors.js"); -const DEFAULT_CLIENT_SECRET_EXPIRY_SECONDS = 30 * 24 * 60 * 60; // 30 days -function clientRegistrationHandler({ clientsStore, clientSecretExpirySeconds = DEFAULT_CLIENT_SECRET_EXPIRY_SECONDS, rateLimit: rateLimitConfig, clientIdGeneration = true }) { - if (!clientsStore.registerClient) { - throw new Error('Client registration store does not support registering clients'); - } - // Nested router so we can configure middleware and restrict HTTP method - const router = express_1.default.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use((0, cors_1.default)()); - router.use((0, allowedMethods_js_1.allowedMethods)(['POST'])); - router.use(express_1.default.json()); - // Apply rate limiting unless explicitly disabled - stricter limits for registration - if (rateLimitConfig !== false) { - router.use((0, express_rate_limit_1.rateLimit)({ - windowMs: 60 * 60 * 1000, // 1 hour - max: 20, // 20 requests per hour - stricter as registration is sensitive - standardHeaders: true, - legacyHeaders: false, - message: new errors_js_1.TooManyRequestsError('You have exceeded the rate limit for client registration requests').toResponseObject(), - ...rateLimitConfig - })); - } - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = auth_js_1.OAuthClientMetadataSchema.safeParse(req.body); - if (!parseResult.success) { - throw new errors_js_1.InvalidClientMetadataError(parseResult.error.message); - } - const clientMetadata = parseResult.data; - const isPublicClient = clientMetadata.token_endpoint_auth_method === 'none'; - // Generate client credentials - const clientSecret = isPublicClient ? undefined : node_crypto_1.default.randomBytes(32).toString('hex'); - const clientIdIssuedAt = Math.floor(Date.now() / 1000); - // Calculate client secret expiry time - const clientsDoExpire = clientSecretExpirySeconds > 0; - const secretExpiryTime = clientsDoExpire ? clientIdIssuedAt + clientSecretExpirySeconds : 0; - const clientSecretExpiresAt = isPublicClient ? undefined : secretExpiryTime; - let clientInfo = { - ...clientMetadata, - client_secret: clientSecret, - client_secret_expires_at: clientSecretExpiresAt - }; - if (clientIdGeneration) { - clientInfo.client_id = node_crypto_1.default.randomUUID(); - clientInfo.client_id_issued_at = clientIdIssuedAt; - } - clientInfo = await clientsStore.registerClient(clientInfo); - res.status(201).json(clientInfo); - } - catch (error) { - if (error instanceof errors_js_1.OAuthError) { - const status = error instanceof errors_js_1.ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=register.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map deleted file mode 100644 index e116a47..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/register.ts"],"names":[],"mappings":";;;;;AAuCA,8DA+EC;AAtHD,sDAAkD;AAClD,qDAAgG;AAChG,8DAAiC;AACjC,gDAAwB;AAExB,2DAA4E;AAC5E,uEAAiE;AACjE,4CAAyG;AA8BzG,MAAM,oCAAo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AAK,YAAY,sBAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,KAAK,YAAY,uBAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,uBAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts deleted file mode 100644 index 2be32bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { OAuthServerProvider } from '../provider.js'; -import { RequestHandler } from 'express'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type RevocationHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the token revocation endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function revocationHandler({ provider, rateLimit: rateLimitConfig }: RevocationHandlerOptions): RequestHandler; -//# sourceMappingURL=revoke.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map deleted file mode 100644 index fb13cf1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"revoke.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/revoke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIlD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,wBAAwB,GAAG,cAAc,CA4DpH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js deleted file mode 100644 index 4fb1da7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.revocationHandler = revocationHandler; -const express_1 = __importDefault(require("express")); -const cors_1 = __importDefault(require("cors")); -const clientAuth_js_1 = require("../middleware/clientAuth.js"); -const auth_js_1 = require("../../../shared/auth.js"); -const express_rate_limit_1 = require("express-rate-limit"); -const allowedMethods_js_1 = require("../middleware/allowedMethods.js"); -const errors_js_1 = require("../errors.js"); -function revocationHandler({ provider, rateLimit: rateLimitConfig }) { - if (!provider.revokeToken) { - throw new Error('Auth provider does not support revoking tokens'); - } - // Nested router so we can configure middleware and restrict HTTP method - const router = express_1.default.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use((0, cors_1.default)()); - router.use((0, allowedMethods_js_1.allowedMethods)(['POST'])); - router.use(express_1.default.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use((0, express_rate_limit_1.rateLimit)({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 50, // 50 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new errors_js_1.TooManyRequestsError('You have exceeded the rate limit for token revocation requests').toResponseObject(), - ...rateLimitConfig - })); - } - // Authenticate and extract client details - router.use((0, clientAuth_js_1.authenticateClient)({ clientsStore: provider.clientsStore })); - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = auth_js_1.OAuthTokenRevocationRequestSchema.safeParse(req.body); - if (!parseResult.success) { - throw new errors_js_1.InvalidRequestError(parseResult.error.message); - } - const client = req.client; - if (!client) { - // This should never happen - throw new errors_js_1.ServerError('Internal Server Error'); - } - await provider.revokeToken(client, parseResult.data); - res.status(200).json({}); - } - catch (error) { - if (error instanceof errors_js_1.OAuthError) { - const status = error instanceof errors_js_1.ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=revoke.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map deleted file mode 100644 index ca01fee..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"revoke.js","sourceRoot":"","sources":["../../../../../src/server/au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p-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts deleted file mode 100644 index 24d1c87..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthServerProvider } from '../provider.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type TokenHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the token endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function tokenHandler({ provider, rateLimit: rateLimitConfig }: TokenHandlerOptions): RequestHandler; -//# sourceMappingURL=token.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map deleted file mode 100644 index 68189b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/token.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAW5E,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAmBF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,mBAAmB,GAAG,cAAc,CA+G1G"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js deleted file mode 100644 index 8318de6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tokenHandler = tokenHandler; -const z = __importStar(require("zod/v4")); -const express_1 = __importDefault(require("express")); -const cors_1 = __importDefault(require("cors")); -const pkce_challenge_1 = require("pkce-challenge"); -const clientAuth_js_1 = require("../middleware/clientAuth.js"); -const express_rate_limit_1 = require("express-rate-limit"); -const allowedMethods_js_1 = require("../middleware/allowedMethods.js"); -const errors_js_1 = require("../errors.js"); -const TokenRequestSchema = z.object({ - grant_type: z.string() -}); -const AuthorizationCodeGrantSchema = z.object({ - code: z.string(), - code_verifier: z.string(), - redirect_uri: z.string().optional(), - resource: z.string().url().optional() -}); -const RefreshTokenGrantSchema = z.object({ - refresh_token: z.string(), - scope: z.string().optional(), - resource: z.string().url().optional() -}); -function tokenHandler({ provider, rateLimit: rateLimitConfig }) { - // Nested router so we can configure middleware and restrict HTTP method - const router = express_1.default.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use((0, cors_1.default)()); - router.use((0, allowedMethods_js_1.allowedMethods)(['POST'])); - router.use(express_1.default.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use((0, express_rate_limit_1.rateLimit)({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 50, // 50 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new errors_js_1.TooManyRequestsError('You have exceeded the rate limit for token requests').toResponseObject(), - ...rateLimitConfig - })); - } - // Authenticate and extract client details - router.use((0, clientAuth_js_1.authenticateClient)({ clientsStore: provider.clientsStore })); - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = TokenRequestSchema.safeParse(req.body); - if (!parseResult.success) { - throw new errors_js_1.InvalidRequestError(parseResult.error.message); - } - const { grant_type } = parseResult.data; - const client = req.client; - if (!client) { - // This should never happen - throw new errors_js_1.ServerError('Internal Server Error'); - } - switch (grant_type) { - case 'authorization_code': { - const parseResult = AuthorizationCodeGrantSchema.safeParse(req.body); - if (!parseResult.success) { - throw new errors_js_1.InvalidRequestError(parseResult.error.message); - } - const { code, code_verifier, redirect_uri, resource } = parseResult.data; - const skipLocalPkceValidation = provider.skipLocalPkceValidation; - // Perform local PKCE validation unless explicitly skipped - // (e.g. to validate code_verifier in upstream server) - if (!skipLocalPkceValidation) { - const codeChallenge = await provider.challengeForAuthorizationCode(client, code); - if (!(await (0, pkce_challenge_1.verifyChallenge)(code_verifier, codeChallenge))) { - throw new errors_js_1.InvalidGrantError('code_verifier does not match the challenge'); - } - } - // Passes the code_verifier to the provider if PKCE validation didn't occur locally - const tokens = await provider.exchangeAuthorizationCode(client, code, skipLocalPkceValidation ? code_verifier : undefined, redirect_uri, resource ? new URL(resource) : undefined); - res.status(200).json(tokens); - break; - } - case 'refresh_token': { - const parseResult = RefreshTokenGrantSchema.safeParse(req.body); - if (!parseResult.success) { - throw new errors_js_1.InvalidRequestError(parseResult.error.message); - } - const { refresh_token, scope, resource } = parseResult.data; - const scopes = scope?.split(' '); - const tokens = await provider.exchangeRefreshToken(client, refresh_token, scopes, resource ? new URL(resource) : undefined); - res.status(200).json(tokens); - break; - } - // Additional auth methods will not be added on the server side of the SDK. - case 'client_credentials': - default: - throw new errors_js_1.UnsupportedGrantTypeError('The grant type is not supported by this authorization server.'); - } - } - catch (error) { - if (error instanceof errors_js_1.OAuthError) { - const status = error instanceof errors_js_1.ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map deleted file mode 100644 index b6b6406..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/token.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,oCA+GC;AA1JD,0CAA4B;AAC5B,sDAAkD;AAElD,gDAAwB;AACxB,mDAAiD;AACjD,+DAAiE;AACjE,2DAA4E;AAC5E,uEAAiE;AACjE,4CAOsB;AAWtB,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,E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AC,oBAAoB,CAC9C,MAAM,EACN,aAAa,EACb,MAAM,EACN,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAC3C,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC7B,MAAM;gBACV,CAAC;gBACD,2EAA2E;gBAC3E,KAAK,oBAAoB,CAAC;gBAC1B;oBACI,MAAM,IAAI,qCAAyB,CAAC,+DAA+D,CAAC,CAAC;YAC7G,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,sBAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,KAAK,YAAY,uBAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,uBAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts deleted file mode 100644 index ee6037e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { RequestHandler } from 'express'; -/** - * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. - * - * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) - * @returns Express middleware that returns a 405 error if method not in allowed list - */ -export declare function allowedMethods(allowedMethods: string[]): RequestHandler; -//# sourceMappingURL=allowedMethods.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map deleted file mode 100644 index d3de93e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allowedMethods.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/allowedMethods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,cAAc,CAUvE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js deleted file mode 100644 index f445537..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.allowedMethods = allowedMethods; -const errors_js_1 = require("../errors.js"); -/** - * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. - * - * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) - * @returns Express middleware that returns a 405 error if method not in allowed list - */ -function allowedMethods(allowedMethods) { - return (req, res, next) => { - if (allowedMethods.includes(req.method)) { - next(); - return; - } - const error = new errors_js_1.MethodNotAllowedError(`The method ${req.method} is not allowed for this endpoint`); - res.status(405).set('Allow', allowedMethods.join(', ')).json(error.toResponseObject()); - }; -} -//# sourceMappingURL=allowedMethods.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map deleted file mode 100644 index be69f33..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allowedMethods.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/allowedMethods.ts"],"names":[],"mappings":";;AASA,wCAUC;AAlBD,4CAAqD;AAErD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,cAAwB;IACnD,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QACtB,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACtC,IAAI,EAAE,CAAC;YACP,OAAO;QACX,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,iCAAqB,CAAC,cAAc,GAAG,CAAC,MAAM,mCAAmC,CAAC,CAAC;QACrG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC3F,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts deleted file mode 100644 index 1073075..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthTokenVerifier } from '../provider.js'; -import { AuthInfo } from '../types.js'; -export type BearerAuthMiddlewareOptions = { - /** - * A provider used to verify tokens. - */ - verifier: OAuthTokenVerifier; - /** - * Optional scopes that the token must have. - */ - requiredScopes?: string[]; - /** - * Optional resource metadata URL to include in WWW-Authenticate header. - */ - resourceMetadataUrl?: string; -}; -declare module 'express-serve-static-core' { - interface Request { - /** - * Information about the validated access token, if the `requireBearerAuth` middleware was used. - */ - auth?: AuthInfo; - } -} -/** - * Middleware that requires a valid Bearer token in the Authorization header. - * - * This will validate the token with the auth provider and add the resulting auth info to the request object. - * - * If resourceMetadataUrl is provided, it will be included in the WWW-Authenticate header - * for 401 responses as per the OAuth 2.0 Protected Resource Metadata spec. - */ -export declare function requireBearerAuth({ verifier, requiredScopes, resourceMetadataUrl }: BearerAuthMiddlewareOptions): RequestHandler; -//# sourceMappingURL=bearerAuth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map deleted file mode 100644 index c9d939f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bearerAuth.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/bearerAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,MAAM,2BAA2B,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb;;WAEG;QACH,IAAI,CAAC,EAAE,QAAQ,CAAC;KACnB;CACJ;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,cAAmB,EAAE,mBAAmB,EAAE,EAAE,2BAA2B,GAAG,cAAc,CA8DrI"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js deleted file mode 100644 index dcfc509..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.requireBearerAuth = requireBearerAuth; -const errors_js_1 = require("../errors.js"); -/** - * Middleware that requires a valid Bearer token in the Authorization header. - * - * This will validate the token with the auth provider and add the resulting auth info to the request object. - * - * If resourceMetadataUrl is provided, it will be included in the WWW-Authenticate header - * for 401 responses as per the OAuth 2.0 Protected Resource Metadata spec. - */ -function requireBearerAuth({ verifier, requiredScopes = [], resourceMetadataUrl }) { - return async (req, res, next) => { - try { - const authHeader = req.headers.authorization; - if (!authHeader) { - throw new errors_js_1.InvalidTokenError('Missing Authorization header'); - } - const [type, token] = authHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !token) { - throw new errors_js_1.InvalidTokenError("Invalid Authorization header format, expected 'Bearer TOKEN'"); - } - const authInfo = await verifier.verifyAccessToken(token); - // Check if token has the required scopes (if any) - if (requiredScopes.length > 0) { - const hasAllScopes = requiredScopes.every(scope => authInfo.scopes.includes(scope)); - if (!hasAllScopes) { - throw new errors_js_1.InsufficientScopeError('Insufficient scope'); - } - } - // Check if the token is set to expire or if it is expired - if (typeof authInfo.expiresAt !== 'number' || isNaN(authInfo.expiresAt)) { - throw new errors_js_1.InvalidTokenError('Token has no expiration time'); - } - else if (authInfo.expiresAt < Date.now() / 1000) { - throw new errors_js_1.InvalidTokenError('Token has expired'); - } - req.auth = authInfo; - next(); - } - catch (error) { - // Build WWW-Authenticate header parts - const buildWwwAuthHeader = (errorCode, message) => { - let header = `Bearer error="${errorCode}", error_description="${message}"`; - if (requiredScopes.length > 0) { - header += `, scope="${requiredScopes.join(' ')}"`; - } - if (resourceMetadataUrl) { - header += `, resource_metadata="${resourceMetadataUrl}"`; - } - return header; - }; - if (error instanceof errors_js_1.InvalidTokenError) { - res.set('WWW-Authenticate', buildWwwAuthHeader(error.errorCode, error.message)); - res.status(401).json(error.toResponseObject()); - } - else if (error instanceof errors_js_1.InsufficientScopeError) { - res.set('WWW-Authenticate', buildWwwAuthHeader(error.errorCode, error.message)); - res.status(403).json(error.toResponseObject()); - } - else if (error instanceof errors_js_1.ServerError) { - res.status(500).json(error.toResponseObject()); - } - else if (error instanceof errors_js_1.OAuthError) { - res.status(400).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }; -} -//# sourceMappingURL=bearerAuth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map deleted file mode 100644 index d111d36..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bearerAuth.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/bearerAuth.ts"],"names":[],"mappings":";;AAuCA,8CA8DC;AApGD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,CAAC;gBACtC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACnD,CAAC;iBAAM,IAAI,KAAK,YAAY,sBAAU,EAAE,CAAC;gBACrC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,uBAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts deleted file mode 100644 index 837f95f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { OAuthClientInformationFull } from '../../../shared/auth.js'; -export type ClientAuthenticationMiddlewareOptions = { - /** - * A store used to read information about registered OAuth clients. - */ - clientsStore: OAuthRegisteredClientsStore; -}; -declare module 'express-serve-static-core' { - interface Request { - /** - * The authenticated client for this request, if the `authenticateClient` middleware was used. - */ - client?: OAuthClientInformationFull; - } -} -export declare function authenticateClient({ clientsStore }: ClientAuthenticationMiddlewareOptions): RequestHandler; -//# sourceMappingURL=clientAuth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map deleted file mode 100644 index 5455132..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientAuth.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/clientAuth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGrE,MAAM,MAAM,qCAAqC,GAAG;IAChD;;OAEG;IACH,YAAY,EAAE,2BAA2B,CAAC;CAC7C,CAAC;AAOF,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb;;WAEG;QACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;KACvC;CACJ;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,EAAE,qCAAqC,GAAG,cAAc,CAoC1G"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js deleted file mode 100644 index e54dd10..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.authenticateClient = authenticateClient; -const z = __importStar(require("zod/v4")); -const errors_js_1 = require("../errors.js"); -const ClientAuthenticatedRequestSchema = z.object({ - client_id: z.string(), - client_secret: z.string().optional() -}); -function authenticateClient({ clientsStore }) { - return async (req, res, next) => { - try { - const result = ClientAuthenticatedRequestSchema.safeParse(req.body); - if (!result.success) { - throw new errors_js_1.InvalidRequestError(String(result.error)); - } - const { client_id, client_secret } = result.data; - const client = await clientsStore.getClient(client_id); - if (!client) { - throw new errors_js_1.InvalidClientError('Invalid client_id'); - } - if (client.client_secret) { - if (!client_secret) { - throw new errors_js_1.InvalidClientError('Client secret is required'); - } - if (client.client_secret !== client_secret) { - throw new errors_js_1.InvalidClientError('Invalid client_secret'); - } - if (client.client_secret_expires_at && client.client_secret_expires_at < Math.floor(Date.now() / 1000)) { - throw new errors_js_1.InvalidClientError('Client secret has expired'); - } - } - req.client = client; - next(); - } - catch (error) { - if (error instanceof errors_js_1.OAuthError) { - const status = error instanceof errors_js_1.ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new errors_js_1.ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }; -} -//# sourceMappingURL=clientAuth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map deleted file mode 100644 index 63184f4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientAuth.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/clientAuth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,gDAoCC;AA/DD,0CAA4B;AAI5B,4CAAgG;AAShG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAWH,SAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAyC;IACtF,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5B,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,gCAAgC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACpE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBAClB,MAAM,IAAI,+BAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YACxD,CAAC;YACD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;YACjD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACvD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,MAAM,IAAI,8BAAkB,CAAC,mBAAmB,CAAC,CAAC;YACtD,CAAC;YACD,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;gBACvB,IAAI,CAAC,aAAa,EAAE,CAAC;oBACjB,MAAM,IAAI,8BAAkB,CAAC,2BAA2B,CAAC,CAAC;gBAC9D,CAAC;gBACD,IAAI,MAAM,CAAC,aAAa,KAAK,aAAa,EAAE,CAAC;oBACzC,MAAM,IAAI,8BAAkB,CAAC,uBAAuB,CAAC,CAAC;gBAC1D,CAAC;gBACD,IAAI,MAAM,CAAC,wBAAwB,IAAI,MAAM,CAAC,wBAAwB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;oBACrG,MAAM,IAAI,8BAAkB,CAAC,2BAA2B,CAAC,CAAC;gBAC9D,CAAC;YACL,CAAC;YAED,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;YACpB,IAAI,EAAE,CAAC;QACX,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,sBAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,KAAK,YAAY,uBAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,uBAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts deleted file mode 100644 index 3e4eca3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Response } from 'express'; -import { OAuthRegisteredClientsStore } from './clients.js'; -import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '../../shared/auth.js'; -import { AuthInfo } from './types.js'; -export type AuthorizationParams = { - state?: string; - scopes?: string[]; - codeChallenge: string; - redirectUri: string; - resource?: URL; -}; -/** - * Implements an end-to-end OAuth server. - */ -export interface OAuthServerProvider { - /** - * A store used to read information about registered OAuth clients. - */ - get clientsStore(): OAuthRegisteredClientsStore; - /** - * Begins the authorization flow, which can either be implemented by this server itself or via redirection to a separate authorization server. - * - * This server must eventually issue a redirect with an authorization response or an error response to the given redirect URI. Per OAuth 2.1: - * - In the successful case, the redirect MUST include the `code` and `state` (if present) query parameters. - * - In the error case, the redirect MUST include the `error` query parameter, and MAY include an optional `error_description` query parameter. - */ - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - /** - * Returns the `codeChallenge` that was used when the indicated authorization began. - */ - challengeForAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string): Promise; - /** - * Exchanges an authorization code for an access token. - */ - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, redirectUri?: string, resource?: URL): Promise; - /** - * Exchanges a refresh token for an access token. - */ - exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise; - /** - * Verifies an access token and returns information about it. - */ - verifyAccessToken(token: string): Promise; - /** - * Revokes an access or refresh token. If unimplemented, token revocation is not supported (not recommended). - * - * If the given token is invalid or already revoked, this method should do nothing. - */ - revokeToken?(client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest): Promise; - /** - * Whether to skip local PKCE validation. - * - * If true, the server will not perform PKCE validation locally and will pass the code_verifier to the upstream server. - * - * NOTE: This should only be true if the upstream server is performing the actual PKCE validation. - */ - skipLocalPkceValidation?: boolean; -} -/** - * Slim implementation useful for token verification - */ -export interface OAuthTokenVerifier { - /** - * Verifies an access token and returns information about it. - */ - verifyAccessToken(token: string): Promise; -} -//# sourceMappingURL=provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map deleted file mode 100644 index d1a4bff..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,YAAY,IAAI,2BAA2B,CAAC;IAEhD;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzG;;OAEG;IACH,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9G;;OAEG;IACH,yBAAyB,CACrB,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,GAAG,GACf,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAExI;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpD;;;;OAIG;IACH,WAAW,CAAC,CAAC,MAAM,EAAE,0BAA0B,EAAE,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtG;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACvD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js deleted file mode 100644 index 0903bb2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map deleted file mode 100644 index b968414..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/server/auth/provider.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts deleted file mode 100644 index ee6f350..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Response } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '../../../shared/auth.js'; -import { AuthInfo } from '../types.js'; -import { AuthorizationParams, OAuthServerProvider } from '../provider.js'; -import { FetchLike } from '../../../shared/transport.js'; -export type ProxyEndpoints = { - authorizationUrl: string; - tokenUrl: string; - revocationUrl?: string; - registrationUrl?: string; -}; -export type ProxyOptions = { - /** - * Individual endpoint URLs for proxying specific OAuth operations - */ - endpoints: ProxyEndpoints; - /** - * Function to verify access tokens and return auth info - */ - verifyAccessToken: (token: string) => Promise; - /** - * Function to fetch client information from the upstream server - */ - getClient: (clientId: string) => Promise; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; -}; -/** - * Implements an OAuth server that proxies requests to another OAuth server. - */ -export declare class ProxyOAuthServerProvider implements OAuthServerProvider { - protected readonly _endpoints: ProxyEndpoints; - protected readonly _verifyAccessToken: (token: string) => Promise; - protected readonly _getClient: (clientId: string) => Promise; - protected readonly _fetch?: FetchLike; - skipLocalPkceValidation: boolean; - revokeToken?: (client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest) => Promise; - constructor(options: ProxyOptions); - get clientsStore(): OAuthRegisteredClientsStore; - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - challengeForAuthorizationCode(_client: OAuthClientInformationFull, _authorizationCode: string): Promise; - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, redirectUri?: string, resource?: URL): Promise; - exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise; - verifyAccessToken(token: string): Promise; -} -//# sourceMappingURL=proxyProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map deleted file mode 100644 index 124c105..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"proxyProvider.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/providers/proxyProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EACH,0BAA0B,EAE1B,2BAA2B,EAC3B,WAAW,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,cAAc,GAAG;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAExD;;OAEG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IAE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IAoCjB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG5D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js deleted file mode 100644 index 1707894..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProxyOAuthServerProvider = void 0; -const auth_js_1 = require("../../../shared/auth.js"); -const errors_js_1 = require("../errors.js"); -/** - * Implements an OAuth server that proxies requests to another OAuth server. - */ -class ProxyOAuthServerProvider { - constructor(options) { - this.skipLocalPkceValidation = true; - this._endpoints = options.endpoints; - this._verifyAccessToken = options.verifyAccessToken; - this._getClient = options.getClient; - this._fetch = options.fetch; - if (options.endpoints?.revocationUrl) { - this.revokeToken = async (client, request) => { - const revocationUrl = this._endpoints.revocationUrl; - if (!revocationUrl) { - throw new Error('No revocation endpoint configured'); - } - const params = new URLSearchParams(); - params.set('token', request.token); - params.set('client_id', client.client_id); - if (client.client_secret) { - params.set('client_secret', client.client_secret); - } - if (request.token_type_hint) { - params.set('token_type_hint', request.token_type_hint); - } - const response = await (this._fetch ?? fetch)(revocationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - await response.body?.cancel(); - if (!response.ok) { - throw new errors_js_1.ServerError(`Token revocation failed: ${response.status}`); - } - }; - } - } - get clientsStore() { - const registrationUrl = this._endpoints.registrationUrl; - return { - getClient: this._getClient, - ...(registrationUrl && { - registerClient: async (client) => { - const response = await (this._fetch ?? fetch)(registrationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(client) - }); - if (!response.ok) { - await response.body?.cancel(); - throw new errors_js_1.ServerError(`Client registration failed: ${response.status}`); - } - const data = await response.json(); - return auth_js_1.OAuthClientInformationFullSchema.parse(data); - } - }) - }; - } - async authorize(client, params, res) { - // Start with required OAuth parameters - const targetUrl = new URL(this._endpoints.authorizationUrl); - const searchParams = new URLSearchParams({ - client_id: client.client_id, - response_type: 'code', - redirect_uri: params.redirectUri, - code_challenge: params.codeChallenge, - code_challenge_method: 'S256' - }); - // Add optional standard OAuth parameters - if (params.state) - searchParams.set('state', params.state); - if (params.scopes?.length) - searchParams.set('scope', params.scopes.join(' ')); - if (params.resource) - searchParams.set('resource', params.resource.href); - targetUrl.search = searchParams.toString(); - res.redirect(targetUrl.toString()); - } - async challengeForAuthorizationCode(_client, _authorizationCode) { - // In a proxy setup, we don't store the code challenge ourselves - // Instead, we proxy the token request and let the upstream server validate it - return ''; - } - async exchangeAuthorizationCode(client, authorizationCode, codeVerifier, redirectUri, resource) { - const params = new URLSearchParams({ - grant_type: 'authorization_code', - client_id: client.client_id, - code: authorizationCode - }); - if (client.client_secret) { - params.append('client_secret', client.client_secret); - } - if (codeVerifier) { - params.append('code_verifier', codeVerifier); - } - if (redirectUri) { - params.append('redirect_uri', redirectUri); - } - if (resource) { - params.append('resource', resource.href); - } - const response = await (this._fetch ?? fetch)(this._endpoints.tokenUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - if (!response.ok) { - await response.body?.cancel(); - throw new errors_js_1.ServerError(`Token exchange failed: ${response.status}`); - } - const data = await response.json(); - return auth_js_1.OAuthTokensSchema.parse(data); - } - async exchangeRefreshToken(client, refreshToken, scopes, resource) { - const params = new URLSearchParams({ - grant_type: 'refresh_token', - client_id: client.client_id, - refresh_token: refreshToken - }); - if (client.client_secret) { - params.set('client_secret', client.client_secret); - } - if (scopes?.length) { - params.set('scope', scopes.join(' ')); - } - if (resource) { - params.set('resource', resource.href); - } - const response = await (this._fetch ?? fetch)(this._endpoints.tokenUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - if (!response.ok) { - await response.body?.cancel(); - throw new errors_js_1.ServerError(`Token refresh failed: ${response.status}`); - } - const data = await response.json(); - return auth_js_1.OAuthTokensSchema.parse(data); - } - async verifyAccessToken(token) { - return this._verifyAccessToken(token); - } -} -exports.ProxyOAuthServerProvider = ProxyOAuthServerProvider; -//# sourceMappingURL=proxyProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map deleted file mode 100644 index 7f16e74..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"proxyProvider.js","sourceRoot":"","sources":["../../../../../src/server/auth/providers/proxyProvider.ts"],"names":[],"mappings":";;;AAEA,qDAMiC;AAGjC,4CAA2C;AAgC3C;;GAEG;AACH,MAAa,wBAAwB;IAUjC,YAAY,OAAqB;QAJjC,4BAAuB,GAAG,IAAI,CAAC;QAK3B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,IAAI,OAAO,CAAC,SAAS,EAAE,aAAa,EAAE,CAAC;YACnC,IAAI,CAAC,WAAW,GAAG,KAAK,EAAE,MAAkC,EAAE,OAAoC,EAAE,EAAE;gBAClG,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;gBAEpD,IAAI,CAAC,aAAa,EAAE,CAAC;oBACjB,MAAM,IAAI,KAAK,CAAC,mCAAmC,C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AI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YAC9B,MAAM,IAAI,uBAAW,CAAC,yBAAyB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,2BAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,KAAa;QACjC,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ;AA/LD,4DA+LC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts deleted file mode 100644 index 43dabde..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import express, { RequestHandler } from 'express'; -import { ClientRegistrationHandlerOptions } from './handlers/register.js'; -import { TokenHandlerOptions } from './handlers/token.js'; -import { AuthorizationHandlerOptions } from './handlers/authorize.js'; -import { RevocationHandlerOptions } from './handlers/revoke.js'; -import { OAuthServerProvider } from './provider.js'; -import { OAuthMetadata } from '../../shared/auth.js'; -export type AuthRouterOptions = { - /** - * A provider implementing the actual authorization logic for this router. - */ - provider: OAuthServerProvider; - /** - * The authorization server's issuer identifier, which is a URL that uses the "https" scheme and has no query or fragment components. - */ - issuerUrl: URL; - /** - * The base URL of the authorization server to use for the metadata endpoints. - * - * If not provided, the issuer URL will be used as the base URL. - */ - baseUrl?: URL; - /** - * An optional URL of a page containing human-readable information that developers might want or need to know when using the authorization server. - */ - serviceDocumentationUrl?: URL; - /** - * An optional list of scopes supported by this authorization server - */ - scopesSupported?: string[]; - /** - * The resource name to be displayed in protected resource metadata - */ - resourceName?: string; - /** - * The URL of the protected resource (RS) whose metadata we advertise. - * If not provided, falls back to `baseUrl` and then to `issuerUrl` (AS=RS). - */ - resourceServerUrl?: URL; - authorizationOptions?: Omit; - clientRegistrationOptions?: Omit; - revocationOptions?: Omit; - tokenOptions?: Omit; -}; -export declare const createOAuthMetadata: (options: { - provider: OAuthServerProvider; - issuerUrl: URL; - baseUrl?: URL; - serviceDocumentationUrl?: URL; - scopesSupported?: string[]; -}) => OAuthMetadata; -/** - * Installs standard MCP authorization server endpoints, including dynamic client registration and token revocation (if supported). - * Also advertises standard authorization server metadata, for easier discovery of supported configurations by clients. - * Note: if your MCP server is only a resource server and not an authorization server, use mcpAuthMetadataRouter instead. - * - * By default, rate limiting is applied to all endpoints to prevent abuse. - * - * This router MUST be installed at the application root, like so: - * - * const app = express(); - * app.use(mcpAuthRouter(...)); - */ -export declare function mcpAuthRouter(options: AuthRouterOptions): RequestHandler; -export type AuthMetadataOptions = { - /** - * OAuth Metadata as would be returned from the authorization server - * this MCP server relies on - */ - oauthMetadata: OAuthMetadata; - /** - * The url of the MCP server, for use in protected resource metadata - */ - resourceServerUrl: URL; - /** - * The url for documentation for the MCP server - */ - serviceDocumentationUrl?: URL; - /** - * An optional list of scopes supported by this MCP server - */ - scopesSupported?: string[]; - /** - * An optional resource name to display in resource metadata - */ - resourceName?: string; -}; -export declare function mcpAuthMetadataRouter(options: AuthMetadataOptions): express.Router; -/** - * Helper function to construct the OAuth 2.0 Protected Resource Metadata URL - * from a given server URL. This replaces the path with the standard metadata endpoint. - * - * @param serverUrl - The base URL of the protected resource server - * @returns The URL for the OAuth protected resource metadata endpoint - * - * @example - * getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp')) - * // Returns: 'https://api.example.com/.well-known/oauth-protected-resource/mcp' - */ -export declare function getOAuthProtectedResourceMetadataUrl(serverUrl: URL): string; -//# sourceMappingURL=router.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map deleted file mode 100644 index 615cb96..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/router.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAA6B,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAgB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAwB,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAqB,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,aAAa,EAAkC,MAAM,sBAAsB,CAAC;AAUrF,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd;;OAEG;IACH,uBAAuB,CAAC,EAAE,GAAG,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAC;IAGxB,oBAAoB,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;IACrE,yBAAyB,CAAC,EAAE,IAAI,CAAC,gCAAgC,EAAE,cAAc,CAAC,CAAC;IACnF,iBAAiB,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC;CACxD,CAAC;AAeF,eAAO,MAAM,mBAAmB,YAAa;IACzC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,uBAAuB,CAAC,EAAE,GAAG,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,KAAG,aAgCH,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,cAAc,CAyCxE;AAED,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAC;IAE7B;;OAEG;IACH,iBAAiB,EAAE,GAAG,CAAC;IAEvB;;OAEG;IACH,uBAAuB,CAAC,EAAE,GAAG,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAuBlF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,GAAG,GAAG,MAAM,CAI3E"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js deleted file mode 100644 index 5827119..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +++ /dev/null @@ -1,128 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createOAuthMetadata = void 0; -exports.mcpAuthRouter = mcpAuthRouter; -exports.mcpAuthMetadataRouter = mcpAuthMetadataRouter; -exports.getOAuthProtectedResourceMetadataUrl = getOAuthProtectedResourceMetadataUrl; -const express_1 = __importDefault(require("express")); -const register_js_1 = require("./handlers/register.js"); -const token_js_1 = require("./handlers/token.js"); -const authorize_js_1 = require("./handlers/authorize.js"); -const revoke_js_1 = require("./handlers/revoke.js"); -const metadata_js_1 = require("./handlers/metadata.js"); -// Check for dev mode flag that allows HTTP issuer URLs (for development/testing only) -const allowInsecureIssuerUrl = process.env.MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL === 'true' || process.env.MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL === '1'; -if (allowInsecureIssuerUrl) { - // eslint-disable-next-line no-console - console.warn('MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL is enabled - HTTP issuer URLs are allowed. Do not use in production.'); -} -const checkIssuerUrl = (issuer) => { - // Technically RFC 8414 does not permit a localhost HTTPS exemption, but this will be necessary for ease of testing - if (issuer.protocol !== 'https:' && issuer.hostname !== 'localhost' && issuer.hostname !== '127.0.0.1' && !allowInsecureIssuerUrl) { - throw new Error('Issuer URL must be HTTPS'); - } - if (issuer.hash) { - throw new Error(`Issuer URL must not have a fragment: ${issuer}`); - } - if (issuer.search) { - throw new Error(`Issuer URL must not have a query string: ${issuer}`); - } -}; -const createOAuthMetadata = (options) => { - const issuer = options.issuerUrl; - const baseUrl = options.baseUrl; - checkIssuerUrl(issuer); - const authorization_endpoint = '/authorize'; - const token_endpoint = '/token'; - const registration_endpoint = options.provider.clientsStore.registerClient ? '/register' : undefined; - const revocation_endpoint = options.provider.revokeToken ? '/revoke' : undefined; - const metadata = { - issuer: issuer.href, - service_documentation: options.serviceDocumentationUrl?.href, - authorization_endpoint: new URL(authorization_endpoint, baseUrl || issuer).href, - response_types_supported: ['code'], - code_challenge_methods_supported: ['S256'], - token_endpoint: new URL(token_endpoint, baseUrl || issuer).href, - token_endpoint_auth_methods_supported: ['client_secret_post', 'none'], - grant_types_supported: ['authorization_code', 'refresh_token'], - scopes_supported: options.scopesSupported, - revocation_endpoint: revocation_endpoint ? new URL(revocation_endpoint, baseUrl || issuer).href : undefined, - revocation_endpoint_auth_methods_supported: revocation_endpoint ? ['client_secret_post'] : undefined, - registration_endpoint: registration_endpoint ? new URL(registration_endpoint, baseUrl || issuer).href : undefined - }; - return metadata; -}; -exports.createOAuthMetadata = createOAuthMetadata; -/** - * Installs standard MCP authorization server endpoints, including dynamic client registration and token revocation (if supported). - * Also advertises standard authorization server metadata, for easier discovery of supported configurations by clients. - * Note: if your MCP server is only a resource server and not an authorization server, use mcpAuthMetadataRouter instead. - * - * By default, rate limiting is applied to all endpoints to prevent abuse. - * - * This router MUST be installed at the application root, like so: - * - * const app = express(); - * app.use(mcpAuthRouter(...)); - */ -function mcpAuthRouter(options) { - const oauthMetadata = (0, exports.createOAuthMetadata)(options); - const router = express_1.default.Router(); - router.use(new URL(oauthMetadata.authorization_endpoint).pathname, (0, authorize_js_1.authorizationHandler)({ provider: options.provider, ...options.authorizationOptions })); - router.use(new URL(oauthMetadata.token_endpoint).pathname, (0, token_js_1.tokenHandler)({ provider: options.provider, ...options.tokenOptions })); - router.use(mcpAuthMetadataRouter({ - oauthMetadata, - // Prefer explicit RS; otherwise fall back to AS baseUrl, then to issuer (back-compat) - resourceServerUrl: options.resourceServerUrl ?? options.baseUrl ?? new URL(oauthMetadata.issuer), - serviceDocumentationUrl: options.serviceDocumentationUrl, - scopesSupported: options.scopesSupported, - resourceName: options.resourceName - })); - if (oauthMetadata.registration_endpoint) { - router.use(new URL(oauthMetadata.registration_endpoint).pathname, (0, register_js_1.clientRegistrationHandler)({ - clientsStore: options.provider.clientsStore, - ...options.clientRegistrationOptions - })); - } - if (oauthMetadata.revocation_endpoint) { - router.use(new URL(oauthMetadata.revocation_endpoint).pathname, (0, revoke_js_1.revocationHandler)({ provider: options.provider, ...options.revocationOptions })); - } - return router; -} -function mcpAuthMetadataRouter(options) { - checkIssuerUrl(new URL(options.oauthMetadata.issuer)); - const router = express_1.default.Router(); - const protectedResourceMetadata = { - resource: options.resourceServerUrl.href, - authorization_servers: [options.oauthMetadata.issuer], - scopes_supported: options.scopesSupported, - resource_name: options.resourceName, - resource_documentation: options.serviceDocumentationUrl?.href - }; - // Serve PRM at the path-specific URL per RFC 9728 - const rsPath = new URL(options.resourceServerUrl.href).pathname; - router.use(`/.well-known/oauth-protected-resource${rsPath === '/' ? '' : rsPath}`, (0, metadata_js_1.metadataHandler)(protectedResourceMetadata)); - // Always add this for OAuth Authorization Server metadata per RFC 8414 - router.use('/.well-known/oauth-authorization-server', (0, metadata_js_1.metadataHandler)(options.oauthMetadata)); - return router; -} -/** - * Helper function to construct the OAuth 2.0 Protected Resource Metadata URL - * from a given server URL. This replaces the path with the standard metadata endpoint. - * - * @param serverUrl - The base URL of the protected resource server - * @returns The URL for the OAuth protected resource metadata endpoint - * - * @example - * getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp')) - * // Returns: 'https://api.example.com/.well-known/oauth-protected-resource/mcp' - */ -function getOAuthProtectedResourceMetadataUrl(serverUrl) { - const u = new URL(serverUrl.href); - const rsPath = u.pathname && u.pathname !== '/' ? u.pathname : ''; - return new URL(`/.well-known/oauth-protected-resource${rsPath}`, u).href; -} -//# sourceMappingURL=router.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map deleted file mode 100644 index 991898b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../src/server/auth/router.ts"],"names":[],"mappings":";;;;;;AAgIA,sCAyCC;AA8BD,sDAuBC;AAaD,oFAIC;AA/OD,sDAAkD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CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,OAAO,IAAI,GAAG,CAAC,wCAAwC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts deleted file mode 100644 index 05ec848..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Information about a validated access token, provided to request handlers. - */ -export interface AuthInfo { - /** - * The access token. - */ - token: string; - /** - * The client ID associated with this token. - */ - clientId: string; - /** - * Scopes associated with this token. - */ - scopes: string[]; - /** - * When the token expires (in seconds since epoch). - */ - expiresAt?: number; - /** - * The RFC 8707 resource server identifier for which this token is valid. - * If set, this MUST match the MCP server's resource identifier (minus hash fragment). - */ - resource?: URL; - /** - * Additional data associated with the token. - * This field should be used for any additional data that needs to be attached to the auth info. - */ - extra?: Record; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map deleted file mode 100644 index 021e947..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js deleted file mode 100644 index 11e638d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map deleted file mode 100644 index 0d8063d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/server/auth/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts deleted file mode 100644 index 1b3159a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { AnySchema, SchemaInput } from './zod-compat.js'; -export declare const COMPLETABLE_SYMBOL: unique symbol; -export type CompleteCallback = (value: SchemaInput, context?: { - arguments?: Record; -}) => SchemaInput[] | Promise[]>; -export type CompletableMeta = { - complete: CompleteCallback; -}; -export type CompletableSchema = T & { - [COMPLETABLE_SYMBOL]: CompletableMeta; -}; -/** - * Wraps a Zod type to provide autocompletion capabilities. Useful for, e.g., prompt arguments in MCP. - * Works with both Zod v3 and v4 schemas. - */ -export declare function completable(schema: T, complete: CompleteCallback): CompletableSchema; -/** - * Checks if a schema is completable (has completion metadata). - */ -export declare function isCompletable(schema: unknown): schema is CompletableSchema; -/** - * Gets the completer callback from a completable schema, if it exists. - */ -export declare function getCompleter(schema: T): CompleteCallback | undefined; -/** - * Unwraps a completable schema to get the underlying schema. - * For backward compatibility with code that called `.unwrap()`. - */ -export declare function unwrapCompletable(schema: CompletableSchema): T; -export declare enum McpZodTypeKind { - Completable = "McpCompletable" -} -export interface CompletableDef { - type: T; - complete: CompleteCallback; - typeName: McpZodTypeKind.Completable; -} -//# sourceMappingURL=completable.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map deleted file mode 100644 index 83ea2f1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"completable.d.ts","sourceRoot":"","sources":["../../../src/server/completable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,EAAE,OAAO,MAAsC,CAAC;AAE/E,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,CAC5D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE;IACN,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,KACA,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI;IAC3D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,GAAG;IACrD,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAQ/G;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAErF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAG5F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAEtF;AAID,oBAAY,cAAc;IACtB,WAAW,mBAAmB;CACjC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAC3D,IAAI,EAAE,CAAC,CAAC;IACR,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC9B,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC;CACxC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js deleted file mode 100644 index 58f1873..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.McpZodTypeKind = exports.COMPLETABLE_SYMBOL = void 0; -exports.completable = completable; -exports.isCompletable = isCompletable; -exports.getCompleter = getCompleter; -exports.unwrapCompletable = unwrapCompletable; -exports.COMPLETABLE_SYMBOL = Symbol.for('mcp.completable'); -/** - * Wraps a Zod type to provide autocompletion capabilities. Useful for, e.g., prompt arguments in MCP. - * Works with both Zod v3 and v4 schemas. - */ -function completable(schema, complete) { - Object.defineProperty(schema, exports.COMPLETABLE_SYMBOL, { - value: { complete }, - enumerable: false, - writable: false, - configurable: false - }); - return schema; -} -/** - * Checks if a schema is completable (has completion metadata). - */ -function isCompletable(schema) { - return !!schema && typeof schema === 'object' && exports.COMPLETABLE_SYMBOL in schema; -} -/** - * Gets the completer callback from a completable schema, if it exists. - */ -function getCompleter(schema) { - const meta = schema[exports.COMPLETABLE_SYMBOL]; - return meta?.complete; -} -/** - * Unwraps a completable schema to get the underlying schema. - * For backward compatibility with code that called `.unwrap()`. - */ -function unwrapCompletable(schema) { - return schema; -} -// Legacy exports for backward compatibility -// These types are deprecated but kept for existing code -var McpZodTypeKind; -(function (McpZodTypeKind) { - McpZodTypeKind["Completable"] = "McpCompletable"; -})(McpZodTypeKind || (exports.McpZodTypeKind = McpZodTypeKind = {})); -//# sourceMappingURL=completable.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map deleted file mode 100644 index 6b20bd6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"completable.js","sourceRoot":"","sources":["../../../src/server/completable.ts"],"names":[],"mappings":";;;AAuBA,kCAQC;AAKD,sCAEC;AAKD,oCAGC;AAMD,8CAEC;AApDY,QAAA,kBAAkB,GAAkB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAiB/E;;;GAGG;AACH,SAAgB,WAAW,CAAsB,MAAS,EAAE,QAA6B;IACrF,MAAM,CAAC,cAAc,CAAC,MAAgB,EAAE,0BAAkB,EAAE;QACxD,KAAK,EAAE,EAAE,QAAQ,EAAwB;QACzC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,KAAK;KACtB,CAAC,CAAC;IACH,OAAO,MAA8B,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,MAAe;IACzC,OAAO,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,0BAAkB,IAAK,MAAiB,CAAC;AAC9F,CAAC;AAED;;GAEG;AACH,SAAgB,YAAY,CAAsB,MAAS;IACvD,MAAM,IAAI,GAAI,MAAmE,CAAC,0BAAkB,CAAC,CAAC;IACtG,OAAO,IAAI,EAAE,QAA2C,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAsB,MAA4B;IAC/E,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,4CAA4C;AAC5C,wDAAwD;AACxD,IAAY,cAEX;AAFD,WAAY,cAAc;IACtB,gDAA8B,CAAA;AAClC,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts deleted file mode 100644 index 7746e82..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Express } from 'express'; -/** - * Options for creating an MCP Express application. - */ -export interface CreateMcpExpressAppOptions { - /** - * The hostname to bind to. Defaults to '127.0.0.1'. - * When set to '127.0.0.1', 'localhost', or '::1', DNS rebinding protection is automatically enabled. - */ - host?: string; - /** - * List of allowed hostnames for DNS rebinding protection. - * If provided, host header validation will be applied using this list. - * For IPv6, provide addresses with brackets (e.g., '[::1]'). - * - * This is useful when binding to '0.0.0.0' or '::' but still wanting - * to restrict which hostnames are allowed. - */ - allowedHosts?: string[]; -} -/** - * Creates an Express application pre-configured for MCP servers. - * - * When the host is '127.0.0.1', 'localhost', or '::1' (the default is '127.0.0.1'), - * DNS rebinding protection middleware is automatically applied to protect against - * DNS rebinding attacks on localhost servers. - * - * @param options - Configuration options - * @returns A configured Express application - * - * @example - * ```typescript - * // Basic usage - defaults to 127.0.0.1 with DNS rebinding protection - * const app = createMcpExpressApp(); - * - * // Custom host - DNS rebinding protection only applied for localhost hosts - * const app = createMcpExpressApp({ host: '0.0.0.0' }); // No automatic DNS rebinding protection - * const app = createMcpExpressApp({ host: 'localhost' }); // DNS rebinding protection enabled - * - * // Custom allowed hosts for non-localhost binding - * const app = createMcpExpressApp({ host: '0.0.0.0', allowedHosts: ['myapp.local', 'localhost'] }); - * ``` - */ -export declare function createMcpExpressApp(options?: CreateMcpExpressAppOptions): Express; -//# sourceMappingURL=express.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map deleted file mode 100644 index 5f607a9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/server/express.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CA0BrF"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js deleted file mode 100644 index 1d37a8d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createMcpExpressApp = createMcpExpressApp; -const express_1 = __importDefault(require("express")); -const hostHeaderValidation_js_1 = require("./middleware/hostHeaderValidation.js"); -/** - * Creates an Express application pre-configured for MCP servers. - * - * When the host is '127.0.0.1', 'localhost', or '::1' (the default is '127.0.0.1'), - * DNS rebinding protection middleware is automatically applied to protect against - * DNS rebinding attacks on localhost servers. - * - * @param options - Configuration options - * @returns A configured Express application - * - * @example - * ```typescript - * // Basic usage - defaults to 127.0.0.1 with DNS rebinding protection - * const app = createMcpExpressApp(); - * - * // Custom host - DNS rebinding protection only applied for localhost hosts - * const app = createMcpExpressApp({ host: '0.0.0.0' }); // No automatic DNS rebinding protection - * const app = createMcpExpressApp({ host: 'localhost' }); // DNS rebinding protection enabled - * - * // Custom allowed hosts for non-localhost binding - * const app = createMcpExpressApp({ host: '0.0.0.0', allowedHosts: ['myapp.local', 'localhost'] }); - * ``` - */ -function createMcpExpressApp(options = {}) { - const { host = '127.0.0.1', allowedHosts } = options; - const app = (0, express_1.default)(); - app.use(express_1.default.json()); - // If allowedHosts is explicitly provided, use that for validation - if (allowedHosts) { - app.use((0, hostHeaderValidation_js_1.hostHeaderValidation)(allowedHosts)); - } - else { - // Apply DNS rebinding protection automatically for localhost hosts - const localhostHosts = ['127.0.0.1', 'localhost', '::1']; - if (localhostHosts.includes(host)) { - app.use((0, hostHeaderValidation_js_1.localhostHostValidation)()); - } - else if (host === '0.0.0.0' || host === '::') { - // Warn when binding to all interfaces without DNS rebinding protection - // eslint-disable-next-line no-console - console.warn(`Warning: Server is binding to ${host} without DNS rebinding protection. ` + - 'Consider using the allowedHosts option to restrict allowed hosts, ' + - 'or use authentication to protect your server.'); - } - } - return app; -} -//# sourceMappingURL=express.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map deleted file mode 100644 index f15b40d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"express.js","sourceRoot":"","sources":["../../../src/server/express.ts"],"names":[],"mappings":";;;;;AA+CA,kDA0BC;AAzED,sDAA2C;AAC3C,kFAAqG;AAuBrG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,mBAAmB,CAAC,UAAsC,EAAE;IACxE,MAAM,EAAE,IAAI,GAAG,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAErD,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IACtB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAExB,kEAAkE;IAClE,IAAI,YAAY,EAAE,CAAC;QACf,GAAG,CAAC,GAAG,CAAC,IAAA,8CAAoB,EAAC,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC;SAAM,CAAC;QACJ,mEAAmE;QACnE,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,GAAG,CAAC,GAAG,CAAC,IAAA,iDAAuB,GAAE,CAAC,CAAC;QACvC,CAAC;aAAM,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAC7C,uEAAuE;YACvE,sCAAsC;YACtC,OAAO,CAAC,IAAI,CACR,iCAAiC,IAAI,qCAAqC;gBACtE,oEAAoE;gBACpE,+CAA+C,CACtD,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts deleted file mode 100644 index cfa236e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { Protocol, type NotificationOptions, type ProtocolOptions, type RequestOptions } from '../shared/protocol.js'; -import { type ClientCapabilities, type CreateMessageRequest, type CreateMessageResult, type CreateMessageResultWithTools, type CreateMessageRequestParamsBase, type CreateMessageRequestParamsWithTools, type ElicitRequestFormParams, type ElicitRequestURLParams, type ElicitResult, type Implementation, type ListRootsRequest, type LoggingMessageNotification, type ResourceUpdatedNotification, type ServerCapabilities, type ServerNotification, type ServerRequest, type ServerResult, type Request, type Notification, type Result } from '../types.js'; -import type { jsonSchemaValidator } from '../validation/types.js'; -import { AnyObjectSchema, SchemaOutput } from './zod-compat.js'; -import { RequestHandlerExtra } from '../shared/protocol.js'; -import { ExperimentalServerTasks } from '../experimental/tasks/server.js'; -export type ServerOptions = ProtocolOptions & { - /** - * Capabilities to advertise as being supported by this server. - */ - capabilities?: ServerCapabilities; - /** - * Optional instructions describing how to use the server and its features. - */ - instructions?: string; - /** - * JSON Schema validator for elicitation response validation. - * - * The validator is used to validate user input returned from elicitation - * requests against the requested schema. - * - * @default AjvJsonSchemaValidator - * - * @example - * ```typescript - * // ajv (default) - * const server = new Server( - * { name: 'my-server', version: '1.0.0' }, - * { - * capabilities: {} - * jsonSchemaValidator: new AjvJsonSchemaValidator() - * } - * ); - * - * // @cfworker/json-schema - * const server = new Server( - * { name: 'my-server', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new CfWorkerJsonSchemaValidator() - * } - * ); - * ``` - */ - jsonSchemaValidator?: jsonSchemaValidator; -}; -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed server - * const server = new Server({ - * name: "CustomServer", - * version: "1.0.0" - * }) - * ``` - * @deprecated Use `McpServer` instead for the high-level API. Only use `Server` for advanced use cases. - */ -export declare class Server extends Protocol { - private _serverInfo; - private _clientCapabilities?; - private _clientVersion?; - private _capabilities; - private _instructions?; - private _jsonSchemaValidator; - private _experimental?; - /** - * Callback for when initialization has fully completed (i.e., the client has sent an `initialized` notification). - */ - oninitialized?: () => void; - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo: Implementation, options?: ServerOptions); - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalServerTasks; - }; - private _loggingLevels; - private readonly LOG_LEVEL_SEVERITY; - private isMessageIgnored; - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities: ServerCapabilities): void; - /** - * Override request handler registration to enforce server-side validation for tools/call. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => ServerResult | ResultT | Promise): void; - protected assertCapabilityForMethod(method: RequestT['method']): void; - protected assertNotificationCapability(method: (ServerNotification | NotificationT)['method']): void; - protected assertRequestHandlerCapability(method: string): void; - protected assertTaskCapability(method: string): void; - protected assertTaskHandlerCapability(method: string): void; - private _oninitialize; - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities(): ClientCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion(): Implementation | undefined; - private getCapabilities; - ping(): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Request LLM sampling from the client (without tools). - * Returns single content block for backwards compatibility. - */ - createMessage(params: CreateMessageRequestParamsBase, options?: RequestOptions): Promise; - /** - * Request LLM sampling from the client with tool support. - * Returns content that may be a single block or array (for parallel tool calls). - */ - createMessage(params: CreateMessageRequestParamsWithTools, options?: RequestOptions): Promise; - /** - * Request LLM sampling from the client. - * When tools may or may not be present, returns the union type. - */ - createMessage(params: CreateMessageRequest['params'], options?: RequestOptions): Promise; - /** - * Creates an elicitation request for the given parameters. - * For backwards compatibility, `mode` may be omitted for form requests and will default to `'form'`. - * @param params The parameters for the elicitation request. - * @param options Optional request options. - * @returns The result of the elicitation request. - */ - elicitInput(params: ElicitRequestFormParams | ElicitRequestURLParams, options?: RequestOptions): Promise; - /** - * Creates a reusable callback that, when invoked, will send a `notifications/elicitation/complete` - * notification for the specified elicitation ID. - * - * @param elicitationId The ID of the elicitation to mark as complete. - * @param options Optional notification options. Useful when the completion notification should be related to a prior request. - * @returns A function that emits the completion notification when awaited. - */ - createElicitationCompletionNotifier(elicitationId: string, options?: NotificationOptions): () => Promise; - listRoots(params?: ListRootsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - roots: { - uri: string; - name?: string | undefined; - _meta?: Record | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string): Promise; - sendResourceUpdated(params: ResourceUpdatedNotification['params']): Promise; - sendResourceListChanged(): Promise; - sendToolListChanged(): Promise; - sendPromptListChanged(): Promise; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map deleted file mode 100644 index fe0fa65..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACzI,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EAExB,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAIjB,KAAK,cAAc,EAMnB,KAAK,gBAAgB,EAIrB,KAAK,0BAA0B,EAE/B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EAQjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,MAAM,EACd,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAkB,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EACH,eAAe,EAIf,YAAY,EAGf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1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MAAM,EAAE,uBAAuB,GAAG,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAgD5H;;;;;;;OAOG;IACH,mCAAmC,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;IAiBxG,SAAS,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;IAI7E;;;;;;OAMG;IACG,kBAAkB,CAAC,MAAM,EAAE,0BAA0B,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM;IAQnF,mBAAmB,CAAC,MAAM,EAAE,2BAA2B,CAAC,QAAQ,CAAC;IAOjE,uBAAuB;IAMvB,mBAAmB;IAInB,qBAAqB;CAG9B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js deleted file mode 100644 index e183dd4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +++ /dev/null @@ -1,444 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Server = void 0; -const protocol_js_1 = require("../shared/protocol.js"); -const types_js_1 = require("../types.js"); -const ajv_provider_js_1 = require("../validation/ajv-provider.js"); -const zod_compat_js_1 = require("./zod-compat.js"); -const server_js_1 = require("../experimental/tasks/server.js"); -const helpers_js_1 = require("../experimental/tasks/helpers.js"); -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed server - * const server = new Server({ - * name: "CustomServer", - * version: "1.0.0" - * }) - * ``` - * @deprecated Use `McpServer` instead for the high-level API. Only use `Server` for advanced use cases. - */ -class Server extends protocol_js_1.Protocol { - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo, options) { - super(options); - this._serverInfo = _serverInfo; - // Map log levels by session id - this._loggingLevels = new Map(); - // Map LogLevelSchema to severity index - this.LOG_LEVEL_SEVERITY = new Map(types_js_1.LoggingLevelSchema.options.map((level, index) => [level, index])); - // Is a message with the given level ignored in the log level set for the given session id? - this.isMessageIgnored = (level, sessionId) => { - const currentLevel = this._loggingLevels.get(sessionId); - return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false; - }; - this._capabilities = options?.capabilities ?? {}; - this._instructions = options?.instructions; - this._jsonSchemaValidator = options?.jsonSchemaValidator ?? new ajv_provider_js_1.AjvJsonSchemaValidator(); - this.setRequestHandler(types_js_1.InitializeRequestSchema, request => this._oninitialize(request)); - this.setNotificationHandler(types_js_1.InitializedNotificationSchema, () => this.oninitialized?.()); - if (this._capabilities.logging) { - this.setRequestHandler(types_js_1.SetLevelRequestSchema, async (request, extra) => { - const transportSessionId = extra.sessionId || extra.requestInfo?.headers['mcp-session-id'] || undefined; - const { level } = request.params; - const parseResult = types_js_1.LoggingLevelSchema.safeParse(level); - if (parseResult.success) { - this._loggingLevels.set(transportSessionId, parseResult.data); - } - return {}; - }); - } - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new server_js_1.ExperimentalServerTasks(this) - }; - } - return this._experimental; - } - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities) { - if (this.transport) { - throw new Error('Cannot register capabilities after connecting to transport'); - } - this._capabilities = (0, protocol_js_1.mergeCapabilities)(this._capabilities, capabilities); - } - /** - * Override request handler registration to enforce server-side validation for tools/call. - */ - setRequestHandler(requestSchema, handler) { - const shape = (0, zod_compat_js_1.getObjectShape)(requestSchema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value using type-safe property access - let methodValue; - if ((0, zod_compat_js_1.isZ4Schema)(methodSchema)) { - const v4Schema = methodSchema; - const v4Def = v4Schema._zod?.def; - methodValue = v4Def?.value ?? v4Schema.value; - } - else { - const v3Schema = methodSchema; - const legacyDef = v3Schema._def; - methodValue = legacyDef?.value ?? v3Schema.value; - } - if (typeof methodValue !== 'string') { - throw new Error('Schema method literal must be a string'); - } - const method = methodValue; - if (method === 'tools/call') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = (0, zod_compat_js_1.safeParse)(types_js_1.CallToolRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid tools/call request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = (0, zod_compat_js_1.safeParse)(types_js_1.CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against CallToolResultSchema - const validationResult = (0, zod_compat_js_1.safeParse)(types_js_1.CallToolResultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid tools/call result: ${errorMessage}`); - } - return validationResult.data; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - // Other handlers use default behavior - return super.setRequestHandler(requestSchema, handler); - } - assertCapabilityForMethod(method) { - switch (method) { - case 'sampling/createMessage': - if (!this._clientCapabilities?.sampling) { - throw new Error(`Client does not support sampling (required for ${method})`); - } - break; - case 'elicitation/create': - if (!this._clientCapabilities?.elicitation) { - throw new Error(`Client does not support elicitation (required for ${method})`); - } - break; - case 'roots/list': - if (!this._clientCapabilities?.roots) { - throw new Error(`Client does not support listing roots (required for ${method})`); - } - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertNotificationCapability(method) { - switch (method) { - case 'notifications/message': - if (!this._capabilities.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'notifications/resources/updated': - case 'notifications/resources/list_changed': - if (!this._capabilities.resources) { - throw new Error(`Server does not support notifying about resources (required for ${method})`); - } - break; - case 'notifications/tools/list_changed': - if (!this._capabilities.tools) { - throw new Error(`Server does not support notifying of tool list changes (required for ${method})`); - } - break; - case 'notifications/prompts/list_changed': - if (!this._capabilities.prompts) { - throw new Error(`Server does not support notifying of prompt list changes (required for ${method})`); - } - break; - case 'notifications/elicitation/complete': - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error(`Client does not support URL elicitation (required for ${method})`); - } - break; - case 'notifications/cancelled': - // Cancellation notifications are always allowed - break; - case 'notifications/progress': - // Progress notifications are always allowed - break; - } - } - assertRequestHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - switch (method) { - case 'completion/complete': - if (!this._capabilities.completions) { - throw new Error(`Server does not support completions (required for ${method})`); - } - break; - case 'logging/setLevel': - if (!this._capabilities.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'prompts/get': - case 'prompts/list': - if (!this._capabilities.prompts) { - throw new Error(`Server does not support prompts (required for ${method})`); - } - break; - case 'resources/list': - case 'resources/templates/list': - case 'resources/read': - if (!this._capabilities.resources) { - throw new Error(`Server does not support resources (required for ${method})`); - } - break; - case 'tools/call': - case 'tools/list': - if (!this._capabilities.tools) { - throw new Error(`Server does not support tools (required for ${method})`); - } - break; - case 'tasks/get': - case 'tasks/list': - case 'tasks/result': - case 'tasks/cancel': - if (!this._capabilities.tasks) { - throw new Error(`Server does not support tasks capability (required for ${method})`); - } - break; - case 'ping': - case 'initialize': - // No specific capability required for these methods - break; - } - } - assertTaskCapability(method) { - (0, helpers_js_1.assertClientRequestTaskCapability)(this._clientCapabilities?.tasks?.requests, method, 'Client'); - } - assertTaskHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - (0, helpers_js_1.assertToolsCallTaskCapability)(this._capabilities.tasks?.requests, method, 'Server'); - } - async _oninitialize(request) { - const requestedVersion = request.params.protocolVersion; - this._clientCapabilities = request.params.capabilities; - this._clientVersion = request.params.clientInfo; - const protocolVersion = types_js_1.SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion) ? requestedVersion : types_js_1.LATEST_PROTOCOL_VERSION; - return { - protocolVersion, - capabilities: this.getCapabilities(), - serverInfo: this._serverInfo, - ...(this._instructions && { instructions: this._instructions }) - }; - } - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities() { - return this._clientCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion() { - return this._clientVersion; - } - getCapabilities() { - return this._capabilities; - } - async ping() { - return this.request({ method: 'ping' }, types_js_1.EmptyResultSchema); - } - // Implementation - async createMessage(params, options) { - // Capability check - only required when tools/toolChoice are provided - if (params.tools || params.toolChoice) { - if (!this._clientCapabilities?.sampling?.tools) { - throw new Error('Client does not support sampling tools capability.'); - } - } - // Message structure validation - always validate tool_use/tool_result pairs. - // These may appear even without tools/toolChoice in the current request when - // a previous sampling request returned tool_use and this is a follow-up with results. - if (params.messages.length > 0) { - const lastMessage = params.messages[params.messages.length - 1]; - const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [lastMessage.content]; - const hasToolResults = lastContent.some(c => c.type === 'tool_result'); - const previousMessage = params.messages.length > 1 ? params.messages[params.messages.length - 2] : undefined; - const previousContent = previousMessage - ? Array.isArray(previousMessage.content) - ? previousMessage.content - : [previousMessage.content] - : []; - const hasPreviousToolUse = previousContent.some(c => c.type === 'tool_use'); - if (hasToolResults) { - if (lastContent.some(c => c.type !== 'tool_result')) { - throw new Error('The last message must contain only tool_result content if any is present'); - } - if (!hasPreviousToolUse) { - throw new Error('tool_result blocks are not matching any tool_use from the previous message'); - } - } - if (hasPreviousToolUse) { - const toolUseIds = new Set(previousContent.filter(c => c.type === 'tool_use').map(c => c.id)); - const toolResultIds = new Set(lastContent.filter(c => c.type === 'tool_result').map(c => c.toolUseId)); - if (toolUseIds.size !== toolResultIds.size || ![...toolUseIds].every(id => toolResultIds.has(id))) { - throw new Error('ids of tool_result blocks and tool_use blocks from previous message do not match'); - } - } - } - // Use different schemas based on whether tools are provided - if (params.tools) { - return this.request({ method: 'sampling/createMessage', params }, types_js_1.CreateMessageResultWithToolsSchema, options); - } - return this.request({ method: 'sampling/createMessage', params }, types_js_1.CreateMessageResultSchema, options); - } - /** - * Creates an elicitation request for the given parameters. - * For backwards compatibility, `mode` may be omitted for form requests and will default to `'form'`. - * @param params The parameters for the elicitation request. - * @param options Optional request options. - * @returns The result of the elicitation request. - */ - async elicitInput(params, options) { - const mode = (params.mode ?? 'form'); - switch (mode) { - case 'url': { - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error('Client does not support url elicitation.'); - } - const urlParams = params; - return this.request({ method: 'elicitation/create', params: urlParams }, types_js_1.ElicitResultSchema, options); - } - case 'form': { - if (!this._clientCapabilities?.elicitation?.form) { - throw new Error('Client does not support form elicitation.'); - } - const formParams = params.mode === 'form' ? params : { ...params, mode: 'form' }; - const result = await this.request({ method: 'elicitation/create', params: formParams }, types_js_1.ElicitResultSchema, options); - if (result.action === 'accept' && result.content && formParams.requestedSchema) { - try { - const validator = this._jsonSchemaValidator.getValidator(formParams.requestedSchema); - const validationResult = validator(result.content); - if (!validationResult.valid) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${validationResult.errorMessage}`); - } - } - catch (error) { - if (error instanceof types_js_1.McpError) { - throw error; - } - throw new types_js_1.McpError(types_js_1.ErrorCode.InternalError, `Error validating elicitation response: ${error instanceof Error ? error.message : String(error)}`); - } - } - return result; - } - } - } - /** - * Creates a reusable callback that, when invoked, will send a `notifications/elicitation/complete` - * notification for the specified elicitation ID. - * - * @param elicitationId The ID of the elicitation to mark as complete. - * @param options Optional notification options. Useful when the completion notification should be related to a prior request. - * @returns A function that emits the completion notification when awaited. - */ - createElicitationCompletionNotifier(elicitationId, options) { - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error('Client does not support URL elicitation (required for notifications/elicitation/complete)'); - } - return () => this.notification({ - method: 'notifications/elicitation/complete', - params: { - elicitationId - } - }, options); - } - async listRoots(params, options) { - return this.request({ method: 'roots/list', params }, types_js_1.ListRootsResultSchema, options); - } - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - async sendLoggingMessage(params, sessionId) { - if (this._capabilities.logging) { - if (!this.isMessageIgnored(params.level, sessionId)) { - return this.notification({ method: 'notifications/message', params }); - } - } - } - async sendResourceUpdated(params) { - return this.notification({ - method: 'notifications/resources/updated', - params - }); - } - async sendResourceListChanged() { - return this.notification({ - method: 'notifications/resources/list_changed' - }); - } - async sendToolListChanged() { - return this.notification({ method: 'notifications/tools/list_changed' }); - } - async sendPromptListChanged() { - return this.notification({ method: 'notifications/prompts/list_changed' }); - } -} -exports.Server = Server; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map deleted file mode 100644 index 32ed405..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":";;;AAAA,uDAAyI;AACzI,0CA0CqB;AACrB,mEAAuE;AAEvE,mDAQyB;AAEzB,+DAA0E;AAC1E,iEAAoH;AA6CpH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,MAIX,SAAQ,sBAA8F;IAapG;;OAEG;IACH,YACY,WAA2B,EACnC,OAAuB;QAEvB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHP,gBAAW,GAAX,WAAW,CAAgB;QAyCvC,+BAA+B;QACvB,mBAAc,GAAG,IAAI,GAAG,EAAoC,CAAC;QAErE,uCAAuC;QACtB,uBAAkB,GAAG,IAAI,GAAG,CAAC,6BAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAEhH,2FAA2F;QACnF,qBAAgB,GAAG,CAAC,KAAmB,EAAE,SAAkB,EAAW,EAAE;YAC5E,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACxD,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAE,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,CAAE,CAAC,CAAC,CAAC,KAAK,CAAC;QACnH,CAAC,CAAC;QA/CE,IAAI,CAAC,aAAa,GAAG,OAAO,EAAE,YAAY,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,OAAO,EAAE,YAAY,CAAC;QAC3C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,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,gCAAqB,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,kBAAkB,CAAC,MAA4C,EAAE,SAAkB;QACrF,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;gBAClD,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1E,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,MAA6C;QACnE,OAAO,IAAI,CAAC,YAAY,CAAC;YACrB,MAAM,EAAE,iCAAiC;YACzC,MAAM;SACT,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,uBAAuB;QACzB,OAAO,IAAI,CAAC,YAAY,CAAC;YACrB,MAAM,EAAE,sCAAsC;SACjD,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,kCAAkC,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,qBAAqB;QACvB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,oCAAoC,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ;AA5hBD,wBA4hBC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts deleted file mode 100644 index 1bc0c68..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +++ /dev/null @@ -1,364 +0,0 @@ -import { Server, ServerOptions } from './index.js'; -import { AnySchema, AnyObjectSchema, ZodRawShapeCompat, SchemaOutput, ShapeOutput } from './zod-compat.js'; -import { Implementation, CallToolResult, Resource, ListResourcesResult, GetPromptResult, ReadResourceResult, ServerRequest, ServerNotification, ToolAnnotations, LoggingMessageNotification, Result, ToolExecution } from '../types.js'; -import { UriTemplate, Variables } from '../shared/uriTemplate.js'; -import { RequestHandlerExtra } from '../shared/protocol.js'; -import { Transport } from '../shared/transport.js'; -import { ExperimentalMcpServerTasks } from '../experimental/tasks/mcp-server.js'; -import type { ToolTaskHandler } from '../experimental/tasks/interfaces.js'; -/** - * High-level MCP server that provides a simpler API for working with resources, tools, and prompts. - * For advanced usage (like sending notifications or setting custom request handlers), use the underlying - * Server instance available via the `server` property. - */ -export declare class McpServer { - /** - * The underlying Server instance, useful for advanced operations like sending notifications. - */ - readonly server: Server; - private _registeredResources; - private _registeredResourceTemplates; - private _registeredTools; - private _registeredPrompts; - private _experimental?; - constructor(serverInfo: Implementation, options?: ServerOptions); - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalMcpServerTasks; - }; - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - connect(transport: Transport): Promise; - /** - * Closes the connection. - */ - close(): Promise; - private _toolHandlersInitialized; - private setToolRequestHandlers; - /** - * Creates a tool error result. - * - * @param errorMessage - The error message. - * @returns The tool error result. - */ - private createToolError; - /** - * Validates tool input arguments against the tool's input schema. - */ - private validateToolInput; - /** - * Validates tool output against the tool's output schema. - */ - private validateToolOutput; - /** - * Executes a tool handler (either regular or task-based). - */ - private executeToolHandler; - /** - * Handles automatic task polling for tools with taskSupport 'optional'. - */ - private handleAutomaticTaskPolling; - private _completionHandlerInitialized; - private setCompletionRequestHandler; - private handlePromptCompletion; - private handleResourceCompletion; - private _resourceHandlersInitialized; - private setResourceRequestHandlers; - private _promptHandlersInitialized; - private setPromptRequestHandlers; - /** - * Registers a resource `name` at a fixed URI, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, uri: string, readCallback: ReadResourceCallback): RegisteredResource; - /** - * Registers a resource `name` at a fixed URI with metadata, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, uri: string, metadata: ResourceMetadata, readCallback: ReadResourceCallback): RegisteredResource; - /** - * Registers a resource `name` with a template pattern, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, template: ResourceTemplate, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - /** - * Registers a resource `name` with a template pattern and metadata, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, template: ResourceTemplate, metadata: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - /** - * Registers a resource with a config object and callback. - * For static resources, use a URI string. For dynamic resources, use a ResourceTemplate. - */ - registerResource(name: string, uriOrTemplate: string, config: ResourceMetadata, readCallback: ReadResourceCallback): RegisteredResource; - registerResource(name: string, uriOrTemplate: ResourceTemplate, config: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - private _createRegisteredResource; - private _createRegisteredResourceTemplate; - private _createRegisteredPrompt; - private _createRegisteredTool; - /** - * Registers a zero-argument tool `name`, which will run the given function when the client calls it. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, cb: ToolCallback): RegisteredTool; - /** - * Registers a zero-argument tool `name` (with a description) which will run the given function when the client calls it. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool taking either a parameter schema for validation or annotations for additional metadata. - * This unified overload handles both `tool(name, paramsSchema, cb)` and `tool(name, annotations, cb)` cases. - * - * Note: We use a union type for the second parameter because TypeScript cannot reliably disambiguate - * between ToolAnnotations and ZodRawShapeCompat during overload resolution, as both are plain object types. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool `name` (with a description) taking either parameter schema or annotations. - * This unified overload handles both `tool(name, description, paramsSchema, cb)` and - * `tool(name, description, annotations, cb)` cases. - * - * Note: We use a union type for the third parameter because TypeScript cannot reliably disambiguate - * between ToolAnnotations and ZodRawShapeCompat during overload resolution, as both are plain object types. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with both parameter schema and annotations. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with description, parameter schema, and annotations. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with a config object and callback. - */ - registerTool(name: string, config: { - title?: string; - description?: string; - inputSchema?: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - _meta?: Record; - }, cb: ToolCallback): RegisteredTool; - /** - * Registers a zero-argument prompt `name`, which will run the given function when the client calls it. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a zero-argument prompt `name` (with a description) which will run the given function when the client calls it. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, description: string, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt `name` accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, argsSchema: Args, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt `name` (with a description) accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, description: string, argsSchema: Args, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt with a config object and callback. - */ - registerPrompt(name: string, config: { - title?: string; - description?: string; - argsSchema?: Args; - }, cb: PromptCallback): RegisteredPrompt; - /** - * Checks if the server is connected to a transport. - * @returns True if the server is connected - */ - isConnected(): boolean; - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string): Promise; - /** - * Sends a resource list changed event to the client, if connected. - */ - sendResourceListChanged(): void; - /** - * Sends a tool list changed event to the client, if connected. - */ - sendToolListChanged(): void; - /** - * Sends a prompt list changed event to the client, if connected. - */ - sendPromptListChanged(): void; -} -/** - * A callback to complete one variable within a resource template's URI template. - */ -export type CompleteResourceTemplateCallback = (value: string, context?: { - arguments?: Record; -}) => string[] | Promise; -/** - * A resource template combines a URI pattern with optional functionality to enumerate - * all resources matching that pattern. - */ -export declare class ResourceTemplate { - private _callbacks; - private _uriTemplate; - constructor(uriTemplate: string | UriTemplate, _callbacks: { - /** - * A callback to list all resources matching this template. This is required to specified, even if `undefined`, to avoid accidentally forgetting resource listing. - */ - list: ListResourcesCallback | undefined; - /** - * An optional callback to autocomplete variables within the URI template. Useful for clients and users to discover possible values. - */ - complete?: { - [variable: string]: CompleteResourceTemplateCallback; - }; - }); - /** - * Gets the URI template pattern. - */ - get uriTemplate(): UriTemplate; - /** - * Gets the list callback, if one was provided. - */ - get listCallback(): ListResourcesCallback | undefined; - /** - * Gets the callback for completing a specific URI template variable, if one was provided. - */ - completeCallback(variable: string): CompleteResourceTemplateCallback | undefined; -} -export type BaseToolCallback, Args extends undefined | ZodRawShapeCompat | AnySchema> = Args extends ZodRawShapeCompat ? (args: ShapeOutput, extra: Extra) => SendResultT | Promise : Args extends AnySchema ? (args: SchemaOutput, extra: Extra) => SendResultT | Promise : (extra: Extra) => SendResultT | Promise; -/** - * Callback for a tool handler registered with Server.tool(). - * - * Parameters will include tool arguments, if applicable, as well as other request handler context. - * - * The callback should return: - * - `structuredContent` if the tool has an outputSchema defined - * - `content` if the tool does not have an outputSchema - * - Both fields are optional but typically one should be provided - */ -export type ToolCallback = BaseToolCallback, Args>; -/** - * Supertype that can handle both regular tools (simple callback) and task-based tools (task handler object). - */ -export type AnyToolHandler = ToolCallback | ToolTaskHandler; -export type RegisteredTool = { - title?: string; - description?: string; - inputSchema?: AnySchema; - outputSchema?: AnySchema; - annotations?: ToolAnnotations; - execution?: ToolExecution; - _meta?: Record; - handler: AnyToolHandler; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - description?: string; - paramsSchema?: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - _meta?: Record; - callback?: ToolCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -/** - * Additional, optional information for annotating a resource. - */ -export type ResourceMetadata = Omit; -/** - * Callback to list all resources matching a given template. - */ -export type ListResourcesCallback = (extra: RequestHandlerExtra) => ListResourcesResult | Promise; -/** - * Callback to read a resource at a given URI. - */ -export type ReadResourceCallback = (uri: URL, extra: RequestHandlerExtra) => ReadResourceResult | Promise; -export type RegisteredResource = { - name: string; - title?: string; - metadata?: ResourceMetadata; - readCallback: ReadResourceCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string; - title?: string; - uri?: string | null; - metadata?: ResourceMetadata; - callback?: ReadResourceCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -/** - * Callback to read a resource at a given URI, following a filled-in URI template. - */ -export type ReadResourceTemplateCallback = (uri: URL, variables: Variables, extra: RequestHandlerExtra) => ReadResourceResult | Promise; -export type RegisteredResourceTemplate = { - resourceTemplate: ResourceTemplate; - title?: string; - metadata?: ResourceMetadata; - readCallback: ReadResourceTemplateCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - template?: ResourceTemplate; - metadata?: ResourceMetadata; - callback?: ReadResourceTemplateCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -type PromptArgsRawShape = ZodRawShapeCompat; -export type PromptCallback = Args extends PromptArgsRawShape ? (args: ShapeOutput, extra: RequestHandlerExtra) => GetPromptResult | Promise : (extra: RequestHandlerExtra) => GetPromptResult | Promise; -export type RegisteredPrompt = { - title?: string; - description?: string; - argsSchema?: AnyObjectSchema; - callback: PromptCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - description?: string; - argsSchema?: Args; - callback?: PromptCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -export {}; -//# sourceMappingURL=mcp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map deleted file mode 100644 index 0b460bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/server/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EACH,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,WAAW,EASd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,cAAc,EAGd,cAAc,EAOd,QAAQ,EACR,mBAAmB,EAYnB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAE1B,MAAM,EAMN,aAAa,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uB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AAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,IAAI,CAAC;QAClB,QAAQ,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;KACrB,GAAG,IAAI,CAAC;IACT,MAAM,IAAI,IAAI,CAAC;CAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js deleted file mode 100644 index e10bb3d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +++ /dev/null @@ -1,918 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResourceTemplate = exports.McpServer = void 0; -const index_js_1 = require("./index.js"); -const zod_compat_js_1 = require("./zod-compat.js"); -const zod_json_schema_compat_js_1 = require("./zod-json-schema-compat.js"); -const types_js_1 = require("../types.js"); -const completable_js_1 = require("./completable.js"); -const uriTemplate_js_1 = require("../shared/uriTemplate.js"); -const toolNameValidation_js_1 = require("../shared/toolNameValidation.js"); -const mcp_server_js_1 = require("../experimental/tasks/mcp-server.js"); -const zod_1 = require("zod"); -/** - * High-level MCP server that provides a simpler API for working with resources, tools, and prompts. - * For advanced usage (like sending notifications or setting custom request handlers), use the underlying - * Server instance available via the `server` property. - */ -class McpServer { - constructor(serverInfo, options) { - this._registeredResources = {}; - this._registeredResourceTemplates = {}; - this._registeredTools = {}; - this._registeredPrompts = {}; - this._toolHandlersInitialized = false; - this._completionHandlerInitialized = false; - this._resourceHandlersInitialized = false; - this._promptHandlersInitialized = false; - this.server = new index_js_1.Server(serverInfo, options); - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new mcp_server_js_1.ExperimentalMcpServerTasks(this) - }; - } - return this._experimental; - } - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - async connect(transport) { - return await this.server.connect(transport); - } - /** - * Closes the connection. - */ - async close() { - await this.server.close(); - } - setToolRequestHandlers() { - if (this._toolHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.ListToolsRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.CallToolRequestSchema)); - this.server.registerCapabilities({ - tools: { - listChanged: true - } - }); - this.server.setRequestHandler(types_js_1.ListToolsRequestSchema, () => ({ - tools: Object.entries(this._registeredTools) - .filter(([, tool]) => tool.enabled) - .map(([name, tool]) => { - const toolDefinition = { - name, - title: tool.title, - description: tool.description, - inputSchema: (() => { - const obj = (0, zod_compat_js_1.normalizeObjectSchema)(tool.inputSchema); - return obj - ? (0, zod_json_schema_compat_js_1.toJsonSchemaCompat)(obj, { - strictUnions: true, - pipeStrategy: 'input' - }) - : EMPTY_OBJECT_JSON_SCHEMA; - })(), - annotations: tool.annotations, - execution: tool.execution, - _meta: tool._meta - }; - if (tool.outputSchema) { - const obj = (0, zod_compat_js_1.normalizeObjectSchema)(tool.outputSchema); - if (obj) { - toolDefinition.outputSchema = (0, zod_json_schema_compat_js_1.toJsonSchemaCompat)(obj, { - strictUnions: true, - pipeStrategy: 'output' - }); - } - } - return toolDefinition; - }) - })); - this.server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request, extra) => { - try { - const tool = this._registeredTools[request.params.name]; - if (!tool) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Tool ${request.params.name} not found`); - } - if (!tool.enabled) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Tool ${request.params.name} disabled`); - } - const isTaskRequest = !!request.params.task; - const taskSupport = tool.execution?.taskSupport; - const isTaskHandler = 'createTask' in tool.handler; - // Validate task hint configuration - if ((taskSupport === 'required' || taskSupport === 'optional') && !isTaskHandler) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InternalError, `Tool ${request.params.name} has taskSupport '${taskSupport}' but was not registered with registerToolTask`); - } - // Handle taskSupport 'required' without task augmentation - if (taskSupport === 'required' && !isTaskRequest) { - throw new types_js_1.McpError(types_js_1.ErrorCode.MethodNotFound, `Tool ${request.params.name} requires task augmentation (taskSupport: 'required')`); - } - // Handle taskSupport 'optional' without task augmentation - automatic polling - if (taskSupport === 'optional' && !isTaskRequest && isTaskHandler) { - return await this.handleAutomaticTaskPolling(tool, request, extra); - } - // Normal execution path - const args = await this.validateToolInput(tool, request.params.arguments, request.params.name); - const result = await this.executeToolHandler(tool, args, extra); - // Return CreateTaskResult immediately for task requests - if (isTaskRequest) { - return result; - } - // Validate output schema for non-task requests - await this.validateToolOutput(tool, result, request.params.name); - return result; - } - catch (error) { - if (error instanceof types_js_1.McpError) { - if (error.code === types_js_1.ErrorCode.UrlElicitationRequired) { - throw error; // Return the error to the caller without wrapping in CallToolResult - } - } - return this.createToolError(error instanceof Error ? error.message : String(error)); - } - }); - this._toolHandlersInitialized = true; - } - /** - * Creates a tool error result. - * - * @param errorMessage - The error message. - * @returns The tool error result. - */ - createToolError(errorMessage) { - return { - content: [ - { - type: 'text', - text: errorMessage - } - ], - isError: true - }; - } - /** - * Validates tool input arguments against the tool's input schema. - */ - async validateToolInput(tool, args, toolName) { - if (!tool.inputSchema) { - return undefined; - } - // Try to normalize to object schema first (for raw shapes and object schemas) - // If that fails, use the schema directly (for union/intersection/etc) - const inputObj = (0, zod_compat_js_1.normalizeObjectSchema)(tool.inputSchema); - const schemaToParse = inputObj ?? tool.inputSchema; - const parseResult = await (0, zod_compat_js_1.safeParseAsync)(schemaToParse, args); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = (0, zod_compat_js_1.getParseErrorMessage)(error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Input validation error: Invalid arguments for tool ${toolName}: ${errorMessage}`); - } - return parseResult.data; - } - /** - * Validates tool output against the tool's output schema. - */ - async validateToolOutput(tool, result, toolName) { - if (!tool.outputSchema) { - return; - } - // Only validate CallToolResult, not CreateTaskResult - if (!('content' in result)) { - return; - } - if (result.isError) { - return; - } - if (!result.structuredContent) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Output validation error: Tool ${toolName} has an output schema but no structured content was provided`); - } - // if the tool has an output schema, validate structured content - const outputObj = (0, zod_compat_js_1.normalizeObjectSchema)(tool.outputSchema); - const parseResult = await (0, zod_compat_js_1.safeParseAsync)(outputObj, result.structuredContent); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = (0, zod_compat_js_1.getParseErrorMessage)(error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Output validation error: Invalid structured content for tool ${toolName}: ${errorMessage}`); - } - } - /** - * Executes a tool handler (either regular or task-based). - */ - async executeToolHandler(tool, args, extra) { - const handler = tool.handler; - const isTaskHandler = 'createTask' in handler; - if (isTaskHandler) { - if (!extra.taskStore) { - throw new Error('No task store provided.'); - } - const taskExtra = { ...extra, taskStore: extra.taskStore }; - if (tool.inputSchema) { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler.createTask(args, taskExtra)); - } - else { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler.createTask(taskExtra)); - } - } - if (tool.inputSchema) { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler(args, extra)); - } - else { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler(extra)); - } - } - /** - * Handles automatic task polling for tools with taskSupport 'optional'. - */ - async handleAutomaticTaskPolling(tool, request, extra) { - if (!extra.taskStore) { - throw new Error('No task store provided for task-capable tool.'); - } - // Validate input and create task - const args = await this.validateToolInput(tool, request.params.arguments, request.params.name); - const handler = tool.handler; - const taskExtra = { ...extra, taskStore: extra.taskStore }; - const createTaskResult = args // undefined only if tool.inputSchema is undefined - ? await Promise.resolve(handler.createTask(args, taskExtra)) - : // eslint-disable-next-line @typescript-eslint/no-explicit-any - await Promise.resolve(handler.createTask(taskExtra)); - // Poll until completion - const taskId = createTaskResult.task.taskId; - let task = createTaskResult.task; - const pollInterval = task.pollInterval ?? 5000; - while (task.status !== 'completed' && task.status !== 'failed' && task.status !== 'cancelled') { - await new Promise(resolve => setTimeout(resolve, pollInterval)); - const updatedTask = await extra.taskStore.getTask(taskId); - if (!updatedTask) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InternalError, `Task ${taskId} not found during polling`); - } - task = updatedTask; - } - // Return the final result - return (await extra.taskStore.getTaskResult(taskId)); - } - setCompletionRequestHandler() { - if (this._completionHandlerInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.CompleteRequestSchema)); - this.server.registerCapabilities({ - completions: {} - }); - this.server.setRequestHandler(types_js_1.CompleteRequestSchema, async (request) => { - switch (request.params.ref.type) { - case 'ref/prompt': - (0, types_js_1.assertCompleteRequestPrompt)(request); - return this.handlePromptCompletion(request, request.params.ref); - case 'ref/resource': - (0, types_js_1.assertCompleteRequestResourceTemplate)(request); - return this.handleResourceCompletion(request, request.params.ref); - default: - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid completion reference: ${request.params.ref}`); - } - }); - this._completionHandlerInitialized = true; - } - async handlePromptCompletion(request, ref) { - const prompt = this._registeredPrompts[ref.name]; - if (!prompt) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Prompt ${ref.name} not found`); - } - if (!prompt.enabled) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Prompt ${ref.name} disabled`); - } - if (!prompt.argsSchema) { - return EMPTY_COMPLETION_RESULT; - } - const promptShape = (0, zod_compat_js_1.getObjectShape)(prompt.argsSchema); - const field = promptShape?.[request.params.argument.name]; - if (!(0, completable_js_1.isCompletable)(field)) { - return EMPTY_COMPLETION_RESULT; - } - const completer = (0, completable_js_1.getCompleter)(field); - if (!completer) { - return EMPTY_COMPLETION_RESULT; - } - const suggestions = await completer(request.params.argument.value, request.params.context); - return createCompletionResult(suggestions); - } - async handleResourceCompletion(request, ref) { - const template = Object.values(this._registeredResourceTemplates).find(t => t.resourceTemplate.uriTemplate.toString() === ref.uri); - if (!template) { - if (this._registeredResources[ref.uri]) { - // Attempting to autocomplete a fixed resource URI is not an error in the spec (but probably should be). - return EMPTY_COMPLETION_RESULT; - } - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Resource template ${request.params.ref.uri} not found`); - } - const completer = template.resourceTemplate.completeCallback(request.params.argument.name); - if (!completer) { - return EMPTY_COMPLETION_RESULT; - } - const suggestions = await completer(request.params.argument.value, request.params.context); - return createCompletionResult(suggestions); - } - setResourceRequestHandlers() { - if (this._resourceHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.ListResourcesRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.ListResourceTemplatesRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.ReadResourceRequestSchema)); - this.server.registerCapabilities({ - resources: { - listChanged: true - } - }); - this.server.setRequestHandler(types_js_1.ListResourcesRequestSchema, async (request, extra) => { - const resources = Object.entries(this._registeredResources) - .filter(([_, resource]) => resource.enabled) - .map(([uri, resource]) => ({ - uri, - name: resource.name, - ...resource.metadata - })); - const templateResources = []; - for (const template of Object.values(this._registeredResourceTemplates)) { - if (!template.resourceTemplate.listCallback) { - continue; - } - const result = await template.resourceTemplate.listCallback(extra); - for (const resource of result.resources) { - templateResources.push({ - ...template.metadata, - // the defined resource metadata should override the template metadata if present - ...resource - }); - } - } - return { resources: [...resources, ...templateResources] }; - }); - this.server.setRequestHandler(types_js_1.ListResourceTemplatesRequestSchema, async () => { - const resourceTemplates = Object.entries(this._registeredResourceTemplates).map(([name, template]) => ({ - name, - uriTemplate: template.resourceTemplate.uriTemplate.toString(), - ...template.metadata - })); - return { resourceTemplates }; - }); - this.server.setRequestHandler(types_js_1.ReadResourceRequestSchema, async (request, extra) => { - const uri = new URL(request.params.uri); - // First check for exact resource match - const resource = this._registeredResources[uri.toString()]; - if (resource) { - if (!resource.enabled) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Resource ${uri} disabled`); - } - return resource.readCallback(uri, extra); - } - // Then check templates - for (const template of Object.values(this._registeredResourceTemplates)) { - const variables = template.resourceTemplate.uriTemplate.match(uri.toString()); - if (variables) { - return template.readCallback(uri, variables, extra); - } - } - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Resource ${uri} not found`); - }); - this._resourceHandlersInitialized = true; - } - setPromptRequestHandlers() { - if (this._promptHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.ListPromptsRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(types_js_1.GetPromptRequestSchema)); - this.server.registerCapabilities({ - prompts: { - listChanged: true - } - }); - this.server.setRequestHandler(types_js_1.ListPromptsRequestSchema, () => ({ - prompts: Object.entries(this._registeredPrompts) - .filter(([, prompt]) => prompt.enabled) - .map(([name, prompt]) => { - return { - name, - title: prompt.title, - description: prompt.description, - arguments: prompt.argsSchema ? promptArgumentsFromSchema(prompt.argsSchema) : undefined - }; - }) - })); - this.server.setRequestHandler(types_js_1.GetPromptRequestSchema, async (request, extra) => { - const prompt = this._registeredPrompts[request.params.name]; - if (!prompt) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Prompt ${request.params.name} not found`); - } - if (!prompt.enabled) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Prompt ${request.params.name} disabled`); - } - if (prompt.argsSchema) { - const argsObj = (0, zod_compat_js_1.normalizeObjectSchema)(prompt.argsSchema); - const parseResult = await (0, zod_compat_js_1.safeParseAsync)(argsObj, request.params.arguments); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = (0, zod_compat_js_1.getParseErrorMessage)(error); - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Invalid arguments for prompt ${request.params.name}: ${errorMessage}`); - } - const args = parseResult.data; - const cb = prompt.callback; - return await Promise.resolve(cb(args, extra)); - } - else { - const cb = prompt.callback; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(cb(extra)); - } - }); - this._promptHandlersInitialized = true; - } - resource(name, uriOrTemplate, ...rest) { - let metadata; - if (typeof rest[0] === 'object') { - metadata = rest.shift(); - } - const readCallback = rest[0]; - if (typeof uriOrTemplate === 'string') { - if (this._registeredResources[uriOrTemplate]) { - throw new Error(`Resource ${uriOrTemplate} is already registered`); - } - const registeredResource = this._createRegisteredResource(name, undefined, uriOrTemplate, metadata, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResource; - } - else { - if (this._registeredResourceTemplates[name]) { - throw new Error(`Resource template ${name} is already registered`); - } - const registeredResourceTemplate = this._createRegisteredResourceTemplate(name, undefined, uriOrTemplate, metadata, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResourceTemplate; - } - } - registerResource(name, uriOrTemplate, config, readCallback) { - if (typeof uriOrTemplate === 'string') { - if (this._registeredResources[uriOrTemplate]) { - throw new Error(`Resource ${uriOrTemplate} is already registered`); - } - const registeredResource = this._createRegisteredResource(name, config.title, uriOrTemplate, config, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResource; - } - else { - if (this._registeredResourceTemplates[name]) { - throw new Error(`Resource template ${name} is already registered`); - } - const registeredResourceTemplate = this._createRegisteredResourceTemplate(name, config.title, uriOrTemplate, config, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResourceTemplate; - } - } - _createRegisteredResource(name, title, uri, metadata, readCallback) { - const registeredResource = { - name, - title, - metadata, - readCallback, - enabled: true, - disable: () => registeredResource.update({ enabled: false }), - enable: () => registeredResource.update({ enabled: true }), - remove: () => registeredResource.update({ uri: null }), - update: updates => { - if (typeof updates.uri !== 'undefined' && updates.uri !== uri) { - delete this._registeredResources[uri]; - if (updates.uri) - this._registeredResources[updates.uri] = registeredResource; - } - if (typeof updates.name !== 'undefined') - registeredResource.name = updates.name; - if (typeof updates.title !== 'undefined') - registeredResource.title = updates.title; - if (typeof updates.metadata !== 'undefined') - registeredResource.metadata = updates.metadata; - if (typeof updates.callback !== 'undefined') - registeredResource.readCallback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredResource.enabled = updates.enabled; - this.sendResourceListChanged(); - } - }; - this._registeredResources[uri] = registeredResource; - return registeredResource; - } - _createRegisteredResourceTemplate(name, title, template, metadata, readCallback) { - const registeredResourceTemplate = { - resourceTemplate: template, - title, - metadata, - readCallback, - enabled: true, - disable: () => registeredResourceTemplate.update({ enabled: false }), - enable: () => registeredResourceTemplate.update({ enabled: true }), - remove: () => registeredResourceTemplate.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - delete this._registeredResourceTemplates[name]; - if (updates.name) - this._registeredResourceTemplates[updates.name] = registeredResourceTemplate; - } - if (typeof updates.title !== 'undefined') - registeredResourceTemplate.title = updates.title; - if (typeof updates.template !== 'undefined') - registeredResourceTemplate.resourceTemplate = updates.template; - if (typeof updates.metadata !== 'undefined') - registeredResourceTemplate.metadata = updates.metadata; - if (typeof updates.callback !== 'undefined') - registeredResourceTemplate.readCallback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredResourceTemplate.enabled = updates.enabled; - this.sendResourceListChanged(); - } - }; - this._registeredResourceTemplates[name] = registeredResourceTemplate; - // If the resource template has any completion callbacks, enable completions capability - const variableNames = template.uriTemplate.variableNames; - const hasCompleter = Array.isArray(variableNames) && variableNames.some(v => !!template.completeCallback(v)); - if (hasCompleter) { - this.setCompletionRequestHandler(); - } - return registeredResourceTemplate; - } - _createRegisteredPrompt(name, title, description, argsSchema, callback) { - const registeredPrompt = { - title, - description, - argsSchema: argsSchema === undefined ? undefined : (0, zod_compat_js_1.objectFromShape)(argsSchema), - callback, - enabled: true, - disable: () => registeredPrompt.update({ enabled: false }), - enable: () => registeredPrompt.update({ enabled: true }), - remove: () => registeredPrompt.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - delete this._registeredPrompts[name]; - if (updates.name) - this._registeredPrompts[updates.name] = registeredPrompt; - } - if (typeof updates.title !== 'undefined') - registeredPrompt.title = updates.title; - if (typeof updates.description !== 'undefined') - registeredPrompt.description = updates.description; - if (typeof updates.argsSchema !== 'undefined') - registeredPrompt.argsSchema = (0, zod_compat_js_1.objectFromShape)(updates.argsSchema); - if (typeof updates.callback !== 'undefined') - registeredPrompt.callback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredPrompt.enabled = updates.enabled; - this.sendPromptListChanged(); - } - }; - this._registeredPrompts[name] = registeredPrompt; - // If any argument uses a Completable schema, enable completions capability - if (argsSchema) { - const hasCompletable = Object.values(argsSchema).some(field => { - const inner = field instanceof zod_1.ZodOptional ? field._def?.innerType : field; - return (0, completable_js_1.isCompletable)(inner); - }); - if (hasCompletable) { - this.setCompletionRequestHandler(); - } - } - return registeredPrompt; - } - _createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, execution, _meta, handler) { - // Validate tool name according to SEP specification - (0, toolNameValidation_js_1.validateAndWarnToolName)(name); - const registeredTool = { - title, - description, - inputSchema: getZodSchemaObject(inputSchema), - outputSchema: getZodSchemaObject(outputSchema), - annotations, - execution, - _meta, - handler: handler, - enabled: true, - disable: () => registeredTool.update({ enabled: false }), - enable: () => registeredTool.update({ enabled: true }), - remove: () => registeredTool.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - if (typeof updates.name === 'string') { - (0, toolNameValidation_js_1.validateAndWarnToolName)(updates.name); - } - delete this._registeredTools[name]; - if (updates.name) - this._registeredTools[updates.name] = registeredTool; - } - if (typeof updates.title !== 'undefined') - registeredTool.title = updates.title; - if (typeof updates.description !== 'undefined') - registeredTool.description = updates.description; - if (typeof updates.paramsSchema !== 'undefined') - registeredTool.inputSchema = (0, zod_compat_js_1.objectFromShape)(updates.paramsSchema); - if (typeof updates.outputSchema !== 'undefined') - registeredTool.outputSchema = (0, zod_compat_js_1.objectFromShape)(updates.outputSchema); - if (typeof updates.callback !== 'undefined') - registeredTool.handler = updates.callback; - if (typeof updates.annotations !== 'undefined') - registeredTool.annotations = updates.annotations; - if (typeof updates._meta !== 'undefined') - registeredTool._meta = updates._meta; - if (typeof updates.enabled !== 'undefined') - registeredTool.enabled = updates.enabled; - this.sendToolListChanged(); - } - }; - this._registeredTools[name] = registeredTool; - this.setToolRequestHandlers(); - this.sendToolListChanged(); - return registeredTool; - } - /** - * tool() implementation. Parses arguments passed to overrides defined above. - */ - tool(name, ...rest) { - if (this._registeredTools[name]) { - throw new Error(`Tool ${name} is already registered`); - } - let description; - let inputSchema; - let outputSchema; - let annotations; - // Tool properties are passed as separate arguments, with omissions allowed. - // Support for this style is frozen as of protocol version 2025-03-26. Future additions - // to tool definition should *NOT* be added. - if (typeof rest[0] === 'string') { - description = rest.shift(); - } - // Handle the different overload combinations - if (rest.length > 1) { - // We have at least one more arg before the callback - const firstArg = rest[0]; - if (isZodRawShapeCompat(firstArg)) { - // We have a params schema as the first arg - inputSchema = rest.shift(); - // Check if the next arg is potentially annotations - if (rest.length > 1 && typeof rest[0] === 'object' && rest[0] !== null && !isZodRawShapeCompat(rest[0])) { - // Case: tool(name, paramsSchema, annotations, cb) - // Or: tool(name, description, paramsSchema, annotations, cb) - annotations = rest.shift(); - } - } - else if (typeof firstArg === 'object' && firstArg !== null) { - // Not a ZodRawShapeCompat, so must be annotations in this position - // Case: tool(name, annotations, cb) - // Or: tool(name, description, annotations, cb) - annotations = rest.shift(); - } - } - const callback = rest[0]; - return this._createRegisteredTool(name, undefined, description, inputSchema, outputSchema, annotations, { taskSupport: 'forbidden' }, undefined, callback); - } - /** - * Registers a tool with a config object and callback. - */ - registerTool(name, config, cb) { - if (this._registeredTools[name]) { - throw new Error(`Tool ${name} is already registered`); - } - const { title, description, inputSchema, outputSchema, annotations, _meta } = config; - return this._createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, { taskSupport: 'forbidden' }, _meta, cb); - } - prompt(name, ...rest) { - if (this._registeredPrompts[name]) { - throw new Error(`Prompt ${name} is already registered`); - } - let description; - if (typeof rest[0] === 'string') { - description = rest.shift(); - } - let argsSchema; - if (rest.length > 1) { - argsSchema = rest.shift(); - } - const cb = rest[0]; - const registeredPrompt = this._createRegisteredPrompt(name, undefined, description, argsSchema, cb); - this.setPromptRequestHandlers(); - this.sendPromptListChanged(); - return registeredPrompt; - } - /** - * Registers a prompt with a config object and callback. - */ - registerPrompt(name, config, cb) { - if (this._registeredPrompts[name]) { - throw new Error(`Prompt ${name} is already registered`); - } - const { title, description, argsSchema } = config; - const registeredPrompt = this._createRegisteredPrompt(name, title, description, argsSchema, cb); - this.setPromptRequestHandlers(); - this.sendPromptListChanged(); - return registeredPrompt; - } - /** - * Checks if the server is connected to a transport. - * @returns True if the server is connected - */ - isConnected() { - return this.server.transport !== undefined; - } - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - async sendLoggingMessage(params, sessionId) { - return this.server.sendLoggingMessage(params, sessionId); - } - /** - * Sends a resource list changed event to the client, if connected. - */ - sendResourceListChanged() { - if (this.isConnected()) { - this.server.sendResourceListChanged(); - } - } - /** - * Sends a tool list changed event to the client, if connected. - */ - sendToolListChanged() { - if (this.isConnected()) { - this.server.sendToolListChanged(); - } - } - /** - * Sends a prompt list changed event to the client, if connected. - */ - sendPromptListChanged() { - if (this.isConnected()) { - this.server.sendPromptListChanged(); - } - } -} -exports.McpServer = McpServer; -/** - * A resource template combines a URI pattern with optional functionality to enumerate - * all resources matching that pattern. - */ -class ResourceTemplate { - constructor(uriTemplate, _callbacks) { - this._callbacks = _callbacks; - this._uriTemplate = typeof uriTemplate === 'string' ? new uriTemplate_js_1.UriTemplate(uriTemplate) : uriTemplate; - } - /** - * Gets the URI template pattern. - */ - get uriTemplate() { - return this._uriTemplate; - } - /** - * Gets the list callback, if one was provided. - */ - get listCallback() { - return this._callbacks.list; - } - /** - * Gets the callback for completing a specific URI template variable, if one was provided. - */ - completeCallback(variable) { - return this._callbacks.complete?.[variable]; - } -} -exports.ResourceTemplate = ResourceTemplate; -const EMPTY_OBJECT_JSON_SCHEMA = { - type: 'object', - properties: {} -}; -/** - * Checks if a value looks like a Zod schema by checking for parse/safeParse methods. - */ -function isZodTypeLike(value) { - return (value !== null && - typeof value === 'object' && - 'parse' in value && - typeof value.parse === 'function' && - 'safeParse' in value && - typeof value.safeParse === 'function'); -} -/** - * Checks if an object is a Zod schema instance (v3 or v4). - * - * Zod schemas have internal markers: - * - v3: `_def` property - * - v4: `_zod` property - * - * This includes transformed schemas like z.preprocess(), z.transform(), z.pipe(). - */ -function isZodSchemaInstance(obj) { - return '_def' in obj || '_zod' in obj || isZodTypeLike(obj); -} -/** - * Checks if an object is a "raw shape" - a plain object where values are Zod schemas. - * - * Raw shapes are used as shorthand: `{ name: z.string() }` instead of `z.object({ name: z.string() })`. - * - * IMPORTANT: This must NOT match actual Zod schema instances (like z.preprocess, z.pipe), - * which have internal properties that could be mistaken for schema values. - */ -function isZodRawShapeCompat(obj) { - if (typeof obj !== 'object' || obj === null) { - return false; - } - // If it's already a Zod schema instance, it's NOT a raw shape - if (isZodSchemaInstance(obj)) { - return false; - } - // Empty objects are valid raw shapes (tools with no parameters) - if (Object.keys(obj).length === 0) { - return true; - } - // A raw shape has at least one property that is a Zod schema - return Object.values(obj).some(isZodTypeLike); -} -/** - * Converts a provided Zod schema to a Zod object if it is a ZodRawShapeCompat, - * otherwise returns the schema as is. - */ -function getZodSchemaObject(schema) { - if (!schema) { - return undefined; - } - if (isZodRawShapeCompat(schema)) { - return (0, zod_compat_js_1.objectFromShape)(schema); - } - return schema; -} -function promptArgumentsFromSchema(schema) { - const shape = (0, zod_compat_js_1.getObjectShape)(schema); - if (!shape) - return []; - return Object.entries(shape).map(([name, field]) => { - // Get description - works for both v3 and v4 - const description = (0, zod_compat_js_1.getSchemaDescription)(field); - // Check if optional - works for both v3 and v4 - const isOptional = (0, zod_compat_js_1.isSchemaOptional)(field); - return { - name, - description, - required: !isOptional - }; - }); -} -function getMethodValue(schema) { - const shape = (0, zod_compat_js_1.getObjectShape)(schema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value - works for both v3 and v4 - const value = (0, zod_compat_js_1.getLiteralValue)(methodSchema); - if (typeof value === 'string') { - return value; - } - throw new Error('Schema method literal must be a string'); -} -function createCompletionResult(suggestions) { - return { - completion: { - values: suggestions.slice(0, 100), - total: suggestions.length, - hasMore: suggestions.length > 100 - } - }; -} -const EMPTY_COMPLETION_RESULT = { - completion: { - values: [], - hasMore: false - } -}; -//# sourceMappingURL=mcp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map deleted file mode 100644 index d31072a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/server/mcp.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AACnD,mDAcyB;AACzB,2EAAiE;AACjE,0CAsCqB;AACrB,qDAA+D;AAC/D,6DAAkE;AAIlE,2EAA0E;AAC1E,uEAAiF;AAEjF,6BAAkC;AAElC;;;;GAIG;AACH,MAAa,SAAS;IAclB,YAAY,UAA0B,EAAE,OAAuB;QARvD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KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,sBAAsB,CAAC,WAAqB;IACjD,OAAO;QACH,UAAU,EAAE;YACR,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;YACjC,KAAK,EAAE,WAAW,CAAC,MAAM;YACzB,OAAO,EAAE,WAAW,CAAC,MAAM,GAAG,GAAG;SACpC;KACJ,CAAC;AACN,CAAC;AAED,MAAM,uBAAuB,GAAmB;IAC5C,UAAU,EAAE;QACR,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,KAAK;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts deleted file mode 100644 index cb526d8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { RequestHandler } from 'express'; -/** - * Express middleware for DNS rebinding protection. - * Validates Host header hostname (port-agnostic) against an allowed list. - * - * This is particularly important for servers without authorization or HTTPS, - * such as localhost servers or development servers. DNS rebinding attacks can - * bypass same-origin policy by manipulating DNS to point a domain to a - * localhost address, allowing malicious websites to access your local server. - * - * @param allowedHostnames - List of allowed hostnames (without ports). - * For IPv6, provide the address with brackets (e.g., '[::1]'). - * @returns Express middleware function - * - * @example - * ```typescript - * const middleware = hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); - * app.use(middleware); - * ``` - */ -export declare function hostHeaderValidation(allowedHostnames: string[]): RequestHandler; -/** - * Convenience middleware for localhost DNS rebinding protection. - * Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames. - * - * @example - * ```typescript - * app.use(localhostHostValidation()); - * ``` - */ -export declare function localhostHostValidation(): RequestHandler; -//# sourceMappingURL=hostHeaderValidation.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map deleted file mode 100644 index c550324..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hostHeaderValidation.d.ts","sourceRoot":"","sources":["../../../../src/server/middleware/hostHeaderValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,cAAc,EAAE,MAAM,SAAS,CAAC;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,cAAc,CA4C/E;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,IAAI,cAAc,CAExD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js deleted file mode 100644 index 6d8c0ae..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hostHeaderValidation = hostHeaderValidation; -exports.localhostHostValidation = localhostHostValidation; -/** - * Express middleware for DNS rebinding protection. - * Validates Host header hostname (port-agnostic) against an allowed list. - * - * This is particularly important for servers without authorization or HTTPS, - * such as localhost servers or development servers. DNS rebinding attacks can - * bypass same-origin policy by manipulating DNS to point a domain to a - * localhost address, allowing malicious websites to access your local server. - * - * @param allowedHostnames - List of allowed hostnames (without ports). - * For IPv6, provide the address with brackets (e.g., '[::1]'). - * @returns Express middleware function - * - * @example - * ```typescript - * const middleware = hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); - * app.use(middleware); - * ``` - */ -function hostHeaderValidation(allowedHostnames) { - return (req, res, next) => { - const hostHeader = req.headers.host; - if (!hostHeader) { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Missing Host header' - }, - id: null - }); - return; - } - // Use URL API to parse hostname (handles IPv4, IPv6, and regular hostnames) - let hostname; - try { - hostname = new URL(`http://${hostHeader}`).hostname; - } - catch { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: `Invalid Host header: ${hostHeader}` - }, - id: null - }); - return; - } - if (!allowedHostnames.includes(hostname)) { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: `Invalid Host: ${hostname}` - }, - id: null - }); - return; - } - next(); - }; -} -/** - * Convenience middleware for localhost DNS rebinding protection. - * Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames. - * - * @example - * ```typescript - * app.use(localhostHostValidation()); - * ``` - */ -function localhostHostValidation() { - return hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); -} -//# sourceMappingURL=hostHeaderValidation.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map deleted file mode 100644 index c97b552..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hostHeaderValidation.js","sourceRoot":"","sources":["../../../../src/server/middleware/hostHeaderValidation.ts"],"names":[],"mappings":";;AAqBA,oDA4CC;AAWD,0DAEC;AA5ED;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,oBAAoB,CAAC,gBA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,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts deleted file mode 100644 index 7fa42a5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage, MessageExtraInfo } from '../types.js'; -import { AuthInfo } from './auth/types.js'; -/** - * Configuration options for SSEServerTransport. - */ -export interface SSEServerTransportOptions { - /** - * List of allowed host header values for DNS rebinding protection. - * If not specified, host validation is disabled. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - allowedHosts?: string[]; - /** - * List of allowed origin header values for DNS rebinding protection. - * If not specified, origin validation is disabled. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - allowedOrigins?: string[]; - /** - * Enable DNS rebinding protection (requires allowedHosts and/or allowedOrigins to be configured). - * Default is false for backwards compatibility. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - enableDnsRebindingProtection?: boolean; -} -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - * @deprecated SSEServerTransport is deprecated. Use StreamableHTTPServerTransport instead. - */ -export declare class SSEServerTransport implements Transport { - private _endpoint; - private res; - private _sseResponse?; - private _sessionId; - private _options; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: MessageExtraInfo) => void; - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint: string, res: ServerResponse, options?: SSEServerTransportOptions); - /** - * Validates request headers for DNS rebinding protection. - * @returns Error message if validation fails, undefined if validation passes. - */ - private validateRequestHeaders; - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - start(): Promise; - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - handlePostMessage(req: IncomingMessage & { - auth?: AuthInfo; - }, res: ServerResponse, parsedBody?: unknown): Promise; - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - handleMessage(message: unknown, extra?: MessageExtraInfo): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId(): string; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map deleted file mode 100644 index c94a521..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../src/server/sse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAGlG,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAA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AI,CAAC;IAQlD;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js deleted file mode 100644 index 2829fd3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSEServerTransport = void 0; -const node_crypto_1 = require("node:crypto"); -const types_js_1 = require("../types.js"); -const raw_body_1 = __importDefault(require("raw-body")); -const content_type_1 = __importDefault(require("content-type")); -const node_url_1 = require("node:url"); -const MAXIMUM_MESSAGE_SIZE = '4mb'; -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - * @deprecated SSEServerTransport is deprecated. Use StreamableHTTPServerTransport instead. - */ -class SSEServerTransport { - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint, res, options) { - this._endpoint = _endpoint; - this.res = res; - this._sessionId = (0, node_crypto_1.randomUUID)(); - this._options = options || { enableDnsRebindingProtection: false }; - } - /** - * Validates request headers for DNS rebinding protection. - * @returns Error message if validation fails, undefined if validation passes. - */ - validateRequestHeaders(req) { - // Skip validation if protection is not enabled - if (!this._options.enableDnsRebindingProtection) { - return undefined; - } - // Validate Host header if allowedHosts is configured - if (this._options.allowedHosts && this._options.allowedHosts.length > 0) { - const hostHeader = req.headers.host; - if (!hostHeader || !this._options.allowedHosts.includes(hostHeader)) { - return `Invalid Host header: ${hostHeader}`; - } - } - // Validate Origin header if allowedOrigins is configured - if (this._options.allowedOrigins && this._options.allowedOrigins.length > 0) { - const originHeader = req.headers.origin; - if (originHeader && !this._options.allowedOrigins.includes(originHeader)) { - return `Invalid Origin header: ${originHeader}`; - } - } - return undefined; - } - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - async start() { - if (this._sseResponse) { - throw new Error('SSEServerTransport already started! If using Server class, note that connect() calls start() automatically.'); - } - this.res.writeHead(200, { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }); - // Send the endpoint event - // Use a dummy base URL because this._endpoint is relative. - // This allows using URL/URLSearchParams for robust parameter handling. - const dummyBase = 'http://localhost'; // Any valid base works - const endpointUrl = new node_url_1.URL(this._endpoint, dummyBase); - endpointUrl.searchParams.set('sessionId', this._sessionId); - // Reconstruct the relative URL string (pathname + search + hash) - const relativeUrlWithSession = endpointUrl.pathname + endpointUrl.search + endpointUrl.hash; - this.res.write(`event: endpoint\ndata: ${relativeUrlWithSession}\n\n`); - this._sseResponse = this.res; - this.res.on('close', () => { - this._sseResponse = undefined; - this.onclose?.(); - }); - } - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - async handlePostMessage(req, res, parsedBody) { - if (!this._sseResponse) { - const message = 'SSE connection not established'; - res.writeHead(500).end(message); - throw new Error(message); - } - // Validate request headers for DNS rebinding protection - const validationError = this.validateRequestHeaders(req); - if (validationError) { - res.writeHead(403).end(validationError); - this.onerror?.(new Error(validationError)); - return; - } - const authInfo = req.auth; - const requestInfo = { headers: req.headers }; - let body; - try { - const ct = content_type_1.default.parse(req.headers['content-type'] ?? ''); - if (ct.type !== 'application/json') { - throw new Error(`Unsupported content-type: ${ct.type}`); - } - body = - parsedBody ?? - (await (0, raw_body_1.default)(req, { - limit: MAXIMUM_MESSAGE_SIZE, - encoding: ct.parameters.charset ?? 'utf-8' - })); - } - catch (error) { - res.writeHead(400).end(String(error)); - this.onerror?.(error); - return; - } - try { - await this.handleMessage(typeof body === 'string' ? JSON.parse(body) : body, { requestInfo, authInfo }); - } - catch { - res.writeHead(400).end(`Invalid message: ${body}`); - return; - } - res.writeHead(202).end('Accepted'); - } - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - async handleMessage(message, extra) { - let parsedMessage; - try { - parsedMessage = types_js_1.JSONRPCMessageSchema.parse(message); - } - catch (error) { - this.onerror?.(error); - throw error; - } - this.onmessage?.(parsedMessage, extra); - } - async close() { - this._sseResponse?.end(); - this._sseResponse = undefined; - this.onclose?.(); - } - async send(message) { - if (!this._sseResponse) { - throw new Error('Not connected'); - } - this._sseResponse.write(`event: message\ndata: ${JSON.stringify(message)}\n\n`); - } - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId() { - return this._sessionId; - } -} -exports.SSEServerTransport = SSEServerTransport; -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map deleted file mode 100644 index f80cb8d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../../src/server/sse.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAyC;AAGzC,0CAAkG;AAClG,wDAAkC;AAClC,gEAAuC;AAEvC,uCAA+B;AAE/B,MAAM,oBAAoB,GAAG,KAAK,CAAC;AA+BnC;;;;;GAKG;AACH,MAAa,kBAAkB;IAQ3B;;OAEG;IACH,YACY,SAAiB,EACjB,GAAmB,EAC3B,OAAmC;QAF3B,cAAS,GAAT,SAAS,CAAQ;QACjB,QAAG,GAAH,GAAG,CAAgB;QAG3B,IAAI,CAAC,UAAU,GAAG,IAAA,wBAAU,GAAE,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,EAAE,4BAA4B,EAAE,KAAK,EAAE,CAA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AC;QAED,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,OAAgB,EAAE,KAAwB;QAC1D,IAAI,aAA6B,CAAC;QAClC,IAAI,CAAC;YACD,aAAa,GAAG,+BAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,EAAE,CAAC,KAAc,CAAC,CAAC;YAC/B,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,SAAS,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,KAAK;QACP,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAuB;QAC9B,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACpF,CAAC;IAED;;;;OAIG;IACH,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AA7KD,gDA6KC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts deleted file mode 100644 index 83af572..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Readable, Writable } from 'node:stream'; -import { JSONRPCMessage } from '../types.js'; -import { Transport } from '../shared/transport.js'; -/** - * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioServerTransport implements Transport { - private _stdin; - private _stdout; - private _readBuffer; - private _started; - constructor(_stdin?: Readable, _stdout?: Writable); - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - _ondata: (chunk: Buffer) => void; - _onerror: (error: Error) => void; - /** - * Starts listening for messages on stdin. - */ - start(): Promise; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map deleted file mode 100644 index fdd2dfe..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/server/stdio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IAK9C,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IALnB,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,QAAQ,CAAS;gBAGb,MAAM,GAAE,QAAwB,EAChC,OAAO,GAAE,QAAyB;IAG9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAG9C,OAAO,UAAW,MAAM,UAGtB;IACF,QAAQ,UAAW,KAAK,UAEtB;IAEF;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAU/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js deleted file mode 100644 index 0edcbf3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StdioServerTransport = void 0; -const node_process_1 = __importDefault(require("node:process")); -const stdio_js_1 = require("../shared/stdio.js"); -/** - * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -class StdioServerTransport { - constructor(_stdin = node_process_1.default.stdin, _stdout = node_process_1.default.stdout) { - this._stdin = _stdin; - this._stdout = _stdout; - this._readBuffer = new stdio_js_1.ReadBuffer(); - this._started = false; - // Arrow functions to bind `this` properly, while maintaining function identity. - this._ondata = (chunk) => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }; - this._onerror = (error) => { - this.onerror?.(error); - }; - } - /** - * Starts listening for messages on stdin. - */ - async start() { - if (this._started) { - throw new Error('StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.'); - } - this._started = true; - this._stdin.on('data', this._ondata); - this._stdin.on('error', this._onerror); - } - processReadBuffer() { - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - async close() { - // Remove our event listeners first - this._stdin.off('data', this._ondata); - this._stdin.off('error', this._onerror); - // Check if we were the only data listener - const remainingDataListeners = this._stdin.listenerCount('data'); - if (remainingDataListeners === 0) { - // Only pause stdin if we were the only listener - // This prevents interfering with other parts of the application that might be using stdin - this._stdin.pause(); - } - // Clear the buffer and notify closure - this._readBuffer.clear(); - this.onclose?.(); - } - send(message) { - return new Promise(resolve => { - const json = (0, stdio_js_1.serializeMessage)(message); - if (this._stdout.write(json)) { - resolve(); - } - else { - this._stdout.once('drain', resolve); - } - }); - } -} -exports.StdioServerTransport = StdioServerTransport; -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map deleted file mode 100644 index f5d54d4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/server/stdio.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAmC;AAEnC,iDAAkE;AAIlE;;;;GAIG;AACH,MAAa,oBAAoB;IAI7B,YACY,SAAmB,sBAAO,CAAC,KAAK,EAChC,UAAoB,sBAAO,CAAC,MAAM;QADlC,WAAM,GAAN,MAAM,CAA0B;QAChC,YAAO,GAAP,OAAO,CAA2B;QALtC,gBAAW,GAAe,IAAI,qBAAU,EAAE,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC;QAWzB,gFAAgF;QAChF,YAAO,GAAG,CAAC,KAAa,EAAE,EAAE;YACxB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC/B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC7B,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;YAC/B,gDAAgD;YAChD,0FAA0F;YAC1F,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC;QAED,sCAAsC;QACtC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrB,CAAC;IAED,IAAI,CAAC,OAAuB;QACxB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YACzB,MAAM,IAAI,GAAG,IAAA,2BAAgB,EAAC,OAAO,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3B,OAAO,EAAE,CAAC;YACd,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAhFD,oDAgFC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts deleted file mode 100644 index 5d5564b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Node.js HTTP Streamable HTTP Server Transport - * - * This is a thin wrapper around `WebStandardStreamableHTTPServerTransport` that provides - * compatibility with Node.js HTTP server (IncomingMessage/ServerResponse). - * - * For web-standard environments (Cloudflare Workers, Deno, Bun), use `WebStandardStreamableHTTPServerTransport` directly. - */ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Transport } from '../shared/transport.js'; -import { AuthInfo } from './auth/types.js'; -import { MessageExtraInfo, JSONRPCMessage, RequestId } from '../types.js'; -import { WebStandardStreamableHTTPServerTransportOptions, EventStore, StreamId, EventId } from './webStandardStreamableHttp.js'; -export type { EventStore, StreamId, EventId }; -/** - * Configuration options for StreamableHTTPServerTransport - * - * This is an alias for WebStandardStreamableHTTPServerTransportOptions for backward compatibility. - */ -export type StreamableHTTPServerTransportOptions = WebStandardStreamableHTTPServerTransportOptions; -/** - * Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It supports both SSE streaming and direct HTTP responses. - * - * This is a wrapper around `WebStandardStreamableHTTPServerTransport` that provides Node.js HTTP compatibility. - * It uses the `@hono/node-server` library to convert between Node.js HTTP and Web Standard APIs. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: () => randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Using with pre-parsed request body - * app.post('/mcp', (req, res) => { - * transport.handleRequest(req, res, req.body); - * }); - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export declare class StreamableHTTPServerTransport implements Transport { - private _webStandardTransport; - private _requestListener; - private _requestContext; - constructor(options?: StreamableHTTPServerTransportOptions); - /** - * Gets the session ID for this transport instance. - */ - get sessionId(): string | undefined; - /** - * Sets callback for when the transport is closed. - */ - set onclose(handler: (() => void) | undefined); - get onclose(): (() => void) | undefined; - /** - * Sets callback for transport errors. - */ - set onerror(handler: ((error: Error) => void) | undefined); - get onerror(): ((error: Error) => void) | undefined; - /** - * Sets callback for incoming messages. - */ - set onmessage(handler: ((message: JSONRPCMessage, extra?: MessageExtraInfo) => void) | undefined); - get onmessage(): ((message: JSONRPCMessage, extra?: MessageExtraInfo) => void) | undefined; - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - start(): Promise; - /** - * Closes the transport and all active connections. - */ - close(): Promise; - /** - * Sends a JSON-RPC message through the transport. - */ - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - }): Promise; - /** - * Handles an incoming HTTP request, whether GET or POST. - * - * This method converts Node.js HTTP objects to Web Standard Request/Response - * and delegates to the underlying WebStandardStreamableHTTPServerTransport. - * - * @param req - Node.js IncomingMessage, optionally with auth property from middleware - * @param res - Node.js ServerResponse - * @param parsedBody - Optional pre-parsed body from body-parser middleware - */ - handleRequest(req: IncomingMessage & { - auth?: AuthInfo; - }, res: ServerResponse, parsedBody?: unknown): Promise; - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId: RequestId): void; - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream(): void; -} -//# sourceMappingURL=streamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map deleted file mode 100644 index 0c767d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.d.ts","sourceRoot":"","sources":["../../../src/server/streamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1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B;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9F;;;;;;;;;OASG;IACG,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBzH;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAI1C;;;OAGG;IACH,wBAAwB,IAAI,IAAI;CAGnC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js deleted file mode 100644 index a1df75c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -/** - * Node.js HTTP Streamable HTTP Server Transport - * - * This is a thin wrapper around `WebStandardStreamableHTTPServerTransport` that provides - * compatibility with Node.js HTTP server (IncomingMessage/ServerResponse). - * - * For web-standard environments (Cloudflare Workers, Deno, Bun), use `WebStandardStreamableHTTPServerTransport` directly. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StreamableHTTPServerTransport = void 0; -const node_server_1 = require("@hono/node-server"); -const webStandardStreamableHttp_js_1 = require("./webStandardStreamableHttp.js"); -/** - * Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It supports both SSE streaming and direct HTTP responses. - * - * This is a wrapper around `WebStandardStreamableHTTPServerTransport` that provides Node.js HTTP compatibility. - * It uses the `@hono/node-server` library to convert between Node.js HTTP and Web Standard APIs. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: () => randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Using with pre-parsed request body - * app.post('/mcp', (req, res) => { - * transport.handleRequest(req, res, req.body); - * }); - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -class StreamableHTTPServerTransport { - constructor(options = {}) { - // Store auth and parsedBody per request for passing through to handleRequest - this._requestContext = new WeakMap(); - this._webStandardTransport = new webStandardStreamableHttp_js_1.WebStandardStreamableHTTPServerTransport(options); - // Create a request listener that wraps the web standard transport - // getRequestListener converts Node.js HTTP to Web Standard and properly handles SSE streaming - this._requestListener = (0, node_server_1.getRequestListener)(async (webRequest) => { - // Get context if available (set during handleRequest) - const context = this._requestContext.get(webRequest); - return this._webStandardTransport.handleRequest(webRequest, { - authInfo: context?.authInfo, - parsedBody: context?.parsedBody - }); - }); - } - /** - * Gets the session ID for this transport instance. - */ - get sessionId() { - return this._webStandardTransport.sessionId; - } - /** - * Sets callback for when the transport is closed. - */ - set onclose(handler) { - this._webStandardTransport.onclose = handler; - } - get onclose() { - return this._webStandardTransport.onclose; - } - /** - * Sets callback for transport errors. - */ - set onerror(handler) { - this._webStandardTransport.onerror = handler; - } - get onerror() { - return this._webStandardTransport.onerror; - } - /** - * Sets callback for incoming messages. - */ - set onmessage(handler) { - this._webStandardTransport.onmessage = handler; - } - get onmessage() { - return this._webStandardTransport.onmessage; - } - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - async start() { - return this._webStandardTransport.start(); - } - /** - * Closes the transport and all active connections. - */ - async close() { - return this._webStandardTransport.close(); - } - /** - * Sends a JSON-RPC message through the transport. - */ - async send(message, options) { - return this._webStandardTransport.send(message, options); - } - /** - * Handles an incoming HTTP request, whether GET or POST. - * - * This method converts Node.js HTTP objects to Web Standard Request/Response - * and delegates to the underlying WebStandardStreamableHTTPServerTransport. - * - * @param req - Node.js IncomingMessage, optionally with auth property from middleware - * @param res - Node.js ServerResponse - * @param parsedBody - Optional pre-parsed body from body-parser middleware - */ - async handleRequest(req, res, parsedBody) { - // Store context for this request to pass through auth and parsedBody - // We need to intercept the request creation to attach this context - const authInfo = req.auth; - // Create a custom handler that includes our context - const handler = (0, node_server_1.getRequestListener)(async (webRequest) => { - return this._webStandardTransport.handleRequest(webRequest, { - authInfo, - parsedBody - }); - }); - // Delegate to the request listener which handles all the Node.js <-> Web Standard conversion - // including proper SSE streaming support - await handler(req, res); - } - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId) { - this._webStandardTransport.closeSSEStream(requestId); - } - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream() { - this._webStandardTransport.closeStandaloneSSEStream(); - } -} -exports.StreamableHTTPServerTransport = StreamableHTTPServerTransport; -//# sourceMappingURL=streamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map deleted file mode 100644 index bf38a1a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.js","sourceRoot":"","sources":["../../../src/server/streamableHttp.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,mDAAuD;AAIvD,iFAMwC;AAYxC;;;;;;;;;;;;;;;;;;;;;;;;;;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C,SAAS,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAuB,EAAE,OAA0C;QAC1E,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CAAC,GAA0C,EAAE,GAAmB,EAAE,UAAoB;QACrG,qEAAqE;QACrE,mEAAmE;QACnE,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC;QAE1B,oDAAoD;QACpD,MAAM,OAAO,GAAG,IAAA,gCAAkB,EAAC,KAAK,EAAE,UAAmB,EAAE,EAAE;YAC7D,OAAO,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,UAAU,EAAE;gBACxD,QAAQ;gBACR,UAAU;aACb,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,6FAA6F;QAC7F,yCAAyC;QACzC,MAAM,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,SAAoB;QAC/B,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACH,wBAAwB;QACpB,IAAI,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC;IAC1D,CAAC;CACJ;AA/HD,sEA+HC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts deleted file mode 100644 index d8f3ca6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +++ /dev/null @@ -1,267 +0,0 @@ -/** - * Web Standards Streamable HTTP Server Transport - * - * This is the core transport implementation using Web Standard APIs (Request, Response, ReadableStream). - * It can run on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * For Node.js Express/HTTP compatibility, use `StreamableHTTPServerTransport` which wraps this transport. - */ -import { Transport } from '../shared/transport.js'; -import { AuthInfo } from './auth/types.js'; -import { MessageExtraInfo, JSONRPCMessage, RequestId } from '../types.js'; -export type StreamId = string; -export type EventId = string; -/** - * Interface for resumability support via event storage - */ -export interface EventStore { - /** - * Stores an event for later retrieval - * @param streamId ID of the stream the event belongs to - * @param message The JSON-RPC message to store - * @returns The generated event ID for the stored event - */ - storeEvent(streamId: StreamId, message: JSONRPCMessage): Promise; - /** - * Get the stream ID associated with a given event ID. - * @param eventId The event ID to look up - * @returns The stream ID, or undefined if not found - * - * Optional: If not provided, the SDK will use the streamId returned by - * replayEventsAfter for stream mapping. - */ - getStreamIdForEventId?(eventId: EventId): Promise; - replayEventsAfter(lastEventId: EventId, { send }: { - send: (eventId: EventId, message: JSONRPCMessage) => Promise; - }): Promise; -} -/** - * Configuration options for WebStandardStreamableHTTPServerTransport - */ -export interface WebStandardStreamableHTTPServerTransportOptions { - /** - * Function that generates a session ID for the transport. - * The session ID SHOULD be globally unique and cryptographically secure (e.g., a securely generated UUID, a JWT, or a cryptographic hash) - * - * If not provided, session management is disabled (stateless mode). - */ - sessionIdGenerator?: () => string; - /** - * A callback for session initialization events - * This is called when the server initializes a new session. - * Useful in cases when you need to register multiple mcp sessions - * and need to keep track of them. - * @param sessionId The generated session ID - */ - onsessioninitialized?: (sessionId: string) => void | Promise; - /** - * A callback for session close events - * This is called when the server closes a session due to a DELETE request. - * Useful in cases when you need to clean up resources associated with the session. - * Note that this is different from the transport closing, if you are handling - * HTTP requests from multiple nodes you might want to close each - * WebStandardStreamableHTTPServerTransport after a request is completed while still keeping the - * session open/running. - * @param sessionId The session ID that was closed - */ - onsessionclosed?: (sessionId: string) => void | Promise; - /** - * If true, the server will return JSON responses instead of starting an SSE stream. - * This can be useful for simple request/response scenarios without streaming. - * Default is false (SSE streams are preferred). - */ - enableJsonResponse?: boolean; - /** - * Event store for resumability support - * If provided, resumability will be enabled, allowing clients to reconnect and resume messages - */ - eventStore?: EventStore; - /** - * List of allowed host header values for DNS rebinding protection. - * If not specified, host validation is disabled. - * @deprecated Use external middleware for host validation instead. - */ - allowedHosts?: string[]; - /** - * List of allowed origin header values for DNS rebinding protection. - * If not specified, origin validation is disabled. - * @deprecated Use external middleware for origin validation instead. - */ - allowedOrigins?: string[]; - /** - * Enable DNS rebinding protection (requires allowedHosts and/or allowedOrigins to be configured). - * Default is false for backwards compatibility. - * @deprecated Use external middleware for DNS rebinding protection instead. - */ - enableDnsRebindingProtection?: boolean; - /** - * Retry interval in milliseconds to suggest to clients in SSE retry field. - * When set, the server will send a retry field in SSE priming events to control - * client reconnection timing for polling behavior. - */ - retryInterval?: number; -} -/** - * Options for handling a request - */ -export interface HandleRequestOptions { - /** - * Pre-parsed request body. If provided, the transport will use this instead of parsing req.json(). - * Useful when using body-parser middleware that has already parsed the body. - */ - parsedBody?: unknown; - /** - * Authentication info from middleware. If provided, will be passed to message handlers. - */ - authInfo?: AuthInfo; -} -/** - * Server transport for Web Standards Streamable HTTP: this implements the MCP Streamable HTTP transport specification - * using Web Standard APIs (Request, Response, ReadableStream). - * - * This transport works on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: () => crypto.randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Hono.js usage - * app.all('/mcp', async (c) => { - * return transport.handleRequest(c.req.raw); - * }); - * - * // Cloudflare Workers usage - * export default { - * async fetch(request: Request): Promise { - * return transport.handleRequest(request); - * } - * }; - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export declare class WebStandardStreamableHTTPServerTransport implements Transport { - private sessionIdGenerator; - private _started; - private _streamMapping; - private _requestToStreamMapping; - private _requestResponseMap; - private _initialized; - private _enableJsonResponse; - private _standaloneSseStreamId; - private _eventStore?; - private _onsessioninitialized?; - private _onsessionclosed?; - private _allowedHosts?; - private _allowedOrigins?; - private _enableDnsRebindingProtection; - private _retryInterval?; - sessionId?: string; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: MessageExtraInfo) => void; - constructor(options?: WebStandardStreamableHTTPServerTransportOptions); - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - start(): Promise; - /** - * Helper to create a JSON error response - */ - private createJsonErrorResponse; - /** - * Validates request headers for DNS rebinding protection. - * @returns Error response if validation fails, undefined if validation passes. - */ - private validateRequestHeaders; - /** - * Handles an incoming HTTP request, whether GET, POST, or DELETE - * Returns a Response object (Web Standard) - */ - handleRequest(req: Request, options?: HandleRequestOptions): Promise; - /** - * Writes a priming event to establish resumption capability. - * Only sends if eventStore is configured (opt-in for resumability) and - * the client's protocol version supports empty SSE data (>= 2025-11-25). - */ - private writePrimingEvent; - /** - * Handles GET requests for SSE stream - */ - private handleGetRequest; - /** - * Replays events that would have been sent after the specified event ID - * Only used when resumability is enabled - */ - private replayEvents; - /** - * Writes an event to an SSE stream via controller with proper formatting - */ - private writeSSEEvent; - /** - * Handles unsupported requests (PUT, PATCH, etc.) - */ - private handleUnsupportedRequest; - /** - * Handles POST requests containing JSON-RPC messages - */ - private handlePostRequest; - /** - * Handles DELETE requests to terminate sessions - */ - private handleDeleteRequest; - /** - * Validates session ID for non-initialization requests. - * Returns Response error if invalid, undefined otherwise - */ - private validateSession; - /** - * Validates the MCP-Protocol-Version header on incoming requests. - * - * For initialization: Version negotiation handles unknown versions gracefully - * (server responds with its supported version). - * - * For subsequent requests with MCP-Protocol-Version header: - * - Accept if in supported list - * - 400 if unsupported - * - * For HTTP requests without the MCP-Protocol-Version header: - * - Accept and default to the version negotiated at initialization - */ - private validateProtocolVersion; - close(): Promise; - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId: RequestId): void; - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream(): void; - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - }): Promise; -} -//# sourceMappingURL=webStandardStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map deleted file mode 100644 index 49c1aed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webStandardStreamableHttp.d.ts","sourceRoot":"","sources":["../../../src/server/webStandardStreamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACH,gBAAgB,EAMhB,cAAc,EAEd,SAAS,EAG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,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmBpF;;;;OAIG;YACW,iBAAiB;IA0B/B;;OAEG;YACW,gBAAgB;IA2E9B;;;OAGG;YACW,YAAY;IAgF1B;;OAEG;IACH,OAAO,CAAC,aAAa;IAoBrB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAoBhC;;OAEG;YACW,iBAAiB;IA8M/B;;OAEG;YACW,mBAAmB;IAejC;;;OAGG;IACH,OAAO,CAAC,eAAe;IA0BvB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,uBAAuB;IAazB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAU1C;;;OAGG;IACH,wBAAwB,IAAI,IAAI;IAO1B,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAiGjG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js deleted file mode 100644 index 1bc5843..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +++ /dev/null @@ -1,729 +0,0 @@ -"use strict"; -/** - * Web Standards Streamable HTTP Server Transport - * - * This is the core transport implementation using Web Standard APIs (Request, Response, ReadableStream). - * It can run on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * For Node.js Express/HTTP compatibility, use `StreamableHTTPServerTransport` which wraps this transport. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebStandardStreamableHTTPServerTransport = void 0; -const types_js_1 = require("../types.js"); -/** - * Server transport for Web Standards Streamable HTTP: this implements the MCP Streamable HTTP transport specification - * using Web Standard APIs (Request, Response, ReadableStream). - * - * This transport works on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: () => crypto.randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Hono.js usage - * app.all('/mcp', async (c) => { - * return transport.handleRequest(c.req.raw); - * }); - * - * // Cloudflare Workers usage - * export default { - * async fetch(request: Request): Promise { - * return transport.handleRequest(request); - * } - * }; - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -class WebStandardStreamableHTTPServerTransport { - constructor(options = {}) { - this._started = false; - this._streamMapping = new Map(); - this._requestToStreamMapping = new Map(); - this._requestResponseMap = new Map(); - this._initialized = false; - this._enableJsonResponse = false; - this._standaloneSseStreamId = '_GET_stream'; - this.sessionIdGenerator = options.sessionIdGenerator; - this._enableJsonResponse = options.enableJsonResponse ?? false; - this._eventStore = options.eventStore; - this._onsessioninitialized = options.onsessioninitialized; - this._onsessionclosed = options.onsessionclosed; - this._allowedHosts = options.allowedHosts; - this._allowedOrigins = options.allowedOrigins; - this._enableDnsRebindingProtection = options.enableDnsRebindingProtection ?? false; - this._retryInterval = options.retryInterval; - } - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - async start() { - if (this._started) { - throw new Error('Transport already started'); - } - this._started = true; - } - /** - * Helper to create a JSON error response - */ - createJsonErrorResponse(status, code, message, options) { - const error = { code, message }; - if (options?.data !== undefined) { - error.data = options.data; - } - return new Response(JSON.stringify({ - jsonrpc: '2.0', - error, - id: null - }), { - status, - headers: { - 'Content-Type': 'application/json', - ...options?.headers - } - }); - } - /** - * Validates request headers for DNS rebinding protection. - * @returns Error response if validation fails, undefined if validation passes. - */ - validateRequestHeaders(req) { - // Skip validation if protection is not enabled - if (!this._enableDnsRebindingProtection) { - return undefined; - } - // Validate Host header if allowedHosts is configured - if (this._allowedHosts && this._allowedHosts.length > 0) { - const hostHeader = req.headers.get('host'); - if (!hostHeader || !this._allowedHosts.includes(hostHeader)) { - const error = `Invalid Host header: ${hostHeader}`; - this.onerror?.(new Error(error)); - return this.createJsonErrorResponse(403, -32000, error); - } - } - // Validate Origin header if allowedOrigins is configured - if (this._allowedOrigins && this._allowedOrigins.length > 0) { - const originHeader = req.headers.get('origin'); - if (originHeader && !this._allowedOrigins.includes(originHeader)) { - const error = `Invalid Origin header: ${originHeader}`; - this.onerror?.(new Error(error)); - return this.createJsonErrorResponse(403, -32000, error); - } - } - return undefined; - } - /** - * Handles an incoming HTTP request, whether GET, POST, or DELETE - * Returns a Response object (Web Standard) - */ - async handleRequest(req, options) { - // Validate request headers for DNS rebinding protection - const validationError = this.validateRequestHeaders(req); - if (validationError) { - return validationError; - } - switch (req.method) { - case 'POST': - return this.handlePostRequest(req, options); - case 'GET': - return this.handleGetRequest(req); - case 'DELETE': - return this.handleDeleteRequest(req); - default: - return this.handleUnsupportedRequest(); - } - } - /** - * Writes a priming event to establish resumption capability. - * Only sends if eventStore is configured (opt-in for resumability) and - * the client's protocol version supports empty SSE data (>= 2025-11-25). - */ - async writePrimingEvent(controller, encoder, streamId, protocolVersion) { - if (!this._eventStore) { - return; - } - // Priming events have empty data which older clients cannot handle. - // Only send priming events to clients with protocol version >= 2025-11-25 - // which includes the fix for handling empty SSE data. - if (protocolVersion < '2025-11-25') { - return; - } - const primingEventId = await this._eventStore.storeEvent(streamId, {}); - let primingEvent = `id: ${primingEventId}\ndata: \n\n`; - if (this._retryInterval !== undefined) { - primingEvent = `id: ${primingEventId}\nretry: ${this._retryInterval}\ndata: \n\n`; - } - controller.enqueue(encoder.encode(primingEvent)); - } - /** - * Handles GET requests for SSE stream - */ - async handleGetRequest(req) { - // The client MUST include an Accept header, listing text/event-stream as a supported content type. - const acceptHeader = req.headers.get('accept'); - if (!acceptHeader?.includes('text/event-stream')) { - return this.createJsonErrorResponse(406, -32000, 'Not Acceptable: Client must accept text/event-stream'); - } - // If an Mcp-Session-Id is returned by the server during initialization, - // clients using the Streamable HTTP transport MUST include it - // in the Mcp-Session-Id header on all of their subsequent HTTP requests. - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - // Handle resumability: check for Last-Event-ID header - if (this._eventStore) { - const lastEventId = req.headers.get('last-event-id'); - if (lastEventId) { - return this.replayEvents(lastEventId); - } - } - // Check if there's already an active standalone SSE stream for this session - if (this._streamMapping.get(this._standaloneSseStreamId) !== undefined) { - // Only one GET SSE stream is allowed per session - return this.createJsonErrorResponse(409, -32000, 'Conflict: Only one SSE stream is allowed per session'); - } - const encoder = new TextEncoder(); - let streamController; - // Create a ReadableStream with a controller we can use to push SSE events - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - this._streamMapping.delete(this._standaloneSseStreamId); - } - }); - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }; - // After initialization, always include the session ID if we have one - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Store the stream mapping with the controller for pushing data - this._streamMapping.set(this._standaloneSseStreamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(this._standaloneSseStreamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - return new Response(readable, { headers }); - } - /** - * Replays events that would have been sent after the specified event ID - * Only used when resumability is enabled - */ - async replayEvents(lastEventId) { - if (!this._eventStore) { - return this.createJsonErrorResponse(400, -32000, 'Event store not configured'); - } - try { - // If getStreamIdForEventId is available, use it for conflict checking - let streamId; - if (this._eventStore.getStreamIdForEventId) { - streamId = await this._eventStore.getStreamIdForEventId(lastEventId); - if (!streamId) { - return this.createJsonErrorResponse(400, -32000, 'Invalid event ID format'); - } - // Check conflict with the SAME streamId we'll use for mapping - if (this._streamMapping.get(streamId) !== undefined) { - return this.createJsonErrorResponse(409, -32000, 'Conflict: Stream already has an active connection'); - } - } - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }; - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Create a ReadableStream with controller for SSE - const encoder = new TextEncoder(); - let streamController; - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - // Cleanup will be handled by the mapping - } - }); - // Replay events - returns the streamId for backwards compatibility - const replayedStreamId = await this._eventStore.replayEventsAfter(lastEventId, { - send: async (eventId, message) => { - const success = this.writeSSEEvent(streamController, encoder, message, eventId); - if (!success) { - this.onerror?.(new Error('Failed replay events')); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - } - }); - this._streamMapping.set(replayedStreamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(replayedStreamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - return new Response(readable, { headers }); - } - catch (error) { - this.onerror?.(error); - return this.createJsonErrorResponse(500, -32000, 'Error replaying events'); - } - } - /** - * Writes an event to an SSE stream via controller with proper formatting - */ - writeSSEEvent(controller, encoder, message, eventId) { - try { - let eventData = `event: message\n`; - // Include event ID if provided - this is important for resumability - if (eventId) { - eventData += `id: ${eventId}\n`; - } - eventData += `data: ${JSON.stringify(message)}\n\n`; - controller.enqueue(encoder.encode(eventData)); - return true; - } - catch { - return false; - } - } - /** - * Handles unsupported requests (PUT, PATCH, etc.) - */ - handleUnsupportedRequest() { - return new Response(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - }), { - status: 405, - headers: { - Allow: 'GET, POST, DELETE', - 'Content-Type': 'application/json' - } - }); - } - /** - * Handles POST requests containing JSON-RPC messages - */ - async handlePostRequest(req, options) { - try { - // Validate the Accept header - const acceptHeader = req.headers.get('accept'); - // The client MUST include an Accept header, listing both application/json and text/event-stream as supported content types. - if (!acceptHeader?.includes('application/json') || !acceptHeader.includes('text/event-stream')) { - return this.createJsonErrorResponse(406, -32000, 'Not Acceptable: Client must accept both application/json and text/event-stream'); - } - const ct = req.headers.get('content-type'); - if (!ct || !ct.includes('application/json')) { - return this.createJsonErrorResponse(415, -32000, 'Unsupported Media Type: Content-Type must be application/json'); - } - // Build request info from headers - const requestInfo = { - headers: Object.fromEntries(req.headers.entries()) - }; - let rawMessage; - if (options?.parsedBody !== undefined) { - rawMessage = options.parsedBody; - } - else { - try { - rawMessage = await req.json(); - } - catch { - return this.createJsonErrorResponse(400, -32700, 'Parse error: Invalid JSON'); - } - } - let messages; - // handle batch and single messages - try { - if (Array.isArray(rawMessage)) { - messages = rawMessage.map(msg => types_js_1.JSONRPCMessageSchema.parse(msg)); - } - else { - messages = [types_js_1.JSONRPCMessageSchema.parse(rawMessage)]; - } - } - catch { - return this.createJsonErrorResponse(400, -32700, 'Parse error: Invalid JSON-RPC message'); - } - // Check if this is an initialization request - // https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle/ - const isInitializationRequest = messages.some(types_js_1.isInitializeRequest); - if (isInitializationRequest) { - // If it's a server with session management and the session ID is already set we should reject the request - // to avoid re-initialization. - if (this._initialized && this.sessionId !== undefined) { - return this.createJsonErrorResponse(400, -32600, 'Invalid Request: Server already initialized'); - } - if (messages.length > 1) { - return this.createJsonErrorResponse(400, -32600, 'Invalid Request: Only one initialization request is allowed'); - } - this.sessionId = this.sessionIdGenerator?.(); - this._initialized = true; - // If we have a session ID and an onsessioninitialized handler, call it immediately - // This is needed in cases where the server needs to keep track of multiple sessions - if (this.sessionId && this._onsessioninitialized) { - await Promise.resolve(this._onsessioninitialized(this.sessionId)); - } - } - if (!isInitializationRequest) { - // If an Mcp-Session-Id is returned by the server during initialization, - // clients using the Streamable HTTP transport MUST include it - // in the Mcp-Session-Id header on all of their subsequent HTTP requests. - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - // Mcp-Protocol-Version header is required for all requests after initialization. - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - } - // check if it contains requests - const hasRequests = messages.some(types_js_1.isJSONRPCRequest); - if (!hasRequests) { - // if it only contains notifications or responses, return 202 - for (const message of messages) { - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo }); - } - return new Response(null, { status: 202 }); - } - // The default behavior is to use SSE streaming - // but in some cases server will return JSON responses - const streamId = crypto.randomUUID(); - // Extract protocol version for priming event decision. - // For initialize requests, get from request params. - // For other requests, get from header (already validated). - const initRequest = messages.find(m => (0, types_js_1.isInitializeRequest)(m)); - const clientProtocolVersion = initRequest - ? initRequest.params.protocolVersion - : (req.headers.get('mcp-protocol-version') ?? types_js_1.DEFAULT_NEGOTIATED_PROTOCOL_VERSION); - if (this._enableJsonResponse) { - // For JSON response mode, return a Promise that resolves when all responses are ready - return new Promise(resolve => { - this._streamMapping.set(streamId, { - resolveJson: resolve, - cleanup: () => { - this._streamMapping.delete(streamId); - } - }); - for (const message of messages) { - if ((0, types_js_1.isJSONRPCRequest)(message)) { - this._requestToStreamMapping.set(message.id, streamId); - } - } - for (const message of messages) { - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo }); - } - }); - } - // SSE streaming mode - use ReadableStream with controller for more reliable data pushing - const encoder = new TextEncoder(); - let streamController; - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - this._streamMapping.delete(streamId); - } - }); - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache', - Connection: 'keep-alive' - }; - // After initialization, always include the session ID if we have one - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Store the response for this request to send messages back through this connection - // We need to track by request ID to maintain the connection - for (const message of messages) { - if ((0, types_js_1.isJSONRPCRequest)(message)) { - this._streamMapping.set(streamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(streamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - this._requestToStreamMapping.set(message.id, streamId); - } - } - // Write priming event if event store is configured (after mapping is set up) - await this.writePrimingEvent(streamController, encoder, streamId, clientProtocolVersion); - // handle each message - for (const message of messages) { - // Build closeSSEStream callback for requests when eventStore is configured - // AND client supports resumability (protocol version >= 2025-11-25). - // Old clients can't resume if the stream is closed early because they - // didn't receive a priming event with an event ID. - let closeSSEStream; - let closeStandaloneSSEStream; - if ((0, types_js_1.isJSONRPCRequest)(message) && this._eventStore && clientProtocolVersion >= '2025-11-25') { - closeSSEStream = () => { - this.closeSSEStream(message.id); - }; - closeStandaloneSSEStream = () => { - this.closeStandaloneSSEStream(); - }; - } - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo, closeSSEStream, closeStandaloneSSEStream }); - } - // The server SHOULD NOT close the SSE stream before sending all JSON-RPC responses - // This will be handled by the send() method when responses are ready - return new Response(readable, { status: 200, headers }); - } - catch (error) { - // return JSON-RPC formatted error - this.onerror?.(error); - return this.createJsonErrorResponse(400, -32700, 'Parse error', { data: String(error) }); - } - } - /** - * Handles DELETE requests to terminate sessions - */ - async handleDeleteRequest(req) { - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - await Promise.resolve(this._onsessionclosed?.(this.sessionId)); - await this.close(); - return new Response(null, { status: 200 }); - } - /** - * Validates session ID for non-initialization requests. - * Returns Response error if invalid, undefined otherwise - */ - validateSession(req) { - if (this.sessionIdGenerator === undefined) { - // If the sessionIdGenerator ID is not set, the session management is disabled - // and we don't need to validate the session ID - return undefined; - } - if (!this._initialized) { - // If the server has not been initialized yet, reject all requests - return this.createJsonErrorResponse(400, -32000, 'Bad Request: Server not initialized'); - } - const sessionId = req.headers.get('mcp-session-id'); - if (!sessionId) { - // Non-initialization requests without a session ID should return 400 Bad Request - return this.createJsonErrorResponse(400, -32000, 'Bad Request: Mcp-Session-Id header is required'); - } - if (sessionId !== this.sessionId) { - // Reject requests with invalid session ID with 404 Not Found - return this.createJsonErrorResponse(404, -32001, 'Session not found'); - } - return undefined; - } - /** - * Validates the MCP-Protocol-Version header on incoming requests. - * - * For initialization: Version negotiation handles unknown versions gracefully - * (server responds with its supported version). - * - * For subsequent requests with MCP-Protocol-Version header: - * - Accept if in supported list - * - 400 if unsupported - * - * For HTTP requests without the MCP-Protocol-Version header: - * - Accept and default to the version negotiated at initialization - */ - validateProtocolVersion(req) { - const protocolVersion = req.headers.get('mcp-protocol-version'); - if (protocolVersion !== null && !types_js_1.SUPPORTED_PROTOCOL_VERSIONS.includes(protocolVersion)) { - return this.createJsonErrorResponse(400, -32000, `Bad Request: Unsupported protocol version: ${protocolVersion} (supported versions: ${types_js_1.SUPPORTED_PROTOCOL_VERSIONS.join(', ')})`); - } - return undefined; - } - async close() { - // Close all SSE connections - this._streamMapping.forEach(({ cleanup }) => { - cleanup(); - }); - this._streamMapping.clear(); - // Clear any pending responses - this._requestResponseMap.clear(); - this.onclose?.(); - } - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId) { - const streamId = this._requestToStreamMapping.get(requestId); - if (!streamId) - return; - const stream = this._streamMapping.get(streamId); - if (stream) { - stream.cleanup(); - } - } - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream() { - const stream = this._streamMapping.get(this._standaloneSseStreamId); - if (stream) { - stream.cleanup(); - } - } - async send(message, options) { - let requestId = options?.relatedRequestId; - if ((0, types_js_1.isJSONRPCResultResponse)(message) || (0, types_js_1.isJSONRPCErrorResponse)(message)) { - // If the message is a response, use the request ID from the message - requestId = message.id; - } - // Check if this message should be sent on the standalone SSE stream (no request ID) - // Ignore notifications from tools (which have relatedRequestId set) - // Those will be sent via dedicated response SSE streams - if (requestId === undefined) { - // For standalone SSE streams, we can only send requests and notifications - if ((0, types_js_1.isJSONRPCResultResponse)(message) || (0, types_js_1.isJSONRPCErrorResponse)(message)) { - throw new Error('Cannot send a response on a standalone SSE stream unless resuming a previous client request'); - } - // Generate and store event ID if event store is provided - // Store even if stream is disconnected so events can be replayed on reconnect - let eventId; - if (this._eventStore) { - // Stores the event and gets the generated event ID - eventId = await this._eventStore.storeEvent(this._standaloneSseStreamId, message); - } - const standaloneSse = this._streamMapping.get(this._standaloneSseStreamId); - if (standaloneSse === undefined) { - // Stream is disconnected - event is stored for replay, nothing more to do - return; - } - // Send the message to the standalone SSE stream - if (standaloneSse.controller && standaloneSse.encoder) { - this.writeSSEEvent(standaloneSse.controller, standaloneSse.encoder, message, eventId); - } - return; - } - // Get the response for this request - const streamId = this._requestToStreamMapping.get(requestId); - if (!streamId) { - throw new Error(`No connection established for request ID: ${String(requestId)}`); - } - const stream = this._streamMapping.get(streamId); - if (!this._enableJsonResponse && stream?.controller && stream?.encoder) { - // For SSE responses, generate event ID if event store is provided - let eventId; - if (this._eventStore) { - eventId = await this._eventStore.storeEvent(streamId, message); - } - // Write the event to the response stream - this.writeSSEEvent(stream.controller, stream.encoder, message, eventId); - } - if ((0, types_js_1.isJSONRPCResultResponse)(message) || (0, types_js_1.isJSONRPCErrorResponse)(message)) { - this._requestResponseMap.set(requestId, message); - const relatedIds = Array.from(this._requestToStreamMapping.entries()) - .filter(([_, sid]) => sid === streamId) - .map(([id]) => id); - // Check if we have responses for all requests using this connection - const allResponsesReady = relatedIds.every(id => this._requestResponseMap.has(id)); - if (allResponsesReady) { - if (!stream) { - throw new Error(`No connection established for request ID: ${String(requestId)}`); - } - if (this._enableJsonResponse && stream.resolveJson) { - // All responses ready, send as JSON - const headers = { - 'Content-Type': 'application/json' - }; - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - const responses = relatedIds.map(id => this._requestResponseMap.get(id)); - if (responses.length === 1) { - stream.resolveJson(new Response(JSON.stringify(responses[0]), { status: 200, headers })); - } - else { - stream.resolveJson(new Response(JSON.stringify(responses), { status: 200, headers })); - } - } - else { - // End the SSE stream - stream.cleanup(); - } - // Clean up - for (const id of relatedIds) { - this._requestResponseMap.delete(id); - this._requestToStreamMapping.delete(id); - } - } - } - } -} -exports.WebStandardStreamableHTTPServerTransport = WebStandardStreamableHTTPServerTransport; -//# sourceMappingURL=webStandardStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map deleted file mode 100644 index 79bd421..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webStandardStreamableHttp.js","sourceRoot":"","sources":["../../../src/server/webStandardStreamableHttp.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAIH,0CAYqB;AA8IrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,wCAAwC;IAuBjD,YAAY,UAA2D,EAAE;QApBjE,aAAQ,GAAY,KAAK,CAAC;QAC1B,mBAAc,GAA+B,IAAI,GAAG,EAAE,CAAC;QACvD,4BAAuB,GAA2B,IAAI,GAAG,EAAE,CAAC;QAC5D,wBAAmB,GAAmC,IAAI,GAAG,EAAE,CAAC;QAChE,iBAAY,GAAY,KAAK,CAAC;QAC9B,wBAAmB,GAAY,KAAK,CAAC;QACrC,2BAAs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EAAE,CAAC,CAAC,CAAC;oBAC1F,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,qBAAqB;oBACrB,MAAM,CAAC,OAAO,EAAE,CAAC;gBACrB,CAAC;gBACD,WAAW;gBACX,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;oBAC1B,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBACpC,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC5C,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;CACJ;AApxBD,4FAoxBC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts deleted file mode 100644 index c3a5b60..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type * as z3 from 'zod/v3'; -import type * as z4 from 'zod/v4/core'; -export type AnySchema = z3.ZodTypeAny | z4.$ZodType; -export type AnyObjectSchema = z3.AnyZodObject | z4.$ZodObject | AnySchema; -export type ZodRawShapeCompat = Record; -export interface ZodV3Internal { - _def?: { - typeName?: string; - value?: unknown; - values?: unknown[]; - shape?: Record | (() => Record); - description?: string; - }; - shape?: Record | (() => Record); - value?: unknown; -} -export interface ZodV4Internal { - _zod?: { - def?: { - type?: string; - value?: unknown; - values?: unknown[]; - shape?: Record | (() => Record); - }; - }; - value?: unknown; -} -export type SchemaOutput = S extends z3.ZodTypeAny ? z3.infer : S extends z4.$ZodType ? z4.output : never; -export type SchemaInput = S extends z3.ZodTypeAny ? z3.input : S extends z4.$ZodType ? z4.input : never; -/** - * Infers the output type from a ZodRawShapeCompat (raw shape object). - * Maps over each key in the shape and infers the output type from each schema. - */ -export type ShapeOutput = { - [K in keyof Shape]: SchemaOutput; -}; -export declare function isZ4Schema(s: AnySchema): s is z4.$ZodType; -export declare function objectFromShape(shape: ZodRawShapeCompat): AnyObjectSchema; -export declare function safeParse(schema: S, data: unknown): { - success: true; - data: SchemaOutput; -} | { - success: false; - error: unknown; -}; -export declare function safeParseAsync(schema: S, data: unknown): Promise<{ - success: true; - data: SchemaOutput; -} | { - success: false; - error: unknown; -}>; -export declare function getObjectShape(schema: AnyObjectSchema | undefined): Record | undefined; -/** - * Normalizes a schema to an object schema. Handles both: - * - Already-constructed object schemas (v3 or v4) - * - Raw shapes that need to be wrapped into object schemas - */ -export declare function normalizeObjectSchema(schema: AnySchema | ZodRawShapeCompat | undefined): AnyObjectSchema | undefined; -/** - * Safely extracts an error message from a parse result error. - * Zod errors can have different structures, so we handle various cases. - */ -export declare function getParseErrorMessage(error: unknown): string; -/** - * Gets the description from a schema, if available. - * Works with both Zod v3 and v4. - * - * Both versions expose a `.description` getter that returns the description - * from their respective internal storage (v3: _def, v4: globalRegistry). - */ -export declare function getSchemaDescription(schema: AnySchema): string | undefined; -/** - * Checks if a schema is optional. - * Works with both Zod v3 and v4. - */ -export declare function isSchemaOptional(schema: AnySchema): boolean; -/** - * Gets the literal value from a schema, if it's a literal schema. - * Works with both Zod v3 and v4. - * Returns undefined if the schema is not a literal or the value cannot be determined. - */ -export declare function getLiteralValue(schema: AnySchema): unknown; -//# sourceMappingURL=zod-compat.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map deleted file mode 100644 index a2ccd51..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-compat.d.ts","sourceRoot":"","sources":["../../../src/server/zod-compat.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC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gB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,CAyBzG;AAGD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,iBAAiB,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,CAiDpH;AAGD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAoB3D;AAGD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAW3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAwB1D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js deleted file mode 100644 index 2e75c80..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; -// zod-compat.ts -// ---------------------------------------------------- -// Unified types + helpers to accept Zod v3 and v4 (Mini) -// ---------------------------------------------------- -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isZ4Schema = isZ4Schema; -exports.objectFromShape = objectFromShape; -exports.safeParse = safeParse; -exports.safeParseAsync = safeParseAsync; -exports.getObjectShape = getObjectShape; -exports.normalizeObjectSchema = normalizeObjectSchema; -exports.getParseErrorMessage = getParseErrorMessage; -exports.getSchemaDescription = getSchemaDescription; -exports.isSchemaOptional = isSchemaOptional; -exports.getLiteralValue = getLiteralValue; -const z3rt = __importStar(require("zod/v3")); -const z4mini = __importStar(require("zod/v4-mini")); -// --- Runtime detection --- -function isZ4Schema(s) { - // Present on Zod 4 (Classic & Mini) schemas; absent on Zod 3 - const schema = s; - return !!schema._zod; -} -// --- Schema construction --- -function objectFromShape(shape) { - const values = Object.values(shape); - if (values.length === 0) - return z4mini.object({}); // default to v4 Mini - const allV4 = values.every(isZ4Schema); - const allV3 = values.every(s => !isZ4Schema(s)); - if (allV4) - return z4mini.object(shape); - if (allV3) - return z3rt.object(shape); - throw new Error('Mixed Zod versions detected in object shape.'); -} -// --- Unified parsing --- -function safeParse(schema, data) { - if (isZ4Schema(schema)) { - // Mini exposes top-level safeParse - const result = z4mini.safeParse(schema, data); - return result; - } - const v3Schema = schema; - const result = v3Schema.safeParse(data); - return result; -} -async function safeParseAsync(schema, data) { - if (isZ4Schema(schema)) { - // Mini exposes top-level safeParseAsync - const result = await z4mini.safeParseAsync(schema, data); - return result; - } - const v3Schema = schema; - const result = await v3Schema.safeParseAsync(data); - return result; -} -// --- Shape extraction --- -function getObjectShape(schema) { - if (!schema) - return undefined; - // Zod v3 exposes `.shape`; Zod v4 keeps the shape on `_zod.def.shape` - let rawShape; - if (isZ4Schema(schema)) { - const v4Schema = schema; - rawShape = v4Schema._zod?.def?.shape; - } - else { - const v3Schema = schema; - rawShape = v3Schema.shape; - } - if (!rawShape) - return undefined; - if (typeof rawShape === 'function') { - try { - return rawShape(); - } - catch { - return undefined; - } - } - return rawShape; -} -// --- Schema normalization --- -/** - * Normalizes a schema to an object schema. Handles both: - * - Already-constructed object schemas (v3 or v4) - * - Raw shapes that need to be wrapped into object schemas - */ -function normalizeObjectSchema(schema) { - if (!schema) - return undefined; - // First check if it's a raw shape (Record) - // Raw shapes don't have _def or _zod properties and aren't schemas themselves - if (typeof schema === 'object') { - // Check if it's actually a ZodRawShapeCompat (not a schema instance) - // by checking if it lacks schema-like internal properties - const asV3 = schema; - const asV4 = schema; - // If it's not a schema instance (no _def or _zod), it might be a raw shape - if (!asV3._def && !asV4._zod) { - // Check if all values are schemas (heuristic to confirm it's a raw shape) - const values = Object.values(schema); - if (values.length > 0 && - values.every(v => typeof v === 'object' && - v !== null && - (v._def !== undefined || - v._zod !== undefined || - typeof v.parse === 'function'))) { - return objectFromShape(schema); - } - } - } - // If we get here, it should be an AnySchema (not a raw shape) - // Check if it's already an object schema - if (isZ4Schema(schema)) { - // Check if it's a v4 object - const v4Schema = schema; - const def = v4Schema._zod?.def; - if (def && (def.type === 'object' || def.shape !== undefined)) { - return schema; - } - } - else { - // Check if it's a v3 object - const v3Schema = schema; - if (v3Schema.shape !== undefined) { - return schema; - } - } - return undefined; -} -// --- Error message extraction --- -/** - * Safely extracts an error message from a parse result error. - * Zod errors can have different structures, so we handle various cases. - */ -function getParseErrorMessage(error) { - if (error && typeof error === 'object') { - // Try common error structures - if ('message' in error && typeof error.message === 'string') { - return error.message; - } - if ('issues' in error && Array.isArray(error.issues) && error.issues.length > 0) { - const firstIssue = error.issues[0]; - if (firstIssue && typeof firstIssue === 'object' && 'message' in firstIssue) { - return String(firstIssue.message); - } - } - // Fallback: try to stringify the error - try { - return JSON.stringify(error); - } - catch { - return String(error); - } - } - return String(error); -} -// --- Schema metadata access --- -/** - * Gets the description from a schema, if available. - * Works with both Zod v3 and v4. - * - * Both versions expose a `.description` getter that returns the description - * from their respective internal storage (v3: _def, v4: globalRegistry). - */ -function getSchemaDescription(schema) { - return schema.description; -} -/** - * Checks if a schema is optional. - * Works with both Zod v3 and v4. - */ -function isSchemaOptional(schema) { - if (isZ4Schema(schema)) { - const v4Schema = schema; - return v4Schema._zod?.def?.type === 'optional'; - } - const v3Schema = schema; - // v3 has isOptional() method - if (typeof schema.isOptional === 'function') { - return schema.isOptional(); - } - return v3Schema._def?.typeName === 'ZodOptional'; -} -/** - * Gets the literal value from a schema, if it's a literal schema. - * Works with both Zod v3 and v4. - * Returns undefined if the schema is not a literal or the value cannot be determined. - */ -function getLiteralValue(schema) { - if (isZ4Schema(schema)) { - const v4Schema = schema; - const def = v4Schema._zod?.def; - if (def) { - // Try various ways to get the literal value - if (def.value !== undefined) - return def.value; - if (Array.isArray(def.values) && def.values.length > 0) { - return def.values[0]; - } - } - } - const v3Schema = schema; - const def = v3Schema._def; - if (def) { - if (def.value !== undefined) - return def.value; - if (Array.isArray(def.values) && def.values.length > 0) { - return def.values[0]; - } - } - // Fallback: check for direct value property (some Zod versions) - const directValue = schema.value; - if (directValue !== undefined) - return directValue; - return undefined; -} -//# sourceMappingURL=zod-compat.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map deleted file mode 100644 index d36391a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-compat.js","sourceRoot":"","sources":["../../../src/server/zod-compat.ts"],"names":[],"mappings":";AAAA,gBAAgB;AAChB,uDAAuD;AACvD,yDAAyD;AACzD,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;AAqDvD,gCAIC;AAGD,0CAWC;AAGD,8BAYC;AAED,wCAYC;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AAI,MAA8B,CAAC,KAAK,CAAC;IAC1D,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC;IAClD,OAAO,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts deleted file mode 100644 index 3a04452..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AnySchema, AnyObjectSchema } from './zod-compat.js'; -type JsonSchema = Record; -type CommonOpts = { - strictUnions?: boolean; - pipeStrategy?: 'input' | 'output'; - target?: 'jsonSchema7' | 'draft-7' | 'jsonSchema2019-09' | 'draft-2020-12'; -}; -export declare function toJsonSchemaCompat(schema: AnyObjectSchema, opts?: CommonOpts): JsonSchema; -export declare function getMethodLiteral(schema: AnyObjectSchema): string; -export declare function parseWithCompat(schema: AnySchema, data: unknown): unknown; -export {}; -//# sourceMappingURL=zod-json-schema-compat.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map deleted file mode 100644 index 0b851bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-json-schema-compat.d.ts","sourceRoot":"","sources":["../../../src/server/zod-json-schema-compat.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,eAAe,EAA0D,MAAM,iBAAiB,CAAC;AAGrH,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAG1C,KAAK,UAAU,GAAG;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,mBAAmB,GAAG,eAAe,CAAC;CAC9E,CAAC;AASF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAczF;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAahE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAMzE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js deleted file mode 100644 index bc067da..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -// zod-json-schema-compat.ts -// ---------------------------------------------------- -// JSON Schema conversion for both Zod v3 and Zod v4 (Mini) -// v3 uses your vendored converter; v4 uses Mini's toJSONSchema -// ---------------------------------------------------- -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toJsonSchemaCompat = toJsonSchemaCompat; -exports.getMethodLiteral = getMethodLiteral; -exports.parseWithCompat = parseWithCompat; -const z4mini = __importStar(require("zod/v4-mini")); -const zod_compat_js_1 = require("./zod-compat.js"); -const zod_to_json_schema_1 = require("zod-to-json-schema"); -function mapMiniTarget(t) { - if (!t) - return 'draft-7'; - if (t === 'jsonSchema7' || t === 'draft-7') - return 'draft-7'; - if (t === 'jsonSchema2019-09' || t === 'draft-2020-12') - return 'draft-2020-12'; - return 'draft-7'; // fallback -} -function toJsonSchemaCompat(schema, opts) { - if ((0, zod_compat_js_1.isZ4Schema)(schema)) { - // v4 branch — use Mini's built-in toJSONSchema - return z4mini.toJSONSchema(schema, { - target: mapMiniTarget(opts?.target), - io: opts?.pipeStrategy ?? 'input' - }); - } - // v3 branch — use vendored converter - return (0, zod_to_json_schema_1.zodToJsonSchema)(schema, { - strictUnions: opts?.strictUnions ?? true, - pipeStrategy: opts?.pipeStrategy ?? 'input' - }); -} -function getMethodLiteral(schema) { - const shape = (0, zod_compat_js_1.getObjectShape)(schema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - const value = (0, zod_compat_js_1.getLiteralValue)(methodSchema); - if (typeof value !== 'string') { - throw new Error('Schema method literal must be a string'); - } - return value; -} -function parseWithCompat(schema, data) { - const result = (0, zod_compat_js_1.safeParse)(schema, data); - if (!result.success) { - throw result.error; - } - return result.data; -} -//# sourceMappingURL=zod-json-schema-compat.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map deleted file mode 100644 index 627929d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-json-schema-compat.js","sourceRoot":"","sources":["../../../src/server/zod-json-schema-compat.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,uDAAuD;AACvD,2DAA2D;AAC3D,+DAA+D;AAC/D,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;AA0BvD,gDAcC;AAED,4CAaC;AAED,0CAMC;AA1DD,oDAAsC;AAEtC,mDAAqH;AACrH,2DAAqD;AAWrD,SAAS,aAAa,CAAC,CAAmC;IACtD,IAAI,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACzB,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,KAAK,mBAAmB,IAAI,CAAC,KAAK,eAAe;QAAE,OAAO,eAAe,CAAC;IAC/E,OAAO,SAAS,CAAC,CAAC,WAAW;AACjC,CAAC;AAED,SAAgB,kBAAkB,CAAC,MAAuB,EAAE,IAAiB;IACzE,IAAI,IAAA,0BAAU,EAAC,MAAM,CAAC,EAAE,CAAC;QACrB,+CAA+C;QAC/C,OAAO,MAAM,CAAC,YAAY,CAAC,MAAsB,EAAE;YAC/C,MAAM,EAAE,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC;YACnC,EAAE,EAAE,IAAI,EAAE,YAAY,IAAI,OAAO;SACpC,CAAe,CAAC;IACrB,CAAC;IAED,qCAAqC;IACrC,OAAO,IAAA,oCAAe,EAAC,MAAuB,EAAE;QAC5C,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,IAAI;QACxC,YAAY,EAAE,IAAI,EAAE,YAAY,IAAI,OAAO;KAC9C,CAAe,CAAC;AACrB,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAuB;IACpD,MAAM,KAAK,GAAG,IAAA,8BAAc,EAAC,MAAM,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,KAAK,EAAE,MAA+B,CAAC;IAC5D,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,KAAK,GAAG,IAAA,+BAAe,EAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,eAAe,CAAC,MAAiB,EAAE,IAAa;IAC5D,MAAM,MAAM,GAAG,IAAA,yBAAS,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,MAAM,CAAC,KAAK,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts deleted file mode 100644 index c966e30..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Utilities for handling OAuth resource URIs. - */ -/** - * Converts a server URL to a resource URL by removing the fragment. - * RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component". - * Keeps everything else unchanged (scheme, domain, port, path, query). - */ -export declare function resourceUrlFromServerUrl(url: URL | string): URL; -/** - * Checks if a requested resource URL matches a configured resource URL. - * A requested resource matches if it has the same scheme, domain, port, - * and its path starts with the configured resource's path. - * - * @param requestedResource The resource URL being requested - * @param configuredResource The resource URL that has been configured - * @returns true if the requested resource matches the configured resource, false otherwise - */ -export declare function checkResourceAllowed({ requestedResource, configuredResource }: { - requestedResource: URL | string; - configuredResource: URL | string; -}): boolean; -//# sourceMappingURL=auth-utils.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map deleted file mode 100644 index 30873de..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/auth-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,GAAG,CAI/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,iBAAiB,EACjB,kBAAkB,EACrB,EAAE;IACC,iBAAiB,EAAE,GAAG,GAAG,MAAM,CAAC;IAChC,kBAAkB,EAAE,GAAG,GAAG,MAAM,CAAC;CACpC,GAAG,OAAO,CAwBV"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js deleted file mode 100644 index f2fe617..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -/** - * Utilities for handling OAuth resource URIs. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resourceUrlFromServerUrl = resourceUrlFromServerUrl; -exports.checkResourceAllowed = checkResourceAllowed; -/** - * Converts a server URL to a resource URL by removing the fragment. - * RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component". - * Keeps everything else unchanged (scheme, domain, port, path, query). - */ -function resourceUrlFromServerUrl(url) { - const resourceURL = typeof url === 'string' ? new URL(url) : new URL(url.href); - resourceURL.hash = ''; // Remove fragment - return resourceURL; -} -/** - * Checks if a requested resource URL matches a configured resource URL. - * A requested resource matches if it has the same scheme, domain, port, - * and its path starts with the configured resource's path. - * - * @param requestedResource The resource URL being requested - * @param configuredResource The resource URL that has been configured - * @returns true if the requested resource matches the configured resource, false otherwise - */ -function checkResourceAllowed({ requestedResource, configuredResource }) { - const requested = typeof requestedResource === 'string' ? new URL(requestedResource) : new URL(requestedResource.href); - const configured = typeof configuredResource === 'string' ? new URL(configuredResource) : new URL(configuredResource.href); - // Compare the origin (scheme, domain, and port) - if (requested.origin !== configured.origin) { - return false; - } - // Handle cases like requested=/foo and configured=/foo/ - if (requested.pathname.length < configured.pathname.length) { - return false; - } - // Check if the requested path starts with the configured path - // Ensure both paths end with / for proper comparison - // This ensures that if we have paths like "/api" and "/api/users", - // we properly detect that "/api/users" is a subpath of "/api" - // By adding a trailing slash if missing, we avoid false positives - // where paths like "/api123" would incorrectly match "/api" - const requestedPath = requested.pathname.endsWith('/') ? requested.pathname : requested.pathname + '/'; - const configuredPath = configured.pathname.endsWith('/') ? configured.pathname : configured.pathname + '/'; - return requestedPath.startsWith(configuredPath); -} -//# sourceMappingURL=auth-utils.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map deleted file mode 100644 index 4a71b25..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-utils.js","sourceRoot":"","sources":["../../../src/shared/auth-utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAOH,4DAIC;AAWD,oDA8BC;AAlDD;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,GAAiB;IACtD,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,GA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CAAC,UAAU,CAAC,QAAQ,GAAG,GAAG,CAAC;IAE3G,OAAO,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts deleted file mode 100644 index 4e47be1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +++ /dev/null @@ -1,240 +0,0 @@ -import * as z from 'zod/v4'; -/** - * Reusable URL validation that disallows javascript: scheme - */ -export declare const SafeUrlSchema: z.ZodURL; -/** - * RFC 9728 OAuth Protected Resource Metadata - */ -export declare const OAuthProtectedResourceMetadataSchema: z.ZodObject<{ - resource: z.ZodString; - authorization_servers: z.ZodOptional>; - jwks_uri: z.ZodOptional; - scopes_supported: z.ZodOptional>; - bearer_methods_supported: z.ZodOptional>; - resource_signing_alg_values_supported: z.ZodOptional>; - resource_name: z.ZodOptional; - resource_documentation: z.ZodOptional; - resource_policy_uri: z.ZodOptional; - resource_tos_uri: z.ZodOptional; - tls_client_certificate_bound_access_tokens: z.ZodOptional; - authorization_details_types_supported: z.ZodOptional>; - dpop_signing_alg_values_supported: z.ZodOptional>; - dpop_bound_access_tokens_required: z.ZodOptional; -}, z.core.$loose>; -/** - * RFC 8414 OAuth 2.0 Authorization Server Metadata - */ -export declare const OAuthMetadataSchema: z.ZodObject<{ - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - revocation_endpoint: z.ZodOptional; - revocation_endpoint_auth_methods_supported: z.ZodOptional>; - revocation_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - introspection_endpoint: z.ZodOptional; - introspection_endpoint_auth_methods_supported: z.ZodOptional>; - introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - code_challenge_methods_supported: z.ZodOptional>; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$loose>; -/** - * OpenID Connect Discovery 1.0 Provider Metadata - * see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - */ -export declare const OpenIdProviderMetadataSchema: z.ZodObject<{ - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - userinfo_endpoint: z.ZodOptional; - jwks_uri: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - acr_values_supported: z.ZodOptional>; - subject_types_supported: z.ZodArray; - id_token_signing_alg_values_supported: z.ZodArray; - id_token_encryption_alg_values_supported: z.ZodOptional>; - id_token_encryption_enc_values_supported: z.ZodOptional>; - userinfo_signing_alg_values_supported: z.ZodOptional>; - userinfo_encryption_alg_values_supported: z.ZodOptional>; - userinfo_encryption_enc_values_supported: z.ZodOptional>; - request_object_signing_alg_values_supported: z.ZodOptional>; - request_object_encryption_alg_values_supported: z.ZodOptional>; - request_object_encryption_enc_values_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - display_values_supported: z.ZodOptional>; - claim_types_supported: z.ZodOptional>; - claims_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - claims_locales_supported: z.ZodOptional>; - ui_locales_supported: z.ZodOptional>; - claims_parameter_supported: z.ZodOptional; - request_parameter_supported: z.ZodOptional; - request_uri_parameter_supported: z.ZodOptional; - require_request_uri_registration: z.ZodOptional; - op_policy_uri: z.ZodOptional; - op_tos_uri: z.ZodOptional; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$loose>; -/** - * OpenID Connect Discovery metadata that may include OAuth 2.0 fields - * This schema represents the real-world scenario where OIDC providers - * return a mix of OpenID Connect and OAuth 2.0 metadata fields - */ -export declare const OpenIdProviderDiscoveryMetadataSchema: z.ZodObject<{ - code_challenge_methods_supported: z.ZodOptional>; - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - userinfo_endpoint: z.ZodOptional; - jwks_uri: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - acr_values_supported: z.ZodOptional>; - subject_types_supported: z.ZodArray; - id_token_signing_alg_values_supported: z.ZodArray; - id_token_encryption_alg_values_supported: z.ZodOptional>; - id_token_encryption_enc_values_supported: z.ZodOptional>; - userinfo_signing_alg_values_supported: z.ZodOptional>; - userinfo_encryption_alg_values_supported: z.ZodOptional>; - userinfo_encryption_enc_values_supported: z.ZodOptional>; - request_object_signing_alg_values_supported: z.ZodOptional>; - request_object_encryption_alg_values_supported: z.ZodOptional>; - request_object_encryption_enc_values_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - display_values_supported: z.ZodOptional>; - claim_types_supported: z.ZodOptional>; - claims_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - claims_locales_supported: z.ZodOptional>; - ui_locales_supported: z.ZodOptional>; - claims_parameter_supported: z.ZodOptional; - request_parameter_supported: z.ZodOptional; - request_uri_parameter_supported: z.ZodOptional; - require_request_uri_registration: z.ZodOptional; - op_policy_uri: z.ZodOptional; - op_tos_uri: z.ZodOptional; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$strip>; -/** - * OAuth 2.1 token response - */ -export declare const OAuthTokensSchema: z.ZodObject<{ - access_token: z.ZodString; - id_token: z.ZodOptional; - token_type: z.ZodString; - expires_in: z.ZodOptional>; - scope: z.ZodOptional; - refresh_token: z.ZodOptional; -}, z.core.$strip>; -/** - * OAuth 2.1 error response - */ -export declare const OAuthErrorResponseSchema: z.ZodObject<{ - error: z.ZodString; - error_description: z.ZodOptional; - error_uri: z.ZodOptional; -}, z.core.$strip>; -/** - * Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri - */ -export declare const OptionalSafeUrlSchema: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration metadata - */ -export declare const OAuthClientMetadataSchema: z.ZodObject<{ - redirect_uris: z.ZodArray; - token_endpoint_auth_method: z.ZodOptional; - grant_types: z.ZodOptional>; - response_types: z.ZodOptional>; - client_name: z.ZodOptional; - client_uri: z.ZodOptional; - logo_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - scope: z.ZodOptional; - contacts: z.ZodOptional>; - tos_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - policy_uri: z.ZodOptional; - jwks_uri: z.ZodOptional; - jwks: z.ZodOptional; - software_id: z.ZodOptional; - software_version: z.ZodOptional; - software_statement: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration client information - */ -export declare const OAuthClientInformationSchema: z.ZodObject<{ - client_id: z.ZodString; - client_secret: z.ZodOptional; - client_id_issued_at: z.ZodOptional; - client_secret_expires_at: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration full response (client information plus metadata) - */ -export declare const OAuthClientInformationFullSchema: z.ZodObject<{ - redirect_uris: z.ZodArray; - token_endpoint_auth_method: z.ZodOptional; - grant_types: z.ZodOptional>; - response_types: z.ZodOptional>; - client_name: z.ZodOptional; - client_uri: z.ZodOptional; - logo_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - scope: z.ZodOptional; - contacts: z.ZodOptional>; - tos_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - policy_uri: z.ZodOptional; - jwks_uri: z.ZodOptional; - jwks: z.ZodOptional; - software_id: z.ZodOptional; - software_version: z.ZodOptional; - software_statement: z.ZodOptional; - client_id: z.ZodString; - client_secret: z.ZodOptional; - client_id_issued_at: z.ZodOptional; - client_secret_expires_at: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration error response - */ -export declare const OAuthClientRegistrationErrorSchema: z.ZodObject<{ - error: z.ZodString; - error_description: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7009 OAuth 2.0 Token Revocation request - */ -export declare const OAuthTokenRevocationRequestSchema: z.ZodObject<{ - token: z.ZodString; - token_type_hint: z.ZodOptional; -}, z.core.$strip>; -export type OAuthMetadata = z.infer; -export type OpenIdProviderMetadata = z.infer; -export type OpenIdProviderDiscoveryMetadata = z.infer; -export type OAuthTokens = z.infer; -export type OAuthErrorResponse = z.infer; -export type OAuthClientMetadata = z.infer; -export type OAuthClientInformation = z.infer; -export type OAuthClientInformationFull = z.infer; -export type OAuthClientInformationMixed = OAuthClientInformation | OAuthClientInformationFull; -export type OAuthClientRegistrationError = z.infer; -export type OAuthTokenRevocationRequest = z.infer; -export type OAuthProtectedResourceMetadata = z.infer; -export type AuthorizationServerMetadata = OAuthMetadata | OpenIdProviderDiscoveryMetadata; -//# sourceMappingURL=auth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map deleted file mode 100644 index 031a88f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/shared/auth.ts"],"names":[],"mappings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,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG,0BAA0B,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAGlG,MAAM,MAAM,2BAA2B,GAAG,aAAa,GAAG,+BAA+B,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js deleted file mode 100644 index 97217c9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +++ /dev/null @@ -1,224 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OAuthTokenRevocationRequestSchema = exports.OAuthClientRegistrationErrorSchema = exports.OAuthClientInformationFullSchema = exports.OAuthClientInformationSchema = exports.OAuthClientMetadataSchema = exports.OptionalSafeUrlSchema = exports.OAuthErrorResponseSchema = exports.OAuthTokensSchema = exports.OpenIdProviderDiscoveryMetadataSchema = exports.OpenIdProviderMetadataSchema = exports.OAuthMetadataSchema = exports.OAuthProtectedResourceMetadataSchema = exports.SafeUrlSchema = void 0; -const z = __importStar(require("zod/v4")); -/** - * Reusable URL validation that disallows javascript: scheme - */ -exports.SafeUrlSchema = z - .url() - .superRefine((val, ctx) => { - if (!URL.canParse(val)) { - ctx.addIssue({ - code: z.ZodIssueCode.custom, - message: 'URL must be parseable', - fatal: true - }); - return z.NEVER; - } -}) - .refine(url => { - const u = new URL(url); - return u.protocol !== 'javascript:' && u.protocol !== 'data:' && u.protocol !== 'vbscript:'; -}, { message: 'URL cannot use javascript:, data:, or vbscript: scheme' }); -/** - * RFC 9728 OAuth Protected Resource Metadata - */ -exports.OAuthProtectedResourceMetadataSchema = z.looseObject({ - resource: z.string().url(), - authorization_servers: z.array(exports.SafeUrlSchema).optional(), - jwks_uri: z.string().url().optional(), - scopes_supported: z.array(z.string()).optional(), - bearer_methods_supported: z.array(z.string()).optional(), - resource_signing_alg_values_supported: z.array(z.string()).optional(), - resource_name: z.string().optional(), - resource_documentation: z.string().optional(), - resource_policy_uri: z.string().url().optional(), - resource_tos_uri: z.string().url().optional(), - tls_client_certificate_bound_access_tokens: z.boolean().optional(), - authorization_details_types_supported: z.array(z.string()).optional(), - dpop_signing_alg_values_supported: z.array(z.string()).optional(), - dpop_bound_access_tokens_required: z.boolean().optional() -}); -/** - * RFC 8414 OAuth 2.0 Authorization Server Metadata - */ -exports.OAuthMetadataSchema = z.looseObject({ - issuer: z.string(), - authorization_endpoint: exports.SafeUrlSchema, - token_endpoint: exports.SafeUrlSchema, - registration_endpoint: exports.SafeUrlSchema.optional(), - scopes_supported: z.array(z.string()).optional(), - response_types_supported: z.array(z.string()), - response_modes_supported: z.array(z.string()).optional(), - grant_types_supported: z.array(z.string()).optional(), - token_endpoint_auth_methods_supported: z.array(z.string()).optional(), - token_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - service_documentation: exports.SafeUrlSchema.optional(), - revocation_endpoint: exports.SafeUrlSchema.optional(), - revocation_endpoint_auth_methods_supported: z.array(z.string()).optional(), - revocation_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - introspection_endpoint: z.string().optional(), - introspection_endpoint_auth_methods_supported: z.array(z.string()).optional(), - introspection_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - code_challenge_methods_supported: z.array(z.string()).optional(), - client_id_metadata_document_supported: z.boolean().optional() -}); -/** - * OpenID Connect Discovery 1.0 Provider Metadata - * see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - */ -exports.OpenIdProviderMetadataSchema = z.looseObject({ - issuer: z.string(), - authorization_endpoint: exports.SafeUrlSchema, - token_endpoint: exports.SafeUrlSchema, - userinfo_endpoint: exports.SafeUrlSchema.optional(), - jwks_uri: exports.SafeUrlSchema, - registration_endpoint: exports.SafeUrlSchema.optional(), - scopes_supported: z.array(z.string()).optional(), - response_types_supported: z.array(z.string()), - response_modes_supported: z.array(z.string()).optional(), - grant_types_supported: z.array(z.string()).optional(), - acr_values_supported: z.array(z.string()).optional(), - subject_types_supported: z.array(z.string()), - id_token_signing_alg_values_supported: z.array(z.string()), - id_token_encryption_alg_values_supported: z.array(z.string()).optional(), - id_token_encryption_enc_values_supported: z.array(z.string()).optional(), - userinfo_signing_alg_values_supported: z.array(z.string()).optional(), - userinfo_encryption_alg_values_supported: z.array(z.string()).optional(), - userinfo_encryption_enc_values_supported: z.array(z.string()).optional(), - request_object_signing_alg_values_supported: z.array(z.string()).optional(), - request_object_encryption_alg_values_supported: z.array(z.string()).optional(), - request_object_encryption_enc_values_supported: z.array(z.string()).optional(), - token_endpoint_auth_methods_supported: z.array(z.string()).optional(), - token_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - display_values_supported: z.array(z.string()).optional(), - claim_types_supported: z.array(z.string()).optional(), - claims_supported: z.array(z.string()).optional(), - service_documentation: z.string().optional(), - claims_locales_supported: z.array(z.string()).optional(), - ui_locales_supported: z.array(z.string()).optional(), - claims_parameter_supported: z.boolean().optional(), - request_parameter_supported: z.boolean().optional(), - request_uri_parameter_supported: z.boolean().optional(), - require_request_uri_registration: z.boolean().optional(), - op_policy_uri: exports.SafeUrlSchema.optional(), - op_tos_uri: exports.SafeUrlSchema.optional(), - client_id_metadata_document_supported: z.boolean().optional() -}); -/** - * OpenID Connect Discovery metadata that may include OAuth 2.0 fields - * This schema represents the real-world scenario where OIDC providers - * return a mix of OpenID Connect and OAuth 2.0 metadata fields - */ -exports.OpenIdProviderDiscoveryMetadataSchema = z.object({ - ...exports.OpenIdProviderMetadataSchema.shape, - ...exports.OAuthMetadataSchema.pick({ - code_challenge_methods_supported: true - }).shape -}); -/** - * OAuth 2.1 token response - */ -exports.OAuthTokensSchema = z - .object({ - access_token: z.string(), - id_token: z.string().optional(), // Optional for OAuth 2.1, but necessary in OpenID Connect - token_type: z.string(), - expires_in: z.coerce.number().optional(), - scope: z.string().optional(), - refresh_token: z.string().optional() -}) - .strip(); -/** - * OAuth 2.1 error response - */ -exports.OAuthErrorResponseSchema = z.object({ - error: z.string(), - error_description: z.string().optional(), - error_uri: z.string().optional() -}); -/** - * Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri - */ -exports.OptionalSafeUrlSchema = exports.SafeUrlSchema.optional().or(z.literal('').transform(() => undefined)); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration metadata - */ -exports.OAuthClientMetadataSchema = z - .object({ - redirect_uris: z.array(exports.SafeUrlSchema), - token_endpoint_auth_method: z.string().optional(), - grant_types: z.array(z.string()).optional(), - response_types: z.array(z.string()).optional(), - client_name: z.string().optional(), - client_uri: exports.SafeUrlSchema.optional(), - logo_uri: exports.OptionalSafeUrlSchema, - scope: z.string().optional(), - contacts: z.array(z.string()).optional(), - tos_uri: exports.OptionalSafeUrlSchema, - policy_uri: z.string().optional(), - jwks_uri: exports.SafeUrlSchema.optional(), - jwks: z.any().optional(), - software_id: z.string().optional(), - software_version: z.string().optional(), - software_statement: z.string().optional() -}) - .strip(); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration client information - */ -exports.OAuthClientInformationSchema = z - .object({ - client_id: z.string(), - client_secret: z.string().optional(), - client_id_issued_at: z.number().optional(), - client_secret_expires_at: z.number().optional() -}) - .strip(); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration full response (client information plus metadata) - */ -exports.OAuthClientInformationFullSchema = exports.OAuthClientMetadataSchema.merge(exports.OAuthClientInformationSchema); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration error response - */ -exports.OAuthClientRegistrationErrorSchema = z - .object({ - error: z.string(), - error_description: z.string().optional() -}) - .strip(); -/** - * RFC 7009 OAuth 2.0 Token Revocation request - */ -exports.OAuthTokenRevocationRequestSchema = z - .object({ - token: z.string(), - token_type_hint: z.string().optional() -}) - .strip(); -//# sourceMappingURL=auth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map deleted file mode 100644 index 310255a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/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,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClD,CAAC;KACD,KAAK,EAAE,CAAC;AAEb;;GAEG;AACU,QAAA,gCAAgC,GAAG,iCAAyB,CAAC,KAAK,CAAC,oCAA4B,CAAC,CAAC;AAE9G;;GAEG;AACU,QAAA,kCAAkC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC;KACD,KAAK,EAAE,CAAC;AAEb;;GAEG;AACU,QAAA,iCAAiC,GAAG,CAAC;KAC7C,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts deleted file mode 100644 index 9dff76d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseMetadata } from '../types.js'; -/** - * Utilities for working with BaseMetadata objects. - */ -/** - * Gets the display name for an object with BaseMetadata. - * For tools, the precedence is: title → annotations.title → name - * For other objects: title → name - * This implements the spec requirement: "if no title is provided, name should be used for display purposes" - */ -export declare function getDisplayName(metadata: BaseMetadata | (BaseMetadata & { - annotations?: { - title?: string; - }; -})): string; -//# sourceMappingURL=metadataUtils.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map deleted file mode 100644 index 9d9929c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadataUtils.d.ts","sourceRoot":"","sources":["../../../src/shared/metadataUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AAEH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,CAAC,YAAY,GAAG;IAAE,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,MAAM,CAarH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js deleted file mode 100644 index 2e50da6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDisplayName = getDisplayName; -/** - * Utilities for working with BaseMetadata objects. - */ -/** - * Gets the display name for an object with BaseMetadata. - * For tools, the precedence is: title → annotations.title → name - * For other objects: title → name - * This implements the spec requirement: "if no title is provided, name should be used for display purposes" - */ -function getDisplayName(metadata) { - // First check for title (not undefined and not empty string) - if (metadata.title !== undefined && metadata.title !== '') { - return metadata.title; - } - // Then check for annotations.title (only present in Tool objects) - if ('annotations' in metadata && metadata.annotations?.title) { - return metadata.annotations.title; - } - // Finally fall back to name - return metadata.name; -} -//# sourceMappingURL=metadataUtils.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map deleted file mode 100644 index a334dbd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadataUtils.js","sourceRoot":"","sources":["../../../src/shared/metadataUtils.ts"],"names":[],"mappings":";;AAYA,wCAaC;AAvBD;;GAEG;AAEH;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,QAA8E;IACzG,6DAA6D;IAC7D,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,IAAI,QAAQ,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QACxD,OAAO,QAAQ,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,kEAAkE;IAClE,IAAI,aAAa,IAAI,QAAQ,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC;QAC3D,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,4BAA4B;IAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts deleted file mode 100644 index 808bfed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +++ /dev/null @@ -1,443 +0,0 @@ -import { AnySchema, AnyObjectSchema, SchemaOutput } from '../server/zod-compat.js'; -import { ClientCapabilities, GetTaskRequest, GetTaskPayloadRequest, ListTasksResultSchema, CancelTaskResultSchema, JSONRPCRequest, Progress, RequestId, Result, ServerCapabilities, RequestMeta, RequestInfo, GetTaskResult, TaskCreationParams, RelatedTaskMetadata, Task, Request, Notification } from '../types.js'; -import { Transport, TransportSendOptions } from './transport.js'; -import { AuthInfo } from '../server/auth/types.js'; -import { TaskStore, TaskMessageQueue, CreateTaskOptions } from '../experimental/tasks/interfaces.js'; -import { ResponseMessage } from './responseMessage.js'; -/** - * Callback for progress notifications. - */ -export type ProgressCallback = (progress: Progress) => void; -/** - * Additional initialization options. - */ -export type ProtocolOptions = { - /** - * Whether to restrict emitted requests to only those that the remote side has indicated that they can handle, through their advertised capabilities. - * - * Note that this DOES NOT affect checking of _local_ side capabilities, as it is considered a logic error to mis-specify those. - * - * Currently this defaults to false, for backwards compatibility with SDK versions that did not advertise capabilities correctly. In future, this will default to true. - */ - enforceStrictCapabilities?: boolean; - /** - * An array of notification method names that should be automatically debounced. - * Any notifications with a method in this list will be coalesced if they - * occur in the same tick of the event loop. - * e.g., ['notifications/tools/list_changed'] - */ - debouncedNotificationMethods?: string[]; - /** - * Optional task storage implementation. If provided, enables task-related request handlers - * and provides task storage capabilities to request handlers. - */ - taskStore?: TaskStore; - /** - * Optional task message queue implementation for managing server-initiated messages - * that will be delivered through the tasks/result response stream. - */ - taskMessageQueue?: TaskMessageQueue; - /** - * Default polling interval (in milliseconds) for task status checks when no pollInterval - * is provided by the server. Defaults to 5000ms if not specified. - */ - defaultTaskPollInterval?: number; - /** - * Maximum number of messages that can be queued per task for side-channel delivery. - * If undefined, the queue size is unbounded. - * When the limit is exceeded, the TaskMessageQueue implementation's enqueue() method - * will throw an error. It's the implementation's responsibility to handle overflow - * appropriately (e.g., by failing the task, dropping messages, etc.). - */ - maxTaskQueueSize?: number; -}; -/** - * The default request timeout, in miliseconds. - */ -export declare const DEFAULT_REQUEST_TIMEOUT_MSEC = 60000; -/** - * Options that can be given per request. - */ -export type RequestOptions = { - /** - * If set, requests progress notifications from the remote end (if supported). When progress notifications are received, this callback will be invoked. - * - * For task-augmented requests: progress notifications continue after CreateTaskResult is returned and stop automatically when the task reaches a terminal status. - */ - onprogress?: ProgressCallback; - /** - * Can be used to cancel an in-flight request. This will cause an AbortError to be raised from request(). - */ - signal?: AbortSignal; - /** - * A timeout (in milliseconds) for this request. If exceeded, an McpError with code `RequestTimeout` will be raised from request(). - * - * If not specified, `DEFAULT_REQUEST_TIMEOUT_MSEC` will be used as the timeout. - */ - timeout?: number; - /** - * If true, receiving a progress notification will reset the request timeout. - * This is useful for long-running operations that send periodic progress updates. - * Default: false - */ - resetTimeoutOnProgress?: boolean; - /** - * Maximum total time (in milliseconds) to wait for a response. - * If exceeded, an McpError with code `RequestTimeout` will be raised, regardless of progress notifications. - * If not specified, there is no maximum total timeout. - */ - maxTotalTimeout?: number; - /** - * If provided, augments the request with task creation parameters to enable call-now, fetch-later execution patterns. - */ - task?: TaskCreationParams; - /** - * If provided, associates this request with a related task. - */ - relatedTask?: RelatedTaskMetadata; -} & TransportSendOptions; -/** - * Options that can be given per notification. - */ -export type NotificationOptions = { - /** - * May be used to indicate to the transport which incoming request to associate this outgoing notification with. - */ - relatedRequestId?: RequestId; - /** - * If provided, associates this notification with a related task. - */ - relatedTask?: RelatedTaskMetadata; -}; -/** - * Options that can be given per request. - */ -export type TaskRequestOptions = Omit; -/** - * Request-scoped TaskStore interface. - */ -export interface RequestTaskStore { - /** - * Creates a new task with the given creation parameters. - * The implementation generates a unique taskId and createdAt timestamp. - * - * @param taskParams - The task creation parameters from the request - * @returns The created task object - */ - createTask(taskParams: CreateTaskOptions): Promise; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @returns The task object - * @throws If the task does not exist - */ - getTask(taskId: string): Promise; - /** - * Stores the result of a task and sets its final status. - * - * @param taskId - The task identifier - * @param status - The final status: 'completed' for success, 'failed' for errors - * @param result - The result to store - */ - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result): Promise; - /** - * Retrieves the stored result of a task. - * - * @param taskId - The task identifier - * @returns The stored result - */ - getTaskResult(taskId: string): Promise; - /** - * Updates a task's status (e.g., to 'cancelled', 'failed', 'completed'). - * - * @param taskId - The task identifier - * @param status - The new status - * @param statusMessage - Optional diagnostic message for failed tasks or other status information - */ - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string): Promise; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @param cursor - Optional cursor for pagination - * @returns An object containing the tasks array and an optional nextCursor - */ - listTasks(cursor?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; -} -/** - * Extra data given to request handlers. - */ -export type RequestHandlerExtra = { - /** - * An abort signal used to communicate if the request was cancelled from the sender's side. - */ - signal: AbortSignal; - /** - * Information about a validated access token, provided to request handlers. - */ - authInfo?: AuthInfo; - /** - * The session ID from the transport, if available. - */ - sessionId?: string; - /** - * Metadata from the original request. - */ - _meta?: RequestMeta; - /** - * The JSON-RPC ID of the request being handled. - * This can be useful for tracking or logging purposes. - */ - requestId: RequestId; - taskId?: string; - taskStore?: RequestTaskStore; - taskRequestedTtl?: number | null; - /** - * The original HTTP request. - */ - requestInfo?: RequestInfo; - /** - * Sends a notification that relates to the current request being handled. - * - * This is used by certain transports to correctly associate related messages. - */ - sendNotification: (notification: SendNotificationT) => Promise; - /** - * Sends a request that relates to the current request being handled. - * - * This is used by certain transports to correctly associate related messages. - */ - sendRequest: (request: SendRequestT, resultSchema: U, options?: TaskRequestOptions) => Promise>; - /** - * Closes the SSE stream for this request, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - * Use this to implement polling behavior during long-running operations. - */ - closeSSEStream?: () => void; - /** - * Closes the standalone GET SSE stream, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream?: () => void; -}; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -export declare abstract class Protocol { - private _options?; - private _transport?; - private _requestMessageId; - private _requestHandlers; - private _requestHandlerAbortControllers; - private _notificationHandlers; - private _responseHandlers; - private _progressHandlers; - private _timeoutInfo; - private _pendingDebouncedNotifications; - private _taskProgressTokens; - private _taskStore?; - private _taskMessageQueue?; - private _requestResolvers; - /** - * Callback for when the connection is closed for any reason. - * - * This is invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * A handler to invoke for any request types that do not have their own handler installed. - */ - fallbackRequestHandler?: (request: JSONRPCRequest, extra: RequestHandlerExtra) => Promise; - /** - * A handler to invoke for any notification types that do not have their own handler installed. - */ - fallbackNotificationHandler?: (notification: Notification) => Promise; - constructor(_options?: ProtocolOptions | undefined); - private _oncancel; - private _setupTimeout; - private _resetTimeout; - private _cleanupTimeout; - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - connect(transport: Transport): Promise; - private _onclose; - private _onerror; - private _onnotification; - private _onrequest; - private _onprogress; - private _onresponse; - get transport(): Transport | undefined; - /** - * Closes the connection. - */ - close(): Promise; - /** - * A method to check if a capability is supported by the remote side, for the given method to be called. - * - * This should be implemented by subclasses. - */ - protected abstract assertCapabilityForMethod(method: SendRequestT['method']): void; - /** - * A method to check if a notification is supported by the local side, for the given method to be sent. - * - * This should be implemented by subclasses. - */ - protected abstract assertNotificationCapability(method: SendNotificationT['method']): void; - /** - * A method to check if a request handler is supported by the local side, for the given method to be handled. - * - * This should be implemented by subclasses. - */ - protected abstract assertRequestHandlerCapability(method: string): void; - /** - * A method to check if task creation is supported for the given request method. - * - * This should be implemented by subclasses. - */ - protected abstract assertTaskCapability(method: string): void; - /** - * A method to check if task handler is supported by the local side, for the given method to be handled. - * - * This should be implemented by subclasses. - */ - protected abstract assertTaskHandlerCapability(method: string): void; - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * @example - * ```typescript - * const stream = protocol.requestStream(request, resultSchema, options); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Task created:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Task status:', message.task.status); - * break; - * case 'result': - * console.log('Final result:', message.result); - * break; - * case 'error': - * console.error('Error:', message.error); - * break; - * } - * } - * ``` - * - * @experimental Use `client.experimental.tasks.requestStream()` to access this method. - */ - protected requestStream(request: SendRequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Sends a request and waits for a response. - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request: SendRequestT, resultSchema: T, options?: RequestOptions): Promise>; - /** - * Gets the current status of a task. - * - * @experimental Use `client.experimental.tasks.getTask()` to access this method. - */ - protected getTask(params: GetTaskRequest['params'], options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @experimental Use `client.experimental.tasks.getTaskResult()` to access this method. - */ - protected getTaskResult(params: GetTaskPayloadRequest['params'], resultSchema: T, options?: RequestOptions): Promise>; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @experimental Use `client.experimental.tasks.listTasks()` to access this method. - */ - protected listTasks(params?: { - cursor?: string; - }, options?: RequestOptions): Promise>; - /** - * Cancels a specific task. - * - * @experimental Use `client.experimental.tasks.cancelTask()` to access this method. - */ - protected cancelTask(params: { - taskId: string; - }, options?: RequestOptions): Promise>; - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - notification(notification: SendNotificationT, options?: NotificationOptions): Promise; - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => SendResultT | Promise): void; - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method: string): void; - /** - * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed. - */ - assertCanSetRequestHandler(method: string): void; - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler(notificationSchema: T, handler: (notification: SchemaOutput) => void | Promise): void; - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method: string): void; - /** - * Cleans up the progress handler associated with a task. - * This should be called when a task reaches a terminal status. - */ - private _cleanupTaskProgressHandler; - /** - * Enqueues a task-related message for side-channel delivery via tasks/result. - * @param taskId The task ID to associate the message with - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @throws Error if taskStore is not configured or if enqueue fails (e.g., queue overflow) - * - * Note: If enqueue fails, it's the TaskMessageQueue implementation's responsibility to handle - * the error appropriately (e.g., by failing the task, logging, etc.). The Protocol layer - * simply propagates the error. - */ - private _enqueueTaskMessage; - /** - * Clears the message queue for a task and rejects any pending request resolvers. - * @param taskId The task ID whose queue should be cleared - * @param sessionId Optional session ID for binding the operation to a specific session - */ - private _clearTaskQueue; - /** - * Waits for a task update (new messages or status change) with abort signal support. - * Uses polling to check for updates at the task's configured poll interval. - * @param taskId The task ID to wait for - * @param signal Abort signal to cancel the wait - * @returns Promise that resolves when an update occurs or rejects if aborted - */ - private _waitForTaskUpdate; - private requestTaskStore; -} -export declare function mergeCapabilities(base: ServerCapabilities, additional: Partial): ServerCapabilities; -export declare function mergeCapabilities(base: ClientCapabilities, additional: Partial): ClientCapabilities; -//# sourceMappingURL=protocol.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map deleted file mode 100644 index b669a01..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/shared/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAa,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAEH,kBAAkB,EAGlB,cAAc,EAGd,qBAAqB,EAGrB,qBAAqB,EAErB,sBAAsB,EAOtB,cAAc,EAId,QAAQ,EAIR,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,W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C,GAAG,kBAAkB,CAAC;AACzH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js deleted file mode 100644 index 198ffe1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +++ /dev/null @@ -1,1091 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Protocol = exports.DEFAULT_REQUEST_TIMEOUT_MSEC = void 0; -exports.mergeCapabilities = mergeCapabilities; -const zod_compat_js_1 = require("../server/zod-compat.js"); -const types_js_1 = require("../types.js"); -const interfaces_js_1 = require("../experimental/tasks/interfaces.js"); -const zod_json_schema_compat_js_1 = require("../server/zod-json-schema-compat.js"); -/** - * The default request timeout, in miliseconds. - */ -exports.DEFAULT_REQUEST_TIMEOUT_MSEC = 60000; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -class Protocol { - constructor(_options) { - this._options = _options; - this._requestMessageId = 0; - this._requestHandlers = new Map(); - this._requestHandlerAbortControllers = new Map(); - this._notificationHandlers = new Map(); - this._responseHandlers = new Map(); - this._progressHandlers = new Map(); - this._timeoutInfo = new Map(); - this._pendingDebouncedNotifications = new Set(); - // Maps task IDs to progress tokens to keep handlers alive after CreateTaskResult - this._taskProgressTokens = new Map(); - this._requestResolvers = new Map(); - this.setNotificationHandler(types_js_1.CancelledNotificationSchema, notification => { - this._oncancel(notification); - }); - this.setNotificationHandler(types_js_1.ProgressNotificationSchema, notification => { - this._onprogress(notification); - }); - this.setRequestHandler(types_js_1.PingRequestSchema, - // Automatic pong by default. - _request => ({})); - // Install task handlers if TaskStore is provided - this._taskStore = _options?.taskStore; - this._taskMessageQueue = _options?.taskMessageQueue; - if (this._taskStore) { - this.setRequestHandler(types_js_1.GetTaskRequestSchema, async (request, extra) => { - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, 'Failed to retrieve task: Task not found'); - } - // Per spec: tasks/get responses SHALL NOT include related-task metadata - // as the taskId parameter is the source of truth - // @ts-expect-error SendResultT cannot contain GetTaskResult, but we include it in our derived types everywhere else - return { - ...task - }; - }); - this.setRequestHandler(types_js_1.GetTaskPayloadRequestSchema, async (request, extra) => { - const handleTaskResult = async () => { - const taskId = request.params.taskId; - // Deliver queued messages - if (this._taskMessageQueue) { - let queuedMessage; - while ((queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId))) { - // Handle response and error messages by routing them to the appropriate resolver - if (queuedMessage.type === 'response' || queuedMessage.type === 'error') { - const message = queuedMessage.message; - const requestId = message.id; - // Lookup resolver in _requestResolvers map - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - // Remove resolver from map after invocation - this._requestResolvers.delete(requestId); - // Invoke resolver with response or error - if (queuedMessage.type === 'response') { - resolver(message); - } - else { - // Convert JSONRPCError to McpError - const errorMessage = message; - const error = new types_js_1.McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data); - resolver(error); - } - } - else { - // Handle missing resolver gracefully with error logging - const messageType = queuedMessage.type === 'response' ? 'Response' : 'Error'; - this._onerror(new Error(`${messageType} handler missing for request ${requestId}`)); - } - // Continue to next message - continue; - } - // Send the message on the response stream by passing the relatedRequestId - // This tells the transport to write the message to the tasks/result response stream - await this._transport?.send(queuedMessage.message, { relatedRequestId: extra.requestId }); - } - } - // Now check task status - const task = await this._taskStore.getTask(taskId, extra.sessionId); - if (!task) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Task not found: ${taskId}`); - } - // Block if task is not terminal (we've already delivered all queued messages above) - if (!(0, interfaces_js_1.isTerminal)(task.status)) { - // Wait for status change or new messages - await this._waitForTaskUpdate(taskId, extra.signal); - // After waking up, recursively call to deliver any new messages or result - return await handleTaskResult(); - } - // If task is terminal, return the result - if ((0, interfaces_js_1.isTerminal)(task.status)) { - const result = await this._taskStore.getTaskResult(taskId, extra.sessionId); - this._clearTaskQueue(taskId); - return { - ...result, - _meta: { - ...result._meta, - [types_js_1.RELATED_TASK_META_KEY]: { - taskId: taskId - } - } - }; - } - return await handleTaskResult(); - }; - return await handleTaskResult(); - }); - this.setRequestHandler(types_js_1.ListTasksRequestSchema, async (request, extra) => { - try { - const { tasks, nextCursor } = await this._taskStore.listTasks(request.params?.cursor, extra.sessionId); - // @ts-expect-error SendResultT cannot contain ListTasksResult, but we include it in our derived types everywhere else - return { - tasks, - nextCursor, - _meta: {} - }; - } - catch (error) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Failed to list tasks: ${error instanceof Error ? error.message : String(error)}`); - } - }); - this.setRequestHandler(types_js_1.CancelTaskRequestSchema, async (request, extra) => { - try { - // Get the current task to check if it's in a terminal state, in case the implementation is not atomic - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Task not found: ${request.params.taskId}`); - } - // Reject cancellation of terminal tasks - if ((0, interfaces_js_1.isTerminal)(task.status)) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`); - } - await this._taskStore.updateTaskStatus(request.params.taskId, 'cancelled', 'Client cancelled task execution.', extra.sessionId); - this._clearTaskQueue(request.params.taskId); - const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!cancelledTask) { - // Task was deleted during cancellation (e.g., cleanup happened) - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`); - } - return { - _meta: {}, - ...cancelledTask - }; - } - catch (error) { - // Re-throw McpError as-is - if (error instanceof types_js_1.McpError) { - throw error; - } - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, `Failed to cancel task: ${error instanceof Error ? error.message : String(error)}`); - } - }); - } - } - async _oncancel(notification) { - if (!notification.params.requestId) { - return; - } - // Handle request cancellation - const controller = this._requestHandlerAbortControllers.get(notification.params.requestId); - controller?.abort(notification.params.reason); - } - _setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) { - this._timeoutInfo.set(messageId, { - timeoutId: setTimeout(onTimeout, timeout), - startTime: Date.now(), - timeout, - maxTotalTimeout, - resetTimeoutOnProgress, - onTimeout - }); - } - _resetTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (!info) - return false; - const totalElapsed = Date.now() - info.startTime; - if (info.maxTotalTimeout && totalElapsed >= info.maxTotalTimeout) { - this._timeoutInfo.delete(messageId); - throw types_js_1.McpError.fromError(types_js_1.ErrorCode.RequestTimeout, 'Maximum total timeout exceeded', { - maxTotalTimeout: info.maxTotalTimeout, - totalElapsed - }); - } - clearTimeout(info.timeoutId); - info.timeoutId = setTimeout(info.onTimeout, info.timeout); - return true; - } - _cleanupTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (info) { - clearTimeout(info.timeoutId); - this._timeoutInfo.delete(messageId); - } - } - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - async connect(transport) { - this._transport = transport; - const _onclose = this.transport?.onclose; - this._transport.onclose = () => { - _onclose?.(); - this._onclose(); - }; - const _onerror = this.transport?.onerror; - this._transport.onerror = (error) => { - _onerror?.(error); - this._onerror(error); - }; - const _onmessage = this._transport?.onmessage; - this._transport.onmessage = (message, extra) => { - _onmessage?.(message, extra); - if ((0, types_js_1.isJSONRPCResultResponse)(message) || (0, types_js_1.isJSONRPCErrorResponse)(message)) { - this._onresponse(message); - } - else if ((0, types_js_1.isJSONRPCRequest)(message)) { - this._onrequest(message, extra); - } - else if ((0, types_js_1.isJSONRPCNotification)(message)) { - this._onnotification(message); - } - else { - this._onerror(new Error(`Unknown message type: ${JSON.stringify(message)}`)); - } - }; - await this._transport.start(); - } - _onclose() { - const responseHandlers = this._responseHandlers; - this._responseHandlers = new Map(); - this._progressHandlers.clear(); - this._taskProgressTokens.clear(); - this._pendingDebouncedNotifications.clear(); - const error = types_js_1.McpError.fromError(types_js_1.ErrorCode.ConnectionClosed, 'Connection closed'); - this._transport = undefined; - this.onclose?.(); - for (const handler of responseHandlers.values()) { - handler(error); - } - } - _onerror(error) { - this.onerror?.(error); - } - _onnotification(notification) { - const handler = this._notificationHandlers.get(notification.method) ?? this.fallbackNotificationHandler; - // Ignore notifications not being subscribed to. - if (handler === undefined) { - return; - } - // Starting with Promise.resolve() puts any synchronous errors into the monad as well. - Promise.resolve() - .then(() => handler(notification)) - .catch(error => this._onerror(new Error(`Uncaught error in notification handler: ${error}`))); - } - _onrequest(request, extra) { - const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler; - // Capture the current transport at request time to ensure responses go to the correct client - const capturedTransport = this._transport; - // Extract taskId from request metadata if present (needed early for method not found case) - const relatedTaskId = request.params?._meta?.[types_js_1.RELATED_TASK_META_KEY]?.taskId; - if (handler === undefined) { - const errorResponse = { - jsonrpc: '2.0', - id: request.id, - error: { - code: types_js_1.ErrorCode.MethodNotFound, - message: 'Method not found' - } - }; - // Queue or send the error response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - this._enqueueTaskMessage(relatedTaskId, { - type: 'error', - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId).catch(error => this._onerror(new Error(`Failed to enqueue error response: ${error}`))); - } - else { - capturedTransport - ?.send(errorResponse) - .catch(error => this._onerror(new Error(`Failed to send an error response: ${error}`))); - } - return; - } - const abortController = new AbortController(); - this._requestHandlerAbortControllers.set(request.id, abortController); - const taskCreationParams = (0, types_js_1.isTaskAugmentedRequestParams)(request.params) ? request.params.task : undefined; - const taskStore = this._taskStore ? this.requestTaskStore(request, capturedTransport?.sessionId) : undefined; - const fullExtra = { - signal: abortController.signal, - sessionId: capturedTransport?.sessionId, - _meta: request.params?._meta, - sendNotification: async (notification) => { - // Include related-task metadata if this request is part of a task - const notificationOptions = { relatedRequestId: request.id }; - if (relatedTaskId) { - notificationOptions.relatedTask = { taskId: relatedTaskId }; - } - await this.notification(notification, notificationOptions); - }, - sendRequest: async (r, resultSchema, options) => { - // Include related-task metadata if this request is part of a task - const requestOptions = { ...options, relatedRequestId: request.id }; - if (relatedTaskId && !requestOptions.relatedTask) { - requestOptions.relatedTask = { taskId: relatedTaskId }; - } - // Set task status to input_required when sending a request within a task context - // Use the taskId from options (explicit) or fall back to relatedTaskId (inherited) - const effectiveTaskId = requestOptions.relatedTask?.taskId ?? relatedTaskId; - if (effectiveTaskId && taskStore) { - await taskStore.updateTaskStatus(effectiveTaskId, 'input_required'); - } - return await this.request(r, resultSchema, requestOptions); - }, - authInfo: extra?.authInfo, - requestId: request.id, - requestInfo: extra?.requestInfo, - taskId: relatedTaskId, - taskStore: taskStore, - taskRequestedTtl: taskCreationParams?.ttl, - closeSSEStream: extra?.closeSSEStream, - closeStandaloneSSEStream: extra?.closeStandaloneSSEStream - }; - // Starting with Promise.resolve() puts any synchronous errors into the monad as well. - Promise.resolve() - .then(() => { - // If this request asked for task creation, check capability first - if (taskCreationParams) { - // Check if the request method supports task creation - this.assertTaskHandlerCapability(request.method); - } - }) - .then(() => handler(request, fullExtra)) - .then(async (result) => { - if (abortController.signal.aborted) { - // Request was cancelled - return; - } - const response = { - result, - jsonrpc: '2.0', - id: request.id - }; - // Queue or send the response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: 'response', - message: response, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } - else { - await capturedTransport?.send(response); - } - }, async (error) => { - if (abortController.signal.aborted) { - // Request was cancelled - return; - } - const errorResponse = { - jsonrpc: '2.0', - id: request.id, - error: { - code: Number.isSafeInteger(error['code']) ? error['code'] : types_js_1.ErrorCode.InternalError, - message: error.message ?? 'Internal error', - ...(error['data'] !== undefined && { data: error['data'] }) - } - }; - // Queue or send the error response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: 'error', - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } - else { - await capturedTransport?.send(errorResponse); - } - }) - .catch(error => this._onerror(new Error(`Failed to send response: ${error}`))) - .finally(() => { - this._requestHandlerAbortControllers.delete(request.id); - }); - } - _onprogress(notification) { - const { progressToken, ...params } = notification.params; - const messageId = Number(progressToken); - const handler = this._progressHandlers.get(messageId); - if (!handler) { - this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(notification)}`)); - return; - } - const responseHandler = this._responseHandlers.get(messageId); - const timeoutInfo = this._timeoutInfo.get(messageId); - if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) { - try { - this._resetTimeout(messageId); - } - catch (error) { - // Clean up if maxTotalTimeout was exceeded - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - responseHandler(error); - return; - } - } - handler(params); - } - _onresponse(response) { - const messageId = Number(response.id); - // Check if this is a response to a queued request - const resolver = this._requestResolvers.get(messageId); - if (resolver) { - this._requestResolvers.delete(messageId); - if ((0, types_js_1.isJSONRPCResultResponse)(response)) { - resolver(response); - } - else { - const error = new types_js_1.McpError(response.error.code, response.error.message, response.error.data); - resolver(error); - } - return; - } - const handler = this._responseHandlers.get(messageId); - if (handler === undefined) { - this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(response)}`)); - return; - } - this._responseHandlers.delete(messageId); - this._cleanupTimeout(messageId); - // Keep progress handler alive for CreateTaskResult responses - let isTaskResponse = false; - if ((0, types_js_1.isJSONRPCResultResponse)(response) && response.result && typeof response.result === 'object') { - const result = response.result; - if (result.task && typeof result.task === 'object') { - const task = result.task; - if (typeof task.taskId === 'string') { - isTaskResponse = true; - this._taskProgressTokens.set(task.taskId, messageId); - } - } - } - if (!isTaskResponse) { - this._progressHandlers.delete(messageId); - } - if ((0, types_js_1.isJSONRPCResultResponse)(response)) { - handler(response); - } - else { - const error = types_js_1.McpError.fromError(response.error.code, response.error.message, response.error.data); - handler(error); - } - } - get transport() { - return this._transport; - } - /** - * Closes the connection. - */ - async close() { - await this._transport?.close(); - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * @example - * ```typescript - * const stream = protocol.requestStream(request, resultSchema, options); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Task created:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Task status:', message.task.status); - * break; - * case 'result': - * console.log('Final result:', message.result); - * break; - * case 'error': - * console.error('Error:', message.error); - * break; - * } - * } - * ``` - * - * @experimental Use `client.experimental.tasks.requestStream()` to access this method. - */ - async *requestStream(request, resultSchema, options) { - const { task } = options ?? {}; - // For non-task requests, just yield the result - if (!task) { - try { - const result = await this.request(request, resultSchema, options); - yield { type: 'result', result }; - } - catch (error) { - yield { - type: 'error', - error: error instanceof types_js_1.McpError ? error : new types_js_1.McpError(types_js_1.ErrorCode.InternalError, String(error)) - }; - } - return; - } - // For task-augmented requests, we need to poll for status - // First, make the request to create the task - let taskId; - try { - // Send the request and get the CreateTaskResult - const createResult = await this.request(request, types_js_1.CreateTaskResultSchema, options); - // Extract taskId from the result - if (createResult.task) { - taskId = createResult.task.taskId; - yield { type: 'taskCreated', task: createResult.task }; - } - else { - throw new types_js_1.McpError(types_js_1.ErrorCode.InternalError, 'Task creation did not return a task'); - } - // Poll for task completion - while (true) { - // Get current task status - const task = await this.getTask({ taskId }, options); - yield { type: 'taskStatus', task }; - // Check if task is terminal - if ((0, interfaces_js_1.isTerminal)(task.status)) { - if (task.status === 'completed') { - // Get the final result - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: 'result', result }; - } - else if (task.status === 'failed') { - yield { - type: 'error', - error: new types_js_1.McpError(types_js_1.ErrorCode.InternalError, `Task ${taskId} failed`) - }; - } - else if (task.status === 'cancelled') { - yield { - type: 'error', - error: new types_js_1.McpError(types_js_1.ErrorCode.InternalError, `Task ${taskId} was cancelled`) - }; - } - return; - } - // When input_required, call tasks/result to deliver queued messages - // (elicitation, sampling) via SSE and block until terminal - if (task.status === 'input_required') { - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: 'result', result }; - return; - } - // Wait before polling again - const pollInterval = task.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000; - await new Promise(resolve => setTimeout(resolve, pollInterval)); - // Check if cancelled - options?.signal?.throwIfAborted(); - } - } - catch (error) { - yield { - type: 'error', - error: error instanceof types_js_1.McpError ? error : new types_js_1.McpError(types_js_1.ErrorCode.InternalError, String(error)) - }; - } - } - /** - * Sends a request and waits for a response. - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request, resultSchema, options) { - const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {}; - // Send the request - return new Promise((resolve, reject) => { - const earlyReject = (error) => { - reject(error); - }; - if (!this._transport) { - earlyReject(new Error('Not connected')); - return; - } - if (this._options?.enforceStrictCapabilities === true) { - try { - this.assertCapabilityForMethod(request.method); - // If task creation is requested, also check task capabilities - if (task) { - this.assertTaskCapability(request.method); - } - } - catch (e) { - earlyReject(e); - return; - } - } - options?.signal?.throwIfAborted(); - const messageId = this._requestMessageId++; - const jsonrpcRequest = { - ...request, - jsonrpc: '2.0', - id: messageId - }; - if (options?.onprogress) { - this._progressHandlers.set(messageId, options.onprogress); - jsonrpcRequest.params = { - ...request.params, - _meta: { - ...(request.params?._meta || {}), - progressToken: messageId - } - }; - } - // Augment with task creation parameters if provided - if (task) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - task: task - }; - } - // Augment with related task metadata if relatedTask is provided - if (relatedTask) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - _meta: { - ...(jsonrpcRequest.params?._meta || {}), - [types_js_1.RELATED_TASK_META_KEY]: relatedTask - } - }; - } - const cancel = (reason) => { - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - this._transport - ?.send({ - jsonrpc: '2.0', - method: 'notifications/cancelled', - params: { - requestId: messageId, - reason: String(reason) - } - }, { relatedRequestId, resumptionToken, onresumptiontoken }) - .catch(error => this._onerror(new Error(`Failed to send cancellation: ${error}`))); - // Wrap the reason in an McpError if it isn't already - const error = reason instanceof types_js_1.McpError ? reason : new types_js_1.McpError(types_js_1.ErrorCode.RequestTimeout, String(reason)); - reject(error); - }; - this._responseHandlers.set(messageId, response => { - if (options?.signal?.aborted) { - return; - } - if (response instanceof Error) { - return reject(response); - } - try { - const parseResult = (0, zod_compat_js_1.safeParse)(resultSchema, response.result); - if (!parseResult.success) { - // Type guard: if success is false, error is guaranteed to exist - reject(parseResult.error); - } - else { - resolve(parseResult.data); - } - } - catch (error) { - reject(error); - } - }); - options?.signal?.addEventListener('abort', () => { - cancel(options?.signal?.reason); - }); - const timeout = options?.timeout ?? exports.DEFAULT_REQUEST_TIMEOUT_MSEC; - const timeoutHandler = () => cancel(types_js_1.McpError.fromError(types_js_1.ErrorCode.RequestTimeout, 'Request timed out', { timeout })); - this._setupTimeout(messageId, timeout, options?.maxTotalTimeout, timeoutHandler, options?.resetTimeoutOnProgress ?? false); - // Queue request if related to a task - const relatedTaskId = relatedTask?.taskId; - if (relatedTaskId) { - // Store the response resolver for this request so responses can be routed back - const responseResolver = (response) => { - const handler = this._responseHandlers.get(messageId); - if (handler) { - handler(response); - } - else { - // Log error when resolver is missing, but don't fail - this._onerror(new Error(`Response handler missing for side-channeled request ${messageId}`)); - } - }; - this._requestResolvers.set(messageId, responseResolver); - this._enqueueTaskMessage(relatedTaskId, { - type: 'request', - message: jsonrpcRequest, - timestamp: Date.now() - }).catch(error => { - this._cleanupTimeout(messageId); - reject(error); - }); - // Don't send through transport - queued messages are delivered via tasks/result only - // This prevents duplicate delivery for bidirectional transports - } - else { - // No related task - send through transport normally - this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch(error => { - this._cleanupTimeout(messageId); - reject(error); - }); - } - }); - } - /** - * Gets the current status of a task. - * - * @experimental Use `client.experimental.tasks.getTask()` to access this method. - */ - async getTask(params, options) { - // @ts-expect-error SendRequestT cannot directly contain GetTaskRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/get', params }, types_js_1.GetTaskResultSchema, options); - } - /** - * Retrieves the result of a completed task. - * - * @experimental Use `client.experimental.tasks.getTaskResult()` to access this method. - */ - async getTaskResult(params, resultSchema, options) { - // @ts-expect-error SendRequestT cannot directly contain GetTaskPayloadRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/result', params }, resultSchema, options); - } - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @experimental Use `client.experimental.tasks.listTasks()` to access this method. - */ - async listTasks(params, options) { - // @ts-expect-error SendRequestT cannot directly contain ListTasksRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/list', params }, types_js_1.ListTasksResultSchema, options); - } - /** - * Cancels a specific task. - * - * @experimental Use `client.experimental.tasks.cancelTask()` to access this method. - */ - async cancelTask(params, options) { - // @ts-expect-error SendRequestT cannot directly contain CancelTaskRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/cancel', params }, types_js_1.CancelTaskResultSchema, options); - } - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - async notification(notification, options) { - if (!this._transport) { - throw new Error('Not connected'); - } - this.assertNotificationCapability(notification.method); - // Queue notification if related to a task - const relatedTaskId = options?.relatedTask?.taskId; - if (relatedTaskId) { - // Build the JSONRPC notification with metadata - const jsonrpcNotification = { - ...notification, - jsonrpc: '2.0', - params: { - ...notification.params, - _meta: { - ...(notification.params?._meta || {}), - [types_js_1.RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - await this._enqueueTaskMessage(relatedTaskId, { - type: 'notification', - message: jsonrpcNotification, - timestamp: Date.now() - }); - // Don't send through transport - queued messages are delivered via tasks/result only - // This prevents duplicate delivery for bidirectional transports - return; - } - const debouncedMethods = this._options?.debouncedNotificationMethods ?? []; - // A notification can only be debounced if it's in the list AND it's "simple" - // (i.e., has no parameters and no related request ID or related task that could be lost). - const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !options?.relatedRequestId && !options?.relatedTask; - if (canDebounce) { - // If a notification of this type is already scheduled, do nothing. - if (this._pendingDebouncedNotifications.has(notification.method)) { - return; - } - // Mark this notification type as pending. - this._pendingDebouncedNotifications.add(notification.method); - // Schedule the actual send to happen in the next microtask. - // This allows all synchronous calls in the current event loop tick to be coalesced. - Promise.resolve().then(() => { - // Un-mark the notification so the next one can be scheduled. - this._pendingDebouncedNotifications.delete(notification.method); - // SAFETY CHECK: If the connection was closed while this was pending, abort. - if (!this._transport) { - return; - } - let jsonrpcNotification = { - ...notification, - jsonrpc: '2.0' - }; - // Augment with related task metadata if relatedTask is provided - if (options?.relatedTask) { - jsonrpcNotification = { - ...jsonrpcNotification, - params: { - ...jsonrpcNotification.params, - _meta: { - ...(jsonrpcNotification.params?._meta || {}), - [types_js_1.RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - // Send the notification, but don't await it here to avoid blocking. - // Handle potential errors with a .catch(). - this._transport?.send(jsonrpcNotification, options).catch(error => this._onerror(error)); - }); - // Return immediately. - return; - } - let jsonrpcNotification = { - ...notification, - jsonrpc: '2.0' - }; - // Augment with related task metadata if relatedTask is provided - if (options?.relatedTask) { - jsonrpcNotification = { - ...jsonrpcNotification, - params: { - ...jsonrpcNotification.params, - _meta: { - ...(jsonrpcNotification.params?._meta || {}), - [types_js_1.RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - await this._transport.send(jsonrpcNotification, options); - } - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler(requestSchema, handler) { - const method = (0, zod_json_schema_compat_js_1.getMethodLiteral)(requestSchema); - this.assertRequestHandlerCapability(method); - this._requestHandlers.set(method, (request, extra) => { - const parsed = (0, zod_json_schema_compat_js_1.parseWithCompat)(requestSchema, request); - return Promise.resolve(handler(parsed, extra)); - }); - } - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method) { - this._requestHandlers.delete(method); - } - /** - * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed. - */ - assertCanSetRequestHandler(method) { - if (this._requestHandlers.has(method)) { - throw new Error(`A request handler for ${method} already exists, which would be overridden`); - } - } - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler(notificationSchema, handler) { - const method = (0, zod_json_schema_compat_js_1.getMethodLiteral)(notificationSchema); - this._notificationHandlers.set(method, notification => { - const parsed = (0, zod_json_schema_compat_js_1.parseWithCompat)(notificationSchema, notification); - return Promise.resolve(handler(parsed)); - }); - } - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method) { - this._notificationHandlers.delete(method); - } - /** - * Cleans up the progress handler associated with a task. - * This should be called when a task reaches a terminal status. - */ - _cleanupTaskProgressHandler(taskId) { - const progressToken = this._taskProgressTokens.get(taskId); - if (progressToken !== undefined) { - this._progressHandlers.delete(progressToken); - this._taskProgressTokens.delete(taskId); - } - } - /** - * Enqueues a task-related message for side-channel delivery via tasks/result. - * @param taskId The task ID to associate the message with - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @throws Error if taskStore is not configured or if enqueue fails (e.g., queue overflow) - * - * Note: If enqueue fails, it's the TaskMessageQueue implementation's responsibility to handle - * the error appropriately (e.g., by failing the task, logging, etc.). The Protocol layer - * simply propagates the error. - */ - async _enqueueTaskMessage(taskId, message, sessionId) { - // Task message queues are only used when taskStore is configured - if (!this._taskStore || !this._taskMessageQueue) { - throw new Error('Cannot enqueue task message: taskStore and taskMessageQueue are not configured'); - } - const maxQueueSize = this._options?.maxTaskQueueSize; - await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize); - } - /** - * Clears the message queue for a task and rejects any pending request resolvers. - * @param taskId The task ID whose queue should be cleared - * @param sessionId Optional session ID for binding the operation to a specific session - */ - async _clearTaskQueue(taskId, sessionId) { - if (this._taskMessageQueue) { - // Reject any pending request resolvers - const messages = await this._taskMessageQueue.dequeueAll(taskId, sessionId); - for (const message of messages) { - if (message.type === 'request' && (0, types_js_1.isJSONRPCRequest)(message.message)) { - // Extract request ID from the message - const requestId = message.message.id; - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - resolver(new types_js_1.McpError(types_js_1.ErrorCode.InternalError, 'Task cancelled or completed')); - this._requestResolvers.delete(requestId); - } - else { - // Log error when resolver is missing during cleanup for better observability - this._onerror(new Error(`Resolver missing for request ${requestId} during task ${taskId} cleanup`)); - } - } - } - } - } - /** - * Waits for a task update (new messages or status change) with abort signal support. - * Uses polling to check for updates at the task's configured poll interval. - * @param taskId The task ID to wait for - * @param signal Abort signal to cancel the wait - * @returns Promise that resolves when an update occurs or rejects if aborted - */ - async _waitForTaskUpdate(taskId, signal) { - // Get the task's poll interval, falling back to default - let interval = this._options?.defaultTaskPollInterval ?? 1000; - try { - const task = await this._taskStore?.getTask(taskId); - if (task?.pollInterval) { - interval = task.pollInterval; - } - } - catch { - // Use default interval if task lookup fails - } - return new Promise((resolve, reject) => { - if (signal.aborted) { - reject(new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, 'Request cancelled')); - return; - } - // Wait for the poll interval, then resolve so caller can check for updates - const timeoutId = setTimeout(resolve, interval); - // Clean up timeout and reject if aborted - signal.addEventListener('abort', () => { - clearTimeout(timeoutId); - reject(new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, 'Request cancelled')); - }, { once: true }); - }); - } - requestTaskStore(request, sessionId) { - const taskStore = this._taskStore; - if (!taskStore) { - throw new Error('No task store configured'); - } - return { - createTask: async (taskParams) => { - if (!request) { - throw new Error('No request provided'); - } - return await taskStore.createTask(taskParams, request.id, { - method: request.method, - params: request.params - }, sessionId); - }, - getTask: async (taskId) => { - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, 'Failed to retrieve task: Task not found'); - } - return task; - }, - storeTaskResult: async (taskId, status, result) => { - await taskStore.storeTaskResult(taskId, status, result, sessionId); - // Get updated task state and send notification - const task = await taskStore.getTask(taskId, sessionId); - if (task) { - const notification = types_js_1.TaskStatusNotificationSchema.parse({ - method: 'notifications/tasks/status', - params: task - }); - await this.notification(notification); - if ((0, interfaces_js_1.isTerminal)(task.status)) { - this._cleanupTaskProgressHandler(taskId); - // Don't clear queue here - it will be cleared after delivery via tasks/result - } - } - }, - getTaskResult: taskId => { - return taskStore.getTaskResult(taskId, sessionId); - }, - updateTaskStatus: async (taskId, status, statusMessage) => { - // Check if task exists - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Task "${taskId}" not found - it may have been cleaned up`); - } - // Don't allow transitions from terminal states - if ((0, interfaces_js_1.isTerminal)(task.status)) { - throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidParams, `Cannot update task "${taskId}" from terminal status "${task.status}" to "${status}". Terminal states (completed, failed, cancelled) cannot transition to other states.`); - } - await taskStore.updateTaskStatus(taskId, status, statusMessage, sessionId); - // Get updated task state and send notification - const updatedTask = await taskStore.getTask(taskId, sessionId); - if (updatedTask) { - const notification = types_js_1.TaskStatusNotificationSchema.parse({ - method: 'notifications/tasks/status', - params: updatedTask - }); - await this.notification(notification); - if ((0, interfaces_js_1.isTerminal)(updatedTask.status)) { - this._cleanupTaskProgressHandler(taskId); - // Don't clear queue here - it will be cleared after delivery via tasks/result - } - } - }, - listTasks: cursor => { - return taskStore.listTasks(cursor, sessionId); - } - }; - } -} -exports.Protocol = Protocol; -function isPlainObject(value) { - return value !== null && typeof value === 'object' && !Array.isArray(value); -} -function mergeCapabilities(base, additional) { - const result = { ...base }; - for (const key in additional) { - const k = key; - const addValue = additional[k]; - if (addValue === undefined) - continue; - const baseValue = result[k]; - if (isPlainObject(baseValue) && isPlainObject(addValue)) { - result[k] = { ...baseValue, ...addValue }; - } - else { - result[k] = addValue; - } - } - return result; -} -//# sourceMappingURL=protocol.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map deleted file mode 100644 index ed43a14..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/shared/protocol.ts"],"names":[],"mappings":";;;AA0mDA,8CAcC;AAxnDD,2DAA8F;AAC9F,0CA6CqB;AAGrB,uEAAgI;AAChI,mFAAwF;AAoDxF;;GAEG;AACU,QAAA,4BAA4B,GAAG,KAAK,CAAC;AAkNlD;;;GAGG;AACH,MAAsB,QAAQ;IA8C1B,YAAoB,QAA0B;QAA1B,aAAQ,GAAR,QAAQ,CAAkB;QA5CtC,sBAAiB,GAAG,CAAC,CAAC;QACtB,qBAAgB,GAGpB,IAAI,GAAG,EAAE,CAAC;QACN,oCAA+B,GAAoC,IAAI,GAAG,EAAE,CAAC;QAC7E,0BAAqB,GAAsE,IAAI,GAAG,EAAE,CAAC;QACrG,sBAAiB,GAAmE,IAAI,GAAG,EAAE,CAAC;QAC9F,sBAAiB,GAAkC,IAAI,GAAG,EAAE,CAAC;QAC7D,iBAAY,GAA6B,IAAI,GAAG,EAAE,CAAC;QACnD,mCAA8B,GAAG,IAAI,GAAG,EAAU,CAAC;QAE3D,iFAAiF;QACzE,wBAAmB,GAAwB,IAAI,GAAG,EAAE,CAAC;QAKrD,sBAAiB,GAAsE,IAAI,GAAG,EAAE,CAAC;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;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts deleted file mode 100644 index 84354bd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Result, Task, McpError } from '../types.js'; -/** - * Base message type - */ -export interface BaseResponseMessage { - type: string; -} -/** - * Task status update message - */ -export interface TaskStatusMessage extends BaseResponseMessage { - type: 'taskStatus'; - task: Task; -} -/** - * Task created message (first message for task-augmented requests) - */ -export interface TaskCreatedMessage extends BaseResponseMessage { - type: 'taskCreated'; - task: Task; -} -/** - * Final result message (terminal) - */ -export interface ResultMessage extends BaseResponseMessage { - type: 'result'; - result: T; -} -/** - * Error message (terminal) - */ -export interface ErrorMessage extends BaseResponseMessage { - type: 'error'; - error: McpError; -} -/** - * Union type representing all possible messages that can be yielded during request processing. - * Note: Progress notifications are handled through the existing onprogress callback mechanism. - * Side-channeled messages (server requests/notifications) are handled through registered handlers. - */ -export type ResponseMessage = TaskStatusMessage | TaskCreatedMessage | ResultMessage | ErrorMessage; -export type AsyncGeneratorValue = T extends AsyncGenerator ? U : never; -export declare function toArrayAsync>(it: T): Promise[]>; -export declare function takeResult>>(it: U): Promise; -//# sourceMappingURL=responseMessage.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map deleted file mode 100644 index 65d93bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responseMessage.d.ts","sourceRoot":"","sources":["../../../src/shared/responseMessage.ts"],"names":[],"mappings":"AAAA,OAA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cp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js deleted file mode 100644 index 6c223fc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toArrayAsync = toArrayAsync; -exports.takeResult = takeResult; -async function toArrayAsync(it) { - const arr = []; - for await (const o of it) { - arr.push(o); - } - return arr; -} -async function takeResult(it) { - for await (const o of it) { - if (o.type === 'result') { - return o.result; - } - else if (o.type === 'error') { - throw o.error; - } - } - throw new Error('No result in stream.'); -} -//# sourceMappingURL=responseMessage.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map deleted file mode 100644 index 18bd904..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responseMessage.js","sourceRoot":"","sources":["../../../src/shared/responseMessage.ts"],"names":[],"mappings":";;AAkDA,oCAOC;AAED,gCAUC;AAnBM,KAAK,UAAU,YAAY,CAAoC,EAAK;IACvE,MAAM,GAAG,GAA6B,EAAE,CAAC;IACzC,IAAI,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACvB,GAAG,CAAC,IAAI,CAAC,CAA2B,CAAC,CAAC;IAC1C,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC;AAEM,KAAK,UAAU,UAAU,CAAiE,EAAK;IAClG,IAAI,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACvB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC,MAAM,CAAC;QACpB,CAAC;aAAM,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC5B,MAAM,CAAC,CAAC,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts deleted file mode 100644 index 0830a48..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { JSONRPCMessage } from '../types.js'; -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -export declare class ReadBuffer { - private _buffer?; - append(chunk: Buffer): void; - readMessage(): JSONRPCMessage | null; - clear(): void; -} -export declare function deserializeMessage(line: string): JSONRPCMessage; -export declare function serializeMessage(message: JSONRPCMessage): string; -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map deleted file mode 100644 index 8f97f2a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3B,WAAW,IAAI,cAAc,GAAG,IAAI;IAepC,KAAK,IAAI,IAAI;CAGhB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js deleted file mode 100644 index 540ee56..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReadBuffer = void 0; -exports.deserializeMessage = deserializeMessage; -exports.serializeMessage = serializeMessage; -const types_js_1 = require("../types.js"); -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -class ReadBuffer { - append(chunk) { - this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; - } - readMessage() { - if (!this._buffer) { - return null; - } - const index = this._buffer.indexOf('\n'); - if (index === -1) { - return null; - } - const line = this._buffer.toString('utf8', 0, index).replace(/\r$/, ''); - this._buffer = this._buffer.subarray(index + 1); - return deserializeMessage(line); - } - clear() { - this._buffer = undefined; - } -} -exports.ReadBuffer = ReadBuffer; -function deserializeMessage(line) { - return types_js_1.JSONRPCMessageSchema.parse(JSON.parse(line)); -} -function serializeMessage(message) { - return JSON.stringify(message) + '\n'; -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map deleted file mode 100644 index 89fbc1a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/shared/stdio.ts"],"names":[],"mappings":";;;AAgCA,gDAEC;AAED,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node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts deleted file mode 100644 index 3cf94bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Tool name validation utilities according to SEP: Specify Format for Tool Names - * - * Tool names SHOULD be between 1 and 128 characters in length (inclusive). - * Tool names are case-sensitive. - * Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits - * (0-9), underscore (_), dash (-), and dot (.). - * Tool names SHOULD NOT contain spaces, commas, or other special characters. - */ -/** - * Validates a tool name according to the SEP specification - * @param name - The tool name to validate - * @returns An object containing validation result and any warnings - */ -export declare function validateToolName(name: string): { - isValid: boolean; - warnings: string[]; -}; -/** - * Issues warnings for non-conforming tool names - * @param name - The tool name that triggered the warnings - * @param warnings - Array of warning messages - */ -export declare function issueToolNameWarning(name: string, warnings: string[]): void; -/** - * Validates a tool name and issues warnings for non-conforming names - * @param name - The tool name to validate - * @returns true if the name is valid, false otherwise - */ -export declare function validateAndWarnToolName(name: string): boolean; -//# sourceMappingURL=toolNameValidation.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map deleted file mode 100644 index d81f015..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolNameValidation.d.ts","sourceRoot":"","sources":["../../../src/shared/toolNameValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,CA0DA;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAY3E;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO7D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js deleted file mode 100644 index cd9d930..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -/** - * Tool name validation utilities according to SEP: Specify Format for Tool Names - * - * Tool names SHOULD be between 1 and 128 characters in length (inclusive). - * Tool names are case-sensitive. - * Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits - * (0-9), underscore (_), dash (-), and dot (.). - * Tool names SHOULD NOT contain spaces, commas, or other special characters. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateToolName = validateToolName; -exports.issueToolNameWarning = issueToolNameWarning; -exports.validateAndWarnToolName = validateAndWarnToolName; -/** - * Regular expression for valid tool names according to SEP-986 specification - */ -const TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/; -/** - * Validates a tool name according to the SEP specification - * @param name - The tool name to validate - * @returns An object containing validation result and any warnings - */ -function validateToolName(name) { - const warnings = []; - // Check length - if (name.length === 0) { - return { - isValid: false, - warnings: ['Tool name cannot be empty'] - }; - } - if (name.length > 128) { - return { - isValid: false, - warnings: [`Tool name exceeds maximum length of 128 characters (current: ${name.length})`] - }; - } - // Check for specific problematic patterns (these are warnings, not validation failures) - if (name.includes(' ')) { - warnings.push('Tool name contains spaces, which may cause parsing issues'); - } - if (name.includes(',')) { - warnings.push('Tool name contains commas, which may cause parsing issues'); - } - // Check for potentially confusing patterns (leading/trailing dashes, dots, slashes) - if (name.startsWith('-') || name.endsWith('-')) { - warnings.push('Tool name starts or ends with a dash, which may cause parsing issues in some contexts'); - } - if (name.startsWith('.') || name.endsWith('.')) { - warnings.push('Tool name starts or ends with a dot, which may cause parsing issues in some contexts'); - } - // Check for invalid characters - if (!TOOL_NAME_REGEX.test(name)) { - const invalidChars = name - .split('') - .filter(char => !/[A-Za-z0-9._-]/.test(char)) - .filter((char, index, arr) => arr.indexOf(char) === index); // Remove duplicates - warnings.push(`Tool name contains invalid characters: ${invalidChars.map(c => `"${c}"`).join(', ')}`, 'Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)'); - return { - isValid: false, - warnings - }; - } - return { - isValid: true, - warnings - }; -} -/** - * Issues warnings for non-conforming tool names - * @param name - The tool name that triggered the warnings - * @param warnings - Array of warning messages - */ -function issueToolNameWarning(name, warnings) { - if (warnings.length > 0) { - console.warn(`Tool name validation warning for "${name}":`); - for (const warning of warnings) { - console.warn(` - ${warning}`); - } - console.warn('Tool registration will proceed, but this may cause compatibility issues.'); - console.warn('Consider updating the tool name to conform to the MCP tool naming standard.'); - console.warn('See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.'); - } -} -/** - * Validates a tool name and issues warnings for non-conforming names - * @param name - The tool name to validate - * @returns true if the name is valid, false otherwise - */ -function validateAndWarnToolName(name) { - const result = validateToolName(name); - // Always issue warnings for any validation issues (both invalid names and warnings) - issueToolNameWarning(name, result.warnings); - return result.isValid; -} -//# sourceMappingURL=toolNameValidation.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map deleted file mode 100644 index ad136cc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolNameValidation.js","sourceRoot":"","sources":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AEtC,oFAAoF;IACpF,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,MAAM,CAAC,OAAO,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts deleted file mode 100644 index 1bd95ef..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { JSONRPCMessage, MessageExtraInfo, RequestId } from '../types.js'; -export type FetchLike = (url: string | URL, init?: RequestInit) => Promise; -/** - * Normalizes HeadersInit to a plain Record for manipulation. - * Handles Headers objects, arrays of tuples, and plain objects. - */ -export declare function normalizeHeaders(headers: HeadersInit | undefined): Record; -/** - * Creates a fetch function that includes base RequestInit options. - * This ensures requests inherit settings like credentials, mode, headers, etc. from the base init. - * - * @param baseFetch - The base fetch function to wrap (defaults to global fetch) - * @param baseInit - The base RequestInit to merge with each request - * @returns A wrapped fetch function that merges base options with call-specific options - */ -export declare function createFetchWithInit(baseFetch?: FetchLike, baseInit?: RequestInit): FetchLike; -/** - * Options for sending a JSON-RPC message. - */ -export type TransportSendOptions = { - /** - * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. - */ - relatedRequestId?: RequestId; - /** - * The resumption token used to continue long-running requests that were interrupted. - * - * This allows clients to reconnect and continue from where they left off, if supported by the transport. - */ - resumptionToken?: string; - /** - * A callback that is invoked when the resumption token changes, if supported by the transport. - * - * This allows clients to persist the latest token for potential reconnection. - */ - onresumptiontoken?: (token: string) => void; -}; -/** - * Describes the minimal contract for an MCP transport that a client or server can communicate over. - */ -export interface Transport { - /** - * Starts processing messages on the transport, including any connection steps that might need to be taken. - * - * This method should only be called after callbacks are installed, or else messages may be lost. - * - * NOTE: This method should not be called explicitly when using Client, Server, or Protocol classes, as they will implicitly call start(). - */ - start(): Promise; - /** - * Sends a JSON-RPC message (request or response). - * - * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. - */ - send(message: JSONRPCMessage, options?: TransportSendOptions): Promise; - /** - * Closes the connection. - */ - close(): Promise; - /** - * Callback for when the connection is closed for any reason. - * - * This should be invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * Callback for when a message (request or response) is received over the connection. - * - * Includes the requestInfo and authInfo if the transport is authenticated. - * - * The requestInfo can be used to get the original request information (headers, etc.) - */ - onmessage?: (message: T, extra?: MessageExtraInfo) => void; - /** - * The session ID generated for this connection. - */ - sessionId?: string; - /** - * Sets the protocol version used for the connection (called when the initialize response is received). - */ - setProtocolVersion?: (version: string) => void; -} -//# sourceMappingURL=transport.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map deleted file mode 100644 index 7a3d837..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/shared/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYzF;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,GAAE,SAAiB,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,CAenG;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAE7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,CAAC;AACF;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;;;;;OAMG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7E;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,SAAS,cAAc,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAErF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js deleted file mode 100644 index 38cfcc7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.normalizeHeaders = normalizeHeaders; -exports.createFetchWithInit = createFetchWithInit; -/** - * Normalizes HeadersInit to a plain Record for manipulation. - * Handles Headers objects, arrays of tuples, and plain objects. - */ -function normalizeHeaders(headers) { - if (!headers) - return {}; - if (headers instanceof Headers) { - return Object.fromEntries(headers.entries()); - } - if (Array.isArray(headers)) { - return Object.fromEntries(headers); - } - return { ...headers }; -} -/** - * Creates a fetch function that includes base RequestInit options. - * This ensures requests inherit settings like credentials, mode, headers, etc. from the base init. - * - * @param baseFetch - The base fetch function to wrap (defaults to global fetch) - * @param baseInit - The base RequestInit to merge with each request - * @returns A wrapped fetch function that merges base options with call-specific options - */ -function createFetchWithInit(baseFetch = fetch, baseInit) { - if (!baseInit) { - return baseFetch; - } - // Return a wrapped fetch that merges base RequestInit with call-specific init - return async (url, init) => { - const mergedInit = { - ...baseInit, - ...init, - // Headers need special handling - merge instead of replace - headers: init?.headers ? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) } : baseInit.headers - }; - return baseFetch(url, mergedInit); - }; -} -//# sourceMappingURL=transport.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map deleted file mode 100644 index 7ddf2f9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../src/shared/transport.ts"],"names":[],"mappings":";;AAQA,4CAYC;AAUD,kDAeC;AAzCD;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,OAAgC;IAC7D,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,EAAE,GAAI,OAAkC,EAAE,CAAC;AACtD,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAC,YAAuB,KAAK,EAAE,QAAsB;IACpF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,8EAA8E;IAC9E,OAAO,KAAK,EAAE,GAAiB,EAAE,IAAkB,EAAqB,EAAE;QACtE,MAAM,UAAU,GAAgB;YAC5B,GAAG,QAAQ;YACX,GAAG,IAAI;YACP,2DAA2D;YAC3D,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO;SAC3H,CAAC;QACF,OAAO,SAAS,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IACtC,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts deleted file mode 100644 index 175e329..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export type Variables = Record; -export declare class UriTemplate { - /** - * Returns true if the given string contains any URI template expressions. - * A template expression is a sequence of characters enclosed in curly braces, - * like {foo} or {?bar}. - */ - static isTemplate(str: string): boolean; - private static validateLength; - private readonly template; - private readonly parts; - get variableNames(): string[]; - constructor(template: string); - toString(): string; - private parse; - private getOperator; - private getNames; - private encodeValue; - private expandPart; - expand(variables: Variables): string; - private escapeRegExp; - private partToRegExp; - match(uri: string): Variables | null; -} -//# sourceMappingURL=uriTemplate.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map deleted file mode 100644 index 052e918..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uriTemplate.d.ts","sourceRoot":"","sources":["../../../src/shared/uriTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAO1D,qBAAa,WAAW;IACpB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAMvC,OAAO,CAAC,MAAM,CAAC,cAAc;IAK7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyF;IAE/G,IAAI,aAAa,IAAI,MAAM,EAAE,CAE5B;gBAEW,QAAQ,EAAE,MAAM;IAM5B,QAAQ,IAAI,MAAM;IAIlB,OAAO,CAAC,KAAK;IA8Cb,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,UAAU;IAsDlB,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;IA4BpC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;IAkDpB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAuCvC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js deleted file mode 100644 index baad5d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +++ /dev/null @@ -1,243 +0,0 @@ -"use strict"; -// Claude-authored implementation of RFC 6570 URI Templates -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UriTemplate = void 0; -const MAX_TEMPLATE_LENGTH = 1000000; // 1MB -const MAX_VARIABLE_LENGTH = 1000000; // 1MB -const MAX_TEMPLATE_EXPRESSIONS = 10000; -const MAX_REGEX_LENGTH = 1000000; // 1MB -class UriTemplate { - /** - * Returns true if the given string contains any URI template expressions. - * A template expression is a sequence of characters enclosed in curly braces, - * like {foo} or {?bar}. - */ - static isTemplate(str) { - // Look for any sequence of characters between curly braces - // that isn't just whitespace - return /\{[^}\s]+\}/.test(str); - } - static validateLength(str, max, context) { - if (str.length > max) { - throw new Error(`${context} exceeds maximum length of ${max} characters (got ${str.length})`); - } - } - get variableNames() { - return this.parts.flatMap(part => (typeof part === 'string' ? [] : part.names)); - } - constructor(template) { - UriTemplate.validateLength(template, MAX_TEMPLATE_LENGTH, 'Template'); - this.template = template; - this.parts = this.parse(template); - } - toString() { - return this.template; - } - parse(template) { - const parts = []; - let currentText = ''; - let i = 0; - let expressionCount = 0; - while (i < template.length) { - if (template[i] === '{') { - if (currentText) { - parts.push(currentText); - currentText = ''; - } - const end = template.indexOf('}', i); - if (end === -1) - throw new Error('Unclosed template expression'); - expressionCount++; - if (expressionCount > MAX_TEMPLATE_EXPRESSIONS) { - throw new Error(`Template contains too many expressions (max ${MAX_TEMPLATE_EXPRESSIONS})`); - } - const expr = template.slice(i + 1, end); - const operator = this.getOperator(expr); - const exploded = expr.includes('*'); - const names = this.getNames(expr); - const name = names[0]; - // Validate variable name length - for (const name of names) { - UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name'); - } - parts.push({ name, operator, names, exploded }); - i = end + 1; - } - else { - currentText += template[i]; - i++; - } - } - if (currentText) { - parts.push(currentText); - } - return parts; - } - getOperator(expr) { - const operators = ['+', '#', '.', '/', '?', '&']; - return operators.find(op => expr.startsWith(op)) || ''; - } - getNames(expr) { - const operator = this.getOperator(expr); - return expr - .slice(operator.length) - .split(',') - .map(name => name.replace('*', '').trim()) - .filter(name => name.length > 0); - } - encodeValue(value, operator) { - UriTemplate.validateLength(value, MAX_VARIABLE_LENGTH, 'Variable value'); - if (operator === '+' || operator === '#') { - return encodeURI(value); - } - return encodeURIComponent(value); - } - expandPart(part, variables) { - if (part.operator === '?' || part.operator === '&') { - const pairs = part.names - .map(name => { - const value = variables[name]; - if (value === undefined) - return ''; - const encoded = Array.isArray(value) - ? value.map(v => this.encodeValue(v, part.operator)).join(',') - : this.encodeValue(value.toString(), part.operator); - return `${name}=${encoded}`; - }) - .filter(pair => pair.length > 0); - if (pairs.length === 0) - return ''; - const separator = part.operator === '?' ? '?' : '&'; - return separator + pairs.join('&'); - } - if (part.names.length > 1) { - const values = part.names.map(name => variables[name]).filter(v => v !== undefined); - if (values.length === 0) - return ''; - return values.map(v => (Array.isArray(v) ? v[0] : v)).join(','); - } - const value = variables[part.name]; - if (value === undefined) - return ''; - const values = Array.isArray(value) ? value : [value]; - const encoded = values.map(v => this.encodeValue(v, part.operator)); - switch (part.operator) { - case '': - return encoded.join(','); - case '+': - return encoded.join(','); - case '#': - return '#' + encoded.join(','); - case '.': - return '.' + encoded.join('.'); - case '/': - return '/' + encoded.join('/'); - default: - return encoded.join(','); - } - } - expand(variables) { - let result = ''; - let hasQueryParam = false; - for (const part of this.parts) { - if (typeof part === 'string') { - result += part; - continue; - } - const expanded = this.expandPart(part, variables); - if (!expanded) - continue; - // Convert ? to & if we already have a query parameter - if ((part.operator === '?' || part.operator === '&') && hasQueryParam) { - result += expanded.replace('?', '&'); - } - else { - result += expanded; - } - if (part.operator === '?' || part.operator === '&') { - hasQueryParam = true; - } - } - return result; - } - escapeRegExp(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - } - partToRegExp(part) { - const patterns = []; - // Validate variable name length for matching - for (const name of part.names) { - UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name'); - } - if (part.operator === '?' || part.operator === '&') { - for (let i = 0; i < part.names.length; i++) { - const name = part.names[i]; - const prefix = i === 0 ? '\\' + part.operator : '&'; - patterns.push({ - pattern: prefix + this.escapeRegExp(name) + '=([^&]+)', - name - }); - } - return patterns; - } - let pattern; - const name = part.name; - switch (part.operator) { - case '': - pattern = part.exploded ? '([^/]+(?:,[^/]+)*)' : '([^/,]+)'; - break; - case '+': - case '#': - pattern = '(.+)'; - break; - case '.': - pattern = '\\.([^/,]+)'; - break; - case '/': - pattern = '/' + (part.exploded ? '([^/]+(?:,[^/]+)*)' : '([^/,]+)'); - break; - default: - pattern = '([^/]+)'; - } - patterns.push({ pattern, name }); - return patterns; - } - match(uri) { - UriTemplate.validateLength(uri, MAX_TEMPLATE_LENGTH, 'URI'); - let pattern = '^'; - const names = []; - for (const part of this.parts) { - if (typeof part === 'string') { - pattern += this.escapeRegExp(part); - } - else { - const patterns = this.partToRegExp(part); - for (const { pattern: partPattern, name } of patterns) { - pattern += partPattern; - names.push({ name, exploded: part.exploded }); - } - } - } - pattern += '$'; - UriTemplate.validateLength(pattern, MAX_REGEX_LENGTH, 'Generated regex pattern'); - const regex = new RegExp(pattern); - const match = uri.match(regex); - if (!match) - return null; - const result = {}; - for (let i = 0; i < names.length; i++) { - const { name, exploded } = names[i]; - const value = match[i + 1]; - const cleanName = name.replace('*', ''); - if (exploded && value.includes(',')) { - result[cleanName] = value.split(','); - } - else { - result[cleanName] = value; - } - } - return result; - } -} -exports.UriTemplate = UriTemplate; -//# sourceMappingURL=uriTemplate.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map deleted file mode 100644 index 75c5c50..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uriTemplate.js","sourceRoot":"","sources":["../../../src/shared/uriTemplate.ts"],"names":[],"mappings":";AAAA,2DAA2D;;;AAI3D,MAAM,mBAAmB,GAAG,OAAO,CAAC,CAAC,MAAM;AAC3C,MAAM,mBAAmB,GAAG,OAAO,CAAC,CAAC,MAAM;AAC3C,MAAM,wBAAwB,GAAG,KAAK,CAAC;AACvC,MAAM,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM;AAExC,MAAa,WAAW;IACpB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAW;QACzB,2DAA2D;QAC3D,6BAA6B;QAC7B,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,GAAW,EAAE,GAAW,EAAE,OAAe;QACnE,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,8BAA8B,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;QAClG,CAAC;IACL,CAAC;IAID,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACpF,CAAC;IAED,YAAY,QAAgB;QACxB,WAAW,CAAC,cAAc,CAAC,QAAQ,EAAE,mBAAmB,EAAE,UAAU,CAAC,CAAC;QACtE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,G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AAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QAExB,MAAM,MAAM,GAAc,EAAE,CAAC;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACpC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAExC,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAClC,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzC,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AArRD,kCAqRC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts deleted file mode 100644 index f94e3cf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +++ /dev/null @@ -1,2299 +0,0 @@ -/** - * This file is automatically generated from the Model Context Protocol specification. - * - * Source: https://github.com/modelcontextprotocol/modelcontextprotocol - * Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts - * Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669 - * - * DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates. - * To update this file, run: npm run fetch:spec-types - */ -/** - * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent. - * - * @category JSON-RPC - */ -export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse; -/** @internal */ -export declare const LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1"; -/** @internal */ -export declare const JSONRPC_VERSION = "2.0"; -/** - * A progress token, used to associate progress notifications with the original request. - * - * @category Common Types - */ -export type ProgressToken = string | number; -/** - * An opaque token used to represent a cursor for pagination. - * - * @category Common Types - */ -export type Cursor = string; -/** - * Common params for any task-augmented request. - * - * @internal - */ -export interface TaskAugmentedRequestParams extends RequestParams { - /** - * If specified, the caller is requesting task-augmented execution for this request. - * The request will return a CreateTaskResult immediately, and the actual result can be - * retrieved later via tasks/result. - * - * Task augmentation is subject to capability negotiation - receivers MUST declare support - * for task augmentation of specific request types in their capabilities. - */ - task?: TaskMetadata; -} -/** - * Common params for any request. - * - * @internal - */ -export interface RequestParams { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken?: ProgressToken; - [key: string]: unknown; - }; -} -/** @internal */ -export interface Request { - method: string; - params?: { - [key: string]: any; - }; -} -/** @internal */ -export interface NotificationParams { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** @internal */ -export interface Notification { - method: string; - params?: { - [key: string]: any; - }; -} -/** - * @category Common Types - */ -export interface Result { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; - [key: string]: unknown; -} -/** - * @category Common Types - */ -export interface Error { - /** - * The error type that occurred. - */ - code: number; - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: string; - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data?: unknown; -} -/** - * A uniquely identifying ID for a request in JSON-RPC. - * - * @category Common Types - */ -export type RequestId = string | number; -/** - * A request that expects a response. - * - * @category JSON-RPC - */ -export interface JSONRPCRequest extends Request { - jsonrpc: typeof JSONRPC_VERSION; - id: RequestId; -} -/** - * A notification which does not expect a response. - * - * @category JSON-RPC - */ -export interface JSONRPCNotification extends Notification { - jsonrpc: typeof JSONRPC_VERSION; -} -/** - * A successful (non-error) response to a request. - * - * @category JSON-RPC - */ -export interface JSONRPCResultResponse { - jsonrpc: typeof JSONRPC_VERSION; - id: RequestId; - result: Result; -} -/** - * A response to a request that indicates an error occurred. - * - * @category JSON-RPC - */ -export interface JSONRPCErrorResponse { - jsonrpc: typeof JSONRPC_VERSION; - id?: RequestId; - error: Error; -} -/** - * A response to a request, containing either the result or error. - */ -export type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse; -export declare const PARSE_ERROR = -32700; -export declare const INVALID_REQUEST = -32600; -export declare const METHOD_NOT_FOUND = -32601; -export declare const INVALID_PARAMS = -32602; -export declare const INTERNAL_ERROR = -32603; -/** @internal */ -export declare const URL_ELICITATION_REQUIRED = -32042; -/** - * An error response that indicates that the server requires the client to provide additional information via an elicitation request. - * - * @internal - */ -export interface URLElicitationRequiredError extends Omit { - error: Error & { - code: typeof URL_ELICITATION_REQUIRED; - data: { - elicitations: ElicitRequestURLParams[]; - [key: string]: unknown; - }; - }; -} -/** - * A response that indicates success but carries no data. - * - * @category Common Types - */ -export type EmptyResult = Result; -/** - * Parameters for a `notifications/cancelled` notification. - * - * @category `notifications/cancelled` - */ -export interface CancelledNotificationParams extends NotificationParams { - /** - * The ID of the request to cancel. - * - * This MUST correspond to the ID of a request previously issued in the same direction. - * This MUST be provided for cancelling non-task requests. - * This MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead). - */ - requestId?: RequestId; - /** - * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. - */ - reason?: string; -} -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - * - * For task cancellation, use the `tasks/cancel` request instead of this notification. - * - * @category `notifications/cancelled` - */ -export interface CancelledNotification extends JSONRPCNotification { - method: "notifications/cancelled"; - params: CancelledNotificationParams; -} -/** - * Parameters for an `initialize` request. - * - * @category `initialize` - */ -export interface InitializeRequestParams extends RequestParams { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: string; - capabilities: ClientCapabilities; - clientInfo: Implementation; -} -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - * - * @category `initialize` - */ -export interface InitializeRequest extends JSONRPCRequest { - method: "initialize"; - params: InitializeRequestParams; -} -/** - * After receiving an initialize request from the client, the server sends this response. - * - * @category `initialize` - */ -export interface InitializeResult extends Result { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: string; - capabilities: ServerCapabilities; - serverInfo: Implementation; - /** - * Instructions describing how to use the server and its features. - * - * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. - */ - instructions?: string; -} -/** - * This notification is sent from the client to the server after initialization has finished. - * - * @category `notifications/initialized` - */ -export interface InitializedNotification extends JSONRPCNotification { - method: "notifications/initialized"; - params?: NotificationParams; -} -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - * - * @category `initialize` - */ -export interface ClientCapabilities { - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental?: { - [key: string]: object; - }; - /** - * Present if the client supports listing roots. - */ - roots?: { - /** - * Whether the client supports notifications for changes to the roots list. - */ - listChanged?: boolean; - }; - /** - * Present if the client supports sampling from an LLM. - */ - sampling?: { - /** - * Whether the client supports context inclusion via includeContext parameter. - * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it). - */ - context?: object; - /** - * Whether the client supports tool use via tools and toolChoice parameters. - */ - tools?: object; - }; - /** - * Present if the client supports elicitation from the server. - */ - elicitation?: { - form?: object; - url?: object; - }; - /** - * Present if the client supports task-augmented requests. - */ - tasks?: { - /** - * Whether this client supports tasks/list. - */ - list?: object; - /** - * Whether this client supports tasks/cancel. - */ - cancel?: object; - /** - * Specifies which request types can be augmented with tasks. - */ - requests?: { - /** - * Task support for sampling-related requests. - */ - sampling?: { - /** - * Whether the client supports task-augmented sampling/createMessage requests. - */ - createMessage?: object; - }; - /** - * Task support for elicitation-related requests. - */ - elicitation?: { - /** - * Whether the client supports task-augmented elicitation/create requests. - */ - create?: object; - }; - }; - }; -} -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - * - * @category `initialize` - */ -export interface ServerCapabilities { - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental?: { - [key: string]: object; - }; - /** - * Present if the server supports sending log messages to the client. - */ - logging?: object; - /** - * Present if the server supports argument autocompletion suggestions. - */ - completions?: object; - /** - * Present if the server offers any prompt templates. - */ - prompts?: { - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged?: boolean; - }; - /** - * Present if the server offers any resources to read. - */ - resources?: { - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe?: boolean; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged?: boolean; - }; - /** - * Present if the server offers any tools to call. - */ - tools?: { - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged?: boolean; - }; - /** - * Present if the server supports task-augmented requests. - */ - tasks?: { - /** - * Whether this server supports tasks/list. - */ - list?: object; - /** - * Whether this server supports tasks/cancel. - */ - cancel?: object; - /** - * Specifies which request types can be augmented with tasks. - */ - requests?: { - /** - * Task support for tool-related requests. - */ - tools?: { - /** - * Whether the server supports task-augmented tools/call requests. - */ - call?: object; - }; - }; - }; -} -/** - * An optionally-sized icon that can be displayed in a user interface. - * - * @category Common Types - */ -export interface Icon { - /** - * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a - * `data:` URI with Base64-encoded image data. - * - * Consumers SHOULD takes steps to ensure URLs serving icons are from the - * same domain as the client/server or a trusted domain. - * - * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain - * executable JavaScript. - * - * @format uri - */ - src: string; - /** - * Optional MIME type override if the source MIME type is missing or generic. - * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`. - */ - mimeType?: string; - /** - * Optional array of strings that specify sizes at which the icon can be used. - * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. - * - * If not provided, the client should assume that the icon can be used at any size. - */ - sizes?: string[]; - /** - * Optional specifier for the theme this icon is designed for. `light` indicates - * the icon is designed to be used with a light background, and `dark` indicates - * the icon is designed to be used with a dark background. - * - * If not provided, the client should assume the icon can be used with any theme. - */ - theme?: "light" | "dark"; -} -/** - * Base interface to add `icons` property. - * - * @internal - */ -export interface Icons { - /** - * Optional set of sized icons that the client can display in a user interface. - * - * Clients that support rendering icons MUST support at least the following MIME types: - * - `image/png` - PNG images (safe, universal compatibility) - * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) - * - * Clients that support rendering icons SHOULD also support: - * - `image/svg+xml` - SVG images (scalable but requires security precautions) - * - `image/webp` - WebP images (modern, efficient format) - */ - icons?: Icon[]; -} -/** - * Base interface for metadata with name (identifier) and title (display name) properties. - * - * @internal - */ -export interface BaseMetadata { - /** - * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). - */ - name: string; - /** - * Intended for UI and end-user contexts — optimized to be human-readable and easily understood, - * even by those unfamiliar with domain-specific terminology. - * - * If not provided, the name should be used for display (except for Tool, - * where `annotations.title` should be given precedence over using `name`, - * if present). - */ - title?: string; -} -/** - * Describes the MCP implementation. - * - * @category `initialize` - */ -export interface Implementation extends BaseMetadata, Icons { - version: string; - /** - * An optional human-readable description of what this implementation does. - * - * This can be used by clients or servers to provide context about their purpose - * and capabilities. For example, a server might describe the types of resources - * or tools it provides, while a client might describe its intended use case. - */ - description?: string; - /** - * An optional URL of the website for this implementation. - * - * @format uri - */ - websiteUrl?: string; -} -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - * - * @category `ping` - */ -export interface PingRequest extends JSONRPCRequest { - method: "ping"; - params?: RequestParams; -} -/** - * Parameters for a `notifications/progress` notification. - * - * @category `notifications/progress` - */ -export interface ProgressNotificationParams extends NotificationParams { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: ProgressToken; - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - * - * @TJS-type number - */ - progress: number; - /** - * Total number of items to process (or total progress required), if known. - * - * @TJS-type number - */ - total?: number; - /** - * An optional message describing the current progress. - */ - message?: string; -} -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category `notifications/progress` - */ -export interface ProgressNotification extends JSONRPCNotification { - method: "notifications/progress"; - params: ProgressNotificationParams; -} -/** - * Common parameters for paginated requests. - * - * @internal - */ -export interface PaginatedRequestParams extends RequestParams { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor?: Cursor; -} -/** @internal */ -export interface PaginatedRequest extends JSONRPCRequest { - params?: PaginatedRequestParams; -} -/** @internal */ -export interface PaginatedResult extends Result { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor?: Cursor; -} -/** - * Sent from the client to request a list of resources the server has. - * - * @category `resources/list` - */ -export interface ListResourcesRequest extends PaginatedRequest { - method: "resources/list"; -} -/** - * The server's response to a resources/list request from the client. - * - * @category `resources/list` - */ -export interface ListResourcesResult extends PaginatedResult { - resources: Resource[]; -} -/** - * Sent from the client to request a list of resource templates the server has. - * - * @category `resources/templates/list` - */ -export interface ListResourceTemplatesRequest extends PaginatedRequest { - method: "resources/templates/list"; -} -/** - * The server's response to a resources/templates/list request from the client. - * - * @category `resources/templates/list` - */ -export interface ListResourceTemplatesResult extends PaginatedResult { - resourceTemplates: ResourceTemplate[]; -} -/** - * Common parameters when working with resources. - * - * @internal - */ -export interface ResourceRequestParams extends RequestParams { - /** - * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it. - * - * @format uri - */ - uri: string; -} -/** - * Parameters for a `resources/read` request. - * - * @category `resources/read` - */ -export interface ReadResourceRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to the server, to read a specific resource URI. - * - * @category `resources/read` - */ -export interface ReadResourceRequest extends JSONRPCRequest { - method: "resources/read"; - params: ReadResourceRequestParams; -} -/** - * The server's response to a resources/read request from the client. - * - * @category `resources/read` - */ -export interface ReadResourceResult extends Result { - contents: (TextResourceContents | BlobResourceContents)[]; -} -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/resources/list_changed` - */ -export interface ResourceListChangedNotification extends JSONRPCNotification { - method: "notifications/resources/list_changed"; - params?: NotificationParams; -} -/** - * Parameters for a `resources/subscribe` request. - * - * @category `resources/subscribe` - */ -export interface SubscribeRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - * - * @category `resources/subscribe` - */ -export interface SubscribeRequest extends JSONRPCRequest { - method: "resources/subscribe"; - params: SubscribeRequestParams; -} -/** - * Parameters for a `resources/unsubscribe` request. - * - * @category `resources/unsubscribe` - */ -export interface UnsubscribeRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - * - * @category `resources/unsubscribe` - */ -export interface UnsubscribeRequest extends JSONRPCRequest { - method: "resources/unsubscribe"; - params: UnsubscribeRequestParams; -} -/** - * Parameters for a `notifications/resources/updated` notification. - * - * @category `notifications/resources/updated` - */ -export interface ResourceUpdatedNotificationParams extends NotificationParams { - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - * - * @format uri - */ - uri: string; -} -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - * - * @category `notifications/resources/updated` - */ -export interface ResourceUpdatedNotification extends JSONRPCNotification { - method: "notifications/resources/updated"; - params: ResourceUpdatedNotificationParams; -} -/** - * A known resource that the server is capable of reading. - * - * @category `resources/list` - */ -export interface Resource extends BaseMetadata, Icons { - /** - * The URI of this resource. - * - * @format uri - */ - uri: string; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * The MIME type of this resource, if known. - */ - mimeType?: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. - * - * This can be used by Hosts to display file sizes and estimate context window usage. - */ - size?: number; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A template description for resources available on the server. - * - * @category `resources/templates/list` - */ -export interface ResourceTemplate extends BaseMetadata, Icons { - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - * - * @format uri-template - */ - uriTemplate: string; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType?: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The contents of a specific resource or sub-resource. - * - * @internal - */ -export interface ResourceContents { - /** - * The URI of this resource. - * - * @format uri - */ - uri: string; - /** - * The MIME type of this resource, if known. - */ - mimeType?: string; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * @category Content - */ -export interface TextResourceContents extends ResourceContents { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: string; -} -/** - * @category Content - */ -export interface BlobResourceContents extends ResourceContents { - /** - * A base64-encoded string representing the binary data of the item. - * - * @format byte - */ - blob: string; -} -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - * - * @category `prompts/list` - */ -export interface ListPromptsRequest extends PaginatedRequest { - method: "prompts/list"; -} -/** - * The server's response to a prompts/list request from the client. - * - * @category `prompts/list` - */ -export interface ListPromptsResult extends PaginatedResult { - prompts: Prompt[]; -} -/** - * Parameters for a `prompts/get` request. - * - * @category `prompts/get` - */ -export interface GetPromptRequestParams extends RequestParams { - /** - * The name of the prompt or prompt template. - */ - name: string; - /** - * Arguments to use for templating the prompt. - */ - arguments?: { - [key: string]: string; - }; -} -/** - * Used by the client to get a prompt provided by the server. - * - * @category `prompts/get` - */ -export interface GetPromptRequest extends JSONRPCRequest { - method: "prompts/get"; - params: GetPromptRequestParams; -} -/** - * The server's response to a prompts/get request from the client. - * - * @category `prompts/get` - */ -export interface GetPromptResult extends Result { - /** - * An optional description for the prompt. - */ - description?: string; - messages: PromptMessage[]; -} -/** - * A prompt or prompt template that the server offers. - * - * @category `prompts/list` - */ -export interface Prompt extends BaseMetadata, Icons { - /** - * An optional description of what this prompt provides - */ - description?: string; - /** - * A list of arguments to use for templating the prompt. - */ - arguments?: PromptArgument[]; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * Describes an argument that a prompt can accept. - * - * @category `prompts/list` - */ -export interface PromptArgument extends BaseMetadata { - /** - * A human-readable description of the argument. - */ - description?: string; - /** - * Whether this argument must be provided. - */ - required?: boolean; -} -/** - * The sender or recipient of messages and data in a conversation. - * - * @category Common Types - */ -export type Role = "user" | "assistant"; -/** - * Describes a message returned as part of a prompt. - * - * This is similar to `SamplingMessage`, but also supports the embedding of - * resources from the MCP server. - * - * @category `prompts/get` - */ -export interface PromptMessage { - role: Role; - content: ContentBlock; -} -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - * - * @category Content - */ -export interface ResourceLink extends Resource { - type: "resource_link"; -} -/** - * The contents of a resource, embedded into a prompt or tool call result. - * - * It is up to the client how best to render embedded resources for the benefit - * of the LLM and/or the user. - * - * @category Content - */ -export interface EmbeddedResource { - type: "resource"; - resource: TextResourceContents | BlobResourceContents; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/prompts/list_changed` - */ -export interface PromptListChangedNotification extends JSONRPCNotification { - method: "notifications/prompts/list_changed"; - params?: NotificationParams; -} -/** - * Sent from the client to request a list of tools the server has. - * - * @category `tools/list` - */ -export interface ListToolsRequest extends PaginatedRequest { - method: "tools/list"; -} -/** - * The server's response to a tools/list request from the client. - * - * @category `tools/list` - */ -export interface ListToolsResult extends PaginatedResult { - tools: Tool[]; -} -/** - * The server's response to a tool call. - * - * @category `tools/call` - */ -export interface CallToolResult extends Result { - /** - * A list of content objects that represent the unstructured result of the tool call. - */ - content: ContentBlock[]; - /** - * An optional JSON object that represents the structured result of the tool call. - */ - structuredContent?: { - [key: string]: unknown; - }; - /** - * Whether the tool call ended in an error. - * - * If not set, this is assumed to be false (the call was successful). - * - * Any errors that originate from the tool SHOULD be reported inside the result - * object, with `isError` set to true, _not_ as an MCP protocol-level error - * response. Otherwise, the LLM would not be able to see that an error occurred - * and self-correct. - * - * However, any errors in _finding_ the tool, an error indicating that the - * server does not support tool calls, or any other exceptional conditions, - * should be reported as an MCP error response. - */ - isError?: boolean; -} -/** - * Parameters for a `tools/call` request. - * - * @category `tools/call` - */ -export interface CallToolRequestParams extends TaskAugmentedRequestParams { - /** - * The name of the tool. - */ - name: string; - /** - * Arguments to use for the tool call. - */ - arguments?: { - [key: string]: unknown; - }; -} -/** - * Used by the client to invoke a tool provided by the server. - * - * @category `tools/call` - */ -export interface CallToolRequest extends JSONRPCRequest { - method: "tools/call"; - params: CallToolRequestParams; -} -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/tools/list_changed` - */ -export interface ToolListChangedNotification extends JSONRPCNotification { - method: "notifications/tools/list_changed"; - params?: NotificationParams; -} -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - * - * @category `tools/list` - */ -export interface ToolAnnotations { - /** - * A human-readable title for the tool. - */ - title?: string; - /** - * If true, the tool does not modify its environment. - * - * Default: false - */ - readOnlyHint?: boolean; - /** - * If true, the tool may perform destructive updates to its environment. - * If false, the tool performs only additive updates. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: true - */ - destructiveHint?: boolean; - /** - * If true, calling the tool repeatedly with the same arguments - * will have no additional effect on its environment. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: false - */ - idempotentHint?: boolean; - /** - * If true, this tool may interact with an "open world" of external - * entities. If false, the tool's domain of interaction is closed. - * For example, the world of a web search tool is open, whereas that - * of a memory tool is not. - * - * Default: true - */ - openWorldHint?: boolean; -} -/** - * Execution-related properties for a tool. - * - * @category `tools/list` - */ -export interface ToolExecution { - /** - * Indicates whether this tool supports task-augmented execution. - * This allows clients to handle long-running operations through polling - * the task system. - * - * - "forbidden": Tool does not support task-augmented execution (default when absent) - * - "optional": Tool may support task-augmented execution - * - "required": Tool requires task-augmented execution - * - * Default: "forbidden" - */ - taskSupport?: "forbidden" | "optional" | "required"; -} -/** - * Definition for a tool the client can call. - * - * @category `tools/list` - */ -export interface Tool extends BaseMetadata, Icons { - /** - * A human-readable description of the tool. - * - * This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: { - $schema?: string; - type: "object"; - properties?: { - [key: string]: object; - }; - required?: string[]; - }; - /** - * Execution-related properties for this tool. - */ - execution?: ToolExecution; - /** - * An optional JSON Schema object defining the structure of the tool's output returned in - * the structuredContent field of a CallToolResult. - * - * Defaults to JSON Schema 2020-12 when no explicit $schema is provided. - * Currently restricted to type: "object" at the root level. - */ - outputSchema?: { - $schema?: string; - type: "object"; - properties?: { - [key: string]: object; - }; - required?: string[]; - }; - /** - * Optional additional tool information. - * - * Display name precedence order is: title, annotations.title, then name. - */ - annotations?: ToolAnnotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The status of a task. - * - * @category `tasks` - */ -export type TaskStatus = "working" | "input_required" | "completed" | "failed" | "cancelled"; -/** - * Metadata for augmenting a request with task execution. - * Include this in the `task` field of the request parameters. - * - * @category `tasks` - */ -export interface TaskMetadata { - /** - * Requested duration in milliseconds to retain task from creation. - */ - ttl?: number; -} -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - * - * @category `tasks` - */ -export interface RelatedTaskMetadata { - /** - * The task identifier this message is associated with. - */ - taskId: string; -} -/** - * Data associated with a task. - * - * @category `tasks` - */ -export interface Task { - /** - * The task identifier. - */ - taskId: string; - /** - * Current task state. - */ - status: TaskStatus; - /** - * Optional human-readable message describing the current task state. - * This can provide context for any status, including: - * - Reasons for "cancelled" status - * - Summaries for "completed" status - * - Diagnostic information for "failed" status (e.g., error details, what went wrong) - */ - statusMessage?: string; - /** - * ISO 8601 timestamp when the task was created. - */ - createdAt: string; - /** - * ISO 8601 timestamp when the task was last updated. - */ - lastUpdatedAt: string; - /** - * Actual retention duration from creation in milliseconds, null for unlimited. - */ - ttl: number | null; - /** - * Suggested polling interval in milliseconds. - */ - pollInterval?: number; -} -/** - * A response to a task-augmented request. - * - * @category `tasks` - */ -export interface CreateTaskResult extends Result { - task: Task; -} -/** - * A request to retrieve the state of a task. - * - * @category `tasks/get` - */ -export interface GetTaskRequest extends JSONRPCRequest { - method: "tasks/get"; - params: { - /** - * The task identifier to query. - */ - taskId: string; - }; -} -/** - * The response to a tasks/get request. - * - * @category `tasks/get` - */ -export type GetTaskResult = Result & Task; -/** - * A request to retrieve the result of a completed task. - * - * @category `tasks/result` - */ -export interface GetTaskPayloadRequest extends JSONRPCRequest { - method: "tasks/result"; - params: { - /** - * The task identifier to retrieve results for. - */ - taskId: string; - }; -} -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - * @category `tasks/result` - */ -export interface GetTaskPayloadResult extends Result { - [key: string]: unknown; -} -/** - * A request to cancel a task. - * - * @category `tasks/cancel` - */ -export interface CancelTaskRequest extends JSONRPCRequest { - method: "tasks/cancel"; - params: { - /** - * The task identifier to cancel. - */ - taskId: string; - }; -} -/** - * The response to a tasks/cancel request. - * - * @category `tasks/cancel` - */ -export type CancelTaskResult = Result & Task; -/** - * A request to retrieve a list of tasks. - * - * @category `tasks/list` - */ -export interface ListTasksRequest extends PaginatedRequest { - method: "tasks/list"; -} -/** - * The response to a tasks/list request. - * - * @category `tasks/list` - */ -export interface ListTasksResult extends PaginatedResult { - tasks: Task[]; -} -/** - * Parameters for a `notifications/tasks/status` notification. - * - * @category `notifications/tasks/status` - */ -export type TaskStatusNotificationParams = NotificationParams & Task; -/** - * An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications. - * - * @category `notifications/tasks/status` - */ -export interface TaskStatusNotification extends JSONRPCNotification { - method: "notifications/tasks/status"; - params: TaskStatusNotificationParams; -} -/** - * Parameters for a `logging/setLevel` request. - * - * @category `logging/setLevel` - */ -export interface SetLevelRequestParams extends RequestParams { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message. - */ - level: LoggingLevel; -} -/** - * A request from the client to the server, to enable or adjust logging. - * - * @category `logging/setLevel` - */ -export interface SetLevelRequest extends JSONRPCRequest { - method: "logging/setLevel"; - params: SetLevelRequestParams; -} -/** - * Parameters for a `notifications/message` notification. - * - * @category `notifications/message` - */ -export interface LoggingMessageNotificationParams extends NotificationParams { - /** - * The severity of this log message. - */ - level: LoggingLevel; - /** - * An optional name of the logger issuing this message. - */ - logger?: string; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: unknown; -} -/** - * JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - * - * @category `notifications/message` - */ -export interface LoggingMessageNotification extends JSONRPCNotification { - method: "notifications/message"; - params: LoggingMessageNotificationParams; -} -/** - * The severity of a log message. - * - * These map to syslog message severities, as specified in RFC-5424: - * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1 - * - * @category Common Types - */ -export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency"; -/** - * Parameters for a `sampling/createMessage` request. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageRequestParams extends TaskAugmentedRequestParams { - messages: SamplingMessage[]; - /** - * The server's preferences for which model to select. The client MAY ignore these preferences. - */ - modelPreferences?: ModelPreferences; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt?: string; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. - * The client MAY ignore this request. - * - * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client - * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases. - */ - includeContext?: "none" | "thisServer" | "allServers"; - /** - * @TJS-type number - */ - temperature?: number; - /** - * The requested maximum number of tokens to sample (to prevent runaway completions). - * - * The client MAY choose to sample fewer tokens than the requested maximum. - */ - maxTokens: number; - stopSequences?: string[]; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata?: object; - /** - * Tools that the model may use during generation. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - */ - tools?: Tool[]; - /** - * Controls how the model uses tools. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - * Default is `{ mode: "auto" }`. - */ - toolChoice?: ToolChoice; -} -/** - * Controls tool selection behavior for sampling requests. - * - * @category `sampling/createMessage` - */ -export interface ToolChoice { - /** - * Controls the tool use ability of the model: - * - "auto": Model decides whether to use tools (default) - * - "required": Model MUST use at least one tool before completing - * - "none": Model MUST NOT use any tools - */ - mode?: "auto" | "required" | "none"; -} -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageRequest extends JSONRPCRequest { - method: "sampling/createMessage"; - params: CreateMessageRequestParams; -} -/** - * The client's response to a sampling/createMessage request from the server. - * The client should inform the user before returning the sampled message, to allow them - * to inspect the response (human in the loop) and decide whether to allow the server to see it. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageResult extends Result, SamplingMessage { - /** - * The name of the model that generated the message. - */ - model: string; - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - "toolUse": The model wants to use one or more tools - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason?: "endTurn" | "stopSequence" | "maxTokens" | "toolUse" | string; -} -/** - * Describes a message issued to or received from an LLM API. - * - * @category `sampling/createMessage` - */ -export interface SamplingMessage { - role: Role; - content: SamplingMessageContentBlock | SamplingMessageContentBlock[]; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -export type SamplingMessageContentBlock = TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent; -/** - * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed - * - * @category Common Types - */ -export interface Annotations { - /** - * Describes who the intended audience of this object or data is. - * - * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`). - */ - audience?: Role[]; - /** - * Describes how important this data is for operating the server. - * - * A value of 1 means "most important," and indicates that the data is - * effectively required, while 0 means "least important," and indicates that - * the data is entirely optional. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - priority?: number; - /** - * The moment the resource was last modified, as an ISO 8601 formatted string. - * - * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z"). - * - * Examples: last activity timestamp in an open file, timestamp when the resource - * was attached, etc. - */ - lastModified?: string; -} -/** - * @category Content - */ -export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource; -/** - * Text provided to or from an LLM. - * - * @category Content - */ -export interface TextContent { - type: "text"; - /** - * The text content of the message. - */ - text: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * An image provided to or from an LLM. - * - * @category Content - */ -export interface ImageContent { - type: "image"; - /** - * The base64-encoded image data. - * - * @format byte - */ - data: string; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * Audio provided to or from an LLM. - * - * @category Content - */ -export interface AudioContent { - type: "audio"; - /** - * The base64-encoded audio data. - * - * @format byte - */ - data: string; - /** - * The MIME type of the audio. Different providers may support different audio types. - */ - mimeType: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A request from the assistant to call a tool. - * - * @category `sampling/createMessage` - */ -export interface ToolUseContent { - type: "tool_use"; - /** - * A unique identifier for this tool use. - * - * This ID is used to match tool results to their corresponding tool uses. - */ - id: string; - /** - * The name of the tool to call. - */ - name: string; - /** - * The arguments to pass to the tool, conforming to the tool's input schema. - */ - input: { - [key: string]: unknown; - }; - /** - * Optional metadata about the tool use. Clients SHOULD preserve this field when - * including tool uses in subsequent sampling requests to enable caching optimizations. - * - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The result of a tool use, provided by the user back to the assistant. - * - * @category `sampling/createMessage` - */ -export interface ToolResultContent { - type: "tool_result"; - /** - * The ID of the tool use this result corresponds to. - * - * This MUST match the ID from a previous ToolUseContent. - */ - toolUseId: string; - /** - * The unstructured result content of the tool use. - * - * This has the same format as CallToolResult.content and can include text, images, - * audio, resource links, and embedded resources. - */ - content: ContentBlock[]; - /** - * An optional structured result object. - * - * If the tool defined an outputSchema, this SHOULD conform to that schema. - */ - structuredContent?: { - [key: string]: unknown; - }; - /** - * Whether the tool use resulted in an error. - * - * If true, the content typically describes the error that occurred. - * Default: false - */ - isError?: boolean; - /** - * Optional metadata about the tool result. Clients SHOULD preserve this field when - * including tool results in subsequent sampling requests to enable caching optimizations. - * - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The server's preferences for model selection, requested of the client during sampling. - * - * Because LLMs can vary along multiple dimensions, choosing the "best" model is - * rarely straightforward. Different models excel in different areas—some are - * faster but less capable, others are more capable but more expensive, and so - * on. This interface allows servers to express their priorities across multiple - * dimensions to help clients make an appropriate selection for their use case. - * - * These preferences are always advisory. The client MAY ignore them. It is also - * up to the client to decide how to interpret these preferences and how to - * balance them against other considerations. - * - * @category `sampling/createMessage` - */ -export interface ModelPreferences { - /** - * Optional hints to use for model selection. - * - * If multiple hints are specified, the client MUST evaluate them in order - * (such that the first match is taken). - * - * The client SHOULD prioritize these hints over the numeric priorities, but - * MAY still use the priorities to select from ambiguous matches. - */ - hints?: ModelHint[]; - /** - * How much to prioritize cost when selecting a model. A value of 0 means cost - * is not important, while a value of 1 means cost is the most important - * factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - costPriority?: number; - /** - * How much to prioritize sampling speed (latency) when selecting a model. A - * value of 0 means speed is not important, while a value of 1 means speed is - * the most important factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - speedPriority?: number; - /** - * How much to prioritize intelligence and capabilities when selecting a - * model. A value of 0 means intelligence is not important, while a value of 1 - * means intelligence is the most important factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - intelligencePriority?: number; -} -/** - * Hints to use for model selection. - * - * Keys not declared here are currently left unspecified by the spec and are up - * to the client to interpret. - * - * @category `sampling/createMessage` - */ -export interface ModelHint { - /** - * A hint for a model name. - * - * The client SHOULD treat this as a substring of a model name; for example: - * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022` - * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc. - * - `claude` should match any Claude model - * - * The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example: - * - `gemini-1.5-flash` could match `claude-3-haiku-20240307` - */ - name?: string; -} -/** - * Parameters for a `completion/complete` request. - * - * @category `completion/complete` - */ -export interface CompleteRequestParams extends RequestParams { - ref: PromptReference | ResourceTemplateReference; - /** - * The argument's information - */ - argument: { - /** - * The name of the argument - */ - name: string; - /** - * The value of the argument to use for completion matching. - */ - value: string; - }; - /** - * Additional, optional context for completions - */ - context?: { - /** - * Previously-resolved variables in a URI template or prompt. - */ - arguments?: { - [key: string]: string; - }; - }; -} -/** - * A request from the client to the server, to ask for completion options. - * - * @category `completion/complete` - */ -export interface CompleteRequest extends JSONRPCRequest { - method: "completion/complete"; - params: CompleteRequestParams; -} -/** - * The server's response to a completion/complete request - * - * @category `completion/complete` - */ -export interface CompleteResult extends Result { - completion: { - /** - * An array of completion values. Must not exceed 100 items. - */ - values: string[]; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total?: number; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore?: boolean; - }; -} -/** - * A reference to a resource or resource template definition. - * - * @category `completion/complete` - */ -export interface ResourceTemplateReference { - type: "ref/resource"; - /** - * The URI or URI template of the resource. - * - * @format uri-template - */ - uri: string; -} -/** - * Identifies a prompt. - * - * @category `completion/complete` - */ -export interface PromptReference extends BaseMetadata { - type: "ref/prompt"; -} -/** - * Sent from the server to request a list of root URIs from the client. Roots allow - * servers to ask for specific directories or files to operate on. A common example - * for roots is providing a set of repositories or directories a server should operate - * on. - * - * This request is typically used when the server needs to understand the file system - * structure or access specific locations that the client has permission to read from. - * - * @category `roots/list` - */ -export interface ListRootsRequest extends JSONRPCRequest { - method: "roots/list"; - params?: RequestParams; -} -/** - * The client's response to a roots/list request from the server. - * This result contains an array of Root objects, each representing a root directory - * or file that the server can operate on. - * - * @category `roots/list` - */ -export interface ListRootsResult extends Result { - roots: Root[]; -} -/** - * Represents a root directory or file that the server can operate on. - * - * @category `roots/list` - */ -export interface Root { - /** - * The URI identifying the root. This *must* start with file:// for now. - * This restriction may be relaxed in future versions of the protocol to allow - * other URI schemes. - * - * @format uri - */ - uri: string; - /** - * An optional name for the root. This can be used to provide a human-readable - * identifier for the root, which may be useful for display purposes or for - * referencing the root in other parts of the application. - */ - name?: string; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A notification from the client to the server, informing it that the list of roots has changed. - * This notification should be sent whenever the client adds, removes, or modifies any root. - * The server should then request an updated list of roots using the ListRootsRequest. - * - * @category `notifications/roots/list_changed` - */ -export interface RootsListChangedNotification extends JSONRPCNotification { - method: "notifications/roots/list_changed"; - params?: NotificationParams; -} -/** - * The parameters for a request to elicit non-sensitive information from the user via a form in the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequestFormParams extends TaskAugmentedRequestParams { - /** - * The elicitation mode. - */ - mode?: "form"; - /** - * The message to present to the user describing what information is being requested. - */ - message: string; - /** - * A restricted subset of JSON Schema. - * Only top-level properties are allowed, without nesting. - */ - requestedSchema: { - $schema?: string; - type: "object"; - properties: { - [key: string]: PrimitiveSchemaDefinition; - }; - required?: string[]; - }; -} -/** - * The parameters for a request to elicit information from the user via a URL in the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequestURLParams extends TaskAugmentedRequestParams { - /** - * The elicitation mode. - */ - mode: "url"; - /** - * The message to present to the user explaining why the interaction is needed. - */ - message: string; - /** - * The ID of the elicitation, which must be unique within the context of the server. - * The client MUST treat this ID as an opaque value. - */ - elicitationId: string; - /** - * The URL that the user should navigate to. - * - * @format uri - */ - url: string; -} -/** - * The parameters for a request to elicit additional information from the user via the client. - * - * @category `elicitation/create` - */ -export type ElicitRequestParams = ElicitRequestFormParams | ElicitRequestURLParams; -/** - * A request from the server to elicit additional information from the user via the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequest extends JSONRPCRequest { - method: "elicitation/create"; - params: ElicitRequestParams; -} -/** - * Restricted schema definitions that only allow primitive types - * without nested objects or arrays. - * - * @category `elicitation/create` - */ -export type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema; -/** - * @category `elicitation/create` - */ -export interface StringSchema { - type: "string"; - title?: string; - description?: string; - minLength?: number; - maxLength?: number; - format?: "email" | "uri" | "date" | "date-time"; - default?: string; -} -/** - * @category `elicitation/create` - */ -export interface NumberSchema { - type: "number" | "integer"; - title?: string; - description?: string; - minimum?: number; - maximum?: number; - default?: number; -} -/** - * @category `elicitation/create` - */ -export interface BooleanSchema { - type: "boolean"; - title?: string; - description?: string; - default?: boolean; -} -/** - * Schema for single-selection enumeration without display titles for options. - * - * @category `elicitation/create` - */ -export interface UntitledSingleSelectEnumSchema { - type: "string"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Array of enum values to choose from. - */ - enum: string[]; - /** - * Optional default value. - */ - default?: string; -} -/** - * Schema for single-selection enumeration with display titles for each option. - * - * @category `elicitation/create` - */ -export interface TitledSingleSelectEnumSchema { - type: "string"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Array of enum options with values and display labels. - */ - oneOf: Array<{ - /** - * The enum value. - */ - const: string; - /** - * Display label for this option. - */ - title: string; - }>; - /** - * Optional default value. - */ - default?: string; -} -/** - * @category `elicitation/create` - */ -export type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema; -/** - * Schema for multiple-selection enumeration without display titles for options. - * - * @category `elicitation/create` - */ -export interface UntitledMultiSelectEnumSchema { - type: "array"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Minimum number of items to select. - */ - minItems?: number; - /** - * Maximum number of items to select. - */ - maxItems?: number; - /** - * Schema for the array items. - */ - items: { - type: "string"; - /** - * Array of enum values to choose from. - */ - enum: string[]; - }; - /** - * Optional default value. - */ - default?: string[]; -} -/** - * Schema for multiple-selection enumeration with display titles for each option. - * - * @category `elicitation/create` - */ -export interface TitledMultiSelectEnumSchema { - type: "array"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Minimum number of items to select. - */ - minItems?: number; - /** - * Maximum number of items to select. - */ - maxItems?: number; - /** - * Schema for array items with enum options and display labels. - */ - items: { - /** - * Array of enum options with values and display labels. - */ - anyOf: Array<{ - /** - * The constant enum value. - */ - const: string; - /** - * Display title for this option. - */ - title: string; - }>; - }; - /** - * Optional default value. - */ - default?: string[]; -} -/** - * @category `elicitation/create` - */ -export type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema; -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - * - * @category `elicitation/create` - */ -export interface LegacyTitledEnumSchema { - type: "string"; - title?: string; - description?: string; - enum: string[]; - /** - * (Legacy) Display names for enum values. - * Non-standard according to JSON schema 2020-12. - */ - enumNames?: string[]; - default?: string; -} -/** - * @category `elicitation/create` - */ -export type EnumSchema = SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema; -/** - * The client's response to an elicitation request. - * - * @category `elicitation/create` - */ -export interface ElicitResult extends Result { - /** - * The user action in response to the elicitation. - * - "accept": User submitted the form/confirmed the action - * - "decline": User explicitly decline the action - * - "cancel": User dismissed without making an explicit choice - */ - action: "accept" | "decline" | "cancel"; - /** - * The submitted form data, only present when action is "accept" and mode was "form". - * Contains values matching the requested schema. - * Omitted for out-of-band mode responses. - */ - content?: { - [key: string]: string | number | boolean | string[]; - }; -} -/** - * An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request. - * - * @category `notifications/elicitation/complete` - */ -export interface ElicitationCompleteNotification extends JSONRPCNotification { - method: "notifications/elicitation/complete"; - params: { - /** - * The ID of the elicitation that completed. - */ - elicitationId: string; - }; -} -/** @internal */ -export type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest; -/** @internal */ -export type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification | TaskStatusNotification; -/** @internal */ -export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult; -/** @internal */ -export type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest; -/** @internal */ -export type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification | ElicitationCompleteNotification | TaskStatusNotification; -/** @internal */ -export type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | ListToolsResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult; -//# sourceMappingURL=spec.types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map deleted file mode 100644 index 7e4fb0e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spec.types.d.ts","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,mBAAmB,GACnB,eAAe,CAAC;AAEpB,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AACvD,gBAAgB;AAChB,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AACD;;;;GAIG;AACH,M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B,oBAAoB,GACpB,0BAA0B,GAC1B,2BAA2B,GAC3B,+BAA+B,GAC/B,2BAA2B,GAC3B,6BAA6B,GAC7B,+BAA+B,GAC/B,sBAAsB,CAAC;AAE3B,gBAAgB;AAChB,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,2BAA2B,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,gBAAgB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js deleted file mode 100644 index 6924e51..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -/** - * This file is automatically generated from the Model Context Protocol specification. - * - * Source: https://github.com/modelcontextprotocol/modelcontextprotocol - * Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts - * Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669 - * - * DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates. - * To update this file, run: npm run fetch:spec-types - */ /* JSON-RPC types */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.URL_ELICITATION_REQUIRED = exports.INTERNAL_ERROR = exports.INVALID_PARAMS = exports.METHOD_NOT_FOUND = exports.INVALID_REQUEST = exports.PARSE_ERROR = exports.JSONRPC_VERSION = exports.LATEST_PROTOCOL_VERSION = void 0; -/** @internal */ -exports.LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1"; -/** @internal */ -exports.JSONRPC_VERSION = "2.0"; -// Standard JSON-RPC error codes -exports.PARSE_ERROR = -32700; -exports.INVALID_REQUEST = -32600; -exports.METHOD_NOT_FOUND = -32601; -exports.INVALID_PARAMS = -32602; -exports.INTERNAL_ERROR = -32603; -// Implementation-specific JSON-RPC error codes [-32000, -32099] -/** @internal */ -exports.URL_ELICITATION_REQUIRED = -32042; -//# sourceMappingURL=spec.types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map deleted file mode 100644 index b04ea1a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spec.types.js","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG,CAAA,oBAAoB;;;AAYvB,gBAAgB;AACH,QAAA,uBAAuB,GAAG,eAAe,CAAC;AACvD,gBAAgB;AACH,QAAA,eAAe,GAAG,KAAK,CAAC;AA4JrC,gCAAgC;AACnB,QAAA,WAAW,GAAG,CAAC,KAAK,CAAC;AACrB,QAAA,eAAe,GAAG,CAAC,KAAK,CAAC;AACzB,QAAA,gBAAgB,GAAG,CAAC,KAAK,CAAC;AAC1B,QAAA,cAAc,GAAG,CAAC,KAAK,CAAC;AACxB,QAAA,cAAc,GAAG,CAAC,KAAK,CAAC;AAErC,gEAAgE;AAChE,gBAAgB;AACH,QAAA,wBAAwB,GAAG,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts deleted file mode 100644 index 55f087e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +++ /dev/null @@ -1,8133 +0,0 @@ -import * as z from 'zod/v4'; -import { AuthInfo } from './server/auth/types.js'; -export declare const LATEST_PROTOCOL_VERSION = "2025-11-25"; -export declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26"; -export declare const SUPPORTED_PROTOCOL_VERSIONS: string[]; -export declare const RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task"; -export declare const JSONRPC_VERSION = "2.0"; -/** - * Utility types - */ -type ExpandRecursively = T extends object ? (T extends infer O ? { - [K in keyof O]: ExpandRecursively; -} : never) : T; -/** - * A progress token, used to associate progress notifications with the original request. - */ -export declare const ProgressTokenSchema: z.ZodUnion; -/** - * An opaque token used to represent a cursor for pagination. - */ -export declare const CursorSchema: z.ZodString; -/** - * Task creation parameters, used to ask that the server create a task to represent a request. - */ -export declare const TaskCreationParamsSchema: z.ZodObject<{ - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.ZodOptional>; - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval: z.ZodOptional; -}, z.core.$loose>; -export declare const TaskMetadataSchema: z.ZodObject<{ - ttl: z.ZodOptional; -}, z.core.$strip>; -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - */ -export declare const RelatedTaskMetadataSchema: z.ZodObject<{ - taskId: z.ZodString; -}, z.core.$strip>; -declare const RequestMetaSchema: z.ZodObject<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; -}, z.core.$loose>; -/** - * Common params for any request. - */ -declare const BaseRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * Common params for any task-augmented request. - */ -export declare const TaskAugmentedRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Checks if a value is a valid TaskAugmentedRequestParams. - * @param value - The value to check. - * - * @returns True if the value is a valid TaskAugmentedRequestParams, false otherwise. - */ -export declare const isTaskAugmentedRequestParams: (value: unknown) => value is TaskAugmentedRequestParams; -export declare const RequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -declare const NotificationsParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const NotificationSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const ResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -export declare const RequestIdSchema: z.ZodUnion; -/** - * A request that expects a response. - */ -export declare const JSONRPCRequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; -}, z.core.$strict>; -export declare const isJSONRPCRequest: (value: unknown) => value is JSONRPCRequest; -/** - * A notification which does not expect a response. - */ -export declare const JSONRPCNotificationSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; -}, z.core.$strict>; -export declare const isJSONRPCNotification: (value: unknown) => value is JSONRPCNotification; -/** - * A successful (non-error) response to a request. - */ -export declare const JSONRPCResultResponseSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>; -/** - * Checks if a value is a valid JSONRPCResultResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCResultResponse, false otherwise. - */ -export declare const isJSONRPCResultResponse: (value: unknown) => value is JSONRPCResultResponse; -/** - * @deprecated Use {@link isJSONRPCResultResponse} instead. - * - * Please note that {@link JSONRPCResponse} is a union of {@link JSONRPCResultResponse} and {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCResultResponse}) - */ -export declare const isJSONRPCResponse: (value: unknown) => value is JSONRPCResultResponse; -/** - * Error codes defined by the JSON-RPC specification. - */ -export declare enum ErrorCode { - ConnectionClosed = -32000, - RequestTimeout = -32001, - ParseError = -32700, - InvalidRequest = -32600, - MethodNotFound = -32601, - InvalidParams = -32602, - InternalError = -32603, - UrlElicitationRequired = -32042 -} -/** - * A response to a request that indicates an error occurred. - */ -export declare const JSONRPCErrorResponseSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>; -/** - * @deprecated Use {@link JSONRPCErrorResponseSchema} instead. - */ -export declare const JSONRPCErrorSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>; -/** - * Checks if a value is a valid JSONRPCErrorResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCErrorResponse, false otherwise. - */ -export declare const isJSONRPCErrorResponse: (value: unknown) => value is JSONRPCErrorResponse; -/** - * @deprecated Use {@link isJSONRPCErrorResponse} instead. - */ -export declare const isJSONRPCError: (value: unknown) => value is JSONRPCErrorResponse; -export declare const JSONRPCMessageSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; -}, z.core.$strict>, z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>]>; -export declare const JSONRPCResponseSchema: z.ZodUnion; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>]>; -/** - * A response that indicates success but carries no data. - */ -export declare const EmptyResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>; -export declare const CancelledNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; -}, z.core.$strip>; -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - */ -export declare const CancelledNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/cancelled">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Icon schema for use in tools, prompts, resources, and implementations. - */ -export declare const IconSchema: z.ZodObject<{ - src: z.ZodString; - mimeType: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; -}, z.core.$strip>; -/** - * Base schema to add `icons` property. - * - */ -export declare const IconsSchema: z.ZodObject<{ - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; -}, z.core.$strip>; -/** - * Base metadata interface for common properties across resources, tools, prompts, and implementations. - */ -export declare const BaseMetadataSchema: z.ZodObject<{ - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Describes the name and version of an MCP implementation. - */ -export declare const ImplementationSchema: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Task capabilities for clients, indicating which request types support task creation. - */ -export declare const ClientTasksCapabilitySchema: z.ZodObject<{ - /** - * Present if the client supports listing tasks. - */ - list: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * Task capabilities for servers, indicating which request types support task creation. - */ -export declare const ServerTasksCapabilitySchema: z.ZodObject<{ - /** - * Present if the server supports listing tasks. - */ - list: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -export declare const ClientCapabilitiesSchema: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const InitializeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -export declare const InitializeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"initialize">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const isInitializeRequest: (value: unknown) => value is InitializeRequest; -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -export declare const ServerCapabilitiesSchema: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * After receiving an initialize request from the client, the server sends this response. - */ -export declare const InitializeResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - serverInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - instructions: z.ZodOptional; -}, z.core.$loose>; -/** - * This notification is sent from the client to the server after initialization has finished. - */ -export declare const InitializedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/initialized">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const isInitializedNotification: (value: unknown) => value is InitializedNotification; -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -export declare const PingRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"ping">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const ProgressSchema: z.ZodObject<{ - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; -}, z.core.$strip>; -export declare const ProgressNotificationParamsSchema: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category notifications/progress - */ -export declare const ProgressNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const PaginatedRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; -}, z.core.$strip>; -export declare const PaginatedRequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const PaginatedResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; -}, z.core.$loose>; -/** - * The status of a task. - * */ -export declare const TaskStatusSchema: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; -}>; -/** - * A pollable state object associated with a request. - */ -export declare const TaskSchema: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * Result returned when a task is created, containing the task data wrapped in a task field. - */ -export declare const CreateTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>; -/** - * Parameters for task status notification. - */ -export declare const TaskStatusNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * A notification sent when a task's status changes. - */ -export declare const TaskStatusNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * A request to get the state of a specific task. - */ -export declare const GetTaskRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/get request. - */ -export declare const GetTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * A request to get the result of a specific task. - */ -export declare const GetTaskPayloadRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - */ -export declare const GetTaskPayloadResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * A request to list tasks. - */ -export declare const ListTasksRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>; -/** - * The response to a tasks/list request. - */ -export declare const ListTasksResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * A request to cancel a specific task. - */ -export declare const CancelTaskRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/cancel request. - */ -export declare const CancelTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * The contents of a specific resource or sub-resource. - */ -export declare const ResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -export declare const TextResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - text: z.ZodString; -}, z.core.$strip>; -export declare const BlobResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; -}, z.core.$strip>; -/** - * The sender or recipient of messages and data in a conversation. - */ -export declare const RoleSchema: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; -}>; -/** - * Optional annotations providing clients additional context about a resource. - */ -export declare const AnnotationsSchema: z.ZodObject<{ - audience: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; -}, z.core.$strip>; -/** - * A known resource that the server is capable of reading. - */ -export declare const ResourceSchema: z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * A template description for resources available on the server. - */ -export declare const ResourceTemplateSchema: z.ZodObject<{ - uriTemplate: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of resources the server has. - */ -export declare const ListResourcesRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/list">; -}, z.core.$strip>; -/** - * The server's response to a resources/list request from the client. - */ -export declare const ListResourcesResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resources: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * Sent from the client to request a list of resource templates the server has. - */ -export declare const ListResourceTemplatesRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/templates/list">; -}, z.core.$strip>; -/** - * The server's response to a resources/templates/list request from the client. - */ -export declare const ListResourceTemplatesResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resourceTemplates: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -export declare const ResourceRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Parameters for a `resources/read` request. - */ -export declare const ReadResourceRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to the server, to read a specific resource URI. - */ -export declare const ReadResourceRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The server's response to a resources/read request from the client. - */ -export declare const ReadResourceResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - contents: z.ZodArray; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>>; -}, z.core.$loose>; -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ResourceListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const SubscribeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -export declare const SubscribeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const UnsubscribeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -export declare const UnsubscribeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/resources/updated` notification. - */ -export declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -export declare const ResourceUpdatedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Describes an argument that a prompt can accept. - */ -export declare const PromptArgumentSchema: z.ZodObject<{ - name: z.ZodString; - description: z.ZodOptional; - required: z.ZodOptional; -}, z.core.$strip>; -/** - * A prompt or prompt template that the server offers. - */ -export declare const PromptSchema: z.ZodObject<{ - description: z.ZodOptional; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -export declare const ListPromptsRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"prompts/list">; -}, z.core.$strip>; -/** - * The server's response to a prompts/list request from the client. - */ -export declare const ListPromptsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - prompts: z.ZodArray; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * Parameters for a `prompts/get` request. - */ -export declare const GetPromptRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; -}, z.core.$strip>; -/** - * Used by the client to get a prompt provided by the server. - */ -export declare const GetPromptRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Text provided to or from an LLM. - */ -export declare const TextContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * An image provided to or from an LLM. - */ -export declare const ImageContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * An Audio provided to or from an LLM. - */ -export declare const AudioContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * A tool call request from an assistant (LLM). - * Represents the assistant's request to use a tool. - */ -export declare const ToolUseContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * The contents of a resource, embedded into a prompt or tool call result. - */ -export declare const EmbeddedResourceSchema: z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - */ -export declare const ResourceLinkSchema: z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; -}, z.core.$strip>; -/** - * A content block that can be used in prompts and tool results. - */ -export declare const ContentBlockSchema: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Describes a message returned as part of a prompt. - */ -export declare const PromptMessageSchema: z.ZodObject<{ - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$strip>; -/** - * The server's response to a prompts/get request from the client. - */ -export declare const GetPromptResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const PromptListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/prompts/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - */ -export declare const ToolAnnotationsSchema: z.ZodObject<{ - title: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; -}, z.core.$strip>; -/** - * Execution-related properties for a tool. - */ -export declare const ToolExecutionSchema: z.ZodObject<{ - taskSupport: z.ZodOptional>; -}, z.core.$strip>; -/** - * Definition for a tool the client can call. - */ -export declare const ToolSchema: z.ZodObject<{ - description: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of tools the server has. - */ -export declare const ListToolsRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tools/list">; -}, z.core.$strip>; -/** - * The server's response to a tools/list request from the client. - */ -export declare const ListToolsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tools: z.ZodArray; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * The server's response to a tool call. - */ -export declare const CallToolResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>; -/** - * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07. - */ -export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - toolResult: z.ZodUnknown; -}, z.core.$loose>]>; -/** - * Parameters for a `tools/call` request. - */ -export declare const CallToolRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; -}, z.core.$strip>; -/** - * Used by the client to invoke a tool provided by the server. - */ -export declare const CallToolRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ToolListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/tools/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Callback type for list changed notifications. - */ -export type ListChangedCallback = (error: Error | null, items: T[] | null) => void; -/** - * Base schema for list changed subscription options (without callback). - * Used internally for Zod validation of autoRefresh and debounceMs. - */ -export declare const ListChangedOptionsBaseSchema: z.ZodObject<{ - autoRefresh: z.ZodDefault; - debounceMs: z.ZodDefault; -}, z.core.$strip>; -/** - * Options for subscribing to list changed notifications. - * - * @typeParam T - The type of items in the list (Tool, Prompt, or Resource) - */ -export type ListChangedOptions = { - /** - * If true, the list will be refreshed automatically when a list changed notification is received. - * @default true - */ - autoRefresh?: boolean; - /** - * Debounce time in milliseconds. Set to 0 to disable. - * @default 300 - */ - debounceMs?: number; - /** - * Callback invoked when the list changes. - * - * If autoRefresh is true, items contains the updated list. - * If autoRefresh is false, items is null (caller should refresh manually). - */ - onChanged: ListChangedCallback; -}; -/** - * Configuration for list changed notification handlers. - * - * Use this to configure handlers for tools, prompts, and resources list changes - * when creating a client. - * - * Note: Handlers are only activated if the server advertises the corresponding - * `listChanged` capability (e.g., `tools.listChanged: true`). If the server - * doesn't advertise this capability, the handler will not be set up. - */ -export type ListChangedHandlers = { - /** - * Handler for tool list changes. - */ - tools?: ListChangedOptions; - /** - * Handler for prompt list changes. - */ - prompts?: ListChangedOptions; - /** - * Handler for resource list changes. - */ - resources?: ListChangedOptions; -}; -/** - * The severity of a log message. - */ -export declare const LoggingLevelSchema: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; -}>; -/** - * Parameters for a `logging/setLevel` request. - */ -export declare const SetLevelRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; -}, z.core.$strip>; -/** - * A request from the client to the server, to enable or adjust logging. - */ -export declare const SetLevelRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/message` notification. - */ -export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; -}, z.core.$strip>; -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -export declare const LoggingMessageNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Hints to use for model selection. - */ -export declare const ModelHintSchema: z.ZodObject<{ - name: z.ZodOptional; -}, z.core.$strip>; -/** - * The server's preferences for model selection, requested of the client during sampling. - */ -export declare const ModelPreferencesSchema: z.ZodObject<{ - hints: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; -}, z.core.$strip>; -/** - * Controls tool usage behavior in sampling requests. - */ -export declare const ToolChoiceSchema: z.ZodObject<{ - mode: z.ZodOptional>; -}, z.core.$strip>; -/** - * The result of a tool execution, provided by the user (server). - * Represents the outcome of invoking a tool requested via ToolUseContent. - */ -export declare const ToolResultContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Basic content types for sampling responses (without tool use). - * Used for backwards-compatible CreateMessageResult when tools are not used. - */ -export declare const SamplingContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Content block types allowed in sampling messages. - * This includes text, image, audio, tool use requests, and tool results. - */ -export declare const SamplingMessageContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Describes a message issued to or received from an LLM API. - */ -export declare const SamplingMessageSchema: z.ZodObject<{ - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Parameters for a `sampling/createMessage` request. - */ -export declare const CreateMessageRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -export declare const CreateMessageRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The client's response to a sampling/create_message request from the server. - * This is the backwards-compatible version that returns single content (no arrays). - * Used when the request does not include tools. - */ -export declare const CreateMessageResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$loose>; -/** - * The client's response to a sampling/create_message request when tools were provided. - * This version supports array content for tool use flows. - */ -export declare const CreateMessageResultWithToolsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; -}, z.core.$loose>; -/** - * Primitive schema definition for boolean fields. - */ -export declare const BooleanSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Primitive schema definition for string fields. - */ -export declare const StringSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Primitive schema definition for number fields. - */ -export declare const NumberSchemaSchema: z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Schema for single-selection enumeration without display titles for options. - */ -export declare const UntitledSingleSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Schema for single-selection enumeration with display titles for each option. - */ -export declare const TitledSingleSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - */ -export declare const LegacyTitledEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>; -export declare const SingleSelectEnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>; -/** - * Schema for multiple-selection enumeration without display titles for options. - */ -export declare const UntitledMultiSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>; -/** - * Schema for multiple-selection enumeration with display titles for each option. - */ -export declare const TitledMultiSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>; -/** - * Combined schema for multiple-selection enumeration - */ -export declare const MultiSelectEnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Primitive schema definition for enum fields. - */ -export declare const EnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>]>; -/** - * Union of all primitive schema definitions. - */ -export declare const PrimitiveSchemaDefinitionSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>]>; -/** - * Parameters for an `elicitation/create` request for form-based elicitation. - */ -export declare const ElicitRequestFormParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for an `elicitation/create` request for URL-based elicitation. - */ -export declare const ElicitRequestURLParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; -}, z.core.$strip>; -/** - * The parameters for a request to elicit additional information from the user via the client. - */ -export declare const ElicitRequestParamsSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; -}, z.core.$strip>]>; -/** - * A request from the server to elicit user input via the client. - * The client should present the message and form fields to the user (form mode) - * or navigate to a URL (URL mode). - */ -export declare const ElicitRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"elicitation/create">; - params: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; - }, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; - }, z.core.$strip>]>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/elicitation/complete` notification. - * - * @category notifications/elicitation/complete - */ -export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; -}, z.core.$strip>; -/** - * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. - * - * @category notifications/elicitation/complete - */ -export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/elicitation/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The client's response to an elicitation/create request from the server. - */ -export declare const ElicitResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - action: z.ZodEnum<{ - cancel: "cancel"; - accept: "accept"; - decline: "decline"; - }>; - content: z.ZodPipe, z.ZodOptional]>>>>; -}, z.core.$loose>; -/** - * A reference to a resource or resource template definition. - */ -export declare const ResourceTemplateReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; -}, z.core.$strip>; -/** - * @deprecated Use ResourceTemplateReferenceSchema instead - */ -export declare const ResourceReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Identifies a prompt. - */ -export declare const PromptReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - name: z.ZodString; -}, z.core.$strip>; -/** - * Parameters for a `completion/complete` request. - */ -export declare const CompleteRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * A request from the client to the server, to ask for completion options. - */ -export declare const CompleteRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare function assertCompleteRequestPrompt(request: CompleteRequest): asserts request is CompleteRequestPrompt; -export declare function assertCompleteRequestResourceTemplate(request: CompleteRequest): asserts request is CompleteRequestResourceTemplate; -/** - * The server's response to a completion/complete request - */ -export declare const CompleteResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.core.$loose>; -}, z.core.$loose>; -/** - * Represents a root directory or file that the server can operate on. - */ -export declare const RootSchema: z.ZodObject<{ - uri: z.ZodString; - name: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Sent from the server to request a list of root URIs from the client. - */ -export declare const ListRootsRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"roots/list">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * The client's response to a roots/list request from the server. - */ -export declare const ListRootsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - roots: z.ZodArray; - _meta: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * A notification from the client to the server, informing it that the list of roots has changed. - */ -export declare const RootsListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/roots/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const ClientRequestSchema: z.ZodUnion; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"initialize">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"prompts/list">; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/list">; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/templates/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tools/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ClientNotificationSchema: z.ZodUnion; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/initialized">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/roots/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ClientResultSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - action: z.ZodEnum<{ - cancel: "cancel"; - accept: "accept"; - decline: "decline"; - }>; - content: z.ZodPipe, z.ZodOptional]>>>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - roots: z.ZodArray; - _meta: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>]>; -export declare const ServerRequestSchema: z.ZodUnion; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"elicitation/create">; - params: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; - }, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; - }, z.core.$strip>]>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"roots/list">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ServerNotificationSchema: z.ZodUnion; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tools/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/prompts/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/elicitation/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ServerResultSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - serverInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - instructions: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.core.$loose>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - prompts: z.ZodArray; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resources: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resourceTemplates: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - contents: z.ZodArray; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tools: z.ZodArray; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>]>; -export declare class McpError extends Error { - readonly code: number; - readonly data?: unknown; - constructor(code: number, message: string, data?: unknown); - /** - * Factory method to create the appropriate error type based on the error code and data - */ - static fromError(code: number, message: string, data?: unknown): McpError; -} -/** - * Specialized error type when a tool requires a URL mode elicitation. - * This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against. - */ -export declare class UrlElicitationRequiredError extends McpError { - constructor(elicitations: ElicitRequestURLParams[], message?: string); - get elicitations(): ElicitRequestURLParams[]; -} -type Primitive = string | number | boolean | bigint | null | undefined; -type Flatten = T extends Primitive ? T : T extends Array ? Array> : T extends Set ? Set> : T extends Map ? Map, Flatten> : T extends object ? { - [K in keyof T]: Flatten; -} : T; -type Infer = Flatten>; -/** - * Headers that are compatible with both Node.js and the browser. - */ -export type IsomorphicHeaders = Record; -/** - * Information about the incoming request. - */ -export interface RequestInfo { - /** - * The headers of the request. - */ - headers: IsomorphicHeaders; -} -/** - * Extra information about a message. - */ -export interface MessageExtraInfo { - /** - * The request information. - */ - requestInfo?: RequestInfo; - /** - * The authentication information. - */ - authInfo?: AuthInfo; - /** - * Callback to close the SSE stream for this request, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - */ - closeSSEStream?: () => void; - /** - * Callback to close the standalone GET SSE stream, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - */ - closeStandaloneSSEStream?: () => void; -} -export type ProgressToken = Infer; -export type Cursor = Infer; -export type Request = Infer; -export type TaskAugmentedRequestParams = Infer; -export type RequestMeta = Infer; -export type Notification = Infer; -export type Result = Infer; -export type RequestId = Infer; -export type JSONRPCRequest = Infer; -export type JSONRPCNotification = Infer; -export type JSONRPCResponse = Infer; -export type JSONRPCErrorResponse = Infer; -/** - * @deprecated Use {@link JSONRPCErrorResponse} instead. - * - * Please note that spec types have renamed {@link JSONRPCError} to {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCError}) and future versions will remove {@link JSONRPCError}. - */ -export type JSONRPCError = JSONRPCErrorResponse; -export type JSONRPCResultResponse = Infer; -export type JSONRPCMessage = Infer; -export type RequestParams = Infer; -export type NotificationParams = Infer; -export type EmptyResult = Infer; -export type CancelledNotificationParams = Infer; -export type CancelledNotification = Infer; -export type Icon = Infer; -export type Icons = Infer; -export type BaseMetadata = Infer; -export type Annotations = Infer; -export type Role = Infer; -export type Implementation = Infer; -export type ClientCapabilities = Infer; -export type InitializeRequestParams = Infer; -export type InitializeRequest = Infer; -export type ServerCapabilities = Infer; -export type InitializeResult = Infer; -export type InitializedNotification = Infer; -export type PingRequest = Infer; -export type Progress = Infer; -export type ProgressNotificationParams = Infer; -export type ProgressNotification = Infer; -export type Task = Infer; -export type TaskStatus = Infer; -export type TaskCreationParams = Infer; -export type TaskMetadata = Infer; -export type RelatedTaskMetadata = Infer; -export type CreateTaskResult = Infer; -export type TaskStatusNotificationParams = Infer; -export type TaskStatusNotification = Infer; -export type GetTaskRequest = Infer; -export type GetTaskResult = Infer; -export type GetTaskPayloadRequest = Infer; -export type ListTasksRequest = Infer; -export type ListTasksResult = Infer; -export type CancelTaskRequest = Infer; -export type CancelTaskResult = Infer; -export type GetTaskPayloadResult = Infer; -export type PaginatedRequestParams = Infer; -export type PaginatedRequest = Infer; -export type PaginatedResult = Infer; -export type ResourceContents = Infer; -export type TextResourceContents = Infer; -export type BlobResourceContents = Infer; -export type Resource = Infer; -export type ResourceTemplate = Infer; -export type ListResourcesRequest = Infer; -export type ListResourcesResult = Infer; -export type ListResourceTemplatesRequest = Infer; -export type ListResourceTemplatesResult = Infer; -export type ResourceRequestParams = Infer; -export type ReadResourceRequestParams = Infer; -export type ReadResourceRequest = Infer; -export type ReadResourceResult = Infer; -export type ResourceListChangedNotification = Infer; -export type SubscribeRequestParams = Infer; -export type SubscribeRequest = Infer; -export type UnsubscribeRequestParams = Infer; -export type UnsubscribeRequest = Infer; -export type ResourceUpdatedNotificationParams = Infer; -export type ResourceUpdatedNotification = Infer; -export type PromptArgument = Infer; -export type Prompt = Infer; -export type ListPromptsRequest = Infer; -export type ListPromptsResult = Infer; -export type GetPromptRequestParams = Infer; -export type GetPromptRequest = Infer; -export type TextContent = Infer; -export type ImageContent = Infer; -export type AudioContent = Infer; -export type ToolUseContent = Infer; -export type ToolResultContent = Infer; -export type EmbeddedResource = Infer; -export type ResourceLink = Infer; -export type ContentBlock = Infer; -export type PromptMessage = Infer; -export type GetPromptResult = Infer; -export type PromptListChangedNotification = Infer; -export type ToolAnnotations = Infer; -export type ToolExecution = Infer; -export type Tool = Infer; -export type ListToolsRequest = Infer; -export type ListToolsResult = Infer; -export type CallToolRequestParams = Infer; -export type CallToolResult = Infer; -export type CompatibilityCallToolResult = Infer; -export type CallToolRequest = Infer; -export type ToolListChangedNotification = Infer; -export type LoggingLevel = Infer; -export type SetLevelRequestParams = Infer; -export type SetLevelRequest = Infer; -export type LoggingMessageNotificationParams = Infer; -export type LoggingMessageNotification = Infer; -export type ToolChoice = Infer; -export type ModelHint = Infer; -export type ModelPreferences = Infer; -export type SamplingContent = Infer; -export type SamplingMessageContentBlock = Infer; -export type SamplingMessage = Infer; -export type CreateMessageRequestParams = Infer; -export type CreateMessageRequest = Infer; -export type CreateMessageResult = Infer; -export type CreateMessageResultWithTools = Infer; -/** - * CreateMessageRequestParams without tools - for backwards-compatible overload. - * Excludes tools/toolChoice to indicate they should not be provided. - */ -export type CreateMessageRequestParamsBase = Omit; -/** - * CreateMessageRequestParams with required tools - for tool-enabled overload. - */ -export interface CreateMessageRequestParamsWithTools extends CreateMessageRequestParams { - tools: Tool[]; -} -export type BooleanSchema = Infer; -export type StringSchema = Infer; -export type NumberSchema = Infer; -export type EnumSchema = Infer; -export type UntitledSingleSelectEnumSchema = Infer; -export type TitledSingleSelectEnumSchema = Infer; -export type LegacyTitledEnumSchema = Infer; -export type UntitledMultiSelectEnumSchema = Infer; -export type TitledMultiSelectEnumSchema = Infer; -export type SingleSelectEnumSchema = Infer; -export type MultiSelectEnumSchema = Infer; -export type PrimitiveSchemaDefinition = Infer; -export type ElicitRequestParams = Infer; -export type ElicitRequestFormParams = Infer; -export type ElicitRequestURLParams = Infer; -export type ElicitRequest = Infer; -export type ElicitationCompleteNotificationParams = Infer; -export type ElicitationCompleteNotification = Infer; -export type ElicitResult = Infer; -export type ResourceTemplateReference = Infer; -/** - * @deprecated Use ResourceTemplateReference instead - */ -export type ResourceReference = ResourceTemplateReference; -export type PromptReference = Infer; -export type CompleteRequestParams = Infer; -export type CompleteRequest = Infer; -export type CompleteRequestResourceTemplate = ExpandRecursively; -export type CompleteRequestPrompt = ExpandRecursively; -export type CompleteResult = Infer; -export type Root = Infer; -export type ListRootsRequest = Infer; -export type ListRootsResult = Infer; -export type RootsListChangedNotification = Infer; -export type ClientRequest = Infer; -export type ClientNotification = Infer; -export type ClientResult = Infer; -export type ServerRequest = Infer; -export type ServerNotification = Infer; -export type ServerResult = Infer; -export {}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map deleted file mode 100644 index 4745081..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,eAAO,MAAM,uBAAuB,eAAe,CAAC;AACpD,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,2BAA2B,UAAoF,CAAC;AAE7H,eAAO,MAAM,qBAAqB,yCAAyC,CAAC;AAG5E,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAO7H;;GAEG;AACH,eAAO,MAAM,mBAAmB,iDAA0C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,wBAAwB;IACjC;;;OAGG;;IAGH;;OAEG;;iBAEL,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB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AAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js deleted file mode 100644 index 1f4553e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +++ /dev/null @@ -1,2092 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProgressNotificationParamsSchema = exports.ProgressSchema = exports.PingRequestSchema = exports.isInitializedNotification = exports.InitializedNotificationSchema = exports.InitializeResultSchema = exports.ServerCapabilitiesSchema = exports.isInitializeRequest = exports.InitializeRequestSchema = exports.InitializeRequestParamsSchema = exports.ClientCapabilitiesSchema = exports.ServerTasksCapabilitySchema = exports.ClientTasksCapabilitySchema = exports.ImplementationSchema = exports.BaseMetadataSchema = exports.IconsSchema = exports.IconSchema = exports.CancelledNotificationSchema = exports.CancelledNotificationParamsSchema = exports.EmptyResultSchema = exports.JSONRPCResponseSchema = exports.JSONRPCMessageSchema = exports.isJSONRPCError = exports.isJSONRPCErrorResponse = exports.JSONRPCErrorSchema = exports.JSONRPCErrorResponseSchema = exports.ErrorCode = exports.isJSONRPCResponse = exports.isJSONRPCResultResponse = exports.JSONRPCResultResponseSchema = exports.isJSONRPCNotification = exports.JSONRPCNotificationSchema = exports.isJSONRPCRequest = exports.JSONRPCRequestSchema = exports.RequestIdSchema = exports.ResultSchema = exports.NotificationSchema = exports.RequestSchema = exports.isTaskAugmentedRequestParams = exports.TaskAugmentedRequestParamsSchema = exports.RelatedTaskMetadataSchema = exports.TaskMetadataSchema = exports.TaskCreationParamsSchema = exports.CursorSchema = exports.ProgressTokenSchema = exports.JSONRPC_VERSION = exports.RELATED_TASK_META_KEY = exports.SUPPORTED_PROTOCOL_VERSIONS = exports.DEFAULT_NEGOTIATED_PROTOCOL_VERSION = exports.LATEST_PROTOCOL_VERSION = void 0; -exports.EmbeddedResourceSchema = exports.ToolUseContentSchema = exports.AudioContentSchema = exports.ImageContentSchema = exports.TextContentSchema = exports.GetPromptRequestSchema = exports.GetPromptRequestParamsSchema = exports.ListPromptsResultSchema = exports.ListPromptsRequestSchema = exports.PromptSchema = exports.PromptArgumentSchema = exports.ResourceUpdatedNotificationSchema = exports.ResourceUpdatedNotificationParamsSchema = exports.UnsubscribeRequestSchema = exports.UnsubscribeRequestParamsSchema = exports.SubscribeRequestSchema = exports.SubscribeRequestParamsSchema = exports.ResourceListChangedNotificationSchema = exports.ReadResourceResultSchema = exports.ReadResourceRequestSchema = exports.ReadResourceRequestParamsSchema = exports.ResourceRequestParamsSchema = exports.ListResourceTemplatesResultSchema = exports.ListResourceTemplatesRequestSchema = exports.ListResourcesResultSchema = exports.ListResourcesRequestSchema = exports.ResourceTemplateSchema = exports.ResourceSchema = exports.AnnotationsSchema = exports.RoleSchema = exports.BlobResourceContentsSchema = exports.TextResourceContentsSchema = exports.ResourceContentsSchema = exports.CancelTaskResultSchema = exports.CancelTaskRequestSchema = exports.ListTasksResultSchema = exports.ListTasksRequestSchema = exports.GetTaskPayloadResultSchema = exports.GetTaskPayloadRequestSchema = exports.GetTaskResultSchema = exports.GetTaskRequestSchema = exports.TaskStatusNotificationSchema = exports.TaskStatusNotificationParamsSchema = exports.CreateTaskResultSchema = exports.TaskSchema = exports.TaskStatusSchema = exports.PaginatedResultSchema = exports.PaginatedRequestSchema = exports.PaginatedRequestParamsSchema = exports.ProgressNotificationSchema = void 0; -exports.ElicitationCompleteNotificationSchema = exports.ElicitationCompleteNotificationParamsSchema = exports.ElicitRequestSchema = exports.ElicitRequestParamsSchema = exports.ElicitRequestURLParamsSchema = exports.ElicitRequestFormParamsSchema = exports.PrimitiveSchemaDefinitionSchema = exports.EnumSchemaSchema = exports.MultiSelectEnumSchemaSchema = exports.TitledMultiSelectEnumSchemaSchema = exports.UntitledMultiSelectEnumSchemaSchema = exports.SingleSelectEnumSchemaSchema = exports.LegacyTitledEnumSchemaSchema = exports.TitledSingleSelectEnumSchemaSchema = exports.UntitledSingleSelectEnumSchemaSchema = exports.NumberSchemaSchema = exports.StringSchemaSchema = exports.BooleanSchemaSchema = exports.CreateMessageResultWithToolsSchema = exports.CreateMessageResultSchema = exports.CreateMessageRequestSchema = exports.CreateMessageRequestParamsSchema = exports.SamplingMessageSchema = exports.SamplingMessageContentBlockSchema = exports.SamplingContentSchema = exports.ToolResultContentSchema = exports.ToolChoiceSchema = exports.ModelPreferencesSchema = exports.ModelHintSchema = exports.LoggingMessageNotificationSchema = exports.LoggingMessageNotificationParamsSchema = exports.SetLevelRequestSchema = exports.SetLevelRequestParamsSchema = exports.LoggingLevelSchema = exports.ListChangedOptionsBaseSchema = exports.ToolListChangedNotificationSchema = exports.CallToolRequestSchema = exports.CallToolRequestParamsSchema = exports.CompatibilityCallToolResultSchema = exports.CallToolResultSchema = exports.ListToolsResultSchema = exports.ListToolsRequestSchema = exports.ToolSchema = exports.ToolExecutionSchema = exports.ToolAnnotationsSchema = exports.PromptListChangedNotificationSchema = exports.GetPromptResultSchema = exports.PromptMessageSchema = exports.ContentBlockSchema = exports.ResourceLinkSchema = void 0; -exports.UrlElicitationRequiredError = exports.McpError = exports.ServerResultSchema = exports.ServerNotificationSchema = exports.ServerRequestSchema = exports.ClientResultSchema = exports.ClientNotificationSchema = exports.ClientRequestSchema = exports.RootsListChangedNotificationSchema = exports.ListRootsResultSchema = exports.ListRootsRequestSchema = exports.RootSchema = exports.CompleteResultSchema = exports.CompleteRequestSchema = exports.CompleteRequestParamsSchema = exports.PromptReferenceSchema = exports.ResourceReferenceSchema = exports.ResourceTemplateReferenceSchema = exports.ElicitResultSchema = void 0; -exports.assertCompleteRequestPrompt = assertCompleteRequestPrompt; -exports.assertCompleteRequestResourceTemplate = assertCompleteRequestResourceTemplate; -const z = __importStar(require("zod/v4")); -exports.LATEST_PROTOCOL_VERSION = '2025-11-25'; -exports.DEFAULT_NEGOTIATED_PROTOCOL_VERSION = '2025-03-26'; -exports.SUPPORTED_PROTOCOL_VERSIONS = [exports.LATEST_PROTOCOL_VERSION, '2025-06-18', '2025-03-26', '2024-11-05', '2024-10-07']; -exports.RELATED_TASK_META_KEY = 'io.modelcontextprotocol/related-task'; -/* JSON-RPC types */ -exports.JSONRPC_VERSION = '2.0'; -/** - * Assert 'object' type schema. - * - * @internal - */ -const AssertObjectSchema = z.custom((v) => v !== null && (typeof v === 'object' || typeof v === 'function')); -/** - * A progress token, used to associate progress notifications with the original request. - */ -exports.ProgressTokenSchema = z.union([z.string(), z.number().int()]); -/** - * An opaque token used to represent a cursor for pagination. - */ -exports.CursorSchema = z.string(); -/** - * Task creation parameters, used to ask that the server create a task to represent a request. - */ -exports.TaskCreationParamsSchema = z.looseObject({ - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.union([z.number(), z.null()]).optional(), - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval: z.number().optional() -}); -exports.TaskMetadataSchema = z.object({ - ttl: z.number().optional() -}); -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - */ -exports.RelatedTaskMetadataSchema = z.object({ - taskId: z.string() -}); -const RequestMetaSchema = z.looseObject({ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: exports.ProgressTokenSchema.optional(), - /** - * If specified, this request is related to the provided task. - */ - [exports.RELATED_TASK_META_KEY]: exports.RelatedTaskMetadataSchema.optional() -}); -/** - * Common params for any request. - */ -const BaseRequestParamsSchema = z.object({ - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta: RequestMetaSchema.optional() -}); -/** - * Common params for any task-augmented request. - */ -exports.TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * If specified, the caller is requesting task-augmented execution for this request. - * The request will return a CreateTaskResult immediately, and the actual result can be - * retrieved later via tasks/result. - * - * Task augmentation is subject to capability negotiation - receivers MUST declare support - * for task augmentation of specific request types in their capabilities. - */ - task: exports.TaskMetadataSchema.optional() -}); -/** - * Checks if a value is a valid TaskAugmentedRequestParams. - * @param value - The value to check. - * - * @returns True if the value is a valid TaskAugmentedRequestParams, false otherwise. - */ -const isTaskAugmentedRequestParams = (value) => exports.TaskAugmentedRequestParamsSchema.safeParse(value).success; -exports.isTaskAugmentedRequestParams = isTaskAugmentedRequestParams; -exports.RequestSchema = z.object({ - method: z.string(), - params: BaseRequestParamsSchema.loose().optional() -}); -const NotificationsParamsSchema = z.object({ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: RequestMetaSchema.optional() -}); -exports.NotificationSchema = z.object({ - method: z.string(), - params: NotificationsParamsSchema.loose().optional() -}); -exports.ResultSchema = z.looseObject({ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: RequestMetaSchema.optional() -}); -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -exports.RequestIdSchema = z.union([z.string(), z.number().int()]); -/** - * A request that expects a response. - */ -exports.JSONRPCRequestSchema = z - .object({ - jsonrpc: z.literal(exports.JSONRPC_VERSION), - id: exports.RequestIdSchema, - ...exports.RequestSchema.shape -}) - .strict(); -const isJSONRPCRequest = (value) => exports.JSONRPCRequestSchema.safeParse(value).success; -exports.isJSONRPCRequest = isJSONRPCRequest; -/** - * A notification which does not expect a response. - */ -exports.JSONRPCNotificationSchema = z - .object({ - jsonrpc: z.literal(exports.JSONRPC_VERSION), - ...exports.NotificationSchema.shape -}) - .strict(); -const isJSONRPCNotification = (value) => exports.JSONRPCNotificationSchema.safeParse(value).success; -exports.isJSONRPCNotification = isJSONRPCNotification; -/** - * A successful (non-error) response to a request. - */ -exports.JSONRPCResultResponseSchema = z - .object({ - jsonrpc: z.literal(exports.JSONRPC_VERSION), - id: exports.RequestIdSchema, - result: exports.ResultSchema -}) - .strict(); -/** - * Checks if a value is a valid JSONRPCResultResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCResultResponse, false otherwise. - */ -const isJSONRPCResultResponse = (value) => exports.JSONRPCResultResponseSchema.safeParse(value).success; -exports.isJSONRPCResultResponse = isJSONRPCResultResponse; -/** - * @deprecated Use {@link isJSONRPCResultResponse} instead. - * - * Please note that {@link JSONRPCResponse} is a union of {@link JSONRPCResultResponse} and {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCResultResponse}) - */ -exports.isJSONRPCResponse = exports.isJSONRPCResultResponse; -/** - * Error codes defined by the JSON-RPC specification. - */ -var ErrorCode; -(function (ErrorCode) { - // SDK error codes - ErrorCode[ErrorCode["ConnectionClosed"] = -32000] = "ConnectionClosed"; - ErrorCode[ErrorCode["RequestTimeout"] = -32001] = "RequestTimeout"; - // Standard JSON-RPC error codes - ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError"; - ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest"; - ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound"; - ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams"; - ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError"; - // MCP-specific error codes - ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired"; -})(ErrorCode || (exports.ErrorCode = ErrorCode = {})); -/** - * A response to a request that indicates an error occurred. - */ -exports.JSONRPCErrorResponseSchema = z - .object({ - jsonrpc: z.literal(exports.JSONRPC_VERSION), - id: exports.RequestIdSchema.optional(), - error: z.object({ - /** - * The error type that occurred. - */ - code: z.number().int(), - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: z.string(), - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data: z.unknown().optional() - }) -}) - .strict(); -/** - * @deprecated Use {@link JSONRPCErrorResponseSchema} instead. - */ -exports.JSONRPCErrorSchema = exports.JSONRPCErrorResponseSchema; -/** - * Checks if a value is a valid JSONRPCErrorResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCErrorResponse, false otherwise. - */ -const isJSONRPCErrorResponse = (value) => exports.JSONRPCErrorResponseSchema.safeParse(value).success; -exports.isJSONRPCErrorResponse = isJSONRPCErrorResponse; -/** - * @deprecated Use {@link isJSONRPCErrorResponse} instead. - */ -exports.isJSONRPCError = exports.isJSONRPCErrorResponse; -exports.JSONRPCMessageSchema = z.union([ - exports.JSONRPCRequestSchema, - exports.JSONRPCNotificationSchema, - exports.JSONRPCResultResponseSchema, - exports.JSONRPCErrorResponseSchema -]); -exports.JSONRPCResponseSchema = z.union([exports.JSONRPCResultResponseSchema, exports.JSONRPCErrorResponseSchema]); -/* Empty result */ -/** - * A response that indicates success but carries no data. - */ -exports.EmptyResultSchema = exports.ResultSchema.strict(); -exports.CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The ID of the request to cancel. - * - * This MUST correspond to the ID of a request previously issued in the same direction. - */ - requestId: exports.RequestIdSchema.optional(), - /** - * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. - */ - reason: z.string().optional() -}); -/* Cancellation */ -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - */ -exports.CancelledNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/cancelled'), - params: exports.CancelledNotificationParamsSchema -}); -/* Base Metadata */ -/** - * Icon schema for use in tools, prompts, resources, and implementations. - */ -exports.IconSchema = z.object({ - /** - * URL or data URI for the icon. - */ - src: z.string(), - /** - * Optional MIME type for the icon. - */ - mimeType: z.string().optional(), - /** - * Optional array of strings that specify sizes at which the icon can be used. - * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. - * - * If not provided, the client should assume that the icon can be used at any size. - */ - sizes: z.array(z.string()).optional(), - /** - * Optional specifier for the theme this icon is designed for. `light` indicates - * the icon is designed to be used with a light background, and `dark` indicates - * the icon is designed to be used with a dark background. - * - * If not provided, the client should assume the icon can be used with any theme. - */ - theme: z.enum(['light', 'dark']).optional() -}); -/** - * Base schema to add `icons` property. - * - */ -exports.IconsSchema = z.object({ - /** - * Optional set of sized icons that the client can display in a user interface. - * - * Clients that support rendering icons MUST support at least the following MIME types: - * - `image/png` - PNG images (safe, universal compatibility) - * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) - * - * Clients that support rendering icons SHOULD also support: - * - `image/svg+xml` - SVG images (scalable but requires security precautions) - * - `image/webp` - WebP images (modern, efficient format) - */ - icons: z.array(exports.IconSchema).optional() -}); -/** - * Base metadata interface for common properties across resources, tools, prompts, and implementations. - */ -exports.BaseMetadataSchema = z.object({ - /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */ - name: z.string(), - /** - * Intended for UI and end-user contexts — optimized to be human-readable and easily understood, - * even by those unfamiliar with domain-specific terminology. - * - * If not provided, the name should be used for display (except for Tool, - * where `annotations.title` should be given precedence over using `name`, - * if present). - */ - title: z.string().optional() -}); -/* Initialization */ -/** - * Describes the name and version of an MCP implementation. - */ -exports.ImplementationSchema = exports.BaseMetadataSchema.extend({ - ...exports.BaseMetadataSchema.shape, - ...exports.IconsSchema.shape, - version: z.string(), - /** - * An optional URL of the website for this implementation. - */ - websiteUrl: z.string().optional(), - /** - * An optional human-readable description of what this implementation does. - * - * This can be used by clients or servers to provide context about their purpose - * and capabilities. For example, a server might describe the types of resources - * or tools it provides, while a client might describe its intended use case. - */ - description: z.string().optional() -}); -const FormElicitationCapabilitySchema = z.intersection(z.object({ - applyDefaults: z.boolean().optional() -}), z.record(z.string(), z.unknown())); -const ElicitationCapabilitySchema = z.preprocess(value => { - if (value && typeof value === 'object' && !Array.isArray(value)) { - if (Object.keys(value).length === 0) { - return { form: {} }; - } - } - return value; -}, z.intersection(z.object({ - form: FormElicitationCapabilitySchema.optional(), - url: AssertObjectSchema.optional() -}), z.record(z.string(), z.unknown()).optional())); -/** - * Task capabilities for clients, indicating which request types support task creation. - */ -exports.ClientTasksCapabilitySchema = z.looseObject({ - /** - * Present if the client supports listing tasks. - */ - list: AssertObjectSchema.optional(), - /** - * Present if the client supports cancelling tasks. - */ - cancel: AssertObjectSchema.optional(), - /** - * Capabilities for task creation on specific request types. - */ - requests: z - .looseObject({ - /** - * Task support for sampling requests. - */ - sampling: z - .looseObject({ - createMessage: AssertObjectSchema.optional() - }) - .optional(), - /** - * Task support for elicitation requests. - */ - elicitation: z - .looseObject({ - create: AssertObjectSchema.optional() - }) - .optional() - }) - .optional() -}); -/** - * Task capabilities for servers, indicating which request types support task creation. - */ -exports.ServerTasksCapabilitySchema = z.looseObject({ - /** - * Present if the server supports listing tasks. - */ - list: AssertObjectSchema.optional(), - /** - * Present if the server supports cancelling tasks. - */ - cancel: AssertObjectSchema.optional(), - /** - * Capabilities for task creation on specific request types. - */ - requests: z - .looseObject({ - /** - * Task support for tool requests. - */ - tools: z - .looseObject({ - call: AssertObjectSchema.optional() - }) - .optional() - }) - .optional() -}); -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -exports.ClientCapabilitiesSchema = z.object({ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.record(z.string(), AssertObjectSchema).optional(), - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z - .object({ - /** - * Present if the client supports context inclusion via includeContext parameter. - * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it). - */ - context: AssertObjectSchema.optional(), - /** - * Present if the client supports tool use via tools and toolChoice parameters. - */ - tools: AssertObjectSchema.optional() - }) - .optional(), - /** - * Present if the client supports eliciting user input. - */ - elicitation: ElicitationCapabilitySchema.optional(), - /** - * Present if the client supports listing roots. - */ - roots: z - .object({ - /** - * Whether the client supports issuing notifications for changes to the roots list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the client supports task creation. - */ - tasks: exports.ClientTasksCapabilitySchema.optional() -}); -exports.InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.string(), - capabilities: exports.ClientCapabilitiesSchema, - clientInfo: exports.ImplementationSchema -}); -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -exports.InitializeRequestSchema = exports.RequestSchema.extend({ - method: z.literal('initialize'), - params: exports.InitializeRequestParamsSchema -}); -const isInitializeRequest = (value) => exports.InitializeRequestSchema.safeParse(value).success; -exports.isInitializeRequest = isInitializeRequest; -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -exports.ServerCapabilitiesSchema = z.object({ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.record(z.string(), AssertObjectSchema).optional(), - /** - * Present if the server supports sending log messages to the client. - */ - logging: AssertObjectSchema.optional(), - /** - * Present if the server supports sending completions to the client. - */ - completions: AssertObjectSchema.optional(), - /** - * Present if the server offers any prompt templates. - */ - prompts: z - .object({ - /** - * Whether this server supports issuing notifications for changes to the prompt list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server offers any resources to read. - */ - resources: z - .object({ - /** - * Whether this server supports clients subscribing to resource updates. - */ - subscribe: z.boolean().optional(), - /** - * Whether this server supports issuing notifications for changes to the resource list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server offers any tools to call. - */ - tools: z - .object({ - /** - * Whether this server supports issuing notifications for changes to the tool list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server supports task creation. - */ - tasks: exports.ServerTasksCapabilitySchema.optional() -}); -/** - * After receiving an initialize request from the client, the server sends this response. - */ -exports.InitializeResultSchema = exports.ResultSchema.extend({ - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.string(), - capabilities: exports.ServerCapabilitiesSchema, - serverInfo: exports.ImplementationSchema, - /** - * Instructions describing how to use the server and its features. - * - * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. - */ - instructions: z.string().optional() -}); -/** - * This notification is sent from the client to the server after initialization has finished. - */ -exports.InitializedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/initialized'), - params: NotificationsParamsSchema.optional() -}); -const isInitializedNotification = (value) => exports.InitializedNotificationSchema.safeParse(value).success; -exports.isInitializedNotification = isInitializedNotification; -/* Ping */ -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -exports.PingRequestSchema = exports.RequestSchema.extend({ - method: z.literal('ping'), - params: BaseRequestParamsSchema.optional() -}); -/* Progress notifications */ -exports.ProgressSchema = z.object({ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.number(), - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.optional(z.number()), - /** - * An optional message describing the current progress. - */ - message: z.optional(z.string()) -}); -exports.ProgressNotificationParamsSchema = z.object({ - ...NotificationsParamsSchema.shape, - ...exports.ProgressSchema.shape, - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: exports.ProgressTokenSchema -}); -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category notifications/progress - */ -exports.ProgressNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/progress'), - params: exports.ProgressNotificationParamsSchema -}); -exports.PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: exports.CursorSchema.optional() -}); -/* Pagination */ -exports.PaginatedRequestSchema = exports.RequestSchema.extend({ - params: exports.PaginatedRequestParamsSchema.optional() -}); -exports.PaginatedResultSchema = exports.ResultSchema.extend({ - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: exports.CursorSchema.optional() -}); -/** - * The status of a task. - * */ -exports.TaskStatusSchema = z.enum(['working', 'input_required', 'completed', 'failed', 'cancelled']); -/* Tasks */ -/** - * A pollable state object associated with a request. - */ -exports.TaskSchema = z.object({ - taskId: z.string(), - status: exports.TaskStatusSchema, - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.union([z.number(), z.null()]), - /** - * ISO 8601 timestamp when the task was created. - */ - createdAt: z.string(), - /** - * ISO 8601 timestamp when the task was last updated. - */ - lastUpdatedAt: z.string(), - pollInterval: z.optional(z.number()), - /** - * Optional diagnostic message for failed tasks or other status information. - */ - statusMessage: z.optional(z.string()) -}); -/** - * Result returned when a task is created, containing the task data wrapped in a task field. - */ -exports.CreateTaskResultSchema = exports.ResultSchema.extend({ - task: exports.TaskSchema -}); -/** - * Parameters for task status notification. - */ -exports.TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(exports.TaskSchema); -/** - * A notification sent when a task's status changes. - */ -exports.TaskStatusNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/tasks/status'), - params: exports.TaskStatusNotificationParamsSchema -}); -/** - * A request to get the state of a specific task. - */ -exports.GetTaskRequestSchema = exports.RequestSchema.extend({ - method: z.literal('tasks/get'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/get request. - */ -exports.GetTaskResultSchema = exports.ResultSchema.merge(exports.TaskSchema); -/** - * A request to get the result of a specific task. - */ -exports.GetTaskPayloadRequestSchema = exports.RequestSchema.extend({ - method: z.literal('tasks/result'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - */ -exports.GetTaskPayloadResultSchema = exports.ResultSchema.loose(); -/** - * A request to list tasks. - */ -exports.ListTasksRequestSchema = exports.PaginatedRequestSchema.extend({ - method: z.literal('tasks/list') -}); -/** - * The response to a tasks/list request. - */ -exports.ListTasksResultSchema = exports.PaginatedResultSchema.extend({ - tasks: z.array(exports.TaskSchema) -}); -/** - * A request to cancel a specific task. - */ -exports.CancelTaskRequestSchema = exports.RequestSchema.extend({ - method: z.literal('tasks/cancel'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/cancel request. - */ -exports.CancelTaskResultSchema = exports.ResultSchema.merge(exports.TaskSchema); -/* Resources */ -/** - * The contents of a specific resource or sub-resource. - */ -exports.ResourceContentsSchema = z.object({ - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -exports.TextResourceContentsSchema = exports.ResourceContentsSchema.extend({ - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.string() -}); -/** - * A Zod schema for validating Base64 strings that is more performant and - * robust for very large inputs than the default regex-based check. It avoids - * stack overflows by using the native `atob` function for validation. - */ -const Base64Schema = z.string().refine(val => { - try { - // atob throws a DOMException if the string contains characters - // that are not part of the Base64 character set. - atob(val); - return true; - } - catch { - return false; - } -}, { message: 'Invalid Base64 string' }); -exports.BlobResourceContentsSchema = exports.ResourceContentsSchema.extend({ - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: Base64Schema -}); -/** - * The sender or recipient of messages and data in a conversation. - */ -exports.RoleSchema = z.enum(['user', 'assistant']); -/** - * Optional annotations providing clients additional context about a resource. - */ -exports.AnnotationsSchema = z.object({ - /** - * Intended audience(s) for the resource. - */ - audience: z.array(exports.RoleSchema).optional(), - /** - * Importance hint for the resource, from 0 (least) to 1 (most). - */ - priority: z.number().min(0).max(1).optional(), - /** - * ISO 8601 timestamp for the most recent modification. - */ - lastModified: z.iso.datetime({ offset: true }).optional() -}); -/** - * A known resource that the server is capable of reading. - */ -exports.ResourceSchema = z.object({ - ...exports.BaseMetadataSchema.shape, - ...exports.IconsSchema.shape, - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * A template description for resources available on the server. - */ -exports.ResourceTemplateSchema = z.object({ - ...exports.BaseMetadataSchema.shape, - ...exports.IconsSchema.shape, - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.string(), - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.optional(z.string()), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * Sent from the client to request a list of resources the server has. - */ -exports.ListResourcesRequestSchema = exports.PaginatedRequestSchema.extend({ - method: z.literal('resources/list') -}); -/** - * The server's response to a resources/list request from the client. - */ -exports.ListResourcesResultSchema = exports.PaginatedResultSchema.extend({ - resources: z.array(exports.ResourceSchema) -}); -/** - * Sent from the client to request a list of resource templates the server has. - */ -exports.ListResourceTemplatesRequestSchema = exports.PaginatedRequestSchema.extend({ - method: z.literal('resources/templates/list') -}); -/** - * The server's response to a resources/templates/list request from the client. - */ -exports.ListResourceTemplatesResultSchema = exports.PaginatedResultSchema.extend({ - resourceTemplates: z.array(exports.ResourceTemplateSchema) -}); -exports.ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - * - * @format uri - */ - uri: z.string() -}); -/** - * Parameters for a `resources/read` request. - */ -exports.ReadResourceRequestParamsSchema = exports.ResourceRequestParamsSchema; -/** - * Sent from the client to the server, to read a specific resource URI. - */ -exports.ReadResourceRequestSchema = exports.RequestSchema.extend({ - method: z.literal('resources/read'), - params: exports.ReadResourceRequestParamsSchema -}); -/** - * The server's response to a resources/read request from the client. - */ -exports.ReadResourceResultSchema = exports.ResultSchema.extend({ - contents: z.array(z.union([exports.TextResourceContentsSchema, exports.BlobResourceContentsSchema])) -}); -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -exports.ResourceListChangedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/resources/list_changed'), - params: NotificationsParamsSchema.optional() -}); -exports.SubscribeRequestParamsSchema = exports.ResourceRequestParamsSchema; -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -exports.SubscribeRequestSchema = exports.RequestSchema.extend({ - method: z.literal('resources/subscribe'), - params: exports.SubscribeRequestParamsSchema -}); -exports.UnsubscribeRequestParamsSchema = exports.ResourceRequestParamsSchema; -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -exports.UnsubscribeRequestSchema = exports.RequestSchema.extend({ - method: z.literal('resources/unsubscribe'), - params: exports.UnsubscribeRequestParamsSchema -}); -/** - * Parameters for a `notifications/resources/updated` notification. - */ -exports.ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.string() -}); -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -exports.ResourceUpdatedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/resources/updated'), - params: exports.ResourceUpdatedNotificationParamsSchema -}); -/* Prompts */ -/** - * Describes an argument that a prompt can accept. - */ -exports.PromptArgumentSchema = z.object({ - /** - * The name of the argument. - */ - name: z.string(), - /** - * A human-readable description of the argument. - */ - description: z.optional(z.string()), - /** - * Whether this argument must be provided. - */ - required: z.optional(z.boolean()) -}); -/** - * A prompt or prompt template that the server offers. - */ -exports.PromptSchema = z.object({ - ...exports.BaseMetadataSchema.shape, - ...exports.IconsSchema.shape, - /** - * An optional description of what this prompt provides - */ - description: z.optional(z.string()), - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.optional(z.array(exports.PromptArgumentSchema)), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -exports.ListPromptsRequestSchema = exports.PaginatedRequestSchema.extend({ - method: z.literal('prompts/list') -}); -/** - * The server's response to a prompts/list request from the client. - */ -exports.ListPromptsResultSchema = exports.PaginatedResultSchema.extend({ - prompts: z.array(exports.PromptSchema) -}); -/** - * Parameters for a `prompts/get` request. - */ -exports.GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The name of the prompt or prompt template. - */ - name: z.string(), - /** - * Arguments to use for templating the prompt. - */ - arguments: z.record(z.string(), z.string()).optional() -}); -/** - * Used by the client to get a prompt provided by the server. - */ -exports.GetPromptRequestSchema = exports.RequestSchema.extend({ - method: z.literal('prompts/get'), - params: exports.GetPromptRequestParamsSchema -}); -/** - * Text provided to or from an LLM. - */ -exports.TextContentSchema = z.object({ - type: z.literal('text'), - /** - * The text content of the message. - */ - text: z.string(), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * An image provided to or from an LLM. - */ -exports.ImageContentSchema = z.object({ - type: z.literal('image'), - /** - * The base64-encoded image data. - */ - data: Base64Schema, - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.string(), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * An Audio provided to or from an LLM. - */ -exports.AudioContentSchema = z.object({ - type: z.literal('audio'), - /** - * The base64-encoded audio data. - */ - data: Base64Schema, - /** - * The MIME type of the audio. Different providers may support different audio types. - */ - mimeType: z.string(), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * A tool call request from an assistant (LLM). - * Represents the assistant's request to use a tool. - */ -exports.ToolUseContentSchema = z.object({ - type: z.literal('tool_use'), - /** - * The name of the tool to invoke. - * Must match a tool name from the request's tools array. - */ - name: z.string(), - /** - * Unique identifier for this tool call. - * Used to correlate with ToolResultContent in subsequent messages. - */ - id: z.string(), - /** - * Arguments to pass to the tool. - * Must conform to the tool's inputSchema. - */ - input: z.record(z.string(), z.unknown()), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * The contents of a resource, embedded into a prompt or tool call result. - */ -exports.EmbeddedResourceSchema = z.object({ - type: z.literal('resource'), - resource: z.union([exports.TextResourceContentsSchema, exports.BlobResourceContentsSchema]), - /** - * Optional annotations for the client. - */ - annotations: exports.AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - */ -exports.ResourceLinkSchema = exports.ResourceSchema.extend({ - type: z.literal('resource_link') -}); -/** - * A content block that can be used in prompts and tool results. - */ -exports.ContentBlockSchema = z.union([ - exports.TextContentSchema, - exports.ImageContentSchema, - exports.AudioContentSchema, - exports.ResourceLinkSchema, - exports.EmbeddedResourceSchema -]); -/** - * Describes a message returned as part of a prompt. - */ -exports.PromptMessageSchema = z.object({ - role: exports.RoleSchema, - content: exports.ContentBlockSchema -}); -/** - * The server's response to a prompts/get request from the client. - */ -exports.GetPromptResultSchema = exports.ResultSchema.extend({ - /** - * An optional description for the prompt. - */ - description: z.string().optional(), - messages: z.array(exports.PromptMessageSchema) -}); -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -exports.PromptListChangedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/prompts/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/* Tools */ -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - */ -exports.ToolAnnotationsSchema = z.object({ - /** - * A human-readable title for the tool. - */ - title: z.string().optional(), - /** - * If true, the tool does not modify its environment. - * - * Default: false - */ - readOnlyHint: z.boolean().optional(), - /** - * If true, the tool may perform destructive updates to its environment. - * If false, the tool performs only additive updates. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: true - */ - destructiveHint: z.boolean().optional(), - /** - * If true, calling the tool repeatedly with the same arguments - * will have no additional effect on the its environment. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: false - */ - idempotentHint: z.boolean().optional(), - /** - * If true, this tool may interact with an "open world" of external - * entities. If false, the tool's domain of interaction is closed. - * For example, the world of a web search tool is open, whereas that - * of a memory tool is not. - * - * Default: true - */ - openWorldHint: z.boolean().optional() -}); -/** - * Execution-related properties for a tool. - */ -exports.ToolExecutionSchema = z.object({ - /** - * Indicates the tool's preference for task-augmented execution. - * - "required": Clients MUST invoke the tool as a task - * - "optional": Clients MAY invoke the tool as a task or normal request - * - "forbidden": Clients MUST NOT attempt to invoke the tool as a task - * - * If not present, defaults to "forbidden". - */ - taskSupport: z.enum(['required', 'optional', 'forbidden']).optional() -}); -/** - * Definition for a tool the client can call. - */ -exports.ToolSchema = z.object({ - ...exports.BaseMetadataSchema.shape, - ...exports.IconsSchema.shape, - /** - * A human-readable description of the tool. - */ - description: z.string().optional(), - /** - * A JSON Schema 2020-12 object defining the expected parameters for the tool. - * Must have type: 'object' at the root level per MCP spec. - */ - inputSchema: z - .object({ - type: z.literal('object'), - properties: z.record(z.string(), AssertObjectSchema).optional(), - required: z.array(z.string()).optional() - }) - .catchall(z.unknown()), - /** - * An optional JSON Schema 2020-12 object defining the structure of the tool's output - * returned in the structuredContent field of a CallToolResult. - * Must have type: 'object' at the root level per MCP spec. - */ - outputSchema: z - .object({ - type: z.literal('object'), - properties: z.record(z.string(), AssertObjectSchema).optional(), - required: z.array(z.string()).optional() - }) - .catchall(z.unknown()) - .optional(), - /** - * Optional additional tool information. - */ - annotations: exports.ToolAnnotationsSchema.optional(), - /** - * Execution-related properties for this tool. - */ - execution: exports.ToolExecutionSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Sent from the client to request a list of tools the server has. - */ -exports.ListToolsRequestSchema = exports.PaginatedRequestSchema.extend({ - method: z.literal('tools/list') -}); -/** - * The server's response to a tools/list request from the client. - */ -exports.ListToolsResultSchema = exports.PaginatedResultSchema.extend({ - tools: z.array(exports.ToolSchema) -}); -/** - * The server's response to a tool call. - */ -exports.CallToolResultSchema = exports.ResultSchema.extend({ - /** - * A list of content objects that represent the result of the tool call. - * - * If the Tool does not define an outputSchema, this field MUST be present in the result. - * For backwards compatibility, this field is always present, but it may be empty. - */ - content: z.array(exports.ContentBlockSchema).default([]), - /** - * An object containing structured tool output. - * - * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. - */ - structuredContent: z.record(z.string(), z.unknown()).optional(), - /** - * Whether the tool call ended in an error. - * - * If not set, this is assumed to be false (the call was successful). - * - * Any errors that originate from the tool SHOULD be reported inside the result - * object, with `isError` set to true, _not_ as an MCP protocol-level error - * response. Otherwise, the LLM would not be able to see that an error occurred - * and self-correct. - * - * However, any errors in _finding_ the tool, an error indicating that the - * server does not support tool calls, or any other exceptional conditions, - * should be reported as an MCP error response. - */ - isError: z.boolean().optional() -}); -/** - * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07. - */ -exports.CompatibilityCallToolResultSchema = exports.CallToolResultSchema.or(exports.ResultSchema.extend({ - toolResult: z.unknown() -})); -/** - * Parameters for a `tools/call` request. - */ -exports.CallToolRequestParamsSchema = exports.TaskAugmentedRequestParamsSchema.extend({ - /** - * The name of the tool to call. - */ - name: z.string(), - /** - * Arguments to pass to the tool. - */ - arguments: z.record(z.string(), z.unknown()).optional() -}); -/** - * Used by the client to invoke a tool provided by the server. - */ -exports.CallToolRequestSchema = exports.RequestSchema.extend({ - method: z.literal('tools/call'), - params: exports.CallToolRequestParamsSchema -}); -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -exports.ToolListChangedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/tools/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/** - * Base schema for list changed subscription options (without callback). - * Used internally for Zod validation of autoRefresh and debounceMs. - */ -exports.ListChangedOptionsBaseSchema = z.object({ - /** - * If true, the list will be refreshed automatically when a list changed notification is received. - * The callback will be called with the updated list. - * - * If false, the callback will be called with null items, allowing manual refresh. - * - * @default true - */ - autoRefresh: z.boolean().default(true), - /** - * Debounce time in milliseconds for list changed notification processing. - * - * Multiple notifications received within this timeframe will only trigger one refresh. - * Set to 0 to disable debouncing. - * - * @default 300 - */ - debounceMs: z.number().int().nonnegative().default(300) -}); -/* Logging */ -/** - * The severity of a log message. - */ -exports.LoggingLevelSchema = z.enum(['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency']); -/** - * Parameters for a `logging/setLevel` request. - */ -exports.SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: exports.LoggingLevelSchema -}); -/** - * A request from the client to the server, to enable or adjust logging. - */ -exports.SetLevelRequestSchema = exports.RequestSchema.extend({ - method: z.literal('logging/setLevel'), - params: exports.SetLevelRequestParamsSchema -}); -/** - * Parameters for a `notifications/message` notification. - */ -exports.LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The severity of this log message. - */ - level: exports.LoggingLevelSchema, - /** - * An optional name of the logger issuing this message. - */ - logger: z.string().optional(), - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.unknown() -}); -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -exports.LoggingMessageNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/message'), - params: exports.LoggingMessageNotificationParamsSchema -}); -/* Sampling */ -/** - * Hints to use for model selection. - */ -exports.ModelHintSchema = z.object({ - /** - * A hint for a model name. - */ - name: z.string().optional() -}); -/** - * The server's preferences for model selection, requested of the client during sampling. - */ -exports.ModelPreferencesSchema = z.object({ - /** - * Optional hints to use for model selection. - */ - hints: z.array(exports.ModelHintSchema).optional(), - /** - * How much to prioritize cost when selecting a model. - */ - costPriority: z.number().min(0).max(1).optional(), - /** - * How much to prioritize sampling speed (latency) when selecting a model. - */ - speedPriority: z.number().min(0).max(1).optional(), - /** - * How much to prioritize intelligence and capabilities when selecting a model. - */ - intelligencePriority: z.number().min(0).max(1).optional() -}); -/** - * Controls tool usage behavior in sampling requests. - */ -exports.ToolChoiceSchema = z.object({ - /** - * Controls when tools are used: - * - "auto": Model decides whether to use tools (default) - * - "required": Model MUST use at least one tool before completing - * - "none": Model MUST NOT use any tools - */ - mode: z.enum(['auto', 'required', 'none']).optional() -}); -/** - * The result of a tool execution, provided by the user (server). - * Represents the outcome of invoking a tool requested via ToolUseContent. - */ -exports.ToolResultContentSchema = z.object({ - type: z.literal('tool_result'), - toolUseId: z.string().describe('The unique identifier for the corresponding tool call.'), - content: z.array(exports.ContentBlockSchema).default([]), - structuredContent: z.object({}).loose().optional(), - isError: z.boolean().optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Basic content types for sampling responses (without tool use). - * Used for backwards-compatible CreateMessageResult when tools are not used. - */ -exports.SamplingContentSchema = z.discriminatedUnion('type', [exports.TextContentSchema, exports.ImageContentSchema, exports.AudioContentSchema]); -/** - * Content block types allowed in sampling messages. - * This includes text, image, audio, tool use requests, and tool results. - */ -exports.SamplingMessageContentBlockSchema = z.discriminatedUnion('type', [ - exports.TextContentSchema, - exports.ImageContentSchema, - exports.AudioContentSchema, - exports.ToolUseContentSchema, - exports.ToolResultContentSchema -]); -/** - * Describes a message issued to or received from an LLM API. - */ -exports.SamplingMessageSchema = z.object({ - role: exports.RoleSchema, - content: z.union([exports.SamplingMessageContentBlockSchema, z.array(exports.SamplingMessageContentBlockSchema)]), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Parameters for a `sampling/createMessage` request. - */ -exports.CreateMessageRequestParamsSchema = exports.TaskAugmentedRequestParamsSchema.extend({ - messages: z.array(exports.SamplingMessageSchema), - /** - * The server's preferences for which model to select. The client MAY modify or omit this request. - */ - modelPreferences: exports.ModelPreferencesSchema.optional(), - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.string().optional(), - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. - * The client MAY ignore this request. - * - * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client - * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases. - */ - includeContext: z.enum(['none', 'thisServer', 'allServers']).optional(), - temperature: z.number().optional(), - /** - * The requested maximum number of tokens to sample (to prevent runaway completions). - * - * The client MAY choose to sample fewer tokens than the requested maximum. - */ - maxTokens: z.number().int(), - stopSequences: z.array(z.string()).optional(), - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: AssertObjectSchema.optional(), - /** - * Tools that the model may use during generation. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - */ - tools: z.array(exports.ToolSchema).optional(), - /** - * Controls how the model uses tools. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - * Default is `{ mode: "auto" }`. - */ - toolChoice: exports.ToolChoiceSchema.optional() -}); -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -exports.CreateMessageRequestSchema = exports.RequestSchema.extend({ - method: z.literal('sampling/createMessage'), - params: exports.CreateMessageRequestParamsSchema -}); -/** - * The client's response to a sampling/create_message request from the server. - * This is the backwards-compatible version that returns single content (no arrays). - * Used when the request does not include tools. - */ -exports.CreateMessageResultSchema = exports.ResultSchema.extend({ - /** - * The name of the model that generated the message. - */ - model: z.string(), - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens']).or(z.string())), - role: exports.RoleSchema, - /** - * Response content. Single content block (text, image, or audio). - */ - content: exports.SamplingContentSchema -}); -/** - * The client's response to a sampling/create_message request when tools were provided. - * This version supports array content for tool use flows. - */ -exports.CreateMessageResultWithToolsSchema = exports.ResultSchema.extend({ - /** - * The name of the model that generated the message. - */ - model: z.string(), - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - "toolUse": The model wants to use one or more tools - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens', 'toolUse']).or(z.string())), - role: exports.RoleSchema, - /** - * Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse". - */ - content: z.union([exports.SamplingMessageContentBlockSchema, z.array(exports.SamplingMessageContentBlockSchema)]) -}); -/* Elicitation */ -/** - * Primitive schema definition for boolean fields. - */ -exports.BooleanSchemaSchema = z.object({ - type: z.literal('boolean'), - title: z.string().optional(), - description: z.string().optional(), - default: z.boolean().optional() -}); -/** - * Primitive schema definition for string fields. - */ -exports.StringSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - minLength: z.number().optional(), - maxLength: z.number().optional(), - format: z.enum(['email', 'uri', 'date', 'date-time']).optional(), - default: z.string().optional() -}); -/** - * Primitive schema definition for number fields. - */ -exports.NumberSchemaSchema = z.object({ - type: z.enum(['number', 'integer']), - title: z.string().optional(), - description: z.string().optional(), - minimum: z.number().optional(), - maximum: z.number().optional(), - default: z.number().optional() -}); -/** - * Schema for single-selection enumeration without display titles for options. - */ -exports.UntitledSingleSelectEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - enum: z.array(z.string()), - default: z.string().optional() -}); -/** - * Schema for single-selection enumeration with display titles for each option. - */ -exports.TitledSingleSelectEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - oneOf: z.array(z.object({ - const: z.string(), - title: z.string() - })), - default: z.string().optional() -}); -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - */ -exports.LegacyTitledEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - enum: z.array(z.string()), - enumNames: z.array(z.string()).optional(), - default: z.string().optional() -}); -// Combined single selection enumeration -exports.SingleSelectEnumSchemaSchema = z.union([exports.UntitledSingleSelectEnumSchemaSchema, exports.TitledSingleSelectEnumSchemaSchema]); -/** - * Schema for multiple-selection enumeration without display titles for options. - */ -exports.UntitledMultiSelectEnumSchemaSchema = z.object({ - type: z.literal('array'), - title: z.string().optional(), - description: z.string().optional(), - minItems: z.number().optional(), - maxItems: z.number().optional(), - items: z.object({ - type: z.literal('string'), - enum: z.array(z.string()) - }), - default: z.array(z.string()).optional() -}); -/** - * Schema for multiple-selection enumeration with display titles for each option. - */ -exports.TitledMultiSelectEnumSchemaSchema = z.object({ - type: z.literal('array'), - title: z.string().optional(), - description: z.string().optional(), - minItems: z.number().optional(), - maxItems: z.number().optional(), - items: z.object({ - anyOf: z.array(z.object({ - const: z.string(), - title: z.string() - })) - }), - default: z.array(z.string()).optional() -}); -/** - * Combined schema for multiple-selection enumeration - */ -exports.MultiSelectEnumSchemaSchema = z.union([exports.UntitledMultiSelectEnumSchemaSchema, exports.TitledMultiSelectEnumSchemaSchema]); -/** - * Primitive schema definition for enum fields. - */ -exports.EnumSchemaSchema = z.union([exports.LegacyTitledEnumSchemaSchema, exports.SingleSelectEnumSchemaSchema, exports.MultiSelectEnumSchemaSchema]); -/** - * Union of all primitive schema definitions. - */ -exports.PrimitiveSchemaDefinitionSchema = z.union([exports.EnumSchemaSchema, exports.BooleanSchemaSchema, exports.StringSchemaSchema, exports.NumberSchemaSchema]); -/** - * Parameters for an `elicitation/create` request for form-based elicitation. - */ -exports.ElicitRequestFormParamsSchema = exports.TaskAugmentedRequestParamsSchema.extend({ - /** - * The elicitation mode. - * - * Optional for backward compatibility. Clients MUST treat missing mode as "form". - */ - mode: z.literal('form').optional(), - /** - * The message to present to the user describing what information is being requested. - */ - message: z.string(), - /** - * A restricted subset of JSON Schema. - * Only top-level properties are allowed, without nesting. - */ - requestedSchema: z.object({ - type: z.literal('object'), - properties: z.record(z.string(), exports.PrimitiveSchemaDefinitionSchema), - required: z.array(z.string()).optional() - }) -}); -/** - * Parameters for an `elicitation/create` request for URL-based elicitation. - */ -exports.ElicitRequestURLParamsSchema = exports.TaskAugmentedRequestParamsSchema.extend({ - /** - * The elicitation mode. - */ - mode: z.literal('url'), - /** - * The message to present to the user explaining why the interaction is needed. - */ - message: z.string(), - /** - * The ID of the elicitation, which must be unique within the context of the server. - * The client MUST treat this ID as an opaque value. - */ - elicitationId: z.string(), - /** - * The URL that the user should navigate to. - */ - url: z.string().url() -}); -/** - * The parameters for a request to elicit additional information from the user via the client. - */ -exports.ElicitRequestParamsSchema = z.union([exports.ElicitRequestFormParamsSchema, exports.ElicitRequestURLParamsSchema]); -/** - * A request from the server to elicit user input via the client. - * The client should present the message and form fields to the user (form mode) - * or navigate to a URL (URL mode). - */ -exports.ElicitRequestSchema = exports.RequestSchema.extend({ - method: z.literal('elicitation/create'), - params: exports.ElicitRequestParamsSchema -}); -/** - * Parameters for a `notifications/elicitation/complete` notification. - * - * @category notifications/elicitation/complete - */ -exports.ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The ID of the elicitation that completed. - */ - elicitationId: z.string() -}); -/** - * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. - * - * @category notifications/elicitation/complete - */ -exports.ElicitationCompleteNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/elicitation/complete'), - params: exports.ElicitationCompleteNotificationParamsSchema -}); -/** - * The client's response to an elicitation/create request from the server. - */ -exports.ElicitResultSchema = exports.ResultSchema.extend({ - /** - * The user action in response to the elicitation. - * - "accept": User submitted the form/confirmed the action - * - "decline": User explicitly decline the action - * - "cancel": User dismissed without making an explicit choice - */ - action: z.enum(['accept', 'decline', 'cancel']), - /** - * The submitted form data, only present when action is "accept". - * Contains values matching the requested schema. - * Per MCP spec, content is "typically omitted" for decline/cancel actions. - * We normalize null to undefined for leniency while maintaining type compatibility. - */ - content: z.preprocess(val => (val === null ? undefined : val), z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])).optional()) -}); -/* Autocomplete */ -/** - * A reference to a resource or resource template definition. - */ -exports.ResourceTemplateReferenceSchema = z.object({ - type: z.literal('ref/resource'), - /** - * The URI or URI template of the resource. - */ - uri: z.string() -}); -/** - * @deprecated Use ResourceTemplateReferenceSchema instead - */ -exports.ResourceReferenceSchema = exports.ResourceTemplateReferenceSchema; -/** - * Identifies a prompt. - */ -exports.PromptReferenceSchema = z.object({ - type: z.literal('ref/prompt'), - /** - * The name of the prompt or prompt template - */ - name: z.string() -}); -/** - * Parameters for a `completion/complete` request. - */ -exports.CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({ - ref: z.union([exports.PromptReferenceSchema, exports.ResourceTemplateReferenceSchema]), - /** - * The argument's information - */ - argument: z.object({ - /** - * The name of the argument - */ - name: z.string(), - /** - * The value of the argument to use for completion matching. - */ - value: z.string() - }), - context: z - .object({ - /** - * Previously-resolved variables in a URI template or prompt. - */ - arguments: z.record(z.string(), z.string()).optional() - }) - .optional() -}); -/** - * A request from the client to the server, to ask for completion options. - */ -exports.CompleteRequestSchema = exports.RequestSchema.extend({ - method: z.literal('completion/complete'), - params: exports.CompleteRequestParamsSchema -}); -function assertCompleteRequestPrompt(request) { - if (request.params.ref.type !== 'ref/prompt') { - throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`); - } - void request; -} -function assertCompleteRequestResourceTemplate(request) { - if (request.params.ref.type !== 'ref/resource') { - throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`); - } - void request; -} -/** - * The server's response to a completion/complete request - */ -exports.CompleteResultSchema = exports.ResultSchema.extend({ - completion: z.looseObject({ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.array(z.string()).max(100), - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.optional(z.number().int()), - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.optional(z.boolean()) - }) -}); -/* Roots */ -/** - * Represents a root directory or file that the server can operate on. - */ -exports.RootSchema = z.object({ - /** - * The URI identifying the root. This *must* start with file:// for now. - */ - uri: z.string().startsWith('file://'), - /** - * An optional name for the root. - */ - name: z.string().optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Sent from the server to request a list of root URIs from the client. - */ -exports.ListRootsRequestSchema = exports.RequestSchema.extend({ - method: z.literal('roots/list'), - params: BaseRequestParamsSchema.optional() -}); -/** - * The client's response to a roots/list request from the server. - */ -exports.ListRootsResultSchema = exports.ResultSchema.extend({ - roots: z.array(exports.RootSchema) -}); -/** - * A notification from the client to the server, informing it that the list of roots has changed. - */ -exports.RootsListChangedNotificationSchema = exports.NotificationSchema.extend({ - method: z.literal('notifications/roots/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/* Client messages */ -exports.ClientRequestSchema = z.union([ - exports.PingRequestSchema, - exports.InitializeRequestSchema, - exports.CompleteRequestSchema, - exports.SetLevelRequestSchema, - exports.GetPromptRequestSchema, - exports.ListPromptsRequestSchema, - exports.ListResourcesRequestSchema, - exports.ListResourceTemplatesRequestSchema, - exports.ReadResourceRequestSchema, - exports.SubscribeRequestSchema, - exports.UnsubscribeRequestSchema, - exports.CallToolRequestSchema, - exports.ListToolsRequestSchema, - exports.GetTaskRequestSchema, - exports.GetTaskPayloadRequestSchema, - exports.ListTasksRequestSchema, - exports.CancelTaskRequestSchema -]); -exports.ClientNotificationSchema = z.union([ - exports.CancelledNotificationSchema, - exports.ProgressNotificationSchema, - exports.InitializedNotificationSchema, - exports.RootsListChangedNotificationSchema, - exports.TaskStatusNotificationSchema -]); -exports.ClientResultSchema = z.union([ - exports.EmptyResultSchema, - exports.CreateMessageResultSchema, - exports.CreateMessageResultWithToolsSchema, - exports.ElicitResultSchema, - exports.ListRootsResultSchema, - exports.GetTaskResultSchema, - exports.ListTasksResultSchema, - exports.CreateTaskResultSchema -]); -/* Server messages */ -exports.ServerRequestSchema = z.union([ - exports.PingRequestSchema, - exports.CreateMessageRequestSchema, - exports.ElicitRequestSchema, - exports.ListRootsRequestSchema, - exports.GetTaskRequestSchema, - exports.GetTaskPayloadRequestSchema, - exports.ListTasksRequestSchema, - exports.CancelTaskRequestSchema -]); -exports.ServerNotificationSchema = z.union([ - exports.CancelledNotificationSchema, - exports.ProgressNotificationSchema, - exports.LoggingMessageNotificationSchema, - exports.ResourceUpdatedNotificationSchema, - exports.ResourceListChangedNotificationSchema, - exports.ToolListChangedNotificationSchema, - exports.PromptListChangedNotificationSchema, - exports.TaskStatusNotificationSchema, - exports.ElicitationCompleteNotificationSchema -]); -exports.ServerResultSchema = z.union([ - exports.EmptyResultSchema, - exports.InitializeResultSchema, - exports.CompleteResultSchema, - exports.GetPromptResultSchema, - exports.ListPromptsResultSchema, - exports.ListResourcesResultSchema, - exports.ListResourceTemplatesResultSchema, - exports.ReadResourceResultSchema, - exports.CallToolResultSchema, - exports.ListToolsResultSchema, - exports.GetTaskResultSchema, - exports.ListTasksResultSchema, - exports.CreateTaskResultSchema -]); -class McpError extends Error { - constructor(code, message, data) { - super(`MCP error ${code}: ${message}`); - this.code = code; - this.data = data; - this.name = 'McpError'; - } - /** - * Factory method to create the appropriate error type based on the error code and data - */ - static fromError(code, message, data) { - // Check for specific error types - if (code === ErrorCode.UrlElicitationRequired && data) { - const errorData = data; - if (errorData.elicitations) { - return new UrlElicitationRequiredError(errorData.elicitations, message); - } - } - // Default to generic McpError - return new McpError(code, message, data); - } -} -exports.McpError = McpError; -/** - * Specialized error type when a tool requires a URL mode elicitation. - * This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against. - */ -class UrlElicitationRequiredError extends McpError { - constructor(elicitations, message = `URL elicitation${elicitations.length > 1 ? 's' : ''} required`) { - super(ErrorCode.UrlElicitationRequired, message, { - elicitations: elicitations - }); - } - get elicitations() { - return this.data?.elicitations ?? []; - } -} -exports.UrlElicitationRequiredError = UrlElicitationRequiredError; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map deleted file mode 100644 index b0fe269..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAslEA,kEAKC;AAED,sFAKC;AAlmED,0CAA4B;AAGf,QAAA,uBAAuB,GAAG,YAAY,CAAC;AACvC,QAAA,mCAAmC,GAAG,YAAY,CAAC;AACnD,QAAA,2BAA2B,GAAG,CAAC,+BAAuB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAEhH,QAAA,qBAAqB,GAAG,sCAAsC,CAAC;AAE5E,oBAAoB;AAC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,KAAK;IAC/B,YACoB,IAAY,EAC5B,OAAe,EACC,IAAc;QAE9B,KAAK,CAAC,aAAa,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC;QAJvB,SAAI,GAAJ,IAAI,CAAQ;QAEZ,SAAI,GAAJ,IAAI,CAAU;QAG9B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,IAAY,EAAE,OAAe,EAAE,IAAc;QAC1D,iCAAiC;QACjC,IAAI,IAAI,KAAK,SAAS,CAAC,sBAAsB,IAAI,IAAI,EAAE,CAAC;YACpD,MAAM,SAAS,GAAG,IAAoC,CAAC;YACvD,IAAI,SAAS,CAAC,YAAY,EAAE,CAAC;gBACzB,OAAO,IAAI,2BAA2B,CAAC,SAAS,CAAC,YAAwC,EAAE,OAAO,CAAC,CAAC;YACxG,CAAC;QACL,CAAC;QAED,8BAA8B;QAC9B,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;CACJ;AAzBD,4BAyBC;AAED;;;GAGG;AACH,MAAa,2BAA4B,SAAQ,QAAQ;IACrD,YAAY,YAAsC,EAAE,UAAkB,kBAAkB,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW;QACjI,KAAK,CAAC,SAAS,CAAC,sBAAsB,EAAE,OAAO,EAAE;YAC7C,YAAY,EAAE,YAAY;SAC7B,CAAC,CAAC;IACP,CAAC;IAED,IAAI,YAAY;QACZ,OAAQ,IAAI,CAAC,IAAmD,EAAE,YAAY,IAAI,EAAE,CAAC;IACzF,CAAC;CACJ;AAVD,kEAUC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts deleted file mode 100644 index 952ee68..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * AJV-based JSON Schema validator provider - */ -import Ajv from 'ajv'; -import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js'; -/** - * @example - * ```typescript - * // Use with default AJV instance (recommended) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Use with custom AJV instance - * import { Ajv } from 'ajv'; - * const ajv = new Ajv({ strict: true, allErrors: true }); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ -export declare class AjvJsonSchemaValidator implements jsonSchemaValidator { - private _ajv; - /** - * Create an AJV validator - * - * @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created. - * - * @example - * ```typescript - * // Use default configuration (recommended for most cases) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Or provide custom AJV instance for advanced configuration - * import { Ajv } from 'ajv'; - * import addFormats from 'ajv-formats'; - * - * const ajv = new Ajv({ validateFormats: true }); - * addFormats(ajv); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ - constructor(ajv?: Ajv); - /** - * Create a validator for the given JSON Schema - * - * The validator is compiled once and can be reused multiple times. - * If the schema has an $id, it will be cached by AJV automatically. - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=ajv-provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map deleted file mode 100644 index 6704c4d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/ajv-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAgBtH;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAuB,YAAW,mBAAmB;IAC9D,OAAO,CAAC,IAAI,CAAM;IAElB;;;;;;;;;;;;;;;;;;;OAmBG;gBACS,GAAG,CAAC,EAAE,GAAG;IAIrB;;;;;;;;OAQG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAyBlE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js deleted file mode 100644 index a46f8c6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -/** - * AJV-based JSON Schema validator provider - */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AjvJsonSchemaValidator = void 0; -const ajv_1 = __importDefault(require("ajv")); -const ajv_formats_1 = __importDefault(require("ajv-formats")); -function createDefaultAjvInstance() { - const ajv = new ajv_1.default({ - strict: false, - validateFormats: true, - validateSchema: false, - allErrors: true - }); - const addFormats = ajv_formats_1.default; - addFormats(ajv); - return ajv; -} -/** - * @example - * ```typescript - * // Use with default AJV instance (recommended) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Use with custom AJV instance - * import { Ajv } from 'ajv'; - * const ajv = new Ajv({ strict: true, allErrors: true }); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ -class AjvJsonSchemaValidator { - /** - * Create an AJV validator - * - * @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created. - * - * @example - * ```typescript - * // Use default configuration (recommended for most cases) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Or provide custom AJV instance for advanced configuration - * import { Ajv } from 'ajv'; - * import addFormats from 'ajv-formats'; - * - * const ajv = new Ajv({ validateFormats: true }); - * addFormats(ajv); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ - constructor(ajv) { - this._ajv = ajv ?? createDefaultAjvInstance(); - } - /** - * Create a validator for the given JSON Schema - * - * The validator is compiled once and can be reused multiple times. - * If the schema has an $id, it will be cached by AJV automatically. - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema) { - // Check if schema has $id and is already compiled/cached - const ajvValidator = '$id' in schema && typeof schema.$id === 'string' - ? (this._ajv.getSchema(schema.$id) ?? this._ajv.compile(schema)) - : this._ajv.compile(schema); - return (input) => { - const valid = ajvValidator(input); - if (valid) { - return { - valid: true, - data: input, - errorMessage: undefined - }; - } - else { - return { - valid: false, - data: undefined, - errorMessage: this._ajv.errorsText(ajvValidator.errors) - }; - } - }; - } -} -exports.AjvJsonSchemaValidator = AjvJsonSchemaValidator; -//# sourceMappingURL=ajv-provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map deleted file mode 100644 index 2405e7b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv-provider.js","sourceRoot":"","sources":["../../../src/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AAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC;iBAC1D,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ;AA7DD,wDA6DC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts deleted file mode 100644 index 89c244a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Cloudflare Worker-compatible JSON Schema validator provider - * - * This provider uses @cfworker/json-schema for validation without code generation, - * making it compatible with edge runtimes like Cloudflare Workers that restrict - * eval and new Function. - */ -import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js'; -/** - * JSON Schema draft version supported by @cfworker/json-schema - */ -export type CfWorkerSchemaDraft = '4' | '7' | '2019-09' | '2020-12'; -/** - * - * @example - * ```typescript - * // Use with default configuration (2020-12, shortcircuit) - * const validator = new CfWorkerJsonSchemaValidator(); - * - * // Use with custom configuration - * const validator = new CfWorkerJsonSchemaValidator({ - * draft: '2020-12', - * shortcircuit: false // Report all errors - * }); - * ``` - */ -export declare class CfWorkerJsonSchemaValidator implements jsonSchemaValidator { - private shortcircuit; - private draft; - /** - * Create a validator - * - * @param options - Configuration options - * @param options.shortcircuit - If true, stop validation after first error (default: true) - * @param options.draft - JSON Schema draft version to use (default: '2020-12') - */ - constructor(options?: { - shortcircuit?: boolean; - draft?: CfWorkerSchemaDraft; - }); - /** - * Create a validator for the given JSON Schema - * - * Unlike AJV, this validator is not cached internally - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=cfworker-provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map deleted file mode 100644 index ce404d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cfworker-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IACnE,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,KAAK,CAAsB;IAEnC;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;KAAE;IAK7E;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAsBlE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js deleted file mode 100644 index 91235b7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/** - * Cloudflare Worker-compatible JSON Schema validator provider - * - * This provider uses @cfworker/json-schema for validation without code generation, - * making it compatible with edge runtimes like Cloudflare Workers that restrict - * eval and new Function. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CfWorkerJsonSchemaValidator = void 0; -const json_schema_1 = require("@cfworker/json-schema"); -/** - * - * @example - * ```typescript - * // Use with default configuration (2020-12, shortcircuit) - * const validator = new CfWorkerJsonSchemaValidator(); - * - * // Use with custom configuration - * const validator = new CfWorkerJsonSchemaValidator({ - * draft: '2020-12', - * shortcircuit: false // Report all errors - * }); - * ``` - */ -class CfWorkerJsonSchemaValidator { - /** - * Create a validator - * - * @param options - Configuration options - * @param options.shortcircuit - If true, stop validation after first error (default: true) - * @param options.draft - JSON Schema draft version to use (default: '2020-12') - */ - constructor(options) { - this.shortcircuit = options?.shortcircuit ?? true; - this.draft = options?.draft ?? '2020-12'; - } - /** - * Create a validator for the given JSON Schema - * - * Unlike AJV, this validator is not cached internally - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema) { - // Cast to the cfworker Schema type - our JsonSchemaType is structurally compatible - const validator = new json_schema_1.Validator(schema, this.draft, this.shortcircuit); - return (input) => { - const result = validator.validate(input); - if (result.valid) { - return { - valid: true, - data: input, - errorMessage: undefined - }; - } - else { - return { - valid: false, - data: undefined, - errorMessage: result.errors.map(err => `${err.instanceLocation}: ${err.error}`).join('; ') - }; - } - }; - } -} -exports.CfWorkerJsonSchemaValidator = CfWorkerJsonSchemaValidator; -//# sourceMappingURL=cfworker-provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map deleted file mode 100644 index 88492c6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cfworker-provider.js","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uDAAkD;AAQlD;;;;;;;;;;;;;GAaG;AACH,MAAa,2BAA2B;IAIpC;;;;;;OAMG;IACH,YAAY,OAAiE;QACzE,IAAI,CAAC,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC;IAC7C,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAI,MAAsB;QAClC,mFAAmF;QACnF,MAAM,SAAS,GAAG,IAAI,uBAAS,CAAC,MAAoD,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAErH,OAAO,CAAC,KAAc,EAAgC,EAAE;YACpD,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAEzC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACf,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,KAAU;oBAChB,YAAY,EAAE,SAAS;iBAC1B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,gBAAgB,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC7F,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ;AA9CD,kEA8CC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts deleted file mode 100644 index 99e9939..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * JSON Schema validation - * - * This module provides configurable JSON Schema validation for the MCP SDK. - * Choose a validator based on your runtime environment: - * - * - AjvJsonSchemaValidator: Best for Node.js (default, fastest) - * Import from: @modelcontextprotocol/sdk/validation/ajv - * Requires peer dependencies: ajv, ajv-formats - * - * - CfWorkerJsonSchemaValidator: Best for edge runtimes - * Import from: @modelcontextprotocol/sdk/validation/cfworker - * Requires peer dependency: @cfworker/json-schema - * - * @example - * ```typescript - * // For Node.js with AJV - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // For Cloudflare Workers - * import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker'; - * const validator = new CfWorkerJsonSchemaValidator(); - * ``` - * - * @module validation - */ -export type { JsonSchemaType, JsonSchemaValidator, JsonSchemaValidatorResult, jsonSchemaValidator } from './types.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map deleted file mode 100644 index a8845b9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js deleted file mode 100644 index c8be925..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -/** - * JSON Schema validation - * - * This module provides configurable JSON Schema validation for the MCP SDK. - * Choose a validator based on your runtime environment: - * - * - AjvJsonSchemaValidator: Best for Node.js (default, fastest) - * Import from: @modelcontextprotocol/sdk/validation/ajv - * Requires peer dependencies: ajv, ajv-formats - * - * - CfWorkerJsonSchemaValidator: Best for edge runtimes - * Import from: @modelcontextprotocol/sdk/validation/cfworker - * Requires peer dependency: @cfworker/json-schema - * - * @example - * ```typescript - * // For Node.js with AJV - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // For Cloudflare Workers - * import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker'; - * const validator = new CfWorkerJsonSchemaValidator(); - * ``` - * - * @module validation - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map deleted file mode 100644 index 1d5874d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts deleted file mode 100644 index 9fa9222..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import type { JSONSchema } from 'json-schema-typed'; -/** - * JSON Schema type definition (JSON Schema Draft 2020-12) - * - * This uses the object form of JSON Schema (excluding boolean schemas). - * While `true` and `false` are valid JSON Schemas, this SDK uses the - * object form for practical type safety. - * - * Re-exported from json-schema-typed for convenience. - * @see https://json-schema.org/draft/2020-12/json-schema-core.html - */ -export type JsonSchemaType = JSONSchema.Interface; -/** - * Result of a JSON Schema validation operation - */ -export type JsonSchemaValidatorResult = { - valid: true; - data: T; - errorMessage: undefined; -} | { - valid: false; - data: undefined; - errorMessage: string; -}; -/** - * A validator function that validates data against a JSON Schema - */ -export type JsonSchemaValidator = (input: unknown) => JsonSchemaValidatorResult; -/** - * Provider interface for creating validators from JSON Schemas - * - * This is the main extension point for custom validator implementations. - * Implementations should: - * - Support JSON Schema Draft 2020-12 (or be compatible with it) - * - Return validator functions that can be called multiple times - * - Handle schema compilation/caching internally - * - Provide clear error messages on validation failure - * - * @example - * ```typescript - * class MyValidatorProvider implements jsonSchemaValidator { - * getValidator(schema: JsonSchemaType): JsonSchemaValidator { - * // Compile/cache validator from schema - * return (input: unknown) => { - * // Validate input against schema - * if (valid) { - * return { valid: true, data: input as T, errorMessage: undefined }; - * } else { - * return { valid: false, data: undefined, errorMessage: 'Error details' }; - * } - * }; - * } - * } - * ``` - */ -export interface jsonSchemaValidator { - /** - * Create a validator for the given JSON Schema - * - * @param schema - Standard JSON Schema object - * @returns A validator function that can be called multiple times - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map deleted file mode 100644 index 52aa0ef..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,IACjC;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,YAAY,EAAE,SAAS,CAAA;CAAE,GACjD;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,KAAK,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACnE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js deleted file mode 100644 index 11e638d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map deleted file mode 100644 index 51361cf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts deleted file mode 100644 index 2a3f6bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * OAuth provider extensions for specialized authentication flows. - * - * This module provides ready-to-use OAuthClientProvider implementations - * for common machine-to-machine authentication scenarios. - */ -import { OAuthClientInformation, OAuthClientMetadata, OAuthTokens } from '../shared/auth.js'; -import { AddClientAuthentication, OAuthClientProvider } from './auth.js'; -/** - * Helper to produce a private_key_jwt client authentication function. - * - * Usage: - * const addClientAuth = createPrivateKeyJwtAuth({ issuer, subject, privateKey, alg, audience? }); - * // pass addClientAuth as provider.addClientAuthentication implementation - */ -export declare function createPrivateKeyJwtAuth(options: { - issuer: string; - subject: string; - privateKey: string | Uint8Array | Record; - alg: string; - audience?: string | URL; - lifetimeSeconds?: number; - claims?: Record; -}): AddClientAuthentication; -/** - * Options for creating a ClientCredentialsProvider. - */ -export interface ClientCredentialsProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * The client_secret for client_secret_basic authentication. - */ - clientSecret: string; - /** - * Optional client name for metadata. - */ - clientName?: string; -} -/** - * OAuth provider for client_credentials grant with client_secret_basic authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a client_id and client_secret. - * - * @example - * const provider = new ClientCredentialsProvider({ - * clientId: 'my-client', - * clientSecret: 'my-secret' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export declare class ClientCredentialsProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - constructor(options: ClientCredentialsProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -/** - * Options for creating a PrivateKeyJwtProvider. - */ -export interface PrivateKeyJwtProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * The private key for signing JWT assertions. - * Can be a PEM string, Uint8Array, or JWK object. - */ - privateKey: string | Uint8Array | Record; - /** - * The algorithm to use for signing (e.g., 'RS256', 'ES256'). - */ - algorithm: string; - /** - * Optional client name for metadata. - */ - clientName?: string; - /** - * Optional JWT lifetime in seconds (default: 300). - */ - jwtLifetimeSeconds?: number; -} -/** - * OAuth provider for client_credentials grant with private_key_jwt authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a signed JWT assertion (RFC 7523 Section 2.2). - * - * @example - * const provider = new PrivateKeyJwtProvider({ - * clientId: 'my-client', - * privateKey: pemEncodedPrivateKey, - * algorithm: 'RS256' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export declare class PrivateKeyJwtProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - addClientAuthentication: AddClientAuthentication; - constructor(options: PrivateKeyJwtProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -/** - * Options for creating a StaticPrivateKeyJwtProvider. - */ -export interface StaticPrivateKeyJwtProviderOptions { - /** - * The client_id for this OAuth client. - */ - clientId: string; - /** - * A pre-built JWT client assertion to use for authentication. - * - * This token should already contain the appropriate claims - * (iss, sub, aud, exp, etc.) and be signed by the client's key. - */ - jwtBearerAssertion: string; - /** - * Optional client name for metadata. - */ - clientName?: string; -} -/** - * OAuth provider for client_credentials grant with a static private_key_jwt assertion. - * - * This provider mirrors {@link PrivateKeyJwtProvider} but instead of constructing and - * signing a JWT on each request, it accepts a pre-built JWT assertion string and - * uses it directly for authentication. - */ -export declare class StaticPrivateKeyJwtProvider implements OAuthClientProvider { - private _tokens?; - private _clientInfo; - private _clientMetadata; - addClientAuthentication: AddClientAuthentication; - constructor(options: StaticPrivateKeyJwtProviderOptions); - get redirectUrl(): undefined; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformation; - saveClientInformation(info: OAuthClientInformation): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(): void; - saveCodeVerifier(): void; - codeVerifier(): string; - prepareTokenRequest(scope?: string): URLSearchParams; -} -//# sourceMappingURL=auth-extensions.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map deleted file mode 100644 index 863e23a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-extensions.d.ts","sourceRoot":"","sources":["../../../src/client/auth-extensions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEzE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACxB,eAAe,CAAC,EAAE,MA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AIrC,uBAAuB,IAAI,IAAI;IAI/B,gBAAgB,IAAI,IAAI;IAIxB,YAAY,IAAI,MAAM;IAItB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,eAAe;CAKvD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js deleted file mode 100644 index b119675..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +++ /dev/null @@ -1,266 +0,0 @@ -/** - * OAuth provider extensions for specialized authentication flows. - * - * This module provides ready-to-use OAuthClientProvider implementations - * for common machine-to-machine authentication scenarios. - */ -/** - * Helper to produce a private_key_jwt client authentication function. - * - * Usage: - * const addClientAuth = createPrivateKeyJwtAuth({ issuer, subject, privateKey, alg, audience? }); - * // pass addClientAuth as provider.addClientAuthentication implementation - */ -export function createPrivateKeyJwtAuth(options) { - return async (_headers, params, url, metadata) => { - // Lazy import to avoid heavy dependency unless used - if (typeof globalThis.crypto === 'undefined') { - throw new TypeError('crypto is not available, please ensure you add have Web Crypto API support for older Node.js versions (see https://github.com/modelcontextprotocol/typescript-sdk#nodejs-web-crypto-globalthiscrypto-compatibility)'); - } - const jose = await import('jose'); - const audience = String(options.audience ?? metadata?.issuer ?? url); - const lifetimeSeconds = options.lifetimeSeconds ?? 300; - const now = Math.floor(Date.now() / 1000); - const jti = `${Date.now()}-${Math.random().toString(36).slice(2)}`; - const baseClaims = { - iss: options.issuer, - sub: options.subject, - aud: audience, - exp: now + lifetimeSeconds, - iat: now, - jti - }; - const claims = options.claims ? { ...baseClaims, ...options.claims } : baseClaims; - // Import key for the requested algorithm - const alg = options.alg; - let key; - if (typeof options.privateKey === 'string') { - if (alg.startsWith('RS') || alg.startsWith('ES') || alg.startsWith('PS')) { - key = await jose.importPKCS8(options.privateKey, alg); - } - else if (alg.startsWith('HS')) { - key = new TextEncoder().encode(options.privateKey); - } - else { - throw new Error(`Unsupported algorithm ${alg}`); - } - } - else if (options.privateKey instanceof Uint8Array) { - if (alg.startsWith('HS')) { - key = options.privateKey; - } - else { - // Assume PKCS#8 DER in Uint8Array for asymmetric algorithms - key = await jose.importPKCS8(new TextDecoder().decode(options.privateKey), alg); - } - } - else { - // Treat as JWK - key = await jose.importJWK(options.privateKey, alg); - } - // Sign JWT - const assertion = await new jose.SignJWT(claims) - .setProtectedHeader({ alg, typ: 'JWT' }) - .setIssuer(options.issuer) - .setSubject(options.subject) - .setAudience(audience) - .setIssuedAt(now) - .setExpirationTime(now + lifetimeSeconds) - .setJti(jti) - .sign(key); - params.set('client_assertion', assertion); - params.set('client_assertion_type', 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'); - }; -} -/** - * OAuth provider for client_credentials grant with client_secret_basic authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a client_id and client_secret. - * - * @example - * const provider = new ClientCredentialsProvider({ - * clientId: 'my-client', - * clientSecret: 'my-secret' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export class ClientCredentialsProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId, - client_secret: options.clientSecret - }; - this._clientMetadata = { - client_name: options.clientName ?? 'client-credentials-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'client_secret_basic' - }; - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -/** - * OAuth provider for client_credentials grant with private_key_jwt authentication. - * - * This provider is designed for machine-to-machine authentication where - * the client authenticates using a signed JWT assertion (RFC 7523 Section 2.2). - * - * @example - * const provider = new PrivateKeyJwtProvider({ - * clientId: 'my-client', - * privateKey: pemEncodedPrivateKey, - * algorithm: 'RS256' - * }); - * - * const transport = new StreamableHTTPClientTransport(serverUrl, { - * authProvider: provider - * }); - */ -export class PrivateKeyJwtProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId - }; - this._clientMetadata = { - client_name: options.clientName ?? 'private-key-jwt-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'private_key_jwt' - }; - this.addClientAuthentication = createPrivateKeyJwtAuth({ - issuer: options.clientId, - subject: options.clientId, - privateKey: options.privateKey, - alg: options.algorithm, - lifetimeSeconds: options.jwtLifetimeSeconds - }); - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -/** - * OAuth provider for client_credentials grant with a static private_key_jwt assertion. - * - * This provider mirrors {@link PrivateKeyJwtProvider} but instead of constructing and - * signing a JWT on each request, it accepts a pre-built JWT assertion string and - * uses it directly for authentication. - */ -export class StaticPrivateKeyJwtProvider { - constructor(options) { - this._clientInfo = { - client_id: options.clientId - }; - this._clientMetadata = { - client_name: options.clientName ?? 'static-private-key-jwt-client', - redirect_uris: [], - grant_types: ['client_credentials'], - token_endpoint_auth_method: 'private_key_jwt' - }; - const assertion = options.jwtBearerAssertion; - this.addClientAuthentication = async (_headers, params) => { - params.set('client_assertion', assertion); - params.set('client_assertion_type', 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'); - }; - } - get redirectUrl() { - return undefined; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInfo; - } - saveClientInformation(info) { - this._clientInfo = info; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization() { - throw new Error('redirectToAuthorization is not used for client_credentials flow'); - } - saveCodeVerifier() { - // Not used for client_credentials - } - codeVerifier() { - throw new Error('codeVerifier is not used for client_credentials flow'); - } - prepareTokenRequest(scope) { - const params = new URLSearchParams({ grant_type: 'client_credentials' }); - if (scope) - params.set('scope', scope); - return params; - } -} -//# sourceMappingURL=auth-extensions.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map deleted file mode 100644 index d6aeb34..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-extensions.js","sourceRoot":"","sources":["../../../src/client/auth-extensions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAQvC;IACG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QAC7C,oDAAoD;QACpD,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YAC3C,MAAM,IAAI,SAAS,CACf,qNAAqN,CACxN,CAAC;QACN,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;QAElC,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,EAAE,MA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AED,YAAY;QACR,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC5E,CAAC;IAED,mBAAmB,CAAC,KAAc;QAC9B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACzE,IAAI,KAAK;YAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts deleted file mode 100644 index c1405d6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { OAuthClientMetadata, OAuthClientInformationMixed, OAuthTokens, OAuthMetadata, OAuthClientInformationFull, OAuthProtectedResourceMetadata, AuthorizationServerMetadata } from '../shared/auth.js'; -import { OAuthError } from '../server/auth/errors.js'; -import { FetchLike } from '../shared/transport.js'; -/** - * Function type for adding client authentication to token requests. - */ -export type AddClientAuthentication = (headers: Headers, params: URLSearchParams, url: string | URL, metadata?: AuthorizationServerMetadata) => void | Promise; -/** - * Implements an end-to-end OAuth client to be used with one MCP server. - * - * This client relies upon a concept of an authorized "session," the exact - * meaning of which is application-defined. Tokens, authorization codes, and - * code verifiers should not cross different sessions. - */ -export interface OAuthClientProvider { - /** - * The URL to redirect the user agent to after authorization. - * Return undefined for non-interactive flows that don't require user interaction - * (e.g., client_credentials, jwt-bearer). - */ - get redirectUrl(): string | URL | undefined; - /** - * External URL the server should use to fetch client metadata document - */ - clientMetadataUrl?: string; - /** - * Metadata about this OAuth client. - */ - get clientMetadata(): OAuthClientMetadata; - /** - * Returns a OAuth2 state parameter. - */ - state?(): string | Promise; - /** - * Loads information about this OAuth client, as registered already with the - * server, or returns `undefined` if the client is not registered with the - * server. - */ - clientInformation(): OAuthClientInformationMixed | undefined | Promise; - /** - * If implemented, this permits the OAuth client to dynamically register with - * the server. Client information saved this way should later be read via - * `clientInformation()`. - * - * This method is not required to be implemented if client information is - * statically known (e.g., pre-registered). - */ - saveClientInformation?(clientInformation: OAuthClientInformationMixed): void | Promise; - /** - * Loads any existing OAuth tokens for the current session, or returns - * `undefined` if there are no saved tokens. - */ - tokens(): OAuthTokens | undefined | Promise; - /** - * Stores new OAuth tokens for the current session, after a successful - * authorization. - */ - saveTokens(tokens: OAuthTokens): void | Promise; - /** - * Invoked to redirect the user agent to the given URL to begin the authorization flow. - */ - redirectToAuthorization(authorizationUrl: URL): void | Promise; - /** - * Saves a PKCE code verifier for the current session, before redirecting to - * the authorization flow. - */ - saveCodeVerifier(codeVerifier: string): void | Promise; - /** - * Loads the PKCE code verifier for the current session, necessary to validate - * the authorization result. - */ - codeVerifier(): string | Promise; - /** - * Adds custom client authentication to OAuth token requests. - * - * This optional method allows implementations to customize how client credentials - * are included in token exchange and refresh requests. When provided, this method - * is called instead of the default authentication logic, giving full control over - * the authentication mechanism. - * - * Common use cases include: - * - Supporting authentication methods beyond the standard OAuth 2.0 methods - * - Adding custom headers for proprietary authentication schemes - * - Implementing client assertion-based authentication (e.g., JWT bearer tokens) - * - * @param headers - The request headers (can be modified to add authentication) - * @param params - The request body parameters (can be modified to add credentials) - * @param url - The token endpoint URL being called - * @param metadata - Optional OAuth metadata for the server, which may include supported authentication methods - */ - addClientAuthentication?: AddClientAuthentication; - /** - * If defined, overrides the selection and validation of the - * RFC 8707 Resource Indicator. If left undefined, default - * validation behavior will be used. - * - * Implementations must verify the returned resource matches the MCP server. - */ - validateResourceURL?(serverUrl: string | URL, resource?: string): Promise; - /** - * If implemented, provides a way for the client to invalidate (e.g. delete) the specified - * credentials, in the case where the server has indicated that they are no longer valid. - * This avoids requiring the user to intervene manually. - */ - invalidateCredentials?(scope: 'all' | 'client' | 'tokens' | 'verifier'): void | Promise; - /** - * Prepares grant-specific parameters for a token request. - * - * This optional method allows providers to customize the token request based on - * the grant type they support. When implemented, it returns the grant type and - * any grant-specific parameters needed for the token exchange. - * - * If not implemented, the default behavior depends on the flow: - * - For authorization code flow: uses code, code_verifier, and redirect_uri - * - For client_credentials: detected via grant_types in clientMetadata - * - * @param scope - Optional scope to request - * @returns Grant type and parameters, or undefined to use default behavior - * - * @example - * // For client_credentials grant: - * prepareTokenRequest(scope) { - * return { - * grantType: 'client_credentials', - * params: scope ? { scope } : {} - * }; - * } - * - * @example - * // For authorization_code grant (default behavior): - * async prepareTokenRequest() { - * return { - * grantType: 'authorization_code', - * params: { - * code: this.authorizationCode, - * code_verifier: await this.codeVerifier(), - * redirect_uri: String(this.redirectUrl) - * } - * }; - * } - */ - prepareTokenRequest?(scope?: string): URLSearchParams | Promise | undefined; -} -export type AuthResult = 'AUTHORIZED' | 'REDIRECT'; -export declare class UnauthorizedError extends Error { - constructor(message?: string); -} -type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none'; -/** - * Determines the best client authentication method to use based on server support and client configuration. - * - * Priority order (highest to lowest): - * 1. client_secret_basic (if client secret is available) - * 2. client_secret_post (if client secret is available) - * 3. none (for public clients) - * - * @param clientInformation - OAuth client information containing credentials - * @param supportedMethods - Authentication methods supported by the authorization server - * @returns The selected authentication method - */ -export declare function selectClientAuthMethod(clientInformation: OAuthClientInformationMixed, supportedMethods: string[]): ClientAuthMethod; -/** - * Parses an OAuth error response from a string or Response object. - * - * If the input is a standard OAuth2.0 error response, it will be parsed according to the spec - * and an instance of the appropriate OAuthError subclass will be returned. - * If parsing fails, it falls back to a generic ServerError that includes - * the response status (if available) and original content. - * - * @param input - A Response object or string containing the error response - * @returns A Promise that resolves to an OAuthError instance - */ -export declare function parseErrorResponse(input: Response | string): Promise; -/** - * Orchestrates the full auth flow with a server. - * - * This can be used as a single entry point for all authorization functionality, - * instead of linking together the other lower-level functions in this module. - */ -export declare function auth(provider: OAuthClientProvider, options: { - serverUrl: string | URL; - authorizationCode?: string; - scope?: string; - resourceMetadataUrl?: URL; - fetchFn?: FetchLike; -}): Promise; -/** - * SEP-991: URL-based Client IDs - * Validate that the client_id is a valid URL with https scheme - */ -export declare function isHttpsUrl(value?: string): boolean; -export declare function selectResourceURL(serverUrl: string | URL, provider: OAuthClientProvider, resourceMetadata?: OAuthProtectedResourceMetadata): Promise; -/** - * Extract resource_metadata, scope, and error from WWW-Authenticate header. - */ -export declare function extractWWWAuthenticateParams(res: Response): { - resourceMetadataUrl?: URL; - scope?: string; - error?: string; -}; -/** - * Extract resource_metadata from response header. - * @deprecated Use `extractWWWAuthenticateParams` instead. - */ -export declare function extractResourceMetadataUrl(res: Response): URL | undefined; -/** - * Looks up RFC 9728 OAuth 2.0 Protected Resource Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - */ -export declare function discoverOAuthProtectedResourceMetadata(serverUrl: string | URL, opts?: { - protocolVersion?: string; - resourceMetadataUrl?: string | URL; -}, fetchFn?: FetchLike): Promise; -/** - * Looks up RFC 8414 OAuth 2.0 Authorization Server Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - * - * @deprecated This function is deprecated in favor of `discoverAuthorizationServerMetadata`. - */ -export declare function discoverOAuthMetadata(issuer: string | URL, { authorizationServerUrl, protocolVersion }?: { - authorizationServerUrl?: string | URL; - protocolVersion?: string; -}, fetchFn?: FetchLike): Promise; -/** - * Builds a list of discovery URLs to try for authorization server metadata. - * URLs are returned in priority order: - * 1. OAuth metadata at the given URL - * 2. OIDC metadata endpoints at the given URL - */ -export declare function buildDiscoveryUrls(authorizationServerUrl: string | URL): { - url: URL; - type: 'oauth' | 'oidc'; -}[]; -/** - * Discovers authorization server metadata with support for RFC 8414 OAuth 2.0 Authorization Server Metadata - * and OpenID Connect Discovery 1.0 specifications. - * - * This function implements a fallback strategy for authorization server discovery: - * 1. Attempts RFC 8414 OAuth metadata discovery first - * 2. If OAuth discovery fails, falls back to OpenID Connect Discovery - * - * @param authorizationServerUrl - The authorization server URL obtained from the MCP Server's - * protected resource metadata, or the MCP server's URL if the - * metadata was not found. - * @param options - Configuration options - * @param options.fetchFn - Optional fetch function for making HTTP requests, defaults to global fetch - * @param options.protocolVersion - MCP protocol version to use, defaults to LATEST_PROTOCOL_VERSION - * @returns Promise resolving to authorization server metadata, or undefined if discovery fails - */ -export declare function discoverAuthorizationServerMetadata(authorizationServerUrl: string | URL, { fetchFn, protocolVersion }?: { - fetchFn?: FetchLike; - protocolVersion?: string; -}): Promise; -/** - * Begins the authorization flow with the given server, by generating a PKCE challenge and constructing the authorization URL. - */ -export declare function startAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, redirectUrl, scope, state, resource }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - redirectUrl: string | URL; - scope?: string; - state?: string; - resource?: URL; -}): Promise<{ - authorizationUrl: URL; - codeVerifier: string; -}>; -/** - * Prepares token request parameters for an authorization code exchange. - * - * This is the default implementation used by fetchToken when the provider - * doesn't implement prepareTokenRequest. - * - * @param authorizationCode - The authorization code received from the authorization endpoint - * @param codeVerifier - The PKCE code verifier - * @param redirectUri - The redirect URI used in the authorization request - * @returns URLSearchParams for the authorization_code grant - */ -export declare function prepareAuthorizationCodeRequest(authorizationCode: string, codeVerifier: string, redirectUri: string | URL): URLSearchParams; -/** - * Exchanges an authorization code for an access token with the given server. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Falls back to appropriate defaults when server metadata is unavailable - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, auth code, etc. - * @returns Promise resolving to OAuth tokens - * @throws {Error} When token exchange fails or authentication is invalid - */ -export declare function exchangeAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, authorizationCode, codeVerifier, redirectUri, resource, addClientAuthentication, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - authorizationCode: string; - codeVerifier: string; - redirectUri: string | URL; - resource?: URL; - addClientAuthentication?: OAuthClientProvider['addClientAuthentication']; - fetchFn?: FetchLike; -}): Promise; -/** - * Exchange a refresh token for an updated access token. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Preserves the original refresh token if a new one is not returned - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, refresh token, etc. - * @returns Promise resolving to OAuth tokens (preserves original refresh_token if not replaced) - * @throws {Error} When token refresh fails or authentication is invalid - */ -export declare function refreshAuthorization(authorizationServerUrl: string | URL, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientInformation: OAuthClientInformationMixed; - refreshToken: string; - resource?: URL; - addClientAuthentication?: OAuthClientProvider['addClientAuthentication']; - fetchFn?: FetchLike; -}): Promise; -/** - * Unified token fetching that works with any grant type via provider.prepareTokenRequest(). - * - * This function provides a single entry point for obtaining tokens regardless of the - * OAuth grant type. The provider's prepareTokenRequest() method determines which grant - * to use and supplies the grant-specific parameters. - * - * @param provider - OAuth client provider that implements prepareTokenRequest() - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration for the token request - * @returns Promise resolving to OAuth tokens - * @throws {Error} When provider doesn't implement prepareTokenRequest or token fetch fails - * - * @example - * // Provider for client_credentials: - * class MyProvider implements OAuthClientProvider { - * prepareTokenRequest(scope) { - * const params = new URLSearchParams({ grant_type: 'client_credentials' }); - * if (scope) params.set('scope', scope); - * return params; - * } - * // ... other methods - * } - * - * const tokens = await fetchToken(provider, authServerUrl, { metadata }); - */ -export declare function fetchToken(provider: OAuthClientProvider, authorizationServerUrl: string | URL, { metadata, resource, authorizationCode, fetchFn }?: { - metadata?: AuthorizationServerMetadata; - resource?: URL; - /** Authorization code for the default authorization_code grant flow */ - authorizationCode?: string; - fetchFn?: FetchLike; -}): Promise; -/** - * Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591. - */ -export declare function registerClient(authorizationServerUrl: string | URL, { metadata, clientMetadata, fetchFn }: { - metadata?: AuthorizationServerMetadata; - clientMetadata: OAuthClientMetadata; - fetchFn?: FetchLike; -}): Promise; -export {}; -//# sourceMappingURL=auth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map deleted file mode 100644 index 012c440..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/client/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,mBAAmB,EAEnB,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,8BAA8B,EAE9B,2BAA2B,EAE9B,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAKH,UAAU,EAGb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAClC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,QAAQ,CAAC,EAAE,2BAA2B,KACrC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,IAAI,cAAc,IAAI,mBAAmB,CAAC;IAE1C;;OAEG;IACH,KAAK,CAAC,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,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QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,iBAAiB,EAAE,2BAA2B,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,uBAAuB,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,GACF,OAAO,CAAC,WAAW,CAAC,CAiBtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,UAAU,CAC5B,QAAQ,EAAE,mBAAmB,EAC7B,sBAAsB,EAAE,MAAM,GAAG,GAAG,EACpC,EACI,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACV,GAAE;IACC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;CAClB,GACP,OAAO,CAAC,WAAW,CAAC,CA+BtB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAChC,sBAAsB,EAAE,MAAM,GAAG,GAAG,EACpC,EACI,QAAQ,EACR,cAAc,EACd,OAAO,EACV,EAAE;IACC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,cAAc,EAAE,mBAAmB,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,CAAC;CACvB,GACF,OAAO,CAAC,0BAA0B,CAAC,CA0BrC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js deleted file mode 100644 index de86ff9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +++ /dev/null @@ -1,824 +0,0 @@ -import pkceChallenge from 'pkce-challenge'; -import { LATEST_PROTOCOL_VERSION } from '../types.js'; -import { OAuthErrorResponseSchema, OpenIdProviderDiscoveryMetadataSchema } from '../shared/auth.js'; -import { OAuthClientInformationFullSchema, OAuthMetadataSchema, OAuthProtectedResourceMetadataSchema, OAuthTokensSchema } from '../shared/auth.js'; -import { checkResourceAllowed, resourceUrlFromServerUrl } from '../shared/auth-utils.js'; -import { InvalidClientError, InvalidClientMetadataError, InvalidGrantError, OAUTH_ERRORS, OAuthError, ServerError, UnauthorizedClientError } from '../server/auth/errors.js'; -export class UnauthorizedError extends Error { - constructor(message) { - super(message ?? 'Unauthorized'); - } -} -function isClientAuthMethod(method) { - return ['client_secret_basic', 'client_secret_post', 'none'].includes(method); -} -const AUTHORIZATION_CODE_RESPONSE_TYPE = 'code'; -const AUTHORIZATION_CODE_CHALLENGE_METHOD = 'S256'; -/** - * Determines the best client authentication method to use based on server support and client configuration. - * - * Priority order (highest to lowest): - * 1. client_secret_basic (if client secret is available) - * 2. client_secret_post (if client secret is available) - * 3. none (for public clients) - * - * @param clientInformation - OAuth client information containing credentials - * @param supportedMethods - Authentication methods supported by the authorization server - * @returns The selected authentication method - */ -export function selectClientAuthMethod(clientInformation, supportedMethods) { - const hasClientSecret = clientInformation.client_secret !== undefined; - // If server doesn't specify supported methods, use RFC 6749 defaults - if (supportedMethods.length === 0) { - return hasClientSecret ? 'client_secret_post' : 'none'; - } - // Prefer the method returned by the server during client registration if valid and supported - if ('token_endpoint_auth_method' in clientInformation && - clientInformation.token_endpoint_auth_method && - isClientAuthMethod(clientInformation.token_endpoint_auth_method) && - supportedMethods.includes(clientInformation.token_endpoint_auth_method)) { - return clientInformation.token_endpoint_auth_method; - } - // Try methods in priority order (most secure first) - if (hasClientSecret && supportedMethods.includes('client_secret_basic')) { - return 'client_secret_basic'; - } - if (hasClientSecret && supportedMethods.includes('client_secret_post')) { - return 'client_secret_post'; - } - if (supportedMethods.includes('none')) { - return 'none'; - } - // Fallback: use what we have - return hasClientSecret ? 'client_secret_post' : 'none'; -} -/** - * Applies client authentication to the request based on the specified method. - * - * Implements OAuth 2.1 client authentication methods: - * - client_secret_basic: HTTP Basic authentication (RFC 6749 Section 2.3.1) - * - client_secret_post: Credentials in request body (RFC 6749 Section 2.3.1) - * - none: Public client authentication (RFC 6749 Section 2.1) - * - * @param method - The authentication method to use - * @param clientInformation - OAuth client information containing credentials - * @param headers - HTTP headers object to modify - * @param params - URL search parameters to modify - * @throws {Error} When required credentials are missing - */ -function applyClientAuthentication(method, clientInformation, headers, params) { - const { client_id, client_secret } = clientInformation; - switch (method) { - case 'client_secret_basic': - applyBasicAuth(client_id, client_secret, headers); - return; - case 'client_secret_post': - applyPostAuth(client_id, client_secret, params); - return; - case 'none': - applyPublicAuth(client_id, params); - return; - default: - throw new Error(`Unsupported client authentication method: ${method}`); - } -} -/** - * Applies HTTP Basic authentication (RFC 6749 Section 2.3.1) - */ -function applyBasicAuth(clientId, clientSecret, headers) { - if (!clientSecret) { - throw new Error('client_secret_basic authentication requires a client_secret'); - } - const credentials = btoa(`${clientId}:${clientSecret}`); - headers.set('Authorization', `Basic ${credentials}`); -} -/** - * Applies POST body authentication (RFC 6749 Section 2.3.1) - */ -function applyPostAuth(clientId, clientSecret, params) { - params.set('client_id', clientId); - if (clientSecret) { - params.set('client_secret', clientSecret); - } -} -/** - * Applies public client authentication (RFC 6749 Section 2.1) - */ -function applyPublicAuth(clientId, params) { - params.set('client_id', clientId); -} -/** - * Parses an OAuth error response from a string or Response object. - * - * If the input is a standard OAuth2.0 error response, it will be parsed according to the spec - * and an instance of the appropriate OAuthError subclass will be returned. - * If parsing fails, it falls back to a generic ServerError that includes - * the response status (if available) and original content. - * - * @param input - A Response object or string containing the error response - * @returns A Promise that resolves to an OAuthError instance - */ -export async function parseErrorResponse(input) { - const statusCode = input instanceof Response ? input.status : undefined; - const body = input instanceof Response ? await input.text() : input; - try { - const result = OAuthErrorResponseSchema.parse(JSON.parse(body)); - const { error, error_description, error_uri } = result; - const errorClass = OAUTH_ERRORS[error] || ServerError; - return new errorClass(error_description || '', error_uri); - } - catch (error) { - // Not a valid OAuth error response, but try to inform the user of the raw data anyway - const errorMessage = `${statusCode ? `HTTP ${statusCode}: ` : ''}Invalid OAuth error response: ${error}. Raw body: ${body}`; - return new ServerError(errorMessage); - } -} -/** - * Orchestrates the full auth flow with a server. - * - * This can be used as a single entry point for all authorization functionality, - * instead of linking together the other lower-level functions in this module. - */ -export async function auth(provider, options) { - try { - return await authInternal(provider, options); - } - catch (error) { - // Handle recoverable error types by invalidating credentials and retrying - if (error instanceof InvalidClientError || error instanceof UnauthorizedClientError) { - await provider.invalidateCredentials?.('all'); - return await authInternal(provider, options); - } - else if (error instanceof InvalidGrantError) { - await provider.invalidateCredentials?.('tokens'); - return await authInternal(provider, options); - } - // Throw otherwise - throw error; - } -} -async function authInternal(provider, { serverUrl, authorizationCode, scope, resourceMetadataUrl, fetchFn }) { - let resourceMetadata; - let authorizationServerUrl; - try { - resourceMetadata = await discoverOAuthProtectedResourceMetadata(serverUrl, { resourceMetadataUrl }, fetchFn); - if (resourceMetadata.authorization_servers && resourceMetadata.authorization_servers.length > 0) { - authorizationServerUrl = resourceMetadata.authorization_servers[0]; - } - } - catch { - // Ignore errors and fall back to /.well-known/oauth-authorization-server - } - /** - * If we don't get a valid authorization server metadata from protected resource metadata, - * fallback to the legacy MCP spec's implementation (version 2025-03-26): MCP server base URL acts as the Authorization server. - */ - if (!authorizationServerUrl) { - authorizationServerUrl = new URL('/', serverUrl); - } - const resource = await selectResourceURL(serverUrl, provider, resourceMetadata); - const metadata = await discoverAuthorizationServerMetadata(authorizationServerUrl, { - fetchFn - }); - // Handle client registration if needed - let clientInformation = await Promise.resolve(provider.clientInformation()); - if (!clientInformation) { - if (authorizationCode !== undefined) { - throw new Error('Existing OAuth client information is required when exchanging an authorization code'); - } - const supportsUrlBasedClientId = metadata?.client_id_metadata_document_supported === true; - const clientMetadataUrl = provider.clientMetadataUrl; - if (clientMetadataUrl && !isHttpsUrl(clientMetadataUrl)) { - throw new InvalidClientMetadataError(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${clientMetadataUrl}`); - } - const shouldUseUrlBasedClientId = supportsUrlBasedClientId && clientMetadataUrl; - if (shouldUseUrlBasedClientId) { - // SEP-991: URL-based Client IDs - clientInformation = { - client_id: clientMetadataUrl - }; - await provider.saveClientInformation?.(clientInformation); - } - else { - // Fallback to dynamic registration - if (!provider.saveClientInformation) { - throw new Error('OAuth client information must be saveable for dynamic registration'); - } - const fullInformation = await registerClient(authorizationServerUrl, { - metadata, - clientMetadata: provider.clientMetadata, - fetchFn - }); - await provider.saveClientInformation(fullInformation); - clientInformation = fullInformation; - } - } - // Non-interactive flows (e.g., client_credentials, jwt-bearer) don't need a redirect URL - const nonInteractiveFlow = !provider.redirectUrl; - // Exchange authorization code for tokens, or fetch tokens directly for non-interactive flows - if (authorizationCode !== undefined || nonInteractiveFlow) { - const tokens = await fetchToken(provider, authorizationServerUrl, { - metadata, - resource, - authorizationCode, - fetchFn - }); - await provider.saveTokens(tokens); - return 'AUTHORIZED'; - } - const tokens = await provider.tokens(); - // Handle token refresh or new authorization - if (tokens?.refresh_token) { - try { - // Attempt to refresh the token - const newTokens = await refreshAuthorization(authorizationServerUrl, { - metadata, - clientInformation, - refreshToken: tokens.refresh_token, - resource, - addClientAuthentication: provider.addClientAuthentication, - fetchFn - }); - await provider.saveTokens(newTokens); - return 'AUTHORIZED'; - } - catch (error) { - // If this is a ServerError, or an unknown type, log it out and try to continue. Otherwise, escalate so we can fix things and retry. - if (!(error instanceof OAuthError) || error instanceof ServerError) { - // Could not refresh OAuth tokens - } - else { - // Refresh failed for another reason, re-throw - throw error; - } - } - } - const state = provider.state ? await provider.state() : undefined; - // Start new authorization flow - const { authorizationUrl, codeVerifier } = await startAuthorization(authorizationServerUrl, { - metadata, - clientInformation, - state, - redirectUrl: provider.redirectUrl, - scope: scope || resourceMetadata?.scopes_supported?.join(' ') || provider.clientMetadata.scope, - resource - }); - await provider.saveCodeVerifier(codeVerifier); - await provider.redirectToAuthorization(authorizationUrl); - return 'REDIRECT'; -} -/** - * SEP-991: URL-based Client IDs - * Validate that the client_id is a valid URL with https scheme - */ -export function isHttpsUrl(value) { - if (!value) - return false; - try { - const url = new URL(value); - return url.protocol === 'https:' && url.pathname !== '/'; - } - catch { - return false; - } -} -export async function selectResourceURL(serverUrl, provider, resourceMetadata) { - const defaultResource = resourceUrlFromServerUrl(serverUrl); - // If provider has custom validation, delegate to it - if (provider.validateResourceURL) { - return await provider.validateResourceURL(defaultResource, resourceMetadata?.resource); - } - // Only include resource parameter when Protected Resource Metadata is present - if (!resourceMetadata) { - return undefined; - } - // Validate that the metadata's resource is compatible with our request - if (!checkResourceAllowed({ requestedResource: defaultResource, configuredResource: resourceMetadata.resource })) { - throw new Error(`Protected resource ${resourceMetadata.resource} does not match expected ${defaultResource} (or origin)`); - } - // Prefer the resource from metadata since it's what the server is telling us to request - return new URL(resourceMetadata.resource); -} -/** - * Extract resource_metadata, scope, and error from WWW-Authenticate header. - */ -export function extractWWWAuthenticateParams(res) { - const authenticateHeader = res.headers.get('WWW-Authenticate'); - if (!authenticateHeader) { - return {}; - } - const [type, scheme] = authenticateHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !scheme) { - return {}; - } - const resourceMetadataMatch = extractFieldFromWwwAuth(res, 'resource_metadata') || undefined; - let resourceMetadataUrl; - if (resourceMetadataMatch) { - try { - resourceMetadataUrl = new URL(resourceMetadataMatch); - } - catch { - // Ignore invalid URL - } - } - const scope = extractFieldFromWwwAuth(res, 'scope') || undefined; - const error = extractFieldFromWwwAuth(res, 'error') || undefined; - return { - resourceMetadataUrl, - scope, - error - }; -} -/** - * Extracts a specific field's value from the WWW-Authenticate header string. - * - * @param response The HTTP response object containing the headers. - * @param fieldName The name of the field to extract (e.g., "realm", "nonce"). - * @returns The field value - */ -function extractFieldFromWwwAuth(response, fieldName) { - const wwwAuthHeader = response.headers.get('WWW-Authenticate'); - if (!wwwAuthHeader) { - return null; - } - const pattern = new RegExp(`${fieldName}=(?:"([^"]+)"|([^\\s,]+))`); - const match = wwwAuthHeader.match(pattern); - if (match) { - // Pattern matches: field_name="value" or field_name=value (unquoted) - return match[1] || match[2]; - } - return null; -} -/** - * Extract resource_metadata from response header. - * @deprecated Use `extractWWWAuthenticateParams` instead. - */ -export function extractResourceMetadataUrl(res) { - const authenticateHeader = res.headers.get('WWW-Authenticate'); - if (!authenticateHeader) { - return undefined; - } - const [type, scheme] = authenticateHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !scheme) { - return undefined; - } - const regex = /resource_metadata="([^"]*)"/; - const match = regex.exec(authenticateHeader); - if (!match) { - return undefined; - } - try { - return new URL(match[1]); - } - catch { - return undefined; - } -} -/** - * Looks up RFC 9728 OAuth 2.0 Protected Resource Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - */ -export async function discoverOAuthProtectedResourceMetadata(serverUrl, opts, fetchFn = fetch) { - const response = await discoverMetadataWithFallback(serverUrl, 'oauth-protected-resource', fetchFn, { - protocolVersion: opts?.protocolVersion, - metadataUrl: opts?.resourceMetadataUrl - }); - if (!response || response.status === 404) { - await response?.body?.cancel(); - throw new Error(`Resource server does not implement OAuth 2.0 Protected Resource Metadata.`); - } - if (!response.ok) { - await response.body?.cancel(); - throw new Error(`HTTP ${response.status} trying to load well-known OAuth protected resource metadata.`); - } - return OAuthProtectedResourceMetadataSchema.parse(await response.json()); -} -/** - * Helper function to handle fetch with CORS retry logic - */ -async function fetchWithCorsRetry(url, headers, fetchFn = fetch) { - try { - return await fetchFn(url, { headers }); - } - catch (error) { - if (error instanceof TypeError) { - if (headers) { - // CORS errors come back as TypeError, retry without headers - return fetchWithCorsRetry(url, undefined, fetchFn); - } - else { - // We're getting CORS errors on retry too, return undefined - return undefined; - } - } - throw error; - } -} -/** - * Constructs the well-known path for auth-related metadata discovery - */ -function buildWellKnownPath(wellKnownPrefix, pathname = '', options = {}) { - // Strip trailing slash from pathname to avoid double slashes - if (pathname.endsWith('/')) { - pathname = pathname.slice(0, -1); - } - return options.prependPathname ? `${pathname}/.well-known/${wellKnownPrefix}` : `/.well-known/${wellKnownPrefix}${pathname}`; -} -/** - * Tries to discover OAuth metadata at a specific URL - */ -async function tryMetadataDiscovery(url, protocolVersion, fetchFn = fetch) { - const headers = { - 'MCP-Protocol-Version': protocolVersion - }; - return await fetchWithCorsRetry(url, headers, fetchFn); -} -/** - * Determines if fallback to root discovery should be attempted - */ -function shouldAttemptFallback(response, pathname) { - return !response || (response.status >= 400 && response.status < 500 && pathname !== '/'); -} -/** - * Generic function for discovering OAuth metadata with fallback support - */ -async function discoverMetadataWithFallback(serverUrl, wellKnownType, fetchFn, opts) { - const issuer = new URL(serverUrl); - const protocolVersion = opts?.protocolVersion ?? LATEST_PROTOCOL_VERSION; - let url; - if (opts?.metadataUrl) { - url = new URL(opts.metadataUrl); - } - else { - // Try path-aware discovery first - const wellKnownPath = buildWellKnownPath(wellKnownType, issuer.pathname); - url = new URL(wellKnownPath, opts?.metadataServerUrl ?? issuer); - url.search = issuer.search; - } - let response = await tryMetadataDiscovery(url, protocolVersion, fetchFn); - // If path-aware discovery fails with 404 and we're not already at root, try fallback to root discovery - if (!opts?.metadataUrl && shouldAttemptFallback(response, issuer.pathname)) { - const rootUrl = new URL(`/.well-known/${wellKnownType}`, issuer); - response = await tryMetadataDiscovery(rootUrl, protocolVersion, fetchFn); - } - return response; -} -/** - * Looks up RFC 8414 OAuth 2.0 Authorization Server Metadata. - * - * If the server returns a 404 for the well-known endpoint, this function will - * return `undefined`. Any other errors will be thrown as exceptions. - * - * @deprecated This function is deprecated in favor of `discoverAuthorizationServerMetadata`. - */ -export async function discoverOAuthMetadata(issuer, { authorizationServerUrl, protocolVersion } = {}, fetchFn = fetch) { - if (typeof issuer === 'string') { - issuer = new URL(issuer); - } - if (!authorizationServerUrl) { - authorizationServerUrl = issuer; - } - if (typeof authorizationServerUrl === 'string') { - authorizationServerUrl = new URL(authorizationServerUrl); - } - protocolVersion ?? (protocolVersion = LATEST_PROTOCOL_VERSION); - const response = await discoverMetadataWithFallback(authorizationServerUrl, 'oauth-authorization-server', fetchFn, { - protocolVersion, - metadataServerUrl: authorizationServerUrl - }); - if (!response || response.status === 404) { - await response?.body?.cancel(); - return undefined; - } - if (!response.ok) { - await response.body?.cancel(); - throw new Error(`HTTP ${response.status} trying to load well-known OAuth metadata`); - } - return OAuthMetadataSchema.parse(await response.json()); -} -/** - * Builds a list of discovery URLs to try for authorization server metadata. - * URLs are returned in priority order: - * 1. OAuth metadata at the given URL - * 2. OIDC metadata endpoints at the given URL - */ -export function buildDiscoveryUrls(authorizationServerUrl) { - const url = typeof authorizationServerUrl === 'string' ? new URL(authorizationServerUrl) : authorizationServerUrl; - const hasPath = url.pathname !== '/'; - const urlsToTry = []; - if (!hasPath) { - // Root path: https://example.com/.well-known/oauth-authorization-server - urlsToTry.push({ - url: new URL('/.well-known/oauth-authorization-server', url.origin), - type: 'oauth' - }); - // OIDC: https://example.com/.well-known/openid-configuration - urlsToTry.push({ - url: new URL(`/.well-known/openid-configuration`, url.origin), - type: 'oidc' - }); - return urlsToTry; - } - // Strip trailing slash from pathname to avoid double slashes - let pathname = url.pathname; - if (pathname.endsWith('/')) { - pathname = pathname.slice(0, -1); - } - // 1. OAuth metadata at the given URL - // Insert well-known before the path: https://example.com/.well-known/oauth-authorization-server/tenant1 - urlsToTry.push({ - url: new URL(`/.well-known/oauth-authorization-server${pathname}`, url.origin), - type: 'oauth' - }); - // 2. OIDC metadata endpoints - // RFC 8414 style: Insert /.well-known/openid-configuration before the path - urlsToTry.push({ - url: new URL(`/.well-known/openid-configuration${pathname}`, url.origin), - type: 'oidc' - }); - // OIDC Discovery 1.0 style: Append /.well-known/openid-configuration after the path - urlsToTry.push({ - url: new URL(`${pathname}/.well-known/openid-configuration`, url.origin), - type: 'oidc' - }); - return urlsToTry; -} -/** - * Discovers authorization server metadata with support for RFC 8414 OAuth 2.0 Authorization Server Metadata - * and OpenID Connect Discovery 1.0 specifications. - * - * This function implements a fallback strategy for authorization server discovery: - * 1. Attempts RFC 8414 OAuth metadata discovery first - * 2. If OAuth discovery fails, falls back to OpenID Connect Discovery - * - * @param authorizationServerUrl - The authorization server URL obtained from the MCP Server's - * protected resource metadata, or the MCP server's URL if the - * metadata was not found. - * @param options - Configuration options - * @param options.fetchFn - Optional fetch function for making HTTP requests, defaults to global fetch - * @param options.protocolVersion - MCP protocol version to use, defaults to LATEST_PROTOCOL_VERSION - * @returns Promise resolving to authorization server metadata, or undefined if discovery fails - */ -export async function discoverAuthorizationServerMetadata(authorizationServerUrl, { fetchFn = fetch, protocolVersion = LATEST_PROTOCOL_VERSION } = {}) { - const headers = { - 'MCP-Protocol-Version': protocolVersion, - Accept: 'application/json' - }; - // Get the list of URLs to try - const urlsToTry = buildDiscoveryUrls(authorizationServerUrl); - // Try each URL in order - for (const { url: endpointUrl, type } of urlsToTry) { - const response = await fetchWithCorsRetry(endpointUrl, headers, fetchFn); - if (!response) { - /** - * CORS error occurred - don't throw as the endpoint may not allow CORS, - * continue trying other possible endpoints - */ - continue; - } - if (!response.ok) { - await response.body?.cancel(); - // Continue looking for any 4xx response code. - if (response.status >= 400 && response.status < 500) { - continue; // Try next URL - } - throw new Error(`HTTP ${response.status} trying to load ${type === 'oauth' ? 'OAuth' : 'OpenID provider'} metadata from ${endpointUrl}`); - } - // Parse and validate based on type - if (type === 'oauth') { - return OAuthMetadataSchema.parse(await response.json()); - } - else { - return OpenIdProviderDiscoveryMetadataSchema.parse(await response.json()); - } - } - return undefined; -} -/** - * Begins the authorization flow with the given server, by generating a PKCE challenge and constructing the authorization URL. - */ -export async function startAuthorization(authorizationServerUrl, { metadata, clientInformation, redirectUrl, scope, state, resource }) { - let authorizationUrl; - if (metadata) { - authorizationUrl = new URL(metadata.authorization_endpoint); - if (!metadata.response_types_supported.includes(AUTHORIZATION_CODE_RESPONSE_TYPE)) { - throw new Error(`Incompatible auth server: does not support response type ${AUTHORIZATION_CODE_RESPONSE_TYPE}`); - } - if (metadata.code_challenge_methods_supported && - !metadata.code_challenge_methods_supported.includes(AUTHORIZATION_CODE_CHALLENGE_METHOD)) { - throw new Error(`Incompatible auth server: does not support code challenge method ${AUTHORIZATION_CODE_CHALLENGE_METHOD}`); - } - } - else { - authorizationUrl = new URL('/authorize', authorizationServerUrl); - } - // Generate PKCE challenge - const challenge = await pkceChallenge(); - const codeVerifier = challenge.code_verifier; - const codeChallenge = challenge.code_challenge; - authorizationUrl.searchParams.set('response_type', AUTHORIZATION_CODE_RESPONSE_TYPE); - authorizationUrl.searchParams.set('client_id', clientInformation.client_id); - authorizationUrl.searchParams.set('code_challenge', codeChallenge); - authorizationUrl.searchParams.set('code_challenge_method', AUTHORIZATION_CODE_CHALLENGE_METHOD); - authorizationUrl.searchParams.set('redirect_uri', String(redirectUrl)); - if (state) { - authorizationUrl.searchParams.set('state', state); - } - if (scope) { - authorizationUrl.searchParams.set('scope', scope); - } - if (scope?.includes('offline_access')) { - // if the request includes the OIDC-only "offline_access" scope, - // we need to set the prompt to "consent" to ensure the user is prompted to grant offline access - // https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess - authorizationUrl.searchParams.append('prompt', 'consent'); - } - if (resource) { - authorizationUrl.searchParams.set('resource', resource.href); - } - return { authorizationUrl, codeVerifier }; -} -/** - * Prepares token request parameters for an authorization code exchange. - * - * This is the default implementation used by fetchToken when the provider - * doesn't implement prepareTokenRequest. - * - * @param authorizationCode - The authorization code received from the authorization endpoint - * @param codeVerifier - The PKCE code verifier - * @param redirectUri - The redirect URI used in the authorization request - * @returns URLSearchParams for the authorization_code grant - */ -export function prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, redirectUri) { - return new URLSearchParams({ - grant_type: 'authorization_code', - code: authorizationCode, - code_verifier: codeVerifier, - redirect_uri: String(redirectUri) - }); -} -/** - * Internal helper to execute a token request with the given parameters. - * Used by exchangeAuthorization, refreshAuthorization, and fetchToken. - */ -async function executeTokenRequest(authorizationServerUrl, { metadata, tokenRequestParams, clientInformation, addClientAuthentication, resource, fetchFn }) { - const tokenUrl = metadata?.token_endpoint ? new URL(metadata.token_endpoint) : new URL('/token', authorizationServerUrl); - const headers = new Headers({ - 'Content-Type': 'application/x-www-form-urlencoded', - Accept: 'application/json' - }); - if (resource) { - tokenRequestParams.set('resource', resource.href); - } - if (addClientAuthentication) { - await addClientAuthentication(headers, tokenRequestParams, tokenUrl, metadata); - } - else if (clientInformation) { - const supportedMethods = metadata?.token_endpoint_auth_methods_supported ?? []; - const authMethod = selectClientAuthMethod(clientInformation, supportedMethods); - applyClientAuthentication(authMethod, clientInformation, headers, tokenRequestParams); - } - const response = await (fetchFn ?? fetch)(tokenUrl, { - method: 'POST', - headers, - body: tokenRequestParams - }); - if (!response.ok) { - throw await parseErrorResponse(response); - } - return OAuthTokensSchema.parse(await response.json()); -} -/** - * Exchanges an authorization code for an access token with the given server. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Falls back to appropriate defaults when server metadata is unavailable - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, auth code, etc. - * @returns Promise resolving to OAuth tokens - * @throws {Error} When token exchange fails or authentication is invalid - */ -export async function exchangeAuthorization(authorizationServerUrl, { metadata, clientInformation, authorizationCode, codeVerifier, redirectUri, resource, addClientAuthentication, fetchFn }) { - const tokenRequestParams = prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, redirectUri); - return executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation, - addClientAuthentication, - resource, - fetchFn - }); -} -/** - * Exchange a refresh token for an updated access token. - * - * Supports multiple client authentication methods as specified in OAuth 2.1: - * - Automatically selects the best authentication method based on server support - * - Preserves the original refresh token if a new one is not returned - * - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration object containing client info, refresh token, etc. - * @returns Promise resolving to OAuth tokens (preserves original refresh_token if not replaced) - * @throws {Error} When token refresh fails or authentication is invalid - */ -export async function refreshAuthorization(authorizationServerUrl, { metadata, clientInformation, refreshToken, resource, addClientAuthentication, fetchFn }) { - const tokenRequestParams = new URLSearchParams({ - grant_type: 'refresh_token', - refresh_token: refreshToken - }); - const tokens = await executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation, - addClientAuthentication, - resource, - fetchFn - }); - // Preserve original refresh token if server didn't return a new one - return { refresh_token: refreshToken, ...tokens }; -} -/** - * Unified token fetching that works with any grant type via provider.prepareTokenRequest(). - * - * This function provides a single entry point for obtaining tokens regardless of the - * OAuth grant type. The provider's prepareTokenRequest() method determines which grant - * to use and supplies the grant-specific parameters. - * - * @param provider - OAuth client provider that implements prepareTokenRequest() - * @param authorizationServerUrl - The authorization server's base URL - * @param options - Configuration for the token request - * @returns Promise resolving to OAuth tokens - * @throws {Error} When provider doesn't implement prepareTokenRequest or token fetch fails - * - * @example - * // Provider for client_credentials: - * class MyProvider implements OAuthClientProvider { - * prepareTokenRequest(scope) { - * const params = new URLSearchParams({ grant_type: 'client_credentials' }); - * if (scope) params.set('scope', scope); - * return params; - * } - * // ... other methods - * } - * - * const tokens = await fetchToken(provider, authServerUrl, { metadata }); - */ -export async function fetchToken(provider, authorizationServerUrl, { metadata, resource, authorizationCode, fetchFn } = {}) { - const scope = provider.clientMetadata.scope; - // Use provider's prepareTokenRequest if available, otherwise fall back to authorization_code - let tokenRequestParams; - if (provider.prepareTokenRequest) { - tokenRequestParams = await provider.prepareTokenRequest(scope); - } - // Default to authorization_code grant if no custom prepareTokenRequest - if (!tokenRequestParams) { - if (!authorizationCode) { - throw new Error('Either provider.prepareTokenRequest() or authorizationCode is required'); - } - if (!provider.redirectUrl) { - throw new Error('redirectUrl is required for authorization_code flow'); - } - const codeVerifier = await provider.codeVerifier(); - tokenRequestParams = prepareAuthorizationCodeRequest(authorizationCode, codeVerifier, provider.redirectUrl); - } - const clientInformation = await provider.clientInformation(); - return executeTokenRequest(authorizationServerUrl, { - metadata, - tokenRequestParams, - clientInformation: clientInformation ?? undefined, - addClientAuthentication: provider.addClientAuthentication, - resource, - fetchFn - }); -} -/** - * Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591. - */ -export async function registerClient(authorizationServerUrl, { metadata, clientMetadata, fetchFn }) { - let registrationUrl; - if (metadata) { - if (!metadata.registration_endpoint) { - throw new Error('Incompatible auth server: does not support dynamic client registration'); - } - registrationUrl = new URL(metadata.registration_endpoint); - } - else { - registrationUrl = new URL('/register', authorizationServerUrl); - } - const response = await (fetchFn ?? fetch)(registrationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(clientMetadata) - }); - if (!response.ok) { - throw await parseErrorResponse(response); - } - return OAuthClientInformationFullSchema.parse(await response.json()); -} -//# sourceMappingURL=auth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map deleted file mode 100644 index 6d43f39..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/client/auth.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAQH,wBAAwB,EAExB,qCAAqC,EACxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,gCAAgC,EAChC,mBAAmB,EACnB,oCAAoC,EACpC,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EACH,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,uBAAuB,EAC1B,MAAM,0BAA0B,CAAC;AAsKl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/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts deleted file mode 100644 index efc0186..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +++ /dev/null @@ -1,588 +0,0 @@ -import { Protocol, type ProtocolOptions, type RequestOptions } from '../shared/protocol.js'; -import type { Transport } from '../shared/transport.js'; -import { type CallToolRequest, CallToolResultSchema, type ClientCapabilities, type ClientNotification, type ClientRequest, type ClientResult, type CompatibilityCallToolResultSchema, type CompleteRequest, type GetPromptRequest, type Implementation, type ListPromptsRequest, type ListResourcesRequest, type ListResourceTemplatesRequest, type ListToolsRequest, type LoggingLevel, type ReadResourceRequest, type ServerCapabilities, type SubscribeRequest, type UnsubscribeRequest, type ListChangedHandlers, type Request, type Notification, type Result } from '../types.js'; -import type { jsonSchemaValidator } from '../validation/types.js'; -import { AnyObjectSchema, SchemaOutput } from '../server/zod-compat.js'; -import type { RequestHandlerExtra } from '../shared/protocol.js'; -import { ExperimentalClientTasks } from '../experimental/tasks/client.js'; -/** - * Determines which elicitation modes are supported based on declared client capabilities. - * - * According to the spec: - * - An empty elicitation capability object defaults to form mode support (backwards compatibility) - * - URL mode is only supported if explicitly declared - * - * @param capabilities - The client's elicitation capabilities - * @returns An object indicating which modes are supported - */ -export declare function getSupportedElicitationModes(capabilities: ClientCapabilities['elicitation']): { - supportsFormMode: boolean; - supportsUrlMode: boolean; -}; -export type ClientOptions = ProtocolOptions & { - /** - * Capabilities to advertise as being supported by this client. - */ - capabilities?: ClientCapabilities; - /** - * JSON Schema validator for tool output validation. - * - * The validator is used to validate structured content returned by tools - * against their declared output schemas. - * - * @default AjvJsonSchemaValidator - * - * @example - * ```typescript - * // ajv - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new AjvJsonSchemaValidator() - * } - * ); - * - * // @cfworker/json-schema - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new CfWorkerJsonSchemaValidator() - * } - * ); - * ``` - */ - jsonSchemaValidator?: jsonSchemaValidator; - /** - * Configure handlers for list changed notifications (tools, prompts, resources). - * - * @example - * ```typescript - * const client = new Client( - * { name: 'my-client', version: '1.0.0' }, - * { - * listChanged: { - * tools: { - * onChanged: (error, tools) => { - * if (error) { - * console.error('Failed to refresh tools:', error); - * return; - * } - * console.log('Tools updated:', tools); - * } - * }, - * prompts: { - * onChanged: (error, prompts) => console.log('Prompts updated:', prompts) - * } - * } - * } - * ); - * ``` - */ - listChanged?: ListChangedHandlers; -}; -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed client - * const client = new Client({ - * name: "CustomClient", - * version: "1.0.0" - * }) - * ``` - */ -export declare class Client extends Protocol { - private _clientInfo; - private _serverCapabilities?; - private _serverVersion?; - private _capabilities; - private _instructions?; - private _jsonSchemaValidator; - private _cachedToolOutputValidators; - private _cachedKnownTaskTools; - private _cachedRequiredTaskTools; - private _experimental?; - private _listChangedDebounceTimers; - private _pendingListChangedConfig?; - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo: Implementation, options?: ClientOptions); - /** - * Set up handlers for list changed notifications based on config and server capabilities. - * This should only be called after initialization when server capabilities are known. - * Handlers are silently skipped if the server doesn't advertise the corresponding listChanged capability. - * @internal - */ - private _setupListChangedHandlers; - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalClientTasks; - }; - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities: ClientCapabilities): void; - /** - * Override request handler registration to enforce client-side validation for elicitation. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => ClientResult | ResultT | Promise): void; - protected assertCapability(capability: keyof ServerCapabilities, method: string): void; - connect(transport: Transport, options?: RequestOptions): Promise; - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities(): ServerCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion(): Implementation | undefined; - /** - * After initialization has completed, this may be populated with information about the server's instructions. - */ - getInstructions(): string | undefined; - protected assertCapabilityForMethod(method: RequestT['method']): void; - protected assertNotificationCapability(method: NotificationT['method']): void; - protected assertRequestHandlerCapability(method: string): void; - protected assertTaskCapability(method: string): void; - protected assertTaskHandlerCapability(method: string): void; - ping(options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - complete(params: CompleteRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - completion: { - [x: string]: unknown; - values: string[]; - total?: number | undefined; - hasMore?: boolean | undefined; - }; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - setLoggingLevel(level: LoggingLevel, options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - getPrompt(params: GetPromptRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - messages: { - role: "user" | "assistant"; - content: { - type: "text"; - text: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "image"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "audio"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "resource"; - resource: { - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - }; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - uri: string; - name: string; - type: "resource_link"; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - description?: string | undefined; - }>; - listPrompts(params?: ListPromptsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - prompts: { - name: string; - description?: string | undefined; - arguments?: { - name: string; - description?: string | undefined; - required?: boolean | undefined; - }[] | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - listResources(params?: ListResourcesRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - resources: { - uri: string; - name: string; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - listResourceTemplates(params?: ListResourceTemplatesRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - resourceTemplates: { - uriTemplate: string; - name: string; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - readResource(params: ReadResourceRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - contents: ({ - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - })[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - subscribeResource(params: SubscribeRequest['params'], options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - unsubscribeResource(params: UnsubscribeRequest['params'], options?: RequestOptions): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Calls a tool and waits for the result. Automatically validates structured output if the tool has an outputSchema. - * - * For task-based execution with streaming behavior, use client.experimental.tasks.callToolStream() instead. - */ - callTool(params: CallToolRequest['params'], resultSchema?: typeof CallToolResultSchema | typeof CompatibilityCallToolResultSchema, options?: RequestOptions): Promise<{ - [x: string]: unknown; - content: ({ - type: "text"; - text: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "image"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "audio"; - data: string; - mimeType: string; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - type: "resource"; - resource: { - uri: string; - text: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - } | { - uri: string; - blob: string; - mimeType?: string | undefined; - _meta?: Record | undefined; - }; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: Record | undefined; - } | { - uri: string; - name: string; - type: "resource_link"; - description?: string | undefined; - mimeType?: string | undefined; - annotations?: { - audience?: ("user" | "assistant")[] | undefined; - priority?: number | undefined; - lastModified?: string | undefined; - } | undefined; - _meta?: { - [x: string]: unknown; - } | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - })[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - structuredContent?: Record | undefined; - isError?: boolean | undefined; - } | { - [x: string]: unknown; - toolResult: unknown; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - private isToolTask; - /** - * Check if a tool requires task-based execution. - * Unlike isToolTask which includes 'optional' tools, this only checks for 'required'. - */ - private isToolTaskRequired; - /** - * Cache validators for tool output schemas. - * Called after listTools() to pre-compile validators for better performance. - */ - private cacheToolMetadata; - /** - * Get cached validator for a tool - */ - private getToolOutputValidator; - listTools(params?: ListToolsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - tools: { - inputSchema: { - [x: string]: unknown; - type: "object"; - properties?: Record | undefined; - required?: string[] | undefined; - }; - name: string; - description?: string | undefined; - outputSchema?: { - [x: string]: unknown; - type: "object"; - properties?: Record | undefined; - required?: string[] | undefined; - } | undefined; - annotations?: { - title?: string | undefined; - readOnlyHint?: boolean | undefined; - destructiveHint?: boolean | undefined; - idempotentHint?: boolean | undefined; - openWorldHint?: boolean | undefined; - } | undefined; - execution?: { - taskSupport?: "optional" | "required" | "forbidden" | undefined; - } | undefined; - _meta?: Record | undefined; - icons?: { - src: string; - mimeType?: string | undefined; - sizes?: string[] | undefined; - theme?: "light" | "dark" | undefined; - }[] | undefined; - title?: string | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - nextCursor?: string | undefined; - }>; - /** - * Set up a single list changed handler. - * @internal - */ - private _setupListChangedHandler; - sendRootsListChanged(): Promise; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map deleted file mode 100644 index f66bbdb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACH,KAAK,eAAe,EACpB,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EAIpB,KAAK,gBAAgB,EAErB,KAAK,cAAc,EAGnB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,4BAA4B,EAEjC,KAAK,gBAAgB,EAErB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EAExB,KAAK,kBAAkB,EAEvB,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EAWvB,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,MAAM,EACd,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAuC,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACvG,OAAO,EACH,eAAe,EACf,YAAY,EAMf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAiD1E;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,kBAAkB,CAAC,aAAa,CAAC,GAAG;IAC3F,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC5B,CAaA;AAED,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB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AAC,iBAAiB;IAuBzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAIxB,SAAS,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAS7E;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAwD1B,oBAAoB;CAG7B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js deleted file mode 100644 index 9b1e2f3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +++ /dev/null @@ -1,622 +0,0 @@ -import { mergeCapabilities, Protocol } from '../shared/protocol.js'; -import { CallToolResultSchema, CompleteResultSchema, EmptyResultSchema, ErrorCode, GetPromptResultSchema, InitializeResultSchema, LATEST_PROTOCOL_VERSION, ListPromptsResultSchema, ListResourcesResultSchema, ListResourceTemplatesResultSchema, ListToolsResultSchema, McpError, ReadResourceResultSchema, SUPPORTED_PROTOCOL_VERSIONS, ElicitResultSchema, ElicitRequestSchema, CreateTaskResultSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ToolListChangedNotificationSchema, PromptListChangedNotificationSchema, ResourceListChangedNotificationSchema, ListChangedOptionsBaseSchema } from '../types.js'; -import { AjvJsonSchemaValidator } from '../validation/ajv-provider.js'; -import { getObjectShape, isZ4Schema, safeParse } from '../server/zod-compat.js'; -import { ExperimentalClientTasks } from '../experimental/tasks/client.js'; -import { assertToolsCallTaskCapability, assertClientRequestTaskCapability } from '../experimental/tasks/helpers.js'; -/** - * Elicitation default application helper. Applies defaults to the data based on the schema. - * - * @param schema - The schema to apply defaults to. - * @param data - The data to apply defaults to. - */ -function applyElicitationDefaults(schema, data) { - if (!schema || data === null || typeof data !== 'object') - return; - // Handle object properties - if (schema.type === 'object' && schema.properties && typeof schema.properties === 'object') { - const obj = data; - const props = schema.properties; - for (const key of Object.keys(props)) { - const propSchema = props[key]; - // If missing or explicitly undefined, apply default if present - if (obj[key] === undefined && Object.prototype.hasOwnProperty.call(propSchema, 'default')) { - obj[key] = propSchema.default; - } - // Recurse into existing nested objects/arrays - if (obj[key] !== undefined) { - applyElicitationDefaults(propSchema, obj[key]); - } - } - } - if (Array.isArray(schema.anyOf)) { - for (const sub of schema.anyOf) { - // Skip boolean schemas (true/false are valid JSON Schemas but have no defaults) - if (typeof sub !== 'boolean') { - applyElicitationDefaults(sub, data); - } - } - } - // Combine schemas - if (Array.isArray(schema.oneOf)) { - for (const sub of schema.oneOf) { - // Skip boolean schemas (true/false are valid JSON Schemas but have no defaults) - if (typeof sub !== 'boolean') { - applyElicitationDefaults(sub, data); - } - } - } -} -/** - * Determines which elicitation modes are supported based on declared client capabilities. - * - * According to the spec: - * - An empty elicitation capability object defaults to form mode support (backwards compatibility) - * - URL mode is only supported if explicitly declared - * - * @param capabilities - The client's elicitation capabilities - * @returns An object indicating which modes are supported - */ -export function getSupportedElicitationModes(capabilities) { - if (!capabilities) { - return { supportsFormMode: false, supportsUrlMode: false }; - } - const hasFormCapability = capabilities.form !== undefined; - const hasUrlCapability = capabilities.url !== undefined; - // If neither form nor url are explicitly declared, form mode is supported (backwards compatibility) - const supportsFormMode = hasFormCapability || (!hasFormCapability && !hasUrlCapability); - const supportsUrlMode = hasUrlCapability; - return { supportsFormMode, supportsUrlMode }; -} -/** - * An MCP client on top of a pluggable transport. - * - * The client will automatically begin the initialization flow with the server when connect() is called. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed client - * const client = new Client({ - * name: "CustomClient", - * version: "1.0.0" - * }) - * ``` - */ -export class Client extends Protocol { - /** - * Initializes this client with the given name and version information. - */ - constructor(_clientInfo, options) { - super(options); - this._clientInfo = _clientInfo; - this._cachedToolOutputValidators = new Map(); - this._cachedKnownTaskTools = new Set(); - this._cachedRequiredTaskTools = new Set(); - this._listChangedDebounceTimers = new Map(); - this._capabilities = options?.capabilities ?? {}; - this._jsonSchemaValidator = options?.jsonSchemaValidator ?? new AjvJsonSchemaValidator(); - // Store list changed config for setup after connection (when we know server capabilities) - if (options?.listChanged) { - this._pendingListChangedConfig = options.listChanged; - } - } - /** - * Set up handlers for list changed notifications based on config and server capabilities. - * This should only be called after initialization when server capabilities are known. - * Handlers are silently skipped if the server doesn't advertise the corresponding listChanged capability. - * @internal - */ - _setupListChangedHandlers(config) { - if (config.tools && this._serverCapabilities?.tools?.listChanged) { - this._setupListChangedHandler('tools', ToolListChangedNotificationSchema, config.tools, async () => { - const result = await this.listTools(); - return result.tools; - }); - } - if (config.prompts && this._serverCapabilities?.prompts?.listChanged) { - this._setupListChangedHandler('prompts', PromptListChangedNotificationSchema, config.prompts, async () => { - const result = await this.listPrompts(); - return result.prompts; - }); - } - if (config.resources && this._serverCapabilities?.resources?.listChanged) { - this._setupListChangedHandler('resources', ResourceListChangedNotificationSchema, config.resources, async () => { - const result = await this.listResources(); - return result.resources; - }); - } - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new ExperimentalClientTasks(this) - }; - } - return this._experimental; - } - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities) { - if (this.transport) { - throw new Error('Cannot register capabilities after connecting to transport'); - } - this._capabilities = mergeCapabilities(this._capabilities, capabilities); - } - /** - * Override request handler registration to enforce client-side validation for elicitation. - */ - setRequestHandler(requestSchema, handler) { - const shape = getObjectShape(requestSchema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value using type-safe property access - let methodValue; - if (isZ4Schema(methodSchema)) { - const v4Schema = methodSchema; - const v4Def = v4Schema._zod?.def; - methodValue = v4Def?.value ?? v4Schema.value; - } - else { - const v3Schema = methodSchema; - const legacyDef = v3Schema._def; - methodValue = legacyDef?.value ?? v3Schema.value; - } - if (typeof methodValue !== 'string') { - throw new Error('Schema method literal must be a string'); - } - const method = methodValue; - if (method === 'elicitation/create') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = safeParse(ElicitRequestSchema, request); - if (!validatedRequest.success) { - // Type guard: if success is false, error is guaranteed to exist - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid elicitation request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - params.mode = params.mode ?? 'form'; - const { supportsFormMode, supportsUrlMode } = getSupportedElicitationModes(this._capabilities.elicitation); - if (params.mode === 'form' && !supportsFormMode) { - throw new McpError(ErrorCode.InvalidParams, 'Client does not support form-mode elicitation requests'); - } - if (params.mode === 'url' && !supportsUrlMode) { - throw new McpError(ErrorCode.InvalidParams, 'Client does not support URL-mode elicitation requests'); - } - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = safeParse(CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against ElicitResultSchema - const validationResult = safeParse(ElicitResultSchema, result); - if (!validationResult.success) { - // Type guard: if success is false, error is guaranteed to exist - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid elicitation result: ${errorMessage}`); - } - const validatedResult = validationResult.data; - const requestedSchema = params.mode === 'form' ? params.requestedSchema : undefined; - if (params.mode === 'form' && validatedResult.action === 'accept' && validatedResult.content && requestedSchema) { - if (this._capabilities.elicitation?.form?.applyDefaults) { - try { - applyElicitationDefaults(requestedSchema, validatedResult.content); - } - catch { - // gracefully ignore errors in default application - } - } - } - return validatedResult; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - if (method === 'sampling/createMessage') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = safeParse(CreateMessageRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid sampling request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = safeParse(CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against CreateMessageResultSchema - const validationResult = safeParse(CreateMessageResultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid sampling result: ${errorMessage}`); - } - return validationResult.data; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - // Other handlers use default behavior - return super.setRequestHandler(requestSchema, handler); - } - assertCapability(capability, method) { - if (!this._serverCapabilities?.[capability]) { - throw new Error(`Server does not support ${capability} (required for ${method})`); - } - } - async connect(transport, options) { - await super.connect(transport); - // When transport sessionId is already set this means we are trying to reconnect. - // In this case we don't need to initialize again. - if (transport.sessionId !== undefined) { - return; - } - try { - const result = await this.request({ - method: 'initialize', - params: { - protocolVersion: LATEST_PROTOCOL_VERSION, - capabilities: this._capabilities, - clientInfo: this._clientInfo - } - }, InitializeResultSchema, options); - if (result === undefined) { - throw new Error(`Server sent invalid initialize result: ${result}`); - } - if (!SUPPORTED_PROTOCOL_VERSIONS.includes(result.protocolVersion)) { - throw new Error(`Server's protocol version is not supported: ${result.protocolVersion}`); - } - this._serverCapabilities = result.capabilities; - this._serverVersion = result.serverInfo; - // HTTP transports must set the protocol version in each header after initialization. - if (transport.setProtocolVersion) { - transport.setProtocolVersion(result.protocolVersion); - } - this._instructions = result.instructions; - await this.notification({ - method: 'notifications/initialized' - }); - // Set up list changed handlers now that we know server capabilities - if (this._pendingListChangedConfig) { - this._setupListChangedHandlers(this._pendingListChangedConfig); - this._pendingListChangedConfig = undefined; - } - } - catch (error) { - // Disconnect if initialization fails. - void this.close(); - throw error; - } - } - /** - * After initialization has completed, this will be populated with the server's reported capabilities. - */ - getServerCapabilities() { - return this._serverCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the server's name and version. - */ - getServerVersion() { - return this._serverVersion; - } - /** - * After initialization has completed, this may be populated with information about the server's instructions. - */ - getInstructions() { - return this._instructions; - } - assertCapabilityForMethod(method) { - switch (method) { - case 'logging/setLevel': - if (!this._serverCapabilities?.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'prompts/get': - case 'prompts/list': - if (!this._serverCapabilities?.prompts) { - throw new Error(`Server does not support prompts (required for ${method})`); - } - break; - case 'resources/list': - case 'resources/templates/list': - case 'resources/read': - case 'resources/subscribe': - case 'resources/unsubscribe': - if (!this._serverCapabilities?.resources) { - throw new Error(`Server does not support resources (required for ${method})`); - } - if (method === 'resources/subscribe' && !this._serverCapabilities.resources.subscribe) { - throw new Error(`Server does not support resource subscriptions (required for ${method})`); - } - break; - case 'tools/call': - case 'tools/list': - if (!this._serverCapabilities?.tools) { - throw new Error(`Server does not support tools (required for ${method})`); - } - break; - case 'completion/complete': - if (!this._serverCapabilities?.completions) { - throw new Error(`Server does not support completions (required for ${method})`); - } - break; - case 'initialize': - // No specific capability required for initialize - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertNotificationCapability(method) { - switch (method) { - case 'notifications/roots/list_changed': - if (!this._capabilities.roots?.listChanged) { - throw new Error(`Client does not support roots list changed notifications (required for ${method})`); - } - break; - case 'notifications/initialized': - // No specific capability required for initialized - break; - case 'notifications/cancelled': - // Cancellation notifications are always allowed - break; - case 'notifications/progress': - // Progress notifications are always allowed - break; - } - } - assertRequestHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - switch (method) { - case 'sampling/createMessage': - if (!this._capabilities.sampling) { - throw new Error(`Client does not support sampling capability (required for ${method})`); - } - break; - case 'elicitation/create': - if (!this._capabilities.elicitation) { - throw new Error(`Client does not support elicitation capability (required for ${method})`); - } - break; - case 'roots/list': - if (!this._capabilities.roots) { - throw new Error(`Client does not support roots capability (required for ${method})`); - } - break; - case 'tasks/get': - case 'tasks/list': - case 'tasks/result': - case 'tasks/cancel': - if (!this._capabilities.tasks) { - throw new Error(`Client does not support tasks capability (required for ${method})`); - } - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertTaskCapability(method) { - assertToolsCallTaskCapability(this._serverCapabilities?.tasks?.requests, method, 'Server'); - } - assertTaskHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - assertClientRequestTaskCapability(this._capabilities.tasks?.requests, method, 'Client'); - } - async ping(options) { - return this.request({ method: 'ping' }, EmptyResultSchema, options); - } - async complete(params, options) { - return this.request({ method: 'completion/complete', params }, CompleteResultSchema, options); - } - async setLoggingLevel(level, options) { - return this.request({ method: 'logging/setLevel', params: { level } }, EmptyResultSchema, options); - } - async getPrompt(params, options) { - return this.request({ method: 'prompts/get', params }, GetPromptResultSchema, options); - } - async listPrompts(params, options) { - return this.request({ method: 'prompts/list', params }, ListPromptsResultSchema, options); - } - async listResources(params, options) { - return this.request({ method: 'resources/list', params }, ListResourcesResultSchema, options); - } - async listResourceTemplates(params, options) { - return this.request({ method: 'resources/templates/list', params }, ListResourceTemplatesResultSchema, options); - } - async readResource(params, options) { - return this.request({ method: 'resources/read', params }, ReadResourceResultSchema, options); - } - async subscribeResource(params, options) { - return this.request({ method: 'resources/subscribe', params }, EmptyResultSchema, options); - } - async unsubscribeResource(params, options) { - return this.request({ method: 'resources/unsubscribe', params }, EmptyResultSchema, options); - } - /** - * Calls a tool and waits for the result. Automatically validates structured output if the tool has an outputSchema. - * - * For task-based execution with streaming behavior, use client.experimental.tasks.callToolStream() instead. - */ - async callTool(params, resultSchema = CallToolResultSchema, options) { - // Guard: required-task tools need experimental API - if (this.isToolTaskRequired(params.name)) { - throw new McpError(ErrorCode.InvalidRequest, `Tool "${params.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`); - } - const result = await this.request({ method: 'tools/call', params }, resultSchema, options); - // Check if the tool has an outputSchema - const validator = this.getToolOutputValidator(params.name); - if (validator) { - // If tool has outputSchema, it MUST return structuredContent (unless it's an error) - if (!result.structuredContent && !result.isError) { - throw new McpError(ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`); - } - // Only validate structured content if present (not when there's an error) - if (result.structuredContent) { - try { - // Validate the structured content against the schema - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - throw new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`); - } - } - catch (error) { - if (error instanceof McpError) { - throw error; - } - throw new McpError(ErrorCode.InvalidParams, `Failed to validate structured content: ${error instanceof Error ? error.message : String(error)}`); - } - } - } - return result; - } - isToolTask(toolName) { - if (!this._serverCapabilities?.tasks?.requests?.tools?.call) { - return false; - } - return this._cachedKnownTaskTools.has(toolName); - } - /** - * Check if a tool requires task-based execution. - * Unlike isToolTask which includes 'optional' tools, this only checks for 'required'. - */ - isToolTaskRequired(toolName) { - return this._cachedRequiredTaskTools.has(toolName); - } - /** - * Cache validators for tool output schemas. - * Called after listTools() to pre-compile validators for better performance. - */ - cacheToolMetadata(tools) { - this._cachedToolOutputValidators.clear(); - this._cachedKnownTaskTools.clear(); - this._cachedRequiredTaskTools.clear(); - for (const tool of tools) { - // If the tool has an outputSchema, create and cache the validator - if (tool.outputSchema) { - const toolValidator = this._jsonSchemaValidator.getValidator(tool.outputSchema); - this._cachedToolOutputValidators.set(tool.name, toolValidator); - } - // If the tool supports task-based execution, cache that information - const taskSupport = tool.execution?.taskSupport; - if (taskSupport === 'required' || taskSupport === 'optional') { - this._cachedKnownTaskTools.add(tool.name); - } - if (taskSupport === 'required') { - this._cachedRequiredTaskTools.add(tool.name); - } - } - } - /** - * Get cached validator for a tool - */ - getToolOutputValidator(toolName) { - return this._cachedToolOutputValidators.get(toolName); - } - async listTools(params, options) { - const result = await this.request({ method: 'tools/list', params }, ListToolsResultSchema, options); - // Cache the tools and their output schemas for future validation - this.cacheToolMetadata(result.tools); - return result; - } - /** - * Set up a single list changed handler. - * @internal - */ - _setupListChangedHandler(listType, notificationSchema, options, fetcher) { - // Validate options using Zod schema (validates autoRefresh and debounceMs) - const parseResult = ListChangedOptionsBaseSchema.safeParse(options); - if (!parseResult.success) { - throw new Error(`Invalid ${listType} listChanged options: ${parseResult.error.message}`); - } - // Validate callback - if (typeof options.onChanged !== 'function') { - throw new Error(`Invalid ${listType} listChanged options: onChanged must be a function`); - } - const { autoRefresh, debounceMs } = parseResult.data; - const { onChanged } = options; - const refresh = async () => { - if (!autoRefresh) { - onChanged(null, null); - return; - } - try { - const items = await fetcher(); - onChanged(null, items); - } - catch (e) { - const error = e instanceof Error ? e : new Error(String(e)); - onChanged(error, null); - } - }; - const handler = () => { - if (debounceMs) { - // Clear any pending debounce timer for this list type - const existingTimer = this._listChangedDebounceTimers.get(listType); - if (existingTimer) { - clearTimeout(existingTimer); - } - // Set up debounced refresh - const timer = setTimeout(refresh, debounceMs); - this._listChangedDebounceTimers.set(listType, timer); - } - else { - // No debounce, refresh immediately - refresh(); - } - }; - // Register notification handler - this.setNotificationHandler(notificationSchema, handler); - } - async sendRootsListChanged() { - return this.notification({ method: 'notifications/roots/list_changed' }); - } -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map deleted file mode 100644 index 2799f44..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAA6C,MAAM,uBAAuB,CAAC;AAG/G,OAAO,EAEH,oBAAoB,EAOpB,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EAET,qBAAqB,EAErB,sBAAsB,EACtB,uBAAuB,EAEvB,uBAAuB,EAEvB,yBAAyB,EAEzB,iCAAiC,EAEjC,qBAAqB,EAErB,QAAQ,EAER,wBAAwB,EAExB,2BAA2B,EAI3B,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,iCAAiC,EACjC,mCAAmC,EACnC,qCAAqC,EAErC,4BAA4B,EAK/B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAGH,cAAc,EACd,UAAU,EACV,SAAS,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAEpH;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,MAAkC,EAAE,IAAa;IAC/E,IAAI,CAAC,MAAM,IAAI,IAAI,KAAK,IAAI,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,IAAI,aAAa,EAAE,CAAC;oBAChB,YAAY,CAAC,aAAa,CAAC,CAAC;gBAChC,CAAC;gBAED,2BAA2B;gBAC3B,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBAC9C,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YACzD,CAAC;iBAAM,CAAC;gBACJ,mCAAmC;gBACnC,OAAO,EAAE,CAAC;YACd,CAAC;QACL,CAAC,CAAC;QAEF,gCAAgC;QAChC,IAAI,CAAC,sBAAsB,CAAC,kBAAqC,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,oBAAoB;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,kCAAkC,EAAE,CAAC,CAAC;IAC7E,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts deleted file mode 100644 index 726ac57..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { OAuthClientProvider } from './auth.js'; -import { FetchLike } from '../shared/transport.js'; -/** - * Middleware function that wraps and enhances fetch functionality. - * Takes a fetch handler and returns an enhanced fetch handler. - */ -export type Middleware = (next: FetchLike) => FetchLike; -/** - * Creates a fetch wrapper that handles OAuth authentication automatically. - * - * This wrapper will: - * - Add Authorization headers with access tokens - * - Handle 401 responses by attempting re-authentication - * - Retry the original request after successful auth - * - Handle OAuth errors appropriately (InvalidClientError, etc.) - * - * The baseUrl parameter is optional and defaults to using the domain from the request URL. - * However, you should explicitly provide baseUrl when: - * - Making requests to multiple subdomains (e.g., api.example.com, cdn.example.com) - * - Using API paths that differ from OAuth discovery paths (e.g., requesting /api/v1/data but OAuth is at /) - * - The OAuth server is on a different domain than your API requests - * - You want to ensure consistent OAuth behavior regardless of request URLs - * - * For MCP transports, set baseUrl to the same URL you pass to the transport constructor. - * - * Note: This wrapper is designed for general-purpose fetch operations. - * MCP transports (SSE and StreamableHTTP) already have built-in OAuth handling - * and should not need this wrapper. - * - * @param provider - OAuth client provider for authentication - * @param baseUrl - Base URL for OAuth server discovery (defaults to request URL domain) - * @returns A fetch middleware function - */ -export declare const withOAuth: (provider: OAuthClientProvider, baseUrl?: string | URL) => Middleware; -/** - * Logger function type for HTTP requests - */ -export type RequestLogger = (input: { - method: string; - url: string | URL; - status: number; - statusText: string; - duration: number; - requestHeaders?: Headers; - responseHeaders?: Headers; - error?: Error; -}) => void; -/** - * Configuration options for the logging middleware - */ -export type LoggingOptions = { - /** - * Custom logger function, defaults to console logging - */ - logger?: RequestLogger; - /** - * Whether to include request headers in logs - * @default false - */ - includeRequestHeaders?: boolean; - /** - * Whether to include response headers in logs - * @default false - */ - includeResponseHeaders?: boolean; - /** - * Status level filter - only log requests with status >= this value - * Set to 0 to log all requests, 400 to log only errors - * @default 0 - */ - statusLevel?: number; -}; -/** - * Creates a fetch middleware that logs HTTP requests and responses. - * - * When called without arguments `withLogging()`, it uses the default logger that: - * - Logs successful requests (2xx) to `console.log` - * - Logs error responses (4xx/5xx) and network errors to `console.error` - * - Logs all requests regardless of status (statusLevel: 0) - * - Does not include request or response headers in logs - * - Measures and displays request duration in milliseconds - * - * Important: the default logger uses both `console.log` and `console.error` so it should not be used with - * `stdio` transports and applications. - * - * @param options - Logging configuration options - * @returns A fetch middleware function - */ -export declare const withLogging: (options?: LoggingOptions) => Middleware; -/** - * Composes multiple fetch middleware functions into a single middleware pipeline. - * Middleware are applied in the order they appear, creating a chain of handlers. - * - * @example - * ```typescript - * // Create a middleware pipeline that handles both OAuth and logging - * const enhancedFetch = applyMiddlewares( - * withOAuth(oauthProvider, 'https://api.example.com'), - * withLogging({ statusLevel: 400 }) - * )(fetch); - * - * // Use the enhanced fetch - it will handle auth and log errors - * const response = await enhancedFetch('https://api.example.com/data'); - * ``` - * - * @param middleware - Array of fetch middleware to compose into a pipeline - * @returns A single composed middleware function - */ -export declare const applyMiddlewares: (...middleware: Middleware[]) => Middleware; -/** - * Helper function to create custom fetch middleware with cleaner syntax. - * Provides the next handler and request details as separate parameters for easier access. - * - * @example - * ```typescript - * // Create custom authentication middleware - * const customAuthMiddleware = createMiddleware(async (next, input, init) => { - * const headers = new Headers(init?.headers); - * headers.set('X-Custom-Auth', 'my-token'); - * - * const response = await next(input, { ...init, headers }); - * - * if (response.status === 401) { - * console.log('Authentication failed'); - * } - * - * return response; - * }); - * - * // Create conditional middleware - * const conditionalMiddleware = createMiddleware(async (next, input, init) => { - * const url = typeof input === 'string' ? input : input.toString(); - * - * // Only add headers for API routes - * if (url.includes('/api/')) { - * const headers = new Headers(init?.headers); - * headers.set('X-API-Version', 'v2'); - * return next(input, { ...init, headers }); - * } - * - * // Pass through for non-API routes - * return next(input, init); - * }); - * - * // Create caching middleware - * const cacheMiddleware = createMiddleware(async (next, input, init) => { - * const cacheKey = typeof input === 'string' ? input : input.toString(); - * - * // Check cache first - * const cached = await getFromCache(cacheKey); - * if (cached) { - * return new Response(cached, { status: 200 }); - * } - * - * // Make request and cache result - * const response = await next(input, init); - * if (response.ok) { - * await saveToCache(cacheKey, await response.clone().text()); - * } - * - * return response; - * }); - * ``` - * - * @param handler - Function that receives the next handler and request parameters - * @returns A fetch middleware function - */ -export declare const createMiddleware: (handler: (next: FetchLike, input: string | URL, init?: RequestInit) => Promise) => Middleware; -//# sourceMappingURL=middleware.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map deleted file mode 100644 index 88ac778..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"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;;;;;;;;;;;;GAyDG;AACH,eAAO,MAAM,gBAAgB,YAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,KAAG,UAE3H,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js deleted file mode 100644 index bfeb976..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +++ /dev/null @@ -1,245 +0,0 @@ -import { auth, extractWWWAuthenticateParams, UnauthorizedError } from './auth.js'; -/** - * Creates a fetch wrapper that handles OAuth authentication automatically. - * - * This wrapper will: - * - Add Authorization headers with access tokens - * - Handle 401 responses by attempting re-authentication - * - Retry the original request after successful auth - * - Handle OAuth errors appropriately (InvalidClientError, etc.) - * - * The baseUrl parameter is optional and defaults to using the domain from the request URL. - * However, you should explicitly provide baseUrl when: - * - Making requests to multiple subdomains (e.g., api.example.com, cdn.example.com) - * - Using API paths that differ from OAuth discovery paths (e.g., requesting /api/v1/data but OAuth is at /) - * - The OAuth server is on a different domain than your API requests - * - You want to ensure consistent OAuth behavior regardless of request URLs - * - * For MCP transports, set baseUrl to the same URL you pass to the transport constructor. - * - * Note: This wrapper is designed for general-purpose fetch operations. - * MCP transports (SSE and StreamableHTTP) already have built-in OAuth handling - * and should not need this wrapper. - * - * @param provider - OAuth client provider for authentication - * @param baseUrl - Base URL for OAuth server discovery (defaults to request URL domain) - * @returns A fetch middleware function - */ -export const withOAuth = (provider, baseUrl) => next => { - return async (input, init) => { - const makeRequest = async () => { - const headers = new Headers(init?.headers); - // Add authorization header if tokens are available - const tokens = await provider.tokens(); - if (tokens) { - headers.set('Authorization', `Bearer ${tokens.access_token}`); - } - return await next(input, { ...init, headers }); - }; - let response = await makeRequest(); - // Handle 401 responses by attempting re-authentication - if (response.status === 401) { - try { - const { resourceMetadataUrl, scope } = extractWWWAuthenticateParams(response); - // Use provided baseUrl or extract from request URL - const serverUrl = baseUrl || (typeof input === 'string' ? new URL(input).origin : input.origin); - const result = await auth(provider, { - serverUrl, - resourceMetadataUrl, - scope, - fetchFn: next - }); - if (result === 'REDIRECT') { - throw new UnauthorizedError('Authentication requires user authorization - redirect initiated'); - } - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(`Authentication failed with result: ${result}`); - } - // Retry the request with fresh tokens - response = await makeRequest(); - } - catch (error) { - if (error instanceof UnauthorizedError) { - throw error; - } - throw new UnauthorizedError(`Failed to re-authenticate: ${error instanceof Error ? error.message : String(error)}`); - } - } - // If we still have a 401 after re-auth attempt, throw an error - if (response.status === 401) { - const url = typeof input === 'string' ? input : input.toString(); - throw new UnauthorizedError(`Authentication failed for ${url}`); - } - return response; - }; -}; -/** - * Creates a fetch middleware that logs HTTP requests and responses. - * - * When called without arguments `withLogging()`, it uses the default logger that: - * - Logs successful requests (2xx) to `console.log` - * - Logs error responses (4xx/5xx) and network errors to `console.error` - * - Logs all requests regardless of status (statusLevel: 0) - * - Does not include request or response headers in logs - * - Measures and displays request duration in milliseconds - * - * Important: the default logger uses both `console.log` and `console.error` so it should not be used with - * `stdio` transports and applications. - * - * @param options - Logging configuration options - * @returns A fetch middleware function - */ -export const withLogging = (options = {}) => { - const { logger, includeRequestHeaders = false, includeResponseHeaders = false, statusLevel = 0 } = options; - const defaultLogger = input => { - const { method, url, status, statusText, duration, requestHeaders, responseHeaders, error } = input; - let message = error - ? `HTTP ${method} ${url} failed: ${error.message} (${duration}ms)` - : `HTTP ${method} ${url} ${status} ${statusText} (${duration}ms)`; - // Add headers to message if requested - if (includeRequestHeaders && requestHeaders) { - const reqHeaders = Array.from(requestHeaders.entries()) - .map(([key, value]) => `${key}: ${value}`) - .join(', '); - message += `\n Request Headers: {${reqHeaders}}`; - } - if (includeResponseHeaders && responseHeaders) { - const resHeaders = Array.from(responseHeaders.entries()) - .map(([key, value]) => `${key}: ${value}`) - .join(', '); - message += `\n Response Headers: {${resHeaders}}`; - } - if (error || status >= 400) { - // eslint-disable-next-line no-console - console.error(message); - } - else { - // eslint-disable-next-line no-console - console.log(message); - } - }; - const logFn = logger || defaultLogger; - return next => async (input, init) => { - const startTime = performance.now(); - const method = init?.method || 'GET'; - const url = typeof input === 'string' ? input : input.toString(); - const requestHeaders = includeRequestHeaders ? new Headers(init?.headers) : undefined; - try { - const response = await next(input, init); - const duration = performance.now() - startTime; - // Only log if status meets the log level threshold - if (response.status >= statusLevel) { - logFn({ - method, - url, - status: response.status, - statusText: response.statusText, - duration, - requestHeaders, - responseHeaders: includeResponseHeaders ? response.headers : undefined - }); - } - return response; - } - catch (error) { - const duration = performance.now() - startTime; - // Always log errors regardless of log level - logFn({ - method, - url, - status: 0, - statusText: 'Network Error', - duration, - requestHeaders, - error: error - }); - throw error; - } - }; -}; -/** - * Composes multiple fetch middleware functions into a single middleware pipeline. - * Middleware are applied in the order they appear, creating a chain of handlers. - * - * @example - * ```typescript - * // Create a middleware pipeline that handles both OAuth and logging - * const enhancedFetch = applyMiddlewares( - * withOAuth(oauthProvider, 'https://api.example.com'), - * withLogging({ statusLevel: 400 }) - * )(fetch); - * - * // Use the enhanced fetch - it will handle auth and log errors - * const response = await enhancedFetch('https://api.example.com/data'); - * ``` - * - * @param middleware - Array of fetch middleware to compose into a pipeline - * @returns A single composed middleware function - */ -export const applyMiddlewares = (...middleware) => { - return next => { - return middleware.reduce((handler, mw) => mw(handler), next); - }; -}; -/** - * Helper function to create custom fetch middleware with cleaner syntax. - * Provides the next handler and request details as separate parameters for easier access. - * - * @example - * ```typescript - * // Create custom authentication middleware - * const customAuthMiddleware = createMiddleware(async (next, input, init) => { - * const headers = new Headers(init?.headers); - * headers.set('X-Custom-Auth', 'my-token'); - * - * const response = await next(input, { ...init, headers }); - * - * if (response.status === 401) { - * console.log('Authentication failed'); - * } - * - * return response; - * }); - * - * // Create conditional middleware - * const conditionalMiddleware = createMiddleware(async (next, input, init) => { - * const url = typeof input === 'string' ? input : input.toString(); - * - * // Only add headers for API routes - * if (url.includes('/api/')) { - * const headers = new Headers(init?.headers); - * headers.set('X-API-Version', 'v2'); - * return next(input, { ...init, headers }); - * } - * - * // Pass through for non-API routes - * return next(input, init); - * }); - * - * // Create caching middleware - * const cacheMiddleware = createMiddleware(async (next, input, init) => { - * const cacheKey = typeof input === 'string' ? input : input.toString(); - * - * // Check cache first - * const cached = await getFromCache(cacheKey); - * if (cached) { - * return new Response(cached, { status: 200 }); - * } - * - * // Make request and cache result - * const response = await next(input, init); - * if (response.ok) { - * await saveToCache(cacheKey, await response.clone().text()); - * } - * - * return response; - * }); - * ``` - * - * @param handler - Function that receives the next handler and request parameters - * @returns A fetch middleware function - */ -export const createMiddleware = (handler) => { - return next => (input, init) => handler(next, input, init); -}; -//# sourceMappingURL=middleware.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map deleted file mode 100644 index e3ded1a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/client/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,4BAA4B,EAAuB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AASvG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,SAAS,GAClB,CAAC,QAA6B,EAAE,OAAsB,EAAc,EAAE,CACtE,IAAI,CAAC,EAAE;IACH,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACzB,MAAM,WAAW,GAAG,KAAK,IAAuB,EAAE;YAC9C,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OA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AAC,CAAC;IACjE,CAAC,CAAC;AACN,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAwF,EAAc,EAAE;IACrI,OAAO,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,KAAqB,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts deleted file mode 100644 index acf99f1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { type ErrorEvent, type EventSourceInit } from 'eventsource'; -import { Transport, FetchLike } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -import { OAuthClientProvider } from './auth.js'; -export declare class SseError extends Error { - readonly code: number | undefined; - readonly event: ErrorEvent; - constructor(code: number | undefined, message: string | undefined, event: ErrorEvent); -} -/** - * Configuration options for the `SSEClientTransport`. - */ -export type SSEClientTransportOptions = { - /** - * An OAuth client provider to use for authentication. - * - * When an `authProvider` is specified and the SSE connection is started: - * 1. The connection is attempted with any existing access token from the `authProvider`. - * 2. If the access token has expired, the `authProvider` is used to refresh the token. - * 3. If token refresh fails or no access token exists, and auth is required, `OAuthClientProvider.redirectToAuthorization` is called, and an `UnauthorizedError` will be thrown from `connect`/`start`. - * - * After the user has finished authorizing via their user agent, and is redirected back to the MCP client application, call `SSEClientTransport.finishAuth` with the authorization code before retrying the connection. - * - * If an `authProvider` is not provided, and auth is required, an `UnauthorizedError` will be thrown. - * - * `UnauthorizedError` might also be thrown when sending any message over the SSE transport, indicating that the session has expired, and needs to be re-authed and reconnected. - */ - authProvider?: OAuthClientProvider; - /** - * Customizes the initial SSE request to the server (the request that begins the stream). - * - * NOTE: Setting this property will prevent an `Authorization` header from - * being automatically attached to the SSE request, if an `authProvider` is - * also given. This can be worked around by setting the `Authorization` header - * manually. - */ - eventSourceInit?: EventSourceInit; - /** - * Customizes recurring POST requests to the server. - */ - requestInit?: RequestInit; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; -}; -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * @deprecated SSEClientTransport is deprecated. Prefer to use StreamableHTTPClientTransport where possible instead. Note that because some servers are still using SSE, clients may need to support both transports during the migration period. - */ -export declare class SSEClientTransport implements Transport { - private _eventSource?; - private _endpoint?; - private _abortController?; - private _url; - private _resourceMetadataUrl?; - private _scope?; - private _eventSourceInit?; - private _requestInit?; - private _authProvider?; - private _fetch?; - private _fetchWithInit; - private _protocolVersion?; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL, opts?: SSEClientTransportOptions); - private _authThenStart; - private _commonHeaders; - private _startOrAuth; - start(): Promise; - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - finishAuth(authorizationCode: string): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; - setProtocolVersion(version: string): void; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map deleted file mode 100644 index 14ee939..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../src/client/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAA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C,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,yBAAyB;YAWxC,cAAc;YAyBd,cAAc;IAoB5B,OAAO,CAAC,YAAY;IAyEd,KAAK;IAQX;;OAEG;IACG,UAAU,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBpD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAkDlD,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG5C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js deleted file mode 100644 index 58c4741..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +++ /dev/null @@ -1,206 +0,0 @@ -import { EventSource } from 'eventsource'; -import { createFetchWithInit, normalizeHeaders } from '../shared/transport.js'; -import { JSONRPCMessageSchema } from '../types.js'; -import { auth, extractWWWAuthenticateParams, UnauthorizedError } from './auth.js'; -export class SseError extends Error { - constructor(code, message, event) { - super(`SSE error: ${message}`); - this.code = code; - this.event = event; - } -} -/** - * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving - * messages and make separate POST requests for sending messages. - * @deprecated SSEClientTransport is deprecated. Prefer to use StreamableHTTPClientTransport where possible instead. Note that because some servers are still using SSE, clients may need to support both transports during the migration period. - */ -export class SSEClientTransport { - constructor(url, opts) { - this._url = url; - this._resourceMetadataUrl = undefined; - this._scope = undefined; - this._eventSourceInit = opts?.eventSourceInit; - this._requestInit = opts?.requestInit; - this._authProvider = opts?.authProvider; - this._fetch = opts?.fetch; - this._fetchWithInit = createFetchWithInit(opts?.fetch, opts?.requestInit); - } - async _authThenStart() { - if (!this._authProvider) { - throw new UnauthorizedError('No auth provider'); - } - let result; - try { - result = await auth(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - } - catch (error) { - this.onerror?.(error); - throw error; - } - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(); - } - return await this._startOrAuth(); - } - async _commonHeaders() { - const headers = {}; - if (this._authProvider) { - const tokens = await this._authProvider.tokens(); - if (tokens) { - headers['Authorization'] = `Bearer ${tokens.access_token}`; - } - } - if (this._protocolVersion) { - headers['mcp-protocol-version'] = this._protocolVersion; - } - const extraHeaders = normalizeHeaders(this._requestInit?.headers); - return new Headers({ - ...headers, - ...extraHeaders - }); - } - _startOrAuth() { - const fetchImpl = (this?._eventSourceInit?.fetch ?? this._fetch ?? fetch); - return new Promise((resolve, reject) => { - this._eventSource = new EventSource(this._url.href, { - ...this._eventSourceInit, - fetch: async (url, init) => { - const headers = await this._commonHeaders(); - headers.set('Accept', 'text/event-stream'); - const response = await fetchImpl(url, { - ...init, - headers - }); - if (response.status === 401 && response.headers.has('www-authenticate')) { - const { resourceMetadataUrl, scope } = extractWWWAuthenticateParams(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - } - return response; - } - }); - this._abortController = new AbortController(); - this._eventSource.onerror = event => { - if (event.code === 401 && this._authProvider) { - this._authThenStart().then(resolve, reject); - return; - } - const error = new SseError(event.code, event.message, event); - reject(error); - this.onerror?.(error); - }; - this._eventSource.onopen = () => { - // The connection is open, but we need to wait for the endpoint to be received. - }; - this._eventSource.addEventListener('endpoint', (event) => { - const messageEvent = event; - try { - this._endpoint = new URL(messageEvent.data, this._url); - if (this._endpoint.origin !== this._url.origin) { - throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`); - } - } - catch (error) { - reject(error); - this.onerror?.(error); - void this.close(); - return; - } - resolve(); - }); - this._eventSource.onmessage = (event) => { - const messageEvent = event; - let message; - try { - message = JSONRPCMessageSchema.parse(JSON.parse(messageEvent.data)); - } - catch (error) { - this.onerror?.(error); - return; - } - this.onmessage?.(message); - }; - }); - } - async start() { - if (this._eventSource) { - throw new Error('SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return await this._startOrAuth(); - } - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - async finishAuth(authorizationCode) { - if (!this._authProvider) { - throw new UnauthorizedError('No auth provider'); - } - const result = await auth(this._authProvider, { - serverUrl: this._url, - authorizationCode, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError('Failed to authorize'); - } - } - async close() { - this._abortController?.abort(); - this._eventSource?.close(); - this.onclose?.(); - } - async send(message) { - if (!this._endpoint) { - throw new Error('Not connected'); - } - try { - const headers = await this._commonHeaders(); - headers.set('content-type', 'application/json'); - const init = { - ...this._requestInit, - method: 'POST', - headers, - body: JSON.stringify(message), - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._endpoint, init); - if (!response.ok) { - const text = await response.text().catch(() => null); - if (response.status === 401 && this._authProvider) { - const { resourceMetadataUrl, scope } = extractWWWAuthenticateParams(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - const result = await auth(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(); - } - // Purposely _not_ awaited, so we don't call onerror twice - return this.send(message); - } - throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${text}`); - } - // Release connection - POST responses don't have content we need - await response.body?.cancel(); - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - setProtocolVersion(version) { - this._protocolVersion = version; - } -} -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map deleted file mode 100644 index 9957f95..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../../src/client/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyC,MAAM,aAAa,CAAC;AACjF,OAAO,EAAwB,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,IAAI,EAAc,4BAA4B,EAAuB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnH,MAAM,OAAO,QAAS,SAAQ,KAAK;IAC/B,YACoB,IAAwB,EACxC,OAA2B,EACX,KAAiB;QAEjC,KAAK,CAAC,cAAc,OAAO,EAAE,CAAC,CAAC;QAJf,SAAI,GAAJ,IAAI,CAAoB;QAExB,UAAK,GAAL,KAAK,CAAY;IAGrC,CAAC;CACJ;AA2CD;;;;GAIG;AACH,MAAM,OAAO,kBAAkB;IAkB3B,YAAY,GAAQ,EAAE,IAAgC;QAClD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,oBAAoB,GAAG,SAAS,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,gBAAgB,GAAG,IAAI,EAAE,eAAe,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,EAAE,WAAW,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,IAAI,EAAE,YAAY,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,EAAE,KAAK,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,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IAAI;wBACpB,mBAAmB,EAAE,IAAI,CAAC,oBAAoB;wBAC9C,KAAK,EAAE,IAAI,CAAC,MAAM;wBAClB,OAAO,EAAE,IAAI,CAAC,cAAc;qBAC/B,CAAC,CAAC;oBACH,IAAI,MAAM,KAAK,YAAY,EAAE,CAAC;wBAC1B,MAAM,IAAI,iBAAiB,EAAE,CAAC;oBAClC,CAAC;oBAED,0DAA0D;oBAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC9B,CAAC;gBAED,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,CAAC,MAAM,MAAM,IAAI,EAAE,CAAC,CAAC;YACpF,CAAC;YAED,iEAAiE;YACjE,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,EAAE,CAAC,KAAc,CAAC,CAAC;YAC/B,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC;IACpC,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts deleted file mode 100644 index a411dba..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { IOType } from 'node:child_process'; -import { Stream } from 'node:stream'; -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -export type StdioServerParameters = { - /** - * The executable to run to start the server. - */ - command: string; - /** - * Command line arguments to pass to the executable. - */ - args?: string[]; - /** - * The environment to use when spawning the process. - * - * If not specified, the result of getDefaultEnvironment() will be used. - */ - env?: Record; - /** - * How to handle stderr of the child process. This matches the semantics of Node's `child_process.spawn`. - * - * The default is "inherit", meaning messages to stderr will be printed to the parent process's stderr. - */ - stderr?: IOType | Stream | number; - /** - * The working directory to use when spawning the process. - * - * If not specified, the current working directory will be inherited. - */ - cwd?: string; -}; -/** - * Environment variables to inherit by default, if an environment is not explicitly given. - */ -export declare const DEFAULT_INHERITED_ENV_VARS: string[]; -/** - * Returns a default environment object including only environment variables deemed safe to inherit. - */ -export declare function getDefaultEnvironment(): Record; -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioClientTransport implements Transport { - private _process?; - private _readBuffer; - private _serverParams; - private _stderrStream; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(server: StdioServerParameters); - /** - * Starts the server process and prepares to communicate with it. - */ - start(): Promise; - /** - * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". - * - * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to - * attach listeners before the start method is invoked. This prevents loss of any early - * error output emitted by the child process. - */ - get stderr(): Stream | null; - /** - * The child process pid spawned by this transport. - * - * This is only available after the transport has been started. - */ - get pid(): number | null; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map deleted file mode 100644 index 73b267b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/client/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,EAAE,MAAM,EAAe,MAAM,aAAa,CAAC;AAElD,OA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CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAc/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js deleted file mode 100644 index e1e4b9c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +++ /dev/null @@ -1,191 +0,0 @@ -import spawn from 'cross-spawn'; -import process from 'node:process'; -import { PassThrough } from 'node:stream'; -import { ReadBuffer, serializeMessage } from '../shared/stdio.js'; -/** - * Environment variables to inherit by default, if an environment is not explicitly given. - */ -export const DEFAULT_INHERITED_ENV_VARS = process.platform === 'win32' - ? [ - 'APPDATA', - 'HOMEDRIVE', - 'HOMEPATH', - 'LOCALAPPDATA', - 'PATH', - 'PROCESSOR_ARCHITECTURE', - 'SYSTEMDRIVE', - 'SYSTEMROOT', - 'TEMP', - 'USERNAME', - 'USERPROFILE', - 'PROGRAMFILES' - ] - : /* list inspired by the default env inheritance of sudo */ - ['HOME', 'LOGNAME', 'PATH', 'SHELL', 'TERM', 'USER']; -/** - * Returns a default environment object including only environment variables deemed safe to inherit. - */ -export function getDefaultEnvironment() { - const env = {}; - for (const key of DEFAULT_INHERITED_ENV_VARS) { - const value = process.env[key]; - if (value === undefined) { - continue; - } - if (value.startsWith('()')) { - // Skip functions, which are a security risk. - continue; - } - env[key] = value; - } - return env; -} -/** - * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout. - * - * This transport is only available in Node.js environments. - */ -export class StdioClientTransport { - constructor(server) { - this._readBuffer = new ReadBuffer(); - this._stderrStream = null; - this._serverParams = server; - if (server.stderr === 'pipe' || server.stderr === 'overlapped') { - this._stderrStream = new PassThrough(); - } - } - /** - * Starts the server process and prepares to communicate with it. - */ - async start() { - if (this._process) { - throw new Error('StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return new Promise((resolve, reject) => { - this._process = spawn(this._serverParams.command, this._serverParams.args ?? [], { - // merge default env with server env because mcp server needs some env vars - env: { - ...getDefaultEnvironment(), - ...this._serverParams.env - }, - stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'], - shell: false, - windowsHide: process.platform === 'win32' && isElectron(), - cwd: this._serverParams.cwd - }); - this._process.on('error', error => { - reject(error); - this.onerror?.(error); - }); - this._process.on('spawn', () => { - resolve(); - }); - this._process.on('close', _code => { - this._process = undefined; - this.onclose?.(); - }); - this._process.stdin?.on('error', error => { - this.onerror?.(error); - }); - this._process.stdout?.on('data', chunk => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }); - this._process.stdout?.on('error', error => { - this.onerror?.(error); - }); - if (this._stderrStream && this._process.stderr) { - this._process.stderr.pipe(this._stderrStream); - } - }); - } - /** - * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". - * - * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to - * attach listeners before the start method is invoked. This prevents loss of any early - * error output emitted by the child process. - */ - get stderr() { - if (this._stderrStream) { - return this._stderrStream; - } - return this._process?.stderr ?? null; - } - /** - * The child process pid spawned by this transport. - * - * This is only available after the transport has been started. - */ - get pid() { - return this._process?.pid ?? null; - } - processReadBuffer() { - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - async close() { - if (this._process) { - const processToClose = this._process; - this._process = undefined; - const closePromise = new Promise(resolve => { - processToClose.once('close', () => { - resolve(); - }); - }); - try { - processToClose.stdin?.end(); - } - catch { - // ignore - } - await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]); - if (processToClose.exitCode === null) { - try { - processToClose.kill('SIGTERM'); - } - catch { - // ignore - } - await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]); - } - if (processToClose.exitCode === null) { - try { - processToClose.kill('SIGKILL'); - } - catch { - // ignore - } - } - } - this._readBuffer.clear(); - } - send(message) { - return new Promise(resolve => { - if (!this._process?.stdin) { - throw new Error('Not connected'); - } - const json = serializeMessage(message); - if (this._process.stdin.write(json)) { - resolve(); - } - else { - this._process.stdin.once('drain', resolve); - } - }); - } -} -function isElectron() { - return 'type' in process; -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map deleted file mode 100644 index 6018233..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/client/stdio.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAU,WAAW,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAqClE;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GACnC,OAAO,CAAC,QAAQ,KAAK,OAAO;IACxB,CAAC,CAAC;QACI,SAAS;QACT,WAAW;QACX,UAAU;QACV,cAAc;QACd,MAAM;QACN,wBAAwB;QACxB,aAAa;QACb,YAAY;QACZ,MAAM;QACN,UAAU;QACV,aAAa;QACb,cAAc;KACjB;IACH,CAAC,CAAC,0DAA0D;QAC1D,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACjC,MAAM,GAAG,GAA2B,EAAE,CAAC;IAEvC,KAAK,MAAM,GAAG,IAAI,0BAA0B,EAAE,CAAC;QAC3C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CA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AQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC/C,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED,SAAS,UAAU;IACf,OAAO,MAAM,IAAI,OAAO,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts deleted file mode 100644 index 6035b24..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +++ /dev/null @@ -1,171 +0,0 @@ -import { Transport, FetchLike } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -import { OAuthClientProvider } from './auth.js'; -export declare class StreamableHTTPError extends Error { - readonly code: number | undefined; - constructor(code: number | undefined, message: string | undefined); -} -/** - * Options for starting or authenticating an SSE connection - */ -export interface StartSSEOptions { - /** - * The resumption token used to continue long-running requests that were interrupted. - * - * This allows clients to reconnect and continue from where they left off. - */ - resumptionToken?: string; - /** - * A callback that is invoked when the resumption token changes. - * - * This allows clients to persist the latest token for potential reconnection. - */ - onresumptiontoken?: (token: string) => void; - /** - * Override Message ID to associate with the replay message - * so that response can be associate with the new resumed request. - */ - replayMessageId?: string | number; -} -/** - * Configuration options for reconnection behavior of the StreamableHTTPClientTransport. - */ -export interface StreamableHTTPReconnectionOptions { - /** - * Maximum backoff time between reconnection attempts in milliseconds. - * Default is 30000 (30 seconds). - */ - maxReconnectionDelay: number; - /** - * Initial backoff time between reconnection attempts in milliseconds. - * Default is 1000 (1 second). - */ - initialReconnectionDelay: number; - /** - * The factor by which the reconnection delay increases after each attempt. - * Default is 1.5. - */ - reconnectionDelayGrowFactor: number; - /** - * Maximum number of reconnection attempts before giving up. - * Default is 2. - */ - maxRetries: number; -} -/** - * Configuration options for the `StreamableHTTPClientTransport`. - */ -export type StreamableHTTPClientTransportOptions = { - /** - * An OAuth client provider to use for authentication. - * - * When an `authProvider` is specified and the connection is started: - * 1. The connection is attempted with any existing access token from the `authProvider`. - * 2. If the access token has expired, the `authProvider` is used to refresh the token. - * 3. If token refresh fails or no access token exists, and auth is required, `OAuthClientProvider.redirectToAuthorization` is called, and an `UnauthorizedError` will be thrown from `connect`/`start`. - * - * After the user has finished authorizing via their user agent, and is redirected back to the MCP client application, call `StreamableHTTPClientTransport.finishAuth` with the authorization code before retrying the connection. - * - * If an `authProvider` is not provided, and auth is required, an `UnauthorizedError` will be thrown. - * - * `UnauthorizedError` might also be thrown when sending any message over the transport, indicating that the session has expired, and needs to be re-authed and reconnected. - */ - authProvider?: OAuthClientProvider; - /** - * Customizes HTTP requests to the server. - */ - requestInit?: RequestInit; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; - /** - * Options to configure the reconnection behavior. - */ - reconnectionOptions?: StreamableHTTPReconnectionOptions; - /** - * Session ID for the connection. This is used to identify the session on the server. - * When not provided and connecting to a server that supports session IDs, the server will generate a new session ID. - */ - sessionId?: string; -}; -/** - * Client transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It will connect to a server using HTTP POST for sending messages and HTTP GET with Server-Sent Events - * for receiving messages. - */ -export declare class StreamableHTTPClientTransport implements Transport { - private _abortController?; - private _url; - private _resourceMetadataUrl?; - private _scope?; - private _requestInit?; - private _authProvider?; - private _fetch?; - private _fetchWithInit; - private _sessionId?; - private _reconnectionOptions; - private _protocolVersion?; - private _hasCompletedAuthFlow; - private _lastUpscopingHeader?; - private _serverRetryMs?; - private _reconnectionTimeout?; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL, opts?: StreamableHTTPClientTransportOptions); - private _authThenStart; - private _commonHeaders; - private _startOrAuthSse; - /** - * Calculates the next reconnection delay using backoff algorithm - * - * @param attempt Current reconnection attempt count for the specific stream - * @returns Time to wait in milliseconds before next reconnection attempt - */ - private _getNextReconnectionDelay; - /** - * Schedule a reconnection attempt using server-provided retry interval or backoff - * - * @param lastEventId The ID of the last received event for resumability - * @param attemptCount Current reconnection attempt count for this specific stream - */ - private _scheduleReconnection; - private _handleSseStream; - start(): Promise; - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - finishAuth(authorizationCode: string): Promise; - close(): Promise; - send(message: JSONRPCMessage | JSONRPCMessage[], options?: { - resumptionToken?: string; - onresumptiontoken?: (token: string) => void; - }): Promise; - get sessionId(): string | undefined; - /** - * Terminates the current session by sending a DELETE request to the server. - * - * Clients that no longer need a particular session - * (e.g., because the user is leaving the client application) SHOULD send an - * HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly - * terminate the session. - * - * The server MAY respond with HTTP 405 Method Not Allowed, indicating that - * the server does not allow clients to terminate sessions. - */ - terminateSession(): Promise; - setProtocolVersion(version: string): void; - get protocolVersion(): string | undefined; - /** - * Resume an SSE stream from a previous event ID. - * Opens a GET SSE connection with Last-Event-ID header to replay missed events. - * - * @param lastEventId The event ID to resume from - * @param options Optional callback to receive new resumption tokens - */ - resumeStream(lastEventId: string, options?: { - onresumptiontoken?: (token: string) => void; - }): Promise; -} -//# sourceMappingURL=streamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map deleted file mode 100644 index 5b6ffb8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.d.ts","sourceRoot":"","sources":["../../../src/client/streamableHttp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAyC,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAwE,cAAc,EA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IAAI,CAAC;IA+BvC,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAGzC,IAAI,eAAe,IAAI,MAAM,GAAG,SAAS,CAExC;IAED;;;;;;OAMG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAMpH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js deleted file mode 100644 index 624172a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +++ /dev/null @@ -1,477 +0,0 @@ -import { createFetchWithInit, normalizeHeaders } from '../shared/transport.js'; -import { isInitializedNotification, isJSONRPCRequest, isJSONRPCResultResponse, JSONRPCMessageSchema } from '../types.js'; -import { auth, extractWWWAuthenticateParams, UnauthorizedError } from './auth.js'; -import { EventSourceParserStream } from 'eventsource-parser/stream'; -// Default reconnection options for StreamableHTTP connections -const DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS = { - initialReconnectionDelay: 1000, - maxReconnectionDelay: 30000, - reconnectionDelayGrowFactor: 1.5, - maxRetries: 2 -}; -export class StreamableHTTPError extends Error { - constructor(code, message) { - super(`Streamable HTTP error: ${message}`); - this.code = code; - } -} -/** - * Client transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It will connect to a server using HTTP POST for sending messages and HTTP GET with Server-Sent Events - * for receiving messages. - */ -export class StreamableHTTPClientTransport { - constructor(url, opts) { - this._hasCompletedAuthFlow = false; // Circuit breaker: detect auth success followed by immediate 401 - this._url = url; - this._resourceMetadataUrl = undefined; - this._scope = undefined; - this._requestInit = opts?.requestInit; - this._authProvider = opts?.authProvider; - this._fetch = opts?.fetch; - this._fetchWithInit = createFetchWithInit(opts?.fetch, opts?.requestInit); - this._sessionId = opts?.sessionId; - this._reconnectionOptions = opts?.reconnectionOptions ?? DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS; - } - async _authThenStart() { - if (!this._authProvider) { - throw new UnauthorizedError('No auth provider'); - } - let result; - try { - result = await auth(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - } - catch (error) { - this.onerror?.(error); - throw error; - } - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(); - } - return await this._startOrAuthSse({ resumptionToken: undefined }); - } - async _commonHeaders() { - const headers = {}; - if (this._authProvider) { - const tokens = await this._authProvider.tokens(); - if (tokens) { - headers['Authorization'] = `Bearer ${tokens.access_token}`; - } - } - if (this._sessionId) { - headers['mcp-session-id'] = this._sessionId; - } - if (this._protocolVersion) { - headers['mcp-protocol-version'] = this._protocolVersion; - } - const extraHeaders = normalizeHeaders(this._requestInit?.headers); - return new Headers({ - ...headers, - ...extraHeaders - }); - } - async _startOrAuthSse(options) { - const { resumptionToken } = options; - try { - // Try to open an initial SSE stream with GET to listen for server messages - // This is optional according to the spec - server may not support it - const headers = await this._commonHeaders(); - headers.set('Accept', 'text/event-stream'); - // Include Last-Event-ID header for resumable streams if provided - if (resumptionToken) { - headers.set('last-event-id', resumptionToken); - } - const response = await (this._fetch ?? fetch)(this._url, { - method: 'GET', - headers, - signal: this._abortController?.signal - }); - if (!response.ok) { - await response.body?.cancel(); - if (response.status === 401 && this._authProvider) { - // Need to authenticate - return await this._authThenStart(); - } - // 405 indicates that the server does not offer an SSE stream at GET endpoint - // This is an expected case that should not trigger an error - if (response.status === 405) { - return; - } - throw new StreamableHTTPError(response.status, `Failed to open SSE stream: ${response.statusText}`); - } - this._handleSseStream(response.body, options, true); - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - /** - * Calculates the next reconnection delay using backoff algorithm - * - * @param attempt Current reconnection attempt count for the specific stream - * @returns Time to wait in milliseconds before next reconnection attempt - */ - _getNextReconnectionDelay(attempt) { - // Use server-provided retry value if available - if (this._serverRetryMs !== undefined) { - return this._serverRetryMs; - } - // Fall back to exponential backoff - const initialDelay = this._reconnectionOptions.initialReconnectionDelay; - const growFactor = this._reconnectionOptions.reconnectionDelayGrowFactor; - const maxDelay = this._reconnectionOptions.maxReconnectionDelay; - // Cap at maximum delay - return Math.min(initialDelay * Math.pow(growFactor, attempt), maxDelay); - } - /** - * Schedule a reconnection attempt using server-provided retry interval or backoff - * - * @param lastEventId The ID of the last received event for resumability - * @param attemptCount Current reconnection attempt count for this specific stream - */ - _scheduleReconnection(options, attemptCount = 0) { - // Use provided options or default options - const maxRetries = this._reconnectionOptions.maxRetries; - // Check if we've exceeded maximum retry attempts - if (attemptCount >= maxRetries) { - this.onerror?.(new Error(`Maximum reconnection attempts (${maxRetries}) exceeded.`)); - return; - } - // Calculate next delay based on current attempt count - const delay = this._getNextReconnectionDelay(attemptCount); - // Schedule the reconnection - this._reconnectionTimeout = setTimeout(() => { - // Use the last event ID to resume where we left off - this._startOrAuthSse(options).catch(error => { - this.onerror?.(new Error(`Failed to reconnect SSE stream: ${error instanceof Error ? error.message : String(error)}`)); - // Schedule another attempt if this one failed, incrementing the attempt counter - this._scheduleReconnection(options, attemptCount + 1); - }); - }, delay); - } - _handleSseStream(stream, options, isReconnectable) { - if (!stream) { - return; - } - const { onresumptiontoken, replayMessageId } = options; - let lastEventId; - // Track whether we've received a priming event (event with ID) - // Per spec, server SHOULD send a priming event with ID before closing - let hasPrimingEvent = false; - // Track whether we've received a response - if so, no need to reconnect - // Reconnection is for when server disconnects BEFORE sending response - let receivedResponse = false; - const processStream = async () => { - // this is the closest we can get to trying to catch network errors - // if something happens reader will throw - try { - // Create a pipeline: binary stream -> text decoder -> SSE parser - const reader = stream - .pipeThrough(new TextDecoderStream()) - .pipeThrough(new EventSourceParserStream({ - onRetry: (retryMs) => { - // Capture server-provided retry value for reconnection timing - this._serverRetryMs = retryMs; - } - })) - .getReader(); - while (true) { - const { value: event, done } = await reader.read(); - if (done) { - break; - } - // Update last event ID if provided - if (event.id) { - lastEventId = event.id; - // Mark that we've received a priming event - stream is now resumable - hasPrimingEvent = true; - onresumptiontoken?.(event.id); - } - // Skip events with no data (priming events, keep-alives) - if (!event.data) { - continue; - } - if (!event.event || event.event === 'message') { - try { - const message = JSONRPCMessageSchema.parse(JSON.parse(event.data)); - if (isJSONRPCResultResponse(message)) { - // Mark that we received a response - no need to reconnect for this request - receivedResponse = true; - if (replayMessageId !== undefined) { - message.id = replayMessageId; - } - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - // Handle graceful server-side disconnect - // Server may close connection after sending event ID and retry field - // Reconnect if: already reconnectable (GET stream) OR received a priming event (POST stream with event ID) - // BUT don't reconnect if we already received a response - the request is complete - const canResume = isReconnectable || hasPrimingEvent; - const needsReconnect = canResume && !receivedResponse; - if (needsReconnect && this._abortController && !this._abortController.signal.aborted) { - this._scheduleReconnection({ - resumptionToken: lastEventId, - onresumptiontoken, - replayMessageId - }, 0); - } - } - catch (error) { - // Handle stream errors - likely a network disconnect - this.onerror?.(new Error(`SSE stream disconnected: ${error}`)); - // Attempt to reconnect if the stream disconnects unexpectedly and we aren't closing - // Reconnect if: already reconnectable (GET stream) OR received a priming event (POST stream with event ID) - // BUT don't reconnect if we already received a response - the request is complete - const canResume = isReconnectable || hasPrimingEvent; - const needsReconnect = canResume && !receivedResponse; - if (needsReconnect && this._abortController && !this._abortController.signal.aborted) { - // Use the exponential backoff reconnection strategy - try { - this._scheduleReconnection({ - resumptionToken: lastEventId, - onresumptiontoken, - replayMessageId - }, 0); - } - catch (error) { - this.onerror?.(new Error(`Failed to reconnect: ${error instanceof Error ? error.message : String(error)}`)); - } - } - } - }; - processStream(); - } - async start() { - if (this._abortController) { - throw new Error('StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - this._abortController = new AbortController(); - } - /** - * Call this method after the user has finished authorizing via their user agent and is redirected back to the MCP client application. This will exchange the authorization code for an access token, enabling the next connection attempt to successfully auth. - */ - async finishAuth(authorizationCode) { - if (!this._authProvider) { - throw new UnauthorizedError('No auth provider'); - } - const result = await auth(this._authProvider, { - serverUrl: this._url, - authorizationCode, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError('Failed to authorize'); - } - } - async close() { - if (this._reconnectionTimeout) { - clearTimeout(this._reconnectionTimeout); - this._reconnectionTimeout = undefined; - } - this._abortController?.abort(); - this.onclose?.(); - } - async send(message, options) { - try { - const { resumptionToken, onresumptiontoken } = options || {}; - if (resumptionToken) { - // If we have at last event ID, we need to reconnect the SSE stream - this._startOrAuthSse({ resumptionToken, replayMessageId: isJSONRPCRequest(message) ? message.id : undefined }).catch(err => this.onerror?.(err)); - return; - } - const headers = await this._commonHeaders(); - headers.set('content-type', 'application/json'); - headers.set('accept', 'application/json, text/event-stream'); - const init = { - ...this._requestInit, - method: 'POST', - headers, - body: JSON.stringify(message), - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._url, init); - // Handle session ID received during initialization - const sessionId = response.headers.get('mcp-session-id'); - if (sessionId) { - this._sessionId = sessionId; - } - if (!response.ok) { - const text = await response.text().catch(() => null); - if (response.status === 401 && this._authProvider) { - // Prevent infinite recursion when server returns 401 after successful auth - if (this._hasCompletedAuthFlow) { - throw new StreamableHTTPError(401, 'Server returned 401 after successful authentication'); - } - const { resourceMetadataUrl, scope } = extractWWWAuthenticateParams(response); - this._resourceMetadataUrl = resourceMetadataUrl; - this._scope = scope; - const result = await auth(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetchWithInit - }); - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(); - } - // Mark that we completed auth flow - this._hasCompletedAuthFlow = true; - // Purposely _not_ awaited, so we don't call onerror twice - return this.send(message); - } - if (response.status === 403 && this._authProvider) { - const { resourceMetadataUrl, scope, error } = extractWWWAuthenticateParams(response); - if (error === 'insufficient_scope') { - const wwwAuthHeader = response.headers.get('WWW-Authenticate'); - // Check if we've already tried upscoping with this header to prevent infinite loops. - if (this._lastUpscopingHeader === wwwAuthHeader) { - throw new StreamableHTTPError(403, 'Server returned 403 after trying upscoping'); - } - if (scope) { - this._scope = scope; - } - if (resourceMetadataUrl) { - this._resourceMetadataUrl = resourceMetadataUrl; - } - // Mark that upscoping was tried. - this._lastUpscopingHeader = wwwAuthHeader ?? undefined; - const result = await auth(this._authProvider, { - serverUrl: this._url, - resourceMetadataUrl: this._resourceMetadataUrl, - scope: this._scope, - fetchFn: this._fetch - }); - if (result !== 'AUTHORIZED') { - throw new UnauthorizedError(); - } - return this.send(message); - } - } - throw new StreamableHTTPError(response.status, `Error POSTing to endpoint: ${text}`); - } - // Reset auth loop flag on successful response - this._hasCompletedAuthFlow = false; - this._lastUpscopingHeader = undefined; - // If the response is 202 Accepted, there's no body to process - if (response.status === 202) { - await response.body?.cancel(); - // if the accepted notification is initialized, we start the SSE stream - // if it's supported by the server - if (isInitializedNotification(message)) { - // Start without a lastEventId since this is a fresh connection - this._startOrAuthSse({ resumptionToken: undefined }).catch(err => this.onerror?.(err)); - } - return; - } - // Get original message(s) for detecting request IDs - const messages = Array.isArray(message) ? message : [message]; - const hasRequests = messages.filter(msg => 'method' in msg && 'id' in msg && msg.id !== undefined).length > 0; - // Check the response type - const contentType = response.headers.get('content-type'); - if (hasRequests) { - if (contentType?.includes('text/event-stream')) { - // Handle SSE stream responses for requests - // We use the same handler as standalone streams, which now supports - // reconnection with the last event ID - this._handleSseStream(response.body, { onresumptiontoken }, false); - } - else if (contentType?.includes('application/json')) { - // For non-streaming servers, we might get direct JSON responses - const data = await response.json(); - const responseMessages = Array.isArray(data) - ? data.map(msg => JSONRPCMessageSchema.parse(msg)) - : [JSONRPCMessageSchema.parse(data)]; - for (const msg of responseMessages) { - this.onmessage?.(msg); - } - } - else { - await response.body?.cancel(); - throw new StreamableHTTPError(-1, `Unexpected content type: ${contentType}`); - } - } - else { - // No requests in message but got 200 OK - still need to release connection - await response.body?.cancel(); - } - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - get sessionId() { - return this._sessionId; - } - /** - * Terminates the current session by sending a DELETE request to the server. - * - * Clients that no longer need a particular session - * (e.g., because the user is leaving the client application) SHOULD send an - * HTTP DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly - * terminate the session. - * - * The server MAY respond with HTTP 405 Method Not Allowed, indicating that - * the server does not allow clients to terminate sessions. - */ - async terminateSession() { - if (!this._sessionId) { - return; // No session to terminate - } - try { - const headers = await this._commonHeaders(); - const init = { - ...this._requestInit, - method: 'DELETE', - headers, - signal: this._abortController?.signal - }; - const response = await (this._fetch ?? fetch)(this._url, init); - await response.body?.cancel(); - // We specifically handle 405 as a valid response according to the spec, - // meaning the server does not support explicit session termination - if (!response.ok && response.status !== 405) { - throw new StreamableHTTPError(response.status, `Failed to terminate session: ${response.statusText}`); - } - this._sessionId = undefined; - } - catch (error) { - this.onerror?.(error); - throw error; - } - } - setProtocolVersion(version) { - this._protocolVersion = version; - } - get protocolVersion() { - return this._protocolVersion; - } - /** - * Resume an SSE stream from a previous event ID. - * Opens a GET SSE connection with Last-Event-ID header to replay missed events. - * - * @param lastEventId The event ID to resume from - * @param options Optional callback to receive new resumption tokens - */ - async resumeStream(lastEventId, options) { - await this._startOrAuthSse({ - resumptionToken: lastEventId, - onresumptiontoken: options?.onresumptiontoken - }); - } -} -//# sourceMappingURL=streamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map deleted file mode 100644 index fd4e70c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +++ /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I,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC1C,MAAM,IAAI,mBAAmB,CAAC,QAAQ,CAAC,MAAM,EAAE,gCAAgC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;YAC1G,CAAC;YAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAChC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,EAAE,CAAC,KAAc,CAAC,CAAC;YAC/B,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC;IACpC,CAAC;IACD,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAAC,WAAmB,EAAE,OAAyD;QAC7F,MAAM,IAAI,CAAC,eAAe,CAAC;YACvB,eAAe,EAAE,WAAW;YAC5B,iBAAiB,EAAE,OAAO,EAAE,iBAAiB;SAChD,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts deleted file mode 100644 index 78f95de..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage } from '../types.js'; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -export declare class WebSocketClientTransport implements Transport { - private _socket?; - private _url; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - constructor(url: URL); - start(): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=websocket.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map deleted file mode 100644 index 2882d98..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/client/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAInE;;GAEG;AACH,qBAAa,wBAAyB,YAAW,SAAS;IACtD,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,IAAI,CAAM;IAElB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;gBAElC,GAAG,EAAE,GAAG;IAIpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAsChB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAW/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js deleted file mode 100644 index 1325e46..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +++ /dev/null @@ -1,54 +0,0 @@ -import { JSONRPCMessageSchema } from '../types.js'; -const SUBPROTOCOL = 'mcp'; -/** - * Client transport for WebSocket: this will connect to a server over the WebSocket protocol. - */ -export class WebSocketClientTransport { - constructor(url) { - this._url = url; - } - start() { - if (this._socket) { - throw new Error('WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.'); - } - return new Promise((resolve, reject) => { - this._socket = new WebSocket(this._url, SUBPROTOCOL); - this._socket.onerror = event => { - const error = 'error' in event ? event.error : new Error(`WebSocket error: ${JSON.stringify(event)}`); - reject(error); - this.onerror?.(error); - }; - this._socket.onopen = () => { - resolve(); - }; - this._socket.onclose = () => { - this.onclose?.(); - }; - this._socket.onmessage = (event) => { - let message; - try { - message = JSONRPCMessageSchema.parse(JSON.parse(event.data)); - } - catch (error) { - this.onerror?.(error); - return; - } - this.onmessage?.(message); - }; - }); - } - async close() { - this._socket?.close(); - } - send(message) { - return new Promise((resolve, reject) => { - if (!this._socket) { - reject(new Error('Not connected')); - return; - } - this._socket?.send(JSON.stringify(message)); - resolve(); - }); - } -} -//# sourceMappingURL=websocket.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map deleted file mode 100644 index bd2ed86..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../src/client/websocket.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,GAAG,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAQjC,YAAY,GAAQ;QAChB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IACpB,CAAC;IAED,KAAK;QACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACX,mHAAmH,CACtH,CAAC;QACN,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,IAAI,CAAC,OAAO,GAAG,IAAI,SAAS,CAAC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ACnC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAChB,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;gBACnC,OAAO;YACX,CAAC;YAED,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts deleted file mode 100644 index 611f6eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationUrlExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map deleted file mode 100644 index e749adf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/elicitationUrlExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js deleted file mode 100644 index aa99e12..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +++ /dev/null @@ -1,690 +0,0 @@ -// Run with: npx tsx src/examples/client/elicitationUrlExample.ts -// -// This example demonstrates how to use URL elicitation to securely -// collect user input in a remote (HTTP) server. -// URL elicitation allows servers to prompt the end-user to open a URL in their browser -// to collect sensitive information. -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { createInterface } from 'node:readline'; -import { ListToolsResultSchema, CallToolResultSchema, ElicitRequestSchema, McpError, ErrorCode, UrlElicitationRequiredError, ElicitationCompleteNotificationSchema } from '../../types.js'; -import { getDisplayName } from '../../shared/metadataUtils.js'; -import { exec } from 'node:child_process'; -import { InMemoryOAuthClientProvider } from './simpleOAuthClientProvider.js'; -import { UnauthorizedError } from '../../client/auth.js'; -import { createServer } from 'node:http'; -// Set up OAuth (required for this example) -const OAUTH_CALLBACK_PORT = 8090; // Use different port than auth server (3001) -const OAUTH_CALLBACK_URL = `http://localhost:${OAUTH_CALLBACK_PORT}/callback`; -let oauthProvider = undefined; -console.log('Getting OAuth token...'); -const clientMetadata = { - client_name: 'Elicitation MCP Client', - redirect_uris: [OAUTH_CALLBACK_URL], - grant_types: ['authorization_code', 'refresh_token'], - response_types: ['code'], - token_endpoint_auth_method: 'client_secret_post', - scope: 'mcp:tools' -}; -oauthProvider = new InMemoryOAuthClientProvider(OAUTH_CALLBACK_URL, clientMetadata, (redirectUrl) => { - console.log(`🌐 Opening browser for OAuth redirect: ${redirectUrl.toString()}`); - openBrowser(redirectUrl.toString()); -}); -// Create readline interface for user input -const readline = createInterface({ - input: process.stdin, - output: process.stdout -}); -let abortCommand = new AbortController(); -// Global client and transport for interactive commands -let client = null; -let transport = null; -let serverUrl = 'http://localhost:3000/mcp'; -let sessionId = undefined; -let isProcessingCommand = false; -let isProcessingElicitations = false; -const elicitationQueue = []; -let elicitationQueueSignal = null; -let elicitationsCompleteSignal = null; -// Map to track pending URL elicitations waiting for completion notifications -const pendingURLElicitations = new Map(); -async function main() { - console.log('MCP Interactive Client'); - console.log('====================='); - // Connect to server immediately with default settings - await connect(); - // Start the elicitation loop in the background - elicitationLoop().catch(error => { - console.error('Unexpected error in elicitation loop:', error); - process.exit(1); - }); - // Short delay allowing the server to send any SSE elicitations on connection - await new Promise(resolve => setTimeout(resolve, 200)); - // Wait until we are done processing any initial elicitations - await waitForElicitationsToComplete(); - // Print help and start the command loop - printHelp(); - await commandLoop(); -} -async function waitForElicitationsToComplete() { - // Wait until the queue is empty and nothing is being processed - while (elicitationQueue.length > 0 || isProcessingElicitations) { - await new Promise(resolve => setTimeout(resolve, 100)); - } -} -function printHelp() { - console.log('\nAvailable commands:'); - console.log(' connect [url] - Connect to MCP server (default: http://localhost:3000/mcp)'); - console.log(' disconnect - Disconnect from server'); - console.log(' terminate-session - Terminate the current session'); - console.log(' reconnect - Reconnect to the server'); - console.log(' list-tools - List available tools'); - console.log(' call-tool [args] - Call a tool with optional JSON arguments'); - console.log(' payment-confirm - Test URL elicitation via error response with payment-confirm tool'); - console.log(' third-party-auth - Test tool that requires third-party OAuth credentials'); - console.log(' help - Show this help'); - console.log(' quit - Exit the program'); -} -async function commandLoop() { - await new Promise(resolve => { - if (!isProcessingElicitations) { - resolve(); - } - else { - elicitationsCompleteSignal = resolve; - } - }); - readline.question('\n> ', { signal: abortCommand.signal }, async (input) => { - isProcessingCommand = true; - const args = input.trim().split(/\s+/); - const command = args[0]?.toLowerCase(); - try { - switch (command) { - case 'connect': - await connect(args[1]); - break; - case 'disconnect': - await disconnect(); - break; - case 'terminate-session': - await terminateSession(); - break; - case 'reconnect': - await reconnect(); - break; - case 'list-tools': - await listTools(); - break; - case 'call-tool': - if (args.length < 2) { - console.log('Usage: call-tool [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callTool(toolName, toolArgs); - } - break; - case 'payment-confirm': - await callPaymentConfirmTool(); - break; - case 'third-party-auth': - await callThirdPartyAuthTool(); - break; - case 'help': - printHelp(); - break; - case 'quit': - case 'exit': - await cleanup(); - return; - default: - if (command) { - console.log(`Unknown command: ${command}`); - } - break; - } - } - catch (error) { - console.error(`Error executing command: ${error}`); - } - finally { - isProcessingCommand = false; - } - // Process another command after we've processed the this one - await commandLoop(); - }); -} -async function elicitationLoop() { - while (true) { - // Wait until we have elicitations to process - await new Promise(resolve => { - if (elicitationQueue.length > 0) { - resolve(); - } - else { - elicitationQueueSignal = resolve; - } - }); - isProcessingElicitations = true; - abortCommand.abort(); // Abort the command loop if it's running - // Process all queued elicitations - while (elicitationQueue.length > 0) { - const queued = elicitationQueue.shift(); - console.log(`📤 Processing queued elicitation (${elicitationQueue.length} remaining)`); - try { - const result = await handleElicitationRequest(queued.request); - queued.resolve(result); - } - catch (error) { - queued.reject(error instanceof Error ? error : new Error(String(error))); - } - } - console.log('✅ All queued elicitations processed. Resuming command loop...\n'); - isProcessingElicitations = false; - // Reset the abort controller for the next command loop - abortCommand = new AbortController(); - // Resume the command loop - if (elicitationsCompleteSignal) { - elicitationsCompleteSignal(); - elicitationsCompleteSignal = null; - } - } -} -async function openBrowser(url) { - const command = `open "${url}"`; - exec(command, error => { - if (error) { - console.error(`Failed to open browser: ${error.message}`); - console.log(`Please manually open: ${url}`); - } - }); -} -/** - * Enqueues an elicitation request and returns the result. - * - * This function is used so that our CLI (which can only handle one input request at a time) - * can handle elicitation requests and the command loop. - * - * @param request - The elicitation request to be handled - * @returns The elicitation result - */ -async function elicitationRequestHandler(request) { - // If we are processing a command, handle this elicitation immediately - if (isProcessingCommand) { - console.log('📋 Processing elicitation immediately (during command execution)'); - return await handleElicitationRequest(request); - } - // Otherwise, queue the request to be handled by the elicitation loop - console.log(`📥 Queueing elicitation request (queue size will be: ${elicitationQueue.length + 1})`); - return new Promise((resolve, reject) => { - elicitationQueue.push({ - request, - resolve, - reject - }); - // Signal the elicitation loop that there's work to do - if (elicitationQueueSignal) { - elicitationQueueSignal(); - elicitationQueueSignal = null; - } - }); -} -/** - * Handles an elicitation request. - * - * This function is used to handle the elicitation request and return the result. - * - * @param request - The elicitation request to be handled - * @returns The elicitation result - */ -async function handleElicitationRequest(request) { - const mode = request.params.mode; - console.log('\n🔔 Elicitation Request Received:'); - console.log(`Mode: ${mode}`); - if (mode === 'url') { - return { - action: await handleURLElicitation(request.params) - }; - } - else { - // Should not happen because the client declares its capabilities to the server, - // but being defensive is a good practice: - throw new McpError(ErrorCode.InvalidParams, `Unsupported elicitation mode: ${mode}`); - } -} -/** - * Handles a URL elicitation by opening the URL in the browser. - * - * Note: This is a shared code for both request handlers and error handlers. - * As a result of sharing schema, there is no big forking of logic for the client. - * - * @param params - The URL elicitation request parameters - * @returns The action to take (accept, cancel, or decline) - */ -async function handleURLElicitation(params) { - const url = params.url; - const elicitationId = params.elicitationId; - const message = params.message; - console.log(`🆔 Elicitation ID: ${elicitationId}`); // Print for illustration - // Parse URL to show domain for security - let domain = 'unknown domain'; - try { - const parsedUrl = new URL(url); - domain = parsedUrl.hostname; - } - catch { - console.error('Invalid URL provided by server'); - return 'decline'; - } - // Example security warning to help prevent phishing attacks - console.log('\n⚠️ \x1b[33mSECURITY WARNING\x1b[0m ⚠️'); - console.log('\x1b[33mThe server is requesting you to open an external URL.\x1b[0m'); - console.log('\x1b[33mOnly proceed if you trust this server and understand why it needs this.\x1b[0m\n'); - console.log(`🌐 Target domain: \x1b[36m${domain}\x1b[0m`); - console.log(`🔗 Full URL: \x1b[36m${url}\x1b[0m`); - console.log(`\nℹ️ Server's reason:\n\n\x1b[36m${message}\x1b[0m\n`); - // 1. Ask for user consent to open the URL - const consent = await new Promise(resolve => { - readline.question('\nDo you want to open this URL in your browser? (y/n): ', input => { - resolve(input.trim().toLowerCase()); - }); - }); - // 2. If user did not consent, return appropriate result - if (consent === 'no' || consent === 'n') { - console.log('❌ URL navigation declined.'); - return 'decline'; - } - else if (consent !== 'yes' && consent !== 'y') { - console.log('🚫 Invalid response. Cancelling elicitation.'); - return 'cancel'; - } - // 3. Wait for completion notification in the background - const completionPromise = new Promise((resolve, reject) => { - const timeout = setTimeout(() => { - pendingURLElicitations.delete(elicitationId); - console.log(`\x1b[31m❌ Elicitation ${elicitationId} timed out waiting for completion.\x1b[0m`); - reject(new Error('Elicitation completion timeout')); - }, 5 * 60 * 1000); // 5 minute timeout - pendingURLElicitations.set(elicitationId, { - resolve: () => { - clearTimeout(timeout); - resolve(); - }, - reject, - timeout - }); - }); - completionPromise.catch(error => { - console.error('Background completion wait failed:', error); - }); - // 4. Open the URL in the browser - console.log(`\n🚀 Opening browser to: ${url}`); - await openBrowser(url); - console.log('\n⏳ Waiting for you to complete the interaction in your browser...'); - console.log(' The server will send a notification once you complete the action.'); - // 5. Acknowledge the user accepted the elicitation - return 'accept'; -} -/** - * Example OAuth callback handler - in production, use a more robust approach - * for handling callbacks and storing tokens - */ -/** - * Starts a temporary HTTP server to receive the OAuth callback - */ -async function waitForOAuthCallback() { - return new Promise((resolve, reject) => { - const server = createServer((req, res) => { - // Ignore favicon requests - if (req.url === '/favicon.ico') { - res.writeHead(404); - res.end(); - return; - } - console.log(`📥 Received callback: ${req.url}`); - const parsedUrl = new URL(req.url || '', 'http://localhost'); - const code = parsedUrl.searchParams.get('code'); - const error = parsedUrl.searchParams.get('error'); - if (code) { - console.log(`✅ Authorization code received: ${code?.substring(0, 10)}...`); - res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Successful!

-

This simulates successful authorization of the MCP client, which now has an access token for the MCP server.

-

This window will close automatically in 10 seconds.

- - - - `); - resolve(code); - setTimeout(() => server.close(), 15000); - } - else if (error) { - console.log(`❌ Authorization error: ${error}`); - res.writeHead(400, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Failed

-

Error: ${error}

- - - `); - reject(new Error(`OAuth authorization failed: ${error}`)); - } - else { - console.log(`❌ No authorization code or error in callback`); - res.writeHead(400); - res.end('Bad request'); - reject(new Error('No authorization code provided')); - } - }); - server.listen(OAUTH_CALLBACK_PORT, () => { - console.log(`OAuth callback server started on http://localhost:${OAUTH_CALLBACK_PORT}`); - }); - }); -} -/** - * Attempts to connect to the MCP server with OAuth authentication. - * Handles OAuth flow recursively if authorization is required. - */ -async function attemptConnection(oauthProvider) { - console.log('🚢 Creating transport with OAuth provider...'); - const baseUrl = new URL(serverUrl); - transport = new StreamableHTTPClientTransport(baseUrl, { - sessionId: sessionId, - authProvider: oauthProvider - }); - console.log('🚢 Transport created'); - try { - console.log('🔌 Attempting connection (this will trigger OAuth redirect if needed)...'); - await client.connect(transport); - sessionId = transport.sessionId; - console.log('Transport created with session ID:', sessionId); - console.log('✅ Connected successfully'); - } - catch (error) { - if (error instanceof UnauthorizedError) { - console.log('🔐 OAuth required - waiting for authorization...'); - const callbackPromise = waitForOAuthCallback(); - const authCode = await callbackPromise; - await transport.finishAuth(authCode); - console.log('🔐 Authorization code received:', authCode); - console.log('🔌 Reconnecting with authenticated transport...'); - // Recursively retry connection after OAuth completion - await attemptConnection(oauthProvider); - } - else { - console.error('❌ Connection failed with non-auth error:', error); - throw error; - } - } -} -async function connect(url) { - if (client) { - console.log('Already connected. Disconnect first.'); - return; - } - if (url) { - serverUrl = url; - } - console.log(`🔗 Attempting to connect to ${serverUrl}...`); - // Create a new client with elicitation capability - console.log('👤 Creating MCP client...'); - client = new Client({ - name: 'example-client', - version: '1.0.0' - }, { - capabilities: { - elicitation: { - // Only URL elicitation is supported in this demo - // (see server/elicitationExample.ts for a demo of form mode elicitation) - url: {} - } - } - }); - console.log('👤 Client created'); - // Set up elicitation request handler with proper validation - client.setRequestHandler(ElicitRequestSchema, elicitationRequestHandler); - // Set up notification handler for elicitation completion - client.setNotificationHandler(ElicitationCompleteNotificationSchema, notification => { - const { elicitationId } = notification.params; - const pending = pendingURLElicitations.get(elicitationId); - if (pending) { - clearTimeout(pending.timeout); - pendingURLElicitations.delete(elicitationId); - console.log(`\x1b[32m✅ Elicitation ${elicitationId} completed!\x1b[0m`); - pending.resolve(); - } - else { - // Shouldn't happen - discard it! - console.warn(`Received completion notification for unknown elicitation: ${elicitationId}`); - } - }); - try { - console.log('🔐 Starting OAuth flow...'); - await attemptConnection(oauthProvider); - console.log('Connected to MCP server'); - // Set up error handler after connection is established so we don't double log errors - client.onerror = error => { - console.error('\x1b[31mClient error:', error, '\x1b[0m'); - }; - } - catch (error) { - console.error('Failed to connect:', error); - client = null; - transport = null; - return; - } -} -async function disconnect() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - await transport.close(); - console.log('Disconnected from MCP server'); - client = null; - transport = null; - } - catch (error) { - console.error('Error disconnecting:', error); - } -} -async function terminateSession() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - console.log('Terminating session with ID:', transport.sessionId); - await transport.terminateSession(); - console.log('Session terminated successfully'); - // Check if sessionId was cleared after termination - if (!transport.sessionId) { - console.log('Session ID has been cleared'); - sessionId = undefined; - // Also close the transport and clear client objects - await transport.close(); - console.log('Transport closed after session termination'); - client = null; - transport = null; - } - else { - console.log('Server responded with 405 Method Not Allowed (session termination not supported)'); - console.log('Session ID is still active:', transport.sessionId); - } - } - catch (error) { - console.error('Error terminating session:', error); - } -} -async function reconnect() { - if (client) { - await disconnect(); - } - await connect(); -} -async function listTools() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - id: ${tool.name}, name: ${getDisplayName(tool)}, description: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server (${error})`); - } -} -async function callTool(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name, - arguments: args - } - }; - console.log(`Calling tool '${name}' with args:`, args); - const result = await client.request(request, CallToolResultSchema); - console.log('Tool result:'); - const resourceLinks = []; - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else if (item.type === 'resource_link') { - const resourceLink = item; - resourceLinks.push(resourceLink); - console.log(` 📁 Resource Link: ${resourceLink.name}`); - console.log(` URI: ${resourceLink.uri}`); - if (resourceLink.mimeType) { - console.log(` Type: ${resourceLink.mimeType}`); - } - if (resourceLink.description) { - console.log(` Description: ${resourceLink.description}`); - } - } - else if (item.type === 'resource') { - console.log(` [Embedded Resource: ${item.resource.uri}]`); - } - else if (item.type === 'image') { - console.log(` [Image: ${item.mimeType}]`); - } - else if (item.type === 'audio') { - console.log(` [Audio: ${item.mimeType}]`); - } - else { - console.log(` [Unknown content type]:`, item); - } - }); - // Offer to read resource links - if (resourceLinks.length > 0) { - console.log(`\nFound ${resourceLinks.length} resource link(s). Use 'read-resource ' to read their content.`); - } - } - catch (error) { - if (error instanceof UrlElicitationRequiredError) { - console.log('\n🔔 Elicitation Required Error Received:'); - console.log(`Message: ${error.message}`); - for (const e of error.elicitations) { - await handleURLElicitation(e); // For the error handler, we discard the action result because we don't respond to an error response - } - return; - } - console.log(`Error calling tool ${name}: ${error}`); - } -} -async function cleanup() { - if (client && transport) { - try { - // First try to terminate the session gracefully - if (transport.sessionId) { - try { - console.log('Terminating session before exit...'); - await transport.terminateSession(); - console.log('Session terminated successfully'); - } - catch (error) { - console.error('Error terminating session:', error); - } - } - // Then close the transport - await transport.close(); - } - catch (error) { - console.error('Error closing transport:', error); - } - } - process.stdin.setRawMode(false); - readline.close(); - console.log('\nGoodbye!'); - process.exit(0); -} -async function callPaymentConfirmTool() { - console.log('Calling payment-confirm tool...'); - await callTool('payment-confirm', { cartId: 'cart_123' }); -} -async function callThirdPartyAuthTool() { - console.log('Calling third-party-auth tool...'); - await callTool('third-party-auth', { param1: 'test' }); -} -// Set up raw mode for keyboard input to capture Escape key -process.stdin.setRawMode(true); -process.stdin.on('data', async (data) => { - // Check for Escape key (27) - if (data.length === 1 && data[0] === 27) { - console.log('\nESC key pressed. Disconnecting from server...'); - // Abort current operation and disconnect from server - if (client && transport) { - await disconnect(); - console.log('Disconnected. Press Enter to continue.'); - } - else { - console.log('Not connected to server.'); - } - // Re-display the prompt - process.stdout.write('> '); - } -}); -// Handle Ctrl+C -process.on('SIGINT', async () => { - console.log('\nReceived SIGINT. Cleaning up...'); - await cleanup(); -}); -// Start the interactive client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=elicitationUrlExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map deleted file mode 100644 index f221fbe..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.js","sourceRoot":"","sources":["../../../../src/examples/client/elicitationUrlExample.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,mEAAmE;AACnE,gDAAgD;AAChD,uFAAuF;AACvF,oCAAoC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAEH,qBAAqB,EAErB,oBAAoB,EACpB,mBAAmB,EAKnB,QAAQ,EACR,SAAS,EACT,2BAA2B,EAC3B,qCAAqC,EACxC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,2CAA2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CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts deleted file mode 100644 index 0ac5af8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=multipleClientsParallel.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map deleted file mode 100644 index 91051dc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleClientsParallel.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/multipleClientsParallel.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js deleted file mode 100644 index 4264856..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js +++ /dev/null @@ -1,132 +0,0 @@ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { CallToolResultSchema, LoggingMessageNotificationSchema } from '../../types.js'; -/** - * Multiple Clients MCP Example - * - * This client demonstrates how to: - * 1. Create multiple MCP clients in parallel - * 2. Each client calls a single tool - * 3. Track notifications from each client independently - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function createAndRunClient(config) { - console.log(`[${config.id}] Creating client: ${config.name}`); - const client = new Client({ - name: config.name, - version: '1.0.0' - }); - const transport = new StreamableHTTPClientTransport(new URL(serverUrl)); - // Set up client-specific error handler - client.onerror = error => { - console.error(`[${config.id}] Client error:`, error); - }; - // Set up client-specific notification handler - client.setNotificationHandler(LoggingMessageNotificationSchema, notification => { - console.log(`[${config.id}] Notification: ${notification.params.data}`); - }); - try { - // Connect to the server - await client.connect(transport); - console.log(`[${config.id}] Connected to MCP server`); - // Call the specified tool - console.log(`[${config.id}] Calling tool: ${config.toolName}`); - const toolRequest = { - method: 'tools/call', - params: { - name: config.toolName, - arguments: { - ...config.toolArguments, - // Add client ID to arguments for identification in notifications - caller: config.id - } - } - }; - const result = await client.request(toolRequest, CallToolResultSchema); - console.log(`[${config.id}] Tool call completed`); - // Keep the connection open for a bit to receive notifications - await new Promise(resolve => setTimeout(resolve, 5000)); - // Disconnect - await transport.close(); - console.log(`[${config.id}] Disconnected from MCP server`); - return { id: config.id, result }; - } - catch (error) { - console.error(`[${config.id}] Error:`, error); - throw error; - } -} -async function main() { - console.log('MCP Multiple Clients Example'); - console.log('============================'); - console.log(`Server URL: ${serverUrl}`); - console.log(''); - try { - // Define client configurations - const clientConfigs = [ - { - id: 'client1', - name: 'basic-client-1', - toolName: 'start-notification-stream', - toolArguments: { - interval: 3, // 1 second between notifications - count: 5 // Send 5 notifications - } - }, - { - id: 'client2', - name: 'basic-client-2', - toolName: 'start-notification-stream', - toolArguments: { - interval: 2, // 2 seconds between notifications - count: 3 // Send 3 notifications - } - }, - { - id: 'client3', - name: 'basic-client-3', - toolName: 'start-notification-stream', - toolArguments: { - interval: 1, // 0.5 second between notifications - count: 8 // Send 8 notifications - } - } - ]; - // Start all clients in parallel - console.log(`Starting ${clientConfigs.length} clients in parallel...`); - console.log(''); - const clientPromises = clientConfigs.map(config => createAndRunClient(config)); - const results = await Promise.all(clientPromises); - // Display results from all clients - console.log('\n=== Final Results ==='); - results.forEach(({ id, result }) => { - console.log(`\n[${id}] Tool result:`); - if (Array.isArray(result.content)) { - result.content.forEach((item) => { - if (item.type === 'text' && item.text) { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - else { - console.log(` Unexpected result format:`, result); - } - }); - console.log('\n=== All clients completed successfully ==='); - } - catch (error) { - console.error('Error running multiple clients:', error); - process.exit(1); - } -} -// Start the example -main().catch((error) => { - console.error('Error running MCP multiple clients example:', error); - process.exit(1); -}); -//# sourceMappingURL=multipleClientsParallel.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map deleted file mode 100644 index d02ce22..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multipleClientsParallel.js","sourceRoot":"","sources":["../../../../src/examples/client/multipleClientsParallel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAmB,oBAAoB,EAAE,gCAAgC,EAAkB,MAAM,gBAAgB,CAAC;AAEzH;;;;;;;GAOG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AASzD,KAAK,UAAU,kBAAkB,CAAC,MAAoB;IAClD,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,EAAE,sBAAsB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,I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AAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;IAChE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC;AAED,oBAAoB;AACpB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts deleted file mode 100644 index e93d4d6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=parallelToolCallsClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map deleted file mode 100644 index 25a3b82..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parallelToolCallsClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/parallelToolCallsClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js deleted file mode 100644 index 9d2a2e9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js +++ /dev/null @@ -1,174 +0,0 @@ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { ListToolsResultSchema, CallToolResultSchema, LoggingMessageNotificationSchema } from '../../types.js'; -/** - * Parallel Tool Calls MCP Client - * - * This client demonstrates how to: - * 1. Start multiple tool calls in parallel - * 2. Track notifications from each tool call using a caller parameter - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function main() { - console.log('MCP Parallel Tool Calls Client'); - console.log('=============================='); - console.log(`Connecting to server at: ${serverUrl}`); - let client; - let transport; - try { - // Create client with streamable HTTP transport - client = new Client({ - name: 'parallel-tool-calls-client', - version: '1.0.0' - }); - client.onerror = error => { - console.error('Client error:', error); - }; - // Connect to the server - transport = new StreamableHTTPClientTransport(new URL(serverUrl)); - await client.connect(transport); - console.log('Successfully connected to MCP server'); - // Set up notification handler with caller identification - client.setNotificationHandler(LoggingMessageNotificationSchema, notification => { - console.log(`Notification: ${notification.params.data}`); - }); - console.log('List tools'); - const toolsRequest = await listTools(client); - console.log('Tools: ', toolsRequest); - // 2. Start multiple notification tools in parallel - console.log('\n=== Starting Multiple Notification Streams in Parallel ==='); - const toolResults = await startParallelNotificationTools(client); - // Log the results from each tool call - for (const [caller, result] of Object.entries(toolResults)) { - console.log(`\n=== Tool result for ${caller} ===`); - result.content.forEach((item) => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - // 3. Wait for all notifications (10 seconds) - console.log('\n=== Waiting for all notifications ==='); - await new Promise(resolve => setTimeout(resolve, 10000)); - // 4. Disconnect - console.log('\n=== Disconnecting ==='); - await transport.close(); - console.log('Disconnected from MCP server'); - } - catch (error) { - console.error('Error running client:', error); - process.exit(1); - } -} -/** - * List available tools on the server - */ -async function listTools(client) { - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - ${tool.name}: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server: ${error}`); - } -} -/** - * Start multiple notification tools in parallel with different configurations - * Each tool call includes a caller parameter to identify its notifications - */ -async function startParallelNotificationTools(client) { - try { - // Define multiple tool calls with different configurations - const toolCalls = [ - { - caller: 'fast-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 2, // 0.5 second between notifications - count: 10, // Send 10 notifications - caller: 'fast-notifier' // Identify this tool call - } - } - } - }, - { - caller: 'slow-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 5, // 2 seconds between notifications - count: 5, // Send 5 notifications - caller: 'slow-notifier' // Identify this tool call - } - } - } - }, - { - caller: 'burst-notifier', - request: { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 1, // 0.1 second between notifications - count: 3, // Send just 3 notifications - caller: 'burst-notifier' // Identify this tool call - } - } - } - } - ]; - console.log(`Starting ${toolCalls.length} notification tools in parallel...`); - // Start all tool calls in parallel - const toolPromises = toolCalls.map(({ caller, request }) => { - console.log(`Starting tool call for ${caller}...`); - return client - .request(request, CallToolResultSchema) - .then(result => ({ caller, result })) - .catch(error => { - console.error(`Error in tool call for ${caller}:`, error); - throw error; - }); - }); - // Wait for all tool calls to complete - const results = await Promise.all(toolPromises); - // Organize results by caller - const resultsByTool = {}; - results.forEach(({ caller, result }) => { - resultsByTool[caller] = result; - }); - return resultsByTool; - } - catch (error) { - console.error(`Error starting parallel notification tools:`, error); - throw error; - } -} -// Start the client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=parallelToolCallsClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map deleted file mode 100644 index 0a04481..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parallelToolCallsClient.js","sourceRoot":"","sources":["../../../../src/examples/client/parallelToolCallsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAEH,qBAAqB,EACrB,oBAAoB,EACpB,gCAAgC,EAEnC,MAAM,gBAAgB,CAAC;AAExB;;;;;;GAMG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AAEzD,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;IAErD,IAAI,MAAc,CAAC;IACnB,IAAI,SAAwC,CAAC;IAE7C,IAAI,CAAC;QACD,+CAA+C;QAC/C,MAAM,GAAG,IAAI,MAAM,CAAC;YAChB,IAAI,EAAE,4BAA4B;YAClC,OAAO,EAAE,OAAO;SACnB,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,EAAE;YACrB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAA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MAAM,KAAK,CAAC,CAAC;YACnD,OAAO,MAAM;iBACR,OAAO,CAAC,OAAO,EAAE,oBAAoB,CAAC;iBACtC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACX,OAAO,CAAC,KAAK,CAAC,0BAA0B,MAAM,GAAG,EAAE,KAAK,CAAC,CAAC;gBAC1D,MAAM,KAAK,CAAC;YAChB,CAAC,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;QAEH,sCAAsC;QACtC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEhD,6BAA6B;QAC7B,MAAM,aAAa,GAAmC,EAAE,CAAC;QACzD,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;YACnC,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,OAAO,aAAa,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;QACpE,MAAM,KAAK,CAAC;IAChB,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts deleted file mode 100644 index 876d25d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env node -/** - * Example demonstrating client_credentials grant for machine-to-machine authentication. - * - * Supports two authentication methods based on environment variables: - * - * 1. client_secret_basic (default): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_SECRET - OAuth client secret (required) - * - * 2. private_key_jwt (when MCP_CLIENT_PRIVATE_KEY_PEM is set): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_PRIVATE_KEY_PEM - PEM-encoded private key for JWT signing (required) - * MCP_CLIENT_ALGORITHM - Signing algorithm (default: RS256) - * - * Common: - * MCP_SERVER_URL - Server URL (default: http://localhost:3000/mcp) - */ -export {}; -//# sourceMappingURL=simpleClientCredentials.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map deleted file mode 100644 index 7a935db..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleClientCredentials.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleClientCredentials.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;GAgBG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js deleted file mode 100644 index 7694bad..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env node -/** - * Example demonstrating client_credentials grant for machine-to-machine authentication. - * - * Supports two authentication methods based on environment variables: - * - * 1. client_secret_basic (default): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_SECRET - OAuth client secret (required) - * - * 2. private_key_jwt (when MCP_CLIENT_PRIVATE_KEY_PEM is set): - * MCP_CLIENT_ID - OAuth client ID (required) - * MCP_CLIENT_PRIVATE_KEY_PEM - PEM-encoded private key for JWT signing (required) - * MCP_CLIENT_ALGORITHM - Signing algorithm (default: RS256) - * - * Common: - * MCP_SERVER_URL - Server URL (default: http://localhost:3000/mcp) - */ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { ClientCredentialsProvider, PrivateKeyJwtProvider } from '../../client/auth-extensions.js'; -const DEFAULT_SERVER_URL = process.env.MCP_SERVER_URL || 'http://localhost:3000/mcp'; -function createProvider() { - const clientId = process.env.MCP_CLIENT_ID; - if (!clientId) { - console.error('MCP_CLIENT_ID environment variable is required'); - process.exit(1); - } - // If private key is provided, use private_key_jwt authentication - const privateKeyPem = process.env.MCP_CLIENT_PRIVATE_KEY_PEM; - if (privateKeyPem) { - const algorithm = process.env.MCP_CLIENT_ALGORITHM || 'RS256'; - console.log('Using private_key_jwt authentication'); - return new PrivateKeyJwtProvider({ - clientId, - privateKey: privateKeyPem, - algorithm - }); - } - // Otherwise, use client_secret_basic authentication - const clientSecret = process.env.MCP_CLIENT_SECRET; - if (!clientSecret) { - console.error('MCP_CLIENT_SECRET or MCP_CLIENT_PRIVATE_KEY_PEM environment variable is required'); - process.exit(1); - } - console.log('Using client_secret_basic authentication'); - return new ClientCredentialsProvider({ - clientId, - clientSecret - }); -} -async function main() { - const provider = createProvider(); - const client = new Client({ name: 'client-credentials-example', version: '1.0.0' }, { capabilities: {} }); - const transport = new StreamableHTTPClientTransport(new URL(DEFAULT_SERVER_URL), { - authProvider: provider - }); - await client.connect(transport); - console.log('Connected successfully.'); - const tools = await client.listTools(); - console.log('Available tools:', tools.tools.map(t => t.name).join(', ') || '(none)'); - await transport.close(); -} -main().catch(err => { - console.error(err); - process.exit(1); -}); -//# sourceMappingURL=simpleClientCredentials.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map deleted file mode 100644 index f6e7e21..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleClientCredentials.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleClientCredentials.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAGnG,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,2BAA2B,CAAC;AAErF,SAAS,cAAc;IACnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;IAC3C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;QAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,iEAAiE;IACjE,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC7D,IAAI,aAAa,EAAE,CAAC;QAChB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,OAAO,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;QACpD,OAAO,IAAI,qBAAqB,CAAC;YAC7B,QAAQ;YACR,UAAU,EAAE,aAAa;YACzB,SAAS;SACZ,CAAC,CAAC;IAC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I,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts deleted file mode 100644 index e4b43db..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -export {}; -//# sourceMappingURL=simpleOAuthClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map deleted file mode 100644 index c09eef8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js deleted file mode 100644 index c723097..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +++ /dev/null @@ -1,411 +0,0 @@ -#!/usr/bin/env node -import { createServer } from 'node:http'; -import { createInterface } from 'node:readline'; -import { URL } from 'node:url'; -import { exec } from 'node:child_process'; -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { CallToolResultSchema, ListToolsResultSchema } from '../../types.js'; -import { UnauthorizedError } from '../../client/auth.js'; -import { InMemoryOAuthClientProvider } from './simpleOAuthClientProvider.js'; -// Configuration -const DEFAULT_SERVER_URL = 'http://localhost:3000/mcp'; -const CALLBACK_PORT = 8090; // Use different port than auth server (3001) -const CALLBACK_URL = `http://localhost:${CALLBACK_PORT}/callback`; -/** - * Interactive MCP client with OAuth authentication - * Demonstrates the complete OAuth flow with browser-based authorization - */ -class InteractiveOAuthClient { - constructor(serverUrl, clientMetadataUrl) { - this.serverUrl = serverUrl; - this.clientMetadataUrl = clientMetadataUrl; - this.client = null; - this.rl = createInterface({ - input: process.stdin, - output: process.stdout - }); - } - /** - * Prompts user for input via readline - */ - async question(query) { - return new Promise(resolve => { - this.rl.question(query, resolve); - }); - } - /** - * Opens the authorization URL in the user's default browser - */ - async openBrowser(url) { - console.log(`🌐 Opening browser for authorization: ${url}`); - const command = `open "${url}"`; - exec(command, error => { - if (error) { - console.error(`Failed to open browser: ${error.message}`); - console.log(`Please manually open: ${url}`); - } - }); - } - /** - * Example OAuth callback handler - in production, use a more robust approach - * for handling callbacks and storing tokens - */ - /** - * Starts a temporary HTTP server to receive the OAuth callback - */ - async waitForOAuthCallback() { - return new Promise((resolve, reject) => { - const server = createServer((req, res) => { - // Ignore favicon requests - if (req.url === '/favicon.ico') { - res.writeHead(404); - res.end(); - return; - } - console.log(`📥 Received callback: ${req.url}`); - const parsedUrl = new URL(req.url || '', 'http://localhost'); - const code = parsedUrl.searchParams.get('code'); - const error = parsedUrl.searchParams.get('error'); - if (code) { - console.log(`✅ Authorization code received: ${code?.substring(0, 10)}...`); - res.writeHead(200, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Successful!

-

You can close this window and return to the terminal.

- - - - `); - resolve(code); - setTimeout(() => server.close(), 3000); - } - else if (error) { - console.log(`❌ Authorization error: ${error}`); - res.writeHead(400, { 'Content-Type': 'text/html' }); - res.end(` - - -

Authorization Failed

-

Error: ${error}

- - - `); - reject(new Error(`OAuth authorization failed: ${error}`)); - } - else { - console.log(`❌ No authorization code or error in callback`); - res.writeHead(400); - res.end('Bad request'); - reject(new Error('No authorization code provided')); - } - }); - server.listen(CALLBACK_PORT, () => { - console.log(`OAuth callback server started on http://localhost:${CALLBACK_PORT}`); - }); - }); - } - async attemptConnection(oauthProvider) { - console.log('🚢 Creating transport with OAuth provider...'); - const baseUrl = new URL(this.serverUrl); - const transport = new StreamableHTTPClientTransport(baseUrl, { - authProvider: oauthProvider - }); - console.log('🚢 Transport created'); - try { - console.log('🔌 Attempting connection (this will trigger OAuth redirect)...'); - await this.client.connect(transport); - console.log('✅ Connected successfully'); - } - catch (error) { - if (error instanceof UnauthorizedError) { - console.log('🔐 OAuth required - waiting for authorization...'); - const callbackPromise = this.waitForOAuthCallback(); - const authCode = await callbackPromise; - await transport.finishAuth(authCode); - console.log('🔐 Authorization code received:', authCode); - console.log('🔌 Reconnecting with authenticated transport...'); - await this.attemptConnection(oauthProvider); - } - else { - console.error('❌ Connection failed with non-auth error:', error); - throw error; - } - } - } - /** - * Establishes connection to the MCP server with OAuth authentication - */ - async connect() { - console.log(`🔗 Attempting to connect to ${this.serverUrl}...`); - const clientMetadata = { - client_name: 'Simple OAuth MCP Client', - redirect_uris: [CALLBACK_URL], - grant_types: ['authorization_code', 'refresh_token'], - response_types: ['code'], - token_endpoint_auth_method: 'client_secret_post' - }; - console.log('🔐 Creating OAuth provider...'); - const oauthProvider = new InMemoryOAuthClientProvider(CALLBACK_URL, clientMetadata, (redirectUrl) => { - console.log(`📌 OAuth redirect handler called - opening browser`); - console.log(`Opening browser to: ${redirectUrl.toString()}`); - this.openBrowser(redirectUrl.toString()); - }, this.clientMetadataUrl); - console.log('🔐 OAuth provider created'); - console.log('👤 Creating MCP client...'); - this.client = new Client({ - name: 'simple-oauth-client', - version: '1.0.0' - }, { capabilities: {} }); - console.log('👤 Client created'); - console.log('🔐 Starting OAuth flow...'); - await this.attemptConnection(oauthProvider); - // Start interactive loop - await this.interactiveLoop(); - } - /** - * Main interactive loop for user commands - */ - async interactiveLoop() { - console.log('\n🎯 Interactive MCP Client with OAuth'); - console.log('Commands:'); - console.log(' list - List available tools'); - console.log(' call [args] - Call a tool'); - console.log(' stream [args] - Call a tool with streaming (shows task status)'); - console.log(' quit - Exit the client'); - console.log(); - while (true) { - try { - const command = await this.question('mcp> '); - if (!command.trim()) { - continue; - } - if (command === 'quit') { - console.log('\n👋 Goodbye!'); - this.close(); - process.exit(0); - } - else if (command === 'list') { - await this.listTools(); - } - else if (command.startsWith('call ')) { - await this.handleCallTool(command); - } - else if (command.startsWith('stream ')) { - await this.handleStreamTool(command); - } - else { - console.log("❌ Unknown command. Try 'list', 'call ', 'stream ', or 'quit'"); - } - } - catch (error) { - if (error instanceof Error && error.message === 'SIGINT') { - console.log('\n\n👋 Goodbye!'); - break; - } - console.error('❌ Error:', error); - } - } - } - async listTools() { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - const request = { - method: 'tools/list', - params: {} - }; - const result = await this.client.request(request, ListToolsResultSchema); - if (result.tools && result.tools.length > 0) { - console.log('\n📋 Available tools:'); - result.tools.forEach((tool, index) => { - console.log(`${index + 1}. ${tool.name}`); - if (tool.description) { - console.log(` Description: ${tool.description}`); - } - console.log(); - }); - } - else { - console.log('No tools available'); - } - } - catch (error) { - console.error('❌ Failed to list tools:', error); - } - } - async handleCallTool(command) { - const parts = command.split(/\s+/); - const toolName = parts[1]; - if (!toolName) { - console.log('❌ Please specify a tool name'); - return; - } - // Parse arguments (simple JSON-like format) - let toolArgs = {}; - if (parts.length > 2) { - const argsString = parts.slice(2).join(' '); - try { - toolArgs = JSON.parse(argsString); - } - catch { - console.log('❌ Invalid arguments format (expected JSON)'); - return; - } - } - await this.callTool(toolName, toolArgs); - } - async callTool(toolName, toolArgs) { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name: toolName, - arguments: toolArgs - } - }; - const result = await this.client.request(request, CallToolResultSchema); - console.log(`\n🔧 Tool '${toolName}' result:`); - if (result.content) { - result.content.forEach(content => { - if (content.type === 'text') { - console.log(content.text); - } - else { - console.log(content); - } - }); - } - else { - console.log(result); - } - } - catch (error) { - console.error(`❌ Failed to call tool '${toolName}':`, error); - } - } - async handleStreamTool(command) { - const parts = command.split(/\s+/); - const toolName = parts[1]; - if (!toolName) { - console.log('❌ Please specify a tool name'); - return; - } - // Parse arguments (simple JSON-like format) - let toolArgs = {}; - if (parts.length > 2) { - const argsString = parts.slice(2).join(' '); - try { - toolArgs = JSON.parse(argsString); - } - catch { - console.log('❌ Invalid arguments format (expected JSON)'); - return; - } - } - await this.streamTool(toolName, toolArgs); - } - async streamTool(toolName, toolArgs) { - if (!this.client) { - console.log('❌ Not connected to server'); - return; - } - try { - // Using the experimental tasks API - WARNING: may change without notice - console.log(`\n🔧 Streaming tool '${toolName}'...`); - const stream = this.client.experimental.tasks.callToolStream({ - name: toolName, - arguments: toolArgs - }, CallToolResultSchema, { - task: { - taskId: `task-${Date.now()}`, - ttl: 60000 - } - }); - // Iterate through all messages yielded by the generator - for await (const message of stream) { - switch (message.type) { - case 'taskCreated': - console.log(`✓ Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`⟳ Status: ${message.task.status}`); - if (message.task.statusMessage) { - console.log(` ${message.task.statusMessage}`); - } - break; - case 'result': - console.log('✓ Completed!'); - message.result.content.forEach(content => { - if (content.type === 'text') { - console.log(content.text); - } - else { - console.log(content); - } - }); - break; - case 'error': - console.log('✗ Error:'); - console.log(` ${message.error.message}`); - break; - } - } - } - catch (error) { - console.error(`❌ Failed to stream tool '${toolName}':`, error); - } - } - close() { - this.rl.close(); - if (this.client) { - // Note: Client doesn't have a close method in the current implementation - // This would typically close the transport connection - } - } -} -/** - * Main entry point - */ -async function main() { - const args = process.argv.slice(2); - const serverUrl = args[0] || DEFAULT_SERVER_URL; - const clientMetadataUrl = args[1]; - console.log('🚀 Simple MCP OAuth Client'); - console.log(`Connecting to: ${serverUrl}`); - if (clientMetadataUrl) { - console.log(`Client Metadata URL: ${clientMetadataUrl}`); - } - console.log(); - const client = new InteractiveOAuthClient(serverUrl, clientMetadataUrl); - // Handle graceful shutdown - process.on('SIGINT', () => { - console.log('\n\n👋 Goodbye!'); - client.close(); - process.exit(0); - }); - try { - await client.connect(); - } - catch (error) { - console.error('Failed to start client:', error); - process.exit(1); - } - finally { - client.close(); - } -} -// Run if this file is executed directly -main().catch(error => { - console.error('Unhandled error:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleOAuthClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map deleted file mode 100644 index b6470b6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClient.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClient.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAAqC,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAChH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAE7E,gBAAgB;AAChB,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AACvD,MAAM,aAAa,GAAG,IAAI,CAAC,CAAC,6CAA6C;AACzE,MAAM,YAAY,GAAG,oBAAoB,aAAa,W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newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts deleted file mode 100644 index 092616c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { OAuthClientProvider } from '../../client/auth.js'; -import { OAuthClientInformationMixed, OAuthClientMetadata, OAuthTokens } from '../../shared/auth.js'; -/** - * In-memory OAuth client provider for demonstration purposes - * In production, you should persist tokens securely - */ -export declare class InMemoryOAuthClientProvider implements OAuthClientProvider { - private readonly _redirectUrl; - private readonly _clientMetadata; - readonly clientMetadataUrl?: string | undefined; - private _clientInformation?; - private _tokens?; - private _codeVerifier?; - constructor(_redirectUrl: string | URL, _clientMetadata: OAuthClientMetadata, onRedirect?: (url: URL) => void, clientMetadataUrl?: string | undefined); - private _onRedirect; - get redirectUrl(): string | URL; - get clientMetadata(): OAuthClientMetadata; - clientInformation(): OAuthClientInformationMixed | undefined; - saveClientInformation(clientInformation: OAuthClientInformationMixed): void; - tokens(): OAuthTokens | undefined; - saveTokens(tokens: OAuthTokens): void; - redirectToAuthorization(authorizationUrl: URL): void; - saveCodeVerifier(codeVerifier: string): void; - codeVerifier(): string; -} -//# sourceMappingURL=simpleOAuthClientProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map deleted file mode 100644 index 21efe94..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClientProvider.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClientProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAErG;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IAM/D,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;aAEhB,iBAAiB,CAAC,EAAE,MAAM;IAR9C,OAAO,CAAC,kBAAkB,CAAC,CAA8B;IACzD,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,aAAa,CAAC,CAAS;gBAGV,YAAY,EAAE,MAAM,GAAG,GAAG,EAC1B,eAAe,EAAE,mBAAmB,EACrD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,EACf,iBAAiB,CAAC,EAAE,MAAM,YAAA;IAS9C,OAAO,CAAC,WAAW,CAAqB;IAExC,IAAI,WAAW,IAAI,MAAM,GAAG,GAAG,CAE9B;IAED,IAAI,cAAc,IAAI,mBAAmB,CAExC;IAED,iBAAiB,IAAI,2BAA2B,GAAG,SAAS;IAI5D,qBAAqB,CAAC,iBAAiB,EAAE,2BAA2B,GAAG,IAAI;IAI3E,MAAM,IAAI,WAAW,GAAG,SAAS;IAIjC,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIrC,uBAAuB,CAAC,gBAAgB,EAAE,GAAG,GAAG,IAAI;IAIpD,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAI5C,YAAY,IAAI,MAAM;CAMzB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js deleted file mode 100644 index 7c350d1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * In-memory OAuth client provider for demonstration purposes - * In production, you should persist tokens securely - */ -export class InMemoryOAuthClientProvider { - constructor(_redirectUrl, _clientMetadata, onRedirect, clientMetadataUrl) { - this._redirectUrl = _redirectUrl; - this._clientMetadata = _clientMetadata; - this.clientMetadataUrl = clientMetadataUrl; - this._onRedirect = - onRedirect || - (url => { - console.log(`Redirect to: ${url.toString()}`); - }); - } - get redirectUrl() { - return this._redirectUrl; - } - get clientMetadata() { - return this._clientMetadata; - } - clientInformation() { - return this._clientInformation; - } - saveClientInformation(clientInformation) { - this._clientInformation = clientInformation; - } - tokens() { - return this._tokens; - } - saveTokens(tokens) { - this._tokens = tokens; - } - redirectToAuthorization(authorizationUrl) { - this._onRedirect(authorizationUrl); - } - saveCodeVerifier(codeVerifier) { - this._codeVerifier = codeVerifier; - } - codeVerifier() { - if (!this._codeVerifier) { - throw new Error('No code verifier saved'); - } - return this._codeVerifier; - } -} -//# sourceMappingURL=simpleOAuthClientProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map deleted file mode 100644 index 88f15cd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleOAuthClientProvider.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleOAuthClientProvider.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IAKpC,YACqB,YAA0B,EAC1B,eAAoC,EACrD,UAA+B,EACf,iBAA0B;QAHzB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,oBAAe,GAAf,eAAe,CAAqB;QAErC,sBAAiB,GAAjB,iBAAiB,CAAS;QAE1C,IAAI,CAAC,WAAW;YACZ,UAAU;gBACV,CAAC,GAAG,CAAC,EAAE;oBACH,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;IACX,CAAC;IAID,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,iBAAiB;QACb,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACnC,CAAC;IAED,qBAAqB,CAAC,iBAA8C;QAChE,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAChD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,UAAU,CAAC,MAAmB;QAC1B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,uBAAuB,CAAC,gBAAqB;QACzC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACvC,CAAC;IAED,gBAAgB,CAAC,YAAoB;QACjC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACtC,CAAC;IAED,YAAY;QACR,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts deleted file mode 100644 index a20be42..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map deleted file mode 100644 index 28406b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js deleted file mode 100644 index 2ece6a4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +++ /dev/null @@ -1,816 +0,0 @@ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { createInterface } from 'node:readline'; -import { ListToolsResultSchema, CallToolResultSchema, ListPromptsResultSchema, GetPromptResultSchema, ListResourcesResultSchema, LoggingMessageNotificationSchema, ResourceListChangedNotificationSchema, ElicitRequestSchema, ReadResourceResultSchema, RELATED_TASK_META_KEY, ErrorCode, McpError } from '../../types.js'; -import { getDisplayName } from '../../shared/metadataUtils.js'; -import { Ajv } from 'ajv'; -// Create readline interface for user input -const readline = createInterface({ - input: process.stdin, - output: process.stdout -}); -// Track received notifications for debugging resumability -let notificationCount = 0; -// Global client and transport for interactive commands -let client = null; -let transport = null; -let serverUrl = 'http://localhost:3000/mcp'; -let notificationsToolLastEventId = undefined; -let sessionId = undefined; -async function main() { - console.log('MCP Interactive Client'); - console.log('====================='); - // Connect to server immediately with default settings - await connect(); - // Print help and start the command loop - printHelp(); - commandLoop(); -} -function printHelp() { - console.log('\nAvailable commands:'); - console.log(' connect [url] - Connect to MCP server (default: http://localhost:3000/mcp)'); - console.log(' disconnect - Disconnect from server'); - console.log(' terminate-session - Terminate the current session'); - console.log(' reconnect - Reconnect to the server'); - console.log(' list-tools - List available tools'); - console.log(' call-tool [args] - Call a tool with optional JSON arguments'); - console.log(' call-tool-task [args] - Call a tool with task-based execution (example: call-tool-task delay {"duration":3000})'); - console.log(' greet [name] - Call the greet tool'); - console.log(' multi-greet [name] - Call the multi-greet tool with notifications'); - console.log(' collect-info [type] - Test form elicitation with collect-user-info tool (contact/preferences/feedback)'); - console.log(' start-notifications [interval] [count] - Start periodic notifications'); - console.log(' run-notifications-tool-with-resumability [interval] [count] - Run notification tool with resumability'); - console.log(' list-prompts - List available prompts'); - console.log(' get-prompt [name] [args] - Get a prompt with optional JSON arguments'); - console.log(' list-resources - List available resources'); - console.log(' read-resource - Read a specific resource by URI'); - console.log(' help - Show this help'); - console.log(' quit - Exit the program'); -} -function commandLoop() { - readline.question('\n> ', async (input) => { - const args = input.trim().split(/\s+/); - const command = args[0]?.toLowerCase(); - try { - switch (command) { - case 'connect': - await connect(args[1]); - break; - case 'disconnect': - await disconnect(); - break; - case 'terminate-session': - await terminateSession(); - break; - case 'reconnect': - await reconnect(); - break; - case 'list-tools': - await listTools(); - break; - case 'call-tool': - if (args.length < 2) { - console.log('Usage: call-tool [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callTool(toolName, toolArgs); - } - break; - case 'greet': - await callGreetTool(args[1] || 'MCP User'); - break; - case 'multi-greet': - await callMultiGreetTool(args[1] || 'MCP User'); - break; - case 'collect-info': - await callCollectInfoTool(args[1] || 'contact'); - break; - case 'start-notifications': { - const interval = args[1] ? parseInt(args[1], 10) : 2000; - const count = args[2] ? parseInt(args[2], 10) : 10; - await startNotifications(interval, count); - break; - } - case 'run-notifications-tool-with-resumability': { - const interval = args[1] ? parseInt(args[1], 10) : 2000; - const count = args[2] ? parseInt(args[2], 10) : 10; - await runNotificationsToolWithResumability(interval, count); - break; - } - case 'call-tool-task': - if (args.length < 2) { - console.log('Usage: call-tool-task [args]'); - } - else { - const toolName = args[1]; - let toolArgs = {}; - if (args.length > 2) { - try { - toolArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await callToolTask(toolName, toolArgs); - } - break; - case 'list-prompts': - await listPrompts(); - break; - case 'get-prompt': - if (args.length < 2) { - console.log('Usage: get-prompt [args]'); - } - else { - const promptName = args[1]; - let promptArgs = {}; - if (args.length > 2) { - try { - promptArgs = JSON.parse(args.slice(2).join(' ')); - } - catch { - console.log('Invalid JSON arguments. Using empty args.'); - } - } - await getPrompt(promptName, promptArgs); - } - break; - case 'list-resources': - await listResources(); - break; - case 'read-resource': - if (args.length < 2) { - console.log('Usage: read-resource '); - } - else { - await readResource(args[1]); - } - break; - case 'help': - printHelp(); - break; - case 'quit': - case 'exit': - await cleanup(); - return; - default: - if (command) { - console.log(`Unknown command: ${command}`); - } - break; - } - } - catch (error) { - console.error(`Error executing command: ${error}`); - } - // Continue the command loop - commandLoop(); - }); -} -async function connect(url) { - if (client) { - console.log('Already connected. Disconnect first.'); - return; - } - if (url) { - serverUrl = url; - } - console.log(`Connecting to ${serverUrl}...`); - try { - // Create a new client with form elicitation capability - client = new Client({ - name: 'example-client', - version: '1.0.0' - }, { - capabilities: { - elicitation: { - form: {} - } - } - }); - client.onerror = error => { - console.error('\x1b[31mClient error:', error, '\x1b[0m'); - }; - // Set up elicitation request handler with proper validation - client.setRequestHandler(ElicitRequestSchema, async (request) => { - if (request.params.mode !== 'form') { - throw new McpError(ErrorCode.InvalidParams, `Unsupported elicitation mode: ${request.params.mode}`); - } - console.log('\n🔔 Elicitation (form) Request Received:'); - console.log(`Message: ${request.params.message}`); - console.log(`Related Task: ${request.params._meta?.[RELATED_TASK_META_KEY]?.taskId}`); - console.log('Requested Schema:'); - console.log(JSON.stringify(request.params.requestedSchema, null, 2)); - const schema = request.params.requestedSchema; - const properties = schema.properties; - const required = schema.required || []; - // Set up AJV validator for the requested schema - const ajv = new Ajv(); - const validate = ajv.compile(schema); - let attempts = 0; - const maxAttempts = 3; - while (attempts < maxAttempts) { - attempts++; - console.log(`\nPlease provide the following information (attempt ${attempts}/${maxAttempts}):`); - const content = {}; - let inputCancelled = false; - // Collect input for each field - for (const [fieldName, fieldSchema] of Object.entries(properties)) { - const field = fieldSchema; - const isRequired = required.includes(fieldName); - let prompt = `${field.title || fieldName}`; - // Add helpful information to the prompt - if (field.description) { - prompt += ` (${field.description})`; - } - if (field.enum) { - prompt += ` [options: ${field.enum.join(', ')}]`; - } - if (field.type === 'number' || field.type === 'integer') { - if (field.minimum !== undefined && field.maximum !== undefined) { - prompt += ` [${field.minimum}-${field.maximum}]`; - } - else if (field.minimum !== undefined) { - prompt += ` [min: ${field.minimum}]`; - } - else if (field.maximum !== undefined) { - prompt += ` [max: ${field.maximum}]`; - } - } - if (field.type === 'string' && field.format) { - prompt += ` [format: ${field.format}]`; - } - if (isRequired) { - prompt += ' *required*'; - } - if (field.default !== undefined) { - prompt += ` [default: ${field.default}]`; - } - prompt += ': '; - const answer = await new Promise(resolve => { - readline.question(prompt, input => { - resolve(input.trim()); - }); - }); - // Check for cancellation - if (answer.toLowerCase() === 'cancel' || answer.toLowerCase() === 'c') { - inputCancelled = true; - break; - } - // Parse and validate the input - try { - if (answer === '' && field.default !== undefined) { - content[fieldName] = field.default; - } - else if (answer === '' && !isRequired) { - // Skip optional empty fields - continue; - } - else if (answer === '') { - throw new Error(`${fieldName} is required`); - } - else { - // Parse the value based on type - let parsedValue; - if (field.type === 'boolean') { - parsedValue = answer.toLowerCase() === 'true' || answer.toLowerCase() === 'yes' || answer === '1'; - } - else if (field.type === 'number') { - parsedValue = parseFloat(answer); - if (isNaN(parsedValue)) { - throw new Error(`${fieldName} must be a valid number`); - } - } - else if (field.type === 'integer') { - parsedValue = parseInt(answer, 10); - if (isNaN(parsedValue)) { - throw new Error(`${fieldName} must be a valid integer`); - } - } - else if (field.enum) { - if (!field.enum.includes(answer)) { - throw new Error(`${fieldName} must be one of: ${field.enum.join(', ')}`); - } - parsedValue = answer; - } - else { - parsedValue = answer; - } - content[fieldName] = parsedValue; - } - } - catch (error) { - console.log(`❌ Error: ${error}`); - // Continue to next attempt - break; - } - } - if (inputCancelled) { - return { action: 'cancel' }; - } - // If we didn't complete all fields due to an error, try again - if (Object.keys(content).length !== - Object.keys(properties).filter(name => required.includes(name) || content[name] !== undefined).length) { - if (attempts < maxAttempts) { - console.log('Please try again...'); - continue; - } - else { - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - } - } - // Validate the complete object against the schema - const isValid = validate(content); - if (!isValid) { - console.log('❌ Validation errors:'); - validate.errors?.forEach(error => { - console.log(` - ${error.instancePath || 'root'}: ${error.message}`); - }); - if (attempts < maxAttempts) { - console.log('Please correct the errors and try again...'); - continue; - } - else { - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - } - } - // Show the collected data and ask for confirmation - console.log('\n✅ Collected data:'); - console.log(JSON.stringify(content, null, 2)); - const confirmAnswer = await new Promise(resolve => { - readline.question('\nSubmit this information? (yes/no/cancel): ', input => { - resolve(input.trim().toLowerCase()); - }); - }); - if (confirmAnswer === 'yes' || confirmAnswer === 'y') { - return { - action: 'accept', - content - }; - } - else if (confirmAnswer === 'cancel' || confirmAnswer === 'c') { - return { action: 'cancel' }; - } - else if (confirmAnswer === 'no' || confirmAnswer === 'n') { - if (attempts < maxAttempts) { - console.log('Please re-enter the information...'); - continue; - } - else { - return { action: 'decline' }; - } - } - } - console.log('Maximum attempts reached. Declining request.'); - return { action: 'decline' }; - }); - transport = new StreamableHTTPClientTransport(new URL(serverUrl), { - sessionId: sessionId - }); - // Set up notification handlers - client.setNotificationHandler(LoggingMessageNotificationSchema, notification => { - notificationCount++; - console.log(`\nNotification #${notificationCount}: ${notification.params.level} - ${notification.params.data}`); - // Re-display the prompt - process.stdout.write('> '); - }); - client.setNotificationHandler(ResourceListChangedNotificationSchema, async (_) => { - console.log(`\nResource list changed notification received!`); - try { - if (!client) { - console.log('Client disconnected, cannot fetch resources'); - return; - } - const resourcesResult = await client.request({ - method: 'resources/list', - params: {} - }, ListResourcesResultSchema); - console.log('Available resources count:', resourcesResult.resources.length); - } - catch { - console.log('Failed to list resources after change notification'); - } - // Re-display the prompt - process.stdout.write('> '); - }); - // Connect the client - await client.connect(transport); - sessionId = transport.sessionId; - console.log('Transport created with session ID:', sessionId); - console.log('Connected to MCP server'); - } - catch (error) { - console.error('Failed to connect:', error); - client = null; - transport = null; - } -} -async function disconnect() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - await transport.close(); - console.log('Disconnected from MCP server'); - client = null; - transport = null; - } - catch (error) { - console.error('Error disconnecting:', error); - } -} -async function terminateSession() { - if (!client || !transport) { - console.log('Not connected.'); - return; - } - try { - console.log('Terminating session with ID:', transport.sessionId); - await transport.terminateSession(); - console.log('Session terminated successfully'); - // Check if sessionId was cleared after termination - if (!transport.sessionId) { - console.log('Session ID has been cleared'); - sessionId = undefined; - // Also close the transport and clear client objects - await transport.close(); - console.log('Transport closed after session termination'); - client = null; - transport = null; - } - else { - console.log('Server responded with 405 Method Not Allowed (session termination not supported)'); - console.log('Session ID is still active:', transport.sessionId); - } - } - catch (error) { - console.error('Error terminating session:', error); - } -} -async function reconnect() { - if (client) { - await disconnect(); - } - await connect(); -} -async function listTools() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - id: ${tool.name}, name: ${getDisplayName(tool)}, description: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server (${error})`); - } -} -async function callTool(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'tools/call', - params: { - name, - arguments: args - } - }; - console.log(`Calling tool '${name}' with args:`, args); - const result = await client.request(request, CallToolResultSchema); - console.log('Tool result:'); - const resourceLinks = []; - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else if (item.type === 'resource_link') { - const resourceLink = item; - resourceLinks.push(resourceLink); - console.log(` 📁 Resource Link: ${resourceLink.name}`); - console.log(` URI: ${resourceLink.uri}`); - if (resourceLink.mimeType) { - console.log(` Type: ${resourceLink.mimeType}`); - } - if (resourceLink.description) { - console.log(` Description: ${resourceLink.description}`); - } - } - else if (item.type === 'resource') { - console.log(` [Embedded Resource: ${item.resource.uri}]`); - } - else if (item.type === 'image') { - console.log(` [Image: ${item.mimeType}]`); - } - else if (item.type === 'audio') { - console.log(` [Audio: ${item.mimeType}]`); - } - else { - console.log(` [Unknown content type]:`, item); - } - }); - // Offer to read resource links - if (resourceLinks.length > 0) { - console.log(`\nFound ${resourceLinks.length} resource link(s). Use 'read-resource ' to read their content.`); - } - } - catch (error) { - console.log(`Error calling tool ${name}: ${error}`); - } -} -async function callGreetTool(name) { - await callTool('greet', { name }); -} -async function callMultiGreetTool(name) { - console.log('Calling multi-greet tool with notifications...'); - await callTool('multi-greet', { name }); -} -async function callCollectInfoTool(infoType) { - console.log(`Testing form elicitation with collect-user-info tool (${infoType})...`); - await callTool('collect-user-info', { infoType }); -} -async function startNotifications(interval, count) { - console.log(`Starting notification stream: interval=${interval}ms, count=${count || 'unlimited'}`); - await callTool('start-notification-stream', { interval, count }); -} -async function runNotificationsToolWithResumability(interval, count) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - console.log(`Starting notification stream with resumability: interval=${interval}ms, count=${count || 'unlimited'}`); - console.log(`Using resumption token: ${notificationsToolLastEventId || 'none'}`); - const request = { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { interval, count } - } - }; - const onLastEventIdUpdate = (event) => { - notificationsToolLastEventId = event; - console.log(`Updated resumption token: ${event}`); - }; - const result = await client.request(request, CallToolResultSchema, { - resumptionToken: notificationsToolLastEventId, - onresumptiontoken: onLastEventIdUpdate - }); - console.log('Tool result:'); - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - catch (error) { - console.log(`Error starting notification stream: ${error}`); - } -} -async function listPrompts() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const promptsRequest = { - method: 'prompts/list', - params: {} - }; - const promptsResult = await client.request(promptsRequest, ListPromptsResultSchema); - console.log('Available prompts:'); - if (promptsResult.prompts.length === 0) { - console.log(' No prompts available'); - } - else { - for (const prompt of promptsResult.prompts) { - console.log(` - id: ${prompt.name}, name: ${getDisplayName(prompt)}, description: ${prompt.description}`); - } - } - } - catch (error) { - console.log(`Prompts not supported by this server (${error})`); - } -} -async function getPrompt(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const promptRequest = { - method: 'prompts/get', - params: { - name, - arguments: args - } - }; - const promptResult = await client.request(promptRequest, GetPromptResultSchema); - console.log('Prompt template:'); - promptResult.messages.forEach((msg, index) => { - console.log(` [${index + 1}] ${msg.role}: ${msg.content.type === 'text' ? msg.content.text : JSON.stringify(msg.content)}`); - }); - } - catch (error) { - console.log(`Error getting prompt ${name}: ${error}`); - } -} -async function listResources() { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const resourcesRequest = { - method: 'resources/list', - params: {} - }; - const resourcesResult = await client.request(resourcesRequest, ListResourcesResultSchema); - console.log('Available resources:'); - if (resourcesResult.resources.length === 0) { - console.log(' No resources available'); - } - else { - for (const resource of resourcesResult.resources) { - console.log(` - id: ${resource.name}, name: ${getDisplayName(resource)}, description: ${resource.uri}`); - } - } - } - catch (error) { - console.log(`Resources not supported by this server (${error})`); - } -} -async function readResource(uri) { - if (!client) { - console.log('Not connected to server.'); - return; - } - try { - const request = { - method: 'resources/read', - params: { uri } - }; - console.log(`Reading resource: ${uri}`); - const result = await client.request(request, ReadResourceResultSchema); - console.log('Resource contents:'); - for (const content of result.contents) { - console.log(` URI: ${content.uri}`); - if (content.mimeType) { - console.log(` Type: ${content.mimeType}`); - } - if ('text' in content && typeof content.text === 'string') { - console.log(' Content:'); - console.log(' ---'); - console.log(content.text - .split('\n') - .map((line) => ' ' + line) - .join('\n')); - console.log(' ---'); - } - else if ('blob' in content && typeof content.blob === 'string') { - console.log(` [Binary data: ${content.blob.length} bytes]`); - } - } - } - catch (error) { - console.log(`Error reading resource ${uri}: ${error}`); - } -} -async function callToolTask(name, args) { - if (!client) { - console.log('Not connected to server.'); - return; - } - console.log(`Calling tool '${name}' with task-based execution...`); - console.log('Arguments:', args); - // Use task-based execution - call now, fetch later - // Using the experimental tasks API - WARNING: may change without notice - console.log('This will return immediately while processing continues in the background...'); - try { - // Call the tool with task metadata using streaming API - const stream = client.experimental.tasks.callToolStream({ - name, - arguments: args - }, CallToolResultSchema, { - task: { - ttl: 60000 // Keep results for 60 seconds - } - }); - console.log('Waiting for task completion...'); - let lastStatus = ''; - for await (const message of stream) { - switch (message.type) { - case 'taskCreated': - console.log('Task created successfully with ID:', message.task.taskId); - break; - case 'taskStatus': - if (lastStatus !== message.task.status) { - console.log(` ${message.task.status}${message.task.statusMessage ? ` - ${message.task.statusMessage}` : ''}`); - } - lastStatus = message.task.status; - break; - case 'result': - console.log('Task completed!'); - console.log('Tool result:'); - message.result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - }); - break; - case 'error': - throw message.error; - } - } - } - catch (error) { - console.log(`Error with task-based execution: ${error}`); - } -} -async function cleanup() { - if (client && transport) { - try { - // First try to terminate the session gracefully - if (transport.sessionId) { - try { - console.log('Terminating session before exit...'); - await transport.terminateSession(); - console.log('Session terminated successfully'); - } - catch (error) { - console.error('Error terminating session:', error); - } - } - // Then close the transport - await transport.close(); - } - catch (error) { - console.error('Error closing transport:', error); - } - } - process.stdin.setRawMode(false); - readline.close(); - console.log('\nGoodbye!'); - process.exit(0); -} -// Set up raw mode for keyboard input to capture Escape key -process.stdin.setRawMode(true); -process.stdin.on('data', async (data) => { - // Check for Escape key (27) - if (data.length === 1 && data[0] === 27) { - console.log('\nESC key pressed. Disconnecting from server...'); - // Abort current operation and disconnect from server - if (client && transport) { - await disconnect(); - console.log('Disconnected. Press Enter to continue.'); - } - else { - console.log('Not connected to server.'); - } - // Re-display the prompt - process.stdout.write('> '); - } -}); -// Handle Ctrl+C -process.on('SIGINT', async () => { - console.log('\nReceived SIGINT. Cleaning up...'); - await cleanup(); -}); -// Start the interactive client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map deleted file mode 100644 index c9a780d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleStreamableHttp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAEH,qBAAqB,EAErB,oBAAoB,EAEpB,uBAAuB,EAEvB,qBAAqB,EAErB,yBAAyB,EACzB,gCAAgC,EAChC,qCAAqC,EACrC,mBAAmB,EAGnB,wBAAwB,EACxB,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACX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,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;QAE/D,qDAAqD;QACrD,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;YACtB,MAAM,UAAU,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QAC1D,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QAC5C,CAAC;QAED,wBAAwB;QACxB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,gBAAgB;AAChB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;IACjD,MAAM,OAAO,EAAE,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,+BAA+B;AAC/B,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts deleted file mode 100644 index c794066..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Simple interactive task client demonstrating elicitation and sampling responses. - * - * This client connects to simpleTaskInteractive.ts server and demonstrates: - * - Handling elicitation requests (y/n confirmation) - * - Handling sampling requests (returns a hardcoded haiku) - * - Using task-based tool execution with streaming - */ -export {}; -//# sourceMappingURL=simpleTaskInteractiveClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map deleted file mode 100644 index 89b7338..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractiveClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/simpleTaskInteractiveClient.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js deleted file mode 100644 index 5a238c5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Simple interactive task client demonstrating elicitation and sampling responses. - * - * This client connects to simpleTaskInteractive.ts server and demonstrates: - * - Handling elicitation requests (y/n confirmation) - * - Handling sampling requests (returns a hardcoded haiku) - * - Using task-based tool execution with streaming - */ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { createInterface } from 'node:readline'; -import { CallToolResultSchema, ElicitRequestSchema, CreateMessageRequestSchema, ErrorCode, McpError } from '../../types.js'; -// Create readline interface for user input -const readline = createInterface({ - input: process.stdin, - output: process.stdout -}); -function question(prompt) { - return new Promise(resolve => { - readline.question(prompt, answer => { - resolve(answer.trim()); - }); - }); -} -function getTextContent(result) { - const textContent = result.content.find((c) => c.type === 'text'); - return textContent?.text ?? '(no text)'; -} -async function elicitationCallback(params) { - console.log(`\n[Elicitation] Server asks: ${params.message}`); - // Simple terminal prompt for y/n - const response = await question('Your response (y/n): '); - const confirmed = ['y', 'yes', 'true', '1'].includes(response.toLowerCase()); - console.log(`[Elicitation] Responding with: confirm=${confirmed}`); - return { action: 'accept', content: { confirm: confirmed } }; -} -async function samplingCallback(params) { - // Get the prompt from the first message - let prompt = 'unknown'; - if (params.messages && params.messages.length > 0) { - const firstMessage = params.messages[0]; - const content = firstMessage.content; - if (typeof content === 'object' && !Array.isArray(content) && content.type === 'text' && 'text' in content) { - prompt = content.text; - } - else if (Array.isArray(content)) { - const textPart = content.find(c => c.type === 'text' && 'text' in c); - if (textPart && 'text' in textPart) { - prompt = textPart.text; - } - } - } - console.log(`\n[Sampling] Server requests LLM completion for: ${prompt}`); - // Return a hardcoded haiku (in real use, call your LLM here) - const haiku = `Cherry blossoms fall -Softly on the quiet pond -Spring whispers goodbye`; - console.log('[Sampling] Responding with haiku'); - return { - model: 'mock-haiku-model', - role: 'assistant', - content: { type: 'text', text: haiku } - }; -} -async function run(url) { - console.log('Simple Task Interactive Client'); - console.log('=============================='); - console.log(`Connecting to ${url}...`); - // Create client with elicitation and sampling capabilities - const client = new Client({ name: 'simple-task-interactive-client', version: '1.0.0' }, { - capabilities: { - elicitation: { form: {} }, - sampling: {} - } - }); - // Set up elicitation request handler - client.setRequestHandler(ElicitRequestSchema, async (request) => { - if (request.params.mode && request.params.mode !== 'form') { - throw new McpError(ErrorCode.InvalidParams, `Unsupported elicitation mode: ${request.params.mode}`); - } - return elicitationCallback(request.params); - }); - // Set up sampling request handler - client.setRequestHandler(CreateMessageRequestSchema, async (request) => { - return samplingCallback(request.params); - }); - // Connect to server - const transport = new StreamableHTTPClientTransport(new URL(url)); - await client.connect(transport); - console.log('Connected!\n'); - // List tools - const toolsResult = await client.listTools(); - console.log(`Available tools: ${toolsResult.tools.map(t => t.name).join(', ')}`); - // Demo 1: Elicitation (confirm_delete) - console.log('\n--- Demo 1: Elicitation ---'); - console.log('Calling confirm_delete tool...'); - const confirmStream = client.experimental.tasks.callToolStream({ name: 'confirm_delete', arguments: { filename: 'important.txt' } }, CallToolResultSchema, { task: { ttl: 60000 } }); - for await (const message of confirmStream) { - switch (message.type) { - case 'taskCreated': - console.log(`Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`Task status: ${message.task.status}`); - break; - case 'result': - console.log(`Result: ${getTextContent(message.result)}`); - break; - case 'error': - console.error(`Error: ${message.error}`); - break; - } - } - // Demo 2: Sampling (write_haiku) - console.log('\n--- Demo 2: Sampling ---'); - console.log('Calling write_haiku tool...'); - const haikuStream = client.experimental.tasks.callToolStream({ name: 'write_haiku', arguments: { topic: 'autumn leaves' } }, CallToolResultSchema, { - task: { ttl: 60000 } - }); - for await (const message of haikuStream) { - switch (message.type) { - case 'taskCreated': - console.log(`Task created: ${message.task.taskId}`); - break; - case 'taskStatus': - console.log(`Task status: ${message.task.status}`); - break; - case 'result': - console.log(`Result:\n${getTextContent(message.result)}`); - break; - case 'error': - console.error(`Error: ${message.error}`); - break; - } - } - // Cleanup - console.log('\nDemo complete. Closing connection...'); - await transport.close(); - readline.close(); -} -// Parse command line arguments -const args = process.argv.slice(2); -let url = 'http://localhost:8000/mcp'; -for (let i = 0; i < args.length; i++) { - if (args[i] === '--url' && args[i + 1]) { - url = args[i + 1]; - i++; - } -} -// Run the client -run(url).catch(error => { - console.error('Error running client:', error); - process.exit(1); -}); -//# sourceMappingURL=simpleTaskInteractiveClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map deleted file mode 100644 index 6adb4ff..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractiveClient.js","sourceRoot":"","sources":["../../../../src/examples/client/simpleTaskInteractiveClient.ts"],"names":[],"mappings":"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AC;AACnC,IAAI,GAAG,GAAG,2BAA2B,CAAC;AAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;IACnC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QACrC,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAClB,CAAC,EAAE,CAAC;IACR,CAAC;AACL,CAAC;AAED,iBAAiB;AACjB,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts deleted file mode 100644 index 134b4b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ssePollingClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map deleted file mode 100644 index 59e4153..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/ssePollingClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js deleted file mode 100644 index 6bd93a9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * SSE Polling Example Client (SEP-1699) - * - * This example demonstrates client-side behavior during server-initiated - * SSE stream disconnection and automatic reconnection. - * - * Key features demonstrated: - * - Automatic reconnection when server closes SSE stream - * - Event replay via Last-Event-ID header - * - Resumption token tracking via onresumptiontoken callback - * - * Run with: npx tsx src/examples/client/ssePollingClient.ts - * Requires: ssePollingExample.ts server running on port 3001 - */ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { CallToolResultSchema, LoggingMessageNotificationSchema } from '../../types.js'; -const SERVER_URL = 'http://localhost:3001/mcp'; -async function main() { - console.log('SSE Polling Example Client'); - console.log('=========================='); - console.log(`Connecting to ${SERVER_URL}...`); - console.log(''); - // Create transport with reconnection options - const transport = new StreamableHTTPClientTransport(new URL(SERVER_URL), { - // Use default reconnection options - SDK handles automatic reconnection - }); - // Track the last event ID for debugging - let lastEventId; - // Set up transport error handler to observe disconnections - // Filter out expected errors from SSE reconnection - transport.onerror = error => { - // Skip abort errors during intentional close - if (error.message.includes('AbortError')) - return; - // Show SSE disconnect (expected when server closes stream) - if (error.message.includes('Unexpected end of JSON')) { - console.log('[Transport] SSE stream disconnected - client will auto-reconnect'); - return; - } - console.log(`[Transport] Error: ${error.message}`); - }; - // Set up transport close handler - transport.onclose = () => { - console.log('[Transport] Connection closed'); - }; - // Create and connect client - const client = new Client({ - name: 'sse-polling-client', - version: '1.0.0' - }); - // Set up notification handler to receive progress updates - client.setNotificationHandler(LoggingMessageNotificationSchema, notification => { - const data = notification.params.data; - console.log(`[Notification] ${data}`); - }); - try { - await client.connect(transport); - console.log('[Client] Connected successfully'); - console.log(''); - // Call the long-task tool - console.log('[Client] Calling long-task tool...'); - console.log('[Client] Server will disconnect mid-task to demonstrate polling'); - console.log(''); - const result = await client.request({ - method: 'tools/call', - params: { - name: 'long-task', - arguments: {} - } - }, CallToolResultSchema, { - // Track resumption tokens for debugging - onresumptiontoken: token => { - lastEventId = token; - console.log(`[Event ID] ${token}`); - } - }); - console.log(''); - console.log('[Client] Tool completed!'); - console.log(`[Result] ${JSON.stringify(result.content, null, 2)}`); - console.log(''); - console.log(`[Debug] Final event ID: ${lastEventId}`); - } - catch (error) { - console.error('[Error]', error); - } - finally { - await transport.close(); - console.log('[Client] Disconnected'); - } -} -main().catch(console.error); -//# sourceMappingURL=ssePollingClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map deleted file mode 100644 index c41b433..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingClient.js","sourceRoot":"","sources":["../../../../src/examples/client/ssePollingClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAExF,MAAM,UAAU,GAAG,2BAA2B,CAAC;AAE/C,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,iBAAiB,UAAU,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,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modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts deleted file mode 100644 index c2679e6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=streamableHttpWithSseFallbackClient.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map deleted file mode 100644 index b79ae2a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttpWithSseFallbackClient.d.ts","sourceRoot":"","sources":["../../../../src/examples/client/streamableHttpWithSseFallbackClient.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js deleted file mode 100644 index 1bea768..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +++ /dev/null @@ -1,166 +0,0 @@ -import { Client } from '../../client/index.js'; -import { StreamableHTTPClientTransport } from '../../client/streamableHttp.js'; -import { SSEClientTransport } from '../../client/sse.js'; -import { ListToolsResultSchema, CallToolResultSchema, LoggingMessageNotificationSchema } from '../../types.js'; -/** - * Simplified Backwards Compatible MCP Client - * - * This client demonstrates backward compatibility with both: - * 1. Modern servers using Streamable HTTP transport (protocol version 2025-03-26) - * 2. Older servers using HTTP+SSE transport (protocol version 2024-11-05) - * - * Following the MCP specification for backwards compatibility: - * - Attempts to POST an initialize request to the server URL first (modern transport) - * - If that fails with 4xx status, falls back to GET request for SSE stream (older transport) - */ -// Command line args processing -const args = process.argv.slice(2); -const serverUrl = args[0] || 'http://localhost:3000/mcp'; -async function main() { - console.log('MCP Backwards Compatible Client'); - console.log('==============================='); - console.log(`Connecting to server at: ${serverUrl}`); - let client; - let transport; - try { - // Try connecting with automatic transport detection - const connection = await connectWithBackwardsCompatibility(serverUrl); - client = connection.client; - transport = connection.transport; - // Set up notification handler - client.setNotificationHandler(LoggingMessageNotificationSchema, notification => { - console.log(`Notification: ${notification.params.level} - ${notification.params.data}`); - }); - // DEMO WORKFLOW: - // 1. List available tools - console.log('\n=== Listing Available Tools ==='); - await listTools(client); - // 2. Call the notification tool - console.log('\n=== Starting Notification Stream ==='); - await startNotificationTool(client); - // 3. Wait for all notifications (5 seconds) - console.log('\n=== Waiting for all notifications ==='); - await new Promise(resolve => setTimeout(resolve, 5000)); - // 4. Disconnect - console.log('\n=== Disconnecting ==='); - await transport.close(); - console.log('Disconnected from MCP server'); - } - catch (error) { - console.error('Error running client:', error); - process.exit(1); - } -} -/** - * Connect to an MCP server with backwards compatibility - * Following the spec for client backward compatibility - */ -async function connectWithBackwardsCompatibility(url) { - console.log('1. Trying Streamable HTTP transport first...'); - // Step 1: Try Streamable HTTP transport first - const client = new Client({ - name: 'backwards-compatible-client', - version: '1.0.0' - }); - client.onerror = error => { - console.error('Client error:', error); - }; - const baseUrl = new URL(url); - try { - // Create modern transport - const streamableTransport = new StreamableHTTPClientTransport(baseUrl); - await client.connect(streamableTransport); - console.log('Successfully connected using modern Streamable HTTP transport.'); - return { - client, - transport: streamableTransport, - transportType: 'streamable-http' - }; - } - catch (error) { - // Step 2: If transport fails, try the older SSE transport - console.log(`StreamableHttp transport connection failed: ${error}`); - console.log('2. Falling back to deprecated HTTP+SSE transport...'); - try { - // Create SSE transport pointing to /sse endpoint - const sseTransport = new SSEClientTransport(baseUrl); - const sseClient = new Client({ - name: 'backwards-compatible-client', - version: '1.0.0' - }); - await sseClient.connect(sseTransport); - console.log('Successfully connected using deprecated HTTP+SSE transport.'); - return { - client: sseClient, - transport: sseTransport, - transportType: 'sse' - }; - } - catch (sseError) { - console.error(`Failed to connect with either transport method:\n1. Streamable HTTP error: ${error}\n2. SSE error: ${sseError}`); - throw new Error('Could not connect to server with any available transport'); - } - } -} -/** - * List available tools on the server - */ -async function listTools(client) { - try { - const toolsRequest = { - method: 'tools/list', - params: {} - }; - const toolsResult = await client.request(toolsRequest, ListToolsResultSchema); - console.log('Available tools:'); - if (toolsResult.tools.length === 0) { - console.log(' No tools available'); - } - else { - for (const tool of toolsResult.tools) { - console.log(` - ${tool.name}: ${tool.description}`); - } - } - } - catch (error) { - console.log(`Tools not supported by this server: ${error}`); - } -} -/** - * Start a notification stream by calling the notification tool - */ -async function startNotificationTool(client) { - try { - // Call the notification tool using reasonable defaults - const request = { - method: 'tools/call', - params: { - name: 'start-notification-stream', - arguments: { - interval: 1000, // 1 second between notifications - count: 5 // Send 5 notifications - } - } - }; - console.log('Calling notification tool...'); - const result = await client.request(request, CallToolResultSchema); - console.log('Tool result:'); - result.content.forEach(item => { - if (item.type === 'text') { - console.log(` ${item.text}`); - } - else { - console.log(` ${item.type} content:`, item); - } - }); - } - catch (error) { - console.log(`Error calling notification tool: ${error}`); - } -} -// Start the client -main().catch((error) => { - console.error('Error running MCP client:', error); - process.exit(1); -}); -//# sourceMappingURL=streamableHttpWithSseFallbackClient.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map deleted file mode 100644 index 0d9399d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttpWithSseFallbackClient.js","sourceRoot":"","sources":["../../../../src/examples/client/streamableHttpWithSseFallbackClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEH,qBAAqB,EAErB,oBAAoB,EACpB,gCAAgC,EACnC,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;GAUG;AAEH,+BAA+B;AAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AAEzD,KAAK,UAAU,IAAI;IACf,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,4BAA4B,SAAS,EAAE,CAAC,CAAC;IAErD,IAAI,MAAc,CAAC;IACnB,IAAI,SAA6D,CAAC;IAElE,IAAI,CAAC;QACD,oDAAoD;QACpD,MAAM,UAAU,GAAG,MAAM,iCAAiC,CAAC,SAAS,CAAC,CAAC;QACtE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC3B,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QAEjC,8BAA8B;QAC9B,MAAM,CAAC,sBAAsB,CAAC,gCAAgC,EAAE,YAAY,CAAC,EAAE;YAC3E,OAAO,CAAC,GAAG,CAAC,iBAAiB,YAAY,CAAC,MAAM,CAAC,KAAK,MAAM,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAC5F,CAAC,CAAC,CAAC;QAEH,iBAAiB;QACjB,0BAA0B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,WAAW,EAAE,IAAI,CAAC,CAAC;YACjD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,GAAG,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAC;IAC7D,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts deleted file mode 100644 index 218aeac..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { AuthorizationParams, OAuthServerProvider } from '../../server/auth/provider.js'; -import { OAuthRegisteredClientsStore } from '../../server/auth/clients.js'; -import { OAuthClientInformationFull, OAuthMetadata, OAuthTokens } from '../../shared/auth.js'; -import { Response } from 'express'; -import { AuthInfo } from '../../server/auth/types.js'; -export declare class DemoInMemoryClientsStore implements OAuthRegisteredClientsStore { - private clients; - getClient(clientId: string): Promise<{ - redirect_uris: string[]; - client_id: string; - token_endpoint_auth_method?: string | undefined; - grant_types?: string[] | undefined; - response_types?: string[] | undefined; - client_name?: string | undefined; - client_uri?: string | undefined; - logo_uri?: string | undefined; - scope?: string | undefined; - contacts?: string[] | undefined; - tos_uri?: string | undefined; - policy_uri?: string | undefined; - jwks_uri?: string | undefined; - jwks?: any; - software_id?: string | undefined; - software_version?: string | undefined; - software_statement?: string | undefined; - client_secret?: string | undefined; - client_id_issued_at?: number | undefined; - client_secret_expires_at?: number | undefined; - } | undefined>; - registerClient(clientMetadata: OAuthClientInformationFull): Promise<{ - redirect_uris: string[]; - client_id: string; - token_endpoint_auth_method?: string | undefined; - grant_types?: string[] | undefined; - response_types?: string[] | undefined; - client_name?: string | undefined; - client_uri?: string | undefined; - logo_uri?: string | undefined; - scope?: string | undefined; - contacts?: string[] | undefined; - tos_uri?: string | undefined; - policy_uri?: string | undefined; - jwks_uri?: string | undefined; - jwks?: any; - software_id?: string | undefined; - software_version?: string | undefined; - software_statement?: string | undefined; - client_secret?: string | undefined; - client_id_issued_at?: number | undefined; - client_secret_expires_at?: number | undefined; - }>; -} -/** - * 🚨 DEMO ONLY - NOT FOR PRODUCTION - * - * This example demonstrates MCP OAuth flow but lacks some of the features required for production use, - * for example: - * - Persistent token storage - * - Rate limiting - */ -export declare class DemoInMemoryAuthProvider implements OAuthServerProvider { - private validateResource?; - clientsStore: DemoInMemoryClientsStore; - private codes; - private tokens; - constructor(validateResource?: ((resource?: URL) => boolean) | undefined); - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - challengeForAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string): Promise; - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, _codeVerifier?: string): Promise; - exchangeRefreshToken(_client: OAuthClientInformationFull, _refreshToken: string, _scopes?: string[], _resource?: URL): Promise; - verifyAccessToken(token: string): Promise; -} -export declare const setupAuthServer: ({ authServerUrl, mcpServerUrl, strictResource }: { - authServerUrl: URL; - mcpServerUrl: URL; - strictResource: boolean; -}) => OAuthMetadata; -//# sourceMappingURL=demoInMemoryOAuthProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map deleted file mode 100644 index 8a4a43f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"demoInMemoryOAuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/demoInMemoryOAuthProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAgB,EAAW,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAKtD,qBAAa,wBAAyB,YAAW,2BAA2B;IACxE,OAAO,CAAC,OAAO,CAAiD;IAE1D,SAAS,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;IAI1B,cAAc,CAAC,cAAc,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;CAIlE;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAWpD,OAAO,CAAC,gBAAgB,CAAC;IAVrC,YAAY,2BAAkC;IAC9C,OAAO,CAAC,KAAK,CAMT;IACJ,OAAO,CAAC,MAAM,CAA+B;gBAEzB,gBAAgB,CAAC,GAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,OAAO,aAAA;IAE5D,SAAS,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAwCxG,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAU7G,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,EAAE,MAAM,EAGzB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,WAAW,CAAC;IAoCjB,oBAAoB,CACtB,OAAO,EAAE,0BAA0B,EACnC,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,SAAS,CAAC,EAAE,GAAG,GAChB,OAAO,CAAC,WAAW,CAAC;IAIjB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAc5D;AAED,eAAO,MAAM,eAAe,oDAIzB;IACC,aAAa,EAAE,GAAG,CAAC;IACnB,YAAY,EAAE,GAAG,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CAC3B,KAAG,aA+EH,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js deleted file mode 100644 index 45bde70..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js +++ /dev/null @@ -1,196 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import express from 'express'; -import { createOAuthMetadata, mcpAuthRouter } from '../../server/auth/router.js'; -import { resourceUrlFromServerUrl } from '../../shared/auth-utils.js'; -import { InvalidRequestError } from '../../server/auth/errors.js'; -export class DemoInMemoryClientsStore { - constructor() { - this.clients = new Map(); - } - async getClient(clientId) { - return this.clients.get(clientId); - } - async registerClient(clientMetadata) { - this.clients.set(clientMetadata.client_id, clientMetadata); - return clientMetadata; - } -} -/** - * 🚨 DEMO ONLY - NOT FOR PRODUCTION - * - * This example demonstrates MCP OAuth flow but lacks some of the features required for production use, - * for example: - * - Persistent token storage - * - Rate limiting - */ -export class DemoInMemoryAuthProvider { - constructor(validateResource) { - this.validateResource = validateResource; - this.clientsStore = new DemoInMemoryClientsStore(); - this.codes = new Map(); - this.tokens = new Map(); - } - async authorize(client, params, res) { - const code = randomUUID(); - const searchParams = new URLSearchParams({ - code - }); - if (params.state !== undefined) { - searchParams.set('state', params.state); - } - this.codes.set(code, { - client, - params - }); - // Simulate a user login - // Set a secure HTTP-only session cookie with authorization info - if (res.cookie) { - const authCookieData = { - userId: 'demo_user', - name: 'Demo User', - timestamp: Date.now() - }; - res.cookie('demo_session', JSON.stringify(authCookieData), { - httpOnly: true, - secure: false, // In production, this should be true - sameSite: 'lax', - maxAge: 24 * 60 * 60 * 1000, // 24 hours - for demo purposes - path: '/' // Available to all routes - }); - } - if (!client.redirect_uris.includes(params.redirectUri)) { - throw new InvalidRequestError('Unregistered redirect_uri'); - } - const targetUrl = new URL(params.redirectUri); - targetUrl.search = searchParams.toString(); - res.redirect(targetUrl.toString()); - } - async challengeForAuthorizationCode(client, authorizationCode) { - // Store the challenge with the code data - const codeData = this.codes.get(authorizationCode); - if (!codeData) { - throw new Error('Invalid authorization code'); - } - return codeData.params.codeChallenge; - } - async exchangeAuthorizationCode(client, authorizationCode, - // Note: code verifier is checked in token.ts by default - // it's unused here for that reason. - _codeVerifier) { - const codeData = this.codes.get(authorizationCode); - if (!codeData) { - throw new Error('Invalid authorization code'); - } - if (codeData.client.client_id !== client.client_id) { - throw new Error(`Authorization code was not issued to this client, ${codeData.client.client_id} != ${client.client_id}`); - } - if (this.validateResource && !this.validateResource(codeData.params.resource)) { - throw new Error(`Invalid resource: ${codeData.params.resource}`); - } - this.codes.delete(authorizationCode); - const token = randomUUID(); - const tokenData = { - token, - clientId: client.client_id, - scopes: codeData.params.scopes || [], - expiresAt: Date.now() + 3600000, // 1 hour - resource: codeData.params.resource, - type: 'access' - }; - this.tokens.set(token, tokenData); - return { - access_token: token, - token_type: 'bearer', - expires_in: 3600, - scope: (codeData.params.scopes || []).join(' ') - }; - } - async exchangeRefreshToken(_client, _refreshToken, _scopes, _resource) { - throw new Error('Not implemented for example demo'); - } - async verifyAccessToken(token) { - const tokenData = this.tokens.get(token); - if (!tokenData || !tokenData.expiresAt || tokenData.expiresAt < Date.now()) { - throw new Error('Invalid or expired token'); - } - return { - token, - clientId: tokenData.clientId, - scopes: tokenData.scopes, - expiresAt: Math.floor(tokenData.expiresAt / 1000), - resource: tokenData.resource - }; - } -} -export const setupAuthServer = ({ authServerUrl, mcpServerUrl, strictResource }) => { - // Create separate auth server app - // NOTE: This is a separate app on a separate port to illustrate - // how to separate an OAuth Authorization Server from a Resource - // server in the SDK. The SDK is not intended to be provide a standalone - // authorization server. - const validateResource = strictResource - ? (resource) => { - if (!resource) - return false; - const expectedResource = resourceUrlFromServerUrl(mcpServerUrl); - return resource.toString() === expectedResource.toString(); - } - : undefined; - const provider = new DemoInMemoryAuthProvider(validateResource); - const authApp = express(); - authApp.use(express.json()); - // For introspection requests - authApp.use(express.urlencoded()); - // Add OAuth routes to the auth server - // NOTE: this will also add a protected resource metadata route, - // but it won't be used, so leave it. - authApp.use(mcpAuthRouter({ - provider, - issuerUrl: authServerUrl, - scopesSupported: ['mcp:tools'] - })); - authApp.post('/introspect', async (req, res) => { - try { - const { token } = req.body; - if (!token) { - res.status(400).json({ error: 'Token is required' }); - return; - } - const tokenInfo = await provider.verifyAccessToken(token); - res.json({ - active: true, - client_id: tokenInfo.clientId, - scope: tokenInfo.scopes.join(' '), - exp: tokenInfo.expiresAt, - aud: tokenInfo.resource - }); - return; - } - catch (error) { - res.status(401).json({ - active: false, - error: 'Unauthorized', - error_description: `Invalid token: ${error}` - }); - } - }); - const auth_port = authServerUrl.port; - // Start the auth server - authApp.listen(auth_port, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`OAuth Authorization Server listening on port ${auth_port}`); - }); - // Note: we could fetch this from the server, but then we end up - // with some top level async which gets annoying. - const oauthMetadata = createOAuthMetadata({ - provider, - issuerUrl: authServerUrl, - scopesSupported: ['mcp:tools'] - }); - oauthMetadata.introspection_endpoint = new URL('/introspect', authServerUrl).href; - return oauthMetadata; -}; -//# sourceMappingURL=demoInMemoryOAuthProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map deleted file mode 100644 index 80fcc55..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"demoInMemoryOAuthProvider.js","sourceRoot":"","sources":["../../../../src/examples/server/demoInMemoryOAuthProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,OAA8B,MAAM,SAAS,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,OAAO,wBAAwB;IAArC;QACY,YAAO,GAAG,IAAI,GAAG,EAAsC,CAAC;IAUpE,CAAC;IARG,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,cAA0C;QAC3D,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QAC3D,OAAO,cAAc,CAAC;IAC1B,CAAC;CACJ;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IAWjC,YAAoB,gBAA8C;QAA9C,qBAAgB,GAAhB,gBAAgB,CAA8B;QAVlE,iBAAY,GAAG,IAAI,wBAAwB,EAAE,CAAC;QACtC,UAAK,GAAG,IAAI,GAAG,EAMpB,CAAC;QACI,WAAM,GAAG,IA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AAO,aAAa,CAAC;AACzB,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts deleted file mode 100644 index e4b736e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationFormExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map deleted file mode 100644 index c569df4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationFormExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/elicitationFormExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js deleted file mode 100644 index 0f99d0c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +++ /dev/null @@ -1,429 +0,0 @@ -// Run with: npx tsx src/examples/server/elicitationFormExample.ts -// -// This example demonstrates how to use form elicitation to collect structured user input -// with JSON Schema validation via a local HTTP server with SSE streaming. -// Form elicitation allows servers to request *non-sensitive* user input through the client -// with schema-based validation. -// Note: See also elicitationUrlExample.ts for an example of using URL elicitation -// to collect *sensitive* user input via a browser. -import { randomUUID } from 'node:crypto'; -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { isInitializeRequest } from '../../types.js'; -import { createMcpExpressApp } from '../../server/express.js'; -// Create MCP server - it will automatically use AjvJsonSchemaValidator with sensible defaults -// The validator supports format validation (email, date, etc.) if ajv-formats is installed -const mcpServer = new McpServer({ - name: 'form-elicitation-example-server', - version: '1.0.0' -}, { - capabilities: {} -}); -/** - * Example 1: Simple user registration tool - * Collects username, email, and password from the user - */ -mcpServer.registerTool('register_user', { - description: 'Register a new user account by collecting their information', - inputSchema: {} -}, async () => { - try { - // Request user information through form elicitation - const result = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Please provide your registration information:', - requestedSchema: { - type: 'object', - properties: { - username: { - type: 'string', - title: 'Username', - description: 'Your desired username (3-20 characters)', - minLength: 3, - maxLength: 20 - }, - email: { - type: 'string', - title: 'Email', - description: 'Your email address', - format: 'email' - }, - password: { - type: 'string', - title: 'Password', - description: 'Your password (min 8 characters)', - minLength: 8 - }, - newsletter: { - type: 'boolean', - title: 'Newsletter', - description: 'Subscribe to newsletter?', - default: false - } - }, - required: ['username', 'email', 'password'] - } - }); - // Handle the different possible actions - if (result.action === 'accept' && result.content) { - const { username, email, newsletter } = result.content; - return { - content: [ - { - type: 'text', - text: `Registration successful!\n\nUsername: ${username}\nEmail: ${email}\nNewsletter: ${newsletter ? 'Yes' : 'No'}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [ - { - type: 'text', - text: 'Registration cancelled by user.' - } - ] - }; - } - else { - return { - content: [ - { - type: 'text', - text: 'Registration was cancelled.' - } - ] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Registration failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -/** - * Example 2: Multi-step workflow with multiple form elicitation requests - * Demonstrates how to collect information in multiple steps - */ -mcpServer.registerTool('create_event', { - description: 'Create a calendar event by collecting event details', - inputSchema: {} -}, async () => { - try { - // Step 1: Collect basic event information - const basicInfo = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Step 1: Enter basic event information', - requestedSchema: { - type: 'object', - properties: { - title: { - type: 'string', - title: 'Event Title', - description: 'Name of the event', - minLength: 1 - }, - description: { - type: 'string', - title: 'Description', - description: 'Event description (optional)' - } - }, - required: ['title'] - } - }); - if (basicInfo.action !== 'accept' || !basicInfo.content) { - return { - content: [{ type: 'text', text: 'Event creation cancelled.' }] - }; - } - // Step 2: Collect date and time - const dateTime = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Step 2: Enter date and time', - requestedSchema: { - type: 'object', - properties: { - date: { - type: 'string', - title: 'Date', - description: 'Event date', - format: 'date' - }, - startTime: { - type: 'string', - title: 'Start Time', - description: 'Event start time (HH:MM)' - }, - duration: { - type: 'integer', - title: 'Duration', - description: 'Duration in minutes', - minimum: 15, - maximum: 480 - } - }, - required: ['date', 'startTime', 'duration'] - } - }); - if (dateTime.action !== 'accept' || !dateTime.content) { - return { - content: [{ type: 'text', text: 'Event creation cancelled.' }] - }; - } - // Combine all collected information - const event = { - ...basicInfo.content, - ...dateTime.content - }; - return { - content: [ - { - type: 'text', - text: `Event created successfully!\n\n${JSON.stringify(event, null, 2)}` - } - ] - }; - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Event creation failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -/** - * Example 3: Collecting address information - * Demonstrates validation with patterns and optional fields - */ -mcpServer.registerTool('update_shipping_address', { - description: 'Update shipping address with validation', - inputSchema: {} -}, async () => { - try { - const result = await mcpServer.server.elicitInput({ - mode: 'form', - message: 'Please provide your shipping address:', - requestedSchema: { - type: 'object', - properties: { - name: { - type: 'string', - title: 'Full Name', - description: 'Recipient name', - minLength: 1 - }, - street: { - type: 'string', - title: 'Street Address', - minLength: 1 - }, - city: { - type: 'string', - title: 'City', - minLength: 1 - }, - state: { - type: 'string', - title: 'State/Province', - minLength: 2, - maxLength: 2 - }, - zipCode: { - type: 'string', - title: 'ZIP/Postal Code', - description: '5-digit ZIP code' - }, - phone: { - type: 'string', - title: 'Phone Number (optional)', - description: 'Contact phone number' - } - }, - required: ['name', 'street', 'city', 'state', 'zipCode'] - } - }); - if (result.action === 'accept' && result.content) { - return { - content: [ - { - type: 'text', - text: `Address updated successfully!\n\n${JSON.stringify(result.content, null, 2)}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [{ type: 'text', text: 'Address update cancelled by user.' }] - }; - } - else { - return { - content: [{ type: 'text', text: 'Address update was cancelled.' }] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Address update failed: ${error instanceof Error ? error.message : String(error)}` - } - ], - isError: true - }; - } -}); -async function main() { - const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000; - const app = createMcpExpressApp(); - // Map to store transports by session ID - const transports = {}; - // MCP POST endpoint - const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (sessionId) { - console.log(`Received MCP request for session: ${sessionId}`); - } - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport for this session - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - // New initialization request - create new transport - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - await mcpServer.connect(transport); - await transport.handleRequest(req, res, req.body); - return; - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } - }; - app.post('/mcp', mcpPostHandler); - // Handle GET requests for SSE streams - const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Establishing SSE stream for session ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - }; - app.get('/mcp', mcpGetHandler); - // Handle DELETE requests for session termination - const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } - }; - app.delete('/mcp', mcpDeleteHandler); - // Start listening - app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Form elicitation example server is running on http://localhost:${PORT}/mcp`); - console.log('Available tools:'); - console.log(' - register_user: Collect user registration information'); - console.log(' - create_event: Multi-step event creation'); - console.log(' - update_shipping_address: Collect and validate address'); - console.log('\nConnect your MCP client to this server using the HTTP transport.'); - }); - // Handle server shutdown - process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); - }); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=elicitationFormExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map deleted file mode 100644 index 799b0d7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationFormExample.js","sourceRoot":"","sources":["../../../../src/examples/server/elicitationFormExample.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,yFAAyF;AACzF,0EAA0E;AAC1E,2FAA2F;AAC3F,gCAAgC;AAChC,kFAAkF;AAClF,mDAAmD;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,8FAA8F;AAC9F,2FAA2F;AAC3F,MAAM,SAAS,GAAG,IAAI,SAAS,CAC3B;IACI,IAAI,EAAE,iCAAiC;IACvC,OAAO,EAAE,OAAO;CACnB,EACD;IACI,YAAY,EAAE,EAAE;CACnB,CACJ,CAAC;AAEF;;;GAGG;AACH,SAAS,CAAC,YAAY,CAClB,eAAe,EACf;IACI,WAAW,EAAE,6DAA6D;IAC1E,WAAW,EAAE,EAAE;CAClB,EACD,KAAK,IAAI,EAAE;IACP,IAAI,CAAC;QACD,oDAAoD;QACpD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;YAC9C,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,+CAA+C;YACxD,eAAe,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,QAAQ,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,yCAAyC;wBACtD,SAAS,EAAE,CAAC;wBACZ,SAAS,EAAE,EAA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O,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts deleted file mode 100644 index 611f6eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=elicitationUrlExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map deleted file mode 100644 index 04acd66..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/elicitationUrlExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js deleted file mode 100644 index 8aa072c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +++ /dev/null @@ -1,651 +0,0 @@ -// Run with: npx tsx src/examples/server/elicitationUrlExample.ts -// -// This example demonstrates how to use URL elicitation to securely collect -// *sensitive* user input in a remote (HTTP) server. -// URL elicitation allows servers to prompt the end-user to open a URL in their browser -// to collect sensitive information. -// Note: See also elicitationFormExample.ts for an example of using form (not URL) elicitation -// to collect *non-sensitive* user input with a structured schema. -import express from 'express'; -import { randomUUID } from 'node:crypto'; -import { z } from 'zod'; -import { McpServer } from '../../server/mcp.js'; -import { createMcpExpressApp } from '../../server/express.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { getOAuthProtectedResourceMetadataUrl, mcpAuthMetadataRouter } from '../../server/auth/router.js'; -import { requireBearerAuth } from '../../server/auth/middleware/bearerAuth.js'; -import { UrlElicitationRequiredError, isInitializeRequest } from '../../types.js'; -import { InMemoryEventStore } from '../shared/inMemoryEventStore.js'; -import { setupAuthServer } from './demoInMemoryOAuthProvider.js'; -import { checkResourceAllowed } from '../../shared/auth-utils.js'; -import cors from 'cors'; -// Create an MCP server with implementation details -const getServer = () => { - const mcpServer = new McpServer({ - name: 'url-elicitation-http-server', - version: '1.0.0' - }, { - capabilities: { logging: {} } - }); - mcpServer.registerTool('payment-confirm', { - description: 'A tool that confirms a payment directly with a user', - inputSchema: { - cartId: z.string().describe('The ID of the cart to confirm') - } - }, async ({ cartId }, extra) => { - /* - In a real world scenario, there would be some logic here to check if the user has the provided cartId. - For the purposes of this example, we'll throw an error (-> elicits the client to open a URL to confirm payment) - */ - const sessionId = extra.sessionId; - if (!sessionId) { - throw new Error('Expected a Session ID'); - } - // Create and track the elicitation - const elicitationId = generateTrackedElicitation(sessionId, elicitationId => mcpServer.server.createElicitationCompletionNotifier(elicitationId)); - throw new UrlElicitationRequiredError([ - { - mode: 'url', - message: 'This tool requires a payment confirmation. Open the link to confirm payment!', - url: `http://localhost:${MCP_PORT}/confirm-payment?session=${sessionId}&elicitation=${elicitationId}&cartId=${encodeURIComponent(cartId)}`, - elicitationId - } - ]); - }); - mcpServer.registerTool('third-party-auth', { - description: 'A demo tool that requires third-party OAuth credentials', - inputSchema: { - param1: z.string().describe('First parameter') - } - }, async (_, extra) => { - /* - In a real world scenario, there would be some logic here to check if we already have a valid access token for the user. - Auth info (with a subject or `sub` claim) can be typically be found in `extra.authInfo`. - If we do, we can just return the result of the tool call. - If we don't, we can throw an ElicitationRequiredError to request the user to authenticate. - For the purposes of this example, we'll throw an error (-> elicits the client to open a URL to authenticate). - */ - const sessionId = extra.sessionId; - if (!sessionId) { - throw new Error('Expected a Session ID'); - } - // Create and track the elicitation - const elicitationId = generateTrackedElicitation(sessionId, elicitationId => mcpServer.server.createElicitationCompletionNotifier(elicitationId)); - // Simulate OAuth callback and token exchange after 5 seconds - // In a real app, this would be called from your OAuth callback handler - setTimeout(() => { - console.log(`Simulating OAuth token received for elicitation ${elicitationId}`); - completeURLElicitation(elicitationId); - }, 5000); - throw new UrlElicitationRequiredError([ - { - mode: 'url', - message: 'This tool requires access to your example.com account. Open the link to authenticate!', - url: 'https://www.example.com/oauth/authorize', - elicitationId - } - ]); - }); - return mcpServer; -}; -const elicitationsMap = new Map(); -// Clean up old elicitations after 1 hour to prevent memory leaks -const ELICITATION_TTL_MS = 60 * 60 * 1000; // 1 hour -const CLEANUP_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes -function cleanupOldElicitations() { - const now = new Date(); - for (const [id, metadata] of elicitationsMap.entries()) { - if (now.getTime() - metadata.createdAt.getTime() > ELICITATION_TTL_MS) { - elicitationsMap.delete(id); - console.log(`Cleaned up expired elicitation: ${id}`); - } - } -} -setInterval(cleanupOldElicitations, CLEANUP_INTERVAL_MS); -/** - * Elicitation IDs must be unique strings within the MCP session - * UUIDs are used in this example for simplicity - */ -function generateElicitationId() { - return randomUUID(); -} -/** - * Helper function to create and track a new elicitation. - */ -function generateTrackedElicitation(sessionId, createCompletionNotifier) { - const elicitationId = generateElicitationId(); - // Create a Promise and its resolver for tracking completion - let completeResolver; - const completedPromise = new Promise(resolve => { - completeResolver = resolve; - }); - const completionNotifier = createCompletionNotifier ? createCompletionNotifier(elicitationId) : undefined; - // Store the elicitation in our map - elicitationsMap.set(elicitationId, { - status: 'pending', - completedPromise, - completeResolver: completeResolver, - createdAt: new Date(), - sessionId, - completionNotifier - }); - return elicitationId; -} -/** - * Helper function to complete an elicitation. - */ -function completeURLElicitation(elicitationId) { - const elicitation = elicitationsMap.get(elicitationId); - if (!elicitation) { - console.warn(`Attempted to complete unknown elicitation: ${elicitationId}`); - return; - } - if (elicitation.status === 'complete') { - console.warn(`Elicitation already complete: ${elicitationId}`); - return; - } - // Update metadata - elicitation.status = 'complete'; - // Send completion notification to the client - if (elicitation.completionNotifier) { - console.log(`Sending notifications/elicitation/complete notification for elicitation ${elicitationId}`); - elicitation.completionNotifier().catch(error => { - console.error(`Failed to send completion notification for elicitation ${elicitationId}:`, error); - }); - } - // Resolve the promise to unblock any waiting code - elicitation.completeResolver(); -} -const MCP_PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -const AUTH_PORT = process.env.MCP_AUTH_PORT ? parseInt(process.env.MCP_AUTH_PORT, 10) : 3001; -const app = createMcpExpressApp(); -// Allow CORS all domains, expose the Mcp-Session-Id header -app.use(cors({ - origin: '*', // Allow all origins - exposedHeaders: ['Mcp-Session-Id'], - credentials: true // Allow cookies to be sent cross-origin -})); -// Set up OAuth (required for this example) -let authMiddleware = null; -// Create auth middleware for MCP endpoints -const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`); -const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`); -const oauthMetadata = setupAuthServer({ authServerUrl, mcpServerUrl, strictResource: true }); -const tokenVerifier = { - verifyAccessToken: async (token) => { - const endpoint = oauthMetadata.introspection_endpoint; - if (!endpoint) { - throw new Error('No token verification endpoint available in metadata'); - } - const response = await fetch(endpoint, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: new URLSearchParams({ - token: token - }).toString() - }); - if (!response.ok) { - const text = await response.text().catch(() => null); - throw new Error(`Invalid or expired token: ${text}`); - } - const data = await response.json(); - if (!data.aud) { - throw new Error(`Resource Indicator (RFC8707) missing`); - } - if (!checkResourceAllowed({ requestedResource: data.aud, configuredResource: mcpServerUrl })) { - throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`); - } - // Convert the response to AuthInfo format - return { - token, - clientId: data.client_id, - scopes: data.scope ? data.scope.split(' ') : [], - expiresAt: data.exp - }; - } -}; -// Add metadata routes to the main MCP server -app.use(mcpAuthMetadataRouter({ - oauthMetadata, - resourceServerUrl: mcpServerUrl, - scopesSupported: ['mcp:tools'], - resourceName: 'MCP Demo Server' -})); -authMiddleware = requireBearerAuth({ - verifier: tokenVerifier, - requiredScopes: [], - resourceMetadataUrl: getOAuthProtectedResourceMetadataUrl(mcpServerUrl) -}); -/** - * API Key Form Handling - * - * Many servers today require an API key to operate, but there's no scalable way to do this dynamically for remote servers within MCP protocol. - * URL-mode elicitation enables the server to host a simple form and get the secret data securely from the user without involving the LLM or client. - **/ -async function sendApiKeyElicitation(sessionId, sender, createCompletionNotifier) { - if (!sessionId) { - console.error('No session ID provided'); - throw new Error('Expected a Session ID to track elicitation'); - } - console.log('🔑 URL elicitation demo: Requesting API key from client...'); - const elicitationId = generateTrackedElicitation(sessionId, createCompletionNotifier); - try { - const result = await sender({ - mode: 'url', - message: 'Please provide your API key to authenticate with this server', - // Host the form on the same server. In a real app, you might coordinate passing these state variables differently. - url: `http://localhost:${MCP_PORT}/api-key-form?session=${sessionId}&elicitation=${elicitationId}`, - elicitationId - }); - switch (result.action) { - case 'accept': - console.log('🔑 URL elicitation demo: Client accepted the API key elicitation (now pending form submission)'); - // Wait for the API key to be submitted via the form - // The form submission will complete the elicitation - break; - default: - console.log('🔑 URL elicitation demo: Client declined to provide an API key'); - // In a real app, this might close the connection, but for the demo, we'll continue - break; - } - } - catch (error) { - console.error('Error during API key elicitation:', error); - } -} -// API Key Form endpoint - serves a simple HTML form -app.get('/api-key-form', (req, res) => { - const mcpSessionId = req.query.session; - const elicitationId = req.query.elicitation; - if (!mcpSessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie - // In production, this is often handled by some user auth middleware to ensure the user has a valid session - // This session is different from the MCP session. - // This userSession is the cookie that the MCP Server's Authorization Server sets for the user when they log in. - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // Serve a simple HTML form - res.send(` - - - - Submit Your API Key - - - -

API Key Required

-
✓ Logged in as: ${userSession.name}
-
- - - - -
-
This is a demo showing how a server can securely elicit sensitive data from a user using a URL.
- - - `); -}); -// Handle API key form submission -app.post('/api-key-form', express.urlencoded(), (req, res) => { - const { session: sessionId, apiKey, elicitation: elicitationId } = req.body; - if (!sessionId || !apiKey || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie here too - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // A real app might store this API key to be used later for the user. - console.log(`🔑 Received API key \x1b[32m${apiKey}\x1b[0m for session ${sessionId}`); - // If we have an elicitationId, complete the elicitation - completeURLElicitation(elicitationId); - // Send a success response - res.send(` - - - - Success - - - -
-

Success ✓

-

API key received.

-
-

You can close this window and return to your MCP client.

- - - `); -}); -// Helper to get the user session from the demo_session cookie -function getUserSessionCookie(cookieHeader) { - if (!cookieHeader) - return null; - const cookies = cookieHeader.split(';'); - for (const cookie of cookies) { - const [name, value] = cookie.trim().split('='); - if (name === 'demo_session' && value) { - try { - return JSON.parse(decodeURIComponent(value)); - } - catch (error) { - console.error('Failed to parse demo_session cookie:', error); - return null; - } - } - } - return null; -} -/** - * Payment Confirmation Form Handling - * - * This demonstrates how a server can use URL-mode elicitation to get user confirmation - * for sensitive operations like payment processing. - **/ -// Payment Confirmation Form endpoint - serves a simple HTML form -app.get('/confirm-payment', (req, res) => { - const mcpSessionId = req.query.session; - const elicitationId = req.query.elicitation; - const cartId = req.query.cartId; - if (!mcpSessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie - // In production, this is often handled by some user auth middleware to ensure the user has a valid session - // This session is different from the MCP session. - // This userSession is the cookie that the MCP Server's Authorization Server sets for the user when they log in. - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - // Serve a simple HTML form - res.send(` - - - - Confirm Payment - - - -

Confirm Payment

-
✓ Logged in as: ${userSession.name}
- ${cartId ? `
Cart ID: ${cartId}
` : ''} -
- ⚠️ Please review your order before confirming. -
-
- - - ${cartId ? `` : ''} - - -
-
This is a demo showing how a server can securely get user confirmation for sensitive operations using URL-mode elicitation.
- - - `); -}); -// Handle Payment Confirmation form submission -app.post('/confirm-payment', express.urlencoded(), (req, res) => { - const { session: sessionId, elicitation: elicitationId, cartId, action } = req.body; - if (!sessionId || !elicitationId) { - res.status(400).send('

Error

Missing required parameters

'); - return; - } - // Check for user session cookie here too - const userSession = getUserSessionCookie(req.headers.cookie); - if (!userSession) { - res.status(401).send('

Error

Unauthorized - please reconnect to login again

'); - return; - } - if (action === 'confirm') { - // A real app would process the payment here - console.log(`💳 Payment confirmed for cart ${cartId || 'unknown'} by user ${userSession.name} (session ${sessionId})`); - // Complete the elicitation - completeURLElicitation(elicitationId); - // Send a success response - res.send(` - - - - Payment Confirmed - - - -
-

Payment Confirmed ✓

-

Your payment has been successfully processed.

- ${cartId ? `

Cart ID: ${cartId}

` : ''} -
-

You can close this window and return to your MCP client.

- - - `); - } - else if (action === 'cancel') { - console.log(`💳 Payment cancelled for cart ${cartId || 'unknown'} by user ${userSession.name} (session ${sessionId})`); - // The client will still receive a notifications/elicitation/complete notification, - // which indicates that the out-of-band interaction is complete (but not necessarily successful) - completeURLElicitation(elicitationId); - res.send(` - - - - Payment Cancelled - - - -
-

Payment Cancelled

-

Your payment has been cancelled.

-
-

You can close this window and return to your MCP client.

- - - `); - } - else { - res.status(400).send('

Error

Invalid action

'); - } -}); -// Map to store transports by session ID -const transports = {}; -const sessionsNeedingElicitation = {}; -// MCP POST endpoint -const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - console.debug(`Received MCP POST for session: ${sessionId || 'unknown'}`); - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - const server = getServer(); - // New initialization request - const eventStore = new InMemoryEventStore(); - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - sessionsNeedingElicitation[sessionId] = { - elicitationSender: params => server.server.elicitInput(params), - createCompletionNotifier: elicitationId => server.server.createElicitationCompletionNotifier(elicitationId) - }; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - delete sessionsNeedingElicitation[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - // so responses can flow back through the same transport - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - // The existing transport is already connected to the server - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}; -// Set up routes with auth middleware -app.post('/mcp', authMiddleware, mcpPostHandler); -// Handle GET requests for SSE streams (using built-in support from StreamableHTTP) -const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - // Check for Last-Event-ID header for resumability - const lastEventId = req.headers['last-event-id']; - if (lastEventId) { - console.log(`Client reconnecting with Last-Event-ID: ${lastEventId}`); - } - else { - console.log(`Establishing new SSE stream for session ${sessionId}`); - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - if (sessionsNeedingElicitation[sessionId]) { - const { elicitationSender, createCompletionNotifier } = sessionsNeedingElicitation[sessionId]; - // Send an elicitation request to the client in the background - sendApiKeyElicitation(sessionId, elicitationSender, createCompletionNotifier) - .then(() => { - // Only delete on successful send for this demo - delete sessionsNeedingElicitation[sessionId]; - console.log(`🔑 URL elicitation demo: Finished sending API key elicitation request for session ${sessionId}`); - }) - .catch(error => { - console.error('Error sending API key elicitation:', error); - // Keep in map to potentially retry on next reconnect - }); - } -}; -// Set up GET route with conditional auth middleware -app.get('/mcp', authMiddleware, mcpGetHandler); -// Handle DELETE requests for session termination (according to MCP spec) -const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } -}; -// Set up DELETE route with auth middleware -app.delete('/mcp', authMiddleware, mcpDeleteHandler); -app.listen(MCP_PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${MCP_PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - delete sessionsNeedingElicitation[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=elicitationUrlExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map deleted file mode 100644 index fe2a5f7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elicitationUrlExample.js","sourceRoot":"","sources":["../../../../src/examples/server/elicitationUrlExample.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,2EAA2E;AAC3E,oDAAoD;AACpD,uFAAuF;AACvF,oCAAoC;AACpC,8FAA8F;AAC9F,kEAAkE;AAElE,OAAO,OAA8B,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,oCAAoC,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAkB,2BAA2B,EAAwC,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACxI,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,mDAAmD;AACnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,SAAS,GAAG,IAAI,SAAS,CAC3B;QACI,IAAI,EAAE,6BAA6B;QACnC,OAAO,EAAE,OAAO;KACnB,EACD;QACI,YAAY,EAAE,EAAE,OAAO,EAAE,EAA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AC;IACL,CAAC;AACL,CAAC,CAAC;AAEF,2CAA2C;AAC3C,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAErD,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE;IACzB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,gDAAgD,QAAQ,EAAE,CAAC,CAAC;AAC5E,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAEvC,6DAA6D;IAC7D,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACjC,IAAI,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC;YAC1D,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;YAC7B,OAAO,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts deleted file mode 100644 index bc6abdd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Example MCP server using Hono with WebStandardStreamableHTTPServerTransport - * - * This example demonstrates using the Web Standard transport directly with Hono, - * which works on any runtime: Node.js, Cloudflare Workers, Deno, Bun, etc. - * - * Run with: npx tsx src/examples/server/honoWebStandardStreamableHttp.ts - */ -export {}; -//# sourceMappingURL=honoWebStandardStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map deleted file mode 100644 index a6a6199..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"honoWebStandardStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/honoWebStandardStreamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js deleted file mode 100644 index ddb1abb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Example MCP server using Hono with WebStandardStreamableHTTPServerTransport - * - * This example demonstrates using the Web Standard transport directly with Hono, - * which works on any runtime: Node.js, Cloudflare Workers, Deno, Bun, etc. - * - * Run with: npx tsx src/examples/server/honoWebStandardStreamableHttp.ts - */ -import { Hono } from 'hono'; -import { cors } from 'hono/cors'; -import { serve } from '@hono/node-server'; -import * as z from 'zod/v4'; -import { McpServer } from '../../server/mcp.js'; -import { WebStandardStreamableHTTPServerTransport } from '../../server/webStandardStreamableHttp.js'; -// Create the MCP server -const server = new McpServer({ - name: 'hono-webstandard-mcp-server', - version: '1.0.0' -}); -// Register a simple greeting tool -server.registerTool('greet', { - title: 'Greeting Tool', - description: 'A simple greeting tool', - inputSchema: { name: z.string().describe('Name to greet') } -}, async ({ name }) => { - return { - content: [{ type: 'text', text: `Hello, ${name}! (from Hono + WebStandard transport)` }] - }; -}); -// Create a stateless transport (no options = no session management) -const transport = new WebStandardStreamableHTTPServerTransport(); -// Create the Hono app -const app = new Hono(); -// Enable CORS for all origins -app.use('*', cors({ - origin: '*', - allowMethods: ['GET', 'POST', 'DELETE', 'OPTIONS'], - allowHeaders: ['Content-Type', 'mcp-session-id', 'Last-Event-ID', 'mcp-protocol-version'], - exposeHeaders: ['mcp-session-id', 'mcp-protocol-version'] -})); -// Health check endpoint -app.get('/health', c => c.json({ status: 'ok' })); -// MCP endpoint -app.all('/mcp', c => transport.handleRequest(c.req.raw)); -// Start the server -const PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -server.connect(transport).then(() => { - console.log(`Starting Hono MCP server on port ${PORT}`); - console.log(`Health check: http://localhost:${PORT}/health`); - console.log(`MCP endpoint: http://localhost:${PORT}/mcp`); - serve({ - fetch: app.fetch, - port: PORT - }); -}); -//# sourceMappingURL=honoWebStandardStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map deleted file mode 100644 index 9d60928..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file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AAY,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,sBAAsB,CAAC;IACzF,aAAa,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;CAC5D,CAAC,CACL,CAAC;AAEF,wBAAwB;AACxB,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAElD,eAAe;AACf,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAEzD,mBAAmB;AACnB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAE9E,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAChC,OAAO,CAAC,GAAG,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,kCAAkC,IAAI,SAAS,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,kCAAkC,IAAI,MAAM,CAAC,CAAC;IAE1D,KAAK,CAAC;QACF,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,IAAI,EAAE,IAAI;KACb,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts deleted file mode 100644 index 477fa6b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=jsonResponseStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map deleted file mode 100644 index ee8117e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jsonResponseStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/jsonResponseStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js deleted file mode 100644 index b2ef0ce..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +++ /dev/null @@ -1,146 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import * as z from 'zod/v4'; -import { isInitializeRequest } from '../../types.js'; -import { createMcpExpressApp } from '../../server/express.js'; -// Create an MCP server with implementation details -const getServer = () => { - const server = new McpServer({ - name: 'json-response-streamable-http-server', - version: '1.0.0' - }, { - capabilities: { - logging: {} - } - }); - // Register a simple tool that returns a greeting - server.registerTool('greet', { - description: 'A simple greeting tool', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }) => { - return { - content: [ - { - type: 'text', - text: `Hello, ${name}!` - } - ] - }; - }); - // Register a tool that sends multiple greetings with notifications - server.registerTool('multi-greet', { - description: 'A tool that sends different greetings with delays between them', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - await server.sendLoggingMessage({ - level: 'debug', - data: `Starting multi-greet for ${name}` - }, extra.sessionId); - await sleep(1000); // Wait 1 second before first greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending first greeting to ${name}` - }, extra.sessionId); - await sleep(1000); // Wait another second before second greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending second greeting to ${name}` - }, extra.sessionId); - return { - content: [ - { - type: 'text', - text: `Good morning, ${name}!` - } - ] - }; - }); - return server; -}; -const app = createMcpExpressApp(); -// Map to store transports by session ID -const transports = {}; -app.post('/mcp', async (req, res) => { - console.log('Received MCP request:', req.body); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - // New initialization request - use JSON response mode - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - enableJsonResponse: true, // Enable JSON response mode - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Connect the transport to the MCP server BEFORE handling the request - const server = getServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams according to spec -app.get('/mcp', async (req, res) => { - // Since this is a very simple example, we don't support GET requests for this server - // The spec requires returning 405 Method Not Allowed in this case - res.status(405).set('Allow', 'POST').send('Method Not Allowed'); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - process.exit(0); -}); -//# sourceMappingURL=jsonResponseStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map deleted file mode 100644 index 8a52d91..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jsonResponseStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/jsonResponseStreamableHttp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAkB,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,mDAAmD;AACnD,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,SAAS,CACxB;QACI,IAAI,EAAE,sCAAsC;QAC5C,OAAO,EAAE,OAAO;KACnB,EACD;QACI,YAAY,EAAE;YACV,OAAO,EAAE,EAAE;SACd;KACJ,CACJ,CAAC;IAEF,iDAAiD;IACjD,MAAM,CAAC,YAAY,CACf,OAAO,EACP;QACI,W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mB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;IACrB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,gDAAgD,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts deleted file mode 100644 index a6cb497..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node -/** - * Example MCP server using the high-level McpServer API with outputSchema - * This demonstrates how to easily create tools with structured output - */ -export {}; -//# sourceMappingURL=mcpServerOutputSchema.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map deleted file mode 100644 index bd3abdc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcpServerOutputSchema.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/mcpServerOutputSchema.ts"],"names":[],"mappings":";AACA;;;GAGG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js deleted file mode 100644 index 17b52b7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env node -/** - * Example MCP server using the high-level McpServer API with outputSchema - * This demonstrates how to easily create tools with structured output - */ -import { McpServer } from '../../server/mcp.js'; -import { StdioServerTransport } from '../../server/stdio.js'; -import * as z from 'zod/v4'; -const server = new McpServer({ - name: 'mcp-output-schema-high-level-example', - version: '1.0.0' -}); -// Define a tool with structured output - Weather data -server.registerTool('get_weather', { - description: 'Get weather information for a city', - inputSchema: { - city: z.string().describe('City name'), - country: z.string().describe('Country code (e.g., US, UK)') - }, - outputSchema: { - temperature: z.object({ - celsius: z.number(), - fahrenheit: z.number() - }), - conditions: z.enum(['sunny', 'cloudy', 'rainy', 'stormy', 'snowy']), - humidity: z.number().min(0).max(100), - wind: z.object({ - speed_kmh: z.number(), - direction: z.string() - }) - } -}, async ({ city, country }) => { - // Parameters are available but not used in this example - void city; - void country; - // Simulate weather API call - const temp_c = Math.round((Math.random() * 35 - 5) * 10) / 10; - const conditions = ['sunny', 'cloudy', 'rainy', 'stormy', 'snowy'][Math.floor(Math.random() * 5)]; - const structuredContent = { - temperature: { - celsius: temp_c, - fahrenheit: Math.round(((temp_c * 9) / 5 + 32) * 10) / 10 - }, - conditions, - humidity: Math.round(Math.random() * 100), - wind: { - speed_kmh: Math.round(Math.random() * 50), - direction: ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'][Math.floor(Math.random() * 8)] - } - }; - return { - content: [ - { - type: 'text', - text: JSON.stringify(structuredContent, null, 2) - } - ], - structuredContent - }; -}); -async function main() { - const transport = new StdioServerTransport(); - await server.connect(transport); - console.error('High-level Output Schema Example Server running on stdio'); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=mcpServerOutputSchema.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map deleted file mode 100644 index b932b85..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcpServerOutputSchema.js","sourceRoot":"","sources":["../../../../src/examples/server/mcpServerOutputSchema.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IACzB,IAAI,EAAE,sCAAsC;IAC5C,OAAO,EAAE,OAAO;CACnB,CAAC,CAAC;AAEH,sDAAsD;AACtD,MAAM,CAAC,YAAY,CACf,aAAa,EACb;IACI,WAAW,EAAE,oCAAoC;IACjD,WAAW,EAAE;QACT,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;KAC9D;IACD,YAAY,EAAE;QACV,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;YACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;SACzB,CAAC;QACF,UAAU,EAAE,CAAC,CAAC,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,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;SACzF;KACJ,CAAC;IAEF,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;aACnD;SACJ;QACD,iBAAiB;KACpB,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,KAAK,UAAU,IAAI;IACf,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;AAC9E,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts deleted file mode 100644 index 4269b78..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleSseServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map deleted file mode 100644 index 08a1b45..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleSseServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleSseServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js deleted file mode 100644 index 60c3eb6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js +++ /dev/null @@ -1,143 +0,0 @@ -import { McpServer } from '../../server/mcp.js'; -import { SSEServerTransport } from '../../server/sse.js'; -import * as z from 'zod/v4'; -import { createMcpExpressApp } from '../../server/express.js'; -/** - * This example server demonstrates the deprecated HTTP+SSE transport - * (protocol version 2024-11-05). It mainly used for testing backward compatible clients. - * - * The server exposes two endpoints: - * - /mcp: For establishing the SSE stream (GET) - * - /messages: For receiving client messages (POST) - * - */ -// Create an MCP server instance -const getServer = () => { - const server = new McpServer({ - name: 'simple-sse-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(1000), - count: z.number().describe('Number of notifications to send').default(10) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - // Send the initial notification - await server.sendLoggingMessage({ - level: 'info', - data: `Starting notification stream with ${count} messages every ${interval}ms` - }, extra.sessionId); - // Send periodic notifications - while (counter < count) { - counter++; - await sleep(interval); - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - } - return { - content: [ - { - type: 'text', - text: `Completed sending ${count} notifications every ${interval}ms` - } - ] - }; - }); - return server; -}; -const app = createMcpExpressApp(); -// Store transports by session ID -const transports = {}; -// SSE endpoint for establishing the stream -app.get('/mcp', async (req, res) => { - console.log('Received GET request to /sse (establishing SSE stream)'); - try { - // Create a new SSE transport for the client - // The endpoint for POST messages is '/messages' - const transport = new SSEServerTransport('/messages', res); - // Store the transport by session ID - const sessionId = transport.sessionId; - transports[sessionId] = transport; - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - console.log(`SSE transport closed for session ${sessionId}`); - delete transports[sessionId]; - }; - // Connect the transport to the MCP server - const server = getServer(); - await server.connect(transport); - console.log(`Established SSE stream with session ID: ${sessionId}`); - } - catch (error) { - console.error('Error establishing SSE stream:', error); - if (!res.headersSent) { - res.status(500).send('Error establishing SSE stream'); - } - } -}); -// Messages endpoint for receiving client JSON-RPC requests -app.post('/messages', async (req, res) => { - console.log('Received POST request to /messages'); - // Extract session ID from URL query parameter - // In the SSE protocol, this is added by the client based on the endpoint event - const sessionId = req.query.sessionId; - if (!sessionId) { - console.error('No session ID provided in request URL'); - res.status(400).send('Missing sessionId parameter'); - return; - } - const transport = transports[sessionId]; - if (!transport) { - console.error(`No active transport found for session ID: ${sessionId}`); - res.status(404).send('Session not found'); - return; - } - try { - // Handle the POST message with the transport - await transport.handlePostMessage(req, res, req.body); - } - catch (error) { - console.error('Error handling request:', error); - if (!res.headersSent) { - res.status(500).send('Error handling request'); - } - } -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Simple SSE Server (deprecated protocol version 2024-11-05) listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleSseServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map deleted file mode 100644 index 8028aa5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleSseServer.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleSseServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;GAQG;AAEH,gCAAgC;AAChC,MAAM,SAAS,GAAG,GAAG,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,SAAS,CACxB;QACI,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,OAAO;KACnB,EACD,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CACpC,CAAC;IAEF,MAAM,CAAC,YAAY,CACf,2BAA2B,EAC3B;QACI,WAAW,EAAE,uCAAuC;QACpD,WAAW,EAAE;YACT,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;YAC7F,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;SAC5E;KACJ,EACD,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAA2B,EAAE;QAC1D,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,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,EAAE,CAAC;QACjC,IAAI,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC;YAC1D,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts deleted file mode 100644 index 0aa4ad2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStatelessStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map deleted file mode 100644 index 92deb06..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStatelessStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleStatelessStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js deleted file mode 100644 index aa66f0e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js +++ /dev/null @@ -1,141 +0,0 @@ -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import * as z from 'zod/v4'; -import { createMcpExpressApp } from '../../server/express.js'; -const getServer = () => { - // Create an MCP server with implementation details - const server = new McpServer({ - name: 'stateless-streamable-http-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - // Register a simple prompt - server.registerPrompt('greeting-template', { - description: 'A simple greeting prompt template', - argsSchema: { - name: z.string().describe('Name to include in greeting') - } - }, async ({ name }) => { - return { - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please greet ${name} in a friendly manner.` - } - } - ] - }; - }); - // Register a tool specifically for testing resumability - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(10) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - // Create a simple resource at a fixed URI - server.registerResource('greeting-resource', 'https://example.com/greetings/default', { mimeType: 'text/plain' }, async () => { - return { - contents: [ - { - uri: 'https://example.com/greetings/default', - text: 'Hello, world!' - } - ] - }; - }); - return server; -}; -const app = createMcpExpressApp(); -app.post('/mcp', async (req, res) => { - const server = getServer(); - try { - const transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: undefined - }); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - res.on('close', () => { - console.log('Request closed'); - transport.close(); - server.close(); - }); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -app.get('/mcp', async (req, res) => { - console.log('Received GET MCP request'); - res.writeHead(405).end(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - })); -}); -app.delete('/mcp', async (req, res) => { - console.log('Received DELETE MCP request'); - res.writeHead(405).end(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - })); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Stateless Streamable HTTP Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - process.exit(0); -}); -//# sourceMappingURL=simpleStatelessStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map deleted file mode 100644 index 0617e71..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStatelessStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleStatelessStreamableHttp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,CAAC,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AAM,CAAC,MAAM,EAAE,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,EAAE;IACrD,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,CAClB,IAAI,CAAC,SAAS,CAAC;QACX,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACH,IAAI,EAAE,CAAC,KAAK;YACZ,OAAO,EAAE,qBAAqB;SACjC;QACD,EAAE,EAAE,IAAI;KACX,CAAC,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;IACrB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0DAA0D,IAAI,EAAE,CAAC,CAAC;AAClF,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts deleted file mode 100644 index a20be42..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simpleStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map deleted file mode 100644 index e3cf042..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js deleted file mode 100644 index 742c306..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +++ /dev/null @@ -1,636 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import * as z from 'zod/v4'; -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { getOAuthProtectedResourceMetadataUrl, mcpAuthMetadataRouter } from '../../server/auth/router.js'; -import { requireBearerAuth } from '../../server/auth/middleware/bearerAuth.js'; -import { createMcpExpressApp } from '../../server/express.js'; -import { ElicitResultSchema, isInitializeRequest } from '../../types.js'; -import { InMemoryEventStore } from '../shared/inMemoryEventStore.js'; -import { InMemoryTaskStore, InMemoryTaskMessageQueue } from '../../experimental/tasks/stores/in-memory.js'; -import { setupAuthServer } from './demoInMemoryOAuthProvider.js'; -import { checkResourceAllowed } from '../../shared/auth-utils.js'; -// Check for OAuth flag -const useOAuth = process.argv.includes('--oauth'); -const strictOAuth = process.argv.includes('--oauth-strict'); -// Create shared task store for demonstration -const taskStore = new InMemoryTaskStore(); -// Create an MCP server with implementation details -const getServer = () => { - const server = new McpServer({ - name: 'simple-streamable-http-server', - version: '1.0.0', - icons: [{ src: './mcp.svg', sizes: ['512x512'], mimeType: 'image/svg+xml' }], - websiteUrl: 'https://github.com/modelcontextprotocol/typescript-sdk' - }, { - capabilities: { logging: {}, tasks: { requests: { tools: { call: {} } } } }, - taskStore, // Enable task support - taskMessageQueue: new InMemoryTaskMessageQueue() - }); - // Register a simple tool that returns a greeting - server.registerTool('greet', { - title: 'Greeting Tool', // Display name for UI - description: 'A simple greeting tool', - inputSchema: { - name: z.string().describe('Name to greet') - } - }, async ({ name }) => { - return { - content: [ - { - type: 'text', - text: `Hello, ${name}!` - } - ] - }; - }); - // Register a tool that sends multiple greetings with notifications (with annotations) - server.registerTool('multi-greet', { - description: 'A tool that sends different greetings with delays between them', - inputSchema: { - name: z.string().describe('Name to greet') - }, - annotations: { - title: 'Multiple Greeting Tool', - readOnlyHint: true, - openWorldHint: false - } - }, async ({ name }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - await server.sendLoggingMessage({ - level: 'debug', - data: `Starting multi-greet for ${name}` - }, extra.sessionId); - await sleep(1000); // Wait 1 second before first greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending first greeting to ${name}` - }, extra.sessionId); - await sleep(1000); // Wait another second before second greeting - await server.sendLoggingMessage({ - level: 'info', - data: `Sending second greeting to ${name}` - }, extra.sessionId); - return { - content: [ - { - type: 'text', - text: `Good morning, ${name}!` - } - ] - }; - }); - // Register a tool that demonstrates form elicitation (user input collection with a schema) - // This creates a closure that captures the server instance - server.registerTool('collect-user-info', { - description: 'A tool that collects user information through form elicitation', - inputSchema: { - infoType: z.enum(['contact', 'preferences', 'feedback']).describe('Type of information to collect') - } - }, async ({ infoType }, extra) => { - let message; - let requestedSchema; - switch (infoType) { - case 'contact': - message = 'Please provide your contact information'; - requestedSchema = { - type: 'object', - properties: { - name: { - type: 'string', - title: 'Full Name', - description: 'Your full name' - }, - email: { - type: 'string', - title: 'Email Address', - description: 'Your email address', - format: 'email' - }, - phone: { - type: 'string', - title: 'Phone Number', - description: 'Your phone number (optional)' - } - }, - required: ['name', 'email'] - }; - break; - case 'preferences': - message = 'Please set your preferences'; - requestedSchema = { - type: 'object', - properties: { - theme: { - type: 'string', - title: 'Theme', - description: 'Choose your preferred theme', - enum: ['light', 'dark', 'auto'], - enumNames: ['Light', 'Dark', 'Auto'] - }, - notifications: { - type: 'boolean', - title: 'Enable Notifications', - description: 'Would you like to receive notifications?', - default: true - }, - frequency: { - type: 'string', - title: 'Notification Frequency', - description: 'How often would you like notifications?', - enum: ['daily', 'weekly', 'monthly'], - enumNames: ['Daily', 'Weekly', 'Monthly'] - } - }, - required: ['theme'] - }; - break; - case 'feedback': - message = 'Please provide your feedback'; - requestedSchema = { - type: 'object', - properties: { - rating: { - type: 'integer', - title: 'Rating', - description: 'Rate your experience (1-5)', - minimum: 1, - maximum: 5 - }, - comments: { - type: 'string', - title: 'Comments', - description: 'Additional comments (optional)', - maxLength: 500 - }, - recommend: { - type: 'boolean', - title: 'Would you recommend this?', - description: 'Would you recommend this to others?' - } - }, - required: ['rating', 'recommend'] - }; - break; - default: - throw new Error(`Unknown info type: ${infoType}`); - } - try { - // Use sendRequest through the extra parameter to elicit input - const result = await extra.sendRequest({ - method: 'elicitation/create', - params: { - mode: 'form', - message, - requestedSchema - } - }, ElicitResultSchema); - if (result.action === 'accept') { - return { - content: [ - { - type: 'text', - text: `Thank you! Collected ${infoType} information: ${JSON.stringify(result.content, null, 2)}` - } - ] - }; - } - else if (result.action === 'decline') { - return { - content: [ - { - type: 'text', - text: `No information was collected. User declined ${infoType} information request.` - } - ] - }; - } - else { - return { - content: [ - { - type: 'text', - text: `Information collection was cancelled by the user.` - } - ] - }; - } - } - catch (error) { - return { - content: [ - { - type: 'text', - text: `Error collecting ${infoType} information: ${error}` - } - ] - }; - } - }); - // Register a simple prompt with title - server.registerPrompt('greeting-template', { - title: 'Greeting Template', // Display name for UI - description: 'A simple greeting prompt template', - argsSchema: { - name: z.string().describe('Name to include in greeting') - } - }, async ({ name }) => { - return { - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please greet ${name} in a friendly manner.` - } - } - ] - }; - }); - // Register a tool specifically for testing resumability - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(50) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - // Create a simple resource at a fixed URI - server.registerResource('greeting-resource', 'https://example.com/greetings/default', { - title: 'Default Greeting', // Display name for UI - description: 'A simple greeting resource', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'https://example.com/greetings/default', - text: 'Hello, world!' - } - ] - }; - }); - // Create additional resources for ResourceLink demonstration - server.registerResource('example-file-1', 'file:///example/file1.txt', { - title: 'Example File 1', - description: 'First example file for ResourceLink demonstration', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'file:///example/file1.txt', - text: 'This is the content of file 1' - } - ] - }; - }); - server.registerResource('example-file-2', 'file:///example/file2.txt', { - title: 'Example File 2', - description: 'Second example file for ResourceLink demonstration', - mimeType: 'text/plain' - }, async () => { - return { - contents: [ - { - uri: 'file:///example/file2.txt', - text: 'This is the content of file 2' - } - ] - }; - }); - // Register a tool that returns ResourceLinks - server.registerTool('list-files', { - title: 'List Files with ResourceLinks', - description: 'Returns a list of files as ResourceLinks without embedding their content', - inputSchema: { - includeDescriptions: z.boolean().optional().describe('Whether to include descriptions in the resource links') - } - }, async ({ includeDescriptions = true }) => { - const resourceLinks = [ - { - type: 'resource_link', - uri: 'https://example.com/greetings/default', - name: 'Default Greeting', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'A simple greeting resource' }) - }, - { - type: 'resource_link', - uri: 'file:///example/file1.txt', - name: 'Example File 1', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'First example file for ResourceLink demonstration' }) - }, - { - type: 'resource_link', - uri: 'file:///example/file2.txt', - name: 'Example File 2', - mimeType: 'text/plain', - ...(includeDescriptions && { description: 'Second example file for ResourceLink demonstration' }) - } - ]; - return { - content: [ - { - type: 'text', - text: 'Here are the available files as resource links:' - }, - ...resourceLinks, - { - type: 'text', - text: '\nYou can read any of these resources using their URI.' - } - ] - }; - }); - // Register a long-running tool that demonstrates task execution - // Using the experimental tasks API - WARNING: may change without notice - server.experimental.tasks.registerToolTask('delay', { - title: 'Delay', - description: 'A simple tool that delays for a specified duration, useful for testing task execution', - inputSchema: { - duration: z.number().describe('Duration in milliseconds').default(5000) - } - }, { - async createTask({ duration }, { taskStore, taskRequestedTtl }) { - // Create the task - const task = await taskStore.createTask({ - ttl: taskRequestedTtl - }); - // Simulate out-of-band work - (async () => { - await new Promise(resolve => setTimeout(resolve, duration)); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [ - { - type: 'text', - text: `Completed ${duration}ms delay` - } - ] - }); - })(); - // Return CreateTaskResult with the created task - return { - task - }; - }, - async getTask(_args, { taskId, taskStore }) { - return await taskStore.getTask(taskId); - }, - async getTaskResult(_args, { taskId, taskStore }) { - const result = await taskStore.getTaskResult(taskId); - return result; - } - }); - return server; -}; -const MCP_PORT = process.env.MCP_PORT ? parseInt(process.env.MCP_PORT, 10) : 3000; -const AUTH_PORT = process.env.MCP_AUTH_PORT ? parseInt(process.env.MCP_AUTH_PORT, 10) : 3001; -const app = createMcpExpressApp(); -// Set up OAuth if enabled -let authMiddleware = null; -if (useOAuth) { - // Create auth middleware for MCP endpoints - const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`); - const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`); - const oauthMetadata = setupAuthServer({ authServerUrl, mcpServerUrl, strictResource: strictOAuth }); - const tokenVerifier = { - verifyAccessToken: async (token) => { - const endpoint = oauthMetadata.introspection_endpoint; - if (!endpoint) { - throw new Error('No token verification endpoint available in metadata'); - } - const response = await fetch(endpoint, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: new URLSearchParams({ - token: token - }).toString() - }); - if (!response.ok) { - const text = await response.text().catch(() => null); - throw new Error(`Invalid or expired token: ${text}`); - } - const data = await response.json(); - if (strictOAuth) { - if (!data.aud) { - throw new Error(`Resource Indicator (RFC8707) missing`); - } - if (!checkResourceAllowed({ requestedResource: data.aud, configuredResource: mcpServerUrl })) { - throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`); - } - } - // Convert the response to AuthInfo format - return { - token, - clientId: data.client_id, - scopes: data.scope ? data.scope.split(' ') : [], - expiresAt: data.exp - }; - } - }; - // Add metadata routes to the main MCP server - app.use(mcpAuthMetadataRouter({ - oauthMetadata, - resourceServerUrl: mcpServerUrl, - scopesSupported: ['mcp:tools'], - resourceName: 'MCP Demo Server' - })); - authMiddleware = requireBearerAuth({ - verifier: tokenVerifier, - requiredScopes: [], - resourceMetadataUrl: getOAuthProtectedResourceMetadataUrl(mcpServerUrl) - }); -} -// Map to store transports by session ID -const transports = {}; -// MCP POST endpoint with optional auth -const mcpPostHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (sessionId) { - console.log(`Received MCP request for session: ${sessionId}`); - } - else { - console.log('Request body:', req.body); - } - if (useOAuth && req.auth) { - console.log('Authenticated user:', req.auth); - } - try { - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - // New initialization request - const eventStore = new InMemoryEventStore(); - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server BEFORE handling the request - // so responses can flow back through the same transport - const server = getServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - no need to reconnect - // The existing transport is already connected to the server - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}; -// Set up routes with conditional auth middleware -if (useOAuth && authMiddleware) { - app.post('/mcp', authMiddleware, mcpPostHandler); -} -else { - app.post('/mcp', mcpPostHandler); -} -// Handle GET requests for SSE streams (using built-in support from StreamableHTTP) -const mcpGetHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - if (useOAuth && req.auth) { - console.log('Authenticated SSE connection from user:', req.auth); - } - // Check for Last-Event-ID header for resumability - const lastEventId = req.headers['last-event-id']; - if (lastEventId) { - console.log(`Client reconnecting with Last-Event-ID: ${lastEventId}`); - } - else { - console.log(`Establishing new SSE stream for session ${sessionId}`); - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}; -// Set up GET route with conditional auth middleware -if (useOAuth && authMiddleware) { - app.get('/mcp', authMiddleware, mcpGetHandler); -} -else { - app.get('/mcp', mcpGetHandler); -} -// Handle DELETE requests for session termination (according to MCP spec) -const mcpDeleteHandler = async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Received session termination request for session ${sessionId}`); - try { - const transport = transports[sessionId]; - await transport.handleRequest(req, res); - } - catch (error) { - console.error('Error handling session termination:', error); - if (!res.headersSent) { - res.status(500).send('Error processing session termination'); - } - } -}; -// Set up DELETE route with conditional auth middleware -if (useOAuth && authMiddleware) { - app.delete('/mcp', authMiddleware, mcpDeleteHandler); -} -else { - app.delete('/mcp', mcpDeleteHandler); -} -app.listen(MCP_PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`MCP Streamable HTTP Server listening on port ${MCP_PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map deleted file mode 100644 index 9f42584..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleStreamableHttp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BA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CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts deleted file mode 100644 index 661c9f0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Simple interactive task server demonstrating elicitation and sampling. - * - * This server demonstrates the task message queue pattern from the MCP Tasks spec: - * - confirm_delete: Uses elicitation to ask the user for confirmation - * - write_haiku: Uses sampling to request an LLM to generate content - * - * Both tools use the "call-now, fetch-later" pattern where the initial call - * creates a task, and the result is fetched via tasks/result endpoint. - */ -export {}; -//# sourceMappingURL=simpleTaskInteractive.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map deleted file mode 100644 index 3e48b9e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractive.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/simpleTaskInteractive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js deleted file mode 100644 index 2200492..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +++ /dev/null @@ -1,598 +0,0 @@ -/** - * Simple interactive task server demonstrating elicitation and sampling. - * - * This server demonstrates the task message queue pattern from the MCP Tasks spec: - * - confirm_delete: Uses elicitation to ask the user for confirmation - * - write_haiku: Uses sampling to request an LLM to generate content - * - * Both tools use the "call-now, fetch-later" pattern where the initial call - * creates a task, and the result is fetched via tasks/result endpoint. - */ -import { randomUUID } from 'node:crypto'; -import { Server } from '../../server/index.js'; -import { createMcpExpressApp } from '../../server/express.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { RELATED_TASK_META_KEY, ListToolsRequestSchema, CallToolRequestSchema, GetTaskRequestSchema, GetTaskPayloadRequestSchema } from '../../types.js'; -import { isTerminal } from '../../experimental/tasks/interfaces.js'; -import { InMemoryTaskStore } from '../../experimental/tasks/stores/in-memory.js'; -// ============================================================================ -// Resolver - Promise-like for passing results between async operations -// ============================================================================ -class Resolver { - constructor() { - this._done = false; - this._promise = new Promise((resolve, reject) => { - this._resolve = resolve; - this._reject = reject; - }); - } - setResult(value) { - if (this._done) - return; - this._done = true; - this._resolve(value); - } - setException(error) { - if (this._done) - return; - this._done = true; - this._reject(error); - } - wait() { - return this._promise; - } - done() { - return this._done; - } -} -class TaskMessageQueueWithResolvers { - constructor() { - this.queues = new Map(); - this.waitResolvers = new Map(); - } - getQueue(taskId) { - let queue = this.queues.get(taskId); - if (!queue) { - queue = []; - this.queues.set(taskId, queue); - } - return queue; - } - async enqueue(taskId, message, _sessionId, maxSize) { - const queue = this.getQueue(taskId); - if (maxSize !== undefined && queue.length >= maxSize) { - throw new Error(`Task message queue overflow: queue size (${queue.length}) exceeds maximum (${maxSize})`); - } - queue.push(message); - // Notify any waiters - this.notifyWaiters(taskId); - } - async enqueueWithResolver(taskId, message, resolver, originalRequestId) { - const queue = this.getQueue(taskId); - const queuedMessage = { - type: 'request', - message, - timestamp: Date.now(), - resolver, - originalRequestId - }; - queue.push(queuedMessage); - this.notifyWaiters(taskId); - } - async dequeue(taskId, _sessionId) { - const queue = this.getQueue(taskId); - return queue.shift(); - } - async dequeueAll(taskId, _sessionId) { - const queue = this.queues.get(taskId) ?? []; - this.queues.delete(taskId); - return queue; - } - async waitForMessage(taskId) { - // Check if there are already messages - const queue = this.getQueue(taskId); - if (queue.length > 0) - return; - // Wait for a message to be added - return new Promise(resolve => { - let waiters = this.waitResolvers.get(taskId); - if (!waiters) { - waiters = []; - this.waitResolvers.set(taskId, waiters); - } - waiters.push(resolve); - }); - } - notifyWaiters(taskId) { - const waiters = this.waitResolvers.get(taskId); - if (waiters) { - this.waitResolvers.delete(taskId); - for (const resolve of waiters) { - resolve(); - } - } - } - cleanup() { - this.queues.clear(); - this.waitResolvers.clear(); - } -} -// ============================================================================ -// Extended task store with wait functionality -// ============================================================================ -class TaskStoreWithNotifications extends InMemoryTaskStore { - constructor() { - super(...arguments); - this.updateResolvers = new Map(); - } - async updateTaskStatus(taskId, status, statusMessage, sessionId) { - await super.updateTaskStatus(taskId, status, statusMessage, sessionId); - this.notifyUpdate(taskId); - } - async storeTaskResult(taskId, status, result, sessionId) { - await super.storeTaskResult(taskId, status, result, sessionId); - this.notifyUpdate(taskId); - } - async waitForUpdate(taskId) { - return new Promise(resolve => { - let waiters = this.updateResolvers.get(taskId); - if (!waiters) { - waiters = []; - this.updateResolvers.set(taskId, waiters); - } - waiters.push(resolve); - }); - } - notifyUpdate(taskId) { - const waiters = this.updateResolvers.get(taskId); - if (waiters) { - this.updateResolvers.delete(taskId); - for (const resolve of waiters) { - resolve(); - } - } - } -} -// ============================================================================ -// Task Result Handler - delivers queued messages and routes responses -// ============================================================================ -class TaskResultHandler { - constructor(store, queue) { - this.store = store; - this.queue = queue; - this.pendingRequests = new Map(); - } - async handle(taskId, server, _sessionId) { - while (true) { - // Get fresh task state - const task = await this.store.getTask(taskId); - if (!task) { - throw new Error(`Task not found: ${taskId}`); - } - // Dequeue and send all pending messages - await this.deliverQueuedMessages(taskId, server, _sessionId); - // If task is terminal, return result - if (isTerminal(task.status)) { - const result = await this.store.getTaskResult(taskId); - // Add related-task metadata per spec - return { - ...result, - _meta: { - ...(result._meta || {}), - [RELATED_TASK_META_KEY]: { taskId } - } - }; - } - // Wait for task update or new message - await this.waitForUpdate(taskId); - } - } - async deliverQueuedMessages(taskId, server, _sessionId) { - while (true) { - const message = await this.queue.dequeue(taskId); - if (!message) - break; - console.log(`[Server] Delivering queued ${message.type} message for task ${taskId}`); - if (message.type === 'request') { - const reqMessage = message; - // Send the request via the server - // Store the resolver so we can route the response back - if (reqMessage.resolver && reqMessage.originalRequestId) { - this.pendingRequests.set(reqMessage.originalRequestId, reqMessage.resolver); - } - // Send the message - for elicitation/sampling, we use the server's methods - // But since we're in tasks/result context, we need to send via transport - // This is simplified - in production you'd use proper message routing - try { - const request = reqMessage.message; - let response; - if (request.method === 'elicitation/create') { - // Send elicitation request to client - const params = request.params; - response = await server.elicitInput(params); - } - else if (request.method === 'sampling/createMessage') { - // Send sampling request to client - const params = request.params; - response = await server.createMessage(params); - } - else { - throw new Error(`Unknown request method: ${request.method}`); - } - // Route response back to resolver - if (reqMessage.resolver) { - reqMessage.resolver.setResult(response); - } - } - catch (error) { - if (reqMessage.resolver) { - reqMessage.resolver.setException(error instanceof Error ? error : new Error(String(error))); - } - } - } - // For notifications, we'd send them too but this example focuses on requests - } - } - async waitForUpdate(taskId) { - // Race between store update and queue message - await Promise.race([this.store.waitForUpdate(taskId), this.queue.waitForMessage(taskId)]); - } - routeResponse(requestId, response) { - const resolver = this.pendingRequests.get(requestId); - if (resolver && !resolver.done()) { - this.pendingRequests.delete(requestId); - resolver.setResult(response); - return true; - } - return false; - } - routeError(requestId, error) { - const resolver = this.pendingRequests.get(requestId); - if (resolver && !resolver.done()) { - this.pendingRequests.delete(requestId); - resolver.setException(error); - return true; - } - return false; - } -} -// ============================================================================ -// Task Session - wraps server to enqueue requests during task execution -// ============================================================================ -class TaskSession { - constructor(server, taskId, store, queue) { - this.server = server; - this.taskId = taskId; - this.store = store; - this.queue = queue; - this.requestCounter = 0; - } - nextRequestId() { - return `task-${this.taskId}-${++this.requestCounter}`; - } - async elicit(message, requestedSchema) { - // Update task status to input_required - await this.store.updateTaskStatus(this.taskId, 'input_required'); - const requestId = this.nextRequestId(); - // Build the elicitation request with related-task metadata - const params = { - message, - requestedSchema, - mode: 'form', - _meta: { - [RELATED_TASK_META_KEY]: { taskId: this.taskId } - } - }; - const jsonrpcRequest = { - jsonrpc: '2.0', - id: requestId, - method: 'elicitation/create', - params - }; - // Create resolver to wait for response - const resolver = new Resolver(); - // Enqueue the request - await this.queue.enqueueWithResolver(this.taskId, jsonrpcRequest, resolver, requestId); - try { - // Wait for response - const response = await resolver.wait(); - // Update status back to working - await this.store.updateTaskStatus(this.taskId, 'working'); - return response; - } - catch (error) { - await this.store.updateTaskStatus(this.taskId, 'working'); - throw error; - } - } - async createMessage(messages, maxTokens) { - // Update task status to input_required - await this.store.updateTaskStatus(this.taskId, 'input_required'); - const requestId = this.nextRequestId(); - // Build the sampling request with related-task metadata - const params = { - messages, - maxTokens, - _meta: { - [RELATED_TASK_META_KEY]: { taskId: this.taskId } - } - }; - const jsonrpcRequest = { - jsonrpc: '2.0', - id: requestId, - method: 'sampling/createMessage', - params - }; - // Create resolver to wait for response - const resolver = new Resolver(); - // Enqueue the request - await this.queue.enqueueWithResolver(this.taskId, jsonrpcRequest, resolver, requestId); - try { - // Wait for response - const response = await resolver.wait(); - // Update status back to working - await this.store.updateTaskStatus(this.taskId, 'working'); - return response; - } - catch (error) { - await this.store.updateTaskStatus(this.taskId, 'working'); - throw error; - } - } -} -// ============================================================================ -// Server Setup -// ============================================================================ -const PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 8000; -// Create shared stores -const taskStore = new TaskStoreWithNotifications(); -const messageQueue = new TaskMessageQueueWithResolvers(); -const taskResultHandler = new TaskResultHandler(taskStore, messageQueue); -// Track active task executions -const activeTaskExecutions = new Map(); -// Create the server -const createServer = () => { - const server = new Server({ name: 'simple-task-interactive', version: '1.0.0' }, { - capabilities: { - tools: {}, - tasks: { - requests: { - tools: { call: {} } - } - } - } - }); - // Register tools - server.setRequestHandler(ListToolsRequestSchema, async () => { - return { - tools: [ - { - name: 'confirm_delete', - description: 'Asks for confirmation before deleting (demonstrates elicitation)', - inputSchema: { - type: 'object', - properties: { - filename: { type: 'string' } - } - }, - execution: { taskSupport: 'required' } - }, - { - name: 'write_haiku', - description: 'Asks LLM to write a haiku (demonstrates sampling)', - inputSchema: { - type: 'object', - properties: { - topic: { type: 'string' } - } - }, - execution: { taskSupport: 'required' } - } - ] - }; - }); - // Handle tool calls - server.setRequestHandler(CallToolRequestSchema, async (request, extra) => { - const { name, arguments: args } = request.params; - const taskParams = (request.params._meta?.task || request.params.task); - // Validate task mode - these tools require tasks - if (!taskParams) { - throw new Error(`Tool ${name} requires task mode`); - } - // Create task - const taskOptions = { - ttl: taskParams.ttl, - pollInterval: taskParams.pollInterval ?? 1000 - }; - const task = await taskStore.createTask(taskOptions, extra.requestId, request, extra.sessionId); - console.log(`\n[Server] ${name} called, task created: ${task.taskId}`); - // Start background task execution - const taskExecution = (async () => { - try { - const taskSession = new TaskSession(server, task.taskId, taskStore, messageQueue); - if (name === 'confirm_delete') { - const filename = args?.filename ?? 'unknown.txt'; - console.log(`[Server] confirm_delete: asking about '${filename}'`); - console.log('[Server] Sending elicitation request to client...'); - const result = await taskSession.elicit(`Are you sure you want to delete '${filename}'?`, { - type: 'object', - properties: { - confirm: { type: 'boolean' } - }, - required: ['confirm'] - }); - console.log(`[Server] Received elicitation response: action=${result.action}, content=${JSON.stringify(result.content)}`); - let text; - if (result.action === 'accept' && result.content) { - const confirmed = result.content.confirm; - text = confirmed ? `Deleted '${filename}'` : 'Deletion cancelled'; - } - else { - text = 'Deletion cancelled'; - } - console.log(`[Server] Completing task with result: ${text}`); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [{ type: 'text', text }] - }); - } - else if (name === 'write_haiku') { - const topic = args?.topic ?? 'nature'; - console.log(`[Server] write_haiku: topic '${topic}'`); - console.log('[Server] Sending sampling request to client...'); - const result = await taskSession.createMessage([ - { - role: 'user', - content: { type: 'text', text: `Write a haiku about ${topic}` } - } - ], 50); - let haiku = 'No response'; - if (result.content && 'text' in result.content) { - haiku = result.content.text; - } - console.log(`[Server] Received sampling response: ${haiku.substring(0, 50)}...`); - console.log('[Server] Completing task with haiku'); - await taskStore.storeTaskResult(task.taskId, 'completed', { - content: [{ type: 'text', text: `Haiku:\n${haiku}` }] - }); - } - } - catch (error) { - console.error(`[Server] Task ${task.taskId} failed:`, error); - await taskStore.storeTaskResult(task.taskId, 'failed', { - content: [{ type: 'text', text: `Error: ${error}` }], - isError: true - }); - } - finally { - activeTaskExecutions.delete(task.taskId); - } - })(); - activeTaskExecutions.set(task.taskId, { - promise: taskExecution, - server, - sessionId: extra.sessionId ?? '' - }); - return { task }; - }); - // Handle tasks/get - server.setRequestHandler(GetTaskRequestSchema, async (request) => { - const { taskId } = request.params; - const task = await taskStore.getTask(taskId); - if (!task) { - throw new Error(`Task ${taskId} not found`); - } - return task; - }); - // Handle tasks/result - server.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => { - const { taskId } = request.params; - console.log(`[Server] tasks/result called for task ${taskId}`); - return taskResultHandler.handle(taskId, server, extra.sessionId ?? ''); - }); - return server; -}; -// ============================================================================ -// Express App Setup -// ============================================================================ -const app = createMcpExpressApp(); -// Map to store transports by session ID -const transports = {}; -// Helper to check if request is initialize -const isInitializeRequest = (body) => { - return typeof body === 'object' && body !== null && 'method' in body && body.method === 'initialize'; -}; -// MCP POST endpoint -app.post('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - try { - let transport; - if (sessionId && transports[sessionId]) { - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - onsessioninitialized: sid => { - console.log(`Session initialized: ${sid}`); - transports[sid] = transport; - } - }); - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}`); - delete transports[sid]; - } - }; - const server = createServer(); - await server.connect(transport); - await transport.handleRequest(req, res, req.body); - return; - } - else { - res.status(400).json({ - jsonrpc: '2.0', - error: { code: -32000, message: 'Bad Request: No valid session ID' }, - id: null - }); - return; - } - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { code: -32603, message: 'Internal server error' }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams -app.get('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Handle DELETE requests for session termination -app.delete('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Session termination request: ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Start server -app.listen(PORT, () => { - console.log(`Starting server on http://localhost:${PORT}/mcp`); - console.log('\nAvailable tools:'); - console.log(' - confirm_delete: Demonstrates elicitation (asks user y/n)'); - console.log(' - write_haiku: Demonstrates sampling (requests LLM completion)'); -}); -// Handle shutdown -process.on('SIGINT', async () => { - console.log('\nShutting down server...'); - for (const sessionId of Object.keys(transports)) { - try { - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing session ${sessionId}:`, error); - } - } - taskStore.cleanup(); - messageQueue.cleanup(); - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=simpleTaskInteractive.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map deleted file mode 100644 index 7c71678..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simpleTaskInteractive.js","sourceRoot":"","sources":["../../../../src/examples/server/simpleTaskInteractive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAMH,qBAAqB,EAWrB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAE9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAkD,UAAU,EAAqB,MAAM,wCAAwC,CAAC;AACvI,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,+EAA+E;AAC/E,uEAAuE;AACvE,+EAA+E;AAE/E,MAAM,QAAQ;IAMV;QAFQ,UAAK,GAAG,KAAK,CAAC;QAGlB,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC/C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAC1B,CAAC,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAC,KAAQ;QACd,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO;QACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED,YAAY,CAAC,KAAY;QACrB,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO;QACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,IAAI;QACA,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M,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,eAAe;AACf,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,uCAAuC,IAAI,MAAM,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,kEAAkE,CAAC,CAAC;AACpF,CAAC,CAAC,CAAC;AAEH,kBAAkB;AAClB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACzC,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9C,IAAI,CAAC;YACD,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAChE,CAAC;IACL,CAAC;IACD,SAAS,CAAC,OAAO,EAAE,CAAC;IACpB,YAAY,CAAC,OAAO,EAAE,CAAC;IACvB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts deleted file mode 100644 index c536d0c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=sseAndStreamableHttpCompatibleServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map deleted file mode 100644 index fb982c8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sseAndStreamableHttpCompatibleServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/sseAndStreamableHttpCompatibleServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js deleted file mode 100644 index 020cb0f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +++ /dev/null @@ -1,231 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { SSEServerTransport } from '../../server/sse.js'; -import * as z from 'zod/v4'; -import { isInitializeRequest } from '../../types.js'; -import { InMemoryEventStore } from '../shared/inMemoryEventStore.js'; -import { createMcpExpressApp } from '../../server/express.js'; -/** - * This example server demonstrates backwards compatibility with both: - * 1. The deprecated HTTP+SSE transport (protocol version 2024-11-05) - * 2. The Streamable HTTP transport (protocol version 2025-11-25) - * - * It maintains a single MCP server instance but exposes two transport options: - * - /mcp: The new Streamable HTTP endpoint (supports GET/POST/DELETE) - * - /sse: The deprecated SSE endpoint for older clients (GET to establish stream) - * - /messages: The deprecated POST endpoint for older clients (POST to send messages) - */ -const getServer = () => { - const server = new McpServer({ - name: 'backwards-compatible-server', - version: '1.0.0' - }, { capabilities: { logging: {} } }); - // Register a simple tool that sends notifications over time - server.registerTool('start-notification-stream', { - description: 'Starts sending periodic notifications for testing resumability', - inputSchema: { - interval: z.number().describe('Interval in milliseconds between notifications').default(100), - count: z.number().describe('Number of notifications to send (0 for 100)').default(50) - } - }, async ({ interval, count }, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - let counter = 0; - while (count === 0 || counter < count) { - counter++; - try { - await server.sendLoggingMessage({ - level: 'info', - data: `Periodic notification #${counter} at ${new Date().toISOString()}` - }, extra.sessionId); - } - catch (error) { - console.error('Error sending notification:', error); - } - // Wait for the specified interval - await sleep(interval); - } - return { - content: [ - { - type: 'text', - text: `Started sending periodic notifications every ${interval}ms` - } - ] - }; - }); - return server; -}; -// Create Express application -const app = createMcpExpressApp(); -// Store transports by session ID -const transports = {}; -//============================================================================= -// STREAMABLE HTTP TRANSPORT (PROTOCOL VERSION 2025-11-25) -//============================================================================= -// Handle all MCP Streamable HTTP requests (GET, POST, DELETE) on a single endpoint -app.all('/mcp', async (req, res) => { - console.log(`Received ${req.method} request to /mcp`); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Check if the transport is of the correct type - const existingTransport = transports[sessionId]; - if (existingTransport instanceof StreamableHTTPServerTransport) { - // Reuse existing transport - transport = existingTransport; - } - else { - // Transport exists but is not a StreamableHTTPServerTransport (could be SSEServerTransport) - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: Session exists but uses a different transport protocol' - }, - id: null - }); - return; - } - } - else if (!sessionId && req.method === 'POST' && isInitializeRequest(req.body)) { - const eventStore = new InMemoryEventStore(); - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - eventStore, // Enable resumability - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - console.log(`StreamableHTTP session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Set up onclose handler to clean up transport when closed - transport.onclose = () => { - const sid = transport.sessionId; - if (sid && transports[sid]) { - console.log(`Transport closed for session ${sid}, removing from transports map`); - delete transports[sid]; - } - }; - // Connect the transport to the MCP server - const server = getServer(); - await server.connect(transport); - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with the transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -//============================================================================= -// DEPRECATED HTTP+SSE TRANSPORT (PROTOCOL VERSION 2024-11-05) -//============================================================================= -app.get('/sse', async (req, res) => { - console.log('Received GET request to /sse (deprecated SSE transport)'); - const transport = new SSEServerTransport('/messages', res); - transports[transport.sessionId] = transport; - res.on('close', () => { - delete transports[transport.sessionId]; - }); - const server = getServer(); - await server.connect(transport); -}); -app.post('/messages', async (req, res) => { - const sessionId = req.query.sessionId; - let transport; - const existingTransport = transports[sessionId]; - if (existingTransport instanceof SSEServerTransport) { - // Reuse existing transport - transport = existingTransport; - } - else { - // Transport exists but is not a SSEServerTransport (could be StreamableHTTPServerTransport) - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: Session exists but uses a different transport protocol' - }, - id: null - }); - return; - } - if (transport) { - await transport.handlePostMessage(req, res, req.body); - } - else { - res.status(400).send('No transport found for sessionId'); - } -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Backwards compatible MCP server listening on port ${PORT}`); - console.log(` -============================================== -SUPPORTED TRANSPORT OPTIONS: - -1. Streamable Http(Protocol version: 2025-11-25) - Endpoint: /mcp - Methods: GET, POST, DELETE - Usage: - - Initialize with POST to /mcp - - Establish SSE stream with GET to /mcp - - Send requests with POST to /mcp - - Terminate session with DELETE to /mcp - -2. Http + SSE (Protocol version: 2024-11-05) - Endpoints: /sse (GET) and /messages (POST) - Usage: - - Establish SSE stream with GET to /sse - - Send requests with POST to /messages?sessionId= -============================================== -`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - // Close all active transports to properly clean up resources - for (const sessionId in transports) { - try { - console.log(`Closing transport for session ${sessionId}`); - await transports[sessionId].close(); - delete transports[sessionId]; - } - catch (error) { - console.error(`Error closing transport for session ${sessionId}:`, error); - } - } - console.log('Server shutdown complete'); - process.exit(0); -}); -//# sourceMappingURL=sseAndStreamableHttpCompatibleServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map deleted file mode 100644 index bea467a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sseAndStreamableHttpCompatibleServer.js","sourceRoot":"","sources":["../../../../src/examples/server/sseAndStreamableHttpCompatibleServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,O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,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAEvC,6DAA6D;IAC7D,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACjC,IAAI,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC;YAC1D,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,uCAAuC,SAAS,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts deleted file mode 100644 index 63e4554..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ssePollingExample.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map deleted file mode 100644 index 9382731..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingExample.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/ssePollingExample.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js deleted file mode 100644 index 1f78609..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +++ /dev/null @@ -1,97 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import { McpServer } from '../../server/mcp.js'; -import { createMcpExpressApp } from '../../server/express.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { InMemoryEventStore } from '../shared/inMemoryEventStore.js'; -import cors from 'cors'; -// Create the MCP server -const server = new McpServer({ - name: 'sse-polling-example', - version: '1.0.0' -}, { - capabilities: { logging: {} } -}); -// Register a long-running tool that demonstrates server-initiated disconnect -server.tool('long-task', 'A long-running task that sends progress updates. Server will disconnect mid-task to demonstrate polling.', {}, async (_args, extra) => { - const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); - console.log(`[${extra.sessionId}] Starting long-task...`); - // Send first progress notification - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 25% - Starting work...' - }, extra.sessionId); - await sleep(1000); - // Send second progress notification - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 50% - Halfway there...' - }, extra.sessionId); - await sleep(1000); - // Server decides to disconnect the client to free resources - // Client will reconnect via GET with Last-Event-ID after the transport's retryInterval - // Use extra.closeSSEStream callback - available when eventStore is configured - if (extra.closeSSEStream) { - console.log(`[${extra.sessionId}] Closing SSE stream to trigger client polling...`); - extra.closeSSEStream(); - } - // Continue processing while client is disconnected - // Events are stored in eventStore and will be replayed on reconnect - await sleep(500); - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 75% - Almost done (sent while client disconnected)...' - }, extra.sessionId); - await sleep(500); - await server.sendLoggingMessage({ - level: 'info', - data: 'Progress: 100% - Complete!' - }, extra.sessionId); - console.log(`[${extra.sessionId}] Task complete`); - return { - content: [ - { - type: 'text', - text: 'Long task completed successfully!' - } - ] - }; -}); -// Set up Express app -const app = createMcpExpressApp(); -app.use(cors()); -// Create event store for resumability -const eventStore = new InMemoryEventStore(); -// Track transports by session ID for session reuse -const transports = new Map(); -// Handle all MCP requests -app.all('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - // Reuse existing transport or create new one - let transport = sessionId ? transports.get(sessionId) : undefined; - if (!transport) { - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - eventStore, - retryInterval: 2000, // Default retry interval for priming events - onsessioninitialized: id => { - console.log(`[${id}] Session initialized`); - transports.set(id, transport); - } - }); - // Connect the MCP server to the transport - await server.connect(transport); - } - await transport.handleRequest(req, res, req.body); -}); -// Start the server -const PORT = 3001; -app.listen(PORT, () => { - console.log(`SSE Polling Example Server running on http://localhost:${PORT}/mcp`); - console.log(''); - console.log('This server demonstrates SEP-1699 SSE polling:'); - console.log('- retryInterval: 2000ms (client waits 2s before reconnecting)'); - console.log('- eventStore: InMemoryEventStore (events are persisted for replay)'); - console.log(''); - console.log('Try calling the "long-task" tool to see server-initiated disconnect in action.'); -}); -//# sourceMappingURL=ssePollingExample.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map deleted file mode 100644 index 1f3c0ef..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ssePollingExample.js","sourceRoot":"","sources":["../../../../src/examples/server/ssePollingExample.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MA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,CAAC,SAAS,EAAE,CAAC;QACb,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAC1C,kBAAkB,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE;YACtC,UAAU;YACV,aAAa,EAAE,IAAI,EAAE,4CAA4C;YACjE,oBAAoB,EAAE,EAAE,CAAC,EAAE;gBACvB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;gBAC3C,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,SAAU,CAAC,CAAC;YACnC,CAAC;SACJ,CAAC,CAAC;QAEH,0CAA0C;QAC1C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IAClB,OAAO,CAAC,GAAG,CAAC,0DAA0D,IAAI,MAAM,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC;IAC9D,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,oEAAoE,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,gFAAgF,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts deleted file mode 100644 index 4df1783..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=standaloneSseWithGetStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map deleted file mode 100644 index df60dc5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"standaloneSseWithGetStreamableHttp.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/standaloneSseWithGetStreamableHttp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js deleted file mode 100644 index c5164ca..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +++ /dev/null @@ -1,110 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import { McpServer } from '../../server/mcp.js'; -import { StreamableHTTPServerTransport } from '../../server/streamableHttp.js'; -import { isInitializeRequest } from '../../types.js'; -import { createMcpExpressApp } from '../../server/express.js'; -// Create an MCP server with implementation details -const server = new McpServer({ - name: 'resource-list-changed-notification-server', - version: '1.0.0' -}); -// Store transports by session ID to send notifications -const transports = {}; -const addResource = (name, content) => { - const uri = `https://mcp-example.com/dynamic/${encodeURIComponent(name)}`; - server.registerResource(name, uri, { mimeType: 'text/plain', description: `Dynamic resource: ${name}` }, async () => { - return { - contents: [{ uri, text: content }] - }; - }); -}; -addResource('example-resource', 'Initial content for example-resource'); -const resourceChangeInterval = setInterval(() => { - const name = randomUUID(); - addResource(name, `Content for ${name}`); -}, 5000); // Change resources every 5 seconds for testing -const app = createMcpExpressApp(); -app.post('/mcp', async (req, res) => { - console.log('Received MCP request:', req.body); - try { - // Check for existing session ID - const sessionId = req.headers['mcp-session-id']; - let transport; - if (sessionId && transports[sessionId]) { - // Reuse existing transport - transport = transports[sessionId]; - } - else if (!sessionId && isInitializeRequest(req.body)) { - // New initialization request - transport = new StreamableHTTPServerTransport({ - sessionIdGenerator: () => randomUUID(), - onsessioninitialized: sessionId => { - // Store the transport by session ID when session is initialized - // This avoids race conditions where requests might come in before the session is stored - console.log(`Session initialized with ID: ${sessionId}`); - transports[sessionId] = transport; - } - }); - // Connect the transport to the MCP server - await server.connect(transport); - // Handle the request - the onsessioninitialized callback will store the transport - await transport.handleRequest(req, res, req.body); - return; // Already handled - } - else { - // Invalid request - no session ID or not initialization request - res.status(400).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Bad Request: No valid session ID provided' - }, - id: null - }); - return; - } - // Handle the request with existing transport - await transport.handleRequest(req, res, req.body); - } - catch (error) { - console.error('Error handling MCP request:', error); - if (!res.headersSent) { - res.status(500).json({ - jsonrpc: '2.0', - error: { - code: -32603, - message: 'Internal server error' - }, - id: null - }); - } - } -}); -// Handle GET requests for SSE streams (now using built-in support from StreamableHTTP) -app.get('/mcp', async (req, res) => { - const sessionId = req.headers['mcp-session-id']; - if (!sessionId || !transports[sessionId]) { - res.status(400).send('Invalid or missing session ID'); - return; - } - console.log(`Establishing SSE stream for session ${sessionId}`); - const transport = transports[sessionId]; - await transport.handleRequest(req, res); -}); -// Start the server -const PORT = 3000; -app.listen(PORT, error => { - if (error) { - console.error('Failed to start server:', error); - process.exit(1); - } - console.log(`Server listening on port ${PORT}`); -}); -// Handle server shutdown -process.on('SIGINT', async () => { - console.log('Shutting down server...'); - clearInterval(resourceChangeInterval); - await server.close(); - process.exit(0); -}); -//# sourceMappingURL=standaloneSseWithGetStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map deleted file mode 100644 index 1717f61..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"standaloneSseWithGetStreamableHttp.js","sourceRoot":"","sources":["../../../../src/examples/server/standaloneSseWithGetStreamableHttp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,mDAAmD;AACnD,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IACzB,IAAI,EAAE,2CAA2C;IACjD,OAAO,EAAE,OAAO;CACnB,CAAC,CAAC;AAEH,uDAAuD;AACvD,MAAM,UAAU,GAA2D,EAAE,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,OAAe,EAAE,EAAE;IAClD,MAAM,GAAG,GAAG,mCAAmC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1E,MAAM,CAAC,gBAAgB,CACnB,IAAI,EACJ,GAAG,EACH,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,qBAAqB,IAAI,EAAE,EAAE,EACpE,KAAK,IAAiC,EAAE;QACpC,OAAO;YACH,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,C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AI,CAAC,+BAA+B,CAAC,CAAC;QACtD,OAAO;IACX,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,uCAAuC,SAAS,EAAE,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;IACrB,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,yBAAyB;AACzB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC5B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACvC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACtC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts deleted file mode 100644 index acc24b6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=toolWithSampleServer.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map deleted file mode 100644 index bd0cebc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolWithSampleServer.d.ts","sourceRoot":"","sources":["../../../../src/examples/server/toolWithSampleServer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js deleted file mode 100644 index 0b7df6c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js +++ /dev/null @@ -1,48 +0,0 @@ -// Run with: npx tsx src/examples/server/toolWithSampleServer.ts -import { McpServer } from '../../server/mcp.js'; -import { StdioServerTransport } from '../../server/stdio.js'; -import * as z from 'zod/v4'; -const mcpServer = new McpServer({ - name: 'tools-with-sample-server', - version: '1.0.0' -}); -// Tool that uses LLM sampling to summarize any text -mcpServer.registerTool('summarize', { - description: 'Summarize any text using an LLM', - inputSchema: { - text: z.string().describe('Text to summarize') - } -}, async ({ text }) => { - // Call the LLM through MCP sampling - const response = await mcpServer.server.createMessage({ - messages: [ - { - role: 'user', - content: { - type: 'text', - text: `Please summarize the following text concisely:\n\n${text}` - } - } - ], - maxTokens: 500 - }); - // Since we're not passing tools param to createMessage, response.content is single content - return { - content: [ - { - type: 'text', - text: response.content.type === 'text' ? response.content.text : 'Unable to generate summary' - } - ] - }; -}); -async function main() { - const transport = new StdioServerTransport(); - await mcpServer.connect(transport); - console.log('MCP server is running...'); -} -main().catch(error => { - console.error('Server error:', error); - process.exit(1); -}); -//# sourceMappingURL=toolWithSampleServer.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map deleted file mode 100644 index 4fc372c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolWithSampleServer.js","sourceRoot":"","sources":["../../../../src/examples/server/toolWithSampleServer.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC;IAC5B,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;CACnB,CAAC,CAAC;AAEH,oDAAoD;AACpD,SAAS,CAAC,YAAY,CAClB,WAAW,EACX;IACI,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE;QACT,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;KACjD;CACJ,EACD,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACf,oCAAoC;IACpC,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC;QAClD,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,qDAAqD,IAAI,EAAE;iBACpE;aACJ;SACJ;QACD,SAAS,EAAE,GAAG;KACjB,CAAC,CAAC;IAEH,2FAA2F;IAC3F,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,4BAA4B;aAChG;SACJ;KACJ,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,KAAK,UAAU,IAAI;IACf,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAC5C,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts deleted file mode 100644 index 26ff38c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { JSONRPCMessage } from '../../types.js'; -import { EventStore } from '../../server/streamableHttp.js'; -/** - * Simple in-memory implementation of the EventStore interface for resumability - * This is primarily intended for examples and testing, not for production use - * where a persistent storage solution would be more appropriate. - */ -export declare class InMemoryEventStore implements EventStore { - private events; - /** - * Generates a unique event ID for a given stream ID - */ - private generateEventId; - /** - * Extracts the stream ID from an event ID - */ - private getStreamIdFromEventId; - /** - * Stores an event with a generated event ID - * Implements EventStore.storeEvent - */ - storeEvent(streamId: string, message: JSONRPCMessage): Promise; - /** - * Replays events that occurred after a specific event ID - * Implements EventStore.replayEventsAfter - */ - replayEventsAfter(lastEventId: string, { send }: { - send: (eventId: string, message: JSONRPCMessage) => Promise; - }): Promise; -} -//# sourceMappingURL=inMemoryEventStore.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map deleted file mode 100644 index a67ee6c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemoryEventStore.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/inMemoryEventStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,UAAU;IACjD,OAAO,CAAC,MAAM,CAAyE;IAEvF;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAK9B;;;OAGG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAM5E;;;OAGG;IACG,iBAAiB,CACnB,WAAW,EAAE,MAAM,EACnB,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,GAChF,OAAO,CAAC,MAAM,CAAC;CAkCrB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js deleted file mode 100644 index 35f6dbb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Simple in-memory implementation of the EventStore interface for resumability - * This is primarily intended for examples and testing, not for production use - * where a persistent storage solution would be more appropriate. - */ -export class InMemoryEventStore { - constructor() { - this.events = new Map(); - } - /** - * Generates a unique event ID for a given stream ID - */ - generateEventId(streamId) { - return `${streamId}_${Date.now()}_${Math.random().toString(36).substring(2, 10)}`; - } - /** - * Extracts the stream ID from an event ID - */ - getStreamIdFromEventId(eventId) { - const parts = eventId.split('_'); - return parts.length > 0 ? parts[0] : ''; - } - /** - * Stores an event with a generated event ID - * Implements EventStore.storeEvent - */ - async storeEvent(streamId, message) { - const eventId = this.generateEventId(streamId); - this.events.set(eventId, { streamId, message }); - return eventId; - } - /** - * Replays events that occurred after a specific event ID - * Implements EventStore.replayEventsAfter - */ - async replayEventsAfter(lastEventId, { send }) { - if (!lastEventId || !this.events.has(lastEventId)) { - return ''; - } - // Extract the stream ID from the event ID - const streamId = this.getStreamIdFromEventId(lastEventId); - if (!streamId) { - return ''; - } - let foundLastEvent = false; - // Sort events by eventId for chronological ordering - const sortedEvents = [...this.events.entries()].sort((a, b) => a[0].localeCompare(b[0])); - for (const [eventId, { streamId: eventStreamId, message }] of sortedEvents) { - // Only include events from the same stream - if (eventStreamId !== streamId) { - continue; - } - // Start sending events after we find the lastEventId - if (eventId === lastEventId) { - foundLastEvent = true; - continue; - } - if (foundLastEvent) { - await send(eventId, message); - } - } - return streamId; - } -} -//# sourceMappingURL=inMemoryEventStore.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map deleted file mode 100644 index b9e6af6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemoryEventStore.js","sourceRoot":"","sources":["../../../../src/examples/shared/inM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c,GAAG,KAAK,CAAC;QAE3B,oDAAoD;QACpD,MAAM,YAAY,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzF,KAAK,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC;YACzE,2CAA2C;YAC3C,IAAI,aAAa,KAAK,QAAQ,EAAE,CAAC;gBAC7B,SAAS;YACb,CAAC;YAED,qDAAqD;YACrD,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;gBAC1B,cAAc,GAAG,IAAI,CAAC;gBACtB,SAAS;YACb,CAAC;YAED,IAAI,cAAc,EAAE,CAAC;gBACjB,MAAM,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACjC,CAAC;QACL,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts deleted file mode 100644 index 2a86335..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Experimental MCP SDK features. - * WARNING: These APIs are experimental and may change without notice. - * - * Import experimental features from this module: - * ```typescript - * import { TaskStore, InMemoryTaskStore } from '@modelcontextprotocol/sdk/experimental'; - * ``` - * - * @experimental - */ -export * from './tasks/index.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map deleted file mode 100644 index 410892a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js deleted file mode 100644 index 650f4e4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Experimental MCP SDK features. - * WARNING: These APIs are experimental and may change without notice. - * - * Import experimental features from this module: - * ```typescript - * import { TaskStore, InMemoryTaskStore } from '@modelcontextprotocol/sdk/experimental'; - * ``` - * - * @experimental - */ -export * from './tasks/index.js'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map deleted file mode 100644 index 3639685..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,kBAAkB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts deleted file mode 100644 index 9c7a928..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Experimental client task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { Client } from '../../client/index.js'; -import type { RequestOptions } from '../../shared/protocol.js'; -import type { ResponseMessage } from '../../shared/responseMessage.js'; -import type { AnyObjectSchema, SchemaOutput } from '../../server/zod-compat.js'; -import type { CallToolRequest, ClientRequest, Notification, Request, Result } from '../../types.js'; -import { CallToolResultSchema, type CompatibilityCallToolResultSchema } from '../../types.js'; -import type { GetTaskResult, ListTasksResult, CancelTaskResult } from './types.js'; -/** - * Experimental task features for MCP clients. - * - * Access via `client.experimental.tasks`: - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'tool', arguments: {} }); - * const task = await client.experimental.tasks.getTask(taskId); - * ``` - * - * @experimental - */ -export declare class ExperimentalClientTasks { - private readonly _client; - constructor(_client: Client); - /** - * Calls a tool and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to tool execution, allowing you to - * observe intermediate task status updates for long-running tool calls. - * Automatically validates structured output if the tool has an outputSchema. - * - * @example - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'myTool', arguments: {} }); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Tool execution started:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Tool status:', message.task.status); - * break; - * case 'result': - * console.log('Tool result:', message.result); - * break; - * case 'error': - * console.error('Tool error:', message.error); - * break; - * } - * } - * ``` - * - * @param params - Tool call parameters (name and arguments) - * @param resultSchema - Zod schema for validating the result (defaults to CallToolResultSchema) - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - callToolStream(params: CallToolRequest['params'], resultSchema?: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - getTask(taskId: string, options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - getTaskResult(taskId: string, resultSchema?: T, options?: RequestOptions): Promise>; - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - listTasks(cursor?: string, options?: RequestOptions): Promise; - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - cancelTask(taskId: string, options?: RequestOptions): Promise; - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request: ClientRequest | RequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; -} -//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map deleted file mode 100644 index e54158d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,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,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IASpF;;;;;;;OAOG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IASrF;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,CAAC,SAAS,eAAe,EACnC,OAAO,EAAE,aAAa,GAAG,QAAQ,EACjC,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,cAAc,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;CAWlE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js deleted file mode 100644 index 0c1d8af..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * Experimental client task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import { CallToolResultSchema, McpError, ErrorCode } from '../../types.js'; -/** - * Experimental task features for MCP clients. - * - * Access via `client.experimental.tasks`: - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'tool', arguments: {} }); - * const task = await client.experimental.tasks.getTask(taskId); - * ``` - * - * @experimental - */ -export class ExperimentalClientTasks { - constructor(_client) { - this._client = _client; - } - /** - * Calls a tool and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to tool execution, allowing you to - * observe intermediate task status updates for long-running tool calls. - * Automatically validates structured output if the tool has an outputSchema. - * - * @example - * ```typescript - * const stream = client.experimental.tasks.callToolStream({ name: 'myTool', arguments: {} }); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Tool execution started:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Tool status:', message.task.status); - * break; - * case 'result': - * console.log('Tool result:', message.result); - * break; - * case 'error': - * console.error('Tool error:', message.error); - * break; - * } - * } - * ``` - * - * @param params - Tool call parameters (name and arguments) - * @param resultSchema - Zod schema for validating the result (defaults to CallToolResultSchema) - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - async *callToolStream(params, resultSchema = CallToolResultSchema, options) { - // Access Client's internal methods - const clientInternal = this._client; - // Add task creation parameters if server supports it and not explicitly provided - const optionsWithTask = { - ...options, - // We check if the tool is known to be a task during auto-configuration, but assume - // the caller knows what they're doing if they pass this explicitly - task: options?.task ?? (clientInternal.isToolTask(params.name) ? {} : undefined) - }; - const stream = clientInternal.requestStream({ method: 'tools/call', params }, resultSchema, optionsWithTask); - // Get the validator for this tool (if it has an output schema) - const validator = clientInternal.getToolOutputValidator(params.name); - // Iterate through the stream and validate the final result if needed - for await (const message of stream) { - // If this is a result message and the tool has an output schema, validate it - if (message.type === 'result' && validator) { - const result = message.result; - // If tool has outputSchema, it MUST return structuredContent (unless it's an error) - if (!result.structuredContent && !result.isError) { - yield { - type: 'error', - error: new McpError(ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`) - }; - return; - } - // Only validate structured content if present (not when there's an error) - if (result.structuredContent) { - try { - // Validate the structured content against the schema - const validationResult = validator(result.structuredContent); - if (!validationResult.valid) { - yield { - type: 'error', - error: new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${validationResult.errorMessage}`) - }; - return; - } - } - catch (error) { - if (error instanceof McpError) { - yield { type: 'error', error }; - return; - } - yield { - type: 'error', - error: new McpError(ErrorCode.InvalidParams, `Failed to validate structured content: ${error instanceof Error ? error.message : String(error)}`) - }; - return; - } - } - } - // Yield the message (either validated result or any other message type) - yield message; - } - } - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - async getTask(taskId, options) { - return this._client.getTask({ taskId }, options); - } - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - async getTaskResult(taskId, resultSchema, options) { - // Delegate to the client's underlying Protocol method - return this._client.getTaskResult({ taskId }, resultSchema, options); - } - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - async listTasks(cursor, options) { - // Delegate to the client's underlying Protocol method - return this._client.listTasks(cursor ? { cursor } : undefined, options); - } - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - async cancelTask(taskId, options) { - // Delegate to the client's underlying Protocol method - return this._client.cancelTask({ taskId }, options); - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request, resultSchema, options) { - return this._client.requestStream(request, resultSchema, options); - } -} -//# sourceMappingURL=client.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map deleted file mode 100644 index ae79ccf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAE,oBAAoB,EAA0C,QAAQ,EAAE,SAAS,EAAE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QACtD,OACI,IAAI,CAAC,OAOR,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CAAC,MAAe,EAAE,OAAwB;QACrD,sDAAsD;QACtD,OACI,IAAI,CAAC,OAGR,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,OAAwB;QACrD,sDAAsD;QACtD,OACI,IAAI,CAAC,OAGR,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,aAAa,CACT,OAAiC,EACjC,YAAe,EACf,OAAwB;QAUxB,OAAQ,IAAI,CAAC,OAA8C,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts deleted file mode 100644 index f5e505f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Experimental task capability assertion helpers. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -/** - * Type representing the task requests capability structure. - * This is derived from ClientTasksCapability.requests and ServerTasksCapability.requests. - */ -interface TaskRequestsCapability { - tools?: { - call?: object; - }; - sampling?: { - createMessage?: object; - }; - elicitation?: { - create?: object; - }; -} -/** - * Asserts that task creation is supported for tools/call. - * Used by Client.assertTaskCapability and Server.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export declare function assertToolsCallTaskCapability(requests: TaskRequestsCapability | undefined, method: string, entityName: 'Server' | 'Client'): void; -/** - * Asserts that task creation is supported for sampling/createMessage or elicitation/create. - * Used by Server.assertTaskCapability and Client.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export declare function assertClientRequestTaskCapability(requests: TaskRequestsCapability | undefined, method: string, entityName: 'Server' | 'Client'): void; -export {}; -//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map deleted file mode 100644 index 99dc903..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,UAAU,sBAAsB;IAC5B,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,WAAW,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CACzC,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAChC,IAAI,CAgBN;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAC7C,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAChC,IAAI,CAsBN"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js deleted file mode 100644 index 3880031..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Experimental task capability assertion helpers. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -/** - * Asserts that task creation is supported for tools/call. - * Used by Client.assertTaskCapability and Server.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export function assertToolsCallTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case 'tools/call': - if (!requests.tools?.call) { - throw new Error(`${entityName} does not support task creation for tools/call (required for ${method})`); - } - break; - default: - // Method doesn't support tasks, which is fine - no error - break; - } -} -/** - * Asserts that task creation is supported for sampling/createMessage or elicitation/create. - * Used by Server.assertTaskCapability and Client.assertTaskHandlerCapability. - * - * @param requests - The task requests capability object - * @param method - The method being checked - * @param entityName - 'Server' or 'Client' for error messages - * @throws Error if the capability is not supported - * - * @experimental - */ -export function assertClientRequestTaskCapability(requests, method, entityName) { - if (!requests) { - throw new Error(`${entityName} does not support task creation (required for ${method})`); - } - switch (method) { - case 'sampling/createMessage': - if (!requests.sampling?.createMessage) { - throw new Error(`${entityName} does not support task creation for sampling/createMessage (required for ${method})`); - } - break; - case 'elicitation/create': - if (!requests.elicitation?.create) { - throw new Error(`${entityName} does not support task creation for elicitation/create (required for ${method})`); - } - break; - default: - // Method doesn't support tasks, which is fine - no error - break; - } -} -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map deleted file mode 100644 index 0cb1d79..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,6BAA6B,CACzC,QAA4C,EAC5C,MAAc,EACd,UAA+B;IAE/B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,iDAAiD,MAAM,GAAG,CAAC,CAAC;IAC7F,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACb,KAAK,YAAY;YACb,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,gEAAgE,MAAM,GAAG,CAAC,CAAC;YAC5G,CAAC;YACD,MAAM;QAEV;YACI,yDAAyD;YACzD,MAAM;IACd,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,iCAAiC,CAC7C,QAA4C,EAC5C,MAAc,EACd,UAA+B;IAE/B,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,iDAAiD,MAAM,GAAG,CAAC,CAAC;IAC7F,CAAC;IAED,QAAQ,MAAM,EAAE,CAAC;QACb,KAAK,wBAAwB;YACzB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;gBACpC,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,4EAA4E,MAAM,GAAG,CAAC,CAAC;YACxH,CAAC;YACD,MAAM;QAEV,KAAK,oBAAoB;YACrB,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;gBAChC,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,wEAAwE,MAAM,GAAG,CAAC,CAAC;YACpH,CAAC;YACD,MAAM;QAEV;YACI,yDAAyD;YACzD,MAAM;IACd,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts deleted file mode 100644 index 33ab791..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Experimental task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -export * from './types.js'; -export * from './interfaces.js'; -export * from './helpers.js'; -export * from './client.js'; -export * from './server.js'; -export * from './mcp-server.js'; -export * from './stores/in-memory.js'; -export type { ResponseMessage, TaskStatusMessage, TaskCreatedMessage, ResultMessage, ErrorMessage, BaseResponseMessage } from '../../shared/responseMessage.js'; -export { takeResult, toArrayAsync } from '../../shared/responseMessage.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map deleted file mode 100644 index cf117ed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,YAAY,CAAC;AAG3B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,cAAc,CAAC;AAG7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EACR,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js deleted file mode 100644 index aaa84f5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Experimental task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -// Re-export spec types for convenience -export * from './types.js'; -// SDK implementation interfaces -export * from './interfaces.js'; -// Assertion helpers -export * from './helpers.js'; -// Wrapper classes -export * from './client.js'; -export * from './server.js'; -export * from './mcp-server.js'; -// Store implementations -export * from './stores/in-memory.js'; -export { takeResult, toArrayAsync } from '../../shared/responseMessage.js'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map deleted file mode 100644 index a01409c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,uCAAuC;AACvC,cAAc,YAAY,CAAC;AAE3B,gCAAgC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAE7B,kBAAkB;AAClB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAEhC,wBAAwB;AACxB,cAAc,uBAAuB,CAAC;AAWtC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts deleted file mode 100644 index b0bb989..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +++ /dev/null @@ -1,232 +0,0 @@ -/** - * Experimental task interfaces for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - */ -import { Task, RequestId, Result, JSONRPCRequest, JSONRPCNotification, JSONRPCResultResponse, JSONRPCErrorResponse, ServerRequest, ServerNotification, CallToolResult, GetTaskResult, ToolExecution, Request } from '../../types.js'; -import { CreateTaskResult } from './types.js'; -import type { RequestHandlerExtra, RequestTaskStore } from '../../shared/protocol.js'; -import type { ZodRawShapeCompat, AnySchema, ShapeOutput } from '../../server/zod-compat.js'; -/** - * Extended handler extra with task store for task creation. - * @experimental - */ -export interface CreateTaskRequestHandlerExtra extends RequestHandlerExtra { - taskStore: RequestTaskStore; -} -/** - * Extended handler extra with task ID and store for task operations. - * @experimental - */ -export interface TaskRequestHandlerExtra extends RequestHandlerExtra { - taskId: string; - taskStore: RequestTaskStore; -} -/** - * Base callback type for tool handlers. - * @experimental - */ -export type BaseToolCallback, Args extends undefined | ZodRawShapeCompat | AnySchema = undefined> = Args extends ZodRawShapeCompat ? (args: ShapeOutput, extra: ExtraT) => SendResultT | Promise : Args extends AnySchema ? (args: unknown, extra: ExtraT) => SendResultT | Promise : (extra: ExtraT) => SendResultT | Promise; -/** - * Handler for creating a task. - * @experimental - */ -export type CreateTaskRequestHandler = BaseToolCallback; -/** - * Handler for task operations (get, getResult). - * @experimental - */ -export type TaskRequestHandler = BaseToolCallback; -/** - * Interface for task-based tool handlers. - * @experimental - */ -export interface ToolTaskHandler { - createTask: CreateTaskRequestHandler; - getTask: TaskRequestHandler; - getTaskResult: TaskRequestHandler; -} -/** - * Task-specific execution configuration. - * taskSupport cannot be 'forbidden' for task-based tools. - * @experimental - */ -export type TaskToolExecution = Omit & { - taskSupport: TaskSupport extends 'forbidden' | undefined ? never : TaskSupport; -}; -/** - * Represents a message queued for side-channel delivery via tasks/result. - * - * This is a serializable data structure that can be stored in external systems. - * All fields are JSON-serializable. - */ -export type QueuedMessage = QueuedRequest | QueuedNotification | QueuedResponse | QueuedError; -export interface BaseQueuedMessage { - /** Type of message */ - type: string; - /** When the message was queued (milliseconds since epoch) */ - timestamp: number; -} -export interface QueuedRequest extends BaseQueuedMessage { - type: 'request'; - /** The actual JSONRPC request */ - message: JSONRPCRequest; -} -export interface QueuedNotification extends BaseQueuedMessage { - type: 'notification'; - /** The actual JSONRPC notification */ - message: JSONRPCNotification; -} -export interface QueuedResponse extends BaseQueuedMessage { - type: 'response'; - /** The actual JSONRPC response */ - message: JSONRPCResultResponse; -} -export interface QueuedError extends BaseQueuedMessage { - type: 'error'; - /** The actual JSONRPC error */ - message: JSONRPCErrorResponse; -} -/** - * Interface for managing per-task FIFO message queues. - * - * Similar to TaskStore, this allows pluggable queue implementations - * (in-memory, Redis, other distributed queues, etc.). - * - * Each method accepts taskId and optional sessionId parameters to enable - * a single queue instance to manage messages for multiple tasks, with - * isolation based on task ID and session ID. - * - * All methods are async to support external storage implementations. - * All data in QueuedMessage must be JSON-serializable. - * - * @experimental - */ -export interface TaskMessageQueue { - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - enqueue(taskId: string, message: QueuedMessage, sessionId?: string, maxSize?: number): Promise; - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - dequeue(taskId: string, sessionId?: string): Promise; - /** - * Removes and returns all messages from the queue for a specific task. - * Used when tasks are cancelled or failed to clean up pending messages. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - dequeueAll(taskId: string, sessionId?: string): Promise; -} -/** - * Task creation options. - * @experimental - */ -export interface CreateTaskOptions { - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl?: number | null; - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval?: number; - /** - * Additional context to pass to the task store. - */ - context?: Record; -} -/** - * Interface for storing and retrieving task state and results. - * - * Similar to Transport, this allows pluggable task storage implementations - * (in-memory, database, distributed cache, etc.). - * - * @experimental - */ -export interface TaskStore { - /** - * Creates a new task with the given creation parameters and original request. - * The implementation must generate a unique taskId and createdAt timestamp. - * - * TTL Management: - * - The implementation receives the TTL suggested by the requestor via taskParams.ttl - * - The implementation MAY override the requested TTL (e.g., to enforce limits) - * - The actual TTL used MUST be returned in the Task object - * - Null TTL indicates unlimited task lifetime (no automatic cleanup) - * - Cleanup SHOULD occur automatically after TTL expires, regardless of task status - * - * @param taskParams - The task creation parameters from the request (ttl, pollInterval) - * @param requestId - The JSON-RPC request ID - * @param request - The original request that triggered task creation - * @param sessionId - Optional session ID for binding the task to a specific session - * @returns The created task object - */ - createTask(taskParams: CreateTaskOptions, requestId: RequestId, request: Request, sessionId?: string): Promise; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns The task object, or null if it does not exist - */ - getTask(taskId: string, sessionId?: string): Promise; - /** - * Stores the result of a task and sets its final status. - * - * @param taskId - The task identifier - * @param status - The final status: 'completed' for success, 'failed' for errors - * @param result - The result to store - * @param sessionId - Optional session ID for binding the operation to a specific session - */ - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result, sessionId?: string): Promise; - /** - * Retrieves the stored result of a task. - * - * @param taskId - The task identifier - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns The stored result - */ - getTaskResult(taskId: string, sessionId?: string): Promise; - /** - * Updates a task's status (e.g., to 'cancelled', 'failed', 'completed'). - * - * @param taskId - The task identifier - * @param status - The new status - * @param statusMessage - Optional diagnostic message for failed tasks or other status information - * @param sessionId - Optional session ID for binding the operation to a specific session - */ - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string, sessionId?: string): Promise; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @param cursor - Optional cursor for pagination - * @param sessionId - Optional session ID for binding the query to a specific session - * @returns An object containing the tasks array and an optional nextCursor - */ - listTasks(cursor?: string, sessionId?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; -} -/** - * Checks if a task status represents a terminal state. - * Terminal states are those where the task has finished and will not change. - * - * @param status - The task status to check - * @returns True if the status is terminal (completed, failed, or cancelled) - * @experimental - */ -export declare function isTerminal(status: Task['status']): boolean; -//# sourceMappingURL=interfaces.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map deleted file mode 100644 index afd1d70..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,IAAI,EACJ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SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErH;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAElE;;;;;;;OAOG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnH;;;;;;OAMG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnE;;;;;;;OAOG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpH;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnG;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,OAAO,CAE1D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js deleted file mode 100644 index d4949de..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Experimental task interfaces for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - */ -/** - * Checks if a task status represents a terminal state. - * Terminal states are those where the task has finished and will not change. - * - * @param status - The task status to check - * @returns True if the status is terminal (completed, failed, or cancelled) - * @experimental - */ -export function isTerminal(status) { - return status === 'completed' || status === 'failed' || status === 'cancelled'; -} -//# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map deleted file mode 100644 index c298990..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmRH;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,MAAsB;IAC7C,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts deleted file mode 100644 index b3244f9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Experimental McpServer task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { McpServer, RegisteredTool } from '../../server/mcp.js'; -import type { ZodRawShapeCompat, AnySchema } from '../../server/zod-compat.js'; -import type { ToolAnnotations } from '../../types.js'; -import type { ToolTaskHandler, TaskToolExecution } from './interfaces.js'; -/** - * Experimental task features for McpServer. - * - * Access via `server.experimental.tasks`: - * ```typescript - * server.experimental.tasks.registerToolTask('long-running', config, handler); - * ``` - * - * @experimental - */ -export declare class ExperimentalMcpServerTasks { - private readonly _mcpServer; - constructor(_mcpServer: McpServer); - /** - * Registers a task-based tool with a config object and handler. - * - * Task-based tools support long-running operations that can be polled for status - * and results. The handler must implement `createTask`, `getTask`, and `getTaskResult` - * methods. - * - * @example - * ```typescript - * server.experimental.tasks.registerToolTask('long-computation', { - * description: 'Performs a long computation', - * inputSchema: { input: z.string() }, - * execution: { taskSupport: 'required' } - * }, { - * createTask: async (args, extra) => { - * const task = await extra.taskStore.createTask({ ttl: 300000 }); - * startBackgroundWork(task.taskId, args); - * return { task }; - * }, - * getTask: async (args, extra) => { - * return extra.taskStore.getTask(extra.taskId); - * }, - * getTaskResult: async (args, extra) => { - * return extra.taskStore.getTaskResult(extra.taskId); - * } - * }); - * ``` - * - * @param name - The tool name - * @param config - Tool configuration (description, schemas, etc.) - * @param handler - Task handler with createTask, getTask, getTaskResult methods - * @returns RegisteredTool for managing the tool's lifecycle - * - * @experimental - */ - registerToolTask(name: string, config: { - title?: string; - description?: string; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - execution?: TaskToolExecution; - _meta?: Record; - }, handler: ToolTaskHandler): RegisteredTool; - registerToolTask(name: string, config: { - title?: string; - description?: string; - inputSchema: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - execution?: TaskToolExecution; - _meta?: Record; - }, handler: ToolTaskHandler): RegisteredTool; -} -//# sourceMappingURL=mcp-server.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map deleted file mode 100644 index 84ee9e0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map +++ /dev/null @@ -1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AAU,CAAC;QAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;QAC9B,SAAS,CAAC,EAAE,iBAAiB,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,EACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,GACpC,cAAc;CAsCpB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js deleted file mode 100644 index 39b9d10..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Experimental McpServer task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -/** - * Experimental task features for McpServer. - * - * Access via `server.experimental.tasks`: - * ```typescript - * server.experimental.tasks.registerToolTask('long-running', config, handler); - * ``` - * - * @experimental - */ -export class ExperimentalMcpServerTasks { - constructor(_mcpServer) { - this._mcpServer = _mcpServer; - } - registerToolTask(name, config, handler) { - // Validate that taskSupport is not 'forbidden' for task-based tools - const execution = { taskSupport: 'required', ...config.execution }; - if (execution.taskSupport === 'forbidden') { - throw new Error(`Cannot register task-based tool '${name}' with taskSupport 'forbidden'. Use registerTool() instead.`); - } - // Access McpServer's internal _createRegisteredTool method - const mcpServerInternal = this._mcpServer; - return mcpServerInternal._createRegisteredTool(name, config.title, config.description, config.inputSchema, config.outputSchema, config.annotations, execution, config._meta, handler); - } -} -//# sourceMappingURL=mcp-server.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map deleted file mode 100644 index c01a314..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/mcp-server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAyBH;;;;;;;;;GASG;AACH,MAAM,OAAO,0BAA0B;IACnC,YAA6B,UAAqB;QAArB,eAAU,GAAV,UAAU,CAAW;IAAG,CAAC;IAgEtD,gBAAgB,CAIZ,IAAY,EACZ,MAQC,EACD,OAAmC;QAEnC,oEAAoE;QACpE,MAAM,SAAS,GAAkB,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAClF,IAAI,SAAS,CAAC,WAAW,KAAK,WAAW,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,6DAA6D,CAAC,CAAC;QAC3H,CAAC;QAED,2DAA2D;QAC3D,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAA0C,CAAC;QAC1E,OAAO,iBAAiB,CAAC,qBAAqB,CAC1C,IAAI,EACJ,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,WAAW,EAClB,SAAS,EACT,MAAM,CAAC,KAAK,EACZ,OAAwD,CAC3D,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts deleted file mode 100644 index 185e0ba..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Experimental server task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import type { Server } from '../../server/index.js'; -import type { RequestOptions } from '../../shared/protocol.js'; -import type { ResponseMessage } from '../../shared/responseMessage.js'; -import type { AnySchema, SchemaOutput } from '../../server/zod-compat.js'; -import type { ServerRequest, Notification, Request, Result, GetTaskResult, ListTasksResult, CancelTaskResult } from '../../types.js'; -/** - * Experimental task features for low-level MCP servers. - * - * Access via `server.experimental.tasks`: - * ```typescript - * const stream = server.experimental.tasks.requestStream(request, schema, options); - * ``` - * - * For high-level server usage with task-based tools, use `McpServer.experimental.tasks` instead. - * - * @experimental - */ -export declare class ExperimentalServerTasks { - private readonly _server; - constructor(_server: Server); - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request: ServerRequest | RequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - getTask(taskId: string, options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - getTaskResult(taskId: string, resultSchema?: T, options?: RequestOptions): Promise>; - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - listTasks(cursor?: string, options?: RequestOptions): Promise; - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - cancelTask(taskId: string, options?: RequestOptions): Promise; -} -//# sourceMappingURL=server.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map deleted file mode 100644 index a168185..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAErI;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB,CAChC,QAAQ,SAAS,OAAO,GAAG,OAAO,EAClC,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,OAAO,SAAS,MAAM,GAAG,MAAM;IAEnB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC;IAE9E;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,CAAC,SAAS,SAAS,EAC7B,OAAO,EAAE,aAAa,GAAG,QAAQ,EACjC,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE,cAAc,GACzB,cAAc,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAY/D;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAK/E;;;;;;;;;OASG;IACG,aAAa,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAY9H;;;;;;;;OAQG;IACG,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAQpF;;;;;;;OAOG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAOxF"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js deleted file mode 100644 index 3b429bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Experimental server task features for MCP SDK. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -/** - * Experimental task features for low-level MCP servers. - * - * Access via `server.experimental.tasks`: - * ```typescript - * const stream = server.experimental.tasks.requestStream(request, schema, options); - * ``` - * - * For high-level server usage with task-based tools, use `McpServer.experimental.tasks` instead. - * - * @experimental - */ -export class ExperimentalServerTasks { - constructor(_server) { - this._server = _server; - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * This method provides streaming access to request processing, allowing you to - * observe intermediate task status updates for task-augmented requests. - * - * @param request - The request to send - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options (timeout, signal, task creation params, etc.) - * @returns AsyncGenerator that yields ResponseMessage objects - * - * @experimental - */ - requestStream(request, resultSchema, options) { - return this._server.requestStream(request, resultSchema, options); - } - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * @returns The task status - * - * @experimental - */ - async getTask(taskId, options) { - return this._server.getTask({ taskId }, options); - } - /** - * Retrieves the result of a completed task. - * - * @param taskId - The task identifier - * @param resultSchema - Zod schema for validating the result - * @param options - Optional request options - * @returns The task result - * - * @experimental - */ - async getTaskResult(taskId, resultSchema, options) { - return this._server.getTaskResult({ taskId }, resultSchema, options); - } - /** - * Lists tasks with optional pagination. - * - * @param cursor - Optional pagination cursor - * @param options - Optional request options - * @returns List of tasks with optional next cursor - * - * @experimental - */ - async listTasks(cursor, options) { - return this._server.listTasks(cursor ? { cursor } : undefined, options); - } - /** - * Cancels a running task. - * - * @param taskId - The task identifier - * @param options - Optional request options - * - * @experimental - */ - async cancelTask(taskId, options) { - return this._server.cancelTask({ taskId }, options); - } -} -//# sourceMappingURL=server.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map deleted file mode 100644 index 4395efd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,uBAAuB;IAKhC,YAA6B,OAAiD;QAAjD,YAAO,GAAP,OAAO,CAA0C;IAAG,CAAC;IAElF;;;;;;;;;;;;;OAaG;IACH,aAAa,CACT,OAAiC,EACjC,YAAe,EACf,OAAwB;QAUxB,OAAQ,IAAI,CAAC,OAA8C,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC9G,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAwB;QAElD,OAAQ,IAAI,CAAC,OAAwC,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CAAsB,MAAc,EAAE,YAAgB,EAAE,OAAwB;QAC/F,OACI,IAAI,CAAC,OAOR,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CAAC,MAAe,EAAE,OAAwB;QACrD,OACI,IAAI,CAAC,OAGR,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,OAAwB;QACrD,OACI,IAAI,CAAC,OAGR,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts deleted file mode 100644 index d30795e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * In-memory implementations of TaskStore and TaskMessageQueue. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import { Task, RequestId, Result, Request } from '../../../types.js'; -import { TaskStore, TaskMessageQueue, QueuedMessage, CreateTaskOptions } from '../interfaces.js'; -/** - * A simple in-memory implementation of TaskStore for demonstration purposes. - * - * This implementation stores all tasks in memory and provides automatic cleanup - * based on the ttl duration specified in the task creation parameters. - * - * Note: This is not suitable for production use as all data is lost on restart. - * For production, consider implementing TaskStore with a database or distributed cache. - * - * @experimental - */ -export declare class InMemoryTaskStore implements TaskStore { - private tasks; - private cleanupTimers; - /** - * Generates a unique task ID. - * Uses 16 bytes of random data encoded as hex (32 characters). - */ - private generateTaskId; - createTask(taskParams: CreateTaskOptions, requestId: RequestId, request: Request, _sessionId?: string): Promise; - getTask(taskId: string, _sessionId?: string): Promise; - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result, _sessionId?: string): Promise; - getTaskResult(taskId: string, _sessionId?: string): Promise; - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string, _sessionId?: string): Promise; - listTasks(cursor?: string, _sessionId?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; - /** - * Cleanup all timers (useful for testing or graceful shutdown) - */ - cleanup(): void; - /** - * Get all tasks (useful for debugging) - */ - getAllTasks(): Task[]; -} -/** - * A simple in-memory implementation of TaskMessageQueue for demonstration purposes. - * - * This implementation stores messages in memory, organized by task ID and optional session ID. - * Messages are stored in FIFO queues per task. - * - * Note: This is not suitable for production use in distributed systems. - * For production, consider implementing TaskMessageQueue with Redis or other distributed queues. - * - * @experimental - */ -export declare class InMemoryTaskMessageQueue implements TaskMessageQueue { - private queues; - /** - * Generates a queue key from taskId. - * SessionId is intentionally ignored because taskIds are globally unique - * and tasks need to be accessible across HTTP requests/sessions. - */ - private getQueueKey; - /** - * Gets or creates a queue for the given task and session. - */ - private getQueue; - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - enqueue(taskId: string, message: QueuedMessage, sessionId?: string, maxSize?: number): Promise; - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - dequeue(taskId: string, sessionId?: string): Promise; - /** - * Removes and returns all messages from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - dequeueAll(taskId: string, sessionId?: string): Promise; -} -//# sourceMappingURL=in-memory.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map deleted file mode 100644 index 1825e87..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory.d.ts","sourceRoot":"","sources":["../../../../../src/experimental/tasks/stores/in-memory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAc,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAU7G;;;;;;;;;;GAUG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IAC/C,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,aAAa,CAAoD;IAEzE;;;OAGG;IACH,OAAO,CAAC,cAAc;IAIhB,UAAU,CAAC,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CrH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAKlE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,QAAQ,EAAE,MAAM,EAAE,MA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/sdk/dist/esm/experimental/tasks/stores/in-memory.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js deleted file mode 100644 index 6458ec5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +++ /dev/null @@ -1,246 +0,0 @@ -/** - * In-memory implementations of TaskStore and TaskMessageQueue. - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ -import { isTerminal } from '../interfaces.js'; -import { randomBytes } from 'node:crypto'; -/** - * A simple in-memory implementation of TaskStore for demonstration purposes. - * - * This implementation stores all tasks in memory and provides automatic cleanup - * based on the ttl duration specified in the task creation parameters. - * - * Note: This is not suitable for production use as all data is lost on restart. - * For production, consider implementing TaskStore with a database or distributed cache. - * - * @experimental - */ -export class InMemoryTaskStore { - constructor() { - this.tasks = new Map(); - this.cleanupTimers = new Map(); - } - /** - * Generates a unique task ID. - * Uses 16 bytes of random data encoded as hex (32 characters). - */ - generateTaskId() { - return randomBytes(16).toString('hex'); - } - async createTask(taskParams, requestId, request, _sessionId) { - // Generate a unique task ID - const taskId = this.generateTaskId(); - // Ensure uniqueness - if (this.tasks.has(taskId)) { - throw new Error(`Task with ID ${taskId} already exists`); - } - const actualTtl = taskParams.ttl ?? null; - // Create task with generated ID and timestamps - const createdAt = new Date().toISOString(); - const task = { - taskId, - status: 'working', - ttl: actualTtl, - createdAt, - lastUpdatedAt: createdAt, - pollInterval: taskParams.pollInterval ?? 1000 - }; - this.tasks.set(taskId, { - task, - request, - requestId - }); - // Schedule cleanup if ttl is specified - // Cleanup occurs regardless of task status - if (actualTtl) { - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, actualTtl); - this.cleanupTimers.set(taskId, timer); - } - return task; - } - async getTask(taskId, _sessionId) { - const stored = this.tasks.get(taskId); - return stored ? { ...stored.task } : null; - } - async storeTaskResult(taskId, status, result, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - // Don't allow storing results for tasks already in terminal state - if (isTerminal(stored.task.status)) { - throw new Error(`Cannot store result for task ${taskId} in terminal status '${stored.task.status}'. Task results can only be stored once.`); - } - stored.result = result; - stored.task.status = status; - stored.task.lastUpdatedAt = new Date().toISOString(); - // Reset cleanup timer to start from now (if ttl is set) - if (stored.task.ttl) { - const existingTimer = this.cleanupTimers.get(taskId); - if (existingTimer) { - clearTimeout(existingTimer); - } - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, stored.task.ttl); - this.cleanupTimers.set(taskId, timer); - } - } - async getTaskResult(taskId, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - if (!stored.result) { - throw new Error(`Task ${taskId} has no result stored`); - } - return stored.result; - } - async updateTaskStatus(taskId, status, statusMessage, _sessionId) { - const stored = this.tasks.get(taskId); - if (!stored) { - throw new Error(`Task with ID ${taskId} not found`); - } - // Don't allow transitions from terminal states - if (isTerminal(stored.task.status)) { - throw new Error(`Cannot update task ${taskId} from terminal status '${stored.task.status}' to '${status}'. Terminal states (completed, failed, cancelled) cannot transition to other states.`); - } - stored.task.status = status; - if (statusMessage) { - stored.task.statusMessage = statusMessage; - } - stored.task.lastUpdatedAt = new Date().toISOString(); - // If task is in a terminal state and has ttl, start cleanup timer - if (isTerminal(status) && stored.task.ttl) { - const existingTimer = this.cleanupTimers.get(taskId); - if (existingTimer) { - clearTimeout(existingTimer); - } - const timer = setTimeout(() => { - this.tasks.delete(taskId); - this.cleanupTimers.delete(taskId); - }, stored.task.ttl); - this.cleanupTimers.set(taskId, timer); - } - } - async listTasks(cursor, _sessionId) { - const PAGE_SIZE = 10; - const allTaskIds = Array.from(this.tasks.keys()); - let startIndex = 0; - if (cursor) { - const cursorIndex = allTaskIds.indexOf(cursor); - if (cursorIndex >= 0) { - startIndex = cursorIndex + 1; - } - else { - // Invalid cursor - throw error - throw new Error(`Invalid cursor: ${cursor}`); - } - } - const pageTaskIds = allTaskIds.slice(startIndex, startIndex + PAGE_SIZE); - const tasks = pageTaskIds.map(taskId => { - const stored = this.tasks.get(taskId); - return { ...stored.task }; - }); - const nextCursor = startIndex + PAGE_SIZE < allTaskIds.length ? pageTaskIds[pageTaskIds.length - 1] : undefined; - return { tasks, nextCursor }; - } - /** - * Cleanup all timers (useful for testing or graceful shutdown) - */ - cleanup() { - for (const timer of this.cleanupTimers.values()) { - clearTimeout(timer); - } - this.cleanupTimers.clear(); - this.tasks.clear(); - } - /** - * Get all tasks (useful for debugging) - */ - getAllTasks() { - return Array.from(this.tasks.values()).map(stored => ({ ...stored.task })); - } -} -/** - * A simple in-memory implementation of TaskMessageQueue for demonstration purposes. - * - * This implementation stores messages in memory, organized by task ID and optional session ID. - * Messages are stored in FIFO queues per task. - * - * Note: This is not suitable for production use in distributed systems. - * For production, consider implementing TaskMessageQueue with Redis or other distributed queues. - * - * @experimental - */ -export class InMemoryTaskMessageQueue { - constructor() { - this.queues = new Map(); - } - /** - * Generates a queue key from taskId. - * SessionId is intentionally ignored because taskIds are globally unique - * and tasks need to be accessible across HTTP requests/sessions. - */ - getQueueKey(taskId, _sessionId) { - return taskId; - } - /** - * Gets or creates a queue for the given task and session. - */ - getQueue(taskId, sessionId) { - const key = this.getQueueKey(taskId, sessionId); - let queue = this.queues.get(key); - if (!queue) { - queue = []; - this.queues.set(key, queue); - } - return queue; - } - /** - * Adds a message to the end of the queue for a specific task. - * Atomically checks queue size and throws if maxSize would be exceeded. - * @param taskId The task identifier - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @param maxSize Optional maximum queue size - if specified and queue is full, throws an error - * @throws Error if maxSize is specified and would be exceeded - */ - async enqueue(taskId, message, sessionId, maxSize) { - const queue = this.getQueue(taskId, sessionId); - // Atomically check size and enqueue - if (maxSize !== undefined && queue.length >= maxSize) { - throw new Error(`Task message queue overflow: queue size (${queue.length}) exceeds maximum (${maxSize})`); - } - queue.push(message); - } - /** - * Removes and returns the first message from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns The first message, or undefined if the queue is empty - */ - async dequeue(taskId, sessionId) { - const queue = this.getQueue(taskId, sessionId); - return queue.shift(); - } - /** - * Removes and returns all messages from the queue for a specific task. - * @param taskId The task identifier - * @param sessionId Optional session ID for binding the query to a specific session - * @returns Array of all messages that were in the queue - */ - async dequeueAll(taskId, sessionId) { - const key = this.getQueueKey(taskId, sessionId); - const queue = this.queues.get(key) ?? []; - this.queues.delete(key); - return queue; - } -} -//# sourceMappingURL=in-memory.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map deleted file mode 100644 index 12d7545..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"in-memory.js","sourceRoot":"","sources":["../../../../../src/experimental/tasks/stores/in-memory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAa,UAAU,EAAsD,MAAM,kBAAkB,CAAC;AAC7G,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QACY,UAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;QACtC,kBAAa,GAAG,IAAI,GAAG,EAAyC,CAAC;IAsL7E,CAAC;IApLG;;;OAGG;IACK,cAAc;QAClB,OAAO,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,UAA6B,EAAE,SAAoB,EAAE,OAAgB,EAAE,UAAmB;QACvG,4BAA4B;QAC5B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T,KAAK,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAsB,EAAE,SAAkB,EAAE,OAAgB;QACtF,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAE/C,oCAAoC;QACpC,IAAI,OAAO,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,4CAA4C,KAAK,CAAC,MAAM,sBAAsB,OAAO,GAAG,CAAC,CAAC;QAC9G,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,SAAkB;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC/C,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,SAAkB;QAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts deleted file mode 100644 index 6022e19..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Re-exports of task-related types from the MCP protocol spec. - * WARNING: These APIs are experimental and may change without notice. - * - * These types are defined in types.ts (matching the protocol spec) and - * re-exported here for convenience when working with experimental task features. - */ -export { TaskCreationParamsSchema, RelatedTaskMetadataSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema } from '../../types.js'; -export type { Task, TaskCreationParams, RelatedTaskMetadata, CreateTaskResult, TaskStatusNotificationParams, TaskStatusNotification, GetTaskRequest, GetTaskResult, GetTaskPayloadRequest, ListTasksRequest, ListTasksResult, CancelTaskRequest, CancelTaskResult } from '../../types.js'; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map deleted file mode 100644 index f7b9ead..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACR,IAAI,EACJ,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js deleted file mode 100644 index 2162c09..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Re-exports of task-related types from the MCP protocol spec. - * WARNING: These APIs are experimental and may change without notice. - * - * These types are defined in types.ts (matching the protocol spec) and - * re-exported here for convenience when working with experimental task features. - */ -// Task schemas (Zod) -export { TaskCreationParamsSchema, RelatedTaskMetadataSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema } from '../../types.js'; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map deleted file mode 100644 index f52e75e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/experimental/tasks/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,qBAAqB;AACrB,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts deleted file mode 100644 index 32a931a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Transport } from './shared/transport.js'; -import { JSONRPCMessage, RequestId } from './types.js'; -import { AuthInfo } from './server/auth/types.js'; -/** - * In-memory transport for creating clients and servers that talk to each other within the same process. - */ -export declare class InMemoryTransport implements Transport { - private _otherTransport?; - private _messageQueue; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: { - authInfo?: AuthInfo; - }) => void; - sessionId?: string; - /** - * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. - */ - static createLinkedPair(): [InMemoryTransport, InMemoryTransport]; - start(): Promise; - close(): Promise; - /** - * Sends a message with optional auth info. - * This is useful for testing authentication scenarios. - */ - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - authInfo?: AuthInfo; - }): Promise; -} -//# sourceMappingURL=inMemory.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map deleted file mode 100644 index 46bc74b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemory.d.ts","sourceRoot":"","sources":["../../src/inMemory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAOlD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IAC/C,OAAO,CAAC,eAAe,CAAC,CAAoB;IAC5C,OAAO,CAAC,aAAa,CAAuB;IAE5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,gBAAgB,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAQ3D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAO5B;;;OAGG;IACG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAWtH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js deleted file mode 100644 index 62d86a2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * In-memory transport for creating clients and servers that talk to each other within the same process. - */ -export class InMemoryTransport { - constructor() { - this._messageQueue = []; - } - /** - * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. - */ - static createLinkedPair() { - const clientTransport = new InMemoryTransport(); - const serverTransport = new InMemoryTransport(); - clientTransport._otherTransport = serverTransport; - serverTransport._otherTransport = clientTransport; - return [clientTransport, serverTransport]; - } - async start() { - // Process any messages that were queued before start was called - while (this._messageQueue.length > 0) { - const queuedMessage = this._messageQueue.shift(); - this.onmessage?.(queuedMessage.message, queuedMessage.extra); - } - } - async close() { - const other = this._otherTransport; - this._otherTransport = undefined; - await other?.close(); - this.onclose?.(); - } - /** - * Sends a message with optional auth info. - * This is useful for testing authentication scenarios. - */ - async send(message, options) { - if (!this._otherTransport) { - throw new Error('Not connected'); - } - if (this._otherTransport.onmessage) { - this._otherTransport.onmessage(message, { authInfo: options?.authInfo }); - } - else { - this._otherTransport._messageQueue.push({ message, extra: { authInfo: options?.authInfo } }); - } - } -} -//# sourceMappingURL=inMemory.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map deleted file mode 100644 index 60ededd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inMemory.js","sourceRoot":"","sources":["../../src/inMemory.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QAEY,kBAAa,GAAoB,EAAE,CAAC;IAgDhD,CAAC;IAzCG;;OAEG;IACH,MAAM,CAAC,gBAAgB;QACnB,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,eAAe,CAAC,eAAe,GAAG,eAAe,CAAC;QAClD,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,KAAK;QACP,gEAAgE;QAChE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAG,CAAC;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,MAAM,KAAK,EAAE,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,OAAuB,EAAE,OAA+D;QAC/F,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;YACjC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;QACjG,CAAC;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json deleted file mode 100644 index 6990891..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type": "module"} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts deleted file mode 100644 index be6899a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { OAuthClientInformationFull } from '../../shared/auth.js'; -/** - * Stores information about registered OAuth clients for this server. - */ -export interface OAuthRegisteredClientsStore { - /** - * Returns information about a registered client, based on its ID. - */ - getClient(clientId: string): OAuthClientInformationFull | undefined | Promise; - /** - * Registers a new client with the server. The client ID and secret will be automatically generated by the library. A modified version of the client information can be returned to reflect specific values enforced by the server. - * - * NOTE: Implementations should NOT delete expired client secrets in-place. Auth middleware provided by this library will automatically check the `client_secret_expires_at` field and reject requests with expired secrets. Any custom logic for authenticating clients should check the `client_secret_expires_at` field as well. - * - * If unimplemented, dynamic client registration is unsupported. - */ - registerClient?(client: Omit): OAuthClientInformationFull | Promise; -} -//# sourceMappingURL=clients.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map deleted file mode 100644 index ab3851d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/clients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,0BAA0B,GAAG,SAAS,GAAG,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IAEtH;;;;;;OAMG;IACH,cAAc,CAAC,CACX,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,WAAW,GAAG,qBAAqB,CAAC,GAC9E,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACvE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js deleted file mode 100644 index 6181a57..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=clients.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map deleted file mode 100644 index 0210104..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/server/auth/clients.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts deleted file mode 100644 index 7fddf95..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import { OAuthErrorResponse } from '../../shared/auth.js'; -/** - * Base class for all OAuth errors - */ -export declare class OAuthError extends Error { - readonly errorUri?: string | undefined; - static errorCode: string; - constructor(message: string, errorUri?: string | undefined); - /** - * Converts the error to a standard OAuth error response object - */ - toResponseObject(): OAuthErrorResponse; - get errorCode(): string; -} -/** - * Invalid request error - The request is missing a required parameter, - * includes an invalid parameter value, includes a parameter more than once, - * or is otherwise malformed. - */ -export declare class InvalidRequestError extends OAuthError { - static errorCode: string; -} -/** - * Invalid client error - Client authentication failed (e.g., unknown client, no client - * authentication included, or unsupported authentication method). - */ -export declare class InvalidClientError extends OAuthError { - static errorCode: string; -} -/** - * Invalid grant error - The provided authorization grant or refresh token is - * invalid, expired, revoked, does not match the redirection URI used in the - * authorization request, or was issued to another client. - */ -export declare class InvalidGrantError extends OAuthError { - static errorCode: string; -} -/** - * Unauthorized client error - The authenticated client is not authorized to use - * this authorization grant type. - */ -export declare class UnauthorizedClientError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported grant type error - The authorization grant type is not supported - * by the authorization server. - */ -export declare class UnsupportedGrantTypeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid scope error - The requested scope is invalid, unknown, malformed, or - * exceeds the scope granted by the resource owner. - */ -export declare class InvalidScopeError extends OAuthError { - static errorCode: string; -} -/** - * Access denied error - The resource owner or authorization server denied the request. - */ -export declare class AccessDeniedError extends OAuthError { - static errorCode: string; -} -/** - * Server error - The authorization server encountered an unexpected condition - * that prevented it from fulfilling the request. - */ -export declare class ServerError extends OAuthError { - static errorCode: string; -} -/** - * Temporarily unavailable error - The authorization server is currently unable to - * handle the request due to a temporary overloading or maintenance of the server. - */ -export declare class TemporarilyUnavailableError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported response type error - The authorization server does not support - * obtaining an authorization code using this method. - */ -export declare class UnsupportedResponseTypeError extends OAuthError { - static errorCode: string; -} -/** - * Unsupported token type error - The authorization server does not support - * the requested token type. - */ -export declare class UnsupportedTokenTypeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid token error - The access token provided is expired, revoked, malformed, - * or invalid for other reasons. - */ -export declare class InvalidTokenError extends OAuthError { - static errorCode: string; -} -/** - * Method not allowed error - The HTTP method used is not allowed for this endpoint. - * (Custom, non-standard error) - */ -export declare class MethodNotAllowedError extends OAuthError { - static errorCode: string; -} -/** - * Too many requests error - Rate limit exceeded. - * (Custom, non-standard error based on RFC 6585) - */ -export declare class TooManyRequestsError extends OAuthError { - static errorCode: string; -} -/** - * Invalid client metadata error - The client metadata is invalid. - * (Custom error for dynamic client registration - RFC 7591) - */ -export declare class InvalidClientMetadataError extends OAuthError { - static errorCode: string; -} -/** - * Insufficient scope error - The request requires higher privileges than provided by the access token. - */ -export declare class InsufficientScopeError extends OAuthError { - static errorCode: string; -} -/** - * Invalid target error - The requested resource is invalid, missing, unknown, or malformed. - * (Custom error for resource indicators - RFC 8707) - */ -export declare class InvalidTargetError extends OAuthError { - static errorCode: string; -} -/** - * A utility class for defining one-off error codes - */ -export declare class CustomOAuthError extends OAuthError { - private readonly customErrorCode; - constructor(customErrorCode: string, message: string, errorUri?: string); - get errorCode(): string; -} -/** - * A full list of all OAuthErrors, enabling parsing from error responses - */ -export declare const OAUTH_ERRORS: { - readonly [x: string]: typeof InvalidRequestError; -}; -//# sourceMappingURL=errors.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map deleted file mode 100644 index 5c0e992..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;aAKb,QAAQ,CAAC,EAAE,MAAM;IAJrC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC;gBAGrB,OAAO,EAAE,MAAM,EACC,QAAQ,CAAC,EAAE,MAAM,YAAA;IAMrC;;OAEG;IACH,gBAAgB,IAAI,kBAAkB;IAatC,IAAI,SAAS,IAAI,M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a,0BAA2B,SAAQ,UAAU;IACtD,MAAM,CAAC,SAAS,SAA6B;CAChD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;IAClD,MAAM,CAAC,SAAS,SAAwB;CAC3C;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAC9C,MAAM,CAAC,SAAS,SAAoB;CACvC;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAExC,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,MAAM,EACxC,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM;IAKrB,IAAI,SAAS,IAAI,MAAM,CAEtB;CACJ;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;CAkBf,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js deleted file mode 100644 index 7106ab9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Base class for all OAuth errors - */ -export class OAuthError extends Error { - constructor(message, errorUri) { - super(message); - this.errorUri = errorUri; - this.name = this.constructor.name; - } - /** - * Converts the error to a standard OAuth error response object - */ - toResponseObject() { - const response = { - error: this.errorCode, - error_description: this.message - }; - if (this.errorUri) { - response.error_uri = this.errorUri; - } - return response; - } - get errorCode() { - return this.constructor.errorCode; - } -} -/** - * Invalid request error - The request is missing a required parameter, - * includes an invalid parameter value, includes a parameter more than once, - * or is otherwise malformed. - */ -export class InvalidRequestError extends OAuthError { -} -InvalidRequestError.errorCode = 'invalid_request'; -/** - * Invalid client error - Client authentication failed (e.g., unknown client, no client - * authentication included, or unsupported authentication method). - */ -export class InvalidClientError extends OAuthError { -} -InvalidClientError.errorCode = 'invalid_client'; -/** - * Invalid grant error - The provided authorization grant or refresh token is - * invalid, expired, revoked, does not match the redirection URI used in the - * authorization request, or was issued to another client. - */ -export class InvalidGrantError extends OAuthError { -} -InvalidGrantError.errorCode = 'invalid_grant'; -/** - * Unauthorized client error - The authenticated client is not authorized to use - * this authorization grant type. - */ -export class UnauthorizedClientError extends OAuthError { -} -UnauthorizedClientError.errorCode = 'unauthorized_client'; -/** - * Unsupported grant type error - The authorization grant type is not supported - * by the authorization server. - */ -export class UnsupportedGrantTypeError extends OAuthError { -} -UnsupportedGrantTypeError.errorCode = 'unsupported_grant_type'; -/** - * Invalid scope error - The requested scope is invalid, unknown, malformed, or - * exceeds the scope granted by the resource owner. - */ -export class InvalidScopeError extends OAuthError { -} -InvalidScopeError.errorCode = 'invalid_scope'; -/** - * Access denied error - The resource owner or authorization server denied the request. - */ -export class AccessDeniedError extends OAuthError { -} -AccessDeniedError.errorCode = 'access_denied'; -/** - * Server error - The authorization server encountered an unexpected condition - * that prevented it from fulfilling the request. - */ -export class ServerError extends OAuthError { -} -ServerError.errorCode = 'server_error'; -/** - * Temporarily unavailable error - The authorization server is currently unable to - * handle the request due to a temporary overloading or maintenance of the server. - */ -export class TemporarilyUnavailableError extends OAuthError { -} -TemporarilyUnavailableError.errorCode = 'temporarily_unavailable'; -/** - * Unsupported response type error - The authorization server does not support - * obtaining an authorization code using this method. - */ -export class UnsupportedResponseTypeError extends OAuthError { -} -UnsupportedResponseTypeError.errorCode = 'unsupported_response_type'; -/** - * Unsupported token type error - The authorization server does not support - * the requested token type. - */ -export class UnsupportedTokenTypeError extends OAuthError { -} -UnsupportedTokenTypeError.errorCode = 'unsupported_token_type'; -/** - * Invalid token error - The access token provided is expired, revoked, malformed, - * or invalid for other reasons. - */ -export class InvalidTokenError extends OAuthError { -} -InvalidTokenError.errorCode = 'invalid_token'; -/** - * Method not allowed error - The HTTP method used is not allowed for this endpoint. - * (Custom, non-standard error) - */ -export class MethodNotAllowedError extends OAuthError { -} -MethodNotAllowedError.errorCode = 'method_not_allowed'; -/** - * Too many requests error - Rate limit exceeded. - * (Custom, non-standard error based on RFC 6585) - */ -export class TooManyRequestsError extends OAuthError { -} -TooManyRequestsError.errorCode = 'too_many_requests'; -/** - * Invalid client metadata error - The client metadata is invalid. - * (Custom error for dynamic client registration - RFC 7591) - */ -export class InvalidClientMetadataError extends OAuthError { -} -InvalidClientMetadataError.errorCode = 'invalid_client_metadata'; -/** - * Insufficient scope error - The request requires higher privileges than provided by the access token. - */ -export class InsufficientScopeError extends OAuthError { -} -InsufficientScopeError.errorCode = 'insufficient_scope'; -/** - * Invalid target error - The requested resource is invalid, missing, unknown, or malformed. - * (Custom error for resource indicators - RFC 8707) - */ -export class InvalidTargetError extends OAuthError { -} -InvalidTargetError.errorCode = 'invalid_target'; -/** - * A utility class for defining one-off error codes - */ -export class CustomOAuthError extends OAuthError { - constructor(customErrorCode, message, errorUri) { - super(message, errorUri); - this.customErrorCode = customErrorCode; - } - get errorCode() { - return this.customErrorCode; - } -} -/** - * A full list of all OAuthErrors, enabling parsing from error responses - */ -export const OAUTH_ERRORS = { - [InvalidRequestError.errorCode]: InvalidRequestError, - [InvalidClientError.errorCode]: InvalidClientError, - [InvalidGrantError.errorCode]: InvalidGrantError, - [UnauthorizedClientError.errorCode]: UnauthorizedClientError, - [UnsupportedGrantTypeError.errorCode]: UnsupportedGrantTypeError, - [InvalidScopeError.errorCode]: InvalidScopeError, - [AccessDeniedError.errorCode]: AccessDeniedError, - [ServerError.errorCode]: ServerError, - [TemporarilyUnavailableError.errorCode]: TemporarilyUnavailableError, - [UnsupportedResponseTypeError.errorCode]: UnsupportedResponseTypeError, - [UnsupportedTokenTypeError.errorCode]: UnsupportedTokenTypeError, - [InvalidTokenError.errorCode]: InvalidTokenError, - [MethodNotAllowedError.errorCode]: MethodNotAllowedError, - [TooManyRequestsError.errorCode]: TooManyRequestsError, - [InvalidClientMetadataError.errorCode]: InvalidClientMetadataError, - [InsufficientScopeError.errorCode]: InsufficientScopeError, - [InvalidTargetError.errorCode]: InvalidTargetError -}; -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map deleted file mode 100644 index 1461367..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/server/auth/errors.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IAGjC,YACI,OAAe,EACC,QAAiB;QAEjC,KAAK,CAAC,OAAO,CAAC,CAAC;QAFC,aAAQ,GAAR,QAAQ,CAAS;QAGjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,gBAAgB;QACZ,MAAM,QAAQ,GAAuB;YACjC,KAAK,EAAE,IAAI,CAAC,SAAS;YACrB,iBAAiB,EAAE,IAAI,CAAC,OAAO;SAClC,CAAC;QAEF,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;QACvC,CAAC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,IAAI,SAAS;QACT,OAAQ,IAAI,CAAC,WAAiC,CAAC,SAAS,CAAC;IAC7D,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAAU;;AACxC,6BAAS,GAAG,iBAAiB,CAAC;AAGzC;;;GAGG;AACH,MAAM,OAAO,kBAAmB,SAAQ,UAAU;;AACvC,4BAAS,GAAG,gBAAgB,CAAC;AAGxC;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,UAAU;;AACtC,2BAAS,GAAG,eAAe,CAAC;AAGvC;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,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ist/esm/server/auth/handlers/authorize.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts deleted file mode 100644 index 38e9829..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthServerProvider } from '../provider.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type AuthorizationHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the authorization endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function authorizationHandler({ provider, rateLimit: rateLimitConfig }: AuthorizationHandlerOptions): RequestHandler; -//# sourceMappingURL=authorize.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map deleted file mode 100644 index b067988..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/authorize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,2BAA2B,GAAG;IACtC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAqBF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,2BAA2B,GAAG,cAAc,CAgH1H"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js deleted file mode 100644 index e29f094..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +++ /dev/null @@ -1,138 +0,0 @@ -import * as z from 'zod/v4'; -import express from 'express'; -import { rateLimit } from 'express-rate-limit'; -import { allowedMethods } from '../middleware/allowedMethods.js'; -import { InvalidRequestError, InvalidClientError, ServerError, TooManyRequestsError, OAuthError } from '../errors.js'; -// Parameters that must be validated in order to issue redirects. -const ClientAuthorizationParamsSchema = z.object({ - client_id: z.string(), - redirect_uri: z - .string() - .optional() - .refine(value => value === undefined || URL.canParse(value), { message: 'redirect_uri must be a valid URL' }) -}); -// Parameters that must be validated for a successful authorization request. Failure can be reported to the redirect URI. -const RequestAuthorizationParamsSchema = z.object({ - response_type: z.literal('code'), - code_challenge: z.string(), - code_challenge_method: z.literal('S256'), - scope: z.string().optional(), - state: z.string().optional(), - resource: z.string().url().optional() -}); -export function authorizationHandler({ provider, rateLimit: rateLimitConfig }) { - // Create a router to apply middleware - const router = express.Router(); - router.use(allowedMethods(['GET', 'POST'])); - router.use(express.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use(rateLimit({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 100, // 100 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new TooManyRequestsError('You have exceeded the rate limit for authorization requests').toResponseObject(), - ...rateLimitConfig - })); - } - router.all('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - // In the authorization flow, errors are split into two categories: - // 1. Pre-redirect errors (direct response with 400) - // 2. Post-redirect errors (redirect with error parameters) - // Phase 1: Validate client_id and redirect_uri. Any errors here must be direct responses. - let client_id, redirect_uri, client; - try { - const result = ClientAuthorizationParamsSchema.safeParse(req.method === 'POST' ? req.body : req.query); - if (!result.success) { - throw new InvalidRequestError(result.error.message); - } - client_id = result.data.client_id; - redirect_uri = result.data.redirect_uri; - client = await provider.clientsStore.getClient(client_id); - if (!client) { - throw new InvalidClientError('Invalid client_id'); - } - if (redirect_uri !== undefined) { - if (!client.redirect_uris.includes(redirect_uri)) { - throw new InvalidRequestError('Unregistered redirect_uri'); - } - } - else if (client.redirect_uris.length === 1) { - redirect_uri = client.redirect_uris[0]; - } - else { - throw new InvalidRequestError('redirect_uri must be specified when client has multiple registered URIs'); - } - } - catch (error) { - // Pre-redirect errors - return direct response - // - // These don't need to be JSON encoded, as they'll be displayed in a user - // agent, but OTOH they all represent exceptional situations (arguably, - // "programmer error"), so presenting a nice HTML page doesn't help the - // user anyway. - if (error instanceof OAuthError) { - const status = error instanceof ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - return; - } - // Phase 2: Validate other parameters. Any errors here should go into redirect responses. - let state; - try { - // Parse and validate authorization parameters - const parseResult = RequestAuthorizationParamsSchema.safeParse(req.method === 'POST' ? req.body : req.query); - if (!parseResult.success) { - throw new InvalidRequestError(parseResult.error.message); - } - const { scope, code_challenge, resource } = parseResult.data; - state = parseResult.data.state; - // Validate scopes - let requestedScopes = []; - if (scope !== undefined) { - requestedScopes = scope.split(' '); - } - // All validation passed, proceed with authorization - await provider.authorize(client, { - state, - scopes: requestedScopes, - redirectUri: redirect_uri, - codeChallenge: code_challenge, - resource: resource ? new URL(resource) : undefined - }, res); - } - catch (error) { - // Post-redirect errors - redirect with error parameters - if (error instanceof OAuthError) { - res.redirect(302, createErrorRedirect(redirect_uri, error, state)); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.redirect(302, createErrorRedirect(redirect_uri, serverError, state)); - } - } - }); - return router; -} -/** - * Helper function to create redirect URL with error parameters - */ -function createErrorRedirect(redirectUri, error, state) { - const errorUrl = new URL(redirectUri); - errorUrl.searchParams.set('error', error.errorCode); - errorUrl.searchParams.set('error_description', error.message); - if (error.errorUri) { - errorUrl.searchParams.set('error_uri', error.errorUri); - } - if (state) { - errorUrl.searchParams.set('state', state); - } - return errorUrl.href; -} -//# sourceMappingURL=authorize.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map deleted file mode 100644 index 6911f9a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"authorize.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/authorize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAE,SAAS,EAA+B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAWtH,iEAAiE;AACjE,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;CACpH,CAAC,CAAC;AAEH,yHAAyH;AACzH,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C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AE,KAAK,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts deleted file mode 100644 index 4d03286..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthMetadata, OAuthProtectedResourceMetadata } from '../../../shared/auth.js'; -export declare function metadataHandler(metadata: OAuthMetadata | OAuthProtectedResourceMetadata): RequestHandler; -//# sourceMappingURL=metadata.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map deleted file mode 100644 index 55e3a50..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/metadata.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAIxF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,8BAA8B,GAAG,cAAc,CAaxG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js deleted file mode 100644 index 94dadb7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +++ /dev/null @@ -1,15 +0,0 @@ -import express from 'express'; -import cors from 'cors'; -import { allowedMethods } from '../middleware/allowedMethods.js'; -export function metadataHandler(metadata) { - // Nested router so we can configure middleware and restrict HTTP method - const router = express.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use(cors()); - router.use(allowedMethods(['GET', 'OPTIONS'])); - router.get('/', (req, res) => { - res.status(200).json(metadata); - }); - return router; -} -//# sourceMappingURL=metadata.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map deleted file mode 100644 index 625ed94..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,OAA2B,MAAM,SAAS,CAAC;AAElD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,MAAM,UAAU,eAAe,CAAC,QAAwD;IACpF,wEAAwE;IACxE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,kFAAkF;IAClF,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAEnB,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACzB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts deleted file mode 100644 index e9add28..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type ClientRegistrationHandlerOptions = { - /** - * A store used to save information about dynamically registered OAuth clients. - */ - clientsStore: OAuthRegisteredClientsStore; - /** - * The number of seconds after which to expire issued client secrets, or 0 to prevent expiration of client secrets (not recommended). - * - * If not set, defaults to 30 days. - */ - clientSecretExpirySeconds?: number; - /** - * Rate limiting configuration for the client registration endpoint. - * Set to false to disable rate limiting for this endpoint. - * Registration endpoints are particularly sensitive to abuse and should be rate limited. - */ - rateLimit?: Partial | false; - /** - * Whether to generate a client ID before calling the client registration endpoint. - * - * If not set, defaults to true. - */ - clientIdGeneration?: boolean; -}; -export declare function clientRegistrationHandler({ clientsStore, clientSecretExpirySeconds, rateLimit: rateLimitConfig, clientIdGeneration }: ClientRegistrationHandlerOptions): RequestHandler; -//# sourceMappingURL=register.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map deleted file mode 100644 index a38ebdb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/register.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIlD,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,gCAAgC,GAAG;IAC3C;;OAEG;IACH,YAAY,EAAE,2BAA2B,CAAC;IAE1C;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;IAE9C;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAIF,wBAAgB,yBAAyB,CAAC,EACtC,YAAY,EACZ,yBAAgE,EAChE,SAAS,EAAE,eAAe,EAC1B,kBAAyB,EAC5B,EAAE,gCAAgC,GAAG,cAAc,CA0EnD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js deleted file mode 100644 index ef6c44d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +++ /dev/null @@ -1,71 +0,0 @@ -import express from 'express'; -import { OAuthClientMetadataSchema } from '../../../shared/auth.js'; -import crypto from 'node:crypto'; -import cors from 'cors'; -import { rateLimit } from 'express-rate-limit'; -import { allowedMethods } from '../middleware/allowedMethods.js'; -import { InvalidClientMetadataError, ServerError, TooManyRequestsError, OAuthError } from '../errors.js'; -const DEFAULT_CLIENT_SECRET_EXPIRY_SECONDS = 30 * 24 * 60 * 60; // 30 days -export function clientRegistrationHandler({ clientsStore, clientSecretExpirySeconds = DEFAULT_CLIENT_SECRET_EXPIRY_SECONDS, rateLimit: rateLimitConfig, clientIdGeneration = true }) { - if (!clientsStore.registerClient) { - throw new Error('Client registration store does not support registering clients'); - } - // Nested router so we can configure middleware and restrict HTTP method - const router = express.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use(cors()); - router.use(allowedMethods(['POST'])); - router.use(express.json()); - // Apply rate limiting unless explicitly disabled - stricter limits for registration - if (rateLimitConfig !== false) { - router.use(rateLimit({ - windowMs: 60 * 60 * 1000, // 1 hour - max: 20, // 20 requests per hour - stricter as registration is sensitive - standardHeaders: true, - legacyHeaders: false, - message: new TooManyRequestsError('You have exceeded the rate limit for client registration requests').toResponseObject(), - ...rateLimitConfig - })); - } - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = OAuthClientMetadataSchema.safeParse(req.body); - if (!parseResult.success) { - throw new InvalidClientMetadataError(parseResult.error.message); - } - const clientMetadata = parseResult.data; - const isPublicClient = clientMetadata.token_endpoint_auth_method === 'none'; - // Generate client credentials - const clientSecret = isPublicClient ? undefined : crypto.randomBytes(32).toString('hex'); - const clientIdIssuedAt = Math.floor(Date.now() / 1000); - // Calculate client secret expiry time - const clientsDoExpire = clientSecretExpirySeconds > 0; - const secretExpiryTime = clientsDoExpire ? clientIdIssuedAt + clientSecretExpirySeconds : 0; - const clientSecretExpiresAt = isPublicClient ? undefined : secretExpiryTime; - let clientInfo = { - ...clientMetadata, - client_secret: clientSecret, - client_secret_expires_at: clientSecretExpiresAt - }; - if (clientIdGeneration) { - clientInfo.client_id = crypto.randomUUID(); - clientInfo.client_id_issued_at = clientIdIssuedAt; - } - clientInfo = await clientsStore.registerClient(clientInfo); - res.status(201).json(clientInfo); - } - catch (error) { - if (error instanceof OAuthError) { - const status = error instanceof ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=register.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map deleted file mode 100644 index 3f4c082..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/register.ts"],"names":[],"mappings":"AAAA,OAAO,OAA2B,MAAM,SAAS,CAAC;AAClD,OAAO,EAA8B,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAA+B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,WAAW,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA8BzG,MAAM,oCAAoC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU;AAE1E,MAAM,UAAU,yBAAyB,CAAC,EACtC,YAAY,EACZ,yBAAyB,GAAG,oCAAoC,EAChE,SAAS,EAAE,eAAe,EAC1B,kBAAkB,GAAG,IAAI,EACM;IAC/B,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;IACtF,CAAC;IAED,wEAAwE;IACxE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,kFAAkF;IAClF,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAEnB,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAE3B,oFAAoF;IACpF,IAAI,eAAe,KAAK,KAAK,EAAE,CAAC;QAC5B,MAAM,CAAC,GAAG,CACN,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Ac,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC;YAE5E,IAAI,UAAU,GAA2E;gBACrF,GAAG,cAAc;gBACjB,aAAa,EAAE,YAAY;gBAC3B,wBAAwB,EAAE,qBAAqB;aAClD,CAAC;YAEF,IAAI,kBAAkB,EAAE,CAAC;gBACrB,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;gBAC3C,UAAU,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;YACtD,CAAC;YAED,UAAU,GAAG,MAAM,YAAY,CAAC,cAAe,CAAC,UAAU,CAAC,CAAC;YAC5D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,UAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,KAAK,YAAY,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts deleted file mode 100644 index 2be32bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { OAuthServerProvider } from '../provider.js'; -import { RequestHandler } from 'express'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type RevocationHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the token revocation endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function revocationHandler({ provider, rateLimit: rateLimitConfig }: RevocationHandlerOptions): RequestHandler; -//# sourceMappingURL=revoke.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map deleted file mode 100644 index fb13cf1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"revoke.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/revoke.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIlD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,wBAAwB,GAAG,cAAc,CA4DpH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js deleted file mode 100644 index 68f5284..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +++ /dev/null @@ -1,59 +0,0 @@ -import express from 'express'; -import cors from 'cors'; -import { authenticateClient } from '../middleware/clientAuth.js'; -import { OAuthTokenRevocationRequestSchema } from '../../../shared/auth.js'; -import { rateLimit } from 'express-rate-limit'; -import { allowedMethods } from '../middleware/allowedMethods.js'; -import { InvalidRequestError, ServerError, TooManyRequestsError, OAuthError } from '../errors.js'; -export function revocationHandler({ provider, rateLimit: rateLimitConfig }) { - if (!provider.revokeToken) { - throw new Error('Auth provider does not support revoking tokens'); - } - // Nested router so we can configure middleware and restrict HTTP method - const router = express.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use(cors()); - router.use(allowedMethods(['POST'])); - router.use(express.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use(rateLimit({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 50, // 50 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new TooManyRequestsError('You have exceeded the rate limit for token revocation requests').toResponseObject(), - ...rateLimitConfig - })); - } - // Authenticate and extract client details - router.use(authenticateClient({ clientsStore: provider.clientsStore })); - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = OAuthTokenRevocationRequestSchema.safeParse(req.body); - if (!parseResult.success) { - throw new InvalidRequestError(parseResult.error.message); - } - const client = req.client; - if (!client) { - // This should never happen - throw new ServerError('Internal Server Error'); - } - await provider.revokeToken(client, parseResult.data); - res.status(200).json({}); - } - catch (error) { - if (error instanceof OAuthError) { - const status = error instanceof ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=revoke.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map deleted file mode 100644 index e1a0b1d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"revoke.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/revoke.ts"],"names":[],"mappings":"AACA,OAAO,OAA2B,MAAM,SAAS,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAA+B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAWlG,MAAM,UAAU,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAA4B;IAChG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACtE,CAAC;IAED,wEAAwE;IACxE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,kFAAkF;IAClF,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAEnB,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAEpD,iDAAiD;IACjD,IAAI,eAAe,KAAK,KAAK,EAAE,CA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MAAM,MAAM,GAAG,KAAK,YAAY,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts deleted file mode 100644 index 24d1c87..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthServerProvider } from '../provider.js'; -import { Options as RateLimitOptions } from 'express-rate-limit'; -export type TokenHandlerOptions = { - provider: OAuthServerProvider; - /** - * Rate limiting configuration for the token endpoint. - * Set to false to disable rate limiting for this endpoint. - */ - rateLimit?: Partial | false; -}; -export declare function tokenHandler({ provider, rateLimit: rateLimitConfig }: TokenHandlerOptions): RequestHandler; -//# sourceMappingURL=token.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map deleted file mode 100644 index 68189b0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/token.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,OAAO,EAAa,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAW5E,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;CACjD,CAAC;AAmBF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,mBAAmB,GAAG,cAAc,CA+G1G"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js deleted file mode 100644 index b413c49..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +++ /dev/null @@ -1,107 +0,0 @@ -import * as z from 'zod/v4'; -import express from 'express'; -import cors from 'cors'; -import { verifyChallenge } from 'pkce-challenge'; -import { authenticateClient } from '../middleware/clientAuth.js'; -import { rateLimit } from 'express-rate-limit'; -import { allowedMethods } from '../middleware/allowedMethods.js'; -import { InvalidRequestError, InvalidGrantError, UnsupportedGrantTypeError, ServerError, TooManyRequestsError, OAuthError } from '../errors.js'; -const TokenRequestSchema = z.object({ - grant_type: z.string() -}); -const AuthorizationCodeGrantSchema = z.object({ - code: z.string(), - code_verifier: z.string(), - redirect_uri: z.string().optional(), - resource: z.string().url().optional() -}); -const RefreshTokenGrantSchema = z.object({ - refresh_token: z.string(), - scope: z.string().optional(), - resource: z.string().url().optional() -}); -export function tokenHandler({ provider, rateLimit: rateLimitConfig }) { - // Nested router so we can configure middleware and restrict HTTP method - const router = express.Router(); - // Configure CORS to allow any origin, to make accessible to web-based MCP clients - router.use(cors()); - router.use(allowedMethods(['POST'])); - router.use(express.urlencoded({ extended: false })); - // Apply rate limiting unless explicitly disabled - if (rateLimitConfig !== false) { - router.use(rateLimit({ - windowMs: 15 * 60 * 1000, // 15 minutes - max: 50, // 50 requests per windowMs - standardHeaders: true, - legacyHeaders: false, - message: new TooManyRequestsError('You have exceeded the rate limit for token requests').toResponseObject(), - ...rateLimitConfig - })); - } - // Authenticate and extract client details - router.use(authenticateClient({ clientsStore: provider.clientsStore })); - router.post('/', async (req, res) => { - res.setHeader('Cache-Control', 'no-store'); - try { - const parseResult = TokenRequestSchema.safeParse(req.body); - if (!parseResult.success) { - throw new InvalidRequestError(parseResult.error.message); - } - const { grant_type } = parseResult.data; - const client = req.client; - if (!client) { - // This should never happen - throw new ServerError('Internal Server Error'); - } - switch (grant_type) { - case 'authorization_code': { - const parseResult = AuthorizationCodeGrantSchema.safeParse(req.body); - if (!parseResult.success) { - throw new InvalidRequestError(parseResult.error.message); - } - const { code, code_verifier, redirect_uri, resource } = parseResult.data; - const skipLocalPkceValidation = provider.skipLocalPkceValidation; - // Perform local PKCE validation unless explicitly skipped - // (e.g. to validate code_verifier in upstream server) - if (!skipLocalPkceValidation) { - const codeChallenge = await provider.challengeForAuthorizationCode(client, code); - if (!(await verifyChallenge(code_verifier, codeChallenge))) { - throw new InvalidGrantError('code_verifier does not match the challenge'); - } - } - // Passes the code_verifier to the provider if PKCE validation didn't occur locally - const tokens = await provider.exchangeAuthorizationCode(client, code, skipLocalPkceValidation ? code_verifier : undefined, redirect_uri, resource ? new URL(resource) : undefined); - res.status(200).json(tokens); - break; - } - case 'refresh_token': { - const parseResult = RefreshTokenGrantSchema.safeParse(req.body); - if (!parseResult.success) { - throw new InvalidRequestError(parseResult.error.message); - } - const { refresh_token, scope, resource } = parseResult.data; - const scopes = scope?.split(' '); - const tokens = await provider.exchangeRefreshToken(client, refresh_token, scopes, resource ? new URL(resource) : undefined); - res.status(200).json(tokens); - break; - } - // Additional auth methods will not be added on the server side of the SDK. - case 'client_credentials': - default: - throw new UnsupportedGrantTypeError('The grant type is not supported by this authorization server.'); - } - } - catch (error) { - if (error instanceof OAuthError) { - const status = error instanceof ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }); - return router; -} -//# sourceMappingURL=token.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map deleted file mode 100644 index 07f182a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../src/server/auth/handlers/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,OAA2B,MAAM,SAAS,CAAC;AAElD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,SAAS,EAA+B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACb,MAAM,cAAc,CAAC;AAWtB,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,C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,CAAC,CAAC,CAAC,CAAC,SAAS,CAC3C,CAAC;oBACF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBAC7B,MAAM;gBACV,CAAC;gBACD,2EAA2E;gBAC3E,KAAK,oBAAoB,CAAC;gBAC1B;oBACI,MAAM,IAAI,yBAAyB,CAAC,+DAA+D,CAAC,CAAC;YAC7G,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,KAAK,YAAY,UAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,KAAK,YAAY,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;gBACxD,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACtD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts deleted file mode 100644 index ee6037e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { RequestHandler } from 'express'; -/** - * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. - * - * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) - * @returns Express middleware that returns a 405 error if method not in allowed list - */ -export declare function allowedMethods(allowedMethods: string[]): RequestHandler; -//# sourceMappingURL=allowedMethods.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map deleted file mode 100644 index d3de93e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allowedMethods.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/allowedMethods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,cAAc,CAUvE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js deleted file mode 100644 index af2ba08..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +++ /dev/null @@ -1,18 +0,0 @@ -import { MethodNotAllowedError } from '../errors.js'; -/** - * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. - * - * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) - * @returns Express middleware that returns a 405 error if method not in allowed list - */ -export function allowedMethods(allowedMethods) { - return (req, res, next) => { - if (allowedMethods.includes(req.method)) { - next(); - return; - } - const error = new MethodNotAllowedError(`The method ${req.method} is not allowed for this endpoint`); - res.status(405).set('Allow', allowedMethods.join(', ')).json(error.toResponseObject()); - }; -} -//# sourceMappingURL=allowedMethods.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map deleted file mode 100644 index c410979..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"allowedMethods.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/allowedMethods.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,cAAwB;IACnD,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QACtB,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACtC,IAAI,EAAE,CAAC;YACP,OAAO;QACX,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,qBAAqB,CAAC,cAAc,GAAG,CAAC,MAAM,mCAAmC,CAAC,CAAC;QACrG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC3F,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts deleted file mode 100644 index 1073075..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthTokenVerifier } from '../provider.js'; -import { AuthInfo } from '../types.js'; -export type BearerAuthMiddlewareOptions = { - /** - * A provider used to verify tokens. - */ - verifier: OAuthTokenVerifier; - /** - * Optional scopes that the token must have. - */ - requiredScopes?: string[]; - /** - * Optional resource metadata URL to include in WWW-Authenticate header. - */ - resourceMetadataUrl?: string; -}; -declare module 'express-serve-static-core' { - interface Request { - /** - * Information about the validated access token, if the `requireBearerAuth` middleware was used. - */ - auth?: AuthInfo; - } -} -/** - * Middleware that requires a valid Bearer token in the Authorization header. - * - * This will validate the token with the auth provider and add the resulting auth info to the request object. - * - * If resourceMetadataUrl is provided, it will be included in the WWW-Authenticate header - * for 401 responses as per the OAuth 2.0 Protected Resource Metadata spec. - */ -export declare function requireBearerAuth({ verifier, requiredScopes, resourceMetadataUrl }: BearerAuthMiddlewareOptions): RequestHandler; -//# sourceMappingURL=bearerAuth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map deleted file mode 100644 index c9d939f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bearerAuth.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/bearerAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,MAAM,2BAA2B,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb;;WAEG;QACH,IAAI,CAAC,EAAE,QAAQ,CAAC;KACnB;CACJ;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,cAAmB,EAAE,mBAAmB,EAAE,EAAE,2BAA2B,GAAG,cAAc,CA8DrI"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js deleted file mode 100644 index 0c527b4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +++ /dev/null @@ -1,72 +0,0 @@ -import { InsufficientScopeError, InvalidTokenError, OAuthError, ServerError } from '../errors.js'; -/** - * Middleware that requires a valid Bearer token in the Authorization header. - * - * This will validate the token with the auth provider and add the resulting auth info to the request object. - * - * If resourceMetadataUrl is provided, it will be included in the WWW-Authenticate header - * for 401 responses as per the OAuth 2.0 Protected Resource Metadata spec. - */ -export function requireBearerAuth({ verifier, requiredScopes = [], resourceMetadataUrl }) { - return async (req, res, next) => { - try { - const authHeader = req.headers.authorization; - if (!authHeader) { - throw new InvalidTokenError('Missing Authorization header'); - } - const [type, token] = authHeader.split(' '); - if (type.toLowerCase() !== 'bearer' || !token) { - throw new InvalidTokenError("Invalid Authorization header format, expected 'Bearer TOKEN'"); - } - const authInfo = await verifier.verifyAccessToken(token); - // Check if token has the required scopes (if any) - if (requiredScopes.length > 0) { - const hasAllScopes = requiredScopes.every(scope => authInfo.scopes.includes(scope)); - if (!hasAllScopes) { - throw new InsufficientScopeError('Insufficient scope'); - } - } - // Check if the token is set to expire or if it is expired - if (typeof authInfo.expiresAt !== 'number' || isNaN(authInfo.expiresAt)) { - throw new InvalidTokenError('Token has no expiration time'); - } - else if (authInfo.expiresAt < Date.now() / 1000) { - throw new InvalidTokenError('Token has expired'); - } - req.auth = authInfo; - next(); - } - catch (error) { - // Build WWW-Authenticate header parts - const buildWwwAuthHeader = (errorCode, message) => { - let header = `Bearer error="${errorCode}", error_description="${message}"`; - if (requiredScopes.length > 0) { - header += `, scope="${requiredScopes.join(' ')}"`; - } - if (resourceMetadataUrl) { - header += `, resource_metadata="${resourceMetadataUrl}"`; - } - return header; - }; - if (error instanceof InvalidTokenError) { - res.set('WWW-Authenticate', buildWwwAuthHeader(error.errorCode, error.message)); - res.status(401).json(error.toResponseObject()); - } - else if (error instanceof InsufficientScopeError) { - res.set('WWW-Authenticate', buildWwwAuthHeader(error.errorCode, error.message)); - res.status(403).json(error.toResponseObject()); - } - else if (error instanceof ServerError) { - res.status(500).json(error.toResponseObject()); - } - else if (error instanceof OAuthError) { - res.status(400).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }; -} -//# sourceMappingURL=bearerAuth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map deleted file mode 100644 index d8d0179..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bearerAuth.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/bearerAuth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AA8BlG;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,QAAQ,EAAE,cAAc,GAAG,EAAE,EAAE,mBAAmB,EAA+B;IACjH,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5B,IAAI,CAAC;YACD,MAAM,UAAU,GAAG,G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K,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACJ,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,uBAAuB,CAAC,CAAC;gBAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;IACL,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts deleted file mode 100644 index 837f95f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { RequestHandler } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { OAuthClientInformationFull } from '../../../shared/auth.js'; -export type ClientAuthenticationMiddlewareOptions = { - /** - * A store used to read information about registered OAuth clients. - */ - clientsStore: OAuthRegisteredClientsStore; -}; -declare module 'express-serve-static-core' { - interface Request { - /** - * The authenticated client for this request, if the `authenticateClient` middleware was used. - */ - client?: OAuthClientInformationFull; - } -} -export declare function authenticateClient({ clientsStore }: ClientAuthenticationMiddlewareOptions): RequestHandler; -//# sourceMappingURL=clientAuth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map deleted file mode 100644 index 5455132..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientAuth.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/clientAuth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGrE,MAAM,MAAM,qCAAqC,GAAG;IAChD;;OAEG;IACH,YAAY,EAAE,2BAA2B,CAAC;CAC7C,CAAC;AAOF,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb;;WAEG;QACH,MAAM,CAAC,EAAE,0BAA0B,CAAC;KACvC;CACJ;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,EAAE,qCAAqC,GAAG,cAAc,CAoC1G"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js deleted file mode 100644 index cce72a2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +++ /dev/null @@ -1,45 +0,0 @@ -import * as z from 'zod/v4'; -import { InvalidRequestError, InvalidClientError, ServerError, OAuthError } from '../errors.js'; -const ClientAuthenticatedRequestSchema = z.object({ - client_id: z.string(), - client_secret: z.string().optional() -}); -export function authenticateClient({ clientsStore }) { - return async (req, res, next) => { - try { - const result = ClientAuthenticatedRequestSchema.safeParse(req.body); - if (!result.success) { - throw new InvalidRequestError(String(result.error)); - } - const { client_id, client_secret } = result.data; - const client = await clientsStore.getClient(client_id); - if (!client) { - throw new InvalidClientError('Invalid client_id'); - } - if (client.client_secret) { - if (!client_secret) { - throw new InvalidClientError('Client secret is required'); - } - if (client.client_secret !== client_secret) { - throw new InvalidClientError('Invalid client_secret'); - } - if (client.client_secret_expires_at && client.client_secret_expires_at < Math.floor(Date.now() / 1000)) { - throw new InvalidClientError('Client secret has expired'); - } - } - req.client = client; - next(); - } - catch (error) { - if (error instanceof OAuthError) { - const status = error instanceof ServerError ? 500 : 400; - res.status(status).json(error.toResponseObject()); - } - else { - const serverError = new ServerError('Internal Server Error'); - res.status(500).json(serverError.toResponseObject()); - } - } - }; -} -//# sourceMappingURL=clientAuth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map deleted file mode 100644 index 5023c02..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clientAuth.js","sourceRoot":"","sources":["../../../../../src/server/auth/middleware/clientAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAShG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAWH,MAAM,UAAU,kBAAkB,CAAC,EAAE,YAAY,EAAyC;IACtF,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC5B,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,gCAAgC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACpE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBAClB,MAAM,IAAI,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YACxD,CAAC;YACD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC,IAAI,CA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CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts deleted file mode 100644 index 3e4eca3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Response } from 'express'; -import { OAuthRegisteredClientsStore } from './clients.js'; -import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '../../shared/auth.js'; -import { AuthInfo } from './types.js'; -export type AuthorizationParams = { - state?: string; - scopes?: string[]; - codeChallenge: string; - redirectUri: string; - resource?: URL; -}; -/** - * Implements an end-to-end OAuth server. - */ -export interface OAuthServerProvider { - /** - * A store used to read information about registered OAuth clients. - */ - get clientsStore(): OAuthRegisteredClientsStore; - /** - * Begins the authorization flow, which can either be implemented by this server itself or via redirection to a separate authorization server. - * - * This server must eventually issue a redirect with an authorization response or an error response to the given redirect URI. Per OAuth 2.1: - * - In the successful case, the redirect MUST include the `code` and `state` (if present) query parameters. - * - In the error case, the redirect MUST include the `error` query parameter, and MAY include an optional `error_description` query parameter. - */ - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - /** - * Returns the `codeChallenge` that was used when the indicated authorization began. - */ - challengeForAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string): Promise; - /** - * Exchanges an authorization code for an access token. - */ - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, redirectUri?: string, resource?: URL): Promise; - /** - * Exchanges a refresh token for an access token. - */ - exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise; - /** - * Verifies an access token and returns information about it. - */ - verifyAccessToken(token: string): Promise; - /** - * Revokes an access or refresh token. If unimplemented, token revocation is not supported (not recommended). - * - * If the given token is invalid or already revoked, this method should do nothing. - */ - revokeToken?(client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest): Promise; - /** - * Whether to skip local PKCE validation. - * - * If true, the server will not perform PKCE validation locally and will pass the code_verifier to the upstream server. - * - * NOTE: This should only be true if the upstream server is performing the actual PKCE validation. - */ - skipLocalPkceValidation?: boolean; -} -/** - * Slim implementation useful for token verification - */ -export interface OAuthTokenVerifier { - /** - * Verifies an access token and returns information about it. - */ - verifyAccessToken(token: string): Promise; -} -//# sourceMappingURL=provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map deleted file mode 100644 index d1a4bff..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,YAAY,IAAI,2BAA2B,CAAC;IAEhD;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzG;;OAEG;IACH,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9G;;OAEG;IACH,yBAAyB,CACrB,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,GAAG,GACf,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAExI;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpD;;;;OAIG;IACH,WAAW,CAAC,CAAC,MAAM,EAAE,0BAA0B,EAAE,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtG;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACvD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js deleted file mode 100644 index be31058..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map deleted file mode 100644 index b968414..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/server/auth/provider.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts deleted file mode 100644 index ee6f350..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Response } from 'express'; -import { OAuthRegisteredClientsStore } from '../clients.js'; -import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '../../../shared/auth.js'; -import { AuthInfo } from '../types.js'; -import { AuthorizationParams, OAuthServerProvider } from '../provider.js'; -import { FetchLike } from '../../../shared/transport.js'; -export type ProxyEndpoints = { - authorizationUrl: string; - tokenUrl: string; - revocationUrl?: string; - registrationUrl?: string; -}; -export type ProxyOptions = { - /** - * Individual endpoint URLs for proxying specific OAuth operations - */ - endpoints: ProxyEndpoints; - /** - * Function to verify access tokens and return auth info - */ - verifyAccessToken: (token: string) => Promise; - /** - * Function to fetch client information from the upstream server - */ - getClient: (clientId: string) => Promise; - /** - * Custom fetch implementation used for all network requests. - */ - fetch?: FetchLike; -}; -/** - * Implements an OAuth server that proxies requests to another OAuth server. - */ -export declare class ProxyOAuthServerProvider implements OAuthServerProvider { - protected readonly _endpoints: ProxyEndpoints; - protected readonly _verifyAccessToken: (token: string) => Promise; - protected readonly _getClient: (clientId: string) => Promise; - protected readonly _fetch?: FetchLike; - skipLocalPkceValidation: boolean; - revokeToken?: (client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest) => Promise; - constructor(options: ProxyOptions); - get clientsStore(): OAuthRegisteredClientsStore; - authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; - challengeForAuthorizationCode(_client: OAuthClientInformationFull, _authorizationCode: string): Promise; - exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, redirectUri?: string, resource?: URL): Promise; - exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise; - verifyAccessToken(token: string): Promise; -} -//# sourceMappingURL=proxyProvider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map deleted file mode 100644 index 124c105..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"proxyProvider.d.ts","sourceRoot":"","sources":["../../../../../src/server/auth/providers/proxyProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EACH,0BAA0B,EAE1B,2BAA2B,EAC3B,WAAW,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,cAAc,GAAG;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAA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AM/G,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,GAAG,GACf,OAAO,CAAC,WAAW,CAAC;IAwCjB,oBAAoB,CACtB,MAAM,EAAE,0BAA0B,EAClC,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,EAAE,EACjB,QAAQ,CAAC,EAAE,GAAG,GACf,OAAO,CAAC,WAAW,CAAC;IAoCjB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG5D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js deleted file mode 100644 index fef1ff5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +++ /dev/null @@ -1,155 +0,0 @@ -import { OAuthClientInformationFullSchema, OAuthTokensSchema } from '../../../shared/auth.js'; -import { ServerError } from '../errors.js'; -/** - * Implements an OAuth server that proxies requests to another OAuth server. - */ -export class ProxyOAuthServerProvider { - constructor(options) { - this.skipLocalPkceValidation = true; - this._endpoints = options.endpoints; - this._verifyAccessToken = options.verifyAccessToken; - this._getClient = options.getClient; - this._fetch = options.fetch; - if (options.endpoints?.revocationUrl) { - this.revokeToken = async (client, request) => { - const revocationUrl = this._endpoints.revocationUrl; - if (!revocationUrl) { - throw new Error('No revocation endpoint configured'); - } - const params = new URLSearchParams(); - params.set('token', request.token); - params.set('client_id', client.client_id); - if (client.client_secret) { - params.set('client_secret', client.client_secret); - } - if (request.token_type_hint) { - params.set('token_type_hint', request.token_type_hint); - } - const response = await (this._fetch ?? fetch)(revocationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - await response.body?.cancel(); - if (!response.ok) { - throw new ServerError(`Token revocation failed: ${response.status}`); - } - }; - } - } - get clientsStore() { - const registrationUrl = this._endpoints.registrationUrl; - return { - getClient: this._getClient, - ...(registrationUrl && { - registerClient: async (client) => { - const response = await (this._fetch ?? fetch)(registrationUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(client) - }); - if (!response.ok) { - await response.body?.cancel(); - throw new ServerError(`Client registration failed: ${response.status}`); - } - const data = await response.json(); - return OAuthClientInformationFullSchema.parse(data); - } - }) - }; - } - async authorize(client, params, res) { - // Start with required OAuth parameters - const targetUrl = new URL(this._endpoints.authorizationUrl); - const searchParams = new URLSearchParams({ - client_id: client.client_id, - response_type: 'code', - redirect_uri: params.redirectUri, - code_challenge: params.codeChallenge, - code_challenge_method: 'S256' - }); - // Add optional standard OAuth parameters - if (params.state) - searchParams.set('state', params.state); - if (params.scopes?.length) - searchParams.set('scope', params.scopes.join(' ')); - if (params.resource) - searchParams.set('resource', params.resource.href); - targetUrl.search = searchParams.toString(); - res.redirect(targetUrl.toString()); - } - async challengeForAuthorizationCode(_client, _authorizationCode) { - // In a proxy setup, we don't store the code challenge ourselves - // Instead, we proxy the token request and let the upstream server validate it - return ''; - } - async exchangeAuthorizationCode(client, authorizationCode, codeVerifier, redirectUri, resource) { - const params = new URLSearchParams({ - grant_type: 'authorization_code', - client_id: client.client_id, - code: authorizationCode - }); - if (client.client_secret) { - params.append('client_secret', client.client_secret); - } - if (codeVerifier) { - params.append('code_verifier', codeVerifier); - } - if (redirectUri) { - params.append('redirect_uri', redirectUri); - } - if (resource) { - params.append('resource', resource.href); - } - const response = await (this._fetch ?? fetch)(this._endpoints.tokenUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - if (!response.ok) { - await response.body?.cancel(); - throw new ServerError(`Token exchange failed: ${response.status}`); - } - const data = await response.json(); - return OAuthTokensSchema.parse(data); - } - async exchangeRefreshToken(client, refreshToken, scopes, resource) { - const params = new URLSearchParams({ - grant_type: 'refresh_token', - client_id: client.client_id, - refresh_token: refreshToken - }); - if (client.client_secret) { - params.set('client_secret', client.client_secret); - } - if (scopes?.length) { - params.set('scope', scopes.join(' ')); - } - if (resource) { - params.set('resource', resource.href); - } - const response = await (this._fetch ?? fetch)(this._endpoints.tokenUrl, { - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - body: params.toString() - }); - if (!response.ok) { - await response.body?.cancel(); - throw new ServerError(`Token refresh failed: ${response.status}`); - } - const data = await response.json(); - return OAuthTokensSchema.parse(data); - } - async verifyAccessToken(token) { - return this._verifyAccessToken(token); - } -} -//# sourceMappingURL=proxyProvider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map deleted file mode 100644 index b77ac30..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"proxyProvider.js","sourceRoot":"","sources":["../../../../../src/server/auth/providers/proxyProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,gCAAgC,EAGhC,iBAAiB,EACpB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAgC3C;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAUjC,YAAY,OAAqB;QAJjC,4BAAuB,GAAG,IAAI,CAAC;QAK3B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,MAAM,GAA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AC,IAAI,CAAC,CAAC;QAC1C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YACpE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACL,cAAc,EAAE,mCAAmC;aACtD;YACD,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;SAC1B,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YAC9B,MAAM,IAAI,WAAW,CAAC,yBAAyB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,KAAa;QACjC,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts deleted file mode 100644 index 43dabde..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import express, { RequestHandler } from 'express'; -import { ClientRegistrationHandlerOptions } from './handlers/register.js'; -import { TokenHandlerOptions } from './handlers/token.js'; -import { AuthorizationHandlerOptions } from './handlers/authorize.js'; -import { RevocationHandlerOptions } from './handlers/revoke.js'; -import { OAuthServerProvider } from './provider.js'; -import { OAuthMetadata } from '../../shared/auth.js'; -export type AuthRouterOptions = { - /** - * A provider implementing the actual authorization logic for this router. - */ - provider: OAuthServerProvider; - /** - * The authorization server's issuer identifier, which is a URL that uses the "https" scheme and has no query or fragment components. - */ - issuerUrl: URL; - /** - * The base URL of the authorization server to use for the metadata endpoints. - * - * If not provided, the issuer URL will be used as the base URL. - */ - baseUrl?: URL; - /** - * An optional URL of a page containing human-readable information that developers might want or need to know when using the authorization server. - */ - serviceDocumentationUrl?: URL; - /** - * An optional list of scopes supported by this authorization server - */ - scopesSupported?: string[]; - /** - * The resource name to be displayed in protected resource metadata - */ - resourceName?: string; - /** - * The URL of the protected resource (RS) whose metadata we advertise. - * If not provided, falls back to `baseUrl` and then to `issuerUrl` (AS=RS). - */ - resourceServerUrl?: URL; - authorizationOptions?: Omit; - clientRegistrationOptions?: Omit; - revocationOptions?: Omit; - tokenOptions?: Omit; -}; -export declare const createOAuthMetadata: (options: { - provider: OAuthServerProvider; - issuerUrl: URL; - baseUrl?: URL; - serviceDocumentationUrl?: URL; - scopesSupported?: string[]; -}) => OAuthMetadata; -/** - * Installs standard MCP authorization server endpoints, including dynamic client registration and token revocation (if supported). - * Also advertises standard authorization server metadata, for easier discovery of supported configurations by clients. - * Note: if your MCP server is only a resource server and not an authorization server, use mcpAuthMetadataRouter instead. - * - * By default, rate limiting is applied to all endpoints to prevent abuse. - * - * This router MUST be installed at the application root, like so: - * - * const app = express(); - * app.use(mcpAuthRouter(...)); - */ -export declare function mcpAuthRouter(options: AuthRouterOptions): RequestHandler; -export type AuthMetadataOptions = { - /** - * OAuth Metadata as would be returned from the authorization server - * this MCP server relies on - */ - oauthMetadata: OAuthMetadata; - /** - * The url of the MCP server, for use in protected resource metadata - */ - resourceServerUrl: URL; - /** - * The url for documentation for the MCP server - */ - serviceDocumentationUrl?: URL; - /** - * An optional list of scopes supported by this MCP server - */ - scopesSupported?: string[]; - /** - * An optional resource name to display in resource metadata - */ - resourceName?: string; -}; -export declare function mcpAuthMetadataRouter(options: AuthMetadataOptions): express.Router; -/** - * Helper function to construct the OAuth 2.0 Protected Resource Metadata URL - * from a given server URL. This replaces the path with the standard metadata endpoint. - * - * @param serverUrl - The base URL of the protected resource server - * @returns The URL for the OAuth protected resource metadata endpoint - * - * @example - * getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp')) - * // Returns: 'https://api.example.com/.well-known/oauth-protected-resource/mcp' - */ -export declare function getOAuthProtectedResourceMetadataUrl(serverUrl: URL): string; -//# sourceMappingURL=router.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map deleted file mode 100644 index 615cb96..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/router.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAA6B,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAgB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAwB,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAqB,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,aAAa,EAAkC,MAAM,sBAAsB,CAAC;AAUrF,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,GAAG,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd;;OAEG;IACH,uBAAuB,CAAC,EAAE,GAAG,CAAC;IAE9B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,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.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js deleted file mode 100644 index c33a542..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +++ /dev/null @@ -1,118 +0,0 @@ -import express from 'express'; -import { clientRegistrationHandler } from './handlers/register.js'; -import { tokenHandler } from './handlers/token.js'; -import { authorizationHandler } from './handlers/authorize.js'; -import { revocationHandler } from './handlers/revoke.js'; -import { metadataHandler } from './handlers/metadata.js'; -// Check for dev mode flag that allows HTTP issuer URLs (for development/testing only) -const allowInsecureIssuerUrl = process.env.MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL === 'true' || process.env.MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL === '1'; -if (allowInsecureIssuerUrl) { - // eslint-disable-next-line no-console - console.warn('MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL is enabled - HTTP issuer URLs are allowed. Do not use in production.'); -} -const checkIssuerUrl = (issuer) => { - // Technically RFC 8414 does not permit a localhost HTTPS exemption, but this will be necessary for ease of testing - if (issuer.protocol !== 'https:' && issuer.hostname !== 'localhost' && issuer.hostname !== '127.0.0.1' && !allowInsecureIssuerUrl) { - throw new Error('Issuer URL must be HTTPS'); - } - if (issuer.hash) { - throw new Error(`Issuer URL must not have a fragment: ${issuer}`); - } - if (issuer.search) { - throw new Error(`Issuer URL must not have a query string: ${issuer}`); - } -}; -export const createOAuthMetadata = (options) => { - const issuer = options.issuerUrl; - const baseUrl = options.baseUrl; - checkIssuerUrl(issuer); - const authorization_endpoint = '/authorize'; - const token_endpoint = '/token'; - const registration_endpoint = options.provider.clientsStore.registerClient ? '/register' : undefined; - const revocation_endpoint = options.provider.revokeToken ? '/revoke' : undefined; - const metadata = { - issuer: issuer.href, - service_documentation: options.serviceDocumentationUrl?.href, - authorization_endpoint: new URL(authorization_endpoint, baseUrl || issuer).href, - response_types_supported: ['code'], - code_challenge_methods_supported: ['S256'], - token_endpoint: new URL(token_endpoint, baseUrl || issuer).href, - token_endpoint_auth_methods_supported: ['client_secret_post', 'none'], - grant_types_supported: ['authorization_code', 'refresh_token'], - scopes_supported: options.scopesSupported, - revocation_endpoint: revocation_endpoint ? new URL(revocation_endpoint, baseUrl || issuer).href : undefined, - revocation_endpoint_auth_methods_supported: revocation_endpoint ? ['client_secret_post'] : undefined, - registration_endpoint: registration_endpoint ? new URL(registration_endpoint, baseUrl || issuer).href : undefined - }; - return metadata; -}; -/** - * Installs standard MCP authorization server endpoints, including dynamic client registration and token revocation (if supported). - * Also advertises standard authorization server metadata, for easier discovery of supported configurations by clients. - * Note: if your MCP server is only a resource server and not an authorization server, use mcpAuthMetadataRouter instead. - * - * By default, rate limiting is applied to all endpoints to prevent abuse. - * - * This router MUST be installed at the application root, like so: - * - * const app = express(); - * app.use(mcpAuthRouter(...)); - */ -export function mcpAuthRouter(options) { - const oauthMetadata = createOAuthMetadata(options); - const router = express.Router(); - router.use(new URL(oauthMetadata.authorization_endpoint).pathname, authorizationHandler({ provider: options.provider, ...options.authorizationOptions })); - router.use(new URL(oauthMetadata.token_endpoint).pathname, tokenHandler({ provider: options.provider, ...options.tokenOptions })); - router.use(mcpAuthMetadataRouter({ - oauthMetadata, - // Prefer explicit RS; otherwise fall back to AS baseUrl, then to issuer (back-compat) - resourceServerUrl: options.resourceServerUrl ?? options.baseUrl ?? new URL(oauthMetadata.issuer), - serviceDocumentationUrl: options.serviceDocumentationUrl, - scopesSupported: options.scopesSupported, - resourceName: options.resourceName - })); - if (oauthMetadata.registration_endpoint) { - router.use(new URL(oauthMetadata.registration_endpoint).pathname, clientRegistrationHandler({ - clientsStore: options.provider.clientsStore, - ...options.clientRegistrationOptions - })); - } - if (oauthMetadata.revocation_endpoint) { - router.use(new URL(oauthMetadata.revocation_endpoint).pathname, revocationHandler({ provider: options.provider, ...options.revocationOptions })); - } - return router; -} -export function mcpAuthMetadataRouter(options) { - checkIssuerUrl(new URL(options.oauthMetadata.issuer)); - const router = express.Router(); - const protectedResourceMetadata = { - resource: options.resourceServerUrl.href, - authorization_servers: [options.oauthMetadata.issuer], - scopes_supported: options.scopesSupported, - resource_name: options.resourceName, - resource_documentation: options.serviceDocumentationUrl?.href - }; - // Serve PRM at the path-specific URL per RFC 9728 - const rsPath = new URL(options.resourceServerUrl.href).pathname; - router.use(`/.well-known/oauth-protected-resource${rsPath === '/' ? '' : rsPath}`, metadataHandler(protectedResourceMetadata)); - // Always add this for OAuth Authorization Server metadata per RFC 8414 - router.use('/.well-known/oauth-authorization-server', metadataHandler(options.oauthMetadata)); - return router; -} -/** - * Helper function to construct the OAuth 2.0 Protected Resource Metadata URL - * from a given server URL. This replaces the path with the standard metadata endpoint. - * - * @param serverUrl - The base URL of the protected resource server - * @returns The URL for the OAuth protected resource metadata endpoint - * - * @example - * getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp')) - * // Returns: 'https://api.example.com/.well-known/oauth-protected-resource/mcp' - */ -export function getOAuthProtectedResourceMetadataUrl(serverUrl) { - const u = new URL(serverUrl.href); - const rsPath = u.pathname && u.pathname !== '/' ? u.pathname : ''; - return new URL(`/.well-known/oauth-protected-resource${rsPath}`, u).href; -} -//# sourceMappingURL=router.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map deleted file mode 100644 index 6487fb0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../src/server/auth/router.ts"],"names":[],"mappings":"AAAA,OAAO,OAA2B,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAoC,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,YAAY,EAAuB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAA+B,MAAM,y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AC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,OAAO,IAAI,GAAG,CAAC,wCAAwC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts deleted file mode 100644 index 05ec848..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Information about a validated access token, provided to request handlers. - */ -export interface AuthInfo { - /** - * The access token. - */ - token: string; - /** - * The client ID associated with this token. - */ - clientId: string; - /** - * Scopes associated with this token. - */ - scopes: string[]; - /** - * When the token expires (in seconds since epoch). - */ - expiresAt?: number; - /** - * The RFC 8707 resource server identifier for which this token is valid. - * If set, this MUST match the MCP server's resource identifier (minus hash fragment). - */ - resource?: URL; - /** - * Additional data associated with the token. - * This field should be used for any additional data that needs to be attached to the auth info. - */ - extra?: Record; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map deleted file mode 100644 index 021e947..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/server/auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js deleted file mode 100644 index 718fd38..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map deleted file mode 100644 index 0d8063d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/server/auth/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts deleted file mode 100644 index 1b3159a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { AnySchema, SchemaInput } from './zod-compat.js'; -export declare const COMPLETABLE_SYMBOL: unique symbol; -export type CompleteCallback = (value: SchemaInput, context?: { - arguments?: Record; -}) => SchemaInput[] | Promise[]>; -export type CompletableMeta = { - complete: CompleteCallback; -}; -export type CompletableSchema = T & { - [COMPLETABLE_SYMBOL]: CompletableMeta; -}; -/** - * Wraps a Zod type to provide autocompletion capabilities. Useful for, e.g., prompt arguments in MCP. - * Works with both Zod v3 and v4 schemas. - */ -export declare function completable(schema: T, complete: CompleteCallback): CompletableSchema; -/** - * Checks if a schema is completable (has completion metadata). - */ -export declare function isCompletable(schema: unknown): schema is CompletableSchema; -/** - * Gets the completer callback from a completable schema, if it exists. - */ -export declare function getCompleter(schema: T): CompleteCallback | undefined; -/** - * Unwraps a completable schema to get the underlying schema. - * For backward compatibility with code that called `.unwrap()`. - */ -export declare function unwrapCompletable(schema: CompletableSchema): T; -export declare enum McpZodTypeKind { - Completable = "McpCompletable" -} -export interface CompletableDef { - type: T; - complete: CompleteCallback; - typeName: McpZodTypeKind.Completable; -} -//# sourceMappingURL=completable.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map deleted file mode 100644 index 83ea2f1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"completable.d.ts","sourceRoot":"","sources":["../../../src/server/completable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,EAAE,OAAO,MAAsC,CAAC;AAE/E,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,CAC5D,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,OAAO,CAAC,EAAE;IACN,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,KACA,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAElD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI;IAC3D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,GAAG;IACrD,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAQ/G;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAErF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAG5F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAEtF;AAID,oBAAY,cAAc;IACtB,WAAW,mBAAmB;CACjC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAC3D,IAAI,EAAE,CAAC,CAAC;IACR,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC9B,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC;CACxC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js deleted file mode 100644 index 827f7d4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +++ /dev/null @@ -1,41 +0,0 @@ -export const COMPLETABLE_SYMBOL = Symbol.for('mcp.completable'); -/** - * Wraps a Zod type to provide autocompletion capabilities. Useful for, e.g., prompt arguments in MCP. - * Works with both Zod v3 and v4 schemas. - */ -export function completable(schema, complete) { - Object.defineProperty(schema, COMPLETABLE_SYMBOL, { - value: { complete }, - enumerable: false, - writable: false, - configurable: false - }); - return schema; -} -/** - * Checks if a schema is completable (has completion metadata). - */ -export function isCompletable(schema) { - return !!schema && typeof schema === 'object' && COMPLETABLE_SYMBOL in schema; -} -/** - * Gets the completer callback from a completable schema, if it exists. - */ -export function getCompleter(schema) { - const meta = schema[COMPLETABLE_SYMBOL]; - return meta?.complete; -} -/** - * Unwraps a completable schema to get the underlying schema. - * For backward compatibility with code that called `.unwrap()`. - */ -export function unwrapCompletable(schema) { - return schema; -} -// Legacy exports for backward compatibility -// These types are deprecated but kept for existing code -export var McpZodTypeKind; -(function (McpZodTypeKind) { - McpZodTypeKind["Completable"] = "McpCompletable"; -})(McpZodTypeKind || (McpZodTypeKind = {})); -//# sourceMappingURL=completable.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map deleted file mode 100644 index a5ae859..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"completable.js","sourceRoot":"","sources":["../../../src/server/completable.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAkB,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAiB/E;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAsB,MAAS,EAAE,QAA6B;IACrF,MAAM,CAAC,cAAc,CAAC,MAAgB,EAAE,kBAAkB,EAAE;QACxD,KAAK,EAAE,EAAE,QAAQ,EAAwB;QACzC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,KAAK;KACtB,CAAC,CAAC;IACH,OAAO,MAA8B,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAe;IACzC,OAAO,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,kBAAkB,IAAK,MAAiB,CAAC;AAC9F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAsB,MAAS;IACvD,MAAM,IAAI,GAAI,MAAmE,CAAC,kBAAkB,CAAC,CAAC;IACtG,OAAO,IAAI,EAAE,QAA2C,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAsB,MAA4B;IAC/E,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,CAAN,IAAY,cAEX;AAFD,WAAY,cAAc;IACtB,gDAA8B,CAAA;AAClC,CAAC,EAFW,cAAc,KAAd,cAAc,QAEzB"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts deleted file mode 100644 index 7746e82..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Express } from 'express'; -/** - * Options for creating an MCP Express application. - */ -export interface CreateMcpExpressAppOptions { - /** - * The hostname to bind to. Defaults to '127.0.0.1'. - * When set to '127.0.0.1', 'localhost', or '::1', DNS rebinding protection is automatically enabled. - */ - host?: string; - /** - * List of allowed hostnames for DNS rebinding protection. - * If provided, host header validation will be applied using this list. - * For IPv6, provide addresses with brackets (e.g., '[::1]'). - * - * This is useful when binding to '0.0.0.0' or '::' but still wanting - * to restrict which hostnames are allowed. - */ - allowedHosts?: string[]; -} -/** - * Creates an Express application pre-configured for MCP servers. - * - * When the host is '127.0.0.1', 'localhost', or '::1' (the default is '127.0.0.1'), - * DNS rebinding protection middleware is automatically applied to protect against - * DNS rebinding attacks on localhost servers. - * - * @param options - Configuration options - * @returns A configured Express application - * - * @example - * ```typescript - * // Basic usage - defaults to 127.0.0.1 with DNS rebinding protection - * const app = createMcpExpressApp(); - * - * // Custom host - DNS rebinding protection only applied for localhost hosts - * const app = createMcpExpressApp({ host: '0.0.0.0' }); // No automatic DNS rebinding protection - * const app = createMcpExpressApp({ host: 'localhost' }); // DNS rebinding protection enabled - * - * // Custom allowed hosts for non-localhost binding - * const app = createMcpExpressApp({ host: '0.0.0.0', allowedHosts: ['myapp.local', 'localhost'] }); - * ``` - */ -export declare function createMcpExpressApp(options?: CreateMcpExpressAppOptions): Express; -//# sourceMappingURL=express.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map deleted file mode 100644 index 5f607a9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../../src/server/express.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG3C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CA0BrF"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js deleted file mode 100644 index a23a57b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +++ /dev/null @@ -1,50 +0,0 @@ -import express from 'express'; -import { hostHeaderValidation, localhostHostValidation } from './middleware/hostHeaderValidation.js'; -/** - * Creates an Express application pre-configured for MCP servers. - * - * When the host is '127.0.0.1', 'localhost', or '::1' (the default is '127.0.0.1'), - * DNS rebinding protection middleware is automatically applied to protect against - * DNS rebinding attacks on localhost servers. - * - * @param options - Configuration options - * @returns A configured Express application - * - * @example - * ```typescript - * // Basic usage - defaults to 127.0.0.1 with DNS rebinding protection - * const app = createMcpExpressApp(); - * - * // Custom host - DNS rebinding protection only applied for localhost hosts - * const app = createMcpExpressApp({ host: '0.0.0.0' }); // No automatic DNS rebinding protection - * const app = createMcpExpressApp({ host: 'localhost' }); // DNS rebinding protection enabled - * - * // Custom allowed hosts for non-localhost binding - * const app = createMcpExpressApp({ host: '0.0.0.0', allowedHosts: ['myapp.local', 'localhost'] }); - * ``` - */ -export function createMcpExpressApp(options = {}) { - const { host = '127.0.0.1', allowedHosts } = options; - const app = express(); - app.use(express.json()); - // If allowedHosts is explicitly provided, use that for validation - if (allowedHosts) { - app.use(hostHeaderValidation(allowedHosts)); - } - else { - // Apply DNS rebinding protection automatically for localhost hosts - const localhostHosts = ['127.0.0.1', 'localhost', '::1']; - if (localhostHosts.includes(host)) { - app.use(localhostHostValidation()); - } - else if (host === '0.0.0.0' || host === '::') { - // Warn when binding to all interfaces without DNS rebinding protection - // eslint-disable-next-line no-console - console.warn(`Warning: Server is binding to ${host} without DNS rebinding protection. ` + - 'Consider using the allowedHosts option to restrict allowed hosts, ' + - 'or use authentication to protect your server.'); - } - } - return app; -} -//# sourceMappingURL=express.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map deleted file mode 100644 index 0ebc4c8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"express.js","sourceRoot":"","sources":["../../../src/server/express.ts"],"names":[],"mappings":"AAAA,OAAO,OAAoB,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAuBrG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAsC,EAAE;IACxE,MAAM,EAAE,IAAI,GAAG,WAAW,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAErD,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;IACtB,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAExB,kEAAkE;IAClE,IAAI,YAAY,EAAE,CAAC;QACf,GAAG,CAAC,GAAG,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC;SAAM,CAAC;QACJ,mEAAmE;QACnE,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,GAAG,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC,CAAC;QACvC,CAAC;aAAM,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAC7C,uEAAuE;YACvE,sCAAsC;YACtC,OAAO,CAAC,IAAI,CACR,iCAAiC,IAAI,qCAAqC;gBACtE,oEAAoE;gBACpE,+CAA+C,CACtD,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts deleted file mode 100644 index cfa236e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { Protocol, type NotificationOptions, type ProtocolOptions, type RequestOptions } from '../shared/protocol.js'; -import { type ClientCapabilities, type CreateMessageRequest, type CreateMessageResult, type CreateMessageResultWithTools, type CreateMessageRequestParamsBase, type CreateMessageRequestParamsWithTools, type ElicitRequestFormParams, type ElicitRequestURLParams, type ElicitResult, type Implementation, type ListRootsRequest, type LoggingMessageNotification, type ResourceUpdatedNotification, type ServerCapabilities, type ServerNotification, type ServerRequest, type ServerResult, type Request, type Notification, type Result } from '../types.js'; -import type { jsonSchemaValidator } from '../validation/types.js'; -import { AnyObjectSchema, SchemaOutput } from './zod-compat.js'; -import { RequestHandlerExtra } from '../shared/protocol.js'; -import { ExperimentalServerTasks } from '../experimental/tasks/server.js'; -export type ServerOptions = ProtocolOptions & { - /** - * Capabilities to advertise as being supported by this server. - */ - capabilities?: ServerCapabilities; - /** - * Optional instructions describing how to use the server and its features. - */ - instructions?: string; - /** - * JSON Schema validator for elicitation response validation. - * - * The validator is used to validate user input returned from elicitation - * requests against the requested schema. - * - * @default AjvJsonSchemaValidator - * - * @example - * ```typescript - * // ajv (default) - * const server = new Server( - * { name: 'my-server', version: '1.0.0' }, - * { - * capabilities: {} - * jsonSchemaValidator: new AjvJsonSchemaValidator() - * } - * ); - * - * // @cfworker/json-schema - * const server = new Server( - * { name: 'my-server', version: '1.0.0' }, - * { - * capabilities: {}, - * jsonSchemaValidator: new CfWorkerJsonSchemaValidator() - * } - * ); - * ``` - */ - jsonSchemaValidator?: jsonSchemaValidator; -}; -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed server - * const server = new Server({ - * name: "CustomServer", - * version: "1.0.0" - * }) - * ``` - * @deprecated Use `McpServer` instead for the high-level API. Only use `Server` for advanced use cases. - */ -export declare class Server extends Protocol { - private _serverInfo; - private _clientCapabilities?; - private _clientVersion?; - private _capabilities; - private _instructions?; - private _jsonSchemaValidator; - private _experimental?; - /** - * Callback for when initialization has fully completed (i.e., the client has sent an `initialized` notification). - */ - oninitialized?: () => void; - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo: Implementation, options?: ServerOptions); - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalServerTasks; - }; - private _loggingLevels; - private readonly LOG_LEVEL_SEVERITY; - private isMessageIgnored; - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities: ServerCapabilities): void; - /** - * Override request handler registration to enforce server-side validation for tools/call. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => ServerResult | ResultT | Promise): void; - protected assertCapabilityForMethod(method: RequestT['method']): void; - protected assertNotificationCapability(method: (ServerNotification | NotificationT)['method']): void; - protected assertRequestHandlerCapability(method: string): void; - protected assertTaskCapability(method: string): void; - protected assertTaskHandlerCapability(method: string): void; - private _oninitialize; - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities(): ClientCapabilities | undefined; - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion(): Implementation | undefined; - private getCapabilities; - ping(): Promise<{ - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Request LLM sampling from the client (without tools). - * Returns single content block for backwards compatibility. - */ - createMessage(params: CreateMessageRequestParamsBase, options?: RequestOptions): Promise; - /** - * Request LLM sampling from the client with tool support. - * Returns content that may be a single block or array (for parallel tool calls). - */ - createMessage(params: CreateMessageRequestParamsWithTools, options?: RequestOptions): Promise; - /** - * Request LLM sampling from the client. - * When tools may or may not be present, returns the union type. - */ - createMessage(params: CreateMessageRequest['params'], options?: RequestOptions): Promise; - /** - * Creates an elicitation request for the given parameters. - * For backwards compatibility, `mode` may be omitted for form requests and will default to `'form'`. - * @param params The parameters for the elicitation request. - * @param options Optional request options. - * @returns The result of the elicitation request. - */ - elicitInput(params: ElicitRequestFormParams | ElicitRequestURLParams, options?: RequestOptions): Promise; - /** - * Creates a reusable callback that, when invoked, will send a `notifications/elicitation/complete` - * notification for the specified elicitation ID. - * - * @param elicitationId The ID of the elicitation to mark as complete. - * @param options Optional notification options. Useful when the completion notification should be related to a prior request. - * @returns A function that emits the completion notification when awaited. - */ - createElicitationCompletionNotifier(elicitationId: string, options?: NotificationOptions): () => Promise; - listRoots(params?: ListRootsRequest['params'], options?: RequestOptions): Promise<{ - [x: string]: unknown; - roots: { - uri: string; - name?: string | undefined; - _meta?: Record | undefined; - }[]; - _meta?: { - [x: string]: unknown; - progressToken?: string | number | undefined; - "io.modelcontextprotocol/related-task"?: { - taskId: string; - } | undefined; - } | undefined; - }>; - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string): Promise; - sendResourceUpdated(params: ResourceUpdatedNotification['params']): Promise; - sendResourceListChanged(): Promise; - sendToolListChanged(): Promise; - sendPromptListChanged(): Promise; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map deleted file mode 100644 index fe0fa65..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names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;IAQnF,mBAAmB,CAAC,MAAM,EAAE,2BAA2B,CAAC,QAAQ,CAAC;IAOjE,uBAAuB;IAMvB,mBAAmB;IAInB,qBAAqB;CAG9B"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js deleted file mode 100644 index 51d060e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +++ /dev/null @@ -1,440 +0,0 @@ -import { mergeCapabilities, Protocol } from '../shared/protocol.js'; -import { CreateMessageResultSchema, CreateMessageResultWithToolsSchema, ElicitResultSchema, EmptyResultSchema, ErrorCode, InitializedNotificationSchema, InitializeRequestSchema, LATEST_PROTOCOL_VERSION, ListRootsResultSchema, LoggingLevelSchema, McpError, SetLevelRequestSchema, SUPPORTED_PROTOCOL_VERSIONS, CallToolRequestSchema, CallToolResultSchema, CreateTaskResultSchema } from '../types.js'; -import { AjvJsonSchemaValidator } from '../validation/ajv-provider.js'; -import { getObjectShape, isZ4Schema, safeParse } from './zod-compat.js'; -import { ExperimentalServerTasks } from '../experimental/tasks/server.js'; -import { assertToolsCallTaskCapability, assertClientRequestTaskCapability } from '../experimental/tasks/helpers.js'; -/** - * An MCP server on top of a pluggable transport. - * - * This server will automatically respond to the initialization flow as initiated from the client. - * - * To use with custom types, extend the base Request/Notification/Result types and pass them as type parameters: - * - * ```typescript - * // Custom schemas - * const CustomRequestSchema = RequestSchema.extend({...}) - * const CustomNotificationSchema = NotificationSchema.extend({...}) - * const CustomResultSchema = ResultSchema.extend({...}) - * - * // Type aliases - * type CustomRequest = z.infer - * type CustomNotification = z.infer - * type CustomResult = z.infer - * - * // Create typed server - * const server = new Server({ - * name: "CustomServer", - * version: "1.0.0" - * }) - * ``` - * @deprecated Use `McpServer` instead for the high-level API. Only use `Server` for advanced use cases. - */ -export class Server extends Protocol { - /** - * Initializes this server with the given name and version information. - */ - constructor(_serverInfo, options) { - super(options); - this._serverInfo = _serverInfo; - // Map log levels by session id - this._loggingLevels = new Map(); - // Map LogLevelSchema to severity index - this.LOG_LEVEL_SEVERITY = new Map(LoggingLevelSchema.options.map((level, index) => [level, index])); - // Is a message with the given level ignored in the log level set for the given session id? - this.isMessageIgnored = (level, sessionId) => { - const currentLevel = this._loggingLevels.get(sessionId); - return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false; - }; - this._capabilities = options?.capabilities ?? {}; - this._instructions = options?.instructions; - this._jsonSchemaValidator = options?.jsonSchemaValidator ?? new AjvJsonSchemaValidator(); - this.setRequestHandler(InitializeRequestSchema, request => this._oninitialize(request)); - this.setNotificationHandler(InitializedNotificationSchema, () => this.oninitialized?.()); - if (this._capabilities.logging) { - this.setRequestHandler(SetLevelRequestSchema, async (request, extra) => { - const transportSessionId = extra.sessionId || extra.requestInfo?.headers['mcp-session-id'] || undefined; - const { level } = request.params; - const parseResult = LoggingLevelSchema.safeParse(level); - if (parseResult.success) { - this._loggingLevels.set(transportSessionId, parseResult.data); - } - return {}; - }); - } - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new ExperimentalServerTasks(this) - }; - } - return this._experimental; - } - /** - * Registers new capabilities. This can only be called before connecting to a transport. - * - * The new capabilities will be merged with any existing capabilities previously given (e.g., at initialization). - */ - registerCapabilities(capabilities) { - if (this.transport) { - throw new Error('Cannot register capabilities after connecting to transport'); - } - this._capabilities = mergeCapabilities(this._capabilities, capabilities); - } - /** - * Override request handler registration to enforce server-side validation for tools/call. - */ - setRequestHandler(requestSchema, handler) { - const shape = getObjectShape(requestSchema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value using type-safe property access - let methodValue; - if (isZ4Schema(methodSchema)) { - const v4Schema = methodSchema; - const v4Def = v4Schema._zod?.def; - methodValue = v4Def?.value ?? v4Schema.value; - } - else { - const v3Schema = methodSchema; - const legacyDef = v3Schema._def; - methodValue = legacyDef?.value ?? v3Schema.value; - } - if (typeof methodValue !== 'string') { - throw new Error('Schema method literal must be a string'); - } - const method = methodValue; - if (method === 'tools/call') { - const wrappedHandler = async (request, extra) => { - const validatedRequest = safeParse(CallToolRequestSchema, request); - if (!validatedRequest.success) { - const errorMessage = validatedRequest.error instanceof Error ? validatedRequest.error.message : String(validatedRequest.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid tools/call request: ${errorMessage}`); - } - const { params } = validatedRequest.data; - const result = await Promise.resolve(handler(request, extra)); - // When task creation is requested, validate and return CreateTaskResult - if (params.task) { - const taskValidationResult = safeParse(CreateTaskResultSchema, result); - if (!taskValidationResult.success) { - const errorMessage = taskValidationResult.error instanceof Error - ? taskValidationResult.error.message - : String(taskValidationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid task creation result: ${errorMessage}`); - } - return taskValidationResult.data; - } - // For non-task requests, validate against CallToolResultSchema - const validationResult = safeParse(CallToolResultSchema, result); - if (!validationResult.success) { - const errorMessage = validationResult.error instanceof Error ? validationResult.error.message : String(validationResult.error); - throw new McpError(ErrorCode.InvalidParams, `Invalid tools/call result: ${errorMessage}`); - } - return validationResult.data; - }; - // Install the wrapped handler - return super.setRequestHandler(requestSchema, wrappedHandler); - } - // Other handlers use default behavior - return super.setRequestHandler(requestSchema, handler); - } - assertCapabilityForMethod(method) { - switch (method) { - case 'sampling/createMessage': - if (!this._clientCapabilities?.sampling) { - throw new Error(`Client does not support sampling (required for ${method})`); - } - break; - case 'elicitation/create': - if (!this._clientCapabilities?.elicitation) { - throw new Error(`Client does not support elicitation (required for ${method})`); - } - break; - case 'roots/list': - if (!this._clientCapabilities?.roots) { - throw new Error(`Client does not support listing roots (required for ${method})`); - } - break; - case 'ping': - // No specific capability required for ping - break; - } - } - assertNotificationCapability(method) { - switch (method) { - case 'notifications/message': - if (!this._capabilities.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'notifications/resources/updated': - case 'notifications/resources/list_changed': - if (!this._capabilities.resources) { - throw new Error(`Server does not support notifying about resources (required for ${method})`); - } - break; - case 'notifications/tools/list_changed': - if (!this._capabilities.tools) { - throw new Error(`Server does not support notifying of tool list changes (required for ${method})`); - } - break; - case 'notifications/prompts/list_changed': - if (!this._capabilities.prompts) { - throw new Error(`Server does not support notifying of prompt list changes (required for ${method})`); - } - break; - case 'notifications/elicitation/complete': - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error(`Client does not support URL elicitation (required for ${method})`); - } - break; - case 'notifications/cancelled': - // Cancellation notifications are always allowed - break; - case 'notifications/progress': - // Progress notifications are always allowed - break; - } - } - assertRequestHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - switch (method) { - case 'completion/complete': - if (!this._capabilities.completions) { - throw new Error(`Server does not support completions (required for ${method})`); - } - break; - case 'logging/setLevel': - if (!this._capabilities.logging) { - throw new Error(`Server does not support logging (required for ${method})`); - } - break; - case 'prompts/get': - case 'prompts/list': - if (!this._capabilities.prompts) { - throw new Error(`Server does not support prompts (required for ${method})`); - } - break; - case 'resources/list': - case 'resources/templates/list': - case 'resources/read': - if (!this._capabilities.resources) { - throw new Error(`Server does not support resources (required for ${method})`); - } - break; - case 'tools/call': - case 'tools/list': - if (!this._capabilities.tools) { - throw new Error(`Server does not support tools (required for ${method})`); - } - break; - case 'tasks/get': - case 'tasks/list': - case 'tasks/result': - case 'tasks/cancel': - if (!this._capabilities.tasks) { - throw new Error(`Server does not support tasks capability (required for ${method})`); - } - break; - case 'ping': - case 'initialize': - // No specific capability required for these methods - break; - } - } - assertTaskCapability(method) { - assertClientRequestTaskCapability(this._clientCapabilities?.tasks?.requests, method, 'Client'); - } - assertTaskHandlerCapability(method) { - // Task handlers are registered in Protocol constructor before _capabilities is initialized - // Skip capability check for task methods during initialization - if (!this._capabilities) { - return; - } - assertToolsCallTaskCapability(this._capabilities.tasks?.requests, method, 'Server'); - } - async _oninitialize(request) { - const requestedVersion = request.params.protocolVersion; - this._clientCapabilities = request.params.capabilities; - this._clientVersion = request.params.clientInfo; - const protocolVersion = SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion) ? requestedVersion : LATEST_PROTOCOL_VERSION; - return { - protocolVersion, - capabilities: this.getCapabilities(), - serverInfo: this._serverInfo, - ...(this._instructions && { instructions: this._instructions }) - }; - } - /** - * After initialization has completed, this will be populated with the client's reported capabilities. - */ - getClientCapabilities() { - return this._clientCapabilities; - } - /** - * After initialization has completed, this will be populated with information about the client's name and version. - */ - getClientVersion() { - return this._clientVersion; - } - getCapabilities() { - return this._capabilities; - } - async ping() { - return this.request({ method: 'ping' }, EmptyResultSchema); - } - // Implementation - async createMessage(params, options) { - // Capability check - only required when tools/toolChoice are provided - if (params.tools || params.toolChoice) { - if (!this._clientCapabilities?.sampling?.tools) { - throw new Error('Client does not support sampling tools capability.'); - } - } - // Message structure validation - always validate tool_use/tool_result pairs. - // These may appear even without tools/toolChoice in the current request when - // a previous sampling request returned tool_use and this is a follow-up with results. - if (params.messages.length > 0) { - const lastMessage = params.messages[params.messages.length - 1]; - const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [lastMessage.content]; - const hasToolResults = lastContent.some(c => c.type === 'tool_result'); - const previousMessage = params.messages.length > 1 ? params.messages[params.messages.length - 2] : undefined; - const previousContent = previousMessage - ? Array.isArray(previousMessage.content) - ? previousMessage.content - : [previousMessage.content] - : []; - const hasPreviousToolUse = previousContent.some(c => c.type === 'tool_use'); - if (hasToolResults) { - if (lastContent.some(c => c.type !== 'tool_result')) { - throw new Error('The last message must contain only tool_result content if any is present'); - } - if (!hasPreviousToolUse) { - throw new Error('tool_result blocks are not matching any tool_use from the previous message'); - } - } - if (hasPreviousToolUse) { - const toolUseIds = new Set(previousContent.filter(c => c.type === 'tool_use').map(c => c.id)); - const toolResultIds = new Set(lastContent.filter(c => c.type === 'tool_result').map(c => c.toolUseId)); - if (toolUseIds.size !== toolResultIds.size || ![...toolUseIds].every(id => toolResultIds.has(id))) { - throw new Error('ids of tool_result blocks and tool_use blocks from previous message do not match'); - } - } - } - // Use different schemas based on whether tools are provided - if (params.tools) { - return this.request({ method: 'sampling/createMessage', params }, CreateMessageResultWithToolsSchema, options); - } - return this.request({ method: 'sampling/createMessage', params }, CreateMessageResultSchema, options); - } - /** - * Creates an elicitation request for the given parameters. - * For backwards compatibility, `mode` may be omitted for form requests and will default to `'form'`. - * @param params The parameters for the elicitation request. - * @param options Optional request options. - * @returns The result of the elicitation request. - */ - async elicitInput(params, options) { - const mode = (params.mode ?? 'form'); - switch (mode) { - case 'url': { - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error('Client does not support url elicitation.'); - } - const urlParams = params; - return this.request({ method: 'elicitation/create', params: urlParams }, ElicitResultSchema, options); - } - case 'form': { - if (!this._clientCapabilities?.elicitation?.form) { - throw new Error('Client does not support form elicitation.'); - } - const formParams = params.mode === 'form' ? params : { ...params, mode: 'form' }; - const result = await this.request({ method: 'elicitation/create', params: formParams }, ElicitResultSchema, options); - if (result.action === 'accept' && result.content && formParams.requestedSchema) { - try { - const validator = this._jsonSchemaValidator.getValidator(formParams.requestedSchema); - const validationResult = validator(result.content); - if (!validationResult.valid) { - throw new McpError(ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${validationResult.errorMessage}`); - } - } - catch (error) { - if (error instanceof McpError) { - throw error; - } - throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error instanceof Error ? error.message : String(error)}`); - } - } - return result; - } - } - } - /** - * Creates a reusable callback that, when invoked, will send a `notifications/elicitation/complete` - * notification for the specified elicitation ID. - * - * @param elicitationId The ID of the elicitation to mark as complete. - * @param options Optional notification options. Useful when the completion notification should be related to a prior request. - * @returns A function that emits the completion notification when awaited. - */ - createElicitationCompletionNotifier(elicitationId, options) { - if (!this._clientCapabilities?.elicitation?.url) { - throw new Error('Client does not support URL elicitation (required for notifications/elicitation/complete)'); - } - return () => this.notification({ - method: 'notifications/elicitation/complete', - params: { - elicitationId - } - }, options); - } - async listRoots(params, options) { - return this.request({ method: 'roots/list', params }, ListRootsResultSchema, options); - } - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - async sendLoggingMessage(params, sessionId) { - if (this._capabilities.logging) { - if (!this.isMessageIgnored(params.level, sessionId)) { - return this.notification({ method: 'notifications/message', params }); - } - } - } - async sendResourceUpdated(params) { - return this.notification({ - method: 'notifications/resources/updated', - params - }); - } - async sendResourceListChanged() { - return this.notification({ - method: 'notifications/resources/list_changed' - }); - } - async sendToolListChanged() { - return this.notification({ method: 'notifications/tools/list_changed' }); - } - async sendPromptListChanged() { - return this.notification({ method: 'notifications/prompts/list_changed' }); - } -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map deleted file mode 100644 index bd94351..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAuE,MAAM,uBAAuB,CAAC;AACzI,OAAO,EAIH,yBAAyB,EAEzB,kCAAkC,EAMlC,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EAET,6BAA6B,EAE7B,uBAAuB,EAEvB,uBAAuB,EAEvB,qBAAqB,EAErB,kBAAkB,EAElB,QAAQ,EAMR,qBAAqB,EACrB,2BAA2B,EAG3B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EAIzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sB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G;IACH,KAAK,CAAC,kBAAkB,CAAC,MAA4C,EAAE,SAAkB;QACrF,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;gBAClD,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,CAAC;YAC1E,CAAC;QACL,CAAC;IACL,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,MAA6C;QACnE,OAAO,IAAI,CAAC,YAAY,CAAC;YACrB,MAAM,EAAE,iCAAiC;YACzC,MAAM;SACT,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,uBAAuB;QACzB,OAAO,IAAI,CAAC,YAAY,CAAC;YACrB,MAAM,EAAE,sCAAsC;SACjD,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,kCAAkC,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,qBAAqB;QACvB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,oCAAoC,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts deleted file mode 100644 index 1bc0c68..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +++ /dev/null @@ -1,364 +0,0 @@ -import { Server, ServerOptions } from './index.js'; -import { AnySchema, AnyObjectSchema, ZodRawShapeCompat, SchemaOutput, ShapeOutput } from './zod-compat.js'; -import { Implementation, CallToolResult, Resource, ListResourcesResult, GetPromptResult, ReadResourceResult, ServerRequest, ServerNotification, ToolAnnotations, LoggingMessageNotification, Result, ToolExecution } from '../types.js'; -import { UriTemplate, Variables } from '../shared/uriTemplate.js'; -import { RequestHandlerExtra } from '../shared/protocol.js'; -import { Transport } from '../shared/transport.js'; -import { ExperimentalMcpServerTasks } from '../experimental/tasks/mcp-server.js'; -import type { ToolTaskHandler } from '../experimental/tasks/interfaces.js'; -/** - * High-level MCP server that provides a simpler API for working with resources, tools, and prompts. - * For advanced usage (like sending notifications or setting custom request handlers), use the underlying - * Server instance available via the `server` property. - */ -export declare class McpServer { - /** - * The underlying Server instance, useful for advanced operations like sending notifications. - */ - readonly server: Server; - private _registeredResources; - private _registeredResourceTemplates; - private _registeredTools; - private _registeredPrompts; - private _experimental?; - constructor(serverInfo: Implementation, options?: ServerOptions); - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental(): { - tasks: ExperimentalMcpServerTasks; - }; - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - connect(transport: Transport): Promise; - /** - * Closes the connection. - */ - close(): Promise; - private _toolHandlersInitialized; - private setToolRequestHandlers; - /** - * Creates a tool error result. - * - * @param errorMessage - The error message. - * @returns The tool error result. - */ - private createToolError; - /** - * Validates tool input arguments against the tool's input schema. - */ - private validateToolInput; - /** - * Validates tool output against the tool's output schema. - */ - private validateToolOutput; - /** - * Executes a tool handler (either regular or task-based). - */ - private executeToolHandler; - /** - * Handles automatic task polling for tools with taskSupport 'optional'. - */ - private handleAutomaticTaskPolling; - private _completionHandlerInitialized; - private setCompletionRequestHandler; - private handlePromptCompletion; - private handleResourceCompletion; - private _resourceHandlersInitialized; - private setResourceRequestHandlers; - private _promptHandlersInitialized; - private setPromptRequestHandlers; - /** - * Registers a resource `name` at a fixed URI, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, uri: string, readCallback: ReadResourceCallback): RegisteredResource; - /** - * Registers a resource `name` at a fixed URI with metadata, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, uri: string, metadata: ResourceMetadata, readCallback: ReadResourceCallback): RegisteredResource; - /** - * Registers a resource `name` with a template pattern, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, template: ResourceTemplate, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - /** - * Registers a resource `name` with a template pattern and metadata, which will use the given callback to respond to read requests. - * @deprecated Use `registerResource` instead. - */ - resource(name: string, template: ResourceTemplate, metadata: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - /** - * Registers a resource with a config object and callback. - * For static resources, use a URI string. For dynamic resources, use a ResourceTemplate. - */ - registerResource(name: string, uriOrTemplate: string, config: ResourceMetadata, readCallback: ReadResourceCallback): RegisteredResource; - registerResource(name: string, uriOrTemplate: ResourceTemplate, config: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate; - private _createRegisteredResource; - private _createRegisteredResourceTemplate; - private _createRegisteredPrompt; - private _createRegisteredTool; - /** - * Registers a zero-argument tool `name`, which will run the given function when the client calls it. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, cb: ToolCallback): RegisteredTool; - /** - * Registers a zero-argument tool `name` (with a description) which will run the given function when the client calls it. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool taking either a parameter schema for validation or annotations for additional metadata. - * This unified overload handles both `tool(name, paramsSchema, cb)` and `tool(name, annotations, cb)` cases. - * - * Note: We use a union type for the second parameter because TypeScript cannot reliably disambiguate - * between ToolAnnotations and ZodRawShapeCompat during overload resolution, as both are plain object types. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool `name` (with a description) taking either parameter schema or annotations. - * This unified overload handles both `tool(name, description, paramsSchema, cb)` and - * `tool(name, description, annotations, cb)` cases. - * - * Note: We use a union type for the third parameter because TypeScript cannot reliably disambiguate - * between ToolAnnotations and ZodRawShapeCompat during overload resolution, as both are plain object types. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with both parameter schema and annotations. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with description, parameter schema, and annotations. - * @deprecated Use `registerTool` instead. - */ - tool(name: string, description: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback): RegisteredTool; - /** - * Registers a tool with a config object and callback. - */ - registerTool(name: string, config: { - title?: string; - description?: string; - inputSchema?: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - _meta?: Record; - }, cb: ToolCallback): RegisteredTool; - /** - * Registers a zero-argument prompt `name`, which will run the given function when the client calls it. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a zero-argument prompt `name` (with a description) which will run the given function when the client calls it. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, description: string, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt `name` accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, argsSchema: Args, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt `name` (with a description) accepting the given arguments, which must be an object containing named properties associated with Zod schemas. When the client calls it, the function will be run with the parsed and validated arguments. - * @deprecated Use `registerPrompt` instead. - */ - prompt(name: string, description: string, argsSchema: Args, cb: PromptCallback): RegisteredPrompt; - /** - * Registers a prompt with a config object and callback. - */ - registerPrompt(name: string, config: { - title?: string; - description?: string; - argsSchema?: Args; - }, cb: PromptCallback): RegisteredPrompt; - /** - * Checks if the server is connected to a transport. - * @returns True if the server is connected - */ - isConnected(): boolean; - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string): Promise; - /** - * Sends a resource list changed event to the client, if connected. - */ - sendResourceListChanged(): void; - /** - * Sends a tool list changed event to the client, if connected. - */ - sendToolListChanged(): void; - /** - * Sends a prompt list changed event to the client, if connected. - */ - sendPromptListChanged(): void; -} -/** - * A callback to complete one variable within a resource template's URI template. - */ -export type CompleteResourceTemplateCallback = (value: string, context?: { - arguments?: Record; -}) => string[] | Promise; -/** - * A resource template combines a URI pattern with optional functionality to enumerate - * all resources matching that pattern. - */ -export declare class ResourceTemplate { - private _callbacks; - private _uriTemplate; - constructor(uriTemplate: string | UriTemplate, _callbacks: { - /** - * A callback to list all resources matching this template. This is required to specified, even if `undefined`, to avoid accidentally forgetting resource listing. - */ - list: ListResourcesCallback | undefined; - /** - * An optional callback to autocomplete variables within the URI template. Useful for clients and users to discover possible values. - */ - complete?: { - [variable: string]: CompleteResourceTemplateCallback; - }; - }); - /** - * Gets the URI template pattern. - */ - get uriTemplate(): UriTemplate; - /** - * Gets the list callback, if one was provided. - */ - get listCallback(): ListResourcesCallback | undefined; - /** - * Gets the callback for completing a specific URI template variable, if one was provided. - */ - completeCallback(variable: string): CompleteResourceTemplateCallback | undefined; -} -export type BaseToolCallback, Args extends undefined | ZodRawShapeCompat | AnySchema> = Args extends ZodRawShapeCompat ? (args: ShapeOutput, extra: Extra) => SendResultT | Promise : Args extends AnySchema ? (args: SchemaOutput, extra: Extra) => SendResultT | Promise : (extra: Extra) => SendResultT | Promise; -/** - * Callback for a tool handler registered with Server.tool(). - * - * Parameters will include tool arguments, if applicable, as well as other request handler context. - * - * The callback should return: - * - `structuredContent` if the tool has an outputSchema defined - * - `content` if the tool does not have an outputSchema - * - Both fields are optional but typically one should be provided - */ -export type ToolCallback = BaseToolCallback, Args>; -/** - * Supertype that can handle both regular tools (simple callback) and task-based tools (task handler object). - */ -export type AnyToolHandler = ToolCallback | ToolTaskHandler; -export type RegisteredTool = { - title?: string; - description?: string; - inputSchema?: AnySchema; - outputSchema?: AnySchema; - annotations?: ToolAnnotations; - execution?: ToolExecution; - _meta?: Record; - handler: AnyToolHandler; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - description?: string; - paramsSchema?: InputArgs; - outputSchema?: OutputArgs; - annotations?: ToolAnnotations; - _meta?: Record; - callback?: ToolCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -/** - * Additional, optional information for annotating a resource. - */ -export type ResourceMetadata = Omit; -/** - * Callback to list all resources matching a given template. - */ -export type ListResourcesCallback = (extra: RequestHandlerExtra) => ListResourcesResult | Promise; -/** - * Callback to read a resource at a given URI. - */ -export type ReadResourceCallback = (uri: URL, extra: RequestHandlerExtra) => ReadResourceResult | Promise; -export type RegisteredResource = { - name: string; - title?: string; - metadata?: ResourceMetadata; - readCallback: ReadResourceCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string; - title?: string; - uri?: string | null; - metadata?: ResourceMetadata; - callback?: ReadResourceCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -/** - * Callback to read a resource at a given URI, following a filled-in URI template. - */ -export type ReadResourceTemplateCallback = (uri: URL, variables: Variables, extra: RequestHandlerExtra) => ReadResourceResult | Promise; -export type RegisteredResourceTemplate = { - resourceTemplate: ResourceTemplate; - title?: string; - metadata?: ResourceMetadata; - readCallback: ReadResourceTemplateCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - template?: ResourceTemplate; - metadata?: ResourceMetadata; - callback?: ReadResourceTemplateCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -type PromptArgsRawShape = ZodRawShapeCompat; -export type PromptCallback = Args extends PromptArgsRawShape ? (args: ShapeOutput, extra: RequestHandlerExtra) => GetPromptResult | Promise : (extra: RequestHandlerExtra) => GetPromptResult | Promise; -export type RegisteredPrompt = { - title?: string; - description?: string; - argsSchema?: AnyObjectSchema; - callback: PromptCallback; - enabled: boolean; - enable(): void; - disable(): void; - update(updates: { - name?: string | null; - title?: string; - description?: string; - argsSchema?: Args; - callback?: PromptCallback; - enabled?: boolean; - }): void; - remove(): void; -}; -export {}; -//# sourceMappingURL=mcp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map deleted file mode 100644 index 0b460bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/server/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EACH,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,WAAW,EASd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,cAAc,EAGd,cAAc,EAOd,QAAQ,EACR,mBAAmB,EAYnB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAE1B,MAAM,EAMN,aAAa,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG3E;;;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,MAAM,IAAI,IAAI,CAAC;CAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js deleted file mode 100644 index 23639ce..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +++ /dev/null @@ -1,913 +0,0 @@ -import { Server } from './index.js'; -import { normalizeObjectSchema, safeParseAsync, getObjectShape, objectFromShape, getParseErrorMessage, getSchemaDescription, isSchemaOptional, getLiteralValue } from './zod-compat.js'; -import { toJsonSchemaCompat } from './zod-json-schema-compat.js'; -import { McpError, ErrorCode, ListResourceTemplatesRequestSchema, ReadResourceRequestSchema, ListToolsRequestSchema, CallToolRequestSchema, ListResourcesRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, CompleteRequestSchema, assertCompleteRequestPrompt, assertCompleteRequestResourceTemplate } from '../types.js'; -import { isCompletable, getCompleter } from './completable.js'; -import { UriTemplate } from '../shared/uriTemplate.js'; -import { validateAndWarnToolName } from '../shared/toolNameValidation.js'; -import { ExperimentalMcpServerTasks } from '../experimental/tasks/mcp-server.js'; -import { ZodOptional } from 'zod'; -/** - * High-level MCP server that provides a simpler API for working with resources, tools, and prompts. - * For advanced usage (like sending notifications or setting custom request handlers), use the underlying - * Server instance available via the `server` property. - */ -export class McpServer { - constructor(serverInfo, options) { - this._registeredResources = {}; - this._registeredResourceTemplates = {}; - this._registeredTools = {}; - this._registeredPrompts = {}; - this._toolHandlersInitialized = false; - this._completionHandlerInitialized = false; - this._resourceHandlersInitialized = false; - this._promptHandlersInitialized = false; - this.server = new Server(serverInfo, options); - } - /** - * Access experimental features. - * - * WARNING: These APIs are experimental and may change without notice. - * - * @experimental - */ - get experimental() { - if (!this._experimental) { - this._experimental = { - tasks: new ExperimentalMcpServerTasks(this) - }; - } - return this._experimental; - } - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - async connect(transport) { - return await this.server.connect(transport); - } - /** - * Closes the connection. - */ - async close() { - await this.server.close(); - } - setToolRequestHandlers() { - if (this._toolHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(ListToolsRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(CallToolRequestSchema)); - this.server.registerCapabilities({ - tools: { - listChanged: true - } - }); - this.server.setRequestHandler(ListToolsRequestSchema, () => ({ - tools: Object.entries(this._registeredTools) - .filter(([, tool]) => tool.enabled) - .map(([name, tool]) => { - const toolDefinition = { - name, - title: tool.title, - description: tool.description, - inputSchema: (() => { - const obj = normalizeObjectSchema(tool.inputSchema); - return obj - ? toJsonSchemaCompat(obj, { - strictUnions: true, - pipeStrategy: 'input' - }) - : EMPTY_OBJECT_JSON_SCHEMA; - })(), - annotations: tool.annotations, - execution: tool.execution, - _meta: tool._meta - }; - if (tool.outputSchema) { - const obj = normalizeObjectSchema(tool.outputSchema); - if (obj) { - toolDefinition.outputSchema = toJsonSchemaCompat(obj, { - strictUnions: true, - pipeStrategy: 'output' - }); - } - } - return toolDefinition; - }) - })); - this.server.setRequestHandler(CallToolRequestSchema, async (request, extra) => { - try { - const tool = this._registeredTools[request.params.name]; - if (!tool) { - throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} not found`); - } - if (!tool.enabled) { - throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} disabled`); - } - const isTaskRequest = !!request.params.task; - const taskSupport = tool.execution?.taskSupport; - const isTaskHandler = 'createTask' in tool.handler; - // Validate task hint configuration - if ((taskSupport === 'required' || taskSupport === 'optional') && !isTaskHandler) { - throw new McpError(ErrorCode.InternalError, `Tool ${request.params.name} has taskSupport '${taskSupport}' but was not registered with registerToolTask`); - } - // Handle taskSupport 'required' without task augmentation - if (taskSupport === 'required' && !isTaskRequest) { - throw new McpError(ErrorCode.MethodNotFound, `Tool ${request.params.name} requires task augmentation (taskSupport: 'required')`); - } - // Handle taskSupport 'optional' without task augmentation - automatic polling - if (taskSupport === 'optional' && !isTaskRequest && isTaskHandler) { - return await this.handleAutomaticTaskPolling(tool, request, extra); - } - // Normal execution path - const args = await this.validateToolInput(tool, request.params.arguments, request.params.name); - const result = await this.executeToolHandler(tool, args, extra); - // Return CreateTaskResult immediately for task requests - if (isTaskRequest) { - return result; - } - // Validate output schema for non-task requests - await this.validateToolOutput(tool, result, request.params.name); - return result; - } - catch (error) { - if (error instanceof McpError) { - if (error.code === ErrorCode.UrlElicitationRequired) { - throw error; // Return the error to the caller without wrapping in CallToolResult - } - } - return this.createToolError(error instanceof Error ? error.message : String(error)); - } - }); - this._toolHandlersInitialized = true; - } - /** - * Creates a tool error result. - * - * @param errorMessage - The error message. - * @returns The tool error result. - */ - createToolError(errorMessage) { - return { - content: [ - { - type: 'text', - text: errorMessage - } - ], - isError: true - }; - } - /** - * Validates tool input arguments against the tool's input schema. - */ - async validateToolInput(tool, args, toolName) { - if (!tool.inputSchema) { - return undefined; - } - // Try to normalize to object schema first (for raw shapes and object schemas) - // If that fails, use the schema directly (for union/intersection/etc) - const inputObj = normalizeObjectSchema(tool.inputSchema); - const schemaToParse = inputObj ?? tool.inputSchema; - const parseResult = await safeParseAsync(schemaToParse, args); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = getParseErrorMessage(error); - throw new McpError(ErrorCode.InvalidParams, `Input validation error: Invalid arguments for tool ${toolName}: ${errorMessage}`); - } - return parseResult.data; - } - /** - * Validates tool output against the tool's output schema. - */ - async validateToolOutput(tool, result, toolName) { - if (!tool.outputSchema) { - return; - } - // Only validate CallToolResult, not CreateTaskResult - if (!('content' in result)) { - return; - } - if (result.isError) { - return; - } - if (!result.structuredContent) { - throw new McpError(ErrorCode.InvalidParams, `Output validation error: Tool ${toolName} has an output schema but no structured content was provided`); - } - // if the tool has an output schema, validate structured content - const outputObj = normalizeObjectSchema(tool.outputSchema); - const parseResult = await safeParseAsync(outputObj, result.structuredContent); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = getParseErrorMessage(error); - throw new McpError(ErrorCode.InvalidParams, `Output validation error: Invalid structured content for tool ${toolName}: ${errorMessage}`); - } - } - /** - * Executes a tool handler (either regular or task-based). - */ - async executeToolHandler(tool, args, extra) { - const handler = tool.handler; - const isTaskHandler = 'createTask' in handler; - if (isTaskHandler) { - if (!extra.taskStore) { - throw new Error('No task store provided.'); - } - const taskExtra = { ...extra, taskStore: extra.taskStore }; - if (tool.inputSchema) { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler.createTask(args, taskExtra)); - } - else { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler.createTask(taskExtra)); - } - } - if (tool.inputSchema) { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler(args, extra)); - } - else { - const typedHandler = handler; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(typedHandler(extra)); - } - } - /** - * Handles automatic task polling for tools with taskSupport 'optional'. - */ - async handleAutomaticTaskPolling(tool, request, extra) { - if (!extra.taskStore) { - throw new Error('No task store provided for task-capable tool.'); - } - // Validate input and create task - const args = await this.validateToolInput(tool, request.params.arguments, request.params.name); - const handler = tool.handler; - const taskExtra = { ...extra, taskStore: extra.taskStore }; - const createTaskResult = args // undefined only if tool.inputSchema is undefined - ? await Promise.resolve(handler.createTask(args, taskExtra)) - : // eslint-disable-next-line @typescript-eslint/no-explicit-any - await Promise.resolve(handler.createTask(taskExtra)); - // Poll until completion - const taskId = createTaskResult.task.taskId; - let task = createTaskResult.task; - const pollInterval = task.pollInterval ?? 5000; - while (task.status !== 'completed' && task.status !== 'failed' && task.status !== 'cancelled') { - await new Promise(resolve => setTimeout(resolve, pollInterval)); - const updatedTask = await extra.taskStore.getTask(taskId); - if (!updatedTask) { - throw new McpError(ErrorCode.InternalError, `Task ${taskId} not found during polling`); - } - task = updatedTask; - } - // Return the final result - return (await extra.taskStore.getTaskResult(taskId)); - } - setCompletionRequestHandler() { - if (this._completionHandlerInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(CompleteRequestSchema)); - this.server.registerCapabilities({ - completions: {} - }); - this.server.setRequestHandler(CompleteRequestSchema, async (request) => { - switch (request.params.ref.type) { - case 'ref/prompt': - assertCompleteRequestPrompt(request); - return this.handlePromptCompletion(request, request.params.ref); - case 'ref/resource': - assertCompleteRequestResourceTemplate(request); - return this.handleResourceCompletion(request, request.params.ref); - default: - throw new McpError(ErrorCode.InvalidParams, `Invalid completion reference: ${request.params.ref}`); - } - }); - this._completionHandlerInitialized = true; - } - async handlePromptCompletion(request, ref) { - const prompt = this._registeredPrompts[ref.name]; - if (!prompt) { - throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} not found`); - } - if (!prompt.enabled) { - throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} disabled`); - } - if (!prompt.argsSchema) { - return EMPTY_COMPLETION_RESULT; - } - const promptShape = getObjectShape(prompt.argsSchema); - const field = promptShape?.[request.params.argument.name]; - if (!isCompletable(field)) { - return EMPTY_COMPLETION_RESULT; - } - const completer = getCompleter(field); - if (!completer) { - return EMPTY_COMPLETION_RESULT; - } - const suggestions = await completer(request.params.argument.value, request.params.context); - return createCompletionResult(suggestions); - } - async handleResourceCompletion(request, ref) { - const template = Object.values(this._registeredResourceTemplates).find(t => t.resourceTemplate.uriTemplate.toString() === ref.uri); - if (!template) { - if (this._registeredResources[ref.uri]) { - // Attempting to autocomplete a fixed resource URI is not an error in the spec (but probably should be). - return EMPTY_COMPLETION_RESULT; - } - throw new McpError(ErrorCode.InvalidParams, `Resource template ${request.params.ref.uri} not found`); - } - const completer = template.resourceTemplate.completeCallback(request.params.argument.name); - if (!completer) { - return EMPTY_COMPLETION_RESULT; - } - const suggestions = await completer(request.params.argument.value, request.params.context); - return createCompletionResult(suggestions); - } - setResourceRequestHandlers() { - if (this._resourceHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(ListResourcesRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(ListResourceTemplatesRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(ReadResourceRequestSchema)); - this.server.registerCapabilities({ - resources: { - listChanged: true - } - }); - this.server.setRequestHandler(ListResourcesRequestSchema, async (request, extra) => { - const resources = Object.entries(this._registeredResources) - .filter(([_, resource]) => resource.enabled) - .map(([uri, resource]) => ({ - uri, - name: resource.name, - ...resource.metadata - })); - const templateResources = []; - for (const template of Object.values(this._registeredResourceTemplates)) { - if (!template.resourceTemplate.listCallback) { - continue; - } - const result = await template.resourceTemplate.listCallback(extra); - for (const resource of result.resources) { - templateResources.push({ - ...template.metadata, - // the defined resource metadata should override the template metadata if present - ...resource - }); - } - } - return { resources: [...resources, ...templateResources] }; - }); - this.server.setRequestHandler(ListResourceTemplatesRequestSchema, async () => { - const resourceTemplates = Object.entries(this._registeredResourceTemplates).map(([name, template]) => ({ - name, - uriTemplate: template.resourceTemplate.uriTemplate.toString(), - ...template.metadata - })); - return { resourceTemplates }; - }); - this.server.setRequestHandler(ReadResourceRequestSchema, async (request, extra) => { - const uri = new URL(request.params.uri); - // First check for exact resource match - const resource = this._registeredResources[uri.toString()]; - if (resource) { - if (!resource.enabled) { - throw new McpError(ErrorCode.InvalidParams, `Resource ${uri} disabled`); - } - return resource.readCallback(uri, extra); - } - // Then check templates - for (const template of Object.values(this._registeredResourceTemplates)) { - const variables = template.resourceTemplate.uriTemplate.match(uri.toString()); - if (variables) { - return template.readCallback(uri, variables, extra); - } - } - throw new McpError(ErrorCode.InvalidParams, `Resource ${uri} not found`); - }); - this._resourceHandlersInitialized = true; - } - setPromptRequestHandlers() { - if (this._promptHandlersInitialized) { - return; - } - this.server.assertCanSetRequestHandler(getMethodValue(ListPromptsRequestSchema)); - this.server.assertCanSetRequestHandler(getMethodValue(GetPromptRequestSchema)); - this.server.registerCapabilities({ - prompts: { - listChanged: true - } - }); - this.server.setRequestHandler(ListPromptsRequestSchema, () => ({ - prompts: Object.entries(this._registeredPrompts) - .filter(([, prompt]) => prompt.enabled) - .map(([name, prompt]) => { - return { - name, - title: prompt.title, - description: prompt.description, - arguments: prompt.argsSchema ? promptArgumentsFromSchema(prompt.argsSchema) : undefined - }; - }) - })); - this.server.setRequestHandler(GetPromptRequestSchema, async (request, extra) => { - const prompt = this._registeredPrompts[request.params.name]; - if (!prompt) { - throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} not found`); - } - if (!prompt.enabled) { - throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} disabled`); - } - if (prompt.argsSchema) { - const argsObj = normalizeObjectSchema(prompt.argsSchema); - const parseResult = await safeParseAsync(argsObj, request.params.arguments); - if (!parseResult.success) { - const error = 'error' in parseResult ? parseResult.error : 'Unknown error'; - const errorMessage = getParseErrorMessage(error); - throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for prompt ${request.params.name}: ${errorMessage}`); - } - const args = parseResult.data; - const cb = prompt.callback; - return await Promise.resolve(cb(args, extra)); - } - else { - const cb = prompt.callback; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return await Promise.resolve(cb(extra)); - } - }); - this._promptHandlersInitialized = true; - } - resource(name, uriOrTemplate, ...rest) { - let metadata; - if (typeof rest[0] === 'object') { - metadata = rest.shift(); - } - const readCallback = rest[0]; - if (typeof uriOrTemplate === 'string') { - if (this._registeredResources[uriOrTemplate]) { - throw new Error(`Resource ${uriOrTemplate} is already registered`); - } - const registeredResource = this._createRegisteredResource(name, undefined, uriOrTemplate, metadata, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResource; - } - else { - if (this._registeredResourceTemplates[name]) { - throw new Error(`Resource template ${name} is already registered`); - } - const registeredResourceTemplate = this._createRegisteredResourceTemplate(name, undefined, uriOrTemplate, metadata, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResourceTemplate; - } - } - registerResource(name, uriOrTemplate, config, readCallback) { - if (typeof uriOrTemplate === 'string') { - if (this._registeredResources[uriOrTemplate]) { - throw new Error(`Resource ${uriOrTemplate} is already registered`); - } - const registeredResource = this._createRegisteredResource(name, config.title, uriOrTemplate, config, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResource; - } - else { - if (this._registeredResourceTemplates[name]) { - throw new Error(`Resource template ${name} is already registered`); - } - const registeredResourceTemplate = this._createRegisteredResourceTemplate(name, config.title, uriOrTemplate, config, readCallback); - this.setResourceRequestHandlers(); - this.sendResourceListChanged(); - return registeredResourceTemplate; - } - } - _createRegisteredResource(name, title, uri, metadata, readCallback) { - const registeredResource = { - name, - title, - metadata, - readCallback, - enabled: true, - disable: () => registeredResource.update({ enabled: false }), - enable: () => registeredResource.update({ enabled: true }), - remove: () => registeredResource.update({ uri: null }), - update: updates => { - if (typeof updates.uri !== 'undefined' && updates.uri !== uri) { - delete this._registeredResources[uri]; - if (updates.uri) - this._registeredResources[updates.uri] = registeredResource; - } - if (typeof updates.name !== 'undefined') - registeredResource.name = updates.name; - if (typeof updates.title !== 'undefined') - registeredResource.title = updates.title; - if (typeof updates.metadata !== 'undefined') - registeredResource.metadata = updates.metadata; - if (typeof updates.callback !== 'undefined') - registeredResource.readCallback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredResource.enabled = updates.enabled; - this.sendResourceListChanged(); - } - }; - this._registeredResources[uri] = registeredResource; - return registeredResource; - } - _createRegisteredResourceTemplate(name, title, template, metadata, readCallback) { - const registeredResourceTemplate = { - resourceTemplate: template, - title, - metadata, - readCallback, - enabled: true, - disable: () => registeredResourceTemplate.update({ enabled: false }), - enable: () => registeredResourceTemplate.update({ enabled: true }), - remove: () => registeredResourceTemplate.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - delete this._registeredResourceTemplates[name]; - if (updates.name) - this._registeredResourceTemplates[updates.name] = registeredResourceTemplate; - } - if (typeof updates.title !== 'undefined') - registeredResourceTemplate.title = updates.title; - if (typeof updates.template !== 'undefined') - registeredResourceTemplate.resourceTemplate = updates.template; - if (typeof updates.metadata !== 'undefined') - registeredResourceTemplate.metadata = updates.metadata; - if (typeof updates.callback !== 'undefined') - registeredResourceTemplate.readCallback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredResourceTemplate.enabled = updates.enabled; - this.sendResourceListChanged(); - } - }; - this._registeredResourceTemplates[name] = registeredResourceTemplate; - // If the resource template has any completion callbacks, enable completions capability - const variableNames = template.uriTemplate.variableNames; - const hasCompleter = Array.isArray(variableNames) && variableNames.some(v => !!template.completeCallback(v)); - if (hasCompleter) { - this.setCompletionRequestHandler(); - } - return registeredResourceTemplate; - } - _createRegisteredPrompt(name, title, description, argsSchema, callback) { - const registeredPrompt = { - title, - description, - argsSchema: argsSchema === undefined ? undefined : objectFromShape(argsSchema), - callback, - enabled: true, - disable: () => registeredPrompt.update({ enabled: false }), - enable: () => registeredPrompt.update({ enabled: true }), - remove: () => registeredPrompt.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - delete this._registeredPrompts[name]; - if (updates.name) - this._registeredPrompts[updates.name] = registeredPrompt; - } - if (typeof updates.title !== 'undefined') - registeredPrompt.title = updates.title; - if (typeof updates.description !== 'undefined') - registeredPrompt.description = updates.description; - if (typeof updates.argsSchema !== 'undefined') - registeredPrompt.argsSchema = objectFromShape(updates.argsSchema); - if (typeof updates.callback !== 'undefined') - registeredPrompt.callback = updates.callback; - if (typeof updates.enabled !== 'undefined') - registeredPrompt.enabled = updates.enabled; - this.sendPromptListChanged(); - } - }; - this._registeredPrompts[name] = registeredPrompt; - // If any argument uses a Completable schema, enable completions capability - if (argsSchema) { - const hasCompletable = Object.values(argsSchema).some(field => { - const inner = field instanceof ZodOptional ? field._def?.innerType : field; - return isCompletable(inner); - }); - if (hasCompletable) { - this.setCompletionRequestHandler(); - } - } - return registeredPrompt; - } - _createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, execution, _meta, handler) { - // Validate tool name according to SEP specification - validateAndWarnToolName(name); - const registeredTool = { - title, - description, - inputSchema: getZodSchemaObject(inputSchema), - outputSchema: getZodSchemaObject(outputSchema), - annotations, - execution, - _meta, - handler: handler, - enabled: true, - disable: () => registeredTool.update({ enabled: false }), - enable: () => registeredTool.update({ enabled: true }), - remove: () => registeredTool.update({ name: null }), - update: updates => { - if (typeof updates.name !== 'undefined' && updates.name !== name) { - if (typeof updates.name === 'string') { - validateAndWarnToolName(updates.name); - } - delete this._registeredTools[name]; - if (updates.name) - this._registeredTools[updates.name] = registeredTool; - } - if (typeof updates.title !== 'undefined') - registeredTool.title = updates.title; - if (typeof updates.description !== 'undefined') - registeredTool.description = updates.description; - if (typeof updates.paramsSchema !== 'undefined') - registeredTool.inputSchema = objectFromShape(updates.paramsSchema); - if (typeof updates.outputSchema !== 'undefined') - registeredTool.outputSchema = objectFromShape(updates.outputSchema); - if (typeof updates.callback !== 'undefined') - registeredTool.handler = updates.callback; - if (typeof updates.annotations !== 'undefined') - registeredTool.annotations = updates.annotations; - if (typeof updates._meta !== 'undefined') - registeredTool._meta = updates._meta; - if (typeof updates.enabled !== 'undefined') - registeredTool.enabled = updates.enabled; - this.sendToolListChanged(); - } - }; - this._registeredTools[name] = registeredTool; - this.setToolRequestHandlers(); - this.sendToolListChanged(); - return registeredTool; - } - /** - * tool() implementation. Parses arguments passed to overrides defined above. - */ - tool(name, ...rest) { - if (this._registeredTools[name]) { - throw new Error(`Tool ${name} is already registered`); - } - let description; - let inputSchema; - let outputSchema; - let annotations; - // Tool properties are passed as separate arguments, with omissions allowed. - // Support for this style is frozen as of protocol version 2025-03-26. Future additions - // to tool definition should *NOT* be added. - if (typeof rest[0] === 'string') { - description = rest.shift(); - } - // Handle the different overload combinations - if (rest.length > 1) { - // We have at least one more arg before the callback - const firstArg = rest[0]; - if (isZodRawShapeCompat(firstArg)) { - // We have a params schema as the first arg - inputSchema = rest.shift(); - // Check if the next arg is potentially annotations - if (rest.length > 1 && typeof rest[0] === 'object' && rest[0] !== null && !isZodRawShapeCompat(rest[0])) { - // Case: tool(name, paramsSchema, annotations, cb) - // Or: tool(name, description, paramsSchema, annotations, cb) - annotations = rest.shift(); - } - } - else if (typeof firstArg === 'object' && firstArg !== null) { - // Not a ZodRawShapeCompat, so must be annotations in this position - // Case: tool(name, annotations, cb) - // Or: tool(name, description, annotations, cb) - annotations = rest.shift(); - } - } - const callback = rest[0]; - return this._createRegisteredTool(name, undefined, description, inputSchema, outputSchema, annotations, { taskSupport: 'forbidden' }, undefined, callback); - } - /** - * Registers a tool with a config object and callback. - */ - registerTool(name, config, cb) { - if (this._registeredTools[name]) { - throw new Error(`Tool ${name} is already registered`); - } - const { title, description, inputSchema, outputSchema, annotations, _meta } = config; - return this._createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, { taskSupport: 'forbidden' }, _meta, cb); - } - prompt(name, ...rest) { - if (this._registeredPrompts[name]) { - throw new Error(`Prompt ${name} is already registered`); - } - let description; - if (typeof rest[0] === 'string') { - description = rest.shift(); - } - let argsSchema; - if (rest.length > 1) { - argsSchema = rest.shift(); - } - const cb = rest[0]; - const registeredPrompt = this._createRegisteredPrompt(name, undefined, description, argsSchema, cb); - this.setPromptRequestHandlers(); - this.sendPromptListChanged(); - return registeredPrompt; - } - /** - * Registers a prompt with a config object and callback. - */ - registerPrompt(name, config, cb) { - if (this._registeredPrompts[name]) { - throw new Error(`Prompt ${name} is already registered`); - } - const { title, description, argsSchema } = config; - const registeredPrompt = this._createRegisteredPrompt(name, title, description, argsSchema, cb); - this.setPromptRequestHandlers(); - this.sendPromptListChanged(); - return registeredPrompt; - } - /** - * Checks if the server is connected to a transport. - * @returns True if the server is connected - */ - isConnected() { - return this.server.transport !== undefined; - } - /** - * Sends a logging message to the client, if connected. - * Note: You only need to send the parameters object, not the entire JSON RPC message - * @see LoggingMessageNotification - * @param params - * @param sessionId optional for stateless and backward compatibility - */ - async sendLoggingMessage(params, sessionId) { - return this.server.sendLoggingMessage(params, sessionId); - } - /** - * Sends a resource list changed event to the client, if connected. - */ - sendResourceListChanged() { - if (this.isConnected()) { - this.server.sendResourceListChanged(); - } - } - /** - * Sends a tool list changed event to the client, if connected. - */ - sendToolListChanged() { - if (this.isConnected()) { - this.server.sendToolListChanged(); - } - } - /** - * Sends a prompt list changed event to the client, if connected. - */ - sendPromptListChanged() { - if (this.isConnected()) { - this.server.sendPromptListChanged(); - } - } -} -/** - * A resource template combines a URI pattern with optional functionality to enumerate - * all resources matching that pattern. - */ -export class ResourceTemplate { - constructor(uriTemplate, _callbacks) { - this._callbacks = _callbacks; - this._uriTemplate = typeof uriTemplate === 'string' ? new UriTemplate(uriTemplate) : uriTemplate; - } - /** - * Gets the URI template pattern. - */ - get uriTemplate() { - return this._uriTemplate; - } - /** - * Gets the list callback, if one was provided. - */ - get listCallback() { - return this._callbacks.list; - } - /** - * Gets the callback for completing a specific URI template variable, if one was provided. - */ - completeCallback(variable) { - return this._callbacks.complete?.[variable]; - } -} -const EMPTY_OBJECT_JSON_SCHEMA = { - type: 'object', - properties: {} -}; -/** - * Checks if a value looks like a Zod schema by checking for parse/safeParse methods. - */ -function isZodTypeLike(value) { - return (value !== null && - typeof value === 'object' && - 'parse' in value && - typeof value.parse === 'function' && - 'safeParse' in value && - typeof value.safeParse === 'function'); -} -/** - * Checks if an object is a Zod schema instance (v3 or v4). - * - * Zod schemas have internal markers: - * - v3: `_def` property - * - v4: `_zod` property - * - * This includes transformed schemas like z.preprocess(), z.transform(), z.pipe(). - */ -function isZodSchemaInstance(obj) { - return '_def' in obj || '_zod' in obj || isZodTypeLike(obj); -} -/** - * Checks if an object is a "raw shape" - a plain object where values are Zod schemas. - * - * Raw shapes are used as shorthand: `{ name: z.string() }` instead of `z.object({ name: z.string() })`. - * - * IMPORTANT: This must NOT match actual Zod schema instances (like z.preprocess, z.pipe), - * which have internal properties that could be mistaken for schema values. - */ -function isZodRawShapeCompat(obj) { - if (typeof obj !== 'object' || obj === null) { - return false; - } - // If it's already a Zod schema instance, it's NOT a raw shape - if (isZodSchemaInstance(obj)) { - return false; - } - // Empty objects are valid raw shapes (tools with no parameters) - if (Object.keys(obj).length === 0) { - return true; - } - // A raw shape has at least one property that is a Zod schema - return Object.values(obj).some(isZodTypeLike); -} -/** - * Converts a provided Zod schema to a Zod object if it is a ZodRawShapeCompat, - * otherwise returns the schema as is. - */ -function getZodSchemaObject(schema) { - if (!schema) { - return undefined; - } - if (isZodRawShapeCompat(schema)) { - return objectFromShape(schema); - } - return schema; -} -function promptArgumentsFromSchema(schema) { - const shape = getObjectShape(schema); - if (!shape) - return []; - return Object.entries(shape).map(([name, field]) => { - // Get description - works for both v3 and v4 - const description = getSchemaDescription(field); - // Check if optional - works for both v3 and v4 - const isOptional = isSchemaOptional(field); - return { - name, - description, - required: !isOptional - }; - }); -} -function getMethodValue(schema) { - const shape = getObjectShape(schema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - // Extract literal value - works for both v3 and v4 - const value = getLiteralValue(methodSchema); - if (typeof value === 'string') { - return value; - } - throw new Error('Schema method literal must be a string'); -} -function createCompletionResult(suggestions) { - return { - completion: { - values: suggestions.slice(0, 100), - total: suggestions.length, - hasMore: suggestions.length > 100 - } - }; -} -const EMPTY_COMPLETION_RESULT = { - completion: { - values: [], - hasMore: false - } -}; -//# sourceMappingURL=mcp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map deleted file mode 100644 index 162f7e2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src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W,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;QAChD,+CAA+C;QAC/C,MAAM,UAAU,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC3C,OAAO;YACH,IAAI;YACJ,WAAW;YACX,QAAQ,EAAE,CAAC,UAAU;SACxB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,cAAc,CAAC,MAAuB;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,KAAK,EAAE,MAA+B,CAAC;IAC5D,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IAC1D,CAAC;IAED,mDAAmD;IACnD,MAAM,KAAK,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,sBAAsB,CAAC,WAAqB;IACjD,OAAO;QACH,UAAU,EAAE;YACR,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;YACjC,KAAK,EAAE,WAAW,CAAC,MAAM;YACzB,OAAO,EAAE,WAAW,CAAC,MAAM,GAAG,GAAG;SACpC;KACJ,CAAC;AACN,CAAC;AAED,MAAM,uBAAuB,GAAmB;IAC5C,UAAU,EAAE;QACR,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,KAAK;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts deleted file mode 100644 index cb526d8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { RequestHandler } from 'express'; -/** - * Express middleware for DNS rebinding protection. - * Validates Host header hostname (port-agnostic) against an allowed list. - * - * This is particularly important for servers without authorization or HTTPS, - * such as localhost servers or development servers. DNS rebinding attacks can - * bypass same-origin policy by manipulating DNS to point a domain to a - * localhost address, allowing malicious websites to access your local server. - * - * @param allowedHostnames - List of allowed hostnames (without ports). - * For IPv6, provide the address with brackets (e.g., '[::1]'). - * @returns Express middleware function - * - * @example - * ```typescript - * const middleware = hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); - * app.use(middleware); - * ``` - */ -export declare function hostHeaderValidation(allowedHostnames: string[]): RequestHandler; -/** - * Convenience middleware for localhost DNS rebinding protection. - * Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames. - * - * @example - * ```typescript - * app.use(localhostHostValidation()); - * ``` - */ -export declare function localhostHostValidation(): RequestHandler; -//# sourceMappingURL=hostHeaderValidation.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map deleted file mode 100644 index c550324..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hostHeaderValidation.d.ts","sourceRoot":"","sources":["../../../../src/server/middleware/hostHeaderValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,cAAc,EAAE,MAAM,SAAS,CAAC;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,cAAc,CA4C/E;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,IAAI,cAAc,CAExD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js deleted file mode 100644 index 79922a2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Express middleware for DNS rebinding protection. - * Validates Host header hostname (port-agnostic) against an allowed list. - * - * This is particularly important for servers without authorization or HTTPS, - * such as localhost servers or development servers. DNS rebinding attacks can - * bypass same-origin policy by manipulating DNS to point a domain to a - * localhost address, allowing malicious websites to access your local server. - * - * @param allowedHostnames - List of allowed hostnames (without ports). - * For IPv6, provide the address with brackets (e.g., '[::1]'). - * @returns Express middleware function - * - * @example - * ```typescript - * const middleware = hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); - * app.use(middleware); - * ``` - */ -export function hostHeaderValidation(allowedHostnames) { - return (req, res, next) => { - const hostHeader = req.headers.host; - if (!hostHeader) { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Missing Host header' - }, - id: null - }); - return; - } - // Use URL API to parse hostname (handles IPv4, IPv6, and regular hostnames) - let hostname; - try { - hostname = new URL(`http://${hostHeader}`).hostname; - } - catch { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: `Invalid Host header: ${hostHeader}` - }, - id: null - }); - return; - } - if (!allowedHostnames.includes(hostname)) { - res.status(403).json({ - jsonrpc: '2.0', - error: { - code: -32000, - message: `Invalid Host: ${hostname}` - }, - id: null - }); - return; - } - next(); - }; -} -/** - * Convenience middleware for localhost DNS rebinding protection. - * Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames. - * - * @example - * ```typescript - * app.use(localhostHostValidation()); - * ``` - */ -export function localhostHostValidation() { - return hostHeaderValidation(['localhost', '127.0.0.1', '[::1]']); -} -//# sourceMappingURL=hostHeaderValidation.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map deleted file mode 100644 index f04fdfd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hostHeaderValidation.js","sourceRoot":"","sources":["../../../../src/server/middleware/hostHeaderValidation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,oBAAoB,CAAC,gBAA0B;IAC3D,OAAO,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;QACvD,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC;QACpC,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACjB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE;oBACH,IAAI,EAAE,CAAC,KAAK;oBACZ,OAAO,EAAE,qBAAqB;iBACjC;gBACD,EAAE,EAAE,IAAI;aACX,CAAC,CAAC;YACH,OAAO;QACX,CAAC;QAED,4EAA4E;QAC5E,IAAI,QAAgB,CAAC;QACrB,IAAI,CAAC;YACD,QAAQ,GAAG,IAAI,GAAG,CAAC,UAAU,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC;QACxD,CAAC;QAAC,MAAM,CAAC;YACL,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACjB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE;oBACH,IAAI,EAAE,CAAC,KAAK;oBACZ,OAAO,EAAE,wBAAwB,UAAU,EAAE;iBAChD;gBACD,EAAE,EAAE,IAAI;aACX,CAAC,CAAC;YACH,OAAO;QACX,CAAC;QAED,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBACjB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE;oBACH,IAAI,EAAE,CAAC,KAAK;oBACZ,OAAO,EAAE,iBAAiB,QAAQ,EAAE;iBACvC;gBACD,EAAE,EAAE,IAAI;aACX,CAAC,CAAC;YACH,OAAO;QACX,CAAC;QACD,IAAI,EAAE,CAAC;IACX,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB;IACnC,OAAO,oBAAoB,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts deleted file mode 100644 index 7fa42a5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Transport } from '../shared/transport.js'; -import { JSONRPCMessage, MessageExtraInfo } from '../types.js'; -import { AuthInfo } from './auth/types.js'; -/** - * Configuration options for SSEServerTransport. - */ -export interface SSEServerTransportOptions { - /** - * List of allowed host header values for DNS rebinding protection. - * If not specified, host validation is disabled. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - allowedHosts?: string[]; - /** - * List of allowed origin header values for DNS rebinding protection. - * If not specified, origin validation is disabled. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - allowedOrigins?: string[]; - /** - * Enable DNS rebinding protection (requires allowedHosts and/or allowedOrigins to be configured). - * Default is false for backwards compatibility. - * @deprecated Use the `hostHeaderValidation` middleware from `@modelcontextprotocol/sdk/server/middleware/hostHeaderValidation.js` instead, - * or use `createMcpExpressApp` from `@modelcontextprotocol/sdk/server/express.js` which includes localhost protection by default. - */ - enableDnsRebindingProtection?: boolean; -} -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - * @deprecated SSEServerTransport is deprecated. Use StreamableHTTPServerTransport instead. - */ -export declare class SSEServerTransport implements Transport { - private _endpoint; - private res; - private _sseResponse?; - private _sessionId; - private _options; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: MessageExtraInfo) => void; - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint: string, res: ServerResponse, options?: SSEServerTransportOptions); - /** - * Validates request headers for DNS rebinding protection. - * @returns Error message if validation fails, undefined if validation passes. - */ - private validateRequestHeaders; - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - start(): Promise; - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - handlePostMessage(req: IncomingMessage & { - auth?: AuthInfo; - }, res: ServerResponse, parsedBody?: unknown): Promise; - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - handleMessage(message: unknown, extra?: MessageExtraInfo): Promise; - close(): Promise; - send(message: JSONRPCMessage): Promise; - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId(): string; -} -//# sourceMappingURL=sse.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map deleted file mode 100644 index c94a521..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../src/server/sse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAwB,gBAAgB,EAAe,MAAM,aAAa,CAAC;AAGlG,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,YAAW,SAAS;IAY5C,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,GAAG;IAZf,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAExE;;OAEG;gBAES,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,yBAAyB;IAMvC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAyB9B;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA8B5B;;;;OAIG;IACG,iBAAiB,CAAC,GAAG,EAAE,eAAe,GAAG;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA+C7H;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAYxE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAQlD;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js deleted file mode 100644 index 5d0cd8d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +++ /dev/null @@ -1,158 +0,0 @@ -import { randomUUID } from 'node:crypto'; -import { JSONRPCMessageSchema } from '../types.js'; -import getRawBody from 'raw-body'; -import contentType from 'content-type'; -import { URL } from 'node:url'; -const MAXIMUM_MESSAGE_SIZE = '4mb'; -/** - * Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests. - * - * This transport is only available in Node.js environments. - * @deprecated SSEServerTransport is deprecated. Use StreamableHTTPServerTransport instead. - */ -export class SSEServerTransport { - /** - * Creates a new SSE server transport, which will direct the client to POST messages to the relative or absolute URL identified by `_endpoint`. - */ - constructor(_endpoint, res, options) { - this._endpoint = _endpoint; - this.res = res; - this._sessionId = randomUUID(); - this._options = options || { enableDnsRebindingProtection: false }; - } - /** - * Validates request headers for DNS rebinding protection. - * @returns Error message if validation fails, undefined if validation passes. - */ - validateRequestHeaders(req) { - // Skip validation if protection is not enabled - if (!this._options.enableDnsRebindingProtection) { - return undefined; - } - // Validate Host header if allowedHosts is configured - if (this._options.allowedHosts && this._options.allowedHosts.length > 0) { - const hostHeader = req.headers.host; - if (!hostHeader || !this._options.allowedHosts.includes(hostHeader)) { - return `Invalid Host header: ${hostHeader}`; - } - } - // Validate Origin header if allowedOrigins is configured - if (this._options.allowedOrigins && this._options.allowedOrigins.length > 0) { - const originHeader = req.headers.origin; - if (originHeader && !this._options.allowedOrigins.includes(originHeader)) { - return `Invalid Origin header: ${originHeader}`; - } - } - return undefined; - } - /** - * Handles the initial SSE connection request. - * - * This should be called when a GET request is made to establish the SSE stream. - */ - async start() { - if (this._sseResponse) { - throw new Error('SSEServerTransport already started! If using Server class, note that connect() calls start() automatically.'); - } - this.res.writeHead(200, { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }); - // Send the endpoint event - // Use a dummy base URL because this._endpoint is relative. - // This allows using URL/URLSearchParams for robust parameter handling. - const dummyBase = 'http://localhost'; // Any valid base works - const endpointUrl = new URL(this._endpoint, dummyBase); - endpointUrl.searchParams.set('sessionId', this._sessionId); - // Reconstruct the relative URL string (pathname + search + hash) - const relativeUrlWithSession = endpointUrl.pathname + endpointUrl.search + endpointUrl.hash; - this.res.write(`event: endpoint\ndata: ${relativeUrlWithSession}\n\n`); - this._sseResponse = this.res; - this.res.on('close', () => { - this._sseResponse = undefined; - this.onclose?.(); - }); - } - /** - * Handles incoming POST messages. - * - * This should be called when a POST request is made to send a message to the server. - */ - async handlePostMessage(req, res, parsedBody) { - if (!this._sseResponse) { - const message = 'SSE connection not established'; - res.writeHead(500).end(message); - throw new Error(message); - } - // Validate request headers for DNS rebinding protection - const validationError = this.validateRequestHeaders(req); - if (validationError) { - res.writeHead(403).end(validationError); - this.onerror?.(new Error(validationError)); - return; - } - const authInfo = req.auth; - const requestInfo = { headers: req.headers }; - let body; - try { - const ct = contentType.parse(req.headers['content-type'] ?? ''); - if (ct.type !== 'application/json') { - throw new Error(`Unsupported content-type: ${ct.type}`); - } - body = - parsedBody ?? - (await getRawBody(req, { - limit: MAXIMUM_MESSAGE_SIZE, - encoding: ct.parameters.charset ?? 'utf-8' - })); - } - catch (error) { - res.writeHead(400).end(String(error)); - this.onerror?.(error); - return; - } - try { - await this.handleMessage(typeof body === 'string' ? JSON.parse(body) : body, { requestInfo, authInfo }); - } - catch { - res.writeHead(400).end(`Invalid message: ${body}`); - return; - } - res.writeHead(202).end('Accepted'); - } - /** - * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST. - */ - async handleMessage(message, extra) { - let parsedMessage; - try { - parsedMessage = JSONRPCMessageSchema.parse(message); - } - catch (error) { - this.onerror?.(error); - throw error; - } - this.onmessage?.(parsedMessage, extra); - } - async close() { - this._sseResponse?.end(); - this._sseResponse = undefined; - this.onclose?.(); - } - async send(message) { - if (!this._sseResponse) { - throw new Error('Not connected'); - } - this._sseResponse.write(`event: message\ndata: ${JSON.stringify(message)}\n\n`); - } - /** - * Returns the session ID for this transport. - * - * This can be used to route incoming POST requests. - */ - get sessionId() { - return this._sessionId; - } -} -//# sourceMappingURL=sse.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map deleted file mode 100644 index 55ad8aa..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sse.js","sourceRoot":"","sources":["../../../src/server/sse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAkB,oBAAoB,EAAiC,MAAM,aAAa,CAAC;AAClG,OAAO,UAAU,MAAM,UAAU,CAAC;AAClC,OAAO,WAAW,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAA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AED;;;;OAIG;IACH,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts deleted file mode 100644 index 83af572..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Readable, Writable } from 'node:stream'; -import { JSONRPCMessage } from '../types.js'; -import { Transport } from '../shared/transport.js'; -/** - * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -export declare class StdioServerTransport implements Transport { - private _stdin; - private _stdout; - private _readBuffer; - private _started; - constructor(_stdin?: Readable, _stdout?: Writable); - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage) => void; - _ondata: (chunk: Buffer) => void; - _onerror: (error: Error) => void; - /** - * Starts listening for messages on stdin. - */ - start(): Promise; - private processReadBuffer; - close(): Promise; - send(message: JSONRPCMessage): Promise; -} -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map deleted file mode 100644 index fdd2dfe..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/server/stdio.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IAK9C,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IALnB,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,QAAQ,CAAS;gBAGb,MAAM,GAAE,QAAwB,EAChC,OAAO,GAAE,QAAyB;IAG9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAG9C,OAAO,UAAW,MAAM,UAGtB;IACF,QAAQ,UAAW,KAAK,UAEtB;IAEF;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,OAAO,CAAC,iBAAiB;IAenB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB5B,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAU/C"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js deleted file mode 100644 index 727fe70..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +++ /dev/null @@ -1,75 +0,0 @@ -import process from 'node:process'; -import { ReadBuffer, serializeMessage } from '../shared/stdio.js'; -/** - * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout. - * - * This transport is only available in Node.js environments. - */ -export class StdioServerTransport { - constructor(_stdin = process.stdin, _stdout = process.stdout) { - this._stdin = _stdin; - this._stdout = _stdout; - this._readBuffer = new ReadBuffer(); - this._started = false; - // Arrow functions to bind `this` properly, while maintaining function identity. - this._ondata = (chunk) => { - this._readBuffer.append(chunk); - this.processReadBuffer(); - }; - this._onerror = (error) => { - this.onerror?.(error); - }; - } - /** - * Starts listening for messages on stdin. - */ - async start() { - if (this._started) { - throw new Error('StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.'); - } - this._started = true; - this._stdin.on('data', this._ondata); - this._stdin.on('error', this._onerror); - } - processReadBuffer() { - while (true) { - try { - const message = this._readBuffer.readMessage(); - if (message === null) { - break; - } - this.onmessage?.(message); - } - catch (error) { - this.onerror?.(error); - } - } - } - async close() { - // Remove our event listeners first - this._stdin.off('data', this._ondata); - this._stdin.off('error', this._onerror); - // Check if we were the only data listener - const remainingDataListeners = this._stdin.listenerCount('data'); - if (remainingDataListeners === 0) { - // Only pause stdin if we were the only listener - // This prevents interfering with other parts of the application that might be using stdin - this._stdin.pause(); - } - // Clear the buffer and notify closure - this._readBuffer.clear(); - this.onclose?.(); - } - send(message) { - return new Promise(resolve => { - const json = serializeMessage(message); - if (this._stdout.write(json)) { - resolve(); - } - else { - this._stdout.once('drain', resolve); - } - }); - } -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map deleted file mode 100644 index 307a744..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/server/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAIlE;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IAI7B,YACY,SAAmB,OAAO,CAAC,KAAK,EAChC,UAAoB,OAAO,CAAC,MAAM;QADlC,WAAM,GAAN,MAAM,CAA0B;QAChC,YAAO,GAAP,OAAO,CAA2B;QALtC,gBAAW,GAAe,IAAI,UAAU,EAAE,CAAC;QAC3C,aAAQ,GAAG,KAAK,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IAAI,CAAC,QAAQ,CAAC,CAAC;QAExC,0CAA0C;QAC1C,MAAM,sBAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,sBAAsB,KAAK,CAAC,EAAE,CAAC;YAC/B,gDAAgD;YAChD,0FAA0F;YAC1F,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC;QAED,sCAAsC;QACtC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IACrB,CAAC;IAED,IAAI,CAAC,OAAuB;QACxB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YACzB,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3B,OAAO,EAAE,CAAC;YACd,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts deleted file mode 100644 index 5d5564b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Node.js HTTP Streamable HTTP Server Transport - * - * This is a thin wrapper around `WebStandardStreamableHTTPServerTransport` that provides - * compatibility with Node.js HTTP server (IncomingMessage/ServerResponse). - * - * For web-standard environments (Cloudflare Workers, Deno, Bun), use `WebStandardStreamableHTTPServerTransport` directly. - */ -import { IncomingMessage, ServerResponse } from 'node:http'; -import { Transport } from '../shared/transport.js'; -import { AuthInfo } from './auth/types.js'; -import { MessageExtraInfo, JSONRPCMessage, RequestId } from '../types.js'; -import { WebStandardStreamableHTTPServerTransportOptions, EventStore, StreamId, EventId } from './webStandardStreamableHttp.js'; -export type { EventStore, StreamId, EventId }; -/** - * Configuration options for StreamableHTTPServerTransport - * - * This is an alias for WebStandardStreamableHTTPServerTransportOptions for backward compatibility. - */ -export type StreamableHTTPServerTransportOptions = WebStandardStreamableHTTPServerTransportOptions; -/** - * Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It supports both SSE streaming and direct HTTP responses. - * - * This is a wrapper around `WebStandardStreamableHTTPServerTransport` that provides Node.js HTTP compatibility. - * It uses the `@hono/node-server` library to convert between Node.js HTTP and Web Standard APIs. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: () => randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Using with pre-parsed request body - * app.post('/mcp', (req, res) => { - * transport.handleRequest(req, res, req.body); - * }); - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export declare class StreamableHTTPServerTransport implements Transport { - private _webStandardTransport; - private _requestListener; - private _requestContext; - constructor(options?: StreamableHTTPServerTransportOptions); - /** - * Gets the session ID for this transport instance. - */ - get sessionId(): string | undefined; - /** - * Sets callback for when the transport is closed. - */ - set onclose(handler: (() => void) | undefined); - get onclose(): (() => void) | undefined; - /** - * Sets callback for transport errors. - */ - set onerror(handler: ((error: Error) => void) | undefined); - get onerror(): ((error: Error) => void) | undefined; - /** - * Sets callback for incoming messages. - */ - set onmessage(handler: ((message: JSONRPCMessage, extra?: MessageExtraInfo) => void) | undefined); - get onmessage(): ((message: JSONRPCMessage, extra?: MessageExtraInfo) => void) | undefined; - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - start(): Promise; - /** - * Closes the transport and all active connections. - */ - close(): Promise; - /** - * Sends a JSON-RPC message through the transport. - */ - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - }): Promise; - /** - * Handles an incoming HTTP request, whether GET or POST. - * - * This method converts Node.js HTTP objects to Web Standard Request/Response - * and delegates to the underlying WebStandardStreamableHTTPServerTransport. - * - * @param req - Node.js IncomingMessage, optionally with auth property from middleware - * @param res - Node.js ServerResponse - * @param parsedBody - Optional pre-parsed body from body-parser middleware - */ - handleRequest(req: IncomingMessage & { - auth?: AuthInfo; - }, res: ServerResponse, parsedBody?: unknown): Promise; - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId: RequestId): void; - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream(): void; -} -//# sourceMappingURL=streamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map deleted file mode 100644 index 0c767d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.d.ts","sourceRoot":"","sources":["../../../src/server/streamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAA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I,CAAC,GAAG,SAAS,CAEzF;IAED;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9F;;;;;;;;;OASG;IACG,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG;QAAE,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBzH;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAI1C;;;OAGG;IACH,wBAAwB,IAAI,IAAI;CAGnC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js deleted file mode 100644 index d30bca4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Node.js HTTP Streamable HTTP Server Transport - * - * This is a thin wrapper around `WebStandardStreamableHTTPServerTransport` that provides - * compatibility with Node.js HTTP server (IncomingMessage/ServerResponse). - * - * For web-standard environments (Cloudflare Workers, Deno, Bun), use `WebStandardStreamableHTTPServerTransport` directly. - */ -import { getRequestListener } from '@hono/node-server'; -import { WebStandardStreamableHTTPServerTransport } from './webStandardStreamableHttp.js'; -/** - * Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. - * It supports both SSE streaming and direct HTTP responses. - * - * This is a wrapper around `WebStandardStreamableHTTPServerTransport` that provides Node.js HTTP compatibility. - * It uses the `@hono/node-server` library to convert between Node.js HTTP and Web Standard APIs. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: () => randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new StreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Using with pre-parsed request body - * app.post('/mcp', (req, res) => { - * transport.handleRequest(req, res, req.body); - * }); - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export class StreamableHTTPServerTransport { - constructor(options = {}) { - // Store auth and parsedBody per request for passing through to handleRequest - this._requestContext = new WeakMap(); - this._webStandardTransport = new WebStandardStreamableHTTPServerTransport(options); - // Create a request listener that wraps the web standard transport - // getRequestListener converts Node.js HTTP to Web Standard and properly handles SSE streaming - this._requestListener = getRequestListener(async (webRequest) => { - // Get context if available (set during handleRequest) - const context = this._requestContext.get(webRequest); - return this._webStandardTransport.handleRequest(webRequest, { - authInfo: context?.authInfo, - parsedBody: context?.parsedBody - }); - }); - } - /** - * Gets the session ID for this transport instance. - */ - get sessionId() { - return this._webStandardTransport.sessionId; - } - /** - * Sets callback for when the transport is closed. - */ - set onclose(handler) { - this._webStandardTransport.onclose = handler; - } - get onclose() { - return this._webStandardTransport.onclose; - } - /** - * Sets callback for transport errors. - */ - set onerror(handler) { - this._webStandardTransport.onerror = handler; - } - get onerror() { - return this._webStandardTransport.onerror; - } - /** - * Sets callback for incoming messages. - */ - set onmessage(handler) { - this._webStandardTransport.onmessage = handler; - } - get onmessage() { - return this._webStandardTransport.onmessage; - } - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - async start() { - return this._webStandardTransport.start(); - } - /** - * Closes the transport and all active connections. - */ - async close() { - return this._webStandardTransport.close(); - } - /** - * Sends a JSON-RPC message through the transport. - */ - async send(message, options) { - return this._webStandardTransport.send(message, options); - } - /** - * Handles an incoming HTTP request, whether GET or POST. - * - * This method converts Node.js HTTP objects to Web Standard Request/Response - * and delegates to the underlying WebStandardStreamableHTTPServerTransport. - * - * @param req - Node.js IncomingMessage, optionally with auth property from middleware - * @param res - Node.js ServerResponse - * @param parsedBody - Optional pre-parsed body from body-parser middleware - */ - async handleRequest(req, res, parsedBody) { - // Store context for this request to pass through auth and parsedBody - // We need to intercept the request creation to attach this context - const authInfo = req.auth; - // Create a custom handler that includes our context - const handler = getRequestListener(async (webRequest) => { - return this._webStandardTransport.handleRequest(webRequest, { - authInfo, - parsedBody - }); - }); - // Delegate to the request listener which handles all the Node.js <-> Web Standard conversion - // including proper SSE streaming support - await handler(req, res); - } - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId) { - this._webStandardTransport.closeSSEStream(requestId); - } - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream() { - this._webStandardTransport.closeStandaloneSSEStream(); - } -} -//# sourceMappingURL=streamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map deleted file mode 100644 index 009e787..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"streamableHttp.js","sourceRoot":"","sources":["../../../src/server/streamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,OAAO,EACH,wCAAwC,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;IACnD,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK;QACP,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAuB,EAAE,OAA0C;QAC1E,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,aAAa,CAAC,GAA0C,EAAE,GAAmB,EAAE,UAAoB;QACrG,qEAAqE;QACrE,mEAAmE;QACnE,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC;QAE1B,oDAAoD;QACpD,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,EAAE,UAAmB,EAAE,EAAE;YAC7D,OAAO,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,UAAU,EAAE;gBACxD,QAAQ;gBACR,UAAU;aACb,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,6FAA6F;QAC7F,yCAAyC;QACzC,MAAM,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,SAAoB;QAC/B,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACH,wBAAwB;QACpB,IAAI,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC;IAC1D,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts deleted file mode 100644 index d8f3ca6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +++ /dev/null @@ -1,267 +0,0 @@ -/** - * Web Standards Streamable HTTP Server Transport - * - * This is the core transport implementation using Web Standard APIs (Request, Response, ReadableStream). - * It can run on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * For Node.js Express/HTTP compatibility, use `StreamableHTTPServerTransport` which wraps this transport. - */ -import { Transport } from '../shared/transport.js'; -import { AuthInfo } from './auth/types.js'; -import { MessageExtraInfo, JSONRPCMessage, RequestId } from '../types.js'; -export type StreamId = string; -export type EventId = string; -/** - * Interface for resumability support via event storage - */ -export interface EventStore { - /** - * Stores an event for later retrieval - * @param streamId ID of the stream the event belongs to - * @param message The JSON-RPC message to store - * @returns The generated event ID for the stored event - */ - storeEvent(streamId: StreamId, message: JSONRPCMessage): Promise; - /** - * Get the stream ID associated with a given event ID. - * @param eventId The event ID to look up - * @returns The stream ID, or undefined if not found - * - * Optional: If not provided, the SDK will use the streamId returned by - * replayEventsAfter for stream mapping. - */ - getStreamIdForEventId?(eventId: EventId): Promise; - replayEventsAfter(lastEventId: EventId, { send }: { - send: (eventId: EventId, message: JSONRPCMessage) => Promise; - }): Promise; -} -/** - * Configuration options for WebStandardStreamableHTTPServerTransport - */ -export interface WebStandardStreamableHTTPServerTransportOptions { - /** - * Function that generates a session ID for the transport. - * The session ID SHOULD be globally unique and cryptographically secure (e.g., a securely generated UUID, a JWT, or a cryptographic hash) - * - * If not provided, session management is disabled (stateless mode). - */ - sessionIdGenerator?: () => string; - /** - * A callback for session initialization events - * This is called when the server initializes a new session. - * Useful in cases when you need to register multiple mcp sessions - * and need to keep track of them. - * @param sessionId The generated session ID - */ - onsessioninitialized?: (sessionId: string) => void | Promise; - /** - * A callback for session close events - * This is called when the server closes a session due to a DELETE request. - * Useful in cases when you need to clean up resources associated with the session. - * Note that this is different from the transport closing, if you are handling - * HTTP requests from multiple nodes you might want to close each - * WebStandardStreamableHTTPServerTransport after a request is completed while still keeping the - * session open/running. - * @param sessionId The session ID that was closed - */ - onsessionclosed?: (sessionId: string) => void | Promise; - /** - * If true, the server will return JSON responses instead of starting an SSE stream. - * This can be useful for simple request/response scenarios without streaming. - * Default is false (SSE streams are preferred). - */ - enableJsonResponse?: boolean; - /** - * Event store for resumability support - * If provided, resumability will be enabled, allowing clients to reconnect and resume messages - */ - eventStore?: EventStore; - /** - * List of allowed host header values for DNS rebinding protection. - * If not specified, host validation is disabled. - * @deprecated Use external middleware for host validation instead. - */ - allowedHosts?: string[]; - /** - * List of allowed origin header values for DNS rebinding protection. - * If not specified, origin validation is disabled. - * @deprecated Use external middleware for origin validation instead. - */ - allowedOrigins?: string[]; - /** - * Enable DNS rebinding protection (requires allowedHosts and/or allowedOrigins to be configured). - * Default is false for backwards compatibility. - * @deprecated Use external middleware for DNS rebinding protection instead. - */ - enableDnsRebindingProtection?: boolean; - /** - * Retry interval in milliseconds to suggest to clients in SSE retry field. - * When set, the server will send a retry field in SSE priming events to control - * client reconnection timing for polling behavior. - */ - retryInterval?: number; -} -/** - * Options for handling a request - */ -export interface HandleRequestOptions { - /** - * Pre-parsed request body. If provided, the transport will use this instead of parsing req.json(). - * Useful when using body-parser middleware that has already parsed the body. - */ - parsedBody?: unknown; - /** - * Authentication info from middleware. If provided, will be passed to message handlers. - */ - authInfo?: AuthInfo; -} -/** - * Server transport for Web Standards Streamable HTTP: this implements the MCP Streamable HTTP transport specification - * using Web Standard APIs (Request, Response, ReadableStream). - * - * This transport works on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: () => crypto.randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Hono.js usage - * app.all('/mcp', async (c) => { - * return transport.handleRequest(c.req.raw); - * }); - * - * // Cloudflare Workers usage - * export default { - * async fetch(request: Request): Promise { - * return transport.handleRequest(request); - * } - * }; - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export declare class WebStandardStreamableHTTPServerTransport implements Transport { - private sessionIdGenerator; - private _started; - private _streamMapping; - private _requestToStreamMapping; - private _requestResponseMap; - private _initialized; - private _enableJsonResponse; - private _standaloneSseStreamId; - private _eventStore?; - private _onsessioninitialized?; - private _onsessionclosed?; - private _allowedHosts?; - private _allowedOrigins?; - private _enableDnsRebindingProtection; - private _retryInterval?; - sessionId?: string; - onclose?: () => void; - onerror?: (error: Error) => void; - onmessage?: (message: JSONRPCMessage, extra?: MessageExtraInfo) => void; - constructor(options?: WebStandardStreamableHTTPServerTransportOptions); - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - start(): Promise; - /** - * Helper to create a JSON error response - */ - private createJsonErrorResponse; - /** - * Validates request headers for DNS rebinding protection. - * @returns Error response if validation fails, undefined if validation passes. - */ - private validateRequestHeaders; - /** - * Handles an incoming HTTP request, whether GET, POST, or DELETE - * Returns a Response object (Web Standard) - */ - handleRequest(req: Request, options?: HandleRequestOptions): Promise; - /** - * Writes a priming event to establish resumption capability. - * Only sends if eventStore is configured (opt-in for resumability) and - * the client's protocol version supports empty SSE data (>= 2025-11-25). - */ - private writePrimingEvent; - /** - * Handles GET requests for SSE stream - */ - private handleGetRequest; - /** - * Replays events that would have been sent after the specified event ID - * Only used when resumability is enabled - */ - private replayEvents; - /** - * Writes an event to an SSE stream via controller with proper formatting - */ - private writeSSEEvent; - /** - * Handles unsupported requests (PUT, PATCH, etc.) - */ - private handleUnsupportedRequest; - /** - * Handles POST requests containing JSON-RPC messages - */ - private handlePostRequest; - /** - * Handles DELETE requests to terminate sessions - */ - private handleDeleteRequest; - /** - * Validates session ID for non-initialization requests. - * Returns Response error if invalid, undefined otherwise - */ - private validateSession; - /** - * Validates the MCP-Protocol-Version header on incoming requests. - * - * For initialization: Version negotiation handles unknown versions gracefully - * (server responds with its supported version). - * - * For subsequent requests with MCP-Protocol-Version header: - * - Accept if in supported list - * - 400 if unsupported - * - * For HTTP requests without the MCP-Protocol-Version header: - * - Accept and default to the version negotiated at initialization - */ - private validateProtocolVersion; - close(): Promise; - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId: RequestId): void; - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream(): void; - send(message: JSONRPCMessage, options?: { - relatedRequestId?: RequestId; - }): Promise; -} -//# sourceMappingURL=webStandardStreamableHttp.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map deleted file mode 100644 index 49c1aed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webStandardStreamableHttp.d.ts","sourceRoot":"","sources":["../../../src/server/webStandardStreamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACH,g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6B9B;;;OAGG;IACG,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmBpF;;;;OAIG;YACW,iBAAiB;IA0B/B;;OAEG;YACW,gBAAgB;IA2E9B;;;OAGG;YACW,YAAY;IAgF1B;;OAEG;IACH,OAAO,CAAC,aAAa;IAoBrB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAoBhC;;OAEG;YACW,iBAAiB;IA8M/B;;OAEG;YACW,mBAAmB;IAejC;;;OAGG;IACH,OAAO,CAAC,eAAe;IA0BvB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,uBAAuB;IAazB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAU1C;;;OAGG;IACH,wBAAwB,IAAI,IAAI;IAO1B,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAiGjG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js deleted file mode 100644 index f87830f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +++ /dev/null @@ -1,725 +0,0 @@ -/** - * Web Standards Streamable HTTP Server Transport - * - * This is the core transport implementation using Web Standard APIs (Request, Response, ReadableStream). - * It can run on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * For Node.js Express/HTTP compatibility, use `StreamableHTTPServerTransport` which wraps this transport. - */ -import { isInitializeRequest, isJSONRPCErrorResponse, isJSONRPCRequest, isJSONRPCResultResponse, JSONRPCMessageSchema, SUPPORTED_PROTOCOL_VERSIONS, DEFAULT_NEGOTIATED_PROTOCOL_VERSION } from '../types.js'; -/** - * Server transport for Web Standards Streamable HTTP: this implements the MCP Streamable HTTP transport specification - * using Web Standard APIs (Request, Response, ReadableStream). - * - * This transport works on any runtime that supports Web Standards: Node.js 18+, Cloudflare Workers, Deno, Bun, etc. - * - * Usage example: - * - * ```typescript - * // Stateful mode - server sets the session ID - * const statefulTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: () => crypto.randomUUID(), - * }); - * - * // Stateless mode - explicitly set session ID to undefined - * const statelessTransport = new WebStandardStreamableHTTPServerTransport({ - * sessionIdGenerator: undefined, - * }); - * - * // Hono.js usage - * app.all('/mcp', async (c) => { - * return transport.handleRequest(c.req.raw); - * }); - * - * // Cloudflare Workers usage - * export default { - * async fetch(request: Request): Promise { - * return transport.handleRequest(request); - * } - * }; - * ``` - * - * In stateful mode: - * - Session ID is generated and included in response headers - * - Session ID is always included in initialization responses - * - Requests with invalid session IDs are rejected with 404 Not Found - * - Non-initialization requests without a session ID are rejected with 400 Bad Request - * - State is maintained in-memory (connections, message history) - * - * In stateless mode: - * - No Session ID is included in any responses - * - No session validation is performed - */ -export class WebStandardStreamableHTTPServerTransport { - constructor(options = {}) { - this._started = false; - this._streamMapping = new Map(); - this._requestToStreamMapping = new Map(); - this._requestResponseMap = new Map(); - this._initialized = false; - this._enableJsonResponse = false; - this._standaloneSseStreamId = '_GET_stream'; - this.sessionIdGenerator = options.sessionIdGenerator; - this._enableJsonResponse = options.enableJsonResponse ?? false; - this._eventStore = options.eventStore; - this._onsessioninitialized = options.onsessioninitialized; - this._onsessionclosed = options.onsessionclosed; - this._allowedHosts = options.allowedHosts; - this._allowedOrigins = options.allowedOrigins; - this._enableDnsRebindingProtection = options.enableDnsRebindingProtection ?? false; - this._retryInterval = options.retryInterval; - } - /** - * Starts the transport. This is required by the Transport interface but is a no-op - * for the Streamable HTTP transport as connections are managed per-request. - */ - async start() { - if (this._started) { - throw new Error('Transport already started'); - } - this._started = true; - } - /** - * Helper to create a JSON error response - */ - createJsonErrorResponse(status, code, message, options) { - const error = { code, message }; - if (options?.data !== undefined) { - error.data = options.data; - } - return new Response(JSON.stringify({ - jsonrpc: '2.0', - error, - id: null - }), { - status, - headers: { - 'Content-Type': 'application/json', - ...options?.headers - } - }); - } - /** - * Validates request headers for DNS rebinding protection. - * @returns Error response if validation fails, undefined if validation passes. - */ - validateRequestHeaders(req) { - // Skip validation if protection is not enabled - if (!this._enableDnsRebindingProtection) { - return undefined; - } - // Validate Host header if allowedHosts is configured - if (this._allowedHosts && this._allowedHosts.length > 0) { - const hostHeader = req.headers.get('host'); - if (!hostHeader || !this._allowedHosts.includes(hostHeader)) { - const error = `Invalid Host header: ${hostHeader}`; - this.onerror?.(new Error(error)); - return this.createJsonErrorResponse(403, -32000, error); - } - } - // Validate Origin header if allowedOrigins is configured - if (this._allowedOrigins && this._allowedOrigins.length > 0) { - const originHeader = req.headers.get('origin'); - if (originHeader && !this._allowedOrigins.includes(originHeader)) { - const error = `Invalid Origin header: ${originHeader}`; - this.onerror?.(new Error(error)); - return this.createJsonErrorResponse(403, -32000, error); - } - } - return undefined; - } - /** - * Handles an incoming HTTP request, whether GET, POST, or DELETE - * Returns a Response object (Web Standard) - */ - async handleRequest(req, options) { - // Validate request headers for DNS rebinding protection - const validationError = this.validateRequestHeaders(req); - if (validationError) { - return validationError; - } - switch (req.method) { - case 'POST': - return this.handlePostRequest(req, options); - case 'GET': - return this.handleGetRequest(req); - case 'DELETE': - return this.handleDeleteRequest(req); - default: - return this.handleUnsupportedRequest(); - } - } - /** - * Writes a priming event to establish resumption capability. - * Only sends if eventStore is configured (opt-in for resumability) and - * the client's protocol version supports empty SSE data (>= 2025-11-25). - */ - async writePrimingEvent(controller, encoder, streamId, protocolVersion) { - if (!this._eventStore) { - return; - } - // Priming events have empty data which older clients cannot handle. - // Only send priming events to clients with protocol version >= 2025-11-25 - // which includes the fix for handling empty SSE data. - if (protocolVersion < '2025-11-25') { - return; - } - const primingEventId = await this._eventStore.storeEvent(streamId, {}); - let primingEvent = `id: ${primingEventId}\ndata: \n\n`; - if (this._retryInterval !== undefined) { - primingEvent = `id: ${primingEventId}\nretry: ${this._retryInterval}\ndata: \n\n`; - } - controller.enqueue(encoder.encode(primingEvent)); - } - /** - * Handles GET requests for SSE stream - */ - async handleGetRequest(req) { - // The client MUST include an Accept header, listing text/event-stream as a supported content type. - const acceptHeader = req.headers.get('accept'); - if (!acceptHeader?.includes('text/event-stream')) { - return this.createJsonErrorResponse(406, -32000, 'Not Acceptable: Client must accept text/event-stream'); - } - // If an Mcp-Session-Id is returned by the server during initialization, - // clients using the Streamable HTTP transport MUST include it - // in the Mcp-Session-Id header on all of their subsequent HTTP requests. - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - // Handle resumability: check for Last-Event-ID header - if (this._eventStore) { - const lastEventId = req.headers.get('last-event-id'); - if (lastEventId) { - return this.replayEvents(lastEventId); - } - } - // Check if there's already an active standalone SSE stream for this session - if (this._streamMapping.get(this._standaloneSseStreamId) !== undefined) { - // Only one GET SSE stream is allowed per session - return this.createJsonErrorResponse(409, -32000, 'Conflict: Only one SSE stream is allowed per session'); - } - const encoder = new TextEncoder(); - let streamController; - // Create a ReadableStream with a controller we can use to push SSE events - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - this._streamMapping.delete(this._standaloneSseStreamId); - } - }); - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }; - // After initialization, always include the session ID if we have one - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Store the stream mapping with the controller for pushing data - this._streamMapping.set(this._standaloneSseStreamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(this._standaloneSseStreamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - return new Response(readable, { headers }); - } - /** - * Replays events that would have been sent after the specified event ID - * Only used when resumability is enabled - */ - async replayEvents(lastEventId) { - if (!this._eventStore) { - return this.createJsonErrorResponse(400, -32000, 'Event store not configured'); - } - try { - // If getStreamIdForEventId is available, use it for conflict checking - let streamId; - if (this._eventStore.getStreamIdForEventId) { - streamId = await this._eventStore.getStreamIdForEventId(lastEventId); - if (!streamId) { - return this.createJsonErrorResponse(400, -32000, 'Invalid event ID format'); - } - // Check conflict with the SAME streamId we'll use for mapping - if (this._streamMapping.get(streamId) !== undefined) { - return this.createJsonErrorResponse(409, -32000, 'Conflict: Stream already has an active connection'); - } - } - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache, no-transform', - Connection: 'keep-alive' - }; - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Create a ReadableStream with controller for SSE - const encoder = new TextEncoder(); - let streamController; - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - // Cleanup will be handled by the mapping - } - }); - // Replay events - returns the streamId for backwards compatibility - const replayedStreamId = await this._eventStore.replayEventsAfter(lastEventId, { - send: async (eventId, message) => { - const success = this.writeSSEEvent(streamController, encoder, message, eventId); - if (!success) { - this.onerror?.(new Error('Failed replay events')); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - } - }); - this._streamMapping.set(replayedStreamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(replayedStreamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - return new Response(readable, { headers }); - } - catch (error) { - this.onerror?.(error); - return this.createJsonErrorResponse(500, -32000, 'Error replaying events'); - } - } - /** - * Writes an event to an SSE stream via controller with proper formatting - */ - writeSSEEvent(controller, encoder, message, eventId) { - try { - let eventData = `event: message\n`; - // Include event ID if provided - this is important for resumability - if (eventId) { - eventData += `id: ${eventId}\n`; - } - eventData += `data: ${JSON.stringify(message)}\n\n`; - controller.enqueue(encoder.encode(eventData)); - return true; - } - catch { - return false; - } - } - /** - * Handles unsupported requests (PUT, PATCH, etc.) - */ - handleUnsupportedRequest() { - return new Response(JSON.stringify({ - jsonrpc: '2.0', - error: { - code: -32000, - message: 'Method not allowed.' - }, - id: null - }), { - status: 405, - headers: { - Allow: 'GET, POST, DELETE', - 'Content-Type': 'application/json' - } - }); - } - /** - * Handles POST requests containing JSON-RPC messages - */ - async handlePostRequest(req, options) { - try { - // Validate the Accept header - const acceptHeader = req.headers.get('accept'); - // The client MUST include an Accept header, listing both application/json and text/event-stream as supported content types. - if (!acceptHeader?.includes('application/json') || !acceptHeader.includes('text/event-stream')) { - return this.createJsonErrorResponse(406, -32000, 'Not Acceptable: Client must accept both application/json and text/event-stream'); - } - const ct = req.headers.get('content-type'); - if (!ct || !ct.includes('application/json')) { - return this.createJsonErrorResponse(415, -32000, 'Unsupported Media Type: Content-Type must be application/json'); - } - // Build request info from headers - const requestInfo = { - headers: Object.fromEntries(req.headers.entries()) - }; - let rawMessage; - if (options?.parsedBody !== undefined) { - rawMessage = options.parsedBody; - } - else { - try { - rawMessage = await req.json(); - } - catch { - return this.createJsonErrorResponse(400, -32700, 'Parse error: Invalid JSON'); - } - } - let messages; - // handle batch and single messages - try { - if (Array.isArray(rawMessage)) { - messages = rawMessage.map(msg => JSONRPCMessageSchema.parse(msg)); - } - else { - messages = [JSONRPCMessageSchema.parse(rawMessage)]; - } - } - catch { - return this.createJsonErrorResponse(400, -32700, 'Parse error: Invalid JSON-RPC message'); - } - // Check if this is an initialization request - // https://spec.modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle/ - const isInitializationRequest = messages.some(isInitializeRequest); - if (isInitializationRequest) { - // If it's a server with session management and the session ID is already set we should reject the request - // to avoid re-initialization. - if (this._initialized && this.sessionId !== undefined) { - return this.createJsonErrorResponse(400, -32600, 'Invalid Request: Server already initialized'); - } - if (messages.length > 1) { - return this.createJsonErrorResponse(400, -32600, 'Invalid Request: Only one initialization request is allowed'); - } - this.sessionId = this.sessionIdGenerator?.(); - this._initialized = true; - // If we have a session ID and an onsessioninitialized handler, call it immediately - // This is needed in cases where the server needs to keep track of multiple sessions - if (this.sessionId && this._onsessioninitialized) { - await Promise.resolve(this._onsessioninitialized(this.sessionId)); - } - } - if (!isInitializationRequest) { - // If an Mcp-Session-Id is returned by the server during initialization, - // clients using the Streamable HTTP transport MUST include it - // in the Mcp-Session-Id header on all of their subsequent HTTP requests. - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - // Mcp-Protocol-Version header is required for all requests after initialization. - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - } - // check if it contains requests - const hasRequests = messages.some(isJSONRPCRequest); - if (!hasRequests) { - // if it only contains notifications or responses, return 202 - for (const message of messages) { - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo }); - } - return new Response(null, { status: 202 }); - } - // The default behavior is to use SSE streaming - // but in some cases server will return JSON responses - const streamId = crypto.randomUUID(); - // Extract protocol version for priming event decision. - // For initialize requests, get from request params. - // For other requests, get from header (already validated). - const initRequest = messages.find(m => isInitializeRequest(m)); - const clientProtocolVersion = initRequest - ? initRequest.params.protocolVersion - : (req.headers.get('mcp-protocol-version') ?? DEFAULT_NEGOTIATED_PROTOCOL_VERSION); - if (this._enableJsonResponse) { - // For JSON response mode, return a Promise that resolves when all responses are ready - return new Promise(resolve => { - this._streamMapping.set(streamId, { - resolveJson: resolve, - cleanup: () => { - this._streamMapping.delete(streamId); - } - }); - for (const message of messages) { - if (isJSONRPCRequest(message)) { - this._requestToStreamMapping.set(message.id, streamId); - } - } - for (const message of messages) { - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo }); - } - }); - } - // SSE streaming mode - use ReadableStream with controller for more reliable data pushing - const encoder = new TextEncoder(); - let streamController; - const readable = new ReadableStream({ - start: controller => { - streamController = controller; - }, - cancel: () => { - // Stream was cancelled by client - this._streamMapping.delete(streamId); - } - }); - const headers = { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache', - Connection: 'keep-alive' - }; - // After initialization, always include the session ID if we have one - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - // Store the response for this request to send messages back through this connection - // We need to track by request ID to maintain the connection - for (const message of messages) { - if (isJSONRPCRequest(message)) { - this._streamMapping.set(streamId, { - controller: streamController, - encoder, - cleanup: () => { - this._streamMapping.delete(streamId); - try { - streamController.close(); - } - catch { - // Controller might already be closed - } - } - }); - this._requestToStreamMapping.set(message.id, streamId); - } - } - // Write priming event if event store is configured (after mapping is set up) - await this.writePrimingEvent(streamController, encoder, streamId, clientProtocolVersion); - // handle each message - for (const message of messages) { - // Build closeSSEStream callback for requests when eventStore is configured - // AND client supports resumability (protocol version >= 2025-11-25). - // Old clients can't resume if the stream is closed early because they - // didn't receive a priming event with an event ID. - let closeSSEStream; - let closeStandaloneSSEStream; - if (isJSONRPCRequest(message) && this._eventStore && clientProtocolVersion >= '2025-11-25') { - closeSSEStream = () => { - this.closeSSEStream(message.id); - }; - closeStandaloneSSEStream = () => { - this.closeStandaloneSSEStream(); - }; - } - this.onmessage?.(message, { authInfo: options?.authInfo, requestInfo, closeSSEStream, closeStandaloneSSEStream }); - } - // The server SHOULD NOT close the SSE stream before sending all JSON-RPC responses - // This will be handled by the send() method when responses are ready - return new Response(readable, { status: 200, headers }); - } - catch (error) { - // return JSON-RPC formatted error - this.onerror?.(error); - return this.createJsonErrorResponse(400, -32700, 'Parse error', { data: String(error) }); - } - } - /** - * Handles DELETE requests to terminate sessions - */ - async handleDeleteRequest(req) { - const sessionError = this.validateSession(req); - if (sessionError) { - return sessionError; - } - const protocolError = this.validateProtocolVersion(req); - if (protocolError) { - return protocolError; - } - await Promise.resolve(this._onsessionclosed?.(this.sessionId)); - await this.close(); - return new Response(null, { status: 200 }); - } - /** - * Validates session ID for non-initialization requests. - * Returns Response error if invalid, undefined otherwise - */ - validateSession(req) { - if (this.sessionIdGenerator === undefined) { - // If the sessionIdGenerator ID is not set, the session management is disabled - // and we don't need to validate the session ID - return undefined; - } - if (!this._initialized) { - // If the server has not been initialized yet, reject all requests - return this.createJsonErrorResponse(400, -32000, 'Bad Request: Server not initialized'); - } - const sessionId = req.headers.get('mcp-session-id'); - if (!sessionId) { - // Non-initialization requests without a session ID should return 400 Bad Request - return this.createJsonErrorResponse(400, -32000, 'Bad Request: Mcp-Session-Id header is required'); - } - if (sessionId !== this.sessionId) { - // Reject requests with invalid session ID with 404 Not Found - return this.createJsonErrorResponse(404, -32001, 'Session not found'); - } - return undefined; - } - /** - * Validates the MCP-Protocol-Version header on incoming requests. - * - * For initialization: Version negotiation handles unknown versions gracefully - * (server responds with its supported version). - * - * For subsequent requests with MCP-Protocol-Version header: - * - Accept if in supported list - * - 400 if unsupported - * - * For HTTP requests without the MCP-Protocol-Version header: - * - Accept and default to the version negotiated at initialization - */ - validateProtocolVersion(req) { - const protocolVersion = req.headers.get('mcp-protocol-version'); - if (protocolVersion !== null && !SUPPORTED_PROTOCOL_VERSIONS.includes(protocolVersion)) { - return this.createJsonErrorResponse(400, -32000, `Bad Request: Unsupported protocol version: ${protocolVersion} (supported versions: ${SUPPORTED_PROTOCOL_VERSIONS.join(', ')})`); - } - return undefined; - } - async close() { - // Close all SSE connections - this._streamMapping.forEach(({ cleanup }) => { - cleanup(); - }); - this._streamMapping.clear(); - // Clear any pending responses - this._requestResponseMap.clear(); - this.onclose?.(); - } - /** - * Close an SSE stream for a specific request, triggering client reconnection. - * Use this to implement polling behavior during long-running operations - - * client will reconnect after the retry interval specified in the priming event. - */ - closeSSEStream(requestId) { - const streamId = this._requestToStreamMapping.get(requestId); - if (!streamId) - return; - const stream = this._streamMapping.get(streamId); - if (stream) { - stream.cleanup(); - } - } - /** - * Close the standalone GET SSE stream, triggering client reconnection. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream() { - const stream = this._streamMapping.get(this._standaloneSseStreamId); - if (stream) { - stream.cleanup(); - } - } - async send(message, options) { - let requestId = options?.relatedRequestId; - if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) { - // If the message is a response, use the request ID from the message - requestId = message.id; - } - // Check if this message should be sent on the standalone SSE stream (no request ID) - // Ignore notifications from tools (which have relatedRequestId set) - // Those will be sent via dedicated response SSE streams - if (requestId === undefined) { - // For standalone SSE streams, we can only send requests and notifications - if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) { - throw new Error('Cannot send a response on a standalone SSE stream unless resuming a previous client request'); - } - // Generate and store event ID if event store is provided - // Store even if stream is disconnected so events can be replayed on reconnect - let eventId; - if (this._eventStore) { - // Stores the event and gets the generated event ID - eventId = await this._eventStore.storeEvent(this._standaloneSseStreamId, message); - } - const standaloneSse = this._streamMapping.get(this._standaloneSseStreamId); - if (standaloneSse === undefined) { - // Stream is disconnected - event is stored for replay, nothing more to do - return; - } - // Send the message to the standalone SSE stream - if (standaloneSse.controller && standaloneSse.encoder) { - this.writeSSEEvent(standaloneSse.controller, standaloneSse.encoder, message, eventId); - } - return; - } - // Get the response for this request - const streamId = this._requestToStreamMapping.get(requestId); - if (!streamId) { - throw new Error(`No connection established for request ID: ${String(requestId)}`); - } - const stream = this._streamMapping.get(streamId); - if (!this._enableJsonResponse && stream?.controller && stream?.encoder) { - // For SSE responses, generate event ID if event store is provided - let eventId; - if (this._eventStore) { - eventId = await this._eventStore.storeEvent(streamId, message); - } - // Write the event to the response stream - this.writeSSEEvent(stream.controller, stream.encoder, message, eventId); - } - if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) { - this._requestResponseMap.set(requestId, message); - const relatedIds = Array.from(this._requestToStreamMapping.entries()) - .filter(([_, sid]) => sid === streamId) - .map(([id]) => id); - // Check if we have responses for all requests using this connection - const allResponsesReady = relatedIds.every(id => this._requestResponseMap.has(id)); - if (allResponsesReady) { - if (!stream) { - throw new Error(`No connection established for request ID: ${String(requestId)}`); - } - if (this._enableJsonResponse && stream.resolveJson) { - // All responses ready, send as JSON - const headers = { - 'Content-Type': 'application/json' - }; - if (this.sessionId !== undefined) { - headers['mcp-session-id'] = this.sessionId; - } - const responses = relatedIds.map(id => this._requestResponseMap.get(id)); - if (responses.length === 1) { - stream.resolveJson(new Response(JSON.stringify(responses[0]), { status: 200, headers })); - } - else { - stream.resolveJson(new Response(JSON.stringify(responses), { status: 200, headers })); - } - } - else { - // End the SSE stream - stream.cleanup(); - } - // Clean up - for (const id of relatedIds) { - this._requestResponseMap.delete(id); - this._requestToStreamMapping.delete(id); - } - } - } - } -} -//# sourceMappingURL=webStandardStreamableHttp.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map deleted file mode 100644 index 8868c1f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webStandardStreamableHttp.js","sourceRoot":"","sources":["../../../src/server/webStandardStreamableHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAGH,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EAEvB,oBAAoB,EAEpB,2BAA2B,EAC3B,mCAAmC,EACtC,MAAM,aAAa,CAAC;AA8IrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,OAAO,wCAAwC;IAuBjD,YAAY,UAA2D,EAAE;QApBjE,aAAQ,GAAY,KAAK,CAAC;QAC1B,mBAAc,GAA+B,IAAI,GAAG,EAAE,CAAC;QACvD,4BAAuB,GAA2B,IAAI,GAAG,EAAE,CAAC;QAC5D,wBAAmB,GAAmC,IAAI,GAAG,EAAE,CAAC;QAChE,iBAAY,GAAY,KAAK,CAAC;QAC9B,wBAAmB,GAAY,KAAK,CAAC;QACrC,2BAAsB,GAA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ACJ,qBAAqB;oBACrB,MAAM,CAAC,OAAO,EAAE,CAAC;gBACrB,CAAC;gBACD,WAAW;gBACX,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;oBAC1B,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBACpC,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC5C,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts deleted file mode 100644 index c3a5b60..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type * as z3 from 'zod/v3'; -import type * as z4 from 'zod/v4/core'; -export type AnySchema = z3.ZodTypeAny | z4.$ZodType; -export type AnyObjectSchema = z3.AnyZodObject | z4.$ZodObject | AnySchema; -export type ZodRawShapeCompat = Record; -export interface ZodV3Internal { - _def?: { - typeName?: string; - value?: unknown; - values?: unknown[]; - shape?: Record | (() => Record); - description?: string; - }; - shape?: Record | (() => Record); - value?: unknown; -} -export interface ZodV4Internal { - _zod?: { - def?: { - type?: string; - value?: unknown; - values?: unknown[]; - shape?: Record | (() => Record); - }; - }; - value?: unknown; -} -export type SchemaOutput = S extends z3.ZodTypeAny ? z3.infer : S extends z4.$ZodType ? z4.output : never; -export type SchemaInput = S extends z3.ZodTypeAny ? z3.input : S extends z4.$ZodType ? z4.input : never; -/** - * Infers the output type from a ZodRawShapeCompat (raw shape object). - * Maps over each key in the shape and infers the output type from each schema. - */ -export type ShapeOutput = { - [K in keyof Shape]: SchemaOutput; -}; -export declare function isZ4Schema(s: AnySchema): s is z4.$ZodType; -export declare function objectFromShape(shape: ZodRawShapeCompat): AnyObjectSchema; -export declare function safeParse(schema: S, data: unknown): { - success: true; - data: SchemaOutput; -} | { - success: false; - error: unknown; -}; -export declare function safeParseAsync(schema: S, data: unknown): Promise<{ - success: true; - data: SchemaOutput; -} | { - success: false; - error: unknown; -}>; -export declare function getObjectShape(schema: AnyObjectSchema | undefined): Record | undefined; -/** - * Normalizes a schema to an object schema. Handles both: - * - Already-constructed object schemas (v3 or v4) - * - Raw shapes that need to be wrapped into object schemas - */ -export declare function normalizeObjectSchema(schema: AnySchema | ZodRawShapeCompat | undefined): AnyObjectSchema | undefined; -/** - * Safely extracts an error message from a parse result error. - * Zod errors can have different structures, so we handle various cases. - */ -export declare function getParseErrorMessage(error: unknown): string; -/** - * Gets the description from a schema, if available. - * Works with both Zod v3 and v4. - * - * Both versions expose a `.description` getter that returns the description - * from their respective internal storage (v3: _def, v4: globalRegistry). - */ -export declare function getSchemaDescription(schema: AnySchema): string | undefined; -/** - * Checks if a schema is optional. - * Works with both Zod v3 and v4. - */ -export declare function isSchemaOptional(schema: AnySchema): boolean; -/** - * Gets the literal value from a schema, if it's a literal schema. - * Works with both Zod v3 and v4. - * Returns undefined if the schema is not a literal or the value cannot be determined. - */ -export declare function getLiteralValue(schema: AnySchema): unknown; -//# sourceMappingURL=zod-compat.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map deleted file mode 100644 index a2ccd51..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-compat.d.ts","sourceRoot":"","sources":["../../../src/server/zod-compat.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAMvC,MAAM,MAAM,SAAS,GAAG,EAAE,CAA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AG,SAAS,CAyBzG;AAGD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,iBAAiB,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,CAiDpH;AAGD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAoB3D;AAGD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAW3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAwB1D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js deleted file mode 100644 index be30a22..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +++ /dev/null @@ -1,209 +0,0 @@ -// zod-compat.ts -// ---------------------------------------------------- -// Unified types + helpers to accept Zod v3 and v4 (Mini) -// ---------------------------------------------------- -import * as z3rt from 'zod/v3'; -import * as z4mini from 'zod/v4-mini'; -// --- Runtime detection --- -export function isZ4Schema(s) { - // Present on Zod 4 (Classic & Mini) schemas; absent on Zod 3 - const schema = s; - return !!schema._zod; -} -// --- Schema construction --- -export function objectFromShape(shape) { - const values = Object.values(shape); - if (values.length === 0) - return z4mini.object({}); // default to v4 Mini - const allV4 = values.every(isZ4Schema); - const allV3 = values.every(s => !isZ4Schema(s)); - if (allV4) - return z4mini.object(shape); - if (allV3) - return z3rt.object(shape); - throw new Error('Mixed Zod versions detected in object shape.'); -} -// --- Unified parsing --- -export function safeParse(schema, data) { - if (isZ4Schema(schema)) { - // Mini exposes top-level safeParse - const result = z4mini.safeParse(schema, data); - return result; - } - const v3Schema = schema; - const result = v3Schema.safeParse(data); - return result; -} -export async function safeParseAsync(schema, data) { - if (isZ4Schema(schema)) { - // Mini exposes top-level safeParseAsync - const result = await z4mini.safeParseAsync(schema, data); - return result; - } - const v3Schema = schema; - const result = await v3Schema.safeParseAsync(data); - return result; -} -// --- Shape extraction --- -export function getObjectShape(schema) { - if (!schema) - return undefined; - // Zod v3 exposes `.shape`; Zod v4 keeps the shape on `_zod.def.shape` - let rawShape; - if (isZ4Schema(schema)) { - const v4Schema = schema; - rawShape = v4Schema._zod?.def?.shape; - } - else { - const v3Schema = schema; - rawShape = v3Schema.shape; - } - if (!rawShape) - return undefined; - if (typeof rawShape === 'function') { - try { - return rawShape(); - } - catch { - return undefined; - } - } - return rawShape; -} -// --- Schema normalization --- -/** - * Normalizes a schema to an object schema. Handles both: - * - Already-constructed object schemas (v3 or v4) - * - Raw shapes that need to be wrapped into object schemas - */ -export function normalizeObjectSchema(schema) { - if (!schema) - return undefined; - // First check if it's a raw shape (Record) - // Raw shapes don't have _def or _zod properties and aren't schemas themselves - if (typeof schema === 'object') { - // Check if it's actually a ZodRawShapeCompat (not a schema instance) - // by checking if it lacks schema-like internal properties - const asV3 = schema; - const asV4 = schema; - // If it's not a schema instance (no _def or _zod), it might be a raw shape - if (!asV3._def && !asV4._zod) { - // Check if all values are schemas (heuristic to confirm it's a raw shape) - const values = Object.values(schema); - if (values.length > 0 && - values.every(v => typeof v === 'object' && - v !== null && - (v._def !== undefined || - v._zod !== undefined || - typeof v.parse === 'function'))) { - return objectFromShape(schema); - } - } - } - // If we get here, it should be an AnySchema (not a raw shape) - // Check if it's already an object schema - if (isZ4Schema(schema)) { - // Check if it's a v4 object - const v4Schema = schema; - const def = v4Schema._zod?.def; - if (def && (def.type === 'object' || def.shape !== undefined)) { - return schema; - } - } - else { - // Check if it's a v3 object - const v3Schema = schema; - if (v3Schema.shape !== undefined) { - return schema; - } - } - return undefined; -} -// --- Error message extraction --- -/** - * Safely extracts an error message from a parse result error. - * Zod errors can have different structures, so we handle various cases. - */ -export function getParseErrorMessage(error) { - if (error && typeof error === 'object') { - // Try common error structures - if ('message' in error && typeof error.message === 'string') { - return error.message; - } - if ('issues' in error && Array.isArray(error.issues) && error.issues.length > 0) { - const firstIssue = error.issues[0]; - if (firstIssue && typeof firstIssue === 'object' && 'message' in firstIssue) { - return String(firstIssue.message); - } - } - // Fallback: try to stringify the error - try { - return JSON.stringify(error); - } - catch { - return String(error); - } - } - return String(error); -} -// --- Schema metadata access --- -/** - * Gets the description from a schema, if available. - * Works with both Zod v3 and v4. - * - * Both versions expose a `.description` getter that returns the description - * from their respective internal storage (v3: _def, v4: globalRegistry). - */ -export function getSchemaDescription(schema) { - return schema.description; -} -/** - * Checks if a schema is optional. - * Works with both Zod v3 and v4. - */ -export function isSchemaOptional(schema) { - if (isZ4Schema(schema)) { - const v4Schema = schema; - return v4Schema._zod?.def?.type === 'optional'; - } - const v3Schema = schema; - // v3 has isOptional() method - if (typeof schema.isOptional === 'function') { - return schema.isOptional(); - } - return v3Schema._def?.typeName === 'ZodOptional'; -} -/** - * Gets the literal value from a schema, if it's a literal schema. - * Works with both Zod v3 and v4. - * Returns undefined if the schema is not a literal or the value cannot be determined. - */ -export function getLiteralValue(schema) { - if (isZ4Schema(schema)) { - const v4Schema = schema; - const def = v4Schema._zod?.def; - if (def) { - // Try various ways to get the literal value - if (def.value !== undefined) - return def.value; - if (Array.isArray(def.values) && def.values.length > 0) { - return def.values[0]; - } - } - } - const v3Schema = schema; - const def = v3Schema._def; - if (def) { - if (def.value !== undefined) - return def.value; - if (Array.isArray(def.values) && def.values.length > 0) { - return def.values[0]; - } - } - // Fallback: check for direct value property (some Zod versions) - const directValue = schema.value; - if (directValue !== undefined) - return directValue; - return undefined; -} -//# sourceMappingURL=zod-compat.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map deleted file mode 100644 index 42b83f9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-compat.js","sourceRoot":"","sources":["../../../src/server/zod-compat.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,uDAAuD;AACvD,yDAAyD;AACzD,uDAAuD;AAKvD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AA8CtC,4BAA4B;AAC5B,MAAM,UAAU,UAAU,CAAC,CAAY;IACnC,6DAA6D;IAC7D,MAAM,MAAM,GAAG,CAA6B,CAAC;IAC7C,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;AACzB,CAAC;AAED,8BAA8B;AAC9B,MAAM,UAAU,eAAe,CAAC,KAAwB;IACpD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAqB;IAExE,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhD,IAAI,KAAK;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAoC,CAAC,CAAC;IACtE,IAAI,KAAK;QAAE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAsC,CAAC,CAAC;IAEtE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;AACpE,CAAC;AAED,0BAA0B;AAC1B,MAAM,UAAU,SAAS,CACrB,MAAS,EACT,IAAa;IAEb,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB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YAAE,OAAO,GAAG,CAAC,KAAK,CAAC;QAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrD,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;IACD,gEAAgE;IAChE,MAAM,WAAW,GAAI,MAA8B,CAAC,KAAK,CAAC;IAC1D,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,CAAC;IAClD,OAAO,SAAS,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts deleted file mode 100644 index 3a04452..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AnySchema, AnyObjectSchema } from './zod-compat.js'; -type JsonSchema = Record; -type CommonOpts = { - strictUnions?: boolean; - pipeStrategy?: 'input' | 'output'; - target?: 'jsonSchema7' | 'draft-7' | 'jsonSchema2019-09' | 'draft-2020-12'; -}; -export declare function toJsonSchemaCompat(schema: AnyObjectSchema, opts?: CommonOpts): JsonSchema; -export declare function getMethodLiteral(schema: AnyObjectSchema): string; -export declare function parseWithCompat(schema: AnySchema, data: unknown): unknown; -export {}; -//# sourceMappingURL=zod-json-schema-compat.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map deleted file mode 100644 index 0b851bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-json-schema-compat.d.ts","sourceRoot":"","sources":["../../../src/server/zod-json-schema-compat.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,eAAe,EAA0D,MAAM,iBAAiB,CAAC;AAGrH,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAG1C,KAAK,UAAU,GAAG;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,mBAAmB,GAAG,eAAe,CAAC;CAC9E,CAAC;AASF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAczF;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAahE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAMzE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js deleted file mode 100644 index 62f7fd0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +++ /dev/null @@ -1,51 +0,0 @@ -// zod-json-schema-compat.ts -// ---------------------------------------------------- -// JSON Schema conversion for both Zod v3 and Zod v4 (Mini) -// v3 uses your vendored converter; v4 uses Mini's toJSONSchema -// ---------------------------------------------------- -import * as z4mini from 'zod/v4-mini'; -import { getObjectShape, safeParse, isZ4Schema, getLiteralValue } from './zod-compat.js'; -import { zodToJsonSchema } from 'zod-to-json-schema'; -function mapMiniTarget(t) { - if (!t) - return 'draft-7'; - if (t === 'jsonSchema7' || t === 'draft-7') - return 'draft-7'; - if (t === 'jsonSchema2019-09' || t === 'draft-2020-12') - return 'draft-2020-12'; - return 'draft-7'; // fallback -} -export function toJsonSchemaCompat(schema, opts) { - if (isZ4Schema(schema)) { - // v4 branch — use Mini's built-in toJSONSchema - return z4mini.toJSONSchema(schema, { - target: mapMiniTarget(opts?.target), - io: opts?.pipeStrategy ?? 'input' - }); - } - // v3 branch — use vendored converter - return zodToJsonSchema(schema, { - strictUnions: opts?.strictUnions ?? true, - pipeStrategy: opts?.pipeStrategy ?? 'input' - }); -} -export function getMethodLiteral(schema) { - const shape = getObjectShape(schema); - const methodSchema = shape?.method; - if (!methodSchema) { - throw new Error('Schema is missing a method literal'); - } - const value = getLiteralValue(methodSchema); - if (typeof value !== 'string') { - throw new Error('Schema method literal must be a string'); - } - return value; -} -export function parseWithCompat(schema, data) { - const result = safeParse(schema, data); - if (!result.success) { - throw result.error; - } - return result.data; -} -//# sourceMappingURL=zod-json-schema-compat.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map deleted file mode 100644 index 70169ff..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zod-json-schema-compat.js","sourceRoot":"","sources":["../../../src/server/zod-json-schema-compat.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,uDAAuD;AACvD,2DAA2D;AAC3D,+DAA+D;AAC/D,uDAAuD;AAKvD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,EAA8B,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAWrD,SAAS,aAAa,CAAC,CAAmC;IACtD,IAAI,CAAC,CAAC;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AAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,MAAM,CAAC,KAAK,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts deleted file mode 100644 index c966e30..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Utilities for handling OAuth resource URIs. - */ -/** - * Converts a server URL to a resource URL by removing the fragment. - * RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component". - * Keeps everything else unchanged (scheme, domain, port, path, query). - */ -export declare function resourceUrlFromServerUrl(url: URL | string): URL; -/** - * Checks if a requested resource URL matches a configured resource URL. - * A requested resource matches if it has the same scheme, domain, port, - * and its path starts with the configured resource's path. - * - * @param requestedResource The resource URL being requested - * @param configuredResource The resource URL that has been configured - * @returns true if the requested resource matches the configured resource, false otherwise - */ -export declare function checkResourceAllowed({ requestedResource, configuredResource }: { - requestedResource: URL | string; - configuredResource: URL | string; -}): boolean; -//# sourceMappingURL=auth-utils.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map deleted file mode 100644 index 30873de..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/auth-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,GAAG,CAI/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,iBAAiB,EACjB,kBAAkB,EACrB,EAAE;IACC,iBAAiB,EAAE,GAAG,GAAG,MAAM,CAAC;IAChC,kBAAkB,EAAE,GAAG,GAAG,MAAM,CAAC;CACpC,GAAG,OAAO,CAwBV"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js deleted file mode 100644 index 1883885..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Utilities for handling OAuth resource URIs. - */ -/** - * Converts a server URL to a resource URL by removing the fragment. - * RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component". - * Keeps everything else unchanged (scheme, domain, port, path, query). - */ -export function resourceUrlFromServerUrl(url) { - const resourceURL = typeof url === 'string' ? new URL(url) : new URL(url.href); - resourceURL.hash = ''; // Remove fragment - return resourceURL; -} -/** - * Checks if a requested resource URL matches a configured resource URL. - * A requested resource matches if it has the same scheme, domain, port, - * and its path starts with the configured resource's path. - * - * @param requestedResource The resource URL being requested - * @param configuredResource The resource URL that has been configured - * @returns true if the requested resource matches the configured resource, false otherwise - */ -export function checkResourceAllowed({ requestedResource, configuredResource }) { - const requested = typeof requestedResource === 'string' ? new URL(requestedResource) : new URL(requestedResource.href); - const configured = typeof configuredResource === 'string' ? new URL(configuredResource) : new URL(configuredResource.href); - // Compare the origin (scheme, domain, and port) - if (requested.origin !== configured.origin) { - return false; - } - // Handle cases like requested=/foo and configured=/foo/ - if (requested.pathname.length < configured.pathname.length) { - return false; - } - // Check if the requested path starts with the configured path - // Ensure both paths end with / for proper comparison - // This ensures that if we have paths like "/api" and "/api/users", - // we properly detect that "/api/users" is a subpath of "/api" - // By adding a trailing slash if missing, we avoid false positives - // where paths like "/api123" would incorrectly match "/api" - const requestedPath = requested.pathname.endsWith('/') ? requested.pathname : requested.pathname + '/'; - const configuredPath = configured.pathname.endsWith('/') ? configured.pathname : configured.pathname + '/'; - return requestedPath.startsWith(configuredPath); -} -//# sourceMappingURL=auth-utils.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map deleted file mode 100644 index 3ced5af..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth-utils.js","sourceRoot":"","sources":["../../../src/shared/auth-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,GAAiB;IACtD,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/E,WAAW,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,kBAAkB;IACzC,OAAO,WAAW,CAAC;AACvB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACjC,iBAAiB,EACjB,kBAAkB,EAIrB;IACG,MAAM,SAAS,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACvH,MAAM,UAAU,GAAG,OAAO,kBAAkB,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAE3H,gDAAgD;IAChD,IAAI,SAAS,CAAC,MAAM,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,wDAAwD;IACxD,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,8DAA8D;IAC9D,qDAAqD;IACrD,mEAAmE;IACnE,8DAA8D;IAC9D,kEAAkE;IAClE,4DAA4D;IAC5D,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,GAAG,GAAG,CAAC;IACvG,MAAM,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,GAAG,GAAG,CAAC;IAE3G,OAAO,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts deleted file mode 100644 index 4e47be1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +++ /dev/null @@ -1,240 +0,0 @@ -import * as z from 'zod/v4'; -/** - * Reusable URL validation that disallows javascript: scheme - */ -export declare const SafeUrlSchema: z.ZodURL; -/** - * RFC 9728 OAuth Protected Resource Metadata - */ -export declare const OAuthProtectedResourceMetadataSchema: z.ZodObject<{ - resource: z.ZodString; - authorization_servers: z.ZodOptional>; - jwks_uri: z.ZodOptional; - scopes_supported: z.ZodOptional>; - bearer_methods_supported: z.ZodOptional>; - resource_signing_alg_values_supported: z.ZodOptional>; - resource_name: z.ZodOptional; - resource_documentation: z.ZodOptional; - resource_policy_uri: z.ZodOptional; - resource_tos_uri: z.ZodOptional; - tls_client_certificate_bound_access_tokens: z.ZodOptional; - authorization_details_types_supported: z.ZodOptional>; - dpop_signing_alg_values_supported: z.ZodOptional>; - dpop_bound_access_tokens_required: z.ZodOptional; -}, z.core.$loose>; -/** - * RFC 8414 OAuth 2.0 Authorization Server Metadata - */ -export declare const OAuthMetadataSchema: z.ZodObject<{ - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - revocation_endpoint: z.ZodOptional; - revocation_endpoint_auth_methods_supported: z.ZodOptional>; - revocation_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - introspection_endpoint: z.ZodOptional; - introspection_endpoint_auth_methods_supported: z.ZodOptional>; - introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - code_challenge_methods_supported: z.ZodOptional>; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$loose>; -/** - * OpenID Connect Discovery 1.0 Provider Metadata - * see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - */ -export declare const OpenIdProviderMetadataSchema: z.ZodObject<{ - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - userinfo_endpoint: z.ZodOptional; - jwks_uri: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - acr_values_supported: z.ZodOptional>; - subject_types_supported: z.ZodArray; - id_token_signing_alg_values_supported: z.ZodArray; - id_token_encryption_alg_values_supported: z.ZodOptional>; - id_token_encryption_enc_values_supported: z.ZodOptional>; - userinfo_signing_alg_values_supported: z.ZodOptional>; - userinfo_encryption_alg_values_supported: z.ZodOptional>; - userinfo_encryption_enc_values_supported: z.ZodOptional>; - request_object_signing_alg_values_supported: z.ZodOptional>; - request_object_encryption_alg_values_supported: z.ZodOptional>; - request_object_encryption_enc_values_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - display_values_supported: z.ZodOptional>; - claim_types_supported: z.ZodOptional>; - claims_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - claims_locales_supported: z.ZodOptional>; - ui_locales_supported: z.ZodOptional>; - claims_parameter_supported: z.ZodOptional; - request_parameter_supported: z.ZodOptional; - request_uri_parameter_supported: z.ZodOptional; - require_request_uri_registration: z.ZodOptional; - op_policy_uri: z.ZodOptional; - op_tos_uri: z.ZodOptional; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$loose>; -/** - * OpenID Connect Discovery metadata that may include OAuth 2.0 fields - * This schema represents the real-world scenario where OIDC providers - * return a mix of OpenID Connect and OAuth 2.0 metadata fields - */ -export declare const OpenIdProviderDiscoveryMetadataSchema: z.ZodObject<{ - code_challenge_methods_supported: z.ZodOptional>; - issuer: z.ZodString; - authorization_endpoint: z.ZodURL; - token_endpoint: z.ZodURL; - userinfo_endpoint: z.ZodOptional; - jwks_uri: z.ZodURL; - registration_endpoint: z.ZodOptional; - scopes_supported: z.ZodOptional>; - response_types_supported: z.ZodArray; - response_modes_supported: z.ZodOptional>; - grant_types_supported: z.ZodOptional>; - acr_values_supported: z.ZodOptional>; - subject_types_supported: z.ZodArray; - id_token_signing_alg_values_supported: z.ZodArray; - id_token_encryption_alg_values_supported: z.ZodOptional>; - id_token_encryption_enc_values_supported: z.ZodOptional>; - userinfo_signing_alg_values_supported: z.ZodOptional>; - userinfo_encryption_alg_values_supported: z.ZodOptional>; - userinfo_encryption_enc_values_supported: z.ZodOptional>; - request_object_signing_alg_values_supported: z.ZodOptional>; - request_object_encryption_alg_values_supported: z.ZodOptional>; - request_object_encryption_enc_values_supported: z.ZodOptional>; - token_endpoint_auth_methods_supported: z.ZodOptional>; - token_endpoint_auth_signing_alg_values_supported: z.ZodOptional>; - display_values_supported: z.ZodOptional>; - claim_types_supported: z.ZodOptional>; - claims_supported: z.ZodOptional>; - service_documentation: z.ZodOptional; - claims_locales_supported: z.ZodOptional>; - ui_locales_supported: z.ZodOptional>; - claims_parameter_supported: z.ZodOptional; - request_parameter_supported: z.ZodOptional; - request_uri_parameter_supported: z.ZodOptional; - require_request_uri_registration: z.ZodOptional; - op_policy_uri: z.ZodOptional; - op_tos_uri: z.ZodOptional; - client_id_metadata_document_supported: z.ZodOptional; -}, z.core.$strip>; -/** - * OAuth 2.1 token response - */ -export declare const OAuthTokensSchema: z.ZodObject<{ - access_token: z.ZodString; - id_token: z.ZodOptional; - token_type: z.ZodString; - expires_in: z.ZodOptional>; - scope: z.ZodOptional; - refresh_token: z.ZodOptional; -}, z.core.$strip>; -/** - * OAuth 2.1 error response - */ -export declare const OAuthErrorResponseSchema: z.ZodObject<{ - error: z.ZodString; - error_description: z.ZodOptional; - error_uri: z.ZodOptional; -}, z.core.$strip>; -/** - * Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri - */ -export declare const OptionalSafeUrlSchema: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration metadata - */ -export declare const OAuthClientMetadataSchema: z.ZodObject<{ - redirect_uris: z.ZodArray; - token_endpoint_auth_method: z.ZodOptional; - grant_types: z.ZodOptional>; - response_types: z.ZodOptional>; - client_name: z.ZodOptional; - client_uri: z.ZodOptional; - logo_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - scope: z.ZodOptional; - contacts: z.ZodOptional>; - tos_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - policy_uri: z.ZodOptional; - jwks_uri: z.ZodOptional; - jwks: z.ZodOptional; - software_id: z.ZodOptional; - software_version: z.ZodOptional; - software_statement: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration client information - */ -export declare const OAuthClientInformationSchema: z.ZodObject<{ - client_id: z.ZodString; - client_secret: z.ZodOptional; - client_id_issued_at: z.ZodOptional; - client_secret_expires_at: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration full response (client information plus metadata) - */ -export declare const OAuthClientInformationFullSchema: z.ZodObject<{ - redirect_uris: z.ZodArray; - token_endpoint_auth_method: z.ZodOptional; - grant_types: z.ZodOptional>; - response_types: z.ZodOptional>; - client_name: z.ZodOptional; - client_uri: z.ZodOptional; - logo_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - scope: z.ZodOptional; - contacts: z.ZodOptional>; - tos_uri: z.ZodUnion<[z.ZodOptional, z.ZodPipe, z.ZodTransform>]>; - policy_uri: z.ZodOptional; - jwks_uri: z.ZodOptional; - jwks: z.ZodOptional; - software_id: z.ZodOptional; - software_version: z.ZodOptional; - software_statement: z.ZodOptional; - client_id: z.ZodString; - client_secret: z.ZodOptional; - client_id_issued_at: z.ZodOptional; - client_secret_expires_at: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration error response - */ -export declare const OAuthClientRegistrationErrorSchema: z.ZodObject<{ - error: z.ZodString; - error_description: z.ZodOptional; -}, z.core.$strip>; -/** - * RFC 7009 OAuth 2.0 Token Revocation request - */ -export declare const OAuthTokenRevocationRequestSchema: z.ZodObject<{ - token: z.ZodString; - token_type_hint: z.ZodOptional; -}, z.core.$strip>; -export type OAuthMetadata = z.infer; -export type OpenIdProviderMetadata = z.infer; -export type OpenIdProviderDiscoveryMetadata = z.infer; -export type OAuthTokens = z.infer; -export type OAuthErrorResponse = z.infer; -export type OAuthClientMetadata = z.infer; -export type OAuthClientInformation = z.infer; -export type OAuthClientInformationFull = z.infer; -export type OAuthClientInformationMixed = OAuthClientInformation | OAuthClientInformationFull; -export type OAuthClientRegistrationError = z.infer; -export type OAuthTokenRevocationRequest = z.infer; -export type OAuthProtectedResourceMetadata = z.infer; -export type AuthorizationServerMetadata = OAuthMetadata | OpenIdProviderDiscoveryMetadata; -//# sourceMappingURL=auth.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map deleted file mode 100644 index 031a88f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/shared/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,aAAa,UAmBrB,CAAC;AAEN;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;iBAe/C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;iBAoB9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqCvC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;iBASlB,CAAC;AAEb;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH;;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AC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAGlG,MAAM,MAAM,2BAA2B,GAAG,aAAa,GAAG,+BAA+B,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js deleted file mode 100644 index 04f38eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +++ /dev/null @@ -1,198 +0,0 @@ -import * as z from 'zod/v4'; -/** - * Reusable URL validation that disallows javascript: scheme - */ -export const SafeUrlSchema = z - .url() - .superRefine((val, ctx) => { - if (!URL.canParse(val)) { - ctx.addIssue({ - code: z.ZodIssueCode.custom, - message: 'URL must be parseable', - fatal: true - }); - return z.NEVER; - } -}) - .refine(url => { - const u = new URL(url); - return u.protocol !== 'javascript:' && u.protocol !== 'data:' && u.protocol !== 'vbscript:'; -}, { message: 'URL cannot use javascript:, data:, or vbscript: scheme' }); -/** - * RFC 9728 OAuth Protected Resource Metadata - */ -export const OAuthProtectedResourceMetadataSchema = z.looseObject({ - resource: z.string().url(), - authorization_servers: z.array(SafeUrlSchema).optional(), - jwks_uri: z.string().url().optional(), - scopes_supported: z.array(z.string()).optional(), - bearer_methods_supported: z.array(z.string()).optional(), - resource_signing_alg_values_supported: z.array(z.string()).optional(), - resource_name: z.string().optional(), - resource_documentation: z.string().optional(), - resource_policy_uri: z.string().url().optional(), - resource_tos_uri: z.string().url().optional(), - tls_client_certificate_bound_access_tokens: z.boolean().optional(), - authorization_details_types_supported: z.array(z.string()).optional(), - dpop_signing_alg_values_supported: z.array(z.string()).optional(), - dpop_bound_access_tokens_required: z.boolean().optional() -}); -/** - * RFC 8414 OAuth 2.0 Authorization Server Metadata - */ -export const OAuthMetadataSchema = z.looseObject({ - issuer: z.string(), - authorization_endpoint: SafeUrlSchema, - token_endpoint: SafeUrlSchema, - registration_endpoint: SafeUrlSchema.optional(), - scopes_supported: z.array(z.string()).optional(), - response_types_supported: z.array(z.string()), - response_modes_supported: z.array(z.string()).optional(), - grant_types_supported: z.array(z.string()).optional(), - token_endpoint_auth_methods_supported: z.array(z.string()).optional(), - token_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - service_documentation: SafeUrlSchema.optional(), - revocation_endpoint: SafeUrlSchema.optional(), - revocation_endpoint_auth_methods_supported: z.array(z.string()).optional(), - revocation_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - introspection_endpoint: z.string().optional(), - introspection_endpoint_auth_methods_supported: z.array(z.string()).optional(), - introspection_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - code_challenge_methods_supported: z.array(z.string()).optional(), - client_id_metadata_document_supported: z.boolean().optional() -}); -/** - * OpenID Connect Discovery 1.0 Provider Metadata - * see: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata - */ -export const OpenIdProviderMetadataSchema = z.looseObject({ - issuer: z.string(), - authorization_endpoint: SafeUrlSchema, - token_endpoint: SafeUrlSchema, - userinfo_endpoint: SafeUrlSchema.optional(), - jwks_uri: SafeUrlSchema, - registration_endpoint: SafeUrlSchema.optional(), - scopes_supported: z.array(z.string()).optional(), - response_types_supported: z.array(z.string()), - response_modes_supported: z.array(z.string()).optional(), - grant_types_supported: z.array(z.string()).optional(), - acr_values_supported: z.array(z.string()).optional(), - subject_types_supported: z.array(z.string()), - id_token_signing_alg_values_supported: z.array(z.string()), - id_token_encryption_alg_values_supported: z.array(z.string()).optional(), - id_token_encryption_enc_values_supported: z.array(z.string()).optional(), - userinfo_signing_alg_values_supported: z.array(z.string()).optional(), - userinfo_encryption_alg_values_supported: z.array(z.string()).optional(), - userinfo_encryption_enc_values_supported: z.array(z.string()).optional(), - request_object_signing_alg_values_supported: z.array(z.string()).optional(), - request_object_encryption_alg_values_supported: z.array(z.string()).optional(), - request_object_encryption_enc_values_supported: z.array(z.string()).optional(), - token_endpoint_auth_methods_supported: z.array(z.string()).optional(), - token_endpoint_auth_signing_alg_values_supported: z.array(z.string()).optional(), - display_values_supported: z.array(z.string()).optional(), - claim_types_supported: z.array(z.string()).optional(), - claims_supported: z.array(z.string()).optional(), - service_documentation: z.string().optional(), - claims_locales_supported: z.array(z.string()).optional(), - ui_locales_supported: z.array(z.string()).optional(), - claims_parameter_supported: z.boolean().optional(), - request_parameter_supported: z.boolean().optional(), - request_uri_parameter_supported: z.boolean().optional(), - require_request_uri_registration: z.boolean().optional(), - op_policy_uri: SafeUrlSchema.optional(), - op_tos_uri: SafeUrlSchema.optional(), - client_id_metadata_document_supported: z.boolean().optional() -}); -/** - * OpenID Connect Discovery metadata that may include OAuth 2.0 fields - * This schema represents the real-world scenario where OIDC providers - * return a mix of OpenID Connect and OAuth 2.0 metadata fields - */ -export const OpenIdProviderDiscoveryMetadataSchema = z.object({ - ...OpenIdProviderMetadataSchema.shape, - ...OAuthMetadataSchema.pick({ - code_challenge_methods_supported: true - }).shape -}); -/** - * OAuth 2.1 token response - */ -export const OAuthTokensSchema = z - .object({ - access_token: z.string(), - id_token: z.string().optional(), // Optional for OAuth 2.1, but necessary in OpenID Connect - token_type: z.string(), - expires_in: z.coerce.number().optional(), - scope: z.string().optional(), - refresh_token: z.string().optional() -}) - .strip(); -/** - * OAuth 2.1 error response - */ -export const OAuthErrorResponseSchema = z.object({ - error: z.string(), - error_description: z.string().optional(), - error_uri: z.string().optional() -}); -/** - * Optional version of SafeUrlSchema that allows empty string for retrocompatibility on tos_uri and logo_uri - */ -export const OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z.literal('').transform(() => undefined)); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration metadata - */ -export const OAuthClientMetadataSchema = z - .object({ - redirect_uris: z.array(SafeUrlSchema), - token_endpoint_auth_method: z.string().optional(), - grant_types: z.array(z.string()).optional(), - response_types: z.array(z.string()).optional(), - client_name: z.string().optional(), - client_uri: SafeUrlSchema.optional(), - logo_uri: OptionalSafeUrlSchema, - scope: z.string().optional(), - contacts: z.array(z.string()).optional(), - tos_uri: OptionalSafeUrlSchema, - policy_uri: z.string().optional(), - jwks_uri: SafeUrlSchema.optional(), - jwks: z.any().optional(), - software_id: z.string().optional(), - software_version: z.string().optional(), - software_statement: z.string().optional() -}) - .strip(); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration client information - */ -export const OAuthClientInformationSchema = z - .object({ - client_id: z.string(), - client_secret: z.string().optional(), - client_id_issued_at: z.number().optional(), - client_secret_expires_at: z.number().optional() -}) - .strip(); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration full response (client information plus metadata) - */ -export const OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema); -/** - * RFC 7591 OAuth 2.0 Dynamic Client Registration error response - */ -export const OAuthClientRegistrationErrorSchema = z - .object({ - error: z.string(), - error_description: z.string().optional() -}) - .strip(); -/** - * RFC 7009 OAuth 2.0 Token Revocation request - */ -export const OAuthTokenRevocationRequestSchema = z - .object({ - token: z.string(), - token_type_hint: z.string().optional() -}) - .strip(); -//# sourceMappingURL=auth.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map deleted file mode 100644 index d529c24..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/shared/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KACzB,GAAG,EAAE;KACL,WAAW,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACtB,IAAI,CAAC,GAAG,CAAC,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C,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE9G;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC;KACD,KAAK,EAAE,CAAC;AAEb;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC7C,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts deleted file mode 100644 index 9dff76d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseMetadata } from '../types.js'; -/** - * Utilities for working with BaseMetadata objects. - */ -/** - * Gets the display name for an object with BaseMetadata. - * For tools, the precedence is: title → annotations.title → name - * For other objects: title → name - * This implements the spec requirement: "if no title is provided, name should be used for display purposes" - */ -export declare function getDisplayName(metadata: BaseMetadata | (BaseMetadata & { - annotations?: { - title?: string; - }; -})): string; -//# sourceMappingURL=metadataUtils.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map deleted file mode 100644 index 9d9929c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadataUtils.d.ts","sourceRoot":"","sources":["../../../src/shared/metadataUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AAEH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,CAAC,YAAY,GAAG;IAAE,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GAAG,MAAM,CAarH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js deleted file mode 100644 index 6d450c0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Utilities for working with BaseMetadata objects. - */ -/** - * Gets the display name for an object with BaseMetadata. - * For tools, the precedence is: title → annotations.title → name - * For other objects: title → name - * This implements the spec requirement: "if no title is provided, name should be used for display purposes" - */ -export function getDisplayName(metadata) { - // First check for title (not undefined and not empty string) - if (metadata.title !== undefined && metadata.title !== '') { - return metadata.title; - } - // Then check for annotations.title (only present in Tool objects) - if ('annotations' in metadata && metadata.annotations?.title) { - return metadata.annotations.title; - } - // Finally fall back to name - return metadata.name; -} -//# sourceMappingURL=metadataUtils.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map deleted file mode 100644 index d78868e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadataUtils.js","sourceRoot":"","sources":["../../../src/shared/metadataUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,QAA8E;IACzG,6DAA6D;IAC7D,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,IAAI,QAAQ,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QACxD,OAAO,QAAQ,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,kEAAkE;IAClE,IAAI,aAAa,IAAI,QAAQ,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC;QAC3D,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,4BAA4B;IAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts deleted file mode 100644 index 808bfed..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +++ /dev/null @@ -1,443 +0,0 @@ -import { AnySchema, AnyObjectSchema, SchemaOutput } from '../server/zod-compat.js'; -import { ClientCapabilities, GetTaskRequest, GetTaskPayloadRequest, ListTasksResultSchema, CancelTaskResultSchema, JSONRPCRequest, Progress, RequestId, Result, ServerCapabilities, RequestMeta, RequestInfo, GetTaskResult, TaskCreationParams, RelatedTaskMetadata, Task, Request, Notification } from '../types.js'; -import { Transport, TransportSendOptions } from './transport.js'; -import { AuthInfo } from '../server/auth/types.js'; -import { TaskStore, TaskMessageQueue, CreateTaskOptions } from '../experimental/tasks/interfaces.js'; -import { ResponseMessage } from './responseMessage.js'; -/** - * Callback for progress notifications. - */ -export type ProgressCallback = (progress: Progress) => void; -/** - * Additional initialization options. - */ -export type ProtocolOptions = { - /** - * Whether to restrict emitted requests to only those that the remote side has indicated that they can handle, through their advertised capabilities. - * - * Note that this DOES NOT affect checking of _local_ side capabilities, as it is considered a logic error to mis-specify those. - * - * Currently this defaults to false, for backwards compatibility with SDK versions that did not advertise capabilities correctly. In future, this will default to true. - */ - enforceStrictCapabilities?: boolean; - /** - * An array of notification method names that should be automatically debounced. - * Any notifications with a method in this list will be coalesced if they - * occur in the same tick of the event loop. - * e.g., ['notifications/tools/list_changed'] - */ - debouncedNotificationMethods?: string[]; - /** - * Optional task storage implementation. If provided, enables task-related request handlers - * and provides task storage capabilities to request handlers. - */ - taskStore?: TaskStore; - /** - * Optional task message queue implementation for managing server-initiated messages - * that will be delivered through the tasks/result response stream. - */ - taskMessageQueue?: TaskMessageQueue; - /** - * Default polling interval (in milliseconds) for task status checks when no pollInterval - * is provided by the server. Defaults to 5000ms if not specified. - */ - defaultTaskPollInterval?: number; - /** - * Maximum number of messages that can be queued per task for side-channel delivery. - * If undefined, the queue size is unbounded. - * When the limit is exceeded, the TaskMessageQueue implementation's enqueue() method - * will throw an error. It's the implementation's responsibility to handle overflow - * appropriately (e.g., by failing the task, dropping messages, etc.). - */ - maxTaskQueueSize?: number; -}; -/** - * The default request timeout, in miliseconds. - */ -export declare const DEFAULT_REQUEST_TIMEOUT_MSEC = 60000; -/** - * Options that can be given per request. - */ -export type RequestOptions = { - /** - * If set, requests progress notifications from the remote end (if supported). When progress notifications are received, this callback will be invoked. - * - * For task-augmented requests: progress notifications continue after CreateTaskResult is returned and stop automatically when the task reaches a terminal status. - */ - onprogress?: ProgressCallback; - /** - * Can be used to cancel an in-flight request. This will cause an AbortError to be raised from request(). - */ - signal?: AbortSignal; - /** - * A timeout (in milliseconds) for this request. If exceeded, an McpError with code `RequestTimeout` will be raised from request(). - * - * If not specified, `DEFAULT_REQUEST_TIMEOUT_MSEC` will be used as the timeout. - */ - timeout?: number; - /** - * If true, receiving a progress notification will reset the request timeout. - * This is useful for long-running operations that send periodic progress updates. - * Default: false - */ - resetTimeoutOnProgress?: boolean; - /** - * Maximum total time (in milliseconds) to wait for a response. - * If exceeded, an McpError with code `RequestTimeout` will be raised, regardless of progress notifications. - * If not specified, there is no maximum total timeout. - */ - maxTotalTimeout?: number; - /** - * If provided, augments the request with task creation parameters to enable call-now, fetch-later execution patterns. - */ - task?: TaskCreationParams; - /** - * If provided, associates this request with a related task. - */ - relatedTask?: RelatedTaskMetadata; -} & TransportSendOptions; -/** - * Options that can be given per notification. - */ -export type NotificationOptions = { - /** - * May be used to indicate to the transport which incoming request to associate this outgoing notification with. - */ - relatedRequestId?: RequestId; - /** - * If provided, associates this notification with a related task. - */ - relatedTask?: RelatedTaskMetadata; -}; -/** - * Options that can be given per request. - */ -export type TaskRequestOptions = Omit; -/** - * Request-scoped TaskStore interface. - */ -export interface RequestTaskStore { - /** - * Creates a new task with the given creation parameters. - * The implementation generates a unique taskId and createdAt timestamp. - * - * @param taskParams - The task creation parameters from the request - * @returns The created task object - */ - createTask(taskParams: CreateTaskOptions): Promise; - /** - * Gets the current status of a task. - * - * @param taskId - The task identifier - * @returns The task object - * @throws If the task does not exist - */ - getTask(taskId: string): Promise; - /** - * Stores the result of a task and sets its final status. - * - * @param taskId - The task identifier - * @param status - The final status: 'completed' for success, 'failed' for errors - * @param result - The result to store - */ - storeTaskResult(taskId: string, status: 'completed' | 'failed', result: Result): Promise; - /** - * Retrieves the stored result of a task. - * - * @param taskId - The task identifier - * @returns The stored result - */ - getTaskResult(taskId: string): Promise; - /** - * Updates a task's status (e.g., to 'cancelled', 'failed', 'completed'). - * - * @param taskId - The task identifier - * @param status - The new status - * @param statusMessage - Optional diagnostic message for failed tasks or other status information - */ - updateTaskStatus(taskId: string, status: Task['status'], statusMessage?: string): Promise; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @param cursor - Optional cursor for pagination - * @returns An object containing the tasks array and an optional nextCursor - */ - listTasks(cursor?: string): Promise<{ - tasks: Task[]; - nextCursor?: string; - }>; -} -/** - * Extra data given to request handlers. - */ -export type RequestHandlerExtra = { - /** - * An abort signal used to communicate if the request was cancelled from the sender's side. - */ - signal: AbortSignal; - /** - * Information about a validated access token, provided to request handlers. - */ - authInfo?: AuthInfo; - /** - * The session ID from the transport, if available. - */ - sessionId?: string; - /** - * Metadata from the original request. - */ - _meta?: RequestMeta; - /** - * The JSON-RPC ID of the request being handled. - * This can be useful for tracking or logging purposes. - */ - requestId: RequestId; - taskId?: string; - taskStore?: RequestTaskStore; - taskRequestedTtl?: number | null; - /** - * The original HTTP request. - */ - requestInfo?: RequestInfo; - /** - * Sends a notification that relates to the current request being handled. - * - * This is used by certain transports to correctly associate related messages. - */ - sendNotification: (notification: SendNotificationT) => Promise; - /** - * Sends a request that relates to the current request being handled. - * - * This is used by certain transports to correctly associate related messages. - */ - sendRequest: (request: SendRequestT, resultSchema: U, options?: TaskRequestOptions) => Promise>; - /** - * Closes the SSE stream for this request, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - * Use this to implement polling behavior during long-running operations. - */ - closeSSEStream?: () => void; - /** - * Closes the standalone GET SSE stream, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - * Use this to implement polling behavior for server-initiated notifications. - */ - closeStandaloneSSEStream?: () => void; -}; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -export declare abstract class Protocol { - private _options?; - private _transport?; - private _requestMessageId; - private _requestHandlers; - private _requestHandlerAbortControllers; - private _notificationHandlers; - private _responseHandlers; - private _progressHandlers; - private _timeoutInfo; - private _pendingDebouncedNotifications; - private _taskProgressTokens; - private _taskStore?; - private _taskMessageQueue?; - private _requestResolvers; - /** - * Callback for when the connection is closed for any reason. - * - * This is invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * A handler to invoke for any request types that do not have their own handler installed. - */ - fallbackRequestHandler?: (request: JSONRPCRequest, extra: RequestHandlerExtra) => Promise; - /** - * A handler to invoke for any notification types that do not have their own handler installed. - */ - fallbackNotificationHandler?: (notification: Notification) => Promise; - constructor(_options?: ProtocolOptions | undefined); - private _oncancel; - private _setupTimeout; - private _resetTimeout; - private _cleanupTimeout; - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - connect(transport: Transport): Promise; - private _onclose; - private _onerror; - private _onnotification; - private _onrequest; - private _onprogress; - private _onresponse; - get transport(): Transport | undefined; - /** - * Closes the connection. - */ - close(): Promise; - /** - * A method to check if a capability is supported by the remote side, for the given method to be called. - * - * This should be implemented by subclasses. - */ - protected abstract assertCapabilityForMethod(method: SendRequestT['method']): void; - /** - * A method to check if a notification is supported by the local side, for the given method to be sent. - * - * This should be implemented by subclasses. - */ - protected abstract assertNotificationCapability(method: SendNotificationT['method']): void; - /** - * A method to check if a request handler is supported by the local side, for the given method to be handled. - * - * This should be implemented by subclasses. - */ - protected abstract assertRequestHandlerCapability(method: string): void; - /** - * A method to check if task creation is supported for the given request method. - * - * This should be implemented by subclasses. - */ - protected abstract assertTaskCapability(method: string): void; - /** - * A method to check if task handler is supported by the local side, for the given method to be handled. - * - * This should be implemented by subclasses. - */ - protected abstract assertTaskHandlerCapability(method: string): void; - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * @example - * ```typescript - * const stream = protocol.requestStream(request, resultSchema, options); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Task created:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Task status:', message.task.status); - * break; - * case 'result': - * console.log('Final result:', message.result); - * break; - * case 'error': - * console.error('Error:', message.error); - * break; - * } - * } - * ``` - * - * @experimental Use `client.experimental.tasks.requestStream()` to access this method. - */ - protected requestStream(request: SendRequestT, resultSchema: T, options?: RequestOptions): AsyncGenerator>, void, void>; - /** - * Sends a request and waits for a response. - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request: SendRequestT, resultSchema: T, options?: RequestOptions): Promise>; - /** - * Gets the current status of a task. - * - * @experimental Use `client.experimental.tasks.getTask()` to access this method. - */ - protected getTask(params: GetTaskRequest['params'], options?: RequestOptions): Promise; - /** - * Retrieves the result of a completed task. - * - * @experimental Use `client.experimental.tasks.getTaskResult()` to access this method. - */ - protected getTaskResult(params: GetTaskPayloadRequest['params'], resultSchema: T, options?: RequestOptions): Promise>; - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @experimental Use `client.experimental.tasks.listTasks()` to access this method. - */ - protected listTasks(params?: { - cursor?: string; - }, options?: RequestOptions): Promise>; - /** - * Cancels a specific task. - * - * @experimental Use `client.experimental.tasks.cancelTask()` to access this method. - */ - protected cancelTask(params: { - taskId: string; - }, options?: RequestOptions): Promise>; - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - notification(notification: SendNotificationT, options?: NotificationOptions): Promise; - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler(requestSchema: T, handler: (request: SchemaOutput, extra: RequestHandlerExtra) => SendResultT | Promise): void; - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method: string): void; - /** - * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed. - */ - assertCanSetRequestHandler(method: string): void; - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler(notificationSchema: T, handler: (notification: SchemaOutput) => void | Promise): void; - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method: string): void; - /** - * Cleans up the progress handler associated with a task. - * This should be called when a task reaches a terminal status. - */ - private _cleanupTaskProgressHandler; - /** - * Enqueues a task-related message for side-channel delivery via tasks/result. - * @param taskId The task ID to associate the message with - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @throws Error if taskStore is not configured or if enqueue fails (e.g., queue overflow) - * - * Note: If enqueue fails, it's the TaskMessageQueue implementation's responsibility to handle - * the error appropriately (e.g., by failing the task, logging, etc.). The Protocol layer - * simply propagates the error. - */ - private _enqueueTaskMessage; - /** - * Clears the message queue for a task and rejects any pending request resolvers. - * @param taskId The task ID whose queue should be cleared - * @param sessionId Optional session ID for binding the operation to a specific session - */ - private _clearTaskQueue; - /** - * Waits for a task update (new messages or status change) with abort signal support. - * Uses polling to check for updates at the task's configured poll interval. - * @param taskId The task ID to wait for - * @param signal Abort signal to cancel the wait - * @returns Promise that resolves when an update occurs or rejects if aborted - */ - private _waitForTaskUpdate; - private requestTaskStore; -} -export declare function mergeCapabilities(base: ServerCapabilities, additional: Partial): ServerCapabilities; -export declare function mergeCapabilities(base: ClientCapabilities, additional: Partial): ClientCapabilities; -//# sourceMappingURL=protocol.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map deleted file mode 100644 index b669a01..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/shared/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAa,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAEH,kBAAkB,EAGlB,cAAc,EAGd,qBAAqB,EAGrB,qBAAqB,EAErB,sBAAsB,EAOtB,cAAc,EAId,QAAQ,EAIR,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,WAAW,EAEX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EAEnB,IAAI,EAGJ,OAAO,EACP,YAAY,EAGf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAc,SAAS,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BAAiB,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8GjG;;;;OAIG;IACH,iBAAiB,CAAC,CAAC,SAAS,eAAe,EACvC,aAAa,EAAE,CAAC,EAChB,OAAO,EAAE,CACL,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EACxB,KAAK,EAAE,mBAAmB,CAAC,YAAY,EAAE,iBAAiB,CAAC,KAC1D,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GACxC,IAAI;IAUP;;OAEG;IACH,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI1C;;OAEG;IACH,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMhD;;;;OAIG;IACH,sBAAsB,CAAC,CAAC,SAAS,eAAe,EAC5C,kBAAkB,EAAE,CAAC,EACrB,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GACjE,IAAI;IAQP;;OAEG;IACH,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/C;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAQnC;;;;;;;;;;OAUG;YACW,mBAAmB;IAUjC;;;;OAIG;YACW,eAAe;IAqB7B;;;;;;OAMG;YACW,kBAAkB;IAiChC,OAAO,CAAC,gBAAgB;CAwF3B;AAMD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AACzH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js deleted file mode 100644 index 02388a3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +++ /dev/null @@ -1,1086 +0,0 @@ -import { safeParse } from '../server/zod-compat.js'; -import { CancelledNotificationSchema, CreateTaskResultSchema, ErrorCode, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, isJSONRPCErrorResponse, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCNotification, McpError, PingRequestSchema, ProgressNotificationSchema, RELATED_TASK_META_KEY, TaskStatusNotificationSchema, isTaskAugmentedRequestParams } from '../types.js'; -import { isTerminal } from '../experimental/tasks/interfaces.js'; -import { getMethodLiteral, parseWithCompat } from '../server/zod-json-schema-compat.js'; -/** - * The default request timeout, in miliseconds. - */ -export const DEFAULT_REQUEST_TIMEOUT_MSEC = 60000; -/** - * Implements MCP protocol framing on top of a pluggable transport, including - * features like request/response linking, notifications, and progress. - */ -export class Protocol { - constructor(_options) { - this._options = _options; - this._requestMessageId = 0; - this._requestHandlers = new Map(); - this._requestHandlerAbortControllers = new Map(); - this._notificationHandlers = new Map(); - this._responseHandlers = new Map(); - this._progressHandlers = new Map(); - this._timeoutInfo = new Map(); - this._pendingDebouncedNotifications = new Set(); - // Maps task IDs to progress tokens to keep handlers alive after CreateTaskResult - this._taskProgressTokens = new Map(); - this._requestResolvers = new Map(); - this.setNotificationHandler(CancelledNotificationSchema, notification => { - this._oncancel(notification); - }); - this.setNotificationHandler(ProgressNotificationSchema, notification => { - this._onprogress(notification); - }); - this.setRequestHandler(PingRequestSchema, - // Automatic pong by default. - _request => ({})); - // Install task handlers if TaskStore is provided - this._taskStore = _options?.taskStore; - this._taskMessageQueue = _options?.taskMessageQueue; - if (this._taskStore) { - this.setRequestHandler(GetTaskRequestSchema, async (request, extra) => { - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, 'Failed to retrieve task: Task not found'); - } - // Per spec: tasks/get responses SHALL NOT include related-task metadata - // as the taskId parameter is the source of truth - // @ts-expect-error SendResultT cannot contain GetTaskResult, but we include it in our derived types everywhere else - return { - ...task - }; - }); - this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => { - const handleTaskResult = async () => { - const taskId = request.params.taskId; - // Deliver queued messages - if (this._taskMessageQueue) { - let queuedMessage; - while ((queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId))) { - // Handle response and error messages by routing them to the appropriate resolver - if (queuedMessage.type === 'response' || queuedMessage.type === 'error') { - const message = queuedMessage.message; - const requestId = message.id; - // Lookup resolver in _requestResolvers map - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - // Remove resolver from map after invocation - this._requestResolvers.delete(requestId); - // Invoke resolver with response or error - if (queuedMessage.type === 'response') { - resolver(message); - } - else { - // Convert JSONRPCError to McpError - const errorMessage = message; - const error = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data); - resolver(error); - } - } - else { - // Handle missing resolver gracefully with error logging - const messageType = queuedMessage.type === 'response' ? 'Response' : 'Error'; - this._onerror(new Error(`${messageType} handler missing for request ${requestId}`)); - } - // Continue to next message - continue; - } - // Send the message on the response stream by passing the relatedRequestId - // This tells the transport to write the message to the tasks/result response stream - await this._transport?.send(queuedMessage.message, { relatedRequestId: extra.requestId }); - } - } - // Now check task status - const task = await this._taskStore.getTask(taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`); - } - // Block if task is not terminal (we've already delivered all queued messages above) - if (!isTerminal(task.status)) { - // Wait for status change or new messages - await this._waitForTaskUpdate(taskId, extra.signal); - // After waking up, recursively call to deliver any new messages or result - return await handleTaskResult(); - } - // If task is terminal, return the result - if (isTerminal(task.status)) { - const result = await this._taskStore.getTaskResult(taskId, extra.sessionId); - this._clearTaskQueue(taskId); - return { - ...result, - _meta: { - ...result._meta, - [RELATED_TASK_META_KEY]: { - taskId: taskId - } - } - }; - } - return await handleTaskResult(); - }; - return await handleTaskResult(); - }); - this.setRequestHandler(ListTasksRequestSchema, async (request, extra) => { - try { - const { tasks, nextCursor } = await this._taskStore.listTasks(request.params?.cursor, extra.sessionId); - // @ts-expect-error SendResultT cannot contain ListTasksResult, but we include it in our derived types everywhere else - return { - tasks, - nextCursor, - _meta: {} - }; - } - catch (error) { - throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error instanceof Error ? error.message : String(error)}`); - } - }); - this.setRequestHandler(CancelTaskRequestSchema, async (request, extra) => { - try { - // Get the current task to check if it's in a terminal state, in case the implementation is not atomic - const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task not found: ${request.params.taskId}`); - } - // Reject cancellation of terminal tasks - if (isTerminal(task.status)) { - throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`); - } - await this._taskStore.updateTaskStatus(request.params.taskId, 'cancelled', 'Client cancelled task execution.', extra.sessionId); - this._clearTaskQueue(request.params.taskId); - const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId); - if (!cancelledTask) { - // Task was deleted during cancellation (e.g., cleanup happened) - throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`); - } - return { - _meta: {}, - ...cancelledTask - }; - } - catch (error) { - // Re-throw McpError as-is - if (error instanceof McpError) { - throw error; - } - throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error instanceof Error ? error.message : String(error)}`); - } - }); - } - } - async _oncancel(notification) { - if (!notification.params.requestId) { - return; - } - // Handle request cancellation - const controller = this._requestHandlerAbortControllers.get(notification.params.requestId); - controller?.abort(notification.params.reason); - } - _setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) { - this._timeoutInfo.set(messageId, { - timeoutId: setTimeout(onTimeout, timeout), - startTime: Date.now(), - timeout, - maxTotalTimeout, - resetTimeoutOnProgress, - onTimeout - }); - } - _resetTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (!info) - return false; - const totalElapsed = Date.now() - info.startTime; - if (info.maxTotalTimeout && totalElapsed >= info.maxTotalTimeout) { - this._timeoutInfo.delete(messageId); - throw McpError.fromError(ErrorCode.RequestTimeout, 'Maximum total timeout exceeded', { - maxTotalTimeout: info.maxTotalTimeout, - totalElapsed - }); - } - clearTimeout(info.timeoutId); - info.timeoutId = setTimeout(info.onTimeout, info.timeout); - return true; - } - _cleanupTimeout(messageId) { - const info = this._timeoutInfo.get(messageId); - if (info) { - clearTimeout(info.timeoutId); - this._timeoutInfo.delete(messageId); - } - } - /** - * Attaches to the given transport, starts it, and starts listening for messages. - * - * The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. - */ - async connect(transport) { - this._transport = transport; - const _onclose = this.transport?.onclose; - this._transport.onclose = () => { - _onclose?.(); - this._onclose(); - }; - const _onerror = this.transport?.onerror; - this._transport.onerror = (error) => { - _onerror?.(error); - this._onerror(error); - }; - const _onmessage = this._transport?.onmessage; - this._transport.onmessage = (message, extra) => { - _onmessage?.(message, extra); - if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) { - this._onresponse(message); - } - else if (isJSONRPCRequest(message)) { - this._onrequest(message, extra); - } - else if (isJSONRPCNotification(message)) { - this._onnotification(message); - } - else { - this._onerror(new Error(`Unknown message type: ${JSON.stringify(message)}`)); - } - }; - await this._transport.start(); - } - _onclose() { - const responseHandlers = this._responseHandlers; - this._responseHandlers = new Map(); - this._progressHandlers.clear(); - this._taskProgressTokens.clear(); - this._pendingDebouncedNotifications.clear(); - const error = McpError.fromError(ErrorCode.ConnectionClosed, 'Connection closed'); - this._transport = undefined; - this.onclose?.(); - for (const handler of responseHandlers.values()) { - handler(error); - } - } - _onerror(error) { - this.onerror?.(error); - } - _onnotification(notification) { - const handler = this._notificationHandlers.get(notification.method) ?? this.fallbackNotificationHandler; - // Ignore notifications not being subscribed to. - if (handler === undefined) { - return; - } - // Starting with Promise.resolve() puts any synchronous errors into the monad as well. - Promise.resolve() - .then(() => handler(notification)) - .catch(error => this._onerror(new Error(`Uncaught error in notification handler: ${error}`))); - } - _onrequest(request, extra) { - const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler; - // Capture the current transport at request time to ensure responses go to the correct client - const capturedTransport = this._transport; - // Extract taskId from request metadata if present (needed early for method not found case) - const relatedTaskId = request.params?._meta?.[RELATED_TASK_META_KEY]?.taskId; - if (handler === undefined) { - const errorResponse = { - jsonrpc: '2.0', - id: request.id, - error: { - code: ErrorCode.MethodNotFound, - message: 'Method not found' - } - }; - // Queue or send the error response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - this._enqueueTaskMessage(relatedTaskId, { - type: 'error', - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId).catch(error => this._onerror(new Error(`Failed to enqueue error response: ${error}`))); - } - else { - capturedTransport - ?.send(errorResponse) - .catch(error => this._onerror(new Error(`Failed to send an error response: ${error}`))); - } - return; - } - const abortController = new AbortController(); - this._requestHandlerAbortControllers.set(request.id, abortController); - const taskCreationParams = isTaskAugmentedRequestParams(request.params) ? request.params.task : undefined; - const taskStore = this._taskStore ? this.requestTaskStore(request, capturedTransport?.sessionId) : undefined; - const fullExtra = { - signal: abortController.signal, - sessionId: capturedTransport?.sessionId, - _meta: request.params?._meta, - sendNotification: async (notification) => { - // Include related-task metadata if this request is part of a task - const notificationOptions = { relatedRequestId: request.id }; - if (relatedTaskId) { - notificationOptions.relatedTask = { taskId: relatedTaskId }; - } - await this.notification(notification, notificationOptions); - }, - sendRequest: async (r, resultSchema, options) => { - // Include related-task metadata if this request is part of a task - const requestOptions = { ...options, relatedRequestId: request.id }; - if (relatedTaskId && !requestOptions.relatedTask) { - requestOptions.relatedTask = { taskId: relatedTaskId }; - } - // Set task status to input_required when sending a request within a task context - // Use the taskId from options (explicit) or fall back to relatedTaskId (inherited) - const effectiveTaskId = requestOptions.relatedTask?.taskId ?? relatedTaskId; - if (effectiveTaskId && taskStore) { - await taskStore.updateTaskStatus(effectiveTaskId, 'input_required'); - } - return await this.request(r, resultSchema, requestOptions); - }, - authInfo: extra?.authInfo, - requestId: request.id, - requestInfo: extra?.requestInfo, - taskId: relatedTaskId, - taskStore: taskStore, - taskRequestedTtl: taskCreationParams?.ttl, - closeSSEStream: extra?.closeSSEStream, - closeStandaloneSSEStream: extra?.closeStandaloneSSEStream - }; - // Starting with Promise.resolve() puts any synchronous errors into the monad as well. - Promise.resolve() - .then(() => { - // If this request asked for task creation, check capability first - if (taskCreationParams) { - // Check if the request method supports task creation - this.assertTaskHandlerCapability(request.method); - } - }) - .then(() => handler(request, fullExtra)) - .then(async (result) => { - if (abortController.signal.aborted) { - // Request was cancelled - return; - } - const response = { - result, - jsonrpc: '2.0', - id: request.id - }; - // Queue or send the response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: 'response', - message: response, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } - else { - await capturedTransport?.send(response); - } - }, async (error) => { - if (abortController.signal.aborted) { - // Request was cancelled - return; - } - const errorResponse = { - jsonrpc: '2.0', - id: request.id, - error: { - code: Number.isSafeInteger(error['code']) ? error['code'] : ErrorCode.InternalError, - message: error.message ?? 'Internal error', - ...(error['data'] !== undefined && { data: error['data'] }) - } - }; - // Queue or send the error response based on whether this is a task-related request - if (relatedTaskId && this._taskMessageQueue) { - await this._enqueueTaskMessage(relatedTaskId, { - type: 'error', - message: errorResponse, - timestamp: Date.now() - }, capturedTransport?.sessionId); - } - else { - await capturedTransport?.send(errorResponse); - } - }) - .catch(error => this._onerror(new Error(`Failed to send response: ${error}`))) - .finally(() => { - this._requestHandlerAbortControllers.delete(request.id); - }); - } - _onprogress(notification) { - const { progressToken, ...params } = notification.params; - const messageId = Number(progressToken); - const handler = this._progressHandlers.get(messageId); - if (!handler) { - this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(notification)}`)); - return; - } - const responseHandler = this._responseHandlers.get(messageId); - const timeoutInfo = this._timeoutInfo.get(messageId); - if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) { - try { - this._resetTimeout(messageId); - } - catch (error) { - // Clean up if maxTotalTimeout was exceeded - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - responseHandler(error); - return; - } - } - handler(params); - } - _onresponse(response) { - const messageId = Number(response.id); - // Check if this is a response to a queued request - const resolver = this._requestResolvers.get(messageId); - if (resolver) { - this._requestResolvers.delete(messageId); - if (isJSONRPCResultResponse(response)) { - resolver(response); - } - else { - const error = new McpError(response.error.code, response.error.message, response.error.data); - resolver(error); - } - return; - } - const handler = this._responseHandlers.get(messageId); - if (handler === undefined) { - this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(response)}`)); - return; - } - this._responseHandlers.delete(messageId); - this._cleanupTimeout(messageId); - // Keep progress handler alive for CreateTaskResult responses - let isTaskResponse = false; - if (isJSONRPCResultResponse(response) && response.result && typeof response.result === 'object') { - const result = response.result; - if (result.task && typeof result.task === 'object') { - const task = result.task; - if (typeof task.taskId === 'string') { - isTaskResponse = true; - this._taskProgressTokens.set(task.taskId, messageId); - } - } - } - if (!isTaskResponse) { - this._progressHandlers.delete(messageId); - } - if (isJSONRPCResultResponse(response)) { - handler(response); - } - else { - const error = McpError.fromError(response.error.code, response.error.message, response.error.data); - handler(error); - } - } - get transport() { - return this._transport; - } - /** - * Closes the connection. - */ - async close() { - await this._transport?.close(); - } - /** - * Sends a request and returns an AsyncGenerator that yields response messages. - * The generator is guaranteed to end with either a 'result' or 'error' message. - * - * @example - * ```typescript - * const stream = protocol.requestStream(request, resultSchema, options); - * for await (const message of stream) { - * switch (message.type) { - * case 'taskCreated': - * console.log('Task created:', message.task.taskId); - * break; - * case 'taskStatus': - * console.log('Task status:', message.task.status); - * break; - * case 'result': - * console.log('Final result:', message.result); - * break; - * case 'error': - * console.error('Error:', message.error); - * break; - * } - * } - * ``` - * - * @experimental Use `client.experimental.tasks.requestStream()` to access this method. - */ - async *requestStream(request, resultSchema, options) { - const { task } = options ?? {}; - // For non-task requests, just yield the result - if (!task) { - try { - const result = await this.request(request, resultSchema, options); - yield { type: 'result', result }; - } - catch (error) { - yield { - type: 'error', - error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error)) - }; - } - return; - } - // For task-augmented requests, we need to poll for status - // First, make the request to create the task - let taskId; - try { - // Send the request and get the CreateTaskResult - const createResult = await this.request(request, CreateTaskResultSchema, options); - // Extract taskId from the result - if (createResult.task) { - taskId = createResult.task.taskId; - yield { type: 'taskCreated', task: createResult.task }; - } - else { - throw new McpError(ErrorCode.InternalError, 'Task creation did not return a task'); - } - // Poll for task completion - while (true) { - // Get current task status - const task = await this.getTask({ taskId }, options); - yield { type: 'taskStatus', task }; - // Check if task is terminal - if (isTerminal(task.status)) { - if (task.status === 'completed') { - // Get the final result - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: 'result', result }; - } - else if (task.status === 'failed') { - yield { - type: 'error', - error: new McpError(ErrorCode.InternalError, `Task ${taskId} failed`) - }; - } - else if (task.status === 'cancelled') { - yield { - type: 'error', - error: new McpError(ErrorCode.InternalError, `Task ${taskId} was cancelled`) - }; - } - return; - } - // When input_required, call tasks/result to deliver queued messages - // (elicitation, sampling) via SSE and block until terminal - if (task.status === 'input_required') { - const result = await this.getTaskResult({ taskId }, resultSchema, options); - yield { type: 'result', result }; - return; - } - // Wait before polling again - const pollInterval = task.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000; - await new Promise(resolve => setTimeout(resolve, pollInterval)); - // Check if cancelled - options?.signal?.throwIfAborted(); - } - } - catch (error) { - yield { - type: 'error', - error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error)) - }; - } - } - /** - * Sends a request and waits for a response. - * - * Do not use this method to emit notifications! Use notification() instead. - */ - request(request, resultSchema, options) { - const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {}; - // Send the request - return new Promise((resolve, reject) => { - const earlyReject = (error) => { - reject(error); - }; - if (!this._transport) { - earlyReject(new Error('Not connected')); - return; - } - if (this._options?.enforceStrictCapabilities === true) { - try { - this.assertCapabilityForMethod(request.method); - // If task creation is requested, also check task capabilities - if (task) { - this.assertTaskCapability(request.method); - } - } - catch (e) { - earlyReject(e); - return; - } - } - options?.signal?.throwIfAborted(); - const messageId = this._requestMessageId++; - const jsonrpcRequest = { - ...request, - jsonrpc: '2.0', - id: messageId - }; - if (options?.onprogress) { - this._progressHandlers.set(messageId, options.onprogress); - jsonrpcRequest.params = { - ...request.params, - _meta: { - ...(request.params?._meta || {}), - progressToken: messageId - } - }; - } - // Augment with task creation parameters if provided - if (task) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - task: task - }; - } - // Augment with related task metadata if relatedTask is provided - if (relatedTask) { - jsonrpcRequest.params = { - ...jsonrpcRequest.params, - _meta: { - ...(jsonrpcRequest.params?._meta || {}), - [RELATED_TASK_META_KEY]: relatedTask - } - }; - } - const cancel = (reason) => { - this._responseHandlers.delete(messageId); - this._progressHandlers.delete(messageId); - this._cleanupTimeout(messageId); - this._transport - ?.send({ - jsonrpc: '2.0', - method: 'notifications/cancelled', - params: { - requestId: messageId, - reason: String(reason) - } - }, { relatedRequestId, resumptionToken, onresumptiontoken }) - .catch(error => this._onerror(new Error(`Failed to send cancellation: ${error}`))); - // Wrap the reason in an McpError if it isn't already - const error = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason)); - reject(error); - }; - this._responseHandlers.set(messageId, response => { - if (options?.signal?.aborted) { - return; - } - if (response instanceof Error) { - return reject(response); - } - try { - const parseResult = safeParse(resultSchema, response.result); - if (!parseResult.success) { - // Type guard: if success is false, error is guaranteed to exist - reject(parseResult.error); - } - else { - resolve(parseResult.data); - } - } - catch (error) { - reject(error); - } - }); - options?.signal?.addEventListener('abort', () => { - cancel(options?.signal?.reason); - }); - const timeout = options?.timeout ?? DEFAULT_REQUEST_TIMEOUT_MSEC; - const timeoutHandler = () => cancel(McpError.fromError(ErrorCode.RequestTimeout, 'Request timed out', { timeout })); - this._setupTimeout(messageId, timeout, options?.maxTotalTimeout, timeoutHandler, options?.resetTimeoutOnProgress ?? false); - // Queue request if related to a task - const relatedTaskId = relatedTask?.taskId; - if (relatedTaskId) { - // Store the response resolver for this request so responses can be routed back - const responseResolver = (response) => { - const handler = this._responseHandlers.get(messageId); - if (handler) { - handler(response); - } - else { - // Log error when resolver is missing, but don't fail - this._onerror(new Error(`Response handler missing for side-channeled request ${messageId}`)); - } - }; - this._requestResolvers.set(messageId, responseResolver); - this._enqueueTaskMessage(relatedTaskId, { - type: 'request', - message: jsonrpcRequest, - timestamp: Date.now() - }).catch(error => { - this._cleanupTimeout(messageId); - reject(error); - }); - // Don't send through transport - queued messages are delivered via tasks/result only - // This prevents duplicate delivery for bidirectional transports - } - else { - // No related task - send through transport normally - this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch(error => { - this._cleanupTimeout(messageId); - reject(error); - }); - } - }); - } - /** - * Gets the current status of a task. - * - * @experimental Use `client.experimental.tasks.getTask()` to access this method. - */ - async getTask(params, options) { - // @ts-expect-error SendRequestT cannot directly contain GetTaskRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/get', params }, GetTaskResultSchema, options); - } - /** - * Retrieves the result of a completed task. - * - * @experimental Use `client.experimental.tasks.getTaskResult()` to access this method. - */ - async getTaskResult(params, resultSchema, options) { - // @ts-expect-error SendRequestT cannot directly contain GetTaskPayloadRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/result', params }, resultSchema, options); - } - /** - * Lists tasks, optionally starting from a pagination cursor. - * - * @experimental Use `client.experimental.tasks.listTasks()` to access this method. - */ - async listTasks(params, options) { - // @ts-expect-error SendRequestT cannot directly contain ListTasksRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/list', params }, ListTasksResultSchema, options); - } - /** - * Cancels a specific task. - * - * @experimental Use `client.experimental.tasks.cancelTask()` to access this method. - */ - async cancelTask(params, options) { - // @ts-expect-error SendRequestT cannot directly contain CancelTaskRequest, but we ensure all type instantiations contain it anyways - return this.request({ method: 'tasks/cancel', params }, CancelTaskResultSchema, options); - } - /** - * Emits a notification, which is a one-way message that does not expect a response. - */ - async notification(notification, options) { - if (!this._transport) { - throw new Error('Not connected'); - } - this.assertNotificationCapability(notification.method); - // Queue notification if related to a task - const relatedTaskId = options?.relatedTask?.taskId; - if (relatedTaskId) { - // Build the JSONRPC notification with metadata - const jsonrpcNotification = { - ...notification, - jsonrpc: '2.0', - params: { - ...notification.params, - _meta: { - ...(notification.params?._meta || {}), - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - await this._enqueueTaskMessage(relatedTaskId, { - type: 'notification', - message: jsonrpcNotification, - timestamp: Date.now() - }); - // Don't send through transport - queued messages are delivered via tasks/result only - // This prevents duplicate delivery for bidirectional transports - return; - } - const debouncedMethods = this._options?.debouncedNotificationMethods ?? []; - // A notification can only be debounced if it's in the list AND it's "simple" - // (i.e., has no parameters and no related request ID or related task that could be lost). - const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !options?.relatedRequestId && !options?.relatedTask; - if (canDebounce) { - // If a notification of this type is already scheduled, do nothing. - if (this._pendingDebouncedNotifications.has(notification.method)) { - return; - } - // Mark this notification type as pending. - this._pendingDebouncedNotifications.add(notification.method); - // Schedule the actual send to happen in the next microtask. - // This allows all synchronous calls in the current event loop tick to be coalesced. - Promise.resolve().then(() => { - // Un-mark the notification so the next one can be scheduled. - this._pendingDebouncedNotifications.delete(notification.method); - // SAFETY CHECK: If the connection was closed while this was pending, abort. - if (!this._transport) { - return; - } - let jsonrpcNotification = { - ...notification, - jsonrpc: '2.0' - }; - // Augment with related task metadata if relatedTask is provided - if (options?.relatedTask) { - jsonrpcNotification = { - ...jsonrpcNotification, - params: { - ...jsonrpcNotification.params, - _meta: { - ...(jsonrpcNotification.params?._meta || {}), - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - // Send the notification, but don't await it here to avoid blocking. - // Handle potential errors with a .catch(). - this._transport?.send(jsonrpcNotification, options).catch(error => this._onerror(error)); - }); - // Return immediately. - return; - } - let jsonrpcNotification = { - ...notification, - jsonrpc: '2.0' - }; - // Augment with related task metadata if relatedTask is provided - if (options?.relatedTask) { - jsonrpcNotification = { - ...jsonrpcNotification, - params: { - ...jsonrpcNotification.params, - _meta: { - ...(jsonrpcNotification.params?._meta || {}), - [RELATED_TASK_META_KEY]: options.relatedTask - } - } - }; - } - await this._transport.send(jsonrpcNotification, options); - } - /** - * Registers a handler to invoke when this protocol object receives a request with the given method. - * - * Note that this will replace any previous request handler for the same method. - */ - setRequestHandler(requestSchema, handler) { - const method = getMethodLiteral(requestSchema); - this.assertRequestHandlerCapability(method); - this._requestHandlers.set(method, (request, extra) => { - const parsed = parseWithCompat(requestSchema, request); - return Promise.resolve(handler(parsed, extra)); - }); - } - /** - * Removes the request handler for the given method. - */ - removeRequestHandler(method) { - this._requestHandlers.delete(method); - } - /** - * Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed. - */ - assertCanSetRequestHandler(method) { - if (this._requestHandlers.has(method)) { - throw new Error(`A request handler for ${method} already exists, which would be overridden`); - } - } - /** - * Registers a handler to invoke when this protocol object receives a notification with the given method. - * - * Note that this will replace any previous notification handler for the same method. - */ - setNotificationHandler(notificationSchema, handler) { - const method = getMethodLiteral(notificationSchema); - this._notificationHandlers.set(method, notification => { - const parsed = parseWithCompat(notificationSchema, notification); - return Promise.resolve(handler(parsed)); - }); - } - /** - * Removes the notification handler for the given method. - */ - removeNotificationHandler(method) { - this._notificationHandlers.delete(method); - } - /** - * Cleans up the progress handler associated with a task. - * This should be called when a task reaches a terminal status. - */ - _cleanupTaskProgressHandler(taskId) { - const progressToken = this._taskProgressTokens.get(taskId); - if (progressToken !== undefined) { - this._progressHandlers.delete(progressToken); - this._taskProgressTokens.delete(taskId); - } - } - /** - * Enqueues a task-related message for side-channel delivery via tasks/result. - * @param taskId The task ID to associate the message with - * @param message The message to enqueue - * @param sessionId Optional session ID for binding the operation to a specific session - * @throws Error if taskStore is not configured or if enqueue fails (e.g., queue overflow) - * - * Note: If enqueue fails, it's the TaskMessageQueue implementation's responsibility to handle - * the error appropriately (e.g., by failing the task, logging, etc.). The Protocol layer - * simply propagates the error. - */ - async _enqueueTaskMessage(taskId, message, sessionId) { - // Task message queues are only used when taskStore is configured - if (!this._taskStore || !this._taskMessageQueue) { - throw new Error('Cannot enqueue task message: taskStore and taskMessageQueue are not configured'); - } - const maxQueueSize = this._options?.maxTaskQueueSize; - await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize); - } - /** - * Clears the message queue for a task and rejects any pending request resolvers. - * @param taskId The task ID whose queue should be cleared - * @param sessionId Optional session ID for binding the operation to a specific session - */ - async _clearTaskQueue(taskId, sessionId) { - if (this._taskMessageQueue) { - // Reject any pending request resolvers - const messages = await this._taskMessageQueue.dequeueAll(taskId, sessionId); - for (const message of messages) { - if (message.type === 'request' && isJSONRPCRequest(message.message)) { - // Extract request ID from the message - const requestId = message.message.id; - const resolver = this._requestResolvers.get(requestId); - if (resolver) { - resolver(new McpError(ErrorCode.InternalError, 'Task cancelled or completed')); - this._requestResolvers.delete(requestId); - } - else { - // Log error when resolver is missing during cleanup for better observability - this._onerror(new Error(`Resolver missing for request ${requestId} during task ${taskId} cleanup`)); - } - } - } - } - } - /** - * Waits for a task update (new messages or status change) with abort signal support. - * Uses polling to check for updates at the task's configured poll interval. - * @param taskId The task ID to wait for - * @param signal Abort signal to cancel the wait - * @returns Promise that resolves when an update occurs or rejects if aborted - */ - async _waitForTaskUpdate(taskId, signal) { - // Get the task's poll interval, falling back to default - let interval = this._options?.defaultTaskPollInterval ?? 1000; - try { - const task = await this._taskStore?.getTask(taskId); - if (task?.pollInterval) { - interval = task.pollInterval; - } - } - catch { - // Use default interval if task lookup fails - } - return new Promise((resolve, reject) => { - if (signal.aborted) { - reject(new McpError(ErrorCode.InvalidRequest, 'Request cancelled')); - return; - } - // Wait for the poll interval, then resolve so caller can check for updates - const timeoutId = setTimeout(resolve, interval); - // Clean up timeout and reject if aborted - signal.addEventListener('abort', () => { - clearTimeout(timeoutId); - reject(new McpError(ErrorCode.InvalidRequest, 'Request cancelled')); - }, { once: true }); - }); - } - requestTaskStore(request, sessionId) { - const taskStore = this._taskStore; - if (!taskStore) { - throw new Error('No task store configured'); - } - return { - createTask: async (taskParams) => { - if (!request) { - throw new Error('No request provided'); - } - return await taskStore.createTask(taskParams, request.id, { - method: request.method, - params: request.params - }, sessionId); - }, - getTask: async (taskId) => { - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, 'Failed to retrieve task: Task not found'); - } - return task; - }, - storeTaskResult: async (taskId, status, result) => { - await taskStore.storeTaskResult(taskId, status, result, sessionId); - // Get updated task state and send notification - const task = await taskStore.getTask(taskId, sessionId); - if (task) { - const notification = TaskStatusNotificationSchema.parse({ - method: 'notifications/tasks/status', - params: task - }); - await this.notification(notification); - if (isTerminal(task.status)) { - this._cleanupTaskProgressHandler(taskId); - // Don't clear queue here - it will be cleared after delivery via tasks/result - } - } - }, - getTaskResult: taskId => { - return taskStore.getTaskResult(taskId, sessionId); - }, - updateTaskStatus: async (taskId, status, statusMessage) => { - // Check if task exists - const task = await taskStore.getTask(taskId, sessionId); - if (!task) { - throw new McpError(ErrorCode.InvalidParams, `Task "${taskId}" not found - it may have been cleaned up`); - } - // Don't allow transitions from terminal states - if (isTerminal(task.status)) { - throw new McpError(ErrorCode.InvalidParams, `Cannot update task "${taskId}" from terminal status "${task.status}" to "${status}". Terminal states (completed, failed, cancelled) cannot transition to other states.`); - } - await taskStore.updateTaskStatus(taskId, status, statusMessage, sessionId); - // Get updated task state and send notification - const updatedTask = await taskStore.getTask(taskId, sessionId); - if (updatedTask) { - const notification = TaskStatusNotificationSchema.parse({ - method: 'notifications/tasks/status', - params: updatedTask - }); - await this.notification(notification); - if (isTerminal(updatedTask.status)) { - this._cleanupTaskProgressHandler(taskId); - // Don't clear queue here - it will be cleared after delivery via tasks/result - } - } - }, - listTasks: cursor => { - return taskStore.listTasks(cursor, sessionId); - } - }; - } -} -function isPlainObject(value) { - return value !== null && typeof value === 'object' && !Array.isArray(value); -} -export function mergeCapabilities(base, additional) { - const result = { ...base }; - for (const key in additional) { - const k = key; - const addValue = additional[k]; - if (addValue === undefined) - continue; - const baseValue = result[k]; - if (isPlainObject(baseValue) && isPlainObject(addValue)) { - result[k] = { ...baseValue, ...addValue }; - } - else { - result[k] = addValue; - } - } - return result; -} -//# sourceMappingURL=protocol.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map deleted file mode 100644 index a4d0ad3..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/shared/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EACH,2BAA2B,EAE3B,sBAAsB,EACtB,SAAS,EAET,oBAAoB,EACpB,mBAAmB,EAEnB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EAKrB,QAAQ,EACR,iBAAiB,EAGjB,0BAA0B,EAC1B,qBAAqB,EAarB,4BAA4B,EAI5B,4BAA4B,EAC/B,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,UAAU,EAAiE,MAAM,qCAAqC,CAAC;A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AC3B,MAAM,CAAC,GAAG,GAAc,CAAC;QACzB,MAAM,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,QAAQ,KAAK,SAAS;YAAE,SAAS;QACrC,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC5B,IAAI,aAAa,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;YACtD,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,GAAI,SAAqC,EAAE,GAAI,QAAoC,EAAiB,CAAC;QACvH,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,CAAC,CAAC,GAAG,QAAuB,CAAC;QACxC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts deleted file mode 100644 index 84354bd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Result, Task, McpError } from '../types.js'; -/** - * Base message type - */ -export interface BaseResponseMessage { - type: string; -} -/** - * Task status update message - */ -export interface TaskStatusMessage extends BaseResponseMessage { - type: 'taskStatus'; - task: Task; -} -/** - * Task created message (first message for task-augmented requests) - */ -export interface TaskCreatedMessage extends BaseResponseMessage { - type: 'taskCreated'; - task: Task; -} -/** - * Final result message (terminal) - */ -export interface ResultMessage extends BaseResponseMessage { - type: 'result'; - result: T; -} -/** - * Error message (terminal) - */ -export interface ErrorMessage extends BaseResponseMessage { - type: 'error'; - error: McpError; -} -/** - * Union type representing all possible messages that can be yielded during request processing. - * Note: Progress notifications are handled through the existing onprogress callback mechanism. - * Side-channeled messages (server requests/notifications) are handled through registered handlers. - */ -export type ResponseMessage = TaskStatusMessage | TaskCreatedMessage | ResultMessage | ErrorMessage; -export type AsyncGeneratorValue = T extends AsyncGenerator ? U : never; -export declare function toArrayAsync>(it: T): Promise[]>; -export declare function takeResult>>(it: U): Promise; -//# sourceMappingURL=responseMessage.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map deleted file mode 100644 index 65d93bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responseMessage.d.ts","sourceRoot":"","sources":["../../../src/shared/responseMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC1D,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC3D,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,mBAAmB;IACxE,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,mBAAmB;IACrD,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,iBAAiB,GAAG,kBAAkB,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;AAEzH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,SAAS,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEnF,wBAAsB,YAAY,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC,CAO9G;AAED,wBAAsB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAUlH"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js deleted file mode 100644 index d29e8a4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +++ /dev/null @@ -1,19 +0,0 @@ -export async function toArrayAsync(it) { - const arr = []; - for await (const o of it) { - arr.push(o); - } - return arr; -} -export async function takeResult(it) { - for await (const o of it) { - if (o.type === 'result') { - return o.result; - } - else if (o.type === 'error') { - throw o.error; - } - } - throw new Error('No result in stream.'); -} -//# sourceMappingURL=responseMessage.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map deleted file mode 100644 index eca1cec..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"responseMessage.js","sourceRoot":"","sources":["../../../src/shared/responseMessage.ts"],"names":[],"mappings":"AAkDA,MAAM,CAAC,KAAK,UAAU,YAAY,CAAoC,EAAK;IACvE,MAAM,GAAG,GAA6B,EAAE,CAAC;IACzC,IAAI,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACvB,GAAG,CAAC,IAAI,CAAC,CAA2B,CAAC,CAAC;IAC1C,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAiE,EAAK;IAClG,IAAI,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACvB,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC,MAAM,CAAC;QACpB,CAAC;aAAM,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC5B,MAAM,CAAC,CAAC,KAAK,CAAC;QAClB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts deleted file mode 100644 index 0830a48..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { JSONRPCMessage } from '../types.js'; -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -export declare class ReadBuffer { - private _buffer?; - append(chunk: Buffer): void; - readMessage(): JSONRPCMessage | null; - clear(): void; -} -export declare function deserializeMessage(line: string): JSONRPCMessage; -export declare function serializeMessage(message: JSONRPCMessage): string; -//# sourceMappingURL=stdio.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map deleted file mode 100644 index 8f97f2a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,qBAAa,UAAU;IACnB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI3B,WAAW,IAAI,cAAc,GAAG,IAAI;IAepC,KAAK,IAAI,IAAI;CAGhB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAEhE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js deleted file mode 100644 index 30f299f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +++ /dev/null @@ -1,31 +0,0 @@ -import { JSONRPCMessageSchema } from '../types.js'; -/** - * Buffers a continuous stdio stream into discrete JSON-RPC messages. - */ -export class ReadBuffer { - append(chunk) { - this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; - } - readMessage() { - if (!this._buffer) { - return null; - } - const index = this._buffer.indexOf('\n'); - if (index === -1) { - return null; - } - const line = this._buffer.toString('utf8', 0, index).replace(/\r$/, ''); - this._buffer = this._buffer.subarray(index + 1); - return deserializeMessage(line); - } - clear() { - this._buffer = undefined; - } -} -export function deserializeMessage(line) { - return JSONRPCMessageSchema.parse(JSON.parse(line)); -} -export function serializeMessage(message) { - return JSON.stringify(message) + '\n'; -} -//# sourceMappingURL=stdio.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map deleted file mode 100644 index 19fdf08..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../../src/shared/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,UAAU;IAGnB,MAAM,CAAC,KAAa;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC/E,CAAC;IAED,WAAW;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACf,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACxE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,KAAK;QACD,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC7B,CAAC;CACJ;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC3C,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAuB;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts deleted file mode 100644 index 3cf94bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Tool name validation utilities according to SEP: Specify Format for Tool Names - * - * Tool names SHOULD be between 1 and 128 characters in length (inclusive). - * Tool names are case-sensitive. - * Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits - * (0-9), underscore (_), dash (-), and dot (.). - * Tool names SHOULD NOT contain spaces, commas, or other special characters. - */ -/** - * Validates a tool name according to the SEP specification - * @param name - The tool name to validate - * @returns An object containing validation result and any warnings - */ -export declare function validateToolName(name: string): { - isValid: boolean; - warnings: string[]; -}; -/** - * Issues warnings for non-conforming tool names - * @param name - The tool name that triggered the warnings - * @param warnings - Array of warning messages - */ -export declare function issueToolNameWarning(name: string, warnings: string[]): void; -/** - * Validates a tool name and issues warnings for non-conforming names - * @param name - The tool name to validate - * @returns true if the name is valid, false otherwise - */ -export declare function validateAndWarnToolName(name: string): boolean; -//# sourceMappingURL=toolNameValidation.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map deleted file mode 100644 index d81f015..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolNameValidation.d.ts","sourceRoot":"","sources":["../../../src/shared/toolNameValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,CA0DA;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAY3E;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO7D"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js deleted file mode 100644 index 34b6d19..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Tool name validation utilities according to SEP: Specify Format for Tool Names - * - * Tool names SHOULD be between 1 and 128 characters in length (inclusive). - * Tool names are case-sensitive. - * Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits - * (0-9), underscore (_), dash (-), and dot (.). - * Tool names SHOULD NOT contain spaces, commas, or other special characters. - */ -/** - * Regular expression for valid tool names according to SEP-986 specification - */ -const TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/; -/** - * Validates a tool name according to the SEP specification - * @param name - The tool name to validate - * @returns An object containing validation result and any warnings - */ -export function validateToolName(name) { - const warnings = []; - // Check length - if (name.length === 0) { - return { - isValid: false, - warnings: ['Tool name cannot be empty'] - }; - } - if (name.length > 128) { - return { - isValid: false, - warnings: [`Tool name exceeds maximum length of 128 characters (current: ${name.length})`] - }; - } - // Check for specific problematic patterns (these are warnings, not validation failures) - if (name.includes(' ')) { - warnings.push('Tool name contains spaces, which may cause parsing issues'); - } - if (name.includes(',')) { - warnings.push('Tool name contains commas, which may cause parsing issues'); - } - // Check for potentially confusing patterns (leading/trailing dashes, dots, slashes) - if (name.startsWith('-') || name.endsWith('-')) { - warnings.push('Tool name starts or ends with a dash, which may cause parsing issues in some contexts'); - } - if (name.startsWith('.') || name.endsWith('.')) { - warnings.push('Tool name starts or ends with a dot, which may cause parsing issues in some contexts'); - } - // Check for invalid characters - if (!TOOL_NAME_REGEX.test(name)) { - const invalidChars = name - .split('') - .filter(char => !/[A-Za-z0-9._-]/.test(char)) - .filter((char, index, arr) => arr.indexOf(char) === index); // Remove duplicates - warnings.push(`Tool name contains invalid characters: ${invalidChars.map(c => `"${c}"`).join(', ')}`, 'Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)'); - return { - isValid: false, - warnings - }; - } - return { - isValid: true, - warnings - }; -} -/** - * Issues warnings for non-conforming tool names - * @param name - The tool name that triggered the warnings - * @param warnings - Array of warning messages - */ -export function issueToolNameWarning(name, warnings) { - if (warnings.length > 0) { - console.warn(`Tool name validation warning for "${name}":`); - for (const warning of warnings) { - console.warn(` - ${warning}`); - } - console.warn('Tool registration will proceed, but this may cause compatibility issues.'); - console.warn('Consider updating the tool name to conform to the MCP tool naming standard.'); - console.warn('See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.'); - } -} -/** - * Validates a tool name and issues warnings for non-conforming names - * @param name - The tool name to validate - * @returns true if the name is valid, false otherwise - */ -export function validateAndWarnToolName(name) { - const result = validateToolName(name); - // Always issue warnings for any validation issues (both invalid names and warnings) - issueToolNameWarning(name, result.warnings); - return result.isValid; -} -//# sourceMappingURL=toolNameValidation.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map deleted file mode 100644 index 9fdfcea..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toolNameValidation.js","sourceRoot":"","sources":["../../../src/shared/toolNameValidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,eAAe,GAAG,yBAAyB,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAIzC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,eAAe;IACf,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO;YACH,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,CAAC,2BAA2B,CAAC;SAC1C,CAAC;IACN,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;QACpB,OAAO;YACH,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,CAAC,gEAAgE,IAAI,CAAC,MAAM,GAAG,CAAC;SAC7F,CAAC;IACN,CAAC;IAED,wFAAwF;IACxF,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,QAAQ,CAAC,IAAI,CAAC,2DAA2D,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,QAAQ,CAAC,IAAI,CAAC,2DAA2D,CAAC,CAAC;IAC/E,CAAC;IAED,oFAAoF;IACpF,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7C,QAAQ,CAAC,IAAI,CAAC,uFAAuF,CAAC,CAAC;IAC3G,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7C,QAAQ,CAAC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AACH,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAChD,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,oFAAoF;IACpF,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,MAAM,CAAC,OAAO,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts deleted file mode 100644 index 1bd95ef..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { JSONRPCMessage, MessageExtraInfo, RequestId } from '../types.js'; -export type FetchLike = (url: string | URL, init?: RequestInit) => Promise; -/** - * Normalizes HeadersInit to a plain Record for manipulation. - * Handles Headers objects, arrays of tuples, and plain objects. - */ -export declare function normalizeHeaders(headers: HeadersInit | undefined): Record; -/** - * Creates a fetch function that includes base RequestInit options. - * This ensures requests inherit settings like credentials, mode, headers, etc. from the base init. - * - * @param baseFetch - The base fetch function to wrap (defaults to global fetch) - * @param baseInit - The base RequestInit to merge with each request - * @returns A wrapped fetch function that merges base options with call-specific options - */ -export declare function createFetchWithInit(baseFetch?: FetchLike, baseInit?: RequestInit): FetchLike; -/** - * Options for sending a JSON-RPC message. - */ -export type TransportSendOptions = { - /** - * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. - */ - relatedRequestId?: RequestId; - /** - * The resumption token used to continue long-running requests that were interrupted. - * - * This allows clients to reconnect and continue from where they left off, if supported by the transport. - */ - resumptionToken?: string; - /** - * A callback that is invoked when the resumption token changes, if supported by the transport. - * - * This allows clients to persist the latest token for potential reconnection. - */ - onresumptiontoken?: (token: string) => void; -}; -/** - * Describes the minimal contract for an MCP transport that a client or server can communicate over. - */ -export interface Transport { - /** - * Starts processing messages on the transport, including any connection steps that might need to be taken. - * - * This method should only be called after callbacks are installed, or else messages may be lost. - * - * NOTE: This method should not be called explicitly when using Client, Server, or Protocol classes, as they will implicitly call start(). - */ - start(): Promise; - /** - * Sends a JSON-RPC message (request or response). - * - * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. - */ - send(message: JSONRPCMessage, options?: TransportSendOptions): Promise; - /** - * Closes the connection. - */ - close(): Promise; - /** - * Callback for when the connection is closed for any reason. - * - * This should be invoked when close() is called as well. - */ - onclose?: () => void; - /** - * Callback for when an error occurs. - * - * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. - */ - onerror?: (error: Error) => void; - /** - * Callback for when a message (request or response) is received over the connection. - * - * Includes the requestInfo and authInfo if the transport is authenticated. - * - * The requestInfo can be used to get the original request information (headers, etc.) - */ - onmessage?: (message: T, extra?: MessageExtraInfo) => void; - /** - * The session ID generated for this connection. - */ - sessionId?: string; - /** - * Sets the protocol version used for the connection (called when the initialize response is received). - */ - setProtocolVersion?: (version: string) => void; -} -//# sourceMappingURL=transport.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map deleted file mode 100644 index 7a3d837..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/shared/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYzF;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,GAAE,SAAiB,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,CAenG;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAE7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C,CAAC;AACF;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;;;;;OAMG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7E;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,SAAS,cAAc,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAErF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js deleted file mode 100644 index ce25e23..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Normalizes HeadersInit to a plain Record for manipulation. - * Handles Headers objects, arrays of tuples, and plain objects. - */ -export function normalizeHeaders(headers) { - if (!headers) - return {}; - if (headers instanceof Headers) { - return Object.fromEntries(headers.entries()); - } - if (Array.isArray(headers)) { - return Object.fromEntries(headers); - } - return { ...headers }; -} -/** - * Creates a fetch function that includes base RequestInit options. - * This ensures requests inherit settings like credentials, mode, headers, etc. from the base init. - * - * @param baseFetch - The base fetch function to wrap (defaults to global fetch) - * @param baseInit - The base RequestInit to merge with each request - * @returns A wrapped fetch function that merges base options with call-specific options - */ -export function createFetchWithInit(baseFetch = fetch, baseInit) { - if (!baseInit) { - return baseFetch; - } - // Return a wrapped fetch that merges base RequestInit with call-specific init - return async (url, init) => { - const mergedInit = { - ...baseInit, - ...init, - // Headers need special handling - merge instead of replace - headers: init?.headers ? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) } : baseInit.headers - }; - return baseFetch(url, mergedInit); - }; -} -//# sourceMappingURL=transport.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map deleted file mode 100644 index 790e11d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../src/shared/transport.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAC7D,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,IAAI,OAAO,YAAY,OAAO,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,EAAE,GAAI,OAAkC,EAAE,CAAC;AACtD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,YAAuB,KAAK,EAAE,QAAsB;IACpF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,8EAA8E;IAC9E,OAAO,KAAK,EAAE,GAAiB,EAAE,IAAkB,EAAqB,EAAE;QACtE,MAAM,UAAU,GAAgB;YAC5B,GAAG,QAAQ;YACX,GAAG,IAAI;YACP,2DAA2D;YAC3D,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO;SAC3H,CAAC;QACF,OAAO,SAAS,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IACtC,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts deleted file mode 100644 index 175e329..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export type Variables = Record; -export declare class UriTemplate { - /** - * Returns true if the given string contains any URI template expressions. - * A template expression is a sequence of characters enclosed in curly braces, - * like {foo} or {?bar}. - */ - static isTemplate(str: string): boolean; - private static validateLength; - private readonly template; - private readonly parts; - get variableNames(): string[]; - constructor(template: string); - toString(): string; - private parse; - private getOperator; - private getNames; - private encodeValue; - private expandPart; - expand(variables: Variables): string; - private escapeRegExp; - private partToRegExp; - match(uri: string): Variables | null; -} -//# sourceMappingURL=uriTemplate.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map deleted file mode 100644 index 052e918..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uriTemplate.d.ts","sourceRoot":"","sources":["../../../src/shared/uriTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAO1D,qBAAa,WAAW;IACpB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAMvC,OAAO,CAAC,MAAM,CAAC,cAAc;IAK7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyF;IAE/G,IAAI,aAAa,IAAI,MAAM,EAAE,CAE5B;gBAEW,QAAQ,EAAE,MAAM;IAM5B,QAAQ,IAAI,MAAM;IAIlB,OAAO,CAAC,KAAK;IA8Cb,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,UAAU;IAsDlB,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;IA4BpC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;IAkDpB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAuCvC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js deleted file mode 100644 index 2837ba8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +++ /dev/null @@ -1,239 +0,0 @@ -// Claude-authored implementation of RFC 6570 URI Templates -const MAX_TEMPLATE_LENGTH = 1000000; // 1MB -const MAX_VARIABLE_LENGTH = 1000000; // 1MB -const MAX_TEMPLATE_EXPRESSIONS = 10000; -const MAX_REGEX_LENGTH = 1000000; // 1MB -export class UriTemplate { - /** - * Returns true if the given string contains any URI template expressions. - * A template expression is a sequence of characters enclosed in curly braces, - * like {foo} or {?bar}. - */ - static isTemplate(str) { - // Look for any sequence of characters between curly braces - // that isn't just whitespace - return /\{[^}\s]+\}/.test(str); - } - static validateLength(str, max, context) { - if (str.length > max) { - throw new Error(`${context} exceeds maximum length of ${max} characters (got ${str.length})`); - } - } - get variableNames() { - return this.parts.flatMap(part => (typeof part === 'string' ? [] : part.names)); - } - constructor(template) { - UriTemplate.validateLength(template, MAX_TEMPLATE_LENGTH, 'Template'); - this.template = template; - this.parts = this.parse(template); - } - toString() { - return this.template; - } - parse(template) { - const parts = []; - let currentText = ''; - let i = 0; - let expressionCount = 0; - while (i < template.length) { - if (template[i] === '{') { - if (currentText) { - parts.push(currentText); - currentText = ''; - } - const end = template.indexOf('}', i); - if (end === -1) - throw new Error('Unclosed template expression'); - expressionCount++; - if (expressionCount > MAX_TEMPLATE_EXPRESSIONS) { - throw new Error(`Template contains too many expressions (max ${MAX_TEMPLATE_EXPRESSIONS})`); - } - const expr = template.slice(i + 1, end); - const operator = this.getOperator(expr); - const exploded = expr.includes('*'); - const names = this.getNames(expr); - const name = names[0]; - // Validate variable name length - for (const name of names) { - UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name'); - } - parts.push({ name, operator, names, exploded }); - i = end + 1; - } - else { - currentText += template[i]; - i++; - } - } - if (currentText) { - parts.push(currentText); - } - return parts; - } - getOperator(expr) { - const operators = ['+', '#', '.', '/', '?', '&']; - return operators.find(op => expr.startsWith(op)) || ''; - } - getNames(expr) { - const operator = this.getOperator(expr); - return expr - .slice(operator.length) - .split(',') - .map(name => name.replace('*', '').trim()) - .filter(name => name.length > 0); - } - encodeValue(value, operator) { - UriTemplate.validateLength(value, MAX_VARIABLE_LENGTH, 'Variable value'); - if (operator === '+' || operator === '#') { - return encodeURI(value); - } - return encodeURIComponent(value); - } - expandPart(part, variables) { - if (part.operator === '?' || part.operator === '&') { - const pairs = part.names - .map(name => { - const value = variables[name]; - if (value === undefined) - return ''; - const encoded = Array.isArray(value) - ? value.map(v => this.encodeValue(v, part.operator)).join(',') - : this.encodeValue(value.toString(), part.operator); - return `${name}=${encoded}`; - }) - .filter(pair => pair.length > 0); - if (pairs.length === 0) - return ''; - const separator = part.operator === '?' ? '?' : '&'; - return separator + pairs.join('&'); - } - if (part.names.length > 1) { - const values = part.names.map(name => variables[name]).filter(v => v !== undefined); - if (values.length === 0) - return ''; - return values.map(v => (Array.isArray(v) ? v[0] : v)).join(','); - } - const value = variables[part.name]; - if (value === undefined) - return ''; - const values = Array.isArray(value) ? value : [value]; - const encoded = values.map(v => this.encodeValue(v, part.operator)); - switch (part.operator) { - case '': - return encoded.join(','); - case '+': - return encoded.join(','); - case '#': - return '#' + encoded.join(','); - case '.': - return '.' + encoded.join('.'); - case '/': - return '/' + encoded.join('/'); - default: - return encoded.join(','); - } - } - expand(variables) { - let result = ''; - let hasQueryParam = false; - for (const part of this.parts) { - if (typeof part === 'string') { - result += part; - continue; - } - const expanded = this.expandPart(part, variables); - if (!expanded) - continue; - // Convert ? to & if we already have a query parameter - if ((part.operator === '?' || part.operator === '&') && hasQueryParam) { - result += expanded.replace('?', '&'); - } - else { - result += expanded; - } - if (part.operator === '?' || part.operator === '&') { - hasQueryParam = true; - } - } - return result; - } - escapeRegExp(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - } - partToRegExp(part) { - const patterns = []; - // Validate variable name length for matching - for (const name of part.names) { - UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name'); - } - if (part.operator === '?' || part.operator === '&') { - for (let i = 0; i < part.names.length; i++) { - const name = part.names[i]; - const prefix = i === 0 ? '\\' + part.operator : '&'; - patterns.push({ - pattern: prefix + this.escapeRegExp(name) + '=([^&]+)', - name - }); - } - return patterns; - } - let pattern; - const name = part.name; - switch (part.operator) { - case '': - pattern = part.exploded ? '([^/]+(?:,[^/]+)*)' : '([^/,]+)'; - break; - case '+': - case '#': - pattern = '(.+)'; - break; - case '.': - pattern = '\\.([^/,]+)'; - break; - case '/': - pattern = '/' + (part.exploded ? '([^/]+(?:,[^/]+)*)' : '([^/,]+)'); - break; - default: - pattern = '([^/]+)'; - } - patterns.push({ pattern, name }); - return patterns; - } - match(uri) { - UriTemplate.validateLength(uri, MAX_TEMPLATE_LENGTH, 'URI'); - let pattern = '^'; - const names = []; - for (const part of this.parts) { - if (typeof part === 'string') { - pattern += this.escapeRegExp(part); - } - else { - const patterns = this.partToRegExp(part); - for (const { pattern: partPattern, name } of patterns) { - pattern += partPattern; - names.push({ name, exploded: part.exploded }); - } - } - } - pattern += '$'; - UriTemplate.validateLength(pattern, MAX_REGEX_LENGTH, 'Generated regex pattern'); - const regex = new RegExp(pattern); - const match = uri.match(regex); - if (!match) - return null; - const result = {}; - for (let i = 0; i < names.length; i++) { - const { name, exploded } = names[i]; - const value = match[i + 1]; - const cleanName = name.replace('*', ''); - if (exploded && value.includes(',')) { - result[cleanName] = value.split(','); - } - else { - result[cleanName] = value; - } - } - return result; - } -} -//# sourceMappingURL=uriTemplate.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map deleted file mode 100644 index 2c02e92..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/es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CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACpC,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3B,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAExC,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAClC,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzC,CAAC;iBAAM,CAAC;gBACJ,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC;QACL,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts deleted file mode 100644 index f94e3cf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +++ /dev/null @@ -1,2299 +0,0 @@ -/** - * This file is automatically generated from the Model Context Protocol specification. - * - * Source: https://github.com/modelcontextprotocol/modelcontextprotocol - * Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts - * Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669 - * - * DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates. - * To update this file, run: npm run fetch:spec-types - */ -/** - * Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent. - * - * @category JSON-RPC - */ -export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse; -/** @internal */ -export declare const LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1"; -/** @internal */ -export declare const JSONRPC_VERSION = "2.0"; -/** - * A progress token, used to associate progress notifications with the original request. - * - * @category Common Types - */ -export type ProgressToken = string | number; -/** - * An opaque token used to represent a cursor for pagination. - * - * @category Common Types - */ -export type Cursor = string; -/** - * Common params for any task-augmented request. - * - * @internal - */ -export interface TaskAugmentedRequestParams extends RequestParams { - /** - * If specified, the caller is requesting task-augmented execution for this request. - * The request will return a CreateTaskResult immediately, and the actual result can be - * retrieved later via tasks/result. - * - * Task augmentation is subject to capability negotiation - receivers MUST declare support - * for task augmentation of specific request types in their capabilities. - */ - task?: TaskMetadata; -} -/** - * Common params for any request. - * - * @internal - */ -export interface RequestParams { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken?: ProgressToken; - [key: string]: unknown; - }; -} -/** @internal */ -export interface Request { - method: string; - params?: { - [key: string]: any; - }; -} -/** @internal */ -export interface NotificationParams { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** @internal */ -export interface Notification { - method: string; - params?: { - [key: string]: any; - }; -} -/** - * @category Common Types - */ -export interface Result { - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; - [key: string]: unknown; -} -/** - * @category Common Types - */ -export interface Error { - /** - * The error type that occurred. - */ - code: number; - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: string; - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data?: unknown; -} -/** - * A uniquely identifying ID for a request in JSON-RPC. - * - * @category Common Types - */ -export type RequestId = string | number; -/** - * A request that expects a response. - * - * @category JSON-RPC - */ -export interface JSONRPCRequest extends Request { - jsonrpc: typeof JSONRPC_VERSION; - id: RequestId; -} -/** - * A notification which does not expect a response. - * - * @category JSON-RPC - */ -export interface JSONRPCNotification extends Notification { - jsonrpc: typeof JSONRPC_VERSION; -} -/** - * A successful (non-error) response to a request. - * - * @category JSON-RPC - */ -export interface JSONRPCResultResponse { - jsonrpc: typeof JSONRPC_VERSION; - id: RequestId; - result: Result; -} -/** - * A response to a request that indicates an error occurred. - * - * @category JSON-RPC - */ -export interface JSONRPCErrorResponse { - jsonrpc: typeof JSONRPC_VERSION; - id?: RequestId; - error: Error; -} -/** - * A response to a request, containing either the result or error. - */ -export type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse; -export declare const PARSE_ERROR = -32700; -export declare const INVALID_REQUEST = -32600; -export declare const METHOD_NOT_FOUND = -32601; -export declare const INVALID_PARAMS = -32602; -export declare const INTERNAL_ERROR = -32603; -/** @internal */ -export declare const URL_ELICITATION_REQUIRED = -32042; -/** - * An error response that indicates that the server requires the client to provide additional information via an elicitation request. - * - * @internal - */ -export interface URLElicitationRequiredError extends Omit { - error: Error & { - code: typeof URL_ELICITATION_REQUIRED; - data: { - elicitations: ElicitRequestURLParams[]; - [key: string]: unknown; - }; - }; -} -/** - * A response that indicates success but carries no data. - * - * @category Common Types - */ -export type EmptyResult = Result; -/** - * Parameters for a `notifications/cancelled` notification. - * - * @category `notifications/cancelled` - */ -export interface CancelledNotificationParams extends NotificationParams { - /** - * The ID of the request to cancel. - * - * This MUST correspond to the ID of a request previously issued in the same direction. - * This MUST be provided for cancelling non-task requests. - * This MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead). - */ - requestId?: RequestId; - /** - * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. - */ - reason?: string; -} -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - * - * For task cancellation, use the `tasks/cancel` request instead of this notification. - * - * @category `notifications/cancelled` - */ -export interface CancelledNotification extends JSONRPCNotification { - method: "notifications/cancelled"; - params: CancelledNotificationParams; -} -/** - * Parameters for an `initialize` request. - * - * @category `initialize` - */ -export interface InitializeRequestParams extends RequestParams { - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: string; - capabilities: ClientCapabilities; - clientInfo: Implementation; -} -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - * - * @category `initialize` - */ -export interface InitializeRequest extends JSONRPCRequest { - method: "initialize"; - params: InitializeRequestParams; -} -/** - * After receiving an initialize request from the client, the server sends this response. - * - * @category `initialize` - */ -export interface InitializeResult extends Result { - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: string; - capabilities: ServerCapabilities; - serverInfo: Implementation; - /** - * Instructions describing how to use the server and its features. - * - * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. - */ - instructions?: string; -} -/** - * This notification is sent from the client to the server after initialization has finished. - * - * @category `notifications/initialized` - */ -export interface InitializedNotification extends JSONRPCNotification { - method: "notifications/initialized"; - params?: NotificationParams; -} -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - * - * @category `initialize` - */ -export interface ClientCapabilities { - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental?: { - [key: string]: object; - }; - /** - * Present if the client supports listing roots. - */ - roots?: { - /** - * Whether the client supports notifications for changes to the roots list. - */ - listChanged?: boolean; - }; - /** - * Present if the client supports sampling from an LLM. - */ - sampling?: { - /** - * Whether the client supports context inclusion via includeContext parameter. - * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it). - */ - context?: object; - /** - * Whether the client supports tool use via tools and toolChoice parameters. - */ - tools?: object; - }; - /** - * Present if the client supports elicitation from the server. - */ - elicitation?: { - form?: object; - url?: object; - }; - /** - * Present if the client supports task-augmented requests. - */ - tasks?: { - /** - * Whether this client supports tasks/list. - */ - list?: object; - /** - * Whether this client supports tasks/cancel. - */ - cancel?: object; - /** - * Specifies which request types can be augmented with tasks. - */ - requests?: { - /** - * Task support for sampling-related requests. - */ - sampling?: { - /** - * Whether the client supports task-augmented sampling/createMessage requests. - */ - createMessage?: object; - }; - /** - * Task support for elicitation-related requests. - */ - elicitation?: { - /** - * Whether the client supports task-augmented elicitation/create requests. - */ - create?: object; - }; - }; - }; -} -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - * - * @category `initialize` - */ -export interface ServerCapabilities { - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental?: { - [key: string]: object; - }; - /** - * Present if the server supports sending log messages to the client. - */ - logging?: object; - /** - * Present if the server supports argument autocompletion suggestions. - */ - completions?: object; - /** - * Present if the server offers any prompt templates. - */ - prompts?: { - /** - * Whether this server supports notifications for changes to the prompt list. - */ - listChanged?: boolean; - }; - /** - * Present if the server offers any resources to read. - */ - resources?: { - /** - * Whether this server supports subscribing to resource updates. - */ - subscribe?: boolean; - /** - * Whether this server supports notifications for changes to the resource list. - */ - listChanged?: boolean; - }; - /** - * Present if the server offers any tools to call. - */ - tools?: { - /** - * Whether this server supports notifications for changes to the tool list. - */ - listChanged?: boolean; - }; - /** - * Present if the server supports task-augmented requests. - */ - tasks?: { - /** - * Whether this server supports tasks/list. - */ - list?: object; - /** - * Whether this server supports tasks/cancel. - */ - cancel?: object; - /** - * Specifies which request types can be augmented with tasks. - */ - requests?: { - /** - * Task support for tool-related requests. - */ - tools?: { - /** - * Whether the server supports task-augmented tools/call requests. - */ - call?: object; - }; - }; - }; -} -/** - * An optionally-sized icon that can be displayed in a user interface. - * - * @category Common Types - */ -export interface Icon { - /** - * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a - * `data:` URI with Base64-encoded image data. - * - * Consumers SHOULD takes steps to ensure URLs serving icons are from the - * same domain as the client/server or a trusted domain. - * - * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain - * executable JavaScript. - * - * @format uri - */ - src: string; - /** - * Optional MIME type override if the source MIME type is missing or generic. - * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`. - */ - mimeType?: string; - /** - * Optional array of strings that specify sizes at which the icon can be used. - * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. - * - * If not provided, the client should assume that the icon can be used at any size. - */ - sizes?: string[]; - /** - * Optional specifier for the theme this icon is designed for. `light` indicates - * the icon is designed to be used with a light background, and `dark` indicates - * the icon is designed to be used with a dark background. - * - * If not provided, the client should assume the icon can be used with any theme. - */ - theme?: "light" | "dark"; -} -/** - * Base interface to add `icons` property. - * - * @internal - */ -export interface Icons { - /** - * Optional set of sized icons that the client can display in a user interface. - * - * Clients that support rendering icons MUST support at least the following MIME types: - * - `image/png` - PNG images (safe, universal compatibility) - * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) - * - * Clients that support rendering icons SHOULD also support: - * - `image/svg+xml` - SVG images (scalable but requires security precautions) - * - `image/webp` - WebP images (modern, efficient format) - */ - icons?: Icon[]; -} -/** - * Base interface for metadata with name (identifier) and title (display name) properties. - * - * @internal - */ -export interface BaseMetadata { - /** - * Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). - */ - name: string; - /** - * Intended for UI and end-user contexts — optimized to be human-readable and easily understood, - * even by those unfamiliar with domain-specific terminology. - * - * If not provided, the name should be used for display (except for Tool, - * where `annotations.title` should be given precedence over using `name`, - * if present). - */ - title?: string; -} -/** - * Describes the MCP implementation. - * - * @category `initialize` - */ -export interface Implementation extends BaseMetadata, Icons { - version: string; - /** - * An optional human-readable description of what this implementation does. - * - * This can be used by clients or servers to provide context about their purpose - * and capabilities. For example, a server might describe the types of resources - * or tools it provides, while a client might describe its intended use case. - */ - description?: string; - /** - * An optional URL of the website for this implementation. - * - * @format uri - */ - websiteUrl?: string; -} -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - * - * @category `ping` - */ -export interface PingRequest extends JSONRPCRequest { - method: "ping"; - params?: RequestParams; -} -/** - * Parameters for a `notifications/progress` notification. - * - * @category `notifications/progress` - */ -export interface ProgressNotificationParams extends NotificationParams { - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: ProgressToken; - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - * - * @TJS-type number - */ - progress: number; - /** - * Total number of items to process (or total progress required), if known. - * - * @TJS-type number - */ - total?: number; - /** - * An optional message describing the current progress. - */ - message?: string; -} -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category `notifications/progress` - */ -export interface ProgressNotification extends JSONRPCNotification { - method: "notifications/progress"; - params: ProgressNotificationParams; -} -/** - * Common parameters for paginated requests. - * - * @internal - */ -export interface PaginatedRequestParams extends RequestParams { - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor?: Cursor; -} -/** @internal */ -export interface PaginatedRequest extends JSONRPCRequest { - params?: PaginatedRequestParams; -} -/** @internal */ -export interface PaginatedResult extends Result { - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor?: Cursor; -} -/** - * Sent from the client to request a list of resources the server has. - * - * @category `resources/list` - */ -export interface ListResourcesRequest extends PaginatedRequest { - method: "resources/list"; -} -/** - * The server's response to a resources/list request from the client. - * - * @category `resources/list` - */ -export interface ListResourcesResult extends PaginatedResult { - resources: Resource[]; -} -/** - * Sent from the client to request a list of resource templates the server has. - * - * @category `resources/templates/list` - */ -export interface ListResourceTemplatesRequest extends PaginatedRequest { - method: "resources/templates/list"; -} -/** - * The server's response to a resources/templates/list request from the client. - * - * @category `resources/templates/list` - */ -export interface ListResourceTemplatesResult extends PaginatedResult { - resourceTemplates: ResourceTemplate[]; -} -/** - * Common parameters when working with resources. - * - * @internal - */ -export interface ResourceRequestParams extends RequestParams { - /** - * The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it. - * - * @format uri - */ - uri: string; -} -/** - * Parameters for a `resources/read` request. - * - * @category `resources/read` - */ -export interface ReadResourceRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to the server, to read a specific resource URI. - * - * @category `resources/read` - */ -export interface ReadResourceRequest extends JSONRPCRequest { - method: "resources/read"; - params: ReadResourceRequestParams; -} -/** - * The server's response to a resources/read request from the client. - * - * @category `resources/read` - */ -export interface ReadResourceResult extends Result { - contents: (TextResourceContents | BlobResourceContents)[]; -} -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/resources/list_changed` - */ -export interface ResourceListChangedNotification extends JSONRPCNotification { - method: "notifications/resources/list_changed"; - params?: NotificationParams; -} -/** - * Parameters for a `resources/subscribe` request. - * - * @category `resources/subscribe` - */ -export interface SubscribeRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - * - * @category `resources/subscribe` - */ -export interface SubscribeRequest extends JSONRPCRequest { - method: "resources/subscribe"; - params: SubscribeRequestParams; -} -/** - * Parameters for a `resources/unsubscribe` request. - * - * @category `resources/unsubscribe` - */ -export interface UnsubscribeRequestParams extends ResourceRequestParams { -} -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - * - * @category `resources/unsubscribe` - */ -export interface UnsubscribeRequest extends JSONRPCRequest { - method: "resources/unsubscribe"; - params: UnsubscribeRequestParams; -} -/** - * Parameters for a `notifications/resources/updated` notification. - * - * @category `notifications/resources/updated` - */ -export interface ResourceUpdatedNotificationParams extends NotificationParams { - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - * - * @format uri - */ - uri: string; -} -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - * - * @category `notifications/resources/updated` - */ -export interface ResourceUpdatedNotification extends JSONRPCNotification { - method: "notifications/resources/updated"; - params: ResourceUpdatedNotificationParams; -} -/** - * A known resource that the server is capable of reading. - * - * @category `resources/list` - */ -export interface Resource extends BaseMetadata, Icons { - /** - * The URI of this resource. - * - * @format uri - */ - uri: string; - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * The MIME type of this resource, if known. - */ - mimeType?: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. - * - * This can be used by Hosts to display file sizes and estimate context window usage. - */ - size?: number; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A template description for resources available on the server. - * - * @category `resources/templates/list` - */ -export interface ResourceTemplate extends BaseMetadata, Icons { - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - * - * @format uri-template - */ - uriTemplate: string; - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType?: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The contents of a specific resource or sub-resource. - * - * @internal - */ -export interface ResourceContents { - /** - * The URI of this resource. - * - * @format uri - */ - uri: string; - /** - * The MIME type of this resource, if known. - */ - mimeType?: string; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * @category Content - */ -export interface TextResourceContents extends ResourceContents { - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: string; -} -/** - * @category Content - */ -export interface BlobResourceContents extends ResourceContents { - /** - * A base64-encoded string representing the binary data of the item. - * - * @format byte - */ - blob: string; -} -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - * - * @category `prompts/list` - */ -export interface ListPromptsRequest extends PaginatedRequest { - method: "prompts/list"; -} -/** - * The server's response to a prompts/list request from the client. - * - * @category `prompts/list` - */ -export interface ListPromptsResult extends PaginatedResult { - prompts: Prompt[]; -} -/** - * Parameters for a `prompts/get` request. - * - * @category `prompts/get` - */ -export interface GetPromptRequestParams extends RequestParams { - /** - * The name of the prompt or prompt template. - */ - name: string; - /** - * Arguments to use for templating the prompt. - */ - arguments?: { - [key: string]: string; - }; -} -/** - * Used by the client to get a prompt provided by the server. - * - * @category `prompts/get` - */ -export interface GetPromptRequest extends JSONRPCRequest { - method: "prompts/get"; - params: GetPromptRequestParams; -} -/** - * The server's response to a prompts/get request from the client. - * - * @category `prompts/get` - */ -export interface GetPromptResult extends Result { - /** - * An optional description for the prompt. - */ - description?: string; - messages: PromptMessage[]; -} -/** - * A prompt or prompt template that the server offers. - * - * @category `prompts/list` - */ -export interface Prompt extends BaseMetadata, Icons { - /** - * An optional description of what this prompt provides - */ - description?: string; - /** - * A list of arguments to use for templating the prompt. - */ - arguments?: PromptArgument[]; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * Describes an argument that a prompt can accept. - * - * @category `prompts/list` - */ -export interface PromptArgument extends BaseMetadata { - /** - * A human-readable description of the argument. - */ - description?: string; - /** - * Whether this argument must be provided. - */ - required?: boolean; -} -/** - * The sender or recipient of messages and data in a conversation. - * - * @category Common Types - */ -export type Role = "user" | "assistant"; -/** - * Describes a message returned as part of a prompt. - * - * This is similar to `SamplingMessage`, but also supports the embedding of - * resources from the MCP server. - * - * @category `prompts/get` - */ -export interface PromptMessage { - role: Role; - content: ContentBlock; -} -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - * - * @category Content - */ -export interface ResourceLink extends Resource { - type: "resource_link"; -} -/** - * The contents of a resource, embedded into a prompt or tool call result. - * - * It is up to the client how best to render embedded resources for the benefit - * of the LLM and/or the user. - * - * @category Content - */ -export interface EmbeddedResource { - type: "resource"; - resource: TextResourceContents | BlobResourceContents; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/prompts/list_changed` - */ -export interface PromptListChangedNotification extends JSONRPCNotification { - method: "notifications/prompts/list_changed"; - params?: NotificationParams; -} -/** - * Sent from the client to request a list of tools the server has. - * - * @category `tools/list` - */ -export interface ListToolsRequest extends PaginatedRequest { - method: "tools/list"; -} -/** - * The server's response to a tools/list request from the client. - * - * @category `tools/list` - */ -export interface ListToolsResult extends PaginatedResult { - tools: Tool[]; -} -/** - * The server's response to a tool call. - * - * @category `tools/call` - */ -export interface CallToolResult extends Result { - /** - * A list of content objects that represent the unstructured result of the tool call. - */ - content: ContentBlock[]; - /** - * An optional JSON object that represents the structured result of the tool call. - */ - structuredContent?: { - [key: string]: unknown; - }; - /** - * Whether the tool call ended in an error. - * - * If not set, this is assumed to be false (the call was successful). - * - * Any errors that originate from the tool SHOULD be reported inside the result - * object, with `isError` set to true, _not_ as an MCP protocol-level error - * response. Otherwise, the LLM would not be able to see that an error occurred - * and self-correct. - * - * However, any errors in _finding_ the tool, an error indicating that the - * server does not support tool calls, or any other exceptional conditions, - * should be reported as an MCP error response. - */ - isError?: boolean; -} -/** - * Parameters for a `tools/call` request. - * - * @category `tools/call` - */ -export interface CallToolRequestParams extends TaskAugmentedRequestParams { - /** - * The name of the tool. - */ - name: string; - /** - * Arguments to use for the tool call. - */ - arguments?: { - [key: string]: unknown; - }; -} -/** - * Used by the client to invoke a tool provided by the server. - * - * @category `tools/call` - */ -export interface CallToolRequest extends JSONRPCRequest { - method: "tools/call"; - params: CallToolRequestParams; -} -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - * - * @category `notifications/tools/list_changed` - */ -export interface ToolListChangedNotification extends JSONRPCNotification { - method: "notifications/tools/list_changed"; - params?: NotificationParams; -} -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - * - * @category `tools/list` - */ -export interface ToolAnnotations { - /** - * A human-readable title for the tool. - */ - title?: string; - /** - * If true, the tool does not modify its environment. - * - * Default: false - */ - readOnlyHint?: boolean; - /** - * If true, the tool may perform destructive updates to its environment. - * If false, the tool performs only additive updates. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: true - */ - destructiveHint?: boolean; - /** - * If true, calling the tool repeatedly with the same arguments - * will have no additional effect on its environment. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: false - */ - idempotentHint?: boolean; - /** - * If true, this tool may interact with an "open world" of external - * entities. If false, the tool's domain of interaction is closed. - * For example, the world of a web search tool is open, whereas that - * of a memory tool is not. - * - * Default: true - */ - openWorldHint?: boolean; -} -/** - * Execution-related properties for a tool. - * - * @category `tools/list` - */ -export interface ToolExecution { - /** - * Indicates whether this tool supports task-augmented execution. - * This allows clients to handle long-running operations through polling - * the task system. - * - * - "forbidden": Tool does not support task-augmented execution (default when absent) - * - "optional": Tool may support task-augmented execution - * - "required": Tool requires task-augmented execution - * - * Default: "forbidden" - */ - taskSupport?: "forbidden" | "optional" | "required"; -} -/** - * Definition for a tool the client can call. - * - * @category `tools/list` - */ -export interface Tool extends BaseMetadata, Icons { - /** - * A human-readable description of the tool. - * - * This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model. - */ - description?: string; - /** - * A JSON Schema object defining the expected parameters for the tool. - */ - inputSchema: { - $schema?: string; - type: "object"; - properties?: { - [key: string]: object; - }; - required?: string[]; - }; - /** - * Execution-related properties for this tool. - */ - execution?: ToolExecution; - /** - * An optional JSON Schema object defining the structure of the tool's output returned in - * the structuredContent field of a CallToolResult. - * - * Defaults to JSON Schema 2020-12 when no explicit $schema is provided. - * Currently restricted to type: "object" at the root level. - */ - outputSchema?: { - $schema?: string; - type: "object"; - properties?: { - [key: string]: object; - }; - required?: string[]; - }; - /** - * Optional additional tool information. - * - * Display name precedence order is: title, annotations.title, then name. - */ - annotations?: ToolAnnotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The status of a task. - * - * @category `tasks` - */ -export type TaskStatus = "working" | "input_required" | "completed" | "failed" | "cancelled"; -/** - * Metadata for augmenting a request with task execution. - * Include this in the `task` field of the request parameters. - * - * @category `tasks` - */ -export interface TaskMetadata { - /** - * Requested duration in milliseconds to retain task from creation. - */ - ttl?: number; -} -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - * - * @category `tasks` - */ -export interface RelatedTaskMetadata { - /** - * The task identifier this message is associated with. - */ - taskId: string; -} -/** - * Data associated with a task. - * - * @category `tasks` - */ -export interface Task { - /** - * The task identifier. - */ - taskId: string; - /** - * Current task state. - */ - status: TaskStatus; - /** - * Optional human-readable message describing the current task state. - * This can provide context for any status, including: - * - Reasons for "cancelled" status - * - Summaries for "completed" status - * - Diagnostic information for "failed" status (e.g., error details, what went wrong) - */ - statusMessage?: string; - /** - * ISO 8601 timestamp when the task was created. - */ - createdAt: string; - /** - * ISO 8601 timestamp when the task was last updated. - */ - lastUpdatedAt: string; - /** - * Actual retention duration from creation in milliseconds, null for unlimited. - */ - ttl: number | null; - /** - * Suggested polling interval in milliseconds. - */ - pollInterval?: number; -} -/** - * A response to a task-augmented request. - * - * @category `tasks` - */ -export interface CreateTaskResult extends Result { - task: Task; -} -/** - * A request to retrieve the state of a task. - * - * @category `tasks/get` - */ -export interface GetTaskRequest extends JSONRPCRequest { - method: "tasks/get"; - params: { - /** - * The task identifier to query. - */ - taskId: string; - }; -} -/** - * The response to a tasks/get request. - * - * @category `tasks/get` - */ -export type GetTaskResult = Result & Task; -/** - * A request to retrieve the result of a completed task. - * - * @category `tasks/result` - */ -export interface GetTaskPayloadRequest extends JSONRPCRequest { - method: "tasks/result"; - params: { - /** - * The task identifier to retrieve results for. - */ - taskId: string; - }; -} -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - * @category `tasks/result` - */ -export interface GetTaskPayloadResult extends Result { - [key: string]: unknown; -} -/** - * A request to cancel a task. - * - * @category `tasks/cancel` - */ -export interface CancelTaskRequest extends JSONRPCRequest { - method: "tasks/cancel"; - params: { - /** - * The task identifier to cancel. - */ - taskId: string; - }; -} -/** - * The response to a tasks/cancel request. - * - * @category `tasks/cancel` - */ -export type CancelTaskResult = Result & Task; -/** - * A request to retrieve a list of tasks. - * - * @category `tasks/list` - */ -export interface ListTasksRequest extends PaginatedRequest { - method: "tasks/list"; -} -/** - * The response to a tasks/list request. - * - * @category `tasks/list` - */ -export interface ListTasksResult extends PaginatedResult { - tasks: Task[]; -} -/** - * Parameters for a `notifications/tasks/status` notification. - * - * @category `notifications/tasks/status` - */ -export type TaskStatusNotificationParams = NotificationParams & Task; -/** - * An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications. - * - * @category `notifications/tasks/status` - */ -export interface TaskStatusNotification extends JSONRPCNotification { - method: "notifications/tasks/status"; - params: TaskStatusNotificationParams; -} -/** - * Parameters for a `logging/setLevel` request. - * - * @category `logging/setLevel` - */ -export interface SetLevelRequestParams extends RequestParams { - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message. - */ - level: LoggingLevel; -} -/** - * A request from the client to the server, to enable or adjust logging. - * - * @category `logging/setLevel` - */ -export interface SetLevelRequest extends JSONRPCRequest { - method: "logging/setLevel"; - params: SetLevelRequestParams; -} -/** - * Parameters for a `notifications/message` notification. - * - * @category `notifications/message` - */ -export interface LoggingMessageNotificationParams extends NotificationParams { - /** - * The severity of this log message. - */ - level: LoggingLevel; - /** - * An optional name of the logger issuing this message. - */ - logger?: string; - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: unknown; -} -/** - * JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - * - * @category `notifications/message` - */ -export interface LoggingMessageNotification extends JSONRPCNotification { - method: "notifications/message"; - params: LoggingMessageNotificationParams; -} -/** - * The severity of a log message. - * - * These map to syslog message severities, as specified in RFC-5424: - * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1 - * - * @category Common Types - */ -export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency"; -/** - * Parameters for a `sampling/createMessage` request. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageRequestParams extends TaskAugmentedRequestParams { - messages: SamplingMessage[]; - /** - * The server's preferences for which model to select. The client MAY ignore these preferences. - */ - modelPreferences?: ModelPreferences; - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt?: string; - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. - * The client MAY ignore this request. - * - * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client - * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases. - */ - includeContext?: "none" | "thisServer" | "allServers"; - /** - * @TJS-type number - */ - temperature?: number; - /** - * The requested maximum number of tokens to sample (to prevent runaway completions). - * - * The client MAY choose to sample fewer tokens than the requested maximum. - */ - maxTokens: number; - stopSequences?: string[]; - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata?: object; - /** - * Tools that the model may use during generation. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - */ - tools?: Tool[]; - /** - * Controls how the model uses tools. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - * Default is `{ mode: "auto" }`. - */ - toolChoice?: ToolChoice; -} -/** - * Controls tool selection behavior for sampling requests. - * - * @category `sampling/createMessage` - */ -export interface ToolChoice { - /** - * Controls the tool use ability of the model: - * - "auto": Model decides whether to use tools (default) - * - "required": Model MUST use at least one tool before completing - * - "none": Model MUST NOT use any tools - */ - mode?: "auto" | "required" | "none"; -} -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageRequest extends JSONRPCRequest { - method: "sampling/createMessage"; - params: CreateMessageRequestParams; -} -/** - * The client's response to a sampling/createMessage request from the server. - * The client should inform the user before returning the sampled message, to allow them - * to inspect the response (human in the loop) and decide whether to allow the server to see it. - * - * @category `sampling/createMessage` - */ -export interface CreateMessageResult extends Result, SamplingMessage { - /** - * The name of the model that generated the message. - */ - model: string; - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - "toolUse": The model wants to use one or more tools - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason?: "endTurn" | "stopSequence" | "maxTokens" | "toolUse" | string; -} -/** - * Describes a message issued to or received from an LLM API. - * - * @category `sampling/createMessage` - */ -export interface SamplingMessage { - role: Role; - content: SamplingMessageContentBlock | SamplingMessageContentBlock[]; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -export type SamplingMessageContentBlock = TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent; -/** - * Optional annotations for the client. The client can use annotations to inform how objects are used or displayed - * - * @category Common Types - */ -export interface Annotations { - /** - * Describes who the intended audience of this object or data is. - * - * It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`). - */ - audience?: Role[]; - /** - * Describes how important this data is for operating the server. - * - * A value of 1 means "most important," and indicates that the data is - * effectively required, while 0 means "least important," and indicates that - * the data is entirely optional. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - priority?: number; - /** - * The moment the resource was last modified, as an ISO 8601 formatted string. - * - * Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z"). - * - * Examples: last activity timestamp in an open file, timestamp when the resource - * was attached, etc. - */ - lastModified?: string; -} -/** - * @category Content - */ -export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource; -/** - * Text provided to or from an LLM. - * - * @category Content - */ -export interface TextContent { - type: "text"; - /** - * The text content of the message. - */ - text: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * An image provided to or from an LLM. - * - * @category Content - */ -export interface ImageContent { - type: "image"; - /** - * The base64-encoded image data. - * - * @format byte - */ - data: string; - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * Audio provided to or from an LLM. - * - * @category Content - */ -export interface AudioContent { - type: "audio"; - /** - * The base64-encoded audio data. - * - * @format byte - */ - data: string; - /** - * The MIME type of the audio. Different providers may support different audio types. - */ - mimeType: string; - /** - * Optional annotations for the client. - */ - annotations?: Annotations; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A request from the assistant to call a tool. - * - * @category `sampling/createMessage` - */ -export interface ToolUseContent { - type: "tool_use"; - /** - * A unique identifier for this tool use. - * - * This ID is used to match tool results to their corresponding tool uses. - */ - id: string; - /** - * The name of the tool to call. - */ - name: string; - /** - * The arguments to pass to the tool, conforming to the tool's input schema. - */ - input: { - [key: string]: unknown; - }; - /** - * Optional metadata about the tool use. Clients SHOULD preserve this field when - * including tool uses in subsequent sampling requests to enable caching optimizations. - * - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The result of a tool use, provided by the user back to the assistant. - * - * @category `sampling/createMessage` - */ -export interface ToolResultContent { - type: "tool_result"; - /** - * The ID of the tool use this result corresponds to. - * - * This MUST match the ID from a previous ToolUseContent. - */ - toolUseId: string; - /** - * The unstructured result content of the tool use. - * - * This has the same format as CallToolResult.content and can include text, images, - * audio, resource links, and embedded resources. - */ - content: ContentBlock[]; - /** - * An optional structured result object. - * - * If the tool defined an outputSchema, this SHOULD conform to that schema. - */ - structuredContent?: { - [key: string]: unknown; - }; - /** - * Whether the tool use resulted in an error. - * - * If true, the content typically describes the error that occurred. - * Default: false - */ - isError?: boolean; - /** - * Optional metadata about the tool result. Clients SHOULD preserve this field when - * including tool results in subsequent sampling requests to enable caching optimizations. - * - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * The server's preferences for model selection, requested of the client during sampling. - * - * Because LLMs can vary along multiple dimensions, choosing the "best" model is - * rarely straightforward. Different models excel in different areas—some are - * faster but less capable, others are more capable but more expensive, and so - * on. This interface allows servers to express their priorities across multiple - * dimensions to help clients make an appropriate selection for their use case. - * - * These preferences are always advisory. The client MAY ignore them. It is also - * up to the client to decide how to interpret these preferences and how to - * balance them against other considerations. - * - * @category `sampling/createMessage` - */ -export interface ModelPreferences { - /** - * Optional hints to use for model selection. - * - * If multiple hints are specified, the client MUST evaluate them in order - * (such that the first match is taken). - * - * The client SHOULD prioritize these hints over the numeric priorities, but - * MAY still use the priorities to select from ambiguous matches. - */ - hints?: ModelHint[]; - /** - * How much to prioritize cost when selecting a model. A value of 0 means cost - * is not important, while a value of 1 means cost is the most important - * factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - costPriority?: number; - /** - * How much to prioritize sampling speed (latency) when selecting a model. A - * value of 0 means speed is not important, while a value of 1 means speed is - * the most important factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - speedPriority?: number; - /** - * How much to prioritize intelligence and capabilities when selecting a - * model. A value of 0 means intelligence is not important, while a value of 1 - * means intelligence is the most important factor. - * - * @TJS-type number - * @minimum 0 - * @maximum 1 - */ - intelligencePriority?: number; -} -/** - * Hints to use for model selection. - * - * Keys not declared here are currently left unspecified by the spec and are up - * to the client to interpret. - * - * @category `sampling/createMessage` - */ -export interface ModelHint { - /** - * A hint for a model name. - * - * The client SHOULD treat this as a substring of a model name; for example: - * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022` - * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc. - * - `claude` should match any Claude model - * - * The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example: - * - `gemini-1.5-flash` could match `claude-3-haiku-20240307` - */ - name?: string; -} -/** - * Parameters for a `completion/complete` request. - * - * @category `completion/complete` - */ -export interface CompleteRequestParams extends RequestParams { - ref: PromptReference | ResourceTemplateReference; - /** - * The argument's information - */ - argument: { - /** - * The name of the argument - */ - name: string; - /** - * The value of the argument to use for completion matching. - */ - value: string; - }; - /** - * Additional, optional context for completions - */ - context?: { - /** - * Previously-resolved variables in a URI template or prompt. - */ - arguments?: { - [key: string]: string; - }; - }; -} -/** - * A request from the client to the server, to ask for completion options. - * - * @category `completion/complete` - */ -export interface CompleteRequest extends JSONRPCRequest { - method: "completion/complete"; - params: CompleteRequestParams; -} -/** - * The server's response to a completion/complete request - * - * @category `completion/complete` - */ -export interface CompleteResult extends Result { - completion: { - /** - * An array of completion values. Must not exceed 100 items. - */ - values: string[]; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total?: number; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore?: boolean; - }; -} -/** - * A reference to a resource or resource template definition. - * - * @category `completion/complete` - */ -export interface ResourceTemplateReference { - type: "ref/resource"; - /** - * The URI or URI template of the resource. - * - * @format uri-template - */ - uri: string; -} -/** - * Identifies a prompt. - * - * @category `completion/complete` - */ -export interface PromptReference extends BaseMetadata { - type: "ref/prompt"; -} -/** - * Sent from the server to request a list of root URIs from the client. Roots allow - * servers to ask for specific directories or files to operate on. A common example - * for roots is providing a set of repositories or directories a server should operate - * on. - * - * This request is typically used when the server needs to understand the file system - * structure or access specific locations that the client has permission to read from. - * - * @category `roots/list` - */ -export interface ListRootsRequest extends JSONRPCRequest { - method: "roots/list"; - params?: RequestParams; -} -/** - * The client's response to a roots/list request from the server. - * This result contains an array of Root objects, each representing a root directory - * or file that the server can operate on. - * - * @category `roots/list` - */ -export interface ListRootsResult extends Result { - roots: Root[]; -} -/** - * Represents a root directory or file that the server can operate on. - * - * @category `roots/list` - */ -export interface Root { - /** - * The URI identifying the root. This *must* start with file:// for now. - * This restriction may be relaxed in future versions of the protocol to allow - * other URI schemes. - * - * @format uri - */ - uri: string; - /** - * An optional name for the root. This can be used to provide a human-readable - * identifier for the root, which may be useful for display purposes or for - * referencing the root in other parts of the application. - */ - name?: string; - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta?: { - [key: string]: unknown; - }; -} -/** - * A notification from the client to the server, informing it that the list of roots has changed. - * This notification should be sent whenever the client adds, removes, or modifies any root. - * The server should then request an updated list of roots using the ListRootsRequest. - * - * @category `notifications/roots/list_changed` - */ -export interface RootsListChangedNotification extends JSONRPCNotification { - method: "notifications/roots/list_changed"; - params?: NotificationParams; -} -/** - * The parameters for a request to elicit non-sensitive information from the user via a form in the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequestFormParams extends TaskAugmentedRequestParams { - /** - * The elicitation mode. - */ - mode?: "form"; - /** - * The message to present to the user describing what information is being requested. - */ - message: string; - /** - * A restricted subset of JSON Schema. - * Only top-level properties are allowed, without nesting. - */ - requestedSchema: { - $schema?: string; - type: "object"; - properties: { - [key: string]: PrimitiveSchemaDefinition; - }; - required?: string[]; - }; -} -/** - * The parameters for a request to elicit information from the user via a URL in the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequestURLParams extends TaskAugmentedRequestParams { - /** - * The elicitation mode. - */ - mode: "url"; - /** - * The message to present to the user explaining why the interaction is needed. - */ - message: string; - /** - * The ID of the elicitation, which must be unique within the context of the server. - * The client MUST treat this ID as an opaque value. - */ - elicitationId: string; - /** - * The URL that the user should navigate to. - * - * @format uri - */ - url: string; -} -/** - * The parameters for a request to elicit additional information from the user via the client. - * - * @category `elicitation/create` - */ -export type ElicitRequestParams = ElicitRequestFormParams | ElicitRequestURLParams; -/** - * A request from the server to elicit additional information from the user via the client. - * - * @category `elicitation/create` - */ -export interface ElicitRequest extends JSONRPCRequest { - method: "elicitation/create"; - params: ElicitRequestParams; -} -/** - * Restricted schema definitions that only allow primitive types - * without nested objects or arrays. - * - * @category `elicitation/create` - */ -export type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema; -/** - * @category `elicitation/create` - */ -export interface StringSchema { - type: "string"; - title?: string; - description?: string; - minLength?: number; - maxLength?: number; - format?: "email" | "uri" | "date" | "date-time"; - default?: string; -} -/** - * @category `elicitation/create` - */ -export interface NumberSchema { - type: "number" | "integer"; - title?: string; - description?: string; - minimum?: number; - maximum?: number; - default?: number; -} -/** - * @category `elicitation/create` - */ -export interface BooleanSchema { - type: "boolean"; - title?: string; - description?: string; - default?: boolean; -} -/** - * Schema for single-selection enumeration without display titles for options. - * - * @category `elicitation/create` - */ -export interface UntitledSingleSelectEnumSchema { - type: "string"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Array of enum values to choose from. - */ - enum: string[]; - /** - * Optional default value. - */ - default?: string; -} -/** - * Schema for single-selection enumeration with display titles for each option. - * - * @category `elicitation/create` - */ -export interface TitledSingleSelectEnumSchema { - type: "string"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Array of enum options with values and display labels. - */ - oneOf: Array<{ - /** - * The enum value. - */ - const: string; - /** - * Display label for this option. - */ - title: string; - }>; - /** - * Optional default value. - */ - default?: string; -} -/** - * @category `elicitation/create` - */ -export type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema; -/** - * Schema for multiple-selection enumeration without display titles for options. - * - * @category `elicitation/create` - */ -export interface UntitledMultiSelectEnumSchema { - type: "array"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Minimum number of items to select. - */ - minItems?: number; - /** - * Maximum number of items to select. - */ - maxItems?: number; - /** - * Schema for the array items. - */ - items: { - type: "string"; - /** - * Array of enum values to choose from. - */ - enum: string[]; - }; - /** - * Optional default value. - */ - default?: string[]; -} -/** - * Schema for multiple-selection enumeration with display titles for each option. - * - * @category `elicitation/create` - */ -export interface TitledMultiSelectEnumSchema { - type: "array"; - /** - * Optional title for the enum field. - */ - title?: string; - /** - * Optional description for the enum field. - */ - description?: string; - /** - * Minimum number of items to select. - */ - minItems?: number; - /** - * Maximum number of items to select. - */ - maxItems?: number; - /** - * Schema for array items with enum options and display labels. - */ - items: { - /** - * Array of enum options with values and display labels. - */ - anyOf: Array<{ - /** - * The constant enum value. - */ - const: string; - /** - * Display title for this option. - */ - title: string; - }>; - }; - /** - * Optional default value. - */ - default?: string[]; -} -/** - * @category `elicitation/create` - */ -export type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema; -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - * - * @category `elicitation/create` - */ -export interface LegacyTitledEnumSchema { - type: "string"; - title?: string; - description?: string; - enum: string[]; - /** - * (Legacy) Display names for enum values. - * Non-standard according to JSON schema 2020-12. - */ - enumNames?: string[]; - default?: string; -} -/** - * @category `elicitation/create` - */ -export type EnumSchema = SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema; -/** - * The client's response to an elicitation request. - * - * @category `elicitation/create` - */ -export interface ElicitResult extends Result { - /** - * The user action in response to the elicitation. - * - "accept": User submitted the form/confirmed the action - * - "decline": User explicitly decline the action - * - "cancel": User dismissed without making an explicit choice - */ - action: "accept" | "decline" | "cancel"; - /** - * The submitted form data, only present when action is "accept" and mode was "form". - * Contains values matching the requested schema. - * Omitted for out-of-band mode responses. - */ - content?: { - [key: string]: string | number | boolean | string[]; - }; -} -/** - * An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request. - * - * @category `notifications/elicitation/complete` - */ -export interface ElicitationCompleteNotification extends JSONRPCNotification { - method: "notifications/elicitation/complete"; - params: { - /** - * The ID of the elicitation that completed. - */ - elicitationId: string; - }; -} -/** @internal */ -export type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest; -/** @internal */ -export type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification | TaskStatusNotification; -/** @internal */ -export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult; -/** @internal */ -export type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest; -/** @internal */ -export type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification | ElicitationCompleteNotification | TaskStatusNotification; -/** @internal */ -export type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | ListToolsResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult; -//# sourceMappingURL=spec.types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map deleted file mode 100644 index 7e4fb0e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spec.types.d.ts","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,mBAAmB,GACnB,eAAe,CAAC;AAEpB,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AACvD,gBAAgB;AAChB,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAA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AChB,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,2BAA2B,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,gBAAgB,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js deleted file mode 100644 index 7d0bd05..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file is automatically generated from the Model Context Protocol specification. - * - * Source: https://github.com/modelcontextprotocol/modelcontextprotocol - * Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts - * Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669 - * - * DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates. - * To update this file, run: npm run fetch:spec-types - */ /* JSON-RPC types */ -/** @internal */ -export const LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1"; -/** @internal */ -export const JSONRPC_VERSION = "2.0"; -// Standard JSON-RPC error codes -export const PARSE_ERROR = -32700; -export const INVALID_REQUEST = -32600; -export const METHOD_NOT_FOUND = -32601; -export const INVALID_PARAMS = -32602; -export const INTERNAL_ERROR = -32603; -// Implementation-specific JSON-RPC error codes [-32000, -32099] -/** @internal */ -export const URL_ELICITATION_REQUIRED = -32042; -//# sourceMappingURL=spec.types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map deleted file mode 100644 index 02dadb9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spec.types.js","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG,CAAA,oBAAoB;AAYvB,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC;AACvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AA4JrC,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC;AAErC,gEAAgE;AAChE,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAK,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts deleted file mode 100644 index 55f087e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +++ /dev/null @@ -1,8133 +0,0 @@ -import * as z from 'zod/v4'; -import { AuthInfo } from './server/auth/types.js'; -export declare const LATEST_PROTOCOL_VERSION = "2025-11-25"; -export declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26"; -export declare const SUPPORTED_PROTOCOL_VERSIONS: string[]; -export declare const RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task"; -export declare const JSONRPC_VERSION = "2.0"; -/** - * Utility types - */ -type ExpandRecursively = T extends object ? (T extends infer O ? { - [K in keyof O]: ExpandRecursively; -} : never) : T; -/** - * A progress token, used to associate progress notifications with the original request. - */ -export declare const ProgressTokenSchema: z.ZodUnion; -/** - * An opaque token used to represent a cursor for pagination. - */ -export declare const CursorSchema: z.ZodString; -/** - * Task creation parameters, used to ask that the server create a task to represent a request. - */ -export declare const TaskCreationParamsSchema: z.ZodObject<{ - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.ZodOptional>; - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval: z.ZodOptional; -}, z.core.$loose>; -export declare const TaskMetadataSchema: z.ZodObject<{ - ttl: z.ZodOptional; -}, z.core.$strip>; -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - */ -export declare const RelatedTaskMetadataSchema: z.ZodObject<{ - taskId: z.ZodString; -}, z.core.$strip>; -declare const RequestMetaSchema: z.ZodObject<{ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; -}, z.core.$loose>; -/** - * Common params for any request. - */ -declare const BaseRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * Common params for any task-augmented request. - */ -export declare const TaskAugmentedRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Checks if a value is a valid TaskAugmentedRequestParams. - * @param value - The value to check. - * - * @returns True if the value is a valid TaskAugmentedRequestParams, false otherwise. - */ -export declare const isTaskAugmentedRequestParams: (value: unknown) => value is TaskAugmentedRequestParams; -export declare const RequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -declare const NotificationsParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const NotificationSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const ResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -export declare const RequestIdSchema: z.ZodUnion; -/** - * A request that expects a response. - */ -export declare const JSONRPCRequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; -}, z.core.$strict>; -export declare const isJSONRPCRequest: (value: unknown) => value is JSONRPCRequest; -/** - * A notification which does not expect a response. - */ -export declare const JSONRPCNotificationSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; -}, z.core.$strict>; -export declare const isJSONRPCNotification: (value: unknown) => value is JSONRPCNotification; -/** - * A successful (non-error) response to a request. - */ -export declare const JSONRPCResultResponseSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>; -/** - * Checks if a value is a valid JSONRPCResultResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCResultResponse, false otherwise. - */ -export declare const isJSONRPCResultResponse: (value: unknown) => value is JSONRPCResultResponse; -/** - * @deprecated Use {@link isJSONRPCResultResponse} instead. - * - * Please note that {@link JSONRPCResponse} is a union of {@link JSONRPCResultResponse} and {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCResultResponse}) - */ -export declare const isJSONRPCResponse: (value: unknown) => value is JSONRPCResultResponse; -/** - * Error codes defined by the JSON-RPC specification. - */ -export declare enum ErrorCode { - ConnectionClosed = -32000, - RequestTimeout = -32001, - ParseError = -32700, - InvalidRequest = -32600, - MethodNotFound = -32601, - InvalidParams = -32602, - InternalError = -32603, - UrlElicitationRequired = -32042 -} -/** - * A response to a request that indicates an error occurred. - */ -export declare const JSONRPCErrorResponseSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>; -/** - * @deprecated Use {@link JSONRPCErrorResponseSchema} instead. - */ -export declare const JSONRPCErrorSchema: z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>; -/** - * Checks if a value is a valid JSONRPCErrorResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCErrorResponse, false otherwise. - */ -export declare const isJSONRPCErrorResponse: (value: unknown) => value is JSONRPCErrorResponse; -/** - * @deprecated Use {@link isJSONRPCErrorResponse} instead. - */ -export declare const isJSONRPCError: (value: unknown) => value is JSONRPCErrorResponse; -export declare const JSONRPCMessageSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; -}, z.core.$strict>, z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - jsonrpc: z.ZodLiteral<"2.0">; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>]>; -export declare const JSONRPCResponseSchema: z.ZodUnion; - id: z.ZodUnion; - result: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>; -}, z.core.$strict>, z.ZodObject<{ - jsonrpc: z.ZodLiteral<"2.0">; - id: z.ZodOptional>; - error: z.ZodObject<{ - code: z.ZodNumber; - message: z.ZodString; - data: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strict>]>; -/** - * A response that indicates success but carries no data. - */ -export declare const EmptyResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>; -export declare const CancelledNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; -}, z.core.$strip>; -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - */ -export declare const CancelledNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/cancelled">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Icon schema for use in tools, prompts, resources, and implementations. - */ -export declare const IconSchema: z.ZodObject<{ - src: z.ZodString; - mimeType: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; -}, z.core.$strip>; -/** - * Base schema to add `icons` property. - * - */ -export declare const IconsSchema: z.ZodObject<{ - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; -}, z.core.$strip>; -/** - * Base metadata interface for common properties across resources, tools, prompts, and implementations. - */ -export declare const BaseMetadataSchema: z.ZodObject<{ - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Describes the name and version of an MCP implementation. - */ -export declare const ImplementationSchema: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Task capabilities for clients, indicating which request types support task creation. - */ -export declare const ClientTasksCapabilitySchema: z.ZodObject<{ - /** - * Present if the client supports listing tasks. - */ - list: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * Task capabilities for servers, indicating which request types support task creation. - */ -export declare const ServerTasksCapabilitySchema: z.ZodObject<{ - /** - * Present if the server supports listing tasks. - */ - list: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -export declare const ClientCapabilitiesSchema: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -export declare const InitializeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -export declare const InitializeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"initialize">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const isInitializeRequest: (value: unknown) => value is InitializeRequest; -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -export declare const ServerCapabilitiesSchema: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * After receiving an initialize request from the client, the server sends this response. - */ -export declare const InitializeResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - serverInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - instructions: z.ZodOptional; -}, z.core.$loose>; -/** - * This notification is sent from the client to the server after initialization has finished. - */ -export declare const InitializedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/initialized">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const isInitializedNotification: (value: unknown) => value is InitializedNotification; -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -export declare const PingRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"ping">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const ProgressSchema: z.ZodObject<{ - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; -}, z.core.$strip>; -export declare const ProgressNotificationParamsSchema: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strip>; -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category notifications/progress - */ -export declare const ProgressNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const PaginatedRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; -}, z.core.$strip>; -export declare const PaginatedRequestSchema: z.ZodObject<{ - method: z.ZodString; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const PaginatedResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; -}, z.core.$loose>; -/** - * The status of a task. - * */ -export declare const TaskStatusSchema: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; -}>; -/** - * A pollable state object associated with a request. - */ -export declare const TaskSchema: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * Result returned when a task is created, containing the task data wrapped in a task field. - */ -export declare const CreateTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>; -/** - * Parameters for task status notification. - */ -export declare const TaskStatusNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * A notification sent when a task's status changes. - */ -export declare const TaskStatusNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * A request to get the state of a specific task. - */ -export declare const GetTaskRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/get request. - */ -export declare const GetTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * A request to get the result of a specific task. - */ -export declare const GetTaskPayloadRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - */ -export declare const GetTaskPayloadResultSchema: z.ZodObject<{ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$loose>; -/** - * A request to list tasks. - */ -export declare const ListTasksRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>; -/** - * The response to a tasks/list request. - */ -export declare const ListTasksResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * A request to cancel a specific task. - */ -export declare const CancelTaskRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The response to a tasks/cancel request. - */ -export declare const CancelTaskResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>; -/** - * The contents of a specific resource or sub-resource. - */ -export declare const ResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -export declare const TextResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - text: z.ZodString; -}, z.core.$strip>; -export declare const BlobResourceContentsSchema: z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; -}, z.core.$strip>; -/** - * The sender or recipient of messages and data in a conversation. - */ -export declare const RoleSchema: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; -}>; -/** - * Optional annotations providing clients additional context about a resource. - */ -export declare const AnnotationsSchema: z.ZodObject<{ - audience: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; -}, z.core.$strip>; -/** - * A known resource that the server is capable of reading. - */ -export declare const ResourceSchema: z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * A template description for resources available on the server. - */ -export declare const ResourceTemplateSchema: z.ZodObject<{ - uriTemplate: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of resources the server has. - */ -export declare const ListResourcesRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/list">; -}, z.core.$strip>; -/** - * The server's response to a resources/list request from the client. - */ -export declare const ListResourcesResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resources: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * Sent from the client to request a list of resource templates the server has. - */ -export declare const ListResourceTemplatesRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/templates/list">; -}, z.core.$strip>; -/** - * The server's response to a resources/templates/list request from the client. - */ -export declare const ListResourceTemplatesResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resourceTemplates: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -export declare const ResourceRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Parameters for a `resources/read` request. - */ -export declare const ReadResourceRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to the server, to read a specific resource URI. - */ -export declare const ReadResourceRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The server's response to a resources/read request from the client. - */ -export declare const ReadResourceResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - contents: z.ZodArray; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>>; -}, z.core.$loose>; -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ResourceListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const SubscribeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -export declare const SubscribeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -export declare const UnsubscribeRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -export declare const UnsubscribeRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/resources/updated` notification. - */ -export declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; -}, z.core.$strip>; -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -export declare const ResourceUpdatedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Describes an argument that a prompt can accept. - */ -export declare const PromptArgumentSchema: z.ZodObject<{ - name: z.ZodString; - description: z.ZodOptional; - required: z.ZodOptional; -}, z.core.$strip>; -/** - * A prompt or prompt template that the server offers. - */ -export declare const PromptSchema: z.ZodObject<{ - description: z.ZodOptional; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -export declare const ListPromptsRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"prompts/list">; -}, z.core.$strip>; -/** - * The server's response to a prompts/list request from the client. - */ -export declare const ListPromptsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - prompts: z.ZodArray; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * Parameters for a `prompts/get` request. - */ -export declare const GetPromptRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; -}, z.core.$strip>; -/** - * Used by the client to get a prompt provided by the server. - */ -export declare const GetPromptRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Text provided to or from an LLM. - */ -export declare const TextContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * An image provided to or from an LLM. - */ -export declare const ImageContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * An Audio provided to or from an LLM. - */ -export declare const AudioContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * A tool call request from an assistant (LLM). - * Represents the assistant's request to use a tool. - */ -export declare const ToolUseContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * The contents of a resource, embedded into a prompt or tool call result. - */ -export declare const EmbeddedResourceSchema: z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - */ -export declare const ResourceLinkSchema: z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; -}, z.core.$strip>; -/** - * A content block that can be used in prompts and tool results. - */ -export declare const ContentBlockSchema: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Describes a message returned as part of a prompt. - */ -export declare const PromptMessageSchema: z.ZodObject<{ - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$strip>; -/** - * The server's response to a prompts/get request from the client. - */ -export declare const GetPromptResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const PromptListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/prompts/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - */ -export declare const ToolAnnotationsSchema: z.ZodObject<{ - title: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; -}, z.core.$strip>; -/** - * Execution-related properties for a tool. - */ -export declare const ToolExecutionSchema: z.ZodObject<{ - taskSupport: z.ZodOptional>; -}, z.core.$strip>; -/** - * Definition for a tool the client can call. - */ -export declare const ToolSchema: z.ZodObject<{ - description: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; -}, z.core.$strip>; -/** - * Sent from the client to request a list of tools the server has. - */ -export declare const ListToolsRequestSchema: z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tools/list">; -}, z.core.$strip>; -/** - * The server's response to a tools/list request from the client. - */ -export declare const ListToolsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tools: z.ZodArray; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * The server's response to a tool call. - */ -export declare const CallToolResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>; -/** - * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07. - */ -export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - toolResult: z.ZodUnknown; -}, z.core.$loose>]>; -/** - * Parameters for a `tools/call` request. - */ -export declare const CallToolRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; -}, z.core.$strip>; -/** - * Used by the client to invoke a tool provided by the server. - */ -export declare const CallToolRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export declare const ToolListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/tools/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * Callback type for list changed notifications. - */ -export type ListChangedCallback = (error: Error | null, items: T[] | null) => void; -/** - * Base schema for list changed subscription options (without callback). - * Used internally for Zod validation of autoRefresh and debounceMs. - */ -export declare const ListChangedOptionsBaseSchema: z.ZodObject<{ - autoRefresh: z.ZodDefault; - debounceMs: z.ZodDefault; -}, z.core.$strip>; -/** - * Options for subscribing to list changed notifications. - * - * @typeParam T - The type of items in the list (Tool, Prompt, or Resource) - */ -export type ListChangedOptions = { - /** - * If true, the list will be refreshed automatically when a list changed notification is received. - * @default true - */ - autoRefresh?: boolean; - /** - * Debounce time in milliseconds. Set to 0 to disable. - * @default 300 - */ - debounceMs?: number; - /** - * Callback invoked when the list changes. - * - * If autoRefresh is true, items contains the updated list. - * If autoRefresh is false, items is null (caller should refresh manually). - */ - onChanged: ListChangedCallback; -}; -/** - * Configuration for list changed notification handlers. - * - * Use this to configure handlers for tools, prompts, and resources list changes - * when creating a client. - * - * Note: Handlers are only activated if the server advertises the corresponding - * `listChanged` capability (e.g., `tools.listChanged: true`). If the server - * doesn't advertise this capability, the handler will not be set up. - */ -export type ListChangedHandlers = { - /** - * Handler for tool list changes. - */ - tools?: ListChangedOptions; - /** - * Handler for prompt list changes. - */ - prompts?: ListChangedOptions; - /** - * Handler for resource list changes. - */ - resources?: ListChangedOptions; -}; -/** - * The severity of a log message. - */ -export declare const LoggingLevelSchema: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; -}>; -/** - * Parameters for a `logging/setLevel` request. - */ -export declare const SetLevelRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; -}, z.core.$strip>; -/** - * A request from the client to the server, to enable or adjust logging. - */ -export declare const SetLevelRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/message` notification. - */ -export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; -}, z.core.$strip>; -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -export declare const LoggingMessageNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Hints to use for model selection. - */ -export declare const ModelHintSchema: z.ZodObject<{ - name: z.ZodOptional; -}, z.core.$strip>; -/** - * The server's preferences for model selection, requested of the client during sampling. - */ -export declare const ModelPreferencesSchema: z.ZodObject<{ - hints: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; -}, z.core.$strip>; -/** - * Controls tool usage behavior in sampling requests. - */ -export declare const ToolChoiceSchema: z.ZodObject<{ - mode: z.ZodOptional>; -}, z.core.$strip>; -/** - * The result of a tool execution, provided by the user (server). - * Represents the outcome of invoking a tool requested via ToolUseContent. - */ -export declare const ToolResultContentSchema: z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Basic content types for sampling responses (without tool use). - * Used for backwards-compatible CreateMessageResult when tools are not used. - */ -export declare const SamplingContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Content block types allowed in sampling messages. - * This includes text, image, audio, tool use requests, and tool results. - */ -export declare const SamplingMessageContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Describes a message issued to or received from an LLM API. - */ -export declare const SamplingMessageSchema: z.ZodObject<{ - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Parameters for a `sampling/createMessage` request. - */ -export declare const CreateMessageRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -export declare const CreateMessageRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The client's response to a sampling/create_message request from the server. - * This is the backwards-compatible version that returns single content (no arrays). - * Used when the request does not include tools. - */ -export declare const CreateMessageResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$loose>; -/** - * The client's response to a sampling/create_message request when tools were provided. - * This version supports array content for tool use flows. - */ -export declare const CreateMessageResultWithToolsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; -}, z.core.$loose>; -/** - * Primitive schema definition for boolean fields. - */ -export declare const BooleanSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Primitive schema definition for string fields. - */ -export declare const StringSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Primitive schema definition for number fields. - */ -export declare const NumberSchemaSchema: z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Schema for single-selection enumeration without display titles for options. - */ -export declare const UntitledSingleSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Schema for single-selection enumeration with display titles for each option. - */ -export declare const TitledSingleSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>; -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - */ -export declare const LegacyTitledEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>; -export declare const SingleSelectEnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>; -/** - * Schema for multiple-selection enumeration without display titles for options. - */ -export declare const UntitledMultiSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>; -/** - * Schema for multiple-selection enumeration with display titles for each option. - */ -export declare const TitledMultiSelectEnumSchemaSchema: z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>; -/** - * Combined schema for multiple-selection enumeration - */ -export declare const MultiSelectEnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>; -/** - * Primitive schema definition for enum fields. - */ -export declare const EnumSchemaSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>]>; -/** - * Union of all primitive schema definitions. - */ -export declare const PrimitiveSchemaDefinitionSchema: z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; -}, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; -}, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; -}, z.core.$strip>]>; -/** - * Parameters for an `elicitation/create` request for form-based elicitation. - */ -export declare const ElicitRequestFormParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * Parameters for an `elicitation/create` request for URL-based elicitation. - */ -export declare const ElicitRequestURLParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; -}, z.core.$strip>; -/** - * The parameters for a request to elicit additional information from the user via the client. - */ -export declare const ElicitRequestParamsSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; -}, z.core.$strip>]>; -/** - * A request from the server to elicit user input via the client. - * The client should present the message and form fields to the user (form mode) - * or navigate to a URL (URL mode). - */ -export declare const ElicitRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"elicitation/create">; - params: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; - }, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; - }, z.core.$strip>]>; -}, z.core.$strip>; -/** - * Parameters for a `notifications/elicitation/complete` notification. - * - * @category notifications/elicitation/complete - */ -export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; -}, z.core.$strip>; -/** - * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. - * - * @category notifications/elicitation/complete - */ -export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/elicitation/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>; -/** - * The client's response to an elicitation/create request from the server. - */ -export declare const ElicitResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - action: z.ZodEnum<{ - cancel: "cancel"; - accept: "accept"; - decline: "decline"; - }>; - content: z.ZodPipe, z.ZodOptional]>>>>; -}, z.core.$loose>; -/** - * A reference to a resource or resource template definition. - */ -export declare const ResourceTemplateReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; -}, z.core.$strip>; -/** - * @deprecated Use ResourceTemplateReferenceSchema instead - */ -export declare const ResourceReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; -}, z.core.$strip>; -/** - * Identifies a prompt. - */ -export declare const PromptReferenceSchema: z.ZodObject<{ - type: z.ZodLiteral<"ref/prompt">; - name: z.ZodString; -}, z.core.$strip>; -/** - * Parameters for a `completion/complete` request. - */ -export declare const CompleteRequestParamsSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * A request from the client to the server, to ask for completion options. - */ -export declare const CompleteRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>; -export declare function assertCompleteRequestPrompt(request: CompleteRequest): asserts request is CompleteRequestPrompt; -export declare function assertCompleteRequestResourceTemplate(request: CompleteRequest): asserts request is CompleteRequestResourceTemplate; -/** - * The server's response to a completion/complete request - */ -export declare const CompleteResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.core.$loose>; -}, z.core.$loose>; -/** - * Represents a root directory or file that the server can operate on. - */ -export declare const RootSchema: z.ZodObject<{ - uri: z.ZodString; - name: z.ZodOptional; - _meta: z.ZodOptional>; -}, z.core.$strip>; -/** - * Sent from the server to request a list of root URIs from the client. - */ -export declare const ListRootsRequestSchema: z.ZodObject<{ - method: z.ZodLiteral<"roots/list">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -/** - * The client's response to a roots/list request from the server. - */ -export declare const ListRootsResultSchema: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - roots: z.ZodArray; - _meta: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$loose>; -/** - * A notification from the client to the server, informing it that the list of roots has changed. - */ -export declare const RootsListChangedNotificationSchema: z.ZodObject<{ - method: z.ZodLiteral<"notifications/roots/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>; -export declare const ClientRequestSchema: z.ZodUnion; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"initialize">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - sampling: z.ZodOptional>; - tools: z.ZodOptional>; - }, z.core.$strip>>; - elicitation: z.ZodOptional, z.ZodIntersection; - }, z.core.$strip>, z.ZodRecord>>; - url: z.ZodOptional>; - }, z.core.$strip>, z.ZodOptional>>>>; - roots: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the client supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - /** - * Task support for elicitation requests. - */ - elicitation: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - clientInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"completion/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - ref: z.ZodUnion; - name: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"ref/resource">; - uri: z.ZodString; - }, z.core.$strip>]>; - argument: z.ZodObject<{ - name: z.ZodString; - value: z.ZodString; - }, z.core.$strip>; - context: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"logging/setLevel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"prompts/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"prompts/list">; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/list">; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"resources/templates/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/read">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/subscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"resources/unsubscribe">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tools/call">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - name: z.ZodString; - arguments: z.ZodOptional>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tools/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ClientNotificationSchema: z.ZodUnion; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/initialized">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/roots/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ClientResultSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodDiscriminatedUnion<[z.ZodObject<{ - type: z.ZodLiteral<"text">; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - model: z.ZodString; - stopReason: z.ZodOptional, z.ZodString]>>; - role: z.ZodEnum<{ - user: "user"; - assistant: "assistant"; - }>; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - action: z.ZodEnum<{ - cancel: "cancel"; - accept: "accept"; - decline: "decline"; - }>; - content: z.ZodPipe, z.ZodOptional]>>>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - roots: z.ZodArray; - _meta: z.ZodOptional>; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>]>; -export declare const ServerRequestSchema: z.ZodUnion; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"sampling/createMessage">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>, z.ZodArray; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_use">; - name: z.ZodString; - id: z.ZodString; - input: z.ZodRecord; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"tool_result">; - toolUseId: z.ZodString; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>]>; - _meta: z.ZodOptional>; - }, z.core.$strip>>; - modelPreferences: z.ZodOptional; - }, z.core.$strip>>>; - costPriority: z.ZodOptional; - speedPriority: z.ZodOptional; - intelligencePriority: z.ZodOptional; - }, z.core.$strip>>; - systemPrompt: z.ZodOptional; - includeContext: z.ZodOptional>; - temperature: z.ZodOptional; - maxTokens: z.ZodNumber; - stopSequences: z.ZodOptional>; - metadata: z.ZodOptional>; - tools: z.ZodOptional; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>>; - toolChoice: z.ZodOptional>; - }, z.core.$strip>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"elicitation/create">; - params: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodOptional>; - message: z.ZodString; - requestedSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodRecord; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - enumNames: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - enum: z.ZodArray; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - oneOf: z.ZodArray>; - default: z.ZodOptional; - }, z.core.$strip>]>, z.ZodUnion; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - type: z.ZodLiteral<"string">; - enum: z.ZodArray; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"array">; - title: z.ZodOptional; - description: z.ZodOptional; - minItems: z.ZodOptional; - maxItems: z.ZodOptional; - items: z.ZodObject<{ - anyOf: z.ZodArray>; - }, z.core.$strip>; - default: z.ZodOptional>; - }, z.core.$strip>]>]>, z.ZodObject<{ - type: z.ZodLiteral<"boolean">; - title: z.ZodOptional; - description: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"string">; - title: z.ZodOptional; - description: z.ZodOptional; - minLength: z.ZodOptional; - maxLength: z.ZodOptional; - format: z.ZodOptional>; - default: z.ZodOptional; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodEnum<{ - number: "number"; - integer: "integer"; - }>; - title: z.ZodOptional; - description: z.ZodOptional; - minimum: z.ZodOptional; - maximum: z.ZodOptional; - default: z.ZodOptional; - }, z.core.$strip>]>>; - required: z.ZodOptional>; - }, z.core.$strip>; - }, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodOptional; - }, z.core.$strip>>; - mode: z.ZodLiteral<"url">; - message: z.ZodString; - elicitationId: z.ZodString; - url: z.ZodString; - }, z.core.$strip>]>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"roots/list">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/get">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/result">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - cursor: z.ZodOptional; - }, z.core.$strip>>; - method: z.ZodLiteral<"tasks/list">; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"tasks/cancel">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ServerNotificationSchema: z.ZodUnion; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - requestId: z.ZodOptional>; - reason: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/progress">; - params: z.ZodObject<{ - progressToken: z.ZodUnion; - progress: z.ZodNumber; - total: z.ZodOptional; - message: z.ZodOptional; - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/message">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - level: z.ZodEnum<{ - error: "error"; - debug: "debug"; - info: "info"; - notice: "notice"; - warning: "warning"; - critical: "critical"; - alert: "alert"; - emergency: "emergency"; - }>; - logger: z.ZodOptional; - data: z.ZodUnknown; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/updated">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - uri: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/resources/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tools/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/prompts/list_changed">; - params: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$strip>>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/tasks/status">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$strip>, z.ZodObject<{ - method: z.ZodLiteral<"notifications/elicitation/complete">; - params: z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - elicitationId: z.ZodString; - }, z.core.$strip>; -}, z.core.$strip>]>; -export declare const ServerResultSchema: z.ZodUnion>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; -}, z.core.$strict>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - protocolVersion: z.ZodString; - capabilities: z.ZodObject<{ - experimental: z.ZodOptional>>; - logging: z.ZodOptional>; - completions: z.ZodOptional>; - prompts: z.ZodOptional; - }, z.core.$strip>>; - resources: z.ZodOptional; - listChanged: z.ZodOptional; - }, z.core.$strip>>; - tools: z.ZodOptional; - }, z.core.$strip>>; - tasks: z.ZodOptional>; - /** - * Present if the server supports cancelling tasks. - */ - cancel: z.ZodOptional>; - /** - * Capabilities for task creation on specific request types. - */ - requests: z.ZodOptional>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$loose>>; - }, z.core.$strip>; - serverInfo: z.ZodObject<{ - version: z.ZodString; - websiteUrl: z.ZodOptional; - description: z.ZodOptional; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>; - instructions: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - completion: z.ZodObject<{ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.ZodArray; - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.ZodOptional; - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.ZodOptional; - }, z.core.$loose>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - description: z.ZodOptional; - messages: z.ZodArray; - content: z.ZodUnion; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - prompts: z.ZodArray; - arguments: z.ZodOptional; - required: z.ZodOptional; - }, z.core.$strip>>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resources: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - resourceTemplates: z.ZodArray; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - contents: z.ZodArray; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - content: z.ZodDefault; - text: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"image">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"audio">; - data: z.ZodString; - mimeType: z.ZodString; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - description: z.ZodOptional; - mimeType: z.ZodOptional; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - type: z.ZodLiteral<"resource_link">; - }, z.core.$strip>, z.ZodObject<{ - type: z.ZodLiteral<"resource">; - resource: z.ZodUnion; - _meta: z.ZodOptional>; - text: z.ZodString; - }, z.core.$strip>, z.ZodObject<{ - uri: z.ZodString; - mimeType: z.ZodOptional; - _meta: z.ZodOptional>; - blob: z.ZodString; - }, z.core.$strip>]>; - annotations: z.ZodOptional>>; - priority: z.ZodOptional; - lastModified: z.ZodOptional; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - }, z.core.$strip>]>>>; - structuredContent: z.ZodOptional>; - isError: z.ZodOptional; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tools: z.ZodArray; - inputSchema: z.ZodObject<{ - type: z.ZodLiteral<"object">; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>; - outputSchema: z.ZodOptional; - properties: z.ZodOptional>>; - required: z.ZodOptional>; - }, z.core.$catchall>>; - annotations: z.ZodOptional; - readOnlyHint: z.ZodOptional; - destructiveHint: z.ZodOptional; - idempotentHint: z.ZodOptional; - openWorldHint: z.ZodOptional; - }, z.core.$strip>>; - execution: z.ZodOptional>; - }, z.core.$strip>>; - _meta: z.ZodOptional>; - icons: z.ZodOptional; - sizes: z.ZodOptional>; - theme: z.ZodOptional>; - }, z.core.$strip>>>; - name: z.ZodString; - title: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; -}, z.core.$strip>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - nextCursor: z.ZodOptional; - tasks: z.ZodArray; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>>; -}, z.core.$loose>, z.ZodObject<{ - _meta: z.ZodOptional>; - /** - * If specified, this request is related to the provided task. - */ - "io.modelcontextprotocol/related-task": z.ZodOptional>; - }, z.core.$loose>>; - task: z.ZodObject<{ - taskId: z.ZodString; - status: z.ZodEnum<{ - working: "working"; - input_required: "input_required"; - completed: "completed"; - failed: "failed"; - cancelled: "cancelled"; - }>; - ttl: z.ZodUnion; - createdAt: z.ZodString; - lastUpdatedAt: z.ZodString; - pollInterval: z.ZodOptional; - statusMessage: z.ZodOptional; - }, z.core.$strip>; -}, z.core.$loose>]>; -export declare class McpError extends Error { - readonly code: number; - readonly data?: unknown; - constructor(code: number, message: string, data?: unknown); - /** - * Factory method to create the appropriate error type based on the error code and data - */ - static fromError(code: number, message: string, data?: unknown): McpError; -} -/** - * Specialized error type when a tool requires a URL mode elicitation. - * This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against. - */ -export declare class UrlElicitationRequiredError extends McpError { - constructor(elicitations: ElicitRequestURLParams[], message?: string); - get elicitations(): ElicitRequestURLParams[]; -} -type Primitive = string | number | boolean | bigint | null | undefined; -type Flatten = T extends Primitive ? T : T extends Array ? Array> : T extends Set ? Set> : T extends Map ? Map, Flatten> : T extends object ? { - [K in keyof T]: Flatten; -} : T; -type Infer = Flatten>; -/** - * Headers that are compatible with both Node.js and the browser. - */ -export type IsomorphicHeaders = Record; -/** - * Information about the incoming request. - */ -export interface RequestInfo { - /** - * The headers of the request. - */ - headers: IsomorphicHeaders; -} -/** - * Extra information about a message. - */ -export interface MessageExtraInfo { - /** - * The request information. - */ - requestInfo?: RequestInfo; - /** - * The authentication information. - */ - authInfo?: AuthInfo; - /** - * Callback to close the SSE stream for this request, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - */ - closeSSEStream?: () => void; - /** - * Callback to close the standalone GET SSE stream, triggering client reconnection. - * Only available when using StreamableHTTPServerTransport with eventStore configured. - */ - closeStandaloneSSEStream?: () => void; -} -export type ProgressToken = Infer; -export type Cursor = Infer; -export type Request = Infer; -export type TaskAugmentedRequestParams = Infer; -export type RequestMeta = Infer; -export type Notification = Infer; -export type Result = Infer; -export type RequestId = Infer; -export type JSONRPCRequest = Infer; -export type JSONRPCNotification = Infer; -export type JSONRPCResponse = Infer; -export type JSONRPCErrorResponse = Infer; -/** - * @deprecated Use {@link JSONRPCErrorResponse} instead. - * - * Please note that spec types have renamed {@link JSONRPCError} to {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCError}) and future versions will remove {@link JSONRPCError}. - */ -export type JSONRPCError = JSONRPCErrorResponse; -export type JSONRPCResultResponse = Infer; -export type JSONRPCMessage = Infer; -export type RequestParams = Infer; -export type NotificationParams = Infer; -export type EmptyResult = Infer; -export type CancelledNotificationParams = Infer; -export type CancelledNotification = Infer; -export type Icon = Infer; -export type Icons = Infer; -export type BaseMetadata = Infer; -export type Annotations = Infer; -export type Role = Infer; -export type Implementation = Infer; -export type ClientCapabilities = Infer; -export type InitializeRequestParams = Infer; -export type InitializeRequest = Infer; -export type ServerCapabilities = Infer; -export type InitializeResult = Infer; -export type InitializedNotification = Infer; -export type PingRequest = Infer; -export type Progress = Infer; -export type ProgressNotificationParams = Infer; -export type ProgressNotification = Infer; -export type Task = Infer; -export type TaskStatus = Infer; -export type TaskCreationParams = Infer; -export type TaskMetadata = Infer; -export type RelatedTaskMetadata = Infer; -export type CreateTaskResult = Infer; -export type TaskStatusNotificationParams = Infer; -export type TaskStatusNotification = Infer; -export type GetTaskRequest = Infer; -export type GetTaskResult = Infer; -export type GetTaskPayloadRequest = Infer; -export type ListTasksRequest = Infer; -export type ListTasksResult = Infer; -export type CancelTaskRequest = Infer; -export type CancelTaskResult = Infer; -export type GetTaskPayloadResult = Infer; -export type PaginatedRequestParams = Infer; -export type PaginatedRequest = Infer; -export type PaginatedResult = Infer; -export type ResourceContents = Infer; -export type TextResourceContents = Infer; -export type BlobResourceContents = Infer; -export type Resource = Infer; -export type ResourceTemplate = Infer; -export type ListResourcesRequest = Infer; -export type ListResourcesResult = Infer; -export type ListResourceTemplatesRequest = Infer; -export type ListResourceTemplatesResult = Infer; -export type ResourceRequestParams = Infer; -export type ReadResourceRequestParams = Infer; -export type ReadResourceRequest = Infer; -export type ReadResourceResult = Infer; -export type ResourceListChangedNotification = Infer; -export type SubscribeRequestParams = Infer; -export type SubscribeRequest = Infer; -export type UnsubscribeRequestParams = Infer; -export type UnsubscribeRequest = Infer; -export type ResourceUpdatedNotificationParams = Infer; -export type ResourceUpdatedNotification = Infer; -export type PromptArgument = Infer; -export type Prompt = Infer; -export type ListPromptsRequest = Infer; -export type ListPromptsResult = Infer; -export type GetPromptRequestParams = Infer; -export type GetPromptRequest = Infer; -export type TextContent = Infer; -export type ImageContent = Infer; -export type AudioContent = Infer; -export type ToolUseContent = Infer; -export type ToolResultContent = Infer; -export type EmbeddedResource = Infer; -export type ResourceLink = Infer; -export type ContentBlock = Infer; -export type PromptMessage = Infer; -export type GetPromptResult = Infer; -export type PromptListChangedNotification = Infer; -export type ToolAnnotations = Infer; -export type ToolExecution = Infer; -export type Tool = Infer; -export type ListToolsRequest = Infer; -export type ListToolsResult = Infer; -export type CallToolRequestParams = Infer; -export type CallToolResult = Infer; -export type CompatibilityCallToolResult = Infer; -export type CallToolRequest = Infer; -export type ToolListChangedNotification = Infer; -export type LoggingLevel = Infer; -export type SetLevelRequestParams = Infer; -export type SetLevelRequest = Infer; -export type LoggingMessageNotificationParams = Infer; -export type LoggingMessageNotification = Infer; -export type ToolChoice = Infer; -export type ModelHint = Infer; -export type ModelPreferences = Infer; -export type SamplingContent = Infer; -export type SamplingMessageContentBlock = Infer; -export type SamplingMessage = Infer; -export type CreateMessageRequestParams = Infer; -export type CreateMessageRequest = Infer; -export type CreateMessageResult = Infer; -export type CreateMessageResultWithTools = Infer; -/** - * CreateMessageRequestParams without tools - for backwards-compatible overload. - * Excludes tools/toolChoice to indicate they should not be provided. - */ -export type CreateMessageRequestParamsBase = Omit; -/** - * CreateMessageRequestParams with required tools - for tool-enabled overload. - */ -export interface CreateMessageRequestParamsWithTools extends CreateMessageRequestParams { - tools: Tool[]; -} -export type BooleanSchema = Infer; -export type StringSchema = Infer; -export type NumberSchema = Infer; -export type EnumSchema = Infer; -export type UntitledSingleSelectEnumSchema = Infer; -export type TitledSingleSelectEnumSchema = Infer; -export type LegacyTitledEnumSchema = Infer; -export type UntitledMultiSelectEnumSchema = Infer; -export type TitledMultiSelectEnumSchema = Infer; -export type SingleSelectEnumSchema = Infer; -export type MultiSelectEnumSchema = Infer; -export type PrimitiveSchemaDefinition = Infer; -export type ElicitRequestParams = Infer; -export type ElicitRequestFormParams = Infer; -export type ElicitRequestURLParams = Infer; -export type ElicitRequest = Infer; -export type ElicitationCompleteNotificationParams = Infer; -export type ElicitationCompleteNotification = Infer; -export type ElicitResult = Infer; -export type ResourceTemplateReference = Infer; -/** - * @deprecated Use ResourceTemplateReference instead - */ -export type ResourceReference = ResourceTemplateReference; -export type PromptReference = Infer; -export type CompleteRequestParams = Infer; -export type CompleteRequest = Infer; -export type CompleteRequestResourceTemplate = ExpandRecursively; -export type CompleteRequestPrompt = ExpandRecursively; -export type CompleteResult = Infer; -export type Root = Infer; -export type ListRootsRequest = Infer; -export type ListRootsResult = Infer; -export type RootsListChangedNotification = Infer; -export type ClientRequest = Infer; -export type ClientNotification = Infer; -export type ClientResult = Infer; -export type ServerRequest = Infer; -export type ServerNotification = Infer; -export type ServerResult = Infer; -export {}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map deleted file mode 100644 index 4745081..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,eAAO,MAAM,uBAAuB,eAAe,CAAC;AACpD,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,2BAA2B,UAAoF,CAAC;AAE7H,eAAO,MAAM,qBAAqB,yCAAyC,CAAC;AAG5E,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAO7H;;GAEG;AACH,eAAO,MAAM,mBAAmB,iDAA0C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,wBAAwB;IACjC;;;OAGG;;IAGH;;OAEG;;iBAEL,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,QAAA,MAAM,iBAAiB;IACnB;;OAEG;;IAEH;;OAEG;;;;iBAEL,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,uBAAuB;;QAbzB;;WAEG;;QAEH;;WAEG;;;;;iBAYL,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gCAAgC;;QAvBzC;;WAEG;;QAEH;;WAEG;;;;;;;;iBA2BL,CAAC;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,GAAG;QAAE,GAAG,EAAE,yBAAyB,CAAA;KAAE,CAAA;CAAE,CAC3F,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,eAAe,GAAG;IAAE,MAAM,EAAE,qBAAqB,GAAG;QAAE,GAAG,EAAE,eAAe,CAAA;KAAE,CAAA;CAAE,CAAC,CAAC;AACtI,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGhE,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAClE,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAG5F,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG5D,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js deleted file mode 100644 index 8edb88e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +++ /dev/null @@ -1,2052 +0,0 @@ -import * as z from 'zod/v4'; -export const LATEST_PROTOCOL_VERSION = '2025-11-25'; -export const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = '2025-03-26'; -export const SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, '2025-06-18', '2025-03-26', '2024-11-05', '2024-10-07']; -export const RELATED_TASK_META_KEY = 'io.modelcontextprotocol/related-task'; -/* JSON-RPC types */ -export const JSONRPC_VERSION = '2.0'; -/** - * Assert 'object' type schema. - * - * @internal - */ -const AssertObjectSchema = z.custom((v) => v !== null && (typeof v === 'object' || typeof v === 'function')); -/** - * A progress token, used to associate progress notifications with the original request. - */ -export const ProgressTokenSchema = z.union([z.string(), z.number().int()]); -/** - * An opaque token used to represent a cursor for pagination. - */ -export const CursorSchema = z.string(); -/** - * Task creation parameters, used to ask that the server create a task to represent a request. - */ -export const TaskCreationParamsSchema = z.looseObject({ - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.union([z.number(), z.null()]).optional(), - /** - * Time in milliseconds to wait between task status requests. - */ - pollInterval: z.number().optional() -}); -export const TaskMetadataSchema = z.object({ - ttl: z.number().optional() -}); -/** - * Metadata for associating messages with a task. - * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. - */ -export const RelatedTaskMetadataSchema = z.object({ - taskId: z.string() -}); -const RequestMetaSchema = z.looseObject({ - /** - * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. - */ - progressToken: ProgressTokenSchema.optional(), - /** - * If specified, this request is related to the provided task. - */ - [RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional() -}); -/** - * Common params for any request. - */ -const BaseRequestParamsSchema = z.object({ - /** - * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. - */ - _meta: RequestMetaSchema.optional() -}); -/** - * Common params for any task-augmented request. - */ -export const TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * If specified, the caller is requesting task-augmented execution for this request. - * The request will return a CreateTaskResult immediately, and the actual result can be - * retrieved later via tasks/result. - * - * Task augmentation is subject to capability negotiation - receivers MUST declare support - * for task augmentation of specific request types in their capabilities. - */ - task: TaskMetadataSchema.optional() -}); -/** - * Checks if a value is a valid TaskAugmentedRequestParams. - * @param value - The value to check. - * - * @returns True if the value is a valid TaskAugmentedRequestParams, false otherwise. - */ -export const isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success; -export const RequestSchema = z.object({ - method: z.string(), - params: BaseRequestParamsSchema.loose().optional() -}); -const NotificationsParamsSchema = z.object({ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: RequestMetaSchema.optional() -}); -export const NotificationSchema = z.object({ - method: z.string(), - params: NotificationsParamsSchema.loose().optional() -}); -export const ResultSchema = z.looseObject({ - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: RequestMetaSchema.optional() -}); -/** - * A uniquely identifying ID for a request in JSON-RPC. - */ -export const RequestIdSchema = z.union([z.string(), z.number().int()]); -/** - * A request that expects a response. - */ -export const JSONRPCRequestSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema, - ...RequestSchema.shape -}) - .strict(); -export const isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success; -/** - * A notification which does not expect a response. - */ -export const JSONRPCNotificationSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - ...NotificationSchema.shape -}) - .strict(); -export const isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success; -/** - * A successful (non-error) response to a request. - */ -export const JSONRPCResultResponseSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema, - result: ResultSchema -}) - .strict(); -/** - * Checks if a value is a valid JSONRPCResultResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCResultResponse, false otherwise. - */ -export const isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success; -/** - * @deprecated Use {@link isJSONRPCResultResponse} instead. - * - * Please note that {@link JSONRPCResponse} is a union of {@link JSONRPCResultResponse} and {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCResultResponse}) - */ -export const isJSONRPCResponse = isJSONRPCResultResponse; -/** - * Error codes defined by the JSON-RPC specification. - */ -export var ErrorCode; -(function (ErrorCode) { - // SDK error codes - ErrorCode[ErrorCode["ConnectionClosed"] = -32000] = "ConnectionClosed"; - ErrorCode[ErrorCode["RequestTimeout"] = -32001] = "RequestTimeout"; - // Standard JSON-RPC error codes - ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError"; - ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest"; - ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound"; - ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams"; - ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError"; - // MCP-specific error codes - ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired"; -})(ErrorCode || (ErrorCode = {})); -/** - * A response to a request that indicates an error occurred. - */ -export const JSONRPCErrorResponseSchema = z - .object({ - jsonrpc: z.literal(JSONRPC_VERSION), - id: RequestIdSchema.optional(), - error: z.object({ - /** - * The error type that occurred. - */ - code: z.number().int(), - /** - * A short description of the error. The message SHOULD be limited to a concise single sentence. - */ - message: z.string(), - /** - * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). - */ - data: z.unknown().optional() - }) -}) - .strict(); -/** - * @deprecated Use {@link JSONRPCErrorResponseSchema} instead. - */ -export const JSONRPCErrorSchema = JSONRPCErrorResponseSchema; -/** - * Checks if a value is a valid JSONRPCErrorResponse. - * @param value - The value to check. - * - * @returns True if the value is a valid JSONRPCErrorResponse, false otherwise. - */ -export const isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success; -/** - * @deprecated Use {@link isJSONRPCErrorResponse} instead. - */ -export const isJSONRPCError = isJSONRPCErrorResponse; -export const JSONRPCMessageSchema = z.union([ - JSONRPCRequestSchema, - JSONRPCNotificationSchema, - JSONRPCResultResponseSchema, - JSONRPCErrorResponseSchema -]); -export const JSONRPCResponseSchema = z.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]); -/* Empty result */ -/** - * A response that indicates success but carries no data. - */ -export const EmptyResultSchema = ResultSchema.strict(); -export const CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The ID of the request to cancel. - * - * This MUST correspond to the ID of a request previously issued in the same direction. - */ - requestId: RequestIdSchema.optional(), - /** - * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user. - */ - reason: z.string().optional() -}); -/* Cancellation */ -/** - * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. - * - * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. - * - * This notification indicates that the result will be unused, so any associated processing SHOULD cease. - * - * A client MUST NOT attempt to cancel its `initialize` request. - */ -export const CancelledNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/cancelled'), - params: CancelledNotificationParamsSchema -}); -/* Base Metadata */ -/** - * Icon schema for use in tools, prompts, resources, and implementations. - */ -export const IconSchema = z.object({ - /** - * URL or data URI for the icon. - */ - src: z.string(), - /** - * Optional MIME type for the icon. - */ - mimeType: z.string().optional(), - /** - * Optional array of strings that specify sizes at which the icon can be used. - * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. - * - * If not provided, the client should assume that the icon can be used at any size. - */ - sizes: z.array(z.string()).optional(), - /** - * Optional specifier for the theme this icon is designed for. `light` indicates - * the icon is designed to be used with a light background, and `dark` indicates - * the icon is designed to be used with a dark background. - * - * If not provided, the client should assume the icon can be used with any theme. - */ - theme: z.enum(['light', 'dark']).optional() -}); -/** - * Base schema to add `icons` property. - * - */ -export const IconsSchema = z.object({ - /** - * Optional set of sized icons that the client can display in a user interface. - * - * Clients that support rendering icons MUST support at least the following MIME types: - * - `image/png` - PNG images (safe, universal compatibility) - * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility) - * - * Clients that support rendering icons SHOULD also support: - * - `image/svg+xml` - SVG images (scalable but requires security precautions) - * - `image/webp` - WebP images (modern, efficient format) - */ - icons: z.array(IconSchema).optional() -}); -/** - * Base metadata interface for common properties across resources, tools, prompts, and implementations. - */ -export const BaseMetadataSchema = z.object({ - /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */ - name: z.string(), - /** - * Intended for UI and end-user contexts — optimized to be human-readable and easily understood, - * even by those unfamiliar with domain-specific terminology. - * - * If not provided, the name should be used for display (except for Tool, - * where `annotations.title` should be given precedence over using `name`, - * if present). - */ - title: z.string().optional() -}); -/* Initialization */ -/** - * Describes the name and version of an MCP implementation. - */ -export const ImplementationSchema = BaseMetadataSchema.extend({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - version: z.string(), - /** - * An optional URL of the website for this implementation. - */ - websiteUrl: z.string().optional(), - /** - * An optional human-readable description of what this implementation does. - * - * This can be used by clients or servers to provide context about their purpose - * and capabilities. For example, a server might describe the types of resources - * or tools it provides, while a client might describe its intended use case. - */ - description: z.string().optional() -}); -const FormElicitationCapabilitySchema = z.intersection(z.object({ - applyDefaults: z.boolean().optional() -}), z.record(z.string(), z.unknown())); -const ElicitationCapabilitySchema = z.preprocess(value => { - if (value && typeof value === 'object' && !Array.isArray(value)) { - if (Object.keys(value).length === 0) { - return { form: {} }; - } - } - return value; -}, z.intersection(z.object({ - form: FormElicitationCapabilitySchema.optional(), - url: AssertObjectSchema.optional() -}), z.record(z.string(), z.unknown()).optional())); -/** - * Task capabilities for clients, indicating which request types support task creation. - */ -export const ClientTasksCapabilitySchema = z.looseObject({ - /** - * Present if the client supports listing tasks. - */ - list: AssertObjectSchema.optional(), - /** - * Present if the client supports cancelling tasks. - */ - cancel: AssertObjectSchema.optional(), - /** - * Capabilities for task creation on specific request types. - */ - requests: z - .looseObject({ - /** - * Task support for sampling requests. - */ - sampling: z - .looseObject({ - createMessage: AssertObjectSchema.optional() - }) - .optional(), - /** - * Task support for elicitation requests. - */ - elicitation: z - .looseObject({ - create: AssertObjectSchema.optional() - }) - .optional() - }) - .optional() -}); -/** - * Task capabilities for servers, indicating which request types support task creation. - */ -export const ServerTasksCapabilitySchema = z.looseObject({ - /** - * Present if the server supports listing tasks. - */ - list: AssertObjectSchema.optional(), - /** - * Present if the server supports cancelling tasks. - */ - cancel: AssertObjectSchema.optional(), - /** - * Capabilities for task creation on specific request types. - */ - requests: z - .looseObject({ - /** - * Task support for tool requests. - */ - tools: z - .looseObject({ - call: AssertObjectSchema.optional() - }) - .optional() - }) - .optional() -}); -/** - * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. - */ -export const ClientCapabilitiesSchema = z.object({ - /** - * Experimental, non-standard capabilities that the client supports. - */ - experimental: z.record(z.string(), AssertObjectSchema).optional(), - /** - * Present if the client supports sampling from an LLM. - */ - sampling: z - .object({ - /** - * Present if the client supports context inclusion via includeContext parameter. - * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it). - */ - context: AssertObjectSchema.optional(), - /** - * Present if the client supports tool use via tools and toolChoice parameters. - */ - tools: AssertObjectSchema.optional() - }) - .optional(), - /** - * Present if the client supports eliciting user input. - */ - elicitation: ElicitationCapabilitySchema.optional(), - /** - * Present if the client supports listing roots. - */ - roots: z - .object({ - /** - * Whether the client supports issuing notifications for changes to the roots list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the client supports task creation. - */ - tasks: ClientTasksCapabilitySchema.optional() -}); -export const InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. - */ - protocolVersion: z.string(), - capabilities: ClientCapabilitiesSchema, - clientInfo: ImplementationSchema -}); -/** - * This request is sent from the client to the server when it first connects, asking it to begin initialization. - */ -export const InitializeRequestSchema = RequestSchema.extend({ - method: z.literal('initialize'), - params: InitializeRequestParamsSchema -}); -export const isInitializeRequest = (value) => InitializeRequestSchema.safeParse(value).success; -/** - * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. - */ -export const ServerCapabilitiesSchema = z.object({ - /** - * Experimental, non-standard capabilities that the server supports. - */ - experimental: z.record(z.string(), AssertObjectSchema).optional(), - /** - * Present if the server supports sending log messages to the client. - */ - logging: AssertObjectSchema.optional(), - /** - * Present if the server supports sending completions to the client. - */ - completions: AssertObjectSchema.optional(), - /** - * Present if the server offers any prompt templates. - */ - prompts: z - .object({ - /** - * Whether this server supports issuing notifications for changes to the prompt list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server offers any resources to read. - */ - resources: z - .object({ - /** - * Whether this server supports clients subscribing to resource updates. - */ - subscribe: z.boolean().optional(), - /** - * Whether this server supports issuing notifications for changes to the resource list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server offers any tools to call. - */ - tools: z - .object({ - /** - * Whether this server supports issuing notifications for changes to the tool list. - */ - listChanged: z.boolean().optional() - }) - .optional(), - /** - * Present if the server supports task creation. - */ - tasks: ServerTasksCapabilitySchema.optional() -}); -/** - * After receiving an initialize request from the client, the server sends this response. - */ -export const InitializeResultSchema = ResultSchema.extend({ - /** - * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. - */ - protocolVersion: z.string(), - capabilities: ServerCapabilitiesSchema, - serverInfo: ImplementationSchema, - /** - * Instructions describing how to use the server and its features. - * - * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. - */ - instructions: z.string().optional() -}); -/** - * This notification is sent from the client to the server after initialization has finished. - */ -export const InitializedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/initialized'), - params: NotificationsParamsSchema.optional() -}); -export const isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success; -/* Ping */ -/** - * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. - */ -export const PingRequestSchema = RequestSchema.extend({ - method: z.literal('ping'), - params: BaseRequestParamsSchema.optional() -}); -/* Progress notifications */ -export const ProgressSchema = z.object({ - /** - * The progress thus far. This should increase every time progress is made, even if the total is unknown. - */ - progress: z.number(), - /** - * Total number of items to process (or total progress required), if known. - */ - total: z.optional(z.number()), - /** - * An optional message describing the current progress. - */ - message: z.optional(z.string()) -}); -export const ProgressNotificationParamsSchema = z.object({ - ...NotificationsParamsSchema.shape, - ...ProgressSchema.shape, - /** - * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. - */ - progressToken: ProgressTokenSchema -}); -/** - * An out-of-band notification used to inform the receiver of a progress update for a long-running request. - * - * @category notifications/progress - */ -export const ProgressNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/progress'), - params: ProgressNotificationParamsSchema -}); -export const PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * An opaque token representing the current pagination position. - * If provided, the server should return results starting after this cursor. - */ - cursor: CursorSchema.optional() -}); -/* Pagination */ -export const PaginatedRequestSchema = RequestSchema.extend({ - params: PaginatedRequestParamsSchema.optional() -}); -export const PaginatedResultSchema = ResultSchema.extend({ - /** - * An opaque token representing the pagination position after the last returned result. - * If present, there may be more results available. - */ - nextCursor: CursorSchema.optional() -}); -/** - * The status of a task. - * */ -export const TaskStatusSchema = z.enum(['working', 'input_required', 'completed', 'failed', 'cancelled']); -/* Tasks */ -/** - * A pollable state object associated with a request. - */ -export const TaskSchema = z.object({ - taskId: z.string(), - status: TaskStatusSchema, - /** - * Time in milliseconds to keep task results available after completion. - * If null, the task has unlimited lifetime until manually cleaned up. - */ - ttl: z.union([z.number(), z.null()]), - /** - * ISO 8601 timestamp when the task was created. - */ - createdAt: z.string(), - /** - * ISO 8601 timestamp when the task was last updated. - */ - lastUpdatedAt: z.string(), - pollInterval: z.optional(z.number()), - /** - * Optional diagnostic message for failed tasks or other status information. - */ - statusMessage: z.optional(z.string()) -}); -/** - * Result returned when a task is created, containing the task data wrapped in a task field. - */ -export const CreateTaskResultSchema = ResultSchema.extend({ - task: TaskSchema -}); -/** - * Parameters for task status notification. - */ -export const TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema); -/** - * A notification sent when a task's status changes. - */ -export const TaskStatusNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/tasks/status'), - params: TaskStatusNotificationParamsSchema -}); -/** - * A request to get the state of a specific task. - */ -export const GetTaskRequestSchema = RequestSchema.extend({ - method: z.literal('tasks/get'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/get request. - */ -export const GetTaskResultSchema = ResultSchema.merge(TaskSchema); -/** - * A request to get the result of a specific task. - */ -export const GetTaskPayloadRequestSchema = RequestSchema.extend({ - method: z.literal('tasks/result'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/result request. - * The structure matches the result type of the original request. - * For example, a tools/call task would return the CallToolResult structure. - * - */ -export const GetTaskPayloadResultSchema = ResultSchema.loose(); -/** - * A request to list tasks. - */ -export const ListTasksRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal('tasks/list') -}); -/** - * The response to a tasks/list request. - */ -export const ListTasksResultSchema = PaginatedResultSchema.extend({ - tasks: z.array(TaskSchema) -}); -/** - * A request to cancel a specific task. - */ -export const CancelTaskRequestSchema = RequestSchema.extend({ - method: z.literal('tasks/cancel'), - params: BaseRequestParamsSchema.extend({ - taskId: z.string() - }) -}); -/** - * The response to a tasks/cancel request. - */ -export const CancelTaskResultSchema = ResultSchema.merge(TaskSchema); -/* Resources */ -/** - * The contents of a specific resource or sub-resource. - */ -export const ResourceContentsSchema = z.object({ - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -export const TextResourceContentsSchema = ResourceContentsSchema.extend({ - /** - * The text of the item. This must only be set if the item can actually be represented as text (not binary data). - */ - text: z.string() -}); -/** - * A Zod schema for validating Base64 strings that is more performant and - * robust for very large inputs than the default regex-based check. It avoids - * stack overflows by using the native `atob` function for validation. - */ -const Base64Schema = z.string().refine(val => { - try { - // atob throws a DOMException if the string contains characters - // that are not part of the Base64 character set. - atob(val); - return true; - } - catch { - return false; - } -}, { message: 'Invalid Base64 string' }); -export const BlobResourceContentsSchema = ResourceContentsSchema.extend({ - /** - * A base64-encoded string representing the binary data of the item. - */ - blob: Base64Schema -}); -/** - * The sender or recipient of messages and data in a conversation. - */ -export const RoleSchema = z.enum(['user', 'assistant']); -/** - * Optional annotations providing clients additional context about a resource. - */ -export const AnnotationsSchema = z.object({ - /** - * Intended audience(s) for the resource. - */ - audience: z.array(RoleSchema).optional(), - /** - * Importance hint for the resource, from 0 (least) to 1 (most). - */ - priority: z.number().min(0).max(1).optional(), - /** - * ISO 8601 timestamp for the most recent modification. - */ - lastModified: z.iso.datetime({ offset: true }).optional() -}); -/** - * A known resource that the server is capable of reading. - */ -export const ResourceSchema = z.object({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - /** - * The URI of this resource. - */ - uri: z.string(), - /** - * A description of what this resource represents. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type of this resource, if known. - */ - mimeType: z.optional(z.string()), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * A template description for resources available on the server. - */ -export const ResourceTemplateSchema = z.object({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - /** - * A URI template (according to RFC 6570) that can be used to construct resource URIs. - */ - uriTemplate: z.string(), - /** - * A description of what this template is for. - * - * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. - */ - description: z.optional(z.string()), - /** - * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. - */ - mimeType: z.optional(z.string()), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * Sent from the client to request a list of resources the server has. - */ -export const ListResourcesRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal('resources/list') -}); -/** - * The server's response to a resources/list request from the client. - */ -export const ListResourcesResultSchema = PaginatedResultSchema.extend({ - resources: z.array(ResourceSchema) -}); -/** - * Sent from the client to request a list of resource templates the server has. - */ -export const ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal('resources/templates/list') -}); -/** - * The server's response to a resources/templates/list request from the client. - */ -export const ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ - resourceTemplates: z.array(ResourceTemplateSchema) -}); -export const ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it. - * - * @format uri - */ - uri: z.string() -}); -/** - * Parameters for a `resources/read` request. - */ -export const ReadResourceRequestParamsSchema = ResourceRequestParamsSchema; -/** - * Sent from the client to the server, to read a specific resource URI. - */ -export const ReadResourceRequestSchema = RequestSchema.extend({ - method: z.literal('resources/read'), - params: ReadResourceRequestParamsSchema -}); -/** - * The server's response to a resources/read request from the client. - */ -export const ReadResourceResultSchema = ResultSchema.extend({ - contents: z.array(z.union([TextResourceContentsSchema, BlobResourceContentsSchema])) -}); -/** - * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. - */ -export const ResourceListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/resources/list_changed'), - params: NotificationsParamsSchema.optional() -}); -export const SubscribeRequestParamsSchema = ResourceRequestParamsSchema; -/** - * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. - */ -export const SubscribeRequestSchema = RequestSchema.extend({ - method: z.literal('resources/subscribe'), - params: SubscribeRequestParamsSchema -}); -export const UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema; -/** - * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. - */ -export const UnsubscribeRequestSchema = RequestSchema.extend({ - method: z.literal('resources/unsubscribe'), - params: UnsubscribeRequestParamsSchema -}); -/** - * Parameters for a `notifications/resources/updated` notification. - */ -export const ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to. - */ - uri: z.string() -}); -/** - * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. - */ -export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/resources/updated'), - params: ResourceUpdatedNotificationParamsSchema -}); -/* Prompts */ -/** - * Describes an argument that a prompt can accept. - */ -export const PromptArgumentSchema = z.object({ - /** - * The name of the argument. - */ - name: z.string(), - /** - * A human-readable description of the argument. - */ - description: z.optional(z.string()), - /** - * Whether this argument must be provided. - */ - required: z.optional(z.boolean()) -}); -/** - * A prompt or prompt template that the server offers. - */ -export const PromptSchema = z.object({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - /** - * An optional description of what this prompt provides - */ - description: z.optional(z.string()), - /** - * A list of arguments to use for templating the prompt. - */ - arguments: z.optional(z.array(PromptArgumentSchema)), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.optional(z.looseObject({})) -}); -/** - * Sent from the client to request a list of prompts and prompt templates the server has. - */ -export const ListPromptsRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal('prompts/list') -}); -/** - * The server's response to a prompts/list request from the client. - */ -export const ListPromptsResultSchema = PaginatedResultSchema.extend({ - prompts: z.array(PromptSchema) -}); -/** - * Parameters for a `prompts/get` request. - */ -export const GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The name of the prompt or prompt template. - */ - name: z.string(), - /** - * Arguments to use for templating the prompt. - */ - arguments: z.record(z.string(), z.string()).optional() -}); -/** - * Used by the client to get a prompt provided by the server. - */ -export const GetPromptRequestSchema = RequestSchema.extend({ - method: z.literal('prompts/get'), - params: GetPromptRequestParamsSchema -}); -/** - * Text provided to or from an LLM. - */ -export const TextContentSchema = z.object({ - type: z.literal('text'), - /** - * The text content of the message. - */ - text: z.string(), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * An image provided to or from an LLM. - */ -export const ImageContentSchema = z.object({ - type: z.literal('image'), - /** - * The base64-encoded image data. - */ - data: Base64Schema, - /** - * The MIME type of the image. Different providers may support different image types. - */ - mimeType: z.string(), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * An Audio provided to or from an LLM. - */ -export const AudioContentSchema = z.object({ - type: z.literal('audio'), - /** - * The base64-encoded audio data. - */ - data: Base64Schema, - /** - * The MIME type of the audio. Different providers may support different audio types. - */ - mimeType: z.string(), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * A tool call request from an assistant (LLM). - * Represents the assistant's request to use a tool. - */ -export const ToolUseContentSchema = z.object({ - type: z.literal('tool_use'), - /** - * The name of the tool to invoke. - * Must match a tool name from the request's tools array. - */ - name: z.string(), - /** - * Unique identifier for this tool call. - * Used to correlate with ToolResultContent in subsequent messages. - */ - id: z.string(), - /** - * Arguments to pass to the tool. - * Must conform to the tool's inputSchema. - */ - input: z.record(z.string(), z.unknown()), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * The contents of a resource, embedded into a prompt or tool call result. - */ -export const EmbeddedResourceSchema = z.object({ - type: z.literal('resource'), - resource: z.union([TextResourceContentsSchema, BlobResourceContentsSchema]), - /** - * Optional annotations for the client. - */ - annotations: AnnotationsSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * A resource that the server is capable of reading, included in a prompt or tool call result. - * - * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. - */ -export const ResourceLinkSchema = ResourceSchema.extend({ - type: z.literal('resource_link') -}); -/** - * A content block that can be used in prompts and tool results. - */ -export const ContentBlockSchema = z.union([ - TextContentSchema, - ImageContentSchema, - AudioContentSchema, - ResourceLinkSchema, - EmbeddedResourceSchema -]); -/** - * Describes a message returned as part of a prompt. - */ -export const PromptMessageSchema = z.object({ - role: RoleSchema, - content: ContentBlockSchema -}); -/** - * The server's response to a prompts/get request from the client. - */ -export const GetPromptResultSchema = ResultSchema.extend({ - /** - * An optional description for the prompt. - */ - description: z.string().optional(), - messages: z.array(PromptMessageSchema) -}); -/** - * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export const PromptListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/prompts/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/* Tools */ -/** - * Additional properties describing a Tool to clients. - * - * NOTE: all properties in ToolAnnotations are **hints**. - * They are not guaranteed to provide a faithful description of - * tool behavior (including descriptive properties like `title`). - * - * Clients should never make tool use decisions based on ToolAnnotations - * received from untrusted servers. - */ -export const ToolAnnotationsSchema = z.object({ - /** - * A human-readable title for the tool. - */ - title: z.string().optional(), - /** - * If true, the tool does not modify its environment. - * - * Default: false - */ - readOnlyHint: z.boolean().optional(), - /** - * If true, the tool may perform destructive updates to its environment. - * If false, the tool performs only additive updates. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: true - */ - destructiveHint: z.boolean().optional(), - /** - * If true, calling the tool repeatedly with the same arguments - * will have no additional effect on the its environment. - * - * (This property is meaningful only when `readOnlyHint == false`) - * - * Default: false - */ - idempotentHint: z.boolean().optional(), - /** - * If true, this tool may interact with an "open world" of external - * entities. If false, the tool's domain of interaction is closed. - * For example, the world of a web search tool is open, whereas that - * of a memory tool is not. - * - * Default: true - */ - openWorldHint: z.boolean().optional() -}); -/** - * Execution-related properties for a tool. - */ -export const ToolExecutionSchema = z.object({ - /** - * Indicates the tool's preference for task-augmented execution. - * - "required": Clients MUST invoke the tool as a task - * - "optional": Clients MAY invoke the tool as a task or normal request - * - "forbidden": Clients MUST NOT attempt to invoke the tool as a task - * - * If not present, defaults to "forbidden". - */ - taskSupport: z.enum(['required', 'optional', 'forbidden']).optional() -}); -/** - * Definition for a tool the client can call. - */ -export const ToolSchema = z.object({ - ...BaseMetadataSchema.shape, - ...IconsSchema.shape, - /** - * A human-readable description of the tool. - */ - description: z.string().optional(), - /** - * A JSON Schema 2020-12 object defining the expected parameters for the tool. - * Must have type: 'object' at the root level per MCP spec. - */ - inputSchema: z - .object({ - type: z.literal('object'), - properties: z.record(z.string(), AssertObjectSchema).optional(), - required: z.array(z.string()).optional() - }) - .catchall(z.unknown()), - /** - * An optional JSON Schema 2020-12 object defining the structure of the tool's output - * returned in the structuredContent field of a CallToolResult. - * Must have type: 'object' at the root level per MCP spec. - */ - outputSchema: z - .object({ - type: z.literal('object'), - properties: z.record(z.string(), AssertObjectSchema).optional(), - required: z.array(z.string()).optional() - }) - .catchall(z.unknown()) - .optional(), - /** - * Optional additional tool information. - */ - annotations: ToolAnnotationsSchema.optional(), - /** - * Execution-related properties for this tool. - */ - execution: ToolExecutionSchema.optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Sent from the client to request a list of tools the server has. - */ -export const ListToolsRequestSchema = PaginatedRequestSchema.extend({ - method: z.literal('tools/list') -}); -/** - * The server's response to a tools/list request from the client. - */ -export const ListToolsResultSchema = PaginatedResultSchema.extend({ - tools: z.array(ToolSchema) -}); -/** - * The server's response to a tool call. - */ -export const CallToolResultSchema = ResultSchema.extend({ - /** - * A list of content objects that represent the result of the tool call. - * - * If the Tool does not define an outputSchema, this field MUST be present in the result. - * For backwards compatibility, this field is always present, but it may be empty. - */ - content: z.array(ContentBlockSchema).default([]), - /** - * An object containing structured tool output. - * - * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. - */ - structuredContent: z.record(z.string(), z.unknown()).optional(), - /** - * Whether the tool call ended in an error. - * - * If not set, this is assumed to be false (the call was successful). - * - * Any errors that originate from the tool SHOULD be reported inside the result - * object, with `isError` set to true, _not_ as an MCP protocol-level error - * response. Otherwise, the LLM would not be able to see that an error occurred - * and self-correct. - * - * However, any errors in _finding_ the tool, an error indicating that the - * server does not support tool calls, or any other exceptional conditions, - * should be reported as an MCP error response. - */ - isError: z.boolean().optional() -}); -/** - * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07. - */ -export const CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({ - toolResult: z.unknown() -})); -/** - * Parameters for a `tools/call` request. - */ -export const CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - /** - * The name of the tool to call. - */ - name: z.string(), - /** - * Arguments to pass to the tool. - */ - arguments: z.record(z.string(), z.unknown()).optional() -}); -/** - * Used by the client to invoke a tool provided by the server. - */ -export const CallToolRequestSchema = RequestSchema.extend({ - method: z.literal('tools/call'), - params: CallToolRequestParamsSchema -}); -/** - * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. - */ -export const ToolListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/tools/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/** - * Base schema for list changed subscription options (without callback). - * Used internally for Zod validation of autoRefresh and debounceMs. - */ -export const ListChangedOptionsBaseSchema = z.object({ - /** - * If true, the list will be refreshed automatically when a list changed notification is received. - * The callback will be called with the updated list. - * - * If false, the callback will be called with null items, allowing manual refresh. - * - * @default true - */ - autoRefresh: z.boolean().default(true), - /** - * Debounce time in milliseconds for list changed notification processing. - * - * Multiple notifications received within this timeframe will only trigger one refresh. - * Set to 0 to disable debouncing. - * - * @default 300 - */ - debounceMs: z.number().int().nonnegative().default(300) -}); -/* Logging */ -/** - * The severity of a log message. - */ -export const LoggingLevelSchema = z.enum(['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency']); -/** - * Parameters for a `logging/setLevel` request. - */ -export const SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({ - /** - * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message. - */ - level: LoggingLevelSchema -}); -/** - * A request from the client to the server, to enable or adjust logging. - */ -export const SetLevelRequestSchema = RequestSchema.extend({ - method: z.literal('logging/setLevel'), - params: SetLevelRequestParamsSchema -}); -/** - * Parameters for a `notifications/message` notification. - */ -export const LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The severity of this log message. - */ - level: LoggingLevelSchema, - /** - * An optional name of the logger issuing this message. - */ - logger: z.string().optional(), - /** - * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here. - */ - data: z.unknown() -}); -/** - * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. - */ -export const LoggingMessageNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/message'), - params: LoggingMessageNotificationParamsSchema -}); -/* Sampling */ -/** - * Hints to use for model selection. - */ -export const ModelHintSchema = z.object({ - /** - * A hint for a model name. - */ - name: z.string().optional() -}); -/** - * The server's preferences for model selection, requested of the client during sampling. - */ -export const ModelPreferencesSchema = z.object({ - /** - * Optional hints to use for model selection. - */ - hints: z.array(ModelHintSchema).optional(), - /** - * How much to prioritize cost when selecting a model. - */ - costPriority: z.number().min(0).max(1).optional(), - /** - * How much to prioritize sampling speed (latency) when selecting a model. - */ - speedPriority: z.number().min(0).max(1).optional(), - /** - * How much to prioritize intelligence and capabilities when selecting a model. - */ - intelligencePriority: z.number().min(0).max(1).optional() -}); -/** - * Controls tool usage behavior in sampling requests. - */ -export const ToolChoiceSchema = z.object({ - /** - * Controls when tools are used: - * - "auto": Model decides whether to use tools (default) - * - "required": Model MUST use at least one tool before completing - * - "none": Model MUST NOT use any tools - */ - mode: z.enum(['auto', 'required', 'none']).optional() -}); -/** - * The result of a tool execution, provided by the user (server). - * Represents the outcome of invoking a tool requested via ToolUseContent. - */ -export const ToolResultContentSchema = z.object({ - type: z.literal('tool_result'), - toolUseId: z.string().describe('The unique identifier for the corresponding tool call.'), - content: z.array(ContentBlockSchema).default([]), - structuredContent: z.object({}).loose().optional(), - isError: z.boolean().optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Basic content types for sampling responses (without tool use). - * Used for backwards-compatible CreateMessageResult when tools are not used. - */ -export const SamplingContentSchema = z.discriminatedUnion('type', [TextContentSchema, ImageContentSchema, AudioContentSchema]); -/** - * Content block types allowed in sampling messages. - * This includes text, image, audio, tool use requests, and tool results. - */ -export const SamplingMessageContentBlockSchema = z.discriminatedUnion('type', [ - TextContentSchema, - ImageContentSchema, - AudioContentSchema, - ToolUseContentSchema, - ToolResultContentSchema -]); -/** - * Describes a message issued to or received from an LLM API. - */ -export const SamplingMessageSchema = z.object({ - role: RoleSchema, - content: z.union([SamplingMessageContentBlockSchema, z.array(SamplingMessageContentBlockSchema)]), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Parameters for a `sampling/createMessage` request. - */ -export const CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - messages: z.array(SamplingMessageSchema), - /** - * The server's preferences for which model to select. The client MAY modify or omit this request. - */ - modelPreferences: ModelPreferencesSchema.optional(), - /** - * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. - */ - systemPrompt: z.string().optional(), - /** - * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. - * The client MAY ignore this request. - * - * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client - * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases. - */ - includeContext: z.enum(['none', 'thisServer', 'allServers']).optional(), - temperature: z.number().optional(), - /** - * The requested maximum number of tokens to sample (to prevent runaway completions). - * - * The client MAY choose to sample fewer tokens than the requested maximum. - */ - maxTokens: z.number().int(), - stopSequences: z.array(z.string()).optional(), - /** - * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. - */ - metadata: AssertObjectSchema.optional(), - /** - * Tools that the model may use during generation. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - */ - tools: z.array(ToolSchema).optional(), - /** - * Controls how the model uses tools. - * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared. - * Default is `{ mode: "auto" }`. - */ - toolChoice: ToolChoiceSchema.optional() -}); -/** - * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. - */ -export const CreateMessageRequestSchema = RequestSchema.extend({ - method: z.literal('sampling/createMessage'), - params: CreateMessageRequestParamsSchema -}); -/** - * The client's response to a sampling/create_message request from the server. - * This is the backwards-compatible version that returns single content (no arrays). - * Used when the request does not include tools. - */ -export const CreateMessageResultSchema = ResultSchema.extend({ - /** - * The name of the model that generated the message. - */ - model: z.string(), - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens']).or(z.string())), - role: RoleSchema, - /** - * Response content. Single content block (text, image, or audio). - */ - content: SamplingContentSchema -}); -/** - * The client's response to a sampling/create_message request when tools were provided. - * This version supports array content for tool use flows. - */ -export const CreateMessageResultWithToolsSchema = ResultSchema.extend({ - /** - * The name of the model that generated the message. - */ - model: z.string(), - /** - * The reason why sampling stopped, if known. - * - * Standard values: - * - "endTurn": Natural end of the assistant's turn - * - "stopSequence": A stop sequence was encountered - * - "maxTokens": Maximum token limit was reached - * - "toolUse": The model wants to use one or more tools - * - * This field is an open string to allow for provider-specific stop reasons. - */ - stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens', 'toolUse']).or(z.string())), - role: RoleSchema, - /** - * Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse". - */ - content: z.union([SamplingMessageContentBlockSchema, z.array(SamplingMessageContentBlockSchema)]) -}); -/* Elicitation */ -/** - * Primitive schema definition for boolean fields. - */ -export const BooleanSchemaSchema = z.object({ - type: z.literal('boolean'), - title: z.string().optional(), - description: z.string().optional(), - default: z.boolean().optional() -}); -/** - * Primitive schema definition for string fields. - */ -export const StringSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - minLength: z.number().optional(), - maxLength: z.number().optional(), - format: z.enum(['email', 'uri', 'date', 'date-time']).optional(), - default: z.string().optional() -}); -/** - * Primitive schema definition for number fields. - */ -export const NumberSchemaSchema = z.object({ - type: z.enum(['number', 'integer']), - title: z.string().optional(), - description: z.string().optional(), - minimum: z.number().optional(), - maximum: z.number().optional(), - default: z.number().optional() -}); -/** - * Schema for single-selection enumeration without display titles for options. - */ -export const UntitledSingleSelectEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - enum: z.array(z.string()), - default: z.string().optional() -}); -/** - * Schema for single-selection enumeration with display titles for each option. - */ -export const TitledSingleSelectEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - oneOf: z.array(z.object({ - const: z.string(), - title: z.string() - })), - default: z.string().optional() -}); -/** - * Use TitledSingleSelectEnumSchema instead. - * This interface will be removed in a future version. - */ -export const LegacyTitledEnumSchemaSchema = z.object({ - type: z.literal('string'), - title: z.string().optional(), - description: z.string().optional(), - enum: z.array(z.string()), - enumNames: z.array(z.string()).optional(), - default: z.string().optional() -}); -// Combined single selection enumeration -export const SingleSelectEnumSchemaSchema = z.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]); -/** - * Schema for multiple-selection enumeration without display titles for options. - */ -export const UntitledMultiSelectEnumSchemaSchema = z.object({ - type: z.literal('array'), - title: z.string().optional(), - description: z.string().optional(), - minItems: z.number().optional(), - maxItems: z.number().optional(), - items: z.object({ - type: z.literal('string'), - enum: z.array(z.string()) - }), - default: z.array(z.string()).optional() -}); -/** - * Schema for multiple-selection enumeration with display titles for each option. - */ -export const TitledMultiSelectEnumSchemaSchema = z.object({ - type: z.literal('array'), - title: z.string().optional(), - description: z.string().optional(), - minItems: z.number().optional(), - maxItems: z.number().optional(), - items: z.object({ - anyOf: z.array(z.object({ - const: z.string(), - title: z.string() - })) - }), - default: z.array(z.string()).optional() -}); -/** - * Combined schema for multiple-selection enumeration - */ -export const MultiSelectEnumSchemaSchema = z.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]); -/** - * Primitive schema definition for enum fields. - */ -export const EnumSchemaSchema = z.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]); -/** - * Union of all primitive schema definitions. - */ -export const PrimitiveSchemaDefinitionSchema = z.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]); -/** - * Parameters for an `elicitation/create` request for form-based elicitation. - */ -export const ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - /** - * The elicitation mode. - * - * Optional for backward compatibility. Clients MUST treat missing mode as "form". - */ - mode: z.literal('form').optional(), - /** - * The message to present to the user describing what information is being requested. - */ - message: z.string(), - /** - * A restricted subset of JSON Schema. - * Only top-level properties are allowed, without nesting. - */ - requestedSchema: z.object({ - type: z.literal('object'), - properties: z.record(z.string(), PrimitiveSchemaDefinitionSchema), - required: z.array(z.string()).optional() - }) -}); -/** - * Parameters for an `elicitation/create` request for URL-based elicitation. - */ -export const ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({ - /** - * The elicitation mode. - */ - mode: z.literal('url'), - /** - * The message to present to the user explaining why the interaction is needed. - */ - message: z.string(), - /** - * The ID of the elicitation, which must be unique within the context of the server. - * The client MUST treat this ID as an opaque value. - */ - elicitationId: z.string(), - /** - * The URL that the user should navigate to. - */ - url: z.string().url() -}); -/** - * The parameters for a request to elicit additional information from the user via the client. - */ -export const ElicitRequestParamsSchema = z.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]); -/** - * A request from the server to elicit user input via the client. - * The client should present the message and form fields to the user (form mode) - * or navigate to a URL (URL mode). - */ -export const ElicitRequestSchema = RequestSchema.extend({ - method: z.literal('elicitation/create'), - params: ElicitRequestParamsSchema -}); -/** - * Parameters for a `notifications/elicitation/complete` notification. - * - * @category notifications/elicitation/complete - */ -export const ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({ - /** - * The ID of the elicitation that completed. - */ - elicitationId: z.string() -}); -/** - * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. - * - * @category notifications/elicitation/complete - */ -export const ElicitationCompleteNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/elicitation/complete'), - params: ElicitationCompleteNotificationParamsSchema -}); -/** - * The client's response to an elicitation/create request from the server. - */ -export const ElicitResultSchema = ResultSchema.extend({ - /** - * The user action in response to the elicitation. - * - "accept": User submitted the form/confirmed the action - * - "decline": User explicitly decline the action - * - "cancel": User dismissed without making an explicit choice - */ - action: z.enum(['accept', 'decline', 'cancel']), - /** - * The submitted form data, only present when action is "accept". - * Contains values matching the requested schema. - * Per MCP spec, content is "typically omitted" for decline/cancel actions. - * We normalize null to undefined for leniency while maintaining type compatibility. - */ - content: z.preprocess(val => (val === null ? undefined : val), z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])).optional()) -}); -/* Autocomplete */ -/** - * A reference to a resource or resource template definition. - */ -export const ResourceTemplateReferenceSchema = z.object({ - type: z.literal('ref/resource'), - /** - * The URI or URI template of the resource. - */ - uri: z.string() -}); -/** - * @deprecated Use ResourceTemplateReferenceSchema instead - */ -export const ResourceReferenceSchema = ResourceTemplateReferenceSchema; -/** - * Identifies a prompt. - */ -export const PromptReferenceSchema = z.object({ - type: z.literal('ref/prompt'), - /** - * The name of the prompt or prompt template - */ - name: z.string() -}); -/** - * Parameters for a `completion/complete` request. - */ -export const CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({ - ref: z.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]), - /** - * The argument's information - */ - argument: z.object({ - /** - * The name of the argument - */ - name: z.string(), - /** - * The value of the argument to use for completion matching. - */ - value: z.string() - }), - context: z - .object({ - /** - * Previously-resolved variables in a URI template or prompt. - */ - arguments: z.record(z.string(), z.string()).optional() - }) - .optional() -}); -/** - * A request from the client to the server, to ask for completion options. - */ -export const CompleteRequestSchema = RequestSchema.extend({ - method: z.literal('completion/complete'), - params: CompleteRequestParamsSchema -}); -export function assertCompleteRequestPrompt(request) { - if (request.params.ref.type !== 'ref/prompt') { - throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`); - } - void request; -} -export function assertCompleteRequestResourceTemplate(request) { - if (request.params.ref.type !== 'ref/resource') { - throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`); - } - void request; -} -/** - * The server's response to a completion/complete request - */ -export const CompleteResultSchema = ResultSchema.extend({ - completion: z.looseObject({ - /** - * An array of completion values. Must not exceed 100 items. - */ - values: z.array(z.string()).max(100), - /** - * The total number of completion options available. This can exceed the number of values actually sent in the response. - */ - total: z.optional(z.number().int()), - /** - * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. - */ - hasMore: z.optional(z.boolean()) - }) -}); -/* Roots */ -/** - * Represents a root directory or file that the server can operate on. - */ -export const RootSchema = z.object({ - /** - * The URI identifying the root. This *must* start with file:// for now. - */ - uri: z.string().startsWith('file://'), - /** - * An optional name for the root. - */ - name: z.string().optional(), - /** - * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) - * for notes on _meta usage. - */ - _meta: z.record(z.string(), z.unknown()).optional() -}); -/** - * Sent from the server to request a list of root URIs from the client. - */ -export const ListRootsRequestSchema = RequestSchema.extend({ - method: z.literal('roots/list'), - params: BaseRequestParamsSchema.optional() -}); -/** - * The client's response to a roots/list request from the server. - */ -export const ListRootsResultSchema = ResultSchema.extend({ - roots: z.array(RootSchema) -}); -/** - * A notification from the client to the server, informing it that the list of roots has changed. - */ -export const RootsListChangedNotificationSchema = NotificationSchema.extend({ - method: z.literal('notifications/roots/list_changed'), - params: NotificationsParamsSchema.optional() -}); -/* Client messages */ -export const ClientRequestSchema = z.union([ - PingRequestSchema, - InitializeRequestSchema, - CompleteRequestSchema, - SetLevelRequestSchema, - GetPromptRequestSchema, - ListPromptsRequestSchema, - ListResourcesRequestSchema, - ListResourceTemplatesRequestSchema, - ReadResourceRequestSchema, - SubscribeRequestSchema, - UnsubscribeRequestSchema, - CallToolRequestSchema, - ListToolsRequestSchema, - GetTaskRequestSchema, - GetTaskPayloadRequestSchema, - ListTasksRequestSchema, - CancelTaskRequestSchema -]); -export const ClientNotificationSchema = z.union([ - CancelledNotificationSchema, - ProgressNotificationSchema, - InitializedNotificationSchema, - RootsListChangedNotificationSchema, - TaskStatusNotificationSchema -]); -export const ClientResultSchema = z.union([ - EmptyResultSchema, - CreateMessageResultSchema, - CreateMessageResultWithToolsSchema, - ElicitResultSchema, - ListRootsResultSchema, - GetTaskResultSchema, - ListTasksResultSchema, - CreateTaskResultSchema -]); -/* Server messages */ -export const ServerRequestSchema = z.union([ - PingRequestSchema, - CreateMessageRequestSchema, - ElicitRequestSchema, - ListRootsRequestSchema, - GetTaskRequestSchema, - GetTaskPayloadRequestSchema, - ListTasksRequestSchema, - CancelTaskRequestSchema -]); -export const ServerNotificationSchema = z.union([ - CancelledNotificationSchema, - ProgressNotificationSchema, - LoggingMessageNotificationSchema, - ResourceUpdatedNotificationSchema, - ResourceListChangedNotificationSchema, - ToolListChangedNotificationSchema, - PromptListChangedNotificationSchema, - TaskStatusNotificationSchema, - ElicitationCompleteNotificationSchema -]); -export const ServerResultSchema = z.union([ - EmptyResultSchema, - InitializeResultSchema, - CompleteResultSchema, - GetPromptResultSchema, - ListPromptsResultSchema, - ListResourcesResultSchema, - ListResourceTemplatesResultSchema, - ReadResourceResultSchema, - CallToolResultSchema, - ListToolsResultSchema, - GetTaskResultSchema, - ListTasksResultSchema, - CreateTaskResultSchema -]); -export class McpError extends Error { - constructor(code, message, data) { - super(`MCP error ${code}: ${message}`); - this.code = code; - this.data = data; - this.name = 'McpError'; - } - /** - * Factory method to create the appropriate error type based on the error code and data - */ - static fromError(code, message, data) { - // Check for specific error types - if (code === ErrorCode.UrlElicitationRequired && data) { - const errorData = data; - if (errorData.elicitations) { - return new UrlElicitationRequiredError(errorData.elicitations, message); - } - } - // Default to generic McpError - return new McpError(code, message, data); - } -} -/** - * Specialized error type when a tool requires a URL mode elicitation. - * This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against. - */ -export class UrlElicitationRequiredError extends McpError { - constructor(elicitations, message = `URL elicitation${elicitations.length > 1 ? 's' : ''} required`) { - super(ErrorCode.UrlElicitationRequired, message, { - elicitations: elicitations - }); - } - get elicitations() { - return this.data?.elicitations ?? []; - } -} -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map deleted file mode 100644 index 285ab0c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;AACpD,MAAM,CAAC,MAAM,mCAAmC,GAAG,YAAY,CAAC;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,uBAAuB,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAE7H,MAAM,CAAC,MAAM,qBAAqB,GAAG,sCAAsC,CAAC;AAE5E,oBAAoB;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AAMrC;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAS,CAAC,CAAC,EAAe,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC;AAClI;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC;IAClD;;;OAGG;IACH,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC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G9B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,IAAY,EAAE,OAAe,EAAE,IAAc;QAC1D,iCAAiC;QACjC,IAAI,IAAI,KAAK,SAAS,CAAC,sBAAsB,IAAI,IAAI,EAAE,CAAC;YACpD,MAAM,SAAS,GAAG,IAAoC,CAAC;YACvD,IAAI,SAAS,CAAC,YAAY,EAAE,CAAC;gBACzB,OAAO,IAAI,2BAA2B,CAAC,SAAS,CAAC,YAAwC,EAAE,OAAO,CAAC,CAAC;YACxG,CAAC;QACL,CAAC;QAED,8BAA8B;QAC9B,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;CACJ;AAED;;;GAGG;AACH,MAAM,OAAO,2BAA4B,SAAQ,QAAQ;IACrD,YAAY,YAAsC,EAAE,UAAkB,kBAAkB,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW;QACjI,KAAK,CAAC,SAAS,CAAC,sBAAsB,EAAE,OAAO,EAAE;YAC7C,YAAY,EAAE,YAAY;SAC7B,CAAC,CAAC;IACP,CAAC;IAED,IAAI,YAAY;QACZ,OAAQ,IAAI,CAAC,IAAmD,EAAE,YAAY,IAAI,EAAE,CAAC;IACzF,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts deleted file mode 100644 index 952ee68..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * AJV-based JSON Schema validator provider - */ -import Ajv from 'ajv'; -import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js'; -/** - * @example - * ```typescript - * // Use with default AJV instance (recommended) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Use with custom AJV instance - * import { Ajv } from 'ajv'; - * const ajv = new Ajv({ strict: true, allErrors: true }); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ -export declare class AjvJsonSchemaValidator implements jsonSchemaValidator { - private _ajv; - /** - * Create an AJV validator - * - * @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created. - * - * @example - * ```typescript - * // Use default configuration (recommended for most cases) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Or provide custom AJV instance for advanced configuration - * import { Ajv } from 'ajv'; - * import addFormats from 'ajv-formats'; - * - * const ajv = new Ajv({ validateFormats: true }); - * addFormats(ajv); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ - constructor(ajv?: Ajv); - /** - * Create a validator for the given JSON Schema - * - * The validator is compiled once and can be reused multiple times. - * If the schema has an $id, it will be cached by AJV automatically. - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=ajv-provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map deleted file mode 100644 index 6704c4d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/ajv-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAgBtH;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAuB,YAAW,mBAAmB;IAC9D,OAAO,CAAC,IAAI,CAAM;IAElB;;;;;;;;;;;;;;;;;;;OAmBG;gBACS,GAAG,CAAC,EAAE,GAAG;IAIrB;;;;;;;;OAQG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAyBlE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js deleted file mode 100644 index a0ab067..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * AJV-based JSON Schema validator provider - */ -import Ajv from 'ajv'; -import _addFormats from 'ajv-formats'; -function createDefaultAjvInstance() { - const ajv = new Ajv({ - strict: false, - validateFormats: true, - validateSchema: false, - allErrors: true - }); - const addFormats = _addFormats; - addFormats(ajv); - return ajv; -} -/** - * @example - * ```typescript - * // Use with default AJV instance (recommended) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Use with custom AJV instance - * import { Ajv } from 'ajv'; - * const ajv = new Ajv({ strict: true, allErrors: true }); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ -export class AjvJsonSchemaValidator { - /** - * Create an AJV validator - * - * @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created. - * - * @example - * ```typescript - * // Use default configuration (recommended for most cases) - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // Or provide custom AJV instance for advanced configuration - * import { Ajv } from 'ajv'; - * import addFormats from 'ajv-formats'; - * - * const ajv = new Ajv({ validateFormats: true }); - * addFormats(ajv); - * const validator = new AjvJsonSchemaValidator(ajv); - * ``` - */ - constructor(ajv) { - this._ajv = ajv ?? createDefaultAjvInstance(); - } - /** - * Create a validator for the given JSON Schema - * - * The validator is compiled once and can be reused multiple times. - * If the schema has an $id, it will be cached by AJV automatically. - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema) { - // Check if schema has $id and is already compiled/cached - const ajvValidator = '$id' in schema && typeof schema.$id === 'string' - ? (this._ajv.getSchema(schema.$id) ?? this._ajv.compile(schema)) - : this._ajv.compile(schema); - return (input) => { - const valid = ajvValidator(input); - if (valid) { - return { - valid: true, - data: input, - errorMessage: undefined - }; - } - else { - return { - valid: false, - data: undefined, - errorMessage: this._ajv.errorsText(ajvValidator.errors) - }; - } - }; - } -} -//# sourceMappingURL=ajv-provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map deleted file mode 100644 index 7b01905..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajv-provider.js","sourceRoot":"","sources":["../../../src/validation/ajv-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,WAAW,MAAM,aAAa,CAAC;AAGtC,SAAS,wBAAwB;IAC7B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;QAChB,MAAM,EAAE,KAAK;QACb,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,WAAoD,CAAC;IACxE,UAAU,CAAC,GAAG,CAAC,CAAC;IAEhB,OAAO,GAAG,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,sBAAsB;IAG/B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,GAAS;QACjB,IAAI,CAAC,IAAI,GAAG,GAAG,IAAI,wBAAwB,EAAE,CAAC;IAClD,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAI,MAAsB;QAClC,yDAAyD;QACzD,MAAM,YAAY,GACd,KAAK,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YAC7C,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAChE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAEpC,OAAO,CAAC,KAAc,EAAgC,EAAE;YACpD,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;YAElC,IAAI,KAAK,EAAE,CAAC;gBACR,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,KAAU;oBAChB,YAAY,EAAE,SAAS;iBAC1B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC;iBAC1D,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts deleted file mode 100644 index 89c244a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Cloudflare Worker-compatible JSON Schema validator provider - * - * This provider uses @cfworker/json-schema for validation without code generation, - * making it compatible with edge runtimes like Cloudflare Workers that restrict - * eval and new Function. - */ -import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js'; -/** - * JSON Schema draft version supported by @cfworker/json-schema - */ -export type CfWorkerSchemaDraft = '4' | '7' | '2019-09' | '2020-12'; -/** - * - * @example - * ```typescript - * // Use with default configuration (2020-12, shortcircuit) - * const validator = new CfWorkerJsonSchemaValidator(); - * - * // Use with custom configuration - * const validator = new CfWorkerJsonSchemaValidator({ - * draft: '2020-12', - * shortcircuit: false // Report all errors - * }); - * ``` - */ -export declare class CfWorkerJsonSchemaValidator implements jsonSchemaValidator { - private shortcircuit; - private draft; - /** - * Create a validator - * - * @param options - Configuration options - * @param options.shortcircuit - If true, stop validation after first error (default: true) - * @param options.draft - JSON Schema draft version to use (default: '2020-12') - */ - constructor(options?: { - shortcircuit?: boolean; - draft?: CfWorkerSchemaDraft; - }); - /** - * Create a validator for the given JSON Schema - * - * Unlike AJV, this validator is not cached internally - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=cfworker-provider.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map deleted file mode 100644 index ce404d9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cfworker-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IACnE,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,KAAK,CAAsB;IAEnC;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;KAAE;IAK7E;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAsBlE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js deleted file mode 100644 index 5764914..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Cloudflare Worker-compatible JSON Schema validator provider - * - * This provider uses @cfworker/json-schema for validation without code generation, - * making it compatible with edge runtimes like Cloudflare Workers that restrict - * eval and new Function. - */ -import { Validator } from '@cfworker/json-schema'; -/** - * - * @example - * ```typescript - * // Use with default configuration (2020-12, shortcircuit) - * const validator = new CfWorkerJsonSchemaValidator(); - * - * // Use with custom configuration - * const validator = new CfWorkerJsonSchemaValidator({ - * draft: '2020-12', - * shortcircuit: false // Report all errors - * }); - * ``` - */ -export class CfWorkerJsonSchemaValidator { - /** - * Create a validator - * - * @param options - Configuration options - * @param options.shortcircuit - If true, stop validation after first error (default: true) - * @param options.draft - JSON Schema draft version to use (default: '2020-12') - */ - constructor(options) { - this.shortcircuit = options?.shortcircuit ?? true; - this.draft = options?.draft ?? '2020-12'; - } - /** - * Create a validator for the given JSON Schema - * - * Unlike AJV, this validator is not cached internally - * - * @param schema - Standard JSON Schema object - * @returns A validator function that validates input data - */ - getValidator(schema) { - // Cast to the cfworker Schema type - our JsonSchemaType is structurally compatible - const validator = new Validator(schema, this.draft, this.shortcircuit); - return (input) => { - const result = validator.validate(input); - if (result.valid) { - return { - valid: true, - data: input, - errorMessage: undefined - }; - } - else { - return { - valid: false, - data: undefined, - errorMessage: result.errors.map(err => `${err.instanceLocation}: ${err.error}`).join('; ') - }; - } - }; - } -} -//# sourceMappingURL=cfworker-provider.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map deleted file mode 100644 index 21c014a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cfworker-provider.js","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,2BAA2B;IAIpC;;;;;;OAMG;IACH,YAAY,OAAiE;QACzE,IAAI,CAAC,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC;IAC7C,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAI,MAAsB;QAClC,mFAAmF;QACnF,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,MAAoD,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAErH,OAAO,CAAC,KAAc,EAAgC,EAAE;YACpD,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAEzC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACf,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,KAAU;oBAChB,YAAY,EAAE,SAAS;iBAC1B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,gBAAgB,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC7F,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts deleted file mode 100644 index 99e9939..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * JSON Schema validation - * - * This module provides configurable JSON Schema validation for the MCP SDK. - * Choose a validator based on your runtime environment: - * - * - AjvJsonSchemaValidator: Best for Node.js (default, fastest) - * Import from: @modelcontextprotocol/sdk/validation/ajv - * Requires peer dependencies: ajv, ajv-formats - * - * - CfWorkerJsonSchemaValidator: Best for edge runtimes - * Import from: @modelcontextprotocol/sdk/validation/cfworker - * Requires peer dependency: @cfworker/json-schema - * - * @example - * ```typescript - * // For Node.js with AJV - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // For Cloudflare Workers - * import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker'; - * const validator = new CfWorkerJsonSchemaValidator(); - * ``` - * - * @module validation - */ -export type { JsonSchemaType, JsonSchemaValidator, JsonSchemaValidatorResult, jsonSchemaValidator } from './types.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map deleted file mode 100644 index a8845b9..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js deleted file mode 100644 index 685b1fd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * JSON Schema validation - * - * This module provides configurable JSON Schema validation for the MCP SDK. - * Choose a validator based on your runtime environment: - * - * - AjvJsonSchemaValidator: Best for Node.js (default, fastest) - * Import from: @modelcontextprotocol/sdk/validation/ajv - * Requires peer dependencies: ajv, ajv-formats - * - * - CfWorkerJsonSchemaValidator: Best for edge runtimes - * Import from: @modelcontextprotocol/sdk/validation/cfworker - * Requires peer dependency: @cfworker/json-schema - * - * @example - * ```typescript - * // For Node.js with AJV - * import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv'; - * const validator = new AjvJsonSchemaValidator(); - * - * // For Cloudflare Workers - * import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker'; - * const validator = new CfWorkerJsonSchemaValidator(); - * ``` - * - * @module validation - */ -export {}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map deleted file mode 100644 index ed2b9fc..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts deleted file mode 100644 index 9fa9222..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import type { JSONSchema } from 'json-schema-typed'; -/** - * JSON Schema type definition (JSON Schema Draft 2020-12) - * - * This uses the object form of JSON Schema (excluding boolean schemas). - * While `true` and `false` are valid JSON Schemas, this SDK uses the - * object form for practical type safety. - * - * Re-exported from json-schema-typed for convenience. - * @see https://json-schema.org/draft/2020-12/json-schema-core.html - */ -export type JsonSchemaType = JSONSchema.Interface; -/** - * Result of a JSON Schema validation operation - */ -export type JsonSchemaValidatorResult = { - valid: true; - data: T; - errorMessage: undefined; -} | { - valid: false; - data: undefined; - errorMessage: string; -}; -/** - * A validator function that validates data against a JSON Schema - */ -export type JsonSchemaValidator = (input: unknown) => JsonSchemaValidatorResult; -/** - * Provider interface for creating validators from JSON Schemas - * - * This is the main extension point for custom validator implementations. - * Implementations should: - * - Support JSON Schema Draft 2020-12 (or be compatible with it) - * - Return validator functions that can be called multiple times - * - Handle schema compilation/caching internally - * - Provide clear error messages on validation failure - * - * @example - * ```typescript - * class MyValidatorProvider implements jsonSchemaValidator { - * getValidator(schema: JsonSchemaType): JsonSchemaValidator { - * // Compile/cache validator from schema - * return (input: unknown) => { - * // Validate input against schema - * if (valid) { - * return { valid: true, data: input as T, errorMessage: undefined }; - * } else { - * return { valid: false, data: undefined, errorMessage: 'Error details' }; - * } - * }; - * } - * } - * ``` - */ -export interface jsonSchemaValidator { - /** - * Create a validator for the given JSON Schema - * - * @param schema - Standard JSON Schema object - * @returns A validator function that can be called multiple times - */ - getValidator(schema: JsonSchemaType): JsonSchemaValidator; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map deleted file mode 100644 index 52aa0ef..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,IACjC;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,YAAY,EAAE,SAAS,CAAA;CAAE,GACjD;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,KAAK,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACnE"} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js deleted file mode 100644 index 718fd38..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map b/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map deleted file mode 100644 index 51361cf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/HISTORY.md deleted file mode 100644 index 627a81d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/HISTORY.md +++ /dev/null @@ -1,250 +0,0 @@ -2.0.0 / 2024-08-31 -================== - - * Drop node <18 support - * deps: mime-types@^3.0.0 - * deps: negotiator@^1.0.0 - -1.3.8 / 2022-02-02 -================== - - * deps: mime-types@~2.1.34 - - deps: mime-db@~1.51.0 - * deps: negotiator@0.6.3 - -1.3.7 / 2019-04-29 -================== - - * deps: negotiator@0.6.2 - - Fix sorting charset, encoding, and language with extra parameters - -1.3.6 / 2019-04-28 -================== - - * deps: mime-types@~2.1.24 - - deps: mime-db@~1.40.0 - -1.3.5 / 2018-02-28 -================== - - * deps: mime-types@~2.1.18 - - deps: mime-db@~1.33.0 - -1.3.4 / 2017-08-22 -================== - - * deps: mime-types@~2.1.16 - - deps: mime-db@~1.29.0 - -1.3.3 / 2016-05-02 -================== - - * deps: mime-types@~2.1.11 - - deps: mime-db@~1.23.0 - * deps: negotiator@0.6.1 - - perf: improve `Accept` parsing speed - - perf: improve `Accept-Charset` parsing speed - - perf: improve `Accept-Encoding` parsing speed - - perf: improve `Accept-Language` parsing speed - -1.3.2 / 2016-03-08 -================== - - * deps: mime-types@~2.1.10 - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - - deps: mime-db@~1.22.0 - -1.3.1 / 2016-01-19 -================== - - * deps: mime-types@~2.1.9 - - deps: mime-db@~1.21.0 - -1.3.0 / 2015-09-29 -================== - - * deps: mime-types@~2.1.7 - - deps: mime-db@~1.19.0 - * deps: negotiator@0.6.0 - - Fix including type extensions in parameters in `Accept` parsing - - Fix parsing `Accept` parameters with quoted equals - - Fix parsing `Accept` parameters with quoted semicolons - - Lazy-load modules from main entry point - - perf: delay type concatenation until needed - - perf: enable strict mode - - perf: hoist regular expressions - - perf: remove closures getting spec properties - - perf: remove a closure from media type parsing - - perf: remove property delete from media type parsing - -1.2.13 / 2015-09-06 -=================== - - * deps: mime-types@~2.1.6 - - deps: mime-db@~1.18.0 - -1.2.12 / 2015-07-30 -=================== - - * deps: mime-types@~2.1.4 - - deps: mime-db@~1.16.0 - -1.2.11 / 2015-07-16 -=================== - - * deps: mime-types@~2.1.3 - - deps: mime-db@~1.15.0 - -1.2.10 / 2015-07-01 -=================== - - * deps: mime-types@~2.1.2 - - deps: mime-db@~1.14.0 - -1.2.9 / 2015-06-08 -================== - - * deps: mime-types@~2.1.1 - - perf: fix deopt during mapping - -1.2.8 / 2015-06-07 -================== - - * deps: mime-types@~2.1.0 - - deps: mime-db@~1.13.0 - * perf: avoid argument reassignment & argument slice - * perf: avoid negotiator recursive construction - * perf: enable strict mode - * perf: remove unnecessary bitwise operator - -1.2.7 / 2015-05-10 -================== - - * deps: negotiator@0.5.3 - - Fix media type parameter matching to be case-insensitive - -1.2.6 / 2015-05-07 -================== - - * deps: mime-types@~2.0.11 - - deps: mime-db@~1.9.1 - * deps: negotiator@0.5.2 - - Fix comparing media types with quoted values - - Fix splitting media types with quoted commas - -1.2.5 / 2015-03-13 -================== - - * deps: mime-types@~2.0.10 - - deps: mime-db@~1.8.0 - -1.2.4 / 2015-02-14 -================== - - * Support Node.js 0.6 - * deps: mime-types@~2.0.9 - - deps: mime-db@~1.7.0 - * deps: negotiator@0.5.1 - - Fix preference sorting to be stable for long acceptable lists - -1.2.3 / 2015-01-31 -================== - - * deps: mime-types@~2.0.8 - - deps: mime-db@~1.6.0 - -1.2.2 / 2014-12-30 -================== - - * deps: mime-types@~2.0.7 - - deps: mime-db@~1.5.0 - -1.2.1 / 2014-12-30 -================== - - * deps: mime-types@~2.0.5 - - deps: mime-db@~1.3.1 - -1.2.0 / 2014-12-19 -================== - - * deps: negotiator@0.5.0 - - Fix list return order when large accepted list - - Fix missing identity encoding when q=0 exists - - Remove dynamic building of Negotiator class - -1.1.4 / 2014-12-10 -================== - - * deps: mime-types@~2.0.4 - - deps: mime-db@~1.3.0 - -1.1.3 / 2014-11-09 -================== - - * deps: mime-types@~2.0.3 - - deps: mime-db@~1.2.0 - -1.1.2 / 2014-10-14 -================== - - * deps: negotiator@0.4.9 - - Fix error when media type has invalid parameter - -1.1.1 / 2014-09-28 -================== - - * deps: mime-types@~2.0.2 - - deps: mime-db@~1.1.0 - * deps: negotiator@0.4.8 - - Fix all negotiations to be case-insensitive - - Stable sort preferences of same quality according to client order - -1.1.0 / 2014-09-02 -================== - - * update `mime-types` - -1.0.7 / 2014-07-04 -================== - - * Fix wrong type returned from `type` when match after unknown extension - -1.0.6 / 2014-06-24 -================== - - * deps: negotiator@0.4.7 - -1.0.5 / 2014-06-20 -================== - - * fix crash when unknown extension given - -1.0.4 / 2014-06-19 -================== - - * use `mime-types` - -1.0.3 / 2014-06-11 -================== - - * deps: negotiator@0.4.6 - - Order by specificity when quality is the same - -1.0.2 / 2014-05-29 -================== - - * Fix interpretation when header not in request - * deps: pin negotiator@0.4.5 - -1.0.1 / 2014-01-18 -================== - - * Identity encoding isn't always acceptable - * deps: negotiator@~0.4.0 - -1.0.0 / 2013-12-27 -================== - - * Genesis diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/LICENSE deleted file mode 100644 index 0616607..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/README.md deleted file mode 100644 index f3f10c4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/README.md +++ /dev/null @@ -1,140 +0,0 @@ -# accepts - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). -Extracted from [koa](https://www.npmjs.com/package/koa) for general use. - -In addition to negotiator, it allows: - -- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` - as well as `('text/html', 'application/json')`. -- Allows type shorthands such as `json`. -- Returns `false` when no types match -- Treats non-existent headers as `*` - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install accepts -``` - -## API - -```js -var accepts = require('accepts') -``` - -### accepts(req) - -Create a new `Accepts` object for the given `req`. - -#### .charset(charsets) - -Return the first accepted charset. If nothing in `charsets` is accepted, -then `false` is returned. - -#### .charsets() - -Return the charsets that the request accepts, in the order of the client's -preference (most preferred first). - -#### .encoding(encodings) - -Return the first accepted encoding. If nothing in `encodings` is accepted, -then `false` is returned. - -#### .encodings() - -Return the encodings that the request accepts, in the order of the client's -preference (most preferred first). - -#### .language(languages) - -Return the first accepted language. If nothing in `languages` is accepted, -then `false` is returned. - -#### .languages() - -Return the languages that the request accepts, in the order of the client's -preference (most preferred first). - -#### .type(types) - -Return the first accepted type (and it is returned as the same text as what -appears in the `types` array). If nothing in `types` is accepted, then `false` -is returned. - -The `types` array can contain full MIME types or file extensions. Any value -that is not a full MIME type is passed to `require('mime-types').lookup`. - -#### .types() - -Return the types that the request accepts, in the order of the client's -preference (most preferred first). - -## Examples - -### Simple type negotiation - -This simple example shows how to use `accepts` to return a different typed -respond body based on what the client wants to accept. The server lists it's -preferences in order and will get back the best match between the client and -server. - -```js -var accepts = require('accepts') -var http = require('http') - -function app (req, res) { - var accept = accepts(req) - - // the order of this list is significant; should be server preferred order - switch (accept.type(['json', 'html'])) { - case 'json': - res.setHeader('Content-Type', 'application/json') - res.write('{"hello":"world!"}') - break - case 'html': - res.setHeader('Content-Type', 'text/html') - res.write('hello, world!') - break - default: - // the fallback is text/plain, so no need to specify it above - res.setHeader('Content-Type', 'text/plain') - res.write('hello, world!') - break - } - - res.end() -} - -http.createServer(app).listen(3000) -``` - -You can test this out with the cURL program: -```sh -curl -I -H'Accept: text/html' http://localhost:3000/ -``` - -## License - -[MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master -[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master -[github-actions-ci-image]: https://badgen.net/github/checks/jshttp/accepts/master?label=ci -[github-actions-ci-url]: https://github.com/jshttp/accepts/actions/workflows/ci.yml -[node-version-image]: https://badgen.net/npm/node/accepts -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/accepts -[npm-url]: https://npmjs.org/package/accepts -[npm-version-image]: https://badgen.net/npm/v/accepts diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/index.js deleted file mode 100644 index 4f2840c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/index.js +++ /dev/null @@ -1,238 +0,0 @@ -/*! - * accepts - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var Negotiator = require('negotiator') -var mime = require('mime-types') - -/** - * Module exports. - * @public - */ - -module.exports = Accepts - -/** - * Create a new Accepts object for the given req. - * - * @param {object} req - * @public - */ - -function Accepts (req) { - if (!(this instanceof Accepts)) { - return new Accepts(req) - } - - this.headers = req.headers - this.negotiator = new Negotiator(req) -} - -/** - * Check if the given `type(s)` is acceptable, returning - * the best match when true, otherwise `undefined`, in which - * case you should respond with 406 "Not Acceptable". - * - * The `type` value may be a single mime type string - * such as "application/json", the extension name - * such as "json" or an array `["json", "html", "text/plain"]`. When a list - * or array is given the _best_ match, if any is returned. - * - * Examples: - * - * // Accept: text/html - * this.types('html'); - * // => "html" - * - * // Accept: text/*, application/json - * this.types('html'); - * // => "html" - * this.types('text/html'); - * // => "text/html" - * this.types('json', 'text'); - * // => "json" - * this.types('application/json'); - * // => "application/json" - * - * // Accept: text/*, application/json - * this.types('image/png'); - * this.types('png'); - * // => undefined - * - * // Accept: text/*;q=.5, application/json - * this.types(['html', 'json']); - * this.types('html', 'json'); - * // => "json" - * - * @param {String|Array} types... - * @return {String|Array|Boolean} - * @public - */ - -Accepts.prototype.type = -Accepts.prototype.types = function (types_) { - var types = types_ - - // support flattened arguments - if (types && !Array.isArray(types)) { - types = new Array(arguments.length) - for (var i = 0; i < types.length; i++) { - types[i] = arguments[i] - } - } - - // no types, return all requested types - if (!types || types.length === 0) { - return this.negotiator.mediaTypes() - } - - // no accept header, return first given type - if (!this.headers.accept) { - return types[0] - } - - var mimes = types.map(extToMime) - var accepts = this.negotiator.mediaTypes(mimes.filter(validMime)) - var first = accepts[0] - - return first - ? types[mimes.indexOf(first)] - : false -} - -/** - * Return accepted encodings or best fit based on `encodings`. - * - * Given `Accept-Encoding: gzip, deflate` - * an array sorted by quality is returned: - * - * ['gzip', 'deflate'] - * - * @param {String|Array} encodings... - * @return {String|Array} - * @public - */ - -Accepts.prototype.encoding = -Accepts.prototype.encodings = function (encodings_) { - var encodings = encodings_ - - // support flattened arguments - if (encodings && !Array.isArray(encodings)) { - encodings = new Array(arguments.length) - for (var i = 0; i < encodings.length; i++) { - encodings[i] = arguments[i] - } - } - - // no encodings, return all requested encodings - if (!encodings || encodings.length === 0) { - return this.negotiator.encodings() - } - - return this.negotiator.encodings(encodings)[0] || false -} - -/** - * Return accepted charsets or best fit based on `charsets`. - * - * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5` - * an array sorted by quality is returned: - * - * ['utf-8', 'utf-7', 'iso-8859-1'] - * - * @param {String|Array} charsets... - * @return {String|Array} - * @public - */ - -Accepts.prototype.charset = -Accepts.prototype.charsets = function (charsets_) { - var charsets = charsets_ - - // support flattened arguments - if (charsets && !Array.isArray(charsets)) { - charsets = new Array(arguments.length) - for (var i = 0; i < charsets.length; i++) { - charsets[i] = arguments[i] - } - } - - // no charsets, return all requested charsets - if (!charsets || charsets.length === 0) { - return this.negotiator.charsets() - } - - return this.negotiator.charsets(charsets)[0] || false -} - -/** - * Return accepted languages or best fit based on `langs`. - * - * Given `Accept-Language: en;q=0.8, es, pt` - * an array sorted by quality is returned: - * - * ['es', 'pt', 'en'] - * - * @param {String|Array} langs... - * @return {Array|String} - * @public - */ - -Accepts.prototype.lang = -Accepts.prototype.langs = -Accepts.prototype.language = -Accepts.prototype.languages = function (languages_) { - var languages = languages_ - - // support flattened arguments - if (languages && !Array.isArray(languages)) { - languages = new Array(arguments.length) - for (var i = 0; i < languages.length; i++) { - languages[i] = arguments[i] - } - } - - // no languages, return all requested languages - if (!languages || languages.length === 0) { - return this.negotiator.languages() - } - - return this.negotiator.languages(languages)[0] || false -} - -/** - * Convert extnames to mime. - * - * @param {String} type - * @return {String} - * @private - */ - -function extToMime (type) { - return type.indexOf('/') === -1 - ? mime.lookup(type) - : type -} - -/** - * Check if mime is valid. - * - * @param {String} type - * @return {Boolean} - * @private - */ - -function validMime (type) { - return typeof type === 'string' -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/package.json deleted file mode 100644 index b35b262..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "accepts", - "description": "Higher-level content negotiation", - "version": "2.0.0", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "repository": "jshttp/accepts", - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "devDependencies": { - "deep-equal": "1.0.1", - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "4.3.1", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.2.0", - "nyc": "15.1.0" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - }, - "keywords": [ - "content", - "negotiation", - "accept", - "accepts" - ] -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/LICENSE deleted file mode 100644 index 386b7b6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md deleted file mode 100644 index 31b66ce..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md +++ /dev/null @@ -1,494 +0,0 @@ -# body-parser - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] -[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer] - -Node.js body parsing middleware. - -Parse incoming request bodies in a middleware before your handlers, available -under the `req.body` property. - -**Note** As `req.body`'s shape is based on user-controlled input, all -properties and values in this object are untrusted and should be validated -before trusting. For example, `req.body.foo.toString()` may fail in multiple -ways, for example the `foo` property may not be there or may not be a string, -and `toString` may not be a function and instead a string or other user input. - -[Learn about the anatomy of an HTTP transaction in Node.js](https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/). - -_This does not handle multipart bodies_, due to their complex and typically -large nature. For multipart bodies, you may be interested in the following -modules: - - * [busboy](https://www.npmjs.org/package/busboy#readme) and - [connect-busboy](https://www.npmjs.org/package/connect-busboy#readme) - * [multiparty](https://www.npmjs.org/package/multiparty#readme) and - [connect-multiparty](https://www.npmjs.org/package/connect-multiparty#readme) - * [formidable](https://www.npmjs.org/package/formidable#readme) - * [multer](https://www.npmjs.org/package/multer#readme) - -This module provides the following parsers: - - * [JSON body parser](#bodyparserjsonoptions) - * [Raw body parser](#bodyparserrawoptions) - * [Text body parser](#bodyparsertextoptions) - * [URL-encoded form body parser](#bodyparserurlencodedoptions) - -Other body parsers you might be interested in: - -- [body](https://www.npmjs.org/package/body#readme) -- [co-body](https://www.npmjs.org/package/co-body#readme) - -## Installation - -```sh -$ npm install body-parser -``` - -## API - -```js -const bodyParser = require('body-parser') -``` - -The `bodyParser` object exposes various factories to create middlewares. All -middlewares will populate the `req.body` property with the parsed body when -the `Content-Type` request header matches the `type` option. - -The various errors returned by this module are described in the -[errors section](#errors). - -### bodyParser.json([options]) - -Returns middleware that only parses `json` and only looks at requests where -the `Content-Type` header matches the `type` option. This parser accepts any -Unicode encoding of the body and supports automatic inflation of `gzip`, -`br` (brotli) and `deflate` encodings. - -A new `body` object containing the parsed data is populated on the `request` -object after the middleware (i.e. `req.body`). - -#### Options - -The `json` function takes an optional `options` object that may contain any of -the following keys: - -##### defaultCharset - -Specify the default character set for the json content if the charset is not -specified in the `Content-Type` header of the request. Defaults to `utf-8`. - -##### inflate - -When set to `true`, then deflated (compressed) bodies will be inflated; when -`false`, deflated bodies are rejected. Defaults to `true`. - -##### limit - -Controls the maximum request body size. If this is a number, then the value -specifies the number of bytes; if it is a string, the value is passed to the -[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults -to `'100kb'`. - -##### reviver - -The `reviver` option is passed directly to `JSON.parse` as the second -argument. You can find more information on this argument -[in the MDN documentation about JSON.parse](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Example.3A_Using_the_reviver_parameter). - -##### strict - -When set to `true`, will only accept arrays and objects; when `false` will -accept anything `JSON.parse` accepts. Defaults to `true`. - -##### type - -The `type` option is used to determine what media type the middleware will -parse. This option can be a string, array of strings, or a function. If not a -function, `type` option is passed directly to the -[type-is](https://www.npmjs.org/package/type-is#readme) library and this can -be an extension name (like `json`), a mime type (like `application/json`), or -a mime type with a wildcard (like `*/*` or `*/json`). If a function, the `type` -option is called as `fn(req)` and the request is parsed if it returns a truthy -value. Defaults to `application/json`. - -##### verify - -The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`, -where `buf` is a `Buffer` of the raw request body and `encoding` is the -encoding of the request. The parsing can be aborted by throwing an error. - -### bodyParser.raw([options]) - -Returns middleware that parses all bodies as a `Buffer` and only looks at -requests where the `Content-Type` header matches the `type` option. This -parser supports automatic inflation of `gzip`, `br` (brotli) and `deflate` -encodings. - -A new `body` object containing the parsed data is populated on the `request` -object after the middleware (i.e. `req.body`). This will be a `Buffer` object -of the body. - -#### Options - -The `raw` function takes an optional `options` object that may contain any of -the following keys: - -##### inflate - -When set to `true`, then deflated (compressed) bodies will be inflated; when -`false`, deflated bodies are rejected. Defaults to `true`. - -##### limit - -Controls the maximum request body size. If this is a number, then the value -specifies the number of bytes; if it is a string, the value is passed to the -[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults -to `'100kb'`. - -##### type - -The `type` option is used to determine what media type the middleware will -parse. This option can be a string, array of strings, or a function. -If not a function, `type` option is passed directly to the -[type-is](https://www.npmjs.org/package/type-is#readme) library and this -can be an extension name (like `bin`), a mime type (like -`application/octet-stream`), or a mime type with a wildcard (like `*/*` or -`application/*`). If a function, the `type` option is called as `fn(req)` -and the request is parsed if it returns a truthy value. Defaults to -`application/octet-stream`. - -##### verify - -The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`, -where `buf` is a `Buffer` of the raw request body and `encoding` is the -encoding of the request. The parsing can be aborted by throwing an error. - -### bodyParser.text([options]) - -Returns middleware that parses all bodies as a string and only looks at -requests where the `Content-Type` header matches the `type` option. This -parser supports automatic inflation of `gzip`, `br` (brotli) and `deflate` -encodings. - -A new `body` string containing the parsed data is populated on the `request` -object after the middleware (i.e. `req.body`). This will be a string of the -body. - -#### Options - -The `text` function takes an optional `options` object that may contain any of -the following keys: - -##### defaultCharset - -Specify the default character set for the text content if the charset is not -specified in the `Content-Type` header of the request. Defaults to `utf-8`. - -##### inflate - -When set to `true`, then deflated (compressed) bodies will be inflated; when -`false`, deflated bodies are rejected. Defaults to `true`. - -##### limit - -Controls the maximum request body size. If this is a number, then the value -specifies the number of bytes; if it is a string, the value is passed to the -[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults -to `'100kb'`. - -##### type - -The `type` option is used to determine what media type the middleware will -parse. This option can be a string, array of strings, or a function. If not -a function, `type` option is passed directly to the -[type-is](https://www.npmjs.org/package/type-is#readme) library and this can -be an extension name (like `txt`), a mime type (like `text/plain`), or a mime -type with a wildcard (like `*/*` or `text/*`). If a function, the `type` -option is called as `fn(req)` and the request is parsed if it returns a -truthy value. Defaults to `text/plain`. - -##### verify - -The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`, -where `buf` is a `Buffer` of the raw request body and `encoding` is the -encoding of the request. The parsing can be aborted by throwing an error. - -### bodyParser.urlencoded([options]) - -Returns middleware that only parses `urlencoded` bodies and only looks at -requests where the `Content-Type` header matches the `type` option. This -parser accepts only UTF-8 encoding of the body and supports automatic -inflation of `gzip`, `br` (brotli) and `deflate` encodings. - -A new `body` object containing the parsed data is populated on the `request` -object after the middleware (i.e. `req.body`). This object will contain -key-value pairs, where the value can be a string or array (when `extended` is -`false`), or any type (when `extended` is `true`). - -#### Options - -The `urlencoded` function takes an optional `options` object that may contain -any of the following keys: - -##### extended - -The "extended" syntax allows for rich objects and arrays to be encoded into the -URL-encoded format, allowing for a JSON-like experience with URL-encoded. For -more information, please [see the qs -library](https://www.npmjs.org/package/qs#readme). - -Defaults to `false`. - -##### inflate - -When set to `true`, then deflated (compressed) bodies will be inflated; when -`false`, deflated bodies are rejected. Defaults to `true`. - -##### limit - -Controls the maximum request body size. If this is a number, then the value -specifies the number of bytes; if it is a string, the value is passed to the -[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults -to `'100kb'`. - -##### parameterLimit - -The `parameterLimit` option controls the maximum number of parameters that -are allowed in the URL-encoded data. If a request contains more parameters -than this value, a 413 will be returned to the client. Defaults to `1000`. - -##### type - -The `type` option is used to determine what media type the middleware will -parse. This option can be a string, array of strings, or a function. If not -a function, `type` option is passed directly to the -[type-is](https://www.npmjs.org/package/type-is#readme) library and this can -be an extension name (like `urlencoded`), a mime type (like -`application/x-www-form-urlencoded`), or a mime type with a wildcard (like -`*/x-www-form-urlencoded`). If a function, the `type` option is called as -`fn(req)` and the request is parsed if it returns a truthy value. Defaults -to `application/x-www-form-urlencoded`. - -##### verify - -The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`, -where `buf` is a `Buffer` of the raw request body and `encoding` is the -encoding of the request. The parsing can be aborted by throwing an error. - -##### defaultCharset - -The default charset to parse as, if not specified in content-type. Must be -either `utf-8` or `iso-8859-1`. Defaults to `utf-8`. - -##### charsetSentinel - -Whether to let the value of the `utf8` parameter take precedence as the charset -selector. It requires the form to contain a parameter named `utf8` with a value -of `✓`. Defaults to `false`. - -##### interpretNumericEntities - -Whether to decode numeric entities such as `☺` when parsing an iso-8859-1 -form. Defaults to `false`. - - -##### depth - -The `depth` option is used to configure the maximum depth of the `qs` library when `extended` is `true`. This allows you to limit the amount of keys that are parsed and can be useful to prevent certain types of abuse. Defaults to `32`. It is recommended to keep this value as low as possible. - -## Errors - -The middlewares provided by this module create errors using the -[`http-errors` module](https://www.npmjs.com/package/http-errors). The errors -will typically have a `status`/`statusCode` property that contains the suggested -HTTP response code, an `expose` property to determine if the `message` property -should be displayed to the client, a `type` property to determine the type of -error without matching against the `message`, and a `body` property containing -the read body, if available. - -The following are the common errors created, though any error can come through -for various reasons. - -### content encoding unsupported - -This error will occur when the request had a `Content-Encoding` header that -contained an encoding but the "inflation" option was set to `false`. The -`status` property is set to `415`, the `type` property is set to -`'encoding.unsupported'`, and the `charset` property will be set to the -encoding that is unsupported. - -### entity parse failed - -This error will occur when the request contained an entity that could not be -parsed by the middleware. The `status` property is set to `400`, the `type` -property is set to `'entity.parse.failed'`, and the `body` property is set to -the entity value that failed parsing. - -### entity verify failed - -This error will occur when the request contained an entity that could not be -failed verification by the defined `verify` option. The `status` property is -set to `403`, the `type` property is set to `'entity.verify.failed'`, and the -`body` property is set to the entity value that failed verification. - -### request aborted - -This error will occur when the request is aborted by the client before reading -the body has finished. The `received` property will be set to the number of -bytes received before the request was aborted and the `expected` property is -set to the number of expected bytes. The `status` property is set to `400` -and `type` property is set to `'request.aborted'`. - -### request entity too large - -This error will occur when the request body's size is larger than the "limit" -option. The `limit` property will be set to the byte limit and the `length` -property will be set to the request body's length. The `status` property is -set to `413` and the `type` property is set to `'entity.too.large'`. - -### request size did not match content length - -This error will occur when the request's length did not match the length from -the `Content-Length` header. This typically occurs when the request is malformed, -typically when the `Content-Length` header was calculated based on characters -instead of bytes. The `status` property is set to `400` and the `type` property -is set to `'request.size.invalid'`. - -### stream encoding should not be set - -This error will occur when something called the `req.setEncoding` method prior -to this middleware. This module operates directly on bytes only and you cannot -call `req.setEncoding` when using this module. The `status` property is set to -`500` and the `type` property is set to `'stream.encoding.set'`. - -### stream is not readable - -This error will occur when the request is no longer readable when this middleware -attempts to read it. This typically means something other than a middleware from -this module read the request body already and the middleware was also configured to -read the same request. The `status` property is set to `500` and the `type` -property is set to `'stream.not.readable'`. - -### too many parameters - -This error will occur when the content of the request exceeds the configured -`parameterLimit` for the `urlencoded` parser. The `status` property is set to -`413` and the `type` property is set to `'parameters.too.many'`. - -### unsupported charset "BOGUS" - -This error will occur when the request had a charset parameter in the -`Content-Type` header, but the `iconv-lite` module does not support it OR the -parser does not support it. The charset is contained in the message as well -as in the `charset` property. The `status` property is set to `415`, the -`type` property is set to `'charset.unsupported'`, and the `charset` property -is set to the charset that is unsupported. - -### unsupported content encoding "bogus" - -This error will occur when the request had a `Content-Encoding` header that -contained an unsupported encoding. The encoding is contained in the message -as well as in the `encoding` property. The `status` property is set to `415`, -the `type` property is set to `'encoding.unsupported'`, and the `encoding` -property is set to the encoding that is unsupported. - -### The input exceeded the depth - -This error occurs when using `bodyParser.urlencoded` with the `extended` property set to `true` and the input exceeds the configured `depth` option. The `status` property is set to `400`. It is recommended to review the `depth` option and evaluate if it requires a higher value. When the `depth` option is set to `32` (default value), the error will not be thrown. - -## Examples - -### Express/Connect top-level generic - -This example demonstrates adding a generic JSON and URL-encoded parser as a -top-level middleware, which will parse the bodies of all incoming requests. -This is the simplest setup. - -```js -const express = require('express') -const bodyParser = require('body-parser') - -const app = express() - -// parse application/x-www-form-urlencoded -app.use(bodyParser.urlencoded()) - -// parse application/json -app.use(bodyParser.json()) - -app.use(function (req, res) { - res.setHeader('Content-Type', 'text/plain') - res.write('you posted:\n') - res.end(String(JSON.stringify(req.body, null, 2))) -}) -``` - -### Express route-specific - -This example demonstrates adding body parsers specifically to the routes that -need them. In general, this is the most recommended way to use body-parser with -Express. - -```js -const express = require('express') -const bodyParser = require('body-parser') - -const app = express() - -// create application/json parser -const jsonParser = bodyParser.json() - -// create application/x-www-form-urlencoded parser -const urlencodedParser = bodyParser.urlencoded() - -// POST /login gets urlencoded bodies -app.post('/login', urlencodedParser, function (req, res) { - if (!req.body || !req.body.username) res.sendStatus(400) - res.send('welcome, ' + req.body.username) -}) - -// POST /api/users gets JSON bodies -app.post('/api/users', jsonParser, function (req, res) { - if (!req.body) res.sendStatus(400) - // create user in req.body -}) -``` - -### Change accepted type for parsers - -All the parsers accept a `type` option which allows you to change the -`Content-Type` that the middleware will parse. - -```js -const express = require('express') -const bodyParser = require('body-parser') - -const app = express() - -// parse various different custom JSON types as JSON -app.use(bodyParser.json({ type: 'application/*+json' })) - -// parse some custom thing into a Buffer -app.use(bodyParser.raw({ type: 'application/vnd.custom-type' })) - -// parse an HTML body into a string -app.use(bodyParser.text({ type: 'text/html' })) -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://img.shields.io/github/actions/workflow/status/expressjs/body-parser/ci.yml?branch=master&label=ci -[ci-url]: https://github.com/expressjs/body-parser/actions/workflows/ci.yml -[coveralls-image]: https://img.shields.io/coverallsCoverage/github/expressjs/body-parser?branch=master -[coveralls-url]: https://coveralls.io/r/expressjs/body-parser?branch=master -[npm-downloads-image]: https://img.shields.io/npm/dm/body-parser -[npm-url]: https://npmjs.org/package/body-parser -[npm-version-image]: https://img.shields.io/npm/v/body-parser -[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/body-parser/badge -[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/expressjs/body-parser \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js deleted file mode 100644 index d722d0b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js +++ /dev/null @@ -1,80 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * @typedef Parsers - * @type {function} - * @property {function} json - * @property {function} raw - * @property {function} text - * @property {function} urlencoded - */ - -/** - * Module exports. - * @type {Parsers} - */ - -exports = module.exports = bodyParser - -/** - * JSON parser. - * @public - */ - -Object.defineProperty(exports, 'json', { - configurable: true, - enumerable: true, - get: () => require('./lib/types/json') -}) - -/** - * Raw parser. - * @public - */ - -Object.defineProperty(exports, 'raw', { - configurable: true, - enumerable: true, - get: () => require('./lib/types/raw') -}) - -/** - * Text parser. - * @public - */ - -Object.defineProperty(exports, 'text', { - configurable: true, - enumerable: true, - get: () => require('./lib/types/text') -}) - -/** - * URL-encoded parser. - * @public - */ - -Object.defineProperty(exports, 'urlencoded', { - configurable: true, - enumerable: true, - get: () => require('./lib/types/urlencoded') -}) - -/** - * Create a middleware to parse json and urlencoded bodies. - * - * @param {object} [options] - * @return {function} - * @deprecated - * @public - */ - -function bodyParser () { - throw new Error('The bodyParser() generic has been split into individual middleware to use instead.') -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js deleted file mode 100644 index b3f2345..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js +++ /dev/null @@ -1,250 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var createError = require('http-errors') -var getBody = require('raw-body') -var iconv = require('iconv-lite') -var onFinished = require('on-finished') -var zlib = require('node:zlib') -var hasBody = require('type-is').hasBody -var { getCharset } = require('./utils') - -/** - * Module exports. - */ - -module.exports = read - -/** - * Read a request into a buffer and parse. - * - * @param {object} req - * @param {object} res - * @param {function} next - * @param {function} parse - * @param {function} debug - * @param {object} options - * @private - */ - -function read (req, res, next, parse, debug, options) { - if (onFinished.isFinished(req)) { - debug('body already parsed') - next() - return - } - - if (!('body' in req)) { - req.body = undefined - } - - // skip requests without bodies - if (!hasBody(req)) { - debug('skip empty body') - next() - return - } - - debug('content-type %j', req.headers['content-type']) - - // determine if request should be parsed - if (!options.shouldParse(req)) { - debug('skip parsing') - next() - return - } - - var encoding = null - if (options?.skipCharset !== true) { - encoding = getCharset(req) || options.defaultCharset - - // validate charset - if (!!options?.isValidCharset && !options.isValidCharset(encoding)) { - debug('invalid charset') - next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { - charset: encoding, - type: 'charset.unsupported' - })) - return - } - } - - var length - var opts = options - var stream - - // read options - var verify = opts.verify - - try { - // get the content stream - stream = contentstream(req, debug, opts.inflate) - length = stream.length - stream.length = undefined - } catch (err) { - return next(err) - } - - // set raw-body options - opts.length = length - opts.encoding = verify - ? null - : encoding - - // assert charset is supported - if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) { - return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { - charset: encoding.toLowerCase(), - type: 'charset.unsupported' - })) - } - - // read body - debug('read body') - getBody(stream, opts, function (error, body) { - if (error) { - var _error - - if (error.type === 'encoding.unsupported') { - // echo back charset - _error = createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', { - charset: encoding.toLowerCase(), - type: 'charset.unsupported' - }) - } else { - // set status code on error - _error = createError(400, error) - } - - // unpipe from stream and destroy - if (stream !== req) { - req.unpipe() - stream.destroy() - } - - // read off entire request - dump(req, function onfinished () { - next(createError(400, _error)) - }) - return - } - - // verify - if (verify) { - try { - debug('verify body') - verify(req, res, body, encoding) - } catch (err) { - next(createError(403, err, { - body: body, - type: err.type || 'entity.verify.failed' - })) - return - } - } - - // parse - var str = body - try { - debug('parse body') - str = typeof body !== 'string' && encoding !== null - ? iconv.decode(body, encoding) - : body - req.body = parse(str, encoding) - } catch (err) { - next(createError(400, err, { - body: str, - type: err.type || 'entity.parse.failed' - })) - return - } - - next() - }) -} - -/** - * Get the content stream of the request. - * - * @param {object} req - * @param {function} debug - * @param {boolean} [inflate=true] - * @return {object} - * @api private - */ - -function contentstream (req, debug, inflate) { - var encoding = (req.headers['content-encoding'] || 'identity').toLowerCase() - var length = req.headers['content-length'] - - debug('content-encoding "%s"', encoding) - - if (inflate === false && encoding !== 'identity') { - throw createError(415, 'content encoding unsupported', { - encoding: encoding, - type: 'encoding.unsupported' - }) - } - - if (encoding === 'identity') { - req.length = length - return req - } - - var stream = createDecompressionStream(encoding, debug) - req.pipe(stream) - return stream -} - -/** - * Create a decompression stream for the given encoding. - * @param {string} encoding - * @param {function} debug - * @return {object} - * @api private - */ -function createDecompressionStream (encoding, debug) { - switch (encoding) { - case 'deflate': - debug('inflate body') - return zlib.createInflate() - case 'gzip': - debug('gunzip body') - return zlib.createGunzip() - case 'br': - debug('brotli decompress body') - return zlib.createBrotliDecompress() - default: - throw createError(415, 'unsupported content encoding "' + encoding + '"', { - encoding: encoding, - type: 'encoding.unsupported' - }) - } -} - -/** - * Dump the contents of a request. - * - * @param {object} req - * @param {function} callback - * @api private - */ - -function dump (req, callback) { - if (onFinished.isFinished(req)) { - callback(null) - } else { - onFinished(req, callback) - req.resume() - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js deleted file mode 100644 index 15c54bb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js +++ /dev/null @@ -1,166 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var debug = require('debug')('body-parser:json') -var read = require('../read') -var { normalizeOptions } = require('../utils') - -/** - * Module exports. - */ - -module.exports = json - -/** - * RegExp to match the first non-space in a string. - * - * Allowed whitespace is defined in RFC 7159: - * - * ws = *( - * %x20 / ; Space - * %x09 / ; Horizontal tab - * %x0A / ; Line feed or New line - * %x0D ) ; Carriage return - */ - -var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/ // eslint-disable-line no-control-regex - -var JSON_SYNTAX_CHAR = '#' -var JSON_SYNTAX_REGEXP = /#+/g - -/** - * Create a middleware to parse JSON bodies. - * - * @param {object} [options] - * @return {function} - * @public - */ - -function json (options) { - const normalizedOptions = normalizeOptions(options, 'application/json') - - var reviver = options?.reviver - var strict = options?.strict !== false - - function parse (body) { - if (body.length === 0) { - // special-case empty json body, as it's a common client-side mistake - // TODO: maybe make this configurable or part of "strict" option - return {} - } - - if (strict) { - var first = firstchar(body) - - if (first !== '{' && first !== '[') { - debug('strict violation') - throw createStrictSyntaxError(body, first) - } - } - - try { - debug('parse json') - return JSON.parse(body, reviver) - } catch (e) { - throw normalizeJsonSyntaxError(e, { - message: e.message, - stack: e.stack - }) - } - } - - const readOptions = { - ...normalizedOptions, - // assert charset per RFC 7159 sec 8.1 - isValidCharset: (charset) => charset.slice(0, 4) === 'utf-' - } - - return function jsonParser (req, res, next) { - read(req, res, next, parse, debug, readOptions) - } -} - -/** - * Create strict violation syntax error matching native error. - * - * @param {string} str - * @param {string} char - * @return {Error} - * @private - */ - -function createStrictSyntaxError (str, char) { - var index = str.indexOf(char) - var partial = '' - - if (index !== -1) { - partial = str.substring(0, index) + JSON_SYNTAX_CHAR - - for (var i = index + 1; i < str.length; i++) { - partial += JSON_SYNTAX_CHAR - } - } - - try { - JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation') - } catch (e) { - return normalizeJsonSyntaxError(e, { - message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) { - return str.substring(index, index + placeholder.length) - }), - stack: e.stack - }) - } -} - -/** - * Get the first non-whitespace character in a string. - * - * @param {string} str - * @return {function} - * @private - */ - -function firstchar (str) { - var match = FIRST_CHAR_REGEXP.exec(str) - - return match - ? match[1] - : undefined -} - -/** - * Normalize a SyntaxError for JSON.parse. - * - * @param {SyntaxError} error - * @param {object} obj - * @return {SyntaxError} - */ - -function normalizeJsonSyntaxError (error, obj) { - var keys = Object.getOwnPropertyNames(error) - - for (var i = 0; i < keys.length; i++) { - var key = keys[i] - if (key !== 'stack' && key !== 'message') { - delete error[key] - } - } - - // replace stack before message for Node.js 0.10 and below - error.stack = obj.stack.replace(error.message, obj.message) - error.message = obj.message - - return error -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js deleted file mode 100644 index 04b1b88..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - */ - -var debug = require('debug')('body-parser:raw') -var read = require('../read') -var { normalizeOptions, passthrough } = require('../utils') - -/** - * Module exports. - */ - -module.exports = raw - -/** - * Create a middleware to parse raw bodies. - * - * @param {object} [options] - * @return {function} - * @api public - */ - -function raw (options) { - const normalizedOptions = normalizeOptions(options, 'application/octet-stream') - - const readOptions = { - ...normalizedOptions, - // Skip charset validation and parse the body as is - skipCharset: true - } - - return function rawParser (req, res, next) { - read(req, res, next, passthrough, debug, readOptions) - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js deleted file mode 100644 index d4c7e3b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - */ - -var debug = require('debug')('body-parser:text') -var read = require('../read') -var { normalizeOptions, passthrough } = require('../utils') - -/** - * Module exports. - */ - -module.exports = text - -/** - * Create a middleware to parse text bodies. - * - * @param {object} [options] - * @return {function} - * @api public - */ - -function text (options) { - const normalizedOptions = normalizeOptions(options, 'text/plain') - - return function textParser (req, res, next) { - read(req, res, next, passthrough, debug, normalizedOptions) - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js deleted file mode 100644 index 9240937..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js +++ /dev/null @@ -1,142 +0,0 @@ -/*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var createError = require('http-errors') -var debug = require('debug')('body-parser:urlencoded') -var read = require('../read') -var qs = require('qs') -var { normalizeOptions } = require('../utils') - -/** - * Module exports. - */ - -module.exports = urlencoded - -/** - * Create a middleware to parse urlencoded bodies. - * - * @param {object} [options] - * @return {function} - * @public - */ - -function urlencoded (options) { - const normalizedOptions = normalizeOptions(options, 'application/x-www-form-urlencoded') - - if (normalizedOptions.defaultCharset !== 'utf-8' && normalizedOptions.defaultCharset !== 'iso-8859-1') { - throw new TypeError('option defaultCharset must be either utf-8 or iso-8859-1') - } - - // create the appropriate query parser - var queryparse = createQueryParser(options) - - function parse (body, encoding) { - return body.length - ? queryparse(body, encoding) - : {} - } - - const readOptions = { - ...normalizedOptions, - // assert charset - isValidCharset: (charset) => charset === 'utf-8' || charset === 'iso-8859-1' - } - - return function urlencodedParser (req, res, next) { - read(req, res, next, parse, debug, readOptions) - } -} - -/** - * Get the extended query parser. - * - * @param {object} options - */ - -function createQueryParser (options) { - var extended = Boolean(options?.extended) - var parameterLimit = options?.parameterLimit !== undefined - ? options?.parameterLimit - : 1000 - var charsetSentinel = options?.charsetSentinel - var interpretNumericEntities = options?.interpretNumericEntities - var depth = extended ? (options?.depth !== undefined ? options?.depth : 32) : 0 - - if (isNaN(parameterLimit) || parameterLimit < 1) { - throw new TypeError('option parameterLimit must be a positive number') - } - - if (isNaN(depth) || depth < 0) { - throw new TypeError('option depth must be a zero or a positive number') - } - - if (isFinite(parameterLimit)) { - parameterLimit = parameterLimit | 0 - } - - return function queryparse (body, encoding) { - var paramCount = parameterCount(body, parameterLimit) - - if (paramCount === undefined) { - debug('too many parameters') - throw createError(413, 'too many parameters', { - type: 'parameters.too.many' - }) - } - - var arrayLimit = extended ? Math.max(100, paramCount) : 0 - - debug('parse ' + (extended ? 'extended ' : '') + 'urlencoding') - try { - return qs.parse(body, { - allowPrototypes: true, - arrayLimit: arrayLimit, - depth: depth, - charsetSentinel: charsetSentinel, - interpretNumericEntities: interpretNumericEntities, - charset: encoding, - parameterLimit: parameterLimit, - strictDepth: true - }) - } catch (err) { - if (err instanceof RangeError) { - throw createError(400, 'The input exceeded the depth', { - type: 'querystring.parse.rangeError' - }) - } else { - throw err - } - } - } -} - -/** - * Count the number of parameters, stopping once limit reached - * - * @param {string} body - * @param {number} limit - * @return {number|undefined} Returns undefined if limit exceeded - * @api private - */ -function parameterCount (body, limit) { - let count = 0 - let index = -1 - do { - count++ - if (count > limit) return undefined // Early exit if limit exceeded - index = body.indexOf('&', index + 1) - } while (index !== -1) - return count -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js deleted file mode 100644 index 5634005..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js +++ /dev/null @@ -1,96 +0,0 @@ -'use strict' - -/** - * Module dependencies. - */ - -var bytes = require('bytes') -var contentType = require('content-type') -var typeis = require('type-is') - -/** - * Module exports. - */ -module.exports = { - getCharset, - normalizeOptions, - passthrough -} - -/** - * Get the charset of a request. - * - * @param {object} req - * @api private - */ - -function getCharset (req) { - try { - return (contentType.parse(req).parameters.charset || '').toLowerCase() - } catch { - return undefined - } -} - -/** - * Get the simple type checker. - * - * @param {string | string[]} type - * @return {function} - */ - -function typeChecker (type) { - return function checkType (req) { - return Boolean(typeis(req, type)) - } -} - -/** - * Normalizes the common options for all parsers. - * - * @param {object} options options to normalize - * @param {string | string[] | function} defaultType default content type(s) or a function to determine it - * @returns {object} - */ -function normalizeOptions (options, defaultType) { - if (!defaultType) { - // Parsers must define a default content type - throw new TypeError('defaultType must be provided') - } - - var inflate = options?.inflate !== false - var limit = typeof options?.limit !== 'number' - ? bytes.parse(options?.limit || '100kb') - : options?.limit - var type = options?.type || defaultType - var verify = options?.verify || false - var defaultCharset = options?.defaultCharset || 'utf-8' - - if (verify !== false && typeof verify !== 'function') { - throw new TypeError('option verify must be function') - } - - // create the appropriate type checking function - var shouldParse = typeof type !== 'function' - ? typeChecker(type) - : type - - return { - inflate, - limit, - verify, - defaultCharset, - shouldParse - } -} - -/** - * Passthrough function that returns input unchanged. - * Used by parsers that don't need to transform the data. - * - * @param {*} value - * @return {*} - */ -function passthrough (value) { - return value -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json deleted file mode 100644 index 596133c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "body-parser", - "description": "Node.js body parsing middleware", - "version": "2.2.1", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "repository": "expressjs/body-parser", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.3", - "http-errors": "^2.0.0", - "iconv-lite": "^0.7.0", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.1", - "type-is": "^2.0.1" - }, - "devDependencies": { - "eslint": "^8.57.1", - "eslint-config-standard": "^14.1.1", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-markdown": "^3.0.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.6.0", - "eslint-plugin-standard": "^4.1.0", - "mocha": "^11.1.0", - "nyc": "^17.1.0", - "supertest": "^7.0.0" - }, - "files": [ - "lib/", - "LICENSE", - "index.js" - ], - "engines": { - "node": ">=18" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks test/", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/HISTORY.md deleted file mode 100644 index 1a3b308..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/HISTORY.md +++ /dev/null @@ -1,72 +0,0 @@ -1.0.1 / 2025-11-18 -================= - - * Updated `engines` field to Node@18 or higher (fixed reference, see 1.0.0) - * Remove dependency `safe-buffer` - -1.0.0 / 2024-08-31 -================== - - * drop node <18 - * allow utf8 as alias for utf-8 - -0.5.4 / 2021-12-10 -================== - - * deps: safe-buffer@5.2.1 - -0.5.3 / 2018-12-17 -================== - - * Use `safe-buffer` for improved Buffer API - -0.5.2 / 2016-12-08 -================== - - * Fix `parse` to accept any linear whitespace character - -0.5.1 / 2016-01-17 -================== - - * perf: enable strict mode - -0.5.0 / 2014-10-11 -================== - - * Add `parse` function - -0.4.0 / 2014-09-21 -================== - - * Expand non-Unicode `filename` to the full ISO-8859-1 charset - -0.3.0 / 2014-09-20 -================== - - * Add `fallback` option - * Add `type` option - -0.2.0 / 2014-09-19 -================== - - * Reduce ambiguity of file names with hex escape in buggy browsers - -0.1.2 / 2014-09-19 -================== - - * Fix periodic invalid Unicode filename header - -0.1.1 / 2014-09-19 -================== - - * Fix invalid characters appearing in `filename*` parameter - -0.1.0 / 2014-09-18 -================== - - * Make the `filename` argument optional - -0.0.0 / 2014-09-18 -================== - - * Initial release diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/LICENSE deleted file mode 100644 index 84441fb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/README.md deleted file mode 100644 index fbedc2f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# content-disposition - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Create and parse HTTP `Content-Disposition` header - -## Installation - -```sh -$ npm install content-disposition -``` - -## API - -```js -const contentDisposition = require('content-disposition') -``` - -### contentDisposition(filename, options) - -Create an attachment `Content-Disposition` header value using the given file name, -if supplied. The `filename` is optional and if no file name is desired, but you -want to specify `options`, set `filename` to `undefined`. - -```js -res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf')) -``` - -**note** HTTP headers are of the ISO-8859-1 character set. If you are writing this -header through a means different from `setHeader` in Node.js, you'll want to specify -the `'binary'` encoding in Node.js. - -#### Options - -`contentDisposition` accepts these properties in the options object. - -##### fallback - -If the `filename` option is outside ISO-8859-1, then the file name is actually -stored in a supplemental field for clients that support Unicode file names and -a ISO-8859-1 version of the file name is automatically generated. - -This specifies the ISO-8859-1 file name to override the automatic generation or -disables the generation all together, defaults to `true`. - - - A string will specify the ISO-8859-1 file name to use in place of automatic - generation. - - `false` will disable including a ISO-8859-1 file name and only include the - Unicode version (unless the file name is already ISO-8859-1). - - `true` will enable automatic generation if the file name is outside ISO-8859-1. - -If the `filename` option is ISO-8859-1 and this option is specified and has a -different value, then the `filename` option is encoded in the extended field -and this set as the fallback field, even though they are both ISO-8859-1. - -##### type - -Specifies the disposition type, defaults to `"attachment"`. This can also be -`"inline"`, or any other value (all values except inline are treated like -`attachment`, but can convey additional information if both parties agree to -it). The type is normalized to lower-case. - -### contentDisposition.parse(string) - -```js -const disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt') -``` - -Parse a `Content-Disposition` header string. This automatically handles extended -("Unicode") parameters by decoding them and providing them under the standard -parameter name. This will return an object with the following properties (examples -are shown for the string `'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'`): - - - `type`: The disposition type (always lower case). Example: `'attachment'` - - - `parameters`: An object of the parameters in the disposition (name of parameter - always lower case and extended versions replace non-extended versions). Example: - `{filename: "€ rates.txt"}` - -## Examples - -### Send a file for download - -```js -const contentDisposition = require('content-disposition') -const destroy = require('destroy') -const fs = require('fs') -const http = require('http') -const onFinished = require('on-finished') - -const filePath = '/path/to/public/plans.pdf' - -http.createServer(function onRequest (req, res) { - // set headers - res.setHeader('Content-Type', 'application/pdf') - res.setHeader('Content-Disposition', contentDisposition(filePath)) - - // send file - const stream = fs.createReadStream(filePath) - stream.pipe(res) - onFinished(res, function () { - destroy(stream) - }) -}) -``` - -## Testing - -```sh -$ npm test -``` - -## References - -- [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1][rfc-2616] -- [RFC 5987: Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters][rfc-5987] -- [RFC 6266: Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)][rfc-6266] -- [Test Cases for HTTP Content-Disposition header field (RFC 6266) and the Encodings defined in RFCs 2047, 2231 and 5987][tc-2231] - -[rfc-2616]: https://tools.ietf.org/html/rfc2616 -[rfc-5987]: https://tools.ietf.org/html/rfc5987 -[rfc-6266]: https://tools.ietf.org/html/rfc6266 -[tc-2231]: http://greenbytes.de/tech/tc2231/ - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/content-disposition -[npm-url]: https://npmjs.org/package/content-disposition -[node-version-image]: https://img.shields.io/node/v/content-disposition -[node-version-url]: https://nodejs.org/en/download -[coveralls-image]: https://img.shields.io/coverallsCoverage/github/jshttp/content-disposition -[coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master -[downloads-image]: https://img.shields.io/npm/dm/content-disposition -[downloads-url]: https://npmjs.org/package/content-disposition -[github-actions-ci-image]: https://img.shields.io/github/actions/workflow/status/jshttp/content-disposition/ci.yml -[github-actions-ci-url]: https://github.com/jshttp/content-disposition/actions/workflows/ci.yml diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/index.js deleted file mode 100644 index efcd9ca..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/index.js +++ /dev/null @@ -1,458 +0,0 @@ -/*! - * content-disposition - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = contentDisposition -module.exports.parse = parse - -/** - * Module dependencies. - * @private - */ - -var basename = require('path').basename - -/** - * RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%") - * @private - */ - -var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g // eslint-disable-line no-control-regex - -/** - * RegExp to match percent encoding escape. - * @private - */ - -var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/ -var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g - -/** - * RegExp to match non-latin1 characters. - * @private - */ - -var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g - -/** - * RegExp to match quoted-pair in RFC 2616 - * - * quoted-pair = "\" CHAR - * CHAR = - * @private - */ - -var QESC_REGEXP = /\\([\u0000-\u007f])/g // eslint-disable-line no-control-regex - -/** - * RegExp to match chars that must be quoted-pair in RFC 2616 - * @private - */ - -var QUOTE_REGEXP = /([\\"])/g - -/** - * RegExp for various RFC 2616 grammar - * - * parameter = token "=" ( token | quoted-string ) - * token = 1* - * separators = "(" | ")" | "<" | ">" | "@" - * | "," | ";" | ":" | "\" | <"> - * | "/" | "[" | "]" | "?" | "=" - * | "{" | "}" | SP | HT - * quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) - * qdtext = > - * quoted-pair = "\" CHAR - * CHAR = - * TEXT = - * LWS = [CRLF] 1*( SP | HT ) - * CRLF = CR LF - * CR = - * LF = - * SP = - * HT = - * CTL = - * OCTET = - * @private - */ - -var PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g // eslint-disable-line no-control-regex -var TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/ -var TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/ - -/** - * RegExp for various RFC 5987 grammar - * - * ext-value = charset "'" [ language ] "'" value-chars - * charset = "UTF-8" / "ISO-8859-1" / mime-charset - * mime-charset = 1*mime-charsetc - * mime-charsetc = ALPHA / DIGIT - * / "!" / "#" / "$" / "%" / "&" - * / "+" / "-" / "^" / "_" / "`" - * / "{" / "}" / "~" - * language = ( 2*3ALPHA [ extlang ] ) - * / 4ALPHA - * / 5*8ALPHA - * extlang = *3( "-" 3ALPHA ) - * value-chars = *( pct-encoded / attr-char ) - * pct-encoded = "%" HEXDIG HEXDIG - * attr-char = ALPHA / DIGIT - * / "!" / "#" / "$" / "&" / "+" / "-" / "." - * / "^" / "_" / "`" / "|" / "~" - * @private - */ - -var EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/ - -/** - * RegExp for various RFC 6266 grammar - * - * disposition-type = "inline" | "attachment" | disp-ext-type - * disp-ext-type = token - * disposition-parm = filename-parm | disp-ext-parm - * filename-parm = "filename" "=" value - * | "filename*" "=" ext-value - * disp-ext-parm = token "=" value - * | ext-token "=" ext-value - * ext-token = - * @private - */ - -var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/ // eslint-disable-line no-control-regex - -/** - * Create an attachment Content-Disposition header. - * - * @param {string} [filename] - * @param {object} [options] - * @param {string} [options.type=attachment] - * @param {string|boolean} [options.fallback=true] - * @return {string} - * @public - */ - -function contentDisposition (filename, options) { - var opts = options || {} - - // get type - var type = opts.type || 'attachment' - - // get parameters - var params = createparams(filename, opts.fallback) - - // format into string - return format(new ContentDisposition(type, params)) -} - -/** - * Create parameters object from filename and fallback. - * - * @param {string} [filename] - * @param {string|boolean} [fallback=true] - * @return {object} - * @private - */ - -function createparams (filename, fallback) { - if (filename === undefined) { - return - } - - var params = {} - - if (typeof filename !== 'string') { - throw new TypeError('filename must be a string') - } - - // fallback defaults to true - if (fallback === undefined) { - fallback = true - } - - if (typeof fallback !== 'string' && typeof fallback !== 'boolean') { - throw new TypeError('fallback must be a string or boolean') - } - - if (typeof fallback === 'string' && NON_LATIN1_REGEXP.test(fallback)) { - throw new TypeError('fallback must be ISO-8859-1 string') - } - - // restrict to file base name - var name = basename(filename) - - // determine if name is suitable for quoted string - var isQuotedString = TEXT_REGEXP.test(name) - - // generate fallback name - var fallbackName = typeof fallback !== 'string' - ? fallback && getlatin1(name) - : basename(fallback) - var hasFallback = typeof fallbackName === 'string' && fallbackName !== name - - // set extended filename parameter - if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) { - params['filename*'] = name - } - - // set filename parameter - if (isQuotedString || hasFallback) { - params.filename = hasFallback - ? fallbackName - : name - } - - return params -} - -/** - * Format object to Content-Disposition header. - * - * @param {object} obj - * @param {string} obj.type - * @param {object} [obj.parameters] - * @return {string} - * @private - */ - -function format (obj) { - var parameters = obj.parameters - var type = obj.type - - if (!type || typeof type !== 'string' || !TOKEN_REGEXP.test(type)) { - throw new TypeError('invalid type') - } - - // start with normalized type - var string = String(type).toLowerCase() - - // append parameters - if (parameters && typeof parameters === 'object') { - var param - var params = Object.keys(parameters).sort() - - for (var i = 0; i < params.length; i++) { - param = params[i] - - var val = param.slice(-1) === '*' - ? ustring(parameters[param]) - : qstring(parameters[param]) - - string += '; ' + param + '=' + val - } - } - - return string -} - -/** - * Decode a RFC 5987 field value (gracefully). - * - * @param {string} str - * @return {string} - * @private - */ - -function decodefield (str) { - var match = EXT_VALUE_REGEXP.exec(str) - - if (!match) { - throw new TypeError('invalid extended field value') - } - - var charset = match[1].toLowerCase() - var encoded = match[2] - var value - - // to binary string - var binary = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode) - - switch (charset) { - case 'iso-8859-1': - value = getlatin1(binary) - break - case 'utf-8': - case 'utf8': - value = Buffer.from(binary, 'binary').toString('utf8') - break - default: - throw new TypeError('unsupported charset in extended field') - } - - return value -} - -/** - * Get ISO-8859-1 version of string. - * - * @param {string} val - * @return {string} - * @private - */ - -function getlatin1 (val) { - // simple Unicode -> ISO-8859-1 transformation - return String(val).replace(NON_LATIN1_REGEXP, '?') -} - -/** - * Parse Content-Disposition header string. - * - * @param {string} string - * @return {object} - * @public - */ - -function parse (string) { - if (!string || typeof string !== 'string') { - throw new TypeError('argument string is required') - } - - var match = DISPOSITION_TYPE_REGEXP.exec(string) - - if (!match) { - throw new TypeError('invalid type format') - } - - // normalize type - var index = match[0].length - var type = match[1].toLowerCase() - - var key - var names = [] - var params = {} - var value - - // calculate index to start at - index = PARAM_REGEXP.lastIndex = match[0].slice(-1) === ';' - ? index - 1 - : index - - // match parameters - while ((match = PARAM_REGEXP.exec(string))) { - if (match.index !== index) { - throw new TypeError('invalid parameter format') - } - - index += match[0].length - key = match[1].toLowerCase() - value = match[2] - - if (names.indexOf(key) !== -1) { - throw new TypeError('invalid duplicate parameter') - } - - names.push(key) - - if (key.indexOf('*') + 1 === key.length) { - // decode extended value - key = key.slice(0, -1) - value = decodefield(value) - - // overwrite existing value - params[key] = value - continue - } - - if (typeof params[key] === 'string') { - continue - } - - if (value[0] === '"') { - // remove quotes and escapes - value = value - .slice(1, -1) - .replace(QESC_REGEXP, '$1') - } - - params[key] = value - } - - if (index !== -1 && index !== string.length) { - throw new TypeError('invalid parameter format') - } - - return new ContentDisposition(type, params) -} - -/** - * Percent decode a single character. - * - * @param {string} str - * @param {string} hex - * @return {string} - * @private - */ - -function pdecode (str, hex) { - return String.fromCharCode(parseInt(hex, 16)) -} - -/** - * Percent encode a single character. - * - * @param {string} char - * @return {string} - * @private - */ - -function pencode (char) { - return '%' + String(char) - .charCodeAt(0) - .toString(16) - .toUpperCase() -} - -/** - * Quote a string for HTTP. - * - * @param {string} val - * @return {string} - * @private - */ - -function qstring (val) { - var str = String(val) - - return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"' -} - -/** - * Encode a Unicode string for HTTP (RFC 5987). - * - * @param {string} val - * @return {string} - * @private - */ - -function ustring (val) { - var str = String(val) - - // percent encode as UTF-8 - var encoded = encodeURIComponent(str) - .replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode) - - return 'UTF-8\'\'' + encoded -} - -/** - * Class for parsed Content-Disposition header for v8 optimization - * - * @public - * @param {string} type - * @param {object} parameters - * @constructor - */ - -function ContentDisposition (type, parameters) { - this.type = type - this.parameters = parameters -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/package.json deleted file mode 100644 index a44034c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "content-disposition", - "description": "Create and parse Content-Disposition header", - "version": "1.0.1", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "keywords": [ - "content-disposition", - "http", - "rfc6266", - "res" - ], - "repository": "jshttp/content-disposition", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "devDependencies": { - "c8": "^10.1.2", - "eslint": "7.32.0", - "eslint-config-standard": "13.0.1", - "eslint-plugin-import": "2.25.3", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "README.md", - "index.js" - ], - "engines": { - "node": ">=18" - }, - "scripts": { - "lint": "eslint .", - "test": "node --test --test-reporter spec", - "test-ci": "c8 --reporter=lcovonly --reporter=text npm test", - "test-cov": "c8 --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/History.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/History.md deleted file mode 100644 index 479211a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/History.md +++ /dev/null @@ -1,70 +0,0 @@ -1.2.2 / 2024-10-29 -================== - -* various metadata/documentation tweaks (incl. #51) - - -1.2.1 / 2023-02-27 -================== - -* update annotations for allowed secret key types (#44, thanks @jyasskin!) - - -1.2.0 / 2022-02-17 -================== - -* allow buffer and other node-supported types as key (#33) -* be pickier about extra content after signed portion (#40) -* some internal code clarity/cleanup improvements (#26) - - -1.1.0 / 2018-01-18 -================== - -* switch to built-in `crypto.timingSafeEqual` for validation instead of previous double-hash method (thank you @jodevsa!) - - -1.0.7 / 2023-04-12 -================== - -Later release for older node.js versions. See the [v1.0.x branch notes](https://github.com/tj/node-cookie-signature/blob/v1.0.x/History.md#107--2023-04-12). - - -1.0.6 / 2015-02-03 -================== - -* use `npm test` instead of `make test` to run tests -* clearer assertion messages when checking input - - -1.0.5 / 2014-09-05 -================== - -* add license to package.json - -1.0.4 / 2014-06-25 -================== - - * corrected avoidance of timing attacks (thanks @tenbits!) - -1.0.3 / 2014-01-28 -================== - - * [incorrect] fix for timing attacks - -1.0.2 / 2014-01-28 -================== - - * fix missing repository warning - * fix typo in test - -1.0.1 / 2013-04-15 -================== - - * Revert "Changed underlying HMAC algo. to sha512." - * Revert "Fix for timing attacks on MAC verification." - -0.0.1 / 2010-01-03 -================== - - * Initial release diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/LICENSE deleted file mode 100644 index a2671bf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2012–2024 LearnBoost and other contributors; - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/Readme.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/Readme.md deleted file mode 100644 index 369af15..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/Readme.md +++ /dev/null @@ -1,23 +0,0 @@ - -# cookie-signature - - Sign and unsign cookies. - -## Example - -```js -var cookie = require('cookie-signature'); - -var val = cookie.sign('hello', 'tobiiscool'); -val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI'); - -var val = cookie.sign('hello', 'tobiiscool'); -cookie.unsign(val, 'tobiiscool').should.equal('hello'); -cookie.unsign(val, 'luna').should.be.false; -``` - -## License - -MIT. - -See LICENSE file for details. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/index.js deleted file mode 100644 index 3fbbddb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/index.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Module dependencies. - */ - -var crypto = require('crypto'); - -/** - * Sign the given `val` with `secret`. - * - * @param {String} val - * @param {String|NodeJS.ArrayBufferView|crypto.KeyObject} secret - * @return {String} - * @api private - */ - -exports.sign = function(val, secret){ - if ('string' != typeof val) throw new TypeError("Cookie value must be provided as a string."); - if (null == secret) throw new TypeError("Secret key must be provided."); - return val + '.' + crypto - .createHmac('sha256', secret) - .update(val) - .digest('base64') - .replace(/\=+$/, ''); -}; - -/** - * Unsign and decode the given `input` with `secret`, - * returning `false` if the signature is invalid. - * - * @param {String} input - * @param {String|NodeJS.ArrayBufferView|crypto.KeyObject} secret - * @return {String|Boolean} - * @api private - */ - -exports.unsign = function(input, secret){ - if ('string' != typeof input) throw new TypeError("Signed cookie string must be provided."); - if (null == secret) throw new TypeError("Secret key must be provided."); - var tentativeValue = input.slice(0, input.lastIndexOf('.')), - expectedInput = exports.sign(tentativeValue, secret), - expectedBuffer = Buffer.from(expectedInput), - inputBuffer = Buffer.from(input); - return ( - expectedBuffer.length === inputBuffer.length && - crypto.timingSafeEqual(expectedBuffer, inputBuffer) - ) ? tentativeValue : false; -}; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/package.json deleted file mode 100644 index a160040..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "cookie-signature", - "version": "1.2.2", - "main": "index.js", - "description": "Sign and unsign cookies", - "keywords": ["cookie", "sign", "unsign"], - "author": "TJ Holowaychuk ", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/visionmedia/node-cookie-signature.git" - }, - "dependencies": {}, - "engines": { - "node": ">=6.6.0" - }, - "devDependencies": { - "mocha": "*", - "should": "*" - }, - "scripts": { - "test": "mocha --require should --reporter spec" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/LICENSE deleted file mode 100644 index 1a9820e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software -and associated documentation files (the 'Software'), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/README.md deleted file mode 100644 index 9ebdfbf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/README.md +++ /dev/null @@ -1,481 +0,0 @@ -# debug -[![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors) - - - -A tiny JavaScript debugging utility modelled after Node.js core's debugging -technique. Works in Node.js and web browsers. - -## Installation - -```bash -$ npm install debug -``` - -## Usage - -`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole. - -Example [_app.js_](./examples/node/app.js): - -```js -var debug = require('debug')('http') - , http = require('http') - , name = 'My App'; - -// fake app - -debug('booting %o', name); - -http.createServer(function(req, res){ - debug(req.method + ' ' + req.url); - res.end('hello\n'); -}).listen(3000, function(){ - debug('listening'); -}); - -// fake worker of some kind - -require('./worker'); -``` - -Example [_worker.js_](./examples/node/worker.js): - -```js -var a = require('debug')('worker:a') - , b = require('debug')('worker:b'); - -function work() { - a('doing lots of uninteresting work'); - setTimeout(work, Math.random() * 1000); -} - -work(); - -function workb() { - b('doing some work'); - setTimeout(workb, Math.random() * 2000); -} - -workb(); -``` - -The `DEBUG` environment variable is then used to enable these based on space or -comma-delimited names. - -Here are some examples: - -screen shot 2017-08-08 at 12 53 04 pm -screen shot 2017-08-08 at 12 53 38 pm -screen shot 2017-08-08 at 12 53 25 pm - -#### Windows command prompt notes - -##### CMD - -On Windows the environment variable is set using the `set` command. - -```cmd -set DEBUG=*,-not_this -``` - -Example: - -```cmd -set DEBUG=* & node app.js -``` - -##### PowerShell (VS Code default) - -PowerShell uses different syntax to set environment variables. - -```cmd -$env:DEBUG = "*,-not_this" -``` - -Example: - -```cmd -$env:DEBUG='app';node app.js -``` - -Then, run the program to be debugged as usual. - -npm script example: -```js - "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js", -``` - -## Namespace Colors - -Every debug instance has a color generated for it based on its namespace name. -This helps when visually parsing the debug output to identify which debug instance -a debug line belongs to. - -#### Node.js - -In Node.js, colors are enabled when stderr is a TTY. You also _should_ install -the [`supports-color`](https://npmjs.org/supports-color) module alongside debug, -otherwise debug will only use a small handful of basic colors. - - - -#### Web Browser - -Colors are also enabled on "Web Inspectors" that understand the `%c` formatting -option. These are WebKit web inspectors, Firefox ([since version -31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/)) -and the Firebug plugin for Firefox (any version). - - - - -## Millisecond diff - -When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls. - - - -When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below: - - - - -## Conventions - -If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output. - -## Wildcards - -The `*` character may be used as a wildcard. Suppose for example your library has -debuggers named "connect:bodyParser", "connect:compress", "connect:session", -instead of listing all three with -`DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do -`DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`. - -You can also exclude specific debuggers by prefixing them with a "-" character. -For example, `DEBUG=*,-connect:*` would include all debuggers except those -starting with "connect:". - -## Environment Variables - -When running through Node.js, you can set a few environment variables that will -change the behavior of the debug logging: - -| Name | Purpose | -|-----------|-------------------------------------------------| -| `DEBUG` | Enables/disables specific debugging namespaces. | -| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). | -| `DEBUG_COLORS`| Whether or not to use colors in the debug output. | -| `DEBUG_DEPTH` | Object inspection depth. | -| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. | - - -__Note:__ The environment variables beginning with `DEBUG_` end up being -converted into an Options object that gets used with `%o`/`%O` formatters. -See the Node.js documentation for -[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options) -for the complete list. - -## Formatters - -Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. -Below are the officially supported formatters: - -| Formatter | Representation | -|-----------|----------------| -| `%O` | Pretty-print an Object on multiple lines. | -| `%o` | Pretty-print an Object all on a single line. | -| `%s` | String. | -| `%d` | Number (both integer and float). | -| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. | -| `%%` | Single percent sign ('%'). This does not consume an argument. | - - -### Custom formatters - -You can add custom formatters by extending the `debug.formatters` object. -For example, if you wanted to add support for rendering a Buffer as hex with -`%h`, you could do something like: - -```js -const createDebug = require('debug') -createDebug.formatters.h = (v) => { - return v.toString('hex') -} - -// …elsewhere -const debug = createDebug('foo') -debug('this is hex: %h', new Buffer('hello world')) -// foo this is hex: 68656c6c6f20776f726c6421 +0ms -``` - - -## Browser Support - -You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify), -or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest), -if you don't want to build it yourself. - -Debug's enable state is currently persisted by `localStorage`. -Consider the situation shown below where you have `worker:a` and `worker:b`, -and wish to debug both. You can enable this using `localStorage.debug`: - -```js -localStorage.debug = 'worker:*' -``` - -And then refresh the page. - -```js -a = debug('worker:a'); -b = debug('worker:b'); - -setInterval(function(){ - a('doing some work'); -}, 1000); - -setInterval(function(){ - b('doing some work'); -}, 1200); -``` - -In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_. - - - -## Output streams - - By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method: - -Example [_stdout.js_](./examples/node/stdout.js): - -```js -var debug = require('debug'); -var error = debug('app:error'); - -// by default stderr is used -error('goes to stderr!'); - -var log = debug('app:log'); -// set this namespace to log via console.log -log.log = console.log.bind(console); // don't forget to bind to console! -log('goes to stdout'); -error('still goes to stderr!'); - -// set all output to go via console.info -// overrides all per-namespace log settings -debug.log = console.info.bind(console); -error('now goes to stdout via console.info'); -log('still goes to stdout, but via console.info now'); -``` - -## Extend -You can simply extend debugger -```js -const log = require('debug')('auth'); - -//creates new debug instance with extended namespace -const logSign = log.extend('sign'); -const logLogin = log.extend('login'); - -log('hello'); // auth hello -logSign('hello'); //auth:sign hello -logLogin('hello'); //auth:login hello -``` - -## Set dynamically - -You can also enable debug dynamically by calling the `enable()` method : - -```js -let debug = require('debug'); - -console.log(1, debug.enabled('test')); - -debug.enable('test'); -console.log(2, debug.enabled('test')); - -debug.disable(); -console.log(3, debug.enabled('test')); - -``` - -print : -``` -1 false -2 true -3 false -``` - -Usage : -`enable(namespaces)` -`namespaces` can include modes separated by a colon and wildcards. - -Note that calling `enable()` completely overrides previously set DEBUG variable : - -``` -$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))' -=> false -``` - -`disable()` - -Will disable all namespaces. The functions returns the namespaces currently -enabled (and skipped). This can be useful if you want to disable debugging -temporarily without knowing what was enabled to begin with. - -For example: - -```js -let debug = require('debug'); -debug.enable('foo:*,-foo:bar'); -let namespaces = debug.disable(); -debug.enable(namespaces); -``` - -Note: There is no guarantee that the string will be identical to the initial -enable string, but semantically they will be identical. - -## Checking whether a debug target is enabled - -After you've created a debug instance, you can determine whether or not it is -enabled by checking the `enabled` property: - -```javascript -const debug = require('debug')('http'); - -if (debug.enabled) { - // do stuff... -} -``` - -You can also manually toggle this property to force the debug instance to be -enabled or disabled. - -## Usage in child processes - -Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process. -For example: - -```javascript -worker = fork(WORKER_WRAP_PATH, [workerPath], { - stdio: [ - /* stdin: */ 0, - /* stdout: */ 'pipe', - /* stderr: */ 'pipe', - 'ipc', - ], - env: Object.assign({}, process.env, { - DEBUG_COLORS: 1 // without this settings, colors won't be shown - }), -}); - -worker.stderr.pipe(process.stderr, { end: false }); -``` - - -## Authors - - - TJ Holowaychuk - - Nathan Rajlich - - Andrew Rhyne - - Josh Junon - -## Backers - -Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)] - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sponsors - -Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## License - -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/package.json deleted file mode 100644 index ee8abb5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "debug", - "version": "4.4.3", - "repository": { - "type": "git", - "url": "git://github.com/debug-js/debug.git" - }, - "description": "Lightweight debugging utility for Node.js and the browser", - "keywords": [ - "debug", - "log", - "debugger" - ], - "files": [ - "src", - "LICENSE", - "README.md" - ], - "author": "Josh Junon (https://github.com/qix-)", - "contributors": [ - "TJ Holowaychuk ", - "Nathan Rajlich (http://n8.io)", - "Andrew Rhyne " - ], - "license": "MIT", - "scripts": { - "lint": "xo", - "test": "npm run test:node && npm run test:browser && npm run lint", - "test:node": "mocha test.js test.node.js", - "test:browser": "karma start --single-run", - "test:coverage": "cat ./coverage/lcov.info | coveralls" - }, - "dependencies": { - "ms": "^2.1.3" - }, - "devDependencies": { - "brfs": "^2.0.1", - "browserify": "^16.2.3", - "coveralls": "^3.0.2", - "karma": "^3.1.4", - "karma-browserify": "^6.0.0", - "karma-chrome-launcher": "^2.2.0", - "karma-mocha": "^1.3.0", - "mocha": "^5.2.0", - "mocha-lcov-reporter": "^1.2.0", - "sinon": "^14.0.0", - "xo": "^0.23.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - }, - "main": "./src/index.js", - "browser": "./src/browser.js", - "engines": { - "node": ">=6.0" - }, - "xo": { - "rules": { - "import/extensions": "off" - } - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/browser.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/browser.js deleted file mode 100644 index 5993451..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/browser.js +++ /dev/null @@ -1,272 +0,0 @@ -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; -})(); - -/** - * Colors. - */ - -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - let m; - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - // eslint-disable-next-line no-return-assign - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public - */ -exports.log = console.debug || console.log || (() => {}); - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/common.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/common.js deleted file mode 100644 index 141cb57..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/common.js +++ /dev/null @@ -1,292 +0,0 @@ - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = require('ms'); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. - - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); - - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - return debug; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - - createDebug.names = []; - createDebug.skips = []; - - const split = (typeof namespaces === 'string' ? namespaces : '') - .trim() - .replace(/\s+/g, ',') - .split(',') - .filter(Boolean); - - for (const ns of split) { - if (ns[0] === '-') { - createDebug.skips.push(ns.slice(1)); - } else { - createDebug.names.push(ns); - } - } - } - - /** - * Checks if the given string matches a namespace template, honoring - * asterisks as wildcards. - * - * @param {String} search - * @param {String} template - * @return {Boolean} - */ - function matchesTemplate(search, template) { - let searchIndex = 0; - let templateIndex = 0; - let starIndex = -1; - let matchIndex = 0; - - while (searchIndex < search.length) { - if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) { - // Match character or proceed with wildcard - if (template[templateIndex] === '*') { - starIndex = templateIndex; - matchIndex = searchIndex; - templateIndex++; // Skip the '*' - } else { - searchIndex++; - templateIndex++; - } - } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition - // Backtrack to the last '*' and try to match more characters - templateIndex = starIndex + 1; - matchIndex++; - searchIndex = matchIndex; - } else { - return false; // No match - } - } - - // Handle trailing '*' in template - while (templateIndex < template.length && template[templateIndex] === '*') { - templateIndex++; - } - - return templateIndex === template.length; - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names, - ...createDebug.skips.map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - for (const skip of createDebug.skips) { - if (matchesTemplate(name, skip)) { - return false; - } - } - - for (const ns of createDebug.names) { - if (matchesTemplate(name, ns)) { - return true; - } - } - - return false; - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - - createDebug.enable(createDebug.load()); - - return createDebug; -} - -module.exports = setup; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/index.js deleted file mode 100644 index bf4c57f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/index.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = require('./browser.js'); -} else { - module.exports = require('./node.js'); -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/node.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/node.js deleted file mode 100644 index 715560a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/node.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * Module dependencies. - */ - -const tty = require('tty'); -const util = require('util'); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = require('supports-color'); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/LICENSE deleted file mode 100644 index aa927e4..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2009-2014 TJ Holowaychuk -Copyright (c) 2013-2014 Roman Shtylman -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/Readme.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/Readme.md deleted file mode 100644 index 4c5b6f7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/Readme.md +++ /dev/null @@ -1,276 +0,0 @@ -[![Express Logo](https://i.cloudup.com/zfY6lL7eFa-3000x3000.png)](https://expressjs.com/) - -**Fast, unopinionated, minimalist web framework for [Node.js](https://nodejs.org).** - -**This project has a [Code of Conduct].** - -## Table of contents - -- [Table of contents](#table-of-contents) -- [Installation](#installation) -- [Features](#features) -- [Docs \& Community](#docs--community) -- [Quick Start](#quick-start) -- [Philosophy](#philosophy) -- [Examples](#examples) -- [Contributing](#contributing) - - [Security Issues](#security-issues) - - [Running Tests](#running-tests) -- [Current project team members](#current-project-team-members) - - [TC (Technical Committee)](#tc-technical-committee) - - [TC emeriti members](#tc-emeriti-members) - - [Triagers](#triagers) - - [Emeritus Triagers](#emeritus-triagers) -- [License](#license) - - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-downloads-url] -[![Linux Build][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] -[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer] - - -```js -import express from 'express' - -const app = express() - -app.get('/', (req, res) => { - res.send('Hello World') -}) - -app.listen(3000, () => { - console.log('Server is running on http://localhost:3000') -}) -``` - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). - -Before installing, [download and install Node.js](https://nodejs.org/en/download/). -Node.js 18 or higher is required. - -If this is a brand new project, make sure to create a `package.json` first with -the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file). - -Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```bash -npm install express -``` - -Follow [our installing guide](https://expressjs.com/en/starter/installing.html) -for more information. - -## Features - - * Robust routing - * Focus on high performance - * Super-high test coverage - * HTTP helpers (redirection, caching, etc) - * View system supporting 14+ template engines - * Content negotiation - * Executable for generating applications quickly - -## Docs & Community - - * [Website and Documentation](https://expressjs.com/) - [[website repo](https://github.com/expressjs/expressjs.com)] - * [GitHub Organization](https://github.com/expressjs) for Official Middleware & Modules - * [Github Discussions](https://github.com/expressjs/discussions) for discussion on the development and usage of Express - -**PROTIP** Be sure to read the [migration guide to v5](https://expressjs.com/en/guide/migrating-5) - -## Quick Start - - The quickest way to get started with express is to utilize the executable [`express(1)`](https://github.com/expressjs/generator) to generate an application as shown below: - - Install the executable. The executable's major version will match Express's: - -```bash -npm install -g express-generator@4 -``` - - Create the app: - -```bash -express /tmp/foo && cd /tmp/foo -``` - - Install dependencies: - -```bash -npm install -``` - - Start the server: - -```bash -npm start -``` - - View the website at: http://localhost:3000 - -## Philosophy - - The Express philosophy is to provide small, robust tooling for HTTP servers, making - it a great solution for single page applications, websites, hybrids, or public - HTTP APIs. - - Express does not force you to use any specific ORM or template engine. With support for over - 14 template engines via [@ladjs/consolidate](https://github.com/ladjs/consolidate), - you can quickly craft your perfect framework. - -## Examples - - To view the examples, clone the Express repository: - -```bash -git clone https://github.com/expressjs/express.git --depth 1 && cd express -``` - - Then install the dependencies: - -```bash -npm install -``` - - Then run whichever example you want: - -```bash -node examples/content-negotiation -``` - -## Contributing - -The Express.js project welcomes all constructive contributions. Contributions take many forms, -from code for bug fixes and enhancements, to additions and fixes to documentation, additional -tests, triaging incoming pull requests and issues, and more! - -See the [Contributing Guide] for more technical details on contributing. - -### Security Issues - -If you discover a security vulnerability in Express, please see [Security Policies and Procedures](SECURITY.md). - -### Running Tests - -To run the test suite, first install the dependencies: - -```bash -npm install -``` - -Then run `npm test`: - -```bash -npm test -``` - -## Current project team members - -For information about the governance of the express.js project, see [GOVERNANCE.md](https://github.com/expressjs/discussions/blob/HEAD/docs/GOVERNANCE.md). - -The original author of Express is [TJ Holowaychuk](https://github.com/tj) - -[List of all contributors](https://github.com/expressjs/express/graphs/contributors) - -### TC (Technical Committee) - -* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him) -* [jonchurch](https://github.com/jonchurch) - **Jon Church** -* [wesleytodd](https://github.com/wesleytodd) - **Wes Todd** -* [LinusU](https://github.com/LinusU) - **Linus Unnebäck** -* [blakeembrey](https://github.com/blakeembrey) - **Blake Embrey** -* [sheplu](https://github.com/sheplu) - **Jean Burellier** -* [crandmck](https://github.com/crandmck) - **Rand McKinney** -* [ctcpip](https://github.com/ctcpip) - **Chris de Almeida** - -
-TC emeriti members - -#### TC emeriti members - - * [dougwilson](https://github.com/dougwilson) - **Douglas Wilson** - * [hacksparrow](https://github.com/hacksparrow) - **Hage Yaapa** - * [jonathanong](https://github.com/jonathanong) - **jongleberry** - * [niftylettuce](https://github.com/niftylettuce) - **niftylettuce** - * [troygoode](https://github.com/troygoode) - **Troy Goode** -
- - -### Triagers - -* [aravindvnair99](https://github.com/aravindvnair99) - **Aravind Nair** -* [bjohansebas](https://github.com/bjohansebas) - **Sebastian Beltran** -* [carpasse](https://github.com/carpasse) - **Carlos Serrano** -* [CBID2](https://github.com/CBID2) - **Christine Belzie** -* [UlisesGascon](https://github.com/UlisesGascon) - **Ulises Gascón** (he/him) -* [IamLizu](https://github.com/IamLizu) - **S M Mahmudul Hasan** (he/him) -* [Phillip9587](https://github.com/Phillip9587) - **Phillip Barta** -* [efekrskl](https://github.com/efekrskl) - **Efe Karasakal** - - -
-Triagers emeriti members - -#### Emeritus Triagers - - * [AuggieH](https://github.com/AuggieH) - **Auggie Hudak** - * [G-Rath](https://github.com/G-Rath) - **Gareth Jones** - * [MohammadXroid](https://github.com/MohammadXroid) - **Mohammad Ayashi** - * [NawafSwe](https://github.com/NawafSwe) - **Nawaf Alsharqi** - * [NotMoni](https://github.com/NotMoni) - **Moni** - * [VigneshMurugan](https://github.com/VigneshMurugan) - **Vignesh Murugan** - * [davidmashe](https://github.com/davidmashe) - **David Ashe** - * [digitaIfabric](https://github.com/digitaIfabric) - **David** - * [e-l-i-s-e](https://github.com/e-l-i-s-e) - **Elise Bonner** - * [fed135](https://github.com/fed135) - **Frederic Charette** - * [firmanJS](https://github.com/firmanJS) - **Firman Abdul Hakim** - * [getspooky](https://github.com/getspooky) - **Yasser Ameur** - * [ghinks](https://github.com/ghinks) - **Glenn** - * [ghousemohamed](https://github.com/ghousemohamed) - **Ghouse Mohamed** - * [gireeshpunathil](https://github.com/gireeshpunathil) - **Gireesh Punathil** - * [jake32321](https://github.com/jake32321) - **Jake Reed** - * [jonchurch](https://github.com/jonchurch) - **Jon Church** - * [lekanikotun](https://github.com/lekanikotun) - **Troy Goode** - * [marsonya](https://github.com/marsonya) - **Lekan Ikotun** - * [mastermatt](https://github.com/mastermatt) - **Matt R. Wilson** - * [maxakuru](https://github.com/maxakuru) - **Max Edell** - * [mlrawlings](https://github.com/mlrawlings) - **Michael Rawlings** - * [rodion-arr](https://github.com/rodion-arr) - **Rodion Abdurakhimov** - * [sheplu](https://github.com/sheplu) - **Jean Burellier** - * [tarunyadav1](https://github.com/tarunyadav1) - **Tarun yadav** - * [tunniclm](https://github.com/tunniclm) - **Mike Tunnicliffe** - * [enyoghasim](https://github.com/enyoghasim) - **David Enyoghasim** - * [0ss](https://github.com/0ss) - **Salah** - * [import-brain](https://github.com/import-brain) - **Eric Cheng** (he/him) - * [dakshkhetan](https://github.com/dakshkhetan) - **Daksh Khetan** (he/him) - * [lucasraziel](https://github.com/lucasraziel) - **Lucas Soares Do Rego** - * [mertcanaltin](https://github.com/mertcanaltin) - **Mert Can Altin** - * [dpopp07](https://github.com/dpopp07) - **Dustin Popp** - * [Sushmeet](https://github.com/Sushmeet) - **Sushmeet Sunger** - * [3imed-jaberi](https://github.com/3imed-jaberi) - **Imed Jaberi** - -
- - -## License - - [MIT](LICENSE) - -[coveralls-image]: https://img.shields.io/coverallsCoverage/github/expressjs/express?branch=master -[coveralls-url]: https://coveralls.io/r/expressjs/express?branch=master -[github-actions-ci-image]: https://img.shields.io/github/actions/workflow/status/expressjs/express/ci.yml?branch=master&label=ci -[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml -[npm-downloads-image]: https://img.shields.io/npm/dm/express -[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true -[npm-url]: https://npmjs.org/package/express -[npm-version-image]: https://img.shields.io/npm/v/express -[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/express/badge -[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/expressjs/express -[Code of Conduct]: https://github.com/expressjs/.github/blob/HEAD/CODE_OF_CONDUCT.md -[Contributing Guide]: https://github.com/expressjs/.github/blob/HEAD/CONTRIBUTING.md diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/index.js deleted file mode 100644 index d219b0c..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/index.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -module.exports = require('./lib/express'); diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/application.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/application.js deleted file mode 100644 index 838b882..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/application.js +++ /dev/null @@ -1,631 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @private - */ - -var finalhandler = require('finalhandler'); -var debug = require('debug')('express:application'); -var View = require('./view'); -var http = require('node:http'); -var methods = require('./utils').methods; -var compileETag = require('./utils').compileETag; -var compileQueryParser = require('./utils').compileQueryParser; -var compileTrust = require('./utils').compileTrust; -var resolve = require('node:path').resolve; -var once = require('once') -var Router = require('router'); - -/** - * Module variables. - * @private - */ - -var slice = Array.prototype.slice; -var flatten = Array.prototype.flat; - -/** - * Application prototype. - */ - -var app = exports = module.exports = {}; - -/** - * Variable for trust proxy inheritance back-compat - * @private - */ - -var trustProxyDefaultSymbol = '@@symbol:trust_proxy_default'; - -/** - * Initialize the server. - * - * - setup default configuration - * - setup default middleware - * - setup route reflection methods - * - * @private - */ - -app.init = function init() { - var router = null; - - this.cache = Object.create(null); - this.engines = Object.create(null); - this.settings = Object.create(null); - - this.defaultConfiguration(); - - // Setup getting to lazily add base router - Object.defineProperty(this, 'router', { - configurable: true, - enumerable: true, - get: function getrouter() { - if (router === null) { - router = new Router({ - caseSensitive: this.enabled('case sensitive routing'), - strict: this.enabled('strict routing') - }); - } - - return router; - } - }); -}; - -/** - * Initialize application configuration. - * @private - */ - -app.defaultConfiguration = function defaultConfiguration() { - var env = process.env.NODE_ENV || 'development'; - - // default settings - this.enable('x-powered-by'); - this.set('etag', 'weak'); - this.set('env', env); - this.set('query parser', 'simple') - this.set('subdomain offset', 2); - this.set('trust proxy', false); - - // trust proxy inherit back-compat - Object.defineProperty(this.settings, trustProxyDefaultSymbol, { - configurable: true, - value: true - }); - - debug('booting in %s mode', env); - - this.on('mount', function onmount(parent) { - // inherit trust proxy - if (this.settings[trustProxyDefaultSymbol] === true - && typeof parent.settings['trust proxy fn'] === 'function') { - delete this.settings['trust proxy']; - delete this.settings['trust proxy fn']; - } - - // inherit protos - Object.setPrototypeOf(this.request, parent.request) - Object.setPrototypeOf(this.response, parent.response) - Object.setPrototypeOf(this.engines, parent.engines) - Object.setPrototypeOf(this.settings, parent.settings) - }); - - // setup locals - this.locals = Object.create(null); - - // top-most app is mounted at / - this.mountpath = '/'; - - // default locals - this.locals.settings = this.settings; - - // default configuration - this.set('view', View); - this.set('views', resolve('views')); - this.set('jsonp callback name', 'callback'); - - if (env === 'production') { - this.enable('view cache'); - } -}; - -/** - * Dispatch a req, res pair into the application. Starts pipeline processing. - * - * If no callback is provided, then default error handlers will respond - * in the event of an error bubbling through the stack. - * - * @private - */ - -app.handle = function handle(req, res, callback) { - // final handler - var done = callback || finalhandler(req, res, { - env: this.get('env'), - onerror: logerror.bind(this) - }); - - // set powered by header - if (this.enabled('x-powered-by')) { - res.setHeader('X-Powered-By', 'Express'); - } - - // set circular references - req.res = res; - res.req = req; - - // alter the prototypes - Object.setPrototypeOf(req, this.request) - Object.setPrototypeOf(res, this.response) - - // setup locals - if (!res.locals) { - res.locals = Object.create(null); - } - - this.router.handle(req, res, done); -}; - -/** - * Proxy `Router#use()` to add middleware to the app router. - * See Router#use() documentation for details. - * - * If the _fn_ parameter is an express app, then it will be - * mounted at the _route_ specified. - * - * @public - */ - -app.use = function use(fn) { - var offset = 0; - var path = '/'; - - // default path to '/' - // disambiguate app.use([fn]) - if (typeof fn !== 'function') { - var arg = fn; - - while (Array.isArray(arg) && arg.length !== 0) { - arg = arg[0]; - } - - // first arg is the path - if (typeof arg !== 'function') { - offset = 1; - path = fn; - } - } - - var fns = flatten.call(slice.call(arguments, offset), Infinity); - - if (fns.length === 0) { - throw new TypeError('app.use() requires a middleware function') - } - - // get router - var router = this.router; - - fns.forEach(function (fn) { - // non-express app - if (!fn || !fn.handle || !fn.set) { - return router.use(path, fn); - } - - debug('.use app under %s', path); - fn.mountpath = path; - fn.parent = this; - - // restore .app property on req and res - router.use(path, function mounted_app(req, res, next) { - var orig = req.app; - fn.handle(req, res, function (err) { - Object.setPrototypeOf(req, orig.request) - Object.setPrototypeOf(res, orig.response) - next(err); - }); - }); - - // mounted an app - fn.emit('mount', this); - }, this); - - return this; -}; - -/** - * Proxy to the app `Router#route()` - * Returns a new `Route` instance for the _path_. - * - * Routes are isolated middleware stacks for specific paths. - * See the Route api docs for details. - * - * @public - */ - -app.route = function route(path) { - return this.router.route(path); -}; - -/** - * Register the given template engine callback `fn` - * as `ext`. - * - * By default will `require()` the engine based on the - * file extension. For example if you try to render - * a "foo.ejs" file Express will invoke the following internally: - * - * app.engine('ejs', require('ejs').__express); - * - * For engines that do not provide `.__express` out of the box, - * or if you wish to "map" a different extension to the template engine - * you may use this method. For example mapping the EJS template engine to - * ".html" files: - * - * app.engine('html', require('ejs').renderFile); - * - * In this case EJS provides a `.renderFile()` method with - * the same signature that Express expects: `(path, options, callback)`, - * though note that it aliases this method as `ejs.__express` internally - * so if you're using ".ejs" extensions you don't need to do anything. - * - * Some template engines do not follow this convention, the - * [Consolidate.js](https://github.com/tj/consolidate.js) - * library was created to map all of node's popular template - * engines to follow this convention, thus allowing them to - * work seamlessly within Express. - * - * @param {String} ext - * @param {Function} fn - * @return {app} for chaining - * @public - */ - -app.engine = function engine(ext, fn) { - if (typeof fn !== 'function') { - throw new Error('callback function required'); - } - - // get file extension - var extension = ext[0] !== '.' - ? '.' + ext - : ext; - - // store engine - this.engines[extension] = fn; - - return this; -}; - -/** - * Proxy to `Router#param()` with one added api feature. The _name_ parameter - * can be an array of names. - * - * See the Router#param() docs for more details. - * - * @param {String|Array} name - * @param {Function} fn - * @return {app} for chaining - * @public - */ - -app.param = function param(name, fn) { - if (Array.isArray(name)) { - for (var i = 0; i < name.length; i++) { - this.param(name[i], fn); - } - - return this; - } - - this.router.param(name, fn); - - return this; -}; - -/** - * Assign `setting` to `val`, or return `setting`'s value. - * - * app.set('foo', 'bar'); - * app.set('foo'); - * // => "bar" - * - * Mounted servers inherit their parent server's settings. - * - * @param {String} setting - * @param {*} [val] - * @return {Server} for chaining - * @public - */ - -app.set = function set(setting, val) { - if (arguments.length === 1) { - // app.get(setting) - return this.settings[setting]; - } - - debug('set "%s" to %o', setting, val); - - // set value - this.settings[setting] = val; - - // trigger matched settings - switch (setting) { - case 'etag': - this.set('etag fn', compileETag(val)); - break; - case 'query parser': - this.set('query parser fn', compileQueryParser(val)); - break; - case 'trust proxy': - this.set('trust proxy fn', compileTrust(val)); - - // trust proxy inherit back-compat - Object.defineProperty(this.settings, trustProxyDefaultSymbol, { - configurable: true, - value: false - }); - - break; - } - - return this; -}; - -/** - * Return the app's absolute pathname - * based on the parent(s) that have - * mounted it. - * - * For example if the application was - * mounted as "/admin", which itself - * was mounted as "/blog" then the - * return value would be "/blog/admin". - * - * @return {String} - * @private - */ - -app.path = function path() { - return this.parent - ? this.parent.path() + this.mountpath - : ''; -}; - -/** - * Check if `setting` is enabled (truthy). - * - * app.enabled('foo') - * // => false - * - * app.enable('foo') - * app.enabled('foo') - * // => true - * - * @param {String} setting - * @return {Boolean} - * @public - */ - -app.enabled = function enabled(setting) { - return Boolean(this.set(setting)); -}; - -/** - * Check if `setting` is disabled. - * - * app.disabled('foo') - * // => true - * - * app.enable('foo') - * app.disabled('foo') - * // => false - * - * @param {String} setting - * @return {Boolean} - * @public - */ - -app.disabled = function disabled(setting) { - return !this.set(setting); -}; - -/** - * Enable `setting`. - * - * @param {String} setting - * @return {app} for chaining - * @public - */ - -app.enable = function enable(setting) { - return this.set(setting, true); -}; - -/** - * Disable `setting`. - * - * @param {String} setting - * @return {app} for chaining - * @public - */ - -app.disable = function disable(setting) { - return this.set(setting, false); -}; - -/** - * Delegate `.VERB(...)` calls to `router.VERB(...)`. - */ - -methods.forEach(function (method) { - app[method] = function (path) { - if (method === 'get' && arguments.length === 1) { - // app.get(setting) - return this.set(path); - } - - var route = this.route(path); - route[method].apply(route, slice.call(arguments, 1)); - return this; - }; -}); - -/** - * Special-cased "all" method, applying the given route `path`, - * middleware, and callback to _every_ HTTP method. - * - * @param {String} path - * @param {Function} ... - * @return {app} for chaining - * @public - */ - -app.all = function all(path) { - var route = this.route(path); - var args = slice.call(arguments, 1); - - for (var i = 0; i < methods.length; i++) { - route[methods[i]].apply(route, args); - } - - return this; -}; - -/** - * Render the given view `name` name with `options` - * and a callback accepting an error and the - * rendered template string. - * - * Example: - * - * app.render('email', { name: 'Tobi' }, function(err, html){ - * // ... - * }) - * - * @param {String} name - * @param {Object|Function} options or fn - * @param {Function} callback - * @public - */ - -app.render = function render(name, options, callback) { - var cache = this.cache; - var done = callback; - var engines = this.engines; - var opts = options; - var view; - - // support callback function as second arg - if (typeof options === 'function') { - done = options; - opts = {}; - } - - // merge options - var renderOptions = { ...this.locals, ...opts._locals, ...opts }; - - // set .cache unless explicitly provided - if (renderOptions.cache == null) { - renderOptions.cache = this.enabled('view cache'); - } - - // primed cache - if (renderOptions.cache) { - view = cache[name]; - } - - // view - if (!view) { - var View = this.get('view'); - - view = new View(name, { - defaultEngine: this.get('view engine'), - root: this.get('views'), - engines: engines - }); - - if (!view.path) { - var dirs = Array.isArray(view.root) && view.root.length > 1 - ? 'directories "' + view.root.slice(0, -1).join('", "') + '" or "' + view.root[view.root.length - 1] + '"' - : 'directory "' + view.root + '"' - var err = new Error('Failed to lookup view "' + name + '" in views ' + dirs); - err.view = view; - return done(err); - } - - // prime the cache - if (renderOptions.cache) { - cache[name] = view; - } - } - - // render - tryRender(view, renderOptions, done); -}; - -/** - * Listen for connections. - * - * A node `http.Server` is returned, with this - * application (which is a `Function`) as its - * callback. If you wish to create both an HTTP - * and HTTPS server you may do so with the "http" - * and "https" modules as shown here: - * - * var http = require('node:http') - * , https = require('node:https') - * , express = require('express') - * , app = express(); - * - * http.createServer(app).listen(80); - * https.createServer({ ... }, app).listen(443); - * - * @return {http.Server} - * @public - */ - -app.listen = function listen() { - var server = http.createServer(this) - var args = slice.call(arguments) - if (typeof args[args.length - 1] === 'function') { - var done = args[args.length - 1] = once(args[args.length - 1]) - server.once('error', done) - } - return server.listen.apply(server, args) -} - -/** - * Log error using console.error. - * - * @param {Error} err - * @private - */ - -function logerror(err) { - /* istanbul ignore next */ - if (this.get('env') !== 'test') console.error(err.stack || err.toString()); -} - -/** - * Try rendering a view. - * @private - */ - -function tryRender(view, options, callback) { - try { - view.render(options, callback); - } catch (err) { - callback(err); - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/express.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/express.js deleted file mode 100644 index 2d502eb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/express.js +++ /dev/null @@ -1,81 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - */ - -var bodyParser = require('body-parser') -var EventEmitter = require('node:events').EventEmitter; -var mixin = require('merge-descriptors'); -var proto = require('./application'); -var Router = require('router'); -var req = require('./request'); -var res = require('./response'); - -/** - * Expose `createApplication()`. - */ - -exports = module.exports = createApplication; - -/** - * Create an express application. - * - * @return {Function} - * @api public - */ - -function createApplication() { - var app = function(req, res, next) { - app.handle(req, res, next); - }; - - mixin(app, EventEmitter.prototype, false); - mixin(app, proto, false); - - // expose the prototype that will get set on requests - app.request = Object.create(req, { - app: { configurable: true, enumerable: true, writable: true, value: app } - }) - - // expose the prototype that will get set on responses - app.response = Object.create(res, { - app: { configurable: true, enumerable: true, writable: true, value: app } - }) - - app.init(); - return app; -} - -/** - * Expose the prototypes. - */ - -exports.application = proto; -exports.request = req; -exports.response = res; - -/** - * Expose constructors. - */ - -exports.Route = Router.Route; -exports.Router = Router; - -/** - * Expose middleware - */ - -exports.json = bodyParser.json -exports.raw = bodyParser.raw -exports.static = require('serve-static'); -exports.text = bodyParser.text -exports.urlencoded = bodyParser.urlencoded diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/request.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/request.js deleted file mode 100644 index 69990da..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/request.js +++ /dev/null @@ -1,514 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @private - */ - -var accepts = require('accepts'); -var isIP = require('node:net').isIP; -var typeis = require('type-is'); -var http = require('node:http'); -var fresh = require('fresh'); -var parseRange = require('range-parser'); -var parse = require('parseurl'); -var proxyaddr = require('proxy-addr'); - -/** - * Request prototype. - * @public - */ - -var req = Object.create(http.IncomingMessage.prototype) - -/** - * Module exports. - * @public - */ - -module.exports = req - -/** - * Return request header. - * - * The `Referrer` header field is special-cased, - * both `Referrer` and `Referer` are interchangeable. - * - * Examples: - * - * req.get('Content-Type'); - * // => "text/plain" - * - * req.get('content-type'); - * // => "text/plain" - * - * req.get('Something'); - * // => undefined - * - * Aliased as `req.header()`. - * - * @param {String} name - * @return {String} - * @public - */ - -req.get = -req.header = function header(name) { - if (!name) { - throw new TypeError('name argument is required to req.get'); - } - - if (typeof name !== 'string') { - throw new TypeError('name must be a string to req.get'); - } - - var lc = name.toLowerCase(); - - switch (lc) { - case 'referer': - case 'referrer': - return this.headers.referrer - || this.headers.referer; - default: - return this.headers[lc]; - } -}; - -/** - * To do: update docs. - * - * Check if the given `type(s)` is acceptable, returning - * the best match when true, otherwise `undefined`, in which - * case you should respond with 406 "Not Acceptable". - * - * The `type` value may be a single MIME type string - * such as "application/json", an extension name - * such as "json", a comma-delimited list such as "json, html, text/plain", - * an argument list such as `"json", "html", "text/plain"`, - * or an array `["json", "html", "text/plain"]`. When a list - * or array is given, the _best_ match, if any is returned. - * - * Examples: - * - * // Accept: text/html - * req.accepts('html'); - * // => "html" - * - * // Accept: text/*, application/json - * req.accepts('html'); - * // => "html" - * req.accepts('text/html'); - * // => "text/html" - * req.accepts('json, text'); - * // => "json" - * req.accepts('application/json'); - * // => "application/json" - * - * // Accept: text/*, application/json - * req.accepts('image/png'); - * req.accepts('png'); - * // => undefined - * - * // Accept: text/*;q=.5, application/json - * req.accepts(['html', 'json']); - * req.accepts('html', 'json'); - * req.accepts('html, json'); - * // => "json" - * - * @param {String|Array} type(s) - * @return {String|Array|Boolean} - * @public - */ - -req.accepts = function(){ - var accept = accepts(this); - return accept.types.apply(accept, arguments); -}; - -/** - * Check if the given `encoding`s are accepted. - * - * @param {String} ...encoding - * @return {String|Array} - * @public - */ - -req.acceptsEncodings = function(){ - var accept = accepts(this); - return accept.encodings.apply(accept, arguments); -}; - -/** - * Check if the given `charset`s are acceptable, - * otherwise you should respond with 406 "Not Acceptable". - * - * @param {String} ...charset - * @return {String|Array} - * @public - */ - -req.acceptsCharsets = function(){ - var accept = accepts(this); - return accept.charsets.apply(accept, arguments); -}; - -/** - * Check if the given `lang`s are acceptable, - * otherwise you should respond with 406 "Not Acceptable". - * - * @param {String} ...lang - * @return {String|Array} - * @public - */ - -req.acceptsLanguages = function(...languages) { - return accepts(this).languages(...languages); -}; - -/** - * Parse Range header field, capping to the given `size`. - * - * Unspecified ranges such as "0-" require knowledge of your resource length. In - * the case of a byte range this is of course the total number of bytes. If the - * Range header field is not given `undefined` is returned, `-1` when unsatisfiable, - * and `-2` when syntactically invalid. - * - * When ranges are returned, the array has a "type" property which is the type of - * range that is required (most commonly, "bytes"). Each array element is an object - * with a "start" and "end" property for the portion of the range. - * - * The "combine" option can be set to `true` and overlapping & adjacent ranges - * will be combined into a single range. - * - * NOTE: remember that ranges are inclusive, so for example "Range: users=0-3" - * should respond with 4 users when available, not 3. - * - * @param {number} size - * @param {object} [options] - * @param {boolean} [options.combine=false] - * @return {number|array} - * @public - */ - -req.range = function range(size, options) { - var range = this.get('Range'); - if (!range) return; - return parseRange(size, range, options); -}; - -/** - * Parse the query string of `req.url`. - * - * This uses the "query parser" setting to parse the raw - * string into an object. - * - * @return {String} - * @api public - */ - -defineGetter(req, 'query', function query(){ - var queryparse = this.app.get('query parser fn'); - - if (!queryparse) { - // parsing is disabled - return Object.create(null); - } - - var querystring = parse(this).query; - - return queryparse(querystring); -}); - -/** - * Check if the incoming request contains the "Content-Type" - * header field, and it contains the given mime `type`. - * - * Examples: - * - * // With Content-Type: text/html; charset=utf-8 - * req.is('html'); - * req.is('text/html'); - * req.is('text/*'); - * // => true - * - * // When Content-Type is application/json - * req.is('json'); - * req.is('application/json'); - * req.is('application/*'); - * // => true - * - * req.is('html'); - * // => false - * - * @param {String|Array} types... - * @return {String|false|null} - * @public - */ - -req.is = function is(types) { - var arr = types; - - // support flattened arguments - if (!Array.isArray(types)) { - arr = new Array(arguments.length); - for (var i = 0; i < arr.length; i++) { - arr[i] = arguments[i]; - } - } - - return typeis(this, arr); -}; - -/** - * Return the protocol string "http" or "https" - * when requested with TLS. When the "trust proxy" - * setting trusts the socket address, the - * "X-Forwarded-Proto" header field will be trusted - * and used if present. - * - * If you're running behind a reverse proxy that - * supplies https for you this may be enabled. - * - * @return {String} - * @public - */ - -defineGetter(req, 'protocol', function protocol(){ - var proto = this.socket.encrypted - ? 'https' - : 'http'; - var trust = this.app.get('trust proxy fn'); - - if (!trust(this.socket.remoteAddress, 0)) { - return proto; - } - - // Note: X-Forwarded-Proto is normally only ever a - // single value, but this is to be safe. - var header = this.get('X-Forwarded-Proto') || proto - var index = header.indexOf(',') - - return index !== -1 - ? header.substring(0, index).trim() - : header.trim() -}); - -/** - * Short-hand for: - * - * req.protocol === 'https' - * - * @return {Boolean} - * @public - */ - -defineGetter(req, 'secure', function secure(){ - return this.protocol === 'https'; -}); - -/** - * Return the remote address from the trusted proxy. - * - * The is the remote address on the socket unless - * "trust proxy" is set. - * - * @return {String} - * @public - */ - -defineGetter(req, 'ip', function ip(){ - var trust = this.app.get('trust proxy fn'); - return proxyaddr(this, trust); -}); - -/** - * When "trust proxy" is set, trusted proxy addresses + client. - * - * For example if the value were "client, proxy1, proxy2" - * you would receive the array `["client", "proxy1", "proxy2"]` - * where "proxy2" is the furthest down-stream and "proxy1" and - * "proxy2" were trusted. - * - * @return {Array} - * @public - */ - -defineGetter(req, 'ips', function ips() { - var trust = this.app.get('trust proxy fn'); - var addrs = proxyaddr.all(this, trust); - - // reverse the order (to farthest -> closest) - // and remove socket address - addrs.reverse().pop() - - return addrs -}); - -/** - * Return subdomains as an array. - * - * Subdomains are the dot-separated parts of the host before the main domain of - * the app. By default, the domain of the app is assumed to be the last two - * parts of the host. This can be changed by setting "subdomain offset". - * - * For example, if the domain is "tobi.ferrets.example.com": - * If "subdomain offset" is not set, req.subdomains is `["ferrets", "tobi"]`. - * If "subdomain offset" is 3, req.subdomains is `["tobi"]`. - * - * @return {Array} - * @public - */ - -defineGetter(req, 'subdomains', function subdomains() { - var hostname = this.hostname; - - if (!hostname) return []; - - var offset = this.app.get('subdomain offset'); - var subdomains = !isIP(hostname) - ? hostname.split('.').reverse() - : [hostname]; - - return subdomains.slice(offset); -}); - -/** - * Short-hand for `url.parse(req.url).pathname`. - * - * @return {String} - * @public - */ - -defineGetter(req, 'path', function path() { - return parse(this).pathname; -}); - -/** - * Parse the "Host" header field to a host. - * - * When the "trust proxy" setting trusts the socket - * address, the "X-Forwarded-Host" header field will - * be trusted. - * - * @return {String} - * @public - */ - -defineGetter(req, 'host', function host(){ - var trust = this.app.get('trust proxy fn'); - var val = this.get('X-Forwarded-Host'); - - if (!val || !trust(this.socket.remoteAddress, 0)) { - val = this.get('Host'); - } else if (val.indexOf(',') !== -1) { - // Note: X-Forwarded-Host is normally only ever a - // single value, but this is to be safe. - val = val.substring(0, val.indexOf(',')).trimRight() - } - - return val || undefined; -}); - -/** - * Parse the "Host" header field to a hostname. - * - * When the "trust proxy" setting trusts the socket - * address, the "X-Forwarded-Host" header field will - * be trusted. - * - * @return {String} - * @api public - */ - -defineGetter(req, 'hostname', function hostname(){ - var host = this.host; - - if (!host) return; - - // IPv6 literal support - var offset = host[0] === '[' - ? host.indexOf(']') + 1 - : 0; - var index = host.indexOf(':', offset); - - return index !== -1 - ? host.substring(0, index) - : host; -}); - -/** - * Check if the request is fresh, aka - * Last-Modified or the ETag - * still match. - * - * @return {Boolean} - * @public - */ - -defineGetter(req, 'fresh', function(){ - var method = this.method; - var res = this.res - var status = res.statusCode - - // GET or HEAD for weak freshness validation only - if ('GET' !== method && 'HEAD' !== method) return false; - - // 2xx or 304 as per rfc2616 14.26 - if ((status >= 200 && status < 300) || 304 === status) { - return fresh(this.headers, { - 'etag': res.get('ETag'), - 'last-modified': res.get('Last-Modified') - }) - } - - return false; -}); - -/** - * Check if the request is stale, aka - * "Last-Modified" and / or the "ETag" for the - * resource has changed. - * - * @return {Boolean} - * @public - */ - -defineGetter(req, 'stale', function stale(){ - return !this.fresh; -}); - -/** - * Check if the request was an _XMLHttpRequest_. - * - * @return {Boolean} - * @public - */ - -defineGetter(req, 'xhr', function xhr(){ - var val = this.get('X-Requested-With') || ''; - return val.toLowerCase() === 'xmlhttprequest'; -}); - -/** - * Helper function for creating a getter on an object. - * - * @param {Object} obj - * @param {String} name - * @param {Function} getter - * @private - */ -function defineGetter(obj, name, getter) { - Object.defineProperty(obj, name, { - configurable: true, - enumerable: true, - get: getter - }); -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/response.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/response.js deleted file mode 100644 index 7a2f0ec..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/response.js +++ /dev/null @@ -1,1053 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @private - */ - -var contentDisposition = require('content-disposition'); -var createError = require('http-errors') -var deprecate = require('depd')('express'); -var encodeUrl = require('encodeurl'); -var escapeHtml = require('escape-html'); -var http = require('node:http'); -var onFinished = require('on-finished'); -var mime = require('mime-types') -var path = require('node:path'); -var pathIsAbsolute = require('node:path').isAbsolute; -var statuses = require('statuses') -var sign = require('cookie-signature').sign; -var normalizeType = require('./utils').normalizeType; -var normalizeTypes = require('./utils').normalizeTypes; -var setCharset = require('./utils').setCharset; -var cookie = require('cookie'); -var send = require('send'); -var extname = path.extname; -var resolve = path.resolve; -var vary = require('vary'); -const { Buffer } = require('node:buffer'); - -/** - * Response prototype. - * @public - */ - -var res = Object.create(http.ServerResponse.prototype) - -/** - * Module exports. - * @public - */ - -module.exports = res - -/** - * Set the HTTP status code for the response. - * - * Expects an integer value between 100 and 999 inclusive. - * Throws an error if the provided status code is not an integer or if it's outside the allowable range. - * - * @param {number} code - The HTTP status code to set. - * @return {ServerResponse} - Returns itself for chaining methods. - * @throws {TypeError} If `code` is not an integer. - * @throws {RangeError} If `code` is outside the range 100 to 999. - * @public - */ - -res.status = function status(code) { - // Check if the status code is not an integer - if (!Number.isInteger(code)) { - throw new TypeError(`Invalid status code: ${JSON.stringify(code)}. Status code must be an integer.`); - } - // Check if the status code is outside of Node's valid range - if (code < 100 || code > 999) { - throw new RangeError(`Invalid status code: ${JSON.stringify(code)}. Status code must be greater than 99 and less than 1000.`); - } - - this.statusCode = code; - return this; -}; - -/** - * Set Link header field with the given `links`. - * - * Examples: - * - * res.links({ - * next: 'http://api.example.com/users?page=2', - * last: 'http://api.example.com/users?page=5', - * pages: [ - * 'http://api.example.com/users?page=1', - * 'http://api.example.com/users?page=2' - * ] - * }); - * - * @param {Object} links - * @return {ServerResponse} - * @public - */ - -res.links = function(links) { - var link = this.get('Link') || ''; - if (link) link += ', '; - return this.set('Link', link + Object.keys(links).map(function(rel) { - // Allow multiple links if links[rel] is an array - if (Array.isArray(links[rel])) { - return links[rel].map(function (singleLink) { - return `<${singleLink}>; rel="${rel}"`; - }).join(', '); - } else { - return `<${links[rel]}>; rel="${rel}"`; - } - }).join(', ')); -}; - -/** - * Send a response. - * - * Examples: - * - * res.send(Buffer.from('wahoo')); - * res.send({ some: 'json' }); - * res.send('

some html

'); - * - * @param {string|number|boolean|object|Buffer} body - * @public - */ - -res.send = function send(body) { - var chunk = body; - var encoding; - var req = this.req; - var type; - - // settings - var app = this.app; - - switch (typeof chunk) { - // string defaulting to html - case 'string': - if (!this.get('Content-Type')) { - this.type('html'); - } - break; - case 'boolean': - case 'number': - case 'object': - if (chunk === null) { - chunk = ''; - } else if (ArrayBuffer.isView(chunk)) { - if (!this.get('Content-Type')) { - this.type('bin'); - } - } else { - return this.json(chunk); - } - break; - } - - // write strings in utf-8 - if (typeof chunk === 'string') { - encoding = 'utf8'; - type = this.get('Content-Type'); - - // reflect this in content-type - if (typeof type === 'string') { - this.set('Content-Type', setCharset(type, 'utf-8')); - } - } - - // determine if ETag should be generated - var etagFn = app.get('etag fn') - var generateETag = !this.get('ETag') && typeof etagFn === 'function' - - // populate Content-Length - var len - if (chunk !== undefined) { - if (Buffer.isBuffer(chunk)) { - // get length of Buffer - len = chunk.length - } else if (!generateETag && chunk.length < 1000) { - // just calculate length when no ETag + small chunk - len = Buffer.byteLength(chunk, encoding) - } else { - // convert chunk to Buffer and calculate - chunk = Buffer.from(chunk, encoding) - encoding = undefined; - len = chunk.length - } - - this.set('Content-Length', len); - } - - // populate ETag - var etag; - if (generateETag && len !== undefined) { - if ((etag = etagFn(chunk, encoding))) { - this.set('ETag', etag); - } - } - - // freshness - if (req.fresh) this.status(304); - - // strip irrelevant headers - if (204 === this.statusCode || 304 === this.statusCode) { - this.removeHeader('Content-Type'); - this.removeHeader('Content-Length'); - this.removeHeader('Transfer-Encoding'); - chunk = ''; - } - - // alter headers for 205 - if (this.statusCode === 205) { - this.set('Content-Length', '0') - this.removeHeader('Transfer-Encoding') - chunk = '' - } - - if (req.method === 'HEAD') { - // skip body for HEAD - this.end(); - } else { - // respond - this.end(chunk, encoding); - } - - return this; -}; - -/** - * Send JSON response. - * - * Examples: - * - * res.json(null); - * res.json({ user: 'tj' }); - * - * @param {string|number|boolean|object} obj - * @public - */ - -res.json = function json(obj) { - // settings - var app = this.app; - var escape = app.get('json escape') - var replacer = app.get('json replacer'); - var spaces = app.get('json spaces'); - var body = stringify(obj, replacer, spaces, escape) - - // content-type - if (!this.get('Content-Type')) { - this.set('Content-Type', 'application/json'); - } - - return this.send(body); -}; - -/** - * Send JSON response with JSONP callback support. - * - * Examples: - * - * res.jsonp(null); - * res.jsonp({ user: 'tj' }); - * - * @param {string|number|boolean|object} obj - * @public - */ - -res.jsonp = function jsonp(obj) { - // settings - var app = this.app; - var escape = app.get('json escape') - var replacer = app.get('json replacer'); - var spaces = app.get('json spaces'); - var body = stringify(obj, replacer, spaces, escape) - var callback = this.req.query[app.get('jsonp callback name')]; - - // content-type - if (!this.get('Content-Type')) { - this.set('X-Content-Type-Options', 'nosniff'); - this.set('Content-Type', 'application/json'); - } - - // fixup callback - if (Array.isArray(callback)) { - callback = callback[0]; - } - - // jsonp - if (typeof callback === 'string' && callback.length !== 0) { - this.set('X-Content-Type-Options', 'nosniff'); - this.set('Content-Type', 'text/javascript'); - - // restrict callback charset - callback = callback.replace(/[^\[\]\w$.]/g, ''); - - if (body === undefined) { - // empty argument - body = '' - } else if (typeof body === 'string') { - // replace chars not allowed in JavaScript that are in JSON - body = body - .replace(/\u2028/g, '\\u2028') - .replace(/\u2029/g, '\\u2029') - } - - // the /**/ is a specific security mitigation for "Rosetta Flash JSONP abuse" - // the typeof check is just to reduce client error noise - body = '/**/ typeof ' + callback + ' === \'function\' && ' + callback + '(' + body + ');'; - } - - return this.send(body); -}; - -/** - * Send given HTTP status code. - * - * Sets the response status to `statusCode` and the body of the - * response to the standard description from node's http.STATUS_CODES - * or the statusCode number if no description. - * - * Examples: - * - * res.sendStatus(200); - * - * @param {number} statusCode - * @public - */ - -res.sendStatus = function sendStatus(statusCode) { - var body = statuses.message[statusCode] || String(statusCode) - - this.status(statusCode); - this.type('txt'); - - return this.send(body); -}; - -/** - * Transfer the file at the given `path`. - * - * Automatically sets the _Content-Type_ response header field. - * The callback `callback(err)` is invoked when the transfer is complete - * or when an error occurs. Be sure to check `res.headersSent` - * if you wish to attempt responding, as the header and some data - * may have already been transferred. - * - * Options: - * - * - `maxAge` defaulting to 0 (can be string converted by `ms`) - * - `root` root directory for relative filenames - * - `headers` object of headers to serve with file - * - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them - * - * Other options are passed along to `send`. - * - * Examples: - * - * The following example illustrates how `res.sendFile()` may - * be used as an alternative for the `static()` middleware for - * dynamic situations. The code backing `res.sendFile()` is actually - * the same code, so HTTP cache support etc is identical. - * - * app.get('/user/:uid/photos/:file', function(req, res){ - * var uid = req.params.uid - * , file = req.params.file; - * - * req.user.mayViewFilesFrom(uid, function(yes){ - * if (yes) { - * res.sendFile('/uploads/' + uid + '/' + file); - * } else { - * res.send(403, 'Sorry! you cant see that.'); - * } - * }); - * }); - * - * @public - */ - -res.sendFile = function sendFile(path, options, callback) { - var done = callback; - var req = this.req; - var res = this; - var next = req.next; - var opts = options || {}; - - if (!path) { - throw new TypeError('path argument is required to res.sendFile'); - } - - if (typeof path !== 'string') { - throw new TypeError('path must be a string to res.sendFile') - } - - // support function as second arg - if (typeof options === 'function') { - done = options; - opts = {}; - } - - if (!opts.root && !pathIsAbsolute(path)) { - throw new TypeError('path must be absolute or specify root to res.sendFile'); - } - - // create file stream - var pathname = encodeURI(path); - - // wire application etag option to send - opts.etag = this.app.enabled('etag'); - var file = send(req, pathname, opts); - - // transfer - sendfile(res, file, opts, function (err) { - if (done) return done(err); - if (err && err.code === 'EISDIR') return next(); - - // next() all but write errors - if (err && err.code !== 'ECONNABORTED' && err.syscall !== 'write') { - next(err); - } - }); -}; - -/** - * Transfer the file at the given `path` as an attachment. - * - * Optionally providing an alternate attachment `filename`, - * and optional callback `callback(err)`. The callback is invoked - * when the data transfer is complete, or when an error has - * occurred. Be sure to check `res.headersSent` if you plan to respond. - * - * Optionally providing an `options` object to use with `res.sendFile()`. - * This function will set the `Content-Disposition` header, overriding - * any `Content-Disposition` header passed as header options in order - * to set the attachment and filename. - * - * This method uses `res.sendFile()`. - * - * @public - */ - -res.download = function download (path, filename, options, callback) { - var done = callback; - var name = filename; - var opts = options || null - - // support function as second or third arg - if (typeof filename === 'function') { - done = filename; - name = null; - opts = null - } else if (typeof options === 'function') { - done = options - opts = null - } - - // support optional filename, where options may be in it's place - if (typeof filename === 'object' && - (typeof options === 'function' || options === undefined)) { - name = null - opts = filename - } - - // set Content-Disposition when file is sent - var headers = { - 'Content-Disposition': contentDisposition(name || path) - }; - - // merge user-provided headers - if (opts && opts.headers) { - var keys = Object.keys(opts.headers) - for (var i = 0; i < keys.length; i++) { - var key = keys[i] - if (key.toLowerCase() !== 'content-disposition') { - headers[key] = opts.headers[key] - } - } - } - - // merge user-provided options - opts = Object.create(opts) - opts.headers = headers - - // Resolve the full path for sendFile - var fullPath = !opts.root - ? resolve(path) - : path - - // send file - return this.sendFile(fullPath, opts, done) -}; - -/** - * Set _Content-Type_ response header with `type` through `mime.contentType()` - * when it does not contain "/", or set the Content-Type to `type` otherwise. - * When no mapping is found though `mime.contentType()`, the type is set to - * "application/octet-stream". - * - * Examples: - * - * res.type('.html'); - * res.type('html'); - * res.type('json'); - * res.type('application/json'); - * res.type('png'); - * - * @param {String} type - * @return {ServerResponse} for chaining - * @public - */ - -res.contentType = -res.type = function contentType(type) { - var ct = type.indexOf('/') === -1 - ? (mime.contentType(type) || 'application/octet-stream') - : type; - - return this.set('Content-Type', ct); -}; - -/** - * Respond to the Acceptable formats using an `obj` - * of mime-type callbacks. - * - * This method uses `req.accepted`, an array of - * acceptable types ordered by their quality values. - * When "Accept" is not present the _first_ callback - * is invoked, otherwise the first match is used. When - * no match is performed the server responds with - * 406 "Not Acceptable". - * - * Content-Type is set for you, however if you choose - * you may alter this within the callback using `res.type()` - * or `res.set('Content-Type', ...)`. - * - * res.format({ - * 'text/plain': function(){ - * res.send('hey'); - * }, - * - * 'text/html': function(){ - * res.send('

hey

'); - * }, - * - * 'application/json': function () { - * res.send({ message: 'hey' }); - * } - * }); - * - * In addition to canonicalized MIME types you may - * also use extnames mapped to these types: - * - * res.format({ - * text: function(){ - * res.send('hey'); - * }, - * - * html: function(){ - * res.send('

hey

'); - * }, - * - * json: function(){ - * res.send({ message: 'hey' }); - * } - * }); - * - * By default Express passes an `Error` - * with a `.status` of 406 to `next(err)` - * if a match is not made. If you provide - * a `.default` callback it will be invoked - * instead. - * - * @param {Object} obj - * @return {ServerResponse} for chaining - * @public - */ - -res.format = function(obj){ - var req = this.req; - var next = req.next; - - var keys = Object.keys(obj) - .filter(function (v) { return v !== 'default' }) - - var key = keys.length > 0 - ? req.accepts(keys) - : false; - - this.vary("Accept"); - - if (key) { - this.set('Content-Type', normalizeType(key).value); - obj[key](req, this, next); - } else if (obj.default) { - obj.default(req, this, next) - } else { - next(createError(406, { - types: normalizeTypes(keys).map(function (o) { return o.value }) - })) - } - - return this; -}; - -/** - * Set _Content-Disposition_ header to _attachment_ with optional `filename`. - * - * @param {String} filename - * @return {ServerResponse} - * @public - */ - -res.attachment = function attachment(filename) { - if (filename) { - this.type(extname(filename)); - } - - this.set('Content-Disposition', contentDisposition(filename)); - - return this; -}; - -/** - * Append additional header `field` with value `val`. - * - * Example: - * - * res.append('Link', ['', '']); - * res.append('Set-Cookie', 'foo=bar; Path=/; HttpOnly'); - * res.append('Warning', '199 Miscellaneous warning'); - * - * @param {String} field - * @param {String|Array} val - * @return {ServerResponse} for chaining - * @public - */ - -res.append = function append(field, val) { - var prev = this.get(field); - var value = val; - - if (prev) { - // concat the new and prev vals - value = Array.isArray(prev) ? prev.concat(val) - : Array.isArray(val) ? [prev].concat(val) - : [prev, val] - } - - return this.set(field, value); -}; - -/** - * Set header `field` to `val`, or pass - * an object of header fields. - * - * Examples: - * - * res.set('Foo', ['bar', 'baz']); - * res.set('Accept', 'application/json'); - * res.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' }); - * - * Aliased as `res.header()`. - * - * When the set header is "Content-Type", the type is expanded to include - * the charset if not present using `mime.contentType()`. - * - * @param {String|Object} field - * @param {String|Array} val - * @return {ServerResponse} for chaining - * @public - */ - -res.set = -res.header = function header(field, val) { - if (arguments.length === 2) { - var value = Array.isArray(val) - ? val.map(String) - : String(val); - - // add charset to content-type - if (field.toLowerCase() === 'content-type') { - if (Array.isArray(value)) { - throw new TypeError('Content-Type cannot be set to an Array'); - } - value = mime.contentType(value) - } - - this.setHeader(field, value); - } else { - for (var key in field) { - this.set(key, field[key]); - } - } - return this; -}; - -/** - * Get value for header `field`. - * - * @param {String} field - * @return {String} - * @public - */ - -res.get = function(field){ - return this.getHeader(field); -}; - -/** - * Clear cookie `name`. - * - * @param {String} name - * @param {Object} [options] - * @return {ServerResponse} for chaining - * @public - */ - -res.clearCookie = function clearCookie(name, options) { - // Force cookie expiration by setting expires to the past - const opts = { path: '/', ...options, expires: new Date(1)}; - // ensure maxAge is not passed - delete opts.maxAge - - return this.cookie(name, '', opts); -}; - -/** - * Set cookie `name` to `value`, with the given `options`. - * - * Options: - * - * - `maxAge` max-age in milliseconds, converted to `expires` - * - `signed` sign the cookie - * - `path` defaults to "/" - * - * Examples: - * - * // "Remember Me" for 15 minutes - * res.cookie('rememberme', '1', { expires: new Date(Date.now() + 900000), httpOnly: true }); - * - * // same as above - * res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true }) - * - * @param {String} name - * @param {String|Object} value - * @param {Object} [options] - * @return {ServerResponse} for chaining - * @public - */ - -res.cookie = function (name, value, options) { - var opts = { ...options }; - var secret = this.req.secret; - var signed = opts.signed; - - if (signed && !secret) { - throw new Error('cookieParser("secret") required for signed cookies'); - } - - var val = typeof value === 'object' - ? 'j:' + JSON.stringify(value) - : String(value); - - if (signed) { - val = 's:' + sign(val, secret); - } - - if (opts.maxAge != null) { - var maxAge = opts.maxAge - 0 - - if (!isNaN(maxAge)) { - opts.expires = new Date(Date.now() + maxAge) - opts.maxAge = Math.floor(maxAge / 1000) - } - } - - if (opts.path == null) { - opts.path = '/'; - } - - this.append('Set-Cookie', cookie.serialize(name, String(val), opts)); - - return this; -}; - -/** - * Set the location header to `url`. - * - * The given `url` can also be "back", which redirects - * to the _Referrer_ or _Referer_ headers or "/". - * - * Examples: - * - * res.location('/foo/bar').; - * res.location('http://example.com'); - * res.location('../login'); - * - * @param {String} url - * @return {ServerResponse} for chaining - * @public - */ - -res.location = function location(url) { - return this.set('Location', encodeUrl(url)); -}; - -/** - * Redirect to the given `url` with optional response `status` - * defaulting to 302. - * - * Examples: - * - * res.redirect('/foo/bar'); - * res.redirect('http://example.com'); - * res.redirect(301, 'http://example.com'); - * res.redirect('../login'); // /blog/post/1 -> /blog/login - * - * @public - */ - -res.redirect = function redirect(url) { - var address = url; - var body; - var status = 302; - - // allow status / url - if (arguments.length === 2) { - status = arguments[0] - address = arguments[1] - } - - if (!address) { - deprecate('Provide a url argument'); - } - - if (typeof address !== 'string') { - deprecate('Url must be a string'); - } - - if (typeof status !== 'number') { - deprecate('Status must be a number'); - } - - // Set location header - address = this.location(address).get('Location'); - - // Support text/{plain,html} by default - this.format({ - text: function(){ - body = statuses.message[status] + '. Redirecting to ' + address - }, - - html: function(){ - var u = escapeHtml(address); - body = '

' + statuses.message[status] + '. Redirecting to ' + u + '

' - }, - - default: function(){ - body = ''; - } - }); - - // Respond - this.status(status); - this.set('Content-Length', Buffer.byteLength(body)); - - if (this.req.method === 'HEAD') { - this.end(); - } else { - this.end(body); - } -}; - -/** - * Add `field` to Vary. If already present in the Vary set, then - * this call is simply ignored. - * - * @param {Array|String} field - * @return {ServerResponse} for chaining - * @public - */ - -res.vary = function(field){ - vary(this, field); - - return this; -}; - -/** - * Render `view` with the given `options` and optional callback `fn`. - * When a callback function is given a response will _not_ be made - * automatically, otherwise a response of _200_ and _text/html_ is given. - * - * Options: - * - * - `cache` boolean hinting to the engine it should cache - * - `filename` filename of the view being rendered - * - * @public - */ - -res.render = function render(view, options, callback) { - var app = this.req.app; - var done = callback; - var opts = options || {}; - var req = this.req; - var self = this; - - // support callback function as second arg - if (typeof options === 'function') { - done = options; - opts = {}; - } - - // merge res.locals - opts._locals = self.locals; - - // default callback to respond - done = done || function (err, str) { - if (err) return req.next(err); - self.send(str); - }; - - // render - app.render(view, opts, done); -}; - -// pipe the send file stream -function sendfile(res, file, options, callback) { - var done = false; - var streaming; - - // request aborted - function onaborted() { - if (done) return; - done = true; - - var err = new Error('Request aborted'); - err.code = 'ECONNABORTED'; - callback(err); - } - - // directory - function ondirectory() { - if (done) return; - done = true; - - var err = new Error('EISDIR, read'); - err.code = 'EISDIR'; - callback(err); - } - - // errors - function onerror(err) { - if (done) return; - done = true; - callback(err); - } - - // ended - function onend() { - if (done) return; - done = true; - callback(); - } - - // file - function onfile() { - streaming = false; - } - - // finished - function onfinish(err) { - if (err && err.code === 'ECONNRESET') return onaborted(); - if (err) return onerror(err); - if (done) return; - - setImmediate(function () { - if (streaming !== false && !done) { - onaborted(); - return; - } - - if (done) return; - done = true; - callback(); - }); - } - - // streaming - function onstream() { - streaming = true; - } - - file.on('directory', ondirectory); - file.on('end', onend); - file.on('error', onerror); - file.on('file', onfile); - file.on('stream', onstream); - onFinished(res, onfinish); - - if (options.headers) { - // set headers on successful transfer - file.on('headers', function headers(res) { - var obj = options.headers; - var keys = Object.keys(obj); - - for (var i = 0; i < keys.length; i++) { - var k = keys[i]; - res.setHeader(k, obj[k]); - } - }); - } - - // pipe - file.pipe(res); -} - -/** - * Stringify JSON, like JSON.stringify, but v8 optimized, with the - * ability to escape characters that can trigger HTML sniffing. - * - * @param {*} value - * @param {function} replacer - * @param {number} spaces - * @param {boolean} escape - * @returns {string} - * @private - */ - -function stringify (value, replacer, spaces, escape) { - // v8 checks arguments.length for optimizing simple call - // https://bugs.chromium.org/p/v8/issues/detail?id=4730 - var json = replacer || spaces - ? JSON.stringify(value, replacer, spaces) - : JSON.stringify(value); - - if (escape && typeof json === 'string') { - json = json.replace(/[<>&]/g, function (c) { - switch (c.charCodeAt(0)) { - case 0x3c: - return '\\u003c' - case 0x3e: - return '\\u003e' - case 0x26: - return '\\u0026' - /* istanbul ignore next: unreachable default */ - default: - return c - } - }) - } - - return json -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/utils.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/utils.js deleted file mode 100644 index 4f21e7e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/utils.js +++ /dev/null @@ -1,271 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @api private - */ - -var { METHODS } = require('node:http'); -var contentType = require('content-type'); -var etag = require('etag'); -var mime = require('mime-types') -var proxyaddr = require('proxy-addr'); -var qs = require('qs'); -var querystring = require('node:querystring'); -const { Buffer } = require('node:buffer'); - - -/** - * A list of lowercased HTTP methods that are supported by Node.js. - * @api private - */ -exports.methods = METHODS.map((method) => method.toLowerCase()); - -/** - * Return strong ETag for `body`. - * - * @param {String|Buffer} body - * @param {String} [encoding] - * @return {String} - * @api private - */ - -exports.etag = createETagGenerator({ weak: false }) - -/** - * Return weak ETag for `body`. - * - * @param {String|Buffer} body - * @param {String} [encoding] - * @return {String} - * @api private - */ - -exports.wetag = createETagGenerator({ weak: true }) - -/** - * Normalize the given `type`, for example "html" becomes "text/html". - * - * @param {String} type - * @return {Object} - * @api private - */ - -exports.normalizeType = function(type){ - return ~type.indexOf('/') - ? acceptParams(type) - : { value: (mime.lookup(type) || 'application/octet-stream'), params: {} } -}; - -/** - * Normalize `types`, for example "html" becomes "text/html". - * - * @param {Array} types - * @return {Array} - * @api private - */ - -exports.normalizeTypes = function(types) { - return types.map(exports.normalizeType); -}; - - -/** - * Parse accept params `str` returning an - * object with `.value`, `.quality` and `.params`. - * - * @param {String} str - * @return {Object} - * @api private - */ - -function acceptParams (str) { - var length = str.length; - var colonIndex = str.indexOf(';'); - var index = colonIndex === -1 ? length : colonIndex; - var ret = { value: str.slice(0, index).trim(), quality: 1, params: {} }; - - while (index < length) { - var splitIndex = str.indexOf('=', index); - if (splitIndex === -1) break; - - var colonIndex = str.indexOf(';', index); - var endIndex = colonIndex === -1 ? length : colonIndex; - - if (splitIndex > endIndex) { - index = str.lastIndexOf(';', splitIndex - 1) + 1; - continue; - } - - var key = str.slice(index, splitIndex).trim(); - var value = str.slice(splitIndex + 1, endIndex).trim(); - - if (key === 'q') { - ret.quality = parseFloat(value); - } else { - ret.params[key] = value; - } - - index = endIndex + 1; - } - - return ret; -} - -/** - * Compile "etag" value to function. - * - * @param {Boolean|String|Function} val - * @return {Function} - * @api private - */ - -exports.compileETag = function(val) { - var fn; - - if (typeof val === 'function') { - return val; - } - - switch (val) { - case true: - case 'weak': - fn = exports.wetag; - break; - case false: - break; - case 'strong': - fn = exports.etag; - break; - default: - throw new TypeError('unknown value for etag function: ' + val); - } - - return fn; -} - -/** - * Compile "query parser" value to function. - * - * @param {String|Function} val - * @return {Function} - * @api private - */ - -exports.compileQueryParser = function compileQueryParser(val) { - var fn; - - if (typeof val === 'function') { - return val; - } - - switch (val) { - case true: - case 'simple': - fn = querystring.parse; - break; - case false: - break; - case 'extended': - fn = parseExtendedQueryString; - break; - default: - throw new TypeError('unknown value for query parser function: ' + val); - } - - return fn; -} - -/** - * Compile "proxy trust" value to function. - * - * @param {Boolean|String|Number|Array|Function} val - * @return {Function} - * @api private - */ - -exports.compileTrust = function(val) { - if (typeof val === 'function') return val; - - if (val === true) { - // Support plain true/false - return function(){ return true }; - } - - if (typeof val === 'number') { - // Support trusting hop count - return function(a, i){ return i < val }; - } - - if (typeof val === 'string') { - // Support comma-separated values - val = val.split(',') - .map(function (v) { return v.trim() }) - } - - return proxyaddr.compile(val || []); -} - -/** - * Set the charset in a given Content-Type string. - * - * @param {String} type - * @param {String} charset - * @return {String} - * @api private - */ - -exports.setCharset = function setCharset(type, charset) { - if (!type || !charset) { - return type; - } - - // parse type - var parsed = contentType.parse(type); - - // set charset - parsed.parameters.charset = charset; - - // format type - return contentType.format(parsed); -}; - -/** - * Create an ETag generator function, generating ETags with - * the given options. - * - * @param {object} options - * @return {function} - * @private - */ - -function createETagGenerator (options) { - return function generateETag (body, encoding) { - var buf = !Buffer.isBuffer(body) - ? Buffer.from(body, encoding) - : body - - return etag(buf, options) - } -} - -/** - * Parse an extended query string with qs. - * - * @param {String} str - * @return {Object} - * @private - */ - -function parseExtendedQueryString(str) { - return qs.parse(str, { - allowPrototypes: true - }); -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/view.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/view.js deleted file mode 100644 index d66b4a2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/view.js +++ /dev/null @@ -1,205 +0,0 @@ -/*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @private - */ - -var debug = require('debug')('express:view'); -var path = require('node:path'); -var fs = require('node:fs'); - -/** - * Module variables. - * @private - */ - -var dirname = path.dirname; -var basename = path.basename; -var extname = path.extname; -var join = path.join; -var resolve = path.resolve; - -/** - * Module exports. - * @public - */ - -module.exports = View; - -/** - * Initialize a new `View` with the given `name`. - * - * Options: - * - * - `defaultEngine` the default template engine name - * - `engines` template engine require() cache - * - `root` root path for view lookup - * - * @param {string} name - * @param {object} options - * @public - */ - -function View(name, options) { - var opts = options || {}; - - this.defaultEngine = opts.defaultEngine; - this.ext = extname(name); - this.name = name; - this.root = opts.root; - - if (!this.ext && !this.defaultEngine) { - throw new Error('No default engine was specified and no extension was provided.'); - } - - var fileName = name; - - if (!this.ext) { - // get extension from default engine name - this.ext = this.defaultEngine[0] !== '.' - ? '.' + this.defaultEngine - : this.defaultEngine; - - fileName += this.ext; - } - - if (!opts.engines[this.ext]) { - // load engine - var mod = this.ext.slice(1) - debug('require "%s"', mod) - - // default engine export - var fn = require(mod).__express - - if (typeof fn !== 'function') { - throw new Error('Module "' + mod + '" does not provide a view engine.') - } - - opts.engines[this.ext] = fn - } - - // store loaded engine - this.engine = opts.engines[this.ext]; - - // lookup path - this.path = this.lookup(fileName); -} - -/** - * Lookup view by the given `name` - * - * @param {string} name - * @private - */ - -View.prototype.lookup = function lookup(name) { - var path; - var roots = [].concat(this.root); - - debug('lookup "%s"', name); - - for (var i = 0; i < roots.length && !path; i++) { - var root = roots[i]; - - // resolve the path - var loc = resolve(root, name); - var dir = dirname(loc); - var file = basename(loc); - - // resolve the file - path = this.resolve(dir, file); - } - - return path; -}; - -/** - * Render with the given options. - * - * @param {object} options - * @param {function} callback - * @private - */ - -View.prototype.render = function render(options, callback) { - var sync = true; - - debug('render "%s"', this.path); - - // render, normalizing sync callbacks - this.engine(this.path, options, function onRender() { - if (!sync) { - return callback.apply(this, arguments); - } - - // copy arguments - var args = new Array(arguments.length); - var cntx = this; - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - // force callback to be async - return process.nextTick(function renderTick() { - return callback.apply(cntx, args); - }); - }); - - sync = false; -}; - -/** - * Resolve the file within the given directory. - * - * @param {string} dir - * @param {string} file - * @private - */ - -View.prototype.resolve = function resolve(dir, file) { - var ext = this.ext; - - // . - var path = join(dir, file); - var stat = tryStat(path); - - if (stat && stat.isFile()) { - return path; - } - - // /index. - path = join(dir, basename(file, ext), 'index' + ext); - stat = tryStat(path); - - if (stat && stat.isFile()) { - return path; - } -}; - -/** - * Return a stat, maybe. - * - * @param {string} path - * @return {fs.Stats} - * @private - */ - -function tryStat(path) { - debug('stat "%s"', path); - - try { - return fs.statSync(path); - } catch (e) { - return undefined; - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/package.json deleted file mode 100644 index 8f35883..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/express/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "name": "express", - "description": "Fast, unopinionated, minimalist web framework", - "version": "5.2.1", - "author": "TJ Holowaychuk ", - "contributors": [ - "Aaron Heckmann ", - "Ciaran Jessup ", - "Douglas Christopher Wilson ", - "Guillermo Rauch ", - "Jonathan Ong ", - "Roman Shtylman ", - "Young Jae Sim " - ], - "license": "MIT", - "repository": "expressjs/express", - "homepage": "https://expressjs.com/", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "keywords": [ - "express", - "framework", - "sinatra", - "web", - "http", - "rest", - "restful", - "router", - "app", - "api" - ], - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.2.1", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.0", - "depd": "^2.0.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "finalhandler": "^2.1.0", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "merge-descriptors": "^2.0.0", - "mime-types": "^3.0.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", - "range-parser": "^1.2.1", - "router": "^2.2.0", - "send": "^1.1.0", - "serve-static": "^2.2.0", - "statuses": "^2.0.1", - "type-is": "^2.0.1", - "vary": "^1.1.2" - }, - "devDependencies": { - "after": "0.8.2", - "connect-redis": "^8.0.1", - "cookie-parser": "1.4.7", - "cookie-session": "2.1.1", - "ejs": "^3.1.10", - "eslint": "8.47.0", - "express-session": "^1.18.1", - "hbs": "4.2.0", - "marked": "^15.0.3", - "method-override": "3.0.0", - "mocha": "^10.7.3", - "morgan": "1.10.1", - "nyc": "^17.1.0", - "pbkdf2-password": "1.2.1", - "supertest": "^6.3.0", - "vhost": "~3.0.2" - }, - "engines": { - "node": ">= 18" - }, - "files": [ - "LICENSE", - "Readme.md", - "index.js", - "lib/" - ], - "scripts": { - "lint": "eslint .", - "lint:fix": "eslint . --fix", - "test": "mocha --require test/support/env --reporter spec --check-leaks test/ test/acceptance/", - "test-ci": "nyc --exclude examples --exclude test --exclude benchmarks --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --exclude examples --exclude test --exclude benchmarks --reporter=html --reporter=text npm test", - "test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/HISTORY.md deleted file mode 100644 index 8b011be..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/HISTORY.md +++ /dev/null @@ -1,239 +0,0 @@ -v2.1.1. / 2025-12-01 -================== - -* update engines field in the package.json to reflect the current compatibility (Node <18). See: 2.0.0 -* Minor changes (package metadata) - -v2.1.0 / 2025-03-05 -================== - - * deps: - * use caret notation for dependency versions - * encodeurl@^2.0.0 - * debug@^4.4.0 - * remove `ServerResponse.headersSent` support check - * remove setImmediate support check - * update test dependencies - * remove unnecessary devDependency `safe-buffer` - * remove `unpipe` package and use native `unpipe()` method - * remove unnecessary devDependency `readable-stream` - * refactor: use object spread to copy error headers - * refactor: use replaceAll instead of replace with a regex - * refactor: replace setHeaders function with optimized inline header setting - -v2.0.0 / 2024-09-02 -================== - - * drop support for node <18 - * ignore status message for HTTP/2 (#53) - -v1.3.1 / 2024-09-11 -================== - - * deps: encodeurl@~2.0.0 - -v1.3.0 / 2024-09-03 -================== - - * ignore status message for HTTP/2 (#53) - -v1.2.1 / 2024-09-02 -================== - - * Gracefully handle when handling an error and socket is null - -1.2.0 / 2022-03-22 -================== - - * Remove set content headers that break response - * deps: on-finished@2.4.1 - * deps: statuses@2.0.1 - - Rename `425 Unordered Collection` to standard `425 Too Early` - -1.1.2 / 2019-05-09 -================== - - * Set stricter `Content-Security-Policy` header - * deps: parseurl@~1.3.3 - * deps: statuses@~1.5.0 - -1.1.1 / 2018-03-06 -================== - - * Fix 404 output for bad / missing pathnames - * deps: encodeurl@~1.0.2 - - Fix encoding `%` as last character - * deps: statuses@~1.4.0 - -1.1.0 / 2017-09-24 -================== - - * Use `res.headersSent` when available - -1.0.6 / 2017-09-22 -================== - - * deps: debug@2.6.9 - -1.0.5 / 2017-09-15 -================== - - * deps: parseurl@~1.3.2 - - perf: reduce overhead for full URLs - - perf: unroll the "fast-path" `RegExp` - -1.0.4 / 2017-08-03 -================== - - * deps: debug@2.6.8 - -1.0.3 / 2017-05-16 -================== - - * deps: debug@2.6.7 - - deps: ms@2.0.0 - -1.0.2 / 2017-04-22 -================== - - * deps: debug@2.6.4 - - deps: ms@0.7.3 - -1.0.1 / 2017-03-21 -================== - - * Fix missing `` in HTML document - * deps: debug@2.6.3 - - Fix: `DEBUG_MAX_ARRAY_LENGTH` - -1.0.0 / 2017-02-15 -================== - - * Fix exception when `err` cannot be converted to a string - * Fully URL-encode the pathname in the 404 message - * Only include the pathname in the 404 message - * Send complete HTML document - * Set `Content-Security-Policy: default-src 'self'` header - * deps: debug@2.6.1 - - Allow colors in workers - - Deprecated `DEBUG_FD` environment variable set to `3` or higher - - Fix error when running under React Native - - Use same color for same namespace - - deps: ms@0.7.2 - -0.5.1 / 2016-11-12 -================== - - * Fix exception when `err.headers` is not an object - * deps: statuses@~1.3.1 - * perf: hoist regular expressions - * perf: remove duplicate validation path - -0.5.0 / 2016-06-15 -================== - - * Change invalid or non-numeric status code to 500 - * Overwrite status message to match set status code - * Prefer `err.statusCode` if `err.status` is invalid - * Set response headers from `err.headers` object - * Use `statuses` instead of `http` module for status messages - - Includes all defined status messages - -0.4.1 / 2015-12-02 -================== - - * deps: escape-html@~1.0.3 - - perf: enable strict mode - - perf: optimize string replacement - - perf: use faster string coercion - -0.4.0 / 2015-06-14 -================== - - * Fix a false-positive when unpiping in Node.js 0.8 - * Support `statusCode` property on `Error` objects - * Use `unpipe` module for unpiping requests - * deps: escape-html@1.0.2 - * deps: on-finished@~2.3.0 - - Add defined behavior for HTTP `CONNECT` requests - - Add defined behavior for HTTP `Upgrade` requests - - deps: ee-first@1.1.1 - * perf: enable strict mode - * perf: remove argument reassignment - -0.3.6 / 2015-05-11 -================== - - * deps: debug@~2.2.0 - - deps: ms@0.7.1 - -0.3.5 / 2015-04-22 -================== - - * deps: on-finished@~2.2.1 - - Fix `isFinished(req)` when data buffered - -0.3.4 / 2015-03-15 -================== - - * deps: debug@~2.1.3 - - Fix high intensity foreground color for bold - - deps: ms@0.7.0 - -0.3.3 / 2015-01-01 -================== - - * deps: debug@~2.1.1 - * deps: on-finished@~2.2.0 - -0.3.2 / 2014-10-22 -================== - - * deps: on-finished@~2.1.1 - - Fix handling of pipelined requests - -0.3.1 / 2014-10-16 -================== - - * deps: debug@~2.1.0 - - Implement `DEBUG_FD` env variable support - -0.3.0 / 2014-09-17 -================== - - * Terminate in progress response only on error - * Use `on-finished` to determine request status - -0.2.0 / 2014-09-03 -================== - - * Set `X-Content-Type-Options: nosniff` header - * deps: debug@~2.0.0 - -0.1.0 / 2014-07-16 -================== - - * Respond after request fully read - - prevents hung responses and socket hang ups - * deps: debug@1.0.4 - -0.0.3 / 2014-07-11 -================== - - * deps: debug@1.0.3 - - Add support for multiple wildcards in namespaces - -0.0.2 / 2014-06-19 -================== - - * Handle invalid status codes - -0.0.1 / 2014-06-05 -================== - - * deps: debug@1.0.2 - -0.0.0 / 2014-06-05 -================== - - * Extracted from connect/express diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/LICENSE deleted file mode 100644 index 6022106..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2022 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/README.md deleted file mode 100644 index e40f729..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/README.md +++ /dev/null @@ -1,150 +0,0 @@ -# finalhandler - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] -[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer] - -Node.js function to invoke as the final step to respond to HTTP request. - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install finalhandler -``` - -## API - -```js -const finalhandler = require('finalhandler') -``` - -### finalhandler(req, res, [options]) - -Returns function to be invoked as the final step for the given `req` and `res`. -This function is to be invoked as `fn(err)`. If `err` is falsy, the handler will -write out a 404 response to the `res`. If it is truthy, an error response will -be written out to the `res` or `res` will be terminated if a response has already -started. - -When an error is written, the following information is added to the response: - - * The `res.statusCode` is set from `err.status` (or `err.statusCode`). If - this value is outside the 4xx or 5xx range, it will be set to 500. - * The `res.statusMessage` is set according to the status code. - * The body will be the HTML of the status code message if `env` is - `'production'`, otherwise will be `err.stack`. - * Any headers specified in an `err.headers` object. - -The final handler will also unpipe anything from `req` when it is invoked. - -#### options.env - -By default, the environment is determined by `NODE_ENV` variable, but it can be -overridden by this option. - -#### options.onerror - -Provide a function to be called with the `err` when it exists. Can be used for -writing errors to a central location without excessive function generation. Called -as `onerror(err, req, res)`. - -## Examples - -### always 404 - -```js -const finalhandler = require('finalhandler') -const http = require('http') - -const server = http.createServer((req, res) => { - const done = finalhandler(req, res) - done() -}) - -server.listen(3000) -``` - -### perform simple action - -```js -const finalhandler = require('finalhandler') -const fs = require('fs') -const http = require('http') - -const server = http.createServer((req, res) => { - const done = finalhandler(req, res) - - fs.readFile('index.html', (err, buf) => { - if (err) return done(err) - res.setHeader('Content-Type', 'text/html') - res.end(buf) - }) -}) - -server.listen(3000) -``` - -### use with middleware-style functions - -```js -const finalhandler = require('finalhandler') -const http = require('http') -const serveStatic = require('serve-static') - -const serve = serveStatic('public') - -const server = http.createServer((req, res) => { - const done = finalhandler(req, res) - serve(req, res, done) -}) - -server.listen(3000) -``` - -### keep log of all errors - -```js -const finalhandler = require('finalhandler') -const fs = require('fs') -const http = require('http') - -const server = http.createServer((req, res) => { - const done = finalhandler(req, res, { onerror: logerror }) - - fs.readFile('index.html', (err, buf) => { - if (err) return done(err) - res.setHeader('Content-Type', 'text/html') - res.end(buf) - }) -}) - -server.listen(3000) - -function logerror (err) { - console.error(err.stack || err.toString()) -} -``` - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/finalhandler.svg -[npm-url]: https://npmjs.org/package/finalhandler -[node-image]: https://img.shields.io/node/v/finalhandler.svg -[node-url]: https://nodejs.org/en/download -[coveralls-image]: https://img.shields.io/coveralls/pillarjs/finalhandler.svg -[coveralls-url]: https://coveralls.io/r/pillarjs/finalhandler?branch=master -[downloads-image]: https://img.shields.io/npm/dm/finalhandler.svg -[downloads-url]: https://npmjs.org/package/finalhandler -[github-actions-ci-image]: https://github.com/pillarjs/finalhandler/actions/workflows/ci.yml/badge.svg -[github-actions-ci-url]: https://github.com/pillarjs/finalhandler/actions/workflows/ci.yml -[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/pillarjs/finalhandler/badge -[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/pillarjs/finalhandler \ No newline at end of file diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/index.js deleted file mode 100644 index bf15e48..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/index.js +++ /dev/null @@ -1,293 +0,0 @@ -/*! - * finalhandler - * Copyright(c) 2014-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var debug = require('debug')('finalhandler') -var encodeUrl = require('encodeurl') -var escapeHtml = require('escape-html') -var onFinished = require('on-finished') -var parseUrl = require('parseurl') -var statuses = require('statuses') - -/** - * Module variables. - * @private - */ - -var isFinished = onFinished.isFinished - -/** - * Create a minimal HTML document. - * - * @param {string} message - * @private - */ - -function createHtmlDocument (message) { - var body = escapeHtml(message) - .replaceAll('\n', '
') - .replaceAll(' ', '  ') - - return '\n' + - '\n' + - '\n' + - '\n' + - 'Error\n' + - '\n' + - '\n' + - '
' + body + '
\n' + - '\n' + - '\n' -} - -/** - * Module exports. - * @public - */ - -module.exports = finalhandler - -/** - * Create a function to handle the final response. - * - * @param {Request} req - * @param {Response} res - * @param {Object} [options] - * @return {Function} - * @public - */ - -function finalhandler (req, res, options) { - var opts = options || {} - - // get environment - var env = opts.env || process.env.NODE_ENV || 'development' - - // get error callback - var onerror = opts.onerror - - return function (err) { - var headers - var msg - var status - - // ignore 404 on in-flight response - if (!err && res.headersSent) { - debug('cannot 404 after headers sent') - return - } - - // unhandled error - if (err) { - // respect status code from error - status = getErrorStatusCode(err) - - if (status === undefined) { - // fallback to status code on response - status = getResponseStatusCode(res) - } else { - // respect headers from error - headers = getErrorHeaders(err) - } - - // get error message - msg = getErrorMessage(err, status, env) - } else { - // not found - status = 404 - msg = 'Cannot ' + req.method + ' ' + encodeUrl(getResourceName(req)) - } - - debug('default %s', status) - - // schedule onerror callback - if (err && onerror) { - setImmediate(onerror, err, req, res) - } - - // cannot actually respond - if (res.headersSent) { - debug('cannot %d after headers sent', status) - if (req.socket) { - req.socket.destroy() - } - return - } - - // send response - send(req, res, status, headers, msg) - } -} - -/** - * Get headers from Error object. - * - * @param {Error} err - * @return {object} - * @private - */ - -function getErrorHeaders (err) { - if (!err.headers || typeof err.headers !== 'object') { - return undefined - } - - return { ...err.headers } -} - -/** - * Get message from Error object, fallback to status message. - * - * @param {Error} err - * @param {number} status - * @param {string} env - * @return {string} - * @private - */ - -function getErrorMessage (err, status, env) { - var msg - - if (env !== 'production') { - // use err.stack, which typically includes err.message - msg = err.stack - - // fallback to err.toString() when possible - if (!msg && typeof err.toString === 'function') { - msg = err.toString() - } - } - - return msg || statuses.message[status] -} - -/** - * Get status code from Error object. - * - * @param {Error} err - * @return {number} - * @private - */ - -function getErrorStatusCode (err) { - // check err.status - if (typeof err.status === 'number' && err.status >= 400 && err.status < 600) { - return err.status - } - - // check err.statusCode - if (typeof err.statusCode === 'number' && err.statusCode >= 400 && err.statusCode < 600) { - return err.statusCode - } - - return undefined -} - -/** - * Get resource name for the request. - * - * This is typically just the original pathname of the request - * but will fallback to "resource" is that cannot be determined. - * - * @param {IncomingMessage} req - * @return {string} - * @private - */ - -function getResourceName (req) { - try { - return parseUrl.original(req).pathname - } catch (e) { - return 'resource' - } -} - -/** - * Get status code from response. - * - * @param {OutgoingMessage} res - * @return {number} - * @private - */ - -function getResponseStatusCode (res) { - var status = res.statusCode - - // default status code to 500 if outside valid range - if (typeof status !== 'number' || status < 400 || status > 599) { - status = 500 - } - - return status -} - -/** - * Send response. - * - * @param {IncomingMessage} req - * @param {OutgoingMessage} res - * @param {number} status - * @param {object} headers - * @param {string} message - * @private - */ - -function send (req, res, status, headers, message) { - function write () { - // response body - var body = createHtmlDocument(message) - - // response status - res.statusCode = status - - if (req.httpVersionMajor < 2) { - res.statusMessage = statuses.message[status] - } - - // remove any content headers - res.removeHeader('Content-Encoding') - res.removeHeader('Content-Language') - res.removeHeader('Content-Range') - - // response headers - for (const [key, value] of Object.entries(headers ?? {})) { - res.setHeader(key, value) - } - - // security headers - res.setHeader('Content-Security-Policy', "default-src 'none'") - res.setHeader('X-Content-Type-Options', 'nosniff') - - // standard headers - res.setHeader('Content-Type', 'text/html; charset=utf-8') - res.setHeader('Content-Length', Buffer.byteLength(body, 'utf8')) - - if (req.method === 'HEAD') { - res.end() - return - } - - res.end(body, 'utf8') - } - - if (isFinished(req)) { - write() - return - } - - // unpipe everything from the request - req.unpipe() - - // flush the request - onFinished(req, write) - req.resume() -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/package.json deleted file mode 100644 index 869ddc2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "finalhandler", - "description": "Node.js final http responder", - "version": "2.1.1", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "repository": "pillarjs/finalhandler", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "devDependencies": { - "eslint": "^7.32.0", - "eslint-config-standard": "^14.1.1", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-markdown": "^2.2.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^5.2.0", - "eslint-plugin-standard": "^4.1.0", - "mocha": "^11.0.1", - "nyc": "^17.1.0", - "supertest": "^7.0.0" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "index.js" - ], - "engines": { - "node": ">= 18.0.0" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks test/", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "test-inspect": "mocha --reporter spec --inspect --inspect-brk test/" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/HISTORY.md deleted file mode 100644 index fd3888a..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/HISTORY.md +++ /dev/null @@ -1,80 +0,0 @@ -2.0.0 - 2024-09-04 -========== - * Drop support for Node.js <18 - -1.0.0 - 2024-09-04 -========== - - * Drop support for Node.js below 0.8 - * Fix: Ignore `If-Modified-Since` in the presence of `If-None-Match`, according to [spec](https://www.rfc-editor.org/rfc/rfc9110.html#section-13.1.3-5). Fixes [#35](https://github.com/jshttp/fresh/issues/35) - -0.5.2 / 2017-09-13 -================== - - * Fix regression matching multiple ETags in `If-None-Match` - * perf: improve `If-None-Match` token parsing - -0.5.1 / 2017-09-11 -================== - - * Fix handling of modified headers with invalid dates - * perf: improve ETag match loop - -0.5.0 / 2017-02-21 -================== - - * Fix incorrect result when `If-None-Match` has both `*` and ETags - * Fix weak `ETag` matching to match spec - * perf: delay reading header values until needed - * perf: skip checking modified time if ETag check failed - * perf: skip parsing `If-None-Match` when no `ETag` header - * perf: use `Date.parse` instead of `new Date` - -0.4.0 / 2017-02-05 -================== - - * Fix false detection of `no-cache` request directive - * perf: enable strict mode - * perf: hoist regular expressions - * perf: remove duplicate conditional - * perf: remove unnecessary boolean coercions - -0.3.0 / 2015-05-12 -================== - - * Add weak `ETag` matching support - -0.2.4 / 2014-09-07 -================== - - * Support Node.js 0.6 - -0.2.3 / 2014-09-07 -================== - - * Move repository to jshttp - -0.2.2 / 2014-02-19 -================== - - * Revert "Fix for blank page on Safari reload" - -0.2.1 / 2014-01-29 -================== - - * Fix for blank page on Safari reload - -0.2.0 / 2013-08-11 -================== - - * Return stale for `Cache-Control: no-cache` - -0.1.0 / 2012-06-15 -================== - - * Add `If-None-Match: *` support - -0.0.1 / 2012-06-10 -================== - - * Initial release diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/LICENSE deleted file mode 100644 index 1434ade..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2012 TJ Holowaychuk -Copyright (c) 2016-2017 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/README.md deleted file mode 100644 index fd79c5b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# fresh - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -HTTP response freshness testing - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -``` -$ npm install fresh -``` - -## API - -```js -var fresh = require('fresh') -``` - -### fresh(reqHeaders, resHeaders) - -Check freshness of the response using request and response headers. - -When the response is still "fresh" in the client's cache `true` is -returned, otherwise `false` is returned to indicate that the client -cache is now stale and the full response should be sent. - -When a client sends the `Cache-Control: no-cache` request header to -indicate an end-to-end reload request, this module will return `false` -to make handling these requests transparent. - -## Known Issues - -This module is designed to only follow the HTTP specifications, not -to work-around all kinda of client bugs (especially since this module -typically does not receive enough information to understand what the -client actually is). - -There is a known issue that in certain versions of Safari, Safari -will incorrectly make a request that allows this module to validate -freshness of the resource even when Safari does not have a -representation of the resource in the cache. The module -[jumanji](https://www.npmjs.com/package/jumanji) can be used in -an Express application to work-around this issue and also provides -links to further reading on this Safari bug. - -## Example - -### API usage - - - -```js -var reqHeaders = { 'if-none-match': '"foo"' } -var resHeaders = { etag: '"bar"' } -fresh(reqHeaders, resHeaders) -// => false - -var reqHeaders = { 'if-none-match': '"foo"' } -var resHeaders = { etag: '"foo"' } -fresh(reqHeaders, resHeaders) -// => true -``` - -### Using with Node.js http server - -```js -var fresh = require('fresh') -var http = require('http') - -var server = http.createServer(function (req, res) { - // perform server logic - // ... including adding ETag / Last-Modified response headers - - if (isFresh(req, res)) { - // client has a fresh copy of resource - res.statusCode = 304 - res.end() - return - } - - // send the resource - res.statusCode = 200 - res.end('hello, world!') -}) - -function isFresh (req, res) { - return fresh(req.headers, { - etag: res.getHeader('ETag'), - 'last-modified': res.getHeader('Last-Modified') - }) -} - -server.listen(3000) -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://img.shields.io/github/workflow/status/jshttp/fresh/ci/master?label=ci -[ci-url]: https://github.com/jshttp/fresh/actions/workflows/ci.yml -[npm-image]: https://img.shields.io/npm/v/fresh.svg -[npm-url]: https://npmjs.org/package/fresh -[node-version-image]: https://img.shields.io/node/v/fresh.svg -[node-version-url]: https://nodejs.org/en/ -[coveralls-image]: https://img.shields.io/coveralls/jshttp/fresh/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/fresh?branch=master -[downloads-image]: https://img.shields.io/npm/dm/fresh.svg -[downloads-url]: https://npmjs.org/package/fresh diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/index.js deleted file mode 100644 index fc3dea7..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/index.js +++ /dev/null @@ -1,136 +0,0 @@ -/*! - * fresh - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2016-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * RegExp to check for no-cache token in Cache-Control. - * @private - */ - -var CACHE_CONTROL_NO_CACHE_REGEXP = /(?:^|,)\s*?no-cache\s*?(?:,|$)/ - -/** - * Module exports. - * @public - */ - -module.exports = fresh - -/** - * Check freshness of the response using request and response headers. - * - * @param {Object} reqHeaders - * @param {Object} resHeaders - * @return {Boolean} - * @public - */ - -function fresh (reqHeaders, resHeaders) { - // fields - var modifiedSince = reqHeaders['if-modified-since'] - var noneMatch = reqHeaders['if-none-match'] - - // unconditional request - if (!modifiedSince && !noneMatch) { - return false - } - - // Always return stale when Cache-Control: no-cache - // to support end-to-end reload requests - // https://tools.ietf.org/html/rfc2616#section-14.9.4 - var cacheControl = reqHeaders['cache-control'] - if (cacheControl && CACHE_CONTROL_NO_CACHE_REGEXP.test(cacheControl)) { - return false - } - - // if-none-match takes precedent over if-modified-since - if (noneMatch) { - if (noneMatch === '*') { - return true - } - var etag = resHeaders.etag - - if (!etag) { - return false - } - - var matches = parseTokenList(noneMatch) - for (var i = 0; i < matches.length; i++) { - var match = matches[i] - if (match === etag || match === 'W/' + etag || 'W/' + match === etag) { - return true - } - } - - return false - } - - // if-modified-since - if (modifiedSince) { - var lastModified = resHeaders['last-modified'] - var modifiedStale = !lastModified || !(parseHttpDate(lastModified) <= parseHttpDate(modifiedSince)) - - if (modifiedStale) { - return false - } - } - - return true -} - -/** - * Parse an HTTP Date into a number. - * - * @param {string} date - * @private - */ - -function parseHttpDate (date) { - var timestamp = date && Date.parse(date) - - // istanbul ignore next: guard against date.js Date.parse patching - return typeof timestamp === 'number' - ? timestamp - : NaN -} - -/** - * Parse a HTTP token list. - * - * @param {string} str - * @private - */ - -function parseTokenList (str) { - var end = 0 - var list = [] - var start = 0 - - // gather tokens - for (var i = 0, len = str.length; i < len; i++) { - switch (str.charCodeAt(i)) { - case 0x20: /* */ - if (start === end) { - start = end = i + 1 - } - break - case 0x2c: /* , */ - list.push(str.substring(start, end)) - start = end = i + 1 - break - default: - end = i + 1 - break - } - } - - // final token - list.push(str.substring(start, end)) - - return list -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/package.json deleted file mode 100644 index 5d7e215..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "fresh", - "description": "HTTP response freshness testing", - "version": "2.0.0", - "author": "TJ Holowaychuk (http://tjholowaychuk.com)", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "keywords": [ - "fresh", - "http", - "conditional", - "cache" - ], - "repository": "jshttp/fresh", - "devDependencies": { - "beautify-benchmark": "0.2.4", - "benchmark": "2.1.4", - "eslint": "8.12.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "6.0.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.2.0", - "nyc": "15.1.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "bench": "node benchmark/index.js", - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/HISTORY.md deleted file mode 100644 index 538ade1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/HISTORY.md +++ /dev/null @@ -1,50 +0,0 @@ -1.1.0 / 2019-04-24 -================== - - * Add `test(string)` function - -1.0.2 / 2019-04-19 -================== - - * Fix JSDoc comment for `parse` function - -1.0.1 / 2018-10-20 -================== - - * Remove left over `parameters` property from class - -1.0.0 / 2018-10-20 -================== - -This major release brings the module back to it's RFC 6838 roots. If you want -a module to parse the `Content-Type` or similar HTTP headers, use the -`content-type` module instead. - - * Drop support for Node.js below 0.8 - * Remove parameter handling, which is outside RFC 6838 scope - * Remove `parse(req)` and `parse(res)` signatures - * perf: enable strict mode - * perf: use a class for object creation - -0.3.0 / 2014-09-07 -================== - - * Support Node.js 0.6 - * Throw error when parameter format invalid on parse - -0.2.0 / 2014-06-18 -================== - - * Add `typer.format()` to format media types - -0.1.0 / 2014-06-17 -================== - - * Accept `req` as argument to `parse` - * Accept `res` as argument to `parse` - * Parse media type with extra LWS between type and first parameter - -0.0.0 / 2014-06-13 -================== - - * Initial implementation diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/LICENSE deleted file mode 100644 index 84441fb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md deleted file mode 100644 index 37edad1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md +++ /dev/null @@ -1,93 +0,0 @@ -# media-typer - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Simple RFC 6838 media type parser. - -This module will parse a given media type into it's component parts, like type, -subtype, and suffix. A formatter is also provided to put them back together and -the two can be combined to normalize media types into a canonical form. - -If you are looking to parse the string that represents a media type and it's -parameters in HTTP (for example, the `Content-Type` header), use the -[content-type module](https://www.npmjs.com/package/content-type). - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install media-typer -``` - -## API - - - -```js -var typer = require('media-typer') -``` - -### typer.parse(string) - - - -```js -var obj = typer.parse('image/svg+xml') -``` - -Parse a media type string. This will return an object with the following -properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`): - - - `type`: The type of the media type (always lower case). Example: `'image'` - - - `subtype`: The subtype of the media type (always lower case). Example: `'svg'` - - - `suffix`: The suffix of the media type (always lower case). Example: `'xml'` - -If the given type string is invalid, then a `TypeError` is thrown. - -### typer.format(obj) - - - -```js -var obj = typer.format({ type: 'image', subtype: 'svg', suffix: 'xml' }) -``` - -Format an object into a media type string. This will return a string of the -mime type for the given object. For the properties of the object, see the -documentation for `typer.parse(string)`. - -If any of the given object values are invalid, then a `TypeError` is thrown. - -### typer.test(string) - - - -```js -var valid = typer.test('image/svg+xml') -``` - -Validate a media type string. This will return `true` is the string is a well- -formatted media type, or `false` otherwise. - -## License - -[MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/media-typer/master -[coveralls-url]: https://coveralls.io/r/jshttp/media-typer?branch=master -[node-version-image]: https://badgen.net/npm/node/media-typer -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/media-typer -[npm-url]: https://npmjs.org/package/media-typer -[npm-version-image]: https://badgen.net/npm/v/media-typer -[travis-image]: https://badgen.net/travis/jshttp/media-typer/master -[travis-url]: https://travis-ci.org/jshttp/media-typer diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js deleted file mode 100644 index 897cae1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js +++ /dev/null @@ -1,143 +0,0 @@ -/*! - * media-typer - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * RegExp to match type in RFC 6838 - * - * type-name = restricted-name - * subtype-name = restricted-name - * restricted-name = restricted-name-first *126restricted-name-chars - * restricted-name-first = ALPHA / DIGIT - * restricted-name-chars = ALPHA / DIGIT / "!" / "#" / - * "$" / "&" / "-" / "^" / "_" - * restricted-name-chars =/ "." ; Characters before first dot always - * ; specify a facet name - * restricted-name-chars =/ "+" ; Characters after last plus always - * ; specify a structured syntax suffix - * ALPHA = %x41-5A / %x61-7A ; A-Z / a-z - * DIGIT = %x30-39 ; 0-9 - */ -var SUBTYPE_NAME_REGEXP = /^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/ -var TYPE_NAME_REGEXP = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/ -var TYPE_REGEXP = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/ - -/** - * Module exports. - */ - -exports.format = format -exports.parse = parse -exports.test = test - -/** - * Format object to media type. - * - * @param {object} obj - * @return {string} - * @public - */ - -function format (obj) { - if (!obj || typeof obj !== 'object') { - throw new TypeError('argument obj is required') - } - - var subtype = obj.subtype - var suffix = obj.suffix - var type = obj.type - - if (!type || !TYPE_NAME_REGEXP.test(type)) { - throw new TypeError('invalid type') - } - - if (!subtype || !SUBTYPE_NAME_REGEXP.test(subtype)) { - throw new TypeError('invalid subtype') - } - - // format as type/subtype - var string = type + '/' + subtype - - // append +suffix - if (suffix) { - if (!TYPE_NAME_REGEXP.test(suffix)) { - throw new TypeError('invalid suffix') - } - - string += '+' + suffix - } - - return string -} - -/** - * Test media type. - * - * @param {string} string - * @return {object} - * @public - */ - -function test (string) { - if (!string) { - throw new TypeError('argument string is required') - } - - if (typeof string !== 'string') { - throw new TypeError('argument string is required to be a string') - } - - return TYPE_REGEXP.test(string.toLowerCase()) -} - -/** - * Parse media type to object. - * - * @param {string} string - * @return {object} - * @public - */ - -function parse (string) { - if (!string) { - throw new TypeError('argument string is required') - } - - if (typeof string !== 'string') { - throw new TypeError('argument string is required to be a string') - } - - var match = TYPE_REGEXP.exec(string.toLowerCase()) - - if (!match) { - throw new TypeError('invalid media type') - } - - var type = match[1] - var subtype = match[2] - var suffix - - // suffix after last + - var index = subtype.lastIndexOf('+') - if (index !== -1) { - suffix = subtype.substr(index + 1) - subtype = subtype.substr(0, index) - } - - return new MediaType(type, subtype, suffix) -} - -/** - * Class for MediaType object. - * @public - */ - -function MediaType (type, subtype, suffix) { - this.type = type - this.subtype = subtype - this.suffix = suffix -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json deleted file mode 100644 index 1dca712..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "media-typer", - "description": "Simple RFC 6838 media type parser and formatter", - "version": "1.1.0", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "repository": "jshttp/media-typer", - "devDependencies": { - "eslint": "5.16.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.17.2", - "eslint-plugin-markdown": "1.0.0", - "eslint-plugin-node": "8.0.1", - "eslint-plugin-promise": "4.1.1", - "eslint-plugin-standard": "4.0.0", - "mocha": "6.1.4", - "nyc": "14.0.0" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "index.js" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "lint": "eslint --plugin markdown --ext js,md .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "test-travis": "nyc --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.d.ts b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.d.ts deleted file mode 100644 index df8f91f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** -Merges "own" properties from a source to a destination object, including non-enumerable and accessor-defined properties. It retains original values and descriptors, ensuring the destination receives a complete and accurate copy of the source's properties. - -@param destination - The object to receive properties. -@param source - The object providing properties. -@param overwrite - Optional boolean to control overwriting of existing properties. Defaults to true. -@returns The modified destination object. -*/ -declare function mergeDescriptors(destination: T, source: U, overwrite?: boolean): T & U; - -export = mergeDescriptors; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.js deleted file mode 100644 index 51228e5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -function mergeDescriptors(destination, source, overwrite = true) { - if (!destination) { - throw new TypeError('The `destination` argument is required.'); - } - - if (!source) { - throw new TypeError('The `source` argument is required.'); - } - - for (const name of Object.getOwnPropertyNames(source)) { - if (!overwrite && Object.hasOwn(destination, name)) { - // Skip descriptor - continue; - } - - // Copy descriptor - const descriptor = Object.getOwnPropertyDescriptor(source, name); - Object.defineProperty(destination, name, descriptor); - } - - return destination; -} - -module.exports = mergeDescriptors; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/license b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/license deleted file mode 100644 index c509d45..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/license +++ /dev/null @@ -1,11 +0,0 @@ -MIT License - -Copyright (c) Jonathan Ong -Copyright (c) Douglas Christopher Wilson -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/package.json deleted file mode 100644 index 9bedb25..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "merge-descriptors", - "version": "2.0.0", - "description": "Merge objects using their property descriptors", - "license": "MIT", - "repository": "sindresorhus/merge-descriptors", - "funding": "https://github.com/sponsors/sindresorhus", - "contributors": [ - "Jonathan Ong ", - "Douglas Christopher Wilson ", - "Mike Grabowski ", - "Sindre Sorhus " - ], - "exports": { - "types": "./index.d.ts", - "default": "./index.js" - }, - "main": "./index.js", - "types": "./index.d.ts", - "sideEffects": false, - "engines": { - "node": ">=18" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "merge", - "descriptors", - "object", - "property", - "properties", - "merging", - "getter", - "setter" - ], - "devDependencies": { - "ava": "^5.3.1", - "xo": "^0.56.0" - }, - "xo": { - "rules": { - "unicorn/prefer-module": "off" - } - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/readme.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/readme.md deleted file mode 100644 index 1dee67d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/readme.md +++ /dev/null @@ -1,55 +0,0 @@ -# merge-descriptors - -> Merge objects using their property descriptors - -## Install - -```sh -npm install merge-descriptors -``` - -## Usage - -```js -import mergeDescriptors from 'merge-descriptors'; - -const thing = { - get name() { - return 'John' - } -} - -const animal = {}; - -mergeDescriptors(animal, thing); - -console.log(animal.name); -//=> 'John' -``` - -## API - -### merge(destination, source, overwrite?) - -Merges "own" properties from a source to a destination object, including non-enumerable and accessor-defined properties. It retains original values and descriptors, ensuring the destination receives a complete and accurate copy of the source's properties. - -Returns the modified destination object. - -#### destination - -Type: `object` - -The object to receive properties. - -#### source - -Type: `object` - -The object providing properties. - -#### overwrite - -Type: `boolean`\ -Default: `true` - -A boolean to control overwriting of existing properties. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/HISTORY.md deleted file mode 100644 index fb35bec..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/HISTORY.md +++ /dev/null @@ -1,541 +0,0 @@ -1.54.0 / 2025-03-17 -=================== - - * Update mime type for DCM format (#362) - * mark application/octet-stream as compressible (#163) - * Fix typo in application/x-zip-compressed mimetype (#359) - * Add mime-type for Jupyter notebooks (#282) - * Add Google Drive MIME types (#311) - * Add .blend file type (#338) - * Add support for the FBX file extension (#342) - * Add Adobe DNG file (#340) - * Add Procreate Brush and Brush Set file Types (#339) - * Add support for Procreate Dreams (#341) - * replace got with undici (#352) - * Added extensions list for model/step (#293) - * Add m4b as a type of audio/mp4 (#357) - * windows 11 application/x-zip-compressed (#346) - * add dotLottie mime type (#351) - * Add some MS-related extensions and types (#336) - -1.53.0 / 2024-07-12 -=================== - - * Add extension `.sql` to `application/sql` - * Add extensions `.aac` and `.adts` to `audio/aac` - * Add extensions `.js` and `.mjs` to `text/javascript` - * Add extensions for `application/mp4` from IANA - * Add extensions from IANA for more MIME types - * Add Microsoft app installer types and extensions - * Add new upstream MIME types - * Fix extensions for `text/markdown` to match IANA - * Remove extension `.mjs` from `application/javascript` - * Remove obsolete MIME types from IANA data - -1.52.0 / 2022-02-21 -=================== - - * Add extensions from IANA for more `image/*` types - * Add extension `.asc` to `application/pgp-keys` - * Add extensions to various XML types - * Add new upstream MIME types - -1.51.0 / 2021-11-08 -=================== - - * Add new upstream MIME types - * Mark `image/vnd.microsoft.icon` as compressible - * Mark `image/vnd.ms-dds` as compressible - -1.50.0 / 2021-09-15 -=================== - - * Add deprecated iWorks mime types and extensions - * Add new upstream MIME types - -1.49.0 / 2021-07-26 -=================== - - * Add extension `.trig` to `application/trig` - * Add new upstream MIME types - -1.48.0 / 2021-05-30 -=================== - - * Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - * Add new upstream MIME types - * Mark `text/yaml` as compressible - -1.47.0 / 2021-04-01 -=================== - - * Add new upstream MIME types - * Remove ambiguous extensions from IANA for `application/*+xml` types - * Update primary extension to `.es` for `application/ecmascript` - -1.46.0 / 2021-02-13 -=================== - - * Add extension `.amr` to `audio/amr` - * Add extension `.m4s` to `video/iso.segment` - * Add extension `.opus` to `audio/ogg` - * Add new upstream MIME types - -1.45.0 / 2020-09-22 -=================== - - * Add `application/ubjson` with extension `.ubj` - * Add `image/avif` with extension `.avif` - * Add `image/ktx2` with extension `.ktx2` - * Add extension `.dbf` to `application/vnd.dbf` - * Add extension `.rar` to `application/vnd.rar` - * Add extension `.td` to `application/urc-targetdesc+xml` - * Add new upstream MIME types - * Fix extension of `application/vnd.apple.keynote` to be `.key` - -1.44.0 / 2020-04-22 -=================== - - * Add charsets from IANA - * Add extension `.cjs` to `application/node` - * Add new upstream MIME types - -1.43.0 / 2020-01-05 -=================== - - * Add `application/x-keepass2` with extension `.kdbx` - * Add extension `.mxmf` to `audio/mobile-xmf` - * Add extensions from IANA for `application/*+xml` types - * Add new upstream MIME types - -1.42.0 / 2019-09-25 -=================== - - * Add `image/vnd.ms-dds` with extension `.dds` - * Add new upstream MIME types - * Remove compressible from `multipart/mixed` - -1.41.0 / 2019-08-30 -=================== - - * Add new upstream MIME types - * Add `application/toml` with extension `.toml` - * Mark `font/ttf` as compressible - -1.40.0 / 2019-04-20 -=================== - - * Add extensions from IANA for `model/*` types - * Add `text/mdx` with extension `.mdx` - -1.39.0 / 2019-04-04 -=================== - - * Add extensions `.siv` and `.sieve` to `application/sieve` - * Add new upstream MIME types - -1.38.0 / 2019-02-04 -=================== - - * Add extension `.nq` to `application/n-quads` - * Add extension `.nt` to `application/n-triples` - * Add new upstream MIME types - * Mark `text/less` as compressible - -1.37.0 / 2018-10-19 -=================== - - * Add extensions to HEIC image types - * Add new upstream MIME types - -1.36.0 / 2018-08-20 -=================== - - * Add Apple file extensions from IANA - * Add extensions from IANA for `image/*` types - * Add new upstream MIME types - -1.35.0 / 2018-07-15 -=================== - - * Add extension `.owl` to `application/rdf+xml` - * Add new upstream MIME types - - Removes extension `.woff` from `application/font-woff` - -1.34.0 / 2018-06-03 -=================== - - * Add extension `.csl` to `application/vnd.citationstyles.style+xml` - * Add extension `.es` to `application/ecmascript` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/turtle` - * Mark all XML-derived types as compressible - -1.33.0 / 2018-02-15 -=================== - - * Add extensions from IANA for `message/*` types - * Add new upstream MIME types - * Fix some incorrect OOXML types - * Remove `application/font-woff2` - -1.32.0 / 2017-11-29 -=================== - - * Add new upstream MIME types - * Update `text/hjson` to registered `application/hjson` - * Add `text/shex` with extension `.shex` - -1.31.0 / 2017-10-25 -=================== - - * Add `application/raml+yaml` with extension `.raml` - * Add `application/wasm` with extension `.wasm` - * Add new `font` type from IANA - * Add new upstream font extensions - * Add new upstream MIME types - * Add extensions for JPEG-2000 images - -1.30.0 / 2017-08-27 -=================== - - * Add `application/vnd.ms-outlook` - * Add `application/x-arj` - * Add extension `.mjs` to `application/javascript` - * Add glTF types and extensions - * Add new upstream MIME types - * Add `text/x-org` - * Add VirtualBox MIME types - * Fix `source` records for `video/*` types that are IANA - * Update `font/opentype` to registered `font/otf` - -1.29.0 / 2017-07-10 -=================== - - * Add `application/fido.trusted-apps+json` - * Add extension `.wadl` to `application/vnd.sun.wadl+xml` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/css` - -1.28.0 / 2017-05-14 -=================== - - * Add new upstream MIME types - * Add extension `.gz` to `application/gzip` - * Update extensions `.md` and `.markdown` to be `text/markdown` - -1.27.0 / 2017-03-16 -=================== - - * Add new upstream MIME types - * Add `image/apng` with extension `.apng` - -1.26.0 / 2017-01-14 -=================== - - * Add new upstream MIME types - * Add extension `.geojson` to `application/geo+json` - -1.25.0 / 2016-11-11 -=================== - - * Add new upstream MIME types - -1.24.0 / 2016-09-18 -=================== - - * Add `audio/mp3` - * Add new upstream MIME types - -1.23.0 / 2016-05-01 -=================== - - * Add new upstream MIME types - * Add extension `.3gpp` to `audio/3gpp` - -1.22.0 / 2016-02-15 -=================== - - * Add `text/slim` - * Add extension `.rng` to `application/xml` - * Add new upstream MIME types - * Fix extension of `application/dash+xml` to be `.mpd` - * Update primary extension to `.m4a` for `audio/mp4` - -1.21.0 / 2016-01-06 -=================== - - * Add Google document types - * Add new upstream MIME types - -1.20.0 / 2015-11-10 -=================== - - * Add `text/x-suse-ymp` - * Add new upstream MIME types - -1.19.0 / 2015-09-17 -=================== - - * Add `application/vnd.apple.pkpass` - * Add new upstream MIME types - -1.18.0 / 2015-09-03 -=================== - - * Add new upstream MIME types - -1.17.0 / 2015-08-13 -=================== - - * Add `application/x-msdos-program` - * Add `audio/g711-0` - * Add `image/vnd.mozilla.apng` - * Add extension `.exe` to `application/x-msdos-program` - -1.16.0 / 2015-07-29 -=================== - - * Add `application/vnd.uri-map` - -1.15.0 / 2015-07-13 -=================== - - * Add `application/x-httpd-php` - -1.14.0 / 2015-06-25 -=================== - - * Add `application/scim+json` - * Add `application/vnd.3gpp.ussd+xml` - * Add `application/vnd.biopax.rdf+xml` - * Add `text/x-processing` - -1.13.0 / 2015-06-07 -=================== - - * Add nginx as a source - * Add `application/x-cocoa` - * Add `application/x-java-archive-diff` - * Add `application/x-makeself` - * Add `application/x-perl` - * Add `application/x-pilot` - * Add `application/x-redhat-package-manager` - * Add `application/x-sea` - * Add `audio/x-m4a` - * Add `audio/x-realaudio` - * Add `image/x-jng` - * Add `text/mathml` - -1.12.0 / 2015-06-05 -=================== - - * Add `application/bdoc` - * Add `application/vnd.hyperdrive+json` - * Add `application/x-bdoc` - * Add extension `.rtf` to `text/rtf` - -1.11.0 / 2015-05-31 -=================== - - * Add `audio/wav` - * Add `audio/wave` - * Add extension `.litcoffee` to `text/coffeescript` - * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` - * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` - -1.10.0 / 2015-05-19 -=================== - - * Add `application/vnd.balsamiq.bmpr` - * Add `application/vnd.microsoft.portable-executable` - * Add `application/x-ns-proxy-autoconfig` - -1.9.1 / 2015-04-19 -================== - - * Remove `.json` extension from `application/manifest+json` - - This is causing bugs downstream - -1.9.0 / 2015-04-19 -================== - - * Add `application/manifest+json` - * Add `application/vnd.micro+json` - * Add `image/vnd.zbrush.pcx` - * Add `image/x-ms-bmp` - -1.8.0 / 2015-03-13 -================== - - * Add `application/vnd.citationstyles.style+xml` - * Add `application/vnd.fastcopy-disk-image` - * Add `application/vnd.gov.sk.xmldatacontainer+xml` - * Add extension `.jsonld` to `application/ld+json` - -1.7.0 / 2015-02-08 -================== - - * Add `application/vnd.gerber` - * Add `application/vnd.msa-disk-image` - -1.6.1 / 2015-02-05 -================== - - * Community extensions ownership transferred from `node-mime` - -1.6.0 / 2015-01-29 -================== - - * Add `application/jose` - * Add `application/jose+json` - * Add `application/json-seq` - * Add `application/jwk+json` - * Add `application/jwk-set+json` - * Add `application/jwt` - * Add `application/rdap+json` - * Add `application/vnd.gov.sk.e-form+xml` - * Add `application/vnd.ims.imsccv1p3` - -1.5.0 / 2014-12-30 -================== - - * Add `application/vnd.oracle.resource+json` - * Fix various invalid MIME type entries - - `application/mbox+xml` - - `application/oscp-response` - - `application/vwg-multiplexed` - - `audio/g721` - -1.4.0 / 2014-12-21 -================== - - * Add `application/vnd.ims.imsccv1p2` - * Fix various invalid MIME type entries - - `application/vnd-acucobol` - - `application/vnd-curl` - - `application/vnd-dart` - - `application/vnd-dxr` - - `application/vnd-fdf` - - `application/vnd-mif` - - `application/vnd-sema` - - `application/vnd-wap-wmlc` - - `application/vnd.adobe.flash-movie` - - `application/vnd.dece-zip` - - `application/vnd.dvb_service` - - `application/vnd.micrografx-igx` - - `application/vnd.sealed-doc` - - `application/vnd.sealed-eml` - - `application/vnd.sealed-mht` - - `application/vnd.sealed-ppt` - - `application/vnd.sealed-tiff` - - `application/vnd.sealed-xls` - - `application/vnd.sealedmedia.softseal-html` - - `application/vnd.sealedmedia.softseal-pdf` - - `application/vnd.wap-slc` - - `application/vnd.wap-wbxml` - - `audio/vnd.sealedmedia.softseal-mpeg` - - `image/vnd-djvu` - - `image/vnd-svf` - - `image/vnd-wap-wbmp` - - `image/vnd.sealed-png` - - `image/vnd.sealedmedia.softseal-gif` - - `image/vnd.sealedmedia.softseal-jpg` - - `model/vnd-dwf` - - `model/vnd.parasolid.transmit-binary` - - `model/vnd.parasolid.transmit-text` - - `text/vnd-a` - - `text/vnd-curl` - - `text/vnd.wap-wml` - * Remove example template MIME types - - `application/example` - - `audio/example` - - `image/example` - - `message/example` - - `model/example` - - `multipart/example` - - `text/example` - - `video/example` - -1.3.1 / 2014-12-16 -================== - - * Fix missing extensions - - `application/json5` - - `text/hjson` - -1.3.0 / 2014-12-07 -================== - - * Add `application/a2l` - * Add `application/aml` - * Add `application/atfx` - * Add `application/atxml` - * Add `application/cdfx+xml` - * Add `application/dii` - * Add `application/json5` - * Add `application/lxf` - * Add `application/mf4` - * Add `application/vnd.apache.thrift.compact` - * Add `application/vnd.apache.thrift.json` - * Add `application/vnd.coffeescript` - * Add `application/vnd.enphase.envoy` - * Add `application/vnd.ims.imsccv1p1` - * Add `text/csv-schema` - * Add `text/hjson` - * Add `text/markdown` - * Add `text/yaml` - -1.2.0 / 2014-11-09 -================== - - * Add `application/cea` - * Add `application/dit` - * Add `application/vnd.gov.sk.e-form+zip` - * Add `application/vnd.tmd.mediaflex.api+xml` - * Type `application/epub+zip` is now IANA-registered - -1.1.2 / 2014-10-23 -================== - - * Rebuild database for `application/x-www-form-urlencoded` change - -1.1.1 / 2014-10-20 -================== - - * Mark `application/x-www-form-urlencoded` as compressible. - -1.1.0 / 2014-09-28 -================== - - * Add `application/font-woff2` - -1.0.3 / 2014-09-25 -================== - - * Fix engine requirement in package - -1.0.2 / 2014-09-25 -================== - - * Add `application/coap-group+json` - * Add `application/dcd` - * Add `application/vnd.apache.thrift.binary` - * Add `image/vnd.tencent.tap` - * Mark all JSON-derived types as compressible - * Update `text/vtt` data - -1.0.1 / 2014-08-30 -================== - - * Fix extension ordering - -1.0.0 / 2014-08-30 -================== - - * Add `application/atf` - * Add `application/merge-patch+json` - * Add `multipart/x-mixed-replace` - * Add `source: 'apache'` metadata - * Add `source: 'iana'` metadata - * Remove badly-assumed charset data diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/LICENSE deleted file mode 100644 index 0751cb1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015-2022 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/README.md deleted file mode 100644 index ee93fa0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/README.md +++ /dev/null @@ -1,109 +0,0 @@ -# mime-db - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][ci-image]][ci-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -This is a large database of mime types and information about them. -It consists of a single, public JSON file and does not include any logic, -allowing it to remain as un-opinionated as possible with an API. -It aggregates data from the following sources: - -- https://www.iana.org/assignments/media-types/media-types.xhtml -- https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -- https://hg.nginx.org/nginx/raw-file/default/conf/mime.types - -## Installation - -```bash -npm install mime-db -``` - -### Database Download - -If you intend to use this in a web browser, you can conveniently access the JSON file via [jsDelivr](https://www.jsdelivr.com/), a popular CDN (Content Delivery Network). To ensure stability and compatibility, it is advisable to specify [a release tag](https://github.com/jshttp/mime-db/tags) instead of using the 'master' branch. This is because the JSON file's format might change in future updates, and relying on a specific release tag will prevent potential issues arising from these changes. - -``` -https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json -``` - -## Usage - -```js -var db = require('mime-db') - -// grab data on .js files -var data = db['application/javascript'] -``` - -## Data Structure - -The JSON file is a map lookup for lowercased mime types. -Each mime type has the following properties: - -- `.source` - where the mime type is defined. - If not set, it's probably a custom media type. - - `apache` - [Apache common media types](https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) - - `iana` - [IANA-defined media types](https://www.iana.org/assignments/media-types/media-types.xhtml) - - `nginx` - [nginx media types](https://hg.nginx.org/nginx/raw-file/default/conf/mime.types) -- `.extensions[]` - known extensions associated with this mime type. -- `.compressible` - whether a file of this type can be gzipped. -- `.charset` - the default charset associated with this type, if any. - -If unknown, every property could be `undefined`. - -## Note on MIME Type Data and Semver - -This package considers the programmatic api as the semver compatibility. This means the MIME type resolution is *not* considered -in the semver bumps. This means that if you want to pin your `mime-db` data you will need to do it in your application. While -this expectation was not set in docs until now, it is how the pacakge operated, so we do not feel this is a breaking change. - -## Contributing - -The primary way to contribute to this database is by updating the data in -one of the upstream sources. The database is updated from the upstreams -periodically and will pull in any changes. - -### Registering Media Types - -The best way to get new media types included in this library is to register -them with the IANA. The community registration procedure is outlined in -[RFC 6838 section 5](https://tools.ietf.org/html/rfc6838#section-5). Types -registered with the IANA are automatically pulled into this library. - -### Direct Inclusion - -If that is not possible / feasible, they can be added directly here as a -"custom" type. To do this, it is required to have a primary source that -definitively lists the media type. If an extension is going to be listed as -associated with this media type, the source must definitively link the -media type and extension as well. - -To edit the database, only make PRs against `src/custom-types.json` or -`src/custom-suffix.json`. - -The `src/custom-types.json` file is a JSON object with the MIME type as the -keys and the values being an object with the following keys: - -- `compressible` - leave out if you don't know, otherwise `true`/`false` to - indicate whether the data represented by the type is typically compressible. -- `extensions` - include an array of file extensions that are associated with - the type. -- `notes` - human-readable notes about the type, typically what the type is. -- `sources` - include an array of URLs of where the MIME type and the associated - extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source); - links to type aggregating sites and Wikipedia are _not acceptable_. - -To update the build, run `npm run build`. - -[ci-image]: https://badgen.net/github/checks/jshttp/mime-db/master?label=ci -[ci-url]: https://github.com/jshttp/mime-db/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master -[node-image]: https://badgen.net/npm/node/mime-db -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-db -[npm-url]: https://npmjs.org/package/mime-db -[npm-version-image]: https://badgen.net/npm/v/mime-db diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/db.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/db.json deleted file mode 100644 index 7e74733..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/db.json +++ /dev/null @@ -1,9342 +0,0 @@ -{ - "application/1d-interleaved-parityfec": { - "source": "iana" - }, - "application/3gpdash-qoe-report+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/3gpp-ims+xml": { - "source": "iana", - "compressible": true - }, - "application/3gpphal+json": { - "source": "iana", - "compressible": true - }, - "application/3gpphalforms+json": { - "source": "iana", - "compressible": true - }, - "application/a2l": { - "source": "iana" - }, - "application/ace+cbor": { - "source": "iana" - }, - "application/ace+json": { - "source": "iana", - "compressible": true - }, - "application/ace-groupcomm+cbor": { - "source": "iana" - }, - "application/ace-trl+cbor": { - "source": "iana" - }, - "application/activemessage": { - "source": "iana" - }, - "application/activity+json": { - "source": "iana", - "compressible": true - }, - "application/aif+cbor": { - "source": "iana" - }, - "application/aif+json": { - "source": "iana", - "compressible": true - }, - "application/alto-cdni+json": { - "source": "iana", - "compressible": true - }, - "application/alto-cdnifilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-directory+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcost+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcostparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointprop+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointpropparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-error+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-propmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-propmapparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-tips+json": { - "source": "iana", - "compressible": true - }, - "application/alto-tipsparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-updatestreamcontrol+json": { - "source": "iana", - "compressible": true - }, - "application/alto-updatestreamparams+json": { - "source": "iana", - "compressible": true - }, - "application/aml": { - "source": "iana" - }, - "application/andrew-inset": { - "source": "iana", - "extensions": ["ez"] - }, - "application/appinstaller": { - "compressible": false, - "extensions": ["appinstaller"] - }, - "application/applefile": { - "source": "iana" - }, - "application/applixware": { - "source": "apache", - "extensions": ["aw"] - }, - "application/appx": { - "compressible": false, - "extensions": ["appx"] - }, - "application/appxbundle": { - "compressible": false, - "extensions": ["appxbundle"] - }, - "application/at+jwt": { - "source": "iana" - }, - "application/atf": { - "source": "iana" - }, - "application/atfx": { - "source": "iana" - }, - "application/atom+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atom"] - }, - "application/atomcat+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomcat"] - }, - "application/atomdeleted+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomdeleted"] - }, - "application/atomicmail": { - "source": "iana" - }, - "application/atomsvc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomsvc"] - }, - "application/atsc-dwd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dwd"] - }, - "application/atsc-dynamic-event-message": { - "source": "iana" - }, - "application/atsc-held+xml": { - "source": "iana", - "compressible": true, - "extensions": ["held"] - }, - "application/atsc-rdt+json": { - "source": "iana", - "compressible": true - }, - "application/atsc-rsat+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rsat"] - }, - "application/atxml": { - "source": "iana" - }, - "application/auth-policy+xml": { - "source": "iana", - "compressible": true - }, - "application/automationml-aml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["aml"] - }, - "application/automationml-amlx+zip": { - "source": "iana", - "compressible": false, - "extensions": ["amlx"] - }, - "application/bacnet-xdd+zip": { - "source": "iana", - "compressible": false - }, - "application/batch-smtp": { - "source": "iana" - }, - "application/bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/beep+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/bufr": { - "source": "iana" - }, - "application/c2pa": { - "source": "iana" - }, - "application/calendar+json": { - "source": "iana", - "compressible": true - }, - "application/calendar+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xcs"] - }, - "application/call-completion": { - "source": "iana" - }, - "application/cals-1840": { - "source": "iana" - }, - "application/captive+json": { - "source": "iana", - "compressible": true - }, - "application/cbor": { - "source": "iana" - }, - "application/cbor-seq": { - "source": "iana" - }, - "application/cccex": { - "source": "iana" - }, - "application/ccmp+xml": { - "source": "iana", - "compressible": true - }, - "application/ccxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ccxml"] - }, - "application/cda+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/cdfx+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cdfx"] - }, - "application/cdmi-capability": { - "source": "iana", - "extensions": ["cdmia"] - }, - "application/cdmi-container": { - "source": "iana", - "extensions": ["cdmic"] - }, - "application/cdmi-domain": { - "source": "iana", - "extensions": ["cdmid"] - }, - "application/cdmi-object": { - "source": "iana", - "extensions": ["cdmio"] - }, - "application/cdmi-queue": { - "source": "iana", - "extensions": ["cdmiq"] - }, - "application/cdni": { - "source": "iana" - }, - "application/ce+cbor": { - "source": "iana" - }, - "application/cea": { - "source": "iana" - }, - "application/cea-2018+xml": { - "source": "iana", - "compressible": true - }, - "application/cellml+xml": { - "source": "iana", - "compressible": true - }, - "application/cfw": { - "source": "iana" - }, - "application/cid-edhoc+cbor-seq": { - "source": "iana" - }, - "application/city+json": { - "source": "iana", - "compressible": true - }, - "application/city+json-seq": { - "source": "iana" - }, - "application/clr": { - "source": "iana" - }, - "application/clue+xml": { - "source": "iana", - "compressible": true - }, - "application/clue_info+xml": { - "source": "iana", - "compressible": true - }, - "application/cms": { - "source": "iana" - }, - "application/cnrp+xml": { - "source": "iana", - "compressible": true - }, - "application/coap-eap": { - "source": "iana" - }, - "application/coap-group+json": { - "source": "iana", - "compressible": true - }, - "application/coap-payload": { - "source": "iana" - }, - "application/commonground": { - "source": "iana" - }, - "application/concise-problem-details+cbor": { - "source": "iana" - }, - "application/conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/cose": { - "source": "iana" - }, - "application/cose-key": { - "source": "iana" - }, - "application/cose-key-set": { - "source": "iana" - }, - "application/cose-x509": { - "source": "iana" - }, - "application/cpl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cpl"] - }, - "application/csrattrs": { - "source": "iana" - }, - "application/csta+xml": { - "source": "iana", - "compressible": true - }, - "application/cstadata+xml": { - "source": "iana", - "compressible": true - }, - "application/csvm+json": { - "source": "iana", - "compressible": true - }, - "application/cu-seeme": { - "source": "apache", - "extensions": ["cu"] - }, - "application/cwl": { - "source": "iana", - "extensions": ["cwl"] - }, - "application/cwl+json": { - "source": "iana", - "compressible": true - }, - "application/cwl+yaml": { - "source": "iana" - }, - "application/cwt": { - "source": "iana" - }, - "application/cybercash": { - "source": "iana" - }, - "application/dart": { - "compressible": true - }, - "application/dash+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpd"] - }, - "application/dash-patch+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpp"] - }, - "application/dashdelta": { - "source": "iana" - }, - "application/davmount+xml": { - "source": "iana", - "compressible": true, - "extensions": ["davmount"] - }, - "application/dca-rft": { - "source": "iana" - }, - "application/dcd": { - "source": "iana" - }, - "application/dec-dx": { - "source": "iana" - }, - "application/dialog-info+xml": { - "source": "iana", - "compressible": true - }, - "application/dicom": { - "source": "iana", - "extensions": ["dcm"] - }, - "application/dicom+json": { - "source": "iana", - "compressible": true - }, - "application/dicom+xml": { - "source": "iana", - "compressible": true - }, - "application/dii": { - "source": "iana" - }, - "application/dit": { - "source": "iana" - }, - "application/dns": { - "source": "iana" - }, - "application/dns+json": { - "source": "iana", - "compressible": true - }, - "application/dns-message": { - "source": "iana" - }, - "application/docbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dbk"] - }, - "application/dots+cbor": { - "source": "iana" - }, - "application/dpop+jwt": { - "source": "iana" - }, - "application/dskpp+xml": { - "source": "iana", - "compressible": true - }, - "application/dssc+der": { - "source": "iana", - "extensions": ["dssc"] - }, - "application/dssc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdssc"] - }, - "application/dvcs": { - "source": "iana" - }, - "application/eat+cwt": { - "source": "iana" - }, - "application/eat+jwt": { - "source": "iana" - }, - "application/eat-bun+cbor": { - "source": "iana" - }, - "application/eat-bun+json": { - "source": "iana", - "compressible": true - }, - "application/eat-ucs+cbor": { - "source": "iana" - }, - "application/eat-ucs+json": { - "source": "iana", - "compressible": true - }, - "application/ecmascript": { - "source": "apache", - "compressible": true, - "extensions": ["ecma"] - }, - "application/edhoc+cbor-seq": { - "source": "iana" - }, - "application/edi-consent": { - "source": "iana" - }, - "application/edi-x12": { - "source": "iana", - "compressible": false - }, - "application/edifact": { - "source": "iana", - "compressible": false - }, - "application/efi": { - "source": "iana" - }, - "application/elm+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/elm+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.cap+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/emergencycalldata.comment+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.control+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.deviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.ecall.msd": { - "source": "iana" - }, - "application/emergencycalldata.legacyesn+json": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.providerinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.serviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.subscriberinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.veds+xml": { - "source": "iana", - "compressible": true - }, - "application/emma+xml": { - "source": "iana", - "compressible": true, - "extensions": ["emma"] - }, - "application/emotionml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["emotionml"] - }, - "application/encaprtp": { - "source": "iana" - }, - "application/entity-statement+jwt": { - "source": "iana" - }, - "application/epp+xml": { - "source": "iana", - "compressible": true - }, - "application/epub+zip": { - "source": "iana", - "compressible": false, - "extensions": ["epub"] - }, - "application/eshop": { - "source": "iana" - }, - "application/exi": { - "source": "iana", - "extensions": ["exi"] - }, - "application/expect-ct-report+json": { - "source": "iana", - "compressible": true - }, - "application/express": { - "source": "iana", - "extensions": ["exp"] - }, - "application/fastinfoset": { - "source": "iana" - }, - "application/fastsoap": { - "source": "iana" - }, - "application/fdf": { - "source": "iana", - "extensions": ["fdf"] - }, - "application/fdt+xml": { - "source": "iana", - "compressible": true, - "extensions": ["fdt"] - }, - "application/fhir+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/fhir+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/fido.trusted-apps+json": { - "compressible": true - }, - "application/fits": { - "source": "iana" - }, - "application/flexfec": { - "source": "iana" - }, - "application/font-sfnt": { - "source": "iana" - }, - "application/font-tdpfr": { - "source": "iana", - "extensions": ["pfr"] - }, - "application/font-woff": { - "source": "iana", - "compressible": false - }, - "application/framework-attributes+xml": { - "source": "iana", - "compressible": true - }, - "application/geo+json": { - "source": "iana", - "compressible": true, - "extensions": ["geojson"] - }, - "application/geo+json-seq": { - "source": "iana" - }, - "application/geopackage+sqlite3": { - "source": "iana" - }, - "application/geopose+json": { - "source": "iana", - "compressible": true - }, - "application/geoxacml+json": { - "source": "iana", - "compressible": true - }, - "application/geoxacml+xml": { - "source": "iana", - "compressible": true - }, - "application/gltf-buffer": { - "source": "iana" - }, - "application/gml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["gml"] - }, - "application/gnap-binding-jws": { - "source": "iana" - }, - "application/gnap-binding-jwsd": { - "source": "iana" - }, - "application/gnap-binding-rotation-jws": { - "source": "iana" - }, - "application/gnap-binding-rotation-jwsd": { - "source": "iana" - }, - "application/gpx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["gpx"] - }, - "application/grib": { - "source": "iana" - }, - "application/gxf": { - "source": "apache", - "extensions": ["gxf"] - }, - "application/gzip": { - "source": "iana", - "compressible": false, - "extensions": ["gz"] - }, - "application/h224": { - "source": "iana" - }, - "application/held+xml": { - "source": "iana", - "compressible": true - }, - "application/hjson": { - "extensions": ["hjson"] - }, - "application/hl7v2+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/http": { - "source": "iana" - }, - "application/hyperstudio": { - "source": "iana", - "extensions": ["stk"] - }, - "application/ibe-key-request+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pkg-reply+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pp-data": { - "source": "iana" - }, - "application/iges": { - "source": "iana" - }, - "application/im-iscomposing+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/index": { - "source": "iana" - }, - "application/index.cmd": { - "source": "iana" - }, - "application/index.obj": { - "source": "iana" - }, - "application/index.response": { - "source": "iana" - }, - "application/index.vnd": { - "source": "iana" - }, - "application/inkml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ink","inkml"] - }, - "application/iotp": { - "source": "iana" - }, - "application/ipfix": { - "source": "iana", - "extensions": ["ipfix"] - }, - "application/ipp": { - "source": "iana" - }, - "application/isup": { - "source": "iana" - }, - "application/its+xml": { - "source": "iana", - "compressible": true, - "extensions": ["its"] - }, - "application/java-archive": { - "source": "iana", - "compressible": false, - "extensions": ["jar","war","ear"] - }, - "application/java-serialized-object": { - "source": "apache", - "compressible": false, - "extensions": ["ser"] - }, - "application/java-vm": { - "source": "apache", - "compressible": false, - "extensions": ["class"] - }, - "application/javascript": { - "source": "apache", - "charset": "UTF-8", - "compressible": true, - "extensions": ["js"] - }, - "application/jf2feed+json": { - "source": "iana", - "compressible": true - }, - "application/jose": { - "source": "iana" - }, - "application/jose+json": { - "source": "iana", - "compressible": true - }, - "application/jrd+json": { - "source": "iana", - "compressible": true - }, - "application/jscalendar+json": { - "source": "iana", - "compressible": true - }, - "application/jscontact+json": { - "source": "iana", - "compressible": true - }, - "application/json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["json","map"] - }, - "application/json-patch+json": { - "source": "iana", - "compressible": true - }, - "application/json-seq": { - "source": "iana" - }, - "application/json5": { - "extensions": ["json5"] - }, - "application/jsonml+json": { - "source": "apache", - "compressible": true, - "extensions": ["jsonml"] - }, - "application/jsonpath": { - "source": "iana" - }, - "application/jwk+json": { - "source": "iana", - "compressible": true - }, - "application/jwk-set+json": { - "source": "iana", - "compressible": true - }, - "application/jwk-set+jwt": { - "source": "iana" - }, - "application/jwt": { - "source": "iana" - }, - "application/kpml-request+xml": { - "source": "iana", - "compressible": true - }, - "application/kpml-response+xml": { - "source": "iana", - "compressible": true - }, - "application/ld+json": { - "source": "iana", - "compressible": true, - "extensions": ["jsonld"] - }, - "application/lgr+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lgr"] - }, - "application/link-format": { - "source": "iana" - }, - "application/linkset": { - "source": "iana" - }, - "application/linkset+json": { - "source": "iana", - "compressible": true - }, - "application/load-control+xml": { - "source": "iana", - "compressible": true - }, - "application/logout+jwt": { - "source": "iana" - }, - "application/lost+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lostxml"] - }, - "application/lostsync+xml": { - "source": "iana", - "compressible": true - }, - "application/lpf+zip": { - "source": "iana", - "compressible": false - }, - "application/lxf": { - "source": "iana" - }, - "application/mac-binhex40": { - "source": "iana", - "extensions": ["hqx"] - }, - "application/mac-compactpro": { - "source": "apache", - "extensions": ["cpt"] - }, - "application/macwriteii": { - "source": "iana" - }, - "application/mads+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mads"] - }, - "application/manifest+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["webmanifest"] - }, - "application/marc": { - "source": "iana", - "extensions": ["mrc"] - }, - "application/marcxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mrcx"] - }, - "application/mathematica": { - "source": "iana", - "extensions": ["ma","nb","mb"] - }, - "application/mathml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mathml"] - }, - "application/mathml-content+xml": { - "source": "iana", - "compressible": true - }, - "application/mathml-presentation+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-associated-procedure-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-deregister+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-envelope+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-protection-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-reception-report+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-schedule+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-user-service-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbox": { - "source": "iana", - "extensions": ["mbox"] - }, - "application/media-policy-dataset+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpf"] - }, - "application/media_control+xml": { - "source": "iana", - "compressible": true - }, - "application/mediaservercontrol+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mscml"] - }, - "application/merge-patch+json": { - "source": "iana", - "compressible": true - }, - "application/metalink+xml": { - "source": "apache", - "compressible": true, - "extensions": ["metalink"] - }, - "application/metalink4+xml": { - "source": "iana", - "compressible": true, - "extensions": ["meta4"] - }, - "application/mets+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mets"] - }, - "application/mf4": { - "source": "iana" - }, - "application/mikey": { - "source": "iana" - }, - "application/mipc": { - "source": "iana" - }, - "application/missing-blocks+cbor-seq": { - "source": "iana" - }, - "application/mmt-aei+xml": { - "source": "iana", - "compressible": true, - "extensions": ["maei"] - }, - "application/mmt-usd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["musd"] - }, - "application/mods+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mods"] - }, - "application/moss-keys": { - "source": "iana" - }, - "application/moss-signature": { - "source": "iana" - }, - "application/mosskey-data": { - "source": "iana" - }, - "application/mosskey-request": { - "source": "iana" - }, - "application/mp21": { - "source": "iana", - "extensions": ["m21","mp21"] - }, - "application/mp4": { - "source": "iana", - "extensions": ["mp4","mpg4","mp4s","m4p"] - }, - "application/mpeg4-generic": { - "source": "iana" - }, - "application/mpeg4-iod": { - "source": "iana" - }, - "application/mpeg4-iod-xmt": { - "source": "iana" - }, - "application/mrb-consumer+xml": { - "source": "iana", - "compressible": true - }, - "application/mrb-publish+xml": { - "source": "iana", - "compressible": true - }, - "application/msc-ivr+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/msc-mixer+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/msix": { - "compressible": false, - "extensions": ["msix"] - }, - "application/msixbundle": { - "compressible": false, - "extensions": ["msixbundle"] - }, - "application/msword": { - "source": "iana", - "compressible": false, - "extensions": ["doc","dot"] - }, - "application/mud+json": { - "source": "iana", - "compressible": true - }, - "application/multipart-core": { - "source": "iana" - }, - "application/mxf": { - "source": "iana", - "extensions": ["mxf"] - }, - "application/n-quads": { - "source": "iana", - "extensions": ["nq"] - }, - "application/n-triples": { - "source": "iana", - "extensions": ["nt"] - }, - "application/nasdata": { - "source": "iana" - }, - "application/news-checkgroups": { - "source": "iana", - "charset": "US-ASCII" - }, - "application/news-groupinfo": { - "source": "iana", - "charset": "US-ASCII" - }, - "application/news-transmission": { - "source": "iana" - }, - "application/nlsml+xml": { - "source": "iana", - "compressible": true - }, - "application/node": { - "source": "iana", - "extensions": ["cjs"] - }, - "application/nss": { - "source": "iana" - }, - "application/oauth-authz-req+jwt": { - "source": "iana" - }, - "application/oblivious-dns-message": { - "source": "iana" - }, - "application/ocsp-request": { - "source": "iana" - }, - "application/ocsp-response": { - "source": "iana" - }, - "application/octet-stream": { - "source": "iana", - "compressible": true, - "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] - }, - "application/oda": { - "source": "iana", - "extensions": ["oda"] - }, - "application/odm+xml": { - "source": "iana", - "compressible": true - }, - "application/odx": { - "source": "iana" - }, - "application/oebps-package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["opf"] - }, - "application/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogx"] - }, - "application/ohttp-keys": { - "source": "iana" - }, - "application/omdoc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["omdoc"] - }, - "application/onenote": { - "source": "apache", - "extensions": ["onetoc","onetoc2","onetmp","onepkg","one","onea"] - }, - "application/opc-nodeset+xml": { - "source": "iana", - "compressible": true - }, - "application/oscore": { - "source": "iana" - }, - "application/oxps": { - "source": "iana", - "extensions": ["oxps"] - }, - "application/p21": { - "source": "iana" - }, - "application/p21+zip": { - "source": "iana", - "compressible": false - }, - "application/p2p-overlay+xml": { - "source": "iana", - "compressible": true, - "extensions": ["relo"] - }, - "application/parityfec": { - "source": "iana" - }, - "application/passport": { - "source": "iana" - }, - "application/patch-ops-error+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xer"] - }, - "application/pdf": { - "source": "iana", - "compressible": false, - "extensions": ["pdf"] - }, - "application/pdx": { - "source": "iana" - }, - "application/pem-certificate-chain": { - "source": "iana" - }, - "application/pgp-encrypted": { - "source": "iana", - "compressible": false, - "extensions": ["pgp"] - }, - "application/pgp-keys": { - "source": "iana", - "extensions": ["asc"] - }, - "application/pgp-signature": { - "source": "iana", - "extensions": ["sig","asc"] - }, - "application/pics-rules": { - "source": "apache", - "extensions": ["prf"] - }, - "application/pidf+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/pidf-diff+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/pkcs10": { - "source": "iana", - "extensions": ["p10"] - }, - "application/pkcs12": { - "source": "iana" - }, - "application/pkcs7-mime": { - "source": "iana", - "extensions": ["p7m","p7c"] - }, - "application/pkcs7-signature": { - "source": "iana", - "extensions": ["p7s"] - }, - "application/pkcs8": { - "source": "iana", - "extensions": ["p8"] - }, - "application/pkcs8-encrypted": { - "source": "iana" - }, - "application/pkix-attr-cert": { - "source": "iana", - "extensions": ["ac"] - }, - "application/pkix-cert": { - "source": "iana", - "extensions": ["cer"] - }, - "application/pkix-crl": { - "source": "iana", - "extensions": ["crl"] - }, - "application/pkix-pkipath": { - "source": "iana", - "extensions": ["pkipath"] - }, - "application/pkixcmp": { - "source": "iana", - "extensions": ["pki"] - }, - "application/pls+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pls"] - }, - "application/poc-settings+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/postscript": { - "source": "iana", - "compressible": true, - "extensions": ["ai","eps","ps"] - }, - "application/ppsp-tracker+json": { - "source": "iana", - "compressible": true - }, - "application/private-token-issuer-directory": { - "source": "iana" - }, - "application/private-token-request": { - "source": "iana" - }, - "application/private-token-response": { - "source": "iana" - }, - "application/problem+json": { - "source": "iana", - "compressible": true - }, - "application/problem+xml": { - "source": "iana", - "compressible": true - }, - "application/provenance+xml": { - "source": "iana", - "compressible": true, - "extensions": ["provx"] - }, - "application/provided-claims+jwt": { - "source": "iana" - }, - "application/prs.alvestrand.titrax-sheet": { - "source": "iana" - }, - "application/prs.cww": { - "source": "iana", - "extensions": ["cww"] - }, - "application/prs.cyn": { - "source": "iana", - "charset": "7-BIT" - }, - "application/prs.hpub+zip": { - "source": "iana", - "compressible": false - }, - "application/prs.implied-document+xml": { - "source": "iana", - "compressible": true - }, - "application/prs.implied-executable": { - "source": "iana" - }, - "application/prs.implied-object+json": { - "source": "iana", - "compressible": true - }, - "application/prs.implied-object+json-seq": { - "source": "iana" - }, - "application/prs.implied-object+yaml": { - "source": "iana" - }, - "application/prs.implied-structure": { - "source": "iana" - }, - "application/prs.mayfile": { - "source": "iana" - }, - "application/prs.nprend": { - "source": "iana" - }, - "application/prs.plucker": { - "source": "iana" - }, - "application/prs.rdf-xml-crypt": { - "source": "iana" - }, - "application/prs.vcfbzip2": { - "source": "iana" - }, - "application/prs.xsf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xsf"] - }, - "application/pskc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pskcxml"] - }, - "application/pvd+json": { - "source": "iana", - "compressible": true - }, - "application/qsig": { - "source": "iana" - }, - "application/raml+yaml": { - "compressible": true, - "extensions": ["raml"] - }, - "application/raptorfec": { - "source": "iana" - }, - "application/rdap+json": { - "source": "iana", - "compressible": true - }, - "application/rdf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rdf","owl"] - }, - "application/reginfo+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rif"] - }, - "application/relax-ng-compact-syntax": { - "source": "iana", - "extensions": ["rnc"] - }, - "application/remote-printing": { - "source": "apache" - }, - "application/reputon+json": { - "source": "iana", - "compressible": true - }, - "application/resolve-response+jwt": { - "source": "iana" - }, - "application/resource-lists+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rl"] - }, - "application/resource-lists-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rld"] - }, - "application/rfc+xml": { - "source": "iana", - "compressible": true - }, - "application/riscos": { - "source": "iana" - }, - "application/rlmi+xml": { - "source": "iana", - "compressible": true - }, - "application/rls-services+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rs"] - }, - "application/route-apd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rapd"] - }, - "application/route-s-tsid+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sls"] - }, - "application/route-usd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rusd"] - }, - "application/rpki-checklist": { - "source": "iana" - }, - "application/rpki-ghostbusters": { - "source": "iana", - "extensions": ["gbr"] - }, - "application/rpki-manifest": { - "source": "iana", - "extensions": ["mft"] - }, - "application/rpki-publication": { - "source": "iana" - }, - "application/rpki-roa": { - "source": "iana", - "extensions": ["roa"] - }, - "application/rpki-signed-tal": { - "source": "iana" - }, - "application/rpki-updown": { - "source": "iana" - }, - "application/rsd+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rsd"] - }, - "application/rss+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rss"] - }, - "application/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "application/rtploopback": { - "source": "iana" - }, - "application/rtx": { - "source": "iana" - }, - "application/samlassertion+xml": { - "source": "iana", - "compressible": true - }, - "application/samlmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/sarif+json": { - "source": "iana", - "compressible": true - }, - "application/sarif-external-properties+json": { - "source": "iana", - "compressible": true - }, - "application/sbe": { - "source": "iana" - }, - "application/sbml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sbml"] - }, - "application/scaip+xml": { - "source": "iana", - "compressible": true - }, - "application/scim+json": { - "source": "iana", - "compressible": true - }, - "application/scvp-cv-request": { - "source": "iana", - "extensions": ["scq"] - }, - "application/scvp-cv-response": { - "source": "iana", - "extensions": ["scs"] - }, - "application/scvp-vp-request": { - "source": "iana", - "extensions": ["spq"] - }, - "application/scvp-vp-response": { - "source": "iana", - "extensions": ["spp"] - }, - "application/sdp": { - "source": "iana", - "extensions": ["sdp"] - }, - "application/secevent+jwt": { - "source": "iana" - }, - "application/senml+cbor": { - "source": "iana" - }, - "application/senml+json": { - "source": "iana", - "compressible": true - }, - "application/senml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["senmlx"] - }, - "application/senml-etch+cbor": { - "source": "iana" - }, - "application/senml-etch+json": { - "source": "iana", - "compressible": true - }, - "application/senml-exi": { - "source": "iana" - }, - "application/sensml+cbor": { - "source": "iana" - }, - "application/sensml+json": { - "source": "iana", - "compressible": true - }, - "application/sensml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sensmlx"] - }, - "application/sensml-exi": { - "source": "iana" - }, - "application/sep+xml": { - "source": "iana", - "compressible": true - }, - "application/sep-exi": { - "source": "iana" - }, - "application/session-info": { - "source": "iana" - }, - "application/set-payment": { - "source": "iana" - }, - "application/set-payment-initiation": { - "source": "iana", - "extensions": ["setpay"] - }, - "application/set-registration": { - "source": "iana" - }, - "application/set-registration-initiation": { - "source": "iana", - "extensions": ["setreg"] - }, - "application/sgml": { - "source": "iana" - }, - "application/sgml-open-catalog": { - "source": "iana" - }, - "application/shf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["shf"] - }, - "application/sieve": { - "source": "iana", - "extensions": ["siv","sieve"] - }, - "application/simple-filter+xml": { - "source": "iana", - "compressible": true - }, - "application/simple-message-summary": { - "source": "iana" - }, - "application/simplesymbolcontainer": { - "source": "iana" - }, - "application/sipc": { - "source": "iana" - }, - "application/slate": { - "source": "iana" - }, - "application/smil": { - "source": "apache" - }, - "application/smil+xml": { - "source": "iana", - "compressible": true, - "extensions": ["smi","smil"] - }, - "application/smpte336m": { - "source": "iana" - }, - "application/soap+fastinfoset": { - "source": "iana" - }, - "application/soap+xml": { - "source": "iana", - "compressible": true - }, - "application/sparql-query": { - "source": "iana", - "extensions": ["rq"] - }, - "application/sparql-results+xml": { - "source": "iana", - "compressible": true, - "extensions": ["srx"] - }, - "application/spdx+json": { - "source": "iana", - "compressible": true - }, - "application/spirits-event+xml": { - "source": "iana", - "compressible": true - }, - "application/sql": { - "source": "iana", - "extensions": ["sql"] - }, - "application/srgs": { - "source": "iana", - "extensions": ["gram"] - }, - "application/srgs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["grxml"] - }, - "application/sru+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sru"] - }, - "application/ssdl+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ssdl"] - }, - "application/sslkeylogfile": { - "source": "iana" - }, - "application/ssml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ssml"] - }, - "application/st2110-41": { - "source": "iana" - }, - "application/stix+json": { - "source": "iana", - "compressible": true - }, - "application/stratum": { - "source": "iana" - }, - "application/swid+cbor": { - "source": "iana" - }, - "application/swid+xml": { - "source": "iana", - "compressible": true, - "extensions": ["swidtag"] - }, - "application/tamp-apex-update": { - "source": "iana" - }, - "application/tamp-apex-update-confirm": { - "source": "iana" - }, - "application/tamp-community-update": { - "source": "iana" - }, - "application/tamp-community-update-confirm": { - "source": "iana" - }, - "application/tamp-error": { - "source": "iana" - }, - "application/tamp-sequence-adjust": { - "source": "iana" - }, - "application/tamp-sequence-adjust-confirm": { - "source": "iana" - }, - "application/tamp-status-query": { - "source": "iana" - }, - "application/tamp-status-response": { - "source": "iana" - }, - "application/tamp-update": { - "source": "iana" - }, - "application/tamp-update-confirm": { - "source": "iana" - }, - "application/tar": { - "compressible": true - }, - "application/taxii+json": { - "source": "iana", - "compressible": true - }, - "application/td+json": { - "source": "iana", - "compressible": true - }, - "application/tei+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tei","teicorpus"] - }, - "application/tetra_isi": { - "source": "iana" - }, - "application/thraud+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tfi"] - }, - "application/timestamp-query": { - "source": "iana" - }, - "application/timestamp-reply": { - "source": "iana" - }, - "application/timestamped-data": { - "source": "iana", - "extensions": ["tsd"] - }, - "application/tlsrpt+gzip": { - "source": "iana" - }, - "application/tlsrpt+json": { - "source": "iana", - "compressible": true - }, - "application/tm+json": { - "source": "iana", - "compressible": true - }, - "application/tnauthlist": { - "source": "iana" - }, - "application/toc+cbor": { - "source": "iana" - }, - "application/token-introspection+jwt": { - "source": "iana" - }, - "application/toml": { - "source": "iana", - "compressible": true, - "extensions": ["toml"] - }, - "application/trickle-ice-sdpfrag": { - "source": "iana" - }, - "application/trig": { - "source": "iana", - "extensions": ["trig"] - }, - "application/trust-chain+json": { - "source": "iana", - "compressible": true - }, - "application/trust-mark+jwt": { - "source": "iana" - }, - "application/trust-mark-delegation+jwt": { - "source": "iana" - }, - "application/ttml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ttml"] - }, - "application/tve-trigger": { - "source": "iana" - }, - "application/tzif": { - "source": "iana" - }, - "application/tzif-leap": { - "source": "iana" - }, - "application/ubjson": { - "compressible": false, - "extensions": ["ubj"] - }, - "application/uccs+cbor": { - "source": "iana" - }, - "application/ujcs+json": { - "source": "iana", - "compressible": true - }, - "application/ulpfec": { - "source": "iana" - }, - "application/urc-grpsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/urc-ressheet+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rsheet"] - }, - "application/urc-targetdesc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["td"] - }, - "application/urc-uisocketdesc+xml": { - "source": "iana", - "compressible": true - }, - "application/vc": { - "source": "iana" - }, - "application/vc+cose": { - "source": "iana" - }, - "application/vc+jwt": { - "source": "iana" - }, - "application/vcard+json": { - "source": "iana", - "compressible": true - }, - "application/vcard+xml": { - "source": "iana", - "compressible": true - }, - "application/vemmi": { - "source": "iana" - }, - "application/vividence.scriptfile": { - "source": "apache" - }, - "application/vnd.1000minds.decision-model+xml": { - "source": "iana", - "compressible": true, - "extensions": ["1km"] - }, - "application/vnd.1ob": { - "source": "iana" - }, - "application/vnd.3gpp-prose+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc3a+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc3ach+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc3ch+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc8+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-v2x-local-service-information": { - "source": "iana" - }, - "application/vnd.3gpp.5gnas": { - "source": "iana" - }, - "application/vnd.3gpp.5gsa2x": { - "source": "iana" - }, - "application/vnd.3gpp.5gsa2x-local-service-information": { - "source": "iana" - }, - "application/vnd.3gpp.5gsv2x": { - "source": "iana" - }, - "application/vnd.3gpp.5gsv2x-local-service-information": { - "source": "iana" - }, - "application/vnd.3gpp.access-transfer-events+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.bsf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.crs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.current-location-discovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.gmop+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.gtpc": { - "source": "iana" - }, - "application/vnd.3gpp.interworking-data": { - "source": "iana" - }, - "application/vnd.3gpp.lpp": { - "source": "iana" - }, - "application/vnd.3gpp.mc-signalling-ear": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-payload": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-regroup+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-signalling": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-floor-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-regroup+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-signed+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-ue-init-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-regroup+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-transmission-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mid-call+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.ngap": { - "source": "iana" - }, - "application/vnd.3gpp.pfcp": { - "source": "iana" - }, - "application/vnd.3gpp.pic-bw-large": { - "source": "iana", - "extensions": ["plb"] - }, - "application/vnd.3gpp.pic-bw-small": { - "source": "iana", - "extensions": ["psb"] - }, - "application/vnd.3gpp.pic-bw-var": { - "source": "iana", - "extensions": ["pvb"] - }, - "application/vnd.3gpp.pinapp-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.s1ap": { - "source": "iana" - }, - "application/vnd.3gpp.seal-group-doc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-network-qos-management-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-ue-config-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-unicast-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.seal-user-profile-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.sms": { - "source": "iana" - }, - "application/vnd.3gpp.sms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-ext+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.state-and-event-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.ussd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.v2x": { - "source": "iana" - }, - "application/vnd.3gpp.vae-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.bcmcsinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.sms": { - "source": "iana" - }, - "application/vnd.3gpp2.tcap": { - "source": "iana", - "extensions": ["tcap"] - }, - "application/vnd.3lightssoftware.imagescal": { - "source": "iana" - }, - "application/vnd.3m.post-it-notes": { - "source": "iana", - "extensions": ["pwn"] - }, - "application/vnd.accpac.simply.aso": { - "source": "iana", - "extensions": ["aso"] - }, - "application/vnd.accpac.simply.imp": { - "source": "iana", - "extensions": ["imp"] - }, - "application/vnd.acm.addressxfer+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.acm.chatbot+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.acucobol": { - "source": "iana", - "extensions": ["acu"] - }, - "application/vnd.acucorp": { - "source": "iana", - "extensions": ["atc","acutc"] - }, - "application/vnd.adobe.air-application-installer-package+zip": { - "source": "apache", - "compressible": false, - "extensions": ["air"] - }, - "application/vnd.adobe.flash.movie": { - "source": "iana" - }, - "application/vnd.adobe.formscentral.fcdt": { - "source": "iana", - "extensions": ["fcdt"] - }, - "application/vnd.adobe.fxp": { - "source": "iana", - "extensions": ["fxp","fxpl"] - }, - "application/vnd.adobe.partial-upload": { - "source": "iana" - }, - "application/vnd.adobe.xdp+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdp"] - }, - "application/vnd.adobe.xfdf": { - "source": "apache", - "extensions": ["xfdf"] - }, - "application/vnd.aether.imp": { - "source": "iana" - }, - "application/vnd.afpc.afplinedata": { - "source": "iana" - }, - "application/vnd.afpc.afplinedata-pagedef": { - "source": "iana" - }, - "application/vnd.afpc.cmoca-cmresource": { - "source": "iana" - }, - "application/vnd.afpc.foca-charset": { - "source": "iana" - }, - "application/vnd.afpc.foca-codedfont": { - "source": "iana" - }, - "application/vnd.afpc.foca-codepage": { - "source": "iana" - }, - "application/vnd.afpc.modca": { - "source": "iana" - }, - "application/vnd.afpc.modca-cmtable": { - "source": "iana" - }, - "application/vnd.afpc.modca-formdef": { - "source": "iana" - }, - "application/vnd.afpc.modca-mediummap": { - "source": "iana" - }, - "application/vnd.afpc.modca-objectcontainer": { - "source": "iana" - }, - "application/vnd.afpc.modca-overlay": { - "source": "iana" - }, - "application/vnd.afpc.modca-pagesegment": { - "source": "iana" - }, - "application/vnd.age": { - "source": "iana", - "extensions": ["age"] - }, - "application/vnd.ah-barcode": { - "source": "apache" - }, - "application/vnd.ahead.space": { - "source": "iana", - "extensions": ["ahead"] - }, - "application/vnd.airzip.filesecure.azf": { - "source": "iana", - "extensions": ["azf"] - }, - "application/vnd.airzip.filesecure.azs": { - "source": "iana", - "extensions": ["azs"] - }, - "application/vnd.amadeus+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.amazon.ebook": { - "source": "apache", - "extensions": ["azw"] - }, - "application/vnd.amazon.mobi8-ebook": { - "source": "iana" - }, - "application/vnd.americandynamics.acc": { - "source": "iana", - "extensions": ["acc"] - }, - "application/vnd.amiga.ami": { - "source": "iana", - "extensions": ["ami"] - }, - "application/vnd.amundsen.maze+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.android.ota": { - "source": "iana" - }, - "application/vnd.android.package-archive": { - "source": "apache", - "compressible": false, - "extensions": ["apk"] - }, - "application/vnd.anki": { - "source": "iana" - }, - "application/vnd.anser-web-certificate-issue-initiation": { - "source": "iana", - "extensions": ["cii"] - }, - "application/vnd.anser-web-funds-transfer-initiation": { - "source": "apache", - "extensions": ["fti"] - }, - "application/vnd.antix.game-component": { - "source": "iana", - "extensions": ["atx"] - }, - "application/vnd.apache.arrow.file": { - "source": "iana" - }, - "application/vnd.apache.arrow.stream": { - "source": "iana" - }, - "application/vnd.apache.parquet": { - "source": "iana" - }, - "application/vnd.apache.thrift.binary": { - "source": "iana" - }, - "application/vnd.apache.thrift.compact": { - "source": "iana" - }, - "application/vnd.apache.thrift.json": { - "source": "iana" - }, - "application/vnd.apexlang": { - "source": "iana" - }, - "application/vnd.api+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.aplextor.warrp+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apothekende.reservation+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apple.installer+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpkg"] - }, - "application/vnd.apple.keynote": { - "source": "iana", - "extensions": ["key"] - }, - "application/vnd.apple.mpegurl": { - "source": "iana", - "extensions": ["m3u8"] - }, - "application/vnd.apple.numbers": { - "source": "iana", - "extensions": ["numbers"] - }, - "application/vnd.apple.pages": { - "source": "iana", - "extensions": ["pages"] - }, - "application/vnd.apple.pkpass": { - "compressible": false, - "extensions": ["pkpass"] - }, - "application/vnd.arastra.swi": { - "source": "apache" - }, - "application/vnd.aristanetworks.swi": { - "source": "iana", - "extensions": ["swi"] - }, - "application/vnd.artisan+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.artsquare": { - "source": "iana" - }, - "application/vnd.astraea-software.iota": { - "source": "iana", - "extensions": ["iota"] - }, - "application/vnd.audiograph": { - "source": "iana", - "extensions": ["aep"] - }, - "application/vnd.autodesk.fbx": { - "extensions": ["fbx"] - }, - "application/vnd.autopackage": { - "source": "iana" - }, - "application/vnd.avalon+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.avistar+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.balsamiq.bmml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["bmml"] - }, - "application/vnd.balsamiq.bmpr": { - "source": "iana" - }, - "application/vnd.banana-accounting": { - "source": "iana" - }, - "application/vnd.bbf.usp.error": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bekitzur-stech+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.belightsoft.lhzd+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.belightsoft.lhzl+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.bint.med-content": { - "source": "iana" - }, - "application/vnd.biopax.rdf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.blink-idb-value-wrapper": { - "source": "iana" - }, - "application/vnd.blueice.multipass": { - "source": "iana", - "extensions": ["mpm"] - }, - "application/vnd.bluetooth.ep.oob": { - "source": "iana" - }, - "application/vnd.bluetooth.le.oob": { - "source": "iana" - }, - "application/vnd.bmi": { - "source": "iana", - "extensions": ["bmi"] - }, - "application/vnd.bpf": { - "source": "iana" - }, - "application/vnd.bpf3": { - "source": "iana" - }, - "application/vnd.businessobjects": { - "source": "iana", - "extensions": ["rep"] - }, - "application/vnd.byu.uapi+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bzip3": { - "source": "iana" - }, - "application/vnd.c3voc.schedule+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cab-jscript": { - "source": "iana" - }, - "application/vnd.canon-cpdl": { - "source": "iana" - }, - "application/vnd.canon-lips": { - "source": "iana" - }, - "application/vnd.capasystems-pg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cendio.thinlinc.clientconf": { - "source": "iana" - }, - "application/vnd.century-systems.tcp_stream": { - "source": "iana" - }, - "application/vnd.chemdraw+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cdxml"] - }, - "application/vnd.chess-pgn": { - "source": "iana" - }, - "application/vnd.chipnuts.karaoke-mmd": { - "source": "iana", - "extensions": ["mmd"] - }, - "application/vnd.ciedi": { - "source": "iana" - }, - "application/vnd.cinderella": { - "source": "iana", - "extensions": ["cdy"] - }, - "application/vnd.cirpack.isdn-ext": { - "source": "iana" - }, - "application/vnd.citationstyles.style+xml": { - "source": "iana", - "compressible": true, - "extensions": ["csl"] - }, - "application/vnd.claymore": { - "source": "iana", - "extensions": ["cla"] - }, - "application/vnd.cloanto.rp9": { - "source": "iana", - "extensions": ["rp9"] - }, - "application/vnd.clonk.c4group": { - "source": "iana", - "extensions": ["c4g","c4d","c4f","c4p","c4u"] - }, - "application/vnd.cluetrust.cartomobile-config": { - "source": "iana", - "extensions": ["c11amc"] - }, - "application/vnd.cluetrust.cartomobile-config-pkg": { - "source": "iana", - "extensions": ["c11amz"] - }, - "application/vnd.cncf.helm.chart.content.v1.tar+gzip": { - "source": "iana" - }, - "application/vnd.cncf.helm.chart.provenance.v1.prov": { - "source": "iana" - }, - "application/vnd.cncf.helm.config.v1+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.coffeescript": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet-template": { - "source": "iana" - }, - "application/vnd.collection+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.doc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.next+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.comicbook+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.comicbook-rar": { - "source": "iana" - }, - "application/vnd.commerce-battelle": { - "source": "iana" - }, - "application/vnd.commonspace": { - "source": "iana", - "extensions": ["csp"] - }, - "application/vnd.contact.cmsg": { - "source": "iana", - "extensions": ["cdbcmsg"] - }, - "application/vnd.coreos.ignition+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cosmocaller": { - "source": "iana", - "extensions": ["cmc"] - }, - "application/vnd.crick.clicker": { - "source": "iana", - "extensions": ["clkx"] - }, - "application/vnd.crick.clicker.keyboard": { - "source": "iana", - "extensions": ["clkk"] - }, - "application/vnd.crick.clicker.palette": { - "source": "iana", - "extensions": ["clkp"] - }, - "application/vnd.crick.clicker.template": { - "source": "iana", - "extensions": ["clkt"] - }, - "application/vnd.crick.clicker.wordbank": { - "source": "iana", - "extensions": ["clkw"] - }, - "application/vnd.criticaltools.wbs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wbs"] - }, - "application/vnd.cryptii.pipe+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.crypto-shade-file": { - "source": "iana" - }, - "application/vnd.cryptomator.encrypted": { - "source": "iana" - }, - "application/vnd.cryptomator.vault": { - "source": "iana" - }, - "application/vnd.ctc-posml": { - "source": "iana", - "extensions": ["pml"] - }, - "application/vnd.ctct.ws+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cups-pdf": { - "source": "iana" - }, - "application/vnd.cups-postscript": { - "source": "iana" - }, - "application/vnd.cups-ppd": { - "source": "iana", - "extensions": ["ppd"] - }, - "application/vnd.cups-raster": { - "source": "iana" - }, - "application/vnd.cups-raw": { - "source": "iana" - }, - "application/vnd.curl": { - "source": "iana" - }, - "application/vnd.curl.car": { - "source": "apache", - "extensions": ["car"] - }, - "application/vnd.curl.pcurl": { - "source": "apache", - "extensions": ["pcurl"] - }, - "application/vnd.cyan.dean.root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cybank": { - "source": "iana" - }, - "application/vnd.cyclonedx+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cyclonedx+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.d2l.coursepackage1p0+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.d3m-dataset": { - "source": "iana" - }, - "application/vnd.d3m-problem": { - "source": "iana" - }, - "application/vnd.dart": { - "source": "iana", - "compressible": true, - "extensions": ["dart"] - }, - "application/vnd.data-vision.rdz": { - "source": "iana", - "extensions": ["rdz"] - }, - "application/vnd.datalog": { - "source": "iana" - }, - "application/vnd.datapackage+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dataresource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dbf": { - "source": "iana", - "extensions": ["dbf"] - }, - "application/vnd.dcmp+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dcmp"] - }, - "application/vnd.debian.binary-package": { - "source": "iana" - }, - "application/vnd.dece.data": { - "source": "iana", - "extensions": ["uvf","uvvf","uvd","uvvd"] - }, - "application/vnd.dece.ttml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uvt","uvvt"] - }, - "application/vnd.dece.unspecified": { - "source": "iana", - "extensions": ["uvx","uvvx"] - }, - "application/vnd.dece.zip": { - "source": "iana", - "extensions": ["uvz","uvvz"] - }, - "application/vnd.denovo.fcselayout-link": { - "source": "iana", - "extensions": ["fe_launch"] - }, - "application/vnd.desmume.movie": { - "source": "iana" - }, - "application/vnd.dir-bi.plate-dl-nosuffix": { - "source": "iana" - }, - "application/vnd.dm.delegation+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dna": { - "source": "iana", - "extensions": ["dna"] - }, - "application/vnd.document+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dolby.mlp": { - "source": "apache", - "extensions": ["mlp"] - }, - "application/vnd.dolby.mobile.1": { - "source": "iana" - }, - "application/vnd.dolby.mobile.2": { - "source": "iana" - }, - "application/vnd.doremir.scorecloud-binary-document": { - "source": "iana" - }, - "application/vnd.dpgraph": { - "source": "iana", - "extensions": ["dpg"] - }, - "application/vnd.dreamfactory": { - "source": "iana", - "extensions": ["dfac"] - }, - "application/vnd.drive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ds-keypoint": { - "source": "apache", - "extensions": ["kpxx"] - }, - "application/vnd.dtg.local": { - "source": "iana" - }, - "application/vnd.dtg.local.flash": { - "source": "iana" - }, - "application/vnd.dtg.local.html": { - "source": "iana" - }, - "application/vnd.dvb.ait": { - "source": "iana", - "extensions": ["ait"] - }, - "application/vnd.dvb.dvbisl+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.dvbj": { - "source": "iana" - }, - "application/vnd.dvb.esgcontainer": { - "source": "iana" - }, - "application/vnd.dvb.ipdcdftnotifaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess2": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgpdd": { - "source": "iana" - }, - "application/vnd.dvb.ipdcroaming": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-base": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-enhancement": { - "source": "iana" - }, - "application/vnd.dvb.notif-aggregate-root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-container+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-generic+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-msglist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-response+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-init+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.pfr": { - "source": "iana" - }, - "application/vnd.dvb.service": { - "source": "iana", - "extensions": ["svc"] - }, - "application/vnd.dxr": { - "source": "iana" - }, - "application/vnd.dynageo": { - "source": "iana", - "extensions": ["geo"] - }, - "application/vnd.dzr": { - "source": "iana" - }, - "application/vnd.easykaraoke.cdgdownload": { - "source": "iana" - }, - "application/vnd.ecdis-update": { - "source": "iana" - }, - "application/vnd.ecip.rlp": { - "source": "iana" - }, - "application/vnd.eclipse.ditto+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ecowin.chart": { - "source": "iana", - "extensions": ["mag"] - }, - "application/vnd.ecowin.filerequest": { - "source": "iana" - }, - "application/vnd.ecowin.fileupdate": { - "source": "iana" - }, - "application/vnd.ecowin.series": { - "source": "iana" - }, - "application/vnd.ecowin.seriesrequest": { - "source": "iana" - }, - "application/vnd.ecowin.seriesupdate": { - "source": "iana" - }, - "application/vnd.efi.img": { - "source": "iana" - }, - "application/vnd.efi.iso": { - "source": "iana" - }, - "application/vnd.eln+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.emclient.accessrequest+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.enliven": { - "source": "iana", - "extensions": ["nml"] - }, - "application/vnd.enphase.envoy": { - "source": "iana" - }, - "application/vnd.eprints.data+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.epson.esf": { - "source": "iana", - "extensions": ["esf"] - }, - "application/vnd.epson.msf": { - "source": "iana", - "extensions": ["msf"] - }, - "application/vnd.epson.quickanime": { - "source": "iana", - "extensions": ["qam"] - }, - "application/vnd.epson.salt": { - "source": "iana", - "extensions": ["slt"] - }, - "application/vnd.epson.ssf": { - "source": "iana", - "extensions": ["ssf"] - }, - "application/vnd.ericsson.quickcall": { - "source": "iana" - }, - "application/vnd.erofs": { - "source": "iana" - }, - "application/vnd.espass-espass+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.eszigno3+xml": { - "source": "iana", - "compressible": true, - "extensions": ["es3","et3"] - }, - "application/vnd.etsi.aoc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.asic-e+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.asic-s+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.cug+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvcommand+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-bc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-cod+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-npvr+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvservice+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsync+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mcid+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mheg5": { - "source": "iana" - }, - "application/vnd.etsi.overload-control-policy-dataset+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.pstn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.sci+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.simservs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.timestamp-token": { - "source": "iana" - }, - "application/vnd.etsi.tsl+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.tsl.der": { - "source": "iana" - }, - "application/vnd.eu.kasparian.car+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.eudora.data": { - "source": "iana" - }, - "application/vnd.evolv.ecig.profile": { - "source": "iana" - }, - "application/vnd.evolv.ecig.settings": { - "source": "iana" - }, - "application/vnd.evolv.ecig.theme": { - "source": "iana" - }, - "application/vnd.exstream-empower+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.exstream-package": { - "source": "iana" - }, - "application/vnd.ezpix-album": { - "source": "iana", - "extensions": ["ez2"] - }, - "application/vnd.ezpix-package": { - "source": "iana", - "extensions": ["ez3"] - }, - "application/vnd.f-secure.mobile": { - "source": "iana" - }, - "application/vnd.familysearch.gedcom+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.fastcopy-disk-image": { - "source": "iana" - }, - "application/vnd.fdf": { - "source": "apache", - "extensions": ["fdf"] - }, - "application/vnd.fdsn.mseed": { - "source": "iana", - "extensions": ["mseed"] - }, - "application/vnd.fdsn.seed": { - "source": "iana", - "extensions": ["seed","dataless"] - }, - "application/vnd.fdsn.stationxml+xml": { - "source": "iana", - "charset": "XML-BASED", - "compressible": true - }, - "application/vnd.ffsns": { - "source": "iana" - }, - "application/vnd.ficlab.flb+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.filmit.zfc": { - "source": "iana" - }, - "application/vnd.fints": { - "source": "iana" - }, - "application/vnd.firemonkeys.cloudcell": { - "source": "iana" - }, - "application/vnd.flographit": { - "source": "iana", - "extensions": ["gph"] - }, - "application/vnd.fluxtime.clip": { - "source": "iana", - "extensions": ["ftc"] - }, - "application/vnd.font-fontforge-sfd": { - "source": "iana" - }, - "application/vnd.framemaker": { - "source": "iana", - "extensions": ["fm","frame","maker","book"] - }, - "application/vnd.freelog.comic": { - "source": "iana" - }, - "application/vnd.frogans.fnc": { - "source": "apache", - "extensions": ["fnc"] - }, - "application/vnd.frogans.ltf": { - "source": "apache", - "extensions": ["ltf"] - }, - "application/vnd.fsc.weblaunch": { - "source": "iana", - "extensions": ["fsc"] - }, - "application/vnd.fujifilm.fb.docuworks": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.docuworks.binder": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.jfi+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.fujitsu.oasys": { - "source": "iana", - "extensions": ["oas"] - }, - "application/vnd.fujitsu.oasys2": { - "source": "iana", - "extensions": ["oa2"] - }, - "application/vnd.fujitsu.oasys3": { - "source": "iana", - "extensions": ["oa3"] - }, - "application/vnd.fujitsu.oasysgp": { - "source": "iana", - "extensions": ["fg5"] - }, - "application/vnd.fujitsu.oasysprs": { - "source": "iana", - "extensions": ["bh2"] - }, - "application/vnd.fujixerox.art-ex": { - "source": "iana" - }, - "application/vnd.fujixerox.art4": { - "source": "iana" - }, - "application/vnd.fujixerox.ddd": { - "source": "iana", - "extensions": ["ddd"] - }, - "application/vnd.fujixerox.docuworks": { - "source": "iana", - "extensions": ["xdw"] - }, - "application/vnd.fujixerox.docuworks.binder": { - "source": "iana", - "extensions": ["xbd"] - }, - "application/vnd.fujixerox.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujixerox.hbpl": { - "source": "iana" - }, - "application/vnd.fut-misnet": { - "source": "iana" - }, - "application/vnd.futoin+cbor": { - "source": "iana" - }, - "application/vnd.futoin+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.fuzzysheet": { - "source": "iana", - "extensions": ["fzs"] - }, - "application/vnd.ga4gh.passport+jwt": { - "source": "iana" - }, - "application/vnd.genomatix.tuxedo": { - "source": "iana", - "extensions": ["txd"] - }, - "application/vnd.genozip": { - "source": "iana" - }, - "application/vnd.gentics.grd+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.gentoo.catmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.gentoo.ebuild": { - "source": "iana" - }, - "application/vnd.gentoo.eclass": { - "source": "iana" - }, - "application/vnd.gentoo.gpkg": { - "source": "iana" - }, - "application/vnd.gentoo.manifest": { - "source": "iana" - }, - "application/vnd.gentoo.pkgmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.gentoo.xpak": { - "source": "iana" - }, - "application/vnd.geo+json": { - "source": "apache", - "compressible": true - }, - "application/vnd.geocube+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.geogebra.file": { - "source": "iana", - "extensions": ["ggb"] - }, - "application/vnd.geogebra.pinboard": { - "source": "iana" - }, - "application/vnd.geogebra.slides": { - "source": "iana", - "extensions": ["ggs"] - }, - "application/vnd.geogebra.tool": { - "source": "iana", - "extensions": ["ggt"] - }, - "application/vnd.geometry-explorer": { - "source": "iana", - "extensions": ["gex","gre"] - }, - "application/vnd.geonext": { - "source": "iana", - "extensions": ["gxt"] - }, - "application/vnd.geoplan": { - "source": "iana", - "extensions": ["g2w"] - }, - "application/vnd.geospace": { - "source": "iana", - "extensions": ["g3w"] - }, - "application/vnd.gerber": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt-response": { - "source": "iana" - }, - "application/vnd.gmx": { - "source": "iana", - "extensions": ["gmx"] - }, - "application/vnd.gnu.taler.exchange+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.gnu.taler.merchant+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.google-apps.audio": {}, - "application/vnd.google-apps.document": { - "compressible": false, - "extensions": ["gdoc"] - }, - "application/vnd.google-apps.drawing": { - "compressible": false, - "extensions": ["gdraw"] - }, - "application/vnd.google-apps.drive-sdk": { - "compressible": false - }, - "application/vnd.google-apps.file": {}, - "application/vnd.google-apps.folder": { - "compressible": false - }, - "application/vnd.google-apps.form": { - "compressible": false, - "extensions": ["gform"] - }, - "application/vnd.google-apps.fusiontable": {}, - "application/vnd.google-apps.jam": { - "compressible": false, - "extensions": ["gjam"] - }, - "application/vnd.google-apps.mail-layout": {}, - "application/vnd.google-apps.map": { - "compressible": false, - "extensions": ["gmap"] - }, - "application/vnd.google-apps.photo": {}, - "application/vnd.google-apps.presentation": { - "compressible": false, - "extensions": ["gslides"] - }, - "application/vnd.google-apps.script": { - "compressible": false, - "extensions": ["gscript"] - }, - "application/vnd.google-apps.shortcut": {}, - "application/vnd.google-apps.site": { - "compressible": false, - "extensions": ["gsite"] - }, - "application/vnd.google-apps.spreadsheet": { - "compressible": false, - "extensions": ["gsheet"] - }, - "application/vnd.google-apps.unknown": {}, - "application/vnd.google-apps.video": {}, - "application/vnd.google-earth.kml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["kml"] - }, - "application/vnd.google-earth.kmz": { - "source": "iana", - "compressible": false, - "extensions": ["kmz"] - }, - "application/vnd.gov.sk.e-form+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.gov.sk.e-form+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.gov.sk.xmldatacontainer+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdcf"] - }, - "application/vnd.gpxsee.map+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.grafeq": { - "source": "iana", - "extensions": ["gqf","gqs"] - }, - "application/vnd.gridmp": { - "source": "iana" - }, - "application/vnd.groove-account": { - "source": "iana", - "extensions": ["gac"] - }, - "application/vnd.groove-help": { - "source": "iana", - "extensions": ["ghf"] - }, - "application/vnd.groove-identity-message": { - "source": "iana", - "extensions": ["gim"] - }, - "application/vnd.groove-injector": { - "source": "iana", - "extensions": ["grv"] - }, - "application/vnd.groove-tool-message": { - "source": "iana", - "extensions": ["gtm"] - }, - "application/vnd.groove-tool-template": { - "source": "iana", - "extensions": ["tpl"] - }, - "application/vnd.groove-vcard": { - "source": "iana", - "extensions": ["vcg"] - }, - "application/vnd.hal+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hal+xml": { - "source": "iana", - "compressible": true, - "extensions": ["hal"] - }, - "application/vnd.handheld-entertainment+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zmm"] - }, - "application/vnd.hbci": { - "source": "iana", - "extensions": ["hbci"] - }, - "application/vnd.hc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hcl-bireports": { - "source": "iana" - }, - "application/vnd.hdt": { - "source": "iana" - }, - "application/vnd.heroku+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hhe.lesson-player": { - "source": "iana", - "extensions": ["les"] - }, - "application/vnd.hp-hpgl": { - "source": "iana", - "extensions": ["hpgl"] - }, - "application/vnd.hp-hpid": { - "source": "iana", - "extensions": ["hpid"] - }, - "application/vnd.hp-hps": { - "source": "iana", - "extensions": ["hps"] - }, - "application/vnd.hp-jlyt": { - "source": "iana", - "extensions": ["jlt"] - }, - "application/vnd.hp-pcl": { - "source": "iana", - "extensions": ["pcl"] - }, - "application/vnd.hp-pclxl": { - "source": "iana", - "extensions": ["pclxl"] - }, - "application/vnd.hsl": { - "source": "iana" - }, - "application/vnd.httphone": { - "source": "iana" - }, - "application/vnd.hydrostatix.sof-data": { - "source": "iana", - "extensions": ["sfd-hdstx"] - }, - "application/vnd.hyper+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyper-item+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyperdrive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hzn-3d-crossword": { - "source": "iana" - }, - "application/vnd.ibm.afplinedata": { - "source": "apache" - }, - "application/vnd.ibm.electronic-media": { - "source": "iana" - }, - "application/vnd.ibm.minipay": { - "source": "iana", - "extensions": ["mpy"] - }, - "application/vnd.ibm.modcap": { - "source": "apache", - "extensions": ["afp","listafp","list3820"] - }, - "application/vnd.ibm.rights-management": { - "source": "iana", - "extensions": ["irm"] - }, - "application/vnd.ibm.secure-container": { - "source": "iana", - "extensions": ["sc"] - }, - "application/vnd.iccprofile": { - "source": "iana", - "extensions": ["icc","icm"] - }, - "application/vnd.ieee.1905": { - "source": "iana" - }, - "application/vnd.igloader": { - "source": "iana", - "extensions": ["igl"] - }, - "application/vnd.imagemeter.folder+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.imagemeter.image+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.immervision-ivp": { - "source": "iana", - "extensions": ["ivp"] - }, - "application/vnd.immervision-ivu": { - "source": "iana", - "extensions": ["ivu"] - }, - "application/vnd.ims.imsccv1p1": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p2": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p3": { - "source": "iana" - }, - "application/vnd.ims.lis.v2.result+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolconsumerprofile+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy.id+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings.simple+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.informedcontrol.rms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.informix-visionary": { - "source": "apache" - }, - "application/vnd.infotech.project": { - "source": "iana" - }, - "application/vnd.infotech.project+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.innopath.wamp.notification": { - "source": "iana" - }, - "application/vnd.insors.igm": { - "source": "iana", - "extensions": ["igm"] - }, - "application/vnd.intercon.formnet": { - "source": "iana", - "extensions": ["xpw","xpx"] - }, - "application/vnd.intergeo": { - "source": "iana", - "extensions": ["i2g"] - }, - "application/vnd.intertrust.digibox": { - "source": "iana" - }, - "application/vnd.intertrust.nncp": { - "source": "iana" - }, - "application/vnd.intu.qbo": { - "source": "iana", - "extensions": ["qbo"] - }, - "application/vnd.intu.qfx": { - "source": "iana", - "extensions": ["qfx"] - }, - "application/vnd.ipfs.ipns-record": { - "source": "iana" - }, - "application/vnd.ipld.car": { - "source": "iana" - }, - "application/vnd.ipld.dag-cbor": { - "source": "iana" - }, - "application/vnd.ipld.dag-json": { - "source": "iana" - }, - "application/vnd.ipld.raw": { - "source": "iana" - }, - "application/vnd.iptc.g2.catalogitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.conceptitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.knowledgeitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.packageitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.planningitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ipunplugged.rcprofile": { - "source": "iana", - "extensions": ["rcprofile"] - }, - "application/vnd.irepository.package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["irp"] - }, - "application/vnd.is-xpr": { - "source": "iana", - "extensions": ["xpr"] - }, - "application/vnd.isac.fcs": { - "source": "iana", - "extensions": ["fcs"] - }, - "application/vnd.iso11783-10+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.jam": { - "source": "iana", - "extensions": ["jam"] - }, - "application/vnd.japannet-directory-service": { - "source": "iana" - }, - "application/vnd.japannet-jpnstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-payment-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-registration": { - "source": "iana" - }, - "application/vnd.japannet-registration-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-setstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-verification": { - "source": "iana" - }, - "application/vnd.japannet-verification-wakeup": { - "source": "iana" - }, - "application/vnd.jcp.javame.midlet-rms": { - "source": "iana", - "extensions": ["rms"] - }, - "application/vnd.jisp": { - "source": "iana", - "extensions": ["jisp"] - }, - "application/vnd.joost.joda-archive": { - "source": "iana", - "extensions": ["joda"] - }, - "application/vnd.jsk.isdn-ngn": { - "source": "iana" - }, - "application/vnd.kahootz": { - "source": "iana", - "extensions": ["ktz","ktr"] - }, - "application/vnd.kde.karbon": { - "source": "iana", - "extensions": ["karbon"] - }, - "application/vnd.kde.kchart": { - "source": "iana", - "extensions": ["chrt"] - }, - "application/vnd.kde.kformula": { - "source": "iana", - "extensions": ["kfo"] - }, - "application/vnd.kde.kivio": { - "source": "iana", - "extensions": ["flw"] - }, - "application/vnd.kde.kontour": { - "source": "iana", - "extensions": ["kon"] - }, - "application/vnd.kde.kpresenter": { - "source": "iana", - "extensions": ["kpr","kpt"] - }, - "application/vnd.kde.kspread": { - "source": "iana", - "extensions": ["ksp"] - }, - "application/vnd.kde.kword": { - "source": "iana", - "extensions": ["kwd","kwt"] - }, - "application/vnd.kdl": { - "source": "iana" - }, - "application/vnd.kenameaapp": { - "source": "iana", - "extensions": ["htke"] - }, - "application/vnd.keyman.kmp+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.keyman.kmx": { - "source": "iana" - }, - "application/vnd.kidspiration": { - "source": "iana", - "extensions": ["kia"] - }, - "application/vnd.kinar": { - "source": "iana", - "extensions": ["kne","knp"] - }, - "application/vnd.koan": { - "source": "iana", - "extensions": ["skp","skd","skt","skm"] - }, - "application/vnd.kodak-descriptor": { - "source": "iana", - "extensions": ["sse"] - }, - "application/vnd.las": { - "source": "iana" - }, - "application/vnd.las.las+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.las.las+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lasxml"] - }, - "application/vnd.laszip": { - "source": "iana" - }, - "application/vnd.ldev.productlicensing": { - "source": "iana" - }, - "application/vnd.leap+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.liberty-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.llamagraphics.life-balance.desktop": { - "source": "iana", - "extensions": ["lbd"] - }, - "application/vnd.llamagraphics.life-balance.exchange+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lbe"] - }, - "application/vnd.logipipe.circuit+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.loom": { - "source": "iana" - }, - "application/vnd.lotus-1-2-3": { - "source": "iana", - "extensions": ["123"] - }, - "application/vnd.lotus-approach": { - "source": "iana", - "extensions": ["apr"] - }, - "application/vnd.lotus-freelance": { - "source": "iana", - "extensions": ["pre"] - }, - "application/vnd.lotus-notes": { - "source": "iana", - "extensions": ["nsf"] - }, - "application/vnd.lotus-organizer": { - "source": "iana", - "extensions": ["org"] - }, - "application/vnd.lotus-screencam": { - "source": "iana", - "extensions": ["scm"] - }, - "application/vnd.lotus-wordpro": { - "source": "iana", - "extensions": ["lwp"] - }, - "application/vnd.macports.portpkg": { - "source": "iana", - "extensions": ["portpkg"] - }, - "application/vnd.mapbox-vector-tile": { - "source": "iana", - "extensions": ["mvt"] - }, - "application/vnd.marlin.drm.actiontoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.conftoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.license+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.mdcf": { - "source": "iana" - }, - "application/vnd.mason+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.maxar.archive.3tz+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.maxmind.maxmind-db": { - "source": "iana" - }, - "application/vnd.mcd": { - "source": "iana", - "extensions": ["mcd"] - }, - "application/vnd.mdl": { - "source": "iana" - }, - "application/vnd.mdl-mbsdf": { - "source": "iana" - }, - "application/vnd.medcalcdata": { - "source": "iana", - "extensions": ["mc1"] - }, - "application/vnd.mediastation.cdkey": { - "source": "iana", - "extensions": ["cdkey"] - }, - "application/vnd.medicalholodeck.recordxr": { - "source": "iana" - }, - "application/vnd.meridian-slingshot": { - "source": "iana" - }, - "application/vnd.mermaid": { - "source": "iana" - }, - "application/vnd.mfer": { - "source": "iana", - "extensions": ["mwf"] - }, - "application/vnd.mfmp": { - "source": "iana", - "extensions": ["mfm"] - }, - "application/vnd.micro+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.micrografx.flo": { - "source": "iana", - "extensions": ["flo"] - }, - "application/vnd.micrografx.igx": { - "source": "iana", - "extensions": ["igx"] - }, - "application/vnd.microsoft.portable-executable": { - "source": "iana" - }, - "application/vnd.microsoft.windows.thumbnail-cache": { - "source": "iana" - }, - "application/vnd.miele+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.mif": { - "source": "iana", - "extensions": ["mif"] - }, - "application/vnd.minisoft-hp3000-save": { - "source": "iana" - }, - "application/vnd.mitsubishi.misty-guard.trustweb": { - "source": "iana" - }, - "application/vnd.mobius.daf": { - "source": "iana", - "extensions": ["daf"] - }, - "application/vnd.mobius.dis": { - "source": "iana", - "extensions": ["dis"] - }, - "application/vnd.mobius.mbk": { - "source": "iana", - "extensions": ["mbk"] - }, - "application/vnd.mobius.mqy": { - "source": "iana", - "extensions": ["mqy"] - }, - "application/vnd.mobius.msl": { - "source": "iana", - "extensions": ["msl"] - }, - "application/vnd.mobius.plc": { - "source": "iana", - "extensions": ["plc"] - }, - "application/vnd.mobius.txf": { - "source": "iana", - "extensions": ["txf"] - }, - "application/vnd.modl": { - "source": "iana" - }, - "application/vnd.mophun.application": { - "source": "iana", - "extensions": ["mpn"] - }, - "application/vnd.mophun.certificate": { - "source": "iana", - "extensions": ["mpc"] - }, - "application/vnd.motorola.flexsuite": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.adsi": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.fis": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.gotap": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.kmr": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.ttc": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.wem": { - "source": "iana" - }, - "application/vnd.motorola.iprm": { - "source": "iana" - }, - "application/vnd.mozilla.xul+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xul"] - }, - "application/vnd.ms-3mfdocument": { - "source": "iana" - }, - "application/vnd.ms-artgalry": { - "source": "iana", - "extensions": ["cil"] - }, - "application/vnd.ms-asf": { - "source": "iana" - }, - "application/vnd.ms-cab-compressed": { - "source": "iana", - "extensions": ["cab"] - }, - "application/vnd.ms-color.iccprofile": { - "source": "apache" - }, - "application/vnd.ms-excel": { - "source": "iana", - "compressible": false, - "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] - }, - "application/vnd.ms-excel.addin.macroenabled.12": { - "source": "iana", - "extensions": ["xlam"] - }, - "application/vnd.ms-excel.sheet.binary.macroenabled.12": { - "source": "iana", - "extensions": ["xlsb"] - }, - "application/vnd.ms-excel.sheet.macroenabled.12": { - "source": "iana", - "extensions": ["xlsm"] - }, - "application/vnd.ms-excel.template.macroenabled.12": { - "source": "iana", - "extensions": ["xltm"] - }, - "application/vnd.ms-fontobject": { - "source": "iana", - "compressible": true, - "extensions": ["eot"] - }, - "application/vnd.ms-htmlhelp": { - "source": "iana", - "extensions": ["chm"] - }, - "application/vnd.ms-ims": { - "source": "iana", - "extensions": ["ims"] - }, - "application/vnd.ms-lrm": { - "source": "iana", - "extensions": ["lrm"] - }, - "application/vnd.ms-office.activex+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-officetheme": { - "source": "iana", - "extensions": ["thmx"] - }, - "application/vnd.ms-opentype": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-outlook": { - "compressible": false, - "extensions": ["msg"] - }, - "application/vnd.ms-package.obfuscated-opentype": { - "source": "apache" - }, - "application/vnd.ms-pki.seccat": { - "source": "apache", - "extensions": ["cat"] - }, - "application/vnd.ms-pki.stl": { - "source": "apache", - "extensions": ["stl"] - }, - "application/vnd.ms-playready.initiator+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-powerpoint": { - "source": "iana", - "compressible": false, - "extensions": ["ppt","pps","pot"] - }, - "application/vnd.ms-powerpoint.addin.macroenabled.12": { - "source": "iana", - "extensions": ["ppam"] - }, - "application/vnd.ms-powerpoint.presentation.macroenabled.12": { - "source": "iana", - "extensions": ["pptm"] - }, - "application/vnd.ms-powerpoint.slide.macroenabled.12": { - "source": "iana", - "extensions": ["sldm"] - }, - "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { - "source": "iana", - "extensions": ["ppsm"] - }, - "application/vnd.ms-powerpoint.template.macroenabled.12": { - "source": "iana", - "extensions": ["potm"] - }, - "application/vnd.ms-printdevicecapabilities+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-printing.printticket+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-printschematicket+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-project": { - "source": "iana", - "extensions": ["mpp","mpt"] - }, - "application/vnd.ms-tnef": { - "source": "iana" - }, - "application/vnd.ms-visio.viewer": { - "extensions": ["vdx"] - }, - "application/vnd.ms-windows.devicepairing": { - "source": "iana" - }, - "application/vnd.ms-windows.nwprinting.oob": { - "source": "iana" - }, - "application/vnd.ms-windows.printerpairing": { - "source": "iana" - }, - "application/vnd.ms-windows.wsd.oob": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-resp": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-resp": { - "source": "iana" - }, - "application/vnd.ms-word.document.macroenabled.12": { - "source": "iana", - "extensions": ["docm"] - }, - "application/vnd.ms-word.template.macroenabled.12": { - "source": "iana", - "extensions": ["dotm"] - }, - "application/vnd.ms-works": { - "source": "iana", - "extensions": ["wps","wks","wcm","wdb"] - }, - "application/vnd.ms-wpl": { - "source": "iana", - "extensions": ["wpl"] - }, - "application/vnd.ms-xpsdocument": { - "source": "iana", - "compressible": false, - "extensions": ["xps"] - }, - "application/vnd.msa-disk-image": { - "source": "iana" - }, - "application/vnd.mseq": { - "source": "iana", - "extensions": ["mseq"] - }, - "application/vnd.msgpack": { - "source": "iana" - }, - "application/vnd.msign": { - "source": "iana" - }, - "application/vnd.multiad.creator": { - "source": "iana" - }, - "application/vnd.multiad.creator.cif": { - "source": "iana" - }, - "application/vnd.music-niff": { - "source": "iana" - }, - "application/vnd.musician": { - "source": "iana", - "extensions": ["mus"] - }, - "application/vnd.muvee.style": { - "source": "iana", - "extensions": ["msty"] - }, - "application/vnd.mynfc": { - "source": "iana", - "extensions": ["taglet"] - }, - "application/vnd.nacamar.ybrid+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nato.bindingdataobject+cbor": { - "source": "iana" - }, - "application/vnd.nato.bindingdataobject+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nato.bindingdataobject+xml": { - "source": "iana", - "compressible": true, - "extensions": ["bdo"] - }, - "application/vnd.nato.openxmlformats-package.iepd+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.ncd.control": { - "source": "iana" - }, - "application/vnd.ncd.reference": { - "source": "iana" - }, - "application/vnd.nearst.inv+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nebumind.line": { - "source": "iana" - }, - "application/vnd.nervana": { - "source": "iana" - }, - "application/vnd.netfpx": { - "source": "iana" - }, - "application/vnd.neurolanguage.nlu": { - "source": "iana", - "extensions": ["nlu"] - }, - "application/vnd.nimn": { - "source": "iana" - }, - "application/vnd.nintendo.nitro.rom": { - "source": "iana" - }, - "application/vnd.nintendo.snes.rom": { - "source": "iana" - }, - "application/vnd.nitf": { - "source": "iana", - "extensions": ["ntf","nitf"] - }, - "application/vnd.noblenet-directory": { - "source": "iana", - "extensions": ["nnd"] - }, - "application/vnd.noblenet-sealer": { - "source": "iana", - "extensions": ["nns"] - }, - "application/vnd.noblenet-web": { - "source": "iana", - "extensions": ["nnw"] - }, - "application/vnd.nokia.catalogs": { - "source": "iana" - }, - "application/vnd.nokia.conml+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.conml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.iptv.config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.isds-radio-presets": { - "source": "iana" - }, - "application/vnd.nokia.landmark+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.landmark+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.landmarkcollection+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.n-gage.ac+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ac"] - }, - "application/vnd.nokia.n-gage.data": { - "source": "iana", - "extensions": ["ngdat"] - }, - "application/vnd.nokia.n-gage.symbian.install": { - "source": "apache", - "extensions": ["n-gage"] - }, - "application/vnd.nokia.ncd": { - "source": "iana" - }, - "application/vnd.nokia.pcd+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.pcd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.radio-preset": { - "source": "iana", - "extensions": ["rpst"] - }, - "application/vnd.nokia.radio-presets": { - "source": "iana", - "extensions": ["rpss"] - }, - "application/vnd.novadigm.edm": { - "source": "iana", - "extensions": ["edm"] - }, - "application/vnd.novadigm.edx": { - "source": "iana", - "extensions": ["edx"] - }, - "application/vnd.novadigm.ext": { - "source": "iana", - "extensions": ["ext"] - }, - "application/vnd.ntt-local.content-share": { - "source": "iana" - }, - "application/vnd.ntt-local.file-transfer": { - "source": "iana" - }, - "application/vnd.ntt-local.ogw_remote-access": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_remote": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_tcp_stream": { - "source": "iana" - }, - "application/vnd.oai.workflows": { - "source": "iana" - }, - "application/vnd.oai.workflows+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oai.workflows+yaml": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.base": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.chart": { - "source": "iana", - "extensions": ["odc"] - }, - "application/vnd.oasis.opendocument.chart-template": { - "source": "iana", - "extensions": ["otc"] - }, - "application/vnd.oasis.opendocument.database": { - "source": "apache", - "extensions": ["odb"] - }, - "application/vnd.oasis.opendocument.formula": { - "source": "iana", - "extensions": ["odf"] - }, - "application/vnd.oasis.opendocument.formula-template": { - "source": "iana", - "extensions": ["odft"] - }, - "application/vnd.oasis.opendocument.graphics": { - "source": "iana", - "compressible": false, - "extensions": ["odg"] - }, - "application/vnd.oasis.opendocument.graphics-template": { - "source": "iana", - "extensions": ["otg"] - }, - "application/vnd.oasis.opendocument.image": { - "source": "iana", - "extensions": ["odi"] - }, - "application/vnd.oasis.opendocument.image-template": { - "source": "iana", - "extensions": ["oti"] - }, - "application/vnd.oasis.opendocument.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["odp"] - }, - "application/vnd.oasis.opendocument.presentation-template": { - "source": "iana", - "extensions": ["otp"] - }, - "application/vnd.oasis.opendocument.spreadsheet": { - "source": "iana", - "compressible": false, - "extensions": ["ods"] - }, - "application/vnd.oasis.opendocument.spreadsheet-template": { - "source": "iana", - "extensions": ["ots"] - }, - "application/vnd.oasis.opendocument.text": { - "source": "iana", - "compressible": false, - "extensions": ["odt"] - }, - "application/vnd.oasis.opendocument.text-master": { - "source": "iana", - "extensions": ["odm"] - }, - "application/vnd.oasis.opendocument.text-master-template": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.text-template": { - "source": "iana", - "extensions": ["ott"] - }, - "application/vnd.oasis.opendocument.text-web": { - "source": "iana", - "extensions": ["oth"] - }, - "application/vnd.obn": { - "source": "iana" - }, - "application/vnd.ocf+cbor": { - "source": "iana" - }, - "application/vnd.oci.image.manifest.v1+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oftn.l10n+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessdownload+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessstreaming+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.cspg-hexbinary": { - "source": "iana" - }, - "application/vnd.oipf.dae.svg+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.dae.xhtml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.mippvcontrolmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.pae.gem": { - "source": "iana" - }, - "application/vnd.oipf.spdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.spdlist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.ueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.userprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.olpc-sugar": { - "source": "iana", - "extensions": ["xo"] - }, - "application/vnd.oma-scws-config": { - "source": "iana" - }, - "application/vnd.oma-scws-http-request": { - "source": "iana" - }, - "application/vnd.oma-scws-http-response": { - "source": "iana" - }, - "application/vnd.oma.bcast.associated-procedure-parameter+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.drm-trigger+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.oma.bcast.imd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.ltkm": { - "source": "iana" - }, - "application/vnd.oma.bcast.notification+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.provisioningtrigger": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgboot": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgdd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.sgdu": { - "source": "iana" - }, - "application/vnd.oma.bcast.simple-symbol-container": { - "source": "iana" - }, - "application/vnd.oma.bcast.smartcard-trigger+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.oma.bcast.sprov+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.stkm": { - "source": "iana" - }, - "application/vnd.oma.cab-address-book+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-feature-handler+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-pcc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-subs-invite+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-user-prefs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.dcd": { - "source": "iana" - }, - "application/vnd.oma.dcdc": { - "source": "iana" - }, - "application/vnd.oma.dd2+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dd2"] - }, - "application/vnd.oma.drm.risd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.group-usage-list+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+cbor": { - "source": "iana" - }, - "application/vnd.oma.lwm2m+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+tlv": { - "source": "iana" - }, - "application/vnd.oma.pal+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.detailed-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.final-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.groups+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.invocation-descriptor+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.optimized-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.push": { - "source": "iana" - }, - "application/vnd.oma.scidm.messages+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.xcap-directory+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omads-email+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omads-file+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omads-folder+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omaloc-supl-init": { - "source": "iana" - }, - "application/vnd.onepager": { - "source": "iana" - }, - "application/vnd.onepagertamp": { - "source": "iana" - }, - "application/vnd.onepagertamx": { - "source": "iana" - }, - "application/vnd.onepagertat": { - "source": "iana" - }, - "application/vnd.onepagertatp": { - "source": "iana" - }, - "application/vnd.onepagertatx": { - "source": "iana" - }, - "application/vnd.onvif.metadata": { - "source": "iana" - }, - "application/vnd.openblox.game+xml": { - "source": "iana", - "compressible": true, - "extensions": ["obgx"] - }, - "application/vnd.openblox.game-binary": { - "source": "iana" - }, - "application/vnd.openeye.oeb": { - "source": "iana" - }, - "application/vnd.openofficeorg.extension": { - "source": "apache", - "extensions": ["oxt"] - }, - "application/vnd.openstreetmap.data+xml": { - "source": "iana", - "compressible": true, - "extensions": ["osm"] - }, - "application/vnd.opentimestamps.ots": { - "source": "iana" - }, - "application/vnd.openvpi.dspx+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.custom-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawing+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.extended-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["pptx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide": { - "source": "iana", - "extensions": ["sldx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { - "source": "iana", - "extensions": ["ppsx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.template": { - "source": "iana", - "extensions": ["potx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { - "source": "iana", - "compressible": false, - "extensions": ["xlsx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { - "source": "iana", - "extensions": ["xltx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.theme+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.themeoverride+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.vmldrawing": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { - "source": "iana", - "compressible": false, - "extensions": ["docx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { - "source": "iana", - "extensions": ["dotx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.core-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.relationships+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oracle.resource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.orange.indata": { - "source": "iana" - }, - "application/vnd.osa.netdeploy": { - "source": "iana" - }, - "application/vnd.osgeo.mapguide.package": { - "source": "iana", - "extensions": ["mgp"] - }, - "application/vnd.osgi.bundle": { - "source": "iana" - }, - "application/vnd.osgi.dp": { - "source": "iana", - "extensions": ["dp"] - }, - "application/vnd.osgi.subsystem": { - "source": "iana", - "extensions": ["esa"] - }, - "application/vnd.otps.ct-kip+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oxli.countgraph": { - "source": "iana" - }, - "application/vnd.pagerduty+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.palm": { - "source": "iana", - "extensions": ["pdb","pqa","oprc"] - }, - "application/vnd.panoply": { - "source": "iana" - }, - "application/vnd.paos.xml": { - "source": "iana" - }, - "application/vnd.patentdive": { - "source": "iana" - }, - "application/vnd.patientecommsdoc": { - "source": "iana" - }, - "application/vnd.pawaafile": { - "source": "iana", - "extensions": ["paw"] - }, - "application/vnd.pcos": { - "source": "iana" - }, - "application/vnd.pg.format": { - "source": "iana", - "extensions": ["str"] - }, - "application/vnd.pg.osasli": { - "source": "iana", - "extensions": ["ei6"] - }, - "application/vnd.piaccess.application-licence": { - "source": "iana" - }, - "application/vnd.picsel": { - "source": "iana", - "extensions": ["efif"] - }, - "application/vnd.pmi.widget": { - "source": "iana", - "extensions": ["wg"] - }, - "application/vnd.poc.group-advertisement+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.pocketlearn": { - "source": "iana", - "extensions": ["plf"] - }, - "application/vnd.powerbuilder6": { - "source": "iana", - "extensions": ["pbd"] - }, - "application/vnd.powerbuilder6-s": { - "source": "iana" - }, - "application/vnd.powerbuilder7": { - "source": "iana" - }, - "application/vnd.powerbuilder7-s": { - "source": "iana" - }, - "application/vnd.powerbuilder75": { - "source": "iana" - }, - "application/vnd.powerbuilder75-s": { - "source": "iana" - }, - "application/vnd.preminet": { - "source": "iana" - }, - "application/vnd.previewsystems.box": { - "source": "iana", - "extensions": ["box"] - }, - "application/vnd.procrate.brushset": { - "extensions": ["brushset"] - }, - "application/vnd.procreate.brush": { - "extensions": ["brush"] - }, - "application/vnd.procreate.dream": { - "extensions": ["drm"] - }, - "application/vnd.proteus.magazine": { - "source": "iana", - "extensions": ["mgz"] - }, - "application/vnd.psfs": { - "source": "iana" - }, - "application/vnd.pt.mundusmundi": { - "source": "iana" - }, - "application/vnd.publishare-delta-tree": { - "source": "iana", - "extensions": ["qps"] - }, - "application/vnd.pvi.ptid1": { - "source": "iana", - "extensions": ["ptid"] - }, - "application/vnd.pwg-multiplexed": { - "source": "iana" - }, - "application/vnd.pwg-xhtml-print+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xhtm"] - }, - "application/vnd.qualcomm.brew-app-res": { - "source": "iana" - }, - "application/vnd.quarantainenet": { - "source": "iana" - }, - "application/vnd.quark.quarkxpress": { - "source": "iana", - "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] - }, - "application/vnd.quobject-quoxdocument": { - "source": "iana" - }, - "application/vnd.radisys.moml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-stream+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-base+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-detect+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-group+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-speech+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-transform+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.rainstor.data": { - "source": "iana" - }, - "application/vnd.rapid": { - "source": "iana" - }, - "application/vnd.rar": { - "source": "iana", - "extensions": ["rar"] - }, - "application/vnd.realvnc.bed": { - "source": "iana", - "extensions": ["bed"] - }, - "application/vnd.recordare.musicxml": { - "source": "iana", - "extensions": ["mxl"] - }, - "application/vnd.recordare.musicxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["musicxml"] - }, - "application/vnd.relpipe": { - "source": "iana" - }, - "application/vnd.renlearn.rlprint": { - "source": "iana" - }, - "application/vnd.resilient.logic": { - "source": "iana" - }, - "application/vnd.restful+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.rig.cryptonote": { - "source": "iana", - "extensions": ["cryptonote"] - }, - "application/vnd.rim.cod": { - "source": "apache", - "extensions": ["cod"] - }, - "application/vnd.rn-realmedia": { - "source": "apache", - "extensions": ["rm"] - }, - "application/vnd.rn-realmedia-vbr": { - "source": "apache", - "extensions": ["rmvb"] - }, - "application/vnd.route66.link66+xml": { - "source": "iana", - "compressible": true, - "extensions": ["link66"] - }, - "application/vnd.rs-274x": { - "source": "iana" - }, - "application/vnd.ruckus.download": { - "source": "iana" - }, - "application/vnd.s3sms": { - "source": "iana" - }, - "application/vnd.sailingtracker.track": { - "source": "iana", - "extensions": ["st"] - }, - "application/vnd.sar": { - "source": "iana" - }, - "application/vnd.sbm.cid": { - "source": "iana" - }, - "application/vnd.sbm.mid2": { - "source": "iana" - }, - "application/vnd.scribus": { - "source": "iana" - }, - "application/vnd.sealed.3df": { - "source": "iana" - }, - "application/vnd.sealed.csf": { - "source": "iana" - }, - "application/vnd.sealed.doc": { - "source": "iana" - }, - "application/vnd.sealed.eml": { - "source": "iana" - }, - "application/vnd.sealed.mht": { - "source": "iana" - }, - "application/vnd.sealed.net": { - "source": "iana" - }, - "application/vnd.sealed.ppt": { - "source": "iana" - }, - "application/vnd.sealed.tiff": { - "source": "iana" - }, - "application/vnd.sealed.xls": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.html": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.pdf": { - "source": "iana" - }, - "application/vnd.seemail": { - "source": "iana", - "extensions": ["see"] - }, - "application/vnd.seis+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.sema": { - "source": "iana", - "extensions": ["sema"] - }, - "application/vnd.semd": { - "source": "iana", - "extensions": ["semd"] - }, - "application/vnd.semf": { - "source": "iana", - "extensions": ["semf"] - }, - "application/vnd.shade-save-file": { - "source": "iana" - }, - "application/vnd.shana.informed.formdata": { - "source": "iana", - "extensions": ["ifm"] - }, - "application/vnd.shana.informed.formtemplate": { - "source": "iana", - "extensions": ["itp"] - }, - "application/vnd.shana.informed.interchange": { - "source": "iana", - "extensions": ["iif"] - }, - "application/vnd.shana.informed.package": { - "source": "iana", - "extensions": ["ipk"] - }, - "application/vnd.shootproof+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.shopkick+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.shp": { - "source": "iana" - }, - "application/vnd.shx": { - "source": "iana" - }, - "application/vnd.sigrok.session": { - "source": "iana" - }, - "application/vnd.simtech-mindmapper": { - "source": "iana", - "extensions": ["twd","twds"] - }, - "application/vnd.siren+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.sketchometry": { - "source": "iana" - }, - "application/vnd.smaf": { - "source": "iana", - "extensions": ["mmf"] - }, - "application/vnd.smart.notebook": { - "source": "iana" - }, - "application/vnd.smart.teacher": { - "source": "iana", - "extensions": ["teacher"] - }, - "application/vnd.smintio.portals.archive": { - "source": "iana" - }, - "application/vnd.snesdev-page-table": { - "source": "iana" - }, - "application/vnd.software602.filler.form+xml": { - "source": "iana", - "compressible": true, - "extensions": ["fo"] - }, - "application/vnd.software602.filler.form-xml-zip": { - "source": "iana" - }, - "application/vnd.solent.sdkm+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sdkm","sdkd"] - }, - "application/vnd.spotfire.dxp": { - "source": "iana", - "extensions": ["dxp"] - }, - "application/vnd.spotfire.sfs": { - "source": "iana", - "extensions": ["sfs"] - }, - "application/vnd.sqlite3": { - "source": "iana" - }, - "application/vnd.sss-cod": { - "source": "iana" - }, - "application/vnd.sss-dtf": { - "source": "iana" - }, - "application/vnd.sss-ntf": { - "source": "iana" - }, - "application/vnd.stardivision.calc": { - "source": "apache", - "extensions": ["sdc"] - }, - "application/vnd.stardivision.draw": { - "source": "apache", - "extensions": ["sda"] - }, - "application/vnd.stardivision.impress": { - "source": "apache", - "extensions": ["sdd"] - }, - "application/vnd.stardivision.math": { - "source": "apache", - "extensions": ["smf"] - }, - "application/vnd.stardivision.writer": { - "source": "apache", - "extensions": ["sdw","vor"] - }, - "application/vnd.stardivision.writer-global": { - "source": "apache", - "extensions": ["sgl"] - }, - "application/vnd.stepmania.package": { - "source": "iana", - "extensions": ["smzip"] - }, - "application/vnd.stepmania.stepchart": { - "source": "iana", - "extensions": ["sm"] - }, - "application/vnd.street-stream": { - "source": "iana" - }, - "application/vnd.sun.wadl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wadl"] - }, - "application/vnd.sun.xml.calc": { - "source": "apache", - "extensions": ["sxc"] - }, - "application/vnd.sun.xml.calc.template": { - "source": "apache", - "extensions": ["stc"] - }, - "application/vnd.sun.xml.draw": { - "source": "apache", - "extensions": ["sxd"] - }, - "application/vnd.sun.xml.draw.template": { - "source": "apache", - "extensions": ["std"] - }, - "application/vnd.sun.xml.impress": { - "source": "apache", - "extensions": ["sxi"] - }, - "application/vnd.sun.xml.impress.template": { - "source": "apache", - "extensions": ["sti"] - }, - "application/vnd.sun.xml.math": { - "source": "apache", - "extensions": ["sxm"] - }, - "application/vnd.sun.xml.writer": { - "source": "apache", - "extensions": ["sxw"] - }, - "application/vnd.sun.xml.writer.global": { - "source": "apache", - "extensions": ["sxg"] - }, - "application/vnd.sun.xml.writer.template": { - "source": "apache", - "extensions": ["stw"] - }, - "application/vnd.sus-calendar": { - "source": "iana", - "extensions": ["sus","susp"] - }, - "application/vnd.svd": { - "source": "iana", - "extensions": ["svd"] - }, - "application/vnd.swiftview-ics": { - "source": "iana" - }, - "application/vnd.sybyl.mol2": { - "source": "iana" - }, - "application/vnd.sycle+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.syft+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.symbian.install": { - "source": "apache", - "extensions": ["sis","sisx"] - }, - "application/vnd.syncml+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["xsm"] - }, - "application/vnd.syncml.dm+wbxml": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["bdm"] - }, - "application/vnd.syncml.dm+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["xdm"] - }, - "application/vnd.syncml.dm.notification": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["ddf"] - }, - "application/vnd.syncml.dmtnds+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmtnds+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.syncml.ds.notification": { - "source": "iana" - }, - "application/vnd.tableschema+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tao.intent-module-archive": { - "source": "iana", - "extensions": ["tao"] - }, - "application/vnd.tcpdump.pcap": { - "source": "iana", - "extensions": ["pcap","cap","dmp"] - }, - "application/vnd.think-cell.ppttc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tmd.mediaflex.api+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.tml": { - "source": "iana" - }, - "application/vnd.tmobile-livetv": { - "source": "iana", - "extensions": ["tmo"] - }, - "application/vnd.tri.onesource": { - "source": "iana" - }, - "application/vnd.trid.tpt": { - "source": "iana", - "extensions": ["tpt"] - }, - "application/vnd.triscape.mxs": { - "source": "iana", - "extensions": ["mxs"] - }, - "application/vnd.trueapp": { - "source": "iana", - "extensions": ["tra"] - }, - "application/vnd.truedoc": { - "source": "iana" - }, - "application/vnd.ubisoft.webplayer": { - "source": "iana" - }, - "application/vnd.ufdl": { - "source": "iana", - "extensions": ["ufd","ufdl"] - }, - "application/vnd.uic.osdm+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.uiq.theme": { - "source": "iana", - "extensions": ["utz"] - }, - "application/vnd.umajin": { - "source": "iana", - "extensions": ["umj"] - }, - "application/vnd.unity": { - "source": "iana", - "extensions": ["unityweb"] - }, - "application/vnd.uoml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uoml","uo"] - }, - "application/vnd.uplanet.alert": { - "source": "iana" - }, - "application/vnd.uplanet.alert-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.channel": { - "source": "iana" - }, - "application/vnd.uplanet.channel-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.list": { - "source": "iana" - }, - "application/vnd.uplanet.list-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.signal": { - "source": "iana" - }, - "application/vnd.uri-map": { - "source": "iana" - }, - "application/vnd.valve.source.material": { - "source": "iana" - }, - "application/vnd.vcx": { - "source": "iana", - "extensions": ["vcx"] - }, - "application/vnd.vd-study": { - "source": "iana" - }, - "application/vnd.vectorworks": { - "source": "iana" - }, - "application/vnd.vel+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.veraison.tsm-report+cbor": { - "source": "iana" - }, - "application/vnd.veraison.tsm-report+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.verimatrix.vcas": { - "source": "iana" - }, - "application/vnd.veritone.aion+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.veryant.thin": { - "source": "iana" - }, - "application/vnd.ves.encrypted": { - "source": "iana" - }, - "application/vnd.vidsoft.vidconference": { - "source": "iana" - }, - "application/vnd.visio": { - "source": "iana", - "extensions": ["vsd","vst","vss","vsw","vsdx","vtx"] - }, - "application/vnd.visionary": { - "source": "iana", - "extensions": ["vis"] - }, - "application/vnd.vividence.scriptfile": { - "source": "iana" - }, - "application/vnd.vocalshaper.vsp4": { - "source": "iana" - }, - "application/vnd.vsf": { - "source": "iana", - "extensions": ["vsf"] - }, - "application/vnd.wap.sic": { - "source": "iana" - }, - "application/vnd.wap.slc": { - "source": "iana" - }, - "application/vnd.wap.wbxml": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["wbxml"] - }, - "application/vnd.wap.wmlc": { - "source": "iana", - "extensions": ["wmlc"] - }, - "application/vnd.wap.wmlscriptc": { - "source": "iana", - "extensions": ["wmlsc"] - }, - "application/vnd.wasmflow.wafl": { - "source": "iana" - }, - "application/vnd.webturbo": { - "source": "iana", - "extensions": ["wtb"] - }, - "application/vnd.wfa.dpp": { - "source": "iana" - }, - "application/vnd.wfa.p2p": { - "source": "iana" - }, - "application/vnd.wfa.wsc": { - "source": "iana" - }, - "application/vnd.windows.devicepairing": { - "source": "iana" - }, - "application/vnd.wmc": { - "source": "iana" - }, - "application/vnd.wmf.bootstrap": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica.package": { - "source": "iana" - }, - "application/vnd.wolfram.player": { - "source": "iana", - "extensions": ["nbp"] - }, - "application/vnd.wordlift": { - "source": "iana" - }, - "application/vnd.wordperfect": { - "source": "iana", - "extensions": ["wpd"] - }, - "application/vnd.wqd": { - "source": "iana", - "extensions": ["wqd"] - }, - "application/vnd.wrq-hp3000-labelled": { - "source": "iana" - }, - "application/vnd.wt.stf": { - "source": "iana", - "extensions": ["stf"] - }, - "application/vnd.wv.csp+wbxml": { - "source": "iana" - }, - "application/vnd.wv.csp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.wv.ssp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xacml+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.xara": { - "source": "iana", - "extensions": ["xar"] - }, - "application/vnd.xarin.cpj": { - "source": "iana" - }, - "application/vnd.xecrets-encrypted": { - "source": "iana" - }, - "application/vnd.xfdl": { - "source": "iana", - "extensions": ["xfdl"] - }, - "application/vnd.xfdl.webform": { - "source": "iana" - }, - "application/vnd.xmi+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xmpie.cpkg": { - "source": "iana" - }, - "application/vnd.xmpie.dpkg": { - "source": "iana" - }, - "application/vnd.xmpie.plan": { - "source": "iana" - }, - "application/vnd.xmpie.ppkg": { - "source": "iana" - }, - "application/vnd.xmpie.xlim": { - "source": "iana" - }, - "application/vnd.yamaha.hv-dic": { - "source": "iana", - "extensions": ["hvd"] - }, - "application/vnd.yamaha.hv-script": { - "source": "iana", - "extensions": ["hvs"] - }, - "application/vnd.yamaha.hv-voice": { - "source": "iana", - "extensions": ["hvp"] - }, - "application/vnd.yamaha.openscoreformat": { - "source": "iana", - "extensions": ["osf"] - }, - "application/vnd.yamaha.openscoreformat.osfpvg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["osfpvg"] - }, - "application/vnd.yamaha.remote-setup": { - "source": "iana" - }, - "application/vnd.yamaha.smaf-audio": { - "source": "iana", - "extensions": ["saf"] - }, - "application/vnd.yamaha.smaf-phrase": { - "source": "iana", - "extensions": ["spf"] - }, - "application/vnd.yamaha.through-ngn": { - "source": "iana" - }, - "application/vnd.yamaha.tunnel-udpencap": { - "source": "iana" - }, - "application/vnd.yaoweme": { - "source": "iana" - }, - "application/vnd.yellowriver-custom-menu": { - "source": "iana", - "extensions": ["cmp"] - }, - "application/vnd.zul": { - "source": "iana", - "extensions": ["zir","zirz"] - }, - "application/vnd.zzazz.deck+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zaz"] - }, - "application/voicexml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["vxml"] - }, - "application/voucher-cms+json": { - "source": "iana", - "compressible": true - }, - "application/voucher-jws+json": { - "source": "iana", - "compressible": true - }, - "application/vp": { - "source": "iana" - }, - "application/vp+cose": { - "source": "iana" - }, - "application/vp+jwt": { - "source": "iana" - }, - "application/vq-rtcpxr": { - "source": "iana" - }, - "application/wasm": { - "source": "iana", - "compressible": true, - "extensions": ["wasm"] - }, - "application/watcherinfo+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wif"] - }, - "application/webpush-options+json": { - "source": "iana", - "compressible": true - }, - "application/whoispp-query": { - "source": "iana" - }, - "application/whoispp-response": { - "source": "iana" - }, - "application/widget": { - "source": "iana", - "extensions": ["wgt"] - }, - "application/winhlp": { - "source": "apache", - "extensions": ["hlp"] - }, - "application/wita": { - "source": "iana" - }, - "application/wordperfect5.1": { - "source": "iana" - }, - "application/wsdl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wsdl"] - }, - "application/wspolicy+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wspolicy"] - }, - "application/x-7z-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["7z"] - }, - "application/x-abiword": { - "source": "apache", - "extensions": ["abw"] - }, - "application/x-ace-compressed": { - "source": "apache", - "extensions": ["ace"] - }, - "application/x-amf": { - "source": "apache" - }, - "application/x-apple-diskimage": { - "source": "apache", - "extensions": ["dmg"] - }, - "application/x-arj": { - "compressible": false, - "extensions": ["arj"] - }, - "application/x-authorware-bin": { - "source": "apache", - "extensions": ["aab","x32","u32","vox"] - }, - "application/x-authorware-map": { - "source": "apache", - "extensions": ["aam"] - }, - "application/x-authorware-seg": { - "source": "apache", - "extensions": ["aas"] - }, - "application/x-bcpio": { - "source": "apache", - "extensions": ["bcpio"] - }, - "application/x-bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/x-bittorrent": { - "source": "apache", - "extensions": ["torrent"] - }, - "application/x-blender": { - "extensions": ["blend"] - }, - "application/x-blorb": { - "source": "apache", - "extensions": ["blb","blorb"] - }, - "application/x-bzip": { - "source": "apache", - "compressible": false, - "extensions": ["bz"] - }, - "application/x-bzip2": { - "source": "apache", - "compressible": false, - "extensions": ["bz2","boz"] - }, - "application/x-cbr": { - "source": "apache", - "extensions": ["cbr","cba","cbt","cbz","cb7"] - }, - "application/x-cdlink": { - "source": "apache", - "extensions": ["vcd"] - }, - "application/x-cfs-compressed": { - "source": "apache", - "extensions": ["cfs"] - }, - "application/x-chat": { - "source": "apache", - "extensions": ["chat"] - }, - "application/x-chess-pgn": { - "source": "apache", - "extensions": ["pgn"] - }, - "application/x-chrome-extension": { - "extensions": ["crx"] - }, - "application/x-cocoa": { - "source": "nginx", - "extensions": ["cco"] - }, - "application/x-compress": { - "source": "apache" - }, - "application/x-compressed": { - "extensions": ["rar"] - }, - "application/x-conference": { - "source": "apache", - "extensions": ["nsc"] - }, - "application/x-cpio": { - "source": "apache", - "extensions": ["cpio"] - }, - "application/x-csh": { - "source": "apache", - "extensions": ["csh"] - }, - "application/x-deb": { - "compressible": false - }, - "application/x-debian-package": { - "source": "apache", - "extensions": ["deb","udeb"] - }, - "application/x-dgc-compressed": { - "source": "apache", - "extensions": ["dgc"] - }, - "application/x-director": { - "source": "apache", - "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] - }, - "application/x-doom": { - "source": "apache", - "extensions": ["wad"] - }, - "application/x-dtbncx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ncx"] - }, - "application/x-dtbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dtb"] - }, - "application/x-dtbresource+xml": { - "source": "apache", - "compressible": true, - "extensions": ["res"] - }, - "application/x-dvi": { - "source": "apache", - "compressible": false, - "extensions": ["dvi"] - }, - "application/x-envoy": { - "source": "apache", - "extensions": ["evy"] - }, - "application/x-eva": { - "source": "apache", - "extensions": ["eva"] - }, - "application/x-font-bdf": { - "source": "apache", - "extensions": ["bdf"] - }, - "application/x-font-dos": { - "source": "apache" - }, - "application/x-font-framemaker": { - "source": "apache" - }, - "application/x-font-ghostscript": { - "source": "apache", - "extensions": ["gsf"] - }, - "application/x-font-libgrx": { - "source": "apache" - }, - "application/x-font-linux-psf": { - "source": "apache", - "extensions": ["psf"] - }, - "application/x-font-pcf": { - "source": "apache", - "extensions": ["pcf"] - }, - "application/x-font-snf": { - "source": "apache", - "extensions": ["snf"] - }, - "application/x-font-speedo": { - "source": "apache" - }, - "application/x-font-sunos-news": { - "source": "apache" - }, - "application/x-font-type1": { - "source": "apache", - "extensions": ["pfa","pfb","pfm","afm"] - }, - "application/x-font-vfont": { - "source": "apache" - }, - "application/x-freearc": { - "source": "apache", - "extensions": ["arc"] - }, - "application/x-futuresplash": { - "source": "apache", - "extensions": ["spl"] - }, - "application/x-gca-compressed": { - "source": "apache", - "extensions": ["gca"] - }, - "application/x-glulx": { - "source": "apache", - "extensions": ["ulx"] - }, - "application/x-gnumeric": { - "source": "apache", - "extensions": ["gnumeric"] - }, - "application/x-gramps-xml": { - "source": "apache", - "extensions": ["gramps"] - }, - "application/x-gtar": { - "source": "apache", - "extensions": ["gtar"] - }, - "application/x-gzip": { - "source": "apache" - }, - "application/x-hdf": { - "source": "apache", - "extensions": ["hdf"] - }, - "application/x-httpd-php": { - "compressible": true, - "extensions": ["php"] - }, - "application/x-install-instructions": { - "source": "apache", - "extensions": ["install"] - }, - "application/x-ipynb+json": { - "compressible": true, - "extensions": ["ipynb"] - }, - "application/x-iso9660-image": { - "source": "apache", - "extensions": ["iso"] - }, - "application/x-iwork-keynote-sffkey": { - "extensions": ["key"] - }, - "application/x-iwork-numbers-sffnumbers": { - "extensions": ["numbers"] - }, - "application/x-iwork-pages-sffpages": { - "extensions": ["pages"] - }, - "application/x-java-archive-diff": { - "source": "nginx", - "extensions": ["jardiff"] - }, - "application/x-java-jnlp-file": { - "source": "apache", - "compressible": false, - "extensions": ["jnlp"] - }, - "application/x-javascript": { - "compressible": true - }, - "application/x-keepass2": { - "extensions": ["kdbx"] - }, - "application/x-latex": { - "source": "apache", - "compressible": false, - "extensions": ["latex"] - }, - "application/x-lua-bytecode": { - "extensions": ["luac"] - }, - "application/x-lzh-compressed": { - "source": "apache", - "extensions": ["lzh","lha"] - }, - "application/x-makeself": { - "source": "nginx", - "extensions": ["run"] - }, - "application/x-mie": { - "source": "apache", - "extensions": ["mie"] - }, - "application/x-mobipocket-ebook": { - "source": "apache", - "extensions": ["prc","mobi"] - }, - "application/x-mpegurl": { - "compressible": false - }, - "application/x-ms-application": { - "source": "apache", - "extensions": ["application"] - }, - "application/x-ms-shortcut": { - "source": "apache", - "extensions": ["lnk"] - }, - "application/x-ms-wmd": { - "source": "apache", - "extensions": ["wmd"] - }, - "application/x-ms-wmz": { - "source": "apache", - "extensions": ["wmz"] - }, - "application/x-ms-xbap": { - "source": "apache", - "extensions": ["xbap"] - }, - "application/x-msaccess": { - "source": "apache", - "extensions": ["mdb"] - }, - "application/x-msbinder": { - "source": "apache", - "extensions": ["obd"] - }, - "application/x-mscardfile": { - "source": "apache", - "extensions": ["crd"] - }, - "application/x-msclip": { - "source": "apache", - "extensions": ["clp"] - }, - "application/x-msdos-program": { - "extensions": ["exe"] - }, - "application/x-msdownload": { - "source": "apache", - "extensions": ["exe","dll","com","bat","msi"] - }, - "application/x-msmediaview": { - "source": "apache", - "extensions": ["mvb","m13","m14"] - }, - "application/x-msmetafile": { - "source": "apache", - "extensions": ["wmf","wmz","emf","emz"] - }, - "application/x-msmoney": { - "source": "apache", - "extensions": ["mny"] - }, - "application/x-mspublisher": { - "source": "apache", - "extensions": ["pub"] - }, - "application/x-msschedule": { - "source": "apache", - "extensions": ["scd"] - }, - "application/x-msterminal": { - "source": "apache", - "extensions": ["trm"] - }, - "application/x-mswrite": { - "source": "apache", - "extensions": ["wri"] - }, - "application/x-netcdf": { - "source": "apache", - "extensions": ["nc","cdf"] - }, - "application/x-ns-proxy-autoconfig": { - "compressible": true, - "extensions": ["pac"] - }, - "application/x-nzb": { - "source": "apache", - "extensions": ["nzb"] - }, - "application/x-perl": { - "source": "nginx", - "extensions": ["pl","pm"] - }, - "application/x-pilot": { - "source": "nginx", - "extensions": ["prc","pdb"] - }, - "application/x-pkcs12": { - "source": "apache", - "compressible": false, - "extensions": ["p12","pfx"] - }, - "application/x-pkcs7-certificates": { - "source": "apache", - "extensions": ["p7b","spc"] - }, - "application/x-pkcs7-certreqresp": { - "source": "apache", - "extensions": ["p7r"] - }, - "application/x-pki-message": { - "source": "iana" - }, - "application/x-rar-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["rar"] - }, - "application/x-redhat-package-manager": { - "source": "nginx", - "extensions": ["rpm"] - }, - "application/x-research-info-systems": { - "source": "apache", - "extensions": ["ris"] - }, - "application/x-sea": { - "source": "nginx", - "extensions": ["sea"] - }, - "application/x-sh": { - "source": "apache", - "compressible": true, - "extensions": ["sh"] - }, - "application/x-shar": { - "source": "apache", - "extensions": ["shar"] - }, - "application/x-shockwave-flash": { - "source": "apache", - "compressible": false, - "extensions": ["swf"] - }, - "application/x-silverlight-app": { - "source": "apache", - "extensions": ["xap"] - }, - "application/x-sql": { - "source": "apache", - "extensions": ["sql"] - }, - "application/x-stuffit": { - "source": "apache", - "compressible": false, - "extensions": ["sit"] - }, - "application/x-stuffitx": { - "source": "apache", - "extensions": ["sitx"] - }, - "application/x-subrip": { - "source": "apache", - "extensions": ["srt"] - }, - "application/x-sv4cpio": { - "source": "apache", - "extensions": ["sv4cpio"] - }, - "application/x-sv4crc": { - "source": "apache", - "extensions": ["sv4crc"] - }, - "application/x-t3vm-image": { - "source": "apache", - "extensions": ["t3"] - }, - "application/x-tads": { - "source": "apache", - "extensions": ["gam"] - }, - "application/x-tar": { - "source": "apache", - "compressible": true, - "extensions": ["tar"] - }, - "application/x-tcl": { - "source": "apache", - "extensions": ["tcl","tk"] - }, - "application/x-tex": { - "source": "apache", - "extensions": ["tex"] - }, - "application/x-tex-tfm": { - "source": "apache", - "extensions": ["tfm"] - }, - "application/x-texinfo": { - "source": "apache", - "extensions": ["texinfo","texi"] - }, - "application/x-tgif": { - "source": "apache", - "extensions": ["obj"] - }, - "application/x-ustar": { - "source": "apache", - "extensions": ["ustar"] - }, - "application/x-virtualbox-hdd": { - "compressible": true, - "extensions": ["hdd"] - }, - "application/x-virtualbox-ova": { - "compressible": true, - "extensions": ["ova"] - }, - "application/x-virtualbox-ovf": { - "compressible": true, - "extensions": ["ovf"] - }, - "application/x-virtualbox-vbox": { - "compressible": true, - "extensions": ["vbox"] - }, - "application/x-virtualbox-vbox-extpack": { - "compressible": false, - "extensions": ["vbox-extpack"] - }, - "application/x-virtualbox-vdi": { - "compressible": true, - "extensions": ["vdi"] - }, - "application/x-virtualbox-vhd": { - "compressible": true, - "extensions": ["vhd"] - }, - "application/x-virtualbox-vmdk": { - "compressible": true, - "extensions": ["vmdk"] - }, - "application/x-wais-source": { - "source": "apache", - "extensions": ["src"] - }, - "application/x-web-app-manifest+json": { - "compressible": true, - "extensions": ["webapp"] - }, - "application/x-www-form-urlencoded": { - "source": "iana", - "compressible": true - }, - "application/x-x509-ca-cert": { - "source": "iana", - "extensions": ["der","crt","pem"] - }, - "application/x-x509-ca-ra-cert": { - "source": "iana" - }, - "application/x-x509-next-ca-cert": { - "source": "iana" - }, - "application/x-xfig": { - "source": "apache", - "extensions": ["fig"] - }, - "application/x-xliff+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xlf"] - }, - "application/x-xpinstall": { - "source": "apache", - "compressible": false, - "extensions": ["xpi"] - }, - "application/x-xz": { - "source": "apache", - "extensions": ["xz"] - }, - "application/x-zip-compressed": { - "extensions": ["zip"] - }, - "application/x-zmachine": { - "source": "apache", - "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] - }, - "application/x400-bp": { - "source": "iana" - }, - "application/xacml+xml": { - "source": "iana", - "compressible": true - }, - "application/xaml+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xaml"] - }, - "application/xcap-att+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xav"] - }, - "application/xcap-caps+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xca"] - }, - "application/xcap-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdf"] - }, - "application/xcap-el+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xel"] - }, - "application/xcap-error+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-ns+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xns"] - }, - "application/xcon-conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/xcon-conference-info-diff+xml": { - "source": "iana", - "compressible": true - }, - "application/xenc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xenc"] - }, - "application/xfdf": { - "source": "iana", - "extensions": ["xfdf"] - }, - "application/xhtml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xhtml","xht"] - }, - "application/xhtml-voice+xml": { - "source": "apache", - "compressible": true - }, - "application/xliff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xlf"] - }, - "application/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml","xsl","xsd","rng"] - }, - "application/xml-dtd": { - "source": "iana", - "compressible": true, - "extensions": ["dtd"] - }, - "application/xml-external-parsed-entity": { - "source": "iana" - }, - "application/xml-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/xmpp+xml": { - "source": "iana", - "compressible": true - }, - "application/xop+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xop"] - }, - "application/xproc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xpl"] - }, - "application/xslt+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xsl","xslt"] - }, - "application/xspf+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xspf"] - }, - "application/xv+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mxml","xhvml","xvml","xvm"] - }, - "application/yaml": { - "source": "iana" - }, - "application/yang": { - "source": "iana", - "extensions": ["yang"] - }, - "application/yang-data+cbor": { - "source": "iana" - }, - "application/yang-data+json": { - "source": "iana", - "compressible": true - }, - "application/yang-data+xml": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+json": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/yang-sid+json": { - "source": "iana", - "compressible": true - }, - "application/yin+xml": { - "source": "iana", - "compressible": true, - "extensions": ["yin"] - }, - "application/zip": { - "source": "iana", - "compressible": false, - "extensions": ["zip"] - }, - "application/zip+dotlottie": { - "extensions": ["lottie"] - }, - "application/zlib": { - "source": "iana" - }, - "application/zstd": { - "source": "iana" - }, - "audio/1d-interleaved-parityfec": { - "source": "iana" - }, - "audio/32kadpcm": { - "source": "iana" - }, - "audio/3gpp": { - "source": "iana", - "compressible": false, - "extensions": ["3gpp"] - }, - "audio/3gpp2": { - "source": "iana" - }, - "audio/aac": { - "source": "iana", - "extensions": ["adts","aac"] - }, - "audio/ac3": { - "source": "iana" - }, - "audio/adpcm": { - "source": "apache", - "extensions": ["adp"] - }, - "audio/amr": { - "source": "iana", - "extensions": ["amr"] - }, - "audio/amr-wb": { - "source": "iana" - }, - "audio/amr-wb+": { - "source": "iana" - }, - "audio/aptx": { - "source": "iana" - }, - "audio/asc": { - "source": "iana" - }, - "audio/atrac-advanced-lossless": { - "source": "iana" - }, - "audio/atrac-x": { - "source": "iana" - }, - "audio/atrac3": { - "source": "iana" - }, - "audio/basic": { - "source": "iana", - "compressible": false, - "extensions": ["au","snd"] - }, - "audio/bv16": { - "source": "iana" - }, - "audio/bv32": { - "source": "iana" - }, - "audio/clearmode": { - "source": "iana" - }, - "audio/cn": { - "source": "iana" - }, - "audio/dat12": { - "source": "iana" - }, - "audio/dls": { - "source": "iana" - }, - "audio/dsr-es201108": { - "source": "iana" - }, - "audio/dsr-es202050": { - "source": "iana" - }, - "audio/dsr-es202211": { - "source": "iana" - }, - "audio/dsr-es202212": { - "source": "iana" - }, - "audio/dv": { - "source": "iana" - }, - "audio/dvi4": { - "source": "iana" - }, - "audio/eac3": { - "source": "iana" - }, - "audio/encaprtp": { - "source": "iana" - }, - "audio/evrc": { - "source": "iana" - }, - "audio/evrc-qcp": { - "source": "iana" - }, - "audio/evrc0": { - "source": "iana" - }, - "audio/evrc1": { - "source": "iana" - }, - "audio/evrcb": { - "source": "iana" - }, - "audio/evrcb0": { - "source": "iana" - }, - "audio/evrcb1": { - "source": "iana" - }, - "audio/evrcnw": { - "source": "iana" - }, - "audio/evrcnw0": { - "source": "iana" - }, - "audio/evrcnw1": { - "source": "iana" - }, - "audio/evrcwb": { - "source": "iana" - }, - "audio/evrcwb0": { - "source": "iana" - }, - "audio/evrcwb1": { - "source": "iana" - }, - "audio/evs": { - "source": "iana" - }, - "audio/flac": { - "source": "iana" - }, - "audio/flexfec": { - "source": "iana" - }, - "audio/fwdred": { - "source": "iana" - }, - "audio/g711-0": { - "source": "iana" - }, - "audio/g719": { - "source": "iana" - }, - "audio/g722": { - "source": "iana" - }, - "audio/g7221": { - "source": "iana" - }, - "audio/g723": { - "source": "iana" - }, - "audio/g726-16": { - "source": "iana" - }, - "audio/g726-24": { - "source": "iana" - }, - "audio/g726-32": { - "source": "iana" - }, - "audio/g726-40": { - "source": "iana" - }, - "audio/g728": { - "source": "iana" - }, - "audio/g729": { - "source": "iana" - }, - "audio/g7291": { - "source": "iana" - }, - "audio/g729d": { - "source": "iana" - }, - "audio/g729e": { - "source": "iana" - }, - "audio/gsm": { - "source": "iana" - }, - "audio/gsm-efr": { - "source": "iana" - }, - "audio/gsm-hr-08": { - "source": "iana" - }, - "audio/ilbc": { - "source": "iana" - }, - "audio/ip-mr_v2.5": { - "source": "iana" - }, - "audio/isac": { - "source": "apache" - }, - "audio/l16": { - "source": "iana" - }, - "audio/l20": { - "source": "iana" - }, - "audio/l24": { - "source": "iana", - "compressible": false - }, - "audio/l8": { - "source": "iana" - }, - "audio/lpc": { - "source": "iana" - }, - "audio/matroska": { - "source": "iana" - }, - "audio/melp": { - "source": "iana" - }, - "audio/melp1200": { - "source": "iana" - }, - "audio/melp2400": { - "source": "iana" - }, - "audio/melp600": { - "source": "iana" - }, - "audio/mhas": { - "source": "iana" - }, - "audio/midi": { - "source": "apache", - "extensions": ["mid","midi","kar","rmi"] - }, - "audio/midi-clip": { - "source": "iana" - }, - "audio/mobile-xmf": { - "source": "iana", - "extensions": ["mxmf"] - }, - "audio/mp3": { - "compressible": false, - "extensions": ["mp3"] - }, - "audio/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["m4a","mp4a","m4b"] - }, - "audio/mp4a-latm": { - "source": "iana" - }, - "audio/mpa": { - "source": "iana" - }, - "audio/mpa-robust": { - "source": "iana" - }, - "audio/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] - }, - "audio/mpeg4-generic": { - "source": "iana" - }, - "audio/musepack": { - "source": "apache" - }, - "audio/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["oga","ogg","spx","opus"] - }, - "audio/opus": { - "source": "iana" - }, - "audio/parityfec": { - "source": "iana" - }, - "audio/pcma": { - "source": "iana" - }, - "audio/pcma-wb": { - "source": "iana" - }, - "audio/pcmu": { - "source": "iana" - }, - "audio/pcmu-wb": { - "source": "iana" - }, - "audio/prs.sid": { - "source": "iana" - }, - "audio/qcelp": { - "source": "iana" - }, - "audio/raptorfec": { - "source": "iana" - }, - "audio/red": { - "source": "iana" - }, - "audio/rtp-enc-aescm128": { - "source": "iana" - }, - "audio/rtp-midi": { - "source": "iana" - }, - "audio/rtploopback": { - "source": "iana" - }, - "audio/rtx": { - "source": "iana" - }, - "audio/s3m": { - "source": "apache", - "extensions": ["s3m"] - }, - "audio/scip": { - "source": "iana" - }, - "audio/silk": { - "source": "apache", - "extensions": ["sil"] - }, - "audio/smv": { - "source": "iana" - }, - "audio/smv-qcp": { - "source": "iana" - }, - "audio/smv0": { - "source": "iana" - }, - "audio/sofa": { - "source": "iana" - }, - "audio/sp-midi": { - "source": "iana" - }, - "audio/speex": { - "source": "iana" - }, - "audio/t140c": { - "source": "iana" - }, - "audio/t38": { - "source": "iana" - }, - "audio/telephone-event": { - "source": "iana" - }, - "audio/tetra_acelp": { - "source": "iana" - }, - "audio/tetra_acelp_bb": { - "source": "iana" - }, - "audio/tone": { - "source": "iana" - }, - "audio/tsvcis": { - "source": "iana" - }, - "audio/uemclip": { - "source": "iana" - }, - "audio/ulpfec": { - "source": "iana" - }, - "audio/usac": { - "source": "iana" - }, - "audio/vdvi": { - "source": "iana" - }, - "audio/vmr-wb": { - "source": "iana" - }, - "audio/vnd.3gpp.iufp": { - "source": "iana" - }, - "audio/vnd.4sb": { - "source": "iana" - }, - "audio/vnd.audiokoz": { - "source": "iana" - }, - "audio/vnd.celp": { - "source": "iana" - }, - "audio/vnd.cisco.nse": { - "source": "iana" - }, - "audio/vnd.cmles.radio-events": { - "source": "iana" - }, - "audio/vnd.cns.anp1": { - "source": "iana" - }, - "audio/vnd.cns.inf1": { - "source": "iana" - }, - "audio/vnd.dece.audio": { - "source": "iana", - "extensions": ["uva","uvva"] - }, - "audio/vnd.digital-winds": { - "source": "iana", - "extensions": ["eol"] - }, - "audio/vnd.dlna.adts": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.1": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.2": { - "source": "iana" - }, - "audio/vnd.dolby.mlp": { - "source": "iana" - }, - "audio/vnd.dolby.mps": { - "source": "iana" - }, - "audio/vnd.dolby.pl2": { - "source": "iana" - }, - "audio/vnd.dolby.pl2x": { - "source": "iana" - }, - "audio/vnd.dolby.pl2z": { - "source": "iana" - }, - "audio/vnd.dolby.pulse.1": { - "source": "iana" - }, - "audio/vnd.dra": { - "source": "iana", - "extensions": ["dra"] - }, - "audio/vnd.dts": { - "source": "iana", - "extensions": ["dts"] - }, - "audio/vnd.dts.hd": { - "source": "iana", - "extensions": ["dtshd"] - }, - "audio/vnd.dts.uhd": { - "source": "iana" - }, - "audio/vnd.dvb.file": { - "source": "iana" - }, - "audio/vnd.everad.plj": { - "source": "iana" - }, - "audio/vnd.hns.audio": { - "source": "iana" - }, - "audio/vnd.lucent.voice": { - "source": "iana", - "extensions": ["lvp"] - }, - "audio/vnd.ms-playready.media.pya": { - "source": "iana", - "extensions": ["pya"] - }, - "audio/vnd.nokia.mobile-xmf": { - "source": "iana" - }, - "audio/vnd.nortel.vbk": { - "source": "iana" - }, - "audio/vnd.nuera.ecelp4800": { - "source": "iana", - "extensions": ["ecelp4800"] - }, - "audio/vnd.nuera.ecelp7470": { - "source": "iana", - "extensions": ["ecelp7470"] - }, - "audio/vnd.nuera.ecelp9600": { - "source": "iana", - "extensions": ["ecelp9600"] - }, - "audio/vnd.octel.sbc": { - "source": "iana" - }, - "audio/vnd.presonus.multitrack": { - "source": "iana" - }, - "audio/vnd.qcelp": { - "source": "apache" - }, - "audio/vnd.rhetorex.32kadpcm": { - "source": "iana" - }, - "audio/vnd.rip": { - "source": "iana", - "extensions": ["rip"] - }, - "audio/vnd.rn-realaudio": { - "compressible": false - }, - "audio/vnd.sealedmedia.softseal.mpeg": { - "source": "iana" - }, - "audio/vnd.vmx.cvsd": { - "source": "iana" - }, - "audio/vnd.wave": { - "compressible": false - }, - "audio/vorbis": { - "source": "iana", - "compressible": false - }, - "audio/vorbis-config": { - "source": "iana" - }, - "audio/wav": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/wave": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/webm": { - "source": "apache", - "compressible": false, - "extensions": ["weba"] - }, - "audio/x-aac": { - "source": "apache", - "compressible": false, - "extensions": ["aac"] - }, - "audio/x-aiff": { - "source": "apache", - "extensions": ["aif","aiff","aifc"] - }, - "audio/x-caf": { - "source": "apache", - "compressible": false, - "extensions": ["caf"] - }, - "audio/x-flac": { - "source": "apache", - "extensions": ["flac"] - }, - "audio/x-m4a": { - "source": "nginx", - "extensions": ["m4a"] - }, - "audio/x-matroska": { - "source": "apache", - "extensions": ["mka"] - }, - "audio/x-mpegurl": { - "source": "apache", - "extensions": ["m3u"] - }, - "audio/x-ms-wax": { - "source": "apache", - "extensions": ["wax"] - }, - "audio/x-ms-wma": { - "source": "apache", - "extensions": ["wma"] - }, - "audio/x-pn-realaudio": { - "source": "apache", - "extensions": ["ram","ra"] - }, - "audio/x-pn-realaudio-plugin": { - "source": "apache", - "extensions": ["rmp"] - }, - "audio/x-realaudio": { - "source": "nginx", - "extensions": ["ra"] - }, - "audio/x-tta": { - "source": "apache" - }, - "audio/x-wav": { - "source": "apache", - "extensions": ["wav"] - }, - "audio/xm": { - "source": "apache", - "extensions": ["xm"] - }, - "chemical/x-cdx": { - "source": "apache", - "extensions": ["cdx"] - }, - "chemical/x-cif": { - "source": "apache", - "extensions": ["cif"] - }, - "chemical/x-cmdf": { - "source": "apache", - "extensions": ["cmdf"] - }, - "chemical/x-cml": { - "source": "apache", - "extensions": ["cml"] - }, - "chemical/x-csml": { - "source": "apache", - "extensions": ["csml"] - }, - "chemical/x-pdb": { - "source": "apache" - }, - "chemical/x-xyz": { - "source": "apache", - "extensions": ["xyz"] - }, - "font/collection": { - "source": "iana", - "extensions": ["ttc"] - }, - "font/otf": { - "source": "iana", - "compressible": true, - "extensions": ["otf"] - }, - "font/sfnt": { - "source": "iana" - }, - "font/ttf": { - "source": "iana", - "compressible": true, - "extensions": ["ttf"] - }, - "font/woff": { - "source": "iana", - "extensions": ["woff"] - }, - "font/woff2": { - "source": "iana", - "extensions": ["woff2"] - }, - "image/aces": { - "source": "iana", - "extensions": ["exr"] - }, - "image/apng": { - "source": "iana", - "compressible": false, - "extensions": ["apng"] - }, - "image/avci": { - "source": "iana", - "extensions": ["avci"] - }, - "image/avcs": { - "source": "iana", - "extensions": ["avcs"] - }, - "image/avif": { - "source": "iana", - "compressible": false, - "extensions": ["avif"] - }, - "image/bmp": { - "source": "iana", - "compressible": true, - "extensions": ["bmp","dib"] - }, - "image/cgm": { - "source": "iana", - "extensions": ["cgm"] - }, - "image/dicom-rle": { - "source": "iana", - "extensions": ["drle"] - }, - "image/dpx": { - "source": "iana", - "extensions": ["dpx"] - }, - "image/emf": { - "source": "iana", - "extensions": ["emf"] - }, - "image/fits": { - "source": "iana", - "extensions": ["fits"] - }, - "image/g3fax": { - "source": "iana", - "extensions": ["g3"] - }, - "image/gif": { - "source": "iana", - "compressible": false, - "extensions": ["gif"] - }, - "image/heic": { - "source": "iana", - "extensions": ["heic"] - }, - "image/heic-sequence": { - "source": "iana", - "extensions": ["heics"] - }, - "image/heif": { - "source": "iana", - "extensions": ["heif"] - }, - "image/heif-sequence": { - "source": "iana", - "extensions": ["heifs"] - }, - "image/hej2k": { - "source": "iana", - "extensions": ["hej2"] - }, - "image/ief": { - "source": "iana", - "extensions": ["ief"] - }, - "image/j2c": { - "source": "iana" - }, - "image/jaii": { - "source": "iana", - "extensions": ["jaii"] - }, - "image/jais": { - "source": "iana", - "extensions": ["jais"] - }, - "image/jls": { - "source": "iana", - "extensions": ["jls"] - }, - "image/jp2": { - "source": "iana", - "compressible": false, - "extensions": ["jp2","jpg2"] - }, - "image/jpeg": { - "source": "iana", - "compressible": false, - "extensions": ["jpg","jpeg","jpe"] - }, - "image/jph": { - "source": "iana", - "extensions": ["jph"] - }, - "image/jphc": { - "source": "iana", - "extensions": ["jhc"] - }, - "image/jpm": { - "source": "iana", - "compressible": false, - "extensions": ["jpm","jpgm"] - }, - "image/jpx": { - "source": "iana", - "compressible": false, - "extensions": ["jpx","jpf"] - }, - "image/jxl": { - "source": "iana", - "extensions": ["jxl"] - }, - "image/jxr": { - "source": "iana", - "extensions": ["jxr"] - }, - "image/jxra": { - "source": "iana", - "extensions": ["jxra"] - }, - "image/jxrs": { - "source": "iana", - "extensions": ["jxrs"] - }, - "image/jxs": { - "source": "iana", - "extensions": ["jxs"] - }, - "image/jxsc": { - "source": "iana", - "extensions": ["jxsc"] - }, - "image/jxsi": { - "source": "iana", - "extensions": ["jxsi"] - }, - "image/jxss": { - "source": "iana", - "extensions": ["jxss"] - }, - "image/ktx": { - "source": "iana", - "extensions": ["ktx"] - }, - "image/ktx2": { - "source": "iana", - "extensions": ["ktx2"] - }, - "image/naplps": { - "source": "iana" - }, - "image/pjpeg": { - "compressible": false, - "extensions": ["jfif"] - }, - "image/png": { - "source": "iana", - "compressible": false, - "extensions": ["png"] - }, - "image/prs.btif": { - "source": "iana", - "extensions": ["btif","btf"] - }, - "image/prs.pti": { - "source": "iana", - "extensions": ["pti"] - }, - "image/pwg-raster": { - "source": "iana" - }, - "image/sgi": { - "source": "apache", - "extensions": ["sgi"] - }, - "image/svg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["svg","svgz"] - }, - "image/t38": { - "source": "iana", - "extensions": ["t38"] - }, - "image/tiff": { - "source": "iana", - "compressible": false, - "extensions": ["tif","tiff"] - }, - "image/tiff-fx": { - "source": "iana", - "extensions": ["tfx"] - }, - "image/vnd.adobe.photoshop": { - "source": "iana", - "compressible": true, - "extensions": ["psd"] - }, - "image/vnd.airzip.accelerator.azv": { - "source": "iana", - "extensions": ["azv"] - }, - "image/vnd.clip": { - "source": "iana" - }, - "image/vnd.cns.inf2": { - "source": "iana" - }, - "image/vnd.dece.graphic": { - "source": "iana", - "extensions": ["uvi","uvvi","uvg","uvvg"] - }, - "image/vnd.djvu": { - "source": "iana", - "extensions": ["djvu","djv"] - }, - "image/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "image/vnd.dwg": { - "source": "iana", - "extensions": ["dwg"] - }, - "image/vnd.dxf": { - "source": "iana", - "extensions": ["dxf"] - }, - "image/vnd.fastbidsheet": { - "source": "iana", - "extensions": ["fbs"] - }, - "image/vnd.fpx": { - "source": "iana", - "extensions": ["fpx"] - }, - "image/vnd.fst": { - "source": "iana", - "extensions": ["fst"] - }, - "image/vnd.fujixerox.edmics-mmr": { - "source": "iana", - "extensions": ["mmr"] - }, - "image/vnd.fujixerox.edmics-rlc": { - "source": "iana", - "extensions": ["rlc"] - }, - "image/vnd.globalgraphics.pgb": { - "source": "iana" - }, - "image/vnd.microsoft.icon": { - "source": "iana", - "compressible": true, - "extensions": ["ico"] - }, - "image/vnd.mix": { - "source": "iana" - }, - "image/vnd.mozilla.apng": { - "source": "iana" - }, - "image/vnd.ms-dds": { - "compressible": true, - "extensions": ["dds"] - }, - "image/vnd.ms-modi": { - "source": "iana", - "extensions": ["mdi"] - }, - "image/vnd.ms-photo": { - "source": "apache", - "extensions": ["wdp"] - }, - "image/vnd.net-fpx": { - "source": "iana", - "extensions": ["npx"] - }, - "image/vnd.pco.b16": { - "source": "iana", - "extensions": ["b16"] - }, - "image/vnd.radiance": { - "source": "iana" - }, - "image/vnd.sealed.png": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.gif": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.jpg": { - "source": "iana" - }, - "image/vnd.svf": { - "source": "iana" - }, - "image/vnd.tencent.tap": { - "source": "iana", - "extensions": ["tap"] - }, - "image/vnd.valve.source.texture": { - "source": "iana", - "extensions": ["vtf"] - }, - "image/vnd.wap.wbmp": { - "source": "iana", - "extensions": ["wbmp"] - }, - "image/vnd.xiff": { - "source": "iana", - "extensions": ["xif"] - }, - "image/vnd.zbrush.pcx": { - "source": "iana", - "extensions": ["pcx"] - }, - "image/webp": { - "source": "iana", - "extensions": ["webp"] - }, - "image/wmf": { - "source": "iana", - "extensions": ["wmf"] - }, - "image/x-3ds": { - "source": "apache", - "extensions": ["3ds"] - }, - "image/x-adobe-dng": { - "extensions": ["dng"] - }, - "image/x-cmu-raster": { - "source": "apache", - "extensions": ["ras"] - }, - "image/x-cmx": { - "source": "apache", - "extensions": ["cmx"] - }, - "image/x-emf": { - "source": "iana" - }, - "image/x-freehand": { - "source": "apache", - "extensions": ["fh","fhc","fh4","fh5","fh7"] - }, - "image/x-icon": { - "source": "apache", - "compressible": true, - "extensions": ["ico"] - }, - "image/x-jng": { - "source": "nginx", - "extensions": ["jng"] - }, - "image/x-mrsid-image": { - "source": "apache", - "extensions": ["sid"] - }, - "image/x-ms-bmp": { - "source": "nginx", - "compressible": true, - "extensions": ["bmp"] - }, - "image/x-pcx": { - "source": "apache", - "extensions": ["pcx"] - }, - "image/x-pict": { - "source": "apache", - "extensions": ["pic","pct"] - }, - "image/x-portable-anymap": { - "source": "apache", - "extensions": ["pnm"] - }, - "image/x-portable-bitmap": { - "source": "apache", - "extensions": ["pbm"] - }, - "image/x-portable-graymap": { - "source": "apache", - "extensions": ["pgm"] - }, - "image/x-portable-pixmap": { - "source": "apache", - "extensions": ["ppm"] - }, - "image/x-rgb": { - "source": "apache", - "extensions": ["rgb"] - }, - "image/x-tga": { - "source": "apache", - "extensions": ["tga"] - }, - "image/x-wmf": { - "source": "iana" - }, - "image/x-xbitmap": { - "source": "apache", - "extensions": ["xbm"] - }, - "image/x-xcf": { - "compressible": false - }, - "image/x-xpixmap": { - "source": "apache", - "extensions": ["xpm"] - }, - "image/x-xwindowdump": { - "source": "apache", - "extensions": ["xwd"] - }, - "message/bhttp": { - "source": "iana" - }, - "message/cpim": { - "source": "iana" - }, - "message/delivery-status": { - "source": "iana" - }, - "message/disposition-notification": { - "source": "iana", - "extensions": [ - "disposition-notification" - ] - }, - "message/external-body": { - "source": "iana" - }, - "message/feedback-report": { - "source": "iana" - }, - "message/global": { - "source": "iana", - "extensions": ["u8msg"] - }, - "message/global-delivery-status": { - "source": "iana", - "extensions": ["u8dsn"] - }, - "message/global-disposition-notification": { - "source": "iana", - "extensions": ["u8mdn"] - }, - "message/global-headers": { - "source": "iana", - "extensions": ["u8hdr"] - }, - "message/http": { - "source": "iana", - "compressible": false - }, - "message/imdn+xml": { - "source": "iana", - "compressible": true - }, - "message/mls": { - "source": "iana" - }, - "message/news": { - "source": "apache" - }, - "message/ohttp-req": { - "source": "iana" - }, - "message/ohttp-res": { - "source": "iana" - }, - "message/partial": { - "source": "iana", - "compressible": false - }, - "message/rfc822": { - "source": "iana", - "compressible": true, - "extensions": ["eml","mime","mht","mhtml"] - }, - "message/s-http": { - "source": "apache" - }, - "message/sip": { - "source": "iana" - }, - "message/sipfrag": { - "source": "iana" - }, - "message/tracking-status": { - "source": "iana" - }, - "message/vnd.si.simp": { - "source": "apache" - }, - "message/vnd.wfa.wsc": { - "source": "iana", - "extensions": ["wsc"] - }, - "model/3mf": { - "source": "iana", - "extensions": ["3mf"] - }, - "model/e57": { - "source": "iana" - }, - "model/gltf+json": { - "source": "iana", - "compressible": true, - "extensions": ["gltf"] - }, - "model/gltf-binary": { - "source": "iana", - "compressible": true, - "extensions": ["glb"] - }, - "model/iges": { - "source": "iana", - "compressible": false, - "extensions": ["igs","iges"] - }, - "model/jt": { - "source": "iana", - "extensions": ["jt"] - }, - "model/mesh": { - "source": "iana", - "compressible": false, - "extensions": ["msh","mesh","silo"] - }, - "model/mtl": { - "source": "iana", - "extensions": ["mtl"] - }, - "model/obj": { - "source": "iana", - "extensions": ["obj"] - }, - "model/prc": { - "source": "iana", - "extensions": ["prc"] - }, - "model/step": { - "source": "iana", - "extensions": ["step","stp","stpnc","p21","210"] - }, - "model/step+xml": { - "source": "iana", - "compressible": true, - "extensions": ["stpx"] - }, - "model/step+zip": { - "source": "iana", - "compressible": false, - "extensions": ["stpz"] - }, - "model/step-xml+zip": { - "source": "iana", - "compressible": false, - "extensions": ["stpxz"] - }, - "model/stl": { - "source": "iana", - "extensions": ["stl"] - }, - "model/u3d": { - "source": "iana", - "extensions": ["u3d"] - }, - "model/vnd.bary": { - "source": "iana", - "extensions": ["bary"] - }, - "model/vnd.cld": { - "source": "iana", - "extensions": ["cld"] - }, - "model/vnd.collada+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dae"] - }, - "model/vnd.dwf": { - "source": "iana", - "extensions": ["dwf"] - }, - "model/vnd.flatland.3dml": { - "source": "iana" - }, - "model/vnd.gdl": { - "source": "iana", - "extensions": ["gdl"] - }, - "model/vnd.gs-gdl": { - "source": "apache" - }, - "model/vnd.gs.gdl": { - "source": "iana" - }, - "model/vnd.gtw": { - "source": "iana", - "extensions": ["gtw"] - }, - "model/vnd.moml+xml": { - "source": "iana", - "compressible": true - }, - "model/vnd.mts": { - "source": "iana", - "extensions": ["mts"] - }, - "model/vnd.opengex": { - "source": "iana", - "extensions": ["ogex"] - }, - "model/vnd.parasolid.transmit.binary": { - "source": "iana", - "extensions": ["x_b"] - }, - "model/vnd.parasolid.transmit.text": { - "source": "iana", - "extensions": ["x_t"] - }, - "model/vnd.pytha.pyox": { - "source": "iana", - "extensions": ["pyo","pyox"] - }, - "model/vnd.rosette.annotated-data-model": { - "source": "iana" - }, - "model/vnd.sap.vds": { - "source": "iana", - "extensions": ["vds"] - }, - "model/vnd.usda": { - "source": "iana", - "extensions": ["usda"] - }, - "model/vnd.usdz+zip": { - "source": "iana", - "compressible": false, - "extensions": ["usdz"] - }, - "model/vnd.valve.source.compiled-map": { - "source": "iana", - "extensions": ["bsp"] - }, - "model/vnd.vtu": { - "source": "iana", - "extensions": ["vtu"] - }, - "model/vrml": { - "source": "iana", - "compressible": false, - "extensions": ["wrl","vrml"] - }, - "model/x3d+binary": { - "source": "apache", - "compressible": false, - "extensions": ["x3db","x3dbz"] - }, - "model/x3d+fastinfoset": { - "source": "iana", - "extensions": ["x3db"] - }, - "model/x3d+vrml": { - "source": "apache", - "compressible": false, - "extensions": ["x3dv","x3dvz"] - }, - "model/x3d+xml": { - "source": "iana", - "compressible": true, - "extensions": ["x3d","x3dz"] - }, - "model/x3d-vrml": { - "source": "iana", - "extensions": ["x3dv"] - }, - "multipart/alternative": { - "source": "iana", - "compressible": false - }, - "multipart/appledouble": { - "source": "iana" - }, - "multipart/byteranges": { - "source": "iana" - }, - "multipart/digest": { - "source": "iana" - }, - "multipart/encrypted": { - "source": "iana", - "compressible": false - }, - "multipart/form-data": { - "source": "iana", - "compressible": false - }, - "multipart/header-set": { - "source": "iana" - }, - "multipart/mixed": { - "source": "iana" - }, - "multipart/multilingual": { - "source": "iana" - }, - "multipart/parallel": { - "source": "iana" - }, - "multipart/related": { - "source": "iana", - "compressible": false - }, - "multipart/report": { - "source": "iana" - }, - "multipart/signed": { - "source": "iana", - "compressible": false - }, - "multipart/vnd.bint.med-plus": { - "source": "iana" - }, - "multipart/voice-message": { - "source": "iana" - }, - "multipart/x-mixed-replace": { - "source": "iana" - }, - "text/1d-interleaved-parityfec": { - "source": "iana" - }, - "text/cache-manifest": { - "source": "iana", - "compressible": true, - "extensions": ["appcache","manifest"] - }, - "text/calendar": { - "source": "iana", - "extensions": ["ics","ifb"] - }, - "text/calender": { - "compressible": true - }, - "text/cmd": { - "compressible": true - }, - "text/coffeescript": { - "extensions": ["coffee","litcoffee"] - }, - "text/cql": { - "source": "iana" - }, - "text/cql-expression": { - "source": "iana" - }, - "text/cql-identifier": { - "source": "iana" - }, - "text/css": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["css"] - }, - "text/csv": { - "source": "iana", - "compressible": true, - "extensions": ["csv"] - }, - "text/csv-schema": { - "source": "iana" - }, - "text/directory": { - "source": "iana" - }, - "text/dns": { - "source": "iana" - }, - "text/ecmascript": { - "source": "apache" - }, - "text/encaprtp": { - "source": "iana" - }, - "text/enriched": { - "source": "iana" - }, - "text/fhirpath": { - "source": "iana" - }, - "text/flexfec": { - "source": "iana" - }, - "text/fwdred": { - "source": "iana" - }, - "text/gff3": { - "source": "iana" - }, - "text/grammar-ref-list": { - "source": "iana" - }, - "text/hl7v2": { - "source": "iana" - }, - "text/html": { - "source": "iana", - "compressible": true, - "extensions": ["html","htm","shtml"] - }, - "text/jade": { - "extensions": ["jade"] - }, - "text/javascript": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["js","mjs"] - }, - "text/jcr-cnd": { - "source": "iana" - }, - "text/jsx": { - "compressible": true, - "extensions": ["jsx"] - }, - "text/less": { - "compressible": true, - "extensions": ["less"] - }, - "text/markdown": { - "source": "iana", - "compressible": true, - "extensions": ["md","markdown"] - }, - "text/mathml": { - "source": "nginx", - "extensions": ["mml"] - }, - "text/mdx": { - "compressible": true, - "extensions": ["mdx"] - }, - "text/mizar": { - "source": "iana" - }, - "text/n3": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["n3"] - }, - "text/parameters": { - "source": "iana", - "charset": "UTF-8" - }, - "text/parityfec": { - "source": "iana" - }, - "text/plain": { - "source": "iana", - "compressible": true, - "extensions": ["txt","text","conf","def","list","log","in","ini"] - }, - "text/provenance-notation": { - "source": "iana", - "charset": "UTF-8" - }, - "text/prs.fallenstein.rst": { - "source": "iana" - }, - "text/prs.lines.tag": { - "source": "iana", - "extensions": ["dsc"] - }, - "text/prs.prop.logic": { - "source": "iana" - }, - "text/prs.texi": { - "source": "iana" - }, - "text/raptorfec": { - "source": "iana" - }, - "text/red": { - "source": "iana" - }, - "text/rfc822-headers": { - "source": "iana" - }, - "text/richtext": { - "source": "iana", - "compressible": true, - "extensions": ["rtx"] - }, - "text/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "text/rtp-enc-aescm128": { - "source": "iana" - }, - "text/rtploopback": { - "source": "iana" - }, - "text/rtx": { - "source": "iana" - }, - "text/sgml": { - "source": "iana", - "extensions": ["sgml","sgm"] - }, - "text/shaclc": { - "source": "iana" - }, - "text/shex": { - "source": "iana", - "extensions": ["shex"] - }, - "text/slim": { - "extensions": ["slim","slm"] - }, - "text/spdx": { - "source": "iana", - "extensions": ["spdx"] - }, - "text/strings": { - "source": "iana" - }, - "text/stylus": { - "extensions": ["stylus","styl"] - }, - "text/t140": { - "source": "iana" - }, - "text/tab-separated-values": { - "source": "iana", - "compressible": true, - "extensions": ["tsv"] - }, - "text/troff": { - "source": "iana", - "extensions": ["t","tr","roff","man","me","ms"] - }, - "text/turtle": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["ttl"] - }, - "text/ulpfec": { - "source": "iana" - }, - "text/uri-list": { - "source": "iana", - "compressible": true, - "extensions": ["uri","uris","urls"] - }, - "text/vcard": { - "source": "iana", - "compressible": true, - "extensions": ["vcard"] - }, - "text/vnd.a": { - "source": "iana" - }, - "text/vnd.abc": { - "source": "iana" - }, - "text/vnd.ascii-art": { - "source": "iana" - }, - "text/vnd.curl": { - "source": "iana", - "extensions": ["curl"] - }, - "text/vnd.curl.dcurl": { - "source": "apache", - "extensions": ["dcurl"] - }, - "text/vnd.curl.mcurl": { - "source": "apache", - "extensions": ["mcurl"] - }, - "text/vnd.curl.scurl": { - "source": "apache", - "extensions": ["scurl"] - }, - "text/vnd.debian.copyright": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.dmclientscript": { - "source": "iana" - }, - "text/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "text/vnd.esmertec.theme-descriptor": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.exchangeable": { - "source": "iana" - }, - "text/vnd.familysearch.gedcom": { - "source": "iana", - "extensions": ["ged"] - }, - "text/vnd.ficlab.flt": { - "source": "iana" - }, - "text/vnd.fly": { - "source": "iana", - "extensions": ["fly"] - }, - "text/vnd.fmi.flexstor": { - "source": "iana", - "extensions": ["flx"] - }, - "text/vnd.gml": { - "source": "iana" - }, - "text/vnd.graphviz": { - "source": "iana", - "extensions": ["gv"] - }, - "text/vnd.hans": { - "source": "iana" - }, - "text/vnd.hgl": { - "source": "iana" - }, - "text/vnd.in3d.3dml": { - "source": "iana", - "extensions": ["3dml"] - }, - "text/vnd.in3d.spot": { - "source": "iana", - "extensions": ["spot"] - }, - "text/vnd.iptc.newsml": { - "source": "iana" - }, - "text/vnd.iptc.nitf": { - "source": "iana" - }, - "text/vnd.latex-z": { - "source": "iana" - }, - "text/vnd.motorola.reflex": { - "source": "iana" - }, - "text/vnd.ms-mediapackage": { - "source": "iana" - }, - "text/vnd.net2phone.commcenter.command": { - "source": "iana" - }, - "text/vnd.radisys.msml-basic-layout": { - "source": "iana" - }, - "text/vnd.senx.warpscript": { - "source": "iana" - }, - "text/vnd.si.uricatalogue": { - "source": "apache" - }, - "text/vnd.sosi": { - "source": "iana" - }, - "text/vnd.sun.j2me.app-descriptor": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["jad"] - }, - "text/vnd.trolltech.linguist": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.vcf": { - "source": "iana" - }, - "text/vnd.wap.si": { - "source": "iana" - }, - "text/vnd.wap.sl": { - "source": "iana" - }, - "text/vnd.wap.wml": { - "source": "iana", - "extensions": ["wml"] - }, - "text/vnd.wap.wmlscript": { - "source": "iana", - "extensions": ["wmls"] - }, - "text/vnd.zoo.kcl": { - "source": "iana" - }, - "text/vtt": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["vtt"] - }, - "text/wgsl": { - "source": "iana", - "extensions": ["wgsl"] - }, - "text/x-asm": { - "source": "apache", - "extensions": ["s","asm"] - }, - "text/x-c": { - "source": "apache", - "extensions": ["c","cc","cxx","cpp","h","hh","dic"] - }, - "text/x-component": { - "source": "nginx", - "extensions": ["htc"] - }, - "text/x-fortran": { - "source": "apache", - "extensions": ["f","for","f77","f90"] - }, - "text/x-gwt-rpc": { - "compressible": true - }, - "text/x-handlebars-template": { - "extensions": ["hbs"] - }, - "text/x-java-source": { - "source": "apache", - "extensions": ["java"] - }, - "text/x-jquery-tmpl": { - "compressible": true - }, - "text/x-lua": { - "extensions": ["lua"] - }, - "text/x-markdown": { - "compressible": true, - "extensions": ["mkd"] - }, - "text/x-nfo": { - "source": "apache", - "extensions": ["nfo"] - }, - "text/x-opml": { - "source": "apache", - "extensions": ["opml"] - }, - "text/x-org": { - "compressible": true, - "extensions": ["org"] - }, - "text/x-pascal": { - "source": "apache", - "extensions": ["p","pas"] - }, - "text/x-processing": { - "compressible": true, - "extensions": ["pde"] - }, - "text/x-sass": { - "extensions": ["sass"] - }, - "text/x-scss": { - "extensions": ["scss"] - }, - "text/x-setext": { - "source": "apache", - "extensions": ["etx"] - }, - "text/x-sfv": { - "source": "apache", - "extensions": ["sfv"] - }, - "text/x-suse-ymp": { - "compressible": true, - "extensions": ["ymp"] - }, - "text/x-uuencode": { - "source": "apache", - "extensions": ["uu"] - }, - "text/x-vcalendar": { - "source": "apache", - "extensions": ["vcs"] - }, - "text/x-vcard": { - "source": "apache", - "extensions": ["vcf"] - }, - "text/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml"] - }, - "text/xml-external-parsed-entity": { - "source": "iana" - }, - "text/yaml": { - "compressible": true, - "extensions": ["yaml","yml"] - }, - "video/1d-interleaved-parityfec": { - "source": "iana" - }, - "video/3gpp": { - "source": "iana", - "extensions": ["3gp","3gpp"] - }, - "video/3gpp-tt": { - "source": "iana" - }, - "video/3gpp2": { - "source": "iana", - "extensions": ["3g2"] - }, - "video/av1": { - "source": "iana" - }, - "video/bmpeg": { - "source": "iana" - }, - "video/bt656": { - "source": "iana" - }, - "video/celb": { - "source": "iana" - }, - "video/dv": { - "source": "iana" - }, - "video/encaprtp": { - "source": "iana" - }, - "video/evc": { - "source": "iana" - }, - "video/ffv1": { - "source": "iana" - }, - "video/flexfec": { - "source": "iana" - }, - "video/h261": { - "source": "iana", - "extensions": ["h261"] - }, - "video/h263": { - "source": "iana", - "extensions": ["h263"] - }, - "video/h263-1998": { - "source": "iana" - }, - "video/h263-2000": { - "source": "iana" - }, - "video/h264": { - "source": "iana", - "extensions": ["h264"] - }, - "video/h264-rcdo": { - "source": "iana" - }, - "video/h264-svc": { - "source": "iana" - }, - "video/h265": { - "source": "iana" - }, - "video/h266": { - "source": "iana" - }, - "video/iso.segment": { - "source": "iana", - "extensions": ["m4s"] - }, - "video/jpeg": { - "source": "iana", - "extensions": ["jpgv"] - }, - "video/jpeg2000": { - "source": "iana" - }, - "video/jpm": { - "source": "apache", - "extensions": ["jpm","jpgm"] - }, - "video/jxsv": { - "source": "iana" - }, - "video/lottie+json": { - "source": "iana", - "compressible": true - }, - "video/matroska": { - "source": "iana" - }, - "video/matroska-3d": { - "source": "iana" - }, - "video/mj2": { - "source": "iana", - "extensions": ["mj2","mjp2"] - }, - "video/mp1s": { - "source": "iana" - }, - "video/mp2p": { - "source": "iana" - }, - "video/mp2t": { - "source": "iana", - "extensions": ["ts","m2t","m2ts","mts"] - }, - "video/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["mp4","mp4v","mpg4"] - }, - "video/mp4v-es": { - "source": "iana" - }, - "video/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpeg","mpg","mpe","m1v","m2v"] - }, - "video/mpeg4-generic": { - "source": "iana" - }, - "video/mpv": { - "source": "iana" - }, - "video/nv": { - "source": "iana" - }, - "video/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogv"] - }, - "video/parityfec": { - "source": "iana" - }, - "video/pointer": { - "source": "iana" - }, - "video/quicktime": { - "source": "iana", - "compressible": false, - "extensions": ["qt","mov"] - }, - "video/raptorfec": { - "source": "iana" - }, - "video/raw": { - "source": "iana" - }, - "video/rtp-enc-aescm128": { - "source": "iana" - }, - "video/rtploopback": { - "source": "iana" - }, - "video/rtx": { - "source": "iana" - }, - "video/scip": { - "source": "iana" - }, - "video/smpte291": { - "source": "iana" - }, - "video/smpte292m": { - "source": "iana" - }, - "video/ulpfec": { - "source": "iana" - }, - "video/vc1": { - "source": "iana" - }, - "video/vc2": { - "source": "iana" - }, - "video/vnd.cctv": { - "source": "iana" - }, - "video/vnd.dece.hd": { - "source": "iana", - "extensions": ["uvh","uvvh"] - }, - "video/vnd.dece.mobile": { - "source": "iana", - "extensions": ["uvm","uvvm"] - }, - "video/vnd.dece.mp4": { - "source": "iana" - }, - "video/vnd.dece.pd": { - "source": "iana", - "extensions": ["uvp","uvvp"] - }, - "video/vnd.dece.sd": { - "source": "iana", - "extensions": ["uvs","uvvs"] - }, - "video/vnd.dece.video": { - "source": "iana", - "extensions": ["uvv","uvvv"] - }, - "video/vnd.directv.mpeg": { - "source": "iana" - }, - "video/vnd.directv.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dlna.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dvb.file": { - "source": "iana", - "extensions": ["dvb"] - }, - "video/vnd.fvt": { - "source": "iana", - "extensions": ["fvt"] - }, - "video/vnd.hns.video": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsavc": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsmpeg2": { - "source": "iana" - }, - "video/vnd.motorola.video": { - "source": "iana" - }, - "video/vnd.motorola.videop": { - "source": "iana" - }, - "video/vnd.mpegurl": { - "source": "iana", - "extensions": ["mxu","m4u"] - }, - "video/vnd.ms-playready.media.pyv": { - "source": "iana", - "extensions": ["pyv"] - }, - "video/vnd.nokia.interleaved-multimedia": { - "source": "iana" - }, - "video/vnd.nokia.mp4vr": { - "source": "iana" - }, - "video/vnd.nokia.videovoip": { - "source": "iana" - }, - "video/vnd.objectvideo": { - "source": "iana" - }, - "video/vnd.planar": { - "source": "iana" - }, - "video/vnd.radgamettools.bink": { - "source": "iana" - }, - "video/vnd.radgamettools.smacker": { - "source": "apache" - }, - "video/vnd.sealed.mpeg1": { - "source": "iana" - }, - "video/vnd.sealed.mpeg4": { - "source": "iana" - }, - "video/vnd.sealed.swf": { - "source": "iana" - }, - "video/vnd.sealedmedia.softseal.mov": { - "source": "iana" - }, - "video/vnd.uvvu.mp4": { - "source": "iana", - "extensions": ["uvu","uvvu"] - }, - "video/vnd.vivo": { - "source": "iana", - "extensions": ["viv"] - }, - "video/vnd.youtube.yt": { - "source": "iana" - }, - "video/vp8": { - "source": "iana" - }, - "video/vp9": { - "source": "iana" - }, - "video/webm": { - "source": "apache", - "compressible": false, - "extensions": ["webm"] - }, - "video/x-f4v": { - "source": "apache", - "extensions": ["f4v"] - }, - "video/x-fli": { - "source": "apache", - "extensions": ["fli"] - }, - "video/x-flv": { - "source": "apache", - "compressible": false, - "extensions": ["flv"] - }, - "video/x-m4v": { - "source": "apache", - "extensions": ["m4v"] - }, - "video/x-matroska": { - "source": "apache", - "compressible": false, - "extensions": ["mkv","mk3d","mks"] - }, - "video/x-mng": { - "source": "apache", - "extensions": ["mng"] - }, - "video/x-ms-asf": { - "source": "apache", - "extensions": ["asf","asx"] - }, - "video/x-ms-vob": { - "source": "apache", - "extensions": ["vob"] - }, - "video/x-ms-wm": { - "source": "apache", - "extensions": ["wm"] - }, - "video/x-ms-wmv": { - "source": "apache", - "compressible": false, - "extensions": ["wmv"] - }, - "video/x-ms-wmx": { - "source": "apache", - "extensions": ["wmx"] - }, - "video/x-ms-wvx": { - "source": "apache", - "extensions": ["wvx"] - }, - "video/x-msvideo": { - "source": "apache", - "extensions": ["avi"] - }, - "video/x-sgi-movie": { - "source": "apache", - "extensions": ["movie"] - }, - "video/x-smv": { - "source": "apache", - "extensions": ["smv"] - }, - "x-conference/x-cooltalk": { - "source": "apache", - "extensions": ["ice"] - }, - "x-shader/x-fragment": { - "compressible": true - }, - "x-shader/x-vertex": { - "compressible": true - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/index.js deleted file mode 100644 index ec2be30..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/index.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module exports. - */ - -module.exports = require('./db.json') diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/package.json deleted file mode 100644 index 289a370..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "mime-db", - "description": "Media Type Database", - "version": "1.54.0", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)", - "Robert Kieffer (http://github.com/broofa)" - ], - "license": "MIT", - "keywords": [ - "mime", - "db", - "type", - "types", - "database", - "charset", - "charsets" - ], - "repository": "jshttp/mime-db", - "devDependencies": { - "csv-parse": "4.16.3", - "eslint": "8.32.0", - "eslint-config-standard": "15.0.1", - "eslint-plugin-import": "2.27.5", - "eslint-plugin-markdown": "3.0.0", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "6.1.1", - "eslint-plugin-standard": "4.1.0", - "media-typer": "1.1.0", - "mocha": "10.2.0", - "nyc": "15.1.0", - "stream-to-array": "2.3.0", - "undici": "7.1.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "README.md", - "db.json", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "build": "node scripts/build", - "fetch": "node scripts/fetch-apache && node scripts/fetch-iana && node scripts/fetch-nginx", - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks test/", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "update": "npm run fetch && npm run build", - "version": "node scripts/version-history.js && git add HISTORY.md" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/HISTORY.md deleted file mode 100644 index 9ba2dc0..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/HISTORY.md +++ /dev/null @@ -1,428 +0,0 @@ -3.0.2 / 2025-11-20 -=================== - -* Fix: update JSDoc to reflect that functions return only `false` or `string`, not `boolean|string`. -* Fix: refined mime-score logic so `.mp4` resolves correctly -* Fix:reflect the current Node.js version supported to ≥ 18 (See 3.0.0 for more details). - -3.0.1 / 2025-03-26 -=================== - -* deps: mime-db@1.54.0 - -3.0.0 / 2024-08-31 -=================== - -* Drop support for node <18 -* deps: mime-db@1.53.0 -* resolve extension conflicts with mime-score (#119) - * asc -> application/pgp-signature is now application/pgp-keys - * mpp -> application/vnd.ms-project is now application/dash-patch+xml - * ac -> application/vnd.nokia.n-gage.ac+xml is now application/pkix-attr-cert - * bdoc -> application/x-bdoc is now application/bdoc - * wmz -> application/x-msmetafile is now application/x-ms-wmz - * xsl -> application/xslt+xml is now application/xml - * wav -> audio/wave is now audio/wav - * rtf -> text/rtf is now application/rtf - * xml -> text/xml is now application/xml - * mp4 -> video/mp4 is now application/mp4 - * mpg4 -> video/mp4 is now application/mp4 - - -2.1.35 / 2022-03-12 -=================== - - * deps: mime-db@1.52.0 - - Add extensions from IANA for more `image/*` types - - Add extension `.asc` to `application/pgp-keys` - - Add extensions to various XML types - - Add new upstream MIME types - -2.1.34 / 2021-11-08 -=================== - - * deps: mime-db@1.51.0 - - Add new upstream MIME types - -2.1.33 / 2021-10-01 -=================== - - * deps: mime-db@1.50.0 - - Add deprecated iWorks mime types and extensions - - Add new upstream MIME types - -2.1.32 / 2021-07-27 -=================== - - * deps: mime-db@1.49.0 - - Add extension `.trig` to `application/trig` - - Add new upstream MIME types - -2.1.31 / 2021-06-01 -=================== - - * deps: mime-db@1.48.0 - - Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - - Add new upstream MIME types - -2.1.30 / 2021-04-02 -=================== - - * deps: mime-db@1.47.0 - - Add extension `.amr` to `audio/amr` - - Remove ambigious extensions from IANA for `application/*+xml` types - - Update primary extension to `.es` for `application/ecmascript` - -2.1.29 / 2021-02-17 -=================== - - * deps: mime-db@1.46.0 - - Add extension `.amr` to `audio/amr` - - Add extension `.m4s` to `video/iso.segment` - - Add extension `.opus` to `audio/ogg` - - Add new upstream MIME types - -2.1.28 / 2021-01-01 -=================== - - * deps: mime-db@1.45.0 - - Add `application/ubjson` with extension `.ubj` - - Add `image/avif` with extension `.avif` - - Add `image/ktx2` with extension `.ktx2` - - Add extension `.dbf` to `application/vnd.dbf` - - Add extension `.rar` to `application/vnd.rar` - - Add extension `.td` to `application/urc-targetdesc+xml` - - Add new upstream MIME types - - Fix extension of `application/vnd.apple.keynote` to be `.key` - -2.1.27 / 2020-04-23 -=================== - - * deps: mime-db@1.44.0 - - Add charsets from IANA - - Add extension `.cjs` to `application/node` - - Add new upstream MIME types - -2.1.26 / 2020-01-05 -=================== - - * deps: mime-db@1.43.0 - - Add `application/x-keepass2` with extension `.kdbx` - - Add extension `.mxmf` to `audio/mobile-xmf` - - Add extensions from IANA for `application/*+xml` types - - Add new upstream MIME types - -2.1.25 / 2019-11-12 -=================== - - * deps: mime-db@1.42.0 - - Add new upstream MIME types - - Add `application/toml` with extension `.toml` - - Add `image/vnd.ms-dds` with extension `.dds` - -2.1.24 / 2019-04-20 -=================== - - * deps: mime-db@1.40.0 - - Add extensions from IANA for `model/*` types - - Add `text/mdx` with extension `.mdx` - -2.1.23 / 2019-04-17 -=================== - - * deps: mime-db@~1.39.0 - - Add extensions `.siv` and `.sieve` to `application/sieve` - - Add new upstream MIME types - -2.1.22 / 2019-02-14 -=================== - - * deps: mime-db@~1.38.0 - - Add extension `.nq` to `application/n-quads` - - Add extension `.nt` to `application/n-triples` - - Add new upstream MIME types - -2.1.21 / 2018-10-19 -=================== - - * deps: mime-db@~1.37.0 - - Add extensions to HEIC image types - - Add new upstream MIME types - -2.1.20 / 2018-08-26 -=================== - - * deps: mime-db@~1.36.0 - - Add Apple file extensions from IANA - - Add extensions from IANA for `image/*` types - - Add new upstream MIME types - -2.1.19 / 2018-07-17 -=================== - - * deps: mime-db@~1.35.0 - - Add extension `.csl` to `application/vnd.citationstyles.style+xml` - - Add extension `.es` to `application/ecmascript` - - Add extension `.owl` to `application/rdf+xml` - - Add new upstream MIME types - - Add UTF-8 as default charset for `text/turtle` - -2.1.18 / 2018-02-16 -=================== - - * deps: mime-db@~1.33.0 - - Add `application/raml+yaml` with extension `.raml` - - Add `application/wasm` with extension `.wasm` - - Add `text/shex` with extension `.shex` - - Add extensions for JPEG-2000 images - - Add extensions from IANA for `message/*` types - - Add new upstream MIME types - - Update font MIME types - - Update `text/hjson` to registered `application/hjson` - -2.1.17 / 2017-09-01 -=================== - - * deps: mime-db@~1.30.0 - - Add `application/vnd.ms-outlook` - - Add `application/x-arj` - - Add extension `.mjs` to `application/javascript` - - Add glTF types and extensions - - Add new upstream MIME types - - Add `text/x-org` - - Add VirtualBox MIME types - - Fix `source` records for `video/*` types that are IANA - - Update `font/opentype` to registered `font/otf` - -2.1.16 / 2017-07-24 -=================== - - * deps: mime-db@~1.29.0 - - Add `application/fido.trusted-apps+json` - - Add extension `.wadl` to `application/vnd.sun.wadl+xml` - - Add extension `.gz` to `application/gzip` - - Add new upstream MIME types - - Update extensions `.md` and `.markdown` to be `text/markdown` - -2.1.15 / 2017-03-23 -=================== - - * deps: mime-db@~1.27.0 - - Add new mime types - - Add `image/apng` - -2.1.14 / 2017-01-14 -=================== - - * deps: mime-db@~1.26.0 - - Add new mime types - -2.1.13 / 2016-11-18 -=================== - - * deps: mime-db@~1.25.0 - - Add new mime types - -2.1.12 / 2016-09-18 -=================== - - * deps: mime-db@~1.24.0 - - Add new mime types - - Add `audio/mp3` - -2.1.11 / 2016-05-01 -=================== - - * deps: mime-db@~1.23.0 - - Add new mime types - -2.1.10 / 2016-02-15 -=================== - - * deps: mime-db@~1.22.0 - - Add new mime types - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - -2.1.9 / 2016-01-06 -================== - - * deps: mime-db@~1.21.0 - - Add new mime types - -2.1.8 / 2015-11-30 -================== - - * deps: mime-db@~1.20.0 - - Add new mime types - -2.1.7 / 2015-09-20 -================== - - * deps: mime-db@~1.19.0 - - Add new mime types - -2.1.6 / 2015-09-03 -================== - - * deps: mime-db@~1.18.0 - - Add new mime types - -2.1.5 / 2015-08-20 -================== - - * deps: mime-db@~1.17.0 - - Add new mime types - -2.1.4 / 2015-07-30 -================== - - * deps: mime-db@~1.16.0 - - Add new mime types - -2.1.3 / 2015-07-13 -================== - - * deps: mime-db@~1.15.0 - - Add new mime types - -2.1.2 / 2015-06-25 -================== - - * deps: mime-db@~1.14.0 - - Add new mime types - -2.1.1 / 2015-06-08 -================== - - * perf: fix deopt during mapping - -2.1.0 / 2015-06-07 -================== - - * Fix incorrectly treating extension-less file name as extension - - i.e. `'path/to/json'` will no longer return `application/json` - * Fix `.charset(type)` to accept parameters - * Fix `.charset(type)` to match case-insensitive - * Improve generation of extension to MIME mapping - * Refactor internals for readability and no argument reassignment - * Prefer `application/*` MIME types from the same source - * Prefer any type over `application/octet-stream` - * deps: mime-db@~1.13.0 - - Add nginx as a source - - Add new mime types - -2.0.14 / 2015-06-06 -=================== - - * deps: mime-db@~1.12.0 - - Add new mime types - -2.0.13 / 2015-05-31 -=================== - - * deps: mime-db@~1.11.0 - - Add new mime types - -2.0.12 / 2015-05-19 -=================== - - * deps: mime-db@~1.10.0 - - Add new mime types - -2.0.11 / 2015-05-05 -=================== - - * deps: mime-db@~1.9.1 - - Add new mime types - -2.0.10 / 2015-03-13 -=================== - - * deps: mime-db@~1.8.0 - - Add new mime types - -2.0.9 / 2015-02-09 -================== - - * deps: mime-db@~1.7.0 - - Add new mime types - - Community extensions ownership transferred from `node-mime` - -2.0.8 / 2015-01-29 -================== - - * deps: mime-db@~1.6.0 - - Add new mime types - -2.0.7 / 2014-12-30 -================== - - * deps: mime-db@~1.5.0 - - Add new mime types - - Fix various invalid MIME type entries - -2.0.6 / 2014-12-30 -================== - - * deps: mime-db@~1.4.0 - - Add new mime types - - Fix various invalid MIME type entries - - Remove example template MIME types - -2.0.5 / 2014-12-29 -================== - - * deps: mime-db@~1.3.1 - - Fix missing extensions - -2.0.4 / 2014-12-10 -================== - - * deps: mime-db@~1.3.0 - - Add new mime types - -2.0.3 / 2014-11-09 -================== - - * deps: mime-db@~1.2.0 - - Add new mime types - -2.0.2 / 2014-09-28 -================== - - * deps: mime-db@~1.1.0 - - Add new mime types - - Update charsets - -2.0.1 / 2014-09-07 -================== - - * Support Node.js 0.6 - -2.0.0 / 2014-09-02 -================== - - * Use `mime-db` - * Remove `.define()` - -1.0.2 / 2014-08-04 -================== - - * Set charset=utf-8 for `text/javascript` - -1.0.1 / 2014-06-24 -================== - - * Add `text/jsx` type - -1.0.0 / 2014-05-12 -================== - - * Return `false` for unknown types - * Set charset=utf-8 for `application/json` - -0.1.0 / 2014-05-02 -================== - - * Initial release diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/LICENSE deleted file mode 100644 index 0616607..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/README.md deleted file mode 100644 index 222d2b5..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# mime-types - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -The ultimate javascript content-type utility. - -Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except: - -- __No fallbacks.__ Instead of naively returning the first available type, - `mime-types` simply returns `false`, so do - `var type = mime.lookup('unrecognized') || 'application/octet-stream'`. -- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`. -- No `.define()` functionality -- Bug fixes for `.lookup(path)` - -Otherwise, the API is compatible with `mime` 1.x. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install mime-types -``` - -## Note on MIME Type Data and Semver - -This package considers the programmatic api as the semver compatibility. Additionally, the package which provides the MIME data -for this package (`mime-db`) *also* considers it's programmatic api as the semver contract. This means the MIME type resolution is *not* considered -in the semver bumps. - -In the past the version of `mime-db` was pinned to give two decision points when adopting MIME data changes. This is no longer true. We still update the -`mime-db` package here as a `minor` release when necessary, but will use a `^` range going forward. This means that if you want to pin your `mime-db` data -you will need to do it in your application. While this expectation was not set in docs until now, it is how the pacakge operated, so we do not feel this is -a breaking change. - -If you wish to pin your `mime-db` version you can do that with overrides via your package manager of choice. See their documentation for how to correctly configure that. - -## Adding Types - -All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db), -so open a PR there if you'd like to add mime types. - -## API - -```js -var mime = require('mime-types') -``` - -All functions return `false` if input is invalid or not found. - -### mime.lookup(path) - -Lookup the content-type associated with a file. - -```js -mime.lookup('json') // 'application/json' -mime.lookup('.md') // 'text/markdown' -mime.lookup('file.html') // 'text/html' -mime.lookup('folder/file.js') // 'application/javascript' -mime.lookup('folder/.htaccess') // false - -mime.lookup('cats') // false -``` - -### mime.contentType(type) - -Create a full content-type header given a content-type or extension. -When given an extension, `mime.lookup` is used to get the matching -content-type, otherwise the given content-type is used. Then if the -content-type does not already have a `charset` parameter, `mime.charset` -is used to get the default charset and add to the returned content-type. - -```js -mime.contentType('markdown') // 'text/x-markdown; charset=utf-8' -mime.contentType('file.json') // 'application/json; charset=utf-8' -mime.contentType('text/html') // 'text/html; charset=utf-8' -mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1' - -// from a full path -mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8' -``` - -### mime.extension(type) - -Get the default extension for a content-type. - -```js -mime.extension('application/octet-stream') // 'bin' -``` - -### mime.charset(type) - -Lookup the implied default charset of a content-type. - -```js -mime.charset('text/markdown') // 'UTF-8' -``` - -### var type = mime.types[extension] - -A map of content-types by extension. - -### [extensions...] = mime.extensions[type] - -A map of extensions by content-type. - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/jshttp/mime-types/master?label=ci -[ci-url]: https://github.com/jshttp/mime-types/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master -[node-version-image]: https://badgen.net/npm/node/mime-types -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-types -[npm-url]: https://npmjs.org/package/mime-types -[npm-version-image]: https://badgen.net/npm/v/mime-types diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/index.js deleted file mode 100644 index 9725ddf..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/index.js +++ /dev/null @@ -1,211 +0,0 @@ -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var db = require('mime-db') -var extname = require('path').extname -var mimeScore = require('./mimeScore') - -/** - * Module variables. - * @private - */ - -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i - -/** - * Module exports. - * @public - */ - -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) -exports._extensionConflicts = [] - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - -/** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {false|string} - */ - -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } - - return false -} - -/** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {false|string} - */ - -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 ? exports.lookup(str) : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - -/** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {false|string} - */ - -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] - - if (!exts || !exts.length) { - return false - } - - return exts[0] -} - -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {false|string} - */ - -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } - - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .slice(1) - - if (!extension) { - return false - } - - return exports.types[extension] || false -} - -/** - * Populate the extensions and types maps. - * @private - */ - -function populateMaps (extensions, types) { - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - - if (!exts || !exts.length) { - return - } - - // mime -> extensions - extensions[type] = exts - - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] - types[extension] = _preferredType(extension, types[extension], type) - - // DELETE (eventually): Capture extension->type maps that change as a - // result of switching to mime-score. This is just to help make reviewing - // PR #119 easier, and can be removed once that PR is approved. - const legacyType = _preferredTypeLegacy( - extension, - types[extension], - type - ) - if (legacyType !== types[extension]) { - exports._extensionConflicts.push([extension, legacyType, types[extension]]) - } - } - }) -} - -// Resolve type conflict using mime-score -function _preferredType (ext, type0, type1) { - var score0 = type0 ? mimeScore(type0, db[type0].source) : 0 - var score1 = type1 ? mimeScore(type1, db[type1].source) : 0 - - return score0 > score1 ? type0 : type1 -} - -// Resolve type conflict using pre-mime-score logic -function _preferredTypeLegacy (ext, type0, type1) { - var SOURCE_RANK = ['nginx', 'apache', undefined, 'iana'] - - var score0 = type0 ? SOURCE_RANK.indexOf(db[type0].source) : 0 - var score1 = type1 ? SOURCE_RANK.indexOf(db[type1].source) : 0 - - if ( - exports.types[extension] !== 'application/octet-stream' && - (score0 > score1 || - (score0 === score1 && - exports.types[extension]?.slice(0, 12) === 'application/')) - ) { - return type0 - } - - return score0 > score1 ? type0 : type1 -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/mimeScore.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/mimeScore.js deleted file mode 100644 index fc2e665..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/mimeScore.js +++ /dev/null @@ -1,57 +0,0 @@ -// 'mime-score' back-ported to CommonJS - -// Score RFC facets (see https://tools.ietf.org/html/rfc6838#section-3) -var FACET_SCORES = { - 'prs.': 100, - 'x-': 200, - 'x.': 300, - 'vnd.': 400, - default: 900 -} - -// Score mime source (Logic originally from `jshttp/mime-types` module) -var SOURCE_SCORES = { - nginx: 10, - apache: 20, - iana: 40, - default: 30 // definitions added by `jshttp/mime-db` project? -} - -var TYPE_SCORES = { - // prefer application/xml over text/xml - // prefer application/rtf over text/rtf - application: 1, - - // prefer font/woff over application/font-woff - font: 2, - - // prefer video/mp4 over audio/mp4 over application/mp4 - // See https://www.rfc-editor.org/rfc/rfc4337.html#section-2 - audio: 2, - video: 3, - - default: 0 -} - -/** - * Get each component of the score for a mime type. The sum of these is the - * total score. The higher the score, the more "official" the type. - */ -module.exports = function mimeScore (mimeType, source = 'default') { - if (mimeType === 'application/octet-stream') { - return 0 - } - - const [type, subtype] = mimeType.split('/') - - const facet = subtype.replace(/(\.|x-).*/, '$1') - - const facetScore = FACET_SCORES[facet] || FACET_SCORES.default - const sourceScore = SOURCE_SCORES[source] || SOURCE_SCORES.default - const typeScore = TYPE_SCORES[type] || TYPE_SCORES.default - - // All else being equal prefer shorter types - const lengthScore = 1 - mimeType.length / 100 - - return facetScore + sourceScore + typeScore + lengthScore -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/package.json deleted file mode 100644 index 6c58c27..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "mime-types", - "description": "The ultimate javascript content-type utility.", - "version": "3.0.2", - "contributors": [ - "Douglas Christopher Wilson ", - "Jeremiah Senkpiel (https://searchbeam.jit.su)", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "keywords": [ - "mime", - "types" - ], - "repository": "jshttp/mime-types", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "dependencies": { - "mime-db": "^1.54.0" - }, - "devDependencies": { - "eslint": "8.33.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.32.0", - "eslint-plugin-markdown": "3.0.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "6.6.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "10.8.2", - "nyc": "15.1.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js", - "mimeScore.js" - ], - "engines": { - "node": ">=18" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec test/test.js", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/index.js deleted file mode 100644 index ea734fb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/index.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function (val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/license.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/license.md deleted file mode 100644 index fa5d39b..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/license.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2020 Vercel, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/package.json deleted file mode 100644 index 4997189..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "ms", - "version": "2.1.3", - "description": "Tiny millisecond conversion utility", - "repository": "vercel/ms", - "main": "./index", - "files": [ - "index.js" - ], - "scripts": { - "precommit": "lint-staged", - "lint": "eslint lib/* bin/*", - "test": "mocha tests.js" - }, - "eslintConfig": { - "extends": "eslint:recommended", - "env": { - "node": true, - "es6": true - } - }, - "lint-staged": { - "*.js": [ - "npm run lint", - "prettier --single-quote --write", - "git add" - ] - }, - "license": "MIT", - "devDependencies": { - "eslint": "4.18.2", - "expect.js": "0.3.1", - "husky": "0.14.3", - "lint-staged": "5.0.0", - "mocha": "4.0.1", - "prettier": "2.0.5" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/readme.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/readme.md deleted file mode 100644 index 0fc1abb..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/ms/readme.md +++ /dev/null @@ -1,59 +0,0 @@ -# ms - -![CI](https://github.com/vercel/ms/workflows/CI/badge.svg) - -Use this package to easily convert various time formats to milliseconds. - -## Examples - -```js -ms('2 days') // 172800000 -ms('1d') // 86400000 -ms('10h') // 36000000 -ms('2.5 hrs') // 9000000 -ms('2h') // 7200000 -ms('1m') // 60000 -ms('5s') // 5000 -ms('1y') // 31557600000 -ms('100') // 100 -ms('-3 days') // -259200000 -ms('-1h') // -3600000 -ms('-200') // -200 -``` - -### Convert from Milliseconds - -```js -ms(60000) // "1m" -ms(2 * 60000) // "2m" -ms(-3 * 60000) // "-3m" -ms(ms('10 hours')) // "10h" -``` - -### Time Format Written-Out - -```js -ms(60000, { long: true }) // "1 minute" -ms(2 * 60000, { long: true }) // "2 minutes" -ms(-3 * 60000, { long: true }) // "-3 minutes" -ms(ms('10 hours'), { long: true }) // "10 hours" -``` - -## Features - -- Works both in [Node.js](https://nodejs.org) and in the browser -- If a number is supplied to `ms`, a string with a unit is returned -- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`) -- If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned - -## Related Packages - -- [ms.macro](https://github.com/knpwrs/ms.macro) - Run `ms` as a macro at build-time. - -## Caught a Bug? - -1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device -2. Link the package to the global module directory: `npm link` -3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, Node.js will now use your clone of ms! - -As always, you can run the tests using: `npm test` diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md deleted file mode 100644 index 63d537d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md +++ /dev/null @@ -1,114 +0,0 @@ -1.0.0 / 2024-08-31 -================== - - * Drop support for node <18 - * Added an option preferred encodings array #59 - -0.6.3 / 2022-01-22 -================== - - * Revert "Lazy-load modules from main entry point" - -0.6.2 / 2019-04-29 -================== - - * Fix sorting charset, encoding, and language with extra parameters - -0.6.1 / 2016-05-02 -================== - - * perf: improve `Accept` parsing speed - * perf: improve `Accept-Charset` parsing speed - * perf: improve `Accept-Encoding` parsing speed - * perf: improve `Accept-Language` parsing speed - -0.6.0 / 2015-09-29 -================== - - * Fix including type extensions in parameters in `Accept` parsing - * Fix parsing `Accept` parameters with quoted equals - * Fix parsing `Accept` parameters with quoted semicolons - * Lazy-load modules from main entry point - * perf: delay type concatenation until needed - * perf: enable strict mode - * perf: hoist regular expressions - * perf: remove closures getting spec properties - * perf: remove a closure from media type parsing - * perf: remove property delete from media type parsing - -0.5.3 / 2015-05-10 -================== - - * Fix media type parameter matching to be case-insensitive - -0.5.2 / 2015-05-06 -================== - - * Fix comparing media types with quoted values - * Fix splitting media types with quoted commas - -0.5.1 / 2015-02-14 -================== - - * Fix preference sorting to be stable for long acceptable lists - -0.5.0 / 2014-12-18 -================== - - * Fix list return order when large accepted list - * Fix missing identity encoding when q=0 exists - * Remove dynamic building of Negotiator class - -0.4.9 / 2014-10-14 -================== - - * Fix error when media type has invalid parameter - -0.4.8 / 2014-09-28 -================== - - * Fix all negotiations to be case-insensitive - * Stable sort preferences of same quality according to client order - * Support Node.js 0.6 - -0.4.7 / 2014-06-24 -================== - - * Handle invalid provided languages - * Handle invalid provided media types - -0.4.6 / 2014-06-11 -================== - - * Order by specificity when quality is the same - -0.4.5 / 2014-05-29 -================== - - * Fix regression in empty header handling - -0.4.4 / 2014-05-29 -================== - - * Fix behaviors when headers are not present - -0.4.3 / 2014-04-16 -================== - - * Handle slashes on media params correctly - -0.4.2 / 2014-02-28 -================== - - * Fix media type sorting - * Handle media types params strictly - -0.4.1 / 2014-01-16 -================== - - * Use most specific matches - -0.4.0 / 2014-01-09 -================== - - * Remove preferred prefix from methods diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/LICENSE deleted file mode 100644 index ea6b9e2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2012-2014 Federico Romero -Copyright (c) 2012-2014 Isaac Z. Schlueter -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/README.md deleted file mode 100644 index 6fb7f2d..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/README.md +++ /dev/null @@ -1,212 +0,0 @@ -# negotiator - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -An HTTP content negotiator for Node.js - -## Installation - -```sh -$ npm install negotiator -``` - -## API - -```js -var Negotiator = require('negotiator') -``` - -### Accept Negotiation - -```js -availableMediaTypes = ['text/html', 'text/plain', 'application/json'] - -// The negotiator constructor receives a request object -negotiator = new Negotiator(request) - -// Let's say Accept header is 'text/html, application/*;q=0.2, image/jpeg;q=0.8' - -negotiator.mediaTypes() -// -> ['text/html', 'image/jpeg', 'application/*'] - -negotiator.mediaTypes(availableMediaTypes) -// -> ['text/html', 'application/json'] - -negotiator.mediaType(availableMediaTypes) -// -> 'text/html' -``` - -You can check a working example at `examples/accept.js`. - -#### Methods - -##### mediaType() - -Returns the most preferred media type from the client. - -##### mediaType(availableMediaType) - -Returns the most preferred media type from a list of available media types. - -##### mediaTypes() - -Returns an array of preferred media types ordered by the client preference. - -##### mediaTypes(availableMediaTypes) - -Returns an array of preferred media types ordered by priority from a list of -available media types. - -### Accept-Language Negotiation - -```js -negotiator = new Negotiator(request) - -availableLanguages = ['en', 'es', 'fr'] - -// Let's say Accept-Language header is 'en;q=0.8, es, pt' - -negotiator.languages() -// -> ['es', 'pt', 'en'] - -negotiator.languages(availableLanguages) -// -> ['es', 'en'] - -language = negotiator.language(availableLanguages) -// -> 'es' -``` - -You can check a working example at `examples/language.js`. - -#### Methods - -##### language() - -Returns the most preferred language from the client. - -##### language(availableLanguages) - -Returns the most preferred language from a list of available languages. - -##### languages() - -Returns an array of preferred languages ordered by the client preference. - -##### languages(availableLanguages) - -Returns an array of preferred languages ordered by priority from a list of -available languages. - -### Accept-Charset Negotiation - -```js -availableCharsets = ['utf-8', 'iso-8859-1', 'iso-8859-5'] - -negotiator = new Negotiator(request) - -// Let's say Accept-Charset header is 'utf-8, iso-8859-1;q=0.8, utf-7;q=0.2' - -negotiator.charsets() -// -> ['utf-8', 'iso-8859-1', 'utf-7'] - -negotiator.charsets(availableCharsets) -// -> ['utf-8', 'iso-8859-1'] - -negotiator.charset(availableCharsets) -// -> 'utf-8' -``` - -You can check a working example at `examples/charset.js`. - -#### Methods - -##### charset() - -Returns the most preferred charset from the client. - -##### charset(availableCharsets) - -Returns the most preferred charset from a list of available charsets. - -##### charsets() - -Returns an array of preferred charsets ordered by the client preference. - -##### charsets(availableCharsets) - -Returns an array of preferred charsets ordered by priority from a list of -available charsets. - -### Accept-Encoding Negotiation - -```js -availableEncodings = ['identity', 'gzip'] - -negotiator = new Negotiator(request) - -// Let's say Accept-Encoding header is 'gzip, compress;q=0.2, identity;q=0.5' - -negotiator.encodings() -// -> ['gzip', 'identity', 'compress'] - -negotiator.encodings(availableEncodings) -// -> ['gzip', 'identity'] - -negotiator.encoding(availableEncodings) -// -> 'gzip' -``` - -You can check a working example at `examples/encoding.js`. - -#### Methods - -##### encoding() - -Returns the most preferred encoding from the client. - -##### encoding(availableEncodings) - -Returns the most preferred encoding from a list of available encodings. - -##### encoding(availableEncodings, { preferred }) - -Returns the most preferred encoding from a list of available encodings, while prioritizing based on `preferred` array between same-quality encodings. - -##### encodings() - -Returns an array of preferred encodings ordered by the client preference. - -##### encodings(availableEncodings) - -Returns an array of preferred encodings ordered by priority from a list of -available encodings. - -##### encodings(availableEncodings, { preferred }) - -Returns an array of preferred encodings ordered by priority from a list of -available encodings, while prioritizing based on `preferred` array between same-quality encodings. - -## See Also - -The [accepts](https://npmjs.org/package/accepts#readme) module builds on -this module and provides an alternative interface, mime type validation, -and more. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/negotiator.svg -[npm-url]: https://npmjs.org/package/negotiator -[node-version-image]: https://img.shields.io/node/v/negotiator.svg -[node-version-url]: https://nodejs.org/en/download/ -[coveralls-image]: https://img.shields.io/coveralls/jshttp/negotiator/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/negotiator?branch=master -[downloads-image]: https://img.shields.io/npm/dm/negotiator.svg -[downloads-url]: https://npmjs.org/package/negotiator -[github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/negotiator/ci/master?label=ci -[github-actions-ci-url]: https://github.com/jshttp/negotiator/actions/workflows/ci.yml diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/index.js deleted file mode 100644 index 4f51315..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/index.js +++ /dev/null @@ -1,83 +0,0 @@ -/*! - * negotiator - * Copyright(c) 2012 Federico Romero - * Copyright(c) 2012-2014 Isaac Z. Schlueter - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -var preferredCharsets = require('./lib/charset') -var preferredEncodings = require('./lib/encoding') -var preferredLanguages = require('./lib/language') -var preferredMediaTypes = require('./lib/mediaType') - -/** - * Module exports. - * @public - */ - -module.exports = Negotiator; -module.exports.Negotiator = Negotiator; - -/** - * Create a Negotiator instance from a request. - * @param {object} request - * @public - */ - -function Negotiator(request) { - if (!(this instanceof Negotiator)) { - return new Negotiator(request); - } - - this.request = request; -} - -Negotiator.prototype.charset = function charset(available) { - var set = this.charsets(available); - return set && set[0]; -}; - -Negotiator.prototype.charsets = function charsets(available) { - return preferredCharsets(this.request.headers['accept-charset'], available); -}; - -Negotiator.prototype.encoding = function encoding(available, opts) { - var set = this.encodings(available, opts); - return set && set[0]; -}; - -Negotiator.prototype.encodings = function encodings(available, options) { - var opts = options || {}; - return preferredEncodings(this.request.headers['accept-encoding'], available, opts.preferred); -}; - -Negotiator.prototype.language = function language(available) { - var set = this.languages(available); - return set && set[0]; -}; - -Negotiator.prototype.languages = function languages(available) { - return preferredLanguages(this.request.headers['accept-language'], available); -}; - -Negotiator.prototype.mediaType = function mediaType(available) { - var set = this.mediaTypes(available); - return set && set[0]; -}; - -Negotiator.prototype.mediaTypes = function mediaTypes(available) { - return preferredMediaTypes(this.request.headers.accept, available); -}; - -// Backwards compatibility -Negotiator.prototype.preferredCharset = Negotiator.prototype.charset; -Negotiator.prototype.preferredCharsets = Negotiator.prototype.charsets; -Negotiator.prototype.preferredEncoding = Negotiator.prototype.encoding; -Negotiator.prototype.preferredEncodings = Negotiator.prototype.encodings; -Negotiator.prototype.preferredLanguage = Negotiator.prototype.language; -Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages; -Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType; -Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes; diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js deleted file mode 100644 index cdd0148..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js +++ /dev/null @@ -1,169 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredCharsets; -module.exports.preferredCharsets = preferredCharsets; - -/** - * Module variables. - * @private - */ - -var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Charset header. - * @private - */ - -function parseAcceptCharset(accept) { - var accepts = accept.split(','); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var charset = parseCharset(accepts[i].trim(), i); - - if (charset) { - accepts[j++] = charset; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a charset from the Accept-Charset header. - * @private - */ - -function parseCharset(str, i) { - var match = simpleCharsetRegExp.exec(str); - if (!match) return null; - - var charset = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(';') - for (var j = 0; j < params.length; j++) { - var p = params[j].trim().split('='); - if (p[0] === 'q') { - q = parseFloat(p[1]); - break; - } - } - } - - return { - charset: charset, - q: q, - i: i - }; -} - -/** - * Get the priority of a charset. - * @private - */ - -function getCharsetPriority(charset, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(charset, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the charset. - * @private - */ - -function specify(charset, spec, index) { - var s = 0; - if(spec.charset.toLowerCase() === charset.toLowerCase()){ - s |= 1; - } else if (spec.charset !== '*' ) { - return null - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s - } -} - -/** - * Get the preferred charsets from an Accept-Charset header. - * @public - */ - -function preferredCharsets(accept, provided) { - // RFC 2616 sec 14.2: no header = * - var accepts = parseAcceptCharset(accept === undefined ? '*' : accept || ''); - - if (!provided) { - // sorted list of all charsets - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullCharset); - } - - var priorities = provided.map(function getPriority(type, index) { - return getCharsetPriority(type, accepts, index); - }); - - // sorted list of accepted charsets - return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full charset string. - * @private - */ - -function getFullCharset(spec) { - return spec.charset; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js deleted file mode 100644 index 9ebb633..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredEncodings; -module.exports.preferredEncodings = preferredEncodings; - -/** - * Module variables. - * @private - */ - -var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Encoding header. - * @private - */ - -function parseAcceptEncoding(accept) { - var accepts = accept.split(','); - var hasIdentity = false; - var minQuality = 1; - - for (var i = 0, j = 0; i < accepts.length; i++) { - var encoding = parseEncoding(accepts[i].trim(), i); - - if (encoding) { - accepts[j++] = encoding; - hasIdentity = hasIdentity || specify('identity', encoding); - minQuality = Math.min(minQuality, encoding.q || 1); - } - } - - if (!hasIdentity) { - /* - * If identity doesn't explicitly appear in the accept-encoding header, - * it's added to the list of acceptable encoding with the lowest q - */ - accepts[j++] = { - encoding: 'identity', - q: minQuality, - i: i - }; - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse an encoding from the Accept-Encoding header. - * @private - */ - -function parseEncoding(str, i) { - var match = simpleEncodingRegExp.exec(str); - if (!match) return null; - - var encoding = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(';'); - for (var j = 0; j < params.length; j++) { - var p = params[j].trim().split('='); - if (p[0] === 'q') { - q = parseFloat(p[1]); - break; - } - } - } - - return { - encoding: encoding, - q: q, - i: i - }; -} - -/** - * Get the priority of an encoding. - * @private - */ - -function getEncodingPriority(encoding, accepted, index) { - var priority = {encoding: encoding, o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(encoding, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the encoding. - * @private - */ - -function specify(encoding, spec, index) { - var s = 0; - if(spec.encoding.toLowerCase() === encoding.toLowerCase()){ - s |= 1; - } else if (spec.encoding !== '*' ) { - return null - } - - return { - encoding: encoding, - i: index, - o: spec.i, - q: spec.q, - s: s - } -}; - -/** - * Get the preferred encodings from an Accept-Encoding header. - * @public - */ - -function preferredEncodings(accept, provided, preferred) { - var accepts = parseAcceptEncoding(accept || ''); - - var comparator = preferred ? function comparator (a, b) { - if (a.q !== b.q) { - return b.q - a.q // higher quality first - } - - var aPreferred = preferred.indexOf(a.encoding) - var bPreferred = preferred.indexOf(b.encoding) - - if (aPreferred === -1 && bPreferred === -1) { - // consider the original specifity/order - return (b.s - a.s) || (a.o - b.o) || (a.i - b.i) - } - - if (aPreferred !== -1 && bPreferred !== -1) { - return aPreferred - bPreferred // consider the preferred order - } - - return aPreferred === -1 ? 1 : -1 // preferred first - } : compareSpecs; - - if (!provided) { - // sorted list of all encodings - return accepts - .filter(isQuality) - .sort(comparator) - .map(getFullEncoding); - } - - var priorities = provided.map(function getPriority(type, index) { - return getEncodingPriority(type, accepts, index); - }); - - // sorted list of accepted encodings - return priorities.filter(isQuality).sort(comparator).map(function getEncoding(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i); -} - -/** - * Get full encoding string. - * @private - */ - -function getFullEncoding(spec) { - return spec.encoding; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js deleted file mode 100644 index a231672..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js +++ /dev/null @@ -1,179 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredLanguages; -module.exports.preferredLanguages = preferredLanguages; - -/** - * Module variables. - * @private - */ - -var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Language header. - * @private - */ - -function parseAcceptLanguage(accept) { - var accepts = accept.split(','); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var language = parseLanguage(accepts[i].trim(), i); - - if (language) { - accepts[j++] = language; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a language from the Accept-Language header. - * @private - */ - -function parseLanguage(str, i) { - var match = simpleLanguageRegExp.exec(str); - if (!match) return null; - - var prefix = match[1] - var suffix = match[2] - var full = prefix - - if (suffix) full += "-" + suffix; - - var q = 1; - if (match[3]) { - var params = match[3].split(';') - for (var j = 0; j < params.length; j++) { - var p = params[j].split('='); - if (p[0] === 'q') q = parseFloat(p[1]); - } - } - - return { - prefix: prefix, - suffix: suffix, - q: q, - i: i, - full: full - }; -} - -/** - * Get the priority of a language. - * @private - */ - -function getLanguagePriority(language, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(language, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the language. - * @private - */ - -function specify(language, spec, index) { - var p = parseLanguage(language) - if (!p) return null; - var s = 0; - if(spec.full.toLowerCase() === p.full.toLowerCase()){ - s |= 4; - } else if (spec.prefix.toLowerCase() === p.full.toLowerCase()) { - s |= 2; - } else if (spec.full.toLowerCase() === p.prefix.toLowerCase()) { - s |= 1; - } else if (spec.full !== '*' ) { - return null - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s - } -}; - -/** - * Get the preferred languages from an Accept-Language header. - * @public - */ - -function preferredLanguages(accept, provided) { - // RFC 2616 sec 14.4: no header = * - var accepts = parseAcceptLanguage(accept === undefined ? '*' : accept || ''); - - if (!provided) { - // sorted list of all languages - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullLanguage); - } - - var priorities = provided.map(function getPriority(type, index) { - return getLanguagePriority(type, accepts, index); - }); - - // sorted list of accepted languages - return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full language string. - * @private - */ - -function getFullLanguage(spec) { - return spec.full; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js deleted file mode 100644 index 8e402ea..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js +++ /dev/null @@ -1,294 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredMediaTypes; -module.exports.preferredMediaTypes = preferredMediaTypes; - -/** - * Module variables. - * @private - */ - -var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept header. - * @private - */ - -function parseAccept(accept) { - var accepts = splitMediaTypes(accept); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var mediaType = parseMediaType(accepts[i].trim(), i); - - if (mediaType) { - accepts[j++] = mediaType; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a media type from the Accept header. - * @private - */ - -function parseMediaType(str, i) { - var match = simpleMediaTypeRegExp.exec(str); - if (!match) return null; - - var params = Object.create(null); - var q = 1; - var subtype = match[2]; - var type = match[1]; - - if (match[3]) { - var kvps = splitParameters(match[3]).map(splitKeyValuePair); - - for (var j = 0; j < kvps.length; j++) { - var pair = kvps[j]; - var key = pair[0].toLowerCase(); - var val = pair[1]; - - // get the value, unwrapping quotes - var value = val && val[0] === '"' && val[val.length - 1] === '"' - ? val.slice(1, -1) - : val; - - if (key === 'q') { - q = parseFloat(value); - break; - } - - // store parameter - params[key] = value; - } - } - - return { - type: type, - subtype: subtype, - params: params, - q: q, - i: i - }; -} - -/** - * Get the priority of a media type. - * @private - */ - -function getMediaTypePriority(type, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(type, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the media type. - * @private - */ - -function specify(type, spec, index) { - var p = parseMediaType(type); - var s = 0; - - if (!p) { - return null; - } - - if(spec.type.toLowerCase() == p.type.toLowerCase()) { - s |= 4 - } else if(spec.type != '*') { - return null; - } - - if(spec.subtype.toLowerCase() == p.subtype.toLowerCase()) { - s |= 2 - } else if(spec.subtype != '*') { - return null; - } - - var keys = Object.keys(spec.params); - if (keys.length > 0) { - if (keys.every(function (k) { - return spec.params[k] == '*' || (spec.params[k] || '').toLowerCase() == (p.params[k] || '').toLowerCase(); - })) { - s |= 1 - } else { - return null - } - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s, - } -} - -/** - * Get the preferred media types from an Accept header. - * @public - */ - -function preferredMediaTypes(accept, provided) { - // RFC 2616 sec 14.2: no header = */* - var accepts = parseAccept(accept === undefined ? '*/*' : accept || ''); - - if (!provided) { - // sorted list of all types - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullType); - } - - var priorities = provided.map(function getPriority(type, index) { - return getMediaTypePriority(type, accepts, index); - }); - - // sorted list of accepted types - return priorities.filter(isQuality).sort(compareSpecs).map(function getType(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full type string. - * @private - */ - -function getFullType(spec) { - return spec.type + '/' + spec.subtype; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} - -/** - * Count the number of quotes in a string. - * @private - */ - -function quoteCount(string) { - var count = 0; - var index = 0; - - while ((index = string.indexOf('"', index)) !== -1) { - count++; - index++; - } - - return count; -} - -/** - * Split a key value pair. - * @private - */ - -function splitKeyValuePair(str) { - var index = str.indexOf('='); - var key; - var val; - - if (index === -1) { - key = str; - } else { - key = str.slice(0, index); - val = str.slice(index + 1); - } - - return [key, val]; -} - -/** - * Split an Accept header into media types. - * @private - */ - -function splitMediaTypes(accept) { - var accepts = accept.split(','); - - for (var i = 1, j = 0; i < accepts.length; i++) { - if (quoteCount(accepts[j]) % 2 == 0) { - accepts[++j] = accepts[i]; - } else { - accepts[j] += ',' + accepts[i]; - } - } - - // trim accepts - accepts.length = j + 1; - - return accepts; -} - -/** - * Split a string of parameters. - * @private - */ - -function splitParameters(str) { - var parameters = str.split(';'); - - for (var i = 1, j = 0; i < parameters.length; i++) { - if (quoteCount(parameters[j]) % 2 == 0) { - parameters[++j] = parameters[i]; - } else { - parameters[j] += ';' + parameters[i]; - } - } - - // trim parameters - parameters.length = j + 1; - - for (var i = 0; i < parameters.length; i++) { - parameters[i] = parameters[i].trim(); - } - - return parameters; -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json deleted file mode 100644 index e4bdc1e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "negotiator", - "description": "HTTP content negotiation", - "version": "1.0.0", - "contributors": [ - "Douglas Christopher Wilson ", - "Federico Romero ", - "Isaac Z. Schlueter (http://blog.izs.me/)" - ], - "license": "MIT", - "keywords": [ - "http", - "content negotiation", - "accept", - "accept-language", - "accept-encoding", - "accept-charset" - ], - "repository": "jshttp/negotiator", - "devDependencies": { - "eslint": "7.32.0", - "eslint-plugin-markdown": "2.2.1", - "mocha": "9.1.3", - "nyc": "15.1.0" - }, - "files": [ - "lib/", - "HISTORY.md", - "LICENSE", - "index.js", - "README.md" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test:debug": "mocha --reporter spec --check-leaks --inspect --inspect-brk test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/LICENSE deleted file mode 100644 index b6ea1c1..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2012 TJ Holowaychuk -Copyright (c) 2014-2022 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/README.md deleted file mode 100644 index 350fccd..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/README.md +++ /dev/null @@ -1,317 +0,0 @@ -# send - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![CI][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Send is a library for streaming files from the file system as a http response -supporting partial responses (Ranges), conditional-GET negotiation (If-Match, -If-Unmodified-Since, If-None-Match, If-Modified-Since), high test coverage, -and granular events which may be leveraged to take appropriate actions in your -application or framework. - -Looking to serve up entire folders mapped to URLs? Try [serve-static](https://www.npmjs.org/package/serve-static). - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```bash -$ npm install send -``` - -## API - -```js -var send = require('send') -``` - -### send(req, path, [options]) - -Create a new `SendStream` for the given path to send to a `res`. The `req` is -the Node.js HTTP request and the `path` is a urlencoded path to send (urlencoded, -not the actual file-system path). - -#### Options - -##### acceptRanges - -Enable or disable accepting ranged requests, defaults to true. -Disabling this will not send `Accept-Ranges` and ignore the contents -of the `Range` request header. - -##### cacheControl - -Enable or disable setting `Cache-Control` response header, defaults to -true. Disabling this will ignore the `immutable` and `maxAge` options. - -##### dotfiles - -Set how "dotfiles" are treated when encountered. A dotfile is a file -or directory that begins with a dot ("."). Note this check is done on -the path itself without checking if the path actually exists on the -disk. If `root` is specified, only the dotfiles above the root are -checked (i.e. the root itself can be within a dotfile when set -to "deny"). - - - `'allow'` No special treatment for dotfiles. - - `'deny'` Send a 403 for any request for a dotfile. - - `'ignore'` Pretend like the dotfile does not exist and 404. - -The default value is _similar_ to `'ignore'`, with the exception that -this default will not ignore the files within a directory that begins -with a dot, for backward-compatibility. - -##### end - -Byte offset at which the stream ends, defaults to the length of the file -minus 1. The end is inclusive in the stream, meaning `end: 3` will include -the 4th byte in the stream. - -##### etag - -Enable or disable etag generation, defaults to true. - -##### extensions - -If a given file doesn't exist, try appending one of the given extensions, -in the given order. By default, this is disabled (set to `false`). An -example value that will serve extension-less HTML files: `['html', 'htm']`. -This is skipped if the requested file already has an extension. - -##### immutable - -Enable or disable the `immutable` directive in the `Cache-Control` response -header, defaults to `false`. If set to `true`, the `maxAge` option should -also be specified to enable caching. The `immutable` directive will prevent -supported clients from making conditional requests during the life of the -`maxAge` option to check if the file has changed. - -##### index - -By default send supports "index.html" files, to disable this -set `false` or to supply a new index pass a string or an array -in preferred order. - -##### lastModified - -Enable or disable `Last-Modified` header, defaults to true. Uses the file -system's last modified value. - -##### maxAge - -Provide a max-age in milliseconds for http caching, defaults to 0. -This can also be a string accepted by the -[ms](https://www.npmjs.org/package/ms#readme) module. - -##### root - -Serve files relative to `path`. - -##### start - -Byte offset at which the stream starts, defaults to 0. The start is inclusive, -meaning `start: 2` will include the 3rd byte in the stream. - -#### Events - -The `SendStream` is an event emitter and will emit the following events: - - - `error` an error occurred `(err)` - - `directory` a directory was requested `(res, path)` - - `file` a file was requested `(path, stat)` - - `headers` the headers are about to be set on a file `(res, path, stat)` - - `stream` file streaming has started `(stream)` - - `end` streaming has completed - -#### .pipe - -The `pipe` method is used to pipe the response into the Node.js HTTP response -object, typically `send(req, path, options).pipe(res)`. - -## Error-handling - -By default when no `error` listeners are present an automatic response will be -made, otherwise you have full control over the response, aka you may show a 5xx -page etc. - -## Caching - -It does _not_ perform internal caching, you should use a reverse proxy cache -such as Varnish for this, or those fancy things called CDNs. If your -application is small enough that it would benefit from single-node memory -caching, it's small enough that it does not need caching at all ;). - -## Debugging - -To enable `debug()` instrumentation output export __DEBUG__: - -``` -$ DEBUG=send node app -``` - -## Running tests - -``` -$ npm install -$ npm test -``` - -## Examples - -### Serve a specific file - -This simple example will send a specific file to all requests. - -```js -var http = require('http') -var send = require('send') - -var server = http.createServer(function onRequest (req, res) { - send(req, '/path/to/index.html') - .pipe(res) -}) - -server.listen(3000) -``` - -### Serve all files from a directory - -This simple example will just serve up all the files in a -given directory as the top-level. For example, a request -`GET /foo.txt` will send back `/www/public/foo.txt`. - -```js -var http = require('http') -var parseUrl = require('parseurl') -var send = require('send') - -var server = http.createServer(function onRequest (req, res) { - send(req, parseUrl(req).pathname, { root: '/www/public' }) - .pipe(res) -}) - -server.listen(3000) -``` - -### Custom file types - -```js -var extname = require('path').extname -var http = require('http') -var parseUrl = require('parseurl') -var send = require('send') - -var server = http.createServer(function onRequest (req, res) { - send(req, parseUrl(req).pathname, { root: '/www/public' }) - .on('headers', function (res, path) { - switch (extname(path)) { - case '.x-mt': - case '.x-mtt': - // custom type for these extensions - res.setHeader('Content-Type', 'application/x-my-type') - break - } - }) - .pipe(res) -}) - -server.listen(3000) -``` - -### Custom directory index view - -This is an example of serving up a structure of directories with a -custom function to render a listing of a directory. - -```js -var http = require('http') -var fs = require('fs') -var parseUrl = require('parseurl') -var send = require('send') - -// Transfer arbitrary files from within /www/example.com/public/* -// with a custom handler for directory listing -var server = http.createServer(function onRequest (req, res) { - send(req, parseUrl(req).pathname, { index: false, root: '/www/public' }) - .once('directory', directory) - .pipe(res) -}) - -server.listen(3000) - -// Custom directory handler -function directory (res, path) { - var stream = this - - // redirect to trailing slash for consistent url - if (!stream.hasTrailingSlash()) { - return stream.redirect(path) - } - - // get directory list - fs.readdir(path, function onReaddir (err, list) { - if (err) return stream.error(err) - - // render an index for the directory - res.setHeader('Content-Type', 'text/plain; charset=UTF-8') - res.end(list.join('\n') + '\n') - }) -} -``` - -### Serving from a root directory with custom error-handling - -```js -var http = require('http') -var parseUrl = require('parseurl') -var send = require('send') - -var server = http.createServer(function onRequest (req, res) { - // your custom error-handling logic: - function error (err) { - res.statusCode = err.status || 500 - res.end(err.message) - } - - // your custom headers - function headers (res, path, stat) { - // serve all files for download - res.setHeader('Content-Disposition', 'attachment') - } - - // your custom directory handling logic: - function redirect () { - res.statusCode = 301 - res.setHeader('Location', req.url + '/') - res.end('Redirecting to ' + req.url + '/') - } - - // transfer arbitrary files from within - // /www/example.com/public/* - send(req, parseUrl(req).pathname, { root: '/www/public' }) - .on('error', error) - .on('directory', redirect) - .on('headers', headers) - .pipe(res) -}) - -server.listen(3000) -``` - -## License - -[MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/pillarjs/send/master -[coveralls-url]: https://coveralls.io/r/pillarjs/send?branch=master -[github-actions-ci-image]: https://badgen.net/github/checks/pillarjs/send/master?label=linux -[github-actions-ci-url]: https://github.com/pillarjs/send/actions/workflows/ci.yml -[node-image]: https://badgen.net/npm/node/send -[node-url]: https://nodejs.org/en/download/ -[npm-downloads-image]: https://badgen.net/npm/dm/send -[npm-url]: https://npmjs.org/package/send -[npm-version-image]: https://badgen.net/npm/v/send diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/index.js deleted file mode 100644 index 1655053..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/index.js +++ /dev/null @@ -1,997 +0,0 @@ -/*! - * send - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2014-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var createError = require('http-errors') -var debug = require('debug')('send') -var encodeUrl = require('encodeurl') -var escapeHtml = require('escape-html') -var etag = require('etag') -var fresh = require('fresh') -var fs = require('fs') -var mime = require('mime-types') -var ms = require('ms') -var onFinished = require('on-finished') -var parseRange = require('range-parser') -var path = require('path') -var statuses = require('statuses') -var Stream = require('stream') -var util = require('util') - -/** - * Path function references. - * @private - */ - -var extname = path.extname -var join = path.join -var normalize = path.normalize -var resolve = path.resolve -var sep = path.sep - -/** - * Regular expression for identifying a bytes Range header. - * @private - */ - -var BYTES_RANGE_REGEXP = /^ *bytes=/ - -/** - * Maximum value allowed for the max age. - * @private - */ - -var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000 // 1 year - -/** - * Regular expression to match a path with a directory up component. - * @private - */ - -var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/ - -/** - * Module exports. - * @public - */ - -module.exports = send - -/** - * Return a `SendStream` for `req` and `path`. - * - * @param {object} req - * @param {string} path - * @param {object} [options] - * @return {SendStream} - * @public - */ - -function send (req, path, options) { - return new SendStream(req, path, options) -} - -/** - * Initialize a `SendStream` with the given `path`. - * - * @param {Request} req - * @param {String} path - * @param {object} [options] - * @private - */ - -function SendStream (req, path, options) { - Stream.call(this) - - var opts = options || {} - - this.options = opts - this.path = path - this.req = req - - this._acceptRanges = opts.acceptRanges !== undefined - ? Boolean(opts.acceptRanges) - : true - - this._cacheControl = opts.cacheControl !== undefined - ? Boolean(opts.cacheControl) - : true - - this._etag = opts.etag !== undefined - ? Boolean(opts.etag) - : true - - this._dotfiles = opts.dotfiles !== undefined - ? opts.dotfiles - : 'ignore' - - if (this._dotfiles !== 'ignore' && this._dotfiles !== 'allow' && this._dotfiles !== 'deny') { - throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"') - } - - this._extensions = opts.extensions !== undefined - ? normalizeList(opts.extensions, 'extensions option') - : [] - - this._immutable = opts.immutable !== undefined - ? Boolean(opts.immutable) - : false - - this._index = opts.index !== undefined - ? normalizeList(opts.index, 'index option') - : ['index.html'] - - this._lastModified = opts.lastModified !== undefined - ? Boolean(opts.lastModified) - : true - - this._maxage = opts.maxAge || opts.maxage - this._maxage = typeof this._maxage === 'string' - ? ms(this._maxage) - : Number(this._maxage) - this._maxage = !isNaN(this._maxage) - ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) - : 0 - - this._root = opts.root - ? resolve(opts.root) - : null -} - -/** - * Inherits from `Stream`. - */ - -util.inherits(SendStream, Stream) - -/** - * Emit error with `status`. - * - * @param {number} status - * @param {Error} [err] - * @private - */ - -SendStream.prototype.error = function error (status, err) { - // emit if listeners instead of responding - if (hasListeners(this, 'error')) { - return this.emit('error', createHttpError(status, err)) - } - - var res = this.res - var msg = statuses.message[status] || String(status) - var doc = createHtmlDocument('Error', escapeHtml(msg)) - - // clear existing headers - clearHeaders(res) - - // add error headers - if (err && err.headers) { - setHeaders(res, err.headers) - } - - // send basic response - res.statusCode = status - res.setHeader('Content-Type', 'text/html; charset=UTF-8') - res.setHeader('Content-Length', Buffer.byteLength(doc)) - res.setHeader('Content-Security-Policy', "default-src 'none'") - res.setHeader('X-Content-Type-Options', 'nosniff') - res.end(doc) -} - -/** - * Check if the pathname ends with "/". - * - * @return {boolean} - * @private - */ - -SendStream.prototype.hasTrailingSlash = function hasTrailingSlash () { - return this.path[this.path.length - 1] === '/' -} - -/** - * Check if this is a conditional GET request. - * - * @return {Boolean} - * @api private - */ - -SendStream.prototype.isConditionalGET = function isConditionalGET () { - return this.req.headers['if-match'] || - this.req.headers['if-unmodified-since'] || - this.req.headers['if-none-match'] || - this.req.headers['if-modified-since'] -} - -/** - * Check if the request preconditions failed. - * - * @return {boolean} - * @private - */ - -SendStream.prototype.isPreconditionFailure = function isPreconditionFailure () { - var req = this.req - var res = this.res - - // if-match - var match = req.headers['if-match'] - if (match) { - var etag = res.getHeader('ETag') - return !etag || (match !== '*' && parseTokenList(match).every(function (match) { - return match !== etag && match !== 'W/' + etag && 'W/' + match !== etag - })) - } - - // if-unmodified-since - var unmodifiedSince = parseHttpDate(req.headers['if-unmodified-since']) - if (!isNaN(unmodifiedSince)) { - var lastModified = parseHttpDate(res.getHeader('Last-Modified')) - return isNaN(lastModified) || lastModified > unmodifiedSince - } - - return false -} - -/** - * Strip various content header fields for a change in entity. - * - * @private - */ - -SendStream.prototype.removeContentHeaderFields = function removeContentHeaderFields () { - var res = this.res - - res.removeHeader('Content-Encoding') - res.removeHeader('Content-Language') - res.removeHeader('Content-Length') - res.removeHeader('Content-Range') - res.removeHeader('Content-Type') -} - -/** - * Respond with 304 not modified. - * - * @api private - */ - -SendStream.prototype.notModified = function notModified () { - var res = this.res - debug('not modified') - this.removeContentHeaderFields() - res.statusCode = 304 - res.end() -} - -/** - * Raise error that headers already sent. - * - * @api private - */ - -SendStream.prototype.headersAlreadySent = function headersAlreadySent () { - var err = new Error('Can\'t set headers after they are sent.') - debug('headers already sent') - this.error(500, err) -} - -/** - * Check if the request is cacheable, aka - * responded with 2xx or 304 (see RFC 2616 section 14.2{5,6}). - * - * @return {Boolean} - * @api private - */ - -SendStream.prototype.isCachable = function isCachable () { - var statusCode = this.res.statusCode - return (statusCode >= 200 && statusCode < 300) || - statusCode === 304 -} - -/** - * Handle stat() error. - * - * @param {Error} error - * @private - */ - -SendStream.prototype.onStatError = function onStatError (error) { - switch (error.code) { - case 'ENAMETOOLONG': - case 'ENOENT': - case 'ENOTDIR': - this.error(404, error) - break - default: - this.error(500, error) - break - } -} - -/** - * Check if the cache is fresh. - * - * @return {Boolean} - * @api private - */ - -SendStream.prototype.isFresh = function isFresh () { - return fresh(this.req.headers, { - etag: this.res.getHeader('ETag'), - 'last-modified': this.res.getHeader('Last-Modified') - }) -} - -/** - * Check if the range is fresh. - * - * @return {Boolean} - * @api private - */ - -SendStream.prototype.isRangeFresh = function isRangeFresh () { - var ifRange = this.req.headers['if-range'] - - if (!ifRange) { - return true - } - - // if-range as etag - if (ifRange.indexOf('"') !== -1) { - var etag = this.res.getHeader('ETag') - return Boolean(etag && ifRange.indexOf(etag) !== -1) - } - - // if-range as modified date - var lastModified = this.res.getHeader('Last-Modified') - return parseHttpDate(lastModified) <= parseHttpDate(ifRange) -} - -/** - * Redirect to path. - * - * @param {string} path - * @private - */ - -SendStream.prototype.redirect = function redirect (path) { - var res = this.res - - if (hasListeners(this, 'directory')) { - this.emit('directory', res, path) - return - } - - if (this.hasTrailingSlash()) { - this.error(403) - return - } - - var loc = encodeUrl(collapseLeadingSlashes(this.path + '/')) - var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc)) - - // redirect - res.statusCode = 301 - res.setHeader('Content-Type', 'text/html; charset=UTF-8') - res.setHeader('Content-Length', Buffer.byteLength(doc)) - res.setHeader('Content-Security-Policy', "default-src 'none'") - res.setHeader('X-Content-Type-Options', 'nosniff') - res.setHeader('Location', loc) - res.end(doc) -} - -/** - * Pipe to `res. - * - * @param {Stream} res - * @return {Stream} res - * @api public - */ - -SendStream.prototype.pipe = function pipe (res) { - // root path - var root = this._root - - // references - this.res = res - - // decode the path - var path = decode(this.path) - if (path === -1) { - this.error(400) - return res - } - - // null byte(s) - if (~path.indexOf('\0')) { - this.error(400) - return res - } - - var parts - if (root !== null) { - // normalize - if (path) { - path = normalize('.' + sep + path) - } - - // malicious path - if (UP_PATH_REGEXP.test(path)) { - debug('malicious path "%s"', path) - this.error(403) - return res - } - - // explode path parts - parts = path.split(sep) - - // join / normalize from optional root dir - path = normalize(join(root, path)) - } else { - // ".." is malicious without "root" - if (UP_PATH_REGEXP.test(path)) { - debug('malicious path "%s"', path) - this.error(403) - return res - } - - // explode path parts - parts = normalize(path).split(sep) - - // resolve the path - path = resolve(path) - } - - // dotfile handling - if (containsDotFile(parts)) { - debug('%s dotfile "%s"', this._dotfiles, path) - switch (this._dotfiles) { - case 'allow': - break - case 'deny': - this.error(403) - return res - case 'ignore': - default: - this.error(404) - return res - } - } - - // index file support - if (this._index.length && this.hasTrailingSlash()) { - this.sendIndex(path) - return res - } - - this.sendFile(path) - return res -} - -/** - * Transfer `path`. - * - * @param {String} path - * @api public - */ - -SendStream.prototype.send = function send (path, stat) { - var len = stat.size - var options = this.options - var opts = {} - var res = this.res - var req = this.req - var ranges = req.headers.range - var offset = options.start || 0 - - if (res.headersSent) { - // impossible to send now - this.headersAlreadySent() - return - } - - debug('pipe "%s"', path) - - // set header fields - this.setHeader(path, stat) - - // set content-type - this.type(path) - - // conditional GET support - if (this.isConditionalGET()) { - if (this.isPreconditionFailure()) { - this.error(412) - return - } - - if (this.isCachable() && this.isFresh()) { - this.notModified() - return - } - } - - // adjust len to start/end options - len = Math.max(0, len - offset) - if (options.end !== undefined) { - var bytes = options.end - offset + 1 - if (len > bytes) len = bytes - } - - // Range support - if (this._acceptRanges && BYTES_RANGE_REGEXP.test(ranges)) { - // parse - ranges = parseRange(len, ranges, { - combine: true - }) - - // If-Range support - if (!this.isRangeFresh()) { - debug('range stale') - ranges = -2 - } - - // unsatisfiable - if (ranges === -1) { - debug('range unsatisfiable') - - // Content-Range - res.setHeader('Content-Range', contentRange('bytes', len)) - - // 416 Requested Range Not Satisfiable - return this.error(416, { - headers: { 'Content-Range': res.getHeader('Content-Range') } - }) - } - - // valid (syntactically invalid/multiple ranges are treated as a regular response) - if (ranges !== -2 && ranges.length === 1) { - debug('range %j', ranges) - - // Content-Range - res.statusCode = 206 - res.setHeader('Content-Range', contentRange('bytes', len, ranges[0])) - - // adjust for requested range - offset += ranges[0].start - len = ranges[0].end - ranges[0].start + 1 - } - } - - // clone options - for (var prop in options) { - opts[prop] = options[prop] - } - - // set read options - opts.start = offset - opts.end = Math.max(offset, offset + len - 1) - - // content-length - res.setHeader('Content-Length', len) - - // HEAD support - if (req.method === 'HEAD') { - res.end() - return - } - - this.stream(path, opts) -} - -/** - * Transfer file for `path`. - * - * @param {String} path - * @api private - */ -SendStream.prototype.sendFile = function sendFile (path) { - var i = 0 - var self = this - - debug('stat "%s"', path) - fs.stat(path, function onstat (err, stat) { - var pathEndsWithSep = path[path.length - 1] === sep - if (err && err.code === 'ENOENT' && !extname(path) && !pathEndsWithSep) { - // not found, check extensions - return next(err) - } - if (err) return self.onStatError(err) - if (stat.isDirectory()) return self.redirect(path) - if (pathEndsWithSep) return self.error(404) - self.emit('file', path, stat) - self.send(path, stat) - }) - - function next (err) { - if (self._extensions.length <= i) { - return err - ? self.onStatError(err) - : self.error(404) - } - - var p = path + '.' + self._extensions[i++] - - debug('stat "%s"', p) - fs.stat(p, function (err, stat) { - if (err) return next(err) - if (stat.isDirectory()) return next() - self.emit('file', p, stat) - self.send(p, stat) - }) - } -} - -/** - * Transfer index for `path`. - * - * @param {String} path - * @api private - */ -SendStream.prototype.sendIndex = function sendIndex (path) { - var i = -1 - var self = this - - function next (err) { - if (++i >= self._index.length) { - if (err) return self.onStatError(err) - return self.error(404) - } - - var p = join(path, self._index[i]) - - debug('stat "%s"', p) - fs.stat(p, function (err, stat) { - if (err) return next(err) - if (stat.isDirectory()) return next() - self.emit('file', p, stat) - self.send(p, stat) - }) - } - - next() -} - -/** - * Stream `path` to the response. - * - * @param {String} path - * @param {Object} options - * @api private - */ - -SendStream.prototype.stream = function stream (path, options) { - var self = this - var res = this.res - - // pipe - var stream = fs.createReadStream(path, options) - this.emit('stream', stream) - stream.pipe(res) - - // cleanup - function cleanup () { - stream.destroy() - } - - // response finished, cleanup - onFinished(res, cleanup) - - // error handling - stream.on('error', function onerror (err) { - // clean up stream early - cleanup() - - // error - self.onStatError(err) - }) - - // end - stream.on('end', function onend () { - self.emit('end') - }) -} - -/** - * Set content-type based on `path` - * if it hasn't been explicitly set. - * - * @param {String} path - * @api private - */ - -SendStream.prototype.type = function type (path) { - var res = this.res - - if (res.getHeader('Content-Type')) return - - var ext = extname(path) - var type = mime.contentType(ext) || 'application/octet-stream' - - debug('content-type %s', type) - res.setHeader('Content-Type', type) -} - -/** - * Set response header fields, most - * fields may be pre-defined. - * - * @param {String} path - * @param {Object} stat - * @api private - */ - -SendStream.prototype.setHeader = function setHeader (path, stat) { - var res = this.res - - this.emit('headers', res, path, stat) - - if (this._acceptRanges && !res.getHeader('Accept-Ranges')) { - debug('accept ranges') - res.setHeader('Accept-Ranges', 'bytes') - } - - if (this._cacheControl && !res.getHeader('Cache-Control')) { - var cacheControl = 'public, max-age=' + Math.floor(this._maxage / 1000) - - if (this._immutable) { - cacheControl += ', immutable' - } - - debug('cache-control %s', cacheControl) - res.setHeader('Cache-Control', cacheControl) - } - - if (this._lastModified && !res.getHeader('Last-Modified')) { - var modified = stat.mtime.toUTCString() - debug('modified %s', modified) - res.setHeader('Last-Modified', modified) - } - - if (this._etag && !res.getHeader('ETag')) { - var val = etag(stat) - debug('etag %s', val) - res.setHeader('ETag', val) - } -} - -/** - * Clear all headers from a response. - * - * @param {object} res - * @private - */ - -function clearHeaders (res) { - for (const header of res.getHeaderNames()) { - res.removeHeader(header) - } -} - -/** - * Collapse all leading slashes into a single slash - * - * @param {string} str - * @private - */ -function collapseLeadingSlashes (str) { - for (var i = 0; i < str.length; i++) { - if (str[i] !== '/') { - break - } - } - - return i > 1 - ? '/' + str.substr(i) - : str -} - -/** - * Determine if path parts contain a dotfile. - * - * @api private - */ - -function containsDotFile (parts) { - for (var i = 0; i < parts.length; i++) { - var part = parts[i] - if (part.length > 1 && part[0] === '.') { - return true - } - } - - return false -} - -/** - * Create a Content-Range header. - * - * @param {string} type - * @param {number} size - * @param {array} [range] - */ - -function contentRange (type, size, range) { - return type + ' ' + (range ? range.start + '-' + range.end : '*') + '/' + size -} - -/** - * Create a minimal HTML document. - * - * @param {string} title - * @param {string} body - * @private - */ - -function createHtmlDocument (title, body) { - return '\n' + - '\n' + - '\n' + - '\n' + - '' + title + '\n' + - '\n' + - '\n' + - '
' + body + '
\n' + - '\n' + - '\n' -} - -/** - * Create a HttpError object from simple arguments. - * - * @param {number} status - * @param {Error|object} err - * @private - */ - -function createHttpError (status, err) { - if (!err) { - return createError(status) - } - - return err instanceof Error - ? createError(status, err, { expose: false }) - : createError(status, err) -} - -/** - * decodeURIComponent. - * - * Allows V8 to only deoptimize this fn instead of all - * of send(). - * - * @param {String} path - * @api private - */ - -function decode (path) { - try { - return decodeURIComponent(path) - } catch (err) { - return -1 - } -} - -/** - * Determine if emitter has listeners of a given type. - * - * The way to do this check is done three different ways in Node.js >= 0.10 - * so this consolidates them into a minimal set using instance methods. - * - * @param {EventEmitter} emitter - * @param {string} type - * @returns {boolean} - * @private - */ - -function hasListeners (emitter, type) { - var count = typeof emitter.listenerCount !== 'function' - ? emitter.listeners(type).length - : emitter.listenerCount(type) - - return count > 0 -} - -/** - * Normalize the index option into an array. - * - * @param {boolean|string|array} val - * @param {string} name - * @private - */ - -function normalizeList (val, name) { - var list = [].concat(val || []) - - for (var i = 0; i < list.length; i++) { - if (typeof list[i] !== 'string') { - throw new TypeError(name + ' must be array of strings or false') - } - } - - return list -} - -/** - * Parse an HTTP Date into a number. - * - * @param {string} date - * @private - */ - -function parseHttpDate (date) { - var timestamp = date && Date.parse(date) - - return typeof timestamp === 'number' - ? timestamp - : NaN -} - -/** - * Parse a HTTP token list. - * - * @param {string} str - * @private - */ - -function parseTokenList (str) { - var end = 0 - var list = [] - var start = 0 - - // gather tokens - for (var i = 0, len = str.length; i < len; i++) { - switch (str.charCodeAt(i)) { - case 0x20: /* */ - if (start === end) { - start = end = i + 1 - } - break - case 0x2c: /* , */ - if (start !== end) { - list.push(str.substring(start, end)) - } - start = end = i + 1 - break - default: - end = i + 1 - break - } - } - - // final token - if (start !== end) { - list.push(str.substring(start, end)) - } - - return list -} - -/** - * Set an object of headers on a response. - * - * @param {object} res - * @param {object} headers - * @private - */ - -function setHeaders (res, headers) { - var keys = Object.keys(headers) - - for (var i = 0; i < keys.length; i++) { - var key = keys[i] - res.setHeader(key, headers[key]) - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/package.json deleted file mode 100644 index e9d3cc2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/send/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "send", - "description": "Better streaming static file server with Range and conditional-GET support", - "version": "1.2.1", - "author": "TJ Holowaychuk ", - "contributors": [ - "Douglas Christopher Wilson ", - "James Wyatt Cready ", - "Jesús Leganés Combarro " - ], - "license": "MIT", - "repository": "pillarjs/send", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "keywords": [ - "static", - "file", - "server" - ], - "dependencies": { - "debug": "^4.4.3", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^2.0.0", - "http-errors": "^2.0.1", - "mime-types": "^3.0.2", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.2" - }, - "devDependencies": { - "after": "^0.8.2", - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.32.0", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "^10.7.0", - "nyc": "^17.0.0", - "supertest": "6.3.4" - }, - "files": [ - "LICENSE", - "README.md", - "index.js" - ], - "engines": { - "node": ">= 18" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --check-leaks --reporter spec", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "version": "node scripts/version-history.js && git add HISTORY.md" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/LICENSE deleted file mode 100644 index cbe62e8..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -(The MIT License) - -Copyright (c) 2010 Sencha Inc. -Copyright (c) 2011 LearnBoost -Copyright (c) 2011 TJ Holowaychuk -Copyright (c) 2014-2016 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/README.md deleted file mode 100644 index 3ff1f1f..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/README.md +++ /dev/null @@ -1,253 +0,0 @@ -# serve-static - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![CI][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install serve-static -``` - -## API - -```js -const serveStatic = require('serve-static') -``` - -### serveStatic(root, options) - -Create a new middleware function to serve files from within a given root -directory. The file to serve will be determined by combining `req.url` -with the provided root directory. When a file is not found, instead of -sending a 404 response, this module will instead call `next()` to move on -to the next middleware, allowing for stacking and fall-backs. - -#### Options - -##### acceptRanges - -Enable or disable accepting ranged requests, defaults to true. -Disabling this will not send `Accept-Ranges` and ignore the contents -of the `Range` request header. - -##### cacheControl - -Enable or disable setting `Cache-Control` response header, defaults to -true. Disabling this will ignore the `immutable` and `maxAge` options. - -##### dotfiles - -Set how "dotfiles" are treated when encountered. A dotfile is a file -or directory that begins with a dot ("."). Note this check is done on -the path itself without checking if the path actually exists on the -disk. If `root` is specified, only the dotfiles above the root are -checked (i.e. the root itself can be within a dotfile when set -to "deny"). - - - `'allow'` No special treatment for dotfiles. - - `'deny'` Deny a request for a dotfile and 403/`next()`. - - `'ignore'` Pretend like the dotfile does not exist and 404/`next()`. - -The default value is `'ignore'`. - -##### etag - -Enable or disable etag generation, defaults to true. - -##### extensions - -Set file extension fallbacks. When set, if a file is not found, the given -extensions will be added to the file name and search for. The first that -exists will be served. Example: `['html', 'htm']`. - -The default value is `false`. - -##### fallthrough - -Set the middleware to have client errors fall-through as just unhandled -requests, otherwise forward a client error. The difference is that client -errors like a bad request or a request to a non-existent file will cause -this middleware to simply `next()` to your next middleware when this value -is `true`. When this value is `false`, these errors (even 404s), will invoke -`next(err)`. - -Typically `true` is desired such that multiple physical directories can be -mapped to the same web address or for routes to fill in non-existent files. - -The value `false` can be used if this middleware is mounted at a path that -is designed to be strictly a single file system directory, which allows for -short-circuiting 404s for less overhead. This middleware will also reply to -all methods. - -The default value is `true`. - -##### immutable - -Enable or disable the `immutable` directive in the `Cache-Control` response -header, defaults to `false`. If set to `true`, the `maxAge` option should -also be specified to enable caching. The `immutable` directive will prevent -supported clients from making conditional requests during the life of the -`maxAge` option to check if the file has changed. - -##### index - -By default this module will send "index.html" files in response to a request -on a directory. To disable this set `false` or to supply a new index pass a -string or an array in preferred order. - -##### lastModified - -Enable or disable `Last-Modified` header, defaults to true. Uses the file -system's last modified value. - -##### maxAge - -Provide a max-age in milliseconds for http caching, defaults to 0. This -can also be a string accepted by the [ms](https://www.npmjs.org/package/ms#readme) -module. - -##### redirect - -Redirect to trailing "/" when the pathname is a dir. Defaults to `true`. - -##### setHeaders - -Function to set custom headers on response. Alterations to the headers need to -occur synchronously. The function is called as `fn(res, path, stat)`, where -the arguments are: - - - `res` the response object - - `path` the file path that is being sent - - `stat` the stat object of the file that is being sent - -## Examples - -### Serve files with vanilla node.js http server - -```js -const finalhandler = require('finalhandler') -const http = require('http') -const serveStatic = require('serve-static') - -// Serve up public/ftp folder -const serve = serveStatic('public/ftp', { index: ['index.html', 'index.htm'] }) - -// Create server -const server = http.createServer((req, res) => { - serve(req, res, finalhandler(req, res)) -}) - -// Listen -server.listen(3000) -``` - -### Serve all files as downloads - -```js -const contentDisposition = require('content-disposition') -const finalhandler = require('finalhandler') -const http = require('http') -const serveStatic = require('serve-static') - -// Serve up public/ftp folder -const serve = serveStatic('public/ftp', { - index: false, - setHeaders: setHeaders -}) - -// Set header to force download -function setHeaders (res, path) { - res.setHeader('Content-Disposition', contentDisposition(path)) -} - -// Create server -const server = http.createServer((req, res) => { - serve(req, res, finalhandler(req, res)) -}) - -// Listen -server.listen(3000) -``` - -### Serving using express - -#### Simple - -This is a simple example of using Express. - -```js -const express = require('express') -const serveStatic = require('serve-static') - -const app = express() - -app.use(serveStatic('public/ftp', { index: ['default.html', 'default.htm'] })) -app.listen(3000) -``` - -#### Multiple roots - -This example shows a simple way to search through multiple directories. -Files are searched for in `public-optimized/` first, then `public/` second -as a fallback. - -```js -const express = require('express') -const path = require('path') -const serveStatic = require('serve-static') - -const app = express() - -app.use(serveStatic(path.join(__dirname, 'public-optimized'))) -app.use(serveStatic(path.join(__dirname, 'public'))) -app.listen(3000) -``` - -#### Different settings for paths - -This example shows how to set a different max age depending on the served -file. In this example, HTML files are not cached, while everything else -is for 1 day. - -```js -const express = require('express') -const path = require('path') -const serveStatic = require('serve-static') - -const app = express() - -app.use(serveStatic(path.join(__dirname, 'public'), { - maxAge: '1d', - setHeaders: setCustomCacheControl -})) - -app.listen(3000) - -function setCustomCacheControl (res, file) { - if (path.extname(file) === '.html') { - // Custom Cache-Control for HTML files - res.setHeader('Cache-Control', 'public, max-age=0') - } -} -``` - -## License - -[MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/serve-static/master -[coveralls-url]: https://coveralls.io/r/expressjs/serve-static?branch=master -[github-actions-ci-image]: https://badgen.net/github/checks/expressjs/serve-static/master?label=linux -[github-actions-ci-url]: https://github.com/expressjs/serve-static/actions/workflows/ci.yml -[node-image]: https://badgen.net/npm/node/serve-static -[node-url]: https://nodejs.org/en/download/ -[npm-downloads-image]: https://badgen.net/npm/dm/serve-static -[npm-url]: https://npmjs.org/package/serve-static -[npm-version-image]: https://badgen.net/npm/v/serve-static diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/index.js deleted file mode 100644 index 1bee463..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/index.js +++ /dev/null @@ -1,208 +0,0 @@ -/*! - * serve-static - * Copyright(c) 2010 Sencha Inc. - * Copyright(c) 2011 TJ Holowaychuk - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var encodeUrl = require('encodeurl') -var escapeHtml = require('escape-html') -var parseUrl = require('parseurl') -var resolve = require('path').resolve -var send = require('send') -var url = require('url') - -/** - * Module exports. - * @public - */ - -module.exports = serveStatic - -/** - * @param {string} root - * @param {object} [options] - * @return {function} - * @public - */ - -function serveStatic (root, options) { - if (!root) { - throw new TypeError('root path required') - } - - if (typeof root !== 'string') { - throw new TypeError('root path must be a string') - } - - // copy options object - var opts = Object.create(options || null) - - // fall-though - var fallthrough = opts.fallthrough !== false - - // default redirect - var redirect = opts.redirect !== false - - // headers listener - var setHeaders = opts.setHeaders - - if (setHeaders && typeof setHeaders !== 'function') { - throw new TypeError('option setHeaders must be function') - } - - // setup options for send - opts.maxage = opts.maxage || opts.maxAge || 0 - opts.root = resolve(root) - - // construct directory listener - var onDirectory = redirect - ? createRedirectDirectoryListener() - : createNotFoundDirectoryListener() - - return function serveStatic (req, res, next) { - if (req.method !== 'GET' && req.method !== 'HEAD') { - if (fallthrough) { - return next() - } - - // method not allowed - res.statusCode = 405 - res.setHeader('Allow', 'GET, HEAD') - res.setHeader('Content-Length', '0') - res.end() - return - } - - var forwardError = !fallthrough - var originalUrl = parseUrl.original(req) - var path = parseUrl(req).pathname - - // make sure redirect occurs at mount - if (path === '/' && originalUrl.pathname.substr(-1) !== '/') { - path = '' - } - - // create send stream - var stream = send(req, path, opts) - - // add directory handler - stream.on('directory', onDirectory) - - // add headers listener - if (setHeaders) { - stream.on('headers', setHeaders) - } - - // add file listener for fallthrough - if (fallthrough) { - stream.on('file', function onFile () { - // once file is determined, always forward error - forwardError = true - }) - } - - // forward errors - stream.on('error', function error (err) { - if (forwardError || !(err.statusCode < 500)) { - next(err) - return - } - - next() - }) - - // pipe - stream.pipe(res) - } -} - -/** - * Collapse all leading slashes into a single slash - * @private - */ -function collapseLeadingSlashes (str) { - for (var i = 0; i < str.length; i++) { - if (str.charCodeAt(i) !== 0x2f /* / */) { - break - } - } - - return i > 1 - ? '/' + str.substr(i) - : str -} - -/** - * Create a minimal HTML document. - * - * @param {string} title - * @param {string} body - * @private - */ - -function createHtmlDocument (title, body) { - return '\n' + - '\n' + - '\n' + - '\n' + - '' + title + '\n' + - '\n' + - '\n' + - '
' + body + '
\n' + - '\n' + - '\n' -} - -/** - * Create a directory listener that just 404s. - * @private - */ - -function createNotFoundDirectoryListener () { - return function notFound () { - this.error(404) - } -} - -/** - * Create a directory listener that performs a redirect. - * @private - */ - -function createRedirectDirectoryListener () { - return function redirect (res) { - if (this.hasTrailingSlash()) { - this.error(404) - return - } - - // get original URL - var originalUrl = parseUrl.original(this.req) - - // append trailing slash - originalUrl.path = null - originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + '/') - - // reformat the URL - var loc = encodeUrl(url.format(originalUrl)) - var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc)) - - // send redirect response - res.statusCode = 301 - res.setHeader('Content-Type', 'text/html; charset=UTF-8') - res.setHeader('Content-Length', Buffer.byteLength(doc)) - res.setHeader('Content-Security-Policy', "default-src 'none'") - res.setHeader('X-Content-Type-Options', 'nosniff') - res.setHeader('Location', loc) - res.end(doc) - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/package.json deleted file mode 100644 index 5fb5b02..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "serve-static", - "description": "Serve static files", - "version": "2.2.1", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "repository": "expressjs/serve-static", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.2.0" - }, - "devDependencies": { - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.32.0", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "^10.7.0", - "nyc": "^17.0.0", - "supertest": "^6.3.4" - }, - "files": [ - "LICENSE", - "index.js" - ], - "engines": { - "node": ">= 18" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "version": "node scripts/version-history.js && git add HISTORY.md" - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/HISTORY.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/HISTORY.md deleted file mode 100644 index 6812655..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/HISTORY.md +++ /dev/null @@ -1,292 +0,0 @@ -2.0.1 / 2025-03-27 -========== - -2.0.0 / 2024-08-31 -========== - - * Drop node <18 - * Use `content-type@^1.0.5` and `media-typer@^1.0.0` for type validation - - No behavior changes, upgrades `media-typer` - * deps: mime-types@^3.0.0 - - Add `application/toml` with extension `.toml` - - Add `application/ubjson` with extension `.ubj` - - Add `application/x-keepass2` with extension `.kdbx` - - Add deprecated iWorks mime types and extensions - - Add extension `.amr` to `audio/amr` - - Add extension `.cjs` to `application/node` - - Add extension `.dbf` to `application/vnd.dbf` - - Add extension `.m4s` to `video/iso.segment` - - Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - - Add extension `.mxmf` to `audio/mobile-xmf` - - Add extension `.opus` to `audio/ogg` - - Add extension `.rar` to `application/vnd.rar` - - Add extension `.td` to `application/urc-targetdesc+xml` - - Add extension `.trig` to `application/trig` - - Add extensions from IANA for `application/*+xml` types - - Add `image/avif` with extension `.avif` - - Add `image/ktx2` with extension `.ktx2` - - Add `image/vnd.ms-dds` with extension `.dds` - - Add new upstream MIME types - - Fix extension of `application/vnd.apple.keynote` to be `.key` - - Remove ambigious extensions from IANA for `application/*+xml` types - - Update primary extension to `.es` for `application/ecmascript` - -1.6.18 / 2019-04-26 -=================== - - * Fix regression passing request object to `typeis.is` - -1.6.17 / 2019-04-25 -=================== - - * deps: mime-types@~2.1.24 - - Add Apple file extensions from IANA - - Add extension `.csl` to `application/vnd.citationstyles.style+xml` - - Add extension `.es` to `application/ecmascript` - - Add extension `.nq` to `application/n-quads` - - Add extension `.nt` to `application/n-triples` - - Add extension `.owl` to `application/rdf+xml` - - Add extensions `.siv` and `.sieve` to `application/sieve` - - Add extensions from IANA for `image/*` types - - Add extensions from IANA for `model/*` types - - Add extensions to HEIC image types - - Add new mime types - - Add `text/mdx` with extension `.mdx` - * perf: prevent internal `throw` on invalid type - -1.6.16 / 2018-02-16 -=================== - - * deps: mime-types@~2.1.18 - - Add `application/raml+yaml` with extension `.raml` - - Add `application/wasm` with extension `.wasm` - - Add `text/shex` with extension `.shex` - - Add extensions for JPEG-2000 images - - Add extensions from IANA for `message/*` types - - Add extension `.mjs` to `application/javascript` - - Add extension `.wadl` to `application/vnd.sun.wadl+xml` - - Add extension `.gz` to `application/gzip` - - Add glTF types and extensions - - Add new mime types - - Update extensions `.md` and `.markdown` to be `text/markdown` - - Update font MIME types - - Update `text/hjson` to registered `application/hjson` - -1.6.15 / 2017-03-31 -=================== - - * deps: mime-types@~2.1.15 - - Add new mime types - -1.6.14 / 2016-11-18 -=================== - - * deps: mime-types@~2.1.13 - - Add new mime types - -1.6.13 / 2016-05-18 -=================== - - * deps: mime-types@~2.1.11 - - Add new mime types - -1.6.12 / 2016-02-28 -=================== - - * deps: mime-types@~2.1.10 - - Add new mime types - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - -1.6.11 / 2016-01-29 -=================== - - * deps: mime-types@~2.1.9 - - Add new mime types - -1.6.10 / 2015-12-01 -=================== - - * deps: mime-types@~2.1.8 - - Add new mime types - -1.6.9 / 2015-09-27 -================== - - * deps: mime-types@~2.1.7 - - Add new mime types - -1.6.8 / 2015-09-04 -================== - - * deps: mime-types@~2.1.6 - - Add new mime types - -1.6.7 / 2015-08-20 -================== - - * Fix type error when given invalid type to match against - * deps: mime-types@~2.1.5 - - Add new mime types - -1.6.6 / 2015-07-31 -================== - - * deps: mime-types@~2.1.4 - - Add new mime types - -1.6.5 / 2015-07-16 -================== - - * deps: mime-types@~2.1.3 - - Add new mime types - -1.6.4 / 2015-07-01 -================== - - * deps: mime-types@~2.1.2 - - Add new mime types - * perf: enable strict mode - * perf: remove argument reassignment - -1.6.3 / 2015-06-08 -================== - - * deps: mime-types@~2.1.1 - - Add new mime types - * perf: reduce try block size - * perf: remove bitwise operations - -1.6.2 / 2015-05-10 -================== - - * deps: mime-types@~2.0.11 - - Add new mime types - -1.6.1 / 2015-03-13 -================== - - * deps: mime-types@~2.0.10 - - Add new mime types - -1.6.0 / 2015-02-12 -================== - - * fix false-positives in `hasBody` `Transfer-Encoding` check - * support wildcard for both type and subtype (`*/*`) - -1.5.7 / 2015-02-09 -================== - - * fix argument reassignment - * deps: mime-types@~2.0.9 - - Add new mime types - -1.5.6 / 2015-01-29 -================== - - * deps: mime-types@~2.0.8 - - Add new mime types - -1.5.5 / 2014-12-30 -================== - - * deps: mime-types@~2.0.7 - - Add new mime types - - Fix missing extensions - - Fix various invalid MIME type entries - - Remove example template MIME types - - deps: mime-db@~1.5.0 - -1.5.4 / 2014-12-10 -================== - - * deps: mime-types@~2.0.4 - - Add new mime types - - deps: mime-db@~1.3.0 - -1.5.3 / 2014-11-09 -================== - - * deps: mime-types@~2.0.3 - - Add new mime types - - deps: mime-db@~1.2.0 - -1.5.2 / 2014-09-28 -================== - - * deps: mime-types@~2.0.2 - - Add new mime types - - deps: mime-db@~1.1.0 - -1.5.1 / 2014-09-07 -================== - - * Support Node.js 0.6 - * deps: media-typer@0.3.0 - * deps: mime-types@~2.0.1 - - Support Node.js 0.6 - -1.5.0 / 2014-09-05 -================== - - * fix `hasbody` to be true for `content-length: 0` - -1.4.0 / 2014-09-02 -================== - - * update mime-types - -1.3.2 / 2014-06-24 -================== - - * use `~` range on mime-types - -1.3.1 / 2014-06-19 -================== - - * fix global variable leak - -1.3.0 / 2014-06-19 -================== - - * improve type parsing - - - invalid media type never matches - - media type not case-sensitive - - extra LWS does not affect results - -1.2.2 / 2014-06-19 -================== - - * fix behavior on unknown type argument - -1.2.1 / 2014-06-03 -================== - - * switch dependency from `mime` to `mime-types@1.0.0` - -1.2.0 / 2014-05-11 -================== - - * support suffix matching: - - - `+json` matches `application/vnd+json` - - `*/vnd+json` matches `application/vnd+json` - - `application/*+json` matches `application/vnd+json` - -1.1.0 / 2014-04-12 -================== - - * add non-array values support - * expose internal utilities: - - - `.is()` - - `.hasBody()` - - `.normalize()` - - `.match()` - -1.0.1 / 2014-03-30 -================== - - * add `multipart` as a shorthand diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/LICENSE b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/LICENSE deleted file mode 100644 index 386b7b6..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/README.md b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/README.md deleted file mode 100644 index d23946e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/README.md +++ /dev/null @@ -1,198 +0,0 @@ -# type-is - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Infer the content-type of a request. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install type-is -``` - -## API - -```js -var http = require('http') -var typeis = require('type-is') - -http.createServer(function (req, res) { - var istext = typeis(req, ['text/*']) - res.end('you ' + (istext ? 'sent' : 'did not send') + ' me text') -}) -``` - -### typeis(request, types) - -Checks if the `request` is one of the `types`. If the request has no body, -even if there is a `Content-Type` header, then `null` is returned. If the -`Content-Type` header is invalid or does not matches any of the `types`, then -`false` is returned. Otherwise, a string of the type that matched is returned. - -The `request` argument is expected to be a Node.js HTTP request. The `types` -argument is an array of type strings. - -Each type in the `types` array can be one of the following: - -- A file extension name such as `json`. This name will be returned if matched. -- A mime type such as `application/json`. -- A mime type with a wildcard such as `*/*` or `*/json` or `application/*`. - The full mime type will be returned if matched. -- A suffix such as `+json`. This can be combined with a wildcard such as - `*/vnd+json` or `application/*+json`. The full mime type will be returned - if matched. - -Some examples to illustrate the inputs and returned value: - -```js -// req.headers.content-type = 'application/json' - -typeis(req, ['json']) // => 'json' -typeis(req, ['html', 'json']) // => 'json' -typeis(req, ['application/*']) // => 'application/json' -typeis(req, ['application/json']) // => 'application/json' - -typeis(req, ['html']) // => false -``` - -### typeis.hasBody(request) - -Returns a Boolean if the given `request` has a body, regardless of the -`Content-Type` header. - -Having a body has no relation to how large the body is (it may be 0 bytes). -This is similar to how file existence works. If a body does exist, then this -indicates that there is data to read from the Node.js request stream. - -```js -if (typeis.hasBody(req)) { - // read the body, since there is one - - req.on('data', function (chunk) { - // ... - }) -} -``` - -### typeis.is(mediaType, types) - -Checks if the `mediaType` is one of the `types`. If the `mediaType` is invalid -or does not matches any of the `types`, then `false` is returned. Otherwise, a -string of the type that matched is returned. - -The `mediaType` argument is expected to be a -[media type](https://tools.ietf.org/html/rfc6838) string. The `types` argument -is an array of type strings. - -Each type in the `types` array can be one of the following: - -- A file extension name such as `json`. This name will be returned if matched. -- A mime type such as `application/json`. -- A mime type with a wildcard such as `*/*` or `*/json` or `application/*`. - The full mime type will be returned if matched. -- A suffix such as `+json`. This can be combined with a wildcard such as - `*/vnd+json` or `application/*+json`. The full mime type will be returned - if matched. - -Some examples to illustrate the inputs and returned value: - -```js -var mediaType = 'application/json' - -typeis.is(mediaType, ['json']) // => 'json' -typeis.is(mediaType, ['html', 'json']) // => 'json' -typeis.is(mediaType, ['application/*']) // => 'application/json' -typeis.is(mediaType, ['application/json']) // => 'application/json' - -typeis.is(mediaType, ['html']) // => false -``` - -### typeis.match(expected, actual) - -Match the type string `expected` with `actual`, taking in to account wildcards. -A wildcard can only be in the type of the subtype part of a media type and only -in the `expected` value (as `actual` should be the real media type to match). A -suffix can still be included even with a wildcard subtype. If an input is -malformed, `false` will be returned. - -```js -typeis.match('text/html', 'text/html') // => true -typeis.match('*/html', 'text/html') // => true -typeis.match('text/*', 'text/html') // => true -typeis.match('*/*', 'text/html') // => true -typeis.match('*/*+json', 'application/x-custom+json') // => true -``` - -### typeis.normalize(type) - -Normalize a `type` string. This works by performing the following: - -- If the `type` is not a string, `false` is returned. -- If the string starts with `+` (so it is a `+suffix` shorthand like `+json`), - then it is expanded to contain the complete wildcard notation of `*/*+suffix`. -- If the string contains a `/`, then it is returned as the type. -- Else the string is assumed to be a file extension and the mapped media type is - returned, or `false` is there is no mapping. - -This includes two special mappings: - -- `'multipart'` -> `'multipart/*'` -- `'urlencoded'` -> `'application/x-www-form-urlencoded'` - -## Examples - -### Example body parser - -```js -var express = require('express') -var typeis = require('type-is') - -var app = express() - -app.use(function bodyParser (req, res, next) { - if (!typeis.hasBody(req)) { - return next() - } - - switch (typeis(req, ['urlencoded', 'json', 'multipart'])) { - case 'urlencoded': - // parse urlencoded body - throw new Error('implement urlencoded body parsing') - case 'json': - // parse json body - throw new Error('implement json body parsing') - case 'multipart': - // parse multipart body - throw new Error('implement multipart body parsing') - default: - // 415 error code - res.statusCode = 415 - res.end() - break - } -}) -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/jshttp/type-is/master?label=ci -[ci-url]: https://github.com/jshttp/type-is/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/type-is/master -[coveralls-url]: https://coveralls.io/r/jshttp/type-is?branch=master -[node-version-image]: https://badgen.net/npm/node/type-is -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/type-is -[npm-url]: https://npmjs.org/package/type-is -[npm-version-image]: https://badgen.net/npm/v/type-is -[travis-image]: https://badgen.net/travis/jshttp/type-is/master -[travis-url]: https://travis-ci.org/jshttp/type-is diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/index.js b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/index.js deleted file mode 100644 index e773845..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/index.js +++ /dev/null @@ -1,250 +0,0 @@ -/*! - * type-is - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var contentType = require('content-type') -var mime = require('mime-types') -var typer = require('media-typer') - -/** - * Module exports. - * @public - */ - -module.exports = typeofrequest -module.exports.is = typeis -module.exports.hasBody = hasbody -module.exports.normalize = normalize -module.exports.match = mimeMatch - -/** - * Compare a `value` content-type with `types`. - * Each `type` can be an extension like `html`, - * a special shortcut like `multipart` or `urlencoded`, - * or a mime type. - * - * If no types match, `false` is returned. - * Otherwise, the first `type` that matches is returned. - * - * @param {String} value - * @param {Array} types - * @public - */ - -function typeis (value, types_) { - var i - var types = types_ - - // remove parameters and normalize - var val = tryNormalizeType(value) - - // no type or invalid - if (!val) { - return false - } - - // support flattened arguments - if (types && !Array.isArray(types)) { - types = new Array(arguments.length - 1) - for (i = 0; i < types.length; i++) { - types[i] = arguments[i + 1] - } - } - - // no types, return the content type - if (!types || !types.length) { - return val - } - - var type - for (i = 0; i < types.length; i++) { - if (mimeMatch(normalize(type = types[i]), val)) { - return type[0] === '+' || type.indexOf('*') !== -1 - ? val - : type - } - } - - // no matches - return false -} - -/** - * Check if a request has a request body. - * A request with a body __must__ either have `transfer-encoding` - * or `content-length` headers set. - * http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3 - * - * @param {Object} request - * @return {Boolean} - * @public - */ - -function hasbody (req) { - return req.headers['transfer-encoding'] !== undefined || - !isNaN(req.headers['content-length']) -} - -/** - * Check if the incoming request contains the "Content-Type" - * header field, and it contains any of the give mime `type`s. - * If there is no request body, `null` is returned. - * If there is no content type, `false` is returned. - * Otherwise, it returns the first `type` that matches. - * - * Examples: - * - * // With Content-Type: text/html; charset=utf-8 - * this.is('html'); // => 'html' - * this.is('text/html'); // => 'text/html' - * this.is('text/*', 'application/json'); // => 'text/html' - * - * // When Content-Type is application/json - * this.is('json', 'urlencoded'); // => 'json' - * this.is('application/json'); // => 'application/json' - * this.is('html', 'application/*'); // => 'application/json' - * - * this.is('html'); // => false - * - * @param {Object} req - * @param {(String|Array)} types... - * @return {(String|false|null)} - * @public - */ - -function typeofrequest (req, types_) { - // no body - if (!hasbody(req)) return null - // support flattened arguments - var types = arguments.length > 2 - ? Array.prototype.slice.call(arguments, 1) - : types_ - // request content type - var value = req.headers['content-type'] - - return typeis(value, types) -} - -/** - * Normalize a mime type. - * If it's a shorthand, expand it to a valid mime type. - * - * In general, you probably want: - * - * var type = is(req, ['urlencoded', 'json', 'multipart']); - * - * Then use the appropriate body parsers. - * These three are the most common request body types - * and are thus ensured to work. - * - * @param {String} type - * @return {String|false|null} - * @public - */ - -function normalize (type) { - if (typeof type !== 'string') { - // invalid type - return false - } - - switch (type) { - case 'urlencoded': - return 'application/x-www-form-urlencoded' - case 'multipart': - return 'multipart/*' - } - - if (type[0] === '+') { - // "+json" -> "*/*+json" expando - return '*/*' + type - } - - return type.indexOf('/') === -1 - ? mime.lookup(type) - : type -} - -/** - * Check if `expected` mime type - * matches `actual` mime type with - * wildcard and +suffix support. - * - * @param {String} expected - * @param {String} actual - * @return {Boolean} - * @public - */ - -function mimeMatch (expected, actual) { - // invalid type - if (expected === false) { - return false - } - - // split types - var actualParts = actual.split('/') - var expectedParts = expected.split('/') - - // invalid format - if (actualParts.length !== 2 || expectedParts.length !== 2) { - return false - } - - // validate type - if (expectedParts[0] !== '*' && expectedParts[0] !== actualParts[0]) { - return false - } - - // validate suffix wildcard - if (expectedParts[1].slice(0, 2) === '*+') { - return expectedParts[1].length <= actualParts[1].length + 1 && - expectedParts[1].slice(1) === actualParts[1].slice(1 - expectedParts[1].length) - } - - // validate subtype - if (expectedParts[1] !== '*' && expectedParts[1] !== actualParts[1]) { - return false - } - - return true -} - -/** - * Normalize a type and remove parameters. - * - * @param {string} value - * @return {(string|null)} - * @private - */ -function normalizeType (value) { - // Parse the type - var type = contentType.parse(value).type - - return typer.test(type) ? type : null -} - -/** - * Try to normalize a type and remove parameters. - * - * @param {string} value - * @return {(string|null)} - * @private - */ -function tryNormalizeType (value) { - try { - return value ? normalizeType(value) : null - } catch (err) { - return null - } -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/package.json deleted file mode 100644 index 08586d2..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "type-is", - "description": "Infer the content-type of a request.", - "version": "2.0.1", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "repository": "jshttp/type-is", - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "devDependencies": { - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.2.1", - "nyc": "15.1.0" - }, - "engines": { - "node": ">= 0.6" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "index.js" - ], - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test:debug": "mocha --reporter spec --check-leaks --inspect --inspect-brk test/", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - }, - "keywords": [ - "content", - "type", - "checking" - ] -} diff --git a/mcp-server/node_modules/@modelcontextprotocol/sdk/package.json b/mcp-server/node_modules/@modelcontextprotocol/sdk/package.json deleted file mode 100644 index 41d850e..0000000 --- a/mcp-server/node_modules/@modelcontextprotocol/sdk/package.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "name": "@modelcontextprotocol/sdk", - "version": "1.25.1", - "description": "Model Context Protocol implementation for TypeScript", - "license": "MIT", - "author": "Anthropic, PBC (https://anthropic.com)", - "homepage": "https://modelcontextprotocol.io", - "bugs": "https://github.com/modelcontextprotocol/typescript-sdk/issues", - "type": "module", - "repository": { - "type": "git", - "url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git" - }, - "engines": { - "node": ">=18" - }, - "keywords": [ - "modelcontextprotocol", - "mcp" - ], - "exports": { - ".": { - "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js" - }, - "./client": { - "import": "./dist/esm/client/index.js", - "require": "./dist/cjs/client/index.js" - }, - "./server": { - "import": "./dist/esm/server/index.js", - "require": "./dist/cjs/server/index.js" - }, - "./validation": { - "import": "./dist/esm/validation/index.js", - "require": "./dist/cjs/validation/index.js" - }, - "./validation/ajv": { - "import": "./dist/esm/validation/ajv-provider.js", - "require": "./dist/cjs/validation/ajv-provider.js" - }, - "./validation/cfworker": { - "import": "./dist/esm/validation/cfworker-provider.js", - "require": "./dist/cjs/validation/cfworker-provider.js" - }, - "./experimental": { - "import": "./dist/esm/experimental/index.js", - "require": "./dist/cjs/experimental/index.js" - }, - "./experimental/tasks": { - "import": "./dist/esm/experimental/tasks/index.js", - "require": "./dist/cjs/experimental/tasks/index.js" - }, - "./*": { - "import": "./dist/esm/*", - "require": "./dist/cjs/*" - } - }, - "typesVersions": { - "*": { - "*": [ - "./dist/esm/*" - ] - } - }, - "files": [ - "dist" - ], - "scripts": { - "fetch:spec-types": "tsx scripts/fetch-spec-types.ts", - "typecheck": "tsgo --noEmit", - "build": "npm run build:esm && npm run build:cjs", - "build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json", - "build:esm:w": "npm run build:esm -- -w", - "build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json", - "build:cjs:w": "npm run build:cjs -- -w", - "examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth", - "prepack": "npm run build:esm && npm run build:cjs", - "lint": "eslint src/ && prettier --check .", - "lint:fix": "eslint src/ --fix && prettier --write .", - "check": "npm run typecheck && npm run lint", - "test": "vitest run", - "test:watch": "vitest", - "start": "npm run server", - "server": "tsx watch --clear-screen=false scripts/cli.ts server", - "client": "tsx scripts/cli.ts client" - }, - "dependencies": { - "@hono/node-server": "^1.19.7", - "ajv": "^8.17.1", - "ajv-formats": "^3.0.1", - "content-type": "^1.0.5", - "cors": "^2.8.5", - "cross-spawn": "^7.0.5", - "eventsource": "^3.0.2", - "eventsource-parser": "^3.0.0", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "jose": "^6.1.1", - "json-schema-typed": "^8.0.2", - "pkce-challenge": "^5.0.0", - "raw-body": "^3.0.0", - "zod": "^3.25 || ^4.0", - "zod-to-json-schema": "^3.25.0" - }, - "peerDependencies": { - "@cfworker/json-schema": "^4.1.1", - "zod": "^3.25 || ^4.0" - }, - "peerDependenciesMeta": { - "@cfworker/json-schema": { - "optional": true - }, - "zod": { - "optional": false - } - }, - "devDependencies": { - "@cfworker/json-schema": "^4.1.1", - "@eslint/js": "^9.39.1", - "@types/content-type": "^1.1.8", - "@types/cors": "^2.8.17", - "@types/cross-spawn": "^6.0.6", - "@types/eventsource": "^1.1.15", - "@types/express": "^5.0.0", - "@types/express-serve-static-core": "^5.1.0", - "@types/node": "^22.12.0", - "@types/supertest": "^6.0.2", - "@types/ws": "^8.5.12", - "@typescript/native-preview": "^7.0.0-dev.20251103.1", - "eslint": "^9.8.0", - "eslint-config-prettier": "^10.1.8", - "eslint-plugin-n": "^17.23.1", - "prettier": "3.6.2", - "supertest": "^7.0.0", - "tsx": "^4.16.5", - "typescript": "^5.5.4", - "typescript-eslint": "^8.48.1", - "vitest": "^4.0.8", - "ws": "^8.18.0" - }, - "resolutions": { - "strip-ansi": "6.0.1" - } -} diff --git a/mcp-server/node_modules/@prisma/debug/LICENSE b/mcp-server/node_modules/@prisma/debug/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/@prisma/debug/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/@prisma/debug/README.md b/mcp-server/node_modules/@prisma/debug/README.md deleted file mode 100644 index f2e000c..0000000 --- a/mcp-server/node_modules/@prisma/debug/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# @prisma/debug - -A cached [`debug`](https://github.com/visionmedia/debug/). - ---- - -⚠️ **Warning**: This package is intended for Prisma's internal use. -Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning. - -If you are using this package, it would be helpful if you could help us gain an understanding where, how and why you are using it. Your feedback will be valuable to us to define a better API. Please share this information at https://github.com/prisma/prisma/discussions/13877 - Thanks! - -## Usage - -```ts -import Debug, { getLogs } from '@prisma/debug' - -const debug = Debug('my-namespace') - -try { - debug('hello') - debug(process.env) - throw new Error('oops') -} catch (e) { - console.error(e) - console.error(`We just crashed. But no worries, here are the debug logs:`) - // get 10 last lines of debug logs - console.error(getLogs(10)) -} -``` diff --git a/mcp-server/node_modules/@prisma/debug/dist/index.d.ts b/mcp-server/node_modules/@prisma/debug/dist/index.d.ts deleted file mode 100644 index e931707..0000000 --- a/mcp-server/node_modules/@prisma/debug/dist/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Create a new debug instance with the given namespace. - * - * @example - * ```ts - * import Debug from '@prisma/debug' - * const debug = Debug('prisma:client') - * debug('Hello World') - * ``` - */ -declare function debugCreate(namespace: string): ((...args: any[]) => void) & { - color: string; - enabled: boolean; - namespace: string; - log: (...args: string[]) => void; - extend: () => void; -}; -declare const Debug: typeof debugCreate & { - enable(namespace: any): void; - disable(): any; - enabled(namespace: string): boolean; - log: (...args: string[]) => void; - formatters: {}; -}; -/** - * We can get the logs for all the last {@link MAX_ARGS_HISTORY} ${@link debugCall} that - * have happened in the different packages. Useful to generate error report links. - * @see https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers - * @param numChars - * @returns - */ -export declare function getLogs(numChars?: number): string; -export declare function clearLogs(): void; -export { Debug }; -export default Debug; diff --git a/mcp-server/node_modules/@prisma/debug/dist/index.js b/mcp-server/node_modules/@prisma/debug/dist/index.js deleted file mode 100644 index 0781e92..0000000 --- a/mcp-server/node_modules/@prisma/debug/dist/index.js +++ /dev/null @@ -1,236 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - Debug: () => Debug, - clearLogs: () => clearLogs, - default: () => src_default, - getLogs: () => getLogs -}); -module.exports = __toCommonJS(src_exports); - -// ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs -var colors_exports = {}; -__export(colors_exports, { - $: () => $, - bgBlack: () => bgBlack, - bgBlue: () => bgBlue, - bgCyan: () => bgCyan, - bgGreen: () => bgGreen, - bgMagenta: () => bgMagenta, - bgRed: () => bgRed, - bgWhite: () => bgWhite, - bgYellow: () => bgYellow, - black: () => black, - blue: () => blue, - bold: () => bold, - cyan: () => cyan, - dim: () => dim, - gray: () => gray, - green: () => green, - grey: () => grey, - hidden: () => hidden, - inverse: () => inverse, - italic: () => italic, - magenta: () => magenta, - red: () => red, - reset: () => reset, - strikethrough: () => strikethrough, - underline: () => underline, - white: () => white, - yellow: () => yellow -}); -var FORCE_COLOR; -var NODE_DISABLE_COLORS; -var NO_COLOR; -var TERM; -var isTTY = true; -if (typeof process !== "undefined") { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} -var $ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY) -}; -function init(x, y) { - let rgx = new RegExp(`\\x1b\\[${y}m`, "g"); - let open = `\x1B[${x}m`, close = `\x1B[${y}m`; - return function(txt) { - if (!$.enabled || txt == null) return txt; - return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close; - }; -} -var reset = init(0, 0); -var bold = init(1, 22); -var dim = init(2, 22); -var italic = init(3, 23); -var underline = init(4, 24); -var inverse = init(7, 27); -var hidden = init(8, 28); -var strikethrough = init(9, 29); -var black = init(30, 39); -var red = init(31, 39); -var green = init(32, 39); -var yellow = init(33, 39); -var blue = init(34, 39); -var magenta = init(35, 39); -var cyan = init(36, 39); -var white = init(37, 39); -var gray = init(90, 39); -var grey = init(90, 39); -var bgBlack = init(40, 49); -var bgRed = init(41, 49); -var bgGreen = init(42, 49); -var bgYellow = init(43, 49); -var bgBlue = init(44, 49); -var bgMagenta = init(45, 49); -var bgCyan = init(46, 49); -var bgWhite = init(47, 49); - -// src/index.ts -var MAX_ARGS_HISTORY = 100; -var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"]; -var argsHistory = []; -var lastTimestamp = Date.now(); -var lastColor = 0; -var processEnv = typeof process !== "undefined" ? process.env : {}; -globalThis.DEBUG ??= processEnv.DEBUG ?? ""; -globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true; -var topProps = { - enable(namespace) { - if (typeof namespace === "string") { - globalThis.DEBUG = namespace; - } - }, - disable() { - const prev = globalThis.DEBUG; - globalThis.DEBUG = ""; - return prev; - }, - // this is the core logic to check if logging should happen or not - enabled(namespace) { - const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => { - return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&"); - }); - const isListened = listenedNamespaces.some((listenedNamespace) => { - if (listenedNamespace === "" || listenedNamespace[0] === "-") return false; - return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$")); - }); - const isExcluded = listenedNamespaces.some((listenedNamespace) => { - if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false; - return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$")); - }); - return isListened && !isExcluded; - }, - log: (...args) => { - const [namespace, format, ...rest] = args; - const logWithFormatting = console.warn ?? console.log; - logWithFormatting(`${namespace} ${format}`, ...rest); - }, - formatters: {} - // not implemented -}; -function debugCreate(namespace) { - const instanceProps = { - color: COLORS[lastColor++ % COLORS.length], - enabled: topProps.enabled(namespace), - namespace, - log: topProps.log, - extend: () => { - } - // not implemented - }; - const debugCall = (...args) => { - const { enabled, namespace: namespace2, color, log } = instanceProps; - if (args.length !== 0) { - argsHistory.push([namespace2, ...args]); - } - if (argsHistory.length > MAX_ARGS_HISTORY) { - argsHistory.shift(); - } - if (topProps.enabled(namespace2) || enabled) { - const stringArgs = args.map((arg) => { - if (typeof arg === "string") { - return arg; - } - return safeStringify(arg); - }); - const ms = `+${Date.now() - lastTimestamp}ms`; - lastTimestamp = Date.now(); - if (globalThis.DEBUG_COLORS) { - log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms)); - } else { - log(namespace2, ...stringArgs, ms); - } - } - }; - return new Proxy(debugCall, { - get: (_, prop) => instanceProps[prop], - set: (_, prop, value) => instanceProps[prop] = value - }); -} -var Debug = new Proxy(debugCreate, { - get: (_, prop) => topProps[prop], - set: (_, prop, value) => topProps[prop] = value -}); -function safeStringify(value, indent = 2) { - const cache = /* @__PURE__ */ new Set(); - return JSON.stringify( - value, - (key, value2) => { - if (typeof value2 === "object" && value2 !== null) { - if (cache.has(value2)) { - return `[Circular *]`; - } - cache.add(value2); - } else if (typeof value2 === "bigint") { - return value2.toString(); - } - return value2; - }, - indent - ); -} -function getLogs(numChars = 7500) { - const logs = argsHistory.map(([namespace, ...args]) => { - return `${namespace} ${args.map((arg) => { - if (typeof arg === "string") { - return arg; - } else { - return JSON.stringify(arg); - } - }).join(" ")}`; - }).join("\n"); - if (logs.length < numChars) { - return logs; - } - return logs.slice(-numChars); -} -function clearLogs() { - argsHistory.length = 0; -} -var src_default = Debug; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Debug, - clearLogs, - getLogs -}); diff --git a/mcp-server/node_modules/@prisma/debug/dist/util.d.ts b/mcp-server/node_modules/@prisma/debug/dist/util.d.ts deleted file mode 100644 index d7a0972..0000000 --- a/mcp-server/node_modules/@prisma/debug/dist/util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function removeISODate(str: string): string; -export declare function sanitizeTestLogs(str: string): string; diff --git a/mcp-server/node_modules/@prisma/debug/dist/util.js b/mcp-server/node_modules/@prisma/debug/dist/util.js deleted file mode 100644 index 60c2e83..0000000 --- a/mcp-server/node_modules/@prisma/debug/dist/util.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js -var require_ansi_regex = __commonJS({ - "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) { - "use strict"; - module2.exports = ({ onlyFirst = false } = {}) => { - const pattern = [ - "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", - "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" - ].join("|"); - return new RegExp(pattern, onlyFirst ? void 0 : "g"); - }; - } -}); - -// ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js -var require_strip_ansi = __commonJS({ - "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) { - "use strict"; - var ansiRegex = require_ansi_regex(); - module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string; - } -}); - -// src/util.ts -var util_exports = {}; -__export(util_exports, { - removeISODate: () => removeISODate, - sanitizeTestLogs: () => sanitizeTestLogs -}); -module.exports = __toCommonJS(util_exports); -var import_strip_ansi = __toESM(require_strip_ansi()); -function removeISODate(str) { - return str.replace(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/gim, ""); -} -function sanitizeTestLogs(str) { - return (0, import_strip_ansi.default)(str).split("\n").map((l) => removeISODate(l.replace(/\+\d+ms$/, "")).trim()).join("\n"); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - removeISODate, - sanitizeTestLogs -}); diff --git a/mcp-server/node_modules/@prisma/debug/package.json b/mcp-server/node_modules/@prisma/debug/package.json deleted file mode 100644 index e139c7d..0000000 --- a/mcp-server/node_modules/@prisma/debug/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@prisma/debug", - "version": "5.22.0", - "description": "This package is intended for Prisma's internal use", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "license": "Apache-2.0", - "author": "Tim Suchanek ", - "homepage": "https://www.prisma.io", - "repository": { - "type": "git", - "url": "https://github.com/prisma/prisma.git", - "directory": "packages/debug" - }, - "bugs": "https://github.com/prisma/prisma/issues", - "devDependencies": { - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "esbuild": "0.23.0", - "jest": "29.7.0", - "jest-junit": "16.0.0", - "strip-ansi": "6.0.1", - "kleur": "4.1.5", - "typescript": "5.4.5" - }, - "files": [ - "README.md", - "dist" - ], - "dependencies": {}, - "sideEffects": false, - "scripts": { - "dev": "DEV=true tsx helpers/build.ts", - "build": "tsx helpers/build.ts", - "test": "jest" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines-version/LICENSE b/mcp-server/node_modules/@prisma/engines-version/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/@prisma/engines-version/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/@prisma/engines-version/README.md b/mcp-server/node_modules/@prisma/engines-version/README.md deleted file mode 100644 index e3c3314..0000000 --- a/mcp-server/node_modules/@prisma/engines-version/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# `@prisma/engines-version` - -This package exports the Prisma Engines version to be downloaded from Prisma CDN. - -⚠️ **Warning**: This package is intended for Prisma's internal use. -Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning. - -See its companion, [`@prisma/engines` npm package](https://www.npmjs.com/package/@prisma/engines). diff --git a/mcp-server/node_modules/@prisma/engines-version/index.d.ts b/mcp-server/node_modules/@prisma/engines-version/index.d.ts deleted file mode 100644 index 1ca2d57..0000000 --- a/mcp-server/node_modules/@prisma/engines-version/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const enginesVersion: string; diff --git a/mcp-server/node_modules/@prisma/engines-version/index.js b/mcp-server/node_modules/@prisma/engines-version/index.js deleted file mode 100644 index e213e23..0000000 --- a/mcp-server/node_modules/@prisma/engines-version/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.enginesVersion = void 0; -exports.enginesVersion = require('./package.json').prisma.enginesVersion; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines-version/package.json b/mcp-server/node_modules/@prisma/engines-version/package.json deleted file mode 100644 index 03f484c..0000000 --- a/mcp-server/node_modules/@prisma/engines-version/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@prisma/engines-version", - "version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "main": "index.js", - "types": "index.d.ts", - "license": "Apache-2.0", - "author": "Tim Suchanek ", - "prisma": { - "enginesVersion": "605197351a3c8bdd595af2d2a9bc3025bca48ea2" - }, - "repository": { - "type": "git", - "url": "https://github.com/prisma/engines-wrapper.git", - "directory": "packages/engines-version" - }, - "devDependencies": { - "@types/node": "18.19.34", - "typescript": "4.9.5" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "scripts": { - "build": "tsc -d" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/LICENSE b/mcp-server/node_modules/@prisma/engines/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/@prisma/engines/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/@prisma/engines/README.md b/mcp-server/node_modules/@prisma/engines/README.md deleted file mode 100644 index b95469b..0000000 --- a/mcp-server/node_modules/@prisma/engines/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# `@prisma/engines` - -⚠️ **Warning**: This package is intended for Prisma's internal use. -Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning. - -The postinstall hook of this package downloads all Prisma engines available for the current platform, namely the Query Engine and the Schema Engine from the Prisma CDN. - -The engines version to be downloaded is directly determined by the version of its `@prisma/engines-version` dependency. - -You should probably not use this package directly, but instead use one of these: - -- [`prisma` CLI](https://www.npmjs.com/package/prisma) -- [`@prisma/client`](https://www.npmjs.com/package/@prisma/client) diff --git a/mcp-server/node_modules/@prisma/engines/dist/index.d.ts b/mcp-server/node_modules/@prisma/engines/dist/index.d.ts deleted file mode 100644 index 3789116..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { BinaryType as BinaryType_2 } from '@prisma/fetch-engine'; -import { enginesVersion } from '@prisma/engines-version'; - -export declare const DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE = BinaryType.QueryEngineLibrary; - -export { enginesVersion } - -export declare function ensureBinariesExist(): Promise; - -/** - * Checks if the env override `PRISMA_CLI_QUERY_ENGINE_TYPE` is set to `library` or `binary` - * Otherwise returns the default - */ -export declare function getCliQueryEngineBinaryType(): BinaryType_2; - -export declare function getEnginesPath(): string; - -export { } diff --git a/mcp-server/node_modules/@prisma/engines/dist/index.js b/mcp-server/node_modules/@prisma/engines/dist/index.js deleted file mode 100644 index 591e210..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/index.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE: () => DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE, - enginesVersion: () => import_engines_version2.enginesVersion, - ensureBinariesExist: () => ensureBinariesExist, - getCliQueryEngineBinaryType: () => getCliQueryEngineBinaryType, - getEnginesPath: () => getEnginesPath -}); -module.exports = __toCommonJS(src_exports); -var import_debug = __toESM(require("@prisma/debug")); -var import_engines_version = require("@prisma/engines-version"); -var import_fetch_engine = require("@prisma/fetch-engine"); -var import_path = __toESM(require("path")); -var import_engines_version2 = require("@prisma/engines-version"); -var debug = (0, import_debug.default)("prisma:engines"); -function getEnginesPath() { - return import_path.default.join(__dirname, "../"); -} -var DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE = import_fetch_engine.BinaryType.QueryEngineLibrary; -function getCliQueryEngineBinaryType() { - const envCliQueryEngineType = process.env.PRISMA_CLI_QUERY_ENGINE_TYPE; - if (envCliQueryEngineType) { - if (envCliQueryEngineType === "binary") { - return import_fetch_engine.BinaryType.QueryEngineBinary; - } - if (envCliQueryEngineType === "library") { - return import_fetch_engine.BinaryType.QueryEngineLibrary; - } - } - return DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE; -} -async function ensureBinariesExist() { - const binaryDir = import_path.default.join(__dirname, "../"); - let binaryTargets; - if (process.env.PRISMA_CLI_BINARY_TARGETS) { - binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(","); - } - const cliQueryEngineBinaryType = getCliQueryEngineBinaryType(); - const binaries = { - [cliQueryEngineBinaryType]: binaryDir, - [import_fetch_engine.BinaryType.SchemaEngineBinary]: binaryDir - }; - debug(`binaries to download ${Object.keys(binaries).join(", ")}`); - await (0, import_fetch_engine.download)({ - binaries, - showProgress: true, - version: import_engines_version.enginesVersion, - failSilent: false, - binaryTargets - }); -} -import_path.default.join(__dirname, "../query-engine-darwin"); -import_path.default.join(__dirname, "../query-engine-darwin-arm64"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-1.0.x"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-1.1.x"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-3.0.x"); -import_path.default.join(__dirname, "../query-engine-linux-static-x64"); -import_path.default.join(__dirname, "../query-engine-linux-static-arm64"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.0.x"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.1.x"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-3.0.x"); -import_path.default.join(__dirname, "../libquery_engine-darwin.dylib.node"); -import_path.default.join(__dirname, "../libquery_engine-darwin-arm64.dylib.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-musl.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-musl-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../query_engine-windows.dll.node"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE, - enginesVersion, - ensureBinariesExist, - getCliQueryEngineBinaryType, - getEnginesPath -}); diff --git a/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts b/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.js b/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.js deleted file mode 100644 index 72afcf4..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/scripts/localinstall.js +++ /dev/null @@ -1,2048 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js -var require_windows = __commonJS({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = require("fs"); - function checkPathExt(path2, options) { - var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT; - if (!pathext) { - return true; - } - pathext = pathext.split(";"); - if (pathext.indexOf("") !== -1) { - return true; - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase(); - if (p && path2.substr(-p.length).toLowerCase() === p) { - return true; - } - } - return false; - } - function checkStat(stat, path2, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false; - } - return checkPathExt(path2, options); - } - function isexe(path2, options, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, path2, options)); - }); - } - function sync(path2, options) { - return checkStat(fs2.statSync(path2), path2, options); - } - } -}); - -// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js -var require_mode = __commonJS({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = require("fs"); - function isexe(path2, options, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, options)); - }); - } - function sync(path2, options) { - return checkStat(fs2.statSync(path2), options); - } - function checkStat(stat, options) { - return stat.isFile() && checkMode(stat, options); - } - function checkMode(stat, options) { - var mod = stat.mode; - var uid = stat.uid; - var gid = stat.gid; - var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid(); - var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid(); - var u = parseInt("100", 8); - var g = parseInt("010", 8); - var o = parseInt("001", 8); - var ug = u | g; - var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0; - return ret; - } - } -}); - -// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js -var require_isexe = __commonJS({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) { - "use strict"; - var fs2 = require("fs"); - var core; - if (process.platform === "win32" || global.TESTING_WINDOWS) { - core = require_windows(); - } else { - core = require_mode(); - } - module2.exports = isexe; - isexe.sync = sync; - function isexe(path2, options, cb) { - if (typeof options === "function") { - cb = options; - options = {}; - } - if (!cb) { - if (typeof Promise !== "function") { - throw new TypeError("callback not provided"); - } - return new Promise(function(resolve, reject) { - isexe(path2, options || {}, function(er, is) { - if (er) { - reject(er); - } else { - resolve(is); - } - }); - }); - } - core(path2, options || {}, function(er, is) { - if (er) { - if (er.code === "EACCES" || options && options.ignoreErrors) { - er = null; - is = false; - } - } - cb(er, is); - }); - } - function sync(path2, options) { - try { - return core.sync(path2, options || {}); - } catch (er) { - if (options && options.ignoreErrors || er.code === "EACCES") { - return false; - } else { - throw er; - } - } - } - } -}); - -// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js -var require_which = __commonJS({ - "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) { - "use strict"; - var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; - var path2 = require("path"); - var COLON = isWindows ? ";" : ":"; - var isexe = require_isexe(); - var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); - var getPathInfo = (cmd, opt) => { - const colon = opt.colon || COLON; - const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [ - // windows always checks the cwd first - ...isWindows ? [process.cwd()] : [], - ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ - "").split(colon) - ]; - const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = isWindows ? pathExtExe.split(colon) : [""]; - if (isWindows) { - if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") - pathExt.unshift(""); - } - return { - pathEnv, - pathExt, - pathExtExe - }; - }; - var which = (cmd, opt, cb) => { - if (typeof opt === "function") { - cb = opt; - opt = {}; - } - if (!opt) - opt = {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - const step = (i) => new Promise((resolve, reject) => { - if (i === pathEnv.length) - return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd)); - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - resolve(subStep(p, i, 0)); - }); - const subStep = (p, i, ii) => new Promise((resolve, reject) => { - if (ii === pathExt.length) - return resolve(step(i + 1)); - const ext = pathExt[ii]; - isexe(p + ext, { pathExt: pathExtExe }, (er, is) => { - if (!er && is) { - if (opt.all) - found.push(p + ext); - else - return resolve(p + ext); - } - return resolve(subStep(p, i, ii + 1)); - }); - }); - return cb ? step(0).then((res) => cb(null, res), cb) : step(0); - }; - var whichSync = (cmd, opt) => { - opt = opt || {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - for (let i = 0; i < pathEnv.length; i++) { - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - for (let j = 0; j < pathExt.length; j++) { - const cur = p + pathExt[j]; - try { - const is = isexe.sync(cur, { pathExt: pathExtExe }); - if (is) { - if (opt.all) - found.push(cur); - else - return cur; - } - } catch (ex) { - } - } - } - if (opt.all && found.length) - return found; - if (opt.nothrow) - return null; - throw getNotFoundError(cmd); - }; - module2.exports = which; - which.sync = whichSync; - } -}); - -// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js -var require_path_key = __commonJS({ - "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) { - "use strict"; - var pathKey = (options = {}) => { - const environment = options.env || process.env; - const platform = options.platform || process.platform; - if (platform !== "win32") { - return "PATH"; - } - return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path"; - }; - module2.exports = pathKey; - module2.exports.default = pathKey; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js -var require_resolveCommand = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) { - "use strict"; - var path2 = require("path"); - var which = require_which(); - var getPathKey = require_path_key(); - function resolveCommandAttempt(parsed, withoutPathExt) { - const env = parsed.options.env || process.env; - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled; - if (shouldSwitchCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - } - } - let resolved; - try { - resolved = which.sync(parsed.command, { - path: env[getPathKey({ env })], - pathExt: withoutPathExt ? path2.delimiter : void 0 - }); - } catch (e) { - } finally { - if (shouldSwitchCwd) { - process.chdir(cwd); - } - } - if (resolved) { - resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); - } - return resolved; - } - function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); - } - module2.exports = resolveCommand; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js -var require_escape = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) { - "use strict"; - var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - function escapeCommand(arg) { - arg = arg.replace(metaCharsRegExp, "^$1"); - return arg; - } - function escapeArgument(arg, doubleEscapeMetaChars) { - arg = `${arg}`; - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - arg = arg.replace(/(\\*)$/, "$1$1"); - arg = `"${arg}"`; - arg = arg.replace(metaCharsRegExp, "^$1"); - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, "^$1"); - } - return arg; - } - module2.exports.command = escapeCommand; - module2.exports.argument = escapeArgument; - } -}); - -// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js -var require_shebang_regex = __commonJS({ - "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) { - "use strict"; - module2.exports = /^#!(.*)/; - } -}); - -// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js -var require_shebang_command = __commonJS({ - "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) { - "use strict"; - var shebangRegex = require_shebang_regex(); - module2.exports = (string = "") => { - const match = string.match(shebangRegex); - if (!match) { - return null; - } - const [path2, argument] = match[0].replace(/#! ?/, "").split(" "); - const binary = path2.split("/").pop(); - if (binary === "env") { - return argument; - } - return argument ? `${binary} ${argument}` : binary; - }; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js -var require_readShebang = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) { - "use strict"; - var fs2 = require("fs"); - var shebangCommand = require_shebang_command(); - function readShebang(command) { - const size = 150; - const buffer = Buffer.alloc(size); - let fd; - try { - fd = fs2.openSync(command, "r"); - fs2.readSync(fd, buffer, 0, size, 0); - fs2.closeSync(fd); - } catch (e) { - } - return shebangCommand(buffer.toString()); - } - module2.exports = readShebang; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js -var require_parse = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) { - "use strict"; - var path2 = require("path"); - var resolveCommand = require_resolveCommand(); - var escape = require_escape(); - var readShebang = require_readShebang(); - var isWin = process.platform === "win32"; - var isExecutableRegExp = /\.(?:com|exe)$/i; - var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file); - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - return resolveCommand(parsed); - } - return parsed.file; - } - function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - const commandFile = detectShebang(parsed); - const needsShell = !isExecutableRegExp.test(commandFile); - if (parsed.options.forceShell || needsShell) { - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - parsed.command = path2.normalize(parsed.command); - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - const shellCommand = [parsed.command].concat(parsed.args).join(" "); - parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`]; - parsed.command = process.env.comspec || "cmd.exe"; - parsed.options.windowsVerbatimArguments = true; - } - return parsed; - } - function parse(command, args, options) { - if (args && !Array.isArray(args)) { - options = args; - args = null; - } - args = args ? args.slice(0) : []; - options = Object.assign({}, options); - const parsed = { - command, - args, - options, - file: void 0, - original: { - command, - args - } - }; - return options.shell ? parsed : parseNonShell(parsed); - } - module2.exports = parse; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js -var require_enoent = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) { - "use strict"; - var isWin = process.platform === "win32"; - function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: "ENOENT", - errno: "ENOENT", - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args - }); - } - function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - const originalEmit = cp.emit; - cp.emit = function(name, arg1) { - if (name === "exit") { - const err = verifyENOENT(arg1, parsed, "spawn"); - if (err) { - return originalEmit.call(cp, "error", err); - } - } - return originalEmit.apply(cp, arguments); - }; - } - function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawn"); - } - return null; - } - function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawnSync"); - } - return null; - } - module2.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError - }; - } -}); - -// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js -var require_cross_spawn = __commonJS({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) { - "use strict"; - var cp = require("child_process"); - var parse = require_parse(); - var enoent = require_enoent(); - function spawn(command, args, options) { - const parsed = parse(command, args, options); - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - enoent.hookChildProcess(spawned, parsed); - return spawned; - } - function spawnSync(command, args, options) { - const parsed = parse(command, args, options); - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - return result; - } - module2.exports = spawn; - module2.exports.spawn = spawn; - module2.exports.sync = spawnSync; - module2.exports._parse = parse; - module2.exports._enoent = enoent; - } -}); - -// ../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js -var require_strip_final_newline = __commonJS({ - "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports2, module2) { - "use strict"; - module2.exports = (input) => { - const LF = typeof input === "string" ? "\n" : "\n".charCodeAt(); - const CR = typeof input === "string" ? "\r" : "\r".charCodeAt(); - if (input[input.length - 1] === LF) { - input = input.slice(0, input.length - 1); - } - if (input[input.length - 1] === CR) { - input = input.slice(0, input.length - 1); - } - return input; - }; - } -}); - -// ../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js -var require_npm_run_path = __commonJS({ - "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) { - "use strict"; - var path2 = require("path"); - var pathKey = require_path_key(); - var npmRunPath = (options) => { - options = { - cwd: process.cwd(), - path: process.env[pathKey()], - execPath: process.execPath, - ...options - }; - let previous; - let cwdPath = path2.resolve(options.cwd); - const result = []; - while (previous !== cwdPath) { - result.push(path2.join(cwdPath, "node_modules/.bin")); - previous = cwdPath; - cwdPath = path2.resolve(cwdPath, ".."); - } - const execPathDir = path2.resolve(options.cwd, options.execPath, ".."); - result.push(execPathDir); - return result.concat(options.path).join(path2.delimiter); - }; - module2.exports = npmRunPath; - module2.exports.default = npmRunPath; - module2.exports.env = (options) => { - options = { - env: process.env, - ...options - }; - const env = { ...options.env }; - const path3 = pathKey({ env }); - options.path = env[path3]; - env[path3] = module2.exports(options); - return env; - }; - } -}); - -// ../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js -var require_mimic_fn = __commonJS({ - "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports2, module2) { - "use strict"; - var mimicFn = (to, from) => { - for (const prop of Reflect.ownKeys(from)) { - Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop)); - } - return to; - }; - module2.exports = mimicFn; - module2.exports.default = mimicFn; - } -}); - -// ../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js -var require_onetime = __commonJS({ - "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) { - "use strict"; - var mimicFn = require_mimic_fn(); - var calledFunctions = /* @__PURE__ */ new WeakMap(); - var onetime = (function_, options = {}) => { - if (typeof function_ !== "function") { - throw new TypeError("Expected a function"); - } - let returnValue; - let callCount = 0; - const functionName = function_.displayName || function_.name || ""; - const onetime2 = function(...arguments_) { - calledFunctions.set(onetime2, ++callCount); - if (callCount === 1) { - returnValue = function_.apply(this, arguments_); - function_ = null; - } else if (options.throw === true) { - throw new Error(`Function \`${functionName}\` can only be called once`); - } - return returnValue; - }; - mimicFn(onetime2, function_); - calledFunctions.set(onetime2, callCount); - return onetime2; - }; - module2.exports = onetime; - module2.exports.default = onetime; - module2.exports.callCount = (function_) => { - if (!calledFunctions.has(function_)) { - throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`); - } - return calledFunctions.get(function_); - }; - } -}); - -// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js -var require_core = __commonJS({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SIGNALS = void 0; - var SIGNALS = [ - { - name: "SIGHUP", - number: 1, - action: "terminate", - description: "Terminal closed", - standard: "posix" - }, - { - name: "SIGINT", - number: 2, - action: "terminate", - description: "User interruption with CTRL-C", - standard: "ansi" - }, - { - name: "SIGQUIT", - number: 3, - action: "core", - description: "User interruption with CTRL-\\", - standard: "posix" - }, - { - name: "SIGILL", - number: 4, - action: "core", - description: "Invalid machine instruction", - standard: "ansi" - }, - { - name: "SIGTRAP", - number: 5, - action: "core", - description: "Debugger breakpoint", - standard: "posix" - }, - { - name: "SIGABRT", - number: 6, - action: "core", - description: "Aborted", - standard: "ansi" - }, - { - name: "SIGIOT", - number: 6, - action: "core", - description: "Aborted", - standard: "bsd" - }, - { - name: "SIGBUS", - number: 7, - action: "core", - description: "Bus error due to misaligned, non-existing address or paging error", - standard: "bsd" - }, - { - name: "SIGEMT", - number: 7, - action: "terminate", - description: "Command should be emulated but is not implemented", - standard: "other" - }, - { - name: "SIGFPE", - number: 8, - action: "core", - description: "Floating point arithmetic error", - standard: "ansi" - }, - { - name: "SIGKILL", - number: 9, - action: "terminate", - description: "Forced termination", - standard: "posix", - forced: true - }, - { - name: "SIGUSR1", - number: 10, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGSEGV", - number: 11, - action: "core", - description: "Segmentation fault", - standard: "ansi" - }, - { - name: "SIGUSR2", - number: 12, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGPIPE", - number: 13, - action: "terminate", - description: "Broken pipe or socket", - standard: "posix" - }, - { - name: "SIGALRM", - number: 14, - action: "terminate", - description: "Timeout or timer", - standard: "posix" - }, - { - name: "SIGTERM", - number: 15, - action: "terminate", - description: "Termination", - standard: "ansi" - }, - { - name: "SIGSTKFLT", - number: 16, - action: "terminate", - description: "Stack is empty or overflowed", - standard: "other" - }, - { - name: "SIGCHLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "posix" - }, - { - name: "SIGCLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "other" - }, - { - name: "SIGCONT", - number: 18, - action: "unpause", - description: "Unpaused", - standard: "posix", - forced: true - }, - { - name: "SIGSTOP", - number: 19, - action: "pause", - description: "Paused", - standard: "posix", - forced: true - }, - { - name: "SIGTSTP", - number: 20, - action: "pause", - description: 'Paused using CTRL-Z or "suspend"', - standard: "posix" - }, - { - name: "SIGTTIN", - number: 21, - action: "pause", - description: "Background process cannot read terminal input", - standard: "posix" - }, - { - name: "SIGBREAK", - number: 21, - action: "terminate", - description: "User interruption with CTRL-BREAK", - standard: "other" - }, - { - name: "SIGTTOU", - number: 22, - action: "pause", - description: "Background process cannot write to terminal output", - standard: "posix" - }, - { - name: "SIGURG", - number: 23, - action: "ignore", - description: "Socket received out-of-band data", - standard: "bsd" - }, - { - name: "SIGXCPU", - number: 24, - action: "core", - description: "Process timed out", - standard: "bsd" - }, - { - name: "SIGXFSZ", - number: 25, - action: "core", - description: "File too big", - standard: "bsd" - }, - { - name: "SIGVTALRM", - number: 26, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGPROF", - number: 27, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGWINCH", - number: 28, - action: "ignore", - description: "Terminal window size changed", - standard: "bsd" - }, - { - name: "SIGIO", - number: 29, - action: "terminate", - description: "I/O is available", - standard: "other" - }, - { - name: "SIGPOLL", - number: 29, - action: "terminate", - description: "Watched event", - standard: "other" - }, - { - name: "SIGINFO", - number: 29, - action: "ignore", - description: "Request for process information", - standard: "other" - }, - { - name: "SIGPWR", - number: 30, - action: "terminate", - description: "Device running out of power", - standard: "systemv" - }, - { - name: "SIGSYS", - number: 31, - action: "core", - description: "Invalid system call", - standard: "other" - }, - { - name: "SIGUNUSED", - number: 31, - action: "terminate", - description: "Invalid system call", - standard: "other" - } - ]; - exports2.SIGNALS = SIGNALS; - } -}); - -// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js -var require_realtime = __commonJS({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SIGRTMAX = exports2.getRealtimeSignals = void 0; - var getRealtimeSignals = function() { - const length = SIGRTMAX - SIGRTMIN + 1; - return Array.from({ length }, getRealtimeSignal); - }; - exports2.getRealtimeSignals = getRealtimeSignals; - var getRealtimeSignal = function(value, index) { - return { - name: `SIGRT${index + 1}`, - number: SIGRTMIN + index, - action: "terminate", - description: "Application-specific signal (realtime)", - standard: "posix" - }; - }; - var SIGRTMIN = 34; - var SIGRTMAX = 64; - exports2.SIGRTMAX = SIGRTMAX; - } -}); - -// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js -var require_signals = __commonJS({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getSignals = void 0; - var _os = require("os"); - var _core = require_core(); - var _realtime = require_realtime(); - var getSignals = function() { - const realtimeSignals = (0, _realtime.getRealtimeSignals)(); - const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal); - return signals; - }; - exports2.getSignals = getSignals; - var normalizeSignal = function({ - name, - number: defaultNumber, - description, - action, - forced = false, - standard - }) { - const { - signals: { [name]: constantSignal } - } = _os.constants; - const supported = constantSignal !== void 0; - const number = supported ? constantSignal : defaultNumber; - return { name, number, description, supported, action, forced, standard }; - }; - } -}); - -// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js -var require_main = __commonJS({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.signalsByNumber = exports2.signalsByName = void 0; - var _os = require("os"); - var _signals = require_signals(); - var _realtime = require_realtime(); - var getSignalsByName = function() { - const signals = (0, _signals.getSignals)(); - return signals.reduce(getSignalByName, {}); - }; - var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) { - return { - ...signalByNameMemo, - [name]: { name, number, description, supported, action, forced, standard } - }; - }; - var signalsByName = getSignalsByName(); - exports2.signalsByName = signalsByName; - var getSignalsByNumber = function() { - const signals = (0, _signals.getSignals)(); - const length = _realtime.SIGRTMAX + 1; - const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals)); - return Object.assign({}, ...signalsA); - }; - var getSignalByNumber = function(number, signals) { - const signal = findSignalByNumber(number, signals); - if (signal === void 0) { - return {}; - } - const { name, description, supported, action, forced, standard } = signal; - return { - [number]: { - name, - number, - description, - supported, - action, - forced, - standard - } - }; - }; - var findSignalByNumber = function(number, signals) { - const signal = signals.find(({ name }) => _os.constants.signals[name] === number); - if (signal !== void 0) { - return signal; - } - return signals.find((signalA) => signalA.number === number); - }; - var signalsByNumber = getSignalsByNumber(); - exports2.signalsByNumber = signalsByNumber; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js -var require_error = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports2, module2) { - "use strict"; - var { signalsByName } = require_main(); - var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => { - if (timedOut) { - return `timed out after ${timeout} milliseconds`; - } - if (isCanceled) { - return "was canceled"; - } - if (errorCode !== void 0) { - return `failed with ${errorCode}`; - } - if (signal !== void 0) { - return `was killed with ${signal} (${signalDescription})`; - } - if (exitCode !== void 0) { - return `failed with exit code ${exitCode}`; - } - return "failed"; - }; - var makeError = ({ - stdout, - stderr, - all, - error, - signal, - exitCode, - command, - escapedCommand, - timedOut, - isCanceled, - killed, - parsed: { options: { timeout } } - }) => { - exitCode = exitCode === null ? void 0 : exitCode; - signal = signal === null ? void 0 : signal; - const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description; - const errorCode = error && error.code; - const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }); - const execaMessage = `Command ${prefix}: ${command}`; - const isError = Object.prototype.toString.call(error) === "[object Error]"; - const shortMessage = isError ? `${execaMessage} -${error.message}` : execaMessage; - const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n"); - if (isError) { - error.originalMessage = error.message; - error.message = message; - } else { - error = new Error(message); - } - error.shortMessage = shortMessage; - error.command = command; - error.escapedCommand = escapedCommand; - error.exitCode = exitCode; - error.signal = signal; - error.signalDescription = signalDescription; - error.stdout = stdout; - error.stderr = stderr; - if (all !== void 0) { - error.all = all; - } - if ("bufferedData" in error) { - delete error.bufferedData; - } - error.failed = true; - error.timedOut = Boolean(timedOut); - error.isCanceled = isCanceled; - error.killed = killed && !timedOut; - return error; - }; - module2.exports = makeError; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js -var require_stdio = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports2, module2) { - "use strict"; - var aliases = ["stdin", "stdout", "stderr"]; - var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0); - var normalizeStdio = (options) => { - if (!options) { - return; - } - const { stdio } = options; - if (stdio === void 0) { - return aliases.map((alias) => options[alias]); - } - if (hasAlias(options)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`); - } - if (typeof stdio === "string") { - return stdio; - } - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - const length = Math.max(stdio.length, aliases.length); - return Array.from({ length }, (value, index) => stdio[index]); - }; - module2.exports = normalizeStdio; - module2.exports.node = (options) => { - const stdio = normalizeStdio(options); - if (stdio === "ipc") { - return "ipc"; - } - if (stdio === void 0 || typeof stdio === "string") { - return [stdio, stdio, stdio, "ipc"]; - } - if (stdio.includes("ipc")) { - return stdio; - } - return [...stdio, "ipc"]; - }; - } -}); - -// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js -var require_signals2 = __commonJS({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) { - "use strict"; - module2.exports = [ - "SIGABRT", - "SIGALRM", - "SIGHUP", - "SIGINT", - "SIGTERM" - ]; - if (process.platform !== "win32") { - module2.exports.push( - "SIGVTALRM", - "SIGXCPU", - "SIGXFSZ", - "SIGUSR2", - "SIGTRAP", - "SIGSYS", - "SIGQUIT", - "SIGIOT" - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ); - } - if (process.platform === "linux") { - module2.exports.push( - "SIGIO", - "SIGPOLL", - "SIGPWR", - "SIGSTKFLT", - "SIGUNUSED" - ); - } - } -}); - -// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js -var require_signal_exit = __commonJS({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) { - "use strict"; - var process2 = global.process; - var processOk = function(process3) { - return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function"; - }; - if (!processOk(process2)) { - module2.exports = function() { - return function() { - }; - }; - } else { - assert = require("assert"); - signals = require_signals2(); - isWin = /^win/i.test(process2.platform); - EE = require("events"); - if (typeof EE !== "function") { - EE = EE.EventEmitter; - } - if (process2.__signal_exit_emitter__) { - emitter = process2.__signal_exit_emitter__; - } else { - emitter = process2.__signal_exit_emitter__ = new EE(); - emitter.count = 0; - emitter.emitted = {}; - } - if (!emitter.infinite) { - emitter.setMaxListeners(Infinity); - emitter.infinite = true; - } - module2.exports = function(cb, opts) { - if (!processOk(global.process)) { - return function() { - }; - } - assert.equal(typeof cb, "function", "a callback must be provided for exit handler"); - if (loaded === false) { - load(); - } - var ev = "exit"; - if (opts && opts.alwaysLast) { - ev = "afterexit"; - } - var remove = function() { - emitter.removeListener(ev, cb); - if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) { - unload(); - } - }; - emitter.on(ev, cb); - return remove; - }; - unload = function unload2() { - if (!loaded || !processOk(global.process)) { - return; - } - loaded = false; - signals.forEach(function(sig) { - try { - process2.removeListener(sig, sigListeners[sig]); - } catch (er) { - } - }); - process2.emit = originalProcessEmit; - process2.reallyExit = originalProcessReallyExit; - emitter.count -= 1; - }; - module2.exports.unload = unload; - emit = function emit2(event, code, signal) { - if (emitter.emitted[event]) { - return; - } - emitter.emitted[event] = true; - emitter.emit(event, code, signal); - }; - sigListeners = {}; - signals.forEach(function(sig) { - sigListeners[sig] = function listener() { - if (!processOk(global.process)) { - return; - } - var listeners = process2.listeners(sig); - if (listeners.length === emitter.count) { - unload(); - emit("exit", null, sig); - emit("afterexit", null, sig); - if (isWin && sig === "SIGHUP") { - sig = "SIGINT"; - } - process2.kill(process2.pid, sig); - } - }; - }); - module2.exports.signals = function() { - return signals; - }; - loaded = false; - load = function load2() { - if (loaded || !processOk(global.process)) { - return; - } - loaded = true; - emitter.count += 1; - signals = signals.filter(function(sig) { - try { - process2.on(sig, sigListeners[sig]); - return true; - } catch (er) { - return false; - } - }); - process2.emit = processEmit; - process2.reallyExit = processReallyExit; - }; - module2.exports.load = load; - originalProcessReallyExit = process2.reallyExit; - processReallyExit = function processReallyExit2(code) { - if (!processOk(global.process)) { - return; - } - process2.exitCode = code || /* istanbul ignore next */ - 0; - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - originalProcessReallyExit.call(process2, process2.exitCode); - }; - originalProcessEmit = process2.emit; - processEmit = function processEmit2(ev, arg) { - if (ev === "exit" && processOk(global.process)) { - if (arg !== void 0) { - process2.exitCode = arg; - } - var ret = originalProcessEmit.apply(this, arguments); - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - return ret; - } else { - return originalProcessEmit.apply(this, arguments); - } - }; - } - var assert; - var signals; - var isWin; - var EE; - var emitter; - var unload; - var emit; - var sigListeners; - var loaded; - var load; - var originalProcessReallyExit; - var processReallyExit; - var originalProcessEmit; - var processEmit; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js -var require_kill = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module2) { - "use strict"; - var os = require("os"); - var onExit = require_signal_exit(); - var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5; - var spawnedKill = (kill, signal = "SIGTERM", options = {}) => { - const killResult = kill(signal); - setKillTimeout(kill, signal, options, killResult); - return killResult; - }; - var setKillTimeout = (kill, signal, options, killResult) => { - if (!shouldForceKill(signal, options, killResult)) { - return; - } - const timeout = getForceKillAfterTimeout(options); - const t = setTimeout(() => { - kill("SIGKILL"); - }, timeout); - if (t.unref) { - t.unref(); - } - }; - var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => { - return isSigterm(signal) && forceKillAfterTimeout !== false && killResult; - }; - var isSigterm = (signal) => { - return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM"; - }; - var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => { - if (forceKillAfterTimeout === true) { - return DEFAULT_FORCE_KILL_TIMEOUT; - } - if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) { - throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`); - } - return forceKillAfterTimeout; - }; - var spawnedCancel = (spawned, context) => { - const killResult = spawned.kill(); - if (killResult) { - context.isCanceled = true; - } - }; - var timeoutKill = (spawned, signal, reject) => { - spawned.kill(signal); - reject(Object.assign(new Error("Timed out"), { timedOut: true, signal })); - }; - var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => { - if (timeout === 0 || timeout === void 0) { - return spawnedPromise; - } - let timeoutId; - const timeoutPromise = new Promise((resolve, reject) => { - timeoutId = setTimeout(() => { - timeoutKill(spawned, killSignal, reject); - }, timeout); - }); - const safeSpawnedPromise = spawnedPromise.finally(() => { - clearTimeout(timeoutId); - }); - return Promise.race([timeoutPromise, safeSpawnedPromise]); - }; - var validateTimeout = ({ timeout }) => { - if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) { - throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`); - } - }; - var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => { - if (!cleanup || detached) { - return timedPromise; - } - const removeExitHandler = onExit(() => { - spawned.kill(); - }); - return timedPromise.finally(() => { - removeExitHandler(); - }); - }; - module2.exports = { - spawnedKill, - spawnedCancel, - setupTimeout, - validateTimeout, - setExitHandler - }; - } -}); - -// ../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js -var require_is_stream = __commonJS({ - "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) { - "use strict"; - var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function"; - isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object"; - isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object"; - isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream); - isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function"; - module2.exports = isStream; - } -}); - -// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js -var require_buffer_stream = __commonJS({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports2, module2) { - "use strict"; - var { PassThrough: PassThroughStream } = require("stream"); - module2.exports = (options) => { - options = { ...options }; - const { array } = options; - let { encoding } = options; - const isBuffer = encoding === "buffer"; - let objectMode = false; - if (array) { - objectMode = !(encoding || isBuffer); - } else { - encoding = encoding || "utf8"; - } - if (isBuffer) { - encoding = null; - } - const stream = new PassThroughStream({ objectMode }); - if (encoding) { - stream.setEncoding(encoding); - } - let length = 0; - const chunks = []; - stream.on("data", (chunk) => { - chunks.push(chunk); - if (objectMode) { - length = chunks.length; - } else { - length += chunk.length; - } - }); - stream.getBufferedValue = () => { - if (array) { - return chunks; - } - return isBuffer ? Buffer.concat(chunks, length) : chunks.join(""); - }; - stream.getBufferedLength = () => length; - return stream; - }; - } -}); - -// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js -var require_get_stream = __commonJS({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports2, module2) { - "use strict"; - var { constants: BufferConstants } = require("buffer"); - var stream = require("stream"); - var { promisify } = require("util"); - var bufferStream = require_buffer_stream(); - var streamPipelinePromisified = promisify(stream.pipeline); - var MaxBufferError = class extends Error { - constructor() { - super("maxBuffer exceeded"); - this.name = "MaxBufferError"; - } - }; - async function getStream(inputStream, options) { - if (!inputStream) { - throw new Error("Expected a stream"); - } - options = { - maxBuffer: Infinity, - ...options - }; - const { maxBuffer } = options; - const stream2 = bufferStream(options); - await new Promise((resolve, reject) => { - const rejectPromise = (error) => { - if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) { - error.bufferedData = stream2.getBufferedValue(); - } - reject(error); - }; - (async () => { - try { - await streamPipelinePromisified(inputStream, stream2); - resolve(); - } catch (error) { - rejectPromise(error); - } - })(); - stream2.on("data", () => { - if (stream2.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }); - return stream2.getBufferedValue(); - } - module2.exports = getStream; - module2.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" }); - module2.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true }); - module2.exports.MaxBufferError = MaxBufferError; - } -}); - -// ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js -var require_merge_stream = __commonJS({ - "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) { - "use strict"; - var { PassThrough } = require("stream"); - module2.exports = function() { - var sources = []; - var output = new PassThrough({ objectMode: true }); - output.setMaxListeners(0); - output.add = add; - output.isEmpty = isEmpty; - output.on("unpipe", remove); - Array.prototype.slice.call(arguments).forEach(add); - return output; - function add(source) { - if (Array.isArray(source)) { - source.forEach(add); - return this; - } - sources.push(source); - source.once("end", remove.bind(null, source)); - source.once("error", output.emit.bind(output, "error")); - source.pipe(output, { end: false }); - return this; - } - function isEmpty() { - return sources.length == 0; - } - function remove(source) { - sources = sources.filter(function(it) { - return it !== source; - }); - if (!sources.length && output.readable) { - output.end(); - } - } - }; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js -var require_stream = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports2, module2) { - "use strict"; - var isStream = require_is_stream(); - var getStream = require_get_stream(); - var mergeStream = require_merge_stream(); - var handleInput = (spawned, input) => { - if (input === void 0 || spawned.stdin === void 0) { - return; - } - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } - }; - var makeAllStream = (spawned, { all }) => { - if (!all || !spawned.stdout && !spawned.stderr) { - return; - } - const mixed = mergeStream(); - if (spawned.stdout) { - mixed.add(spawned.stdout); - } - if (spawned.stderr) { - mixed.add(spawned.stderr); - } - return mixed; - }; - var getBufferedData = async (stream, streamPromise) => { - if (!stream) { - return; - } - stream.destroy(); - try { - return await streamPromise; - } catch (error) { - return error.bufferedData; - } - }; - var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => { - if (!stream || !buffer) { - return; - } - if (encoding) { - return getStream(stream, { encoding, maxBuffer }); - } - return getStream.buffer(stream, { maxBuffer }); - }; - var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => { - const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer }); - const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer }); - const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 }); - try { - return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]); - } catch (error) { - return Promise.all([ - { error, signal: error.signal, timedOut: error.timedOut }, - getBufferedData(stdout, stdoutPromise), - getBufferedData(stderr, stderrPromise), - getBufferedData(all, allPromise) - ]); - } - }; - var validateInputSync = ({ input }) => { - if (isStream(input)) { - throw new TypeError("The `input` option cannot be a stream in sync mode"); - } - }; - module2.exports = { - handleInput, - makeAllStream, - getSpawnedResult, - validateInputSync - }; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js -var require_promise = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports2, module2) { - "use strict"; - var nativePromisePrototype = (async () => { - })().constructor.prototype; - var descriptors = ["then", "catch", "finally"].map((property) => [ - property, - Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property) - ]); - var mergePromise = (spawned, promise) => { - for (const [property, descriptor] of descriptors) { - const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise); - Reflect.defineProperty(spawned, property, { ...descriptor, value }); - } - return spawned; - }; - var getSpawnedPromise = (spawned) => { - return new Promise((resolve, reject) => { - spawned.on("exit", (exitCode, signal) => { - resolve({ exitCode, signal }); - }); - spawned.on("error", (error) => { - reject(error); - }); - if (spawned.stdin) { - spawned.stdin.on("error", (error) => { - reject(error); - }); - } - }); - }; - module2.exports = { - mergePromise, - getSpawnedPromise - }; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js -var require_command = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports2, module2) { - "use strict"; - var normalizeArgs = (file, args = []) => { - if (!Array.isArray(args)) { - return [file]; - } - return [file, ...args]; - }; - var NO_ESCAPE_REGEXP = /^[\w.-]+$/; - var DOUBLE_QUOTES_REGEXP = /"/g; - var escapeArg = (arg) => { - if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) { - return arg; - } - return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`; - }; - var joinCommand = (file, args) => { - return normalizeArgs(file, args).join(" "); - }; - var getEscapedCommand = (file, args) => { - return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" "); - }; - var SPACES_REGEXP = / +/g; - var parseCommand = (command) => { - const tokens = []; - for (const token of command.trim().split(SPACES_REGEXP)) { - const previousToken = tokens[tokens.length - 1]; - if (previousToken && previousToken.endsWith("\\")) { - tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`; - } else { - tokens.push(token); - } - } - return tokens; - }; - module2.exports = { - joinCommand, - getEscapedCommand, - parseCommand - }; - } -}); - -// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js -var require_execa = __commonJS({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports2, module2) { - "use strict"; - var path2 = require("path"); - var childProcess = require("child_process"); - var crossSpawn = require_cross_spawn(); - var stripFinalNewline = require_strip_final_newline(); - var npmRunPath = require_npm_run_path(); - var onetime = require_onetime(); - var makeError = require_error(); - var normalizeStdio = require_stdio(); - var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill(); - var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream(); - var { mergePromise, getSpawnedPromise } = require_promise(); - var { joinCommand, parseCommand, getEscapedCommand } = require_command(); - var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100; - var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => { - const env = extendEnv ? { ...process.env, ...envOption } : envOption; - if (preferLocal) { - return npmRunPath.env({ env, cwd: localDir, execPath }); - } - return env; - }; - var handleArguments = (file, args, options = {}) => { - const parsed = crossSpawn._parse(file, args, options); - file = parsed.command; - args = parsed.args; - options = parsed.options; - options = { - maxBuffer: DEFAULT_MAX_BUFFER, - buffer: true, - stripFinalNewline: true, - extendEnv: true, - preferLocal: false, - localDir: options.cwd || process.cwd(), - execPath: process.execPath, - encoding: "utf8", - reject: true, - cleanup: true, - all: false, - windowsHide: true, - ...options - }; - options.env = getEnv(options); - options.stdio = normalizeStdio(options); - if (process.platform === "win32" && path2.basename(file, ".exe") === "cmd") { - args.unshift("/q"); - } - return { file, args, options, parsed }; - }; - var handleOutput = (options, value, error) => { - if (typeof value !== "string" && !Buffer.isBuffer(value)) { - return error === void 0 ? void 0 : ""; - } - if (options.stripFinalNewline) { - return stripFinalNewline(value); - } - return value; - }; - var execa2 = (file, args, options) => { - const parsed = handleArguments(file, args, options); - const command = joinCommand(file, args); - const escapedCommand = getEscapedCommand(file, args); - validateTimeout(parsed.options); - let spawned; - try { - spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options); - } catch (error) { - const dummySpawned = new childProcess.ChildProcess(); - const errorPromise = Promise.reject(makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - })); - return mergePromise(dummySpawned, errorPromise); - } - const spawnedPromise = getSpawnedPromise(spawned); - const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise); - const processDone = setExitHandler(spawned, parsed.options, timedPromise); - const context = { isCanceled: false }; - spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned)); - spawned.cancel = spawnedCancel.bind(null, spawned, context); - const handlePromise = async () => { - const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone); - const stdout = handleOutput(parsed.options, stdoutResult); - const stderr = handleOutput(parsed.options, stderrResult); - const all = handleOutput(parsed.options, allResult); - if (error || exitCode !== 0 || signal !== null) { - const returnedError = makeError({ - error, - exitCode, - signal, - stdout, - stderr, - all, - command, - escapedCommand, - parsed, - timedOut, - isCanceled: context.isCanceled, - killed: spawned.killed - }); - if (!parsed.options.reject) { - return returnedError; - } - throw returnedError; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - all, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - const handlePromiseOnce = onetime(handlePromise); - handleInput(spawned, parsed.options.input); - spawned.all = makeAllStream(spawned, parsed.options); - return mergePromise(spawned, handlePromiseOnce); - }; - module2.exports = execa2; - module2.exports.sync = (file, args, options) => { - const parsed = handleArguments(file, args, options); - const command = joinCommand(file, args); - const escapedCommand = getEscapedCommand(file, args); - validateInputSync(parsed.options); - let result; - try { - result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options); - } catch (error) { - throw makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - }); - } - const stdout = handleOutput(parsed.options, result.stdout, result.error); - const stderr = handleOutput(parsed.options, result.stderr, result.error); - if (result.error || result.status !== 0 || result.signal !== null) { - const error = makeError({ - stdout, - stderr, - error: result.error, - signal: result.signal, - exitCode: result.status, - command, - escapedCommand, - parsed, - timedOut: result.error && result.error.code === "ETIMEDOUT", - isCanceled: false, - killed: result.signal !== null - }); - if (!parsed.options.reject) { - return error; - } - throw error; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - module2.exports.command = (command, options) => { - const [file, ...args] = parseCommand(command); - return execa2(file, args, options); - }; - module2.exports.commandSync = (command, options) => { - const [file, ...args] = parseCommand(command); - return execa2.sync(file, args, options); - }; - module2.exports.node = (scriptPath, args, options = {}) => { - if (args && !Array.isArray(args) && typeof args === "object") { - options = args; - args = []; - } - const stdio = normalizeStdio.node(options); - const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect")); - const { - nodePath = process.execPath, - nodeOptions = defaultExecArgv - } = options; - return execa2( - nodePath, - [ - ...nodeOptions, - scriptPath, - ...Array.isArray(args) ? args : [] - ], - { - ...options, - stdin: void 0, - stdout: void 0, - stderr: void 0, - stdio, - shell: false - } - ); - }; - } -}); - -// src/scripts/localinstall.ts -var import_fetch_engine = require("@prisma/fetch-engine"); -var import_package = require("@prisma/fetch-engine/package.json"); -var import_get_platform = require("@prisma/get-platform"); -var import_execa = __toESM(require_execa()); -var import_fs = __toESM(require("fs")); -var import_path = __toESM(require("path")); -var baseDir = import_path.default.join(__dirname, "..", ".."); -async function main() { - const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)(); - const cacheDir = await (0, import_fetch_engine.getCacheDir)("master", "_local_", binaryTarget); - const branch = import_package.enginesOverride?.["branch"]; - let folder = import_package.enginesOverride?.["folder"]; - const engineCachePaths = { - [import_fetch_engine.BinaryType.QueryEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.QueryEngineBinary), - [import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.QueryEngineLibrary), - [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.SchemaEngineBinary) - }; - if (branch !== void 0) { - const enginesRepoUri = "git@github.com:prisma/prisma-engines.git"; - const enginesRepoDir = import_path.default.join(baseDir, "dist", "prisma-engines"); - const currentBranch = await (0, import_execa.default)("git", ["branch", "--show-current"], { - cwd: enginesRepoDir - }).catch(() => ({ failed: true, stdout: "" })); - if (currentBranch.failed === true || currentBranch.stdout !== branch) { - await import_fs.default.promises.rm(enginesRepoDir, { recursive: true, force: true }); - await (0, import_execa.default)("git", ["clone", enginesRepoUri, "--depth", "1", "--branch", branch], { - cwd: import_path.default.join(baseDir, "dist"), - stdio: "inherit" - }); - } - await (0, import_execa.default)("git", ["pull", "origin", branch], { - cwd: enginesRepoDir, - stdio: "inherit" - }); - await (0, import_execa.default)("cargo", ["build", "--release"], { - cwd: enginesRepoDir, - stdio: "inherit" - }); - folder = import_path.default.join(enginesRepoDir, "target", "release"); - } - if (folder !== void 0) { - folder = import_path.default.isAbsolute(folder) ? folder : import_path.default.join(baseDir, folder); - const libExt = binaryTarget.includes("windows") ? ".dll" : binaryTarget.includes("darwin") ? ".dylib" : ".so"; - const binExt = binaryTarget.includes("windows") ? ".exe" : ""; - const engineOutputPaths = { - [import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(folder, "libquery_engine".concat(libExt)), - [import_fetch_engine.BinaryType.QueryEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.QueryEngineBinary.concat(binExt)), - [import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.SchemaEngineBinary.concat(binExt)) - }; - for (const [binaryType, outputPath] of Object.entries(engineOutputPaths)) { - await import_fs.default.promises.copyFile(outputPath, engineCachePaths[binaryType]); - } - } -} -main().catch((e) => { - console.log(e.message); - process.exit(1); -}); diff --git a/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts b/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.js b/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.js deleted file mode 100644 index 2961fb8..0000000 --- a/mcp-server/node_modules/@prisma/engines/dist/scripts/postinstall.js +++ /dev/null @@ -1,128 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/scripts/postinstall.ts -var import_debug2 = __toESM(require("@prisma/debug")); -var import_engines_version3 = require("@prisma/engines-version"); -var import_fetch_engine2 = require("@prisma/fetch-engine"); -var import_fs = __toESM(require("fs")); -var import_path2 = __toESM(require("path")); - -// src/index.ts -var import_debug = __toESM(require("@prisma/debug")); -var import_engines_version = require("@prisma/engines-version"); -var import_fetch_engine = require("@prisma/fetch-engine"); -var import_path = __toESM(require("path")); -var import_engines_version2 = require("@prisma/engines-version"); -var debug = (0, import_debug.default)("prisma:engines"); -var DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE = import_fetch_engine.BinaryType.QueryEngineLibrary; -function getCliQueryEngineBinaryType() { - const envCliQueryEngineType = process.env.PRISMA_CLI_QUERY_ENGINE_TYPE; - if (envCliQueryEngineType) { - if (envCliQueryEngineType === "binary") { - return import_fetch_engine.BinaryType.QueryEngineBinary; - } - if (envCliQueryEngineType === "library") { - return import_fetch_engine.BinaryType.QueryEngineLibrary; - } - } - return DEFAULT_CLI_QUERY_ENGINE_BINARY_TYPE; -} -import_path.default.join(__dirname, "../query-engine-darwin"); -import_path.default.join(__dirname, "../query-engine-darwin-arm64"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-1.0.x"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-1.1.x"); -import_path.default.join(__dirname, "../query-engine-debian-openssl-3.0.x"); -import_path.default.join(__dirname, "../query-engine-linux-static-x64"); -import_path.default.join(__dirname, "../query-engine-linux-static-arm64"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.0.x"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-1.1.x"); -import_path.default.join(__dirname, "../query-engine-rhel-openssl-3.0.x"); -import_path.default.join(__dirname, "../libquery_engine-darwin.dylib.node"); -import_path.default.join(__dirname, "../libquery_engine-darwin-arm64.dylib.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-debian-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-arm64-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-musl.so.node"); -import_path.default.join(__dirname, "../libquery_engine-linux-musl-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.0.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-1.1.x.so.node"); -import_path.default.join(__dirname, "../libquery_engine-rhel-openssl-3.0.x.so.node"); -import_path.default.join(__dirname, "../query_engine-windows.dll.node"); - -// src/scripts/postinstall.ts -var debug2 = (0, import_debug2.default)("prisma:download"); -var baseDir = import_path2.default.join(__dirname, "../../"); -var lockFile = import_path2.default.join(baseDir, "download-lock"); -var createdLockFile = false; -async function main() { - if (import_fs.default.existsSync(lockFile) && parseInt(import_fs.default.readFileSync(lockFile, "utf-8"), 10) > Date.now() - 2e4) { - debug2(`Lock file already exists, so we're skipping the download of the prisma binaries`); - } else { - createLockFile(); - let binaryTargets; - if (process.env.PRISMA_CLI_BINARY_TARGETS) { - binaryTargets = process.env.PRISMA_CLI_BINARY_TARGETS.split(","); - } - const cliQueryEngineBinaryType = getCliQueryEngineBinaryType(); - const binaries = { - [cliQueryEngineBinaryType]: baseDir, - [import_fetch_engine2.BinaryType.SchemaEngineBinary]: baseDir - }; - await (0, import_fetch_engine2.download)({ - binaries, - version: import_engines_version3.enginesVersion, - showProgress: true, - failSilent: true, - binaryTargets - }).catch((e) => debug2(e)); - cleanupLockFile(); - } -} -function createLockFile() { - createdLockFile = true; - import_fs.default.writeFileSync(lockFile, Date.now().toString()); -} -function cleanupLockFile() { - if (createdLockFile) { - try { - if (import_fs.default.existsSync(lockFile)) { - import_fs.default.unlinkSync(lockFile); - } - } catch (e) { - debug2(e); - } - } -} -main().catch((e) => debug2(e)); -process.on("beforeExit", () => { - cleanupLockFile(); -}); -process.once("SIGINT", () => { - cleanupLockFile(); - process.exit(); -}); diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine deleted file mode 100644 index d46657b..0000000 Binary files a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine and /dev/null differ diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 deleted file mode 100644 index 37663e8..0000000 --- a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -b72732897f7fb1d24ea9d26cb254b78b10d4257eaeb27f04d9fb82d20addc5d5 \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 deleted file mode 100644 index 80aa2fc..0000000 --- a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +++ /dev/null @@ -1 +0,0 @@ -7d58cada77c5833e57d2ab4ad61ea2948247b2caa8575066b2fe3bc7e4ea4e5a \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine deleted file mode 100644 index 5e1e20d..0000000 Binary files a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine and /dev/null differ diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 deleted file mode 100644 index 32aaa56..0000000 --- a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -cfdcce35f151ea8e57772f07fd909b6118389119b76e51ab1105ef86f955048b \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 b/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 deleted file mode 100644 index 66dd092..0000000 --- a/mcp-server/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +++ /dev/null @@ -1 +0,0 @@ -a7d949e16cc5937aa77d67888c8993118ef16c764e536e9ed7c17cfe61bb65ad \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/package.json b/mcp-server/node_modules/@prisma/engines/package.json deleted file mode 100644 index 7e22887..0000000 --- a/mcp-server/node_modules/@prisma/engines/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@prisma/engines", - "version": "5.22.0", - "description": "This package is intended for Prisma's internal use", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/prisma/prisma.git", - "directory": "packages/engines" - }, - "license": "Apache-2.0", - "author": "Tim Suchanek ", - "devDependencies": { - "@swc/core": "1.6.13", - "@swc/jest": "0.2.36", - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "execa": "5.1.1", - "jest": "29.7.0", - "typescript": "5.4.5" - }, - "dependencies": { - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/debug": "5.22.0", - "@prisma/fetch-engine": "5.22.0", - "@prisma/get-platform": "5.22.0" - }, - "files": [ - "dist", - "download", - "scripts" - ], - "sideEffects": false, - "scripts": { - "dev": "DEV=true tsx helpers/build.ts", - "build": "tsx helpers/build.ts", - "test": "jest --passWithNoTests", - "postinstall": "node scripts/postinstall.js" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/engines/query_engine-windows.dll.node b/mcp-server/node_modules/@prisma/engines/query_engine-windows.dll.node deleted file mode 100644 index d46657b..0000000 Binary files a/mcp-server/node_modules/@prisma/engines/query_engine-windows.dll.node and /dev/null differ diff --git a/mcp-server/node_modules/@prisma/engines/schema-engine-windows.exe b/mcp-server/node_modules/@prisma/engines/schema-engine-windows.exe deleted file mode 100644 index 5e1e20d..0000000 Binary files a/mcp-server/node_modules/@prisma/engines/schema-engine-windows.exe and /dev/null differ diff --git a/mcp-server/node_modules/@prisma/engines/scripts/postinstall.js b/mcp-server/node_modules/@prisma/engines/scripts/postinstall.js deleted file mode 100644 index 3fa2e3c..0000000 --- a/mcp-server/node_modules/@prisma/engines/scripts/postinstall.js +++ /dev/null @@ -1,28 +0,0 @@ -const path = require('path') - -const postInstallScriptPath = path.join(__dirname, '..', 'dist', 'scripts', 'postinstall.js') -const localInstallScriptPath = path.join(__dirname, '..', 'dist', 'scripts', 'localinstall.js') - -try { - // that's when we develop in the monorepo, `dist` does not exist yet - // so we compile postinstall script and trigger it immediately after - if (require('../package.json').version === '0.0.0') { - const execa = require('execa') - const buildScriptPath = path.join(__dirname, '..', 'helpers', 'build.ts') - - execa.sync('pnpm', ['tsx', buildScriptPath], { - // for the sake of simplicity, we IGNORE_EXTERNALS in our own setup - // ie. when the monorepo installs, the postinstall is self-contained - env: { DEV: true, IGNORE_EXTERNALS: true }, - stdio: 'inherit', - }) - - // if enabled, it will install engine overrides into the cache dir - execa.sync('node', [localInstallScriptPath], { - stdio: 'inherit', - }) - } -} catch {} - -// that's the normal path, when users get this package ready/installed -require(postInstallScriptPath) diff --git a/mcp-server/node_modules/@prisma/fetch-engine/LICENSE b/mcp-server/node_modules/@prisma/fetch-engine/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/@prisma/fetch-engine/README.md b/mcp-server/node_modules/@prisma/fetch-engine/README.md deleted file mode 100644 index 92a8840..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# @prisma/fetch-engine - -Responsible for downloading and caching the latest Rust binary - -⚠️ **Warning**: This package is intended for Prisma's internal use. -Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning. - -If you are using this package, it would be helpful if you could help us gain an understanding where, how and why you are using it. Your feedback will be valuable to us to define a better API. Please share this information at https://github.com/prisma/prisma/discussions/13877 - Thanks! diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts deleted file mode 100644 index f8db848..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare enum BinaryType { - QueryEngineBinary = "query-engine", - QueryEngineLibrary = "libquery-engine", - SchemaEngineBinary = "schema-engine" -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.js deleted file mode 100644 index 3252ac7..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/BinaryType.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var BinaryType_exports = {}; -__export(BinaryType_exports, { - BinaryType: () => import_chunk_X37PZICB.BinaryType -}); -module.exports = __toCommonJS(BinaryType_exports); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts deleted file mode 100644 index a24b99d..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function chmodPlusX(file: string): void; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js deleted file mode 100644 index 4fb5998..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chmodPlusX_exports = {}; -__export(chmodPlusX_exports, { - chmodPlusX: () => import_chunk_MX3HXAU2.chmodPlusX -}); -module.exports = __toCommonJS(chmodPlusX_exports); -var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js deleted file mode 100644 index b395520..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +++ /dev/null @@ -1,2385 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_2BCLJS3M_exports = {}; -__export(chunk_2BCLJS3M_exports, { - download: () => download, - getBinaryName: () => getBinaryName, - getVersion: () => getVersion, - maybeCopyToTmp: () => maybeCopyToTmp, - plusX: () => plusX, - vercelPkgPathRegex: () => vercelPkgPathRegex -}); -module.exports = __toCommonJS(chunk_2BCLJS3M_exports); -var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js"); -var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js"); -var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js"); -var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js"); -var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM2(require("@prisma/debug")); -var import_get_platform = require("@prisma/get-platform"); -var import_fs = __toESM2(require("fs")); -var import_path = __toESM2(require("path")); -var import_util = require("util"); -var require_windows = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - function checkPathExt(path2, options2) { - var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT; - if (!pathext) { - return true; - } - pathext = pathext.split(";"); - if (pathext.indexOf("") !== -1) { - return true; - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase(); - if (p && path2.substr(-p.length).toLowerCase() === p) { - return true; - } - } - return false; - } - function checkStat(stat, path2, options2) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false; - } - return checkPathExt(path2, options2); - } - function isexe(path2, options2, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, path2, options2)); - }); - } - function sync(path2, options2) { - return checkStat(fs2.statSync(path2), path2, options2); - } - } -}); -var require_mode = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - function isexe(path2, options2, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, options2)); - }); - } - function sync(path2, options2) { - return checkStat(fs2.statSync(path2), options2); - } - function checkStat(stat, options2) { - return stat.isFile() && checkMode(stat, options2); - } - function checkMode(stat, options2) { - var mod = stat.mode; - var uid = stat.uid; - var gid = stat.gid; - var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid(); - var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid(); - var u = parseInt("100", 8); - var g = parseInt("010", 8); - var o = parseInt("001", 8); - var ug = u | g; - var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0; - return ret; - } - } -}); -var require_isexe = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var core; - if (process.platform === "win32" || global.TESTING_WINDOWS) { - core = require_windows(); - } else { - core = require_mode(); - } - module2.exports = isexe; - isexe.sync = sync; - function isexe(path2, options2, cb) { - if (typeof options2 === "function") { - cb = options2; - options2 = {}; - } - if (!cb) { - if (typeof Promise !== "function") { - throw new TypeError("callback not provided"); - } - return new Promise(function(resolve, reject) { - isexe(path2, options2 || {}, function(er, is) { - if (er) { - reject(er); - } else { - resolve(is); - } - }); - }); - } - core(path2, options2 || {}, function(er, is) { - if (er) { - if (er.code === "EACCES" || options2 && options2.ignoreErrors) { - er = null; - is = false; - } - } - cb(er, is); - }); - } - function sync(path2, options2) { - try { - return core.sync(path2, options2 || {}); - } catch (er) { - if (options2 && options2.ignoreErrors || er.code === "EACCES") { - return false; - } else { - throw er; - } - } - } - } -}); -var require_which = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) { - "use strict"; - var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var COLON = isWindows ? ";" : ":"; - var isexe = require_isexe(); - var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); - var getPathInfo = (cmd, opt) => { - const colon = opt.colon || COLON; - const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [ - // windows always checks the cwd first - ...isWindows ? [process.cwd()] : [], - ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ - "").split(colon) - ]; - const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = isWindows ? pathExtExe.split(colon) : [""]; - if (isWindows) { - if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") - pathExt.unshift(""); - } - return { - pathEnv, - pathExt, - pathExtExe - }; - }; - var which = (cmd, opt, cb) => { - if (typeof opt === "function") { - cb = opt; - opt = {}; - } - if (!opt) - opt = {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - const step = (i) => new Promise((resolve, reject) => { - if (i === pathEnv.length) - return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd)); - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - resolve(subStep(p, i, 0)); - }); - const subStep = (p, i, ii) => new Promise((resolve, reject) => { - if (ii === pathExt.length) - return resolve(step(i + 1)); - const ext = pathExt[ii]; - isexe(p + ext, { pathExt: pathExtExe }, (er, is) => { - if (!er && is) { - if (opt.all) - found.push(p + ext); - else - return resolve(p + ext); - } - return resolve(subStep(p, i, ii + 1)); - }); - }); - return cb ? step(0).then((res) => cb(null, res), cb) : step(0); - }; - var whichSync = (cmd, opt) => { - opt = opt || {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - for (let i = 0; i < pathEnv.length; i++) { - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - for (let j = 0; j < pathExt.length; j++) { - const cur = p + pathExt[j]; - try { - const is = isexe.sync(cur, { pathExt: pathExtExe }); - if (is) { - if (opt.all) - found.push(cur); - else - return cur; - } - } catch (ex) { - } - } - } - if (opt.all && found.length) - return found; - if (opt.nothrow) - return null; - throw getNotFoundError(cmd); - }; - module2.exports = which; - which.sync = whichSync; - } -}); -var require_path_key = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module2) { - "use strict"; - var pathKey = (options2 = {}) => { - const environment = options2.env || process.env; - const platform = options2.platform || process.platform; - if (platform !== "win32") { - return "PATH"; - } - return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path"; - }; - module2.exports = pathKey; - module2.exports.default = pathKey; - } -}); -var require_resolveCommand = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var which = require_which(); - var getPathKey = require_path_key(); - function resolveCommandAttempt(parsed, withoutPathExt) { - const env = parsed.options.env || process.env; - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled; - if (shouldSwitchCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - } - } - let resolved; - try { - resolved = which.sync(parsed.command, { - path: env[getPathKey({ env })], - pathExt: withoutPathExt ? path2.delimiter : void 0 - }); - } catch (e) { - } finally { - if (shouldSwitchCwd) { - process.chdir(cwd); - } - } - if (resolved) { - resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); - } - return resolved; - } - function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); - } - module2.exports = resolveCommand; - } -}); -var require_escape = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) { - "use strict"; - var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - function escapeCommand(arg) { - arg = arg.replace(metaCharsRegExp, "^$1"); - return arg; - } - function escapeArgument(arg, doubleEscapeMetaChars) { - arg = `${arg}`; - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - arg = arg.replace(/(\\*)$/, "$1$1"); - arg = `"${arg}"`; - arg = arg.replace(metaCharsRegExp, "^$1"); - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, "^$1"); - } - return arg; - } - module2.exports.command = escapeCommand; - module2.exports.argument = escapeArgument; - } -}); -var require_shebang_regex = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module2) { - "use strict"; - module2.exports = /^#!(.*)/; - } -}); -var require_shebang_command = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module2) { - "use strict"; - var shebangRegex = require_shebang_regex(); - module2.exports = (string = "") => { - const match = string.match(shebangRegex); - if (!match) { - return null; - } - const [path2, argument] = match[0].replace(/#! ?/, "").split(" "); - const binary = path2.split("/").pop(); - if (binary === "env") { - return argument; - } - return argument ? `${binary} ${argument}` : binary; - }; - } -}); -var require_readShebang = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var shebangCommand = require_shebang_command(); - function readShebang(command) { - const size = 150; - const buffer = Buffer.alloc(size); - let fd; - try { - fd = fs2.openSync(command, "r"); - fs2.readSync(fd, buffer, 0, size, 0); - fs2.closeSync(fd); - } catch (e) { - } - return shebangCommand(buffer.toString()); - } - module2.exports = readShebang; - } -}); -var require_parse = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var resolveCommand = require_resolveCommand(); - var escape = require_escape(); - var readShebang = require_readShebang(); - var isWin = process.platform === "win32"; - var isExecutableRegExp = /\.(?:com|exe)$/i; - var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file); - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - return resolveCommand(parsed); - } - return parsed.file; - } - function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - const commandFile = detectShebang(parsed); - const needsShell = !isExecutableRegExp.test(commandFile); - if (parsed.options.forceShell || needsShell) { - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - parsed.command = path2.normalize(parsed.command); - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - const shellCommand = [parsed.command].concat(parsed.args).join(" "); - parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`]; - parsed.command = process.env.comspec || "cmd.exe"; - parsed.options.windowsVerbatimArguments = true; - } - return parsed; - } - function parse(command, args, options2) { - if (args && !Array.isArray(args)) { - options2 = args; - args = null; - } - args = args ? args.slice(0) : []; - options2 = Object.assign({}, options2); - const parsed = { - command, - args, - options: options2, - file: void 0, - original: { - command, - args - } - }; - return options2.shell ? parsed : parseNonShell(parsed); - } - module2.exports = parse; - } -}); -var require_enoent = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) { - "use strict"; - var isWin = process.platform === "win32"; - function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: "ENOENT", - errno: "ENOENT", - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args - }); - } - function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - const originalEmit = cp.emit; - cp.emit = function(name, arg1) { - if (name === "exit") { - const err = verifyENOENT(arg1, parsed, "spawn"); - if (err) { - return originalEmit.call(cp, "error", err); - } - } - return originalEmit.apply(cp, arguments); - }; - } - function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawn"); - } - return null; - } - function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawnSync"); - } - return null; - } - module2.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError - }; - } -}); -var require_cross_spawn = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) { - "use strict"; - var cp = (0, import_chunk_AH6QHEOA.__require)("child_process"); - var parse = require_parse(); - var enoent = require_enoent(); - function spawn(command, args, options2) { - const parsed = parse(command, args, options2); - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - enoent.hookChildProcess(spawned, parsed); - return spawned; - } - function spawnSync(command, args, options2) { - const parsed = parse(command, args, options2); - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - return result; - } - module2.exports = spawn; - module2.exports.spawn = spawn; - module2.exports.sync = spawnSync; - module2.exports._parse = parse; - module2.exports._enoent = enoent; - } -}); -var require_strip_final_newline = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports, module2) { - "use strict"; - module2.exports = (input) => { - const LF = typeof input === "string" ? "\n" : "\n".charCodeAt(); - const CR = typeof input === "string" ? "\r" : "\r".charCodeAt(); - if (input[input.length - 1] === LF) { - input = input.slice(0, input.length - 1); - } - if (input[input.length - 1] === CR) { - input = input.slice(0, input.length - 1); - } - return input; - }; - } -}); -var require_npm_run_path = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var pathKey = require_path_key(); - var npmRunPath = (options2) => { - options2 = { - cwd: process.cwd(), - path: process.env[pathKey()], - execPath: process.execPath, - ...options2 - }; - let previous; - let cwdPath = path2.resolve(options2.cwd); - const result = []; - while (previous !== cwdPath) { - result.push(path2.join(cwdPath, "node_modules/.bin")); - previous = cwdPath; - cwdPath = path2.resolve(cwdPath, ".."); - } - const execPathDir = path2.resolve(options2.cwd, options2.execPath, ".."); - result.push(execPathDir); - return result.concat(options2.path).join(path2.delimiter); - }; - module2.exports = npmRunPath; - module2.exports.default = npmRunPath; - module2.exports.env = (options2) => { - options2 = { - env: process.env, - ...options2 - }; - const env = { ...options2.env }; - const path3 = pathKey({ env }); - options2.path = env[path3]; - env[path3] = module2.exports(options2); - return env; - }; - } -}); -var require_mimic_fn = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) { - "use strict"; - var mimicFn = (to, from) => { - for (const prop of Reflect.ownKeys(from)) { - Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop)); - } - return to; - }; - module2.exports = mimicFn; - module2.exports.default = mimicFn; - } -}); -var require_onetime = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) { - "use strict"; - var mimicFn = require_mimic_fn(); - var calledFunctions = /* @__PURE__ */ new WeakMap(); - var onetime = (function_, options2 = {}) => { - if (typeof function_ !== "function") { - throw new TypeError("Expected a function"); - } - let returnValue; - let callCount = 0; - const functionName = function_.displayName || function_.name || ""; - const onetime2 = function(...arguments_) { - calledFunctions.set(onetime2, ++callCount); - if (callCount === 1) { - returnValue = function_.apply(this, arguments_); - function_ = null; - } else if (options2.throw === true) { - throw new Error(`Function \`${functionName}\` can only be called once`); - } - return returnValue; - }; - mimicFn(onetime2, function_); - calledFunctions.set(onetime2, callCount); - return onetime2; - }; - module2.exports = onetime; - module2.exports.default = onetime; - module2.exports.callCount = (function_) => { - if (!calledFunctions.has(function_)) { - throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`); - } - return calledFunctions.get(function_); - }; - } -}); -var require_core = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGNALS = void 0; - var SIGNALS = [ - { - name: "SIGHUP", - number: 1, - action: "terminate", - description: "Terminal closed", - standard: "posix" - }, - { - name: "SIGINT", - number: 2, - action: "terminate", - description: "User interruption with CTRL-C", - standard: "ansi" - }, - { - name: "SIGQUIT", - number: 3, - action: "core", - description: "User interruption with CTRL-\\", - standard: "posix" - }, - { - name: "SIGILL", - number: 4, - action: "core", - description: "Invalid machine instruction", - standard: "ansi" - }, - { - name: "SIGTRAP", - number: 5, - action: "core", - description: "Debugger breakpoint", - standard: "posix" - }, - { - name: "SIGABRT", - number: 6, - action: "core", - description: "Aborted", - standard: "ansi" - }, - { - name: "SIGIOT", - number: 6, - action: "core", - description: "Aborted", - standard: "bsd" - }, - { - name: "SIGBUS", - number: 7, - action: "core", - description: "Bus error due to misaligned, non-existing address or paging error", - standard: "bsd" - }, - { - name: "SIGEMT", - number: 7, - action: "terminate", - description: "Command should be emulated but is not implemented", - standard: "other" - }, - { - name: "SIGFPE", - number: 8, - action: "core", - description: "Floating point arithmetic error", - standard: "ansi" - }, - { - name: "SIGKILL", - number: 9, - action: "terminate", - description: "Forced termination", - standard: "posix", - forced: true - }, - { - name: "SIGUSR1", - number: 10, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGSEGV", - number: 11, - action: "core", - description: "Segmentation fault", - standard: "ansi" - }, - { - name: "SIGUSR2", - number: 12, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGPIPE", - number: 13, - action: "terminate", - description: "Broken pipe or socket", - standard: "posix" - }, - { - name: "SIGALRM", - number: 14, - action: "terminate", - description: "Timeout or timer", - standard: "posix" - }, - { - name: "SIGTERM", - number: 15, - action: "terminate", - description: "Termination", - standard: "ansi" - }, - { - name: "SIGSTKFLT", - number: 16, - action: "terminate", - description: "Stack is empty or overflowed", - standard: "other" - }, - { - name: "SIGCHLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "posix" - }, - { - name: "SIGCLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "other" - }, - { - name: "SIGCONT", - number: 18, - action: "unpause", - description: "Unpaused", - standard: "posix", - forced: true - }, - { - name: "SIGSTOP", - number: 19, - action: "pause", - description: "Paused", - standard: "posix", - forced: true - }, - { - name: "SIGTSTP", - number: 20, - action: "pause", - description: 'Paused using CTRL-Z or "suspend"', - standard: "posix" - }, - { - name: "SIGTTIN", - number: 21, - action: "pause", - description: "Background process cannot read terminal input", - standard: "posix" - }, - { - name: "SIGBREAK", - number: 21, - action: "terminate", - description: "User interruption with CTRL-BREAK", - standard: "other" - }, - { - name: "SIGTTOU", - number: 22, - action: "pause", - description: "Background process cannot write to terminal output", - standard: "posix" - }, - { - name: "SIGURG", - number: 23, - action: "ignore", - description: "Socket received out-of-band data", - standard: "bsd" - }, - { - name: "SIGXCPU", - number: 24, - action: "core", - description: "Process timed out", - standard: "bsd" - }, - { - name: "SIGXFSZ", - number: 25, - action: "core", - description: "File too big", - standard: "bsd" - }, - { - name: "SIGVTALRM", - number: 26, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGPROF", - number: 27, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGWINCH", - number: 28, - action: "ignore", - description: "Terminal window size changed", - standard: "bsd" - }, - { - name: "SIGIO", - number: 29, - action: "terminate", - description: "I/O is available", - standard: "other" - }, - { - name: "SIGPOLL", - number: 29, - action: "terminate", - description: "Watched event", - standard: "other" - }, - { - name: "SIGINFO", - number: 29, - action: "ignore", - description: "Request for process information", - standard: "other" - }, - { - name: "SIGPWR", - number: 30, - action: "terminate", - description: "Device running out of power", - standard: "systemv" - }, - { - name: "SIGSYS", - number: 31, - action: "core", - description: "Invalid system call", - standard: "other" - }, - { - name: "SIGUNUSED", - number: 31, - action: "terminate", - description: "Invalid system call", - standard: "other" - } - ]; - exports.SIGNALS = SIGNALS; - } -}); -var require_realtime = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGRTMAX = exports.getRealtimeSignals = void 0; - var getRealtimeSignals = function() { - const length = SIGRTMAX - SIGRTMIN + 1; - return Array.from({ length }, getRealtimeSignal); - }; - exports.getRealtimeSignals = getRealtimeSignals; - var getRealtimeSignal = function(value, index) { - return { - name: `SIGRT${index + 1}`, - number: SIGRTMIN + index, - action: "terminate", - description: "Application-specific signal (realtime)", - standard: "posix" - }; - }; - var SIGRTMIN = 34; - var SIGRTMAX = 64; - exports.SIGRTMAX = SIGRTMAX; - } -}); -var require_signals = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSignals = void 0; - var _os = (0, import_chunk_AH6QHEOA.__require)("os"); - var _core = require_core(); - var _realtime = require_realtime(); - var getSignals = function() { - const realtimeSignals = (0, _realtime.getRealtimeSignals)(); - const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal); - return signals; - }; - exports.getSignals = getSignals; - var normalizeSignal = function({ - name, - number: defaultNumber, - description, - action, - forced = false, - standard - }) { - const { - signals: { [name]: constantSignal } - } = _os.constants; - const supported = constantSignal !== void 0; - const number = supported ? constantSignal : defaultNumber; - return { name, number, description, supported, action, forced, standard }; - }; - } -}); -var require_main = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.signalsByNumber = exports.signalsByName = void 0; - var _os = (0, import_chunk_AH6QHEOA.__require)("os"); - var _signals = require_signals(); - var _realtime = require_realtime(); - var getSignalsByName = function() { - const signals = (0, _signals.getSignals)(); - return signals.reduce(getSignalByName, {}); - }; - var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) { - return { - ...signalByNameMemo, - [name]: { name, number, description, supported, action, forced, standard } - }; - }; - var signalsByName = getSignalsByName(); - exports.signalsByName = signalsByName; - var getSignalsByNumber = function() { - const signals = (0, _signals.getSignals)(); - const length = _realtime.SIGRTMAX + 1; - const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals)); - return Object.assign({}, ...signalsA); - }; - var getSignalByNumber = function(number, signals) { - const signal = findSignalByNumber(number, signals); - if (signal === void 0) { - return {}; - } - const { name, description, supported, action, forced, standard } = signal; - return { - [number]: { - name, - number, - description, - supported, - action, - forced, - standard - } - }; - }; - var findSignalByNumber = function(number, signals) { - const signal = signals.find(({ name }) => _os.constants.signals[name] === number); - if (signal !== void 0) { - return signal; - } - return signals.find((signalA) => signalA.number === number); - }; - var signalsByNumber = getSignalsByNumber(); - exports.signalsByNumber = signalsByNumber; - } -}); -var require_error = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports, module2) { - "use strict"; - var { signalsByName } = require_main(); - var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => { - if (timedOut) { - return `timed out after ${timeout} milliseconds`; - } - if (isCanceled) { - return "was canceled"; - } - if (errorCode !== void 0) { - return `failed with ${errorCode}`; - } - if (signal !== void 0) { - return `was killed with ${signal} (${signalDescription})`; - } - if (exitCode !== void 0) { - return `failed with exit code ${exitCode}`; - } - return "failed"; - }; - var makeError = ({ - stdout, - stderr, - all, - error, - signal, - exitCode, - command, - escapedCommand, - timedOut, - isCanceled, - killed, - parsed: { options: { timeout } } - }) => { - exitCode = exitCode === null ? void 0 : exitCode; - signal = signal === null ? void 0 : signal; - const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description; - const errorCode = error && error.code; - const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }); - const execaMessage = `Command ${prefix}: ${command}`; - const isError = Object.prototype.toString.call(error) === "[object Error]"; - const shortMessage = isError ? `${execaMessage} -${error.message}` : execaMessage; - const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n"); - if (isError) { - error.originalMessage = error.message; - error.message = message; - } else { - error = new Error(message); - } - error.shortMessage = shortMessage; - error.command = command; - error.escapedCommand = escapedCommand; - error.exitCode = exitCode; - error.signal = signal; - error.signalDescription = signalDescription; - error.stdout = stdout; - error.stderr = stderr; - if (all !== void 0) { - error.all = all; - } - if ("bufferedData" in error) { - delete error.bufferedData; - } - error.failed = true; - error.timedOut = Boolean(timedOut); - error.isCanceled = isCanceled; - error.killed = killed && !timedOut; - return error; - }; - module2.exports = makeError; - } -}); -var require_stdio = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports, module2) { - "use strict"; - var aliases = ["stdin", "stdout", "stderr"]; - var hasAlias = (options2) => aliases.some((alias) => options2[alias] !== void 0); - var normalizeStdio = (options2) => { - if (!options2) { - return; - } - const { stdio } = options2; - if (stdio === void 0) { - return aliases.map((alias) => options2[alias]); - } - if (hasAlias(options2)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`); - } - if (typeof stdio === "string") { - return stdio; - } - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - const length = Math.max(stdio.length, aliases.length); - return Array.from({ length }, (value, index) => stdio[index]); - }; - module2.exports = normalizeStdio; - module2.exports.node = (options2) => { - const stdio = normalizeStdio(options2); - if (stdio === "ipc") { - return "ipc"; - } - if (stdio === void 0 || typeof stdio === "string") { - return [stdio, stdio, stdio, "ipc"]; - } - if (stdio.includes("ipc")) { - return stdio; - } - return [...stdio, "ipc"]; - }; - } -}); -var require_signals2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) { - "use strict"; - module2.exports = [ - "SIGABRT", - "SIGALRM", - "SIGHUP", - "SIGINT", - "SIGTERM" - ]; - if (process.platform !== "win32") { - module2.exports.push( - "SIGVTALRM", - "SIGXCPU", - "SIGXFSZ", - "SIGUSR2", - "SIGTRAP", - "SIGSYS", - "SIGQUIT", - "SIGIOT" - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ); - } - if (process.platform === "linux") { - module2.exports.push( - "SIGIO", - "SIGPOLL", - "SIGPWR", - "SIGSTKFLT", - "SIGUNUSED" - ); - } - } -}); -var require_signal_exit = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) { - "use strict"; - var process2 = global.process; - var processOk = function(process3) { - return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function"; - }; - if (!processOk(process2)) { - module2.exports = function() { - return function() { - }; - }; - } else { - assert = (0, import_chunk_AH6QHEOA.__require)("assert"); - signals = require_signals2(); - isWin = /^win/i.test(process2.platform); - EE = (0, import_chunk_AH6QHEOA.__require)("events"); - if (typeof EE !== "function") { - EE = EE.EventEmitter; - } - if (process2.__signal_exit_emitter__) { - emitter = process2.__signal_exit_emitter__; - } else { - emitter = process2.__signal_exit_emitter__ = new EE(); - emitter.count = 0; - emitter.emitted = {}; - } - if (!emitter.infinite) { - emitter.setMaxListeners(Infinity); - emitter.infinite = true; - } - module2.exports = function(cb, opts2) { - if (!processOk(global.process)) { - return function() { - }; - } - assert.equal(typeof cb, "function", "a callback must be provided for exit handler"); - if (loaded === false) { - load(); - } - var ev = "exit"; - if (opts2 && opts2.alwaysLast) { - ev = "afterexit"; - } - var remove = function() { - emitter.removeListener(ev, cb); - if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) { - unload(); - } - }; - emitter.on(ev, cb); - return remove; - }; - unload = function unload2() { - if (!loaded || !processOk(global.process)) { - return; - } - loaded = false; - signals.forEach(function(sig) { - try { - process2.removeListener(sig, sigListeners[sig]); - } catch (er) { - } - }); - process2.emit = originalProcessEmit; - process2.reallyExit = originalProcessReallyExit; - emitter.count -= 1; - }; - module2.exports.unload = unload; - emit = function emit2(event, code, signal) { - if (emitter.emitted[event]) { - return; - } - emitter.emitted[event] = true; - emitter.emit(event, code, signal); - }; - sigListeners = {}; - signals.forEach(function(sig) { - sigListeners[sig] = function listener() { - if (!processOk(global.process)) { - return; - } - var listeners = process2.listeners(sig); - if (listeners.length === emitter.count) { - unload(); - emit("exit", null, sig); - emit("afterexit", null, sig); - if (isWin && sig === "SIGHUP") { - sig = "SIGINT"; - } - process2.kill(process2.pid, sig); - } - }; - }); - module2.exports.signals = function() { - return signals; - }; - loaded = false; - load = function load2() { - if (loaded || !processOk(global.process)) { - return; - } - loaded = true; - emitter.count += 1; - signals = signals.filter(function(sig) { - try { - process2.on(sig, sigListeners[sig]); - return true; - } catch (er) { - return false; - } - }); - process2.emit = processEmit; - process2.reallyExit = processReallyExit; - }; - module2.exports.load = load; - originalProcessReallyExit = process2.reallyExit; - processReallyExit = function processReallyExit2(code) { - if (!processOk(global.process)) { - return; - } - process2.exitCode = code || /* istanbul ignore next */ - 0; - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - originalProcessReallyExit.call(process2, process2.exitCode); - }; - originalProcessEmit = process2.emit; - processEmit = function processEmit2(ev, arg) { - if (ev === "exit" && processOk(global.process)) { - if (arg !== void 0) { - process2.exitCode = arg; - } - var ret = originalProcessEmit.apply(this, arguments); - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - return ret; - } else { - return originalProcessEmit.apply(this, arguments); - } - }; - } - var assert; - var signals; - var isWin; - var EE; - var emitter; - var unload; - var emit; - var sigListeners; - var loaded; - var load; - var originalProcessReallyExit; - var processReallyExit; - var originalProcessEmit; - var processEmit; - } -}); -var require_kill = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) { - "use strict"; - var os2 = (0, import_chunk_AH6QHEOA.__require)("os"); - var onExit = require_signal_exit(); - var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5; - var spawnedKill = (kill, signal = "SIGTERM", options2 = {}) => { - const killResult = kill(signal); - setKillTimeout(kill, signal, options2, killResult); - return killResult; - }; - var setKillTimeout = (kill, signal, options2, killResult) => { - if (!shouldForceKill(signal, options2, killResult)) { - return; - } - const timeout = getForceKillAfterTimeout(options2); - const t = setTimeout(() => { - kill("SIGKILL"); - }, timeout); - if (t.unref) { - t.unref(); - } - }; - var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => { - return isSigterm(signal) && forceKillAfterTimeout !== false && killResult; - }; - var isSigterm = (signal) => { - return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM"; - }; - var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => { - if (forceKillAfterTimeout === true) { - return DEFAULT_FORCE_KILL_TIMEOUT; - } - if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) { - throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`); - } - return forceKillAfterTimeout; - }; - var spawnedCancel = (spawned, context) => { - const killResult = spawned.kill(); - if (killResult) { - context.isCanceled = true; - } - }; - var timeoutKill = (spawned, signal, reject) => { - spawned.kill(signal); - reject(Object.assign(new Error("Timed out"), { timedOut: true, signal })); - }; - var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => { - if (timeout === 0 || timeout === void 0) { - return spawnedPromise; - } - let timeoutId; - const timeoutPromise = new Promise((resolve, reject) => { - timeoutId = setTimeout(() => { - timeoutKill(spawned, killSignal, reject); - }, timeout); - }); - const safeSpawnedPromise = spawnedPromise.finally(() => { - clearTimeout(timeoutId); - }); - return Promise.race([timeoutPromise, safeSpawnedPromise]); - }; - var validateTimeout = ({ timeout }) => { - if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) { - throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`); - } - }; - var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => { - if (!cleanup || detached) { - return timedPromise; - } - const removeExitHandler = onExit(() => { - spawned.kill(); - }); - return timedPromise.finally(() => { - removeExitHandler(); - }); - }; - module2.exports = { - spawnedKill, - spawnedCancel, - setupTimeout, - validateTimeout, - setExitHandler - }; - } -}); -var require_buffer_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module2) { - "use strict"; - var { PassThrough: PassThroughStream } = (0, import_chunk_AH6QHEOA.__require)("stream"); - module2.exports = (options2) => { - options2 = { ...options2 }; - const { array } = options2; - let { encoding } = options2; - const isBuffer = encoding === "buffer"; - let objectMode = false; - if (array) { - objectMode = !(encoding || isBuffer); - } else { - encoding = encoding || "utf8"; - } - if (isBuffer) { - encoding = null; - } - const stream = new PassThroughStream({ objectMode }); - if (encoding) { - stream.setEncoding(encoding); - } - let length = 0; - const chunks = []; - stream.on("data", (chunk) => { - chunks.push(chunk); - if (objectMode) { - length = chunks.length; - } else { - length += chunk.length; - } - }); - stream.getBufferedValue = () => { - if (array) { - return chunks; - } - return isBuffer ? Buffer.concat(chunks, length) : chunks.join(""); - }; - stream.getBufferedLength = () => length; - return stream; - }; - } -}); -var require_get_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports, module2) { - "use strict"; - var { constants: BufferConstants } = (0, import_chunk_AH6QHEOA.__require)("buffer"); - var stream = (0, import_chunk_AH6QHEOA.__require)("stream"); - var { promisify: promisify2 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var bufferStream = require_buffer_stream(); - var streamPipelinePromisified = promisify2(stream.pipeline); - var MaxBufferError = class extends Error { - constructor() { - super("maxBuffer exceeded"); - this.name = "MaxBufferError"; - } - }; - async function getStream(inputStream, options2) { - if (!inputStream) { - throw new Error("Expected a stream"); - } - options2 = { - maxBuffer: Infinity, - ...options2 - }; - const { maxBuffer } = options2; - const stream2 = bufferStream(options2); - await new Promise((resolve, reject) => { - const rejectPromise = (error) => { - if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) { - error.bufferedData = stream2.getBufferedValue(); - } - reject(error); - }; - (async () => { - try { - await streamPipelinePromisified(inputStream, stream2); - resolve(); - } catch (error) { - rejectPromise(error); - } - })(); - stream2.on("data", () => { - if (stream2.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }); - return stream2.getBufferedValue(); - } - module2.exports = getStream; - module2.exports.buffer = (stream2, options2) => getStream(stream2, { ...options2, encoding: "buffer" }); - module2.exports.array = (stream2, options2) => getStream(stream2, { ...options2, array: true }); - module2.exports.MaxBufferError = MaxBufferError; - } -}); -var require_merge_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module2) { - "use strict"; - var { PassThrough } = (0, import_chunk_AH6QHEOA.__require)("stream"); - module2.exports = function() { - var sources = []; - var output = new PassThrough({ objectMode: true }); - output.setMaxListeners(0); - output.add = add; - output.isEmpty = isEmpty; - output.on("unpipe", remove); - Array.prototype.slice.call(arguments).forEach(add); - return output; - function add(source) { - if (Array.isArray(source)) { - source.forEach(add); - return this; - } - sources.push(source); - source.once("end", remove.bind(null, source)); - source.once("error", output.emit.bind(output, "error")); - source.pipe(output, { end: false }); - return this; - } - function isEmpty() { - return sources.length == 0; - } - function remove(source) { - sources = sources.filter(function(it) { - return it !== source; - }); - if (!sources.length && output.readable) { - output.end(); - } - } - }; - } -}); -var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) { - "use strict"; - var isStream = (0, import_chunk_QLWYUM7O.require_is_stream)(); - var getStream = require_get_stream(); - var mergeStream = require_merge_stream(); - var handleInput = (spawned, input) => { - if (input === void 0 || spawned.stdin === void 0) { - return; - } - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } - }; - var makeAllStream = (spawned, { all }) => { - if (!all || !spawned.stdout && !spawned.stderr) { - return; - } - const mixed = mergeStream(); - if (spawned.stdout) { - mixed.add(spawned.stdout); - } - if (spawned.stderr) { - mixed.add(spawned.stderr); - } - return mixed; - }; - var getBufferedData = async (stream, streamPromise) => { - if (!stream) { - return; - } - stream.destroy(); - try { - return await streamPromise; - } catch (error) { - return error.bufferedData; - } - }; - var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => { - if (!stream || !buffer) { - return; - } - if (encoding) { - return getStream(stream, { encoding, maxBuffer }); - } - return getStream.buffer(stream, { maxBuffer }); - }; - var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => { - const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer }); - const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer }); - const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 }); - try { - return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]); - } catch (error) { - return Promise.all([ - { error, signal: error.signal, timedOut: error.timedOut }, - getBufferedData(stdout, stdoutPromise), - getBufferedData(stderr, stderrPromise), - getBufferedData(all, allPromise) - ]); - } - }; - var validateInputSync = ({ input }) => { - if (isStream(input)) { - throw new TypeError("The `input` option cannot be a stream in sync mode"); - } - }; - module2.exports = { - handleInput, - makeAllStream, - getSpawnedResult, - validateInputSync - }; - } -}); -var require_promise = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports, module2) { - "use strict"; - var nativePromisePrototype = (async () => { - })().constructor.prototype; - var descriptors = ["then", "catch", "finally"].map((property) => [ - property, - Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property) - ]); - var mergePromise = (spawned, promise) => { - for (const [property, descriptor] of descriptors) { - const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise); - Reflect.defineProperty(spawned, property, { ...descriptor, value }); - } - return spawned; - }; - var getSpawnedPromise = (spawned) => { - return new Promise((resolve, reject) => { - spawned.on("exit", (exitCode, signal) => { - resolve({ exitCode, signal }); - }); - spawned.on("error", (error) => { - reject(error); - }); - if (spawned.stdin) { - spawned.stdin.on("error", (error) => { - reject(error); - }); - } - }); - }; - module2.exports = { - mergePromise, - getSpawnedPromise - }; - } -}); -var require_command = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports, module2) { - "use strict"; - var normalizeArgs = (file2, args = []) => { - if (!Array.isArray(args)) { - return [file2]; - } - return [file2, ...args]; - }; - var NO_ESCAPE_REGEXP = /^[\w.-]+$/; - var DOUBLE_QUOTES_REGEXP = /"/g; - var escapeArg = (arg) => { - if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) { - return arg; - } - return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`; - }; - var joinCommand = (file2, args) => { - return normalizeArgs(file2, args).join(" "); - }; - var getEscapedCommand = (file2, args) => { - return normalizeArgs(file2, args).map((arg) => escapeArg(arg)).join(" "); - }; - var SPACES_REGEXP = / +/g; - var parseCommand = (command) => { - const tokens = []; - for (const token of command.trim().split(SPACES_REGEXP)) { - const previousToken = tokens[tokens.length - 1]; - if (previousToken && previousToken.endsWith("\\")) { - tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`; - } else { - tokens.push(token); - } - } - return tokens; - }; - module2.exports = { - joinCommand, - getEscapedCommand, - parseCommand - }; - } -}); -var require_execa = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var childProcess = (0, import_chunk_AH6QHEOA.__require)("child_process"); - var crossSpawn = require_cross_spawn(); - var stripFinalNewline = require_strip_final_newline(); - var npmRunPath = require_npm_run_path(); - var onetime = require_onetime(); - var makeError = require_error(); - var normalizeStdio = require_stdio(); - var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill(); - var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream(); - var { mergePromise, getSpawnedPromise } = require_promise(); - var { joinCommand, parseCommand, getEscapedCommand } = require_command(); - var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100; - var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => { - const env = extendEnv ? { ...process.env, ...envOption } : envOption; - if (preferLocal) { - return npmRunPath.env({ env, cwd: localDir, execPath }); - } - return env; - }; - var handleArguments = (file2, args, options2 = {}) => { - const parsed = crossSpawn._parse(file2, args, options2); - file2 = parsed.command; - args = parsed.args; - options2 = parsed.options; - options2 = { - maxBuffer: DEFAULT_MAX_BUFFER, - buffer: true, - stripFinalNewline: true, - extendEnv: true, - preferLocal: false, - localDir: options2.cwd || process.cwd(), - execPath: process.execPath, - encoding: "utf8", - reject: true, - cleanup: true, - all: false, - windowsHide: true, - ...options2 - }; - options2.env = getEnv(options2); - options2.stdio = normalizeStdio(options2); - if (process.platform === "win32" && path2.basename(file2, ".exe") === "cmd") { - args.unshift("/q"); - } - return { file: file2, args, options: options2, parsed }; - }; - var handleOutput = (options2, value, error) => { - if (typeof value !== "string" && !Buffer.isBuffer(value)) { - return error === void 0 ? void 0 : ""; - } - if (options2.stripFinalNewline) { - return stripFinalNewline(value); - } - return value; - }; - var execa2 = (file2, args, options2) => { - const parsed = handleArguments(file2, args, options2); - const command = joinCommand(file2, args); - const escapedCommand = getEscapedCommand(file2, args); - validateTimeout(parsed.options); - let spawned; - try { - spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options); - } catch (error) { - const dummySpawned = new childProcess.ChildProcess(); - const errorPromise = Promise.reject(makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - })); - return mergePromise(dummySpawned, errorPromise); - } - const spawnedPromise = getSpawnedPromise(spawned); - const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise); - const processDone = setExitHandler(spawned, parsed.options, timedPromise); - const context = { isCanceled: false }; - spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned)); - spawned.cancel = spawnedCancel.bind(null, spawned, context); - const handlePromise = async () => { - const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone); - const stdout = handleOutput(parsed.options, stdoutResult); - const stderr = handleOutput(parsed.options, stderrResult); - const all = handleOutput(parsed.options, allResult); - if (error || exitCode !== 0 || signal !== null) { - const returnedError = makeError({ - error, - exitCode, - signal, - stdout, - stderr, - all, - command, - escapedCommand, - parsed, - timedOut, - isCanceled: context.isCanceled, - killed: spawned.killed - }); - if (!parsed.options.reject) { - return returnedError; - } - throw returnedError; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - all, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - const handlePromiseOnce = onetime(handlePromise); - handleInput(spawned, parsed.options.input); - spawned.all = makeAllStream(spawned, parsed.options); - return mergePromise(spawned, handlePromiseOnce); - }; - module2.exports = execa2; - module2.exports.sync = (file2, args, options2) => { - const parsed = handleArguments(file2, args, options2); - const command = joinCommand(file2, args); - const escapedCommand = getEscapedCommand(file2, args); - validateInputSync(parsed.options); - let result; - try { - result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options); - } catch (error) { - throw makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - }); - } - const stdout = handleOutput(parsed.options, result.stdout, result.error); - const stderr = handleOutput(parsed.options, result.stderr, result.error); - if (result.error || result.status !== 0 || result.signal !== null) { - const error = makeError({ - stdout, - stderr, - error: result.error, - signal: result.signal, - exitCode: result.status, - command, - escapedCommand, - parsed, - timedOut: result.error && result.error.code === "ETIMEDOUT", - isCanceled: false, - killed: result.signal !== null - }); - if (!parsed.options.reject) { - return error; - } - throw error; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - module2.exports.command = (command, options2) => { - const [file2, ...args] = parseCommand(command); - return execa2(file2, args, options2); - }; - module2.exports.commandSync = (command, options2) => { - const [file2, ...args] = parseCommand(command); - return execa2.sync(file2, args, options2); - }; - module2.exports.node = (scriptPath, args, options2 = {}) => { - if (args && !Array.isArray(args) && typeof args === "object") { - options2 = args; - args = []; - } - const stdio = normalizeStdio.node(options2); - const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect")); - const { - nodePath = process.execPath, - nodeOptions = defaultExecArgv - } = options2; - return execa2( - nodePath, - [ - ...nodeOptions, - scriptPath, - ...Array.isArray(args) ? args : [] - ], - { - ...options2, - stdin: void 0, - stdout: void 0, - stderr: void 0, - stdio, - shell: false - } - ); - }; - } -}); -var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-map@2.1.0/node_modules/p-map/index.js"(exports, module2) { - "use strict"; - var pMap = (iterable, mapper, options2) => new Promise((resolve, reject) => { - options2 = Object.assign({ - concurrency: Infinity - }, options2); - if (typeof mapper !== "function") { - throw new TypeError("Mapper function is required"); - } - const { concurrency } = options2; - if (!(typeof concurrency === "number" && concurrency >= 1)) { - throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${concurrency}\` (${typeof concurrency})`); - } - const ret = []; - const iterator = iterable[Symbol.iterator](); - let isRejected = false; - let isIterableDone = false; - let resolvingCount = 0; - let currentIndex = 0; - const next = () => { - if (isRejected) { - return; - } - const nextItem = iterator.next(); - const i = currentIndex; - currentIndex++; - if (nextItem.done) { - isIterableDone = true; - if (resolvingCount === 0) { - resolve(ret); - } - return; - } - resolvingCount++; - Promise.resolve(nextItem.value).then((element) => mapper(element, i)).then( - (value) => { - ret[i] = value; - resolvingCount--; - next(); - }, - (error) => { - isRejected = true; - reject(error); - } - ); - }; - for (let i = 0; i < concurrency; i++) { - next(); - if (isIterableDone) { - break; - } - } - }); - module2.exports = pMap; - module2.exports.default = pMap; - } -}); -var require_p_filter = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-filter@2.1.0/node_modules/p-filter/index.js"(exports, module2) { - "use strict"; - var pMap = require_p_map(); - var pFilter2 = async (iterable, filterer, options2) => { - const values = await pMap( - iterable, - (element, index) => Promise.all([filterer(element, index), element]), - options2 - ); - return values.filter((value) => Boolean(value[0])).map((value) => value[1]); - }; - module2.exports = pFilter2; - module2.exports.default = pFilter2; - } -}); -var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({ - "package.json"(exports, module2) { - module2.exports = { - name: "@prisma/fetch-engine", - version: "5.22.0", - description: "This package is intended for Prisma's internal use", - main: "dist/index.js", - types: "dist/index.d.ts", - license: "Apache-2.0", - author: "Tim Suchanek ", - homepage: "https://www.prisma.io", - repository: { - type: "git", - url: "https://github.com/prisma/prisma.git", - directory: "packages/fetch-engine" - }, - bugs: "https://github.com/prisma/prisma/issues", - enginesOverride: {}, - devDependencies: { - "@swc/core": "1.6.13", - "@swc/jest": "0.2.36", - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "@types/progress": "2.0.7", - del: "6.1.1", - execa: "5.1.1", - "find-cache-dir": "5.0.0", - "fs-extra": "11.1.1", - hasha: "5.2.2", - "http-proxy-agent": "7.0.2", - "https-proxy-agent": "7.0.5", - jest: "29.7.0", - kleur: "4.1.5", - "node-fetch": "3.3.2", - "p-filter": "2.1.0", - "p-map": "4.0.0", - "p-retry": "4.6.2", - progress: "2.0.3", - rimraf: "3.0.2", - "strip-ansi": "6.0.1", - "temp-dir": "2.0.0", - tempy: "1.0.1", - "timeout-signal": "2.0.0", - typescript: "5.4.5" - }, - dependencies: { - "@prisma/debug": "workspace:*", - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/get-platform": "workspace:*" - }, - scripts: { - dev: "DEV=true tsx helpers/build.ts", - build: "tsx helpers/build.ts", - test: "jest", - prepublishOnly: "pnpm run build" - }, - files: [ - "README.md", - "dist" - ], - sideEffects: false - }; - } -}); -var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa()); -var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_FQ2BOR66.require_lib)()); -var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter()); -var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_QLWYUM7O.require_temp_dir)()); -var { enginesOverride } = require_package(); -var debug = (0, import_debug.default)("prisma:fetch-engine:download"); -var exists = (0, import_util.promisify)(import_fs.default.exists); -var channel = "master"; -var vercelPkgPathRegex = /^((\w:[\\\/])|\/)snapshot[\/\\]/; -async function download(options) { - if (enginesOverride?.["branch"] || enginesOverride?.["folder"]) { - options.version = "_local_"; - options.skipCacheIntegrityCheck = true; - } - const { binaryTarget, ...os } = await (0, import_get_platform.getPlatformInfo)(); - if (os.targetDistro && ["nixos"].includes(os.targetDistro) && !(0, import_chunk_PXQVM7NP.allEngineEnvVarsSet)(Object.keys(options.binaries))) { - console.error( - `${(0, import_chunk_PXQVM7NP.yellow)("Warning")} Precompiled engine files are not available for ${os.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines` - ); - } else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) { - console.error( - `${(0, import_chunk_PXQVM7NP.yellow)( - "Warning" - )} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines` - ); - } else if ("libquery-engine" in options.binaries) { - (0, import_get_platform.assertNodeAPISupported)(); - } - if (!options.binaries || Object.values(options.binaries).length === 0) { - return {}; - } - const opts = { - ...options, - binaryTargets: options.binaryTargets ?? [binaryTarget], - version: options.version ?? "latest", - binaries: options.binaries - }; - const binaryJobs = Object.entries(opts.binaries).flatMap( - ([binaryName, targetFolder]) => opts.binaryTargets.map((binaryTarget2) => { - const fileName = getBinaryName(binaryName, binaryTarget2); - const targetFilePath = import_path.default.join(targetFolder, fileName); - return { - binaryName, - targetFolder, - binaryTarget: binaryTarget2, - fileName, - targetFilePath, - envVarPath: (0, import_chunk_PXQVM7NP.getBinaryEnvVarPath)(binaryName)?.path, - skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck - }; - }) - ); - if (process.env.BINARY_DOWNLOAD_VERSION) { - debug(`process.env.BINARY_DOWNLOAD_VERSION is set to "${process.env.BINARY_DOWNLOAD_VERSION}"`); - opts.version = process.env.BINARY_DOWNLOAD_VERSION; - } - if (opts.printVersion) { - console.log(`version: ${opts.version}`); - } - const binariesToDownload = await (0, import_p_filter.default)(binaryJobs, async (job) => { - const needsToBeDownloaded = await binaryNeedsToBeDownloaded(job, binaryTarget, opts.version); - const isSupported = import_get_platform.binaryTargets.includes(job.binaryTarget); - const shouldDownload = isSupported && !job.envVarPath && // this is for custom binaries - needsToBeDownloaded; - if (needsToBeDownloaded && !isSupported) { - throw new Error(`Unknown binaryTarget ${job.binaryTarget} and no custom engine files were provided`); - } - return shouldDownload; - }); - if (binariesToDownload.length > 0) { - const cleanupPromise = (0, import_chunk_QSTZGX47.cleanupCache)(); - let finishBar; - let setProgress; - if (opts.showProgress) { - const collectiveBar = getCollectiveBar(opts); - finishBar = collectiveBar.finishBar; - setProgress = collectiveBar.setProgress; - } - const promises = binariesToDownload.map((job) => { - const downloadUrl = (0, import_chunk_FQ2BOR66.getDownloadUrl)({ - channel: "all_commits", - version: opts.version, - binaryTarget: job.binaryTarget, - binaryName: job.binaryName - }); - debug(`${downloadUrl} will be downloaded to ${job.targetFilePath}`); - return downloadBinary({ - ...job, - downloadUrl, - version: opts.version, - failSilent: opts.failSilent, - progressCb: setProgress ? setProgress(job.targetFilePath) : void 0 - }); - }); - await Promise.all(promises); - await cleanupPromise; - if (finishBar) { - finishBar(); - } - } - const binaryPaths = binaryJobsToBinaryPaths(binaryJobs); - const dir = eval("__dirname"); - if (dir.match(vercelPkgPathRegex)) { - for (const engineType in binaryPaths) { - const binaryTargets2 = binaryPaths[engineType]; - for (const binaryTarget2 in binaryTargets2) { - const binaryPath = binaryTargets2[binaryTarget2]; - binaryTargets2[binaryTarget2] = await maybeCopyToTmp(binaryPath); - } - } - } - return binaryPaths; -} -function getCollectiveBar(options2) { - const hasNodeAPI = "libquery-engine" in options2.binaries; - const bar = (0, import_chunk_4LX3XBNY.getBar)( - `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options2.binaryTargets?.map((p) => (0, import_chunk_PXQVM7NP.bold)(p)).join(" and ")}` - ); - const progressMap = {}; - const numDownloads = Object.values(options2.binaries).length * Object.values(options2?.binaryTargets ?? []).length; - const setProgress = (sourcePath) => (progress) => { - progressMap[sourcePath] = progress; - const progressValues = Object.values(progressMap); - const totalProgress = progressValues.reduce((acc, curr) => { - return acc + curr; - }, 0) / numDownloads; - if (options2.progressCb) { - options2.progressCb(totalProgress); - } - if (bar) { - bar.update(totalProgress); - } - }; - return { - setProgress, - finishBar: () => { - bar.update(1); - bar.terminate(); - } - }; -} -function binaryJobsToBinaryPaths(jobs) { - return jobs.reduce((acc, job) => { - if (!acc[job.binaryName]) { - acc[job.binaryName] = {}; - } - acc[job.binaryName][job.binaryTarget] = job.envVarPath || job.targetFilePath; - return acc; - }, {}); -} -async function binaryNeedsToBeDownloaded(job, nativePlatform, version) { - if (job.envVarPath && import_fs.default.existsSync(job.envVarPath)) { - return false; - } - const targetExists = await exists(job.targetFilePath); - const cachedFile = await getCachedBinaryPath({ - ...job, - version - }); - if (cachedFile) { - if (job.skipCacheIntegrityCheck === true) { - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - return false; - } - const sha256FilePath = cachedFile + ".sha256"; - if (await exists(sha256FilePath)) { - const sha256File = await import_fs.default.promises.readFile(sha256FilePath, "utf-8"); - const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile); - if (sha256File === sha256Cache) { - if (!targetExists) { - debug(`copying ${cachedFile} to ${job.targetFilePath}`); - await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()); - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - } - const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath); - if (sha256File !== targetSha256) { - debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`); - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - } - return false; - } else { - return true; - } - } else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) { - debug( - `The checksum file: ${sha256FilePath} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.` - ); - return false; - } else { - return true; - } - } - if (!targetExists) { - debug(`file ${job.targetFilePath} does not exist and must be downloaded`); - return true; - } - if (job.binaryTarget === nativePlatform) { - const currentVersion = await getVersion(job.targetFilePath, job.binaryName); - if (currentVersion?.includes(version) !== true) { - debug(`file ${job.targetFilePath} exists but its version is ${currentVersion} and we expect ${version}`); - return true; - } - } - return false; -} -async function getVersion(enginePath, binaryName) { - try { - if (binaryName === "libquery-engine") { - (0, import_get_platform.assertNodeAPISupported)(); - const commitHash = (0, import_chunk_AH6QHEOA.__require)(enginePath).version().commit; - return `${"libquery-engine"} ${commitHash}`; - } else { - const result = await (0, import_execa.default)(enginePath, ["--version"]); - return result.stdout; - } - } catch { - } - return void 0; -} -function getBinaryName(binaryName, binaryTarget2) { - if (binaryName === "libquery-engine") { - return `${(0, import_get_platform.getNodeAPIName)(binaryTarget2, "fs")}`; - } - const extension = binaryTarget2 === "windows" ? ".exe" : ""; - return `${binaryName}-${binaryTarget2}${extension}`; -} -async function getCachedBinaryPath({ - version, - binaryTarget: binaryTarget2, - binaryName -}) { - const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, binaryTarget2); - if (!cacheDir) { - return null; - } - const cachedTargetPath = import_path.default.join(cacheDir, binaryName); - if (!import_fs.default.existsSync(cachedTargetPath)) { - return null; - } - if (version !== "latest") { - return cachedTargetPath; - } - if (await exists(cachedTargetPath)) { - return cachedTargetPath; - } - return null; -} -async function downloadBinary(options2) { - const { version, progressCb, targetFilePath, downloadUrl } = options2; - const targetDir = import_path.default.dirname(targetFilePath); - try { - import_fs.default.accessSync(targetDir, import_fs.default.constants.W_OK); - await (0, import_fs_extra.ensureDir)(targetDir); - } catch (e) { - if (options2.failSilent || e.code !== "EACCES") { - return; - } else { - throw new Error(`Can't write to ${targetDir} please make sure you install "prisma" with the right permissions.`); - } - } - debug(`Downloading ${downloadUrl} to ${targetFilePath} ...`); - if (progressCb) { - progressCb(0); - } - const { sha256, zippedSha256 } = await (0, import_chunk_QLWYUM7O.downloadZip)(downloadUrl, targetFilePath, progressCb); - if (progressCb) { - progressCb(1); - } - (0, import_chunk_MX3HXAU2.chmodPlusX)(targetFilePath); - await saveFileToCache(options2, version, sha256, zippedSha256); -} -async function saveFileToCache(job, version, sha256, zippedSha256) { - const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, job.binaryTarget); - if (!cacheDir) { - return; - } - const cachedTargetPath = import_path.default.join(cacheDir, job.binaryName); - const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256"); - const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256"); - try { - await (0, import_chunk_FQ2BOR66.overwriteFile)(job.targetFilePath, cachedTargetPath); - if (sha256 != null) { - await import_fs.default.promises.writeFile(cachedSha256Path, sha256); - } - if (zippedSha256 != null) { - await import_fs.default.promises.writeFile(cachedSha256ZippedPath, zippedSha256); - } - } catch (e) { - debug(e); - } -} -async function maybeCopyToTmp(file) { - const dir = eval("__dirname"); - if (dir.match(vercelPkgPathRegex)) { - const targetDir = import_path.default.join(import_temp_dir.default, "prisma-binaries"); - await (0, import_fs_extra.ensureDir)(targetDir); - const target = import_path.default.join(targetDir, import_path.default.basename(file)); - const data = await import_fs.default.promises.readFile(file); - await import_fs.default.promises.writeFile(target, data); - plusX(target); - return target; - } - return file; -} -function plusX(file2) { - const s = import_fs.default.statSync(file2); - const newMode = s.mode | 64 | 8 | 1; - if (s.mode === newMode) { - return; - } - const base8 = newMode.toString(8).slice(-3); - import_fs.default.chmodSync(file2, base8); -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js deleted file mode 100644 index eaee5d4..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_4LX3XBNY_exports = {}; -__export(chunk_4LX3XBNY_exports, { - getBar: () => getBar -}); -module.exports = __toCommonJS(chunk_4LX3XBNY_exports); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var require_node_progress = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/lib/node-progress.js"(exports, module2) { - "use strict"; - exports = module2.exports = ProgressBar; - function ProgressBar(fmt, options) { - this.stream = options.stream || process.stderr; - if (typeof options == "number") { - var total = options; - options = {}; - options.total = total; - } else { - options = options || {}; - if ("string" != typeof fmt) throw new Error("format required"); - if ("number" != typeof options.total) throw new Error("total required"); - } - this.fmt = fmt; - this.curr = options.curr || 0; - this.total = options.total; - this.width = options.width || this.total; - this.clear = options.clear; - this.chars = { - complete: options.complete || "=", - incomplete: options.incomplete || "-", - head: options.head || (options.complete || "=") - }; - this.renderThrottle = options.renderThrottle !== 0 ? options.renderThrottle || 16 : 0; - this.lastRender = -Infinity; - this.callback = options.callback || function() { - }; - this.tokens = {}; - this.lastDraw = ""; - } - ProgressBar.prototype.tick = function(len, tokens) { - if (len !== 0) - len = len || 1; - if ("object" == typeof len) tokens = len, len = 1; - if (tokens) this.tokens = tokens; - if (0 == this.curr) this.start = /* @__PURE__ */ new Date(); - this.curr += len; - this.render(); - if (this.curr >= this.total) { - this.render(void 0, true); - this.complete = true; - this.terminate(); - this.callback(this); - return; - } - }; - ProgressBar.prototype.render = function(tokens, force) { - force = force !== void 0 ? force : false; - if (tokens) this.tokens = tokens; - if (!this.stream.isTTY) return; - var now = Date.now(); - var delta = now - this.lastRender; - if (!force && delta < this.renderThrottle) { - return; - } else { - this.lastRender = now; - } - var ratio = this.curr / this.total; - ratio = Math.min(Math.max(ratio, 0), 1); - var percent = Math.floor(ratio * 100); - var incomplete, complete, completeLength; - var elapsed = /* @__PURE__ */ new Date() - this.start; - var eta = percent == 100 ? 0 : elapsed * (this.total / this.curr - 1); - var rate = this.curr / (elapsed / 1e3); - var str = this.fmt.replace(":current", this.curr).replace(":total", this.total).replace(":elapsed", isNaN(elapsed) ? "0.0" : (elapsed / 1e3).toFixed(1)).replace(":eta", isNaN(eta) || !isFinite(eta) ? "0.0" : (eta / 1e3).toFixed(1)).replace(":percent", percent.toFixed(0) + "%").replace(":rate", Math.round(rate)); - var availableSpace = Math.max(0, this.stream.columns - str.replace(":bar", "").length); - if (availableSpace && process.platform === "win32") { - availableSpace = availableSpace - 1; - } - var width = Math.min(this.width, availableSpace); - completeLength = Math.round(width * ratio); - complete = Array(Math.max(0, completeLength + 1)).join(this.chars.complete); - incomplete = Array(Math.max(0, width - completeLength + 1)).join(this.chars.incomplete); - if (completeLength > 0) - complete = complete.slice(0, -1) + this.chars.head; - str = str.replace(":bar", complete + incomplete); - if (this.tokens) for (var key in this.tokens) str = str.replace(":" + key, this.tokens[key]); - if (this.lastDraw !== str) { - this.stream.cursorTo(0); - this.stream.write(str); - this.stream.clearLine(1); - this.lastDraw = str; - } - }; - ProgressBar.prototype.update = function(ratio, tokens) { - var goal = Math.floor(ratio * this.total); - var delta = goal - this.curr; - this.tick(delta, tokens); - }; - ProgressBar.prototype.interrupt = function(message) { - this.stream.clearLine(); - this.stream.cursorTo(0); - this.stream.write(message); - this.stream.write("\n"); - this.stream.write(this.lastDraw); - }; - ProgressBar.prototype.terminate = function() { - if (this.clear) { - if (this.stream.clearLine) { - this.stream.clearLine(); - this.stream.cursorTo(0); - } - } else { - this.stream.write("\n"); - } - }; - } -}); -var require_progress = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/index.js"(exports, module2) { - "use strict"; - module2.exports = require_node_progress(); - } -}); -var import_progress = (0, import_chunk_AH6QHEOA.__toESM)(require_progress()); -function getBar(text) { - return new import_progress.default(`> ${text} [:bar] :percent`, { - stream: process.stdout, - width: 20, - complete: "=", - incomplete: " ", - total: 100, - head: "", - clear: true - }); -} -/*! Bundled license information: - -progress/lib/node-progress.js: - (*! - * node-progress - * Copyright(c) 2011 TJ Holowaychuk - * MIT Licensed - *) -*/ diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js deleted file mode 100644 index e0f3067..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_AH6QHEOA_exports = {}; -__export(chunk_AH6QHEOA_exports, { - __commonJS: () => __commonJS, - __privateAdd: () => __privateAdd, - __privateGet: () => __privateGet, - __privateSet: () => __privateSet, - __require: () => __require, - __toESM: () => __toESM -}); -module.exports = __toCommonJS(chunk_AH6QHEOA_exports); -var __create = Object.create; -var __defProp2 = Object.defineProperty; -var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; -var __getOwnPropNames2 = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp2 = Object.prototype.hasOwnProperty; -var __typeError = (msg) => { - throw TypeError(msg); -}; -var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { - get: (a, b) => (typeof require !== "undefined" ? require : a)[b] -}) : x)(function(x) { - if (typeof require !== "undefined") return require.apply(this, arguments); - throw Error('Dynamic require of "' + x + '" is not supported'); -}); -var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __copyProps2 = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames2(from)) - if (!__hasOwnProp2.call(to, key) && key !== except) - __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps2( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); -var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); -var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); -var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js deleted file mode 100644 index e3a4c88..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_CWGQAQ3T_exports = {}; -__export(chunk_CWGQAQ3T_exports, { - getHash: () => getHash -}); -module.exports = __toCommonJS(chunk_CWGQAQ3T_exports); -var import_crypto = __toESM(require("crypto")); -var import_fs = __toESM(require("fs")); -function getHash(filePath) { - const hash = import_crypto.default.createHash("sha256"); - const input = import_fs.default.createReadStream(filePath); - return new Promise((resolve) => { - input.on("readable", () => { - const data = input.read(); - if (data) { - hash.update(data); - } else { - resolve(hash.digest("hex")); - } - }); - }); -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js deleted file mode 100644 index b16ad8a..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +++ /dev/null @@ -1,2457 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_FQ2BOR66_exports = {}; -__export(chunk_FQ2BOR66_exports, { - getCacheDir: () => getCacheDir, - getDownloadUrl: () => getDownloadUrl, - getRootCacheDir: () => getRootCacheDir, - overwriteFile: () => overwriteFile, - require_graceful_fs: () => require_graceful_fs, - require_lib: () => require_lib -}); -module.exports = __toCommonJS(chunk_FQ2BOR66_exports); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM(require("@prisma/debug")); -var import_get_platform = require("@prisma/get-platform"); -var import_process = __toESM(require("process")); -var import_path = __toESM(require("path")); -var import_fs = __toESM(require("fs")); -var import_path2 = __toESM(require("path")); -var import_path3 = __toESM(require("path")); -var import_url = require("url"); -var import_process2 = __toESM(require("process")); -var import_path4 = __toESM(require("path")); -var import_fs2 = __toESM(require("fs")); -var import_url2 = require("url"); -var import_fs3 = __toESM(require("fs")); -var import_os = __toESM(require("os")); -var import_path5 = __toESM(require("path")); -var require_common_path_prefix = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/common-path-prefix@3.0.0/node_modules/common-path-prefix/index.js"(exports, module2) { - "use strict"; - var { sep: DEFAULT_SEPARATOR } = (0, import_chunk_AH6QHEOA.__require)("path"); - var determineSeparator = (paths) => { - for (const path6 of paths) { - const match = /(\/|\\)/.exec(path6); - if (match !== null) return match[0]; - } - return DEFAULT_SEPARATOR; - }; - module2.exports = function commonPathPrefix2(paths, sep = determineSeparator(paths)) { - const [first = "", ...remaining] = paths; - if (first === "" || remaining.length === 0) return ""; - const parts = first.split(sep); - let endOfPrefix = parts.length; - for (const path6 of remaining) { - const compare = path6.split(sep); - for (let i = 0; i < endOfPrefix; i++) { - if (compare[i] !== parts[i]) { - endOfPrefix = i; - } - } - if (endOfPrefix === 0) return ""; - } - const prefix = parts.slice(0, endOfPrefix).join(sep); - return prefix.endsWith(sep) ? prefix : prefix + sep; - }; - } -}); -var require_universalify = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) { - "use strict"; - exports.fromCallback = function(fn) { - return Object.defineProperty(function(...args) { - if (typeof args[args.length - 1] === "function") fn.apply(this, args); - else { - return new Promise((resolve, reject) => { - fn.call( - this, - ...args, - (err, res) => err != null ? reject(err) : resolve(res) - ); - }); - } - }, "name", { value: fn.name }); - }; - exports.fromPromise = function(fn) { - return Object.defineProperty(function(...args) { - const cb = args[args.length - 1]; - if (typeof cb !== "function") return fn.apply(this, args); - else fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb); - }, "name", { value: fn.name }); - }; - } -}); -var require_polyfills = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) { - "use strict"; - var constants = (0, import_chunk_AH6QHEOA.__require)("constants"); - var origCwd = process.cwd; - var cwd2 = null; - var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform; - process.cwd = function() { - if (!cwd2) - cwd2 = origCwd.call(process); - return cwd2; - }; - try { - process.cwd(); - } catch (er) { - } - if (typeof process.chdir === "function") { - chdir = process.chdir; - process.chdir = function(d) { - cwd2 = null; - chdir.call(process, d); - }; - if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir); - } - var chdir; - module2.exports = patch; - function patch(fs4) { - if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs4); - } - if (!fs4.lutimes) { - patchLutimes(fs4); - } - fs4.chown = chownFix(fs4.chown); - fs4.fchown = chownFix(fs4.fchown); - fs4.lchown = chownFix(fs4.lchown); - fs4.chmod = chmodFix(fs4.chmod); - fs4.fchmod = chmodFix(fs4.fchmod); - fs4.lchmod = chmodFix(fs4.lchmod); - fs4.chownSync = chownFixSync(fs4.chownSync); - fs4.fchownSync = chownFixSync(fs4.fchownSync); - fs4.lchownSync = chownFixSync(fs4.lchownSync); - fs4.chmodSync = chmodFixSync(fs4.chmodSync); - fs4.fchmodSync = chmodFixSync(fs4.fchmodSync); - fs4.lchmodSync = chmodFixSync(fs4.lchmodSync); - fs4.stat = statFix(fs4.stat); - fs4.fstat = statFix(fs4.fstat); - fs4.lstat = statFix(fs4.lstat); - fs4.statSync = statFixSync(fs4.statSync); - fs4.fstatSync = statFixSync(fs4.fstatSync); - fs4.lstatSync = statFixSync(fs4.lstatSync); - if (fs4.chmod && !fs4.lchmod) { - fs4.lchmod = function(path6, mode, cb) { - if (cb) process.nextTick(cb); - }; - fs4.lchmodSync = function() { - }; - } - if (fs4.chown && !fs4.lchown) { - fs4.lchown = function(path6, uid, gid, cb) { - if (cb) process.nextTick(cb); - }; - fs4.lchownSync = function() { - }; - } - if (platform === "win32") { - fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : function(fs$rename) { - function rename(from, to, cb) { - var start = Date.now(); - var backoff = 0; - fs$rename(from, to, function CB(er) { - if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) { - setTimeout(function() { - fs4.stat(to, function(stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er); - }); - }, backoff); - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er); - }); - } - if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename); - return rename; - }(fs4.rename); - } - fs4.read = typeof fs4.read !== "function" ? fs4.read : function(fs$read) { - function read(fd, buffer, offset, length, position, callback_) { - var callback; - if (callback_ && typeof callback_ === "function") { - var eagCounter = 0; - callback = function(er, _, __) { - if (er && er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - return fs$read.call(fs4, fd, buffer, offset, length, position, callback); - } - callback_.apply(this, arguments); - }; - } - return fs$read.call(fs4, fd, buffer, offset, length, position, callback); - } - if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read); - return read; - }(fs4.read); - fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) { - return function(fd, buffer, offset, length, position) { - var eagCounter = 0; - while (true) { - try { - return fs$readSync.call(fs4, fd, buffer, offset, length, position); - } catch (er) { - if (er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - continue; - } - throw er; - } - } - }; - }(fs4.readSync); - function patchLchmod(fs5) { - fs5.lchmod = function(path6, mode, callback) { - fs5.open( - path6, - constants.O_WRONLY | constants.O_SYMLINK, - mode, - function(err, fd) { - if (err) { - if (callback) callback(err); - return; - } - fs5.fchmod(fd, mode, function(err2) { - fs5.close(fd, function(err22) { - if (callback) callback(err2 || err22); - }); - }); - } - ); - }; - fs5.lchmodSync = function(path6, mode) { - var fd = fs5.openSync(path6, constants.O_WRONLY | constants.O_SYMLINK, mode); - var threw = true; - var ret; - try { - ret = fs5.fchmodSync(fd, mode); - threw = false; - } finally { - if (threw) { - try { - fs5.closeSync(fd); - } catch (er) { - } - } else { - fs5.closeSync(fd); - } - } - return ret; - }; - } - function patchLutimes(fs5) { - if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) { - fs5.lutimes = function(path6, at, mt, cb) { - fs5.open(path6, constants.O_SYMLINK, function(er, fd) { - if (er) { - if (cb) cb(er); - return; - } - fs5.futimes(fd, at, mt, function(er2) { - fs5.close(fd, function(er22) { - if (cb) cb(er2 || er22); - }); - }); - }); - }; - fs5.lutimesSync = function(path6, at, mt) { - var fd = fs5.openSync(path6, constants.O_SYMLINK); - var ret; - var threw = true; - try { - ret = fs5.futimesSync(fd, at, mt); - threw = false; - } finally { - if (threw) { - try { - fs5.closeSync(fd); - } catch (er) { - } - } else { - fs5.closeSync(fd); - } - } - return ret; - }; - } else if (fs5.futimes) { - fs5.lutimes = function(_a, _b, _c, cb) { - if (cb) process.nextTick(cb); - }; - fs5.lutimesSync = function() { - }; - } - } - function chmodFix(orig) { - if (!orig) return orig; - return function(target, mode, cb) { - return orig.call(fs4, target, mode, function(er) { - if (chownErOk(er)) er = null; - if (cb) cb.apply(this, arguments); - }); - }; - } - function chmodFixSync(orig) { - if (!orig) return orig; - return function(target, mode) { - try { - return orig.call(fs4, target, mode); - } catch (er) { - if (!chownErOk(er)) throw er; - } - }; - } - function chownFix(orig) { - if (!orig) return orig; - return function(target, uid, gid, cb) { - return orig.call(fs4, target, uid, gid, function(er) { - if (chownErOk(er)) er = null; - if (cb) cb.apply(this, arguments); - }); - }; - } - function chownFixSync(orig) { - if (!orig) return orig; - return function(target, uid, gid) { - try { - return orig.call(fs4, target, uid, gid); - } catch (er) { - if (!chownErOk(er)) throw er; - } - }; - } - function statFix(orig) { - if (!orig) return orig; - return function(target, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - function callback(er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 4294967296; - if (stats.gid < 0) stats.gid += 4294967296; - } - if (cb) cb.apply(this, arguments); - } - return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback); - }; - } - function statFixSync(orig) { - if (!orig) return orig; - return function(target, options) { - var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target); - if (stats) { - if (stats.uid < 0) stats.uid += 4294967296; - if (stats.gid < 0) stats.gid += 4294967296; - } - return stats; - }; - } - function chownErOk(er) { - if (!er) - return true; - if (er.code === "ENOSYS") - return true; - var nonroot = !process.getuid || process.getuid() !== 0; - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true; - } - return false; - } - } - } -}); -var require_legacy_streams = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) { - "use strict"; - var Stream = (0, import_chunk_AH6QHEOA.__require)("stream").Stream; - module2.exports = legacy; - function legacy(fs4) { - return { - ReadStream, - WriteStream - }; - function ReadStream(path6, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path6, options); - Stream.call(this); - var self = this; - this.path = path6; - this.fd = null; - this.readable = true; - this.paused = false; - this.flags = "r"; - this.mode = 438; - this.bufferSize = 64 * 1024; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.encoding) this.setEncoding(this.encoding); - if (this.start !== void 0) { - if ("number" !== typeof this.start) { - throw TypeError("start must be a Number"); - } - if (this.end === void 0) { - this.end = Infinity; - } else if ("number" !== typeof this.end) { - throw TypeError("end must be a Number"); - } - if (this.start > this.end) { - throw new Error("start must be <= end"); - } - this.pos = this.start; - } - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - fs4.open(this.path, this.flags, this.mode, function(err, fd) { - if (err) { - self.emit("error", err); - self.readable = false; - return; - } - self.fd = fd; - self.emit("open", fd); - self._read(); - }); - } - function WriteStream(path6, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path6, options); - Stream.call(this); - this.path = path6; - this.fd = null; - this.writable = true; - this.flags = "w"; - this.encoding = "binary"; - this.mode = 438; - this.bytesWritten = 0; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.start !== void 0) { - if ("number" !== typeof this.start) { - throw TypeError("start must be a Number"); - } - if (this.start < 0) { - throw new Error("start must be >= zero"); - } - this.pos = this.start; - } - this.busy = false; - this._queue = []; - if (this.fd === null) { - this._open = fs4.open; - this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); - this.flush(); - } - } - } - } -}); -var require_clone = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) { - "use strict"; - module2.exports = clone; - var getPrototypeOf = Object.getPrototypeOf || function(obj) { - return obj.__proto__; - }; - function clone(obj) { - if (obj === null || typeof obj !== "object") - return obj; - if (obj instanceof Object) - var copy = { __proto__: getPrototypeOf(obj) }; - else - var copy = /* @__PURE__ */ Object.create(null); - Object.getOwnPropertyNames(obj).forEach(function(key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)); - }); - return copy; - } - } -}); -var require_graceful_fs = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) { - "use strict"; - var fs4 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var polyfills = require_polyfills(); - var legacy = require_legacy_streams(); - var clone = require_clone(); - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - var gracefulQueue; - var previousSymbol; - if (typeof Symbol === "function" && typeof Symbol.for === "function") { - gracefulQueue = Symbol.for("graceful-fs.queue"); - previousSymbol = Symbol.for("graceful-fs.previous"); - } else { - gracefulQueue = "___graceful-fs.queue"; - previousSymbol = "___graceful-fs.previous"; - } - function noop() { - } - function publishQueue(context, queue2) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue2; - } - }); - } - var debug2 = noop; - if (util.debuglog) - debug2 = util.debuglog("gfs4"); - else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) - debug2 = function() { - var m = util.format.apply(util, arguments); - m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); - console.error(m); - }; - if (!fs4[gracefulQueue]) { - queue = global[gracefulQueue] || []; - publishQueue(fs4, queue); - fs4.close = function(fs$close) { - function close(fd, cb) { - return fs$close.call(fs4, fd, function(err) { - if (!err) { - resetQueue(); - } - if (typeof cb === "function") - cb.apply(this, arguments); - }); - } - Object.defineProperty(close, previousSymbol, { - value: fs$close - }); - return close; - }(fs4.close); - fs4.closeSync = function(fs$closeSync) { - function closeSync(fd) { - fs$closeSync.apply(fs4, arguments); - resetQueue(); - } - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }); - return closeSync; - }(fs4.closeSync); - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { - process.on("exit", function() { - debug2(fs4[gracefulQueue]); - (0, import_chunk_AH6QHEOA.__require)("assert").equal(fs4[gracefulQueue].length, 0); - }); - } - } - var queue; - if (!global[gracefulQueue]) { - publishQueue(global, fs4[gracefulQueue]); - } - module2.exports = patch(clone(fs4)); - if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) { - module2.exports = patch(fs4); - fs4.__patched = true; - } - function patch(fs5) { - polyfills(fs5); - fs5.gracefulify = patch; - fs5.createReadStream = createReadStream; - fs5.createWriteStream = createWriteStream; - var fs$readFile = fs5.readFile; - fs5.readFile = readFile; - function readFile(path6, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$readFile(path6, options, cb); - function go$readFile(path7, options2, cb2, startTime) { - return fs$readFile(path7, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$readFile, [path7, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$writeFile = fs5.writeFile; - fs5.writeFile = writeFile; - function writeFile(path6, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$writeFile(path6, data, options, cb); - function go$writeFile(path7, data2, options2, cb2, startTime) { - return fs$writeFile(path7, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$writeFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$appendFile = fs5.appendFile; - if (fs$appendFile) - fs5.appendFile = appendFile; - function appendFile(path6, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$appendFile(path6, data, options, cb); - function go$appendFile(path7, data2, options2, cb2, startTime) { - return fs$appendFile(path7, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$appendFile, [path7, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$copyFile = fs5.copyFile; - if (fs$copyFile) - fs5.copyFile = copyFile; - function copyFile(src, dest, flags, cb) { - if (typeof flags === "function") { - cb = flags; - flags = 0; - } - return go$copyFile(src, dest, flags, cb); - function go$copyFile(src2, dest2, flags2, cb2, startTime) { - return fs$copyFile(src2, dest2, flags2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$readdir = fs5.readdir; - fs5.readdir = readdir; - var noReaddirOptionVersions = /^v[0-5]\./; - function readdir(path6, options, cb) { - if (typeof options === "function") - cb = options, options = null; - var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path7, options2, cb2, startTime) { - return fs$readdir(path7, fs$readdirCallback( - path7, - options2, - cb2, - startTime - )); - } : function go$readdir2(path7, options2, cb2, startTime) { - return fs$readdir(path7, options2, fs$readdirCallback( - path7, - options2, - cb2, - startTime - )); - }; - return go$readdir(path6, options, cb); - function fs$readdirCallback(path7, options2, cb2, startTime) { - return function(err, files) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([ - go$readdir, - [path7, options2, cb2], - err, - startTime || Date.now(), - Date.now() - ]); - else { - if (files && files.sort) - files.sort(); - if (typeof cb2 === "function") - cb2.call(this, err, files); - } - }; - } - } - if (process.version.substr(0, 4) === "v0.8") { - var legStreams = legacy(fs5); - ReadStream = legStreams.ReadStream; - WriteStream = legStreams.WriteStream; - } - var fs$ReadStream = fs5.ReadStream; - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype); - ReadStream.prototype.open = ReadStream$open; - } - var fs$WriteStream = fs5.WriteStream; - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype); - WriteStream.prototype.open = WriteStream$open; - } - Object.defineProperty(fs5, "ReadStream", { - get: function() { - return ReadStream; - }, - set: function(val) { - ReadStream = val; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(fs5, "WriteStream", { - get: function() { - return WriteStream; - }, - set: function(val) { - WriteStream = val; - }, - enumerable: true, - configurable: true - }); - var FileReadStream = ReadStream; - Object.defineProperty(fs5, "FileReadStream", { - get: function() { - return FileReadStream; - }, - set: function(val) { - FileReadStream = val; - }, - enumerable: true, - configurable: true - }); - var FileWriteStream = WriteStream; - Object.defineProperty(fs5, "FileWriteStream", { - get: function() { - return FileWriteStream; - }, - set: function(val) { - FileWriteStream = val; - }, - enumerable: true, - configurable: true - }); - function ReadStream(path6, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this; - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments); - } - function ReadStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - if (that.autoClose) - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - that.read(); - } - }); - } - function WriteStream(path6, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this; - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments); - } - function WriteStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - } - }); - } - function createReadStream(path6, options) { - return new fs5.ReadStream(path6, options); - } - function createWriteStream(path6, options) { - return new fs5.WriteStream(path6, options); - } - var fs$open = fs5.open; - fs5.open = open; - function open(path6, flags, mode, cb) { - if (typeof mode === "function") - cb = mode, mode = null; - return go$open(path6, flags, mode, cb); - function go$open(path7, flags2, mode2, cb2, startTime) { - return fs$open(path7, flags2, mode2, function(err, fd) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$open, [path7, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - return fs5; - } - function enqueue(elem) { - debug2("ENQUEUE", elem[0].name, elem[1]); - fs4[gracefulQueue].push(elem); - retry(); - } - var retryTimer; - function resetQueue() { - var now = Date.now(); - for (var i = 0; i < fs4[gracefulQueue].length; ++i) { - if (fs4[gracefulQueue][i].length > 2) { - fs4[gracefulQueue][i][3] = now; - fs4[gracefulQueue][i][4] = now; - } - } - retry(); - } - function retry() { - clearTimeout(retryTimer); - retryTimer = void 0; - if (fs4[gracefulQueue].length === 0) - return; - var elem = fs4[gracefulQueue].shift(); - var fn = elem[0]; - var args = elem[1]; - var err = elem[2]; - var startTime = elem[3]; - var lastTime = elem[4]; - if (startTime === void 0) { - debug2("RETRY", fn.name, args); - fn.apply(null, args); - } else if (Date.now() - startTime >= 6e4) { - debug2("TIMEOUT", fn.name, args); - var cb = args.pop(); - if (typeof cb === "function") - cb.call(null, err); - } else { - var sinceAttempt = Date.now() - lastTime; - var sinceStart = Math.max(lastTime - startTime, 1); - var desiredDelay = Math.min(sinceStart * 1.2, 100); - if (sinceAttempt >= desiredDelay) { - debug2("RETRY", fn.name, args); - fn.apply(null, args.concat([startTime])); - } else { - fs4[gracefulQueue].push(elem); - } - } - if (retryTimer === void 0) { - retryTimer = setTimeout(retry, 0); - } - } - } -}); -var require_fs = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/fs/index.js"(exports) { - "use strict"; - var u = require_universalify().fromCallback; - var fs4 = require_graceful_fs(); - var api = [ - "access", - "appendFile", - "chmod", - "chown", - "close", - "copyFile", - "fchmod", - "fchown", - "fdatasync", - "fstat", - "fsync", - "ftruncate", - "futimes", - "lchmod", - "lchown", - "link", - "lstat", - "mkdir", - "mkdtemp", - "open", - "opendir", - "readdir", - "readFile", - "readlink", - "realpath", - "rename", - "rm", - "rmdir", - "stat", - "symlink", - "truncate", - "unlink", - "utimes", - "writeFile" - ].filter((key) => { - return typeof fs4[key] === "function"; - }); - Object.assign(exports, fs4); - api.forEach((method) => { - exports[method] = u(fs4[method]); - }); - exports.exists = function(filename, callback) { - if (typeof callback === "function") { - return fs4.exists(filename, callback); - } - return new Promise((resolve) => { - return fs4.exists(filename, resolve); - }); - }; - exports.read = function(fd, buffer, offset, length, position, callback) { - if (typeof callback === "function") { - return fs4.read(fd, buffer, offset, length, position, callback); - } - return new Promise((resolve, reject) => { - fs4.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => { - if (err) return reject(err); - resolve({ bytesRead, buffer: buffer2 }); - }); - }); - }; - exports.write = function(fd, buffer, ...args) { - if (typeof args[args.length - 1] === "function") { - return fs4.write(fd, buffer, ...args); - } - return new Promise((resolve, reject) => { - fs4.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => { - if (err) return reject(err); - resolve({ bytesWritten, buffer: buffer2 }); - }); - }); - }; - exports.readv = function(fd, buffers, ...args) { - if (typeof args[args.length - 1] === "function") { - return fs4.readv(fd, buffers, ...args); - } - return new Promise((resolve, reject) => { - fs4.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => { - if (err) return reject(err); - resolve({ bytesRead, buffers: buffers2 }); - }); - }); - }; - exports.writev = function(fd, buffers, ...args) { - if (typeof args[args.length - 1] === "function") { - return fs4.writev(fd, buffers, ...args); - } - return new Promise((resolve, reject) => { - fs4.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => { - if (err) return reject(err); - resolve({ bytesWritten, buffers: buffers2 }); - }); - }); - }; - if (typeof fs4.realpath.native === "function") { - exports.realpath.native = u(fs4.realpath.native); - } else { - process.emitWarning( - "fs.realpath.native is not a function. Is fs being monkey-patched?", - "Warning", - "fs-extra-WARN0003" - ); - } - } -}); -var require_utils = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) { - "use strict"; - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - module2.exports.checkPath = function checkPath(pth) { - if (process.platform === "win32") { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path6.parse(pth).root, "")); - if (pathHasInvalidWinCharacters) { - const error = new Error(`Path contains invalid characters: ${pth}`); - error.code = "EINVAL"; - throw error; - } - } - }; - } -}); -var require_make_dir = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module2) { - "use strict"; - var fs4 = require_fs(); - var { checkPath } = require_utils(); - var getMode = (options) => { - const defaults = { mode: 511 }; - if (typeof options === "number") return options; - return { ...defaults, ...options }.mode; - }; - module2.exports.makeDir = async (dir, options) => { - checkPath(dir); - return fs4.mkdir(dir, { - mode: getMode(options), - recursive: true - }); - }; - module2.exports.makeDirSync = (dir, options) => { - checkPath(dir); - return fs4.mkdirSync(dir, { - mode: getMode(options), - recursive: true - }); - }; - } -}); -var require_mkdirs = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromPromise; - var { makeDir: _makeDir, makeDirSync } = require_make_dir(); - var makeDir = u(_makeDir); - module2.exports = { - mkdirs: makeDir, - mkdirsSync: makeDirSync, - // alias - mkdirp: makeDir, - mkdirpSync: makeDirSync, - ensureDir: makeDir, - ensureDirSync: makeDirSync - }; - } -}); -var require_path_exists = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromPromise; - var fs4 = require_fs(); - function pathExists2(path6) { - return fs4.access(path6).then(() => true).catch(() => false); - } - module2.exports = { - pathExists: u(pathExists2), - pathExistsSync: fs4.existsSync - }; - } -}); -var require_utimes = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - function utimesMillis(path6, atime, mtime, callback) { - fs4.open(path6, "r+", (err, fd) => { - if (err) return callback(err); - fs4.futimes(fd, atime, mtime, (futimesErr) => { - fs4.close(fd, (closeErr) => { - if (callback) callback(futimesErr || closeErr); - }); - }); - }); - } - function utimesMillisSync(path6, atime, mtime) { - const fd = fs4.openSync(path6, "r+"); - fs4.futimesSync(fd, atime, mtime); - return fs4.closeSync(fd); - } - module2.exports = { - utimesMillis, - utimesMillisSync - }; - } -}); -var require_stat = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/util/stat.js"(exports, module2) { - "use strict"; - var fs4 = require_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - function getStats(src, dest, opts) { - const statFunc = opts.dereference ? (file) => fs4.stat(file, { bigint: true }) : (file) => fs4.lstat(file, { bigint: true }); - return Promise.all([ - statFunc(src), - statFunc(dest).catch((err) => { - if (err.code === "ENOENT") return null; - throw err; - }) - ]).then(([srcStat, destStat]) => ({ srcStat, destStat })); - } - function getStatsSync(src, dest, opts) { - let destStat; - const statFunc = opts.dereference ? (file) => fs4.statSync(file, { bigint: true }) : (file) => fs4.lstatSync(file, { bigint: true }); - const srcStat = statFunc(src); - try { - destStat = statFunc(dest); - } catch (err) { - if (err.code === "ENOENT") return { srcStat, destStat: null }; - throw err; - } - return { srcStat, destStat }; - } - function checkPaths(src, dest, funcName, opts, cb) { - util.callbackify(getStats)(src, dest, opts, (err, stats) => { - if (err) return cb(err); - const { srcStat, destStat } = stats; - if (destStat) { - if (areIdentical(srcStat, destStat)) { - const srcBaseName = path6.basename(src); - const destBaseName = path6.basename(dest); - if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { - return cb(null, { srcStat, destStat, isChangingCase: true }); - } - return cb(new Error("Source and destination must not be the same.")); - } - if (srcStat.isDirectory() && !destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)); - } - if (!srcStat.isDirectory() && destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`)); - } - } - if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { - return cb(new Error(errMsg(src, dest, funcName))); - } - return cb(null, { srcStat, destStat }); - }); - } - function checkPathsSync(src, dest, funcName, opts) { - const { srcStat, destStat } = getStatsSync(src, dest, opts); - if (destStat) { - if (areIdentical(srcStat, destStat)) { - const srcBaseName = path6.basename(src); - const destBaseName = path6.basename(dest); - if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) { - return { srcStat, destStat, isChangingCase: true }; - } - throw new Error("Source and destination must not be the same."); - } - if (srcStat.isDirectory() && !destStat.isDirectory()) { - throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`); - } - if (!srcStat.isDirectory() && destStat.isDirectory()) { - throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`); - } - } - if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { - throw new Error(errMsg(src, dest, funcName)); - } - return { srcStat, destStat }; - } - function checkParentPaths(src, srcStat, dest, funcName, cb) { - const srcParent = path6.resolve(path6.dirname(src)); - const destParent = path6.resolve(path6.dirname(dest)); - if (destParent === srcParent || destParent === path6.parse(destParent).root) return cb(); - fs4.stat(destParent, { bigint: true }, (err, destStat) => { - if (err) { - if (err.code === "ENOENT") return cb(); - return cb(err); - } - if (areIdentical(srcStat, destStat)) { - return cb(new Error(errMsg(src, dest, funcName))); - } - return checkParentPaths(src, srcStat, destParent, funcName, cb); - }); - } - function checkParentPathsSync(src, srcStat, dest, funcName) { - const srcParent = path6.resolve(path6.dirname(src)); - const destParent = path6.resolve(path6.dirname(dest)); - if (destParent === srcParent || destParent === path6.parse(destParent).root) return; - let destStat; - try { - destStat = fs4.statSync(destParent, { bigint: true }); - } catch (err) { - if (err.code === "ENOENT") return; - throw err; - } - if (areIdentical(srcStat, destStat)) { - throw new Error(errMsg(src, dest, funcName)); - } - return checkParentPathsSync(src, srcStat, destParent, funcName); - } - function areIdentical(srcStat, destStat) { - return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev; - } - function isSrcSubdir(src, dest) { - const srcArr = path6.resolve(src).split(path6.sep).filter((i) => i); - const destArr = path6.resolve(dest).split(path6.sep).filter((i) => i); - return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true); - } - function errMsg(src, dest, funcName) { - return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`; - } - module2.exports = { - checkPaths, - checkPathsSync, - checkParentPaths, - checkParentPathsSync, - isSrcSubdir, - areIdentical - }; - } -}); -var require_copy = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var mkdirs = require_mkdirs().mkdirs; - var pathExists2 = require_path_exists().pathExists; - var utimesMillis = require_utimes().utimesMillis; - var stat = require_stat(); - function copy(src, dest, opts, cb) { - if (typeof opts === "function" && !cb) { - cb = opts; - opts = {}; - } else if (typeof opts === "function") { - opts = { filter: opts }; - } - cb = cb || function() { - }; - opts = opts || {}; - opts.clobber = "clobber" in opts ? !!opts.clobber : true; - opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; - if (opts.preserveTimestamps && process.arch === "ia32") { - process.emitWarning( - "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", - "Warning", - "fs-extra-WARN0001" - ); - } - stat.checkPaths(src, dest, "copy", opts, (err, stats) => { - if (err) return cb(err); - const { srcStat, destStat } = stats; - stat.checkParentPaths(src, srcStat, dest, "copy", (err2) => { - if (err2) return cb(err2); - runFilter(src, dest, opts, (err3, include) => { - if (err3) return cb(err3); - if (!include) return cb(); - checkParentDir(destStat, src, dest, opts, cb); - }); - }); - }); - } - function checkParentDir(destStat, src, dest, opts, cb) { - const destParent = path6.dirname(dest); - pathExists2(destParent, (err, dirExists) => { - if (err) return cb(err); - if (dirExists) return getStats(destStat, src, dest, opts, cb); - mkdirs(destParent, (err2) => { - if (err2) return cb(err2); - return getStats(destStat, src, dest, opts, cb); - }); - }); - } - function runFilter(src, dest, opts, cb) { - if (!opts.filter) return cb(null, true); - Promise.resolve(opts.filter(src, dest)).then((include) => cb(null, include), (error) => cb(error)); - } - function getStats(destStat, src, dest, opts, cb) { - const stat2 = opts.dereference ? fs4.stat : fs4.lstat; - stat2(src, (err, srcStat) => { - if (err) return cb(err); - if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb); - else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb); - else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb); - else if (srcStat.isSocket()) return cb(new Error(`Cannot copy a socket file: ${src}`)); - else if (srcStat.isFIFO()) return cb(new Error(`Cannot copy a FIFO pipe: ${src}`)); - return cb(new Error(`Unknown file: ${src}`)); - }); - } - function onFile(srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return copyFile(srcStat, src, dest, opts, cb); - return mayCopyFile(srcStat, src, dest, opts, cb); - } - function mayCopyFile(srcStat, src, dest, opts, cb) { - if (opts.overwrite) { - fs4.unlink(dest, (err) => { - if (err) return cb(err); - return copyFile(srcStat, src, dest, opts, cb); - }); - } else if (opts.errorOnExist) { - return cb(new Error(`'${dest}' already exists`)); - } else return cb(); - } - function copyFile(srcStat, src, dest, opts, cb) { - fs4.copyFile(src, dest, (err) => { - if (err) return cb(err); - if (opts.preserveTimestamps) return handleTimestampsAndMode(srcStat.mode, src, dest, cb); - return setDestMode(dest, srcStat.mode, cb); - }); - } - function handleTimestampsAndMode(srcMode, src, dest, cb) { - if (fileIsNotWritable(srcMode)) { - return makeFileWritable(dest, srcMode, (err) => { - if (err) return cb(err); - return setDestTimestampsAndMode(srcMode, src, dest, cb); - }); - } - return setDestTimestampsAndMode(srcMode, src, dest, cb); - } - function fileIsNotWritable(srcMode) { - return (srcMode & 128) === 0; - } - function makeFileWritable(dest, srcMode, cb) { - return setDestMode(dest, srcMode | 128, cb); - } - function setDestTimestampsAndMode(srcMode, src, dest, cb) { - setDestTimestamps(src, dest, (err) => { - if (err) return cb(err); - return setDestMode(dest, srcMode, cb); - }); - } - function setDestMode(dest, srcMode, cb) { - return fs4.chmod(dest, srcMode, cb); - } - function setDestTimestamps(src, dest, cb) { - fs4.stat(src, (err, updatedSrcStat) => { - if (err) return cb(err); - return utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime, cb); - }); - } - function onDir(srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts, cb); - return copyDir(src, dest, opts, cb); - } - function mkDirAndCopy(srcMode, src, dest, opts, cb) { - fs4.mkdir(dest, (err) => { - if (err) return cb(err); - copyDir(src, dest, opts, (err2) => { - if (err2) return cb(err2); - return setDestMode(dest, srcMode, cb); - }); - }); - } - function copyDir(src, dest, opts, cb) { - fs4.readdir(src, (err, items) => { - if (err) return cb(err); - return copyDirItems(items, src, dest, opts, cb); - }); - } - function copyDirItems(items, src, dest, opts, cb) { - const item = items.pop(); - if (!item) return cb(); - return copyDirItem(items, item, src, dest, opts, cb); - } - function copyDirItem(items, item, src, dest, opts, cb) { - const srcItem = path6.join(src, item); - const destItem = path6.join(dest, item); - runFilter(srcItem, destItem, opts, (err, include) => { - if (err) return cb(err); - if (!include) return copyDirItems(items, src, dest, opts, cb); - stat.checkPaths(srcItem, destItem, "copy", opts, (err2, stats) => { - if (err2) return cb(err2); - const { destStat } = stats; - getStats(destStat, srcItem, destItem, opts, (err3) => { - if (err3) return cb(err3); - return copyDirItems(items, src, dest, opts, cb); - }); - }); - }); - } - function onLink(destStat, src, dest, opts, cb) { - fs4.readlink(src, (err, resolvedSrc) => { - if (err) return cb(err); - if (opts.dereference) { - resolvedSrc = path6.resolve(process.cwd(), resolvedSrc); - } - if (!destStat) { - return fs4.symlink(resolvedSrc, dest, cb); - } else { - fs4.readlink(dest, (err2, resolvedDest) => { - if (err2) { - if (err2.code === "EINVAL" || err2.code === "UNKNOWN") return fs4.symlink(resolvedSrc, dest, cb); - return cb(err2); - } - if (opts.dereference) { - resolvedDest = path6.resolve(process.cwd(), resolvedDest); - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)); - } - if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)); - } - return copyLink(resolvedSrc, dest, cb); - }); - } - }); - } - function copyLink(resolvedSrc, dest, cb) { - fs4.unlink(dest, (err) => { - if (err) return cb(err); - return fs4.symlink(resolvedSrc, dest, cb); - }); - } - module2.exports = copy; - } -}); -var require_copy_sync = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var mkdirsSync = require_mkdirs().mkdirsSync; - var utimesMillisSync = require_utimes().utimesMillisSync; - var stat = require_stat(); - function copySync(src, dest, opts) { - if (typeof opts === "function") { - opts = { filter: opts }; - } - opts = opts || {}; - opts.clobber = "clobber" in opts ? !!opts.clobber : true; - opts.overwrite = "overwrite" in opts ? !!opts.overwrite : opts.clobber; - if (opts.preserveTimestamps && process.arch === "ia32") { - process.emitWarning( - "Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269", - "Warning", - "fs-extra-WARN0002" - ); - } - const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts); - stat.checkParentPathsSync(src, srcStat, dest, "copy"); - if (opts.filter && !opts.filter(src, dest)) return; - const destParent = path6.dirname(dest); - if (!fs4.existsSync(destParent)) mkdirsSync(destParent); - return getStats(destStat, src, dest, opts); - } - function getStats(destStat, src, dest, opts) { - const statSync = opts.dereference ? fs4.statSync : fs4.lstatSync; - const srcStat = statSync(src); - if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts); - else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts); - else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts); - else if (srcStat.isSocket()) throw new Error(`Cannot copy a socket file: ${src}`); - else if (srcStat.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${src}`); - throw new Error(`Unknown file: ${src}`); - } - function onFile(srcStat, destStat, src, dest, opts) { - if (!destStat) return copyFile(srcStat, src, dest, opts); - return mayCopyFile(srcStat, src, dest, opts); - } - function mayCopyFile(srcStat, src, dest, opts) { - if (opts.overwrite) { - fs4.unlinkSync(dest); - return copyFile(srcStat, src, dest, opts); - } else if (opts.errorOnExist) { - throw new Error(`'${dest}' already exists`); - } - } - function copyFile(srcStat, src, dest, opts) { - fs4.copyFileSync(src, dest); - if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest); - return setDestMode(dest, srcStat.mode); - } - function handleTimestamps(srcMode, src, dest) { - if (fileIsNotWritable(srcMode)) makeFileWritable(dest, srcMode); - return setDestTimestamps(src, dest); - } - function fileIsNotWritable(srcMode) { - return (srcMode & 128) === 0; - } - function makeFileWritable(dest, srcMode) { - return setDestMode(dest, srcMode | 128); - } - function setDestMode(dest, srcMode) { - return fs4.chmodSync(dest, srcMode); - } - function setDestTimestamps(src, dest) { - const updatedSrcStat = fs4.statSync(src); - return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime); - } - function onDir(srcStat, destStat, src, dest, opts) { - if (!destStat) return mkDirAndCopy(srcStat.mode, src, dest, opts); - return copyDir(src, dest, opts); - } - function mkDirAndCopy(srcMode, src, dest, opts) { - fs4.mkdirSync(dest); - copyDir(src, dest, opts); - return setDestMode(dest, srcMode); - } - function copyDir(src, dest, opts) { - fs4.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts)); - } - function copyDirItem(item, src, dest, opts) { - const srcItem = path6.join(src, item); - const destItem = path6.join(dest, item); - if (opts.filter && !opts.filter(srcItem, destItem)) return; - const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts); - return getStats(destStat, srcItem, destItem, opts); - } - function onLink(destStat, src, dest, opts) { - let resolvedSrc = fs4.readlinkSync(src); - if (opts.dereference) { - resolvedSrc = path6.resolve(process.cwd(), resolvedSrc); - } - if (!destStat) { - return fs4.symlinkSync(resolvedSrc, dest); - } else { - let resolvedDest; - try { - resolvedDest = fs4.readlinkSync(dest); - } catch (err) { - if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs4.symlinkSync(resolvedSrc, dest); - throw err; - } - if (opts.dereference) { - resolvedDest = path6.resolve(process.cwd(), resolvedDest); - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`); - } - if (stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`); - } - return copyLink(resolvedSrc, dest); - } - } - function copyLink(resolvedSrc, dest) { - fs4.unlinkSync(dest); - return fs4.symlinkSync(resolvedSrc, dest); - } - module2.exports = copySync; - } -}); -var require_copy2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/copy/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - module2.exports = { - copy: u(require_copy()), - copySync: require_copy_sync() - }; - } -}); -var require_remove = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/remove/index.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var u = require_universalify().fromCallback; - function remove(path6, callback) { - fs4.rm(path6, { recursive: true, force: true }, callback); - } - function removeSync(path6) { - fs4.rmSync(path6, { recursive: true, force: true }); - } - module2.exports = { - remove: u(remove), - removeSync - }; - } -}); -var require_empty = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/empty/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromPromise; - var fs4 = require_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var mkdir = require_mkdirs(); - var remove = require_remove(); - var emptyDir = u(async function emptyDir2(dir) { - let items; - try { - items = await fs4.readdir(dir); - } catch { - return mkdir.mkdirs(dir); - } - return Promise.all(items.map((item) => remove.remove(path6.join(dir, item)))); - }); - function emptyDirSync(dir) { - let items; - try { - items = fs4.readdirSync(dir); - } catch { - return mkdir.mkdirsSync(dir); - } - items.forEach((item) => { - item = path6.join(dir, item); - remove.removeSync(item); - }); - } - module2.exports = { - emptyDirSync, - emptydirSync: emptyDirSync, - emptyDir, - emptydir: emptyDir - }; - } -}); -var require_file = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fs4 = require_graceful_fs(); - var mkdir = require_mkdirs(); - function createFile(file, callback) { - function makeFile() { - fs4.writeFile(file, "", (err) => { - if (err) return callback(err); - callback(); - }); - } - fs4.stat(file, (err, stats) => { - if (!err && stats.isFile()) return callback(); - const dir = path6.dirname(file); - fs4.stat(dir, (err2, stats2) => { - if (err2) { - if (err2.code === "ENOENT") { - return mkdir.mkdirs(dir, (err3) => { - if (err3) return callback(err3); - makeFile(); - }); - } - return callback(err2); - } - if (stats2.isDirectory()) makeFile(); - else { - fs4.readdir(dir, (err3) => { - if (err3) return callback(err3); - }); - } - }); - }); - } - function createFileSync(file) { - let stats; - try { - stats = fs4.statSync(file); - } catch { - } - if (stats && stats.isFile()) return; - const dir = path6.dirname(file); - try { - if (!fs4.statSync(dir).isDirectory()) { - fs4.readdirSync(dir); - } - } catch (err) { - if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir); - else throw err; - } - fs4.writeFileSync(file, ""); - } - module2.exports = { - createFile: u(createFile), - createFileSync - }; - } -}); -var require_link = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fs4 = require_graceful_fs(); - var mkdir = require_mkdirs(); - var pathExists2 = require_path_exists().pathExists; - var { areIdentical } = require_stat(); - function createLink(srcpath, dstpath, callback) { - function makeLink(srcpath2, dstpath2) { - fs4.link(srcpath2, dstpath2, (err) => { - if (err) return callback(err); - callback(null); - }); - } - fs4.lstat(dstpath, (_, dstStat) => { - fs4.lstat(srcpath, (err, srcStat) => { - if (err) { - err.message = err.message.replace("lstat", "ensureLink"); - return callback(err); - } - if (dstStat && areIdentical(srcStat, dstStat)) return callback(null); - const dir = path6.dirname(dstpath); - pathExists2(dir, (err2, dirExists) => { - if (err2) return callback(err2); - if (dirExists) return makeLink(srcpath, dstpath); - mkdir.mkdirs(dir, (err3) => { - if (err3) return callback(err3); - makeLink(srcpath, dstpath); - }); - }); - }); - }); - } - function createLinkSync(srcpath, dstpath) { - let dstStat; - try { - dstStat = fs4.lstatSync(dstpath); - } catch { - } - try { - const srcStat = fs4.lstatSync(srcpath); - if (dstStat && areIdentical(srcStat, dstStat)) return; - } catch (err) { - err.message = err.message.replace("lstat", "ensureLink"); - throw err; - } - const dir = path6.dirname(dstpath); - const dirExists = fs4.existsSync(dir); - if (dirExists) return fs4.linkSync(srcpath, dstpath); - mkdir.mkdirsSync(dir); - return fs4.linkSync(srcpath, dstpath); - } - module2.exports = { - createLink: u(createLink), - createLinkSync - }; - } -}); -var require_symlink_paths = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) { - "use strict"; - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fs4 = require_graceful_fs(); - var pathExists2 = require_path_exists().pathExists; - function symlinkPaths(srcpath, dstpath, callback) { - if (path6.isAbsolute(srcpath)) { - return fs4.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace("lstat", "ensureSymlink"); - return callback(err); - } - return callback(null, { - toCwd: srcpath, - toDst: srcpath - }); - }); - } else { - const dstdir = path6.dirname(dstpath); - const relativeToDst = path6.join(dstdir, srcpath); - return pathExists2(relativeToDst, (err, exists) => { - if (err) return callback(err); - if (exists) { - return callback(null, { - toCwd: relativeToDst, - toDst: srcpath - }); - } else { - return fs4.lstat(srcpath, (err2) => { - if (err2) { - err2.message = err2.message.replace("lstat", "ensureSymlink"); - return callback(err2); - } - return callback(null, { - toCwd: srcpath, - toDst: path6.relative(dstdir, srcpath) - }); - }); - } - }); - } - } - function symlinkPathsSync(srcpath, dstpath) { - let exists; - if (path6.isAbsolute(srcpath)) { - exists = fs4.existsSync(srcpath); - if (!exists) throw new Error("absolute srcpath does not exist"); - return { - toCwd: srcpath, - toDst: srcpath - }; - } else { - const dstdir = path6.dirname(dstpath); - const relativeToDst = path6.join(dstdir, srcpath); - exists = fs4.existsSync(relativeToDst); - if (exists) { - return { - toCwd: relativeToDst, - toDst: srcpath - }; - } else { - exists = fs4.existsSync(srcpath); - if (!exists) throw new Error("relative srcpath does not exist"); - return { - toCwd: srcpath, - toDst: path6.relative(dstdir, srcpath) - }; - } - } - } - module2.exports = { - symlinkPaths, - symlinkPathsSync - }; - } -}); -var require_symlink_type = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - function symlinkType(srcpath, type, callback) { - callback = typeof type === "function" ? type : callback; - type = typeof type === "function" ? false : type; - if (type) return callback(null, type); - fs4.lstat(srcpath, (err, stats) => { - if (err) return callback(null, "file"); - type = stats && stats.isDirectory() ? "dir" : "file"; - callback(null, type); - }); - } - function symlinkTypeSync(srcpath, type) { - let stats; - if (type) return type; - try { - stats = fs4.lstatSync(srcpath); - } catch { - return "file"; - } - return stats && stats.isDirectory() ? "dir" : "file"; - } - module2.exports = { - symlinkType, - symlinkTypeSync - }; - } -}); -var require_symlink = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fs4 = require_fs(); - var _mkdirs = require_mkdirs(); - var mkdirs = _mkdirs.mkdirs; - var mkdirsSync = _mkdirs.mkdirsSync; - var _symlinkPaths = require_symlink_paths(); - var symlinkPaths = _symlinkPaths.symlinkPaths; - var symlinkPathsSync = _symlinkPaths.symlinkPathsSync; - var _symlinkType = require_symlink_type(); - var symlinkType = _symlinkType.symlinkType; - var symlinkTypeSync = _symlinkType.symlinkTypeSync; - var pathExists2 = require_path_exists().pathExists; - var { areIdentical } = require_stat(); - function createSymlink(srcpath, dstpath, type, callback) { - callback = typeof type === "function" ? type : callback; - type = typeof type === "function" ? false : type; - fs4.lstat(dstpath, (err, stats) => { - if (!err && stats.isSymbolicLink()) { - Promise.all([ - fs4.stat(srcpath), - fs4.stat(dstpath) - ]).then(([srcStat, dstStat]) => { - if (areIdentical(srcStat, dstStat)) return callback(null); - _createSymlink(srcpath, dstpath, type, callback); - }); - } else _createSymlink(srcpath, dstpath, type, callback); - }); - } - function _createSymlink(srcpath, dstpath, type, callback) { - symlinkPaths(srcpath, dstpath, (err, relative) => { - if (err) return callback(err); - srcpath = relative.toDst; - symlinkType(relative.toCwd, type, (err2, type2) => { - if (err2) return callback(err2); - const dir = path6.dirname(dstpath); - pathExists2(dir, (err3, dirExists) => { - if (err3) return callback(err3); - if (dirExists) return fs4.symlink(srcpath, dstpath, type2, callback); - mkdirs(dir, (err4) => { - if (err4) return callback(err4); - fs4.symlink(srcpath, dstpath, type2, callback); - }); - }); - }); - }); - } - function createSymlinkSync(srcpath, dstpath, type) { - let stats; - try { - stats = fs4.lstatSync(dstpath); - } catch { - } - if (stats && stats.isSymbolicLink()) { - const srcStat = fs4.statSync(srcpath); - const dstStat = fs4.statSync(dstpath); - if (areIdentical(srcStat, dstStat)) return; - } - const relative = symlinkPathsSync(srcpath, dstpath); - srcpath = relative.toDst; - type = symlinkTypeSync(relative.toCwd, type); - const dir = path6.dirname(dstpath); - const exists = fs4.existsSync(dir); - if (exists) return fs4.symlinkSync(srcpath, dstpath, type); - mkdirsSync(dir); - return fs4.symlinkSync(srcpath, dstpath, type); - } - module2.exports = { - createSymlink: u(createSymlink), - createSymlinkSync - }; - } -}); -var require_ensure = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/ensure/index.js"(exports, module2) { - "use strict"; - var { createFile, createFileSync } = require_file(); - var { createLink, createLinkSync } = require_link(); - var { createSymlink, createSymlinkSync } = require_symlink(); - module2.exports = { - // file - createFile, - createFileSync, - ensureFile: createFile, - ensureFileSync: createFileSync, - // link - createLink, - createLinkSync, - ensureLink: createLink, - ensureLinkSync: createLinkSync, - // symlink - createSymlink, - createSymlinkSync, - ensureSymlink: createSymlink, - ensureSymlinkSync: createSymlinkSync - }; - } -}); -var require_utils2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) { - "use strict"; - function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) { - const EOF = finalEOL ? EOL : ""; - const str = JSON.stringify(obj, replacer, spaces); - return str.replace(/\n/g, EOL) + EOF; - } - function stripBom(content) { - if (Buffer.isBuffer(content)) content = content.toString("utf8"); - return content.replace(/^\uFEFF/, ""); - } - module2.exports = { stringify, stripBom }; - } -}); -var require_jsonfile = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports, module2) { - "use strict"; - var _fs; - try { - _fs = require_graceful_fs(); - } catch (_) { - _fs = (0, import_chunk_AH6QHEOA.__require)("fs"); - } - var universalify = require_universalify(); - var { stringify, stripBom } = require_utils2(); - async function _readFile(file, options = {}) { - if (typeof options === "string") { - options = { encoding: options }; - } - const fs4 = options.fs || _fs; - const shouldThrow = "throws" in options ? options.throws : true; - let data = await universalify.fromCallback(fs4.readFile)(file, options); - data = stripBom(data); - let obj; - try { - obj = JSON.parse(data, options ? options.reviver : null); - } catch (err) { - if (shouldThrow) { - err.message = `${file}: ${err.message}`; - throw err; - } else { - return null; - } - } - return obj; - } - var readFile = universalify.fromPromise(_readFile); - function readFileSync(file, options = {}) { - if (typeof options === "string") { - options = { encoding: options }; - } - const fs4 = options.fs || _fs; - const shouldThrow = "throws" in options ? options.throws : true; - try { - let content = fs4.readFileSync(file, options); - content = stripBom(content); - return JSON.parse(content, options.reviver); - } catch (err) { - if (shouldThrow) { - err.message = `${file}: ${err.message}`; - throw err; - } else { - return null; - } - } - } - async function _writeFile(file, obj, options = {}) { - const fs4 = options.fs || _fs; - const str = stringify(obj, options); - await universalify.fromCallback(fs4.writeFile)(file, str, options); - } - var writeFile = universalify.fromPromise(_writeFile); - function writeFileSync(file, obj, options = {}) { - const fs4 = options.fs || _fs; - const str = stringify(obj, options); - return fs4.writeFileSync(file, str, options); - } - var jsonfile = { - readFile, - readFileSync, - writeFile, - writeFileSync - }; - module2.exports = jsonfile; - } -}); -var require_jsonfile2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) { - "use strict"; - var jsonFile = require_jsonfile(); - module2.exports = { - // jsonfile exports - readJson: jsonFile.readFile, - readJsonSync: jsonFile.readFileSync, - writeJson: jsonFile.writeFile, - writeJsonSync: jsonFile.writeFileSync - }; - } -}); -var require_output_file = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/output-file/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - var fs4 = require_graceful_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var mkdir = require_mkdirs(); - var pathExists2 = require_path_exists().pathExists; - function outputFile(file, data, encoding, callback) { - if (typeof encoding === "function") { - callback = encoding; - encoding = "utf8"; - } - const dir = path6.dirname(file); - pathExists2(dir, (err, itDoes) => { - if (err) return callback(err); - if (itDoes) return fs4.writeFile(file, data, encoding, callback); - mkdir.mkdirs(dir, (err2) => { - if (err2) return callback(err2); - fs4.writeFile(file, data, encoding, callback); - }); - }); - } - function outputFileSync(file, ...args) { - const dir = path6.dirname(file); - if (fs4.existsSync(dir)) { - return fs4.writeFileSync(file, ...args); - } - mkdir.mkdirsSync(dir); - fs4.writeFileSync(file, ...args); - } - module2.exports = { - outputFile: u(outputFile), - outputFileSync - }; - } -}); -var require_output_json = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json.js"(exports, module2) { - "use strict"; - var { stringify } = require_utils2(); - var { outputFile } = require_output_file(); - async function outputJson(file, data, options = {}) { - const str = stringify(data, options); - await outputFile(file, str, options); - } - module2.exports = outputJson; - } -}); -var require_output_json_sync = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) { - "use strict"; - var { stringify } = require_utils2(); - var { outputFileSync } = require_output_file(); - function outputJsonSync(file, data, options) { - const str = stringify(data, options); - outputFileSync(file, str, options); - } - module2.exports = outputJsonSync; - } -}); -var require_json = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/json/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromPromise; - var jsonFile = require_jsonfile2(); - jsonFile.outputJson = u(require_output_json()); - jsonFile.outputJsonSync = require_output_json_sync(); - jsonFile.outputJSON = jsonFile.outputJson; - jsonFile.outputJSONSync = jsonFile.outputJsonSync; - jsonFile.writeJSON = jsonFile.writeJson; - jsonFile.writeJSONSync = jsonFile.writeJsonSync; - jsonFile.readJSON = jsonFile.readJson; - jsonFile.readJSONSync = jsonFile.readJsonSync; - module2.exports = jsonFile; - } -}); -var require_move = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var copy = require_copy2().copy; - var remove = require_remove().remove; - var mkdirp = require_mkdirs().mkdirp; - var pathExists2 = require_path_exists().pathExists; - var stat = require_stat(); - function move(src, dest, opts, cb) { - if (typeof opts === "function") { - cb = opts; - opts = {}; - } - opts = opts || {}; - const overwrite = opts.overwrite || opts.clobber || false; - stat.checkPaths(src, dest, "move", opts, (err, stats) => { - if (err) return cb(err); - const { srcStat, isChangingCase = false } = stats; - stat.checkParentPaths(src, srcStat, dest, "move", (err2) => { - if (err2) return cb(err2); - if (isParentRoot(dest)) return doRename(src, dest, overwrite, isChangingCase, cb); - mkdirp(path6.dirname(dest), (err3) => { - if (err3) return cb(err3); - return doRename(src, dest, overwrite, isChangingCase, cb); - }); - }); - }); - } - function isParentRoot(dest) { - const parent = path6.dirname(dest); - const parsedPath = path6.parse(parent); - return parsedPath.root === parent; - } - function doRename(src, dest, overwrite, isChangingCase, cb) { - if (isChangingCase) return rename(src, dest, overwrite, cb); - if (overwrite) { - return remove(dest, (err) => { - if (err) return cb(err); - return rename(src, dest, overwrite, cb); - }); - } - pathExists2(dest, (err, destExists) => { - if (err) return cb(err); - if (destExists) return cb(new Error("dest already exists.")); - return rename(src, dest, overwrite, cb); - }); - } - function rename(src, dest, overwrite, cb) { - fs4.rename(src, dest, (err) => { - if (!err) return cb(); - if (err.code !== "EXDEV") return cb(err); - return moveAcrossDevice(src, dest, overwrite, cb); - }); - } - function moveAcrossDevice(src, dest, overwrite, cb) { - const opts = { - overwrite, - errorOnExist: true, - preserveTimestamps: true - }; - copy(src, dest, opts, (err) => { - if (err) return cb(err); - return remove(src, cb); - }); - } - module2.exports = move; - } -}); -var require_move_sync = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) { - "use strict"; - var fs4 = require_graceful_fs(); - var path6 = (0, import_chunk_AH6QHEOA.__require)("path"); - var copySync = require_copy2().copySync; - var removeSync = require_remove().removeSync; - var mkdirpSync = require_mkdirs().mkdirpSync; - var stat = require_stat(); - function moveSync(src, dest, opts) { - opts = opts || {}; - const overwrite = opts.overwrite || opts.clobber || false; - const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts); - stat.checkParentPathsSync(src, srcStat, dest, "move"); - if (!isParentRoot(dest)) mkdirpSync(path6.dirname(dest)); - return doRename(src, dest, overwrite, isChangingCase); - } - function isParentRoot(dest) { - const parent = path6.dirname(dest); - const parsedPath = path6.parse(parent); - return parsedPath.root === parent; - } - function doRename(src, dest, overwrite, isChangingCase) { - if (isChangingCase) return rename(src, dest, overwrite); - if (overwrite) { - removeSync(dest); - return rename(src, dest, overwrite); - } - if (fs4.existsSync(dest)) throw new Error("dest already exists."); - return rename(src, dest, overwrite); - } - function rename(src, dest, overwrite) { - try { - fs4.renameSync(src, dest); - } catch (err) { - if (err.code !== "EXDEV") throw err; - return moveAcrossDevice(src, dest, overwrite); - } - } - function moveAcrossDevice(src, dest, overwrite) { - const opts = { - overwrite, - errorOnExist: true, - preserveTimestamps: true - }; - copySync(src, dest, opts); - return removeSync(src); - } - module2.exports = moveSync; - } -}); -var require_move2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/move/index.js"(exports, module2) { - "use strict"; - var u = require_universalify().fromCallback; - module2.exports = { - move: u(require_move()), - moveSync: require_move_sync() - }; - } -}); -var require_lib = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs-extra@11.1.1/node_modules/fs-extra/lib/index.js"(exports, module2) { - "use strict"; - module2.exports = { - // Export promiseified graceful-fs: - ...require_fs(), - // Export extra methods: - ...require_copy2(), - ...require_empty(), - ...require_ensure(), - ...require_json(), - ...require_mkdirs(), - ...require_move2(), - ...require_output_file(), - ...require_path_exists(), - ...require_remove() - }; - } -}); -var import_common_path_prefix = (0, import_chunk_AH6QHEOA.__toESM)(require_common_path_prefix(), 1); -var typeMappings = { - directory: "isDirectory", - file: "isFile" -}; -function checkType(type) { - if (Object.hasOwnProperty.call(typeMappings, type)) { - return; - } - throw new Error(`Invalid type specified: ${type}`); -} -var matchType = (type, stat) => stat[typeMappings[type]](); -var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_url2.fileURLToPath)(urlOrPath) : urlOrPath; -function locatePathSync(paths, { - cwd: cwd2 = import_process2.default.cwd(), - type = "file", - allowSymlinks = true -} = {}) { - checkType(type); - cwd2 = toPath(cwd2); - const statFunction = allowSymlinks ? import_fs2.default.statSync : import_fs2.default.lstatSync; - for (const path_ of paths) { - try { - const stat = statFunction(import_path4.default.resolve(cwd2, path_), { - throwIfNoEntry: false - }); - if (!stat) { - continue; - } - if (matchType(type, stat)) { - return path_; - } - } catch { - } - } -} -var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath; -var findUpStop = Symbol("findUpStop"); -function findUpMultipleSync(name, options = {}) { - let directory = import_path3.default.resolve(toPath2(options.cwd) || ""); - const { root } = import_path3.default.parse(directory); - const stopAt = options.stopAt || root; - const limit = options.limit || Number.POSITIVE_INFINITY; - const paths = [name].flat(); - const runMatcher = (locateOptions) => { - if (typeof name !== "function") { - return locatePathSync(paths, locateOptions); - } - const foundPath = name(locateOptions.cwd); - if (typeof foundPath === "string") { - return locatePathSync([foundPath], locateOptions); - } - return foundPath; - }; - const matches = []; - while (true) { - const foundPath = runMatcher({ ...options, cwd: directory }); - if (foundPath === findUpStop) { - break; - } - if (foundPath) { - matches.push(import_path3.default.resolve(directory, foundPath)); - } - if (directory === stopAt || matches.length >= limit) { - break; - } - directory = import_path3.default.dirname(directory); - } - return matches; -} -function findUpSync(name, options = {}) { - const matches = findUpMultipleSync(name, { ...options, limit: 1 }); - return matches[0]; -} -function packageDirectorySync({ cwd: cwd2 } = {}) { - const filePath = findUpSync("package.json", { cwd: cwd2 }); - return filePath && import_path2.default.dirname(filePath); -} -var { env, cwd } = import_process.default; -var isWritable = (path6) => { - try { - import_fs.default.accessSync(path6, import_fs.default.constants.W_OK); - return true; - } catch { - return false; - } -}; -function useDirectory(directory, options) { - if (options.create) { - import_fs.default.mkdirSync(directory, { recursive: true }); - } - return directory; -} -function getNodeModuleDirectory(directory) { - const nodeModules = import_path.default.join(directory, "node_modules"); - if (!isWritable(nodeModules) && (import_fs.default.existsSync(nodeModules) || !isWritable(import_path.default.join(directory)))) { - return; - } - return nodeModules; -} -function findCacheDirectory(options = {}) { - if (env.CACHE_DIR && !["true", "false", "1", "0"].includes(env.CACHE_DIR)) { - return useDirectory(import_path.default.join(env.CACHE_DIR, options.name), options); - } - let { cwd: directory = cwd(), files } = options; - if (files) { - if (!Array.isArray(files)) { - throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof files}\`.`); - } - directory = (0, import_common_path_prefix.default)(files.map((file) => import_path.default.resolve(directory, file))); - } - directory = packageDirectorySync({ cwd: directory }); - if (!directory) { - return; - } - const nodeModules = getNodeModuleDirectory(directory); - if (!nodeModules) { - return; - } - return useDirectory(import_path.default.join(directory, "node_modules", ".cache", options.name), options); -} -var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)(require_lib()); -var debug = (0, import_debug.default)("prisma:fetch-engine:cache-dir"); -async function getRootCacheDir() { - if (import_os.default.platform() === "win32") { - const cacheDir = findCacheDirectory({ name: "prisma", create: true }); - if (cacheDir) { - return cacheDir; - } - if (process.env.APPDATA) { - return import_path5.default.join(process.env.APPDATA, "Prisma"); - } - } - if (process.env.AWS_LAMBDA_FUNCTION_VERSION) { - try { - await (0, import_fs_extra.ensureDir)(`/tmp/prisma-download`); - return `/tmp/prisma-download`; - } catch (e) { - return null; - } - } - return import_path5.default.join(import_os.default.homedir(), ".cache/prisma"); -} -async function getCacheDir(channel, version, binaryTarget) { - const rootCacheDir = await getRootCacheDir(); - if (!rootCacheDir) { - return null; - } - const cacheDir = import_path5.default.join(rootCacheDir, channel, version, binaryTarget); - try { - if (!import_fs3.default.existsSync(cacheDir)) { - await (0, import_fs_extra.ensureDir)(cacheDir); - } - } catch (e) { - debug("The following error is being caught and just there for debugging:"); - debug(e); - return null; - } - return cacheDir; -} -function getDownloadUrl({ - channel, - version, - binaryTarget, - binaryName, - extension = ".gz" -}) { - const baseUrl = process.env.PRISMA_BINARIES_MIRROR || // TODO: remove this - process.env.PRISMA_ENGINES_MIRROR || "https://binaries.prisma.sh"; - const finalExtension = ( - // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison - binaryTarget === "windows" && "libquery-engine" !== binaryName ? `.exe${extension}` : extension - ); - if (binaryName === "libquery-engine") { - binaryName = (0, import_get_platform.getNodeAPIName)(binaryTarget, "url"); - } - return `${baseUrl}/${channel}/${version}/${binaryTarget}/${binaryName}${finalExtension}`; -} -async function overwriteFile(sourcePath, targetPath) { - if (import_os.default.platform() === "darwin") { - await removeFileIfExists(targetPath); - await import_fs3.default.promises.copyFile(sourcePath, targetPath); - } else { - let tempPath = `${targetPath}.tmp${process.pid}`; - await import_fs3.default.promises.copyFile(sourcePath, tempPath); - await import_fs3.default.promises.rename(tempPath, targetPath); - } -} -async function removeFileIfExists(filePath) { - try { - await import_fs3.default.promises.unlink(filePath); - } catch (e) { - if (e.code !== "ENOENT") { - throw e; - } - } -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js deleted file mode 100644 index b6e1712..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +++ /dev/null @@ -1,1404 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_KDPLGCY6_exports = {}; -__export(chunk_KDPLGCY6_exports, { - getProxyAgent: () => getProxyAgent -}); -module.exports = __toCommonJS(chunk_KDPLGCY6_exports); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM(require("@prisma/debug")); -var import_url = __toESM(require("url")); -var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) { - "use strict"; - var s = 1e3; - var m = s * 60; - var h = m * 60; - var d = h * 24; - var w = d * 7; - var y = d * 365.25; - module2.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === "string" && val.length > 0) { - return parse(val); - } else if (type === "number" && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - "val is not a non-empty string or a valid number. val=" + JSON.stringify(val) - ); - }; - function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || "ms").toLowerCase(); - switch (type) { - case "years": - case "year": - case "yrs": - case "yr": - case "y": - return n * y; - case "weeks": - case "week": - case "w": - return n * w; - case "days": - case "day": - case "d": - return n * d; - case "hours": - case "hour": - case "hrs": - case "hr": - case "h": - return n * h; - case "minutes": - case "minute": - case "mins": - case "min": - case "m": - return n * m; - case "seconds": - case "second": - case "secs": - case "sec": - case "s": - return n * s; - case "milliseconds": - case "millisecond": - case "msecs": - case "msec": - case "ms": - return n; - default: - return void 0; - } - } - function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + "d"; - } - if (msAbs >= h) { - return Math.round(ms / h) + "h"; - } - if (msAbs >= m) { - return Math.round(ms / m) + "m"; - } - if (msAbs >= s) { - return Math.round(ms / s) + "s"; - } - return ms + "ms"; - } - function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, "day"); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, "hour"); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, "minute"); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, "second"); - } - return ms + " ms"; - } - function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + " " + name + (isPlural ? "s" : ""); - } - } -}); -var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js"(exports, module2) { - "use strict"; - function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = require_ms(); - createDebug.destroy = destroy; - Object.keys(env).forEach((key) => { - createDebug[key] = env[key]; - }); - createDebug.names = []; - createDebug.skips = []; - createDebug.formatters = {}; - function selectColor(namespace) { - let hash = 0; - for (let i = 0; i < namespace.length; i++) { - hash = (hash << 5) - hash + namespace.charCodeAt(i); - hash |= 0; - } - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - function debug2(...args) { - if (!debug2.enabled) { - return; - } - const self = debug2; - const curr = Number(/* @__PURE__ */ new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - args[0] = createDebug.coerce(args[0]); - if (typeof args[0] !== "string") { - args.unshift("%O"); - } - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - if (match === "%%") { - return "%"; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === "function") { - const val = args[index]; - match = formatter.call(self, val); - args.splice(index, 1); - index--; - } - return match; - }); - createDebug.formatArgs.call(self, args); - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - debug2.namespace = namespace; - debug2.useColors = createDebug.useColors(); - debug2.color = createDebug.selectColor(namespace); - debug2.extend = extend; - debug2.destroy = createDebug.destroy; - Object.defineProperty(debug2, "enabled", { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - return enabledCache; - }, - set: (v) => { - enableOverride = v; - } - }); - if (typeof createDebug.init === "function") { - createDebug.init(debug2); - } - return debug2; - } - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - createDebug.names = []; - createDebug.skips = []; - let i; - const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/); - const len = split.length; - for (i = 0; i < len; i++) { - if (!split[i]) { - continue; - } - namespaces = split[i].replace(/\*/g, ".*?"); - if (namespaces[0] === "-") { - createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$")); - } else { - createDebug.names.push(new RegExp("^" + namespaces + "$")); - } - } - } - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace) - ].join(","); - createDebug.enable(""); - return namespaces; - } - function enabled(name) { - if (name[name.length - 1] === "*") { - return true; - } - let i; - let len; - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - return false; - } - function toNamespace(regexp) { - return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*"); - } - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - function destroy() { - console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - } - createDebug.enable(createDebug.load()); - return createDebug; - } - module2.exports = setup; - } -}); -var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js"(exports, module2) { - "use strict"; - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.storage = localstorage(); - exports.destroy = /* @__PURE__ */ (() => { - let warned = false; - return () => { - if (!warned) { - warned = true; - console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."); - } - }; - })(); - exports.colors = [ - "#0000CC", - "#0000FF", - "#0033CC", - "#0033FF", - "#0066CC", - "#0066FF", - "#0099CC", - "#0099FF", - "#00CC00", - "#00CC33", - "#00CC66", - "#00CC99", - "#00CCCC", - "#00CCFF", - "#3300CC", - "#3300FF", - "#3333CC", - "#3333FF", - "#3366CC", - "#3366FF", - "#3399CC", - "#3399FF", - "#33CC00", - "#33CC33", - "#33CC66", - "#33CC99", - "#33CCCC", - "#33CCFF", - "#6600CC", - "#6600FF", - "#6633CC", - "#6633FF", - "#66CC00", - "#66CC33", - "#9900CC", - "#9900FF", - "#9933CC", - "#9933FF", - "#99CC00", - "#99CC33", - "#CC0000", - "#CC0033", - "#CC0066", - "#CC0099", - "#CC00CC", - "#CC00FF", - "#CC3300", - "#CC3333", - "#CC3366", - "#CC3399", - "#CC33CC", - "#CC33FF", - "#CC6600", - "#CC6633", - "#CC9900", - "#CC9933", - "#CCCC00", - "#CCCC33", - "#FF0000", - "#FF0033", - "#FF0066", - "#FF0099", - "#FF00CC", - "#FF00FF", - "#FF3300", - "#FF3333", - "#FF3366", - "#FF3399", - "#FF33CC", - "#FF33FF", - "#FF6600", - "#FF6633", - "#FF9900", - "#FF9933", - "#FFCC00", - "#FFCC33" - ]; - function useColors() { - if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) { - return true; - } - if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - let m; - return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 - typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker - typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); - } - function formatArgs(args) { - args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff); - if (!this.useColors) { - return; - } - const c = "color: " + this.color; - args.splice(1, 0, c, "color: inherit"); - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, (match) => { - if (match === "%%") { - return; - } - index++; - if (match === "%c") { - lastC = index; - } - }); - args.splice(lastC, 0, c); - } - exports.log = console.debug || console.log || (() => { - }); - function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem("debug", namespaces); - } else { - exports.storage.removeItem("debug"); - } - } catch (error) { - } - } - function load() { - let r; - try { - r = exports.storage.getItem("debug"); - } catch (error) { - } - if (!r && typeof process !== "undefined" && "env" in process) { - r = process.env.DEBUG; - } - return r; - } - function localstorage() { - try { - return localStorage; - } catch (error) { - } - } - module2.exports = require_common()(exports); - var { formatters } = module2.exports; - formatters.j = function(v) { - try { - return JSON.stringify(v); - } catch (error) { - return "[UnexpectedJSONParseError]: " + error.message; - } - }; - } -}); -var require_has_flag = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) { - "use strict"; - module2.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf("--"); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); - }; - } -}); -var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) { - "use strict"; - var os = (0, import_chunk_AH6QHEOA.__require)("os"); - var tty = (0, import_chunk_AH6QHEOA.__require)("tty"); - var hasFlag = require_has_flag(); - var { env } = process; - var flagForceColor; - if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) { - flagForceColor = 0; - } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { - flagForceColor = 1; - } - function envForceColor() { - if ("FORCE_COLOR" in env) { - if (env.FORCE_COLOR === "true") { - return 1; - } - if (env.FORCE_COLOR === "false") { - return 0; - } - return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); - } - } - function translateLevel(level) { - if (level === 0) { - return false; - } - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; - } - function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) { - const noFlagForceColor = envForceColor(); - if (noFlagForceColor !== void 0) { - flagForceColor = noFlagForceColor; - } - const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; - if (forceColor === 0) { - return 0; - } - if (sniffFlags) { - if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { - return 3; - } - if (hasFlag("color=256")) { - return 2; - } - } - if (haveStream && !streamIsTTY && forceColor === void 0) { - return 0; - } - const min = forceColor || 0; - if (env.TERM === "dumb") { - return min; - } - if (process.platform === "win32") { - const osRelease = os.release().split("."); - if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - return 1; - } - if ("CI" in env) { - if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") { - return 1; - } - return min; - } - if ("TEAMCITY_VERSION" in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - if (env.COLORTERM === "truecolor") { - return 3; - } - if ("TERM_PROGRAM" in env) { - const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); - switch (env.TERM_PROGRAM) { - case "iTerm.app": - return version >= 3 ? 3 : 2; - case "Apple_Terminal": - return 2; - } - } - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - if ("COLORTERM" in env) { - return 1; - } - return min; - } - function getSupportLevel(stream, options = {}) { - const level = supportsColor(stream, { - streamIsTTY: stream && stream.isTTY, - ...options - }); - return translateLevel(level); - } - module2.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel({ isTTY: tty.isatty(1) }), - stderr: getSupportLevel({ isTTY: tty.isatty(2) }) - }; - } -}); -var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) { - "use strict"; - var tty = (0, import_chunk_AH6QHEOA.__require)("tty"); - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - exports.init = init; - exports.log = log; - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.destroy = util.deprecate( - () => { - }, - "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." - ); - exports.colors = [6, 2, 3, 4, 5, 1]; - try { - const supportsColor = require_supports_color(); - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } - } catch (error) { - } - exports.inspectOpts = Object.keys(process.env).filter((key) => { - return /^debug_/i.test(key); - }).reduce((obj, key) => { - const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === "null") { - val = null; - } else { - val = Number(val); - } - obj[prop] = val; - return obj; - }, {}); - function useColors() { - return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd); - } - function formatArgs(args) { - const { namespace: name, useColors: useColors2 } = this; - if (useColors2) { - const c = this.color; - const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c); - const prefix = ` ${colorCode};1m${name} \x1B[0m`; - args[0] = prefix + args[0].split("\n").join("\n" + prefix); - args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m"); - } else { - args[0] = getDate() + name + " " + args[0]; - } - } - function getDate() { - if (exports.inspectOpts.hideDate) { - return ""; - } - return (/* @__PURE__ */ new Date()).toISOString() + " "; - } - function log(...args) { - return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n"); - } - function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - delete process.env.DEBUG; - } - } - function load() { - return process.env.DEBUG; - } - function init(debug2) { - debug2.inspectOpts = {}; - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug2.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } - } - module2.exports = require_common()(exports); - var { formatters } = module2.exports; - formatters.o = function(v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" "); - }; - formatters.O = function(v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); - }; - } -}); -var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) { - "use strict"; - if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) { - module2.exports = require_browser(); - } else { - module2.exports = require_node(); - } - } -}); -var require_helpers = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/helpers.js"(exports) { - "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; - } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar = exports && exports.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.req = exports.json = exports.toBuffer = void 0; - var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http")); - var https = __importStar((0, import_chunk_AH6QHEOA.__require)("https")); - async function toBuffer(stream) { - let length = 0; - const chunks = []; - for await (const chunk of stream) { - length += chunk.length; - chunks.push(chunk); - } - return Buffer.concat(chunks, length); - } - exports.toBuffer = toBuffer; - async function json(stream) { - const buf = await toBuffer(stream); - const str = buf.toString("utf8"); - try { - return JSON.parse(str); - } catch (_err) { - const err = _err; - err.message += ` (input: ${str})`; - throw err; - } - } - exports.json = json; - function req(url, opts = {}) { - const href = typeof url === "string" ? url : url.href; - const req2 = (href.startsWith("https:") ? https : http).request(url, opts); - const promise = new Promise((resolve, reject) => { - req2.once("response", resolve).once("error", reject).end(); - }); - req2.then = promise.then.bind(promise); - return req2; - } - exports.req = req; - } -}); -var require_dist = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/index.js"(exports) { - "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; - } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar = exports && exports.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; - var __exportStar = exports && exports.__exportStar || function(m, exports2) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p); - }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Agent = void 0; - var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http")); - __exportStar(require_helpers(), exports); - var INTERNAL = Symbol("AgentBaseInternalState"); - var Agent = class extends http.Agent { - constructor(opts) { - super(opts); - this[INTERNAL] = {}; - } - /** - * Determine whether this is an `http` or `https` request. - */ - isSecureEndpoint(options) { - if (options) { - if (typeof options.secureEndpoint === "boolean") { - return options.secureEndpoint; - } - if (typeof options.protocol === "string") { - return options.protocol === "https:"; - } - } - const { stack } = new Error(); - if (typeof stack !== "string") - return false; - return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1); - } - createSocket(req, options, cb) { - const connectOpts = { - ...options, - secureEndpoint: this.isSecureEndpoint(options) - }; - Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => { - if (socket instanceof http.Agent) { - return socket.addRequest(req, connectOpts); - } - this[INTERNAL].currentSocket = socket; - super.createSocket(req, options, cb); - }, cb); - } - createConnection() { - const socket = this[INTERNAL].currentSocket; - this[INTERNAL].currentSocket = void 0; - if (!socket) { - throw new Error("No socket was returned in the `connect()` function"); - } - return socket; - } - get defaultPort() { - return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80); - } - set defaultPort(v) { - if (this[INTERNAL]) { - this[INTERNAL].defaultPort = v; - } - } - get protocol() { - return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:"); - } - set protocol(v) { - if (this[INTERNAL]) { - this[INTERNAL].protocol = v; - } - } - }; - exports.Agent = Agent; - } -}); -var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js"(exports) { - "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; - } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar = exports && exports.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; - var __importDefault = exports && exports.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpProxyAgent = void 0; - var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net")); - var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls")); - var debug_1 = __importDefault(require_src()); - var events_1 = (0, import_chunk_AH6QHEOA.__require)("events"); - var agent_base_1 = require_dist(); - var url_1 = (0, import_chunk_AH6QHEOA.__require)("url"); - var debug2 = (0, debug_1.default)("http-proxy-agent"); - var HttpProxyAgent2 = class extends agent_base_1.Agent { - constructor(proxy, opts) { - super(opts); - this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy; - this.proxyHeaders = opts?.headers ?? {}; - debug2("Creating new HttpProxyAgent instance: %o", this.proxy.href); - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ""); - const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80; - this.connectOpts = { - ...opts ? omit(opts, "headers") : null, - host, - port - }; - } - addRequest(req, opts) { - req._header = null; - this.setRequestProps(req, opts); - super.addRequest(req, opts); - } - setRequestProps(req, opts) { - const { proxy } = this; - const protocol = opts.secureEndpoint ? "https:" : "http:"; - const hostname = req.getHeader("host") || "localhost"; - const base = `${protocol}//${hostname}`; - const url = new url_1.URL(req.path, base); - if (opts.port !== 80) { - url.port = String(opts.port); - } - req.path = String(url); - const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders }; - if (proxy.username || proxy.password) { - const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; - headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`; - } - if (!headers["Proxy-Connection"]) { - headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close"; - } - for (const name of Object.keys(headers)) { - const value = headers[name]; - if (value) { - req.setHeader(name, value); - } - } - } - async connect(req, opts) { - req._header = null; - if (!req.path.includes("://")) { - this.setRequestProps(req, opts); - } - let first; - let endOfHeaders; - debug2("Regenerating stored HTTP header string for request"); - req._implicitHeader(); - if (req.outputData && req.outputData.length > 0) { - debug2("Patching connection write() output buffer with updated header"); - first = req.outputData[0].data; - endOfHeaders = first.indexOf("\r\n\r\n") + 4; - req.outputData[0].data = req._header + first.substring(endOfHeaders); - debug2("Output buffer: %o", req.outputData[0].data); - } - let socket; - if (this.proxy.protocol === "https:") { - debug2("Creating `tls.Socket`: %o", this.connectOpts); - socket = tls.connect(this.connectOpts); - } else { - debug2("Creating `net.Socket`: %o", this.connectOpts); - socket = net.connect(this.connectOpts); - } - await (0, events_1.once)(socket, "connect"); - return socket; - } - }; - HttpProxyAgent2.protocols = ["http", "https"]; - exports.HttpProxyAgent = HttpProxyAgent2; - function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; - } - } -}); -var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) { - "use strict"; - var __importDefault = exports && exports.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseProxyResponse = void 0; - var debug_1 = __importDefault(require_src()); - var debug2 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response"); - function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once("readable", read); - } - function cleanup() { - socket.removeListener("end", onend); - socket.removeListener("error", onerror); - socket.removeListener("readable", read); - } - function onend() { - cleanup(); - debug2("onend"); - reject(new Error("Proxy connection ended before receiving CONNECT response")); - } - function onerror(err) { - cleanup(); - debug2("onerror %o", err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf("\r\n\r\n"); - if (endOfHeaders === -1) { - debug2("have not received end of HTTP headers yet..."); - read(); - return; - } - const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n"); - const firstLine = headerParts.shift(); - if (!firstLine) { - socket.destroy(); - return reject(new Error("No header received from proxy CONNECT response")); - } - const firstLineParts = firstLine.split(" "); - const statusCode = +firstLineParts[1]; - const statusText = firstLineParts.slice(2).join(" "); - const headers = {}; - for (const header of headerParts) { - if (!header) - continue; - const firstColon = header.indexOf(":"); - if (firstColon === -1) { - socket.destroy(); - return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`)); - } - const key = header.slice(0, firstColon).toLowerCase(); - const value = header.slice(firstColon + 1).trimStart(); - const current = headers[key]; - if (typeof current === "string") { - headers[key] = [current, value]; - } else if (Array.isArray(current)) { - current.push(value); - } else { - headers[key] = value; - } - } - debug2("got proxy server response: %o %o", firstLine, headers); - cleanup(); - resolve({ - connect: { - statusCode, - statusText, - headers - }, - buffered - }); - } - socket.on("error", onerror); - socket.on("end", onend); - read(); - }); - } - exports.parseProxyResponse = parseProxyResponse; - } -}); -var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/index.js"(exports) { - "use strict"; - var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; - } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) k2 = k; - o[k2] = m[k]; - }); - var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - } : function(o, v) { - o["default"] = v; - }); - var __importStar = exports && exports.__importStar || function(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; - var __importDefault = exports && exports.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { "default": mod }; - }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpsProxyAgent = void 0; - var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net")); - var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls")); - var assert_1 = __importDefault((0, import_chunk_AH6QHEOA.__require)("assert")); - var debug_1 = __importDefault(require_src()); - var agent_base_1 = require_dist(); - var url_1 = (0, import_chunk_AH6QHEOA.__require)("url"); - var parse_proxy_response_1 = require_parse_proxy_response(); - var debug2 = (0, debug_1.default)("https-proxy-agent"); - var HttpsProxyAgent2 = class extends agent_base_1.Agent { - constructor(proxy, opts) { - super(opts); - this.options = { path: void 0 }; - this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy; - this.proxyHeaders = opts?.headers ?? {}; - debug2("Creating new HttpsProxyAgent instance: %o", this.proxy.href); - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ""); - const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80; - this.connectOpts = { - // Attempt to negotiate http/1.1 for proxy servers that support http/2 - ALPNProtocols: ["http/1.1"], - ...opts ? omit(opts, "headers") : null, - host, - port - }; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - */ - async connect(req, opts) { - const { proxy } = this; - if (!opts.host) { - throw new TypeError('No "host" provided'); - } - let socket; - if (proxy.protocol === "https:") { - debug2("Creating `tls.Socket`: %o", this.connectOpts); - const servername = this.connectOpts.servername || this.connectOpts.host; - socket = tls.connect({ - ...this.connectOpts, - servername - }); - } else { - debug2("Creating `net.Socket`: %o", this.connectOpts); - socket = net.connect(this.connectOpts); - } - const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders }; - const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host; - let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r -`; - if (proxy.username || proxy.password) { - const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; - headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`; - } - headers.Host = `${host}:${opts.port}`; - if (!headers["Proxy-Connection"]) { - headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close"; - } - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r -`; - } - const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket); - socket.write(`${payload}\r -`); - const { connect, buffered } = await proxyResponsePromise; - req.emit("proxyConnect", connect); - this.emit("proxyConnect", connect, req); - if (connect.statusCode === 200) { - req.once("socket", resume); - if (opts.secureEndpoint) { - debug2("Upgrading socket connection to TLS"); - const servername = opts.servername || opts.host; - return tls.connect({ - ...omit(opts, "host", "path", "port"), - socket, - servername - }); - } - return socket; - } - socket.destroy(); - const fakeSocket = new net.Socket({ writable: false }); - fakeSocket.readable = true; - req.once("socket", (s) => { - debug2("Replaying proxy buffer for failed request"); - (0, assert_1.default)(s.listenerCount("data") > 0); - s.push(buffered); - s.push(null); - }); - return fakeSocket; - } - }; - HttpsProxyAgent2.protocols = ["http", "https"]; - exports.HttpsProxyAgent = HttpsProxyAgent2; - function resume(socket) { - socket.resume(); - } - function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; - } - } -}); -var import_http_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist2()); -var import_https_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist3()); -var debug = (0, import_debug.default)("prisma:fetch-engine:getProxyAgent"); -function formatHostname(hostname) { - return hostname.replace(/^\.*/, ".").toLowerCase(); -} -function parseNoProxyZone(zone) { - zone = zone.trim().toLowerCase(); - const zoneParts = zone.split(":", 2); - const zoneHost = formatHostname(zoneParts[0]); - const zonePort = zoneParts[1]; - const hasPort = zone.includes(":"); - return { hostname: zoneHost, port: zonePort, hasPort }; -} -function uriInNoProxy(uri, noProxy) { - const port = uri.port || (uri.protocol === "https:" ? "443" : "80"); - const hostname = formatHostname(uri.hostname); - const noProxyList = noProxy.split(","); - return noProxyList.map(parseNoProxyZone).some(function(noProxyZone) { - const isMatchedAt = hostname.indexOf(noProxyZone.hostname); - const hostnameMatched = isMatchedAt > -1 && isMatchedAt === hostname.length - noProxyZone.hostname.length; - if (noProxyZone.hasPort) { - return port === noProxyZone.port && hostnameMatched; - } - return hostnameMatched; - }); -} -function getProxyFromURI(uri) { - const noProxy = process.env.NO_PROXY || process.env.no_proxy || ""; - if (noProxy) debug(`noProxy is set to "${noProxy}"`); - if (noProxy === "*") { - return null; - } - if (noProxy !== "" && uriInNoProxy(uri, noProxy)) { - return null; - } - if (uri.protocol === "http:") { - const httpProxy = process.env.HTTP_PROXY || process.env.http_proxy || null; - if (httpProxy) debug(`uri.protocol is HTTP and the URL for the proxy is "${httpProxy}"`); - return httpProxy; - } - if (uri.protocol === "https:") { - const httpsProxy = process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy || null; - if (httpsProxy) debug(`uri.protocol is HTTPS and the URL for the proxy is "${httpsProxy}"`); - return httpsProxy; - } - return null; -} -function getProxyAgent(url) { - try { - const uri = import_url.default.parse(url); - const proxy = getProxyFromURI(uri); - if (!proxy) { - return void 0; - } else if (uri.protocol === "http:") { - try { - return new import_http_proxy_agent.HttpProxyAgent(proxy); - } catch (agentError) { - throw new Error( - `Error while instantiating HttpProxyAgent with URL: "${proxy}" -${agentError} -Check the following env vars "http_proxy" or "HTTP_PROXY". The value should be a valid URL starting with "http://"` - ); - } - } else if (uri.protocol === "https:") { - try { - return new import_https_proxy_agent.HttpsProxyAgent(proxy); - } catch (agentError) { - throw new Error( - `Error while instantiating HttpsProxyAgent with URL: "${proxy}" -${agentError} -Check the following env vars "https_proxy" or "HTTPS_PROXY". The value should be a valid URL starting with "https://"` - ); - } - } - } catch (e) { - console.warn(`An error occurred in getProxyAgent(), no proxy agent will be used.`, e); - } - return void 0; -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js deleted file mode 100644 index 82d49f8..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +++ /dev/null @@ -1,2385 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_KJ74H3SQ_exports = {}; -__export(chunk_KJ74H3SQ_exports, { - download: () => download, - getBinaryName: () => getBinaryName, - getVersion: () => getVersion, - maybeCopyToTmp: () => maybeCopyToTmp, - plusX: () => plusX, - vercelPkgPathRegex: () => vercelPkgPathRegex -}); -module.exports = __toCommonJS(chunk_KJ74H3SQ_exports); -var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js"); -var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js"); -var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js"); -var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js"); -var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM2(require("@prisma/debug")); -var import_get_platform = require("@prisma/get-platform"); -var import_fs = __toESM2(require("fs")); -var import_path = __toESM2(require("path")); -var import_util = require("util"); -var require_windows = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - function checkPathExt(path2, options2) { - var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT; - if (!pathext) { - return true; - } - pathext = pathext.split(";"); - if (pathext.indexOf("") !== -1) { - return true; - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase(); - if (p && path2.substr(-p.length).toLowerCase() === p) { - return true; - } - } - return false; - } - function checkStat(stat, path2, options2) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false; - } - return checkPathExt(path2, options2); - } - function isexe(path2, options2, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, path2, options2)); - }); - } - function sync(path2, options2) { - return checkStat(fs2.statSync(path2), path2, options2); - } - } -}); -var require_mode = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - function isexe(path2, options2, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, options2)); - }); - } - function sync(path2, options2) { - return checkStat(fs2.statSync(path2), options2); - } - function checkStat(stat, options2) { - return stat.isFile() && checkMode(stat, options2); - } - function checkMode(stat, options2) { - var mod = stat.mode; - var uid = stat.uid; - var gid = stat.gid; - var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid(); - var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid(); - var u = parseInt("100", 8); - var g = parseInt("010", 8); - var o = parseInt("001", 8); - var ug = u | g; - var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0; - return ret; - } - } -}); -var require_isexe = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var core; - if (process.platform === "win32" || global.TESTING_WINDOWS) { - core = require_windows(); - } else { - core = require_mode(); - } - module2.exports = isexe; - isexe.sync = sync; - function isexe(path2, options2, cb) { - if (typeof options2 === "function") { - cb = options2; - options2 = {}; - } - if (!cb) { - if (typeof Promise !== "function") { - throw new TypeError("callback not provided"); - } - return new Promise(function(resolve, reject) { - isexe(path2, options2 || {}, function(er, is) { - if (er) { - reject(er); - } else { - resolve(is); - } - }); - }); - } - core(path2, options2 || {}, function(er, is) { - if (er) { - if (er.code === "EACCES" || options2 && options2.ignoreErrors) { - er = null; - is = false; - } - } - cb(er, is); - }); - } - function sync(path2, options2) { - try { - return core.sync(path2, options2 || {}); - } catch (er) { - if (options2 && options2.ignoreErrors || er.code === "EACCES") { - return false; - } else { - throw er; - } - } - } - } -}); -var require_which = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) { - "use strict"; - var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var COLON = isWindows ? ";" : ":"; - var isexe = require_isexe(); - var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); - var getPathInfo = (cmd, opt) => { - const colon = opt.colon || COLON; - const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [ - // windows always checks the cwd first - ...isWindows ? [process.cwd()] : [], - ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ - "").split(colon) - ]; - const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = isWindows ? pathExtExe.split(colon) : [""]; - if (isWindows) { - if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") - pathExt.unshift(""); - } - return { - pathEnv, - pathExt, - pathExtExe - }; - }; - var which = (cmd, opt, cb) => { - if (typeof opt === "function") { - cb = opt; - opt = {}; - } - if (!opt) - opt = {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - const step = (i) => new Promise((resolve, reject) => { - if (i === pathEnv.length) - return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd)); - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - resolve(subStep(p, i, 0)); - }); - const subStep = (p, i, ii) => new Promise((resolve, reject) => { - if (ii === pathExt.length) - return resolve(step(i + 1)); - const ext = pathExt[ii]; - isexe(p + ext, { pathExt: pathExtExe }, (er, is) => { - if (!er && is) { - if (opt.all) - found.push(p + ext); - else - return resolve(p + ext); - } - return resolve(subStep(p, i, ii + 1)); - }); - }); - return cb ? step(0).then((res) => cb(null, res), cb) : step(0); - }; - var whichSync = (cmd, opt) => { - opt = opt || {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - for (let i = 0; i < pathEnv.length; i++) { - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - for (let j = 0; j < pathExt.length; j++) { - const cur = p + pathExt[j]; - try { - const is = isexe.sync(cur, { pathExt: pathExtExe }); - if (is) { - if (opt.all) - found.push(cur); - else - return cur; - } - } catch (ex) { - } - } - } - if (opt.all && found.length) - return found; - if (opt.nothrow) - return null; - throw getNotFoundError(cmd); - }; - module2.exports = which; - which.sync = whichSync; - } -}); -var require_path_key = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module2) { - "use strict"; - var pathKey = (options2 = {}) => { - const environment = options2.env || process.env; - const platform = options2.platform || process.platform; - if (platform !== "win32") { - return "PATH"; - } - return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path"; - }; - module2.exports = pathKey; - module2.exports.default = pathKey; - } -}); -var require_resolveCommand = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var which = require_which(); - var getPathKey = require_path_key(); - function resolveCommandAttempt(parsed, withoutPathExt) { - const env = parsed.options.env || process.env; - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled; - if (shouldSwitchCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - } - } - let resolved; - try { - resolved = which.sync(parsed.command, { - path: env[getPathKey({ env })], - pathExt: withoutPathExt ? path2.delimiter : void 0 - }); - } catch (e) { - } finally { - if (shouldSwitchCwd) { - process.chdir(cwd); - } - } - if (resolved) { - resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); - } - return resolved; - } - function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); - } - module2.exports = resolveCommand; - } -}); -var require_escape = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) { - "use strict"; - var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - function escapeCommand(arg) { - arg = arg.replace(metaCharsRegExp, "^$1"); - return arg; - } - function escapeArgument(arg, doubleEscapeMetaChars) { - arg = `${arg}`; - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - arg = arg.replace(/(\\*)$/, "$1$1"); - arg = `"${arg}"`; - arg = arg.replace(metaCharsRegExp, "^$1"); - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, "^$1"); - } - return arg; - } - module2.exports.command = escapeCommand; - module2.exports.argument = escapeArgument; - } -}); -var require_shebang_regex = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module2) { - "use strict"; - module2.exports = /^#!(.*)/; - } -}); -var require_shebang_command = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module2) { - "use strict"; - var shebangRegex = require_shebang_regex(); - module2.exports = (string = "") => { - const match = string.match(shebangRegex); - if (!match) { - return null; - } - const [path2, argument] = match[0].replace(/#! ?/, "").split(" "); - const binary = path2.split("/").pop(); - if (binary === "env") { - return argument; - } - return argument ? `${binary} ${argument}` : binary; - }; - } -}); -var require_readShebang = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var shebangCommand = require_shebang_command(); - function readShebang(command) { - const size = 150; - const buffer = Buffer.alloc(size); - let fd; - try { - fd = fs2.openSync(command, "r"); - fs2.readSync(fd, buffer, 0, size, 0); - fs2.closeSync(fd); - } catch (e) { - } - return shebangCommand(buffer.toString()); - } - module2.exports = readShebang; - } -}); -var require_parse = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var resolveCommand = require_resolveCommand(); - var escape = require_escape(); - var readShebang = require_readShebang(); - var isWin = process.platform === "win32"; - var isExecutableRegExp = /\.(?:com|exe)$/i; - var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file); - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - return resolveCommand(parsed); - } - return parsed.file; - } - function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - const commandFile = detectShebang(parsed); - const needsShell = !isExecutableRegExp.test(commandFile); - if (parsed.options.forceShell || needsShell) { - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - parsed.command = path2.normalize(parsed.command); - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - const shellCommand = [parsed.command].concat(parsed.args).join(" "); - parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`]; - parsed.command = process.env.comspec || "cmd.exe"; - parsed.options.windowsVerbatimArguments = true; - } - return parsed; - } - function parse(command, args, options2) { - if (args && !Array.isArray(args)) { - options2 = args; - args = null; - } - args = args ? args.slice(0) : []; - options2 = Object.assign({}, options2); - const parsed = { - command, - args, - options: options2, - file: void 0, - original: { - command, - args - } - }; - return options2.shell ? parsed : parseNonShell(parsed); - } - module2.exports = parse; - } -}); -var require_enoent = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) { - "use strict"; - var isWin = process.platform === "win32"; - function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: "ENOENT", - errno: "ENOENT", - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args - }); - } - function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - const originalEmit = cp.emit; - cp.emit = function(name, arg1) { - if (name === "exit") { - const err = verifyENOENT(arg1, parsed, "spawn"); - if (err) { - return originalEmit.call(cp, "error", err); - } - } - return originalEmit.apply(cp, arguments); - }; - } - function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawn"); - } - return null; - } - function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawnSync"); - } - return null; - } - module2.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError - }; - } -}); -var require_cross_spawn = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) { - "use strict"; - var cp = (0, import_chunk_AH6QHEOA.__require)("child_process"); - var parse = require_parse(); - var enoent = require_enoent(); - function spawn(command, args, options2) { - const parsed = parse(command, args, options2); - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - enoent.hookChildProcess(spawned, parsed); - return spawned; - } - function spawnSync(command, args, options2) { - const parsed = parse(command, args, options2); - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - return result; - } - module2.exports = spawn; - module2.exports.spawn = spawn; - module2.exports.sync = spawnSync; - module2.exports._parse = parse; - module2.exports._enoent = enoent; - } -}); -var require_strip_final_newline = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports, module2) { - "use strict"; - module2.exports = (input) => { - const LF = typeof input === "string" ? "\n" : "\n".charCodeAt(); - const CR = typeof input === "string" ? "\r" : "\r".charCodeAt(); - if (input[input.length - 1] === LF) { - input = input.slice(0, input.length - 1); - } - if (input[input.length - 1] === CR) { - input = input.slice(0, input.length - 1); - } - return input; - }; - } -}); -var require_npm_run_path = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var pathKey = require_path_key(); - var npmRunPath = (options2) => { - options2 = { - cwd: process.cwd(), - path: process.env[pathKey()], - execPath: process.execPath, - ...options2 - }; - let previous; - let cwdPath = path2.resolve(options2.cwd); - const result = []; - while (previous !== cwdPath) { - result.push(path2.join(cwdPath, "node_modules/.bin")); - previous = cwdPath; - cwdPath = path2.resolve(cwdPath, ".."); - } - const execPathDir = path2.resolve(options2.cwd, options2.execPath, ".."); - result.push(execPathDir); - return result.concat(options2.path).join(path2.delimiter); - }; - module2.exports = npmRunPath; - module2.exports.default = npmRunPath; - module2.exports.env = (options2) => { - options2 = { - env: process.env, - ...options2 - }; - const env = { ...options2.env }; - const path3 = pathKey({ env }); - options2.path = env[path3]; - env[path3] = module2.exports(options2); - return env; - }; - } -}); -var require_mimic_fn = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) { - "use strict"; - var mimicFn = (to, from) => { - for (const prop of Reflect.ownKeys(from)) { - Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop)); - } - return to; - }; - module2.exports = mimicFn; - module2.exports.default = mimicFn; - } -}); -var require_onetime = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) { - "use strict"; - var mimicFn = require_mimic_fn(); - var calledFunctions = /* @__PURE__ */ new WeakMap(); - var onetime = (function_, options2 = {}) => { - if (typeof function_ !== "function") { - throw new TypeError("Expected a function"); - } - let returnValue; - let callCount = 0; - const functionName = function_.displayName || function_.name || ""; - const onetime2 = function(...arguments_) { - calledFunctions.set(onetime2, ++callCount); - if (callCount === 1) { - returnValue = function_.apply(this, arguments_); - function_ = null; - } else if (options2.throw === true) { - throw new Error(`Function \`${functionName}\` can only be called once`); - } - return returnValue; - }; - mimicFn(onetime2, function_); - calledFunctions.set(onetime2, callCount); - return onetime2; - }; - module2.exports = onetime; - module2.exports.default = onetime; - module2.exports.callCount = (function_) => { - if (!calledFunctions.has(function_)) { - throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`); - } - return calledFunctions.get(function_); - }; - } -}); -var require_core = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGNALS = void 0; - var SIGNALS = [ - { - name: "SIGHUP", - number: 1, - action: "terminate", - description: "Terminal closed", - standard: "posix" - }, - { - name: "SIGINT", - number: 2, - action: "terminate", - description: "User interruption with CTRL-C", - standard: "ansi" - }, - { - name: "SIGQUIT", - number: 3, - action: "core", - description: "User interruption with CTRL-\\", - standard: "posix" - }, - { - name: "SIGILL", - number: 4, - action: "core", - description: "Invalid machine instruction", - standard: "ansi" - }, - { - name: "SIGTRAP", - number: 5, - action: "core", - description: "Debugger breakpoint", - standard: "posix" - }, - { - name: "SIGABRT", - number: 6, - action: "core", - description: "Aborted", - standard: "ansi" - }, - { - name: "SIGIOT", - number: 6, - action: "core", - description: "Aborted", - standard: "bsd" - }, - { - name: "SIGBUS", - number: 7, - action: "core", - description: "Bus error due to misaligned, non-existing address or paging error", - standard: "bsd" - }, - { - name: "SIGEMT", - number: 7, - action: "terminate", - description: "Command should be emulated but is not implemented", - standard: "other" - }, - { - name: "SIGFPE", - number: 8, - action: "core", - description: "Floating point arithmetic error", - standard: "ansi" - }, - { - name: "SIGKILL", - number: 9, - action: "terminate", - description: "Forced termination", - standard: "posix", - forced: true - }, - { - name: "SIGUSR1", - number: 10, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGSEGV", - number: 11, - action: "core", - description: "Segmentation fault", - standard: "ansi" - }, - { - name: "SIGUSR2", - number: 12, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGPIPE", - number: 13, - action: "terminate", - description: "Broken pipe or socket", - standard: "posix" - }, - { - name: "SIGALRM", - number: 14, - action: "terminate", - description: "Timeout or timer", - standard: "posix" - }, - { - name: "SIGTERM", - number: 15, - action: "terminate", - description: "Termination", - standard: "ansi" - }, - { - name: "SIGSTKFLT", - number: 16, - action: "terminate", - description: "Stack is empty or overflowed", - standard: "other" - }, - { - name: "SIGCHLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "posix" - }, - { - name: "SIGCLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "other" - }, - { - name: "SIGCONT", - number: 18, - action: "unpause", - description: "Unpaused", - standard: "posix", - forced: true - }, - { - name: "SIGSTOP", - number: 19, - action: "pause", - description: "Paused", - standard: "posix", - forced: true - }, - { - name: "SIGTSTP", - number: 20, - action: "pause", - description: 'Paused using CTRL-Z or "suspend"', - standard: "posix" - }, - { - name: "SIGTTIN", - number: 21, - action: "pause", - description: "Background process cannot read terminal input", - standard: "posix" - }, - { - name: "SIGBREAK", - number: 21, - action: "terminate", - description: "User interruption with CTRL-BREAK", - standard: "other" - }, - { - name: "SIGTTOU", - number: 22, - action: "pause", - description: "Background process cannot write to terminal output", - standard: "posix" - }, - { - name: "SIGURG", - number: 23, - action: "ignore", - description: "Socket received out-of-band data", - standard: "bsd" - }, - { - name: "SIGXCPU", - number: 24, - action: "core", - description: "Process timed out", - standard: "bsd" - }, - { - name: "SIGXFSZ", - number: 25, - action: "core", - description: "File too big", - standard: "bsd" - }, - { - name: "SIGVTALRM", - number: 26, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGPROF", - number: 27, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGWINCH", - number: 28, - action: "ignore", - description: "Terminal window size changed", - standard: "bsd" - }, - { - name: "SIGIO", - number: 29, - action: "terminate", - description: "I/O is available", - standard: "other" - }, - { - name: "SIGPOLL", - number: 29, - action: "terminate", - description: "Watched event", - standard: "other" - }, - { - name: "SIGINFO", - number: 29, - action: "ignore", - description: "Request for process information", - standard: "other" - }, - { - name: "SIGPWR", - number: 30, - action: "terminate", - description: "Device running out of power", - standard: "systemv" - }, - { - name: "SIGSYS", - number: 31, - action: "core", - description: "Invalid system call", - standard: "other" - }, - { - name: "SIGUNUSED", - number: 31, - action: "terminate", - description: "Invalid system call", - standard: "other" - } - ]; - exports.SIGNALS = SIGNALS; - } -}); -var require_realtime = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGRTMAX = exports.getRealtimeSignals = void 0; - var getRealtimeSignals = function() { - const length = SIGRTMAX - SIGRTMIN + 1; - return Array.from({ length }, getRealtimeSignal); - }; - exports.getRealtimeSignals = getRealtimeSignals; - var getRealtimeSignal = function(value, index) { - return { - name: `SIGRT${index + 1}`, - number: SIGRTMIN + index, - action: "terminate", - description: "Application-specific signal (realtime)", - standard: "posix" - }; - }; - var SIGRTMIN = 34; - var SIGRTMAX = 64; - exports.SIGRTMAX = SIGRTMAX; - } -}); -var require_signals = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSignals = void 0; - var _os = (0, import_chunk_AH6QHEOA.__require)("os"); - var _core = require_core(); - var _realtime = require_realtime(); - var getSignals = function() { - const realtimeSignals = (0, _realtime.getRealtimeSignals)(); - const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal); - return signals; - }; - exports.getSignals = getSignals; - var normalizeSignal = function({ - name, - number: defaultNumber, - description, - action, - forced = false, - standard - }) { - const { - signals: { [name]: constantSignal } - } = _os.constants; - const supported = constantSignal !== void 0; - const number = supported ? constantSignal : defaultNumber; - return { name, number, description, supported, action, forced, standard }; - }; - } -}); -var require_main = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.signalsByNumber = exports.signalsByName = void 0; - var _os = (0, import_chunk_AH6QHEOA.__require)("os"); - var _signals = require_signals(); - var _realtime = require_realtime(); - var getSignalsByName = function() { - const signals = (0, _signals.getSignals)(); - return signals.reduce(getSignalByName, {}); - }; - var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) { - return { - ...signalByNameMemo, - [name]: { name, number, description, supported, action, forced, standard } - }; - }; - var signalsByName = getSignalsByName(); - exports.signalsByName = signalsByName; - var getSignalsByNumber = function() { - const signals = (0, _signals.getSignals)(); - const length = _realtime.SIGRTMAX + 1; - const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals)); - return Object.assign({}, ...signalsA); - }; - var getSignalByNumber = function(number, signals) { - const signal = findSignalByNumber(number, signals); - if (signal === void 0) { - return {}; - } - const { name, description, supported, action, forced, standard } = signal; - return { - [number]: { - name, - number, - description, - supported, - action, - forced, - standard - } - }; - }; - var findSignalByNumber = function(number, signals) { - const signal = signals.find(({ name }) => _os.constants.signals[name] === number); - if (signal !== void 0) { - return signal; - } - return signals.find((signalA) => signalA.number === number); - }; - var signalsByNumber = getSignalsByNumber(); - exports.signalsByNumber = signalsByNumber; - } -}); -var require_error = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports, module2) { - "use strict"; - var { signalsByName } = require_main(); - var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => { - if (timedOut) { - return `timed out after ${timeout} milliseconds`; - } - if (isCanceled) { - return "was canceled"; - } - if (errorCode !== void 0) { - return `failed with ${errorCode}`; - } - if (signal !== void 0) { - return `was killed with ${signal} (${signalDescription})`; - } - if (exitCode !== void 0) { - return `failed with exit code ${exitCode}`; - } - return "failed"; - }; - var makeError = ({ - stdout, - stderr, - all, - error, - signal, - exitCode, - command, - escapedCommand, - timedOut, - isCanceled, - killed, - parsed: { options: { timeout } } - }) => { - exitCode = exitCode === null ? void 0 : exitCode; - signal = signal === null ? void 0 : signal; - const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description; - const errorCode = error && error.code; - const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }); - const execaMessage = `Command ${prefix}: ${command}`; - const isError = Object.prototype.toString.call(error) === "[object Error]"; - const shortMessage = isError ? `${execaMessage} -${error.message}` : execaMessage; - const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n"); - if (isError) { - error.originalMessage = error.message; - error.message = message; - } else { - error = new Error(message); - } - error.shortMessage = shortMessage; - error.command = command; - error.escapedCommand = escapedCommand; - error.exitCode = exitCode; - error.signal = signal; - error.signalDescription = signalDescription; - error.stdout = stdout; - error.stderr = stderr; - if (all !== void 0) { - error.all = all; - } - if ("bufferedData" in error) { - delete error.bufferedData; - } - error.failed = true; - error.timedOut = Boolean(timedOut); - error.isCanceled = isCanceled; - error.killed = killed && !timedOut; - return error; - }; - module2.exports = makeError; - } -}); -var require_stdio = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports, module2) { - "use strict"; - var aliases = ["stdin", "stdout", "stderr"]; - var hasAlias = (options2) => aliases.some((alias) => options2[alias] !== void 0); - var normalizeStdio = (options2) => { - if (!options2) { - return; - } - const { stdio } = options2; - if (stdio === void 0) { - return aliases.map((alias) => options2[alias]); - } - if (hasAlias(options2)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`); - } - if (typeof stdio === "string") { - return stdio; - } - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - const length = Math.max(stdio.length, aliases.length); - return Array.from({ length }, (value, index) => stdio[index]); - }; - module2.exports = normalizeStdio; - module2.exports.node = (options2) => { - const stdio = normalizeStdio(options2); - if (stdio === "ipc") { - return "ipc"; - } - if (stdio === void 0 || typeof stdio === "string") { - return [stdio, stdio, stdio, "ipc"]; - } - if (stdio.includes("ipc")) { - return stdio; - } - return [...stdio, "ipc"]; - }; - } -}); -var require_signals2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) { - "use strict"; - module2.exports = [ - "SIGABRT", - "SIGALRM", - "SIGHUP", - "SIGINT", - "SIGTERM" - ]; - if (process.platform !== "win32") { - module2.exports.push( - "SIGVTALRM", - "SIGXCPU", - "SIGXFSZ", - "SIGUSR2", - "SIGTRAP", - "SIGSYS", - "SIGQUIT", - "SIGIOT" - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ); - } - if (process.platform === "linux") { - module2.exports.push( - "SIGIO", - "SIGPOLL", - "SIGPWR", - "SIGSTKFLT", - "SIGUNUSED" - ); - } - } -}); -var require_signal_exit = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) { - "use strict"; - var process2 = global.process; - var processOk = function(process3) { - return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function"; - }; - if (!processOk(process2)) { - module2.exports = function() { - return function() { - }; - }; - } else { - assert = (0, import_chunk_AH6QHEOA.__require)("assert"); - signals = require_signals2(); - isWin = /^win/i.test(process2.platform); - EE = (0, import_chunk_AH6QHEOA.__require)("events"); - if (typeof EE !== "function") { - EE = EE.EventEmitter; - } - if (process2.__signal_exit_emitter__) { - emitter = process2.__signal_exit_emitter__; - } else { - emitter = process2.__signal_exit_emitter__ = new EE(); - emitter.count = 0; - emitter.emitted = {}; - } - if (!emitter.infinite) { - emitter.setMaxListeners(Infinity); - emitter.infinite = true; - } - module2.exports = function(cb, opts2) { - if (!processOk(global.process)) { - return function() { - }; - } - assert.equal(typeof cb, "function", "a callback must be provided for exit handler"); - if (loaded === false) { - load(); - } - var ev = "exit"; - if (opts2 && opts2.alwaysLast) { - ev = "afterexit"; - } - var remove = function() { - emitter.removeListener(ev, cb); - if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) { - unload(); - } - }; - emitter.on(ev, cb); - return remove; - }; - unload = function unload2() { - if (!loaded || !processOk(global.process)) { - return; - } - loaded = false; - signals.forEach(function(sig) { - try { - process2.removeListener(sig, sigListeners[sig]); - } catch (er) { - } - }); - process2.emit = originalProcessEmit; - process2.reallyExit = originalProcessReallyExit; - emitter.count -= 1; - }; - module2.exports.unload = unload; - emit = function emit2(event, code, signal) { - if (emitter.emitted[event]) { - return; - } - emitter.emitted[event] = true; - emitter.emit(event, code, signal); - }; - sigListeners = {}; - signals.forEach(function(sig) { - sigListeners[sig] = function listener() { - if (!processOk(global.process)) { - return; - } - var listeners = process2.listeners(sig); - if (listeners.length === emitter.count) { - unload(); - emit("exit", null, sig); - emit("afterexit", null, sig); - if (isWin && sig === "SIGHUP") { - sig = "SIGINT"; - } - process2.kill(process2.pid, sig); - } - }; - }); - module2.exports.signals = function() { - return signals; - }; - loaded = false; - load = function load2() { - if (loaded || !processOk(global.process)) { - return; - } - loaded = true; - emitter.count += 1; - signals = signals.filter(function(sig) { - try { - process2.on(sig, sigListeners[sig]); - return true; - } catch (er) { - return false; - } - }); - process2.emit = processEmit; - process2.reallyExit = processReallyExit; - }; - module2.exports.load = load; - originalProcessReallyExit = process2.reallyExit; - processReallyExit = function processReallyExit2(code) { - if (!processOk(global.process)) { - return; - } - process2.exitCode = code || /* istanbul ignore next */ - 0; - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - originalProcessReallyExit.call(process2, process2.exitCode); - }; - originalProcessEmit = process2.emit; - processEmit = function processEmit2(ev, arg) { - if (ev === "exit" && processOk(global.process)) { - if (arg !== void 0) { - process2.exitCode = arg; - } - var ret = originalProcessEmit.apply(this, arguments); - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - return ret; - } else { - return originalProcessEmit.apply(this, arguments); - } - }; - } - var assert; - var signals; - var isWin; - var EE; - var emitter; - var unload; - var emit; - var sigListeners; - var loaded; - var load; - var originalProcessReallyExit; - var processReallyExit; - var originalProcessEmit; - var processEmit; - } -}); -var require_kill = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) { - "use strict"; - var os2 = (0, import_chunk_AH6QHEOA.__require)("os"); - var onExit = require_signal_exit(); - var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5; - var spawnedKill = (kill, signal = "SIGTERM", options2 = {}) => { - const killResult = kill(signal); - setKillTimeout(kill, signal, options2, killResult); - return killResult; - }; - var setKillTimeout = (kill, signal, options2, killResult) => { - if (!shouldForceKill(signal, options2, killResult)) { - return; - } - const timeout = getForceKillAfterTimeout(options2); - const t = setTimeout(() => { - kill("SIGKILL"); - }, timeout); - if (t.unref) { - t.unref(); - } - }; - var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => { - return isSigterm(signal) && forceKillAfterTimeout !== false && killResult; - }; - var isSigterm = (signal) => { - return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM"; - }; - var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => { - if (forceKillAfterTimeout === true) { - return DEFAULT_FORCE_KILL_TIMEOUT; - } - if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) { - throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`); - } - return forceKillAfterTimeout; - }; - var spawnedCancel = (spawned, context) => { - const killResult = spawned.kill(); - if (killResult) { - context.isCanceled = true; - } - }; - var timeoutKill = (spawned, signal, reject) => { - spawned.kill(signal); - reject(Object.assign(new Error("Timed out"), { timedOut: true, signal })); - }; - var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => { - if (timeout === 0 || timeout === void 0) { - return spawnedPromise; - } - let timeoutId; - const timeoutPromise = new Promise((resolve, reject) => { - timeoutId = setTimeout(() => { - timeoutKill(spawned, killSignal, reject); - }, timeout); - }); - const safeSpawnedPromise = spawnedPromise.finally(() => { - clearTimeout(timeoutId); - }); - return Promise.race([timeoutPromise, safeSpawnedPromise]); - }; - var validateTimeout = ({ timeout }) => { - if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) { - throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`); - } - }; - var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => { - if (!cleanup || detached) { - return timedPromise; - } - const removeExitHandler = onExit(() => { - spawned.kill(); - }); - return timedPromise.finally(() => { - removeExitHandler(); - }); - }; - module2.exports = { - spawnedKill, - spawnedCancel, - setupTimeout, - validateTimeout, - setExitHandler - }; - } -}); -var require_buffer_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module2) { - "use strict"; - var { PassThrough: PassThroughStream } = (0, import_chunk_AH6QHEOA.__require)("stream"); - module2.exports = (options2) => { - options2 = { ...options2 }; - const { array } = options2; - let { encoding } = options2; - const isBuffer = encoding === "buffer"; - let objectMode = false; - if (array) { - objectMode = !(encoding || isBuffer); - } else { - encoding = encoding || "utf8"; - } - if (isBuffer) { - encoding = null; - } - const stream = new PassThroughStream({ objectMode }); - if (encoding) { - stream.setEncoding(encoding); - } - let length = 0; - const chunks = []; - stream.on("data", (chunk) => { - chunks.push(chunk); - if (objectMode) { - length = chunks.length; - } else { - length += chunk.length; - } - }); - stream.getBufferedValue = () => { - if (array) { - return chunks; - } - return isBuffer ? Buffer.concat(chunks, length) : chunks.join(""); - }; - stream.getBufferedLength = () => length; - return stream; - }; - } -}); -var require_get_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports, module2) { - "use strict"; - var { constants: BufferConstants } = (0, import_chunk_AH6QHEOA.__require)("buffer"); - var stream = (0, import_chunk_AH6QHEOA.__require)("stream"); - var { promisify: promisify2 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var bufferStream = require_buffer_stream(); - var streamPipelinePromisified = promisify2(stream.pipeline); - var MaxBufferError = class extends Error { - constructor() { - super("maxBuffer exceeded"); - this.name = "MaxBufferError"; - } - }; - async function getStream(inputStream, options2) { - if (!inputStream) { - throw new Error("Expected a stream"); - } - options2 = { - maxBuffer: Infinity, - ...options2 - }; - const { maxBuffer } = options2; - const stream2 = bufferStream(options2); - await new Promise((resolve, reject) => { - const rejectPromise = (error) => { - if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) { - error.bufferedData = stream2.getBufferedValue(); - } - reject(error); - }; - (async () => { - try { - await streamPipelinePromisified(inputStream, stream2); - resolve(); - } catch (error) { - rejectPromise(error); - } - })(); - stream2.on("data", () => { - if (stream2.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }); - return stream2.getBufferedValue(); - } - module2.exports = getStream; - module2.exports.buffer = (stream2, options2) => getStream(stream2, { ...options2, encoding: "buffer" }); - module2.exports.array = (stream2, options2) => getStream(stream2, { ...options2, array: true }); - module2.exports.MaxBufferError = MaxBufferError; - } -}); -var require_merge_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module2) { - "use strict"; - var { PassThrough } = (0, import_chunk_AH6QHEOA.__require)("stream"); - module2.exports = function() { - var sources = []; - var output = new PassThrough({ objectMode: true }); - output.setMaxListeners(0); - output.add = add; - output.isEmpty = isEmpty; - output.on("unpipe", remove); - Array.prototype.slice.call(arguments).forEach(add); - return output; - function add(source) { - if (Array.isArray(source)) { - source.forEach(add); - return this; - } - sources.push(source); - source.once("end", remove.bind(null, source)); - source.once("error", output.emit.bind(output, "error")); - source.pipe(output, { end: false }); - return this; - } - function isEmpty() { - return sources.length == 0; - } - function remove(source) { - sources = sources.filter(function(it) { - return it !== source; - }); - if (!sources.length && output.readable) { - output.end(); - } - } - }; - } -}); -var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) { - "use strict"; - var isStream = (0, import_chunk_QLWYUM7O.require_is_stream)(); - var getStream = require_get_stream(); - var mergeStream = require_merge_stream(); - var handleInput = (spawned, input) => { - if (input === void 0 || spawned.stdin === void 0) { - return; - } - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } - }; - var makeAllStream = (spawned, { all }) => { - if (!all || !spawned.stdout && !spawned.stderr) { - return; - } - const mixed = mergeStream(); - if (spawned.stdout) { - mixed.add(spawned.stdout); - } - if (spawned.stderr) { - mixed.add(spawned.stderr); - } - return mixed; - }; - var getBufferedData = async (stream, streamPromise) => { - if (!stream) { - return; - } - stream.destroy(); - try { - return await streamPromise; - } catch (error) { - return error.bufferedData; - } - }; - var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => { - if (!stream || !buffer) { - return; - } - if (encoding) { - return getStream(stream, { encoding, maxBuffer }); - } - return getStream.buffer(stream, { maxBuffer }); - }; - var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => { - const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer }); - const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer }); - const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 }); - try { - return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]); - } catch (error) { - return Promise.all([ - { error, signal: error.signal, timedOut: error.timedOut }, - getBufferedData(stdout, stdoutPromise), - getBufferedData(stderr, stderrPromise), - getBufferedData(all, allPromise) - ]); - } - }; - var validateInputSync = ({ input }) => { - if (isStream(input)) { - throw new TypeError("The `input` option cannot be a stream in sync mode"); - } - }; - module2.exports = { - handleInput, - makeAllStream, - getSpawnedResult, - validateInputSync - }; - } -}); -var require_promise = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports, module2) { - "use strict"; - var nativePromisePrototype = (async () => { - })().constructor.prototype; - var descriptors = ["then", "catch", "finally"].map((property) => [ - property, - Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property) - ]); - var mergePromise = (spawned, promise) => { - for (const [property, descriptor] of descriptors) { - const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise); - Reflect.defineProperty(spawned, property, { ...descriptor, value }); - } - return spawned; - }; - var getSpawnedPromise = (spawned) => { - return new Promise((resolve, reject) => { - spawned.on("exit", (exitCode, signal) => { - resolve({ exitCode, signal }); - }); - spawned.on("error", (error) => { - reject(error); - }); - if (spawned.stdin) { - spawned.stdin.on("error", (error) => { - reject(error); - }); - } - }); - }; - module2.exports = { - mergePromise, - getSpawnedPromise - }; - } -}); -var require_command = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports, module2) { - "use strict"; - var normalizeArgs = (file2, args = []) => { - if (!Array.isArray(args)) { - return [file2]; - } - return [file2, ...args]; - }; - var NO_ESCAPE_REGEXP = /^[\w.-]+$/; - var DOUBLE_QUOTES_REGEXP = /"/g; - var escapeArg = (arg) => { - if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) { - return arg; - } - return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`; - }; - var joinCommand = (file2, args) => { - return normalizeArgs(file2, args).join(" "); - }; - var getEscapedCommand = (file2, args) => { - return normalizeArgs(file2, args).map((arg) => escapeArg(arg)).join(" "); - }; - var SPACES_REGEXP = / +/g; - var parseCommand = (command) => { - const tokens = []; - for (const token of command.trim().split(SPACES_REGEXP)) { - const previousToken = tokens[tokens.length - 1]; - if (previousToken && previousToken.endsWith("\\")) { - tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`; - } else { - tokens.push(token); - } - } - return tokens; - }; - module2.exports = { - joinCommand, - getEscapedCommand, - parseCommand - }; - } -}); -var require_execa = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var childProcess = (0, import_chunk_AH6QHEOA.__require)("child_process"); - var crossSpawn = require_cross_spawn(); - var stripFinalNewline = require_strip_final_newline(); - var npmRunPath = require_npm_run_path(); - var onetime = require_onetime(); - var makeError = require_error(); - var normalizeStdio = require_stdio(); - var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill(); - var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream(); - var { mergePromise, getSpawnedPromise } = require_promise(); - var { joinCommand, parseCommand, getEscapedCommand } = require_command(); - var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100; - var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => { - const env = extendEnv ? { ...process.env, ...envOption } : envOption; - if (preferLocal) { - return npmRunPath.env({ env, cwd: localDir, execPath }); - } - return env; - }; - var handleArguments = (file2, args, options2 = {}) => { - const parsed = crossSpawn._parse(file2, args, options2); - file2 = parsed.command; - args = parsed.args; - options2 = parsed.options; - options2 = { - maxBuffer: DEFAULT_MAX_BUFFER, - buffer: true, - stripFinalNewline: true, - extendEnv: true, - preferLocal: false, - localDir: options2.cwd || process.cwd(), - execPath: process.execPath, - encoding: "utf8", - reject: true, - cleanup: true, - all: false, - windowsHide: true, - ...options2 - }; - options2.env = getEnv(options2); - options2.stdio = normalizeStdio(options2); - if (process.platform === "win32" && path2.basename(file2, ".exe") === "cmd") { - args.unshift("/q"); - } - return { file: file2, args, options: options2, parsed }; - }; - var handleOutput = (options2, value, error) => { - if (typeof value !== "string" && !Buffer.isBuffer(value)) { - return error === void 0 ? void 0 : ""; - } - if (options2.stripFinalNewline) { - return stripFinalNewline(value); - } - return value; - }; - var execa2 = (file2, args, options2) => { - const parsed = handleArguments(file2, args, options2); - const command = joinCommand(file2, args); - const escapedCommand = getEscapedCommand(file2, args); - validateTimeout(parsed.options); - let spawned; - try { - spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options); - } catch (error) { - const dummySpawned = new childProcess.ChildProcess(); - const errorPromise = Promise.reject(makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - })); - return mergePromise(dummySpawned, errorPromise); - } - const spawnedPromise = getSpawnedPromise(spawned); - const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise); - const processDone = setExitHandler(spawned, parsed.options, timedPromise); - const context = { isCanceled: false }; - spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned)); - spawned.cancel = spawnedCancel.bind(null, spawned, context); - const handlePromise = async () => { - const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone); - const stdout = handleOutput(parsed.options, stdoutResult); - const stderr = handleOutput(parsed.options, stderrResult); - const all = handleOutput(parsed.options, allResult); - if (error || exitCode !== 0 || signal !== null) { - const returnedError = makeError({ - error, - exitCode, - signal, - stdout, - stderr, - all, - command, - escapedCommand, - parsed, - timedOut, - isCanceled: context.isCanceled, - killed: spawned.killed - }); - if (!parsed.options.reject) { - return returnedError; - } - throw returnedError; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - all, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - const handlePromiseOnce = onetime(handlePromise); - handleInput(spawned, parsed.options.input); - spawned.all = makeAllStream(spawned, parsed.options); - return mergePromise(spawned, handlePromiseOnce); - }; - module2.exports = execa2; - module2.exports.sync = (file2, args, options2) => { - const parsed = handleArguments(file2, args, options2); - const command = joinCommand(file2, args); - const escapedCommand = getEscapedCommand(file2, args); - validateInputSync(parsed.options); - let result; - try { - result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options); - } catch (error) { - throw makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - }); - } - const stdout = handleOutput(parsed.options, result.stdout, result.error); - const stderr = handleOutput(parsed.options, result.stderr, result.error); - if (result.error || result.status !== 0 || result.signal !== null) { - const error = makeError({ - stdout, - stderr, - error: result.error, - signal: result.signal, - exitCode: result.status, - command, - escapedCommand, - parsed, - timedOut: result.error && result.error.code === "ETIMEDOUT", - isCanceled: false, - killed: result.signal !== null - }); - if (!parsed.options.reject) { - return error; - } - throw error; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - module2.exports.command = (command, options2) => { - const [file2, ...args] = parseCommand(command); - return execa2(file2, args, options2); - }; - module2.exports.commandSync = (command, options2) => { - const [file2, ...args] = parseCommand(command); - return execa2.sync(file2, args, options2); - }; - module2.exports.node = (scriptPath, args, options2 = {}) => { - if (args && !Array.isArray(args) && typeof args === "object") { - options2 = args; - args = []; - } - const stdio = normalizeStdio.node(options2); - const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect")); - const { - nodePath = process.execPath, - nodeOptions = defaultExecArgv - } = options2; - return execa2( - nodePath, - [ - ...nodeOptions, - scriptPath, - ...Array.isArray(args) ? args : [] - ], - { - ...options2, - stdin: void 0, - stdout: void 0, - stderr: void 0, - stdio, - shell: false - } - ); - }; - } -}); -var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-map@2.1.0/node_modules/p-map/index.js"(exports, module2) { - "use strict"; - var pMap = (iterable, mapper, options2) => new Promise((resolve, reject) => { - options2 = Object.assign({ - concurrency: Infinity - }, options2); - if (typeof mapper !== "function") { - throw new TypeError("Mapper function is required"); - } - const { concurrency } = options2; - if (!(typeof concurrency === "number" && concurrency >= 1)) { - throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${concurrency}\` (${typeof concurrency})`); - } - const ret = []; - const iterator = iterable[Symbol.iterator](); - let isRejected = false; - let isIterableDone = false; - let resolvingCount = 0; - let currentIndex = 0; - const next = () => { - if (isRejected) { - return; - } - const nextItem = iterator.next(); - const i = currentIndex; - currentIndex++; - if (nextItem.done) { - isIterableDone = true; - if (resolvingCount === 0) { - resolve(ret); - } - return; - } - resolvingCount++; - Promise.resolve(nextItem.value).then((element) => mapper(element, i)).then( - (value) => { - ret[i] = value; - resolvingCount--; - next(); - }, - (error) => { - isRejected = true; - reject(error); - } - ); - }; - for (let i = 0; i < concurrency; i++) { - next(); - if (isIterableDone) { - break; - } - } - }); - module2.exports = pMap; - module2.exports.default = pMap; - } -}); -var require_p_filter = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-filter@2.1.0/node_modules/p-filter/index.js"(exports, module2) { - "use strict"; - var pMap = require_p_map(); - var pFilter2 = async (iterable, filterer, options2) => { - const values = await pMap( - iterable, - (element, index) => Promise.all([filterer(element, index), element]), - options2 - ); - return values.filter((value) => Boolean(value[0])).map((value) => value[1]); - }; - module2.exports = pFilter2; - module2.exports.default = pFilter2; - } -}); -var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({ - "package.json"(exports, module2) { - module2.exports = { - name: "@prisma/fetch-engine", - version: "0.0.0", - description: "This package is intended for Prisma's internal use", - main: "dist/index.js", - types: "dist/index.d.ts", - license: "Apache-2.0", - author: "Tim Suchanek ", - homepage: "https://www.prisma.io", - repository: { - type: "git", - url: "https://github.com/prisma/prisma.git", - directory: "packages/fetch-engine" - }, - bugs: "https://github.com/prisma/prisma/issues", - enginesOverride: {}, - devDependencies: { - "@swc/core": "1.6.13", - "@swc/jest": "0.2.36", - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "@types/progress": "2.0.7", - del: "6.1.1", - execa: "5.1.1", - "find-cache-dir": "5.0.0", - "fs-extra": "11.1.1", - hasha: "5.2.2", - "http-proxy-agent": "7.0.2", - "https-proxy-agent": "7.0.5", - jest: "29.7.0", - kleur: "4.1.5", - "node-fetch": "3.3.2", - "p-filter": "2.1.0", - "p-map": "4.0.0", - "p-retry": "4.6.2", - progress: "2.0.3", - rimraf: "3.0.2", - "strip-ansi": "6.0.1", - "temp-dir": "2.0.0", - tempy: "1.0.1", - "timeout-signal": "2.0.0", - typescript: "5.4.5" - }, - dependencies: { - "@prisma/debug": "workspace:*", - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/get-platform": "workspace:*" - }, - scripts: { - dev: "DEV=true tsx helpers/build.ts", - build: "tsx helpers/build.ts", - test: "jest", - prepublishOnly: "pnpm run build" - }, - files: [ - "README.md", - "dist" - ], - sideEffects: false - }; - } -}); -var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa()); -var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_FQ2BOR66.require_lib)()); -var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter()); -var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_QLWYUM7O.require_temp_dir)()); -var { enginesOverride } = require_package(); -var debug = (0, import_debug.default)("prisma:fetch-engine:download"); -var exists = (0, import_util.promisify)(import_fs.default.exists); -var channel = "master"; -var vercelPkgPathRegex = /^((\w:[\\\/])|\/)snapshot[\/\\]/; -async function download(options) { - if (enginesOverride?.["branch"] || enginesOverride?.["folder"]) { - options.version = "_local_"; - options.skipCacheIntegrityCheck = true; - } - const { binaryTarget, ...os } = await (0, import_get_platform.getPlatformInfo)(); - if (os.targetDistro && ["nixos"].includes(os.targetDistro) && !(0, import_chunk_PXQVM7NP.allEngineEnvVarsSet)(Object.keys(options.binaries))) { - console.error( - `${(0, import_chunk_PXQVM7NP.yellow)("Warning")} Precompiled engine files are not available for ${os.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines` - ); - } else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) { - console.error( - `${(0, import_chunk_PXQVM7NP.yellow)( - "Warning" - )} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines` - ); - } else if ("libquery-engine" in options.binaries) { - (0, import_get_platform.assertNodeAPISupported)(); - } - if (!options.binaries || Object.values(options.binaries).length === 0) { - return {}; - } - const opts = { - ...options, - binaryTargets: options.binaryTargets ?? [binaryTarget], - version: options.version ?? "latest", - binaries: options.binaries - }; - const binaryJobs = Object.entries(opts.binaries).flatMap( - ([binaryName, targetFolder]) => opts.binaryTargets.map((binaryTarget2) => { - const fileName = getBinaryName(binaryName, binaryTarget2); - const targetFilePath = import_path.default.join(targetFolder, fileName); - return { - binaryName, - targetFolder, - binaryTarget: binaryTarget2, - fileName, - targetFilePath, - envVarPath: (0, import_chunk_PXQVM7NP.getBinaryEnvVarPath)(binaryName)?.path, - skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck - }; - }) - ); - if (process.env.BINARY_DOWNLOAD_VERSION) { - debug(`process.env.BINARY_DOWNLOAD_VERSION is set to "${process.env.BINARY_DOWNLOAD_VERSION}"`); - opts.version = process.env.BINARY_DOWNLOAD_VERSION; - } - if (opts.printVersion) { - console.log(`version: ${opts.version}`); - } - const binariesToDownload = await (0, import_p_filter.default)(binaryJobs, async (job) => { - const needsToBeDownloaded = await binaryNeedsToBeDownloaded(job, binaryTarget, opts.version); - const isSupported = import_get_platform.binaryTargets.includes(job.binaryTarget); - const shouldDownload = isSupported && !job.envVarPath && // this is for custom binaries - needsToBeDownloaded; - if (needsToBeDownloaded && !isSupported) { - throw new Error(`Unknown binaryTarget ${job.binaryTarget} and no custom engine files were provided`); - } - return shouldDownload; - }); - if (binariesToDownload.length > 0) { - const cleanupPromise = (0, import_chunk_QSTZGX47.cleanupCache)(); - let finishBar; - let setProgress; - if (opts.showProgress) { - const collectiveBar = getCollectiveBar(opts); - finishBar = collectiveBar.finishBar; - setProgress = collectiveBar.setProgress; - } - const promises = binariesToDownload.map((job) => { - const downloadUrl = (0, import_chunk_FQ2BOR66.getDownloadUrl)({ - channel: "all_commits", - version: opts.version, - binaryTarget: job.binaryTarget, - binaryName: job.binaryName - }); - debug(`${downloadUrl} will be downloaded to ${job.targetFilePath}`); - return downloadBinary({ - ...job, - downloadUrl, - version: opts.version, - failSilent: opts.failSilent, - progressCb: setProgress ? setProgress(job.targetFilePath) : void 0 - }); - }); - await Promise.all(promises); - await cleanupPromise; - if (finishBar) { - finishBar(); - } - } - const binaryPaths = binaryJobsToBinaryPaths(binaryJobs); - const dir = eval("__dirname"); - if (dir.match(vercelPkgPathRegex)) { - for (const engineType in binaryPaths) { - const binaryTargets2 = binaryPaths[engineType]; - for (const binaryTarget2 in binaryTargets2) { - const binaryPath = binaryTargets2[binaryTarget2]; - binaryTargets2[binaryTarget2] = await maybeCopyToTmp(binaryPath); - } - } - } - return binaryPaths; -} -function getCollectiveBar(options2) { - const hasNodeAPI = "libquery-engine" in options2.binaries; - const bar = (0, import_chunk_4LX3XBNY.getBar)( - `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options2.binaryTargets?.map((p) => (0, import_chunk_PXQVM7NP.bold)(p)).join(" and ")}` - ); - const progressMap = {}; - const numDownloads = Object.values(options2.binaries).length * Object.values(options2?.binaryTargets ?? []).length; - const setProgress = (sourcePath) => (progress) => { - progressMap[sourcePath] = progress; - const progressValues = Object.values(progressMap); - const totalProgress = progressValues.reduce((acc, curr) => { - return acc + curr; - }, 0) / numDownloads; - if (options2.progressCb) { - options2.progressCb(totalProgress); - } - if (bar) { - bar.update(totalProgress); - } - }; - return { - setProgress, - finishBar: () => { - bar.update(1); - bar.terminate(); - } - }; -} -function binaryJobsToBinaryPaths(jobs) { - return jobs.reduce((acc, job) => { - if (!acc[job.binaryName]) { - acc[job.binaryName] = {}; - } - acc[job.binaryName][job.binaryTarget] = job.envVarPath || job.targetFilePath; - return acc; - }, {}); -} -async function binaryNeedsToBeDownloaded(job, nativePlatform, version) { - if (job.envVarPath && import_fs.default.existsSync(job.envVarPath)) { - return false; - } - const targetExists = await exists(job.targetFilePath); - const cachedFile = await getCachedBinaryPath({ - ...job, - version - }); - if (cachedFile) { - if (job.skipCacheIntegrityCheck === true) { - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - return false; - } - const sha256FilePath = cachedFile + ".sha256"; - if (await exists(sha256FilePath)) { - const sha256File = await import_fs.default.promises.readFile(sha256FilePath, "utf-8"); - const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile); - if (sha256File === sha256Cache) { - if (!targetExists) { - debug(`copying ${cachedFile} to ${job.targetFilePath}`); - await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()); - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - } - const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath); - if (sha256File !== targetSha256) { - debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`); - await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath); - } - return false; - } else { - return true; - } - } else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) { - debug( - `The checksum file: ${sha256FilePath} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.` - ); - return false; - } else { - return true; - } - } - if (!targetExists) { - debug(`file ${job.targetFilePath} does not exist and must be downloaded`); - return true; - } - if (job.binaryTarget === nativePlatform) { - const currentVersion = await getVersion(job.targetFilePath, job.binaryName); - if (currentVersion?.includes(version) !== true) { - debug(`file ${job.targetFilePath} exists but its version is ${currentVersion} and we expect ${version}`); - return true; - } - } - return false; -} -async function getVersion(enginePath, binaryName) { - try { - if (binaryName === "libquery-engine") { - (0, import_get_platform.assertNodeAPISupported)(); - const commitHash = (0, import_chunk_AH6QHEOA.__require)(enginePath).version().commit; - return `${"libquery-engine"} ${commitHash}`; - } else { - const result = await (0, import_execa.default)(enginePath, ["--version"]); - return result.stdout; - } - } catch { - } - return void 0; -} -function getBinaryName(binaryName, binaryTarget2) { - if (binaryName === "libquery-engine") { - return `${(0, import_get_platform.getNodeAPIName)(binaryTarget2, "fs")}`; - } - const extension = binaryTarget2 === "windows" ? ".exe" : ""; - return `${binaryName}-${binaryTarget2}${extension}`; -} -async function getCachedBinaryPath({ - version, - binaryTarget: binaryTarget2, - binaryName -}) { - const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, binaryTarget2); - if (!cacheDir) { - return null; - } - const cachedTargetPath = import_path.default.join(cacheDir, binaryName); - if (!import_fs.default.existsSync(cachedTargetPath)) { - return null; - } - if (version !== "latest") { - return cachedTargetPath; - } - if (await exists(cachedTargetPath)) { - return cachedTargetPath; - } - return null; -} -async function downloadBinary(options2) { - const { version, progressCb, targetFilePath, downloadUrl } = options2; - const targetDir = import_path.default.dirname(targetFilePath); - try { - import_fs.default.accessSync(targetDir, import_fs.default.constants.W_OK); - await (0, import_fs_extra.ensureDir)(targetDir); - } catch (e) { - if (options2.failSilent || e.code !== "EACCES") { - return; - } else { - throw new Error(`Can't write to ${targetDir} please make sure you install "prisma" with the right permissions.`); - } - } - debug(`Downloading ${downloadUrl} to ${targetFilePath} ...`); - if (progressCb) { - progressCb(0); - } - const { sha256, zippedSha256 } = await (0, import_chunk_QLWYUM7O.downloadZip)(downloadUrl, targetFilePath, progressCb); - if (progressCb) { - progressCb(1); - } - (0, import_chunk_MX3HXAU2.chmodPlusX)(targetFilePath); - await saveFileToCache(options2, version, sha256, zippedSha256); -} -async function saveFileToCache(job, version, sha256, zippedSha256) { - const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, job.binaryTarget); - if (!cacheDir) { - return; - } - const cachedTargetPath = import_path.default.join(cacheDir, job.binaryName); - const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256"); - const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256"); - try { - await (0, import_chunk_FQ2BOR66.overwriteFile)(job.targetFilePath, cachedTargetPath); - if (sha256 != null) { - await import_fs.default.promises.writeFile(cachedSha256Path, sha256); - } - if (zippedSha256 != null) { - await import_fs.default.promises.writeFile(cachedSha256ZippedPath, zippedSha256); - } - } catch (e) { - debug(e); - } -} -async function maybeCopyToTmp(file) { - const dir = eval("__dirname"); - if (dir.match(vercelPkgPathRegex)) { - const targetDir = import_path.default.join(import_temp_dir.default, "prisma-binaries"); - await (0, import_fs_extra.ensureDir)(targetDir); - const target = import_path.default.join(targetDir, import_path.default.basename(file)); - const data = await import_fs.default.promises.readFile(file); - await import_fs.default.promises.writeFile(target, data); - plusX(target); - return target; - } - return file; -} -function plusX(file2) { - const s = import_fs.default.statSync(file2); - const newMode = s.mode | 64 | 8 | 1; - if (s.mode === newMode) { - return; - } - const base8 = newMode.toString(8).slice(-3); - import_fs.default.chmodSync(file2, base8); -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js deleted file mode 100644 index 243446c..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_MX3HXAU2_exports = {}; -__export(chunk_MX3HXAU2_exports, { - chmodPlusX: () => chmodPlusX -}); -module.exports = __toCommonJS(chunk_MX3HXAU2_exports); -var import_fs = __toESM(require("fs")); -function chmodPlusX(file) { - if (process.platform === "win32") return; - const s = import_fs.default.statSync(file); - const newMode = s.mode | 64 | 8 | 1; - if (s.mode === newMode) { - return; - } - const base8 = newMode.toString(8).slice(-3); - import_fs.default.chmodSync(file, base8); -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js deleted file mode 100644 index ff6fc78..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_PXQVM7NP_exports = {}; -__export(chunk_PXQVM7NP_exports, { - allEngineEnvVarsSet: () => allEngineEnvVarsSet, - bold: () => bold, - deprecatedEnvVarMap: () => deprecatedEnvVarMap, - engineEnvVarMap: () => engineEnvVarMap, - getBinaryEnvVarPath: () => getBinaryEnvVarPath, - yellow: () => yellow -}); -module.exports = __toCommonJS(chunk_PXQVM7NP_exports); -var import_debug = __toESM(require("@prisma/debug")); -var import_fs = __toESM(require("fs")); -var import_path = __toESM(require("path")); -var FORCE_COLOR; -var NODE_DISABLE_COLORS; -var NO_COLOR; -var TERM; -var isTTY = true; -if (typeof process !== "undefined") { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} -var $ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY) -}; -function init(x, y) { - let rgx = new RegExp(`\\x1b\\[${y}m`, "g"); - let open = `\x1B[${x}m`, close = `\x1B[${y}m`; - return function(txt) { - if (!$.enabled || txt == null) return txt; - return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close; - }; -} -var reset = init(0, 0); -var bold = init(1, 22); -var dim = init(2, 22); -var italic = init(3, 23); -var underline = init(4, 24); -var inverse = init(7, 27); -var hidden = init(8, 28); -var strikethrough = init(9, 29); -var black = init(30, 39); -var red = init(31, 39); -var green = init(32, 39); -var yellow = init(33, 39); -var blue = init(34, 39); -var magenta = init(35, 39); -var cyan = init(36, 39); -var white = init(37, 39); -var gray = init(90, 39); -var grey = init(90, 39); -var bgBlack = init(40, 49); -var bgRed = init(41, 49); -var bgGreen = init(42, 49); -var bgYellow = init(43, 49); -var bgBlue = init(44, 49); -var bgMagenta = init(45, 49); -var bgCyan = init(46, 49); -var bgWhite = init(47, 49); -var debug = (0, import_debug.default)("prisma:fetch-engine:env"); -var engineEnvVarMap = { - [ - "query-engine" - /* QueryEngineBinary */ - ]: "PRISMA_QUERY_ENGINE_BINARY", - [ - "libquery-engine" - /* QueryEngineLibrary */ - ]: "PRISMA_QUERY_ENGINE_LIBRARY", - [ - "schema-engine" - /* SchemaEngineBinary */ - ]: "PRISMA_SCHEMA_ENGINE_BINARY" -}; -var deprecatedEnvVarMap = { - [ - "schema-engine" - /* SchemaEngineBinary */ - ]: "PRISMA_MIGRATION_ENGINE_BINARY" -}; -function getBinaryEnvVarPath(binaryName) { - const envVar = getEnvVarToUse(binaryName); - if (process.env[envVar]) { - const envVarPath = import_path.default.resolve(process.cwd(), process.env[envVar]); - if (!import_fs.default.existsSync(envVarPath)) { - throw new Error( - `Env var ${bold(envVar)} is provided but provided path ${underline(process.env[envVar])} can't be resolved.` - ); - } - debug( - `Using env var ${bold(envVar)} for binary ${bold(binaryName)}, which points to ${underline( - process.env[envVar] - )}` - ); - return { - path: envVarPath, - fromEnvVar: envVar - }; - } - return null; -} -function getEnvVarToUse(binaryType) { - const envVar = engineEnvVarMap[binaryType]; - const deprecatedEnvVar = deprecatedEnvVarMap[binaryType]; - if (deprecatedEnvVar && process.env[deprecatedEnvVar]) { - if (process.env[envVar]) { - console.warn( - `${yellow("prisma:warn")} Both ${bold(envVar)} and ${bold(deprecatedEnvVar)} are specified, ${bold( - envVar - )} takes precedence. ${bold(deprecatedEnvVar)} is deprecated.` - ); - return envVar; - } else { - console.warn( - `${yellow("prisma:warn")} ${bold(deprecatedEnvVar)} environment variable is deprecated, please use ${bold( - envVar - )} instead` - ); - return deprecatedEnvVar; - } - } - return envVar; -} -function allEngineEnvVarsSet(binaries) { - for (const binaryType of binaries) { - if (!getBinaryEnvVarPath(binaryType)) { - return false; - } - } - return true; -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js deleted file mode 100644 index 03875a1..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +++ /dev/null @@ -1,8153 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_QLWYUM7O_exports = {}; -__export(chunk_QLWYUM7O_exports, { - downloadZip: () => downloadZip, - require_is_stream: () => require_is_stream, - require_temp_dir: () => require_temp_dir -}); -module.exports = __toCommonJS(chunk_QLWYUM7O_exports); -var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js"); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM(require("@prisma/debug")); -var import_fs = __toESM(require("fs")); -var import_http = __toESM(require("http")); -var import_https = __toESM(require("https")); -var import_zlib = __toESM(require("zlib")); -var import_stream = __toESM(require("stream")); -var import_buffer = require("buffer"); -var import_stream2 = __toESM(require("stream")); -var import_util = require("util"); -var import_buffer2 = require("buffer"); -var import_util2 = require("util"); -var import_http2 = __toESM(require("http")); -var import_url = require("url"); -var import_util3 = require("util"); -var import_net = require("net"); -var import_path = __toESM(require("path")); -var import_util4 = require("util"); -var import_zlib2 = __toESM(require("zlib")); -var require_is_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module2) { - "use strict"; - var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function"; - isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object"; - isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object"; - isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream); - isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function"; - module2.exports = isStream; - } -}); -var require_hasha = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/hasha@5.2.2/node_modules/hasha/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var crypto = (0, import_chunk_AH6QHEOA.__require)("crypto"); - var isStream = require_is_stream(); - var { Worker } = (() => { - try { - return (0, import_chunk_AH6QHEOA.__require)("worker_threads"); - } catch (_) { - return {}; - } - })(); - var worker; - var taskIdCounter = 0; - var tasks = /* @__PURE__ */ new Map(); - var recreateWorkerError = (sourceError) => { - const error = new Error(sourceError.message); - for (const [key, value] of Object.entries(sourceError)) { - if (key !== "message") { - error[key] = value; - } - } - return error; - }; - var createWorker = () => { - worker = new Worker(path2.join(__dirname, "thread.js")); - worker.on("message", (message) => { - const task = tasks.get(message.id); - tasks.delete(message.id); - if (tasks.size === 0) { - worker.unref(); - } - if (message.error === void 0) { - task.resolve(message.value); - } else { - task.reject(recreateWorkerError(message.error)); - } - }); - worker.on("error", (error) => { - throw error; - }); - }; - var taskWorker = (method, args, transferList) => new Promise((resolve, reject) => { - const id = taskIdCounter++; - tasks.set(id, { resolve, reject }); - if (worker === void 0) { - createWorker(); - } - worker.ref(); - worker.postMessage({ id, method, args }, transferList); - }); - var hasha2 = (input, options = {}) => { - let outputEncoding = options.encoding || "hex"; - if (outputEncoding === "buffer") { - outputEncoding = void 0; - } - const hash = crypto.createHash(options.algorithm || "sha512"); - const update = (buffer) => { - const inputEncoding = typeof buffer === "string" ? "utf8" : void 0; - hash.update(buffer, inputEncoding); - }; - if (Array.isArray(input)) { - input.forEach(update); - } else { - update(input); - } - return hash.digest(outputEncoding); - }; - hasha2.stream = (options = {}) => { - let outputEncoding = options.encoding || "hex"; - if (outputEncoding === "buffer") { - outputEncoding = void 0; - } - const stream = crypto.createHash(options.algorithm || "sha512"); - stream.setEncoding(outputEncoding); - return stream; - }; - hasha2.fromStream = async (stream, options = {}) => { - if (!isStream(stream)) { - throw new TypeError("Expected a stream"); - } - return new Promise((resolve, reject) => { - stream.on("error", reject).pipe(hasha2.stream(options)).on("error", reject).on("finish", function() { - resolve(this.read()); - }); - }); - }; - if (Worker === void 0) { - hasha2.fromFile = async (filePath, options) => hasha2.fromStream(fs2.createReadStream(filePath), options); - hasha2.async = async (input, options) => hasha2(input, options); - } else { - hasha2.fromFile = async (filePath, { algorithm = "sha512", encoding = "hex" } = {}) => { - const hash = await taskWorker("hashFile", [algorithm, filePath]); - if (encoding === "buffer") { - return Buffer.from(hash); - } - return Buffer.from(hash).toString(encoding); - }; - hasha2.async = async (input, { algorithm = "sha512", encoding = "hex" } = {}) => { - if (encoding === "buffer") { - encoding = void 0; - } - const hash = await taskWorker("hash", [algorithm, input]); - if (encoding === void 0) { - return Buffer.from(hash); - } - return Buffer.from(hash).toString(encoding); - }; - } - hasha2.fromFileSync = (filePath, options) => hasha2(fs2.readFileSync(filePath), options); - module2.exports = hasha2; - } -}); -var require_retry_operation = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry_operation.js"(exports, module2) { - "use strict"; - function RetryOperation(timeouts, options) { - if (typeof options === "boolean") { - options = { forever: options }; - } - this._originalTimeouts = JSON.parse(JSON.stringify(timeouts)); - this._timeouts = timeouts; - this._options = options || {}; - this._maxRetryTime = options && options.maxRetryTime || Infinity; - this._fn = null; - this._errors = []; - this._attempts = 1; - this._operationTimeout = null; - this._operationTimeoutCb = null; - this._timeout = null; - this._operationStart = null; - this._timer = null; - if (this._options.forever) { - this._cachedTimeouts = this._timeouts.slice(0); - } - } - module2.exports = RetryOperation; - RetryOperation.prototype.reset = function() { - this._attempts = 1; - this._timeouts = this._originalTimeouts.slice(0); - }; - RetryOperation.prototype.stop = function() { - if (this._timeout) { - clearTimeout(this._timeout); - } - if (this._timer) { - clearTimeout(this._timer); - } - this._timeouts = []; - this._cachedTimeouts = null; - }; - RetryOperation.prototype.retry = function(err) { - if (this._timeout) { - clearTimeout(this._timeout); - } - if (!err) { - return false; - } - var currentTime = (/* @__PURE__ */ new Date()).getTime(); - if (err && currentTime - this._operationStart >= this._maxRetryTime) { - this._errors.push(err); - this._errors.unshift(new Error("RetryOperation timeout occurred")); - return false; - } - this._errors.push(err); - var timeout = this._timeouts.shift(); - if (timeout === void 0) { - if (this._cachedTimeouts) { - this._errors.splice(0, this._errors.length - 1); - timeout = this._cachedTimeouts.slice(-1); - } else { - return false; - } - } - var self = this; - this._timer = setTimeout(function() { - self._attempts++; - if (self._operationTimeoutCb) { - self._timeout = setTimeout(function() { - self._operationTimeoutCb(self._attempts); - }, self._operationTimeout); - if (self._options.unref) { - self._timeout.unref(); - } - } - self._fn(self._attempts); - }, timeout); - if (this._options.unref) { - this._timer.unref(); - } - return true; - }; - RetryOperation.prototype.attempt = function(fn, timeoutOps) { - this._fn = fn; - if (timeoutOps) { - if (timeoutOps.timeout) { - this._operationTimeout = timeoutOps.timeout; - } - if (timeoutOps.cb) { - this._operationTimeoutCb = timeoutOps.cb; - } - } - var self = this; - if (this._operationTimeoutCb) { - this._timeout = setTimeout(function() { - self._operationTimeoutCb(); - }, self._operationTimeout); - } - this._operationStart = (/* @__PURE__ */ new Date()).getTime(); - this._fn(this._attempts); - }; - RetryOperation.prototype.try = function(fn) { - console.log("Using RetryOperation.try() is deprecated"); - this.attempt(fn); - }; - RetryOperation.prototype.start = function(fn) { - console.log("Using RetryOperation.start() is deprecated"); - this.attempt(fn); - }; - RetryOperation.prototype.start = RetryOperation.prototype.try; - RetryOperation.prototype.errors = function() { - return this._errors; - }; - RetryOperation.prototype.attempts = function() { - return this._attempts; - }; - RetryOperation.prototype.mainError = function() { - if (this._errors.length === 0) { - return null; - } - var counts = {}; - var mainError = null; - var mainErrorCount = 0; - for (var i = 0; i < this._errors.length; i++) { - var error = this._errors[i]; - var message = error.message; - var count = (counts[message] || 0) + 1; - counts[message] = count; - if (count >= mainErrorCount) { - mainError = error; - mainErrorCount = count; - } - } - return mainError; - }; - } -}); -var require_retry = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/lib/retry.js"(exports) { - "use strict"; - var RetryOperation = require_retry_operation(); - exports.operation = function(options) { - var timeouts = exports.timeouts(options); - return new RetryOperation(timeouts, { - forever: options && (options.forever || options.retries === Infinity), - unref: options && options.unref, - maxRetryTime: options && options.maxRetryTime - }); - }; - exports.timeouts = function(options) { - if (options instanceof Array) { - return [].concat(options); - } - var opts = { - retries: 10, - factor: 2, - minTimeout: 1 * 1e3, - maxTimeout: Infinity, - randomize: false - }; - for (var key in options) { - opts[key] = options[key]; - } - if (opts.minTimeout > opts.maxTimeout) { - throw new Error("minTimeout is greater than maxTimeout"); - } - var timeouts = []; - for (var i = 0; i < opts.retries; i++) { - timeouts.push(this.createTimeout(i, opts)); - } - if (options && options.forever && !timeouts.length) { - timeouts.push(this.createTimeout(i, opts)); - } - timeouts.sort(function(a, b) { - return a - b; - }); - return timeouts; - }; - exports.createTimeout = function(attempt, opts) { - var random = opts.randomize ? Math.random() + 1 : 1; - var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt)); - timeout = Math.min(timeout, opts.maxTimeout); - return timeout; - }; - exports.wrap = function(obj, options, methods) { - if (options instanceof Array) { - methods = options; - options = null; - } - if (!methods) { - methods = []; - for (var key in obj) { - if (typeof obj[key] === "function") { - methods.push(key); - } - } - } - for (var i = 0; i < methods.length; i++) { - var method = methods[i]; - var original = obj[method]; - obj[method] = function retryWrapper(original2) { - var op = exports.operation(options); - var args = Array.prototype.slice.call(arguments, 1); - var callback = args.pop(); - args.push(function(err) { - if (op.retry(err)) { - return; - } - if (err) { - arguments[0] = op.mainError(); - } - callback.apply(this, arguments); - }); - op.attempt(function() { - original2.apply(obj, args); - }); - }.bind(obj, original); - obj[method].options = options; - } - }; - } -}); -var require_retry2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/retry@0.13.1/node_modules/retry/index.js"(exports, module2) { - "use strict"; - module2.exports = require_retry(); - } -}); -var require_p_retry = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-retry@4.6.2/node_modules/p-retry/index.js"(exports, module2) { - "use strict"; - var retry2 = require_retry2(); - var networkErrorMsgs = [ - "Failed to fetch", - // Chrome - "NetworkError when attempting to fetch resource.", - // Firefox - "The Internet connection appears to be offline.", - // Safari - "Network request failed" - // `cross-fetch` - ]; - var AbortError2 = class extends Error { - constructor(message) { - super(); - if (message instanceof Error) { - this.originalError = message; - ({ message } = message); - } else { - this.originalError = new Error(message); - this.originalError.stack = this.stack; - } - this.name = "AbortError"; - this.message = message; - } - }; - var decorateErrorWithCounts = (error, attemptNumber, options) => { - const retriesLeft = options.retries - (attemptNumber - 1); - error.attemptNumber = attemptNumber; - error.retriesLeft = retriesLeft; - return error; - }; - var isNetworkError = (errorMessage) => networkErrorMsgs.includes(errorMessage); - var pRetry = (input, options) => new Promise((resolve, reject) => { - options = { - onFailedAttempt: () => { - }, - retries: 10, - ...options - }; - const operation = retry2.operation(options); - operation.attempt(async (attemptNumber) => { - try { - resolve(await input(attemptNumber)); - } catch (error) { - if (!(error instanceof Error)) { - reject(new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`)); - return; - } - if (error instanceof AbortError2) { - operation.stop(); - reject(error.originalError); - } else if (error instanceof TypeError && !isNetworkError(error.message)) { - operation.stop(); - reject(error); - } else { - decorateErrorWithCounts(error, attemptNumber, options); - try { - await options.onFailedAttempt(error); - } catch (error2) { - reject(error2); - return; - } - if (!operation.retry(error)) { - reject(operation.mainError()); - } - } - } - }); - }); - module2.exports = pRetry; - module2.exports.default = pRetry; - module2.exports.AbortError = AbortError2; - } -}); -var require_crypto_random_string = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/crypto-random-string@2.0.0/node_modules/crypto-random-string/index.js"(exports, module2) { - "use strict"; - var crypto = (0, import_chunk_AH6QHEOA.__require)("crypto"); - module2.exports = (length) => { - if (!Number.isFinite(length)) { - throw new TypeError("Expected a finite number"); - } - return crypto.randomBytes(Math.ceil(length / 2)).toString("hex").slice(0, length); - }; - } -}); -var require_unique_string = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/unique-string@2.0.0/node_modules/unique-string/index.js"(exports, module2) { - "use strict"; - var cryptoRandomString = require_crypto_random_string(); - module2.exports = () => cryptoRandomString(32); - } -}); -var require_temp_dir = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var os = (0, import_chunk_AH6QHEOA.__require)("os"); - var tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__"); - if (!global[tempDirectorySymbol]) { - Object.defineProperty(global, tempDirectorySymbol, { - value: fs2.realpathSync(os.tmpdir()) - }); - } - module2.exports = global[tempDirectorySymbol]; - } -}); -var require_array_union = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) { - "use strict"; - module2.exports = (...arguments_) => { - return [...new Set([].concat(...arguments_))]; - }; - } -}); -var require_merge2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) { - "use strict"; - var Stream3 = (0, import_chunk_AH6QHEOA.__require)("stream"); - var PassThrough3 = Stream3.PassThrough; - var slice = Array.prototype.slice; - module2.exports = merge2; - function merge2() { - const streamsQueue = []; - const args = slice.call(arguments); - let merging = false; - let options = args[args.length - 1]; - if (options && !Array.isArray(options) && options.pipe == null) { - args.pop(); - } else { - options = {}; - } - const doEnd = options.end !== false; - const doPipeError = options.pipeError === true; - if (options.objectMode == null) { - options.objectMode = true; - } - if (options.highWaterMark == null) { - options.highWaterMark = 64 * 1024; - } - const mergedStream = PassThrough3(options); - function addStream() { - for (let i = 0, len = arguments.length; i < len; i++) { - streamsQueue.push(pauseStreams(arguments[i], options)); - } - mergeStream(); - return this; - } - function mergeStream() { - if (merging) { - return; - } - merging = true; - let streams = streamsQueue.shift(); - if (!streams) { - process.nextTick(endStream); - return; - } - if (!Array.isArray(streams)) { - streams = [streams]; - } - let pipesCount = streams.length + 1; - function next() { - if (--pipesCount > 0) { - return; - } - merging = false; - mergeStream(); - } - function pipe(stream) { - function onend() { - stream.removeListener("merge2UnpipeEnd", onend); - stream.removeListener("end", onend); - if (doPipeError) { - stream.removeListener("error", onerror); - } - next(); - } - function onerror(err) { - mergedStream.emit("error", err); - } - if (stream._readableState.endEmitted) { - return next(); - } - stream.on("merge2UnpipeEnd", onend); - stream.on("end", onend); - if (doPipeError) { - stream.on("error", onerror); - } - stream.pipe(mergedStream, { end: false }); - stream.resume(); - } - for (let i = 0; i < streams.length; i++) { - pipe(streams[i]); - } - next(); - } - function endStream() { - merging = false; - mergedStream.emit("queueDrain"); - if (doEnd) { - mergedStream.end(); - } - } - mergedStream.setMaxListeners(0); - mergedStream.add = addStream; - mergedStream.on("unpipe", function(stream) { - stream.emit("merge2UnpipeEnd"); - }); - if (args.length) { - addStream.apply(null, args); - } - return mergedStream; - } - function pauseStreams(streams, options) { - if (!Array.isArray(streams)) { - if (!streams._readableState && streams.pipe) { - streams = streams.pipe(PassThrough3(options)); - } - if (!streams._readableState || !streams.pause || !streams.pipe) { - throw new Error("Only readable stream can be merged."); - } - streams.pause(); - } else { - for (let i = 0, len = streams.length; i < len; i++) { - streams[i] = pauseStreams(streams[i], options); - } - } - return streams; - } - } -}); -var require_array = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/array.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitWhen = exports.flatten = void 0; - function flatten(items) { - return items.reduce((collection, item) => [].concat(collection, item), []); - } - exports.flatten = flatten; - function splitWhen(items, predicate) { - const result = [[]]; - let groupIndex = 0; - for (const item of items) { - if (predicate(item)) { - groupIndex++; - result[groupIndex] = []; - } else { - result[groupIndex].push(item); - } - } - return result; - } - exports.splitWhen = splitWhen; - } -}); -var require_errno = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/errno.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEnoentCodeError = void 0; - function isEnoentCodeError(error) { - return error.code === "ENOENT"; - } - exports.isEnoentCodeError = isEnoentCodeError; - } -}); -var require_fs = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } - }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; - } -}); -var require_path = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; - var os = (0, import_chunk_AH6QHEOA.__require)("os"); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var IS_WINDOWS_PLATFORM = os.platform() === "win32"; - var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; - var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; - var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g; - var DOS_DEVICE_PATH_RE = /^\\\\([.?])/; - var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g; - function unixify(filepath) { - return filepath.replace(/\\/g, "/"); - } - exports.unixify = unixify; - function makeAbsolute(cwd, filepath) { - return path2.resolve(cwd, filepath); - } - exports.makeAbsolute = makeAbsolute; - function removeLeadingDotSegment(entry) { - if (entry.charAt(0) === ".") { - const secondCharactery = entry.charAt(1); - if (secondCharactery === "/" || secondCharactery === "\\") { - return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); - } - } - return entry; - } - exports.removeLeadingDotSegment = removeLeadingDotSegment; - exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; - function escapeWindowsPath(pattern) { - return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); - } - exports.escapeWindowsPath = escapeWindowsPath; - function escapePosixPath(pattern) { - return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); - } - exports.escapePosixPath = escapePosixPath; - exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; - function convertWindowsPathToPattern(filepath) { - return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/"); - } - exports.convertWindowsPathToPattern = convertWindowsPathToPattern; - function convertPosixPathToPattern(filepath) { - return escapePosixPath(filepath); - } - exports.convertPosixPathToPattern = convertPosixPathToPattern; - } -}); -var require_is_extglob = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module2) { - "use strict"; - module2.exports = function isExtglob(str) { - if (typeof str !== "string" || str === "") { - return false; - } - var match; - while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) { - if (match[2]) return true; - str = str.slice(match.index + match[0].length); - } - return false; - }; - } -}); -var require_is_glob = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module2) { - "use strict"; - var isExtglob = require_is_extglob(); - var chars = { "{": "}", "(": ")", "[": "]" }; - var strictCheck = function(str) { - if (str[0] === "!") { - return true; - } - var index = 0; - var pipeIndex = -2; - var closeSquareIndex = -2; - var closeCurlyIndex = -2; - var closeParenIndex = -2; - var backSlashIndex = -2; - while (index < str.length) { - if (str[index] === "*") { - return true; - } - if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) { - return true; - } - if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") { - if (closeSquareIndex < index) { - closeSquareIndex = str.indexOf("]", index); - } - if (closeSquareIndex > index) { - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - } - } - if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") { - closeCurlyIndex = str.indexOf("}", index); - if (closeCurlyIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { - return true; - } - } - } - if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") { - closeParenIndex = str.indexOf(")", index); - if (closeParenIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") { - if (pipeIndex < index) { - pipeIndex = str.indexOf("|", index); - } - if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") { - closeParenIndex = str.indexOf(")", pipeIndex); - if (closeParenIndex > pipeIndex) { - backSlashIndex = str.indexOf("\\", pipeIndex); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } - } - return false; - }; - var relaxedCheck = function(str) { - if (str[0] === "!") { - return true; - } - var index = 0; - while (index < str.length) { - if (/[*?{}()[\]]/.test(str[index])) { - return true; - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } - } - return false; - }; - module2.exports = function isGlob(str, options) { - if (typeof str !== "string" || str === "") { - return false; - } - if (isExtglob(str)) { - return true; - } - var check = strictCheck; - if (options && options.strict === false) { - check = relaxedCheck; - } - return check(str); - }; - } -}); -var require_glob_parent = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module2) { - "use strict"; - var isGlob = require_is_glob(); - var pathPosixDirname = (0, import_chunk_AH6QHEOA.__require)("path").posix.dirname; - var isWin32 = (0, import_chunk_AH6QHEOA.__require)("os").platform() === "win32"; - var slash = "/"; - var backslash = /\\/g; - var enclosure = /[\{\[].*[\}\]]$/; - var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; - var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; - module2.exports = function globParent(str, opts) { - var options = Object.assign({ flipBackslashes: true }, opts); - if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { - str = str.replace(backslash, slash); - } - if (enclosure.test(str)) { - str += slash; - } - str += "a"; - do { - str = pathPosixDirname(str); - } while (isGlob(str) || globby.test(str)); - return str.replace(escaped, "$1"); - }; - } -}); -var require_utils = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js"(exports) { - "use strict"; - exports.isInteger = (num) => { - if (typeof num === "number") { - return Number.isInteger(num); - } - if (typeof num === "string" && num.trim() !== "") { - return Number.isInteger(Number(num)); - } - return false; - }; - exports.find = (node, type) => node.nodes.find((node2) => node2.type === type); - exports.exceedsLimit = (min, max, step = 1, limit) => { - if (limit === false) return false; - if (!exports.isInteger(min) || !exports.isInteger(max)) return false; - return (Number(max) - Number(min)) / Number(step) >= limit; - }; - exports.escapeNode = (block, n = 0, type) => { - let node = block.nodes[n]; - if (!node) return; - if (type && node.type === type || node.type === "open" || node.type === "close") { - if (node.escaped !== true) { - node.value = "\\" + node.value; - node.escaped = true; - } - } - }; - exports.encloseBrace = (node) => { - if (node.type !== "brace") return false; - if (node.commas >> 0 + node.ranges >> 0 === 0) { - node.invalid = true; - return true; - } - return false; - }; - exports.isInvalidBrace = (block) => { - if (block.type !== "brace") return false; - if (block.invalid === true || block.dollar) return true; - if (block.commas >> 0 + block.ranges >> 0 === 0) { - block.invalid = true; - return true; - } - if (block.open !== true || block.close !== true) { - block.invalid = true; - return true; - } - return false; - }; - exports.isOpenOrClose = (node) => { - if (node.type === "open" || node.type === "close") { - return true; - } - return node.open === true || node.close === true; - }; - exports.reduce = (nodes) => nodes.reduce((acc, node) => { - if (node.type === "text") acc.push(node.value); - if (node.type === "range") node.type = "text"; - return acc; - }, []); - exports.flatten = (...args) => { - const result = []; - const flat = (arr) => { - for (let i = 0; i < arr.length; i++) { - let ele = arr[i]; - Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); - } - return result; - }; - flat(args); - return result; - }; - } -}); -var require_stringify = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js"(exports, module2) { - "use strict"; - var utils = require_utils(); - module2.exports = (ast, options = {}) => { - let stringify = (node, parent = {}) => { - let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options.escapeInvalid === true; - let output = ""; - if (node.value) { - if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { - return "\\" + node.value; - } - return node.value; - } - if (node.value) { - return node.value; - } - if (node.nodes) { - for (let child of node.nodes) { - output += stringify(child); - } - } - return output; - }; - return stringify(ast); - }; - } -}); -var require_is_number = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module2) { - "use strict"; - module2.exports = function(num) { - if (typeof num === "number") { - return num - num === 0; - } - if (typeof num === "string" && num.trim() !== "") { - return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); - } - return false; - }; - } -}); -var require_to_regex_range = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module2) { - "use strict"; - var isNumber = require_is_number(); - var toRegexRange = (min, max, options) => { - if (isNumber(min) === false) { - throw new TypeError("toRegexRange: expected the first argument to be a number"); - } - if (max === void 0 || min === max) { - return String(min); - } - if (isNumber(max) === false) { - throw new TypeError("toRegexRange: expected the second argument to be a number."); - } - let opts = { relaxZeros: true, ...options }; - if (typeof opts.strictZeros === "boolean") { - opts.relaxZeros = opts.strictZeros === false; - } - let relax = String(opts.relaxZeros); - let shorthand = String(opts.shorthand); - let capture = String(opts.capture); - let wrap = String(opts.wrap); - let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap; - if (toRegexRange.cache.hasOwnProperty(cacheKey)) { - return toRegexRange.cache[cacheKey].result; - } - let a = Math.min(min, max); - let b = Math.max(min, max); - if (Math.abs(a - b) === 1) { - let result = min + "|" + max; - if (opts.capture) { - return `(${result})`; - } - if (opts.wrap === false) { - return result; - } - return `(?:${result})`; - } - let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a, b }; - let positives = []; - let negatives = []; - if (isPadded) { - state.isPadded = isPadded; - state.maxLen = String(state.max).length; - } - if (a < 0) { - let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a), state, opts); - a = state.a = 0; - } - if (b >= 0) { - positives = splitToPatterns(a, b, state, opts); - } - state.negatives = negatives; - state.positives = positives; - state.result = collatePatterns(negatives, positives, opts); - if (opts.capture === true) { - state.result = `(${state.result})`; - } else if (opts.wrap !== false && positives.length + negatives.length > 1) { - state.result = `(?:${state.result})`; - } - toRegexRange.cache[cacheKey] = state; - return state.result; - }; - function collatePatterns(neg, pos, options) { - let onlyNegative = filterPatterns(neg, pos, "-", false, options) || []; - let onlyPositive = filterPatterns(pos, neg, "", false, options) || []; - let intersected = filterPatterns(neg, pos, "-?", true, options) || []; - let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); - return subpatterns.join("|"); - } - function splitToRanges(min, max) { - let nines = 1; - let zeros = 1; - let stop = countNines(min, nines); - let stops = /* @__PURE__ */ new Set([max]); - while (min <= stop && stop <= max) { - stops.add(stop); - nines += 1; - stop = countNines(min, nines); - } - stop = countZeros(max + 1, zeros) - 1; - while (min < stop && stop <= max) { - stops.add(stop); - zeros += 1; - stop = countZeros(max + 1, zeros) - 1; - } - stops = [...stops]; - stops.sort(compare); - return stops; - } - function rangeToPattern(start, stop, options) { - if (start === stop) { - return { pattern: start, count: [], digits: 0 }; - } - let zipped = zip(start, stop); - let digits = zipped.length; - let pattern = ""; - let count = 0; - for (let i = 0; i < digits; i++) { - let [startDigit, stopDigit] = zipped[i]; - if (startDigit === stopDigit) { - pattern += startDigit; - } else if (startDigit !== "0" || stopDigit !== "9") { - pattern += toCharacterClass(startDigit, stopDigit, options); - } else { - count++; - } - } - if (count) { - pattern += options.shorthand === true ? "\\d" : "[0-9]"; - } - return { pattern, count: [count], digits }; - } - function splitToPatterns(min, max, tok, options) { - let ranges = splitToRanges(min, max); - let tokens = []; - let start = min; - let prev; - for (let i = 0; i < ranges.length; i++) { - let max2 = ranges[i]; - let obj = rangeToPattern(String(start), String(max2), options); - let zeros = ""; - if (!tok.isPadded && prev && prev.pattern === obj.pattern) { - if (prev.count.length > 1) { - prev.count.pop(); - } - prev.count.push(obj.count[0]); - prev.string = prev.pattern + toQuantifier(prev.count); - start = max2 + 1; - continue; - } - if (tok.isPadded) { - zeros = padZeros(max2, tok, options); - } - obj.string = zeros + obj.pattern + toQuantifier(obj.count); - tokens.push(obj); - start = max2 + 1; - prev = obj; - } - return tokens; - } - function filterPatterns(arr, comparison, prefix, intersection, options) { - let result = []; - for (let ele of arr) { - let { string } = ele; - if (!intersection && !contains(comparison, "string", string)) { - result.push(prefix + string); - } - if (intersection && contains(comparison, "string", string)) { - result.push(prefix + string); - } - } - return result; - } - function zip(a, b) { - let arr = []; - for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]); - return arr; - } - function compare(a, b) { - return a > b ? 1 : b > a ? -1 : 0; - } - function contains(arr, key, val) { - return arr.some((ele) => ele[key] === val); - } - function countNines(min, len) { - return Number(String(min).slice(0, -len) + "9".repeat(len)); - } - function countZeros(integer, zeros) { - return integer - integer % Math.pow(10, zeros); - } - function toQuantifier(digits) { - let [start = 0, stop = ""] = digits; - if (stop || start > 1) { - return `{${start + (stop ? "," + stop : "")}}`; - } - return ""; - } - function toCharacterClass(a, b, options) { - return `[${a}${b - a === 1 ? "" : "-"}${b}]`; - } - function hasPadding(str) { - return /^-?(0+)\d/.test(str); - } - function padZeros(value, tok, options) { - if (!tok.isPadded) { - return value; - } - let diff = Math.abs(tok.maxLen - String(value).length); - let relax = options.relaxZeros !== false; - switch (diff) { - case 0: - return ""; - case 1: - return relax ? "0?" : "0"; - case 2: - return relax ? "0{0,2}" : "00"; - default: { - return relax ? `0{0,${diff}}` : `0{${diff}}`; - } - } - } - toRegexRange.cache = {}; - toRegexRange.clearCache = () => toRegexRange.cache = {}; - module2.exports = toRegexRange; - } -}); -var require_fill_range = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module2) { - "use strict"; - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - var toRegexRange = require_to_regex_range(); - var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - var transform = (toNumber) => { - return (value) => toNumber === true ? Number(value) : String(value); - }; - var isValidValue = (value) => { - return typeof value === "number" || typeof value === "string" && value !== ""; - }; - var isNumber = (num) => Number.isInteger(+num); - var zeros = (input) => { - let value = `${input}`; - let index = -1; - if (value[0] === "-") value = value.slice(1); - if (value === "0") return false; - while (value[++index] === "0") ; - return index > 0; - }; - var stringify = (start, end, options) => { - if (typeof start === "string" || typeof end === "string") { - return true; - } - return options.stringify === true; - }; - var pad = (input, maxLength, toNumber) => { - if (maxLength > 0) { - let dash = input[0] === "-" ? "-" : ""; - if (dash) input = input.slice(1); - input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0"); - } - if (toNumber === false) { - return String(input); - } - return input; - }; - var toMaxLen = (input, maxLength) => { - let negative = input[0] === "-" ? "-" : ""; - if (negative) { - input = input.slice(1); - maxLength--; - } - while (input.length < maxLength) input = "0" + input; - return negative ? "-" + input : input; - }; - var toSequence = (parts, options, maxLen) => { - parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - let prefix = options.capture ? "" : "?:"; - let positives = ""; - let negatives = ""; - let result; - if (parts.positives.length) { - positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|"); - } - if (parts.negatives.length) { - negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`; - } - if (positives && negatives) { - result = `${positives}|${negatives}`; - } else { - result = positives || negatives; - } - if (options.wrap) { - return `(${prefix}${result})`; - } - return result; - }; - var toRange = (a, b, isNumbers, options) => { - if (isNumbers) { - return toRegexRange(a, b, { wrap: false, ...options }); - } - let start = String.fromCharCode(a); - if (a === b) return start; - let stop = String.fromCharCode(b); - return `[${start}-${stop}]`; - }; - var toRegex = (start, end, options) => { - if (Array.isArray(start)) { - let wrap = options.wrap === true; - let prefix = options.capture ? "" : "?:"; - return wrap ? `(${prefix}${start.join("|")})` : start.join("|"); - } - return toRegexRange(start, end, options); - }; - var rangeError = (...args) => { - return new RangeError("Invalid range arguments: " + util.inspect(...args)); - }; - var invalidRange = (start, end, options) => { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - }; - var invalidStep = (step, options) => { - if (options.strictRanges === true) { - throw new TypeError(`Expected step "${step}" to be a number`); - } - return []; - }; - var fillNumbers = (start, end, step = 1, options = {}) => { - let a = Number(start); - let b = Number(end); - if (!Number.isInteger(a) || !Number.isInteger(b)) { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - } - if (a === 0) a = 0; - if (b === 0) b = 0; - let descending = a > b; - let startString = String(start); - let endString = String(end); - let stepString = String(step); - step = Math.max(Math.abs(step), 1); - let padded = zeros(startString) || zeros(endString) || zeros(stepString); - let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options) === false; - let format = options.transform || transform(toNumber); - if (options.toRegex && step === 1) { - return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); - } - let parts = { negatives: [], positives: [] }; - let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - if (options.toRegex === true && step > 1) { - push(a); - } else { - range.push(pad(format(a, index), maxLen, toNumber)); - } - a = descending ? a - step : a + step; - index++; - } - if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options }); - } - return range; - }; - var fillLetters = (start, end, step = 1, options = {}) => { - if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) { - return invalidRange(start, end, options); - } - let format = options.transform || ((val) => String.fromCharCode(val)); - let a = `${start}`.charCodeAt(0); - let b = `${end}`.charCodeAt(0); - let descending = a > b; - let min = Math.min(a, b); - let max = Math.max(a, b); - if (options.toRegex && step === 1) { - return toRange(min, max, false, options); - } - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - range.push(format(a, index)); - a = descending ? a - step : a + step; - index++; - } - if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); - } - return range; - }; - var fill = (start, end, step, options = {}) => { - if (end == null && isValidValue(start)) { - return [start]; - } - if (!isValidValue(start) || !isValidValue(end)) { - return invalidRange(start, end, options); - } - if (typeof step === "function") { - return fill(start, end, 1, { transform: step }); - } - if (isObject(step)) { - return fill(start, end, 0, step); - } - let opts = { ...options }; - if (opts.capture === true) opts.wrap = true; - step = step || opts.step || 1; - if (!isNumber(step)) { - if (step != null && !isObject(step)) return invalidStep(step, opts); - return fill(start, end, 1, step); - } - if (isNumber(start) && isNumber(end)) { - return fillNumbers(start, end, step, opts); - } - return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); - }; - module2.exports = fill; - } -}); -var require_compile = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js"(exports, module2) { - "use strict"; - var fill = require_fill_range(); - var utils = require_utils(); - var compile = (ast, options = {}) => { - let walk = (node, parent = {}) => { - let invalidBlock = utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options.escapeInvalid === true; - let invalid = invalidBlock === true || invalidNode === true; - let prefix = options.escapeInvalid === true ? "\\" : ""; - let output = ""; - if (node.isOpen === true) { - return prefix + node.value; - } - if (node.isClose === true) { - return prefix + node.value; - } - if (node.type === "open") { - return invalid ? prefix + node.value : "("; - } - if (node.type === "close") { - return invalid ? prefix + node.value : ")"; - } - if (node.type === "comma") { - return node.prev.type === "comma" ? "" : invalid ? node.value : "|"; - } - if (node.value) { - return node.value; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - let range = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; - } - } - if (node.nodes) { - for (let child of node.nodes) { - output += walk(child, node); - } - } - return output; - }; - return walk(ast); - }; - module2.exports = compile; - } -}); -var require_expand = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js"(exports, module2) { - "use strict"; - var fill = require_fill_range(); - var stringify = require_stringify(); - var utils = require_utils(); - var append = (queue = "", stash = "", enclose = false) => { - let result = []; - queue = [].concat(queue); - stash = [].concat(stash); - if (!stash.length) return queue; - if (!queue.length) { - return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash; - } - for (let item of queue) { - if (Array.isArray(item)) { - for (let value of item) { - result.push(append(value, stash, enclose)); - } - } else { - for (let ele of stash) { - if (enclose === true && typeof ele === "string") ele = `{${ele}}`; - result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); - } - } - } - return utils.flatten(result); - }; - var expand = (ast, options = {}) => { - let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit; - let walk = (node, parent = {}) => { - node.queue = []; - let p = parent; - let q = parent.queue; - while (p.type !== "brace" && p.type !== "root" && p.parent) { - p = p.parent; - q = p.queue; - } - if (node.invalid || node.dollar) { - q.push(append(q.pop(), stringify(node, options))); - return; - } - if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { - q.push(append(q.pop(), ["{}"])); - return; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - if (utils.exceedsLimit(...args, options.step, rangeLimit)) { - throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); - } - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); - } - q.push(append(q.pop(), range)); - node.nodes = []; - return; - } - let enclose = utils.encloseBrace(node); - let queue = node.queue; - let block = node; - while (block.type !== "brace" && block.type !== "root" && block.parent) { - block = block.parent; - queue = block.queue; - } - for (let i = 0; i < node.nodes.length; i++) { - let child = node.nodes[i]; - if (child.type === "comma" && node.type === "brace") { - if (i === 1) queue.push(""); - queue.push(""); - continue; - } - if (child.type === "close") { - q.push(append(q.pop(), queue, enclose)); - continue; - } - if (child.value && child.type !== "open") { - queue.push(append(queue.pop(), child.value)); - continue; - } - if (child.nodes) { - walk(child, node); - } - } - return queue; - }; - return utils.flatten(walk(ast)); - }; - module2.exports = expand; - } -}); -var require_constants = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js"(exports, module2) { - "use strict"; - module2.exports = { - MAX_LENGTH: 1024 * 64, - // Digits - CHAR_0: "0", - /* 0 */ - CHAR_9: "9", - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: "A", - /* A */ - CHAR_LOWERCASE_A: "a", - /* a */ - CHAR_UPPERCASE_Z: "Z", - /* Z */ - CHAR_LOWERCASE_Z: "z", - /* z */ - CHAR_LEFT_PARENTHESES: "(", - /* ( */ - CHAR_RIGHT_PARENTHESES: ")", - /* ) */ - CHAR_ASTERISK: "*", - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: "&", - /* & */ - CHAR_AT: "@", - /* @ */ - CHAR_BACKSLASH: "\\", - /* \ */ - CHAR_BACKTICK: "`", - /* ` */ - CHAR_CARRIAGE_RETURN: "\r", - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: "^", - /* ^ */ - CHAR_COLON: ":", - /* : */ - CHAR_COMMA: ",", - /* , */ - CHAR_DOLLAR: "$", - /* . */ - CHAR_DOT: ".", - /* . */ - CHAR_DOUBLE_QUOTE: '"', - /* " */ - CHAR_EQUAL: "=", - /* = */ - CHAR_EXCLAMATION_MARK: "!", - /* ! */ - CHAR_FORM_FEED: "\f", - /* \f */ - CHAR_FORWARD_SLASH: "/", - /* / */ - CHAR_HASH: "#", - /* # */ - CHAR_HYPHEN_MINUS: "-", - /* - */ - CHAR_LEFT_ANGLE_BRACKET: "<", - /* < */ - CHAR_LEFT_CURLY_BRACE: "{", - /* { */ - CHAR_LEFT_SQUARE_BRACKET: "[", - /* [ */ - CHAR_LINE_FEED: "\n", - /* \n */ - CHAR_NO_BREAK_SPACE: "\xA0", - /* \u00A0 */ - CHAR_PERCENT: "%", - /* % */ - CHAR_PLUS: "+", - /* + */ - CHAR_QUESTION_MARK: "?", - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: ">", - /* > */ - CHAR_RIGHT_CURLY_BRACE: "}", - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: "]", - /* ] */ - CHAR_SEMICOLON: ";", - /* ; */ - CHAR_SINGLE_QUOTE: "'", - /* ' */ - CHAR_SPACE: " ", - /* */ - CHAR_TAB: " ", - /* \t */ - CHAR_UNDERSCORE: "_", - /* _ */ - CHAR_VERTICAL_LINE: "|", - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" - /* \uFEFF */ - }; - } -}); -var require_parse = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports, module2) { - "use strict"; - var stringify = require_stringify(); - var { - MAX_LENGTH, - CHAR_BACKSLASH, - /* \ */ - CHAR_BACKTICK, - /* ` */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_RIGHT_SQUARE_BRACKET, - /* ] */ - CHAR_DOUBLE_QUOTE, - /* " */ - CHAR_SINGLE_QUOTE, - /* ' */ - CHAR_NO_BREAK_SPACE, - CHAR_ZERO_WIDTH_NOBREAK_SPACE - } = require_constants(); - var parse = (input, options = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - let opts = options || {}; - let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - if (input.length > max) { - throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); - } - let ast = { type: "root", input, nodes: [] }; - let stack = [ast]; - let block = ast; - let prev = ast; - let brackets = 0; - let length = input.length; - let index = 0; - let depth = 0; - let value; - let memo = {}; - const advance = () => input[index++]; - const push = (node) => { - if (node.type === "text" && prev.type === "dot") { - prev.type = "text"; - } - if (prev && prev.type === "text" && node.type === "text") { - prev.value += node.value; - return; - } - block.nodes.push(node); - node.parent = block; - node.prev = prev; - prev = node; - return node; - }; - push({ type: "bos" }); - while (index < length) { - block = stack[stack.length - 1]; - value = advance(); - if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { - continue; - } - if (value === CHAR_BACKSLASH) { - push({ type: "text", value: (options.keepEscaping ? value : "") + advance() }); - continue; - } - if (value === CHAR_RIGHT_SQUARE_BRACKET) { - push({ type: "text", value: "\\" + value }); - continue; - } - if (value === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - let closed = true; - let next; - while (index < length && (next = advance())) { - value += next; - if (next === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - continue; - } - if (next === CHAR_BACKSLASH) { - value += advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - brackets--; - if (brackets === 0) { - break; - } - } - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_PARENTHESES) { - block = push({ type: "paren", nodes: [] }); - stack.push(block); - push({ type: "text", value }); - continue; - } - if (value === CHAR_RIGHT_PARENTHESES) { - if (block.type !== "paren") { - push({ type: "text", value }); - continue; - } - block = stack.pop(); - push({ type: "text", value }); - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { - let open = value; - let next; - if (options.keepQuotes !== true) { - value = ""; - } - while (index < length && (next = advance())) { - if (next === CHAR_BACKSLASH) { - value += next + advance(); - continue; - } - if (next === open) { - if (options.keepQuotes === true) value += next; - break; - } - value += next; - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_CURLY_BRACE) { - depth++; - let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true; - let brace = { - type: "brace", - open: true, - close: false, - dollar, - depth, - commas: 0, - ranges: 0, - nodes: [] - }; - block = push(brace); - stack.push(block); - push({ type: "open", value }); - continue; - } - if (value === CHAR_RIGHT_CURLY_BRACE) { - if (block.type !== "brace") { - push({ type: "text", value }); - continue; - } - let type = "close"; - block = stack.pop(); - block.close = true; - push({ type, value }); - depth--; - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_COMMA && depth > 0) { - if (block.ranges > 0) { - block.ranges = 0; - let open = block.nodes.shift(); - block.nodes = [open, { type: "text", value: stringify(block) }]; - } - push({ type: "comma", value }); - block.commas++; - continue; - } - if (value === CHAR_DOT && depth > 0 && block.commas === 0) { - let siblings = block.nodes; - if (depth === 0 || siblings.length === 0) { - push({ type: "text", value }); - continue; - } - if (prev.type === "dot") { - block.range = []; - prev.value += value; - prev.type = "range"; - if (block.nodes.length !== 3 && block.nodes.length !== 5) { - block.invalid = true; - block.ranges = 0; - prev.type = "text"; - continue; - } - block.ranges++; - block.args = []; - continue; - } - if (prev.type === "range") { - siblings.pop(); - let before = siblings[siblings.length - 1]; - before.value += prev.value + value; - prev = before; - block.ranges--; - continue; - } - push({ type: "dot", value }); - continue; - } - push({ type: "text", value }); - } - do { - block = stack.pop(); - if (block.type !== "root") { - block.nodes.forEach((node) => { - if (!node.nodes) { - if (node.type === "open") node.isOpen = true; - if (node.type === "close") node.isClose = true; - if (!node.nodes) node.type = "text"; - node.invalid = true; - } - }); - let parent = stack[stack.length - 1]; - let index2 = parent.nodes.indexOf(block); - parent.nodes.splice(index2, 1, ...block.nodes); - } - } while (stack.length > 0); - push({ type: "eos" }); - return ast; - }; - module2.exports = parse; - } -}); -var require_braces = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js"(exports, module2) { - "use strict"; - var stringify = require_stringify(); - var compile = require_compile(); - var expand = require_expand(); - var parse = require_parse(); - var braces = (input, options = {}) => { - let output = []; - if (Array.isArray(input)) { - for (let pattern of input) { - let result = braces.create(pattern, options); - if (Array.isArray(result)) { - output.push(...result); - } else { - output.push(result); - } - } - } else { - output = [].concat(braces.create(input, options)); - } - if (options && options.expand === true && options.nodupes === true) { - output = [...new Set(output)]; - } - return output; - }; - braces.parse = (input, options = {}) => parse(input, options); - braces.stringify = (input, options = {}) => { - if (typeof input === "string") { - return stringify(braces.parse(input, options), options); - } - return stringify(input, options); - }; - braces.compile = (input, options = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options); - } - return compile(input, options); - }; - braces.expand = (input, options = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options); - } - let result = expand(input, options); - if (options.noempty === true) { - result = result.filter(Boolean); - } - if (options.nodupes === true) { - result = [...new Set(result)]; - } - return result; - }; - braces.create = (input, options = {}) => { - if (input === "" || input.length < 3) { - return [input]; - } - return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options); - }; - module2.exports = braces; - } -}); -var require_constants2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var WIN_SLASH = "\\\\/"; - var WIN_NO_SLASH = `[^${WIN_SLASH}]`; - var DOT_LITERAL = "\\."; - var PLUS_LITERAL = "\\+"; - var QMARK_LITERAL = "\\?"; - var SLASH_LITERAL = "\\/"; - var ONE_CHAR = "(?=.)"; - var QMARK = "[^/]"; - var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; - var START_ANCHOR = `(?:^|${SLASH_LITERAL})`; - var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; - var NO_DOT = `(?!${DOT_LITERAL})`; - var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; - var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; - var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; - var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; - var STAR = `${QMARK}*?`; - var POSIX_CHARS = { - DOT_LITERAL, - PLUS_LITERAL, - QMARK_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - QMARK, - END_ANCHOR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK_NO_DOT, - STAR, - START_ANCHOR - }; - var WINDOWS_CHARS = { - ...POSIX_CHARS, - SLASH_LITERAL: `[${WIN_SLASH}]`, - QMARK: WIN_NO_SLASH, - STAR: `${WIN_NO_SLASH}*?`, - DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, - NO_DOT: `(?!${DOT_LITERAL})`, - NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, - NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - QMARK_NO_DOT: `[^.${WIN_SLASH}]`, - START_ANCHOR: `(?:^|[${WIN_SLASH}])`, - END_ANCHOR: `(?:[${WIN_SLASH}]|$)` - }; - var POSIX_REGEX_SOURCE = { - alnum: "a-zA-Z0-9", - alpha: "a-zA-Z", - ascii: "\\x00-\\x7F", - blank: " \\t", - cntrl: "\\x00-\\x1F\\x7F", - digit: "0-9", - graph: "\\x21-\\x7E", - lower: "a-z", - print: "\\x20-\\x7E ", - punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", - space: " \\t\\r\\n\\v\\f", - upper: "A-Z", - word: "A-Za-z0-9_", - xdigit: "A-Fa-f0-9" - }; - module2.exports = { - MAX_LENGTH: 1024 * 64, - POSIX_REGEX_SOURCE, - // regular expressions - REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, - REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, - REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, - REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, - REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, - REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, - // Replace globs with equivalent patterns to reduce parsing time. - REPLACEMENTS: { - "***": "*", - "**/**": "**", - "**/**/**": "**" - }, - // Digits - CHAR_0: 48, - /* 0 */ - CHAR_9: 57, - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: 65, - /* A */ - CHAR_LOWERCASE_A: 97, - /* a */ - CHAR_UPPERCASE_Z: 90, - /* Z */ - CHAR_LOWERCASE_Z: 122, - /* z */ - CHAR_LEFT_PARENTHESES: 40, - /* ( */ - CHAR_RIGHT_PARENTHESES: 41, - /* ) */ - CHAR_ASTERISK: 42, - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: 38, - /* & */ - CHAR_AT: 64, - /* @ */ - CHAR_BACKWARD_SLASH: 92, - /* \ */ - CHAR_CARRIAGE_RETURN: 13, - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: 94, - /* ^ */ - CHAR_COLON: 58, - /* : */ - CHAR_COMMA: 44, - /* , */ - CHAR_DOT: 46, - /* . */ - CHAR_DOUBLE_QUOTE: 34, - /* " */ - CHAR_EQUAL: 61, - /* = */ - CHAR_EXCLAMATION_MARK: 33, - /* ! */ - CHAR_FORM_FEED: 12, - /* \f */ - CHAR_FORWARD_SLASH: 47, - /* / */ - CHAR_GRAVE_ACCENT: 96, - /* ` */ - CHAR_HASH: 35, - /* # */ - CHAR_HYPHEN_MINUS: 45, - /* - */ - CHAR_LEFT_ANGLE_BRACKET: 60, - /* < */ - CHAR_LEFT_CURLY_BRACE: 123, - /* { */ - CHAR_LEFT_SQUARE_BRACKET: 91, - /* [ */ - CHAR_LINE_FEED: 10, - /* \n */ - CHAR_NO_BREAK_SPACE: 160, - /* \u00A0 */ - CHAR_PERCENT: 37, - /* % */ - CHAR_PLUS: 43, - /* + */ - CHAR_QUESTION_MARK: 63, - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: 62, - /* > */ - CHAR_RIGHT_CURLY_BRACE: 125, - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: 93, - /* ] */ - CHAR_SEMICOLON: 59, - /* ; */ - CHAR_SINGLE_QUOTE: 39, - /* ' */ - CHAR_SPACE: 32, - /* */ - CHAR_TAB: 9, - /* \t */ - CHAR_UNDERSCORE: 95, - /* _ */ - CHAR_VERTICAL_LINE: 124, - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, - /* \uFEFF */ - SEP: path2.sep, - /** - * Create EXTGLOB_CHARS - */ - extglobChars(chars) { - return { - "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` }, - "?": { type: "qmark", open: "(?:", close: ")?" }, - "+": { type: "plus", open: "(?:", close: ")+" }, - "*": { type: "star", open: "(?:", close: ")*" }, - "@": { type: "at", open: "(?:", close: ")" } - }; - }, - /** - * Create GLOB_CHARS - */ - globChars(win32) { - return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; - } - }; - } -}); -var require_utils2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var win32 = process.platform === "win32"; - var { - REGEX_BACKSLASH, - REGEX_REMOVE_BACKSLASH, - REGEX_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_GLOBAL - } = require_constants2(); - exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str); - exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str); - exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1"); - exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/"); - exports.removeBackslashes = (str) => { - return str.replace(REGEX_REMOVE_BACKSLASH, (match) => { - return match === "\\" ? "" : match; - }); - }; - exports.supportsLookbehinds = () => { - const segs = process.version.slice(1).split(".").map(Number); - if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) { - return true; - } - return false; - }; - exports.isWindows = (options) => { - if (options && typeof options.windows === "boolean") { - return options.windows; - } - return win32 === true || path2.sep === "\\"; - }; - exports.escapeLast = (input, char, lastIdx) => { - const idx = input.lastIndexOf(char, lastIdx); - if (idx === -1) return input; - if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1); - return `${input.slice(0, idx)}\\${input.slice(idx)}`; - }; - exports.removePrefix = (input, state = {}) => { - let output = input; - if (output.startsWith("./")) { - output = output.slice(2); - state.prefix = "./"; - } - return output; - }; - exports.wrapOutput = (input, state = {}, options = {}) => { - const prepend = options.contains ? "" : "^"; - const append = options.contains ? "" : "$"; - let output = `${prepend}(?:${input})${append}`; - if (state.negated === true) { - output = `(?:^(?!${output}).*$)`; - } - return output; - }; - } -}); -var require_scan = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module2) { - "use strict"; - var utils = require_utils2(); - var { - CHAR_ASTERISK, - /* * */ - CHAR_AT, - /* @ */ - CHAR_BACKWARD_SLASH, - /* \ */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_EXCLAMATION_MARK, - /* ! */ - CHAR_FORWARD_SLASH, - /* / */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_PLUS, - /* + */ - CHAR_QUESTION_MARK, - /* ? */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_RIGHT_SQUARE_BRACKET - /* ] */ - } = require_constants2(); - var isPathSeparator = (code) => { - return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; - }; - var depth = (token) => { - if (token.isPrefix !== true) { - token.depth = token.isGlobstar ? Infinity : 1; - } - }; - var scan = (input, options) => { - const opts = options || {}; - const length = input.length - 1; - const scanToEnd = opts.parts === true || opts.scanToEnd === true; - const slashes = []; - const tokens = []; - const parts = []; - let str = input; - let index = -1; - let start = 0; - let lastIndex = 0; - let isBrace = false; - let isBracket = false; - let isGlob = false; - let isExtglob = false; - let isGlobstar = false; - let braceEscaped = false; - let backslashes = false; - let negated = false; - let negatedExtglob = false; - let finished = false; - let braces = 0; - let prev; - let code; - let token = { value: "", depth: 0, isGlob: false }; - const eos = () => index >= length; - const peek = () => str.charCodeAt(index + 1); - const advance = () => { - prev = code; - return str.charCodeAt(++index); - }; - while (index < length) { - code = advance(); - let next; - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - if (code === CHAR_LEFT_CURLY_BRACE) { - braceEscaped = true; - } - continue; - } - if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { - braces++; - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (code === CHAR_LEFT_CURLY_BRACE) { - braces++; - continue; - } - if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (braceEscaped !== true && code === CHAR_COMMA) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_RIGHT_CURLY_BRACE) { - braces--; - if (braces === 0) { - braceEscaped = false; - isBrace = token.isBrace = true; - finished = true; - break; - } - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_FORWARD_SLASH) { - slashes.push(index); - tokens.push(token); - token = { value: "", depth: 0, isGlob: false }; - if (finished === true) continue; - if (prev === CHAR_DOT && index === start + 1) { - start += 2; - continue; - } - lastIndex = index + 1; - continue; - } - if (opts.noext !== true) { - const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK; - if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - isExtglob = token.isExtglob = true; - finished = true; - if (code === CHAR_EXCLAMATION_MARK && index === start) { - negatedExtglob = true; - } - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - isGlob = token.isGlob = true; - finished = true; - break; - } - } - continue; - } - break; - } - } - if (code === CHAR_ASTERISK) { - if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_QUESTION_MARK) { - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_LEFT_SQUARE_BRACKET) { - while (eos() !== true && (next = advance())) { - if (next === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - isBracket = token.isBracket = true; - isGlob = token.isGlob = true; - finished = true; - break; - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { - negated = token.negated = true; - start++; - continue; - } - if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_LEFT_PARENTHESES) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - finished = true; - break; - } - } - continue; - } - break; - } - if (isGlob === true) { - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - } - if (opts.noext === true) { - isExtglob = false; - isGlob = false; - } - let base = str; - let prefix = ""; - let glob = ""; - if (start > 0) { - prefix = str.slice(0, start); - str = str.slice(start); - lastIndex -= start; - } - if (base && isGlob === true && lastIndex > 0) { - base = str.slice(0, lastIndex); - glob = str.slice(lastIndex); - } else if (isGlob === true) { - base = ""; - glob = str; - } else { - base = str; - } - if (base && base !== "" && base !== "/" && base !== str) { - if (isPathSeparator(base.charCodeAt(base.length - 1))) { - base = base.slice(0, -1); - } - } - if (opts.unescape === true) { - if (glob) glob = utils.removeBackslashes(glob); - if (base && backslashes === true) { - base = utils.removeBackslashes(base); - } - } - const state = { - prefix, - input, - start, - base, - glob, - isBrace, - isBracket, - isGlob, - isExtglob, - isGlobstar, - negated, - negatedExtglob - }; - if (opts.tokens === true) { - state.maxDepth = 0; - if (!isPathSeparator(code)) { - tokens.push(token); - } - state.tokens = tokens; - } - if (opts.parts === true || opts.tokens === true) { - let prevIndex; - for (let idx = 0; idx < slashes.length; idx++) { - const n = prevIndex ? prevIndex + 1 : start; - const i = slashes[idx]; - const value = input.slice(n, i); - if (opts.tokens) { - if (idx === 0 && start !== 0) { - tokens[idx].isPrefix = true; - tokens[idx].value = prefix; - } else { - tokens[idx].value = value; - } - depth(tokens[idx]); - state.maxDepth += tokens[idx].depth; - } - if (idx !== 0 || value !== "") { - parts.push(value); - } - prevIndex = i; - } - if (prevIndex && prevIndex + 1 < input.length) { - const value = input.slice(prevIndex + 1); - parts.push(value); - if (opts.tokens) { - tokens[tokens.length - 1].value = value; - depth(tokens[tokens.length - 1]); - state.maxDepth += tokens[tokens.length - 1].depth; - } - } - state.slashes = slashes; - state.parts = parts; - } - return state; - }; - module2.exports = scan; - } -}); -var require_parse2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) { - "use strict"; - var constants = require_constants2(); - var utils = require_utils2(); - var { - MAX_LENGTH, - POSIX_REGEX_SOURCE, - REGEX_NON_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_BACKREF, - REPLACEMENTS - } = constants; - var expandRange = (args, options) => { - if (typeof options.expandRange === "function") { - return options.expandRange(...args, options); - } - args.sort(); - const value = `[${args.join("-")}]`; - try { - new RegExp(value); - } catch (ex) { - return args.map((v) => utils.escapeRegex(v)).join(".."); - } - return value; - }; - var syntaxError = (type, char) => { - return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; - }; - var parse = (input, options) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - input = REPLACEMENTS[input] || input; - const opts = { ...options }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - let len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - const bos = { type: "bos", value: "", output: opts.prepend || "" }; - const tokens = [bos]; - const capture = opts.capture ? "" : "?:"; - const win32 = utils.isWindows(options); - const PLATFORM_CHARS = constants.globChars(win32); - const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS); - const { - DOT_LITERAL, - PLUS_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK, - QMARK_NO_DOT, - STAR, - START_ANCHOR - } = PLATFORM_CHARS; - const globstar = (opts2) => { - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const nodot = opts.dot ? "" : NO_DOT; - const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; - let star = opts.bash === true ? globstar(opts) : STAR; - if (opts.capture) { - star = `(${star})`; - } - if (typeof opts.noext === "boolean") { - opts.noextglob = opts.noext; - } - const state = { - input, - index: -1, - start: 0, - dot: opts.dot === true, - consumed: "", - output: "", - prefix: "", - backtrack: false, - negated: false, - brackets: 0, - braces: 0, - parens: 0, - quotes: 0, - globstar: false, - tokens - }; - input = utils.removePrefix(input, state); - len = input.length; - const extglobs = []; - const braces = []; - const stack = []; - let prev = bos; - let value; - const eos = () => state.index === len - 1; - const peek = state.peek = (n = 1) => input[state.index + n]; - const advance = state.advance = () => input[++state.index] || ""; - const remaining = () => input.slice(state.index + 1); - const consume = (value2 = "", num = 0) => { - state.consumed += value2; - state.index += num; - }; - const append = (token) => { - state.output += token.output != null ? token.output : token.value; - consume(token.value); - }; - const negate = () => { - let count = 1; - while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) { - advance(); - state.start++; - count++; - } - if (count % 2 === 0) { - return false; - } - state.negated = true; - state.start++; - return true; - }; - const increment = (type) => { - state[type]++; - stack.push(type); - }; - const decrement = (type) => { - state[type]--; - stack.pop(); - }; - const push = (tok) => { - if (prev.type === "globstar") { - const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"); - const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren"); - if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) { - state.output = state.output.slice(0, -prev.output.length); - prev.type = "star"; - prev.value = "*"; - prev.output = star; - state.output += prev.output; - } - } - if (extglobs.length && tok.type !== "paren") { - extglobs[extglobs.length - 1].inner += tok.value; - } - if (tok.value || tok.output) append(tok); - if (prev && prev.type === "text" && tok.type === "text") { - prev.value += tok.value; - prev.output = (prev.output || "") + tok.value; - return; - } - tok.prev = prev; - tokens.push(tok); - prev = tok; - }; - const extglobOpen = (type, value2) => { - const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" }; - token.prev = prev; - token.parens = state.parens; - token.output = state.output; - const output = (opts.capture ? "(" : "") + token.open; - increment("parens"); - push({ type, value: value2, output: state.output ? "" : ONE_CHAR }); - push({ type: "paren", extglob: true, value: advance(), output }); - extglobs.push(token); - }; - const extglobClose = (token) => { - let output = token.close + (opts.capture ? ")" : ""); - let rest; - if (token.type === "negate") { - let extglobStar = star; - if (token.inner && token.inner.length > 1 && token.inner.includes("/")) { - extglobStar = globstar(opts); - } - if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { - output = token.close = `)$))${extglobStar}`; - } - if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - const expression = parse(rest, { ...options, fastpaths: false }).output; - output = token.close = `)${expression})${extglobStar})`; - } - if (token.prev.type === "bos") { - state.negatedExtglob = true; - } - } - push({ type: "paren", extglob: true, value, output }); - decrement("parens"); - }; - if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) { - let backslashes = false; - let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => { - if (first === "\\") { - backslashes = true; - return m; - } - if (first === "?") { - if (esc) { - return esc + first + (rest ? QMARK.repeat(rest.length) : ""); - } - if (index === 0) { - return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : ""); - } - return QMARK.repeat(chars.length); - } - if (first === ".") { - return DOT_LITERAL.repeat(chars.length); - } - if (first === "*") { - if (esc) { - return esc + first + (rest ? star : ""); - } - return star; - } - return esc ? m : `\\${m}`; - }); - if (backslashes === true) { - if (opts.unescape === true) { - output = output.replace(/\\/g, ""); - } else { - output = output.replace(/\\+/g, (m) => { - return m.length % 2 === 0 ? "\\\\" : m ? "\\" : ""; - }); - } - } - if (output === input && opts.contains === true) { - state.output = input; - return state; - } - state.output = utils.wrapOutput(output, state, options); - return state; - } - while (!eos()) { - value = advance(); - if (value === "\0") { - continue; - } - if (value === "\\") { - const next = peek(); - if (next === "/" && opts.bash !== true) { - continue; - } - if (next === "." || next === ";") { - continue; - } - if (!next) { - value += "\\"; - push({ type: "text", value }); - continue; - } - const match = /^\\+/.exec(remaining()); - let slashes = 0; - if (match && match[0].length > 2) { - slashes = match[0].length; - state.index += slashes; - if (slashes % 2 !== 0) { - value += "\\"; - } - } - if (opts.unescape === true) { - value = advance(); - } else { - value += advance(); - } - if (state.brackets === 0) { - push({ type: "text", value }); - continue; - } - } - if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) { - if (opts.posix !== false && value === ":") { - const inner = prev.value.slice(1); - if (inner.includes("[")) { - prev.posix = true; - if (inner.includes(":")) { - const idx = prev.value.lastIndexOf("["); - const pre = prev.value.slice(0, idx); - const rest2 = prev.value.slice(idx + 2); - const posix = POSIX_REGEX_SOURCE[rest2]; - if (posix) { - prev.value = pre + posix; - state.backtrack = true; - advance(); - if (!bos.output && tokens.indexOf(prev) === 1) { - bos.output = ONE_CHAR; - } - continue; - } - } - } - } - if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") { - value = `\\${value}`; - } - if (value === "]" && (prev.value === "[" || prev.value === "[^")) { - value = `\\${value}`; - } - if (opts.posix === true && value === "!" && prev.value === "[") { - value = "^"; - } - prev.value += value; - append({ value }); - continue; - } - if (state.quotes === 1 && value !== '"') { - value = utils.escapeRegex(value); - prev.value += value; - append({ value }); - continue; - } - if (value === '"') { - state.quotes = state.quotes === 1 ? 0 : 1; - if (opts.keepQuotes === true) { - push({ type: "text", value }); - } - continue; - } - if (value === "(") { - increment("parens"); - push({ type: "paren", value }); - continue; - } - if (value === ")") { - if (state.parens === 0 && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("opening", "(")); - } - const extglob = extglobs[extglobs.length - 1]; - if (extglob && state.parens === extglob.parens + 1) { - extglobClose(extglobs.pop()); - continue; - } - push({ type: "paren", value, output: state.parens ? ")" : "\\)" }); - decrement("parens"); - continue; - } - if (value === "[") { - if (opts.nobracket === true || !remaining().includes("]")) { - if (opts.nobracket !== true && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("closing", "]")); - } - value = `\\${value}`; - } else { - increment("brackets"); - } - push({ type: "bracket", value }); - continue; - } - if (value === "]") { - if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) { - push({ type: "text", value, output: `\\${value}` }); - continue; - } - if (state.brackets === 0) { - if (opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("opening", "[")); - } - push({ type: "text", value, output: `\\${value}` }); - continue; - } - decrement("brackets"); - const prevValue = prev.value.slice(1); - if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) { - value = `/${value}`; - } - prev.value += value; - append({ value }); - if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) { - continue; - } - const escaped = utils.escapeRegex(prev.value); - state.output = state.output.slice(0, -prev.value.length); - if (opts.literalBrackets === true) { - state.output += escaped; - prev.value = escaped; - continue; - } - prev.value = `(${capture}${escaped}|${prev.value})`; - state.output += prev.value; - continue; - } - if (value === "{" && opts.nobrace !== true) { - increment("braces"); - const open = { - type: "brace", - value, - output: "(", - outputIndex: state.output.length, - tokensIndex: state.tokens.length - }; - braces.push(open); - push(open); - continue; - } - if (value === "}") { - const brace = braces[braces.length - 1]; - if (opts.nobrace === true || !brace) { - push({ type: "text", value, output: value }); - continue; - } - let output = ")"; - if (brace.dots === true) { - const arr = tokens.slice(); - const range = []; - for (let i = arr.length - 1; i >= 0; i--) { - tokens.pop(); - if (arr[i].type === "brace") { - break; - } - if (arr[i].type !== "dots") { - range.unshift(arr[i].value); - } - } - output = expandRange(range, opts); - state.backtrack = true; - } - if (brace.comma !== true && brace.dots !== true) { - const out = state.output.slice(0, brace.outputIndex); - const toks = state.tokens.slice(brace.tokensIndex); - brace.value = brace.output = "\\{"; - value = output = "\\}"; - state.output = out; - for (const t of toks) { - state.output += t.output || t.value; - } - } - push({ type: "brace", value, output }); - decrement("braces"); - braces.pop(); - continue; - } - if (value === "|") { - if (extglobs.length > 0) { - extglobs[extglobs.length - 1].conditions++; - } - push({ type: "text", value }); - continue; - } - if (value === ",") { - let output = value; - const brace = braces[braces.length - 1]; - if (brace && stack[stack.length - 1] === "braces") { - brace.comma = true; - output = "|"; - } - push({ type: "comma", value, output }); - continue; - } - if (value === "/") { - if (prev.type === "dot" && state.index === state.start + 1) { - state.start = state.index + 1; - state.consumed = ""; - state.output = ""; - tokens.pop(); - prev = bos; - continue; - } - push({ type: "slash", value, output: SLASH_LITERAL }); - continue; - } - if (value === ".") { - if (state.braces > 0 && prev.type === "dot") { - if (prev.value === ".") prev.output = DOT_LITERAL; - const brace = braces[braces.length - 1]; - prev.type = "dots"; - prev.output += value; - prev.value += value; - brace.dots = true; - continue; - } - if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") { - push({ type: "text", value, output: DOT_LITERAL }); - continue; - } - push({ type: "dot", value, output: DOT_LITERAL }); - continue; - } - if (value === "?") { - const isGroup = prev && prev.value === "("; - if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - extglobOpen("qmark", value); - continue; - } - if (prev && prev.type === "paren") { - const next = peek(); - let output = value; - if (next === "<" && !utils.supportsLookbehinds()) { - throw new Error("Node.js v10 or higher is required for regex lookbehinds"); - } - if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) { - output = `\\${value}`; - } - push({ type: "text", value, output }); - continue; - } - if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) { - push({ type: "qmark", value, output: QMARK_NO_DOT }); - continue; - } - push({ type: "qmark", value, output: QMARK }); - continue; - } - if (value === "!") { - if (opts.noextglob !== true && peek() === "(") { - if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) { - extglobOpen("negate", value); - continue; - } - } - if (opts.nonegate !== true && state.index === 0) { - negate(); - continue; - } - } - if (value === "+") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - extglobOpen("plus", value); - continue; - } - if (prev && prev.value === "(" || opts.regex === false) { - push({ type: "plus", value, output: PLUS_LITERAL }); - continue; - } - if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) { - push({ type: "plus", value }); - continue; - } - push({ type: "plus", value: PLUS_LITERAL }); - continue; - } - if (value === "@") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - push({ type: "at", extglob: true, value, output: "" }); - continue; - } - push({ type: "text", value }); - continue; - } - if (value !== "*") { - if (value === "$" || value === "^") { - value = `\\${value}`; - } - const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); - if (match) { - value += match[0]; - state.index += match[0].length; - } - push({ type: "text", value }); - continue; - } - if (prev && (prev.type === "globstar" || prev.star === true)) { - prev.type = "star"; - prev.star = true; - prev.value += value; - prev.output = star; - state.backtrack = true; - state.globstar = true; - consume(value); - continue; - } - let rest = remaining(); - if (opts.noextglob !== true && /^\([^?]/.test(rest)) { - extglobOpen("star", value); - continue; - } - if (prev.type === "star") { - if (opts.noglobstar === true) { - consume(value); - continue; - } - const prior = prev.prev; - const before = prior.prev; - const isStart = prior.type === "slash" || prior.type === "bos"; - const afterStar = before && (before.type === "star" || before.type === "globstar"); - if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) { - push({ type: "star", value, output: "" }); - continue; - } - const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"); - const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren"); - if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) { - push({ type: "star", value, output: "" }); - continue; - } - while (rest.slice(0, 3) === "/**") { - const after = input[state.index + 4]; - if (after && after !== "/") { - break; - } - rest = rest.slice(3); - consume("/**", 3); - } - if (prior.type === "bos" && eos()) { - prev.type = "globstar"; - prev.value += value; - prev.output = globstar(opts); - state.output = prev.output; - state.globstar = true; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) { - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"); - prev.value += value; - state.globstar = true; - state.output += prior.output + prev.output; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") { - const end = rest[1] !== void 0 ? "|$" : ""; - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; - prev.value += value; - state.output += prior.output + prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); - continue; - } - if (prior.type === "bos" && rest[0] === "/") { - prev.type = "globstar"; - prev.value += value; - prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; - state.output = prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); - continue; - } - state.output = state.output.slice(0, -prev.output.length); - prev.type = "globstar"; - prev.output = globstar(opts); - prev.value += value; - state.output += prev.output; - state.globstar = true; - consume(value); - continue; - } - const token = { type: "star", value, output: star }; - if (opts.bash === true) { - token.output = ".*?"; - if (prev.type === "bos" || prev.type === "slash") { - token.output = nodot + token.output; - } - push(token); - continue; - } - if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) { - token.output = value; - push(token); - continue; - } - if (state.index === state.start || prev.type === "slash" || prev.type === "dot") { - if (prev.type === "dot") { - state.output += NO_DOT_SLASH; - prev.output += NO_DOT_SLASH; - } else if (opts.dot === true) { - state.output += NO_DOTS_SLASH; - prev.output += NO_DOTS_SLASH; - } else { - state.output += nodot; - prev.output += nodot; - } - if (peek() !== "*") { - state.output += ONE_CHAR; - prev.output += ONE_CHAR; - } - } - push(token); - } - while (state.brackets > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]")); - state.output = utils.escapeLast(state.output, "["); - decrement("brackets"); - } - while (state.parens > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")")); - state.output = utils.escapeLast(state.output, "("); - decrement("parens"); - } - while (state.braces > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}")); - state.output = utils.escapeLast(state.output, "{"); - decrement("braces"); - } - if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) { - push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }); - } - if (state.backtrack === true) { - state.output = ""; - for (const token of state.tokens) { - state.output += token.output != null ? token.output : token.value; - if (token.suffix) { - state.output += token.suffix; - } - } - } - return state; - }; - parse.fastpaths = (input, options) => { - const opts = { ...options }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - const len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - input = REPLACEMENTS[input] || input; - const win32 = utils.isWindows(options); - const { - DOT_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOTS_SLASH, - STAR, - START_ANCHOR - } = constants.globChars(win32); - const nodot = opts.dot ? NO_DOTS : NO_DOT; - const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; - const capture = opts.capture ? "" : "?:"; - const state = { negated: false, prefix: "" }; - let star = opts.bash === true ? ".*?" : STAR; - if (opts.capture) { - star = `(${star})`; - } - const globstar = (opts2) => { - if (opts2.noglobstar === true) return star; - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const create = (str) => { - switch (str) { - case "*": - return `${nodot}${ONE_CHAR}${star}`; - case ".*": - return `${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*.*": - return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*/*": - return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; - case "**": - return nodot + globstar(opts); - case "**/*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; - case "**/*.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "**/.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; - default: { - const match = /^(.*?)\.(\w+)$/.exec(str); - if (!match) return; - const source2 = create(match[1]); - if (!source2) return; - return source2 + DOT_LITERAL + match[2]; - } - } - }; - const output = utils.removePrefix(input, state); - let source = create(output); - if (source && opts.strictSlashes !== true) { - source += `${SLASH_LITERAL}?`; - } - return source; - }; - module2.exports = parse; - } -}); -var require_picomatch = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var scan = require_scan(); - var parse = require_parse2(); - var utils = require_utils2(); - var constants = require_constants2(); - var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); - var picomatch = (glob, options, returnState = false) => { - if (Array.isArray(glob)) { - const fns = glob.map((input) => picomatch(input, options, returnState)); - const arrayMatcher = (str) => { - for (const isMatch of fns) { - const state2 = isMatch(str); - if (state2) return state2; - } - return false; - }; - return arrayMatcher; - } - const isState = isObject(glob) && glob.tokens && glob.input; - if (glob === "" || typeof glob !== "string" && !isState) { - throw new TypeError("Expected pattern to be a non-empty string"); - } - const opts = options || {}; - const posix = utils.isWindows(options); - const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true); - const state = regex.state; - delete regex.state; - let isIgnored = () => false; - if (opts.ignore) { - const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null }; - isIgnored = picomatch(opts.ignore, ignoreOpts, returnState); - } - const matcher = (input, returnObject = false) => { - const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }); - const result = { glob, state, regex, posix, input, output, match, isMatch }; - if (typeof opts.onResult === "function") { - opts.onResult(result); - } - if (isMatch === false) { - result.isMatch = false; - return returnObject ? result : false; - } - if (isIgnored(input)) { - if (typeof opts.onIgnore === "function") { - opts.onIgnore(result); - } - result.isMatch = false; - return returnObject ? result : false; - } - if (typeof opts.onMatch === "function") { - opts.onMatch(result); - } - return returnObject ? result : true; - }; - if (returnState) { - matcher.state = state; - } - return matcher; - }; - picomatch.test = (input, regex, options, { glob, posix } = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected input to be a string"); - } - if (input === "") { - return { isMatch: false, output: "" }; - } - const opts = options || {}; - const format = opts.format || (posix ? utils.toPosixSlashes : null); - let match = input === glob; - let output = match && format ? format(input) : input; - if (match === false) { - output = format ? format(input) : input; - match = output === glob; - } - if (match === false || opts.capture === true) { - if (opts.matchBase === true || opts.basename === true) { - match = picomatch.matchBase(input, regex, options, posix); - } else { - match = regex.exec(output); - } - } - return { isMatch: Boolean(match), match, output }; - }; - picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => { - const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options); - return regex.test(path2.basename(input)); - }; - picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - picomatch.parse = (pattern, options) => { - if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options)); - return parse(pattern, { ...options, fastpaths: false }); - }; - picomatch.scan = (input, options) => scan(input, options); - picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => { - if (returnOutput === true) { - return state.output; - } - const opts = options || {}; - const prepend = opts.contains ? "" : "^"; - const append = opts.contains ? "" : "$"; - let source = `${prepend}(?:${state.output})${append}`; - if (state && state.negated === true) { - source = `^(?!${source}).*$`; - } - const regex = picomatch.toRegex(source, options); - if (returnState === true) { - regex.state = state; - } - return regex; - }; - picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => { - if (!input || typeof input !== "string") { - throw new TypeError("Expected a non-empty string"); - } - let parsed = { negated: false, fastpaths: true }; - if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) { - parsed.output = parse.fastpaths(input, options); - } - if (!parsed.output) { - parsed = parse(input, options); - } - return picomatch.compileRe(parsed, options, returnOutput, returnState); - }; - picomatch.toRegex = (source, options) => { - try { - const opts = options || {}; - return new RegExp(source, opts.flags || (opts.nocase ? "i" : "")); - } catch (err) { - if (options && options.debug === true) throw err; - return /$^/; - } - }; - picomatch.constants = constants; - module2.exports = picomatch; - } -}); -var require_picomatch2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module2) { - "use strict"; - module2.exports = require_picomatch(); - } -}); -var require_micromatch = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"(exports, module2) { - "use strict"; - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - var braces = require_braces(); - var picomatch = require_picomatch2(); - var utils = require_utils2(); - var isEmptyString = (val) => val === "" || val === "./"; - var micromatch = (list, patterns, options) => { - patterns = [].concat(patterns); - list = [].concat(list); - let omit = /* @__PURE__ */ new Set(); - let keep = /* @__PURE__ */ new Set(); - let items = /* @__PURE__ */ new Set(); - let negatives = 0; - let onResult = (state) => { - items.add(state.output); - if (options && options.onResult) { - options.onResult(state); - } - }; - for (let i = 0; i < patterns.length; i++) { - let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true); - let negated = isMatch.state.negated || isMatch.state.negatedExtglob; - if (negated) negatives++; - for (let item of list) { - let matched = isMatch(item, true); - let match = negated ? !matched.isMatch : matched.isMatch; - if (!match) continue; - if (negated) { - omit.add(matched.output); - } else { - omit.delete(matched.output); - keep.add(matched.output); - } - } - } - let result = negatives === patterns.length ? [...items] : [...keep]; - let matches = result.filter((item) => !omit.has(item)); - if (options && matches.length === 0) { - if (options.failglob === true) { - throw new Error(`No matches found for "${patterns.join(", ")}"`); - } - if (options.nonull === true || options.nullglob === true) { - return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns; - } - } - return matches; - }; - micromatch.match = micromatch; - micromatch.matcher = (pattern, options) => picomatch(pattern, options); - micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - micromatch.any = micromatch.isMatch; - micromatch.not = (list, patterns, options = {}) => { - patterns = [].concat(patterns).map(String); - let result = /* @__PURE__ */ new Set(); - let items = []; - let onResult = (state) => { - if (options.onResult) options.onResult(state); - items.push(state.output); - }; - let matches = new Set(micromatch(list, patterns, { ...options, onResult })); - for (let item of items) { - if (!matches.has(item)) { - result.add(item); - } - } - return [...result]; - }; - micromatch.contains = (str, pattern, options) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - if (Array.isArray(pattern)) { - return pattern.some((p) => micromatch.contains(str, p, options)); - } - if (typeof pattern === "string") { - if (isEmptyString(str) || isEmptyString(pattern)) { - return false; - } - if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) { - return true; - } - } - return micromatch.isMatch(str, pattern, { ...options, contains: true }); - }; - micromatch.matchKeys = (obj, patterns, options) => { - if (!utils.isObject(obj)) { - throw new TypeError("Expected the first argument to be an object"); - } - let keys = micromatch(Object.keys(obj), patterns, options); - let res = {}; - for (let key of keys) res[key] = obj[key]; - return res; - }; - micromatch.some = (list, patterns, options) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (items.some((item) => isMatch(item))) { - return true; - } - } - return false; - }; - micromatch.every = (list, patterns, options) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (!items.every((item) => isMatch(item))) { - return false; - } - } - return true; - }; - micromatch.all = (str, patterns, options) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - return [].concat(patterns).every((p) => picomatch(p, options)(str)); - }; - micromatch.capture = (glob, input, options) => { - let posix = utils.isWindows(options); - let regex = picomatch.makeRe(String(glob), { ...options, capture: true }); - let match = regex.exec(posix ? utils.toPosixSlashes(input) : input); - if (match) { - return match.slice(1).map((v) => v === void 0 ? "" : v); - } - }; - micromatch.makeRe = (...args) => picomatch.makeRe(...args); - micromatch.scan = (...args) => picomatch.scan(...args); - micromatch.parse = (patterns, options) => { - let res = []; - for (let pattern of [].concat(patterns || [])) { - for (let str of braces(String(pattern), options)) { - res.push(picomatch.parse(str, options)); - } - } - return res; - }; - micromatch.braces = (pattern, options) => { - if (typeof pattern !== "string") throw new TypeError("Expected a string"); - if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) { - return [pattern]; - } - return braces(pattern, options); - }; - micromatch.braceExpand = (pattern, options) => { - if (typeof pattern !== "string") throw new TypeError("Expected a string"); - return micromatch.braces(pattern, { ...options, expand: true }); - }; - module2.exports = micromatch; - } -}); -var require_pattern = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/pattern.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var globParent = require_glob_parent(); - var micromatch = require_micromatch(); - var GLOBSTAR = "**"; - var ESCAPE_SYMBOL = "\\"; - var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; - var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; - var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; - var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; - var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; - var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; - function isStaticPattern(pattern, options = {}) { - return !isDynamicPattern(pattern, options); - } - exports.isStaticPattern = isStaticPattern; - function isDynamicPattern(pattern, options = {}) { - if (pattern === "") { - return false; - } - if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { - return true; - } - if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.braceExpansion !== false && hasBraceExpansion(pattern)) { - return true; - } - return false; - } - exports.isDynamicPattern = isDynamicPattern; - function hasBraceExpansion(pattern) { - const openingBraceIndex = pattern.indexOf("{"); - if (openingBraceIndex === -1) { - return false; - } - const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1); - if (closingBraceIndex === -1) { - return false; - } - const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); - return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); - } - function convertToPositivePattern(pattern) { - return isNegativePattern(pattern) ? pattern.slice(1) : pattern; - } - exports.convertToPositivePattern = convertToPositivePattern; - function convertToNegativePattern(pattern) { - return "!" + pattern; - } - exports.convertToNegativePattern = convertToNegativePattern; - function isNegativePattern(pattern) { - return pattern.startsWith("!") && pattern[1] !== "("; - } - exports.isNegativePattern = isNegativePattern; - function isPositivePattern(pattern) { - return !isNegativePattern(pattern); - } - exports.isPositivePattern = isPositivePattern; - function getNegativePatterns(patterns) { - return patterns.filter(isNegativePattern); - } - exports.getNegativePatterns = getNegativePatterns; - function getPositivePatterns(patterns) { - return patterns.filter(isPositivePattern); - } - exports.getPositivePatterns = getPositivePatterns; - function getPatternsInsideCurrentDirectory(patterns) { - return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); - } - exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; - function getPatternsOutsideCurrentDirectory(patterns) { - return patterns.filter(isPatternRelatedToParentDirectory); - } - exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; - function isPatternRelatedToParentDirectory(pattern) { - return pattern.startsWith("..") || pattern.startsWith("./.."); - } - exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; - function getBaseDirectory(pattern) { - return globParent(pattern, { flipBackslashes: false }); - } - exports.getBaseDirectory = getBaseDirectory; - function hasGlobStar(pattern) { - return pattern.includes(GLOBSTAR); - } - exports.hasGlobStar = hasGlobStar; - function endsWithSlashGlobStar(pattern) { - return pattern.endsWith("/" + GLOBSTAR); - } - exports.endsWithSlashGlobStar = endsWithSlashGlobStar; - function isAffectDepthOfReadingPattern(pattern) { - const basename = path2.basename(pattern); - return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); - } - exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; - function expandPatternsWithBraceExpansion(patterns) { - return patterns.reduce((collection, pattern) => { - return collection.concat(expandBraceExpansion(pattern)); - }, []); - } - exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; - function expandBraceExpansion(pattern) { - const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true }); - patterns.sort((a, b) => a.length - b.length); - return patterns.filter((pattern2) => pattern2 !== ""); - } - exports.expandBraceExpansion = expandBraceExpansion; - function getPatternParts(pattern, options) { - let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true })); - if (parts.length === 0) { - parts = [pattern]; - } - if (parts[0].startsWith("/")) { - parts[0] = parts[0].slice(1); - parts.unshift(""); - } - return parts; - } - exports.getPatternParts = getPatternParts; - function makeRe(pattern, options) { - return micromatch.makeRe(pattern, options); - } - exports.makeRe = makeRe; - function convertPatternsToRe(patterns, options) { - return patterns.map((pattern) => makeRe(pattern, options)); - } - exports.convertPatternsToRe = convertPatternsToRe; - function matchAny(entry, patternsRe) { - return patternsRe.some((patternRe) => patternRe.test(entry)); - } - exports.matchAny = matchAny; - function removeDuplicateSlashes(pattern) { - return pattern.replace(DOUBLE_SLASH_RE, "/"); - } - exports.removeDuplicateSlashes = removeDuplicateSlashes; - } -}); -var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.merge = void 0; - var merge2 = require_merge2(); - function merge(streams) { - const mergedStream = merge2(streams); - streams.forEach((stream) => { - stream.once("error", (error) => mergedStream.emit("error", error)); - }); - mergedStream.once("close", () => propagateCloseEventToSources(streams)); - mergedStream.once("end", () => propagateCloseEventToSources(streams)); - return mergedStream; - } - exports.merge = merge; - function propagateCloseEventToSources(streams) { - streams.forEach((stream) => stream.emit("close")); - } - } -}); -var require_string = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/string.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEmpty = exports.isString = void 0; - function isString(input) { - return typeof input === "string"; - } - exports.isString = isString; - function isEmpty(input) { - return input === ""; - } - exports.isEmpty = isEmpty; - } -}); -var require_utils3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; - var array = require_array(); - exports.array = array; - var errno = require_errno(); - exports.errno = errno; - var fs2 = require_fs(); - exports.fs = fs2; - var path2 = require_path(); - exports.path = path2; - var pattern = require_pattern(); - exports.pattern = pattern; - var stream = require_stream(); - exports.stream = stream; - var string = require_string(); - exports.string = string; - } -}); -var require_tasks = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/managers/tasks.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; - var utils = require_utils3(); - function generate(input, settings) { - const patterns = processPatterns(input, settings); - const ignore = processPatterns(settings.ignore, settings); - const positivePatterns = getPositivePatterns(patterns); - const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); - const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); - const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); - const staticTasks = convertPatternsToTasks( - staticPatterns, - negativePatterns, - /* dynamic */ - false - ); - const dynamicTasks = convertPatternsToTasks( - dynamicPatterns, - negativePatterns, - /* dynamic */ - true - ); - return staticTasks.concat(dynamicTasks); - } - exports.generate = generate; - function processPatterns(input, settings) { - let patterns = input; - if (settings.braceExpansion) { - patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); - } - if (settings.baseNameMatch) { - patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`); - } - return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); - } - function convertPatternsToTasks(positive, negative, dynamic) { - const tasks = []; - const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); - const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); - const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); - const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); - tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); - if ("." in insideCurrentDirectoryGroup) { - tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic)); - } else { - tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); - } - return tasks; - } - exports.convertPatternsToTasks = convertPatternsToTasks; - function getPositivePatterns(patterns) { - return utils.pattern.getPositivePatterns(patterns); - } - exports.getPositivePatterns = getPositivePatterns; - function getNegativePatternsAsPositive(patterns, ignore) { - const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); - const positive = negative.map(utils.pattern.convertToPositivePattern); - return positive; - } - exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; - function groupPatternsByBaseDirectory(patterns) { - const group = {}; - return patterns.reduce((collection, pattern) => { - const base = utils.pattern.getBaseDirectory(pattern); - if (base in collection) { - collection[base].push(pattern); - } else { - collection[base] = [pattern]; - } - return collection; - }, group); - } - exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; - function convertPatternGroupsToTasks(positive, negative, dynamic) { - return Object.keys(positive).map((base) => { - return convertPatternGroupToTask(base, positive[base], negative, dynamic); - }); - } - exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; - function convertPatternGroupToTask(base, positive, negative, dynamic) { - return { - dynamic, - positive, - negative, - base, - patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) - }; - } - exports.convertPatternGroupToTask = convertPatternGroupToTask; - } -}); -var require_async = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read(path2, settings, callback) { - settings.fs.lstat(path2, (lstatError, lstat) => { - if (lstatError !== null) { - callFailureCallback(callback, lstatError); - return; - } - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - callSuccessCallback(callback, lstat); - return; - } - settings.fs.stat(path2, (statError, stat) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - callFailureCallback(callback, statError); - return; - } - callSuccessCallback(callback, lstat); - return; - } - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - callSuccessCallback(callback, stat); - }); - }); - } - exports.read = read; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, result) { - callback(null, result); - } - } -}); -var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read(path2, settings) { - const lstat = settings.fs.lstatSync(path2); - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - return lstat; - } - try { - const stat = settings.fs.statSync(path2); - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - return stat; - } catch (error) { - if (!settings.throwErrorOnBrokenSymbolicLink) { - return lstat; - } - throw error; - } - } - exports.read = read; - } -}); -var require_fs2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - stat: fs2.stat, - lstatSync: fs2.lstatSync, - statSync: fs2.statSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); - } - exports.createFileSystemAdapter = createFileSystemAdapter; - } -}); -var require_settings = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fs2 = require_fs2(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); - this.fs = fs2.createFileSystemAdapter(this._options.fs); - this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.statSync = exports.stat = exports.Settings = void 0; - var async = require_async(); - var sync = require_sync(); - var settings_1 = require_settings(); - exports.Settings = settings_1.default; - function stat(path2, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path2, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path2, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.stat = stat; - function statSync(path2, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path2, settings); - } - exports.statSync = statSync; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_queue_microtask = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module2) { - "use strict"; - var promise; - module2.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => { - throw err; - }, 0)); - } -}); -var require_run_parallel = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module2) { - "use strict"; - module2.exports = runParallel; - var queueMicrotask2 = require_queue_microtask(); - function runParallel(tasks, cb) { - let results, pending, keys; - let isSync = true; - if (Array.isArray(tasks)) { - results = []; - pending = tasks.length; - } else { - keys = Object.keys(tasks); - results = {}; - pending = keys.length; - } - function done(err) { - function end() { - if (cb) cb(err, results); - cb = null; - } - if (isSync) queueMicrotask2(end); - else end(); - } - function each(i, err, result) { - results[i] = result; - if (--pending === 0 || err) { - done(err); - } - } - if (!pending) { - done(null); - } else if (keys) { - keys.forEach(function(key) { - tasks[key](function(err, result) { - each(key, err, result); - }); - }); - } else { - tasks.forEach(function(task, i) { - task(function(err, result) { - each(i, err, result); - }); - }); - } - isSync = false; - } - } -}); -var require_constants3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; - var NODE_PROCESS_VERSION_PARTS = process.versions.node.split("."); - if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) { - throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); - } - var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); - var MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); - var SUPPORTED_MAJOR_VERSION = 10; - var SUPPORTED_MINOR_VERSION = 10; - var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; - var IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; - } -}); -var require_fs3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } - }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; - } -}); -var require_utils4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fs = void 0; - var fs2 = require_fs3(); - exports.fs = fs2; - } -}); -var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = void 0; - function joinPathSegments(a, b, separator) { - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; - } -}); -var require_async2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; - var fsStat = require_out(); - var rpl = require_run_parallel(); - var constants_1 = require_constants3(); - var utils = require_utils4(); - var common = require_common(); - function read(directory, settings, callback) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - readdirWithFileTypes(directory, settings, callback); - return; - } - readdir(directory, settings, callback); - } - exports.read = read; - function readdirWithFileTypes(directory, settings, callback) { - settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const entries = dirents.map((dirent) => ({ - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - })); - if (!settings.followSymbolicLinks) { - callSuccessCallback(callback, entries); - return; - } - const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); - rpl(tasks, (rplError, rplEntries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, rplEntries); - }); - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function makeRplTaskEntry(entry, settings) { - return (done) => { - if (!entry.dirent.isSymbolicLink()) { - done(null, entry); - return; - } - settings.fs.stat(entry.path, (statError, stats) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - done(statError); - return; - } - done(null, entry); - return; - } - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - done(null, entry); - }); - }; - } - function readdir(directory, settings, callback) { - settings.fs.readdir(directory, (readdirError, names) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const tasks = names.map((name) => { - const path2 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - return (done) => { - fsStat.stat(path2, settings.fsStatSettings, (error, stats) => { - if (error !== null) { - done(error); - return; - } - const entry = { - name, - path: path2, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - done(null, entry); - }); - }; - }); - rpl(tasks, (rplError, entries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, entries); - }); - }); - } - exports.readdir = readdir; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, result) { - callback(null, result); - } - } -}); -var require_sync2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; - var fsStat = require_out(); - var constants_1 = require_constants3(); - var utils = require_utils4(); - var common = require_common(); - function read(directory, settings) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - return readdirWithFileTypes(directory, settings); - } - return readdir(directory, settings); - } - exports.read = read; - function readdirWithFileTypes(directory, settings) { - const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); - return dirents.map((dirent) => { - const entry = { - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - }; - if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { - try { - const stats = settings.fs.statSync(entry.path); - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - } catch (error) { - if (settings.throwErrorOnBrokenSymbolicLink) { - throw error; - } - } - } - return entry; - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function readdir(directory, settings) { - const names = settings.fs.readdirSync(directory); - return names.map((name) => { - const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - const stats = fsStat.statSync(entryPath, settings.fsStatSettings); - const entry = { - name, - path: entryPath, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - return entry; - }); - } - exports.readdir = readdir; - } -}); -var require_fs4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - stat: fs2.stat, - lstatSync: fs2.lstatSync, - statSync: fs2.statSync, - readdir: fs2.readdir, - readdirSync: fs2.readdirSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); - } - exports.createFileSystemAdapter = createFileSystemAdapter; - } -}); -var require_settings2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fsStat = require_out(); - var fs2 = require_fs4(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); - this.fs = fs2.createFileSystemAdapter(this._options.fs); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep); - this.stats = this._getValue(this._options.stats, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - this.fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this.followSymbolicLinks, - fs: this.fs, - throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.scandirSync = exports.scandir = void 0; - var async = require_async2(); - var sync = require_sync2(); - var settings_1 = require_settings2(); - exports.Settings = settings_1.default; - function scandir(path2, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path2, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path2, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.scandir = scandir; - function scandirSync(path2, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path2, settings); - } - exports.scandirSync = scandirSync; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_reusify = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) { - "use strict"; - function reusify(Constructor) { - var head = new Constructor(); - var tail = head; - function get() { - var current = head; - if (current.next) { - head = current.next; - } else { - head = new Constructor(); - tail = head; - } - current.next = null; - return current; - } - function release(obj) { - tail.next = obj; - tail = obj; - } - return { - get, - release - }; - } - module2.exports = reusify; - } -}); -var require_queue = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) { - "use strict"; - var reusify = require_reusify(); - function fastqueue(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; - } - if (concurrency < 1) { - throw new Error("fastqueue concurrency must be greater than 1"); - } - var cache = reusify(Task); - var queueHead = null; - var queueTail = null; - var _running = 0; - var errorHandler = null; - var self = { - push, - drain: noop, - saturated: noop, - pause, - paused: false, - concurrency, - running, - resume, - idle, - length, - getQueue, - unshift, - empty: noop, - kill, - killAndDrain, - error - }; - return self; - function running() { - return _running; - } - function pause() { - self.paused = true; - } - function length() { - var current = queueHead; - var counter = 0; - while (current) { - current = current.next; - counter++; - } - return counter; - } - function getQueue() { - var current = queueHead; - var tasks = []; - while (current) { - tasks.push(current.value); - current = current.next; - } - return tasks; - } - function resume() { - if (!self.paused) return; - self.paused = false; - for (var i = 0; i < self.concurrency; i++) { - _running++; - release(); - } - } - function idle() { - return _running === 0 && self.length() === 0; - } - function push(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop; - current.errorHandler = errorHandler; - if (_running === self.concurrency || self.paused) { - if (queueTail) { - queueTail.next = current; - queueTail = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); - } - } - function unshift(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop; - if (_running === self.concurrency || self.paused) { - if (queueHead) { - current.next = queueHead; - queueHead = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); - } - } - function release(holder) { - if (holder) { - cache.release(holder); - } - var next = queueHead; - if (next) { - if (!self.paused) { - if (queueTail === queueHead) { - queueTail = null; - } - queueHead = next.next; - next.next = null; - worker.call(context, next.value, next.worked); - if (queueTail === null) { - self.empty(); - } - } else { - _running--; - } - } else if (--_running === 0) { - self.drain(); - } - } - function kill() { - queueHead = null; - queueTail = null; - self.drain = noop; - } - function killAndDrain() { - queueHead = null; - queueTail = null; - self.drain(); - self.drain = noop; - } - function error(handler) { - errorHandler = handler; - } - } - function noop() { - } - function Task() { - this.value = null; - this.callback = noop; - this.next = null; - this.release = noop; - this.context = null; - this.errorHandler = null; - var self = this; - this.worked = function worked(err, result) { - var callback = self.callback; - var errorHandler = self.errorHandler; - var val = self.value; - self.value = null; - self.callback = noop; - if (self.errorHandler) { - errorHandler(err, val); - } - callback.call(self.context, err, result); - self.release(self); - }; - } - function queueAsPromised(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; - } - function asyncWrapper(arg, cb) { - worker.call(this, arg).then(function(res) { - cb(null, res); - }, cb); - } - var queue = fastqueue(context, asyncWrapper, concurrency); - var pushCb = queue.push; - var unshiftCb = queue.unshift; - queue.push = push; - queue.unshift = unshift; - queue.drained = drained; - return queue; - function push(value) { - var p = new Promise(function(resolve, reject) { - pushCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve(result); - }); - }); - p.catch(noop); - return p; - } - function unshift(value) { - var p = new Promise(function(resolve, reject) { - unshiftCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve(result); - }); - }); - p.catch(noop); - return p; - } - function drained() { - if (queue.idle()) { - return new Promise(function(resolve) { - resolve(); - }); - } - var previousDrain = queue.drain; - var p = new Promise(function(resolve) { - queue.drain = function() { - previousDrain(); - resolve(); - }; - }); - return p; - } - } - module2.exports = fastqueue; - module2.exports.promise = queueAsPromised; - } -}); -var require_common2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; - function isFatalError(settings, error) { - if (settings.errorFilter === null) { - return true; - } - return !settings.errorFilter(error); - } - exports.isFatalError = isFatalError; - function isAppliedFilter(filter, value) { - return filter === null || filter(value); - } - exports.isAppliedFilter = isAppliedFilter; - function replacePathSegmentSeparator(filepath, separator) { - return filepath.split(/[/\\]/).join(separator); - } - exports.replacePathSegmentSeparator = replacePathSegmentSeparator; - function joinPathSegments(a, b, separator) { - if (a === "") { - return b; - } - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; - } -}); -var require_reader = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var common = require_common2(); - var Reader = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); - } - }; - exports.default = Reader; - } -}); -var require_async3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var events_1 = (0, import_chunk_AH6QHEOA.__require)("events"); - var fsScandir = require_out2(); - var fastq = require_queue(); - var common = require_common2(); - var reader_1 = require_reader(); - var AsyncReader = class extends reader_1.default { - constructor(_root, _settings) { - super(_root, _settings); - this._settings = _settings; - this._scandir = fsScandir.scandir; - this._emitter = new events_1.EventEmitter(); - this._queue = fastq(this._worker.bind(this), this._settings.concurrency); - this._isFatalError = false; - this._isDestroyed = false; - this._queue.drain = () => { - if (!this._isFatalError) { - this._emitter.emit("end"); - } - }; - } - read() { - this._isFatalError = false; - this._isDestroyed = false; - setImmediate(() => { - this._pushToQueue(this._root, this._settings.basePath); - }); - return this._emitter; - } - get isDestroyed() { - return this._isDestroyed; - } - destroy() { - if (this._isDestroyed) { - throw new Error("The reader is already destroyed"); - } - this._isDestroyed = true; - this._queue.killAndDrain(); - } - onEntry(callback) { - this._emitter.on("entry", callback); - } - onError(callback) { - this._emitter.once("error", callback); - } - onEnd(callback) { - this._emitter.once("end", callback); - } - _pushToQueue(directory, base) { - const queueItem = { directory, base }; - this._queue.push(queueItem, (error) => { - if (error !== null) { - this._handleError(error); - } - }); - } - _worker(item, done) { - this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { - if (error !== null) { - done(error, void 0); - return; - } - for (const entry of entries) { - this._handleEntry(entry, item.base); - } - done(null, void 0); - }); - } - _handleError(error) { - if (this._isDestroyed || !common.isFatalError(this._settings, error)) { - return; - } - this._isFatalError = true; - this._isDestroyed = true; - this._emitter.emit("error", error); - } - _handleEntry(entry, base) { - if (this._isDestroyed || this._isFatalError) { - return; - } - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._emitEntry(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); - } - } - _emitEntry(entry) { - this._emitter.emit("entry", entry); - } - }; - exports.default = AsyncReader; - } -}); -var require_async4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async3(); - var AsyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._storage = []; - } - read(callback) { - this._reader.onError((error) => { - callFailureCallback(callback, error); - }); - this._reader.onEntry((entry) => { - this._storage.push(entry); - }); - this._reader.onEnd(() => { - callSuccessCallback(callback, this._storage); - }); - this._reader.read(); - } - }; - exports.default = AsyncProvider; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, entries) { - callback(null, entries); - } - } -}); -var require_stream2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_AH6QHEOA.__require)("stream"); - var async_1 = require_async3(); - var StreamProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._stream = new stream_1.Readable({ - objectMode: true, - read: () => { - }, - destroy: () => { - if (!this._reader.isDestroyed) { - this._reader.destroy(); - } - } - }); - } - read() { - this._reader.onError((error) => { - this._stream.emit("error", error); - }); - this._reader.onEntry((entry) => { - this._stream.push(entry); - }); - this._reader.onEnd(() => { - this._stream.push(null); - }); - this._reader.read(); - return this._stream; - } - }; - exports.default = StreamProvider; - } -}); -var require_sync3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsScandir = require_out2(); - var common = require_common2(); - var reader_1 = require_reader(); - var SyncReader = class extends reader_1.default { - constructor() { - super(...arguments); - this._scandir = fsScandir.scandirSync; - this._storage = []; - this._queue = /* @__PURE__ */ new Set(); - } - read() { - this._pushToQueue(this._root, this._settings.basePath); - this._handleQueue(); - return this._storage; - } - _pushToQueue(directory, base) { - this._queue.add({ directory, base }); - } - _handleQueue() { - for (const item of this._queue.values()) { - this._handleDirectory(item.directory, item.base); - } - } - _handleDirectory(directory, base) { - try { - const entries = this._scandir(directory, this._settings.fsScandirSettings); - for (const entry of entries) { - this._handleEntry(entry, base); - } - } catch (error) { - this._handleError(error); - } - } - _handleError(error) { - if (!common.isFatalError(this._settings, error)) { - return; - } - throw error; - } - _handleEntry(entry, base) { - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._pushToStorage(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); - } - } - _pushToStorage(entry) { - this._storage.push(entry); - } - }; - exports.default = SyncReader; - } -}); -var require_sync4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync3(); - var SyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new sync_1.default(this._root, this._settings); - } - read() { - return this._reader.read(); - } - }; - exports.default = SyncProvider; - } -}); -var require_settings3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fsScandir = require_out2(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.basePath = this._getValue(this._options.basePath, void 0); - this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); - this.deepFilter = this._getValue(this._options.deepFilter, null); - this.entryFilter = this._getValue(this._options.entryFilter, null); - this.errorFilter = this._getValue(this._options.errorFilter, null); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep); - this.fsScandirSettings = new fsScandir.Settings({ - followSymbolicLinks: this._options.followSymbolicLinks, - fs: this._options.fs, - pathSegmentSeparator: this._options.pathSegmentSeparator, - stats: this._options.stats, - throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; - var async_1 = require_async4(); - var stream_1 = require_stream2(); - var sync_1 = require_sync4(); - var settings_1 = require_settings3(); - exports.Settings = settings_1.default; - function walk(directory, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); - return; - } - new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); - } - exports.walk = walk; - function walkSync(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new sync_1.default(directory, settings); - return provider.read(); - } - exports.walkSync = walkSync; - function walkStream(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new stream_1.default(directory, settings); - return provider.read(); - } - exports.walkStream = walkStream; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_reader2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/reader.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fsStat = require_out(); - var utils = require_utils3(); - var Reader = class { - constructor(_settings) { - this._settings = _settings; - this._fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this._settings.followSymbolicLinks, - fs: this._settings.fs, - throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks - }); - } - _getFullEntryPath(filepath) { - return path2.resolve(this._settings.cwd, filepath); - } - _makeEntry(stats, pattern) { - const entry = { - name: pattern, - path: pattern, - dirent: utils.fs.createDirentFromStats(pattern, stats) - }; - if (this._settings.stats) { - entry.stats = stats; - } - return entry; - } - _isFatalError(error) { - return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; - } - }; - exports.default = Reader; - } -}); -var require_stream3 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_AH6QHEOA.__require)("stream"); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderStream = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkStream = fsWalk.walkStream; - this._stat = fsStat.stat; - } - dynamic(root, options) { - return this._walkStream(root, options); - } - static(patterns, options) { - const filepaths = patterns.map(this._getFullEntryPath, this); - const stream = new stream_1.PassThrough({ objectMode: true }); - stream._write = (index, _enc, done) => { - return this._getEntry(filepaths[index], patterns[index], options).then((entry) => { - if (entry !== null && options.entryFilter(entry)) { - stream.push(entry); - } - if (index === filepaths.length - 1) { - stream.end(); - } - done(); - }).catch(done); - }; - for (let i = 0; i < filepaths.length; i++) { - stream.write(i); - } - return stream; - } - _getEntry(filepath, pattern, options) { - return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => { - if (options.errorFilter(error)) { - return null; - } - throw error; - }); - } - _getStat(filepath) { - return new Promise((resolve, reject) => { - this._stat(filepath, this._fsStatSettings, (error, stats) => { - return error === null ? resolve(stats) : reject(error); - }); - }); - } - }; - exports.default = ReaderStream; - } -}); -var require_async5 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var stream_1 = require_stream3(); - var ReaderAsync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkAsync = fsWalk.walk; - this._readerStream = new stream_1.default(this._settings); - } - dynamic(root, options) { - return new Promise((resolve, reject) => { - this._walkAsync(root, options, (error, entries) => { - if (error === null) { - resolve(entries); - } else { - reject(error); - } - }); - }); - } - async static(patterns, options) { - const entries = []; - const stream = this._readerStream.static(patterns, options); - return new Promise((resolve, reject) => { - stream.once("error", reject); - stream.on("data", (entry) => entries.push(entry)); - stream.once("end", () => resolve(entries)); - }); - } - }; - exports.default = ReaderAsync; - } -}); -var require_matcher = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var Matcher = class { - constructor(_patterns, _settings, _micromatchOptions) { - this._patterns = _patterns; - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this._storage = []; - this._fillStorage(); - } - _fillStorage() { - for (const pattern of this._patterns) { - const segments = this._getPatternSegments(pattern); - const sections = this._splitSegmentsIntoSections(segments); - this._storage.push({ - complete: sections.length <= 1, - pattern, - segments, - sections - }); - } - } - _getPatternSegments(pattern) { - const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); - return parts.map((part) => { - const dynamic = utils.pattern.isDynamicPattern(part, this._settings); - if (!dynamic) { - return { - dynamic: false, - pattern: part - }; - } - return { - dynamic: true, - pattern: part, - patternRe: utils.pattern.makeRe(part, this._micromatchOptions) - }; - }); - } - _splitSegmentsIntoSections(segments) { - return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); - } - }; - exports.default = Matcher; - } -}); -var require_partial = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var matcher_1 = require_matcher(); - var PartialMatcher = class extends matcher_1.default { - match(filepath) { - const parts = filepath.split("/"); - const levels = parts.length; - const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); - for (const pattern of patterns) { - const section = pattern.sections[0]; - if (!pattern.complete && levels > section.length) { - return true; - } - const match = parts.every((part, index) => { - const segment = pattern.segments[index]; - if (segment.dynamic && segment.patternRe.test(part)) { - return true; - } - if (!segment.dynamic && segment.pattern === part) { - return true; - } - return false; - }); - if (match) { - return true; - } - } - return false; - } - }; - exports.default = PartialMatcher; - } -}); -var require_deep = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/deep.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var partial_1 = require_partial(); - var DeepFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - } - getFilter(basePath, positive, negative) { - const matcher = this._getMatcher(positive); - const negativeRe = this._getNegativePatternsRe(negative); - return (entry) => this._filter(basePath, entry, matcher, negativeRe); - } - _getMatcher(patterns) { - return new partial_1.default(patterns, this._settings, this._micromatchOptions); - } - _getNegativePatternsRe(patterns) { - const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); - return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); - } - _filter(basePath, entry, matcher, negativeRe) { - if (this._isSkippedByDeep(basePath, entry.path)) { - return false; - } - if (this._isSkippedSymbolicLink(entry)) { - return false; - } - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._isSkippedByPositivePatterns(filepath, matcher)) { - return false; - } - return this._isSkippedByNegativePatterns(filepath, negativeRe); - } - _isSkippedByDeep(basePath, entryPath) { - if (this._settings.deep === Infinity) { - return false; - } - return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; - } - _getEntryLevel(basePath, entryPath) { - const entryPathDepth = entryPath.split("/").length; - if (basePath === "") { - return entryPathDepth; - } - const basePathDepth = basePath.split("/").length; - return entryPathDepth - basePathDepth; - } - _isSkippedSymbolicLink(entry) { - return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); - } - _isSkippedByPositivePatterns(entryPath, matcher) { - return !this._settings.baseNameMatch && !matcher.match(entryPath); - } - _isSkippedByNegativePatterns(entryPath, patternsRe) { - return !utils.pattern.matchAny(entryPath, patternsRe); - } - }; - exports.default = DeepFilter; - } -}); -var require_entry = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/entry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var EntryFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this.index = /* @__PURE__ */ new Map(); - } - getFilter(positive, negative) { - const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); - const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); - return (entry) => this._filter(entry, positiveRe, negativeRe); - } - _filter(entry, positiveRe, negativeRe) { - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._settings.unique && this._isDuplicateEntry(filepath)) { - return false; - } - if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { - return false; - } - if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { - return false; - } - const isDirectory = entry.dirent.isDirectory(); - const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); - if (this._settings.unique && isMatched) { - this._createIndexRecord(filepath); - } - return isMatched; - } - _isDuplicateEntry(filepath) { - return this.index.has(filepath); - } - _createIndexRecord(filepath) { - this.index.set(filepath, void 0); - } - _onlyFileFilter(entry) { - return this._settings.onlyFiles && !entry.dirent.isFile(); - } - _onlyDirectoryFilter(entry) { - return this._settings.onlyDirectories && !entry.dirent.isDirectory(); - } - _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { - if (!this._settings.absolute) { - return false; - } - const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); - return utils.pattern.matchAny(fullpath, patternsRe); - } - _isMatchToPatterns(filepath, patternsRe, isDirectory) { - const isMatched = utils.pattern.matchAny(filepath, patternsRe); - if (!isMatched && isDirectory) { - return utils.pattern.matchAny(filepath + "/", patternsRe); - } - return isMatched; - } - }; - exports.default = EntryFilter; - } -}); -var require_error = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/error.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var ErrorFilter = class { - constructor(_settings) { - this._settings = _settings; - } - getFilter() { - return (error) => this._isNonFatalError(error); - } - _isNonFatalError(error) { - return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; - } - }; - exports.default = ErrorFilter; - } -}); -var require_entry2 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var EntryTransformer = class { - constructor(_settings) { - this._settings = _settings; - } - getTransformer() { - return (entry) => this._transform(entry); - } - _transform(entry) { - let filepath = entry.path; - if (this._settings.absolute) { - filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); - filepath = utils.path.unixify(filepath); - } - if (this._settings.markDirectories && entry.dirent.isDirectory()) { - filepath += "/"; - } - if (!this._settings.objectMode) { - return filepath; - } - return Object.assign(Object.assign({}, entry), { path: filepath }); - } - }; - exports.default = EntryTransformer; - } -}); -var require_provider = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/provider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var deep_1 = require_deep(); - var entry_1 = require_entry(); - var error_1 = require_error(); - var entry_2 = require_entry2(); - var Provider = class { - constructor(_settings) { - this._settings = _settings; - this.errorFilter = new error_1.default(this._settings); - this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); - this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); - this.entryTransformer = new entry_2.default(this._settings); - } - _getRootDirectory(task) { - return path2.resolve(this._settings.cwd, task.base); - } - _getReaderOptions(task) { - const basePath = task.base === "." ? "" : task.base; - return { - basePath, - pathSegmentSeparator: "/", - concurrency: this._settings.concurrency, - deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), - entryFilter: this.entryFilter.getFilter(task.positive, task.negative), - errorFilter: this.errorFilter.getFilter(), - followSymbolicLinks: this._settings.followSymbolicLinks, - fs: this._settings.fs, - stats: this._settings.stats, - throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, - transform: this.entryTransformer.getTransformer() - }; - } - _getMicromatchOptions() { - return { - dot: this._settings.dot, - matchBase: this._settings.baseNameMatch, - nobrace: !this._settings.braceExpansion, - nocase: !this._settings.caseSensitiveMatch, - noext: !this._settings.extglob, - noglobstar: !this._settings.globstar, - posix: true, - strictSlashes: false - }; - } - }; - exports.default = Provider; - } -}); -var require_async6 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async5(); - var provider_1 = require_provider(); - var ProviderAsync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new async_1.default(this._settings); - } - async read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = await this.api(root, task, options); - return entries.map((entry) => options.transform(entry)); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderAsync; - } -}); -var require_stream4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_AH6QHEOA.__require)("stream"); - var stream_2 = require_stream3(); - var provider_1 = require_provider(); - var ProviderStream = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new stream_2.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const source = this.api(root, task, options); - const destination = new stream_1.Readable({ objectMode: true, read: () => { - } }); - source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end")); - destination.once("close", () => source.destroy()); - return destination; - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderStream; - } -}); -var require_sync5 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderSync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkSync = fsWalk.walkSync; - this._statSync = fsStat.statSync; - } - dynamic(root, options) { - return this._walkSync(root, options); - } - static(patterns, options) { - const entries = []; - for (const pattern of patterns) { - const filepath = this._getFullEntryPath(pattern); - const entry = this._getEntry(filepath, pattern, options); - if (entry === null || !options.entryFilter(entry)) { - continue; - } - entries.push(entry); - } - return entries; - } - _getEntry(filepath, pattern, options) { - try { - const stats = this._getStat(filepath); - return this._makeEntry(stats, pattern); - } catch (error) { - if (options.errorFilter(error)) { - return null; - } - throw error; - } - } - _getStat(filepath) { - return this._statSync(filepath, this._fsStatSettings); - } - }; - exports.default = ReaderSync; - } -}); -var require_sync6 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync5(); - var provider_1 = require_provider(); - var ProviderSync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new sync_1.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = this.api(root, task, options); - return entries.map(options.transform); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderSync; - } -}); -var require_settings4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var os = (0, import_chunk_AH6QHEOA.__require)("os"); - var CPU_COUNT = Math.max(os.cpus().length, 1); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - lstatSync: fs2.lstatSync, - stat: fs2.stat, - statSync: fs2.statSync, - readdir: fs2.readdir, - readdirSync: fs2.readdirSync - }; - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.absolute = this._getValue(this._options.absolute, false); - this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); - this.braceExpansion = this._getValue(this._options.braceExpansion, true); - this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); - this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); - this.cwd = this._getValue(this._options.cwd, process.cwd()); - this.deep = this._getValue(this._options.deep, Infinity); - this.dot = this._getValue(this._options.dot, false); - this.extglob = this._getValue(this._options.extglob, true); - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); - this.fs = this._getFileSystemMethods(this._options.fs); - this.globstar = this._getValue(this._options.globstar, true); - this.ignore = this._getValue(this._options.ignore, []); - this.markDirectories = this._getValue(this._options.markDirectories, false); - this.objectMode = this._getValue(this._options.objectMode, false); - this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); - this.onlyFiles = this._getValue(this._options.onlyFiles, true); - this.stats = this._getValue(this._options.stats, false); - this.suppressErrors = this._getValue(this._options.suppressErrors, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); - this.unique = this._getValue(this._options.unique, true); - if (this.onlyDirectories) { - this.onlyFiles = false; - } - if (this.stats) { - this.objectMode = true; - } - this.ignore = [].concat(this.ignore); - } - _getValue(option, value) { - return option === void 0 ? value : option; - } - _getFileSystemMethods(methods = {}) { - return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); - } - }; - exports.default = Settings; - } -}); -var require_out4 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/index.js"(exports, module2) { - "use strict"; - var taskManager = require_tasks(); - var async_1 = require_async6(); - var stream_1 = require_stream4(); - var sync_1 = require_sync6(); - var settings_1 = require_settings4(); - var utils = require_utils3(); - async function FastGlob(source, options) { - assertPatternsInput(source); - const works = getWorks(source, async_1.default, options); - const result = await Promise.all(works); - return utils.array.flatten(result); - } - (function(FastGlob2) { - FastGlob2.glob = FastGlob2; - FastGlob2.globSync = sync; - FastGlob2.globStream = stream; - FastGlob2.async = FastGlob2; - function sync(source, options) { - assertPatternsInput(source); - const works = getWorks(source, sync_1.default, options); - return utils.array.flatten(works); - } - FastGlob2.sync = sync; - function stream(source, options) { - assertPatternsInput(source); - const works = getWorks(source, stream_1.default, options); - return utils.stream.merge(works); - } - FastGlob2.stream = stream; - function generateTasks(source, options) { - assertPatternsInput(source); - const patterns = [].concat(source); - const settings = new settings_1.default(options); - return taskManager.generate(patterns, settings); - } - FastGlob2.generateTasks = generateTasks; - function isDynamicPattern(source, options) { - assertPatternsInput(source); - const settings = new settings_1.default(options); - return utils.pattern.isDynamicPattern(source, settings); - } - FastGlob2.isDynamicPattern = isDynamicPattern; - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escape(source); - } - FastGlob2.escapePath = escapePath; - function convertPathToPattern(source) { - assertPatternsInput(source); - return utils.path.convertPathToPattern(source); - } - FastGlob2.convertPathToPattern = convertPathToPattern; - let posix; - (function(posix2) { - function escapePath2(source) { - assertPatternsInput(source); - return utils.path.escapePosixPath(source); - } - posix2.escapePath = escapePath2; - function convertPathToPattern2(source) { - assertPatternsInput(source); - return utils.path.convertPosixPathToPattern(source); - } - posix2.convertPathToPattern = convertPathToPattern2; - })(posix = FastGlob2.posix || (FastGlob2.posix = {})); - let win32; - (function(win322) { - function escapePath2(source) { - assertPatternsInput(source); - return utils.path.escapeWindowsPath(source); - } - win322.escapePath = escapePath2; - function convertPathToPattern2(source) { - assertPatternsInput(source); - return utils.path.convertWindowsPathToPattern(source); - } - win322.convertPathToPattern = convertPathToPattern2; - })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {})); - })(FastGlob || (FastGlob = {})); - function getWorks(source, _Provider, options) { - const patterns = [].concat(source); - const settings = new settings_1.default(options); - const tasks = taskManager.generate(patterns, settings); - const provider = new _Provider(settings); - return tasks.map(provider.read, provider); - } - function assertPatternsInput(input) { - const source = [].concat(input); - const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); - if (!isValidSource) { - throw new TypeError("Patterns must be a string (non empty) or an array of strings"); - } - } - module2.exports = FastGlob; - } -}); -var require_path_type = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) { - "use strict"; - var { promisify: promisify3 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - async function isType(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== "string") { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - try { - const stats = await promisify3(fs2[fsStatType])(filePath); - return stats[statsMethodName](); - } catch (error) { - if (error.code === "ENOENT") { - return false; - } - throw error; - } - } - function isTypeSync(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== "string") { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - try { - return fs2[fsStatType](filePath)[statsMethodName](); - } catch (error) { - if (error.code === "ENOENT") { - return false; - } - throw error; - } - } - exports.isFile = isType.bind(null, "stat", "isFile"); - exports.isDirectory = isType.bind(null, "stat", "isDirectory"); - exports.isSymlink = isType.bind(null, "lstat", "isSymbolicLink"); - exports.isFileSync = isTypeSync.bind(null, "statSync", "isFile"); - exports.isDirectorySync = isTypeSync.bind(null, "statSync", "isDirectory"); - exports.isSymlinkSync = isTypeSync.bind(null, "lstatSync", "isSymbolicLink"); - } -}); -var require_dir_glob = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var pathType = require_path_type(); - var getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]; - var getPath = (filepath, cwd) => { - const pth = filepath[0] === "!" ? filepath.slice(1) : filepath; - return path2.isAbsolute(pth) ? pth : path2.join(cwd, pth); - }; - var addExtensions = (file, extensions) => { - if (path2.extname(file)) { - return `**/${file}`; - } - return `**/${file}.${getExtensions(extensions)}`; - }; - var getGlob = (directory, options) => { - if (options.files && !Array.isArray(options.files)) { - throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof options.files}\``); - } - if (options.extensions && !Array.isArray(options.extensions)) { - throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``); - } - if (options.files && options.extensions) { - return options.files.map((x) => path2.posix.join(directory, addExtensions(x, options.extensions))); - } - if (options.files) { - return options.files.map((x) => path2.posix.join(directory, `**/${x}`)); - } - if (options.extensions) { - return [path2.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)]; - } - return [path2.posix.join(directory, "**")]; - }; - module2.exports = async (input, options) => { - options = { - cwd: process.cwd(), - ...options - }; - if (typeof options.cwd !== "string") { - throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``); - } - const globs = await Promise.all([].concat(input).map(async (x) => { - const isDirectory = await pathType.isDirectory(getPath(x, options.cwd)); - return isDirectory ? getGlob(x, options) : x; - })); - return [].concat.apply([], globs); - }; - module2.exports.sync = (input, options) => { - options = { - cwd: process.cwd(), - ...options - }; - if (typeof options.cwd !== "string") { - throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``); - } - const globs = [].concat(input).map((x) => pathType.isDirectorySync(getPath(x, options.cwd)) ? getGlob(x, options) : x); - return [].concat.apply([], globs); - }; - } -}); -var require_ignore = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) { - "use strict"; - function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; - } - var EMPTY = ""; - var SPACE = " "; - var ESCAPE = "\\"; - var REGEX_TEST_BLANK_LINE = /^\s+$/; - var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; - var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; - var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; - var REGEX_SPLITALL_CRLF = /\r?\n/g; - var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; - var SLASH = "/"; - var TMP_KEY_IGNORE = "node-ignore"; - if (typeof Symbol !== "undefined") { - TMP_KEY_IGNORE = Symbol.for("node-ignore"); - } - var KEY_IGNORE = TMP_KEY_IGNORE; - var define = (object, key, value) => Object.defineProperty(object, key, { value }); - var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; - var RETURN_FALSE = () => false; - var sanitizeRange = (range) => range.replace( - REGEX_REGEXP_RANGE, - (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY - ); - var cleanRangeBackSlash = (slashes) => { - const { length } = slashes; - return slashes.slice(0, length - length % 2); - }; - var REPLACERS = [ - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a \ ) -> (a ) - /\\?\s+$/, - (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY - ], - // replace (\ ) with ' ' - [ - /\\\s/g, - () => SPACE - ], - // Escape metacharacters - // which is written down by users but means special for regular expressions. - // > There are 12 characters with special meanings: - // > - the backslash \, - // > - the caret ^, - // > - the dollar sign $, - // > - the period or dot ., - // > - the vertical bar or pipe symbol |, - // > - the question mark ?, - // > - the asterisk or star *, - // > - the plus sign +, - // > - the opening parenthesis (, - // > - the closing parenthesis ), - // > - and the opening square bracket [, - // > - the opening curly brace {, - // > These special characters are often called "metacharacters". - [ - /[\\$.|*+(){^]/g, - (match) => `\\${match}` - ], - [ - // > a question mark (?) matches a single character - /(?!\\)\?/g, - () => "[^/]" - ], - // leading slash - [ - // > A leading slash matches the beginning of the pathname. - // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". - // A leading slash matches the beginning of the pathname - /^\//, - () => "^" - ], - // replace special metacharacter slash after the leading slash - [ - /\//g, - () => "\\/" - ], - [ - // > A leading "**" followed by a slash means match in all directories. - // > For example, "**/foo" matches file or directory "foo" anywhere, - // > the same as pattern "foo". - // > "**/foo/bar" matches file or directory "bar" anywhere that is directly - // > under directory "foo". - // Notice that the '*'s have been replaced as '\\*' - /^\^*\\\*\\\*\\\//, - // '**/foo' <-> 'foo' - () => "^(?:.*\\/)?" - ], - // starting - [ - // there will be no leading '/' - // (which has been replaced by section "leading slash") - // If starts with '**', adding a '^' to the regular expression also works - /^(?=[^^])/, - function startingReplacer() { - return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^"; - } - ], - // two globstars - [ - // Use lookahead assertions so that we could match more than one `'/**'` - /\\\/\\\*\\\*(?=\\\/|$)/g, - // Zero, one or several directories - // should not use '*', or it will be replaced by the next replacer - // Check if it is not the last `'/**'` - (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+" - ], - // normal intermediate wildcards - [ - // Never replace escaped '*' - // ignore rule '\*' will match the path '*' - // 'abc.*/' -> go - // 'abc.*' -> skip this rule, - // coz trailing single wildcard will be handed by [trailing wildcard] - /(^|[^\\]+)(\\\*)+(?=.+)/g, - // '*.js' matches '.js' - // '*.js' doesn't match 'abc' - (_, p1, p2) => { - const unescaped = p2.replace(/\\\*/g, "[^\\/]*"); - return p1 + unescaped; - } - ], - [ - // unescape, revert step 3 except for back slash - // For example, if a user escape a '\\*', - // after step 3, the result will be '\\\\\\*' - /\\\\\\(?=[$.|*+(){^])/g, - () => ESCAPE - ], - [ - // '\\\\' -> '\\' - /\\\\/g, - () => ESCAPE - ], - [ - // > The range notation, e.g. [a-zA-Z], - // > can be used to match one of the characters in a range. - // `\` is escaped by step 3 - /(\\)?\[([^\]/]*?)(\\*)($|\])/g, - (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]" - ], - // ending - [ - // 'js' will not match 'js.' - // 'ab' will not match 'abc' - /(?:[^*])$/, - // WTF! - // https://git-scm.com/docs/gitignore - // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) - // which re-fixes #24, #38 - // > If there is a separator at the end of the pattern then the pattern - // > will only match directories, otherwise the pattern can match both - // > files and directories. - // 'js*' will not match 'a.js' - // 'js/' will not match 'a.js' - // 'js' will match 'a.js' and 'a.js/' - (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)` - ], - // trailing wildcard - [ - /(\^|\\\/)?\\\*$/, - (_, p1) => { - const prefix = p1 ? `${p1}[^/]+` : "[^/]*"; - return `${prefix}(?=$|\\/$)`; - } - ] - ]; - var regexCache = /* @__PURE__ */ Object.create(null); - var makeRegex = (pattern, ignoreCase) => { - let source = regexCache[pattern]; - if (!source) { - source = REPLACERS.reduce( - (prev, current) => prev.replace(current[0], current[1].bind(pattern)), - pattern - ); - regexCache[pattern] = source; - } - return ignoreCase ? new RegExp(source, "i") : new RegExp(source); - }; - var isString = (subject) => typeof subject === "string"; - var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0; - var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF); - var IgnoreRule = class { - constructor(origin, pattern, negative, regex) { - this.origin = origin; - this.pattern = pattern; - this.negative = negative; - this.regex = regex; - } - }; - var createRule = (pattern, ignoreCase) => { - const origin = pattern; - let negative = false; - if (pattern.indexOf("!") === 0) { - negative = true; - pattern = pattern.substr(1); - } - pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#"); - const regex = makeRegex(pattern, ignoreCase); - return new IgnoreRule( - origin, - pattern, - negative, - regex - ); - }; - var throwError = (message, Ctor) => { - throw new Ctor(message); - }; - var checkPath = (path2, originalPath, doThrow) => { - if (!isString(path2)) { - return doThrow( - `path must be a string, but got \`${originalPath}\``, - TypeError - ); - } - if (!path2) { - return doThrow(`path must not be empty`, TypeError); - } - if (checkPath.isNotRelative(path2)) { - const r = "`path.relative()`d"; - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError - ); - } - return true; - }; - var isNotRelative = (path2) => REGEX_TEST_INVALID_PATH.test(path2); - checkPath.isNotRelative = isNotRelative; - checkPath.convert = (p) => p; - var Ignore = class { - constructor({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _initCache() { - this._ignoreCache = /* @__PURE__ */ Object.create(null); - this._testCache = /* @__PURE__ */ Object.create(null); - } - _addPattern(pattern) { - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; - return; - } - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); - } - } - // @param {Array | string | Ignore} pattern - add(pattern) { - this._added = false; - makeArray( - isString(pattern) ? splitPattern(pattern) : pattern - ).forEach(this._addPattern, this); - if (this._added) { - this._initCache(); - } - return this; - } - // legacy - addPattern(pattern) { - return this.add(pattern); - } - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - // @returns {TestResult} true if a file is ignored - _testOne(path2, checkUnignored) { - let ignored = false; - let unignored = false; - this._rules.forEach((rule) => { - const { negative } = rule; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; - } - const matched = rule.regex.test(path2); - if (matched) { - ignored = !negative; - unignored = negative; - } - }); - return { - ignored, - unignored - }; - } - // @returns {TestResult} - _test(originalPath, cache, checkUnignored, slices) { - const path2 = originalPath && checkPath.convert(originalPath); - checkPath( - path2, - originalPath, - this._allowRelativePaths ? RETURN_FALSE : throwError - ); - return this._t(path2, cache, checkUnignored, slices); - } - _t(path2, cache, checkUnignored, slices) { - if (path2 in cache) { - return cache[path2]; - } - if (!slices) { - slices = path2.split(SLASH); - } - slices.pop(); - if (!slices.length) { - return cache[path2] = this._testOne(path2, checkUnignored); - } - const parent = this._t( - slices.join(SLASH) + SLASH, - cache, - checkUnignored, - slices - ); - return cache[path2] = parent.ignored ? parent : this._testOne(path2, checkUnignored); - } - ignores(path2) { - return this._test(path2, this._ignoreCache, false).ignored; - } - createFilter() { - return (path2) => !this.ignores(path2); - } - filter(paths) { - return makeArray(paths).filter(this.createFilter()); - } - // @returns {TestResult} - test(path2) { - return this._test(path2, this._testCache, true); - } - }; - var factory = (options) => new Ignore(options); - var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE); - factory.isPathValid = isPathValid; - factory.default = factory; - module2.exports = factory; - if ( - // Detect `process` so that it can run in browsers. - typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") - ) { - const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"); - checkPath.convert = makePosix; - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = (path2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2); - } - } -}); -var require_slash = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module2) { - "use strict"; - module2.exports = (path2) => { - const isExtendedLengthPath = /^\\\\\?\\/.test(path2); - const hasNonAscii = /[^\u0000-\u0080]+/.test(path2); - if (isExtendedLengthPath || hasNonAscii) { - return path2; - } - return path2.replace(/\\/g, "/"); - }; - } -}); -var require_gitignore = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(exports, module2) { - "use strict"; - var { promisify: promisify3 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var fastGlob = require_out4(); - var gitIgnore = require_ignore(); - var slash = require_slash(); - var DEFAULT_IGNORE = [ - "**/node_modules/**", - "**/flow-typed/**", - "**/coverage/**", - "**/.git" - ]; - var readFileP = promisify3(fs2.readFile); - var mapGitIgnorePatternTo = (base) => (ignore) => { - if (ignore.startsWith("!")) { - return "!" + path2.posix.join(base, ignore.slice(1)); - } - return path2.posix.join(base, ignore); - }; - var parseGitIgnore = (content, options) => { - const base = slash(path2.relative(options.cwd, path2.dirname(options.fileName))); - return content.split(/\r?\n/).filter(Boolean).filter((line) => !line.startsWith("#")).map(mapGitIgnorePatternTo(base)); - }; - var reduceIgnore = (files) => { - const ignores = gitIgnore(); - for (const file of files) { - ignores.add(parseGitIgnore(file.content, { - cwd: file.cwd, - fileName: file.filePath - })); - } - return ignores; - }; - var ensureAbsolutePathForCwd = (cwd, p) => { - cwd = slash(cwd); - if (path2.isAbsolute(p)) { - if (slash(p).startsWith(cwd)) { - return p; - } - throw new Error(`Path ${p} is not in cwd ${cwd}`); - } - return path2.join(cwd, p); - }; - var getIsIgnoredPredecate = (ignores, cwd) => { - return (p) => ignores.ignores(slash(path2.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p)))); - }; - var getFile = async (file, cwd) => { - const filePath = path2.join(cwd, file); - const content = await readFileP(filePath, "utf8"); - return { - cwd, - filePath, - content - }; - }; - var getFileSync = (file, cwd) => { - const filePath = path2.join(cwd, file); - const content = fs2.readFileSync(filePath, "utf8"); - return { - cwd, - filePath, - content - }; - }; - var normalizeOptions = ({ - ignore = [], - cwd = slash(process.cwd()) - } = {}) => { - return { ignore, cwd }; - }; - module2.exports = async (options) => { - options = normalizeOptions(options); - const paths = await fastGlob("**/.gitignore", { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - const files = await Promise.all(paths.map((file) => getFile(file, options.cwd))); - const ignores = reduceIgnore(files); - return getIsIgnoredPredecate(ignores, options.cwd); - }; - module2.exports.sync = (options) => { - options = normalizeOptions(options); - const paths = fastGlob.sync("**/.gitignore", { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - const files = paths.map((file) => getFileSync(file, options.cwd)); - const ignores = reduceIgnore(files); - return getIsIgnoredPredecate(ignores, options.cwd); - }; - } -}); -var require_stream_utils = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/stream-utils.js"(exports, module2) { - "use strict"; - var { Transform } = (0, import_chunk_AH6QHEOA.__require)("stream"); - var ObjectTransform = class extends Transform { - constructor() { - super({ - objectMode: true - }); - } - }; - var FilterStream = class extends ObjectTransform { - constructor(filter) { - super(); - this._filter = filter; - } - _transform(data, encoding, callback) { - if (this._filter(data)) { - this.push(data); - } - callback(); - } - }; - var UniqueStream = class extends ObjectTransform { - constructor() { - super(); - this._pushed = /* @__PURE__ */ new Set(); - } - _transform(data, encoding, callback) { - if (!this._pushed.has(data)) { - this.push(data); - this._pushed.add(data); - } - callback(); - } - }; - module2.exports = { - FilterStream, - UniqueStream - }; - } -}); -var require_globby = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var arrayUnion = require_array_union(); - var merge2 = require_merge2(); - var fastGlob = require_out4(); - var dirGlob = require_dir_glob(); - var gitignore = require_gitignore(); - var { FilterStream, UniqueStream } = require_stream_utils(); - var DEFAULT_FILTER = () => false; - var isNegative = (pattern) => pattern[0] === "!"; - var assertPatternsInput = (patterns) => { - if (!patterns.every((pattern) => typeof pattern === "string")) { - throw new TypeError("Patterns must be a string or an array of strings"); - } - }; - var checkCwdOption = (options = {}) => { - if (!options.cwd) { - return; - } - let stat; - try { - stat = fs2.statSync(options.cwd); - } catch { - return; - } - if (!stat.isDirectory()) { - throw new Error("The `cwd` option must be a path to a directory"); - } - }; - var getPathString = (p) => p.stats instanceof fs2.Stats ? p.path : p; - var generateGlobTasks = (patterns, taskOptions) => { - patterns = arrayUnion([].concat(patterns)); - assertPatternsInput(patterns); - checkCwdOption(taskOptions); - const globTasks = []; - taskOptions = { - ignore: [], - expandDirectories: true, - ...taskOptions - }; - for (const [index, pattern] of patterns.entries()) { - if (isNegative(pattern)) { - continue; - } - const ignore = patterns.slice(index).filter((pattern2) => isNegative(pattern2)).map((pattern2) => pattern2.slice(1)); - const options = { - ...taskOptions, - ignore: taskOptions.ignore.concat(ignore) - }; - globTasks.push({ pattern, options }); - } - return globTasks; - }; - var globDirs = (task, fn) => { - let options = {}; - if (task.options.cwd) { - options.cwd = task.options.cwd; - } - if (Array.isArray(task.options.expandDirectories)) { - options = { - ...options, - files: task.options.expandDirectories - }; - } else if (typeof task.options.expandDirectories === "object") { - options = { - ...options, - ...task.options.expandDirectories - }; - } - return fn(task.pattern, options); - }; - var getPattern = (task, fn) => task.options.expandDirectories ? globDirs(task, fn) : [task.pattern]; - var getFilterSync = (options) => { - return options && options.gitignore ? gitignore.sync({ cwd: options.cwd, ignore: options.ignore }) : DEFAULT_FILTER; - }; - var globToTask = (task) => (glob) => { - const { options } = task; - if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) { - options.ignore = dirGlob.sync(options.ignore); - } - return { - pattern: glob, - options - }; - }; - module2.exports = async (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const getFilter = async () => { - return options && options.gitignore ? gitignore({ cwd: options.cwd, ignore: options.ignore }) : DEFAULT_FILTER; - }; - const getTasks = async () => { - const tasks2 = await Promise.all(globTasks.map(async (task) => { - const globs = await getPattern(task, dirGlob); - return Promise.all(globs.map(globToTask(task))); - })); - return arrayUnion(...tasks2); - }; - const [filter, tasks] = await Promise.all([getFilter(), getTasks()]); - const paths = await Promise.all(tasks.map((task) => fastGlob(task.pattern, task.options))); - return arrayUnion(...paths).filter((path_) => !filter(getPathString(path_))); - }; - module2.exports.sync = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - const filter = getFilterSync(options); - let matches = []; - for (const task of tasks) { - matches = arrayUnion(matches, fastGlob.sync(task.pattern, task.options)); - } - return matches.filter((path_) => !filter(path_)); - }; - module2.exports.stream = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - const filter = getFilterSync(options); - const filterStream = new FilterStream((p) => !filter(p)); - const uniqueStream = new UniqueStream(); - return merge2(tasks.map((task) => fastGlob.stream(task.pattern, task.options))).pipe(filterStream).pipe(uniqueStream); - }; - module2.exports.generateGlobTasks = generateGlobTasks; - module2.exports.hasMagic = (patterns, options) => [].concat(patterns).some((pattern) => fastGlob.isDynamicPattern(pattern, options)); - module2.exports.gitignore = gitignore; - } -}); -var require_is_path_cwd = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - module2.exports = (path_) => { - let cwd = process.cwd(); - path_ = path2.resolve(path_); - if (process.platform === "win32") { - cwd = cwd.toLowerCase(); - path_ = path_.toLowerCase(); - } - return path_ === cwd; - }; - } -}); -var require_is_path_inside = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - module2.exports = (childPath, parentPath) => { - const relation = path2.relative(parentPath, childPath); - return Boolean( - relation && relation !== ".." && !relation.startsWith(`..${path2.sep}`) && relation !== path2.resolve(childPath) - ); - }; - } -}); -var require_del = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module2) { - "use strict"; - var { promisify: promisify3 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var globby = require_globby(); - var isGlob = require_is_glob(); - var slash = require_slash(); - var gracefulFs = (0, import_chunk_FQ2BOR66.require_graceful_fs)(); - var isPathCwd = require_is_path_cwd(); - var isPathInside = require_is_path_inside(); - var rimraf2 = (0, import_chunk_RGVHWUUH.require_rimraf)(); - var pMap = (0, import_chunk_RGVHWUUH.require_p_map)(); - var rimrafP = promisify3(rimraf2); - var rimrafOptions = { - glob: false, - unlink: gracefulFs.unlink, - unlinkSync: gracefulFs.unlinkSync, - chmod: gracefulFs.chmod, - chmodSync: gracefulFs.chmodSync, - stat: gracefulFs.stat, - statSync: gracefulFs.statSync, - lstat: gracefulFs.lstat, - lstatSync: gracefulFs.lstatSync, - rmdir: gracefulFs.rmdir, - rmdirSync: gracefulFs.rmdirSync, - readdir: gracefulFs.readdir, - readdirSync: gracefulFs.readdirSync - }; - function safeCheck(file, cwd) { - if (isPathCwd(file)) { - throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option."); - } - if (!isPathInside(file, cwd)) { - throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option."); - } - } - function normalizePatterns(patterns) { - patterns = Array.isArray(patterns) ? patterns : [patterns]; - patterns = patterns.map((pattern) => { - if (process.platform === "win32" && isGlob(pattern) === false) { - return slash(pattern); - } - return pattern; - }); - return patterns; - } - module2.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => { - }, ...options } = {}) => { - options = { - expandDirectories: false, - onlyFiles: false, - followSymbolicLinks: false, - cwd, - ...options - }; - patterns = normalizePatterns(patterns); - const files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a)); - if (files.length === 0) { - onProgress({ - totalCount: 0, - deletedCount: 0, - percent: 1 - }); - } - let deletedCount = 0; - const mapper = async (file) => { - file = path2.resolve(cwd, file); - if (!force) { - safeCheck(file, cwd); - } - if (!dryRun) { - await rimrafP(file, rimrafOptions); - } - deletedCount += 1; - onProgress({ - totalCount: files.length, - deletedCount, - percent: deletedCount / files.length - }); - return file; - }; - const removedFiles = await pMap(files, mapper, options); - removedFiles.sort((a, b) => a.localeCompare(b)); - return removedFiles; - }; - module2.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => { - options = { - expandDirectories: false, - onlyFiles: false, - followSymbolicLinks: false, - cwd, - ...options - }; - patterns = normalizePatterns(patterns); - const files = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)); - const removedFiles = files.map((file) => { - file = path2.resolve(cwd, file); - if (!force) { - safeCheck(file, cwd); - } - if (!dryRun) { - rimraf2.sync(file, rimrafOptions); - } - return file; - }); - removedFiles.sort((a, b) => a.localeCompare(b)); - return removedFiles; - }; - } -}); -var require_tempy = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs"); - var path2 = (0, import_chunk_AH6QHEOA.__require)("path"); - var uniqueString = require_unique_string(); - var tempDir = require_temp_dir(); - var isStream = require_is_stream(); - var del2 = require_del(); - var stream = (0, import_chunk_AH6QHEOA.__require)("stream"); - var { promisify: promisify3 } = (0, import_chunk_AH6QHEOA.__require)("util"); - var pipeline2 = promisify3(stream.pipeline); - var { writeFile } = fs2.promises; - var getPath = (prefix = "") => path2.join(tempDir, prefix + uniqueString()); - var writeStream = async (filePath, data) => pipeline2(data, fs2.createWriteStream(filePath)); - var createTask = (tempyFunction, { extraArguments = 0 } = {}) => async (...arguments_) => { - const [callback, options] = arguments_.slice(extraArguments); - const result = await tempyFunction(...arguments_.slice(0, extraArguments), options); - try { - return await callback(result); - } finally { - await del2(result, { force: true }); - } - }; - module2.exports.file = (options) => { - options = { - ...options - }; - if (options.name) { - if (options.extension !== void 0 && options.extension !== null) { - throw new Error("The `name` and `extension` options are mutually exclusive"); - } - return path2.join(module2.exports.directory(), options.name); - } - return getPath() + (options.extension === void 0 || options.extension === null ? "" : "." + options.extension.replace(/^\./, "")); - }; - module2.exports.file.task = createTask(module2.exports.file); - module2.exports.directory = ({ prefix = "" } = {}) => { - const directory = getPath(prefix); - fs2.mkdirSync(directory); - return directory; - }; - module2.exports.directory.task = createTask(module2.exports.directory); - module2.exports.write = async (data, options) => { - const filename = module2.exports.file(options); - const write = isStream(data) ? writeStream : writeFile; - await write(filename, data); - return filename; - }; - module2.exports.write.task = createTask(module2.exports.write, { extraArguments: 1 }); - module2.exports.writeSync = (data, options) => { - const filename = module2.exports.file(options); - fs2.writeFileSync(filename, data); - return filename; - }; - Object.defineProperty(module2.exports, "root", { - get() { - return tempDir; - } - }); - } -}); -var import_hasha = (0, import_chunk_AH6QHEOA.__toESM)(require_hasha()); -function dataUriToBuffer(uri) { - if (!/^data:/i.test(uri)) { - throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); - } - uri = uri.replace(/\r?\n/g, ""); - const firstComma = uri.indexOf(","); - if (firstComma === -1 || firstComma <= 4) { - throw new TypeError("malformed data: URI"); - } - const meta = uri.substring(5, firstComma).split(";"); - let charset = ""; - let base64 = false; - const type = meta[0] || "text/plain"; - let typeFull = type; - for (let i = 1; i < meta.length; i++) { - if (meta[i] === "base64") { - base64 = true; - } else if (meta[i]) { - typeFull += `;${meta[i]}`; - if (meta[i].indexOf("charset=") === 0) { - charset = meta[i].substring(8); - } - } - } - if (!meta[0] && !charset.length) { - typeFull += ";charset=US-ASCII"; - charset = "US-ASCII"; - } - const encoding = base64 ? "base64" : "ascii"; - const data = unescape(uri.substring(firstComma + 1)); - const buffer = Buffer.from(data, encoding); - buffer.type = type; - buffer.typeFull = typeFull; - buffer.charset = charset; - return buffer; -} -var dist_default = dataUriToBuffer; -var FetchBaseError = class extends Error { - constructor(message, type) { - super(message); - Error.captureStackTrace(this, this.constructor); - this.type = type; - } - get name() { - return this.constructor.name; - } - get [Symbol.toStringTag]() { - return this.constructor.name; - } -}; -var FetchError = class extends FetchBaseError { - /** - * @param {string} message - Error message for human - * @param {string} [type] - Error type for machine - * @param {SystemError} [systemError] - For Node.js system error - */ - constructor(message, type, systemError) { - super(message, type); - if (systemError) { - this.code = this.errno = systemError.code; - this.erroredSysCall = systemError.syscall; - } - } -}; -var NAME = Symbol.toStringTag; -var isURLSearchParameters = (object) => { - return typeof object === "object" && typeof object.append === "function" && typeof object.delete === "function" && typeof object.get === "function" && typeof object.getAll === "function" && typeof object.has === "function" && typeof object.set === "function" && typeof object.sort === "function" && object[NAME] === "URLSearchParams"; -}; -var isBlob = (object) => { - return object && typeof object === "object" && typeof object.arrayBuffer === "function" && typeof object.type === "string" && typeof object.stream === "function" && typeof object.constructor === "function" && /^(Blob|File)$/.test(object[NAME]); -}; -var isAbortSignal = (object) => { - return typeof object === "object" && (object[NAME] === "AbortSignal" || object[NAME] === "EventTarget"); -}; -var isDomainOrSubdomain = (destination, original) => { - const orig = new URL(original).hostname; - const dest = new URL(destination).hostname; - return orig === dest || orig.endsWith(`.${dest}`); -}; -var isSameProtocol = (destination, original) => { - const orig = new URL(original).protocol; - const dest = new URL(destination).protocol; - return orig === dest; -}; -var pipeline = (0, import_util.promisify)(import_stream2.default.pipeline); -var INTERNALS = Symbol("Body internals"); -var Body = class { - constructor(body, { - size = 0 - } = {}) { - let boundary = null; - if (body === null) { - body = null; - } else if (isURLSearchParameters(body)) { - body = import_buffer2.Buffer.from(body.toString()); - } else if (isBlob(body)) { - } else if (import_buffer2.Buffer.isBuffer(body)) { - } else if (import_util.types.isAnyArrayBuffer(body)) { - body = import_buffer2.Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - body = import_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof import_stream2.default) { - } else if (body instanceof import_chunk_VTJS2JJN.FormData) { - body = (0, import_chunk_VTJS2JJN.formDataToBlob)(body); - boundary = body.type.split("=")[1]; - } else { - body = import_buffer2.Buffer.from(String(body)); - } - let stream = body; - if (import_buffer2.Buffer.isBuffer(body)) { - stream = import_stream2.default.Readable.from(body); - } else if (isBlob(body)) { - stream = import_stream2.default.Readable.from(body.stream()); - } - this[INTERNALS] = { - body, - stream, - boundary, - disturbed: false, - error: null - }; - this.size = size; - if (body instanceof import_stream2.default) { - body.on("error", (error_) => { - const error = error_ instanceof FetchBaseError ? error_ : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${error_.message}`, "system", error_); - this[INTERNALS].error = error; - }); - } - } - get body() { - return this[INTERNALS].stream; - } - get bodyUsed() { - return this[INTERNALS].disturbed; - } - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - async arrayBuffer() { - const { buffer, byteOffset, byteLength } = await consumeBody(this); - return buffer.slice(byteOffset, byteOffset + byteLength); - } - async formData() { - const ct = this.headers.get("content-type"); - if (ct.startsWith("application/x-www-form-urlencoded")) { - const formData = new import_chunk_VTJS2JJN.FormData(); - const parameters = new URLSearchParams(await this.text()); - for (const [name, value] of parameters) { - formData.append(name, value); - } - return formData; - } - const { toFormData } = await import("./multipart-parser-47FFAP42.js"); - return toFormData(this.body, ct); - } - /** - * Return raw response as Blob - * - * @return Promise - */ - async blob() { - const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || ""; - const buf = await this.arrayBuffer(); - return new import_chunk_VTJS2JJN.fetch_blob_default([buf], { - type: ct - }); - } - /** - * Decode response as json - * - * @return Promise - */ - async json() { - const text = await this.text(); - return JSON.parse(text); - } - /** - * Decode response as text - * - * @return Promise - */ - async text() { - const buffer = await consumeBody(this); - return new TextDecoder().decode(buffer); - } - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody(this); - } -}; -Body.prototype.buffer = (0, import_util.deprecate)(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer"); -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true }, - data: { get: (0, import_util.deprecate)( - () => { - }, - "data doesn't exist, use json(), text(), arrayBuffer(), or body instead", - "https://github.com/node-fetch/node-fetch/issues/1000 (response)" - ) } -}); -async function consumeBody(data) { - if (data[INTERNALS].disturbed) { - throw new TypeError(`body used already for: ${data.url}`); - } - data[INTERNALS].disturbed = true; - if (data[INTERNALS].error) { - throw data[INTERNALS].error; - } - const { body } = data; - if (body === null) { - return import_buffer2.Buffer.alloc(0); - } - if (!(body instanceof import_stream2.default)) { - return import_buffer2.Buffer.alloc(0); - } - const accum = []; - let accumBytes = 0; - try { - for await (const chunk of body) { - if (data.size > 0 && accumBytes + chunk.length > data.size) { - const error = new FetchError(`content size at ${data.url} over limit: ${data.size}`, "max-size"); - body.destroy(error); - throw error; - } - accumBytes += chunk.length; - accum.push(chunk); - } - } catch (error) { - const error_ = error instanceof FetchBaseError ? error : new FetchError(`Invalid response body while trying to fetch ${data.url}: ${error.message}`, "system", error); - throw error_; - } - if (body.readableEnded === true || body._readableState.ended === true) { - try { - if (accum.every((c) => typeof c === "string")) { - return import_buffer2.Buffer.from(accum.join("")); - } - return import_buffer2.Buffer.concat(accum, accumBytes); - } catch (error) { - throw new FetchError(`Could not create Buffer from response body for ${data.url}: ${error.message}`, "system", error); - } - } else { - throw new FetchError(`Premature close of server response while trying to fetch ${data.url}`); - } -} -var clone = (instance, highWaterMark) => { - let p1; - let p2; - let { body } = instance[INTERNALS]; - if (instance.bodyUsed) { - throw new Error("cannot clone body after it is used"); - } - if (body instanceof import_stream2.default && typeof body.getBoundary !== "function") { - p1 = new import_stream2.PassThrough({ highWaterMark }); - p2 = new import_stream2.PassThrough({ highWaterMark }); - body.pipe(p1); - body.pipe(p2); - instance[INTERNALS].stream = p1; - body = p2; - } - return body; -}; -var getNonSpecFormDataBoundary = (0, import_util.deprecate)( - (body) => body.getBoundary(), - "form-data doesn't follow the spec and requires special treatment. Use alternative package", - "https://github.com/node-fetch/node-fetch/issues/1167" -); -var extractContentType = (body, request) => { - if (body === null) { - return null; - } - if (typeof body === "string") { - return "text/plain;charset=UTF-8"; - } - if (isURLSearchParameters(body)) { - return "application/x-www-form-urlencoded;charset=UTF-8"; - } - if (isBlob(body)) { - return body.type || null; - } - if (import_buffer2.Buffer.isBuffer(body) || import_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) { - return null; - } - if (body instanceof import_chunk_VTJS2JJN.FormData) { - return `multipart/form-data; boundary=${request[INTERNALS].boundary}`; - } - if (body && typeof body.getBoundary === "function") { - return `multipart/form-data;boundary=${getNonSpecFormDataBoundary(body)}`; - } - if (body instanceof import_stream2.default) { - return null; - } - return "text/plain;charset=UTF-8"; -}; -var getTotalBytes = (request) => { - const { body } = request[INTERNALS]; - if (body === null) { - return 0; - } - if (isBlob(body)) { - return body.size; - } - if (import_buffer2.Buffer.isBuffer(body)) { - return body.length; - } - if (body && typeof body.getLengthSync === "function") { - return body.hasKnownLength && body.hasKnownLength() ? body.getLengthSync() : null; - } - return null; -}; -var writeToStream = async (dest, { body }) => { - if (body === null) { - dest.end(); - } else { - await pipeline(body, dest); - } -}; -var validateHeaderName = typeof import_http2.default.validateHeaderName === "function" ? import_http2.default.validateHeaderName : (name) => { - if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name)) { - const error = new TypeError(`Header name must be a valid HTTP token [${name}]`); - Object.defineProperty(error, "code", { value: "ERR_INVALID_HTTP_TOKEN" }); - throw error; - } -}; -var validateHeaderValue = typeof import_http2.default.validateHeaderValue === "function" ? import_http2.default.validateHeaderValue : (name, value) => { - if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(value)) { - const error = new TypeError(`Invalid character in header content ["${name}"]`); - Object.defineProperty(error, "code", { value: "ERR_INVALID_CHAR" }); - throw error; - } -}; -var Headers = class _Headers extends URLSearchParams { - /** - * Headers class - * - * @constructor - * @param {HeadersInit} [init] - Response headers - */ - constructor(init) { - let result = []; - if (init instanceof _Headers) { - const raw = init.raw(); - for (const [name, values] of Object.entries(raw)) { - result.push(...values.map((value) => [name, value])); - } - } else if (init == null) { - } else if (typeof init === "object" && !import_util2.types.isBoxedPrimitive(init)) { - const method = init[Symbol.iterator]; - if (method == null) { - result.push(...Object.entries(init)); - } else { - if (typeof method !== "function") { - throw new TypeError("Header pairs must be iterable"); - } - result = [...init].map((pair) => { - if (typeof pair !== "object" || import_util2.types.isBoxedPrimitive(pair)) { - throw new TypeError("Each header pair must be an iterable object"); - } - return [...pair]; - }).map((pair) => { - if (pair.length !== 2) { - throw new TypeError("Each header pair must be a name/value tuple"); - } - return [...pair]; - }); - } - } else { - throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)"); - } - result = result.length > 0 ? result.map(([name, value]) => { - validateHeaderName(name); - validateHeaderValue(name, String(value)); - return [String(name).toLowerCase(), String(value)]; - }) : void 0; - super(result); - return new Proxy(this, { - get(target, p, receiver) { - switch (p) { - case "append": - case "set": - return (name, value) => { - validateHeaderName(name); - validateHeaderValue(name, String(value)); - return URLSearchParams.prototype[p].call( - target, - String(name).toLowerCase(), - String(value) - ); - }; - case "delete": - case "has": - case "getAll": - return (name) => { - validateHeaderName(name); - return URLSearchParams.prototype[p].call( - target, - String(name).toLowerCase() - ); - }; - case "keys": - return () => { - target.sort(); - return new Set(URLSearchParams.prototype.keys.call(target)).keys(); - }; - default: - return Reflect.get(target, p, receiver); - } - } - }); - } - get [Symbol.toStringTag]() { - return this.constructor.name; - } - toString() { - return Object.prototype.toString.call(this); - } - get(name) { - const values = this.getAll(name); - if (values.length === 0) { - return null; - } - let value = values.join(", "); - if (/^content-encoding$/i.test(name)) { - value = value.toLowerCase(); - } - return value; - } - forEach(callback, thisArg = void 0) { - for (const name of this.keys()) { - Reflect.apply(callback, thisArg, [this.get(name), name, this]); - } - } - *values() { - for (const name of this.keys()) { - yield this.get(name); - } - } - /** - * @type {() => IterableIterator<[string, string]>} - */ - *entries() { - for (const name of this.keys()) { - yield [name, this.get(name)]; - } - } - [Symbol.iterator]() { - return this.entries(); - } - /** - * Node-fetch non-spec method - * returning all headers and their values as array - * @returns {Record} - */ - raw() { - return [...this.keys()].reduce((result, key) => { - result[key] = this.getAll(key); - return result; - }, {}); - } - /** - * For better console.log(headers) and also to convert Headers into Node.js Request compatible format - */ - [Symbol.for("nodejs.util.inspect.custom")]() { - return [...this.keys()].reduce((result, key) => { - const values = this.getAll(key); - if (key === "host") { - result[key] = values[0]; - } else { - result[key] = values.length > 1 ? values : values[0]; - } - return result; - }, {}); - } -}; -Object.defineProperties( - Headers.prototype, - ["get", "entries", "forEach", "values"].reduce((result, property) => { - result[property] = { enumerable: true }; - return result; - }, {}) -); -function fromRawHeaders(headers = []) { - return new Headers( - headers.reduce((result, value, index, array) => { - if (index % 2 === 0) { - result.push(array.slice(index, index + 2)); - } - return result; - }, []).filter(([name, value]) => { - try { - validateHeaderName(name); - validateHeaderValue(name, String(value)); - return true; - } catch { - return false; - } - }) - ); -} -var redirectStatus = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]); -var isRedirect = (code) => { - return redirectStatus.has(code); -}; -var INTERNALS2 = Symbol("Response internals"); -var Response = class _Response extends Body { - constructor(body = null, options = {}) { - super(body, options); - const status = options.status != null ? options.status : 200; - const headers = new Headers(options.headers); - if (body !== null && !headers.has("Content-Type")) { - const contentType = extractContentType(body, this); - if (contentType) { - headers.append("Content-Type", contentType); - } - } - this[INTERNALS2] = { - type: "default", - url: options.url, - status, - statusText: options.statusText || "", - headers, - counter: options.counter, - highWaterMark: options.highWaterMark - }; - } - get type() { - return this[INTERNALS2].type; - } - get url() { - return this[INTERNALS2].url || ""; - } - get status() { - return this[INTERNALS2].status; - } - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS2].status >= 200 && this[INTERNALS2].status < 300; - } - get redirected() { - return this[INTERNALS2].counter > 0; - } - get statusText() { - return this[INTERNALS2].statusText; - } - get headers() { - return this[INTERNALS2].headers; - } - get highWaterMark() { - return this[INTERNALS2].highWaterMark; - } - /** - * Clone this response - * - * @return Response - */ - clone() { - return new _Response(clone(this, this.highWaterMark), { - type: this.type, - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected, - size: this.size, - highWaterMark: this.highWaterMark - }); - } - /** - * @param {string} url The URL that the new response is to originate from. - * @param {number} status An optional status code for the response (e.g., 302.) - * @returns {Response} A Response object. - */ - static redirect(url, status = 302) { - if (!isRedirect(status)) { - throw new RangeError('Failed to execute "redirect" on "response": Invalid status code'); - } - return new _Response(null, { - headers: { - location: new URL(url).toString() - }, - status - }); - } - static error() { - const response = new _Response(null, { status: 0, statusText: "" }); - response[INTERNALS2].type = "error"; - return response; - } - static json(data = void 0, init = {}) { - const body = JSON.stringify(data); - if (body === void 0) { - throw new TypeError("data is not JSON serializable"); - } - const headers = new Headers(init && init.headers); - if (!headers.has("content-type")) { - headers.set("content-type", "application/json"); - } - return new _Response(body, { - ...init, - headers - }); - } - get [Symbol.toStringTag]() { - return "Response"; - } -}; -Object.defineProperties(Response.prototype, { - type: { enumerable: true }, - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); -var getSearch = (parsedURL) => { - if (parsedURL.search) { - return parsedURL.search; - } - const lastOffset = parsedURL.href.length - 1; - const hash = parsedURL.hash || (parsedURL.href[lastOffset] === "#" ? "#" : ""); - return parsedURL.href[lastOffset - hash.length] === "?" ? "?" : ""; -}; -function stripURLForUseAsAReferrer(url, originOnly = false) { - if (url == null) { - return "no-referrer"; - } - url = new URL(url); - if (/^(about|blob|data):$/.test(url.protocol)) { - return "no-referrer"; - } - url.username = ""; - url.password = ""; - url.hash = ""; - if (originOnly) { - url.pathname = ""; - url.search = ""; - } - return url; -} -var ReferrerPolicy = /* @__PURE__ */ new Set([ - "", - "no-referrer", - "no-referrer-when-downgrade", - "same-origin", - "origin", - "strict-origin", - "origin-when-cross-origin", - "strict-origin-when-cross-origin", - "unsafe-url" -]); -var DEFAULT_REFERRER_POLICY = "strict-origin-when-cross-origin"; -function validateReferrerPolicy(referrerPolicy) { - if (!ReferrerPolicy.has(referrerPolicy)) { - throw new TypeError(`Invalid referrerPolicy: ${referrerPolicy}`); - } - return referrerPolicy; -} -function isOriginPotentiallyTrustworthy(url) { - if (/^(http|ws)s:$/.test(url.protocol)) { - return true; - } - const hostIp = url.host.replace(/(^\[)|(]$)/g, ""); - const hostIPVersion = (0, import_net.isIP)(hostIp); - if (hostIPVersion === 4 && /^127\./.test(hostIp)) { - return true; - } - if (hostIPVersion === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(hostIp)) { - return true; - } - if (url.host === "localhost" || url.host.endsWith(".localhost")) { - return false; - } - if (url.protocol === "file:") { - return true; - } - return false; -} -function isUrlPotentiallyTrustworthy(url) { - if (/^about:(blank|srcdoc)$/.test(url)) { - return true; - } - if (url.protocol === "data:") { - return true; - } - if (/^(blob|filesystem):$/.test(url.protocol)) { - return true; - } - return isOriginPotentiallyTrustworthy(url); -} -function determineRequestsReferrer(request, { referrerURLCallback, referrerOriginCallback } = {}) { - if (request.referrer === "no-referrer" || request.referrerPolicy === "") { - return null; - } - const policy = request.referrerPolicy; - if (request.referrer === "about:client") { - return "no-referrer"; - } - const referrerSource = request.referrer; - let referrerURL = stripURLForUseAsAReferrer(referrerSource); - let referrerOrigin = stripURLForUseAsAReferrer(referrerSource, true); - if (referrerURL.toString().length > 4096) { - referrerURL = referrerOrigin; - } - if (referrerURLCallback) { - referrerURL = referrerURLCallback(referrerURL); - } - if (referrerOriginCallback) { - referrerOrigin = referrerOriginCallback(referrerOrigin); - } - const currentURL = new URL(request.url); - switch (policy) { - case "no-referrer": - return "no-referrer"; - case "origin": - return referrerOrigin; - case "unsafe-url": - return referrerURL; - case "strict-origin": - if (isUrlPotentiallyTrustworthy(referrerURL) && !isUrlPotentiallyTrustworthy(currentURL)) { - return "no-referrer"; - } - return referrerOrigin.toString(); - case "strict-origin-when-cross-origin": - if (referrerURL.origin === currentURL.origin) { - return referrerURL; - } - if (isUrlPotentiallyTrustworthy(referrerURL) && !isUrlPotentiallyTrustworthy(currentURL)) { - return "no-referrer"; - } - return referrerOrigin; - case "same-origin": - if (referrerURL.origin === currentURL.origin) { - return referrerURL; - } - return "no-referrer"; - case "origin-when-cross-origin": - if (referrerURL.origin === currentURL.origin) { - return referrerURL; - } - return referrerOrigin; - case "no-referrer-when-downgrade": - if (isUrlPotentiallyTrustworthy(referrerURL) && !isUrlPotentiallyTrustworthy(currentURL)) { - return "no-referrer"; - } - return referrerURL; - default: - throw new TypeError(`Invalid referrerPolicy: ${policy}`); - } -} -function parseReferrerPolicyFromHeader(headers) { - const policyTokens = (headers.get("referrer-policy") || "").split(/[,\s]+/); - let policy = ""; - for (const token of policyTokens) { - if (token && ReferrerPolicy.has(token)) { - policy = token; - } - } - return policy; -} -var INTERNALS3 = Symbol("Request internals"); -var isRequest = (object) => { - return typeof object === "object" && typeof object[INTERNALS3] === "object"; -}; -var doBadDataWarn = (0, import_util3.deprecate)( - () => { - }, - ".data is not a valid RequestInit property, use .body instead", - "https://github.com/node-fetch/node-fetch/issues/1000 (request)" -); -var Request = class _Request extends Body { - constructor(input, init = {}) { - let parsedURL; - if (isRequest(input)) { - parsedURL = new URL(input.url); - } else { - parsedURL = new URL(input); - input = {}; - } - if (parsedURL.username !== "" || parsedURL.password !== "") { - throw new TypeError(`${parsedURL} is an url with embedded credentials.`); - } - let method = init.method || input.method || "GET"; - if (/^(delete|get|head|options|post|put)$/i.test(method)) { - method = method.toUpperCase(); - } - if (!isRequest(init) && "data" in init) { - doBadDataWarn(); - } - if ((init.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) { - throw new TypeError("Request with GET/HEAD method cannot have body"); - } - const inputBody = init.body ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - super(inputBody, { - size: init.size || input.size || 0 - }); - const headers = new Headers(init.headers || input.headers || {}); - if (inputBody !== null && !headers.has("Content-Type")) { - const contentType = extractContentType(inputBody, this); - if (contentType) { - headers.set("Content-Type", contentType); - } - } - let signal = isRequest(input) ? input.signal : null; - if ("signal" in init) { - signal = init.signal; - } - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget"); - } - let referrer = init.referrer == null ? input.referrer : init.referrer; - if (referrer === "") { - referrer = "no-referrer"; - } else if (referrer) { - const parsedReferrer = new URL(referrer); - referrer = /^about:(\/\/)?client$/.test(parsedReferrer) ? "client" : parsedReferrer; - } else { - referrer = void 0; - } - this[INTERNALS3] = { - method, - redirect: init.redirect || input.redirect || "follow", - headers, - parsedURL, - signal, - referrer - }; - this.follow = init.follow === void 0 ? input.follow === void 0 ? 20 : input.follow : init.follow; - this.compress = init.compress === void 0 ? input.compress === void 0 ? true : input.compress : init.compress; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - this.highWaterMark = init.highWaterMark || input.highWaterMark || 16384; - this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false; - this.referrerPolicy = init.referrerPolicy || input.referrerPolicy || ""; - } - /** @returns {string} */ - get method() { - return this[INTERNALS3].method; - } - /** @returns {string} */ - get url() { - return (0, import_url.format)(this[INTERNALS3].parsedURL); - } - /** @returns {Headers} */ - get headers() { - return this[INTERNALS3].headers; - } - get redirect() { - return this[INTERNALS3].redirect; - } - /** @returns {AbortSignal} */ - get signal() { - return this[INTERNALS3].signal; - } - // https://fetch.spec.whatwg.org/#dom-request-referrer - get referrer() { - if (this[INTERNALS3].referrer === "no-referrer") { - return ""; - } - if (this[INTERNALS3].referrer === "client") { - return "about:client"; - } - if (this[INTERNALS3].referrer) { - return this[INTERNALS3].referrer.toString(); - } - return void 0; - } - get referrerPolicy() { - return this[INTERNALS3].referrerPolicy; - } - set referrerPolicy(referrerPolicy) { - this[INTERNALS3].referrerPolicy = validateReferrerPolicy(referrerPolicy); - } - /** - * Clone this request - * - * @return Request - */ - clone() { - return new _Request(this); - } - get [Symbol.toStringTag]() { - return "Request"; - } -}; -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true }, - referrer: { enumerable: true }, - referrerPolicy: { enumerable: true } -}); -var getNodeRequestOptions = (request) => { - const { parsedURL } = request[INTERNALS3]; - const headers = new Headers(request[INTERNALS3].headers); - if (!headers.has("Accept")) { - headers.set("Accept", "*/*"); - } - let contentLengthValue = null; - if (request.body === null && /^(post|put)$/i.test(request.method)) { - contentLengthValue = "0"; - } - if (request.body !== null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === "number" && !Number.isNaN(totalBytes)) { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set("Content-Length", contentLengthValue); - } - if (request.referrerPolicy === "") { - request.referrerPolicy = DEFAULT_REFERRER_POLICY; - } - if (request.referrer && request.referrer !== "no-referrer") { - request[INTERNALS3].referrer = determineRequestsReferrer(request); - } else { - request[INTERNALS3].referrer = "no-referrer"; - } - if (request[INTERNALS3].referrer instanceof URL) { - headers.set("Referer", request.referrer); - } - if (!headers.has("User-Agent")) { - headers.set("User-Agent", "node-fetch"); - } - if (request.compress && !headers.has("Accept-Encoding")) { - headers.set("Accept-Encoding", "gzip, deflate, br"); - } - let { agent } = request; - if (typeof agent === "function") { - agent = agent(parsedURL); - } - const search = getSearch(parsedURL); - const options = { - // Overwrite search to retain trailing ? (issue #776) - path: parsedURL.pathname + search, - // The following options are not expressed in the URL - method: request.method, - headers: headers[Symbol.for("nodejs.util.inspect.custom")](), - insecureHTTPParser: request.insecureHTTPParser, - agent - }; - return { - /** @type {URL} */ - parsedURL, - options - }; -}; -var AbortError = class extends FetchBaseError { - constructor(message, type = "aborted") { - super(message, type); - } -}; -var supportedSchemas = /* @__PURE__ */ new Set(["data:", "http:", "https:"]); -async function fetch(url, options_) { - return new Promise((resolve, reject) => { - const request = new Request(url, options_); - const { parsedURL, options } = getNodeRequestOptions(request); - if (!supportedSchemas.has(parsedURL.protocol)) { - throw new TypeError(`node-fetch cannot load ${url}. URL scheme "${parsedURL.protocol.replace(/:$/, "")}" is not supported.`); - } - if (parsedURL.protocol === "data:") { - const data = dist_default(request.url); - const response2 = new Response(data, { headers: { "Content-Type": data.typeFull } }); - resolve(response2); - return; - } - const send = (parsedURL.protocol === "https:" ? import_https.default : import_http.default).request; - const { signal } = request; - let response = null; - const abort = () => { - const error = new AbortError("The operation was aborted."); - reject(error); - if (request.body && request.body instanceof import_stream.default.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) { - return; - } - response.body.emit("error", error); - }; - if (signal && signal.aborted) { - abort(); - return; - } - const abortAndFinalize = () => { - abort(); - finalize(); - }; - const request_ = send(parsedURL.toString(), options); - if (signal) { - signal.addEventListener("abort", abortAndFinalize); - } - const finalize = () => { - request_.abort(); - if (signal) { - signal.removeEventListener("abort", abortAndFinalize); - } - }; - request_.on("error", (error) => { - reject(new FetchError(`request to ${request.url} failed, reason: ${error.message}`, "system", error)); - finalize(); - }); - fixResponseChunkedTransferBadEnding(request_, (error) => { - if (response && response.body) { - response.body.destroy(error); - } - }); - if (process.version < "v14") { - request_.on("socket", (s) => { - let endedWithEventsCount; - s.prependListener("end", () => { - endedWithEventsCount = s._eventsCount; - }); - s.prependListener("close", (hadError) => { - if (response && endedWithEventsCount < s._eventsCount && !hadError) { - const error = new Error("Premature close"); - error.code = "ERR_STREAM_PREMATURE_CLOSE"; - response.body.emit("error", error); - } - }); - }); - } - request_.on("response", (response_) => { - request_.setTimeout(0); - const headers = fromRawHeaders(response_.rawHeaders); - if (isRedirect(response_.statusCode)) { - const location = headers.get("Location"); - let locationURL = null; - try { - locationURL = location === null ? null : new URL(location, request.url); - } catch { - if (request.redirect !== "manual") { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, "invalid-redirect")); - finalize(); - return; - } - } - switch (request.redirect) { - case "error": - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, "no-redirect")); - finalize(); - return; - case "manual": - break; - case "follow": { - if (locationURL === null) { - break; - } - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, "max-redirect")); - finalize(); - return; - } - const requestOptions = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: clone(request), - signal: request.signal, - size: request.size, - referrer: request.referrer, - referrerPolicy: request.referrerPolicy - }; - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ["authorization", "www-authenticate", "cookie", "cookie2"]) { - requestOptions.headers.delete(name); - } - } - if (response_.statusCode !== 303 && request.body && options_.body instanceof import_stream.default.Readable) { - reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect")); - finalize(); - return; - } - if (response_.statusCode === 303 || (response_.statusCode === 301 || response_.statusCode === 302) && request.method === "POST") { - requestOptions.method = "GET"; - requestOptions.body = void 0; - requestOptions.headers.delete("content-length"); - } - const responseReferrerPolicy = parseReferrerPolicyFromHeader(headers); - if (responseReferrerPolicy) { - requestOptions.referrerPolicy = responseReferrerPolicy; - } - resolve(fetch(new Request(locationURL, requestOptions))); - finalize(); - return; - } - default: - return reject(new TypeError(`Redirect option '${request.redirect}' is not a valid value of RequestRedirect`)); - } - } - if (signal) { - response_.once("end", () => { - signal.removeEventListener("abort", abortAndFinalize); - }); - } - let body = (0, import_stream.pipeline)(response_, new import_stream.PassThrough(), (error) => { - if (error) { - reject(error); - } - }); - if (process.version < "v12.10") { - response_.on("aborted", abortAndFinalize); - } - const responseOptions = { - url: request.url, - status: response_.statusCode, - statusText: response_.statusMessage, - headers, - size: request.size, - counter: request.counter, - highWaterMark: request.highWaterMark - }; - const codings = headers.get("Content-Encoding"); - if (!request.compress || request.method === "HEAD" || codings === null || response_.statusCode === 204 || response_.statusCode === 304) { - response = new Response(body, responseOptions); - resolve(response); - return; - } - const zlibOptions = { - flush: import_zlib.default.Z_SYNC_FLUSH, - finishFlush: import_zlib.default.Z_SYNC_FLUSH - }; - if (codings === "gzip" || codings === "x-gzip") { - body = (0, import_stream.pipeline)(body, import_zlib.default.createGunzip(zlibOptions), (error) => { - if (error) { - reject(error); - } - }); - response = new Response(body, responseOptions); - resolve(response); - return; - } - if (codings === "deflate" || codings === "x-deflate") { - const raw = (0, import_stream.pipeline)(response_, new import_stream.PassThrough(), (error) => { - if (error) { - reject(error); - } - }); - raw.once("data", (chunk) => { - if ((chunk[0] & 15) === 8) { - body = (0, import_stream.pipeline)(body, import_zlib.default.createInflate(), (error) => { - if (error) { - reject(error); - } - }); - } else { - body = (0, import_stream.pipeline)(body, import_zlib.default.createInflateRaw(), (error) => { - if (error) { - reject(error); - } - }); - } - response = new Response(body, responseOptions); - resolve(response); - }); - raw.once("end", () => { - if (!response) { - response = new Response(body, responseOptions); - resolve(response); - } - }); - return; - } - if (codings === "br") { - body = (0, import_stream.pipeline)(body, import_zlib.default.createBrotliDecompress(), (error) => { - if (error) { - reject(error); - } - }); - response = new Response(body, responseOptions); - resolve(response); - return; - } - response = new Response(body, responseOptions); - resolve(response); - }); - writeToStream(request_, request).catch(reject); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - const LAST_CHUNK = import_buffer.Buffer.from("0\r\n\r\n"); - let isChunkedTransfer = false; - let properLastChunkReceived = false; - let previousChunk; - request.on("response", (response) => { - const { headers } = response; - isChunkedTransfer = headers["transfer-encoding"] === "chunked" && !headers["content-length"]; - }); - request.on("socket", (socket) => { - const onSocketClose = () => { - if (isChunkedTransfer && !properLastChunkReceived) { - const error = new Error("Premature close"); - error.code = "ERR_STREAM_PREMATURE_CLOSE"; - errorCallback(error); - } - }; - const onData = (buf) => { - properLastChunkReceived = import_buffer.Buffer.compare(buf.slice(-5), LAST_CHUNK) === 0; - if (!properLastChunkReceived && previousChunk) { - properLastChunkReceived = import_buffer.Buffer.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && import_buffer.Buffer.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0; - } - previousChunk = buf; - }; - socket.prependListener("close", onSocketClose); - socket.on("data", onData); - request.on("close", () => { - socket.removeListener("close", onSocketClose); - socket.removeListener("data", onData); - }); - }); -} -var import_p_retry = (0, import_chunk_AH6QHEOA.__toESM)(require_p_retry()); -var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)()); -var import_tempy = (0, import_chunk_AH6QHEOA.__toESM)(require_tempy()); -var debug = (0, import_debug.default)("prisma:fetch-engine:downloadZip"); -var del = (0, import_util4.promisify)(import_rimraf.default); -async function fetchChecksum(url) { - try { - const checksumUrl = `${url}.sha256`; - const response = await fetch(checksumUrl, { - agent: (0, import_chunk_KDPLGCY6.getProxyAgent)(url) - }); - if (!response.ok) { - let errorMessage = `Failed to fetch sha256 checksum at ${checksumUrl} - ${response.status} ${response.statusText}`; - if (!process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) { - errorMessage += ` - -If you need to ignore this error (e.g. in an offline environment), set the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable to a truthy value. -Example: PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1`; - } - throw new Error(errorMessage); - } - const body = await response.text(); - const [checksum] = body.split(/\s+/); - if (!/^[a-f0-9]{64}$/gi.test(checksum)) { - throw new Error(`Unable to parse checksum from ${checksumUrl} - response body: ${body}`); - } - return checksum; - } catch (error) { - if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) { - debug( - `fetchChecksum() failed and was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy. -Error: ${error}` - ); - return null; - } - throw error; - } -} -async function downloadZip(url, target, progressCb) { - const tmpDir = import_tempy.default.directory(); - const partial = import_path.default.join(tmpDir, "partial"); - const RETRIES_COUNT = 2; - const [zippedSha256, sha256] = await (0, import_p_retry.default)( - async () => { - return await Promise.all([fetchChecksum(url), fetchChecksum(url.slice(0, url.length - 3))]); - }, - { - retries: RETRIES_COUNT, - onFailedAttempt: (err) => debug("An error occurred while downloading the checksums files", err) - } - ); - const result = await (0, import_p_retry.default)( - async () => { - const response = await fetch(url, { - compress: false, - agent: (0, import_chunk_KDPLGCY6.getProxyAgent)(url) - }); - if (!response.ok) { - throw new Error(`Failed to fetch the engine file at ${url} - ${response.status} ${response.statusText}`); - } - const lastModified = response.headers.get("last-modified"); - const size = parseFloat(response.headers.get("content-length")); - const ws = import_fs.default.createWriteStream(partial); - return await new Promise(async (resolve, reject) => { - let bytesRead = 0; - if (response.body === null) { - return reject(new Error(`Failed to fetch the engine file at ${url} - response.body is null`)); - } - response.body.once("error", reject).on("data", (chunk) => { - bytesRead += chunk.length; - if (size && progressCb) { - progressCb(bytesRead / size); - } - }); - const gunzip = import_zlib2.default.createGunzip(); - gunzip.on("error", reject); - const zipStream = response.body.pipe(gunzip); - const zippedHashPromise = import_hasha.default.fromStream(response.body, { - algorithm: "sha256" - }); - const hashPromise = import_hasha.default.fromStream(zipStream, { - algorithm: "sha256" - }); - zipStream.pipe(ws); - ws.on("error", reject).on("close", () => { - resolve({ lastModified, sha256, zippedSha256 }); - }); - const hash = await hashPromise; - const zippedHash = await zippedHashPromise; - if (zippedSha256 !== null && zippedSha256 !== zippedHash) { - return reject(new Error(`sha256 checksum of ${url} (zipped) should be ${zippedSha256} but is ${zippedHash}`)); - } - if (sha256 !== null && sha256 !== hash) { - return reject(new Error(`sha256 checksum of ${url} (unzipped) should be ${sha256} but is ${hash}`)); - } - }); - }, - { - retries: RETRIES_COUNT, - onFailedAttempt: (err) => debug("An error occurred while downloading the engine file", err) - } - ); - await (0, import_chunk_FQ2BOR66.overwriteFile)(partial, target); - try { - await del(partial); - await del(tmpDir); - } catch (e) { - debug(e); - } - return result; -} -/*! Bundled license information: - -is-extglob/index.js: - (*! - * is-extglob - * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. - *) - -is-glob/index.js: - (*! - * is-glob - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - *) - -is-number/index.js: - (*! - * is-number - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - *) - -to-regex-range/index.js: - (*! - * to-regex-range - * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. - *) - -fill-range/index.js: - (*! - * fill-range - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Licensed under the MIT License. - *) - -queue-microtask/index.js: - (*! queue-microtask. MIT License. Feross Aboukhadijeh *) - -run-parallel/index.js: - (*! run-parallel. MIT License. Feross Aboukhadijeh *) -*/ diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js deleted file mode 100644 index c6fef69..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_QSTZGX47_exports = {}; -__export(chunk_QSTZGX47_exports, { - cleanupCache: () => cleanupCache -}); -module.exports = __toCommonJS(chunk_QSTZGX47_exports); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_debug = __toESM(require("@prisma/debug")); -var import_fs = __toESM(require("fs")); -var import_path = __toESM(require("path")); -var import_util = require("util"); -var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)()); -var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)()); -var debug = (0, import_debug.default)("cleanupCache"); -var del = (0, import_util.promisify)(import_rimraf.default); -async function cleanupCache(n = 5) { - try { - const rootCacheDir = await (0, import_chunk_FQ2BOR66.getRootCacheDir)(); - if (!rootCacheDir) { - debug("no rootCacheDir found"); - return; - } - const channel = "master"; - const cacheDir = import_path.default.join(rootCacheDir, channel); - const dirs = await import_fs.default.promises.readdir(cacheDir); - const dirsWithMeta = await Promise.all( - dirs.map(async (dirName) => { - const dir = import_path.default.join(cacheDir, dirName); - const statResult = await import_fs.default.promises.stat(dir); - return { - dir, - created: statResult.birthtime - }; - }) - ); - dirsWithMeta.sort((a, b) => a.created < b.created ? 1 : -1); - const dirsToRemove = dirsWithMeta.slice(n); - await (0, import_p_map.default)(dirsToRemove, (dir) => del(dir.dir), { concurrency: 20 }); - } catch (e) { - } -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js deleted file mode 100644 index fde2ea7..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +++ /dev/null @@ -1,2786 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_RGVHWUUH_exports = {}; -__export(chunk_RGVHWUUH_exports, { - require_p_map: () => require_p_map, - require_rimraf: () => require_rimraf -}); -module.exports = __toCommonJS(chunk_RGVHWUUH_exports); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var require_indent_string = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) { - "use strict"; - module2.exports = (string, count = 1, options) => { - options = { - indent: " ", - includeEmptyLines: false, - ...options - }; - if (typeof string !== "string") { - throw new TypeError( - `Expected \`input\` to be a \`string\`, got \`${typeof string}\`` - ); - } - if (typeof count !== "number") { - throw new TypeError( - `Expected \`count\` to be a \`number\`, got \`${typeof count}\`` - ); - } - if (typeof options.indent !== "string") { - throw new TypeError( - `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\`` - ); - } - if (count === 0) { - return string; - } - const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; - return string.replace(regex, options.indent.repeat(count)); - }; - } -}); -var require_clean_stack = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module2) { - "use strict"; - var os = (0, import_chunk_AH6QHEOA.__require)("os"); - var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/; - var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/; - var homeDir = typeof os.homedir === "undefined" ? "" : os.homedir(); - module2.exports = (stack, options) => { - options = Object.assign({ pretty: false }, options); - return stack.replace(/\\/g, "/").split("\n").filter((line) => { - const pathMatches = line.match(extractPathRegex); - if (pathMatches === null || !pathMatches[1]) { - return true; - } - const match = pathMatches[1]; - if (match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar")) { - return false; - } - return !pathRegex.test(match); - }).filter((line) => line.trim() !== "").map((line) => { - if (options.pretty) { - return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))); - } - return line; - }).join("\n"); - }; - } -}); -var require_aggregate_error = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module2) { - "use strict"; - var indentString = require_indent_string(); - var cleanStack = require_clean_stack(); - var cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""); - var AggregateError = class extends Error { - constructor(errors) { - if (!Array.isArray(errors)) { - throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); - } - errors = [...errors].map((error) => { - if (error instanceof Error) { - return error; - } - if (error !== null && typeof error === "object") { - return Object.assign(new Error(error.message), error); - } - return new Error(error); - }); - let message = errors.map((error) => { - return typeof error.stack === "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error); - }).join("\n"); - message = "\n" + indentString(message, 4); - super(message); - this.name = "AggregateError"; - Object.defineProperty(this, "_errors", { value: errors }); - } - *[Symbol.iterator]() { - for (const error of this._errors) { - yield error; - } - } - }; - module2.exports = AggregateError; - } -}); -var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module2) { - "use strict"; - var AggregateError = require_aggregate_error(); - module2.exports = async (iterable, mapper, { - concurrency = Infinity, - stopOnError = true - } = {}) => { - return new Promise((resolve, reject) => { - if (typeof mapper !== "function") { - throw new TypeError("Mapper function is required"); - } - if (!((Number.isSafeInteger(concurrency) || concurrency === Infinity) && concurrency >= 1)) { - throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`); - } - const result = []; - const errors = []; - const iterator = iterable[Symbol.iterator](); - let isRejected = false; - let isIterableDone = false; - let resolvingCount = 0; - let currentIndex = 0; - const next = () => { - if (isRejected) { - return; - } - const nextItem = iterator.next(); - const index = currentIndex; - currentIndex++; - if (nextItem.done) { - isIterableDone = true; - if (resolvingCount === 0) { - if (!stopOnError && errors.length !== 0) { - reject(new AggregateError(errors)); - } else { - resolve(result); - } - } - return; - } - resolvingCount++; - (async () => { - try { - const element = await nextItem.value; - result[index] = await mapper(element, index); - resolvingCount--; - next(); - } catch (error) { - if (stopOnError) { - isRejected = true; - reject(error); - } else { - errors.push(error); - resolvingCount--; - next(); - } - } - })(); - }; - for (let i = 0; i < concurrency; i++) { - next(); - if (isIterableDone) { - break; - } - } - }); - }; - } -}); -var require_old = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) { - "use strict"; - var pathModule = (0, import_chunk_AH6QHEOA.__require)("path"); - var isWindows = process.platform === "win32"; - var fs = (0, import_chunk_AH6QHEOA.__require)("fs"); - var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); - function rethrow() { - var callback; - if (DEBUG) { - var backtrace = new Error(); - callback = debugCallback; - } else - callback = missingCallback; - return callback; - function debugCallback(err) { - if (err) { - backtrace.message = err.message; - err = backtrace; - missingCallback(err); - } - } - function missingCallback(err) { - if (err) { - if (process.throwDeprecation) - throw err; - else if (!process.noDeprecation) { - var msg = "fs: missing callback " + (err.stack || err.message); - if (process.traceDeprecation) - console.trace(msg); - else - console.error(msg); - } - } - } - } - function maybeCallback(cb) { - return typeof cb === "function" ? cb : rethrow(); - } - var normalize = pathModule.normalize; - if (isWindows) { - nextPartRe = /(.*?)(?:[\/\\]+|$)/g; - } else { - nextPartRe = /(.*?)(?:[\/]+|$)/g; - } - var nextPartRe; - if (isWindows) { - splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; - } else { - splitRootRe = /^[\/]*/; - } - var splitRootRe; - exports.realpathSync = function realpathSync(p, cache) { - p = pathModule.resolve(p); - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return cache[p]; - } - var original = p, seenLinks = {}, knownHard = {}; - var pos; - var current; - var base; - var previous; - start(); - function start() { - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ""; - if (isWindows && !knownHard[base]) { - fs.lstatSync(base); - knownHard[base] = true; - } - } - while (pos < p.length) { - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - if (knownHard[base] || cache && cache[base] === base) { - continue; - } - var resolvedLink; - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - resolvedLink = cache[base]; - } else { - var stat = fs.lstatSync(base); - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - continue; - } - var linkTarget = null; - if (!isWindows) { - var id = stat.dev.toString(32) + ":" + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - linkTarget = seenLinks[id]; - } - } - if (linkTarget === null) { - fs.statSync(base); - linkTarget = fs.readlinkSync(base); - } - resolvedLink = pathModule.resolve(previous, linkTarget); - if (cache) cache[base] = resolvedLink; - if (!isWindows) seenLinks[id] = linkTarget; - } - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } - if (cache) cache[original] = p; - return p; - }; - exports.realpath = function realpath(p, cache, cb) { - if (typeof cb !== "function") { - cb = maybeCallback(cache); - cache = null; - } - p = pathModule.resolve(p); - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return process.nextTick(cb.bind(null, null, cache[p])); - } - var original = p, seenLinks = {}, knownHard = {}; - var pos; - var current; - var base; - var previous; - start(); - function start() { - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ""; - if (isWindows && !knownHard[base]) { - fs.lstat(base, function(err) { - if (err) return cb(err); - knownHard[base] = true; - LOOP(); - }); - } else { - process.nextTick(LOOP); - } - } - function LOOP() { - if (pos >= p.length) { - if (cache) cache[original] = p; - return cb(null, p); - } - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - if (knownHard[base] || cache && cache[base] === base) { - return process.nextTick(LOOP); - } - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - return gotResolvedLink(cache[base]); - } - return fs.lstat(base, gotStat); - } - function gotStat(err, stat) { - if (err) return cb(err); - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - return process.nextTick(LOOP); - } - if (!isWindows) { - var id = stat.dev.toString(32) + ":" + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - return gotTarget(null, seenLinks[id], base); - } - } - fs.stat(base, function(err2) { - if (err2) return cb(err2); - fs.readlink(base, function(err3, target) { - if (!isWindows) seenLinks[id] = target; - gotTarget(err3, target); - }); - }); - } - function gotTarget(err, target, base2) { - if (err) return cb(err); - var resolvedLink = pathModule.resolve(previous, target); - if (cache) cache[base2] = resolvedLink; - gotResolvedLink(resolvedLink); - } - function gotResolvedLink(resolvedLink) { - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } - }; - } -}); -var require_fs = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(exports, module2) { - "use strict"; - module2.exports = realpath; - realpath.realpath = realpath; - realpath.sync = realpathSync; - realpath.realpathSync = realpathSync; - realpath.monkeypatch = monkeypatch; - realpath.unmonkeypatch = unmonkeypatch; - var fs = (0, import_chunk_AH6QHEOA.__require)("fs"); - var origRealpath = fs.realpath; - var origRealpathSync = fs.realpathSync; - var version = process.version; - var ok = /^v[0-5]\./.test(version); - var old = require_old(); - function newError(er) { - return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG"); - } - function realpath(p, cache, cb) { - if (ok) { - return origRealpath(p, cache, cb); - } - if (typeof cache === "function") { - cb = cache; - cache = null; - } - origRealpath(p, cache, function(er, result) { - if (newError(er)) { - old.realpath(p, cache, cb); - } else { - cb(er, result); - } - }); - } - function realpathSync(p, cache) { - if (ok) { - return origRealpathSync(p, cache); - } - try { - return origRealpathSync(p, cache); - } catch (er) { - if (newError(er)) { - return old.realpathSync(p, cache); - } else { - throw er; - } - } - } - function monkeypatch() { - fs.realpath = realpath; - fs.realpathSync = realpathSync; - } - function unmonkeypatch() { - fs.realpath = origRealpath; - fs.realpathSync = origRealpathSync; - } - } -}); -var require_concat_map = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports, module2) { - "use strict"; - module2.exports = function(xs, fn) { - var res = []; - for (var i = 0; i < xs.length; i++) { - var x = fn(xs[i], i); - if (isArray(x)) res.push.apply(res, x); - else res.push(x); - } - return res; - }; - var isArray = Array.isArray || function(xs) { - return Object.prototype.toString.call(xs) === "[object Array]"; - }; - } -}); -var require_balanced_match = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module2) { - "use strict"; - module2.exports = balanced; - function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str); - if (b instanceof RegExp) b = maybeMatch(b, str); - var r = range(a, b, str); - return r && { - start: r[0], - end: r[1], - pre: str.slice(0, r[0]), - body: str.slice(r[0] + a.length, r[1]), - post: str.slice(r[1] + b.length) - }; - } - function maybeMatch(reg, str) { - var m = str.match(reg); - return m ? m[0] : null; - } - balanced.range = range; - function range(a, b, str) { - var begs, beg, left, right, result; - var ai = str.indexOf(a); - var bi = str.indexOf(b, ai + 1); - var i = ai; - if (ai >= 0 && bi > 0) { - if (a === b) { - return [ai, bi]; - } - begs = []; - left = str.length; - while (i >= 0 && !result) { - if (i == ai) { - begs.push(i); - ai = str.indexOf(a, i + 1); - } else if (begs.length == 1) { - result = [begs.pop(), bi]; - } else { - beg = begs.pop(); - if (beg < left) { - left = beg; - right = bi; - } - bi = str.indexOf(b, i + 1); - } - i = ai < bi && ai >= 0 ? ai : bi; - } - if (begs.length) { - result = [left, right]; - } - } - return result; - } - } -}); -var require_brace_expansion = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) { - "use strict"; - var concatMap = require_concat_map(); - var balanced = require_balanced_match(); - module2.exports = expandTop; - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - function numeric(str) { - return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); - } - function escapeBraces(str) { - return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); - } - function unescapeBraces(str) { - return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); - } - function parseCommaParts(str) { - if (!str) - return [""]; - var parts = []; - var m = balanced("{", "}", str); - if (!m) - return str.split(","); - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(","); - p[p.length - 1] += "{" + body + "}"; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length - 1] += postParts.shift(); - p.push.apply(p, postParts); - } - parts.push.apply(parts, p); - return parts; - } - function expandTop(str) { - if (!str) - return []; - if (str.substr(0, 2) === "{}") { - str = "\\{\\}" + str.substr(2); - } - return expand(escapeBraces(str), true).map(unescapeBraces); - } - function embrace(str) { - return "{" + str + "}"; - } - function isPadded(el) { - return /^-?0\d/.test(el); - } - function lte(i, y) { - return i <= y; - } - function gte(i, y) { - return i >= y; - } - function expand(str, isTop) { - var expansions = []; - var m = balanced("{", "}", str); - if (!m || /\$$/.test(m.pre)) return [str]; - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(",") >= 0; - if (!isSequence && !isOptions) { - if (m.post.match(/,.*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length ? expand(m.post, false) : [""]; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - var pre = m.pre; - var post = m.post.length ? expand(m.post, false) : [""]; - var N; - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length); - var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - N = []; - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === "\\") - c = ""; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join("0"); - if (i < 0) - c = "-" + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { - return expand(el, false); - }); - } - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - return expansions; - } - } -}); -var require_minimatch = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) { - "use strict"; - module2.exports = minimatch; - minimatch.Minimatch = Minimatch; - var path = function() { - try { - return (0, import_chunk_AH6QHEOA.__require)("path"); - } catch (e) { - } - }() || { - sep: "/" - }; - minimatch.sep = path.sep; - var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; - var expand = require_brace_expansion(); - var plTypes = { - "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, - "?": { open: "(?:", close: ")?" }, - "+": { open: "(?:", close: ")+" }, - "*": { open: "(?:", close: ")*" }, - "@": { open: "(?:", close: ")" } - }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var reSpecials = charSet("().*{}+?[]^$\\!"); - function charSet(s) { - return s.split("").reduce(function(set, c) { - set[c] = true; - return set; - }, {}); - } - var slashSplit = /\/+/; - minimatch.filter = filter; - function filter(pattern, options) { - options = options || {}; - return function(p, i, list) { - return minimatch(p, pattern, options); - }; - } - function ext(a, b) { - b = b || {}; - var t = {}; - Object.keys(a).forEach(function(k) { - t[k] = a[k]; - }); - Object.keys(b).forEach(function(k) { - t[k] = b[k]; - }); - return t; - } - minimatch.defaults = function(def) { - if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; - } - var orig = minimatch; - var m = function minimatch2(p, pattern, options) { - return orig(p, pattern, ext(def, options)); - }; - m.Minimatch = function Minimatch2(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)); - }; - m.Minimatch.defaults = function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - }; - m.filter = function filter2(pattern, options) { - return orig.filter(pattern, ext(def, options)); - }; - m.defaults = function defaults(options) { - return orig.defaults(ext(def, options)); - }; - m.makeRe = function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); - }; - m.braceExpand = function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); - }; - m.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); - }; - return m; - }; - Minimatch.defaults = function(def) { - return minimatch.defaults(def).Minimatch; - }; - function minimatch(p, pattern, options) { - assertValidPattern(pattern); - if (!options) options = {}; - if (!options.nocomment && pattern.charAt(0) === "#") { - return false; - } - return new Minimatch(pattern, options).match(p); - } - function Minimatch(pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options); - } - assertValidPattern(pattern); - if (!options) options = {}; - pattern = pattern.trim(); - if (!options.allowWindowsEscape && path.sep !== "/") { - pattern = pattern.split(path.sep).join("/"); - } - this.options = options; - this.set = []; - this.pattern = pattern; - this.regexp = null; - this.negate = false; - this.comment = false; - this.empty = false; - this.partial = !!options.partial; - this.make(); - } - Minimatch.prototype.debug = function() { - }; - Minimatch.prototype.make = make; - function make() { - var pattern = this.pattern; - var options = this.options; - if (!options.nocomment && pattern.charAt(0) === "#") { - this.comment = true; - return; - } - if (!pattern) { - this.empty = true; - return; - } - this.parseNegate(); - var set = this.globSet = this.braceExpand(); - if (options.debug) this.debug = function debug() { - console.error.apply(console, arguments); - }; - this.debug(this.pattern, set); - set = this.globParts = set.map(function(s) { - return s.split(slashSplit); - }); - this.debug(this.pattern, set); - set = set.map(function(s, si, set2) { - return s.map(this.parse, this); - }, this); - this.debug(this.pattern, set); - set = set.filter(function(s) { - return s.indexOf(false) === -1; - }); - this.debug(this.pattern, set); - this.set = set; - } - Minimatch.prototype.parseNegate = parseNegate; - function parseNegate() { - var pattern = this.pattern; - var negate = false; - var options = this.options; - var negateOffset = 0; - if (options.nonegate) return; - for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) { - negate = !negate; - negateOffset++; - } - if (negateOffset) this.pattern = pattern.substr(negateOffset); - this.negate = negate; - } - minimatch.braceExpand = function(pattern, options) { - return braceExpand(pattern, options); - }; - Minimatch.prototype.braceExpand = braceExpand; - function braceExpand(pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options; - } else { - options = {}; - } - } - pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - return [pattern]; - } - return expand(pattern); - } - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = function(pattern) { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); - } - }; - Minimatch.prototype.parse = parse; - var SUBPARSE = {}; - function parse(pattern, isSub) { - assertValidPattern(pattern); - var options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; - } - if (pattern === "") return ""; - var re = ""; - var hasMagic = !!options.nocase; - var escaping = false; - var patternListStack = []; - var negativeLists = []; - var stateChar; - var inClass = false; - var reClassStart = -1; - var classStart = -1; - var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; - var self = this; - function clearStateChar() { - if (stateChar) { - switch (stateChar) { - case "*": - re += star; - hasMagic = true; - break; - case "?": - re += qmark; - hasMagic = true; - break; - default: - re += "\\" + stateChar; - break; - } - self.debug("clearStateChar %j %j", stateChar, re); - stateChar = false; - } - } - for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re, c); - if (escaping && reSpecials[c]) { - re += "\\" + c; - escaping = false; - continue; - } - switch (c) { - case "/": { - return false; - } - case "\\": - clearStateChar(); - escaping = true; - continue; - case "?": - case "*": - case "+": - case "@": - case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c); - if (inClass) { - this.debug(" in class"); - if (c === "!" && i === classStart + 1) c = "^"; - re += c; - continue; - } - self.debug("call clearStateChar %j", stateChar); - clearStateChar(); - stateChar = c; - if (options.noext) clearStateChar(); - continue; - case "(": - if (inClass) { - re += "("; - continue; - } - if (!stateChar) { - re += "\\("; - continue; - } - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }); - re += stateChar === "!" ? "(?:(?!(?:" : "(?:"; - this.debug("plType %j %j", stateChar, re); - stateChar = false; - continue; - case ")": - if (inClass || !patternListStack.length) { - re += "\\)"; - continue; - } - clearStateChar(); - hasMagic = true; - var pl = patternListStack.pop(); - re += pl.close; - if (pl.type === "!") { - negativeLists.push(pl); - } - pl.reEnd = re.length; - continue; - case "|": - if (inClass || !patternListStack.length || escaping) { - re += "\\|"; - escaping = false; - continue; - } - clearStateChar(); - re += "|"; - continue; - case "[": - clearStateChar(); - if (inClass) { - re += "\\" + c; - continue; - } - inClass = true; - classStart = i; - reClassStart = re.length; - re += c; - continue; - case "]": - if (i === classStart + 1 || !inClass) { - re += "\\" + c; - escaping = false; - continue; - } - var cs = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs + "]"); - } catch (er) { - var sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]"; - hasMagic = hasMagic || sp[1]; - inClass = false; - continue; - } - hasMagic = true; - inClass = false; - re += c; - continue; - default: - clearStateChar(); - if (escaping) { - escaping = false; - } else if (reSpecials[c] && !(c === "^" && inClass)) { - re += "\\"; - } - re += c; - } - } - if (inClass) { - cs = pattern.substr(classStart + 1); - sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0]; - hasMagic = hasMagic || sp[1]; - } - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length); - this.debug("setting tail", re, pl); - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) { - if (!$2) { - $2 = "\\"; - } - return $1 + $1 + $2 + "|"; - }); - this.debug("tail=%j\n %s", tail, tail, pl, re); - var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; - hasMagic = true; - re = re.slice(0, pl.reStart) + t + "\\(" + tail; - } - clearStateChar(); - if (escaping) { - re += "\\\\"; - } - var addPatternStart = false; - switch (re.charAt(0)) { - case "[": - case ".": - case "(": - addPatternStart = true; - } - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n]; - var nlBefore = re.slice(0, nl.reStart); - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8); - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd); - var nlAfter = re.slice(nl.reEnd); - nlLast += nlAfter; - var openParensBefore = nlBefore.split("(").length - 1; - var cleanAfter = nlAfter; - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); - } - nlAfter = cleanAfter; - var dollar = ""; - if (nlAfter === "" && isSub !== SUBPARSE) { - dollar = "$"; - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; - re = newRe; - } - if (re !== "" && hasMagic) { - re = "(?=.)" + re; - } - if (addPatternStart) { - re = patternStart + re; - } - if (isSub === SUBPARSE) { - return [re, hasMagic]; - } - if (!hasMagic) { - return globUnescape(pattern); - } - var flags = options.nocase ? "i" : ""; - try { - var regExp = new RegExp("^" + re + "$", flags); - } catch (er) { - return new RegExp("$."); - } - regExp._glob = pattern; - regExp._src = re; - return regExp; - } - minimatch.makeRe = function(pattern, options) { - return new Minimatch(pattern, options || {}).makeRe(); - }; - Minimatch.prototype.makeRe = makeRe; - function makeRe() { - if (this.regexp || this.regexp === false) return this.regexp; - var set = this.set; - if (!set.length) { - this.regexp = false; - return this.regexp; - } - var options = this.options; - var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; - var flags = options.nocase ? "i" : ""; - var re = set.map(function(pattern) { - return pattern.map(function(p) { - return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src; - }).join("\\/"); - }).join("|"); - re = "^(?:" + re + ")$"; - if (this.negate) re = "^(?!" + re + ").*$"; - try { - this.regexp = new RegExp(re, flags); - } catch (ex) { - this.regexp = false; - } - return this.regexp; - } - minimatch.match = function(list, pattern, options) { - options = options || {}; - var mm = new Minimatch(pattern, options); - list = list.filter(function(f) { - return mm.match(f); - }); - if (mm.options.nonull && !list.length) { - list.push(pattern); - } - return list; - }; - Minimatch.prototype.match = function match(f, partial) { - if (typeof partial === "undefined") partial = this.partial; - this.debug("match", f, this.pattern); - if (this.comment) return false; - if (this.empty) return f === ""; - if (f === "/" && partial) return true; - var options = this.options; - if (path.sep !== "/") { - f = f.split(path.sep).join("/"); - } - f = f.split(slashSplit); - this.debug(this.pattern, "split", f); - var set = this.set; - this.debug(this.pattern, "set", set); - var filename; - var i; - for (i = f.length - 1; i >= 0; i--) { - filename = f[i]; - if (filename) break; - } - for (i = 0; i < set.length; i++) { - var pattern = set[i]; - var file = f; - if (options.matchBase && pattern.length === 1) { - file = [filename]; - } - var hit = this.matchOne(file, pattern, partial); - if (hit) { - if (options.flipNegate) return true; - return !this.negate; - } - } - if (options.flipNegate) return false; - return this.negate; - }; - Minimatch.prototype.matchOne = function(file, pattern, partial) { - var options = this.options; - this.debug( - "matchOne", - { "this": this, file, pattern } - ); - this.debug("matchOne", file.length, pattern.length); - for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { - this.debug("matchOne loop"); - var p = pattern[pi]; - var f = file[fi]; - this.debug(pattern, p, f); - if (p === false) return false; - if (p === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p, f]); - var fr = fi; - var pr = pi + 1; - if (pr === pl) { - this.debug("** at the end"); - for (; fi < fl; fi++) { - if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false; - } - return true; - } - while (fr < fl) { - var swallowee = file[fr]; - this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug("globstar found match!", fr, fl, swallowee); - return true; - } else { - if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { - this.debug("dot detected!", file, fr, pattern, pr); - break; - } - this.debug("globstar swallow a segment, and continue"); - fr++; - } - } - if (partial) { - this.debug("\n>>> no match, partial?", file, fr, pattern, pr); - if (fr === fl) return true; - } - return false; - } - var hit; - if (typeof p === "string") { - hit = f === p; - this.debug("string match", p, f, hit); - } else { - hit = f.match(p); - this.debug("pattern match", p, f, hit); - } - if (!hit) return false; - } - if (fi === fl && pi === pl) { - return true; - } else if (fi === fl) { - return partial; - } else if (pi === pl) { - return fi === fl - 1 && file[fi] === ""; - } - throw new Error("wtf?"); - }; - function globUnescape(s) { - return s.replace(/\\(.)/g, "$1"); - } - function regExpEscape(s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - } - } -}); -var require_inherits_browser = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module2) { - "use strict"; - if (typeof Object.create === "function") { - module2.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - } - }; - } else { - module2.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() { - }; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - } - }; - } - } -}); -var require_inherits = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module2) { - "use strict"; - try { - util = (0, import_chunk_AH6QHEOA.__require)("util"); - if (typeof util.inherits !== "function") throw ""; - module2.exports = util.inherits; - } catch (e) { - module2.exports = require_inherits_browser(); - } - var util; - } -}); -var require_path_is_absolute = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) { - "use strict"; - function posix(path) { - return path.charAt(0) === "/"; - } - function win32(path) { - var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; - var result = splitDeviceRe.exec(path); - var device = result[1] || ""; - var isUnc = Boolean(device && device.charAt(1) !== ":"); - return Boolean(result[2] || isUnc); - } - module2.exports = process.platform === "win32" ? win32 : posix; - module2.exports.posix = posix; - module2.exports.win32 = win32; - } -}); -var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(exports) { - "use strict"; - exports.setopts = setopts; - exports.ownProp = ownProp; - exports.makeAbs = makeAbs; - exports.finish = finish; - exports.mark = mark; - exports.isIgnored = isIgnored; - exports.childrenIgnored = childrenIgnored; - function ownProp(obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field); - } - var fs = (0, import_chunk_AH6QHEOA.__require)("fs"); - var path = (0, import_chunk_AH6QHEOA.__require)("path"); - var minimatch = require_minimatch(); - var isAbsolute = require_path_is_absolute(); - var Minimatch = minimatch.Minimatch; - function alphasort(a, b) { - return a.localeCompare(b, "en"); - } - function setupIgnores(self, options) { - self.ignore = options.ignore || []; - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore]; - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap); - } - } - function ignoreMap(pattern) { - var gmatcher = null; - if (pattern.slice(-3) === "/**") { - var gpattern = pattern.replace(/(\/\*\*)+$/, ""); - gmatcher = new Minimatch(gpattern, { dot: true }); - } - return { - matcher: new Minimatch(pattern, { dot: true }), - gmatcher - }; - } - function setopts(self, pattern, options) { - if (!options) - options = {}; - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar"); - } - pattern = "**/" + pattern; - } - self.silent = !!options.silent; - self.pattern = pattern; - self.strict = options.strict !== false; - self.realpath = !!options.realpath; - self.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null); - self.follow = !!options.follow; - self.dot = !!options.dot; - self.mark = !!options.mark; - self.nodir = !!options.nodir; - if (self.nodir) - self.mark = true; - self.sync = !!options.sync; - self.nounique = !!options.nounique; - self.nonull = !!options.nonull; - self.nosort = !!options.nosort; - self.nocase = !!options.nocase; - self.stat = !!options.stat; - self.noprocess = !!options.noprocess; - self.absolute = !!options.absolute; - self.fs = options.fs || fs; - self.maxLength = options.maxLength || Infinity; - self.cache = options.cache || /* @__PURE__ */ Object.create(null); - self.statCache = options.statCache || /* @__PURE__ */ Object.create(null); - self.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null); - setupIgnores(self, options); - self.changedCwd = false; - var cwd = process.cwd(); - if (!ownProp(options, "cwd")) - self.cwd = cwd; - else { - self.cwd = path.resolve(options.cwd); - self.changedCwd = self.cwd !== cwd; - } - self.root = options.root || path.resolve(self.cwd, "/"); - self.root = path.resolve(self.root); - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/"); - self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd); - if (process.platform === "win32") - self.cwdAbs = self.cwdAbs.replace(/\\/g, "/"); - self.nomount = !!options.nomount; - options.nonegate = true; - options.nocomment = true; - options.allowWindowsEscape = false; - self.minimatch = new Minimatch(pattern, options); - self.options = self.minimatch.options; - } - function finish(self) { - var nou = self.nounique; - var all = nou ? [] : /* @__PURE__ */ Object.create(null); - for (var i = 0, l = self.matches.length; i < l; i++) { - var matches = self.matches[i]; - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - var literal = self.minimatch.globSet[i]; - if (nou) - all.push(literal); - else - all[literal] = true; - } - } else { - var m = Object.keys(matches); - if (nou) - all.push.apply(all, m); - else - m.forEach(function(m2) { - all[m2] = true; - }); - } - } - if (!nou) - all = Object.keys(all); - if (!self.nosort) - all = all.sort(alphasort); - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]); - } - if (self.nodir) { - all = all.filter(function(e) { - var notDir = !/\/$/.test(e); - var c = self.cache[e] || self.cache[makeAbs(self, e)]; - if (notDir && c) - notDir = c !== "DIR" && !Array.isArray(c); - return notDir; - }); - } - } - if (self.ignore.length) - all = all.filter(function(m2) { - return !isIgnored(self, m2); - }); - self.found = all; - } - function mark(self, p) { - var abs = makeAbs(self, p); - var c = self.cache[abs]; - var m = p; - if (c) { - var isDir = c === "DIR" || Array.isArray(c); - var slash = p.slice(-1) === "/"; - if (isDir && !slash) - m += "/"; - else if (!isDir && slash) - m = m.slice(0, -1); - if (m !== p) { - var mabs = makeAbs(self, m); - self.statCache[mabs] = self.statCache[abs]; - self.cache[mabs] = self.cache[abs]; - } - } - return m; - } - function makeAbs(self, f) { - var abs = f; - if (f.charAt(0) === "/") { - abs = path.join(self.root, f); - } else if (isAbsolute(f) || f === "") { - abs = f; - } else if (self.changedCwd) { - abs = path.resolve(self.cwd, f); - } else { - abs = path.resolve(f); - } - if (process.platform === "win32") - abs = abs.replace(/\\/g, "/"); - return abs; - } - function isIgnored(self, path2) { - if (!self.ignore.length) - return false; - return self.ignore.some(function(item) { - return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2)); - }); - } - function childrenIgnored(self, path2) { - if (!self.ignore.length) - return false; - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path2)); - }); - } - } -}); -var require_sync = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(exports, module2) { - "use strict"; - module2.exports = globSync; - globSync.GlobSync = GlobSync; - var rp = require_fs(); - var minimatch = require_minimatch(); - var Minimatch = minimatch.Minimatch; - var Glob = require_glob().Glob; - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - var path = (0, import_chunk_AH6QHEOA.__require)("path"); - var assert = (0, import_chunk_AH6QHEOA.__require)("assert"); - var isAbsolute = require_path_is_absolute(); - var common = require_common(); - var setopts = common.setopts; - var ownProp = common.ownProp; - var childrenIgnored = common.childrenIgnored; - var isIgnored = common.isIgnored; - function globSync(pattern, options) { - if (typeof options === "function" || arguments.length === 3) - throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); - return new GlobSync(pattern, options).found; - } - function GlobSync(pattern, options) { - if (!pattern) - throw new Error("must provide pattern"); - if (typeof options === "function" || arguments.length === 3) - throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); - if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options); - setopts(this, pattern, options); - if (this.noprocess) - return this; - var n = this.minimatch.set.length; - this.matches = new Array(n); - for (var i = 0; i < n; i++) { - this._process(this.minimatch.set[i], i, false); - } - this._finish(); - } - GlobSync.prototype._finish = function() { - assert.ok(this instanceof GlobSync); - if (this.realpath) { - var self = this; - this.matches.forEach(function(matchset, index) { - var set = self.matches[index] = /* @__PURE__ */ Object.create(null); - for (var p in matchset) { - try { - p = self._makeAbs(p); - var real = rp.realpathSync(p, self.realpathCache); - set[real] = true; - } catch (er) { - if (er.syscall === "stat") - set[self._makeAbs(p)] = true; - else - throw er; - } - } - }); - } - common.finish(this); - }; - GlobSync.prototype._process = function(pattern, index, inGlobStar) { - assert.ok(this instanceof GlobSync); - var n = 0; - while (typeof pattern[n] === "string") { - n++; - } - var prefix; - switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index); - return; - case 0: - prefix = null; - break; - default: - prefix = pattern.slice(0, n).join("/"); - break; - } - var remain = pattern.slice(n); - var read; - if (prefix === null) - read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) { - return typeof p === "string" ? p : "[*]"; - }).join("/"))) { - if (!prefix || !isAbsolute(prefix)) - prefix = "/" + prefix; - read = prefix; - } else - read = prefix; - var abs = this._makeAbs(read); - if (childrenIgnored(this, read)) - return; - var isGlobStar = remain[0] === minimatch.GLOBSTAR; - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar); - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar); - }; - GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar); - if (!entries) - return; - var pn = remain[0]; - var negate = !!this.minimatch.negate; - var rawGlob = pn._glob; - var dotOk = this.dot || rawGlob.charAt(0) === "."; - var matchedEntries = []; - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (e.charAt(0) !== "." || dotOk) { - var m; - if (negate && !prefix) { - m = !e.match(pn); - } else { - m = e.match(pn); - } - if (m) - matchedEntries.push(e); - } - } - var len = matchedEntries.length; - if (len === 0) - return; - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - if (prefix) { - if (prefix.slice(-1) !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - if (e.charAt(0) === "/" && !this.nomount) { - e = path.join(this.root, e); - } - this._emitMatch(index, e); - } - return; - } - remain.shift(); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - var newPattern; - if (prefix) - newPattern = [prefix, e]; - else - newPattern = [e]; - this._process(newPattern.concat(remain), index, inGlobStar); - } - }; - GlobSync.prototype._emitMatch = function(index, e) { - if (isIgnored(this, e)) - return; - var abs = this._makeAbs(e); - if (this.mark) - e = this._mark(e); - if (this.absolute) { - e = abs; - } - if (this.matches[index][e]) - return; - if (this.nodir) { - var c = this.cache[abs]; - if (c === "DIR" || Array.isArray(c)) - return; - } - this.matches[index][e] = true; - if (this.stat) - this._stat(e); - }; - GlobSync.prototype._readdirInGlobStar = function(abs) { - if (this.follow) - return this._readdir(abs, false); - var entries; - var lstat; - var stat; - try { - lstat = this.fs.lstatSync(abs); - } catch (er) { - if (er.code === "ENOENT") { - return null; - } - } - var isSym = lstat && lstat.isSymbolicLink(); - this.symlinks[abs] = isSym; - if (!isSym && lstat && !lstat.isDirectory()) - this.cache[abs] = "FILE"; - else - entries = this._readdir(abs, false); - return entries; - }; - GlobSync.prototype._readdir = function(abs, inGlobStar) { - var entries; - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs); - if (ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (!c || c === "FILE") - return null; - if (Array.isArray(c)) - return c; - } - try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)); - } catch (er) { - this._readdirError(abs, er); - return null; - } - }; - GlobSync.prototype._readdirEntries = function(abs, entries) { - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (abs === "/") - e = abs + e; - else - e = abs + "/" + e; - this.cache[e] = true; - } - } - this.cache[abs] = entries; - return entries; - }; - GlobSync.prototype._readdirError = function(f, er) { - switch (er.code) { - case "ENOTSUP": - case "ENOTDIR": - var abs = this._makeAbs(f); - this.cache[abs] = "FILE"; - if (abs === this.cwdAbs) { - var error = new Error(er.code + " invalid cwd " + this.cwd); - error.path = this.cwd; - error.code = er.code; - throw error; - } - break; - case "ENOENT": - case "ELOOP": - case "ENAMETOOLONG": - case "UNKNOWN": - this.cache[this._makeAbs(f)] = false; - break; - default: - this.cache[this._makeAbs(f)] = false; - if (this.strict) - throw er; - if (!this.silent) - console.error("glob error", er); - break; - } - }; - GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar); - if (!entries) - return; - var remainWithoutGlobStar = remain.slice(1); - var gspref = prefix ? [prefix] : []; - var noGlobStar = gspref.concat(remainWithoutGlobStar); - this._process(noGlobStar, index, false); - var len = entries.length; - var isSym = this.symlinks[abs]; - if (isSym && inGlobStar) - return; - for (var i = 0; i < len; i++) { - var e = entries[i]; - if (e.charAt(0) === "." && !this.dot) - continue; - var instead = gspref.concat(entries[i], remainWithoutGlobStar); - this._process(instead, index, true); - var below = gspref.concat(entries[i], remain); - this._process(below, index, true); - } - }; - GlobSync.prototype._processSimple = function(prefix, index) { - var exists = this._stat(prefix); - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - if (!exists) - return; - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix); - if (prefix.charAt(0) === "/") { - prefix = path.join(this.root, prefix); - } else { - prefix = path.resolve(this.root, prefix); - if (trail) - prefix += "/"; - } - } - if (process.platform === "win32") - prefix = prefix.replace(/\\/g, "/"); - this._emitMatch(index, prefix); - }; - GlobSync.prototype._stat = function(f) { - var abs = this._makeAbs(f); - var needDir = f.slice(-1) === "/"; - if (f.length > this.maxLength) - return false; - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (Array.isArray(c)) - c = "DIR"; - if (!needDir || c === "DIR") - return c; - if (needDir && c === "FILE") - return false; - } - var exists; - var stat = this.statCache[abs]; - if (!stat) { - var lstat; - try { - lstat = this.fs.lstatSync(abs); - } catch (er) { - if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { - this.statCache[abs] = false; - return false; - } - } - if (lstat && lstat.isSymbolicLink()) { - try { - stat = this.fs.statSync(abs); - } catch (er) { - stat = lstat; - } - } else { - stat = lstat; - } - } - this.statCache[abs] = stat; - var c = true; - if (stat) - c = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c; - if (needDir && c === "FILE") - return false; - return c; - }; - GlobSync.prototype._mark = function(p) { - return common.mark(this, p); - }; - GlobSync.prototype._makeAbs = function(f) { - return common.makeAbs(this, f); - }; - } -}); -var require_wrappy = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports, module2) { - "use strict"; - module2.exports = wrappy; - function wrappy(fn, cb) { - if (fn && cb) return wrappy(fn)(cb); - if (typeof fn !== "function") - throw new TypeError("need wrapper function"); - Object.keys(fn).forEach(function(k) { - wrapper[k] = fn[k]; - }); - return wrapper; - function wrapper() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - var ret = fn.apply(this, args); - var cb2 = args[args.length - 1]; - if (typeof ret === "function" && ret !== cb2) { - Object.keys(cb2).forEach(function(k) { - ret[k] = cb2[k]; - }); - } - return ret; - } - } - } -}); -var require_once = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports, module2) { - "use strict"; - var wrappy = require_wrappy(); - module2.exports = wrappy(once); - module2.exports.strict = wrappy(onceStrict); - once.proto = once(function() { - Object.defineProperty(Function.prototype, "once", { - value: function() { - return once(this); - }, - configurable: true - }); - Object.defineProperty(Function.prototype, "onceStrict", { - value: function() { - return onceStrict(this); - }, - configurable: true - }); - }); - function once(fn) { - var f = function() { - if (f.called) return f.value; - f.called = true; - return f.value = fn.apply(this, arguments); - }; - f.called = false; - return f; - } - function onceStrict(fn) { - var f = function() { - if (f.called) - throw new Error(f.onceError); - f.called = true; - return f.value = fn.apply(this, arguments); - }; - var name = fn.name || "Function wrapped with `once`"; - f.onceError = name + " shouldn't be called more than once"; - f.called = false; - return f; - } - } -}); -var require_inflight = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(exports, module2) { - "use strict"; - var wrappy = require_wrappy(); - var reqs = /* @__PURE__ */ Object.create(null); - var once = require_once(); - module2.exports = wrappy(inflight); - function inflight(key, cb) { - if (reqs[key]) { - reqs[key].push(cb); - return null; - } else { - reqs[key] = [cb]; - return makeres(key); - } - } - function makeres(key) { - return once(function RES() { - var cbs = reqs[key]; - var len = cbs.length; - var args = slice(arguments); - try { - for (var i = 0; i < len; i++) { - cbs[i].apply(null, args); - } - } finally { - if (cbs.length > len) { - cbs.splice(0, len); - process.nextTick(function() { - RES.apply(null, args); - }); - } else { - delete reqs[key]; - } - } - }); - } - function slice(args) { - var length = args.length; - var array = []; - for (var i = 0; i < length; i++) array[i] = args[i]; - return array; - } - } -}); -var require_glob = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(exports, module2) { - "use strict"; - module2.exports = glob; - var rp = require_fs(); - var minimatch = require_minimatch(); - var Minimatch = minimatch.Minimatch; - var inherits = require_inherits(); - var EE = (0, import_chunk_AH6QHEOA.__require)("events").EventEmitter; - var path = (0, import_chunk_AH6QHEOA.__require)("path"); - var assert = (0, import_chunk_AH6QHEOA.__require)("assert"); - var isAbsolute = require_path_is_absolute(); - var globSync = require_sync(); - var common = require_common(); - var setopts = common.setopts; - var ownProp = common.ownProp; - var inflight = require_inflight(); - var util = (0, import_chunk_AH6QHEOA.__require)("util"); - var childrenIgnored = common.childrenIgnored; - var isIgnored = common.isIgnored; - var once = require_once(); - function glob(pattern, options, cb) { - if (typeof options === "function") cb = options, options = {}; - if (!options) options = {}; - if (options.sync) { - if (cb) - throw new TypeError("callback provided to sync glob"); - return globSync(pattern, options); - } - return new Glob(pattern, options, cb); - } - glob.sync = globSync; - var GlobSync = glob.GlobSync = globSync.GlobSync; - glob.glob = glob; - function extend(origin, add) { - if (add === null || typeof add !== "object") { - return origin; - } - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; - } - glob.hasMagic = function(pattern, options_) { - var options = extend({}, options_); - options.noprocess = true; - var g = new Glob(pattern, options); - var set = g.minimatch.set; - if (!pattern) - return false; - if (set.length > 1) - return true; - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== "string") - return true; - } - return false; - }; - glob.Glob = Glob; - inherits(Glob, EE); - function Glob(pattern, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - if (options && options.sync) { - if (cb) - throw new TypeError("callback provided to sync glob"); - return new GlobSync(pattern, options); - } - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb); - setopts(this, pattern, options); - this._didRealPath = false; - var n = this.minimatch.set.length; - this.matches = new Array(n); - if (typeof cb === "function") { - cb = once(cb); - this.on("error", cb); - this.on("end", function(matches) { - cb(null, matches); - }); - } - var self = this; - this._processing = 0; - this._emitQueue = []; - this._processQueue = []; - this.paused = false; - if (this.noprocess) - return this; - if (n === 0) - return done(); - var sync = true; - for (var i = 0; i < n; i++) { - this._process(this.minimatch.set[i], i, false, done); - } - sync = false; - function done() { - --self._processing; - if (self._processing <= 0) { - if (sync) { - process.nextTick(function() { - self._finish(); - }); - } else { - self._finish(); - } - } - } - } - Glob.prototype._finish = function() { - assert(this instanceof Glob); - if (this.aborted) - return; - if (this.realpath && !this._didRealpath) - return this._realpath(); - common.finish(this); - this.emit("end", this.found); - }; - Glob.prototype._realpath = function() { - if (this._didRealpath) - return; - this._didRealpath = true; - var n = this.matches.length; - if (n === 0) - return this._finish(); - var self = this; - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next); - function next() { - if (--n === 0) - self._finish(); - } - }; - Glob.prototype._realpathSet = function(index, cb) { - var matchset = this.matches[index]; - if (!matchset) - return cb(); - var found = Object.keys(matchset); - var self = this; - var n = found.length; - if (n === 0) - return cb(); - var set = this.matches[index] = /* @__PURE__ */ Object.create(null); - found.forEach(function(p, i) { - p = self._makeAbs(p); - rp.realpath(p, self.realpathCache, function(er, real) { - if (!er) - set[real] = true; - else if (er.syscall === "stat") - set[p] = true; - else - self.emit("error", er); - if (--n === 0) { - self.matches[index] = set; - cb(); - } - }); - }); - }; - Glob.prototype._mark = function(p) { - return common.mark(this, p); - }; - Glob.prototype._makeAbs = function(f) { - return common.makeAbs(this, f); - }; - Glob.prototype.abort = function() { - this.aborted = true; - this.emit("abort"); - }; - Glob.prototype.pause = function() { - if (!this.paused) { - this.paused = true; - this.emit("pause"); - } - }; - Glob.prototype.resume = function() { - if (this.paused) { - this.emit("resume"); - this.paused = false; - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0); - this._emitQueue.length = 0; - for (var i = 0; i < eq.length; i++) { - var e = eq[i]; - this._emitMatch(e[0], e[1]); - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0); - this._processQueue.length = 0; - for (var i = 0; i < pq.length; i++) { - var p = pq[i]; - this._processing--; - this._process(p[0], p[1], p[2], p[3]); - } - } - } - }; - Glob.prototype._process = function(pattern, index, inGlobStar, cb) { - assert(this instanceof Glob); - assert(typeof cb === "function"); - if (this.aborted) - return; - this._processing++; - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]); - return; - } - var n = 0; - while (typeof pattern[n] === "string") { - n++; - } - var prefix; - switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index, cb); - return; - case 0: - prefix = null; - break; - default: - prefix = pattern.slice(0, n).join("/"); - break; - } - var remain = pattern.slice(n); - var read; - if (prefix === null) - read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) { - return typeof p === "string" ? p : "[*]"; - }).join("/"))) { - if (!prefix || !isAbsolute(prefix)) - prefix = "/" + prefix; - read = prefix; - } else - read = prefix; - var abs = this._makeAbs(read); - if (childrenIgnored(this, read)) - return cb(); - var isGlobStar = remain[0] === minimatch.GLOBSTAR; - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb); - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb); - }; - Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this; - this._readdir(abs, inGlobStar, function(er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb); - }); - }; - Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) { - if (!entries) - return cb(); - var pn = remain[0]; - var negate = !!this.minimatch.negate; - var rawGlob = pn._glob; - var dotOk = this.dot || rawGlob.charAt(0) === "."; - var matchedEntries = []; - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (e.charAt(0) !== "." || dotOk) { - var m; - if (negate && !prefix) { - m = !e.match(pn); - } else { - m = e.match(pn); - } - if (m) - matchedEntries.push(e); - } - } - var len = matchedEntries.length; - if (len === 0) - return cb(); - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - if (prefix) { - if (prefix !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - if (e.charAt(0) === "/" && !this.nomount) { - e = path.join(this.root, e); - } - this._emitMatch(index, e); - } - return cb(); - } - remain.shift(); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - var newPattern; - if (prefix) { - if (prefix !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - this._process([e].concat(remain), index, inGlobStar, cb); - } - cb(); - }; - Glob.prototype._emitMatch = function(index, e) { - if (this.aborted) - return; - if (isIgnored(this, e)) - return; - if (this.paused) { - this._emitQueue.push([index, e]); - return; - } - var abs = isAbsolute(e) ? e : this._makeAbs(e); - if (this.mark) - e = this._mark(e); - if (this.absolute) - e = abs; - if (this.matches[index][e]) - return; - if (this.nodir) { - var c = this.cache[abs]; - if (c === "DIR" || Array.isArray(c)) - return; - } - this.matches[index][e] = true; - var st = this.statCache[abs]; - if (st) - this.emit("stat", e, st); - this.emit("match", e); - }; - Glob.prototype._readdirInGlobStar = function(abs, cb) { - if (this.aborted) - return; - if (this.follow) - return this._readdir(abs, false, cb); - var lstatkey = "lstat\0" + abs; - var self = this; - var lstatcb = inflight(lstatkey, lstatcb_); - if (lstatcb) - self.fs.lstat(abs, lstatcb); - function lstatcb_(er, lstat) { - if (er && er.code === "ENOENT") - return cb(); - var isSym = lstat && lstat.isSymbolicLink(); - self.symlinks[abs] = isSym; - if (!isSym && lstat && !lstat.isDirectory()) { - self.cache[abs] = "FILE"; - cb(); - } else - self._readdir(abs, false, cb); - } - }; - Glob.prototype._readdir = function(abs, inGlobStar, cb) { - if (this.aborted) - return; - cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb); - if (!cb) - return; - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb); - if (ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (!c || c === "FILE") - return cb(); - if (Array.isArray(c)) - return cb(null, c); - } - var self = this; - self.fs.readdir(abs, readdirCb(this, abs, cb)); - }; - function readdirCb(self, abs, cb) { - return function(er, entries) { - if (er) - self._readdirError(abs, er, cb); - else - self._readdirEntries(abs, entries, cb); - }; - } - Glob.prototype._readdirEntries = function(abs, entries, cb) { - if (this.aborted) - return; - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (abs === "/") - e = abs + e; - else - e = abs + "/" + e; - this.cache[e] = true; - } - } - this.cache[abs] = entries; - return cb(null, entries); - }; - Glob.prototype._readdirError = function(f, er, cb) { - if (this.aborted) - return; - switch (er.code) { - case "ENOTSUP": - case "ENOTDIR": - var abs = this._makeAbs(f); - this.cache[abs] = "FILE"; - if (abs === this.cwdAbs) { - var error = new Error(er.code + " invalid cwd " + this.cwd); - error.path = this.cwd; - error.code = er.code; - this.emit("error", error); - this.abort(); - } - break; - case "ENOENT": - case "ELOOP": - case "ENAMETOOLONG": - case "UNKNOWN": - this.cache[this._makeAbs(f)] = false; - break; - default: - this.cache[this._makeAbs(f)] = false; - if (this.strict) { - this.emit("error", er); - this.abort(); - } - if (!this.silent) - console.error("glob error", er); - break; - } - return cb(); - }; - Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this; - this._readdir(abs, inGlobStar, function(er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb); - }); - }; - Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) { - if (!entries) - return cb(); - var remainWithoutGlobStar = remain.slice(1); - var gspref = prefix ? [prefix] : []; - var noGlobStar = gspref.concat(remainWithoutGlobStar); - this._process(noGlobStar, index, false, cb); - var isSym = this.symlinks[abs]; - var len = entries.length; - if (isSym && inGlobStar) - return cb(); - for (var i = 0; i < len; i++) { - var e = entries[i]; - if (e.charAt(0) === "." && !this.dot) - continue; - var instead = gspref.concat(entries[i], remainWithoutGlobStar); - this._process(instead, index, true, cb); - var below = gspref.concat(entries[i], remain); - this._process(below, index, true, cb); - } - cb(); - }; - Glob.prototype._processSimple = function(prefix, index, cb) { - var self = this; - this._stat(prefix, function(er, exists) { - self._processSimple2(prefix, index, er, exists, cb); - }); - }; - Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - if (!exists) - return cb(); - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix); - if (prefix.charAt(0) === "/") { - prefix = path.join(this.root, prefix); - } else { - prefix = path.resolve(this.root, prefix); - if (trail) - prefix += "/"; - } - } - if (process.platform === "win32") - prefix = prefix.replace(/\\/g, "/"); - this._emitMatch(index, prefix); - cb(); - }; - Glob.prototype._stat = function(f, cb) { - var abs = this._makeAbs(f); - var needDir = f.slice(-1) === "/"; - if (f.length > this.maxLength) - return cb(); - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (Array.isArray(c)) - c = "DIR"; - if (!needDir || c === "DIR") - return cb(null, c); - if (needDir && c === "FILE") - return cb(); - } - var exists; - var stat = this.statCache[abs]; - if (stat !== void 0) { - if (stat === false) - return cb(null, stat); - else { - var type = stat.isDirectory() ? "DIR" : "FILE"; - if (needDir && type === "FILE") - return cb(); - else - return cb(null, type, stat); - } - } - var self = this; - var statcb = inflight("stat\0" + abs, lstatcb_); - if (statcb) - self.fs.lstat(abs, statcb); - function lstatcb_(er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - return self.fs.stat(abs, function(er2, stat2) { - if (er2) - self._stat2(f, abs, null, lstat, cb); - else - self._stat2(f, abs, er2, stat2, cb); - }); - } else { - self._stat2(f, abs, er, lstat, cb); - } - } - }; - Glob.prototype._stat2 = function(f, abs, er, stat, cb) { - if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { - this.statCache[abs] = false; - return cb(); - } - var needDir = f.slice(-1) === "/"; - this.statCache[abs] = stat; - if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) - return cb(null, false, stat); - var c = true; - if (stat) - c = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c; - if (needDir && c === "FILE") - return cb(); - return cb(null, c, stat); - }; - } -}); -var require_rimraf = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) { - "use strict"; - var assert = (0, import_chunk_AH6QHEOA.__require)("assert"); - var path = (0, import_chunk_AH6QHEOA.__require)("path"); - var fs = (0, import_chunk_AH6QHEOA.__require)("fs"); - var glob = void 0; - try { - glob = require_glob(); - } catch (_err) { - } - var defaultGlobOpts = { - nosort: true, - silent: true - }; - var timeout = 0; - var isWindows = process.platform === "win32"; - var defaults = (options) => { - const methods = [ - "unlink", - "chmod", - "stat", - "lstat", - "rmdir", - "readdir" - ]; - methods.forEach((m) => { - options[m] = options[m] || fs[m]; - m = m + "Sync"; - options[m] = options[m] || fs[m]; - }); - options.maxBusyTries = options.maxBusyTries || 3; - options.emfileWait = options.emfileWait || 1e3; - if (options.glob === false) { - options.disableGlob = true; - } - if (options.disableGlob !== true && glob === void 0) { - throw Error("glob dependency not found, set `options.disableGlob = true` if intentional"); - } - options.disableGlob = options.disableGlob || false; - options.glob = options.glob || defaultGlobOpts; - }; - var rimraf = (p, options, cb) => { - if (typeof options === "function") { - cb = options; - options = {}; - } - assert(p, "rimraf: missing path"); - assert.equal(typeof p, "string", "rimraf: path should be a string"); - assert.equal(typeof cb, "function", "rimraf: callback function required"); - assert(options, "rimraf: invalid options argument provided"); - assert.equal(typeof options, "object", "rimraf: options should be object"); - defaults(options); - let busyTries = 0; - let errState = null; - let n = 0; - const next = (er) => { - errState = errState || er; - if (--n === 0) - cb(errState); - }; - const afterGlob = (er, results) => { - if (er) - return cb(er); - n = results.length; - if (n === 0) - return cb(); - results.forEach((p2) => { - const CB = (er2) => { - if (er2) { - if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) { - busyTries++; - return setTimeout(() => rimraf_(p2, options, CB), busyTries * 100); - } - if (er2.code === "EMFILE" && timeout < options.emfileWait) { - return setTimeout(() => rimraf_(p2, options, CB), timeout++); - } - if (er2.code === "ENOENT") er2 = null; - } - timeout = 0; - next(er2); - }; - rimraf_(p2, options, CB); - }); - }; - if (options.disableGlob || !glob.hasMagic(p)) - return afterGlob(null, [p]); - options.lstat(p, (er, stat) => { - if (!er) - return afterGlob(null, [p]); - glob(p, options.glob, afterGlob); - }); - }; - var rimraf_ = (p, options, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.lstat(p, (er, st) => { - if (er && er.code === "ENOENT") - return cb(null); - if (er && er.code === "EPERM" && isWindows) - fixWinEPERM(p, options, er, cb); - if (st && st.isDirectory()) - return rmdir(p, options, er, cb); - options.unlink(p, (er2) => { - if (er2) { - if (er2.code === "ENOENT") - return cb(null); - if (er2.code === "EPERM") - return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb); - if (er2.code === "EISDIR") - return rmdir(p, options, er2, cb); - } - return cb(er2); - }); - }); - }; - var fixWinEPERM = (p, options, er, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.chmod(p, 438, (er2) => { - if (er2) - cb(er2.code === "ENOENT" ? null : er); - else - options.stat(p, (er3, stats) => { - if (er3) - cb(er3.code === "ENOENT" ? null : er); - else if (stats.isDirectory()) - rmdir(p, options, er, cb); - else - options.unlink(p, cb); - }); - }); - }; - var fixWinEPERMSync = (p, options, er) => { - assert(p); - assert(options); - try { - options.chmodSync(p, 438); - } catch (er2) { - if (er2.code === "ENOENT") - return; - else - throw er; - } - let stats; - try { - stats = options.statSync(p); - } catch (er3) { - if (er3.code === "ENOENT") - return; - else - throw er; - } - if (stats.isDirectory()) - rmdirSync(p, options, er); - else - options.unlinkSync(p); - }; - var rmdir = (p, options, originalEr, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.rmdir(p, (er) => { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) - rmkids(p, options, cb); - else if (er && er.code === "ENOTDIR") - cb(originalEr); - else - cb(er); - }); - }; - var rmkids = (p, options, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.readdir(p, (er, files) => { - if (er) - return cb(er); - let n = files.length; - if (n === 0) - return options.rmdir(p, cb); - let errState; - files.forEach((f) => { - rimraf(path.join(p, f), options, (er2) => { - if (errState) - return; - if (er2) - return cb(errState = er2); - if (--n === 0) - options.rmdir(p, cb); - }); - }); - }); - }; - var rimrafSync = (p, options) => { - options = options || {}; - defaults(options); - assert(p, "rimraf: missing path"); - assert.equal(typeof p, "string", "rimraf: path should be a string"); - assert(options, "rimraf: missing options"); - assert.equal(typeof options, "object", "rimraf: options should be object"); - let results; - if (options.disableGlob || !glob.hasMagic(p)) { - results = [p]; - } else { - try { - options.lstatSync(p); - results = [p]; - } catch (er) { - results = glob.sync(p, options.glob); - } - } - if (!results.length) - return; - for (let i = 0; i < results.length; i++) { - const p2 = results[i]; - let st; - try { - st = options.lstatSync(p2); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "EPERM" && isWindows) - fixWinEPERMSync(p2, options, er); - } - try { - if (st && st.isDirectory()) - rmdirSync(p2, options, null); - else - options.unlinkSync(p2); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "EPERM") - return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er); - if (er.code !== "EISDIR") - throw er; - rmdirSync(p2, options, er); - } - } - }; - var rmdirSync = (p, options, originalEr) => { - assert(p); - assert(options); - try { - options.rmdirSync(p); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "ENOTDIR") - throw originalEr; - if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") - rmkidsSync(p, options); - } - }; - var rmkidsSync = (p, options) => { - assert(p); - assert(options); - options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options)); - const retries = isWindows ? 100 : 1; - let i = 0; - do { - let threw = true; - try { - const ret = options.rmdirSync(p, options); - threw = false; - return ret; - } finally { - if (++i < retries && threw) - continue; - } - } while (true); - }; - module2.exports = rimraf; - rimraf.sync = rimrafSync; - } -}); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js deleted file mode 100644 index 67db1f8..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +++ /dev/null @@ -1,4232 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_VTJS2JJN_exports = {}; -__export(chunk_VTJS2JJN_exports, { - FormData: () => FormData, - fetch_blob_default: () => fetch_blob_default, - file_default: () => file_default, - formDataToBlob: () => formDataToBlob -}); -module.exports = __toCommonJS(chunk_VTJS2JJN_exports); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var import_fs = require("fs"); -var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) { - "use strict"; - (function(global2, factory) { - typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.WebStreamsPolyfill = {})); - })(exports, function(exports2) { - "use strict"; - const SymbolPolyfill = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol : (description) => `Symbol(${description})`; - function noop() { - return void 0; - } - function getGlobals() { - if (typeof self !== "undefined") { - return self; - } else if (typeof window !== "undefined") { - return window; - } else if (typeof global !== "undefined") { - return global; - } - return void 0; - } - const globals = getGlobals(); - function typeIsObject(x2) { - return typeof x2 === "object" && x2 !== null || typeof x2 === "function"; - } - const rethrowAssertionErrorRejection = noop; - const originalPromise = Promise; - const originalPromiseThen = Promise.prototype.then; - const originalPromiseResolve = Promise.resolve.bind(originalPromise); - const originalPromiseReject = Promise.reject.bind(originalPromise); - function newPromise(executor) { - return new originalPromise(executor); - } - function promiseResolvedWith(value) { - return originalPromiseResolve(value); - } - function promiseRejectedWith(reason) { - return originalPromiseReject(reason); - } - function PerformPromiseThen(promise, onFulfilled, onRejected) { - return originalPromiseThen.call(promise, onFulfilled, onRejected); - } - function uponPromise(promise, onFulfilled, onRejected) { - PerformPromiseThen(PerformPromiseThen(promise, onFulfilled, onRejected), void 0, rethrowAssertionErrorRejection); - } - function uponFulfillment(promise, onFulfilled) { - uponPromise(promise, onFulfilled); - } - function uponRejection(promise, onRejected) { - uponPromise(promise, void 0, onRejected); - } - function transformPromiseWith(promise, fulfillmentHandler, rejectionHandler) { - return PerformPromiseThen(promise, fulfillmentHandler, rejectionHandler); - } - function setPromiseIsHandledToTrue(promise) { - PerformPromiseThen(promise, void 0, rethrowAssertionErrorRejection); - } - const queueMicrotask = (() => { - const globalQueueMicrotask = globals && globals.queueMicrotask; - if (typeof globalQueueMicrotask === "function") { - return globalQueueMicrotask; - } - const resolvedPromise = promiseResolvedWith(void 0); - return (fn) => PerformPromiseThen(resolvedPromise, fn); - })(); - function reflectCall(F, V, args) { - if (typeof F !== "function") { - throw new TypeError("Argument is not a function"); - } - return Function.prototype.apply.call(F, V, args); - } - function promiseCall(F, V, args) { - try { - return promiseResolvedWith(reflectCall(F, V, args)); - } catch (value) { - return promiseRejectedWith(value); - } - } - const QUEUE_MAX_ARRAY_SIZE = 16384; - class SimpleQueue { - constructor() { - this._cursor = 0; - this._size = 0; - this._front = { - _elements: [], - _next: void 0 - }; - this._back = this._front; - this._cursor = 0; - this._size = 0; - } - get length() { - return this._size; - } - // For exception safety, this method is structured in order: - // 1. Read state - // 2. Calculate required state mutations - // 3. Perform state mutations - push(element) { - const oldBack = this._back; - let newBack = oldBack; - if (oldBack._elements.length === QUEUE_MAX_ARRAY_SIZE - 1) { - newBack = { - _elements: [], - _next: void 0 - }; - } - oldBack._elements.push(element); - if (newBack !== oldBack) { - this._back = newBack; - oldBack._next = newBack; - } - ++this._size; - } - // Like push(), shift() follows the read -> calculate -> mutate pattern for - // exception safety. - shift() { - const oldFront = this._front; - let newFront = oldFront; - const oldCursor = this._cursor; - let newCursor = oldCursor + 1; - const elements = oldFront._elements; - const element = elements[oldCursor]; - if (newCursor === QUEUE_MAX_ARRAY_SIZE) { - newFront = oldFront._next; - newCursor = 0; - } - --this._size; - this._cursor = newCursor; - if (oldFront !== newFront) { - this._front = newFront; - } - elements[oldCursor] = void 0; - return element; - } - // The tricky thing about forEach() is that it can be called - // re-entrantly. The queue may be mutated inside the callback. It is easy to - // see that push() within the callback has no negative effects since the end - // of the queue is checked for on every iteration. If shift() is called - // repeatedly within the callback then the next iteration may return an - // element that has been removed. In this case the callback will be called - // with undefined values until we either "catch up" with elements that still - // exist or reach the back of the queue. - forEach(callback) { - let i2 = this._cursor; - let node = this._front; - let elements = node._elements; - while (i2 !== elements.length || node._next !== void 0) { - if (i2 === elements.length) { - node = node._next; - elements = node._elements; - i2 = 0; - if (elements.length === 0) { - break; - } - } - callback(elements[i2]); - ++i2; - } - } - // Return the element that would be returned if shift() was called now, - // without modifying the queue. - peek() { - const front = this._front; - const cursor = this._cursor; - return front._elements[cursor]; - } - } - function ReadableStreamReaderGenericInitialize(reader, stream) { - reader._ownerReadableStream = stream; - stream._reader = reader; - if (stream._state === "readable") { - defaultReaderClosedPromiseInitialize(reader); - } else if (stream._state === "closed") { - defaultReaderClosedPromiseInitializeAsResolved(reader); - } else { - defaultReaderClosedPromiseInitializeAsRejected(reader, stream._storedError); - } - } - function ReadableStreamReaderGenericCancel(reader, reason) { - const stream = reader._ownerReadableStream; - return ReadableStreamCancel(stream, reason); - } - function ReadableStreamReaderGenericRelease(reader) { - if (reader._ownerReadableStream._state === "readable") { - defaultReaderClosedPromiseReject(reader, new TypeError(`Reader was released and can no longer be used to monitor the stream's closedness`)); - } else { - defaultReaderClosedPromiseResetToRejected(reader, new TypeError(`Reader was released and can no longer be used to monitor the stream's closedness`)); - } - reader._ownerReadableStream._reader = void 0; - reader._ownerReadableStream = void 0; - } - function readerLockException(name) { - return new TypeError("Cannot " + name + " a stream using a released reader"); - } - function defaultReaderClosedPromiseInitialize(reader) { - reader._closedPromise = newPromise((resolve, reject) => { - reader._closedPromise_resolve = resolve; - reader._closedPromise_reject = reject; - }); - } - function defaultReaderClosedPromiseInitializeAsRejected(reader, reason) { - defaultReaderClosedPromiseInitialize(reader); - defaultReaderClosedPromiseReject(reader, reason); - } - function defaultReaderClosedPromiseInitializeAsResolved(reader) { - defaultReaderClosedPromiseInitialize(reader); - defaultReaderClosedPromiseResolve(reader); - } - function defaultReaderClosedPromiseReject(reader, reason) { - if (reader._closedPromise_reject === void 0) { - return; - } - setPromiseIsHandledToTrue(reader._closedPromise); - reader._closedPromise_reject(reason); - reader._closedPromise_resolve = void 0; - reader._closedPromise_reject = void 0; - } - function defaultReaderClosedPromiseResetToRejected(reader, reason) { - defaultReaderClosedPromiseInitializeAsRejected(reader, reason); - } - function defaultReaderClosedPromiseResolve(reader) { - if (reader._closedPromise_resolve === void 0) { - return; - } - reader._closedPromise_resolve(void 0); - reader._closedPromise_resolve = void 0; - reader._closedPromise_reject = void 0; - } - const AbortSteps = SymbolPolyfill("[[AbortSteps]]"); - const ErrorSteps = SymbolPolyfill("[[ErrorSteps]]"); - const CancelSteps = SymbolPolyfill("[[CancelSteps]]"); - const PullSteps = SymbolPolyfill("[[PullSteps]]"); - const NumberIsFinite = Number.isFinite || function(x2) { - return typeof x2 === "number" && isFinite(x2); - }; - const MathTrunc = Math.trunc || function(v) { - return v < 0 ? Math.ceil(v) : Math.floor(v); - }; - function isDictionary(x2) { - return typeof x2 === "object" || typeof x2 === "function"; - } - function assertDictionary(obj, context) { - if (obj !== void 0 && !isDictionary(obj)) { - throw new TypeError(`${context} is not an object.`); - } - } - function assertFunction(x2, context) { - if (typeof x2 !== "function") { - throw new TypeError(`${context} is not a function.`); - } - } - function isObject(x2) { - return typeof x2 === "object" && x2 !== null || typeof x2 === "function"; - } - function assertObject(x2, context) { - if (!isObject(x2)) { - throw new TypeError(`${context} is not an object.`); - } - } - function assertRequiredArgument(x2, position, context) { - if (x2 === void 0) { - throw new TypeError(`Parameter ${position} is required in '${context}'.`); - } - } - function assertRequiredField(x2, field, context) { - if (x2 === void 0) { - throw new TypeError(`${field} is required in '${context}'.`); - } - } - function convertUnrestrictedDouble(value) { - return Number(value); - } - function censorNegativeZero(x2) { - return x2 === 0 ? 0 : x2; - } - function integerPart(x2) { - return censorNegativeZero(MathTrunc(x2)); - } - function convertUnsignedLongLongWithEnforceRange(value, context) { - const lowerBound = 0; - const upperBound = Number.MAX_SAFE_INTEGER; - let x2 = Number(value); - x2 = censorNegativeZero(x2); - if (!NumberIsFinite(x2)) { - throw new TypeError(`${context} is not a finite number`); - } - x2 = integerPart(x2); - if (x2 < lowerBound || x2 > upperBound) { - throw new TypeError(`${context} is outside the accepted range of ${lowerBound} to ${upperBound}, inclusive`); - } - if (!NumberIsFinite(x2) || x2 === 0) { - return 0; - } - return x2; - } - function assertReadableStream(x2, context) { - if (!IsReadableStream(x2)) { - throw new TypeError(`${context} is not a ReadableStream.`); - } - } - function AcquireReadableStreamDefaultReader(stream) { - return new ReadableStreamDefaultReader(stream); - } - function ReadableStreamAddReadRequest(stream, readRequest) { - stream._reader._readRequests.push(readRequest); - } - function ReadableStreamFulfillReadRequest(stream, chunk, done) { - const reader = stream._reader; - const readRequest = reader._readRequests.shift(); - if (done) { - readRequest._closeSteps(); - } else { - readRequest._chunkSteps(chunk); - } - } - function ReadableStreamGetNumReadRequests(stream) { - return stream._reader._readRequests.length; - } - function ReadableStreamHasDefaultReader(stream) { - const reader = stream._reader; - if (reader === void 0) { - return false; - } - if (!IsReadableStreamDefaultReader(reader)) { - return false; - } - return true; - } - class ReadableStreamDefaultReader { - constructor(stream) { - assertRequiredArgument(stream, 1, "ReadableStreamDefaultReader"); - assertReadableStream(stream, "First parameter"); - if (IsReadableStreamLocked(stream)) { - throw new TypeError("This stream has already been locked for exclusive reading by another reader"); - } - ReadableStreamReaderGenericInitialize(this, stream); - this._readRequests = new SimpleQueue(); - } - /** - * Returns a promise that will be fulfilled when the stream becomes closed, - * or rejected if the stream ever errors or the reader's lock is released before the stream finishes closing. - */ - get closed() { - if (!IsReadableStreamDefaultReader(this)) { - return promiseRejectedWith(defaultReaderBrandCheckException("closed")); - } - return this._closedPromise; - } - /** - * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}. - */ - cancel(reason = void 0) { - if (!IsReadableStreamDefaultReader(this)) { - return promiseRejectedWith(defaultReaderBrandCheckException("cancel")); - } - if (this._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("cancel")); - } - return ReadableStreamReaderGenericCancel(this, reason); - } - /** - * Returns a promise that allows access to the next chunk from the stream's internal queue, if available. - * - * If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source. - */ - read() { - if (!IsReadableStreamDefaultReader(this)) { - return promiseRejectedWith(defaultReaderBrandCheckException("read")); - } - if (this._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("read from")); - } - let resolvePromise; - let rejectPromise; - const promise = newPromise((resolve, reject) => { - resolvePromise = resolve; - rejectPromise = reject; - }); - const readRequest = { - _chunkSteps: (chunk) => resolvePromise({ value: chunk, done: false }), - _closeSteps: () => resolvePromise({ value: void 0, done: true }), - _errorSteps: (e2) => rejectPromise(e2) - }; - ReadableStreamDefaultReaderRead(this, readRequest); - return promise; - } - /** - * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active. - * If the associated stream is errored when the lock is released, the reader will appear errored in the same way - * from now on; otherwise, the reader will appear closed. - * - * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by - * the reader's {@link ReadableStreamDefaultReader.read | read()} method has not yet been settled. Attempting to - * do so will throw a `TypeError` and leave the reader locked to the stream. - */ - releaseLock() { - if (!IsReadableStreamDefaultReader(this)) { - throw defaultReaderBrandCheckException("releaseLock"); - } - if (this._ownerReadableStream === void 0) { - return; - } - if (this._readRequests.length > 0) { - throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"); - } - ReadableStreamReaderGenericRelease(this); - } - } - Object.defineProperties(ReadableStreamDefaultReader.prototype, { - cancel: { enumerable: true }, - read: { enumerable: true }, - releaseLock: { enumerable: true }, - closed: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableStreamDefaultReader.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableStreamDefaultReader", - configurable: true - }); - } - function IsReadableStreamDefaultReader(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_readRequests")) { - return false; - } - return x2 instanceof ReadableStreamDefaultReader; - } - function ReadableStreamDefaultReaderRead(reader, readRequest) { - const stream = reader._ownerReadableStream; - stream._disturbed = true; - if (stream._state === "closed") { - readRequest._closeSteps(); - } else if (stream._state === "errored") { - readRequest._errorSteps(stream._storedError); - } else { - stream._readableStreamController[PullSteps](readRequest); - } - } - function defaultReaderBrandCheckException(name) { - return new TypeError(`ReadableStreamDefaultReader.prototype.${name} can only be used on a ReadableStreamDefaultReader`); - } - const AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(async function* () { - }).prototype); - class ReadableStreamAsyncIteratorImpl { - constructor(reader, preventCancel) { - this._ongoingPromise = void 0; - this._isFinished = false; - this._reader = reader; - this._preventCancel = preventCancel; - } - next() { - const nextSteps = () => this._nextSteps(); - this._ongoingPromise = this._ongoingPromise ? transformPromiseWith(this._ongoingPromise, nextSteps, nextSteps) : nextSteps(); - return this._ongoingPromise; - } - return(value) { - const returnSteps = () => this._returnSteps(value); - return this._ongoingPromise ? transformPromiseWith(this._ongoingPromise, returnSteps, returnSteps) : returnSteps(); - } - _nextSteps() { - if (this._isFinished) { - return Promise.resolve({ value: void 0, done: true }); - } - const reader = this._reader; - if (reader._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("iterate")); - } - let resolvePromise; - let rejectPromise; - const promise = newPromise((resolve, reject) => { - resolvePromise = resolve; - rejectPromise = reject; - }); - const readRequest = { - _chunkSteps: (chunk) => { - this._ongoingPromise = void 0; - queueMicrotask(() => resolvePromise({ value: chunk, done: false })); - }, - _closeSteps: () => { - this._ongoingPromise = void 0; - this._isFinished = true; - ReadableStreamReaderGenericRelease(reader); - resolvePromise({ value: void 0, done: true }); - }, - _errorSteps: (reason) => { - this._ongoingPromise = void 0; - this._isFinished = true; - ReadableStreamReaderGenericRelease(reader); - rejectPromise(reason); - } - }; - ReadableStreamDefaultReaderRead(reader, readRequest); - return promise; - } - _returnSteps(value) { - if (this._isFinished) { - return Promise.resolve({ value, done: true }); - } - this._isFinished = true; - const reader = this._reader; - if (reader._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("finish iterating")); - } - if (!this._preventCancel) { - const result = ReadableStreamReaderGenericCancel(reader, value); - ReadableStreamReaderGenericRelease(reader); - return transformPromiseWith(result, () => ({ value, done: true })); - } - ReadableStreamReaderGenericRelease(reader); - return promiseResolvedWith({ value, done: true }); - } - } - const ReadableStreamAsyncIteratorPrototype = { - next() { - if (!IsReadableStreamAsyncIterator(this)) { - return promiseRejectedWith(streamAsyncIteratorBrandCheckException("next")); - } - return this._asyncIteratorImpl.next(); - }, - return(value) { - if (!IsReadableStreamAsyncIterator(this)) { - return promiseRejectedWith(streamAsyncIteratorBrandCheckException("return")); - } - return this._asyncIteratorImpl.return(value); - } - }; - if (AsyncIteratorPrototype !== void 0) { - Object.setPrototypeOf(ReadableStreamAsyncIteratorPrototype, AsyncIteratorPrototype); - } - function AcquireReadableStreamAsyncIterator(stream, preventCancel) { - const reader = AcquireReadableStreamDefaultReader(stream); - const impl = new ReadableStreamAsyncIteratorImpl(reader, preventCancel); - const iterator = Object.create(ReadableStreamAsyncIteratorPrototype); - iterator._asyncIteratorImpl = impl; - return iterator; - } - function IsReadableStreamAsyncIterator(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_asyncIteratorImpl")) { - return false; - } - try { - return x2._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl; - } catch (_a4) { - return false; - } - } - function streamAsyncIteratorBrandCheckException(name) { - return new TypeError(`ReadableStreamAsyncIterator.${name} can only be used on a ReadableSteamAsyncIterator`); - } - const NumberIsNaN = Number.isNaN || function(x2) { - return x2 !== x2; - }; - function CreateArrayFromList(elements) { - return elements.slice(); - } - function CopyDataBlockBytes(dest, destOffset, src, srcOffset, n) { - new Uint8Array(dest).set(new Uint8Array(src, srcOffset, n), destOffset); - } - function TransferArrayBuffer(O) { - return O; - } - function IsDetachedBuffer(O) { - return false; - } - function ArrayBufferSlice(buffer, begin, end) { - if (buffer.slice) { - return buffer.slice(begin, end); - } - const length = end - begin; - const slice = new ArrayBuffer(length); - CopyDataBlockBytes(slice, 0, buffer, begin, length); - return slice; - } - function IsNonNegativeNumber(v) { - if (typeof v !== "number") { - return false; - } - if (NumberIsNaN(v)) { - return false; - } - if (v < 0) { - return false; - } - return true; - } - function CloneAsUint8Array(O) { - const buffer = ArrayBufferSlice(O.buffer, O.byteOffset, O.byteOffset + O.byteLength); - return new Uint8Array(buffer); - } - function DequeueValue(container) { - const pair = container._queue.shift(); - container._queueTotalSize -= pair.size; - if (container._queueTotalSize < 0) { - container._queueTotalSize = 0; - } - return pair.value; - } - function EnqueueValueWithSize(container, value, size) { - if (!IsNonNegativeNumber(size) || size === Infinity) { - throw new RangeError("Size must be a finite, non-NaN, non-negative number."); - } - container._queue.push({ value, size }); - container._queueTotalSize += size; - } - function PeekQueueValue(container) { - const pair = container._queue.peek(); - return pair.value; - } - function ResetQueue(container) { - container._queue = new SimpleQueue(); - container._queueTotalSize = 0; - } - class ReadableStreamBYOBRequest { - constructor() { - throw new TypeError("Illegal constructor"); - } - /** - * Returns the view for writing in to, or `null` if the BYOB request has already been responded to. - */ - get view() { - if (!IsReadableStreamBYOBRequest(this)) { - throw byobRequestBrandCheckException("view"); - } - return this._view; - } - respond(bytesWritten) { - if (!IsReadableStreamBYOBRequest(this)) { - throw byobRequestBrandCheckException("respond"); - } - assertRequiredArgument(bytesWritten, 1, "respond"); - bytesWritten = convertUnsignedLongLongWithEnforceRange(bytesWritten, "First parameter"); - if (this._associatedReadableByteStreamController === void 0) { - throw new TypeError("This BYOB request has been invalidated"); - } - if (IsDetachedBuffer(this._view.buffer)) ; - ReadableByteStreamControllerRespond(this._associatedReadableByteStreamController, bytesWritten); - } - respondWithNewView(view) { - if (!IsReadableStreamBYOBRequest(this)) { - throw byobRequestBrandCheckException("respondWithNewView"); - } - assertRequiredArgument(view, 1, "respondWithNewView"); - if (!ArrayBuffer.isView(view)) { - throw new TypeError("You can only respond with array buffer views"); - } - if (this._associatedReadableByteStreamController === void 0) { - throw new TypeError("This BYOB request has been invalidated"); - } - if (IsDetachedBuffer(view.buffer)) ; - ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController, view); - } - } - Object.defineProperties(ReadableStreamBYOBRequest.prototype, { - respond: { enumerable: true }, - respondWithNewView: { enumerable: true }, - view: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableStreamBYOBRequest.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableStreamBYOBRequest", - configurable: true - }); - } - class ReadableByteStreamController { - constructor() { - throw new TypeError("Illegal constructor"); - } - /** - * Returns the current BYOB pull request, or `null` if there isn't one. - */ - get byobRequest() { - if (!IsReadableByteStreamController(this)) { - throw byteStreamControllerBrandCheckException("byobRequest"); - } - return ReadableByteStreamControllerGetBYOBRequest(this); - } - /** - * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is - * over-full. An underlying byte source ought to use this information to determine when and how to apply backpressure. - */ - get desiredSize() { - if (!IsReadableByteStreamController(this)) { - throw byteStreamControllerBrandCheckException("desiredSize"); - } - return ReadableByteStreamControllerGetDesiredSize(this); - } - /** - * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from - * the stream, but once those are read, the stream will become closed. - */ - close() { - if (!IsReadableByteStreamController(this)) { - throw byteStreamControllerBrandCheckException("close"); - } - if (this._closeRequested) { - throw new TypeError("The stream has already been closed; do not close it again!"); - } - const state = this._controlledReadableByteStream._state; - if (state !== "readable") { - throw new TypeError(`The stream (in ${state} state) is not in the readable state and cannot be closed`); - } - ReadableByteStreamControllerClose(this); - } - enqueue(chunk) { - if (!IsReadableByteStreamController(this)) { - throw byteStreamControllerBrandCheckException("enqueue"); - } - assertRequiredArgument(chunk, 1, "enqueue"); - if (!ArrayBuffer.isView(chunk)) { - throw new TypeError("chunk must be an array buffer view"); - } - if (chunk.byteLength === 0) { - throw new TypeError("chunk must have non-zero byteLength"); - } - if (chunk.buffer.byteLength === 0) { - throw new TypeError(`chunk's buffer must have non-zero byteLength`); - } - if (this._closeRequested) { - throw new TypeError("stream is closed or draining"); - } - const state = this._controlledReadableByteStream._state; - if (state !== "readable") { - throw new TypeError(`The stream (in ${state} state) is not in the readable state and cannot be enqueued to`); - } - ReadableByteStreamControllerEnqueue(this, chunk); - } - /** - * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`. - */ - error(e2 = void 0) { - if (!IsReadableByteStreamController(this)) { - throw byteStreamControllerBrandCheckException("error"); - } - ReadableByteStreamControllerError(this, e2); - } - /** @internal */ - [CancelSteps](reason) { - ReadableByteStreamControllerClearPendingPullIntos(this); - ResetQueue(this); - const result = this._cancelAlgorithm(reason); - ReadableByteStreamControllerClearAlgorithms(this); - return result; - } - /** @internal */ - [PullSteps](readRequest) { - const stream = this._controlledReadableByteStream; - if (this._queueTotalSize > 0) { - const entry = this._queue.shift(); - this._queueTotalSize -= entry.byteLength; - ReadableByteStreamControllerHandleQueueDrain(this); - const view = new Uint8Array(entry.buffer, entry.byteOffset, entry.byteLength); - readRequest._chunkSteps(view); - return; - } - const autoAllocateChunkSize = this._autoAllocateChunkSize; - if (autoAllocateChunkSize !== void 0) { - let buffer; - try { - buffer = new ArrayBuffer(autoAllocateChunkSize); - } catch (bufferE) { - readRequest._errorSteps(bufferE); - return; - } - const pullIntoDescriptor = { - buffer, - bufferByteLength: autoAllocateChunkSize, - byteOffset: 0, - byteLength: autoAllocateChunkSize, - bytesFilled: 0, - elementSize: 1, - viewConstructor: Uint8Array, - readerType: "default" - }; - this._pendingPullIntos.push(pullIntoDescriptor); - } - ReadableStreamAddReadRequest(stream, readRequest); - ReadableByteStreamControllerCallPullIfNeeded(this); - } - } - Object.defineProperties(ReadableByteStreamController.prototype, { - close: { enumerable: true }, - enqueue: { enumerable: true }, - error: { enumerable: true }, - byobRequest: { enumerable: true }, - desiredSize: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableByteStreamController.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableByteStreamController", - configurable: true - }); - } - function IsReadableByteStreamController(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_controlledReadableByteStream")) { - return false; - } - return x2 instanceof ReadableByteStreamController; - } - function IsReadableStreamBYOBRequest(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_associatedReadableByteStreamController")) { - return false; - } - return x2 instanceof ReadableStreamBYOBRequest; - } - function ReadableByteStreamControllerCallPullIfNeeded(controller) { - const shouldPull = ReadableByteStreamControllerShouldCallPull(controller); - if (!shouldPull) { - return; - } - if (controller._pulling) { - controller._pullAgain = true; - return; - } - controller._pulling = true; - const pullPromise = controller._pullAlgorithm(); - uponPromise(pullPromise, () => { - controller._pulling = false; - if (controller._pullAgain) { - controller._pullAgain = false; - ReadableByteStreamControllerCallPullIfNeeded(controller); - } - }, (e2) => { - ReadableByteStreamControllerError(controller, e2); - }); - } - function ReadableByteStreamControllerClearPendingPullIntos(controller) { - ReadableByteStreamControllerInvalidateBYOBRequest(controller); - controller._pendingPullIntos = new SimpleQueue(); - } - function ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor) { - let done = false; - if (stream._state === "closed") { - done = true; - } - const filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor); - if (pullIntoDescriptor.readerType === "default") { - ReadableStreamFulfillReadRequest(stream, filledView, done); - } else { - ReadableStreamFulfillReadIntoRequest(stream, filledView, done); - } - } - function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor) { - const bytesFilled = pullIntoDescriptor.bytesFilled; - const elementSize = pullIntoDescriptor.elementSize; - return new pullIntoDescriptor.viewConstructor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, bytesFilled / elementSize); - } - function ReadableByteStreamControllerEnqueueChunkToQueue(controller, buffer, byteOffset, byteLength) { - controller._queue.push({ buffer, byteOffset, byteLength }); - controller._queueTotalSize += byteLength; - } - function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor) { - const elementSize = pullIntoDescriptor.elementSize; - const currentAlignedBytes = pullIntoDescriptor.bytesFilled - pullIntoDescriptor.bytesFilled % elementSize; - const maxBytesToCopy = Math.min(controller._queueTotalSize, pullIntoDescriptor.byteLength - pullIntoDescriptor.bytesFilled); - const maxBytesFilled = pullIntoDescriptor.bytesFilled + maxBytesToCopy; - const maxAlignedBytes = maxBytesFilled - maxBytesFilled % elementSize; - let totalBytesToCopyRemaining = maxBytesToCopy; - let ready = false; - if (maxAlignedBytes > currentAlignedBytes) { - totalBytesToCopyRemaining = maxAlignedBytes - pullIntoDescriptor.bytesFilled; - ready = true; - } - const queue = controller._queue; - while (totalBytesToCopyRemaining > 0) { - const headOfQueue = queue.peek(); - const bytesToCopy = Math.min(totalBytesToCopyRemaining, headOfQueue.byteLength); - const destStart = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled; - CopyDataBlockBytes(pullIntoDescriptor.buffer, destStart, headOfQueue.buffer, headOfQueue.byteOffset, bytesToCopy); - if (headOfQueue.byteLength === bytesToCopy) { - queue.shift(); - } else { - headOfQueue.byteOffset += bytesToCopy; - headOfQueue.byteLength -= bytesToCopy; - } - controller._queueTotalSize -= bytesToCopy; - ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesToCopy, pullIntoDescriptor); - totalBytesToCopyRemaining -= bytesToCopy; - } - return ready; - } - function ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, size, pullIntoDescriptor) { - pullIntoDescriptor.bytesFilled += size; - } - function ReadableByteStreamControllerHandleQueueDrain(controller) { - if (controller._queueTotalSize === 0 && controller._closeRequested) { - ReadableByteStreamControllerClearAlgorithms(controller); - ReadableStreamClose(controller._controlledReadableByteStream); - } else { - ReadableByteStreamControllerCallPullIfNeeded(controller); - } - } - function ReadableByteStreamControllerInvalidateBYOBRequest(controller) { - if (controller._byobRequest === null) { - return; - } - controller._byobRequest._associatedReadableByteStreamController = void 0; - controller._byobRequest._view = null; - controller._byobRequest = null; - } - function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller) { - while (controller._pendingPullIntos.length > 0) { - if (controller._queueTotalSize === 0) { - return; - } - const pullIntoDescriptor = controller._pendingPullIntos.peek(); - if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor)) { - ReadableByteStreamControllerShiftPendingPullInto(controller); - ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor); - } - } - } - function ReadableByteStreamControllerPullInto(controller, view, readIntoRequest) { - const stream = controller._controlledReadableByteStream; - let elementSize = 1; - if (view.constructor !== DataView) { - elementSize = view.constructor.BYTES_PER_ELEMENT; - } - const ctor = view.constructor; - const buffer = TransferArrayBuffer(view.buffer); - const pullIntoDescriptor = { - buffer, - bufferByteLength: buffer.byteLength, - byteOffset: view.byteOffset, - byteLength: view.byteLength, - bytesFilled: 0, - elementSize, - viewConstructor: ctor, - readerType: "byob" - }; - if (controller._pendingPullIntos.length > 0) { - controller._pendingPullIntos.push(pullIntoDescriptor); - ReadableStreamAddReadIntoRequest(stream, readIntoRequest); - return; - } - if (stream._state === "closed") { - const emptyView = new ctor(pullIntoDescriptor.buffer, pullIntoDescriptor.byteOffset, 0); - readIntoRequest._closeSteps(emptyView); - return; - } - if (controller._queueTotalSize > 0) { - if (ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller, pullIntoDescriptor)) { - const filledView = ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor); - ReadableByteStreamControllerHandleQueueDrain(controller); - readIntoRequest._chunkSteps(filledView); - return; - } - if (controller._closeRequested) { - const e2 = new TypeError("Insufficient bytes to fill elements in the given buffer"); - ReadableByteStreamControllerError(controller, e2); - readIntoRequest._errorSteps(e2); - return; - } - } - controller._pendingPullIntos.push(pullIntoDescriptor); - ReadableStreamAddReadIntoRequest(stream, readIntoRequest); - ReadableByteStreamControllerCallPullIfNeeded(controller); - } - function ReadableByteStreamControllerRespondInClosedState(controller, firstDescriptor) { - const stream = controller._controlledReadableByteStream; - if (ReadableStreamHasBYOBReader(stream)) { - while (ReadableStreamGetNumReadIntoRequests(stream) > 0) { - const pullIntoDescriptor = ReadableByteStreamControllerShiftPendingPullInto(controller); - ReadableByteStreamControllerCommitPullIntoDescriptor(stream, pullIntoDescriptor); - } - } - } - function ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, pullIntoDescriptor) { - ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller, bytesWritten, pullIntoDescriptor); - if (pullIntoDescriptor.bytesFilled < pullIntoDescriptor.elementSize) { - return; - } - ReadableByteStreamControllerShiftPendingPullInto(controller); - const remainderSize = pullIntoDescriptor.bytesFilled % pullIntoDescriptor.elementSize; - if (remainderSize > 0) { - const end = pullIntoDescriptor.byteOffset + pullIntoDescriptor.bytesFilled; - const remainder = ArrayBufferSlice(pullIntoDescriptor.buffer, end - remainderSize, end); - ReadableByteStreamControllerEnqueueChunkToQueue(controller, remainder, 0, remainder.byteLength); - } - pullIntoDescriptor.bytesFilled -= remainderSize; - ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream, pullIntoDescriptor); - ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller); - } - function ReadableByteStreamControllerRespondInternal(controller, bytesWritten) { - const firstDescriptor = controller._pendingPullIntos.peek(); - ReadableByteStreamControllerInvalidateBYOBRequest(controller); - const state = controller._controlledReadableByteStream._state; - if (state === "closed") { - ReadableByteStreamControllerRespondInClosedState(controller); - } else { - ReadableByteStreamControllerRespondInReadableState(controller, bytesWritten, firstDescriptor); - } - ReadableByteStreamControllerCallPullIfNeeded(controller); - } - function ReadableByteStreamControllerShiftPendingPullInto(controller) { - const descriptor = controller._pendingPullIntos.shift(); - return descriptor; - } - function ReadableByteStreamControllerShouldCallPull(controller) { - const stream = controller._controlledReadableByteStream; - if (stream._state !== "readable") { - return false; - } - if (controller._closeRequested) { - return false; - } - if (!controller._started) { - return false; - } - if (ReadableStreamHasDefaultReader(stream) && ReadableStreamGetNumReadRequests(stream) > 0) { - return true; - } - if (ReadableStreamHasBYOBReader(stream) && ReadableStreamGetNumReadIntoRequests(stream) > 0) { - return true; - } - const desiredSize = ReadableByteStreamControllerGetDesiredSize(controller); - if (desiredSize > 0) { - return true; - } - return false; - } - function ReadableByteStreamControllerClearAlgorithms(controller) { - controller._pullAlgorithm = void 0; - controller._cancelAlgorithm = void 0; - } - function ReadableByteStreamControllerClose(controller) { - const stream = controller._controlledReadableByteStream; - if (controller._closeRequested || stream._state !== "readable") { - return; - } - if (controller._queueTotalSize > 0) { - controller._closeRequested = true; - return; - } - if (controller._pendingPullIntos.length > 0) { - const firstPendingPullInto = controller._pendingPullIntos.peek(); - if (firstPendingPullInto.bytesFilled > 0) { - const e2 = new TypeError("Insufficient bytes to fill elements in the given buffer"); - ReadableByteStreamControllerError(controller, e2); - throw e2; - } - } - ReadableByteStreamControllerClearAlgorithms(controller); - ReadableStreamClose(stream); - } - function ReadableByteStreamControllerEnqueue(controller, chunk) { - const stream = controller._controlledReadableByteStream; - if (controller._closeRequested || stream._state !== "readable") { - return; - } - const buffer = chunk.buffer; - const byteOffset = chunk.byteOffset; - const byteLength = chunk.byteLength; - const transferredBuffer = TransferArrayBuffer(buffer); - if (controller._pendingPullIntos.length > 0) { - const firstPendingPullInto = controller._pendingPullIntos.peek(); - if (IsDetachedBuffer(firstPendingPullInto.buffer)) ; - firstPendingPullInto.buffer = TransferArrayBuffer(firstPendingPullInto.buffer); - } - ReadableByteStreamControllerInvalidateBYOBRequest(controller); - if (ReadableStreamHasDefaultReader(stream)) { - if (ReadableStreamGetNumReadRequests(stream) === 0) { - ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength); - } else { - if (controller._pendingPullIntos.length > 0) { - ReadableByteStreamControllerShiftPendingPullInto(controller); - } - const transferredView = new Uint8Array(transferredBuffer, byteOffset, byteLength); - ReadableStreamFulfillReadRequest(stream, transferredView, false); - } - } else if (ReadableStreamHasBYOBReader(stream)) { - ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength); - ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller); - } else { - ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength); - } - ReadableByteStreamControllerCallPullIfNeeded(controller); - } - function ReadableByteStreamControllerError(controller, e2) { - const stream = controller._controlledReadableByteStream; - if (stream._state !== "readable") { - return; - } - ReadableByteStreamControllerClearPendingPullIntos(controller); - ResetQueue(controller); - ReadableByteStreamControllerClearAlgorithms(controller); - ReadableStreamError(stream, e2); - } - function ReadableByteStreamControllerGetBYOBRequest(controller) { - if (controller._byobRequest === null && controller._pendingPullIntos.length > 0) { - const firstDescriptor = controller._pendingPullIntos.peek(); - const view = new Uint8Array(firstDescriptor.buffer, firstDescriptor.byteOffset + firstDescriptor.bytesFilled, firstDescriptor.byteLength - firstDescriptor.bytesFilled); - const byobRequest = Object.create(ReadableStreamBYOBRequest.prototype); - SetUpReadableStreamBYOBRequest(byobRequest, controller, view); - controller._byobRequest = byobRequest; - } - return controller._byobRequest; - } - function ReadableByteStreamControllerGetDesiredSize(controller) { - const state = controller._controlledReadableByteStream._state; - if (state === "errored") { - return null; - } - if (state === "closed") { - return 0; - } - return controller._strategyHWM - controller._queueTotalSize; - } - function ReadableByteStreamControllerRespond(controller, bytesWritten) { - const firstDescriptor = controller._pendingPullIntos.peek(); - const state = controller._controlledReadableByteStream._state; - if (state === "closed") { - if (bytesWritten !== 0) { - throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream"); - } - } else { - if (bytesWritten === 0) { - throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream"); - } - if (firstDescriptor.bytesFilled + bytesWritten > firstDescriptor.byteLength) { - throw new RangeError("bytesWritten out of range"); - } - } - firstDescriptor.buffer = TransferArrayBuffer(firstDescriptor.buffer); - ReadableByteStreamControllerRespondInternal(controller, bytesWritten); - } - function ReadableByteStreamControllerRespondWithNewView(controller, view) { - const firstDescriptor = controller._pendingPullIntos.peek(); - const state = controller._controlledReadableByteStream._state; - if (state === "closed") { - if (view.byteLength !== 0) { - throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream"); - } - } else { - if (view.byteLength === 0) { - throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream"); - } - } - if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !== view.byteOffset) { - throw new RangeError("The region specified by view does not match byobRequest"); - } - if (firstDescriptor.bufferByteLength !== view.buffer.byteLength) { - throw new RangeError("The buffer of view has different capacity than byobRequest"); - } - if (firstDescriptor.bytesFilled + view.byteLength > firstDescriptor.byteLength) { - throw new RangeError("The region specified by view is larger than byobRequest"); - } - const viewByteLength = view.byteLength; - firstDescriptor.buffer = TransferArrayBuffer(view.buffer); - ReadableByteStreamControllerRespondInternal(controller, viewByteLength); - } - function SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize) { - controller._controlledReadableByteStream = stream; - controller._pullAgain = false; - controller._pulling = false; - controller._byobRequest = null; - controller._queue = controller._queueTotalSize = void 0; - ResetQueue(controller); - controller._closeRequested = false; - controller._started = false; - controller._strategyHWM = highWaterMark; - controller._pullAlgorithm = pullAlgorithm; - controller._cancelAlgorithm = cancelAlgorithm; - controller._autoAllocateChunkSize = autoAllocateChunkSize; - controller._pendingPullIntos = new SimpleQueue(); - stream._readableStreamController = controller; - const startResult = startAlgorithm(); - uponPromise(promiseResolvedWith(startResult), () => { - controller._started = true; - ReadableByteStreamControllerCallPullIfNeeded(controller); - }, (r2) => { - ReadableByteStreamControllerError(controller, r2); - }); - } - function SetUpReadableByteStreamControllerFromUnderlyingSource(stream, underlyingByteSource, highWaterMark) { - const controller = Object.create(ReadableByteStreamController.prototype); - let startAlgorithm = () => void 0; - let pullAlgorithm = () => promiseResolvedWith(void 0); - let cancelAlgorithm = () => promiseResolvedWith(void 0); - if (underlyingByteSource.start !== void 0) { - startAlgorithm = () => underlyingByteSource.start(controller); - } - if (underlyingByteSource.pull !== void 0) { - pullAlgorithm = () => underlyingByteSource.pull(controller); - } - if (underlyingByteSource.cancel !== void 0) { - cancelAlgorithm = (reason) => underlyingByteSource.cancel(reason); - } - const autoAllocateChunkSize = underlyingByteSource.autoAllocateChunkSize; - if (autoAllocateChunkSize === 0) { - throw new TypeError("autoAllocateChunkSize must be greater than 0"); - } - SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize); - } - function SetUpReadableStreamBYOBRequest(request, controller, view) { - request._associatedReadableByteStreamController = controller; - request._view = view; - } - function byobRequestBrandCheckException(name) { - return new TypeError(`ReadableStreamBYOBRequest.prototype.${name} can only be used on a ReadableStreamBYOBRequest`); - } - function byteStreamControllerBrandCheckException(name) { - return new TypeError(`ReadableByteStreamController.prototype.${name} can only be used on a ReadableByteStreamController`); - } - function AcquireReadableStreamBYOBReader(stream) { - return new ReadableStreamBYOBReader(stream); - } - function ReadableStreamAddReadIntoRequest(stream, readIntoRequest) { - stream._reader._readIntoRequests.push(readIntoRequest); - } - function ReadableStreamFulfillReadIntoRequest(stream, chunk, done) { - const reader = stream._reader; - const readIntoRequest = reader._readIntoRequests.shift(); - if (done) { - readIntoRequest._closeSteps(chunk); - } else { - readIntoRequest._chunkSteps(chunk); - } - } - function ReadableStreamGetNumReadIntoRequests(stream) { - return stream._reader._readIntoRequests.length; - } - function ReadableStreamHasBYOBReader(stream) { - const reader = stream._reader; - if (reader === void 0) { - return false; - } - if (!IsReadableStreamBYOBReader(reader)) { - return false; - } - return true; - } - class ReadableStreamBYOBReader { - constructor(stream) { - assertRequiredArgument(stream, 1, "ReadableStreamBYOBReader"); - assertReadableStream(stream, "First parameter"); - if (IsReadableStreamLocked(stream)) { - throw new TypeError("This stream has already been locked for exclusive reading by another reader"); - } - if (!IsReadableByteStreamController(stream._readableStreamController)) { - throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source"); - } - ReadableStreamReaderGenericInitialize(this, stream); - this._readIntoRequests = new SimpleQueue(); - } - /** - * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or - * the reader's lock is released before the stream finishes closing. - */ - get closed() { - if (!IsReadableStreamBYOBReader(this)) { - return promiseRejectedWith(byobReaderBrandCheckException("closed")); - } - return this._closedPromise; - } - /** - * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}. - */ - cancel(reason = void 0) { - if (!IsReadableStreamBYOBReader(this)) { - return promiseRejectedWith(byobReaderBrandCheckException("cancel")); - } - if (this._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("cancel")); - } - return ReadableStreamReaderGenericCancel(this, reason); - } - /** - * Attempts to reads bytes into view, and returns a promise resolved with the result. - * - * If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source. - */ - read(view) { - if (!IsReadableStreamBYOBReader(this)) { - return promiseRejectedWith(byobReaderBrandCheckException("read")); - } - if (!ArrayBuffer.isView(view)) { - return promiseRejectedWith(new TypeError("view must be an array buffer view")); - } - if (view.byteLength === 0) { - return promiseRejectedWith(new TypeError("view must have non-zero byteLength")); - } - if (view.buffer.byteLength === 0) { - return promiseRejectedWith(new TypeError(`view's buffer must have non-zero byteLength`)); - } - if (IsDetachedBuffer(view.buffer)) ; - if (this._ownerReadableStream === void 0) { - return promiseRejectedWith(readerLockException("read from")); - } - let resolvePromise; - let rejectPromise; - const promise = newPromise((resolve, reject) => { - resolvePromise = resolve; - rejectPromise = reject; - }); - const readIntoRequest = { - _chunkSteps: (chunk) => resolvePromise({ value: chunk, done: false }), - _closeSteps: (chunk) => resolvePromise({ value: chunk, done: true }), - _errorSteps: (e2) => rejectPromise(e2) - }; - ReadableStreamBYOBReaderRead(this, view, readIntoRequest); - return promise; - } - /** - * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active. - * If the associated stream is errored when the lock is released, the reader will appear errored in the same way - * from now on; otherwise, the reader will appear closed. - * - * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by - * the reader's {@link ReadableStreamBYOBReader.read | read()} method has not yet been settled. Attempting to - * do so will throw a `TypeError` and leave the reader locked to the stream. - */ - releaseLock() { - if (!IsReadableStreamBYOBReader(this)) { - throw byobReaderBrandCheckException("releaseLock"); - } - if (this._ownerReadableStream === void 0) { - return; - } - if (this._readIntoRequests.length > 0) { - throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"); - } - ReadableStreamReaderGenericRelease(this); - } - } - Object.defineProperties(ReadableStreamBYOBReader.prototype, { - cancel: { enumerable: true }, - read: { enumerable: true }, - releaseLock: { enumerable: true }, - closed: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableStreamBYOBReader.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableStreamBYOBReader", - configurable: true - }); - } - function IsReadableStreamBYOBReader(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_readIntoRequests")) { - return false; - } - return x2 instanceof ReadableStreamBYOBReader; - } - function ReadableStreamBYOBReaderRead(reader, view, readIntoRequest) { - const stream = reader._ownerReadableStream; - stream._disturbed = true; - if (stream._state === "errored") { - readIntoRequest._errorSteps(stream._storedError); - } else { - ReadableByteStreamControllerPullInto(stream._readableStreamController, view, readIntoRequest); - } - } - function byobReaderBrandCheckException(name) { - return new TypeError(`ReadableStreamBYOBReader.prototype.${name} can only be used on a ReadableStreamBYOBReader`); - } - function ExtractHighWaterMark(strategy, defaultHWM) { - const { highWaterMark } = strategy; - if (highWaterMark === void 0) { - return defaultHWM; - } - if (NumberIsNaN(highWaterMark) || highWaterMark < 0) { - throw new RangeError("Invalid highWaterMark"); - } - return highWaterMark; - } - function ExtractSizeAlgorithm(strategy) { - const { size } = strategy; - if (!size) { - return () => 1; - } - return size; - } - function convertQueuingStrategy(init, context) { - assertDictionary(init, context); - const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark; - const size = init === null || init === void 0 ? void 0 : init.size; - return { - highWaterMark: highWaterMark === void 0 ? void 0 : convertUnrestrictedDouble(highWaterMark), - size: size === void 0 ? void 0 : convertQueuingStrategySize(size, `${context} has member 'size' that`) - }; - } - function convertQueuingStrategySize(fn, context) { - assertFunction(fn, context); - return (chunk) => convertUnrestrictedDouble(fn(chunk)); - } - function convertUnderlyingSink(original, context) { - assertDictionary(original, context); - const abort = original === null || original === void 0 ? void 0 : original.abort; - const close = original === null || original === void 0 ? void 0 : original.close; - const start = original === null || original === void 0 ? void 0 : original.start; - const type = original === null || original === void 0 ? void 0 : original.type; - const write = original === null || original === void 0 ? void 0 : original.write; - return { - abort: abort === void 0 ? void 0 : convertUnderlyingSinkAbortCallback(abort, original, `${context} has member 'abort' that`), - close: close === void 0 ? void 0 : convertUnderlyingSinkCloseCallback(close, original, `${context} has member 'close' that`), - start: start === void 0 ? void 0 : convertUnderlyingSinkStartCallback(start, original, `${context} has member 'start' that`), - write: write === void 0 ? void 0 : convertUnderlyingSinkWriteCallback(write, original, `${context} has member 'write' that`), - type - }; - } - function convertUnderlyingSinkAbortCallback(fn, original, context) { - assertFunction(fn, context); - return (reason) => promiseCall(fn, original, [reason]); - } - function convertUnderlyingSinkCloseCallback(fn, original, context) { - assertFunction(fn, context); - return () => promiseCall(fn, original, []); - } - function convertUnderlyingSinkStartCallback(fn, original, context) { - assertFunction(fn, context); - return (controller) => reflectCall(fn, original, [controller]); - } - function convertUnderlyingSinkWriteCallback(fn, original, context) { - assertFunction(fn, context); - return (chunk, controller) => promiseCall(fn, original, [chunk, controller]); - } - function assertWritableStream(x2, context) { - if (!IsWritableStream(x2)) { - throw new TypeError(`${context} is not a WritableStream.`); - } - } - function isAbortSignal(value) { - if (typeof value !== "object" || value === null) { - return false; - } - try { - return typeof value.aborted === "boolean"; - } catch (_a4) { - return false; - } - } - const supportsAbortController = typeof AbortController === "function"; - function createAbortController() { - if (supportsAbortController) { - return new AbortController(); - } - return void 0; - } - class WritableStream { - constructor(rawUnderlyingSink = {}, rawStrategy = {}) { - if (rawUnderlyingSink === void 0) { - rawUnderlyingSink = null; - } else { - assertObject(rawUnderlyingSink, "First parameter"); - } - const strategy = convertQueuingStrategy(rawStrategy, "Second parameter"); - const underlyingSink = convertUnderlyingSink(rawUnderlyingSink, "First parameter"); - InitializeWritableStream(this); - const type = underlyingSink.type; - if (type !== void 0) { - throw new RangeError("Invalid type is specified"); - } - const sizeAlgorithm = ExtractSizeAlgorithm(strategy); - const highWaterMark = ExtractHighWaterMark(strategy, 1); - SetUpWritableStreamDefaultControllerFromUnderlyingSink(this, underlyingSink, highWaterMark, sizeAlgorithm); - } - /** - * Returns whether or not the writable stream is locked to a writer. - */ - get locked() { - if (!IsWritableStream(this)) { - throw streamBrandCheckException$2("locked"); - } - return IsWritableStreamLocked(this); - } - /** - * Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be - * immediately moved to an errored state, with any queued-up writes discarded. This will also execute any abort - * mechanism of the underlying sink. - * - * The returned promise will fulfill if the stream shuts down successfully, or reject if the underlying sink signaled - * that there was an error doing so. Additionally, it will reject with a `TypeError` (without attempting to cancel - * the stream) if the stream is currently locked. - */ - abort(reason = void 0) { - if (!IsWritableStream(this)) { - return promiseRejectedWith(streamBrandCheckException$2("abort")); - } - if (IsWritableStreamLocked(this)) { - return promiseRejectedWith(new TypeError("Cannot abort a stream that already has a writer")); - } - return WritableStreamAbort(this, reason); - } - /** - * Closes the stream. The underlying sink will finish processing any previously-written chunks, before invoking its - * close behavior. During this time any further attempts to write will fail (without erroring the stream). - * - * The method returns a promise that will fulfill if all remaining chunks are successfully written and the stream - * successfully closes, or rejects if an error is encountered during this process. Additionally, it will reject with - * a `TypeError` (without attempting to cancel the stream) if the stream is currently locked. - */ - close() { - if (!IsWritableStream(this)) { - return promiseRejectedWith(streamBrandCheckException$2("close")); - } - if (IsWritableStreamLocked(this)) { - return promiseRejectedWith(new TypeError("Cannot close a stream that already has a writer")); - } - if (WritableStreamCloseQueuedOrInFlight(this)) { - return promiseRejectedWith(new TypeError("Cannot close an already-closing stream")); - } - return WritableStreamClose(this); - } - /** - * Creates a {@link WritableStreamDefaultWriter | writer} and locks the stream to the new writer. While the stream - * is locked, no other writer can be acquired until this one is released. - * - * This functionality is especially useful for creating abstractions that desire the ability to write to a stream - * without interruption or interleaving. By getting a writer for the stream, you can ensure nobody else can write at - * the same time, which would cause the resulting written data to be unpredictable and probably useless. - */ - getWriter() { - if (!IsWritableStream(this)) { - throw streamBrandCheckException$2("getWriter"); - } - return AcquireWritableStreamDefaultWriter(this); - } - } - Object.defineProperties(WritableStream.prototype, { - abort: { enumerable: true }, - close: { enumerable: true }, - getWriter: { enumerable: true }, - locked: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(WritableStream.prototype, SymbolPolyfill.toStringTag, { - value: "WritableStream", - configurable: true - }); - } - function AcquireWritableStreamDefaultWriter(stream) { - return new WritableStreamDefaultWriter(stream); - } - function CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark = 1, sizeAlgorithm = () => 1) { - const stream = Object.create(WritableStream.prototype); - InitializeWritableStream(stream); - const controller = Object.create(WritableStreamDefaultController.prototype); - SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm); - return stream; - } - function InitializeWritableStream(stream) { - stream._state = "writable"; - stream._storedError = void 0; - stream._writer = void 0; - stream._writableStreamController = void 0; - stream._writeRequests = new SimpleQueue(); - stream._inFlightWriteRequest = void 0; - stream._closeRequest = void 0; - stream._inFlightCloseRequest = void 0; - stream._pendingAbortRequest = void 0; - stream._backpressure = false; - } - function IsWritableStream(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_writableStreamController")) { - return false; - } - return x2 instanceof WritableStream; - } - function IsWritableStreamLocked(stream) { - if (stream._writer === void 0) { - return false; - } - return true; - } - function WritableStreamAbort(stream, reason) { - var _a4; - if (stream._state === "closed" || stream._state === "errored") { - return promiseResolvedWith(void 0); - } - stream._writableStreamController._abortReason = reason; - (_a4 = stream._writableStreamController._abortController) === null || _a4 === void 0 ? void 0 : _a4.abort(); - const state = stream._state; - if (state === "closed" || state === "errored") { - return promiseResolvedWith(void 0); - } - if (stream._pendingAbortRequest !== void 0) { - return stream._pendingAbortRequest._promise; - } - let wasAlreadyErroring = false; - if (state === "erroring") { - wasAlreadyErroring = true; - reason = void 0; - } - const promise = newPromise((resolve, reject) => { - stream._pendingAbortRequest = { - _promise: void 0, - _resolve: resolve, - _reject: reject, - _reason: reason, - _wasAlreadyErroring: wasAlreadyErroring - }; - }); - stream._pendingAbortRequest._promise = promise; - if (!wasAlreadyErroring) { - WritableStreamStartErroring(stream, reason); - } - return promise; - } - function WritableStreamClose(stream) { - const state = stream._state; - if (state === "closed" || state === "errored") { - return promiseRejectedWith(new TypeError(`The stream (in ${state} state) is not in the writable state and cannot be closed`)); - } - const promise = newPromise((resolve, reject) => { - const closeRequest = { - _resolve: resolve, - _reject: reject - }; - stream._closeRequest = closeRequest; - }); - const writer = stream._writer; - if (writer !== void 0 && stream._backpressure && state === "writable") { - defaultWriterReadyPromiseResolve(writer); - } - WritableStreamDefaultControllerClose(stream._writableStreamController); - return promise; - } - function WritableStreamAddWriteRequest(stream) { - const promise = newPromise((resolve, reject) => { - const writeRequest = { - _resolve: resolve, - _reject: reject - }; - stream._writeRequests.push(writeRequest); - }); - return promise; - } - function WritableStreamDealWithRejection(stream, error) { - const state = stream._state; - if (state === "writable") { - WritableStreamStartErroring(stream, error); - return; - } - WritableStreamFinishErroring(stream); - } - function WritableStreamStartErroring(stream, reason) { - const controller = stream._writableStreamController; - stream._state = "erroring"; - stream._storedError = reason; - const writer = stream._writer; - if (writer !== void 0) { - WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, reason); - } - if (!WritableStreamHasOperationMarkedInFlight(stream) && controller._started) { - WritableStreamFinishErroring(stream); - } - } - function WritableStreamFinishErroring(stream) { - stream._state = "errored"; - stream._writableStreamController[ErrorSteps](); - const storedError = stream._storedError; - stream._writeRequests.forEach((writeRequest) => { - writeRequest._reject(storedError); - }); - stream._writeRequests = new SimpleQueue(); - if (stream._pendingAbortRequest === void 0) { - WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream); - return; - } - const abortRequest = stream._pendingAbortRequest; - stream._pendingAbortRequest = void 0; - if (abortRequest._wasAlreadyErroring) { - abortRequest._reject(storedError); - WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream); - return; - } - const promise = stream._writableStreamController[AbortSteps](abortRequest._reason); - uponPromise(promise, () => { - abortRequest._resolve(); - WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream); - }, (reason) => { - abortRequest._reject(reason); - WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream); - }); - } - function WritableStreamFinishInFlightWrite(stream) { - stream._inFlightWriteRequest._resolve(void 0); - stream._inFlightWriteRequest = void 0; - } - function WritableStreamFinishInFlightWriteWithError(stream, error) { - stream._inFlightWriteRequest._reject(error); - stream._inFlightWriteRequest = void 0; - WritableStreamDealWithRejection(stream, error); - } - function WritableStreamFinishInFlightClose(stream) { - stream._inFlightCloseRequest._resolve(void 0); - stream._inFlightCloseRequest = void 0; - const state = stream._state; - if (state === "erroring") { - stream._storedError = void 0; - if (stream._pendingAbortRequest !== void 0) { - stream._pendingAbortRequest._resolve(); - stream._pendingAbortRequest = void 0; - } - } - stream._state = "closed"; - const writer = stream._writer; - if (writer !== void 0) { - defaultWriterClosedPromiseResolve(writer); - } - } - function WritableStreamFinishInFlightCloseWithError(stream, error) { - stream._inFlightCloseRequest._reject(error); - stream._inFlightCloseRequest = void 0; - if (stream._pendingAbortRequest !== void 0) { - stream._pendingAbortRequest._reject(error); - stream._pendingAbortRequest = void 0; - } - WritableStreamDealWithRejection(stream, error); - } - function WritableStreamCloseQueuedOrInFlight(stream) { - if (stream._closeRequest === void 0 && stream._inFlightCloseRequest === void 0) { - return false; - } - return true; - } - function WritableStreamHasOperationMarkedInFlight(stream) { - if (stream._inFlightWriteRequest === void 0 && stream._inFlightCloseRequest === void 0) { - return false; - } - return true; - } - function WritableStreamMarkCloseRequestInFlight(stream) { - stream._inFlightCloseRequest = stream._closeRequest; - stream._closeRequest = void 0; - } - function WritableStreamMarkFirstWriteRequestInFlight(stream) { - stream._inFlightWriteRequest = stream._writeRequests.shift(); - } - function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream) { - if (stream._closeRequest !== void 0) { - stream._closeRequest._reject(stream._storedError); - stream._closeRequest = void 0; - } - const writer = stream._writer; - if (writer !== void 0) { - defaultWriterClosedPromiseReject(writer, stream._storedError); - } - } - function WritableStreamUpdateBackpressure(stream, backpressure) { - const writer = stream._writer; - if (writer !== void 0 && backpressure !== stream._backpressure) { - if (backpressure) { - defaultWriterReadyPromiseReset(writer); - } else { - defaultWriterReadyPromiseResolve(writer); - } - } - stream._backpressure = backpressure; - } - class WritableStreamDefaultWriter { - constructor(stream) { - assertRequiredArgument(stream, 1, "WritableStreamDefaultWriter"); - assertWritableStream(stream, "First parameter"); - if (IsWritableStreamLocked(stream)) { - throw new TypeError("This stream has already been locked for exclusive writing by another writer"); - } - this._ownerWritableStream = stream; - stream._writer = this; - const state = stream._state; - if (state === "writable") { - if (!WritableStreamCloseQueuedOrInFlight(stream) && stream._backpressure) { - defaultWriterReadyPromiseInitialize(this); - } else { - defaultWriterReadyPromiseInitializeAsResolved(this); - } - defaultWriterClosedPromiseInitialize(this); - } else if (state === "erroring") { - defaultWriterReadyPromiseInitializeAsRejected(this, stream._storedError); - defaultWriterClosedPromiseInitialize(this); - } else if (state === "closed") { - defaultWriterReadyPromiseInitializeAsResolved(this); - defaultWriterClosedPromiseInitializeAsResolved(this); - } else { - const storedError = stream._storedError; - defaultWriterReadyPromiseInitializeAsRejected(this, storedError); - defaultWriterClosedPromiseInitializeAsRejected(this, storedError); - } - } - /** - * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or - * the writer’s lock is released before the stream finishes closing. - */ - get closed() { - if (!IsWritableStreamDefaultWriter(this)) { - return promiseRejectedWith(defaultWriterBrandCheckException("closed")); - } - return this._closedPromise; - } - /** - * Returns the desired size to fill the stream’s internal queue. It can be negative, if the queue is over-full. - * A producer can use this information to determine the right amount of data to write. - * - * It will be `null` if the stream cannot be successfully written to (due to either being errored, or having an abort - * queued up). It will return zero if the stream is closed. And the getter will throw an exception if invoked when - * the writer’s lock is released. - */ - get desiredSize() { - if (!IsWritableStreamDefaultWriter(this)) { - throw defaultWriterBrandCheckException("desiredSize"); - } - if (this._ownerWritableStream === void 0) { - throw defaultWriterLockException("desiredSize"); - } - return WritableStreamDefaultWriterGetDesiredSize(this); - } - /** - * Returns a promise that will be fulfilled when the desired size to fill the stream’s internal queue transitions - * from non-positive to positive, signaling that it is no longer applying backpressure. Once the desired size dips - * back to zero or below, the getter will return a new promise that stays pending until the next transition. - * - * If the stream becomes errored or aborted, or the writer’s lock is released, the returned promise will become - * rejected. - */ - get ready() { - if (!IsWritableStreamDefaultWriter(this)) { - return promiseRejectedWith(defaultWriterBrandCheckException("ready")); - } - return this._readyPromise; - } - /** - * If the reader is active, behaves the same as {@link WritableStream.abort | stream.abort(reason)}. - */ - abort(reason = void 0) { - if (!IsWritableStreamDefaultWriter(this)) { - return promiseRejectedWith(defaultWriterBrandCheckException("abort")); - } - if (this._ownerWritableStream === void 0) { - return promiseRejectedWith(defaultWriterLockException("abort")); - } - return WritableStreamDefaultWriterAbort(this, reason); - } - /** - * If the reader is active, behaves the same as {@link WritableStream.close | stream.close()}. - */ - close() { - if (!IsWritableStreamDefaultWriter(this)) { - return promiseRejectedWith(defaultWriterBrandCheckException("close")); - } - const stream = this._ownerWritableStream; - if (stream === void 0) { - return promiseRejectedWith(defaultWriterLockException("close")); - } - if (WritableStreamCloseQueuedOrInFlight(stream)) { - return promiseRejectedWith(new TypeError("Cannot close an already-closing stream")); - } - return WritableStreamDefaultWriterClose(this); - } - /** - * Releases the writer’s lock on the corresponding stream. After the lock is released, the writer is no longer active. - * If the associated stream is errored when the lock is released, the writer will appear errored in the same way from - * now on; otherwise, the writer will appear closed. - * - * Note that the lock can still be released even if some ongoing writes have not yet finished (i.e. even if the - * promises returned from previous calls to {@link WritableStreamDefaultWriter.write | write()} have not yet settled). - * It’s not necessary to hold the lock on the writer for the duration of the write; the lock instead simply prevents - * other producers from writing in an interleaved manner. - */ - releaseLock() { - if (!IsWritableStreamDefaultWriter(this)) { - throw defaultWriterBrandCheckException("releaseLock"); - } - const stream = this._ownerWritableStream; - if (stream === void 0) { - return; - } - WritableStreamDefaultWriterRelease(this); - } - write(chunk = void 0) { - if (!IsWritableStreamDefaultWriter(this)) { - return promiseRejectedWith(defaultWriterBrandCheckException("write")); - } - if (this._ownerWritableStream === void 0) { - return promiseRejectedWith(defaultWriterLockException("write to")); - } - return WritableStreamDefaultWriterWrite(this, chunk); - } - } - Object.defineProperties(WritableStreamDefaultWriter.prototype, { - abort: { enumerable: true }, - close: { enumerable: true }, - releaseLock: { enumerable: true }, - write: { enumerable: true }, - closed: { enumerable: true }, - desiredSize: { enumerable: true }, - ready: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(WritableStreamDefaultWriter.prototype, SymbolPolyfill.toStringTag, { - value: "WritableStreamDefaultWriter", - configurable: true - }); - } - function IsWritableStreamDefaultWriter(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_ownerWritableStream")) { - return false; - } - return x2 instanceof WritableStreamDefaultWriter; - } - function WritableStreamDefaultWriterAbort(writer, reason) { - const stream = writer._ownerWritableStream; - return WritableStreamAbort(stream, reason); - } - function WritableStreamDefaultWriterClose(writer) { - const stream = writer._ownerWritableStream; - return WritableStreamClose(stream); - } - function WritableStreamDefaultWriterCloseWithErrorPropagation(writer) { - const stream = writer._ownerWritableStream; - const state = stream._state; - if (WritableStreamCloseQueuedOrInFlight(stream) || state === "closed") { - return promiseResolvedWith(void 0); - } - if (state === "errored") { - return promiseRejectedWith(stream._storedError); - } - return WritableStreamDefaultWriterClose(writer); - } - function WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, error) { - if (writer._closedPromiseState === "pending") { - defaultWriterClosedPromiseReject(writer, error); - } else { - defaultWriterClosedPromiseResetToRejected(writer, error); - } - } - function WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, error) { - if (writer._readyPromiseState === "pending") { - defaultWriterReadyPromiseReject(writer, error); - } else { - defaultWriterReadyPromiseResetToRejected(writer, error); - } - } - function WritableStreamDefaultWriterGetDesiredSize(writer) { - const stream = writer._ownerWritableStream; - const state = stream._state; - if (state === "errored" || state === "erroring") { - return null; - } - if (state === "closed") { - return 0; - } - return WritableStreamDefaultControllerGetDesiredSize(stream._writableStreamController); - } - function WritableStreamDefaultWriterRelease(writer) { - const stream = writer._ownerWritableStream; - const releasedError = new TypeError(`Writer was released and can no longer be used to monitor the stream's closedness`); - WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, releasedError); - WritableStreamDefaultWriterEnsureClosedPromiseRejected(writer, releasedError); - stream._writer = void 0; - writer._ownerWritableStream = void 0; - } - function WritableStreamDefaultWriterWrite(writer, chunk) { - const stream = writer._ownerWritableStream; - const controller = stream._writableStreamController; - const chunkSize = WritableStreamDefaultControllerGetChunkSize(controller, chunk); - if (stream !== writer._ownerWritableStream) { - return promiseRejectedWith(defaultWriterLockException("write to")); - } - const state = stream._state; - if (state === "errored") { - return promiseRejectedWith(stream._storedError); - } - if (WritableStreamCloseQueuedOrInFlight(stream) || state === "closed") { - return promiseRejectedWith(new TypeError("The stream is closing or closed and cannot be written to")); - } - if (state === "erroring") { - return promiseRejectedWith(stream._storedError); - } - const promise = WritableStreamAddWriteRequest(stream); - WritableStreamDefaultControllerWrite(controller, chunk, chunkSize); - return promise; - } - const closeSentinel = {}; - class WritableStreamDefaultController { - constructor() { - throw new TypeError("Illegal constructor"); - } - /** - * The reason which was passed to `WritableStream.abort(reason)` when the stream was aborted. - * - * @deprecated - * This property has been removed from the specification, see https://github.com/whatwg/streams/pull/1177. - * Use {@link WritableStreamDefaultController.signal}'s `reason` instead. - */ - get abortReason() { - if (!IsWritableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$2("abortReason"); - } - return this._abortReason; - } - /** - * An `AbortSignal` that can be used to abort the pending write or close operation when the stream is aborted. - */ - get signal() { - if (!IsWritableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$2("signal"); - } - if (this._abortController === void 0) { - throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported"); - } - return this._abortController.signal; - } - /** - * Closes the controlled writable stream, making all future interactions with it fail with the given error `e`. - * - * This method is rarely used, since usually it suffices to return a rejected promise from one of the underlying - * sink's methods. However, it can be useful for suddenly shutting down a stream in response to an event outside the - * normal lifecycle of interactions with the underlying sink. - */ - error(e2 = void 0) { - if (!IsWritableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$2("error"); - } - const state = this._controlledWritableStream._state; - if (state !== "writable") { - return; - } - WritableStreamDefaultControllerError(this, e2); - } - /** @internal */ - [AbortSteps](reason) { - const result = this._abortAlgorithm(reason); - WritableStreamDefaultControllerClearAlgorithms(this); - return result; - } - /** @internal */ - [ErrorSteps]() { - ResetQueue(this); - } - } - Object.defineProperties(WritableStreamDefaultController.prototype, { - abortReason: { enumerable: true }, - signal: { enumerable: true }, - error: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(WritableStreamDefaultController.prototype, SymbolPolyfill.toStringTag, { - value: "WritableStreamDefaultController", - configurable: true - }); - } - function IsWritableStreamDefaultController(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_controlledWritableStream")) { - return false; - } - return x2 instanceof WritableStreamDefaultController; - } - function SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm) { - controller._controlledWritableStream = stream; - stream._writableStreamController = controller; - controller._queue = void 0; - controller._queueTotalSize = void 0; - ResetQueue(controller); - controller._abortReason = void 0; - controller._abortController = createAbortController(); - controller._started = false; - controller._strategySizeAlgorithm = sizeAlgorithm; - controller._strategyHWM = highWaterMark; - controller._writeAlgorithm = writeAlgorithm; - controller._closeAlgorithm = closeAlgorithm; - controller._abortAlgorithm = abortAlgorithm; - const backpressure = WritableStreamDefaultControllerGetBackpressure(controller); - WritableStreamUpdateBackpressure(stream, backpressure); - const startResult = startAlgorithm(); - const startPromise = promiseResolvedWith(startResult); - uponPromise(startPromise, () => { - controller._started = true; - WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller); - }, (r2) => { - controller._started = true; - WritableStreamDealWithRejection(stream, r2); - }); - } - function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream, underlyingSink, highWaterMark, sizeAlgorithm) { - const controller = Object.create(WritableStreamDefaultController.prototype); - let startAlgorithm = () => void 0; - let writeAlgorithm = () => promiseResolvedWith(void 0); - let closeAlgorithm = () => promiseResolvedWith(void 0); - let abortAlgorithm = () => promiseResolvedWith(void 0); - if (underlyingSink.start !== void 0) { - startAlgorithm = () => underlyingSink.start(controller); - } - if (underlyingSink.write !== void 0) { - writeAlgorithm = (chunk) => underlyingSink.write(chunk, controller); - } - if (underlyingSink.close !== void 0) { - closeAlgorithm = () => underlyingSink.close(); - } - if (underlyingSink.abort !== void 0) { - abortAlgorithm = (reason) => underlyingSink.abort(reason); - } - SetUpWritableStreamDefaultController(stream, controller, startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, highWaterMark, sizeAlgorithm); - } - function WritableStreamDefaultControllerClearAlgorithms(controller) { - controller._writeAlgorithm = void 0; - controller._closeAlgorithm = void 0; - controller._abortAlgorithm = void 0; - controller._strategySizeAlgorithm = void 0; - } - function WritableStreamDefaultControllerClose(controller) { - EnqueueValueWithSize(controller, closeSentinel, 0); - WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller); - } - function WritableStreamDefaultControllerGetChunkSize(controller, chunk) { - try { - return controller._strategySizeAlgorithm(chunk); - } catch (chunkSizeE) { - WritableStreamDefaultControllerErrorIfNeeded(controller, chunkSizeE); - return 1; - } - } - function WritableStreamDefaultControllerGetDesiredSize(controller) { - return controller._strategyHWM - controller._queueTotalSize; - } - function WritableStreamDefaultControllerWrite(controller, chunk, chunkSize) { - try { - EnqueueValueWithSize(controller, chunk, chunkSize); - } catch (enqueueE) { - WritableStreamDefaultControllerErrorIfNeeded(controller, enqueueE); - return; - } - const stream = controller._controlledWritableStream; - if (!WritableStreamCloseQueuedOrInFlight(stream) && stream._state === "writable") { - const backpressure = WritableStreamDefaultControllerGetBackpressure(controller); - WritableStreamUpdateBackpressure(stream, backpressure); - } - WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller); - } - function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller) { - const stream = controller._controlledWritableStream; - if (!controller._started) { - return; - } - if (stream._inFlightWriteRequest !== void 0) { - return; - } - const state = stream._state; - if (state === "erroring") { - WritableStreamFinishErroring(stream); - return; - } - if (controller._queue.length === 0) { - return; - } - const value = PeekQueueValue(controller); - if (value === closeSentinel) { - WritableStreamDefaultControllerProcessClose(controller); - } else { - WritableStreamDefaultControllerProcessWrite(controller, value); - } - } - function WritableStreamDefaultControllerErrorIfNeeded(controller, error) { - if (controller._controlledWritableStream._state === "writable") { - WritableStreamDefaultControllerError(controller, error); - } - } - function WritableStreamDefaultControllerProcessClose(controller) { - const stream = controller._controlledWritableStream; - WritableStreamMarkCloseRequestInFlight(stream); - DequeueValue(controller); - const sinkClosePromise = controller._closeAlgorithm(); - WritableStreamDefaultControllerClearAlgorithms(controller); - uponPromise(sinkClosePromise, () => { - WritableStreamFinishInFlightClose(stream); - }, (reason) => { - WritableStreamFinishInFlightCloseWithError(stream, reason); - }); - } - function WritableStreamDefaultControllerProcessWrite(controller, chunk) { - const stream = controller._controlledWritableStream; - WritableStreamMarkFirstWriteRequestInFlight(stream); - const sinkWritePromise = controller._writeAlgorithm(chunk); - uponPromise(sinkWritePromise, () => { - WritableStreamFinishInFlightWrite(stream); - const state = stream._state; - DequeueValue(controller); - if (!WritableStreamCloseQueuedOrInFlight(stream) && state === "writable") { - const backpressure = WritableStreamDefaultControllerGetBackpressure(controller); - WritableStreamUpdateBackpressure(stream, backpressure); - } - WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller); - }, (reason) => { - if (stream._state === "writable") { - WritableStreamDefaultControllerClearAlgorithms(controller); - } - WritableStreamFinishInFlightWriteWithError(stream, reason); - }); - } - function WritableStreamDefaultControllerGetBackpressure(controller) { - const desiredSize = WritableStreamDefaultControllerGetDesiredSize(controller); - return desiredSize <= 0; - } - function WritableStreamDefaultControllerError(controller, error) { - const stream = controller._controlledWritableStream; - WritableStreamDefaultControllerClearAlgorithms(controller); - WritableStreamStartErroring(stream, error); - } - function streamBrandCheckException$2(name) { - return new TypeError(`WritableStream.prototype.${name} can only be used on a WritableStream`); - } - function defaultControllerBrandCheckException$2(name) { - return new TypeError(`WritableStreamDefaultController.prototype.${name} can only be used on a WritableStreamDefaultController`); - } - function defaultWriterBrandCheckException(name) { - return new TypeError(`WritableStreamDefaultWriter.prototype.${name} can only be used on a WritableStreamDefaultWriter`); - } - function defaultWriterLockException(name) { - return new TypeError("Cannot " + name + " a stream using a released writer"); - } - function defaultWriterClosedPromiseInitialize(writer) { - writer._closedPromise = newPromise((resolve, reject) => { - writer._closedPromise_resolve = resolve; - writer._closedPromise_reject = reject; - writer._closedPromiseState = "pending"; - }); - } - function defaultWriterClosedPromiseInitializeAsRejected(writer, reason) { - defaultWriterClosedPromiseInitialize(writer); - defaultWriterClosedPromiseReject(writer, reason); - } - function defaultWriterClosedPromiseInitializeAsResolved(writer) { - defaultWriterClosedPromiseInitialize(writer); - defaultWriterClosedPromiseResolve(writer); - } - function defaultWriterClosedPromiseReject(writer, reason) { - if (writer._closedPromise_reject === void 0) { - return; - } - setPromiseIsHandledToTrue(writer._closedPromise); - writer._closedPromise_reject(reason); - writer._closedPromise_resolve = void 0; - writer._closedPromise_reject = void 0; - writer._closedPromiseState = "rejected"; - } - function defaultWriterClosedPromiseResetToRejected(writer, reason) { - defaultWriterClosedPromiseInitializeAsRejected(writer, reason); - } - function defaultWriterClosedPromiseResolve(writer) { - if (writer._closedPromise_resolve === void 0) { - return; - } - writer._closedPromise_resolve(void 0); - writer._closedPromise_resolve = void 0; - writer._closedPromise_reject = void 0; - writer._closedPromiseState = "resolved"; - } - function defaultWriterReadyPromiseInitialize(writer) { - writer._readyPromise = newPromise((resolve, reject) => { - writer._readyPromise_resolve = resolve; - writer._readyPromise_reject = reject; - }); - writer._readyPromiseState = "pending"; - } - function defaultWriterReadyPromiseInitializeAsRejected(writer, reason) { - defaultWriterReadyPromiseInitialize(writer); - defaultWriterReadyPromiseReject(writer, reason); - } - function defaultWriterReadyPromiseInitializeAsResolved(writer) { - defaultWriterReadyPromiseInitialize(writer); - defaultWriterReadyPromiseResolve(writer); - } - function defaultWriterReadyPromiseReject(writer, reason) { - if (writer._readyPromise_reject === void 0) { - return; - } - setPromiseIsHandledToTrue(writer._readyPromise); - writer._readyPromise_reject(reason); - writer._readyPromise_resolve = void 0; - writer._readyPromise_reject = void 0; - writer._readyPromiseState = "rejected"; - } - function defaultWriterReadyPromiseReset(writer) { - defaultWriterReadyPromiseInitialize(writer); - } - function defaultWriterReadyPromiseResetToRejected(writer, reason) { - defaultWriterReadyPromiseInitializeAsRejected(writer, reason); - } - function defaultWriterReadyPromiseResolve(writer) { - if (writer._readyPromise_resolve === void 0) { - return; - } - writer._readyPromise_resolve(void 0); - writer._readyPromise_resolve = void 0; - writer._readyPromise_reject = void 0; - writer._readyPromiseState = "fulfilled"; - } - const NativeDOMException = typeof DOMException !== "undefined" ? DOMException : void 0; - function isDOMExceptionConstructor(ctor) { - if (!(typeof ctor === "function" || typeof ctor === "object")) { - return false; - } - try { - new ctor(); - return true; - } catch (_a4) { - return false; - } - } - function createDOMExceptionPolyfill() { - const ctor = function DOMException3(message, name) { - this.message = message || ""; - this.name = name || "Error"; - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - }; - ctor.prototype = Object.create(Error.prototype); - Object.defineProperty(ctor.prototype, "constructor", { value: ctor, writable: true, configurable: true }); - return ctor; - } - const DOMException$1 = isDOMExceptionConstructor(NativeDOMException) ? NativeDOMException : createDOMExceptionPolyfill(); - function ReadableStreamPipeTo(source, dest, preventClose, preventAbort, preventCancel, signal) { - const reader = AcquireReadableStreamDefaultReader(source); - const writer = AcquireWritableStreamDefaultWriter(dest); - source._disturbed = true; - let shuttingDown = false; - let currentWrite = promiseResolvedWith(void 0); - return newPromise((resolve, reject) => { - let abortAlgorithm; - if (signal !== void 0) { - abortAlgorithm = () => { - const error = new DOMException$1("Aborted", "AbortError"); - const actions = []; - if (!preventAbort) { - actions.push(() => { - if (dest._state === "writable") { - return WritableStreamAbort(dest, error); - } - return promiseResolvedWith(void 0); - }); - } - if (!preventCancel) { - actions.push(() => { - if (source._state === "readable") { - return ReadableStreamCancel(source, error); - } - return promiseResolvedWith(void 0); - }); - } - shutdownWithAction(() => Promise.all(actions.map((action) => action())), true, error); - }; - if (signal.aborted) { - abortAlgorithm(); - return; - } - signal.addEventListener("abort", abortAlgorithm); - } - function pipeLoop() { - return newPromise((resolveLoop, rejectLoop) => { - function next(done) { - if (done) { - resolveLoop(); - } else { - PerformPromiseThen(pipeStep(), next, rejectLoop); - } - } - next(false); - }); - } - function pipeStep() { - if (shuttingDown) { - return promiseResolvedWith(true); - } - return PerformPromiseThen(writer._readyPromise, () => { - return newPromise((resolveRead, rejectRead) => { - ReadableStreamDefaultReaderRead(reader, { - _chunkSteps: (chunk) => { - currentWrite = PerformPromiseThen(WritableStreamDefaultWriterWrite(writer, chunk), void 0, noop); - resolveRead(false); - }, - _closeSteps: () => resolveRead(true), - _errorSteps: rejectRead - }); - }); - }); - } - isOrBecomesErrored(source, reader._closedPromise, (storedError) => { - if (!preventAbort) { - shutdownWithAction(() => WritableStreamAbort(dest, storedError), true, storedError); - } else { - shutdown(true, storedError); - } - }); - isOrBecomesErrored(dest, writer._closedPromise, (storedError) => { - if (!preventCancel) { - shutdownWithAction(() => ReadableStreamCancel(source, storedError), true, storedError); - } else { - shutdown(true, storedError); - } - }); - isOrBecomesClosed(source, reader._closedPromise, () => { - if (!preventClose) { - shutdownWithAction(() => WritableStreamDefaultWriterCloseWithErrorPropagation(writer)); - } else { - shutdown(); - } - }); - if (WritableStreamCloseQueuedOrInFlight(dest) || dest._state === "closed") { - const destClosed = new TypeError("the destination writable stream closed before all data could be piped to it"); - if (!preventCancel) { - shutdownWithAction(() => ReadableStreamCancel(source, destClosed), true, destClosed); - } else { - shutdown(true, destClosed); - } - } - setPromiseIsHandledToTrue(pipeLoop()); - function waitForWritesToFinish() { - const oldCurrentWrite = currentWrite; - return PerformPromiseThen(currentWrite, () => oldCurrentWrite !== currentWrite ? waitForWritesToFinish() : void 0); - } - function isOrBecomesErrored(stream, promise, action) { - if (stream._state === "errored") { - action(stream._storedError); - } else { - uponRejection(promise, action); - } - } - function isOrBecomesClosed(stream, promise, action) { - if (stream._state === "closed") { - action(); - } else { - uponFulfillment(promise, action); - } - } - function shutdownWithAction(action, originalIsError, originalError) { - if (shuttingDown) { - return; - } - shuttingDown = true; - if (dest._state === "writable" && !WritableStreamCloseQueuedOrInFlight(dest)) { - uponFulfillment(waitForWritesToFinish(), doTheRest); - } else { - doTheRest(); - } - function doTheRest() { - uponPromise(action(), () => finalize(originalIsError, originalError), (newError) => finalize(true, newError)); - } - } - function shutdown(isError, error) { - if (shuttingDown) { - return; - } - shuttingDown = true; - if (dest._state === "writable" && !WritableStreamCloseQueuedOrInFlight(dest)) { - uponFulfillment(waitForWritesToFinish(), () => finalize(isError, error)); - } else { - finalize(isError, error); - } - } - function finalize(isError, error) { - WritableStreamDefaultWriterRelease(writer); - ReadableStreamReaderGenericRelease(reader); - if (signal !== void 0) { - signal.removeEventListener("abort", abortAlgorithm); - } - if (isError) { - reject(error); - } else { - resolve(void 0); - } - } - }); - } - class ReadableStreamDefaultController { - constructor() { - throw new TypeError("Illegal constructor"); - } - /** - * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is - * over-full. An underlying source ought to use this information to determine when and how to apply backpressure. - */ - get desiredSize() { - if (!IsReadableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$1("desiredSize"); - } - return ReadableStreamDefaultControllerGetDesiredSize(this); - } - /** - * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from - * the stream, but once those are read, the stream will become closed. - */ - close() { - if (!IsReadableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$1("close"); - } - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) { - throw new TypeError("The stream is not in a state that permits close"); - } - ReadableStreamDefaultControllerClose(this); - } - enqueue(chunk = void 0) { - if (!IsReadableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$1("enqueue"); - } - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) { - throw new TypeError("The stream is not in a state that permits enqueue"); - } - return ReadableStreamDefaultControllerEnqueue(this, chunk); - } - /** - * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`. - */ - error(e2 = void 0) { - if (!IsReadableStreamDefaultController(this)) { - throw defaultControllerBrandCheckException$1("error"); - } - ReadableStreamDefaultControllerError(this, e2); - } - /** @internal */ - [CancelSteps](reason) { - ResetQueue(this); - const result = this._cancelAlgorithm(reason); - ReadableStreamDefaultControllerClearAlgorithms(this); - return result; - } - /** @internal */ - [PullSteps](readRequest) { - const stream = this._controlledReadableStream; - if (this._queue.length > 0) { - const chunk = DequeueValue(this); - if (this._closeRequested && this._queue.length === 0) { - ReadableStreamDefaultControllerClearAlgorithms(this); - ReadableStreamClose(stream); - } else { - ReadableStreamDefaultControllerCallPullIfNeeded(this); - } - readRequest._chunkSteps(chunk); - } else { - ReadableStreamAddReadRequest(stream, readRequest); - ReadableStreamDefaultControllerCallPullIfNeeded(this); - } - } - } - Object.defineProperties(ReadableStreamDefaultController.prototype, { - close: { enumerable: true }, - enqueue: { enumerable: true }, - error: { enumerable: true }, - desiredSize: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableStreamDefaultController.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableStreamDefaultController", - configurable: true - }); - } - function IsReadableStreamDefaultController(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_controlledReadableStream")) { - return false; - } - return x2 instanceof ReadableStreamDefaultController; - } - function ReadableStreamDefaultControllerCallPullIfNeeded(controller) { - const shouldPull = ReadableStreamDefaultControllerShouldCallPull(controller); - if (!shouldPull) { - return; - } - if (controller._pulling) { - controller._pullAgain = true; - return; - } - controller._pulling = true; - const pullPromise = controller._pullAlgorithm(); - uponPromise(pullPromise, () => { - controller._pulling = false; - if (controller._pullAgain) { - controller._pullAgain = false; - ReadableStreamDefaultControllerCallPullIfNeeded(controller); - } - }, (e2) => { - ReadableStreamDefaultControllerError(controller, e2); - }); - } - function ReadableStreamDefaultControllerShouldCallPull(controller) { - const stream = controller._controlledReadableStream; - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) { - return false; - } - if (!controller._started) { - return false; - } - if (IsReadableStreamLocked(stream) && ReadableStreamGetNumReadRequests(stream) > 0) { - return true; - } - const desiredSize = ReadableStreamDefaultControllerGetDesiredSize(controller); - if (desiredSize > 0) { - return true; - } - return false; - } - function ReadableStreamDefaultControllerClearAlgorithms(controller) { - controller._pullAlgorithm = void 0; - controller._cancelAlgorithm = void 0; - controller._strategySizeAlgorithm = void 0; - } - function ReadableStreamDefaultControllerClose(controller) { - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) { - return; - } - const stream = controller._controlledReadableStream; - controller._closeRequested = true; - if (controller._queue.length === 0) { - ReadableStreamDefaultControllerClearAlgorithms(controller); - ReadableStreamClose(stream); - } - } - function ReadableStreamDefaultControllerEnqueue(controller, chunk) { - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)) { - return; - } - const stream = controller._controlledReadableStream; - if (IsReadableStreamLocked(stream) && ReadableStreamGetNumReadRequests(stream) > 0) { - ReadableStreamFulfillReadRequest(stream, chunk, false); - } else { - let chunkSize; - try { - chunkSize = controller._strategySizeAlgorithm(chunk); - } catch (chunkSizeE) { - ReadableStreamDefaultControllerError(controller, chunkSizeE); - throw chunkSizeE; - } - try { - EnqueueValueWithSize(controller, chunk, chunkSize); - } catch (enqueueE) { - ReadableStreamDefaultControllerError(controller, enqueueE); - throw enqueueE; - } - } - ReadableStreamDefaultControllerCallPullIfNeeded(controller); - } - function ReadableStreamDefaultControllerError(controller, e2) { - const stream = controller._controlledReadableStream; - if (stream._state !== "readable") { - return; - } - ResetQueue(controller); - ReadableStreamDefaultControllerClearAlgorithms(controller); - ReadableStreamError(stream, e2); - } - function ReadableStreamDefaultControllerGetDesiredSize(controller) { - const state = controller._controlledReadableStream._state; - if (state === "errored") { - return null; - } - if (state === "closed") { - return 0; - } - return controller._strategyHWM - controller._queueTotalSize; - } - function ReadableStreamDefaultControllerHasBackpressure(controller) { - if (ReadableStreamDefaultControllerShouldCallPull(controller)) { - return false; - } - return true; - } - function ReadableStreamDefaultControllerCanCloseOrEnqueue(controller) { - const state = controller._controlledReadableStream._state; - if (!controller._closeRequested && state === "readable") { - return true; - } - return false; - } - function SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm) { - controller._controlledReadableStream = stream; - controller._queue = void 0; - controller._queueTotalSize = void 0; - ResetQueue(controller); - controller._started = false; - controller._closeRequested = false; - controller._pullAgain = false; - controller._pulling = false; - controller._strategySizeAlgorithm = sizeAlgorithm; - controller._strategyHWM = highWaterMark; - controller._pullAlgorithm = pullAlgorithm; - controller._cancelAlgorithm = cancelAlgorithm; - stream._readableStreamController = controller; - const startResult = startAlgorithm(); - uponPromise(promiseResolvedWith(startResult), () => { - controller._started = true; - ReadableStreamDefaultControllerCallPullIfNeeded(controller); - }, (r2) => { - ReadableStreamDefaultControllerError(controller, r2); - }); - } - function SetUpReadableStreamDefaultControllerFromUnderlyingSource(stream, underlyingSource, highWaterMark, sizeAlgorithm) { - const controller = Object.create(ReadableStreamDefaultController.prototype); - let startAlgorithm = () => void 0; - let pullAlgorithm = () => promiseResolvedWith(void 0); - let cancelAlgorithm = () => promiseResolvedWith(void 0); - if (underlyingSource.start !== void 0) { - startAlgorithm = () => underlyingSource.start(controller); - } - if (underlyingSource.pull !== void 0) { - pullAlgorithm = () => underlyingSource.pull(controller); - } - if (underlyingSource.cancel !== void 0) { - cancelAlgorithm = (reason) => underlyingSource.cancel(reason); - } - SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm); - } - function defaultControllerBrandCheckException$1(name) { - return new TypeError(`ReadableStreamDefaultController.prototype.${name} can only be used on a ReadableStreamDefaultController`); - } - function ReadableStreamTee(stream, cloneForBranch2) { - if (IsReadableByteStreamController(stream._readableStreamController)) { - return ReadableByteStreamTee(stream); - } - return ReadableStreamDefaultTee(stream); - } - function ReadableStreamDefaultTee(stream, cloneForBranch2) { - const reader = AcquireReadableStreamDefaultReader(stream); - let reading = false; - let readAgain = false; - let canceled1 = false; - let canceled2 = false; - let reason1; - let reason2; - let branch1; - let branch2; - let resolveCancelPromise; - const cancelPromise = newPromise((resolve) => { - resolveCancelPromise = resolve; - }); - function pullAlgorithm() { - if (reading) { - readAgain = true; - return promiseResolvedWith(void 0); - } - reading = true; - const readRequest = { - _chunkSteps: (chunk) => { - queueMicrotask(() => { - readAgain = false; - const chunk1 = chunk; - const chunk2 = chunk; - if (!canceled1) { - ReadableStreamDefaultControllerEnqueue(branch1._readableStreamController, chunk1); - } - if (!canceled2) { - ReadableStreamDefaultControllerEnqueue(branch2._readableStreamController, chunk2); - } - reading = false; - if (readAgain) { - pullAlgorithm(); - } - }); - }, - _closeSteps: () => { - reading = false; - if (!canceled1) { - ReadableStreamDefaultControllerClose(branch1._readableStreamController); - } - if (!canceled2) { - ReadableStreamDefaultControllerClose(branch2._readableStreamController); - } - if (!canceled1 || !canceled2) { - resolveCancelPromise(void 0); - } - }, - _errorSteps: () => { - reading = false; - } - }; - ReadableStreamDefaultReaderRead(reader, readRequest); - return promiseResolvedWith(void 0); - } - function cancel1Algorithm(reason) { - canceled1 = true; - reason1 = reason; - if (canceled2) { - const compositeReason = CreateArrayFromList([reason1, reason2]); - const cancelResult = ReadableStreamCancel(stream, compositeReason); - resolveCancelPromise(cancelResult); - } - return cancelPromise; - } - function cancel2Algorithm(reason) { - canceled2 = true; - reason2 = reason; - if (canceled1) { - const compositeReason = CreateArrayFromList([reason1, reason2]); - const cancelResult = ReadableStreamCancel(stream, compositeReason); - resolveCancelPromise(cancelResult); - } - return cancelPromise; - } - function startAlgorithm() { - } - branch1 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel1Algorithm); - branch2 = CreateReadableStream(startAlgorithm, pullAlgorithm, cancel2Algorithm); - uponRejection(reader._closedPromise, (r2) => { - ReadableStreamDefaultControllerError(branch1._readableStreamController, r2); - ReadableStreamDefaultControllerError(branch2._readableStreamController, r2); - if (!canceled1 || !canceled2) { - resolveCancelPromise(void 0); - } - }); - return [branch1, branch2]; - } - function ReadableByteStreamTee(stream) { - let reader = AcquireReadableStreamDefaultReader(stream); - let reading = false; - let readAgainForBranch1 = false; - let readAgainForBranch2 = false; - let canceled1 = false; - let canceled2 = false; - let reason1; - let reason2; - let branch1; - let branch2; - let resolveCancelPromise; - const cancelPromise = newPromise((resolve) => { - resolveCancelPromise = resolve; - }); - function forwardReaderError(thisReader) { - uponRejection(thisReader._closedPromise, (r2) => { - if (thisReader !== reader) { - return; - } - ReadableByteStreamControllerError(branch1._readableStreamController, r2); - ReadableByteStreamControllerError(branch2._readableStreamController, r2); - if (!canceled1 || !canceled2) { - resolveCancelPromise(void 0); - } - }); - } - function pullWithDefaultReader() { - if (IsReadableStreamBYOBReader(reader)) { - ReadableStreamReaderGenericRelease(reader); - reader = AcquireReadableStreamDefaultReader(stream); - forwardReaderError(reader); - } - const readRequest = { - _chunkSteps: (chunk) => { - queueMicrotask(() => { - readAgainForBranch1 = false; - readAgainForBranch2 = false; - const chunk1 = chunk; - let chunk2 = chunk; - if (!canceled1 && !canceled2) { - try { - chunk2 = CloneAsUint8Array(chunk); - } catch (cloneE) { - ReadableByteStreamControllerError(branch1._readableStreamController, cloneE); - ReadableByteStreamControllerError(branch2._readableStreamController, cloneE); - resolveCancelPromise(ReadableStreamCancel(stream, cloneE)); - return; - } - } - if (!canceled1) { - ReadableByteStreamControllerEnqueue(branch1._readableStreamController, chunk1); - } - if (!canceled2) { - ReadableByteStreamControllerEnqueue(branch2._readableStreamController, chunk2); - } - reading = false; - if (readAgainForBranch1) { - pull1Algorithm(); - } else if (readAgainForBranch2) { - pull2Algorithm(); - } - }); - }, - _closeSteps: () => { - reading = false; - if (!canceled1) { - ReadableByteStreamControllerClose(branch1._readableStreamController); - } - if (!canceled2) { - ReadableByteStreamControllerClose(branch2._readableStreamController); - } - if (branch1._readableStreamController._pendingPullIntos.length > 0) { - ReadableByteStreamControllerRespond(branch1._readableStreamController, 0); - } - if (branch2._readableStreamController._pendingPullIntos.length > 0) { - ReadableByteStreamControllerRespond(branch2._readableStreamController, 0); - } - if (!canceled1 || !canceled2) { - resolveCancelPromise(void 0); - } - }, - _errorSteps: () => { - reading = false; - } - }; - ReadableStreamDefaultReaderRead(reader, readRequest); - } - function pullWithBYOBReader(view, forBranch2) { - if (IsReadableStreamDefaultReader(reader)) { - ReadableStreamReaderGenericRelease(reader); - reader = AcquireReadableStreamBYOBReader(stream); - forwardReaderError(reader); - } - const byobBranch = forBranch2 ? branch2 : branch1; - const otherBranch = forBranch2 ? branch1 : branch2; - const readIntoRequest = { - _chunkSteps: (chunk) => { - queueMicrotask(() => { - readAgainForBranch1 = false; - readAgainForBranch2 = false; - const byobCanceled = forBranch2 ? canceled2 : canceled1; - const otherCanceled = forBranch2 ? canceled1 : canceled2; - if (!otherCanceled) { - let clonedChunk; - try { - clonedChunk = CloneAsUint8Array(chunk); - } catch (cloneE) { - ReadableByteStreamControllerError(byobBranch._readableStreamController, cloneE); - ReadableByteStreamControllerError(otherBranch._readableStreamController, cloneE); - resolveCancelPromise(ReadableStreamCancel(stream, cloneE)); - return; - } - if (!byobCanceled) { - ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk); - } - ReadableByteStreamControllerEnqueue(otherBranch._readableStreamController, clonedChunk); - } else if (!byobCanceled) { - ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk); - } - reading = false; - if (readAgainForBranch1) { - pull1Algorithm(); - } else if (readAgainForBranch2) { - pull2Algorithm(); - } - }); - }, - _closeSteps: (chunk) => { - reading = false; - const byobCanceled = forBranch2 ? canceled2 : canceled1; - const otherCanceled = forBranch2 ? canceled1 : canceled2; - if (!byobCanceled) { - ReadableByteStreamControllerClose(byobBranch._readableStreamController); - } - if (!otherCanceled) { - ReadableByteStreamControllerClose(otherBranch._readableStreamController); - } - if (chunk !== void 0) { - if (!byobCanceled) { - ReadableByteStreamControllerRespondWithNewView(byobBranch._readableStreamController, chunk); - } - if (!otherCanceled && otherBranch._readableStreamController._pendingPullIntos.length > 0) { - ReadableByteStreamControllerRespond(otherBranch._readableStreamController, 0); - } - } - if (!byobCanceled || !otherCanceled) { - resolveCancelPromise(void 0); - } - }, - _errorSteps: () => { - reading = false; - } - }; - ReadableStreamBYOBReaderRead(reader, view, readIntoRequest); - } - function pull1Algorithm() { - if (reading) { - readAgainForBranch1 = true; - return promiseResolvedWith(void 0); - } - reading = true; - const byobRequest = ReadableByteStreamControllerGetBYOBRequest(branch1._readableStreamController); - if (byobRequest === null) { - pullWithDefaultReader(); - } else { - pullWithBYOBReader(byobRequest._view, false); - } - return promiseResolvedWith(void 0); - } - function pull2Algorithm() { - if (reading) { - readAgainForBranch2 = true; - return promiseResolvedWith(void 0); - } - reading = true; - const byobRequest = ReadableByteStreamControllerGetBYOBRequest(branch2._readableStreamController); - if (byobRequest === null) { - pullWithDefaultReader(); - } else { - pullWithBYOBReader(byobRequest._view, true); - } - return promiseResolvedWith(void 0); - } - function cancel1Algorithm(reason) { - canceled1 = true; - reason1 = reason; - if (canceled2) { - const compositeReason = CreateArrayFromList([reason1, reason2]); - const cancelResult = ReadableStreamCancel(stream, compositeReason); - resolveCancelPromise(cancelResult); - } - return cancelPromise; - } - function cancel2Algorithm(reason) { - canceled2 = true; - reason2 = reason; - if (canceled1) { - const compositeReason = CreateArrayFromList([reason1, reason2]); - const cancelResult = ReadableStreamCancel(stream, compositeReason); - resolveCancelPromise(cancelResult); - } - return cancelPromise; - } - function startAlgorithm() { - return; - } - branch1 = CreateReadableByteStream(startAlgorithm, pull1Algorithm, cancel1Algorithm); - branch2 = CreateReadableByteStream(startAlgorithm, pull2Algorithm, cancel2Algorithm); - forwardReaderError(reader); - return [branch1, branch2]; - } - function convertUnderlyingDefaultOrByteSource(source, context) { - assertDictionary(source, context); - const original = source; - const autoAllocateChunkSize = original === null || original === void 0 ? void 0 : original.autoAllocateChunkSize; - const cancel = original === null || original === void 0 ? void 0 : original.cancel; - const pull = original === null || original === void 0 ? void 0 : original.pull; - const start = original === null || original === void 0 ? void 0 : original.start; - const type = original === null || original === void 0 ? void 0 : original.type; - return { - autoAllocateChunkSize: autoAllocateChunkSize === void 0 ? void 0 : convertUnsignedLongLongWithEnforceRange(autoAllocateChunkSize, `${context} has member 'autoAllocateChunkSize' that`), - cancel: cancel === void 0 ? void 0 : convertUnderlyingSourceCancelCallback(cancel, original, `${context} has member 'cancel' that`), - pull: pull === void 0 ? void 0 : convertUnderlyingSourcePullCallback(pull, original, `${context} has member 'pull' that`), - start: start === void 0 ? void 0 : convertUnderlyingSourceStartCallback(start, original, `${context} has member 'start' that`), - type: type === void 0 ? void 0 : convertReadableStreamType(type, `${context} has member 'type' that`) - }; - } - function convertUnderlyingSourceCancelCallback(fn, original, context) { - assertFunction(fn, context); - return (reason) => promiseCall(fn, original, [reason]); - } - function convertUnderlyingSourcePullCallback(fn, original, context) { - assertFunction(fn, context); - return (controller) => promiseCall(fn, original, [controller]); - } - function convertUnderlyingSourceStartCallback(fn, original, context) { - assertFunction(fn, context); - return (controller) => reflectCall(fn, original, [controller]); - } - function convertReadableStreamType(type, context) { - type = `${type}`; - if (type !== "bytes") { - throw new TypeError(`${context} '${type}' is not a valid enumeration value for ReadableStreamType`); - } - return type; - } - function convertReaderOptions(options, context) { - assertDictionary(options, context); - const mode = options === null || options === void 0 ? void 0 : options.mode; - return { - mode: mode === void 0 ? void 0 : convertReadableStreamReaderMode(mode, `${context} has member 'mode' that`) - }; - } - function convertReadableStreamReaderMode(mode, context) { - mode = `${mode}`; - if (mode !== "byob") { - throw new TypeError(`${context} '${mode}' is not a valid enumeration value for ReadableStreamReaderMode`); - } - return mode; - } - function convertIteratorOptions(options, context) { - assertDictionary(options, context); - const preventCancel = options === null || options === void 0 ? void 0 : options.preventCancel; - return { preventCancel: Boolean(preventCancel) }; - } - function convertPipeOptions(options, context) { - assertDictionary(options, context); - const preventAbort = options === null || options === void 0 ? void 0 : options.preventAbort; - const preventCancel = options === null || options === void 0 ? void 0 : options.preventCancel; - const preventClose = options === null || options === void 0 ? void 0 : options.preventClose; - const signal = options === null || options === void 0 ? void 0 : options.signal; - if (signal !== void 0) { - assertAbortSignal(signal, `${context} has member 'signal' that`); - } - return { - preventAbort: Boolean(preventAbort), - preventCancel: Boolean(preventCancel), - preventClose: Boolean(preventClose), - signal - }; - } - function assertAbortSignal(signal, context) { - if (!isAbortSignal(signal)) { - throw new TypeError(`${context} is not an AbortSignal.`); - } - } - function convertReadableWritablePair(pair, context) { - assertDictionary(pair, context); - const readable = pair === null || pair === void 0 ? void 0 : pair.readable; - assertRequiredField(readable, "readable", "ReadableWritablePair"); - assertReadableStream(readable, `${context} has member 'readable' that`); - const writable = pair === null || pair === void 0 ? void 0 : pair.writable; - assertRequiredField(writable, "writable", "ReadableWritablePair"); - assertWritableStream(writable, `${context} has member 'writable' that`); - return { readable, writable }; - } - class ReadableStream2 { - constructor(rawUnderlyingSource = {}, rawStrategy = {}) { - if (rawUnderlyingSource === void 0) { - rawUnderlyingSource = null; - } else { - assertObject(rawUnderlyingSource, "First parameter"); - } - const strategy = convertQueuingStrategy(rawStrategy, "Second parameter"); - const underlyingSource = convertUnderlyingDefaultOrByteSource(rawUnderlyingSource, "First parameter"); - InitializeReadableStream(this); - if (underlyingSource.type === "bytes") { - if (strategy.size !== void 0) { - throw new RangeError("The strategy for a byte stream cannot have a size function"); - } - const highWaterMark = ExtractHighWaterMark(strategy, 0); - SetUpReadableByteStreamControllerFromUnderlyingSource(this, underlyingSource, highWaterMark); - } else { - const sizeAlgorithm = ExtractSizeAlgorithm(strategy); - const highWaterMark = ExtractHighWaterMark(strategy, 1); - SetUpReadableStreamDefaultControllerFromUnderlyingSource(this, underlyingSource, highWaterMark, sizeAlgorithm); - } - } - /** - * Whether or not the readable stream is locked to a {@link ReadableStreamDefaultReader | reader}. - */ - get locked() { - if (!IsReadableStream(this)) { - throw streamBrandCheckException$1("locked"); - } - return IsReadableStreamLocked(this); - } - /** - * Cancels the stream, signaling a loss of interest in the stream by a consumer. - * - * The supplied `reason` argument will be given to the underlying source's {@link UnderlyingSource.cancel | cancel()} - * method, which might or might not use it. - */ - cancel(reason = void 0) { - if (!IsReadableStream(this)) { - return promiseRejectedWith(streamBrandCheckException$1("cancel")); - } - if (IsReadableStreamLocked(this)) { - return promiseRejectedWith(new TypeError("Cannot cancel a stream that already has a reader")); - } - return ReadableStreamCancel(this, reason); - } - getReader(rawOptions = void 0) { - if (!IsReadableStream(this)) { - throw streamBrandCheckException$1("getReader"); - } - const options = convertReaderOptions(rawOptions, "First parameter"); - if (options.mode === void 0) { - return AcquireReadableStreamDefaultReader(this); - } - return AcquireReadableStreamBYOBReader(this); - } - pipeThrough(rawTransform, rawOptions = {}) { - if (!IsReadableStream(this)) { - throw streamBrandCheckException$1("pipeThrough"); - } - assertRequiredArgument(rawTransform, 1, "pipeThrough"); - const transform = convertReadableWritablePair(rawTransform, "First parameter"); - const options = convertPipeOptions(rawOptions, "Second parameter"); - if (IsReadableStreamLocked(this)) { - throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream"); - } - if (IsWritableStreamLocked(transform.writable)) { - throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream"); - } - const promise = ReadableStreamPipeTo(this, transform.writable, options.preventClose, options.preventAbort, options.preventCancel, options.signal); - setPromiseIsHandledToTrue(promise); - return transform.readable; - } - pipeTo(destination, rawOptions = {}) { - if (!IsReadableStream(this)) { - return promiseRejectedWith(streamBrandCheckException$1("pipeTo")); - } - if (destination === void 0) { - return promiseRejectedWith(`Parameter 1 is required in 'pipeTo'.`); - } - if (!IsWritableStream(destination)) { - return promiseRejectedWith(new TypeError(`ReadableStream.prototype.pipeTo's first argument must be a WritableStream`)); - } - let options; - try { - options = convertPipeOptions(rawOptions, "Second parameter"); - } catch (e2) { - return promiseRejectedWith(e2); - } - if (IsReadableStreamLocked(this)) { - return promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")); - } - if (IsWritableStreamLocked(destination)) { - return promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")); - } - return ReadableStreamPipeTo(this, destination, options.preventClose, options.preventAbort, options.preventCancel, options.signal); - } - /** - * Tees this readable stream, returning a two-element array containing the two resulting branches as - * new {@link ReadableStream} instances. - * - * Teeing a stream will lock it, preventing any other consumer from acquiring a reader. - * To cancel the stream, cancel both of the resulting branches; a composite cancellation reason will then be - * propagated to the stream's underlying source. - * - * Note that the chunks seen in each branch will be the same object. If the chunks are not immutable, - * this could allow interference between the two branches. - */ - tee() { - if (!IsReadableStream(this)) { - throw streamBrandCheckException$1("tee"); - } - const branches = ReadableStreamTee(this); - return CreateArrayFromList(branches); - } - values(rawOptions = void 0) { - if (!IsReadableStream(this)) { - throw streamBrandCheckException$1("values"); - } - const options = convertIteratorOptions(rawOptions, "First parameter"); - return AcquireReadableStreamAsyncIterator(this, options.preventCancel); - } - } - Object.defineProperties(ReadableStream2.prototype, { - cancel: { enumerable: true }, - getReader: { enumerable: true }, - pipeThrough: { enumerable: true }, - pipeTo: { enumerable: true }, - tee: { enumerable: true }, - values: { enumerable: true }, - locked: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ReadableStream2.prototype, SymbolPolyfill.toStringTag, { - value: "ReadableStream", - configurable: true - }); - } - if (typeof SymbolPolyfill.asyncIterator === "symbol") { - Object.defineProperty(ReadableStream2.prototype, SymbolPolyfill.asyncIterator, { - value: ReadableStream2.prototype.values, - writable: true, - configurable: true - }); - } - function CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark = 1, sizeAlgorithm = () => 1) { - const stream = Object.create(ReadableStream2.prototype); - InitializeReadableStream(stream); - const controller = Object.create(ReadableStreamDefaultController.prototype); - SetUpReadableStreamDefaultController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, sizeAlgorithm); - return stream; - } - function CreateReadableByteStream(startAlgorithm, pullAlgorithm, cancelAlgorithm) { - const stream = Object.create(ReadableStream2.prototype); - InitializeReadableStream(stream); - const controller = Object.create(ReadableByteStreamController.prototype); - SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, 0, void 0); - return stream; - } - function InitializeReadableStream(stream) { - stream._state = "readable"; - stream._reader = void 0; - stream._storedError = void 0; - stream._disturbed = false; - } - function IsReadableStream(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_readableStreamController")) { - return false; - } - return x2 instanceof ReadableStream2; - } - function IsReadableStreamLocked(stream) { - if (stream._reader === void 0) { - return false; - } - return true; - } - function ReadableStreamCancel(stream, reason) { - stream._disturbed = true; - if (stream._state === "closed") { - return promiseResolvedWith(void 0); - } - if (stream._state === "errored") { - return promiseRejectedWith(stream._storedError); - } - ReadableStreamClose(stream); - const reader = stream._reader; - if (reader !== void 0 && IsReadableStreamBYOBReader(reader)) { - reader._readIntoRequests.forEach((readIntoRequest) => { - readIntoRequest._closeSteps(void 0); - }); - reader._readIntoRequests = new SimpleQueue(); - } - const sourceCancelPromise = stream._readableStreamController[CancelSteps](reason); - return transformPromiseWith(sourceCancelPromise, noop); - } - function ReadableStreamClose(stream) { - stream._state = "closed"; - const reader = stream._reader; - if (reader === void 0) { - return; - } - defaultReaderClosedPromiseResolve(reader); - if (IsReadableStreamDefaultReader(reader)) { - reader._readRequests.forEach((readRequest) => { - readRequest._closeSteps(); - }); - reader._readRequests = new SimpleQueue(); - } - } - function ReadableStreamError(stream, e2) { - stream._state = "errored"; - stream._storedError = e2; - const reader = stream._reader; - if (reader === void 0) { - return; - } - defaultReaderClosedPromiseReject(reader, e2); - if (IsReadableStreamDefaultReader(reader)) { - reader._readRequests.forEach((readRequest) => { - readRequest._errorSteps(e2); - }); - reader._readRequests = new SimpleQueue(); - } else { - reader._readIntoRequests.forEach((readIntoRequest) => { - readIntoRequest._errorSteps(e2); - }); - reader._readIntoRequests = new SimpleQueue(); - } - } - function streamBrandCheckException$1(name) { - return new TypeError(`ReadableStream.prototype.${name} can only be used on a ReadableStream`); - } - function convertQueuingStrategyInit(init, context) { - assertDictionary(init, context); - const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark; - assertRequiredField(highWaterMark, "highWaterMark", "QueuingStrategyInit"); - return { - highWaterMark: convertUnrestrictedDouble(highWaterMark) - }; - } - const byteLengthSizeFunction = (chunk) => { - return chunk.byteLength; - }; - try { - Object.defineProperty(byteLengthSizeFunction, "name", { - value: "size", - configurable: true - }); - } catch (_a4) { - } - class ByteLengthQueuingStrategy { - constructor(options) { - assertRequiredArgument(options, 1, "ByteLengthQueuingStrategy"); - options = convertQueuingStrategyInit(options, "First parameter"); - this._byteLengthQueuingStrategyHighWaterMark = options.highWaterMark; - } - /** - * Returns the high water mark provided to the constructor. - */ - get highWaterMark() { - if (!IsByteLengthQueuingStrategy(this)) { - throw byteLengthBrandCheckException("highWaterMark"); - } - return this._byteLengthQueuingStrategyHighWaterMark; - } - /** - * Measures the size of `chunk` by returning the value of its `byteLength` property. - */ - get size() { - if (!IsByteLengthQueuingStrategy(this)) { - throw byteLengthBrandCheckException("size"); - } - return byteLengthSizeFunction; - } - } - Object.defineProperties(ByteLengthQueuingStrategy.prototype, { - highWaterMark: { enumerable: true }, - size: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(ByteLengthQueuingStrategy.prototype, SymbolPolyfill.toStringTag, { - value: "ByteLengthQueuingStrategy", - configurable: true - }); - } - function byteLengthBrandCheckException(name) { - return new TypeError(`ByteLengthQueuingStrategy.prototype.${name} can only be used on a ByteLengthQueuingStrategy`); - } - function IsByteLengthQueuingStrategy(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_byteLengthQueuingStrategyHighWaterMark")) { - return false; - } - return x2 instanceof ByteLengthQueuingStrategy; - } - const countSizeFunction = () => { - return 1; - }; - try { - Object.defineProperty(countSizeFunction, "name", { - value: "size", - configurable: true - }); - } catch (_a4) { - } - class CountQueuingStrategy { - constructor(options) { - assertRequiredArgument(options, 1, "CountQueuingStrategy"); - options = convertQueuingStrategyInit(options, "First parameter"); - this._countQueuingStrategyHighWaterMark = options.highWaterMark; - } - /** - * Returns the high water mark provided to the constructor. - */ - get highWaterMark() { - if (!IsCountQueuingStrategy(this)) { - throw countBrandCheckException("highWaterMark"); - } - return this._countQueuingStrategyHighWaterMark; - } - /** - * Measures the size of `chunk` by always returning 1. - * This ensures that the total queue size is a count of the number of chunks in the queue. - */ - get size() { - if (!IsCountQueuingStrategy(this)) { - throw countBrandCheckException("size"); - } - return countSizeFunction; - } - } - Object.defineProperties(CountQueuingStrategy.prototype, { - highWaterMark: { enumerable: true }, - size: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(CountQueuingStrategy.prototype, SymbolPolyfill.toStringTag, { - value: "CountQueuingStrategy", - configurable: true - }); - } - function countBrandCheckException(name) { - return new TypeError(`CountQueuingStrategy.prototype.${name} can only be used on a CountQueuingStrategy`); - } - function IsCountQueuingStrategy(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_countQueuingStrategyHighWaterMark")) { - return false; - } - return x2 instanceof CountQueuingStrategy; - } - function convertTransformer(original, context) { - assertDictionary(original, context); - const flush = original === null || original === void 0 ? void 0 : original.flush; - const readableType = original === null || original === void 0 ? void 0 : original.readableType; - const start = original === null || original === void 0 ? void 0 : original.start; - const transform = original === null || original === void 0 ? void 0 : original.transform; - const writableType = original === null || original === void 0 ? void 0 : original.writableType; - return { - flush: flush === void 0 ? void 0 : convertTransformerFlushCallback(flush, original, `${context} has member 'flush' that`), - readableType, - start: start === void 0 ? void 0 : convertTransformerStartCallback(start, original, `${context} has member 'start' that`), - transform: transform === void 0 ? void 0 : convertTransformerTransformCallback(transform, original, `${context} has member 'transform' that`), - writableType - }; - } - function convertTransformerFlushCallback(fn, original, context) { - assertFunction(fn, context); - return (controller) => promiseCall(fn, original, [controller]); - } - function convertTransformerStartCallback(fn, original, context) { - assertFunction(fn, context); - return (controller) => reflectCall(fn, original, [controller]); - } - function convertTransformerTransformCallback(fn, original, context) { - assertFunction(fn, context); - return (chunk, controller) => promiseCall(fn, original, [chunk, controller]); - } - class TransformStream { - constructor(rawTransformer = {}, rawWritableStrategy = {}, rawReadableStrategy = {}) { - if (rawTransformer === void 0) { - rawTransformer = null; - } - const writableStrategy = convertQueuingStrategy(rawWritableStrategy, "Second parameter"); - const readableStrategy = convertQueuingStrategy(rawReadableStrategy, "Third parameter"); - const transformer = convertTransformer(rawTransformer, "First parameter"); - if (transformer.readableType !== void 0) { - throw new RangeError("Invalid readableType specified"); - } - if (transformer.writableType !== void 0) { - throw new RangeError("Invalid writableType specified"); - } - const readableHighWaterMark = ExtractHighWaterMark(readableStrategy, 0); - const readableSizeAlgorithm = ExtractSizeAlgorithm(readableStrategy); - const writableHighWaterMark = ExtractHighWaterMark(writableStrategy, 1); - const writableSizeAlgorithm = ExtractSizeAlgorithm(writableStrategy); - let startPromise_resolve; - const startPromise = newPromise((resolve) => { - startPromise_resolve = resolve; - }); - InitializeTransformStream(this, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm); - SetUpTransformStreamDefaultControllerFromTransformer(this, transformer); - if (transformer.start !== void 0) { - startPromise_resolve(transformer.start(this._transformStreamController)); - } else { - startPromise_resolve(void 0); - } - } - /** - * The readable side of the transform stream. - */ - get readable() { - if (!IsTransformStream(this)) { - throw streamBrandCheckException("readable"); - } - return this._readable; - } - /** - * The writable side of the transform stream. - */ - get writable() { - if (!IsTransformStream(this)) { - throw streamBrandCheckException("writable"); - } - return this._writable; - } - } - Object.defineProperties(TransformStream.prototype, { - readable: { enumerable: true }, - writable: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(TransformStream.prototype, SymbolPolyfill.toStringTag, { - value: "TransformStream", - configurable: true - }); - } - function InitializeTransformStream(stream, startPromise, writableHighWaterMark, writableSizeAlgorithm, readableHighWaterMark, readableSizeAlgorithm) { - function startAlgorithm() { - return startPromise; - } - function writeAlgorithm(chunk) { - return TransformStreamDefaultSinkWriteAlgorithm(stream, chunk); - } - function abortAlgorithm(reason) { - return TransformStreamDefaultSinkAbortAlgorithm(stream, reason); - } - function closeAlgorithm() { - return TransformStreamDefaultSinkCloseAlgorithm(stream); - } - stream._writable = CreateWritableStream(startAlgorithm, writeAlgorithm, closeAlgorithm, abortAlgorithm, writableHighWaterMark, writableSizeAlgorithm); - function pullAlgorithm() { - return TransformStreamDefaultSourcePullAlgorithm(stream); - } - function cancelAlgorithm(reason) { - TransformStreamErrorWritableAndUnblockWrite(stream, reason); - return promiseResolvedWith(void 0); - } - stream._readable = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, readableHighWaterMark, readableSizeAlgorithm); - stream._backpressure = void 0; - stream._backpressureChangePromise = void 0; - stream._backpressureChangePromise_resolve = void 0; - TransformStreamSetBackpressure(stream, true); - stream._transformStreamController = void 0; - } - function IsTransformStream(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_transformStreamController")) { - return false; - } - return x2 instanceof TransformStream; - } - function TransformStreamError(stream, e2) { - ReadableStreamDefaultControllerError(stream._readable._readableStreamController, e2); - TransformStreamErrorWritableAndUnblockWrite(stream, e2); - } - function TransformStreamErrorWritableAndUnblockWrite(stream, e2) { - TransformStreamDefaultControllerClearAlgorithms(stream._transformStreamController); - WritableStreamDefaultControllerErrorIfNeeded(stream._writable._writableStreamController, e2); - if (stream._backpressure) { - TransformStreamSetBackpressure(stream, false); - } - } - function TransformStreamSetBackpressure(stream, backpressure) { - if (stream._backpressureChangePromise !== void 0) { - stream._backpressureChangePromise_resolve(); - } - stream._backpressureChangePromise = newPromise((resolve) => { - stream._backpressureChangePromise_resolve = resolve; - }); - stream._backpressure = backpressure; - } - class TransformStreamDefaultController { - constructor() { - throw new TypeError("Illegal constructor"); - } - /** - * Returns the desired size to fill the readable side’s internal queue. It can be negative, if the queue is over-full. - */ - get desiredSize() { - if (!IsTransformStreamDefaultController(this)) { - throw defaultControllerBrandCheckException("desiredSize"); - } - const readableController = this._controlledTransformStream._readable._readableStreamController; - return ReadableStreamDefaultControllerGetDesiredSize(readableController); - } - enqueue(chunk = void 0) { - if (!IsTransformStreamDefaultController(this)) { - throw defaultControllerBrandCheckException("enqueue"); - } - TransformStreamDefaultControllerEnqueue(this, chunk); - } - /** - * Errors both the readable side and the writable side of the controlled transform stream, making all future - * interactions with it fail with the given error `e`. Any chunks queued for transformation will be discarded. - */ - error(reason = void 0) { - if (!IsTransformStreamDefaultController(this)) { - throw defaultControllerBrandCheckException("error"); - } - TransformStreamDefaultControllerError(this, reason); - } - /** - * Closes the readable side and errors the writable side of the controlled transform stream. This is useful when the - * transformer only needs to consume a portion of the chunks written to the writable side. - */ - terminate() { - if (!IsTransformStreamDefaultController(this)) { - throw defaultControllerBrandCheckException("terminate"); - } - TransformStreamDefaultControllerTerminate(this); - } - } - Object.defineProperties(TransformStreamDefaultController.prototype, { - enqueue: { enumerable: true }, - error: { enumerable: true }, - terminate: { enumerable: true }, - desiredSize: { enumerable: true } - }); - if (typeof SymbolPolyfill.toStringTag === "symbol") { - Object.defineProperty(TransformStreamDefaultController.prototype, SymbolPolyfill.toStringTag, { - value: "TransformStreamDefaultController", - configurable: true - }); - } - function IsTransformStreamDefaultController(x2) { - if (!typeIsObject(x2)) { - return false; - } - if (!Object.prototype.hasOwnProperty.call(x2, "_controlledTransformStream")) { - return false; - } - return x2 instanceof TransformStreamDefaultController; - } - function SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm) { - controller._controlledTransformStream = stream; - stream._transformStreamController = controller; - controller._transformAlgorithm = transformAlgorithm; - controller._flushAlgorithm = flushAlgorithm; - } - function SetUpTransformStreamDefaultControllerFromTransformer(stream, transformer) { - const controller = Object.create(TransformStreamDefaultController.prototype); - let transformAlgorithm = (chunk) => { - try { - TransformStreamDefaultControllerEnqueue(controller, chunk); - return promiseResolvedWith(void 0); - } catch (transformResultE) { - return promiseRejectedWith(transformResultE); - } - }; - let flushAlgorithm = () => promiseResolvedWith(void 0); - if (transformer.transform !== void 0) { - transformAlgorithm = (chunk) => transformer.transform(chunk, controller); - } - if (transformer.flush !== void 0) { - flushAlgorithm = () => transformer.flush(controller); - } - SetUpTransformStreamDefaultController(stream, controller, transformAlgorithm, flushAlgorithm); - } - function TransformStreamDefaultControllerClearAlgorithms(controller) { - controller._transformAlgorithm = void 0; - controller._flushAlgorithm = void 0; - } - function TransformStreamDefaultControllerEnqueue(controller, chunk) { - const stream = controller._controlledTransformStream; - const readableController = stream._readable._readableStreamController; - if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController)) { - throw new TypeError("Readable side is not in a state that permits enqueue"); - } - try { - ReadableStreamDefaultControllerEnqueue(readableController, chunk); - } catch (e2) { - TransformStreamErrorWritableAndUnblockWrite(stream, e2); - throw stream._readable._storedError; - } - const backpressure = ReadableStreamDefaultControllerHasBackpressure(readableController); - if (backpressure !== stream._backpressure) { - TransformStreamSetBackpressure(stream, true); - } - } - function TransformStreamDefaultControllerError(controller, e2) { - TransformStreamError(controller._controlledTransformStream, e2); - } - function TransformStreamDefaultControllerPerformTransform(controller, chunk) { - const transformPromise = controller._transformAlgorithm(chunk); - return transformPromiseWith(transformPromise, void 0, (r2) => { - TransformStreamError(controller._controlledTransformStream, r2); - throw r2; - }); - } - function TransformStreamDefaultControllerTerminate(controller) { - const stream = controller._controlledTransformStream; - const readableController = stream._readable._readableStreamController; - ReadableStreamDefaultControllerClose(readableController); - const error = new TypeError("TransformStream terminated"); - TransformStreamErrorWritableAndUnblockWrite(stream, error); - } - function TransformStreamDefaultSinkWriteAlgorithm(stream, chunk) { - const controller = stream._transformStreamController; - if (stream._backpressure) { - const backpressureChangePromise = stream._backpressureChangePromise; - return transformPromiseWith(backpressureChangePromise, () => { - const writable = stream._writable; - const state = writable._state; - if (state === "erroring") { - throw writable._storedError; - } - return TransformStreamDefaultControllerPerformTransform(controller, chunk); - }); - } - return TransformStreamDefaultControllerPerformTransform(controller, chunk); - } - function TransformStreamDefaultSinkAbortAlgorithm(stream, reason) { - TransformStreamError(stream, reason); - return promiseResolvedWith(void 0); - } - function TransformStreamDefaultSinkCloseAlgorithm(stream) { - const readable = stream._readable; - const controller = stream._transformStreamController; - const flushPromise = controller._flushAlgorithm(); - TransformStreamDefaultControllerClearAlgorithms(controller); - return transformPromiseWith(flushPromise, () => { - if (readable._state === "errored") { - throw readable._storedError; - } - ReadableStreamDefaultControllerClose(readable._readableStreamController); - }, (r2) => { - TransformStreamError(stream, r2); - throw readable._storedError; - }); - } - function TransformStreamDefaultSourcePullAlgorithm(stream) { - TransformStreamSetBackpressure(stream, false); - return stream._backpressureChangePromise; - } - function defaultControllerBrandCheckException(name) { - return new TypeError(`TransformStreamDefaultController.prototype.${name} can only be used on a TransformStreamDefaultController`); - } - function streamBrandCheckException(name) { - return new TypeError(`TransformStream.prototype.${name} can only be used on a TransformStream`); - } - exports2.ByteLengthQueuingStrategy = ByteLengthQueuingStrategy; - exports2.CountQueuingStrategy = CountQueuingStrategy; - exports2.ReadableByteStreamController = ReadableByteStreamController; - exports2.ReadableStream = ReadableStream2; - exports2.ReadableStreamBYOBReader = ReadableStreamBYOBReader; - exports2.ReadableStreamBYOBRequest = ReadableStreamBYOBRequest; - exports2.ReadableStreamDefaultController = ReadableStreamDefaultController; - exports2.ReadableStreamDefaultReader = ReadableStreamDefaultReader; - exports2.TransformStream = TransformStream; - exports2.TransformStreamDefaultController = TransformStreamDefaultController; - exports2.WritableStream = WritableStream; - exports2.WritableStreamDefaultController = WritableStreamDefaultController; - exports2.WritableStreamDefaultWriter = WritableStreamDefaultWriter; - Object.defineProperty(exports2, "__esModule", { value: true }); - }); - } -}); -var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() { - "use strict"; - var POOL_SIZE2 = 65536; - if (!globalThis.ReadableStream) { - try { - const process = (0, import_chunk_AH6QHEOA.__require)("process"); - const { emitWarning } = process; - try { - process.emitWarning = () => { - }; - Object.assign(globalThis, (0, import_chunk_AH6QHEOA.__require)("stream/web")); - process.emitWarning = emitWarning; - } catch (error) { - process.emitWarning = emitWarning; - throw error; - } - } catch (error) { - Object.assign(globalThis, require_ponyfill_es2018()); - } - } - try { - const { Blob: Blob2 } = (0, import_chunk_AH6QHEOA.__require)("buffer"); - if (Blob2 && !Blob2.prototype.stream) { - Blob2.prototype.stream = function name(params) { - let position = 0; - const blob = this; - return new ReadableStream({ - type: "bytes", - async pull(ctrl) { - const chunk = blob.slice(position, Math.min(blob.size, position + POOL_SIZE2)); - const buffer = await chunk.arrayBuffer(); - position += buffer.byteLength; - ctrl.enqueue(new Uint8Array(buffer)); - if (position === blob.size) { - ctrl.close(); - } - } - }); - }; - } - } catch (error) { - } - } -}); -var require_node_domexception = (0, import_chunk_AH6QHEOA.__commonJS)({ - "../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module2) { - "use strict"; - if (!globalThis.DOMException) { - try { - const { MessageChannel } = (0, import_chunk_AH6QHEOA.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer(); - port.postMessage(ab, [ab, ab]); - } catch (err) { - err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor); - } - } - module2.exports = globalThis.DOMException; - } -}); -var import_streams = (0, import_chunk_AH6QHEOA.__toESM)(require_streams(), 1); -var POOL_SIZE = 65536; -async function* toIterator(parts, clone = true) { - for (const part of parts) { - if ("stream" in part) { - yield* ( - /** @type {AsyncIterableIterator} */ - part.stream() - ); - } else if (ArrayBuffer.isView(part)) { - if (clone) { - let position = part.byteOffset; - const end = part.byteOffset + part.byteLength; - while (position !== end) { - const size = Math.min(end - position, POOL_SIZE); - const chunk = part.buffer.slice(position, position + size); - position += chunk.byteLength; - yield new Uint8Array(chunk); - } - } else { - yield part; - } - } else { - let position = 0, b = ( - /** @type {Blob} */ - part - ); - while (position !== b.size) { - const chunk = b.slice(position, Math.min(b.size, position + POOL_SIZE)); - const buffer = await chunk.arrayBuffer(); - position += buffer.byteLength; - yield new Uint8Array(buffer); - } - } - } -} -var _parts, _type, _size, _endings, _a; -var _Blob = (_a = class { - /** - * The Blob() constructor returns a new Blob object. The content - * of the blob consists of the concatenation of the values given - * in the parameter array. - * - * @param {*} blobParts - * @param {{ type?: string, endings?: string }} [options] - */ - constructor(blobParts = [], options = {}) { - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _parts, []); - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _type, ""); - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _size, 0); - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _endings, "transparent"); - if (typeof blobParts !== "object" || blobParts === null) { - throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence."); - } - if (typeof blobParts[Symbol.iterator] !== "function") { - throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property."); - } - if (typeof options !== "object" && typeof options !== "function") { - throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary."); - } - if (options === null) options = {}; - const encoder = new TextEncoder(); - for (const element of blobParts) { - let part; - if (ArrayBuffer.isView(element)) { - part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength)); - } else if (element instanceof ArrayBuffer) { - part = new Uint8Array(element.slice(0)); - } else if (element instanceof _a) { - part = element; - } else { - part = encoder.encode(`${element}`); - } - (0, import_chunk_AH6QHEOA.__privateSet)(this, _size, (0, import_chunk_AH6QHEOA.__privateGet)(this, _size) + (ArrayBuffer.isView(part) ? part.byteLength : part.size)); - (0, import_chunk_AH6QHEOA.__privateGet)(this, _parts).push(part); - } - (0, import_chunk_AH6QHEOA.__privateSet)(this, _endings, `${options.endings === void 0 ? "transparent" : options.endings}`); - const type = options.type === void 0 ? "" : String(options.type); - (0, import_chunk_AH6QHEOA.__privateSet)(this, _type, /^[\x20-\x7E]*$/.test(type) ? type : ""); - } - /** - * The Blob interface's size property returns the - * size of the Blob in bytes. - */ - get size() { - return (0, import_chunk_AH6QHEOA.__privateGet)(this, _size); - } - /** - * The type property of a Blob object returns the MIME type of the file. - */ - get type() { - return (0, import_chunk_AH6QHEOA.__privateGet)(this, _type); - } - /** - * The text() method in the Blob interface returns a Promise - * that resolves with a string containing the contents of - * the blob, interpreted as UTF-8. - * - * @return {Promise} - */ - async text() { - const decoder = new TextDecoder(); - let str = ""; - for await (const part of toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), false)) { - str += decoder.decode(part, { stream: true }); - } - str += decoder.decode(); - return str; - } - /** - * The arrayBuffer() method in the Blob interface returns a - * Promise that resolves with the contents of the blob as - * binary data contained in an ArrayBuffer. - * - * @return {Promise} - */ - async arrayBuffer() { - const data = new Uint8Array(this.size); - let offset = 0; - for await (const chunk of toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), false)) { - data.set(chunk, offset); - offset += chunk.length; - } - return data.buffer; - } - stream() { - const it = toIterator((0, import_chunk_AH6QHEOA.__privateGet)(this, _parts), true); - return new globalThis.ReadableStream({ - // @ts-ignore - type: "bytes", - async pull(ctrl) { - const chunk = await it.next(); - chunk.done ? ctrl.close() : ctrl.enqueue(chunk.value); - }, - async cancel() { - await it.return(); - } - }); - } - /** - * The Blob interface's slice() method creates and returns a - * new Blob object which contains data from a subset of the - * blob on which it's called. - * - * @param {number} [start] - * @param {number} [end] - * @param {string} [type] - */ - slice(start = 0, end = this.size, type = "") { - const { size } = this; - let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size); - let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size); - const span = Math.max(relativeEnd - relativeStart, 0); - const parts = (0, import_chunk_AH6QHEOA.__privateGet)(this, _parts); - const blobParts = []; - let added = 0; - for (const part of parts) { - if (added >= span) { - break; - } - const size2 = ArrayBuffer.isView(part) ? part.byteLength : part.size; - if (relativeStart && size2 <= relativeStart) { - relativeStart -= size2; - relativeEnd -= size2; - } else { - let chunk; - if (ArrayBuffer.isView(part)) { - chunk = part.subarray(relativeStart, Math.min(size2, relativeEnd)); - added += chunk.byteLength; - } else { - chunk = part.slice(relativeStart, Math.min(size2, relativeEnd)); - added += chunk.size; - } - relativeEnd -= size2; - blobParts.push(chunk); - relativeStart = 0; - } - } - const blob = new _a([], { type: String(type).toLowerCase() }); - (0, import_chunk_AH6QHEOA.__privateSet)(blob, _size, span); - (0, import_chunk_AH6QHEOA.__privateSet)(blob, _parts, blobParts); - return blob; - } - get [Symbol.toStringTag]() { - return "Blob"; - } - static [Symbol.hasInstance](object) { - return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]); - } -}, _parts = /* @__PURE__ */ new WeakMap(), _type = /* @__PURE__ */ new WeakMap(), _size = /* @__PURE__ */ new WeakMap(), _endings = /* @__PURE__ */ new WeakMap(), _a); -Object.defineProperties(_Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); -var Blob = _Blob; -var fetch_blob_default = Blob; -var _lastModified, _name, _a2; -var _File = (_a2 = class extends fetch_blob_default { - /** - * @param {*[]} fileBits - * @param {string} fileName - * @param {{lastModified?: number, type?: string}} options - */ - // @ts-ignore - constructor(fileBits, fileName, options = {}) { - if (arguments.length < 2) { - throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`); - } - super(fileBits, options); - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _lastModified, 0); - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _name, ""); - if (options === null) options = {}; - const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified); - if (!Number.isNaN(lastModified)) { - (0, import_chunk_AH6QHEOA.__privateSet)(this, _lastModified, lastModified); - } - (0, import_chunk_AH6QHEOA.__privateSet)(this, _name, String(fileName)); - } - get name() { - return (0, import_chunk_AH6QHEOA.__privateGet)(this, _name); - } - get lastModified() { - return (0, import_chunk_AH6QHEOA.__privateGet)(this, _lastModified); - } - get [Symbol.toStringTag]() { - return "File"; - } - static [Symbol.hasInstance](object) { - return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]); - } -}, _lastModified = /* @__PURE__ */ new WeakMap(), _name = /* @__PURE__ */ new WeakMap(), _a2); -var File = _File; -var file_default = File; -var { toStringTag: t, iterator: i, hasInstance: h } = Symbol; -var r = Math.random; -var m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","); -var f = (a, b, c) => (a += "", /^(Blob|File)$/.test(b && b[t]) ? [(c = c !== void 0 ? c + "" : b[t] == "File" ? b.name : "blob", a), b.name !== c || b[t] == "blob" ? new file_default([b], c, b) : b] : [a, b + ""]); -var e = (c, f2) => (f2 ? c : c.replace(/\r?\n|\r/g, "\r\n")).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); -var x = (n, a, e2) => { - if (a.length < e2) { - throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e2} arguments required, but only ${a.length} present.`); - } -}; -var _d, _a3; -var FormData = (_a3 = class { - constructor(...a) { - (0, import_chunk_AH6QHEOA.__privateAdd)(this, _d, []); - if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`); - } - get [t]() { - return "FormData"; - } - [i]() { - return this.entries(); - } - static [h](o) { - return o && typeof o === "object" && o[t] === "FormData" && !m.some((m2) => typeof o[m2] != "function"); - } - append(...a) { - x("append", arguments, 2); - (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).push(f(...a)); - } - delete(a) { - x("delete", arguments, 1); - a += ""; - (0, import_chunk_AH6QHEOA.__privateSet)(this, _d, (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).filter(([b]) => b !== a)); - } - get(a) { - x("get", arguments, 1); - a += ""; - for (var b = (0, import_chunk_AH6QHEOA.__privateGet)(this, _d), l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1]; - return null; - } - getAll(a, b) { - x("getAll", arguments, 1); - b = []; - a += ""; - (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).forEach((c) => c[0] === a && b.push(c[1])); - return b; - } - has(a) { - x("has", arguments, 1); - a += ""; - return (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).some((b) => b[0] === a); - } - forEach(a, b) { - x("forEach", arguments, 1); - for (var [c, d] of this) a.call(b, d, c, this); - } - set(...a) { - x("set", arguments, 2); - var b = [], c = true; - a = f(...a); - (0, import_chunk_AH6QHEOA.__privateGet)(this, _d).forEach((d) => { - d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d); - }); - c && b.push(a); - (0, import_chunk_AH6QHEOA.__privateSet)(this, _d, b); - } - *entries() { - yield* (0, import_chunk_AH6QHEOA.__privateGet)(this, _d); - } - *keys() { - for (var [a] of this) yield a; - } - *values() { - for (var [, a] of this) yield a; - } -}, _d = /* @__PURE__ */ new WeakMap(), _a3); -function formDataToBlob(F, B = fetch_blob_default) { - var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r -Content-Disposition: form-data; name="`; - F.forEach((v, n) => typeof v == "string" ? c.push(p + e(n) + `"\r -\r -${v.replace(/\r(?!\n)|(? *) - -fetch-blob/index.js: - (*! fetch-blob. MIT License. Jimmy Wärting *) - -formdata-polyfill/esm.min.js: - (*! formdata-polyfill. MIT License. Jimmy Wärting *) -*/ diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js deleted file mode 100644 index 4457ee5..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_X37PZICB_exports = {}; -__export(chunk_X37PZICB_exports, { - BinaryType: () => BinaryType -}); -module.exports = __toCommonJS(chunk_X37PZICB_exports); -var BinaryType = /* @__PURE__ */ ((BinaryType2) => { - BinaryType2["QueryEngineBinary"] = "query-engine"; - BinaryType2["QueryEngineLibrary"] = "libquery-engine"; - BinaryType2["SchemaEngineBinary"] = "schema-engine"; - return BinaryType2; -})(BinaryType || {}); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts deleted file mode 100644 index 219f689..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function cleanupCache(n?: number): Promise; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.js deleted file mode 100644 index 0015fae..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var cleanupCache_exports = {}; -__export(cleanupCache_exports, { - cleanupCache: () => import_chunk_QSTZGX47.cleanupCache -}); -module.exports = __toCommonJS(cleanupCache_exports); -var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js"); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/download.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/download.d.ts deleted file mode 100644 index 71b1dbb..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/download.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { BinaryTarget } from '@prisma/get-platform'; -import { BinaryType } from './BinaryType'; -export declare const vercelPkgPathRegex: RegExp; -export type BinaryDownloadConfiguration = { - [binary in BinaryType]?: string; -}; -export type BinaryPaths = { - [binary in BinaryType]?: { - [binaryTarget in BinaryTarget]: string; - }; -}; -export interface DownloadOptions { - binaries: BinaryDownloadConfiguration; - binaryTargets?: BinaryTarget[]; - showProgress?: boolean; - progressCb?: (progress: number) => void; - version?: string; - skipDownload?: boolean; - failSilent?: boolean; - printVersion?: boolean; - skipCacheIntegrityCheck?: boolean; -} -export declare function download(options: DownloadOptions): Promise; -export declare function getVersion(enginePath: string, binaryName: string): Promise; -export declare function getBinaryName(binaryName: BinaryType, binaryTarget: BinaryTarget): string; -export declare function maybeCopyToTmp(file: string): Promise; -export declare function plusX(file: any): void; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/download.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/download.js deleted file mode 100644 index 42e203c..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/download.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var download_exports = {}; -__export(download_exports, { - download: () => import_chunk_2BCLJS3M.download, - getBinaryName: () => import_chunk_2BCLJS3M.getBinaryName, - getVersion: () => import_chunk_2BCLJS3M.getVersion, - maybeCopyToTmp: () => import_chunk_2BCLJS3M.maybeCopyToTmp, - plusX: () => import_chunk_2BCLJS3M.plusX, - vercelPkgPathRegex: () => import_chunk_2BCLJS3M.vercelPkgPathRegex -}); -module.exports = __toCommonJS(download_exports); -var import_chunk_2BCLJS3M = require("./chunk-2BCLJS3M.js"); -var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js"); -var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js"); -var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js"); -var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js"); -var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js"); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js"); -var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts deleted file mode 100644 index 02502ec..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type DownloadResult = { - lastModified: string; - sha256: string | null; - zippedSha256: string | null; -}; -export declare function downloadZip(url: string, target: string, progressCb?: (progress: number) => void): Promise; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.js deleted file mode 100644 index b425219..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/downloadZip.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var downloadZip_exports = {}; -__export(downloadZip_exports, { - downloadZip: () => import_chunk_QLWYUM7O.downloadZip -}); -module.exports = __toCommonJS(downloadZip_exports); -var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js"); -var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js"); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/env.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/env.d.ts deleted file mode 100644 index 2a6e8f3..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/env.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BinaryType } from './BinaryType'; -export declare const engineEnvVarMap: { - "query-engine": string; - "libquery-engine": string; - "schema-engine": string; -}; -export declare const deprecatedEnvVarMap: Partial; -type PathFromEnvValue = { - path: string; - fromEnvVar: string; -}; -export declare function getBinaryEnvVarPath(binaryName: BinaryType): PathFromEnvValue | null; -export declare function allEngineEnvVarsSet(binaries: string[]): boolean; -export {}; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/env.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/env.js deleted file mode 100644 index a804f2e..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/env.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var env_exports = {}; -__export(env_exports, { - allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet, - deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap, - engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap, - getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath -}); -module.exports = __toCommonJS(env_exports); -var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.d.ts deleted file mode 100644 index 4149af0..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function getHash(filePath: string): Promise; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.js deleted file mode 100644 index e0a5810..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/getHash.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var getHash_exports = {}; -__export(getHash_exports, { - getHash: () => import_chunk_CWGQAQ3T.getHash -}); -module.exports = __toCommonJS(getHash_exports); -var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts deleted file mode 100644 index 99dd772..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { HttpProxyAgent } from 'http-proxy-agent'; -import { HttpsProxyAgent } from 'https-proxy-agent'; -export declare function getProxyAgent(url: string): HttpProxyAgent | HttpsProxyAgent | undefined; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js deleted file mode 100644 index fea9163..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var getProxyAgent_exports = {}; -__export(getProxyAgent_exports, { - getProxyAgent: () => import_chunk_KDPLGCY6.getProxyAgent -}); -module.exports = __toCommonJS(getProxyAgent_exports); -var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/index.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/index.d.ts deleted file mode 100644 index 73f139d..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './BinaryType'; -export * from './download'; -export * from './env'; -export { getProxyAgent } from './getProxyAgent'; -export { getCacheDir, overwriteFile } from './utils'; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/index.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/index.js deleted file mode 100644 index b644113..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/index.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var dist_exports = {}; -__export(dist_exports, { - BinaryType: () => import_chunk_X37PZICB.BinaryType, - allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet, - deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap, - download: () => import_chunk_2BCLJS3M.download, - engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap, - getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath, - getBinaryName: () => import_chunk_2BCLJS3M.getBinaryName, - getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir, - getProxyAgent: () => import_chunk_KDPLGCY6.getProxyAgent, - getVersion: () => import_chunk_2BCLJS3M.getVersion, - maybeCopyToTmp: () => import_chunk_2BCLJS3M.maybeCopyToTmp, - overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile, - plusX: () => import_chunk_2BCLJS3M.plusX, - vercelPkgPathRegex: () => import_chunk_2BCLJS3M.vercelPkgPathRegex -}); -module.exports = __toCommonJS(dist_exports); -var import_chunk_2BCLJS3M = require("./chunk-2BCLJS3M.js"); -var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js"); -var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js"); -var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js"); -var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js"); -var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js"); -var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js"); -var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/log.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/log.d.ts deleted file mode 100644 index 484dcb7..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/log.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import Progress from 'progress'; -export declare function getBar(text: any): Progress; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/log.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/log.js deleted file mode 100644 index 3b77d3e..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/log.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var log_exports = {}; -__export(log_exports, { - getBar: () => import_chunk_4LX3XBNY.getBar -}); -module.exports = __toCommonJS(log_exports); -var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js deleted file mode 100644 index b5e01aa..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +++ /dev/null @@ -1,371 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var multipart_parser_47FFAP42_exports = {}; -__export(multipart_parser_47FFAP42_exports, { - toFormData: () => toFormData -}); -module.exports = __toCommonJS(multipart_parser_47FFAP42_exports); -var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); -var s = 0; -var S = { - START_BOUNDARY: s++, - HEADER_FIELD_START: s++, - HEADER_FIELD: s++, - HEADER_VALUE_START: s++, - HEADER_VALUE: s++, - HEADER_VALUE_ALMOST_DONE: s++, - HEADERS_ALMOST_DONE: s++, - PART_DATA_START: s++, - PART_DATA: s++, - END: s++ -}; -var f = 1; -var F = { - PART_BOUNDARY: f, - LAST_BOUNDARY: f *= 2 -}; -var LF = 10; -var CR = 13; -var SPACE = 32; -var HYPHEN = 45; -var COLON = 58; -var A = 97; -var Z = 122; -var lower = (c) => c | 32; -var noop = () => { -}; -var MultipartParser = class { - /** - * @param {string} boundary - */ - constructor(boundary) { - this.index = 0; - this.flags = 0; - this.onHeaderEnd = noop; - this.onHeaderField = noop; - this.onHeadersEnd = noop; - this.onHeaderValue = noop; - this.onPartBegin = noop; - this.onPartData = noop; - this.onPartEnd = noop; - this.boundaryChars = {}; - boundary = "\r\n--" + boundary; - const ui8a = new Uint8Array(boundary.length); - for (let i = 0; i < boundary.length; i++) { - ui8a[i] = boundary.charCodeAt(i); - this.boundaryChars[ui8a[i]] = true; - } - this.boundary = ui8a; - this.lookbehind = new Uint8Array(this.boundary.length + 8); - this.state = S.START_BOUNDARY; - } - /** - * @param {Uint8Array} data - */ - write(data) { - let i = 0; - const length_ = data.length; - let previousIndex = this.index; - let { lookbehind, boundary, boundaryChars, index, state, flags } = this; - const boundaryLength = this.boundary.length; - const boundaryEnd = boundaryLength - 1; - const bufferLength = data.length; - let c; - let cl; - const mark = (name) => { - this[name + "Mark"] = i; - }; - const clear = (name) => { - delete this[name + "Mark"]; - }; - const callback = (callbackSymbol, start, end, ui8a) => { - if (start === void 0 || start !== end) { - this[callbackSymbol](ui8a && ui8a.subarray(start, end)); - } - }; - const dataCallback = (name, clear2) => { - const markSymbol = name + "Mark"; - if (!(markSymbol in this)) { - return; - } - if (clear2) { - callback(name, this[markSymbol], i, data); - delete this[markSymbol]; - } else { - callback(name, this[markSymbol], data.length, data); - this[markSymbol] = 0; - } - }; - for (i = 0; i < length_; i++) { - c = data[i]; - switch (state) { - case S.START_BOUNDARY: - if (index === boundary.length - 2) { - if (c === HYPHEN) { - flags |= F.LAST_BOUNDARY; - } else if (c !== CR) { - return; - } - index++; - break; - } else if (index - 1 === boundary.length - 2) { - if (flags & F.LAST_BOUNDARY && c === HYPHEN) { - state = S.END; - flags = 0; - } else if (!(flags & F.LAST_BOUNDARY) && c === LF) { - index = 0; - callback("onPartBegin"); - state = S.HEADER_FIELD_START; - } else { - return; - } - break; - } - if (c !== boundary[index + 2]) { - index = -2; - } - if (c === boundary[index + 2]) { - index++; - } - break; - case S.HEADER_FIELD_START: - state = S.HEADER_FIELD; - mark("onHeaderField"); - index = 0; - case S.HEADER_FIELD: - if (c === CR) { - clear("onHeaderField"); - state = S.HEADERS_ALMOST_DONE; - break; - } - index++; - if (c === HYPHEN) { - break; - } - if (c === COLON) { - if (index === 1) { - return; - } - dataCallback("onHeaderField", true); - state = S.HEADER_VALUE_START; - break; - } - cl = lower(c); - if (cl < A || cl > Z) { - return; - } - break; - case S.HEADER_VALUE_START: - if (c === SPACE) { - break; - } - mark("onHeaderValue"); - state = S.HEADER_VALUE; - case S.HEADER_VALUE: - if (c === CR) { - dataCallback("onHeaderValue", true); - callback("onHeaderEnd"); - state = S.HEADER_VALUE_ALMOST_DONE; - } - break; - case S.HEADER_VALUE_ALMOST_DONE: - if (c !== LF) { - return; - } - state = S.HEADER_FIELD_START; - break; - case S.HEADERS_ALMOST_DONE: - if (c !== LF) { - return; - } - callback("onHeadersEnd"); - state = S.PART_DATA_START; - break; - case S.PART_DATA_START: - state = S.PART_DATA; - mark("onPartData"); - case S.PART_DATA: - previousIndex = index; - if (index === 0) { - i += boundaryEnd; - while (i < bufferLength && !(data[i] in boundaryChars)) { - i += boundaryLength; - } - i -= boundaryEnd; - c = data[i]; - } - if (index < boundary.length) { - if (boundary[index] === c) { - if (index === 0) { - dataCallback("onPartData", true); - } - index++; - } else { - index = 0; - } - } else if (index === boundary.length) { - index++; - if (c === CR) { - flags |= F.PART_BOUNDARY; - } else if (c === HYPHEN) { - flags |= F.LAST_BOUNDARY; - } else { - index = 0; - } - } else if (index - 1 === boundary.length) { - if (flags & F.PART_BOUNDARY) { - index = 0; - if (c === LF) { - flags &= ~F.PART_BOUNDARY; - callback("onPartEnd"); - callback("onPartBegin"); - state = S.HEADER_FIELD_START; - break; - } - } else if (flags & F.LAST_BOUNDARY) { - if (c === HYPHEN) { - callback("onPartEnd"); - state = S.END; - flags = 0; - } else { - index = 0; - } - } else { - index = 0; - } - } - if (index > 0) { - lookbehind[index - 1] = c; - } else if (previousIndex > 0) { - const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength); - callback("onPartData", 0, previousIndex, _lookbehind); - previousIndex = 0; - mark("onPartData"); - i--; - } - break; - case S.END: - break; - default: - throw new Error(`Unexpected state entered: ${state}`); - } - } - dataCallback("onHeaderField"); - dataCallback("onHeaderValue"); - dataCallback("onPartData"); - this.index = index; - this.state = state; - this.flags = flags; - } - end() { - if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) { - this.onPartEnd(); - } else if (this.state !== S.END) { - throw new Error("MultipartParser.end(): stream ended unexpectedly"); - } - } -}; -function _fileName(headerValue) { - const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i); - if (!m) { - return; - } - const match = m[2] || m[3] || ""; - let filename = match.slice(match.lastIndexOf("\\") + 1); - filename = filename.replace(/%22/g, '"'); - filename = filename.replace(/&#(\d{4});/g, (m2, code) => { - return String.fromCharCode(code); - }); - return filename; -} -async function toFormData(Body, ct) { - if (!/multipart/i.test(ct)) { - throw new TypeError("Failed to fetch"); - } - const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i); - if (!m) { - throw new TypeError("no or bad content-type header, no multipart boundary"); - } - const parser = new MultipartParser(m[1] || m[2]); - let headerField; - let headerValue; - let entryValue; - let entryName; - let contentType; - let filename; - const entryChunks = []; - const formData = new import_chunk_VTJS2JJN.FormData(); - const onPartData = (ui8a) => { - entryValue += decoder.decode(ui8a, { stream: true }); - }; - const appendToFile = (ui8a) => { - entryChunks.push(ui8a); - }; - const appendFileToFormData = () => { - const file = new import_chunk_VTJS2JJN.file_default(entryChunks, filename, { type: contentType }); - formData.append(entryName, file); - }; - const appendEntryToFormData = () => { - formData.append(entryName, entryValue); - }; - const decoder = new TextDecoder("utf-8"); - decoder.decode(); - parser.onPartBegin = function() { - parser.onPartData = onPartData; - parser.onPartEnd = appendEntryToFormData; - headerField = ""; - headerValue = ""; - entryValue = ""; - entryName = ""; - contentType = ""; - filename = null; - entryChunks.length = 0; - }; - parser.onHeaderField = function(ui8a) { - headerField += decoder.decode(ui8a, { stream: true }); - }; - parser.onHeaderValue = function(ui8a) { - headerValue += decoder.decode(ui8a, { stream: true }); - }; - parser.onHeaderEnd = function() { - headerValue += decoder.decode(); - headerField = headerField.toLowerCase(); - if (headerField === "content-disposition") { - const m2 = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i); - if (m2) { - entryName = m2[2] || m2[3] || ""; - } - filename = _fileName(headerValue); - if (filename) { - parser.onPartData = appendToFile; - parser.onPartEnd = appendFileToFormData; - } - } else if (headerField === "content-type") { - contentType = headerValue; - } - headerValue = ""; - headerField = ""; - }; - for await (const chunk of Body) { - parser.write(chunk); - } - parser.end(); - return formData; -} diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.d.ts b/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.d.ts deleted file mode 100644 index 3f8ee8a..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BinaryTarget } from '@prisma/get-platform'; -export declare function getRootCacheDir(): Promise; -export declare function getCacheDir(channel: string, version: string, binaryTarget: string): Promise; -export declare function getDownloadUrl({ channel, version, binaryTarget, binaryName, extension, }: { - channel: string; - version: string; - binaryTarget: BinaryTarget; - binaryName: string; - extension?: string; -}): string; -export declare function overwriteFile(sourcePath: string, targetPath: string): Promise; diff --git a/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.js b/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.js deleted file mode 100644 index 34c75fd..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/dist/utils.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -__export(utils_exports, { - getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir, - getDownloadUrl: () => import_chunk_FQ2BOR66.getDownloadUrl, - getRootCacheDir: () => import_chunk_FQ2BOR66.getRootCacheDir, - overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile -}); -module.exports = __toCommonJS(utils_exports); -var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); -var import_chunk_X37PZICB = require("./chunk-X37PZICB.js"); -var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); diff --git a/mcp-server/node_modules/@prisma/fetch-engine/package.json b/mcp-server/node_modules/@prisma/fetch-engine/package.json deleted file mode 100644 index 7c2e205..0000000 --- a/mcp-server/node_modules/@prisma/fetch-engine/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@prisma/fetch-engine", - "version": "5.22.0", - "description": "This package is intended for Prisma's internal use", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "license": "Apache-2.0", - "author": "Tim Suchanek ", - "homepage": "https://www.prisma.io", - "repository": { - "type": "git", - "url": "https://github.com/prisma/prisma.git", - "directory": "packages/fetch-engine" - }, - "bugs": "https://github.com/prisma/prisma/issues", - "enginesOverride": {}, - "devDependencies": { - "@swc/core": "1.6.13", - "@swc/jest": "0.2.36", - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "@types/progress": "2.0.7", - "del": "6.1.1", - "execa": "5.1.1", - "find-cache-dir": "5.0.0", - "fs-extra": "11.1.1", - "hasha": "5.2.2", - "http-proxy-agent": "7.0.2", - "https-proxy-agent": "7.0.5", - "jest": "29.7.0", - "kleur": "4.1.5", - "node-fetch": "3.3.2", - "p-filter": "2.1.0", - "p-map": "4.0.0", - "p-retry": "4.6.2", - "progress": "2.0.3", - "rimraf": "3.0.2", - "strip-ansi": "6.0.1", - "temp-dir": "2.0.0", - "tempy": "1.0.1", - "timeout-signal": "2.0.0", - "typescript": "5.4.5" - }, - "dependencies": { - "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", - "@prisma/debug": "5.22.0", - "@prisma/get-platform": "5.22.0" - }, - "files": [ - "README.md", - "dist" - ], - "sideEffects": false, - "scripts": { - "dev": "DEV=true tsx helpers/build.ts", - "build": "tsx helpers/build.ts", - "test": "jest" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/@prisma/get-platform/LICENSE b/mcp-server/node_modules/@prisma/get-platform/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/@prisma/get-platform/README.md b/mcp-server/node_modules/@prisma/get-platform/README.md deleted file mode 100644 index f511071..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# @prisma/get-platform - -Platform detection. - -⚠️ **Warning**: This package is intended for Prisma's internal use. -Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning. - -If you are using this package, it would be helpful if you could help us gain an understanding where, how and why you are using it. Your feedback will be valuable to us to define a better API. Please share this information at https://github.com/prisma/prisma/discussions/13877 - Thanks! - -## Usage - -```ts -import { getBinaryTargetForCurrentPlatform } from '@prisma/get-platform' - -const binaryTarget = await getBinaryTargetForCurrentPlatform() -``` diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts deleted file mode 100644 index b318c7e..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Determines whether Node API is supported on the current platform and throws if not - */ -export declare function assertNodeAPISupported(): void; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js b/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js deleted file mode 100644 index 2681cbe..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var assertNodeAPISupported_exports = {}; -__export(assertNodeAPISupported_exports, { - assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported -}); -module.exports = __toCommonJS(assertNodeAPISupported_exports); -var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts deleted file mode 100644 index 6d139ea..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type BinaryTarget = 'native' | 'darwin' | 'darwin-arm64' | 'debian-openssl-1.0.x' | 'debian-openssl-1.1.x' | 'debian-openssl-3.0.x' | 'rhel-openssl-1.0.x' | 'rhel-openssl-1.1.x' | 'rhel-openssl-3.0.x' | 'linux-arm64-openssl-1.1.x' | 'linux-arm64-openssl-1.0.x' | 'linux-arm64-openssl-3.0.x' | 'linux-arm-openssl-1.1.x' | 'linux-arm-openssl-1.0.x' | 'linux-arm-openssl-3.0.x' | 'linux-musl' | 'linux-musl-openssl-3.0.x' | 'linux-musl-arm64-openssl-1.1.x' | 'linux-musl-arm64-openssl-3.0.x' | 'linux-nixos' | 'linux-static-x64' | 'linux-static-arm64' | 'windows' | 'freebsd11' | 'freebsd12' | 'freebsd13' | 'freebsd14' | 'freebsd15' | 'openbsd' | 'netbsd' | 'arm'; -export declare const binaryTargets: BinaryTarget[]; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.js b/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.js deleted file mode 100644 index d876967..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/binaryTargets.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var binaryTargets_exports = {}; -__export(binaryTargets_exports, { - binaryTargets: () => import_chunk_7MLUNQIZ.binaryTargets -}); -module.exports = __toCommonJS(binaryTargets_exports); -var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -(0, import_chunk_7MLUNQIZ.init_binaryTargets)(); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js deleted file mode 100644 index 191c28c..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_2ESYSVXG_exports = {}; -__export(chunk_2ESYSVXG_exports, { - __commonJS: () => __commonJS, - __esm: () => __esm, - __export: () => __export2, - __require: () => __require, - __toCommonJS: () => __toCommonJS2, - __toESM: () => __toESM -}); -module.exports = __toCommonJS(chunk_2ESYSVXG_exports); -var __create = Object.create; -var __defProp2 = Object.defineProperty; -var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; -var __getOwnPropNames2 = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp2 = Object.prototype.hasOwnProperty; -var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { - get: (a, b) => (typeof require !== "undefined" ? require : a)[b] -}) : x)(function(x) { - if (typeof require !== "undefined") return require.apply(this, arguments); - throw Error('Dynamic require of "' + x + '" is not supported'); -}); -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res; -}; -var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export2 = (target, all) => { - for (var name in all) - __defProp2(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps2 = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames2(from)) - if (!__hasOwnProp2.call(to, key) && key !== except) - __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps2( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js deleted file mode 100644 index 8147cb9..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_2U36ISZO_exports = {}; -__export(chunk_2U36ISZO_exports, { - getNodeAPIName: () => getNodeAPIName -}); -module.exports = __toCommonJS(chunk_2U36ISZO_exports); -var NODE_API_QUERY_ENGINE_URL_BASE = "libquery_engine"; -function getNodeAPIName(binaryTarget, type) { - const isUrl = type === "url"; - if (binaryTarget.includes("windows")) { - return isUrl ? `query_engine.dll.node` : `query_engine-${binaryTarget}.dll.node`; - } else if (binaryTarget.includes("darwin")) { - return isUrl ? `${NODE_API_QUERY_ENGINE_URL_BASE}.dylib.node` : `${NODE_API_QUERY_ENGINE_URL_BASE}-${binaryTarget}.dylib.node`; - } else { - return isUrl ? `${NODE_API_QUERY_ENGINE_URL_BASE}.so.node` : `${NODE_API_QUERY_ENGINE_URL_BASE}-${binaryTarget}.so.node`; - } -} diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js deleted file mode 100644 index 3918c74..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +++ /dev/null @@ -1 +0,0 @@ -"use strict"; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js deleted file mode 100644 index 0230e74..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_7MLUNQIZ_exports = {}; -__export(chunk_7MLUNQIZ_exports, { - binaryTargets: () => binaryTargets, - init_binaryTargets: () => init_binaryTargets -}); -module.exports = __toCommonJS(chunk_7MLUNQIZ_exports); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -var binaryTargets; -var init_binaryTargets = (0, import_chunk_2ESYSVXG.__esm)({ - "src/binaryTargets.ts"() { - binaryTargets = [ - "darwin", - "darwin-arm64", - "debian-openssl-1.0.x", - "debian-openssl-1.1.x", - "debian-openssl-3.0.x", - "rhel-openssl-1.0.x", - "rhel-openssl-1.1.x", - "rhel-openssl-3.0.x", - "linux-arm64-openssl-1.1.x", - "linux-arm64-openssl-1.0.x", - "linux-arm64-openssl-3.0.x", - "linux-arm-openssl-1.1.x", - "linux-arm-openssl-1.0.x", - "linux-arm-openssl-3.0.x", - "linux-musl", - "linux-musl-openssl-3.0.x", - "linux-musl-arm64-openssl-1.1.x", - "linux-musl-arm64-openssl-3.0.x", - "linux-nixos", - "linux-static-x64", - "linux-static-arm64", - "windows", - "freebsd11", - "freebsd12", - "freebsd13", - "freebsd14", - "freebsd15", - "openbsd", - "netbsd", - "arm" - ]; - } -}); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js deleted file mode 100644 index ce9f836..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_B23KD6U3_exports = {}; -__export(chunk_B23KD6U3_exports, { - binaryTargetRegex: () => binaryTargetRegex, - binaryTargetRegex_exports: () => binaryTargetRegex_exports, - init_binaryTargetRegex: () => init_binaryTargetRegex -}); -module.exports = __toCommonJS(chunk_B23KD6U3_exports); -var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -var require_escape_string_regexp = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/escape-string-regexp@4.0.0/node_modules/escape-string-regexp/index.js"(exports, module2) { - "use strict"; - module2.exports = (string) => { - if (typeof string !== "string") { - throw new TypeError("Expected a string"); - } - return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"); - }; - } -}); -var binaryTargetRegex_exports = {}; -(0, import_chunk_2ESYSVXG.__export)(binaryTargetRegex_exports, { - binaryTargetRegex: () => binaryTargetRegex -}); -var import_escape_string_regexp, binaryTargetRegex; -var init_binaryTargetRegex = (0, import_chunk_2ESYSVXG.__esm)({ - "src/test-utils/binaryTargetRegex.ts"() { - import_escape_string_regexp = (0, import_chunk_2ESYSVXG.__toESM)(require_escape_string_regexp()); - (0, import_chunk_7MLUNQIZ.init_binaryTargets)(); - binaryTargetRegex = new RegExp( - "(" + [...import_chunk_7MLUNQIZ.binaryTargets].sort((a, b) => b.length - a.length).map((p) => (0, import_escape_string_regexp.default)(p)).join("|") + ")", - "g" - ); - } -}); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js deleted file mode 100644 index 2d82359..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +++ /dev/null @@ -1,367 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_D7S5FGQN_exports = {}; -__export(chunk_D7S5FGQN_exports, { - link: () => link -}); -module.exports = __toCommonJS(chunk_D7S5FGQN_exports); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -var require_ansi_escapes = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module2) { - "use strict"; - var ansiEscapes = module2.exports; - module2.exports.default = ansiEscapes; - var ESC = "\x1B["; - var OSC = "\x1B]"; - var BEL = "\x07"; - var SEP = ";"; - var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal"; - ansiEscapes.cursorTo = (x, y) => { - if (typeof x !== "number") { - throw new TypeError("The `x` argument is required"); - } - if (typeof y !== "number") { - return ESC + (x + 1) + "G"; - } - return ESC + (y + 1) + ";" + (x + 1) + "H"; - }; - ansiEscapes.cursorMove = (x, y) => { - if (typeof x !== "number") { - throw new TypeError("The `x` argument is required"); - } - let ret = ""; - if (x < 0) { - ret += ESC + -x + "D"; - } else if (x > 0) { - ret += ESC + x + "C"; - } - if (y < 0) { - ret += ESC + -y + "A"; - } else if (y > 0) { - ret += ESC + y + "B"; - } - return ret; - }; - ansiEscapes.cursorUp = (count = 1) => ESC + count + "A"; - ansiEscapes.cursorDown = (count = 1) => ESC + count + "B"; - ansiEscapes.cursorForward = (count = 1) => ESC + count + "C"; - ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D"; - ansiEscapes.cursorLeft = ESC + "G"; - ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s"; - ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u"; - ansiEscapes.cursorGetPosition = ESC + "6n"; - ansiEscapes.cursorNextLine = ESC + "E"; - ansiEscapes.cursorPrevLine = ESC + "F"; - ansiEscapes.cursorHide = ESC + "?25l"; - ansiEscapes.cursorShow = ESC + "?25h"; - ansiEscapes.eraseLines = (count) => { - let clear = ""; - for (let i = 0; i < count; i++) { - clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : ""); - } - if (count) { - clear += ansiEscapes.cursorLeft; - } - return clear; - }; - ansiEscapes.eraseEndLine = ESC + "K"; - ansiEscapes.eraseStartLine = ESC + "1K"; - ansiEscapes.eraseLine = ESC + "2K"; - ansiEscapes.eraseDown = ESC + "J"; - ansiEscapes.eraseUp = ESC + "1J"; - ansiEscapes.eraseScreen = ESC + "2J"; - ansiEscapes.scrollUp = ESC + "S"; - ansiEscapes.scrollDown = ESC + "T"; - ansiEscapes.clearScreen = "\x1Bc"; - ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : ( - // 1. Erases the screen (Only done in case `2` is not supported) - // 2. Erases the whole screen including scrollback buffer - // 3. Moves cursor to the top-left position - // More info: https://www.real-world-systems.com/docs/ANSIcode.html - `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H` - ); - ansiEscapes.beep = BEL; - ansiEscapes.link = (text, url) => { - return [ - OSC, - "8", - SEP, - SEP, - url, - BEL, - text, - OSC, - "8", - SEP, - SEP, - BEL - ].join(""); - }; - ansiEscapes.image = (buffer, options = {}) => { - let ret = `${OSC}1337;File=inline=1`; - if (options.width) { - ret += `;width=${options.width}`; - } - if (options.height) { - ret += `;height=${options.height}`; - } - if (options.preserveAspectRatio === false) { - ret += ";preserveAspectRatio=0"; - } - return ret + ":" + buffer.toString("base64") + BEL; - }; - ansiEscapes.iTerm = { - setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`, - annotation: (message, options = {}) => { - let ret = `${OSC}1337;`; - const hasX = typeof options.x !== "undefined"; - const hasY = typeof options.y !== "undefined"; - if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) { - throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined"); - } - message = message.replace(/\|/g, ""); - ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation="; - if (options.length > 0) { - ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|"); - } else { - ret += message; - } - return ret + BEL; - } - }; - } -}); -var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) { - "use strict"; - module2.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf("--"); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); - }; - } -}); -var require_supports_color = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) { - "use strict"; - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var tty = (0, import_chunk_2ESYSVXG.__require)("tty"); - var hasFlag = require_has_flag(); - var { env } = process; - var forceColor; - if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) { - forceColor = 0; - } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) { - forceColor = 1; - } - if ("FORCE_COLOR" in env) { - if (env.FORCE_COLOR === "true") { - forceColor = 1; - } else if (env.FORCE_COLOR === "false") { - forceColor = 0; - } else { - forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); - } - } - function translateLevel(level) { - if (level === 0) { - return false; - } - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; - } - function supportsColor(haveStream, streamIsTTY) { - if (forceColor === 0) { - return 0; - } - if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) { - return 3; - } - if (hasFlag("color=256")) { - return 2; - } - if (haveStream && !streamIsTTY && forceColor === void 0) { - return 0; - } - const min = forceColor || 0; - if (env.TERM === "dumb") { - return min; - } - if (process.platform === "win32") { - const osRelease = os.release().split("."); - if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - return 1; - } - if ("CI" in env) { - if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") { - return 1; - } - return min; - } - if ("TEAMCITY_VERSION" in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - if (env.COLORTERM === "truecolor") { - return 3; - } - if ("TERM_PROGRAM" in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10); - switch (env.TERM_PROGRAM) { - case "iTerm.app": - return version >= 3 ? 3 : 2; - case "Apple_Terminal": - return 2; - } - } - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - if ("COLORTERM" in env) { - return 1; - } - return min; - } - function getSupportLevel(stream) { - const level = supportsColor(stream, stream && stream.isTTY); - return translateLevel(level); - } - module2.exports = { - supportsColor: getSupportLevel, - stdout: translateLevel(supportsColor(true, tty.isatty(1))), - stderr: translateLevel(supportsColor(true, tty.isatty(2))) - }; - } -}); -var require_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js"(exports, module2) { - "use strict"; - var supportsColor = require_supports_color(); - var hasFlag = require_has_flag(); - function parseVersion(versionString) { - if (/^\d{3,4}$/.test(versionString)) { - const m = /(\d{1,2})(\d{2})/.exec(versionString); - return { - major: 0, - minor: parseInt(m[1], 10), - patch: parseInt(m[2], 10) - }; - } - const versions = (versionString || "").split(".").map((n) => parseInt(n, 10)); - return { - major: versions[0], - minor: versions[1], - patch: versions[2] - }; - } - function supportsHyperlink(stream) { - const { env } = process; - if ("FORCE_HYPERLINK" in env) { - return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0); - } - if (hasFlag("no-hyperlink") || hasFlag("no-hyperlinks") || hasFlag("hyperlink=false") || hasFlag("hyperlink=never")) { - return false; - } - if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always")) { - return true; - } - if ("NETLIFY" in env) { - return true; - } - if (!supportsColor.supportsColor(stream)) { - return false; - } - if (stream && !stream.isTTY) { - return false; - } - if (process.platform === "win32") { - return false; - } - if ("CI" in env) { - return false; - } - if ("TEAMCITY_VERSION" in env) { - return false; - } - if ("TERM_PROGRAM" in env) { - const version = parseVersion(env.TERM_PROGRAM_VERSION); - switch (env.TERM_PROGRAM) { - case "iTerm.app": - if (version.major === 3) { - return version.minor >= 1; - } - return version.major > 3; - case "WezTerm": - return version.major >= 20200620; - case "vscode": - return version.major > 1 || version.major === 1 && version.minor >= 72; - } - } - if ("VTE_VERSION" in env) { - if (env.VTE_VERSION === "0.50.0") { - return false; - } - const version = parseVersion(env.VTE_VERSION); - return version.major > 0 || version.minor >= 50; - } - return false; - } - module2.exports = { - supportsHyperlink, - stdout: supportsHyperlink(process.stdout), - stderr: supportsHyperlink(process.stderr) - }; - } -}); -var require_terminal_link = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/terminal-link@2.1.1/node_modules/terminal-link/index.js"(exports, module2) { - "use strict"; - var ansiEscapes = require_ansi_escapes(); - var supportsHyperlinks = require_supports_hyperlinks(); - var terminalLink2 = (text, url, { target = "stdout", ...options } = {}) => { - if (!supportsHyperlinks[target]) { - if (options.fallback === false) { - return text; - } - return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`; - } - return ansiEscapes.link(text, url); - }; - module2.exports = (text, url, options = {}) => terminalLink2(text, url, options); - module2.exports.stderr = (text, url, options = {}) => terminalLink2(text, url, { target: "stderr", ...options }); - module2.exports.isSupported = supportsHyperlinks.stdout; - module2.exports.stderr.isSupported = supportsHyperlinks.stderr; - } -}); -var import_terminal_link = (0, import_chunk_2ESYSVXG.__toESM)(require_terminal_link()); -function link(url) { - return (0, import_terminal_link.default)(url, url, { - fallback: import_chunk_YVXCXD3A.underline - }); -} diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js deleted file mode 100644 index 285df3a..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_FWMN4WME_exports = {}; -__export(chunk_FWMN4WME_exports, { - log: () => log, - should: () => should, - tags: () => tags, - warn: () => warn -}); -module.exports = __toCommonJS(chunk_FWMN4WME_exports); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var tags = { - warn: (0, import_chunk_YVXCXD3A.yellow)("prisma:warn") -}; -var should = { - warn: () => !process.env.PRISMA_DISABLE_WARNINGS -}; -function log(...data) { - console.log(...data); -} -function warn(message, ...optionalParams) { - if (should.warn()) { - console.warn(`${tags.warn} ${message}`, ...optionalParams); - } -} diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js deleted file mode 100644 index d26050f..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +++ /dev/null @@ -1,14956 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_M5NKJZ76_exports = {}; -__export(chunk_M5NKJZ76_exports, { - jestConsoleContext: () => jestConsoleContext, - jestContext: () => jestContext, - jestProcessContext: () => jestProcessContext -}); -module.exports = __toCommonJS(chunk_M5NKJZ76_exports); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -var import_path = __toESM(require("path")); -var require_windows = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - function checkPathExt(path2, options) { - var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT; - if (!pathext) { - return true; - } - pathext = pathext.split(";"); - if (pathext.indexOf("") !== -1) { - return true; - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase(); - if (p && path2.substr(-p.length).toLowerCase() === p) { - return true; - } - } - return false; - } - function checkStat(stat, path2, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false; - } - return checkPathExt(path2, options); - } - function isexe(path2, options, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, path2, options)); - }); - } - function sync(path2, options) { - return checkStat(fs2.statSync(path2), path2, options); - } - } -}); -var require_mode = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) { - "use strict"; - module2.exports = isexe; - isexe.sync = sync; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - function isexe(path2, options, cb) { - fs2.stat(path2, function(er, stat) { - cb(er, er ? false : checkStat(stat, options)); - }); - } - function sync(path2, options) { - return checkStat(fs2.statSync(path2), options); - } - function checkStat(stat, options) { - return stat.isFile() && checkMode(stat, options); - } - function checkMode(stat, options) { - var mod = stat.mode; - var uid = stat.uid; - var gid = stat.gid; - var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid(); - var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid(); - var u = parseInt("100", 8); - var g = parseInt("010", 8); - var o = parseInt("001", 8); - var ug = u | g; - var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0; - return ret; - } - } -}); -var require_isexe = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var core; - if (process.platform === "win32" || global.TESTING_WINDOWS) { - core = require_windows(); - } else { - core = require_mode(); - } - module2.exports = isexe; - isexe.sync = sync; - function isexe(path2, options, cb) { - if (typeof options === "function") { - cb = options; - options = {}; - } - if (!cb) { - if (typeof Promise !== "function") { - throw new TypeError("callback not provided"); - } - return new Promise(function(resolve, reject) { - isexe(path2, options || {}, function(er, is) { - if (er) { - reject(er); - } else { - resolve(is); - } - }); - }); - } - core(path2, options || {}, function(er, is) { - if (er) { - if (er.code === "EACCES" || options && options.ignoreErrors) { - er = null; - is = false; - } - } - cb(er, is); - }); - } - function sync(path2, options) { - try { - return core.sync(path2, options || {}); - } catch (er) { - if (options && options.ignoreErrors || er.code === "EACCES") { - return false; - } else { - throw er; - } - } - } - } -}); -var require_which = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) { - "use strict"; - var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var COLON = isWindows ? ";" : ":"; - var isexe = require_isexe(); - var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); - var getPathInfo = (cmd, opt) => { - const colon = opt.colon || COLON; - const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [ - // windows always checks the cwd first - ...isWindows ? [process.cwd()] : [], - ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ - "").split(colon) - ]; - const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = isWindows ? pathExtExe.split(colon) : [""]; - if (isWindows) { - if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") - pathExt.unshift(""); - } - return { - pathEnv, - pathExt, - pathExtExe - }; - }; - var which = (cmd, opt, cb) => { - if (typeof opt === "function") { - cb = opt; - opt = {}; - } - if (!opt) - opt = {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - const step = (i) => new Promise((resolve, reject) => { - if (i === pathEnv.length) - return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd)); - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - resolve(subStep(p, i, 0)); - }); - const subStep = (p, i, ii) => new Promise((resolve, reject) => { - if (ii === pathExt.length) - return resolve(step(i + 1)); - const ext = pathExt[ii]; - isexe(p + ext, { pathExt: pathExtExe }, (er, is) => { - if (!er && is) { - if (opt.all) - found.push(p + ext); - else - return resolve(p + ext); - } - return resolve(subStep(p, i, ii + 1)); - }); - }); - return cb ? step(0).then((res) => cb(null, res), cb) : step(0); - }; - var whichSync = (cmd, opt) => { - opt = opt || {}; - const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt); - const found = []; - for (let i = 0; i < pathEnv.length; i++) { - const ppRaw = pathEnv[i]; - const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; - const pCmd = path2.join(pathPart, cmd); - const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd; - for (let j = 0; j < pathExt.length; j++) { - const cur = p + pathExt[j]; - try { - const is = isexe.sync(cur, { pathExt: pathExtExe }); - if (is) { - if (opt.all) - found.push(cur); - else - return cur; - } - } catch (ex) { - } - } - } - if (opt.all && found.length) - return found; - if (opt.nothrow) - return null; - throw getNotFoundError(cmd); - }; - module2.exports = which; - which.sync = whichSync; - } -}); -var require_path_key = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module2) { - "use strict"; - var pathKey = (options = {}) => { - const environment = options.env || process.env; - const platform = options.platform || process.platform; - if (platform !== "win32") { - return "PATH"; - } - return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path"; - }; - module2.exports = pathKey; - module2.exports.default = pathKey; - } -}); -var require_resolveCommand = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var which = require_which(); - var getPathKey = require_path_key(); - function resolveCommandAttempt(parsed, withoutPathExt) { - const env = parsed.options.env || process.env; - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled; - if (shouldSwitchCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - } - } - let resolved; - try { - resolved = which.sync(parsed.command, { - path: env[getPathKey({ env })], - pathExt: withoutPathExt ? path2.delimiter : void 0 - }); - } catch (e) { - } finally { - if (shouldSwitchCwd) { - process.chdir(cwd); - } - } - if (resolved) { - resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); - } - return resolved; - } - function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); - } - module2.exports = resolveCommand; - } -}); -var require_escape = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) { - "use strict"; - var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - function escapeCommand(arg) { - arg = arg.replace(metaCharsRegExp, "^$1"); - return arg; - } - function escapeArgument(arg, doubleEscapeMetaChars) { - arg = `${arg}`; - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - arg = arg.replace(/(\\*)$/, "$1$1"); - arg = `"${arg}"`; - arg = arg.replace(metaCharsRegExp, "^$1"); - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, "^$1"); - } - return arg; - } - module2.exports.command = escapeCommand; - module2.exports.argument = escapeArgument; - } -}); -var require_shebang_regex = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module2) { - "use strict"; - module2.exports = /^#!(.*)/; - } -}); -var require_shebang_command = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module2) { - "use strict"; - var shebangRegex = require_shebang_regex(); - module2.exports = (string = "") => { - const match = string.match(shebangRegex); - if (!match) { - return null; - } - const [path2, argument] = match[0].replace(/#! ?/, "").split(" "); - const binary = path2.split("/").pop(); - if (binary === "env") { - return argument; - } - return argument ? `${binary} ${argument}` : binary; - }; - } -}); -var require_readShebang = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var shebangCommand = require_shebang_command(); - function readShebang(command) { - const size = 150; - const buffer = Buffer.alloc(size); - let fd; - try { - fd = fs2.openSync(command, "r"); - fs2.readSync(fd, buffer, 0, size, 0); - fs2.closeSync(fd); - } catch (e) { - } - return shebangCommand(buffer.toString()); - } - module2.exports = readShebang; - } -}); -var require_parse = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var resolveCommand = require_resolveCommand(); - var escape = require_escape(); - var readShebang = require_readShebang(); - var isWin = process.platform === "win32"; - var isExecutableRegExp = /\.(?:com|exe)$/i; - var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file); - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - return resolveCommand(parsed); - } - return parsed.file; - } - function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - const commandFile = detectShebang(parsed); - const needsShell = !isExecutableRegExp.test(commandFile); - if (parsed.options.forceShell || needsShell) { - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - parsed.command = path2.normalize(parsed.command); - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - const shellCommand = [parsed.command].concat(parsed.args).join(" "); - parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`]; - parsed.command = process.env.comspec || "cmd.exe"; - parsed.options.windowsVerbatimArguments = true; - } - return parsed; - } - function parse(command, args, options) { - if (args && !Array.isArray(args)) { - options = args; - args = null; - } - args = args ? args.slice(0) : []; - options = Object.assign({}, options); - const parsed = { - command, - args, - options, - file: void 0, - original: { - command, - args - } - }; - return options.shell ? parsed : parseNonShell(parsed); - } - module2.exports = parse; - } -}); -var require_enoent = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) { - "use strict"; - var isWin = process.platform === "win32"; - function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: "ENOENT", - errno: "ENOENT", - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args - }); - } - function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - const originalEmit = cp.emit; - cp.emit = function(name, arg1) { - if (name === "exit") { - const err = verifyENOENT(arg1, parsed, "spawn"); - if (err) { - return originalEmit.call(cp, "error", err); - } - } - return originalEmit.apply(cp, arguments); - }; - } - function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawn"); - } - return null; - } - function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, "spawnSync"); - } - return null; - } - module2.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError - }; - } -}); -var require_cross_spawn = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) { - "use strict"; - var cp = (0, import_chunk_2ESYSVXG.__require)("child_process"); - var parse = require_parse(); - var enoent = require_enoent(); - function spawn(command, args, options) { - const parsed = parse(command, args, options); - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - enoent.hookChildProcess(spawned, parsed); - return spawned; - } - function spawnSync(command, args, options) { - const parsed = parse(command, args, options); - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - return result; - } - module2.exports = spawn; - module2.exports.spawn = spawn; - module2.exports.sync = spawnSync; - module2.exports._parse = parse; - module2.exports._enoent = enoent; - } -}); -var require_strip_final_newline = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports, module2) { - "use strict"; - module2.exports = (input) => { - const LF = typeof input === "string" ? "\n" : "\n".charCodeAt(); - const CR = typeof input === "string" ? "\r" : "\r".charCodeAt(); - if (input[input.length - 1] === LF) { - input = input.slice(0, input.length - 1); - } - if (input[input.length - 1] === CR) { - input = input.slice(0, input.length - 1); - } - return input; - }; - } -}); -var require_npm_run_path = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var pathKey = require_path_key(); - var npmRunPath = (options) => { - options = { - cwd: process.cwd(), - path: process.env[pathKey()], - execPath: process.execPath, - ...options - }; - let previous; - let cwdPath = path2.resolve(options.cwd); - const result = []; - while (previous !== cwdPath) { - result.push(path2.join(cwdPath, "node_modules/.bin")); - previous = cwdPath; - cwdPath = path2.resolve(cwdPath, ".."); - } - const execPathDir = path2.resolve(options.cwd, options.execPath, ".."); - result.push(execPathDir); - return result.concat(options.path).join(path2.delimiter); - }; - module2.exports = npmRunPath; - module2.exports.default = npmRunPath; - module2.exports.env = (options) => { - options = { - env: process.env, - ...options - }; - const env = { ...options.env }; - const path3 = pathKey({ env }); - options.path = env[path3]; - env[path3] = module2.exports(options); - return env; - }; - } -}); -var require_mimic_fn = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) { - "use strict"; - var mimicFn = (to, from) => { - for (const prop of Reflect.ownKeys(from)) { - Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop)); - } - return to; - }; - module2.exports = mimicFn; - module2.exports.default = mimicFn; - } -}); -var require_onetime = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) { - "use strict"; - var mimicFn = require_mimic_fn(); - var calledFunctions = /* @__PURE__ */ new WeakMap(); - var onetime = (function_, options = {}) => { - if (typeof function_ !== "function") { - throw new TypeError("Expected a function"); - } - let returnValue; - let callCount = 0; - const functionName = function_.displayName || function_.name || ""; - const onetime2 = function(...arguments_) { - calledFunctions.set(onetime2, ++callCount); - if (callCount === 1) { - returnValue = function_.apply(this, arguments_); - function_ = null; - } else if (options.throw === true) { - throw new Error(`Function \`${functionName}\` can only be called once`); - } - return returnValue; - }; - mimicFn(onetime2, function_); - calledFunctions.set(onetime2, callCount); - return onetime2; - }; - module2.exports = onetime; - module2.exports.default = onetime; - module2.exports.callCount = (function_) => { - if (!calledFunctions.has(function_)) { - throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`); - } - return calledFunctions.get(function_); - }; - } -}); -var require_core = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGNALS = void 0; - var SIGNALS = [ - { - name: "SIGHUP", - number: 1, - action: "terminate", - description: "Terminal closed", - standard: "posix" - }, - { - name: "SIGINT", - number: 2, - action: "terminate", - description: "User interruption with CTRL-C", - standard: "ansi" - }, - { - name: "SIGQUIT", - number: 3, - action: "core", - description: "User interruption with CTRL-\\", - standard: "posix" - }, - { - name: "SIGILL", - number: 4, - action: "core", - description: "Invalid machine instruction", - standard: "ansi" - }, - { - name: "SIGTRAP", - number: 5, - action: "core", - description: "Debugger breakpoint", - standard: "posix" - }, - { - name: "SIGABRT", - number: 6, - action: "core", - description: "Aborted", - standard: "ansi" - }, - { - name: "SIGIOT", - number: 6, - action: "core", - description: "Aborted", - standard: "bsd" - }, - { - name: "SIGBUS", - number: 7, - action: "core", - description: "Bus error due to misaligned, non-existing address or paging error", - standard: "bsd" - }, - { - name: "SIGEMT", - number: 7, - action: "terminate", - description: "Command should be emulated but is not implemented", - standard: "other" - }, - { - name: "SIGFPE", - number: 8, - action: "core", - description: "Floating point arithmetic error", - standard: "ansi" - }, - { - name: "SIGKILL", - number: 9, - action: "terminate", - description: "Forced termination", - standard: "posix", - forced: true - }, - { - name: "SIGUSR1", - number: 10, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGSEGV", - number: 11, - action: "core", - description: "Segmentation fault", - standard: "ansi" - }, - { - name: "SIGUSR2", - number: 12, - action: "terminate", - description: "Application-specific signal", - standard: "posix" - }, - { - name: "SIGPIPE", - number: 13, - action: "terminate", - description: "Broken pipe or socket", - standard: "posix" - }, - { - name: "SIGALRM", - number: 14, - action: "terminate", - description: "Timeout or timer", - standard: "posix" - }, - { - name: "SIGTERM", - number: 15, - action: "terminate", - description: "Termination", - standard: "ansi" - }, - { - name: "SIGSTKFLT", - number: 16, - action: "terminate", - description: "Stack is empty or overflowed", - standard: "other" - }, - { - name: "SIGCHLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "posix" - }, - { - name: "SIGCLD", - number: 17, - action: "ignore", - description: "Child process terminated, paused or unpaused", - standard: "other" - }, - { - name: "SIGCONT", - number: 18, - action: "unpause", - description: "Unpaused", - standard: "posix", - forced: true - }, - { - name: "SIGSTOP", - number: 19, - action: "pause", - description: "Paused", - standard: "posix", - forced: true - }, - { - name: "SIGTSTP", - number: 20, - action: "pause", - description: 'Paused using CTRL-Z or "suspend"', - standard: "posix" - }, - { - name: "SIGTTIN", - number: 21, - action: "pause", - description: "Background process cannot read terminal input", - standard: "posix" - }, - { - name: "SIGBREAK", - number: 21, - action: "terminate", - description: "User interruption with CTRL-BREAK", - standard: "other" - }, - { - name: "SIGTTOU", - number: 22, - action: "pause", - description: "Background process cannot write to terminal output", - standard: "posix" - }, - { - name: "SIGURG", - number: 23, - action: "ignore", - description: "Socket received out-of-band data", - standard: "bsd" - }, - { - name: "SIGXCPU", - number: 24, - action: "core", - description: "Process timed out", - standard: "bsd" - }, - { - name: "SIGXFSZ", - number: 25, - action: "core", - description: "File too big", - standard: "bsd" - }, - { - name: "SIGVTALRM", - number: 26, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGPROF", - number: 27, - action: "terminate", - description: "Timeout or timer", - standard: "bsd" - }, - { - name: "SIGWINCH", - number: 28, - action: "ignore", - description: "Terminal window size changed", - standard: "bsd" - }, - { - name: "SIGIO", - number: 29, - action: "terminate", - description: "I/O is available", - standard: "other" - }, - { - name: "SIGPOLL", - number: 29, - action: "terminate", - description: "Watched event", - standard: "other" - }, - { - name: "SIGINFO", - number: 29, - action: "ignore", - description: "Request for process information", - standard: "other" - }, - { - name: "SIGPWR", - number: 30, - action: "terminate", - description: "Device running out of power", - standard: "systemv" - }, - { - name: "SIGSYS", - number: 31, - action: "core", - description: "Invalid system call", - standard: "other" - }, - { - name: "SIGUNUSED", - number: 31, - action: "terminate", - description: "Invalid system call", - standard: "other" - } - ]; - exports.SIGNALS = SIGNALS; - } -}); -var require_realtime = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SIGRTMAX = exports.getRealtimeSignals = void 0; - var getRealtimeSignals = function() { - const length = SIGRTMAX - SIGRTMIN + 1; - return Array.from({ length }, getRealtimeSignal); - }; - exports.getRealtimeSignals = getRealtimeSignals; - var getRealtimeSignal = function(value, index) { - return { - name: `SIGRT${index + 1}`, - number: SIGRTMIN + index, - action: "terminate", - description: "Application-specific signal (realtime)", - standard: "posix" - }; - }; - var SIGRTMIN = 34; - var SIGRTMAX = 64; - exports.SIGRTMAX = SIGRTMAX; - } -}); -var require_signals = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSignals = void 0; - var _os = (0, import_chunk_2ESYSVXG.__require)("os"); - var _core = require_core(); - var _realtime = require_realtime(); - var getSignals = function() { - const realtimeSignals = (0, _realtime.getRealtimeSignals)(); - const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal); - return signals; - }; - exports.getSignals = getSignals; - var normalizeSignal = function({ - name, - number: defaultNumber, - description, - action, - forced = false, - standard - }) { - const { - signals: { [name]: constantSignal } - } = _os.constants; - const supported = constantSignal !== void 0; - const number = supported ? constantSignal : defaultNumber; - return { name, number, description, supported, action, forced, standard }; - }; - } -}); -var require_main = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.signalsByNumber = exports.signalsByName = void 0; - var _os = (0, import_chunk_2ESYSVXG.__require)("os"); - var _signals = require_signals(); - var _realtime = require_realtime(); - var getSignalsByName = function() { - const signals = (0, _signals.getSignals)(); - return signals.reduce(getSignalByName, {}); - }; - var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) { - return { - ...signalByNameMemo, - [name]: { name, number, description, supported, action, forced, standard } - }; - }; - var signalsByName = getSignalsByName(); - exports.signalsByName = signalsByName; - var getSignalsByNumber = function() { - const signals = (0, _signals.getSignals)(); - const length = _realtime.SIGRTMAX + 1; - const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals)); - return Object.assign({}, ...signalsA); - }; - var getSignalByNumber = function(number, signals) { - const signal = findSignalByNumber(number, signals); - if (signal === void 0) { - return {}; - } - const { name, description, supported, action, forced, standard } = signal; - return { - [number]: { - name, - number, - description, - supported, - action, - forced, - standard - } - }; - }; - var findSignalByNumber = function(number, signals) { - const signal = signals.find(({ name }) => _os.constants.signals[name] === number); - if (signal !== void 0) { - return signal; - } - return signals.find((signalA) => signalA.number === number); - }; - var signalsByNumber = getSignalsByNumber(); - exports.signalsByNumber = signalsByNumber; - } -}); -var require_error = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports, module2) { - "use strict"; - var { signalsByName } = require_main(); - var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => { - if (timedOut) { - return `timed out after ${timeout} milliseconds`; - } - if (isCanceled) { - return "was canceled"; - } - if (errorCode !== void 0) { - return `failed with ${errorCode}`; - } - if (signal !== void 0) { - return `was killed with ${signal} (${signalDescription})`; - } - if (exitCode !== void 0) { - return `failed with exit code ${exitCode}`; - } - return "failed"; - }; - var makeError = ({ - stdout, - stderr, - all, - error, - signal, - exitCode, - command, - escapedCommand, - timedOut, - isCanceled, - killed, - parsed: { options: { timeout } } - }) => { - exitCode = exitCode === null ? void 0 : exitCode; - signal = signal === null ? void 0 : signal; - const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description; - const errorCode = error && error.code; - const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }); - const execaMessage = `Command ${prefix}: ${command}`; - const isError = Object.prototype.toString.call(error) === "[object Error]"; - const shortMessage = isError ? `${execaMessage} -${error.message}` : execaMessage; - const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n"); - if (isError) { - error.originalMessage = error.message; - error.message = message; - } else { - error = new Error(message); - } - error.shortMessage = shortMessage; - error.command = command; - error.escapedCommand = escapedCommand; - error.exitCode = exitCode; - error.signal = signal; - error.signalDescription = signalDescription; - error.stdout = stdout; - error.stderr = stderr; - if (all !== void 0) { - error.all = all; - } - if ("bufferedData" in error) { - delete error.bufferedData; - } - error.failed = true; - error.timedOut = Boolean(timedOut); - error.isCanceled = isCanceled; - error.killed = killed && !timedOut; - return error; - }; - module2.exports = makeError; - } -}); -var require_stdio = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports, module2) { - "use strict"; - var aliases = ["stdin", "stdout", "stderr"]; - var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0); - var normalizeStdio = (options) => { - if (!options) { - return; - } - const { stdio } = options; - if (stdio === void 0) { - return aliases.map((alias) => options[alias]); - } - if (hasAlias(options)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`); - } - if (typeof stdio === "string") { - return stdio; - } - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - const length = Math.max(stdio.length, aliases.length); - return Array.from({ length }, (value, index) => stdio[index]); - }; - module2.exports = normalizeStdio; - module2.exports.node = (options) => { - const stdio = normalizeStdio(options); - if (stdio === "ipc") { - return "ipc"; - } - if (stdio === void 0 || typeof stdio === "string") { - return [stdio, stdio, stdio, "ipc"]; - } - if (stdio.includes("ipc")) { - return stdio; - } - return [...stdio, "ipc"]; - }; - } -}); -var require_signals2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) { - "use strict"; - module2.exports = [ - "SIGABRT", - "SIGALRM", - "SIGHUP", - "SIGINT", - "SIGTERM" - ]; - if (process.platform !== "win32") { - module2.exports.push( - "SIGVTALRM", - "SIGXCPU", - "SIGXFSZ", - "SIGUSR2", - "SIGTRAP", - "SIGSYS", - "SIGQUIT", - "SIGIOT" - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ); - } - if (process.platform === "linux") { - module2.exports.push( - "SIGIO", - "SIGPOLL", - "SIGPWR", - "SIGSTKFLT", - "SIGUNUSED" - ); - } - } -}); -var require_signal_exit = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) { - "use strict"; - var process2 = global.process; - var processOk = function(process3) { - return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function"; - }; - if (!processOk(process2)) { - module2.exports = function() { - return function() { - }; - }; - } else { - assert = (0, import_chunk_2ESYSVXG.__require)("assert"); - signals = require_signals2(); - isWin = /^win/i.test(process2.platform); - EE = (0, import_chunk_2ESYSVXG.__require)("events"); - if (typeof EE !== "function") { - EE = EE.EventEmitter; - } - if (process2.__signal_exit_emitter__) { - emitter = process2.__signal_exit_emitter__; - } else { - emitter = process2.__signal_exit_emitter__ = new EE(); - emitter.count = 0; - emitter.emitted = {}; - } - if (!emitter.infinite) { - emitter.setMaxListeners(Infinity); - emitter.infinite = true; - } - module2.exports = function(cb, opts) { - if (!processOk(global.process)) { - return function() { - }; - } - assert.equal(typeof cb, "function", "a callback must be provided for exit handler"); - if (loaded === false) { - load(); - } - var ev = "exit"; - if (opts && opts.alwaysLast) { - ev = "afterexit"; - } - var remove = function() { - emitter.removeListener(ev, cb); - if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) { - unload(); - } - }; - emitter.on(ev, cb); - return remove; - }; - unload = function unload2() { - if (!loaded || !processOk(global.process)) { - return; - } - loaded = false; - signals.forEach(function(sig) { - try { - process2.removeListener(sig, sigListeners[sig]); - } catch (er) { - } - }); - process2.emit = originalProcessEmit; - process2.reallyExit = originalProcessReallyExit; - emitter.count -= 1; - }; - module2.exports.unload = unload; - emit = function emit2(event, code, signal) { - if (emitter.emitted[event]) { - return; - } - emitter.emitted[event] = true; - emitter.emit(event, code, signal); - }; - sigListeners = {}; - signals.forEach(function(sig) { - sigListeners[sig] = function listener() { - if (!processOk(global.process)) { - return; - } - var listeners = process2.listeners(sig); - if (listeners.length === emitter.count) { - unload(); - emit("exit", null, sig); - emit("afterexit", null, sig); - if (isWin && sig === "SIGHUP") { - sig = "SIGINT"; - } - process2.kill(process2.pid, sig); - } - }; - }); - module2.exports.signals = function() { - return signals; - }; - loaded = false; - load = function load2() { - if (loaded || !processOk(global.process)) { - return; - } - loaded = true; - emitter.count += 1; - signals = signals.filter(function(sig) { - try { - process2.on(sig, sigListeners[sig]); - return true; - } catch (er) { - return false; - } - }); - process2.emit = processEmit; - process2.reallyExit = processReallyExit; - }; - module2.exports.load = load; - originalProcessReallyExit = process2.reallyExit; - processReallyExit = function processReallyExit2(code) { - if (!processOk(global.process)) { - return; - } - process2.exitCode = code || /* istanbul ignore next */ - 0; - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - originalProcessReallyExit.call(process2, process2.exitCode); - }; - originalProcessEmit = process2.emit; - processEmit = function processEmit2(ev, arg) { - if (ev === "exit" && processOk(global.process)) { - if (arg !== void 0) { - process2.exitCode = arg; - } - var ret = originalProcessEmit.apply(this, arguments); - emit("exit", process2.exitCode, null); - emit("afterexit", process2.exitCode, null); - return ret; - } else { - return originalProcessEmit.apply(this, arguments); - } - }; - } - var assert; - var signals; - var isWin; - var EE; - var emitter; - var unload; - var emit; - var sigListeners; - var loaded; - var load; - var originalProcessReallyExit; - var processReallyExit; - var originalProcessEmit; - var processEmit; - } -}); -var require_kill = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) { - "use strict"; - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var onExit = require_signal_exit(); - var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5; - var spawnedKill = (kill, signal = "SIGTERM", options = {}) => { - const killResult = kill(signal); - setKillTimeout(kill, signal, options, killResult); - return killResult; - }; - var setKillTimeout = (kill, signal, options, killResult) => { - if (!shouldForceKill(signal, options, killResult)) { - return; - } - const timeout = getForceKillAfterTimeout(options); - const t = setTimeout(() => { - kill("SIGKILL"); - }, timeout); - if (t.unref) { - t.unref(); - } - }; - var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => { - return isSigterm(signal) && forceKillAfterTimeout !== false && killResult; - }; - var isSigterm = (signal) => { - return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM"; - }; - var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => { - if (forceKillAfterTimeout === true) { - return DEFAULT_FORCE_KILL_TIMEOUT; - } - if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) { - throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`); - } - return forceKillAfterTimeout; - }; - var spawnedCancel = (spawned, context) => { - const killResult = spawned.kill(); - if (killResult) { - context.isCanceled = true; - } - }; - var timeoutKill = (spawned, signal, reject) => { - spawned.kill(signal); - reject(Object.assign(new Error("Timed out"), { timedOut: true, signal })); - }; - var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => { - if (timeout === 0 || timeout === void 0) { - return spawnedPromise; - } - let timeoutId; - const timeoutPromise = new Promise((resolve, reject) => { - timeoutId = setTimeout(() => { - timeoutKill(spawned, killSignal, reject); - }, timeout); - }); - const safeSpawnedPromise = spawnedPromise.finally(() => { - clearTimeout(timeoutId); - }); - return Promise.race([timeoutPromise, safeSpawnedPromise]); - }; - var validateTimeout = ({ timeout }) => { - if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) { - throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`); - } - }; - var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => { - if (!cleanup || detached) { - return timedPromise; - } - const removeExitHandler = onExit(() => { - spawned.kill(); - }); - return timedPromise.finally(() => { - removeExitHandler(); - }); - }; - module2.exports = { - spawnedKill, - spawnedCancel, - setupTimeout, - validateTimeout, - setExitHandler - }; - } -}); -var require_is_stream = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module2) { - "use strict"; - var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function"; - isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object"; - isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object"; - isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream); - isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function"; - module2.exports = isStream; - } -}); -var require_buffer_stream = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module2) { - "use strict"; - var { PassThrough: PassThroughStream } = (0, import_chunk_2ESYSVXG.__require)("stream"); - module2.exports = (options) => { - options = { ...options }; - const { array } = options; - let { encoding } = options; - const isBuffer = encoding === "buffer"; - let objectMode = false; - if (array) { - objectMode = !(encoding || isBuffer); - } else { - encoding = encoding || "utf8"; - } - if (isBuffer) { - encoding = null; - } - const stream = new PassThroughStream({ objectMode }); - if (encoding) { - stream.setEncoding(encoding); - } - let length = 0; - const chunks = []; - stream.on("data", (chunk) => { - chunks.push(chunk); - if (objectMode) { - length = chunks.length; - } else { - length += chunk.length; - } - }); - stream.getBufferedValue = () => { - if (array) { - return chunks; - } - return isBuffer ? Buffer.concat(chunks, length) : chunks.join(""); - }; - stream.getBufferedLength = () => length; - return stream; - }; - } -}); -var require_get_stream = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports, module2) { - "use strict"; - var { constants: BufferConstants } = (0, import_chunk_2ESYSVXG.__require)("buffer"); - var stream = (0, import_chunk_2ESYSVXG.__require)("stream"); - var { promisify } = (0, import_chunk_2ESYSVXG.__require)("util"); - var bufferStream = require_buffer_stream(); - var streamPipelinePromisified = promisify(stream.pipeline); - var MaxBufferError = class extends Error { - constructor() { - super("maxBuffer exceeded"); - this.name = "MaxBufferError"; - } - }; - async function getStream(inputStream, options) { - if (!inputStream) { - throw new Error("Expected a stream"); - } - options = { - maxBuffer: Infinity, - ...options - }; - const { maxBuffer } = options; - const stream2 = bufferStream(options); - await new Promise((resolve, reject) => { - const rejectPromise = (error) => { - if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) { - error.bufferedData = stream2.getBufferedValue(); - } - reject(error); - }; - (async () => { - try { - await streamPipelinePromisified(inputStream, stream2); - resolve(); - } catch (error) { - rejectPromise(error); - } - })(); - stream2.on("data", () => { - if (stream2.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }); - return stream2.getBufferedValue(); - } - module2.exports = getStream; - module2.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" }); - module2.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true }); - module2.exports.MaxBufferError = MaxBufferError; - } -}); -var require_merge_stream = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module2) { - "use strict"; - var { PassThrough } = (0, import_chunk_2ESYSVXG.__require)("stream"); - module2.exports = function() { - var sources = []; - var output = new PassThrough({ objectMode: true }); - output.setMaxListeners(0); - output.add = add; - output.isEmpty = isEmpty; - output.on("unpipe", remove); - Array.prototype.slice.call(arguments).forEach(add); - return output; - function add(source) { - if (Array.isArray(source)) { - source.forEach(add); - return this; - } - sources.push(source); - source.once("end", remove.bind(null, source)); - source.once("error", output.emit.bind(output, "error")); - source.pipe(output, { end: false }); - return this; - } - function isEmpty() { - return sources.length == 0; - } - function remove(source) { - sources = sources.filter(function(it) { - return it !== source; - }); - if (!sources.length && output.readable) { - output.end(); - } - } - }; - } -}); -var require_stream = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) { - "use strict"; - var isStream = require_is_stream(); - var getStream = require_get_stream(); - var mergeStream = require_merge_stream(); - var handleInput = (spawned, input) => { - if (input === void 0 || spawned.stdin === void 0) { - return; - } - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } - }; - var makeAllStream = (spawned, { all }) => { - if (!all || !spawned.stdout && !spawned.stderr) { - return; - } - const mixed = mergeStream(); - if (spawned.stdout) { - mixed.add(spawned.stdout); - } - if (spawned.stderr) { - mixed.add(spawned.stderr); - } - return mixed; - }; - var getBufferedData = async (stream, streamPromise) => { - if (!stream) { - return; - } - stream.destroy(); - try { - return await streamPromise; - } catch (error) { - return error.bufferedData; - } - }; - var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => { - if (!stream || !buffer) { - return; - } - if (encoding) { - return getStream(stream, { encoding, maxBuffer }); - } - return getStream.buffer(stream, { maxBuffer }); - }; - var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => { - const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer }); - const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer }); - const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 }); - try { - return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]); - } catch (error) { - return Promise.all([ - { error, signal: error.signal, timedOut: error.timedOut }, - getBufferedData(stdout, stdoutPromise), - getBufferedData(stderr, stderrPromise), - getBufferedData(all, allPromise) - ]); - } - }; - var validateInputSync = ({ input }) => { - if (isStream(input)) { - throw new TypeError("The `input` option cannot be a stream in sync mode"); - } - }; - module2.exports = { - handleInput, - makeAllStream, - getSpawnedResult, - validateInputSync - }; - } -}); -var require_promise = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports, module2) { - "use strict"; - var nativePromisePrototype = (async () => { - })().constructor.prototype; - var descriptors = ["then", "catch", "finally"].map((property) => [ - property, - Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property) - ]); - var mergePromise = (spawned, promise) => { - for (const [property, descriptor] of descriptors) { - const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise); - Reflect.defineProperty(spawned, property, { ...descriptor, value }); - } - return spawned; - }; - var getSpawnedPromise = (spawned) => { - return new Promise((resolve, reject) => { - spawned.on("exit", (exitCode, signal) => { - resolve({ exitCode, signal }); - }); - spawned.on("error", (error) => { - reject(error); - }); - if (spawned.stdin) { - spawned.stdin.on("error", (error) => { - reject(error); - }); - } - }); - }; - module2.exports = { - mergePromise, - getSpawnedPromise - }; - } -}); -var require_command = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports, module2) { - "use strict"; - var normalizeArgs = (file, args = []) => { - if (!Array.isArray(args)) { - return [file]; - } - return [file, ...args]; - }; - var NO_ESCAPE_REGEXP = /^[\w.-]+$/; - var DOUBLE_QUOTES_REGEXP = /"/g; - var escapeArg = (arg) => { - if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) { - return arg; - } - return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`; - }; - var joinCommand = (file, args) => { - return normalizeArgs(file, args).join(" "); - }; - var getEscapedCommand = (file, args) => { - return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" "); - }; - var SPACES_REGEXP = / +/g; - var parseCommand = (command) => { - const tokens = []; - for (const token of command.trim().split(SPACES_REGEXP)) { - const previousToken = tokens[tokens.length - 1]; - if (previousToken && previousToken.endsWith("\\")) { - tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`; - } else { - tokens.push(token); - } - } - return tokens; - }; - module2.exports = { - joinCommand, - getEscapedCommand, - parseCommand - }; - } -}); -var require_execa = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var childProcess = (0, import_chunk_2ESYSVXG.__require)("child_process"); - var crossSpawn = require_cross_spawn(); - var stripFinalNewline = require_strip_final_newline(); - var npmRunPath = require_npm_run_path(); - var onetime = require_onetime(); - var makeError = require_error(); - var normalizeStdio = require_stdio(); - var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill(); - var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream(); - var { mergePromise, getSpawnedPromise } = require_promise(); - var { joinCommand, parseCommand, getEscapedCommand } = require_command(); - var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100; - var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => { - const env = extendEnv ? { ...process.env, ...envOption } : envOption; - if (preferLocal) { - return npmRunPath.env({ env, cwd: localDir, execPath }); - } - return env; - }; - var handleArguments = (file, args, options = {}) => { - const parsed = crossSpawn._parse(file, args, options); - file = parsed.command; - args = parsed.args; - options = parsed.options; - options = { - maxBuffer: DEFAULT_MAX_BUFFER, - buffer: true, - stripFinalNewline: true, - extendEnv: true, - preferLocal: false, - localDir: options.cwd || process.cwd(), - execPath: process.execPath, - encoding: "utf8", - reject: true, - cleanup: true, - all: false, - windowsHide: true, - ...options - }; - options.env = getEnv(options); - options.stdio = normalizeStdio(options); - if (process.platform === "win32" && path2.basename(file, ".exe") === "cmd") { - args.unshift("/q"); - } - return { file, args, options, parsed }; - }; - var handleOutput = (options, value, error) => { - if (typeof value !== "string" && !Buffer.isBuffer(value)) { - return error === void 0 ? void 0 : ""; - } - if (options.stripFinalNewline) { - return stripFinalNewline(value); - } - return value; - }; - var execa2 = (file, args, options) => { - const parsed = handleArguments(file, args, options); - const command = joinCommand(file, args); - const escapedCommand = getEscapedCommand(file, args); - validateTimeout(parsed.options); - let spawned; - try { - spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options); - } catch (error) { - const dummySpawned = new childProcess.ChildProcess(); - const errorPromise = Promise.reject(makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - })); - return mergePromise(dummySpawned, errorPromise); - } - const spawnedPromise = getSpawnedPromise(spawned); - const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise); - const processDone = setExitHandler(spawned, parsed.options, timedPromise); - const context = { isCanceled: false }; - spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned)); - spawned.cancel = spawnedCancel.bind(null, spawned, context); - const handlePromise = async () => { - const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone); - const stdout = handleOutput(parsed.options, stdoutResult); - const stderr = handleOutput(parsed.options, stderrResult); - const all = handleOutput(parsed.options, allResult); - if (error || exitCode !== 0 || signal !== null) { - const returnedError = makeError({ - error, - exitCode, - signal, - stdout, - stderr, - all, - command, - escapedCommand, - parsed, - timedOut, - isCanceled: context.isCanceled, - killed: spawned.killed - }); - if (!parsed.options.reject) { - return returnedError; - } - throw returnedError; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - all, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - const handlePromiseOnce = onetime(handlePromise); - handleInput(spawned, parsed.options.input); - spawned.all = makeAllStream(spawned, parsed.options); - return mergePromise(spawned, handlePromiseOnce); - }; - module2.exports = execa2; - module2.exports.sync = (file, args, options) => { - const parsed = handleArguments(file, args, options); - const command = joinCommand(file, args); - const escapedCommand = getEscapedCommand(file, args); - validateInputSync(parsed.options); - let result; - try { - result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options); - } catch (error) { - throw makeError({ - error, - stdout: "", - stderr: "", - all: "", - command, - escapedCommand, - parsed, - timedOut: false, - isCanceled: false, - killed: false - }); - } - const stdout = handleOutput(parsed.options, result.stdout, result.error); - const stderr = handleOutput(parsed.options, result.stderr, result.error); - if (result.error || result.status !== 0 || result.signal !== null) { - const error = makeError({ - stdout, - stderr, - error: result.error, - signal: result.signal, - exitCode: result.status, - command, - escapedCommand, - parsed, - timedOut: result.error && result.error.code === "ETIMEDOUT", - isCanceled: false, - killed: result.signal !== null - }); - if (!parsed.options.reject) { - return error; - } - throw error; - } - return { - command, - escapedCommand, - exitCode: 0, - stdout, - stderr, - failed: false, - timedOut: false, - isCanceled: false, - killed: false - }; - }; - module2.exports.command = (command, options) => { - const [file, ...args] = parseCommand(command); - return execa2(file, args, options); - }; - module2.exports.commandSync = (command, options) => { - const [file, ...args] = parseCommand(command); - return execa2.sync(file, args, options); - }; - module2.exports.node = (scriptPath, args, options = {}) => { - if (args && !Array.isArray(args) && typeof args === "object") { - options = args; - args = []; - } - const stdio = normalizeStdio.node(options); - const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect")); - const { - nodePath = process.execPath, - nodeOptions = defaultExecArgv - } = options; - return execa2( - nodePath, - [ - ...nodeOptions, - scriptPath, - ...Array.isArray(args) ? args : [] - ], - { - ...options, - stdin: void 0, - stdout: void 0, - stderr: void 0, - stdio, - shell: false - } - ); - }; - } -}); -var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/promisify.js"(exports, module2) { - "use strict"; - module2.exports = (fn) => { - return function() { - const length = arguments.length; - const args = new Array(length); - for (let i = 0; i < length; i += 1) { - args[i] = arguments[i]; - } - return new Promise((resolve, reject) => { - args.push((err, data) => { - if (err) { - reject(err); - } else { - resolve(data); - } - }); - fn.apply(null, args); - }); - }; - }; - } -}); -var require_fs = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/fs.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var promisify = require_promisify(); - var isCallbackMethod = (key) => { - return [ - typeof fs2[key] === "function", - !key.match(/Sync$/), - !key.match(/^[A-Z]/), - !key.match(/^create/), - !key.match(/^(un)?watch/) - ].every(Boolean); - }; - var adaptMethod = (name) => { - const original = fs2[name]; - return promisify(original); - }; - var adaptAllMethods = () => { - const adapted = {}; - Object.keys(fs2).forEach((key) => { - if (isCallbackMethod(key)) { - if (key === "exists") { - adapted.exists = () => { - throw new Error("fs.exists() is deprecated"); - }; - } else { - adapted[key] = adaptMethod(key); - } - } else { - adapted[key] = fs2[key]; - } - }); - return adapted; - }; - module2.exports = adaptAllMethods(); - } -}); -var require_validate = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/validate.js"(exports, module2) { - "use strict"; - var prettyPrintTypes = (types) => { - const addArticle = (str) => { - const vowels = ["a", "e", "i", "o", "u"]; - if (vowels.indexOf(str[0]) !== -1) { - return `an ${str}`; - } - return `a ${str}`; - }; - return types.map(addArticle).join(" or "); - }; - var isArrayOfNotation = (typeDefinition) => { - return /array of /.test(typeDefinition); - }; - var extractTypeFromArrayOfNotation = (typeDefinition) => { - return typeDefinition.split(" of ")[1]; - }; - var isValidTypeDefinition = (typeStr) => { - if (isArrayOfNotation(typeStr)) { - return isValidTypeDefinition(extractTypeFromArrayOfNotation(typeStr)); - } - return [ - "string", - "number", - "boolean", - "array", - "object", - "buffer", - "null", - "undefined", - "function" - ].some((validType) => { - return validType === typeStr; - }); - }; - var detectType = (value) => { - if (value === null) { - return "null"; - } - if (Array.isArray(value)) { - return "array"; - } - if (Buffer.isBuffer(value)) { - return "buffer"; - } - return typeof value; - }; - var onlyUniqueValuesInArrayFilter = (value, index, self) => { - return self.indexOf(value) === index; - }; - var detectTypeDeep = (value) => { - let type = detectType(value); - let typesInArray; - if (type === "array") { - typesInArray = value.map((element) => { - return detectType(element); - }).filter(onlyUniqueValuesInArrayFilter); - type += ` of ${typesInArray.join(", ")}`; - } - return type; - }; - var validateArray = (argumentValue, typeToCheck) => { - const allowedTypeInArray = extractTypeFromArrayOfNotation(typeToCheck); - if (detectType(argumentValue) !== "array") { - return false; - } - return argumentValue.every((element) => { - return detectType(element) === allowedTypeInArray; - }); - }; - var validateArgument = (methodName, argumentName, argumentValue, argumentMustBe) => { - const isOneOfAllowedTypes = argumentMustBe.some((type) => { - if (!isValidTypeDefinition(type)) { - throw new Error(`Unknown type "${type}"`); - } - if (isArrayOfNotation(type)) { - return validateArray(argumentValue, type); - } - return type === detectType(argumentValue); - }); - if (!isOneOfAllowedTypes) { - throw new Error( - `Argument "${argumentName}" passed to ${methodName} must be ${prettyPrintTypes( - argumentMustBe - )}. Received ${detectTypeDeep(argumentValue)}` - ); - } - }; - var validateOptions = (methodName, optionsObjName, obj, allowedOptions) => { - if (obj !== void 0) { - validateArgument(methodName, optionsObjName, obj, ["object"]); - Object.keys(obj).forEach((key) => { - const argName = `${optionsObjName}.${key}`; - if (allowedOptions[key] !== void 0) { - validateArgument(methodName, argName, obj[key], allowedOptions[key]); - } else { - throw new Error( - `Unknown argument "${argName}" passed to ${methodName}` - ); - } - }); - } - }; - module2.exports = { - argument: validateArgument, - options: validateOptions - }; - } -}); -var require_mode2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/mode.js"(exports) { - "use strict"; - exports.normalizeFileMode = (mode) => { - let modeAsString; - if (typeof mode === "number") { - modeAsString = mode.toString(8); - } else { - modeAsString = mode; - } - return modeAsString.substring(modeAsString.length - 3); - }; - } -}); -var require_remove = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/remove.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var validate = require_validate(); - var validateInput = (methodName, path2) => { - const methodSignature = `${methodName}([path])`; - validate.argument(methodSignature, "path", path2, ["string", "undefined"]); - }; - var removeSync = (path2) => { - fs2.rmSync(path2, { - recursive: true, - force: true, - maxRetries: 3 - }); - }; - var removeAsync = (path2) => { - return fs2.rm(path2, { - recursive: true, - force: true, - maxRetries: 3 - }); - }; - exports.validateInput = validateInput; - exports.sync = removeSync; - exports.async = removeAsync; - } -}); -var require_dir = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/dir.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var modeUtil = require_mode2(); - var validate = require_validate(); - var remove = require_remove(); - var validateInput = (methodName, path2, criteria) => { - const methodSignature = `${methodName}(path, [criteria])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.options(methodSignature, "criteria", criteria, { - empty: ["boolean"], - mode: ["string", "number"] - }); - }; - var getCriteriaDefaults = (passedCriteria) => { - const criteria = passedCriteria || {}; - if (typeof criteria.empty !== "boolean") { - criteria.empty = false; - } - if (criteria.mode !== void 0) { - criteria.mode = modeUtil.normalizeFileMode(criteria.mode); - } - return criteria; - }; - var generatePathOccupiedByNotDirectoryError = (path2) => { - return new Error( - `Path ${path2} exists but is not a directory. Halting jetpack.dir() call for safety reasons.` - ); - }; - var checkWhatAlreadyOccupiesPathSync = (path2) => { - let stat; - try { - stat = fs2.statSync(path2); - } catch (err) { - if (err.code !== "ENOENT") { - throw err; - } - } - if (stat && !stat.isDirectory()) { - throw generatePathOccupiedByNotDirectoryError(path2); - } - return stat; - }; - var createBrandNewDirectorySync = (path2, opts) => { - const options = opts || {}; - try { - fs2.mkdirSync(path2, options.mode); - } catch (err) { - if (err.code === "ENOENT") { - createBrandNewDirectorySync(pathUtil.dirname(path2), options); - fs2.mkdirSync(path2, options.mode); - } else if (err.code === "EEXIST") { - } else { - throw err; - } - } - }; - var checkExistingDirectoryFulfillsCriteriaSync = (path2, stat, criteria) => { - const checkMode = () => { - const mode = modeUtil.normalizeFileMode(stat.mode); - if (criteria.mode !== void 0 && criteria.mode !== mode) { - fs2.chmodSync(path2, criteria.mode); - } - }; - const checkEmptiness = () => { - if (criteria.empty) { - const list = fs2.readdirSync(path2); - list.forEach((filename) => { - remove.sync(pathUtil.resolve(path2, filename)); - }); - } - }; - checkMode(); - checkEmptiness(); - }; - var dirSync = (path2, passedCriteria) => { - const criteria = getCriteriaDefaults(passedCriteria); - const stat = checkWhatAlreadyOccupiesPathSync(path2); - if (stat) { - checkExistingDirectoryFulfillsCriteriaSync(path2, stat, criteria); - } else { - createBrandNewDirectorySync(path2, criteria); - } - }; - var checkWhatAlreadyOccupiesPathAsync = (path2) => { - return new Promise((resolve, reject) => { - fs2.stat(path2).then((stat) => { - if (stat.isDirectory()) { - resolve(stat); - } else { - reject(generatePathOccupiedByNotDirectoryError(path2)); - } - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(void 0); - } else { - reject(err); - } - }); - }); - }; - var emptyAsync = (path2) => { - return new Promise((resolve, reject) => { - fs2.readdir(path2).then((list) => { - const doOne = (index) => { - if (index === list.length) { - resolve(); - } else { - const subPath = pathUtil.resolve(path2, list[index]); - remove.async(subPath).then(() => { - doOne(index + 1); - }); - } - }; - doOne(0); - }).catch(reject); - }); - }; - var checkExistingDirectoryFulfillsCriteriaAsync = (path2, stat, criteria) => { - return new Promise((resolve, reject) => { - const checkMode = () => { - const mode = modeUtil.normalizeFileMode(stat.mode); - if (criteria.mode !== void 0 && criteria.mode !== mode) { - return fs2.chmod(path2, criteria.mode); - } - return Promise.resolve(); - }; - const checkEmptiness = () => { - if (criteria.empty) { - return emptyAsync(path2); - } - return Promise.resolve(); - }; - checkMode().then(checkEmptiness).then(resolve, reject); - }); - }; - var createBrandNewDirectoryAsync = (path2, opts) => { - const options = opts || {}; - return new Promise((resolve, reject) => { - fs2.mkdir(path2, options.mode).then(resolve).catch((err) => { - if (err.code === "ENOENT") { - createBrandNewDirectoryAsync(pathUtil.dirname(path2), options).then(() => { - return fs2.mkdir(path2, options.mode); - }).then(resolve).catch((err2) => { - if (err2.code === "EEXIST") { - resolve(); - } else { - reject(err2); - } - }); - } else if (err.code === "EEXIST") { - resolve(); - } else { - reject(err); - } - }); - }); - }; - var dirAsync = (path2, passedCriteria) => { - return new Promise((resolve, reject) => { - const criteria = getCriteriaDefaults(passedCriteria); - checkWhatAlreadyOccupiesPathAsync(path2).then((stat) => { - if (stat !== void 0) { - return checkExistingDirectoryFulfillsCriteriaAsync( - path2, - stat, - criteria - ); - } - return createBrandNewDirectoryAsync(path2, criteria); - }).then(resolve, reject); - }); - }; - exports.validateInput = validateInput; - exports.sync = dirSync; - exports.createSync = createBrandNewDirectorySync; - exports.async = dirAsync; - exports.createAsync = createBrandNewDirectoryAsync; - } -}); -var require_write = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/write.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var validate = require_validate(); - var dir = require_dir(); - var validateInput = (methodName, path2, data, options) => { - const methodSignature = `${methodName}(path, data, [options])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.argument(methodSignature, "data", data, [ - "string", - "buffer", - "object", - "array" - ]); - validate.options(methodSignature, "options", options, { - mode: ["string", "number"], - atomic: ["boolean"], - jsonIndent: ["number"] - }); - }; - var newExt = ".__new__"; - var serializeToJsonMaybe = (data, jsonIndent) => { - let indent = jsonIndent; - if (typeof indent !== "number") { - indent = 2; - } - if (typeof data === "object" && !Buffer.isBuffer(data) && data !== null) { - return JSON.stringify(data, null, indent); - } - return data; - }; - var writeFileSync = (path2, data, options) => { - try { - fs2.writeFileSync(path2, data, options); - } catch (err) { - if (err.code === "ENOENT") { - dir.createSync(pathUtil.dirname(path2)); - fs2.writeFileSync(path2, data, options); - } else { - throw err; - } - } - }; - var writeAtomicSync = (path2, data, options) => { - writeFileSync(path2 + newExt, data, options); - fs2.renameSync(path2 + newExt, path2); - }; - var writeSync = (path2, data, options) => { - const opts = options || {}; - const processedData = serializeToJsonMaybe(data, opts.jsonIndent); - let writeStrategy = writeFileSync; - if (opts.atomic) { - writeStrategy = writeAtomicSync; - } - writeStrategy(path2, processedData, { mode: opts.mode }); - }; - var writeFileAsync = (path2, data, options) => { - return new Promise((resolve, reject) => { - fs2.writeFile(path2, data, options).then(resolve).catch((err) => { - if (err.code === "ENOENT") { - dir.createAsync(pathUtil.dirname(path2)).then(() => { - return fs2.writeFile(path2, data, options); - }).then(resolve, reject); - } else { - reject(err); - } - }); - }); - }; - var writeAtomicAsync = (path2, data, options) => { - return new Promise((resolve, reject) => { - writeFileAsync(path2 + newExt, data, options).then(() => { - return fs2.rename(path2 + newExt, path2); - }).then(resolve, reject); - }); - }; - var writeAsync = (path2, data, options) => { - const opts = options || {}; - const processedData = serializeToJsonMaybe(data, opts.jsonIndent); - let writeStrategy = writeFileAsync; - if (opts.atomic) { - writeStrategy = writeAtomicAsync; - } - return writeStrategy(path2, processedData, { mode: opts.mode }); - }; - exports.validateInput = validateInput; - exports.sync = writeSync; - exports.async = writeAsync; - } -}); -var require_append = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/append.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var write = require_write(); - var validate = require_validate(); - var validateInput = (methodName, path2, data, options) => { - const methodSignature = `${methodName}(path, data, [options])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.argument(methodSignature, "data", data, ["string", "buffer"]); - validate.options(methodSignature, "options", options, { - mode: ["string", "number"] - }); - }; - var appendSync = (path2, data, options) => { - try { - fs2.appendFileSync(path2, data, options); - } catch (err) { - if (err.code === "ENOENT") { - write.sync(path2, data, options); - } else { - throw err; - } - } - }; - var appendAsync = (path2, data, options) => { - return new Promise((resolve, reject) => { - fs2.appendFile(path2, data, options).then(resolve).catch((err) => { - if (err.code === "ENOENT") { - write.async(path2, data, options).then(resolve, reject); - } else { - reject(err); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = appendSync; - exports.async = appendAsync; - } -}); -var require_file = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/file.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var modeUtil = require_mode2(); - var validate = require_validate(); - var write = require_write(); - var validateInput = (methodName, path2, criteria) => { - const methodSignature = `${methodName}(path, [criteria])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.options(methodSignature, "criteria", criteria, { - content: ["string", "buffer", "object", "array"], - jsonIndent: ["number"], - mode: ["string", "number"] - }); - }; - var getCriteriaDefaults = (passedCriteria) => { - const criteria = passedCriteria || {}; - if (criteria.mode !== void 0) { - criteria.mode = modeUtil.normalizeFileMode(criteria.mode); - } - return criteria; - }; - var generatePathOccupiedByNotFileError = (path2) => { - return new Error( - `Path ${path2} exists but is not a file. Halting jetpack.file() call for safety reasons.` - ); - }; - var checkWhatAlreadyOccupiesPathSync = (path2) => { - let stat; - try { - stat = fs2.statSync(path2); - } catch (err) { - if (err.code !== "ENOENT") { - throw err; - } - } - if (stat && !stat.isFile()) { - throw generatePathOccupiedByNotFileError(path2); - } - return stat; - }; - var checkExistingFileFulfillsCriteriaSync = (path2, stat, criteria) => { - const mode = modeUtil.normalizeFileMode(stat.mode); - const checkContent = () => { - if (criteria.content !== void 0) { - write.sync(path2, criteria.content, { - mode, - jsonIndent: criteria.jsonIndent - }); - return true; - } - return false; - }; - const checkMode = () => { - if (criteria.mode !== void 0 && criteria.mode !== mode) { - fs2.chmodSync(path2, criteria.mode); - } - }; - const contentReplaced = checkContent(); - if (!contentReplaced) { - checkMode(); - } - }; - var createBrandNewFileSync = (path2, criteria) => { - let content = ""; - if (criteria.content !== void 0) { - content = criteria.content; - } - write.sync(path2, content, { - mode: criteria.mode, - jsonIndent: criteria.jsonIndent - }); - }; - var fileSync = (path2, passedCriteria) => { - const criteria = getCriteriaDefaults(passedCriteria); - const stat = checkWhatAlreadyOccupiesPathSync(path2); - if (stat !== void 0) { - checkExistingFileFulfillsCriteriaSync(path2, stat, criteria); - } else { - createBrandNewFileSync(path2, criteria); - } - }; - var checkWhatAlreadyOccupiesPathAsync = (path2) => { - return new Promise((resolve, reject) => { - fs2.stat(path2).then((stat) => { - if (stat.isFile()) { - resolve(stat); - } else { - reject(generatePathOccupiedByNotFileError(path2)); - } - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(void 0); - } else { - reject(err); - } - }); - }); - }; - var checkExistingFileFulfillsCriteriaAsync = (path2, stat, criteria) => { - const mode = modeUtil.normalizeFileMode(stat.mode); - const checkContent = () => { - return new Promise((resolve, reject) => { - if (criteria.content !== void 0) { - write.async(path2, criteria.content, { - mode, - jsonIndent: criteria.jsonIndent - }).then(() => { - resolve(true); - }).catch(reject); - } else { - resolve(false); - } - }); - }; - const checkMode = () => { - if (criteria.mode !== void 0 && criteria.mode !== mode) { - return fs2.chmod(path2, criteria.mode); - } - return void 0; - }; - return checkContent().then((contentReplaced) => { - if (!contentReplaced) { - return checkMode(); - } - return void 0; - }); - }; - var createBrandNewFileAsync = (path2, criteria) => { - let content = ""; - if (criteria.content !== void 0) { - content = criteria.content; - } - return write.async(path2, content, { - mode: criteria.mode, - jsonIndent: criteria.jsonIndent - }); - }; - var fileAsync = (path2, passedCriteria) => { - return new Promise((resolve, reject) => { - const criteria = getCriteriaDefaults(passedCriteria); - checkWhatAlreadyOccupiesPathAsync(path2).then((stat) => { - if (stat !== void 0) { - return checkExistingFileFulfillsCriteriaAsync(path2, stat, criteria); - } - return createBrandNewFileAsync(path2, criteria); - }).then(resolve, reject); - }); - }; - exports.validateInput = validateInput; - exports.sync = fileSync; - exports.async = fileAsync; - } -}); -var require_inspect = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect.js"(exports) { - "use strict"; - var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto"); - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var validate = require_validate(); - var supportedChecksumAlgorithms = ["md5", "sha1", "sha256", "sha512"]; - var symlinkOptions = ["report", "follow"]; - var validateInput = (methodName, path2, options) => { - const methodSignature = `${methodName}(path, [options])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.options(methodSignature, "options", options, { - checksum: ["string"], - mode: ["boolean"], - times: ["boolean"], - absolutePath: ["boolean"], - symlinks: ["string"] - }); - if (options && options.checksum !== void 0 && supportedChecksumAlgorithms.indexOf(options.checksum) === -1) { - throw new Error( - `Argument "options.checksum" passed to ${methodSignature} must have one of values: ${supportedChecksumAlgorithms.join( - ", " - )}` - ); - } - if (options && options.symlinks !== void 0 && symlinkOptions.indexOf(options.symlinks) === -1) { - throw new Error( - `Argument "options.symlinks" passed to ${methodSignature} must have one of values: ${symlinkOptions.join( - ", " - )}` - ); - } - }; - var createInspectObj = (path2, options, stat) => { - const obj = {}; - obj.name = pathUtil.basename(path2); - if (stat.isFile()) { - obj.type = "file"; - obj.size = stat.size; - } else if (stat.isDirectory()) { - obj.type = "dir"; - } else if (stat.isSymbolicLink()) { - obj.type = "symlink"; - } else { - obj.type = "other"; - } - if (options.mode) { - obj.mode = stat.mode; - } - if (options.times) { - obj.accessTime = stat.atime; - obj.modifyTime = stat.mtime; - obj.changeTime = stat.ctime; - obj.birthTime = stat.birthtime; - } - if (options.absolutePath) { - obj.absolutePath = path2; - } - return obj; - }; - var fileChecksum = (path2, algo) => { - const hash = crypto.createHash(algo); - const data = fs2.readFileSync(path2); - hash.update(data); - return hash.digest("hex"); - }; - var addExtraFieldsSync = (path2, inspectObj, options) => { - if (inspectObj.type === "file" && options.checksum) { - inspectObj[options.checksum] = fileChecksum(path2, options.checksum); - } else if (inspectObj.type === "symlink") { - inspectObj.pointsAt = fs2.readlinkSync(path2); - } - }; - var inspectSync = (path2, options) => { - let statOperation = fs2.lstatSync; - let stat; - const opts = options || {}; - if (opts.symlinks === "follow") { - statOperation = fs2.statSync; - } - try { - stat = statOperation(path2); - } catch (err) { - if (err.code === "ENOENT") { - return void 0; - } - throw err; - } - const inspectObj = createInspectObj(path2, opts, stat); - addExtraFieldsSync(path2, inspectObj, opts); - return inspectObj; - }; - var fileChecksumAsync = (path2, algo) => { - return new Promise((resolve, reject) => { - const hash = crypto.createHash(algo); - const s = fs2.createReadStream(path2); - s.on("data", (data) => { - hash.update(data); - }); - s.on("end", () => { - resolve(hash.digest("hex")); - }); - s.on("error", reject); - }); - }; - var addExtraFieldsAsync = (path2, inspectObj, options) => { - if (inspectObj.type === "file" && options.checksum) { - return fileChecksumAsync(path2, options.checksum).then((checksum) => { - inspectObj[options.checksum] = checksum; - return inspectObj; - }); - } else if (inspectObj.type === "symlink") { - return fs2.readlink(path2).then((linkPath) => { - inspectObj.pointsAt = linkPath; - return inspectObj; - }); - } - return Promise.resolve(inspectObj); - }; - var inspectAsync = (path2, options) => { - return new Promise((resolve, reject) => { - let statOperation = fs2.lstat; - const opts = options || {}; - if (opts.symlinks === "follow") { - statOperation = fs2.stat; - } - statOperation(path2).then((stat) => { - const inspectObj = createInspectObj(path2, opts, stat); - addExtraFieldsAsync(path2, inspectObj, opts).then(resolve, reject); - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(void 0); - } else { - reject(err); - } - }); - }); - }; - exports.supportedChecksumAlgorithms = supportedChecksumAlgorithms; - exports.symlinkOptions = symlinkOptions; - exports.validateInput = validateInput; - exports.sync = inspectSync; - exports.async = inspectAsync; - } -}); -var require_list = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/list.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var validate = require_validate(); - var validateInput = (methodName, path2) => { - const methodSignature = `${methodName}(path)`; - validate.argument(methodSignature, "path", path2, ["string", "undefined"]); - }; - var listSync = (path2) => { - try { - return fs2.readdirSync(path2); - } catch (err) { - if (err.code === "ENOENT") { - return void 0; - } - throw err; - } - }; - var listAsync = (path2) => { - return new Promise((resolve, reject) => { - fs2.readdir(path2).then((list) => { - resolve(list); - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(void 0); - } else { - reject(err); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = listSync; - exports.async = listAsync; - } -}); -var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/tree_walker.js"(exports) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var inspect = require_inspect(); - var list = require_list(); - var fileType = (dirent) => { - if (dirent.isDirectory()) { - return "dir"; - } - if (dirent.isFile()) { - return "file"; - } - if (dirent.isSymbolicLink()) { - return "symlink"; - } - return "other"; - }; - var initialWalkSync = (path2, options, callback) => { - if (options.maxLevelsDeep === void 0) { - options.maxLevelsDeep = Infinity; - } - const performInspectOnEachNode = options.inspectOptions !== void 0; - if (options.symlinks) { - if (options.inspectOptions === void 0) { - options.inspectOptions = { symlinks: options.symlinks }; - } else { - options.inspectOptions.symlinks = options.symlinks; - } - } - const walkSync = (path3, currentLevel) => { - fs2.readdirSync(path3, { withFileTypes: true }).forEach((direntItem) => { - const withFileTypesNotSupported = typeof direntItem === "string"; - let fileItemPath; - if (withFileTypesNotSupported) { - fileItemPath = pathUtil.join(path3, direntItem); - } else { - fileItemPath = pathUtil.join(path3, direntItem.name); - } - let fileItem; - if (performInspectOnEachNode) { - fileItem = inspect.sync(fileItemPath, options.inspectOptions); - } else if (withFileTypesNotSupported) { - const inspectObject = inspect.sync( - fileItemPath, - options.inspectOptions - ); - fileItem = { name: inspectObject.name, type: inspectObject.type }; - } else { - const type = fileType(direntItem); - if (type === "symlink" && options.symlinks === "follow") { - const symlinkPointsTo = fs2.statSync(fileItemPath); - fileItem = { name: direntItem.name, type: fileType(symlinkPointsTo) }; - } else { - fileItem = { name: direntItem.name, type }; - } - } - if (fileItem !== void 0) { - callback(fileItemPath, fileItem); - if (fileItem.type === "dir" && currentLevel < options.maxLevelsDeep) { - walkSync(fileItemPath, currentLevel + 1); - } - } - }); - }; - const item = inspect.sync(path2, options.inspectOptions); - if (item) { - if (performInspectOnEachNode) { - callback(path2, item); - } else { - callback(path2, { name: item.name, type: item.type }); - } - if (item.type === "dir") { - walkSync(path2, 1); - } - } else { - callback(path2, void 0); - } - }; - var maxConcurrentOperations = 5; - var initialWalkAsync = (path2, options, callback, doneCallback) => { - if (options.maxLevelsDeep === void 0) { - options.maxLevelsDeep = Infinity; - } - const performInspectOnEachNode = options.inspectOptions !== void 0; - if (options.symlinks) { - if (options.inspectOptions === void 0) { - options.inspectOptions = { symlinks: options.symlinks }; - } else { - options.inspectOptions.symlinks = options.symlinks; - } - } - const concurrentOperationsQueue = []; - let nowDoingConcurrentOperations = 0; - const checkConcurrentOperations = () => { - if (concurrentOperationsQueue.length === 0 && nowDoingConcurrentOperations === 0) { - doneCallback(); - } else if (concurrentOperationsQueue.length > 0 && nowDoingConcurrentOperations < maxConcurrentOperations) { - const operation = concurrentOperationsQueue.pop(); - nowDoingConcurrentOperations += 1; - operation(); - } - }; - const whenConcurrencySlotAvailable = (operation) => { - concurrentOperationsQueue.push(operation); - checkConcurrentOperations(); - }; - const concurrentOperationDone = () => { - nowDoingConcurrentOperations -= 1; - checkConcurrentOperations(); - }; - const walkAsync = (path3, currentLevel) => { - const goDeeperIfDir = (fileItemPath, fileItem) => { - if (fileItem.type === "dir" && currentLevel < options.maxLevelsDeep) { - walkAsync(fileItemPath, currentLevel + 1); - } - }; - whenConcurrencySlotAvailable(() => { - fs2.readdir(path3, { withFileTypes: true }, (err, files) => { - if (err) { - doneCallback(err); - } else { - files.forEach((direntItem) => { - const withFileTypesNotSupported = typeof direntItem === "string"; - let fileItemPath; - if (withFileTypesNotSupported) { - fileItemPath = pathUtil.join(path3, direntItem); - } else { - fileItemPath = pathUtil.join(path3, direntItem.name); - } - if (performInspectOnEachNode || withFileTypesNotSupported) { - whenConcurrencySlotAvailable(() => { - inspect.async(fileItemPath, options.inspectOptions).then((fileItem) => { - if (fileItem !== void 0) { - if (performInspectOnEachNode) { - callback(fileItemPath, fileItem); - } else { - callback(fileItemPath, { - name: fileItem.name, - type: fileItem.type - }); - } - goDeeperIfDir(fileItemPath, fileItem); - } - concurrentOperationDone(); - }).catch((err2) => { - doneCallback(err2); - }); - }); - } else { - const type = fileType(direntItem); - if (type === "symlink" && options.symlinks === "follow") { - whenConcurrencySlotAvailable(() => { - fs2.stat(fileItemPath, (err2, symlinkPointsTo) => { - if (err2) { - doneCallback(err2); - } else { - const fileItem = { - name: direntItem.name, - type: fileType(symlinkPointsTo) - }; - callback(fileItemPath, fileItem); - goDeeperIfDir(fileItemPath, fileItem); - concurrentOperationDone(); - } - }); - }); - } else { - const fileItem = { name: direntItem.name, type }; - callback(fileItemPath, fileItem); - goDeeperIfDir(fileItemPath, fileItem); - } - } - }); - concurrentOperationDone(); - } - }); - }); - }; - inspect.async(path2, options.inspectOptions).then((item) => { - if (item) { - if (performInspectOnEachNode) { - callback(path2, item); - } else { - callback(path2, { name: item.name, type: item.type }); - } - if (item.type === "dir") { - walkAsync(path2, 1); - } else { - doneCallback(); - } - } else { - callback(path2, void 0); - doneCallback(); - } - }).catch((err) => { - doneCallback(err); - }); - }; - exports.sync = initialWalkSync; - exports.async = initialWalkAsync; - } -}); -var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(exports, module2) { - "use strict"; - var isWindows = typeof process === "object" && process && process.platform === "win32"; - module2.exports = isWindows ? { sep: "\\" } : { sep: "/" }; - } -}); -var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module2) { - "use strict"; - module2.exports = balanced; - function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str); - if (b instanceof RegExp) b = maybeMatch(b, str); - var r = range(a, b, str); - return r && { - start: r[0], - end: r[1], - pre: str.slice(0, r[0]), - body: str.slice(r[0] + a.length, r[1]), - post: str.slice(r[1] + b.length) - }; - } - function maybeMatch(reg, str) { - var m = str.match(reg); - return m ? m[0] : null; - } - balanced.range = range; - function range(a, b, str) { - var begs, beg, left, right, result; - var ai = str.indexOf(a); - var bi = str.indexOf(b, ai + 1); - var i = ai; - if (ai >= 0 && bi > 0) { - if (a === b) { - return [ai, bi]; - } - begs = []; - left = str.length; - while (i >= 0 && !result) { - if (i == ai) { - begs.push(i); - ai = str.indexOf(a, i + 1); - } else if (begs.length == 1) { - result = [begs.pop(), bi]; - } else { - beg = begs.pop(); - if (beg < left) { - left = beg; - right = bi; - } - bi = str.indexOf(b, i + 1); - } - i = ai < bi && ai >= 0 ? ai : bi; - } - if (begs.length) { - result = [left, right]; - } - } - return result; - } - } -}); -var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) { - "use strict"; - var balanced = require_balanced_match(); - module2.exports = expandTop; - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - function numeric(str) { - return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); - } - function escapeBraces(str) { - return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); - } - function unescapeBraces(str) { - return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); - } - function parseCommaParts(str) { - if (!str) - return [""]; - var parts = []; - var m = balanced("{", "}", str); - if (!m) - return str.split(","); - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(","); - p[p.length - 1] += "{" + body + "}"; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length - 1] += postParts.shift(); - p.push.apply(p, postParts); - } - parts.push.apply(parts, p); - return parts; - } - function expandTop(str) { - if (!str) - return []; - if (str.substr(0, 2) === "{}") { - str = "\\{\\}" + str.substr(2); - } - return expand(escapeBraces(str), true).map(unescapeBraces); - } - function embrace(str) { - return "{" + str + "}"; - } - function isPadded(el) { - return /^-?0\d/.test(el); - } - function lte(i, y) { - return i <= y; - } - function gte(i, y) { - return i >= y; - } - function expand(str, isTop) { - var expansions = []; - var m = balanced("{", "}", str); - if (!m) return [str]; - var pre = m.pre; - var post = m.post.length ? expand(m.post, false) : [""]; - if (/\$$/.test(m.pre)) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + "{" + m.body + "}" + post[k]; - expansions.push(expansion); - } - } else { - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(",") >= 0; - if (!isSequence && !isOptions) { - if (m.post.match(/,.*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - var N; - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length); - var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - N = []; - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === "\\") - c = ""; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join("0"); - if (i < 0) - c = "-" + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = []; - for (var j = 0; j < n.length; j++) { - N.push.apply(N, expand(n[j], false)); - } - } - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - } - return expansions; - } - } -}); -var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(exports, module2) { - "use strict"; - var minimatch = module2.exports = (p, pattern, options = {}) => { - assertValidPattern(pattern); - if (!options.nocomment && pattern.charAt(0) === "#") { - return false; - } - return new Minimatch(pattern, options).match(p); - }; - module2.exports = minimatch; - var path2 = require_path(); - minimatch.sep = path2.sep; - var GLOBSTAR = Symbol("globstar **"); - minimatch.GLOBSTAR = GLOBSTAR; - var expand = require_brace_expansion(); - var plTypes = { - "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, - "?": { open: "(?:", close: ")?" }, - "+": { open: "(?:", close: ")+" }, - "*": { open: "(?:", close: ")*" }, - "@": { open: "(?:", close: ")" } - }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var charSet = (s) => s.split("").reduce((set, c) => { - set[c] = true; - return set; - }, {}); - var reSpecials = charSet("().*{}+?[]^$\\!"); - var addPatternStartSet = charSet("[.("); - var slashSplit = /\/+/; - minimatch.filter = (pattern, options = {}) => (p, i, list) => minimatch(p, pattern, options); - var ext = (a, b = {}) => { - const t = {}; - Object.keys(a).forEach((k) => t[k] = a[k]); - Object.keys(b).forEach((k) => t[k] = b[k]); - return t; - }; - minimatch.defaults = (def) => { - if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; - } - const orig = minimatch; - const m = (p, pattern, options) => orig(p, pattern, ext(def, options)); - m.Minimatch = class Minimatch extends orig.Minimatch { - constructor(pattern, options) { - super(pattern, ext(def, options)); - } - }; - m.Minimatch.defaults = (options) => orig.defaults(ext(def, options)).Minimatch; - m.filter = (pattern, options) => orig.filter(pattern, ext(def, options)); - m.defaults = (options) => orig.defaults(ext(def, options)); - m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options)); - m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options)); - m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options)); - return m; - }; - minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options); - var braceExpand = (pattern, options = {}) => { - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - return [pattern]; - } - return expand(pattern); - }; - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = (pattern) => { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); - } - }; - var SUBPARSE = Symbol("subparse"); - minimatch.makeRe = (pattern, options) => new Minimatch(pattern, options || {}).makeRe(); - minimatch.match = (list, pattern, options = {}) => { - const mm = new Minimatch(pattern, options); - list = list.filter((f) => mm.match(f)); - if (mm.options.nonull && !list.length) { - list.push(pattern); - } - return list; - }; - var globUnescape = (s) => s.replace(/\\(.)/g, "$1"); - var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - var Minimatch = class { - constructor(pattern, options) { - assertValidPattern(pattern); - if (!options) options = {}; - this.options = options; - this.set = []; - this.pattern = pattern; - this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false; - if (this.windowsPathsNoEscape) { - this.pattern = this.pattern.replace(/\\/g, "/"); - } - this.regexp = null; - this.negate = false; - this.comment = false; - this.empty = false; - this.partial = !!options.partial; - this.make(); - } - debug() { - } - make() { - const pattern = this.pattern; - const options = this.options; - if (!options.nocomment && pattern.charAt(0) === "#") { - this.comment = true; - return; - } - if (!pattern) { - this.empty = true; - return; - } - this.parseNegate(); - let set = this.globSet = this.braceExpand(); - if (options.debug) this.debug = (...args) => console.error(...args); - this.debug(this.pattern, set); - set = this.globParts = set.map((s) => s.split(slashSplit)); - this.debug(this.pattern, set); - set = set.map((s, si, set2) => s.map(this.parse, this)); - this.debug(this.pattern, set); - set = set.filter((s) => s.indexOf(false) === -1); - this.debug(this.pattern, set); - this.set = set; - } - parseNegate() { - if (this.options.nonegate) return; - const pattern = this.pattern; - let negate = false; - let negateOffset = 0; - for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) { - negate = !negate; - negateOffset++; - } - if (negateOffset) this.pattern = pattern.substr(negateOffset); - this.negate = negate; - } - // set partial to true to test if, for example, - // "/a/b" matches the start of "/*/b/*/d" - // Partial means, if you run out of file before you run - // out of pattern, then that's fine, as long as all - // the parts match. - matchOne(file, pattern, partial) { - var options = this.options; - this.debug( - "matchOne", - { "this": this, file, pattern } - ); - this.debug("matchOne", file.length, pattern.length); - for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { - this.debug("matchOne loop"); - var p = pattern[pi]; - var f = file[fi]; - this.debug(pattern, p, f); - if (p === false) return false; - if (p === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p, f]); - var fr = fi; - var pr = pi + 1; - if (pr === pl) { - this.debug("** at the end"); - for (; fi < fl; fi++) { - if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false; - } - return true; - } - while (fr < fl) { - var swallowee = file[fr]; - this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug("globstar found match!", fr, fl, swallowee); - return true; - } else { - if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { - this.debug("dot detected!", file, fr, pattern, pr); - break; - } - this.debug("globstar swallow a segment, and continue"); - fr++; - } - } - if (partial) { - this.debug("\n>>> no match, partial?", file, fr, pattern, pr); - if (fr === fl) return true; - } - return false; - } - var hit; - if (typeof p === "string") { - hit = f === p; - this.debug("string match", p, f, hit); - } else { - hit = f.match(p); - this.debug("pattern match", p, f, hit); - } - if (!hit) return false; - } - if (fi === fl && pi === pl) { - return true; - } else if (fi === fl) { - return partial; - } else if (pi === pl) { - return fi === fl - 1 && file[fi] === ""; - } - throw new Error("wtf?"); - } - braceExpand() { - return braceExpand(this.pattern, this.options); - } - parse(pattern, isSub) { - assertValidPattern(pattern); - const options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; - } - if (pattern === "") return ""; - let re = ""; - let hasMagic = !!options.nocase; - let escaping = false; - const patternListStack = []; - const negativeLists = []; - let stateChar; - let inClass = false; - let reClassStart = -1; - let classStart = -1; - let cs; - let pl; - let sp; - const patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; - const clearStateChar = () => { - if (stateChar) { - switch (stateChar) { - case "*": - re += star; - hasMagic = true; - break; - case "?": - re += qmark; - hasMagic = true; - break; - default: - re += "\\" + stateChar; - break; - } - this.debug("clearStateChar %j %j", stateChar, re); - stateChar = false; - } - }; - for (let i = 0, c; i < pattern.length && (c = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re, c); - if (escaping) { - if (c === "/") { - return false; - } - if (reSpecials[c]) { - re += "\\"; - } - re += c; - escaping = false; - continue; - } - switch (c) { - case "/": { - return false; - } - case "\\": - clearStateChar(); - escaping = true; - continue; - case "?": - case "*": - case "+": - case "@": - case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c); - if (inClass) { - this.debug(" in class"); - if (c === "!" && i === classStart + 1) c = "^"; - re += c; - continue; - } - this.debug("call clearStateChar %j", stateChar); - clearStateChar(); - stateChar = c; - if (options.noext) clearStateChar(); - continue; - case "(": - if (inClass) { - re += "("; - continue; - } - if (!stateChar) { - re += "\\("; - continue; - } - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }); - re += stateChar === "!" ? "(?:(?!(?:" : "(?:"; - this.debug("plType %j %j", stateChar, re); - stateChar = false; - continue; - case ")": - if (inClass || !patternListStack.length) { - re += "\\)"; - continue; - } - clearStateChar(); - hasMagic = true; - pl = patternListStack.pop(); - re += pl.close; - if (pl.type === "!") { - negativeLists.push(pl); - } - pl.reEnd = re.length; - continue; - case "|": - if (inClass || !patternListStack.length) { - re += "\\|"; - continue; - } - clearStateChar(); - re += "|"; - continue; - case "[": - clearStateChar(); - if (inClass) { - re += "\\" + c; - continue; - } - inClass = true; - classStart = i; - reClassStart = re.length; - re += c; - continue; - case "]": - if (i === classStart + 1 || !inClass) { - re += "\\" + c; - continue; - } - cs = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs + "]"); - } catch (er) { - sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]"; - hasMagic = hasMagic || sp[1]; - inClass = false; - continue; - } - hasMagic = true; - inClass = false; - re += c; - continue; - default: - clearStateChar(); - if (reSpecials[c] && !(c === "^" && inClass)) { - re += "\\"; - } - re += c; - break; - } - } - if (inClass) { - cs = pattern.substr(classStart + 1); - sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0]; - hasMagic = hasMagic || sp[1]; - } - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - let tail; - tail = re.slice(pl.reStart + pl.open.length); - this.debug("setting tail", re, pl); - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => { - if (!$2) { - $2 = "\\"; - } - return $1 + $1 + $2 + "|"; - }); - this.debug("tail=%j\n %s", tail, tail, pl, re); - const t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; - hasMagic = true; - re = re.slice(0, pl.reStart) + t + "\\(" + tail; - } - clearStateChar(); - if (escaping) { - re += "\\\\"; - } - const addPatternStart = addPatternStartSet[re.charAt(0)]; - for (let n = negativeLists.length - 1; n > -1; n--) { - const nl = negativeLists[n]; - const nlBefore = re.slice(0, nl.reStart); - const nlFirst = re.slice(nl.reStart, nl.reEnd - 8); - let nlAfter = re.slice(nl.reEnd); - const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter; - const openParensBefore = nlBefore.split("(").length - 1; - let cleanAfter = nlAfter; - for (let i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); - } - nlAfter = cleanAfter; - const dollar = nlAfter === "" && isSub !== SUBPARSE ? "$" : ""; - re = nlBefore + nlFirst + nlAfter + dollar + nlLast; - } - if (re !== "" && hasMagic) { - re = "(?=.)" + re; - } - if (addPatternStart) { - re = patternStart + re; - } - if (isSub === SUBPARSE) { - return [re, hasMagic]; - } - if (!hasMagic) { - return globUnescape(pattern); - } - const flags = options.nocase ? "i" : ""; - try { - return Object.assign(new RegExp("^" + re + "$", flags), { - _glob: pattern, - _src: re - }); - } catch (er) { - return new RegExp("$."); - } - } - makeRe() { - if (this.regexp || this.regexp === false) return this.regexp; - const set = this.set; - if (!set.length) { - this.regexp = false; - return this.regexp; - } - const options = this.options; - const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; - const flags = options.nocase ? "i" : ""; - let re = set.map((pattern) => { - pattern = pattern.map( - (p) => typeof p === "string" ? regExpEscape(p) : p === GLOBSTAR ? GLOBSTAR : p._src - ).reduce((set2, p) => { - if (!(set2[set2.length - 1] === GLOBSTAR && p === GLOBSTAR)) { - set2.push(p); - } - return set2; - }, []); - pattern.forEach((p, i) => { - if (p !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) { - return; - } - if (i === 0) { - if (pattern.length > 1) { - pattern[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + pattern[i + 1]; - } else { - pattern[i] = twoStar; - } - } else if (i === pattern.length - 1) { - pattern[i - 1] += "(?:\\/|" + twoStar + ")?"; - } else { - pattern[i - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i + 1]; - pattern[i + 1] = GLOBSTAR; - } - }); - return pattern.filter((p) => p !== GLOBSTAR).join("/"); - }).join("|"); - re = "^(?:" + re + ")$"; - if (this.negate) re = "^(?!" + re + ").*$"; - try { - this.regexp = new RegExp(re, flags); - } catch (ex) { - this.regexp = false; - } - return this.regexp; - } - match(f, partial = this.partial) { - this.debug("match", f, this.pattern); - if (this.comment) return false; - if (this.empty) return f === ""; - if (f === "/" && partial) return true; - const options = this.options; - if (path2.sep !== "/") { - f = f.split(path2.sep).join("/"); - } - f = f.split(slashSplit); - this.debug(this.pattern, "split", f); - const set = this.set; - this.debug(this.pattern, "set", set); - let filename; - for (let i = f.length - 1; i >= 0; i--) { - filename = f[i]; - if (filename) break; - } - for (let i = 0; i < set.length; i++) { - const pattern = set[i]; - let file = f; - if (options.matchBase && pattern.length === 1) { - file = [filename]; - } - const hit = this.matchOne(file, pattern, partial); - if (hit) { - if (options.flipNegate) return true; - return !this.negate; - } - } - if (options.flipNegate) return false; - return this.negate; - } - static defaults(def) { - return minimatch.defaults(def).Minimatch; - } - }; - minimatch.Minimatch = Minimatch; - } -}); -var require_matcher = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/utils/matcher.js"(exports) { - "use strict"; - var Minimatch = require_minimatch().Minimatch; - var convertPatternToAbsolutePath = (basePath, pattern) => { - const hasSlash = pattern.indexOf("/") !== -1; - const isAbsolute = /^!?\//.test(pattern); - const isNegated = /^!/.test(pattern); - let separator; - if (!isAbsolute && hasSlash) { - const patternWithoutFirstCharacters = pattern.replace(/^!/, "").replace(/^\.\//, ""); - if (/\/$/.test(basePath)) { - separator = ""; - } else { - separator = "/"; - } - if (isNegated) { - return `!${basePath}${separator}${patternWithoutFirstCharacters}`; - } - return `${basePath}${separator}${patternWithoutFirstCharacters}`; - } - return pattern; - }; - exports.create = (basePath, patterns, ignoreCase) => { - let normalizedPatterns; - if (typeof patterns === "string") { - normalizedPatterns = [patterns]; - } else { - normalizedPatterns = patterns; - } - const matchers = normalizedPatterns.map((pattern) => { - return convertPatternToAbsolutePath(basePath, pattern); - }).map((pattern) => { - return new Minimatch(pattern, { - matchBase: true, - nocomment: true, - nocase: ignoreCase || false, - dot: true, - windowsPathsNoEscape: true - }); - }); - const performMatch = (absolutePath) => { - let mode = "matching"; - let weHaveMatch = false; - let currentMatcher; - let i; - for (i = 0; i < matchers.length; i += 1) { - currentMatcher = matchers[i]; - if (currentMatcher.negate) { - mode = "negation"; - if (i === 0) { - weHaveMatch = true; - } - } - if (mode === "negation" && weHaveMatch && !currentMatcher.match(absolutePath)) { - return false; - } - if (mode === "matching" && !weHaveMatch) { - weHaveMatch = currentMatcher.match(absolutePath); - } - } - return weHaveMatch; - }; - return performMatch; - }; - } -}); -var require_find = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/find.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var treeWalker = require_tree_walker(); - var inspect = require_inspect(); - var matcher = require_matcher(); - var validate = require_validate(); - var validateInput = (methodName, path2, options) => { - const methodSignature = `${methodName}([path], options)`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.options(methodSignature, "options", options, { - matching: ["string", "array of string"], - filter: ["function"], - files: ["boolean"], - directories: ["boolean"], - recursive: ["boolean"], - ignoreCase: ["boolean"] - }); - }; - var normalizeOptions = (options) => { - const opts = options || {}; - if (opts.matching === void 0) { - opts.matching = "*"; - } - if (opts.files === void 0) { - opts.files = true; - } - if (opts.ignoreCase === void 0) { - opts.ignoreCase = false; - } - if (opts.directories === void 0) { - opts.directories = false; - } - if (opts.recursive === void 0) { - opts.recursive = true; - } - return opts; - }; - var processFoundPaths = (foundPaths, cwd) => { - return foundPaths.map((path2) => { - return pathUtil.relative(cwd, path2); - }); - }; - var generatePathDoesntExistError = (path2) => { - const err = new Error(`Path you want to find stuff in doesn't exist ${path2}`); - err.code = "ENOENT"; - return err; - }; - var generatePathNotDirectoryError = (path2) => { - const err = new Error( - `Path you want to find stuff in must be a directory ${path2}` - ); - err.code = "ENOTDIR"; - return err; - }; - var findSync = (path2, options) => { - const foundAbsolutePaths = []; - const matchesAnyOfGlobs = matcher.create( - path2, - options.matching, - options.ignoreCase - ); - let maxLevelsDeep = Infinity; - if (options.recursive === false) { - maxLevelsDeep = 1; - } - treeWalker.sync( - path2, - { - maxLevelsDeep, - symlinks: "follow", - inspectOptions: { times: true, absolutePath: true } - }, - (itemPath, item) => { - if (item && itemPath !== path2 && matchesAnyOfGlobs(itemPath)) { - const weHaveMatch = item.type === "file" && options.files === true || item.type === "dir" && options.directories === true; - if (weHaveMatch) { - if (options.filter) { - const passedThroughFilter = options.filter(item); - if (passedThroughFilter) { - foundAbsolutePaths.push(itemPath); - } - } else { - foundAbsolutePaths.push(itemPath); - } - } - } - } - ); - foundAbsolutePaths.sort(); - return processFoundPaths(foundAbsolutePaths, options.cwd); - }; - var findSyncInit = (path2, options) => { - const entryPointInspect = inspect.sync(path2, { symlinks: "follow" }); - if (entryPointInspect === void 0) { - throw generatePathDoesntExistError(path2); - } else if (entryPointInspect.type !== "dir") { - throw generatePathNotDirectoryError(path2); - } - return findSync(path2, normalizeOptions(options)); - }; - var findAsync = (path2, options) => { - return new Promise((resolve, reject) => { - const foundAbsolutePaths = []; - const matchesAnyOfGlobs = matcher.create( - path2, - options.matching, - options.ignoreCase - ); - let maxLevelsDeep = Infinity; - if (options.recursive === false) { - maxLevelsDeep = 1; - } - let waitingForFiltersToFinish = 0; - let treeWalkerDone = false; - const maybeDone = () => { - if (treeWalkerDone && waitingForFiltersToFinish === 0) { - foundAbsolutePaths.sort(); - resolve(processFoundPaths(foundAbsolutePaths, options.cwd)); - } - }; - treeWalker.async( - path2, - { - maxLevelsDeep, - symlinks: "follow", - inspectOptions: { times: true, absolutePath: true } - }, - (itemPath, item) => { - if (item && itemPath !== path2 && matchesAnyOfGlobs(itemPath)) { - const weHaveMatch = item.type === "file" && options.files === true || item.type === "dir" && options.directories === true; - if (weHaveMatch) { - if (options.filter) { - const passedThroughFilter = options.filter(item); - const isPromise = typeof passedThroughFilter.then === "function"; - if (isPromise) { - waitingForFiltersToFinish += 1; - passedThroughFilter.then((passedThroughFilterResult) => { - if (passedThroughFilterResult) { - foundAbsolutePaths.push(itemPath); - } - waitingForFiltersToFinish -= 1; - maybeDone(); - }).catch((err) => { - reject(err); - }); - } else if (passedThroughFilter) { - foundAbsolutePaths.push(itemPath); - } - } else { - foundAbsolutePaths.push(itemPath); - } - } - } - }, - (err) => { - if (err) { - reject(err); - } else { - treeWalkerDone = true; - maybeDone(); - } - } - ); - }); - }; - var findAsyncInit = (path2, options) => { - return inspect.async(path2, { symlinks: "follow" }).then((entryPointInspect) => { - if (entryPointInspect === void 0) { - throw generatePathDoesntExistError(path2); - } else if (entryPointInspect.type !== "dir") { - throw generatePathNotDirectoryError(path2); - } - return findAsync(path2, normalizeOptions(options)); - }); - }; - exports.validateInput = validateInput; - exports.sync = findSyncInit; - exports.async = findAsyncInit; - } -}); -var require_inspect_tree = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/inspect_tree.js"(exports) { - "use strict"; - var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto"); - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var inspect = require_inspect(); - var list = require_list(); - var validate = require_validate(); - var treeWalker = require_tree_walker(); - var validateInput = (methodName, path2, options) => { - const methodSignature = `${methodName}(path, [options])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.options(methodSignature, "options", options, { - checksum: ["string"], - relativePath: ["boolean"], - times: ["boolean"], - symlinks: ["string"] - }); - if (options && options.checksum !== void 0 && inspect.supportedChecksumAlgorithms.indexOf(options.checksum) === -1) { - throw new Error( - `Argument "options.checksum" passed to ${methodSignature} must have one of values: ${inspect.supportedChecksumAlgorithms.join( - ", " - )}` - ); - } - if (options && options.symlinks !== void 0 && inspect.symlinkOptions.indexOf(options.symlinks) === -1) { - throw new Error( - `Argument "options.symlinks" passed to ${methodSignature} must have one of values: ${inspect.symlinkOptions.join( - ", " - )}` - ); - } - }; - var relativePathInTree = (parentInspectObj, inspectObj) => { - if (parentInspectObj === void 0) { - return "."; - } - return parentInspectObj.relativePath + "/" + inspectObj.name; - }; - var checksumOfDir = (inspectList, algo) => { - const hash = crypto.createHash(algo); - inspectList.forEach((inspectObj) => { - hash.update(inspectObj.name + inspectObj[algo]); - }); - return hash.digest("hex"); - }; - var calculateTreeDependentProperties = (parentInspectObj, inspectObj, options) => { - if (options.relativePath) { - inspectObj.relativePath = relativePathInTree(parentInspectObj, inspectObj); - } - if (inspectObj.type === "dir") { - inspectObj.children.forEach((childInspectObj) => { - calculateTreeDependentProperties(inspectObj, childInspectObj, options); - }); - inspectObj.size = 0; - inspectObj.children.sort((a, b) => { - if (a.type === "dir" && b.type === "file") { - return -1; - } - if (a.type === "file" && b.type === "dir") { - return 1; - } - return a.name.localeCompare(b.name); - }); - inspectObj.children.forEach((child) => { - inspectObj.size += child.size || 0; - }); - if (options.checksum) { - inspectObj[options.checksum] = checksumOfDir( - inspectObj.children, - options.checksum - ); - } - } - }; - var findParentInTree = (treeNode, pathChain, item) => { - const name = pathChain[0]; - if (pathChain.length > 1) { - const itemInTreeForPathChain = treeNode.children.find((child) => { - return child.name === name; - }); - return findParentInTree(itemInTreeForPathChain, pathChain.slice(1), item); - } - return treeNode; - }; - var inspectTreeSync = (path2, opts) => { - const options = opts || {}; - let tree; - treeWalker.sync(path2, { inspectOptions: options }, (itemPath, item) => { - if (item) { - if (item.type === "dir") { - item.children = []; - } - const relativePath = pathUtil.relative(path2, itemPath); - if (relativePath === "") { - tree = item; - } else { - const parentItem = findParentInTree( - tree, - relativePath.split(pathUtil.sep), - item - ); - parentItem.children.push(item); - } - } - }); - if (tree) { - calculateTreeDependentProperties(void 0, tree, options); - } - return tree; - }; - var inspectTreeAsync = (path2, opts) => { - const options = opts || {}; - let tree; - return new Promise((resolve, reject) => { - treeWalker.async( - path2, - { inspectOptions: options }, - (itemPath, item) => { - if (item) { - if (item.type === "dir") { - item.children = []; - } - const relativePath = pathUtil.relative(path2, itemPath); - if (relativePath === "") { - tree = item; - } else { - const parentItem = findParentInTree( - tree, - relativePath.split(pathUtil.sep), - item - ); - parentItem.children.push(item); - } - } - }, - (err) => { - if (err) { - reject(err); - } else { - if (tree) { - calculateTreeDependentProperties(void 0, tree, options); - } - resolve(tree); - } - } - ); - }); - }; - exports.validateInput = validateInput; - exports.sync = inspectTreeSync; - exports.async = inspectTreeAsync; - } -}); -var require_exists = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/exists.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var validate = require_validate(); - var validateInput = (methodName, path2) => { - const methodSignature = `${methodName}(path)`; - validate.argument(methodSignature, "path", path2, ["string"]); - }; - var existsSync = (path2) => { - try { - const stat = fs2.statSync(path2); - if (stat.isDirectory()) { - return "dir"; - } else if (stat.isFile()) { - return "file"; - } - return "other"; - } catch (err) { - if (err.code !== "ENOENT") { - throw err; - } - } - return false; - }; - var existsAsync = (path2) => { - return new Promise((resolve, reject) => { - fs2.stat(path2).then((stat) => { - if (stat.isDirectory()) { - resolve("dir"); - } else if (stat.isFile()) { - resolve("file"); - } else { - resolve("other"); - } - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(false); - } else { - reject(err); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = existsSync; - exports.async = existsAsync; - } -}); -var require_copy = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/copy.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var dir = require_dir(); - var exists = require_exists(); - var inspect = require_inspect(); - var write = require_write(); - var matcher = require_matcher(); - var fileMode = require_mode2(); - var treeWalker = require_tree_walker(); - var validate = require_validate(); - var validateInput = (methodName, from, to, options) => { - const methodSignature = `${methodName}(from, to, [options])`; - validate.argument(methodSignature, "from", from, ["string"]); - validate.argument(methodSignature, "to", to, ["string"]); - validate.options(methodSignature, "options", options, { - overwrite: ["boolean", "function"], - matching: ["string", "array of string"], - ignoreCase: ["boolean"] - }); - }; - var parseOptions = (options, from) => { - const opts = options || {}; - const parsedOptions = {}; - if (opts.ignoreCase === void 0) { - opts.ignoreCase = false; - } - parsedOptions.overwrite = opts.overwrite; - if (opts.matching) { - parsedOptions.allowedToCopy = matcher.create( - from, - opts.matching, - opts.ignoreCase - ); - } else { - parsedOptions.allowedToCopy = () => { - return true; - }; - } - return parsedOptions; - }; - var generateNoSourceError = (path2) => { - const err = new Error(`Path to copy doesn't exist ${path2}`); - err.code = "ENOENT"; - return err; - }; - var generateDestinationExistsError = (path2) => { - const err = new Error(`Destination path already exists ${path2}`); - err.code = "EEXIST"; - return err; - }; - var inspectOptions = { - mode: true, - symlinks: "report", - times: true, - absolutePath: true - }; - var shouldThrowDestinationExistsError = (context) => { - return typeof context.opts.overwrite !== "function" && context.opts.overwrite !== true; - }; - var checksBeforeCopyingSync = (from, to, opts) => { - if (!exists.sync(from)) { - throw generateNoSourceError(from); - } - if (exists.sync(to) && !opts.overwrite) { - throw generateDestinationExistsError(to); - } - }; - var canOverwriteItSync = (context) => { - if (typeof context.opts.overwrite === "function") { - const destInspectData = inspect.sync(context.destPath, inspectOptions); - return context.opts.overwrite(context.srcInspectData, destInspectData); - } - return context.opts.overwrite === true; - }; - var copyFileSync = (srcPath, destPath, mode, context) => { - const data = fs2.readFileSync(srcPath); - try { - fs2.writeFileSync(destPath, data, { mode, flag: "wx" }); - } catch (err) { - if (err.code === "ENOENT") { - write.sync(destPath, data, { mode }); - } else if (err.code === "EEXIST") { - if (canOverwriteItSync(context)) { - fs2.writeFileSync(destPath, data, { mode }); - } else if (shouldThrowDestinationExistsError(context)) { - throw generateDestinationExistsError(context.destPath); - } - } else { - throw err; - } - } - }; - var copySymlinkSync = (from, to) => { - const symlinkPointsAt = fs2.readlinkSync(from); - try { - fs2.symlinkSync(symlinkPointsAt, to); - } catch (err) { - if (err.code === "EEXIST") { - fs2.unlinkSync(to); - fs2.symlinkSync(symlinkPointsAt, to); - } else { - throw err; - } - } - }; - var copyItemSync = (srcPath, srcInspectData, destPath, opts) => { - const context = { srcPath, destPath, srcInspectData, opts }; - const mode = fileMode.normalizeFileMode(srcInspectData.mode); - if (srcInspectData.type === "dir") { - dir.createSync(destPath, { mode }); - } else if (srcInspectData.type === "file") { - copyFileSync(srcPath, destPath, mode, context); - } else if (srcInspectData.type === "symlink") { - copySymlinkSync(srcPath, destPath); - } - }; - var copySync = (from, to, options) => { - const opts = parseOptions(options, from); - checksBeforeCopyingSync(from, to, opts); - treeWalker.sync(from, { inspectOptions }, (srcPath, srcInspectData) => { - const rel = pathUtil.relative(from, srcPath); - const destPath = pathUtil.resolve(to, rel); - if (opts.allowedToCopy(srcPath, destPath, srcInspectData)) { - copyItemSync(srcPath, srcInspectData, destPath, opts); - } - }); - }; - var checksBeforeCopyingAsync = (from, to, opts) => { - return exists.async(from).then((srcPathExists) => { - if (!srcPathExists) { - throw generateNoSourceError(from); - } else { - return exists.async(to); - } - }).then((destPathExists) => { - if (destPathExists && !opts.overwrite) { - throw generateDestinationExistsError(to); - } - }); - }; - var canOverwriteItAsync = (context) => { - return new Promise((resolve, reject) => { - if (typeof context.opts.overwrite === "function") { - inspect.async(context.destPath, inspectOptions).then((destInspectData) => { - resolve( - context.opts.overwrite(context.srcInspectData, destInspectData) - ); - }).catch(reject); - } else { - resolve(context.opts.overwrite === true); - } - }); - }; - var copyFileAsync = (srcPath, destPath, mode, context, runOptions) => { - return new Promise((resolve, reject) => { - const runOpts = runOptions || {}; - let flags = "wx"; - if (runOpts.overwrite) { - flags = "w"; - } - const readStream = fs2.createReadStream(srcPath); - const writeStream = fs2.createWriteStream(destPath, { mode, flags }); - readStream.on("error", reject); - writeStream.on("error", (err) => { - readStream.resume(); - if (err.code === "ENOENT") { - dir.createAsync(pathUtil.dirname(destPath)).then(() => { - copyFileAsync(srcPath, destPath, mode, context).then( - resolve, - reject - ); - }).catch(reject); - } else if (err.code === "EEXIST") { - canOverwriteItAsync(context).then((canOverwite) => { - if (canOverwite) { - copyFileAsync(srcPath, destPath, mode, context, { - overwrite: true - }).then(resolve, reject); - } else if (shouldThrowDestinationExistsError(context)) { - reject(generateDestinationExistsError(destPath)); - } else { - resolve(); - } - }).catch(reject); - } else { - reject(err); - } - }); - writeStream.on("finish", resolve); - readStream.pipe(writeStream); - }); - }; - var copySymlinkAsync = (from, to) => { - return fs2.readlink(from).then((symlinkPointsAt) => { - return new Promise((resolve, reject) => { - fs2.symlink(symlinkPointsAt, to).then(resolve).catch((err) => { - if (err.code === "EEXIST") { - fs2.unlink(to).then(() => { - return fs2.symlink(symlinkPointsAt, to); - }).then(resolve, reject); - } else { - reject(err); - } - }); - }); - }); - }; - var copyItemAsync = (srcPath, srcInspectData, destPath, opts) => { - const context = { srcPath, destPath, srcInspectData, opts }; - const mode = fileMode.normalizeFileMode(srcInspectData.mode); - if (srcInspectData.type === "dir") { - return dir.createAsync(destPath, { mode }); - } else if (srcInspectData.type === "file") { - return copyFileAsync(srcPath, destPath, mode, context); - } else if (srcInspectData.type === "symlink") { - return copySymlinkAsync(srcPath, destPath); - } - return Promise.resolve(); - }; - var copyAsync = (from, to, options) => { - return new Promise((resolve, reject) => { - const opts = parseOptions(options, from); - checksBeforeCopyingAsync(from, to, opts).then(() => { - let allFilesDelivered = false; - let filesInProgress = 0; - treeWalker.async( - from, - { inspectOptions }, - (srcPath, item) => { - if (item) { - const rel = pathUtil.relative(from, srcPath); - const destPath = pathUtil.resolve(to, rel); - if (opts.allowedToCopy(srcPath, item, destPath)) { - filesInProgress += 1; - copyItemAsync(srcPath, item, destPath, opts).then(() => { - filesInProgress -= 1; - if (allFilesDelivered && filesInProgress === 0) { - resolve(); - } - }).catch(reject); - } - } - }, - (err) => { - if (err) { - reject(err); - } else { - allFilesDelivered = true; - if (allFilesDelivered && filesInProgress === 0) { - resolve(); - } - } - } - ); - }).catch(reject); - }); - }; - exports.validateInput = validateInput; - exports.sync = copySync; - exports.async = copyAsync; - } -}); -var require_move = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/move.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var validate = require_validate(); - var copy = require_copy(); - var dir = require_dir(); - var exists = require_exists(); - var remove = require_remove(); - var validateInput = (methodName, from, to, options) => { - const methodSignature = `${methodName}(from, to, [options])`; - validate.argument(methodSignature, "from", from, ["string"]); - validate.argument(methodSignature, "to", to, ["string"]); - validate.options(methodSignature, "options", options, { - overwrite: ["boolean"] - }); - }; - var parseOptions = (options) => { - const opts = options || {}; - return opts; - }; - var generateDestinationExistsError = (path2) => { - const err = new Error(`Destination path already exists ${path2}`); - err.code = "EEXIST"; - return err; - }; - var generateSourceDoesntExistError = (path2) => { - const err = new Error(`Path to move doesn't exist ${path2}`); - err.code = "ENOENT"; - return err; - }; - var moveSync = (from, to, options) => { - const opts = parseOptions(options); - if (exists.sync(to) !== false && opts.overwrite !== true) { - throw generateDestinationExistsError(to); - } - try { - fs2.renameSync(from, to); - } catch (err) { - if (err.code === "EISDIR" || err.code === "EPERM") { - remove.sync(to); - fs2.renameSync(from, to); - } else if (err.code === "EXDEV") { - copy.sync(from, to, { overwrite: true }); - remove.sync(from); - } else if (err.code === "ENOENT") { - if (!exists.sync(from)) { - throw generateSourceDoesntExistError(from); - } - dir.createSync(pathUtil.dirname(to)); - fs2.renameSync(from, to); - } else { - throw err; - } - } - }; - var ensureDestinationPathExistsAsync = (to) => { - return new Promise((resolve, reject) => { - const destDir = pathUtil.dirname(to); - exists.async(destDir).then((dstExists) => { - if (!dstExists) { - dir.createAsync(destDir).then(resolve, reject); - } else { - reject(); - } - }).catch(reject); - }); - }; - var moveAsync = (from, to, options) => { - const opts = parseOptions(options); - return new Promise((resolve, reject) => { - exists.async(to).then((destinationExists) => { - if (destinationExists !== false && opts.overwrite !== true) { - reject(generateDestinationExistsError(to)); - } else { - fs2.rename(from, to).then(resolve).catch((err) => { - if (err.code === "EISDIR" || err.code === "EPERM") { - remove.async(to).then(() => fs2.rename(from, to)).then(resolve, reject); - } else if (err.code === "EXDEV") { - copy.async(from, to, { overwrite: true }).then(() => remove.async(from)).then(resolve, reject); - } else if (err.code === "ENOENT") { - exists.async(from).then((srcExists) => { - if (!srcExists) { - reject(generateSourceDoesntExistError(from)); - } else { - ensureDestinationPathExistsAsync(to).then(() => { - return fs2.rename(from, to); - }).then(resolve, reject); - } - }).catch(reject); - } else { - reject(err); - } - }); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = moveSync; - exports.async = moveAsync; - } -}); -var require_read = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/read.js"(exports) { - "use strict"; - var fs2 = require_fs(); - var validate = require_validate(); - var supportedReturnAs = ["utf8", "buffer", "json", "jsonWithDates"]; - var validateInput = (methodName, path2, returnAs) => { - const methodSignature = `${methodName}(path, returnAs)`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.argument(methodSignature, "returnAs", returnAs, [ - "string", - "undefined" - ]); - if (returnAs && supportedReturnAs.indexOf(returnAs) === -1) { - throw new Error( - `Argument "returnAs" passed to ${methodSignature} must have one of values: ${supportedReturnAs.join( - ", " - )}` - ); - } - }; - var jsonDateParser = (key, value) => { - const reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/; - if (typeof value === "string") { - if (reISO.exec(value)) { - return new Date(value); - } - } - return value; - }; - var makeNicerJsonParsingError = (path2, err) => { - const nicerError = new Error( - `JSON parsing failed while reading ${path2} [${err}]` - ); - nicerError.originalError = err; - return nicerError; - }; - var readSync = (path2, returnAs) => { - const retAs = returnAs || "utf8"; - let data; - let encoding = "utf8"; - if (retAs === "buffer") { - encoding = null; - } - try { - data = fs2.readFileSync(path2, { encoding }); - } catch (err) { - if (err.code === "ENOENT") { - return void 0; - } - throw err; - } - try { - if (retAs === "json") { - data = JSON.parse(data); - } else if (retAs === "jsonWithDates") { - data = JSON.parse(data, jsonDateParser); - } - } catch (err) { - throw makeNicerJsonParsingError(path2, err); - } - return data; - }; - var readAsync = (path2, returnAs) => { - return new Promise((resolve, reject) => { - const retAs = returnAs || "utf8"; - let encoding = "utf8"; - if (retAs === "buffer") { - encoding = null; - } - fs2.readFile(path2, { encoding }).then((data) => { - try { - if (retAs === "json") { - resolve(JSON.parse(data)); - } else if (retAs === "jsonWithDates") { - resolve(JSON.parse(data, jsonDateParser)); - } else { - resolve(data); - } - } catch (err) { - reject(makeNicerJsonParsingError(path2, err)); - } - }).catch((err) => { - if (err.code === "ENOENT") { - resolve(void 0); - } else { - reject(err); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = readSync; - exports.async = readAsync; - } -}); -var require_rename = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/rename.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var move = require_move(); - var validate = require_validate(); - var validateInput = (methodName, path2, newName, options) => { - const methodSignature = `${methodName}(path, newName, [options])`; - validate.argument(methodSignature, "path", path2, ["string"]); - validate.argument(methodSignature, "newName", newName, ["string"]); - validate.options(methodSignature, "options", options, { - overwrite: ["boolean"] - }); - if (pathUtil.basename(newName) !== newName) { - throw new Error( - `Argument "newName" passed to ${methodSignature} should be a filename, not a path. Received "${newName}"` - ); - } - }; - var renameSync = (path2, newName, options) => { - const newPath = pathUtil.join(pathUtil.dirname(path2), newName); - move.sync(path2, newPath, options); - }; - var renameAsync = (path2, newName, options) => { - const newPath = pathUtil.join(pathUtil.dirname(path2), newName); - return move.async(path2, newPath, options); - }; - exports.validateInput = validateInput; - exports.sync = renameSync; - exports.async = renameAsync; - } -}); -var require_symlink = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/symlink.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = require_fs(); - var validate = require_validate(); - var dir = require_dir(); - var validateInput = (methodName, symlinkValue, path2) => { - const methodSignature = `${methodName}(symlinkValue, path)`; - validate.argument(methodSignature, "symlinkValue", symlinkValue, ["string"]); - validate.argument(methodSignature, "path", path2, ["string"]); - }; - var symlinkSync = (symlinkValue, path2) => { - try { - fs2.symlinkSync(symlinkValue, path2); - } catch (err) { - if (err.code === "ENOENT") { - dir.createSync(pathUtil.dirname(path2)); - fs2.symlinkSync(symlinkValue, path2); - } else { - throw err; - } - } - }; - var symlinkAsync = (symlinkValue, path2) => { - return new Promise((resolve, reject) => { - fs2.symlink(symlinkValue, path2).then(resolve).catch((err) => { - if (err.code === "ENOENT") { - dir.createAsync(pathUtil.dirname(path2)).then(() => { - return fs2.symlink(symlinkValue, path2); - }).then(resolve, reject); - } else { - reject(err); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = symlinkSync; - exports.async = symlinkAsync; - } -}); -var require_streams = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/streams.js"(exports) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - exports.createWriteStream = fs2.createWriteStream; - exports.createReadStream = fs2.createReadStream; - } -}); -var require_tmp_dir = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/tmp_dir.js"(exports) { - "use strict"; - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto"); - var dir = require_dir(); - var fs2 = require_fs(); - var validate = require_validate(); - var validateInput = (methodName, options) => { - const methodSignature = `${methodName}([options])`; - validate.options(methodSignature, "options", options, { - prefix: ["string"], - basePath: ["string"] - }); - }; - var getOptionsDefaults = (passedOptions, cwdPath) => { - passedOptions = passedOptions || {}; - const options = {}; - if (typeof passedOptions.prefix !== "string") { - options.prefix = ""; - } else { - options.prefix = passedOptions.prefix; - } - if (typeof passedOptions.basePath === "string") { - options.basePath = pathUtil.resolve(cwdPath, passedOptions.basePath); - } else { - options.basePath = os.tmpdir(); - } - return options; - }; - var randomStringLength = 32; - var tmpDirSync = (cwdPath, passedOptions) => { - const options = getOptionsDefaults(passedOptions, cwdPath); - const randomString = crypto.randomBytes(randomStringLength / 2).toString("hex"); - const dirPath = pathUtil.join( - options.basePath, - options.prefix + randomString - ); - try { - fs2.mkdirSync(dirPath); - } catch (err) { - if (err.code === "ENOENT") { - dir.sync(dirPath); - } else { - throw err; - } - } - return dirPath; - }; - var tmpDirAsync = (cwdPath, passedOptions) => { - return new Promise((resolve, reject) => { - const options = getOptionsDefaults(passedOptions, cwdPath); - crypto.randomBytes(randomStringLength / 2, (err, bytes) => { - if (err) { - reject(err); - } else { - const randomString = bytes.toString("hex"); - const dirPath = pathUtil.join( - options.basePath, - options.prefix + randomString - ); - fs2.mkdir(dirPath, (err2) => { - if (err2) { - if (err2.code === "ENOENT") { - dir.async(dirPath).then(() => { - resolve(dirPath); - }, reject); - } else { - reject(err2); - } - } else { - resolve(dirPath); - } - }); - } - }); - }); - }; - exports.validateInput = validateInput; - exports.sync = tmpDirSync; - exports.async = tmpDirAsync; - } -}); -var require_jetpack = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/lib/jetpack.js"(exports, module2) { - "use strict"; - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var pathUtil = (0, import_chunk_2ESYSVXG.__require)("path"); - var append = require_append(); - var dir = require_dir(); - var file = require_file(); - var find = require_find(); - var inspect = require_inspect(); - var inspectTree = require_inspect_tree(); - var copy = require_copy(); - var exists = require_exists(); - var list = require_list(); - var move = require_move(); - var read = require_read(); - var remove = require_remove(); - var rename = require_rename(); - var symlink = require_symlink(); - var streams = require_streams(); - var tmpDir = require_tmp_dir(); - var write = require_write(); - var jetpackContext = (cwdPath) => { - const getCwdPath = () => { - return cwdPath || process.cwd(); - }; - const cwd = function() { - if (arguments.length === 0) { - return getCwdPath(); - } - const args = Array.prototype.slice.call(arguments); - const pathParts = [getCwdPath()].concat(args); - return jetpackContext(pathUtil.resolve.apply(null, pathParts)); - }; - const resolvePath = (path2) => { - return pathUtil.resolve(getCwdPath(), path2); - }; - const getPath = function() { - Array.prototype.unshift.call(arguments, getCwdPath()); - return pathUtil.resolve.apply(null, arguments); - }; - const normalizeOptions = (options) => { - const opts = options || {}; - opts.cwd = getCwdPath(); - return opts; - }; - const api = { - cwd, - path: getPath, - append: (path2, data, options) => { - append.validateInput("append", path2, data, options); - append.sync(resolvePath(path2), data, options); - }, - appendAsync: (path2, data, options) => { - append.validateInput("appendAsync", path2, data, options); - return append.async(resolvePath(path2), data, options); - }, - copy: (from, to, options) => { - copy.validateInput("copy", from, to, options); - copy.sync(resolvePath(from), resolvePath(to), options); - }, - copyAsync: (from, to, options) => { - copy.validateInput("copyAsync", from, to, options); - return copy.async(resolvePath(from), resolvePath(to), options); - }, - createWriteStream: (path2, options) => { - return streams.createWriteStream(resolvePath(path2), options); - }, - createReadStream: (path2, options) => { - return streams.createReadStream(resolvePath(path2), options); - }, - dir: (path2, criteria) => { - dir.validateInput("dir", path2, criteria); - const normalizedPath = resolvePath(path2); - dir.sync(normalizedPath, criteria); - return cwd(normalizedPath); - }, - dirAsync: (path2, criteria) => { - dir.validateInput("dirAsync", path2, criteria); - return new Promise((resolve, reject) => { - const normalizedPath = resolvePath(path2); - dir.async(normalizedPath, criteria).then(() => { - resolve(cwd(normalizedPath)); - }, reject); - }); - }, - exists: (path2) => { - exists.validateInput("exists", path2); - return exists.sync(resolvePath(path2)); - }, - existsAsync: (path2) => { - exists.validateInput("existsAsync", path2); - return exists.async(resolvePath(path2)); - }, - file: (path2, criteria) => { - file.validateInput("file", path2, criteria); - file.sync(resolvePath(path2), criteria); - return api; - }, - fileAsync: (path2, criteria) => { - file.validateInput("fileAsync", path2, criteria); - return new Promise((resolve, reject) => { - file.async(resolvePath(path2), criteria).then(() => { - resolve(api); - }, reject); - }); - }, - find: (startPath, options) => { - if (typeof options === "undefined" && typeof startPath === "object") { - options = startPath; - startPath = "."; - } - find.validateInput("find", startPath, options); - return find.sync(resolvePath(startPath), normalizeOptions(options)); - }, - findAsync: (startPath, options) => { - if (typeof options === "undefined" && typeof startPath === "object") { - options = startPath; - startPath = "."; - } - find.validateInput("findAsync", startPath, options); - return find.async(resolvePath(startPath), normalizeOptions(options)); - }, - inspect: (path2, fieldsToInclude) => { - inspect.validateInput("inspect", path2, fieldsToInclude); - return inspect.sync(resolvePath(path2), fieldsToInclude); - }, - inspectAsync: (path2, fieldsToInclude) => { - inspect.validateInput("inspectAsync", path2, fieldsToInclude); - return inspect.async(resolvePath(path2), fieldsToInclude); - }, - inspectTree: (path2, options) => { - inspectTree.validateInput("inspectTree", path2, options); - return inspectTree.sync(resolvePath(path2), options); - }, - inspectTreeAsync: (path2, options) => { - inspectTree.validateInput("inspectTreeAsync", path2, options); - return inspectTree.async(resolvePath(path2), options); - }, - list: (path2) => { - list.validateInput("list", path2); - return list.sync(resolvePath(path2 || ".")); - }, - listAsync: (path2) => { - list.validateInput("listAsync", path2); - return list.async(resolvePath(path2 || ".")); - }, - move: (from, to, options) => { - move.validateInput("move", from, to, options); - move.sync(resolvePath(from), resolvePath(to), options); - }, - moveAsync: (from, to, options) => { - move.validateInput("moveAsync", from, to, options); - return move.async(resolvePath(from), resolvePath(to), options); - }, - read: (path2, returnAs) => { - read.validateInput("read", path2, returnAs); - return read.sync(resolvePath(path2), returnAs); - }, - readAsync: (path2, returnAs) => { - read.validateInput("readAsync", path2, returnAs); - return read.async(resolvePath(path2), returnAs); - }, - remove: (path2) => { - remove.validateInput("remove", path2); - remove.sync(resolvePath(path2 || ".")); - }, - removeAsync: (path2) => { - remove.validateInput("removeAsync", path2); - return remove.async(resolvePath(path2 || ".")); - }, - rename: (path2, newName, options) => { - rename.validateInput("rename", path2, newName, options); - rename.sync(resolvePath(path2), newName, options); - }, - renameAsync: (path2, newName, options) => { - rename.validateInput("renameAsync", path2, newName, options); - return rename.async(resolvePath(path2), newName, options); - }, - symlink: (symlinkValue, path2) => { - symlink.validateInput("symlink", symlinkValue, path2); - symlink.sync(symlinkValue, resolvePath(path2)); - }, - symlinkAsync: (symlinkValue, path2) => { - symlink.validateInput("symlinkAsync", symlinkValue, path2); - return symlink.async(symlinkValue, resolvePath(path2)); - }, - tmpDir: (options) => { - tmpDir.validateInput("tmpDir", options); - const pathOfCreatedDirectory = tmpDir.sync(getCwdPath(), options); - return cwd(pathOfCreatedDirectory); - }, - tmpDirAsync: (options) => { - tmpDir.validateInput("tmpDirAsync", options); - return new Promise((resolve, reject) => { - tmpDir.async(getCwdPath(), options).then((pathOfCreatedDirectory) => { - resolve(cwd(pathOfCreatedDirectory)); - }, reject); - }); - }, - write: (path2, data, options) => { - write.validateInput("write", path2, data, options); - write.sync(resolvePath(path2), data, options); - }, - writeAsync: (path2, data, options) => { - write.validateInput("writeAsync", path2, data, options); - return write.async(resolvePath(path2), data, options); - } - }; - if (util.inspect.custom !== void 0) { - api[util.inspect.custom] = () => { - return `[fs-jetpack CWD: ${getCwdPath()}]`; - }; - } - return api; - }; - module2.exports = jetpackContext; - } -}); -var require_main2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs-jetpack@5.1.0/node_modules/fs-jetpack/main.js"(exports, module2) { - "use strict"; - var jetpack = require_jetpack(); - module2.exports = jetpack(); - } -}); -var require_crypto_random_string = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/crypto-random-string@2.0.0/node_modules/crypto-random-string/index.js"(exports, module2) { - "use strict"; - var crypto = (0, import_chunk_2ESYSVXG.__require)("crypto"); - module2.exports = (length) => { - if (!Number.isFinite(length)) { - throw new TypeError("Expected a finite number"); - } - return crypto.randomBytes(Math.ceil(length / 2)).toString("hex").slice(0, length); - }; - } -}); -var require_unique_string = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/unique-string@2.0.0/node_modules/unique-string/index.js"(exports, module2) { - "use strict"; - var cryptoRandomString = require_crypto_random_string(); - module2.exports = () => cryptoRandomString(32); - } -}); -var require_temp_dir = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__"); - if (!global[tempDirectorySymbol]) { - Object.defineProperty(global, tempDirectorySymbol, { - value: fs2.realpathSync(os.tmpdir()) - }); - } - module2.exports = global[tempDirectorySymbol]; - } -}); -var require_array_union = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js"(exports, module2) { - "use strict"; - module2.exports = (...arguments_) => { - return [...new Set([].concat(...arguments_))]; - }; - } -}); -var require_merge2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module2) { - "use strict"; - var Stream = (0, import_chunk_2ESYSVXG.__require)("stream"); - var PassThrough = Stream.PassThrough; - var slice = Array.prototype.slice; - module2.exports = merge2; - function merge2() { - const streamsQueue = []; - const args = slice.call(arguments); - let merging = false; - let options = args[args.length - 1]; - if (options && !Array.isArray(options) && options.pipe == null) { - args.pop(); - } else { - options = {}; - } - const doEnd = options.end !== false; - const doPipeError = options.pipeError === true; - if (options.objectMode == null) { - options.objectMode = true; - } - if (options.highWaterMark == null) { - options.highWaterMark = 64 * 1024; - } - const mergedStream = PassThrough(options); - function addStream() { - for (let i = 0, len = arguments.length; i < len; i++) { - streamsQueue.push(pauseStreams(arguments[i], options)); - } - mergeStream(); - return this; - } - function mergeStream() { - if (merging) { - return; - } - merging = true; - let streams = streamsQueue.shift(); - if (!streams) { - process.nextTick(endStream); - return; - } - if (!Array.isArray(streams)) { - streams = [streams]; - } - let pipesCount = streams.length + 1; - function next() { - if (--pipesCount > 0) { - return; - } - merging = false; - mergeStream(); - } - function pipe(stream) { - function onend() { - stream.removeListener("merge2UnpipeEnd", onend); - stream.removeListener("end", onend); - if (doPipeError) { - stream.removeListener("error", onerror); - } - next(); - } - function onerror(err) { - mergedStream.emit("error", err); - } - if (stream._readableState.endEmitted) { - return next(); - } - stream.on("merge2UnpipeEnd", onend); - stream.on("end", onend); - if (doPipeError) { - stream.on("error", onerror); - } - stream.pipe(mergedStream, { end: false }); - stream.resume(); - } - for (let i = 0; i < streams.length; i++) { - pipe(streams[i]); - } - next(); - } - function endStream() { - merging = false; - mergedStream.emit("queueDrain"); - if (doEnd) { - mergedStream.end(); - } - } - mergedStream.setMaxListeners(0); - mergedStream.add = addStream; - mergedStream.on("unpipe", function(stream) { - stream.emit("merge2UnpipeEnd"); - }); - if (args.length) { - addStream.apply(null, args); - } - return mergedStream; - } - function pauseStreams(streams, options) { - if (!Array.isArray(streams)) { - if (!streams._readableState && streams.pipe) { - streams = streams.pipe(PassThrough(options)); - } - if (!streams._readableState || !streams.pause || !streams.pipe) { - throw new Error("Only readable stream can be merged."); - } - streams.pause(); - } else { - for (let i = 0, len = streams.length; i < len; i++) { - streams[i] = pauseStreams(streams[i], options); - } - } - return streams; - } - } -}); -var require_array = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/array.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitWhen = exports.flatten = void 0; - function flatten(items) { - return items.reduce((collection, item) => [].concat(collection, item), []); - } - exports.flatten = flatten; - function splitWhen(items, predicate) { - const result = [[]]; - let groupIndex = 0; - for (const item of items) { - if (predicate(item)) { - groupIndex++; - result[groupIndex] = []; - } else { - result[groupIndex].push(item); - } - } - return result; - } - exports.splitWhen = splitWhen; - } -}); -var require_errno = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/errno.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEnoentCodeError = void 0; - function isEnoentCodeError(error) { - return error.code === "ENOENT"; - } - exports.isEnoentCodeError = isEnoentCodeError; - } -}); -var require_fs2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } - }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; - } -}); -var require_path2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var IS_WINDOWS_PLATFORM = os.platform() === "win32"; - var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; - var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; - var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g; - var DOS_DEVICE_PATH_RE = /^\\\\([.?])/; - var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g; - function unixify(filepath) { - return filepath.replace(/\\/g, "/"); - } - exports.unixify = unixify; - function makeAbsolute(cwd, filepath) { - return path2.resolve(cwd, filepath); - } - exports.makeAbsolute = makeAbsolute; - function removeLeadingDotSegment(entry) { - if (entry.charAt(0) === ".") { - const secondCharactery = entry.charAt(1); - if (secondCharactery === "/" || secondCharactery === "\\") { - return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT); - } - } - return entry; - } - exports.removeLeadingDotSegment = removeLeadingDotSegment; - exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; - function escapeWindowsPath(pattern) { - return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); - } - exports.escapeWindowsPath = escapeWindowsPath; - function escapePosixPath(pattern) { - return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2"); - } - exports.escapePosixPath = escapePosixPath; - exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; - function convertWindowsPathToPattern(filepath) { - return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/"); - } - exports.convertWindowsPathToPattern = convertWindowsPathToPattern; - function convertPosixPathToPattern(filepath) { - return escapePosixPath(filepath); - } - exports.convertPosixPathToPattern = convertPosixPathToPattern; - } -}); -var require_is_extglob = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module2) { - "use strict"; - module2.exports = function isExtglob(str) { - if (typeof str !== "string" || str === "") { - return false; - } - var match; - while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) { - if (match[2]) return true; - str = str.slice(match.index + match[0].length); - } - return false; - }; - } -}); -var require_is_glob = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module2) { - "use strict"; - var isExtglob = require_is_extglob(); - var chars = { "{": "}", "(": ")", "[": "]" }; - var strictCheck = function(str) { - if (str[0] === "!") { - return true; - } - var index = 0; - var pipeIndex = -2; - var closeSquareIndex = -2; - var closeCurlyIndex = -2; - var closeParenIndex = -2; - var backSlashIndex = -2; - while (index < str.length) { - if (str[index] === "*") { - return true; - } - if (str[index + 1] === "?" && /[\].+)]/.test(str[index])) { - return true; - } - if (closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]") { - if (closeSquareIndex < index) { - closeSquareIndex = str.indexOf("]", index); - } - if (closeSquareIndex > index) { - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeSquareIndex) { - return true; - } - } - } - if (closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}") { - closeCurlyIndex = str.indexOf("}", index); - if (closeCurlyIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeCurlyIndex) { - return true; - } - } - } - if (closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")") { - closeParenIndex = str.indexOf(")", index); - if (closeParenIndex > index) { - backSlashIndex = str.indexOf("\\", index); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - if (pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|") { - if (pipeIndex < index) { - pipeIndex = str.indexOf("|", index); - } - if (pipeIndex !== -1 && str[pipeIndex + 1] !== ")") { - closeParenIndex = str.indexOf(")", pipeIndex); - if (closeParenIndex > pipeIndex) { - backSlashIndex = str.indexOf("\\", pipeIndex); - if (backSlashIndex === -1 || backSlashIndex > closeParenIndex) { - return true; - } - } - } - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } - } - return false; - }; - var relaxedCheck = function(str) { - if (str[0] === "!") { - return true; - } - var index = 0; - while (index < str.length) { - if (/[*?{}()[\]]/.test(str[index])) { - return true; - } - if (str[index] === "\\") { - var open = str[index + 1]; - index += 2; - var close = chars[open]; - if (close) { - var n = str.indexOf(close, index); - if (n !== -1) { - index = n + 1; - } - } - if (str[index] === "!") { - return true; - } - } else { - index++; - } - } - return false; - }; - module2.exports = function isGlob(str, options) { - if (typeof str !== "string" || str === "") { - return false; - } - if (isExtglob(str)) { - return true; - } - var check = strictCheck; - if (options && options.strict === false) { - check = relaxedCheck; - } - return check(str); - }; - } -}); -var require_glob_parent = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module2) { - "use strict"; - var isGlob = require_is_glob(); - var pathPosixDirname = (0, import_chunk_2ESYSVXG.__require)("path").posix.dirname; - var isWin32 = (0, import_chunk_2ESYSVXG.__require)("os").platform() === "win32"; - var slash = "/"; - var backslash = /\\/g; - var enclosure = /[\{\[].*[\}\]]$/; - var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/; - var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g; - module2.exports = function globParent(str, opts) { - var options = Object.assign({ flipBackslashes: true }, opts); - if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) { - str = str.replace(backslash, slash); - } - if (enclosure.test(str)) { - str += slash; - } - str += "a"; - do { - str = pathPosixDirname(str); - } while (isGlob(str) || globby.test(str)); - return str.replace(escaped, "$1"); - }; - } -}); -var require_utils = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js"(exports) { - "use strict"; - exports.isInteger = (num) => { - if (typeof num === "number") { - return Number.isInteger(num); - } - if (typeof num === "string" && num.trim() !== "") { - return Number.isInteger(Number(num)); - } - return false; - }; - exports.find = (node, type) => node.nodes.find((node2) => node2.type === type); - exports.exceedsLimit = (min, max, step = 1, limit) => { - if (limit === false) return false; - if (!exports.isInteger(min) || !exports.isInteger(max)) return false; - return (Number(max) - Number(min)) / Number(step) >= limit; - }; - exports.escapeNode = (block, n = 0, type) => { - let node = block.nodes[n]; - if (!node) return; - if (type && node.type === type || node.type === "open" || node.type === "close") { - if (node.escaped !== true) { - node.value = "\\" + node.value; - node.escaped = true; - } - } - }; - exports.encloseBrace = (node) => { - if (node.type !== "brace") return false; - if (node.commas >> 0 + node.ranges >> 0 === 0) { - node.invalid = true; - return true; - } - return false; - }; - exports.isInvalidBrace = (block) => { - if (block.type !== "brace") return false; - if (block.invalid === true || block.dollar) return true; - if (block.commas >> 0 + block.ranges >> 0 === 0) { - block.invalid = true; - return true; - } - if (block.open !== true || block.close !== true) { - block.invalid = true; - return true; - } - return false; - }; - exports.isOpenOrClose = (node) => { - if (node.type === "open" || node.type === "close") { - return true; - } - return node.open === true || node.close === true; - }; - exports.reduce = (nodes) => nodes.reduce((acc, node) => { - if (node.type === "text") acc.push(node.value); - if (node.type === "range") node.type = "text"; - return acc; - }, []); - exports.flatten = (...args) => { - const result = []; - const flat = (arr) => { - for (let i = 0; i < arr.length; i++) { - let ele = arr[i]; - Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); - } - return result; - }; - flat(args); - return result; - }; - } -}); -var require_stringify = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js"(exports, module2) { - "use strict"; - var utils = require_utils(); - module2.exports = (ast, options = {}) => { - let stringify = (node, parent = {}) => { - let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options.escapeInvalid === true; - let output = ""; - if (node.value) { - if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { - return "\\" + node.value; - } - return node.value; - } - if (node.value) { - return node.value; - } - if (node.nodes) { - for (let child of node.nodes) { - output += stringify(child); - } - } - return output; - }; - return stringify(ast); - }; - } -}); -var require_is_number = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module2) { - "use strict"; - module2.exports = function(num) { - if (typeof num === "number") { - return num - num === 0; - } - if (typeof num === "string" && num.trim() !== "") { - return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); - } - return false; - }; - } -}); -var require_to_regex_range = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module2) { - "use strict"; - var isNumber = require_is_number(); - var toRegexRange = (min, max, options) => { - if (isNumber(min) === false) { - throw new TypeError("toRegexRange: expected the first argument to be a number"); - } - if (max === void 0 || min === max) { - return String(min); - } - if (isNumber(max) === false) { - throw new TypeError("toRegexRange: expected the second argument to be a number."); - } - let opts = { relaxZeros: true, ...options }; - if (typeof opts.strictZeros === "boolean") { - opts.relaxZeros = opts.strictZeros === false; - } - let relax = String(opts.relaxZeros); - let shorthand = String(opts.shorthand); - let capture = String(opts.capture); - let wrap = String(opts.wrap); - let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap; - if (toRegexRange.cache.hasOwnProperty(cacheKey)) { - return toRegexRange.cache[cacheKey].result; - } - let a = Math.min(min, max); - let b = Math.max(min, max); - if (Math.abs(a - b) === 1) { - let result = min + "|" + max; - if (opts.capture) { - return `(${result})`; - } - if (opts.wrap === false) { - return result; - } - return `(?:${result})`; - } - let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a, b }; - let positives = []; - let negatives = []; - if (isPadded) { - state.isPadded = isPadded; - state.maxLen = String(state.max).length; - } - if (a < 0) { - let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a), state, opts); - a = state.a = 0; - } - if (b >= 0) { - positives = splitToPatterns(a, b, state, opts); - } - state.negatives = negatives; - state.positives = positives; - state.result = collatePatterns(negatives, positives, opts); - if (opts.capture === true) { - state.result = `(${state.result})`; - } else if (opts.wrap !== false && positives.length + negatives.length > 1) { - state.result = `(?:${state.result})`; - } - toRegexRange.cache[cacheKey] = state; - return state.result; - }; - function collatePatterns(neg, pos, options) { - let onlyNegative = filterPatterns(neg, pos, "-", false, options) || []; - let onlyPositive = filterPatterns(pos, neg, "", false, options) || []; - let intersected = filterPatterns(neg, pos, "-?", true, options) || []; - let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); - return subpatterns.join("|"); - } - function splitToRanges(min, max) { - let nines = 1; - let zeros = 1; - let stop = countNines(min, nines); - let stops = /* @__PURE__ */ new Set([max]); - while (min <= stop && stop <= max) { - stops.add(stop); - nines += 1; - stop = countNines(min, nines); - } - stop = countZeros(max + 1, zeros) - 1; - while (min < stop && stop <= max) { - stops.add(stop); - zeros += 1; - stop = countZeros(max + 1, zeros) - 1; - } - stops = [...stops]; - stops.sort(compare); - return stops; - } - function rangeToPattern(start, stop, options) { - if (start === stop) { - return { pattern: start, count: [], digits: 0 }; - } - let zipped = zip(start, stop); - let digits = zipped.length; - let pattern = ""; - let count = 0; - for (let i = 0; i < digits; i++) { - let [startDigit, stopDigit] = zipped[i]; - if (startDigit === stopDigit) { - pattern += startDigit; - } else if (startDigit !== "0" || stopDigit !== "9") { - pattern += toCharacterClass(startDigit, stopDigit, options); - } else { - count++; - } - } - if (count) { - pattern += options.shorthand === true ? "\\d" : "[0-9]"; - } - return { pattern, count: [count], digits }; - } - function splitToPatterns(min, max, tok, options) { - let ranges = splitToRanges(min, max); - let tokens = []; - let start = min; - let prev; - for (let i = 0; i < ranges.length; i++) { - let max2 = ranges[i]; - let obj = rangeToPattern(String(start), String(max2), options); - let zeros = ""; - if (!tok.isPadded && prev && prev.pattern === obj.pattern) { - if (prev.count.length > 1) { - prev.count.pop(); - } - prev.count.push(obj.count[0]); - prev.string = prev.pattern + toQuantifier(prev.count); - start = max2 + 1; - continue; - } - if (tok.isPadded) { - zeros = padZeros(max2, tok, options); - } - obj.string = zeros + obj.pattern + toQuantifier(obj.count); - tokens.push(obj); - start = max2 + 1; - prev = obj; - } - return tokens; - } - function filterPatterns(arr, comparison, prefix, intersection, options) { - let result = []; - for (let ele of arr) { - let { string } = ele; - if (!intersection && !contains(comparison, "string", string)) { - result.push(prefix + string); - } - if (intersection && contains(comparison, "string", string)) { - result.push(prefix + string); - } - } - return result; - } - function zip(a, b) { - let arr = []; - for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]); - return arr; - } - function compare(a, b) { - return a > b ? 1 : b > a ? -1 : 0; - } - function contains(arr, key, val) { - return arr.some((ele) => ele[key] === val); - } - function countNines(min, len) { - return Number(String(min).slice(0, -len) + "9".repeat(len)); - } - function countZeros(integer, zeros) { - return integer - integer % Math.pow(10, zeros); - } - function toQuantifier(digits) { - let [start = 0, stop = ""] = digits; - if (stop || start > 1) { - return `{${start + (stop ? "," + stop : "")}}`; - } - return ""; - } - function toCharacterClass(a, b, options) { - return `[${a}${b - a === 1 ? "" : "-"}${b}]`; - } - function hasPadding(str) { - return /^-?(0+)\d/.test(str); - } - function padZeros(value, tok, options) { - if (!tok.isPadded) { - return value; - } - let diff = Math.abs(tok.maxLen - String(value).length); - let relax = options.relaxZeros !== false; - switch (diff) { - case 0: - return ""; - case 1: - return relax ? "0?" : "0"; - case 2: - return relax ? "0{0,2}" : "00"; - default: { - return relax ? `0{0,${diff}}` : `0{${diff}}`; - } - } - } - toRegexRange.cache = {}; - toRegexRange.clearCache = () => toRegexRange.cache = {}; - module2.exports = toRegexRange; - } -}); -var require_fill_range = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module2) { - "use strict"; - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var toRegexRange = require_to_regex_range(); - var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - var transform = (toNumber) => { - return (value) => toNumber === true ? Number(value) : String(value); - }; - var isValidValue = (value) => { - return typeof value === "number" || typeof value === "string" && value !== ""; - }; - var isNumber = (num) => Number.isInteger(+num); - var zeros = (input) => { - let value = `${input}`; - let index = -1; - if (value[0] === "-") value = value.slice(1); - if (value === "0") return false; - while (value[++index] === "0") ; - return index > 0; - }; - var stringify = (start, end, options) => { - if (typeof start === "string" || typeof end === "string") { - return true; - } - return options.stringify === true; - }; - var pad = (input, maxLength, toNumber) => { - if (maxLength > 0) { - let dash = input[0] === "-" ? "-" : ""; - if (dash) input = input.slice(1); - input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0"); - } - if (toNumber === false) { - return String(input); - } - return input; - }; - var toMaxLen = (input, maxLength) => { - let negative = input[0] === "-" ? "-" : ""; - if (negative) { - input = input.slice(1); - maxLength--; - } - while (input.length < maxLength) input = "0" + input; - return negative ? "-" + input : input; - }; - var toSequence = (parts, options, maxLen) => { - parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0); - let prefix = options.capture ? "" : "?:"; - let positives = ""; - let negatives = ""; - let result; - if (parts.positives.length) { - positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|"); - } - if (parts.negatives.length) { - negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`; - } - if (positives && negatives) { - result = `${positives}|${negatives}`; - } else { - result = positives || negatives; - } - if (options.wrap) { - return `(${prefix}${result})`; - } - return result; - }; - var toRange = (a, b, isNumbers, options) => { - if (isNumbers) { - return toRegexRange(a, b, { wrap: false, ...options }); - } - let start = String.fromCharCode(a); - if (a === b) return start; - let stop = String.fromCharCode(b); - return `[${start}-${stop}]`; - }; - var toRegex = (start, end, options) => { - if (Array.isArray(start)) { - let wrap = options.wrap === true; - let prefix = options.capture ? "" : "?:"; - return wrap ? `(${prefix}${start.join("|")})` : start.join("|"); - } - return toRegexRange(start, end, options); - }; - var rangeError = (...args) => { - return new RangeError("Invalid range arguments: " + util.inspect(...args)); - }; - var invalidRange = (start, end, options) => { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - }; - var invalidStep = (step, options) => { - if (options.strictRanges === true) { - throw new TypeError(`Expected step "${step}" to be a number`); - } - return []; - }; - var fillNumbers = (start, end, step = 1, options = {}) => { - let a = Number(start); - let b = Number(end); - if (!Number.isInteger(a) || !Number.isInteger(b)) { - if (options.strictRanges === true) throw rangeError([start, end]); - return []; - } - if (a === 0) a = 0; - if (b === 0) b = 0; - let descending = a > b; - let startString = String(start); - let endString = String(end); - let stepString = String(step); - step = Math.max(Math.abs(step), 1); - let padded = zeros(startString) || zeros(endString) || zeros(stepString); - let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; - let toNumber = padded === false && stringify(start, end, options) === false; - let format = options.transform || transform(toNumber); - if (options.toRegex && step === 1) { - return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options); - } - let parts = { negatives: [], positives: [] }; - let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - if (options.toRegex === true && step > 1) { - push(a); - } else { - range.push(pad(format(a, index), maxLen, toNumber)); - } - a = descending ? a - step : a + step; - index++; - } - if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options }); - } - return range; - }; - var fillLetters = (start, end, step = 1, options = {}) => { - if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) { - return invalidRange(start, end, options); - } - let format = options.transform || ((val) => String.fromCharCode(val)); - let a = `${start}`.charCodeAt(0); - let b = `${end}`.charCodeAt(0); - let descending = a > b; - let min = Math.min(a, b); - let max = Math.max(a, b); - if (options.toRegex && step === 1) { - return toRange(min, max, false, options); - } - let range = []; - let index = 0; - while (descending ? a >= b : a <= b) { - range.push(format(a, index)); - a = descending ? a - step : a + step; - index++; - } - if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); - } - return range; - }; - var fill = (start, end, step, options = {}) => { - if (end == null && isValidValue(start)) { - return [start]; - } - if (!isValidValue(start) || !isValidValue(end)) { - return invalidRange(start, end, options); - } - if (typeof step === "function") { - return fill(start, end, 1, { transform: step }); - } - if (isObject(step)) { - return fill(start, end, 0, step); - } - let opts = { ...options }; - if (opts.capture === true) opts.wrap = true; - step = step || opts.step || 1; - if (!isNumber(step)) { - if (step != null && !isObject(step)) return invalidStep(step, opts); - return fill(start, end, 1, step); - } - if (isNumber(start) && isNumber(end)) { - return fillNumbers(start, end, step, opts); - } - return fillLetters(start, end, Math.max(Math.abs(step), 1), opts); - }; - module2.exports = fill; - } -}); -var require_compile = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js"(exports, module2) { - "use strict"; - var fill = require_fill_range(); - var utils = require_utils(); - var compile = (ast, options = {}) => { - let walk = (node, parent = {}) => { - let invalidBlock = utils.isInvalidBrace(parent); - let invalidNode = node.invalid === true && options.escapeInvalid === true; - let invalid = invalidBlock === true || invalidNode === true; - let prefix = options.escapeInvalid === true ? "\\" : ""; - let output = ""; - if (node.isOpen === true) { - return prefix + node.value; - } - if (node.isClose === true) { - return prefix + node.value; - } - if (node.type === "open") { - return invalid ? prefix + node.value : "("; - } - if (node.type === "close") { - return invalid ? prefix + node.value : ")"; - } - if (node.type === "comma") { - return node.prev.type === "comma" ? "" : invalid ? node.value : "|"; - } - if (node.value) { - return node.value; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - let range = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; - } - } - if (node.nodes) { - for (let child of node.nodes) { - output += walk(child, node); - } - } - return output; - }; - return walk(ast); - }; - module2.exports = compile; - } -}); -var require_expand = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js"(exports, module2) { - "use strict"; - var fill = require_fill_range(); - var stringify = require_stringify(); - var utils = require_utils(); - var append = (queue = "", stash = "", enclose = false) => { - let result = []; - queue = [].concat(queue); - stash = [].concat(stash); - if (!stash.length) return queue; - if (!queue.length) { - return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash; - } - for (let item of queue) { - if (Array.isArray(item)) { - for (let value of item) { - result.push(append(value, stash, enclose)); - } - } else { - for (let ele of stash) { - if (enclose === true && typeof ele === "string") ele = `{${ele}}`; - result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); - } - } - } - return utils.flatten(result); - }; - var expand = (ast, options = {}) => { - let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit; - let walk = (node, parent = {}) => { - node.queue = []; - let p = parent; - let q = parent.queue; - while (p.type !== "brace" && p.type !== "root" && p.parent) { - p = p.parent; - q = p.queue; - } - if (node.invalid || node.dollar) { - q.push(append(q.pop(), stringify(node, options))); - return; - } - if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { - q.push(append(q.pop(), ["{}"])); - return; - } - if (node.nodes && node.ranges > 0) { - let args = utils.reduce(node.nodes); - if (utils.exceedsLimit(...args, options.step, rangeLimit)) { - throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); - } - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); - } - q.push(append(q.pop(), range)); - node.nodes = []; - return; - } - let enclose = utils.encloseBrace(node); - let queue = node.queue; - let block = node; - while (block.type !== "brace" && block.type !== "root" && block.parent) { - block = block.parent; - queue = block.queue; - } - for (let i = 0; i < node.nodes.length; i++) { - let child = node.nodes[i]; - if (child.type === "comma" && node.type === "brace") { - if (i === 1) queue.push(""); - queue.push(""); - continue; - } - if (child.type === "close") { - q.push(append(q.pop(), queue, enclose)); - continue; - } - if (child.value && child.type !== "open") { - queue.push(append(queue.pop(), child.value)); - continue; - } - if (child.nodes) { - walk(child, node); - } - } - return queue; - }; - return utils.flatten(walk(ast)); - }; - module2.exports = expand; - } -}); -var require_constants = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js"(exports, module2) { - "use strict"; - module2.exports = { - MAX_LENGTH: 1024 * 64, - // Digits - CHAR_0: "0", - /* 0 */ - CHAR_9: "9", - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: "A", - /* A */ - CHAR_LOWERCASE_A: "a", - /* a */ - CHAR_UPPERCASE_Z: "Z", - /* Z */ - CHAR_LOWERCASE_Z: "z", - /* z */ - CHAR_LEFT_PARENTHESES: "(", - /* ( */ - CHAR_RIGHT_PARENTHESES: ")", - /* ) */ - CHAR_ASTERISK: "*", - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: "&", - /* & */ - CHAR_AT: "@", - /* @ */ - CHAR_BACKSLASH: "\\", - /* \ */ - CHAR_BACKTICK: "`", - /* ` */ - CHAR_CARRIAGE_RETURN: "\r", - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: "^", - /* ^ */ - CHAR_COLON: ":", - /* : */ - CHAR_COMMA: ",", - /* , */ - CHAR_DOLLAR: "$", - /* . */ - CHAR_DOT: ".", - /* . */ - CHAR_DOUBLE_QUOTE: '"', - /* " */ - CHAR_EQUAL: "=", - /* = */ - CHAR_EXCLAMATION_MARK: "!", - /* ! */ - CHAR_FORM_FEED: "\f", - /* \f */ - CHAR_FORWARD_SLASH: "/", - /* / */ - CHAR_HASH: "#", - /* # */ - CHAR_HYPHEN_MINUS: "-", - /* - */ - CHAR_LEFT_ANGLE_BRACKET: "<", - /* < */ - CHAR_LEFT_CURLY_BRACE: "{", - /* { */ - CHAR_LEFT_SQUARE_BRACKET: "[", - /* [ */ - CHAR_LINE_FEED: "\n", - /* \n */ - CHAR_NO_BREAK_SPACE: "\xA0", - /* \u00A0 */ - CHAR_PERCENT: "%", - /* % */ - CHAR_PLUS: "+", - /* + */ - CHAR_QUESTION_MARK: "?", - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: ">", - /* > */ - CHAR_RIGHT_CURLY_BRACE: "}", - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: "]", - /* ] */ - CHAR_SEMICOLON: ";", - /* ; */ - CHAR_SINGLE_QUOTE: "'", - /* ' */ - CHAR_SPACE: " ", - /* */ - CHAR_TAB: " ", - /* \t */ - CHAR_UNDERSCORE: "_", - /* _ */ - CHAR_VERTICAL_LINE: "|", - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" - /* \uFEFF */ - }; - } -}); -var require_parse2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports, module2) { - "use strict"; - var stringify = require_stringify(); - var { - MAX_LENGTH, - CHAR_BACKSLASH, - /* \ */ - CHAR_BACKTICK, - /* ` */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_RIGHT_SQUARE_BRACKET, - /* ] */ - CHAR_DOUBLE_QUOTE, - /* " */ - CHAR_SINGLE_QUOTE, - /* ' */ - CHAR_NO_BREAK_SPACE, - CHAR_ZERO_WIDTH_NOBREAK_SPACE - } = require_constants(); - var parse = (input, options = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - let opts = options || {}; - let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - if (input.length > max) { - throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); - } - let ast = { type: "root", input, nodes: [] }; - let stack = [ast]; - let block = ast; - let prev = ast; - let brackets = 0; - let length = input.length; - let index = 0; - let depth = 0; - let value; - let memo = {}; - const advance = () => input[index++]; - const push = (node) => { - if (node.type === "text" && prev.type === "dot") { - prev.type = "text"; - } - if (prev && prev.type === "text" && node.type === "text") { - prev.value += node.value; - return; - } - block.nodes.push(node); - node.parent = block; - node.prev = prev; - prev = node; - return node; - }; - push({ type: "bos" }); - while (index < length) { - block = stack[stack.length - 1]; - value = advance(); - if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { - continue; - } - if (value === CHAR_BACKSLASH) { - push({ type: "text", value: (options.keepEscaping ? value : "") + advance() }); - continue; - } - if (value === CHAR_RIGHT_SQUARE_BRACKET) { - push({ type: "text", value: "\\" + value }); - continue; - } - if (value === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - let closed = true; - let next; - while (index < length && (next = advance())) { - value += next; - if (next === CHAR_LEFT_SQUARE_BRACKET) { - brackets++; - continue; - } - if (next === CHAR_BACKSLASH) { - value += advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - brackets--; - if (brackets === 0) { - break; - } - } - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_PARENTHESES) { - block = push({ type: "paren", nodes: [] }); - stack.push(block); - push({ type: "text", value }); - continue; - } - if (value === CHAR_RIGHT_PARENTHESES) { - if (block.type !== "paren") { - push({ type: "text", value }); - continue; - } - block = stack.pop(); - push({ type: "text", value }); - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { - let open = value; - let next; - if (options.keepQuotes !== true) { - value = ""; - } - while (index < length && (next = advance())) { - if (next === CHAR_BACKSLASH) { - value += next + advance(); - continue; - } - if (next === open) { - if (options.keepQuotes === true) value += next; - break; - } - value += next; - } - push({ type: "text", value }); - continue; - } - if (value === CHAR_LEFT_CURLY_BRACE) { - depth++; - let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true; - let brace = { - type: "brace", - open: true, - close: false, - dollar, - depth, - commas: 0, - ranges: 0, - nodes: [] - }; - block = push(brace); - stack.push(block); - push({ type: "open", value }); - continue; - } - if (value === CHAR_RIGHT_CURLY_BRACE) { - if (block.type !== "brace") { - push({ type: "text", value }); - continue; - } - let type = "close"; - block = stack.pop(); - block.close = true; - push({ type, value }); - depth--; - block = stack[stack.length - 1]; - continue; - } - if (value === CHAR_COMMA && depth > 0) { - if (block.ranges > 0) { - block.ranges = 0; - let open = block.nodes.shift(); - block.nodes = [open, { type: "text", value: stringify(block) }]; - } - push({ type: "comma", value }); - block.commas++; - continue; - } - if (value === CHAR_DOT && depth > 0 && block.commas === 0) { - let siblings = block.nodes; - if (depth === 0 || siblings.length === 0) { - push({ type: "text", value }); - continue; - } - if (prev.type === "dot") { - block.range = []; - prev.value += value; - prev.type = "range"; - if (block.nodes.length !== 3 && block.nodes.length !== 5) { - block.invalid = true; - block.ranges = 0; - prev.type = "text"; - continue; - } - block.ranges++; - block.args = []; - continue; - } - if (prev.type === "range") { - siblings.pop(); - let before = siblings[siblings.length - 1]; - before.value += prev.value + value; - prev = before; - block.ranges--; - continue; - } - push({ type: "dot", value }); - continue; - } - push({ type: "text", value }); - } - do { - block = stack.pop(); - if (block.type !== "root") { - block.nodes.forEach((node) => { - if (!node.nodes) { - if (node.type === "open") node.isOpen = true; - if (node.type === "close") node.isClose = true; - if (!node.nodes) node.type = "text"; - node.invalid = true; - } - }); - let parent = stack[stack.length - 1]; - let index2 = parent.nodes.indexOf(block); - parent.nodes.splice(index2, 1, ...block.nodes); - } - } while (stack.length > 0); - push({ type: "eos" }); - return ast; - }; - module2.exports = parse; - } -}); -var require_braces = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js"(exports, module2) { - "use strict"; - var stringify = require_stringify(); - var compile = require_compile(); - var expand = require_expand(); - var parse = require_parse2(); - var braces = (input, options = {}) => { - let output = []; - if (Array.isArray(input)) { - for (let pattern of input) { - let result = braces.create(pattern, options); - if (Array.isArray(result)) { - output.push(...result); - } else { - output.push(result); - } - } - } else { - output = [].concat(braces.create(input, options)); - } - if (options && options.expand === true && options.nodupes === true) { - output = [...new Set(output)]; - } - return output; - }; - braces.parse = (input, options = {}) => parse(input, options); - braces.stringify = (input, options = {}) => { - if (typeof input === "string") { - return stringify(braces.parse(input, options), options); - } - return stringify(input, options); - }; - braces.compile = (input, options = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options); - } - return compile(input, options); - }; - braces.expand = (input, options = {}) => { - if (typeof input === "string") { - input = braces.parse(input, options); - } - let result = expand(input, options); - if (options.noempty === true) { - result = result.filter(Boolean); - } - if (options.nodupes === true) { - result = [...new Set(result)]; - } - return result; - }; - braces.create = (input, options = {}) => { - if (input === "" || input.length < 3) { - return [input]; - } - return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options); - }; - module2.exports = braces; - } -}); -var require_constants2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var WIN_SLASH = "\\\\/"; - var WIN_NO_SLASH = `[^${WIN_SLASH}]`; - var DOT_LITERAL = "\\."; - var PLUS_LITERAL = "\\+"; - var QMARK_LITERAL = "\\?"; - var SLASH_LITERAL = "\\/"; - var ONE_CHAR = "(?=.)"; - var QMARK = "[^/]"; - var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; - var START_ANCHOR = `(?:^|${SLASH_LITERAL})`; - var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; - var NO_DOT = `(?!${DOT_LITERAL})`; - var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; - var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; - var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; - var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; - var STAR = `${QMARK}*?`; - var POSIX_CHARS = { - DOT_LITERAL, - PLUS_LITERAL, - QMARK_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - QMARK, - END_ANCHOR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK_NO_DOT, - STAR, - START_ANCHOR - }; - var WINDOWS_CHARS = { - ...POSIX_CHARS, - SLASH_LITERAL: `[${WIN_SLASH}]`, - QMARK: WIN_NO_SLASH, - STAR: `${WIN_NO_SLASH}*?`, - DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, - NO_DOT: `(?!${DOT_LITERAL})`, - NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, - NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - QMARK_NO_DOT: `[^.${WIN_SLASH}]`, - START_ANCHOR: `(?:^|[${WIN_SLASH}])`, - END_ANCHOR: `(?:[${WIN_SLASH}]|$)` - }; - var POSIX_REGEX_SOURCE = { - alnum: "a-zA-Z0-9", - alpha: "a-zA-Z", - ascii: "\\x00-\\x7F", - blank: " \\t", - cntrl: "\\x00-\\x1F\\x7F", - digit: "0-9", - graph: "\\x21-\\x7E", - lower: "a-z", - print: "\\x20-\\x7E ", - punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", - space: " \\t\\r\\n\\v\\f", - upper: "A-Z", - word: "A-Za-z0-9_", - xdigit: "A-Fa-f0-9" - }; - module2.exports = { - MAX_LENGTH: 1024 * 64, - POSIX_REGEX_SOURCE, - // regular expressions - REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, - REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, - REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, - REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, - REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, - REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, - // Replace globs with equivalent patterns to reduce parsing time. - REPLACEMENTS: { - "***": "*", - "**/**": "**", - "**/**/**": "**" - }, - // Digits - CHAR_0: 48, - /* 0 */ - CHAR_9: 57, - /* 9 */ - // Alphabet chars. - CHAR_UPPERCASE_A: 65, - /* A */ - CHAR_LOWERCASE_A: 97, - /* a */ - CHAR_UPPERCASE_Z: 90, - /* Z */ - CHAR_LOWERCASE_Z: 122, - /* z */ - CHAR_LEFT_PARENTHESES: 40, - /* ( */ - CHAR_RIGHT_PARENTHESES: 41, - /* ) */ - CHAR_ASTERISK: 42, - /* * */ - // Non-alphabetic chars. - CHAR_AMPERSAND: 38, - /* & */ - CHAR_AT: 64, - /* @ */ - CHAR_BACKWARD_SLASH: 92, - /* \ */ - CHAR_CARRIAGE_RETURN: 13, - /* \r */ - CHAR_CIRCUMFLEX_ACCENT: 94, - /* ^ */ - CHAR_COLON: 58, - /* : */ - CHAR_COMMA: 44, - /* , */ - CHAR_DOT: 46, - /* . */ - CHAR_DOUBLE_QUOTE: 34, - /* " */ - CHAR_EQUAL: 61, - /* = */ - CHAR_EXCLAMATION_MARK: 33, - /* ! */ - CHAR_FORM_FEED: 12, - /* \f */ - CHAR_FORWARD_SLASH: 47, - /* / */ - CHAR_GRAVE_ACCENT: 96, - /* ` */ - CHAR_HASH: 35, - /* # */ - CHAR_HYPHEN_MINUS: 45, - /* - */ - CHAR_LEFT_ANGLE_BRACKET: 60, - /* < */ - CHAR_LEFT_CURLY_BRACE: 123, - /* { */ - CHAR_LEFT_SQUARE_BRACKET: 91, - /* [ */ - CHAR_LINE_FEED: 10, - /* \n */ - CHAR_NO_BREAK_SPACE: 160, - /* \u00A0 */ - CHAR_PERCENT: 37, - /* % */ - CHAR_PLUS: 43, - /* + */ - CHAR_QUESTION_MARK: 63, - /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: 62, - /* > */ - CHAR_RIGHT_CURLY_BRACE: 125, - /* } */ - CHAR_RIGHT_SQUARE_BRACKET: 93, - /* ] */ - CHAR_SEMICOLON: 59, - /* ; */ - CHAR_SINGLE_QUOTE: 39, - /* ' */ - CHAR_SPACE: 32, - /* */ - CHAR_TAB: 9, - /* \t */ - CHAR_UNDERSCORE: 95, - /* _ */ - CHAR_VERTICAL_LINE: 124, - /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, - /* \uFEFF */ - SEP: path2.sep, - /** - * Create EXTGLOB_CHARS - */ - extglobChars(chars) { - return { - "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` }, - "?": { type: "qmark", open: "(?:", close: ")?" }, - "+": { type: "plus", open: "(?:", close: ")+" }, - "*": { type: "star", open: "(?:", close: ")*" }, - "@": { type: "at", open: "(?:", close: ")" } - }; - }, - /** - * Create GLOB_CHARS - */ - globChars(win32) { - return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; - } - }; - } -}); -var require_utils2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var win32 = process.platform === "win32"; - var { - REGEX_BACKSLASH, - REGEX_REMOVE_BACKSLASH, - REGEX_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_GLOBAL - } = require_constants2(); - exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); - exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str); - exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str); - exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1"); - exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/"); - exports.removeBackslashes = (str) => { - return str.replace(REGEX_REMOVE_BACKSLASH, (match) => { - return match === "\\" ? "" : match; - }); - }; - exports.supportsLookbehinds = () => { - const segs = process.version.slice(1).split(".").map(Number); - if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) { - return true; - } - return false; - }; - exports.isWindows = (options) => { - if (options && typeof options.windows === "boolean") { - return options.windows; - } - return win32 === true || path2.sep === "\\"; - }; - exports.escapeLast = (input, char, lastIdx) => { - const idx = input.lastIndexOf(char, lastIdx); - if (idx === -1) return input; - if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1); - return `${input.slice(0, idx)}\\${input.slice(idx)}`; - }; - exports.removePrefix = (input, state = {}) => { - let output = input; - if (output.startsWith("./")) { - output = output.slice(2); - state.prefix = "./"; - } - return output; - }; - exports.wrapOutput = (input, state = {}, options = {}) => { - const prepend = options.contains ? "" : "^"; - const append = options.contains ? "" : "$"; - let output = `${prepend}(?:${input})${append}`; - if (state.negated === true) { - output = `(?:^(?!${output}).*$)`; - } - return output; - }; - } -}); -var require_scan = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module2) { - "use strict"; - var utils = require_utils2(); - var { - CHAR_ASTERISK, - /* * */ - CHAR_AT, - /* @ */ - CHAR_BACKWARD_SLASH, - /* \ */ - CHAR_COMMA, - /* , */ - CHAR_DOT, - /* . */ - CHAR_EXCLAMATION_MARK, - /* ! */ - CHAR_FORWARD_SLASH, - /* / */ - CHAR_LEFT_CURLY_BRACE, - /* { */ - CHAR_LEFT_PARENTHESES, - /* ( */ - CHAR_LEFT_SQUARE_BRACKET, - /* [ */ - CHAR_PLUS, - /* + */ - CHAR_QUESTION_MARK, - /* ? */ - CHAR_RIGHT_CURLY_BRACE, - /* } */ - CHAR_RIGHT_PARENTHESES, - /* ) */ - CHAR_RIGHT_SQUARE_BRACKET - /* ] */ - } = require_constants2(); - var isPathSeparator = (code) => { - return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; - }; - var depth = (token) => { - if (token.isPrefix !== true) { - token.depth = token.isGlobstar ? Infinity : 1; - } - }; - var scan = (input, options) => { - const opts = options || {}; - const length = input.length - 1; - const scanToEnd = opts.parts === true || opts.scanToEnd === true; - const slashes = []; - const tokens = []; - const parts = []; - let str = input; - let index = -1; - let start = 0; - let lastIndex = 0; - let isBrace = false; - let isBracket = false; - let isGlob = false; - let isExtglob = false; - let isGlobstar = false; - let braceEscaped = false; - let backslashes = false; - let negated = false; - let negatedExtglob = false; - let finished = false; - let braces = 0; - let prev; - let code; - let token = { value: "", depth: 0, isGlob: false }; - const eos = () => index >= length; - const peek = () => str.charCodeAt(index + 1); - const advance = () => { - prev = code; - return str.charCodeAt(++index); - }; - while (index < length) { - code = advance(); - let next; - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - if (code === CHAR_LEFT_CURLY_BRACE) { - braceEscaped = true; - } - continue; - } - if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { - braces++; - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (code === CHAR_LEFT_CURLY_BRACE) { - braces++; - continue; - } - if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (braceEscaped !== true && code === CHAR_COMMA) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_RIGHT_CURLY_BRACE) { - braces--; - if (braces === 0) { - braceEscaped = false; - isBrace = token.isBrace = true; - finished = true; - break; - } - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_FORWARD_SLASH) { - slashes.push(index); - tokens.push(token); - token = { value: "", depth: 0, isGlob: false }; - if (finished === true) continue; - if (prev === CHAR_DOT && index === start + 1) { - start += 2; - continue; - } - lastIndex = index + 1; - continue; - } - if (opts.noext !== true) { - const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK; - if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - isExtglob = token.isExtglob = true; - finished = true; - if (code === CHAR_EXCLAMATION_MARK && index === start) { - negatedExtglob = true; - } - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - isGlob = token.isGlob = true; - finished = true; - break; - } - } - continue; - } - break; - } - } - if (code === CHAR_ASTERISK) { - if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true; - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_QUESTION_MARK) { - isGlob = token.isGlob = true; - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - if (code === CHAR_LEFT_SQUARE_BRACKET) { - while (eos() !== true && (next = advance())) { - if (next === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - isBracket = token.isBracket = true; - isGlob = token.isGlob = true; - finished = true; - break; - } - } - if (scanToEnd === true) { - continue; - } - break; - } - if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { - negated = token.negated = true; - start++; - continue; - } - if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_LEFT_PARENTHESES) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - if (code === CHAR_RIGHT_PARENTHESES) { - finished = true; - break; - } - } - continue; - } - break; - } - if (isGlob === true) { - finished = true; - if (scanToEnd === true) { - continue; - } - break; - } - } - if (opts.noext === true) { - isExtglob = false; - isGlob = false; - } - let base = str; - let prefix = ""; - let glob = ""; - if (start > 0) { - prefix = str.slice(0, start); - str = str.slice(start); - lastIndex -= start; - } - if (base && isGlob === true && lastIndex > 0) { - base = str.slice(0, lastIndex); - glob = str.slice(lastIndex); - } else if (isGlob === true) { - base = ""; - glob = str; - } else { - base = str; - } - if (base && base !== "" && base !== "/" && base !== str) { - if (isPathSeparator(base.charCodeAt(base.length - 1))) { - base = base.slice(0, -1); - } - } - if (opts.unescape === true) { - if (glob) glob = utils.removeBackslashes(glob); - if (base && backslashes === true) { - base = utils.removeBackslashes(base); - } - } - const state = { - prefix, - input, - start, - base, - glob, - isBrace, - isBracket, - isGlob, - isExtglob, - isGlobstar, - negated, - negatedExtglob - }; - if (opts.tokens === true) { - state.maxDepth = 0; - if (!isPathSeparator(code)) { - tokens.push(token); - } - state.tokens = tokens; - } - if (opts.parts === true || opts.tokens === true) { - let prevIndex; - for (let idx = 0; idx < slashes.length; idx++) { - const n = prevIndex ? prevIndex + 1 : start; - const i = slashes[idx]; - const value = input.slice(n, i); - if (opts.tokens) { - if (idx === 0 && start !== 0) { - tokens[idx].isPrefix = true; - tokens[idx].value = prefix; - } else { - tokens[idx].value = value; - } - depth(tokens[idx]); - state.maxDepth += tokens[idx].depth; - } - if (idx !== 0 || value !== "") { - parts.push(value); - } - prevIndex = i; - } - if (prevIndex && prevIndex + 1 < input.length) { - const value = input.slice(prevIndex + 1); - parts.push(value); - if (opts.tokens) { - tokens[tokens.length - 1].value = value; - depth(tokens[tokens.length - 1]); - state.maxDepth += tokens[tokens.length - 1].depth; - } - } - state.slashes = slashes; - state.parts = parts; - } - return state; - }; - module2.exports = scan; - } -}); -var require_parse3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module2) { - "use strict"; - var constants = require_constants2(); - var utils = require_utils2(); - var { - MAX_LENGTH, - POSIX_REGEX_SOURCE, - REGEX_NON_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_BACKREF, - REPLACEMENTS - } = constants; - var expandRange = (args, options) => { - if (typeof options.expandRange === "function") { - return options.expandRange(...args, options); - } - args.sort(); - const value = `[${args.join("-")}]`; - try { - new RegExp(value); - } catch (ex) { - return args.map((v) => utils.escapeRegex(v)).join(".."); - } - return value; - }; - var syntaxError = (type, char) => { - return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; - }; - var parse = (input, options) => { - if (typeof input !== "string") { - throw new TypeError("Expected a string"); - } - input = REPLACEMENTS[input] || input; - const opts = { ...options }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - let len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - const bos = { type: "bos", value: "", output: opts.prepend || "" }; - const tokens = [bos]; - const capture = opts.capture ? "" : "?:"; - const win32 = utils.isWindows(options); - const PLATFORM_CHARS = constants.globChars(win32); - const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS); - const { - DOT_LITERAL, - PLUS_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK, - QMARK_NO_DOT, - STAR, - START_ANCHOR - } = PLATFORM_CHARS; - const globstar = (opts2) => { - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const nodot = opts.dot ? "" : NO_DOT; - const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; - let star = opts.bash === true ? globstar(opts) : STAR; - if (opts.capture) { - star = `(${star})`; - } - if (typeof opts.noext === "boolean") { - opts.noextglob = opts.noext; - } - const state = { - input, - index: -1, - start: 0, - dot: opts.dot === true, - consumed: "", - output: "", - prefix: "", - backtrack: false, - negated: false, - brackets: 0, - braces: 0, - parens: 0, - quotes: 0, - globstar: false, - tokens - }; - input = utils.removePrefix(input, state); - len = input.length; - const extglobs = []; - const braces = []; - const stack = []; - let prev = bos; - let value; - const eos = () => state.index === len - 1; - const peek = state.peek = (n = 1) => input[state.index + n]; - const advance = state.advance = () => input[++state.index] || ""; - const remaining = () => input.slice(state.index + 1); - const consume = (value2 = "", num = 0) => { - state.consumed += value2; - state.index += num; - }; - const append = (token) => { - state.output += token.output != null ? token.output : token.value; - consume(token.value); - }; - const negate = () => { - let count = 1; - while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) { - advance(); - state.start++; - count++; - } - if (count % 2 === 0) { - return false; - } - state.negated = true; - state.start++; - return true; - }; - const increment = (type) => { - state[type]++; - stack.push(type); - }; - const decrement = (type) => { - state[type]--; - stack.pop(); - }; - const push = (tok) => { - if (prev.type === "globstar") { - const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"); - const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren"); - if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) { - state.output = state.output.slice(0, -prev.output.length); - prev.type = "star"; - prev.value = "*"; - prev.output = star; - state.output += prev.output; - } - } - if (extglobs.length && tok.type !== "paren") { - extglobs[extglobs.length - 1].inner += tok.value; - } - if (tok.value || tok.output) append(tok); - if (prev && prev.type === "text" && tok.type === "text") { - prev.value += tok.value; - prev.output = (prev.output || "") + tok.value; - return; - } - tok.prev = prev; - tokens.push(tok); - prev = tok; - }; - const extglobOpen = (type, value2) => { - const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" }; - token.prev = prev; - token.parens = state.parens; - token.output = state.output; - const output = (opts.capture ? "(" : "") + token.open; - increment("parens"); - push({ type, value: value2, output: state.output ? "" : ONE_CHAR }); - push({ type: "paren", extglob: true, value: advance(), output }); - extglobs.push(token); - }; - const extglobClose = (token) => { - let output = token.close + (opts.capture ? ")" : ""); - let rest; - if (token.type === "negate") { - let extglobStar = star; - if (token.inner && token.inner.length > 1 && token.inner.includes("/")) { - extglobStar = globstar(opts); - } - if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { - output = token.close = `)$))${extglobStar}`; - } - if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - const expression = parse(rest, { ...options, fastpaths: false }).output; - output = token.close = `)${expression})${extglobStar})`; - } - if (token.prev.type === "bos") { - state.negatedExtglob = true; - } - } - push({ type: "paren", extglob: true, value, output }); - decrement("parens"); - }; - if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) { - let backslashes = false; - let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => { - if (first === "\\") { - backslashes = true; - return m; - } - if (first === "?") { - if (esc) { - return esc + first + (rest ? QMARK.repeat(rest.length) : ""); - } - if (index === 0) { - return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : ""); - } - return QMARK.repeat(chars.length); - } - if (first === ".") { - return DOT_LITERAL.repeat(chars.length); - } - if (first === "*") { - if (esc) { - return esc + first + (rest ? star : ""); - } - return star; - } - return esc ? m : `\\${m}`; - }); - if (backslashes === true) { - if (opts.unescape === true) { - output = output.replace(/\\/g, ""); - } else { - output = output.replace(/\\+/g, (m) => { - return m.length % 2 === 0 ? "\\\\" : m ? "\\" : ""; - }); - } - } - if (output === input && opts.contains === true) { - state.output = input; - return state; - } - state.output = utils.wrapOutput(output, state, options); - return state; - } - while (!eos()) { - value = advance(); - if (value === "\0") { - continue; - } - if (value === "\\") { - const next = peek(); - if (next === "/" && opts.bash !== true) { - continue; - } - if (next === "." || next === ";") { - continue; - } - if (!next) { - value += "\\"; - push({ type: "text", value }); - continue; - } - const match = /^\\+/.exec(remaining()); - let slashes = 0; - if (match && match[0].length > 2) { - slashes = match[0].length; - state.index += slashes; - if (slashes % 2 !== 0) { - value += "\\"; - } - } - if (opts.unescape === true) { - value = advance(); - } else { - value += advance(); - } - if (state.brackets === 0) { - push({ type: "text", value }); - continue; - } - } - if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) { - if (opts.posix !== false && value === ":") { - const inner = prev.value.slice(1); - if (inner.includes("[")) { - prev.posix = true; - if (inner.includes(":")) { - const idx = prev.value.lastIndexOf("["); - const pre = prev.value.slice(0, idx); - const rest2 = prev.value.slice(idx + 2); - const posix = POSIX_REGEX_SOURCE[rest2]; - if (posix) { - prev.value = pre + posix; - state.backtrack = true; - advance(); - if (!bos.output && tokens.indexOf(prev) === 1) { - bos.output = ONE_CHAR; - } - continue; - } - } - } - } - if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") { - value = `\\${value}`; - } - if (value === "]" && (prev.value === "[" || prev.value === "[^")) { - value = `\\${value}`; - } - if (opts.posix === true && value === "!" && prev.value === "[") { - value = "^"; - } - prev.value += value; - append({ value }); - continue; - } - if (state.quotes === 1 && value !== '"') { - value = utils.escapeRegex(value); - prev.value += value; - append({ value }); - continue; - } - if (value === '"') { - state.quotes = state.quotes === 1 ? 0 : 1; - if (opts.keepQuotes === true) { - push({ type: "text", value }); - } - continue; - } - if (value === "(") { - increment("parens"); - push({ type: "paren", value }); - continue; - } - if (value === ")") { - if (state.parens === 0 && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("opening", "(")); - } - const extglob = extglobs[extglobs.length - 1]; - if (extglob && state.parens === extglob.parens + 1) { - extglobClose(extglobs.pop()); - continue; - } - push({ type: "paren", value, output: state.parens ? ")" : "\\)" }); - decrement("parens"); - continue; - } - if (value === "[") { - if (opts.nobracket === true || !remaining().includes("]")) { - if (opts.nobracket !== true && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("closing", "]")); - } - value = `\\${value}`; - } else { - increment("brackets"); - } - push({ type: "bracket", value }); - continue; - } - if (value === "]") { - if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) { - push({ type: "text", value, output: `\\${value}` }); - continue; - } - if (state.brackets === 0) { - if (opts.strictBrackets === true) { - throw new SyntaxError(syntaxError("opening", "[")); - } - push({ type: "text", value, output: `\\${value}` }); - continue; - } - decrement("brackets"); - const prevValue = prev.value.slice(1); - if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) { - value = `/${value}`; - } - prev.value += value; - append({ value }); - if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) { - continue; - } - const escaped = utils.escapeRegex(prev.value); - state.output = state.output.slice(0, -prev.value.length); - if (opts.literalBrackets === true) { - state.output += escaped; - prev.value = escaped; - continue; - } - prev.value = `(${capture}${escaped}|${prev.value})`; - state.output += prev.value; - continue; - } - if (value === "{" && opts.nobrace !== true) { - increment("braces"); - const open = { - type: "brace", - value, - output: "(", - outputIndex: state.output.length, - tokensIndex: state.tokens.length - }; - braces.push(open); - push(open); - continue; - } - if (value === "}") { - const brace = braces[braces.length - 1]; - if (opts.nobrace === true || !brace) { - push({ type: "text", value, output: value }); - continue; - } - let output = ")"; - if (brace.dots === true) { - const arr = tokens.slice(); - const range = []; - for (let i = arr.length - 1; i >= 0; i--) { - tokens.pop(); - if (arr[i].type === "brace") { - break; - } - if (arr[i].type !== "dots") { - range.unshift(arr[i].value); - } - } - output = expandRange(range, opts); - state.backtrack = true; - } - if (brace.comma !== true && brace.dots !== true) { - const out = state.output.slice(0, brace.outputIndex); - const toks = state.tokens.slice(brace.tokensIndex); - brace.value = brace.output = "\\{"; - value = output = "\\}"; - state.output = out; - for (const t of toks) { - state.output += t.output || t.value; - } - } - push({ type: "brace", value, output }); - decrement("braces"); - braces.pop(); - continue; - } - if (value === "|") { - if (extglobs.length > 0) { - extglobs[extglobs.length - 1].conditions++; - } - push({ type: "text", value }); - continue; - } - if (value === ",") { - let output = value; - const brace = braces[braces.length - 1]; - if (brace && stack[stack.length - 1] === "braces") { - brace.comma = true; - output = "|"; - } - push({ type: "comma", value, output }); - continue; - } - if (value === "/") { - if (prev.type === "dot" && state.index === state.start + 1) { - state.start = state.index + 1; - state.consumed = ""; - state.output = ""; - tokens.pop(); - prev = bos; - continue; - } - push({ type: "slash", value, output: SLASH_LITERAL }); - continue; - } - if (value === ".") { - if (state.braces > 0 && prev.type === "dot") { - if (prev.value === ".") prev.output = DOT_LITERAL; - const brace = braces[braces.length - 1]; - prev.type = "dots"; - prev.output += value; - prev.value += value; - brace.dots = true; - continue; - } - if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") { - push({ type: "text", value, output: DOT_LITERAL }); - continue; - } - push({ type: "dot", value, output: DOT_LITERAL }); - continue; - } - if (value === "?") { - const isGroup = prev && prev.value === "("; - if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - extglobOpen("qmark", value); - continue; - } - if (prev && prev.type === "paren") { - const next = peek(); - let output = value; - if (next === "<" && !utils.supportsLookbehinds()) { - throw new Error("Node.js v10 or higher is required for regex lookbehinds"); - } - if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) { - output = `\\${value}`; - } - push({ type: "text", value, output }); - continue; - } - if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) { - push({ type: "qmark", value, output: QMARK_NO_DOT }); - continue; - } - push({ type: "qmark", value, output: QMARK }); - continue; - } - if (value === "!") { - if (opts.noextglob !== true && peek() === "(") { - if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) { - extglobOpen("negate", value); - continue; - } - } - if (opts.nonegate !== true && state.index === 0) { - negate(); - continue; - } - } - if (value === "+") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - extglobOpen("plus", value); - continue; - } - if (prev && prev.value === "(" || opts.regex === false) { - push({ type: "plus", value, output: PLUS_LITERAL }); - continue; - } - if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) { - push({ type: "plus", value }); - continue; - } - push({ type: "plus", value: PLUS_LITERAL }); - continue; - } - if (value === "@") { - if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { - push({ type: "at", extglob: true, value, output: "" }); - continue; - } - push({ type: "text", value }); - continue; - } - if (value !== "*") { - if (value === "$" || value === "^") { - value = `\\${value}`; - } - const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); - if (match) { - value += match[0]; - state.index += match[0].length; - } - push({ type: "text", value }); - continue; - } - if (prev && (prev.type === "globstar" || prev.star === true)) { - prev.type = "star"; - prev.star = true; - prev.value += value; - prev.output = star; - state.backtrack = true; - state.globstar = true; - consume(value); - continue; - } - let rest = remaining(); - if (opts.noextglob !== true && /^\([^?]/.test(rest)) { - extglobOpen("star", value); - continue; - } - if (prev.type === "star") { - if (opts.noglobstar === true) { - consume(value); - continue; - } - const prior = prev.prev; - const before = prior.prev; - const isStart = prior.type === "slash" || prior.type === "bos"; - const afterStar = before && (before.type === "star" || before.type === "globstar"); - if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) { - push({ type: "star", value, output: "" }); - continue; - } - const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"); - const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren"); - if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) { - push({ type: "star", value, output: "" }); - continue; - } - while (rest.slice(0, 3) === "/**") { - const after = input[state.index + 4]; - if (after && after !== "/") { - break; - } - rest = rest.slice(3); - consume("/**", 3); - } - if (prior.type === "bos" && eos()) { - prev.type = "globstar"; - prev.value += value; - prev.output = globstar(opts); - state.output = prev.output; - state.globstar = true; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) { - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"); - prev.value += value; - state.globstar = true; - state.output += prior.output + prev.output; - consume(value); - continue; - } - if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") { - const end = rest[1] !== void 0 ? "|$" : ""; - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - prev.type = "globstar"; - prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; - prev.value += value; - state.output += prior.output + prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); - continue; - } - if (prior.type === "bos" && rest[0] === "/") { - prev.type = "globstar"; - prev.value += value; - prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; - state.output = prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: "slash", value: "/", output: "" }); - continue; - } - state.output = state.output.slice(0, -prev.output.length); - prev.type = "globstar"; - prev.output = globstar(opts); - prev.value += value; - state.output += prev.output; - state.globstar = true; - consume(value); - continue; - } - const token = { type: "star", value, output: star }; - if (opts.bash === true) { - token.output = ".*?"; - if (prev.type === "bos" || prev.type === "slash") { - token.output = nodot + token.output; - } - push(token); - continue; - } - if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) { - token.output = value; - push(token); - continue; - } - if (state.index === state.start || prev.type === "slash" || prev.type === "dot") { - if (prev.type === "dot") { - state.output += NO_DOT_SLASH; - prev.output += NO_DOT_SLASH; - } else if (opts.dot === true) { - state.output += NO_DOTS_SLASH; - prev.output += NO_DOTS_SLASH; - } else { - state.output += nodot; - prev.output += nodot; - } - if (peek() !== "*") { - state.output += ONE_CHAR; - prev.output += ONE_CHAR; - } - } - push(token); - } - while (state.brackets > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]")); - state.output = utils.escapeLast(state.output, "["); - decrement("brackets"); - } - while (state.parens > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")")); - state.output = utils.escapeLast(state.output, "("); - decrement("parens"); - } - while (state.braces > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}")); - state.output = utils.escapeLast(state.output, "{"); - decrement("braces"); - } - if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) { - push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }); - } - if (state.backtrack === true) { - state.output = ""; - for (const token of state.tokens) { - state.output += token.output != null ? token.output : token.value; - if (token.suffix) { - state.output += token.suffix; - } - } - } - return state; - }; - parse.fastpaths = (input, options) => { - const opts = { ...options }; - const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - const len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - input = REPLACEMENTS[input] || input; - const win32 = utils.isWindows(options); - const { - DOT_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOTS_SLASH, - STAR, - START_ANCHOR - } = constants.globChars(win32); - const nodot = opts.dot ? NO_DOTS : NO_DOT; - const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; - const capture = opts.capture ? "" : "?:"; - const state = { negated: false, prefix: "" }; - let star = opts.bash === true ? ".*?" : STAR; - if (opts.capture) { - star = `(${star})`; - } - const globstar = (opts2) => { - if (opts2.noglobstar === true) return star; - return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - const create = (str) => { - switch (str) { - case "*": - return `${nodot}${ONE_CHAR}${star}`; - case ".*": - return `${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*.*": - return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "*/*": - return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; - case "**": - return nodot + globstar(opts); - case "**/*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; - case "**/*.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - case "**/.*": - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; - default: { - const match = /^(.*?)\.(\w+)$/.exec(str); - if (!match) return; - const source2 = create(match[1]); - if (!source2) return; - return source2 + DOT_LITERAL + match[2]; - } - } - }; - const output = utils.removePrefix(input, state); - let source = create(output); - if (source && opts.strictSlashes !== true) { - source += `${SLASH_LITERAL}?`; - } - return source; - }; - module2.exports = parse; - } -}); -var require_picomatch = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var scan = require_scan(); - var parse = require_parse3(); - var utils = require_utils2(); - var constants = require_constants2(); - var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); - var picomatch = (glob, options, returnState = false) => { - if (Array.isArray(glob)) { - const fns = glob.map((input) => picomatch(input, options, returnState)); - const arrayMatcher = (str) => { - for (const isMatch of fns) { - const state2 = isMatch(str); - if (state2) return state2; - } - return false; - }; - return arrayMatcher; - } - const isState = isObject(glob) && glob.tokens && glob.input; - if (glob === "" || typeof glob !== "string" && !isState) { - throw new TypeError("Expected pattern to be a non-empty string"); - } - const opts = options || {}; - const posix = utils.isWindows(options); - const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true); - const state = regex.state; - delete regex.state; - let isIgnored = () => false; - if (opts.ignore) { - const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null }; - isIgnored = picomatch(opts.ignore, ignoreOpts, returnState); - } - const matcher = (input, returnObject = false) => { - const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }); - const result = { glob, state, regex, posix, input, output, match, isMatch }; - if (typeof opts.onResult === "function") { - opts.onResult(result); - } - if (isMatch === false) { - result.isMatch = false; - return returnObject ? result : false; - } - if (isIgnored(input)) { - if (typeof opts.onIgnore === "function") { - opts.onIgnore(result); - } - result.isMatch = false; - return returnObject ? result : false; - } - if (typeof opts.onMatch === "function") { - opts.onMatch(result); - } - return returnObject ? result : true; - }; - if (returnState) { - matcher.state = state; - } - return matcher; - }; - picomatch.test = (input, regex, options, { glob, posix } = {}) => { - if (typeof input !== "string") { - throw new TypeError("Expected input to be a string"); - } - if (input === "") { - return { isMatch: false, output: "" }; - } - const opts = options || {}; - const format = opts.format || (posix ? utils.toPosixSlashes : null); - let match = input === glob; - let output = match && format ? format(input) : input; - if (match === false) { - output = format ? format(input) : input; - match = output === glob; - } - if (match === false || opts.capture === true) { - if (opts.matchBase === true || opts.basename === true) { - match = picomatch.matchBase(input, regex, options, posix); - } else { - match = regex.exec(output); - } - } - return { isMatch: Boolean(match), match, output }; - }; - picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => { - const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options); - return regex.test(path2.basename(input)); - }; - picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - picomatch.parse = (pattern, options) => { - if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options)); - return parse(pattern, { ...options, fastpaths: false }); - }; - picomatch.scan = (input, options) => scan(input, options); - picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => { - if (returnOutput === true) { - return state.output; - } - const opts = options || {}; - const prepend = opts.contains ? "" : "^"; - const append = opts.contains ? "" : "$"; - let source = `${prepend}(?:${state.output})${append}`; - if (state && state.negated === true) { - source = `^(?!${source}).*$`; - } - const regex = picomatch.toRegex(source, options); - if (returnState === true) { - regex.state = state; - } - return regex; - }; - picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => { - if (!input || typeof input !== "string") { - throw new TypeError("Expected a non-empty string"); - } - let parsed = { negated: false, fastpaths: true }; - if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) { - parsed.output = parse.fastpaths(input, options); - } - if (!parsed.output) { - parsed = parse(input, options); - } - return picomatch.compileRe(parsed, options, returnOutput, returnState); - }; - picomatch.toRegex = (source, options) => { - try { - const opts = options || {}; - return new RegExp(source, opts.flags || (opts.nocase ? "i" : "")); - } catch (err) { - if (options && options.debug === true) throw err; - return /$^/; - } - }; - picomatch.constants = constants; - module2.exports = picomatch; - } -}); -var require_picomatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module2) { - "use strict"; - module2.exports = require_picomatch(); - } -}); -var require_micromatch = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"(exports, module2) { - "use strict"; - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var braces = require_braces(); - var picomatch = require_picomatch2(); - var utils = require_utils2(); - var isEmptyString = (val) => val === "" || val === "./"; - var micromatch = (list, patterns, options) => { - patterns = [].concat(patterns); - list = [].concat(list); - let omit = /* @__PURE__ */ new Set(); - let keep = /* @__PURE__ */ new Set(); - let items = /* @__PURE__ */ new Set(); - let negatives = 0; - let onResult = (state) => { - items.add(state.output); - if (options && options.onResult) { - options.onResult(state); - } - }; - for (let i = 0; i < patterns.length; i++) { - let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true); - let negated = isMatch.state.negated || isMatch.state.negatedExtglob; - if (negated) negatives++; - for (let item of list) { - let matched = isMatch(item, true); - let match = negated ? !matched.isMatch : matched.isMatch; - if (!match) continue; - if (negated) { - omit.add(matched.output); - } else { - omit.delete(matched.output); - keep.add(matched.output); - } - } - } - let result = negatives === patterns.length ? [...items] : [...keep]; - let matches = result.filter((item) => !omit.has(item)); - if (options && matches.length === 0) { - if (options.failglob === true) { - throw new Error(`No matches found for "${patterns.join(", ")}"`); - } - if (options.nonull === true || options.nullglob === true) { - return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns; - } - } - return matches; - }; - micromatch.match = micromatch; - micromatch.matcher = (pattern, options) => picomatch(pattern, options); - micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); - micromatch.any = micromatch.isMatch; - micromatch.not = (list, patterns, options = {}) => { - patterns = [].concat(patterns).map(String); - let result = /* @__PURE__ */ new Set(); - let items = []; - let onResult = (state) => { - if (options.onResult) options.onResult(state); - items.push(state.output); - }; - let matches = new Set(micromatch(list, patterns, { ...options, onResult })); - for (let item of items) { - if (!matches.has(item)) { - result.add(item); - } - } - return [...result]; - }; - micromatch.contains = (str, pattern, options) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - if (Array.isArray(pattern)) { - return pattern.some((p) => micromatch.contains(str, p, options)); - } - if (typeof pattern === "string") { - if (isEmptyString(str) || isEmptyString(pattern)) { - return false; - } - if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) { - return true; - } - } - return micromatch.isMatch(str, pattern, { ...options, contains: true }); - }; - micromatch.matchKeys = (obj, patterns, options) => { - if (!utils.isObject(obj)) { - throw new TypeError("Expected the first argument to be an object"); - } - let keys = micromatch(Object.keys(obj), patterns, options); - let res = {}; - for (let key of keys) res[key] = obj[key]; - return res; - }; - micromatch.some = (list, patterns, options) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (items.some((item) => isMatch(item))) { - return true; - } - } - return false; - }; - micromatch.every = (list, patterns, options) => { - let items = [].concat(list); - for (let pattern of [].concat(patterns)) { - let isMatch = picomatch(String(pattern), options); - if (!items.every((item) => isMatch(item))) { - return false; - } - } - return true; - }; - micromatch.all = (str, patterns, options) => { - if (typeof str !== "string") { - throw new TypeError(`Expected a string: "${util.inspect(str)}"`); - } - return [].concat(patterns).every((p) => picomatch(p, options)(str)); - }; - micromatch.capture = (glob, input, options) => { - let posix = utils.isWindows(options); - let regex = picomatch.makeRe(String(glob), { ...options, capture: true }); - let match = regex.exec(posix ? utils.toPosixSlashes(input) : input); - if (match) { - return match.slice(1).map((v) => v === void 0 ? "" : v); - } - }; - micromatch.makeRe = (...args) => picomatch.makeRe(...args); - micromatch.scan = (...args) => picomatch.scan(...args); - micromatch.parse = (patterns, options) => { - let res = []; - for (let pattern of [].concat(patterns || [])) { - for (let str of braces(String(pattern), options)) { - res.push(picomatch.parse(str, options)); - } - } - return res; - }; - micromatch.braces = (pattern, options) => { - if (typeof pattern !== "string") throw new TypeError("Expected a string"); - if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) { - return [pattern]; - } - return braces(pattern, options); - }; - micromatch.braceExpand = (pattern, options) => { - if (typeof pattern !== "string") throw new TypeError("Expected a string"); - return micromatch.braces(pattern, { ...options, expand: true }); - }; - module2.exports = micromatch; - } -}); -var require_pattern = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/pattern.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var globParent = require_glob_parent(); - var micromatch = require_micromatch(); - var GLOBSTAR = "**"; - var ESCAPE_SYMBOL = "\\"; - var COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; - var REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; - var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; - var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; - var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; - var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; - function isStaticPattern(pattern, options = {}) { - return !isDynamicPattern(pattern, options); - } - exports.isStaticPattern = isStaticPattern; - function isDynamicPattern(pattern, options = {}) { - if (pattern === "") { - return false; - } - if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) { - return true; - } - if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) { - return true; - } - if (options.braceExpansion !== false && hasBraceExpansion(pattern)) { - return true; - } - return false; - } - exports.isDynamicPattern = isDynamicPattern; - function hasBraceExpansion(pattern) { - const openingBraceIndex = pattern.indexOf("{"); - if (openingBraceIndex === -1) { - return false; - } - const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1); - if (closingBraceIndex === -1) { - return false; - } - const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex); - return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent); - } - function convertToPositivePattern(pattern) { - return isNegativePattern(pattern) ? pattern.slice(1) : pattern; - } - exports.convertToPositivePattern = convertToPositivePattern; - function convertToNegativePattern(pattern) { - return "!" + pattern; - } - exports.convertToNegativePattern = convertToNegativePattern; - function isNegativePattern(pattern) { - return pattern.startsWith("!") && pattern[1] !== "("; - } - exports.isNegativePattern = isNegativePattern; - function isPositivePattern(pattern) { - return !isNegativePattern(pattern); - } - exports.isPositivePattern = isPositivePattern; - function getNegativePatterns(patterns) { - return patterns.filter(isNegativePattern); - } - exports.getNegativePatterns = getNegativePatterns; - function getPositivePatterns(patterns) { - return patterns.filter(isPositivePattern); - } - exports.getPositivePatterns = getPositivePatterns; - function getPatternsInsideCurrentDirectory(patterns) { - return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern)); - } - exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory; - function getPatternsOutsideCurrentDirectory(patterns) { - return patterns.filter(isPatternRelatedToParentDirectory); - } - exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory; - function isPatternRelatedToParentDirectory(pattern) { - return pattern.startsWith("..") || pattern.startsWith("./.."); - } - exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory; - function getBaseDirectory(pattern) { - return globParent(pattern, { flipBackslashes: false }); - } - exports.getBaseDirectory = getBaseDirectory; - function hasGlobStar(pattern) { - return pattern.includes(GLOBSTAR); - } - exports.hasGlobStar = hasGlobStar; - function endsWithSlashGlobStar(pattern) { - return pattern.endsWith("/" + GLOBSTAR); - } - exports.endsWithSlashGlobStar = endsWithSlashGlobStar; - function isAffectDepthOfReadingPattern(pattern) { - const basename = path2.basename(pattern); - return endsWithSlashGlobStar(pattern) || isStaticPattern(basename); - } - exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern; - function expandPatternsWithBraceExpansion(patterns) { - return patterns.reduce((collection, pattern) => { - return collection.concat(expandBraceExpansion(pattern)); - }, []); - } - exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; - function expandBraceExpansion(pattern) { - const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true }); - patterns.sort((a, b) => a.length - b.length); - return patterns.filter((pattern2) => pattern2 !== ""); - } - exports.expandBraceExpansion = expandBraceExpansion; - function getPatternParts(pattern, options) { - let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true })); - if (parts.length === 0) { - parts = [pattern]; - } - if (parts[0].startsWith("/")) { - parts[0] = parts[0].slice(1); - parts.unshift(""); - } - return parts; - } - exports.getPatternParts = getPatternParts; - function makeRe(pattern, options) { - return micromatch.makeRe(pattern, options); - } - exports.makeRe = makeRe; - function convertPatternsToRe(patterns, options) { - return patterns.map((pattern) => makeRe(pattern, options)); - } - exports.convertPatternsToRe = convertPatternsToRe; - function matchAny(entry, patternsRe) { - return patternsRe.some((patternRe) => patternRe.test(entry)); - } - exports.matchAny = matchAny; - function removeDuplicateSlashes(pattern) { - return pattern.replace(DOUBLE_SLASH_RE, "/"); - } - exports.removeDuplicateSlashes = removeDuplicateSlashes; - } -}); -var require_stream2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.merge = void 0; - var merge2 = require_merge2(); - function merge(streams) { - const mergedStream = merge2(streams); - streams.forEach((stream) => { - stream.once("error", (error) => mergedStream.emit("error", error)); - }); - mergedStream.once("close", () => propagateCloseEventToSources(streams)); - mergedStream.once("end", () => propagateCloseEventToSources(streams)); - return mergedStream; - } - exports.merge = merge; - function propagateCloseEventToSources(streams) { - streams.forEach((stream) => stream.emit("close")); - } - } -}); -var require_string = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/string.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEmpty = exports.isString = void 0; - function isString(input) { - return typeof input === "string"; - } - exports.isString = isString; - function isEmpty(input) { - return input === ""; - } - exports.isEmpty = isEmpty; - } -}); -var require_utils3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/utils/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; - var array = require_array(); - exports.array = array; - var errno = require_errno(); - exports.errno = errno; - var fs2 = require_fs2(); - exports.fs = fs2; - var path2 = require_path2(); - exports.path = path2; - var pattern = require_pattern(); - exports.pattern = pattern; - var stream = require_stream2(); - exports.stream = stream; - var string = require_string(); - exports.string = string; - } -}); -var require_tasks = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/managers/tasks.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; - var utils = require_utils3(); - function generate(input, settings) { - const patterns = processPatterns(input, settings); - const ignore = processPatterns(settings.ignore, settings); - const positivePatterns = getPositivePatterns(patterns); - const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); - const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); - const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); - const staticTasks = convertPatternsToTasks( - staticPatterns, - negativePatterns, - /* dynamic */ - false - ); - const dynamicTasks = convertPatternsToTasks( - dynamicPatterns, - negativePatterns, - /* dynamic */ - true - ); - return staticTasks.concat(dynamicTasks); - } - exports.generate = generate; - function processPatterns(input, settings) { - let patterns = input; - if (settings.braceExpansion) { - patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); - } - if (settings.baseNameMatch) { - patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`); - } - return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); - } - function convertPatternsToTasks(positive, negative, dynamic) { - const tasks = []; - const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive); - const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive); - const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory); - const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory); - tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)); - if ("." in insideCurrentDirectoryGroup) { - tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic)); - } else { - tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)); - } - return tasks; - } - exports.convertPatternsToTasks = convertPatternsToTasks; - function getPositivePatterns(patterns) { - return utils.pattern.getPositivePatterns(patterns); - } - exports.getPositivePatterns = getPositivePatterns; - function getNegativePatternsAsPositive(patterns, ignore) { - const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore); - const positive = negative.map(utils.pattern.convertToPositivePattern); - return positive; - } - exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive; - function groupPatternsByBaseDirectory(patterns) { - const group = {}; - return patterns.reduce((collection, pattern) => { - const base = utils.pattern.getBaseDirectory(pattern); - if (base in collection) { - collection[base].push(pattern); - } else { - collection[base] = [pattern]; - } - return collection; - }, group); - } - exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory; - function convertPatternGroupsToTasks(positive, negative, dynamic) { - return Object.keys(positive).map((base) => { - return convertPatternGroupToTask(base, positive[base], negative, dynamic); - }); - } - exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks; - function convertPatternGroupToTask(base, positive, negative, dynamic) { - return { - dynamic, - positive, - negative, - base, - patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern)) - }; - } - exports.convertPatternGroupToTask = convertPatternGroupToTask; - } -}); -var require_async = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read(path2, settings, callback) { - settings.fs.lstat(path2, (lstatError, lstat) => { - if (lstatError !== null) { - callFailureCallback(callback, lstatError); - return; - } - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - callSuccessCallback(callback, lstat); - return; - } - settings.fs.stat(path2, (statError, stat) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - callFailureCallback(callback, statError); - return; - } - callSuccessCallback(callback, lstat); - return; - } - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - callSuccessCallback(callback, stat); - }); - }); - } - exports.read = read; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, result) { - callback(null, result); - } - } -}); -var require_sync = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.read = void 0; - function read(path2, settings) { - const lstat = settings.fs.lstatSync(path2); - if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { - return lstat; - } - try { - const stat = settings.fs.statSync(path2); - if (settings.markSymbolicLink) { - stat.isSymbolicLink = () => true; - } - return stat; - } catch (error) { - if (!settings.throwErrorOnBrokenSymbolicLink) { - return lstat; - } - throw error; - } - } - exports.read = read; - } -}); -var require_fs3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - stat: fs2.stat, - lstatSync: fs2.lstatSync, - statSync: fs2.statSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); - } - exports.createFileSystemAdapter = createFileSystemAdapter; - } -}); -var require_settings = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fs2 = require_fs3(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); - this.fs = fs2.createFileSystemAdapter(this._options.fs); - this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.statSync = exports.stat = exports.Settings = void 0; - var async = require_async(); - var sync = require_sync(); - var settings_1 = require_settings(); - exports.Settings = settings_1.default; - function stat(path2, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path2, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path2, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.stat = stat; - function statSync(path2, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path2, settings); - } - exports.statSync = statSync; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_queue_microtask = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module2) { - "use strict"; - var promise; - module2.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => { - throw err; - }, 0)); - } -}); -var require_run_parallel = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module2) { - "use strict"; - module2.exports = runParallel; - var queueMicrotask2 = require_queue_microtask(); - function runParallel(tasks, cb) { - let results, pending, keys; - let isSync = true; - if (Array.isArray(tasks)) { - results = []; - pending = tasks.length; - } else { - keys = Object.keys(tasks); - results = {}; - pending = keys.length; - } - function done(err) { - function end() { - if (cb) cb(err, results); - cb = null; - } - if (isSync) queueMicrotask2(end); - else end(); - } - function each(i, err, result) { - results[i] = result; - if (--pending === 0 || err) { - done(err); - } - } - if (!pending) { - done(null); - } else if (keys) { - keys.forEach(function(key) { - tasks[key](function(err, result) { - each(key, err, result); - }); - }); - } else { - tasks.forEach(function(task, i) { - task(function(err, result) { - each(i, err, result); - }); - }); - } - isSync = false; - } - } -}); -var require_constants3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; - var NODE_PROCESS_VERSION_PARTS = process.versions.node.split("."); - if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) { - throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); - } - var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); - var MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); - var SUPPORTED_MAJOR_VERSION = 10; - var SUPPORTED_MINOR_VERSION = 10; - var IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; - var IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; - exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; - } -}); -var require_fs4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDirentFromStats = void 0; - var DirentFromStats = class { - constructor(name, stats) { - this.name = name; - this.isBlockDevice = stats.isBlockDevice.bind(stats); - this.isCharacterDevice = stats.isCharacterDevice.bind(stats); - this.isDirectory = stats.isDirectory.bind(stats); - this.isFIFO = stats.isFIFO.bind(stats); - this.isFile = stats.isFile.bind(stats); - this.isSocket = stats.isSocket.bind(stats); - this.isSymbolicLink = stats.isSymbolicLink.bind(stats); - } - }; - function createDirentFromStats(name, stats) { - return new DirentFromStats(name, stats); - } - exports.createDirentFromStats = createDirentFromStats; - } -}); -var require_utils4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fs = void 0; - var fs2 = require_fs4(); - exports.fs = fs2; - } -}); -var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = void 0; - function joinPathSegments(a, b, separator) { - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; - } -}); -var require_async2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; - var fsStat = require_out(); - var rpl = require_run_parallel(); - var constants_1 = require_constants3(); - var utils = require_utils4(); - var common = require_common(); - function read(directory, settings, callback) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - readdirWithFileTypes(directory, settings, callback); - return; - } - readdir(directory, settings, callback); - } - exports.read = read; - function readdirWithFileTypes(directory, settings, callback) { - settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const entries = dirents.map((dirent) => ({ - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - })); - if (!settings.followSymbolicLinks) { - callSuccessCallback(callback, entries); - return; - } - const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); - rpl(tasks, (rplError, rplEntries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, rplEntries); - }); - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function makeRplTaskEntry(entry, settings) { - return (done) => { - if (!entry.dirent.isSymbolicLink()) { - done(null, entry); - return; - } - settings.fs.stat(entry.path, (statError, stats) => { - if (statError !== null) { - if (settings.throwErrorOnBrokenSymbolicLink) { - done(statError); - return; - } - done(null, entry); - return; - } - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - done(null, entry); - }); - }; - } - function readdir(directory, settings, callback) { - settings.fs.readdir(directory, (readdirError, names) => { - if (readdirError !== null) { - callFailureCallback(callback, readdirError); - return; - } - const tasks = names.map((name) => { - const path2 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - return (done) => { - fsStat.stat(path2, settings.fsStatSettings, (error, stats) => { - if (error !== null) { - done(error); - return; - } - const entry = { - name, - path: path2, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - done(null, entry); - }); - }; - }); - rpl(tasks, (rplError, entries) => { - if (rplError !== null) { - callFailureCallback(callback, rplError); - return; - } - callSuccessCallback(callback, entries); - }); - }); - } - exports.readdir = readdir; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, result) { - callback(null, result); - } - } -}); -var require_sync2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; - var fsStat = require_out(); - var constants_1 = require_constants3(); - var utils = require_utils4(); - var common = require_common(); - function read(directory, settings) { - if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { - return readdirWithFileTypes(directory, settings); - } - return readdir(directory, settings); - } - exports.read = read; - function readdirWithFileTypes(directory, settings) { - const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); - return dirents.map((dirent) => { - const entry = { - dirent, - name: dirent.name, - path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) - }; - if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { - try { - const stats = settings.fs.statSync(entry.path); - entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); - } catch (error) { - if (settings.throwErrorOnBrokenSymbolicLink) { - throw error; - } - } - } - return entry; - }); - } - exports.readdirWithFileTypes = readdirWithFileTypes; - function readdir(directory, settings) { - const names = settings.fs.readdirSync(directory); - return names.map((name) => { - const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); - const stats = fsStat.statSync(entryPath, settings.fsStatSettings); - const entry = { - name, - path: entryPath, - dirent: utils.fs.createDirentFromStats(name, stats) - }; - if (settings.stats) { - entry.stats = stats; - } - return entry; - }); - } - exports.readdir = readdir; - } -}); -var require_fs5 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - exports.FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - stat: fs2.stat, - lstatSync: fs2.lstatSync, - statSync: fs2.statSync, - readdir: fs2.readdir, - readdirSync: fs2.readdirSync - }; - function createFileSystemAdapter(fsMethods) { - if (fsMethods === void 0) { - return exports.FILE_SYSTEM_ADAPTER; - } - return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); - } - exports.createFileSystemAdapter = createFileSystemAdapter; - } -}); -var require_settings2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var fsStat = require_out(); - var fs2 = require_fs5(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); - this.fs = fs2.createFileSystemAdapter(this._options.fs); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep); - this.stats = this._getValue(this._options.stats, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); - this.fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this.followSymbolicLinks, - fs: this.fs, - throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.scandirSync = exports.scandir = void 0; - var async = require_async2(); - var sync = require_sync2(); - var settings_1 = require_settings2(); - exports.Settings = settings_1.default; - function scandir(path2, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - async.read(path2, getSettings(), optionsOrSettingsOrCallback); - return; - } - async.read(path2, getSettings(optionsOrSettingsOrCallback), callback); - } - exports.scandir = scandir; - function scandirSync(path2, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - return sync.read(path2, settings); - } - exports.scandirSync = scandirSync; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_reusify = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) { - "use strict"; - function reusify(Constructor) { - var head = new Constructor(); - var tail = head; - function get() { - var current = head; - if (current.next) { - head = current.next; - } else { - head = new Constructor(); - tail = head; - } - current.next = null; - return current; - } - function release(obj) { - tail.next = obj; - tail = obj; - } - return { - get, - release - }; - } - module2.exports = reusify; - } -}); -var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) { - "use strict"; - var reusify = require_reusify(); - function fastqueue(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; - } - if (concurrency < 1) { - throw new Error("fastqueue concurrency must be greater than 1"); - } - var cache = reusify(Task); - var queueHead = null; - var queueTail = null; - var _running = 0; - var errorHandler = null; - var self = { - push, - drain: noop, - saturated: noop, - pause, - paused: false, - concurrency, - running, - resume, - idle, - length, - getQueue, - unshift, - empty: noop, - kill, - killAndDrain, - error - }; - return self; - function running() { - return _running; - } - function pause() { - self.paused = true; - } - function length() { - var current = queueHead; - var counter = 0; - while (current) { - current = current.next; - counter++; - } - return counter; - } - function getQueue() { - var current = queueHead; - var tasks = []; - while (current) { - tasks.push(current.value); - current = current.next; - } - return tasks; - } - function resume() { - if (!self.paused) return; - self.paused = false; - for (var i = 0; i < self.concurrency; i++) { - _running++; - release(); - } - } - function idle() { - return _running === 0 && self.length() === 0; - } - function push(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop; - current.errorHandler = errorHandler; - if (_running === self.concurrency || self.paused) { - if (queueTail) { - queueTail.next = current; - queueTail = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); - } - } - function unshift(value, done) { - var current = cache.get(); - current.context = context; - current.release = release; - current.value = value; - current.callback = done || noop; - if (_running === self.concurrency || self.paused) { - if (queueHead) { - current.next = queueHead; - queueHead = current; - } else { - queueHead = current; - queueTail = current; - self.saturated(); - } - } else { - _running++; - worker.call(context, current.value, current.worked); - } - } - function release(holder) { - if (holder) { - cache.release(holder); - } - var next = queueHead; - if (next) { - if (!self.paused) { - if (queueTail === queueHead) { - queueTail = null; - } - queueHead = next.next; - next.next = null; - worker.call(context, next.value, next.worked); - if (queueTail === null) { - self.empty(); - } - } else { - _running--; - } - } else if (--_running === 0) { - self.drain(); - } - } - function kill() { - queueHead = null; - queueTail = null; - self.drain = noop; - } - function killAndDrain() { - queueHead = null; - queueTail = null; - self.drain(); - self.drain = noop; - } - function error(handler) { - errorHandler = handler; - } - } - function noop() { - } - function Task() { - this.value = null; - this.callback = noop; - this.next = null; - this.release = noop; - this.context = null; - this.errorHandler = null; - var self = this; - this.worked = function worked(err, result) { - var callback = self.callback; - var errorHandler = self.errorHandler; - var val = self.value; - self.value = null; - self.callback = noop; - if (self.errorHandler) { - errorHandler(err, val); - } - callback.call(self.context, err, result); - self.release(self); - }; - } - function queueAsPromised(context, worker, concurrency) { - if (typeof context === "function") { - concurrency = worker; - worker = context; - context = null; - } - function asyncWrapper(arg, cb) { - worker.call(this, arg).then(function(res) { - cb(null, res); - }, cb); - } - var queue = fastqueue(context, asyncWrapper, concurrency); - var pushCb = queue.push; - var unshiftCb = queue.unshift; - queue.push = push; - queue.unshift = unshift; - queue.drained = drained; - return queue; - function push(value) { - var p = new Promise(function(resolve, reject) { - pushCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve(result); - }); - }); - p.catch(noop); - return p; - } - function unshift(value) { - var p = new Promise(function(resolve, reject) { - unshiftCb(value, function(err, result) { - if (err) { - reject(err); - return; - } - resolve(result); - }); - }); - p.catch(noop); - return p; - } - function drained() { - if (queue.idle()) { - return new Promise(function(resolve) { - resolve(); - }); - } - var previousDrain = queue.drain; - var p = new Promise(function(resolve) { - queue.drain = function() { - previousDrain(); - resolve(); - }; - }); - return p; - } - } - module2.exports = fastqueue; - module2.exports.promise = queueAsPromised; - } -}); -var require_common2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; - function isFatalError(settings, error) { - if (settings.errorFilter === null) { - return true; - } - return !settings.errorFilter(error); - } - exports.isFatalError = isFatalError; - function isAppliedFilter(filter, value) { - return filter === null || filter(value); - } - exports.isAppliedFilter = isAppliedFilter; - function replacePathSegmentSeparator(filepath, separator) { - return filepath.split(/[/\\]/).join(separator); - } - exports.replacePathSegmentSeparator = replacePathSegmentSeparator; - function joinPathSegments(a, b, separator) { - if (a === "") { - return b; - } - if (a.endsWith(separator)) { - return a + b; - } - return a + separator + b; - } - exports.joinPathSegments = joinPathSegments; - } -}); -var require_reader = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var common = require_common2(); - var Reader = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); - } - }; - exports.default = Reader; - } -}); -var require_async3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var events_1 = (0, import_chunk_2ESYSVXG.__require)("events"); - var fsScandir = require_out2(); - var fastq = require_queue(); - var common = require_common2(); - var reader_1 = require_reader(); - var AsyncReader = class extends reader_1.default { - constructor(_root, _settings) { - super(_root, _settings); - this._settings = _settings; - this._scandir = fsScandir.scandir; - this._emitter = new events_1.EventEmitter(); - this._queue = fastq(this._worker.bind(this), this._settings.concurrency); - this._isFatalError = false; - this._isDestroyed = false; - this._queue.drain = () => { - if (!this._isFatalError) { - this._emitter.emit("end"); - } - }; - } - read() { - this._isFatalError = false; - this._isDestroyed = false; - setImmediate(() => { - this._pushToQueue(this._root, this._settings.basePath); - }); - return this._emitter; - } - get isDestroyed() { - return this._isDestroyed; - } - destroy() { - if (this._isDestroyed) { - throw new Error("The reader is already destroyed"); - } - this._isDestroyed = true; - this._queue.killAndDrain(); - } - onEntry(callback) { - this._emitter.on("entry", callback); - } - onError(callback) { - this._emitter.once("error", callback); - } - onEnd(callback) { - this._emitter.once("end", callback); - } - _pushToQueue(directory, base) { - const queueItem = { directory, base }; - this._queue.push(queueItem, (error) => { - if (error !== null) { - this._handleError(error); - } - }); - } - _worker(item, done) { - this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { - if (error !== null) { - done(error, void 0); - return; - } - for (const entry of entries) { - this._handleEntry(entry, item.base); - } - done(null, void 0); - }); - } - _handleError(error) { - if (this._isDestroyed || !common.isFatalError(this._settings, error)) { - return; - } - this._isFatalError = true; - this._isDestroyed = true; - this._emitter.emit("error", error); - } - _handleEntry(entry, base) { - if (this._isDestroyed || this._isFatalError) { - return; - } - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._emitEntry(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); - } - } - _emitEntry(entry) { - this._emitter.emit("entry", entry); - } - }; - exports.default = AsyncReader; - } -}); -var require_async4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async3(); - var AsyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._storage = []; - } - read(callback) { - this._reader.onError((error) => { - callFailureCallback(callback, error); - }); - this._reader.onEntry((entry) => { - this._storage.push(entry); - }); - this._reader.onEnd(() => { - callSuccessCallback(callback, this._storage); - }); - this._reader.read(); - } - }; - exports.default = AsyncProvider; - function callFailureCallback(callback, error) { - callback(error); - } - function callSuccessCallback(callback, entries) { - callback(null, entries); - } - } -}); -var require_stream3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_2ESYSVXG.__require)("stream"); - var async_1 = require_async3(); - var StreamProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new async_1.default(this._root, this._settings); - this._stream = new stream_1.Readable({ - objectMode: true, - read: () => { - }, - destroy: () => { - if (!this._reader.isDestroyed) { - this._reader.destroy(); - } - } - }); - } - read() { - this._reader.onError((error) => { - this._stream.emit("error", error); - }); - this._reader.onEntry((entry) => { - this._stream.push(entry); - }); - this._reader.onEnd(() => { - this._stream.push(null); - }); - this._reader.read(); - return this._stream; - } - }; - exports.default = StreamProvider; - } -}); -var require_sync3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsScandir = require_out2(); - var common = require_common2(); - var reader_1 = require_reader(); - var SyncReader = class extends reader_1.default { - constructor() { - super(...arguments); - this._scandir = fsScandir.scandirSync; - this._storage = []; - this._queue = /* @__PURE__ */ new Set(); - } - read() { - this._pushToQueue(this._root, this._settings.basePath); - this._handleQueue(); - return this._storage; - } - _pushToQueue(directory, base) { - this._queue.add({ directory, base }); - } - _handleQueue() { - for (const item of this._queue.values()) { - this._handleDirectory(item.directory, item.base); - } - } - _handleDirectory(directory, base) { - try { - const entries = this._scandir(directory, this._settings.fsScandirSettings); - for (const entry of entries) { - this._handleEntry(entry, base); - } - } catch (error) { - this._handleError(error); - } - } - _handleError(error) { - if (!common.isFatalError(this._settings, error)) { - return; - } - throw error; - } - _handleEntry(entry, base) { - const fullpath = entry.path; - if (base !== void 0) { - entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); - } - if (common.isAppliedFilter(this._settings.entryFilter, entry)) { - this._pushToStorage(entry); - } - if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { - this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path); - } - } - _pushToStorage(entry) { - this._storage.push(entry); - } - }; - exports.default = SyncReader; - } -}); -var require_sync4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync3(); - var SyncProvider = class { - constructor(_root, _settings) { - this._root = _root; - this._settings = _settings; - this._reader = new sync_1.default(this._root, this._settings); - } - read() { - return this._reader.read(); - } - }; - exports.default = SyncProvider; - } -}); -var require_settings3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var fsScandir = require_out2(); - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.basePath = this._getValue(this._options.basePath, void 0); - this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); - this.deepFilter = this._getValue(this._options.deepFilter, null); - this.entryFilter = this._getValue(this._options.entryFilter, null); - this.errorFilter = this._getValue(this._options.errorFilter, null); - this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep); - this.fsScandirSettings = new fsScandir.Settings({ - followSymbolicLinks: this._options.followSymbolicLinks, - fs: this._options.fs, - pathSegmentSeparator: this._options.pathSegmentSeparator, - stats: this._options.stats, - throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink - }); - } - _getValue(option, value) { - return option !== null && option !== void 0 ? option : value; - } - }; - exports.default = Settings; - } -}); -var require_out3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; - var async_1 = require_async4(); - var stream_1 = require_stream3(); - var sync_1 = require_sync4(); - var settings_1 = require_settings3(); - exports.Settings = settings_1.default; - function walk(directory, optionsOrSettingsOrCallback, callback) { - if (typeof optionsOrSettingsOrCallback === "function") { - new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); - return; - } - new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); - } - exports.walk = walk; - function walkSync(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new sync_1.default(directory, settings); - return provider.read(); - } - exports.walkSync = walkSync; - function walkStream(directory, optionsOrSettings) { - const settings = getSettings(optionsOrSettings); - const provider = new stream_1.default(directory, settings); - return provider.read(); - } - exports.walkStream = walkStream; - function getSettings(settingsOrOptions = {}) { - if (settingsOrOptions instanceof settings_1.default) { - return settingsOrOptions; - } - return new settings_1.default(settingsOrOptions); - } - } -}); -var require_reader2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/reader.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var fsStat = require_out(); - var utils = require_utils3(); - var Reader = class { - constructor(_settings) { - this._settings = _settings; - this._fsStatSettings = new fsStat.Settings({ - followSymbolicLink: this._settings.followSymbolicLinks, - fs: this._settings.fs, - throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks - }); - } - _getFullEntryPath(filepath) { - return path2.resolve(this._settings.cwd, filepath); - } - _makeEntry(stats, pattern) { - const entry = { - name: pattern, - path: pattern, - dirent: utils.fs.createDirentFromStats(pattern, stats) - }; - if (this._settings.stats) { - entry.stats = stats; - } - return entry; - } - _isFatalError(error) { - return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors; - } - }; - exports.default = Reader; - } -}); -var require_stream4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_2ESYSVXG.__require)("stream"); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderStream = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkStream = fsWalk.walkStream; - this._stat = fsStat.stat; - } - dynamic(root, options) { - return this._walkStream(root, options); - } - static(patterns, options) { - const filepaths = patterns.map(this._getFullEntryPath, this); - const stream = new stream_1.PassThrough({ objectMode: true }); - stream._write = (index, _enc, done) => { - return this._getEntry(filepaths[index], patterns[index], options).then((entry) => { - if (entry !== null && options.entryFilter(entry)) { - stream.push(entry); - } - if (index === filepaths.length - 1) { - stream.end(); - } - done(); - }).catch(done); - }; - for (let i = 0; i < filepaths.length; i++) { - stream.write(i); - } - return stream; - } - _getEntry(filepath, pattern, options) { - return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => { - if (options.errorFilter(error)) { - return null; - } - throw error; - }); - } - _getStat(filepath) { - return new Promise((resolve, reject) => { - this._stat(filepath, this._fsStatSettings, (error, stats) => { - return error === null ? resolve(stats) : reject(error); - }); - }); - } - }; - exports.default = ReaderStream; - } -}); -var require_async5 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var stream_1 = require_stream4(); - var ReaderAsync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkAsync = fsWalk.walk; - this._readerStream = new stream_1.default(this._settings); - } - dynamic(root, options) { - return new Promise((resolve, reject) => { - this._walkAsync(root, options, (error, entries) => { - if (error === null) { - resolve(entries); - } else { - reject(error); - } - }); - }); - } - async static(patterns, options) { - const entries = []; - const stream = this._readerStream.static(patterns, options); - return new Promise((resolve, reject) => { - stream.once("error", reject); - stream.on("data", (entry) => entries.push(entry)); - stream.once("end", () => resolve(entries)); - }); - } - }; - exports.default = ReaderAsync; - } -}); -var require_matcher2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var Matcher = class { - constructor(_patterns, _settings, _micromatchOptions) { - this._patterns = _patterns; - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this._storage = []; - this._fillStorage(); - } - _fillStorage() { - for (const pattern of this._patterns) { - const segments = this._getPatternSegments(pattern); - const sections = this._splitSegmentsIntoSections(segments); - this._storage.push({ - complete: sections.length <= 1, - pattern, - segments, - sections - }); - } - } - _getPatternSegments(pattern) { - const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions); - return parts.map((part) => { - const dynamic = utils.pattern.isDynamicPattern(part, this._settings); - if (!dynamic) { - return { - dynamic: false, - pattern: part - }; - } - return { - dynamic: true, - pattern: part, - patternRe: utils.pattern.makeRe(part, this._micromatchOptions) - }; - }); - } - _splitSegmentsIntoSections(segments) { - return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern)); - } - }; - exports.default = Matcher; - } -}); -var require_partial = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var matcher_1 = require_matcher2(); - var PartialMatcher = class extends matcher_1.default { - match(filepath) { - const parts = filepath.split("/"); - const levels = parts.length; - const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels); - for (const pattern of patterns) { - const section = pattern.sections[0]; - if (!pattern.complete && levels > section.length) { - return true; - } - const match = parts.every((part, index) => { - const segment = pattern.segments[index]; - if (segment.dynamic && segment.patternRe.test(part)) { - return true; - } - if (!segment.dynamic && segment.pattern === part) { - return true; - } - return false; - }); - if (match) { - return true; - } - } - return false; - } - }; - exports.default = PartialMatcher; - } -}); -var require_deep = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/deep.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var partial_1 = require_partial(); - var DeepFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - } - getFilter(basePath, positive, negative) { - const matcher = this._getMatcher(positive); - const negativeRe = this._getNegativePatternsRe(negative); - return (entry) => this._filter(basePath, entry, matcher, negativeRe); - } - _getMatcher(patterns) { - return new partial_1.default(patterns, this._settings, this._micromatchOptions); - } - _getNegativePatternsRe(patterns) { - const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern); - return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions); - } - _filter(basePath, entry, matcher, negativeRe) { - if (this._isSkippedByDeep(basePath, entry.path)) { - return false; - } - if (this._isSkippedSymbolicLink(entry)) { - return false; - } - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._isSkippedByPositivePatterns(filepath, matcher)) { - return false; - } - return this._isSkippedByNegativePatterns(filepath, negativeRe); - } - _isSkippedByDeep(basePath, entryPath) { - if (this._settings.deep === Infinity) { - return false; - } - return this._getEntryLevel(basePath, entryPath) >= this._settings.deep; - } - _getEntryLevel(basePath, entryPath) { - const entryPathDepth = entryPath.split("/").length; - if (basePath === "") { - return entryPathDepth; - } - const basePathDepth = basePath.split("/").length; - return entryPathDepth - basePathDepth; - } - _isSkippedSymbolicLink(entry) { - return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink(); - } - _isSkippedByPositivePatterns(entryPath, matcher) { - return !this._settings.baseNameMatch && !matcher.match(entryPath); - } - _isSkippedByNegativePatterns(entryPath, patternsRe) { - return !utils.pattern.matchAny(entryPath, patternsRe); - } - }; - exports.default = DeepFilter; - } -}); -var require_entry = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/entry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var EntryFilter = class { - constructor(_settings, _micromatchOptions) { - this._settings = _settings; - this._micromatchOptions = _micromatchOptions; - this.index = /* @__PURE__ */ new Map(); - } - getFilter(positive, negative) { - const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); - const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); - return (entry) => this._filter(entry, positiveRe, negativeRe); - } - _filter(entry, positiveRe, negativeRe) { - const filepath = utils.path.removeLeadingDotSegment(entry.path); - if (this._settings.unique && this._isDuplicateEntry(filepath)) { - return false; - } - if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { - return false; - } - if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { - return false; - } - const isDirectory = entry.dirent.isDirectory(); - const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); - if (this._settings.unique && isMatched) { - this._createIndexRecord(filepath); - } - return isMatched; - } - _isDuplicateEntry(filepath) { - return this.index.has(filepath); - } - _createIndexRecord(filepath) { - this.index.set(filepath, void 0); - } - _onlyFileFilter(entry) { - return this._settings.onlyFiles && !entry.dirent.isFile(); - } - _onlyDirectoryFilter(entry) { - return this._settings.onlyDirectories && !entry.dirent.isDirectory(); - } - _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) { - if (!this._settings.absolute) { - return false; - } - const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); - return utils.pattern.matchAny(fullpath, patternsRe); - } - _isMatchToPatterns(filepath, patternsRe, isDirectory) { - const isMatched = utils.pattern.matchAny(filepath, patternsRe); - if (!isMatched && isDirectory) { - return utils.pattern.matchAny(filepath + "/", patternsRe); - } - return isMatched; - } - }; - exports.default = EntryFilter; - } -}); -var require_error2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/filters/error.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var ErrorFilter = class { - constructor(_settings) { - this._settings = _settings; - } - getFilter() { - return (error) => this._isNonFatalError(error); - } - _isNonFatalError(error) { - return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors; - } - }; - exports.default = ErrorFilter; - } -}); -var require_entry2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var utils = require_utils3(); - var EntryTransformer = class { - constructor(_settings) { - this._settings = _settings; - } - getTransformer() { - return (entry) => this._transform(entry); - } - _transform(entry) { - let filepath = entry.path; - if (this._settings.absolute) { - filepath = utils.path.makeAbsolute(this._settings.cwd, filepath); - filepath = utils.path.unixify(filepath); - } - if (this._settings.markDirectories && entry.dirent.isDirectory()) { - filepath += "/"; - } - if (!this._settings.objectMode) { - return filepath; - } - return Object.assign(Object.assign({}, entry), { path: filepath }); - } - }; - exports.default = EntryTransformer; - } -}); -var require_provider = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/provider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var deep_1 = require_deep(); - var entry_1 = require_entry(); - var error_1 = require_error2(); - var entry_2 = require_entry2(); - var Provider = class { - constructor(_settings) { - this._settings = _settings; - this.errorFilter = new error_1.default(this._settings); - this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()); - this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()); - this.entryTransformer = new entry_2.default(this._settings); - } - _getRootDirectory(task) { - return path2.resolve(this._settings.cwd, task.base); - } - _getReaderOptions(task) { - const basePath = task.base === "." ? "" : task.base; - return { - basePath, - pathSegmentSeparator: "/", - concurrency: this._settings.concurrency, - deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative), - entryFilter: this.entryFilter.getFilter(task.positive, task.negative), - errorFilter: this.errorFilter.getFilter(), - followSymbolicLinks: this._settings.followSymbolicLinks, - fs: this._settings.fs, - stats: this._settings.stats, - throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink, - transform: this.entryTransformer.getTransformer() - }; - } - _getMicromatchOptions() { - return { - dot: this._settings.dot, - matchBase: this._settings.baseNameMatch, - nobrace: !this._settings.braceExpansion, - nocase: !this._settings.caseSensitiveMatch, - noext: !this._settings.extglob, - noglobstar: !this._settings.globstar, - posix: true, - strictSlashes: false - }; - } - }; - exports.default = Provider; - } -}); -var require_async6 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/async.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var async_1 = require_async5(); - var provider_1 = require_provider(); - var ProviderAsync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new async_1.default(this._settings); - } - async read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = await this.api(root, task, options); - return entries.map((entry) => options.transform(entry)); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderAsync; - } -}); -var require_stream5 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var stream_1 = (0, import_chunk_2ESYSVXG.__require)("stream"); - var stream_2 = require_stream4(); - var provider_1 = require_provider(); - var ProviderStream = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new stream_2.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const source = this.api(root, task, options); - const destination = new stream_1.Readable({ objectMode: true, read: () => { - } }); - source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end")); - destination.once("close", () => source.destroy()); - return destination; - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderStream; - } -}); -var require_sync5 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/readers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var fsStat = require_out(); - var fsWalk = require_out3(); - var reader_1 = require_reader2(); - var ReaderSync = class extends reader_1.default { - constructor() { - super(...arguments); - this._walkSync = fsWalk.walkSync; - this._statSync = fsStat.statSync; - } - dynamic(root, options) { - return this._walkSync(root, options); - } - static(patterns, options) { - const entries = []; - for (const pattern of patterns) { - const filepath = this._getFullEntryPath(pattern); - const entry = this._getEntry(filepath, pattern, options); - if (entry === null || !options.entryFilter(entry)) { - continue; - } - entries.push(entry); - } - return entries; - } - _getEntry(filepath, pattern, options) { - try { - const stats = this._getStat(filepath); - return this._makeEntry(stats, pattern); - } catch (error) { - if (options.errorFilter(error)) { - return null; - } - throw error; - } - } - _getStat(filepath) { - return this._statSync(filepath, this._fsStatSettings); - } - }; - exports.default = ReaderSync; - } -}); -var require_sync6 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/providers/sync.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var sync_1 = require_sync5(); - var provider_1 = require_provider(); - var ProviderSync = class extends provider_1.default { - constructor() { - super(...arguments); - this._reader = new sync_1.default(this._settings); - } - read(task) { - const root = this._getRootDirectory(task); - const options = this._getReaderOptions(task); - const entries = this.api(root, task, options); - return entries.map(options.transform); - } - api(root, task, options) { - if (task.dynamic) { - return this._reader.dynamic(root, options); - } - return this._reader.static(task.patterns, options); - } - }; - exports.default = ProviderSync; - } -}); -var require_settings4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/settings.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var CPU_COUNT = Math.max(os.cpus().length, 1); - exports.DEFAULT_FILE_SYSTEM_ADAPTER = { - lstat: fs2.lstat, - lstatSync: fs2.lstatSync, - stat: fs2.stat, - statSync: fs2.statSync, - readdir: fs2.readdir, - readdirSync: fs2.readdirSync - }; - var Settings = class { - constructor(_options = {}) { - this._options = _options; - this.absolute = this._getValue(this._options.absolute, false); - this.baseNameMatch = this._getValue(this._options.baseNameMatch, false); - this.braceExpansion = this._getValue(this._options.braceExpansion, true); - this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true); - this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT); - this.cwd = this._getValue(this._options.cwd, process.cwd()); - this.deep = this._getValue(this._options.deep, Infinity); - this.dot = this._getValue(this._options.dot, false); - this.extglob = this._getValue(this._options.extglob, true); - this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true); - this.fs = this._getFileSystemMethods(this._options.fs); - this.globstar = this._getValue(this._options.globstar, true); - this.ignore = this._getValue(this._options.ignore, []); - this.markDirectories = this._getValue(this._options.markDirectories, false); - this.objectMode = this._getValue(this._options.objectMode, false); - this.onlyDirectories = this._getValue(this._options.onlyDirectories, false); - this.onlyFiles = this._getValue(this._options.onlyFiles, true); - this.stats = this._getValue(this._options.stats, false); - this.suppressErrors = this._getValue(this._options.suppressErrors, false); - this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false); - this.unique = this._getValue(this._options.unique, true); - if (this.onlyDirectories) { - this.onlyFiles = false; - } - if (this.stats) { - this.objectMode = true; - } - this.ignore = [].concat(this.ignore); - } - _getValue(option, value) { - return option === void 0 ? value : option; - } - _getFileSystemMethods(methods = {}) { - return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods); - } - }; - exports.default = Settings; - } -}); -var require_out4 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fast-glob@3.3.2/node_modules/fast-glob/out/index.js"(exports, module2) { - "use strict"; - var taskManager = require_tasks(); - var async_1 = require_async6(); - var stream_1 = require_stream5(); - var sync_1 = require_sync6(); - var settings_1 = require_settings4(); - var utils = require_utils3(); - async function FastGlob(source, options) { - assertPatternsInput(source); - const works = getWorks(source, async_1.default, options); - const result = await Promise.all(works); - return utils.array.flatten(result); - } - (function(FastGlob2) { - FastGlob2.glob = FastGlob2; - FastGlob2.globSync = sync; - FastGlob2.globStream = stream; - FastGlob2.async = FastGlob2; - function sync(source, options) { - assertPatternsInput(source); - const works = getWorks(source, sync_1.default, options); - return utils.array.flatten(works); - } - FastGlob2.sync = sync; - function stream(source, options) { - assertPatternsInput(source); - const works = getWorks(source, stream_1.default, options); - return utils.stream.merge(works); - } - FastGlob2.stream = stream; - function generateTasks(source, options) { - assertPatternsInput(source); - const patterns = [].concat(source); - const settings = new settings_1.default(options); - return taskManager.generate(patterns, settings); - } - FastGlob2.generateTasks = generateTasks; - function isDynamicPattern(source, options) { - assertPatternsInput(source); - const settings = new settings_1.default(options); - return utils.pattern.isDynamicPattern(source, settings); - } - FastGlob2.isDynamicPattern = isDynamicPattern; - function escapePath(source) { - assertPatternsInput(source); - return utils.path.escape(source); - } - FastGlob2.escapePath = escapePath; - function convertPathToPattern(source) { - assertPatternsInput(source); - return utils.path.convertPathToPattern(source); - } - FastGlob2.convertPathToPattern = convertPathToPattern; - let posix; - (function(posix2) { - function escapePath2(source) { - assertPatternsInput(source); - return utils.path.escapePosixPath(source); - } - posix2.escapePath = escapePath2; - function convertPathToPattern2(source) { - assertPatternsInput(source); - return utils.path.convertPosixPathToPattern(source); - } - posix2.convertPathToPattern = convertPathToPattern2; - })(posix = FastGlob2.posix || (FastGlob2.posix = {})); - let win32; - (function(win322) { - function escapePath2(source) { - assertPatternsInput(source); - return utils.path.escapeWindowsPath(source); - } - win322.escapePath = escapePath2; - function convertPathToPattern2(source) { - assertPatternsInput(source); - return utils.path.convertWindowsPathToPattern(source); - } - win322.convertPathToPattern = convertPathToPattern2; - })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {})); - })(FastGlob || (FastGlob = {})); - function getWorks(source, _Provider, options) { - const patterns = [].concat(source); - const settings = new settings_1.default(options); - const tasks = taskManager.generate(patterns, settings); - const provider = new _Provider(settings); - return tasks.map(provider.read, provider); - } - function assertPatternsInput(input) { - const source = [].concat(input); - const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)); - if (!isValidSource) { - throw new TypeError("Patterns must be a string (non empty) or an array of strings"); - } - } - module2.exports = FastGlob; - } -}); -var require_path_type = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.js"(exports) { - "use strict"; - var { promisify } = (0, import_chunk_2ESYSVXG.__require)("util"); - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - async function isType(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== "string") { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - try { - const stats = await promisify(fs2[fsStatType])(filePath); - return stats[statsMethodName](); - } catch (error) { - if (error.code === "ENOENT") { - return false; - } - throw error; - } - } - function isTypeSync(fsStatType, statsMethodName, filePath) { - if (typeof filePath !== "string") { - throw new TypeError(`Expected a string, got ${typeof filePath}`); - } - try { - return fs2[fsStatType](filePath)[statsMethodName](); - } catch (error) { - if (error.code === "ENOENT") { - return false; - } - throw error; - } - } - exports.isFile = isType.bind(null, "stat", "isFile"); - exports.isDirectory = isType.bind(null, "stat", "isDirectory"); - exports.isSymlink = isType.bind(null, "lstat", "isSymbolicLink"); - exports.isFileSync = isTypeSync.bind(null, "statSync", "isFile"); - exports.isDirectorySync = isTypeSync.bind(null, "statSync", "isDirectory"); - exports.isSymlinkSync = isTypeSync.bind(null, "lstatSync", "isSymbolicLink"); - } -}); -var require_dir_glob = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var pathType = require_path_type(); - var getExtensions = (extensions) => extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]; - var getPath = (filepath, cwd) => { - const pth = filepath[0] === "!" ? filepath.slice(1) : filepath; - return path2.isAbsolute(pth) ? pth : path2.join(cwd, pth); - }; - var addExtensions = (file, extensions) => { - if (path2.extname(file)) { - return `**/${file}`; - } - return `**/${file}.${getExtensions(extensions)}`; - }; - var getGlob = (directory, options) => { - if (options.files && !Array.isArray(options.files)) { - throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof options.files}\``); - } - if (options.extensions && !Array.isArray(options.extensions)) { - throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``); - } - if (options.files && options.extensions) { - return options.files.map((x) => path2.posix.join(directory, addExtensions(x, options.extensions))); - } - if (options.files) { - return options.files.map((x) => path2.posix.join(directory, `**/${x}`)); - } - if (options.extensions) { - return [path2.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)]; - } - return [path2.posix.join(directory, "**")]; - }; - module2.exports = async (input, options) => { - options = { - cwd: process.cwd(), - ...options - }; - if (typeof options.cwd !== "string") { - throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``); - } - const globs = await Promise.all([].concat(input).map(async (x) => { - const isDirectory = await pathType.isDirectory(getPath(x, options.cwd)); - return isDirectory ? getGlob(x, options) : x; - })); - return [].concat.apply([], globs); - }; - module2.exports.sync = (input, options) => { - options = { - cwd: process.cwd(), - ...options - }; - if (typeof options.cwd !== "string") { - throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``); - } - const globs = [].concat(input).map((x) => pathType.isDirectorySync(getPath(x, options.cwd)) ? getGlob(x, options) : x); - return [].concat.apply([], globs); - }; - } -}); -var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) { - "use strict"; - function makeArray(subject) { - return Array.isArray(subject) ? subject : [subject]; - } - var EMPTY = ""; - var SPACE = " "; - var ESCAPE = "\\"; - var REGEX_TEST_BLANK_LINE = /^\s+$/; - var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/; - var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/; - var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/; - var REGEX_SPLITALL_CRLF = /\r?\n/g; - var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/; - var SLASH = "/"; - var TMP_KEY_IGNORE = "node-ignore"; - if (typeof Symbol !== "undefined") { - TMP_KEY_IGNORE = Symbol.for("node-ignore"); - } - var KEY_IGNORE = TMP_KEY_IGNORE; - var define = (object, key, value) => Object.defineProperty(object, key, { value }); - var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g; - var RETURN_FALSE = () => false; - var sanitizeRange = (range) => range.replace( - REGEX_REGEXP_RANGE, - (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY - ); - var cleanRangeBackSlash = (slashes) => { - const { length } = slashes; - return slashes.slice(0, length - length % 2); - }; - var REPLACERS = [ - // > Trailing spaces are ignored unless they are quoted with backslash ("\") - [ - // (a\ ) -> (a ) - // (a ) -> (a) - // (a \ ) -> (a ) - /\\?\s+$/, - (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY - ], - // replace (\ ) with ' ' - [ - /\\\s/g, - () => SPACE - ], - // Escape metacharacters - // which is written down by users but means special for regular expressions. - // > There are 12 characters with special meanings: - // > - the backslash \, - // > - the caret ^, - // > - the dollar sign $, - // > - the period or dot ., - // > - the vertical bar or pipe symbol |, - // > - the question mark ?, - // > - the asterisk or star *, - // > - the plus sign +, - // > - the opening parenthesis (, - // > - the closing parenthesis ), - // > - and the opening square bracket [, - // > - the opening curly brace {, - // > These special characters are often called "metacharacters". - [ - /[\\$.|*+(){^]/g, - (match) => `\\${match}` - ], - [ - // > a question mark (?) matches a single character - /(?!\\)\?/g, - () => "[^/]" - ], - // leading slash - [ - // > A leading slash matches the beginning of the pathname. - // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". - // A leading slash matches the beginning of the pathname - /^\//, - () => "^" - ], - // replace special metacharacter slash after the leading slash - [ - /\//g, - () => "\\/" - ], - [ - // > A leading "**" followed by a slash means match in all directories. - // > For example, "**/foo" matches file or directory "foo" anywhere, - // > the same as pattern "foo". - // > "**/foo/bar" matches file or directory "bar" anywhere that is directly - // > under directory "foo". - // Notice that the '*'s have been replaced as '\\*' - /^\^*\\\*\\\*\\\//, - // '**/foo' <-> 'foo' - () => "^(?:.*\\/)?" - ], - // starting - [ - // there will be no leading '/' - // (which has been replaced by section "leading slash") - // If starts with '**', adding a '^' to the regular expression also works - /^(?=[^^])/, - function startingReplacer() { - return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^"; - } - ], - // two globstars - [ - // Use lookahead assertions so that we could match more than one `'/**'` - /\\\/\\\*\\\*(?=\\\/|$)/g, - // Zero, one or several directories - // should not use '*', or it will be replaced by the next replacer - // Check if it is not the last `'/**'` - (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+" - ], - // normal intermediate wildcards - [ - // Never replace escaped '*' - // ignore rule '\*' will match the path '*' - // 'abc.*/' -> go - // 'abc.*' -> skip this rule, - // coz trailing single wildcard will be handed by [trailing wildcard] - /(^|[^\\]+)(\\\*)+(?=.+)/g, - // '*.js' matches '.js' - // '*.js' doesn't match 'abc' - (_, p1, p2) => { - const unescaped = p2.replace(/\\\*/g, "[^\\/]*"); - return p1 + unescaped; - } - ], - [ - // unescape, revert step 3 except for back slash - // For example, if a user escape a '\\*', - // after step 3, the result will be '\\\\\\*' - /\\\\\\(?=[$.|*+(){^])/g, - () => ESCAPE - ], - [ - // '\\\\' -> '\\' - /\\\\/g, - () => ESCAPE - ], - [ - // > The range notation, e.g. [a-zA-Z], - // > can be used to match one of the characters in a range. - // `\` is escaped by step 3 - /(\\)?\[([^\]/]*?)(\\*)($|\])/g, - (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]" - ], - // ending - [ - // 'js' will not match 'js.' - // 'ab' will not match 'abc' - /(?:[^*])$/, - // WTF! - // https://git-scm.com/docs/gitignore - // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1) - // which re-fixes #24, #38 - // > If there is a separator at the end of the pattern then the pattern - // > will only match directories, otherwise the pattern can match both - // > files and directories. - // 'js*' will not match 'a.js' - // 'js/' will not match 'a.js' - // 'js' will match 'a.js' and 'a.js/' - (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)` - ], - // trailing wildcard - [ - /(\^|\\\/)?\\\*$/, - (_, p1) => { - const prefix = p1 ? `${p1}[^/]+` : "[^/]*"; - return `${prefix}(?=$|\\/$)`; - } - ] - ]; - var regexCache = /* @__PURE__ */ Object.create(null); - var makeRegex = (pattern, ignoreCase) => { - let source = regexCache[pattern]; - if (!source) { - source = REPLACERS.reduce( - (prev, current) => prev.replace(current[0], current[1].bind(pattern)), - pattern - ); - regexCache[pattern] = source; - } - return ignoreCase ? new RegExp(source, "i") : new RegExp(source); - }; - var isString = (subject) => typeof subject === "string"; - var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0; - var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF); - var IgnoreRule = class { - constructor(origin, pattern, negative, regex) { - this.origin = origin; - this.pattern = pattern; - this.negative = negative; - this.regex = regex; - } - }; - var createRule = (pattern, ignoreCase) => { - const origin = pattern; - let negative = false; - if (pattern.indexOf("!") === 0) { - negative = true; - pattern = pattern.substr(1); - } - pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#"); - const regex = makeRegex(pattern, ignoreCase); - return new IgnoreRule( - origin, - pattern, - negative, - regex - ); - }; - var throwError = (message, Ctor) => { - throw new Ctor(message); - }; - var checkPath = (path2, originalPath, doThrow) => { - if (!isString(path2)) { - return doThrow( - `path must be a string, but got \`${originalPath}\``, - TypeError - ); - } - if (!path2) { - return doThrow(`path must not be empty`, TypeError); - } - if (checkPath.isNotRelative(path2)) { - const r = "`path.relative()`d"; - return doThrow( - `path should be a ${r} string, but got "${originalPath}"`, - RangeError - ); - } - return true; - }; - var isNotRelative = (path2) => REGEX_TEST_INVALID_PATH.test(path2); - checkPath.isNotRelative = isNotRelative; - checkPath.convert = (p) => p; - var Ignore = class { - constructor({ - ignorecase = true, - ignoreCase = ignorecase, - allowRelativePaths = false - } = {}) { - define(this, KEY_IGNORE, true); - this._rules = []; - this._ignoreCase = ignoreCase; - this._allowRelativePaths = allowRelativePaths; - this._initCache(); - } - _initCache() { - this._ignoreCache = /* @__PURE__ */ Object.create(null); - this._testCache = /* @__PURE__ */ Object.create(null); - } - _addPattern(pattern) { - if (pattern && pattern[KEY_IGNORE]) { - this._rules = this._rules.concat(pattern._rules); - this._added = true; - return; - } - if (checkPattern(pattern)) { - const rule = createRule(pattern, this._ignoreCase); - this._added = true; - this._rules.push(rule); - } - } - // @param {Array | string | Ignore} pattern - add(pattern) { - this._added = false; - makeArray( - isString(pattern) ? splitPattern(pattern) : pattern - ).forEach(this._addPattern, this); - if (this._added) { - this._initCache(); - } - return this; - } - // legacy - addPattern(pattern) { - return this.add(pattern); - } - // | ignored : unignored - // negative | 0:0 | 0:1 | 1:0 | 1:1 - // -------- | ------- | ------- | ------- | -------- - // 0 | TEST | TEST | SKIP | X - // 1 | TESTIF | SKIP | TEST | X - // - SKIP: always skip - // - TEST: always test - // - TESTIF: only test if checkUnignored - // - X: that never happen - // @param {boolean} whether should check if the path is unignored, - // setting `checkUnignored` to `false` could reduce additional - // path matching. - // @returns {TestResult} true if a file is ignored - _testOne(path2, checkUnignored) { - let ignored = false; - let unignored = false; - this._rules.forEach((rule) => { - const { negative } = rule; - if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) { - return; - } - const matched = rule.regex.test(path2); - if (matched) { - ignored = !negative; - unignored = negative; - } - }); - return { - ignored, - unignored - }; - } - // @returns {TestResult} - _test(originalPath, cache, checkUnignored, slices) { - const path2 = originalPath && checkPath.convert(originalPath); - checkPath( - path2, - originalPath, - this._allowRelativePaths ? RETURN_FALSE : throwError - ); - return this._t(path2, cache, checkUnignored, slices); - } - _t(path2, cache, checkUnignored, slices) { - if (path2 in cache) { - return cache[path2]; - } - if (!slices) { - slices = path2.split(SLASH); - } - slices.pop(); - if (!slices.length) { - return cache[path2] = this._testOne(path2, checkUnignored); - } - const parent = this._t( - slices.join(SLASH) + SLASH, - cache, - checkUnignored, - slices - ); - return cache[path2] = parent.ignored ? parent : this._testOne(path2, checkUnignored); - } - ignores(path2) { - return this._test(path2, this._ignoreCache, false).ignored; - } - createFilter() { - return (path2) => !this.ignores(path2); - } - filter(paths) { - return makeArray(paths).filter(this.createFilter()); - } - // @returns {TestResult} - test(path2) { - return this._test(path2, this._testCache, true); - } - }; - var factory2 = (options) => new Ignore(options); - var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, RETURN_FALSE); - factory2.isPathValid = isPathValid; - factory2.default = factory2; - module2.exports = factory2; - if ( - // Detect `process` so that it can run in browsers. - typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32") - ) { - const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"); - checkPath.convert = makePosix; - const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i; - checkPath.isNotRelative = (path2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2); - } - } -}); -var require_slash = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"(exports, module2) { - "use strict"; - module2.exports = (path2) => { - const isExtendedLengthPath = /^\\\\\?\\/.test(path2); - const hasNonAscii = /[^\u0000-\u0080]+/.test(path2); - if (isExtendedLengthPath || hasNonAscii) { - return path2; - } - return path2.replace(/\\/g, "/"); - }; - } -}); -var require_gitignore = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/gitignore.js"(exports, module2) { - "use strict"; - var { promisify } = (0, import_chunk_2ESYSVXG.__require)("util"); - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var fastGlob = require_out4(); - var gitIgnore = require_ignore(); - var slash = require_slash(); - var DEFAULT_IGNORE = [ - "**/node_modules/**", - "**/flow-typed/**", - "**/coverage/**", - "**/.git" - ]; - var readFileP = promisify(fs2.readFile); - var mapGitIgnorePatternTo = (base) => (ignore) => { - if (ignore.startsWith("!")) { - return "!" + path2.posix.join(base, ignore.slice(1)); - } - return path2.posix.join(base, ignore); - }; - var parseGitIgnore = (content, options) => { - const base = slash(path2.relative(options.cwd, path2.dirname(options.fileName))); - return content.split(/\r?\n/).filter(Boolean).filter((line) => !line.startsWith("#")).map(mapGitIgnorePatternTo(base)); - }; - var reduceIgnore = (files) => { - const ignores = gitIgnore(); - for (const file of files) { - ignores.add(parseGitIgnore(file.content, { - cwd: file.cwd, - fileName: file.filePath - })); - } - return ignores; - }; - var ensureAbsolutePathForCwd = (cwd, p) => { - cwd = slash(cwd); - if (path2.isAbsolute(p)) { - if (slash(p).startsWith(cwd)) { - return p; - } - throw new Error(`Path ${p} is not in cwd ${cwd}`); - } - return path2.join(cwd, p); - }; - var getIsIgnoredPredecate = (ignores, cwd) => { - return (p) => ignores.ignores(slash(path2.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p)))); - }; - var getFile = async (file, cwd) => { - const filePath = path2.join(cwd, file); - const content = await readFileP(filePath, "utf8"); - return { - cwd, - filePath, - content - }; - }; - var getFileSync = (file, cwd) => { - const filePath = path2.join(cwd, file); - const content = fs2.readFileSync(filePath, "utf8"); - return { - cwd, - filePath, - content - }; - }; - var normalizeOptions = ({ - ignore = [], - cwd = slash(process.cwd()) - } = {}) => { - return { ignore, cwd }; - }; - module2.exports = async (options) => { - options = normalizeOptions(options); - const paths = await fastGlob("**/.gitignore", { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - const files = await Promise.all(paths.map((file) => getFile(file, options.cwd))); - const ignores = reduceIgnore(files); - return getIsIgnoredPredecate(ignores, options.cwd); - }; - module2.exports.sync = (options) => { - options = normalizeOptions(options); - const paths = fastGlob.sync("**/.gitignore", { - ignore: DEFAULT_IGNORE.concat(options.ignore), - cwd: options.cwd - }); - const files = paths.map((file) => getFileSync(file, options.cwd)); - const ignores = reduceIgnore(files); - return getIsIgnoredPredecate(ignores, options.cwd); - }; - } -}); -var require_stream_utils = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/stream-utils.js"(exports, module2) { - "use strict"; - var { Transform } = (0, import_chunk_2ESYSVXG.__require)("stream"); - var ObjectTransform = class extends Transform { - constructor() { - super({ - objectMode: true - }); - } - }; - var FilterStream = class extends ObjectTransform { - constructor(filter) { - super(); - this._filter = filter; - } - _transform(data, encoding, callback) { - if (this._filter(data)) { - this.push(data); - } - callback(); - } - }; - var UniqueStream = class extends ObjectTransform { - constructor() { - super(); - this._pushed = /* @__PURE__ */ new Set(); - } - _transform(data, encoding, callback) { - if (!this._pushed.has(data)) { - this.push(data); - this._pushed.add(data); - } - callback(); - } - }; - module2.exports = { - FilterStream, - UniqueStream - }; - } -}); -var require_globby = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/globby@11.1.0/node_modules/globby/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var arrayUnion = require_array_union(); - var merge2 = require_merge2(); - var fastGlob = require_out4(); - var dirGlob = require_dir_glob(); - var gitignore = require_gitignore(); - var { FilterStream, UniqueStream } = require_stream_utils(); - var DEFAULT_FILTER = () => false; - var isNegative = (pattern) => pattern[0] === "!"; - var assertPatternsInput = (patterns) => { - if (!patterns.every((pattern) => typeof pattern === "string")) { - throw new TypeError("Patterns must be a string or an array of strings"); - } - }; - var checkCwdOption = (options = {}) => { - if (!options.cwd) { - return; - } - let stat; - try { - stat = fs2.statSync(options.cwd); - } catch { - return; - } - if (!stat.isDirectory()) { - throw new Error("The `cwd` option must be a path to a directory"); - } - }; - var getPathString = (p) => p.stats instanceof fs2.Stats ? p.path : p; - var generateGlobTasks = (patterns, taskOptions) => { - patterns = arrayUnion([].concat(patterns)); - assertPatternsInput(patterns); - checkCwdOption(taskOptions); - const globTasks = []; - taskOptions = { - ignore: [], - expandDirectories: true, - ...taskOptions - }; - for (const [index, pattern] of patterns.entries()) { - if (isNegative(pattern)) { - continue; - } - const ignore = patterns.slice(index).filter((pattern2) => isNegative(pattern2)).map((pattern2) => pattern2.slice(1)); - const options = { - ...taskOptions, - ignore: taskOptions.ignore.concat(ignore) - }; - globTasks.push({ pattern, options }); - } - return globTasks; - }; - var globDirs = (task, fn) => { - let options = {}; - if (task.options.cwd) { - options.cwd = task.options.cwd; - } - if (Array.isArray(task.options.expandDirectories)) { - options = { - ...options, - files: task.options.expandDirectories - }; - } else if (typeof task.options.expandDirectories === "object") { - options = { - ...options, - ...task.options.expandDirectories - }; - } - return fn(task.pattern, options); - }; - var getPattern = (task, fn) => task.options.expandDirectories ? globDirs(task, fn) : [task.pattern]; - var getFilterSync = (options) => { - return options && options.gitignore ? gitignore.sync({ cwd: options.cwd, ignore: options.ignore }) : DEFAULT_FILTER; - }; - var globToTask = (task) => (glob) => { - const { options } = task; - if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) { - options.ignore = dirGlob.sync(options.ignore); - } - return { - pattern: glob, - options - }; - }; - module2.exports = async (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const getFilter = async () => { - return options && options.gitignore ? gitignore({ cwd: options.cwd, ignore: options.ignore }) : DEFAULT_FILTER; - }; - const getTasks = async () => { - const tasks2 = await Promise.all(globTasks.map(async (task) => { - const globs = await getPattern(task, dirGlob); - return Promise.all(globs.map(globToTask(task))); - })); - return arrayUnion(...tasks2); - }; - const [filter, tasks] = await Promise.all([getFilter(), getTasks()]); - const paths = await Promise.all(tasks.map((task) => fastGlob(task.pattern, task.options))); - return arrayUnion(...paths).filter((path_) => !filter(getPathString(path_))); - }; - module2.exports.sync = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - const filter = getFilterSync(options); - let matches = []; - for (const task of tasks) { - matches = arrayUnion(matches, fastGlob.sync(task.pattern, task.options)); - } - return matches.filter((path_) => !filter(path_)); - }; - module2.exports.stream = (patterns, options) => { - const globTasks = generateGlobTasks(patterns, options); - const tasks = []; - for (const task of globTasks) { - const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); - tasks.push(...newTask); - } - const filter = getFilterSync(options); - const filterStream = new FilterStream((p) => !filter(p)); - const uniqueStream = new UniqueStream(); - return merge2(tasks.map((task) => fastGlob.stream(task.pattern, task.options))).pipe(filterStream).pipe(uniqueStream); - }; - module2.exports.generateGlobTasks = generateGlobTasks; - module2.exports.hasMagic = (patterns, options) => [].concat(patterns).some((pattern) => fastGlob.isDynamicPattern(pattern, options)); - module2.exports.gitignore = gitignore; - } -}); -var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) { - "use strict"; - var constants = (0, import_chunk_2ESYSVXG.__require)("constants"); - var origCwd = process.cwd; - var cwd = null; - var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform; - process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process); - return cwd; - }; - try { - process.cwd(); - } catch (er) { - } - if (typeof process.chdir === "function") { - chdir = process.chdir; - process.chdir = function(d) { - cwd = null; - chdir.call(process, d); - }; - if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir); - } - var chdir; - module2.exports = patch; - function patch(fs2) { - if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs2); - } - if (!fs2.lutimes) { - patchLutimes(fs2); - } - fs2.chown = chownFix(fs2.chown); - fs2.fchown = chownFix(fs2.fchown); - fs2.lchown = chownFix(fs2.lchown); - fs2.chmod = chmodFix(fs2.chmod); - fs2.fchmod = chmodFix(fs2.fchmod); - fs2.lchmod = chmodFix(fs2.lchmod); - fs2.chownSync = chownFixSync(fs2.chownSync); - fs2.fchownSync = chownFixSync(fs2.fchownSync); - fs2.lchownSync = chownFixSync(fs2.lchownSync); - fs2.chmodSync = chmodFixSync(fs2.chmodSync); - fs2.fchmodSync = chmodFixSync(fs2.fchmodSync); - fs2.lchmodSync = chmodFixSync(fs2.lchmodSync); - fs2.stat = statFix(fs2.stat); - fs2.fstat = statFix(fs2.fstat); - fs2.lstat = statFix(fs2.lstat); - fs2.statSync = statFixSync(fs2.statSync); - fs2.fstatSync = statFixSync(fs2.fstatSync); - fs2.lstatSync = statFixSync(fs2.lstatSync); - if (fs2.chmod && !fs2.lchmod) { - fs2.lchmod = function(path2, mode, cb) { - if (cb) process.nextTick(cb); - }; - fs2.lchmodSync = function() { - }; - } - if (fs2.chown && !fs2.lchown) { - fs2.lchown = function(path2, uid, gid, cb) { - if (cb) process.nextTick(cb); - }; - fs2.lchownSync = function() { - }; - } - if (platform === "win32") { - fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) { - function rename(from, to, cb) { - var start = Date.now(); - var backoff = 0; - fs$rename(from, to, function CB(er) { - if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) { - setTimeout(function() { - fs2.stat(to, function(stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er); - }); - }, backoff); - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er); - }); - } - if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename); - return rename; - }(fs2.rename); - } - fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) { - function read(fd, buffer, offset, length, position, callback_) { - var callback; - if (callback_ && typeof callback_ === "function") { - var eagCounter = 0; - callback = function(er, _, __) { - if (er && er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - return fs$read.call(fs2, fd, buffer, offset, length, position, callback); - } - callback_.apply(this, arguments); - }; - } - return fs$read.call(fs2, fd, buffer, offset, length, position, callback); - } - if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read); - return read; - }(fs2.read); - fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : /* @__PURE__ */ function(fs$readSync) { - return function(fd, buffer, offset, length, position) { - var eagCounter = 0; - while (true) { - try { - return fs$readSync.call(fs2, fd, buffer, offset, length, position); - } catch (er) { - if (er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - continue; - } - throw er; - } - } - }; - }(fs2.readSync); - function patchLchmod(fs3) { - fs3.lchmod = function(path2, mode, callback) { - fs3.open( - path2, - constants.O_WRONLY | constants.O_SYMLINK, - mode, - function(err, fd) { - if (err) { - if (callback) callback(err); - return; - } - fs3.fchmod(fd, mode, function(err2) { - fs3.close(fd, function(err22) { - if (callback) callback(err2 || err22); - }); - }); - } - ); - }; - fs3.lchmodSync = function(path2, mode) { - var fd = fs3.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode); - var threw = true; - var ret; - try { - ret = fs3.fchmodSync(fd, mode); - threw = false; - } finally { - if (threw) { - try { - fs3.closeSync(fd); - } catch (er) { - } - } else { - fs3.closeSync(fd); - } - } - return ret; - }; - } - function patchLutimes(fs3) { - if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) { - fs3.lutimes = function(path2, at, mt, cb) { - fs3.open(path2, constants.O_SYMLINK, function(er, fd) { - if (er) { - if (cb) cb(er); - return; - } - fs3.futimes(fd, at, mt, function(er2) { - fs3.close(fd, function(er22) { - if (cb) cb(er2 || er22); - }); - }); - }); - }; - fs3.lutimesSync = function(path2, at, mt) { - var fd = fs3.openSync(path2, constants.O_SYMLINK); - var ret; - var threw = true; - try { - ret = fs3.futimesSync(fd, at, mt); - threw = false; - } finally { - if (threw) { - try { - fs3.closeSync(fd); - } catch (er) { - } - } else { - fs3.closeSync(fd); - } - } - return ret; - }; - } else if (fs3.futimes) { - fs3.lutimes = function(_a, _b, _c, cb) { - if (cb) process.nextTick(cb); - }; - fs3.lutimesSync = function() { - }; - } - } - function chmodFix(orig) { - if (!orig) return orig; - return function(target, mode, cb) { - return orig.call(fs2, target, mode, function(er) { - if (chownErOk(er)) er = null; - if (cb) cb.apply(this, arguments); - }); - }; - } - function chmodFixSync(orig) { - if (!orig) return orig; - return function(target, mode) { - try { - return orig.call(fs2, target, mode); - } catch (er) { - if (!chownErOk(er)) throw er; - } - }; - } - function chownFix(orig) { - if (!orig) return orig; - return function(target, uid, gid, cb) { - return orig.call(fs2, target, uid, gid, function(er) { - if (chownErOk(er)) er = null; - if (cb) cb.apply(this, arguments); - }); - }; - } - function chownFixSync(orig) { - if (!orig) return orig; - return function(target, uid, gid) { - try { - return orig.call(fs2, target, uid, gid); - } catch (er) { - if (!chownErOk(er)) throw er; - } - }; - } - function statFix(orig) { - if (!orig) return orig; - return function(target, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - function callback(er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 4294967296; - if (stats.gid < 0) stats.gid += 4294967296; - } - if (cb) cb.apply(this, arguments); - } - return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback); - }; - } - function statFixSync(orig) { - if (!orig) return orig; - return function(target, options) { - var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target); - if (stats) { - if (stats.uid < 0) stats.uid += 4294967296; - if (stats.gid < 0) stats.gid += 4294967296; - } - return stats; - }; - } - function chownErOk(er) { - if (!er) - return true; - if (er.code === "ENOSYS") - return true; - var nonroot = !process.getuid || process.getuid() !== 0; - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true; - } - return false; - } - } - } -}); -var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) { - "use strict"; - var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream; - module2.exports = legacy; - function legacy(fs2) { - return { - ReadStream, - WriteStream - }; - function ReadStream(path2, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path2, options); - Stream.call(this); - var self = this; - this.path = path2; - this.fd = null; - this.readable = true; - this.paused = false; - this.flags = "r"; - this.mode = 438; - this.bufferSize = 64 * 1024; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.encoding) this.setEncoding(this.encoding); - if (this.start !== void 0) { - if ("number" !== typeof this.start) { - throw TypeError("start must be a Number"); - } - if (this.end === void 0) { - this.end = Infinity; - } else if ("number" !== typeof this.end) { - throw TypeError("end must be a Number"); - } - if (this.start > this.end) { - throw new Error("start must be <= end"); - } - this.pos = this.start; - } - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - fs2.open(this.path, this.flags, this.mode, function(err, fd) { - if (err) { - self.emit("error", err); - self.readable = false; - return; - } - self.fd = fd; - self.emit("open", fd); - self._read(); - }); - } - function WriteStream(path2, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path2, options); - Stream.call(this); - this.path = path2; - this.fd = null; - this.writable = true; - this.flags = "w"; - this.encoding = "binary"; - this.mode = 438; - this.bytesWritten = 0; - options = options || {}; - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - if (this.start !== void 0) { - if ("number" !== typeof this.start) { - throw TypeError("start must be a Number"); - } - if (this.start < 0) { - throw new Error("start must be >= zero"); - } - this.pos = this.start; - } - this.busy = false; - this._queue = []; - if (this.fd === null) { - this._open = fs2.open; - this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); - this.flush(); - } - } - } - } -}); -var require_clone = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) { - "use strict"; - module2.exports = clone; - var getPrototypeOf = Object.getPrototypeOf || function(obj) { - return obj.__proto__; - }; - function clone(obj) { - if (obj === null || typeof obj !== "object") - return obj; - if (obj instanceof Object) - var copy = { __proto__: getPrototypeOf(obj) }; - else - var copy = /* @__PURE__ */ Object.create(null); - Object.getOwnPropertyNames(obj).forEach(function(key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)); - }); - return copy; - } - } -}); -var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var polyfills = require_polyfills(); - var legacy = require_legacy_streams(); - var clone = require_clone(); - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var gracefulQueue; - var previousSymbol; - if (typeof Symbol === "function" && typeof Symbol.for === "function") { - gracefulQueue = Symbol.for("graceful-fs.queue"); - previousSymbol = Symbol.for("graceful-fs.previous"); - } else { - gracefulQueue = "___graceful-fs.queue"; - previousSymbol = "___graceful-fs.previous"; - } - function noop() { - } - function publishQueue(context, queue2) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue2; - } - }); - } - var debug = noop; - if (util.debuglog) - debug = util.debuglog("gfs4"); - else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) - debug = function() { - var m = util.format.apply(util, arguments); - m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); - console.error(m); - }; - if (!fs2[gracefulQueue]) { - queue = global[gracefulQueue] || []; - publishQueue(fs2, queue); - fs2.close = function(fs$close) { - function close(fd, cb) { - return fs$close.call(fs2, fd, function(err) { - if (!err) { - resetQueue(); - } - if (typeof cb === "function") - cb.apply(this, arguments); - }); - } - Object.defineProperty(close, previousSymbol, { - value: fs$close - }); - return close; - }(fs2.close); - fs2.closeSync = function(fs$closeSync) { - function closeSync(fd) { - fs$closeSync.apply(fs2, arguments); - resetQueue(); - } - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }); - return closeSync; - }(fs2.closeSync); - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { - process.on("exit", function() { - debug(fs2[gracefulQueue]); - (0, import_chunk_2ESYSVXG.__require)("assert").equal(fs2[gracefulQueue].length, 0); - }); - } - } - var queue; - if (!global[gracefulQueue]) { - publishQueue(global, fs2[gracefulQueue]); - } - module2.exports = patch(clone(fs2)); - if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) { - module2.exports = patch(fs2); - fs2.__patched = true; - } - function patch(fs3) { - polyfills(fs3); - fs3.gracefulify = patch; - fs3.createReadStream = createReadStream; - fs3.createWriteStream = createWriteStream; - var fs$readFile = fs3.readFile; - fs3.readFile = readFile; - function readFile(path2, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$readFile(path2, options, cb); - function go$readFile(path3, options2, cb2, startTime) { - return fs$readFile(path3, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$writeFile = fs3.writeFile; - fs3.writeFile = writeFile; - function writeFile(path2, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$writeFile(path2, data, options, cb); - function go$writeFile(path3, data2, options2, cb2, startTime) { - return fs$writeFile(path3, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$appendFile = fs3.appendFile; - if (fs$appendFile) - fs3.appendFile = appendFile; - function appendFile(path2, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$appendFile(path2, data, options, cb); - function go$appendFile(path3, data2, options2, cb2, startTime) { - return fs$appendFile(path3, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$copyFile = fs3.copyFile; - if (fs$copyFile) - fs3.copyFile = copyFile; - function copyFile(src, dest, flags, cb) { - if (typeof flags === "function") { - cb = flags; - flags = 0; - } - return go$copyFile(src, dest, flags, cb); - function go$copyFile(src2, dest2, flags2, cb2, startTime) { - return fs$copyFile(src2, dest2, flags2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$readdir = fs3.readdir; - fs3.readdir = readdir; - var noReaddirOptionVersions = /^v[0-5]\./; - function readdir(path2, options, cb) { - if (typeof options === "function") - cb = options, options = null; - var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) { - return fs$readdir(path3, fs$readdirCallback( - path3, - options2, - cb2, - startTime - )); - } : function go$readdir2(path3, options2, cb2, startTime) { - return fs$readdir(path3, options2, fs$readdirCallback( - path3, - options2, - cb2, - startTime - )); - }; - return go$readdir(path2, options, cb); - function fs$readdirCallback(path3, options2, cb2, startTime) { - return function(err, files) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([ - go$readdir, - [path3, options2, cb2], - err, - startTime || Date.now(), - Date.now() - ]); - else { - if (files && files.sort) - files.sort(); - if (typeof cb2 === "function") - cb2.call(this, err, files); - } - }; - } - } - if (process.version.substr(0, 4) === "v0.8") { - var legStreams = legacy(fs3); - ReadStream = legStreams.ReadStream; - WriteStream = legStreams.WriteStream; - } - var fs$ReadStream = fs3.ReadStream; - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype); - ReadStream.prototype.open = ReadStream$open; - } - var fs$WriteStream = fs3.WriteStream; - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype); - WriteStream.prototype.open = WriteStream$open; - } - Object.defineProperty(fs3, "ReadStream", { - get: function() { - return ReadStream; - }, - set: function(val) { - ReadStream = val; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(fs3, "WriteStream", { - get: function() { - return WriteStream; - }, - set: function(val) { - WriteStream = val; - }, - enumerable: true, - configurable: true - }); - var FileReadStream = ReadStream; - Object.defineProperty(fs3, "FileReadStream", { - get: function() { - return FileReadStream; - }, - set: function(val) { - FileReadStream = val; - }, - enumerable: true, - configurable: true - }); - var FileWriteStream = WriteStream; - Object.defineProperty(fs3, "FileWriteStream", { - get: function() { - return FileWriteStream; - }, - set: function(val) { - FileWriteStream = val; - }, - enumerable: true, - configurable: true - }); - function ReadStream(path2, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this; - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments); - } - function ReadStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - if (that.autoClose) - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - that.read(); - } - }); - } - function WriteStream(path2, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this; - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments); - } - function WriteStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - } - }); - } - function createReadStream(path2, options) { - return new fs3.ReadStream(path2, options); - } - function createWriteStream(path2, options) { - return new fs3.WriteStream(path2, options); - } - var fs$open = fs3.open; - fs3.open = open; - function open(path2, flags, mode, cb) { - if (typeof mode === "function") - cb = mode, mode = null; - return go$open(path2, flags, mode, cb); - function go$open(path3, flags2, mode2, cb2, startTime) { - return fs$open(path3, flags2, mode2, function(err, fd) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - return fs3; - } - function enqueue(elem) { - debug("ENQUEUE", elem[0].name, elem[1]); - fs2[gracefulQueue].push(elem); - retry(); - } - var retryTimer; - function resetQueue() { - var now = Date.now(); - for (var i = 0; i < fs2[gracefulQueue].length; ++i) { - if (fs2[gracefulQueue][i].length > 2) { - fs2[gracefulQueue][i][3] = now; - fs2[gracefulQueue][i][4] = now; - } - } - retry(); - } - function retry() { - clearTimeout(retryTimer); - retryTimer = void 0; - if (fs2[gracefulQueue].length === 0) - return; - var elem = fs2[gracefulQueue].shift(); - var fn = elem[0]; - var args = elem[1]; - var err = elem[2]; - var startTime = elem[3]; - var lastTime = elem[4]; - if (startTime === void 0) { - debug("RETRY", fn.name, args); - fn.apply(null, args); - } else if (Date.now() - startTime >= 6e4) { - debug("TIMEOUT", fn.name, args); - var cb = args.pop(); - if (typeof cb === "function") - cb.call(null, err); - } else { - var sinceAttempt = Date.now() - lastTime; - var sinceStart = Math.max(lastTime - startTime, 1); - var desiredDelay = Math.min(sinceStart * 1.2, 100); - if (sinceAttempt >= desiredDelay) { - debug("RETRY", fn.name, args); - fn.apply(null, args.concat([startTime])); - } else { - fs2[gracefulQueue].push(elem); - } - } - if (retryTimer === void 0) { - retryTimer = setTimeout(retry, 0); - } - } - } -}); -var require_is_path_cwd = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - module2.exports = (path_) => { - let cwd = process.cwd(); - path_ = path2.resolve(path_); - if (process.platform === "win32") { - cwd = cwd.toLowerCase(); - path_ = path_.toLowerCase(); - } - return path_ === cwd; - }; - } -}); -var require_is_path_inside = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module2) { - "use strict"; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - module2.exports = (childPath, parentPath) => { - const relation = path2.relative(parentPath, childPath); - return Boolean( - relation && relation !== ".." && !relation.startsWith(`..${path2.sep}`) && relation !== path2.resolve(childPath) - ); - }; - } -}); -var require_old = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js"(exports) { - "use strict"; - var pathModule = (0, import_chunk_2ESYSVXG.__require)("path"); - var isWindows = process.platform === "win32"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); - function rethrow() { - var callback; - if (DEBUG) { - var backtrace = new Error(); - callback = debugCallback; - } else - callback = missingCallback; - return callback; - function debugCallback(err) { - if (err) { - backtrace.message = err.message; - err = backtrace; - missingCallback(err); - } - } - function missingCallback(err) { - if (err) { - if (process.throwDeprecation) - throw err; - else if (!process.noDeprecation) { - var msg = "fs: missing callback " + (err.stack || err.message); - if (process.traceDeprecation) - console.trace(msg); - else - console.error(msg); - } - } - } - } - function maybeCallback(cb) { - return typeof cb === "function" ? cb : rethrow(); - } - var normalize = pathModule.normalize; - if (isWindows) { - nextPartRe = /(.*?)(?:[\/\\]+|$)/g; - } else { - nextPartRe = /(.*?)(?:[\/]+|$)/g; - } - var nextPartRe; - if (isWindows) { - splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; - } else { - splitRootRe = /^[\/]*/; - } - var splitRootRe; - exports.realpathSync = function realpathSync(p, cache) { - p = pathModule.resolve(p); - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return cache[p]; - } - var original = p, seenLinks = {}, knownHard = {}; - var pos; - var current; - var base; - var previous; - start(); - function start() { - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ""; - if (isWindows && !knownHard[base]) { - fs2.lstatSync(base); - knownHard[base] = true; - } - } - while (pos < p.length) { - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - if (knownHard[base] || cache && cache[base] === base) { - continue; - } - var resolvedLink; - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - resolvedLink = cache[base]; - } else { - var stat = fs2.lstatSync(base); - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - continue; - } - var linkTarget = null; - if (!isWindows) { - var id = stat.dev.toString(32) + ":" + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - linkTarget = seenLinks[id]; - } - } - if (linkTarget === null) { - fs2.statSync(base); - linkTarget = fs2.readlinkSync(base); - } - resolvedLink = pathModule.resolve(previous, linkTarget); - if (cache) cache[base] = resolvedLink; - if (!isWindows) seenLinks[id] = linkTarget; - } - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } - if (cache) cache[original] = p; - return p; - }; - exports.realpath = function realpath(p, cache, cb) { - if (typeof cb !== "function") { - cb = maybeCallback(cache); - cache = null; - } - p = pathModule.resolve(p); - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return process.nextTick(cb.bind(null, null, cache[p])); - } - var original = p, seenLinks = {}, knownHard = {}; - var pos; - var current; - var base; - var previous; - start(); - function start() { - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ""; - if (isWindows && !knownHard[base]) { - fs2.lstat(base, function(err) { - if (err) return cb(err); - knownHard[base] = true; - LOOP(); - }); - } else { - process.nextTick(LOOP); - } - } - function LOOP() { - if (pos >= p.length) { - if (cache) cache[original] = p; - return cb(null, p); - } - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - if (knownHard[base] || cache && cache[base] === base) { - return process.nextTick(LOOP); - } - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - return gotResolvedLink(cache[base]); - } - return fs2.lstat(base, gotStat); - } - function gotStat(err, stat) { - if (err) return cb(err); - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - return process.nextTick(LOOP); - } - if (!isWindows) { - var id = stat.dev.toString(32) + ":" + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - return gotTarget(null, seenLinks[id], base); - } - } - fs2.stat(base, function(err2) { - if (err2) return cb(err2); - fs2.readlink(base, function(err3, target) { - if (!isWindows) seenLinks[id] = target; - gotTarget(err3, target); - }); - }); - } - function gotTarget(err, target, base2) { - if (err) return cb(err); - var resolvedLink = pathModule.resolve(previous, target); - if (cache) cache[base2] = resolvedLink; - gotResolvedLink(resolvedLink); - } - function gotResolvedLink(resolvedLink) { - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } - }; - } -}); -var require_fs6 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js"(exports, module2) { - "use strict"; - module2.exports = realpath; - realpath.realpath = realpath; - realpath.sync = realpathSync; - realpath.realpathSync = realpathSync; - realpath.monkeypatch = monkeypatch; - realpath.unmonkeypatch = unmonkeypatch; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var origRealpath = fs2.realpath; - var origRealpathSync = fs2.realpathSync; - var version = process.version; - var ok = /^v[0-5]\./.test(version); - var old = require_old(); - function newError(er) { - return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG"); - } - function realpath(p, cache, cb) { - if (ok) { - return origRealpath(p, cache, cb); - } - if (typeof cache === "function") { - cb = cache; - cache = null; - } - origRealpath(p, cache, function(er, result) { - if (newError(er)) { - old.realpath(p, cache, cb); - } else { - cb(er, result); - } - }); - } - function realpathSync(p, cache) { - if (ok) { - return origRealpathSync(p, cache); - } - try { - return origRealpathSync(p, cache); - } catch (er) { - if (newError(er)) { - return old.realpathSync(p, cache); - } else { - throw er; - } - } - } - function monkeypatch() { - fs2.realpath = realpath; - fs2.realpathSync = realpathSync; - } - function unmonkeypatch() { - fs2.realpath = origRealpath; - fs2.realpathSync = origRealpathSync; - } - } -}); -var require_concat_map = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports, module2) { - "use strict"; - module2.exports = function(xs, fn) { - var res = []; - for (var i = 0; i < xs.length; i++) { - var x = fn(xs[i], i); - if (isArray(x)) res.push.apply(res, x); - else res.push(x); - } - return res; - }; - var isArray = Array.isArray || function(xs) { - return Object.prototype.toString.call(xs) === "[object Array]"; - }; - } -}); -var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) { - "use strict"; - var concatMap = require_concat_map(); - var balanced = require_balanced_match(); - module2.exports = expandTop; - var escSlash = "\0SLASH" + Math.random() + "\0"; - var escOpen = "\0OPEN" + Math.random() + "\0"; - var escClose = "\0CLOSE" + Math.random() + "\0"; - var escComma = "\0COMMA" + Math.random() + "\0"; - var escPeriod = "\0PERIOD" + Math.random() + "\0"; - function numeric(str) { - return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); - } - function escapeBraces(str) { - return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); - } - function unescapeBraces(str) { - return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); - } - function parseCommaParts(str) { - if (!str) - return [""]; - var parts = []; - var m = balanced("{", "}", str); - if (!m) - return str.split(","); - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(","); - p[p.length - 1] += "{" + body + "}"; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length - 1] += postParts.shift(); - p.push.apply(p, postParts); - } - parts.push.apply(parts, p); - return parts; - } - function expandTop(str) { - if (!str) - return []; - if (str.substr(0, 2) === "{}") { - str = "\\{\\}" + str.substr(2); - } - return expand(escapeBraces(str), true).map(unescapeBraces); - } - function embrace(str) { - return "{" + str + "}"; - } - function isPadded(el) { - return /^-?0\d/.test(el); - } - function lte(i, y) { - return i <= y; - } - function gte(i, y) { - return i >= y; - } - function expand(str, isTop) { - var expansions = []; - var m = balanced("{", "}", str); - if (!m || /\$$/.test(m.pre)) return [str]; - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(",") >= 0; - if (!isSequence && !isOptions) { - if (m.post.match(/,.*\}/)) { - str = m.pre + "{" + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length ? expand(m.post, false) : [""]; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - var pre = m.pre; - var post = m.post.length ? expand(m.post, false) : [""]; - var N; - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length); - var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - N = []; - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === "\\") - c = ""; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join("0"); - if (i < 0) - c = "-" + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { - return expand(el, false); - }); - } - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - return expansions; - } - } -}); -var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) { - "use strict"; - module2.exports = minimatch; - minimatch.Minimatch = Minimatch; - var path2 = function() { - try { - return (0, import_chunk_2ESYSVXG.__require)("path"); - } catch (e) { - } - }() || { - sep: "/" - }; - minimatch.sep = path2.sep; - var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; - var expand = require_brace_expansion2(); - var plTypes = { - "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, - "?": { open: "(?:", close: ")?" }, - "+": { open: "(?:", close: ")+" }, - "*": { open: "(?:", close: ")*" }, - "@": { open: "(?:", close: ")" } - }; - var qmark = "[^/]"; - var star = qmark + "*?"; - var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; - var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; - var reSpecials = charSet("().*{}+?[]^$\\!"); - function charSet(s) { - return s.split("").reduce(function(set, c) { - set[c] = true; - return set; - }, {}); - } - var slashSplit = /\/+/; - minimatch.filter = filter; - function filter(pattern, options) { - options = options || {}; - return function(p, i, list) { - return minimatch(p, pattern, options); - }; - } - function ext(a, b) { - b = b || {}; - var t = {}; - Object.keys(a).forEach(function(k) { - t[k] = a[k]; - }); - Object.keys(b).forEach(function(k) { - t[k] = b[k]; - }); - return t; - } - minimatch.defaults = function(def) { - if (!def || typeof def !== "object" || !Object.keys(def).length) { - return minimatch; - } - var orig = minimatch; - var m = function minimatch2(p, pattern, options) { - return orig(p, pattern, ext(def, options)); - }; - m.Minimatch = function Minimatch2(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)); - }; - m.Minimatch.defaults = function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - }; - m.filter = function filter2(pattern, options) { - return orig.filter(pattern, ext(def, options)); - }; - m.defaults = function defaults(options) { - return orig.defaults(ext(def, options)); - }; - m.makeRe = function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); - }; - m.braceExpand = function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); - }; - m.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); - }; - return m; - }; - Minimatch.defaults = function(def) { - return minimatch.defaults(def).Minimatch; - }; - function minimatch(p, pattern, options) { - assertValidPattern(pattern); - if (!options) options = {}; - if (!options.nocomment && pattern.charAt(0) === "#") { - return false; - } - return new Minimatch(pattern, options).match(p); - } - function Minimatch(pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options); - } - assertValidPattern(pattern); - if (!options) options = {}; - pattern = pattern.trim(); - if (!options.allowWindowsEscape && path2.sep !== "/") { - pattern = pattern.split(path2.sep).join("/"); - } - this.options = options; - this.set = []; - this.pattern = pattern; - this.regexp = null; - this.negate = false; - this.comment = false; - this.empty = false; - this.partial = !!options.partial; - this.make(); - } - Minimatch.prototype.debug = function() { - }; - Minimatch.prototype.make = make; - function make() { - var pattern = this.pattern; - var options = this.options; - if (!options.nocomment && pattern.charAt(0) === "#") { - this.comment = true; - return; - } - if (!pattern) { - this.empty = true; - return; - } - this.parseNegate(); - var set = this.globSet = this.braceExpand(); - if (options.debug) this.debug = function debug() { - console.error.apply(console, arguments); - }; - this.debug(this.pattern, set); - set = this.globParts = set.map(function(s) { - return s.split(slashSplit); - }); - this.debug(this.pattern, set); - set = set.map(function(s, si, set2) { - return s.map(this.parse, this); - }, this); - this.debug(this.pattern, set); - set = set.filter(function(s) { - return s.indexOf(false) === -1; - }); - this.debug(this.pattern, set); - this.set = set; - } - Minimatch.prototype.parseNegate = parseNegate; - function parseNegate() { - var pattern = this.pattern; - var negate = false; - var options = this.options; - var negateOffset = 0; - if (options.nonegate) return; - for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) { - negate = !negate; - negateOffset++; - } - if (negateOffset) this.pattern = pattern.substr(negateOffset); - this.negate = negate; - } - minimatch.braceExpand = function(pattern, options) { - return braceExpand(pattern, options); - }; - Minimatch.prototype.braceExpand = braceExpand; - function braceExpand(pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options; - } else { - options = {}; - } - } - pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { - return [pattern]; - } - return expand(pattern); - } - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = function(pattern) { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); - } - }; - Minimatch.prototype.parse = parse; - var SUBPARSE = {}; - function parse(pattern, isSub) { - assertValidPattern(pattern); - var options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; - } - if (pattern === "") return ""; - var re = ""; - var hasMagic = !!options.nocase; - var escaping = false; - var patternListStack = []; - var negativeLists = []; - var stateChar; - var inClass = false; - var reClassStart = -1; - var classStart = -1; - var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; - var self = this; - function clearStateChar() { - if (stateChar) { - switch (stateChar) { - case "*": - re += star; - hasMagic = true; - break; - case "?": - re += qmark; - hasMagic = true; - break; - default: - re += "\\" + stateChar; - break; - } - self.debug("clearStateChar %j %j", stateChar, re); - stateChar = false; - } - } - for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re, c); - if (escaping && reSpecials[c]) { - re += "\\" + c; - escaping = false; - continue; - } - switch (c) { - case "/": { - return false; - } - case "\\": - clearStateChar(); - escaping = true; - continue; - case "?": - case "*": - case "+": - case "@": - case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c); - if (inClass) { - this.debug(" in class"); - if (c === "!" && i === classStart + 1) c = "^"; - re += c; - continue; - } - self.debug("call clearStateChar %j", stateChar); - clearStateChar(); - stateChar = c; - if (options.noext) clearStateChar(); - continue; - case "(": - if (inClass) { - re += "("; - continue; - } - if (!stateChar) { - re += "\\("; - continue; - } - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }); - re += stateChar === "!" ? "(?:(?!(?:" : "(?:"; - this.debug("plType %j %j", stateChar, re); - stateChar = false; - continue; - case ")": - if (inClass || !patternListStack.length) { - re += "\\)"; - continue; - } - clearStateChar(); - hasMagic = true; - var pl = patternListStack.pop(); - re += pl.close; - if (pl.type === "!") { - negativeLists.push(pl); - } - pl.reEnd = re.length; - continue; - case "|": - if (inClass || !patternListStack.length || escaping) { - re += "\\|"; - escaping = false; - continue; - } - clearStateChar(); - re += "|"; - continue; - case "[": - clearStateChar(); - if (inClass) { - re += "\\" + c; - continue; - } - inClass = true; - classStart = i; - reClassStart = re.length; - re += c; - continue; - case "]": - if (i === classStart + 1 || !inClass) { - re += "\\" + c; - escaping = false; - continue; - } - var cs = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs + "]"); - } catch (er) { - var sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]"; - hasMagic = hasMagic || sp[1]; - inClass = false; - continue; - } - hasMagic = true; - inClass = false; - re += c; - continue; - default: - clearStateChar(); - if (escaping) { - escaping = false; - } else if (reSpecials[c] && !(c === "^" && inClass)) { - re += "\\"; - } - re += c; - } - } - if (inClass) { - cs = pattern.substr(classStart + 1); - sp = this.parse(cs, SUBPARSE); - re = re.substr(0, reClassStart) + "\\[" + sp[0]; - hasMagic = hasMagic || sp[1]; - } - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length); - this.debug("setting tail", re, pl); - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) { - if (!$2) { - $2 = "\\"; - } - return $1 + $1 + $2 + "|"; - }); - this.debug("tail=%j\n %s", tail, tail, pl, re); - var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type; - hasMagic = true; - re = re.slice(0, pl.reStart) + t + "\\(" + tail; - } - clearStateChar(); - if (escaping) { - re += "\\\\"; - } - var addPatternStart = false; - switch (re.charAt(0)) { - case "[": - case ".": - case "(": - addPatternStart = true; - } - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n]; - var nlBefore = re.slice(0, nl.reStart); - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8); - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd); - var nlAfter = re.slice(nl.reEnd); - nlLast += nlAfter; - var openParensBefore = nlBefore.split("(").length - 1; - var cleanAfter = nlAfter; - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); - } - nlAfter = cleanAfter; - var dollar = ""; - if (nlAfter === "" && isSub !== SUBPARSE) { - dollar = "$"; - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; - re = newRe; - } - if (re !== "" && hasMagic) { - re = "(?=.)" + re; - } - if (addPatternStart) { - re = patternStart + re; - } - if (isSub === SUBPARSE) { - return [re, hasMagic]; - } - if (!hasMagic) { - return globUnescape(pattern); - } - var flags = options.nocase ? "i" : ""; - try { - var regExp = new RegExp("^" + re + "$", flags); - } catch (er) { - return new RegExp("$."); - } - regExp._glob = pattern; - regExp._src = re; - return regExp; - } - minimatch.makeRe = function(pattern, options) { - return new Minimatch(pattern, options || {}).makeRe(); - }; - Minimatch.prototype.makeRe = makeRe; - function makeRe() { - if (this.regexp || this.regexp === false) return this.regexp; - var set = this.set; - if (!set.length) { - this.regexp = false; - return this.regexp; - } - var options = this.options; - var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; - var flags = options.nocase ? "i" : ""; - var re = set.map(function(pattern) { - return pattern.map(function(p) { - return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src; - }).join("\\/"); - }).join("|"); - re = "^(?:" + re + ")$"; - if (this.negate) re = "^(?!" + re + ").*$"; - try { - this.regexp = new RegExp(re, flags); - } catch (ex) { - this.regexp = false; - } - return this.regexp; - } - minimatch.match = function(list, pattern, options) { - options = options || {}; - var mm = new Minimatch(pattern, options); - list = list.filter(function(f) { - return mm.match(f); - }); - if (mm.options.nonull && !list.length) { - list.push(pattern); - } - return list; - }; - Minimatch.prototype.match = function match(f, partial) { - if (typeof partial === "undefined") partial = this.partial; - this.debug("match", f, this.pattern); - if (this.comment) return false; - if (this.empty) return f === ""; - if (f === "/" && partial) return true; - var options = this.options; - if (path2.sep !== "/") { - f = f.split(path2.sep).join("/"); - } - f = f.split(slashSplit); - this.debug(this.pattern, "split", f); - var set = this.set; - this.debug(this.pattern, "set", set); - var filename; - var i; - for (i = f.length - 1; i >= 0; i--) { - filename = f[i]; - if (filename) break; - } - for (i = 0; i < set.length; i++) { - var pattern = set[i]; - var file = f; - if (options.matchBase && pattern.length === 1) { - file = [filename]; - } - var hit = this.matchOne(file, pattern, partial); - if (hit) { - if (options.flipNegate) return true; - return !this.negate; - } - } - if (options.flipNegate) return false; - return this.negate; - }; - Minimatch.prototype.matchOne = function(file, pattern, partial) { - var options = this.options; - this.debug( - "matchOne", - { "this": this, file, pattern } - ); - this.debug("matchOne", file.length, pattern.length); - for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { - this.debug("matchOne loop"); - var p = pattern[pi]; - var f = file[fi]; - this.debug(pattern, p, f); - if (p === false) return false; - if (p === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p, f]); - var fr = fi; - var pr = pi + 1; - if (pr === pl) { - this.debug("** at the end"); - for (; fi < fl; fi++) { - if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false; - } - return true; - } - while (fr < fl) { - var swallowee = file[fr]; - this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug("globstar found match!", fr, fl, swallowee); - return true; - } else { - if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { - this.debug("dot detected!", file, fr, pattern, pr); - break; - } - this.debug("globstar swallow a segment, and continue"); - fr++; - } - } - if (partial) { - this.debug("\n>>> no match, partial?", file, fr, pattern, pr); - if (fr === fl) return true; - } - return false; - } - var hit; - if (typeof p === "string") { - hit = f === p; - this.debug("string match", p, f, hit); - } else { - hit = f.match(p); - this.debug("pattern match", p, f, hit); - } - if (!hit) return false; - } - if (fi === fl && pi === pl) { - return true; - } else if (fi === fl) { - return partial; - } else if (pi === pl) { - return fi === fl - 1 && file[fi] === ""; - } - throw new Error("wtf?"); - }; - function globUnescape(s) { - return s.replace(/\\(.)/g, "$1"); - } - function regExpEscape(s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - } - } -}); -var require_inherits_browser = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports, module2) { - "use strict"; - if (typeof Object.create === "function") { - module2.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - } - }; - } else { - module2.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() { - }; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - } - }; - } - } -}); -var require_inherits = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports, module2) { - "use strict"; - try { - util = (0, import_chunk_2ESYSVXG.__require)("util"); - if (typeof util.inherits !== "function") throw ""; - module2.exports = util.inherits; - } catch (e) { - module2.exports = require_inherits_browser(); - } - var util; - } -}); -var require_path_is_absolute = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) { - "use strict"; - function posix(path2) { - return path2.charAt(0) === "/"; - } - function win32(path2) { - var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; - var result = splitDeviceRe.exec(path2); - var device = result[1] || ""; - var isUnc = Boolean(device && device.charAt(1) !== ":"); - return Boolean(result[2] || isUnc); - } - module2.exports = process.platform === "win32" ? win32 : posix; - module2.exports.posix = posix; - module2.exports.win32 = win32; - } -}); -var require_common3 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js"(exports) { - "use strict"; - exports.setopts = setopts; - exports.ownProp = ownProp; - exports.makeAbs = makeAbs; - exports.finish = finish; - exports.mark = mark; - exports.isIgnored = isIgnored; - exports.childrenIgnored = childrenIgnored; - function ownProp(obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field); - } - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var minimatch = require_minimatch2(); - var isAbsolute = require_path_is_absolute(); - var Minimatch = minimatch.Minimatch; - function alphasort(a, b) { - return a.localeCompare(b, "en"); - } - function setupIgnores(self, options) { - self.ignore = options.ignore || []; - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore]; - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap); - } - } - function ignoreMap(pattern) { - var gmatcher = null; - if (pattern.slice(-3) === "/**") { - var gpattern = pattern.replace(/(\/\*\*)+$/, ""); - gmatcher = new Minimatch(gpattern, { dot: true }); - } - return { - matcher: new Minimatch(pattern, { dot: true }), - gmatcher - }; - } - function setopts(self, pattern, options) { - if (!options) - options = {}; - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar"); - } - pattern = "**/" + pattern; - } - self.silent = !!options.silent; - self.pattern = pattern; - self.strict = options.strict !== false; - self.realpath = !!options.realpath; - self.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null); - self.follow = !!options.follow; - self.dot = !!options.dot; - self.mark = !!options.mark; - self.nodir = !!options.nodir; - if (self.nodir) - self.mark = true; - self.sync = !!options.sync; - self.nounique = !!options.nounique; - self.nonull = !!options.nonull; - self.nosort = !!options.nosort; - self.nocase = !!options.nocase; - self.stat = !!options.stat; - self.noprocess = !!options.noprocess; - self.absolute = !!options.absolute; - self.fs = options.fs || fs2; - self.maxLength = options.maxLength || Infinity; - self.cache = options.cache || /* @__PURE__ */ Object.create(null); - self.statCache = options.statCache || /* @__PURE__ */ Object.create(null); - self.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null); - setupIgnores(self, options); - self.changedCwd = false; - var cwd = process.cwd(); - if (!ownProp(options, "cwd")) - self.cwd = cwd; - else { - self.cwd = path2.resolve(options.cwd); - self.changedCwd = self.cwd !== cwd; - } - self.root = options.root || path2.resolve(self.cwd, "/"); - self.root = path2.resolve(self.root); - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/"); - self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd); - if (process.platform === "win32") - self.cwdAbs = self.cwdAbs.replace(/\\/g, "/"); - self.nomount = !!options.nomount; - options.nonegate = true; - options.nocomment = true; - options.allowWindowsEscape = false; - self.minimatch = new Minimatch(pattern, options); - self.options = self.minimatch.options; - } - function finish(self) { - var nou = self.nounique; - var all = nou ? [] : /* @__PURE__ */ Object.create(null); - for (var i = 0, l = self.matches.length; i < l; i++) { - var matches = self.matches[i]; - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - var literal = self.minimatch.globSet[i]; - if (nou) - all.push(literal); - else - all[literal] = true; - } - } else { - var m = Object.keys(matches); - if (nou) - all.push.apply(all, m); - else - m.forEach(function(m2) { - all[m2] = true; - }); - } - } - if (!nou) - all = Object.keys(all); - if (!self.nosort) - all = all.sort(alphasort); - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]); - } - if (self.nodir) { - all = all.filter(function(e) { - var notDir = !/\/$/.test(e); - var c = self.cache[e] || self.cache[makeAbs(self, e)]; - if (notDir && c) - notDir = c !== "DIR" && !Array.isArray(c); - return notDir; - }); - } - } - if (self.ignore.length) - all = all.filter(function(m2) { - return !isIgnored(self, m2); - }); - self.found = all; - } - function mark(self, p) { - var abs = makeAbs(self, p); - var c = self.cache[abs]; - var m = p; - if (c) { - var isDir = c === "DIR" || Array.isArray(c); - var slash = p.slice(-1) === "/"; - if (isDir && !slash) - m += "/"; - else if (!isDir && slash) - m = m.slice(0, -1); - if (m !== p) { - var mabs = makeAbs(self, m); - self.statCache[mabs] = self.statCache[abs]; - self.cache[mabs] = self.cache[abs]; - } - } - return m; - } - function makeAbs(self, f) { - var abs = f; - if (f.charAt(0) === "/") { - abs = path2.join(self.root, f); - } else if (isAbsolute(f) || f === "") { - abs = f; - } else if (self.changedCwd) { - abs = path2.resolve(self.cwd, f); - } else { - abs = path2.resolve(f); - } - if (process.platform === "win32") - abs = abs.replace(/\\/g, "/"); - return abs; - } - function isIgnored(self, path3) { - if (!self.ignore.length) - return false; - return self.ignore.some(function(item) { - return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3)); - }); - } - function childrenIgnored(self, path3) { - if (!self.ignore.length) - return false; - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path3)); - }); - } - } -}); -var require_sync7 = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js"(exports, module2) { - "use strict"; - module2.exports = globSync; - globSync.GlobSync = GlobSync; - var rp = require_fs6(); - var minimatch = require_minimatch2(); - var Minimatch = minimatch.Minimatch; - var Glob = require_glob().Glob; - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var assert = (0, import_chunk_2ESYSVXG.__require)("assert"); - var isAbsolute = require_path_is_absolute(); - var common = require_common3(); - var setopts = common.setopts; - var ownProp = common.ownProp; - var childrenIgnored = common.childrenIgnored; - var isIgnored = common.isIgnored; - function globSync(pattern, options) { - if (typeof options === "function" || arguments.length === 3) - throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); - return new GlobSync(pattern, options).found; - } - function GlobSync(pattern, options) { - if (!pattern) - throw new Error("must provide pattern"); - if (typeof options === "function" || arguments.length === 3) - throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); - if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options); - setopts(this, pattern, options); - if (this.noprocess) - return this; - var n = this.minimatch.set.length; - this.matches = new Array(n); - for (var i = 0; i < n; i++) { - this._process(this.minimatch.set[i], i, false); - } - this._finish(); - } - GlobSync.prototype._finish = function() { - assert.ok(this instanceof GlobSync); - if (this.realpath) { - var self = this; - this.matches.forEach(function(matchset, index) { - var set = self.matches[index] = /* @__PURE__ */ Object.create(null); - for (var p in matchset) { - try { - p = self._makeAbs(p); - var real = rp.realpathSync(p, self.realpathCache); - set[real] = true; - } catch (er) { - if (er.syscall === "stat") - set[self._makeAbs(p)] = true; - else - throw er; - } - } - }); - } - common.finish(this); - }; - GlobSync.prototype._process = function(pattern, index, inGlobStar) { - assert.ok(this instanceof GlobSync); - var n = 0; - while (typeof pattern[n] === "string") { - n++; - } - var prefix; - switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index); - return; - case 0: - prefix = null; - break; - default: - prefix = pattern.slice(0, n).join("/"); - break; - } - var remain = pattern.slice(n); - var read; - if (prefix === null) - read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) { - return typeof p === "string" ? p : "[*]"; - }).join("/"))) { - if (!prefix || !isAbsolute(prefix)) - prefix = "/" + prefix; - read = prefix; - } else - read = prefix; - var abs = this._makeAbs(read); - if (childrenIgnored(this, read)) - return; - var isGlobStar = remain[0] === minimatch.GLOBSTAR; - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar); - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar); - }; - GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar); - if (!entries) - return; - var pn = remain[0]; - var negate = !!this.minimatch.negate; - var rawGlob = pn._glob; - var dotOk = this.dot || rawGlob.charAt(0) === "."; - var matchedEntries = []; - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (e.charAt(0) !== "." || dotOk) { - var m; - if (negate && !prefix) { - m = !e.match(pn); - } else { - m = e.match(pn); - } - if (m) - matchedEntries.push(e); - } - } - var len = matchedEntries.length; - if (len === 0) - return; - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - if (prefix) { - if (prefix.slice(-1) !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - if (e.charAt(0) === "/" && !this.nomount) { - e = path2.join(this.root, e); - } - this._emitMatch(index, e); - } - return; - } - remain.shift(); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - var newPattern; - if (prefix) - newPattern = [prefix, e]; - else - newPattern = [e]; - this._process(newPattern.concat(remain), index, inGlobStar); - } - }; - GlobSync.prototype._emitMatch = function(index, e) { - if (isIgnored(this, e)) - return; - var abs = this._makeAbs(e); - if (this.mark) - e = this._mark(e); - if (this.absolute) { - e = abs; - } - if (this.matches[index][e]) - return; - if (this.nodir) { - var c = this.cache[abs]; - if (c === "DIR" || Array.isArray(c)) - return; - } - this.matches[index][e] = true; - if (this.stat) - this._stat(e); - }; - GlobSync.prototype._readdirInGlobStar = function(abs) { - if (this.follow) - return this._readdir(abs, false); - var entries; - var lstat; - var stat; - try { - lstat = this.fs.lstatSync(abs); - } catch (er) { - if (er.code === "ENOENT") { - return null; - } - } - var isSym = lstat && lstat.isSymbolicLink(); - this.symlinks[abs] = isSym; - if (!isSym && lstat && !lstat.isDirectory()) - this.cache[abs] = "FILE"; - else - entries = this._readdir(abs, false); - return entries; - }; - GlobSync.prototype._readdir = function(abs, inGlobStar) { - var entries; - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs); - if (ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (!c || c === "FILE") - return null; - if (Array.isArray(c)) - return c; - } - try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)); - } catch (er) { - this._readdirError(abs, er); - return null; - } - }; - GlobSync.prototype._readdirEntries = function(abs, entries) { - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (abs === "/") - e = abs + e; - else - e = abs + "/" + e; - this.cache[e] = true; - } - } - this.cache[abs] = entries; - return entries; - }; - GlobSync.prototype._readdirError = function(f, er) { - switch (er.code) { - case "ENOTSUP": - case "ENOTDIR": - var abs = this._makeAbs(f); - this.cache[abs] = "FILE"; - if (abs === this.cwdAbs) { - var error = new Error(er.code + " invalid cwd " + this.cwd); - error.path = this.cwd; - error.code = er.code; - throw error; - } - break; - case "ENOENT": - case "ELOOP": - case "ENAMETOOLONG": - case "UNKNOWN": - this.cache[this._makeAbs(f)] = false; - break; - default: - this.cache[this._makeAbs(f)] = false; - if (this.strict) - throw er; - if (!this.silent) - console.error("glob error", er); - break; - } - }; - GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar); - if (!entries) - return; - var remainWithoutGlobStar = remain.slice(1); - var gspref = prefix ? [prefix] : []; - var noGlobStar = gspref.concat(remainWithoutGlobStar); - this._process(noGlobStar, index, false); - var len = entries.length; - var isSym = this.symlinks[abs]; - if (isSym && inGlobStar) - return; - for (var i = 0; i < len; i++) { - var e = entries[i]; - if (e.charAt(0) === "." && !this.dot) - continue; - var instead = gspref.concat(entries[i], remainWithoutGlobStar); - this._process(instead, index, true); - var below = gspref.concat(entries[i], remain); - this._process(below, index, true); - } - }; - GlobSync.prototype._processSimple = function(prefix, index) { - var exists = this._stat(prefix); - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - if (!exists) - return; - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix); - if (prefix.charAt(0) === "/") { - prefix = path2.join(this.root, prefix); - } else { - prefix = path2.resolve(this.root, prefix); - if (trail) - prefix += "/"; - } - } - if (process.platform === "win32") - prefix = prefix.replace(/\\/g, "/"); - this._emitMatch(index, prefix); - }; - GlobSync.prototype._stat = function(f) { - var abs = this._makeAbs(f); - var needDir = f.slice(-1) === "/"; - if (f.length > this.maxLength) - return false; - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (Array.isArray(c)) - c = "DIR"; - if (!needDir || c === "DIR") - return c; - if (needDir && c === "FILE") - return false; - } - var exists; - var stat = this.statCache[abs]; - if (!stat) { - var lstat; - try { - lstat = this.fs.lstatSync(abs); - } catch (er) { - if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { - this.statCache[abs] = false; - return false; - } - } - if (lstat && lstat.isSymbolicLink()) { - try { - stat = this.fs.statSync(abs); - } catch (er) { - stat = lstat; - } - } else { - stat = lstat; - } - } - this.statCache[abs] = stat; - var c = true; - if (stat) - c = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c; - if (needDir && c === "FILE") - return false; - return c; - }; - GlobSync.prototype._mark = function(p) { - return common.mark(this, p); - }; - GlobSync.prototype._makeAbs = function(f) { - return common.makeAbs(this, f); - }; - } -}); -var require_wrappy = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports, module2) { - "use strict"; - module2.exports = wrappy; - function wrappy(fn, cb) { - if (fn && cb) return wrappy(fn)(cb); - if (typeof fn !== "function") - throw new TypeError("need wrapper function"); - Object.keys(fn).forEach(function(k) { - wrapper[k] = fn[k]; - }); - return wrapper; - function wrapper() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - var ret = fn.apply(this, args); - var cb2 = args[args.length - 1]; - if (typeof ret === "function" && ret !== cb2) { - Object.keys(cb2).forEach(function(k) { - ret[k] = cb2[k]; - }); - } - return ret; - } - } - } -}); -var require_once = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports, module2) { - "use strict"; - var wrappy = require_wrappy(); - module2.exports = wrappy(once); - module2.exports.strict = wrappy(onceStrict); - once.proto = once(function() { - Object.defineProperty(Function.prototype, "once", { - value: function() { - return once(this); - }, - configurable: true - }); - Object.defineProperty(Function.prototype, "onceStrict", { - value: function() { - return onceStrict(this); - }, - configurable: true - }); - }); - function once(fn) { - var f = function() { - if (f.called) return f.value; - f.called = true; - return f.value = fn.apply(this, arguments); - }; - f.called = false; - return f; - } - function onceStrict(fn) { - var f = function() { - if (f.called) - throw new Error(f.onceError); - f.called = true; - return f.value = fn.apply(this, arguments); - }; - var name = fn.name || "Function wrapped with `once`"; - f.onceError = name + " shouldn't be called more than once"; - f.called = false; - return f; - } - } -}); -var require_inflight = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js"(exports, module2) { - "use strict"; - var wrappy = require_wrappy(); - var reqs = /* @__PURE__ */ Object.create(null); - var once = require_once(); - module2.exports = wrappy(inflight); - function inflight(key, cb) { - if (reqs[key]) { - reqs[key].push(cb); - return null; - } else { - reqs[key] = [cb]; - return makeres(key); - } - } - function makeres(key) { - return once(function RES() { - var cbs = reqs[key]; - var len = cbs.length; - var args = slice(arguments); - try { - for (var i = 0; i < len; i++) { - cbs[i].apply(null, args); - } - } finally { - if (cbs.length > len) { - cbs.splice(0, len); - process.nextTick(function() { - RES.apply(null, args); - }); - } else { - delete reqs[key]; - } - } - }); - } - function slice(args) { - var length = args.length; - var array = []; - for (var i = 0; i < length; i++) array[i] = args[i]; - return array; - } - } -}); -var require_glob = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js"(exports, module2) { - "use strict"; - module2.exports = glob; - var rp = require_fs6(); - var minimatch = require_minimatch2(); - var Minimatch = minimatch.Minimatch; - var inherits = require_inherits(); - var EE = (0, import_chunk_2ESYSVXG.__require)("events").EventEmitter; - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var assert = (0, import_chunk_2ESYSVXG.__require)("assert"); - var isAbsolute = require_path_is_absolute(); - var globSync = require_sync7(); - var common = require_common3(); - var setopts = common.setopts; - var ownProp = common.ownProp; - var inflight = require_inflight(); - var util = (0, import_chunk_2ESYSVXG.__require)("util"); - var childrenIgnored = common.childrenIgnored; - var isIgnored = common.isIgnored; - var once = require_once(); - function glob(pattern, options, cb) { - if (typeof options === "function") cb = options, options = {}; - if (!options) options = {}; - if (options.sync) { - if (cb) - throw new TypeError("callback provided to sync glob"); - return globSync(pattern, options); - } - return new Glob(pattern, options, cb); - } - glob.sync = globSync; - var GlobSync = glob.GlobSync = globSync.GlobSync; - glob.glob = glob; - function extend(origin, add) { - if (add === null || typeof add !== "object") { - return origin; - } - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; - } - glob.hasMagic = function(pattern, options_) { - var options = extend({}, options_); - options.noprocess = true; - var g = new Glob(pattern, options); - var set = g.minimatch.set; - if (!pattern) - return false; - if (set.length > 1) - return true; - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== "string") - return true; - } - return false; - }; - glob.Glob = Glob; - inherits(Glob, EE); - function Glob(pattern, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - if (options && options.sync) { - if (cb) - throw new TypeError("callback provided to sync glob"); - return new GlobSync(pattern, options); - } - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb); - setopts(this, pattern, options); - this._didRealPath = false; - var n = this.minimatch.set.length; - this.matches = new Array(n); - if (typeof cb === "function") { - cb = once(cb); - this.on("error", cb); - this.on("end", function(matches) { - cb(null, matches); - }); - } - var self = this; - this._processing = 0; - this._emitQueue = []; - this._processQueue = []; - this.paused = false; - if (this.noprocess) - return this; - if (n === 0) - return done(); - var sync = true; - for (var i = 0; i < n; i++) { - this._process(this.minimatch.set[i], i, false, done); - } - sync = false; - function done() { - --self._processing; - if (self._processing <= 0) { - if (sync) { - process.nextTick(function() { - self._finish(); - }); - } else { - self._finish(); - } - } - } - } - Glob.prototype._finish = function() { - assert(this instanceof Glob); - if (this.aborted) - return; - if (this.realpath && !this._didRealpath) - return this._realpath(); - common.finish(this); - this.emit("end", this.found); - }; - Glob.prototype._realpath = function() { - if (this._didRealpath) - return; - this._didRealpath = true; - var n = this.matches.length; - if (n === 0) - return this._finish(); - var self = this; - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next); - function next() { - if (--n === 0) - self._finish(); - } - }; - Glob.prototype._realpathSet = function(index, cb) { - var matchset = this.matches[index]; - if (!matchset) - return cb(); - var found = Object.keys(matchset); - var self = this; - var n = found.length; - if (n === 0) - return cb(); - var set = this.matches[index] = /* @__PURE__ */ Object.create(null); - found.forEach(function(p, i) { - p = self._makeAbs(p); - rp.realpath(p, self.realpathCache, function(er, real) { - if (!er) - set[real] = true; - else if (er.syscall === "stat") - set[p] = true; - else - self.emit("error", er); - if (--n === 0) { - self.matches[index] = set; - cb(); - } - }); - }); - }; - Glob.prototype._mark = function(p) { - return common.mark(this, p); - }; - Glob.prototype._makeAbs = function(f) { - return common.makeAbs(this, f); - }; - Glob.prototype.abort = function() { - this.aborted = true; - this.emit("abort"); - }; - Glob.prototype.pause = function() { - if (!this.paused) { - this.paused = true; - this.emit("pause"); - } - }; - Glob.prototype.resume = function() { - if (this.paused) { - this.emit("resume"); - this.paused = false; - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0); - this._emitQueue.length = 0; - for (var i = 0; i < eq.length; i++) { - var e = eq[i]; - this._emitMatch(e[0], e[1]); - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0); - this._processQueue.length = 0; - for (var i = 0; i < pq.length; i++) { - var p = pq[i]; - this._processing--; - this._process(p[0], p[1], p[2], p[3]); - } - } - } - }; - Glob.prototype._process = function(pattern, index, inGlobStar, cb) { - assert(this instanceof Glob); - assert(typeof cb === "function"); - if (this.aborted) - return; - this._processing++; - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]); - return; - } - var n = 0; - while (typeof pattern[n] === "string") { - n++; - } - var prefix; - switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index, cb); - return; - case 0: - prefix = null; - break; - default: - prefix = pattern.slice(0, n).join("/"); - break; - } - var remain = pattern.slice(n); - var read; - if (prefix === null) - read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p) { - return typeof p === "string" ? p : "[*]"; - }).join("/"))) { - if (!prefix || !isAbsolute(prefix)) - prefix = "/" + prefix; - read = prefix; - } else - read = prefix; - var abs = this._makeAbs(read); - if (childrenIgnored(this, read)) - return cb(); - var isGlobStar = remain[0] === minimatch.GLOBSTAR; - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb); - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb); - }; - Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this; - this._readdir(abs, inGlobStar, function(er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb); - }); - }; - Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) { - if (!entries) - return cb(); - var pn = remain[0]; - var negate = !!this.minimatch.negate; - var rawGlob = pn._glob; - var dotOk = this.dot || rawGlob.charAt(0) === "."; - var matchedEntries = []; - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (e.charAt(0) !== "." || dotOk) { - var m; - if (negate && !prefix) { - m = !e.match(pn); - } else { - m = e.match(pn); - } - if (m) - matchedEntries.push(e); - } - } - var len = matchedEntries.length; - if (len === 0) - return cb(); - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - if (prefix) { - if (prefix !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - if (e.charAt(0) === "/" && !this.nomount) { - e = path2.join(this.root, e); - } - this._emitMatch(index, e); - } - return cb(); - } - remain.shift(); - for (var i = 0; i < len; i++) { - var e = matchedEntries[i]; - var newPattern; - if (prefix) { - if (prefix !== "/") - e = prefix + "/" + e; - else - e = prefix + e; - } - this._process([e].concat(remain), index, inGlobStar, cb); - } - cb(); - }; - Glob.prototype._emitMatch = function(index, e) { - if (this.aborted) - return; - if (isIgnored(this, e)) - return; - if (this.paused) { - this._emitQueue.push([index, e]); - return; - } - var abs = isAbsolute(e) ? e : this._makeAbs(e); - if (this.mark) - e = this._mark(e); - if (this.absolute) - e = abs; - if (this.matches[index][e]) - return; - if (this.nodir) { - var c = this.cache[abs]; - if (c === "DIR" || Array.isArray(c)) - return; - } - this.matches[index][e] = true; - var st = this.statCache[abs]; - if (st) - this.emit("stat", e, st); - this.emit("match", e); - }; - Glob.prototype._readdirInGlobStar = function(abs, cb) { - if (this.aborted) - return; - if (this.follow) - return this._readdir(abs, false, cb); - var lstatkey = "lstat\0" + abs; - var self = this; - var lstatcb = inflight(lstatkey, lstatcb_); - if (lstatcb) - self.fs.lstat(abs, lstatcb); - function lstatcb_(er, lstat) { - if (er && er.code === "ENOENT") - return cb(); - var isSym = lstat && lstat.isSymbolicLink(); - self.symlinks[abs] = isSym; - if (!isSym && lstat && !lstat.isDirectory()) { - self.cache[abs] = "FILE"; - cb(); - } else - self._readdir(abs, false, cb); - } - }; - Glob.prototype._readdir = function(abs, inGlobStar, cb) { - if (this.aborted) - return; - cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb); - if (!cb) - return; - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb); - if (ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (!c || c === "FILE") - return cb(); - if (Array.isArray(c)) - return cb(null, c); - } - var self = this; - self.fs.readdir(abs, readdirCb(this, abs, cb)); - }; - function readdirCb(self, abs, cb) { - return function(er, entries) { - if (er) - self._readdirError(abs, er, cb); - else - self._readdirEntries(abs, entries, cb); - }; - } - Glob.prototype._readdirEntries = function(abs, entries, cb) { - if (this.aborted) - return; - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i++) { - var e = entries[i]; - if (abs === "/") - e = abs + e; - else - e = abs + "/" + e; - this.cache[e] = true; - } - } - this.cache[abs] = entries; - return cb(null, entries); - }; - Glob.prototype._readdirError = function(f, er, cb) { - if (this.aborted) - return; - switch (er.code) { - case "ENOTSUP": - case "ENOTDIR": - var abs = this._makeAbs(f); - this.cache[abs] = "FILE"; - if (abs === this.cwdAbs) { - var error = new Error(er.code + " invalid cwd " + this.cwd); - error.path = this.cwd; - error.code = er.code; - this.emit("error", error); - this.abort(); - } - break; - case "ENOENT": - case "ELOOP": - case "ENAMETOOLONG": - case "UNKNOWN": - this.cache[this._makeAbs(f)] = false; - break; - default: - this.cache[this._makeAbs(f)] = false; - if (this.strict) { - this.emit("error", er); - this.abort(); - } - if (!this.silent) - console.error("glob error", er); - break; - } - return cb(); - }; - Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this; - this._readdir(abs, inGlobStar, function(er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb); - }); - }; - Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries, cb) { - if (!entries) - return cb(); - var remainWithoutGlobStar = remain.slice(1); - var gspref = prefix ? [prefix] : []; - var noGlobStar = gspref.concat(remainWithoutGlobStar); - this._process(noGlobStar, index, false, cb); - var isSym = this.symlinks[abs]; - var len = entries.length; - if (isSym && inGlobStar) - return cb(); - for (var i = 0; i < len; i++) { - var e = entries[i]; - if (e.charAt(0) === "." && !this.dot) - continue; - var instead = gspref.concat(entries[i], remainWithoutGlobStar); - this._process(instead, index, true, cb); - var below = gspref.concat(entries[i], remain); - this._process(below, index, true, cb); - } - cb(); - }; - Glob.prototype._processSimple = function(prefix, index, cb) { - var self = this; - this._stat(prefix, function(er, exists) { - self._processSimple2(prefix, index, er, exists, cb); - }); - }; - Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) { - if (!this.matches[index]) - this.matches[index] = /* @__PURE__ */ Object.create(null); - if (!exists) - return cb(); - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix); - if (prefix.charAt(0) === "/") { - prefix = path2.join(this.root, prefix); - } else { - prefix = path2.resolve(this.root, prefix); - if (trail) - prefix += "/"; - } - } - if (process.platform === "win32") - prefix = prefix.replace(/\\/g, "/"); - this._emitMatch(index, prefix); - cb(); - }; - Glob.prototype._stat = function(f, cb) { - var abs = this._makeAbs(f); - var needDir = f.slice(-1) === "/"; - if (f.length > this.maxLength) - return cb(); - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs]; - if (Array.isArray(c)) - c = "DIR"; - if (!needDir || c === "DIR") - return cb(null, c); - if (needDir && c === "FILE") - return cb(); - } - var exists; - var stat = this.statCache[abs]; - if (stat !== void 0) { - if (stat === false) - return cb(null, stat); - else { - var type = stat.isDirectory() ? "DIR" : "FILE"; - if (needDir && type === "FILE") - return cb(); - else - return cb(null, type, stat); - } - } - var self = this; - var statcb = inflight("stat\0" + abs, lstatcb_); - if (statcb) - self.fs.lstat(abs, statcb); - function lstatcb_(er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - return self.fs.stat(abs, function(er2, stat2) { - if (er2) - self._stat2(f, abs, null, lstat, cb); - else - self._stat2(f, abs, er2, stat2, cb); - }); - } else { - self._stat2(f, abs, er, lstat, cb); - } - } - }; - Glob.prototype._stat2 = function(f, abs, er, stat, cb) { - if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { - this.statCache[abs] = false; - return cb(); - } - var needDir = f.slice(-1) === "/"; - this.statCache[abs] = stat; - if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) - return cb(null, false, stat); - var c = true; - if (stat) - c = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c; - if (needDir && c === "FILE") - return cb(); - return cb(null, c, stat); - }; - } -}); -var require_rimraf = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) { - "use strict"; - var assert = (0, import_chunk_2ESYSVXG.__require)("assert"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var glob = void 0; - try { - glob = require_glob(); - } catch (_err) { - } - var defaultGlobOpts = { - nosort: true, - silent: true - }; - var timeout = 0; - var isWindows = process.platform === "win32"; - var defaults = (options) => { - const methods = [ - "unlink", - "chmod", - "stat", - "lstat", - "rmdir", - "readdir" - ]; - methods.forEach((m) => { - options[m] = options[m] || fs2[m]; - m = m + "Sync"; - options[m] = options[m] || fs2[m]; - }); - options.maxBusyTries = options.maxBusyTries || 3; - options.emfileWait = options.emfileWait || 1e3; - if (options.glob === false) { - options.disableGlob = true; - } - if (options.disableGlob !== true && glob === void 0) { - throw Error("glob dependency not found, set `options.disableGlob = true` if intentional"); - } - options.disableGlob = options.disableGlob || false; - options.glob = options.glob || defaultGlobOpts; - }; - var rimraf = (p, options, cb) => { - if (typeof options === "function") { - cb = options; - options = {}; - } - assert(p, "rimraf: missing path"); - assert.equal(typeof p, "string", "rimraf: path should be a string"); - assert.equal(typeof cb, "function", "rimraf: callback function required"); - assert(options, "rimraf: invalid options argument provided"); - assert.equal(typeof options, "object", "rimraf: options should be object"); - defaults(options); - let busyTries = 0; - let errState = null; - let n = 0; - const next = (er) => { - errState = errState || er; - if (--n === 0) - cb(errState); - }; - const afterGlob = (er, results) => { - if (er) - return cb(er); - n = results.length; - if (n === 0) - return cb(); - results.forEach((p2) => { - const CB = (er2) => { - if (er2) { - if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) { - busyTries++; - return setTimeout(() => rimraf_(p2, options, CB), busyTries * 100); - } - if (er2.code === "EMFILE" && timeout < options.emfileWait) { - return setTimeout(() => rimraf_(p2, options, CB), timeout++); - } - if (er2.code === "ENOENT") er2 = null; - } - timeout = 0; - next(er2); - }; - rimraf_(p2, options, CB); - }); - }; - if (options.disableGlob || !glob.hasMagic(p)) - return afterGlob(null, [p]); - options.lstat(p, (er, stat) => { - if (!er) - return afterGlob(null, [p]); - glob(p, options.glob, afterGlob); - }); - }; - var rimraf_ = (p, options, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.lstat(p, (er, st) => { - if (er && er.code === "ENOENT") - return cb(null); - if (er && er.code === "EPERM" && isWindows) - fixWinEPERM(p, options, er, cb); - if (st && st.isDirectory()) - return rmdir(p, options, er, cb); - options.unlink(p, (er2) => { - if (er2) { - if (er2.code === "ENOENT") - return cb(null); - if (er2.code === "EPERM") - return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb); - if (er2.code === "EISDIR") - return rmdir(p, options, er2, cb); - } - return cb(er2); - }); - }); - }; - var fixWinEPERM = (p, options, er, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.chmod(p, 438, (er2) => { - if (er2) - cb(er2.code === "ENOENT" ? null : er); - else - options.stat(p, (er3, stats) => { - if (er3) - cb(er3.code === "ENOENT" ? null : er); - else if (stats.isDirectory()) - rmdir(p, options, er, cb); - else - options.unlink(p, cb); - }); - }); - }; - var fixWinEPERMSync = (p, options, er) => { - assert(p); - assert(options); - try { - options.chmodSync(p, 438); - } catch (er2) { - if (er2.code === "ENOENT") - return; - else - throw er; - } - let stats; - try { - stats = options.statSync(p); - } catch (er3) { - if (er3.code === "ENOENT") - return; - else - throw er; - } - if (stats.isDirectory()) - rmdirSync(p, options, er); - else - options.unlinkSync(p); - }; - var rmdir = (p, options, originalEr, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.rmdir(p, (er) => { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) - rmkids(p, options, cb); - else if (er && er.code === "ENOTDIR") - cb(originalEr); - else - cb(er); - }); - }; - var rmkids = (p, options, cb) => { - assert(p); - assert(options); - assert(typeof cb === "function"); - options.readdir(p, (er, files) => { - if (er) - return cb(er); - let n = files.length; - if (n === 0) - return options.rmdir(p, cb); - let errState; - files.forEach((f) => { - rimraf(path2.join(p, f), options, (er2) => { - if (errState) - return; - if (er2) - return cb(errState = er2); - if (--n === 0) - options.rmdir(p, cb); - }); - }); - }); - }; - var rimrafSync = (p, options) => { - options = options || {}; - defaults(options); - assert(p, "rimraf: missing path"); - assert.equal(typeof p, "string", "rimraf: path should be a string"); - assert(options, "rimraf: missing options"); - assert.equal(typeof options, "object", "rimraf: options should be object"); - let results; - if (options.disableGlob || !glob.hasMagic(p)) { - results = [p]; - } else { - try { - options.lstatSync(p); - results = [p]; - } catch (er) { - results = glob.sync(p, options.glob); - } - } - if (!results.length) - return; - for (let i = 0; i < results.length; i++) { - const p2 = results[i]; - let st; - try { - st = options.lstatSync(p2); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "EPERM" && isWindows) - fixWinEPERMSync(p2, options, er); - } - try { - if (st && st.isDirectory()) - rmdirSync(p2, options, null); - else - options.unlinkSync(p2); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "EPERM") - return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er); - if (er.code !== "EISDIR") - throw er; - rmdirSync(p2, options, er); - } - } - }; - var rmdirSync = (p, options, originalEr) => { - assert(p); - assert(options); - try { - options.rmdirSync(p); - } catch (er) { - if (er.code === "ENOENT") - return; - if (er.code === "ENOTDIR") - throw originalEr; - if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") - rmkidsSync(p, options); - } - }; - var rmkidsSync = (p, options) => { - assert(p); - assert(options); - options.readdirSync(p).forEach((f) => rimrafSync(path2.join(p, f), options)); - const retries = isWindows ? 100 : 1; - let i = 0; - do { - let threw = true; - try { - const ret = options.rmdirSync(p, options); - threw = false; - return ret; - } finally { - if (++i < retries && threw) - continue; - } - } while (true); - }; - module2.exports = rimraf; - rimraf.sync = rimrafSync; - } -}); -var require_indent_string = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) { - "use strict"; - module2.exports = (string, count = 1, options) => { - options = { - indent: " ", - includeEmptyLines: false, - ...options - }; - if (typeof string !== "string") { - throw new TypeError( - `Expected \`input\` to be a \`string\`, got \`${typeof string}\`` - ); - } - if (typeof count !== "number") { - throw new TypeError( - `Expected \`count\` to be a \`number\`, got \`${typeof count}\`` - ); - } - if (typeof options.indent !== "string") { - throw new TypeError( - `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\`` - ); - } - if (count === 0) { - return string; - } - const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; - return string.replace(regex, options.indent.repeat(count)); - }; - } -}); -var require_clean_stack = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module2) { - "use strict"; - var os = (0, import_chunk_2ESYSVXG.__require)("os"); - var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/; - var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/; - var homeDir = typeof os.homedir === "undefined" ? "" : os.homedir(); - module2.exports = (stack, options) => { - options = Object.assign({ pretty: false }, options); - return stack.replace(/\\/g, "/").split("\n").filter((line) => { - const pathMatches = line.match(extractPathRegex); - if (pathMatches === null || !pathMatches[1]) { - return true; - } - const match = pathMatches[1]; - if (match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar")) { - return false; - } - return !pathRegex.test(match); - }).filter((line) => line.trim() !== "").map((line) => { - if (options.pretty) { - return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))); - } - return line; - }).join("\n"); - }; - } -}); -var require_aggregate_error = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module2) { - "use strict"; - var indentString = require_indent_string(); - var cleanStack = require_clean_stack(); - var cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""); - var AggregateError = class extends Error { - constructor(errors) { - if (!Array.isArray(errors)) { - throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); - } - errors = [...errors].map((error) => { - if (error instanceof Error) { - return error; - } - if (error !== null && typeof error === "object") { - return Object.assign(new Error(error.message), error); - } - return new Error(error); - }); - let message = errors.map((error) => { - return typeof error.stack === "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error); - }).join("\n"); - message = "\n" + indentString(message, 4); - super(message); - this.name = "AggregateError"; - Object.defineProperty(this, "_errors", { value: errors }); - } - *[Symbol.iterator]() { - for (const error of this._errors) { - yield error; - } - } - }; - module2.exports = AggregateError; - } -}); -var require_p_map = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module2) { - "use strict"; - var AggregateError = require_aggregate_error(); - module2.exports = async (iterable, mapper, { - concurrency = Infinity, - stopOnError = true - } = {}) => { - return new Promise((resolve, reject) => { - if (typeof mapper !== "function") { - throw new TypeError("Mapper function is required"); - } - if (!((Number.isSafeInteger(concurrency) || concurrency === Infinity) && concurrency >= 1)) { - throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`); - } - const result = []; - const errors = []; - const iterator = iterable[Symbol.iterator](); - let isRejected = false; - let isIterableDone = false; - let resolvingCount = 0; - let currentIndex = 0; - const next = () => { - if (isRejected) { - return; - } - const nextItem = iterator.next(); - const index = currentIndex; - currentIndex++; - if (nextItem.done) { - isIterableDone = true; - if (resolvingCount === 0) { - if (!stopOnError && errors.length !== 0) { - reject(new AggregateError(errors)); - } else { - resolve(result); - } - } - return; - } - resolvingCount++; - (async () => { - try { - const element = await nextItem.value; - result[index] = await mapper(element, index); - resolvingCount--; - next(); - } catch (error) { - if (stopOnError) { - isRejected = true; - reject(error); - } else { - errors.push(error); - resolvingCount--; - next(); - } - } - })(); - }; - for (let i = 0; i < concurrency; i++) { - next(); - if (isIterableDone) { - break; - } - } - }); - }; - } -}); -var require_del = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module2) { - "use strict"; - var { promisify } = (0, import_chunk_2ESYSVXG.__require)("util"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var globby = require_globby(); - var isGlob = require_is_glob(); - var slash = require_slash(); - var gracefulFs = require_graceful_fs(); - var isPathCwd = require_is_path_cwd(); - var isPathInside = require_is_path_inside(); - var rimraf = require_rimraf(); - var pMap = require_p_map(); - var rimrafP = promisify(rimraf); - var rimrafOptions = { - glob: false, - unlink: gracefulFs.unlink, - unlinkSync: gracefulFs.unlinkSync, - chmod: gracefulFs.chmod, - chmodSync: gracefulFs.chmodSync, - stat: gracefulFs.stat, - statSync: gracefulFs.statSync, - lstat: gracefulFs.lstat, - lstatSync: gracefulFs.lstatSync, - rmdir: gracefulFs.rmdir, - rmdirSync: gracefulFs.rmdirSync, - readdir: gracefulFs.readdir, - readdirSync: gracefulFs.readdirSync - }; - function safeCheck(file, cwd) { - if (isPathCwd(file)) { - throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option."); - } - if (!isPathInside(file, cwd)) { - throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option."); - } - } - function normalizePatterns(patterns) { - patterns = Array.isArray(patterns) ? patterns : [patterns]; - patterns = patterns.map((pattern) => { - if (process.platform === "win32" && isGlob(pattern) === false) { - return slash(pattern); - } - return pattern; - }); - return patterns; - } - module2.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => { - }, ...options } = {}) => { - options = { - expandDirectories: false, - onlyFiles: false, - followSymbolicLinks: false, - cwd, - ...options - }; - patterns = normalizePatterns(patterns); - const files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a)); - if (files.length === 0) { - onProgress({ - totalCount: 0, - deletedCount: 0, - percent: 1 - }); - } - let deletedCount = 0; - const mapper = async (file) => { - file = path2.resolve(cwd, file); - if (!force) { - safeCheck(file, cwd); - } - if (!dryRun) { - await rimrafP(file, rimrafOptions); - } - deletedCount += 1; - onProgress({ - totalCount: files.length, - deletedCount, - percent: deletedCount / files.length - }); - return file; - }; - const removedFiles = await pMap(files, mapper, options); - removedFiles.sort((a, b) => a.localeCompare(b)); - return removedFiles; - }; - module2.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => { - options = { - expandDirectories: false, - onlyFiles: false, - followSymbolicLinks: false, - cwd, - ...options - }; - patterns = normalizePatterns(patterns); - const files = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)); - const removedFiles = files.map((file) => { - file = path2.resolve(cwd, file); - if (!force) { - safeCheck(file, cwd); - } - if (!dryRun) { - rimraf.sync(file, rimrafOptions); - } - return file; - }); - removedFiles.sort((a, b) => a.localeCompare(b)); - return removedFiles; - }; - } -}); -var require_tempy = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/tempy@1.0.1/node_modules/tempy/index.js"(exports, module2) { - "use strict"; - var fs2 = (0, import_chunk_2ESYSVXG.__require)("fs"); - var path2 = (0, import_chunk_2ESYSVXG.__require)("path"); - var uniqueString = require_unique_string(); - var tempDir = require_temp_dir(); - var isStream = require_is_stream(); - var del = require_del(); - var stream = (0, import_chunk_2ESYSVXG.__require)("stream"); - var { promisify } = (0, import_chunk_2ESYSVXG.__require)("util"); - var pipeline = promisify(stream.pipeline); - var { writeFile } = fs2.promises; - var getPath = (prefix = "") => path2.join(tempDir, prefix + uniqueString()); - var writeStream = async (filePath, data) => pipeline(data, fs2.createWriteStream(filePath)); - var createTask = (tempyFunction, { extraArguments = 0 } = {}) => async (...arguments_) => { - const [callback, options] = arguments_.slice(extraArguments); - const result = await tempyFunction(...arguments_.slice(0, extraArguments), options); - try { - return await callback(result); - } finally { - await del(result, { force: true }); - } - }; - module2.exports.file = (options) => { - options = { - ...options - }; - if (options.name) { - if (options.extension !== void 0 && options.extension !== null) { - throw new Error("The `name` and `extension` options are mutually exclusive"); - } - return path2.join(module2.exports.directory(), options.name); - } - return getPath() + (options.extension === void 0 || options.extension === null ? "" : "." + options.extension.replace(/^\./, "")); - }; - module2.exports.file.task = createTask(module2.exports.file); - module2.exports.directory = ({ prefix = "" } = {}) => { - const directory = getPath(prefix); - fs2.mkdirSync(directory); - return directory; - }; - module2.exports.directory.task = createTask(module2.exports.directory); - module2.exports.write = async (data, options) => { - const filename = module2.exports.file(options); - const write = isStream(data) ? writeStream : writeFile; - await write(filename, data); - return filename; - }; - module2.exports.write.task = createTask(module2.exports.write, { extraArguments: 1 }); - module2.exports.writeSync = (data, options) => { - const filename = module2.exports.file(options); - fs2.writeFileSync(filename, data); - return filename; - }; - Object.defineProperty(module2.exports, "root", { - get() { - return tempDir; - } - }); - } -}); -var import_execa = (0, import_chunk_2ESYSVXG.__toESM)(require_execa()); -var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)(require_main2()); -var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)(require_tempy()); -var jestContext = { - new: function(ctx = {}) { - const c = ctx; - beforeEach(() => { - const originalCwd = process.cwd(); - c.tmpDir = import_tempy.default.directory(); - c.fs = import_fs_jetpack.default.cwd(c.tmpDir); - c.tree = (startFrom = c.tmpDir, indent = "") => { - function* generateDirectoryTree(children2, indent2 = "") { - for (const child of children2) { - if (child.name === "node_modules" || child.name === ".git") { - continue; - } - if (child.type === "dir") { - yield `${indent2}\u2514\u2500\u2500 ${child.name}/`; - yield* generateDirectoryTree(child.children, indent2 + " "); - } else if (child.type === "symlink") { - yield `${indent2} -> ${child.relativePath}`; - } else { - yield `${indent2}\u2514\u2500\u2500 ${child.name}`; - } - } - } - const children = c.fs.inspectTree(startFrom, { relativePath: true, symlinks: "report" })?.children || []; - return ` -${[...generateDirectoryTree(children, indent)].join("\n")} -`; - }; - c.fixture = (name) => { - c.fs.copy(import_path.default.join(originalCwd, "src", "__tests__", "fixtures", name), ".", { - overwrite: true - }); - c.fs.symlink(import_path.default.join(originalCwd, "..", "client"), import_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "client")); - }; - c.mocked = c.mocked ?? { - cwd: process.cwd() - }; - c.cli = (...input) => { - return import_execa.default.node(import_path.default.join(originalCwd, "../cli/build/index.js"), input, { - cwd: c.fs.cwd(), - stdio: "pipe", - all: true - }); - }; - c.printDir = (dir, extensions) => { - const content = c.fs.list(dir) ?? []; - content.sort((a, b) => a.localeCompare(b)); - return content.filter((name) => extensions.includes(import_path.default.extname(name))).map((name) => `${name}: - -${c.fs.read(import_path.default.join(dir, name))}`).join("\n\n"); - }; - process.chdir(c.tmpDir); - }); - afterEach(() => { - process.chdir(c.mocked.cwd); - }); - return factory(ctx); - } -}; -function factory(ctx) { - return { - add(contextContributor) { - const newCtx = contextContributor(ctx); - return factory(newCtx); - }, - assemble() { - return ctx; - } - }; -} -var jestConsoleContext = () => (c) => { - const ctx = c; - beforeEach(() => { - ctx.mocked["console.error"] = jest.spyOn(console, "error").mockImplementation(() => { - }); - ctx.mocked["console.log"] = jest.spyOn(console, "log").mockImplementation(() => { - }); - ctx.mocked["console.info"] = jest.spyOn(console, "info").mockImplementation(() => { - }); - ctx.mocked["console.warn"] = jest.spyOn(console, "warn").mockImplementation(() => { - }); - }); - afterEach(() => { - ctx.mocked["console.error"].mockRestore(); - ctx.mocked["console.log"].mockRestore(); - ctx.mocked["console.info"].mockRestore(); - ctx.mocked["console.warn"].mockRestore(); - }); - return ctx; -}; -var jestProcessContext = () => (c) => { - const ctx = c; - beforeEach(() => { - ctx.mocked["process.stderr.write"] = jest.spyOn(process.stderr, "write").mockImplementation(() => true); - ctx.mocked["process.stdout.write"] = jest.spyOn(process.stdout, "write").mockImplementation(() => true); - }); - afterEach(() => { - ctx.mocked["process.stderr.write"].mockRestore(); - ctx.mocked["process.stdout.write"].mockRestore(); - }); - return ctx; -}; -/*! Bundled license information: - -is-extglob/index.js: - (*! - * is-extglob - * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. - *) - -is-glob/index.js: - (*! - * is-glob - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - *) - -is-number/index.js: - (*! - * is-number - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - *) - -to-regex-range/index.js: - (*! - * to-regex-range - * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. - *) - -fill-range/index.js: - (*! - * fill-range - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Licensed under the MIT License. - *) - -queue-microtask/index.js: - (*! queue-microtask. MIT License. Feross Aboukhadijeh *) - -run-parallel/index.js: - (*! run-parallel. MIT License. Feross Aboukhadijeh *) -*/ diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js deleted file mode 100644 index 98bffc6..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_O5EOXX3N_exports = {}; -__export(chunk_O5EOXX3N_exports, { - assertNodeAPISupported: () => assertNodeAPISupported -}); -module.exports = __toCommonJS(chunk_O5EOXX3N_exports); -var import_fs = __toESM(require("fs")); -function assertNodeAPISupported() { - const customLibraryPath = process.env.PRISMA_QUERY_ENGINE_LIBRARY; - const customLibraryExists = customLibraryPath && import_fs.default.existsSync(customLibraryPath); - if (!customLibraryExists && process.arch === "ia32") { - throw new Error( - `The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set \`engineType = "binary"\` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)` - ); - } -} diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js deleted file mode 100644 index 46e4fb7..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +++ /dev/null @@ -1,580 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_YDM7ULQH_exports = {}; -__export(chunk_YDM7ULQH_exports, { - computeLibSSLSpecificPaths: () => computeLibSSLSpecificPaths, - getArchFromUname: () => getArchFromUname, - getBinaryTargetForCurrentPlatform: () => getBinaryTargetForCurrentPlatform, - getBinaryTargetForCurrentPlatformInternal: () => getBinaryTargetForCurrentPlatformInternal, - getPlatformInfo: () => getPlatformInfo, - getPlatformInfoMemoized: () => getPlatformInfoMemoized, - getSSLVersion: () => getSSLVersion, - getos: () => getos, - parseDistro: () => parseDistro, - parseLibSSLVersion: () => parseLibSSLVersion, - parseOpenSSLVersion: () => parseOpenSSLVersion, - resolveDistro: () => resolveDistro -}); -module.exports = __toCommonJS(chunk_YDM7ULQH_exports); -var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js"); -var import_debug = __toESM(require("@prisma/debug")); -var import_child_process = __toESM(require("child_process")); -var import_promises = __toESM(require("fs/promises")); -var import_os = __toESM(require("os")); -var import_util = require("util"); -var t = Symbol.for("@ts-pattern/matcher"); -var e = Symbol.for("@ts-pattern/isVariadic"); -var n = "@ts-pattern/anonymous-select-key"; -var r = (t2) => Boolean(t2 && "object" == typeof t2); -var i = (e2) => e2 && !!e2[t]; -var o = (n2, s2, c2) => { - if (i(n2)) { - const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(s2); - return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2; - } - if (r(n2)) { - if (!r(s2)) return false; - if (Array.isArray(n2)) { - if (!Array.isArray(s2)) return false; - let t2 = [], r2 = [], a = []; - for (const o2 of n2.keys()) { - const s3 = n2[o2]; - i(s3) && s3[e] ? a.push(s3) : a.length ? r2.push(s3) : t2.push(s3); - } - if (a.length) { - if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed."); - if (s2.length < t2.length + r2.length) return false; - const e2 = s2.slice(0, t2.length), n3 = 0 === r2.length ? [] : s2.slice(-r2.length), i2 = s2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length); - return t2.every((t3, n4) => o(t3, e2[n4], c2)) && r2.every((t3, e3) => o(t3, n3[e3], c2)) && (0 === a.length || o(a[0], i2, c2)); - } - return n2.length === s2.length && n2.every((t3, e2) => o(t3, s2[e2], c2)); - } - return Object.keys(n2).every((e2) => { - const r2 = n2[e2]; - return (e2 in s2 || i(a = r2) && "optional" === a[t]().matcherType) && o(r2, s2[e2], c2); - var a; - }); - } - return Object.is(s2, n2); -}; -var s = (e2) => { - var n2, o2, a; - return r(e2) ? i(e2) ? null != (n2 = null == (o2 = (a = e2[t]()).getSelectionKeys) ? void 0 : o2.call(a)) ? n2 : [] : Array.isArray(e2) ? c(e2, s) : c(Object.values(e2), s) : []; -}; -var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []); -function u(t2) { - return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) }); -} -function l(e2) { - return u({ [t]: () => ({ match: (t2) => { - let n2 = {}; - const r2 = (t3, e3) => { - n2[t3] = e3; - }; - return void 0 === t2 ? (s(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: o(e2, t2, r2), selections: n2 }; - }, getSelectionKeys: () => s(e2), matcherType: "optional" }) }); -} -function m(...e2) { - return u({ [t]: () => ({ match: (t2) => { - let n2 = {}; - const r2 = (t3, e3) => { - n2[t3] = e3; - }; - return { matched: e2.every((e3) => o(e3, t2, r2)), selections: n2 }; - }, getSelectionKeys: () => c(e2, s), matcherType: "and" }) }); -} -function d(...e2) { - return u({ [t]: () => ({ match: (t2) => { - let n2 = {}; - const r2 = (t3, e3) => { - n2[t3] = e3; - }; - return c(e2, s).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => o(e3, t2, r2)), selections: n2 }; - }, getSelectionKeys: () => c(e2, s), matcherType: "or" }) }); -} -function y(e2) { - return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) }; -} -function p(...e2) { - const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0]; - return u({ [t]: () => ({ match: (t2) => { - let e3 = { [null != r2 ? r2 : n]: t2 }; - return { matched: void 0 === i2 || o(i2, t2, (t3, n2) => { - e3[t3] = n2; - }), selections: e3 }; - }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : s(i2)) }) }); -} -function v(t2) { - return "number" == typeof t2; -} -function b(t2) { - return "string" == typeof t2; -} -function w(t2) { - return "bigint" == typeof t2; -} -var S = u(y(function(t2) { - return true; -})); -var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => { - return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2))))); - var n2; -}, endsWith: (e2) => { - return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2))))); - var n2; -}, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => { - return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2))))); - var n2; -}, regex: (e2) => { - return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2)))))); - var n2; -} }); -var E = j(y(b)); -var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) }); -var x = K(y(v)); -var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) }); -var P = A(y(w)); -var T = u(y(function(t2) { - return "boolean" == typeof t2; -})); -var k = u(y(function(t2) { - return "symbol" == typeof t2; -})); -var B = u(y(function(t2) { - return null == t2; -})); -var _ = u(y(function(t2) { - return null != t2; -})); -var W = { matched: false, value: void 0 }; -function $(t2) { - return new z(t2, W); -} -var z = class _z { - constructor(t2, e2) { - this.input = void 0, this.state = void 0, this.input = t2, this.state = e2; - } - with(...t2) { - if (this.state.matched) return this; - const e2 = t2[t2.length - 1], r2 = [t2[0]]; - let i2; - 3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1)); - let s2 = false, c2 = {}; - const a = (t3, e3) => { - s2 = true, c2[t3] = e3; - }, u2 = !r2.some((t3) => o(t3, this.input, a)) || i2 && !Boolean(i2(this.input)) ? W : { matched: true, value: e2(s2 ? n in c2 ? c2[n] : c2 : this.input, this.input) }; - return new _z(this.input, u2); - } - when(t2, e2) { - if (this.state.matched) return this; - const n2 = Boolean(t2(this.input)); - return new _z(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : W); - } - otherwise(t2) { - return this.state.matched ? this.state.value : t2(this.input); - } - exhaustive() { - if (this.state.matched) return this.state.value; - let t2; - try { - t2 = JSON.stringify(this.input); - } catch (e2) { - t2 = this.input; - } - throw new Error(`Pattern matching error: no pattern matches value ${t2}`); - } - run() { - return this.exhaustive(); - } - returnType() { - return this; - } -}; -var exec = (0, import_util.promisify)(import_child_process.default.exec); -var debug = (0, import_debug.default)("prisma:get-platform"); -var supportedLibSSLVersions = ["1.0.x", "1.1.x", "3.0.x"]; -async function getos() { - const platform = import_os.default.platform(); - const arch = process.arch; - if (platform === "freebsd") { - const version = await getCommandOutput(`freebsd-version`); - if (version && version.trim().length > 0) { - const regex = /^(\d+)\.?/; - const match = regex.exec(version); - if (match) { - return { - platform: "freebsd", - targetDistro: `freebsd${match[1]}`, - arch - }; - } - } - } - if (platform !== "linux") { - return { - platform, - arch - }; - } - const distroInfo = await resolveDistro(); - const archFromUname = await getArchFromUname(); - const libsslSpecificPaths = computeLibSSLSpecificPaths({ arch, archFromUname, familyDistro: distroInfo.familyDistro }); - const { libssl } = await getSSLVersion(libsslSpecificPaths); - return { - platform: "linux", - libssl, - arch, - archFromUname, - ...distroInfo - }; -} -function parseDistro(osReleaseInput) { - const idRegex = /^ID="?([^"\n]*)"?$/im; - const idLikeRegex = /^ID_LIKE="?([^"\n]*)"?$/im; - const idMatch = idRegex.exec(osReleaseInput); - const id = idMatch && idMatch[1] && idMatch[1].toLowerCase() || ""; - const idLikeMatch = idLikeRegex.exec(osReleaseInput); - const idLike = idLikeMatch && idLikeMatch[1] && idLikeMatch[1].toLowerCase() || ""; - const distroInfo = $({ id, idLike }).with( - { id: "alpine" }, - ({ id: originalDistro }) => ({ - targetDistro: "musl", - familyDistro: originalDistro, - originalDistro - }) - ).with( - { id: "raspbian" }, - ({ id: originalDistro }) => ({ - targetDistro: "arm", - familyDistro: "debian", - originalDistro - }) - ).with( - { id: "nixos" }, - ({ id: originalDistro }) => ({ - targetDistro: "nixos", - originalDistro, - familyDistro: "nixos" - }) - ).with( - { id: "debian" }, - { id: "ubuntu" }, - ({ id: originalDistro }) => ({ - targetDistro: "debian", - familyDistro: "debian", - originalDistro - }) - ).with( - { id: "rhel" }, - { id: "centos" }, - { id: "fedora" }, - ({ id: originalDistro }) => ({ - targetDistro: "rhel", - familyDistro: "rhel", - originalDistro - }) - ).when( - ({ idLike: idLike2 }) => idLike2.includes("debian") || idLike2.includes("ubuntu"), - ({ id: originalDistro }) => ({ - targetDistro: "debian", - familyDistro: "debian", - originalDistro - }) - ).when( - ({ idLike: idLike2 }) => id === "arch" || idLike2.includes("arch"), - ({ id: originalDistro }) => ({ - targetDistro: "debian", - familyDistro: "arch", - originalDistro - }) - ).when( - ({ idLike: idLike2 }) => idLike2.includes("centos") || idLike2.includes("fedora") || idLike2.includes("rhel") || idLike2.includes("suse"), - ({ id: originalDistro }) => ({ - targetDistro: "rhel", - familyDistro: "rhel", - originalDistro - }) - ).otherwise(({ id: originalDistro }) => { - return { - targetDistro: void 0, - familyDistro: void 0, - originalDistro - }; - }); - debug(`Found distro info: -${JSON.stringify(distroInfo, null, 2)}`); - return distroInfo; -} -async function resolveDistro() { - const osReleaseFile = "/etc/os-release"; - try { - const osReleaseInput = await import_promises.default.readFile(osReleaseFile, { encoding: "utf-8" }); - return parseDistro(osReleaseInput); - } catch (_2) { - return { - targetDistro: void 0, - familyDistro: void 0, - originalDistro: void 0 - }; - } -} -function parseOpenSSLVersion(input) { - const match = /^OpenSSL\s(\d+\.\d+)\.\d+/.exec(input); - if (match) { - const partialVersion = `${match[1]}.x`; - return sanitiseSSLVersion(partialVersion); - } - return void 0; -} -function parseLibSSLVersion(input) { - const match = /libssl\.so\.(\d)(\.\d)?/.exec(input); - if (match) { - const partialVersion = `${match[1]}${match[2] ?? ".0"}.x`; - return sanitiseSSLVersion(partialVersion); - } - return void 0; -} -function sanitiseSSLVersion(version) { - const sanitisedVersion = (() => { - if (isLibssl1x(version)) { - return version; - } - const versionSplit = version.split("."); - versionSplit[1] = "0"; - return versionSplit.join("."); - })(); - if (supportedLibSSLVersions.includes(sanitisedVersion)) { - return sanitisedVersion; - } - return void 0; -} -function computeLibSSLSpecificPaths(args) { - return $(args).with({ familyDistro: "musl" }, () => { - debug('Trying platform-specific paths for "alpine"'); - return ["/lib"]; - }).with({ familyDistro: "debian" }, ({ archFromUname }) => { - debug('Trying platform-specific paths for "debian" (and "ubuntu")'); - return [`/usr/lib/${archFromUname}-linux-gnu`, `/lib/${archFromUname}-linux-gnu`]; - }).with({ familyDistro: "rhel" }, () => { - debug('Trying platform-specific paths for "rhel"'); - return ["/lib64", "/usr/lib64"]; - }).otherwise(({ familyDistro, arch, archFromUname }) => { - debug(`Don't know any platform-specific paths for "${familyDistro}" on ${arch} (${archFromUname})`); - return []; - }); -} -async function getSSLVersion(libsslSpecificPaths) { - const excludeLibssl0x = 'grep -v "libssl.so.0"'; - const libsslFilenameFromSpecificPath = await findLibSSLInLocations(libsslSpecificPaths); - if (libsslFilenameFromSpecificPath) { - debug(`Found libssl.so file using platform-specific paths: ${libsslFilenameFromSpecificPath}`); - const libsslVersion = parseLibSSLVersion(libsslFilenameFromSpecificPath); - debug(`The parsed libssl version is: ${libsslVersion}`); - if (libsslVersion) { - return { libssl: libsslVersion, strategy: "libssl-specific-path" }; - } - } - debug('Falling back to "ldconfig" and other generic paths'); - let libsslFilename = await getCommandOutput( - /** - * The `ldconfig -p` returns the dynamic linker cache paths, where libssl.so files are likely to be included. - * Each line looks like this: - * libssl.so (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 - * But we're only interested in the filename, so we use sed to remove everything before the `=>` separator, - * and then we remove the path and keep only the filename. - * The second sed commands uses `|` as a separator because the paths may contain `/`, which would result in the - * `unknown option to 's'` error (see https://stackoverflow.com/a/9366940/6174476) - which would silently - * fail with error code 0. - */ - `ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${excludeLibssl0x}` - ); - if (!libsslFilename) { - libsslFilename = await findLibSSLInLocations(["/lib64", "/usr/lib64", "/lib"]); - } - if (libsslFilename) { - debug(`Found libssl.so file using "ldconfig" or other generic paths: ${libsslFilename}`); - const libsslVersion = parseLibSSLVersion(libsslFilename); - debug(`The parsed libssl version is: ${libsslVersion}`); - if (libsslVersion) { - return { libssl: libsslVersion, strategy: "ldconfig" }; - } - } - const openSSLVersionLine = await getCommandOutput("openssl version -v"); - if (openSSLVersionLine) { - debug(`Found openssl binary with version: ${openSSLVersionLine}`); - const openSSLVersion = parseOpenSSLVersion(openSSLVersionLine); - debug(`The parsed openssl version is: ${openSSLVersion}`); - if (openSSLVersion) { - return { libssl: openSSLVersion, strategy: "openssl-binary" }; - } - } - debug(`Couldn't find any version of libssl or OpenSSL in the system`); - return {}; -} -async function findLibSSLInLocations(directories) { - for (const dir of directories) { - const libssl = await findLibSSL(dir); - if (libssl) { - return libssl; - } - } - return void 0; -} -async function findLibSSL(directory) { - try { - const dirContents = await import_promises.default.readdir(directory); - return dirContents.find((value) => value.startsWith("libssl.so.") && !value.startsWith("libssl.so.0")); - } catch (e2) { - if (e2.code === "ENOENT") { - return void 0; - } - throw e2; - } -} -async function getBinaryTargetForCurrentPlatform() { - const { binaryTarget } = await getPlatformInfoMemoized(); - return binaryTarget; -} -function isPlatformInfoDefined(args) { - return args.binaryTarget !== void 0; -} -async function getPlatformInfo() { - const { memoized: _2, ...rest } = await getPlatformInfoMemoized(); - return rest; -} -var memoizedPlatformWithInfo = {}; -async function getPlatformInfoMemoized() { - if (isPlatformInfoDefined(memoizedPlatformWithInfo)) { - return Promise.resolve({ ...memoizedPlatformWithInfo, memoized: true }); - } - const args = await getos(); - const binaryTarget = getBinaryTargetForCurrentPlatformInternal(args); - memoizedPlatformWithInfo = { ...args, binaryTarget }; - return { ...memoizedPlatformWithInfo, memoized: false }; -} -function getBinaryTargetForCurrentPlatformInternal(args) { - const { platform, arch, archFromUname, libssl, targetDistro, familyDistro, originalDistro } = args; - if (platform === "linux" && !["x64", "arm64"].includes(arch)) { - (0, import_chunk_FWMN4WME.warn)( - `Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${arch}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${archFromUname}".` - ); - } - const defaultLibssl = "1.1.x"; - if (platform === "linux" && libssl === void 0) { - const additionalMessage = $({ familyDistro }).with({ familyDistro: "debian" }, () => { - return "Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed."; - }).otherwise(() => { - return "Please manually install OpenSSL and try installing Prisma again."; - }); - (0, import_chunk_FWMN4WME.warn)( - `Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${defaultLibssl}". -${additionalMessage}` - ); - } - const defaultDistro = "debian"; - if (platform === "linux" && targetDistro === void 0) { - debug(`Distro is "${originalDistro}". Falling back to Prisma engines built for "${defaultDistro}".`); - } - if (platform === "darwin" && arch === "arm64") { - return "darwin-arm64"; - } - if (platform === "darwin") { - return "darwin"; - } - if (platform === "win32") { - return "windows"; - } - if (platform === "freebsd") { - return targetDistro; - } - if (platform === "openbsd") { - return "openbsd"; - } - if (platform === "netbsd") { - return "netbsd"; - } - if (platform === "linux" && targetDistro === "nixos") { - return "linux-nixos"; - } - if (platform === "linux" && arch === "arm64") { - const baseName = targetDistro === "musl" ? "linux-musl-arm64" : "linux-arm64"; - return `${baseName}-openssl-${libssl || defaultLibssl}`; - } - if (platform === "linux" && arch === "arm") { - return `linux-arm-openssl-${libssl || defaultLibssl}`; - } - if (platform === "linux" && targetDistro === "musl") { - const base = "linux-musl"; - if (!libssl) { - return base; - } - if (isLibssl1x(libssl)) { - return base; - } else { - return `${base}-openssl-${libssl}`; - } - } - if (platform === "linux" && targetDistro && libssl) { - return `${targetDistro}-openssl-${libssl}`; - } - if (platform !== "linux") { - (0, import_chunk_FWMN4WME.warn)(`Prisma detected unknown OS "${platform}" and may not work as expected. Defaulting to "linux".`); - } - if (libssl) { - return `${defaultDistro}-openssl-${libssl}`; - } - if (targetDistro) { - return `${targetDistro}-openssl-${defaultLibssl}`; - } - return `${defaultDistro}-openssl-${defaultLibssl}`; -} -async function discardError(runPromise) { - try { - return await runPromise(); - } catch (e2) { - return void 0; - } -} -function getCommandOutput(command) { - return discardError(async () => { - const result = await exec(command); - debug(`Command "${command}" successfully returned "${result.stdout}"`); - return result.stdout; - }); -} -async function getArchFromUname() { - if (typeof import_os.default["machine"] === "function") { - return import_os.default["machine"](); - } - const arch = await getCommandOutput("uname -m"); - return arch?.trim(); -} -function isLibssl1x(libssl) { - return libssl.startsWith("1."); -} diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js b/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js deleted file mode 100644 index 3f0cb76..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var chunk_YVXCXD3A_exports = {}; -__export(chunk_YVXCXD3A_exports, { - underline: () => underline, - yellow: () => yellow -}); -module.exports = __toCommonJS(chunk_YVXCXD3A_exports); -var FORCE_COLOR; -var NODE_DISABLE_COLORS; -var NO_COLOR; -var TERM; -var isTTY = true; -if (typeof process !== "undefined") { - ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); - isTTY = process.stdout && process.stdout.isTTY; -} -var $ = { - enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY) -}; -function init(x, y) { - let rgx = new RegExp(`\\x1b\\[${y}m`, "g"); - let open = `\x1B[${x}m`, close = `\x1B[${y}m`; - return function(txt) { - if (!$.enabled || txt == null) return txt; - return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close; - }; -} -var reset = init(0, 0); -var bold = init(1, 22); -var dim = init(2, 22); -var italic = init(3, 23); -var underline = init(4, 24); -var inverse = init(7, 27); -var hidden = init(8, 28); -var strikethrough = init(9, 29); -var black = init(30, 39); -var red = init(31, 39); -var green = init(32, 39); -var yellow = init(33, 39); -var blue = init(34, 39); -var magenta = init(35, 39); -var cyan = init(36, 39); -var white = init(37, 39); -var gray = init(90, 39); -var grey = init(90, 39); -var bgBlack = init(40, 49); -var bgRed = init(41, 49); -var bgGreen = init(42, 49); -var bgYellow = init(43, 49); -var bgBlue = init(44, 49); -var bgMagenta = init(45, 49); -var bgCyan = init(46, 49); -var bgWhite = init(47, 49); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts deleted file mode 100644 index 67ebd27..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BinaryTarget } from './binaryTargets'; -/** - * Gets Node-API Library name depending on the binary target - * @param binaryTarget - * @param type `fs` gets name used on the file system, `url` gets the name required to download the library from S3 - * @returns - */ -export declare function getNodeAPIName(binaryTarget: BinaryTarget, type: 'url' | 'fs'): string; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.js b/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.js deleted file mode 100644 index ca77c4e..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var getNodeAPIName_exports = {}; -__export(getNodeAPIName_exports, { - getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName -}); -module.exports = __toCommonJS(getNodeAPIName_exports); -var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.d.ts deleted file mode 100644 index 3aa71de..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -/// -import { BinaryTarget } from './binaryTargets'; -declare const supportedLibSSLVersions: readonly ["1.0.x", "1.1.x", "3.0.x"]; -export type Arch = 'x32' | 'x64' | 'arm' | 'arm64' | 's390' | 's390x' | 'mipsel' | 'ia32' | 'mips' | 'ppc' | 'ppc64'; -export type DistroInfo = { - /** - * The original distro is the Linux distro name detected via its release file. - * E.g., on Arch Linux, the original distro is `arch`. On Linux Alpine, the original distro is `alpine`. - */ - originalDistro?: string; - /** - * The family distro is the Linux distro name that is used to determine Linux families based on the same base distro, and likely using the same package manager. - * E.g., both Ubuntu and Debian belong to the `debian` family of distros, and thus rely on the same package manager (`apt`). - */ - familyDistro?: string; - /** - * The target distro is the Linux distro associated with the Prisma Engines. - * E.g., on Arch Linux, Debian, and Ubuntu, the target distro is `debian`. On Linux Alpine, the target distro is `musl`. - */ - targetDistro?: 'rhel' | 'debian' | 'musl' | 'arm' | 'nixos' | 'freebsd11' | 'freebsd12' | 'freebsd13' | 'freebsd14' | 'freebsd15'; -}; -type GetOsResultLinux = { - platform: 'linux'; - arch: Arch; - archFromUname: string | undefined; - /** - * Starting from version 3.0, OpenSSL is basically adopting semver, and will be API and ABI compatible within a major version. - */ - libssl?: (typeof supportedLibSSLVersions)[number]; -} & DistroInfo; -export type GetOSResult = { - platform: Omit; - arch: Arch; - targetDistro?: DistroInfo['targetDistro']; - familyDistro?: never; - originalDistro?: never; - archFromUname?: never; - libssl?: never; -} | GetOsResultLinux; -/** - * For internal use only. This public export will be eventually removed in favor of `getPlatformWithOSResult`. - */ -export declare function getos(): Promise; -export declare function parseDistro(osReleaseInput: string): DistroInfo; -export declare function resolveDistro(): Promise; -/** - * Parse the OpenSSL version from the output of the openssl binary, e.g. - * "OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)" -> "3.0.x" - */ -export declare function parseOpenSSLVersion(input: string): GetOsResultLinux['libssl'] | undefined; -/** - * Parse the OpenSSL version from the output of the libssl.so file, e.g. - * "libssl.so.3" -> "3.0.x" - */ -export declare function parseLibSSLVersion(input: string): GetOsResultLinux['libssl']; -type ComputeLibSSLSpecificPathsParams = { - arch: Arch; - archFromUname: Awaited>; - familyDistro: DistroInfo['familyDistro']; -}; -export declare function computeLibSSLSpecificPaths(args: ComputeLibSSLSpecificPathsParams): string[]; -type GetOpenSSLVersionResult = { - libssl: GetOsResultLinux['libssl']; - strategy: 'libssl-specific-path' | 'ldconfig' | 'openssl-binary'; -} | { - libssl?: never; - strategy?: never; -}; -/** - * On Linux, returns the libssl version excluding the patch version, e.g. "1.1.x". - * Reading the version from the libssl.so file is more reliable than reading it from the openssl binary. - * Older versions of libssl are preferred, e.g. "1.0.x" over "1.1.x", because of Vercel serverless - * having different build and runtime environments, with the runtime environment having an old version - * of libssl, and the build environment having both that old version and a newer version of libssl installed. - * Because of https://github.com/prisma/prisma/issues/17499, we explicitly filter out libssl 0.x. - * - * This function never throws. - */ -export declare function getSSLVersion(libsslSpecificPaths: string[]): Promise; -/** - * Get the binary target for the current platform, e.g. `linux-musl-arm64-openssl-3.0.x` for Linux Alpine on arm64. - */ -export declare function getBinaryTargetForCurrentPlatform(): Promise; -export type PlatformInfo = GetOSResult & { - binaryTarget: BinaryTarget; -}; -/** - * Get the binary target and other system information (e.g., the libssl version to look for) for the current platform. - */ -export declare function getPlatformInfo(): Promise; -export declare function getPlatformInfoMemoized(): Promise; -/** - * This function is only exported for testing purposes. - */ -export declare function getBinaryTargetForCurrentPlatformInternal(args: GetOSResult): BinaryTarget; -/** - * Returns the architecture of a system from the output of `uname -m` (whose format is different than `process.arch`). - * This function never throws. - * TODO: deprecate this function in favor of `os.machine()` once either Node v16.18.0 or v18.9.0 becomes the minimum - * supported Node.js version for Prisma. - */ -export declare function getArchFromUname(): Promise; -export {}; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.js b/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.js deleted file mode 100644 index 3647083..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/getPlatform.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var getPlatform_exports = {}; -__export(getPlatform_exports, { - computeLibSSLSpecificPaths: () => import_chunk_YDM7ULQH.computeLibSSLSpecificPaths, - getArchFromUname: () => import_chunk_YDM7ULQH.getArchFromUname, - getBinaryTargetForCurrentPlatform: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatform, - getBinaryTargetForCurrentPlatformInternal: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatformInternal, - getPlatformInfo: () => import_chunk_YDM7ULQH.getPlatformInfo, - getPlatformInfoMemoized: () => import_chunk_YDM7ULQH.getPlatformInfoMemoized, - getSSLVersion: () => import_chunk_YDM7ULQH.getSSLVersion, - getos: () => import_chunk_YDM7ULQH.getos, - parseDistro: () => import_chunk_YDM7ULQH.parseDistro, - parseLibSSLVersion: () => import_chunk_YDM7ULQH.parseLibSSLVersion, - parseOpenSSLVersion: () => import_chunk_YDM7ULQH.parseOpenSSLVersion, - resolveDistro: () => import_chunk_YDM7ULQH.resolveDistro -}); -module.exports = __toCommonJS(getPlatform_exports); -var import_chunk_YDM7ULQH = require("./chunk-YDM7ULQH.js"); -var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js"); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/index.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/index.d.ts deleted file mode 100644 index 096a92a..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { assertNodeAPISupported } from './assertNodeAPISupported'; -export { type BinaryTarget, binaryTargets } from './binaryTargets'; -export { getNodeAPIName } from './getNodeAPIName'; -export type { PlatformInfo } from './getPlatform'; -export { getBinaryTargetForCurrentPlatform, getos, getPlatformInfo } from './getPlatform'; -export { link } from './link'; -export * from './test-utils'; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/index.js b/mcp-server/node_modules/@prisma/get-platform/dist/index.js deleted file mode 100644 index 3d3d655..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/index.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var dist_exports = {}; -__export(dist_exports, { - assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported, - binaryTargets: () => import_chunk_7MLUNQIZ.binaryTargets, - getBinaryTargetForCurrentPlatform: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatform, - getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName, - getPlatformInfo: () => import_chunk_YDM7ULQH.getPlatformInfo, - getos: () => import_chunk_YDM7ULQH.getos, - jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext, - jestContext: () => import_chunk_M5NKJZ76.jestContext, - jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext, - link: () => import_chunk_D7S5FGQN.link -}); -module.exports = __toCommonJS(dist_exports); -var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js"); -var import_chunk_M5NKJZ76 = require("./chunk-M5NKJZ76.js"); -var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js"); -var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js"); -var import_chunk_YDM7ULQH = require("./chunk-YDM7ULQH.js"); -var import_chunk_D7S5FGQN = require("./chunk-D7S5FGQN.js"); -var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js"); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); -(0, import_chunk_7MLUNQIZ.init_binaryTargets)(); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/link.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/link.d.ts deleted file mode 100644 index 7ef2763..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/link.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function link(url: any): string; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/link.js b/mcp-server/node_modules/@prisma/get-platform/dist/link.js deleted file mode 100644 index 35c376e..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/link.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var link_exports = {}; -__export(link_exports, { - link: () => import_chunk_D7S5FGQN.link -}); -module.exports = __toCommonJS(link_exports); -var import_chunk_D7S5FGQN = require("./chunk-D7S5FGQN.js"); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/logger.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/logger.d.ts deleted file mode 100644 index 1c88c19..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/logger.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare const tags: { - warn: string; -}; -export declare const should: { - warn: () => boolean; -}; -export declare function log(...data: any[]): void; -export declare function warn(message: any, ...optionalParams: any[]): void; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/logger.js b/mcp-server/node_modules/@prisma/get-platform/dist/logger.js deleted file mode 100644 index ef2a8c1..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/logger.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var logger_exports = {}; -__export(logger_exports, { - log: () => import_chunk_FWMN4WME.log, - should: () => import_chunk_FWMN4WME.should, - tags: () => import_chunk_FWMN4WME.tags, - warn: () => import_chunk_FWMN4WME.warn -}); -module.exports = __toCommonJS(logger_exports); -var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js"); -var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js"); -var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts deleted file mode 100644 index c85550d..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This regex matches all supported binary target names in a given string. - * - * Platform names are sorted by their lengths in descending order to ensure that - * the longest substring is always matched (e.g., "darwin-arm64" is matched as a - * whole instead of "darwin" and "arm" separately) - */ -export declare const binaryTargetRegex: RegExp; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js deleted file mode 100644 index 5f7b77b..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var binaryTargetRegex_exports = {}; -__export(binaryTargetRegex_exports, { - binaryTargetRegex: () => import_chunk_B23KD6U3.binaryTargetRegex -}); -module.exports = __toCommonJS(binaryTargetRegex_exports); -var import_chunk_B23KD6U3 = require("../chunk-B23KD6U3.js"); -var import_chunk_7MLUNQIZ = require("../chunk-7MLUNQIZ.js"); -var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js"); -(0, import_chunk_B23KD6U3.init_binaryTargetRegex)(); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts deleted file mode 100644 index e80ced8..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { type BaseContext, jestConsoleContext, jestContext, jestProcessContext } from './jestContext'; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.js b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.js deleted file mode 100644 index 1eecf7f..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var test_utils_exports = {}; -__export(test_utils_exports, { - jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext, - jestContext: () => import_chunk_M5NKJZ76.jestContext, - jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext -}); -module.exports = __toCommonJS(test_utils_exports); -var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js"); -var import_chunk_M5NKJZ76 = require("../chunk-M5NKJZ76.js"); -var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts deleted file mode 100644 index 2e1595b..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -/// -import type { ExecaChildProcess } from 'execa'; -import type { FSJetpack } from 'fs-jetpack/types'; -/** - * Base test context. - */ -export type BaseContext = { - tmpDir: string; - fs: FSJetpack; - mocked: { - cwd: string; - }; - /** - * Set up the temporary directory based on the contents of some fixture. - */ - fixture: (name: string) => void; - /** - * Spawn the Prisma cli using the temporary directory as the CWD. - * - * @remarks - * - * For this to work the source must be built - */ - cli: (...input: string[]) => ExecaChildProcess; - printDir(dir: string, extensions: string[]): void; - /** - * JavaScript-friendly implementation of the `tree` command. It skips the `node_modules` directory. - * @param itemPath The path to start the tree from, defaults to the root of the temporary directory - * @param indent How much to indent each level of the tree, defaults to '' - * @returns String representation of the directory tree - */ - tree: (itemPath?: string, indent?: string) => void; -}; -/** - * Create test context to use in tests. Provides the following: - * - * - A temporary directory - * - an fs-jetpack instance bound to the temporary directory - * - Mocked process.cwd via Node process.chdir - * - Fixture loader for bootstrapping the temporary directory with content - */ -export declare const jestContext: { - new: (ctx?: BaseContext) => { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): { - add(contextContributor: ContextContributor): any; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4 & NewContext_5 & NewContext_6 & NewContext_7 & NewContext_8 & NewContext_9; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4 & NewContext_5 & NewContext_6 & NewContext_7 & NewContext_8; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4 & NewContext_5 & NewContext_6 & NewContext_7; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4 & NewContext_5 & NewContext_6; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4 & NewContext_5; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3 & NewContext_4; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2 & NewContext_3; - }; - assemble(): BaseContext & NewContext & NewContext_1 & NewContext_2; - }; - assemble(): BaseContext & NewContext & NewContext_1; - }; - assemble(): BaseContext & NewContext; - }; - assemble(): BaseContext; - }; -}; -/** - * Factory for creating a context contributor possibly configured in some special way. - */ -type ContextContributorFactory = Settings extends {} ? () => ContextContributor : (settings: Settings) => ContextContributor; -/** - * A function that provides additional test context. - */ -type ContextContributor = (ctx: Context) => Context & NewContext; -/** - * Test context contributor. Mocks console.error with a Jest spy before each test. - */ -type ConsoleContext = { - mocked: { - 'console.error': jest.SpyInstance; - 'console.log': jest.SpyInstance; - 'console.info': jest.SpyInstance; - 'console.warn': jest.SpyInstance; - }; -}; -export declare const jestConsoleContext: ContextContributorFactory<{}, BaseContext, ConsoleContext>; -/** - * Test context contributor. Mocks process.std(out|err).write with a Jest spy before each test. - */ -type ProcessContext = { - mocked: { - 'process.stderr.write': jest.SpyInstance; - 'process.stdout.write': jest.SpyInstance; - }; -}; -export declare const jestProcessContext: ContextContributorFactory<{}, BaseContext, ProcessContext>; -export {}; diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js deleted file mode 100644 index c487a16..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jestContext_exports = {}; -__export(jestContext_exports, { - jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext, - jestContext: () => import_chunk_M5NKJZ76.jestContext, - jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext -}); -module.exports = __toCommonJS(jestContext_exports); -var import_chunk_M5NKJZ76 = require("../chunk-M5NKJZ76.js"); -var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js"); diff --git a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js b/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js deleted file mode 100644 index 9ace47a..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jestSnapshotSerializer_exports = {}; -__export(jestSnapshotSerializer_exports, { - default: () => jestSnapshotSerializer_default -}); -module.exports = __toCommonJS(jestSnapshotSerializer_exports); -var import_chunk_B23KD6U3 = require("../chunk-B23KD6U3.js"); -var import_chunk_7MLUNQIZ = require("../chunk-7MLUNQIZ.js"); -var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js"); -var require_replace_string = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/replace-string@3.1.0/node_modules/replace-string/index.js"(exports, module2) { - "use strict"; - module2.exports = (string, needle, replacement, options = {}) => { - if (typeof string !== "string") { - throw new TypeError(`Expected input to be a string, got ${typeof string}`); - } - if (!(typeof needle === "string" && needle.length > 0) || !(typeof replacement === "string" || typeof replacement === "function")) { - return string; - } - let result = ""; - let matchCount = 0; - let prevIndex = options.fromIndex > 0 ? options.fromIndex : 0; - if (prevIndex > string.length) { - return string; - } - while (true) { - const index = options.caseInsensitive ? string.toLowerCase().indexOf(needle.toLowerCase(), prevIndex) : string.indexOf(needle, prevIndex); - if (index === -1) { - break; - } - matchCount++; - const replaceStr = typeof replacement === "string" ? replacement : replacement( - // If `caseInsensitive`` is enabled, the matched substring may be different from the needle. - string.slice(index, index + needle.length), - matchCount, - string, - index - ); - const beginSlice = matchCount === 1 ? 0 : prevIndex; - result += string.slice(beginSlice, index) + replaceStr; - prevIndex = index + needle.length; - } - if (matchCount === 0) { - return string; - } - return result + string.slice(prevIndex); - }; - } -}); -var require_ansi_regex = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module2) { - "use strict"; - module2.exports = ({ onlyFirst = false } = {}) => { - const pattern = [ - "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", - "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" - ].join("|"); - return new RegExp(pattern, onlyFirst ? void 0 : "g"); - }; - } -}); -var require_strip_ansi = (0, import_chunk_2ESYSVXG.__commonJS)({ - "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module2) { - "use strict"; - var ansiRegex = require_ansi_regex(); - module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string; - } -}); -var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({ - "src/test-utils/jestSnapshotSerializer.js"(exports, module2) { - var path = (0, import_chunk_2ESYSVXG.__require)("path"); - var replaceAll = require_replace_string(); - var stripAnsi = require_strip_ansi(); - var { binaryTargetRegex } = ((0, import_chunk_B23KD6U3.init_binaryTargetRegex)(), (0, import_chunk_2ESYSVXG.__toCommonJS)(import_chunk_B23KD6U3.binaryTargetRegex_exports)); - var pipe = (...fns) => (x) => fns.reduce((v, f) => f(v), x); - function normalizePrismaPaths(str) { - return str.replace(/prisma\\([\w-]+)\.prisma/g, "prisma/$1.prisma").replace(/prisma\\seed\.ts/g, "prisma/seed.ts").replace(/custom-folder\\seed\.js/g, "custom-folder/seed.js"); - } - function normalizeLogs(str) { - return str.replace( - /Started query engine http server on http:\/\/127\.0\.0\.1:\d{1,5}/g, - "Started query engine http server on http://127.0.0.1:00000" - ).replace(/Starting a postgresql pool with \d+ connections./g, "Starting a postgresql pool with XX connections."); - } - function normalizeTmpDir(str) { - return str.replace(/\/tmp\/([a-z0-9]+)\//g, "/tmp/dir/"); - } - function trimErrorPaths(str) { - const parentDir = path.dirname(path.dirname(path.dirname(__dirname))); - return replaceAll(str, parentDir, ""); - } - function normalizeToUnixPaths(str) { - return replaceAll(str, path.sep, "/"); - } - function normalizeGitHubLinks(str) { - return str.replace(/https:\/\/github.com\/prisma\/prisma(-client-js)?\/issues\/new\S+/, "TEST_GITHUB_LINK"); - } - function normalizeTsClientStackTrace(str) { - return str.replace(/([/\\]client[/\\]src[/\\]__tests__[/\\].*test\.ts)(:\d*:\d*)/, "$1:0:0").replace(/([/\\]client[/\\]tests[/\\]functional[/\\].*\.ts)(:\d*:\d*)/, "$1:0:0"); - } - function removePlatforms(str) { - return str.replace(binaryTargetRegex, "TEST_PLATFORM"); - } - function normalizeNodeApiLibFilePath(str) { - return str.replace( - /((lib)?query_engine-TEST_PLATFORM\.)(.*)(\.node)/g, - "libquery_engine-TEST_PLATFORM.LIBRARY_TYPE.node" - ); - } - function normalizeBinaryFilePath(str) { - return str.replace(/\.exe(\s+)?(\W.*)/g, "$1$2").replace(/\.exe$/g, ""); - } - function normalizeMigrateTimestamps(str) { - return str.replace(/(? { - const urlMatch = urlRegex.exec(line); - if (urlMatch) { - return `${line.slice(0, urlMatch.index)}url = "***"`; - } - const outputMatch = outputRegex.exec(line); - if (outputMatch) { - return `${line.slice(0, outputMatch.index)}output = "***"`; - } - return line; - }).join("\n"); - } - function wrapWithQuotes(str) { - return `"${str}"`; - } - module2.exports = { - // Expected by Jest - test(value) { - return typeof value === "string" || value instanceof Error; - }, - serialize(value) { - const message = typeof value === "string" ? value : value instanceof Error ? value.message : ""; - return pipe( - stripAnsi, - // integration-tests pkg - prepareSchemaForSnapshot, - // Generic - normalizeTmpDir, - normalizeTime, - // From Client package - normalizeGitHubLinks, - removePlatforms, - normalizeNodeApiLibFilePath, - normalizeBinaryFilePath, - normalizeTsClientStackTrace, - trimErrorPaths, - normalizePrismaPaths, - normalizeLogs, - // remove windows \\ - normalizeToUnixPaths, - // From Migrate/CLI package - normalizeDbUrl, - normalizeRustError, - normalizeRustCodeLocation, - normalizeMigrateTimestamps, - // artificial panic - normalizeArtificialPanic, - wrapWithQuotes - )(message); - } - }; - } -}); -var jestSnapshotSerializer_default = require_jestSnapshotSerializer(); diff --git a/mcp-server/node_modules/@prisma/get-platform/package.json b/mcp-server/node_modules/@prisma/get-platform/package.json deleted file mode 100644 index b52290e..0000000 --- a/mcp-server/node_modules/@prisma/get-platform/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "@prisma/get-platform", - "version": "5.22.0", - "description": "This package is intended for Prisma's internal use", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "license": "Apache-2.0", - "author": "Tim Suchanek ", - "homepage": "https://www.prisma.io", - "repository": { - "type": "git", - "url": "https://github.com/prisma/prisma.git", - "directory": "packages/get-platform" - }, - "bugs": "https://github.com/prisma/prisma/issues", - "devDependencies": { - "@codspeed/benchmark.js-plugin": "3.1.1", - "@swc/core": "1.6.13", - "@swc/jest": "0.2.36", - "@types/jest": "29.5.12", - "@types/node": "18.19.31", - "benchmark": "2.1.4", - "jest": "29.7.0", - "jest-junit": "16.0.0", - "typescript": "5.4.5", - "escape-string-regexp": "4.0.0", - "execa": "5.1.1", - "fs-jetpack": "5.1.0", - "kleur": "4.1.5", - "replace-string": "3.1.0", - "strip-ansi": "6.0.1", - "tempy": "1.0.1", - "terminal-link": "2.1.1", - "ts-pattern": "5.2.0" - }, - "dependencies": { - "@prisma/debug": "5.22.0" - }, - "files": [ - "README.md", - "dist" - ], - "sideEffects": false, - "scripts": { - "dev": "DEV=true tsx helpers/build.ts", - "build": "tsx helpers/build.ts", - "test": "jest" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/@types/node/LICENSE b/mcp-server/node_modules/@types/node/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/mcp-server/node_modules/@types/node/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/mcp-server/node_modules/@types/node/README.md b/mcp-server/node_modules/@types/node/README.md deleted file mode 100644 index 2d9fda5..0000000 --- a/mcp-server/node_modules/@types/node/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/node` - -# Summary -This package contains type definitions for node (https://nodejs.org/). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20. - -### Additional Details - * Last updated: Sun, 14 Dec 2025 00:04:32 GMT - * Dependencies: [undici-types](https://npmjs.com/package/undici-types) - -# Credits -These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky). diff --git a/mcp-server/node_modules/@types/node/assert.d.ts b/mcp-server/node_modules/@types/node/assert.d.ts deleted file mode 100644 index c32c903..0000000 --- a/mcp-server/node_modules/@types/node/assert.d.ts +++ /dev/null @@ -1,1062 +0,0 @@ -/** - * The `node:assert` module provides a set of assertion functions for verifying - * invariants. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/assert.js) - */ -declare module "assert" { - /** - * An alias of {@link ok}. - * @since v0.5.9 - * @param value The input that is checked for being truthy. - */ - function assert(value: unknown, message?: string | Error): asserts value; - namespace assert { - type AssertMethodNames = - | "deepEqual" - | "deepStrictEqual" - | "doesNotMatch" - | "doesNotReject" - | "doesNotThrow" - | "equal" - | "fail" - | "ifError" - | "match" - | "notDeepEqual" - | "notDeepStrictEqual" - | "notEqual" - | "notStrictEqual" - | "ok" - | "rejects" - | "strictEqual" - | "throws"; - /** - * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class. - */ - class AssertionError extends Error { - /** - * Set to the `actual` argument for methods such as {@link assert.strictEqual()}. - */ - actual: unknown; - /** - * Set to the `expected` argument for methods such as {@link assert.strictEqual()}. - */ - expected: unknown; - /** - * Set to the passed in operator value. - */ - operator: string; - /** - * Indicates if the message was auto-generated (`true`) or not. - */ - generatedMessage: boolean; - /** - * Value is always `ERR_ASSERTION` to show that the error is an assertion error. - */ - code: "ERR_ASSERTION"; - constructor(options?: { - /** If provided, the error message is set to this value. */ - message?: string | undefined; - /** The `actual` property on the error instance. */ - actual?: unknown | undefined; - /** The `expected` property on the error instance. */ - expected?: unknown | undefined; - /** The `operator` property on the error instance. */ - operator?: string | undefined; - /** If provided, the generated stack trace omits frames before this function. */ - // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type - stackStartFn?: Function | undefined; - }); - } - /** - * This feature is deprecated and will be removed in a future version. - * Please consider using alternatives such as the `mock` helper function. - * @since v14.2.0, v12.19.0 - * @deprecated Deprecated - */ - class CallTracker { - /** - * The wrapper function is expected to be called exactly `exact` times. If the - * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an - * error. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func); - * ``` - * @since v14.2.0, v12.19.0 - * @param [fn='A no-op function'] - * @param [exact=1] - * @return A function that wraps `fn`. - */ - calls(exact?: number): () => void; - calls(fn: undefined, exact?: number): () => void; - calls any>(fn: Func, exact?: number): Func; - calls any>(fn?: Func, exact?: number): Func | (() => void); - /** - * Example: - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * callsfunc(1, 2, 3); - * - * assert.deepStrictEqual(tracker.getCalls(callsfunc), - * [{ thisArg: undefined, arguments: [1, 2, 3] }]); - * ``` - * @since v18.8.0, v16.18.0 - * @return An array with all the calls to a tracked function. - */ - getCalls(fn: Function): CallTrackerCall[]; - /** - * The arrays contains information about the expected and actual number of calls of - * the functions that have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * // Returns an array containing information on callsfunc() - * console.log(tracker.report()); - * // [ - * // { - * // message: 'Expected the func function to be executed 2 time(s) but was - * // executed 0 time(s).', - * // actual: 0, - * // expected: 2, - * // operator: 'func', - * // stack: stack trace - * // } - * // ] - * ``` - * @since v14.2.0, v12.19.0 - * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}. - */ - report(): CallTrackerReportInformation[]; - /** - * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it. - * If no arguments are passed, all tracked functions will be reset. - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * - * callsfunc(); - * // Tracker was called once - * assert.strictEqual(tracker.getCalls(callsfunc).length, 1); - * - * tracker.reset(callsfunc); - * assert.strictEqual(tracker.getCalls(callsfunc).length, 0); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn a tracked function to reset. - */ - reset(fn?: Function): void; - /** - * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that - * have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * callsfunc(); - * - * // Will throw an error since callsfunc() was only called once. - * tracker.verify(); - * ``` - * @since v14.2.0, v12.19.0 - */ - verify(): void; - } - interface CallTrackerCall { - thisArg: object; - arguments: unknown[]; - } - interface CallTrackerReportInformation { - message: string; - /** The actual number of times the function was called. */ - actual: number; - /** The number of times the function was expected to be called. */ - expected: number; - /** The name of the function that is wrapped. */ - operator: string; - /** A stack trace of the function. */ - stack: object; - } - type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error; - /** - * Throws an `AssertionError` with the provided error message or a default - * error message. If the `message` parameter is an instance of an `Error` then - * it will be thrown instead of the `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.fail(); - * // AssertionError [ERR_ASSERTION]: Failed - * - * assert.fail('boom'); - * // AssertionError [ERR_ASSERTION]: boom - * - * assert.fail(new TypeError('need array')); - * // TypeError: need array - * ``` - * - * Using `assert.fail()` with more than two arguments is possible but deprecated. - * See below for further details. - * @since v0.1.21 - * @param [message='Failed'] - */ - function fail(message?: string | Error): never; - /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ - function fail( - actual: unknown, - expected: unknown, - message?: string | Error, - operator?: string, - // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type - stackStartFn?: Function, - ): never; - /** - * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`. - * - * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. - * - * Be aware that in the `repl` the error message will be different to the one - * thrown in a file! See below for further details. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ok(true); - * // OK - * assert.ok(1); - * // OK - * - * assert.ok(); - * // AssertionError: No value argument passed to `assert.ok()` - * - * assert.ok(false, 'it\'s false'); - * // AssertionError: it's false - * - * // In the repl: - * assert.ok(typeof 123 === 'string'); - * // AssertionError: false == true - * - * // In a file (e.g. test.js): - * assert.ok(typeof 123 === 'string'); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(typeof 123 === 'string') - * - * assert.ok(false); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(false) - * - * assert.ok(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(0) - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * // Using `assert()` works the same: - * assert(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert(0) - * ``` - * @since v0.1.21 - */ - function ok(value: unknown, message?: string | Error): asserts value; - /** - * **Strict assertion mode** - * - * An alias of {@link strictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link strictEqual} instead. - * - * Tests shallow, coercive equality between the `actual` and `expected` parameters - * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled - * and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.equal(1, 1); - * // OK, 1 == 1 - * assert.equal(1, '1'); - * // OK, 1 == '1' - * assert.equal(NaN, NaN); - * // OK - * - * assert.equal(1, 2); - * // AssertionError: 1 == 2 - * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); - * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } - * ``` - * - * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function equal(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. - * - * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is - * specially handled and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.notEqual(1, 2); - * // OK - * - * assert.notEqual(1, 1); - * // AssertionError: 1 != 1 - * - * assert.notEqual(1, '1'); - * // AssertionError: 1 != '1' - * ``` - * - * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error - * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link deepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. - * - * Tests for deep equality between the `actual` and `expected` parameters. Consider - * using {@link deepStrictEqual} instead. {@link deepEqual} can have - * surprising results. - * - * _Deep equality_ means that the enumerable "own" properties of child objects - * are also recursively evaluated by the following rules. - * @since v0.1.21 - */ - function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notDeepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. - * - * Tests for any deep inequality. Opposite of {@link deepEqual}. - * - * ```js - * import assert from 'node:assert'; - * - * const obj1 = { - * a: { - * b: 1, - * }, - * }; - * const obj2 = { - * a: { - * b: 2, - * }, - * }; - * const obj3 = { - * a: { - * b: 1, - * }, - * }; - * const obj4 = { __proto__: obj1 }; - * - * assert.notDeepEqual(obj1, obj1); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj2); - * // OK - * - * assert.notDeepEqual(obj1, obj3); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj4); - * // OK - * ``` - * - * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests strict equality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.strictEqual(1, 2); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // - * // 1 !== 2 - * - * assert.strictEqual(1, 1); - * // OK - * - * assert.strictEqual('Hello foobar', 'Hello World!'); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // + actual - expected - * // - * // + 'Hello foobar' - * // - 'Hello World!' - * // ^ - * - * const apples = 1; - * const oranges = 2; - * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); - * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 - * - * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); - * // TypeError: Inputs are not identical - * ``` - * - * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests strict inequality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notStrictEqual(1, 2); - * // OK - * - * assert.notStrictEqual(1, 1); - * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: - * // - * // 1 - * - * assert.notStrictEqual(1, '1'); - * // OK - * ``` - * - * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests for deep equality between the `actual` and `expected` parameters. - * "Deep" equality means that the enumerable "own" properties of child objects - * are recursively evaluated also by the following rules. - * @since v1.2.0 - */ - function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); - * // OK - * ``` - * - * If the values are deeply and strictly equal, an `AssertionError` is thrown - * with a `message` property set equal to the value of the `message` parameter. If - * the `message` parameter is undefined, a default error message is assigned. If - * the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v1.2.0 - */ - function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Expects the function `fn` to throw an error. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * a validation object where each property will be tested for strict deep equality, - * or an instance of error where each property will be tested for strict deep - * equality including the non-enumerable `message` and `name` properties. When - * using an object, it is also possible to use a regular expression, when - * validating against a string property. See below for examples. - * - * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation - * fails. - * - * Custom validation object/error instance: - * - * ```js - * import assert from 'node:assert/strict'; - * - * const err = new TypeError('Wrong value'); - * err.code = 404; - * err.foo = 'bar'; - * err.info = { - * nested: true, - * baz: 'text', - * }; - * err.reg = /abc/i; - * - * assert.throws( - * () => { - * throw err; - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * info: { - * nested: true, - * baz: 'text', - * }, - * // Only properties on the validation object will be tested for. - * // Using nested objects requires all properties to be present. Otherwise - * // the validation is going to fail. - * }, - * ); - * - * // Using regular expressions to validate error properties: - * assert.throws( - * () => { - * throw err; - * }, - * { - * // The `name` and `message` properties are strings and using regular - * // expressions on those will match against the string. If they fail, an - * // error is thrown. - * name: /^TypeError$/, - * message: /Wrong/, - * foo: 'bar', - * info: { - * nested: true, - * // It is not possible to use regular expressions for nested properties! - * baz: 'text', - * }, - * // The `reg` property contains a regular expression and only if the - * // validation object contains an identical regular expression, it is going - * // to pass. - * reg: /abc/i, - * }, - * ); - * - * // Fails due to the different `message` and `name` properties: - * assert.throws( - * () => { - * const otherErr = new Error('Not found'); - * // Copy all enumerable properties from `err` to `otherErr`. - * for (const [key, value] of Object.entries(err)) { - * otherErr[key] = value; - * } - * throw otherErr; - * }, - * // The error's `message` and `name` properties will also be checked when using - * // an error as validation object. - * err, - * ); - * ``` - * - * Validate instanceof using constructor: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * Error, - * ); - * ``` - * - * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): - * - * Using a regular expression runs `.toString` on the error object, and will - * therefore also include the error name. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * /^Error: Wrong value$/, - * ); - * ``` - * - * Custom error validation: - * - * The function must return `true` to indicate all internal validations passed. - * It will otherwise fail with an `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * (err) => { - * assert(err instanceof Error); - * assert(/value/.test(err)); - * // Avoid returning anything from validation functions besides `true`. - * // Otherwise, it's not clear what part of the validation failed. Instead, - * // throw an error about the specific validation that failed (as done in this - * // example) and add as much helpful debugging information to that error as - * // possible. - * return true; - * }, - * 'unexpected error', - * ); - * ``` - * - * `error` cannot be a string. If a string is provided as the second - * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same - * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using - * a string as the second argument gets considered: - * - * ```js - * import assert from 'node:assert/strict'; - * - * function throwingFirst() { - * throw new Error('First'); - * } - * - * function throwingSecond() { - * throw new Error('Second'); - * } - * - * function notThrowing() {} - * - * // The second argument is a string and the input function threw an Error. - * // The first case will not throw as it does not match for the error message - * // thrown by the input function! - * assert.throws(throwingFirst, 'Second'); - * // In the next example the message has no benefit over the message from the - * // error and since it is not clear if the user intended to actually match - * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. - * assert.throws(throwingSecond, 'Second'); - * // TypeError [ERR_AMBIGUOUS_ARGUMENT] - * - * // The string is only used (as message) in case the function does not throw: - * assert.throws(notThrowing, 'Second'); - * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second - * - * // If it was intended to match for the error message do this instead: - * // It does not throw because the error messages match. - * assert.throws(throwingSecond, /Second$/); - * - * // If the error message does not match, an AssertionError is thrown. - * assert.throws(throwingFirst, /Second$/); - * // AssertionError [ERR_ASSERTION] - * ``` - * - * Due to the confusing error-prone notation, avoid a string as the second - * argument. - * @since v0.1.21 - */ - function throws(block: () => unknown, message?: string | Error): void; - function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Asserts that the function `fn` does not throw an error. - * - * Using `assert.doesNotThrow()` is actually not useful because there - * is no benefit in catching an error and then rethrowing it. Instead, consider - * adding a comment next to the specific code path that should not throw and keep - * error messages as expressive as possible. - * - * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function. - * - * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a - * different type, or if the `error` parameter is undefined, the error is - * propagated back to the caller. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * The following, for instance, will throw the `TypeError` because there is no - * matching error type in the assertion: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * However, the following will result in an `AssertionError` with the message - * 'Got unwanted exception...': - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * TypeError, - * ); - * ``` - * - * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * /Wrong value/, - * 'Whoops', - * ); - * // Throws: AssertionError: Got unwanted exception: Whoops - * ``` - * @since v0.1.21 - */ - function doesNotThrow(block: () => unknown, message?: string | Error): void; - function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Throws `value` if `value` is not `undefined` or `null`. This is useful when - * testing the `error` argument in callbacks. The stack trace contains all frames - * from the error passed to `ifError()` including the potential new frames for `ifError()` itself. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ifError(null); - * // OK - * assert.ifError(0); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 - * assert.ifError('error'); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' - * assert.ifError(new Error()); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error - * - * // Create some random error frames. - * let err; - * (function errorFrame() { - * err = new Error('test error'); - * })(); - * - * (function ifErrorFrame() { - * assert.ifError(err); - * })(); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - * // at ifErrorFrame - * // at errorFrame - * ``` - * @since v0.1.97 - */ - function ifError(value: unknown): asserts value is null | undefined; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the - * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) - * error. In both cases the error handler is skipped. - * - * Besides the async nature to await the completion behaves identically to {@link throws}. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and `name` properties. - * - * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * (err) => { - * assert.strictEqual(err.name, 'TypeError'); - * assert.strictEqual(err.message, 'Wrong value'); - * return true; - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.rejects( - * Promise.reject(new Error('Wrong value')), - * Error, - * ).then(() => { - * // ... - * }); - * ``` - * - * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to - * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the - * example in {@link throws} carefully if using a string as the second argument gets considered. - * @since v10.0.0 - */ - function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; - function rejects( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is not rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If - * the function does not return a promise, `assert.doesNotReject()` will return a - * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases - * the error handler is skipped. - * - * Using `assert.doesNotReject()` is actually not useful because there is little - * benefit in catching a rejection and then rejecting it again. Instead, consider - * adding a comment next to the specific code path that should not reject and keep - * error messages as expressive as possible. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.doesNotReject( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) - * .then(() => { - * // ... - * }); - * ``` - * @since v10.0.0 - */ - function doesNotReject( - block: (() => Promise) | Promise, - message?: string | Error, - ): Promise; - function doesNotReject( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Expects the `string` input to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.match('I will fail', /pass/); - * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... - * - * assert.match(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.match('I will pass', /pass/); - * // OK - * ``` - * - * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function match(value: string, regExp: RegExp, message?: string | Error): void; - /** - * Expects the `string` input not to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotMatch('I will fail', /fail/); - * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... - * - * assert.doesNotMatch(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.doesNotMatch('I will pass', /different/); - * // OK - * ``` - * - * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; - /** - * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example, - * {@link deepEqual} will behave like {@link deepStrictEqual}. - * - * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error - * messages for objects display the objects, often truncated. - * - * To use strict assertion mode: - * - * ```js - * import { strict as assert } from 'node:assert';COPY - * import assert from 'node:assert/strict'; - * ``` - * - * Example error diff: - * - * ```js - * import { strict as assert } from 'node:assert'; - * - * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]); - * // AssertionError: Expected inputs to be strictly deep-equal: - * // + actual - expected ... Lines skipped - * // - * // [ - * // [ - * // ... - * // 2, - * // + 3 - * // - '3' - * // ], - * // ... - * // 5 - * // ] - * ``` - * - * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also - * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty - * `getColorDepth()` documentation. - * - * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0 - */ - namespace strict { - type AssertionError = assert.AssertionError; - type AssertPredicate = assert.AssertPredicate; - type CallTrackerCall = assert.CallTrackerCall; - type CallTrackerReportInformation = assert.CallTrackerReportInformation; - } - const strict: - & Omit< - typeof assert, - | "equal" - | "notEqual" - | "deepEqual" - | "notDeepEqual" - | "ok" - | "strictEqual" - | "deepStrictEqual" - | "ifError" - | "strict" - | "AssertionError" - > - & { - (value: unknown, message?: string | Error): asserts value; - equal: typeof strictEqual; - notEqual: typeof notStrictEqual; - deepEqual: typeof deepStrictEqual; - notDeepEqual: typeof notDeepStrictEqual; - // Mapped types and assertion functions are incompatible? - // TS2775: Assertions require every name in the call target - // to be declared with an explicit type annotation. - ok: typeof ok; - strictEqual: typeof strictEqual; - deepStrictEqual: typeof deepStrictEqual; - ifError: typeof ifError; - strict: typeof strict; - AssertionError: typeof AssertionError; - }; - } - export = assert; -} -declare module "node:assert" { - import assert = require("assert"); - export = assert; -} diff --git a/mcp-server/node_modules/@types/node/assert/strict.d.ts b/mcp-server/node_modules/@types/node/assert/strict.d.ts deleted file mode 100644 index f333913..0000000 --- a/mcp-server/node_modules/@types/node/assert/strict.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module "assert/strict" { - import { strict } from "node:assert"; - export = strict; -} -declare module "node:assert/strict" { - import { strict } from "node:assert"; - export = strict; -} diff --git a/mcp-server/node_modules/@types/node/async_hooks.d.ts b/mcp-server/node_modules/@types/node/async_hooks.d.ts deleted file mode 100644 index fd9d2aa..0000000 --- a/mcp-server/node_modules/@types/node/async_hooks.d.ts +++ /dev/null @@ -1,605 +0,0 @@ -/** - * We strongly discourage the use of the `async_hooks` API. - * Other APIs that can cover most of its use cases include: - * - * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context - * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources - * - * The `node:async_hooks` module provides an API to track asynchronous resources. - * It can be accessed using: - * - * ```js - * import async_hooks from 'node:async_hooks'; - * ``` - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/async_hooks.js) - */ -declare module "async_hooks" { - /** - * ```js - * import { executionAsyncId } from 'node:async_hooks'; - * import fs from 'node:fs'; - * - * console.log(executionAsyncId()); // 1 - bootstrap - * const path = '.'; - * fs.open(path, 'r', (err, fd) => { - * console.log(executionAsyncId()); // 6 - open() - * }); - * ``` - * - * The ID returned from `executionAsyncId()` is related to execution timing, not - * causality (which is covered by `triggerAsyncId()`): - * - * ```js - * const server = net.createServer((conn) => { - * // Returns the ID of the server, not of the new connection, because the - * // callback runs in the execution scope of the server's MakeCallback(). - * async_hooks.executionAsyncId(); - * - * }).listen(port, () => { - * // Returns the ID of a TickObject (process.nextTick()) because all - * // callbacks passed to .listen() are wrapped in a nextTick(). - * async_hooks.executionAsyncId(); - * }); - * ``` - * - * Promise contexts may not get precise `executionAsyncIds` by default. - * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). - * @since v8.1.0 - * @return The `asyncId` of the current execution context. Useful to track when something calls. - */ - function executionAsyncId(): number; - /** - * Resource objects returned by `executionAsyncResource()` are most often internal - * Node.js handle objects with undocumented APIs. Using any functions or properties - * on the object is likely to crash your application and should be avoided. - * - * Using `executionAsyncResource()` in the top-level execution context will - * return an empty object as there is no handle or request object to use, - * but having an object representing the top-level can be helpful. - * - * ```js - * import { open } from 'node:fs'; - * import { executionAsyncId, executionAsyncResource } from 'node:async_hooks'; - * - * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} - * open(new URL(import.meta.url), 'r', (err, fd) => { - * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap - * }); - * ``` - * - * This can be used to implement continuation local storage without the - * use of a tracking `Map` to store the metadata: - * - * ```js - * import { createServer } from 'node:http'; - * import { - * executionAsyncId, - * executionAsyncResource, - * createHook, - * } from 'async_hooks'; - * const sym = Symbol('state'); // Private symbol to avoid pollution - * - * createHook({ - * init(asyncId, type, triggerAsyncId, resource) { - * const cr = executionAsyncResource(); - * if (cr) { - * resource[sym] = cr[sym]; - * } - * }, - * }).enable(); - * - * const server = createServer((req, res) => { - * executionAsyncResource()[sym] = { state: req.url }; - * setTimeout(function() { - * res.end(JSON.stringify(executionAsyncResource()[sym])); - * }, 100); - * }).listen(3000); - * ``` - * @since v13.9.0, v12.17.0 - * @return The resource representing the current execution. Useful to store data within the resource. - */ - function executionAsyncResource(): object; - /** - * ```js - * const server = net.createServer((conn) => { - * // The resource that caused (or triggered) this callback to be called - * // was that of the new connection. Thus the return value of triggerAsyncId() - * // is the asyncId of "conn". - * async_hooks.triggerAsyncId(); - * - * }).listen(port, () => { - * // Even though all callbacks passed to .listen() are wrapped in a nextTick() - * // the callback itself exists because the call to the server's .listen() - * // was made. So the return value would be the ID of the server. - * async_hooks.triggerAsyncId(); - * }); - * ``` - * - * Promise contexts may not get valid `triggerAsyncId`s by default. See - * the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). - * @return The ID of the resource responsible for calling the callback that is currently being executed. - */ - function triggerAsyncId(): number; - interface HookCallbacks { - /** - * Called when a class is constructed that has the possibility to emit an asynchronous event. - * @param asyncId A unique ID for the async resource - * @param type The type of the async resource - * @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created - * @param resource Reference to the resource representing the async operation, needs to be released during destroy - */ - init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; - /** - * When an asynchronous operation is initiated or completes a callback is called to notify the user. - * The before callback is called just before said callback is executed. - * @param asyncId the unique identifier assigned to the resource about to execute the callback. - */ - before?(asyncId: number): void; - /** - * Called immediately after the callback specified in `before` is completed. - * - * If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs. - * @param asyncId the unique identifier assigned to the resource which has executed the callback. - */ - after?(asyncId: number): void; - /** - * Called when a promise has resolve() called. This may not be in the same execution id - * as the promise itself. - * @param asyncId the unique id for the promise that was resolve()d. - */ - promiseResolve?(asyncId: number): void; - /** - * Called after the resource corresponding to asyncId is destroyed - * @param asyncId a unique ID for the async resource - */ - destroy?(asyncId: number): void; - } - interface AsyncHook { - /** - * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. - */ - enable(): this; - /** - * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. - */ - disable(): this; - } - /** - * Registers functions to be called for different lifetime events of each async - * operation. - * - * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the - * respective asynchronous event during a resource's lifetime. - * - * All callbacks are optional. For example, if only resource cleanup needs to - * be tracked, then only the `destroy` callback needs to be passed. The - * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. - * - * ```js - * import { createHook } from 'node:async_hooks'; - * - * const asyncHook = createHook({ - * init(asyncId, type, triggerAsyncId, resource) { }, - * destroy(asyncId) { }, - * }); - * ``` - * - * The callbacks will be inherited via the prototype chain: - * - * ```js - * class MyAsyncCallbacks { - * init(asyncId, type, triggerAsyncId, resource) { } - * destroy(asyncId) {} - * } - * - * class MyAddedCallbacks extends MyAsyncCallbacks { - * before(asyncId) { } - * after(asyncId) { } - * } - * - * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); - * ``` - * - * Because promises are asynchronous resources whose lifecycle is tracked - * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. - * @since v8.1.0 - * @param callbacks The `Hook Callbacks` to register - * @return Instance used for disabling and enabling hooks - */ - function createHook(callbacks: HookCallbacks): AsyncHook; - interface AsyncResourceOptions { - /** - * The ID of the execution context that created this async event. - * @default executionAsyncId() - */ - triggerAsyncId?: number | undefined; - /** - * Disables automatic `emitDestroy` when the object is garbage collected. - * This usually does not need to be set (even if `emitDestroy` is called - * manually), unless the resource's `asyncId` is retrieved and the - * sensitive API's `emitDestroy` is called with it. - * @default false - */ - requireManualDestroy?: boolean | undefined; - } - /** - * The class `AsyncResource` is designed to be extended by the embedder's async - * resources. Using this, users can easily trigger the lifetime events of their - * own resources. - * - * The `init` hook will trigger when an `AsyncResource` is instantiated. - * - * The following is an overview of the `AsyncResource` API. - * - * ```js - * import { AsyncResource, executionAsyncId } from 'node:async_hooks'; - * - * // AsyncResource() is meant to be extended. Instantiating a - * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * // async_hook.executionAsyncId() is used. - * const asyncResource = new AsyncResource( - * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false }, - * ); - * - * // Run a function in the execution context of the resource. This will - * // * establish the context of the resource - * // * trigger the AsyncHooks before callbacks - * // * call the provided function `fn` with the supplied arguments - * // * trigger the AsyncHooks after callbacks - * // * restore the original execution context - * asyncResource.runInAsyncScope(fn, thisArg, ...args); - * - * // Call AsyncHooks destroy callbacks. - * asyncResource.emitDestroy(); - * - * // Return the unique ID assigned to the AsyncResource instance. - * asyncResource.asyncId(); - * - * // Return the trigger ID for the AsyncResource instance. - * asyncResource.triggerAsyncId(); - * ``` - */ - class AsyncResource { - /** - * AsyncResource() is meant to be extended. Instantiating a - * new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * async_hook.executionAsyncId() is used. - * @param type The type of async event. - * @param triggerAsyncId The ID of the execution context that created - * this async event (default: `executionAsyncId()`), or an - * AsyncResourceOptions object (since v9.3.0) - */ - constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); - /** - * Binds the given function to the current execution context. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current execution context. - * @param type An optional name to associate with the underlying `AsyncResource`. - */ - static bind any, ThisArg>( - fn: Func, - type?: string, - thisArg?: ThisArg, - ): Func; - /** - * Binds the given function to execute to this `AsyncResource`'s scope. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current `AsyncResource`. - */ - bind any>(fn: Func): Func; - /** - * Call the provided function with the provided arguments in the execution context - * of the async resource. This will establish the context, trigger the AsyncHooks - * before callbacks, call the function, trigger the AsyncHooks after callbacks, and - * then restore the original execution context. - * @since v9.6.0 - * @param fn The function to call in the execution context of this async resource. - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runInAsyncScope( - fn: (this: This, ...args: any[]) => Result, - thisArg?: This, - ...args: any[] - ): Result; - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - * @return A reference to `asyncResource`. - */ - emitDestroy(): this; - /** - * @return The unique `asyncId` assigned to the resource. - */ - asyncId(): number; - /** - * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. - */ - triggerAsyncId(): number; - } - /** - * This class creates stores that stay coherent through asynchronous operations. - * - * While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory - * safe implementation that involves significant optimizations that are non-obvious - * to implement. - * - * The following example uses `AsyncLocalStorage` to build a simple logger - * that assigns IDs to incoming HTTP requests and includes them in messages - * logged within each request. - * - * ```js - * import http from 'node:http'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const asyncLocalStorage = new AsyncLocalStorage(); - * - * function logWithId(msg) { - * const id = asyncLocalStorage.getStore(); - * console.log(`${id !== undefined ? id : '-'}:`, msg); - * } - * - * let idSeq = 0; - * http.createServer((req, res) => { - * asyncLocalStorage.run(idSeq++, () => { - * logWithId('start'); - * // Imagine any chain of async operations here - * setImmediate(() => { - * logWithId('finish'); - * res.end(); - * }); - * }); - * }).listen(8080); - * - * http.get('http://localhost:8080'); - * http.get('http://localhost:8080'); - * // Prints: - * // 0: start - * // 1: start - * // 0: finish - * // 1: finish - * ``` - * - * Each instance of `AsyncLocalStorage` maintains an independent storage context. - * Multiple instances can safely exist simultaneously without risk of interfering - * with each other's data. - * @since v13.10.0, v12.17.0 - */ - class AsyncLocalStorage { - /** - * Binds the given function to the current execution context. - * @since v19.8.0 - * @experimental - * @param fn The function to bind to the current execution context. - * @return A new function that calls `fn` within the captured execution context. - */ - static bind any>(fn: Func): Func; - /** - * Captures the current execution context and returns a function that accepts a - * function as an argument. Whenever the returned function is called, it - * calls the function passed to it within the captured context. - * - * ```js - * const asyncLocalStorage = new AsyncLocalStorage(); - * const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot()); - * const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore())); - * console.log(result); // returns 123 - * ``` - * - * AsyncLocalStorage.snapshot() can replace the use of AsyncResource for simple - * async context tracking purposes, for example: - * - * ```js - * class Foo { - * #runInAsyncScope = AsyncLocalStorage.snapshot(); - * - * get() { return this.#runInAsyncScope(() => asyncLocalStorage.getStore()); } - * } - * - * const foo = asyncLocalStorage.run(123, () => new Foo()); - * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123 - * ``` - * @since v19.8.0 - * @experimental - * @return A new function with the signature `(fn: (...args) : R, ...args) : R`. - */ - static snapshot(): (fn: (...args: TArgs) => R, ...args: TArgs) => R; - /** - * Disables the instance of `AsyncLocalStorage`. All subsequent calls - * to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. - * - * When calling `asyncLocalStorage.disable()`, all current contexts linked to the - * instance will be exited. - * - * Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores - * provided by the `asyncLocalStorage`, as those objects are garbage collected - * along with the corresponding async resources. - * - * Use this method when the `asyncLocalStorage` is not in use anymore - * in the current process. - * @since v13.10.0, v12.17.0 - * @experimental - */ - disable(): void; - /** - * Returns the current store. - * If called outside of an asynchronous context initialized by - * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it - * returns `undefined`. - * @since v13.10.0, v12.17.0 - */ - getStore(): T | undefined; - /** - * Runs a function synchronously within a context and returns its - * return value. The store is not accessible outside of the callback function. - * The store is accessible to any asynchronous operations created within the - * callback. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `run()` too. - * The stacktrace is not impacted by this call and the context is exited. - * - * Example: - * - * ```js - * const store = { id: 2 }; - * try { - * asyncLocalStorage.run(store, () => { - * asyncLocalStorage.getStore(); // Returns the store object - * setTimeout(() => { - * asyncLocalStorage.getStore(); // Returns the store object - * }, 200); - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns undefined - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - */ - run(store: T, callback: () => R): R; - run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Runs a function synchronously outside of a context and returns its - * return value. The store is not accessible within the callback function or - * the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `exit()` too. - * The stacktrace is not impacted by this call and the context is re-entered. - * - * Example: - * - * ```js - * // Within a call to run - * try { - * asyncLocalStorage.getStore(); // Returns the store object or value - * asyncLocalStorage.exit(() => { - * asyncLocalStorage.getStore(); // Returns undefined - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns the same object or value - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - * @experimental - */ - exit(callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Transitions into the context for the remainder of the current - * synchronous execution and then persists the store through any following - * asynchronous calls. - * - * Example: - * - * ```js - * const store = { id: 1 }; - * // Replaces previous store with the given store object - * asyncLocalStorage.enterWith(store); - * asyncLocalStorage.getStore(); // Returns the store object - * someAsyncOperation(() => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * ``` - * - * This transition will continue for the _entire_ synchronous execution. - * This means that if, for example, the context is entered within an event - * handler subsequent event handlers will also run within that context unless - * specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons - * to use the latter method. - * - * ```js - * const store = { id: 1 }; - * - * emitter.on('my-event', () => { - * asyncLocalStorage.enterWith(store); - * }); - * emitter.on('my-event', () => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * - * asyncLocalStorage.getStore(); // Returns undefined - * emitter.emit('my-event'); - * asyncLocalStorage.getStore(); // Returns the same object - * ``` - * @since v13.11.0, v12.17.0 - * @experimental - */ - enterWith(store: T): void; - } - /** - * @since v17.2.0, v16.14.0 - * @return A map of provider types to the corresponding numeric id. - * This map contains all the event types that might be emitted by the `async_hooks.init()` event. - */ - namespace asyncWrapProviders { - const NONE: number; - const DIRHANDLE: number; - const DNSCHANNEL: number; - const ELDHISTOGRAM: number; - const FILEHANDLE: number; - const FILEHANDLECLOSEREQ: number; - const FIXEDSIZEBLOBCOPY: number; - const FSEVENTWRAP: number; - const FSREQCALLBACK: number; - const FSREQPROMISE: number; - const GETADDRINFOREQWRAP: number; - const GETNAMEINFOREQWRAP: number; - const HEAPSNAPSHOT: number; - const HTTP2SESSION: number; - const HTTP2STREAM: number; - const HTTP2PING: number; - const HTTP2SETTINGS: number; - const HTTPINCOMINGMESSAGE: number; - const HTTPCLIENTREQUEST: number; - const JSSTREAM: number; - const JSUDPWRAP: number; - const MESSAGEPORT: number; - const PIPECONNECTWRAP: number; - const PIPESERVERWRAP: number; - const PIPEWRAP: number; - const PROCESSWRAP: number; - const PROMISE: number; - const QUERYWRAP: number; - const SHUTDOWNWRAP: number; - const SIGNALWRAP: number; - const STATWATCHER: number; - const STREAMPIPE: number; - const TCPCONNECTWRAP: number; - const TCPSERVERWRAP: number; - const TCPWRAP: number; - const TTYWRAP: number; - const UDPSENDWRAP: number; - const UDPWRAP: number; - const SIGINTWATCHDOG: number; - const WORKER: number; - const WORKERHEAPSNAPSHOT: number; - const WRITEWRAP: number; - const ZLIB: number; - const CHECKPRIMEREQUEST: number; - const PBKDF2REQUEST: number; - const KEYPAIRGENREQUEST: number; - const KEYGENREQUEST: number; - const KEYEXPORTREQUEST: number; - const CIPHERREQUEST: number; - const DERIVEBITSREQUEST: number; - const HASHREQUEST: number; - const RANDOMBYTESREQUEST: number; - const RANDOMPRIMEREQUEST: number; - const SCRYPTREQUEST: number; - const SIGNREQUEST: number; - const TLSWRAP: number; - const VERIFYREQUEST: number; - } -} -declare module "node:async_hooks" { - export * from "async_hooks"; -} diff --git a/mcp-server/node_modules/@types/node/buffer.buffer.d.ts b/mcp-server/node_modules/@types/node/buffer.buffer.d.ts deleted file mode 100644 index 023bb0f..0000000 --- a/mcp-server/node_modules/@types/node/buffer.buffer.d.ts +++ /dev/null @@ -1,471 +0,0 @@ -declare module "buffer" { - type ImplicitArrayBuffer> = T extends - { valueOf(): infer V extends ArrayBufferLike } ? V : T; - global { - interface BufferConstructor { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: TArrayBuffer): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from>( - arrayBuffer: TArrayBuffer, - byteOffset?: number, - length?: number, - ): Buffer>; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - // TODO: remove globals in future version - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/mcp-server/node_modules/@types/node/buffer.d.ts b/mcp-server/node_modules/@types/node/buffer.d.ts deleted file mode 100644 index 7c2e873..0000000 --- a/mcp-server/node_modules/@types/node/buffer.d.ts +++ /dev/null @@ -1,1936 +0,0 @@ -// If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types. -// Otherwise, use the types from node. -type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob; -type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File; - -/** - * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many - * Node.js APIs support `Buffer`s. - * - * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and - * extends it with methods that cover additional use cases. Node.js APIs accept - * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well. - * - * While the `Buffer` class is available within the global scope, it is still - * recommended to explicitly reference it via an import or require statement. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a zero-filled Buffer of length 10. - * const buf1 = Buffer.alloc(10); - * - * // Creates a Buffer of length 10, - * // filled with bytes which all have the value `1`. - * const buf2 = Buffer.alloc(10, 1); - * - * // Creates an uninitialized buffer of length 10. - * // This is faster than calling Buffer.alloc() but the returned - * // Buffer instance might contain old data that needs to be - * // overwritten using fill(), write(), or other functions that fill the Buffer's - * // contents. - * const buf3 = Buffer.allocUnsafe(10); - * - * // Creates a Buffer containing the bytes [1, 2, 3]. - * const buf4 = Buffer.from([1, 2, 3]); - * - * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries - * // are all truncated using `(value & 255)` to fit into the range 0–255. - * const buf5 = Buffer.from([257, 257.5, -255, '1']); - * - * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': - * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) - * // [116, 195, 169, 115, 116] (in decimal notation) - * const buf6 = Buffer.from('tést'); - * - * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. - * const buf7 = Buffer.from('tést', 'latin1'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/buffer.js) - */ -declare module "buffer" { - import { BinaryLike } from "node:crypto"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * This function returns `true` if `input` contains only valid UTF-8-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.4.0, v18.14.0 - * @param input The input to validate. - */ - export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean; - /** - * This function returns `true` if `input` contains only valid ASCII-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.6.0, v18.15.0 - * @param input The input to validate. - */ - export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean; - export let INSPECT_MAX_BYTES: number; - export const kMaxLength: number; - export const kStringMaxLength: number; - export const constants: { - MAX_LENGTH: number; - MAX_STRING_LENGTH: number; - }; - export type TranscodeEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "latin1" - | "binary"; - /** - * Re-encodes the given `Buffer` or `Uint8Array` instance from one character - * encoding to another. Returns a new `Buffer` instance. - * - * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if - * conversion from `fromEnc` to `toEnc` is not permitted. - * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. - * - * The transcoding process will use substitution characters if a given byte - * sequence cannot be adequately represented in the target encoding. For instance: - * - * ```js - * import { Buffer, transcode } from 'node:buffer'; - * - * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); - * console.log(newBuf.toString('ascii')); - * // Prints: '?' - * ``` - * - * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced - * with `?` in the transcoded `Buffer`. - * @since v7.1.0 - * @param source A `Buffer` or `Uint8Array` instance. - * @param fromEnc The current encoding. - * @param toEnc To target encoding. - */ - export function transcode( - source: Uint8Array, - fromEnc: TranscodeEncoding, - toEnc: TranscodeEncoding, - ): NonSharedBuffer; - /** - * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using - * a prior call to `URL.createObjectURL()`. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - export function resolveObjectURL(id: string): Blob | undefined; - export { type AllowSharedBuffer, Buffer, type NonSharedBuffer }; - /** - * @experimental - */ - export interface BlobOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts - * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. - */ - endings?: "transparent" | "native"; - /** - * The Blob content-type. The intent is for `type` to convey - * the MIME media type of the data, however no validation of the type format - * is performed. - */ - type?: string | undefined; - } - /** - * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across - * multiple worker threads. - * @since v15.7.0, v14.18.0 - */ - export class Blob { - /** - * The total size of the `Blob` in bytes. - * @since v15.7.0, v14.18.0 - */ - readonly size: number; - /** - * The content-type of the `Blob`. - * @since v15.7.0, v14.18.0 - */ - readonly type: string; - /** - * Creates a new `Blob` object containing a concatenation of the given sources. - * - * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into - * the 'Blob' and can therefore be safely modified after the 'Blob' is created. - * - * String sources are also copied into the `Blob`. - */ - constructor(sources: Array, options?: BlobOptions); - /** - * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of - * the `Blob` data. - * @since v15.7.0, v14.18.0 - */ - arrayBuffer(): Promise; - /** - * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise`. - * - * ```js - * const blob = new Blob(['hello']); - * blob.bytes().then((bytes) => { - * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ] - * }); - * ``` - * @since v20.16.0 - */ - bytes(): Promise; - /** - * Creates and returns a new `Blob` containing a subset of this `Blob` objects - * data. The original `Blob` is not altered. - * @since v15.7.0, v14.18.0 - * @param start The starting index. - * @param end The ending index. - * @param type The content-type for the new `Blob` - */ - slice(start?: number, end?: number, type?: string): Blob; - /** - * Returns a promise that fulfills with the contents of the `Blob` decoded as a - * UTF-8 string. - * @since v15.7.0, v14.18.0 - */ - text(): Promise; - /** - * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. - * @since v16.7.0 - */ - stream(): WebReadableStream; - } - export interface FileOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be - * converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. - */ - endings?: "native" | "transparent"; - /** The File content-type. */ - type?: string; - /** The last modified date of the file. `Default`: Date.now(). */ - lastModified?: number; - } - /** - * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files. - * @since v19.2.0, v18.13.0 - */ - export class File extends Blob { - constructor(sources: Array, fileName: string, options?: FileOptions); - /** - * The name of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly name: string; - /** - * The last modified date of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly lastModified: number; - } - export import atob = globalThis.atob; - export import btoa = globalThis.btoa; - export type WithImplicitCoercion = - | T - | { valueOf(): T } - | (T extends string ? { [Symbol.toPrimitive](hint: "string"): T } : never); - global { - namespace NodeJS { - export { BufferEncoding }; - } - // Buffer class - type BufferEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; - /** - * Raw data is stored in instances of the Buffer class. - * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. - * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex' - */ - interface BufferConstructor { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Returns `true` if `obj` is a `Buffer`, `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * Buffer.isBuffer(Buffer.alloc(10)); // true - * Buffer.isBuffer(Buffer.from('foo')); // true - * Buffer.isBuffer('a string'); // false - * Buffer.isBuffer([]); // false - * Buffer.isBuffer(new Uint8Array(1024)); // false - * ``` - * @since v0.1.101 - */ - isBuffer(obj: any): obj is Buffer; - /** - * Returns `true` if `encoding` is the name of a supported character encoding, - * or `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * console.log(Buffer.isEncoding('utf8')); - * // Prints: true - * - * console.log(Buffer.isEncoding('hex')); - * // Prints: true - * - * console.log(Buffer.isEncoding('utf/8')); - * // Prints: false - * - * console.log(Buffer.isEncoding('')); - * // Prints: false - * ``` - * @since v0.9.1 - * @param encoding A character encoding name to check. - */ - isEncoding(encoding: string): encoding is BufferEncoding; - /** - * Returns the byte length of a string when encoded using `encoding`. - * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account - * for the encoding that is used to convert the string into bytes. - * - * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. - * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the - * return value might be greater than the length of a `Buffer` created from the - * string. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const str = '\u00bd + \u00bc = \u00be'; - * - * console.log(`${str}: ${str.length} characters, ` + - * `${Buffer.byteLength(str, 'utf8')} bytes`); - * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes - * ``` - * - * When `string` is a - * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- - * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- - * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. - * @since v0.1.90 - * @param string A value to calculate the length of. - * @param [encoding='utf8'] If `string` is a string, this is its encoding. - * @return The number of bytes contained within `string`. - */ - byteLength( - string: string | NodeJS.ArrayBufferView | ArrayBufferLike, - encoding?: BufferEncoding, - ): number; - /** - * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('1234'); - * const buf2 = Buffer.from('0123'); - * const arr = [buf1, buf2]; - * - * console.log(arr.sort(Buffer.compare)); - * // Prints: [ , ] - * // (This result is equal to: [buf2, buf1].) - * ``` - * @since v0.11.13 - * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. - */ - compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1; - /** - * This is the size (in bytes) of pre-allocated internal `Buffer` instances used - * for pooling. This value may be modified. - * @since v0.11.3 - */ - poolSize: number; - } - interface Buffer { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did - * not contain enough space to fit the entire string, only part of `string` will be - * written. However, partially encoded characters will not be written. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(256); - * - * const len = buf.write('\u00bd + \u00bc = \u00be', 0); - * - * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); - * // Prints: 12 bytes: ½ + ¼ = ¾ - * - * const buffer = Buffer.alloc(10); - * - * const length = buffer.write('abcd', 8); - * - * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); - * // Prints: 2 bytes : ab - * ``` - * @since v0.1.90 - * @param string String to write to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write `string`. - * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). - * @param [encoding='utf8'] The character encoding of `string`. - * @return Number of bytes written. - */ - write(string: string, encoding?: BufferEncoding): number; - write(string: string, offset: number, encoding?: BufferEncoding): number; - write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; - /** - * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. - * - * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, - * then each invalid byte is replaced with the replacement character `U+FFFD`. - * - * The maximum length of a string instance (in UTF-16 code units) is available - * as {@link constants.MAX_STRING_LENGTH}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * console.log(buf1.toString('utf8')); - * // Prints: abcdefghijklmnopqrstuvwxyz - * console.log(buf1.toString('utf8', 0, 5)); - * // Prints: abcde - * - * const buf2 = Buffer.from('tést'); - * - * console.log(buf2.toString('hex')); - * // Prints: 74c3a97374 - * console.log(buf2.toString('utf8', 0, 3)); - * // Prints: té - * console.log(buf2.toString(undefined, 0, 3)); - * // Prints: té - * ``` - * @since v0.1.90 - * @param [encoding='utf8'] The character encoding to use. - * @param [start=0] The byte offset to start decoding at. - * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). - */ - toString(encoding?: BufferEncoding, start?: number, end?: number): string; - /** - * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls - * this function when stringifying a `Buffer` instance. - * - * `Buffer.from()` accepts objects in the format returned from this method. - * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); - * const json = JSON.stringify(buf); - * - * console.log(json); - * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} - * - * const copy = JSON.parse(json, (key, value) => { - * return value && value.type === 'Buffer' ? - * Buffer.from(value) : - * value; - * }); - * - * console.log(copy); - * // Prints: - * ``` - * @since v0.9.2 - */ - toJSON(): { - type: "Buffer"; - data: number[]; - }; - /** - * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('414243', 'hex'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.equals(buf2)); - * // Prints: true - * console.log(buf1.equals(buf3)); - * // Prints: false - * ``` - * @since v0.11.13 - * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. - */ - equals(otherBuffer: Uint8Array): boolean; - /** - * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. - * Comparison is based on the actual sequence of bytes in each `Buffer`. - * - * * `0` is returned if `target` is the same as `buf` - * * `1` is returned if `target` should come _before_`buf` when sorted. - * * `-1` is returned if `target` should come _after_`buf` when sorted. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('BCD'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.compare(buf1)); - * // Prints: 0 - * console.log(buf1.compare(buf2)); - * // Prints: -1 - * console.log(buf1.compare(buf3)); - * // Prints: -1 - * console.log(buf2.compare(buf1)); - * // Prints: 1 - * console.log(buf2.compare(buf3)); - * // Prints: 1 - * console.log([buf1, buf2, buf3].sort(Buffer.compare)); - * // Prints: [ , , ] - * // (This result is equal to: [buf1, buf3, buf2].) - * ``` - * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); - * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); - * - * console.log(buf1.compare(buf2, 5, 9, 0, 4)); - * // Prints: 0 - * console.log(buf1.compare(buf2, 0, 6, 4)); - * // Prints: -1 - * console.log(buf1.compare(buf2, 5, 6, 5)); - * // Prints: 1 - * ``` - * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. - * @since v0.11.13 - * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. - * @param [targetStart=0] The offset within `target` at which to begin comparison. - * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). - * @param [sourceStart=0] The offset within `buf` at which to begin comparison. - * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). - */ - compare( - target: Uint8Array, - targetStart?: number, - targetEnd?: number, - sourceStart?: number, - sourceEnd?: number, - ): -1 | 0 | 1; - /** - * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. - * - * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available - * for all TypedArrays, including Node.js `Buffer`s, although it takes - * different function arguments. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create two `Buffer` instances. - * const buf1 = Buffer.allocUnsafe(26); - * const buf2 = Buffer.allocUnsafe(26).fill('!'); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. - * buf1.copy(buf2, 8, 16, 20); - * // This is equivalent to: - * // buf2.set(buf1.subarray(16, 20), 8); - * - * console.log(buf2.toString('ascii', 0, 25)); - * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! - * ``` - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` and copy data from one region to an overlapping region - * // within the same `Buffer`. - * - * const buf = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf[i] = i + 97; - * } - * - * buf.copy(buf, 0, 4, 10); - * - * console.log(buf.toString()); - * // Prints: efghijghijklmnopqrstuvwxyz - * ``` - * @since v0.1.90 - * @param target A `Buffer` or {@link Uint8Array} to copy into. - * @param [targetStart=0] The offset within `target` at which to begin writing. - * @param [sourceStart=0] The offset within `buf` from which to begin copying. - * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). - * @return The number of bytes copied. - */ - copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64BE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64LE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64LE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * This function is also available under the `writeBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64BE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * - * This function is also available under the `writeBigUint64LE` alias. - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64LE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64LE(value: bigint, offset?: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntLE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntLE - * @since v14.9.0, v12.19.0 - */ - writeUintLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntBE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntBE - * @since v14.9.0, v12.19.0 - */ - writeUintBE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than a signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a - * signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntBE(value: number, offset: number, byteLength: number): number; - /** - * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64BE(0)); - * // Prints: 4294967295n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64BE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - readBigUint64BE(offset?: number): bigint; - /** - * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64LE(0)); - * // Prints: 18446744069414584320n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64LE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - readBigUint64LE(offset?: number): bigint; - /** - * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64BE(offset?: number): bigint; - /** - * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64LE(offset?: number): bigint; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntLE(0, 6).toString(16)); - * // Prints: ab9078563412 - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntLE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntLE - * @since v14.9.0, v12.19.0 - */ - readUintLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readUIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntBE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntBE - * @since v14.9.0, v12.19.0 - */ - readUintBE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntLE(0, 6).toString(16)); - * // Prints: -546f87a9cbee - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * console.log(buf.readIntBE(1, 0).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntBE(offset: number, byteLength: number): number; - /** - * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, -2]); - * - * console.log(buf.readUInt8(0)); - * // Prints: 1 - * console.log(buf.readUInt8(1)); - * // Prints: 254 - * console.log(buf.readUInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readUInt8(offset?: number): number; - /** - * @alias Buffer.readUInt8 - * @since v14.9.0, v12.19.0 - */ - readUint8(offset?: number): number; - /** - * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16LE(0).toString(16)); - * // Prints: 3412 - * console.log(buf.readUInt16LE(1).toString(16)); - * // Prints: 5634 - * console.log(buf.readUInt16LE(2).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16LE(offset?: number): number; - /** - * @alias Buffer.readUInt16LE - * @since v14.9.0, v12.19.0 - */ - readUint16LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16BE(0).toString(16)); - * // Prints: 1234 - * console.log(buf.readUInt16BE(1).toString(16)); - * // Prints: 3456 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16BE(offset?: number): number; - /** - * @alias Buffer.readUInt16BE - * @since v14.9.0, v12.19.0 - */ - readUint16BE(offset?: number): number; - /** - * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32LE(0).toString(16)); - * // Prints: 78563412 - * console.log(buf.readUInt32LE(1).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32LE(offset?: number): number; - /** - * @alias Buffer.readUInt32LE - * @since v14.9.0, v12.19.0 - */ - readUint32LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32BE(0).toString(16)); - * // Prints: 12345678 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32BE(offset?: number): number; - /** - * @alias Buffer.readUInt32BE - * @since v14.9.0, v12.19.0 - */ - readUint32BE(offset?: number): number; - /** - * Reads a signed 8-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([-1, 5]); - * - * console.log(buf.readInt8(0)); - * // Prints: -1 - * console.log(buf.readInt8(1)); - * // Prints: 5 - * console.log(buf.readInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readInt8(offset?: number): number; - /** - * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16LE(0)); - * // Prints: 1280 - * console.log(buf.readInt16LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16LE(offset?: number): number; - /** - * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16BE(offset?: number): number; - /** - * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32LE(0)); - * // Prints: 83886080 - * console.log(buf.readInt32LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32LE(offset?: number): number; - /** - * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32BE(offset?: number): number; - /** - * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatLE(0)); - * // Prints: 1.539989614439558e-36 - * console.log(buf.readFloatLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatLE(offset?: number): number; - /** - * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatBE(0)); - * // Prints: 2.387939260590663e-38 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatBE(offset?: number): number; - /** - * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleLE(0)); - * // Prints: 5.447603722011605e-270 - * console.log(buf.readDoubleLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleLE(offset?: number): number; - /** - * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleBE(0)); - * // Prints: 8.20788039913184e-304 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleBE(offset?: number): number; - reverse(): this; - /** - * Interprets `buf` as an array of unsigned 16-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap16(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap16(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * - * One convenient use of `buf.swap16()` is to perform a fast in-place conversion - * between UTF-16 little-endian and UTF-16 big-endian: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); - * buf.swap16(); // Convert to big-endian UTF-16 text. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap16(): this; - /** - * Interprets `buf` as an array of unsigned 32-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap32(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap32(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap32(): this; - /** - * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. - * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap64(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap64(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v6.3.0 - * @return A reference to `buf`. - */ - swap64(): this; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a - * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything - * other than an unsigned 8-bit integer. - * - * This function is also available under the `writeUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt8(0x3, 0); - * buf.writeUInt8(0x4, 1); - * buf.writeUInt8(0x23, 2); - * buf.writeUInt8(0x42, 3); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeUInt8(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt8 - * @since v14.9.0, v12.19.0 - */ - writeUint8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 16-bit integer. - * - * This function is also available under the `writeUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16LE(0xdead, 0); - * buf.writeUInt16LE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16LE - * @since v14.9.0, v12.19.0 - */ - writeUint16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 16-bit integer. - * - * This function is also available under the `writeUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16BE(0xdead, 0); - * buf.writeUInt16BE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16BE - * @since v14.9.0, v12.19.0 - */ - writeUint16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 32-bit integer. - * - * This function is also available under the `writeUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32LE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32LE - * @since v14.9.0, v12.19.0 - */ - writeUint32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 32-bit integer. - * - * This function is also available under the `writeUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32BE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32BE - * @since v14.9.0, v12.19.0 - */ - writeUint32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a valid - * signed 8-bit integer. Behavior is undefined when `value` is anything other than - * a signed 8-bit integer. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt8(2, 0); - * buf.writeInt8(-2, 1); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeInt8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16LE(0x0304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16BE(0x0102, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32LE(0x05060708, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32BE(0x01020304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatLE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatBE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatBE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleLE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleBE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleBE(value: number, offset?: number): number; - /** - * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, - * the entire `buf` will be filled: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with the ASCII character 'h'. - * - * const b = Buffer.allocUnsafe(50).fill('h'); - * - * console.log(b.toString()); - * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh - * - * // Fill a buffer with empty string - * const c = Buffer.allocUnsafe(5).fill(''); - * - * console.log(c.fill('')); - * // Prints: - * ``` - * - * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or - * integer. If the resulting integer is greater than `255` (decimal), `buf` will be - * filled with `value & 255`. - * - * If the final write of a `fill()` operation falls on a multi-byte character, - * then only the bytes of that character that fit into `buf` are written: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with character that takes up two bytes in UTF-8. - * - * console.log(Buffer.allocUnsafe(5).fill('\u0222')); - * // Prints: - * ``` - * - * If `value` contains invalid characters, it is truncated; if no valid - * fill data remains, an exception is thrown: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(5); - * - * console.log(buf.fill('a')); - * // Prints: - * console.log(buf.fill('aazz', 'hex')); - * // Prints: - * console.log(buf.fill('zz', 'hex')); - * // Throws an exception. - * ``` - * @since v0.5.0 - * @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`. - * @param [offset=0] Number of bytes to skip before starting to fill `buf`. - * @param [end=buf.length] Where to stop filling `buf` (not inclusive). - * @param [encoding='utf8'] The encoding for `value` if `value` is a string. - * @return A reference to `buf`. - */ - fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; - fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this; - fill(value: string | Uint8Array | number, encoding: BufferEncoding): this; - /** - * If `value` is: - * - * * a string, `value` is interpreted according to the character encoding in `encoding`. - * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. - * To compare a partial `Buffer`, use `buf.subarray`. - * * a number, `value` will be interpreted as an unsigned 8-bit integer - * value between `0` and `255`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.indexOf('this')); - * // Prints: 0 - * console.log(buf.indexOf('is')); - * // Prints: 2 - * console.log(buf.indexOf(Buffer.from('a buffer'))); - * // Prints: 8 - * console.log(buf.indexOf(97)); - * // Prints: 8 (97 is the decimal ASCII value for 'a') - * console.log(buf.indexOf(Buffer.from('a buffer example'))); - * // Prints: -1 - * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: 8 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); - * // Prints: 4 - * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); - * // Prints: 6 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. If the result - * of coercion is `NaN` or `0`, then the entire buffer will be searched. This - * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.indexOf(99.9)); - * console.log(b.indexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN or 0. - * // Prints: 1, searching the whole buffer. - * console.log(b.indexOf('b', undefined)); - * console.log(b.indexOf('b', {})); - * console.log(b.indexOf('b', null)); - * console.log(b.indexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer` and `byteOffset` is less - * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. - * @since v1.5.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Identical to `buf.indexOf()`, except the last occurrence of `value` is found - * rather than the first occurrence. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this buffer is a buffer'); - * - * console.log(buf.lastIndexOf('this')); - * // Prints: 0 - * console.log(buf.lastIndexOf('buffer')); - * // Prints: 17 - * console.log(buf.lastIndexOf(Buffer.from('buffer'))); - * // Prints: 17 - * console.log(buf.lastIndexOf(97)); - * // Prints: 15 (97 is the decimal ASCII value for 'a') - * console.log(buf.lastIndexOf(Buffer.from('yolo'))); - * // Prints: -1 - * console.log(buf.lastIndexOf('buffer', 5)); - * // Prints: 5 - * console.log(buf.lastIndexOf('buffer', 4)); - * // Prints: -1 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); - * // Prints: 6 - * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); - * // Prints: 4 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. Any arguments - * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. - * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.lastIndexOf(99.9)); - * console.log(b.lastIndexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN. - * // Prints: 1, searching the whole buffer. - * console.log(b.lastIndexOf('b', undefined)); - * console.log(b.lastIndexOf('b', {})); - * - * // Passing a byteOffset that coerces to 0. - * // Prints: -1, equivalent to passing 0. - * console.log(b.lastIndexOf('b', null)); - * console.log(b.lastIndexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. - * @since v6.0.0 - * @param value What to search for. - * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Equivalent to `buf.indexOf() !== -1`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.includes('this')); - * // Prints: true - * console.log(buf.includes('is')); - * // Prints: true - * console.log(buf.includes(Buffer.from('a buffer'))); - * // Prints: true - * console.log(buf.includes(97)); - * // Prints: true (97 is the decimal ASCII value for 'a') - * console.log(buf.includes(Buffer.from('a buffer example'))); - * // Prints: false - * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: true - * console.log(buf.includes('this', 4)); - * // Prints: false - * ``` - * @since v5.3.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is its encoding. - * @return `true` if `value` was found in `buf`, `false` otherwise. - */ - includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; - includes(value: string | number | Buffer, encoding: BufferEncoding): boolean; - } - var Buffer: BufferConstructor; - /** - * Decodes a string of Base64-encoded data into bytes, and encodes those bytes - * into a string using Latin-1 (ISO-8859-1). - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `Buffer.from(data, 'base64')` instead. - * @param data The Base64-encoded input string. - */ - function atob(data: string): string; - /** - * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes - * into a string using Base64. - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `buf.toString('base64')` instead. - * @param data An ASCII (Latin1) string. - */ - function btoa(data: string): string; - interface Blob extends _Blob {} - /** - * `Blob` class is a global reference for `import { Blob } from 'node:node:buffer'` - * https://nodejs.org/api/buffer.html#class-blob - * @since v18.0.0 - */ - var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T - : typeof import("buffer").Blob; - interface File extends _File {} - /** - * `File` class is a global reference for `import { File } from 'node:node:buffer'` - * https://nodejs.org/api/buffer.html#class-file - * @since v20.0.0 - */ - var File: typeof globalThis extends { onmessage: any; File: infer T } ? T - : typeof import("buffer").File; - } -} -declare module "node:buffer" { - export * from "buffer"; -} diff --git a/mcp-server/node_modules/@types/node/child_process.d.ts b/mcp-server/node_modules/@types/node/child_process.d.ts deleted file mode 100644 index 5089071..0000000 --- a/mcp-server/node_modules/@types/node/child_process.d.ts +++ /dev/null @@ -1,1475 +0,0 @@ -/** - * The `node:child_process` module provides the ability to spawn subprocesses in - * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability - * is primarily provided by the {@link spawn} function: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * By default, pipes for `stdin`, `stdout`, and `stderr` are established between - * the parent Node.js process and the spawned subprocess. These pipes have - * limited (and platform-specific) capacity. If the subprocess writes to - * stdout in excess of that limit without the output being captured, the - * subprocess blocks waiting for the pipe buffer to accept more data. This is - * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed. - * - * The command lookup is performed using the `options.env.PATH` environment - * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is - * used. If `options.env` is set without `PATH`, lookup on Unix is performed - * on a default search path search of `/usr/bin:/bin` (see your operating system's - * manual for execvpe/execvp), on Windows the current processes environment - * variable `PATH` is used. - * - * On Windows, environment variables are case-insensitive. Node.js - * lexicographically sorts the `env` keys and uses the first one that - * case-insensitively matches. Only first (in lexicographic order) entry will be - * passed to the subprocess. This might lead to issues on Windows when passing - * objects to the `env` option that have multiple variants of the same key, such as `PATH` and `Path`. - * - * The {@link spawn} method spawns the child process asynchronously, - * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks - * the event loop until the spawned process either exits or is terminated. - * - * For convenience, the `node:child_process` module provides a handful of - * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on - * top of {@link spawn} or {@link spawnSync}. - * - * * {@link exec}: spawns a shell and runs a command within that - * shell, passing the `stdout` and `stderr` to a callback function when - * complete. - * * {@link execFile}: similar to {@link exec} except - * that it spawns the command directly without first spawning a shell by - * default. - * * {@link fork}: spawns a new Node.js process and invokes a - * specified module with an IPC communication channel established that allows - * sending messages between parent and child. - * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. - * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. - * - * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, - * the synchronous methods can have significant impact on performance due to - * stalling the event loop while spawned processes complete. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/child_process.js) - */ -declare module "child_process" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable, EventEmitter } from "node:events"; - import * as dgram from "node:dgram"; - import * as net from "node:net"; - import { Readable, Stream, Writable } from "node:stream"; - import { URL } from "node:url"; - type Serializable = string | object | number | boolean | bigint; - type SendHandle = net.Socket | net.Server | dgram.Socket | undefined; - /** - * Instances of the `ChildProcess` represent spawned child processes. - * - * Instances of `ChildProcess` are not intended to be created directly. Rather, - * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create - * instances of `ChildProcess`. - * @since v2.2.0 - */ - class ChildProcess extends EventEmitter { - /** - * A `Writable Stream` that represents the child process's `stdin`. - * - * If a child process waits to read all of its input, the child will not continue - * until this stream has been closed via `end()`. - * - * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will - * refer to the same value. - * - * The `subprocess.stdin` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdin: Writable | null; - /** - * A `Readable Stream` that represents the child process's `stdout`. - * - * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will - * refer to the same value. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn('ls'); - * - * subprocess.stdout.on('data', (data) => { - * console.log(`Received chunk ${data}`); - * }); - * ``` - * - * The `subprocess.stdout` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdout: Readable | null; - /** - * A `Readable Stream` that represents the child process's `stderr`. - * - * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will - * refer to the same value. - * - * The `subprocess.stderr` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stderr: Readable | null; - /** - * The `subprocess.channel` property is a reference to the child's IPC channel. If - * no IPC channel exists, this property is `undefined`. - * @since v7.1.0 - */ - readonly channel?: Control | null; - /** - * A sparse array of pipes to the child process, corresponding with positions in - * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and `subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, - * respectively. - * - * In the following example, only the child's fd `1` (stdout) is configured as a - * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values - * in the array are `null`. - * - * ```js - * import assert from 'node:assert'; - * import fs from 'node:fs'; - * import child_process from 'node:child_process'; - * - * const subprocess = child_process.spawn('ls', { - * stdio: [ - * 0, // Use parent's stdin for child. - * 'pipe', // Pipe child's stdout to parent. - * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. - * ], - * }); - * - * assert.strictEqual(subprocess.stdio[0], null); - * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); - * - * assert(subprocess.stdout); - * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); - * - * assert.strictEqual(subprocess.stdio[2], null); - * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); - * ``` - * - * The `subprocess.stdio` property can be `undefined` if the child process could - * not be successfully spawned. - * @since v0.7.10 - */ - readonly stdio: [ - Writable | null, - // stdin - Readable | null, - // stdout - Readable | null, - // stderr - Readable | Writable | null | undefined, - // extra - Readable | Writable | null | undefined, // extra - ]; - /** - * The `subprocess.killed` property indicates whether the child process - * successfully received a signal from `subprocess.kill()`. The `killed` property - * does not indicate that the child process has been terminated. - * @since v0.5.10 - */ - readonly killed: boolean; - /** - * Returns the process identifier (PID) of the child process. If the child process - * fails to spawn due to errors, then the value is `undefined` and `error` is - * emitted. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * console.log(`Spawned child pid: ${grep.pid}`); - * grep.stdin.end(); - * ``` - * @since v0.1.90 - */ - readonly pid?: number | undefined; - /** - * The `subprocess.connected` property indicates whether it is still possible to - * send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages. - * @since v0.7.2 - */ - readonly connected: boolean; - /** - * The `subprocess.exitCode` property indicates the exit code of the child process. - * If the child process is still running, the field will be `null`. - */ - readonly exitCode: number | null; - /** - * The `subprocess.signalCode` property indicates the signal received by - * the child process if any, else `null`. - */ - readonly signalCode: NodeJS.Signals | null; - /** - * The `subprocess.spawnargs` property represents the full list of command-line - * arguments the child process was launched with. - */ - readonly spawnargs: string[]; - /** - * The `subprocess.spawnfile` property indicates the executable file name of - * the child process that is launched. - * - * For {@link fork}, its value will be equal to `process.execPath`. - * For {@link spawn}, its value will be the name of - * the executable file. - * For {@link exec}, its value will be the name of the shell - * in which the child process is launched. - */ - readonly spawnfile: string; - /** - * The `subprocess.kill()` method sends a signal to the child process. If no - * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function - * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * grep.on('close', (code, signal) => { - * console.log( - * `child process terminated due to receipt of signal ${signal}`); - * }); - * - * // Send SIGHUP to process. - * grep.kill('SIGHUP'); - * ``` - * - * The `ChildProcess` object may emit an `'error'` event if the signal - * cannot be delivered. Sending a signal to a child process that has already exited - * is not an error but may have unforeseen consequences. Specifically, if the - * process identifier (PID) has been reassigned to another process, the signal will - * be delivered to that process instead which can have unexpected results. - * - * While the function is called `kill`, the signal delivered to the child process - * may not actually terminate the process. - * - * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. - * - * On Windows, where POSIX signals do not exist, the `signal` argument will be - * ignored, and the process will be killed forcefully and abruptly (similar to `'SIGKILL'`). - * See `Signal Events` for more details. - * - * On Linux, child processes of child processes will not be terminated - * when attempting to kill their parent. This is likely to happen when running a - * new process in a shell or with the use of the `shell` option of `ChildProcess`: - * - * ```js - * 'use strict'; - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn( - * 'sh', - * [ - * '-c', - * `node -e "setInterval(() => { - * console.log(process.pid, 'is alive') - * }, 500);"`, - * ], { - * stdio: ['inherit', 'inherit', 'inherit'], - * }, - * ); - * - * setTimeout(() => { - * subprocess.kill(); // Does not terminate the Node.js process in the shell. - * }, 2000); - * ``` - * @since v0.1.90 - */ - kill(signal?: NodeJS.Signals | number): boolean; - /** - * Calls {@link ChildProcess.kill} with `'SIGTERM'`. - * @since v20.5.0 - */ - [Symbol.dispose](): void; - /** - * When an IPC channel has been established between the parent and child ( - * i.e. when using {@link fork}), the `subprocess.send()` method can - * be used to send messages to the child process. When the child process is a - * Node.js instance, these messages can be received via the `'message'` event. - * - * The message goes through serialization and parsing. The resulting - * message might not be the same as what is originally sent. - * - * For example, in the parent script: - * - * ```js - * import cp from 'node:child_process'; - * const n = cp.fork(`${__dirname}/sub.js`); - * - * n.on('message', (m) => { - * console.log('PARENT got message:', m); - * }); - * - * // Causes the child to print: CHILD got message: { hello: 'world' } - * n.send({ hello: 'world' }); - * ``` - * - * And then the child script, `'sub.js'` might look like this: - * - * ```js - * process.on('message', (m) => { - * console.log('CHILD got message:', m); - * }); - * - * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } - * process.send({ foo: 'bar', baz: NaN }); - * ``` - * - * Child Node.js processes will have a `process.send()` method of their own - * that allows the child to send messages back to the parent. - * - * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages - * containing a `NODE_` prefix in the `cmd` property are reserved for use within - * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the `'internalMessage'` event and are consumed internally by Node.js. - * Applications should avoid using such messages or listening for `'internalMessage'` events as it is subject to change without notice. - * - * The optional `sendHandle` argument that may be passed to `subprocess.send()` is - * for passing a TCP server or socket object to the child process. The child will - * receive the object as the second argument passed to the callback function - * registered on the `'message'` event. Any data that is received and buffered in - * the socket will not be sent to the child. Sending IPC sockets is not supported on Windows. - * - * The optional `callback` is a function that is invoked after the message is - * sent but before the child may have received it. The function is called with a - * single argument: `null` on success, or an `Error` object on failure. - * - * If no `callback` function is provided and the message cannot be sent, an `'error'` event will be emitted by the `ChildProcess` object. This can - * happen, for instance, when the child process has already exited. - * - * `subprocess.send()` will return `false` if the channel has closed or when the - * backlog of unsent messages exceeds a threshold that makes it unwise to send - * more. Otherwise, the method returns `true`. The `callback` function can be - * used to implement flow control. - * - * #### Example: sending a server object - * - * The `sendHandle` argument can be used, for instance, to pass the handle of - * a TCP server object to the child process as illustrated in the example below: - * - * ```js - * import child_process from 'node:child_process'; - * const subprocess = child_process.fork('subprocess.js'); - * - * // Open up the server object and send the handle. - * import net from 'node:net'; - * const server = net.createServer(); - * server.on('connection', (socket) => { - * socket.end('handled by parent'); - * }); - * server.listen(1337, () => { - * subprocess.send('server', server); - * }); - * ``` - * - * The child would then receive the server object as: - * - * ```js - * process.on('message', (m, server) => { - * if (m === 'server') { - * server.on('connection', (socket) => { - * socket.end('handled by child'); - * }); - * } - * }); - * ``` - * - * Once the server is now shared between the parent and child, some connections - * can be handled by the parent and some by the child. - * - * While the example above uses a server created using the `node:net` module, `node:dgram` module servers use exactly the same workflow with the exceptions of - * listening on a `'message'` event instead of `'connection'` and using `server.bind()` instead of `server.listen()`. This is, however, only - * supported on Unix platforms. - * - * #### Example: sending a socket object - * - * Similarly, the `sendHandler` argument can be used to pass the handle of a - * socket to the child process. The example below spawns two children that each - * handle connections with "normal" or "special" priority: - * - * ```js - * import { fork } from 'node:child_process'; - * const normal = fork('subprocess.js', ['normal']); - * const special = fork('subprocess.js', ['special']); - * - * // Open up the server and send sockets to child. Use pauseOnConnect to prevent - * // the sockets from being read before they are sent to the child process. - * import net from 'node:net'; - * const server = net.createServer({ pauseOnConnect: true }); - * server.on('connection', (socket) => { - * - * // If this is special priority... - * if (socket.remoteAddress === '74.125.127.100') { - * special.send('socket', socket); - * return; - * } - * // This is normal priority. - * normal.send('socket', socket); - * }); - * server.listen(1337); - * ``` - * - * The `subprocess.js` would receive the socket handle as the second argument - * passed to the event callback function: - * - * ```js - * process.on('message', (m, socket) => { - * if (m === 'socket') { - * if (socket) { - * // Check that the client socket exists. - * // It is possible for the socket to be closed between the time it is - * // sent and the time it is received in the child process. - * socket.end(`Request handled with ${process.argv[2]} priority`); - * } - * } - * }); - * ``` - * - * Do not use `.maxConnections` on a socket that has been passed to a subprocess. - * The parent cannot track when the socket is destroyed. - * - * Any `'message'` handlers in the subprocess should verify that `socket` exists, - * as the connection may have been closed during the time it takes to send the - * connection to the child. - * @since v0.5.9 - * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v20.x/api/dgram.html#class-dgramsocket) object. - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send(message: Serializable, callback?: (error: Error | null) => void): boolean; - send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; - send( - message: Serializable, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * Closes the IPC channel between parent and child, allowing the child to exit - * gracefully once there are no other connections keeping it alive. After calling - * this method the `subprocess.connected` and `process.connected` properties in - * both the parent and child (respectively) will be set to `false`, and it will be - * no longer possible to pass messages between the processes. - * - * The `'disconnect'` event will be emitted when there are no messages in the - * process of being received. This will most often be triggered immediately after - * calling `subprocess.disconnect()`. - * - * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked - * within the child process to close the IPC channel as well. - * @since v0.7.2 - */ - disconnect(): void; - /** - * By default, the parent will wait for the detached child to exit. To prevent the - * parent from waiting for a given `subprocess` to exit, use the `subprocess.unref()` method. Doing so will cause the parent's event loop to not - * include the child in its reference count, allowing the parent to exit - * independently of the child, unless there is an established IPC channel between - * the child and the parent. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * ``` - * @since v0.7.10 - */ - unref(): void; - /** - * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will - * restore the removed reference count for the child process, forcing the parent - * to wait for the child to exit before exiting itself. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * subprocess.ref(); - * ``` - * @since v0.7.10 - */ - ref(): void; - /** - * events.EventEmitter - * 1. close - * 2. disconnect - * 3. error - * 4. exit - * 5. message - * 6. spawn - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - addListener(event: "spawn", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean; - emit(event: "spawn", listener: () => void): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - on(event: "spawn", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - once(event: "spawn", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependListener(event: "spawn", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "close", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "exit", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependOnceListener(event: "spawn", listener: () => void): this; - } - // return this object when stdio option is undefined or not specified - interface ChildProcessWithoutNullStreams extends ChildProcess { - stdin: Writable; - stdout: Readable; - stderr: Readable; - readonly stdio: [ - Writable, - Readable, - Readable, - // stderr - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - // return this object when stdio option is a tuple of 3 - interface ChildProcessByStdio - extends ChildProcess - { - stdin: I; - stdout: O; - stderr: E; - readonly stdio: [ - I, - O, - E, - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - interface Control extends EventEmitter { - ref(): void; - unref(): void; - } - interface MessageOptions { - keepOpen?: boolean | undefined; - } - type IOType = "overlapped" | "pipe" | "ignore" | "inherit"; - type StdioOptions = IOType | Array; - type SerializationType = "json" | "advanced"; - interface MessagingOptions extends Abortable { - /** - * Specify the kind of serialization used for sending messages between processes. - * @default 'json' - */ - serialization?: SerializationType | undefined; - /** - * The signal value to be used when the spawned process will be killed by the abort signal. - * @default 'SIGTERM' - */ - killSignal?: NodeJS.Signals | number | undefined; - /** - * In milliseconds the maximum amount of time the process is allowed to run. - */ - timeout?: number | undefined; - } - interface ProcessEnvOptions { - uid?: number | undefined; - gid?: number | undefined; - cwd?: string | URL | undefined; - env?: NodeJS.ProcessEnv | undefined; - } - interface CommonOptions extends ProcessEnvOptions { - /** - * @default false - */ - windowsHide?: boolean | undefined; - /** - * @default 0 - */ - timeout?: number | undefined; - } - interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { - argv0?: string | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - shell?: boolean | string | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - interface SpawnOptions extends CommonSpawnOptions { - detached?: boolean | undefined; - } - interface SpawnOptionsWithoutStdio extends SpawnOptions { - stdio?: StdioPipeNamed | StdioPipe[] | undefined; - } - type StdioNull = "inherit" | "ignore" | Stream; - type StdioPipeNamed = "pipe" | "overlapped"; - type StdioPipe = undefined | null | StdioPipeNamed; - interface SpawnOptionsWithStdioTuple< - Stdin extends StdioNull | StdioPipe, - Stdout extends StdioNull | StdioPipe, - Stderr extends StdioNull | StdioPipe, - > extends SpawnOptions { - stdio: [Stdin, Stdout, Stderr]; - } - /** - * The `child_process.spawn()` method spawns a new process using the given `command`, with command-line arguments in `args`. If omitted, `args` defaults - * to an empty array. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * A third argument may be used to specify additional options, with these defaults: - * - * ```js - * const defaults = { - * cwd: undefined, - * env: process.env, - * }; - * ``` - * - * Use `cwd` to specify the working directory from which the process is spawned. - * If not given, the default is to inherit the current working directory. If given, - * but the path does not exist, the child process emits an `ENOENT` error - * and exits immediately. `ENOENT` is also emitted when the command - * does not exist. - * - * Use `env` to specify environment variables that will be visible to the new - * process, the default is `process.env`. - * - * `undefined` values in `env` will be ignored. - * - * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the - * exit code: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * Example: A very elaborate way to run `ps ax | grep ssh` - * - * ```js - * import { spawn } from 'node:child_process'; - * const ps = spawn('ps', ['ax']); - * const grep = spawn('grep', ['ssh']); - * - * ps.stdout.on('data', (data) => { - * grep.stdin.write(data); - * }); - * - * ps.stderr.on('data', (data) => { - * console.error(`ps stderr: ${data}`); - * }); - * - * ps.on('close', (code) => { - * if (code !== 0) { - * console.log(`ps process exited with code ${code}`); - * } - * grep.stdin.end(); - * }); - * - * grep.stdout.on('data', (data) => { - * console.log(data.toString()); - * }); - * - * grep.stderr.on('data', (data) => { - * console.error(`grep stderr: ${data}`); - * }); - * - * grep.on('close', (code) => { - * if (code !== 0) { - * console.log(`grep process exited with code ${code}`); - * } - * }); - * ``` - * - * Example of checking for failed `spawn`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const subprocess = spawn('bad_command'); - * - * subprocess.on('error', (err) => { - * console.error('Failed to start subprocess.'); - * }); - * ``` - * - * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process - * title while others (Windows, SunOS) will use `command`. - * - * Node.js overwrites `argv[0]` with `process.execPath` on startup, so `process.argv[0]` in a Node.js child process will not match the `argv0` parameter passed to `spawn` from the parent. Retrieve - * it with the `process.argv0` property instead. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const grep = spawn('grep', ['ssh'], { signal }); - * grep.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * ``` - * @since v0.1.90 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptions): ChildProcess; - // overloads of spawn with 'args' - function spawn( - command: string, - args?: readonly string[], - options?: SpawnOptionsWithoutStdio, - ): ChildProcessWithoutNullStreams; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; - interface ExecOptions extends CommonOptions { - shell?: string | undefined; - signal?: AbortSignal | undefined; - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - encoding?: string | null | undefined; - } - interface ExecOptionsWithStringEncoding extends ExecOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecOptionsWithBufferEncoding extends ExecOptions { - encoding: "buffer" | null; // specify `null`. - } - // TODO: Just Plain Wrong™ (see also nodejs/node#57392) - interface ExecException extends Error { - cmd?: string; - killed?: boolean; - code?: number; - signal?: NodeJS.Signals; - stdout?: string; - stderr?: string; - } - /** - * Spawns a shell then executes the `command` within that shell, buffering any - * generated output. The `command` string passed to the exec function is processed - * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) - * need to be dealt with accordingly: - * - * ```js - * import { exec } from 'node:child_process'; - * - * exec('"/path/to/test file/test.sh" arg1 arg2'); - * // Double quotes are used so that the space in the path is not interpreted as - * // a delimiter of multiple arguments. - * - * exec('echo "The \\$HOME variable is $HOME"'); - * // The $HOME variable is escaped in the first instance, but not in the second. - * ``` - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * - * If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of `Error`. The - * `error.code` property will be - * the exit code of the process. By convention, any exit code other than `0` indicates an error. `error.signal` will be the signal that terminated the - * process. - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * ```js - * import { exec } from 'node:child_process'; - * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { - * if (error) { - * console.error(`exec error: ${error}`); - * return; - * } - * console.log(`stdout: ${stdout}`); - * console.error(`stderr: ${stderr}`); - * }); - * ``` - * - * If `timeout` is greater than `0`, the parent will send the signal - * identified by the `killSignal` property (the default is `'SIGTERM'`) if the - * child runs longer than `timeout` milliseconds. - * - * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace - * the existing process and uses a shell to execute the command. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * import child_process from 'node:child_process'; - * const exec = util.promisify(child_process.exec); - * - * async function lsExample() { - * const { stdout, stderr } = await exec('ls'); - * console.log('stdout:', stdout); - * console.error('stderr:', stderr); - * } - * lsExample(); - * ``` - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { exec } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = exec('grep ssh', { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.90 - * @param command The command to run, with space-separated arguments. - * @param callback called with the output when process terminates. - */ - function exec( - command: string, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function exec( - command: string, - options: ExecOptionsWithBufferEncoding, - callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function exec( - command: string, - options: ExecOptionsWithStringEncoding, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function exec( - command: string, - options: ExecOptions | undefined | null, - callback?: ( - error: ExecException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void, - ): ChildProcess; - interface PromiseWithChild extends Promise { - child: ChildProcess; - } - namespace exec { - function __promisify__(command: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ExecFileOptions extends CommonOptions, Abortable { - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - windowsVerbatimArguments?: boolean | undefined; - shell?: boolean | string | undefined; - signal?: AbortSignal | undefined; - encoding?: string | null | undefined; - } - interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { - encoding: "buffer" | null; - } - /** @deprecated Use `ExecFileOptions` instead. */ - interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {} - // TODO: execFile exceptions can take many forms... this accurately describes none of them - type ExecFileException = - & Omit - & Omit - & { code?: string | number | null }; - /** - * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified - * executable `file` is spawned directly as a new process making it slightly more - * efficient than {@link exec}. - * - * The same options as {@link exec} are supported. Since a shell is - * not spawned, behaviors such as I/O redirection and file globbing are not - * supported. - * - * ```js - * import { execFile } from 'node:child_process'; - * const child = execFile('node', ['--version'], (error, stdout, stderr) => { - * if (error) { - * throw error; - * } - * console.log(stdout); - * }); - * ``` - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * const execFile = util.promisify(require('node:child_process').execFile); - * async function getVersion() { - * const { stdout } = await execFile('node', ['--version']); - * console.log(stdout); - * } - * getVersion(); - * ``` - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { execFile } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = execFile('node', ['--version'], { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.91 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @param callback Called with the output when process terminates. - */ - // no `options` definitely means stdout/stderr are `string`. - function execFile( - file: string, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function execFile( - file: string, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function execFile( - file: string, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function execFile( - file: string, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - namespace execFile { - function __promisify__(file: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { - execPath?: string | undefined; - execArgv?: string[] | undefined; - silent?: boolean | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - detached?: boolean | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - /** - * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. - * Like {@link spawn}, a `ChildProcess` object is returned. The - * returned `ChildProcess` will have an additional communication channel - * built-in that allows messages to be passed back and forth between the parent and - * child. See `subprocess.send()` for details. - * - * Keep in mind that spawned Node.js child processes are - * independent of the parent with exception of the IPC communication channel - * that is established between the two. Each process has its own memory, with - * their own V8 instances. Because of the additional resource allocations - * required, spawning a large number of child Node.js processes is not - * recommended. - * - * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the `options` object allows for an alternative - * execution path to be used. - * - * Node.js processes launched with a custom `execPath` will communicate with the - * parent process using the file descriptor (fd) identified using the - * environment variable `NODE_CHANNEL_FD` on the child process. - * - * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the - * current process. - * - * The `shell` option available in {@link spawn} is not supported by `child_process.fork()` and will be ignored if set. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * if (process.argv[2] === 'child') { - * setTimeout(() => { - * console.log(`Hello from ${process.argv[2]}!`); - * }, 1_000); - * } else { - * import { fork } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = fork(__filename, ['child'], { signal }); - * child.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * } - * ``` - * @since v0.5.0 - * @param modulePath The module to run in the child. - * @param args List of string arguments. - */ - function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess; - function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess; - interface SpawnSyncOptions extends CommonSpawnOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { - encoding: BufferEncoding; - } - interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { - encoding?: "buffer" | null | undefined; - } - interface SpawnSyncReturns { - pid: number; - output: Array; - stdout: T; - stderr: T; - status: number | null; - signal: NodeJS.Signals | null; - error?: Error; - } - /** - * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the process intercepts and handles the `SIGTERM` signal - * and doesn't exit, the parent process will wait until the child process has - * exited. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawnSync(command: string): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithStringEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithBufferEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args?: readonly string[], - options?: SpawnSyncOptions, - ): SpawnSyncReturns; - interface CommonExecOptions extends CommonOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - /** - * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - killSignal?: NodeJS.Signals | number | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface ExecSyncOptions extends CommonExecOptions { - shell?: string | undefined; - } - interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { - encoding: BufferEncoding; - } - interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { - encoding?: "buffer" | null | undefined; - } - /** - * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process - * has exited. - * - * If the process times out or has a non-zero exit code, this method will throw. - * The `Error` object will contain the entire result from {@link spawnSync}. - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @return The stdout from the command. - */ - function execSync(command: string): NonSharedBuffer; - function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; - function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execSync(command: string, options?: ExecSyncOptions): string | NonSharedBuffer; - interface ExecFileSyncOptions extends CommonExecOptions { - shell?: boolean | string | undefined; - } - interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { - encoding: BufferEncoding; - } - interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { - encoding?: "buffer" | null | undefined; // specify `null`. - } - /** - * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not - * return until the child process has fully closed. When a timeout has been - * encountered and `killSignal` is sent, the method won't return until the process - * has completely exited. - * - * If the child process intercepts and handles the `SIGTERM` signal and - * does not exit, the parent process will still wait until the child process has - * exited. - * - * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @return The stdout from the command. - */ - function execFileSync(file: string): NonSharedBuffer; - function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execFileSync(file: string, options?: ExecFileSyncOptions): string | NonSharedBuffer; - function execFileSync(file: string, args: readonly string[]): NonSharedBuffer; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithStringEncoding, - ): string; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithBufferEncoding, - ): NonSharedBuffer; - function execFileSync( - file: string, - args?: readonly string[], - options?: ExecFileSyncOptions, - ): string | NonSharedBuffer; -} -declare module "node:child_process" { - export * from "child_process"; -} diff --git a/mcp-server/node_modules/@types/node/cluster.d.ts b/mcp-server/node_modules/@types/node/cluster.d.ts deleted file mode 100644 index 42b21bf..0000000 --- a/mcp-server/node_modules/@types/node/cluster.d.ts +++ /dev/null @@ -1,577 +0,0 @@ -/** - * Clusters of Node.js processes can be used to run multiple instances of Node.js - * that can distribute workloads among their application threads. When process isolation - * is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html) - * module instead, which allows running multiple application threads within a single Node.js instance. - * - * The cluster module allows easy creation of child processes that all share - * server ports. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('exit', (worker, code, signal) => { - * console.log(`worker ${worker.process.pid} died`); - * }); - * } else { - * // Workers can share any TCP connection - * // In this case it is an HTTP server - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * - * console.log(`Worker ${process.pid} started`); - * } - * ``` - * - * Running Node.js will now share port 8000 between the workers: - * - * ```console - * $ node server.js - * Primary 3596 is running - * Worker 4324 started - * Worker 4520 started - * Worker 6056 started - * Worker 5644 started - * ``` - * - * On Windows, it is not yet possible to set up a named pipe server in a worker. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/cluster.js) - */ -declare module "cluster" { - import * as child from "node:child_process"; - import EventEmitter = require("node:events"); - import * as net from "node:net"; - type SerializationType = "json" | "advanced"; - export interface ClusterSettings { - /** - * List of string arguments passed to the Node.js executable. - * @default process.execArgv - */ - execArgv?: string[] | undefined; - /** - * File path to worker file. - * @default process.argv[1] - */ - exec?: string | undefined; - /** - * String arguments passed to worker. - * @default process.argv.slice(2) - */ - args?: readonly string[] | undefined; - /** - * Whether or not to send output to parent's stdio. - * @default false - */ - silent?: boolean | undefined; - /** - * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must - * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processspawncommand-args-options)'s - * [`stdio`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#optionsstdio). - */ - stdio?: any[] | undefined; - /** - * Sets the user identity of the process. (See [`setuid(2)`](https://man7.org/linux/man-pages/man2/setuid.2.html).) - */ - uid?: number | undefined; - /** - * Sets the group identity of the process. (See [`setgid(2)`](https://man7.org/linux/man-pages/man2/setgid.2.html).) - */ - gid?: number | undefined; - /** - * Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. - * By default each worker gets its own port, incremented from the primary's `process.debugPort`. - */ - inspectPort?: number | (() => number) | undefined; - /** - * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`. - * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#advanced-serialization) for more details. - * @default false - */ - serialization?: SerializationType | undefined; - /** - * Current working directory of the worker process. - * @default undefined (inherits from parent process) - */ - cwd?: string | undefined; - /** - * Hide the forked processes console window that would normally be created on Windows systems. - * @default false - */ - windowsHide?: boolean | undefined; - } - export interface Address { - address: string; - port: number; - /** - * The `addressType` is one of: - * - * * `4` (TCPv4) - * * `6` (TCPv6) - * * `-1` (Unix domain socket) - * * `'udp4'` or `'udp6'` (UDPv4 or UDPv6) - */ - addressType: 4 | 6 | -1 | "udp4" | "udp6"; - } - /** - * A `Worker` object contains all public information and method about a worker. - * In the primary it can be obtained using `cluster.workers`. In a worker - * it can be obtained using `cluster.worker`. - * @since v0.7.0 - */ - export class Worker extends EventEmitter { - /** - * Each new worker is given its own unique id, this id is stored in the `id`. - * - * While a worker is alive, this is the key that indexes it in `cluster.workers`. - * @since v0.8.0 - */ - id: number; - /** - * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object - * from this function is stored as `.process`. In a worker, the global `process` is stored. - * - * See: [Child Process module](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options). - * - * Workers will call `process.exit(0)` if the `'disconnect'` event occurs - * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against - * accidental disconnection. - * @since v0.7.0 - */ - process: child.ChildProcess; - /** - * Send a message to a worker or primary, optionally with a handle. - * - * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). - * - * In a worker, this sends a message to the primary. It is identical to `process.send()`. - * - * This example will echo back all messages from the primary: - * - * ```js - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * worker.send('hi there'); - * - * } else if (cluster.isWorker) { - * process.on('message', (msg) => { - * process.send(msg); - * }); - * } - * ``` - * @since v0.7.0 - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. - */ - send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - callback?: (error: Error | null) => void, - ): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - options?: child.MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * This function will kill the worker. In the primary worker, it does this by - * disconnecting the `worker.process`, and once disconnected, killing with `signal`. In the worker, it does it by killing the process with `signal`. - * - * The `kill()` function kills the worker process without waiting for a graceful - * disconnect, it has the same behavior as `worker.process.kill()`. - * - * This method is aliased as `worker.destroy()` for backwards compatibility. - * - * In a worker, `process.kill()` exists, but it is not this function; - * it is [`kill()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processkillpid-signal). - * @since v0.9.12 - * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. - */ - kill(signal?: string): void; - destroy(signal?: string): void; - /** - * In a worker, this function will close all servers, wait for the `'close'` event - * on those servers, and then disconnect the IPC channel. - * - * In the primary, an internal message is sent to the worker causing it to call `.disconnect()` on itself. - * - * Causes `.exitedAfterDisconnect` to be set. - * - * After a server is closed, it will no longer accept new connections, - * but connections may be accepted by any other listening worker. Existing - * connections will be allowed to close as usual. When no more connections exist, - * see `server.close()`, the IPC channel to the worker will close allowing it - * to die gracefully. - * - * The above applies _only_ to server connections, client connections are not - * automatically closed by workers, and disconnect does not wait for them to close - * before exiting. - * - * In a worker, `process.disconnect` exists, but it is not this function; - * it is `disconnect()`. - * - * Because long living server connections may block workers from disconnecting, it - * may be useful to send a message, so application specific actions may be taken to - * close them. It also may be useful to implement a timeout, killing a worker if - * the `'disconnect'` event has not been emitted after some time. - * - * ```js - * import net from 'node:net'; - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * let timeout; - * - * worker.on('listening', (address) => { - * worker.send('shutdown'); - * worker.disconnect(); - * timeout = setTimeout(() => { - * worker.kill(); - * }, 2000); - * }); - * - * worker.on('disconnect', () => { - * clearTimeout(timeout); - * }); - * - * } else if (cluster.isWorker) { - * const server = net.createServer((socket) => { - * // Connections never end - * }); - * - * server.listen(8000); - * - * process.on('message', (msg) => { - * if (msg === 'shutdown') { - * // Initiate graceful close of any connections to server - * } - * }); - * } - * ``` - * @since v0.7.7 - * @return A reference to `worker`. - */ - disconnect(): this; - /** - * This function returns `true` if the worker is connected to its primary via its - * IPC channel, `false` otherwise. A worker is connected to its primary after it - * has been created. It is disconnected after the `'disconnect'` event is emitted. - * @since v0.11.14 - */ - isConnected(): boolean; - /** - * This function returns `true` if the worker's process has terminated (either - * because of exiting or being signaled). Otherwise, it returns `false`. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('fork', (worker) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * - * cluster.on('exit', (worker, code, signal) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * } else { - * // Workers can share any TCP connection. In this case, it is an HTTP server. - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end(`Current process\n ${process.pid}`); - * process.kill(process.pid); - * }).listen(8000); - * } - * ``` - * @since v0.11.14 - */ - isDead(): boolean; - /** - * This property is `true` if the worker exited due to `.disconnect()`. - * If the worker exited any other way, it is `false`. If the - * worker has not exited, it is `undefined`. - * - * The boolean `worker.exitedAfterDisconnect` allows distinguishing between - * voluntary and accidental exit, the primary may choose not to respawn a worker - * based on this value. - * - * ```js - * cluster.on('exit', (worker, code, signal) => { - * if (worker.exitedAfterDisconnect === true) { - * console.log('Oh, it was just voluntary – no need to worry'); - * } - * }); - * - * // kill worker - * worker.kill(); - * ``` - * @since v6.0.0 - */ - exitedAfterDisconnect: boolean; - /** - * events.EventEmitter - * 1. disconnect - * 2. error - * 3. exit - * 4. listening - * 5. message - * 6. online - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "exit", listener: (code: number, signal: string) => void): this; - addListener(event: "listening", listener: (address: Address) => void): this; - addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "exit", code: number, signal: string): boolean; - emit(event: "listening", address: Address): boolean; - emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "exit", listener: (code: number, signal: string) => void): this; - on(event: "listening", listener: (address: Address) => void): this; - on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "exit", listener: (code: number, signal: string) => void): this; - once(event: "listening", listener: (address: Address) => void): this; - once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependListener(event: "listening", listener: (address: Address) => void): this; - prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependListener(event: "online", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependOnceListener(event: "listening", listener: (address: Address) => void): this; - prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener(event: "online", listener: () => void): this; - } - export interface Cluster extends EventEmitter { - disconnect(callback?: () => void): void; - /** - * Spawn a new worker process. - * - * This can only be called from the primary process. - * @param env Key/value pairs to add to worker process environment. - * @since v0.6.0 - */ - fork(env?: any): Worker; - /** @deprecated since v16.0.0 - use isPrimary. */ - readonly isMaster: boolean; - /** - * True if the process is a primary. This is determined by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID` - * is undefined, then `isPrimary` is `true`. - * @since v16.0.0 - */ - readonly isPrimary: boolean; - /** - * True if the process is not a primary (it is the negation of `cluster.isPrimary`). - * @since v0.6.0 - */ - readonly isWorker: boolean; - /** - * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a - * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) - * is called, whichever comes first. - * - * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute - * IOCP handles without incurring a large performance hit. - * - * `cluster.schedulingPolicy` can also be set through the `NODE_CLUSTER_SCHED_POLICY` environment variable. Valid values are `'rr'` and `'none'`. - * @since v0.11.2 - */ - schedulingPolicy: number; - /** - * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) - * (or [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv)) this settings object will contain - * the settings, including the default values. - * - * This object is not intended to be changed or set manually. - * @since v0.7.1 - */ - readonly settings: ClusterSettings; - /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) instead. */ - setupMaster(settings?: ClusterSettings): void; - /** - * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`. - * - * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv) - * and have no effect on workers that are already running. - * - * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to - * [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv). - * - * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of - * `cluster.setupPrimary()` is called. - * - * ```js - * import cluster from 'node:cluster'; - * - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'https'], - * silent: true, - * }); - * cluster.fork(); // https worker - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'http'], - * }); - * cluster.fork(); // http worker - * ``` - * - * This can only be called from the primary process. - * @since v16.0.0 - */ - setupPrimary(settings?: ClusterSettings): void; - /** - * A reference to the current worker object. Not available in the primary process. - * - * ```js - * import cluster from 'node:cluster'; - * - * if (cluster.isPrimary) { - * console.log('I am primary'); - * cluster.fork(); - * cluster.fork(); - * } else if (cluster.isWorker) { - * console.log(`I am worker #${cluster.worker.id}`); - * } - * ``` - * @since v0.7.0 - */ - readonly worker?: Worker; - /** - * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process. - * - * A worker is removed from `cluster.workers` after the worker has disconnected _and_ exited. The order between these two events cannot be determined in advance. However, it - * is guaranteed that the removal from the `cluster.workers` list happens before the last `'disconnect'` or `'exit'` event is emitted. - * - * ```js - * import cluster from 'node:cluster'; - * - * for (const worker of Object.values(cluster.workers)) { - * worker.send('big announcement to all workers'); - * } - * ``` - * @since v0.7.0 - */ - readonly workers?: NodeJS.Dict; - readonly SCHED_NONE: number; - readonly SCHED_RR: number; - /** - * events.EventEmitter - * 1. disconnect - * 2. exit - * 3. fork - * 4. listening - * 5. message - * 6. online - * 7. setup - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: (worker: Worker) => void): this; - addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - addListener(event: "fork", listener: (worker: Worker) => void): this; - addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - addListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: (worker: Worker) => void): this; - addListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect", worker: Worker): boolean; - emit(event: "exit", worker: Worker, code: number, signal: string): boolean; - emit(event: "fork", worker: Worker): boolean; - emit(event: "listening", worker: Worker, address: Address): boolean; - emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online", worker: Worker): boolean; - emit(event: "setup", settings: ClusterSettings): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: (worker: Worker) => void): this; - on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - on(event: "fork", listener: (worker: Worker) => void): this; - on(event: "listening", listener: (worker: Worker, address: Address) => void): this; - on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: (worker: Worker) => void): this; - on(event: "setup", listener: (settings: ClusterSettings) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: (worker: Worker) => void): this; - once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - once(event: "fork", listener: (worker: Worker) => void): this; - once(event: "listening", listener: (worker: Worker, address: Address) => void): this; - once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: (worker: Worker) => void): this; - once(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependListener(event: "fork", listener: (worker: Worker) => void): this; - prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - prependListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependListener(event: "online", listener: (worker: Worker) => void): this; - prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependOnceListener(event: "fork", listener: (worker: Worker) => void): this; - prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependOnceListener(event: "online", listener: (worker: Worker) => void): this; - prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - } - const cluster: Cluster; - export default cluster; -} -declare module "node:cluster" { - export * from "cluster"; - export { default as default } from "cluster"; -} diff --git a/mcp-server/node_modules/@types/node/compatibility/disposable.d.ts b/mcp-server/node_modules/@types/node/compatibility/disposable.d.ts deleted file mode 100644 index 5fff612..0000000 --- a/mcp-server/node_modules/@types/node/compatibility/disposable.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Polyfills for the explicit resource management types added in TypeScript 5.2. -// TODO: remove once this package no longer supports TS 5.1, and replace with a -// to TypeScript's disposable library in index.d.ts. - -interface SymbolConstructor { - readonly dispose: unique symbol; - readonly asyncDispose: unique symbol; -} - -interface Disposable { - [Symbol.dispose](): void; -} - -interface AsyncDisposable { - [Symbol.asyncDispose](): PromiseLike; -} diff --git a/mcp-server/node_modules/@types/node/compatibility/index.d.ts b/mcp-server/node_modules/@types/node/compatibility/index.d.ts deleted file mode 100644 index 5c41e37..0000000 --- a/mcp-server/node_modules/@types/node/compatibility/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Declaration files in this directory contain types relating to TypeScript library features -// that are not included in all TypeScript versions supported by DefinitelyTyped, but -// which can be made backwards-compatible without needing `typesVersions`. -// If adding declarations to this directory, please specify which versions of TypeScript require them, -// so that they can be removed when no longer needed. - -/// -/// -/// diff --git a/mcp-server/node_modules/@types/node/compatibility/indexable.d.ts b/mcp-server/node_modules/@types/node/compatibility/indexable.d.ts deleted file mode 100644 index 262ba09..0000000 --- a/mcp-server/node_modules/@types/node/compatibility/indexable.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6. - -interface RelativeIndexable { - at(index: number): T | undefined; -} - -interface String extends RelativeIndexable {} -interface Array extends RelativeIndexable {} -interface ReadonlyArray extends RelativeIndexable {} -interface Int8Array extends RelativeIndexable {} -interface Uint8Array extends RelativeIndexable {} -interface Uint8ClampedArray extends RelativeIndexable {} -interface Int16Array extends RelativeIndexable {} -interface Uint16Array extends RelativeIndexable {} -interface Int32Array extends RelativeIndexable {} -interface Uint32Array extends RelativeIndexable {} -interface Float32Array extends RelativeIndexable {} -interface Float64Array extends RelativeIndexable {} -interface BigInt64Array extends RelativeIndexable {} -interface BigUint64Array extends RelativeIndexable {} diff --git a/mcp-server/node_modules/@types/node/compatibility/iterators.d.ts b/mcp-server/node_modules/@types/node/compatibility/iterators.d.ts deleted file mode 100644 index 156e785..0000000 --- a/mcp-server/node_modules/@types/node/compatibility/iterators.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6. -// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects -// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded. -// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods -// if lib.esnext.iterator is loaded. -// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn. - -// Placeholders for TS <5.6 -interface IteratorObject {} -interface AsyncIteratorObject {} - -declare namespace NodeJS { - // Populate iterator methods for TS <5.6 - interface Iterator extends globalThis.Iterator {} - interface AsyncIterator extends globalThis.AsyncIterator {} - - // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators - type BuiltinIteratorReturn = ReturnType extends - globalThis.Iterator ? TReturn - : any; -} diff --git a/mcp-server/node_modules/@types/node/console.d.ts b/mcp-server/node_modules/@types/node/console.d.ts deleted file mode 100644 index 206e3fc..0000000 --- a/mcp-server/node_modules/@types/node/console.d.ts +++ /dev/null @@ -1,452 +0,0 @@ -/** - * The `node:console` module provides a simple debugging console that is similar to - * the JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/console.js) - */ -declare module "console" { - import console = require("node:console"); - export = console; -} -declare module "node:console" { - import { InspectOptions } from "node:util"; - global { - // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build - interface Console { - Console: console.ConsoleConstructor; - /** - * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only - * writes a message and does not otherwise affect execution. The output always - * starts with `"Assertion failed"`. If provided, `message` is formatted using - * [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args). - * - * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. - * - * ```js - * console.assert(true, 'does nothing'); - * - * console.assert(false, 'Whoops %s work', 'didn\'t'); - * // Assertion failed: Whoops didn't work - * - * console.assert(); - * // Assertion failed - * ``` - * @since v0.1.101 - * @param value The value tested for being truthy. - * @param message All arguments besides `value` are used as error message. - */ - assert(value: any, message?: string, ...optionalParams: any[]): void; - /** - * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the - * TTY. When `stdout` is not a TTY, this method does nothing. - * - * The specific operation of `console.clear()` can vary across operating systems - * and terminal types. For most Linux operating systems, `console.clear()` operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the - * current terminal viewport for the Node.js - * binary. - * @since v8.3.0 - */ - clear(): void; - /** - * Maintains an internal counter specific to `label` and outputs to `stdout` the - * number of times `console.count()` has been called with the given `label`. - * - * ```js - * > console.count() - * default: 1 - * undefined - * > console.count('default') - * default: 2 - * undefined - * > console.count('abc') - * abc: 1 - * undefined - * > console.count('xyz') - * xyz: 1 - * undefined - * > console.count('abc') - * abc: 2 - * undefined - * > console.count() - * default: 3 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - count(label?: string): void; - /** - * Resets the internal counter specific to `label`. - * - * ```js - * > console.count('abc'); - * abc: 1 - * undefined - * > console.countReset('abc'); - * undefined - * > console.count('abc'); - * abc: 1 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - countReset(label?: string): void; - /** - * The `console.debug()` function is an alias for {@link log}. - * @since v8.0.0 - */ - debug(message?: any, ...optionalParams: any[]): void; - /** - * Uses [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`. - * This function bypasses any custom `inspect()` function defined on `obj`. - * @since v0.1.101 - */ - dir(obj: any, options?: InspectOptions): void; - /** - * This method calls `console.log()` passing it the arguments received. - * This method does not produce any XML formatting. - * @since v8.0.0 - */ - dirxml(...data: any[]): void; - /** - * Prints to `stderr` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). - * - * ```js - * const code = 5; - * console.error('error #%d', code); - * // Prints: error #5, to stderr - * console.error('error', code); - * // Prints: error 5, to stderr - * ``` - * - * If formatting elements (e.g. `%d`) are not found in the first string then - * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) is called on each argument and the - * resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) - * for more information. - * @since v0.1.100 - */ - error(message?: any, ...optionalParams: any[]): void; - /** - * Increases indentation of subsequent lines by spaces for `groupIndentation` length. - * - * If one or more `label`s are provided, those are printed first without the - * additional indentation. - * @since v8.5.0 - */ - group(...label: any[]): void; - /** - * An alias for {@link group}. - * @since v8.5.0 - */ - groupCollapsed(...label: any[]): void; - /** - * Decreases indentation of subsequent lines by spaces for `groupIndentation` length. - * @since v8.5.0 - */ - groupEnd(): void; - /** - * The `console.info()` function is an alias for {@link log}. - * @since v0.1.100 - */ - info(message?: any, ...optionalParams: any[]): void; - /** - * Prints to `stdout` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). - * - * ```js - * const count = 5; - * console.log('count: %d', count); - * // Prints: count: 5, to stdout - * console.log('count:', count); - * // Prints: count: 5, to stdout - * ``` - * - * See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) for more information. - * @since v0.1.100 - */ - log(message?: any, ...optionalParams: any[]): void; - /** - * Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and rows of `tabularData` and log it. Falls back to just - * logging the argument if it can't be parsed as tabular. - * - * ```js - * // These can't be parsed as tabular data - * console.table(Symbol()); - * // Symbol() - * - * console.table(undefined); - * // undefined - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); - * // ┌─────────┬─────┬─────┐ - * // │ (index) │ a │ b │ - * // ├─────────┼─────┼─────┤ - * // │ 0 │ 1 │ 'Y' │ - * // │ 1 │ 'Z' │ 2 │ - * // └─────────┴─────┴─────┘ - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); - * // ┌─────────┬─────┐ - * // │ (index) │ a │ - * // ├─────────┼─────┤ - * // │ 0 │ 1 │ - * // │ 1 │ 'Z' │ - * // └─────────┴─────┘ - * ``` - * @since v10.0.0 - * @param properties Alternate properties for constructing the table. - */ - table(tabularData: any, properties?: readonly string[]): void; - /** - * Starts a timer that can be used to compute the duration of an operation. Timers - * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in - * suitable time units to `stdout`. For example, if the elapsed - * time is 3869ms, `console.timeEnd()` displays "3.869s". - * @since v0.1.104 - * @param [label='default'] - */ - time(label?: string): void; - /** - * Stops a timer that was previously started by calling {@link time} and - * prints the result to `stdout`: - * - * ```js - * console.time('bunch-of-stuff'); - * // Do a bunch of stuff. - * console.timeEnd('bunch-of-stuff'); - * // Prints: bunch-of-stuff: 225.438ms - * ``` - * @since v0.1.104 - * @param [label='default'] - */ - timeEnd(label?: string): void; - /** - * For a timer that was previously started by calling {@link time}, prints - * the elapsed time and other `data` arguments to `stdout`: - * - * ```js - * console.time('process'); - * const value = expensiveProcess1(); // Returns 42 - * console.timeLog('process', value); - * // Prints "process: 365.227ms 42". - * doExpensiveProcess2(value); - * console.timeEnd('process'); - * ``` - * @since v10.7.0 - * @param [label='default'] - */ - timeLog(label?: string, ...data: any[]): void; - /** - * Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) - * formatted message and stack trace to the current position in the code. - * - * ```js - * console.trace('Show me'); - * // Prints: (stack trace will vary based on where trace is called) - * // Trace: Show me - * // at repl:2:9 - * // at REPLServer.defaultEval (repl.js:248:27) - * // at bound (domain.js:287:14) - * // at REPLServer.runBound [as eval] (domain.js:300:12) - * // at REPLServer. (repl.js:412:12) - * // at emitOne (events.js:82:20) - * // at REPLServer.emit (events.js:169:7) - * // at REPLServer.Interface._onLine (readline.js:210:10) - * // at REPLServer.Interface._line (readline.js:549:8) - * // at REPLServer.Interface._ttyWrite (readline.js:826:14) - * ``` - * @since v0.1.104 - */ - trace(message?: any, ...optionalParams: any[]): void; - /** - * The `console.warn()` function is an alias for {@link error}. - * @since v0.1.100 - */ - warn(message?: any, ...optionalParams: any[]): void; - // --- Inspector mode only --- - /** - * This method does not display anything unless used in the inspector. The `console.profile()` - * method starts a JavaScript CPU profile with an optional label until {@link profileEnd} - * is called. The profile is then added to the Profile panel of the inspector. - * - * ```js - * console.profile('MyLabel'); - * // Some code - * console.profileEnd('MyLabel'); - * // Adds the profile 'MyLabel' to the Profiles panel of the inspector. - * ``` - * @since v8.0.0 - */ - profile(label?: string): void; - /** - * This method does not display anything unless used in the inspector. Stops the current - * JavaScript CPU profiling session if one has been started and prints the report to the - * Profiles panel of the inspector. See {@link profile} for an example. - * - * If this method is called without a label, the most recently started profile is stopped. - * @since v8.0.0 - */ - profileEnd(label?: string): void; - /** - * This method does not display anything unless used in the inspector. The `console.timeStamp()` - * method adds an event with the label `'label'` to the Timeline panel of the inspector. - * @since v8.0.0 - */ - timeStamp(label?: string): void; - } - /** - * The `console` module provides a simple debugging console that is similar to the - * JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.11.1/lib/console.js) - */ - namespace console { - interface ConsoleConstructorOptions { - stdout: NodeJS.WritableStream; - stderr?: NodeJS.WritableStream | undefined; - /** - * Ignore errors when writing to the underlying streams. - * @default true - */ - ignoreErrors?: boolean | undefined; - /** - * Set color support for this `Console` instance. Setting to true enables coloring while inspecting - * values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color - * support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the - * respective stream. This option can not be used, if `inspectOptions.colors` is set as well. - * @default auto - */ - colorMode?: boolean | "auto" | undefined; - /** - * Specifies options that are passed along to - * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options). - */ - inspectOptions?: InspectOptions | undefined; - /** - * Set group indentation. - * @default 2 - */ - groupIndentation?: number | undefined; - } - interface ConsoleConstructor { - prototype: Console; - new(stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; - new(options: ConsoleConstructorOptions): Console; - } - } - var console: Console; - } - export = globalThis.console; -} diff --git a/mcp-server/node_modules/@types/node/constants.d.ts b/mcp-server/node_modules/@types/node/constants.d.ts deleted file mode 100644 index 5685a9d..0000000 --- a/mcp-server/node_modules/@types/node/constants.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @deprecated The `node:constants` module is deprecated. When requiring access to constants - * relevant to specific Node.js builtin modules, developers should instead refer - * to the `constants` property exposed by the relevant module. For instance, - * `require('node:fs').constants` and `require('node:os').constants`. - */ -declare module "constants" { - const constants: - & typeof import("node:os").constants.dlopen - & typeof import("node:os").constants.errno - & typeof import("node:os").constants.priority - & typeof import("node:os").constants.signals - & typeof import("node:fs").constants - & typeof import("node:crypto").constants; - export = constants; -} - -declare module "node:constants" { - import constants = require("constants"); - export = constants; -} diff --git a/mcp-server/node_modules/@types/node/crypto.d.ts b/mcp-server/node_modules/@types/node/crypto.d.ts deleted file mode 100644 index 036cf8c..0000000 --- a/mcp-server/node_modules/@types/node/crypto.d.ts +++ /dev/null @@ -1,4590 +0,0 @@ -/** - * The `node:crypto` module provides cryptographic functionality that includes a - * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify - * functions. - * - * ```js - * const { createHmac } = await import('node:crypto'); - * - * const secret = 'abcdefg'; - * const hash = createHmac('sha256', secret) - * .update('I love cupcakes') - * .digest('hex'); - * console.log(hash); - * // Prints: - * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js) - */ -declare module "crypto" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { PeerCertificate } from "node:tls"; - /** - * SPKAC is a Certificate Signing Request mechanism originally implemented by - * Netscape and was specified formally as part of HTML5's `keygen` element. - * - * `` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects - * should not use this element anymore. - * - * The `node:crypto` module provides the `Certificate` class for working with SPKAC - * data. The most common usage is handling output generated by the HTML5 `` element. Node.js uses [OpenSSL's SPKAC - * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally. - * @since v0.11.8 - */ - class Certificate { - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const challenge = Certificate.exportChallenge(spkac); - * console.log(challenge.toString('utf8')); - * // Prints: the challenge as a UTF8 string - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const publicKey = Certificate.exportPublicKey(spkac); - * console.log(publicKey); - * // Prints: the public key as - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The public key component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * ```js - * import { Buffer } from 'node:buffer'; - * const { Certificate } = await import('node:crypto'); - * - * const spkac = getSpkacSomehow(); - * console.log(Certificate.verifySpkac(Buffer.from(spkac))); - * // Prints: true or false - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return `true` if the given `spkac` data structure is valid, `false` otherwise. - */ - static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - /** - * @deprecated - * @param spkac - * @returns The challenge component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @param encoding The encoding of the spkac string. - * @returns The public key component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @returns `true` if the given `spkac` data structure is valid, - * `false` otherwise. - */ - verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - } - namespace constants { - // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants - const OPENSSL_VERSION_NUMBER: number; - /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ - const SSL_OP_ALL: number; - /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ - const SSL_OP_ALLOW_NO_DHE_KEX: number; - /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; - /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_CIPHER_SERVER_PREFERENCE: number; - /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */ - const SSL_OP_CISCO_ANYCONNECT: number; - /** Instructs OpenSSL to turn on cookie exchange. */ - const SSL_OP_COOKIE_EXCHANGE: number; - /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ - const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; - /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ - const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; - /** Allows initial connection to servers that do not support RI. */ - const SSL_OP_LEGACY_SERVER_CONNECT: number; - /** Instructs OpenSSL to disable support for SSL/TLS compression. */ - const SSL_OP_NO_COMPRESSION: number; - /** Instructs OpenSSL to disable encrypt-then-MAC. */ - const SSL_OP_NO_ENCRYPT_THEN_MAC: number; - const SSL_OP_NO_QUERY_MTU: number; - /** Instructs OpenSSL to disable renegotiation. */ - const SSL_OP_NO_RENEGOTIATION: number; - /** Instructs OpenSSL to always start a new session when performing renegotiation. */ - const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; - /** Instructs OpenSSL to turn off SSL v2 */ - const SSL_OP_NO_SSLv2: number; - /** Instructs OpenSSL to turn off SSL v3 */ - const SSL_OP_NO_SSLv3: number; - /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ - const SSL_OP_NO_TICKET: number; - /** Instructs OpenSSL to turn off TLS v1 */ - const SSL_OP_NO_TLSv1: number; - /** Instructs OpenSSL to turn off TLS v1.1 */ - const SSL_OP_NO_TLSv1_1: number; - /** Instructs OpenSSL to turn off TLS v1.2 */ - const SSL_OP_NO_TLSv1_2: number; - /** Instructs OpenSSL to turn off TLS v1.3 */ - const SSL_OP_NO_TLSv1_3: number; - /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ - const SSL_OP_PRIORITIZE_CHACHA: number; - /** Instructs OpenSSL to disable version rollback attack detection. */ - const SSL_OP_TLS_ROLLBACK_BUG: number; - const ENGINE_METHOD_RSA: number; - const ENGINE_METHOD_DSA: number; - const ENGINE_METHOD_DH: number; - const ENGINE_METHOD_RAND: number; - const ENGINE_METHOD_EC: number; - const ENGINE_METHOD_CIPHERS: number; - const ENGINE_METHOD_DIGESTS: number; - const ENGINE_METHOD_PKEY_METHS: number; - const ENGINE_METHOD_PKEY_ASN1_METHS: number; - const ENGINE_METHOD_ALL: number; - const ENGINE_METHOD_NONE: number; - const DH_CHECK_P_NOT_SAFE_PRIME: number; - const DH_CHECK_P_NOT_PRIME: number; - const DH_UNABLE_TO_CHECK_GENERATOR: number; - const DH_NOT_SUITABLE_GENERATOR: number; - const RSA_PKCS1_PADDING: number; - const RSA_SSLV23_PADDING: number; - const RSA_NO_PADDING: number; - const RSA_PKCS1_OAEP_PADDING: number; - const RSA_X931_PADDING: number; - const RSA_PKCS1_PSS_PADDING: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ - const RSA_PSS_SALTLEN_DIGEST: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ - const RSA_PSS_SALTLEN_MAX_SIGN: number; - /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ - const RSA_PSS_SALTLEN_AUTO: number; - const POINT_CONVERSION_COMPRESSED: number; - const POINT_CONVERSION_UNCOMPRESSED: number; - const POINT_CONVERSION_HYBRID: number; - /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ - const defaultCoreCipherList: string; - /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ - const defaultCipherList: string; - } - interface HashOptions extends stream.TransformOptions { - /** - * For XOF hash functions such as `shake256`, the - * outputLength option can be used to specify the desired output length in bytes. - */ - outputLength?: number | undefined; - } - /** @deprecated since v10.0.0 */ - const fips: boolean; - /** - * Creates and returns a `Hash` object that can be used to generate hash digests - * using the given `algorithm`. Optional `options` argument controls stream - * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option - * can be used to specify the desired output length in bytes. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * Example: generating the sha256 sum of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHash, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hash = createHash('sha256'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hash.update(data); - * else { - * console.log(`${hash.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.92 - * @param options `stream.transform` options - */ - function createHash(algorithm: string, options?: HashOptions): Hash; - /** - * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. - * Optional `options` argument controls stream behavior. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is - * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was - * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not - * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256). - * - * Example: generating the sha256 HMAC of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hmac.update(data); - * else { - * console.log(`${hmac.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; - // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings - type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary"; - type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1"; - type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2"; - type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; - type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid"; - /** - * The `Hash` class is a utility for creating hash digests of data. It can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed hash digest on the readable side, or - * * Using the `hash.update()` and `hash.digest()` methods to produce the - * computed hash. - * - * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hash` objects as streams: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hash.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * } - * }); - * - * hash.write('some data to hash'); - * hash.end(); - * ``` - * - * Example: Using `Hash` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { createHash } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * const input = createReadStream('test.js'); - * input.pipe(hash).setEncoding('hex').pipe(stdout); - * ``` - * - * Example: Using the `hash.update()` and `hash.digest()` methods: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('some data to hash'); - * console.log(hash.digest('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * ``` - * @since v0.1.92 - */ - class Hash extends stream.Transform { - private constructor(); - /** - * Creates a new `Hash` object that contains a deep copy of the internal state - * of the current `Hash` object. - * - * The optional `options` argument controls stream behavior. For XOF hash - * functions such as `'shake256'`, the `outputLength` option can be used to - * specify the desired output length in bytes. - * - * An error is thrown when an attempt is made to copy the `Hash` object after - * its `hash.digest()` method has been called. - * - * ```js - * // Calculate a rolling hash. - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('one'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('two'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('three'); - * console.log(hash.copy().digest('hex')); - * - * // Etc. - * ``` - * @since v13.1.0 - * @param options `stream.transform` options - */ - copy(options?: HashOptions): Hash; - /** - * Updates the hash content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hash; - update(data: string, inputEncoding: Encoding): Hash; - /** - * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). - * If `encoding` is provided a string will be returned; otherwise - * a `Buffer` is returned. - * - * The `Hash` object can not be used again after `hash.digest()` method has been - * called. Multiple calls will cause an error to be thrown. - * @since v0.1.92 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - /** - * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can - * be used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed HMAC digest on the readable side, or - * * Using the `hmac.update()` and `hmac.digest()` methods to produce the - * computed HMAC digest. - * - * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hmac` objects as streams: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hmac.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * } - * }); - * - * hmac.write('some data to hash'); - * hmac.end(); - * ``` - * - * Example: Using `Hmac` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream('test.js'); - * input.pipe(hmac).pipe(stdout); - * ``` - * - * Example: Using the `hmac.update()` and `hmac.digest()` methods: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.update('some data to hash'); - * console.log(hmac.digest('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * ``` - * @since v0.1.94 - * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances. - */ - class Hmac extends stream.Transform { - private constructor(); - /** - * Updates the `Hmac` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hmac; - update(data: string, inputEncoding: Encoding): Hmac; - /** - * Calculates the HMAC digest of all of the data passed using `hmac.update()`. - * If `encoding` is - * provided a string is returned; otherwise a `Buffer` is returned; - * - * The `Hmac` object can not be used again after `hmac.digest()` has been - * called. Multiple calls to `hmac.digest()` will result in an error being thrown. - * @since v0.1.94 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - type KeyObjectType = "secret" | "public" | "private"; - interface KeyExportOptions { - type: "pkcs1" | "spki" | "pkcs8" | "sec1"; - format: T; - cipher?: string | undefined; - passphrase?: string | Buffer | undefined; - } - interface JwkKeyExportOptions { - format: "jwk"; - } - interface JsonWebKey { - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - k?: string; - kty?: string; - n?: string; - p?: string; - q?: string; - qi?: string; - x?: string; - y?: string; - [key: string]: unknown; - } - interface AsymmetricKeyDetails { - /** - * Key size in bits (RSA, DSA). - */ - modulusLength?: number; - /** - * Public exponent (RSA). - */ - publicExponent?: bigint; - /** - * Name of the message digest (RSA-PSS). - */ - hashAlgorithm?: string; - /** - * Name of the message digest used by MGF1 (RSA-PSS). - */ - mgf1HashAlgorithm?: string; - /** - * Minimal salt length in bytes (RSA-PSS). - */ - saltLength?: number; - /** - * Size of q in bits (DSA). - */ - divisorLength?: number; - /** - * Name of the curve (EC). - */ - namedCurve?: string; - } - /** - * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, - * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` - * objects are not to be created directly using the `new`keyword. - * - * Most applications should consider using the new `KeyObject` API instead of - * passing keys as strings or `Buffer`s due to improved security features. - * - * `KeyObject` instances can be passed to other threads via `postMessage()`. - * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to - * be listed in the `transferList` argument. - * @since v11.6.0 - */ - class KeyObject { - private constructor(); - /** - * Example: Converting a `CryptoKey` instance to a `KeyObject`: - * - * ```js - * const { KeyObject } = await import('node:crypto'); - * const { subtle } = globalThis.crypto; - * - * const key = await subtle.generateKey({ - * name: 'HMAC', - * hash: 'SHA-256', - * length: 256, - * }, true, ['sign', 'verify']); - * - * const keyObject = KeyObject.from(key); - * console.log(keyObject.symmetricKeySize); - * // Prints: 32 (symmetric key size in bytes) - * ``` - * @since v15.0.0 - */ - static from(key: webcrypto.CryptoKey): KeyObject; - /** - * For asymmetric keys, this property represents the type of the key. Supported key - * types are: - * - * * `'rsa'` (OID 1.2.840.113549.1.1.1) - * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10) - * * `'dsa'` (OID 1.2.840.10040.4.1) - * * `'ec'` (OID 1.2.840.10045.2.1) - * * `'x25519'` (OID 1.3.101.110) - * * `'x448'` (OID 1.3.101.111) - * * `'ed25519'` (OID 1.3.101.112) - * * `'ed448'` (OID 1.3.101.113) - * * `'dh'` (OID 1.2.840.113549.1.3.1) - * - * This property is `undefined` for unrecognized `KeyObject` types and symmetric - * keys. - * @since v11.6.0 - */ - asymmetricKeyType?: KeyType; - /** - * This property exists only on asymmetric keys. Depending on the type of the key, - * this object contains information about the key. None of the information obtained - * through this property can be used to uniquely identify a key or to compromise - * the security of the key. - * - * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, - * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be - * set. - * - * Other key details might be exposed via this API using additional attributes. - * @since v15.7.0 - */ - asymmetricKeyDetails?: AsymmetricKeyDetails; - /** - * For symmetric keys, the following encoding options can be used: - * - * For public keys, the following encoding options can be used: - * - * For private keys, the following encoding options can be used: - * - * The result type depends on the selected encoding format, when PEM the - * result is a string, when DER it will be a buffer containing the data - * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. - * - * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are - * ignored. - * - * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of - * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be - * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for - * encrypted private keys. Since PKCS#8 defines its own - * encryption mechanism, PEM-level encryption is not supported when encrypting - * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for - * PKCS#1 and SEC1 encryption. - * @since v11.6.0 - */ - export(options: KeyExportOptions<"pem">): string | NonSharedBuffer; - export(options?: KeyExportOptions<"der">): NonSharedBuffer; - export(options?: JwkKeyExportOptions): JsonWebKey; - /** - * Returns `true` or `false` depending on whether the keys have exactly the same - * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). - * @since v17.7.0, v16.15.0 - * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. - */ - equals(otherKeyObject: KeyObject): boolean; - /** - * For secret keys, this property represents the size of the key in bytes. This - * property is `undefined` for asymmetric keys. - * @since v11.6.0 - */ - symmetricKeySize?: number; - /** - * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys - * or `'private'` for private (asymmetric) keys. - * @since v11.6.0 - */ - type: KeyObjectType; - } - type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm"; - type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm"; - type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb"; - type CipherChaCha20Poly1305Types = "chacha20-poly1305"; - type BinaryLike = string | NodeJS.ArrayBufferView; - type CipherKey = BinaryLike | KeyObject; - interface CipherCCMOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherGCMOptions extends stream.TransformOptions { - authTagLength?: number | undefined; - } - interface CipherOCBOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherChaCha20Poly1305Options extends stream.TransformOptions { - /** @default 16 */ - authTagLength?: number | undefined; - } - /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `password` is used to derive the cipher key and initialization vector (IV). - * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`. - * - * **This function is semantically insecure for all** - * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** - * **GCM, or CCM).** - * - * The implementation of `crypto.createCipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode - * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when - * they are used in order to avoid the risk of IV reuse that causes - * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead. - * @param options `stream.transform` options - */ - function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): CipherOCB; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher( - algorithm: CipherChaCha20Poly1305Types, - password: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): CipherChaCha20Poly1305; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; - /** - * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and - * initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a - * given IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createCipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): CipherCCM; - function createCipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): CipherOCB; - function createCipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): CipherGCM; - function createCipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): CipherChaCha20Poly1305; - function createCipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Cipher; - /** - * Instances of the `Cipher` class are used to encrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain unencrypted - * data is written to produce encrypted data on the readable side, or - * * Using the `cipher.update()` and `cipher.final()` methods to produce - * the encrypted data. - * - * The {@link createCipher} or {@link createCipheriv} methods are - * used to create `Cipher` instances. `Cipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Cipher` objects as streams: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * // Once we have the key and iv, we can create and use the cipher... - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = ''; - * cipher.setEncoding('hex'); - * - * cipher.on('data', (chunk) => encrypted += chunk); - * cipher.on('end', () => console.log(encrypted)); - * - * cipher.write('some clear text data'); - * cipher.end(); - * }); - * }); - * ``` - * - * Example: Using `Cipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * - * import { - * pipeline, - * } from 'node:stream'; - * - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.js'); - * const output = createWriteStream('test.enc'); - * - * pipeline(input, cipher, output, (err) => { - * if (err) throw err; - * }); - * }); - * }); - * ``` - * - * Example: Using the `cipher.update()` and `cipher.final()` methods: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); - * encrypted += cipher.final('hex'); - * console.log(encrypted); - * }); - * }); - * ``` - * @since v0.1.94 - */ - class Cipher extends stream.Transform { - private constructor(); - /** - * Updates the cipher with `data`. If the `inputEncoding` argument is given, - * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`, - * `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. - * - * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being - * thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the data. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: BinaryLike): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `cipher.final()` method has been called, the `Cipher` object can no - * longer be used to encrypt data. Attempts to call `cipher.final()` more than - * once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When using block encryption algorithms, the `Cipher` class will automatically - * add padding to the input data to the appropriate block size. To disable the - * default padding call `cipher.setAutoPadding(false)`. - * - * When `autoPadding` is `false`, the length of the entire input data must be a - * multiple of the cipher's block size or `cipher.final()` will throw an error. - * Disabling automatic padding is useful for non-standard padding, for instance - * using `0x0` instead of PKCS padding. - * - * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(autoPadding?: boolean): this; - } - interface CipherCCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherGCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherOCB extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherChaCha20Poly1305 extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * **This function is semantically insecure for all** - * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** - * **GCM, or CCM).** - * - * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead. - * @param options `stream.transform` options - */ - function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): DecipherOCB; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher( - algorithm: CipherChaCha20Poly1305Types, - password: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): DecipherChaCha20Poly1305; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; - /** - * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags - * to those with the specified length. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a given - * IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createDecipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): DecipherCCM; - function createDecipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): DecipherOCB; - function createDecipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): DecipherGCM; - function createDecipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): DecipherChaCha20Poly1305; - function createDecipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Decipher; - /** - * Instances of the `Decipher` class are used to decrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain encrypted - * data is written to produce unencrypted data on the readable side, or - * * Using the `decipher.update()` and `decipher.final()` methods to - * produce the unencrypted data. - * - * The {@link createDecipher} or {@link createDecipheriv} methods are - * used to create `Decipher` instances. `Decipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Decipher` objects as streams: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Key length is dependent on the algorithm. In this case for aes192, it is - * // 24 bytes (192 bits). - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * let decrypted = ''; - * decipher.on('readable', () => { - * let chunk; - * while (null !== (chunk = decipher.read())) { - * decrypted += chunk.toString('utf8'); - * } - * }); - * decipher.on('end', () => { - * console.log(decrypted); - * // Prints: some clear text data - * }); - * - * // Encrypted with same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * decipher.write(encrypted, 'hex'); - * decipher.end(); - * ``` - * - * Example: Using `Decipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.enc'); - * const output = createWriteStream('test.js'); - * - * input.pipe(decipher).pipe(output); - * ``` - * - * Example: Using the `decipher.update()` and `decipher.final()` methods: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * // Encrypted using same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); - * decrypted += decipher.final('utf8'); - * console.log(decrypted); - * // Prints: some clear text data - * ``` - * @since v0.1.94 - */ - class Decipher extends stream.Transform { - private constructor(); - /** - * Updates the decipher with `data`. If the `inputEncoding` argument is given, - * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is - * ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned. - * - * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error - * being thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: NodeJS.ArrayBufferView): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `decipher.final()` method has been called, the `Decipher` object can - * no longer be used to decrypt data. Attempts to call `decipher.final()` more - * than once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and - * removing padding. - * - * Turning auto padding off will only work if the input data's length is a - * multiple of the ciphers block size. - * - * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(auto_padding?: boolean): this; - } - interface DecipherCCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface DecipherGCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherOCB extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherChaCha20Poly1305 extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface PrivateKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "pkcs8" | "sec1" | undefined; - passphrase?: string | Buffer | undefined; - encoding?: string | undefined; - } - interface PublicKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "spki" | undefined; - encoding?: string | undefined; - } - /** - * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKey, - * } = await import('node:crypto'); - * - * generateKey('hmac', { length: 512 }, (err, key) => { - * if (err) throw err; - * console.log(key.export().toString('hex')); // 46e..........620 - * }); - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKey( - type: "hmac" | "aes", - options: { - length: number; - }, - callback: (err: Error | null, key: KeyObject) => void, - ): void; - /** - * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKeySync, - * } = await import('node:crypto'); - * - * const key = generateKeySync('hmac', { length: 512 }); - * console.log(key.export().toString('hex')); // e89..........41e - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKeySync( - type: "hmac" | "aes", - options: { - length: number; - }, - ): KeyObject; - interface JsonWebKeyInput { - key: JsonWebKey; - format: "jwk"; - } - /** - * Creates and returns a new key object containing a private key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above. - * - * If the private key is encrypted, a `passphrase` must be specified. The length - * of the passphrase is limited to 1024 bytes. - * @since v11.6.0 - */ - function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a public key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key; - * otherwise, `key` must be an object with the properties described above. - * - * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. - * - * Because public keys can be derived from private keys, a private key may be - * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the - * returned `KeyObject` will be `'public'` and that the private key cannot be - * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned - * and it will be impossible to extract the private key from the returned object. - * @since v11.6.0 - */ - function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a secret key for symmetric - * encryption or `Hmac`. - * @since v11.6.0 - * @param encoding The string encoding when `key` is a string. - */ - function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; - function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; - /** - * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. - * Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Sign` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createSign(algorithm: string, options?: stream.WritableOptions): Sign; - type DSAEncoding = "der" | "ieee-p1363"; - interface SigningOptions { - /** - * @see crypto.constants.RSA_PKCS1_PADDING - */ - padding?: number | undefined; - saltLength?: number | undefined; - dsaEncoding?: DSAEncoding | undefined; - } - interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} - interface SignKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} - interface VerifyKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - type KeyLike = string | Buffer | KeyObject; - /** - * The `Sign` class is a utility for generating signatures. It can be used in one - * of two ways: - * - * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or - * * Using the `sign.update()` and `sign.sign()` methods to produce the - * signature. - * - * The {@link createSign} method is used to create `Sign` instances. The - * argument is the string name of the hash function to use. `Sign` objects are not - * to be created directly using the `new` keyword. - * - * Example: Using `Sign` and `Verify` objects as streams: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('ec', { - * namedCurve: 'sect239k1', - * }); - * - * const sign = createSign('SHA256'); - * sign.write('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey, 'hex'); - * - * const verify = createVerify('SHA256'); - * verify.write('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature, 'hex')); - * // Prints: true - * ``` - * - * Example: Using the `sign.update()` and `verify.update()` methods: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('rsa', { - * modulusLength: 2048, - * }); - * - * const sign = createSign('SHA256'); - * sign.update('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey); - * - * const verify = createVerify('SHA256'); - * verify.update('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature)); - * // Prints: true - * ``` - * @since v0.1.92 - */ - class Sign extends stream.Writable { - private constructor(); - /** - * Updates the `Sign` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): this; - update(data: string, inputEncoding: Encoding): this; - /** - * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the following additional properties can be passed: - * - * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * The `Sign` object can not be again used after `sign.sign()` method has been - * called. Multiple calls to `sign.sign()` will result in an error being thrown. - * @since v0.1.92 - */ - sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): NonSharedBuffer; - sign( - privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - outputFormat: BinaryToTextEncoding, - ): string; - } - /** - * Creates and returns a `Verify` object that uses the given algorithm. - * Use {@link getHashes} to obtain an array of names of the available - * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Verify` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; - /** - * The `Verify` class is a utility for verifying signatures. It can be used in one - * of two ways: - * - * * As a writable `stream` where written data is used to validate against the - * supplied signature, or - * * Using the `verify.update()` and `verify.verify()` methods to verify - * the signature. - * - * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword. - * - * See `Sign` for examples. - * @since v0.1.92 - */ - class Verify extends stream.Writable { - private constructor(); - /** - * Updates the `Verify` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `inputEncoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Verify; - update(data: string, inputEncoding: Encoding): Verify; - /** - * Verifies the provided data using the given `object` and `signature`. - * - * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an - * object, the following additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the data, in - * the `signatureEncoding`. - * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * The `verify` object can not be used again after `verify.verify()` has been - * called. Multiple calls to `verify.verify()` will result in an error being - * thrown. - * - * Because public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.1.92 - */ - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: string, - signature_format?: BinaryToTextEncoding, - ): boolean; - } - /** - * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an - * optional specific `generator`. - * - * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used. - * - * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise - * a `Buffer`, `TypedArray`, or `DataView` is expected. - * - * If `generatorEncoding` is specified, `generator` is expected to be a string; - * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. - * @since v0.11.12 - * @param primeEncoding The `encoding` of the `prime` string. - * @param [generator=2] - * @param generatorEncoding The `encoding` of the `generator` string. - */ - function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - /** - * The `DiffieHellman` class is a utility for creating Diffie-Hellman key - * exchanges. - * - * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createDiffieHellman, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createDiffieHellman(2048); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * // OK - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * ``` - * @since v0.5.0 - */ - class DiffieHellman { - private constructor(); - /** - * Generates private and public Diffie-Hellman key values unless they have been - * generated or computed already, and returns - * the public key in the specified `encoding`. This key should be - * transferred to the other party. - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular, - * once a private key has been generated or set, calling this function only updates - * the public key but does not generate a new private key. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using the specified `inputEncoding`, and secret is - * encoded using specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. - * @since v0.5.0 - * @param inputEncoding The `encoding` of an `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding?: null, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding: null, - outputEncoding: BinaryToTextEncoding, - ): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * Returns the Diffie-Hellman prime in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrime(): NonSharedBuffer; - getPrime(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman generator in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getGenerator(): NonSharedBuffer; - getGenerator(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman public key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPublicKey(): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman private key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected - * to be a string. If no `encoding` is provided, `publicKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * @since v0.5.0 - * @param encoding The `encoding` of the `publicKey` string. - */ - setPublicKey(publicKey: NodeJS.ArrayBufferView): void; - setPublicKey(publicKey: string, encoding: BufferEncoding): void; - /** - * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected - * to be a string. If no `encoding` is provided, `privateKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * - * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be - * used to manually provide the public key or to automatically derive it. - * @since v0.5.0 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BufferEncoding): void; - /** - * A bit field containing any warnings and/or errors resulting from a check - * performed during initialization of the `DiffieHellman` object. - * - * The following values are valid for this property (as defined in `node:constants` module): - * - * * `DH_CHECK_P_NOT_SAFE_PRIME` - * * `DH_CHECK_P_NOT_PRIME` - * * `DH_UNABLE_TO_CHECK_GENERATOR` - * * `DH_NOT_SUITABLE_GENERATOR` - * @since v0.11.12 - */ - verifyError: number; - } - /** - * The `DiffieHellmanGroup` class takes a well-known modp group as its argument. - * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation. - * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods. - * - * ```js - * const { createDiffieHellmanGroup } = await import('node:crypto'); - * const dh = createDiffieHellmanGroup('modp1'); - * ``` - * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt): - * ```bash - * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h - * modp1 # 768 bits - * modp2 # 1024 bits - * modp5 # 1536 bits - * modp14 # 2048 bits - * modp15 # etc. - * modp16 - * modp17 - * modp18 - * ``` - * @since v0.7.5 - */ - const DiffieHellmanGroup: DiffieHellmanGroupConstructor; - interface DiffieHellmanGroupConstructor { - new(name: string): DiffieHellmanGroup; - (name: string): DiffieHellmanGroup; - readonly prototype: DiffieHellmanGroup; - } - type DiffieHellmanGroup = Omit; - /** - * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are listed in the documentation for `DiffieHellmanGroup`. - * - * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing - * the keys (with `diffieHellman.setPublicKey()`, for example). The - * advantage of using this method is that the parties do not have to - * generate nor exchange a group modulus beforehand, saving both processor - * and communication time. - * - * Example (obtaining a shared secret): - * - * ```js - * const { - * getDiffieHellman, - * } = await import('node:crypto'); - * const alice = getDiffieHellman('modp14'); - * const bob = getDiffieHellman('modp14'); - * - * alice.generateKeys(); - * bob.generateKeys(); - * - * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); - * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); - * - * // aliceSecret and bobSecret should be the same - * console.log(aliceSecret === bobSecret); - * ``` - * @since v0.7.5 - */ - function getDiffieHellman(groupName: string): DiffieHellmanGroup; - /** - * An alias for {@link getDiffieHellman} - * @since v0.9.3 - */ - function createDiffieHellmanGroup(name: string): DiffieHellmanGroup; - /** - * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be - * thrown if any of the input arguments specify invalid values or types. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2, - * } = await import('node:crypto'); - * - * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * @since v0.5.5 - */ - function pbkdf2( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * If an error occurs an `Error` will be thrown, otherwise the derived key will be - * returned as a `Buffer`. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2Sync, - * } = await import('node:crypto'); - * - * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); - * console.log(key.toString('hex')); // '3745e48...08d59ae' - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * @since v0.9.3 - */ - function pbkdf2Sync( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - ): NonSharedBuffer; - /** - * Generates cryptographically strong pseudorandom data. The `size` argument - * is a number indicating the number of bytes to generate. - * - * If a `callback` function is provided, the bytes are generated asynchronously - * and the `callback` function is invoked with two arguments: `err` and `buf`. - * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes. - * - * ```js - * // Asynchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * randomBytes(256, (err, buf) => { - * if (err) throw err; - * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); - * }); - * ``` - * - * If the `callback` function is not provided, the random bytes are generated - * synchronously and returned as a `Buffer`. An error will be thrown if - * there is a problem generating the bytes. - * - * ```js - * // Synchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * const buf = randomBytes(256); - * console.log( - * `${buf.length} bytes of random data: ${buf.toString('hex')}`); - * ``` - * - * The `crypto.randomBytes()` method will not complete until there is - * sufficient entropy available. - * This should normally never take longer than a few milliseconds. The only time - * when generating the random bytes may conceivably block for a longer period of - * time is right after boot, when the whole system is still low on entropy. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomBytes()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomBytes` requests when doing so as part of fulfilling a client - * request. - * @since v0.5.8 - * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. - * @return if the `callback` function is not provided. - */ - function randomBytes(size: number): NonSharedBuffer; - function randomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - function pseudoRandomBytes(size: number): NonSharedBuffer; - function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - /** - * Return a random integer `n` such that `min <= n < max`. This - * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). - * - * The range (`max - min`) must be less than 2**48. `min` and `max` must - * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). - * - * If the `callback` function is not provided, the random integer is - * generated synchronously. - * - * ```js - * // Asynchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * randomInt(3, (err, n) => { - * if (err) throw err; - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * }); - * ``` - * - * ```js - * // Synchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(3); - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * ``` - * - * ```js - * // With `min` argument - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(1, 7); - * console.log(`The dice rolled: ${n}`); - * ``` - * @since v14.10.0, v12.19.0 - * @param [min=0] Start of random range (inclusive). - * @param max End of random range (exclusive). - * @param callback `function(err, n) {}`. - */ - function randomInt(max: number): number; - function randomInt(min: number, max: number): number; - function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; - function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; - /** - * Synchronous version of {@link randomFill}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * console.log(randomFillSync(buf).toString('hex')); - * - * randomFillSync(buf, 5); - * console.log(buf.toString('hex')); - * - * // The above is equivalent to the following: - * randomFillSync(buf, 5, 5); - * console.log(buf.toString('hex')); - * ``` - * - * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * console.log(Buffer.from(randomFillSync(a).buffer, - * a.byteOffset, a.byteLength).toString('hex')); - * - * const b = new DataView(new ArrayBuffer(10)); - * console.log(Buffer.from(randomFillSync(b).buffer, - * b.byteOffset, b.byteLength).toString('hex')); - * - * const c = new ArrayBuffer(10); - * console.log(Buffer.from(randomFillSync(c)).toString('hex')); - * ``` - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @return The object passed as `buffer` argument. - */ - function randomFillSync(buffer: T, offset?: number, size?: number): T; - /** - * This function is similar to {@link randomBytes} but requires the first - * argument to be a `Buffer` that will be filled. It also - * requires that a callback is passed in. - * - * If the `callback` function is not provided, an error will be thrown. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * randomFill(buf, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * randomFill(buf, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * // The above is equivalent to the following: - * randomFill(buf, 5, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * ``` - * - * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`. - * - * While this includes instances of `Float32Array` and `Float64Array`, this - * function should not be used to generate random floating-point numbers. The - * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array - * contains finite numbers only, they are not drawn from a uniform random - * distribution and have no meaningful lower or upper bounds. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * randomFill(a, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const b = new DataView(new ArrayBuffer(10)); - * randomFill(b, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const c = new ArrayBuffer(10); - * randomFill(c, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf).toString('hex')); - * }); - * ``` - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomFill()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomFill` requests when doing so as part of fulfilling a client - * request. - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @param callback `function(err, buf) {}`. - */ - function randomFill( - buffer: T, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - size: number, - callback: (err: Error | null, buf: T) => void, - ): void; - interface ScryptOptions { - cost?: number | undefined; - blockSize?: number | undefined; - parallelization?: number | undefined; - N?: number | undefined; - r?: number | undefined; - p?: number | undefined; - maxmem?: number | undefined; - } - /** - * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the - * callback as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scrypt, - * } = await import('node:crypto'); - * - * // Using the factory defaults. - * scrypt('password', 'salt', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * // Using a custom N parameter. Must be a power of two. - * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' - * }); - * ``` - * @since v10.5.0 - */ - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options: ScryptOptions, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * An exception is thrown when key derivation fails, otherwise the derived key is - * returned as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scryptSync, - * } = await import('node:crypto'); - * // Using the factory defaults. - * - * const key1 = scryptSync('password', 'salt', 64); - * console.log(key1.toString('hex')); // '3745e48...08d59ae' - * // Using a custom N parameter. Must be a power of two. - * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); - * console.log(key2.toString('hex')); // '3745e48...aa39b34' - * ``` - * @since v10.5.0 - */ - function scryptSync( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options?: ScryptOptions, - ): NonSharedBuffer; - interface RsaPublicKey { - key: KeyLike; - padding?: number | undefined; - } - interface RsaPrivateKey { - key: KeyLike; - passphrase?: string | undefined; - /** - * @default 'sha1' - */ - oaepHash?: string | undefined; - oaepLabel?: NodeJS.TypedArray | undefined; - padding?: number | undefined; - } - /** - * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using - * the corresponding private key, for example using {@link privateDecrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.11.14 - */ - function publicEncrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `key`.`buffer` was previously encrypted using - * the corresponding private key, for example using {@link privateEncrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v1.1.0 - */ - function publicDecrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using - * the corresponding public key, for example using {@link publicEncrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * @since v0.11.14 - */ - function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; - /** - * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using - * the corresponding public key, for example using {@link publicDecrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * @since v1.1.0 - */ - function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; - /** - * ```js - * const { - * getCiphers, - * } = await import('node:crypto'); - * - * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] - * ``` - * @since v0.9.3 - * @return An array with the names of the supported cipher algorithms. - */ - function getCiphers(): string[]; - /** - * ```js - * const { - * getCurves, - * } = await import('node:crypto'); - * - * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] - * ``` - * @since v2.3.0 - * @return An array with the names of the supported elliptic curves. - */ - function getCurves(): string[]; - /** - * @since v10.0.0 - * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. - */ - function getFips(): 1 | 0; - /** - * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. - * Throws an error if FIPS mode is not available. - * @since v10.0.0 - * @param bool `true` to enable FIPS mode. - */ - function setFips(bool: boolean): void; - /** - * ```js - * const { - * getHashes, - * } = await import('node:crypto'); - * - * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] - * ``` - * @since v0.9.3 - * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. - */ - function getHashes(): string[]; - /** - * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) - * key exchanges. - * - * Instances of the `ECDH` class can be created using the {@link createECDH} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createECDH, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createECDH('secp521r1'); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createECDH('secp521r1'); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * // OK - * ``` - * @since v0.11.14 - */ - class ECDH { - private constructor(); - /** - * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the - * format specified by `format`. The `format` argument specifies point encoding - * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is - * interpreted using the specified `inputEncoding`, and the returned key is encoded - * using the specified `outputEncoding`. - * - * Use {@link getCurves} to obtain a list of available curve names. - * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display - * the name and description of each available elliptic curve. - * - * If `format` is not specified the point will be returned in `'uncompressed'` format. - * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * Example (uncompressing a key): - * - * ```js - * const { - * createECDH, - * ECDH, - * } = await import('node:crypto'); - * - * const ecdh = createECDH('secp256k1'); - * ecdh.generateKeys(); - * - * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); - * - * const uncompressedKey = ECDH.convertKey(compressedKey, - * 'secp256k1', - * 'hex', - * 'hex', - * 'uncompressed'); - * - * // The converted key and the uncompressed public key should be the same - * console.log(uncompressedKey === ecdh.getPublicKey('hex')); - * ``` - * @since v10.0.0 - * @param inputEncoding The `encoding` of the `key` string. - * @param outputEncoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - static convertKey( - key: BinaryLike, - curve: string, - inputEncoding?: BinaryToTextEncoding, - outputEncoding?: "latin1" | "hex" | "base64" | "base64url", - format?: "uncompressed" | "compressed" | "hybrid", - ): NonSharedBuffer | string; - /** - * Generates private and public EC Diffie-Hellman key values, and returns - * the public key in the specified `format` and `encoding`. This key should be - * transferred to the other party. - * - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. - * - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using specified `inputEncoding`, and the returned secret - * is encoded using the specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. - * - * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is - * usually supplied from a remote user over an insecure network, - * be sure to handle this exception accordingly. - * @since v0.11.14 - * @param inputEncoding The `encoding` of the `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret(otherPublicKey: NodeJS.ArrayBufferView): NonSharedBuffer; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): NonSharedBuffer; - computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @return The EC Diffie-Hellman in the specified `encoding`. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. - * - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. - */ - getPublicKey(encoding?: null, format?: ECDHKeyFormat): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Sets the EC Diffie-Hellman private key. - * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `privateKey` is not valid for the curve specified when the `ECDH` object was - * created, an error is thrown. Upon setting the private key, the associated - * public point (key) is also generated and set in the `ECDH` object. - * @since v0.11.14 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; - } - /** - * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a - * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent - * OpenSSL releases, `openssl ecparam -list_curves` will also display the name - * and description of each available elliptic curve. - * @since v0.11.14 - */ - function createECDH(curveName: string): ECDH; - /** - * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time - * algorithm. - * - * This function does not leak timing information that - * would allow an attacker to guess one of the values. This is suitable for - * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/). - * - * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they - * must have the same byte length. An error is thrown if `a` and `b` have - * different byte lengths. - * - * If at least one of `a` and `b` is a `TypedArray` with more than one byte per - * entry, such as `Uint16Array`, the result will be computed using the platform - * byte order. - * - * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754** - * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point** - * **numbers `x` and `y` are equal.** - * - * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code - * is timing-safe. Care should be taken to ensure that the surrounding code does - * not introduce timing vulnerabilities. - * @since v6.6.0 - */ - function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; - type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448"; - type KeyFormat = "pem" | "der" | "jwk"; - interface BasePrivateKeyEncodingOptions { - format: T; - cipher?: string | undefined; - passphrase?: string | undefined; - } - interface KeyPairKeyObjectResult { - publicKey: KeyObject; - privateKey: KeyObject; - } - interface ED25519KeyPairKeyObjectOptions {} - interface ED448KeyPairKeyObjectOptions {} - interface X25519KeyPairKeyObjectOptions {} - interface X448KeyPairKeyObjectOptions {} - interface ECKeyPairKeyObjectOptions { - /** - * Name of the curve to use - */ - namedCurve: string; - /** - * Must be `'named'` or `'explicit'`. Default: `'named'`. - */ - paramEncoding?: "explicit" | "named" | undefined; - } - interface RSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - } - interface RSAPSSKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - } - interface DSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - } - interface RSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs1" | "pkcs8"; - }; - } - interface RSAPSSKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface DSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "sec1" | "pkcs8"; - }; - } - interface ED25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ED448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface KeyPairSyncResult { - publicKey: T1; - privateKey: T2; - } - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * When encoding public keys, it is recommended to use `'spki'`. When encoding - * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, - * and to keep the passphrase confidential. - * - * ```js - * const { - * generateKeyPairSync, - * } = await import('node:crypto'); - * - * const { - * publicKey, - * privateKey, - * } = generateKeyPairSync('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }); - * ``` - * - * The return value `{ publicKey, privateKey }` represents the generated key pair. - * When PEM encoding was selected, the respective key will be a string, otherwise - * it will be a buffer containing the data encoded as DER. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage: - * - * ```js - * const { - * generateKeyPair, - * } = await import('node:crypto'); - * - * generateKeyPair('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }, (err, publicKey, privateKey) => { - * // Handle errors and use the generated key pair. - * }); - * ``` - * - * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - namespace generateKeyPair { - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options?: ED25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options?: X25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise; - } - /** - * Calculates and returns the signature for `data` using the given private key and - * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is - * dependent upon the key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPrivateKey}. If it is an object, the following - * additional properties can be passed: - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - ): NonSharedBuffer; - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - callback: (error: Error | null, data: NonSharedBuffer) => void, - ): void; - /** - * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the - * key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPublicKey}. If it is an object, the following - * additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the `data`. - * - * Because public keys can be derived from private keys, a private key or a public - * key may be passed for `key`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - callback: (error: Error | null, result: boolean) => void, - ): void; - /** - * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. - * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). - * @since v13.9.0, v12.17.0 - */ - function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): NonSharedBuffer; - /** - * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data - * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm` - * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases - * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms. - * - * Example: - * - * ```js - * import crypto from 'node:crypto'; - * import { Buffer } from 'node:buffer'; - * - * // Hashing a string and return the result as a hex-encoded string. - * const string = 'Node.js'; - * // 10b3493287f831e81a438811a1ffba01f8cec4b7 - * console.log(crypto.hash('sha1', string)); - * - * // Encode a base64-encoded string into a Buffer, hash it and return - * // the result as a buffer. - * const base64 = 'Tm9kZS5qcw=='; - * // - * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer')); - * ``` - * @since v21.7.0, v20.12.0 - * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user - * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead. - * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest. - */ - function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string; - function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): NonSharedBuffer; - function hash( - algorithm: string, - data: BinaryLike, - outputEncoding?: BinaryToTextEncoding | "buffer", - ): string | NonSharedBuffer; - type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts"; - interface CipherInfoOptions { - /** - * A test key length. - */ - keyLength?: number | undefined; - /** - * A test IV length. - */ - ivLength?: number | undefined; - } - interface CipherInfo { - /** - * The name of the cipher. - */ - name: string; - /** - * The nid of the cipher. - */ - nid: number; - /** - * The block size of the cipher in bytes. - * This property is omitted when mode is 'stream'. - */ - blockSize?: number | undefined; - /** - * The expected or default initialization vector length in bytes. - * This property is omitted if the cipher does not use an initialization vector. - */ - ivLength?: number | undefined; - /** - * The expected or default key length in bytes. - */ - keyLength: number; - /** - * The cipher mode. - */ - mode: CipherMode; - } - /** - * Returns information about a given cipher. - * - * Some ciphers accept variable length keys and initialization vectors. By default, - * the `crypto.getCipherInfo()` method will return the default values for these - * ciphers. To test if a given key length or iv length is acceptable for given - * cipher, use the `keyLength` and `ivLength` options. If the given values are - * unacceptable, `undefined` will be returned. - * @since v15.0.0 - * @param nameOrNid The name or nid of the cipher to query. - */ - function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; - /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. The successfully generated `derivedKey` will - * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any - * of the input arguments specify invalid values or types. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdf, - * } = await import('node:crypto'); - * - * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * }); - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdf( - digest: string, - irm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: ArrayBuffer) => void, - ): void; - /** - * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The - * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). - * - * An error will be thrown if any of the input arguments specify invalid values or - * types, or if the derived key cannot be generated. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdfSync, - * } = await import('node:crypto'); - * - * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdfSync( - digest: string, - ikm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - ): ArrayBuffer; - interface SecureHeapUsage { - /** - * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. - */ - total: number; - /** - * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. - */ - min: number; - /** - * The total number of bytes currently allocated from the secure heap. - */ - used: number; - /** - * The calculated ratio of `used` to `total` allocated bytes. - */ - utilization: number; - } - /** - * @since v15.6.0 - */ - function secureHeapUsed(): SecureHeapUsage; - interface RandomUUIDOptions { - /** - * By default, to improve performance, - * Node.js will pre-emptively generate and persistently cache enough - * random data to generate up to 128 random UUIDs. To generate a UUID - * without using the cache, set `disableEntropyCache` to `true`. - * - * @default `false` - */ - disableEntropyCache?: boolean | undefined; - } - type UUID = `${string}-${string}-${string}-${string}-${string}`; - /** - * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a - * cryptographic pseudorandom number generator. - * @since v15.6.0, v14.17.0 - */ - function randomUUID(options?: RandomUUIDOptions): UUID; - interface X509CheckOptions { - /** - * @default 'always' - */ - subject?: "always" | "default" | "never" | undefined; - /** - * @default true - */ - wildcards?: boolean | undefined; - /** - * @default true - */ - partialWildcards?: boolean | undefined; - /** - * @default false - */ - multiLabelWildcards?: boolean | undefined; - /** - * @default false - */ - singleLabelSubdomains?: boolean | undefined; - } - /** - * Encapsulates an X509 certificate and provides read-only access to - * its information. - * - * ```js - * const { X509Certificate } = await import('node:crypto'); - * - * const x509 = new X509Certificate('{... pem encoded cert ...}'); - * - * console.log(x509.subject); - * ``` - * @since v15.6.0 - */ - class X509Certificate { - /** - * Will be \`true\` if this is a Certificate Authority (CA) certificate. - * @since v15.6.0 - */ - readonly ca: boolean; - /** - * The SHA-1 fingerprint of this certificate. - * - * Because SHA-1 is cryptographically broken and because the security of SHA-1 is - * significantly worse than that of algorithms that are commonly used to sign - * certificates, consider using `x509.fingerprint256` instead. - * @since v15.6.0 - */ - readonly fingerprint: string; - /** - * The SHA-256 fingerprint of this certificate. - * @since v15.6.0 - */ - readonly fingerprint256: string; - /** - * The SHA-512 fingerprint of this certificate. - * - * Because computing the SHA-256 fingerprint is usually faster and because it is - * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be - * a better choice. While SHA-512 presumably provides a higher level of security in - * general, the security of SHA-256 matches that of most algorithms that are - * commonly used to sign certificates. - * @since v17.2.0, v16.14.0 - */ - readonly fingerprint512: string; - /** - * The complete subject of this certificate. - * @since v15.6.0 - */ - readonly subject: string; - /** - * The subject alternative name specified for this certificate. - * - * This is a comma-separated list of subject alternative names. Each entry begins - * with a string identifying the kind of the subject alternative name followed by - * a colon and the value associated with the entry. - * - * Earlier versions of Node.js incorrectly assumed that it is safe to split this - * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However, - * both malicious and legitimate certificates can contain subject alternative names - * that include this sequence when represented as a string. - * - * After the prefix denoting the type of the entry, the remainder of each entry - * might be enclosed in quotes to indicate that the value is a JSON string literal. - * For backward compatibility, Node.js only uses JSON string literals within this - * property when necessary to avoid ambiguity. Third-party code should be prepared - * to handle both possible entry formats. - * @since v15.6.0 - */ - readonly subjectAltName: string | undefined; - /** - * A textual representation of the certificate's authority information access - * extension. - * - * This is a line feed separated list of access descriptions. Each line begins with - * the access method and the kind of the access location, followed by a colon and - * the value associated with the access location. - * - * After the prefix denoting the access method and the kind of the access location, - * the remainder of each line might be enclosed in quotes to indicate that the - * value is a JSON string literal. For backward compatibility, Node.js only uses - * JSON string literals within this property when necessary to avoid ambiguity. - * Third-party code should be prepared to handle both possible entry formats. - * @since v15.6.0 - */ - readonly infoAccess: string | undefined; - /** - * An array detailing the key usages for this certificate. - * @since v15.6.0 - */ - readonly keyUsage: string[]; - /** - * The issuer identification included in this certificate. - * @since v15.6.0 - */ - readonly issuer: string; - /** - * The issuer certificate or `undefined` if the issuer certificate is not - * available. - * @since v15.9.0 - */ - readonly issuerCertificate: X509Certificate | undefined; - /** - * The public key `KeyObject` for this certificate. - * @since v15.6.0 - */ - readonly publicKey: KeyObject; - /** - * A `Buffer` containing the DER encoding of this certificate. - * @since v15.6.0 - */ - readonly raw: NonSharedBuffer; - /** - * The serial number of this certificate. - * - * Serial numbers are assigned by certificate authorities and do not uniquely - * identify certificates. Consider using `x509.fingerprint256` as a unique - * identifier instead. - * @since v15.6.0 - */ - readonly serialNumber: string; - /** - * The date/time from which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validFrom: string; - /** - * The date/time until which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validTo: string; - constructor(buffer: BinaryLike); - /** - * Checks whether the certificate matches the given email address. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any email addresses. - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching email - * address, the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns `email` if the certificate matches, `undefined` if it does not. - */ - checkEmail(email: string, options?: Pick): string | undefined; - /** - * Checks whether the certificate matches the given host name. - * - * If the certificate matches the given host name, the matching subject name is - * returned. The returned name might be an exact match (e.g., `foo.example.com`) - * or it might contain wildcards (e.g., `*.example.com`). Because host name - * comparisons are case-insensitive, the returned subject name might also differ - * from the given `name` in capitalization. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS"). - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching DNS name, - * the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`. - */ - checkHost(name: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether the certificate matches the given IP address (IPv4 or IPv6). - * - * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they - * must match the given `ip` address exactly. Other subject alternative names as - * well as the subject field of the certificate are ignored. - * @since v15.6.0 - * @return Returns `ip` if the certificate matches, `undefined` if it does not. - */ - checkIP(ip: string): string | undefined; - /** - * Checks whether this certificate was issued by the given `otherCert`. - * @since v15.6.0 - */ - checkIssued(otherCert: X509Certificate): boolean; - /** - * Checks whether the public key for this certificate is consistent with - * the given private key. - * @since v15.6.0 - * @param privateKey A private key. - */ - checkPrivateKey(privateKey: KeyObject): boolean; - /** - * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded - * certificate. - * @since v15.6.0 - */ - toJSON(): string; - /** - * Returns information about this certificate using the legacy `certificate object` encoding. - * @since v15.6.0 - */ - toLegacyObject(): PeerCertificate; - /** - * Returns the PEM-encoded certificate. - * @since v15.6.0 - */ - toString(): string; - /** - * Verifies that this certificate was signed by the given public key. - * Does not perform any other validation checks on the certificate. - * @since v15.6.0 - * @param publicKey A public key. - */ - verify(publicKey: KeyObject): boolean; - } - type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; - interface GeneratePrimeOptions { - add?: LargeNumberLike | undefined; - rem?: LargeNumberLike | undefined; - /** - * @default false - */ - safe?: boolean | undefined; - bigint?: boolean | undefined; - } - interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { - bigint: true; - } - interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { - bigint?: false | undefined; - } - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsBigInt, - callback: (err: Error | null, prime: bigint) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsArrayBuffer, - callback: (err: Error | null, prime: ArrayBuffer) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptions, - callback: (err: Error | null, prime: ArrayBuffer | bigint) => void, - ): void; - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrimeSync(size: number): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; - interface CheckPrimeOptions { - /** - * The number of Miller-Rabin probabilistic primality iterations to perform. - * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input. - * Care must be used when selecting a number of checks. - * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. - * - * @default 0 - */ - checks?: number | undefined; - } - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - */ - function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; - function checkPrime( - value: LargeNumberLike, - options: CheckPrimeOptions, - callback: (err: Error | null, result: boolean) => void, - ): void; - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. - */ - function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; - /** - * Load and set the `engine` for some or all OpenSSL functions (selected by flags). - * - * `engine` could be either an id or a path to the engine's shared library. - * - * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`): - * - * * `crypto.constants.ENGINE_METHOD_RSA` - * * `crypto.constants.ENGINE_METHOD_DSA` - * * `crypto.constants.ENGINE_METHOD_DH` - * * `crypto.constants.ENGINE_METHOD_RAND` - * * `crypto.constants.ENGINE_METHOD_EC` - * * `crypto.constants.ENGINE_METHOD_CIPHERS` - * * `crypto.constants.ENGINE_METHOD_DIGESTS` - * * `crypto.constants.ENGINE_METHOD_PKEY_METHS` - * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS` - * * `crypto.constants.ENGINE_METHOD_ALL` - * * `crypto.constants.ENGINE_METHOD_NONE` - * @since v0.11.11 - * @param flags - */ - function setEngine(engine: string, flags?: number): void; - /** - * A convenient alias for {@link webcrypto.getRandomValues}. This - * implementation is not compliant with the Web Crypto spec, to write - * web-compatible code use {@link webcrypto.getRandomValues} instead. - * @since v17.4.0 - * @return Returns `typedArray`. - */ - function getRandomValues(typedArray: T): T; - /** - * A convenient alias for `crypto.webcrypto.subtle`. - * @since v17.4.0 - */ - const subtle: webcrypto.SubtleCrypto; - /** - * An implementation of the Web Crypto API standard. - * - * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details. - * @since v15.0.0 - */ - const webcrypto: webcrypto.Crypto; - namespace webcrypto { - type BufferSource = ArrayBufferView | ArrayBuffer; - type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; - type KeyType = "private" | "public" | "secret"; - type KeyUsage = - | "decrypt" - | "deriveBits" - | "deriveKey" - | "encrypt" - | "sign" - | "unwrapKey" - | "verify" - | "wrapKey"; - type AlgorithmIdentifier = Algorithm | string; - type HashAlgorithmIdentifier = AlgorithmIdentifier; - type NamedCurve = string; - type BigInteger = Uint8Array; - interface AesCbcParams extends Algorithm { - iv: BufferSource; - } - interface AesCtrParams extends Algorithm { - counter: BufferSource; - length: number; - } - interface AesDerivedKeyParams extends Algorithm { - length: number; - } - interface AesGcmParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength?: number; - } - interface AesKeyAlgorithm extends KeyAlgorithm { - length: number; - } - interface AesKeyGenParams extends Algorithm { - length: number; - } - interface Algorithm { - name: string; - } - interface EcKeyAlgorithm extends KeyAlgorithm { - namedCurve: NamedCurve; - } - interface EcKeyGenParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcKeyImportParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcdhKeyDeriveParams extends Algorithm { - public: CryptoKey; - } - interface EcdsaParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface Ed448Params extends Algorithm { - context?: BufferSource; - } - interface HkdfParams extends Algorithm { - hash: HashAlgorithmIdentifier; - info: BufferSource; - salt: BufferSource; - } - interface HmacImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface HmacKeyAlgorithm extends KeyAlgorithm { - hash: KeyAlgorithm; - length: number; - } - interface HmacKeyGenParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface JsonWebKey { - alg?: string; - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - ext?: boolean; - k?: string; - key_ops?: string[]; - kty?: string; - n?: string; - oth?: RsaOtherPrimesInfo[]; - p?: string; - q?: string; - qi?: string; - use?: string; - x?: string; - y?: string; - } - interface KeyAlgorithm { - name: string; - } - interface Pbkdf2Params extends Algorithm { - hash: HashAlgorithmIdentifier; - iterations: number; - salt: BufferSource; - } - interface RsaHashedImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { - hash: KeyAlgorithm; - } - interface RsaHashedKeyGenParams extends RsaKeyGenParams { - hash: HashAlgorithmIdentifier; - } - interface RsaKeyAlgorithm extends KeyAlgorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaKeyGenParams extends Algorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaOaepParams extends Algorithm { - label?: BufferSource; - } - interface RsaOtherPrimesInfo { - d?: string; - r?: string; - t?: string; - } - interface RsaPssParams extends Algorithm { - saltLength: number; - } - /** - * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class. - * `Crypto` is a singleton that provides access to the remainder of the crypto API. - * @since v15.0.0 - */ - interface Crypto { - /** - * Provides access to the `SubtleCrypto` API. - * @since v15.0.0 - */ - readonly subtle: SubtleCrypto; - /** - * Generates cryptographically strong random values. - * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned. - * - * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted. - * - * An error will be thrown if the given `typedArray` is larger than 65,536 bytes. - * @since v15.0.0 - */ - getRandomValues>(typedArray: T): T; - /** - * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID. - * The UUID is generated using a cryptographic pseudorandom number generator. - * @since v16.7.0 - */ - randomUUID(): UUID; - CryptoKey: CryptoKeyConstructor; - } - // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable. - interface CryptoKeyConstructor { - /** Illegal constructor */ - (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user. - readonly length: 0; - readonly name: "CryptoKey"; - readonly prototype: CryptoKey; - } - /** - * @since v15.0.0 - */ - interface CryptoKey { - /** - * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters. - * @since v15.0.0 - */ - readonly algorithm: KeyAlgorithm; - /** - * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`. - * @since v15.0.0 - */ - readonly extractable: boolean; - /** - * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key. - * @since v15.0.0 - */ - readonly type: KeyType; - /** - * An array of strings identifying the operations for which the key may be used. - * - * The possible usages are: - * - `'encrypt'` - The key may be used to encrypt data. - * - `'decrypt'` - The key may be used to decrypt data. - * - `'sign'` - The key may be used to generate digital signatures. - * - `'verify'` - The key may be used to verify digital signatures. - * - `'deriveKey'` - The key may be used to derive a new key. - * - `'deriveBits'` - The key may be used to derive bits. - * - `'wrapKey'` - The key may be used to wrap another key. - * - `'unwrapKey'` - The key may be used to unwrap another key. - * - * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`). - * @since v15.0.0 - */ - readonly usages: KeyUsage[]; - } - /** - * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair. - * @since v15.0.0 - */ - interface CryptoKeyPair { - /** - * A {@link CryptoKey} whose type will be `'private'`. - * @since v15.0.0 - */ - privateKey: CryptoKey; - /** - * A {@link CryptoKey} whose type will be `'public'`. - * @since v15.0.0 - */ - publicKey: CryptoKey; - } - /** - * @since v15.0.0 - */ - interface SubtleCrypto { - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `key`, - * `subtle.decrypt()` attempts to decipher the provided `data`. If successful, - * the returned promise will be resolved with an `` containing the plaintext result. - * - * The algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * @since v15.0.0 - */ - decrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`, - * `subtle.deriveBits()` attempts to generate `length` bits. - * The Node.js implementation requires that when `length` is a number it must be multiple of `8`. - * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed - * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms. - * If successful, the returned promise will be resolved with an `` containing the generated data. - * - * The algorithms currently supported include: - * - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HKDF'` - * - `'PBKDF2'` - * @since v15.0.0 - */ - deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise; - deriveBits( - algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, - baseKey: CryptoKey, - length: number, - ): Promise; - /** - * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`, - * `subtle.deriveKey()` attempts to generate a new ` based on the method and parameters in `derivedKeyAlgorithm`. - * - * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material, - * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input. - * - * The algorithms currently supported include: - * - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HKDF'` - * - `'PBKDF2'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - deriveKey( - algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, - baseKey: CryptoKey, - derivedKeyAlgorithm: - | AlgorithmIdentifier - | AesDerivedKeyParams - | HmacImportParams - | HkdfParams - | Pbkdf2Params, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - /** - * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. - * If successful, the returned promise is resolved with an `` containing the computed digest. - * - * If `algorithm` is provided as a ``, it must be one of: - * - * - `'SHA-1'` - * - `'SHA-256'` - * - `'SHA-384'` - * - `'SHA-512'` - * - * If `algorithm` is provided as an ``, it must have a `name` property whose value is one of the above. - * @since v15.0.0 - */ - digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; - /** - * Using the method and parameters specified by `algorithm` and the keying material provided by `key`, - * `subtle.encrypt()` attempts to encipher `data`. If successful, - * the returned promise is resolved with an `` containing the encrypted result. - * - * The algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * @since v15.0.0 - */ - encrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Exports the given key into the specified format, if supported. - * - * If the `` is not extractable, the returned promise will reject. - * - * When `format` is either `'pkcs8'` or `'spki'` and the export is successful, - * the returned promise will be resolved with an `` containing the exported key data. - * - * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a - * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @returns `` containing ``. - * @since v15.0.0 - */ - exportKey(format: "jwk", key: CryptoKey): Promise; - exportKey(format: Exclude, key: CryptoKey): Promise; - /** - * Using the method and parameters provided in `algorithm`, - * `subtle.generateKey()` attempts to generate new keying material. - * Depending the method used, the method may generate either a single `` or a ``. - * - * The `` (public and private key) generating algorithms supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'RSA-OAEP'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * The `` (secret key) generating algorithms supported include: - * - * - `'HMAC'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - generateKey( - algorithm: RsaHashedKeyGenParams | EcKeyGenParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AlgorithmIdentifier, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format` - * to create a `` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments. - * If the import is successful, the returned promise will be resolved with the created ``. - * - * If importing a `'PBKDF2'` key, `extractable` must be `false`. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - importKey( - format: "jwk", - keyData: JsonWebKey, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - importKey( - format: Exclude, - keyData: BufferSource, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given by `algorithm` and the keying material provided by `key`, - * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful, - * the returned promise is resolved with an `` containing the generated signature. - * - * The algorithms currently supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'HMAC'` - * @since v15.0.0 - */ - sign( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `` instance. - * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input) - * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs. - * If successful, the returned promise is resolved with a `` object. - * - * The wrapping algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * - * The unwrapped key algorithms supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'RSA-OAEP'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HMAC'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - unwrapKey( - format: KeyFormat, - wrappedKey: BufferSource, - unwrappingKey: CryptoKey, - unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - unwrappedKeyAlgorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given in `algorithm` and the keying material provided by `key`, - * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`. - * The returned promise is resolved with either `true` or `false`. - * - * The algorithms currently supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'HMAC'` - * @since v15.0.0 - */ - verify( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, - key: CryptoKey, - signature: BufferSource, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`, - * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`. - * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments, - * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs. - * If successful, the returned promise will be resolved with an `` containing the encrypted key data. - * - * The wrapping algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @since v15.0.0 - */ - wrapKey( - format: KeyFormat, - key: CryptoKey, - wrappingKey: CryptoKey, - wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - ): Promise; - } - } - - global { - var crypto: typeof globalThis extends { - crypto: infer T; - onmessage: any; - } ? T - : webcrypto.Crypto; - } -} -declare module "node:crypto" { - export * from "crypto"; -} diff --git a/mcp-server/node_modules/@types/node/dgram.d.ts b/mcp-server/node_modules/@types/node/dgram.d.ts deleted file mode 100644 index 4c74367..0000000 --- a/mcp-server/node_modules/@types/node/dgram.d.ts +++ /dev/null @@ -1,597 +0,0 @@ -/** - * The `node:dgram` module provides an implementation of UDP datagram sockets. - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dgram.js) - */ -declare module "dgram" { - import { NonSharedBuffer } from "node:buffer"; - import { AddressInfo } from "node:net"; - import * as dns from "node:dns"; - import { Abortable, EventEmitter } from "node:events"; - interface RemoteInfo { - address: string; - family: "IPv4" | "IPv6"; - port: number; - size: number; - } - interface BindOptions { - port?: number | undefined; - address?: string | undefined; - exclusive?: boolean | undefined; - fd?: number | undefined; - } - type SocketType = "udp4" | "udp6"; - interface SocketOptions extends Abortable { - type: SocketType; - reuseAddr?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - recvBufferSize?: number | undefined; - sendBufferSize?: number | undefined; - lookup?: - | (( - hostname: string, - options: dns.LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ) => void) - | undefined; - } - /** - * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram - * messages. When `address` and `port` are not passed to `socket.bind()` the - * method will bind the socket to the "all interfaces" address on a random port - * (it does the right thing for both `udp4` and `udp6` sockets). The bound address - * and port can be retrieved using `socket.address().address` and `socket.address().port`. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket: - * - * ```js - * const controller = new AbortController(); - * const { signal } = controller; - * const server = dgram.createSocket({ type: 'udp4', signal }); - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * // Later, when you want to close the server. - * controller.abort(); - * ``` - * @since v0.11.13 - * @param options Available options are: - * @param callback Attached as a listener for `'message'` events. Optional. - */ - function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - /** - * Encapsulates the datagram functionality. - * - * New instances of `dgram.Socket` are created using {@link createSocket}. - * The `new` keyword is not to be used to create `dgram.Socket` instances. - * @since v0.1.99 - */ - class Socket extends EventEmitter { - /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not - * specified, the operating system will choose - * one interface and will add membership to it. To add membership to every - * available interface, call `addMembership` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * - * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: - * - * ```js - * import cluster from 'node:cluster'; - * import dgram from 'node:dgram'; - * - * if (cluster.isPrimary) { - * cluster.fork(); // Works ok. - * cluster.fork(); // Fails with EADDRINUSE. - * } else { - * const s = dgram.createSocket('udp4'); - * s.bind(1234, () => { - * s.addMembership('224.0.0.114'); - * }); - * } - * ``` - * @since v0.6.9 - */ - addMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family`, and `port` properties. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.99 - */ - address(): AddressInfo; - /** - * For UDP sockets, causes the `dgram.Socket` to listen for datagram - * messages on a named `port` and optional `address`. If `port` is not - * specified or is `0`, the operating system will attempt to bind to a - * random port. If `address` is not specified, the operating system will - * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is - * called. - * - * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very - * useful. - * - * A bound datagram socket keeps the Node.js process running to receive - * datagram messages. - * - * If binding fails, an `'error'` event is generated. In rare case (e.g. - * attempting to bind with a closed socket), an `Error` may be thrown. - * - * Example of a UDP server listening on port 41234: - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @since v0.1.99 - * @param callback with no parameters. Called when binding is complete. - */ - bind(port?: number, address?: string, callback?: () => void): this; - bind(port?: number, callback?: () => void): this; - bind(callback?: () => void): this; - bind(options: BindOptions, callback?: () => void): this; - /** - * Close the underlying socket and stop listening for data on it. If a callback is - * provided, it is added as a listener for the `'close'` event. - * @since v0.1.99 - * @param callback Called when the socket has been closed. - */ - close(callback?: () => void): this; - /** - * Associates the `dgram.Socket` to a remote address and port. Every - * message sent by this handle is automatically sent to that destination. Also, - * the socket will only receive messages from that remote peer. - * Trying to call `connect()` on an already connected socket will result - * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not - * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) - * will be used by default. Once the connection is complete, a `'connect'` event - * is emitted and the optional `callback` function is called. In case of failure, - * the `callback` is called or, failing this, an `'error'` event is emitted. - * @since v12.0.0 - * @param callback Called when the connection is completed or on error. - */ - connect(port: number, address?: string, callback?: () => void): void; - connect(port: number, callback: () => void): void; - /** - * A synchronous function that disassociates a connected `dgram.Socket` from - * its remote address. Trying to call `disconnect()` on an unbound or already - * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. - * @since v12.0.0 - */ - disconnect(): void; - /** - * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the - * kernel when the socket is closed or the process terminates, so most apps will - * never have reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v0.6.9 - */ - dropMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_RCVBUF` socket receive buffer size in bytes. - */ - getRecvBufferSize(): number; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_SNDBUF` socket send buffer size in bytes. - */ - getSendBufferSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of bytes queued for sending. - */ - getSendQueueSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of send requests currently in the queue awaiting to be processed. - */ - getSendQueueCount(): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active. The `socket.ref()` method adds the socket back to the reference - * counting and restores the default behavior. - * - * Calling `socket.ref()` multiples times will have no additional effect. - * - * The `socket.ref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - ref(): this; - /** - * Returns an object containing the `address`, `family`, and `port` of the remote - * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception - * if the socket is not connected. - * @since v12.0.0 - */ - remoteAddress(): AddressInfo; - /** - * Broadcasts a datagram on the socket. - * For connectionless sockets, the destination `port` and `address` must be - * specified. Connected sockets, on the other hand, will use their associated - * remote endpoint, so the `port` and `address` arguments must not be set. - * - * The `msg` argument contains the message to be sent. - * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, - * any `TypedArray` or a `DataView`, - * the `offset` and `length` specify the offset within the `Buffer` where the - * message begins and the number of bytes in the message, respectively. - * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that - * contain multi-byte characters, `offset` and `length` will be calculated with - * respect to `byte length` and not the character position. - * If `msg` is an array, `offset` and `length` must not be specified. - * - * The `address` argument is a string. If the value of `address` is a host name, - * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. - * - * If the socket has not been previously bound with a call to `bind`, the socket - * is assigned a random port number and is bound to the "all interfaces" address - * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) - * - * An optional `callback` function may be specified to as a way of reporting - * DNS errors or for determining when it is safe to reuse the `buf` object. - * DNS lookups delay the time to send for at least one tick of the - * Node.js event loop. - * - * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be - * passed as the first argument to the `callback`. If a `callback` is not given, - * the error is emitted as an `'error'` event on the `socket` object. - * - * Offset and length are optional but both _must_ be set if either are used. - * They are supported only when the first argument is a `Buffer`, a `TypedArray`, - * or a `DataView`. - * - * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. - * - * Example of sending a UDP packet to a port on `localhost`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.send(message, 41234, 'localhost', (err) => { - * client.close(); - * }); - * ``` - * - * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('Some '); - * const buf2 = Buffer.from('bytes'); - * const client = dgram.createSocket('udp4'); - * client.send([buf1, buf2], 41234, (err) => { - * client.close(); - * }); - * ``` - * - * Sending multiple buffers might be faster or slower depending on the - * application and operating system. Run benchmarks to - * determine the optimal strategy on a case-by-case basis. Generally speaking, - * however, sending multiple buffers is faster. - * - * Example of sending a UDP packet using a socket connected to a port on `localhost`: - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.connect(41234, 'localhost', (err) => { - * client.send(message, (err) => { - * client.close(); - * }); - * }); - * ``` - * @since v0.1.99 - * @param msg Message to be sent. - * @param offset Offset in the buffer where the message starts. - * @param length Number of bytes in the message. - * @param port Destination port. - * @param address Destination host name or IP address. - * @param callback Called when the message has been sent. - */ - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - /** - * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP - * packets may be sent to a local interface's broadcast address. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.6.9 - */ - setBroadcast(flag: boolean): void; - /** - * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC - * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ - * _with a scope index is written as `'IP%scope'` where scope is an interface name_ - * _or interface number._ - * - * Sets the default outgoing multicast interface of the socket to a chosen - * interface or back to system interface selection. The `multicastInterface` must - * be a valid string representation of an IP from the socket's family. - * - * For IPv4 sockets, this should be the IP configured for the desired physical - * interface. All packets sent to multicast on the socket will be sent on the - * interface determined by the most recent successful use of this call. - * - * For IPv6 sockets, `multicastInterface` should include a scope to indicate the - * interface as in the examples that follow. In IPv6, individual `send` calls can - * also use explicit scope in addresses, so only packets sent to a multicast - * address without specifying an explicit scope are affected by the most recent - * successful use of this call. - * - * This method throws `EBADF` if called on an unbound socket. - * - * #### Example: IPv6 outgoing multicast interface - * - * On most systems, where scope format uses the interface name: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%eth1'); - * }); - * ``` - * - * On Windows, where scope format uses an interface number: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%2'); - * }); - * ``` - * - * #### Example: IPv4 outgoing multicast interface - * - * All systems use an IP of the host on the desired physical interface: - * - * ```js - * const socket = dgram.createSocket('udp4'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('10.0.0.2'); - * }); - * ``` - * @since v8.6.0 - */ - setMulticastInterface(multicastInterface: string): void; - /** - * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, - * multicast packets will also be received on the local interface. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastLoopback(flag: boolean): boolean; - /** - * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for - * "Time to Live", in this context it specifies the number of IP hops that a - * packet is allowed to travel through, specifically for multicast traffic. Each - * router or gateway that forwards a packet decrements the TTL. If the TTL is - * decremented to 0 by a router, it will not be forwarded. - * - * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastTTL(ttl: number): number; - /** - * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setRecvBufferSize(size: number): void; - /** - * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setSendBufferSize(size: number): void; - /** - * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", - * in this context it specifies the number of IP hops that a packet is allowed to - * travel through. Each router or gateway that forwards a packet decrements the - * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. - * Changing TTL values is typically done for network probes or when multicasting. - * - * The `ttl` argument may be between 1 and 255\. The default on most systems - * is 64. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.101 - */ - setTTL(ttl: number): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active, allowing the process to exit even if the socket is still - * listening. - * - * Calling `socket.unref()` multiple times will have no additional effect. - * - * The `socket.unref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - unref(): this; - /** - * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket - * option. If the `multicastInterface` argument - * is not specified, the operating system will choose one interface and will add - * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * @since v13.1.0, v12.16.0 - */ - addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is - * automatically called by the kernel when the - * socket is closed or the process terminates, so most apps will never have - * reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v13.1.0, v12.16.0 - */ - dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. error - * 4. listening - * 5. message - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - /** - * Calls `socket.close()` and returns a promise that fulfills when the socket has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } -} -declare module "node:dgram" { - export * from "dgram"; -} diff --git a/mcp-server/node_modules/@types/node/diagnostics_channel.d.ts b/mcp-server/node_modules/@types/node/diagnostics_channel.d.ts deleted file mode 100644 index f758aec..0000000 --- a/mcp-server/node_modules/@types/node/diagnostics_channel.d.ts +++ /dev/null @@ -1,578 +0,0 @@ -/** - * The `node:diagnostics_channel` module provides an API to create named channels - * to report arbitrary message data for diagnostics purposes. - * - * It can be accessed using: - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * ``` - * - * It is intended that a module writer wanting to report diagnostics messages - * will create one or many top-level channels to report messages through. - * Channels may also be acquired at runtime but it is not encouraged - * due to the additional overhead of doing so. Channels may be exported for - * convenience, but as long as the name is known it can be acquired anywhere. - * - * If you intend for your module to produce diagnostics data for others to - * consume it is recommended that you include documentation of what named - * channels are used along with the shape of the message data. Channel names - * should generally include the module name to avoid collisions with data from - * other modules. - * @since v15.1.0, v14.17.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/diagnostics_channel.js) - */ -declare module "diagnostics_channel" { - import { AsyncLocalStorage } from "node:async_hooks"; - /** - * Check if there are active subscribers to the named channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * if (diagnostics_channel.hasSubscribers('my-channel')) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return If there are active subscribers - */ - function hasSubscribers(name: string | symbol): boolean; - /** - * This is the primary entry-point for anyone wanting to publish to a named - * channel. It produces a channel object which is optimized to reduce overhead at - * publish time as much as possible. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return The named channel object - */ - function channel(name: string | symbol): Channel; - type ChannelListener = (message: unknown, name: string | symbol) => void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * diagnostics_channel.subscribe('my-channel', (message, name) => { - * // Received data - * }); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The handler to receive channel messages - */ - function subscribe(name: string | symbol, onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with {@link subscribe}. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * function onMessage(message, name) { - * // Received data - * } - * - * diagnostics_channel.subscribe('my-channel', onMessage); - * - * diagnostics_channel.unsubscribe('my-channel', onMessage); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; - /** - * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing - * channels will be created in the form of `tracing:${name}:${eventType}` where `eventType` corresponds to the types of `TracingChannel Channels`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); - * - * // or... - * - * const channelsByCollection = diagnostics_channel.tracingChannel({ - * start: diagnostics_channel.channel('tracing:my-channel:start'), - * end: diagnostics_channel.channel('tracing:my-channel:end'), - * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), - * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), - * error: diagnostics_channel.channel('tracing:my-channel:error'), - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` - * @return Collection of channels to trace with - */ - function tracingChannel< - StoreType = unknown, - ContextType extends object = StoreType extends object ? StoreType : object, - >( - nameOrChannels: string | TracingChannelCollection, - ): TracingChannel; - /** - * The class `Channel` represents an individual named channel within the data - * pipeline. It is used to track subscribers and to publish messages when there - * are subscribers present. It exists as a separate object to avoid channel - * lookups at publish time, enabling very fast publish speeds and allowing - * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly - * with `new Channel(name)` is not supported. - * @since v15.1.0, v14.17.0 - */ - class Channel { - readonly name: string | symbol; - /** - * Check if there are active subscribers to this channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * if (channel.hasSubscribers) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - */ - readonly hasSubscribers: boolean; - private constructor(name: string | symbol); - /** - * Publish a message to any subscribers to the channel. This will trigger - * message handlers synchronously so they will execute within the same context. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.publish({ - * some: 'message', - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @param message The message to send to the channel subscribers - */ - publish(message: unknown): void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.subscribe((message, name) => { - * // Received data - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)} - * @param onMessage The handler to receive channel messages - */ - subscribe(onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * function onMessage(message, name) { - * // Received data - * } - * - * channel.subscribe(onMessage); - * - * channel.unsubscribe(onMessage); - * ``` - * @since v15.1.0, v14.17.0 - * @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)} - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - unsubscribe(onMessage: ChannelListener): void; - /** - * When `channel.runStores(context, ...)` is called, the given context data - * will be applied to any store bound to the channel. If the store has already been - * bound the previous `transform` function will be replaced with the new one. - * The `transform` function may be omitted to set the given context data as the - * context directly. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (data) => { - * return { data }; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to which to bind the context data - * @param transform Transform context data before setting the store context - */ - bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; - /** - * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store); - * channel.unbindStore(store); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to unbind from the channel. - * @return `true` if the store was found, `false` otherwise. - */ - unbindStore(store: AsyncLocalStorage): boolean; - /** - * Applies the given data to any AsyncLocalStorage instances bound to the channel - * for the duration of the given function, then publishes to the channel within - * the scope of that data is applied to the stores. - * - * If a transform function was given to `channel.bindStore(store)` it will be - * applied to transform the message data before it becomes the context value for - * the store. The prior storage context is accessible from within the transform - * function in cases where context linking is required. - * - * The context applied to the store should be accessible in any async code which - * continues from execution which began during the given function, however - * there are some situations in which `context loss` may occur. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (message) => { - * const parent = store.getStore(); - * return new Span(message, parent); - * }); - * channel.runStores({ some: 'message' }, () => { - * store.getStore(); // Span({ some: 'message' }) - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param context Message to send to subscribers and bind to stores - * @param fn Handler to run within the entered storage context - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runStores( - context: ContextType, - fn: (this: ThisArg, ...args: Args) => Result, - thisArg?: ThisArg, - ...args: Args - ): Result; - } - interface TracingChannelSubscribers { - start: (message: ContextType) => void; - end: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncStart: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncEnd: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - error: ( - message: ContextType & { - error: unknown; - }, - ) => void; - } - interface TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - } - /** - * The class `TracingChannel` is a collection of `TracingChannel Channels` which - * together express a single traceable action. It is used to formalize and - * simplify the process of producing events for tracing application flow. {@link tracingChannel} is used to construct a `TracingChannel`. As with `Channel` it is recommended to create and reuse a - * single `TracingChannel` at the top-level of the file rather than creating them - * dynamically. - * @since v19.9.0 - * @experimental - */ - class TracingChannel implements TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - /** - * Helper to subscribe a collection of functions to the corresponding channels. - * This is the same as calling `channel.subscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.subscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - */ - subscribe(subscribers: TracingChannelSubscribers): void; - /** - * Helper to unsubscribe a collection of functions from the corresponding channels. - * This is the same as calling `channel.unsubscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.unsubscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. - */ - unsubscribe(subscribers: TracingChannelSubscribers): void; - /** - * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. - * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceSync(() => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Function to wrap a trace around - * @param context Shared object to correlate events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceSync( - fn: (this: ThisArg, ...args: Args) => Result, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also - * produce an `error event` if the given function throws an error or the - * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.tracePromise(async () => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Promise-returning function to wrap a trace around - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return Chained from promise returned by the given function - */ - tracePromise( - fn: (this: ThisArg, ...args: Args) => Promise, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Promise; - /** - * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or - * the returned - * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * The `position` will be -1 by default to indicate the final argument should - * be used as the callback. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceCallback((arg1, callback) => { - * // Do something - * callback(null, 'result'); - * }, 1, { - * some: 'thing', - * }, thisArg, arg1, callback); - * ``` - * - * The callback will also be run with `channel.runStores(context, ...)` which - * enables context loss recovery in some cases. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * const myStore = new AsyncLocalStorage(); - * - * // The start channel sets the initial store data to something - * // and stores that store data value on the trace context object - * channels.start.bindStore(myStore, (data) => { - * const span = new Span(data); - * data.span = span; - * return span; - * }); - * - * // Then asyncStart can restore from that data it stored previously - * channels.asyncStart.bindStore(myStore, (data) => { - * return data.span; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn callback using function to wrap a trace around - * @param position Zero-indexed argument position of expected callback - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceCallback( - fn: (this: ThisArg, ...args: Args) => Result, - position?: number, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * `true` if any of the individual channels has a subscriber, `false` if not. - * - * This is a helper method available on a {@link TracingChannel} instance to check - * if any of the [TracingChannel Channels](https://nodejs.org/api/diagnostics_channel.html#tracingchannel-channels) have subscribers. - * A `true` is returned if any of them have at least one subscriber, a `false` is returned otherwise. - * - * ```js - * const diagnostics_channel = require('node:diagnostics_channel'); - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * if (channels.hasSubscribers) { - * // Do something - * } - * ``` - * @since v22.0.0, v20.13.0 - */ - readonly hasSubscribers: boolean; - } -} -declare module "node:diagnostics_channel" { - export * from "diagnostics_channel"; -} diff --git a/mcp-server/node_modules/@types/node/dns.d.ts b/mcp-server/node_modules/@types/node/dns.d.ts deleted file mode 100644 index acb5264..0000000 --- a/mcp-server/node_modules/@types/node/dns.d.ts +++ /dev/null @@ -1,871 +0,0 @@ -/** - * The `node:dns` module enables name resolution. For example, use it to look up IP - * addresses of host names. - * - * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the - * DNS protocol for lookups. {@link lookup} uses the operating system - * facilities to perform name resolution. It may not need to perform any network - * communication. To perform name resolution the way other applications on the same - * system do, use {@link lookup}. - * - * ```js - * import dns from 'node:dns'; - * - * dns.lookup('example.org', (err, address, family) => { - * console.log('address: %j family: IPv%s', address, family); - * }); - * // address: "93.184.216.34" family: IPv4 - * ``` - * - * All other functions in the `node:dns` module connect to an actual DNS server to - * perform name resolution. They will always use the network to perform DNS - * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform - * DNS queries, bypassing other name-resolution facilities. - * - * ```js - * import dns from 'node:dns'; - * - * dns.resolve4('archive.org', (err, addresses) => { - * if (err) throw err; - * - * console.log(`addresses: ${JSON.stringify(addresses)}`); - * - * addresses.forEach((a) => { - * dns.reverse(a, (err, hostnames) => { - * if (err) { - * throw err; - * } - * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); - * }); - * }); - * }); - * ``` - * - * See the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) for more information. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dns.js) - */ -declare module "dns" { - import * as dnsPromises from "node:dns/promises"; - // Supported getaddrinfo flags. - /** - * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are - * only returned if the current system has at least one IPv4 address configured. - */ - export const ADDRCONFIG: number; - /** - * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported - * on some operating systems (e.g. FreeBSD 10.1). - */ - export const V4MAPPED: number; - /** - * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as - * well as IPv4 mapped IPv6 addresses. - */ - export const ALL: number; - export interface LookupOptions { - /** - * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted - * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used - * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned. - * @default 0 - */ - family?: number | "IPv4" | "IPv6" | undefined; - /** - * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v20.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be - * passed by bitwise `OR`ing their values. - */ - hints?: number | undefined; - /** - * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address. - * @default false - */ - all?: boolean | undefined; - /** - * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted - * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6 - * addresses before IPv4 addresses. Default value is configurable using - * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * @default `verbatim` (addresses are not reordered) - */ - order?: "ipv4first" | "ipv6first" | "verbatim" | undefined; - /** - * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4 - * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified, - * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder} - * or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * @default true (addresses are not reordered) - */ - verbatim?: boolean | undefined; - } - export interface LookupOneOptions extends LookupOptions { - all?: false | undefined; - } - export interface LookupAllOptions extends LookupOptions { - all: true; - } - export interface LookupAddress { - /** - * A string representation of an IPv4 or IPv6 address. - */ - address: string; - /** - * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a - * bug in the name resolution service used by the operating system. - */ - family: number; - } - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then - * IPv4 and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the - * properties `address` and `family`. - * - * On error, `err` is an `Error` object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. - * The implementation uses an operating system facility that can associate names - * with addresses and vice versa. This implementation can have subtle but - * important consequences on the behavior of any Node.js program. Please take some - * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) - * before using `dns.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * dns.lookup('example.com', options, (err, address, family) => - * console.log('address: %j family: IPv%s', address, family)); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dns.lookup('example.com', options, (err, addresses) => - * console.log('addresses: %j', addresses)); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed - * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties. - * @since v0.1.90 - */ - export function lookup( - hostname: string, - family: number, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupAllOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void, - ): void; - export function lookup( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export namespace lookup { - function __promisify__(hostname: string, options: LookupAllOptions): Promise; - function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; - function __promisify__(hostname: string, options: LookupOptions): Promise; - } - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, - * where `err.code` is the error code. - * - * ```js - * import dns from 'node:dns'; - * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { - * console.log(hostname, service); - * // Prints: localhost ssh - * }); - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed - * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties. - * @since v0.11.14 - */ - export function lookupService( - address: string, - port: number, - callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void, - ): void; - export namespace lookupService { - function __promisify__( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - } - export interface ResolveOptions { - ttl: boolean; - } - export interface ResolveWithTtlOptions extends ResolveOptions { - ttl: true; - } - export interface RecordWithTtl { - address: string; - ttl: number; - } - /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ - export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; - export interface AnyARecord extends RecordWithTtl { - type: "A"; - } - export interface AnyAaaaRecord extends RecordWithTtl { - type: "AAAA"; - } - export interface CaaRecord { - critical: number; - issue?: string | undefined; - issuewild?: string | undefined; - iodef?: string | undefined; - contactemail?: string | undefined; - contactphone?: string | undefined; - } - export interface AnyCaaRecord extends CaaRecord { - type: "CAA"; - } - export interface MxRecord { - priority: number; - exchange: string; - } - export interface AnyMxRecord extends MxRecord { - type: "MX"; - } - export interface NaptrRecord { - flags: string; - service: string; - regexp: string; - replacement: string; - order: number; - preference: number; - } - export interface AnyNaptrRecord extends NaptrRecord { - type: "NAPTR"; - } - export interface SoaRecord { - nsname: string; - hostmaster: string; - serial: number; - refresh: number; - retry: number; - expire: number; - minttl: number; - } - export interface AnySoaRecord extends SoaRecord { - type: "SOA"; - } - export interface SrvRecord { - priority: number; - weight: number; - port: number; - name: string; - } - export interface AnySrvRecord extends SrvRecord { - type: "SRV"; - } - export interface AnyTxtRecord { - type: "TXT"; - entries: string[]; - } - export interface AnyNsRecord { - type: "NS"; - value: string; - } - export interface AnyPtrRecord { - type: "PTR"; - value: string; - } - export interface AnyCnameRecord { - type: "CNAME"; - value: string; - } - export type AnyRecord = - | AnyARecord - | AnyAaaaRecord - | AnyCaaRecord - | AnyCnameRecord - | AnyMxRecord - | AnyNaptrRecord - | AnyNsRecord - | AnyPtrRecord - | AnySoaRecord - | AnySrvRecord - | AnyTxtRecord; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource - * records. The type and structure of individual results varies based on `rrtype`: - * - * - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, - * where `err.code` is one of the `DNS error codes`. - * @since v0.1.27 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - export function resolve( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "ANY", - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "CAA", - callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "MX", - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "NAPTR", - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SOA", - callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SRV", - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "TXT", - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: string, - callback: ( - err: NodeJS.ErrnoException | null, - addresses: - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[], - ) => void, - ): void; - export namespace resolve { - function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function __promisify__(hostname: string, rrtype: "ANY"): Promise; - function __promisify__(hostname: string, rrtype: "CAA"): Promise; - function __promisify__(hostname: string, rrtype: "MX"): Promise; - function __promisify__(hostname: string, rrtype: "NAPTR"): Promise; - function __promisify__(hostname: string, rrtype: "SOA"): Promise; - function __promisify__(hostname: string, rrtype: "SRV"): Promise; - function __promisify__(hostname: string, rrtype: "TXT"): Promise; - function __promisify__( - hostname: string, - rrtype: string, - ): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[] - >; - } - /** - * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve4( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve4 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv6 addresses. - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve6( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve6 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`). - * @since v0.3.2 - */ - export function resolveCname( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveCname { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of certification authority authorization records - * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - export function resolveCaa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void, - ): void; - export namespace resolveCaa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v0.1.27 - */ - export function resolveMx( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export namespace resolveMx { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of - * objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v0.9.12 - */ - export function resolveNaptr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export namespace resolveNaptr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`). - * @since v0.1.90 - */ - export function resolveNs( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveNs { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of strings containing the reply records. - * @since v6.0.0 - */ - export function resolvePtr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolvePtr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. The `address` argument passed to the `callback` function will - * be an object with the following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v0.11.10 - */ - export function resolveSoa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void, - ): void; - export namespace resolveSoa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of objects with the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v0.1.27 - */ - export function resolveSrv( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export namespace resolveSrv { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a - * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v0.1.27 - */ - export function resolveTxt( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export namespace resolveTxt { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * The `ret` argument passed to the `callback` function will be an array containing - * various types of records. Each object has a property `type` that indicates the - * type of the current record. And depending on the `type`, additional properties - * will be present on the object: - * - * - * - * Here is an example of the `ret` object passed to the callback: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * - * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see - * [RFC 8482](https://tools.ietf.org/html/rfc8482). - */ - export function resolveAny( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export namespace resolveAny { - function __promisify__(hostname: string): Promise; - } - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is - * one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v0.1.16 - */ - export function reverse( - ip: string, - callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void, - ): void; - /** - * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `order` defaulting to `ipv4first`. - * * `ipv6first`: for `order` defaulting to `ipv6first`. - * * `verbatim`: for `order` defaulting to `verbatim`. - * @since v18.17.0 - */ - export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dns.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dns.setServers()` method must not be called while a DNS query is in - * progress. - * - * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v0.11.3 - * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses - */ - export function setServers(servers: readonly string[]): void; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v0.11.3 - */ - export function getServers(): string[]; - /** - * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and {@link setDefaultResultOrder} have higher - * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). When using - * [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main - * thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - export const NODATA: "ENODATA"; - export const FORMERR: "EFORMERR"; - export const SERVFAIL: "ESERVFAIL"; - export const NOTFOUND: "ENOTFOUND"; - export const NOTIMP: "ENOTIMP"; - export const REFUSED: "EREFUSED"; - export const BADQUERY: "EBADQUERY"; - export const BADNAME: "EBADNAME"; - export const BADFAMILY: "EBADFAMILY"; - export const BADRESP: "EBADRESP"; - export const CONNREFUSED: "ECONNREFUSED"; - export const TIMEOUT: "ETIMEOUT"; - export const EOF: "EOF"; - export const FILE: "EFILE"; - export const NOMEM: "ENOMEM"; - export const DESTRUCTION: "EDESTRUCTION"; - export const BADSTR: "EBADSTR"; - export const BADFLAGS: "EBADFLAGS"; - export const NONAME: "ENONAME"; - export const BADHINTS: "EBADHINTS"; - export const NOTINITIALIZED: "ENOTINITIALIZED"; - export const LOADIPHLPAPI: "ELOADIPHLPAPI"; - export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - export const CANCELLED: "ECANCELLED"; - export interface ResolverOptions { - /** - * Query timeout in milliseconds, or `-1` to use the default timeout. - */ - timeout?: number | undefined; - /** - * The number of tries the resolver will try contacting each name server before giving up. - * @default 4 - */ - tries?: number | undefined; - } - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnssetserversservers) does not affect - * other resolvers: - * - * ```js - * import { Resolver } from 'node:dns'; - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org', (err, addresses) => { - * // ... - * }); - * ``` - * - * The following methods from the `node:dns` module are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v8.3.0 - */ - export class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } - export { dnsPromises as promises }; -} -declare module "node:dns" { - export * from "dns"; -} diff --git a/mcp-server/node_modules/@types/node/dns/promises.d.ts b/mcp-server/node_modules/@types/node/dns/promises.d.ts deleted file mode 100644 index 29ae2ba..0000000 --- a/mcp-server/node_modules/@types/node/dns/promises.d.ts +++ /dev/null @@ -1,479 +0,0 @@ -/** - * The `dns.promises` API provides an alternative set of asynchronous DNS methods - * that return `Promise` objects rather than using callbacks. The API is accessible - * via `import { promises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`. - * @since v10.6.0 - */ -declare module "dns/promises" { - import { - AnyRecord, - CaaRecord, - LookupAddress, - LookupAllOptions, - LookupOneOptions, - LookupOptions, - MxRecord, - NaptrRecord, - RecordWithTtl, - ResolveOptions, - ResolverOptions, - ResolveWithTtlOptions, - SoaRecord, - SrvRecord, - } from "node:dns"; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v10.6.0 - */ - function getServers(): string[]; - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 - * and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS - * protocol. The implementation uses an operating system facility that can - * associate names with addresses and vice versa. This implementation can have - * subtle but important consequences on the behavior of any Node.js program. Please - * take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before - * using `dnsPromises.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const dnsPromises = dns.promises; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('address: %j family: IPv%s', result.address, result.family); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * }); - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('addresses: %j', result); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * }); - * ``` - * @since v10.6.0 - */ - function lookup(hostname: string, family: number): Promise; - function lookup(hostname: string, options: LookupOneOptions): Promise; - function lookup(hostname: string, options: LookupAllOptions): Promise; - function lookup(hostname: string, options: LookupOptions): Promise; - function lookup(hostname: string): Promise; - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * - * ```js - * import dns from 'node:dns'; - * dns.promises.lookupService('127.0.0.1', 22).then((result) => { - * console.log(result.hostname, result.service); - * // Prints: localhost ssh - * }); - * ``` - * @since v10.6.0 - */ - function lookupService( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. When successful, the `Promise` is resolved with an - * array of resource records. The type and structure of individual results vary - * based on `rrtype`: - * - * - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - function resolve(hostname: string): Promise; - function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function resolve(hostname: string, rrtype: "ANY"): Promise; - function resolve(hostname: string, rrtype: "CAA"): Promise; - function resolve(hostname: string, rrtype: "MX"): Promise; - function resolve(hostname: string, rrtype: "NAPTR"): Promise; - function resolve(hostname: string, rrtype: "SOA"): Promise; - function resolve(hostname: string, rrtype: "SRV"): Promise; - function resolve(hostname: string, rrtype: "TXT"): Promise; - function resolve(hostname: string, rrtype: string): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[] - >; - /** - * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4 - * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve4(hostname: string): Promise; - function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve4(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6 - * addresses. - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve6(hostname: string): Promise; - function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve6(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * On success, the `Promise` is resolved with an array containing various types of - * records. Each object has a property `type` that indicates the type of the - * current record. And depending on the `type`, additional properties will be - * present on the object: - * - * - * - * Here is an example of the result object: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * @since v10.6.0 - */ - function resolveAny(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, - * the `Promise` is resolved with an array of objects containing available - * certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - function resolveCaa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, - * the `Promise` is resolved with an array of canonical name records available for - * the `hostname` (e.g. `['bar.example.com']`). - * @since v10.6.0 - */ - function resolveCname(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects - * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v10.6.0 - */ - function resolveMx(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array - * of objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v10.6.0 - */ - function resolveNaptr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server - * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). - * @since v10.6.0 - */ - function resolveNs(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings - * containing the reply records. - * @since v10.6.0 - */ - function resolvePtr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. On success, the `Promise` is resolved with an object with the - * following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v10.6.0 - */ - function resolveSoa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with - * the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v10.6.0 - */ - function resolveSrv(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array - * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v10.6.0 - */ - function resolveTxt(hostname: string): Promise; - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - */ - function reverse(ip: string): Promise; - /** - * Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `verbatim` defaulting to `false`. - * * `verbatim`: for `verbatim` defaulting to `true`. - * @since v20.1.0 - */ - function getDefaultResultOrder(): "ipv4first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dnsPromises.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dnsPromises.setServers()` method must not be called while a DNS query is in - * progress. - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v10.6.0 - * @param servers array of `RFC 5952` formatted addresses - */ - function setServers(servers: readonly string[]): void; - /** - * Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * from the main thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - const NODATA: "ENODATA"; - const FORMERR: "EFORMERR"; - const SERVFAIL: "ESERVFAIL"; - const NOTFOUND: "ENOTFOUND"; - const NOTIMP: "ENOTIMP"; - const REFUSED: "EREFUSED"; - const BADQUERY: "EBADQUERY"; - const BADNAME: "EBADNAME"; - const BADFAMILY: "EBADFAMILY"; - const BADRESP: "EBADRESP"; - const CONNREFUSED: "ECONNREFUSED"; - const TIMEOUT: "ETIMEOUT"; - const EOF: "EOF"; - const FILE: "EFILE"; - const NOMEM: "ENOMEM"; - const DESTRUCTION: "EDESTRUCTION"; - const BADSTR: "EBADSTR"; - const BADFLAGS: "EBADFLAGS"; - const NONAME: "ENONAME"; - const BADHINTS: "EBADHINTS"; - const NOTINITIALIZED: "ENOTINITIALIZED"; - const LOADIPHLPAPI: "ELOADIPHLPAPI"; - const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - const CANCELLED: "ECANCELLED"; - - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect - * other resolvers: - * - * ```js - * import dns from 'node:dns'; - * const { Resolver } = dns.promises; - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org').then((addresses) => { - * // ... - * }); - * - * // Alternatively, the same code can be written using async-await style. - * (async function() { - * const addresses = await resolver.resolve4('example.org'); - * })(); - * ``` - * - * The following methods from the `dnsPromises` API are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v10.6.0 - */ - class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } -} -declare module "node:dns/promises" { - export * from "dns/promises"; -} diff --git a/mcp-server/node_modules/@types/node/domain.d.ts b/mcp-server/node_modules/@types/node/domain.d.ts deleted file mode 100644 index d83b0f0..0000000 --- a/mcp-server/node_modules/@types/node/domain.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** - * **This module is pending deprecation.** Once a replacement API has been - * finalized, this module will be fully deprecated. Most developers should - * **not** have cause to use this module. Users who absolutely must have - * the functionality that domains provide may rely on it for the time being - * but should expect to have to migrate to a different solution - * in the future. - * - * Domains provide a way to handle multiple different IO operations as a - * single group. If any of the event emitters or callbacks registered to a - * domain emit an `'error'` event, or throw an error, then the domain object - * will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to - * exit immediately with an error code. - * @deprecated Since v1.4.2 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/domain.js) - */ -declare module "domain" { - import EventEmitter = require("node:events"); - /** - * The `Domain` class encapsulates the functionality of routing errors and - * uncaught exceptions to the active `Domain` object. - * - * To handle the errors that it catches, listen to its `'error'` event. - */ - class Domain extends EventEmitter { - /** - * An array of timers and event emitters that have been explicitly added - * to the domain. - */ - members: Array; - /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly - * pushes the domain onto the domain - * stack managed by the domain module (see {@link exit} for details on the - * domain stack). The call to `enter()` delimits the beginning of a chain of - * asynchronous calls and I/O operations bound to a domain. - * - * Calling `enter()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - enter(): void; - /** - * The `exit()` method exits the current domain, popping it off the domain stack. - * Any time execution is going to switch to the context of a different chain of - * asynchronous calls, it's important to ensure that the current domain is exited. - * The call to `exit()` delimits either the end of or an interruption to the chain - * of asynchronous calls and I/O operations bound to a domain. - * - * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain. - * - * Calling `exit()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - exit(): void; - /** - * Run the supplied function in the context of the domain, implicitly - * binding all event emitters, timers, and low-level requests that are - * created in that context. Optionally, arguments can be passed to - * the function. - * - * This is the most basic way to use a domain. - * - * ```js - * import domain from 'node:domain'; - * import fs from 'node:fs'; - * const d = domain.create(); - * d.on('error', (er) => { - * console.error('Caught error!', er); - * }); - * d.run(() => { - * process.nextTick(() => { - * setTimeout(() => { // Simulating some various async stuff - * fs.open('non-existent file', 'r', (er, fd) => { - * if (er) throw er; - * // proceed... - * }); - * }, 100); - * }); - * }); - * ``` - * - * In this example, the `d.on('error')` handler will be triggered, rather - * than crashing the program. - */ - run(fn: (...args: any[]) => T, ...args: any[]): T; - /** - * Explicitly adds an emitter to the domain. If any event handlers called by - * the emitter throw an error, or if the emitter emits an `'error'` event, it - * will be routed to the domain's `'error'` event, just like with implicit - * binding. - * - * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by - * the domain `'error'` handler. - * - * If the Timer or `EventEmitter` was already bound to a domain, it is removed - * from that one, and bound to this one instead. - * @param emitter emitter or timer to be added to the domain - */ - add(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The opposite of {@link add}. Removes domain handling from the - * specified emitter. - * @param emitter emitter or timer to be removed from the domain - */ - remove(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The returned function will be a wrapper around the supplied callback - * function. When the returned function is called, any errors that are - * thrown will be routed to the domain's `'error'` event. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.bind((er, data) => { - * // If this throws, it will also be passed to the domain. - * return cb(er, data ? JSON.parse(data) : null); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The bound function - */ - bind(callback: T): T; - /** - * This method is almost identical to {@link bind}. However, in - * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. - * - * In this way, the common `if (err) return callback(err);` pattern can be replaced - * with a single error handler in a single place. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.intercept((data) => { - * // Note, the first argument is never passed to the - * // callback since it is assumed to be the 'Error' argument - * // and thus intercepted by the domain. - * - * // If this throws, it will also be passed to the domain - * // so the error-handling logic can be moved to the 'error' - * // event on the domain instead of being repeated throughout - * // the program. - * return cb(null, JSON.parse(data)); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The intercepted function - */ - intercept(callback: T): T; - } - function create(): Domain; -} -declare module "node:domain" { - export * from "domain"; -} diff --git a/mcp-server/node_modules/@types/node/events.d.ts b/mcp-server/node_modules/@types/node/events.d.ts deleted file mode 100644 index 31ab3ca..0000000 --- a/mcp-server/node_modules/@types/node/events.d.ts +++ /dev/null @@ -1,977 +0,0 @@ -/** - * Much of the Node.js core API is built around an idiomatic asynchronous - * event-driven architecture in which certain kinds of objects (called "emitters") - * emit named events that cause `Function` objects ("listeners") to be called. - * - * For instance: a `net.Server` object emits an event each time a peer - * connects to it; a `fs.ReadStream` emits an event when the file is opened; - * a `stream` emits an event whenever data is available to be read. - * - * All objects that emit events are instances of the `EventEmitter` class. These - * objects expose an `eventEmitter.on()` function that allows one or more - * functions to be attached to named events emitted by the object. Typically, - * event names are camel-cased strings but any valid JavaScript property key - * can be used. - * - * When the `EventEmitter` object emits an event, all of the functions attached - * to that specific event are called _synchronously_. Any values returned by the - * called listeners are _ignored_ and discarded. - * - * The following example shows a simple `EventEmitter` instance with a single - * listener. The `eventEmitter.on()` method is used to register listeners, while - * the `eventEmitter.emit()` method is used to trigger the event. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * class MyEmitter extends EventEmitter {} - * - * const myEmitter = new MyEmitter(); - * myEmitter.on('event', () => { - * console.log('an event occurred!'); - * }); - * myEmitter.emit('event'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/events.js) - */ -declare module "events" { - import { AsyncResource, AsyncResourceOptions } from "node:async_hooks"; - interface EventEmitterOptions { - /** - * Enables automatic capturing of promise rejection. - */ - captureRejections?: boolean | undefined; - } - interface StaticEventEmitterOptions { - /** - * Can be used to cancel awaiting events. - */ - signal?: AbortSignal | undefined; - } - interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions { - /** - * Names of events that will end the iteration. - */ - close?: string[] | undefined; - /** - * The high watermark. The emitter is paused every time the size of events being buffered is higher than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default Number.MAX_SAFE_INTEGER - */ - highWaterMark?: number | undefined; - /** - * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default 1 - */ - lowWaterMark?: number | undefined; - } - interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} - type EventMap = Record | DefaultEventMap; - type DefaultEventMap = [never]; - type AnyRest = [...args: any[]]; - type Args = T extends DefaultEventMap ? AnyRest : ( - K extends keyof T ? T[K] : never - ); - type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; - type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; - type Listener = T extends DefaultEventMap ? F : ( - K extends keyof T ? ( - T[K] extends unknown[] ? (...args: T[K]) => void : never - ) - : never - ); - type Listener1 = Listener void>; - type Listener2 = Listener; - - /** - * The `EventEmitter` class is defined and exposed by the `node:events` module: - * - * ```js - * import { EventEmitter } from 'node:events'; - * ``` - * - * All `EventEmitter`s emit the event `'newListener'` when new listeners are - * added and `'removeListener'` when existing listeners are removed. - * - * It supports the following option: - * @since v0.1.26 - */ - class EventEmitter = DefaultEventMap> { - constructor(options?: EventEmitterOptions); - - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - - /** - * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given - * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. - * The `Promise` will resolve with an array of all the arguments emitted to the - * given event. - * - * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event - * semantics and does not listen to the `'error'` event. - * - * ```js - * import { once, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * process.nextTick(() => { - * ee.emit('myevent', 42); - * }); - * - * const [value] = await once(ee, 'myevent'); - * console.log(value); - * - * const err = new Error('kaboom'); - * process.nextTick(() => { - * ee.emit('error', err); - * }); - * - * try { - * await once(ee, 'myevent'); - * } catch (err) { - * console.error('error happened', err); - * } - * ``` - * - * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the - * '`error'` event itself, then it is treated as any other kind of event without - * special handling: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * - * once(ee, 'error') - * .then(([err]) => console.log('ok', err.message)) - * .catch((err) => console.error('error', err.message)); - * - * ee.emit('error', new Error('boom')); - * - * // Prints: ok boom - * ``` - * - * An `AbortSignal` can be used to cancel waiting for the event: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * const ac = new AbortController(); - * - * async function foo(emitter, event, signal) { - * try { - * await once(emitter, event, { signal }); - * console.log('event emitted!'); - * } catch (error) { - * if (error.name === 'AbortError') { - * console.error('Waiting for the event was canceled!'); - * } else { - * console.error('There was an error', error.message); - * } - * } - * } - * - * foo(ee, 'foo', ac.signal); - * ac.abort(); // Abort waiting for the event - * ee.emit('foo'); // Prints: Waiting for the event was canceled! - * ``` - * @since v11.13.0, v10.16.0 - */ - static once( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterOptions, - ): Promise; - static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; - /** - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo')) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * ``` - * - * Returns an `AsyncIterator` that iterates `eventName` events. It will throw - * if the `EventEmitter` emits `'error'`. It removes all listeners when - * exiting the loop. The `value` returned by each iteration is an array - * composed of the emitted event arguments. - * - * An `AbortSignal` can be used to cancel waiting on events: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ac = new AbortController(); - * - * (async () => { - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo', { signal: ac.signal })) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * })(); - * - * process.nextTick(() => ac.abort()); - * ``` - * - * Use the `close` option to specify an array of event names that will end the iteration: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * ee.emit('close'); - * }); - * - * for await (const event of on(ee, 'foo', { close: ['close'] })) { - * console.log(event); // prints ['bar'] [42] - * } - * // the loop will exit after 'close' is emitted - * console.log('done'); // prints 'done' - * ``` - * @since v13.6.0, v12.16.0 - * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter` - */ - static on( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - static on( - emitter: EventTarget, - eventName: string, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - /** - * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`. - * - * ```js - * import { EventEmitter, listenerCount } from 'node:events'; - * - * const myEmitter = new EventEmitter(); - * myEmitter.on('event', () => {}); - * myEmitter.on('event', () => {}); - * console.log(listenerCount(myEmitter, 'event')); - * // Prints: 2 - * ``` - * @since v0.9.12 - * @deprecated Since v3.2.0 - Use `listenerCount` instead. - * @param emitter The emitter to query - * @param eventName The event name - */ - static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the event listeners for the - * event target. This is useful for debugging and diagnostic purposes. - * - * ```js - * import { getEventListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * const listener = () => console.log('Events are fun'); - * ee.on('foo', listener); - * console.log(getEventListeners(ee, 'foo')); // [ [Function: listener] ] - * } - * { - * const et = new EventTarget(); - * const listener = () => console.log('Events are fun'); - * et.addEventListener('foo', listener); - * console.log(getEventListeners(et, 'foo')); // [ [Function: listener] ] - * } - * ``` - * @since v15.2.0, v14.17.0 - */ - static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; - /** - * Returns the currently set max amount of listeners. - * - * For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the max event listeners for the - * event target. If the number of event handlers on a single EventTarget exceeds - * the max set, the EventTarget will print a warning. - * - * ```js - * import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * console.log(getMaxListeners(ee)); // 10 - * setMaxListeners(11, ee); - * console.log(getMaxListeners(ee)); // 11 - * } - * { - * const et = new EventTarget(); - * console.log(getMaxListeners(et)); // 10 - * setMaxListeners(11, et); - * console.log(getMaxListeners(et)); // 11 - * } - * ``` - * @since v19.9.0 - */ - static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number; - /** - * ```js - * import { setMaxListeners, EventEmitter } from 'node:events'; - * - * const target = new EventTarget(); - * const emitter = new EventEmitter(); - * - * setMaxListeners(5, target, emitter); - * ``` - * @since v15.4.0 - * @param n A non-negative number. The maximum number of listeners per `EventTarget` event. - * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter} - * objects. - */ - static setMaxListeners(n?: number, ...eventTargets: Array): void; - /** - * Listens once to the `abort` event on the provided `signal`. - * - * Listening to the `abort` event on abort signals is unsafe and may - * lead to resource leaks since another third party with the signal can - * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change - * this since it would violate the web standard. Additionally, the original - * API makes it easy to forget to remove listeners. - * - * This API allows safely using `AbortSignal`s in Node.js APIs by solving these - * two issues by listening to the event such that `stopImmediatePropagation` does - * not prevent the listener from running. - * - * Returns a disposable so that it may be unsubscribed from more easily. - * - * ```js - * import { addAbortListener } from 'node:events'; - * - * function example(signal) { - * let disposable; - * try { - * signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); - * disposable = addAbortListener(signal, (e) => { - * // Do something when signal is aborted. - * }); - * } finally { - * disposable?.[Symbol.dispose](); - * } - * } - * ``` - * @since v20.5.0 - * @experimental - * @return Disposable that removes the `abort` listener. - */ - static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable; - /** - * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. - * - * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no - * regular `'error'` listener is installed. - * @since v13.6.0, v12.17.0 - */ - static readonly errorMonitor: unique symbol; - /** - * Value: `Symbol.for('nodejs.rejection')` - * - * See how to write a custom `rejection handler`. - * @since v13.4.0, v12.16.0 - */ - static readonly captureRejectionSymbol: unique symbol; - /** - * Value: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) - * - * Change the default `captureRejections` option on all new `EventEmitter` objects. - * @since v13.4.0, v12.16.0 - */ - static captureRejections: boolean; - /** - * By default, a maximum of `10` listeners can be registered for any single - * event. This limit can be changed for individual `EventEmitter` instances - * using the `emitter.setMaxListeners(n)` method. To change the default - * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property - * can be used. If this value is not a positive number, a `RangeError` is thrown. - * - * Take caution when setting the `events.defaultMaxListeners` because the - * change affects _all_ `EventEmitter` instances, including those created before - * the change is made. However, calling `emitter.setMaxListeners(n)` still has - * precedence over `events.defaultMaxListeners`. - * - * This is not a hard limit. The `EventEmitter` instance will allow - * more listeners to be added but will output a trace warning to stderr indicating - * that a "possible EventEmitter memory leak" has been detected. For any single - * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to - * temporarily avoid this warning: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.setMaxListeners(emitter.getMaxListeners() + 1); - * emitter.once('event', () => { - * // do stuff - * emitter.setMaxListeners(Math.max(emitter.getMaxListeners() - 1, 0)); - * }); - * ``` - * - * The `--trace-warnings` command-line flag can be used to display the - * stack trace for such warnings. - * - * The emitted warning can be inspected with `process.on('warning')` and will - * have the additional `emitter`, `type`, and `count` properties, referring to - * the event emitter instance, the event's name and the number of attached - * listeners, respectively. - * Its `name` property is set to `'MaxListenersExceededWarning'`. - * @since v0.11.2 - */ - static defaultMaxListeners: number; - } - import internal = require("node:events"); - namespace EventEmitter { - // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 - export { internal as EventEmitter }; - export interface Abortable { - /** - * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. - */ - signal?: AbortSignal | undefined; - } - - export interface EventEmitterReferencingAsyncResource extends AsyncResource { - readonly eventEmitter: EventEmitterAsyncResource; - } - - export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions { - /** - * The type of async event, this is required when instantiating `EventEmitterAsyncResource` - * directly rather than as a child class. - * @default new.target.name if instantiated as a child class. - */ - name?: string | undefined; - } - - /** - * Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that - * require manual async tracking. Specifically, all events emitted by instances - * of `events.EventEmitterAsyncResource` will run within its `async context`. - * - * ```js - * import { EventEmitterAsyncResource, EventEmitter } from 'node:events'; - * import { notStrictEqual, strictEqual } from 'node:assert'; - * import { executionAsyncId, triggerAsyncId } from 'node:async_hooks'; - * - * // Async tracking tooling will identify this as 'Q'. - * const ee1 = new EventEmitterAsyncResource({ name: 'Q' }); - * - * // 'foo' listeners will run in the EventEmitters async context. - * ee1.on('foo', () => { - * strictEqual(executionAsyncId(), ee1.asyncId); - * strictEqual(triggerAsyncId(), ee1.triggerAsyncId); - * }); - * - * const ee2 = new EventEmitter(); - * - * // 'foo' listeners on ordinary EventEmitters that do not track async - * // context, however, run in the same async context as the emit(). - * ee2.on('foo', () => { - * notStrictEqual(executionAsyncId(), ee2.asyncId); - * notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId); - * }); - * - * Promise.resolve().then(() => { - * ee1.emit('foo'); - * ee2.emit('foo'); - * }); - * ``` - * - * The `EventEmitterAsyncResource` class has the same methods and takes the - * same options as `EventEmitter` and `AsyncResource` themselves. - * @since v17.4.0, v16.14.0 - */ - export class EventEmitterAsyncResource extends EventEmitter { - /** - * @param options Only optional in child class. - */ - constructor(options?: EventEmitterAsyncResourceOptions); - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - */ - emitDestroy(): void; - /** - * The unique `asyncId` assigned to the resource. - */ - readonly asyncId: number; - /** - * The same triggerAsyncId that is passed to the AsyncResource constructor. - */ - readonly triggerAsyncId: number; - /** - * The returned `AsyncResource` object has an additional `eventEmitter` property - * that provides a reference to this `EventEmitterAsyncResource`. - */ - readonly asyncResource: EventEmitterReferencingAsyncResource; - } - /** - * The `NodeEventTarget` is a Node.js-specific extension to `EventTarget` - * that emulates a subset of the `EventEmitter` API. - * @since v14.5.0 - */ - export interface NodeEventTarget extends EventTarget { - /** - * Node.js-specific extension to the `EventTarget` class that emulates the - * equivalent `EventEmitter` API. The only difference between `addListener()` and - * `addEventListener()` is that `addListener()` will return a reference to the - * `EventTarget`. - * @since v14.5.0 - */ - addListener(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that dispatches the - * `arg` to the list of handlers for `type`. - * @since v15.2.0 - * @returns `true` if event listeners registered for the `type` exist, - * otherwise `false`. - */ - emit(type: string, arg: any): boolean; - /** - * Node.js-specific extension to the `EventTarget` class that returns an array - * of event `type` names for which event listeners are registered. - * @since 14.5.0 - */ - eventNames(): string[]; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of event listeners registered for the `type`. - * @since v14.5.0 - */ - listenerCount(type: string): number; - /** - * Node.js-specific extension to the `EventTarget` class that sets the number - * of max event listeners as `n`. - * @since v14.5.0 - */ - setMaxListeners(n: number): void; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of max event listeners. - * @since v14.5.0 - */ - getMaxListeners(): number; - /** - * Node.js-specific alias for `eventTarget.removeEventListener()`. - * @since v14.5.0 - */ - off(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - /** - * Node.js-specific alias for `eventTarget.addEventListener()`. - * @since v14.5.0 - */ - on(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that adds a `once` - * listener for the given event `type`. This is equivalent to calling `on` - * with the `once` option set to `true`. - * @since v14.5.0 - */ - once(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class. If `type` is specified, - * removes all registered listeners for `type`, otherwise removes all registered - * listeners. - * @since v14.5.0 - */ - removeAllListeners(type?: string): this; - /** - * Node.js-specific extension to the `EventTarget` class that removes the - * `listener` for the given `type`. The only difference between `removeListener()` - * and `removeEventListener()` is that `removeListener()` will return a reference - * to the `EventTarget`. - * @since v14.5.0 - */ - removeListener(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - } - } - global { - namespace NodeJS { - interface EventEmitter = DefaultEventMap> { - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - /** - * Alias for `emitter.on(eventName, listener)`. - * @since v0.1.26 - */ - addListener(eventName: Key, listener: Listener1): this; - /** - * Adds the `listener` function to the end of the listeners array for the event - * named `eventName`. No checks are made to see if the `listener` has already - * been added. Multiple calls passing the same combination of `eventName` and - * `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.on('foo', () => console.log('a')); - * myEE.prependListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.1.101 - * @param eventName The name of the event. - * @param listener The callback function - */ - on(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time** `listener` function for the event named `eventName`. The - * next time `eventName` is triggered, this listener is removed and then invoked. - * - * ```js - * server.once('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.once('foo', () => console.log('a')); - * myEE.prependOnceListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.3.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - once(eventName: Key, listener: Listener1): this; - /** - * Removes the specified `listener` from the listener array for the event named `eventName`. - * - * ```js - * const callback = (stream) => { - * console.log('someone connected!'); - * }; - * server.on('connection', callback); - * // ... - * server.removeListener('connection', callback); - * ``` - * - * `removeListener()` will remove, at most, one instance of a listener from the - * listener array. If any single listener has been added multiple times to the - * listener array for the specified `eventName`, then `removeListener()` must be - * called multiple times to remove each instance. - * - * Once an event is emitted, all listeners attached to it at the - * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution - * will not remove them from`emit()` in progress. Subsequent events behave as expected. - * - * ```js - * import { EventEmitter } from 'node:events'; - * class MyEmitter extends EventEmitter {} - * const myEmitter = new MyEmitter(); - * - * const callbackA = () => { - * console.log('A'); - * myEmitter.removeListener('event', callbackB); - * }; - * - * const callbackB = () => { - * console.log('B'); - * }; - * - * myEmitter.on('event', callbackA); - * - * myEmitter.on('event', callbackB); - * - * // callbackA removes listener callbackB but it will still be called. - * // Internal listener array at time of emit [callbackA, callbackB] - * myEmitter.emit('event'); - * // Prints: - * // A - * // B - * - * // callbackB is now removed. - * // Internal listener array [callbackA] - * myEmitter.emit('event'); - * // Prints: - * // A - * ``` - * - * Because listeners are managed using an internal array, calling this will - * change the position indices of any listener registered _after_ the listener - * being removed. This will not impact the order in which listeners are called, - * but it means that any copies of the listener array as returned by - * the `emitter.listeners()` method will need to be recreated. - * - * When a single function has been added as a handler multiple times for a single - * event (as in the example below), `removeListener()` will remove the most - * recently added instance. In the example the `once('ping')` listener is removed: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const ee = new EventEmitter(); - * - * function pong() { - * console.log('pong'); - * } - * - * ee.on('ping', pong); - * ee.once('ping', pong); - * ee.removeListener('ping', pong); - * - * ee.emit('ping'); - * ee.emit('ping'); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeListener(eventName: Key, listener: Listener1): this; - /** - * Alias for `emitter.removeListener()`. - * @since v10.0.0 - */ - off(eventName: Key, listener: Listener1): this; - /** - * Removes all listeners, or those of the specified `eventName`. - * - * It is bad practice to remove listeners added elsewhere in the code, - * particularly when the `EventEmitter` instance was created by some other - * component or module (e.g. sockets or file streams). - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeAllListeners(eventName?: Key): this; - /** - * By default `EventEmitter`s will print a warning if more than `10` listeners are - * added for a particular event. This is a useful default that helps finding - * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be - * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners. - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.3.5 - */ - setMaxListeners(n: number): this; - /** - * Returns the current max listener value for the `EventEmitter` which is either - * set by `emitter.setMaxListeners(n)` or defaults to {@link EventEmitter.defaultMaxListeners}. - * @since v1.0.0 - */ - getMaxListeners(): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * console.log(util.inspect(server.listeners('connection'))); - * // Prints: [ [Function] ] - * ``` - * @since v0.1.26 - */ - listeners(eventName: Key): Array>; - /** - * Returns a copy of the array of listeners for the event named `eventName`, - * including any wrappers (such as those created by `.once()`). - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.once('log', () => console.log('log once')); - * - * // Returns a new Array with a function `onceWrapper` which has a property - * // `listener` which contains the original listener bound above - * const listeners = emitter.rawListeners('log'); - * const logFnWrapper = listeners[0]; - * - * // Logs "log once" to the console and does not unbind the `once` event - * logFnWrapper.listener(); - * - * // Logs "log once" to the console and removes the listener - * logFnWrapper(); - * - * emitter.on('log', () => console.log('log persistently')); - * // Will return a new Array with a single function bound by `.on()` above - * const newListeners = emitter.rawListeners('log'); - * - * // Logs "log persistently" twice - * newListeners[0](); - * emitter.emit('log'); - * ``` - * @since v9.4.0 - */ - rawListeners(eventName: Key): Array>; - /** - * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments - * to each. - * - * Returns `true` if the event had listeners, `false` otherwise. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEmitter = new EventEmitter(); - * - * // First listener - * myEmitter.on('event', function firstListener() { - * console.log('Helloooo! first listener'); - * }); - * // Second listener - * myEmitter.on('event', function secondListener(arg1, arg2) { - * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); - * }); - * // Third listener - * myEmitter.on('event', function thirdListener(...args) { - * const parameters = args.join(', '); - * console.log(`event with parameters ${parameters} in third listener`); - * }); - * - * console.log(myEmitter.listeners('event')); - * - * myEmitter.emit('event', 1, 2, 3, 4, 5); - * - * // Prints: - * // [ - * // [Function: firstListener], - * // [Function: secondListener], - * // [Function: thirdListener] - * // ] - * // Helloooo! first listener - * // event with parameters 1, 2 in second listener - * // event with parameters 1, 2, 3, 4, 5 in third listener - * ``` - * @since v0.1.26 - */ - emit(eventName: Key, ...args: Args): boolean; - /** - * Returns the number of listeners listening for the event named `eventName`. - * If `listener` is provided, it will return how many times the listener is found - * in the list of the listeners of the event. - * @since v3.2.0 - * @param eventName The name of the event being listened for - * @param listener The event handler function - */ - listenerCount(eventName: Key, listener?: Listener2): number; - /** - * Adds the `listener` function to the _beginning_ of the listeners array for the - * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName` - * and `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.prependListener('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependListener(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this - * listener is removed, and then invoked. - * - * ```js - * server.prependOnceListener('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependOnceListener(eventName: Key, listener: Listener1): this; - /** - * Returns an array listing the events for which the emitter has registered - * listeners. The values in the array are strings or `Symbol`s. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * const myEE = new EventEmitter(); - * myEE.on('foo', () => {}); - * myEE.on('bar', () => {}); - * - * const sym = Symbol('symbol'); - * myEE.on(sym, () => {}); - * - * console.log(myEE.eventNames()); - * // Prints: [ 'foo', 'bar', Symbol(symbol) ] - * ``` - * @since v6.0.0 - */ - eventNames(): Array<(string | symbol) & Key2>; - } - } - } - export = EventEmitter; -} -declare module "node:events" { - import events = require("events"); - export = events; -} diff --git a/mcp-server/node_modules/@types/node/fs.d.ts b/mcp-server/node_modules/@types/node/fs.d.ts deleted file mode 100644 index 4115ffe..0000000 --- a/mcp-server/node_modules/@types/node/fs.d.ts +++ /dev/null @@ -1,4375 +0,0 @@ -/** - * The `node:fs` module enables interacting with the file system in a - * way modeled on standard POSIX functions. - * - * To use the promise-based APIs: - * - * ```js - * import * as fs from 'node:fs/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as fs from 'node:fs'; - * ``` - * - * All file system operations have synchronous, callback, and promise-based - * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/fs.js) - */ -declare module "fs" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import { URL } from "node:url"; - import * as promises from "node:fs/promises"; - export { promises }; - /** - * Valid types for path values in "fs". - */ - export type PathLike = string | Buffer | URL; - export type PathOrFileDescriptor = PathLike | number; - export type TimeLike = string | number | Date; - export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; - export type BufferEncodingOption = - | "buffer" - | { - encoding: "buffer"; - }; - export interface ObjectEncodingOptions { - encoding?: BufferEncoding | null | undefined; - } - export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; - export type OpenMode = number | string; - export type Mode = number | string; - export interface StatsBase { - isFile(): boolean; - isDirectory(): boolean; - isBlockDevice(): boolean; - isCharacterDevice(): boolean; - isSymbolicLink(): boolean; - isFIFO(): boolean; - isSocket(): boolean; - dev: T; - ino: T; - mode: T; - nlink: T; - uid: T; - gid: T; - rdev: T; - size: T; - blksize: T; - blocks: T; - atimeMs: T; - mtimeMs: T; - ctimeMs: T; - birthtimeMs: T; - atime: Date; - mtime: Date; - ctime: Date; - birthtime: Date; - } - export interface Stats extends StatsBase {} - /** - * A `fs.Stats` object provides information about a file. - * - * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and - * their synchronous counterparts are of this type. - * If `bigint` in the `options` passed to those methods is true, the numeric values - * will be `bigint` instead of `number`, and the object will contain additional - * nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword. - * - * ```console - * Stats { - * dev: 2114, - * ino: 48064969, - * mode: 33188, - * nlink: 1, - * uid: 85, - * gid: 100, - * rdev: 0, - * size: 527, - * blksize: 4096, - * blocks: 8, - * atimeMs: 1318289051000.1, - * mtimeMs: 1318289051000.1, - * ctimeMs: 1318289051000.1, - * birthtimeMs: 1318289051000.1, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * - * `bigint` version: - * - * ```console - * BigIntStats { - * dev: 2114n, - * ino: 48064969n, - * mode: 33188n, - * nlink: 1n, - * uid: 85n, - * gid: 100n, - * rdev: 0n, - * size: 527n, - * blksize: 4096n, - * blocks: 8n, - * atimeMs: 1318289051000n, - * mtimeMs: 1318289051000n, - * ctimeMs: 1318289051000n, - * birthtimeMs: 1318289051000n, - * atimeNs: 1318289051000000000n, - * mtimeNs: 1318289051000000000n, - * ctimeNs: 1318289051000000000n, - * birthtimeNs: 1318289051000000000n, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * @since v0.1.21 - */ - export class Stats {} - export interface StatsFsBase { - /** Type of file system. */ - type: T; - /** Optimal transfer block size. */ - bsize: T; - /** Total data blocks in file system. */ - blocks: T; - /** Free blocks in file system. */ - bfree: T; - /** Available blocks for unprivileged users */ - bavail: T; - /** Total file nodes in file system. */ - files: T; - /** Free file nodes in file system. */ - ffree: T; - } - export interface StatsFs extends StatsFsBase {} - /** - * Provides information about a mounted file system. - * - * Objects returned from {@link statfs} and its synchronous counterpart are of - * this type. If `bigint` in the `options` passed to those methods is `true`, the - * numeric values will be `bigint` instead of `number`. - * - * ```console - * StatFs { - * type: 1397114950, - * bsize: 4096, - * blocks: 121938943, - * bfree: 61058895, - * bavail: 61058895, - * files: 999, - * ffree: 1000000 - * } - * ``` - * - * `bigint` version: - * - * ```console - * StatFs { - * type: 1397114950n, - * bsize: 4096n, - * blocks: 121938943n, - * bfree: 61058895n, - * bavail: 61058895n, - * files: 999n, - * ffree: 1000000n - * } - * ``` - * @since v19.6.0, v18.15.0 - */ - export class StatsFs {} - export interface BigIntStatsFs extends StatsFsBase {} - export interface StatFsOptions { - bigint?: boolean | undefined; - } - /** - * A representation of a directory entry, which can be a file or a subdirectory - * within the directory, as returned by reading from an `fs.Dir`. The - * directory entry is a combination of the file name and file type pairs. - * - * Additionally, when {@link readdir} or {@link readdirSync} is called with - * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. - * @since v10.10.0 - */ - export class Dirent { - /** - * Returns `true` if the `fs.Dirent` object describes a regular file. - * @since v10.10.0 - */ - isFile(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a file system - * directory. - * @since v10.10.0 - */ - isDirectory(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a block device. - * @since v10.10.0 - */ - isBlockDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a character device. - * @since v10.10.0 - */ - isCharacterDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a symbolic link. - * @since v10.10.0 - */ - isSymbolicLink(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a first-in-first-out - * (FIFO) pipe. - * @since v10.10.0 - */ - isFIFO(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a socket. - * @since v10.10.0 - */ - isSocket(): boolean; - /** - * The file name that this `fs.Dirent` object refers to. The type of this - * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. - * @since v10.10.0 - */ - name: Name; - /** - * The base path that this `fs.Dirent` object refers to. - * @since v20.12.0 - */ - parentPath: string; - /** - * Alias for `dirent.parentPath`. - * @since v20.1.0 - * @deprecated Since v20.12.0 - */ - path: string; - } - /** - * A class representing a directory stream. - * - * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - */ - export class Dir implements AsyncIterable { - /** - * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. - * @since v12.12.0 - */ - readonly path: string; - /** - * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. - */ - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Asynchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * - * A promise is returned that will be fulfilled after the resource has been - * closed. - * @since v12.12.0 - */ - close(): Promise; - close(cb: NoParamCallback): void; - /** - * Synchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * @since v12.12.0 - */ - closeSync(): void; - /** - * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. - * - * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - * @return containing {fs.Dirent|null} - */ - read(): Promise; - read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; - /** - * Synchronously read the next directory entry as an `fs.Dirent`. See the - * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. - * - * If there are no more directory entries to read, `null` will be returned. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - */ - readSync(): Dirent | null; - } - /** - * Class: fs.StatWatcher - * @since v14.3.0, v12.20.0 - * Extends `EventEmitter` - * A successful call to {@link watchFile} method will return a new fs.StatWatcher object. - */ - export interface StatWatcher extends EventEmitter { - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.StatWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.StatWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - } - export interface FSWatcher extends EventEmitter { - /** - * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. - * @since v0.5.8 - */ - close(): void; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.FSWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.FSWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - /** - * events.EventEmitter - * 1. change - * 2. close - * 3. error - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - } - /** - * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. - * @since v0.1.93 - */ - export class ReadStream extends stream.Readable { - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes that have been read so far. - * @since v6.4.0 - */ - bytesRead: number; - /** - * The path to the file the stream is reading from as specified in the first - * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a - * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0, v10.16.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: ReadStreamEvents[K]): this; - on(event: K, listener: ReadStreamEvents[K]): this; - once(event: K, listener: ReadStreamEvents[K]): this; - prependListener(event: K, listener: ReadStreamEvents[K]): this; - prependOnceListener(event: K, listener: ReadStreamEvents[K]): this; - } - - /** - * The Keys are events of the ReadStream and the values are the functions that are called when the event is emitted. - */ - type ReadStreamEvents = { - close: () => void; - data: (chunk: Buffer | string) => void; - end: () => void; - error: (err: Error) => void; - open: (fd: number) => void; - pause: () => void; - readable: () => void; - ready: () => void; - resume: () => void; - } & CustomEvents; - - /** - * string & {} allows to allow any kind of strings for the event - * but still allows to have auto completion for the normal events. - */ - type CustomEvents = { [Key in string & {} | symbol]: (...args: any[]) => void }; - - /** - * The Keys are events of the WriteStream and the values are the functions that are called when the event is emitted. - */ - type WriteStreamEvents = { - close: () => void; - drain: () => void; - error: (err: Error) => void; - finish: () => void; - open: (fd: number) => void; - pipe: (src: stream.Readable) => void; - ready: () => void; - unpipe: (src: stream.Readable) => void; - } & CustomEvents; - /** - * * Extends `stream.Writable` - * - * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. - * @since v0.1.93 - */ - export class WriteStream extends stream.Writable { - /** - * Closes `writeStream`. Optionally accepts a - * callback that will be executed once the `writeStream`is closed. - * @since v0.9.4 - */ - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes written so far. Does not include data that is still queued - * for writing. - * @since v0.4.7 - */ - bytesWritten: number; - /** - * The path to the file the stream is writing to as specified in the first - * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a - * `Buffer`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: WriteStreamEvents[K]): this; - on(event: K, listener: WriteStreamEvents[K]): this; - once(event: K, listener: WriteStreamEvents[K]): this; - prependListener(event: K, listener: WriteStreamEvents[K]): this; - prependOnceListener(event: K, listener: WriteStreamEvents[K]): this; - } - /** - * Asynchronously rename file at `oldPath` to the pathname provided - * as `newPath`. In the case that `newPath` already exists, it will - * be overwritten. If there is a directory at `newPath`, an error will - * be raised instead. No arguments other than a possible exception are - * given to the completion callback. - * - * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). - * - * ```js - * import { rename } from 'node:fs'; - * - * rename('oldFile.txt', 'newFile.txt', (err) => { - * if (err) throw err; - * console.log('Rename complete!'); - * }); - * ``` - * @since v0.0.2 - */ - export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace rename { - /** - * Asynchronous rename(2) - Change the name or location of a file or directory. - * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; - } - /** - * Renames the file from `oldPath` to `newPath`. Returns `undefined`. - * - * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. - * @since v0.1.21 - */ - export function renameSync(oldPath: PathLike, newPath: PathLike): void; - /** - * Truncates the file. No arguments other than a possible exception are - * given to the completion callback. A file descriptor can also be passed as the - * first argument. In this case, `fs.ftruncate()` is called. - * - * ```js - * import { truncate } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * truncate('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was truncated'); - * }); - * ``` - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * - * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. - * @since v0.8.6 - * @param [len=0] - */ - export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function truncate(path: PathLike, callback: NoParamCallback): void; - export namespace truncate { - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(path: PathLike, len?: number): Promise; - } - /** - * Truncates the file. Returns `undefined`. A file descriptor can also be - * passed as the first argument. In this case, `fs.ftruncateSync()` is called. - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * @since v0.8.6 - * @param [len=0] - */ - export function truncateSync(path: PathLike, len?: number): void; - /** - * Truncates the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. - * - * If the file referred to by the file descriptor was larger than `len` bytes, only - * the first `len` bytes will be retained in the file. - * - * For example, the following program retains only the first four bytes of the - * file: - * - * ```js - * import { open, close, ftruncate } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('temp.txt', 'r+', (err, fd) => { - * if (err) throw err; - * - * try { - * ftruncate(fd, 4, (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * if (err) throw err; - * } - * }); - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - */ - export function ftruncate(fd: number, callback: NoParamCallback): void; - export namespace ftruncate { - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(fd: number, len?: number): Promise; - } - /** - * Truncates the file descriptor. Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link ftruncate}. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncateSync(fd: number, len?: number): void; - /** - * Asynchronously changes owner and group of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace chown { - /** - * Asynchronous chown(2) - Change ownership of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Synchronously changes owner and group of a file. Returns `undefined`. - * This is the synchronous version of {@link chown}. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chownSync(path: PathLike, uid: number, gid: number): void; - /** - * Sets the owner of the file. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; - export namespace fchown { - /** - * Asynchronous fchown(2) - Change ownership of a file. - * @param fd A file descriptor. - */ - function __promisify__(fd: number, uid: number, gid: number): Promise; - } - /** - * Sets the owner of the file. Returns `undefined`. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function fchownSync(fd: number, uid: number, gid: number): void; - /** - * Set the owner of the symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. - */ - export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace lchown { - /** - * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Set the owner for the path. Returns `undefined`. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function lchownSync(path: PathLike, uid: number, gid: number): void; - /** - * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic - * link, then the link is not dereferenced: instead, the timestamps of the - * symbolic link itself are changed. - * - * No arguments other than a possible exception are given to the completion - * callback. - * @since v14.5.0, v12.19.0 - */ - export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace lutimes { - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, - * with the difference that if the path refers to a symbolic link, then the link is not - * dereferenced: instead, the timestamps of the symbolic link itself are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Change the file system timestamps of the symbolic link referenced by `path`. - * Returns `undefined`, or throws an exception when parameters are incorrect or - * the operation fails. This is the synchronous version of {@link lutimes}. - * @since v14.5.0, v12.19.0 - */ - export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Asynchronously changes the permissions of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * - * ```js - * import { chmod } from 'node:fs'; - * - * chmod('my_file.txt', 0o775, (err) => { - * if (err) throw err; - * console.log('The permissions for file "my_file.txt" have been changed!'); - * }); - * ``` - * @since v0.1.30 - */ - export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - export namespace chmod { - /** - * Asynchronous chmod(2) - Change permissions of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link chmod}. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * @since v0.6.7 - */ - export function chmodSync(path: PathLike, mode: Mode): void; - /** - * Sets the permissions on the file. No arguments other than a possible exception - * are given to the completion callback. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; - export namespace fchmod { - /** - * Asynchronous fchmod(2) - Change permissions of a file. - * @param fd A file descriptor. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(fd: number, mode: Mode): Promise; - } - /** - * Sets the permissions on the file. Returns `undefined`. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmodSync(fd: number, mode: Mode): void; - /** - * Changes the permissions on a symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - /** @deprecated */ - export namespace lchmod { - /** - * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * Changes the permissions on a symbolic link. Returns `undefined`. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmodSync(path: PathLike, mode: Mode): void; - /** - * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * - * {@link stat} follows symbolic links. Use {@link lstat} to look at the - * links themselves. - * - * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. - * Instead, user code should open/read/write the file directly and handle the - * error raised if the file is not available. - * - * To check if a file exists without manipulating it afterwards, {@link access} is recommended. - * - * For example, given the following directory structure: - * - * ```text - * - txtDir - * -- file.txt - * - app.js - * ``` - * - * The next program will check for the stats of the given paths: - * - * ```js - * import { stat } from 'node:fs'; - * - * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; - * - * for (let i = 0; i < pathsToCheck.length; i++) { - * stat(pathsToCheck[i], (err, stats) => { - * console.log(stats.isDirectory()); - * console.log(stats); - * }); - * } - * ``` - * - * The resulting output will resemble: - * - * ```console - * true - * Stats { - * dev: 16777220, - * mode: 16877, - * nlink: 3, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214262, - * size: 96, - * blocks: 0, - * atimeMs: 1561174653071.963, - * mtimeMs: 1561174614583.3518, - * ctimeMs: 1561174626623.5366, - * birthtimeMs: 1561174126937.2893, - * atime: 2019-06-22T03:37:33.072Z, - * mtime: 2019-06-22T03:36:54.583Z, - * ctime: 2019-06-22T03:37:06.624Z, - * birthtime: 2019-06-22T03:28:46.937Z - * } - * false - * Stats { - * dev: 16777220, - * mode: 33188, - * nlink: 1, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214074, - * size: 8, - * blocks: 8, - * atimeMs: 1561174616618.8555, - * mtimeMs: 1561174614584, - * ctimeMs: 1561174614583.8145, - * birthtimeMs: 1561174007710.7478, - * atime: 2019-06-22T03:36:56.619Z, - * mtime: 2019-06-22T03:36:54.584Z, - * ctime: 2019-06-22T03:36:54.584Z, - * birthtime: 2019-06-22T03:26:47.711Z - * } - * ``` - * @since v0.0.2 - */ - export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function stat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace stat { - /** - * Asynchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - export interface StatSyncFn extends Function { - (path: PathLike, options?: undefined): Stats; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - throwIfNoEntry: false; - }, - ): Stats | undefined; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - throwIfNoEntry: false; - }, - ): BigIntStats | undefined; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - }, - ): Stats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - }, - ): BigIntStats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: boolean; - throwIfNoEntry?: false | undefined; - }, - ): Stats | BigIntStats; - (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined; - } - /** - * Synchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const statSync: StatSyncFn; - /** - * Invokes the callback with the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function fstat( - fd: number, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace fstat { - /** - * Asynchronous fstat(2) - Get file status. - * @param fd A file descriptor. - */ - function __promisify__( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(fd: number, options?: StatOptions): Promise; - } - /** - * Retrieves the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstatSync( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Stats; - export function fstatSync( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): BigIntStats; - export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; - /** - * Retrieves the `fs.Stats` for the symbolic link referred to by the path. - * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic - * link, then the link itself is stat-ed, not the file that it refers to. - * - * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. - * @since v0.1.30 - */ - export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function lstat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace lstat { - /** - * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - /** - * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void; - export function statfs( - path: PathLike, - options: - | (StatFsOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void, - ): void; - export namespace statfs { - /** - * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an object. - * @param path A path to an existing file or directory on the file system to be queried. - */ - function __promisify__( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatFsOptions): Promise; - } - /** - * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfsSync( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): StatsFs; - export function statfsSync( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): BigIntStatsFs; - export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs; - /** - * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const lstatSync: StatSyncFn; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than - * a possible - * exception are given to the completion callback. - * @since v0.1.31 - */ - export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace link { - /** - * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. - * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; - } - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.31 - */ - export function linkSync(existingPath: PathLike, newPath: PathLike): void; - /** - * Creates the link called `path` pointing to `target`. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. - * - * The `type` argument is only available on Windows and ignored on other platforms. - * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is - * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`. - * If the `target` does not exist, `'file'` will be used. Windows junction points - * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction - * points on NTFS volumes can only point to directories. - * - * Relative targets are relative to the link's parent directory. - * - * ```js - * import { symlink } from 'node:fs'; - * - * symlink('./mew', './mewtwo', callback); - * ``` - * - * The above example creates a symbolic link `mewtwo` which points to `mew` in the - * same directory: - * - * ```bash - * $ tree . - * . - * ├── mew - * └── mewtwo -> ./mew - * ``` - * @since v0.1.31 - * @param [type='null'] - */ - export function symlink( - target: PathLike, - path: PathLike, - type: symlink.Type | undefined | null, - callback: NoParamCallback, - ): void; - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - */ - export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; - export namespace symlink { - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). - * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. - */ - function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; - type Type = "dir" | "file" | "junction"; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link symlink}. - * @since v0.1.31 - * @param [type='null'] - */ - export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; - /** - * Reads the contents of the symbolic link referred to by `path`. The callback gets - * two arguments `(err, linkString)`. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path passed to the callback. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readlink( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - export namespace readlink { - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - } - /** - * Returns the symbolic link's string value. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - /** - * Asynchronously computes the canonical pathname by resolving `.`, `..`, and - * symbolic links. - * - * A canonical pathname is not necessarily unique. Hard links and bind mounts can - * expose a file system entity through many pathnames. - * - * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: - * - * 1. No case conversion is performed on case-insensitive file systems. - * 2. The maximum number of symbolic links is platform-independent and generally - * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. - * - * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * If `path` resolves to a socket or a pipe, the function will return a system - * dependent name for that object. - * @since v0.1.31 - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function realpath( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - export namespace realpath { - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). - * - * The `callback` gets two arguments `(err, resolvedPath)`. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v9.2.0 - */ - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - function native( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - } - /** - * Returns the resolved pathname. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link realpath}. - * @since v0.1.31 - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - export namespace realpathSync { - function native(path: PathLike, options?: EncodingOption): string; - function native(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - function native(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - } - /** - * Asynchronously removes a file or symbolic link. No arguments other than a - * possible exception are given to the completion callback. - * - * ```js - * import { unlink } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * unlink('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was deleted'); - * }); - * ``` - * - * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a - * directory, use {@link rmdir}. - * - * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. - * @since v0.0.2 - */ - export function unlink(path: PathLike, callback: NoParamCallback): void; - export namespace unlink { - /** - * Asynchronous unlink(2) - delete a name and possibly the file it refers to. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. - * @since v0.1.21 - */ - export function unlinkSync(path: PathLike): void; - export interface RmDirOptions { - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning - * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. - * Use `fs.rm(path, { recursive: true, force: true })` instead. - * - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given - * to the completion callback. - * - * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on - * Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. - * @since v0.0.2 - */ - export function rmdir(path: PathLike, callback: NoParamCallback): void; - export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; - export namespace rmdir { - /** - * Asynchronous rmdir(2) - delete a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, options?: RmDirOptions): Promise; - } - /** - * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. - * - * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error - * on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. - * @since v0.1.21 - */ - export function rmdirSync(path: PathLike, options?: RmDirOptions): void; - export interface RmOptions { - /** - * When `true`, exceptions will be ignored if `path` does not exist. - * @default false - */ - force?: boolean | undefined; - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the - * completion callback. - * @since v14.14.0 - */ - export function rm(path: PathLike, callback: NoParamCallback): void; - export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; - export namespace rm { - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). - */ - function __promisify__(path: PathLike, options?: RmOptions): Promise; - } - /** - * Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`. - * @since v14.14.0 - */ - export function rmSync(path: PathLike, options?: RmOptions): void; - export interface MakeDirectoryOptions { - /** - * Indicates whether parent folders should be created. - * If a folder was created, the path to the first created folder will be returned. - * @default false - */ - recursive?: boolean | undefined; - /** - * A file mode. If a string is passed, it is parsed as an octal integer. If not specified - * @default 0o777 - */ - mode?: Mode | undefined; - } - /** - * Asynchronously creates a directory. - * - * The callback is given a possible exception and, if `recursive` is `true`, the - * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was - * created (for instance, if it was previously created). - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that - * exists results in an error only - * when `recursive` is false. If `recursive` is false and the directory exists, - * an `EEXIST` error occurs. - * - * ```js - * import { mkdir } from 'node:fs'; - * - * // Create ./tmp/a/apple, regardless of whether ./tmp and ./tmp/a exist. - * mkdir('./tmp/a/apple', { recursive: true }, (err) => { - * if (err) throw err; - * }); - * ``` - * - * On Windows, using `fs.mkdir()` on the root directory even with recursion will - * result in an error: - * - * ```js - * import { mkdir } from 'node:fs'; - * - * mkdir('/', { recursive: true }, (err) => { - * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] - * }); - * ``` - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.8 - */ - export function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - | undefined, - callback: NoParamCallback, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: Mode | MakeDirectoryOptions | null | undefined, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function mkdir(path: PathLike, callback: NoParamCallback): void; - export namespace mkdir { - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: Mode | MakeDirectoryOptions | null, - ): Promise; - } - /** - * Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created. - * This is the synchronous version of {@link mkdir}. - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.21 - */ - export function mkdirSync( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): string | undefined; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): void; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; - /** - * Creates a unique temporary directory. - * - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform - * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, - * notably the BSDs, can return more than six random characters, and replace - * trailing `X` characters in `prefix` with random characters. - * - * The created directory path is passed as a string to the callback's second - * parameter. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 - * }); - * ``` - * - * The `fs.mkdtemp()` method will append the six randomly selected characters - * directly to the `prefix` string. For instance, given a directory `/tmp`, if the - * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator - * (`import { sep } from 'node:node:path'`). - * - * ```js - * import { tmpdir } from 'node:os'; - * import { mkdtemp } from 'node:fs'; - * - * // The parent directory for the new temporary directory - * const tmpDir = tmpdir(); - * - * // This method is *INCORRECT*: - * mkdtemp(tmpDir, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmpabc123`. - * // A new temporary directory is created at the file system root - * // rather than *within* the /tmp directory. - * }); - * - * // This method is *CORRECT*: - * import { sep } from 'node:path'; - * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmp/abc123`. - * // A new temporary directory is created within - * // the /tmp directory. - * }); - * ``` - * @since v5.10.0 - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - */ - export function mkdtemp( - prefix: string, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - export namespace mkdtemp { - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - } - /** - * Returns the created directory path. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link mkdtemp}. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v5.10.0 - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer; - /** - * Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. - * @since v0.1.8 - */ - export function readdir( - path: PathLike, - options: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - callback: (err: NodeJS.ErrnoException | null, files: NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[] | NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readdir( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - export namespace readdir { - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options: - | "buffer" - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent - */ - function __promisify__( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function __promisify__( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - } - /** - * Reads the contents of the directory. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames returned. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. - * @since v0.1.21 - */ - export function readdirSync( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): string[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): string[] | NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdirSync( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdirSync( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Closes the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.0.2 - */ - export function close(fd: number, callback?: NoParamCallback): void; - export namespace close { - /** - * Asynchronous close(2) - close a file descriptor. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Closes the file descriptor. Returns `undefined`. - * - * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.1.21 - */ - export function closeSync(fd: number): void; - /** - * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. - * - * `mode` sets the file mode (permission and sticky bits), but only if the file was - * created. On Windows, only the write permission can be manipulated; see {@link chmod}. - * - * The callback gets two arguments `(err, fd)`. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * - * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. - * @since v0.0.2 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - mode: Mode | undefined | null, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param [flags='r'] See `support of file system `flags``. - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; - export namespace open { - /** - * Asynchronous open(2) - open and possibly create a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. - */ - function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; - } - /** - * Returns an integer representing the file descriptor. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link open}. - * @since v0.1.21 - * @param [flags='r'] - * @param [mode=0o666] - */ - export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v0.4.2 - */ - export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace utimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied path. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link utimes}. - * @since v0.4.2 - */ - export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Change the file system timestamps of the object referenced by the supplied file - * descriptor. See {@link utimes}. - * @since v0.4.2 - */ - export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace futimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Synchronous version of {@link futimes}. Returns `undefined`. - * @since v0.4.2 - */ - export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other - * than a possible exception are given to the completion callback. - * @since v0.1.96 - */ - export function fsync(fd: number, callback: NoParamCallback): void; - export namespace fsync { - /** - * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.96 - */ - export function fsyncSync(fd: number): void; - export interface WriteOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `buffer.byteLength - offset` - */ - length?: number | undefined; - /** - * @default null - */ - position?: number | null | undefined; - } - /** - * Write `buffer` to the file specified by `fd`. - * - * `offset` determines the part of the buffer to be written, and `length` is - * an integer specifying the number of bytes to write. - * - * `position` refers to the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). - * - * The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesWritten` and `buffer` properties. - * - * It is unsafe to use `fs.write()` multiple times on the same file without waiting - * for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v0.0.2 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - */ - export function write( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - buffer: TBuffer, - options: WriteOptions, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - encoding: BufferEncoding | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - */ - export function write( - fd: number, - string: string, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - export namespace write { - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - offset?: number, - length?: number, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - options?: WriteOptions, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - function __promisify__( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link write}. - * @since v0.1.21 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - * @return The number of bytes written. - */ - export function writeSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset?: number | null, - length?: number | null, - position?: number | null, - ): number; - /** - * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function writeSync( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): number; - export type ReadPosition = number | bigint; - export interface ReadOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `length of buffer` - */ - length?: number | undefined; - /** - * @default null - */ - position?: ReadPosition | null | undefined; - } - export interface ReadOptionsWithBuffer extends ReadOptions { - buffer?: T | undefined; - } - /** @deprecated Use `ReadOptions` instead. */ - // TODO: remove in future major - export interface ReadSyncOptions extends ReadOptions {} - /** @deprecated Use `ReadOptionsWithBuffer` instead. */ - // TODO: remove in future major - export interface ReadAsyncOptions extends ReadOptionsWithBuffer {} - /** - * Read data from the file specified by `fd`. - * - * The callback is given the three arguments, `(err, bytesRead, buffer)`. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffer` properties. - * @since v0.0.2 - * @param buffer The buffer that the data will be written to. - * @param offset The position in `buffer` to write the data to. - * @param length The number of bytes to read. - * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If - * `position` is an integer, the file position will be unchanged. - */ - export function read( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: ReadPosition | null, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - /** - * Similar to the above `fs.read` function, this version takes an optional `options` object. - * If not otherwise specified in an `options` object, - * `buffer` defaults to `Buffer.alloc(16384)`, - * `offset` defaults to `0`, - * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0 - * `position` defaults to `null` - * @since v12.17.0, 13.11.0 - */ - export function read( - fd: number, - options: ReadOptionsWithBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - options: ReadOptions, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NonSharedBuffer) => void, - ): void; - export namespace read { - /** - * @param fd A file descriptor. - * @param buffer The buffer that the data will be written to. - * @param offset The offset in the buffer at which to start writing. - * @param length The number of bytes to read. - * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. - */ - function __promisify__( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: number | null, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__( - fd: number, - options: ReadOptionsWithBuffer, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__(fd: number): Promise<{ - bytesRead: number; - buffer: NonSharedBuffer; - }>; - } - /** - * Returns the number of `bytesRead`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link read}. - * @since v0.1.21 - * @param [position='null'] - */ - export function readSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset: number, - length: number, - position: ReadPosition | null, - ): number; - /** - * Similar to the above `fs.readSync` function, this version takes an optional `options` object. - * If no `options` object is specified, it will default with the above values. - */ - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadOptions): number; - /** - * Asynchronously reads the entire contents of a file. - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', (err, data) => { - * if (err) throw err; - * console.log(data); - * }); - * ``` - * - * The callback is passed two arguments `(err, data)`, where `data` is the - * contents of the file. - * - * If no encoding is specified, then the raw buffer is returned. - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', 'utf8', callback); - * ``` - * - * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an - * error will be returned. On FreeBSD, a representation of the directory's contents - * will be returned. - * - * ```js - * import { readFile } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFile('', (err, data) => { - * // => [Error: EISDIR: illegal operation on a directory, read ] - * }); - * - * // FreeBSD - * readFile('', (err, data) => { - * // => null, - * }); - * ``` - * - * It is possible to abort an ongoing request using an `AbortSignal`. If a - * request is aborted the callback is called with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs'; - * - * const controller = new AbortController(); - * const signal = controller.signal; - * readFile(fileInfo[0].name, { signal }, (err, buf) => { - * // ... - * }); - * // When you want to abort the request - * controller.abort(); - * ``` - * - * The `fs.readFile()` function buffers the entire file. To minimize memory costs, - * when possible prefer streaming via `fs.createReadStream()`. - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * @since v0.1.29 - * @param path filename or file descriptor - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding?: null | undefined; - flag?: string | undefined; - } & Abortable) - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding: BufferEncoding; - flag?: string | undefined; - } & Abortable) - | BufferEncoding, - callback: (err: NodeJS.ErrnoException | null, data: string) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | (ObjectEncodingOptions & { - flag?: string | undefined; - } & Abortable) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - */ - export function readFile( - path: PathOrFileDescriptor, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - export namespace readFile { - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): Promise; - } - /** - * Returns the contents of the `path`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readFile}. - * - * If the `encoding` option is specified then this function returns a - * string. Otherwise it returns a buffer. - * - * Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific. - * - * ```js - * import { readFileSync } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFileSync(''); - * // => [Error: EISDIR: illegal operation on a directory, read ] - * - * // FreeBSD - * readFileSync(''); // => - * ``` - * @since v0.1.8 - * @param path filename or file descriptor - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): NonSharedBuffer; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): string; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): string | NonSharedBuffer; - export type WriteFileOptions = - | ( - & ObjectEncodingOptions - & Abortable - & { - mode?: Mode | undefined; - flag?: string | undefined; - flush?: boolean | undefined; - } - ) - | BufferEncoding - | null; - /** - * When `file` is a filename, asynchronously writes data to the file, replacing the - * file if it already exists. `data` can be a string or a buffer. - * - * When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using - * a file descriptor. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, (err) => { - * if (err) throw err; - * console.log('The file has been saved!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { writeFile } from 'node:fs'; - * - * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); - * ``` - * - * It is unsafe to use `fs.writeFile()` multiple times on the same file without - * waiting for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that - * performs multiple `write` calls internally to write the buffer passed to it. - * For performance sensitive code consider using {@link createWriteStream}. - * - * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, { signal }, (err) => { - * // When a request is aborted - the callback is called with an AbortError - * }); - * // When the request should be aborted - * controller.abort(); - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFile( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function writeFile( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - callback: NoParamCallback, - ): void; - export namespace writeFile { - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'w'` is used. - */ - function __promisify__( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): Promise; - } - /** - * Returns `undefined`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writeFile}. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFileSync( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', (err) => { - * if (err) throw err; - * console.log('The "data to append" was appended to file!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', 'utf8', callback); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { open, close, appendFile } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('message.txt', 'a', (err, fd) => { - * if (err) throw err; - * - * try { - * appendFile(fd, 'data to append', 'utf8', (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * throw err; - * } - * }); - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFile( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; - export namespace appendFile { - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'a'` is used. - */ - function __promisify__( - file: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): Promise; - } - /** - * Synchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * try { - * appendFileSync('message.txt', 'data to append'); - * console.log('The "data to append" was appended to file!'); - * } catch (err) { - * // Handle the error - * } - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * appendFileSync('message.txt', 'data to append', 'utf8'); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { openSync, closeSync, appendFileSync } from 'node:fs'; - * - * let fd; - * - * try { - * fd = openSync('message.txt', 'a'); - * appendFileSync(fd, 'data to append', 'utf8'); - * } catch (err) { - * // Handle the error - * } finally { - * if (fd !== undefined) - * closeSync(fd); - * } - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFileSync( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): void; - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export interface WatchFileOptions { - bigint?: boolean | undefined; - persistent?: boolean | undefined; - interval?: number | undefined; - } - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'node:fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint?: false | undefined; - }) - | undefined, - listener: StatsListener, - ): StatWatcher; - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint: true; - }) - | undefined, - listener: BigIntStatsListener, - ): StatWatcher; - /** - * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher; - /** - * Stop watching for changes on `filename`. If `listener` is specified, only that - * particular listener is removed. Otherwise, _all_ listeners are removed, - * effectively stopping watching of `filename`. - * - * Calling `fs.unwatchFile()` with a filename that is not being watched is a - * no-op, not an error. - * - * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. - * @since v0.1.31 - * @param listener Optional, a listener previously attached using `fs.watchFile()` - */ - export function unwatchFile(filename: PathLike, listener?: StatsListener): void; - export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void; - export interface WatchOptions extends Abortable { - encoding?: BufferEncoding | "buffer" | undefined; - persistent?: boolean | undefined; - recursive?: boolean | undefined; - } - export type WatchEventType = "rename" | "change"; - export type WatchListener = (event: WatchEventType, filename: T | null) => void; - export type StatsListener = (curr: Stats, prev: Stats) => void; - export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void; - /** - * Watch for changes on `filename`, where `filename` is either a file or a - * directory. - * - * The second argument is optional. If `options` is provided as a string, it - * specifies the `encoding`. Otherwise `options` should be passed as an object. - * - * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file - * which triggered the event. - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`. - * - * If a `signal` is passed, aborting the corresponding AbortController will close - * the returned `fs.FSWatcher`. - * @since v0.5.10 - * @param listener - */ - export function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: "buffer"; - }) - | "buffer", - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch( - filename: PathLike, - options?: WatchOptions | BufferEncoding | null, - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch( - filename: PathLike, - options: WatchOptions | string, - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watch(filename: PathLike, listener?: WatchListener): FSWatcher; - /** - * Test whether or not the given path exists by checking with the file system. - * Then call the `callback` argument with either true or false: - * - * ```js - * import { exists } from 'node:fs'; - * - * exists('/etc/passwd', (e) => { - * console.log(e ? 'it exists' : 'no passwd!'); - * }); - * ``` - * - * **The parameters for this callback are not consistent with other Node.js** - * **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback - * has only one boolean parameter. This is one reason `fs.access()` is recommended - * instead of `fs.exists()`. - * - * Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file does not exist. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { exists, open, close } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * console.error('myfile already exists'); - * } else { - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { open, close, exists } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } else { - * console.error('myfile does not exist'); - * } - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for existence and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the existence of a file only if the file won't be - * used directly, for example when its existence is a signal from another - * process. - * @since v0.0.2 - * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. - */ - export function exists(path: PathLike, callback: (exists: boolean) => void): void; - /** @deprecated */ - export namespace exists { - /** - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Returns `true` if the path exists, `false` otherwise. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link exists}. - * - * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other - * Node.js callbacks. `fs.existsSync()` does not use a callback. - * - * ```js - * import { existsSync } from 'node:fs'; - * - * if (existsSync('/etc/passwd')) - * console.log('The path exists.'); - * ``` - * @since v0.1.21 - */ - export function existsSync(path: PathLike): boolean; - export namespace constants { - // File Access Constants - /** Constant for fs.access(). File is visible to the calling process. */ - const F_OK: number; - /** Constant for fs.access(). File can be read by the calling process. */ - const R_OK: number; - /** Constant for fs.access(). File can be written by the calling process. */ - const W_OK: number; - /** Constant for fs.access(). File can be executed by the calling process. */ - const X_OK: number; - // File Copy Constants - /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ - const COPYFILE_EXCL: number; - /** - * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. - */ - const COPYFILE_FICLONE: number; - /** - * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then the operation will fail with an error. - */ - const COPYFILE_FICLONE_FORCE: number; - // File Open Constants - /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ - const O_RDONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ - const O_WRONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ - const O_RDWR: number; - /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ - const O_CREAT: number; - /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ - const O_EXCL: number; - /** - * Constant for fs.open(). Flag indicating that if path identifies a terminal device, - * opening the path shall not cause that terminal to become the controlling terminal for the process - * (if the process does not already have one). - */ - const O_NOCTTY: number; - /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ - const O_TRUNC: number; - /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ - const O_APPEND: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ - const O_DIRECTORY: number; - /** - * constant for fs.open(). - * Flag indicating reading accesses to the file system will no longer result in - * an update to the atime information associated with the file. - * This flag is available on Linux operating systems only. - */ - const O_NOATIME: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ - const O_NOFOLLOW: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ - const O_SYNC: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ - const O_DSYNC: number; - /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ - const O_SYMLINK: number; - /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ - const O_DIRECT: number; - /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ - const O_NONBLOCK: number; - // File Type Constants - /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ - const S_IFMT: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ - const S_IFREG: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ - const S_IFDIR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ - const S_IFCHR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ - const S_IFBLK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ - const S_IFIFO: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ - const S_IFLNK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ - const S_IFSOCK: number; - // File Mode Constants - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ - const S_IRWXU: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ - const S_IRUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ - const S_IWUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ - const S_IXUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ - const S_IRWXG: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ - const S_IRGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ - const S_IWGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ - const S_IXGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ - const S_IRWXO: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ - const S_IROTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ - const S_IWOTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ - const S_IXOTH: number; - /** - * When set, a memory file mapping is used to access the file. This flag - * is available on Windows operating systems only. On other operating systems, - * this flag is ignored. - */ - const UV_FS_O_FILEMAP: number; - } - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * The final argument, `callback`, is a callback function that is invoked with - * a possible error argument. If any of the accessibility checks fail, the error - * argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable. - * - * ```js - * import { access, constants } from 'node:fs'; - * - * const file = 'package.json'; - * - * // Check if the file exists in the current directory. - * access(file, constants.F_OK, (err) => { - * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); - * }); - * - * // Check if the file is readable. - * access(file, constants.R_OK, (err) => { - * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); - * }); - * - * // Check if the file is writable. - * access(file, constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); - * }); - * - * // Check if the file is readable and writable. - * access(file, constants.R_OK | constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`); - * }); - * ``` - * - * Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file is not accessible. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * - * access('myfile', (err) => { - * if (!err) { - * console.error('myfile already exists'); - * return; - * } - * - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * access('myfile', (err) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for accessibility and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the accessibility of a file only if the file will not be - * used directly, for example when its accessibility is a signal from another - * process. - * - * On Windows, access-control policies (ACLs) on a directory may limit access to - * a file or directory. The `fs.access()` function, however, does not check the - * ACL and therefore may report that a path is accessible even if the ACL restricts - * the user from reading or writing to it. - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function access(path: PathLike, callback: NoParamCallback): void; - export namespace access { - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike, mode?: number): Promise; - } - /** - * Synchronously tests a user's permissions for the file or directory specified - * by `path`. The `mode` argument is an optional integer that specifies the - * accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and - * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, - * the method will return `undefined`. - * - * ```js - * import { accessSync, constants } from 'node:fs'; - * - * try { - * accessSync('etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can read/write'); - * } catch (err) { - * console.error('no access!'); - * } - * ``` - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function accessSync(path: PathLike, mode?: number): void; - interface StreamOptions { - flags?: string | undefined; - encoding?: BufferEncoding | undefined; - fd?: number | promises.FileHandle | undefined; - mode?: number | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - signal?: AbortSignal | null | undefined; - highWaterMark?: number | undefined; - } - interface FSImplementation { - open?: (...args: any[]) => any; - close?: (...args: any[]) => any; - } - interface CreateReadStreamFSImplementation extends FSImplementation { - read: (...args: any[]) => any; - } - interface CreateWriteStreamFSImplementation extends FSImplementation { - write: (...args: any[]) => any; - writev?: (...args: any[]) => any; - } - interface ReadStreamOptions extends StreamOptions { - fs?: CreateReadStreamFSImplementation | null | undefined; - end?: number | undefined; - } - interface WriteStreamOptions extends StreamOptions { - fs?: CreateWriteStreamFSImplementation | null | undefined; - flush?: boolean | undefined; - } - /** - * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream - * returned by this method has a default `highWaterMark` of 64 KiB. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is - * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the - * current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use - * the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. - * - * If `fd` points to a character device that only supports blocking reads - * (such as keyboard or sound card), read operations do not finish until data is - * available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option, - * an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is - * also required. - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * // Create a stream from some character device. - * const stream = createReadStream('/dev/input/event0'); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * `mode` sets the file mode (permission and sticky bits), but only if the - * file was created. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * createReadStream('sample.txt', { start: 90, end: 99 }); - * ``` - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` option to be set to `r+` rather than the - * default `w`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option it is possible to override the corresponding `fs` implementations for `open`, `write`, `writev`, and `close`. Overriding `write()` without `writev()` can reduce - * performance as some optimizations (`_writev()`) - * will be disabled. When providing the `fs` option, overrides for at least one of `write` and `writev` are required. If no `fd` option is supplied, an override - * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. - * - * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s - * should be passed to `net.Socket`. - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other - * than a possible - * exception are given to the completion callback. - * @since v0.1.96 - */ - export function fdatasync(fd: number, callback: NoParamCallback): void; - export namespace fdatasync { - /** - * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. - * @since v0.1.96 - */ - export function fdatasyncSync(fd: number): void; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. No arguments other than a possible exception are given to the - * callback function. Node.js makes no guarantees about the atomicity of the copy - * operation. If an error occurs after the destination file has been opened for - * writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFile, constants } from 'node:fs'; - * - * function callback(err) { - * if (err) throw err; - * console.log('source.txt was copied to destination.txt'); - * } - * - * // destination.txt will be created or overwritten by default. - * copyFile('source.txt', 'destination.txt', callback); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; - export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; - export namespace copyFile { - function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; - } - /** - * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. Returns `undefined`. Node.js makes no guarantees about the - * atomicity of the copy operation. If an error occurs after the destination file - * has been opened for writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFileSync, constants } from 'node:fs'; - * - * // destination.txt will be created or overwritten by default. - * copyFileSync('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; - /** - * Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`. - * - * `position` is the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. - * - * The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`. - * - * If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties. - * - * It is unsafe to use `fs.writev()` multiple times on the same file without - * waiting for the callback. For this scenario, use {@link createWriteStream}. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] - */ - export function writev( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - export function writev( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface WriteVResult { - bytesWritten: number; - buffers: T; - } - export namespace writev { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writev}. - * @since v12.9.0 - * @param [position='null'] - * @return The number of bytes written. - */ - export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - /** - * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s - * using `readv()`. - * - * `position` is the offset from the beginning of the file from where data - * should be read. If `typeof position !== 'number'`, the data will be read - * from the current position. - * - * The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffers` properties. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - */ - export function readv( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - export function readv( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface ReadVResult { - bytesRead: number; - buffers: T; - } - export namespace readv { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readv}. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - * @return The number of bytes read. - */ - export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - - export interface OpenAsBlobOptions { - /** - * An optional mime type for the blob. - * - * @default 'undefined' - */ - type?: string | undefined; - } - - /** - * Returns a `Blob` whose data is backed by the given file. - * - * The file must not be modified after the `Blob` is created. Any modifications - * will cause reading the `Blob` data to fail with a `DOMException` error. - * Synchronous stat operations on the file when the `Blob` is created, and before - * each read in order to detect whether the file data has been modified on disk. - * - * ```js - * import { openAsBlob } from 'node:fs'; - * - * const blob = await openAsBlob('the.file.txt'); - * const ab = await blob.arrayBuffer(); - * blob.stream(); - * ``` - * @since v19.8.0 - * @experimental - */ - export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise; - - export interface OpenDirOptions { - /** - * @default 'utf8' - */ - encoding?: BufferEncoding | undefined; - /** - * Number of directory entries that are buffered - * internally when reading from the directory. Higher values lead to better - * performance but higher memory usage. - * @default 32 - */ - bufferSize?: number | undefined; - /** - * @default false - */ - recursive?: boolean | undefined; - } - /** - * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; - /** - * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for - * more details. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; - export function opendir( - path: PathLike, - options: OpenDirOptions, - cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void, - ): void; - export namespace opendir { - function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; - } - export interface BigIntStats extends StatsBase { - atimeNs: bigint; - mtimeNs: bigint; - ctimeNs: bigint; - birthtimeNs: bigint; - } - export interface BigIntOptions { - bigint: true; - } - export interface StatOptions { - bigint?: boolean | undefined; - } - export interface StatSyncOptions extends StatOptions { - throwIfNoEntry?: boolean | undefined; - } - interface CopyOptionsBase { - /** - * Dereference symlinks - * @default false - */ - dereference?: boolean | undefined; - /** - * When `force` is `false`, and the destination - * exists, throw an error. - * @default false - */ - errorOnExist?: boolean | undefined; - /** - * Overwrite existing file or directory. _The copy - * operation will ignore errors if you set this to false and the destination - * exists. Use the `errorOnExist` option to change this behavior. - * @default true - */ - force?: boolean | undefined; - /** - * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()} - */ - mode?: number | undefined; - /** - * When `true` timestamps from `src` will - * be preserved. - * @default false - */ - preserveTimestamps?: boolean | undefined; - /** - * Copy directories recursively. - * @default false - */ - recursive?: boolean | undefined; - /** - * When true, path resolution for symlinks will be skipped - * @default false - */ - verbatimSymlinks?: boolean | undefined; - } - export interface CopyOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean | Promise) | undefined; - } - export interface CopySyncOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean) | undefined; - } - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cp( - source: string | URL, - destination: string | URL, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - export function cp( - source: string | URL, - destination: string | URL, - opts: CopyOptions, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - /** - * Synchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void; -} -declare module "node:fs" { - export * from "fs"; -} diff --git a/mcp-server/node_modules/@types/node/fs/promises.d.ts b/mcp-server/node_modules/@types/node/fs/promises.d.ts deleted file mode 100644 index 7cc4dee..0000000 --- a/mcp-server/node_modules/@types/node/fs/promises.d.ts +++ /dev/null @@ -1,1270 +0,0 @@ -/** - * The `fs/promises` API provides asynchronous file system methods that return - * promises. - * - * The promise APIs use the underlying Node.js threadpool to perform file - * system operations off the event loop thread. These operations are not - * synchronized or threadsafe. Care must be taken when performing multiple - * concurrent modifications on the same file or data corruption may occur. - * @since v10.0.0 - */ -declare module "fs/promises" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable } from "node:events"; - import { Stream } from "node:stream"; - import { ReadableStream } from "node:stream/web"; - import { - BigIntStats, - BigIntStatsFs, - BufferEncodingOption, - constants as fsConstants, - CopyOptions, - Dir, - Dirent, - MakeDirectoryOptions, - Mode, - ObjectEncodingOptions, - OpenDirOptions, - OpenMode, - PathLike, - ReadOptions, - ReadOptionsWithBuffer, - ReadStream, - ReadVResult, - RmDirOptions, - RmOptions, - StatFsOptions, - StatOptions, - Stats, - StatsFs, - TimeLike, - WatchEventType, - WatchOptions, - WriteStream, - WriteVResult, - } from "node:fs"; - import { Interface as ReadlineInterface } from "node:readline"; - interface FileChangeInfo { - eventType: WatchEventType; - filename: T | null; - } - interface FlagAndOpenMode { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - } - interface FileReadResult { - bytesRead: number; - buffer: T; - } - /** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */ - interface FileReadOptions { - /** - * @default `Buffer.alloc(0xffff)` - */ - buffer?: T; - /** - * @default 0 - */ - offset?: number | null; - /** - * @default `buffer.byteLength` - */ - length?: number | null; - position?: number | null; - } - interface CreateReadStreamOptions extends Abortable { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - end?: number | undefined; - highWaterMark?: number | undefined; - } - interface CreateWriteStreamOptions { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - highWaterMark?: number | undefined; - flush?: boolean | undefined; - } - interface ReadableWebStreamOptions { - /** - * Whether to open a normal or a `'bytes'` stream. - * @since v20.0.0 - */ - type?: "bytes" | undefined; - } - // TODO: Add `EventEmitter` close - interface FileHandle { - /** - * The numeric file descriptor managed by the {FileHandle} object. - * @since v10.0.0 - */ - readonly fd: number; - /** - * Alias of `filehandle.writeFile()`. - * - * When operating on file handles, the mode cannot be changed from what it was set - * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - appendFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). - * @since v10.0.0 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - * @return Fulfills with `undefined` upon success. - */ - chown(uid: number, gid: number): Promise; - /** - * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). - * @since v10.0.0 - * @param mode the file mode bit mask. - * @return Fulfills with `undefined` upon success. - */ - chmod(mode: Mode): Promise; - /** - * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream - * returned by this method has a default `highWaterMark` of 64 KiB. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is - * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from - * the current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If the `FileHandle` points to a character device that only supports blocking - * reads (such as keyboard or sound card), read operations do not finish until data - * is available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('/dev/input/event0'); - * // Create a stream from some character device. - * const stream = fd.createReadStream(); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('sample.txt'); - * fd.createReadStream({ start: 90, end: 99 }); - * ``` - * @since v16.11.0 - */ - createReadStream(options?: CreateReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` `open` option to be set to `r+` rather than - * the default `r`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * @since v16.11.0 - */ - createWriteStream(options?: CreateWriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. - * - * Unlike `filehandle.sync` this method does not flush modified metadata. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - datasync(): Promise; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - sync(): Promise; - /** - * Reads data from the file and stores that in the given buffer. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * @since v10.0.0 - * @param buffer A buffer that will be filled with the file data read. - * @param offset The location in the buffer at which to start filling. - * @param length The number of bytes to read. - * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an - * integer, the current file position will remain unchanged. - * @return Fulfills upon success with an object with two properties: - */ - read( - buffer: T, - offset?: number | null, - length?: number | null, - position?: number | null, - ): Promise>; - read( - buffer: T, - options?: ReadOptions, - ): Promise>; - read( - options?: ReadOptionsWithBuffer, - ): Promise>; - /** - * Returns a `ReadableStream` that may be used to read the files data. - * - * An error will be thrown if this method is called more than once or is called - * after the `FileHandle` is closed or closing. - * - * ```js - * import { - * open, - * } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const chunk of file.readableWebStream()) - * console.log(chunk); - * - * await file.close(); - * ``` - * - * While the `ReadableStream` will read the file to completion, it will not - * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method. - * @since v17.0.0 - * @experimental - */ - readableWebStream(options?: ReadableWebStreamOptions): ReadableStream; - /** - * Asynchronously reads the entire contents of a file. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support reading. - * - * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current - * position till the end of the file. It doesn't always read from the beginning - * of the file. - * @since v10.0.0 - * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the - * data will be a string. - */ - readFile( - options?: - | ({ encoding?: null | undefined } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options: - | ({ encoding: BufferEncoding } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Convenience method to create a `readline` interface and stream over the file. - * See `filehandle.createReadStream()` for the options. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const line of file.readLines()) { - * console.log(line); - * } - * ``` - * @since v18.11.0 - */ - readLines(options?: CreateReadStreamOptions): ReadlineInterface; - /** - * @since v10.0.0 - * @return Fulfills with an {fs.Stats} for the file. - */ - stat( - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - stat( - opts: StatOptions & { - bigint: true; - }, - ): Promise; - stat(opts?: StatOptions): Promise; - /** - * Truncates the file. - * - * If the file was larger than `len` bytes, only the first `len` bytes will be - * retained in the file. - * - * The following example retains only the first four bytes of the file: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle = null; - * try { - * filehandle = await open('temp.txt', 'r+'); - * await filehandle.truncate(4); - * } finally { - * await filehandle?.close(); - * } - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - truncate(len?: number): Promise; - /** - * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success. - * @since v10.0.0 - */ - utimes(atime: TimeLike, mtime: TimeLike): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * The promise is fulfilled with no arguments upon success. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support writing. - * - * It is unsafe to use `filehandle.writeFile()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). - * - * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the - * current position till the end of the file. It doesn't always write from the - * beginning of the file. - * @since v10.0.0 - */ - writeFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Write `buffer` to the file. - * - * The promise is fulfilled with an object containing two properties: - * - * It is unsafe to use `filehandle.write()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). For this - * scenario, use `filehandle.createWriteStream()`. - * - * On Linux, positional writes do not work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v10.0.0 - * @param offset The start position from within `buffer` where the data to write begins. - * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write. - * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current - * position. See the POSIX pwrite(2) documentation for more detail. - */ - write( - buffer: TBuffer, - offset?: number | null, - length?: number | null, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - write( - data: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - /** - * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file. - * - * The promise is fulfilled with an object containing a two properties: - * - * It is unsafe to call `writev()` multiple times on the same file without waiting - * for the promise to be fulfilled (or rejected). - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current - * position. - */ - writev( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s - * @since v13.13.0, v12.17.0 - * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. - * @return Fulfills upon success an object containing two properties: - */ - readv( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Closes the file handle after waiting for any pending operation on the handle to - * complete. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle; - * try { - * filehandle = await open('thefile.txt', 'r'); - * } finally { - * await filehandle?.close(); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - close(): Promise; - /** - * An alias for {@link FileHandle.close()}. - * @since v20.4.0 - */ - [Symbol.asyncDispose](): Promise; - } - const constants: typeof fsConstants; - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If the accessibility check is successful, the promise is fulfilled with no - * value. If any of the accessibility checks fail, the promise is rejected - * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and - * written by the current process. - * - * ```js - * import { access, constants } from 'node:fs/promises'; - * - * try { - * await access('/etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can access'); - * } catch { - * console.error('cannot access'); - * } - * ``` - * - * Using `fsPromises.access()` to check for the accessibility of a file before - * calling `fsPromises.open()` is not recommended. Doing so introduces a race - * condition, since other processes may change the file's state between the two - * calls. Instead, user code should open/read/write the file directly and handle - * the error raised if the file is not accessible. - * @since v10.0.0 - * @param [mode=fs.constants.F_OK] - * @return Fulfills with `undefined` upon success. - */ - function access(path: PathLike, mode?: number): Promise; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. - * - * No guarantees are made about the atomicity of the copy operation. If an - * error occurs after the destination file has been opened for writing, an attempt - * will be made to remove the destination. - * - * ```js - * import { copyFile, constants } from 'node:fs/promises'; - * - * try { - * await copyFile('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * try { - * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * ``` - * @since v10.0.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. - * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) - * @return Fulfills with `undefined` upon success. - */ - function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; - /** - * Opens a `FileHandle`. - * - * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * @since v10.0.0 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. - * @return Fulfills with a {FileHandle} object. - */ - function open(path: PathLike, flags?: string | number, mode?: Mode): Promise; - /** - * Renames `oldPath` to `newPath`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rename(oldPath: PathLike, newPath: PathLike): Promise; - /** - * Truncates (shortens or extends the length) of the content at `path` to `len` bytes. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - function truncate(path: PathLike, len?: number): Promise; - /** - * Removes the directory identified by `path`. - * - * Using `fsPromises.rmdir()` on a file (not a directory) results in the - * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rmdir(path: PathLike, options?: RmDirOptions): Promise; - /** - * Removes files and directories (modeled on the standard POSIX `rm` utility). - * @since v14.14.0 - * @return Fulfills with `undefined` upon success. - */ - function rm(path: PathLike, options?: RmOptions): Promise; - /** - * Asynchronously creates a directory. - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory - * that exists results in a - * rejection only when `recursive` is false. - * - * ```js - * import { mkdir } from 'node:fs/promises'; - * - * try { - * const projectFolder = new URL('./test/project/', import.meta.url); - * const createDir = await mkdir(projectFolder, { recursive: true }); - * - * console.log(`created ${createDir}`); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * @since v10.0.0 - * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. - */ - function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; - /** - * Reads the contents of a directory. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned - * will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects. - * - * ```js - * import { readdir } from 'node:fs/promises'; - * - * try { - * const files = await readdir(path); - * for (const file of files) - * console.log(file); - * } catch (err) { - * console.error(err); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a directory. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - /** - * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is - * fulfilled with the`linkString` upon success. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, the link path - * returned will be passed as a `Buffer` object. - * @since v10.0.0 - * @return Fulfills with the `linkString` upon success. - */ - function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink( - path: PathLike, - options?: ObjectEncodingOptions | string | null, - ): Promise; - /** - * Creates a symbolic link. - * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will - * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not - * exist, `'file'` will be used. Windows junction points require the destination - * path to be absolute. When using `'junction'`, the `target` argument will - * automatically be normalized to absolute path. Junction points on NTFS volumes - * can only point to directories. - * @since v10.0.0 - * @param [type='null'] - * @return Fulfills with `undefined` upon success. - */ - function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; - /** - * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, - * in which case the link itself is stat-ed, not the file that it refers to. - * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. - */ - function lstat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function lstat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function lstat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given `path`. - */ - function stat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function stat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function stat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v19.6.0, v18.15.0 - * @return Fulfills with the {fs.StatFs} object for the given `path`. - */ - function statfs( - path: PathLike, - opts?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function statfs( - path: PathLike, - opts: StatFsOptions & { - bigint: true; - }, - ): Promise; - function statfs(path: PathLike, opts?: StatFsOptions): Promise; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function link(existingPath: PathLike, newPath: PathLike): Promise; - /** - * If `path` refers to a symbolic link, then the link is removed without affecting - * the file or directory to which that link refers. If the `path` refers to a file - * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function unlink(path: PathLike): Promise; - /** - * Changes the permissions of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the permissions on a symbolic link. - * - * This method is only implemented on macOS. - * @deprecated Since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the ownership on a symbolic link. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchown(path: PathLike, uid: number, gid: number): Promise; - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a - * symbolic link, then the link is not dereferenced: instead, the timestamps of - * the symbolic link itself are changed. - * @since v14.5.0, v12.19.0 - * @return Fulfills with `undefined` upon success. - */ - function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Changes the ownership of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chown(path: PathLike, uid: number, gid: number): Promise; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time, `Date`s, or a - * numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path. If the `encoding` is set to `'buffer'`, the path returned will be - * passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v10.0.0 - * @return Fulfills with the resolved path upon success. - */ - function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath( - path: PathLike, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * Creates a unique temporary directory. A unique directory name is generated by - * appending six random characters to the end of the provided `prefix`. Due to - * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some - * platforms, notably the BSDs, can return more than six random characters, and - * replace trailing `X` characters in `prefix` with random characters. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs/promises'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * try { - * await mkdtemp(join(tmpdir(), 'foo-')); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * The `fsPromises.mkdtemp()` method will append the six randomly selected - * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing - * platform-specific path separator - * (`import { sep } from 'node:node:path'`). - * @since v10.0.0 - * @return Fulfills with a string containing the file system path of the newly created temporary directory. - */ - function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp( - prefix: string, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * If `options` is a string, then it specifies the encoding. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * Any specified `FileHandle` has to support writing. - * - * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file - * without waiting for the promise to be settled. - * - * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience - * method that performs multiple `write` calls internally to write the buffer - * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`. - * - * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs/promises'; - * import { Buffer } from 'node:buffer'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * const promise = writeFile('message.txt', data, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v10.0.0 - * @param file filename or `FileHandle` - * @return Fulfills with `undefined` upon success. - */ - function writeFile( - file: PathLike | FileHandle, - data: - | string - | NodeJS.ArrayBufferView - | Iterable - | AsyncIterable - | Stream, - options?: - | (ObjectEncodingOptions & { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - /** - * If all data is successfully written to the file, and `flush` - * is `true`, `filehandle.sync()` is used to flush the data. - * @default false - */ - flush?: boolean | undefined; - } & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * The `path` may be specified as a `FileHandle` that has been opened - * for appending (using `fsPromises.open()`). - * @since v10.0.0 - * @param path filename or {FileHandle} - * @return Fulfills with `undefined` upon success. - */ - function appendFile( - path: PathLike | FileHandle, - data: string | Uint8Array, - options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * - * If no encoding is specified (using `options.encoding`), the data is returned - * as a `Buffer` object. Otherwise, the data will be a string. - * - * If `options` is a string, then it specifies the encoding. - * - * When the `path` is a directory, the behavior of `fsPromises.readFile()` is - * platform-specific. On macOS, Linux, and Windows, the promise will be rejected - * with an error. On FreeBSD, a representation of the directory's contents will be - * returned. - * - * An example of reading a `package.json` file located in the same directory of the - * running code: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * try { - * const filePath = new URL('./package.json', import.meta.url); - * const contents = await readFile(filePath, { encoding: 'utf8' }); - * console.log(contents); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * - * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a - * request is aborted the promise returned is rejected with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const promise = readFile(fileName, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * - * Any specified `FileHandle` has to support reading. - * @since v10.0.0 - * @param path filename or `FileHandle` - * @return Fulfills with the contents of the file. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ({ - encoding?: null | undefined; - flag?: OpenMode | undefined; - } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options: - | ({ - encoding: BufferEncoding; - flag?: OpenMode | undefined; - } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ( - & ObjectEncodingOptions - & Abortable - & { - flag?: OpenMode | undefined; - } - ) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * - * Example using async iteration: - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - * @return Fulfills with an {fs.Dir}. - */ - function opendir(path: PathLike, options?: OpenDirOptions): Promise; - /** - * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. - * - * ```js - * import { watch } from 'node:fs/promises'; - * - * const ac = new AbortController(); - * const { signal } = ac; - * setTimeout(() => ac.abort(), 10000); - * - * (async () => { - * try { - * const watcher = watch(__filename, { signal }); - * for await (const event of watcher) - * console.log(event); - * } catch (err) { - * if (err.name === 'AbortError') - * return; - * throw err; - * } - * })(); - * ``` - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. - * @since v15.9.0, v14.18.0 - * @return of objects with the properties: - */ - function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: "buffer"; - }) - | "buffer", - ): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch( - filename: PathLike, - options: WatchOptions | string, - ): AsyncIterable> | AsyncIterable>; - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - * @return Fulfills with `undefined` upon success. - */ - function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise; -} -declare module "node:fs/promises" { - export * from "fs/promises"; -} diff --git a/mcp-server/node_modules/@types/node/globals.d.ts b/mcp-server/node_modules/@types/node/globals.d.ts deleted file mode 100644 index 3bff22a..0000000 --- a/mcp-server/node_modules/@types/node/globals.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -declare var global: typeof globalThis; - -declare var process: NodeJS.Process; -declare var console: Console; - -interface ErrorConstructor { - /** - * Creates a `.stack` property on `targetObject`, which when accessed returns - * a string representing the location in the code at which - * `Error.captureStackTrace()` was called. - * - * ```js - * const myObject = {}; - * Error.captureStackTrace(myObject); - * myObject.stack; // Similar to `new Error().stack` - * ``` - * - * The first line of the trace will be prefixed with - * `${myObject.name}: ${myObject.message}`. - * - * The optional `constructorOpt` argument accepts a function. If given, all frames - * above `constructorOpt`, including `constructorOpt`, will be omitted from the - * generated stack trace. - * - * The `constructorOpt` argument is useful for hiding implementation - * details of error generation from the user. For instance: - * - * ```js - * function a() { - * b(); - * } - * - * function b() { - * c(); - * } - * - * function c() { - * // Create an error without stack trace to avoid calculating the stack trace twice. - * const { stackTraceLimit } = Error; - * Error.stackTraceLimit = 0; - * const error = new Error(); - * Error.stackTraceLimit = stackTraceLimit; - * - * // Capture the stack trace above function b - * Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace - * throw error; - * } - * - * a(); - * ``` - */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; - /** - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; - /** - * The `Error.stackTraceLimit` property specifies the number of stack frames - * collected by a stack trace (whether generated by `new Error().stack` or - * `Error.captureStackTrace(obj)`). - * - * The default value is `10` but may be set to any valid JavaScript number. Changes - * will affect any stack trace captured _after_ the value has been changed. - * - * If set to a non-number value, or set to a negative number, stack traces will - * not capture any frames. - */ - stackTraceLimit: number; -} - -/** - * Enable this API with the `--expose-gc` CLI flag. - */ -declare var gc: NodeJS.GCFunction | undefined; - -declare namespace NodeJS { - interface CallSite { - getColumnNumber(): number | null; - getEnclosingColumnNumber(): number | null; - getEnclosingLineNumber(): number | null; - getEvalOrigin(): string | undefined; - getFileName(): string | null; - getFunction(): Function | undefined; - getFunctionName(): string | null; - getLineNumber(): number | null; - getMethodName(): string | null; - getPosition(): number; - getPromiseIndex(): number | null; - getScriptHash(): string; - getScriptNameOrSourceURL(): string | null; - getThis(): unknown; - getTypeName(): string | null; - isAsync(): boolean; - isConstructor(): boolean; - isEval(): boolean; - isNative(): boolean; - isPromiseAll(): boolean; - isToplevel(): boolean; - } - - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; - } - - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): this; - end(data: string | Uint8Array, cb?: () => void): this; - end(str: string, encoding?: BufferEncoding, cb?: () => void): this; - } - - interface ReadWriteStream extends ReadableStream, WritableStream {} - - interface RefCounted { - ref(): this; - unref(): this; - } - - interface Dict { - [key: string]: T | undefined; - } - - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } - - type PartialOptions = { [K in keyof T]?: T[K] | undefined }; - - interface GCFunction { - (minor?: boolean): void; - (options: NodeJS.GCOptions & { execution: "async" }): Promise; - (options: NodeJS.GCOptions): void; - } - - interface GCOptions { - execution?: "sync" | "async" | undefined; - flavor?: "regular" | "last-resort" | undefined; - type?: "major-snapshot" | "major" | "minor" | undefined; - filename?: string | undefined; - } - - /** An iterable iterator returned by the Node.js API. */ - // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator. - interface Iterator extends IteratorObject { - [Symbol.iterator](): NodeJS.Iterator; - } - - /** An async iterable iterator returned by the Node.js API. */ - // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator. - interface AsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } -} diff --git a/mcp-server/node_modules/@types/node/globals.typedarray.d.ts b/mcp-server/node_modules/@types/node/globals.typedarray.d.ts deleted file mode 100644 index 8eafc3b..0000000 --- a/mcp-server/node_modules/@types/node/globals.typedarray.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = - | TypedArray - | DataView; - - // The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node - // while maintaining compatibility with TS <=5.6. - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/mcp-server/node_modules/@types/node/http.d.ts b/mcp-server/node_modules/@types/node/http.d.ts deleted file mode 100644 index 168c549..0000000 --- a/mcp-server/node_modules/@types/node/http.d.ts +++ /dev/null @@ -1,2049 +0,0 @@ -/** - * To use the HTTP server and client one must import the `node:http` module. - * - * The HTTP interfaces in Node.js are designed to support many features - * of the protocol which have been traditionally difficult to use. - * In particular, large, possibly chunk-encoded, messages. The interface is - * careful to never buffer entire requests or responses, so the - * user is able to stream data. - * - * HTTP message headers are represented by an object like this: - * - * ```json - * { "content-length": "123", - * "content-type": "text/plain", - * "connection": "keep-alive", - * "host": "example.com", - * "accept": "*" } - * ``` - * - * Keys are lowercased. Values are not modified. - * - * In order to support the full spectrum of possible HTTP applications, the Node.js - * HTTP API is very low-level. It deals with stream handling and message - * parsing only. It parses a message into headers and body but it does not - * parse the actual headers or the body. - * - * See `message.headers` for details on how duplicate headers are handled. - * - * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For - * example, the previous message header object might have a `rawHeaders` list like the following: - * - * ```js - * [ 'ConTent-Length', '123456', - * 'content-LENGTH', '123', - * 'content-type', 'text/plain', - * 'CONNECTION', 'keep-alive', - * 'Host', 'example.com', - * 'accepT', '*' ] - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js) - */ -declare module "http" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { URL } from "node:url"; - import { LookupOptions } from "node:dns"; - import { EventEmitter } from "node:events"; - import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net"; - // incoming headers will never contain number - interface IncomingHttpHeaders extends NodeJS.Dict { - accept?: string | undefined; - "accept-encoding"?: string | undefined; - "accept-language"?: string | undefined; - "accept-patch"?: string | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - "alt-svc"?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - connection?: string | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-type"?: string | undefined; - cookie?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - location?: string | undefined; - origin?: string | undefined; - pragma?: string | undefined; - "proxy-authenticate"?: string | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "retry-after"?: string | undefined; - "sec-fetch-site"?: string | undefined; - "sec-fetch-mode"?: string | undefined; - "sec-fetch-user"?: string | undefined; - "sec-fetch-dest"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | undefined; - "sec-websocket-version"?: string | undefined; - "set-cookie"?: string[] | undefined; - "strict-transport-security"?: string | undefined; - tk?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - upgrade?: string | undefined; - "user-agent"?: string | undefined; - vary?: string | undefined; - via?: string | undefined; - warning?: string | undefined; - "www-authenticate"?: string | undefined; - } - // outgoing headers allows numbers (as they are converted internally to strings) - type OutgoingHttpHeader = number | string | string[]; - interface OutgoingHttpHeaders extends NodeJS.Dict { - accept?: string | string[] | undefined; - "accept-charset"?: string | string[] | undefined; - "accept-encoding"?: string | string[] | undefined; - "accept-language"?: string | string[] | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - "cdn-cache-control"?: string | undefined; - connection?: string | string[] | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | number | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-security-policy"?: string | undefined; - "content-security-policy-report-only"?: string | undefined; - cookie?: string | string[] | undefined; - dav?: string | string[] | undefined; - dnt?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-range"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - link?: string | string[] | undefined; - location?: string | undefined; - "max-forwards"?: string | undefined; - origin?: string | undefined; - pragma?: string | string[] | undefined; - "proxy-authenticate"?: string | string[] | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - "public-key-pins-report-only"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "referrer-policy"?: string | undefined; - refresh?: string | undefined; - "retry-after"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | string[] | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | string[] | undefined; - "sec-websocket-version"?: string | undefined; - server?: string | undefined; - "set-cookie"?: string | string[] | undefined; - "strict-transport-security"?: string | undefined; - te?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - "user-agent"?: string | undefined; - upgrade?: string | undefined; - "upgrade-insecure-requests"?: string | undefined; - vary?: string | undefined; - via?: string | string[] | undefined; - warning?: string | undefined; - "www-authenticate"?: string | string[] | undefined; - "x-content-type-options"?: string | undefined; - "x-dns-prefetch-control"?: string | undefined; - "x-frame-options"?: string | undefined; - "x-xss-protection"?: string | undefined; - } - interface ClientRequestArgs extends Pick { - _defaultAgent?: Agent | undefined; - agent?: Agent | boolean | undefined; - auth?: string | null | undefined; - createConnection?: - | (( - options: ClientRequestArgs, - oncreate: (err: Error | null, socket: stream.Duplex) => void, - ) => stream.Duplex | null | undefined) - | undefined; - defaultPort?: number | string | undefined; - family?: number | undefined; - headers?: OutgoingHttpHeaders | readonly string[] | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - insecureHTTPParser?: boolean | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - lookup?: LookupFunction | undefined; - /** - * @default 16384 - */ - maxHeaderSize?: number | undefined; - method?: string | undefined; - path?: string | null | undefined; - port?: number | string | null | undefined; - protocol?: string | null | undefined; - setHost?: boolean | undefined; - signal?: AbortSignal | undefined; - socketPath?: string | undefined; - timeout?: number | undefined; - uniqueHeaders?: Array | undefined; - joinDuplicateHeaders?: boolean | undefined; - } - interface ServerOptions< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > { - /** - * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`. - */ - IncomingMessage?: Request | undefined; - /** - * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. - */ - ServerResponse?: Response | undefined; - /** - * Sets the timeout value in milliseconds for receiving the entire request from the client. - * @see Server.requestTimeout for more information. - * @default 300000 - * @since v18.0.0 - */ - requestTimeout?: number | undefined; - /** - * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates. - * @default false - * @since v18.14.0 - */ - joinDuplicateHeaders?: boolean | undefined; - /** - * The number of milliseconds of inactivity a server needs to wait for additional incoming data, - * after it has finished writing the last response, before a socket will be destroyed. - * @see Server.keepAliveTimeout for more information. - * @default 5000 - * @since v18.0.0 - */ - keepAliveTimeout?: number | undefined; - /** - * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests. - * @default 30000 - */ - connectionsCheckingInterval?: number | undefined; - /** - * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client. - * See {@link Server.headersTimeout} for more information. - * @default 60000 - * @since 18.0.0 - */ - headersTimeout?: number | undefined; - /** - * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. - * Default: @see stream.getDefaultHighWaterMark(). - * @since v20.1.0 - */ - highWaterMark?: number | undefined; - /** - * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. - * Using the insecure parser should be avoided. - * See --insecure-http-parser for more information. - * @default false - */ - insecureHTTPParser?: boolean | undefined; - /** - * Optionally overrides the value of `--max-http-header-size` for requests received by - * this server, i.e. the maximum length of request headers in bytes. - * @default 16384 - * @since v13.3.0 - */ - maxHeaderSize?: number | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default true - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code - * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification). - * @default true - * @since 20.0.0 - */ - requireHostHeader?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * A list of response headers that should be sent only once. - * If the header's value is an array, the items will be joined using `; `. - */ - uniqueHeaders?: Array | undefined; - /** - * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body. - * @default false - * @since v18.17.0, v20.2.0 - */ - rejectNonStandardBodyWrites?: boolean | undefined; - } - type RequestListener< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > = (req: InstanceType, res: InstanceType & { req: InstanceType }) => void; - /** - * @since v0.1.17 - */ - class Server< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > extends NetServer { - constructor(requestListener?: RequestListener); - constructor(options: ServerOptions, requestListener?: RequestListener); - /** - * Sets the timeout value for sockets, and emits a `'timeout'` event on - * the Server object, passing the socket as an argument, if a timeout - * occurs. - * - * If there is a `'timeout'` event listener on the Server object, then it - * will be called with the timed-out socket as an argument. - * - * By default, the Server does not timeout sockets. However, if a callback - * is assigned to the Server's `'timeout'` event, timeouts must be handled - * explicitly. - * @since v0.9.12 - * @param [msecs=0 (no timeout)] - */ - setTimeout(msecs?: number, callback?: (socket: Socket) => void): this; - setTimeout(callback: (socket: Socket) => void): this; - /** - * Limits maximum incoming headers count. If set to 0, no limit will be applied. - * @since v0.7.0 - */ - maxHeadersCount: number | null; - /** - * The maximum number of requests socket can handle - * before closing keep alive connection. - * - * A value of `0` will disable the limit. - * - * When the limit is reached it will set the `Connection` header value to `close`, - * but will not actually close the connection, subsequent requests sent - * after the limit is reached will get `503 Service Unavailable` as a response. - * @since v16.10.0 - */ - maxRequestsPerSocket: number | null; - /** - * The number of milliseconds of inactivity before a socket is presumed - * to have timed out. - * - * A value of `0` will disable the timeout behavior on incoming connections. - * - * The socket timeout logic is set up on connection, so changing this - * value only affects new connections to the server, not any existing connections. - * @since v0.9.12 - */ - timeout: number; - /** - * Limit the amount of time the parser will wait to receive the complete HTTP - * headers. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v11.3.0, v10.14.0 - */ - headersTimeout: number; - /** - * The number of milliseconds of inactivity a server needs to wait for additional - * incoming data, after it has finished writing the last response, before a socket - * will be destroyed. If the server receives new data before the keep-alive - * timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`. - * - * A value of `0` will disable the keep-alive timeout behavior on incoming - * connections. - * A value of `0` makes the http server behave similarly to Node.js versions prior - * to 8.0.0, which did not have a keep-alive timeout. - * - * The socket timeout logic is set up on connection, so changing this value only - * affects new connections to the server, not any existing connections. - * @since v8.0.0 - */ - keepAliveTimeout: number; - /** - * Sets the timeout value in milliseconds for receiving the entire request from - * the client. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v14.11.0 - */ - requestTimeout: number; - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request - * or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: RequestListener): this; - addListener(event: "checkExpectation", listener: RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - addListener(event: "request", listener: RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "clientError", err: Error, socket: stream.Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - emit(event: "dropRequest", req: InstanceType, socket: stream.Duplex): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: RequestListener): this; - on(event: "checkExpectation", listener: RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - on(event: "request", listener: RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: RequestListener): this; - once(event: "checkExpectation", listener: RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - once(event: "request", listener: RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: RequestListener): this; - prependListener(event: "checkExpectation", listener: RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependListener(event: "request", listener: RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependOnceListener(event: "request", listener: RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from - * the perspective of the participants of an HTTP transaction. - * @since v0.1.17 - */ - class OutgoingMessage extends stream.Writable { - readonly req: Request; - chunkedEncoding: boolean; - shouldKeepAlive: boolean; - useChunkedEncodingByDefault: boolean; - sendDate: boolean; - /** - * @deprecated Use `writableEnded` instead. - */ - finished: boolean; - /** - * Read-only. `true` if the headers were sent, otherwise `false`. - * @since v0.9.3 - */ - readonly headersSent: boolean; - /** - * Alias of `outgoingMessage.socket`. - * @since v0.3.0 - * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead. - */ - readonly connection: Socket | null; - /** - * Reference to the underlying socket. Usually, users will not want to access - * this property. - * - * After calling `outgoingMessage.end()`, this property will be nulled. - * @since v0.3.0 - */ - readonly socket: Socket | null; - constructor(); - /** - * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter. - * @since v0.9.12 - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * Sets a single header value. If the header already exists in the to-be-sent - * headers, its value will be replaced. Use an array of strings to send multiple - * headers with the same name. - * @since v0.4.0 - * @param name Header name - * @param value Header value - */ - setHeader(name: string, value: number | string | readonly string[]): this; - /** - * Sets multiple header values for implicit headers. headers must be an instance of - * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its - * value will be replaced. - * - * ```js - * const headers = new Headers({ foo: 'bar' }); - * outgoingMessage.setHeaders(headers); - * ``` - * - * or - * - * ```js - * const headers = new Map([['foo', 'bar']]); - * outgoingMessage.setHeaders(headers); - * ``` - * - * When headers have been set with `outgoingMessage.setHeaders()`, they will be - * merged with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * const headers = new Headers({ 'Content-Type': 'text/html' }); - * res.setHeaders(headers); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * @since v19.6.0, v18.15.0 - * @param name Header name - * @param value Header value - */ - setHeaders(headers: Headers | Map): this; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple - * times. - * - * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`. - * - * Depending of the value of `options.uniqueHeaders` when the client request or the - * server were created, this will end up in the header being sent multiple times or - * a single time with values joined using `; `. - * @since v18.3.0, v16.17.0 - * @param name Header name - * @param value Header value - */ - appendHeader(name: string, value: string | readonly string[]): this; - /** - * Gets the value of the HTTP header with the given name. If that header is not - * set, the returned value will be `undefined`. - * @since v0.4.0 - * @param name Name of header - */ - getHeader(name: string): number | string | string[] | undefined; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow - * copy is used, array values may be mutated without additional calls to - * various header-related HTTP module methods. The keys of the returned - * object are the header names and the values are the respective header - * values. All header names are lowercase. - * - * The object returned by the `outgoingMessage.getHeaders()` method does - * not prototypically inherit from the JavaScript `Object`. This means that - * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`, - * and others are not defined and will not work. - * - * ```js - * outgoingMessage.setHeader('Foo', 'bar'); - * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = outgoingMessage.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v7.7.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All names are lowercase. - * @since v7.7.0 - */ - getHeaderNames(): string[]; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name is case-insensitive. - * - * ```js - * const hasContentType = outgoingMessage.hasHeader('content-type'); - * ``` - * @since v7.7.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that is queued for implicit sending. - * - * ```js - * outgoingMessage.removeHeader('Content-Encoding'); - * ``` - * @since v0.4.0 - * @param name Header name - */ - removeHeader(name: string): void; - /** - * Adds HTTP trailers (headers but at the end of the message) to the message. - * - * Trailers will **only** be emitted if the message is chunked encoded. If not, - * the trailers will be silently discarded. - * - * HTTP requires the `Trailer` header to be sent to emit trailers, - * with a list of header field names in its value, e.g. - * - * ```js - * message.writeHead(200, { 'Content-Type': 'text/plain', - * 'Trailer': 'Content-MD5' }); - * message.write(fileData); - * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); - * message.end(); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v0.3.0 - */ - addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; - /** - * Flushes the message headers. - * - * For efficiency reason, Node.js normally buffers the message headers - * until `outgoingMessage.end()` is called or the first chunk of message data - * is written. It then tries to pack the headers and data into a single TCP - * packet. - * - * It is usually desired (it saves a TCP round-trip), but not when the first - * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message. - * @since v1.6.0 - */ - flushHeaders(): void; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v0.1.17 - */ - class ServerResponse extends OutgoingMessage { - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v0.4.0 - */ - statusCode: number; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status message that will be sent to the client when - * the headers get flushed. If this is left as `undefined` then the standard - * message for the status code will be used. - * - * ```js - * response.statusMessage = 'Not found'; - * ``` - * - * After response header was sent to the client, this property indicates the - * status message which was sent out. - * @since v0.11.8 - */ - statusMessage: string; - /** - * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal. - * Mismatching the `Content-Length` header value will result - * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * @since v18.10.0, v16.18.0 - */ - strictContentLength: boolean; - constructor(req: Request); - assignSocket(socket: Socket): void; - detachSocket(socket: Socket): void; - /** - * Sends an HTTP/1.1 100 Continue message to the client, indicating that - * the request body should be sent. See the `'checkContinue'` event on `Server`. - * @since v0.3.0 - */ - writeContinue(callback?: () => void): void; - /** - * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. The optional `callback` argument will be called when - * the response message has been written. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * 'x-trace-id': 'id for diagnostics', - * }); - * - * const earlyHintsCallback = () => console.log('early hints message sent'); - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }, earlyHintsCallback); - * ``` - * @since v18.11.0 - * @param hints An object containing the values of headers - * @param callback Will be called when the response message has been written - */ - writeEarlyHints(hints: Record, callback?: () => void): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * Optionally one can give a human-readable `statusMessage` as the second - * argument. - * - * `headers` may be an `Array` where the keys and values are in the same list. - * It is _not_ a list of tuples. So, the even-numbered offsets are key values, - * and the odd-numbered offsets are the associated values. The array is in the same - * format as `request.rawHeaders`. - * - * Returns a reference to the `ServerResponse`, so that calls can be chained. - * - * ```js - * const body = 'hello world'; - * response - * .writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain', - * }) - * .end(body); - * ``` - * - * This method must only be called once on a message and it must - * be called before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * If this method is called and `response.setHeader()` has not been called, - * it will directly write the supplied header values onto the network channel - * without caching internally, and the `response.getHeader()` on the header - * will not yield the expected result. If progressive population of headers is - * desired with potential future retrieval and modification, use `response.setHeader()` instead. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js - * will check whether `Content-Length` and the length of the body which has - * been transmitted are equal or not. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a \[`Error`\]\[\] being thrown. - * @since v0.1.30 - */ - writeHead( - statusCode: number, - statusMessage?: string, - headers?: OutgoingHttpHeaders | OutgoingHttpHeader[], - ): this; - writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; - /** - * Sends a HTTP/1.1 102 Processing message to the client, indicating that - * the request body should be sent. - * @since v10.0.0 - */ - writeProcessing(callback?: () => void): void; - } - interface InformationEvent { - statusCode: number; - statusMessage: string; - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - headers: IncomingHttpHeaders; - rawHeaders: string[]; - } - /** - * This object is created internally and returned from {@link request}. It - * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will - * be sent along with the first data chunk or when calling `request.end()`. - * - * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response - * headers have been received. The `'response'` event is executed with one - * argument which is an instance of {@link IncomingMessage}. - * - * During the `'response'` event, one can add listeners to the - * response object; particularly to listen for the `'data'` event. - * - * If no `'response'` handler is added, then the response will be - * entirely discarded. However, if a `'response'` event handler is added, - * then the data from the response object **must** be consumed, either by - * calling `response.read()` whenever there is a `'readable'` event, or - * by adding a `'data'` handler, or by calling the `.resume()` method. - * Until the data is consumed, the `'end'` event will not fire. Also, until - * the data is read it will consume memory that can eventually lead to a - * 'process out of memory' error. - * - * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered. - * - * Set `Content-Length` header to limit the response body size. - * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown, - * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * - * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. - * @since v0.1.17 - */ - class ClientRequest extends OutgoingMessage { - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v0.11.14 - * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead. - */ - aborted: boolean; - /** - * The request host. - * @since v14.5.0, v12.19.0 - */ - host: string; - /** - * The request protocol. - * @since v14.5.0, v12.19.0 - */ - protocol: string; - /** - * When sending request through a keep-alive enabled agent, the underlying socket - * might be reused. But if server closes connection at unfortunate time, client - * may run into a 'ECONNRESET' error. - * - * ```js - * import http from 'node:http'; - * - * // Server has a 5 seconds keep-alive timeout by default - * http - * .createServer((req, res) => { - * res.write('hello\n'); - * res.end(); - * }) - * .listen(3000); - * - * setInterval(() => { - * // Adapting a keep-alive agent - * http.get('http://localhost:3000', { agent }, (res) => { - * res.on('data', (data) => { - * // Do nothing - * }); - * }); - * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout - * ``` - * - * By marking a request whether it reused socket or not, we can do - * automatic error retry base on it. - * - * ```js - * import http from 'node:http'; - * const agent = new http.Agent({ keepAlive: true }); - * - * function retriableRequest() { - * const req = http - * .get('http://localhost:3000', { agent }, (res) => { - * // ... - * }) - * .on('error', (err) => { - * // Check if retry is needed - * if (req.reusedSocket && err.code === 'ECONNRESET') { - * retriableRequest(); - * } - * }); - * } - * - * retriableRequest(); - * ``` - * @since v13.0.0, v12.16.0 - */ - reusedSocket: boolean; - /** - * Limits maximum response headers count. If set to 0, no limit will be applied. - */ - maxHeadersCount: number; - constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); - /** - * The request method. - * @since v0.1.97 - */ - method: string; - /** - * The request path. - * @since v0.4.0 - */ - path: string; - /** - * Marks the request as aborting. Calling this will cause remaining data - * in the response to be dropped and the socket to be destroyed. - * @since v0.3.8 - * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. - */ - abort(): void; - onSocket(socket: Socket): void; - /** - * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. - * @since v0.5.9 - * @param timeout Milliseconds before a request times out. - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. - * @since v0.5.9 - */ - setNoDelay(noDelay?: boolean): void; - /** - * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. - * @since v0.5.9 - */ - setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; - /** - * Returns an array containing the unique names of the current outgoing raw - * headers. Header names are returned with their exact casing being set. - * - * ```js - * request.setHeader('Foo', 'bar'); - * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = request.getRawHeaderNames(); - * // headerNames === ['Foo', 'Set-Cookie'] - * ``` - * @since v15.13.0, v14.17.0 - */ - getRawHeaderNames(): string[]; - /** - * @deprecated - */ - addListener(event: "abort", listener: () => void): this; - addListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "continue", listener: () => void): this; - addListener(event: "information", listener: (info: InformationEvent) => void): this; - addListener(event: "response", listener: (response: IncomingMessage) => void): this; - addListener(event: "socket", listener: (socket: Socket) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - on(event: "abort", listener: () => void): this; - on( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "continue", listener: () => void): this; - on(event: "information", listener: (info: InformationEvent) => void): this; - on(event: "response", listener: (response: IncomingMessage) => void): this; - on(event: "socket", listener: (socket: Socket) => void): this; - on(event: "timeout", listener: () => void): this; - on( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - once(event: "abort", listener: () => void): this; - once( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "continue", listener: () => void): this; - once(event: "information", listener: (info: InformationEvent) => void): this; - once(event: "response", listener: (response: IncomingMessage) => void): this; - once(event: "socket", listener: (socket: Socket) => void): this; - once(event: "timeout", listener: () => void): this; - once( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependListener(event: "abort", listener: () => void): this; - prependListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "continue", listener: () => void): this; - prependListener(event: "information", listener: (info: InformationEvent) => void): this; - prependListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependListener(event: "socket", listener: (socket: Socket) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependOnceListener(event: "abort", listener: () => void): this; - prependOnceListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "continue", listener: () => void): this; - prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this; - prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependOnceListener(event: "socket", listener: (socket: Socket) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to - * access response - * status, headers, and data. - * - * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to - * parse and emit the incoming HTTP headers and payload, as the underlying socket - * may be reused multiple times in case of keep-alive. - * @since v0.1.17 - */ - class IncomingMessage extends stream.Readable { - constructor(socket: Socket); - /** - * The `message.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from stream.Readable. - */ - aborted: boolean; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. - * Probably either `'1.1'` or `'1.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v0.1.1 - */ - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - /** - * The `message.complete` property will be `true` if a complete HTTP message has - * been received and successfully parsed. - * - * This property is particularly useful as a means of determining if a client or - * server fully transmitted a message before a connection was terminated: - * - * ```js - * const req = http.request({ - * host: '127.0.0.1', - * port: 8080, - * method: 'POST', - * }, (res) => { - * res.resume(); - * res.on('end', () => { - * if (!res.complete) - * console.error( - * 'The connection was terminated while the message was still being sent'); - * }); - * }); - * ``` - * @since v0.3.0 - */ - complete: boolean; - /** - * Alias for `message.socket`. - * @since v0.1.90 - * @deprecated Since v16.0.0 - Use `socket`. - */ - connection: Socket; - /** - * The `net.Socket` object associated with the connection. - * - * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the - * client's authentication details. - * - * This property is guaranteed to be an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specified a socket - * type other than `net.Socket` or internally nulled. - * @since v0.3.0 - */ - socket: Socket; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * Duplicates in raw headers are handled in the following ways, depending on the - * header name: - * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. - * To allow duplicate values of the headers listed above to be joined, - * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more - * information. - * * `set-cookie` is always an array. Duplicates are added to the array. - * * For duplicate `cookie` headers, the values are joined together with `; `. - * * For all other headers, the values are joined together with `, `. - * @since v0.1.5 - */ - headers: IncomingHttpHeaders; - /** - * Similar to `message.headers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': ['curl/7.22.0'], - * // host: ['127.0.0.1:8000'], - * // accept: ['*'] } - * console.log(request.headersDistinct); - * ``` - * @since v18.3.0, v16.17.0 - */ - headersDistinct: NodeJS.Dict; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v0.11.6 - */ - rawHeaders: string[]; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v0.3.0 - */ - trailers: NodeJS.Dict; - /** - * Similar to `message.trailers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * Only populated at the `'end'` event. - * @since v18.3.0, v16.17.0 - */ - trailersDistinct: NodeJS.Dict; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v0.11.6 - */ - rawTrailers: string[]; - /** - * Calls `message.socket.setTimeout(msecs, callback)`. - * @since v0.5.9 - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * **Only valid for request obtained from {@link Server}.** - * - * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. - * @since v0.1.1 - */ - method?: string | undefined; - /** - * **Only valid for request obtained from {@link Server}.** - * - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. Take the following request: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * To parse the URL into its parts: - * - * ```js - * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * ``` - * - * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined: - * - * ```console - * $ node - * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * URL { - * href: 'http://localhost/status?name=ryan', - * origin: 'http://localhost', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'localhost', - * hostname: 'localhost', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * - * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper - * validation is used, as clients may specify a custom `Host` header. - * @since v0.1.90 - */ - url?: string | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The 3-digit HTTP response status code. E.G. `404`. - * @since v0.1.1 - */ - statusCode?: number | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. - * @since v0.11.10 - */ - statusMessage?: string | undefined; - /** - * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed - * as an argument to any listeners on the event. - * @since v0.3.0 - */ - destroy(error?: Error): this; - } - interface AgentOptions extends NodeJS.PartialOptions { - /** - * Keep sockets around in a pool to be used by other requests in the future. Default = false - */ - keepAlive?: boolean | undefined; - /** - * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. - * Only relevant if keepAlive is set to true. - */ - keepAliveMsecs?: number | undefined; - /** - * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity - */ - maxSockets?: number | undefined; - /** - * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. - */ - maxTotalSockets?: number | undefined; - /** - * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. - */ - maxFreeSockets?: number | undefined; - /** - * Socket timeout in milliseconds. This will set the timeout after the socket is connected. - */ - timeout?: number | undefined; - /** - * Scheduling strategy to apply when picking the next free socket to use. - * @default `lifo` - */ - scheduling?: "fifo" | "lifo" | undefined; - } - /** - * An `Agent` is responsible for managing connection persistence - * and reuse for HTTP clients. It maintains a queue of pending requests - * for a given host and port, reusing a single socket connection for each - * until the queue is empty, at which time the socket is either destroyed - * or put into a pool where it is kept to be used again for requests to the - * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`. - * - * Pooled connections have TCP Keep-Alive enabled for them, but servers may - * still close idle connections, in which case they will be removed from the - * pool and a new connection will be made when a new HTTP request is made for - * that host and port. Servers may also refuse to allow multiple requests - * over the same connection, in which case the connection will have to be - * remade for every request and cannot be pooled. The `Agent` will still make - * the requests to that server, but each one will occur over a new connection. - * - * When a connection is closed by the client or the server, it is removed - * from the pool. Any unused sockets in the pool will be unrefed so as not - * to keep the Node.js process running when there are no outstanding requests. - * (see `socket.unref()`). - * - * It is good practice, to `destroy()` an `Agent` instance when it is no - * longer in use, because unused sockets consume OS resources. - * - * Sockets are removed from an agent when the socket emits either - * a `'close'` event or an `'agentRemove'` event. When intending to keep one - * HTTP request open for a long time without keeping it in the agent, something - * like the following may be done: - * - * ```js - * http.get(options, (res) => { - * // Do stuff - * }).on('socket', (socket) => { - * socket.emit('agentRemove'); - * }); - * ``` - * - * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options - * will be used - * for the client connection. - * - * `agent:false`: - * - * ```js - * http.get({ - * hostname: 'localhost', - * port: 80, - * path: '/', - * agent: false, // Create a new agent just for this one request - * }, (res) => { - * // Do stuff with response - * }); - * ``` - * - * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported. - * - * To configure any of them, a custom {@link Agent} instance must be created. - * - * ```js - * import http from 'node:http'; - * const keepAliveAgent = new http.Agent({ keepAlive: true }); - * options.agent = keepAliveAgent; - * http.request(options, onResponseCallback) - * ``` - * @since v0.3.4 - */ - class Agent extends EventEmitter { - /** - * By default set to 256. For agents with `keepAlive` enabled, this - * sets the maximum number of sockets that will be left open in the free - * state. - * @since v0.11.7 - */ - maxFreeSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open per origin. Origin is the returned value of `agent.getName()`. - * @since v0.3.6 - */ - maxSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open. Unlike `maxSockets`, this parameter applies across all origins. - * @since v14.5.0, v12.19.0 - */ - maxTotalSockets: number; - /** - * An object which contains arrays of sockets currently awaiting use by - * the agent when `keepAlive` is enabled. Do not modify. - * - * Sockets in the `freeSockets` list will be automatically destroyed and - * removed from the array on `'timeout'`. - * @since v0.11.4 - */ - readonly freeSockets: NodeJS.ReadOnlyDict; - /** - * An object which contains arrays of sockets currently in use by the - * agent. Do not modify. - * @since v0.3.6 - */ - readonly sockets: NodeJS.ReadOnlyDict; - /** - * An object which contains queues of requests that have not yet been assigned to - * sockets. Do not modify. - * @since v0.5.9 - */ - readonly requests: NodeJS.ReadOnlyDict; - constructor(opts?: AgentOptions); - /** - * Destroy any sockets that are currently in use by the agent. - * - * It is usually not necessary to do this. However, if using an - * agent with `keepAlive` enabled, then it is best to explicitly shut down - * the agent when it is no longer needed. Otherwise, - * sockets might stay open for quite a long time before the server - * terminates them. - * @since v0.11.4 - */ - destroy(): void; - /** - * Produces a socket/stream to be used for HTTP requests. - * - * By default, this function is the same as `net.createConnection()`. However, - * custom agents may override this method in case greater flexibility is desired. - * - * A socket/stream can be supplied in one of two ways: by returning the - * socket/stream from this function, or by passing the socket/stream to `callback`. - * - * This method is guaranteed to return an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specifies a socket - * type other than `net.Socket`. - * - * `callback` has a signature of `(err, stream)`. - * @since v0.11.4 - * @param options Options containing connection details. Check `createConnection` for the format of the options - * @param callback Callback function that receives the created socket - */ - createConnection( - options: ClientRequestArgs, - callback?: (err: Error | null, stream: stream.Duplex) => void, - ): stream.Duplex | null | undefined; - /** - * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to: - * - * ```js - * socket.setKeepAlive(true, this.keepAliveMsecs); - * socket.unref(); - * return true; - * ``` - * - * This method can be overridden by a particular `Agent` subclass. If this - * method returns a falsy value, the socket will be destroyed instead of persisting - * it for use with the next request. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - keepSocketAlive(socket: stream.Duplex): void; - /** - * Called when `socket` is attached to `request` after being persisted because of - * the keep-alive options. Default behavior is to: - * - * ```js - * socket.ref(); - * ``` - * - * This method can be overridden by a particular `Agent` subclass. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - reuseSocket(socket: stream.Duplex, request: ClientRequest): void; - /** - * Get a unique name for a set of request options, to determine whether a - * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent, - * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options - * that determine socket reusability. - * @since v0.11.4 - * @param options A set of options providing information for name generation - */ - getName(options?: ClientRequestArgs): string; - } - const METHODS: string[]; - const STATUS_CODES: { - [errorCode: number]: string | undefined; - [errorCode: string]: string | undefined; - }; - /** - * Returns a new instance of {@link Server}. - * - * The `requestListener` is a function which is automatically - * added to the `'request'` event. - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer(); - * - * // Listen to the request event - * server.on('request', (request, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.1.13 - */ - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >(requestListener?: RequestListener): Server; - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >( - options: ServerOptions, - requestListener?: RequestListener, - ): Server; - // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, - // create interface RequestOptions would make the naming more clear to developers - interface RequestOptions extends ClientRequestArgs {} - /** - * `options` in `socket.connect()` are also supported. - * - * Node.js maintains several connections per server to make HTTP requests. - * This function allows one to transparently issue requests. - * - * `url` can be a string or a `URL` object. If `url` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence. - * - * The optional `callback` parameter will be added as a one-time listener for - * the `'response'` event. - * - * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import http from 'node:http'; - * import { Buffer } from 'node:buffer'; - * - * const postData = JSON.stringify({ - * 'msg': 'Hello World!', - * }); - * - * const options = { - * hostname: 'www.google.com', - * port: 80, - * path: '/upload', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'Content-Length': Buffer.byteLength(postData), - * }, - * }; - * - * const req = http.request(options, (res) => { - * console.log(`STATUS: ${res.statusCode}`); - * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); - * res.setEncoding('utf8'); - * res.on('data', (chunk) => { - * console.log(`BODY: ${chunk}`); - * }); - * res.on('end', () => { - * console.log('No more data in response.'); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(`problem with request: ${e.message}`); - * }); - * - * // Write data to request body - * req.write(postData); - * req.end(); - * ``` - * - * In the example `req.end()` was called. With `http.request()` one - * must always call `req.end()` to signify the end of the request - - * even if there is no data being written to the request body. - * - * If any error is encountered during the request (be that with DNS resolution, - * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted - * on the returned request object. As with all `'error'` events, if no listeners - * are registered the error will be thrown. - * - * There are a few special headers that should be noted. - * - * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to - * the server should be persisted until the next request. - * * Sending a 'Content-Length' header will disable the default chunked encoding. - * * Sending an 'Expect' header will immediately send the request headers. - * Usually, when sending 'Expect: 100-continue', both a timeout and a listener - * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more - * information. - * * Sending an Authorization header will override using the `auth` option - * to compute basic authentication. - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('http://abc:xyz@example.com'); - * - * const req = http.request(options, (res) => { - * // ... - * }); - * ``` - * - * In a successful request, the following events will be emitted in the following - * order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * (`'data'` will not be emitted at all if the response body is empty, for - * instance, in most redirects) - * * `'end'` on the `res` object - * * `'close'` - * - * In the case of a connection error, the following events will be emitted: - * - * * `'socket'` - * * `'error'` - * * `'close'` - * - * In the case of a premature connection close before the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * In the case of a premature connection close after the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (connection closed here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'` - * * `'close'` on the `res` object - * - * If `req.destroy()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.destroy()` called here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` on the `res` object - * - * If `req.abort()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.abort()` called here) - * * `'abort'` - * * `'close'` - * - * If `req.abort()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.abort()` called here) - * * `'abort'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * If `req.abort()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.abort()` called here) - * * `'abort'` - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * Setting the `timeout` option or using the `setTimeout()` function will - * not abort the request or do anything besides add a `'timeout'` event. - * - * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the - * request. Specifically, the `'error'` event will be emitted with an error with - * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided. - * @since v0.3.6 - */ - function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: IncomingMessage) => void, - ): ClientRequest; - /** - * Since most requests are GET requests without bodies, Node.js provides this - * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to - * consume the response - * data for reasons stated in {@link ClientRequest} section. - * - * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. - * - * JSON fetching example: - * - * ```js - * http.get('http://localhost:8000/', (res) => { - * const { statusCode } = res; - * const contentType = res.headers['content-type']; - * - * let error; - * // Any 2xx status code signals a successful response but - * // here we're only checking for 200. - * if (statusCode !== 200) { - * error = new Error('Request Failed.\n' + - * `Status Code: ${statusCode}`); - * } else if (!/^application\/json/.test(contentType)) { - * error = new Error('Invalid content-type.\n' + - * `Expected application/json but received ${contentType}`); - * } - * if (error) { - * console.error(error.message); - * // Consume response data to free up memory - * res.resume(); - * return; - * } - * - * res.setEncoding('utf8'); - * let rawData = ''; - * res.on('data', (chunk) => { rawData += chunk; }); - * res.on('end', () => { - * try { - * const parsedData = JSON.parse(rawData); - * console.log(parsedData); - * } catch (e) { - * console.error(e.message); - * } - * }); - * }).on('error', (e) => { - * console.error(`Got error: ${e.message}`); - * }); - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the method set to GET by default. - */ - function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; - /** - * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `name` will result in a `TypeError` being thrown, - * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Example: - * - * ```js - * import { validateHeaderName } from 'node:http'; - * - * try { - * validateHeaderName(''); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN' - * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]' - * } - * ``` - * @since v14.3.0 - * @param [label='Header name'] Label for error message. - */ - function validateHeaderName(name: string): void; - /** - * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `value` will result in a `TypeError` being thrown. - * - * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`. - * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Examples: - * - * ```js - * import { validateHeaderValue } from 'node:http'; - * - * try { - * validateHeaderValue('x-my-header', undefined); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true - * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"' - * } - * - * try { - * validateHeaderValue('x-my-header', 'oʊmɪɡə'); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true - * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]' - * } - * ``` - * @since v14.3.0 - * @param name Header name - * @param value Header value - */ - function validateHeaderValue(name: string, value: string): void; - /** - * Set the maximum number of idle HTTP parsers. - * @since v18.8.0, v16.18.0 - * @param [max=1000] - */ - function setMaxIdleHTTPParsers(max: number): void; - /** - * Global instance of `Agent` which is used as the default for all HTTP client - * requests. Diverges from a default `Agent` configuration by having `keepAlive` - * enabled and a `timeout` of 5 seconds. - * @since v0.5.9 - */ - let globalAgent: Agent; - /** - * Read-only property specifying the maximum allowed size of HTTP headers in bytes. - * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. - */ - const maxHeaderSize: number; -} -declare module "node:http" { - export * from "http"; -} diff --git a/mcp-server/node_modules/@types/node/http2.d.ts b/mcp-server/node_modules/@types/node/http2.d.ts deleted file mode 100644 index 9c69a19..0000000 --- a/mcp-server/node_modules/@types/node/http2.d.ts +++ /dev/null @@ -1,2631 +0,0 @@ -/** - * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. - * It can be accessed using: - * - * ```js - * import http2 from 'node:http2'; - * ``` - * @since v8.4.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http2.js) - */ -declare module "http2" { - import { NonSharedBuffer } from "node:buffer"; - import EventEmitter = require("node:events"); - import * as fs from "node:fs"; - import * as net from "node:net"; - import * as stream from "node:stream"; - import * as tls from "node:tls"; - import * as url from "node:url"; - import { - IncomingHttpHeaders as Http1IncomingHttpHeaders, - IncomingMessage, - OutgoingHttpHeaders, - ServerResponse, - } from "node:http"; - export { OutgoingHttpHeaders } from "node:http"; - export interface IncomingHttpStatusHeader { - ":status"?: number | undefined; - } - export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { - ":path"?: string | undefined; - ":method"?: string | undefined; - ":authority"?: string | undefined; - ":scheme"?: string | undefined; - } - // Http2Stream - export interface StreamPriorityOptions { - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - silent?: boolean | undefined; - } - export interface StreamState { - localWindowSize?: number | undefined; - state?: number | undefined; - localClose?: number | undefined; - remoteClose?: number | undefined; - sumDependencyWeight?: number | undefined; - weight?: number | undefined; - } - export interface ServerStreamResponseOptions { - endStream?: boolean | undefined; - waitForTrailers?: boolean | undefined; - } - export interface StatOptions { - offset: number; - length: number; - } - export interface ServerStreamFileResponseOptions { - statCheck?: - | ((stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void) - | undefined; - waitForTrailers?: boolean | undefined; - offset?: number | undefined; - length?: number | undefined; - } - export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { - onError?: ((err: NodeJS.ErrnoException) => void) | undefined; - } - export interface Http2Stream extends stream.Duplex { - /** - * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, - * the `'aborted'` event will have been emitted. - * @since v8.4.0 - */ - readonly aborted: boolean; - /** - * This property shows the number of characters currently buffered to be written. - * See `net.Socket.bufferSize` for details. - * @since v11.2.0, v10.16.0 - */ - readonly bufferSize: number; - /** - * Set to `true` if the `Http2Stream` instance has been closed. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer - * usable. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Set to `true` if the `END_STREAM` flag was set in the request or response - * HEADERS frame received, indicating that no additional data should be received - * and the readable side of the `Http2Stream` will be closed. - * @since v10.11.0 - */ - readonly endAfterHeaders: boolean; - /** - * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined` if the stream identifier has not yet been assigned. - * @since v8.4.0 - */ - readonly id?: number | undefined; - /** - * Set to `true` if the `Http2Stream` instance has not yet been assigned a - * numeric stream identifier. - * @since v9.4.0 - */ - readonly pending: boolean; - /** - * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is - * destroyed after either receiving an `RST_STREAM` frame from the connected peer, - * calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed. - * @since v8.4.0 - */ - readonly rstCode: number; - /** - * An object containing the outbound headers sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentHeaders: OutgoingHttpHeaders; - /** - * An array of objects containing the outbound informational (additional) headers - * sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; - /** - * An object containing the outbound trailers sent for this `HttpStream`. - * @since v9.5.0 - */ - readonly sentTrailers?: OutgoingHttpHeaders | undefined; - /** - * A reference to the `Http2Session` instance that owns this `Http2Stream`. The - * value will be `undefined` after the `Http2Stream` instance is destroyed. - * @since v8.4.0 - */ - readonly session: Http2Session | undefined; - /** - * Provides miscellaneous information about the current state of the `Http2Stream`. - * - * A current state of this `Http2Stream`. - * @since v8.4.0 - */ - readonly state: StreamState; - /** - * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the - * connected HTTP/2 peer. - * @since v8.4.0 - * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. - * @param callback An optional function registered to listen for the `'close'` event. - */ - close(code?: number, callback?: () => void): void; - /** - * Updates the priority for this `Http2Stream` instance. - * @since v8.4.0 - */ - priority(options: StreamPriorityOptions): void; - /** - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('http://example.org:8000'); - * const { NGHTTP2_CANCEL } = http2.constants; - * const req = client.request({ ':path': '/' }); - * - * // Cancel the stream if there's no activity after 5 seconds - * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); - * ``` - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method - * will cause the `Http2Stream` to be immediately closed and must only be - * called after the `'wantTrailers'` event has been emitted. When sending a - * request or sending a response, the `options.waitForTrailers` option must be set - * in order to keep the `Http2Stream` open after the final `DATA` frame so that - * trailers can be sent. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond(undefined, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ xyz: 'abc' }); - * }); - * stream.end('Hello World'); - * }); - * ``` - * - * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header - * fields (e.g. `':method'`, `':path'`, etc). - * @since v10.0.0 - */ - sendTrailers(headers: OutgoingHttpHeaders): void; - addListener(event: "aborted", listener: () => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: "streamClosed", listener: (code: number) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: "wantTrailers", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted"): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "frameError", frameType: number, errorCode: number): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: "streamClosed", code: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "wantTrailers"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: () => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: "streamClosed", listener: (code: number) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - on(event: "wantTrailers", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: () => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: "streamClosed", listener: (code: number) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - once(event: "wantTrailers", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: () => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "streamClosed", listener: (code: number) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: "wantTrailers", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: () => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "streamClosed", listener: (code: number) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: "wantTrailers", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Stream extends Http2Stream { - addListener(event: "continue", listener: () => {}): this; - addListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - addListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "continue"): boolean; - emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "continue", listener: () => {}): this; - on( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - on( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "continue", listener: () => {}): this; - once( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - once( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "continue", listener: () => {}): this; - prependListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "continue", listener: () => {}): this; - prependOnceListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ServerHttp2Stream extends Http2Stream { - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote - * client's most recent `SETTINGS` frame. Will be `true` if the remote peer - * accepts push streams, `false` otherwise. Settings are the same for every `Http2Stream` in the same `Http2Session`. - * @since v8.4.0 - */ - readonly pushAllowed: boolean; - /** - * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. - * @since v8.4.0 - */ - additionalHeaders(headers: OutgoingHttpHeaders): void; - /** - * Initiates a push stream. The callback is invoked with the new `Http2Stream` instance created for the push stream passed as the second argument, or an `Error` passed as the first argument. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { - * if (err) throw err; - * pushStream.respond({ ':status': 200 }); - * pushStream.end('some pushed data'); - * }); - * stream.end('some data'); - * }); - * ``` - * - * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass - * a `weight` value to `http2stream.priority` with the `silent` option set to `true` to enable server-side bandwidth balancing between concurrent streams. - * - * Calling `http2stream.pushStream()` from within a pushed stream is not permitted - * and will throw an error. - * @since v8.4.0 - * @param callback Callback that is called once the push stream has been initiated. - */ - pushStream( - headers: OutgoingHttpHeaders, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - pushStream( - headers: OutgoingHttpHeaders, - options?: StreamPriorityOptions, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - /** - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.end('some data'); - * }); - * ``` - * - * Initiates a response. When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be used to send trailing header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either `http2stream.sendTrailers()` or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * stream.end('some data'); - * }); - * ``` - * @since v8.4.0 - */ - respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; - /** - * Initiates a response whose data is read from the given file descriptor. No - * validation is performed on the given file descriptor. If an error occurs while - * attempting to read data using the file descriptor, the `Http2Stream` will be - * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers); - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given fd. If the `statCheck` function is provided, the `http2stream.respondWithFD()` method will - * perform an `fs.fstat()` call to collect details on the provided file descriptor. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The file descriptor or `FileHandle` is not closed when the stream is closed, - * so it will need to be closed manually once it is no longer needed. - * Using the same file descriptor concurrently for multiple streams - * is not supported and may result in data loss. Re-using a file descriptor - * after a stream has finished is supported. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code _must_ call either `http2stream.sendTrailers()` - * or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * @since v8.4.0 - * @param fd A readable file descriptor. - */ - respondWithFD( - fd: number | fs.promises.FileHandle, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptions, - ): void; - /** - * Sends a regular file as the response. The `path` must specify a regular file - * or an `'error'` event will be emitted on the `Http2Stream` object. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given file: - * - * If an error occurs while attempting to read the file data, the `Http2Stream` will be closed using an - * `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * If the `onError` callback is defined, then it will be called. Otherwise, the stream will be destroyed. - * - * Example using a file path: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * headers['last-modified'] = stat.mtime.toUTCString(); - * } - * - * function onError(err) { - * // stream.respond() can throw if the stream has been destroyed by - * // the other side. - * try { - * if (err.code === 'ENOENT') { - * stream.respond({ ':status': 404 }); - * } else { - * stream.respond({ ':status': 500 }); - * } - * } catch (err) { - * // Perform actual error handling. - * console.error(err); - * } - * stream.end(); - * } - * - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck, onError }); - * }); - * ``` - * - * The `options.statCheck` function may also be used to cancel the send operation - * by returning `false`. For instance, a conditional request may check the stat - * results to determine if the file has been modified to return an appropriate `304` response: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * // Check the stat here... - * stream.respond({ ':status': 304 }); - * return false; // Cancel the send operation - * } - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck }); - * }); - * ``` - * - * The `content-length` header field will be automatically set. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The `options.onError` function may also be used to handle all the errors - * that could happen before the delivery of the file is initiated. The - * default behavior is to destroy the stream. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * }); - * ``` - * @since v8.4.0 - */ - respondWithFile( - path: string, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptionsWithError, - ): void; - } - // Http2Session - export interface Settings { - headerTableSize?: number | undefined; - enablePush?: boolean | undefined; - initialWindowSize?: number | undefined; - maxFrameSize?: number | undefined; - maxConcurrentStreams?: number | undefined; - maxHeaderListSize?: number | undefined; - enableConnectProtocol?: boolean | undefined; - } - export interface ClientSessionRequestOptions { - endStream?: boolean | undefined; - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - waitForTrailers?: boolean | undefined; - signal?: AbortSignal | undefined; - } - export interface SessionState { - effectiveLocalWindowSize?: number | undefined; - effectiveRecvDataLength?: number | undefined; - nextStreamID?: number | undefined; - localWindowSize?: number | undefined; - lastProcStreamID?: number | undefined; - remoteWindowSize?: number | undefined; - outboundQueueSize?: number | undefined; - deflateDynamicTableSize?: number | undefined; - inflateDynamicTableSize?: number | undefined; - } - export interface Http2Session extends EventEmitter { - /** - * Value will be `undefined` if the `Http2Session` is not yet connected to a - * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or - * will return the value of the connected `TLSSocket`'s own `alpnProtocol` property. - * @since v9.4.0 - */ - readonly alpnProtocol?: string | undefined; - /** - * Will be `true` if this `Http2Session` instance has been closed, otherwise `false`. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Will be `true` if this `Http2Session` instance is still connecting, will be set - * to `false` before emitting `connect` event and/or calling the `http2.connect` callback. - * @since v10.0.0 - */ - readonly connecting: boolean; - /** - * Will be `true` if this `Http2Session` instance has been destroyed and must no - * longer be used, otherwise `false`. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Value is `undefined` if the `Http2Session` session socket has not yet been - * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, - * and `false` if the `Http2Session` is connected to any other kind of socket - * or stream. - * @since v9.4.0 - */ - readonly encrypted?: boolean | undefined; - /** - * A prototype-less object describing the current local settings of this `Http2Session`. - * The local settings are local to _this_`Http2Session` instance. - * @since v8.4.0 - */ - readonly localSettings: Settings; - /** - * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property - * will return an `Array` of origins for which the `Http2Session` may be - * considered authoritative. - * - * The `originSet` property is only available when using a secure TLS connection. - * @since v9.4.0 - */ - readonly originSet?: string[] | undefined; - /** - * Indicates whether the `Http2Session` is currently waiting for acknowledgment of - * a sent `SETTINGS` frame. Will be `true` after calling the `http2session.settings()` method. - * Will be `false` once all sent `SETTINGS` frames have been acknowledged. - * @since v8.4.0 - */ - readonly pendingSettingsAck: boolean; - /** - * A prototype-less object describing the current remote settings of this`Http2Session`. - * The remote settings are set by the _connected_ HTTP/2 peer. - * @since v8.4.0 - */ - readonly remoteSettings: Settings; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * limits available methods to ones safe to use with HTTP/2. - * - * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw - * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. - * - * `setTimeout` method will be called on this `Http2Session`. - * - * All other interactions will be routed directly to the socket. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * Provides miscellaneous information about the current state of the`Http2Session`. - * - * An object describing the current status of this `Http2Session`. - * @since v8.4.0 - */ - readonly state: SessionState; - /** - * The `http2session.type` will be equal to `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a - * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a - * client. - * @since v8.4.0 - */ - readonly type: number; - /** - * Gracefully closes the `Http2Session`, allowing any existing streams to - * complete on their own and preventing new `Http2Stream` instances from being - * created. Once closed, `http2session.destroy()`_might_ be called if there - * are no open `Http2Stream` instances. - * - * If specified, the `callback` function is registered as a handler for the`'close'` event. - * @since v9.4.0 - */ - close(callback?: () => void): void; - /** - * Immediately terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`. - * - * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event. - * - * If there are any remaining open `Http2Streams` associated with the `Http2Session`, those will also be destroyed. - * @since v8.4.0 - * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. - * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. - */ - destroy(error?: Error, code?: number): void; - /** - * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. - * @since v9.4.0 - * @param code An HTTP/2 error code - * @param lastStreamID The numeric ID of the last processed `Http2Stream` - * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. - */ - goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; - /** - * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must - * be provided. The method will return `true` if the `PING` was sent, `false` otherwise. - * - * The maximum number of outstanding (unacknowledged) pings is determined by the `maxOutstandingPings` configuration option. The default maximum is 10. - * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and - * returned with the ping acknowledgment. - * - * The callback will be invoked with three arguments: an error argument that will - * be `null` if the `PING` was successfully acknowledged, a `duration` argument - * that reports the number of milliseconds elapsed since the ping was sent and the - * acknowledgment was received, and a `Buffer` containing the 8-byte `PING` payload. - * - * ```js - * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { - * if (!err) { - * console.log(`Ping acknowledged in ${duration} milliseconds`); - * console.log(`With payload '${payload.toString()}'`); - * } - * }); - * ``` - * - * If the `payload` argument is not specified, the default payload will be the - * 64-bit timestamp (little endian) marking the start of the `PING` duration. - * @since v8.9.3 - * @param payload Optional ping payload. - */ - ping(callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void): boolean; - ping( - payload: NodeJS.ArrayBufferView, - callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void, - ): boolean; - /** - * Calls `ref()` on this `Http2Session` instance's underlying `net.Socket`. - * @since v9.4.0 - */ - ref(): void; - /** - * Sets the local endpoint's window size. - * The `windowSize` is the total window size to set, not - * the delta. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * const expectedWindowSize = 2 ** 20; - * server.on('connect', (session) => { - * - * // Set local window size to be 2 ** 20 - * session.setLocalWindowSize(expectedWindowSize); - * }); - * ``` - * @since v15.3.0, v14.18.0 - */ - setLocalWindowSize(windowSize: number): void; - /** - * Used to set a callback function that is called when there is no activity on - * the `Http2Session` after `msecs` milliseconds. The given `callback` is - * registered as a listener on the `'timeout'` event. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Updates the current local settings for this `Http2Session` and sends a new `SETTINGS` frame to the connected HTTP/2 peer. - * - * Once called, the `http2session.pendingSettingsAck` property will be `true` while the session is waiting for the remote peer to acknowledge the new - * settings. - * - * The new settings will not become effective until the `SETTINGS` acknowledgment - * is received and the `'localSettings'` event is emitted. It is possible to send - * multiple `SETTINGS` frames while acknowledgment is still pending. - * @since v8.4.0 - * @param callback Callback that is called once the session is connected or right away if the session is already connected. - */ - settings( - settings: Settings, - callback?: (err: Error | null, settings: Settings, duration: number) => void, - ): void; - /** - * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. - * @since v9.4.0 - */ - unref(): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - addListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - addListener(event: "localSettings", listener: (settings: Settings) => void): this; - addListener(event: "ping", listener: () => void): this; - addListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; - emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer): boolean; - emit(event: "localSettings", settings: Settings): boolean; - emit(event: "ping"): boolean; - emit(event: "remoteSettings", settings: Settings): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - on(event: "localSettings", listener: (settings: Settings) => void): this; - on(event: "ping", listener: () => void): this; - on(event: "remoteSettings", listener: (settings: Settings) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - once(event: "localSettings", listener: (settings: Settings) => void): this; - once(event: "ping", listener: () => void): this; - once(event: "remoteSettings", listener: (settings: Settings) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependListener(event: "ping", listener: () => void): this; - prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependOnceListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "ping", listener: () => void): this; - prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Session extends Http2Session { - /** - * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an - * HTTP/2 request to the connected server. - * - * When a `ClientHttp2Session` is first created, the socket may not yet be - * connected. if `clienthttp2session.request()` is called during this time, the - * actual request will be deferred until the socket is ready to go. - * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown. - * - * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`. - * - * ```js - * import http2 from 'node:http2'; - * const clientSession = http2.connect('https://localhost:1234'); - * const { - * HTTP2_HEADER_PATH, - * HTTP2_HEADER_STATUS, - * } = http2.constants; - * - * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); - * req.on('response', (headers) => { - * console.log(headers[HTTP2_HEADER_STATUS]); - * req.on('data', (chunk) => { // .. }); - * req.on('end', () => { // .. }); - * }); - * ``` - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * is emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be called to send trailing - * headers to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * When `options.signal` is set with an `AbortSignal` and then `abort` on the - * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. - * - * The `:method` and `:path` pseudo-headers are not specified within `headers`, - * they respectively default to: - * - * * `:method` \= `'GET'` - * * `:path` \= `/` - * @since v8.4.0 - */ - request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; - addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - addListener(event: "origin", listener: (origins: string[]) => void): this; - addListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - addListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; - emit(event: "origin", origins: readonly string[]): boolean; - emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; - emit( - event: "stream", - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - on(event: "origin", listener: (origins: string[]) => void): this; - on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - on( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - once(event: "origin", listener: (origins: string[]) => void): this; - once( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - once( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependListener(event: "origin", listener: (origins: string[]) => void): this; - prependListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependOnceListener(event: "origin", listener: (origins: string[]) => void): this; - prependOnceListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependOnceListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface AlternativeServiceOptions { - origin: number | string | url.URL; - } - export interface ServerHttp2Session< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends Http2Session { - readonly server: - | Http2Server - | Http2SecureServer; - /** - * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * server.on('session', (session) => { - * // Set altsvc for origin https://example.org:80 - * session.altsvc('h2=":8000"', 'https://example.org:80'); - * }); - * - * server.on('stream', (stream) => { - * // Set altsvc for a specific stream - * stream.session.altsvc('h2=":8000"', stream.id); - * }); - * ``` - * - * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate - * service is associated with the origin of the given `Http2Stream`. - * - * The `alt` and origin string _must_ contain only ASCII bytes and are - * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given - * domain. - * - * When a string is passed for the `originOrStream` argument, it will be parsed as - * a URL and the origin will be derived. For instance, the origin for the - * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * @since v9.4.0 - * @param alt A description of the alternative service configuration as defined by `RFC 7838`. - * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the - * `http2stream.id` property. - */ - altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; - /** - * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client - * to advertise the set of origins for which the server is capable of providing - * authoritative responses. - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * server.on('session', (session) => { - * session.origin('https://example.com', 'https://example.org'); - * }); - * ``` - * - * When a string is passed as an `origin`, it will be parsed as a URL and the - * origin will be derived. For instance, the origin for the HTTP URL `'https://example.org/foo/bar'` is the ASCII string` 'https://example.org'`. An error will be thrown if either the given - * string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as - * an `origin`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * - * Alternatively, the `origins` option may be used when creating a new HTTP/2 - * server using the `http2.createSecureServer()` method: - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * options.origins = ['https://example.com', 'https://example.org']; - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * ``` - * @since v10.12.0 - * @param origins One or more URL Strings passed as separate arguments. - */ - origin( - ...origins: Array< - | string - | url.URL - | { - origin: string; - } - > - ): void; - addListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "connect", - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - // Http2Server - export interface SessionOptions { - /** - * Sets the maximum dynamic table size for deflating header fields. - * @default 4Kib - */ - maxDeflateDynamicTableSize?: number | undefined; - /** - * Sets the maximum number of settings entries per `SETTINGS` frame. - * The minimum value allowed is `1`. - * @default 32 - */ - maxSettings?: number | undefined; - /** - * Sets the maximum memory that the `Http2Session` is permitted to use. - * The value is expressed in terms of number of megabytes, e.g. `1` equal 1 megabyte. - * The minimum value allowed is `1`. - * This is a credit based limit, existing `Http2Stream`s may cause this limit to be exceeded, - * but new `Http2Stream` instances will be rejected while this limit is exceeded. - * The current number of `Http2Stream` sessions, the current memory use of the header compression tables, - * current data queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all counted towards the current limit. - * @default 10 - */ - maxSessionMemory?: number | undefined; - /** - * Sets the maximum number of header entries. - * This is similar to `server.maxHeadersCount` or `request.maxHeadersCount` in the `node:http` module. - * The minimum value is `1`. - * @default 128 - */ - maxHeaderListPairs?: number | undefined; - /** - * Sets the maximum number of outstanding, unacknowledged pings. - * @default 10 - */ - maxOutstandingPings?: number | undefined; - /** - * Sets the maximum allowed size for a serialized, compressed block of headers. - * Attempts to send headers that exceed this limit will result in - * a `'frameError'` event being emitted and the stream being closed and destroyed. - */ - maxSendHeaderBlockLength?: number | undefined; - /** - * Strategy used for determining the amount of padding to use for `HEADERS` and `DATA` frames. - * @default http2.constants.PADDING_STRATEGY_NONE - */ - paddingStrategy?: number | undefined; - /** - * Sets the maximum number of concurrent streams for the remote peer as if a `SETTINGS` frame had been received. - * Will be overridden if the remote peer sets its own value for `maxConcurrentStreams`. - * @default 100 - */ - peerMaxConcurrentStreams?: number | undefined; - /** - * The initial settings to send to the remote peer upon connection. - */ - settings?: Settings | undefined; - /** - * The array of integer values determines the settings types, - * which are included in the `CustomSettings`-property of the received remoteSettings. - * Please see the `CustomSettings`-property of the `Http2Settings` object for more information, on the allowed setting types. - */ - remoteCustomSettings?: number[] | undefined; - /** - * Specifies a timeout in milliseconds that - * a server should wait when an [`'unknownProtocol'`][] is emitted. If the - * socket has not been destroyed by that time the server will destroy it. - * @default 100000 - */ - unknownProtocolTimeout?: number | undefined; - } - export interface ClientSessionOptions extends SessionOptions { - /** - * Sets the maximum number of reserved push streams the client will accept at any given time. - * Once the current number of currently reserved push streams exceeds reaches this limit, - * new push streams sent by the server will be automatically rejected. - * The minimum allowed value is 0. The maximum allowed value is 232-1. - * A negative value sets this option to the maximum allowed value. - * @default 200 - */ - maxReservedRemoteStreams?: number | undefined; - /** - * An optional callback that receives the `URL` instance passed to `connect` and the `options` object, - * and returns any `Duplex` stream that is to be used as the connection for this session. - */ - createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; - /** - * The protocol to connect with, if not set in the `authority`. - * Value may be either `'http:'` or `'https:'`. - * @default 'https:' - */ - protocol?: "http:" | "https:" | undefined; - } - export interface ServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SessionOptions { - Http1IncomingMessage?: Http1Request | undefined; - Http1ServerResponse?: Http1Response | undefined; - Http2ServerRequest?: Http2Request | undefined; - Http2ServerResponse?: Http2Response | undefined; - } - export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} - export interface SecureServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions, tls.TlsOptions {} - export interface ServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions {} - export interface SecureServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SecureServerSessionOptions { - allowHTTP1?: boolean | undefined; - origins?: string[] | undefined; - } - interface HTTP2ServerCommon { - setTimeout(msec?: number, callback?: () => void): this; - /** - * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. - * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. - */ - updateSettings(settings: Settings): void; - } - export interface Http2Server< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends net.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface Http2SecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends tls.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, - * headers, and - * data. - * @since v8.4.0 - */ - export class Http2ServerRequest extends stream.Readable { - constructor( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - options: stream.ReadableOptions, - rawHeaders: readonly string[], - ); - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - */ - readonly aborted: boolean; - /** - * The request authority pseudo header field. Because HTTP/2 allows requests - * to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`. - * @since v8.4.0 - */ - readonly authority: string; - /** - * See `request.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * The `request.complete` property will be `true` if the request has - * been completed, aborted, or destroyed. - * @since v12.10.0 - */ - readonly complete: boolean; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * See `HTTP/2 Headers Object`. - * - * In HTTP/2, the request path, host name, protocol, and method are represented as - * special headers prefixed with the `:` character (e.g. `':path'`). These special - * headers will be included in the `request.headers` object. Care must be taken not - * to inadvertently modify these special headers or errors may occur. For instance, - * removing all headers from the request will cause errors to occur: - * - * ```js - * removeAllHeaders(request.headers); - * assert(request.url); // Fails because the :path header has been removed - * ``` - * @since v8.4.0 - */ - readonly headers: IncomingHttpHeaders; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. Returns `'2.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v8.4.0 - */ - readonly httpVersion: string; - readonly httpVersionMinor: number; - readonly httpVersionMajor: number; - /** - * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. - * @since v8.4.0 - */ - readonly method: string; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v8.4.0 - */ - readonly rawHeaders: string[]; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly rawTrailers: string[]; - /** - * The request scheme pseudo header field indicating the scheme - * portion of the target URL. - * @since v8.4.0 - */ - readonly scheme: string; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `request.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `request.stream`. - * - * `setTimeout` method will be called on `request.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. With TLS support, - * use `request.socket.getPeerCertificate()` to obtain the client's - * authentication details. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the request. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly trailers: IncomingHttpHeaders; - /** - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. If the request is: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * Then `request.url` will be: - * - * ```js - * '/status?name=ryan' - * ``` - * - * To parse the url into its parts, `new URL()` can be used: - * - * ```console - * $ node - * > new URL('/status?name=ryan', 'http://example.com') - * URL { - * href: 'http://example.com/status?name=ryan', - * origin: 'http://example.com', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'example.com', - * hostname: 'example.com', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * @since v8.4.0 - */ - url: string; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream`s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - read(size?: number): NonSharedBuffer | string | null; - addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted", hadError: boolean, code: number): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "end"): boolean; - emit(event: "readable"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "end", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "end", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v8.4.0 - */ - export class Http2ServerResponse extends stream.Writable { - constructor(stream: ServerHttp2Stream); - /** - * See `response.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple times. - * - * If there were no previous values for the header, this is equivalent to calling {@link setHeader}. - * - * Attempting to set a header field name or value that contains invalid characters will result in a - * [TypeError](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-typeerror) being thrown. - * - * ```js - * // Returns headers including "set-cookie: a" and "set-cookie: b" - * const server = http2.createServer((req, res) => { - * res.setHeader('set-cookie', 'a'); - * res.appendHeader('set-cookie', 'b'); - * res.writeHead(200); - * res.end('ok'); - * }); - * ``` - * @since v20.12.0 - */ - appendHeader(name: string, value: string | string[]): void; - /** - * Boolean value that indicates whether the response has completed. Starts - * as `false`. After `response.end()` executes, the value will be `true`. - * @since v8.4.0 - * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. - */ - readonly finished: boolean; - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * A reference to the original HTTP2 `request` object. - * @since v15.7.0 - */ - readonly req: Request; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `response.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `response.stream`. - * - * `setTimeout` method will be called on `response.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer((req, res) => { - * const ip = req.socket.remoteAddress; - * const port = req.socket.remotePort; - * res.end(`Your IP address is ${ip} and your source port is ${port}.`); - * }).listen(3000); - * ``` - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the response. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * When true, the Date header will be automatically generated and sent in - * the response if it is not already present in the headers. Defaults to true. - * - * This should only be disabled for testing; HTTP requires the Date header - * in responses. - * @since v8.4.0 - */ - sendDate: boolean; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v8.4.0 - */ - statusCode: number; - /** - * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns - * an empty string. - * @since v8.4.0 - */ - statusMessage: ""; - /** - * This method adds HTTP trailing headers (a header but at the end of the - * message) to the response. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - addTrailers(trailers: OutgoingHttpHeaders): void; - /** - * This method signals to the server that all of the response headers and body - * have been sent; that server should consider this message complete. - * The method, `response.end()`, MUST be called on each response. - * - * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. - * - * If `callback` is specified, it will be called when the response stream - * is finished. - * @since v8.4.0 - */ - end(callback?: () => void): this; - end(data: string | Uint8Array, callback?: () => void): this; - end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this; - /** - * Reads out a header that has already been queued but not sent to the client. - * The name is case-insensitive. - * - * ```js - * const contentType = response.getHeader('content-type'); - * ``` - * @since v8.4.0 - */ - getHeader(name: string): string; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All header names are lowercase. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = response.getHeaderNames(); - * // headerNames === ['foo', 'set-cookie'] - * ``` - * @since v8.4.0 - */ - getHeaderNames(): string[]; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow copy - * is used, array values may be mutated without additional calls to various - * header-related http module methods. The keys of the returned object are the - * header names and the values are the respective header values. All header names - * are lowercase. - * - * The object returned by the `response.getHeaders()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = response.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v8.4.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name matching is case-insensitive. - * - * ```js - * const hasContentType = response.hasHeader('content-type'); - * ``` - * @since v8.4.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that has been queued for implicit sending. - * - * ```js - * response.removeHeader('Content-Encoding'); - * ``` - * @since v8.4.0 - */ - removeHeader(name: string): void; - /** - * Sets a single header value for implicit headers. If this header already exists - * in the to-be-sent headers, its value will be replaced. Use an array of strings - * here to send multiple headers with the same name. - * - * ```js - * response.setHeader('Content-Type', 'text/html; charset=utf-8'); - * ``` - * - * or - * - * ```js - * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * @since v8.4.0 - */ - setHeader(name: string, value: number | string | readonly string[]): void; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream` s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'` events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * If this method is called and `response.writeHead()` has not been called, - * it will switch to implicit header mode and flush the implicit headers. - * - * This sends a chunk of the response body. This method may - * be called multiple times to provide successive parts of the body. - * - * In the `node:http` module, the response body is omitted when the - * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body. - * - * `chunk` can be a string or a buffer. If `chunk` is a string, - * the second parameter specifies how to encode it into a byte stream. - * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk - * of data is flushed. - * - * This is the raw HTTP body and has nothing to do with higher-level multi-part - * body encodings that may be used. - * - * The first time `response.write()` is called, it will send the buffered - * header information and the first chunk of the body to the client. The second - * time `response.write()` is called, Node.js assumes data will be streamed, - * and sends the new data separately. That is, the response is buffered up to the - * first chunk of the body. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. - * @since v8.4.0 - */ - write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; - write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; - /** - * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. - * @since v8.4.0 - */ - writeContinue(): void; - /** - * Sends a status `103 Early Hints` to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }); - * ``` - * @since v18.11.0 - */ - writeEarlyHints(hints: Record): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * - * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. - * - * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be - * passed as the second argument. However, because the `statusMessage` has no - * meaning within HTTP/2, the argument will have no effect and a process warning - * will be emitted. - * - * ```js - * const body = 'hello world'; - * response.writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain; charset=utf-8', - * }); - * ``` - * - * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a - * given encoding. On outbound messages, Node.js does not check if Content-Length - * and the length of the body being transmitted are equal or not. However, when - * receiving messages, Node.js will automatically reject messages when the `Content-Length` does not match the actual payload size. - * - * This method may be called at most one time on a message before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; - writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; - /** - * Call `http2stream.pushStream()` with the given headers, and wrap the - * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback - * parameter if successful. When `Http2ServerRequest` is closed, the callback is - * called with an error `ERR_HTTP2_INVALID_STREAM`. - * @since v8.4.0 - * @param headers An object describing the headers - * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of - * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method - */ - createPushResponse( - headers: OutgoingHttpHeaders, - callback: (err: Error | null, res: Http2ServerResponse) => void, - ): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export namespace constants { - const NGHTTP2_SESSION_SERVER: number; - const NGHTTP2_SESSION_CLIENT: number; - const NGHTTP2_STREAM_STATE_IDLE: number; - const NGHTTP2_STREAM_STATE_OPEN: number; - const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; - const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; - const NGHTTP2_STREAM_STATE_CLOSED: number; - const NGHTTP2_NO_ERROR: number; - const NGHTTP2_PROTOCOL_ERROR: number; - const NGHTTP2_INTERNAL_ERROR: number; - const NGHTTP2_FLOW_CONTROL_ERROR: number; - const NGHTTP2_SETTINGS_TIMEOUT: number; - const NGHTTP2_STREAM_CLOSED: number; - const NGHTTP2_FRAME_SIZE_ERROR: number; - const NGHTTP2_REFUSED_STREAM: number; - const NGHTTP2_CANCEL: number; - const NGHTTP2_COMPRESSION_ERROR: number; - const NGHTTP2_CONNECT_ERROR: number; - const NGHTTP2_ENHANCE_YOUR_CALM: number; - const NGHTTP2_INADEQUATE_SECURITY: number; - const NGHTTP2_HTTP_1_1_REQUIRED: number; - const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; - const NGHTTP2_FLAG_NONE: number; - const NGHTTP2_FLAG_END_STREAM: number; - const NGHTTP2_FLAG_END_HEADERS: number; - const NGHTTP2_FLAG_ACK: number; - const NGHTTP2_FLAG_PADDED: number; - const NGHTTP2_FLAG_PRIORITY: number; - const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; - const DEFAULT_SETTINGS_ENABLE_PUSH: number; - const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; - const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; - const MAX_MAX_FRAME_SIZE: number; - const MIN_MAX_FRAME_SIZE: number; - const MAX_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_DEFAULT_WEIGHT: number; - const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; - const NGHTTP2_SETTINGS_ENABLE_PUSH: number; - const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; - const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; - const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; - const PADDING_STRATEGY_NONE: number; - const PADDING_STRATEGY_MAX: number; - const PADDING_STRATEGY_CALLBACK: number; - const HTTP2_HEADER_STATUS: string; - const HTTP2_HEADER_METHOD: string; - const HTTP2_HEADER_AUTHORITY: string; - const HTTP2_HEADER_SCHEME: string; - const HTTP2_HEADER_PATH: string; - const HTTP2_HEADER_ACCEPT_CHARSET: string; - const HTTP2_HEADER_ACCEPT_ENCODING: string; - const HTTP2_HEADER_ACCEPT_LANGUAGE: string; - const HTTP2_HEADER_ACCEPT_RANGES: string; - const HTTP2_HEADER_ACCEPT: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; - const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: string; - const HTTP2_HEADER_AGE: string; - const HTTP2_HEADER_ALLOW: string; - const HTTP2_HEADER_AUTHORIZATION: string; - const HTTP2_HEADER_CACHE_CONTROL: string; - const HTTP2_HEADER_CONNECTION: string; - const HTTP2_HEADER_CONTENT_DISPOSITION: string; - const HTTP2_HEADER_CONTENT_ENCODING: string; - const HTTP2_HEADER_CONTENT_LANGUAGE: string; - const HTTP2_HEADER_CONTENT_LENGTH: string; - const HTTP2_HEADER_CONTENT_LOCATION: string; - const HTTP2_HEADER_CONTENT_MD5: string; - const HTTP2_HEADER_CONTENT_RANGE: string; - const HTTP2_HEADER_CONTENT_TYPE: string; - const HTTP2_HEADER_COOKIE: string; - const HTTP2_HEADER_DATE: string; - const HTTP2_HEADER_ETAG: string; - const HTTP2_HEADER_EXPECT: string; - const HTTP2_HEADER_EXPIRES: string; - const HTTP2_HEADER_FROM: string; - const HTTP2_HEADER_HOST: string; - const HTTP2_HEADER_IF_MATCH: string; - const HTTP2_HEADER_IF_MODIFIED_SINCE: string; - const HTTP2_HEADER_IF_NONE_MATCH: string; - const HTTP2_HEADER_IF_RANGE: string; - const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; - const HTTP2_HEADER_LAST_MODIFIED: string; - const HTTP2_HEADER_LINK: string; - const HTTP2_HEADER_LOCATION: string; - const HTTP2_HEADER_MAX_FORWARDS: string; - const HTTP2_HEADER_PREFER: string; - const HTTP2_HEADER_PROXY_AUTHENTICATE: string; - const HTTP2_HEADER_PROXY_AUTHORIZATION: string; - const HTTP2_HEADER_RANGE: string; - const HTTP2_HEADER_REFERER: string; - const HTTP2_HEADER_REFRESH: string; - const HTTP2_HEADER_RETRY_AFTER: string; - const HTTP2_HEADER_SERVER: string; - const HTTP2_HEADER_SET_COOKIE: string; - const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; - const HTTP2_HEADER_TRANSFER_ENCODING: string; - const HTTP2_HEADER_TE: string; - const HTTP2_HEADER_UPGRADE: string; - const HTTP2_HEADER_USER_AGENT: string; - const HTTP2_HEADER_VARY: string; - const HTTP2_HEADER_VIA: string; - const HTTP2_HEADER_WWW_AUTHENTICATE: string; - const HTTP2_HEADER_HTTP2_SETTINGS: string; - const HTTP2_HEADER_KEEP_ALIVE: string; - const HTTP2_HEADER_PROXY_CONNECTION: string; - const HTTP2_METHOD_ACL: string; - const HTTP2_METHOD_BASELINE_CONTROL: string; - const HTTP2_METHOD_BIND: string; - const HTTP2_METHOD_CHECKIN: string; - const HTTP2_METHOD_CHECKOUT: string; - const HTTP2_METHOD_CONNECT: string; - const HTTP2_METHOD_COPY: string; - const HTTP2_METHOD_DELETE: string; - const HTTP2_METHOD_GET: string; - const HTTP2_METHOD_HEAD: string; - const HTTP2_METHOD_LABEL: string; - const HTTP2_METHOD_LINK: string; - const HTTP2_METHOD_LOCK: string; - const HTTP2_METHOD_MERGE: string; - const HTTP2_METHOD_MKACTIVITY: string; - const HTTP2_METHOD_MKCALENDAR: string; - const HTTP2_METHOD_MKCOL: string; - const HTTP2_METHOD_MKREDIRECTREF: string; - const HTTP2_METHOD_MKWORKSPACE: string; - const HTTP2_METHOD_MOVE: string; - const HTTP2_METHOD_OPTIONS: string; - const HTTP2_METHOD_ORDERPATCH: string; - const HTTP2_METHOD_PATCH: string; - const HTTP2_METHOD_POST: string; - const HTTP2_METHOD_PRI: string; - const HTTP2_METHOD_PROPFIND: string; - const HTTP2_METHOD_PROPPATCH: string; - const HTTP2_METHOD_PUT: string; - const HTTP2_METHOD_REBIND: string; - const HTTP2_METHOD_REPORT: string; - const HTTP2_METHOD_SEARCH: string; - const HTTP2_METHOD_TRACE: string; - const HTTP2_METHOD_UNBIND: string; - const HTTP2_METHOD_UNCHECKOUT: string; - const HTTP2_METHOD_UNLINK: string; - const HTTP2_METHOD_UNLOCK: string; - const HTTP2_METHOD_UPDATE: string; - const HTTP2_METHOD_UPDATEREDIRECTREF: string; - const HTTP2_METHOD_VERSION_CONTROL: string; - const HTTP_STATUS_CONTINUE: number; - const HTTP_STATUS_SWITCHING_PROTOCOLS: number; - const HTTP_STATUS_PROCESSING: number; - const HTTP_STATUS_OK: number; - const HTTP_STATUS_CREATED: number; - const HTTP_STATUS_ACCEPTED: number; - const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; - const HTTP_STATUS_NO_CONTENT: number; - const HTTP_STATUS_RESET_CONTENT: number; - const HTTP_STATUS_PARTIAL_CONTENT: number; - const HTTP_STATUS_MULTI_STATUS: number; - const HTTP_STATUS_ALREADY_REPORTED: number; - const HTTP_STATUS_IM_USED: number; - const HTTP_STATUS_MULTIPLE_CHOICES: number; - const HTTP_STATUS_MOVED_PERMANENTLY: number; - const HTTP_STATUS_FOUND: number; - const HTTP_STATUS_SEE_OTHER: number; - const HTTP_STATUS_NOT_MODIFIED: number; - const HTTP_STATUS_USE_PROXY: number; - const HTTP_STATUS_TEMPORARY_REDIRECT: number; - const HTTP_STATUS_PERMANENT_REDIRECT: number; - const HTTP_STATUS_BAD_REQUEST: number; - const HTTP_STATUS_UNAUTHORIZED: number; - const HTTP_STATUS_PAYMENT_REQUIRED: number; - const HTTP_STATUS_FORBIDDEN: number; - const HTTP_STATUS_NOT_FOUND: number; - const HTTP_STATUS_METHOD_NOT_ALLOWED: number; - const HTTP_STATUS_NOT_ACCEPTABLE: number; - const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; - const HTTP_STATUS_REQUEST_TIMEOUT: number; - const HTTP_STATUS_CONFLICT: number; - const HTTP_STATUS_GONE: number; - const HTTP_STATUS_LENGTH_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_FAILED: number; - const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; - const HTTP_STATUS_URI_TOO_LONG: number; - const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; - const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; - const HTTP_STATUS_EXPECTATION_FAILED: number; - const HTTP_STATUS_TEAPOT: number; - const HTTP_STATUS_MISDIRECTED_REQUEST: number; - const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; - const HTTP_STATUS_LOCKED: number; - const HTTP_STATUS_FAILED_DEPENDENCY: number; - const HTTP_STATUS_UNORDERED_COLLECTION: number; - const HTTP_STATUS_UPGRADE_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_REQUIRED: number; - const HTTP_STATUS_TOO_MANY_REQUESTS: number; - const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; - const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; - const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; - const HTTP_STATUS_NOT_IMPLEMENTED: number; - const HTTP_STATUS_BAD_GATEWAY: number; - const HTTP_STATUS_SERVICE_UNAVAILABLE: number; - const HTTP_STATUS_GATEWAY_TIMEOUT: number; - const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; - const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; - const HTTP_STATUS_INSUFFICIENT_STORAGE: number; - const HTTP_STATUS_LOOP_DETECTED: number; - const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; - const HTTP_STATUS_NOT_EXTENDED: number; - const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; - } - /** - * This symbol can be set as a property on the HTTP/2 headers object with - * an array value in order to provide a list of headers considered sensitive. - */ - export const sensitiveHeaders: symbol; - /** - * Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called - * so instances returned may be safely modified for use. - * @since v8.4.0 - */ - export function getDefaultSettings(): Settings; - /** - * Returns a `Buffer` instance containing serialized representation of the given - * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended - * for use with the `HTTP2-Settings` header field. - * - * ```js - * import http2 from 'node:http2'; - * - * const packed = http2.getPackedSettings({ enablePush: false }); - * - * console.log(packed.toString('base64')); - * // Prints: AAIAAAAA - * ``` - * @since v8.4.0 - */ - export function getPackedSettings(settings: Settings): NonSharedBuffer; - /** - * Returns a `HTTP/2 Settings Object` containing the deserialized settings from - * the given `Buffer` as generated by `http2.getPackedSettings()`. - * @since v8.4.0 - * @param buf The packed settings. - */ - export function getUnpackedSettings(buf: Uint8Array): Settings; - /** - * Returns a `net.Server` instance that creates and manages `Http2Session` instances. - * - * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when - * communicating - * with browser clients. - * - * ```js - * import http2 from 'node:http2'; - * - * // Create an unencrypted HTTP/2 server. - * // Since there are no browsers known that support - * // unencrypted HTTP/2, the use of `http2.createSecureServer()` - * // is necessary when communicating with browser clients. - * const server = http2.createServer(); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8000); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2Server; - export function createServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: ServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2Server; - /** - * Returns a `tls.Server` instance that creates and manages `Http2Session` instances. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * }; - * - * // Create a secure HTTP/2 server - * const server = http2.createSecureServer(options); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8443); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createSecureServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2SecureServer; - export function createSecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: SecureServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2SecureServer; - /** - * Returns a `ClientHttp2Session` instance. - * - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('https://localhost:1234'); - * - * // Use the client - * - * client.close(); - * ``` - * @since v8.4.0 - * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port - * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. - * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. - */ - export function connect( - authority: string | url.URL, - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - export function connect( - authority: string | url.URL, - options?: ClientSessionOptions | SecureClientSessionOptions, - listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - /** - * Create an HTTP/2 server session from an existing socket. - * @param socket A Duplex Stream - * @param options Any `{@link createServer}` options can be provided. - * @since v20.12.0 - */ - export function performServerHandshake< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - socket: stream.Duplex, - options?: ServerOptions, - ): ServerHttp2Session; -} -declare module "node:http2" { - export * from "http2"; -} diff --git a/mcp-server/node_modules/@types/node/https.d.ts b/mcp-server/node_modules/@types/node/https.d.ts deleted file mode 100644 index 5ac4581..0000000 --- a/mcp-server/node_modules/@types/node/https.d.ts +++ /dev/null @@ -1,578 +0,0 @@ -/** - * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a - * separate module. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js) - */ -declare module "https" { - import { NonSharedBuffer } from "node:buffer"; - import { Duplex } from "node:stream"; - import * as tls from "node:tls"; - import * as http from "node:http"; - import { URL } from "node:url"; - interface ServerOptions< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.ServerOptions, tls.TlsOptions {} - interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions { - checkServerIdentity?: typeof tls.checkServerIdentity | undefined; - rejectUnauthorized?: boolean | undefined; // Defaults to true - servername?: string | undefined; // SNI TLS Extension - } - interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { - rejectUnauthorized?: boolean | undefined; - maxCachedSessions?: number | undefined; - } - /** - * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. - * @since v0.4.5 - */ - class Agent extends http.Agent { - constructor(options?: AgentOptions); - options: AgentOptions; - createConnection( - options: RequestOptions, - callback?: (err: Error | null, stream: Duplex) => void, - ): Duplex | null | undefined; - getName(options?: RequestOptions): string; - } - interface Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.Server {} - /** - * See `http.Server` for more information. - * @since v0.3.4 - */ - class Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends tls.Server { - constructor(requestListener?: http.RequestListener); - constructor( - options: ServerOptions, - requestListener?: http.RequestListener, - ); - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Duplex) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: http.RequestListener): this; - addListener(event: "checkExpectation", listener: http.RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "request", listener: http.RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Duplex): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "clientError", err: Error, socket: Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Duplex) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: http.RequestListener): this; - on(event: "checkExpectation", listener: http.RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "request", listener: http.RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Duplex) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: http.RequestListener): this; - once(event: "checkExpectation", listener: http.RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "request", listener: http.RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Duplex) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: http.RequestListener): this; - prependListener(event: "checkExpectation", listener: http.RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "request", listener: http.RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: http.RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: http.RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "request", listener: http.RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * ```js - * // curl -k https://localhost:8000/ - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * - * Or - * - * ```js - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), - * passphrase: 'sample', - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * @since v0.3.4 - * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. - * @param requestListener A listener to be added to the `'request'` event. - */ - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >(requestListener?: http.RequestListener): Server; - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >( - options: ServerOptions, - requestListener?: http.RequestListener, - ): Server; - /** - * Makes a request to a secure web server. - * - * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import https from 'node:https'; - * - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * }; - * - * const req = https.request(options, (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(e); - * }); - * req.end(); - * ``` - * - * Example using options from `tls.connect()`: - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * options.agent = new https.Agent(options); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Alternatively, opt out of connection pooling by not using an `Agent`. - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * agent: false, - * }; - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('https://abc:xyz@example.com'); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): - * - * ```js - * import tls from 'node:tls'; - * import https from 'node:https'; - * import crypto from 'node:crypto'; - * - * function sha256(s) { - * return crypto.createHash('sha256').update(s).digest('base64'); - * } - * const options = { - * hostname: 'github.com', - * port: 443, - * path: '/', - * method: 'GET', - * checkServerIdentity: function(host, cert) { - * // Make sure the certificate is issued to the host we are connected to - * const err = tls.checkServerIdentity(host, cert); - * if (err) { - * return err; - * } - * - * // Pin the public key, similar to HPKP pin-sha256 pinning - * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; - * if (sha256(cert.pubkey) !== pubkey256) { - * const msg = 'Certificate verification error: ' + - * `The public key of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // Pin the exact certificate, rather than the pub key - * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + - * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; - * if (cert.fingerprint256 !== cert256) { - * const msg = 'Certificate verification error: ' + - * `The certificate of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // This loop is informational only. - * // Print the certificate and public key fingerprints of all certs in the - * // chain. Its common to pin the public key of the issuer on the public - * // internet, while pinning the public key of the service in sensitive - * // environments. - * do { - * console.log('Subject Common Name:', cert.subject.CN); - * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); - * - * hash = crypto.createHash('sha256'); - * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); - * - * lastprint256 = cert.fingerprint256; - * cert = cert.issuerCertificate; - * } while (cert.fingerprint256 !== lastprint256); - * - * }, - * }; - * - * options.agent = new https.Agent(options); - * const req = https.request(options, (res) => { - * console.log('All OK. Server matched our pinned cert or public key'); - * console.log('statusCode:', res.statusCode); - * // Print the HPKP values - * console.log('headers:', res.headers['public-key-pins']); - * - * res.on('data', (d) => {}); - * }); - * - * req.on('error', (e) => { - * console.error(e.message); - * }); - * req.end(); - * ``` - * - * Outputs for example: - * - * ```text - * Subject Common Name: github.com - * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 - * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= - * Subject Common Name: DigiCert SHA2 Extended Validation Server CA - * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A - * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= - * Subject Common Name: DigiCert High Assurance EV Root CA - * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF - * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= - * All OK. Server matched our pinned cert or public key - * statusCode: 200 - * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; - * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; - * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains - * ``` - * @since v0.3.6 - * @param options Accepts all `options` from `request`, with some differences in default values: - */ - function request( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - /** - * Like `http.get()` but for HTTPS. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * ```js - * import https from 'node:https'; - * - * https.get('https://encrypted.google.com/', (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * - * }).on('error', (e) => { - * console.error(e); - * }); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. - */ - function get( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function get( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - let globalAgent: Agent; -} -declare module "node:https" { - export * from "https"; -} diff --git a/mcp-server/node_modules/@types/node/index.d.ts b/mcp-server/node_modules/@types/node/index.d.ts deleted file mode 100644 index 4676281..0000000 --- a/mcp-server/node_modules/@types/node/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 5.7+. - -// Reference required TypeScript libs: -/// - -// TypeScript backwards-compatibility definitions: -/// - -// Definitions specific to TypeScript 5.7+: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/mcp-server/node_modules/@types/node/inspector.generated.d.ts b/mcp-server/node_modules/@types/node/inspector.generated.d.ts deleted file mode 100644 index 3303dba..0000000 --- a/mcp-server/node_modules/@types/node/inspector.generated.d.ts +++ /dev/null @@ -1,3966 +0,0 @@ -// These definitions are automatically generated by the generate-inspector script. -// Do not edit this file directly. -// See scripts/generate-inspector/README.md for information on how to update the protocol definitions. -// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template). - -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector.js) - */ -declare module 'inspector' { - import EventEmitter = require('node:events'); - - interface InspectorNotification { - method: string; - params: T; - } - - namespace Schema { - /** - * Description of the protocol domain. - */ - interface Domain { - /** - * Domain name. - */ - name: string; - /** - * Domain version. - */ - version: string; - } - interface GetDomainsReturnType { - /** - * List of supported domains. - */ - domains: Domain[]; - } - } - namespace Runtime { - /** - * Unique script identifier. - */ - type ScriptId = string; - /** - * Unique object identifier. - */ - type RemoteObjectId = string; - /** - * Primitive value which cannot be JSON-stringified. - */ - type UnserializableValue = string; - /** - * Mirror object referencing original JavaScript object. - */ - interface RemoteObject { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * Object class (constructor) name. Specified for object type values only. - */ - className?: string | undefined; - /** - * Remote object value in case of primitive values or JSON values (if it was requested). - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified does not have value, but gets this property. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * Unique object identifier (for non-primitive values). - */ - objectId?: RemoteObjectId | undefined; - /** - * Preview containing abbreviated property values. Specified for object type values only. - * @experimental - */ - preview?: ObjectPreview | undefined; - /** - * @experimental - */ - customPreview?: CustomPreview | undefined; - } - /** - * @experimental - */ - interface CustomPreview { - header: string; - hasBody: boolean; - formatterObjectId: RemoteObjectId; - bindRemoteObjectFunctionId: RemoteObjectId; - configObjectId?: RemoteObjectId | undefined; - } - /** - * Object containing abbreviated remote object value. - * @experimental - */ - interface ObjectPreview { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * True iff some of the properties or entries of the original object did not fit. - */ - overflow: boolean; - /** - * List of the properties. - */ - properties: PropertyPreview[]; - /** - * List of the entries. Specified for map and set subtype values only. - */ - entries?: EntryPreview[] | undefined; - } - /** - * @experimental - */ - interface PropertyPreview { - /** - * Property name. - */ - name: string; - /** - * Object type. Accessor means that the property itself is an accessor property. - */ - type: string; - /** - * User-friendly property value string. - */ - value?: string | undefined; - /** - * Nested value preview. - */ - valuePreview?: ObjectPreview | undefined; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - } - /** - * @experimental - */ - interface EntryPreview { - /** - * Preview of the key. Specified for map-like collection entries. - */ - key?: ObjectPreview | undefined; - /** - * Preview of the value. - */ - value: ObjectPreview; - } - /** - * Object property descriptor. - */ - interface PropertyDescriptor { - /** - * Property name or symbol description. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - /** - * True if the value associated with the property may be changed (data descriptors only). - */ - writable?: boolean | undefined; - /** - * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). - */ - get?: RemoteObject | undefined; - /** - * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). - */ - set?: RemoteObject | undefined; - /** - * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. - */ - configurable: boolean; - /** - * True if this property shows up during enumeration of the properties on the corresponding object. - */ - enumerable: boolean; - /** - * True if the result was thrown during the evaluation. - */ - wasThrown?: boolean | undefined; - /** - * True if the property is owned for the object. - */ - isOwn?: boolean | undefined; - /** - * Property symbol object, if the property is of the symbol type. - */ - symbol?: RemoteObject | undefined; - } - /** - * Object internal property descriptor. This property isn't normally visible in JavaScript code. - */ - interface InternalPropertyDescriptor { - /** - * Conventional property name. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - } - /** - * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. - */ - interface CallArgument { - /** - * Primitive value or serializable javascript object. - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * Remote object handle. - */ - objectId?: RemoteObjectId | undefined; - } - /** - * Id of an execution context. - */ - type ExecutionContextId = number; - /** - * Description of an isolated world. - */ - interface ExecutionContextDescription { - /** - * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. - */ - id: ExecutionContextId; - /** - * Execution context origin. - */ - origin: string; - /** - * Human readable name describing given context. - */ - name: string; - /** - * Embedder-specific auxiliary data. - */ - auxData?: {} | undefined; - } - /** - * Detailed information about exception (or error) that was thrown during script compilation or execution. - */ - interface ExceptionDetails { - /** - * Exception id. - */ - exceptionId: number; - /** - * Exception text, which should be used together with exception object when available. - */ - text: string; - /** - * Line number of the exception location (0-based). - */ - lineNumber: number; - /** - * Column number of the exception location (0-based). - */ - columnNumber: number; - /** - * Script ID of the exception location. - */ - scriptId?: ScriptId | undefined; - /** - * URL of the exception location, to be used when the script was not reported. - */ - url?: string | undefined; - /** - * JavaScript stack trace if available. - */ - stackTrace?: StackTrace | undefined; - /** - * Exception object if available. - */ - exception?: RemoteObject | undefined; - /** - * Identifier of the context where exception happened. - */ - executionContextId?: ExecutionContextId | undefined; - } - /** - * Number of milliseconds since epoch. - */ - type Timestamp = number; - /** - * Stack entry for runtime errors and assertions. - */ - interface CallFrame { - /** - * JavaScript function name. - */ - functionName: string; - /** - * JavaScript script id. - */ - scriptId: ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * JavaScript script line number (0-based). - */ - lineNumber: number; - /** - * JavaScript script column number (0-based). - */ - columnNumber: number; - } - /** - * Call frames for assertions or error messages. - */ - interface StackTrace { - /** - * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. - */ - description?: string | undefined; - /** - * JavaScript function name. - */ - callFrames: CallFrame[]; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - */ - parent?: StackTrace | undefined; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - * @experimental - */ - parentId?: StackTraceId | undefined; - } - /** - * Unique identifier of current debugger. - * @experimental - */ - type UniqueDebuggerId = string; - /** - * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. - * @experimental - */ - interface StackTraceId { - id: string; - debuggerId?: UniqueDebuggerId | undefined; - } - interface EvaluateParameterType { - /** - * Expression to evaluate. - */ - expression: string; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - contextId?: ExecutionContextId | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface AwaitPromiseParameterType { - /** - * Identifier of the promise. - */ - promiseObjectId: RemoteObjectId; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - } - interface CallFunctionOnParameterType { - /** - * Declaration of the function to call. - */ - functionDeclaration: string; - /** - * Identifier of the object to call function on. Either objectId or executionContextId should be specified. - */ - objectId?: RemoteObjectId | undefined; - /** - * Call arguments. All call arguments must belong to the same JavaScript world as the target object. - */ - arguments?: CallArgument[] | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - /** - * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. - */ - objectGroup?: string | undefined; - } - interface GetPropertiesParameterType { - /** - * Identifier of the object to return properties for. - */ - objectId: RemoteObjectId; - /** - * If true, returns properties belonging only to the element itself, not to its prototype chain. - */ - ownProperties?: boolean | undefined; - /** - * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. - * @experimental - */ - accessorPropertiesOnly?: boolean | undefined; - /** - * Whether preview should be generated for the results. - * @experimental - */ - generatePreview?: boolean | undefined; - } - interface ReleaseObjectParameterType { - /** - * Identifier of the object to release. - */ - objectId: RemoteObjectId; - } - interface ReleaseObjectGroupParameterType { - /** - * Symbolic object group name. - */ - objectGroup: string; - } - interface SetCustomObjectFormatterEnabledParameterType { - enabled: boolean; - } - interface CompileScriptParameterType { - /** - * Expression to compile. - */ - expression: string; - /** - * Source url to be set for the script. - */ - sourceURL: string; - /** - * Specifies whether the compiled script should be persisted. - */ - persistScript: boolean; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface RunScriptParameterType { - /** - * Id of the script to run. - */ - scriptId: ScriptId; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface QueryObjectsParameterType { - /** - * Identifier of the prototype to return objects for. - */ - prototypeObjectId: RemoteObjectId; - } - interface GlobalLexicalScopeNamesParameterType { - /** - * Specifies in which execution context to lookup global scope variables. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface EvaluateReturnType { - /** - * Evaluation result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface AwaitPromiseReturnType { - /** - * Promise result. Will contain rejected value if promise was rejected. - */ - result: RemoteObject; - /** - * Exception details if stack strace is available. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CallFunctionOnReturnType { - /** - * Call result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface GetPropertiesReturnType { - /** - * Object properties. - */ - result: PropertyDescriptor[]; - /** - * Internal object properties (only of the element itself). - */ - internalProperties?: InternalPropertyDescriptor[] | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CompileScriptReturnType { - /** - * Id of the script. - */ - scriptId?: ScriptId | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface RunScriptReturnType { - /** - * Run result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface QueryObjectsReturnType { - /** - * Array with objects. - */ - objects: RemoteObject; - } - interface GlobalLexicalScopeNamesReturnType { - names: string[]; - } - interface ExecutionContextCreatedEventDataType { - /** - * A newly created execution context. - */ - context: ExecutionContextDescription; - } - interface ExecutionContextDestroyedEventDataType { - /** - * Id of the destroyed context - */ - executionContextId: ExecutionContextId; - } - interface ExceptionThrownEventDataType { - /** - * Timestamp of the exception. - */ - timestamp: Timestamp; - exceptionDetails: ExceptionDetails; - } - interface ExceptionRevokedEventDataType { - /** - * Reason describing why exception was revoked. - */ - reason: string; - /** - * The id of revoked exception, as reported in exceptionThrown. - */ - exceptionId: number; - } - interface ConsoleAPICalledEventDataType { - /** - * Type of the call. - */ - type: string; - /** - * Call arguments. - */ - args: RemoteObject[]; - /** - * Identifier of the context where the call was made. - */ - executionContextId: ExecutionContextId; - /** - * Call timestamp. - */ - timestamp: Timestamp; - /** - * Stack trace captured when the call was made. - */ - stackTrace?: StackTrace | undefined; - /** - * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. - * @experimental - */ - context?: string | undefined; - } - interface InspectRequestedEventDataType { - object: RemoteObject; - hints: {}; - } - } - namespace Debugger { - /** - * Breakpoint identifier. - */ - type BreakpointId = string; - /** - * Call frame identifier. - */ - type CallFrameId = string; - /** - * Location in the source code. - */ - interface Location { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - } - /** - * Location in the source code. - * @experimental - */ - interface ScriptPosition { - lineNumber: number; - columnNumber: number; - } - /** - * JavaScript call frame. Array of call frames form the call stack. - */ - interface CallFrame { - /** - * Call frame identifier. This identifier is only valid while the virtual machine is paused. - */ - callFrameId: CallFrameId; - /** - * Name of the JavaScript function called on this call frame. - */ - functionName: string; - /** - * Location in the source code. - */ - functionLocation?: Location | undefined; - /** - * Location in the source code. - */ - location: Location; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Scope chain for this call frame. - */ - scopeChain: Scope[]; - /** - * this object for this call frame. - */ - this: Runtime.RemoteObject; - /** - * The value being returned, if the function is at return point. - */ - returnValue?: Runtime.RemoteObject | undefined; - } - /** - * Scope description. - */ - interface Scope { - /** - * Scope type. - */ - type: string; - /** - * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. - */ - object: Runtime.RemoteObject; - name?: string | undefined; - /** - * Location in the source code where scope starts - */ - startLocation?: Location | undefined; - /** - * Location in the source code where scope ends - */ - endLocation?: Location | undefined; - } - /** - * Search match for resource. - */ - interface SearchMatch { - /** - * Line number in resource content. - */ - lineNumber: number; - /** - * Line with match content. - */ - lineContent: string; - } - interface BreakLocation { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - type?: string | undefined; - } - interface SetBreakpointsActiveParameterType { - /** - * New value for breakpoints active state. - */ - active: boolean; - } - interface SetSkipAllPausesParameterType { - /** - * New value for skip pauses state. - */ - skip: boolean; - } - interface SetBreakpointByUrlParameterType { - /** - * Line number to set breakpoint at. - */ - lineNumber: number; - /** - * URL of the resources to set breakpoint on. - */ - url?: string | undefined; - /** - * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. - */ - urlRegex?: string | undefined; - /** - * Script hash of the resources to set breakpoint on. - */ - scriptHash?: string | undefined; - /** - * Offset in the line to set breakpoint at. - */ - columnNumber?: number | undefined; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface SetBreakpointParameterType { - /** - * Location to set breakpoint in. - */ - location: Location; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface RemoveBreakpointParameterType { - breakpointId: BreakpointId; - } - interface GetPossibleBreakpointsParameterType { - /** - * Start of range to search possible breakpoint locations in. - */ - start: Location; - /** - * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. - */ - end?: Location | undefined; - /** - * Only consider locations which are in the same (non-nested) function as start. - */ - restrictToFunction?: boolean | undefined; - } - interface ContinueToLocationParameterType { - /** - * Location to continue to. - */ - location: Location; - targetCallFrames?: string | undefined; - } - interface PauseOnAsyncCallParameterType { - /** - * Debugger will pause when async call with given stack trace is started. - */ - parentStackTraceId: Runtime.StackTraceId; - } - interface StepIntoParameterType { - /** - * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. - * @experimental - */ - breakOnAsyncCall?: boolean | undefined; - } - interface GetStackTraceParameterType { - stackTraceId: Runtime.StackTraceId; - } - interface SearchInContentParameterType { - /** - * Id of the script to search in. - */ - scriptId: Runtime.ScriptId; - /** - * String to search for. - */ - query: string; - /** - * If true, search is case sensitive. - */ - caseSensitive?: boolean | undefined; - /** - * If true, treats string parameter as regex. - */ - isRegex?: boolean | undefined; - } - interface SetScriptSourceParameterType { - /** - * Id of the script to edit. - */ - scriptId: Runtime.ScriptId; - /** - * New content of the script. - */ - scriptSource: string; - /** - * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. - */ - dryRun?: boolean | undefined; - } - interface RestartFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - } - interface GetScriptSourceParameterType { - /** - * Id of the script to get source for. - */ - scriptId: Runtime.ScriptId; - } - interface SetPauseOnExceptionsParameterType { - /** - * Pause on exceptions mode. - */ - state: string; - } - interface EvaluateOnCallFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - /** - * Expression to evaluate. - */ - expression: string; - /** - * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). - */ - objectGroup?: string | undefined; - /** - * Specifies whether command line API should be available to the evaluated expression, defaults to false. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether to throw an exception if side effect cannot be ruled out during evaluation. - */ - throwOnSideEffect?: boolean | undefined; - } - interface SetVariableValueParameterType { - /** - * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. - */ - scopeNumber: number; - /** - * Variable name. - */ - variableName: string; - /** - * New variable value. - */ - newValue: Runtime.CallArgument; - /** - * Id of callframe that holds variable. - */ - callFrameId: CallFrameId; - } - interface SetReturnValueParameterType { - /** - * New return value. - */ - newValue: Runtime.CallArgument; - } - interface SetAsyncCallStackDepthParameterType { - /** - * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). - */ - maxDepth: number; - } - interface SetBlackboxPatternsParameterType { - /** - * Array of regexps that will be used to check script url for blackbox state. - */ - patterns: string[]; - } - interface SetBlackboxedRangesParameterType { - /** - * Id of the script. - */ - scriptId: Runtime.ScriptId; - positions: ScriptPosition[]; - } - interface EnableReturnType { - /** - * Unique identifier of the debugger. - * @experimental - */ - debuggerId: Runtime.UniqueDebuggerId; - } - interface SetBreakpointByUrlReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * List of the locations this breakpoint resolved into upon addition. - */ - locations: Location[]; - } - interface SetBreakpointReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * Location this breakpoint resolved into. - */ - actualLocation: Location; - } - interface GetPossibleBreakpointsReturnType { - /** - * List of the possible breakpoint locations. - */ - locations: BreakLocation[]; - } - interface GetStackTraceReturnType { - stackTrace: Runtime.StackTrace; - } - interface SearchInContentReturnType { - /** - * List of search matches. - */ - result: SearchMatch[]; - } - interface SetScriptSourceReturnType { - /** - * New stack trace in case editing has happened while VM was stopped. - */ - callFrames?: CallFrame[] | undefined; - /** - * Whether current call stack was modified after applying the changes. - */ - stackChanged?: boolean | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Exception details if any. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface RestartFrameReturnType { - /** - * New stack trace. - */ - callFrames: CallFrame[]; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - } - interface GetScriptSourceReturnType { - /** - * Script source. - */ - scriptSource: string; - } - interface EvaluateOnCallFrameReturnType { - /** - * Object wrapper for the evaluation result. - */ - result: Runtime.RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface ScriptParsedEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * True, if this script is generated as a result of the live edit operation. - * @experimental - */ - isLiveEdit?: boolean | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface ScriptFailedToParseEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface BreakpointResolvedEventDataType { - /** - * Breakpoint unique identifier. - */ - breakpointId: BreakpointId; - /** - * Actual breakpoint location. - */ - location: Location; - } - interface PausedEventDataType { - /** - * Call stack the virtual machine stopped on. - */ - callFrames: CallFrame[]; - /** - * Pause reason. - */ - reason: string; - /** - * Object containing break-specific auxiliary properties. - */ - data?: {} | undefined; - /** - * Hit breakpoints IDs - */ - hitBreakpoints?: string[] | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. - * @experimental - */ - asyncCallStackTraceId?: Runtime.StackTraceId | undefined; - } - } - namespace Console { - /** - * Console message. - */ - interface ConsoleMessage { - /** - * Message source. - */ - source: string; - /** - * Message severity. - */ - level: string; - /** - * Message text. - */ - text: string; - /** - * URL of the message origin. - */ - url?: string | undefined; - /** - * Line number in the resource that generated this message (1-based). - */ - line?: number | undefined; - /** - * Column number in the resource that generated this message (1-based). - */ - column?: number | undefined; - } - interface MessageAddedEventDataType { - /** - * Console message that has been added. - */ - message: ConsoleMessage; - } - } - namespace Profiler { - /** - * Profile node. Holds callsite information, execution statistics and child nodes. - */ - interface ProfileNode { - /** - * Unique id of the node. - */ - id: number; - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Number of samples where this node was on top of the call stack. - */ - hitCount?: number | undefined; - /** - * Child node ids. - */ - children?: number[] | undefined; - /** - * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. - */ - deoptReason?: string | undefined; - /** - * An array of source position ticks. - */ - positionTicks?: PositionTickInfo[] | undefined; - } - /** - * Profile. - */ - interface Profile { - /** - * The list of profile nodes. First item is the root node. - */ - nodes: ProfileNode[]; - /** - * Profiling start timestamp in microseconds. - */ - startTime: number; - /** - * Profiling end timestamp in microseconds. - */ - endTime: number; - /** - * Ids of samples top nodes. - */ - samples?: number[] | undefined; - /** - * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. - */ - timeDeltas?: number[] | undefined; - } - /** - * Specifies a number of samples attributed to a certain source position. - */ - interface PositionTickInfo { - /** - * Source line number (1-based). - */ - line: number; - /** - * Number of samples attributed to the source line. - */ - ticks: number; - } - /** - * Coverage data for a source range. - */ - interface CoverageRange { - /** - * JavaScript script source offset for the range start. - */ - startOffset: number; - /** - * JavaScript script source offset for the range end. - */ - endOffset: number; - /** - * Collected execution count of the source range. - */ - count: number; - } - /** - * Coverage data for a JavaScript function. - */ - interface FunctionCoverage { - /** - * JavaScript function name. - */ - functionName: string; - /** - * Source ranges inside the function with coverage data. - */ - ranges: CoverageRange[]; - /** - * Whether coverage data for this function has block granularity. - */ - isBlockCoverage: boolean; - } - /** - * Coverage data for a JavaScript script. - */ - interface ScriptCoverage { - /** - * JavaScript script id. - */ - scriptId: Runtime.ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Functions contained in the script that has coverage data. - */ - functions: FunctionCoverage[]; - } - interface SetSamplingIntervalParameterType { - /** - * New sampling interval in microseconds. - */ - interval: number; - } - interface StartPreciseCoverageParameterType { - /** - * Collect accurate call counts beyond simple 'covered' or 'not covered'. - */ - callCount?: boolean | undefined; - /** - * Collect block-based coverage. - */ - detailed?: boolean | undefined; - } - interface StopReturnType { - /** - * Recorded profile. - */ - profile: Profile; - } - interface TakePreciseCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface GetBestEffortCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface ConsoleProfileStartedEventDataType { - id: string; - /** - * Location of console.profile(). - */ - location: Debugger.Location; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - interface ConsoleProfileFinishedEventDataType { - id: string; - /** - * Location of console.profileEnd(). - */ - location: Debugger.Location; - profile: Profile; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - } - namespace HeapProfiler { - /** - * Heap snapshot object id. - */ - type HeapSnapshotObjectId = string; - /** - * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. - */ - interface SamplingHeapProfileNode { - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Allocations size in bytes for the node excluding children. - */ - selfSize: number; - /** - * Child nodes. - */ - children: SamplingHeapProfileNode[]; - } - /** - * Profile. - */ - interface SamplingHeapProfile { - head: SamplingHeapProfileNode; - } - interface StartTrackingHeapObjectsParameterType { - trackAllocations?: boolean | undefined; - } - interface StopTrackingHeapObjectsParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. - */ - reportProgress?: boolean | undefined; - } - interface TakeHeapSnapshotParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - */ - reportProgress?: boolean | undefined; - } - interface GetObjectByHeapObjectIdParameterType { - objectId: HeapSnapshotObjectId; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - } - interface AddInspectedHeapObjectParameterType { - /** - * Heap snapshot object id to be accessible by means of $x command line API. - */ - heapObjectId: HeapSnapshotObjectId; - } - interface GetHeapObjectIdParameterType { - /** - * Identifier of the object to get heap object id for. - */ - objectId: Runtime.RemoteObjectId; - } - interface StartSamplingParameterType { - /** - * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. - */ - samplingInterval?: number | undefined; - } - interface GetObjectByHeapObjectIdReturnType { - /** - * Evaluation result. - */ - result: Runtime.RemoteObject; - } - interface GetHeapObjectIdReturnType { - /** - * Id of the heap snapshot object corresponding to the passed remote object id. - */ - heapSnapshotObjectId: HeapSnapshotObjectId; - } - interface StopSamplingReturnType { - /** - * Recorded sampling heap profile. - */ - profile: SamplingHeapProfile; - } - interface GetSamplingProfileReturnType { - /** - * Return the sampling profile being collected. - */ - profile: SamplingHeapProfile; - } - interface AddHeapSnapshotChunkEventDataType { - chunk: string; - } - interface ReportHeapSnapshotProgressEventDataType { - done: number; - total: number; - finished?: boolean | undefined; - } - interface LastSeenObjectIdEventDataType { - lastSeenObjectId: number; - timestamp: number; - } - interface HeapStatsUpdateEventDataType { - /** - * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. - */ - statsUpdate: number[]; - } - } - namespace NodeTracing { - interface TraceConfig { - /** - * Controls how the trace buffer stores data. - */ - recordMode?: string | undefined; - /** - * Included category filters. - */ - includedCategories: string[]; - } - interface StartParameterType { - traceConfig: TraceConfig; - } - interface GetCategoriesReturnType { - /** - * A list of supported tracing categories. - */ - categories: string[]; - } - interface DataCollectedEventDataType { - value: Array<{}>; - } - } - namespace NodeWorker { - type WorkerID = string; - /** - * Unique identifier of attached debugging session. - */ - type SessionID = string; - interface WorkerInfo { - workerId: WorkerID; - type: string; - title: string; - url: string; - } - interface SendMessageToWorkerParameterType { - message: string; - /** - * Identifier of the session. - */ - sessionId: SessionID; - } - interface EnableParameterType { - /** - * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` - * message to run them. - */ - waitForDebuggerOnStart: boolean; - } - interface DetachParameterType { - sessionId: SessionID; - } - interface AttachedToWorkerEventDataType { - /** - * Identifier assigned to the session used to send/receive messages. - */ - sessionId: SessionID; - workerInfo: WorkerInfo; - waitingForDebugger: boolean; - } - interface DetachedFromWorkerEventDataType { - /** - * Detached session identifier. - */ - sessionId: SessionID; - } - interface ReceivedMessageFromWorkerEventDataType { - /** - * Identifier of a session which sends a message. - */ - sessionId: SessionID; - message: string; - } - } - namespace Network { - /** - * Resource type as it was perceived by the rendering engine. - */ - type ResourceType = string; - /** - * Unique request identifier. - */ - type RequestId = string; - /** - * UTC time in seconds, counted from January 1, 1970. - */ - type TimeSinceEpoch = number; - /** - * Monotonically increasing time in seconds since an arbitrary point in the past. - */ - type MonotonicTime = number; - /** - * HTTP request data. - */ - interface Request { - url: string; - method: string; - headers: Headers; - } - /** - * HTTP response data. - */ - interface Response { - url: string; - status: number; - statusText: string; - headers: Headers; - } - /** - * Request / response headers as keys / values of JSON object. - */ - interface Headers { - } - interface RequestWillBeSentEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Request data. - */ - request: Request; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Timestamp. - */ - wallTime: TimeSinceEpoch; - } - interface ResponseReceivedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Response data. - */ - response: Response; - } - interface LoadingFailedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Error message. - */ - errorText: string; - } - interface LoadingFinishedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - } - } - namespace NodeRuntime { - interface NotifyWhenWaitingForDisconnectParameterType { - enabled: boolean; - } - } - - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - */ - class Session extends EventEmitter { - /** - * Create a new instance of the inspector.Session class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - * @since v12.11.0 - */ - connectToMainThread(): void; - - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - - /** - * Posts a message to the inspector back-end. `callback` will be notified when - * a response is received. `callback` is a function that accepts two optional - * arguments: error and message-specific result. - * - * ```js - * session.post('Runtime.evaluate', { expression: '2 + 2' }, - * (error, { result }) => console.log(result)); - * // Output: { type: 'number', value: 4, description: '4' } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, callback?: (err: Error | null, params?: object) => void): void; - post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void; - /** - * Returns supported domains. - */ - post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; - /** - * Evaluates expression on global object. - */ - post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - /** - * Add handler to promise with given promise object id. - */ - post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - /** - * Releases remote object with given id. - */ - post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void; - /** - * Disables reporting of execution contexts creation. - */ - post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void; - /** - * Discards collected exceptions and console API calls. - */ - post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void; - /** - * Compiles expression. - */ - post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - /** - * Runs script with given id in a given context. - */ - post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - /** - * Returns all let, const and class variables from global scope. - */ - post( - method: 'Runtime.globalLexicalScopeNames', - params?: Runtime.GlobalLexicalScopeNamesParameterType, - callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void - ): void; - post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; - /** - * Disables debugger for given page. - */ - post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - /** - * Removes JavaScript breakpoint. - */ - post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post( - method: 'Debugger.getPossibleBreakpoints', - params?: Debugger.GetPossibleBreakpointsParameterType, - callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void - ): void; - post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; - /** - * Continues execution until specific location is reached. - */ - post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void; - /** - * Steps over the statement. - */ - post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void; - /** - * Steps into the function call. - */ - post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void; - /** - * Steps out of the function call. - */ - post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void; - /** - * Stops on the next JavaScript statement. - */ - post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void; - /** - * Resumes JavaScript execution. - */ - post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - /** - * Searches for given string in script content. - */ - post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - /** - * Edits JavaScript source live. - */ - post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - /** - * Restarts particular call frame from the beginning. - */ - post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - /** - * Returns source for the script with given id. - */ - post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void; - /** - * Evaluates expression on a given call frame. - */ - post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void; - /** - * Enables or disables async call stacks tracking. - */ - post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: 'Console.enable', callback?: (err: Error | null) => void): void; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: 'Console.disable', callback?: (err: Error | null) => void): void; - /** - * Does nothing. - */ - post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.start', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; - post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void; - post( - method: 'HeapProfiler.getObjectByHeapObjectId', - params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, - callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void - ): void; - post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; - post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; - /** - * Gets supported tracing categories. - */ - post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; - /** - * Start trace events collection. - */ - post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void; - /** - * Sends protocol message over session with given id. - */ - post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void; - /** - * Detached from the worker with given sessionId. - */ - post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: 'Network.disable', callback?: (err: Error | null) => void): void; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: 'Network.enable', callback?: (err: Error | null) => void): void; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.enable', callback?: (err: Error | null) => void): void; - /** - * Disable NodeRuntime events - */ - post(method: 'NodeRuntime.disable', callback?: (err: Error | null) => void): void; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'inspectorNotification', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextsCleared'): boolean; - emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; - emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; - emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; - emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; - emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; - emit(event: 'Debugger.paused', message: InspectorNotification): boolean; - emit(event: 'Debugger.resumed'): boolean; - emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.resetProfiles'): boolean; - emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.tracingComplete'): boolean; - emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; - emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; - emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; - emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; - emit(event: 'NodeRuntime.waitingForDebugger'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - } - - /** - * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has - * started. - * - * If wait is `true`, will block until a client has connected to the inspect port - * and flow control has been passed to the debugger client. - * - * See the [security warning](https://nodejs.org/docs/latest-v20.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure) - * regarding the `host` parameter usage. - * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param wait Block until a client has connected. Defaults to what was specified on the CLI. - * @returns Disposable that calls `inspector.close()`. - */ - function open(port?: number, host?: string, wait?: boolean): Disposable; - - /** - * Deactivate the inspector. Blocks until there are no active connections. - */ - function close(): void; - - /** - * Return the URL of the active inspector, or `undefined` if there is none. - * - * ```console - * $ node --inspect -p 'inspector.url()' - * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * For help, see: https://nodejs.org/en/docs/inspector - * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * - * $ node --inspect=localhost:3000 -p 'inspector.url()' - * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * For help, see: https://nodejs.org/en/docs/inspector - * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * - * $ node -p 'inspector.url()' - * undefined - * ``` - */ - function url(): string | undefined; - - /** - * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command. - * - * An exception will be thrown if there is no active inspector. - * @since v12.7.0 - */ - function waitForDebugger(): void; - - // These methods are exposed by the V8 inspector console API (inspector/v8-console.h). - // The method signatures differ from those of the Node.js console, and are deliberately - // typed permissively. - interface InspectorConsole { - debug(...data: any[]): void; - error(...data: any[]): void; - info(...data: any[]): void; - log(...data: any[]): void; - warn(...data: any[]): void; - dir(...data: any[]): void; - dirxml(...data: any[]): void; - table(...data: any[]): void; - trace(...data: any[]): void; - group(...data: any[]): void; - groupCollapsed(...data: any[]): void; - groupEnd(...data: any[]): void; - clear(...data: any[]): void; - count(label?: any): void; - countReset(label?: any): void; - assert(value?: any, ...data: any[]): void; - profile(label?: any): void; - profileEnd(label?: any): void; - time(label?: any): void; - timeLog(label?: any): void; - timeStamp(label?: any): void; - } - - /** - * An object to send messages to the remote inspector console. - * @since v11.0.0 - */ - const console: InspectorConsole; - - // DevTools protocol event broadcast methods - namespace Network { - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that - * the application is about to send an HTTP request. - * @since v22.6.0 - * @experimental - */ - function requestWillBeSent(params: RequestWillBeSentEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that - * HTTP response is available. - * @since v22.6.0 - * @experimental - */ - function responseReceived(params: ResponseReceivedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that - * HTTP request has finished loading. - * @since v22.6.0 - * @experimental - */ - function loadingFinished(params: LoadingFinishedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that - * HTTP request has failed to load. - * @since v22.7.0 - * @experimental - */ - function loadingFailed(params: LoadingFailedEventDataType): void; - } -} - -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - */ -declare module 'node:inspector' { - export * from 'inspector'; -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector/promises.js) - * @since v19.0.0 - */ -declare module 'inspector/promises' { - import EventEmitter = require('node:events'); - import { - open, - close, - url, - waitForDebugger, - console, - InspectorNotification, - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - } from 'inspector'; - - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - * @since v19.0.0 - */ - class Session extends EventEmitter { - /** - * Create a new instance of the `inspector.Session` class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - */ - connectToMainThread(): void; - - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - - /** - * Posts a message to the inspector back-end. - * - * ```js - * import { Session } from 'node:inspector/promises'; - * try { - * const session = new Session(); - * session.connect(); - * const result = await session.post('Runtime.evaluate', { expression: '2 + 2' }); - * console.log(result); - * } catch (error) { - * console.error(error); - * } - * // Output: { result: { type: 'number', value: 4, description: '4' } } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, params?: object): Promise; - /** - * Returns supported domains. - */ - post(method: 'Schema.getDomains'): Promise; - /** - * Evaluates expression on global object. - */ - post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType): Promise; - /** - * Add handler to promise with given promise object id. - */ - post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType): Promise; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType): Promise; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType): Promise; - /** - * Releases remote object with given id. - */ - post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType): Promise; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType): Promise; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: 'Runtime.runIfWaitingForDebugger'): Promise; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: 'Runtime.enable'): Promise; - /** - * Disables reporting of execution contexts creation. - */ - post(method: 'Runtime.disable'): Promise; - /** - * Discards collected exceptions and console API calls. - */ - post(method: 'Runtime.discardConsoleEntries'): Promise; - /** - * @experimental - */ - post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise; - /** - * Compiles expression. - */ - post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType): Promise; - /** - * Runs script with given id in a given context. - */ - post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType): Promise; - post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType): Promise; - /** - * Returns all let, const and class variables from global scope. - */ - post(method: 'Runtime.globalLexicalScopeNames', params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: 'Debugger.enable'): Promise; - /** - * Disables debugger for given page. - */ - post(method: 'Debugger.disable'): Promise; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType): Promise; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType): Promise; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType): Promise; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType): Promise; - /** - * Removes JavaScript breakpoint. - */ - post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType): Promise; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post(method: 'Debugger.getPossibleBreakpoints', params?: Debugger.GetPossibleBreakpointsParameterType): Promise; - /** - * Continues execution until specific location is reached. - */ - post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType): Promise; - /** - * @experimental - */ - post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType): Promise; - /** - * Steps over the statement. - */ - post(method: 'Debugger.stepOver'): Promise; - /** - * Steps into the function call. - */ - post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType): Promise; - /** - * Steps out of the function call. - */ - post(method: 'Debugger.stepOut'): Promise; - /** - * Stops on the next JavaScript statement. - */ - post(method: 'Debugger.pause'): Promise; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: 'Debugger.scheduleStepIntoAsync'): Promise; - /** - * Resumes JavaScript execution. - */ - post(method: 'Debugger.resume'): Promise; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType): Promise; - /** - * Searches for given string in script content. - */ - post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType): Promise; - /** - * Edits JavaScript source live. - */ - post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType): Promise; - /** - * Restarts particular call frame from the beginning. - */ - post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType): Promise; - /** - * Returns source for the script with given id. - */ - post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType): Promise; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType): Promise; - /** - * Evaluates expression on a given call frame. - */ - post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType): Promise; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType): Promise; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType): Promise; - /** - * Enables or disables async call stacks tracking. - */ - post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType): Promise; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType): Promise; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType): Promise; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: 'Console.enable'): Promise; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: 'Console.disable'): Promise; - /** - * Does nothing. - */ - post(method: 'Console.clearMessages'): Promise; - post(method: 'Profiler.enable'): Promise; - post(method: 'Profiler.disable'): Promise; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType): Promise; - post(method: 'Profiler.start'): Promise; - post(method: 'Profiler.stop'): Promise; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType): Promise; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: 'Profiler.stopPreciseCoverage'): Promise; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: 'Profiler.takePreciseCoverage'): Promise; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: 'Profiler.getBestEffortCoverage'): Promise; - post(method: 'HeapProfiler.enable'): Promise; - post(method: 'HeapProfiler.disable'): Promise; - post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise; - post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise; - post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise; - post(method: 'HeapProfiler.collectGarbage'): Promise; - post(method: 'HeapProfiler.getObjectByHeapObjectId', params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise; - post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType): Promise; - post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType): Promise; - post(method: 'HeapProfiler.stopSampling'): Promise; - post(method: 'HeapProfiler.getSamplingProfile'): Promise; - /** - * Gets supported tracing categories. - */ - post(method: 'NodeTracing.getCategories'): Promise; - /** - * Start trace events collection. - */ - post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType): Promise; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: 'NodeTracing.stop'): Promise; - /** - * Sends protocol message over session with given id. - */ - post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType): Promise; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType): Promise; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: 'NodeWorker.disable'): Promise; - /** - * Detached from the worker with given sessionId. - */ - post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: 'Network.disable'): Promise; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: 'Network.enable'): Promise; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.enable'): Promise; - /** - * Disable NodeRuntime events - */ - post(method: 'NodeRuntime.disable'): Promise; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'inspectorNotification', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextsCleared'): boolean; - emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; - emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; - emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; - emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; - emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; - emit(event: 'Debugger.paused', message: InspectorNotification): boolean; - emit(event: 'Debugger.resumed'): boolean; - emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.resetProfiles'): boolean; - emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.tracingComplete'): boolean; - emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; - emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; - emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; - emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; - emit(event: 'NodeRuntime.waitingForDebugger'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - } - - export { - Session, - open, - close, - url, - waitForDebugger, - console, - InspectorNotification, - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - }; -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @since v19.0.0 - */ -declare module 'node:inspector/promises' { - export * from 'inspector/promises'; -} diff --git a/mcp-server/node_modules/@types/node/module.d.ts b/mcp-server/node_modules/@types/node/module.d.ts deleted file mode 100644 index 36b86ff..0000000 --- a/mcp-server/node_modules/@types/node/module.d.ts +++ /dev/null @@ -1,539 +0,0 @@ -/** - * @since v0.3.7 - */ -declare module "module" { - import { URL } from "node:url"; - import { MessagePort } from "node:worker_threads"; - class Module { - constructor(id: string, parent?: Module); - } - interface Module extends NodeJS.Module {} - namespace Module { - export { Module }; - } - namespace Module { - /** - * A list of the names of all modules provided by Node.js. Can be used to verify - * if a module is maintained by a third party or not. - * - * Note: the list doesn't contain prefix-only modules like `node:test`. - * @since v9.3.0, v8.10.0, v6.13.0 - */ - const builtinModules: readonly string[]; - /** - * @since v12.2.0 - * @param path Filename to be used to construct the require - * function. Must be a file URL object, file URL string, or absolute path - * string. - */ - function createRequire(path: string | URL): NodeJS.Require; - /** - * @since v18.6.0, v16.17.0 - */ - function isBuiltin(moduleName: string): boolean; - interface RegisterOptions { - /** - * If you want to resolve `specifier` relative to a - * base URL, such as `import.meta.url`, you can pass that URL here. This - * property is ignored if the `parentURL` is supplied as the second argument. - * @default 'data:' - */ - parentURL?: string | URL | undefined; - /** - * Any arbitrary, cloneable JavaScript value to pass into the - * {@link initialize} hook. - */ - data?: Data | undefined; - /** - * [Transferable objects](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#portpostmessagevalue-transferlist) - * to be passed into the `initialize` hook. - */ - transferList?: any[] | undefined; - } - /* eslint-disable @definitelytyped/no-unnecessary-generics */ - /** - * Register a module that exports hooks that customize Node.js module - * resolution and loading behavior. See - * [Customization hooks](https://nodejs.org/docs/latest-v20.x/api/module.html#customization-hooks). - * @since v20.6.0, v18.19.0 - * @param specifier Customization hooks to be registered; this should be - * the same string that would be passed to `import()`, except that if it is - * relative, it is resolved relative to `parentURL`. - * @param parentURL f you want to resolve `specifier` relative to a base - * URL, such as `import.meta.url`, you can pass that URL here. - */ - function register( - specifier: string | URL, - parentURL?: string | URL, - options?: RegisterOptions, - ): void; - function register(specifier: string | URL, options?: RegisterOptions): void; - /* eslint-enable @definitelytyped/no-unnecessary-generics */ - /** - * The `module.syncBuiltinESMExports()` method updates all the live bindings for - * builtin `ES Modules` to match the properties of the `CommonJS` exports. It - * does not add or remove exported names from the `ES Modules`. - * - * ```js - * import fs from 'node:fs'; - * import assert from 'node:assert'; - * import { syncBuiltinESMExports } from 'node:module'; - * - * fs.readFile = newAPI; - * - * delete fs.readFileSync; - * - * function newAPI() { - * // ... - * } - * - * fs.newAPI = newAPI; - * - * syncBuiltinESMExports(); - * - * import('node:fs').then((esmFS) => { - * // It syncs the existing readFile property with the new value - * assert.strictEqual(esmFS.readFile, newAPI); - * // readFileSync has been deleted from the required fs - * assert.strictEqual('readFileSync' in fs, false); - * // syncBuiltinESMExports() does not remove readFileSync from esmFS - * assert.strictEqual('readFileSync' in esmFS, true); - * // syncBuiltinESMExports() does not add names - * assert.strictEqual(esmFS.newAPI, undefined); - * }); - * ``` - * @since v12.12.0 - */ - function syncBuiltinESMExports(): void; - /** @deprecated Use `ImportAttributes` instead */ - interface ImportAssertions extends ImportAttributes {} - interface ImportAttributes extends NodeJS.Dict { - type?: string | undefined; - } - type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; - type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray; - /** - * The `initialize` hook provides a way to define a custom function that runs in - * the hooks thread when the hooks module is initialized. Initialization happens - * when the hooks module is registered via {@link register}. - * - * This hook can receive data from a {@link register} invocation, including - * ports and other transferable objects. The return value of `initialize` can be a - * `Promise`, in which case it will be awaited before the main application thread - * execution resumes. - */ - type InitializeHook = (data: Data) => void | Promise; - interface ResolveHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions: ImportAttributes; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - /** - * The module importing this one, or undefined if this is the Node.js entry point - */ - parentURL: string | undefined; - } - interface ResolveFnOutput { - /** - * A hint to the load hook (it might be ignored) - */ - format?: ModuleFormat | null | undefined; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions?: ImportAttributes | undefined; - /** - * The import attributes to use when caching the module (optional; if excluded the input will be used) - */ - importAttributes?: ImportAttributes | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The absolute URL to which this input resolves - */ - url: string; - } - /** - * The `resolve` hook chain is responsible for telling Node.js where to find and - * how to cache a given `import` statement or expression, or `require` call. It can - * optionally return a format (such as `'module'`) as a hint to the `load` hook. If - * a format is specified, the `load` hook is ultimately responsible for providing - * the final `format` value (and it is free to ignore the hint provided by - * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required - * even if only to pass the value to the Node.js default `load` hook. - */ - type ResolveHook = ( - specifier: string, - context: ResolveHookContext, - nextResolve: ( - specifier: string, - context?: Partial, - ) => ResolveFnOutput | Promise, - ) => ResolveFnOutput | Promise; - interface LoadHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * The format optionally supplied by the `resolve` hook chain - */ - format: ModuleFormat | null | undefined; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions: ImportAttributes; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - } - interface LoadFnOutput { - format: string | null | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The source for Node.js to evaluate - */ - source?: ModuleSource | undefined; - } - /** - * The `load` hook provides a way to define a custom method of determining how a - * URL should be interpreted, retrieved, and parsed. It is also in charge of - * validating the import attributes. - */ - type LoadHook = ( - url: string, - context: LoadHookContext, - nextLoad: ( - url: string, - context?: Partial, - ) => LoadFnOutput | Promise, - ) => LoadFnOutput | Promise; - interface GlobalPreloadContext { - port: MessagePort; - } - /** - * Sometimes it might be necessary to run some code inside of the same global - * scope that the application runs in. This hook allows the return of a string - * that is run as a sloppy-mode script on startup. - * @deprecated This hook will be removed in a future version. Use - * `initialize` instead. When a hooks module has an `initialize` export, - * `globalPreload` will be ignored. - */ - type GlobalPreloadHook = (context: GlobalPreloadContext) => string; - /** - * `path` is the resolved path for the file for which a corresponding source map - * should be fetched. - * @since v13.7.0, v12.17.0 - * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise. - */ - function findSourceMap(path: string): SourceMap | undefined; - interface SourceMapConstructorOptions { - /** - * @since v20.5.0 - */ - lineLengths?: readonly number[] | undefined; - } - interface SourceMapPayload { - file: string; - version: number; - sources: string[]; - sourcesContent: string[]; - names: string[]; - mappings: string; - sourceRoot: string; - } - interface SourceMapping { - generatedLine: number; - generatedColumn: number; - originalSource: string; - originalLine: number; - originalColumn: number; - } - interface SourceOrigin { - /** - * The name of the range in the source map, if one was provided - */ - name: string | undefined; - /** - * The file name of the original source, as reported in the SourceMap - */ - fileName: string; - /** - * The 1-indexed lineNumber of the corresponding call site in the original source - */ - lineNumber: number; - /** - * The 1-indexed columnNumber of the corresponding call site in the original source - */ - columnNumber: number; - } - /** - * @since v13.7.0, v12.17.0 - */ - class SourceMap { - constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions); - /** - * Getter for the payload used to construct the `SourceMap` instance. - */ - readonly payload: SourceMapPayload; - /** - * Given a line offset and column offset in the generated source - * file, returns an object representing the SourceMap range in the - * original file if found, or an empty object if not. - * - * The object returned contains the following keys: - * - * The returned value represents the raw range as it appears in the - * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and - * column numbers as they appear in Error messages and CallSite - * objects. - * - * To get the corresponding 1-indexed line and column numbers from a - * lineNumber and columnNumber as they are reported by Error stacks - * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)` - * @param lineOffset The zero-indexed line number offset in the generated source - * @param columnOffset The zero-indexed column number offset in the generated source - */ - findEntry(lineOffset: number, columnOffset: number): SourceMapping | {}; - /** - * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source, - * find the corresponding call site location in the original source. - * - * If the `lineNumber` and `columnNumber` provided are not found in any source map, - * then an empty object is returned. - * @param lineNumber The 1-indexed line number of the call site in the generated source - * @param columnNumber The 1-indexed column number of the call site in the generated source - */ - findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; - } - function runMain(main?: string): void; - function wrap(script: string): string; - } - global { - interface ImportMeta { - /** - * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`. - * **Caveat:** only present on `file:` modules. - */ - dirname: string; - /** - * The full absolute path and filename of the current module, with symlinks resolved. - * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. - * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it. - */ - filename: string; - /** - * The absolute `file:` URL of the module. - */ - url: string; - /** - * Provides a module-relative resolution function scoped to each module, returning - * the URL string. - * - * Second `parent` parameter is only used when the `--experimental-import-meta-resolve` - * command flag enabled. - * - * @since v20.6.0 - * - * @param specifier The module specifier to resolve relative to `parent`. - * @param parent The absolute parent module URL to resolve from. - * @returns The absolute (`file:`) URL string for the resolved module. - */ - resolve(specifier: string, parent?: string | URL | undefined): string; - } - namespace NodeJS { - interface Module { - /** - * The module objects required for the first time by this one. - * @since v0.1.16 - */ - children: Module[]; - /** - * The `module.exports` object is created by the `Module` system. Sometimes this is - * not acceptable; many want their module to be an instance of some class. To do - * this, assign the desired export object to `module.exports`. - * @since v0.1.16 - */ - exports: any; - /** - * The fully resolved filename of the module. - * @since v0.1.16 - */ - filename: string; - /** - * The identifier for the module. Typically this is the fully resolved - * filename. - * @since v0.1.16 - */ - id: string; - /** - * `true` if the module is running during the Node.js preload - * phase. - * @since v15.4.0, v14.17.0 - */ - isPreloading: boolean; - /** - * Whether or not the module is done loading, or is in the process of - * loading. - * @since v0.1.16 - */ - loaded: boolean; - /** - * The module that first required this one, or `null` if the current module is the - * entry point of the current process, or `undefined` if the module was loaded by - * something that is not a CommonJS module (e.g. REPL or `import`). - * @since v0.1.16 - * @deprecated Please use `require.main` and `module.children` instead. - */ - parent: Module | null | undefined; - /** - * The directory name of the module. This is usually the same as the - * `path.dirname()` of the `module.id`. - * @since v11.14.0 - */ - path: string; - /** - * The search paths for the module. - * @since v0.4.0 - */ - paths: string[]; - /** - * The `module.require()` method provides a way to load a module as if - * `require()` was called from the original module. - * @since v0.5.1 - */ - require(id: string): any; - } - interface Require { - /** - * Used to import modules, `JSON`, and local files. - * @since v0.1.13 - */ - (id: string): any; - /** - * Modules are cached in this object when they are required. By deleting a key - * value from this object, the next `require` will reload the module. - * This does not apply to - * [native addons](https://nodejs.org/docs/latest-v20.x/api/addons.html), - * for which reloading will result in an error. - * @since v0.3.0 - */ - cache: Dict; - /** - * Instruct `require` on how to handle certain file extensions. - * @since v0.3.0 - * @deprecated - */ - extensions: RequireExtensions; - /** - * The `Module` object representing the entry script loaded when the Node.js - * process launched, or `undefined` if the entry point of the program is not a - * CommonJS module. - * @since v0.1.17 - */ - main: Module | undefined; - /** - * @since v0.3.0 - */ - resolve: RequireResolve; - } - /** @deprecated */ - interface RequireExtensions extends Dict<(module: Module, filename: string) => any> { - ".js": (module: Module, filename: string) => any; - ".json": (module: Module, filename: string) => any; - ".node": (module: Module, filename: string) => any; - } - interface RequireResolveOptions { - /** - * Paths to resolve module location from. If present, these - * paths are used instead of the default resolution paths, with the exception - * of - * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-from-the-global-folders) - * like `$HOME/.node_modules`, which are - * always included. Each of these paths is used as a starting point for - * the module resolution algorithm, meaning that the `node_modules` hierarchy - * is checked from this location. - * @since v8.9.0 - */ - paths?: string[] | undefined; - } - interface RequireResolve { - /** - * Use the internal `require()` machinery to look up the location of a module, - * but rather than loading the module, just return the resolved filename. - * - * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown. - * @since v0.3.0 - * @param request The module path to resolve. - */ - (id: string, options?: RequireResolveOptions): string; - /** - * Returns an array containing the paths searched during resolution of `request` or - * `null` if the `request` string references a core module, for example `http` or - * `fs`. - * @since v8.9.0 - * @param request The module path whose lookup paths are being retrieved. - */ - paths(request: string): string[] | null; - } - } - /** - * The directory name of the current module. This is the same as the - * `path.dirname()` of the `__filename`. - * @since v0.1.27 - */ - var __dirname: string; - /** - * The file name of the current module. This is the current module file's absolute - * path with symlinks resolved. - * - * For a main program this is not necessarily the same as the file name used in the - * command line. - * @since v0.0.1 - */ - var __filename: string; - /** - * The `exports` variable is available within a module's file-level scope, and is - * assigned the value of `module.exports` before the module is evaluated. - * @since v0.1.16 - */ - var exports: NodeJS.Module["exports"]; - /** - * A reference to the current module. - * @since v0.1.16 - */ - var module: NodeJS.Module; - /** - * @since v0.1.13 - */ - var require: NodeJS.Require; - // Global-scope aliases for backwards compatibility with @types/node <13.0.x - /** @deprecated Use `NodeJS.Module` instead. */ - interface NodeModule extends NodeJS.Module {} - /** @deprecated Use `NodeJS.Require` instead. */ - interface NodeRequire extends NodeJS.Require {} - /** @deprecated Use `NodeJS.RequireResolve` instead. */ - interface RequireResolve extends NodeJS.RequireResolve {} - } - export = Module; -} -declare module "node:module" { - import module = require("module"); - export = module; -} diff --git a/mcp-server/node_modules/@types/node/net.d.ts b/mcp-server/node_modules/@types/node/net.d.ts deleted file mode 100644 index 0689472..0000000 --- a/mcp-server/node_modules/@types/node/net.d.ts +++ /dev/null @@ -1,1012 +0,0 @@ -/** - * > Stability: 2 - Stable - * - * The `node:net` module provides an asynchronous network API for creating stream-based - * TCP or `IPC` servers ({@link createServer}) and clients - * ({@link createConnection}). - * - * It can be accessed using: - * - * ```js - * import net from 'node:net'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/net.js) - */ -declare module "net" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import * as dns from "node:dns"; - type LookupFunction = ( - hostname: string, - options: dns.LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, - ) => void; - interface AddressInfo { - address: string; - family: string; - port: number; - } - interface SocketConstructorOpts { - fd?: number | undefined; - allowHalfOpen?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - signal?: AbortSignal | undefined; - } - interface OnReadOpts { - buffer: Uint8Array | (() => Uint8Array); - /** - * This function is called for every chunk of incoming data. - * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. - * Return false from this function to implicitly pause() the socket. - */ - callback(bytesWritten: number, buf: Uint8Array): boolean; - } - interface ConnectOpts { - /** - * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. - * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will - * still be emitted as normal and methods like pause() and resume() will also behave as expected. - */ - onread?: OnReadOpts | undefined; - } - interface TcpSocketConnectOpts extends ConnectOpts { - port: number; - host?: string | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - hints?: number | undefined; - family?: number | undefined; - lookup?: LookupFunction | undefined; - noDelay?: boolean | undefined; - keepAlive?: boolean | undefined; - keepAliveInitialDelay?: number | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamily?: boolean | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamilyAttemptTimeout?: number | undefined; - } - interface IpcSocketConnectOpts extends ConnectOpts { - path: string; - } - type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; - type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed"; - /** - * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint - * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also - * an `EventEmitter`. - * - * A `net.Socket` can be created by the user and used directly to interact with - * a server. For example, it is returned by {@link createConnection}, - * so the user can use it to talk to the server. - * - * It can also be created by Node.js and passed to the user when a connection - * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use - * it to interact with the client. - * @since v0.3.4 - */ - class Socket extends stream.Duplex { - constructor(options?: SocketConstructorOpts); - /** - * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. - * If the socket is still writable it implicitly calls `socket.end()`. - * @since v0.3.4 - */ - destroySoon(): void; - /** - * Sends data on the socket. The second parameter specifies the encoding in the - * case of a string. It defaults to UTF8 encoding. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. - * - * The optional `callback` parameter will be executed when the data is finally - * written out, which may not be immediately. - * - * See `Writable` stream `write()` method for more - * information. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - */ - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - /** - * Initiate a connection on a given socket. - * - * Possible signatures: - * - * * `socket.connect(options[, connectListener])` - * * `socket.connect(path[, connectListener])` for `IPC` connections. - * * `socket.connect(port[, host][, connectListener])` for TCP connections. - * * Returns: `net.Socket` The socket itself. - * - * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, - * instead of a `'connect'` event, an `'error'` event will be emitted with - * the error passed to the `'error'` listener. - * The last parameter `connectListener`, if supplied, will be added as a listener - * for the `'connect'` event **once**. - * - * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined - * behavior. - */ - connect(options: SocketConnectOpts, connectionListener?: () => void): this; - connect(port: number, host: string, connectionListener?: () => void): this; - connect(port: number, connectionListener?: () => void): this; - connect(path: string, connectionListener?: () => void): this; - /** - * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. - * @since v0.1.90 - * @return The socket itself. - */ - setEncoding(encoding?: BufferEncoding): this; - /** - * Pauses the reading of data. That is, `'data'` events will not be emitted. - * Useful to throttle back an upload. - * @return The socket itself. - */ - pause(): this; - /** - * Close the TCP connection by sending an RST packet and destroy the stream. - * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected. - * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. - * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error. - * @since v18.3.0, v16.17.0 - */ - resetAndDestroy(): this; - /** - * Resumes reading after a call to `socket.pause()`. - * @return The socket itself. - */ - resume(): this; - /** - * Sets the socket to timeout after `timeout` milliseconds of inactivity on - * the socket. By default `net.Socket` do not have a timeout. - * - * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to - * end the connection. - * - * ```js - * socket.setTimeout(3000); - * socket.on('timeout', () => { - * console.log('socket timeout'); - * socket.end(); - * }); - * ``` - * - * If `timeout` is 0, then the existing idle timeout is disabled. - * - * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. - * @since v0.1.90 - * @return The socket itself. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Enable/disable the use of Nagle's algorithm. - * - * When a TCP connection is created, it will have Nagle's algorithm enabled. - * - * Nagle's algorithm delays data before it is sent via the network. It attempts - * to optimize throughput at the expense of latency. - * - * Passing `true` for `noDelay` or not passing an argument will disable Nagle's - * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's - * algorithm. - * @since v0.1.90 - * @param [noDelay=true] - * @return The socket itself. - */ - setNoDelay(noDelay?: boolean): this; - /** - * Enable/disable keep-alive functionality, and optionally set the initial - * delay before the first keepalive probe is sent on an idle socket. - * - * Set `initialDelay` (in milliseconds) to set the delay between the last - * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default - * (or previous) setting. - * - * Enabling the keep-alive functionality will set the following socket options: - * - * * `SO_KEEPALIVE=1` - * * `TCP_KEEPIDLE=initialDelay` - * * `TCP_KEEPCNT=10` - * * `TCP_KEEPINTVL=1` - * @since v0.1.92 - * @param [enable=false] - * @param [initialDelay=0] - * @return The socket itself. - */ - setKeepAlive(enable?: boolean, initialDelay?: number): this; - /** - * Returns the bound `address`, the address `family` name and `port` of the - * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` - * @since v0.1.90 - */ - address(): AddressInfo | {}; - /** - * Calling `unref()` on a socket will allow the program to exit if this is the only - * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - unref(): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior). - * If the socket is `ref`ed calling `ref` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - ref(): this; - /** - * This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)` - * and it is an array of the addresses that have been attempted. - * - * Each address is a string in the form of `$IP:$PORT`. - * If the connection was successful, then the last address is the one that the socket is currently connected to. - * @since v19.4.0 - */ - readonly autoSelectFamilyAttemptedAddresses: string[]; - /** - * This property shows the number of characters buffered for writing. The buffer - * may contain strings whose length after encoding is not yet known. So this number - * is only an approximation of the number of bytes in the buffer. - * - * `net.Socket` has the property that `socket.write()` always works. This is to - * help users get up and running quickly. The computer cannot always keep up - * with the amount of data that is written to a socket. The network connection - * simply might be too slow. Node.js will internally queue up the data written to a - * socket and send it out over the wire when it is possible. - * - * The consequence of this internal buffering is that memory may grow. - * Users who experience large or growing `bufferSize` should attempt to - * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. - * @since v0.3.8 - * @deprecated Since v14.6.0 - Use `writableLength` instead. - */ - readonly bufferSize: number; - /** - * The amount of received bytes. - * @since v0.5.3 - */ - readonly bytesRead: number; - /** - * The amount of bytes sent. - * @since v0.5.3 - */ - readonly bytesWritten: number; - /** - * If `true`, `socket.connect(options[, connectListener])` was - * called and has not yet finished. It will stay `true` until the socket becomes - * connected, then it is set to `false` and the `'connect'` event is emitted. Note - * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. - * @since v6.1.0 - */ - readonly connecting: boolean; - /** - * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting - * (see `socket.connecting`). - * @since v11.2.0, v10.16.0 - */ - readonly pending: boolean; - /** - * See `writable.destroyed` for further details. - */ - readonly destroyed: boolean; - /** - * The string representation of the local IP address the remote client is - * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client - * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. - * @since v0.9.6 - */ - readonly localAddress?: string; - /** - * The numeric representation of the local port. For example, `80` or `21`. - * @since v0.9.6 - */ - readonly localPort?: number; - /** - * The string representation of the local IP family. `'IPv4'` or `'IPv6'`. - * @since v18.8.0, v16.18.0 - */ - readonly localFamily?: string; - /** - * This property represents the state of the connection as a string. - * - * * If the stream is connecting `socket.readyState` is `opening`. - * * If the stream is readable and writable, it is `open`. - * * If the stream is readable and not writable, it is `readOnly`. - * * If the stream is not readable and writable, it is `writeOnly`. - * @since v0.5.0 - */ - readonly readyState: SocketReadyState; - /** - * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remoteAddress: string | undefined; - /** - * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.11.14 - */ - readonly remoteFamily: string | undefined; - /** - * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remotePort: number | undefined; - /** - * The socket timeout in milliseconds as set by `socket.setTimeout()`. - * It is `undefined` if a timeout has not been set. - * @since v10.7.0 - */ - readonly timeout?: number; - /** - * Half-closes the socket. i.e., it sends a FIN packet. It is possible the - * server will still send some data. - * - * See `writable.end()` for further details. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - * @param callback Optional callback for when the socket is finished. - * @return The socket itself. - */ - end(callback?: () => void): this; - end(buffer: Uint8Array | string, callback?: () => void): this; - end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. connectionAttempt - * 4. connectionAttemptFailed - * 5. connectionAttemptTimeout - * 6. data - * 7. drain - * 8. end - * 9. error - * 10. lookup - * 11. ready - * 12. timeout - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (hadError: boolean) => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - addListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - addListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - addListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - addListener(event: "ready", listener: () => void): this; - addListener(event: "timeout", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", hadError: boolean): boolean; - emit(event: "connect"): boolean; - emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean; - emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean; - emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean; - emit(event: "data", data: NonSharedBuffer): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; - emit(event: "ready"): boolean; - emit(event: "timeout"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (hadError: boolean) => void): this; - on(event: "connect", listener: () => void): this; - on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - on( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - on(event: "data", listener: (data: NonSharedBuffer) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - on(event: "ready", listener: () => void): this; - on(event: "timeout", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (hadError: boolean) => void): this; - once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - once( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - once(event: "connect", listener: () => void): this; - once(event: "data", listener: (data: NonSharedBuffer) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - once(event: "ready", listener: () => void): this; - once(event: "timeout", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (hadError: boolean) => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - prependListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependListener(event: "ready", listener: () => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: (hadError: boolean) => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener( - event: "connectionAttempt", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependOnceListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependOnceListener(event: "ready", listener: () => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - } - interface ListenOptions extends Abortable { - port?: number | undefined; - host?: string | undefined; - backlog?: number | undefined; - path?: string | undefined; - exclusive?: boolean | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - } - interface ServerOpts { - /** - * Indicates whether half-opened TCP connections are allowed. - * @default false - */ - allowHalfOpen?: boolean | undefined; - /** - * Indicates whether the socket should be paused on incoming connections. - * @default false - */ - pauseOnConnect?: boolean | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default false - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode). - * @since v18.17.0, v20.1.0 - */ - highWaterMark?: number | undefined; - } - interface DropArgument { - localAddress?: string; - localPort?: number; - localFamily?: string; - remoteAddress?: string; - remotePort?: number; - remoteFamily?: string; - } - /** - * This class is used to create a TCP or `IPC` server. - * @since v0.1.90 - */ - class Server extends EventEmitter { - constructor(connectionListener?: (socket: Socket) => void); - constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); - /** - * Start a server listening for connections. A `net.Server` can be a TCP or - * an `IPC` server depending on what it listens to. - * - * Possible signatures: - * - * * `server.listen(handle[, backlog][, callback])` - * * `server.listen(options[, callback])` - * * `server.listen(path[, backlog][, callback])` for `IPC` servers - * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers - * - * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` - * event. - * - * All `listen()` methods can take a `backlog` parameter to specify the maximum - * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). - * - * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for - * details). - * - * The `server.listen()` method can be called again if and only if there was an - * error during the first `server.listen()` call or `server.close()` has been - * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. - * - * One of the most common errors raised when listening is `EADDRINUSE`. - * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry - * after a certain amount of time: - * - * ```js - * server.on('error', (e) => { - * if (e.code === 'EADDRINUSE') { - * console.error('Address in use, retrying...'); - * setTimeout(() => { - * server.close(); - * server.listen(PORT, HOST); - * }, 1000); - * } - * }); - * ``` - */ - listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, hostname?: string, listeningListener?: () => void): this; - listen(port?: number, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, listeningListener?: () => void): this; - listen(path: string, backlog?: number, listeningListener?: () => void): this; - listen(path: string, listeningListener?: () => void): this; - listen(options: ListenOptions, listeningListener?: () => void): this; - listen(handle: any, backlog?: number, listeningListener?: () => void): this; - listen(handle: any, listeningListener?: () => void): this; - /** - * Stops the server from accepting new connections and keeps existing - * connections. This function is asynchronous, the server is finally closed - * when all connections are ended and the server emits a `'close'` event. - * The optional `callback` will be called once the `'close'` event occurs. Unlike - * that event, it will be called with an `Error` as its only argument if the server - * was not open when it was closed. - * @since v0.1.90 - * @param callback Called when the server is closed. - */ - close(callback?: (err?: Error) => void): this; - /** - * Returns the bound `address`, the address `family` name, and `port` of the server - * as reported by the operating system if listening on an IP socket - * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. - * - * For a server listening on a pipe or Unix domain socket, the name is returned - * as a string. - * - * ```js - * const server = net.createServer((socket) => { - * socket.end('goodbye\n'); - * }).on('error', (err) => { - * // Handle errors here. - * throw err; - * }); - * - * // Grab an arbitrary unused port. - * server.listen(() => { - * console.log('opened server on', server.address()); - * }); - * ``` - * - * `server.address()` returns `null` before the `'listening'` event has been - * emitted or after calling `server.close()`. - * @since v0.1.90 - */ - address(): AddressInfo | string | null; - /** - * Asynchronously get the number of concurrent connections on the server. Works - * when sockets were sent to forks. - * - * Callback should take two arguments `err` and `count`. - * @since v0.9.7 - */ - getConnections(cb: (error: Error | null, count: number) => void): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior). - * If the server is `ref`ed calling `ref()` again will have no effect. - * @since v0.9.1 - */ - ref(): this; - /** - * Calling `unref()` on a server will allow the program to exit if this is the only - * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - */ - unref(): this; - /** - * Set this property to reject connections when the server's connection count gets - * high. - * - * It is not recommended to use this option once a socket has been sent to a child - * with `child_process.fork()`. - * @since v0.2.0 - */ - maxConnections: number; - connections: number; - /** - * Indicates whether or not the server is listening for connections. - * @since v5.7.0 - */ - readonly listening: boolean; - /** - * events.EventEmitter - * 1. close - * 2. connection - * 3. error - * 4. listening - * 5. drop - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "drop", listener: (data?: DropArgument) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "drop", data?: DropArgument): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "drop", listener: (data?: DropArgument) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "drop", listener: (data?: DropArgument) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "drop", listener: (data?: DropArgument) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this; - /** - * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } - type IPVersion = "ipv4" | "ipv6"; - /** - * The `BlockList` object can be used with some network APIs to specify rules for - * disabling inbound or outbound access to specific IP addresses, IP ranges, or - * IP subnets. - * @since v15.0.0, v14.18.0 - */ - class BlockList { - /** - * Adds a rule to block the given IP address. - * @since v15.0.0, v14.18.0 - * @param address An IPv4 or IPv6 address. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addAddress(address: string, type?: IPVersion): void; - addAddress(address: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). - * @since v15.0.0, v14.18.0 - * @param start The starting IPv4 or IPv6 address in the range. - * @param end The ending IPv4 or IPv6 address in the range. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addRange(start: string, end: string, type?: IPVersion): void; - addRange(start: SocketAddress, end: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses specified as a subnet mask. - * @since v15.0.0, v14.18.0 - * @param net The network IPv4 or IPv6 address. - * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addSubnet(net: SocketAddress, prefix: number): void; - addSubnet(net: string, prefix: number, type?: IPVersion): void; - /** - * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. - * - * ```js - * const blockList = new net.BlockList(); - * blockList.addAddress('123.123.123.123'); - * blockList.addRange('10.0.0.1', '10.0.0.10'); - * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); - * - * console.log(blockList.check('123.123.123.123')); // Prints: true - * console.log(blockList.check('10.0.0.3')); // Prints: true - * console.log(blockList.check('222.111.111.222')); // Prints: false - * - * // IPv6 notation for IPv4 addresses works: - * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true - * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true - * ``` - * @since v15.0.0, v14.18.0 - * @param address The IP address to check - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - check(address: SocketAddress): boolean; - check(address: string, type?: IPVersion): boolean; - /** - * The list of rules added to the blocklist. - * @since v15.0.0, v14.18.0 - */ - rules: readonly string[]; - } - interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; - /** - * Creates a new TCP or `IPC` server. - * - * If `allowHalfOpen` is set to `true`, when the other end of the socket - * signals the end of transmission, the server will only send back the end of - * transmission when `socket.end()` is explicitly called. For example, in the - * context of TCP, when a FIN packed is received, a FIN packed is sent - * back only when `socket.end()` is explicitly called. Until then the - * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. - * - * If `pauseOnConnect` is set to `true`, then the socket associated with each - * incoming connection will be paused, and no data will be read from its handle. - * This allows connections to be passed between processes without any data being - * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. - * - * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. - * - * Here is an example of a TCP echo server which listens for connections - * on port 8124: - * - * ```js - * import net from 'node:net'; - * const server = net.createServer((c) => { - * // 'connection' listener. - * console.log('client connected'); - * c.on('end', () => { - * console.log('client disconnected'); - * }); - * c.write('hello\r\n'); - * c.pipe(c); - * }); - * server.on('error', (err) => { - * throw err; - * }); - * server.listen(8124, () => { - * console.log('server bound'); - * }); - * ``` - * - * Test this by using `telnet`: - * - * ```bash - * telnet localhost 8124 - * ``` - * - * To listen on the socket `/tmp/echo.sock`: - * - * ```js - * server.listen('/tmp/echo.sock', () => { - * console.log('server bound'); - * }); - * ``` - * - * Use `nc` to connect to a Unix domain socket server: - * - * ```bash - * nc -U /tmp/echo.sock - * ``` - * @since v0.5.0 - * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. - */ - function createServer(connectionListener?: (socket: Socket) => void): Server; - function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; - /** - * Aliases to {@link createConnection}. - * - * Possible signatures: - * - * * {@link connect} - * * {@link connect} for `IPC` connections. - * * {@link connect} for TCP connections. - */ - function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; - function connect(port: number, host?: string, connectionListener?: () => void): Socket; - function connect(path: string, connectionListener?: () => void): Socket; - /** - * A factory function, which creates a new {@link Socket}, - * immediately initiates connection with `socket.connect()`, - * then returns the `net.Socket` that starts the connection. - * - * When the connection is established, a `'connect'` event will be emitted - * on the returned socket. The last parameter `connectListener`, if supplied, - * will be added as a listener for the `'connect'` event **once**. - * - * Possible signatures: - * - * * {@link createConnection} - * * {@link createConnection} for `IPC` connections. - * * {@link createConnection} for TCP connections. - * - * The {@link connect} function is an alias to this function. - */ - function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; - function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; - function createConnection(path: string, connectionListener?: () => void): Socket; - /** - * Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`. - * The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided. - * @since v19.4.0 - */ - function getDefaultAutoSelectFamily(): boolean; - /** - * Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`. - * @since v19.4.0 - */ - function setDefaultAutoSelectFamily(value: boolean): void; - /** - * Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * The initial default value is `250` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. - * @returns The current default value of the `autoSelectFamilyAttemptTimeout` option. - * @since v19.8.0, v18.8.0 - */ - function getDefaultAutoSelectFamilyAttemptTimeout(): number; - /** - * Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * @param value The new default value, which must be a positive number. If the number is less than `10`, the value `10` is used instead. The initial default value is `250` or the value specified via the command line - * option `--network-family-autoselection-attempt-timeout`. - * @since v19.8.0, v18.8.0 - */ - function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void; - /** - * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4 - * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`. - * - * ```js - * net.isIP('::1'); // returns 6 - * net.isIP('127.0.0.1'); // returns 4 - * net.isIP('127.000.000.001'); // returns 0 - * net.isIP('127.0.0.1/24'); // returns 0 - * net.isIP('fhqwhgads'); // returns 0 - * ``` - * @since v0.3.0 - */ - function isIP(input: string): number; - /** - * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no - * leading zeroes. Otherwise, returns `false`. - * - * ```js - * net.isIPv4('127.0.0.1'); // returns true - * net.isIPv4('127.000.000.001'); // returns false - * net.isIPv4('127.0.0.1/24'); // returns false - * net.isIPv4('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv4(input: string): boolean; - /** - * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`. - * - * ```js - * net.isIPv6('::1'); // returns true - * net.isIPv6('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv6(input: string): boolean; - interface SocketAddressInitOptions { - /** - * The network address as either an IPv4 or IPv6 string. - * @default 127.0.0.1 - */ - address?: string | undefined; - /** - * @default `'ipv4'` - */ - family?: IPVersion | undefined; - /** - * An IPv6 flow-label used only if `family` is `'ipv6'`. - * @default 0 - */ - flowlabel?: number | undefined; - /** - * An IP port. - * @default 0 - */ - port?: number | undefined; - } - /** - * @since v15.14.0, v14.18.0 - */ - class SocketAddress { - constructor(options: SocketAddressInitOptions); - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly address: string; - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly family: IPVersion; - /** - * @since v15.14.0, v14.18.0 - */ - readonly port: number; - /** - * @since v15.14.0, v14.18.0 - */ - readonly flowlabel: number; - } -} -declare module "node:net" { - export * from "net"; -} diff --git a/mcp-server/node_modules/@types/node/os.d.ts b/mcp-server/node_modules/@types/node/os.d.ts deleted file mode 100644 index 331df6e..0000000 --- a/mcp-server/node_modules/@types/node/os.d.ts +++ /dev/null @@ -1,506 +0,0 @@ -/** - * The `node:os` module provides operating system-related utility methods and - * properties. It can be accessed using: - * - * ```js - * import os from 'node:os'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/os.js) - */ -declare module "os" { - import { NonSharedBuffer } from "buffer"; - interface CpuInfo { - model: string; - speed: number; - times: { - /** The number of milliseconds the CPU has spent in user mode. */ - user: number; - /** The number of milliseconds the CPU has spent in nice mode. */ - nice: number; - /** The number of milliseconds the CPU has spent in sys mode. */ - sys: number; - /** The number of milliseconds the CPU has spent in idle mode. */ - idle: number; - /** The number of milliseconds the CPU has spent in irq mode. */ - irq: number; - }; - } - interface NetworkInterfaceBase { - address: string; - netmask: string; - mac: string; - internal: boolean; - cidr: string | null; - scopeid?: number; - } - interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { - family: "IPv4"; - } - interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { - family: "IPv6"; - scopeid: number; - } - interface UserInfo { - username: T; - uid: number; - gid: number; - shell: T | null; - homedir: T; - } - type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; - /** - * Returns the host name of the operating system as a string. - * @since v0.3.3 - */ - function hostname(): string; - /** - * Returns an array containing the 1, 5, and 15 minute load averages. - * - * The load average is a measure of system activity calculated by the operating - * system and expressed as a fractional number. - * - * The load average is a Unix-specific concept. On Windows, the return value is - * always `[0, 0, 0]`. - * @since v0.3.3 - */ - function loadavg(): number[]; - /** - * Returns the system uptime in number of seconds. - * @since v0.3.3 - */ - function uptime(): number; - /** - * Returns the amount of free system memory in bytes as an integer. - * @since v0.3.3 - */ - function freemem(): number; - /** - * Returns the total amount of system memory in bytes as an integer. - * @since v0.3.3 - */ - function totalmem(): number; - /** - * Returns an array of objects containing information about each logical CPU core. - * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable. - * - * The properties included on each object include: - * - * ```js - * [ - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 252020, - * nice: 0, - * sys: 30340, - * idle: 1070356870, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 306960, - * nice: 0, - * sys: 26980, - * idle: 1071569080, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 248450, - * nice: 0, - * sys: 21750, - * idle: 1070919370, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 256880, - * nice: 0, - * sys: 19430, - * idle: 1070905480, - * irq: 20, - * }, - * }, - * ] - * ``` - * - * `nice` values are POSIX-only. On Windows, the `nice` values of all processors - * are always 0. - * - * `os.cpus().length` should not be used to calculate the amount of parallelism - * available to an application. Use {@link availableParallelism} for this purpose. - * @since v0.3.3 - */ - function cpus(): CpuInfo[]; - /** - * Returns an estimate of the default amount of parallelism a program should use. - * Always returns a value greater than zero. - * - * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism). - * @since v19.4.0, v18.14.0 - */ - function availableParallelism(): number; - /** - * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it - * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. - * - * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information - * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. - * @since v0.3.3 - */ - function type(): string; - /** - * Returns the operating system as a string. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See - * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v0.3.3 - */ - function release(): string; - /** - * Returns an object containing network interfaces that have been assigned a - * network address. - * - * Each key on the returned object identifies a network interface. The associated - * value is an array of objects that each describe an assigned network address. - * - * The properties available on the assigned network address object include: - * - * ```js - * { - * lo: [ - * { - * address: '127.0.0.1', - * netmask: '255.0.0.0', - * family: 'IPv4', - * mac: '00:00:00:00:00:00', - * internal: true, - * cidr: '127.0.0.1/8' - * }, - * { - * address: '::1', - * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', - * family: 'IPv6', - * mac: '00:00:00:00:00:00', - * scopeid: 0, - * internal: true, - * cidr: '::1/128' - * } - * ], - * eth0: [ - * { - * address: '192.168.1.108', - * netmask: '255.255.255.0', - * family: 'IPv4', - * mac: '01:02:03:0a:0b:0c', - * internal: false, - * cidr: '192.168.1.108/24' - * }, - * { - * address: 'fe80::a00:27ff:fe4e:66a1', - * netmask: 'ffff:ffff:ffff:ffff::', - * family: 'IPv6', - * mac: '01:02:03:0a:0b:0c', - * scopeid: 1, - * internal: false, - * cidr: 'fe80::a00:27ff:fe4e:66a1/64' - * } - * ] - * } - * ``` - * @since v0.6.0 - */ - function networkInterfaces(): NodeJS.Dict; - /** - * Returns the string path of the current user's home directory. - * - * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it - * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. - * - * On Windows, it uses the `USERPROFILE` environment variable if defined. - * Otherwise it uses the path to the profile directory of the current user. - * @since v2.3.0 - */ - function homedir(): string; - interface UserInfoOptions { - encoding?: BufferEncoding | "buffer" | undefined; - } - interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions { - encoding: "buffer"; - } - interface UserInfoOptionsWithStringEncoding extends UserInfoOptions { - encoding?: BufferEncoding | undefined; - } - /** - * Returns information about the currently effective user. On POSIX platforms, - * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. - * - * The value of `homedir` returned by `os.userInfo()` is provided by the operating - * system. This differs from the result of `os.homedir()`, which queries - * environment variables for the home directory before falling back to the - * operating system response. - * - * Throws a [`SystemError`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`. - * @since v6.0.0 - */ - function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo; - function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo; - function userInfo(options: UserInfoOptions): UserInfo; - type SignalConstants = { - [key in NodeJS.Signals]: number; - }; - namespace constants { - const UV_UDP_REUSEADDR: number; - namespace signals {} - const signals: SignalConstants; - namespace errno { - const E2BIG: number; - const EACCES: number; - const EADDRINUSE: number; - const EADDRNOTAVAIL: number; - const EAFNOSUPPORT: number; - const EAGAIN: number; - const EALREADY: number; - const EBADF: number; - const EBADMSG: number; - const EBUSY: number; - const ECANCELED: number; - const ECHILD: number; - const ECONNABORTED: number; - const ECONNREFUSED: number; - const ECONNRESET: number; - const EDEADLK: number; - const EDESTADDRREQ: number; - const EDOM: number; - const EDQUOT: number; - const EEXIST: number; - const EFAULT: number; - const EFBIG: number; - const EHOSTUNREACH: number; - const EIDRM: number; - const EILSEQ: number; - const EINPROGRESS: number; - const EINTR: number; - const EINVAL: number; - const EIO: number; - const EISCONN: number; - const EISDIR: number; - const ELOOP: number; - const EMFILE: number; - const EMLINK: number; - const EMSGSIZE: number; - const EMULTIHOP: number; - const ENAMETOOLONG: number; - const ENETDOWN: number; - const ENETRESET: number; - const ENETUNREACH: number; - const ENFILE: number; - const ENOBUFS: number; - const ENODATA: number; - const ENODEV: number; - const ENOENT: number; - const ENOEXEC: number; - const ENOLCK: number; - const ENOLINK: number; - const ENOMEM: number; - const ENOMSG: number; - const ENOPROTOOPT: number; - const ENOSPC: number; - const ENOSR: number; - const ENOSTR: number; - const ENOSYS: number; - const ENOTCONN: number; - const ENOTDIR: number; - const ENOTEMPTY: number; - const ENOTSOCK: number; - const ENOTSUP: number; - const ENOTTY: number; - const ENXIO: number; - const EOPNOTSUPP: number; - const EOVERFLOW: number; - const EPERM: number; - const EPIPE: number; - const EPROTO: number; - const EPROTONOSUPPORT: number; - const EPROTOTYPE: number; - const ERANGE: number; - const EROFS: number; - const ESPIPE: number; - const ESRCH: number; - const ESTALE: number; - const ETIME: number; - const ETIMEDOUT: number; - const ETXTBSY: number; - const EWOULDBLOCK: number; - const EXDEV: number; - const WSAEINTR: number; - const WSAEBADF: number; - const WSAEACCES: number; - const WSAEFAULT: number; - const WSAEINVAL: number; - const WSAEMFILE: number; - const WSAEWOULDBLOCK: number; - const WSAEINPROGRESS: number; - const WSAEALREADY: number; - const WSAENOTSOCK: number; - const WSAEDESTADDRREQ: number; - const WSAEMSGSIZE: number; - const WSAEPROTOTYPE: number; - const WSAENOPROTOOPT: number; - const WSAEPROTONOSUPPORT: number; - const WSAESOCKTNOSUPPORT: number; - const WSAEOPNOTSUPP: number; - const WSAEPFNOSUPPORT: number; - const WSAEAFNOSUPPORT: number; - const WSAEADDRINUSE: number; - const WSAEADDRNOTAVAIL: number; - const WSAENETDOWN: number; - const WSAENETUNREACH: number; - const WSAENETRESET: number; - const WSAECONNABORTED: number; - const WSAECONNRESET: number; - const WSAENOBUFS: number; - const WSAEISCONN: number; - const WSAENOTCONN: number; - const WSAESHUTDOWN: number; - const WSAETOOMANYREFS: number; - const WSAETIMEDOUT: number; - const WSAECONNREFUSED: number; - const WSAELOOP: number; - const WSAENAMETOOLONG: number; - const WSAEHOSTDOWN: number; - const WSAEHOSTUNREACH: number; - const WSAENOTEMPTY: number; - const WSAEPROCLIM: number; - const WSAEUSERS: number; - const WSAEDQUOT: number; - const WSAESTALE: number; - const WSAEREMOTE: number; - const WSASYSNOTREADY: number; - const WSAVERNOTSUPPORTED: number; - const WSANOTINITIALISED: number; - const WSAEDISCON: number; - const WSAENOMORE: number; - const WSAECANCELLED: number; - const WSAEINVALIDPROCTABLE: number; - const WSAEINVALIDPROVIDER: number; - const WSAEPROVIDERFAILEDINIT: number; - const WSASYSCALLFAILURE: number; - const WSASERVICE_NOT_FOUND: number; - const WSATYPE_NOT_FOUND: number; - const WSA_E_NO_MORE: number; - const WSA_E_CANCELLED: number; - const WSAEREFUSED: number; - } - namespace dlopen { - const RTLD_LAZY: number; - const RTLD_NOW: number; - const RTLD_GLOBAL: number; - const RTLD_LOCAL: number; - const RTLD_DEEPBIND: number; - } - namespace priority { - const PRIORITY_LOW: number; - const PRIORITY_BELOW_NORMAL: number; - const PRIORITY_NORMAL: number; - const PRIORITY_ABOVE_NORMAL: number; - const PRIORITY_HIGH: number; - const PRIORITY_HIGHEST: number; - } - } - const devNull: string; - /** - * The operating system-specific end-of-line marker. - * * `\n` on POSIX - * * `\r\n` on Windows - */ - const EOL: string; - /** - * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, - * and `'x64'`. - * - * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v20.x/api/process.html#processarch). - * @since v0.5.0 - */ - function arch(): string; - /** - * Returns a string identifying the kernel version. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v13.11.0, v12.17.0 - */ - function version(): string; - /** - * Returns a string identifying the operating system platform for which - * the Node.js binary was compiled. The value is set at compile time. - * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. - * - * The return value is equivalent to `process.platform`. - * - * The value `'android'` may also be returned if Node.js is built on the Android - * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.5.0 - */ - function platform(): NodeJS.Platform; - /** - * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. - * - * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v18.9.0, v16.18.0 - */ - function machine(): string; - /** - * Returns the operating system's default directory for temporary files as a - * string. - * @since v0.9.9 - */ - function tmpdir(): string; - /** - * Returns a string identifying the endianness of the CPU for which the Node.js - * binary was compiled. - * - * Possible values are `'BE'` for big endian and `'LE'` for little endian. - * @since v0.9.4 - */ - function endianness(): "BE" | "LE"; - /** - * Returns the scheduling priority for the process specified by `pid`. If `pid` is - * not provided or is `0`, the priority of the current process is returned. - * @since v10.10.0 - * @param [pid=0] The process ID to retrieve scheduling priority for. - */ - function getPriority(pid?: number): number; - /** - * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used. - * - * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows - * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range - * mapping may cause the return value to be slightly different on Windows. To avoid - * confusion, set `priority` to one of the priority constants. - * - * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user - * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`. - * @since v10.10.0 - * @param [pid=0] The process ID to set scheduling priority for. - * @param priority The scheduling priority to assign to the process. - */ - function setPriority(priority: number): void; - function setPriority(pid: number, priority: number): void; -} -declare module "node:os" { - export * from "os"; -} diff --git a/mcp-server/node_modules/@types/node/package.json b/mcp-server/node_modules/@types/node/package.json deleted file mode 100644 index 3af6fff..0000000 --- a/mcp-server/node_modules/@types/node/package.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "name": "@types/node", - "version": "20.19.27", - "description": "TypeScript definitions for node", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "githubUsername": "Microsoft", - "url": "https://github.com/Microsoft" - }, - { - "name": "Alberto Schiabel", - "githubUsername": "jkomyno", - "url": "https://github.com/jkomyno" - }, - { - "name": "Andrew Makarov", - "githubUsername": "r3nya", - "url": "https://github.com/r3nya" - }, - { - "name": "Benjamin Toueg", - "githubUsername": "btoueg", - "url": "https://github.com/btoueg" - }, - { - "name": "David Junger", - "githubUsername": "touffy", - "url": "https://github.com/touffy" - }, - { - "name": "Mohsen Azimi", - "githubUsername": "mohsen1", - "url": "https://github.com/mohsen1" - }, - { - "name": "Nikita Galkin", - "githubUsername": "galkin", - "url": "https://github.com/galkin" - }, - { - "name": "Sebastian Silbermann", - "githubUsername": "eps1lon", - "url": "https://github.com/eps1lon" - }, - { - "name": "Wilco Bakker", - "githubUsername": "WilcoBakker", - "url": "https://github.com/WilcoBakker" - }, - { - "name": "Marcin Kopacz", - "githubUsername": "chyzwar", - "url": "https://github.com/chyzwar" - }, - { - "name": "Trivikram Kamat", - "githubUsername": "trivikr", - "url": "https://github.com/trivikr" - }, - { - "name": "Junxiao Shi", - "githubUsername": "yoursunny", - "url": "https://github.com/yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "githubUsername": "qwelias", - "url": "https://github.com/qwelias" - }, - { - "name": "ExE Boss", - "githubUsername": "ExE-Boss", - "url": "https://github.com/ExE-Boss" - }, - { - "name": "Piotr Błażejewicz", - "githubUsername": "peterblazejewicz", - "url": "https://github.com/peterblazejewicz" - }, - { - "name": "Anna Henningsen", - "githubUsername": "addaleax", - "url": "https://github.com/addaleax" - }, - { - "name": "Victor Perin", - "githubUsername": "victorperin", - "url": "https://github.com/victorperin" - }, - { - "name": "NodeJS Contributors", - "githubUsername": "NodeJS", - "url": "https://github.com/NodeJS" - }, - { - "name": "Linus Unnebäck", - "githubUsername": "LinusU", - "url": "https://github.com/LinusU" - }, - { - "name": "wafuwafu13", - "githubUsername": "wafuwafu13", - "url": "https://github.com/wafuwafu13" - }, - { - "name": "Matteo Collina", - "githubUsername": "mcollina", - "url": "https://github.com/mcollina" - }, - { - "name": "Dmitry Semigradsky", - "githubUsername": "Semigradsky", - "url": "https://github.com/Semigradsky" - } - ], - "main": "", - "types": "index.d.ts", - "typesVersions": { - "<=5.6": { - "*": [ - "ts5.6/*" - ] - } - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": { - "undici-types": "~6.21.0" - }, - "peerDependencies": {}, - "typesPublisherContentHash": "93de83e3adc7c983f95cd1ea65338fc0705267f2e83738d75488fe33f636fcd1", - "typeScriptVersion": "5.2" -} \ No newline at end of file diff --git a/mcp-server/node_modules/@types/node/path.d.ts b/mcp-server/node_modules/@types/node/path.d.ts deleted file mode 100644 index dd69692..0000000 --- a/mcp-server/node_modules/@types/node/path.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -declare module "path/posix" { - import path = require("path"); - export = path; -} -declare module "path/win32" { - import path = require("path"); - export = path; -} -/** - * The `node:path` module provides utilities for working with file and directory - * paths. It can be accessed using: - * - * ```js - * import path from 'node:path'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/path.js) - */ -declare module "path" { - namespace path { - /** - * A parsed path object generated by path.parse() or consumed by path.format(). - */ - interface ParsedPath { - /** - * The root of the path such as '/' or 'c:\' - */ - root: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base: string; - /** - * The file extension (if any) such as '.html' - */ - ext: string; - /** - * The file name without extension (if any) such as 'index' - */ - name: string; - } - interface FormatInputPathObject { - /** - * The root of the path such as '/' or 'c:\' - */ - root?: string | undefined; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir?: string | undefined; - /** - * The file name including extension (if any) such as 'index.html' - */ - base?: string | undefined; - /** - * The file extension (if any) such as '.html' - */ - ext?: string | undefined; - /** - * The file name without extension (if any) such as 'index' - */ - name?: string | undefined; - } - interface PlatformPath { - /** - * Normalize a string path, reducing '..' and '.' parts. - * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. If the path is a zero-length string, '.' is returned, representing the current working directory. - * - * @param path string path to normalize. - * @throws {TypeError} if `path` is not a string. - */ - normalize(path: string): string; - /** - * Join all arguments together and normalize the resulting path. - * - * @param paths paths to join. - * @throws {TypeError} if any of the path segments is not a string. - */ - join(...paths: string[]): string; - /** - * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. - * - * Starting from leftmost {from} parameter, resolves {to} to an absolute path. - * - * If {to} isn't already absolute, {from} arguments are prepended in right to left order, - * until an absolute path is found. If after using all {from} paths still no absolute path is found, - * the current working directory is used as well. The resulting path is normalized, - * and trailing slashes are removed unless the path gets resolved to the root directory. - * - * @param paths A sequence of paths or path segments. - * @throws {TypeError} if any of the arguments is not a string. - */ - resolve(...paths: string[]): string; - /** - * The `path.matchesGlob()` method determines if `path` matches the `pattern`. - * @param path The path to glob-match against. - * @param pattern The glob to check the path against. - * @returns Whether or not the `path` matched the `pattern`. - * @throws {TypeError} if `path` or `pattern` are not strings. - * @since v20.17.0 - */ - matchesGlob(path: string, pattern: string): boolean; - /** - * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. - * - * If the given {path} is a zero-length string, `false` will be returned. - * - * @param path path to test. - * @throws {TypeError} if `path` is not a string. - */ - isAbsolute(path: string): boolean; - /** - * Solve the relative path from {from} to {to} based on the current working directory. - * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. - * - * @throws {TypeError} if either `from` or `to` is not a string. - */ - relative(from: string, to: string): string; - /** - * Return the directory name of a path. Similar to the Unix dirname command. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - dirname(path: string): string; - /** - * Return the last portion of a path. Similar to the Unix basename command. - * Often used to extract the file name from a fully qualified path. - * - * @param path the path to evaluate. - * @param suffix optionally, an extension to remove from the result. - * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string. - */ - basename(path: string, suffix?: string): string; - /** - * Return the extension of the path, from the last '.' to end of string in the last portion of the path. - * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - extname(path: string): string; - /** - * The platform-specific file separator. '\\' or '/'. - */ - readonly sep: "\\" | "/"; - /** - * The platform-specific file delimiter. ';' or ':'. - */ - readonly delimiter: ";" | ":"; - /** - * Returns an object from a path string - the opposite of format(). - * - * @param path path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - parse(path: string): ParsedPath; - /** - * Returns a path string from an object - the opposite of parse(). - * - * @param pathObject path to evaluate. - */ - format(pathObject: FormatInputPathObject): string; - /** - * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. - * If path is not a string, path will be returned without modifications. - * This method is meaningful only on Windows system. - * On POSIX systems, the method is non-operational and always returns path without modifications. - */ - toNamespacedPath(path: string): string; - /** - * Posix specific pathing. - * Same as parent object on posix. - */ - readonly posix: PlatformPath; - /** - * Windows specific pathing. - * Same as parent object on windows - */ - readonly win32: PlatformPath; - } - } - const path: path.PlatformPath; - export = path; -} -declare module "node:path" { - import path = require("path"); - export = path; -} -declare module "node:path/posix" { - import path = require("path/posix"); - export = path; -} -declare module "node:path/win32" { - import path = require("path/win32"); - export = path; -} diff --git a/mcp-server/node_modules/@types/node/perf_hooks.d.ts b/mcp-server/node_modules/@types/node/perf_hooks.d.ts deleted file mode 100644 index 730af9b..0000000 --- a/mcp-server/node_modules/@types/node/perf_hooks.d.ts +++ /dev/null @@ -1,961 +0,0 @@ -/** - * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for - * Node.js-specific performance measurements. - * - * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): - * - * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) - * * [Performance Timeline](https://w3c.github.io/performance-timeline/) - * * [User Timing](https://www.w3.org/TR/user-timing/) - * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/) - * - * ```js - * import { PerformanceObserver, performance } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((items) => { - * console.log(items.getEntries()[0].duration); - * performance.clearMarks(); - * }); - * obs.observe({ type: 'measure' }); - * performance.measure('Start to Now'); - * - * performance.mark('A'); - * doSomeLongRunningProcess(() => { - * performance.measure('A to Now', 'A'); - * - * performance.mark('B'); - * performance.measure('A to B', 'A', 'B'); - * }); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/perf_hooks.js) - */ -declare module "perf_hooks" { - import { AsyncResource } from "node:async_hooks"; - type EntryType = - | "dns" // Node.js only - | "function" // Node.js only - | "gc" // Node.js only - | "http2" // Node.js only - | "http" // Node.js only - | "mark" // available on the Web - | "measure" // available on the Web - | "net" // Node.js only - | "node" // Node.js only - | "resource"; // available on the Web - interface NodeGCPerformanceDetail { - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies - * the type of garbage collection operation that occurred. - * See perf_hooks.constants for valid values. - */ - readonly kind: number; - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` - * property contains additional information about garbage collection operation. - * See perf_hooks.constants for valid values. - */ - readonly flags: number; - } - /** - * The constructor of this class is not exposed to users directly. - * @since v8.5.0 - */ - class PerformanceEntry { - protected constructor(); - /** - * The total number of milliseconds elapsed for this entry. This value will not - * be meaningful for all Performance Entry types. - * @since v8.5.0 - */ - readonly duration: number; - /** - * The name of the performance entry. - * @since v8.5.0 - */ - readonly name: string; - /** - * The high resolution millisecond timestamp marking the starting time of the - * Performance Entry. - * @since v8.5.0 - */ - readonly startTime: number; - /** - * The type of the performance entry. It may be one of: - * - * * `'node'` (Node.js only) - * * `'mark'` (available on the Web) - * * `'measure'` (available on the Web) - * * `'gc'` (Node.js only) - * * `'function'` (Node.js only) - * * `'http2'` (Node.js only) - * * `'http'` (Node.js only) - * @since v8.5.0 - */ - readonly entryType: EntryType; - toJSON(): any; - } - /** - * Exposes marks created via the `Performance.mark()` method. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMark extends PerformanceEntry { - readonly detail: any; - readonly duration: 0; - readonly entryType: "mark"; - } - /** - * Exposes measures created via the `Performance.measure()` method. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMeasure extends PerformanceEntry { - readonly detail: any; - readonly entryType: "measure"; - } - interface UVMetrics { - /** - * Number of event loop iterations. - */ - readonly loopCount: number; - /** - * Number of events that have been processed by the event handler. - */ - readonly events: number; - /** - * Number of events that were waiting to be processed when the event provider was called. - */ - readonly eventsWaiting: number; - } - // TODO: PerformanceNodeEntry is missing - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Provides timing details for Node.js itself. The constructor of this class - * is not exposed to users. - * @since v8.5.0 - */ - class PerformanceNodeTiming extends PerformanceEntry { - /** - * The high resolution millisecond timestamp at which the Node.js process - * completed bootstrapping. If bootstrapping has not yet finished, the property - * has the value of -1. - * @since v8.5.0 - */ - readonly bootstrapComplete: number; - /** - * The high resolution millisecond timestamp at which the Node.js environment was - * initialized. - * @since v8.5.0 - */ - readonly environment: number; - /** - * The high resolution millisecond timestamp of the amount of time the event loop - * has been idle within the event loop's event provider (e.g. `epoll_wait`). This - * does not take CPU usage into consideration. If the event loop has not yet - * started (e.g., in the first tick of the main script), the property has the - * value of 0. - * @since v14.10.0, v12.19.0 - */ - readonly idleTime: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * exited. If the event loop has not yet exited, the property has the value of -1\. - * It can only have a value of not -1 in a handler of the `'exit'` event. - * @since v8.5.0 - */ - readonly loopExit: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * started. If the event loop has not yet started (e.g., in the first tick of the - * main script), the property has the value of -1. - * @since v8.5.0 - */ - readonly loopStart: number; - /** - * The high resolution millisecond timestamp at which the Node.js process was initialized. - * @since v8.5.0 - */ - readonly nodeStart: number; - /** - * This is a wrapper to the `uv_metrics_info` function. - * It returns the current set of event loop metrics. - * - * It is recommended to use this property inside a function whose execution was - * scheduled using `setImmediate` to avoid collecting metrics before finishing all - * operations scheduled during the current loop iteration. - * @since v20.18.0 - */ - readonly uvMetricsInfo: UVMetrics; - /** - * The high resolution millisecond timestamp at which the V8 platform was - * initialized. - * @since v8.5.0 - */ - readonly v8Start: number; - } - interface EventLoopUtilization { - idle: number; - active: number; - utilization: number; - } - /** - * @param utilization1 The result of a previous call to `eventLoopUtilization()`. - * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`. - */ - type EventLoopUtilityFunction = ( - utilization1?: EventLoopUtilization, - utilization2?: EventLoopUtilization, - ) => EventLoopUtilization; - interface MarkOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown | undefined; - /** - * An optional timestamp to be used as the mark time. - * @default `performance.now()` - */ - startTime?: number | undefined; - } - interface MeasureOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown; - /** - * Duration between start and end times. - */ - duration?: number | undefined; - /** - * Timestamp to be used as the end time, or a string identifying a previously recorded mark. - */ - end?: number | string | undefined; - /** - * Timestamp to be used as the start time, or a string identifying a previously recorded mark. - */ - start?: number | string | undefined; - } - interface TimerifyOptions { - /** - * A histogram object created using `perf_hooks.createHistogram()` that will record runtime - * durations in nanoseconds. - */ - histogram?: RecordableHistogram | undefined; - } - interface Performance { - /** - * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline. - * If `name` is provided, removes only the named mark. - * @since v8.5.0 - */ - clearMarks(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline. - * If `name` is provided, removes only the named measure. - * @since v16.7.0 - */ - clearMeasures(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline. - * If `name` is provided, removes only the named resource. - * @since v18.2.0, v16.17.0 - */ - clearResourceTimings(name?: string): void; - /** - * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. - * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). - * No other CPU idle time is taken into consideration. - */ - eventLoopUtilization: EventLoopUtilityFunction; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`. - * If you are only interested in performance entries of certain types or that have certain names, see - * `performance.getEntriesByType()` and `performance.getEntriesByName()`. - * @since v16.7.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`. - * @param name - * @param type - * @since v16.7.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.entryType` is equal to `type`. - * @param type - * @since v16.7.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - /** - * Creates a new `PerformanceMark` entry in the Performance Timeline. - * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`, - * and whose `performanceEntry.duration` is always `0`. - * Performance marks are used to mark specific significant moments in the Performance Timeline. - * - * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with - * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is - * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`. - * @param name - */ - mark(name: string, options?: MarkOptions): PerformanceMark; - /** - * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline. - * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`. - * Performance resources are used to mark moments in the Resource Timeline. - * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info) - * @param requestedUrl The resource url - * @param initiatorType The initiator name, e.g: 'fetch' - * @param global - * @param cacheMode The cache mode must be an empty string ('') or 'local' - * @since v18.2.0, v16.17.0 - */ - markResourceTiming( - timingInfo: object, - requestedUrl: string, - initiatorType: string, - global: object, - cacheMode: "" | "local", - ): PerformanceResourceTiming; - /** - * Creates a new PerformanceMeasure entry in the Performance Timeline. - * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', - * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. - * - * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify - * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, - * then startMark is set to timeOrigin by default. - * - * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp - * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. - * @param name - * @param startMark - * @param endMark - * @return The PerformanceMeasure entry that was created - */ - measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure; - measure(name: string, options: MeasureOptions): PerformanceMeasure; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones. - * @since v8.5.0 - */ - readonly nodeTiming: PerformanceNodeTiming; - /** - * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process. - * @since v8.5.0 - */ - now(): number; - /** - * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects. - * - * By default the max buffer size is set to 250. - * @since v18.8.0 - */ - setResourceTimingBufferSize(maxSize: number): void; - /** - * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp - * at which the current `node` process began, measured in Unix time. - * @since v8.5.0 - */ - readonly timeOrigin: number; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Wraps a function within a new function that measures the running time of the wrapped function. - * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * function someFunction() { - * console.log('hello world'); - * } - * - * const wrapped = performance.timerify(someFunction); - * - * const obs = new PerformanceObserver((list) => { - * console.log(list.getEntries()[0].duration); - * - * performance.clearMarks(); - * performance.clearMeasures(); - * obs.disconnect(); - * }); - * obs.observe({ entryTypes: ['function'] }); - * - * // A performance timeline entry will be created - * wrapped(); - * ``` - * - * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported - * once the finally handler is invoked. - * @param fn - */ - timerify any>(fn: T, options?: TimerifyOptions): T; - /** - * An object which is JSON representation of the performance object. It is similar to - * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers. - * @since v16.1.0 - */ - toJSON(): any; - } - class PerformanceObserverEntryList { - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntries()); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 81.465639, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 81.860064, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is - * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByName('meow')); - * - * * [ - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 98.545991, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('nope')); // [] - * - * console.log(perfObserverList.getEntriesByName('test', 'mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 63.518931, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ entryTypes: ['mark', 'measure'] }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByType('mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 55.897834, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 56.350146, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - } - type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; - /** - * @since v8.5.0 - */ - class PerformanceObserver extends AsyncResource { - constructor(callback: PerformanceObserverCallback); - /** - * Disconnects the `PerformanceObserver` instance from all notifications. - * @since v8.5.0 - */ - disconnect(): void; - /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((list, observer) => { - * // Called once asynchronously. `list` contains three items. - * }); - * obs.observe({ type: 'mark' }); - * - * for (let n = 0; n < 3; n++) - * performance.mark(`test${n}`); - * ``` - * @since v8.5.0 - */ - observe( - options: - | { - entryTypes: readonly EntryType[]; - buffered?: boolean | undefined; - } - | { - type: EntryType; - buffered?: boolean | undefined; - }, - ): void; - /** - * @since v16.0.0 - * @returns Current list of entries stored in the performance observer, emptying it out. - */ - takeRecords(): PerformanceEntry[]; - } - /** - * Provides detailed network timing data regarding the loading of an application's resources. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceResourceTiming extends PerformanceEntry { - readonly entryType: "resource"; - protected constructor(); - /** - * The high resolution millisecond timestamp at immediately before dispatching the `fetch` - * request. If the resource is not intercepted by a worker the property will always return 0. - * @since v18.2.0, v16.17.0 - */ - readonly workerStart: number; - /** - * The high resolution millisecond timestamp that represents the start time of the fetch which - * initiates the redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectStart: number; - /** - * The high resolution millisecond timestamp that will be created immediately after receiving - * the last byte of the response of the last redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectEnd: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource. - * @since v18.2.0, v16.17.0 - */ - readonly fetchStart: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup - * for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after the Node.js finished - * the domain name lookup for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts to - * establish the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js finishes - * establishing the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts the - * handshake process to secure the current connection. - * @since v18.2.0, v16.17.0 - */ - readonly secureConnectionStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js receives the - * first byte of the response from the server. - * @since v18.2.0, v16.17.0 - */ - readonly requestStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js receives the - * last byte of the resource or immediately before the transport connection is closed, whichever comes first. - * @since v18.2.0, v16.17.0 - */ - readonly responseEnd: number; - /** - * A number representing the size (in octets) of the fetched resource. The size includes the response header - * fields plus the response payload body. - * @since v18.2.0, v16.17.0 - */ - readonly transferSize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly encodedBodySize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly decodedBodySize: number; - /** - * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object - * @since v18.2.0, v16.17.0 - */ - toJSON(): any; - } - namespace constants { - const NODE_PERFORMANCE_GC_MAJOR: number; - const NODE_PERFORMANCE_GC_MINOR: number; - const NODE_PERFORMANCE_GC_INCREMENTAL: number; - const NODE_PERFORMANCE_GC_WEAKCB: number; - const NODE_PERFORMANCE_GC_FLAGS_NO: number; - const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; - const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; - const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; - const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; - } - const performance: Performance; - interface EventLoopMonitorOptions { - /** - * The sampling rate in milliseconds. - * Must be greater than zero. - * @default 10 - */ - resolution?: number | undefined; - } - interface Histogram { - /** - * The number of samples recorded by the histogram. - * @since v17.4.0, v16.14.0 - */ - readonly count: number; - /** - * The number of samples recorded by the histogram. - * v17.4.0, v16.14.0 - */ - readonly countBigInt: bigint; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event - * loop delay threshold. - * @since v11.10.0 - */ - readonly exceeds: number; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold. - * @since v17.4.0, v16.14.0 - */ - readonly exceedsBigInt: bigint; - /** - * The maximum recorded event loop delay. - * @since v11.10.0 - */ - readonly max: number; - /** - * The maximum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly maxBigInt: number; - /** - * The mean of the recorded event loop delays. - * @since v11.10.0 - */ - readonly mean: number; - /** - * The minimum recorded event loop delay. - * @since v11.10.0 - */ - readonly min: number; - /** - * The minimum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly minBigInt: bigint; - /** - * Returns the value at the given percentile. - * @since v11.10.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentile(percentile: number): number; - /** - * Returns the value at the given percentile. - * @since v17.4.0, v16.14.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentileBigInt(percentile: number): bigint; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v11.10.0 - */ - readonly percentiles: Map; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v17.4.0, v16.14.0 - */ - readonly percentilesBigInt: Map; - /** - * Resets the collected histogram data. - * @since v11.10.0 - */ - reset(): void; - /** - * The standard deviation of the recorded event loop delays. - * @since v11.10.0 - */ - readonly stddev: number; - } - interface IntervalHistogram extends Histogram { - /** - * Enables the update interval timer. Returns `true` if the timer was - * started, `false` if it was already started. - * @since v11.10.0 - */ - enable(): boolean; - /** - * Disables the update interval timer. Returns `true` if the timer was - * stopped, `false` if it was already stopped. - * @since v11.10.0 - */ - disable(): boolean; - } - interface RecordableHistogram extends Histogram { - /** - * @since v15.9.0, v14.18.0 - * @param val The amount to record in the histogram. - */ - record(val: number | bigint): void; - /** - * Calculates the amount of time (in nanoseconds) that has passed since the - * previous call to `recordDelta()` and records that amount in the histogram. - * @since v15.9.0, v14.18.0 - */ - recordDelta(): void; - /** - * Adds the values from `other` to this histogram. - * @since v17.4.0, v16.14.0 - */ - add(other: RecordableHistogram): void; - } - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Creates an `IntervalHistogram` object that samples and reports the event loop - * delay over time. The delays will be reported in nanoseconds. - * - * Using a timer to detect approximate event loop delay works because the - * execution of timers is tied specifically to the lifecycle of the libuv - * event loop. That is, a delay in the loop will cause a delay in the execution - * of the timer, and those delays are specifically what this API is intended to - * detect. - * - * ```js - * import { monitorEventLoopDelay } from 'node:perf_hooks'; - * const h = monitorEventLoopDelay({ resolution: 20 }); - * h.enable(); - * // Do something. - * h.disable(); - * console.log(h.min); - * console.log(h.max); - * console.log(h.mean); - * console.log(h.stddev); - * console.log(h.percentiles); - * console.log(h.percentile(50)); - * console.log(h.percentile(99)); - * ``` - * @since v11.10.0 - */ - function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; - interface CreateHistogramOptions { - /** - * The minimum recordable value. Must be an integer value greater than 0. - * @default 1 - */ - lowest?: number | bigint | undefined; - /** - * The maximum recordable value. Must be an integer value greater than min. - * @default Number.MAX_SAFE_INTEGER - */ - highest?: number | bigint | undefined; - /** - * The number of accuracy digits. Must be a number between 1 and 5. - * @default 3 - */ - figures?: number | undefined; - } - /** - * Returns a `RecordableHistogram`. - * @since v15.9.0, v14.18.0 - */ - function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; - import { - performance as _performance, - PerformanceEntry as _PerformanceEntry, - PerformanceMark as _PerformanceMark, - PerformanceMeasure as _PerformanceMeasure, - PerformanceObserver as _PerformanceObserver, - PerformanceObserverEntryList as _PerformanceObserverEntryList, - PerformanceResourceTiming as _PerformanceResourceTiming, - } from "perf_hooks"; - global { - /** - * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry - * @since v19.0.0 - */ - var PerformanceEntry: typeof globalThis extends { - onmessage: any; - PerformanceEntry: infer T; - } ? T - : typeof _PerformanceEntry; - /** - * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark - * @since v19.0.0 - */ - var PerformanceMark: typeof globalThis extends { - onmessage: any; - PerformanceMark: infer T; - } ? T - : typeof _PerformanceMark; - /** - * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure - * @since v19.0.0 - */ - var PerformanceMeasure: typeof globalThis extends { - onmessage: any; - PerformanceMeasure: infer T; - } ? T - : typeof _PerformanceMeasure; - /** - * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver - * @since v19.0.0 - */ - var PerformanceObserver: typeof globalThis extends { - onmessage: any; - PerformanceObserver: infer T; - } ? T - : typeof _PerformanceObserver; - /** - * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist - * @since v19.0.0 - */ - var PerformanceObserverEntryList: typeof globalThis extends { - onmessage: any; - PerformanceObserverEntryList: infer T; - } ? T - : typeof _PerformanceObserverEntryList; - /** - * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming - * @since v19.0.0 - */ - var PerformanceResourceTiming: typeof globalThis extends { - onmessage: any; - PerformanceResourceTiming: infer T; - } ? T - : typeof _PerformanceResourceTiming; - /** - * `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance - * @since v16.0.0 - */ - var performance: typeof globalThis extends { - onmessage: any; - performance: infer T; - } ? T - : typeof _performance; - } -} -declare module "node:perf_hooks" { - export * from "perf_hooks"; -} diff --git a/mcp-server/node_modules/@types/node/process.d.ts b/mcp-server/node_modules/@types/node/process.d.ts deleted file mode 100644 index b4bf989..0000000 --- a/mcp-server/node_modules/@types/node/process.d.ts +++ /dev/null @@ -1,1957 +0,0 @@ -declare module "process" { - import { Control, MessageOptions, SendHandle } from "node:child_process"; - import { PathLike } from "node:fs"; - import * as tty from "node:tty"; - import { Worker } from "node:worker_threads"; - - interface BuiltInModule { - "assert": typeof import("assert"); - "node:assert": typeof import("node:assert"); - "assert/strict": typeof import("assert/strict"); - "node:assert/strict": typeof import("node:assert/strict"); - "async_hooks": typeof import("async_hooks"); - "node:async_hooks": typeof import("node:async_hooks"); - "buffer": typeof import("buffer"); - "node:buffer": typeof import("node:buffer"); - "child_process": typeof import("child_process"); - "node:child_process": typeof import("node:child_process"); - "cluster": typeof import("cluster"); - "node:cluster": typeof import("node:cluster"); - "console": typeof import("console"); - "node:console": typeof import("node:console"); - "constants": typeof import("constants"); - "node:constants": typeof import("node:constants"); - "crypto": typeof import("crypto"); - "node:crypto": typeof import("node:crypto"); - "dgram": typeof import("dgram"); - "node:dgram": typeof import("node:dgram"); - "diagnostics_channel": typeof import("diagnostics_channel"); - "node:diagnostics_channel": typeof import("node:diagnostics_channel"); - "dns": typeof import("dns"); - "node:dns": typeof import("node:dns"); - "dns/promises": typeof import("dns/promises"); - "node:dns/promises": typeof import("node:dns/promises"); - "domain": typeof import("domain"); - "node:domain": typeof import("node:domain"); - "events": typeof import("events"); - "node:events": typeof import("node:events"); - "fs": typeof import("fs"); - "node:fs": typeof import("node:fs"); - "fs/promises": typeof import("fs/promises"); - "node:fs/promises": typeof import("node:fs/promises"); - "http": typeof import("http"); - "node:http": typeof import("node:http"); - "http2": typeof import("http2"); - "node:http2": typeof import("node:http2"); - "https": typeof import("https"); - "node:https": typeof import("node:https"); - "inspector": typeof import("inspector"); - "node:inspector": typeof import("node:inspector"); - "inspector/promises": typeof import("inspector/promises"); - "node:inspector/promises": typeof import("node:inspector/promises"); - "module": typeof import("module"); - "node:module": typeof import("node:module"); - "net": typeof import("net"); - "node:net": typeof import("node:net"); - "os": typeof import("os"); - "node:os": typeof import("node:os"); - "path": typeof import("path"); - "node:path": typeof import("node:path"); - "path/posix": typeof import("path/posix"); - "node:path/posix": typeof import("node:path/posix"); - "path/win32": typeof import("path/win32"); - "node:path/win32": typeof import("node:path/win32"); - "perf_hooks": typeof import("perf_hooks"); - "node:perf_hooks": typeof import("node:perf_hooks"); - "process": typeof import("process"); - "node:process": typeof import("node:process"); - "punycode": typeof import("punycode"); - "node:punycode": typeof import("node:punycode"); - "querystring": typeof import("querystring"); - "node:querystring": typeof import("node:querystring"); - "readline": typeof import("readline"); - "node:readline": typeof import("node:readline"); - "readline/promises": typeof import("readline/promises"); - "node:readline/promises": typeof import("node:readline/promises"); - "repl": typeof import("repl"); - "node:repl": typeof import("node:repl"); - "node:sea": typeof import("node:sea"); - "stream": typeof import("stream"); - "node:stream": typeof import("node:stream"); - "stream/consumers": typeof import("stream/consumers"); - "node:stream/consumers": typeof import("node:stream/consumers"); - "stream/promises": typeof import("stream/promises"); - "node:stream/promises": typeof import("node:stream/promises"); - "stream/web": typeof import("stream/web"); - "node:stream/web": typeof import("node:stream/web"); - "string_decoder": typeof import("string_decoder"); - "node:string_decoder": typeof import("node:string_decoder"); - "node:test": typeof import("node:test"); - "node:test/reporters": typeof import("node:test/reporters"); - "timers": typeof import("timers"); - "node:timers": typeof import("node:timers"); - "timers/promises": typeof import("timers/promises"); - "node:timers/promises": typeof import("node:timers/promises"); - "tls": typeof import("tls"); - "node:tls": typeof import("node:tls"); - "trace_events": typeof import("trace_events"); - "node:trace_events": typeof import("node:trace_events"); - "tty": typeof import("tty"); - "node:tty": typeof import("node:tty"); - "url": typeof import("url"); - "node:url": typeof import("node:url"); - "util": typeof import("util"); - "node:util": typeof import("node:util"); - "sys": typeof import("util"); - "node:sys": typeof import("node:util"); - "util/types": typeof import("util/types"); - "node:util/types": typeof import("node:util/types"); - "v8": typeof import("v8"); - "node:v8": typeof import("node:v8"); - "vm": typeof import("vm"); - "node:vm": typeof import("node:vm"); - "wasi": typeof import("wasi"); - "node:wasi": typeof import("node:wasi"); - "worker_threads": typeof import("worker_threads"); - "node:worker_threads": typeof import("node:worker_threads"); - "zlib": typeof import("zlib"); - "node:zlib": typeof import("node:zlib"); - } - - global { - var process: NodeJS.Process; - namespace NodeJS { - // this namespace merge is here because these are specifically used - // as the type for process.stdin, process.stdout, and process.stderr. - // they can't live in tty.d.ts because we need to disambiguate the imported name. - interface ReadStream extends tty.ReadStream {} - interface WriteStream extends tty.WriteStream {} - interface MemoryUsageFn { - /** - * The `process.memoryUsage()` method iterate over each page to gather informations about memory - * usage which can be slow depending on the program memory allocations. - */ - (): MemoryUsage; - /** - * method returns an integer representing the Resident Set Size (RSS) in bytes. - */ - rss(): number; - } - interface MemoryUsage { - /** - * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the - * process, including all C++ and JavaScript objects and code. - */ - rss: number; - /** - * Refers to V8's memory usage. - */ - heapTotal: number; - /** - * Refers to V8's memory usage. - */ - heapUsed: number; - external: number; - /** - * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included - * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s - * may not be tracked in that case. - */ - arrayBuffers: number; - } - interface CpuUsage { - user: number; - system: number; - } - interface ProcessRelease { - name: string; - sourceUrl?: string | undefined; - headersUrl?: string | undefined; - libUrl?: string | undefined; - lts?: string | undefined; - } - interface ProcessFeatures { - /** - * A boolean value that is `true` if the current Node.js build is caching builtin modules. - * @since v12.0.0 - */ - readonly cached_builtins: boolean; - /** - * A boolean value that is `true` if the current Node.js build is a debug build. - * @since v0.5.5 - */ - readonly debug: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes the inspector. - * @since v11.10.0 - */ - readonly inspector: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for IPv6. - * @since v0.5.3 - */ - readonly ipv6: boolean; - /** - * A boolean value that is `true` if the current Node.js build supports - * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require). - * @since v20.19.0 - */ - readonly require_module: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for TLS. - * @since v0.5.3 - */ - readonly tls: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS. - * @since v4.8.0 - */ - readonly tls_alpn: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS. - * @since v0.11.13 - */ - readonly tls_ocsp: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. - * @since v0.5.3 - */ - readonly tls_sni: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for libuv. - * @since v0.5.3 - */ - readonly uv: boolean; - } - interface ProcessVersions extends Dict { - http_parser: string; - node: string; - v8: string; - ares: string; - uv: string; - zlib: string; - modules: string; - openssl: string; - } - type Platform = - | "aix" - | "android" - | "darwin" - | "freebsd" - | "haiku" - | "linux" - | "openbsd" - | "sunos" - | "win32" - | "cygwin" - | "netbsd"; - type Architecture = - | "arm" - | "arm64" - | "ia32" - | "loong64" - | "mips" - | "mipsel" - | "ppc" - | "ppc64" - | "riscv64" - | "s390" - | "s390x" - | "x64"; - type Signals = - | "SIGABRT" - | "SIGALRM" - | "SIGBUS" - | "SIGCHLD" - | "SIGCONT" - | "SIGFPE" - | "SIGHUP" - | "SIGILL" - | "SIGINT" - | "SIGIO" - | "SIGIOT" - | "SIGKILL" - | "SIGPIPE" - | "SIGPOLL" - | "SIGPROF" - | "SIGPWR" - | "SIGQUIT" - | "SIGSEGV" - | "SIGSTKFLT" - | "SIGSTOP" - | "SIGSYS" - | "SIGTERM" - | "SIGTRAP" - | "SIGTSTP" - | "SIGTTIN" - | "SIGTTOU" - | "SIGUNUSED" - | "SIGURG" - | "SIGUSR1" - | "SIGUSR2" - | "SIGVTALRM" - | "SIGWINCH" - | "SIGXCPU" - | "SIGXFSZ" - | "SIGBREAK" - | "SIGLOST" - | "SIGINFO"; - type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection"; - type MultipleResolveType = "resolve" | "reject"; - type BeforeExitListener = (code: number) => void; - type DisconnectListener = () => void; - type ExitListener = (code: number) => void; - type RejectionHandledListener = (promise: Promise) => void; - type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; - /** - * Most of the time the unhandledRejection will be an Error, but this should not be relied upon - * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error. - */ - type UnhandledRejectionListener = (reason: unknown, promise: Promise) => void; - type WarningListener = (warning: Error) => void; - type MessageListener = (message: unknown, sendHandle: SendHandle) => void; - type SignalsListener = (signal: Signals) => void; - type MultipleResolveListener = ( - type: MultipleResolveType, - promise: Promise, - value: unknown, - ) => void; - type WorkerListener = (worker: Worker) => void; - interface Socket extends ReadWriteStream { - isTTY?: true | undefined; - } - // Alias for compatibility - interface ProcessEnv extends Dict { - /** - * Can be used to change the default timezone at runtime - */ - TZ?: string | undefined; - } - interface HRTime { - /** - * This is the legacy version of {@link process.hrtime.bigint()} - * before bigint was introduced in JavaScript. - * - * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`, - * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision. - * - * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time. - * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown. - * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior. - * - * These times are relative to an arbitrary time in the past, - * and not related to the time of day and therefore not subject to clock drift. - * The primary use is for measuring performance between intervals: - * ```js - * const { hrtime } = require('node:process'); - * const NS_PER_SEC = 1e9; - * const time = hrtime(); - * // [ 1800216, 25 ] - * - * setTimeout(() => { - * const diff = hrtime(time); - * // [ 1, 552 ] - * - * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`); - * // Benchmark took 1000000552 nanoseconds - * }, 1000); - * ``` - * @since 0.7.6 - * @legacy Use {@link process.hrtime.bigint()} instead. - * @param time The result of a previous call to `process.hrtime()` - */ - (time?: [number, number]): [number, number]; - /** - * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`. - * - * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s. - * ```js - * import { hrtime } from 'node:process'; - * - * const start = hrtime.bigint(); - * // 191051479007711n - * - * setTimeout(() => { - * const end = hrtime.bigint(); - * // 191052633396993n - * - * console.log(`Benchmark took ${end - start} nanoseconds`); - * // Benchmark took 1154389282 nanoseconds - * }, 1000); - * ``` - * @since v10.7.0 - */ - bigint(): bigint; - } - interface ProcessPermission { - /** - * Verifies that the process is able to access the given scope and reference. - * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')` - * will check if the process has ALL file system read permissions. - * - * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders. - * - * The available scopes are: - * - * * `fs` - All File System - * * `fs.read` - File System read operations - * * `fs.write` - File System write operations - * * `child` - Child process spawning operations - * * `worker` - Worker thread spawning operation - * - * ```js - * // Check if the process has permission to read the README file - * process.permission.has('fs.read', './README.md'); - * // Check if the process has read permission operations - * process.permission.has('fs.read'); - * ``` - * @since v20.0.0 - */ - has(scope: string, reference?: string): boolean; - } - interface ProcessReport { - /** - * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems - * than the default multi-line format designed for human consumption. - * @since v13.12.0, v12.17.0 - */ - compact: boolean; - /** - * Directory where the report is written. - * The default value is the empty string, indicating that reports are written to the current - * working directory of the Node.js process. - */ - directory: string; - /** - * Filename where the report is written. If set to the empty string, the output filename will be comprised - * of a timestamp, PID, and sequence number. The default value is the empty string. - */ - filename: string; - /** - * Returns a JavaScript Object representation of a diagnostic report for the running process. - * The report's JavaScript stack trace is taken from `err`, if present. - */ - getReport(err?: Error): object; - /** - * If true, a diagnostic report is generated on fatal errors, - * such as out of memory errors or failed C++ assertions. - * @default false - */ - reportOnFatalError: boolean; - /** - * If true, a diagnostic report is generated when the process - * receives the signal specified by process.report.signal. - * @default false - */ - reportOnSignal: boolean; - /** - * If true, a diagnostic report is generated on uncaught exception. - * @default false - */ - reportOnUncaughtException: boolean; - /** - * The signal used to trigger the creation of a diagnostic report. - * @default 'SIGUSR2' - */ - signal: Signals; - /** - * Writes a diagnostic report to a file. If filename is not provided, the default filename - * includes the date, time, PID, and a sequence number. - * The report's JavaScript stack trace is taken from `err`, if present. - * - * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written - * to the stdout or stderr of the process respectively. - * @param fileName Name of the file where the report is written. - * This should be a relative path, that will be appended to the directory specified in - * `process.report.directory`, or the current working directory of the Node.js process, - * if unspecified. - * @param err A custom error used for reporting the JavaScript stack. - * @return Filename of the generated report. - */ - writeReport(fileName?: string, err?: Error): string; - writeReport(err?: Error): string; - } - interface ResourceUsage { - fsRead: number; - fsWrite: number; - involuntaryContextSwitches: number; - ipcReceived: number; - ipcSent: number; - majorPageFault: number; - maxRSS: number; - minorPageFault: number; - sharedMemorySize: number; - signalsCount: number; - swappedOut: number; - systemCPUTime: number; - unsharedDataSize: number; - unsharedStackSize: number; - userCPUTime: number; - voluntaryContextSwitches: number; - } - interface EmitWarningOptions { - /** - * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. - * - * @default 'Warning' - */ - type?: string | undefined; - /** - * A unique identifier for the warning instance being emitted. - */ - code?: string | undefined; - /** - * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. - * - * @default process.emitWarning - */ - ctor?: Function | undefined; - /** - * Additional text to include with the error. - */ - detail?: string | undefined; - } - interface ProcessConfig { - readonly target_defaults: { - readonly cflags: any[]; - readonly default_configuration: string; - readonly defines: string[]; - readonly include_dirs: string[]; - readonly libraries: string[]; - }; - readonly variables: { - readonly clang: number; - readonly host_arch: string; - readonly node_install_npm: boolean; - readonly node_install_waf: boolean; - readonly node_prefix: string; - readonly node_shared_openssl: boolean; - readonly node_shared_v8: boolean; - readonly node_shared_zlib: boolean; - readonly node_use_dtrace: boolean; - readonly node_use_etw: boolean; - readonly node_use_openssl: boolean; - readonly target_arch: string; - readonly v8_no_strict_aliasing: number; - readonly v8_use_snapshot: boolean; - readonly visibility: string; - }; - } - interface Process extends EventEmitter { - /** - * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is - * a `Writable` stream. - * - * For example, to copy `process.stdin` to `process.stdout`: - * - * ```js - * import { stdin, stdout } from 'node:process'; - * - * stdin.pipe(stdout); - * ``` - * - * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stdout: WriteStream & { - fd: 1; - }; - /** - * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is - * a `Writable` stream. - * - * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stderr: WriteStream & { - fd: 2; - }; - /** - * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is - * a `Readable` stream. - * - * For details of how to read from `stdin` see `readable.read()`. - * - * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that - * is compatible with scripts written for Node.js prior to v0.10\. - * For more information see `Stream compatibility`. - * - * In "old" streams mode the `stdin` stream is paused by default, so one - * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode. - */ - stdin: ReadStream & { - fd: 0; - }; - /** - * The `process.argv` property returns an array containing the command-line - * arguments passed when the Node.js process was launched. The first element will - * be {@link execPath}. See `process.argv0` if access to the original value - * of `argv[0]` is needed. The second element will be the path to the JavaScript - * file being executed. The remaining elements will be any additional command-line - * arguments. - * - * For example, assuming the following script for `process-args.js`: - * - * ```js - * import { argv } from 'node:process'; - * - * // print process.argv - * argv.forEach((val, index) => { - * console.log(`${index}: ${val}`); - * }); - * ``` - * - * Launching the Node.js process as: - * - * ```bash - * node process-args.js one two=three four - * ``` - * - * Would generate the output: - * - * ```text - * 0: /usr/local/bin/node - * 1: /Users/mjr/work/node/process-args.js - * 2: one - * 3: two=three - * 4: four - * ``` - * @since v0.1.27 - */ - argv: string[]; - /** - * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. - * - * ```console - * $ bash -c 'exec -a customArgv0 ./node' - * > process.argv[0] - * '/Volumes/code/external/node/out/Release/node' - * > process.argv0 - * 'customArgv0' - * ``` - * @since v6.4.0 - */ - argv0: string; - /** - * The `process.execArgv` property returns the set of Node.js-specific command-line - * options passed when the Node.js process was launched. These options do not - * appear in the array returned by the {@link argv} property, and do not - * include the Node.js executable, the name of the script, or any options following - * the script name. These options are useful in order to spawn child processes with - * the same execution environment as the parent. - * - * ```bash - * node --icu-data-dir=./foo --require ./bar.js script.js --version - * ``` - * - * Results in `process.execArgv`: - * - * ```js - * ["--icu-data-dir=./foo", "--require", "./bar.js"] - * ``` - * - * And `process.argv`: - * - * ```js - * ['/usr/local/bin/node', 'script.js', '--version'] - * ``` - * - * Refer to `Worker constructor` for the detailed behavior of worker - * threads with this property. - * @since v0.7.7 - */ - execArgv: string[]; - /** - * The `process.execPath` property returns the absolute pathname of the executable - * that started the Node.js process. Symbolic links, if any, are resolved. - * - * ```js - * '/usr/local/bin/node' - * ``` - * @since v0.1.100 - */ - execPath: string; - /** - * The `process.abort()` method causes the Node.js process to exit immediately and - * generate a core file. - * - * This feature is not available in `Worker` threads. - * @since v0.7.0 - */ - abort(): never; - /** - * The `process.chdir()` method changes the current working directory of the - * Node.js process or throws an exception if doing so fails (for instance, if - * the specified `directory` does not exist). - * - * ```js - * import { chdir, cwd } from 'node:process'; - * - * console.log(`Starting directory: ${cwd()}`); - * try { - * chdir('/tmp'); - * console.log(`New directory: ${cwd()}`); - * } catch (err) { - * console.error(`chdir: ${err}`); - * } - * ``` - * - * This feature is not available in `Worker` threads. - * @since v0.1.17 - */ - chdir(directory: string): void; - /** - * The `process.cwd()` method returns the current working directory of the Node.js - * process. - * - * ```js - * import { cwd } from 'node:process'; - * - * console.log(`Current directory: ${cwd()}`); - * ``` - * @since v0.1.8 - */ - cwd(): string; - /** - * The port used by the Node.js debugger when enabled. - * - * ```js - * import process from 'node:process'; - * - * process.debugPort = 5858; - * ``` - * @since v0.7.2 - */ - debugPort: number; - /** - * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and - * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()` - * unless there are specific reasons such as custom dlopen flags or loading from ES modules. - * - * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v20.x/api/os.html#dlopen-constants)` - * documentation for details. - * - * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon - * are then accessible via `module.exports`. - * - * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant. - * In this example the constant is assumed to be available. - * - * ```js - * import { dlopen } from 'node:process'; - * import { constants } from 'node:os'; - * import { fileURLToPath } from 'node:url'; - * - * const module = { exports: {} }; - * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)), - * constants.dlopen.RTLD_NOW); - * module.exports.foo(); - * ``` - */ - dlopen(module: object, filename: string, flags?: number): void; - /** - * The `process.emitWarning()` method can be used to emit custom or application - * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string. - * emitWarning('Something happened!'); - * // Emits: (node: 56338) Warning: Something happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string and a type. - * emitWarning('Something Happened!', 'CustomWarning'); - * // Emits: (node:56338) CustomWarning: Something Happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * emitWarning('Something happened!', 'CustomWarning', 'WARN001'); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ```js - * - * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler. - * - * ```js - * import process from 'node:process'; - * - * process.on('warning', (warning) => { - * console.warn(warning.name); // 'Warning' - * console.warn(warning.message); // 'Something happened!' - * console.warn(warning.code); // 'MY_WARNING' - * console.warn(warning.stack); // Stack trace - * console.warn(warning.detail); // 'This is some additional information' - * }); - * ``` - * - * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler - * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored): - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using an Error object. - * const myWarning = new Error('Something happened!'); - * // Use the Error name property to specify the type name - * myWarning.name = 'CustomWarning'; - * myWarning.code = 'WARN001'; - * - * emitWarning(myWarning); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ``` - * - * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object. - * - * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms. - * - * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`: - * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event. - * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed. - * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace. - * @since v8.0.0 - * @param warning The warning to emit. - */ - emitWarning(warning: string | Error, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; - emitWarning(warning: string | Error, options?: EmitWarningOptions): void; - /** - * The `process.env` property returns an object containing the user environment. - * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). - * - * An example of this object looks like: - * - * ```js - * { - * TERM: 'xterm-256color', - * SHELL: '/usr/local/bin/bash', - * USER: 'maciej', - * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', - * PWD: '/Users/maciej', - * EDITOR: 'vim', - * SHLVL: '1', - * HOME: '/Users/maciej', - * LOGNAME: 'maciej', - * _: '/usr/local/bin/node' - * } - * ``` - * - * It is possible to modify this object, but such modifications will not be - * reflected outside the Node.js process, or (unless explicitly requested) - * to other `Worker` threads. - * In other words, the following example would not work: - * - * ```bash - * node -e 'process.env.foo = "bar"' && echo $foo - * ``` - * - * While the following will: - * - * ```js - * import { env } from 'node:process'; - * - * env.foo = 'bar'; - * console.log(env.foo); - * ``` - * - * Assigning a property on `process.env` will implicitly convert the value - * to a string. **This behavior is deprecated.** Future versions of Node.js may - * throw an error when the value is not a string, number, or boolean. - * - * ```js - * import { env } from 'node:process'; - * - * env.test = null; - * console.log(env.test); - * // => 'null' - * env.test = undefined; - * console.log(env.test); - * // => 'undefined' - * ``` - * - * Use `delete` to delete a property from `process.env`. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * delete env.TEST; - * console.log(env.TEST); - * // => undefined - * ``` - * - * On Windows operating systems, environment variables are case-insensitive. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * console.log(env.test); - * // => 1 - * ``` - * - * Unless explicitly specified when creating a `Worker` instance, - * each `Worker` thread has its own copy of `process.env`, based on its - * parent thread's `process.env`, or whatever was specified as the `env` option - * to the `Worker` constructor. Changes to `process.env` will not be visible - * across `Worker` threads, and only the main thread can make changes that - * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner - * unlike the main thread. - * @since v0.1.27 - */ - env: ProcessEnv; - /** - * The `process.exit()` method instructs Node.js to terminate the process - * synchronously with an exit status of `code`. If `code` is omitted, exit uses - * either the 'success' code `0` or the value of `process.exitCode` if it has been - * set. Node.js will not terminate until all the `'exit'` event listeners are - * called. - * - * To exit with a 'failure' code: - * - * ```js - * import { exit } from 'node:process'; - * - * exit(1); - * ``` - * - * The shell that executed Node.js should see the exit code as `1`. - * - * Calling `process.exit()` will force the process to exit as quickly as possible - * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and `process.stderr`. - * - * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_ - * _work pending_ in the event loop. The `process.exitCode` property can be set to - * tell the process which exit code to use when the process exits gracefully. - * - * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being - * truncated and lost: - * - * ```js - * import { exit } from 'node:process'; - * - * // This is an example of what *not* to do: - * if (someConditionNotMet()) { - * printUsageToStdout(); - * exit(1); - * } - * ``` - * - * The reason this is problematic is because writes to `process.stdout` in Node.js - * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js - * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed. - * - * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding - * scheduling any additional work for the event loop: - * - * ```js - * import process from 'node:process'; - * - * // How to properly set the exit code while letting - * // the process exit gracefully. - * if (someConditionNotMet()) { - * printUsageToStdout(); - * process.exitCode = 1; - * } - * ``` - * - * If it is necessary to terminate the Node.js process due to an error condition, - * throwing an _uncaught_ error and allowing the process to terminate accordingly - * is safer than calling `process.exit()`. - * - * In `Worker` threads, this function stops the current thread rather - * than the current process. - * @since v0.1.13 - * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed. - */ - exit(code?: number | string | null): never; - /** - * A number which will be the process exit code, when the process either - * exits gracefully, or is exited via {@link exit} without specifying - * a code. - * - * Specifying a code to {@link exit} will override any - * previous setting of `process.exitCode`. - * @default undefined - * @since v0.11.8 - */ - exitCode: number | string | number | undefined; - /** - * The `process.getActiveResourcesInfo()` method returns an array of strings containing - * the types of the active resources that are currently keeping the event loop alive. - * - * ```js - * import { getActiveResourcesInfo } from 'node:process'; - * import { setTimeout } from 'node:timers'; - - * console.log('Before:', getActiveResourcesInfo()); - * setTimeout(() => {}, 1000); - * console.log('After:', getActiveResourcesInfo()); - * // Prints: - * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ] - * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ] - * ``` - * @since v17.3.0, v16.14.0 - */ - getActiveResourcesInfo(): string[]; - /** - * Provides a way to load built-in modules in a globally available function. - * @param id ID of the built-in module being requested. - * @since v20.16.0 - */ - getBuiltinModule(id: ID): BuiltInModule[ID]; - getBuiltinModule(id: string): object | undefined; - /** - * The `process.getgid()` method returns the numerical group identity of the - * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid) { - * console.log(`Current gid: ${process.getgid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.31 - */ - getgid?: () => number; - /** - * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a - * numeric ID or a group name - * string. If a group name is specified, this method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid && process.setgid) { - * console.log(`Current gid: ${process.getgid()}`); - * try { - * process.setgid(501); - * console.log(`New gid: ${process.getgid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.31 - * @param id The group name or ID - */ - setgid?: (id: number | string) => void; - /** - * The `process.getuid()` method returns the numeric user identity of the process. - * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid) { - * console.log(`Current uid: ${process.getuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.28 - */ - getuid?: () => number; - /** - * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a - * numeric ID or a username string. - * If a username is specified, the method blocks while resolving the associated - * numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid && process.setuid) { - * console.log(`Current uid: ${process.getuid()}`); - * try { - * process.setuid(501); - * console.log(`New uid: ${process.getuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.28 - */ - setuid?: (id: number | string) => void; - /** - * The `process.geteuid()` method returns the numerical effective user identity of - * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - geteuid?: () => number; - /** - * The `process.seteuid()` method sets the effective user identity of the process. - * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username - * string. If a username is specified, the method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid && process.seteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * try { - * process.seteuid(501); - * console.log(`New uid: ${process.geteuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A user name or ID - */ - seteuid?: (id: number | string) => void; - /** - * The `process.getegid()` method returns the numerical effective group identity - * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid) { - * console.log(`Current gid: ${process.getegid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - getegid?: () => number; - /** - * The `process.setegid()` method sets the effective group identity of the process. - * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group - * name string. If a group name is specified, this method blocks while resolving - * the associated a numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid && process.setegid) { - * console.log(`Current gid: ${process.getegid()}`); - * try { - * process.setegid(501); - * console.log(`New gid: ${process.getegid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A group name or ID - */ - setegid?: (id: number | string) => void; - /** - * The `process.getgroups()` method returns an array with the supplementary group - * IDs. POSIX leaves it unspecified if the effective group ID is included but - * Node.js ensures it always is. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups) { - * console.log(process.getgroups()); // [ 16, 21, 297 ] - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.9.4 - */ - getgroups?: () => number[]; - /** - * The `process.setgroups()` method sets the supplementary group IDs for the - * Node.js process. This is a privileged operation that requires the Node.js - * process to have `root` or the `CAP_SETGID` capability. - * - * The `groups` array can contain numeric group IDs, group names, or both. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups && process.setgroups) { - * try { - * process.setgroups([501]); - * console.log(process.getgroups()); // new groups - * } catch (err) { - * console.log(`Failed to set groups: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.9.4 - */ - setgroups?: (groups: ReadonlyArray) => void; - /** - * The `process.setUncaughtExceptionCaptureCallback()` function sets a function - * that will be invoked when an uncaught exception occurs, which will receive the - * exception value itself as its first argument. - * - * If such a function is set, the `'uncaughtException'` event will - * not be emitted. If `--abort-on-uncaught-exception` was passed from the - * command line or set through `v8.setFlagsFromString()`, the process will - * not abort. Actions configured to take place on exceptions such as report - * generations will be affected too - * - * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this - * method with a non-`null` argument while another capture function is set will - * throw an error. - * - * Using this function is mutually exclusive with using the deprecated `domain` built-in module. - * @since v9.3.0 - */ - setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; - /** - * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. - * @since v9.3.0 - */ - hasUncaughtExceptionCaptureCallback(): boolean; - /** - * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. - * @since v20.7.0 - * @experimental - */ - readonly sourceMapsEnabled: boolean; - /** - * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for - * stack traces. - * - * It provides same features as launching Node.js process with commandline options `--enable-source-maps`. - * - * Only source maps in JavaScript files that are loaded after source maps has been - * enabled will be parsed and loaded. - * @since v16.6.0, v14.18.0 - * @experimental - */ - setSourceMapsEnabled(value: boolean): void; - /** - * The `process.version` property contains the Node.js version string. - * - * ```js - * import { version } from 'node:process'; - * - * console.log(`Version: ${version}`); - * // Version: v14.8.0 - * ``` - * - * To get the version string without the prepended _v_, use`process.versions.node`. - * @since v0.1.3 - */ - readonly version: string; - /** - * The `process.versions` property returns an object listing the version strings of - * Node.js and its dependencies. `process.versions.modules` indicates the current - * ABI version, which is increased whenever a C++ API changes. Node.js will refuse - * to load modules that were compiled against a different module ABI version. - * - * ```js - * import { versions } from 'node:process'; - * - * console.log(versions); - * ``` - * - * Will generate an object similar to: - * - * ```console - * { node: '20.2.0', - * acorn: '8.8.2', - * ada: '2.4.0', - * ares: '1.19.0', - * base64: '0.5.0', - * brotli: '1.0.9', - * cjs_module_lexer: '1.2.2', - * cldr: '43.0', - * icu: '73.1', - * llhttp: '8.1.0', - * modules: '115', - * napi: '8', - * nghttp2: '1.52.0', - * nghttp3: '0.7.0', - * ngtcp2: '0.8.1', - * openssl: '3.0.8+quic', - * simdutf: '3.2.9', - * tz: '2023c', - * undici: '5.22.0', - * unicode: '15.0', - * uv: '1.44.2', - * uvwasi: '0.0.16', - * v8: '11.3.244.8-node.9', - * zlib: '1.2.13' } - * ``` - * @since v0.2.0 - */ - readonly versions: ProcessVersions; - /** - * The `process.config` property returns a frozen `Object` containing the - * JavaScript representation of the configure options used to compile the current - * Node.js executable. This is the same as the `config.gypi` file that was produced - * when running the `./configure` script. - * - * An example of the possible output looks like: - * - * ```js - * { - * target_defaults: - * { cflags: [], - * default_configuration: 'Release', - * defines: [], - * include_dirs: [], - * libraries: [] }, - * variables: - * { - * host_arch: 'x64', - * napi_build_version: 5, - * node_install_npm: 'true', - * node_prefix: '', - * node_shared_cares: 'false', - * node_shared_http_parser: 'false', - * node_shared_libuv: 'false', - * node_shared_zlib: 'false', - * node_use_openssl: 'true', - * node_shared_openssl: 'false', - * strict_aliasing: 'true', - * target_arch: 'x64', - * v8_use_snapshot: 1 - * } - * } - * ``` - * @since v0.7.7 - */ - readonly config: ProcessConfig; - /** - * The `process.kill()` method sends the `signal` to the process identified by`pid`. - * - * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. - * - * This method will throw an error if the target `pid` does not exist. As a special - * case, a signal of `0` can be used to test for the existence of a process. - * Windows platforms will throw an error if the `pid` is used to kill a process - * group. - * - * Even though the name of this function is `process.kill()`, it is really just a - * signal sender, like the `kill` system call. The signal sent may do something - * other than kill the target process. - * - * ```js - * import process, { kill } from 'node:process'; - * - * process.on('SIGHUP', () => { - * console.log('Got SIGHUP signal.'); - * }); - * - * setTimeout(() => { - * console.log('Exiting.'); - * process.exit(0); - * }, 100); - * - * kill(process.pid, 'SIGHUP'); - * ``` - * - * When `SIGUSR1` is received by a Node.js process, Node.js will start the - * debugger. See `Signal Events`. - * @since v0.0.6 - * @param pid A process ID - * @param [signal='SIGTERM'] The signal to send, either as a string or number. - */ - kill(pid: number, signal?: string | number): true; - /** - * Loads the environment configuration from a `.env` file into `process.env`. If - * the file is not found, error will be thrown. - * - * To load a specific .env file by specifying its path, use the following code: - * - * ```js - * import { loadEnvFile } from 'node:process'; - * - * loadEnvFile('./development.env') - * ``` - * @since v20.12.0 - * @param path The path to the .env file - */ - loadEnvFile(path?: PathLike): void; - /** - * The `process.pid` property returns the PID of the process. - * - * ```js - * import { pid } from 'node:process'; - * - * console.log(`This process is pid ${pid}`); - * ``` - * @since v0.1.15 - */ - readonly pid: number; - /** - * The `process.ppid` property returns the PID of the parent of the - * current process. - * - * ```js - * import { ppid } from 'node:process'; - * - * console.log(`The parent process is pid ${ppid}`); - * ``` - * @since v9.2.0, v8.10.0, v6.13.0 - */ - readonly ppid: number; - /** - * The `process.title` property returns the current process title (i.e. returns - * the current value of `ps`). Assigning a new value to `process.title` modifies - * the current value of `ps`. - * - * When a new value is assigned, different platforms will impose different maximum - * length restrictions on the title. Usually such restrictions are quite limited. - * For instance, on Linux and macOS, `process.title` is limited to the size of the - * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8 - * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure) - * cases. - * - * Assigning a value to `process.title` might not result in an accurate label - * within process manager applications such as macOS Activity Monitor or Windows - * Services Manager. - * @since v0.1.104 - */ - title: string; - /** - * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`. - * - * ```js - * import { arch } from 'node:process'; - * - * console.log(`This processor architecture is ${arch}`); - * ``` - * @since v0.5.0 - */ - readonly arch: Architecture; - /** - * The `process.platform` property returns a string identifying the operating - * system platform for which the Node.js binary was compiled. - * - * Currently possible values are: - * - * * `'aix'` - * * `'darwin'` - * * `'freebsd'` - * * `'linux'` - * * `'openbsd'` - * * `'sunos'` - * * `'win32'` - * - * ```js - * import { platform } from 'node:process'; - * - * console.log(`This platform is ${platform}`); - * ``` - * - * The value `'android'` may also be returned if the Node.js is built on the - * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.1.16 - */ - readonly platform: Platform; - /** - * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at - * runtime, `require.main` may still refer to the original main module in - * modules that were required before the change occurred. Generally, it's - * safe to assume that the two refer to the same module. - * - * As with `require.main`, `process.mainModule` will be `undefined` if there - * is no entry script. - * @since v0.1.17 - * @deprecated Since v14.0.0 - Use `main` instead. - */ - mainModule?: Module; - memoryUsage: MemoryUsageFn; - /** - * Gets the amount of memory available to the process (in bytes) based on - * limits imposed by the OS. If there is no such constraint, or the constraint - * is unknown, `0` is returned. - * - * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more - * information. - * @since v19.6.0, v18.15.0 - * @experimental - */ - constrainedMemory(): number; - /** - * Gets the amount of free memory that is still available to the process (in bytes). - * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v20.x/api/process.html#processavailablememory) for more information. - * @experimental - * @since v20.13.0 - */ - availableMemory(): number; - /** - * The `process.cpuUsage()` method returns the user and system CPU time usage of - * the current process, in an object with properties `user` and `system`, whose - * values are microsecond values (millionth of a second). These values measure time - * spent in user and system code respectively, and may end up being greater than - * actual elapsed time if multiple CPU cores are performing work for this process. - * - * The result of a previous call to `process.cpuUsage()` can be passed as the - * argument to the function, to get a diff reading. - * - * ```js - * import { cpuUsage } from 'node:process'; - * - * const startUsage = cpuUsage(); - * // { user: 38579, system: 6986 } - * - * // spin the CPU for 500 milliseconds - * const now = Date.now(); - * while (Date.now() - now < 500); - * - * console.log(cpuUsage(startUsage)); - * // { user: 514883, system: 11226 } - * ``` - * @since v6.1.0 - * @param previousValue A previous return value from calling `process.cpuUsage()` - */ - cpuUsage(previousValue?: CpuUsage): CpuUsage; - /** - * `process.nextTick()` adds `callback` to the "next tick queue". This queue is - * fully drained after the current operation on the JavaScript stack runs to - * completion and before the event loop is allowed to continue. It's possible to - * create an infinite loop if one were to recursively call `process.nextTick()`. - * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. - * - * ```js - * import { nextTick } from 'node:process'; - * - * console.log('start'); - * nextTick(() => { - * console.log('nextTick callback'); - * }); - * console.log('scheduled'); - * // Output: - * // start - * // scheduled - * // nextTick callback - * ``` - * - * This is important when developing APIs in order to give users the opportunity - * to assign event handlers _after_ an object has been constructed but before any - * I/O has occurred: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function MyThing(options) { - * this.setupOptions(options); - * - * nextTick(() => { - * this.startDoingStuff(); - * }); - * } - * - * const thing = new MyThing(); - * thing.getReadyForStuff(); - * - * // thing.startDoingStuff() gets called now, not before. - * ``` - * - * It is very important for APIs to be either 100% synchronous or 100% - * asynchronous. Consider this example: - * - * ```js - * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! - * function maybeSync(arg, cb) { - * if (arg) { - * cb(); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * - * This API is hazardous because in the following case: - * - * ```js - * const maybeTrue = Math.random() > 0.5; - * - * maybeSync(maybeTrue, () => { - * foo(); - * }); - * - * bar(); - * ``` - * - * It is not clear whether `foo()` or `bar()` will be called first. - * - * The following approach is much better: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function definitelyAsync(arg, cb) { - * if (arg) { - * nextTick(cb); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * @since v0.1.26 - * @param args Additional arguments to pass when invoking the `callback` - */ - nextTick(callback: Function, ...args: any[]): void; - /** - * The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process. - * See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior. - */ - noDeprecation?: boolean; - /** - * This API is available through the [--experimental-permission](https://nodejs.org/api/cli.html#--experimental-permission) flag. - * - * `process.permission` is an object whose methods are used to manage permissions for the current process. - * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model). - * @since v20.0.0 - */ - permission: ProcessPermission; - /** - * The `process.release` property returns an `Object` containing metadata related - * to the current release, including URLs for the source tarball and headers-only - * tarball. - * - * `process.release` contains the following properties: - * - * ```js - * { - * name: 'node', - * lts: 'Hydrogen', - * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz', - * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz', - * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib' - * } - * ``` - * - * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be - * relied upon to exist. - * @since v3.0.0 - */ - readonly release: ProcessRelease; - readonly features: ProcessFeatures; - /** - * `process.umask()` returns the Node.js process's file mode creation mask. Child - * processes inherit the mask from the parent process. - * @since v0.1.19 - * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential - * security vulnerability. There is no safe, cross-platform alternative API. - */ - umask(): number; - /** - * Can only be set if not in worker thread. - */ - umask(mask: string | number): number; - /** - * The `process.uptime()` method returns the number of seconds the current Node.js - * process has been running. - * - * The return value includes fractions of a second. Use `Math.floor()` to get whole - * seconds. - * @since v0.5.0 - */ - uptime(): number; - hrtime: HRTime; - /** - * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. - * If no IPC channel exists, this property is undefined. - * @since v7.1.0 - */ - channel?: Control; - /** - * If Node.js is spawned with an IPC channel, the `process.send()` method can be - * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. - * - * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`. - * - * The message goes through serialization and parsing. The resulting message might - * not be the same as what is originally sent. - * @since v0.5.9 - * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send?( - message: any, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the - * IPC channel to the parent process, allowing the child process to exit gracefully - * once there are no other connections keeping it alive. - * - * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. - * - * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`. - * @since v0.7.2 - */ - disconnect(): void; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC - * channel is connected and will return `false` after `process.disconnect()` is called. - * - * Once `process.connected` is `false`, it is no longer possible to send messages - * over the IPC channel using `process.send()`. - * @since v0.7.2 - */ - connected: boolean; - /** - * The `process.allowedNodeEnvironmentFlags` property is a special, - * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. - * - * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag - * representations. `process.allowedNodeEnvironmentFlags.has()` will - * return `true` in the following cases: - * - * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`. - * * Flags passed through to V8 (as listed in `--v8-options`) may replace - * one or more _non-leading_ dashes for an underscore, or vice-versa; - * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, - * etc. - * * Flags may contain one or more equals (`=`) characters; all - * characters after and including the first equals will be ignored; - * e.g., `--stack-trace-limit=100`. - * * Flags _must_ be allowable within `NODE_OPTIONS`. - * - * When iterating over `process.allowedNodeEnvironmentFlags`, flags will - * appear only _once_; each will begin with one or more dashes. Flags - * passed through to V8 will contain underscores instead of non-leading - * dashes: - * - * ```js - * import { allowedNodeEnvironmentFlags } from 'node:process'; - * - * allowedNodeEnvironmentFlags.forEach((flag) => { - * // -r - * // --inspect-brk - * // --abort_on_uncaught_exception - * // ... - * }); - * ``` - * - * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail - * silently. - * - * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will - * contain what _would have_ been allowable. - * @since v10.10.0 - */ - allowedNodeEnvironmentFlags: ReadonlySet; - /** - * `process.report` is an object whose methods are used to generate diagnostic reports for the current process. - * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v20.x/api/report.html). - * @since v11.8.0 - */ - report: ProcessReport; - /** - * ```js - * import { resourceUsage } from 'node:process'; - * - * console.log(resourceUsage()); - * /* - * Will output: - * { - * userCPUTime: 82872, - * systemCPUTime: 4143, - * maxRSS: 33164, - * sharedMemorySize: 0, - * unsharedDataSize: 0, - * unsharedStackSize: 0, - * minorPageFault: 2469, - * majorPageFault: 0, - * swappedOut: 0, - * fsRead: 0, - * fsWrite: 8, - * ipcSent: 0, - * ipcReceived: 0, - * signalsCount: 0, - * voluntaryContextSwitches: 79, - * involuntaryContextSwitches: 1 - * } - * - * ``` - * @since v12.6.0 - * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. - */ - resourceUsage(): ResourceUsage; - /** - * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation` - * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning() - * method for more information. - * - * ```bash - * $ node --throw-deprecation -p "process.throwDeprecation" - * true - * $ node -p "process.throwDeprecation" - * undefined - * $ node - * > process.emitWarning('test', 'DeprecationWarning'); - * undefined - * > (node:26598) DeprecationWarning: test - * > process.throwDeprecation = true; - * true - * > process.emitWarning('test', 'DeprecationWarning'); - * Thrown: - * [DeprecationWarning: test] { name: 'DeprecationWarning' } - * ``` - * @since v0.9.12 - */ - throwDeprecation: boolean; - /** - * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the - * documentation for the `'warning' event` and the `emitWarning() method` for more information about this - * flag's behavior. - * @since v0.8.0 - */ - traceDeprecation: boolean; - /* EventEmitter */ - addListener(event: "beforeExit", listener: BeforeExitListener): this; - addListener(event: "disconnect", listener: DisconnectListener): this; - addListener(event: "exit", listener: ExitListener): this; - addListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - addListener(event: "warning", listener: WarningListener): this; - addListener(event: "message", listener: MessageListener): this; - addListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - addListener(event: Signals, listener: SignalsListener): this; - addListener(event: "multipleResolves", listener: MultipleResolveListener): this; - addListener(event: "worker", listener: WorkerListener): this; - emit(event: "beforeExit", code: number): boolean; - emit(event: "disconnect"): boolean; - emit(event: "exit", code: number): boolean; - emit(event: "rejectionHandled", promise: Promise): boolean; - emit(event: "uncaughtException", error: Error): boolean; - emit(event: "uncaughtExceptionMonitor", error: Error): boolean; - emit(event: "unhandledRejection", reason: unknown, promise: Promise): boolean; - emit(event: "warning", warning: Error): boolean; - emit(event: "message", message: unknown, sendHandle: SendHandle): this; - emit(event: "workerMessage", value: any, source: number): this; - emit(event: Signals, signal?: Signals): boolean; - emit( - event: "multipleResolves", - type: MultipleResolveType, - promise: Promise, - value: unknown, - ): this; - emit(event: "worker", listener: WorkerListener): this; - on(event: "beforeExit", listener: BeforeExitListener): this; - on(event: "disconnect", listener: DisconnectListener): this; - on(event: "exit", listener: ExitListener): this; - on(event: "rejectionHandled", listener: RejectionHandledListener): this; - on(event: "uncaughtException", listener: UncaughtExceptionListener): this; - on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - on(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - on(event: "warning", listener: WarningListener): this; - on(event: "message", listener: MessageListener): this; - on(event: "workerMessage", listener: (value: any, source: number) => void): this; - on(event: Signals, listener: SignalsListener): this; - on(event: "multipleResolves", listener: MultipleResolveListener): this; - on(event: "worker", listener: WorkerListener): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "beforeExit", listener: BeforeExitListener): this; - once(event: "disconnect", listener: DisconnectListener): this; - once(event: "exit", listener: ExitListener): this; - once(event: "rejectionHandled", listener: RejectionHandledListener): this; - once(event: "uncaughtException", listener: UncaughtExceptionListener): this; - once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - once(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - once(event: "warning", listener: WarningListener): this; - once(event: "message", listener: MessageListener): this; - once(event: "workerMessage", listener: (value: any, source: number) => void): this; - once(event: Signals, listener: SignalsListener): this; - once(event: "multipleResolves", listener: MultipleResolveListener): this; - once(event: "worker", listener: WorkerListener): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "beforeExit", listener: BeforeExitListener): this; - prependListener(event: "disconnect", listener: DisconnectListener): this; - prependListener(event: "exit", listener: ExitListener): this; - prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependListener(event: "warning", listener: WarningListener): this; - prependListener(event: "message", listener: MessageListener): this; - prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependListener(event: Signals, listener: SignalsListener): this; - prependListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependListener(event: "worker", listener: WorkerListener): this; - prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this; - prependOnceListener(event: "disconnect", listener: DisconnectListener): this; - prependOnceListener(event: "exit", listener: ExitListener): this; - prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependOnceListener(event: "warning", listener: WarningListener): this; - prependOnceListener(event: "message", listener: MessageListener): this; - prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependOnceListener(event: Signals, listener: SignalsListener): this; - prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependOnceListener(event: "worker", listener: WorkerListener): this; - listeners(event: "beforeExit"): BeforeExitListener[]; - listeners(event: "disconnect"): DisconnectListener[]; - listeners(event: "exit"): ExitListener[]; - listeners(event: "rejectionHandled"): RejectionHandledListener[]; - listeners(event: "uncaughtException"): UncaughtExceptionListener[]; - listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[]; - listeners(event: "unhandledRejection"): UnhandledRejectionListener[]; - listeners(event: "warning"): WarningListener[]; - listeners(event: "message"): MessageListener[]; - listeners(event: "workerMessage"): ((value: any, source: number) => void)[]; - listeners(event: Signals): SignalsListener[]; - listeners(event: "multipleResolves"): MultipleResolveListener[]; - listeners(event: "worker"): WorkerListener[]; - } - } - } - export = process; -} -declare module "node:process" { - import process = require("process"); - export = process; -} diff --git a/mcp-server/node_modules/@types/node/punycode.d.ts b/mcp-server/node_modules/@types/node/punycode.d.ts deleted file mode 100644 index 394d611..0000000 --- a/mcp-server/node_modules/@types/node/punycode.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users - * currently depending on the `punycode` module should switch to using the - * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL - * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. - * - * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It - * can be accessed using: - * - * ```js - * import punycode from 'node:punycode'; - * ``` - * - * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is - * primarily intended for use in Internationalized Domain Names. Because host - * names in URLs are limited to ASCII characters only, Domain Names that contain - * non-ASCII characters must be converted into ASCII using the Punycode scheme. - * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent - * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`. - * - * The `punycode` module provides a simple implementation of the Punycode standard. - * - * The `punycode` module is a third-party dependency used by Node.js and - * made available to developers as a convenience. Fixes or other modifications to - * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. - * @deprecated Since v7.0.0 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/punycode.js) - */ -declare module "punycode" { - /** - * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only - * characters to the equivalent string of Unicode codepoints. - * - * ```js - * punycode.decode('maana-pta'); // 'mañana' - * punycode.decode('--dqo34k'); // '☃-⌘' - * ``` - * @since v0.5.1 - */ - function decode(string: string): string; - /** - * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. - * - * ```js - * punycode.encode('mañana'); // 'maana-pta' - * punycode.encode('☃-⌘'); // '--dqo34k' - * ``` - * @since v0.5.1 - */ - function encode(string: string): string; - /** - * The `punycode.toUnicode()` method converts a string representing a domain name - * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be - * converted. - * - * ```js - * // decode domain names - * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' - * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' - * punycode.toUnicode('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toUnicode(domain: string): string; - /** - * The `punycode.toASCII()` method converts a Unicode string representing an - * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the - * domain name will be converted. Calling `punycode.toASCII()` on a string that - * already only contains ASCII characters will have no effect. - * - * ```js - * // encode domain names - * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' - * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' - * punycode.toASCII('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toASCII(domain: string): string; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const ucs2: ucs2; - interface ucs2 { - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - decode(string: string): number[]; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - encode(codePoints: readonly number[]): string; - } - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const version: string; -} -declare module "node:punycode" { - export * from "punycode"; -} diff --git a/mcp-server/node_modules/@types/node/querystring.d.ts b/mcp-server/node_modules/@types/node/querystring.d.ts deleted file mode 100644 index 27eaed2..0000000 --- a/mcp-server/node_modules/@types/node/querystring.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * The `node:querystring` module provides utilities for parsing and formatting URL - * query strings. It can be accessed using: - * - * ```js - * import querystring from 'node:querystring'; - * ``` - * - * `querystring` is more performant than `URLSearchParams` but is not a - * standardized API. Use `URLSearchParams` when performance is not critical or - * when compatibility with browser code is desirable. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/querystring.js) - */ -declare module "querystring" { - interface StringifyOptions { - /** - * The function to use when converting URL-unsafe characters to percent-encoding in the query string. - * @default `querystring.escape()` - */ - encodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParseOptions { - /** - * Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations. - * @default 1000 - */ - maxKeys?: number | undefined; - /** - * The function to use when decoding percent-encoded characters in the query string. - * @default `querystring.unescape()` - */ - decodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParsedUrlQuery extends NodeJS.Dict {} - interface ParsedUrlQueryInput extends - NodeJS.Dict< - | string - | number - | boolean - | bigint - | ReadonlyArray - | null - > - {} - /** - * The `querystring.stringify()` method produces a URL query string from a - * given `obj` by iterating through the object's "own properties". - * - * It serializes the following types of values passed in `obj`: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | - * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to - * empty strings. - * - * ```js - * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); - * // Returns 'foo=bar&baz=qux&baz=quux&corge=' - * - * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); - * // Returns 'foo:bar;baz:qux' - * ``` - * - * By default, characters requiring percent-encoding within the query string will - * be encoded as UTF-8\. If an alternative encoding is required, then an alternative `encodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkEncodeURIComponent function already exists, - * - * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, - * { encodeURIComponent: gbkEncodeURIComponent }); - * ``` - * @since v0.1.25 - * @param obj The object to serialize into a URL query string - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] . The substring used to delimit keys and values in the query string. - */ - function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; - /** - * The `querystring.parse()` method parses a URL query string (`str`) into a - * collection of key and value pairs. - * - * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: - * - * ```json - * { - * "foo": "bar", - * "abc": ["xyz", "123"] - * } - * ``` - * - * The object returned by the `querystring.parse()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * By default, percent-encoded characters within the query string will be assumed - * to use UTF-8 encoding. If an alternative character encoding is used, then an - * alternative `decodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkDecodeURIComponent function already exists... - * - * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, - * { decodeURIComponent: gbkDecodeURIComponent }); - * ``` - * @since v0.1.25 - * @param str The URL query string to parse - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] The substring used to delimit keys and values in the query string. - */ - function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; - /** - * The querystring.encode() function is an alias for querystring.stringify(). - */ - const encode: typeof stringify; - /** - * The querystring.decode() function is an alias for querystring.parse(). - */ - const decode: typeof parse; - /** - * The `querystring.escape()` method performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL - * query strings. - * - * The `querystring.escape()` method is used by `querystring.stringify()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement percent-encoding implementation if - * necessary by assigning `querystring.escape` to an alternative function. - * @since v0.1.25 - */ - function escape(str: string): string; - /** - * The `querystring.unescape()` method performs decoding of URL percent-encoded - * characters on the given `str`. - * - * The `querystring.unescape()` method is used by `querystring.parse()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement decoding implementation if - * necessary by assigning `querystring.unescape` to an alternative function. - * - * By default, the `querystring.unescape()` method will attempt to use the - * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, - * a safer equivalent that does not throw on malformed URLs will be used. - * @since v0.1.25 - */ - function unescape(str: string): string; -} -declare module "node:querystring" { - export * from "querystring"; -} diff --git a/mcp-server/node_modules/@types/node/readline.d.ts b/mcp-server/node_modules/@types/node/readline.d.ts deleted file mode 100644 index 1504c26..0000000 --- a/mcp-server/node_modules/@types/node/readline.d.ts +++ /dev/null @@ -1,589 +0,0 @@ -/** - * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream - * (such as [`process.stdin`](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time. - * - * To use the promise-based APIs: - * - * ```js - * import * as readline from 'node:readline/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as readline from 'node:readline'; - * ``` - * - * The following simple example illustrates the basic use of the `node:readline` module. - * - * ```js - * import * as readline from 'node:readline/promises'; - * import { stdin as input, stdout as output } from 'node:process'; - * - * const rl = readline.createInterface({ input, output }); - * - * const answer = await rl.question('What do you think of Node.js? '); - * - * console.log(`Thank you for your valuable feedback: ${answer}`); - * - * rl.close(); - * ``` - * - * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be - * received on the `input` stream. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/readline.js) - */ -declare module "readline" { - import { Abortable, EventEmitter } from "node:events"; - import * as promises from "node:readline/promises"; - export { promises }; - export interface Key { - sequence?: string | undefined; - name?: string | undefined; - ctrl?: boolean | undefined; - meta?: boolean | undefined; - shift?: boolean | undefined; - } - /** - * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a - * single `input` [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v0.1.104 - */ - export class Interface extends EventEmitter { - readonly terminal: boolean; - /** - * The current input data being processed by node. - * - * This can be used when collecting input from a TTY stream to retrieve the - * current value that has been processed thus far, prior to the `line` event - * being emitted. Once the `line` event has been emitted, this property will - * be an empty string. - * - * Be aware that modifying the value during the instance runtime may have - * unintended consequences if `rl.cursor` is not also controlled. - * - * **If not using a TTY stream for input, use the `'line'` event.** - * - * One possible use case would be as follows: - * - * ```js - * const values = ['lorem ipsum', 'dolor sit amet']; - * const rl = readline.createInterface(process.stdin); - * const showResults = debounce(() => { - * console.log( - * '\n', - * values.filter((val) => val.startsWith(rl.line)).join(' '), - * ); - * }, 300); - * process.stdin.on('keypress', (c, k) => { - * showResults(); - * }); - * ``` - * @since v0.1.98 - */ - readonly line: string; - /** - * The cursor position relative to `rl.line`. - * - * This will track where the current cursor lands in the input string, when - * reading input from a TTY stream. The position of cursor determines the - * portion of the input string that will be modified as input is processed, - * as well as the column where the terminal caret will be rendered. - * @since v0.1.98 - */ - readonly cursor: number; - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor - */ - protected constructor( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ); - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor - */ - protected constructor(options: ReadLineOptions); - /** - * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. - * @since v15.3.0, v14.17.0 - * @return the current prompt string - */ - getPrompt(): string; - /** - * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called. - * @since v0.1.98 - */ - setPrompt(prompt: string): void; - /** - * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new - * location at which to provide input. - * - * When called, `rl.prompt()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written. - * @since v0.1.98 - * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. - */ - prompt(preserveCursor?: boolean): void; - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * The `callback` function passed to `rl.question()` does not follow the typical - * pattern of accepting an `Error` object or `null` as the first argument. - * The `callback` is called with the provided answer as the only argument. - * - * An error will be thrown if calling `rl.question()` after `rl.close()`. - * - * Example usage: - * - * ```js - * rl.question('What is your favorite food? ', (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * ``` - * - * Using an `AbortController` to cancel a question. - * - * ```js - * const ac = new AbortController(); - * const signal = ac.signal; - * - * rl.question('What is your favorite food? ', { signal }, (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * setTimeout(() => ac.abort(), 10000); - * ``` - * @since v0.3.3 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @param callback A callback function that is invoked with the user's input in response to the `query`. - */ - question(query: string, callback: (answer: string) => void): void; - question(query: string, options: Abortable, callback: (answer: string) => void): void; - /** - * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed - * later if necessary. - * - * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance. - * @since v0.3.4 - */ - pause(): this; - /** - * The `rl.resume()` method resumes the `input` stream if it has been paused. - * @since v0.3.4 - */ - resume(): this; - /** - * The `rl.close()` method closes the `Interface` instance and - * relinquishes control over the `input` and `output` streams. When called, - * the `'close'` event will be emitted. - * - * Calling `rl.close()` does not immediately stop other events (including `'line'`) - * from being emitted by the `Interface` instance. - * @since v0.1.98 - */ - close(): void; - /** - * The `rl.write()` method will write either `data` or a key sequence identified - * by `key` to the `output`. The `key` argument is supported only if `output` is - * a `TTY` text terminal. See `TTY keybindings` for a list of key - * combinations. - * - * If `key` is specified, `data` is ignored. - * - * When called, `rl.write()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written. - * - * ```js - * rl.write('Delete this!'); - * // Simulate Ctrl+U to delete the line written previously - * rl.write(null, { ctrl: true, name: 'u' }); - * ``` - * - * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_. - * @since v0.1.98 - */ - write(data: string | Buffer, key?: Key): void; - write(data: undefined | null | string | Buffer, key: Key): void; - /** - * Returns the real position of the cursor in relation to the input - * prompt + string. Long input (wrapping) strings, as well as multiple - * line prompts are included in the calculations. - * @since v13.5.0, v12.16.0 - */ - getCursorPos(): CursorPos; - /** - * events.EventEmitter - * 1. close - * 2. line - * 3. pause - * 4. resume - * 5. SIGCONT - * 6. SIGINT - * 7. SIGTSTP - * 8. history - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "history", listener: (history: string[]) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "history", history: string[]): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "history", listener: (history: string[]) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "history", listener: (history: string[]) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "history", listener: (history: string[]) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "history", listener: (history: string[]) => void): this; - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } - export type ReadLine = Interface; // type forwarded for backwards compatibility - export type Completer = (line: string) => CompleterResult; - export type AsyncCompleter = ( - line: string, - callback: (err?: null | Error, result?: CompleterResult) => void, - ) => void; - export type CompleterResult = [string[], string]; - export interface ReadLineOptions { - /** - * The [`Readable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream to listen to - */ - input: NodeJS.ReadableStream; - /** - * The [`Writable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream to write readline data to. - */ - output?: NodeJS.WritableStream | undefined; - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * `true` if the `input` and `output` streams should be treated like a TTY, - * and have ANSI/VT100 escape codes written to it. - * Default: checking `isTTY` on the `output` stream upon instantiation. - */ - terminal?: boolean | undefined; - /** - * Initial list of history lines. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default [] - */ - history?: string[] | undefined; - /** - * Maximum number of history lines retained. - * To disable the history set this value to `0`. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default 30 - */ - historySize?: number | undefined; - /** - * If `true`, when a new input line added to the history list duplicates an older one, - * this removes the older line from the list. - * @default false - */ - removeHistoryDuplicates?: boolean | undefined; - /** - * The prompt string to use. - * @default "> " - */ - prompt?: string | undefined; - /** - * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds, - * both `\r` and `\n` will be treated as separate end-of-line input. - * `crlfDelay` will be coerced to a number no less than `100`. - * It can be set to `Infinity`, in which case - * `\r` followed by `\n` will always be considered a single newline - * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v20.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter). - * @default 100 - */ - crlfDelay?: number | undefined; - /** - * The duration `readline` will wait for a character - * (when reading an ambiguous key sequence in milliseconds - * one that can both form a complete key sequence using the input read so far - * and can take additional input to complete a longer key sequence). - * @default 500 - */ - escapeCodeTimeout?: number | undefined; - /** - * The number of spaces a tab is equal to (minimum 1). - * @default 8 - */ - tabSize?: number | undefined; - /** - * Allows closing the interface using an AbortSignal. - * Aborting the signal will internally call `close` on the interface. - */ - signal?: AbortSignal | undefined; - } - /** - * The `readline.createInterface()` method creates a new `readline.Interface` instance. - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readline.Interface` instance is created, the most common case is to - * listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * - * When creating a `readline.Interface` using `stdin` as input, the program - * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without - * waiting for user input, call `process.stdin.unref()`. - * @since v0.1.98 - */ - export function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ): Interface; - export function createInterface(options: ReadLineOptions): Interface; - /** - * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. - * - * Optionally, `interface` specifies a `readline.Interface` instance for which - * autocompletion is disabled when copy-pasted input is detected. - * - * If the `stream` is a `TTY`, then it must be in raw mode. - * - * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop - * the `input` from emitting `'keypress'` events. - * - * ```js - * readline.emitKeypressEvents(process.stdin); - * if (process.stdin.isTTY) - * process.stdin.setRawMode(true); - * ``` - * - * ## Example: Tiny CLI - * - * The following example illustrates the use of `readline.Interface` class to - * implement a small command-line interface: - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * prompt: 'OHAI> ', - * }); - * - * rl.prompt(); - * - * rl.on('line', (line) => { - * switch (line.trim()) { - * case 'hello': - * console.log('world!'); - * break; - * default: - * console.log(`Say what? I might have heard '${line.trim()}'`); - * break; - * } - * rl.prompt(); - * }).on('close', () => { - * console.log('Have a great day!'); - * process.exit(0); - * }); - * ``` - * - * ## Example: Read file stream line-by-Line - * - * A common use case for `readline` is to consume an input file one line at a - * time. The easiest way to do so is leveraging the `fs.ReadStream` API as - * well as a `for await...of` loop: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * async function processLineByLine() { - * const fileStream = fs.createReadStream('input.txt'); - * - * const rl = readline.createInterface({ - * input: fileStream, - * crlfDelay: Infinity, - * }); - * // Note: we use the crlfDelay option to recognize all instances of CR LF - * // ('\r\n') in input.txt as a single line break. - * - * for await (const line of rl) { - * // Each line in input.txt will be successively available here as `line`. - * console.log(`Line from file: ${line}`); - * } - * } - * - * processLineByLine(); - * ``` - * - * Alternatively, one could use the `'line'` event: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * const rl = readline.createInterface({ - * input: fs.createReadStream('sample.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * console.log(`Line from file: ${line}`); - * }); - * ``` - * - * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied: - * - * ```js - * import { once } from 'node:events'; - * import { createReadStream } from 'node:fs'; - * import { createInterface } from 'node:readline'; - * - * (async function processLineByLine() { - * try { - * const rl = createInterface({ - * input: createReadStream('big-file.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * // Process the line. - * }); - * - * await once(rl, 'close'); - * - * console.log('File processed.'); - * } catch (err) { - * console.error(err); - * } - * })(); - * ``` - * @since v0.7.7 - */ - export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; - export type Direction = -1 | 0 | 1; - export interface CursorPos { - rows: number; - cols: number; - } - /** - * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream - * in a specified direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; - /** - * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from - * the current position of the cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; - /** - * The `readline.cursorTo()` method moves cursor to the specified position in a - * given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; - /** - * The `readline.moveCursor()` method moves the cursor _relative_ to its current - * position in a given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; -} -declare module "node:readline" { - export * from "readline"; -} diff --git a/mcp-server/node_modules/@types/node/readline/promises.d.ts b/mcp-server/node_modules/@types/node/readline/promises.d.ts deleted file mode 100644 index f6cdf66..0000000 --- a/mcp-server/node_modules/@types/node/readline/promises.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * @since v17.0.0 - * @experimental - */ -declare module "readline/promises" { - import { Abortable } from "node:events"; - import { - CompleterResult, - Direction, - Interface as _Interface, - ReadLineOptions as _ReadLineOptions, - } from "node:readline"; - /** - * Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a - * single `input` `Readable` stream and a single `output` `Writable` stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v17.0.0 - */ - class Interface extends _Interface { - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * If the question is called after `rl.close()`, it returns a rejected promise. - * - * Example usage: - * - * ```js - * const answer = await rl.question('What is your favorite food? '); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * - * Using an `AbortSignal` to cancel a question. - * - * ```js - * const signal = AbortSignal.timeout(10_000); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * const answer = await rl.question('What is your favorite food? ', { signal }); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * @since v17.0.0 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @return A promise that is fulfilled with the user's input in response to the `query`. - */ - question(query: string): Promise; - question(query: string, options: Abortable): Promise; - } - /** - * @since v17.0.0 - */ - class Readline { - /** - * @param stream A TTY stream. - */ - constructor( - stream: NodeJS.WritableStream, - options?: { - autoCommit?: boolean | undefined; - }, - ); - /** - * The `rl.clearLine()` method adds to the internal list of pending action an - * action that clears current line of the associated `stream` in a specified - * direction identified by `dir`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearLine(dir: Direction): this; - /** - * The `rl.clearScreenDown()` method adds to the internal list of pending action an - * action that clears the associated stream from the current position of the - * cursor down. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearScreenDown(): this; - /** - * The `rl.commit()` method sends all the pending actions to the associated `stream` and clears the internal list of pending actions. - * @since v17.0.0 - */ - commit(): Promise; - /** - * The `rl.cursorTo()` method adds to the internal list of pending action an action - * that moves cursor to the specified position in the associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - cursorTo(x: number, y?: number): this; - /** - * The `rl.moveCursor()` method adds to the internal list of pending action an - * action that moves the cursor _relative_ to its current position in the - * associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - moveCursor(dx: number, dy: number): this; - /** - * The `rl.rollback` methods clears the internal list of pending actions without - * sending it to the associated `stream`. - * @since v17.0.0 - * @return this - */ - rollback(): this; - } - type Completer = (line: string) => CompleterResult | Promise; - interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> { - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | undefined; - } - /** - * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance. - * - * ```js - * import readlinePromises from 'node:readline/promises'; - * const rl = readlinePromises.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readlinePromises.Interface` instance is created, the most common case - * is to listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * @since v17.0.0 - */ - function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer, - terminal?: boolean, - ): Interface; - function createInterface(options: ReadLineOptions): Interface; -} -declare module "node:readline/promises" { - export * from "readline/promises"; -} diff --git a/mcp-server/node_modules/@types/node/repl.d.ts b/mcp-server/node_modules/@types/node/repl.d.ts deleted file mode 100644 index 8b1bb6b..0000000 --- a/mcp-server/node_modules/@types/node/repl.d.ts +++ /dev/null @@ -1,430 +0,0 @@ -/** - * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation - * that is available both as a standalone program or includible in other - * applications. It can be accessed using: - * - * ```js - * import repl from 'node:repl'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js) - */ -declare module "repl" { - import { AsyncCompleter, Completer, Interface } from "node:readline"; - import { Context } from "node:vm"; - import { InspectOptions } from "node:util"; - interface ReplOptions { - /** - * The input prompt to display. - * @default "> " - */ - prompt?: string | undefined; - /** - * The `Readable` stream from which REPL input will be read. - * @default process.stdin - */ - input?: NodeJS.ReadableStream | undefined; - /** - * The `Writable` stream to which REPL output will be written. - * @default process.stdout - */ - output?: NodeJS.WritableStream | undefined; - /** - * If `true`, specifies that the output should be treated as a TTY terminal, and have - * ANSI/VT100 escape codes written to it. - * Default: checking the value of the `isTTY` property on the output stream upon - * instantiation. - */ - terminal?: boolean | undefined; - /** - * The function to be used when evaluating each given line of input. - * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can - * error with `repl.Recoverable` to indicate the input was incomplete and prompt for - * additional lines. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_default_evaluation - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_custom_evaluation_functions - */ - eval?: REPLEval | undefined; - /** - * Defines if the repl prints output previews or not. - * @default `true` Always `false` in case `terminal` is falsy. - */ - preview?: boolean | undefined; - /** - * If `true`, specifies that the default `writer` function should include ANSI color - * styling to REPL output. If a custom `writer` function is provided then this has no - * effect. - * @default the REPL instance's `terminal` value - */ - useColors?: boolean | undefined; - /** - * If `true`, specifies that the default evaluation function will use the JavaScript - * `global` as the context as opposed to creating a new separate context for the REPL - * instance. The node CLI REPL sets this value to `true`. - * @default false - */ - useGlobal?: boolean | undefined; - /** - * If `true`, specifies that the default writer will not output the return value of a - * command if it evaluates to `undefined`. - * @default false - */ - ignoreUndefined?: boolean | undefined; - /** - * The function to invoke to format the output of each command before writing to `output`. - * @default a wrapper for `util.inspect` - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_customizing_repl_output - */ - writer?: REPLWriter | undefined; - /** - * An optional function used for custom Tab auto completion. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/readline.html#readline_use_of_the_completer_function - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * A flag that specifies whether the default evaluator executes all JavaScript commands in - * strict mode or default (sloppy) mode. - * Accepted values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; - /** - * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is - * pressed. This cannot be used together with a custom `eval` function. - * @default false - */ - breakEvalOnSigint?: boolean | undefined; - } - type REPLEval = ( - this: REPLServer, - evalCmd: string, - context: Context, - file: string, - cb: (err: Error | null, result: any) => void, - ) => void; - type REPLWriter = (this: REPLServer, obj: any) => string; - /** - * This is the default "writer" value, if none is passed in the REPL options, - * and it can be overridden by custom print functions. - */ - const writer: REPLWriter & { - options: InspectOptions; - }; - type REPLCommandAction = (this: REPLServer, text: string) => void; - interface REPLCommand { - /** - * Help text to be displayed when `.help` is entered. - */ - help?: string | undefined; - /** - * The function to execute, optionally accepting a single string argument. - */ - action: REPLCommandAction; - } - /** - * Instances of `repl.REPLServer` are created using the {@link start} method - * or directly using the JavaScript `new` keyword. - * - * ```js - * import repl from 'node:repl'; - * - * const options = { useColors: true }; - * - * const firstInstance = repl.start(options); - * const secondInstance = new repl.REPLServer(options); - * ``` - * @since v0.1.91 - */ - class REPLServer extends Interface { - /** - * The `vm.Context` provided to the `eval` function to be used for JavaScript - * evaluation. - */ - readonly context: Context; - /** - * @deprecated since v14.3.0 - Use `input` instead. - */ - readonly inputStream: NodeJS.ReadableStream; - /** - * @deprecated since v14.3.0 - Use `output` instead. - */ - readonly outputStream: NodeJS.WritableStream; - /** - * The `Readable` stream from which REPL input will be read. - */ - readonly input: NodeJS.ReadableStream; - /** - * The `Writable` stream to which REPL output will be written. - */ - readonly output: NodeJS.WritableStream; - /** - * The commands registered via `replServer.defineCommand()`. - */ - readonly commands: NodeJS.ReadOnlyDict; - /** - * A value indicating whether the REPL is currently in "editor mode". - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_commands_and_special_keys - */ - readonly editorMode: boolean; - /** - * A value indicating whether the `_` variable has been assigned. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreAssigned: boolean; - /** - * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly last: any; - /** - * A value indicating whether the `_error` variable has been assigned. - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreErrAssigned: boolean; - /** - * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly lastError: any; - /** - * Specified in the REPL options, this is the function to be used when evaluating each - * given line of input. If not specified in the REPL options, this is an async wrapper - * for the JavaScript `eval()` function. - */ - readonly eval: REPLEval; - /** - * Specified in the REPL options, this is a value indicating whether the default - * `writer` function should include ANSI color styling to REPL output. - */ - readonly useColors: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `eval` - * function will use the JavaScript `global` as the context as opposed to creating a new - * separate context for the REPL instance. - */ - readonly useGlobal: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `writer` - * function should output the result of a command if it evaluates to `undefined`. - */ - readonly ignoreUndefined: boolean; - /** - * Specified in the REPL options, this is the function to invoke to format the output of - * each command before writing to `outputStream`. If not specified in the REPL options, - * this will be a wrapper for `util.inspect`. - */ - readonly writer: REPLWriter; - /** - * Specified in the REPL options, this is the function to use for custom Tab auto-completion. - */ - readonly completer: Completer | AsyncCompleter; - /** - * Specified in the REPL options, this is a flag that specifies whether the default `eval` - * function should execute all JavaScript commands in strict mode or default (sloppy) mode. - * Possible values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; - /** - * NOTE: According to the documentation: - * - * > Instances of `repl.REPLServer` are created using the `repl.start()` method and - * > _should not_ be created directly using the JavaScript `new` keyword. - * - * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_class_replserver - */ - private constructor(); - /** - * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands - * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following - * properties: - * - * The following example shows two new commands added to the REPL instance: - * - * ```js - * import repl from 'node:repl'; - * - * const replServer = repl.start({ prompt: '> ' }); - * replServer.defineCommand('sayhello', { - * help: 'Say hello', - * action(name) { - * this.clearBufferedCommand(); - * console.log(`Hello, ${name}!`); - * this.displayPrompt(); - * }, - * }); - * replServer.defineCommand('saybye', function saybye() { - * console.log('Goodbye!'); - * this.close(); - * }); - * ``` - * - * The new commands can then be used from within the REPL instance: - * - * ```console - * > .sayhello Node.js User - * Hello, Node.js User! - * > .saybye - * Goodbye! - * ``` - * @since v0.3.0 - * @param keyword The command keyword (_without_ a leading `.` character). - * @param cmd The function to invoke when the command is processed. - */ - defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; - /** - * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. - * - * When multi-line input is being entered, an ellipsis is printed rather than the - * 'prompt'. - * - * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. - * - * The `replServer.displayPrompt` method is primarily intended to be called from - * within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v0.1.91 - */ - displayPrompt(preserveCursor?: boolean): void; - /** - * The `replServer.clearBufferedCommand()` method clears any command that has been - * buffered but not yet executed. This method is primarily intended to be - * called from within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v9.0.0 - */ - clearBufferedCommand(): void; - /** - * Initializes a history log file for the REPL instance. When executing the - * Node.js binary and using the command-line REPL, a history file is initialized - * by default. However, this is not the case when creating a REPL - * programmatically. Use this method to initialize a history log file when working - * with REPL instances programmatically. - * @since v11.10.0 - * @param historyPath the path to the history file - * @param callback called when history writes are ready or upon error - */ - setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; - /** - * events.EventEmitter - * 1. close - inherited from `readline.Interface` - * 2. line - inherited from `readline.Interface` - * 3. pause - inherited from `readline.Interface` - * 4. resume - inherited from `readline.Interface` - * 5. SIGCONT - inherited from `readline.Interface` - * 6. SIGINT - inherited from `readline.Interface` - * 7. SIGTSTP - inherited from `readline.Interface` - * 8. exit - * 9. reset - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "exit", listener: () => void): this; - addListener(event: "reset", listener: (context: Context) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "exit"): boolean; - emit(event: "reset", context: Context): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "exit", listener: () => void): this; - on(event: "reset", listener: (context: Context) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "exit", listener: () => void): this; - once(event: "reset", listener: (context: Context) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "exit", listener: () => void): this; - prependListener(event: "reset", listener: (context: Context) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "exit", listener: () => void): this; - prependOnceListener(event: "reset", listener: (context: Context) => void): this; - } - /** - * A flag passed in the REPL options. Evaluates expressions in sloppy mode. - */ - const REPL_MODE_SLOPPY: unique symbol; - /** - * A flag passed in the REPL options. Evaluates expressions in strict mode. - * This is equivalent to prefacing every repl statement with `'use strict'`. - */ - const REPL_MODE_STRICT: unique symbol; - /** - * The `repl.start()` method creates and starts a {@link REPLServer} instance. - * - * If `options` is a string, then it specifies the input prompt: - * - * ```js - * import repl from 'node:repl'; - * - * // a Unix style prompt - * repl.start('$ '); - * ``` - * @since v0.1.91 - */ - function start(options?: string | ReplOptions): REPLServer; - /** - * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_recoverable_errors - */ - class Recoverable extends SyntaxError { - err: Error; - constructor(err: Error); - } -} -declare module "node:repl" { - export * from "repl"; -} diff --git a/mcp-server/node_modules/@types/node/sea.d.ts b/mcp-server/node_modules/@types/node/sea.d.ts deleted file mode 100644 index 6f1d1ea..0000000 --- a/mcp-server/node_modules/@types/node/sea.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -/** - * This feature allows the distribution of a Node.js application conveniently to a - * system that does not have Node.js installed. - * - * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing - * the injection of a blob prepared by Node.js, which can contain a bundled script, - * into the `node` binary. During start up, the program checks if anything has been - * injected. If the blob is found, it executes the script in the blob. Otherwise - * Node.js operates as it normally does. - * - * The single executable application feature currently only supports running a - * single embedded script using the `CommonJS` module system. - * - * Users can create a single executable application from their bundled script - * with the `node` binary itself and any tool which can inject resources into the - * binary. - * - * Here are the steps for creating a single executable application using one such - * tool, [postject](https://github.com/nodejs/postject): - * - * 1. Create a JavaScript file: - * ```bash - * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js - * ``` - * 2. Create a configuration file building a blob that can be injected into the - * single executable application (see `Generating single executable preparation blobs` for details): - * ```bash - * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json - * ``` - * 3. Generate the blob to be injected: - * ```bash - * node --experimental-sea-config sea-config.json - * ``` - * 4. Create a copy of the `node` executable and name it according to your needs: - * * On systems other than Windows: - * ```bash - * cp $(command -v node) hello - * ``` - * * On Windows: - * ```text - * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')" - * ``` - * The `.exe` extension is necessary. - * 5. Remove the signature of the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --remove-signature hello - * ``` - * * On Windows (optional): - * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/). - * If this step is - * skipped, ignore any signature-related warning from postject. - * ```powershell - * signtool remove /s hello.exe - * ``` - * 6. Inject the blob into the copied binary by running `postject` with - * the following options: - * * `hello` / `hello.exe` \- The name of the copy of the `node` executable - * created in step 4. - * * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary - * where the contents of the blob will be stored. - * * `sea-prep.blob` \- The name of the blob created in step 1. - * * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been - * injected. - * * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the - * segment in the binary where the contents of the blob will be - * stored. - * To summarize, here is the required command for each platform: - * * On Linux: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - PowerShell: - * ```powershell - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ` - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - Command Prompt: - * ```text - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On macOS: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ - * --macho-segment-name NODE_SEA - * ``` - * 7. Sign the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --sign - hello - * ``` - * * On Windows (optional): - * A certificate needs to be present for this to work. However, the unsigned - * binary would still be runnable. - * ```powershell - * signtool sign /fd SHA256 hello.exe - * ``` - * 8. Run the binary: - * * On systems other than Windows - * ```console - * $ ./hello world - * Hello, world! - * ``` - * * On Windows - * ```console - * $ .\hello.exe world - * Hello, world! - * ``` - * @since v19.7.0, v18.16.0 - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.12.0/src/node_sea.cc) - */ -declare module "node:sea" { - type AssetKey = string; - /** - * @since v20.12.0 - * @return Whether this script is running inside a single-executable application. - */ - function isSea(): boolean; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAsset(key: AssetKey): ArrayBuffer; - function getAsset(key: AssetKey, encoding: string): string; - /** - * Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAssetAsBlob(key: AssetKey, options?: { - type: string; - }): Blob; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * - * Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not - * return a copy. Instead, it returns the raw asset bundled inside the executable. - * - * For now, users should avoid writing to the returned array buffer. If the - * injected section is not marked as writable or not aligned properly, - * writes to the returned array buffer is likely to result in a crash. - * @since v20.12.0 - */ - function getRawAsset(key: AssetKey): string | ArrayBuffer; -} diff --git a/mcp-server/node_modules/@types/node/stream.d.ts b/mcp-server/node_modules/@types/node/stream.d.ts deleted file mode 100644 index 9d13d1b..0000000 --- a/mcp-server/node_modules/@types/node/stream.d.ts +++ /dev/null @@ -1,1675 +0,0 @@ -/** - * A stream is an abstract interface for working with streaming data in Node.js. - * The `node:stream` module provides an API for implementing the stream interface. - * - * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v20.x/api/http.html#class-httpincomingmessage) - * and [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) are both stream instances. - * - * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v20.x/api/events.html#class-eventemitter). - * - * To access the `node:stream` module: - * - * ```js - * import stream from 'node:stream'; - * ``` - * - * The `node:stream` module is useful for creating new types of stream instances. - * It is usually not necessary to use the `node:stream` module to consume streams. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/stream.js) - */ -declare module "stream" { - import { Abortable, EventEmitter } from "node:events"; - import { Blob as NodeBlob } from "node:buffer"; - import * as streamPromises from "node:stream/promises"; - import * as streamWeb from "node:stream/web"; - - type ComposeFnParam = (source: any) => void; - - class Stream extends EventEmitter { - pipe( - destination: T, - options?: { - end?: boolean | undefined; - }, - ): T; - compose( - stream: T | ComposeFnParam | Iterable | AsyncIterable, - options?: { signal: AbortSignal }, - ): T; - } - namespace Stream { - export { Stream, streamPromises as promises }; - } - namespace Stream { - interface StreamOptions extends Abortable { - emitClose?: boolean | undefined; - highWaterMark?: number | undefined; - objectMode?: boolean | undefined; - construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined; - autoDestroy?: boolean | undefined; - } - interface ReadableOptions extends StreamOptions { - encoding?: BufferEncoding | undefined; - read?: ((this: T, size: number) => void) | undefined; - } - interface ArrayOptions { - /** - * The maximum concurrent invocations of `fn` to call on the stream at once. - * @default 1 - */ - concurrency?: number | undefined; - /** Allows destroying the stream if the signal is aborted. */ - signal?: AbortSignal | undefined; - } - /** - * @since v0.9.4 - */ - class Readable extends Stream implements NodeJS.ReadableStream { - /** - * A utility method for creating Readable Streams out of iterators. - * @since v12.3.0, v10.17.0 - * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed. - * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`. - */ - static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; - /** - * A utility method for creating a `Readable` from a web `ReadableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - readableStream: streamWeb.ReadableStream, - options?: Pick, - ): Readable; - /** - * A utility method for creating a web `ReadableStream` from a `Readable`. - * @since v17.0.0 - * @experimental - */ - static toWeb( - streamReadable: Readable, - options?: { - strategy?: streamWeb.QueuingStrategy | undefined; - }, - ): streamWeb.ReadableStream; - /** - * Returns whether the stream has been read from or cancelled. - * @since v16.8.0 - */ - static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'end'`. - * @since v16.8.0 - * @experimental - */ - readonly readableAborted: boolean; - /** - * Is `true` if it is safe to call {@link read}, which means - * the stream has not been destroyed or emitted `'error'` or `'end'`. - * @since v11.4.0 - */ - readable: boolean; - /** - * Returns whether `'data'` has been emitted. - * @since v16.7.0, v14.18.0 - * @experimental - */ - readonly readableDidRead: boolean; - /** - * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method. - * @since v12.7.0 - */ - readonly readableEncoding: BufferEncoding | null; - /** - * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v20.x/api/stream.html#event-end) event is emitted. - * @since v12.9.0 - */ - readonly readableEnded: boolean; - /** - * This property reflects the current state of a `Readable` stream as described - * in the [Three states](https://nodejs.org/docs/latest-v20.x/api/stream.html#three-states) section. - * @since v9.4.0 - */ - readonly readableFlowing: boolean | null; - /** - * Returns the value of `highWaterMark` passed when creating this `Readable`. - * @since v9.3.0 - */ - readonly readableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be read. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly readableLength: number; - /** - * Getter for the property `objectMode` of a given `Readable` stream. - * @since v12.3.0 - */ - readonly readableObjectMode: boolean; - /** - * Is `true` after `readable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - constructor(opts?: ReadableOptions); - _construct?(callback: (error?: Error | null) => void): void; - _read(size: number): void; - /** - * The `readable.read()` method reads data out of the internal buffer and - * returns it. If no data is available to be read, `null` is returned. By default, - * the data is returned as a `Buffer` object unless an encoding has been - * specified using the `readable.setEncoding()` method or the stream is operating - * in object mode. - * - * The optional `size` argument specifies a specific number of bytes to read. If - * `size` bytes are not available to be read, `null` will be returned _unless_ the - * stream has ended, in which case all of the data remaining in the internal buffer - * will be returned. - * - * If the `size` argument is not specified, all of the data contained in the - * internal buffer will be returned. - * - * The `size` argument must be less than or equal to 1 GiB. - * - * The `readable.read()` method should only be called on `Readable` streams - * operating in paused mode. In flowing mode, `readable.read()` is called - * automatically until the internal buffer is fully drained. - * - * ```js - * const readable = getReadableStreamSomehow(); - * - * // 'readable' may be triggered multiple times as data is buffered in - * readable.on('readable', () => { - * let chunk; - * console.log('Stream is readable (new data received in buffer)'); - * // Use a loop to make sure we read all currently available data - * while (null !== (chunk = readable.read())) { - * console.log(`Read ${chunk.length} bytes of data...`); - * } - * }); - * - * // 'end' will be triggered once when there is no more data available - * readable.on('end', () => { - * console.log('Reached end of stream.'); - * }); - * ``` - * - * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks - * are not concatenated. A `while` loop is necessary to consume all data - * currently in the buffer. When reading a large file `.read()` may return `null`, - * having consumed all buffered content so far, but there is still more data to - * come not yet buffered. In this case a new `'readable'` event will be emitted - * when there is more data in the buffer. Finally the `'end'` event will be - * emitted when there is no more data to come. - * - * Therefore to read a file's whole contents from a `readable`, it is necessary - * to collect chunks across multiple `'readable'` events: - * - * ```js - * const chunks = []; - * - * readable.on('readable', () => { - * let chunk; - * while (null !== (chunk = readable.read())) { - * chunks.push(chunk); - * } - * }); - * - * readable.on('end', () => { - * const content = chunks.join(''); - * }); - * ``` - * - * A `Readable` stream in object mode will always return a single item from - * a call to `readable.read(size)`, regardless of the value of the `size` argument. - * - * If the `readable.read()` method returns a chunk of data, a `'data'` event will - * also be emitted. - * - * Calling {@link read} after the `'end'` event has - * been emitted will return `null`. No runtime error will be raised. - * @since v0.9.4 - * @param size Optional argument to specify how much data to read. - */ - read(size?: number): any; - /** - * The `readable.setEncoding()` method sets the character encoding for - * data read from the `Readable` stream. - * - * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data - * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the - * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal - * string format. - * - * The `Readable` stream will properly handle multi-byte characters delivered - * through the stream that would otherwise become improperly decoded if simply - * pulled from the stream as `Buffer` objects. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.setEncoding('utf8'); - * readable.on('data', (chunk) => { - * assert.equal(typeof chunk, 'string'); - * console.log('Got %d characters of string data:', chunk.length); - * }); - * ``` - * @since v0.9.4 - * @param encoding The encoding to use. - */ - setEncoding(encoding: BufferEncoding): this; - /** - * The `readable.pause()` method will cause a stream in flowing mode to stop - * emitting `'data'` events, switching out of flowing mode. Any data that - * becomes available will remain in the internal buffer. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.on('data', (chunk) => { - * console.log(`Received ${chunk.length} bytes of data.`); - * readable.pause(); - * console.log('There will be no additional data for 1 second.'); - * setTimeout(() => { - * console.log('Now data will start flowing again.'); - * readable.resume(); - * }, 1000); - * }); - * ``` - * - * The `readable.pause()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - pause(): this; - /** - * The `readable.resume()` method causes an explicitly paused `Readable` stream to - * resume emitting `'data'` events, switching the stream into flowing mode. - * - * The `readable.resume()` method can be used to fully consume the data from a - * stream without actually processing any of that data: - * - * ```js - * getReadableStreamSomehow() - * .resume() - * .on('end', () => { - * console.log('Reached the end, but did not read anything.'); - * }); - * ``` - * - * The `readable.resume()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - resume(): this; - /** - * The `readable.isPaused()` method returns the current operating state of the `Readable`. - * This is used primarily by the mechanism that underlies the `readable.pipe()` method. - * In most typical cases, there will be no reason to use this method directly. - * - * ```js - * const readable = new stream.Readable(); - * - * readable.isPaused(); // === false - * readable.pause(); - * readable.isPaused(); // === true - * readable.resume(); - * readable.isPaused(); // === false - * ``` - * @since v0.11.14 - */ - isPaused(): boolean; - /** - * The `readable.unpipe()` method detaches a `Writable` stream previously attached - * using the {@link pipe} method. - * - * If the `destination` is not specified, then _all_ pipes are detached. - * - * If the `destination` is specified, but no pipe is set up for it, then - * the method does nothing. - * - * ```js - * import fs from 'node:fs'; - * const readable = getReadableStreamSomehow(); - * const writable = fs.createWriteStream('file.txt'); - * // All the data from readable goes into 'file.txt', - * // but only for the first second. - * readable.pipe(writable); - * setTimeout(() => { - * console.log('Stop writing to file.txt.'); - * readable.unpipe(writable); - * console.log('Manually close the file stream.'); - * writable.end(); - * }, 1000); - * ``` - * @since v0.9.4 - * @param destination Optional specific stream to unpipe - */ - unpipe(destination?: NodeJS.WritableStream): this; - /** - * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the - * same as `readable.push(null)`, after which no more data can be written. The EOF - * signal is put at the end of the buffer and any buffered data will still be - * flushed. - * - * The `readable.unshift()` method pushes a chunk of data back into the internal - * buffer. This is useful in certain situations where a stream is being consumed by - * code that needs to "un-consume" some amount of data that it has optimistically - * pulled out of the source, so that the data can be passed on to some other party. - * - * The `stream.unshift(chunk)` method cannot be called after the `'end'` event - * has been emitted or a runtime error will be thrown. - * - * Developers using `stream.unshift()` often should consider switching to - * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. - * - * ```js - * // Pull off a header delimited by \n\n. - * // Use unshift() if we get too much. - * // Call the callback with (error, header, stream). - * import { StringDecoder } from 'node:string_decoder'; - * function parseHeader(stream, callback) { - * stream.on('error', callback); - * stream.on('readable', onReadable); - * const decoder = new StringDecoder('utf8'); - * let header = ''; - * function onReadable() { - * let chunk; - * while (null !== (chunk = stream.read())) { - * const str = decoder.write(chunk); - * if (str.includes('\n\n')) { - * // Found the header boundary. - * const split = str.split(/\n\n/); - * header += split.shift(); - * const remaining = split.join('\n\n'); - * const buf = Buffer.from(remaining, 'utf8'); - * stream.removeListener('error', callback); - * // Remove the 'readable' listener before unshifting. - * stream.removeListener('readable', onReadable); - * if (buf.length) - * stream.unshift(buf); - * // Now the body of the message can be read from the stream. - * callback(null, header, stream); - * return; - * } - * // Still reading the header. - * header += str; - * } - * } - * } - * ``` - * - * Unlike {@link push}, `stream.unshift(chunk)` will not - * end the reading process by resetting the internal reading state of the stream. - * This can cause unexpected results if `readable.unshift()` is called during a - * read (i.e. from within a {@link _read} implementation on a - * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, - * however it is best to simply avoid calling `readable.unshift()` while in the - * process of performing a read. - * @since v0.9.11 - * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must - * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value. - * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. - */ - unshift(chunk: any, encoding?: BufferEncoding): void; - /** - * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more - * information.) - * - * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable` - * stream that uses - * the old stream as its data source. - * - * It will rarely be necessary to use `readable.wrap()` but the method has been - * provided as a convenience for interacting with older Node.js applications and - * libraries. - * - * ```js - * import { OldReader } from './old-api-module.js'; - * import { Readable } from 'node:stream'; - * const oreader = new OldReader(); - * const myReader = new Readable().wrap(oreader); - * - * myReader.on('readable', () => { - * myReader.read(); // etc. - * }); - * ``` - * @since v0.9.4 - * @param stream An "old style" readable stream - */ - wrap(stream: NodeJS.ReadableStream): this; - push(chunk: any, encoding?: BufferEncoding): boolean; - /** - * The iterator created by this method gives users the option to cancel the destruction - * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`, - * or if the iterator should destroy the stream if the stream emitted an error during iteration. - * @since v16.3.0 - * @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator, - * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream. - * **Default: `true`**. - */ - iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator; - /** - * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream. - * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream. - * @since v17.4.0, v16.14.0 - * @param fn a function to map over every chunk in the stream. Async or not. - * @returns a stream mapped with the function *fn*. - */ - map(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called - * and if it returns a truthy value, the chunk will be passed to the result stream. - * If the *fn* function returns a promise - that promise will be `await`ed. - * @since v17.4.0, v16.14.0 - * @param fn a function to filter chunks from the stream. Async or not. - * @returns a stream filtered with the predicate *fn*. - */ - filter( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Readable; - /** - * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called. - * If the *fn* function returns a promise - that promise will be `await`ed. - * - * This method is different from `for await...of` loops in that it can optionally process chunks concurrently. - * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option - * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`. - * In either case the stream will be destroyed. - * - * This method is different from listening to the `'data'` event in that it uses the `readable` event - * in the underlying machinary and can limit the number of concurrent *fn* calls. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise for when the stream has finished. - */ - forEach( - fn: (data: any, options?: Pick) => void | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method allows easily obtaining the contents of a stream. - * - * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended - * for interoperability and convenience, not as the primary way to consume streams. - * @since v17.5.0 - * @returns a promise containing an array with the contents of the stream. - */ - toArray(options?: Pick): Promise; - /** - * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream - * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk - * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`. - * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks. - */ - some( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream - * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy, - * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value. - * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value, - * or `undefined` if no element was found. - */ - find( - fn: (data: any, options?: Pick) => data is T, - options?: ArrayOptions, - ): Promise; - find( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream - * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk - * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`. - * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks. - */ - every( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method returns a new stream by applying the given callback to each chunk of the stream - * and then flattening the result. - * - * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams - * will be merged (flattened) into the returned stream. - * @since v17.5.0 - * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator. - * @returns a stream flat-mapped with the function *fn*. - */ - flatMap(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method returns a new stream with the first *limit* chunks dropped from the start. - * @since v17.5.0 - * @param limit the number of chunks to drop from the readable. - * @returns a stream with *limit* chunks dropped from the start. - */ - drop(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with the first *limit* chunks. - * @since v17.5.0 - * @param limit the number of chunks to take from the readable. - * @returns a stream with *limit* chunks taken. - */ - take(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with chunks of the underlying stream paired with a counter - * in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced. - * @since v17.5.0 - * @returns a stream of indexed pairs. - */ - asIndexedPairs(options?: Pick): Readable; - /** - * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation - * on the previous element. It returns a promise for the final value of the reduction. - * - * If no *initial* value is supplied the first chunk of the stream is used as the initial value. - * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property. - * - * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter - * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method. - * @since v17.5.0 - * @param fn a reducer function to call over every chunk in the stream. Async or not. - * @param initial the initial value to use in the reduction. - * @returns a promise for the final value of the reduction. - */ - reduce( - fn: (previous: any, data: any, options?: Pick) => T, - initial?: undefined, - options?: Pick, - ): Promise; - reduce( - fn: (previous: T, data: any, options?: Pick) => T, - initial: T, - options?: Pick, - ): Promise; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable - * stream will release any internal resources and subsequent calls to `push()` will be ignored. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, but instead implement `readable._destroy()`. - * @since v8.0.0 - * @param error Error which will be passed as payload in `'error'` event - */ - destroy(error?: Error): this; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. end - * 4. error - * 5. pause - * 6. readable - * 7. resume - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "pause"): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished. - * @since v20.4.0 - */ - [Symbol.asyncDispose](): Promise; - } - interface WritableOptions extends StreamOptions { - decodeStrings?: boolean | undefined; - defaultEncoding?: BufferEncoding | undefined; - write?: - | (( - this: T, - chunk: any, - encoding: BufferEncoding, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - writev?: - | (( - this: T, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - } - /** - * @since v0.9.4 - */ - class Writable extends Stream implements NodeJS.WritableStream { - /** - * A utility method for creating a `Writable` from a web `WritableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - writableStream: streamWeb.WritableStream, - options?: Pick, - ): Writable; - /** - * A utility method for creating a web `WritableStream` from a `Writable`. - * @since v17.0.0 - * @experimental - */ - static toWeb(streamWritable: Writable): streamWeb.WritableStream; - /** - * Is `true` if it is safe to call `writable.write()`, which means - * the stream has not been destroyed, errored, or ended. - * @since v11.4.0 - */ - readonly writable: boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'finish'`. - * @since v18.0.0, v16.17.0 - * @experimental - */ - readonly writableAborted: boolean; - /** - * Is `true` after `writable.end()` has been called. This property - * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. - * @since v12.9.0 - */ - readonly writableEnded: boolean; - /** - * Is set to `true` immediately before the `'finish'` event is emitted. - * @since v12.6.0 - */ - readonly writableFinished: boolean; - /** - * Return the value of `highWaterMark` passed when creating this `Writable`. - * @since v9.3.0 - */ - readonly writableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be written. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly writableLength: number; - /** - * Getter for the property `objectMode` of a given `Writable` stream. - * @since v12.3.0 - */ - readonly writableObjectMode: boolean; - /** - * Number of times `writable.uncork()` needs to be - * called in order to fully uncork the stream. - * @since v13.2.0, v12.16.0 - */ - readonly writableCorked: number; - /** - * Is `true` after `writable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - /** - * Is `true` if the stream's buffer has been full and stream will emit `'drain'`. - * @since v15.2.0, v14.17.0 - */ - readonly writableNeedDrain: boolean; - constructor(opts?: WritableOptions); - _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - _writev?( - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ): void; - _construct?(callback: (error?: Error | null) => void): void; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - _final(callback: (error?: Error | null) => void): void; - /** - * The `writable.write()` method writes some data to the stream, and calls the - * supplied `callback` once the data has been fully handled. If an error - * occurs, the `callback` will be called with the error as its - * first argument. The `callback` is called asynchronously and before `'error'` is - * emitted. - * - * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`. - * If `false` is returned, further attempts to write data to the stream should - * stop until the `'drain'` event is emitted. - * - * While a stream is not draining, calls to `write()` will buffer `chunk`, and - * return false. Once all currently buffered chunks are drained (accepted for - * delivery by the operating system), the `'drain'` event will be emitted. - * Once `write()` returns false, do not write more chunks - * until the `'drain'` event is emitted. While calling `write()` on a stream that - * is not draining is allowed, Node.js will buffer all written chunks until - * maximum memory usage occurs, at which point it will abort unconditionally. - * Even before it aborts, high memory usage will cause poor garbage collector - * performance and high RSS (which is not typically released back to the system, - * even after the memory is no longer required). Since TCP sockets may never - * drain if the remote peer does not read the data, writing a socket that is - * not draining may lead to a remotely exploitable vulnerability. - * - * Writing data while the stream is not draining is particularly - * problematic for a `Transform`, because the `Transform` streams are paused - * by default until they are piped or a `'data'` or `'readable'` event handler - * is added. - * - * If the data to be written can be generated or fetched on demand, it is - * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is - * possible to respect backpressure and avoid memory issues using the `'drain'` event: - * - * ```js - * function write(data, cb) { - * if (!stream.write(data)) { - * stream.once('drain', cb); - * } else { - * process.nextTick(cb); - * } - * } - * - * // Wait for cb to be called before doing any other write. - * write('hello', () => { - * console.log('Write completed, do more writes now.'); - * }); - * ``` - * - * A `Writable` stream in object mode will always ignore the `encoding` argument. - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param [encoding='utf8'] The encoding, if `chunk` is a string. - * @param callback Callback for when this chunk of data is flushed. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; - /** - * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. - * @since v0.11.15 - * @param encoding The new default encoding - */ - setDefaultEncoding(encoding: BufferEncoding): this; - /** - * Calling the `writable.end()` method signals that no more data will be written - * to the `Writable`. The optional `chunk` and `encoding` arguments allow one - * final additional chunk of data to be written immediately before closing the - * stream. - * - * Calling the {@link write} method after calling {@link end} will raise an error. - * - * ```js - * // Write 'hello, ' and then end with 'world!'. - * import fs from 'node:fs'; - * const file = fs.createWriteStream('example.txt'); - * file.write('hello, '); - * file.end('world!'); - * // Writing more now is not allowed! - * ``` - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param encoding The encoding if `chunk` is a string - * @param callback Callback for when the stream is finished. - */ - end(cb?: () => void): this; - end(chunk: any, cb?: () => void): this; - end(chunk: any, encoding: BufferEncoding, cb?: () => void): this; - /** - * The `writable.cork()` method forces all written data to be buffered in memory. - * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. - * - * The primary intent of `writable.cork()` is to accommodate a situation in which - * several small chunks are written to the stream in rapid succession. Instead of - * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them - * all to `writable._writev()`, if present. This prevents a head-of-line blocking - * situation where data is being buffered while waiting for the first small chunk - * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput. - * - * See also: `writable.uncork()`, `writable._writev()`. - * @since v0.11.2 - */ - cork(): void; - /** - * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. - * - * When using `writable.cork()` and `writable.uncork()` to manage the buffering - * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event - * loop phase. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.write('data '); - * process.nextTick(() => stream.uncork()); - * ``` - * - * If the `writable.cork()` method is called multiple times on a stream, the - * same number of calls to `writable.uncork()` must be called to flush the buffered - * data. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.cork(); - * stream.write('data '); - * process.nextTick(() => { - * stream.uncork(); - * // The data will not be flushed until uncork() is called a second time. - * stream.uncork(); - * }); - * ``` - * - * See also: `writable.cork()`. - * @since v0.11.2 - */ - uncork(): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable - * stream has ended and subsequent calls to `write()` or `end()` will result in - * an `ERR_STREAM_DESTROYED` error. - * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. - * Use `end()` instead of destroy if data should flush before close, or wait for - * the `'drain'` event before destroying the stream. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, - * but instead implement `writable._destroy()`. - * @since v8.0.0 - * @param error Optional, an error to emit with `'error'` event. - */ - destroy(error?: Error): this; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. drain - * 3. error - * 4. finish - * 5. pipe - * 6. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface DuplexOptions extends ReadableOptions, WritableOptions { - allowHalfOpen?: boolean | undefined; - readableObjectMode?: boolean | undefined; - writableObjectMode?: boolean | undefined; - readableHighWaterMark?: number | undefined; - writableHighWaterMark?: number | undefined; - writableCorked?: number | undefined; - } - /** - * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Duplex` streams include: - * - * * `TCP sockets` - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Duplex extends Stream implements NodeJS.ReadWriteStream { - /** - * If `false` then the stream will automatically end the writable side when the - * readable side ends. Set initially by the `allowHalfOpen` constructor option, - * which defaults to `true`. - * - * This can be changed manually to change the half-open behavior of an existing - * `Duplex` stream instance, but must be changed before the `'end'` event is emitted. - * @since v0.9.4 - */ - allowHalfOpen: boolean; - constructor(opts?: DuplexOptions); - /** - * A utility method for creating duplex streams. - * - * - `Stream` converts writable stream into writable `Duplex` and readable stream - * to `Duplex`. - * - `Blob` converts into readable `Duplex`. - * - `string` converts into readable `Duplex`. - * - `ArrayBuffer` converts into readable `Duplex`. - * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. - * - `AsyncGeneratorFunction` converts into a readable/writable transform - * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield - * `null`. - * - `AsyncFunction` converts into a writable `Duplex`. Must return - * either `null` or `undefined` - * - `Object ({ writable, readable })` converts `readable` and - * `writable` into `Stream` and then combines them into `Duplex` where the - * `Duplex` will write to the `writable` and read from the `readable`. - * - `Promise` converts into readable `Duplex`. Value `null` is ignored. - * - * @since v16.8.0 - */ - static from( - src: - | Stream - | NodeBlob - | ArrayBuffer - | string - | Iterable - | AsyncIterable - | AsyncGeneratorFunction - | Promise - | Object, - ): Duplex; - /** - * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`. - * @since v17.0.0 - * @experimental - */ - static toWeb(streamDuplex: Duplex): { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }; - /** - * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - duplexStream: { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }, - options?: Pick< - DuplexOptions, - "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal" - >, - ): Duplex; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. drain - * 4. end - * 5. error - * 6. finish - * 7. pause - * 8. pipe - * 9. readable - * 10. resume - * 11. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pause"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pause", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pause", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface Duplex extends Readable, Writable {} - /** - * The utility function `duplexPair` returns an Array with two items, - * each being a `Duplex` stream connected to the other side: - * - * ```js - * const [ sideA, sideB ] = duplexPair(); - * ``` - * - * Whatever is written to one stream is made readable on the other. It provides - * behavior analogous to a network connection, where the data written by the client - * becomes readable by the server, and vice-versa. - * - * The Duplex streams are symmetrical; one or the other may be used without any - * difference in behavior. - * @param options A value to pass to both {@link Duplex} constructors, - * to set options such as buffering. - * @since v20.17.0 - */ - function duplexPair(options?: DuplexOptions): [Duplex, Duplex]; - type TransformCallback = (error?: Error | null, data?: any) => void; - interface TransformOptions extends DuplexOptions { - transform?: - | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void) - | undefined; - flush?: ((this: T, callback: TransformCallback) => void) | undefined; - } - /** - * Transform streams are `Duplex` streams where the output is in some way - * related to the input. Like all `Duplex` streams, `Transform` streams - * implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Transform` streams include: - * - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Transform extends Duplex { - constructor(opts?: TransformOptions); - _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; - _flush(callback: TransformCallback): void; - } - /** - * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is - * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams. - */ - class PassThrough extends Transform {} - /** - * A stream to attach a signal to. - * - * Attaches an AbortSignal to a readable or writeable stream. This lets code - * control stream destruction using an `AbortController`. - * - * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the - * stream, and `controller.error(new AbortError())` for webstreams. - * - * ```js - * import fs from 'node:fs'; - * - * const controller = new AbortController(); - * const read = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * // Later, abort the operation closing the stream - * controller.abort(); - * ``` - * - * Or using an `AbortSignal` with a readable stream as an async iterable: - * - * ```js - * const controller = new AbortController(); - * setTimeout(() => controller.abort(), 10_000); // set a timeout - * const stream = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * (async () => { - * try { - * for await (const chunk of stream) { - * await process(chunk); - * } - * } catch (e) { - * if (e.name === 'AbortError') { - * // The operation was cancelled - * } else { - * throw e; - * } - * } - * })(); - * ``` - * - * Or using an `AbortSignal` with a ReadableStream: - * - * ```js - * const controller = new AbortController(); - * const rs = new ReadableStream({ - * start(controller) { - * controller.enqueue('hello'); - * controller.enqueue('world'); - * controller.close(); - * }, - * }); - * - * addAbortSignal(controller.signal, rs); - * - * finished(rs, (err) => { - * if (err) { - * if (err.name === 'AbortError') { - * // The operation was cancelled - * } - * } - * }); - * - * const reader = rs.getReader(); - * - * reader.read().then(({ value, done }) => { - * console.log(value); // hello - * console.log(done); // false - * controller.abort(); - * }); - * ``` - * @since v15.4.0 - * @param signal A signal representing possible cancellation - * @param stream A stream to attach a signal to. - */ - function addAbortSignal(signal: AbortSignal, stream: T): T; - /** - * Returns the default highWaterMark used by streams. - * Defaults to `16384` (16 KiB), or `16` for `objectMode`. - * @since v19.9.0 - */ - function getDefaultHighWaterMark(objectMode: boolean): number; - /** - * Sets the default highWaterMark used by streams. - * @since v19.9.0 - * @param value highWaterMark value - */ - function setDefaultHighWaterMark(objectMode: boolean, value: number): void; - interface FinishedOptions extends Abortable { - error?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - } - /** - * A readable and/or writable stream/webstream. - * - * A function to get notified when a stream is no longer readable, writable - * or has experienced an error or a premature close event. - * - * ```js - * import { finished } from 'node:stream'; - * import fs from 'node:fs'; - * - * const rs = fs.createReadStream('archive.tar'); - * - * finished(rs, (err) => { - * if (err) { - * console.error('Stream failed.', err); - * } else { - * console.log('Stream is done reading.'); - * } - * }); - * - * rs.resume(); // Drain the stream. - * ``` - * - * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. - * - * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamfinishedstream-options). - * - * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been - * invoked. The reason for this is so that unexpected `'error'` events (due to - * incorrect stream implementations) do not cause unexpected crashes. - * If this is unwanted behavior then the returned cleanup function needs to be - * invoked in the callback: - * - * ```js - * const cleanup = finished(rs, (err) => { - * cleanup(); - * // ... - * }); - * ``` - * @since v10.0.0 - * @param stream A readable and/or writable stream. - * @param callback A callback function that takes an optional error argument. - * @returns A cleanup function which removes all registered listeners. - */ - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options: FinishedOptions, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - namespace finished { - function __promisify__( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - } - type PipelineSourceFunction = () => Iterable | AsyncIterable; - type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; - type PipelineTransform, U> = - | NodeJS.ReadWriteStream - | (( - source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable - : S, - ) => AsyncIterable); - type PipelineTransformSource = PipelineSource | PipelineTransform; - type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; - type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; - type PipelineDestination, P> = S extends - PipelineTransformSource ? - | NodeJS.WritableStream - | PipelineDestinationIterableFunction - | PipelineDestinationPromiseFunction - : never; - type PipelineCallback> = S extends - PipelineDestinationPromiseFunction ? (err: NodeJS.ErrnoException | null, value: P) => void - : (err: NodeJS.ErrnoException | null) => void; - type PipelinePromise> = S extends - PipelineDestinationPromiseFunction ? Promise

: Promise; - interface PipelineOptions { - signal?: AbortSignal | undefined; - end?: boolean | undefined; - } - /** - * A module method to pipe between streams and generators forwarding errors and - * properly cleaning up and provide a callback when the pipeline is complete. - * - * ```js - * import { pipeline } from 'node:stream'; - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * - * // Use the pipeline API to easily pipe a series of streams - * // together and get notified when the pipeline is fully done. - * - * // A pipeline to gzip a potentially huge tar file efficiently: - * - * pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz'), - * (err) => { - * if (err) { - * console.error('Pipeline failed.', err); - * } else { - * console.log('Pipeline succeeded.'); - * } - * }, - * ); - * ``` - * - * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streampipelinesource-transforms-destination-options). - * - * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: - * - * * `Readable` streams which have emitted `'end'` or `'close'`. - * * `Writable` streams which have emitted `'finish'` or `'close'`. - * - * `stream.pipeline()` leaves dangling event listeners on the streams - * after the `callback` has been invoked. In the case of reuse of streams after - * failure, this can cause event listener leaks and swallowed errors. If the last - * stream is readable, dangling event listeners will be removed so that the last - * stream can be consumed later. - * - * `stream.pipeline()` closes all the streams when an error is raised. - * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior - * once it would destroy the socket without sending the expected response. - * See the example below: - * - * ```js - * import fs from 'node:fs'; - * import http from 'node:http'; - * import { pipeline } from 'node:stream'; - * - * const server = http.createServer((req, res) => { - * const fileStream = fs.createReadStream('./fileNotExist.txt'); - * pipeline(fileStream, res, (err) => { - * if (err) { - * console.log(err); // No such file - * // this message can't be sent once `pipeline` already destroyed the socket - * return res.end('error!!!'); - * } - * }); - * }); - * ``` - * @since v10.0.0 - * @param callback Called when the pipeline is fully done. - */ - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline( - streams: ReadonlyArray, - callback: (err: NodeJS.ErrnoException | null) => void, - ): NodeJS.WritableStream; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array< - NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void) - > - ): NodeJS.WritableStream; - namespace pipeline { - function __promisify__, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function __promisify__( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; - } - // TODO: this interface never existed; remove in next major - interface Pipe { - close(): void; - hasRef(): boolean; - ref(): void; - unref(): void; - } - /** - * Returns whether the stream has encountered an error. - * @since v17.3.0, v16.14.0 - * @experimental - */ - function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean; - /** - * Returns whether the stream is readable. - * @since v17.4.0, v16.14.0 - * @experimental - */ - function isReadable(stream: Readable | NodeJS.ReadableStream): boolean; - } - export = Stream; -} -declare module "node:stream" { - import stream = require("stream"); - export = stream; -} diff --git a/mcp-server/node_modules/@types/node/stream/consumers.d.ts b/mcp-server/node_modules/@types/node/stream/consumers.d.ts deleted file mode 100644 index 05db025..0000000 --- a/mcp-server/node_modules/@types/node/stream/consumers.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * The utility consumer functions provide common options for consuming - * streams. - * @since v16.7.0 - */ -declare module "stream/consumers" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * @since v16.7.0 - * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream. - */ - function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Blob` containing the full contents of the stream. - */ - function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Buffer` containing the full contents of the stream. - */ - function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a - * UTF-8 encoded string that is then passed through `JSON.parse()`. - */ - function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string. - */ - function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; -} -declare module "node:stream/consumers" { - export * from "stream/consumers"; -} diff --git a/mcp-server/node_modules/@types/node/stream/promises.d.ts b/mcp-server/node_modules/@types/node/stream/promises.d.ts deleted file mode 100644 index d54c14c..0000000 --- a/mcp-server/node_modules/@types/node/stream/promises.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -declare module "stream/promises" { - import { - FinishedOptions as _FinishedOptions, - PipelineDestination, - PipelineOptions, - PipelinePromise, - PipelineSource, - PipelineTransform, - } from "node:stream"; - interface FinishedOptions extends _FinishedOptions { - /** - * If true, removes the listeners registered by this function before the promise is fulfilled. - * @default false - */ - cleanup?: boolean | undefined; - } - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; -} -declare module "node:stream/promises" { - export * from "stream/promises"; -} diff --git a/mcp-server/node_modules/@types/node/stream/web.d.ts b/mcp-server/node_modules/@types/node/stream/web.d.ts deleted file mode 100644 index 1b713a9..0000000 --- a/mcp-server/node_modules/@types/node/stream/web.d.ts +++ /dev/null @@ -1,533 +0,0 @@ -type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ByteLengthQueuingStrategy; -type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} - : import("stream/web").CompressionStream; -type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").CountQueuingStrategy; -type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} - : import("stream/web").DecompressionStream; -type _QueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").QueuingStrategy; -type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableByteStreamController; -type _ReadableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStream; -type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBReader; -type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBRequest; -type _ReadableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultController; -type _ReadableStreamDefaultReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultReader; -type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextDecoderStream; -type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextEncoderStream; -type _TransformStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStream; -type _TransformStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStreamDefaultController; -type _WritableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStream; -type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultController; -type _WritableStreamDefaultWriter = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultWriter; - -declare module "stream/web" { - // stub module, pending copy&paste from .d.ts or manual impl - // copy from lib.dom.d.ts - interface ReadableWritablePair { - readable: ReadableStream; - /** - * Provides a convenient, chainable way of piping this readable stream - * through a transform stream (or any other { writable, readable } - * pair). It simply pipes the stream into the writable side of the - * supplied pair, and returns the readable side for further use. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - */ - writable: WritableStream; - } - interface StreamPipeOptions { - preventAbort?: boolean; - preventCancel?: boolean; - /** - * Pipes this readable stream to a given writable stream destination. - * The way in which the piping process behaves under various error - * conditions can be customized with a number of passed options. It - * returns a promise that fulfills when the piping process completes - * successfully, or rejects if any errors were encountered. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - * - * Errors and closures of the source and destination streams propagate - * as follows: - * - * An error in this source readable stream will abort destination, - * unless preventAbort is truthy. The returned promise will be rejected - * with the source's error, or with any error that occurs during - * aborting the destination. - * - * An error in destination will cancel this source readable stream, - * unless preventCancel is truthy. The returned promise will be rejected - * with the destination's error, or with any error that occurs during - * canceling the source. - * - * When this source readable stream closes, destination will be closed, - * unless preventClose is truthy. The returned promise will be fulfilled - * once this process completes, unless an error is encountered while - * closing the destination, in which case it will be rejected with that - * error. - * - * If destination starts out closed or closing, this source readable - * stream will be canceled, unless preventCancel is true. The returned - * promise will be rejected with an error indicating piping to a closed - * stream failed, or with any error that occurs during canceling the - * source. - * - * The signal option can be set to an AbortSignal to allow aborting an - * ongoing pipe operation via the corresponding AbortController. In this - * case, this source readable stream will be canceled, and destination - * aborted, unless the respective options preventCancel or preventAbort - * are set. - */ - preventClose?: boolean; - signal?: AbortSignal; - } - interface ReadableStreamGenericReader { - readonly closed: Promise; - cancel(reason?: any): Promise; - } - type ReadableStreamController = ReadableStreamDefaultController; - interface ReadableStreamReadValueResult { - done: false; - value: T; - } - interface ReadableStreamReadDoneResult { - done: true; - value?: T; - } - type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; - interface ReadableByteStreamControllerCallback { - (controller: ReadableByteStreamController): void | PromiseLike; - } - interface UnderlyingSinkAbortCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSinkCloseCallback { - (): void | PromiseLike; - } - interface UnderlyingSinkStartCallback { - (controller: WritableStreamDefaultController): any; - } - interface UnderlyingSinkWriteCallback { - (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; - } - interface UnderlyingSourceCancelCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSourcePullCallback { - (controller: ReadableStreamController): void | PromiseLike; - } - interface UnderlyingSourceStartCallback { - (controller: ReadableStreamController): any; - } - interface TransformerFlushCallback { - (controller: TransformStreamDefaultController): void | PromiseLike; - } - interface TransformerStartCallback { - (controller: TransformStreamDefaultController): any; - } - interface TransformerTransformCallback { - (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; - } - interface UnderlyingByteSource { - autoAllocateChunkSize?: number; - cancel?: ReadableStreamErrorCallback; - pull?: ReadableByteStreamControllerCallback; - start?: ReadableByteStreamControllerCallback; - type: "bytes"; - } - interface UnderlyingSource { - cancel?: UnderlyingSourceCancelCallback; - pull?: UnderlyingSourcePullCallback; - start?: UnderlyingSourceStartCallback; - type?: undefined; - } - interface UnderlyingSink { - abort?: UnderlyingSinkAbortCallback; - close?: UnderlyingSinkCloseCallback; - start?: UnderlyingSinkStartCallback; - type?: undefined; - write?: UnderlyingSinkWriteCallback; - } - interface ReadableStreamErrorCallback { - (reason: any): void | PromiseLike; - } - interface ReadableStreamAsyncIterator extends NodeJS.AsyncIterator { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - /** This Streams API interface represents a readable stream of byte data. */ - interface ReadableStream { - readonly locked: boolean; - cancel(reason?: any): Promise; - getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; - getReader(): ReadableStreamDefaultReader; - getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; - pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; - pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; - tee(): [ReadableStream, ReadableStream]; - values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator; - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - const ReadableStream: { - prototype: ReadableStream; - from(iterable: Iterable | AsyncIterable): ReadableStream; - new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; - new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - }; - type ReadableStreamReaderMode = "byob"; - interface ReadableStreamGetReaderOptions { - /** - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. - * - * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. - */ - mode?: ReadableStreamReaderMode; - } - type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; - interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { - read(): Promise>; - releaseLock(): void; - } - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ - interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ - read( - view: T, - options?: { - min?: number; - }, - ): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ - releaseLock(): void; - } - const ReadableStreamDefaultReader: { - prototype: ReadableStreamDefaultReader; - new(stream: ReadableStream): ReadableStreamDefaultReader; - }; - const ReadableStreamBYOBReader: { - prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; - }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ - interface ReadableStreamBYOBRequest { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ - readonly view: ArrayBufferView | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ - respond(bytesWritten: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ - respondWithNewView(view: ArrayBufferView): void; - } - const ReadableStreamBYOBRequest: { - prototype: ReadableStreamBYOBRequest; - new(): ReadableStreamBYOBRequest; - }; - interface ReadableByteStreamController { - readonly byobRequest: undefined; - readonly desiredSize: number | null; - close(): void; - enqueue(chunk: ArrayBufferView): void; - error(error?: any): void; - } - const ReadableByteStreamController: { - prototype: ReadableByteStreamController; - new(): ReadableByteStreamController; - }; - interface ReadableStreamDefaultController { - readonly desiredSize: number | null; - close(): void; - enqueue(chunk?: R): void; - error(e?: any): void; - } - const ReadableStreamDefaultController: { - prototype: ReadableStreamDefaultController; - new(): ReadableStreamDefaultController; - }; - interface Transformer { - flush?: TransformerFlushCallback; - readableType?: undefined; - start?: TransformerStartCallback; - transform?: TransformerTransformCallback; - writableType?: undefined; - } - interface TransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - const TransformStream: { - prototype: TransformStream; - new( - transformer?: Transformer, - writableStrategy?: QueuingStrategy, - readableStrategy?: QueuingStrategy, - ): TransformStream; - }; - interface TransformStreamDefaultController { - readonly desiredSize: number | null; - enqueue(chunk?: O): void; - error(reason?: any): void; - terminate(): void; - } - const TransformStreamDefaultController: { - prototype: TransformStreamDefaultController; - new(): TransformStreamDefaultController; - }; - /** - * This Streams API interface provides a standard abstraction for writing - * streaming data to a destination, known as a sink. This object comes with - * built-in back pressure and queuing. - */ - interface WritableStream { - readonly locked: boolean; - abort(reason?: any): Promise; - close(): Promise; - getWriter(): WritableStreamDefaultWriter; - } - const WritableStream: { - prototype: WritableStream; - new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; - }; - /** - * This Streams API interface is the object returned by - * WritableStream.getWriter() and once created locks the < writer to the - * WritableStream ensuring that no other streams can write to the underlying - * sink. - */ - interface WritableStreamDefaultWriter { - readonly closed: Promise; - readonly desiredSize: number | null; - readonly ready: Promise; - abort(reason?: any): Promise; - close(): Promise; - releaseLock(): void; - write(chunk?: W): Promise; - } - const WritableStreamDefaultWriter: { - prototype: WritableStreamDefaultWriter; - new(stream: WritableStream): WritableStreamDefaultWriter; - }; - /** - * This Streams API interface represents a controller allowing control of a - * WritableStream's state. When constructing a WritableStream, the - * underlying sink is given a corresponding WritableStreamDefaultController - * instance to manipulate. - */ - interface WritableStreamDefaultController { - error(e?: any): void; - } - const WritableStreamDefaultController: { - prototype: WritableStreamDefaultController; - new(): WritableStreamDefaultController; - }; - interface QueuingStrategy { - highWaterMark?: number; - size?: QueuingStrategySize; - } - interface QueuingStrategySize { - (chunk?: T): number; - } - interface QueuingStrategyInit { - /** - * Creates a new ByteLengthQueuingStrategy with the provided high water - * mark. - * - * Note that the provided high water mark will not be validated ahead of - * time. Instead, if it is negative, NaN, or not a number, the resulting - * ByteLengthQueuingStrategy will cause the corresponding stream - * constructor to throw. - */ - highWaterMark: number; - } - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface ByteLengthQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const ByteLengthQueuingStrategy: { - prototype: ByteLengthQueuingStrategy; - new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; - }; - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface CountQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const CountQueuingStrategy: { - prototype: CountQueuingStrategy; - new(init: QueuingStrategyInit): CountQueuingStrategy; - }; - interface TextEncoderStream { - /** Returns "utf-8". */ - readonly encoding: "utf-8"; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextEncoderStream: { - prototype: TextEncoderStream; - new(): TextEncoderStream; - }; - interface TextDecoderOptions { - fatal?: boolean; - ignoreBOM?: boolean; - } - type BufferSource = ArrayBufferView | ArrayBuffer; - interface TextDecoderStream { - /** Returns encoding's name, lower cased. */ - readonly encoding: string; - /** Returns `true` if error mode is "fatal", and `false` otherwise. */ - readonly fatal: boolean; - /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ - readonly ignoreBOM: boolean; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextDecoderStream: { - prototype: TextDecoderStream; - new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; - }; - interface CompressionStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - const CompressionStream: { - prototype: CompressionStream; - new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream; - }; - interface DecompressionStream { - readonly writable: WritableStream; - readonly readable: ReadableStream; - } - const DecompressionStream: { - prototype: DecompressionStream; - new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream; - }; - - global { - interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {} - var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T } - ? T - : typeof import("stream/web").ByteLengthQueuingStrategy; - - interface CompressionStream extends _CompressionStream {} - var CompressionStream: typeof globalThis extends { - onmessage: any; - // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. - // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts - ReportingObserver: any; - CompressionStream: infer T; - } ? T - // TS 4.8, 4.9, 5.0 - : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { - prototype: T; - new(format: "deflate" | "deflate-raw" | "gzip"): T; - } - : typeof import("stream/web").CompressionStream; - - interface CountQueuingStrategy extends _CountQueuingStrategy {} - var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T - : typeof import("stream/web").CountQueuingStrategy; - - interface DecompressionStream extends _DecompressionStream {} - var DecompressionStream: typeof globalThis extends { - onmessage: any; - // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. - // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts - ReportingObserver: any; - DecompressionStream: infer T; - } ? T - // TS 4.8, 4.9, 5.0 - : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { - prototype: T; - new(format: "deflate" | "deflate-raw" | "gzip"): T; - } - : typeof import("stream/web").DecompressionStream; - - interface QueuingStrategy extends _QueuingStrategy {} - - interface ReadableByteStreamController extends _ReadableByteStreamController {} - var ReadableByteStreamController: typeof globalThis extends - { onmessage: any; ReadableByteStreamController: infer T } ? T - : typeof import("stream/web").ReadableByteStreamController; - - interface ReadableStream extends _ReadableStream {} - var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T - : typeof import("stream/web").ReadableStream; - - interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {} - var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBReader; - - interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {} - var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBRequest; - - interface ReadableStreamDefaultController extends _ReadableStreamDefaultController {} - var ReadableStreamDefaultController: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultController: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultController; - - interface ReadableStreamDefaultReader extends _ReadableStreamDefaultReader {} - var ReadableStreamDefaultReader: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultReader: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultReader; - - interface TextDecoderStream extends _TextDecoderStream {} - var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T - : typeof import("stream/web").TextDecoderStream; - - interface TextEncoderStream extends _TextEncoderStream {} - var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T - : typeof import("stream/web").TextEncoderStream; - - interface TransformStream extends _TransformStream {} - var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T - : typeof import("stream/web").TransformStream; - - interface TransformStreamDefaultController extends _TransformStreamDefaultController {} - var TransformStreamDefaultController: typeof globalThis extends - { onmessage: any; TransformStreamDefaultController: infer T } ? T - : typeof import("stream/web").TransformStreamDefaultController; - - interface WritableStream extends _WritableStream {} - var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T - : typeof import("stream/web").WritableStream; - - interface WritableStreamDefaultController extends _WritableStreamDefaultController {} - var WritableStreamDefaultController: typeof globalThis extends - { onmessage: any; WritableStreamDefaultController: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultController; - - interface WritableStreamDefaultWriter extends _WritableStreamDefaultWriter {} - var WritableStreamDefaultWriter: typeof globalThis extends - { onmessage: any; WritableStreamDefaultWriter: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultWriter; - } -} -declare module "node:stream/web" { - export * from "stream/web"; -} diff --git a/mcp-server/node_modules/@types/node/string_decoder.d.ts b/mcp-server/node_modules/@types/node/string_decoder.d.ts deleted file mode 100644 index d08cbf6..0000000 --- a/mcp-server/node_modules/@types/node/string_decoder.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * The `node:string_decoder` module provides an API for decoding `Buffer` objects - * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 - * characters. It can be accessed using: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * ``` - * - * The following example shows the basic use of the `StringDecoder` class. - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * const cent = Buffer.from([0xC2, 0xA2]); - * console.log(decoder.write(cent)); // Prints: ¢ - * - * const euro = Buffer.from([0xE2, 0x82, 0xAC]); - * console.log(decoder.write(euro)); // Prints: € - * ``` - * - * When a `Buffer` instance is written to the `StringDecoder` instance, an - * internal buffer is used to ensure that the decoded string does not contain - * any incomplete multibyte characters. These are held in the buffer until the - * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. - * - * In the following example, the three UTF-8 encoded bytes of the European Euro - * symbol (`€`) are written over three separate operations: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * decoder.write(Buffer.from([0xE2])); - * decoder.write(Buffer.from([0x82])); - * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: € - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js) - */ -declare module "string_decoder" { - class StringDecoder { - constructor(encoding?: BufferEncoding); - /** - * Returns a decoded string, ensuring that any incomplete multibyte characters at - * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the - * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`. - * @since v0.1.99 - * @param buffer The bytes to decode. - */ - write(buffer: string | NodeJS.ArrayBufferView): string; - /** - * Returns any remaining input stored in the internal buffer as a string. Bytes - * representing incomplete UTF-8 and UTF-16 characters will be replaced with - * substitution characters appropriate for the character encoding. - * - * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. - * After `end()` is called, the `stringDecoder` object can be reused for new input. - * @since v0.9.3 - * @param buffer The bytes to decode. - */ - end(buffer?: string | NodeJS.ArrayBufferView): string; - } -} -declare module "node:string_decoder" { - export * from "string_decoder"; -} diff --git a/mcp-server/node_modules/@types/node/test.d.ts b/mcp-server/node_modules/@types/node/test.d.ts deleted file mode 100644 index ec17fdf..0000000 --- a/mcp-server/node_modules/@types/node/test.d.ts +++ /dev/null @@ -1,1787 +0,0 @@ -/** - * The `node:test` module facilitates the creation of JavaScript tests. - * To access it: - * - * ```js - * import test from 'node:test'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'test'; - * ``` - * - * Tests created via the `test` module consist of a single function that is - * processed in one of three ways: - * - * 1. A synchronous function that is considered failing if it throws an exception, - * and is considered passing otherwise. - * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills. - * 3. A function that receives a callback function. If the callback receives any - * truthy value as its first argument, the test is considered failing. If a - * falsy value is passed as the first argument to the callback, the test is - * considered passing. If the test function receives a callback function and - * also returns a `Promise`, the test will fail. - * - * The following example illustrates how tests are written using the `test` module. - * - * ```js - * test('synchronous passing test', (t) => { - * // This test passes because it does not throw an exception. - * assert.strictEqual(1, 1); - * }); - * - * test('synchronous failing test', (t) => { - * // This test fails because it throws an exception. - * assert.strictEqual(1, 2); - * }); - * - * test('asynchronous passing test', async (t) => { - * // This test passes because the Promise returned by the async - * // function is settled and not rejected. - * assert.strictEqual(1, 1); - * }); - * - * test('asynchronous failing test', async (t) => { - * // This test fails because the Promise returned by the async - * // function is rejected. - * assert.strictEqual(1, 2); - * }); - * - * test('failing test using Promises', (t) => { - * // Promises can be used directly as well. - * return new Promise((resolve, reject) => { - * setImmediate(() => { - * reject(new Error('this will cause the test to fail')); - * }); - * }); - * }); - * - * test('callback passing test', (t, done) => { - * // done() is the callback function. When the setImmediate() runs, it invokes - * // done() with no arguments. - * setImmediate(done); - * }); - * - * test('callback failing test', (t, done) => { - * // When the setImmediate() runs, done() is invoked with an Error object and - * // the test fails. - * setImmediate(() => { - * done(new Error('callback failure')); - * }); - * }); - * ``` - * - * If any tests fail, the process exit code is set to `1`. - * @since v18.0.0, v16.17.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test.js) - */ -declare module "node:test" { - import { AssertMethodNames } from "node:assert"; - import { Readable } from "node:stream"; - import TestFn = test.TestFn; - import TestOptions = test.TestOptions; - /** - * The `test()` function is the value imported from the `test` module. Each - * invocation of this function results in reporting the test to the `TestsStream`. - * - * The `TestContext` object passed to the `fn` argument can be used to perform - * actions related to the current test. Examples include skipping the test, adding - * additional diagnostic information, or creating subtests. - * - * `test()` returns a `Promise` that fulfills once the test completes. - * if `test()` is called within a suite, it fulfills immediately. - * The return value can usually be discarded for top level tests. - * However, the return value from subtests should be used to prevent the parent - * test from finishing first and cancelling the subtest - * as shown in the following example. - * - * ```js - * test('top level test', async (t) => { - * // The setTimeout() in the following subtest would cause it to outlive its - * // parent test if 'await' is removed on the next line. Once the parent test - * // completes, it will cancel any outstanding subtests. - * await t.test('longer running subtest', async (t) => { - * return new Promise((resolve, reject) => { - * setTimeout(resolve, 1000); - * }); - * }); - * }); - * ``` - * - * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for - * canceling tests because a running test might block the application thread and - * thus prevent the scheduled cancellation. - * @since v18.0.0, v16.17.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite. - */ - function test(name?: string, fn?: TestFn): Promise; - function test(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function test(options?: TestOptions, fn?: TestFn): Promise; - function test(fn?: TestFn): Promise; - namespace test { - export { test }; - export { suite as describe, test as it }; - } - namespace test { - /** - * **Note:** `shard` is used to horizontally parallelize test running across - * machines or processes, ideal for large-scale executions across varied - * environments. It's incompatible with `watch` mode, tailored for rapid - * code iteration by automatically rerunning tests on file changes. - * - * ```js - * import { tap } from 'node:test/reporters'; - * import { run } from 'node:test'; - * import process from 'node:process'; - * import path from 'node:path'; - * - * run({ files: [path.resolve('./tests/test.js')] }) - * .compose(tap) - * .pipe(process.stdout); - * ``` - * @since v18.9.0, v16.19.0 - * @param options Configuration options for running tests. - */ - function run(options?: RunOptions): TestsStream; - /** - * The `suite()` function is imported from the `node:test` module. - * @param name The name of the suite, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the suite. This supports the same options as {@link test}. - * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object. - * @return Immediately fulfilled with `undefined`. - * @since v20.13.0 - */ - function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function suite(name?: string, fn?: SuiteFn): Promise; - function suite(options?: TestOptions, fn?: SuiteFn): Promise; - function suite(fn?: SuiteFn): Promise; - namespace suite { - /** - * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`. - * @since v20.13.0 - */ - function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function skip(name?: string, fn?: SuiteFn): Promise; - function skip(options?: TestOptions, fn?: SuiteFn): Promise; - function skip(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`. - * @since v20.13.0 - */ - function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function todo(name?: string, fn?: SuiteFn): Promise; - function todo(options?: TestOptions, fn?: SuiteFn): Promise; - function todo(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`. - * @since v20.13.0 - */ - function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function only(name?: string, fn?: SuiteFn): Promise; - function only(options?: TestOptions, fn?: SuiteFn): Promise; - function only(fn?: SuiteFn): Promise; - } - /** - * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`. - * @since v20.2.0 - */ - function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function skip(name?: string, fn?: TestFn): Promise; - function skip(options?: TestOptions, fn?: TestFn): Promise; - function skip(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`. - * @since v20.2.0 - */ - function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function todo(name?: string, fn?: TestFn): Promise; - function todo(options?: TestOptions, fn?: TestFn): Promise; - function todo(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`. - * @since v20.2.0 - */ - function only(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function only(name?: string, fn?: TestFn): Promise; - function only(options?: TestOptions, fn?: TestFn): Promise; - function only(fn?: TestFn): Promise; - /** - * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - */ - type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise; - /** - * The type of a suite test function. The argument to this function is a {@link SuiteContext} object. - */ - type SuiteFn = (s: SuiteContext) => void | Promise; - interface TestShard { - /** - * A positive integer between 1 and `total` that specifies the index of the shard to run. - */ - index: number; - /** - * A positive integer that specifies the total number of shards to split the test files to. - */ - total: number; - } - interface RunOptions { - /** - * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file. - * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * An array containing the list of files to run. If omitted, files are run according to the - * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model). - */ - files?: readonly string[] | undefined; - /** - * Configures the test runner to exit the process once all known - * tests have finished executing even if the event loop would - * otherwise remain active. - * @default false - */ - forceExit?: boolean | undefined; - /** - * Sets inspector port of test child process. - * If a nullish value is provided, each process gets its own port, - * incremented from the primary's `process.debugPort`. - * @default undefined - */ - inspectPort?: number | (() => number) | undefined; - /** - * If truthy, the test context will only run tests that have the `only` option set - */ - only?: boolean | undefined; - /** - * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run. - * @default undefined - */ - setup?: ((reporter: TestsStream) => void | Promise) | undefined; - /** - * Allows aborting an in-progress test execution. - */ - signal?: AbortSignal | undefined; - /** - * If provided, only run tests whose name matches the provided pattern. - * Strings are interpreted as JavaScript regular expressions. - * @default undefined - */ - testNamePatterns?: string | RegExp | ReadonlyArray | undefined; - /** - * The number of milliseconds after which the test execution will fail. - * If unspecified, subtests inherit this value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - /** - * Whether to run in watch mode or not. - * @default false - */ - watch?: boolean | undefined; - /** - * Running tests in a specific shard. - * @default undefined - */ - shard?: TestShard | undefined; - } - /** - * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests. - * - * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute. - * @since v18.9.0, v16.19.0 - */ - interface TestsStream extends Readable { - addListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - addListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - addListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - addListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - addListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - addListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - addListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - addListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - addListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - addListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - addListener(event: "test:watch:drained", listener: () => void): this; - addListener(event: string, listener: (...args: any[]) => void): this; - emit(event: "test:coverage", data: EventData.TestCoverage): boolean; - emit(event: "test:complete", data: EventData.TestComplete): boolean; - emit(event: "test:dequeue", data: EventData.TestDequeue): boolean; - emit(event: "test:diagnostic", data: EventData.TestDiagnostic): boolean; - emit(event: "test:enqueue", data: EventData.TestEnqueue): boolean; - emit(event: "test:fail", data: EventData.TestFail): boolean; - emit(event: "test:pass", data: EventData.TestPass): boolean; - emit(event: "test:plan", data: EventData.TestPlan): boolean; - emit(event: "test:start", data: EventData.TestStart): boolean; - emit(event: "test:stderr", data: EventData.TestStderr): boolean; - emit(event: "test:stdout", data: EventData.TestStdout): boolean; - emit(event: "test:watch:drained"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - on(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - on(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - on(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - on(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - on(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - on(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - on(event: "test:start", listener: (data: EventData.TestStart) => void): this; - on(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - on(event: "test:watch:drained", listener: () => void): this; - on(event: string, listener: (...args: any[]) => void): this; - once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - once(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - once(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - once(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - once(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - once(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - once(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - once(event: "test:start", listener: (data: EventData.TestStart) => void): this; - once(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - once(event: "test:watch:drained", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependListener(event: "test:watch:drained", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependOnceListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependOnceListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependOnceListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependOnceListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependOnceListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependOnceListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependOnceListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependOnceListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependOnceListener(event: "test:watch:drained", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - } - namespace EventData { - interface Error extends globalThis.Error { - cause: globalThis.Error; - } - interface LocationInfo { - /** - * The column number where the test is defined, or - * `undefined` if the test was run through the REPL. - */ - column?: number; - /** - * The path of the test file, `undefined` if test was run through the REPL. - */ - file?: string; - /** - * The line number where the test is defined, or `undefined` if the test was run through the REPL. - */ - line?: number; - } - interface TestDiagnostic extends LocationInfo { - /** - * The diagnostic message. - */ - message: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestCoverage { - /** - * An object containing the coverage report. - */ - summary: { - /** - * An array of coverage reports for individual files. - */ - files: Array<{ - /** - * The absolute path of the file. - */ - path: string; - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - /** - * An array of functions representing function coverage. - */ - functions: Array<{ - /** - * The name of the function. - */ - name: string; - /** - * The line number where the function is defined. - */ - line: number; - /** - * The number of times the function was called. - */ - count: number; - }>; - /** - * An array of branches representing branch coverage. - */ - branches: Array<{ - /** - * The line number where the branch is defined. - */ - line: number; - /** - * The number of times the branch was taken. - */ - count: number; - }>; - /** - * An array of lines representing line numbers and the number of times they were covered. - */ - lines: Array<{ - /** - * The line number. - */ - line: number; - /** - * The number of times the line was covered. - */ - count: number; - }>; - }>; - /** - * An object containing a summary of coverage for all files. - */ - totals: { - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - }; - /** - * The working directory when code coverage began. This - * is useful for displaying relative path names in case - * the tests changed the working directory of the Node.js process. - */ - workingDirectory: string; - }; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestComplete extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * Whether the test passed or not. - */ - passed: boolean; - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test if it did not pass. - */ - error?: Error; - /** - * The type of the test, used to denote whether this is a suite. - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestDequeue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestEnqueue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestFail extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test. - */ - error: Error; - /** - * The type of the test, used to denote whether this is a suite. - * @since v20.0.0, v19.9.0, v18.17.0 - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPass extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * The type of the test, used to denote whether this is a suite. - * @since 20.0.0, 19.9.0, 18.17.0 - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPlan extends LocationInfo { - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The number of subtests that have ran. - */ - count: number; - } - interface TestStart extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestStderr { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stderr`. - */ - message: string; - } - interface TestStdout { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stdout`. - */ - message: string; - } - } - /** - * An instance of `TestContext` is passed to each test function in order to - * interact with the test runner. However, the `TestContext` constructor is not - * exposed as part of the API. - * @since v18.0.0, v16.17.0 - */ - interface TestContext { - /** - * An object containing assertion methods bound to the test context. - * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans. - * - * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the - * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed** - * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler: - * ```ts - * import { test, type TestContext } from 'node:test'; - * - * // The test function's context parameter must have a type annotation. - * test('example', (t: TestContext) => { - * t.assert.deepStrictEqual(actual, expected); - * }); - * - * // Omitting the type annotation will result in a compilation error. - * test('example', t => { - * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation. - * }); - * ``` - * @since v20.15.0 - */ - readonly assert: TestContextAssert; - /** - * This function is used to create a hook running before subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v20.1.0, v18.17.0 - */ - before(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running before each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - beforeEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook that runs after the current test finishes. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.13.0 - */ - after(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running after each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - afterEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to write diagnostics to the output. Any diagnostic - * information is included at the end of the test's results. This function does - * not return a value. - * - * ```js - * test('top level test', (t) => { - * t.diagnostic('A diagnostic message'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Message to be reported. - */ - diagnostic(message: string): void; - /** - * The name of the test and each of its ancestors, separated by `>`. - * @since v20.16.0 - */ - readonly fullName: string; - /** - * The name of the test. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * Used to set the number of assertions and subtests that are expected to run within the test. - * If the number of assertions and subtests that run does not match the expected count, the test will fail. - * - * To make sure assertions are tracked, the assert functions on `context.assert` must be used, - * instead of importing from the `node:assert` module. - * ```js - * test('top level test', (t) => { - * t.plan(2); - * t.assert.ok('some relevant assertion here'); - * t.test('subtest', () => {}); - * }); - * ``` - * - * When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run: - * ```js - * test('planning with streams', (t, done) => { - * function* generate() { - * yield 'a'; - * yield 'b'; - * yield 'c'; - * } - * const expected = ['a', 'b', 'c']; - * t.plan(expected.length); - * const stream = Readable.from(generate()); - * stream.on('data', (chunk) => { - * t.assert.strictEqual(chunk, expected.shift()); - * }); - * stream.on('end', () => { - * done(); - * }); - * }); - * ``` - * @since v20.15.0 - */ - plan(count: number): void; - /** - * If `shouldRunOnlyTests` is truthy, the test context will only run tests that - * have the `only` option set. Otherwise, all tests are run. If Node.js was not - * started with the `--test-only` command-line option, this function is a - * no-op. - * - * ```js - * test('top level test', (t) => { - * // The test context can be set to run subtests with the 'only' option. - * t.runOnly(true); - * return Promise.all([ - * t.test('this subtest is now skipped'), - * t.test('this subtest is run', { only: true }), - * ]); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param shouldRunOnlyTests Whether or not to run `only` tests. - */ - runOnly(shouldRunOnlyTests: boolean): void; - /** - * ```js - * test('top level test', async (t) => { - * await fetch('some/uri', { signal: t.signal }); - * }); - * ``` - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - /** - * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does - * not terminate execution of the test function. This function does not return a - * value. - * - * ```js - * test('top level test', (t) => { - * // Make sure to return here as well if the test contains additional logic. - * t.skip('this is skipped'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional skip message. - */ - skip(message?: string): void; - /** - * This function adds a `TODO` directive to the test's output. If `message` is - * provided, it is included in the output. Calling `todo()` does not terminate - * execution of the test function. This function does not return a value. - * - * ```js - * test('top level test', (t) => { - * // This test is marked as `TODO` - * t.todo('this is a todo'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional `TODO` message. - */ - todo(message?: string): void; - /** - * This function is used to create subtests under the current test. This function behaves in - * the same fashion as the top level {@link test} function. - * @since v18.0.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. This first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @returns A {@link Promise} resolved with `undefined` once the test completes. - */ - test: typeof test; - /** - * Each test provides its own MockTracker instance. - */ - readonly mock: MockTracker; - } - interface TestContextAssert extends Pick {} - /** - * An instance of `SuiteContext` is passed to each suite function in order to - * interact with the test runner. However, the `SuiteContext` constructor is not - * exposed as part of the API. - * @since v18.7.0, v16.17.0 - */ - interface SuiteContext { - /** - * The name of the suite. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * Can be used to abort test subtasks when the test has been aborted. - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - } - interface TestOptions { - /** - * If a number is provided, then that many tests would run in parallel. - * If truthy, it would run (number of cpu cores - 1) tests in parallel. - * For subtests, it will be `Infinity` tests in parallel. - * If falsy, it would only run one test at a time. - * If unspecified, subtests inherit this value from their parent. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * If truthy, and the test context is configured to run `only` tests, then this test will be - * run. Otherwise, the test is skipped. - * @default false - */ - only?: boolean | undefined; - /** - * Allows aborting an in-progress test. - * @since v18.8.0 - */ - signal?: AbortSignal | undefined; - /** - * If truthy, the test is skipped. If a string is provided, that string is displayed in the - * test results as the reason for skipping the test. - * @default false - */ - skip?: boolean | string | undefined; - /** - * A number of milliseconds the test will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - * @since v18.7.0 - */ - timeout?: number | undefined; - /** - * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in - * the test results as the reason why the test is `TODO`. - * @default false - */ - todo?: boolean | string | undefined; - /** - * The number of assertions and subtests expected to be run in the test. - * If the number of assertions run in the test does not match the number - * specified in the plan, the test will fail. - * @default undefined - * @since v20.15.0 - */ - plan?: number | undefined; - } - /** - * This function creates a hook that runs before executing a suite. - * - * ```js - * describe('tests', async () => { - * before(() => console.log('about to run some test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function before(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after executing a suite. - * - * ```js - * describe('tests', async () => { - * after(() => console.log('finished running tests')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function after(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs before each test in the current suite. - * - * ```js - * describe('tests', async () => { - * beforeEach(() => console.log('about to run a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function beforeEach(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after each test in the current suite. - * The `afterEach()` hook is run even if the test fails. - * - * ```js - * describe('tests', async () => { - * afterEach(() => console.log('finished running a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function afterEach(fn?: HookFn, options?: HookOptions): void; - /** - * The hook function. The first argument is the context in which the hook is called. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any; - /** - * The hook function. The first argument is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any; - /** - * Configuration options for hooks. - * @since v18.8.0 - */ - interface HookOptions { - /** - * Allows aborting an in-progress hook. - */ - signal?: AbortSignal | undefined; - /** - * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - } - interface MockFunctionOptions { - /** - * The number of times that the mock will use the behavior of `implementation`. - * Once the mock function has been called `times` times, - * it will automatically restore the behavior of `original`. - * This value must be an integer greater than zero. - * @default Infinity - */ - times?: number | undefined; - } - interface MockMethodOptions extends MockFunctionOptions { - /** - * If `true`, `object[methodName]` is treated as a getter. - * This option cannot be used with the `setter` option. - */ - getter?: boolean | undefined; - /** - * If `true`, `object[methodName]` is treated as a setter. - * This option cannot be used with the `getter` option. - */ - setter?: boolean | undefined; - } - type Mock = F & { - mock: MockFunctionContext; - }; - interface MockModuleOptions { - /** - * If false, each call to `require()` or `import()` generates a new mock module. - * If true, subsequent calls will return the same module mock, and the mock module is inserted into the CommonJS cache. - * @default false - */ - cache?: boolean | undefined; - /** - * The value to use as the mocked module's default export. - * - * If this value is not provided, ESM mocks do not include a default export. - * If the mock is a CommonJS or builtin module, this setting is used as the value of `module.exports`. - * If this value is not provided, CJS and builtin mocks use an empty object as the value of `module.exports`. - */ - defaultExport?: any; - /** - * An object whose keys and values are used to create the named exports of the mock module. - * - * If the mock is a CommonJS or builtin module, these values are copied onto `module.exports`. - * Therefore, if a mock is created with both named exports and a non-object default export, - * the mock will throw an exception when used as a CJS or builtin module. - */ - namedExports?: object | undefined; - } - /** - * The `MockTracker` class is used to manage mocking functionality. The test runner - * module provides a top level `mock` export which is a `MockTracker` instance. - * Each test also provides its own `MockTracker` instance via the test context's `mock` property. - * @since v19.1.0, v18.13.0 - */ - interface MockTracker { - /** - * This function is used to create a mock function. - * - * The following example creates a mock function that increments a counter by one - * on each invocation. The `times` option is used to modify the mock behavior such - * that the first two invocations add two to the counter instead of one. - * - * ```js - * test('mocks a counting function', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne, addTwo, { times: 2 }); - * - * assert.strictEqual(fn(), 2); - * assert.strictEqual(fn(), 4); - * assert.strictEqual(fn(), 5); - * assert.strictEqual(fn(), 6); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param original An optional function to create a mock on. - * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and - * then restore the behavior of `original`. - * @param options Optional configuration options for the mock function. - * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked function. - */ - fn undefined>( - original?: F, - options?: MockFunctionOptions, - ): Mock; - fn undefined, Implementation extends Function = F>( - original?: F, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock; - /** - * This function is used to create a mock on an existing object method. The - * following example demonstrates how a mock is created on an existing object - * method. - * - * ```js - * test('spies on an object method', (t) => { - * const number = { - * value: 5, - * subtract(a) { - * return this.value - a; - * }, - * }; - * - * t.mock.method(number, 'subtract'); - * assert.strictEqual(number.subtract.mock.calls.length, 0); - * assert.strictEqual(number.subtract(3), 2); - * assert.strictEqual(number.subtract.mock.calls.length, 1); - * - * const call = number.subtract.mock.calls[0]; - * - * assert.deepStrictEqual(call.arguments, [3]); - * assert.strictEqual(call.result, 2); - * assert.strictEqual(call.error, undefined); - * assert.strictEqual(call.target, undefined); - * assert.strictEqual(call.this, number); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param object The object whose method is being mocked. - * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown. - * @param implementation An optional function used as the mock implementation for `object[methodName]`. - * @param options Optional configuration options for the mock method. - * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked method. - */ - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation: Implementation, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method( - object: MockedObject, - methodName: keyof MockedObject, - options: MockMethodOptions, - ): Mock; - method( - object: MockedObject, - methodName: keyof MockedObject, - implementation: Function, - options: MockMethodOptions, - ): Mock; - /** - * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<() => MockedObject[MethodName]>; - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<(() => MockedObject[MethodName]) | Implementation>; - /** - * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<(value: MockedObject[MethodName]) => void>; - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; - /** - * This function is used to mock the exports of ECMAScript modules, CommonJS modules, and Node.js builtin modules. - * Any references to the original module prior to mocking are not impacted. - * - * Only available through the [--experimental-test-module-mocks](https://nodejs.org/api/cli.html#--experimental-test-module-mocks) flag. - * @since v20.18.0 - * @experimental - * @param specifier A string identifying the module to mock. - * @param options Optional configuration options for the mock module. - */ - module(specifier: string, options?: MockModuleOptions): MockModuleContext; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be - * used to reset their behavior or - * otherwise interact with them. - * - * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this - * function manually is recommended. - * @since v19.1.0, v18.13.0 - */ - reset(): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does - * not disassociate the mocks from the `MockTracker` instance. - * @since v19.1.0, v18.13.0 - */ - restoreAll(): void; - readonly timers: MockTimers; - } - const mock: MockTracker; - interface MockFunctionCall< - F extends Function, - ReturnType = F extends (...args: any) => infer T ? T - : F extends abstract new(...args: any) => infer T ? T - : unknown, - Args = F extends (...args: infer Y) => any ? Y - : F extends abstract new(...args: infer Y) => any ? Y - : unknown[], - > { - /** - * An array of the arguments passed to the mock function. - */ - arguments: Args; - /** - * If the mocked function threw then this property contains the thrown value. - */ - error: unknown | undefined; - /** - * The value returned by the mocked function. - * - * If the mocked function threw, it will be `undefined`. - */ - result: ReturnType | undefined; - /** - * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation. - */ - stack: Error; - /** - * If the mocked function is a constructor, this field contains the class being constructed. - * Otherwise this will be `undefined`. - */ - target: F extends abstract new(...args: any) => any ? F : undefined; - /** - * The mocked function's `this` value. - */ - this: unknown; - } - /** - * The `MockFunctionContext` class is used to inspect or manipulate the behavior of - * mocks created via the `MockTracker` APIs. - * @since v19.1.0, v18.13.0 - */ - interface MockFunctionContext { - /** - * A getter that returns a copy of the internal array used to track calls to the - * mock. Each entry in the array is an object with the following properties. - * @since v19.1.0, v18.13.0 - */ - readonly calls: MockFunctionCall[]; - /** - * This function returns the number of times that this mock has been invoked. This - * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array. - * @since v19.1.0, v18.13.0 - * @return The number of times that this mock has been invoked. - */ - callCount(): number; - /** - * This function is used to change the behavior of an existing mock. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, and then changes the mock implementation to a different function. - * - * ```js - * test('changes a mock behavior', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementation(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 5); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's new implementation. - */ - mockImplementation(implementation: F): void; - /** - * This function is used to change the behavior of an existing mock for a single - * invocation. Once invocation `onCall` has occurred, the mock will revert to - * whatever behavior it would have used had `mockImplementationOnce()` not been - * called. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, changes the mock implementation to a different function for the - * next invocation, and then resumes its previous behavior. - * - * ```js - * test('changes a mock behavior once', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementationOnce(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 4); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`. - * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown. - */ - mockImplementationOnce(implementation: F, onCall?: number): void; - /** - * Resets the call history of the mock function. - * @since v19.3.0, v18.13.0 - */ - resetCalls(): void; - /** - * Resets the implementation of the mock function to its original behavior. The - * mock can still be used after calling this function. - * @since v19.1.0, v18.13.0 - */ - restore(): void; - } - /** - * @since v20.18.0 - * @experimental - */ - interface MockModuleContext { - /** - * Resets the implementation of the mock module. - * @since v20.18.0 - */ - restore(): void; - } - interface MockTimersOptions { - apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">; - now?: number | Date | undefined; - } - /** - * Mocking timers is a technique commonly used in software testing to simulate and - * control the behavior of timers, such as `setInterval` and `setTimeout`, - * without actually waiting for the specified time intervals. - * - * The MockTimers API also allows for mocking of the `Date` constructor and - * `setImmediate`/`clearImmediate` functions. - * - * The `MockTracker` provides a top-level `timers` export - * which is a `MockTimers` instance. - * @since v20.4.0 - * @experimental - */ - interface MockTimers { - /** - * Enables timer mocking for the specified timers. - * - * **Note:** When you enable mocking for a specific timer, its associated - * clear function will also be implicitly mocked. - * - * **Note:** Mocking `Date` will affect the behavior of the mocked timers - * as they use the same internal clock. - * - * Example usage without setting initial time: - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); - * ``` - * - * The above example enables mocking for the `Date` constructor, `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, - * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked. - * - * Example usage with initial time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: 1000 }); - * ``` - * - * Example usage with initial Date object as time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: new Date() }); - * ``` - * - * Alternatively, if you call `mock.timers.enable()` without any parameters: - * - * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. - * - * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, - * and `globalThis` will be mocked. - * The `Date` constructor from `globalThis` will be mocked. - * - * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can - * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date - * object. It can either be a positive integer, or another Date object. - * @since v20.4.0 - */ - enable(options?: MockTimersOptions): void; - /** - * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. - * Note: This method will execute any mocked timers that are in the past from the new time. - * In the below example we are setting a new time for the mocked date. - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * test('sets the time of a date object', (context) => { - * // Optionally choose what to mock - * context.mock.timers.enable({ apis: ['Date'], now: 100 }); - * assert.strictEqual(Date.now(), 100); - * // Advance in time will also advance the date - * context.mock.timers.setTime(1000); - * context.mock.timers.tick(200); - * assert.strictEqual(Date.now(), 1200); - * }); - * ``` - */ - setTime(time: number): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTimers` instance and disassociates the mocks - * from the `MockTracker` instance. - * - * **Note:** After each test completes, this function is called on - * the test context's `MockTracker`. - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.reset(); - * ``` - * @since v20.4.0 - */ - reset(): void; - /** - * Advances time for all mocked timers. - * - * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts - * only positive numbers. In Node.js, `setTimeout` with negative numbers is - * only supported for web compatibility reasons. - * - * The following example mocks a `setTimeout` function and - * by using `.tick` advances in - * time triggering all pending timers. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Alternativelly, the `.tick` function can be called many times - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * const nineSecs = 9000; - * setTimeout(fn, nineSecs); - * - * const twoSeconds = 3000; - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Advancing time using `.tick` will also advance the time for any `Date` object - * created after the mock was enabled (if `Date` was also set to be mocked). - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * assert.strictEqual(Date.now(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * assert.strictEqual(fn.mock.callCount(), 1); - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * @since v20.4.0 - */ - tick(milliseconds: number): void; - /** - * Triggers all pending mocked timers immediately. If the `Date` object is also - * mocked, it will also advance the `Date` object to the furthest timer's time. - * - * The example below triggers all pending timers immediately, - * causing them to execute without any delay. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('runAll functions following the given order', (context) => { - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * const results = []; - * setTimeout(() => results.push(1), 9999); - * - * // Notice that if both timers have the same timeout, - * // the order of execution is guaranteed - * setTimeout(() => results.push(3), 8888); - * setTimeout(() => results.push(2), 8888); - * - * assert.deepStrictEqual(results, []); - * - * context.mock.timers.runAll(); - * assert.deepStrictEqual(results, [3, 2, 1]); - * // The Date object is also advanced to the furthest timer's time - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * - * **Note:** The `runAll()` function is specifically designed for - * triggering timers in the context of timer mocking. - * It does not have any effect on real-time system - * clocks or actual timers outside of the mocking environment. - * @since v20.4.0 - */ - runAll(): void; - /** - * Calls {@link MockTimers.reset()}. - */ - [Symbol.dispose](): void; - } - } - type FunctionPropertyNames = { - [K in keyof T]: T[K] extends Function ? K : never; - }[keyof T]; - export = test; -} - -/** - * The `node:test/reporters` module exposes the builtin-reporters for `node:test`. - * To access it: - * - * ```js - * import test from 'node:test/reporters'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'test/reporters'; - * ``` - * @since v19.9.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test/reporters.js) - */ -declare module "node:test/reporters" { - import { Transform, TransformOptions } from "node:stream"; - import { EventData } from "node:test"; - - type TestEvent = - | { type: "test:coverage"; data: EventData.TestCoverage } - | { type: "test:complete"; data: EventData.TestComplete } - | { type: "test:dequeue"; data: EventData.TestDequeue } - | { type: "test:diagnostic"; data: EventData.TestDiagnostic } - | { type: "test:enqueue"; data: EventData.TestEnqueue } - | { type: "test:fail"; data: EventData.TestFail } - | { type: "test:pass"; data: EventData.TestPass } - | { type: "test:plan"; data: EventData.TestPlan } - | { type: "test:start"; data: EventData.TestStart } - | { type: "test:stderr"; data: EventData.TestStderr } - | { type: "test:stdout"; data: EventData.TestStdout } - | { type: "test:watch:drained"; data: undefined }; - type TestEventGenerator = AsyncGenerator; - - /** - * The `dot` reporter outputs the test results in a compact format, - * where each passing test is represented by a `.`, - * and each failing test is represented by a `X`. - * @since v20.0.0 - */ - function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>; - /** - * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format. - * @since v20.0.0 - */ - function tap(source: TestEventGenerator): AsyncGenerator; - /** - * The `spec` reporter outputs the test results in a human-readable format. - * @since v20.0.0 - */ - class SpecReporter extends Transform { - constructor(); - } - /** - * The `junit` reporter outputs test results in a jUnit XML format. - * @since v21.0.0 - */ - function junit(source: TestEventGenerator): AsyncGenerator; - class LcovReporter extends Transform { - constructor(opts?: Omit); - } - /** - * The `lcov` reporter outputs test coverage when used with the - * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-test-coverage) flag. - * @since v22.0.0 - */ - const lcov: LcovReporter; - - export { dot, junit, lcov, SpecReporter as spec, tap, TestEvent }; -} diff --git a/mcp-server/node_modules/@types/node/timers.d.ts b/mcp-server/node_modules/@types/node/timers.d.ts deleted file mode 100644 index 57a8d9f..0000000 --- a/mcp-server/node_modules/@types/node/timers.d.ts +++ /dev/null @@ -1,286 +0,0 @@ -/** - * The `timer` module exposes a global API for scheduling functions to - * be called at some future period of time. Because the timer functions are - * globals, there is no need to import `node:timers` to use the API. - * - * The timer functions within Node.js implement a similar API as the timers API - * provided by Web Browsers but use a different internal implementation that is - * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers.js) - */ -declare module "timers" { - import { Abortable } from "node:events"; - import * as promises from "node:timers/promises"; - export interface TimerOptions extends Abortable { - /** - * Set to `false` to indicate that the scheduled `Timeout` - * should not require the Node.js event loop to remain active. - * @default true - */ - ref?: boolean | undefined; - } - global { - namespace NodeJS { - /** - * This object is created internally and is returned from `setImmediate()`. It - * can be passed to `clearImmediate()` in order to cancel the scheduled - * actions. - * - * By default, when an immediate is scheduled, the Node.js event loop will continue - * running as long as the immediate is active. The `Immediate` object returned by - * `setImmediate()` exports both `immediate.ref()` and `immediate.unref()` - * functions that can be used to control this default behavior. - */ - interface Immediate extends RefCounted, Disposable { - /** - * If true, the `Immediate` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Immediate` is active. Calling `immediate.ref()` multiple times will have no - * effect. - * - * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary - * to call `immediate.ref()` unless `immediate.unref()` had been called previously. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - ref(): this; - /** - * When called, the active `Immediate` object will not require the Node.js event - * loop to remain active. If there is no other activity keeping the event loop - * running, the process may exit before the `Immediate` object's callback is - * invoked. Calling `immediate.unref()` multiple times will have no effect. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - unref(): this; - /** - * Cancels the immediate. This is similar to calling `clearImmediate()`. - * @since v20.5.0, v18.18.0 - * @experimental - */ - [Symbol.dispose](): void; - _onImmediate(...args: any[]): void; - } - // Legacy interface used in Node.js v9 and prior - /** @deprecated Use `NodeJS.Timeout` instead. */ - interface Timer extends RefCounted { - hasRef(): boolean; - refresh(): this; - [Symbol.toPrimitive](): number; - } - /** - * This object is created internally and is returned from `setTimeout()` and - * `setInterval()`. It can be passed to either `clearTimeout()` or - * `clearInterval()` in order to cancel the scheduled actions. - * - * By default, when a timer is scheduled using either `setTimeout()` or - * `setInterval()`, the Node.js event loop will continue running as long as the - * timer is active. Each of the `Timeout` objects returned by these functions - * export both `timeout.ref()` and `timeout.unref()` functions that can be used to - * control this default behavior. - */ - interface Timeout extends RefCounted, Disposable, Timer { - /** - * Cancels the timeout. - * @since v0.9.1 - * @legacy Use `clearTimeout()` instead. - * @returns a reference to `timeout` - */ - close(): this; - /** - * If true, the `Timeout` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Timeout` is active. Calling `timeout.ref()` multiple times will have no effect. - * - * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary - * to call `timeout.ref()` unless `timeout.unref()` had been called previously. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - ref(): this; - /** - * Sets the timer's start time to the current time, and reschedules the timer to - * call its callback at the previously specified duration adjusted to the current - * time. This is useful for refreshing a timer without allocating a new - * JavaScript object. - * - * Using this on a timer that has already called its callback will reactivate the - * timer. - * @since v10.2.0 - * @returns a reference to `timeout` - */ - refresh(): this; - /** - * When called, the active `Timeout` object will not require the Node.js event loop - * to remain active. If there is no other activity keeping the event loop running, - * the process may exit before the `Timeout` object's callback is invoked. Calling - * `timeout.unref()` multiple times will have no effect. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - unref(): this; - /** - * Coerce a `Timeout` to a primitive. The primitive can be used to - * clear the `Timeout`. The primitive can only be used in the - * same thread where the timeout was created. Therefore, to use it - * across `worker_threads` it must first be passed to the correct - * thread. This allows enhanced compatibility with browser - * `setTimeout()` and `setInterval()` implementations. - * @since v14.9.0, v12.19.0 - */ - [Symbol.toPrimitive](): number; - /** - * Cancels the timeout. - * @since v20.5.0, v18.18.0 - * @experimental - */ - [Symbol.dispose](): void; - _onTimeout(...args: any[]): void; - } - } - /** - * Schedules the "immediate" execution of the `callback` after I/O events' - * callbacks. - * - * When multiple calls to `setImmediate()` are made, the `callback` functions are - * queued for execution in the order in which they are created. The entire callback - * queue is processed every event loop iteration. If an immediate timer is queued - * from inside an executing callback, that timer will not be triggered until the - * next event loop iteration. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setImmediate()`. - * @since v0.9.1 - * @param callback The function to call at the end of this turn of - * the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout) - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearImmediate()` - */ - function setImmediate( - callback: (...args: TArgs) => void, - ...args: TArgs - ): NodeJS.Immediate; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setImmediate(callback: (_: void) => void): NodeJS.Immediate; - namespace setImmediate { - import __promisify__ = promises.setImmediate; - export { __promisify__ }; - } - /** - * Schedules repeated execution of `callback` every `delay` milliseconds. - * - * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be - * set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setInterval()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearInterval()` - */ - function setInterval( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setInterval(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - /** - * Schedules execution of a one-time `callback` after `delay` milliseconds. - * - * The `callback` will likely not be invoked in precisely `delay` milliseconds. - * Node.js makes no guarantees about the exact timing of when callbacks will fire, - * nor of their ordering. The callback will be called as close as possible to the - * time specified. - * - * When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay` - * will be set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setTimeout()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearTimeout()` - */ - function setTimeout( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - namespace setTimeout { - import __promisify__ = promises.setTimeout; - export { __promisify__ }; - } - /** - * Cancels an `Immediate` object created by `setImmediate()`. - * @since v0.9.1 - * @param immediate An `Immediate` object as returned by `setImmediate()`. - */ - function clearImmediate(immediate: NodeJS.Immediate | undefined): void; - /** - * Cancels a `Timeout` object created by `setInterval()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setInterval()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * Cancels a `Timeout` object created by `setTimeout()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setTimeout()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * The `queueMicrotask()` method queues a microtask to invoke `callback`. If - * `callback` throws an exception, the `process` object `'uncaughtException'` - * event will be emitted. - * - * The microtask queue is managed by V8 and may be used in a similar manner to - * the `process.nextTick()` queue, which is managed by Node.js. The - * `process.nextTick()` queue is always processed before the microtask queue - * within each turn of the Node.js event loop. - * @since v11.0.0 - * @param callback Function to be queued. - */ - function queueMicrotask(callback: () => void): void; - } - import clearImmediate = globalThis.clearImmediate; - import clearInterval = globalThis.clearInterval; - import clearTimeout = globalThis.clearTimeout; - import setImmediate = globalThis.setImmediate; - import setInterval = globalThis.setInterval; - import setTimeout = globalThis.setTimeout; - export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout }; -} -declare module "node:timers" { - export * from "timers"; -} diff --git a/mcp-server/node_modules/@types/node/timers/promises.d.ts b/mcp-server/node_modules/@types/node/timers/promises.d.ts deleted file mode 100644 index 29d7ff0..0000000 --- a/mcp-server/node_modules/@types/node/timers/promises.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * The `timers/promises` API provides an alternative set of timer functions - * that return `Promise` objects. The API is accessible via - * `require('node:timers/promises')`. - * - * ```js - * import { - * setTimeout, - * setImmediate, - * setInterval, - * } from 'node:timers/promises'; - * ``` - * @since v15.0.0 - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers/promises.js) - */ -declare module "timers/promises" { - import { TimerOptions } from "node:timers"; - /** - * ```js - * import { - * setTimeout, - * } from 'node:timers/promises'; - * - * const res = await setTimeout(100, 'result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param delay The number of milliseconds to wait before fulfilling the - * promise. **Default:** `1`. - * @param value A value with which the promise is fulfilled. - */ - function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; - /** - * ```js - * import { - * setImmediate, - * } from 'node:timers/promises'; - * - * const res = await setImmediate('result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param value A value with which the promise is fulfilled. - */ - function setImmediate(value?: T, options?: TimerOptions): Promise; - /** - * Returns an async iterator that generates values in an interval of `delay` ms. - * If `ref` is `true`, you need to call `next()` of async iterator explicitly - * or implicitly to keep the event loop alive. - * - * ```js - * import { - * setInterval, - * } from 'node:timers/promises'; - * - * const interval = 100; - * for await (const startTime of setInterval(interval, Date.now())) { - * const now = Date.now(); - * console.log(now); - * if ((now - startTime) > 1000) - * break; - * } - * console.log(Date.now()); - * ``` - * @since v15.9.0 - * @param delay The number of milliseconds to wait between iterations. - * **Default:** `1`. - * @param value A value with which the iterator returns. - */ - function setInterval(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator; - interface Scheduler { - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent - * to calling `timersPromises.setTimeout(delay, undefined, options)` except that - * the `ref` option is not supported. - * - * ```js - * import { scheduler } from 'node:timers/promises'; - * - * await scheduler.wait(1000); // Wait one second before continuing - * ``` - * @since v17.3.0, v16.14.0 - * @experimental - * @param delay The number of milliseconds to wait before resolving the - * promise. - */ - wait(delay: number, options?: { signal?: AbortSignal }): Promise; - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.yield()` is equivalent to calling - * `timersPromises.setImmediate()` with no arguments. - * @since v17.3.0, v16.14.0 - * @experimental - */ - yield(): Promise; - } - const scheduler: Scheduler; -} -declare module "node:timers/promises" { - export * from "timers/promises"; -} diff --git a/mcp-server/node_modules/@types/node/tls.d.ts b/mcp-server/node_modules/@types/node/tls.d.ts deleted file mode 100644 index 948b737..0000000 --- a/mcp-server/node_modules/@types/node/tls.d.ts +++ /dev/null @@ -1,1255 +0,0 @@ -/** - * The `node:tls` module provides an implementation of the Transport Layer Security - * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. - * The module can be accessed using: - * - * ```js - * import tls from 'node:tls'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tls.js) - */ -declare module "tls" { - import { NonSharedBuffer } from "node:buffer"; - import { X509Certificate } from "node:crypto"; - import * as net from "node:net"; - import * as stream from "stream"; - const CLIENT_RENEG_LIMIT: number; - const CLIENT_RENEG_WINDOW: number; - interface Certificate { - /** - * Country code. - */ - C: string; - /** - * Street. - */ - ST: string; - /** - * Locality. - */ - L: string; - /** - * Organization. - */ - O: string; - /** - * Organizational unit. - */ - OU: string; - /** - * Common name. - */ - CN: string; - } - interface PeerCertificate { - /** - * `true` if a Certificate Authority (CA), `false` otherwise. - * @since v18.13.0 - */ - ca: boolean; - /** - * The DER encoded X.509 certificate data. - */ - raw: NonSharedBuffer; - /** - * The certificate subject. - */ - subject: Certificate; - /** - * The certificate issuer, described in the same terms as the `subject`. - */ - issuer: Certificate; - /** - * The date-time the certificate is valid from. - */ - valid_from: string; - /** - * The date-time the certificate is valid to. - */ - valid_to: string; - /** - * The certificate serial number, as a hex string. - */ - serialNumber: string; - /** - * The SHA-1 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint: string; - /** - * The SHA-256 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint256: string; - /** - * The SHA-512 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint512: string; - /** - * The extended key usage, a set of OIDs. - */ - ext_key_usage?: string[]; - /** - * A string containing concatenated names for the subject, - * an alternative to the `subject` names. - */ - subjectaltname?: string; - /** - * An array describing the AuthorityInfoAccess, used with OCSP. - */ - infoAccess?: NodeJS.Dict; - /** - * For RSA keys: The RSA bit size. - * - * For EC keys: The key size in bits. - */ - bits?: number; - /** - * The RSA exponent, as a string in hexadecimal number notation. - */ - exponent?: string; - /** - * The RSA modulus, as a hexadecimal string. - */ - modulus?: string; - /** - * The public key. - */ - pubkey?: NonSharedBuffer; - /** - * The ASN.1 name of the OID of the elliptic curve. - * Well-known curves are identified by an OID. - * While it is unusual, it is possible that the curve - * is identified by its mathematical properties, - * in which case it will not have an OID. - */ - asn1Curve?: string; - /** - * The NIST name for the elliptic curve, if it has one - * (not all well-known curves have been assigned names by NIST). - */ - nistCurve?: string; - } - interface DetailedPeerCertificate extends PeerCertificate { - /** - * The issuer certificate object. - * For self-signed certificates, this may be a circular reference. - */ - issuerCertificate: DetailedPeerCertificate; - } - interface CipherNameAndProtocol { - /** - * The cipher name. - */ - name: string; - /** - * SSL/TLS protocol version. - */ - version: string; - /** - * IETF name for the cipher suite. - */ - standardName: string; - } - interface EphemeralKeyInfo { - /** - * The supported types are 'DH' and 'ECDH'. - */ - type: string; - /** - * The name property is available only when type is 'ECDH'. - */ - name?: string | undefined; - /** - * The size of parameter of an ephemeral key exchange. - */ - size: number; - } - interface KeyObject { - /** - * Private keys in PEM format. - */ - pem: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface PxfObject { - /** - * PFX or PKCS12 encoded private key and certificate chain. - */ - buf: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { - /** - * If true the TLS socket will be instantiated in server-mode. - * Defaults to false. - */ - isServer?: boolean | undefined; - /** - * An optional net.Server instance. - */ - server?: net.Server | undefined; - /** - * An optional Buffer instance containing a TLS session. - */ - session?: Buffer | undefined; - /** - * If true, specifies that the OCSP status request extension will be - * added to the client hello and an 'OCSPResponse' event will be - * emitted on the socket before establishing a secure communication - */ - requestOCSP?: boolean | undefined; - } - /** - * Performs transparent encryption of written data and all required TLS - * negotiation. - * - * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. - * - * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the - * connection is open. - * @since v0.11.4 - */ - class TLSSocket extends net.Socket { - /** - * Construct a new tls.TLSSocket object from an existing TCP socket. - */ - constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); - /** - * This property is `true` if the peer certificate was signed by one of the CAs - * specified when creating the `tls.TLSSocket` instance, otherwise `false`. - * @since v0.11.4 - */ - authorized: boolean; - /** - * Returns the reason why the peer's certificate was not been verified. This - * property is set only when `tlsSocket.authorized === false`. - * @since v0.11.4 - */ - authorizationError: Error; - /** - * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. - * @since v0.11.4 - */ - encrypted: true; - /** - * String containing the selected ALPN protocol. - * Before a handshake has completed, this value is always null. - * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. - */ - alpnProtocol: string | false | null; - /** - * Returns an object representing the local certificate. The returned object has - * some properties corresponding to the fields of the certificate. - * - * See {@link TLSSocket.getPeerCertificate} for an example of the certificate - * structure. - * - * If there is no local certificate, an empty object will be returned. If the - * socket has been destroyed, `null` will be returned. - * @since v11.2.0 - */ - getCertificate(): PeerCertificate | object | null; - /** - * Returns an object containing information on the negotiated cipher suite. - * - * For example, a TLSv1.2 protocol with AES256-SHA cipher: - * - * ```json - * { - * "name": "AES256-SHA", - * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA", - * "version": "SSLv3" - * } - * ``` - * - * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information. - * @since v0.11.4 - */ - getCipher(): CipherNameAndProtocol; - /** - * Returns an object representing the type, name, and size of parameter of - * an ephemeral key exchange in `perfect forward secrecy` on a client - * connection. It returns an empty object when the key exchange is not - * ephemeral. As this is only supported on a client socket; `null` is returned - * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`. - * - * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. - * @since v5.0.0 - */ - getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. - */ - getFinished(): NonSharedBuffer | undefined; - /** - * Returns an object representing the peer's certificate. If the peer does not - * provide a certificate, an empty object will be returned. If the socket has been - * destroyed, `null` will be returned. - * - * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's - * certificate. - * @since v0.11.4 - * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. - * @return A certificate object. - */ - getPeerCertificate(detailed: true): DetailedPeerCertificate; - getPeerCertificate(detailed?: false): PeerCertificate; - getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so - * far. - */ - getPeerFinished(): NonSharedBuffer | undefined; - /** - * Returns a string containing the negotiated SSL/TLS protocol version of the - * current connection. The value `'unknown'` will be returned for connected - * sockets that have not completed the handshaking process. The value `null` will - * be returned for server sockets or disconnected client sockets. - * - * Protocol versions are: - * - * * `'SSLv3'` - * * `'TLSv1'` - * * `'TLSv1.1'` - * * `'TLSv1.2'` - * * `'TLSv1.3'` - * - * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. - * @since v5.7.0 - */ - getProtocol(): string | null; - /** - * Returns the TLS session data or `undefined` if no session was - * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful - * for debugging. - * - * See `Session Resumption` for more information. - * - * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications - * must use the `'session'` event (it also works for TLSv1.2 and below). - * @since v0.11.4 - */ - getSession(): NonSharedBuffer | undefined; - /** - * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information. - * @since v12.11.0 - * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. - */ - getSharedSigalgs(): string[]; - /** - * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. - * - * It may be useful for debugging. - * - * See `Session Resumption` for more information. - * @since v0.11.4 - */ - getTLSTicket(): NonSharedBuffer | undefined; - /** - * See `Session Resumption` for more information. - * @since v0.5.6 - * @return `true` if the session was reused, `false` otherwise. - */ - isSessionReused(): boolean; - /** - * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. - * Upon completion, the `callback` function will be passed a single argument - * that is either an `Error` (if the request failed) or `null`. - * - * This method can be used to request a peer's certificate after the secure - * connection has been established. - * - * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout. - * - * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the - * protocol. - * @since v0.11.8 - * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with - * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. - * @return `true` if renegotiation was initiated, `false` otherwise. - */ - renegotiate( - options: { - rejectUnauthorized?: boolean | undefined; - requestCert?: boolean | undefined; - }, - callback: (err: Error | null) => void, - ): undefined | boolean; - /** - * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket. - * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`. - * @since v22.5.0, v20.17.0 - * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`, - * or a TLS context object created with {@link createSecureContext()} itself. - */ - setKeyCert(context: SecureContextOptions | SecureContext): void; - /** - * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. - * Returns `true` if setting the limit succeeded; `false` otherwise. - * - * Smaller fragment sizes decrease the buffering latency on the client: larger - * fragments are buffered by the TLS layer until the entire fragment is received - * and its integrity is verified; large fragments can span multiple roundtrips - * and their processing can be delayed due to packet loss or reordering. However, - * smaller fragments add extra TLS framing bytes and CPU overhead, which may - * decrease overall server throughput. - * @since v0.11.11 - * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. - */ - setMaxSendFragment(size: number): boolean; - /** - * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts - * to renegotiate will trigger an `'error'` event on the `TLSSocket`. - * @since v8.4.0 - */ - disableRenegotiation(): void; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * - * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by - * OpenSSL's `SSL_trace()` function, the format is undocumented, can change - * without notice, and should not be relied on. - * @since v12.2.0 - */ - enableTrace(): void; - /** - * Returns the peer certificate as an `X509Certificate` object. - * - * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getPeerX509Certificate(): X509Certificate | undefined; - /** - * Returns the local certificate as an `X509Certificate` object. - * - * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getX509Certificate(): X509Certificate | undefined; - /** - * Keying material is used for validations to prevent different kind of attacks in - * network protocols, for example in the specifications of IEEE 802.1X. - * - * Example - * - * ```js - * const keyingMaterial = tlsSocket.exportKeyingMaterial( - * 128, - * 'client finished'); - * - * /* - * Example return value of keyingMaterial: - * - * - * ``` - * - * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more - * information. - * @since v13.10.0, v12.17.0 - * @param length number of bytes to retrieve from keying material - * @param label an application specific label, typically this will be a value from the [IANA Exporter Label - * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). - * @param context Optionally provide a context. - * @return requested bytes of the keying material - */ - exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - addListener(event: "secureConnect", listener: () => void): this; - addListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "OCSPResponse", response: NonSharedBuffer): boolean; - emit(event: "secureConnect"): boolean; - emit(event: "session", session: NonSharedBuffer): boolean; - emit(event: "keylog", line: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - on(event: "secureConnect", listener: () => void): this; - on(event: "session", listener: (session: NonSharedBuffer) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - once(event: "secureConnect", listener: () => void): this; - once(event: "session", listener: (session: NonSharedBuffer) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependListener(event: "secureConnect", listener: () => void): this; - prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependOnceListener(event: "secureConnect", listener: () => void): this; - prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - } - interface CommonConnectionOptions { - /** - * An optional TLS context object from tls.createSecureContext() - */ - secureContext?: SecureContext | undefined; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * @default false - */ - enableTrace?: boolean | undefined; - /** - * If true the server will request a certificate from clients that - * connect and attempt to verify that certificate. Defaults to - * false. - */ - requestCert?: boolean | undefined; - /** - * An array of strings or a Buffer naming possible ALPN protocols. - * (Protocols should be ordered by their priority.) - */ - ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined; - /** - * SNICallback(servername, cb) A function that will be - * called if the client supports SNI TLS extension. Two arguments - * will be passed when called: servername and cb. SNICallback should - * invoke cb(null, ctx), where ctx is a SecureContext instance. - * (tls.createSecureContext(...) can be used to get a proper - * SecureContext.) If SNICallback wasn't provided the default callback - * with high-level API will be used (see below). - */ - SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; - /** - * If true the server will reject any connection which is not - * authorized with the list of supplied CAs. This option only has an - * effect if requestCert is true. - * @default true - */ - rejectUnauthorized?: boolean | undefined; - } - interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { - /** - * Abort the connection if the SSL/TLS handshake does not finish in the - * specified number of milliseconds. A 'tlsClientError' is emitted on - * the tls.Server object whenever a handshake times out. Default: - * 120000 (120 seconds). - */ - handshakeTimeout?: number | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - */ - ticketKeys?: Buffer | undefined; - /** - * @param socket - * @param identity identity parameter sent from the client. - * @return pre-shared key that must either be - * a buffer or `null` to stop the negotiation process. Returned PSK must be - * compatible with the selected cipher's digest. - * - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with the identity provided by the client. - * If the return value is `null` the negotiation process will stop and an - * "unknown_psk_identity" alert message will be sent to the other party. - * If the server wishes to hide the fact that the PSK identity was not known, - * the callback must provide some random data as `psk` to make the connection - * fail with "decrypt_error" before negotiation is finished. - * PSK ciphers are disabled by default, and using TLS-PSK thus - * requires explicitly specifying a cipher suite with the `ciphers` option. - * More information can be found in the RFC 4279. - */ - pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined; - /** - * hint to send to a client to help - * with selecting the identity during TLS-PSK negotiation. Will be ignored - * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be - * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. - */ - pskIdentityHint?: string | undefined; - } - interface PSKCallbackNegotation { - psk: NodeJS.ArrayBufferView; - identity: string; - } - interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { - host?: string | undefined; - port?: number | undefined; - path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. - socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket - checkServerIdentity?: typeof checkServerIdentity | undefined; - servername?: string | undefined; // SNI TLS Extension - session?: Buffer | undefined; - minDHSize?: number | undefined; - lookup?: net.LookupFunction | undefined; - timeout?: number | undefined; - /** - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with optional identity `hint` provided by the server or `null` - * in case of TLS 1.3 where `hint` was removed. - * It will be necessary to provide a custom `tls.checkServerIdentity()` - * for the connection as the default one will try to check hostname/IP - * of the server against the certificate but that's not applicable for PSK - * because there won't be a certificate present. - * More information can be found in the RFC 4279. - * - * @param hint message sent from the server to help client - * decide which identity to use during negotiation. - * Always `null` if TLS 1.3 is used. - * @returns Return `null` to stop the negotiation process. `psk` must be - * compatible with the selected cipher's digest. - * `identity` must use UTF-8 encoding. - */ - pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined; - } - /** - * Accepts encrypted connections using TLS or SSL. - * @since v0.3.2 - */ - class Server extends net.Server { - constructor(secureConnectionListener?: (socket: TLSSocket) => void); - constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); - /** - * The `server.addContext()` method adds a secure context that will be used if - * the client request's SNI name matches the supplied `hostname` (or wildcard). - * - * When there are multiple matching contexts, the most recently added one is - * used. - * @since v0.5.3 - * @param hostname A SNI host name or wildcard (e.g. `'*'`) - * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created - * with {@link createSecureContext} itself. - */ - addContext(hostname: string, context: SecureContextOptions | SecureContext): void; - /** - * Returns the session ticket keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @return A 48-byte buffer containing the session ticket keys. - */ - getTicketKeys(): NonSharedBuffer; - /** - * The `server.setSecureContext()` method replaces the secure context of an - * existing server. Existing connections to the server are not interrupted. - * @since v11.0.0 - * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). - */ - setSecureContext(options: SecureContextOptions): void; - /** - * Sets the session ticket keys. - * - * Changes to the ticket keys are effective only for future server connections. - * Existing or currently pending server connections will use the previous keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @param keys A 48-byte buffer containing the session ticket keys. - */ - setTicketKeys(keys: Buffer): void; - /** - * events.EventEmitter - * 1. tlsClientError - * 2. newSession - * 3. OCSPRequest - * 4. resumeSession - * 5. secureConnection - * 6. keylog - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: TLSSocket): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - } - /** - * @deprecated since v0.11.3 Use `tls.TLSSocket` instead. - */ - interface SecurePair { - encrypted: TLSSocket; - cleartext: TLSSocket; - } - type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; - interface SecureContextOptions { - /** - * If set, this will be called when a client opens a connection using the ALPN extension. - * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, - * respectively containing the server name from the SNI extension (if any) and an array of - * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, - * which will be returned to the client as the selected ALPN protocol, or `undefined`, - * to reject the connection with a fatal alert. If a string is returned that does not match one of - * the client's ALPN protocols, an error will be thrown. - * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. - */ - ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; - /** - * Treat intermediate (non-self-signed) - * certificates in the trust CA certificate list as trusted. - * @since v22.9.0, v20.18.0 - */ - allowPartialTrustChain?: boolean | undefined; - /** - * Optionally override the trusted CA certificates. Default is to trust - * the well-known CAs curated by Mozilla. Mozilla's CAs are completely - * replaced when CAs are explicitly specified using this option. - */ - ca?: string | Buffer | Array | undefined; - /** - * Cert chains in PEM format. One cert chain should be provided per - * private key. Each cert chain should consist of the PEM formatted - * certificate for a provided private key, followed by the PEM - * formatted intermediate certificates (if any), in order, and not - * including the root CA (the root CA must be pre-known to the peer, - * see ca). When providing multiple cert chains, they do not have to - * be in the same order as their private keys in key. If the - * intermediate certificates are not provided, the peer will not be - * able to validate the certificate, and the handshake will fail. - */ - cert?: string | Buffer | Array | undefined; - /** - * Colon-separated list of supported signature algorithms. The list - * can contain digest algorithms (SHA256, MD5 etc.), public key - * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g - * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). - */ - sigalgs?: string | undefined; - /** - * Cipher suite specification, replacing the default. For more - * information, see modifying the default cipher suite. Permitted - * ciphers can be obtained via tls.getCiphers(). Cipher names must be - * uppercased in order for OpenSSL to accept them. - */ - ciphers?: string | undefined; - /** - * Name of an OpenSSL engine which can provide the client certificate. - */ - clientCertEngine?: string | undefined; - /** - * PEM formatted CRLs (Certificate Revocation Lists). - */ - crl?: string | Buffer | Array | undefined; - /** - * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. - * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. - * ECDHE-based perfect forward secrecy will still be available. - */ - dhparam?: string | Buffer | undefined; - /** - * A string describing a named curve or a colon separated list of curve - * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key - * agreement. Set to auto to select the curve automatically. Use - * crypto.getCurves() to obtain a list of available curve names. On - * recent releases, openssl ecparam -list_curves will also display the - * name and description of each available elliptic curve. Default: - * tls.DEFAULT_ECDH_CURVE. - */ - ecdhCurve?: string | undefined; - /** - * Attempt to use the server's cipher suite preferences instead of the - * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be - * set in secureOptions - */ - honorCipherOrder?: boolean | undefined; - /** - * Private keys in PEM format. PEM allows the option of private keys - * being encrypted. Encrypted keys will be decrypted with - * options.passphrase. Multiple keys using different algorithms can be - * provided either as an array of unencrypted key strings or buffers, - * or an array of objects in the form {pem: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted keys will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - key?: string | Buffer | Array | undefined; - /** - * Name of an OpenSSL engine to get private key from. Should be used - * together with privateKeyIdentifier. - */ - privateKeyEngine?: string | undefined; - /** - * Identifier of a private key managed by an OpenSSL engine. Should be - * used together with privateKeyEngine. Should not be set together with - * key, because both options define a private key in different ways. - */ - privateKeyIdentifier?: string | undefined; - /** - * Optionally set the maximum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. - * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using - * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to - * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. - */ - maxVersion?: SecureVersion | undefined; - /** - * Optionally set the minimum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. It is not recommended to use - * less than TLSv1.2, but it may be required for interoperability. - * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using - * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to - * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to - * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. - */ - minVersion?: SecureVersion | undefined; - /** - * Shared passphrase used for a single private key and/or a PFX. - */ - passphrase?: string | undefined; - /** - * PFX or PKCS12 encoded private key and certificate chain. pfx is an - * alternative to providing key and cert individually. PFX is usually - * encrypted, if it is, passphrase will be used to decrypt it. Multiple - * PFX can be provided either as an array of unencrypted PFX buffers, - * or an array of objects in the form {buf: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted PFX will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - pfx?: string | Buffer | Array | undefined; - /** - * Optionally affect the OpenSSL protocol behavior, which is not - * usually necessary. This should be used carefully if at all! Value is - * a numeric bitmask of the SSL_OP_* options from OpenSSL Options - */ - secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options - /** - * Legacy mechanism to select the TLS protocol version to use, it does - * not support independent control of the minimum and maximum version, - * and does not support limiting the protocol to TLSv1.3. Use - * minVersion and maxVersion instead. The possible values are listed as - * SSL_METHODS, use the function names as strings. For example, use - * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow - * any TLS protocol version up to TLSv1.3. It is not recommended to use - * TLS versions less than 1.2, but it may be required for - * interoperability. Default: none, see minVersion. - */ - secureProtocol?: string | undefined; - /** - * Opaque identifier used by servers to ensure session state is not - * shared between applications. Unused by clients. - */ - sessionIdContext?: string | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - * See Session Resumption for more information. - */ - ticketKeys?: Buffer | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - } - interface SecureContext { - context: any; - } - /** - * Verifies the certificate `cert` is issued to `hostname`. - * - * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on - * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). - * - * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as - * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead. - * - * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The - * overwriting function can call `tls.checkServerIdentity()` of course, to augment - * the checks done with additional verification. - * - * This function is only called if the certificate passed all other checks, such as - * being issued by trusted CA (`options.ca`). - * - * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name - * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use - * a custom `options.checkServerIdentity` function that implements the desired behavior. - * @since v0.8.4 - * @param hostname The host name or IP address to verify the certificate against. - * @param cert A `certificate object` representing the peer's certificate. - */ - function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; - /** - * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is - * automatically set as a listener for the `'secureConnection'` event. - * - * The `ticketKeys` options is automatically shared between `node:cluster` module - * workers. - * - * The following illustrates a simple echo server: - * - * ```js - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * - * // This is necessary only if using client certificate authentication. - * requestCert: true, - * - * // This is necessary only if the client uses a self-signed certificate. - * ca: [ fs.readFileSync('client-cert.pem') ], - * }; - * - * const server = tls.createServer(options, (socket) => { - * console.log('server connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * socket.write('welcome!\n'); - * socket.setEncoding('utf8'); - * socket.pipe(socket); - * }); - * server.listen(8000, () => { - * console.log('server bound'); - * }); - * ``` - * - * The server can be tested by connecting to it using the example client from {@link connect}. - * @since v0.3.2 - */ - function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; - function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; - /** - * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. - * - * `tls.connect()` returns a {@link TLSSocket} object. - * - * Unlike the `https` API, `tls.connect()` does not enable the - * SNI (Server Name Indication) extension by default, which may cause some - * servers to return an incorrect certificate or reject the connection - * altogether. To enable SNI, set the `servername` option in addition - * to `host`. - * - * The following illustrates a client for the echo server example from {@link createServer}: - * - * ```js - * // Assumes an echo server that is listening on port 8000. - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * // Necessary only if the server requires client certificate authentication. - * key: fs.readFileSync('client-key.pem'), - * cert: fs.readFileSync('client-cert.pem'), - * - * // Necessary only if the server uses a self-signed certificate. - * ca: [ fs.readFileSync('server-cert.pem') ], - * - * // Necessary only if the server's cert isn't for "localhost". - * checkServerIdentity: () => { return null; }, - * }; - * - * const socket = tls.connect(8000, options, () => { - * console.log('client connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * process.stdin.pipe(socket); - * process.stdin.resume(); - * }); - * socket.setEncoding('utf8'); - * socket.on('data', (data) => { - * console.log(data); - * }); - * socket.on('end', () => { - * console.log('server ends connection'); - * }); - * ``` - * @since v0.11.3 - */ - function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - function connect( - port: number, - host?: string, - options?: ConnectionOptions, - secureConnectListener?: () => void, - ): TLSSocket; - function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - /** - * Creates a new secure pair object with two streams, one of which reads and writes - * the encrypted data and the other of which reads and writes the cleartext data. - * Generally, the encrypted stream is piped to/from an incoming encrypted data - * stream and the cleartext one is used as a replacement for the initial encrypted - * stream. - * - * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties. - * - * Using `cleartext` has the same API as {@link TLSSocket}. - * - * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code: - * - * ```js - * pair = tls.createSecurePair(// ... ); - * pair.encrypted.pipe(socket); - * socket.pipe(pair.encrypted); - * ``` - * - * can be replaced by: - * - * ```js - * secureSocket = tls.TLSSocket(socket, options); - * ``` - * - * where `secureSocket` has the same API as `pair.cleartext`. - * @since v0.3.2 - * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead. - * @param context A secure context object as returned by `tls.createSecureContext()` - * @param isServer `true` to specify that this TLS connection should be opened as a server. - * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. - * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. - */ - function createSecurePair( - context?: SecureContext, - isServer?: boolean, - requestCert?: boolean, - rejectUnauthorized?: boolean, - ): SecurePair; - /** - * `{@link createServer}` sets the default value of the `honorCipherOrder` option - * to `true`, other APIs that create secure contexts leave it unset. - * - * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated - * from `process.argv` as the default value of the `sessionIdContext` option, other - * APIs that create secure contexts have no default value. - * - * The `tls.createSecureContext()` method creates a `SecureContext` object. It is - * usable as an argument to several `tls` APIs, such as `server.addContext()`, - * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option. - * - * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it. - * - * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of - * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). - * - * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength - * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can - * be used to create custom parameters. The key length must be greater than or - * equal to 1024 bits or else an error will be thrown. Although 1024 bits is - * permissible, use 2048 bits or larger for stronger security. - * @since v0.11.13 - */ - function createSecureContext(options?: SecureContextOptions): SecureContext; - /** - * Returns an array with the names of the supported TLS ciphers. The names are - * lower-case for historical reasons, but must be uppercased to be used in - * the `ciphers` option of `{@link createSecureContext}`. - * - * Not all supported ciphers are enabled by default. See - * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v20.x/api/tls.html#modifying-the-default-tls-cipher-suite). - * - * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for - * TLSv1.2 and below. - * - * ```js - * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] - * ``` - * @since v0.10.2 - */ - function getCiphers(): string[]; - /** - * The default curve name to use for ECDH key agreement in a tls server. - * The default value is `'auto'`. See `{@link createSecureContext()}` for further - * information. - * @since v0.11.13 - */ - let DEFAULT_ECDH_CURVE: string; - /** - * The default value of the `maxVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless - * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using - * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the highest maximum is used. - * @since v11.4.0 - */ - let DEFAULT_MAX_VERSION: SecureVersion; - /** - * The default value of the `minVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless - * changed using CLI options. Using `--tls-min-v1.0` sets the default to - * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using - * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the lowest minimum is used. - * @since v11.4.0 - */ - let DEFAULT_MIN_VERSION: SecureVersion; - /** - * The default value of the `ciphers` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported OpenSSL ciphers. - * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless - * changed using CLI options using `--tls-default-ciphers`. - * @since v19.8.0 - */ - let DEFAULT_CIPHERS: string; - /** - * An immutable array of strings representing the root certificates (in PEM format) - * from the bundled Mozilla CA store as supplied by the current Node.js version. - * - * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store - * that is fixed at release time. It is identical on all supported platforms. - * @since v12.3.0 - */ - const rootCertificates: readonly string[]; -} -declare module "node:tls" { - export * from "tls"; -} diff --git a/mcp-server/node_modules/@types/node/trace_events.d.ts b/mcp-server/node_modules/@types/node/trace_events.d.ts deleted file mode 100644 index 6d4aece..0000000 --- a/mcp-server/node_modules/@types/node/trace_events.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -/** - * The `node:trace_events` module provides a mechanism to centralize tracing information - * generated by V8, Node.js core, and userspace code. - * - * Tracing can be enabled with the `--trace-event-categories` command-line flag - * or by using the `trace_events` module. The `--trace-event-categories` flag - * accepts a list of comma-separated category names. - * - * The available categories are: - * - * * `node`: An empty placeholder. - * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) trace data. - * The [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. - * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()` output. - * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.dns.native`: Enables capture of trace data for DNS queries. - * * `node.net.native`: Enables capture of trace data for network. - * * `node.environment`: Enables capture of Node.js Environment milestones. - * * `node.fs.sync`: Enables capture of trace data for file system sync methods. - * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods. - * * `node.fs.async`: Enables capture of trace data for file system async methods. - * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods. - * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v20.x/api/perf_hooks.html) measurements. - * * `node.perf.usertiming`: Enables capture of only Performance API User Timing - * measures and marks. - * * `node.perf.timerify`: Enables capture of only Performance API timerify - * measurements. - * * `node.promises.rejections`: Enables capture of trace data tracking the number - * of unhandled Promise rejections and handled-after-rejections. - * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. - * * `v8`: The [V8](https://nodejs.org/docs/latest-v20.x/api/v8.html) events are GC, compiling, and execution related. - * * `node.http`: Enables capture of trace data for http request / response. - * - * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. - * - * ```bash - * node --trace-event-categories v8,node,node.async_hooks server.js - * ``` - * - * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be - * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default. - * - * ```bash - * node --trace-events-enabled - * - * # is equivalent to - * - * node --trace-event-categories v8,node,node.async_hooks - * ``` - * - * Alternatively, trace events may be enabled using the `node:trace_events` module: - * - * ```js - * import trace_events from 'node:trace_events'; - * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); - * tracing.enable(); // Enable trace event capture for the 'node.perf' category - * - * // do work - * - * tracing.disable(); // Disable trace event capture for the 'node.perf' category - * ``` - * - * Running Node.js with tracing enabled will produce log files that can be opened - * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. - * - * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can - * be specified with `--trace-event-file-pattern` that accepts a template - * string that supports `${rotation}` and `${pid}`: - * - * ```bash - * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js - * ``` - * - * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers - * in your code, such as: - * - * ```js - * process.on('SIGINT', function onSigint() { - * console.info('Received SIGINT.'); - * process.exit(130); // Or applicable exit code depending on OS and signal - * }); - * ``` - * - * The tracing system uses the same time source - * as the one used by `process.hrtime()`. - * However the trace-event timestamps are expressed in microseconds, - * unlike `process.hrtime()` which returns nanoseconds. - * - * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#class-worker) threads. - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/trace_events.js) - */ -declare module "trace_events" { - /** - * The `Tracing` object is used to enable or disable tracing for sets of - * categories. Instances are created using the - * `trace_events.createTracing()` method. - * - * When created, the `Tracing` object is disabled. Calling the - * `tracing.enable()` method adds the categories to the set of enabled trace - * event categories. Calling `tracing.disable()` will remove the categories - * from the set of enabled trace event categories. - */ - interface Tracing { - /** - * A comma-separated list of the trace event categories covered by this - * `Tracing` object. - * @since v10.0.0 - */ - readonly categories: string; - /** - * Disables this `Tracing` object. - * - * Only trace event categories _not_ covered by other enabled `Tracing` - * objects and _not_ specified by the `--trace-event-categories` flag - * will be disabled. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); - * t1.enable(); - * t2.enable(); - * - * // Prints 'node,node.perf,v8' - * console.log(trace_events.getEnabledCategories()); - * - * t2.disable(); // Will only disable emission of the 'node.perf' category - * - * // Prints 'node,v8' - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - disable(): void; - /** - * Enables this `Tracing` object for the set of categories covered by - * the `Tracing` object. - * @since v10.0.0 - */ - enable(): void; - /** - * `true` only if the `Tracing` object has been enabled. - * @since v10.0.0 - */ - readonly enabled: boolean; - } - interface CreateTracingOptions { - /** - * An array of trace category names. Values included in the array are - * coerced to a string when possible. An error will be thrown if the - * value cannot be coerced. - */ - categories: string[]; - } - /** - * Creates and returns a `Tracing` object for the given set of `categories`. - * - * ```js - * import trace_events from 'node:trace_events'; - * const categories = ['node.perf', 'node.async_hooks']; - * const tracing = trace_events.createTracing({ categories }); - * tracing.enable(); - * // do stuff - * tracing.disable(); - * ``` - * @since v10.0.0 - */ - function createTracing(options: CreateTracingOptions): Tracing; - /** - * Returns a comma-separated list of all currently-enabled trace event - * categories. The current set of enabled trace event categories is determined - * by the _union_ of all currently-enabled `Tracing` objects and any categories - * enabled using the `--trace-event-categories` flag. - * - * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); - * const t3 = trace_events.createTracing({ categories: ['v8'] }); - * - * t1.enable(); - * t2.enable(); - * - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - function getEnabledCategories(): string | undefined; -} -declare module "node:trace_events" { - export * from "trace_events"; -} diff --git a/mcp-server/node_modules/@types/node/ts5.6/buffer.buffer.d.ts b/mcp-server/node_modules/@types/node/ts5.6/buffer.buffer.d.ts deleted file mode 100644 index a5f67d7..0000000 --- a/mcp-server/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +++ /dev/null @@ -1,468 +0,0 @@ -declare module "buffer" { - global { - interface BufferConstructor { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: ArrayBufferLike): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from( - arrayBuffer: WithImplicitCoercion, - byteOffset?: number, - length?: number, - ): Buffer; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/mcp-server/node_modules/@types/node/ts5.6/globals.typedarray.d.ts b/mcp-server/node_modules/@types/node/ts5.6/globals.typedarray.d.ts deleted file mode 100644 index f1c444d..0000000 --- a/mcp-server/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/mcp-server/node_modules/@types/node/ts5.6/index.d.ts b/mcp-server/node_modules/@types/node/ts5.6/index.d.ts deleted file mode 100644 index 291308f..0000000 --- a/mcp-server/node_modules/@types/node/ts5.6/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6. - -// Reference required TypeScript libs: -/// - -// TypeScript backwards-compatibility definitions: -/// - -// Definitions specific to TypeScript 4.9 through 5.6: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/mcp-server/node_modules/@types/node/tty.d.ts b/mcp-server/node_modules/@types/node/tty.d.ts deleted file mode 100644 index d4b9313..0000000 --- a/mcp-server/node_modules/@types/node/tty.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module - * directly. However, it can be accessed using: - * - * ```js - * import tty from 'node:tty'; - * ``` - * - * When Node.js detects that it is being run with a text terminal ("TTY") - * attached, `process.stdin` will, by default, be initialized as an instance of `tty.ReadStream` and both `process.stdout` and `process.stderr` will, by - * default, be instances of `tty.WriteStream`. The preferred method of determining - * whether Node.js is being run within a TTY context is to check that the value of - * the `process.stdout.isTTY` property is `true`: - * - * ```console - * $ node -p -e "Boolean(process.stdout.isTTY)" - * true - * $ node -p -e "Boolean(process.stdout.isTTY)" | cat - * false - * ``` - * - * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tty.js) - */ -declare module "tty" { - import * as net from "node:net"; - /** - * The `tty.isatty()` method returns `true` if the given `fd` is associated with - * a TTY and `false` if it is not, including whenever `fd` is not a non-negative - * integer. - * @since v0.5.8 - * @param fd A numeric file descriptor - */ - function isatty(fd: number): boolean; - /** - * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js - * process and there should be no reason to create additional instances. - * @since v0.5.8 - */ - class ReadStream extends net.Socket { - constructor(fd: number, options?: net.SocketConstructorOpts); - /** - * A `boolean` that is `true` if the TTY is currently configured to operate as a - * raw device. - * - * This flag is always `false` when a process starts, even if the terminal is - * operating in raw mode. Its value will change with subsequent calls to `setRawMode`. - * @since v0.7.7 - */ - isRaw: boolean; - /** - * Allows configuration of `tty.ReadStream` so that it operates as a raw device. - * - * When in raw mode, input is always available character-by-character, not - * including modifiers. Additionally, all special processing of characters by the - * terminal is disabled, including echoing input - * characters. Ctrl+C will no longer cause a `SIGINT` when - * in this mode. - * @since v0.7.7 - * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` - * property will be set to the resulting mode. - * @return The read stream instance. - */ - setRawMode(mode: boolean): this; - /** - * A `boolean` that is always `true` for `tty.ReadStream` instances. - * @since v0.5.8 - */ - isTTY: boolean; - } - /** - * -1 - to the left from cursor - * 0 - the entire line - * 1 - to the right from cursor - */ - type Direction = -1 | 0 | 1; - /** - * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there - * should be no reason to create additional instances. - * @since v0.5.8 - */ - class WriteStream extends net.Socket { - constructor(fd: number); - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "resize", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "resize"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "resize", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "resize", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "resize", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "resize", listener: () => void): this; - /** - * `writeStream.clearLine()` clears the current line of this `WriteStream` in a - * direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearLine(dir: Direction, callback?: () => void): boolean; - /** - * `writeStream.clearScreenDown()` clears this `WriteStream` from the current - * cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearScreenDown(callback?: () => void): boolean; - /** - * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified - * position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - cursorTo(x: number, y?: number, callback?: () => void): boolean; - cursorTo(x: number, callback: () => void): boolean; - /** - * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its - * current position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - moveCursor(dx: number, dy: number, callback?: () => void): boolean; - /** - * Returns: - * - * * `1` for 2, - * * `4` for 16, - * * `8` for 256, - * * `24` for 16,777,216 colors supported. - * - * Use this to determine what colors the terminal supports. Due to the nature of - * colors in terminals it is possible to either have false positives or false - * negatives. It depends on process information and the environment variables that - * may lie about what terminal is used. - * It is possible to pass in an `env` object to simulate the usage of a specific - * terminal. This can be useful to check how specific environment settings behave. - * - * To enforce a specific color support, use one of the below environment settings. - * - * * 2 colors: `FORCE_COLOR = 0` (Disables colors) - * * 16 colors: `FORCE_COLOR = 1` - * * 256 colors: `FORCE_COLOR = 2` - * * 16,777,216 colors: `FORCE_COLOR = 3` - * - * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. - * @since v9.9.0 - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - getColorDepth(env?: object): number; - /** - * Returns `true` if the `writeStream` supports at least as many colors as provided - * in `count`. Minimum support is 2 (black and white). - * - * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. - * - * ```js - * process.stdout.hasColors(); - * // Returns true or false depending on if `stdout` supports at least 16 colors. - * process.stdout.hasColors(256); - * // Returns true or false depending on if `stdout` supports at least 256 colors. - * process.stdout.hasColors({ TMUX: '1' }); - * // Returns true. - * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); - * // Returns false (the environment setting pretends to support 2 ** 8 colors). - * ``` - * @since v11.13.0, v10.16.0 - * @param [count=16] The number of colors that are requested (minimum 2). - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - hasColors(count?: number): boolean; - hasColors(env?: object): boolean; - hasColors(count: number, env?: object): boolean; - /** - * `writeStream.getWindowSize()` returns the size of the TTY - * corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number - * of columns and rows in the corresponding TTY. - * @since v0.7.7 - */ - getWindowSize(): [number, number]; - /** - * A `number` specifying the number of columns the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - columns: number; - /** - * A `number` specifying the number of rows the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - rows: number; - /** - * A `boolean` that is always `true`. - * @since v0.5.8 - */ - isTTY: boolean; - } -} -declare module "node:tty" { - export * from "tty"; -} diff --git a/mcp-server/node_modules/@types/node/url.d.ts b/mcp-server/node_modules/@types/node/url.d.ts deleted file mode 100644 index 4d83629..0000000 --- a/mcp-server/node_modules/@types/node/url.d.ts +++ /dev/null @@ -1,964 +0,0 @@ -/** - * The `node:url` module provides utilities for URL resolution and parsing. It can - * be accessed using: - * - * ```js - * import url from 'node:url'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/url.js) - */ -declare module "url" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ClientRequestArgs } from "node:http"; - import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring"; - // Input to `url.format` - interface UrlObject { - auth?: string | null | undefined; - hash?: string | null | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - href?: string | null | undefined; - pathname?: string | null | undefined; - protocol?: string | null | undefined; - search?: string | null | undefined; - slashes?: boolean | null | undefined; - port?: string | number | null | undefined; - query?: string | null | ParsedUrlQueryInput | undefined; - } - // Output of `url.parse` - interface Url { - auth: string | null; - hash: string | null; - host: string | null; - hostname: string | null; - href: string; - path: string | null; - pathname: string | null; - protocol: string | null; - search: string | null; - slashes: boolean | null; - port: string | null; - query: string | null | ParsedUrlQuery; - } - interface UrlWithParsedQuery extends Url { - query: ParsedUrlQuery; - } - interface UrlWithStringQuery extends Url { - query: string | null; - } - interface FileUrlToPathOptions { - /** - * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default. - * @default undefined - */ - windows?: boolean | undefined; - } - interface PathToFileUrlOptions extends FileUrlToPathOptions {} - /** - * The `url.parse()` method takes a URL string, parses it, and returns a URL - * object. - * - * A `TypeError` is thrown if `urlString` is not a string. - * - * A `URIError` is thrown if the `auth` property is present but cannot be decoded. - * - * `url.parse()` uses a lenient, non-standard algorithm for parsing URL - * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted - * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead. - * @since v0.1.25 - * @deprecated Use the WHATWG URL API instead. - * @param urlString The URL string to parse. - * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property - * on the returned URL object will be an unparsed, undecoded string. - * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the - * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. - */ - function parse(urlString: string): UrlWithStringQuery; - function parse( - urlString: string, - parseQueryString: false | undefined, - slashesDenoteHost?: boolean, - ): UrlWithStringQuery; - function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; - function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: URL, options?: URLFormatOptions): string; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: UrlObject | string): string; - /** - * The `url.resolve()` method resolves a target URL relative to a base URL in a - * manner similar to that of a web browser resolving an anchor tag. - * - * ```js - * import url from 'node:url'; - * url.resolve('/one/two/three', 'four'); // '/one/two/four' - * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' - * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * - * To achieve the same result using the WHATWG URL API: - * - * ```js - * function resolve(from, to) { - * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); - * if (resolvedUrl.protocol === 'resolve:') { - * // `from` is a relative URL. - * const { pathname, search, hash } = resolvedUrl; - * return pathname + search + hash; - * } - * return resolvedUrl.toString(); - * } - * - * resolve('/one/two/three', 'four'); // '/one/two/four' - * resolve('http://example.com/', '/one'); // 'http://example.com/one' - * resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param from The base URL to use if `to` is a relative URL. - * @param to The target URL to resolve. - */ - function resolve(from: string, to: string): string; - /** - * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an - * invalid domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToUnicode}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToASCII('español.com')); - * // Prints xn--espaol-zwa.com - * console.log(url.domainToASCII('中文.com')); - * // Prints xn--fiq228c.com - * console.log(url.domainToASCII('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToASCII(domain: string): string; - /** - * Returns the Unicode serialization of the `domain`. If `domain` is an invalid - * domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToASCII}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToUnicode('xn--espaol-zwa.com')); - * // Prints español.com - * console.log(url.domainToUnicode('xn--fiq228c.com')); - * // Prints 中文.com - * console.log(url.domainToUnicode('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToUnicode(domain: string): string; - /** - * This function ensures the correct decodings of percent-encoded characters as - * well as ensuring a cross-platform valid absolute path string. - * - * ```js - * import { fileURLToPath } from 'node:url'; - * - * const __filename = fileURLToPath(import.meta.url); - * - * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ - * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) - * - * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt - * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) - * - * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt - * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) - * - * new URL('file:///hello world').pathname; // Incorrect: /hello%20world - * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) - * ``` - * @since v10.12.0 - * @param url The file URL string or URL object to convert to a path. - * @return The fully-resolved platform-specific Node.js file path. - */ - function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string; - /** - * This function ensures that `path` is resolved absolutely, and that the URL - * control characters are correctly encoded when converting into a File URL. - * - * ```js - * import { pathToFileURL } from 'node:url'; - * - * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 - * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) - * - * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c - * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) - * ``` - * @since v10.12.0 - * @param path The path to convert to a File URL. - * @return The file URL object. - */ - function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL; - /** - * This utility function converts a URL object into an ordinary options object as - * expected by the `http.request()` and `https.request()` APIs. - * - * ```js - * import { urlToHttpOptions } from 'node:url'; - * const myURL = new URL('https://a:b@測試?abc#foo'); - * - * console.log(urlToHttpOptions(myURL)); - * /* - * { - * protocol: 'https:', - * hostname: 'xn--g6w251d', - * hash: '#foo', - * search: '?abc', - * pathname: '/', - * path: '/?abc', - * href: 'https://a:b@xn--g6w251d/?abc#foo', - * auth: 'a:b' - * } - * - * ``` - * @since v15.7.0, v14.18.0 - * @param url The `WHATWG URL` object to convert to an options object. - * @return Options object - */ - function urlToHttpOptions(url: URL): ClientRequestArgs; - interface URLFormatOptions { - /** - * `true` if the serialized URL string should include the username and password, `false` otherwise. - * @default true - */ - auth?: boolean | undefined; - /** - * `true` if the serialized URL string should include the fragment, `false` otherwise. - * @default true - */ - fragment?: boolean | undefined; - /** - * `true` if the serialized URL string should include the search query, `false` otherwise. - * @default true - */ - search?: boolean | undefined; - /** - * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to - * being Punycode encoded. - * @default false - */ - unicode?: boolean | undefined; - } - /** - * Browser-compatible `URL` class, implemented by following the WHATWG URL - * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. - * The `URL` class is also available on the global object. - * - * In accordance with browser conventions, all properties of `URL` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject`s, - * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still - * return `true`. - * @since v7.0.0, v6.13.0 - */ - class URL { - /** - * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. - * - * ```js - * import { - * Blob, - * resolveObjectURL, - * } from 'node:buffer'; - * - * const blob = new Blob(['hello']); - * const id = URL.createObjectURL(blob); - * - * // later... - * - * const otherBlob = resolveObjectURL(id); - * console.log(otherBlob.size); - * ``` - * - * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. - * - * `Blob` objects are registered within the current thread. If using Worker - * Threads, `Blob` objects registered within one Worker will not be available - * to other workers or the main thread. - * @since v16.7.0 - * @experimental - */ - static createObjectURL(blob: NodeBlob): string; - /** - * Removes the stored `Blob` identified by the given ID. Attempting to revoke a - * ID that isn't registered will silently fail. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - static revokeObjectURL(id: string): void; - /** - * Checks if an `input` relative to the `base` can be parsed to a `URL`. - * - * ```js - * const isValid = URL.canParse('/foo', 'https://example.org/'); // true - * - * const isNotValid = URL.canParse('/foo'); // false - * ``` - * @since v19.9.0 - * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is - * `converted to a string` first. - * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. - */ - static canParse(input: string, base?: string): boolean; - /** - * Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs. - * Returns `null` if `input` is not a valid. - * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is - * `converted to a string` first. - * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. - * @since v20.18.0 - */ - static parse(input: string, base?: string): URL | null; - constructor(input: string | { toString: () => string }, base?: string | URL); - /** - * Gets and sets the fragment portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/foo#bar'); - * console.log(myURL.hash); - * // Prints #bar - * - * myURL.hash = 'baz'; - * console.log(myURL.href); - * // Prints https://example.org/foo#baz - * ``` - * - * Invalid URL characters included in the value assigned to the `hash` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - hash: string; - /** - * Gets and sets the host portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.host); - * // Prints example.org:81 - * - * myURL.host = 'example.com:82'; - * console.log(myURL.href); - * // Prints https://example.com:82/foo - * ``` - * - * Invalid host values assigned to the `host` property are ignored. - */ - host: string; - /** - * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the - * port. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.hostname); - * // Prints example.org - * - * // Setting the hostname does not change the port - * myURL.hostname = 'example.com'; - * console.log(myURL.href); - * // Prints https://example.com:81/foo - * - * // Use myURL.host to change the hostname and port - * myURL.host = 'example.org:82'; - * console.log(myURL.href); - * // Prints https://example.org:82/foo - * ``` - * - * Invalid host name values assigned to the `hostname` property are ignored. - */ - hostname: string; - /** - * Gets and sets the serialized URL. - * - * ```js - * const myURL = new URL('https://example.org/foo'); - * console.log(myURL.href); - * // Prints https://example.org/foo - * - * myURL.href = 'https://example.com/bar'; - * console.log(myURL.href); - * // Prints https://example.com/bar - * ``` - * - * Getting the value of the `href` property is equivalent to calling {@link toString}. - * - * Setting the value of this property to a new value is equivalent to creating a - * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified. - * - * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown. - */ - href: string; - /** - * Gets the read-only serialization of the URL's origin. - * - * ```js - * const myURL = new URL('https://example.org/foo/bar?baz'); - * console.log(myURL.origin); - * // Prints https://example.org - * ``` - * - * ```js - * const idnURL = new URL('https://測試'); - * console.log(idnURL.origin); - * // Prints https://xn--g6w251d - * - * console.log(idnURL.hostname); - * // Prints xn--g6w251d - * ``` - */ - readonly origin: string; - /** - * Gets and sets the password portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.password); - * // Prints xyz - * - * myURL.password = '123'; - * console.log(myURL.href); - * // Prints https://abc:123@example.com/ - * ``` - * - * Invalid URL characters included in the value assigned to the `password` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - password: string; - /** - * Gets and sets the path portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc/xyz?123'); - * console.log(myURL.pathname); - * // Prints /abc/xyz - * - * myURL.pathname = '/abcdef'; - * console.log(myURL.href); - * // Prints https://example.org/abcdef?123 - * ``` - * - * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters - * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - pathname: string; - /** - * Gets and sets the port portion of the URL. - * - * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will - * result in the `port` value becoming - * the empty string (`''`). - * - * The port value can be an empty string in which case the port depends on - * the protocol/scheme: - * - * - * - * Upon assigning a value to the port, the value will first be converted to a - * string using `.toString()`. - * - * If that string is invalid but it begins with a number, the leading number is - * assigned to `port`. - * If the number lies outside the range denoted above, it is ignored. - * - * ```js - * const myURL = new URL('https://example.org:8888'); - * console.log(myURL.port); - * // Prints 8888 - * - * // Default ports are automatically transformed to the empty string - * // (HTTPS protocol's default port is 443) - * myURL.port = '443'; - * console.log(myURL.port); - * // Prints the empty string - * console.log(myURL.href); - * // Prints https://example.org/ - * - * myURL.port = 1234; - * console.log(myURL.port); - * // Prints 1234 - * console.log(myURL.href); - * // Prints https://example.org:1234/ - * - * // Completely invalid port strings are ignored - * myURL.port = 'abcd'; - * console.log(myURL.port); - * // Prints 1234 - * - * // Leading numbers are treated as a port number - * myURL.port = '5678abcd'; - * console.log(myURL.port); - * // Prints 5678 - * - * // Non-integers are truncated - * myURL.port = 1234.5678; - * console.log(myURL.port); - * // Prints 1234 - * - * // Out-of-range numbers which are not represented in scientific notation - * // will be ignored. - * myURL.port = 1e10; // 10000000000, will be range-checked as described below - * console.log(myURL.port); - * // Prints 1234 - * ``` - * - * Numbers which contain a decimal point, - * such as floating-point numbers or numbers in scientific notation, - * are not an exception to this rule. - * Leading numbers up to the decimal point will be set as the URL's port, - * assuming they are valid: - * - * ```js - * myURL.port = 4.567e21; - * console.log(myURL.port); - * // Prints 4 (because it is the leading number in the string '4.567e21') - * ``` - */ - port: string; - /** - * Gets and sets the protocol portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org'); - * console.log(myURL.protocol); - * // Prints https: - * - * myURL.protocol = 'ftp'; - * console.log(myURL.href); - * // Prints ftp://example.org/ - * ``` - * - * Invalid URL protocol values assigned to the `protocol` property are ignored. - */ - protocol: string; - /** - * Gets and sets the serialized query portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc?123'); - * console.log(myURL.search); - * // Prints ?123 - * - * myURL.search = 'abc=xyz'; - * console.log(myURL.href); - * // Prints https://example.org/abc?abc=xyz - * ``` - * - * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - search: string; - /** - * Gets the `URLSearchParams` object representing the query parameters of the - * URL. This property is read-only but the `URLSearchParams` object it provides - * can be used to mutate the URL instance; to replace the entirety of query - * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. - * - * Use care when using `.searchParams` to modify the `URL` because, - * per the WHATWG specification, the `URLSearchParams` object uses - * different rules to determine which characters to percent-encode. For - * instance, the `URL` object will not percent encode the ASCII tilde (`~`) - * character, while `URLSearchParams` will always encode it: - * - * ```js - * const myURL = new URL('https://example.org/abc?foo=~bar'); - * - * console.log(myURL.search); // prints ?foo=~bar - * - * // Modify the URL via searchParams... - * myURL.searchParams.sort(); - * - * console.log(myURL.search); // prints ?foo=%7Ebar - * ``` - */ - readonly searchParams: URLSearchParams; - /** - * Gets and sets the username portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.username); - * // Prints abc - * - * myURL.username = '123'; - * console.log(myURL.href); - * // Prints https://123:xyz@example.com/ - * ``` - * - * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - username: string; - /** - * The `toString()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toJSON}. - */ - toString(): string; - /** - * The `toJSON()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toString}. - * - * This method is automatically called when an `URL` object is serialized - * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). - * - * ```js - * const myURLs = [ - * new URL('https://www.example.com'), - * new URL('https://test.example.org'), - * ]; - * console.log(JSON.stringify(myURLs)); - * // Prints ["https://www.example.com/","https://test.example.org/"] - * ``` - */ - toJSON(): string; - } - interface URLSearchParamsIterator extends NodeJS.Iterator { - [Symbol.iterator](): URLSearchParamsIterator; - } - /** - * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the - * four following constructors. - * The `URLSearchParams` class is also available on the global object. - * - * The WHATWG `URLSearchParams` interface and the `querystring` module have - * similar purpose, but the purpose of the `querystring` module is more - * general, as it allows the customization of delimiter characters (`&` and `=`). - * On the other hand, this API is designed purely for URL query strings. - * - * ```js - * const myURL = new URL('https://example.org/?abc=123'); - * console.log(myURL.searchParams.get('abc')); - * // Prints 123 - * - * myURL.searchParams.append('abc', 'xyz'); - * console.log(myURL.href); - * // Prints https://example.org/?abc=123&abc=xyz - * - * myURL.searchParams.delete('abc'); - * myURL.searchParams.set('a', 'b'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * - * const newSearchParams = new URLSearchParams(myURL.searchParams); - * // The above is equivalent to - * // const newSearchParams = new URLSearchParams(myURL.search); - * - * newSearchParams.append('a', 'c'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * console.log(newSearchParams.toString()); - * // Prints a=b&a=c - * - * // newSearchParams.toString() is implicitly called - * myURL.search = newSearchParams; - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * newSearchParams.delete('a'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * ``` - * @since v7.5.0, v6.13.0 - */ - class URLSearchParams implements Iterable<[string, string]> { - constructor( - init?: - | URLSearchParams - | string - | Record - | Iterable<[string, string]> - | ReadonlyArray<[string, string]>, - ); - /** - * Append a new name-value pair to the query string. - */ - append(name: string, value: string): void; - /** - * If `value` is provided, removes all name-value pairs - * where name is `name` and value is `value`. - * - * If `value` is not provided, removes all name-value pairs whose name is `name`. - */ - delete(name: string, value?: string): void; - /** - * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. - * - * Alias for `urlSearchParams[@@iterator]()`. - */ - entries(): URLSearchParamsIterator<[string, string]>; - /** - * Iterates over each name-value pair in the query and invokes the given function. - * - * ```js - * const myURL = new URL('https://example.org/?a=b&c=d'); - * myURL.searchParams.forEach((value, name, searchParams) => { - * console.log(name, value, myURL.searchParams === searchParams); - * }); - * // Prints: - * // a b true - * // c d true - * ``` - * @param fn Invoked for each name-value pair in the query - * @param thisArg To be used as `this` value for when `fn` is called - */ - forEach( - fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, - thisArg?: TThis, - ): void; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns the values of all name-value pairs whose name is `name`. If there are - * no such pairs, an empty array is returned. - */ - getAll(name: string): string[]; - /** - * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. - * - * If `value` is provided, returns `true` when name-value pair with - * same `name` and `value` exists. - * - * If `value` is not provided, returns `true` if there is at least one name-value - * pair whose name is `name`. - */ - has(name: string, value?: string): boolean; - /** - * Returns an ES6 `Iterator` over the names of each name-value pair. - * - * ```js - * const params = new URLSearchParams('foo=bar&foo=baz'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // foo - * ``` - */ - keys(): URLSearchParamsIterator; - /** - * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value` and remove all others. If not, - * append the name-value pair to the query string. - * - * ```js - * const params = new URLSearchParams(); - * params.append('foo', 'bar'); - * params.append('foo', 'baz'); - * params.append('abc', 'def'); - * console.log(params.toString()); - * // Prints foo=bar&foo=baz&abc=def - * - * params.set('foo', 'def'); - * params.set('xyz', 'opq'); - * console.log(params.toString()); - * // Prints foo=def&abc=def&xyz=opq - * ``` - */ - set(name: string, value: string): void; - /** - * The total number of parameter entries. - * @since v19.8.0 - */ - readonly size: number; - /** - * Sort all existing name-value pairs in-place by their names. Sorting is done - * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs - * with the same name is preserved. - * - * This method can be used, in particular, to increase cache hits. - * - * ```js - * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); - * params.sort(); - * console.log(params.toString()); - * // Prints query%5B%5D=abc&query%5B%5D=123&type=search - * ``` - * @since v7.7.0, v6.13.0 - */ - sort(): void; - /** - * Returns the search parameters serialized as a string, with characters - * percent-encoded where necessary. - */ - toString(): string; - /** - * Returns an ES6 `Iterator` over the values of each name-value pair. - */ - values(): URLSearchParamsIterator; - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; - } - import { URL as _URL, URLSearchParams as _URLSearchParams } from "url"; - global { - interface URLSearchParams extends _URLSearchParams {} - interface URL extends _URL {} - interface Global { - URL: typeof _URL; - URLSearchParams: typeof _URLSearchParams; - } - /** - * `URL` class is a global reference for `import { URL } from 'node:url'` - * https://nodejs.org/api/url.html#the-whatwg-url-api - * @since v10.0.0 - */ - var URL: typeof globalThis extends { - onmessage: any; - URL: infer T; - } ? T - : typeof _URL; - /** - * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'` - * https://nodejs.org/api/url.html#class-urlsearchparams - * @since v10.0.0 - */ - var URLSearchParams: typeof globalThis extends { - onmessage: any; - URLSearchParams: infer T; - } ? T - : typeof _URLSearchParams; - } -} -declare module "node:url" { - export * from "url"; -} diff --git a/mcp-server/node_modules/@types/node/util.d.ts b/mcp-server/node_modules/@types/node/util.d.ts deleted file mode 100644 index e5e2cb6..0000000 --- a/mcp-server/node_modules/@types/node/util.d.ts +++ /dev/null @@ -1,2331 +0,0 @@ -/** - * The `node:util` module supports the needs of Node.js internal APIs. Many of the - * utilities are useful for application and module developers as well. To access - * it: - * - * ```js - * import util from 'node:util'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/util.js) - */ -declare module "util" { - import * as types from "node:util/types"; - export interface InspectOptions { - /** - * If `true`, object's non-enumerable symbols and properties are included in the formatted result. - * `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties). - * @default false - */ - showHidden?: boolean | undefined; - /** - * Specifies the number of times to recurse while formatting object. - * This is useful for inspecting large objects. - * To recurse up to the maximum call stack size pass `Infinity` or `null`. - * @default 2 - */ - depth?: number | null | undefined; - /** - * If `true`, the output is styled with ANSI color codes. Colors are customizable. - */ - colors?: boolean | undefined; - /** - * If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked. - * @default true - */ - customInspect?: boolean | undefined; - /** - * If `true`, `Proxy` inspection includes the target and handler objects. - * @default false - */ - showProxy?: boolean | undefined; - /** - * Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements - * to include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no elements. - * @default 100 - */ - maxArrayLength?: number | null | undefined; - /** - * Specifies the maximum number of characters to - * include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no characters. - * @default 10000 - */ - maxStringLength?: number | null | undefined; - /** - * The length at which input values are split across multiple lines. - * Set to `Infinity` to format the input as a single line - * (in combination with `compact` set to `true` or any number >= `1`). - * @default 80 - */ - breakLength?: number | undefined; - /** - * Setting this to `false` causes each object key - * to be displayed on a new line. It will also add new lines to text that is - * longer than `breakLength`. If set to a number, the most `n` inner elements - * are united on a single line as long as all properties fit into - * `breakLength`. Short array elements are also grouped together. Note that no - * text will be reduced below 16 characters, no matter the `breakLength` size. - * For more information, see the example below. - * @default true - */ - compact?: boolean | number | undefined; - /** - * If set to `true` or a function, all properties of an object, and `Set` and `Map` - * entries are sorted in the resulting string. - * If set to `true` the default sort is used. - * If set to a function, it is used as a compare function. - */ - sorted?: boolean | ((a: string, b: string) => number) | undefined; - /** - * If set to `true`, getters are going to be - * inspected as well. If set to `'get'` only getters without setter are going - * to be inspected. If set to `'set'` only getters having a corresponding - * setter are going to be inspected. This might cause side effects depending on - * the getter function. - * @default false - */ - getters?: "get" | "set" | boolean | undefined; - /** - * If set to `true`, an underscore is used to separate every three digits in all bigints and numbers. - * @default false - */ - numericSeparator?: boolean | undefined; - } - export type Style = - | "special" - | "number" - | "bigint" - | "boolean" - | "undefined" - | "null" - | "string" - | "symbol" - | "date" - | "regexp" - | "module"; - export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect - export interface InspectOptionsStylized extends InspectOptions { - stylize(text: string, styleType: Style): string; - } - /** - * The `util.format()` method returns a formatted string using the first argument - * as a `printf`-like format string which can contain zero or more format - * specifiers. Each specifier is replaced with the converted value from the - * corresponding argument. Supported specifiers are: - * - * If a specifier does not have a corresponding argument, it is not replaced: - * - * ```js - * util.format('%s:%s', 'foo'); - * // Returns: 'foo:%s' - * ``` - * - * Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`. - * - * If there are more arguments passed to the `util.format()` method than the - * number of specifiers, the extra arguments are concatenated to the returned - * string, separated by spaces: - * - * ```js - * util.format('%s:%s', 'foo', 'bar', 'baz'); - * // Returns: 'foo:bar baz' - * ``` - * - * If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces: - * - * ```js - * util.format(1, 2, 3); - * // Returns: '1 2 3' - * ``` - * - * If only one argument is passed to `util.format()`, it is returned as it is - * without any formatting: - * - * ```js - * util.format('%% %s'); - * // Returns: '%% %s' - * ``` - * - * `util.format()` is a synchronous method that is intended as a debugging tool. - * Some input values can have a significant performance overhead that can block the - * event loop. Use this function with care and never in a hot code path. - * @since v0.5.3 - * @param format A `printf`-like format string. - */ - export function format(format?: any, ...param: any[]): string; - /** - * This function is identical to {@link format}, except in that it takes - * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. - * - * ```js - * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); - * // Returns 'See object { foo: 42 }', where `42` is colored as a number - * // when printed to a terminal. - * ``` - * @since v10.0.0 - */ - export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; - /** - * Returns the string name for a numeric error code that comes from a Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const name = util.getSystemErrorName(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v9.7.0 - */ - export function getSystemErrorName(err: number): string; - /** - * Returns a Map of all system error codes available from the Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const errorMap = util.getSystemErrorMap(); - * const name = errorMap.get(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v16.0.0, v14.17.0 - */ - export function getSystemErrorMap(): Map; - /** - * The `util.log()` method prints the given `string` to `stdout` with an included - * timestamp. - * - * ```js - * import util from 'node:util'; - * - * util.log('Timestamped message.'); - * ``` - * @since v0.3.0 - * @deprecated Since v6.0.0 - Use a third party module instead. - */ - export function log(string: string): void; - /** - * Returns the `string` after replacing any surrogate code points - * (or equivalently, any unpaired surrogate code units) with the - * Unicode "replacement character" U+FFFD. - * @since v16.8.0, v14.18.0 - */ - export function toUSVString(string: string): string; - /** - * Creates and returns an `AbortController` instance whose `AbortSignal` is marked - * as transferable and can be used with `structuredClone()` or `postMessage()`. - * @since v18.11.0 - * @experimental - * @returns A transferable AbortController - */ - export function transferableAbortController(): AbortController; - /** - * Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`. - * - * ```js - * const signal = transferableAbortSignal(AbortSignal.timeout(100)); - * const channel = new MessageChannel(); - * channel.port2.postMessage(signal, [signal]); - * ``` - * @since v18.11.0 - * @experimental - * @param signal The AbortSignal - * @returns The same AbortSignal - */ - export function transferableAbortSignal(signal: AbortSignal): AbortSignal; - /** - * Listens to abort event on the provided `signal` and - * returns a promise that is fulfilled when the `signal` is - * aborted. If the passed `resource` is garbage collected before the `signal` is - * aborted, the returned promise shall remain pending indefinitely. - * - * ```js - * import { aborted } from 'node:util'; - * - * const dependent = obtainSomethingAbortable(); - * - * aborted(dependent.signal, dependent).then(() => { - * // Do something when dependent is aborted. - * }); - * - * dependent.on('event', () => { - * dependent.abort(); - * }); - * ``` - * @since v19.7.0 - * @experimental - * @param resource Any non-null entity, reference to which is held weakly. - */ - export function aborted(signal: AbortSignal, resource: any): Promise; - /** - * The `util.inspect()` method returns a string representation of `object` that is - * intended for debugging. The output of `util.inspect` may change at any time - * and should not be depended upon programmatically. Additional `options` may be - * passed that alter the result. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make - * an identifiable tag for an inspected value. - * - * ```js - * class Foo { - * get [Symbol.toStringTag]() { - * return 'bar'; - * } - * } - * - * class Bar {} - * - * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); - * - * util.inspect(new Foo()); // 'Foo [bar] {}' - * util.inspect(new Bar()); // 'Bar {}' - * util.inspect(baz); // '[foo] {}' - * ``` - * - * Circular references point to their anchor by using a reference index: - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = {}; - * obj.a = [obj]; - * obj.b = {}; - * obj.b.inner = obj.b; - * obj.b.obj = obj; - * - * console.log(inspect(obj)); - * // { - * // a: [ [Circular *1] ], - * // b: { inner: [Circular *2], obj: [Circular *1] } - * // } - * ``` - * - * The following example inspects all properties of the `util` object: - * - * ```js - * import util from 'node:util'; - * - * console.log(util.inspect(util, { showHidden: true, depth: null })); - * ``` - * - * The following example highlights the effect of the `compact` option: - * - * ```js - * import util from 'node:util'; - * - * const o = { - * a: [1, 2, [[ - * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + - * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', - * 'test', - * 'foo']], 4], - * b: new Map([['za', 1], ['zb', 'test']]), - * }; - * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 })); - * - * // { a: - * // [ 1, - * // 2, - * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line - * // 'test', - * // 'foo' ] ], - * // 4 ], - * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } - * - * // Setting `compact` to false or an integer creates more reader friendly output. - * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 })); - * - * // { - * // a: [ - * // 1, - * // 2, - * // [ - * // [ - * // 'Lorem ipsum dolor sit amet,\n' + - * // 'consectetur adipiscing elit, sed do eiusmod \n' + - * // 'tempor incididunt ut labore et dolore magna aliqua.', - * // 'test', - * // 'foo' - * // ] - * // ], - * // 4 - * // ], - * // b: Map(2) { - * // 'za' => 1, - * // 'zb' => 'test' - * // } - * // } - * - * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a - * // single line. - * ``` - * - * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and - * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be - * inspected. If there are more entries than `maxArrayLength`, there is no - * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may - * result in different output. Furthermore, entries - * with no remaining strong references may be garbage collected at any time. - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = { a: 1 }; - * const obj2 = { b: 2 }; - * const weakSet = new WeakSet([obj, obj2]); - * - * console.log(inspect(weakSet, { showHidden: true })); - * // WeakSet { { a: 1 }, { b: 2 } } - * ``` - * - * The `sorted` option ensures that an object's property insertion order does not - * impact the result of `util.inspect()`. - * - * ```js - * import { inspect } from 'node:util'; - * import assert from 'node:assert'; - * - * const o1 = { - * b: [2, 3, 1], - * a: '`a` comes before `b`', - * c: new Set([2, 3, 1]), - * }; - * console.log(inspect(o1, { sorted: true })); - * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } - * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); - * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } - * - * const o2 = { - * c: new Set([2, 1, 3]), - * a: '`a` comes before `b`', - * b: [2, 3, 1], - * }; - * assert.strict.equal( - * inspect(o1, { sorted: true }), - * inspect(o2, { sorted: true }), - * ); - * ``` - * - * The `numericSeparator` option adds an underscore every three digits to all - * numbers. - * - * ```js - * import { inspect } from 'node:util'; - * - * const thousand = 1_000; - * const million = 1_000_000; - * const bigNumber = 123_456_789n; - * const bigDecimal = 1_234.123_45; - * - * console.log(inspect(thousand, { numericSeparator: true })); - * // 1_000 - * console.log(inspect(million, { numericSeparator: true })); - * // 1_000_000 - * console.log(inspect(bigNumber, { numericSeparator: true })); - * // 123_456_789n - * console.log(inspect(bigDecimal, { numericSeparator: true })); - * // 1_234.123_45 - * ``` - * - * `util.inspect()` is a synchronous method intended for debugging. Its maximum - * output length is approximately 128 MiB. Inputs that result in longer output will - * be truncated. - * @since v0.3.0 - * @param object Any JavaScript primitive or `Object`. - * @return The representation of `object`. - */ - export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; - export function inspect(object: any, options?: InspectOptions): string; - export namespace inspect { - let colors: NodeJS.Dict<[number, number]>; - let styles: { - [K in Style]: string; - }; - let defaultOptions: InspectOptions; - /** - * Allows changing inspect settings from the repl. - */ - let replDefaults: InspectOptions; - /** - * That can be used to declare custom inspect functions. - */ - const custom: unique symbol; - } - /** - * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). - * - * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isArray([]); - * // Returns: true - * util.isArray(new Array()); - * // Returns: true - * util.isArray({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use `isArray` instead. - */ - export function isArray(object: unknown): object is unknown[]; - /** - * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isRegExp(/some regexp/); - * // Returns: true - * util.isRegExp(new RegExp('another regexp')); - * // Returns: true - * util.isRegExp({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Deprecated - */ - export function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isDate(new Date()); - * // Returns: true - * util.isDate(Date()); - * // false (without 'new' returns a String) - * util.isDate({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isDate} instead. - */ - export function isDate(object: unknown): object is Date; - /** - * Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isError(new Error()); - * // Returns: true - * util.isError(new TypeError()); - * // Returns: true - * util.isError({ name: 'Error', message: 'an error occurred' }); - * // Returns: false - * ``` - * - * This method relies on `Object.prototype.toString()` behavior. It is - * possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`. - * - * ```js - * import util from 'node:util'; - * const obj = { name: 'Error', message: 'an error occurred' }; - * - * util.isError(obj); - * // Returns: false - * obj[Symbol.toStringTag] = 'Error'; - * util.isError(obj); - * // Returns: true - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead. - */ - export function isError(object: unknown): object is Error; - /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note - * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). - * - * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The - * prototype of `constructor` will be set to a new object created from `superConstructor`. - * - * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. - * As an additional convenience, `superConstructor` will be accessible - * through the `constructor.super_` property. - * - * ```js - * import util from 'node:util'; - * import EventEmitter from 'node:events'; - * - * function MyStream() { - * EventEmitter.call(this); - * } - * - * util.inherits(MyStream, EventEmitter); - * - * MyStream.prototype.write = function(data) { - * this.emit('data', data); - * }; - * - * const stream = new MyStream(); - * - * console.log(stream instanceof EventEmitter); // true - * console.log(MyStream.super_ === EventEmitter); // true - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('It works!'); // Received data: "It works!" - * ``` - * - * ES6 example using `class` and `extends`: - * - * ```js - * import EventEmitter from 'node:events'; - * - * class MyStream extends EventEmitter { - * write(data) { - * this.emit('data', data); - * } - * } - * - * const stream = new MyStream(); - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('With ES6'); - * ``` - * @since v0.3.0 - * @legacy Use ES2015 class syntax and `extends` keyword instead. - */ - export function inherits(constructor: unknown, superConstructor: unknown): void; - export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; - export interface DebugLogger extends DebugLoggerFunction { - enabled: boolean; - } - /** - * The `util.debuglog()` method is used to create a function that conditionally - * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that - * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op. - * - * ```js - * import util from 'node:util'; - * const debuglog = util.debuglog('foo'); - * - * debuglog('hello from foo [%d]', 123); - * ``` - * - * If this program is run with `NODE_DEBUG=foo` in the environment, then - * it will output something like: - * - * ```console - * FOO 3245: hello from foo [123] - * ``` - * - * where `3245` is the process id. If it is not run with that - * environment variable set, then it will not print anything. - * - * The `section` supports wildcard also: - * - * ```js - * import util from 'node:util'; - * const debuglog = util.debuglog('foo-bar'); - * - * debuglog('hi there, it\'s foo-bar [%d]', 2333); - * ``` - * - * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output - * something like: - * - * ```console - * FOO-BAR 3257: hi there, it's foo-bar [2333] - * ``` - * - * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`. - * - * The optional `callback` argument can be used to replace the logging function - * with a different function that doesn't have any initialization or - * unnecessary wrapping. - * - * ```js - * import util from 'node:util'; - * let debuglog = util.debuglog('internals', (debug) => { - * // Replace with a logging function that optimizes out - * // testing if the section is enabled - * debuglog = debug; - * }); - * ``` - * @since v0.11.3 - * @param section A string identifying the portion of the application for which the `debuglog` function is being created. - * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. - * @return The logging function - */ - export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; - export const debug: typeof debuglog; - /** - * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isBoolean(1); - * // Returns: false - * util.isBoolean(0); - * // Returns: false - * util.isBoolean(false); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead. - */ - export function isBoolean(object: unknown): object is boolean; - /** - * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isBuffer({ length: 0 }); - * // Returns: false - * util.isBuffer([]); - * // Returns: false - * util.isBuffer(Buffer.from('hello world')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `isBuffer` instead. - */ - export function isBuffer(object: unknown): object is Buffer; - /** - * Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * function Foo() {} - * const Bar = () => {}; - * - * util.isFunction({}); - * // Returns: false - * util.isFunction(Foo); - * // Returns: true - * util.isFunction(Bar); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead. - */ - export function isFunction(object: unknown): boolean; - /** - * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNull(0); - * // Returns: false - * util.isNull(undefined); - * // Returns: false - * util.isNull(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === null` instead. - */ - export function isNull(object: unknown): object is null; - /** - * Returns `true` if the given `object` is `null` or `undefined`. Otherwise, - * returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNullOrUndefined(0); - * // Returns: false - * util.isNullOrUndefined(undefined); - * // Returns: true - * util.isNullOrUndefined(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead. - */ - export function isNullOrUndefined(object: unknown): object is null | undefined; - /** - * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNumber(false); - * // Returns: false - * util.isNumber(Infinity); - * // Returns: true - * util.isNumber(0); - * // Returns: true - * util.isNumber(NaN); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead. - */ - export function isNumber(object: unknown): object is number; - /** - * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). - * Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isObject(5); - * // Returns: false - * util.isObject(null); - * // Returns: false - * util.isObject({}); - * // Returns: true - * util.isObject(() => {}); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead. - */ - export function isObject(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`. - * - * ```js - * import util from 'node:util'; - * - * util.isPrimitive(5); - * // Returns: true - * util.isPrimitive('foo'); - * // Returns: true - * util.isPrimitive(false); - * // Returns: true - * util.isPrimitive(null); - * // Returns: true - * util.isPrimitive(undefined); - * // Returns: true - * util.isPrimitive({}); - * // Returns: false - * util.isPrimitive(() => {}); - * // Returns: false - * util.isPrimitive(/^$/); - * // Returns: false - * util.isPrimitive(new Date()); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. - */ - export function isPrimitive(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isString(''); - * // Returns: true - * util.isString('foo'); - * // Returns: true - * util.isString(String('foo')); - * // Returns: true - * util.isString(5); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead. - */ - export function isString(object: unknown): object is string; - /** - * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isSymbol(5); - * // Returns: false - * util.isSymbol('foo'); - * // Returns: false - * util.isSymbol(Symbol('foo')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead. - */ - export function isSymbol(object: unknown): object is symbol; - /** - * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * const foo = undefined; - * util.isUndefined(5); - * // Returns: false - * util.isUndefined(foo); - * // Returns: true - * util.isUndefined(null); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined` instead. - */ - export function isUndefined(object: unknown): object is undefined; - /** - * The `util.deprecate()` method wraps `fn` (which may be a function or class) in - * such a way that it is marked as deprecated. - * - * ```js - * import util from 'node:util'; - * - * exports.obsoleteFunction = util.deprecate(() => { - * // Do something here. - * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); - * ``` - * - * When called, `util.deprecate()` will return a function that will emit a `DeprecationWarning` using the `'warning'` event. The warning will - * be emitted and printed to `stderr` the first time the returned function is - * called. After the warning is emitted, the wrapped function is called without - * emitting a warning. - * - * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, - * the warning will be emitted only once for that `code`. - * - * ```js - * import util from 'node:util'; - * - * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001'); - * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001'); - * fn1(); // Emits a deprecation warning with code DEP0001 - * fn2(); // Does not emit a deprecation warning because it has the same code - * ``` - * - * If either the `--no-deprecation` or `--no-warnings` command-line flags are - * used, or if the `process.noDeprecation` property is set to `true`_prior_ to - * the first deprecation warning, the `util.deprecate()` method does nothing. - * - * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, - * or the `process.traceDeprecation` property is set to `true`, a warning and a - * stack trace are printed to `stderr` the first time the deprecated function is - * called. - * - * If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be - * thrown when the deprecated function is called. - * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. - * @since v0.8.0 - * @param fn The function that is being deprecated. - * @param msg A warning message to display when the deprecated function is invoked. - * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. - * @return The deprecated function wrapped to emit a warning. - */ - export function deprecate(fn: T, msg: string, code?: string): T; - /** - * Returns `true` if there is deep strict equality between `val1` and `val2`. - * Otherwise, returns `false`. - * - * See `assert.deepStrictEqual()` for more information about deep strict - * equality. - * @since v9.0.0 - */ - export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean; - /** - * Returns `str` with any ANSI escape codes removed. - * - * ```js - * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m')); - * // Prints "value" - * ``` - * @since v16.11.0 - */ - export function stripVTControlCharacters(str: string): string; - /** - * Takes an `async` function (or a function that returns a `Promise`) and returns a - * function following the error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument. In the callback, the - * first argument will be the rejection reason (or `null` if the `Promise` resolved), and the second argument will be the resolved value. - * - * ```js - * import util from 'node:util'; - * - * async function fn() { - * return 'hello world'; - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * if (err) throw err; - * console.log(ret); - * }); - * ``` - * - * Will print: - * - * ```text - * hello world - * ``` - * - * The callback is executed asynchronously, and will have a limited stack trace. - * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit. - * - * Since `null` has a special meaning as the first argument to a callback, if a - * wrapped function rejects a `Promise` with a falsy value as a reason, the value - * is wrapped in an `Error` with the original value stored in a field named `reason`. - * - * ```js - * function fn() { - * return Promise.reject(null); - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * // When the Promise was rejected with `null` it is wrapped with an Error and - * // the original value is stored in `reason`. - * err && Object.hasOwn(err, 'reason') && err.reason === null; // true - * }); - * ``` - * @since v8.2.0 - * @param fn An `async` function - * @return a callback style function - */ - export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: () => Promise, - ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export interface CustomPromisifyLegacy extends Function { - __promisify__: TCustom; - } - export interface CustomPromisifySymbol extends Function { - [promisify.custom]: TCustom; - } - export type CustomPromisify = - | CustomPromisifySymbol - | CustomPromisifyLegacy; - /** - * Takes a function following the common error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument, and returns a version - * that returns promises. - * - * ```js - * import util from 'node:util'; - * import fs from 'node:fs'; - * - * const stat = util.promisify(fs.stat); - * stat('.').then((stats) => { - * // Do something with `stats` - * }).catch((error) => { - * // Handle the error. - * }); - * ``` - * - * Or, equivalently using `async function`s: - * - * ```js - * import util from 'node:util'; - * import fs from 'node:fs'; - * - * const stat = util.promisify(fs.stat); - * - * async function callStat() { - * const stats = await stat('.'); - * console.log(`This directory is owned by ${stats.uid}`); - * } - * - * callStat(); - * ``` - * - * If there is an `original[util.promisify.custom]` property present, `promisify` will return its value, see `Custom promisified functions`. - * - * `promisify()` assumes that `original` is a function taking a callback as its - * final argument in all cases. If `original` is not a function, `promisify()` will throw an error. If `original` is a function but its last argument is not - * an error-first callback, it will still be passed an error-first - * callback as its last argument. - * - * Using `promisify()` on class methods or other methods that use `this` may not - * work as expected unless handled specially: - * - * ```js - * import util from 'node:util'; - * - * class Foo { - * constructor() { - * this.a = 42; - * } - * - * bar(callback) { - * callback(null, this.a); - * } - * } - * - * const foo = new Foo(); - * - * const naiveBar = util.promisify(foo.bar); - * // TypeError: Cannot read property 'a' of undefined - * // naiveBar().then(a => console.log(a)); - * - * naiveBar.call(foo).then((a) => console.log(a)); // '42' - * - * const bindBar = naiveBar.bind(foo); - * bindBar().then((a) => console.log(a)); // '42' - * ``` - * @since v8.0.0 - */ - export function promisify(fn: CustomPromisify): TCustom; - export function promisify( - fn: (callback: (err: any, result: TResult) => void) => void, - ): () => Promise; - export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; - export function promisify( - fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1) => Promise; - export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify(fn: Function): Function; - export namespace promisify { - /** - * That can be used to declare custom promisified variants of functions. - */ - const custom: unique symbol; - } - /** - * Stability: 1.1 - Active development - * Given an example `.env` file: - * - * ```js - * import { parseEnv } from 'node:util'; - * - * parseEnv('HELLO=world\nHELLO=oh my\n'); - * // Returns: { HELLO: 'oh my' } - * ``` - * @param content The raw contents of a `.env` file. - * @since v20.12.0 - */ - export function parseEnv(content: string): NodeJS.Dict; - // https://nodejs.org/docs/latest/api/util.html#foreground-colors - type ForegroundColors = - | "black" - | "blackBright" - | "blue" - | "blueBright" - | "cyan" - | "cyanBright" - | "gray" - | "green" - | "greenBright" - | "grey" - | "magenta" - | "magentaBright" - | "red" - | "redBright" - | "white" - | "whiteBright" - | "yellow" - | "yellowBright"; - // https://nodejs.org/docs/latest/api/util.html#background-colors - type BackgroundColors = - | "bgBlack" - | "bgBlackBright" - | "bgBlue" - | "bgBlueBright" - | "bgCyan" - | "bgCyanBright" - | "bgGray" - | "bgGreen" - | "bgGreenBright" - | "bgGrey" - | "bgMagenta" - | "bgMagentaBright" - | "bgRed" - | "bgRedBright" - | "bgWhite" - | "bgWhiteBright" - | "bgYellow" - | "bgYellowBright"; - // https://nodejs.org/docs/latest/api/util.html#modifiers - type Modifiers = - | "blink" - | "bold" - | "dim" - | "doubleunderline" - | "framed" - | "hidden" - | "inverse" - | "italic" - | "overlined" - | "reset" - | "strikethrough" - | "underline"; - export interface StyleTextOptions { - /** - * When true, `stream` is checked to see if it can handle colors. - * @default true - */ - validateStream?: boolean | undefined; - /** - * A stream that will be validated if it can be colored. - * @default process.stdout - */ - stream?: NodeJS.WritableStream | undefined; - } - /** - * Stability: 1.1 - Active development - * - * This function returns a formatted text considering the `format` passed. - * - * ```js - * import { styleText } from 'node:util'; - * const errorMessage = styleText('red', 'Error! Error!'); - * console.log(errorMessage); - * ``` - * - * `util.inspect.colors` also provides text formats such as `italic`, and `underline` and you can combine both: - * - * ```js - * console.log( - * util.styleText(['underline', 'italic'], 'My italic underlined message'), - * ); - * ``` - * - * When passing an array of formats, the order of the format applied is left to right so the following style - * might overwrite the previous one. - * - * ```js - * console.log( - * util.styleText(['red', 'green'], 'text'), // green - * ); - * ``` - * - * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v20.x/api/util.html#modifiers). - * @param format A text format or an Array of text formats defined in `util.inspect.colors`. - * @param text The text to to be formatted. - * @since v20.12.0 - */ - export function styleText( - format: - | ForegroundColors - | BackgroundColors - | Modifiers - | Array, - text: string, - options?: StyleTextOptions, - ): string; - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API. - * - * ```js - * const decoder = new TextDecoder(); - * const u8arr = new Uint8Array([72, 101, 108, 108, 111]); - * console.log(decoder.decode(u8arr)); // Hello - * ``` - * @since v8.3.0 - */ - export class TextDecoder { - /** - * The encoding supported by the `TextDecoder` instance. - */ - readonly encoding: string; - /** - * The value will be `true` if decoding errors result in a `TypeError` being - * thrown. - */ - readonly fatal: boolean; - /** - * The value will be `true` if the decoding result will include the byte order - * mark. - */ - readonly ignoreBOM: boolean; - constructor( - encoding?: string, - options?: { - fatal?: boolean | undefined; - ignoreBOM?: boolean | undefined; - }, - ); - /** - * Decodes the `input` and returns a string. If `options.stream` is `true`, any - * incomplete byte sequences occurring at the end of the `input` are buffered - * internally and emitted after the next call to `textDecoder.decode()`. - * - * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown. - * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data. - */ - decode( - input?: NodeJS.ArrayBufferView | ArrayBuffer | null, - options?: { - stream?: boolean | undefined; - }, - ): string; - } - export interface EncodeIntoResult { - /** - * The read Unicode code units of input. - */ - read: number; - /** - * The written UTF-8 bytes of output. - */ - written: number; - } - export { types }; - - //// TextEncoder/Decoder - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All - * instances of `TextEncoder` only support UTF-8 encoding. - * - * ```js - * const encoder = new TextEncoder(); - * const uint8array = encoder.encode('this is some data'); - * ``` - * - * The `TextEncoder` class is also available on the global object. - * @since v8.3.0 - */ - export class TextEncoder { - /** - * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. - */ - readonly encoding: string; - /** - * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the - * encoded bytes. - * @param [input='an empty string'] The text to encode. - */ - encode(input?: string): NodeJS.NonSharedUint8Array; - /** - * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object - * containing the read Unicode code units and written UTF-8 bytes. - * - * ```js - * const encoder = new TextEncoder(); - * const src = 'this is some data'; - * const dest = new Uint8Array(10); - * const { read, written } = encoder.encodeInto(src, dest); - * ``` - * @param src The text to encode. - * @param dest The array to hold the encode result. - */ - encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; - } - import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util"; - global { - /** - * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textdecoder - * @since v11.0.0 - */ - var TextDecoder: typeof globalThis extends { - onmessage: any; - TextDecoder: infer TextDecoder; - } ? TextDecoder - : typeof _TextDecoder; - /** - * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textencoder - * @since v11.0.0 - */ - var TextEncoder: typeof globalThis extends { - onmessage: any; - TextEncoder: infer TextEncoder; - } ? TextEncoder - : typeof _TextEncoder; - } - - //// parseArgs - /** - * Provides a higher level API for command-line argument parsing than interacting - * with `process.argv` directly. Takes a specification for the expected arguments - * and returns a structured object with the parsed options and positionals. - * - * ```js - * import { parseArgs } from 'node:util'; - * const args = ['-f', '--bar', 'b']; - * const options = { - * foo: { - * type: 'boolean', - * short: 'f', - * }, - * bar: { - * type: 'string', - * }, - * }; - * const { - * values, - * positionals, - * } = parseArgs({ args, options }); - * console.log(values, positionals); - * // Prints: [Object: null prototype] { foo: true, bar: 'b' } [] - * ``` - * @since v18.3.0, v16.17.0 - * @param config Used to provide arguments for parsing and to configure the parser. `config` supports the following properties: - * @return The parsed command line arguments: - */ - export function parseArgs(config?: T): ParsedResults; - interface ParseArgsOptionConfig { - /** - * Type of argument. - */ - type: "string" | "boolean"; - /** - * Whether this option can be provided multiple times. - * If `true`, all values will be collected in an array. - * If `false`, values for the option are last-wins. - * @default false. - */ - multiple?: boolean | undefined; - /** - * A single character alias for the option. - */ - short?: string | undefined; - /** - * The default option value when it is not set by args. - * It must be of the same type as the the `type` property. - * When `multiple` is `true`, it must be an array. - * @since v18.11.0 - */ - default?: string | boolean | string[] | boolean[] | undefined; - } - interface ParseArgsOptionsConfig { - [longOption: string]: ParseArgsOptionConfig; - } - export interface ParseArgsConfig { - /** - * Array of argument strings. - */ - args?: readonly string[] | undefined; - /** - * Used to describe arguments known to the parser. - */ - options?: ParseArgsOptionsConfig | undefined; - /** - * Should an error be thrown when unknown arguments are encountered, - * or when arguments are passed that do not match the `type` configured in `options`. - * @default true - */ - strict?: boolean | undefined; - /** - * Whether this command accepts positional arguments. - */ - allowPositionals?: boolean | undefined; - /** - * If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`. - * @default false - * @since v20.16.0 - */ - allowNegative?: boolean | undefined; - /** - * Return the parsed tokens. This is useful for extending the built-in behavior, - * from adding additional checks through to reprocessing the tokens in different ways. - * @default false - */ - tokens?: boolean | undefined; - } - /* - IfDefaultsTrue and IfDefaultsFalse are helpers to handle default values for missing boolean properties. - TypeScript does not have exact types for objects: https://github.com/microsoft/TypeScript/issues/12936 - This means it is impossible to distinguish between "field X is definitely not present" and "field X may or may not be present". - But we expect users to generally provide their config inline or `as const`, which means TS will always know whether a given field is present. - So this helper treats "not definitely present" (i.e., not `extends boolean`) as being "definitely not present", i.e. it should have its default value. - This is technically incorrect but is a much nicer UX for the common case. - The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false. - */ - type IfDefaultsTrue = T extends true ? IfTrue - : T extends false ? IfFalse - : IfTrue; - - // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false` - type IfDefaultsFalse = T extends false ? IfFalse - : T extends true ? IfTrue - : IfFalse; - - type ExtractOptionValue = IfDefaultsTrue< - T["strict"], - O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean, - string | boolean - >; - - type ApplyOptionalModifiers> = ( - & { -readonly [LongOption in keyof O]?: V[LongOption] } - & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] } - ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object - - type ParsedValues = - & IfDefaultsTrue - & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers< - T["options"], - { - [LongOption in keyof T["options"]]: IfDefaultsFalse< - T["options"][LongOption]["multiple"], - Array>, - ExtractOptionValue - >; - } - > - : {}); - - type ParsedPositionals = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type PreciseTokenForOptions< - K extends string, - O extends ParseArgsOptionConfig, - > = O["type"] extends "string" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: string; - inlineValue: boolean; - } - : O["type"] extends "boolean" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: undefined; - inlineValue: undefined; - } - : OptionToken & { name: K }; - - type TokenForOptions< - T extends ParseArgsConfig, - K extends keyof T["options"] = keyof T["options"], - > = K extends unknown - ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions - : OptionToken - : never; - - type ParsedOptionToken = IfDefaultsTrue, OptionToken>; - - type ParsedPositionalToken = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type ParsedTokens = Array< - ParsedOptionToken | ParsedPositionalToken | { kind: "option-terminator"; index: number } - >; - - type PreciseParsedResults = IfDefaultsFalse< - T["tokens"], - { - values: ParsedValues; - positionals: ParsedPositionals; - tokens: ParsedTokens; - }, - { - values: ParsedValues; - positionals: ParsedPositionals; - } - >; - - type OptionToken = - | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean } - | { - kind: "option"; - index: number; - name: string; - rawName: string; - value: undefined; - inlineValue: undefined; - }; - - type Token = - | OptionToken - | { kind: "positional"; index: number; value: string } - | { kind: "option-terminator"; index: number }; - - // If ParseArgsConfig extends T, then the user passed config constructed elsewhere. - // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above. - type ParsedResults = ParseArgsConfig extends T ? { - values: { - [longOption: string]: undefined | string | boolean | Array; - }; - positionals: string[]; - tokens?: Token[]; - } - : PreciseParsedResults; - - /** - * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/). - * - * In accordance with browser conventions, all properties of `MIMEType` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. - * - * A MIME string is a structured string containing multiple meaningful - * components. When parsed, a `MIMEType` object is returned containing - * properties for each of these components. - * @since v19.1.0, v18.13.0 - * @experimental - */ - export class MIMEType { - /** - * Creates a new MIMEType object by parsing the input. - * - * A `TypeError` will be thrown if the `input` is not a valid MIME. - * Note that an effort will be made to coerce the given values into strings. - * @param input The input MIME to parse. - */ - constructor(input: string | { toString: () => string }); - - /** - * Gets and sets the type portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript'); - * console.log(myMIME.type); - * // Prints: text - * myMIME.type = 'application'; - * console.log(myMIME.type); - * // Prints: application - * console.log(String(myMIME)); - * // Prints: application/javascript - * ``` - */ - type: string; - /** - * Gets and sets the subtype portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/ecmascript'); - * console.log(myMIME.subtype); - * // Prints: ecmascript - * myMIME.subtype = 'javascript'; - * console.log(myMIME.subtype); - * // Prints: javascript - * console.log(String(myMIME)); - * // Prints: text/javascript - * ``` - */ - subtype: string; - /** - * Gets the essence of the MIME. This property is read only. - * Use `mime.type` or `mime.subtype` to alter the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript;key=value'); - * console.log(myMIME.essence); - * // Prints: text/javascript - * myMIME.type = 'application'; - * console.log(myMIME.essence); - * // Prints: application/javascript - * console.log(String(myMIME)); - * // Prints: application/javascript;key=value - * ``` - */ - readonly essence: string; - /** - * Gets the `MIMEParams` object representing the - * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details. - */ - readonly params: MIMEParams; - /** - * The `toString()` method on the `MIMEType` object returns the serialized MIME. - * - * Because of the need for standard compliance, this method does not allow users - * to customize the serialization process of the MIME. - */ - toString(): string; - } - /** - * The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`. - * @since v19.1.0, v18.13.0 - */ - export class MIMEParams { - /** - * Remove all name-value pairs whose name is `name`. - */ - delete(name: string): void; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - * Each item of the iterator is a JavaScript `Array`. The first item of the array - * is the `name`, the second item of the array is the `value`. - */ - entries(): NodeJS.Iterator<[name: string, value: string]>; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns `true` if there is at least one name-value pair whose name is `name`. - */ - has(name: string): boolean; - /** - * Returns an iterator over the names of each name-value pair. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // bar - * ``` - */ - keys(): NodeJS.Iterator; - /** - * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value`. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * params.set('foo', 'def'); - * params.set('baz', 'xyz'); - * console.log(params.toString()); - * // Prints: foo=def;bar=1;baz=xyz - * ``` - */ - set(name: string, value: string): void; - /** - * Returns an iterator over the values of each name-value pair. - */ - values(): NodeJS.Iterator; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - */ - [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>; - } -} -declare module "util/types" { - import { KeyObject, webcrypto } from "node:crypto"; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or - * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * - * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. - * - * ```js - * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; - /** - * Returns `true` if the value is an `arguments` object. - * - * ```js - * function foo() { - * util.types.isArgumentsObject(arguments); // Returns true - * } - * ``` - * @since v10.0.0 - */ - function isArgumentsObject(object: unknown): object is IArguments; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. - * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false - * ``` - * @since v10.0.0 - */ - function isArrayBuffer(object: unknown): object is ArrayBuffer; - /** - * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed - * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to - * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * - * ```js - * util.types.isArrayBufferView(new Int8Array()); // true - * util.types.isArrayBufferView(Buffer.from('hello world')); // true - * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true - * util.types.isArrayBufferView(new ArrayBuffer()); // false - * ``` - * @since v10.0.0 - */ - function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; - /** - * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isAsyncFunction(function foo() {}); // Returns false - * util.types.isAsyncFunction(async function foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isAsyncFunction(object: unknown): boolean; - /** - * Returns `true` if the value is a `BigInt64Array` instance. - * - * ```js - * util.types.isBigInt64Array(new BigInt64Array()); // Returns true - * util.types.isBigInt64Array(new BigUint64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isBigInt64Array(value: unknown): value is BigInt64Array; - /** - * Returns `true` if the value is a BigInt object, e.g. created - * by `Object(BigInt(123))`. - * - * ```js - * util.types.isBigIntObject(Object(BigInt(123))); // Returns true - * util.types.isBigIntObject(BigInt(123)); // Returns false - * util.types.isBigIntObject(123); // Returns false - * ``` - * @since v10.4.0 - */ - function isBigIntObject(object: unknown): object is BigInt; - /** - * Returns `true` if the value is a `BigUint64Array` instance. - * - * ```js - * util.types.isBigUint64Array(new BigInt64Array()); // Returns false - * util.types.isBigUint64Array(new BigUint64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isBigUint64Array(value: unknown): value is BigUint64Array; - /** - * Returns `true` if the value is a boolean object, e.g. created - * by `new Boolean()`. - * - * ```js - * util.types.isBooleanObject(false); // Returns false - * util.types.isBooleanObject(true); // Returns false - * util.types.isBooleanObject(new Boolean(false)); // Returns true - * util.types.isBooleanObject(new Boolean(true)); // Returns true - * util.types.isBooleanObject(Boolean(false)); // Returns false - * util.types.isBooleanObject(Boolean(true)); // Returns false - * ``` - * @since v10.0.0 - */ - function isBooleanObject(object: unknown): object is Boolean; - /** - * Returns `true` if the value is any boxed primitive object, e.g. created - * by `new Boolean()`, `new String()` or `Object(Symbol())`. - * - * For example: - * - * ```js - * util.types.isBoxedPrimitive(false); // Returns false - * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true - * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false - * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true - * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true - * ``` - * @since v10.11.0 - */ - function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; - /** - * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. - * - * ```js - * const ab = new ArrayBuffer(20); - * util.types.isDataView(new DataView(ab)); // Returns true - * util.types.isDataView(new Float64Array()); // Returns false - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isDataView(object: unknown): object is DataView; - /** - * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. - * - * ```js - * util.types.isDate(new Date()); // Returns true - * ``` - * @since v10.0.0 - */ - function isDate(object: unknown): object is Date; - /** - * Returns `true` if the value is a native `External` value. - * - * A native `External` value is a special type of object that contains a - * raw C++ pointer (`void*`) for access from native code, and has no other - * properties. Such objects are created either by Node.js internals or native - * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype. - * - * ```c - * #include - * #include - * napi_value result; - * static napi_value MyNapi(napi_env env, napi_callback_info info) { - * int* raw = (int*) malloc(1024); - * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); - * if (status != napi_ok) { - * napi_throw_error(env, NULL, "napi_create_external failed"); - * return NULL; - * } - * return result; - * } - * ... - * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) - * ... - * ``` - * - * ```js - * const native =require('napi_addon.node'); - * const data = native.myNapi(); - * util.types.isExternal(data); // returns true - * util.types.isExternal(0); // returns false - * util.types.isExternal(new String('foo')); // returns false - * ``` - * - * For further information on `napi_create_external`, refer to `napi_create_external()`. - * @since v10.0.0 - */ - function isExternal(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. - * - * ```js - * util.types.isFloat32Array(new ArrayBuffer()); // Returns false - * util.types.isFloat32Array(new Float32Array()); // Returns true - * util.types.isFloat32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isFloat32Array(object: unknown): object is Float32Array; - /** - * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. - * - * ```js - * util.types.isFloat64Array(new ArrayBuffer()); // Returns false - * util.types.isFloat64Array(new Uint8Array()); // Returns false - * util.types.isFloat64Array(new Float64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isFloat64Array(object: unknown): object is Float64Array; - /** - * Returns `true` if the value is a generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isGeneratorFunction(function foo() {}); // Returns false - * util.types.isGeneratorFunction(function* foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorFunction(object: unknown): object is GeneratorFunction; - /** - * Returns `true` if the value is a generator object as returned from a - * built-in generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * function* foo() {} - * const generator = foo(); - * util.types.isGeneratorObject(generator); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorObject(object: unknown): object is Generator; - /** - * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. - * - * ```js - * util.types.isInt8Array(new ArrayBuffer()); // Returns false - * util.types.isInt8Array(new Int8Array()); // Returns true - * util.types.isInt8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt8Array(object: unknown): object is Int8Array; - /** - * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. - * - * ```js - * util.types.isInt16Array(new ArrayBuffer()); // Returns false - * util.types.isInt16Array(new Int16Array()); // Returns true - * util.types.isInt16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt16Array(object: unknown): object is Int16Array; - /** - * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. - * - * ```js - * util.types.isInt32Array(new ArrayBuffer()); // Returns false - * util.types.isInt32Array(new Int32Array()); // Returns true - * util.types.isInt32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt32Array(object: unknown): object is Int32Array; - /** - * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * util.types.isMap(new Map()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMap( - object: T | {}, - ): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) - : Map; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * const map = new Map(); - * util.types.isMapIterator(map.keys()); // Returns true - * util.types.isMapIterator(map.values()); // Returns true - * util.types.isMapIterator(map.entries()); // Returns true - * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMapIterator(object: unknown): boolean; - /** - * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). - * - * ```js - * import * as ns from './a.js'; - * - * util.types.isModuleNamespaceObject(ns); // Returns true - * ``` - * @since v10.0.0 - */ - function isModuleNamespaceObject(value: unknown): boolean; - /** - * Returns `true` if the value was returned by the constructor of a [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects). - * - * ```js - * console.log(util.types.isNativeError(new Error())); // true - * console.log(util.types.isNativeError(new TypeError())); // true - * console.log(util.types.isNativeError(new RangeError())); // true - * ``` - * - * Subclasses of the native error types are also native errors: - * - * ```js - * class MyError extends Error {} - * console.log(util.types.isNativeError(new MyError())); // true - * ``` - * - * A value being `instanceof` a native error class is not equivalent to `isNativeError()` returning `true` for that value. `isNativeError()` returns `true` for errors - * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` for these errors: - * - * ```js - * import vm from 'node:vm'; - * const context = vm.createContext({}); - * const myError = vm.runInContext('new Error()', context); - * console.log(util.types.isNativeError(myError)); // true - * console.log(myError instanceof Error); // false - * ``` - * - * Conversely, `isNativeError()` returns `false` for all objects which were not - * returned by the constructor of a native error. That includes values - * which are `instanceof` native errors: - * - * ```js - * const myError = { __proto__: Error.prototype }; - * console.log(util.types.isNativeError(myError)); // false - * console.log(myError instanceof Error); // true - * ``` - * @since v10.0.0 - */ - function isNativeError(object: unknown): object is Error; - /** - * Returns `true` if the value is a number object, e.g. created - * by `new Number()`. - * - * ```js - * util.types.isNumberObject(0); // Returns false - * util.types.isNumberObject(new Number(0)); // Returns true - * ``` - * @since v10.0.0 - */ - function isNumberObject(object: unknown): object is Number; - /** - * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). - * - * ```js - * util.types.isPromise(Promise.resolve(42)); // Returns true - * ``` - * @since v10.0.0 - */ - function isPromise(object: unknown): object is Promise; - /** - * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. - * - * ```js - * const target = {}; - * const proxy = new Proxy(target, {}); - * util.types.isProxy(target); // Returns false - * util.types.isProxy(proxy); // Returns true - * ``` - * @since v10.0.0 - */ - function isProxy(object: unknown): boolean; - /** - * Returns `true` if the value is a regular expression object. - * - * ```js - * util.types.isRegExp(/abc/); // Returns true - * util.types.isRegExp(new RegExp('abc')); // Returns true - * ``` - * @since v10.0.0 - */ - function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * util.types.isSet(new Set()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSet( - object: T | {}, - ): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * const set = new Set(); - * util.types.isSetIterator(set.keys()); // Returns true - * util.types.isSetIterator(set.values()); // Returns true - * util.types.isSetIterator(set.entries()); // Returns true - * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSetIterator(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false - * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; - /** - * Returns `true` if the value is a string object, e.g. created - * by `new String()`. - * - * ```js - * util.types.isStringObject('foo'); // Returns false - * util.types.isStringObject(new String('foo')); // Returns true - * ``` - * @since v10.0.0 - */ - function isStringObject(object: unknown): object is String; - /** - * Returns `true` if the value is a symbol object, created - * by calling `Object()` on a `Symbol` primitive. - * - * ```js - * const symbol = Symbol('foo'); - * util.types.isSymbolObject(symbol); // Returns false - * util.types.isSymbolObject(Object(symbol)); // Returns true - * ``` - * @since v10.0.0 - */ - function isSymbolObject(object: unknown): object is Symbol; - /** - * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. - * - * ```js - * util.types.isTypedArray(new ArrayBuffer()); // Returns false - * util.types.isTypedArray(new Uint8Array()); // Returns true - * util.types.isTypedArray(new Float64Array()); // Returns true - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isTypedArray(object: unknown): object is NodeJS.TypedArray; - /** - * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. - * - * ```js - * util.types.isUint8Array(new ArrayBuffer()); // Returns false - * util.types.isUint8Array(new Uint8Array()); // Returns true - * util.types.isUint8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8Array(object: unknown): object is Uint8Array; - /** - * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. - * - * ```js - * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false - * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true - * util.types.isUint8ClampedArray(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; - /** - * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. - * - * ```js - * util.types.isUint16Array(new ArrayBuffer()); // Returns false - * util.types.isUint16Array(new Uint16Array()); // Returns true - * util.types.isUint16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint16Array(object: unknown): object is Uint16Array; - /** - * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. - * - * ```js - * util.types.isUint32Array(new ArrayBuffer()); // Returns false - * util.types.isUint32Array(new Uint32Array()); // Returns true - * util.types.isUint32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint32Array(object: unknown): object is Uint32Array; - /** - * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. - * - * ```js - * util.types.isWeakMap(new WeakMap()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakMap(object: unknown): object is WeakMap; - /** - * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. - * - * ```js - * util.types.isWeakSet(new WeakSet()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakSet(object: unknown): object is WeakSet; - /** - * Returns `true` if `value` is a `KeyObject`, `false` otherwise. - * @since v16.2.0 - */ - function isKeyObject(object: unknown): object is KeyObject; - /** - * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. - * @since v16.2.0 - */ - function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; -} -declare module "node:util" { - export * from "util"; -} -declare module "node:util/types" { - export * from "util/types"; -} diff --git a/mcp-server/node_modules/@types/node/v8.d.ts b/mcp-server/node_modules/@types/node/v8.d.ts deleted file mode 100644 index 8b0e965..0000000 --- a/mcp-server/node_modules/@types/node/v8.d.ts +++ /dev/null @@ -1,809 +0,0 @@ -/** - * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using: - * - * ```js - * import v8 from 'node:v8'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/v8.js) - */ -declare module "v8" { - import { NonSharedBuffer } from "node:buffer"; - import { Readable } from "node:stream"; - interface HeapSpaceInfo { - space_name: string; - space_size: number; - space_used_size: number; - space_available_size: number; - physical_space_size: number; - } - // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ - type DoesZapCodeSpaceFlag = 0 | 1; - interface HeapInfo { - total_heap_size: number; - total_heap_size_executable: number; - total_physical_size: number; - total_available_size: number; - used_heap_size: number; - heap_size_limit: number; - malloced_memory: number; - peak_malloced_memory: number; - does_zap_garbage: DoesZapCodeSpaceFlag; - number_of_native_contexts: number; - number_of_detached_contexts: number; - total_global_handles_size: number; - used_global_handles_size: number; - external_memory: number; - } - interface HeapCodeStatistics { - code_and_metadata_size: number; - bytecode_and_metadata_size: number; - external_script_source_size: number; - } - interface HeapSnapshotOptions { - /** - * If true, expose internals in the heap snapshot. - * @default false - */ - exposeInternals?: boolean | undefined; - /** - * If true, expose numeric values in artificial fields. - * @default false - */ - exposeNumericValues?: boolean | undefined; - } - /** - * Returns an integer representing a version tag derived from the V8 version, - * command-line flags, and detected CPU features. This is useful for determining - * whether a `vm.Script` `cachedData` buffer is compatible with this instance - * of V8. - * - * ```js - * console.log(v8.cachedDataVersionTag()); // 3947234607 - * // The value returned by v8.cachedDataVersionTag() is derived from the V8 - * // version, command-line flags, and detected CPU features. Test that the value - * // does indeed update when flags are toggled. - * v8.setFlagsFromString('--allow_natives_syntax'); - * console.log(v8.cachedDataVersionTag()); // 183726201 - * ``` - * @since v8.0.0 - */ - function cachedDataVersionTag(): number; - /** - * Returns an object with the following properties: - * - * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap - * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger - * because it continuously touches all heap pages and that makes them less likely - * to get swapped out by the operating system. - * - * `number_of_native_contexts` The value of native\_context is the number of the - * top-level contexts currently active. Increase of this number over time indicates - * a memory leak. - * - * `number_of_detached_contexts` The value of detached\_context is the number - * of contexts that were detached and not yet garbage collected. This number - * being non-zero indicates a potential memory leak. - * - * `total_global_handles_size` The value of total\_global\_handles\_size is the - * total memory size of V8 global handles. - * - * `used_global_handles_size` The value of used\_global\_handles\_size is the - * used memory size of V8 global handles. - * - * `external_memory` The value of external\_memory is the memory size of array - * buffers and external strings. - * - * ```js - * { - * total_heap_size: 7326976, - * total_heap_size_executable: 4194304, - * total_physical_size: 7326976, - * total_available_size: 1152656, - * used_heap_size: 3476208, - * heap_size_limit: 1535115264, - * malloced_memory: 16384, - * peak_malloced_memory: 1127496, - * does_zap_garbage: 0, - * number_of_native_contexts: 1, - * number_of_detached_contexts: 0, - * total_global_handles_size: 8192, - * used_global_handles_size: 3296, - * external_memory: 318824 - * } - * ``` - * @since v1.0.0 - */ - function getHeapStatistics(): HeapInfo; - /** - * Returns statistics about the V8 heap spaces, i.e. the segments which make up - * the V8 heap. Neither the ordering of heap spaces, nor the availability of a - * heap space can be guaranteed as the statistics are provided via the - * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the - * next. - * - * The value returned is an array of objects containing the following properties: - * - * ```json - * [ - * { - * "space_name": "new_space", - * "space_size": 2063872, - * "space_used_size": 951112, - * "space_available_size": 80824, - * "physical_space_size": 2063872 - * }, - * { - * "space_name": "old_space", - * "space_size": 3090560, - * "space_used_size": 2493792, - * "space_available_size": 0, - * "physical_space_size": 3090560 - * }, - * { - * "space_name": "code_space", - * "space_size": 1260160, - * "space_used_size": 644256, - * "space_available_size": 960, - * "physical_space_size": 1260160 - * }, - * { - * "space_name": "map_space", - * "space_size": 1094160, - * "space_used_size": 201608, - * "space_available_size": 0, - * "physical_space_size": 1094160 - * }, - * { - * "space_name": "large_object_space", - * "space_size": 0, - * "space_used_size": 0, - * "space_available_size": 1490980608, - * "physical_space_size": 0 - * } - * ] - * ``` - * @since v6.0.0 - */ - function getHeapSpaceStatistics(): HeapSpaceInfo[]; - /** - * The `v8.setFlagsFromString()` method can be used to programmatically set - * V8 command-line flags. This method should be used with care. Changing settings - * after the VM has started may result in unpredictable behavior, including - * crashes and data loss; or it may simply do nothing. - * - * The V8 options available for a version of Node.js may be determined by running `node --v8-options`. - * - * Usage: - * - * ```js - * // Print GC events to stdout for one minute. - * import v8 from 'node:v8'; - * v8.setFlagsFromString('--trace_gc'); - * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); - * ``` - * @since v1.0.0 - */ - function setFlagsFromString(flags: string): void; - /** - * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function) - * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain - * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should - * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the - * application. - * - * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects - * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided - * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the - * target objects during the search. - * - * Only objects created in the current execution context are included in the results. - * - * ```js - * import { queryObjects } from 'node:v8'; - * class A { foo = 'bar'; } - * console.log(queryObjects(A)); // 0 - * const a = new A(); - * console.log(queryObjects(A)); // 1 - * // [ "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * - * class B extends A { bar = 'qux'; } - * const b = new B(); - * console.log(queryObjects(B)); // 1 - * // [ "B { foo: 'bar', bar: 'qux' }" ] - * console.log(queryObjects(B, { format: 'summary' })); - * - * // Note that, when there are child classes inheriting from a constructor, - * // the constructor also shows up in the prototype chain of the child - * // classes's prototoype, so the child classes's prototoype would also be - * // included in the result. - * console.log(queryObjects(A)); // 3 - * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * ``` - * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap. - * @since v20.13.0 - * @experimental - */ - function queryObjects(ctor: Function): number | string[]; - function queryObjects(ctor: Function, options: { format: "count" }): number; - function queryObjects(ctor: Function, options: { format: "summary" }): string[]; - /** - * Generates a snapshot of the current V8 heap and returns a Readable - * Stream that may be used to read the JSON serialized representation. - * This JSON stream format is intended to be used with tools such as - * Chrome DevTools. The JSON schema is undocumented and specific to the - * V8 engine. Therefore, the schema may change from one version of V8 to the next. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * // Print heap snapshot to the console - * import v8 from 'node:v8'; - * const stream = v8.getHeapSnapshot(); - * stream.pipe(process.stdout); - * ``` - * @since v11.13.0 - * @return A Readable containing the V8 heap snapshot. - */ - function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; - /** - * Generates a snapshot of the current V8 heap and writes it to a JSON - * file. This file is intended to be used with tools such as Chrome - * DevTools. The JSON schema is undocumented and specific to the V8 - * engine, and may change from one version of V8 to the next. - * - * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will - * not contain any information about the workers, and vice versa. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * import { writeHeapSnapshot } from 'node:v8'; - * import { - * Worker, - * isMainThread, - * parentPort, - * } from 'node:worker_threads'; - * - * if (isMainThread) { - * const worker = new Worker(__filename); - * - * worker.once('message', (filename) => { - * console.log(`worker heapdump: ${filename}`); - * // Now get a heapdump for the main thread. - * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); - * }); - * - * // Tell the worker to create a heapdump. - * worker.postMessage('heapdump'); - * } else { - * parentPort.once('message', (message) => { - * if (message === 'heapdump') { - * // Generate a heapdump for the worker - * // and return the filename to the parent. - * parentPort.postMessage(writeHeapSnapshot()); - * } - * }); - * } - * ``` - * @since v11.13.0 - * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be - * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a - * worker thread. - * @return The filename where the snapshot was saved. - */ - function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; - /** - * Get statistics about code and its metadata in the heap, see - * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the - * following properties: - * - * ```js - * { - * code_and_metadata_size: 212208, - * bytecode_and_metadata_size: 161368, - * external_script_source_size: 1410794, - * cpu_profiler_metadata_size: 0, - * } - * ``` - * @since v12.8.0 - */ - function getHeapCodeStatistics(): HeapCodeStatistics; - /** - * @since v8.0.0 - */ - class Serializer { - /** - * Writes out a header, which includes the serialization format version. - */ - writeHeader(): void; - /** - * Serializes a JavaScript value and adds the serialized representation to the - * internal buffer. - * - * This throws an error if `value` cannot be serialized. - */ - writeValue(val: any): boolean; - /** - * Returns the stored internal buffer. This serializer should not be used once - * the buffer is released. Calling this method results in undefined behavior - * if a previous write has failed. - */ - releaseBuffer(): NonSharedBuffer; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Write a raw 32-bit unsigned integer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint32(value: number): void; - /** - * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint64(hi: number, lo: number): void; - /** - * Write a JS `number` value. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeDouble(value: number): void; - /** - * Write raw bytes into the serializer's internal buffer. The deserializer - * will require a way to compute the length of the buffer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeRawBytes(buffer: NodeJS.ArrayBufferView): void; - } - /** - * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only - * stores the part of their underlying `ArrayBuffer`s that they are referring to. - * @since v8.0.0 - */ - class DefaultSerializer extends Serializer {} - /** - * @since v8.0.0 - */ - class Deserializer { - constructor(data: NodeJS.TypedArray); - /** - * Reads and validates a header (including the format version). - * May, for example, reject an invalid or unsupported wire format. In that case, - * an `Error` is thrown. - */ - readHeader(): boolean; - /** - * Deserializes a JavaScript value from the buffer and returns it. - */ - readValue(): any; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of - * `SharedArrayBuffer`s). - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Reads the underlying wire format version. Likely mostly to be useful to - * legacy code reading old wire format versions. May not be called before `.readHeader()`. - */ - getWireFormatVersion(): number; - /** - * Read a raw 32-bit unsigned integer and return it. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint32(): number; - /** - * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint64(): [number, number]; - /** - * Read a JS `number` value. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readDouble(): number; - /** - * Read raw bytes from the deserializer's internal buffer. The `length` parameter - * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readRawBytes(length: number): Buffer; - } - /** - * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. - * @since v8.0.0 - */ - class DefaultDeserializer extends Deserializer {} - /** - * Uses a `DefaultSerializer` to serialize `value` into a buffer. - * - * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to - * serialize a huge object which requires buffer - * larger than `buffer.constants.MAX_LENGTH`. - * @since v8.0.0 - */ - function serialize(value: any): NonSharedBuffer; - /** - * Uses a `DefaultDeserializer` with default options to read a JS value - * from a buffer. - * @since v8.0.0 - * @param buffer A buffer returned by {@link serialize}. - */ - function deserialize(buffer: NodeJS.ArrayBufferView): any; - /** - * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple - * times during the lifetime of the process. Each time the execution counter will - * be reset and a new coverage report will be written to the directory specified - * by `NODE_V8_COVERAGE`. - * - * When the process is about to exit, one last coverage will still be written to - * disk unless {@link stopCoverage} is invoked before the process exits. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function takeCoverage(): void; - /** - * The `v8.stopCoverage()` method allows the user to stop the coverage collection - * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count - * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function stopCoverage(): void; - /** - * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. - * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. - * @experimental - * @since v18.10.0, v16.18.0 - */ - function setHeapSnapshotNearHeapLimit(limit: number): void; - /** - * This API collects GC data in current thread. - * @since v19.6.0, v18.15.0 - */ - class GCProfiler { - /** - * Start collecting GC data. - * @since v19.6.0, v18.15.0 - */ - start(): void; - /** - * Stop collecting GC data and return an object. The content of object - * is as follows. - * - * ```json - * { - * "version": 1, - * "startTime": 1674059033862, - * "statistics": [ - * { - * "gcType": "Scavenge", - * "beforeGC": { - * "heapStatistics": { - * "totalHeapSize": 5005312, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5226496, - * "totalAvailableSize": 4341325216, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4883840, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * }, - * "cost": 1574.14, - * "afterGC": { - * "heapStatistics": { - * "totalHeapSize": 6053888, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5500928, - * "totalAvailableSize": 4341101384, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4059096, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * } - * } - * ], - * "endTime": 1674059036865 - * } - * ``` - * - * Here's an example. - * - * ```js - * import { GCProfiler } from 'node:v8'; - * const profiler = new GCProfiler(); - * profiler.start(); - * setTimeout(() => { - * console.log(profiler.stop()); - * }, 1000); - * ``` - * @since v19.6.0, v18.15.0 - */ - stop(): GCProfilerResult; - } - interface GCProfilerResult { - version: number; - startTime: number; - endTime: number; - statistics: Array<{ - gcType: string; - cost: number; - beforeGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - afterGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - }>; - } - interface HeapStatistics { - totalHeapSize: number; - totalHeapSizeExecutable: number; - totalPhysicalSize: number; - totalAvailableSize: number; - totalGlobalHandlesSize: number; - usedGlobalHandlesSize: number; - usedHeapSize: number; - heapSizeLimit: number; - mallocedMemory: number; - externalMemory: number; - peakMallocedMemory: number; - } - interface HeapSpaceStatistics { - spaceName: string; - spaceSize: number; - spaceUsedSize: number; - spaceAvailableSize: number; - physicalSpaceSize: number; - } - /** - * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will - * happen if a promise is created without ever getting a continuation. - * @since v17.1.0, v16.14.0 - * @param promise The promise being created. - * @param parent The promise continued from, if applicable. - */ - interface Init { - (promise: Promise, parent: Promise): void; - } - /** - * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming. - * - * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise. - * The before callback may be called many times in the case where many continuations have been made from the same promise. - * @since v17.1.0, v16.14.0 - */ - interface Before { - (promise: Promise): void; - } - /** - * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await. - * @since v17.1.0, v16.14.0 - */ - interface After { - (promise: Promise): void; - } - /** - * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or - * {@link Promise.reject()}. - * @since v17.1.0, v16.14.0 - */ - interface Settled { - (promise: Promise): void; - } - /** - * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or - * around an await, and when the promise resolves or rejects. - * - * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and - * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop. - * @since v17.1.0, v16.14.0 - */ - interface HookCallbacks { - init?: Init; - before?: Before; - after?: After; - settled?: Settled; - } - interface PromiseHooks { - /** - * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param init The {@link Init | `init` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onInit: (init: Init) => Function; - /** - * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param settled The {@link Settled | `settled` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onSettled: (settled: Settled) => Function; - /** - * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param before The {@link Before | `before` callback} to call before a promise continuation executes. - * @return Call to stop the hook. - */ - onBefore: (before: Before) => Function; - /** - * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param after The {@link After | `after` callback} to call after a promise continuation executes. - * @return Call to stop the hook. - */ - onAfter: (after: After) => Function; - /** - * Registers functions to be called for different lifetime events of each promise. - * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime. - * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed. - * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register - * @return Used for disabling hooks - */ - createHook: (callbacks: HookCallbacks) => Function; - } - /** - * The `promiseHooks` interface can be used to track promise lifecycle events. - * @since v17.1.0, v16.14.0 - */ - const promiseHooks: PromiseHooks; - type StartupSnapshotCallbackFn = (args: any) => any; - interface StartupSnapshot { - /** - * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. - * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. - * @since v18.6.0, v16.17.0 - */ - addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. - * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or - * to re-acquire resources that the application needs when the application is restarted from the snapshot. - * @since v18.6.0, v16.17.0 - */ - addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. - * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized - * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. - * @since v18.6.0, v16.17.0 - */ - setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Returns true if the Node.js instance is run to build a snapshot. - * @since v18.6.0, v16.17.0 - */ - isBuildingSnapshot(): boolean; - } - /** - * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. - * - * ```bash - * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js - * # This launches a process with the snapshot - * $ node --snapshot-blob snapshot.blob - * ``` - * - * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects - * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. - * For example, if the `entry.js` contains the following script: - * - * ```js - * 'use strict'; - * - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * import path from 'node:path'; - * import assert from 'node:assert'; - * - * import v8 from 'node:v8'; - * - * class BookShelf { - * storage = new Map(); - * - * // Reading a series of files from directory and store them into storage. - * constructor(directory, books) { - * for (const book of books) { - * this.storage.set(book, fs.readFileSync(path.join(directory, book))); - * } - * } - * - * static compressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gzipSync(content)); - * } - * } - * - * static decompressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gunzipSync(content)); - * } - * } - * } - * - * // __dirname here is where the snapshot script is placed - * // during snapshot building time. - * const shelf = new BookShelf(__dirname, [ - * 'book1.en_US.txt', - * 'book1.es_ES.txt', - * 'book2.zh_CN.txt', - * ]); - * - * assert(v8.startupSnapshot.isBuildingSnapshot()); - * // On snapshot serialization, compress the books to reduce size. - * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); - * // On snapshot deserialization, decompress the books. - * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); - * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { - * // process.env and process.argv are refreshed during snapshot - * // deserialization. - * const lang = process.env.BOOK_LANG || 'en_US'; - * const book = process.argv[1]; - * const name = `${book}.${lang}.txt`; - * console.log(shelf.storage.get(name)); - * }, shelf); - * ``` - * - * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: - * - * ```bash - * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 - * # Prints content of book1.es_ES.txt deserialized from the snapshot. - * ``` - * - * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. - * - * @experimental - * @since v18.6.0, v16.17.0 - */ - const startupSnapshot: StartupSnapshot; -} -declare module "node:v8" { - export * from "v8"; -} diff --git a/mcp-server/node_modules/@types/node/vm.d.ts b/mcp-server/node_modules/@types/node/vm.d.ts deleted file mode 100644 index 313240a..0000000 --- a/mcp-server/node_modules/@types/node/vm.d.ts +++ /dev/null @@ -1,1001 +0,0 @@ -/** - * The `node:vm` module enables compiling and running code within V8 Virtual - * Machine contexts. - * - * **The `node:vm` module is not a security** - * **mechanism. Do not use it to run untrusted code.** - * - * JavaScript code can be compiled and run immediately or - * compiled, saved, and run later. - * - * A common use case is to run the code in a different V8 Context. This means - * invoked code has a different global object than the invoking code. - * - * One can provide the context by `contextifying` an - * object. The invoked code treats any property in the context like a - * global variable. Any changes to global variables caused by the invoked - * code are reflected in the context object. - * - * ```js - * import vm from 'node:vm'; - * - * const x = 1; - * - * const context = { x: 2 }; - * vm.createContext(context); // Contextify the object. - * - * const code = 'x += 40; var y = 17;'; - * // `x` and `y` are global variables in the context. - * // Initially, x has the value 2 because that is the value of context.x. - * vm.runInContext(code, context); - * - * console.log(context.x); // 42 - * console.log(context.y); // 17 - * - * console.log(x); // 1; y is not defined. - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/vm.js) - */ -declare module "vm" { - import { NonSharedBuffer } from "node:buffer"; - import { ImportAttributes } from "node:module"; - interface Context extends NodeJS.Dict {} - interface BaseOptions { - /** - * Specifies the filename used in stack traces produced by this script. - * @default '' - */ - filename?: string | undefined; - /** - * Specifies the line number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - lineOffset?: number | undefined; - /** - * Specifies the column number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - columnOffset?: number | undefined; - } - type DynamicModuleLoader = ( - specifier: string, - referrer: T, - importAttributes: ImportAttributes, - ) => Module | Promise; - interface ScriptOptions extends BaseOptions { - /** - * Provides an optional data with V8's code cache data for the supplied source. - */ - cachedData?: NodeJS.ArrayBufferView | undefined; - /** @deprecated in favor of `script.createCachedData()` */ - produceCachedData?: boolean | undefined; - /** - * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is - * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see - * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis). - */ - importModuleDynamically?: - | DynamicModuleLoader`; - if (buffer) { - buffer[0] = `${appendStyleScript}${buffer[0]}`; - return; - } - return Promise.resolve(appendStyleScript); - }; - const addClassNameToContext = ({ context }) => { - if (!contextMap.has(context)) { - contextMap.set(context, [{}, {}]); - } - const [toAdd, added] = contextMap.get(context); - let allAdded = true; - if (!added[cssClassName[import_common.SELECTOR]]) { - allAdded = false; - toAdd[cssClassName[import_common.SELECTOR]] = cssClassName[import_common.STYLE_STRING]; - } - cssClassName[import_common.SELECTORS].forEach( - ({ [import_common.CLASS_NAME]: className2, [import_common.STYLE_STRING]: styleString }) => { - if (!added[className2]) { - allAdded = false; - toAdd[className2] = styleString; - } - } - ); - if (allAdded) { - return; - } - return Promise.resolve((0, import_html.raw)("", [appendStyle])); - }; - const className = new String(cssClassName[import_common.CLASS_NAME]); - Object.assign(className, cssClassName); - className.isEscaped = true; - className.callbacks = [addClassNameToContext]; - const promise = Promise.resolve(className); - Object.assign(promise, cssClassName); - promise.toString = cssJsxDomObject.toString; - return promise; - }; - const css2 = (strings, ...values) => { - return newCssClassNameObject((0, import_common.cssCommon)(strings, values)); - }; - const cx2 = (...args) => { - args = (0, import_common.cxCommon)(args); - return css2(Array(args.length).fill(""), ...args); - }; - const keyframes2 = import_common.keyframesCommon; - const viewTransition2 = ((strings, ...values) => { - return newCssClassNameObject((0, import_common.viewTransitionCommon)(strings, values)); - }); - const Style2 = ({ children, nonce } = {}) => (0, import_html.raw)( - ``, - [ - ({ context }) => { - nonceMap.set(context, nonce); - return void 0; - } - ] - ); - Style2[import_constants.DOM_RENDERER] = StyleRenderToDom; - return { - css: css2, - cx: cx2, - keyframes: keyframes2, - viewTransition: viewTransition2, - Style: Style2 - }; -}; -const defaultContext = createCssContext({ - id: import_common.DEFAULT_STYLE_ID -}); -const css = defaultContext.css; -const cx = defaultContext.cx; -const keyframes = defaultContext.keyframes; -const viewTransition = defaultContext.viewTransition; -const Style = defaultContext.Style; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Style, - createCssContext, - css, - cx, - keyframes, - rawCssString, - viewTransition -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/dev/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/dev/index.js deleted file mode 100644 index 4e22ded..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/dev/index.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var dev_exports = {}; -__export(dev_exports, { - getRouterName: () => getRouterName, - inspectRoutes: () => inspectRoutes, - showRoutes: () => showRoutes -}); -module.exports = __toCommonJS(dev_exports); -var import_color = require("../../utils/color"); -var import_handler = require("../../utils/handler"); -const handlerName = (handler) => { - return handler.name || ((0, import_handler.isMiddleware)(handler) ? "[middleware]" : "[handler]"); -}; -const inspectRoutes = (hono) => { - return hono.routes.map(({ path, method, handler }) => { - const targetHandler = (0, import_handler.findTargetHandler)(handler); - return { - path, - method, - name: handlerName(targetHandler), - isMiddleware: (0, import_handler.isMiddleware)(targetHandler) - }; - }); -}; -const showRoutes = (hono, opts) => { - const colorEnabled = opts?.colorize ?? (0, import_color.getColorEnabled)(); - const routeData = {}; - let maxMethodLength = 0; - let maxPathLength = 0; - inspectRoutes(hono).filter(({ isMiddleware: isMiddleware2 }) => opts?.verbose || !isMiddleware2).map((route) => { - const key = `${route.method}-${route.path}`; - (routeData[key] ||= []).push(route); - if (routeData[key].length > 1) { - return; - } - maxMethodLength = Math.max(maxMethodLength, route.method.length); - maxPathLength = Math.max(maxPathLength, route.path.length); - return { method: route.method, path: route.path, routes: routeData[key] }; - }).forEach((data) => { - if (!data) { - return; - } - const { method, path, routes } = data; - const methodStr = colorEnabled ? `\x1B[32m${method}\x1B[0m` : method; - console.log(`${methodStr} ${" ".repeat(maxMethodLength - method.length)} ${path}`); - if (!opts?.verbose) { - return; - } - routes.forEach(({ name }) => { - console.log(`${" ".repeat(maxMethodLength + 3)} ${name}`); - }); - }); -}; -const getRouterName = (app) => { - app.router.match("GET", "/"); - return app.router.name; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getRouterName, - inspectRoutes, - showRoutes -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/factory/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/factory/index.js deleted file mode 100644 index 0e14635..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/factory/index.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var factory_exports = {}; -__export(factory_exports, { - Factory: () => Factory, - createFactory: () => createFactory, - createMiddleware: () => createMiddleware -}); -module.exports = __toCommonJS(factory_exports); -var import_hono = require("../../hono"); -class Factory { - initApp; - #defaultAppOptions; - constructor(init) { - this.initApp = init?.initApp; - this.#defaultAppOptions = init?.defaultAppOptions; - } - createApp = (options) => { - const app = new import_hono.Hono( - options && this.#defaultAppOptions ? { ...this.#defaultAppOptions, ...options } : options ?? this.#defaultAppOptions - ); - if (this.initApp) { - this.initApp(app); - } - return app; - }; - createMiddleware = (middleware) => middleware; - createHandlers = (...handlers) => { - return handlers.filter((handler) => handler !== void 0); - }; -} -const createFactory = (init) => new Factory(init); -const createMiddleware = (middleware) => middleware; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Factory, - createFactory, - createMiddleware -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/html/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/html/index.js deleted file mode 100644 index faa3baa..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/html/index.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var html_exports = {}; -__export(html_exports, { - html: () => html, - raw: () => import_html.raw -}); -module.exports = __toCommonJS(html_exports); -var import_html = require("../../utils/html"); -const html = (strings, ...values) => { - const buffer = [""]; - for (let i = 0, len = strings.length - 1; i < len; i++) { - buffer[0] += strings[i]; - const children = Array.isArray(values[i]) ? values[i].flat(Infinity) : [values[i]]; - for (let i2 = 0, len2 = children.length; i2 < len2; i2++) { - const child = children[i2]; - if (typeof child === "string") { - (0, import_html.escapeToBuffer)(child, buffer); - } else if (typeof child === "number") { - ; - buffer[0] += child; - } else if (typeof child === "boolean" || child === null || child === void 0) { - continue; - } else if (typeof child === "object" && child.isEscaped) { - if (child.callbacks) { - buffer.unshift("", child); - } else { - const tmp = child.toString(); - if (tmp instanceof Promise) { - buffer.unshift("", tmp); - } else { - buffer[0] += tmp; - } - } - } else if (child instanceof Promise) { - buffer.unshift("", child); - } else { - (0, import_html.escapeToBuffer)(child.toString(), buffer); - } - } - } - buffer[0] += strings.at(-1); - return buffer.length === 1 ? "callbacks" in buffer ? (0, import_html.raw)((0, import_html.resolveCallbackSync)((0, import_html.raw)(buffer[0], buffer.callbacks))) : (0, import_html.raw)(buffer[0]) : (0, import_html.stringBufferToString)(buffer, buffer.callbacks); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - html, - raw -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/proxy/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/proxy/index.js deleted file mode 100644 index 2c74f17..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/proxy/index.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var proxy_exports = {}; -__export(proxy_exports, { - proxy: () => proxy -}); -module.exports = __toCommonJS(proxy_exports); -var import_http_exception = require("../../http-exception"); -const hopByHopHeaders = [ - "connection", - "keep-alive", - "proxy-authenticate", - "proxy-authorization", - "te", - "trailer", - "transfer-encoding", - "upgrade" -]; -const ALLOWED_TOKEN_PATTERN = /^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/; -const buildRequestInitFromRequest = (request, strictConnectionProcessing) => { - if (!request) { - return {}; - } - const headers = new Headers(request.headers); - if (strictConnectionProcessing) { - const connectionValue = headers.get("connection"); - if (connectionValue) { - const headerNames = connectionValue.split(",").map((h) => h.trim()); - const invalidHeaders = headerNames.filter((h) => !ALLOWED_TOKEN_PATTERN.test(h)); - if (invalidHeaders.length > 0) { - throw new import_http_exception.HTTPException(400, { - message: `Invalid Connection header value: ${invalidHeaders.join(", ")}` - }); - } - headerNames.forEach((headerName) => { - headers.delete(headerName); - }); - } - } - hopByHopHeaders.forEach((header) => { - headers.delete(header); - }); - return { - method: request.method, - body: request.body, - duplex: request.body ? "half" : void 0, - headers, - signal: request.signal - }; -}; -const preprocessRequestInit = (requestInit) => { - if (!requestInit.headers || Array.isArray(requestInit.headers) || requestInit.headers instanceof Headers) { - return requestInit; - } - const headers = new Headers(); - for (const [key, value] of Object.entries(requestInit.headers)) { - if (value == null) { - headers.delete(key); - } else { - headers.set(key, value); - } - } - requestInit.headers = headers; - return requestInit; -}; -const proxy = async (input, proxyInit) => { - const { - raw, - customFetch, - strictConnectionProcessing = false, - ...requestInit - } = proxyInit instanceof Request ? { raw: proxyInit } : proxyInit ?? {}; - const req = new Request(input, { - ...buildRequestInitFromRequest(raw, strictConnectionProcessing), - ...preprocessRequestInit(requestInit) - }); - req.headers.delete("accept-encoding"); - const res = await (customFetch || fetch)(req); - const resHeaders = new Headers(res.headers); - hopByHopHeaders.forEach((header) => { - resHeaders.delete(header); - }); - if (resHeaders.has("content-encoding")) { - resHeaders.delete("content-encoding"); - resHeaders.delete("content-length"); - } - return new Response(res.body, { - status: res.status, - statusText: res.statusText, - headers: resHeaders - }); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - proxy -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/route/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/route/index.js deleted file mode 100644 index 95769db..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/route/index.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var route_exports = {}; -__export(route_exports, { - basePath: () => basePath, - baseRoutePath: () => baseRoutePath, - matchedRoutes: () => matchedRoutes, - routePath: () => routePath -}); -module.exports = __toCommonJS(route_exports); -var import_constants = require("../../request/constants"); -var import_url = require("../../utils/url"); -const matchedRoutes = (c) => ( - // @ts-expect-error c.req[GET_MATCH_RESULT] is not typed - c.req[import_constants.GET_MATCH_RESULT][0].map(([[, route]]) => route) -); -const routePath = (c, index) => matchedRoutes(c).at(index ?? c.req.routeIndex)?.path ?? ""; -const baseRoutePath = (c, index) => matchedRoutes(c).at(index ?? c.req.routeIndex)?.basePath ?? ""; -const basePathCacheMap = /* @__PURE__ */ new WeakMap(); -const basePath = (c, index) => { - index ??= c.req.routeIndex; - const cache = basePathCacheMap.get(c) || []; - if (typeof cache[index] === "string") { - return cache[index]; - } - let result; - const rp = baseRoutePath(c, index); - if (!/[:*]/.test(rp)) { - result = rp; - } else { - const paths = (0, import_url.splitRoutingPath)(rp); - const reqPath = c.req.path; - let basePathLength = 0; - for (let i = 0, len = paths.length; i < len; i++) { - const pattern = (0, import_url.getPattern)(paths[i], paths[i + 1]); - if (pattern) { - const re = pattern[2] === true || pattern === "*" ? /[^\/]+/ : pattern[2]; - basePathLength += reqPath.substring(basePathLength + 1).match(re)?.[0].length || 0; - } else { - basePathLength += paths[i].length; - } - basePathLength += 1; - } - result = reqPath.substring(0, basePathLength); - } - cache[index] = result; - basePathCacheMap.set(c, cache); - return result; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - basePath, - baseRoutePath, - matchedRoutes, - routePath -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/ssg/index.js deleted file mode 100644 index 4969d06..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var ssg_exports = {}; -__export(ssg_exports, { - X_HONO_DISABLE_SSG_HEADER_KEY: () => import_middleware.X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG: () => import_middleware.disableSSG, - isSSGContext: () => import_middleware.isSSGContext, - onlySSG: () => import_middleware.onlySSG, - ssgParams: () => import_middleware.ssgParams -}); -module.exports = __toCommonJS(ssg_exports); -__reExport(ssg_exports, require("./ssg"), module.exports); -var import_middleware = require("./middleware"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG, - isSSGContext, - onlySSG, - ssgParams, - ...require("./ssg") -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/middleware.js b/mcp-server/node_modules/hono/dist/cjs/helper/ssg/middleware.js deleted file mode 100644 index fcab031..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/middleware.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var middleware_exports = {}; -__export(middleware_exports, { - SSG_CONTEXT: () => SSG_CONTEXT, - SSG_DISABLED_RESPONSE: () => SSG_DISABLED_RESPONSE, - X_HONO_DISABLE_SSG_HEADER_KEY: () => X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG: () => disableSSG, - isSSGContext: () => isSSGContext, - onlySSG: () => onlySSG, - ssgParams: () => ssgParams -}); -module.exports = __toCommonJS(middleware_exports); -var import_utils = require("./utils"); -const SSG_CONTEXT = "HONO_SSG_CONTEXT"; -const X_HONO_DISABLE_SSG_HEADER_KEY = "x-hono-disable-ssg"; -const SSG_DISABLED_RESPONSE = (() => { - try { - return new Response("SSG is disabled", { - status: 404, - headers: { [X_HONO_DISABLE_SSG_HEADER_KEY]: "true" } - }); - } catch { - return null; - } -})(); -const ssgParams = (params) => async (c, next) => { - if ((0, import_utils.isDynamicRoute)(c.req.path)) { - ; - c.req.raw.ssgParams = Array.isArray(params) ? params : await params(c); - return c.notFound(); - } - await next(); -}; -const isSSGContext = (c) => !!c.env?.[SSG_CONTEXT]; -const disableSSG = () => async function disableSSG2(c, next) { - if (isSSGContext(c)) { - c.header(X_HONO_DISABLE_SSG_HEADER_KEY, "true"); - return c.notFound(); - } - await next(); -}; -const onlySSG = () => async function onlySSG2(c, next) { - if (!isSSGContext(c)) { - return c.notFound(); - } - await next(); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SSG_CONTEXT, - SSG_DISABLED_RESPONSE, - X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG, - isSSGContext, - onlySSG, - ssgParams -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/ssg.js b/mcp-server/node_modules/hono/dist/cjs/helper/ssg/ssg.js deleted file mode 100644 index 0a4493a..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/ssg.js +++ /dev/null @@ -1,326 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var ssg_exports = {}; -__export(ssg_exports, { - DEFAULT_OUTPUT_DIR: () => DEFAULT_OUTPUT_DIR, - combineAfterGenerateHooks: () => combineAfterGenerateHooks, - combineAfterResponseHooks: () => combineAfterResponseHooks, - combineBeforeRequestHooks: () => combineBeforeRequestHooks, - defaultExtensionMap: () => defaultExtensionMap, - defaultPlugin: () => defaultPlugin, - fetchRoutesContent: () => fetchRoutesContent, - saveContentToFile: () => saveContentToFile, - toSSG: () => toSSG -}); -module.exports = __toCommonJS(ssg_exports); -var import_utils = require("../../client/utils"); -var import_concurrent = require("../../utils/concurrent"); -var import_mime = require("../../utils/mime"); -var import_middleware = require("./middleware"); -var import_utils2 = require("./utils"); -const DEFAULT_CONCURRENCY = 2; -const DEFAULT_CONTENT_TYPE = "text/plain"; -const DEFAULT_OUTPUT_DIR = "./static"; -const generateFilePath = (routePath, outDir, mimeType, extensionMap) => { - const extension = determineExtension(mimeType, extensionMap); - if (routePath.endsWith(`.${extension}`)) { - return (0, import_utils2.joinPaths)(outDir, routePath); - } - if (routePath === "/") { - return (0, import_utils2.joinPaths)(outDir, `index.${extension}`); - } - if (routePath.endsWith("/")) { - return (0, import_utils2.joinPaths)(outDir, routePath, `index.${extension}`); - } - return (0, import_utils2.joinPaths)(outDir, `${routePath}.${extension}`); -}; -const parseResponseContent = async (response) => { - const contentType = response.headers.get("Content-Type"); - try { - if (contentType?.includes("text") || contentType?.includes("json")) { - return await response.text(); - } else { - return await response.arrayBuffer(); - } - } catch (error) { - throw new Error( - `Error processing response: ${error instanceof Error ? error.message : "Unknown error"}` - ); - } -}; -const defaultExtensionMap = { - "text/html": "html", - "text/xml": "xml", - "application/xml": "xml", - "application/yaml": "yaml" -}; -const determineExtension = (mimeType, userExtensionMap) => { - const extensionMap = userExtensionMap || defaultExtensionMap; - if (mimeType in extensionMap) { - return extensionMap[mimeType]; - } - return (0, import_mime.getExtension)(mimeType) || "html"; -}; -const combineBeforeRequestHooks = (hooks) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (req) => { - let currentReq = req; - for (const hook of hooks) { - const result = await hook(currentReq); - if (result === false) { - return false; - } - if (result instanceof Request) { - currentReq = result; - } - } - return currentReq; - }; -}; -const combineAfterResponseHooks = (hooks) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (res) => { - let currentRes = res; - for (const hook of hooks) { - const result = await hook(currentRes); - if (result === false) { - return false; - } - if (result instanceof Response) { - currentRes = result; - } - } - return currentRes; - }; -}; -const combineAfterGenerateHooks = (hooks, fsModule, options) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (result) => { - for (const hook of hooks) { - await hook(result, fsModule, options); - } - }; -}; -const fetchRoutesContent = function* (app, beforeRequestHook, afterResponseHook, concurrency) { - const baseURL = "http://localhost"; - const pool = (0, import_concurrent.createPool)({ concurrency }); - for (const route of (0, import_utils2.filterStaticGenerateRoutes)(app)) { - const thisRouteBaseURL = new URL(route.path, baseURL).toString(); - let forGetInfoURLRequest = new Request(thisRouteBaseURL); - yield new Promise(async (resolveGetInfo, rejectGetInfo) => { - try { - if (beforeRequestHook) { - const maybeRequest = await beforeRequestHook(forGetInfoURLRequest); - if (!maybeRequest) { - resolveGetInfo(void 0); - return; - } - forGetInfoURLRequest = maybeRequest; - } - await pool.run(() => app.fetch(forGetInfoURLRequest)); - if (!forGetInfoURLRequest.ssgParams) { - if ((0, import_utils2.isDynamicRoute)(route.path)) { - resolveGetInfo(void 0); - return; - } - forGetInfoURLRequest.ssgParams = [{}]; - } - const requestInit = { - method: forGetInfoURLRequest.method, - headers: forGetInfoURLRequest.headers - }; - resolveGetInfo( - (function* () { - for (const param of forGetInfoURLRequest.ssgParams) { - yield new Promise(async (resolveReq, rejectReq) => { - try { - const replacedUrlParam = (0, import_utils.replaceUrlParam)(route.path, param); - let response = await pool.run( - () => app.request(replacedUrlParam, requestInit, { - [import_middleware.SSG_CONTEXT]: true - }) - ); - if (response.headers.get(import_middleware.X_HONO_DISABLE_SSG_HEADER_KEY)) { - resolveReq(void 0); - return; - } - if (afterResponseHook) { - const maybeResponse = await afterResponseHook(response); - if (!maybeResponse) { - resolveReq(void 0); - return; - } - response = maybeResponse; - } - const mimeType = response.headers.get("Content-Type")?.split(";")[0] || DEFAULT_CONTENT_TYPE; - const content = await parseResponseContent(response); - resolveReq({ - routePath: replacedUrlParam, - mimeType, - content - }); - } catch (error) { - rejectReq(error); - } - }); - } - })() - ); - } catch (error) { - rejectGetInfo(error); - } - }); - } -}; -const createdDirs = /* @__PURE__ */ new Set(); -const saveContentToFile = async (data, fsModule, outDir, extensionMap) => { - const awaitedData = await data; - if (!awaitedData) { - return; - } - const { routePath, content, mimeType } = awaitedData; - const filePath = generateFilePath(routePath, outDir, mimeType, extensionMap); - const dirPath = (0, import_utils2.dirname)(filePath); - if (!createdDirs.has(dirPath)) { - await fsModule.mkdir(dirPath, { recursive: true }); - createdDirs.add(dirPath); - } - if (typeof content === "string") { - await fsModule.writeFile(filePath, content); - } else if (content instanceof ArrayBuffer) { - await fsModule.writeFile(filePath, new Uint8Array(content)); - } - return filePath; -}; -const defaultPlugin = { - afterResponseHook: (res) => { - if (res.status !== 200) { - return false; - } - return res; - } -}; -const toSSG = async (app, fs, options) => { - let result; - const getInfoPromises = []; - const savePromises = []; - const plugins = options?.plugins || [defaultPlugin]; - const beforeRequestHooks = []; - const afterResponseHooks = []; - const afterGenerateHooks = []; - if (options?.beforeRequestHook) { - beforeRequestHooks.push( - ...Array.isArray(options.beforeRequestHook) ? options.beforeRequestHook : [options.beforeRequestHook] - ); - } - if (options?.afterResponseHook) { - afterResponseHooks.push( - ...Array.isArray(options.afterResponseHook) ? options.afterResponseHook : [options.afterResponseHook] - ); - } - if (options?.afterGenerateHook) { - afterGenerateHooks.push( - ...Array.isArray(options.afterGenerateHook) ? options.afterGenerateHook : [options.afterGenerateHook] - ); - } - for (const plugin of plugins) { - if (plugin.beforeRequestHook) { - beforeRequestHooks.push( - ...Array.isArray(plugin.beforeRequestHook) ? plugin.beforeRequestHook : [plugin.beforeRequestHook] - ); - } - if (plugin.afterResponseHook) { - afterResponseHooks.push( - ...Array.isArray(plugin.afterResponseHook) ? plugin.afterResponseHook : [plugin.afterResponseHook] - ); - } - if (plugin.afterGenerateHook) { - afterGenerateHooks.push( - ...Array.isArray(plugin.afterGenerateHook) ? plugin.afterGenerateHook : [plugin.afterGenerateHook] - ); - } - } - try { - const outputDir = options?.dir ?? DEFAULT_OUTPUT_DIR; - const concurrency = options?.concurrency ?? DEFAULT_CONCURRENCY; - const combinedBeforeRequestHook = combineBeforeRequestHooks( - beforeRequestHooks.length > 0 ? beforeRequestHooks : [(req) => req] - ); - const combinedAfterResponseHook = combineAfterResponseHooks( - afterResponseHooks.length > 0 ? afterResponseHooks : [(req) => req] - ); - const getInfoGen = fetchRoutesContent( - app, - combinedBeforeRequestHook, - combinedAfterResponseHook, - concurrency - ); - for (const getInfo of getInfoGen) { - getInfoPromises.push( - getInfo.then((getContentGen) => { - if (!getContentGen) { - return; - } - for (const content of getContentGen) { - savePromises.push( - saveContentToFile(content, fs, outputDir, options?.extensionMap).catch((e) => e) - ); - } - }) - ); - } - await Promise.all(getInfoPromises); - const files = []; - for (const savePromise of savePromises) { - const fileOrError = await savePromise; - if (typeof fileOrError === "string") { - files.push(fileOrError); - } else if (fileOrError) { - throw fileOrError; - } - } - result = { success: true, files }; - } catch (error) { - const errorObj = error instanceof Error ? error : new Error(String(error)); - result = { success: false, files: [], error: errorObj }; - } - if (afterGenerateHooks.length > 0) { - const combinedAfterGenerateHooks = combineAfterGenerateHooks(afterGenerateHooks, fs, options); - await combinedAfterGenerateHooks(result, fs, options); - } - return result; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - DEFAULT_OUTPUT_DIR, - combineAfterGenerateHooks, - combineAfterResponseHooks, - combineBeforeRequestHooks, - defaultExtensionMap, - defaultPlugin, - fetchRoutesContent, - saveContentToFile, - toSSG -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/utils.js b/mcp-server/node_modules/hono/dist/cjs/helper/ssg/utils.js deleted file mode 100644 index 8cb13af..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/ssg/utils.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -__export(utils_exports, { - dirname: () => dirname, - filterStaticGenerateRoutes: () => filterStaticGenerateRoutes, - isDynamicRoute: () => isDynamicRoute, - joinPaths: () => joinPaths -}); -module.exports = __toCommonJS(utils_exports); -var import_router = require("../../router"); -var import_handler = require("../../utils/handler"); -const dirname = (path) => { - const separatedPath = path.split(/[\/\\]/); - return separatedPath.slice(0, -1).join("/"); -}; -const normalizePath = (path) => { - return path.replace(/(\\)/g, "/").replace(/\/$/g, ""); -}; -const handleParent = (resultPaths, beforeParentFlag) => { - if (resultPaths.length === 0 || beforeParentFlag) { - resultPaths.push(".."); - } else { - resultPaths.pop(); - } -}; -const handleNonDot = (path, resultPaths) => { - path = path.replace(/^\.(?!.)/, ""); - if (path !== "") { - resultPaths.push(path); - } -}; -const handleSegments = (paths, resultPaths) => { - let beforeParentFlag = false; - for (const path of paths) { - if (path === "..") { - handleParent(resultPaths, beforeParentFlag); - beforeParentFlag = true; - } else { - handleNonDot(path, resultPaths); - beforeParentFlag = false; - } - } -}; -const joinPaths = (...paths) => { - paths = paths.map(normalizePath); - const resultPaths = []; - handleSegments(paths.join("/").split("/"), resultPaths); - return (paths[0][0] === "/" ? "/" : "") + resultPaths.join("/"); -}; -const filterStaticGenerateRoutes = (hono) => { - return hono.routes.reduce((acc, { method, handler, path }) => { - const targetHandler = (0, import_handler.findTargetHandler)(handler); - if (["GET", import_router.METHOD_NAME_ALL].includes(method) && !(0, import_handler.isMiddleware)(targetHandler)) { - acc.push({ path }); - } - return acc; - }, []); -}; -const isDynamicRoute = (path) => { - return path.split("/").some((segment) => segment.startsWith(":") || segment.includes("*")); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - dirname, - filterStaticGenerateRoutes, - isDynamicRoute, - joinPaths -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/streaming/index.js deleted file mode 100644 index b343d99..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var streaming_exports = {}; -__export(streaming_exports, { - SSEStreamingApi: () => import_sse.SSEStreamingApi, - stream: () => import_stream.stream, - streamSSE: () => import_sse.streamSSE, - streamText: () => import_text.streamText -}); -module.exports = __toCommonJS(streaming_exports); -var import_stream = require("./stream"); -var import_sse = require("./sse"); -var import_text = require("./text"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SSEStreamingApi, - stream, - streamSSE, - streamText -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/sse.js b/mcp-server/node_modules/hono/dist/cjs/helper/streaming/sse.js deleted file mode 100644 index 95a7806..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/sse.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var sse_exports = {}; -__export(sse_exports, { - SSEStreamingApi: () => SSEStreamingApi, - streamSSE: () => streamSSE -}); -module.exports = __toCommonJS(sse_exports); -var import_html = require("../../utils/html"); -var import_stream = require("../../utils/stream"); -var import_utils = require("./utils"); -class SSEStreamingApi extends import_stream.StreamingApi { - constructor(writable, readable) { - super(writable, readable); - } - async writeSSE(message) { - const data = await (0, import_html.resolveCallback)(message.data, import_html.HtmlEscapedCallbackPhase.Stringify, false, {}); - const dataLines = data.split("\n").map((line) => { - return `data: ${line}`; - }).join("\n"); - const sseData = [ - message.event && `event: ${message.event}`, - dataLines, - message.id && `id: ${message.id}`, - message.retry && `retry: ${message.retry}` - ].filter(Boolean).join("\n") + "\n\n"; - await this.write(sseData); - } -} -const run = async (stream, cb, onError) => { - try { - await cb(stream); - } catch (e) { - if (e instanceof Error && onError) { - await onError(e, stream); - await stream.writeSSE({ - event: "error", - data: e.message - }); - } else { - console.error(e); - } - } finally { - stream.close(); - } -}; -const contextStash = /* @__PURE__ */ new WeakMap(); -const streamSSE = (c, cb, onError) => { - const { readable, writable } = new TransformStream(); - const stream = new SSEStreamingApi(writable, readable); - if ((0, import_utils.isOldBunVersion)()) { - c.req.raw.signal.addEventListener("abort", () => { - if (!stream.closed) { - stream.abort(); - } - }); - } - contextStash.set(stream.responseReadable, c); - c.header("Transfer-Encoding", "chunked"); - c.header("Content-Type", "text/event-stream"); - c.header("Cache-Control", "no-cache"); - c.header("Connection", "keep-alive"); - run(stream, cb, onError); - return c.newResponse(stream.responseReadable); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SSEStreamingApi, - streamSSE -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/stream.js b/mcp-server/node_modules/hono/dist/cjs/helper/streaming/stream.js deleted file mode 100644 index 29d3dd8..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/stream.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var stream_exports = {}; -__export(stream_exports, { - stream: () => stream -}); -module.exports = __toCommonJS(stream_exports); -var import_stream = require("../../utils/stream"); -var import_utils = require("./utils"); -const contextStash = /* @__PURE__ */ new WeakMap(); -const stream = (c, cb, onError) => { - const { readable, writable } = new TransformStream(); - const stream2 = new import_stream.StreamingApi(writable, readable); - if ((0, import_utils.isOldBunVersion)()) { - c.req.raw.signal.addEventListener("abort", () => { - if (!stream2.closed) { - stream2.abort(); - } - }); - } - contextStash.set(stream2.responseReadable, c); - (async () => { - try { - await cb(stream2); - } catch (e) { - if (e === void 0) { - } else if (e instanceof Error && onError) { - await onError(e, stream2); - } else { - console.error(e); - } - } finally { - stream2.close(); - } - })(); - return c.newResponse(stream2.responseReadable); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - stream -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/text.js b/mcp-server/node_modules/hono/dist/cjs/helper/streaming/text.js deleted file mode 100644 index c4fba1d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/text.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var text_exports = {}; -__export(text_exports, { - streamText: () => streamText -}); -module.exports = __toCommonJS(text_exports); -var import_context = require("../../context"); -var import__ = require("./"); -const streamText = (c, cb, onError) => { - c.header("Content-Type", import_context.TEXT_PLAIN); - c.header("X-Content-Type-Options", "nosniff"); - c.header("Transfer-Encoding", "chunked"); - return (0, import__.stream)(c, cb, onError); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - streamText -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/utils.js b/mcp-server/node_modules/hono/dist/cjs/helper/streaming/utils.js deleted file mode 100644 index ff818c1..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/streaming/utils.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -__export(utils_exports, { - isOldBunVersion: () => isOldBunVersion -}); -module.exports = __toCommonJS(utils_exports); -let isOldBunVersion = () => { - const version = typeof Bun !== "undefined" ? Bun.version : void 0; - if (version === void 0) { - return false; - } - const result = version.startsWith("1.1") || version.startsWith("1.0") || version.startsWith("0."); - isOldBunVersion = () => result; - return result; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - isOldBunVersion -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/testing/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/testing/index.js deleted file mode 100644 index 6e9e432..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/testing/index.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var testing_exports = {}; -__export(testing_exports, { - testClient: () => testClient -}); -module.exports = __toCommonJS(testing_exports); -var import_client = require("../../client"); -const testClient = (app, Env, executionCtx, options) => { - const customFetch = (input, init) => { - return app.request(input, init, Env, executionCtx); - }; - return (0, import_client.hc)("http://localhost", { ...options, fetch: customFetch }); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - testClient -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/helper/websocket/index.js b/mcp-server/node_modules/hono/dist/cjs/helper/websocket/index.js deleted file mode 100644 index ee33b65..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/helper/websocket/index.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var websocket_exports = {}; -__export(websocket_exports, { - WSContext: () => WSContext, - createWSMessageEvent: () => createWSMessageEvent, - defineWebSocketHelper: () => defineWebSocketHelper -}); -module.exports = __toCommonJS(websocket_exports); -class WSContext { - #init; - constructor(init) { - this.#init = init; - this.raw = init.raw; - this.url = init.url ? new URL(init.url) : null; - this.protocol = init.protocol ?? null; - } - send(source, options) { - this.#init.send(source, options ?? {}); - } - raw; - binaryType = "arraybuffer"; - get readyState() { - return this.#init.readyState; - } - url; - protocol; - close(code, reason) { - this.#init.close(code, reason); - } -} -const createWSMessageEvent = (source) => { - return new MessageEvent("message", { - data: source - }); -}; -const defineWebSocketHelper = (handler) => { - return ((...args) => { - if (typeof args[0] === "function") { - const [createEvents, options] = args; - return async function upgradeWebSocket(c, next) { - const events = await createEvents(c); - const result = await handler(c, events, options); - if (result) { - return result; - } - await next(); - }; - } else { - const [c, events, options] = args; - return (async () => { - const upgraded = await handler(c, events, options); - if (!upgraded) { - throw new Error("Failed to upgrade WebSocket"); - } - return upgraded; - })(); - } - }); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - WSContext, - createWSMessageEvent, - defineWebSocketHelper -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/hono-base.js b/mcp-server/node_modules/hono/dist/cjs/hono-base.js deleted file mode 100644 index 63eebce..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/hono-base.js +++ /dev/null @@ -1,401 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var hono_base_exports = {}; -__export(hono_base_exports, { - HonoBase: () => Hono -}); -module.exports = __toCommonJS(hono_base_exports); -var import_compose = require("./compose"); -var import_context = require("./context"); -var import_router = require("./router"); -var import_constants = require("./utils/constants"); -var import_url = require("./utils/url"); -const notFoundHandler = (c) => { - return c.text("404 Not Found", 404); -}; -const errorHandler = (err, c) => { - if ("getResponse" in err) { - const res = err.getResponse(); - return c.newResponse(res.body, res); - } - console.error(err); - return c.text("Internal Server Error", 500); -}; -class Hono { - get; - post; - put; - delete; - options; - patch; - all; - on; - use; - /* - This class is like an abstract class and does not have a router. - To use it, inherit the class and implement router in the constructor. - */ - router; - getPath; - // Cannot use `#` because it requires visibility at JavaScript runtime. - _basePath = "/"; - #path = "/"; - routes = []; - constructor(options = {}) { - const allMethods = [...import_router.METHODS, import_router.METHOD_NAME_ALL_LOWERCASE]; - allMethods.forEach((method) => { - this[method] = (args1, ...args) => { - if (typeof args1 === "string") { - this.#path = args1; - } else { - this.#addRoute(method, this.#path, args1); - } - args.forEach((handler) => { - this.#addRoute(method, this.#path, handler); - }); - return this; - }; - }); - this.on = (method, path, ...handlers) => { - for (const p of [path].flat()) { - this.#path = p; - for (const m of [method].flat()) { - handlers.map((handler) => { - this.#addRoute(m.toUpperCase(), this.#path, handler); - }); - } - } - return this; - }; - this.use = (arg1, ...handlers) => { - if (typeof arg1 === "string") { - this.#path = arg1; - } else { - this.#path = "*"; - handlers.unshift(arg1); - } - handlers.forEach((handler) => { - this.#addRoute(import_router.METHOD_NAME_ALL, this.#path, handler); - }); - return this; - }; - const { strict, ...optionsWithoutStrict } = options; - Object.assign(this, optionsWithoutStrict); - this.getPath = strict ?? true ? options.getPath ?? import_url.getPath : import_url.getPathNoStrict; - } - #clone() { - const clone = new Hono({ - router: this.router, - getPath: this.getPath - }); - clone.errorHandler = this.errorHandler; - clone.#notFoundHandler = this.#notFoundHandler; - clone.routes = this.routes; - return clone; - } - #notFoundHandler = notFoundHandler; - // Cannot use `#` because it requires visibility at JavaScript runtime. - errorHandler = errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path, app) { - const subApp = this.basePath(path); - app.routes.map((r) => { - let handler; - if (app.errorHandler === errorHandler) { - handler = r.handler; - } else { - handler = async (c, next) => (await (0, import_compose.compose)([], app.errorHandler)(c, () => r.handler(c, next))).res; - handler[import_constants.COMPOSED_HANDLER] = r.handler; - } - subApp.#addRoute(r.method, r.path, handler); - }); - return this; - } - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path) { - const subApp = this.#clone(); - subApp._basePath = (0, import_url.mergePath)(this._basePath, path); - return subApp; - } - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError = (handler) => { - this.errorHandler = handler; - return this; - }; - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound = (handler) => { - this.#notFoundHandler = handler; - return this; - }; - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path, applicationHandler, options) { - let replaceRequest; - let optionHandler; - if (options) { - if (typeof options === "function") { - optionHandler = options; - } else { - optionHandler = options.optionHandler; - if (options.replaceRequest === false) { - replaceRequest = (request) => request; - } else { - replaceRequest = options.replaceRequest; - } - } - } - const getOptions = optionHandler ? (c) => { - const options2 = optionHandler(c); - return Array.isArray(options2) ? options2 : [options2]; - } : (c) => { - let executionContext = void 0; - try { - executionContext = c.executionCtx; - } catch { - } - return [c.env, executionContext]; - }; - replaceRequest ||= (() => { - const mergedPath = (0, import_url.mergePath)(this._basePath, path); - const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length; - return (request) => { - const url = new URL(request.url); - url.pathname = url.pathname.slice(pathPrefixLength) || "/"; - return new Request(url, request); - }; - })(); - const handler = async (c, next) => { - const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c)); - if (res) { - return res; - } - await next(); - }; - this.#addRoute(import_router.METHOD_NAME_ALL, (0, import_url.mergePath)(path, "*"), handler); - return this; - } - #addRoute(method, path, handler) { - method = method.toUpperCase(); - path = (0, import_url.mergePath)(this._basePath, path); - const r = { basePath: this._basePath, path, method, handler }; - this.router.add(method, path, [handler, r]); - this.routes.push(r); - } - #handleError(err, c) { - if (err instanceof Error) { - return this.errorHandler(err, c); - } - throw err; - } - #dispatch(request, executionCtx, env, method) { - if (method === "HEAD") { - return (async () => new Response(null, await this.#dispatch(request, executionCtx, env, "GET")))(); - } - const path = this.getPath(request, { env }); - const matchResult = this.router.match(method, path); - const c = new import_context.Context(request, { - path, - matchResult, - env, - executionCtx, - notFoundHandler: this.#notFoundHandler - }); - if (matchResult[0].length === 1) { - let res; - try { - res = matchResult[0][0][0][0](c, async () => { - c.res = await this.#notFoundHandler(c); - }); - } catch (err) { - return this.#handleError(err, c); - } - return res instanceof Promise ? res.then( - (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c)) - ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c); - } - const composed = (0, import_compose.compose)(matchResult[0], this.errorHandler, this.#notFoundHandler); - return (async () => { - try { - const context = await composed(c); - if (!context.finalized) { - throw new Error( - "Context is not finalized. Did you forget to return a Response object or `await next()`?" - ); - } - return context.res; - } catch (err) { - return this.#handleError(err, c); - } - })(); - } - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch = (request, ...rest) => { - return this.#dispatch(request, rest[1], rest[0], request.method); - }; - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request = (input, requestInit, Env, executionCtx) => { - if (input instanceof Request) { - return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx); - } - input = input.toString(); - return this.fetch( - new Request( - /^https?:\/\//.test(input) ? input : `http://localhost${(0, import_url.mergePath)("/", input)}`, - requestInit - ), - Env, - executionCtx - ); - }; - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire = () => { - addEventListener("fetch", (event) => { - event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method)); - }); - }; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - HonoBase -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/hono.js b/mcp-server/node_modules/hono/dist/cjs/hono.js deleted file mode 100644 index 06d59a2..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/hono.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var hono_exports = {}; -__export(hono_exports, { - Hono: () => Hono -}); -module.exports = __toCommonJS(hono_exports); -var import_hono_base = require("./hono-base"); -var import_reg_exp_router = require("./router/reg-exp-router"); -var import_smart_router = require("./router/smart-router"); -var import_trie_router = require("./router/trie-router"); -class Hono extends import_hono_base.HonoBase { - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options = {}) { - super(options); - this.router = options.router ?? new import_smart_router.SmartRouter({ - routers: [new import_reg_exp_router.RegExpRouter(), new import_trie_router.TrieRouter()] - }); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Hono -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/http-exception.js b/mcp-server/node_modules/hono/dist/cjs/http-exception.js deleted file mode 100644 index 3ad00c5..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/http-exception.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var http_exception_exports = {}; -__export(http_exception_exports, { - HTTPException: () => HTTPException -}); -module.exports = __toCommonJS(http_exception_exports); -class HTTPException extends Error { - res; - status; - /** - * Creates an instance of `HTTPException`. - * @param status - HTTP status code for the exception. Defaults to 500. - * @param options - Additional options for the exception. - */ - constructor(status = 500, options) { - super(options?.message, { cause: options?.cause }); - this.res = options?.res; - this.status = status; - } - /** - * Returns the response object associated with the exception. - * If a response object is not provided, a new response is created with the error message and status code. - * @returns The response object. - */ - getResponse() { - if (this.res) { - const newResponse = new Response(this.res.body, { - status: this.status, - headers: this.res.headers - }); - return newResponse; - } - return new Response(this.message, { - status: this.status - }); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - HTTPException -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/index.js b/mcp-server/node_modules/hono/dist/cjs/index.js deleted file mode 100644 index 256c738..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var index_exports = {}; -__export(index_exports, { - Hono: () => import_hono.Hono -}); -module.exports = __toCommonJS(index_exports); -var import_hono = require("./hono"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Hono -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/base.js b/mcp-server/node_modules/hono/dist/cjs/jsx/base.js deleted file mode 100644 index 48578a1..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/base.js +++ /dev/null @@ -1,375 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var base_exports = {}; -__export(base_exports, { - Fragment: () => Fragment, - JSXFragmentNode: () => JSXFragmentNode, - JSXNode: () => JSXNode, - booleanAttributes: () => booleanAttributes, - cloneElement: () => cloneElement, - getNameSpaceContext: () => getNameSpaceContext, - isValidElement: () => isValidElement, - jsx: () => jsx, - jsxFn: () => jsxFn, - memo: () => memo, - reactAPICompatVersion: () => reactAPICompatVersion, - shallowEqual: () => shallowEqual -}); -module.exports = __toCommonJS(base_exports); -var import_html = require("../helper/html"); -var import_html2 = require("../utils/html"); -var import_constants = require("./constants"); -var import_context = require("./context"); -var import_common = require("./intrinsic-element/common"); -var intrinsicElementTags = __toESM(require("./intrinsic-element/components"), 1); -var import_utils = require("./utils"); -let nameSpaceContext = void 0; -const getNameSpaceContext = () => nameSpaceContext; -const toSVGAttributeName = (key) => /[A-Z]/.test(key) && // Presentation attributes are findable in style object. "clip-path", "font-size", "stroke-width", etc. -// Or other un-deprecated kebab-case attributes. "overline-position", "paint-order", "strikethrough-position", etc. -key.match( - /^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/ -) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key; -const emptyTags = [ - "area", - "base", - "br", - "col", - "embed", - "hr", - "img", - "input", - "keygen", - "link", - "meta", - "param", - "source", - "track", - "wbr" -]; -const booleanAttributes = [ - "allowfullscreen", - "async", - "autofocus", - "autoplay", - "checked", - "controls", - "default", - "defer", - "disabled", - "download", - "formnovalidate", - "hidden", - "inert", - "ismap", - "itemscope", - "loop", - "multiple", - "muted", - "nomodule", - "novalidate", - "open", - "playsinline", - "readonly", - "required", - "reversed", - "selected" -]; -const childrenToStringToBuffer = (children, buffer) => { - for (let i = 0, len = children.length; i < len; i++) { - const child = children[i]; - if (typeof child === "string") { - (0, import_html2.escapeToBuffer)(child, buffer); - } else if (typeof child === "boolean" || child === null || child === void 0) { - continue; - } else if (child instanceof JSXNode) { - child.toStringToBuffer(buffer); - } else if (typeof child === "number" || child.isEscaped) { - ; - buffer[0] += child; - } else if (child instanceof Promise) { - buffer.unshift("", child); - } else { - childrenToStringToBuffer(child, buffer); - } - } -}; -class JSXNode { - tag; - props; - key; - children; - isEscaped = true; - localContexts; - constructor(tag, props, children) { - this.tag = tag; - this.props = props; - this.children = children; - } - get type() { - return this.tag; - } - // Added for compatibility with libraries that rely on React's internal structure - // eslint-disable-next-line @typescript-eslint/no-explicit-any - get ref() { - return this.props.ref || null; - } - toString() { - const buffer = [""]; - this.localContexts?.forEach(([context, value]) => { - context.values.push(value); - }); - try { - this.toStringToBuffer(buffer); - } finally { - this.localContexts?.forEach(([context]) => { - context.values.pop(); - }); - } - return buffer.length === 1 ? "callbacks" in buffer ? (0, import_html2.resolveCallbackSync)((0, import_html.raw)(buffer[0], buffer.callbacks)).toString() : buffer[0] : (0, import_html2.stringBufferToString)(buffer, buffer.callbacks); - } - toStringToBuffer(buffer) { - const tag = this.tag; - const props = this.props; - let { children } = this; - buffer[0] += `<${tag}`; - const normalizeKey = nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "svg" ? (key) => toSVGAttributeName((0, import_utils.normalizeIntrinsicElementKey)(key)) : (key) => (0, import_utils.normalizeIntrinsicElementKey)(key); - for (let [key, v] of Object.entries(props)) { - key = normalizeKey(key); - if (key === "children") { - } else if (key === "style" && typeof v === "object") { - let styleStr = ""; - (0, import_utils.styleObjectForEach)(v, (property, value) => { - if (value != null) { - styleStr += `${styleStr ? ";" : ""}${property}:${value}`; - } - }); - buffer[0] += ' style="'; - (0, import_html2.escapeToBuffer)(styleStr, buffer); - buffer[0] += '"'; - } else if (typeof v === "string") { - buffer[0] += ` ${key}="`; - (0, import_html2.escapeToBuffer)(v, buffer); - buffer[0] += '"'; - } else if (v === null || v === void 0) { - } else if (typeof v === "number" || v.isEscaped) { - buffer[0] += ` ${key}="${v}"`; - } else if (typeof v === "boolean" && booleanAttributes.includes(key)) { - if (v) { - buffer[0] += ` ${key}=""`; - } - } else if (key === "dangerouslySetInnerHTML") { - if (children.length > 0) { - throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); - } - children = [(0, import_html.raw)(v.__html)]; - } else if (v instanceof Promise) { - buffer[0] += ` ${key}="`; - buffer.unshift('"', v); - } else if (typeof v === "function") { - if (!key.startsWith("on") && key !== "ref") { - throw new Error(`Invalid prop '${key}' of type 'function' supplied to '${tag}'.`); - } - } else { - buffer[0] += ` ${key}="`; - (0, import_html2.escapeToBuffer)(v.toString(), buffer); - buffer[0] += '"'; - } - } - if (emptyTags.includes(tag) && children.length === 0) { - buffer[0] += "/>"; - return; - } - buffer[0] += ">"; - childrenToStringToBuffer(children, buffer); - buffer[0] += ``; - } -} -class JSXFunctionNode extends JSXNode { - toStringToBuffer(buffer) { - const { children } = this; - const props = { ...this.props }; - if (children.length) { - props.children = children.length === 1 ? children[0] : children; - } - const res = this.tag.call(null, props); - if (typeof res === "boolean" || res == null) { - return; - } else if (res instanceof Promise) { - if (import_context.globalContexts.length === 0) { - buffer.unshift("", res); - } else { - const currentContexts = import_context.globalContexts.map((c) => [c, c.values.at(-1)]); - buffer.unshift( - "", - res.then((childRes) => { - if (childRes instanceof JSXNode) { - childRes.localContexts = currentContexts; - } - return childRes; - }) - ); - } - } else if (res instanceof JSXNode) { - res.toStringToBuffer(buffer); - } else if (typeof res === "number" || res.isEscaped) { - buffer[0] += res; - if (res.callbacks) { - buffer.callbacks ||= []; - buffer.callbacks.push(...res.callbacks); - } - } else { - (0, import_html2.escapeToBuffer)(res, buffer); - } - } -} -class JSXFragmentNode extends JSXNode { - toStringToBuffer(buffer) { - childrenToStringToBuffer(this.children, buffer); - } -} -const jsx = (tag, props, ...children) => { - props ??= {}; - if (children.length) { - props.children = children.length === 1 ? children[0] : children; - } - const key = props.key; - delete props["key"]; - const node = jsxFn(tag, props, children); - node.key = key; - return node; -}; -let initDomRenderer = false; -const jsxFn = (tag, props, children) => { - if (!initDomRenderer) { - for (const k in import_common.domRenderers) { - ; - intrinsicElementTags[k][import_constants.DOM_RENDERER] = import_common.domRenderers[k]; - } - initDomRenderer = true; - } - if (typeof tag === "function") { - return new JSXFunctionNode(tag, props, children); - } else if (intrinsicElementTags[tag]) { - return new JSXFunctionNode( - intrinsicElementTags[tag], - props, - children - ); - } else if (tag === "svg" || tag === "head") { - nameSpaceContext ||= (0, import_context.createContext)(""); - return new JSXNode(tag, props, [ - new JSXFunctionNode( - nameSpaceContext, - { - value: tag - }, - children - ) - ]); - } else { - return new JSXNode(tag, props, children); - } -}; -const shallowEqual = (a, b) => { - if (a === b) { - return true; - } - const aKeys = Object.keys(a).sort(); - const bKeys = Object.keys(b).sort(); - if (aKeys.length !== bKeys.length) { - return false; - } - for (let i = 0, len = aKeys.length; i < len; i++) { - if (aKeys[i] === "children" && bKeys[i] === "children" && !a.children?.length && !b.children?.length) { - continue; - } else if (a[aKeys[i]] !== b[aKeys[i]]) { - return false; - } - } - return true; -}; -const memo = (component, propsAreEqual = shallowEqual) => { - let computed = null; - let prevProps = void 0; - const wrapper = ((props) => { - if (prevProps && !propsAreEqual(prevProps, props)) { - computed = null; - } - prevProps = props; - return computed ||= component(props); - }); - wrapper[import_constants.DOM_MEMO] = propsAreEqual; - wrapper[import_constants.DOM_RENDERER] = component; - return wrapper; -}; -const Fragment = ({ - children -}) => { - return new JSXFragmentNode( - "", - { - children - }, - Array.isArray(children) ? children : children ? [children] : [] - ); -}; -const isValidElement = (element) => { - return !!(element && typeof element === "object" && "tag" in element && "props" in element); -}; -const cloneElement = (element, props, ...children) => { - let childrenToClone; - if (children.length > 0) { - childrenToClone = children; - } else { - const c = element.props.children; - childrenToClone = Array.isArray(c) ? c : [c]; - } - return jsx( - element.tag, - { ...element.props, ...props }, - ...childrenToClone - ); -}; -const reactAPICompatVersion = "19.0.0-hono-jsx"; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Fragment, - JSXFragmentNode, - JSXNode, - booleanAttributes, - cloneElement, - getNameSpaceContext, - isValidElement, - jsx, - jsxFn, - memo, - reactAPICompatVersion, - shallowEqual -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/children.js b/mcp-server/node_modules/hono/dist/cjs/jsx/children.js deleted file mode 100644 index 0820d84..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/children.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var children_exports = {}; -__export(children_exports, { - Children: () => Children, - toArray: () => toArray -}); -module.exports = __toCommonJS(children_exports); -const toArray = (children) => Array.isArray(children) ? children : [children]; -const Children = { - map: (children, fn) => toArray(children).map(fn), - forEach: (children, fn) => { - toArray(children).forEach(fn); - }, - count: (children) => toArray(children).length, - only: (_children) => { - const children = toArray(_children); - if (children.length !== 1) { - throw new Error("Children.only() expects only one child"); - } - return children[0]; - }, - toArray -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Children, - toArray -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/components.js b/mcp-server/node_modules/hono/dist/cjs/jsx/components.js deleted file mode 100644 index 9102aa8..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/components.js +++ /dev/null @@ -1,176 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var components_exports = {}; -__export(components_exports, { - ErrorBoundary: () => ErrorBoundary, - childrenToString: () => childrenToString -}); -module.exports = __toCommonJS(components_exports); -var import_html = require("../helper/html"); -var import_html2 = require("../utils/html"); -var import_constants = require("./constants"); -var import_context = require("./context"); -var import_components = require("./dom/components"); -var import_streaming = require("./streaming"); -let errorBoundaryCounter = 0; -const childrenToString = async (children) => { - try { - return children.flat().map((c) => c == null || typeof c === "boolean" ? "" : c.toString()); - } catch (e) { - if (e instanceof Promise) { - await e; - return childrenToString(children); - } else { - throw e; - } - } -}; -const ErrorBoundary = async ({ children, fallback, fallbackRender, onError }) => { - if (!children) { - return (0, import_html.raw)(""); - } - if (!Array.isArray(children)) { - children = [children]; - } - const nonce = (0, import_context.useContext)(import_streaming.StreamingContext)?.scriptNonce; - let fallbackStr; - const fallbackRes = (error) => { - onError?.(error); - return (fallbackStr || fallbackRender?.(error) || "").toString(); - }; - let resArray = []; - try { - resArray = children.map( - (c) => c == null || typeof c === "boolean" ? "" : c.toString() - ); - } catch (e) { - fallbackStr = await fallback?.toString(); - if (e instanceof Promise) { - resArray = [ - e.then(() => childrenToString(children)).catch((e2) => fallbackRes(e2)) - ]; - } else { - resArray = [fallbackRes(e)]; - } - } - if (resArray.some((res) => res instanceof Promise)) { - fallbackStr ||= await fallback?.toString(); - const index = errorBoundaryCounter++; - const replaceRe = RegExp(`(.*?)(.*?)()`); - const caught = false; - const catchCallback = ({ error: error2, buffer }) => { - if (caught) { - return ""; - } - const fallbackResString = fallbackRes(error2); - if (buffer) { - buffer[0] = buffer[0].replace(replaceRe, fallbackResString); - } - return buffer ? "" : ``; - }; - let error; - const promiseAll = Promise.all(resArray).catch((e) => error = e); - return (0, import_html.raw)(``, [ - ({ phase, buffer, context }) => { - if (phase === import_html2.HtmlEscapedCallbackPhase.BeforeStream) { - return; - } - return promiseAll.then(async (htmlArray) => { - if (error) { - throw error; - } - htmlArray = htmlArray.flat(); - const content = htmlArray.join(""); - let html = buffer ? "" : ` -((d,c) => { -c=d.currentScript.previousSibling -d=d.getElementById('E:${index}') -if(!d)return -d.parentElement.insertBefore(c.content,d.nextSibling) -})(document) -`; - if (htmlArray.every((html2) => !html2.callbacks?.length)) { - if (buffer) { - buffer[0] = buffer[0].replace(replaceRe, content); - } - return html; - } - if (buffer) { - buffer[0] = buffer[0].replace( - replaceRe, - (_all, pre, _, post) => `${pre}${content}${post}` - ); - } - const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat(); - if (phase === import_html2.HtmlEscapedCallbackPhase.Stream) { - html = await (0, import_html2.resolveCallback)( - html, - import_html2.HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - } - let resolvedCount = 0; - const promises = callbacks.map( - (c) => (...args) => c(...args)?.then((content2) => { - resolvedCount++; - if (buffer) { - if (resolvedCount === callbacks.length) { - buffer[0] = buffer[0].replace(replaceRe, (_all, _pre, content3) => content3); - } - buffer[0] += content2; - return (0, import_html.raw)("", content2.callbacks); - } - return (0, import_html.raw)( - content2 + (resolvedCount !== callbacks.length ? "" : ``), - content2.callbacks - ); - }).catch((error2) => catchCallback({ error: error2, buffer })) - ); - return (0, import_html.raw)(html, promises); - }).catch((error2) => catchCallback({ error: error2, buffer })); - } - ]); - } else { - return (0, import_html.raw)(resArray.join("")); - } -}; -ErrorBoundary[import_constants.DOM_RENDERER] = import_components.ErrorBoundary; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - ErrorBoundary, - childrenToString -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/constants.js b/mcp-server/node_modules/hono/dist/cjs/jsx/constants.js deleted file mode 100644 index 35e4eae..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/constants.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var constants_exports = {}; -__export(constants_exports, { - DOM_ERROR_HANDLER: () => DOM_ERROR_HANDLER, - DOM_INTERNAL_TAG: () => DOM_INTERNAL_TAG, - DOM_MEMO: () => DOM_MEMO, - DOM_RENDERER: () => DOM_RENDERER, - DOM_STASH: () => DOM_STASH, - PERMALINK: () => PERMALINK -}); -module.exports = __toCommonJS(constants_exports); -const DOM_RENDERER = /* @__PURE__ */ Symbol("RENDERER"); -const DOM_ERROR_HANDLER = /* @__PURE__ */ Symbol("ERROR_HANDLER"); -const DOM_STASH = /* @__PURE__ */ Symbol("STASH"); -const DOM_INTERNAL_TAG = /* @__PURE__ */ Symbol("INTERNAL"); -const DOM_MEMO = /* @__PURE__ */ Symbol("MEMO"); -const PERMALINK = /* @__PURE__ */ Symbol("PERMALINK"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - DOM_ERROR_HANDLER, - DOM_INTERNAL_TAG, - DOM_MEMO, - DOM_RENDERER, - DOM_STASH, - PERMALINK -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/context.js b/mcp-server/node_modules/hono/dist/cjs/jsx/context.js deleted file mode 100644 index 5204e4d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/context.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var context_exports = {}; -__export(context_exports, { - createContext: () => createContext, - globalContexts: () => globalContexts, - useContext: () => useContext -}); -module.exports = __toCommonJS(context_exports); -var import_html = require("../helper/html"); -var import_base = require("./base"); -var import_constants = require("./constants"); -var import_context = require("./dom/context"); -const globalContexts = []; -const createContext = (defaultValue) => { - const values = [defaultValue]; - const context = ((props) => { - values.push(props.value); - let string; - try { - string = props.children ? (Array.isArray(props.children) ? new import_base.JSXFragmentNode("", {}, props.children) : props.children).toString() : ""; - } finally { - values.pop(); - } - if (string instanceof Promise) { - return string.then((resString) => (0, import_html.raw)(resString, resString.callbacks)); - } else { - return (0, import_html.raw)(string); - } - }); - context.values = values; - context.Provider = context; - context[import_constants.DOM_RENDERER] = (0, import_context.createContextProviderFunction)(values); - globalContexts.push(context); - return context; -}; -const useContext = (context) => { - return context.values.at(-1); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createContext, - globalContexts, - useContext -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/client.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/client.js deleted file mode 100644 index d48651d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/client.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var client_exports = {}; -__export(client_exports, { - createRoot: () => createRoot, - default: () => client_default, - hydrateRoot: () => hydrateRoot -}); -module.exports = __toCommonJS(client_exports); -var import_hooks = require("../hooks"); -var import_render = require("./render"); -const createRoot = (element, options = {}) => { - let setJsxNode = ( - // unmounted - void 0 - ); - if (Object.keys(options).length > 0) { - console.warn("createRoot options are not supported yet"); - } - return { - render(jsxNode) { - if (setJsxNode === null) { - throw new Error("Cannot update an unmounted root"); - } - if (setJsxNode) { - setJsxNode(jsxNode); - } else { - (0, import_render.renderNode)( - (0, import_render.buildNode)({ - tag: () => { - const [_jsxNode, _setJsxNode] = (0, import_hooks.useState)(jsxNode); - setJsxNode = _setJsxNode; - return _jsxNode; - }, - props: {} - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }), - element - ); - } - }, - unmount() { - setJsxNode?.(null); - setJsxNode = null; - } - }; -}; -const hydrateRoot = (element, reactNode, options = {}) => { - const root = createRoot(element, options); - root.render(reactNode); - return root; -}; -var client_default = { - createRoot, - hydrateRoot -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createRoot, - hydrateRoot -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/components.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/components.js deleted file mode 100644 index e5afb7f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/components.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var components_exports = {}; -__export(components_exports, { - ErrorBoundary: () => ErrorBoundary, - Suspense: () => Suspense -}); -module.exports = __toCommonJS(components_exports); -var import_constants = require("../constants"); -var import_jsx_runtime = require("./jsx-runtime"); -const ErrorBoundary = (({ children, fallback, fallbackRender, onError }) => { - const res = (0, import_jsx_runtime.Fragment)({ children }); - res[import_constants.DOM_ERROR_HANDLER] = (err) => { - if (err instanceof Promise) { - throw err; - } - onError?.(err); - return fallbackRender?.(err) || fallback; - }; - return res; -}); -const Suspense = (({ - children, - fallback -}) => { - const res = (0, import_jsx_runtime.Fragment)({ children }); - res[import_constants.DOM_ERROR_HANDLER] = (err, retry) => { - if (!(err instanceof Promise)) { - throw err; - } - err.finally(retry); - return fallback; - }; - return res; -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - ErrorBoundary, - Suspense -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/context.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/context.js deleted file mode 100644 index 547f033..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/context.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var context_exports = {}; -__export(context_exports, { - createContext: () => createContext, - createContextProviderFunction: () => createContextProviderFunction -}); -module.exports = __toCommonJS(context_exports); -var import_constants = require("../constants"); -var import_context = require("../context"); -var import_utils = require("./utils"); -const createContextProviderFunction = (values) => ({ value, children }) => { - if (!children) { - return void 0; - } - const props = { - children: [ - { - tag: (0, import_utils.setInternalTagFlag)(() => { - values.push(value); - }), - props: {} - } - ] - }; - if (Array.isArray(children)) { - props.children.push(...children.flat()); - } else { - props.children.push(children); - } - props.children.push({ - tag: (0, import_utils.setInternalTagFlag)(() => { - values.pop(); - }), - props: {} - }); - const res = { tag: "", props, type: "" }; - res[import_constants.DOM_ERROR_HANDLER] = (err) => { - values.pop(); - throw err; - }; - return res; -}; -const createContext = (defaultValue) => { - const values = [defaultValue]; - const context = createContextProviderFunction(values); - context.values = values; - context.Provider = context; - import_context.globalContexts.push(context); - return context; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createContext, - createContextProviderFunction -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/css.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/css.js deleted file mode 100644 index f004291..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/css.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var css_exports = {}; -__export(css_exports, { - Style: () => Style, - createCssContext: () => createCssContext, - createCssJsxDomObjects: () => createCssJsxDomObjects, - css: () => css, - cx: () => cx, - keyframes: () => keyframes, - rawCssString: () => import_common2.rawCssString, - viewTransition: () => viewTransition -}); -module.exports = __toCommonJS(css_exports); -var import_common = require("../../helper/css/common"); -var import_common2 = require("../../helper/css/common"); -const splitRule = (rule) => { - const result = []; - let startPos = 0; - let depth = 0; - for (let i = 0, len = rule.length; i < len; i++) { - const char = rule[i]; - if (char === "'" || char === '"') { - const quote = char; - i++; - for (; i < len; i++) { - if (rule[i] === "\\") { - i++; - continue; - } - if (rule[i] === quote) { - break; - } - } - continue; - } - if (char === "{") { - depth++; - continue; - } - if (char === "}") { - depth--; - if (depth === 0) { - result.push(rule.slice(startPos, i + 1)); - startPos = i + 1; - } - continue; - } - } - return result; -}; -const createCssJsxDomObjects = ({ id }) => { - let styleSheet = void 0; - const findStyleSheet = () => { - if (!styleSheet) { - styleSheet = document.querySelector(`style#${id}`)?.sheet; - if (styleSheet) { - ; - styleSheet.addedStyles = /* @__PURE__ */ new Set(); - } - } - return styleSheet ? [styleSheet, styleSheet.addedStyles] : []; - }; - const insertRule = (className, styleString) => { - const [sheet, addedStyles] = findStyleSheet(); - if (!sheet || !addedStyles) { - Promise.resolve().then(() => { - if (!findStyleSheet()[0]) { - throw new Error("style sheet not found"); - } - insertRule(className, styleString); - }); - return; - } - if (!addedStyles.has(className)) { - addedStyles.add(className); - (className.startsWith(import_common.PSEUDO_GLOBAL_SELECTOR) ? splitRule(styleString) : [`${className[0] === "@" ? "" : "."}${className}{${styleString}}`]).forEach((rule) => { - sheet.insertRule(rule, sheet.cssRules.length); - }); - } - }; - const cssObject = { - toString() { - const selector = this[import_common.SELECTOR]; - insertRule(selector, this[import_common.STYLE_STRING]); - this[import_common.SELECTORS].forEach(({ [import_common.CLASS_NAME]: className, [import_common.STYLE_STRING]: styleString }) => { - insertRule(className, styleString); - }); - return this[import_common.CLASS_NAME]; - } - }; - const Style2 = ({ children, nonce }) => ({ - tag: "style", - props: { - id, - nonce, - children: children && (Array.isArray(children) ? children : [children]).map( - (c) => c[import_common.STYLE_STRING] - ) - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }); - return [cssObject, Style2]; -}; -const createCssContext = ({ id }) => { - const [cssObject, Style2] = createCssJsxDomObjects({ id }); - const newCssClassNameObject = (cssClassName) => { - cssClassName.toString = cssObject.toString; - return cssClassName; - }; - const css2 = (strings, ...values) => { - return newCssClassNameObject((0, import_common.cssCommon)(strings, values)); - }; - const cx2 = (...args) => { - args = (0, import_common.cxCommon)(args); - return css2(Array(args.length).fill(""), ...args); - }; - const keyframes2 = import_common.keyframesCommon; - const viewTransition2 = ((strings, ...values) => { - return newCssClassNameObject((0, import_common.viewTransitionCommon)(strings, values)); - }); - return { - css: css2, - cx: cx2, - keyframes: keyframes2, - viewTransition: viewTransition2, - Style: Style2 - }; -}; -const defaultContext = createCssContext({ id: import_common.DEFAULT_STYLE_ID }); -const css = defaultContext.css; -const cx = defaultContext.cx; -const keyframes = defaultContext.keyframes; -const viewTransition = defaultContext.viewTransition; -const Style = defaultContext.Style; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Style, - createCssContext, - createCssJsxDomObjects, - css, - cx, - keyframes, - rawCssString, - viewTransition -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js deleted file mode 100644 index 1ce3b77..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var hooks_exports = {}; -__export(hooks_exports, { - FormContext: () => FormContext, - registerAction: () => registerAction, - useActionState: () => useActionState, - useFormStatus: () => useFormStatus, - useOptimistic: () => useOptimistic -}); -module.exports = __toCommonJS(hooks_exports); -var import_constants = require("../../constants"); -var import_context = require("../../context"); -var import_hooks = require("../../hooks"); -var import_context2 = require("../context"); -const FormContext = (0, import_context2.createContext)({ - pending: false, - data: null, - method: null, - action: null -}); -const actions = /* @__PURE__ */ new Set(); -const registerAction = (action) => { - actions.add(action); - action.finally(() => actions.delete(action)); -}; -const useFormStatus = () => { - return (0, import_context.useContext)(FormContext); -}; -const useOptimistic = (state, updateState) => { - const [optimisticState, setOptimisticState] = (0, import_hooks.useState)(state); - if (actions.size > 0) { - Promise.all(actions).finally(() => { - setOptimisticState(state); - }); - } else { - setOptimisticState(state); - } - const cb = (0, import_hooks.useCallback)((newData) => { - setOptimisticState((currentState) => updateState(currentState, newData)); - }, []); - return [optimisticState, cb]; -}; -const useActionState = (fn, initialState, permalink) => { - const [state, setState] = (0, import_hooks.useState)(initialState); - const actionState = async (data) => { - setState(await fn(state, data)); - }; - actionState[import_constants.PERMALINK] = permalink; - return [state, actionState]; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - FormContext, - registerAction, - useActionState, - useFormStatus, - useOptimistic -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/index.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/index.js deleted file mode 100644 index d01dd10..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/index.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var dom_exports = {}; -__export(dom_exports, { - Children: () => import_children.Children, - ErrorBoundary: () => import_components.ErrorBoundary, - Fragment: () => import_jsx_runtime.Fragment, - StrictMode: () => import_jsx_runtime.Fragment, - Suspense: () => import_components.Suspense, - cloneElement: () => cloneElement, - createContext: () => import_context2.createContext, - createElement: () => createElement, - createPortal: () => import_render.createPortal, - createRef: () => import_hooks.createRef, - default: () => dom_default, - flushSync: () => import_render.flushSync, - forwardRef: () => import_hooks.forwardRef, - isValidElement: () => import_base.isValidElement, - jsx: () => createElement, - memo: () => memo, - render: () => import_render2.render, - startTransition: () => import_hooks.startTransition, - startViewTransition: () => import_hooks.startViewTransition, - use: () => import_hooks.use, - useActionState: () => import_hooks2.useActionState, - useCallback: () => import_hooks.useCallback, - useContext: () => import_context.useContext, - useDebugValue: () => import_hooks.useDebugValue, - useDeferredValue: () => import_hooks.useDeferredValue, - useEffect: () => import_hooks.useEffect, - useFormStatus: () => import_hooks2.useFormStatus, - useId: () => import_hooks.useId, - useImperativeHandle: () => import_hooks.useImperativeHandle, - useInsertionEffect: () => import_hooks.useInsertionEffect, - useLayoutEffect: () => import_hooks.useLayoutEffect, - useMemo: () => import_hooks.useMemo, - useOptimistic: () => import_hooks2.useOptimistic, - useReducer: () => import_hooks.useReducer, - useRef: () => import_hooks.useRef, - useState: () => import_hooks.useState, - useSyncExternalStore: () => import_hooks.useSyncExternalStore, - useTransition: () => import_hooks.useTransition, - useViewTransition: () => import_hooks.useViewTransition, - version: () => import_base.reactAPICompatVersion -}); -module.exports = __toCommonJS(dom_exports); -var import_base = require("../base"); -var import_children = require("../children"); -var import_constants = require("../constants"); -var import_context = require("../context"); -var import_hooks = require("../hooks"); -var import_components = require("./components"); -var import_context2 = require("./context"); -var import_hooks2 = require("./hooks"); -var import_jsx_runtime = require("./jsx-runtime"); -var import_render = require("./render"); -var import_render2 = require("./render"); -const createElement = (tag, props, ...children) => { - const jsxProps = props ? { ...props } : {}; - if (children.length) { - jsxProps.children = children.length === 1 ? children[0] : children; - } - let key = void 0; - if ("key" in jsxProps) { - key = jsxProps.key; - delete jsxProps.key; - } - return (0, import_jsx_runtime.jsx)(tag, jsxProps, key); -}; -const cloneElement = (element, props, ...children) => { - return (0, import_jsx_runtime.jsx)( - element.tag, - { - ...element.props, - ...props, - children: children.length ? children : element.props.children - }, - element.key - ); -}; -const memo = (component, propsAreEqual = import_base.shallowEqual) => { - const wrapper = ((props) => component(props)); - wrapper[import_constants.DOM_MEMO] = propsAreEqual; - return wrapper; -}; -var dom_default = { - version: import_base.reactAPICompatVersion, - useState: import_hooks.useState, - useEffect: import_hooks.useEffect, - useRef: import_hooks.useRef, - useCallback: import_hooks.useCallback, - use: import_hooks.use, - startTransition: import_hooks.startTransition, - useTransition: import_hooks.useTransition, - useDeferredValue: import_hooks.useDeferredValue, - startViewTransition: import_hooks.startViewTransition, - useViewTransition: import_hooks.useViewTransition, - useMemo: import_hooks.useMemo, - useLayoutEffect: import_hooks.useLayoutEffect, - useInsertionEffect: import_hooks.useInsertionEffect, - useReducer: import_hooks.useReducer, - useId: import_hooks.useId, - useDebugValue: import_hooks.useDebugValue, - createRef: import_hooks.createRef, - forwardRef: import_hooks.forwardRef, - useImperativeHandle: import_hooks.useImperativeHandle, - useSyncExternalStore: import_hooks.useSyncExternalStore, - useFormStatus: import_hooks2.useFormStatus, - useActionState: import_hooks2.useActionState, - useOptimistic: import_hooks2.useOptimistic, - Suspense: import_components.Suspense, - ErrorBoundary: import_components.ErrorBoundary, - createContext: import_context2.createContext, - useContext: import_context.useContext, - memo, - isValidElement: import_base.isValidElement, - createElement, - cloneElement, - Children: import_children.Children, - Fragment: import_jsx_runtime.Fragment, - StrictMode: import_jsx_runtime.Fragment, - flushSync: import_render.flushSync, - createPortal: import_render.createPortal -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Children, - ErrorBoundary, - Fragment, - StrictMode, - Suspense, - cloneElement, - createContext, - createElement, - createPortal, - createRef, - flushSync, - forwardRef, - isValidElement, - jsx, - memo, - render, - startTransition, - startViewTransition, - use, - useActionState, - useCallback, - useContext, - useDebugValue, - useDeferredValue, - useEffect, - useFormStatus, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useOptimistic, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition, - version -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js deleted file mode 100644 index d355395..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +++ /dev/null @@ -1,369 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var components_exports = {}; -__export(components_exports, { - button: () => button, - clearCache: () => clearCache, - composeRef: () => composeRef, - form: () => form, - input: () => input, - link: () => link, - meta: () => meta, - script: () => script, - style: () => style, - title: () => title -}); -module.exports = __toCommonJS(components_exports); -var import_context = require("../../context"); -var import_hooks = require("../../hooks"); -var import_common = require("../../intrinsic-element/common"); -var import_hooks2 = require("../hooks"); -var import_render = require("../render"); -const clearCache = () => { - blockingPromiseMap = /* @__PURE__ */ Object.create(null); - createdElements = /* @__PURE__ */ Object.create(null); -}; -const composeRef = (ref, cb) => { - return (0, import_hooks.useMemo)( - () => (e) => { - let refCleanup; - if (ref) { - if (typeof ref === "function") { - refCleanup = ref(e) || (() => { - ref(null); - }); - } else if (ref && "current" in ref) { - ref.current = e; - refCleanup = () => { - ref.current = null; - }; - } - } - const cbCleanup = cb(e); - return () => { - cbCleanup?.(); - refCleanup?.(); - }; - }, - [ref] - ); -}; -let blockingPromiseMap = /* @__PURE__ */ Object.create(null); -let createdElements = /* @__PURE__ */ Object.create(null); -const documentMetadataTag = (tag, props, preserveNodeType, supportSort, supportBlocking) => { - if (props?.itemProp) { - return { - tag, - props, - type: tag, - ref: props.ref - }; - } - const head = document.head; - let { onLoad, onError, precedence, blocking, ...restProps } = props; - let element = null; - let created = false; - const deDupeKeys = import_common.deDupeKeyMap[tag]; - let existingElements = void 0; - if (deDupeKeys.length > 0) { - const tags = head.querySelectorAll(tag); - LOOP: for (const e of tags) { - for (const key of import_common.deDupeKeyMap[tag]) { - if (e.getAttribute(key) === props[key]) { - element = e; - break LOOP; - } - } - } - if (!element) { - const cacheKey = deDupeKeys.reduce( - (acc, key) => props[key] === void 0 ? acc : `${acc}-${key}-${props[key]}`, - tag - ); - created = !createdElements[cacheKey]; - element = createdElements[cacheKey] ||= (() => { - const e = document.createElement(tag); - for (const key of deDupeKeys) { - if (props[key] !== void 0) { - e.setAttribute(key, props[key]); - } - if (props.rel) { - e.setAttribute("rel", props.rel); - } - } - return e; - })(); - } - } else { - existingElements = head.querySelectorAll(tag); - } - precedence = supportSort ? precedence ?? "" : void 0; - if (supportSort) { - restProps[import_common.dataPrecedenceAttr] = precedence; - } - const insert = (0, import_hooks.useCallback)( - (e) => { - if (deDupeKeys.length > 0) { - let found = false; - for (const existingElement of head.querySelectorAll(tag)) { - if (found && existingElement.getAttribute(import_common.dataPrecedenceAttr) !== precedence) { - head.insertBefore(e, existingElement); - return; - } - if (existingElement.getAttribute(import_common.dataPrecedenceAttr) === precedence) { - found = true; - } - } - head.appendChild(e); - } else if (existingElements) { - let found = false; - for (const existingElement of existingElements) { - if (existingElement === e) { - found = true; - break; - } - } - if (!found) { - head.insertBefore( - e, - head.contains(existingElements[0]) ? existingElements[0] : head.querySelector(tag) - ); - } - existingElements = void 0; - } - }, - [precedence] - ); - const ref = composeRef(props.ref, (e) => { - const key = deDupeKeys[0]; - if (preserveNodeType === 2) { - e.innerHTML = ""; - } - if (created || existingElements) { - insert(e); - } - if (!onError && !onLoad) { - return; - } - let promise = blockingPromiseMap[e.getAttribute(key)] ||= new Promise( - (resolve, reject) => { - e.addEventListener("load", resolve); - e.addEventListener("error", reject); - } - ); - if (onLoad) { - promise = promise.then(onLoad); - } - if (onError) { - promise = promise.catch(onError); - } - promise.catch(() => { - }); - }); - if (supportBlocking && blocking === "render") { - const key = import_common.deDupeKeyMap[tag][0]; - if (props[key]) { - const value = props[key]; - const promise = blockingPromiseMap[value] ||= new Promise((resolve, reject) => { - insert(element); - element.addEventListener("load", resolve); - element.addEventListener("error", reject); - }); - (0, import_hooks.use)(promise); - } - } - const jsxNode = { - tag, - type: tag, - props: { - ...restProps, - ref - }, - ref - }; - jsxNode.p = preserveNodeType; - if (element) { - jsxNode.e = element; - } - return (0, import_render.createPortal)( - jsxNode, - head - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ); -}; -const title = (props) => { - const nameSpaceContext = (0, import_render.getNameSpaceContext)(); - const ns = nameSpaceContext && (0, import_context.useContext)(nameSpaceContext); - if (ns?.endsWith("svg")) { - return { - tag: "title", - props, - type: "title", - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ref: props.ref - }; - } - return documentMetadataTag("title", props, void 0, false, false); -}; -const script = (props) => { - if (!props || ["src", "async"].some((k) => !props[k])) { - return { - tag: "script", - props, - type: "script", - ref: props.ref - }; - } - return documentMetadataTag("script", props, 1, false, true); -}; -const style = (props) => { - if (!props || !["href", "precedence"].every((k) => k in props)) { - return { - tag: "style", - props, - type: "style", - ref: props.ref - }; - } - props["data-href"] = props.href; - delete props.href; - return documentMetadataTag("style", props, 2, true, true); -}; -const link = (props) => { - if (!props || ["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) { - return { - tag: "link", - props, - type: "link", - ref: props.ref - }; - } - return documentMetadataTag("link", props, 1, "precedence" in props, true); -}; -const meta = (props) => { - return documentMetadataTag("meta", props, void 0, false, false); -}; -const customEventFormAction = /* @__PURE__ */ Symbol(); -const form = (props) => { - const { action, ...restProps } = props; - if (typeof action !== "function") { - ; - restProps.action = action; - } - const [state, setState] = (0, import_hooks.useState)([null, false]); - const onSubmit = (0, import_hooks.useCallback)( - async (ev) => { - const currentAction = ev.isTrusted ? action : ev.detail[customEventFormAction]; - if (typeof currentAction !== "function") { - return; - } - ev.preventDefault(); - const formData = new FormData(ev.target); - setState([formData, true]); - const actionRes = currentAction(formData); - if (actionRes instanceof Promise) { - (0, import_hooks2.registerAction)(actionRes); - await actionRes; - } - setState([null, true]); - }, - [] - ); - const ref = composeRef(props.ref, (el) => { - el.addEventListener("submit", onSubmit); - return () => { - el.removeEventListener("submit", onSubmit); - }; - }); - const [data, isDirty] = state; - state[1] = false; - return { - tag: import_hooks2.FormContext, - props: { - value: { - pending: data !== null, - data, - method: data ? "post" : null, - action: data ? action : null - }, - children: { - tag: "form", - props: { - ...restProps, - ref - }, - type: "form", - ref - } - }, - f: isDirty - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; -}; -const formActionableElement = (tag, { - formAction, - ...props -}) => { - if (typeof formAction === "function") { - const onClick = (0, import_hooks.useCallback)((ev) => { - ev.preventDefault(); - ev.currentTarget.form.dispatchEvent( - new CustomEvent("submit", { detail: { [customEventFormAction]: formAction } }) - ); - }, []); - props.ref = composeRef(props.ref, (el) => { - el.addEventListener("click", onClick); - return () => { - el.removeEventListener("click", onClick); - }; - }); - } - return { - tag, - props, - type: tag, - ref: props.ref - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; -}; -const input = (props) => formActionableElement("input", props); -const button = (props) => formActionableElement("button", props); -Object.assign(import_common.domRenderers, { - title, - script, - style, - link, - meta, - form, - input, - button -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - button, - clearCache, - composeRef, - form, - input, - link, - meta, - script, - style, - title -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js deleted file mode 100644 index 24faf6c..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_dev_runtime_exports = {}; -__export(jsx_dev_runtime_exports, { - Fragment: () => Fragment, - jsxDEV: () => jsxDEV -}); -module.exports = __toCommonJS(jsx_dev_runtime_exports); -var intrinsicElementTags = __toESM(require("./intrinsic-element/components"), 1); -const jsxDEV = (tag, props, key) => { - if (typeof tag === "string" && intrinsicElementTags[tag]) { - tag = intrinsicElementTags[tag]; - } - return { - tag, - type: tag, - props, - key, - ref: props.ref - }; -}; -const Fragment = (props) => jsxDEV("", props, void 0); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Fragment, - jsxDEV -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js deleted file mode 100644 index be6fe82..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_runtime_exports = {}; -__export(jsx_runtime_exports, { - Fragment: () => import_jsx_dev_runtime.Fragment, - jsx: () => import_jsx_dev_runtime.jsxDEV, - jsxs: () => import_jsx_dev_runtime2.jsxDEV -}); -module.exports = __toCommonJS(jsx_runtime_exports); -var import_jsx_dev_runtime = require("./jsx-dev-runtime"); -var import_jsx_dev_runtime2 = require("./jsx-dev-runtime"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Fragment, - jsx, - jsxs -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/render.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/render.js deleted file mode 100644 index 45291c4..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/render.js +++ /dev/null @@ -1,622 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var render_exports = {}; -__export(render_exports, { - build: () => build, - buildDataStack: () => buildDataStack, - buildNode: () => buildNode, - createPortal: () => createPortal, - flushSync: () => flushSync, - getNameSpaceContext: () => getNameSpaceContext, - render: () => render, - renderNode: () => renderNode, - update: () => update -}); -module.exports = __toCommonJS(render_exports); -var import_children = require("../children"); -var import_constants = require("../constants"); -var import_context = require("../context"); -var import_hooks = require("../hooks"); -var import_utils = require("../utils"); -var import_context2 = require("./context"); -const HONO_PORTAL_ELEMENT = "_hp"; -const eventAliasMap = { - Change: "Input", - DoubleClick: "DblClick" -}; -const nameSpaceMap = { - svg: "2000/svg", - math: "1998/Math/MathML" -}; -const buildDataStack = []; -const refCleanupMap = /* @__PURE__ */ new WeakMap(); -let nameSpaceContext = void 0; -const getNameSpaceContext = () => nameSpaceContext; -const isNodeString = (node) => "t" in node; -const eventCache = { - // pre-define events that are used very frequently - onClick: ["click", false] -}; -const getEventSpec = (key) => { - if (!key.startsWith("on")) { - return void 0; - } - if (eventCache[key]) { - return eventCache[key]; - } - const match = key.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/); - if (match) { - const [, eventName, capture] = match; - return eventCache[key] = [(eventAliasMap[eventName] || eventName).toLowerCase(), !!capture]; - } - return void 0; -}; -const toAttributeName = (element, key) => nameSpaceContext && element instanceof SVGElement && /[A-Z]/.test(key) && (key in element.style || // Presentation attributes are findable in style object. "clip-path", "font-size", "stroke-width", etc. -key.match(/^(?:o|pai|str|u|ve)/)) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key; -const applyProps = (container, attributes, oldAttributes) => { - attributes ||= {}; - for (let key in attributes) { - const value = attributes[key]; - if (key !== "children" && (!oldAttributes || oldAttributes[key] !== value)) { - key = (0, import_utils.normalizeIntrinsicElementKey)(key); - const eventSpec = getEventSpec(key); - if (eventSpec) { - if (oldAttributes?.[key] !== value) { - if (oldAttributes) { - container.removeEventListener(eventSpec[0], oldAttributes[key], eventSpec[1]); - } - if (value != null) { - if (typeof value !== "function") { - throw new Error(`Event handler for "${key}" is not a function`); - } - container.addEventListener(eventSpec[0], value, eventSpec[1]); - } - } - } else if (key === "dangerouslySetInnerHTML" && value) { - container.innerHTML = value.__html; - } else if (key === "ref") { - let cleanup; - if (typeof value === "function") { - cleanup = value(container) || (() => value(null)); - } else if (value && "current" in value) { - value.current = container; - cleanup = () => value.current = null; - } - refCleanupMap.set(container, cleanup); - } else if (key === "style") { - const style = container.style; - if (typeof value === "string") { - style.cssText = value; - } else { - style.cssText = ""; - if (value != null) { - (0, import_utils.styleObjectForEach)(value, style.setProperty.bind(style)); - } - } - } else { - if (key === "value") { - const nodeName = container.nodeName; - if (nodeName === "INPUT" || nodeName === "TEXTAREA" || nodeName === "SELECT") { - ; - container.value = value === null || value === void 0 || value === false ? null : value; - if (nodeName === "TEXTAREA") { - container.textContent = value; - continue; - } else if (nodeName === "SELECT") { - if (container.selectedIndex === -1) { - ; - container.selectedIndex = 0; - } - continue; - } - } - } else if (key === "checked" && container.nodeName === "INPUT" || key === "selected" && container.nodeName === "OPTION") { - ; - container[key] = value; - } - const k = toAttributeName(container, key); - if (value === null || value === void 0 || value === false) { - container.removeAttribute(k); - } else if (value === true) { - container.setAttribute(k, ""); - } else if (typeof value === "string" || typeof value === "number") { - container.setAttribute(k, value); - } else { - container.setAttribute(k, value.toString()); - } - } - } - } - if (oldAttributes) { - for (let key in oldAttributes) { - const value = oldAttributes[key]; - if (key !== "children" && !(key in attributes)) { - key = (0, import_utils.normalizeIntrinsicElementKey)(key); - const eventSpec = getEventSpec(key); - if (eventSpec) { - container.removeEventListener(eventSpec[0], value, eventSpec[1]); - } else if (key === "ref") { - refCleanupMap.get(container)?.(); - } else { - container.removeAttribute(toAttributeName(container, key)); - } - } - } - } -}; -const invokeTag = (context, node) => { - node[import_constants.DOM_STASH][0] = 0; - buildDataStack.push([context, node]); - const func = node.tag[import_constants.DOM_RENDERER] || node.tag; - const props = func.defaultProps ? { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ...func.defaultProps, - ...node.props - } : node.props; - try { - return [func.call(null, props)]; - } finally { - buildDataStack.pop(); - } -}; -const getNextChildren = (node, container, nextChildren, childrenToRemove, callbacks) => { - if (node.vR?.length) { - childrenToRemove.push(...node.vR); - delete node.vR; - } - if (typeof node.tag === "function") { - node[import_constants.DOM_STASH][1][import_hooks.STASH_EFFECT]?.forEach((data) => callbacks.push(data)); - } - node.vC.forEach((child) => { - if (isNodeString(child)) { - nextChildren.push(child); - } else { - if (typeof child.tag === "function" || child.tag === "") { - child.c = container; - const currentNextChildrenIndex = nextChildren.length; - getNextChildren(child, container, nextChildren, childrenToRemove, callbacks); - if (child.s) { - for (let i = currentNextChildrenIndex; i < nextChildren.length; i++) { - nextChildren[i].s = true; - } - child.s = false; - } - } else { - nextChildren.push(child); - if (child.vR?.length) { - childrenToRemove.push(...child.vR); - delete child.vR; - } - } - } - }); -}; -const findInsertBefore = (node) => { - for (; ; node = node.tag === HONO_PORTAL_ELEMENT || !node.vC || !node.pP ? node.nN : node.vC[0]) { - if (!node) { - return null; - } - if (node.tag !== HONO_PORTAL_ELEMENT && node.e) { - return node.e; - } - } -}; -const removeNode = (node) => { - if (!isNodeString(node)) { - node[import_constants.DOM_STASH]?.[1][import_hooks.STASH_EFFECT]?.forEach((data) => data[2]?.()); - refCleanupMap.get(node.e)?.(); - if (node.p === 2) { - node.vC?.forEach((n) => n.p = 2); - } - node.vC?.forEach(removeNode); - } - if (!node.p) { - node.e?.remove(); - delete node.e; - } - if (typeof node.tag === "function") { - updateMap.delete(node); - fallbackUpdateFnArrayMap.delete(node); - delete node[import_constants.DOM_STASH][3]; - node.a = true; - } -}; -const apply = (node, container, isNew) => { - node.c = container; - applyNodeObject(node, container, isNew); -}; -const findChildNodeIndex = (childNodes, child) => { - if (!child) { - return; - } - for (let i = 0, len = childNodes.length; i < len; i++) { - if (childNodes[i] === child) { - return i; - } - } - return; -}; -const cancelBuild = /* @__PURE__ */ Symbol(); -const applyNodeObject = (node, container, isNew) => { - const next = []; - const remove = []; - const callbacks = []; - getNextChildren(node, container, next, remove, callbacks); - remove.forEach(removeNode); - const childNodes = isNew ? void 0 : container.childNodes; - let offset; - let insertBeforeNode = null; - if (isNew) { - offset = -1; - } else if (!childNodes.length) { - offset = 0; - } else { - const offsetByNextNode = findChildNodeIndex(childNodes, findInsertBefore(node.nN)); - if (offsetByNextNode !== void 0) { - insertBeforeNode = childNodes[offsetByNextNode]; - offset = offsetByNextNode; - } else { - offset = findChildNodeIndex(childNodes, next.find((n) => n.tag !== HONO_PORTAL_ELEMENT && n.e)?.e) ?? -1; - } - if (offset === -1) { - isNew = true; - } - } - for (let i = 0, len = next.length; i < len; i++, offset++) { - const child = next[i]; - let el; - if (child.s && child.e) { - el = child.e; - child.s = false; - } else { - const isNewLocal = isNew || !child.e; - if (isNodeString(child)) { - if (child.e && child.d) { - child.e.textContent = child.t; - } - child.d = false; - el = child.e ||= document.createTextNode(child.t); - } else { - el = child.e ||= child.n ? document.createElementNS(child.n, child.tag) : document.createElement(child.tag); - applyProps(el, child.props, child.pP); - applyNodeObject(child, el, isNewLocal); - } - } - if (child.tag === HONO_PORTAL_ELEMENT) { - offset--; - } else if (isNew) { - if (!el.parentNode) { - container.appendChild(el); - } - } else if (childNodes[offset] !== el && childNodes[offset - 1] !== el) { - if (childNodes[offset + 1] === el) { - container.appendChild(childNodes[offset]); - } else { - container.insertBefore(el, insertBeforeNode || childNodes[offset] || null); - } - } - } - if (node.pP) { - delete node.pP; - } - if (callbacks.length) { - const useLayoutEffectCbs = []; - const useEffectCbs = []; - callbacks.forEach(([, useLayoutEffectCb, , useEffectCb, useInsertionEffectCb]) => { - if (useLayoutEffectCb) { - useLayoutEffectCbs.push(useLayoutEffectCb); - } - if (useEffectCb) { - useEffectCbs.push(useEffectCb); - } - useInsertionEffectCb?.(); - }); - useLayoutEffectCbs.forEach((cb) => cb()); - if (useEffectCbs.length) { - requestAnimationFrame(() => { - useEffectCbs.forEach((cb) => cb()); - }); - } - } -}; -const isSameContext = (oldContexts, newContexts) => !!(oldContexts && oldContexts.length === newContexts.length && oldContexts.every((ctx, i) => ctx[1] === newContexts[i][1])); -const fallbackUpdateFnArrayMap = /* @__PURE__ */ new WeakMap(); -const build = (context, node, children) => { - const buildWithPreviousChildren = !children && node.pC; - if (children) { - node.pC ||= node.vC; - } - let foundErrorHandler; - try { - children ||= typeof node.tag == "function" ? invokeTag(context, node) : (0, import_children.toArray)(node.props.children); - if (children[0]?.tag === "" && children[0][import_constants.DOM_ERROR_HANDLER]) { - foundErrorHandler = children[0][import_constants.DOM_ERROR_HANDLER]; - context[5].push([context, foundErrorHandler, node]); - } - const oldVChildren = buildWithPreviousChildren ? [...node.pC] : node.vC ? [...node.vC] : void 0; - const vChildren = []; - let prevNode; - for (let i = 0; i < children.length; i++) { - if (Array.isArray(children[i])) { - children.splice(i, 1, ...children[i].flat()); - } - let child = buildNode(children[i]); - if (child) { - if (typeof child.tag === "function" && // eslint-disable-next-line @typescript-eslint/no-explicit-any - !child.tag[import_constants.DOM_INTERNAL_TAG]) { - if (import_context.globalContexts.length > 0) { - child[import_constants.DOM_STASH][2] = import_context.globalContexts.map((c) => [c, c.values.at(-1)]); - } - if (context[5]?.length) { - child[import_constants.DOM_STASH][3] = context[5].at(-1); - } - } - let oldChild; - if (oldVChildren && oldVChildren.length) { - const i2 = oldVChildren.findIndex( - isNodeString(child) ? (c) => isNodeString(c) : child.key !== void 0 ? (c) => c.key === child.key && c.tag === child.tag : (c) => c.tag === child.tag - ); - if (i2 !== -1) { - oldChild = oldVChildren[i2]; - oldVChildren.splice(i2, 1); - } - } - if (oldChild) { - if (isNodeString(child)) { - if (oldChild.t !== child.t) { - ; - oldChild.t = child.t; - oldChild.d = true; - } - child = oldChild; - } else { - const pP = oldChild.pP = oldChild.props; - oldChild.props = child.props; - oldChild.f ||= child.f || node.f; - if (typeof child.tag === "function") { - const oldContexts = oldChild[import_constants.DOM_STASH][2]; - oldChild[import_constants.DOM_STASH][2] = child[import_constants.DOM_STASH][2] || []; - oldChild[import_constants.DOM_STASH][3] = child[import_constants.DOM_STASH][3]; - if (!oldChild.f && ((oldChild.o || oldChild) === child.o || // The code generated by the react compiler is memoized under this condition. - oldChild.tag[import_constants.DOM_MEMO]?.(pP, oldChild.props)) && // The `memo` function is memoized under this condition. - isSameContext(oldContexts, oldChild[import_constants.DOM_STASH][2])) { - oldChild.s = true; - } - } - child = oldChild; - } - } else if (!isNodeString(child) && nameSpaceContext) { - const ns = (0, import_context.useContext)(nameSpaceContext); - if (ns) { - child.n = ns; - } - } - if (!isNodeString(child) && !child.s) { - build(context, child); - delete child.f; - } - vChildren.push(child); - if (prevNode && !prevNode.s && !child.s) { - for (let p = prevNode; p && !isNodeString(p); p = p.vC?.at(-1)) { - p.nN = child; - } - } - prevNode = child; - } - } - node.vR = buildWithPreviousChildren ? [...node.vC, ...oldVChildren || []] : oldVChildren || []; - node.vC = vChildren; - if (buildWithPreviousChildren) { - delete node.pC; - } - } catch (e) { - node.f = true; - if (e === cancelBuild) { - if (foundErrorHandler) { - return; - } else { - throw e; - } - } - const [errorHandlerContext, errorHandler, errorHandlerNode] = node[import_constants.DOM_STASH]?.[3] || []; - if (errorHandler) { - const fallbackUpdateFn = () => update([0, false, context[2]], errorHandlerNode); - const fallbackUpdateFnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode) || []; - fallbackUpdateFnArray.push(fallbackUpdateFn); - fallbackUpdateFnArrayMap.set(errorHandlerNode, fallbackUpdateFnArray); - const fallback = errorHandler(e, () => { - const fnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode); - if (fnArray) { - const i = fnArray.indexOf(fallbackUpdateFn); - if (i !== -1) { - fnArray.splice(i, 1); - return fallbackUpdateFn(); - } - } - }); - if (fallback) { - if (context[0] === 1) { - context[1] = true; - } else { - build(context, errorHandlerNode, [fallback]); - if ((errorHandler.length === 1 || context !== errorHandlerContext) && errorHandlerNode.c) { - apply(errorHandlerNode, errorHandlerNode.c, false); - return; - } - } - throw cancelBuild; - } - } - throw e; - } finally { - if (foundErrorHandler) { - context[5].pop(); - } - } -}; -const buildNode = (node) => { - if (node === void 0 || node === null || typeof node === "boolean") { - return void 0; - } else if (typeof node === "string" || typeof node === "number") { - return { t: node.toString(), d: true }; - } else { - if ("vR" in node) { - node = { - tag: node.tag, - props: node.props, - key: node.key, - f: node.f, - type: node.tag, - ref: node.props.ref, - o: node.o || node - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; - } - if (typeof node.tag === "function") { - ; - node[import_constants.DOM_STASH] = [0, []]; - } else { - const ns = nameSpaceMap[node.tag]; - if (ns) { - nameSpaceContext ||= (0, import_context2.createContext)(""); - node.props.children = [ - { - tag: nameSpaceContext, - props: { - value: node.n = `http://www.w3.org/${ns}`, - children: node.props.children - } - } - ]; - } - } - return node; - } -}; -const replaceContainer = (node, from, to) => { - if (node.c === from) { - node.c = to; - node.vC.forEach((child) => replaceContainer(child, from, to)); - } -}; -const updateSync = (context, node) => { - node[import_constants.DOM_STASH][2]?.forEach(([c, v]) => { - c.values.push(v); - }); - try { - build(context, node, void 0); - } catch { - return; - } - if (node.a) { - delete node.a; - return; - } - node[import_constants.DOM_STASH][2]?.forEach(([c]) => { - c.values.pop(); - }); - if (context[0] !== 1 || !context[1]) { - apply(node, node.c, false); - } -}; -const updateMap = /* @__PURE__ */ new WeakMap(); -const currentUpdateSets = []; -const update = async (context, node) => { - context[5] ||= []; - const existing = updateMap.get(node); - if (existing) { - existing[0](void 0); - } - let resolve; - const promise = new Promise((r) => resolve = r); - updateMap.set(node, [ - resolve, - () => { - if (context[2]) { - context[2](context, node, (context2) => { - updateSync(context2, node); - }).then(() => resolve(node)); - } else { - updateSync(context, node); - resolve(node); - } - } - ]); - if (currentUpdateSets.length) { - ; - currentUpdateSets.at(-1).add(node); - } else { - await Promise.resolve(); - const latest = updateMap.get(node); - if (latest) { - updateMap.delete(node); - latest[1](); - } - } - return promise; -}; -const renderNode = (node, container) => { - const context = []; - context[5] = []; - context[4] = true; - build(context, node, void 0); - context[4] = false; - const fragment = document.createDocumentFragment(); - apply(node, fragment, true); - replaceContainer(node, fragment, container); - container.replaceChildren(fragment); -}; -const render = (jsxNode, container) => { - renderNode(buildNode({ tag: "", props: { children: jsxNode } }), container); -}; -const flushSync = (callback) => { - const set = /* @__PURE__ */ new Set(); - currentUpdateSets.push(set); - callback(); - set.forEach((node) => { - const latest = updateMap.get(node); - if (latest) { - updateMap.delete(node); - latest[1](); - } - }); - currentUpdateSets.pop(); -}; -const createPortal = (children, container, key) => ({ - tag: HONO_PORTAL_ELEMENT, - props: { - children - }, - key, - e: container, - p: 1 - // eslint-disable-next-line @typescript-eslint/no-explicit-any -}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - build, - buildDataStack, - buildNode, - createPortal, - flushSync, - getNameSpaceContext, - render, - renderNode, - update -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/server.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/server.js deleted file mode 100644 index 58f12ed..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/server.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var server_exports = {}; -__export(server_exports, { - default: () => server_default, - renderToReadableStream: () => renderToReadableStream, - renderToString: () => renderToString, - version: () => import__.default -}); -module.exports = __toCommonJS(server_exports); -var import_streaming = require("../streaming"); -var import__ = __toESM(require("./"), 1); -const renderToString = (element, options = {}) => { - if (Object.keys(options).length > 0) { - console.warn("options are not supported yet"); - } - const res = element?.toString() ?? ""; - if (typeof res !== "string") { - throw new Error("Async component is not supported in renderToString"); - } - return res; -}; -const renderToReadableStream = async (element, options = {}) => { - if (Object.keys(options).some((key) => key !== "onError")) { - console.warn("options are not supported yet, except onError"); - } - if (!element || typeof element !== "object") { - element = element?.toString() ?? ""; - } - return (0, import_streaming.renderToReadableStream)(element, options.onError); -}; -var server_default = { - renderToString, - renderToReadableStream, - version: import__.default -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - renderToReadableStream, - renderToString, - version -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/utils.js b/mcp-server/node_modules/hono/dist/cjs/jsx/dom/utils.js deleted file mode 100644 index 47d6fb6..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/dom/utils.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -__export(utils_exports, { - setInternalTagFlag: () => setInternalTagFlag -}); -module.exports = __toCommonJS(utils_exports); -var import_constants = require("../constants"); -const setInternalTagFlag = (fn) => { - ; - fn[import_constants.DOM_INTERNAL_TAG] = true; - return fn; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - setInternalTagFlag -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/hooks/index.js b/mcp-server/node_modules/hono/dist/cjs/jsx/hooks/index.js deleted file mode 100644 index 948bd75..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/hooks/index.js +++ /dev/null @@ -1,371 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var hooks_exports = {}; -__export(hooks_exports, { - STASH_EFFECT: () => STASH_EFFECT, - createRef: () => createRef, - forwardRef: () => forwardRef, - startTransition: () => startTransition, - startViewTransition: () => startViewTransition, - use: () => use, - useCallback: () => useCallback, - useDebugValue: () => useDebugValue, - useDeferredValue: () => useDeferredValue, - useEffect: () => useEffect, - useId: () => useId, - useImperativeHandle: () => useImperativeHandle, - useInsertionEffect: () => useInsertionEffect, - useLayoutEffect: () => useLayoutEffect, - useMemo: () => useMemo, - useReducer: () => useReducer, - useRef: () => useRef, - useState: () => useState, - useSyncExternalStore: () => useSyncExternalStore, - useTransition: () => useTransition, - useViewTransition: () => useViewTransition -}); -module.exports = __toCommonJS(hooks_exports); -var import_constants = require("../constants"); -var import_render = require("../dom/render"); -const STASH_SATE = 0; -const STASH_EFFECT = 1; -const STASH_CALLBACK = 2; -const STASH_MEMO = 3; -const STASH_REF = 4; -const resolvedPromiseValueMap = /* @__PURE__ */ new WeakMap(); -const isDepsChanged = (prevDeps, deps) => !prevDeps || !deps || prevDeps.length !== deps.length || deps.some((dep, i) => dep !== prevDeps[i]); -let viewTransitionState = void 0; -const documentStartViewTransition = (cb) => { - if (document?.startViewTransition) { - return document.startViewTransition(cb); - } else { - cb(); - return { finished: Promise.resolve() }; - } -}; -let updateHook = void 0; -const viewTransitionHook = (context, node, cb) => { - const state = [true, false]; - let lastVC = node.vC; - return documentStartViewTransition(() => { - if (lastVC === node.vC) { - viewTransitionState = state; - cb(context); - viewTransitionState = void 0; - lastVC = node.vC; - } - }).finished.then(() => { - if (state[1] && lastVC === node.vC) { - state[0] = false; - viewTransitionState = state; - cb(context); - viewTransitionState = void 0; - } - }); -}; -const startViewTransition = (callback) => { - updateHook = viewTransitionHook; - try { - callback(); - } finally { - updateHook = void 0; - } -}; -const useViewTransition = () => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return [false, () => { - }]; - } - if (viewTransitionState) { - viewTransitionState[1] = true; - } - return [!!viewTransitionState?.[0], startViewTransition]; -}; -const pendingStack = []; -const runCallback = (type, callback) => { - let resolve; - const promise = new Promise((r) => resolve = r); - pendingStack.push([type, promise]); - try { - const res = callback(); - if (res instanceof Promise) { - res.then(resolve, resolve); - } else { - resolve(); - } - } finally { - pendingStack.pop(); - } -}; -const startTransition = (callback) => { - runCallback(1, callback); -}; -const startTransitionHook = (callback) => { - runCallback(2, callback); -}; -const useTransition = () => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return [false, () => { - }]; - } - const [error, setError] = useState(); - const [state, updateState] = useState(); - if (error) { - throw error[0]; - } - const startTransitionLocalHook = useCallback( - (callback) => { - startTransitionHook(() => { - updateState((state2) => !state2); - let res = callback(); - if (res instanceof Promise) { - res = res.catch((e) => { - setError([e]); - }); - } - return res; - }); - }, - [state] - ); - const [context] = buildData; - return [context[0] === 2, startTransitionLocalHook]; -}; -const useDeferredValue = (value, ...rest) => { - const [values, setValues] = useState( - rest.length ? [rest[0], rest[0]] : [value, value] - ); - if (Object.is(values[1], value)) { - return values[1]; - } - pendingStack.push([3, Promise.resolve()]); - updateHook = async (context, _, cb) => { - cb(context); - values[0] = value; - }; - setValues([values[0], value]); - updateHook = void 0; - pendingStack.pop(); - return values[0]; -}; -const useState = (initialState) => { - const resolveInitialState = () => typeof initialState === "function" ? initialState() : initialState; - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return [resolveInitialState(), () => { - }]; - } - const [, node] = buildData; - const stateArray = node[import_constants.DOM_STASH][1][STASH_SATE] ||= []; - const hookIndex = node[import_constants.DOM_STASH][0]++; - return stateArray[hookIndex] ||= [ - resolveInitialState(), - (newState) => { - const localUpdateHook = updateHook; - const stateData = stateArray[hookIndex]; - if (typeof newState === "function") { - newState = newState(stateData[0]); - } - if (!Object.is(newState, stateData[0])) { - stateData[0] = newState; - if (pendingStack.length) { - const [pendingType, pendingPromise] = pendingStack.at(-1); - Promise.all([ - pendingType === 3 ? node : (0, import_render.update)([pendingType, false, localUpdateHook], node), - pendingPromise - ]).then(([node2]) => { - if (!node2 || !(pendingType === 2 || pendingType === 3)) { - return; - } - const lastVC = node2.vC; - const addUpdateTask = () => { - setTimeout(() => { - if (lastVC !== node2.vC) { - return; - } - (0, import_render.update)([pendingType === 3 ? 1 : 0, false, localUpdateHook], node2); - }); - }; - requestAnimationFrame(addUpdateTask); - }); - } else { - (0, import_render.update)([0, false, localUpdateHook], node); - } - } - } - ]; -}; -const useReducer = (reducer, initialArg, init) => { - const handler = useCallback( - (action) => { - setState((state2) => reducer(state2, action)); - }, - [reducer] - ); - const [state, setState] = useState(() => init ? init(initialArg) : initialArg); - return [state, handler]; -}; -const useEffectCommon = (index, effect, deps) => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return; - } - const [, node] = buildData; - const effectDepsArray = node[import_constants.DOM_STASH][1][STASH_EFFECT] ||= []; - const hookIndex = node[import_constants.DOM_STASH][0]++; - const [prevDeps, , prevCleanup] = effectDepsArray[hookIndex] ||= []; - if (isDepsChanged(prevDeps, deps)) { - if (prevCleanup) { - prevCleanup(); - } - const runner = () => { - data[index] = void 0; - data[2] = effect(); - }; - const data = [deps, void 0, void 0, void 0, void 0]; - data[index] = runner; - effectDepsArray[hookIndex] = data; - } -}; -const useEffect = (effect, deps) => useEffectCommon(3, effect, deps); -const useLayoutEffect = (effect, deps) => useEffectCommon(1, effect, deps); -const useInsertionEffect = (effect, deps) => useEffectCommon(4, effect, deps); -const useCallback = (callback, deps) => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return callback; - } - const [, node] = buildData; - const callbackArray = node[import_constants.DOM_STASH][1][STASH_CALLBACK] ||= []; - const hookIndex = node[import_constants.DOM_STASH][0]++; - const prevDeps = callbackArray[hookIndex]; - if (isDepsChanged(prevDeps?.[1], deps)) { - callbackArray[hookIndex] = [callback, deps]; - } else { - callback = callbackArray[hookIndex][0]; - } - return callback; -}; -const useRef = (initialValue) => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return { current: initialValue }; - } - const [, node] = buildData; - const refArray = node[import_constants.DOM_STASH][1][STASH_REF] ||= []; - const hookIndex = node[import_constants.DOM_STASH][0]++; - return refArray[hookIndex] ||= { current: initialValue }; -}; -const use = (promise) => { - const cachedRes = resolvedPromiseValueMap.get(promise); - if (cachedRes) { - if (cachedRes.length === 2) { - throw cachedRes[1]; - } - return cachedRes[0]; - } - promise.then( - (res) => resolvedPromiseValueMap.set(promise, [res]), - (e) => resolvedPromiseValueMap.set(promise, [void 0, e]) - ); - throw promise; -}; -const useMemo = (factory, deps) => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - return factory(); - } - const [, node] = buildData; - const memoArray = node[import_constants.DOM_STASH][1][STASH_MEMO] ||= []; - const hookIndex = node[import_constants.DOM_STASH][0]++; - const prevDeps = memoArray[hookIndex]; - if (isDepsChanged(prevDeps?.[1], deps)) { - memoArray[hookIndex] = [factory(), deps]; - } - return memoArray[hookIndex][0]; -}; -let idCounter = 0; -const useId = () => useMemo(() => `:r${(idCounter++).toString(32)}:`, []); -const useDebugValue = (_value, _formatter) => { -}; -const createRef = () => { - return { current: null }; -}; -const forwardRef = (Component) => { - return (props) => { - const { ref, ...rest } = props; - return Component(rest, ref); - }; -}; -const useImperativeHandle = (ref, createHandle, deps) => { - useEffect(() => { - ref.current = createHandle(); - return () => { - ref.current = null; - }; - }, deps); -}; -const useSyncExternalStore = (subscribe, getSnapshot, getServerSnapshot) => { - const buildData = import_render.buildDataStack.at(-1); - if (!buildData) { - if (!getServerSnapshot) { - throw new Error("getServerSnapshot is required for server side rendering"); - } - return getServerSnapshot(); - } - const [serverSnapshotIsUsed] = useState(!!(buildData[0][4] && getServerSnapshot)); - const [state, setState] = useState( - () => serverSnapshotIsUsed ? getServerSnapshot() : getSnapshot() - ); - useEffect(() => { - if (serverSnapshotIsUsed) { - setState(getSnapshot()); - } - return subscribe(() => { - setState(getSnapshot()); - }); - }, []); - return state; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - STASH_EFFECT, - createRef, - forwardRef, - startTransition, - startViewTransition, - use, - useCallback, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/index.js b/mcp-server/node_modules/hono/dist/cjs/jsx/index.js deleted file mode 100644 index d750bb0..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/index.js +++ /dev/null @@ -1,139 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_exports = {}; -__export(jsx_exports, { - Children: () => import_children.Children, - ErrorBoundary: () => import_components.ErrorBoundary, - Fragment: () => import_base.Fragment, - StrictMode: () => import_base.Fragment, - Suspense: () => import_streaming.Suspense, - cloneElement: () => import_base.cloneElement, - createContext: () => import_context.createContext, - createElement: () => import_base.jsx, - createRef: () => import_hooks2.createRef, - default: () => jsx_default, - forwardRef: () => import_hooks2.forwardRef, - isValidElement: () => import_base.isValidElement, - jsx: () => import_base.jsx, - memo: () => import_base.memo, - startTransition: () => import_hooks2.startTransition, - startViewTransition: () => import_hooks2.startViewTransition, - use: () => import_hooks2.use, - useActionState: () => import_hooks.useActionState, - useCallback: () => import_hooks2.useCallback, - useContext: () => import_context.useContext, - useDebugValue: () => import_hooks2.useDebugValue, - useDeferredValue: () => import_hooks2.useDeferredValue, - useEffect: () => import_hooks2.useEffect, - useId: () => import_hooks2.useId, - useImperativeHandle: () => import_hooks2.useImperativeHandle, - useInsertionEffect: () => import_hooks2.useInsertionEffect, - useLayoutEffect: () => import_hooks2.useLayoutEffect, - useMemo: () => import_hooks2.useMemo, - useOptimistic: () => import_hooks.useOptimistic, - useReducer: () => import_hooks2.useReducer, - useRef: () => import_hooks2.useRef, - useState: () => import_hooks2.useState, - useSyncExternalStore: () => import_hooks2.useSyncExternalStore, - useTransition: () => import_hooks2.useTransition, - useViewTransition: () => import_hooks2.useViewTransition, - version: () => import_base.reactAPICompatVersion -}); -module.exports = __toCommonJS(jsx_exports); -var import_base = require("./base"); -var import_children = require("./children"); -var import_components = require("./components"); -var import_context = require("./context"); -var import_hooks = require("./dom/hooks"); -var import_hooks2 = require("./hooks"); -var import_streaming = require("./streaming"); -var jsx_default = { - version: import_base.reactAPICompatVersion, - memo: import_base.memo, - Fragment: import_base.Fragment, - StrictMode: import_base.Fragment, - isValidElement: import_base.isValidElement, - createElement: import_base.jsx, - cloneElement: import_base.cloneElement, - ErrorBoundary: import_components.ErrorBoundary, - createContext: import_context.createContext, - useContext: import_context.useContext, - useState: import_hooks2.useState, - useEffect: import_hooks2.useEffect, - useRef: import_hooks2.useRef, - useCallback: import_hooks2.useCallback, - useReducer: import_hooks2.useReducer, - useId: import_hooks2.useId, - useDebugValue: import_hooks2.useDebugValue, - use: import_hooks2.use, - startTransition: import_hooks2.startTransition, - useTransition: import_hooks2.useTransition, - useDeferredValue: import_hooks2.useDeferredValue, - startViewTransition: import_hooks2.startViewTransition, - useViewTransition: import_hooks2.useViewTransition, - useMemo: import_hooks2.useMemo, - useLayoutEffect: import_hooks2.useLayoutEffect, - useInsertionEffect: import_hooks2.useInsertionEffect, - createRef: import_hooks2.createRef, - forwardRef: import_hooks2.forwardRef, - useImperativeHandle: import_hooks2.useImperativeHandle, - useSyncExternalStore: import_hooks2.useSyncExternalStore, - useActionState: import_hooks.useActionState, - useOptimistic: import_hooks.useOptimistic, - Suspense: import_streaming.Suspense, - Children: import_children.Children -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Children, - ErrorBoundary, - Fragment, - StrictMode, - Suspense, - cloneElement, - createContext, - createElement, - createRef, - forwardRef, - isValidElement, - jsx, - memo, - startTransition, - startViewTransition, - use, - useActionState, - useCallback, - useContext, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useOptimistic, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition, - version -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js b/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js deleted file mode 100644 index c01838f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var common_exports = {}; -__export(common_exports, { - dataPrecedenceAttr: () => dataPrecedenceAttr, - deDupeKeyMap: () => deDupeKeyMap, - domRenderers: () => domRenderers -}); -module.exports = __toCommonJS(common_exports); -const deDupeKeyMap = { - title: [], - script: ["src"], - style: ["data-href"], - link: ["href"], - meta: ["name", "httpEquiv", "charset", "itemProp"] -}; -const domRenderers = {}; -const dataPrecedenceAttr = "data-precedence"; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - dataPrecedenceAttr, - deDupeKeyMap, - domRenderers -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js b/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js deleted file mode 100644 index a945c46..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var components_exports = {}; -__export(components_exports, { - button: () => button, - form: () => form, - input: () => input, - link: () => link, - meta: () => meta, - script: () => script, - style: () => style, - title: () => title -}); -module.exports = __toCommonJS(components_exports); -var import_html = require("../../helper/html"); -var import_base = require("../base"); -var import_children = require("../children"); -var import_constants = require("../constants"); -var import_context = require("../context"); -var import_common = require("./common"); -const metaTagMap = /* @__PURE__ */ new WeakMap(); -const insertIntoHead = (tagName, tag, props, precedence) => ({ buffer, context }) => { - if (!buffer) { - return; - } - const map = metaTagMap.get(context) || {}; - metaTagMap.set(context, map); - const tags = map[tagName] ||= []; - let duped = false; - const deDupeKeys = import_common.deDupeKeyMap[tagName]; - if (deDupeKeys.length > 0) { - LOOP: for (const [, tagProps] of tags) { - for (const key of deDupeKeys) { - if ((tagProps?.[key] ?? null) === props?.[key]) { - duped = true; - break LOOP; - } - } - } - } - if (duped) { - buffer[0] = buffer[0].replaceAll(tag, ""); - } else if (deDupeKeys.length > 0) { - tags.push([tag, props, precedence]); - } else { - tags.unshift([tag, props, precedence]); - } - if (buffer[0].indexOf("") !== -1) { - let insertTags; - if (precedence === void 0) { - insertTags = tags.map(([tag2]) => tag2); - } else { - const precedences = []; - insertTags = tags.map(([tag2, , precedence2]) => { - let order = precedences.indexOf(precedence2); - if (order === -1) { - precedences.push(precedence2); - order = precedences.length - 1; - } - return [tag2, order]; - }).sort((a, b) => a[1] - b[1]).map(([tag2]) => tag2); - } - insertTags.forEach((tag2) => { - buffer[0] = buffer[0].replaceAll(tag2, ""); - }); - buffer[0] = buffer[0].replace(/(?=<\/head>)/, insertTags.join("")); - } -}; -const returnWithoutSpecialBehavior = (tag, children, props) => (0, import_html.raw)(new import_base.JSXNode(tag, props, (0, import_children.toArray)(children ?? [])).toString()); -const documentMetadataTag = (tag, children, props, sort) => { - if ("itemProp" in props) { - return returnWithoutSpecialBehavior(tag, children, props); - } - let { precedence, blocking, ...restProps } = props; - precedence = sort ? precedence ?? "" : void 0; - if (sort) { - restProps[import_common.dataPrecedenceAttr] = precedence; - } - const string = new import_base.JSXNode(tag, restProps, (0, import_children.toArray)(children || [])).toString(); - if (string instanceof Promise) { - return string.then( - (resString) => (0, import_html.raw)(string, [ - ...resString.callbacks || [], - insertIntoHead(tag, resString, restProps, precedence) - ]) - ); - } else { - return (0, import_html.raw)(string, [insertIntoHead(tag, string, restProps, precedence)]); - } -}; -const title = ({ children, ...props }) => { - const nameSpaceContext = (0, import_base.getNameSpaceContext)(); - if (nameSpaceContext) { - const context = (0, import_context.useContext)(nameSpaceContext); - if (context === "svg" || context === "head") { - return new import_base.JSXNode( - "title", - props, - (0, import_children.toArray)(children ?? []) - ); - } - } - return documentMetadataTag("title", children, props, false); -}; -const script = ({ - children, - ...props -}) => { - const nameSpaceContext = (0, import_base.getNameSpaceContext)(); - if (["src", "async"].some((k) => !props[k]) || nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "head") { - return returnWithoutSpecialBehavior("script", children, props); - } - return documentMetadataTag("script", children, props, false); -}; -const style = ({ - children, - ...props -}) => { - if (!["href", "precedence"].every((k) => k in props)) { - return returnWithoutSpecialBehavior("style", children, props); - } - props["data-href"] = props.href; - delete props.href; - return documentMetadataTag("style", children, props, true); -}; -const link = ({ children, ...props }) => { - if (["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) { - return returnWithoutSpecialBehavior("link", children, props); - } - return documentMetadataTag("link", children, props, "precedence" in props); -}; -const meta = ({ children, ...props }) => { - const nameSpaceContext = (0, import_base.getNameSpaceContext)(); - if (nameSpaceContext && (0, import_context.useContext)(nameSpaceContext) === "head") { - return returnWithoutSpecialBehavior("meta", children, props); - } - return documentMetadataTag("meta", children, props, false); -}; -const newJSXNode = (tag, { children, ...props }) => ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - new import_base.JSXNode(tag, props, (0, import_children.toArray)(children ?? [])) -); -const form = (props) => { - if (typeof props.action === "function") { - props.action = import_constants.PERMALINK in props.action ? props.action[import_constants.PERMALINK] : void 0; - } - return newJSXNode("form", props); -}; -const formActionableElement = (tag, props) => { - if (typeof props.formAction === "function") { - props.formAction = import_constants.PERMALINK in props.formAction ? props.formAction[import_constants.PERMALINK] : void 0; - } - return newJSXNode(tag, props); -}; -const input = (props) => formActionableElement("input", props); -const button = (props) => formActionableElement("button", props); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - button, - form, - input, - link, - meta, - script, - style, - title -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js b/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js deleted file mode 100644 index c0053b0..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var intrinsic_elements_exports = {}; -module.exports = __toCommonJS(intrinsic_elements_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js b/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js deleted file mode 100644 index a5ee5ef..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_dev_runtime_exports = {}; -__export(jsx_dev_runtime_exports, { - Fragment: () => import_base2.Fragment, - jsxDEV: () => jsxDEV -}); -module.exports = __toCommonJS(jsx_dev_runtime_exports); -var import_base = require("./base"); -var import_base2 = require("./base"); -function jsxDEV(tag, props, key) { - let node; - if (!props || !("children" in props)) { - node = (0, import_base.jsxFn)(tag, props, []); - } else { - const children = props.children; - node = Array.isArray(children) ? (0, import_base.jsxFn)(tag, props, children) : (0, import_base.jsxFn)(tag, props, [children]); - } - node.key = key; - return node; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Fragment, - jsxDEV -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-runtime.js b/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-runtime.js deleted file mode 100644 index c1f4306..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_runtime_exports = {}; -__export(jsx_runtime_exports, { - Fragment: () => import_jsx_dev_runtime.Fragment, - jsx: () => import_jsx_dev_runtime.jsxDEV, - jsxAttr: () => jsxAttr, - jsxEscape: () => jsxEscape, - jsxTemplate: () => import_html.html, - jsxs: () => import_jsx_dev_runtime2.jsxDEV -}); -module.exports = __toCommonJS(jsx_runtime_exports); -var import_jsx_dev_runtime = require("./jsx-dev-runtime"); -var import_jsx_dev_runtime2 = require("./jsx-dev-runtime"); -var import_html = require("../helper/html"); -var import_html2 = require("../utils/html"); -var import_utils = require("./utils"); -const jsxAttr = (key, v) => { - const buffer = [`${key}="`]; - if (key === "style" && typeof v === "object") { - let styleStr = ""; - (0, import_utils.styleObjectForEach)(v, (property, value) => { - if (value != null) { - styleStr += `${styleStr ? ";" : ""}${property}:${value}`; - } - }); - (0, import_html2.escapeToBuffer)(styleStr, buffer); - buffer[0] += '"'; - } else if (typeof v === "string") { - (0, import_html2.escapeToBuffer)(v, buffer); - buffer[0] += '"'; - } else if (v === null || v === void 0) { - return (0, import_html.raw)(""); - } else if (typeof v === "number" || v.isEscaped) { - buffer[0] += `${v}"`; - } else if (v instanceof Promise) { - buffer.unshift('"', v); - } else { - (0, import_html2.escapeToBuffer)(v.toString(), buffer); - buffer[0] += '"'; - } - return buffer.length === 1 ? (0, import_html.raw)(buffer[0]) : (0, import_html2.stringBufferToString)(buffer, void 0); -}; -const jsxEscape = (value) => value; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Fragment, - jsx, - jsxAttr, - jsxEscape, - jsxTemplate, - jsxs -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/streaming.js b/mcp-server/node_modules/hono/dist/cjs/jsx/streaming.js deleted file mode 100644 index fe1ecaf..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/streaming.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var streaming_exports = {}; -__export(streaming_exports, { - StreamingContext: () => StreamingContext, - Suspense: () => Suspense, - renderToReadableStream: () => renderToReadableStream -}); -module.exports = __toCommonJS(streaming_exports); -var import_html = require("../helper/html"); -var import_html2 = require("../utils/html"); -var import_base = require("./base"); -var import_components = require("./components"); -var import_constants = require("./constants"); -var import_context = require("./context"); -var import_components2 = require("./dom/components"); -var import_render = require("./dom/render"); -const StreamingContext = (0, import_context.createContext)(null); -let suspenseCounter = 0; -const Suspense = async ({ - children, - fallback -}) => { - if (!Array.isArray(children)) { - children = [children]; - } - const nonce = (0, import_context.useContext)(StreamingContext)?.scriptNonce; - let resArray = []; - const stackNode = { [import_constants.DOM_STASH]: [0, []] }; - const popNodeStack = (value) => { - import_render.buildDataStack.pop(); - return value; - }; - try { - stackNode[import_constants.DOM_STASH][0] = 0; - import_render.buildDataStack.push([[], stackNode]); - resArray = children.map( - (c) => c == null || typeof c === "boolean" ? "" : c.toString() - ); - } catch (e) { - if (e instanceof Promise) { - resArray = [ - e.then(() => { - stackNode[import_constants.DOM_STASH][0] = 0; - import_render.buildDataStack.push([[], stackNode]); - return (0, import_components.childrenToString)(children).then(popNodeStack); - }) - ]; - } else { - throw e; - } - } finally { - popNodeStack(); - } - if (resArray.some((res) => res instanceof Promise)) { - const index = suspenseCounter++; - const fallbackStr = await fallback.toString(); - return (0, import_html.raw)(`${fallbackStr}`, [ - ...fallbackStr.callbacks || [], - ({ phase, buffer, context }) => { - if (phase === import_html2.HtmlEscapedCallbackPhase.BeforeStream) { - return; - } - return Promise.all(resArray).then(async (htmlArray) => { - htmlArray = htmlArray.flat(); - const content = htmlArray.join(""); - if (buffer) { - buffer[0] = buffer[0].replace( - new RegExp(`.*?`), - content - ); - } - let html = buffer ? "" : ` -((d,c,n) => { -c=d.currentScript.previousSibling -d=d.getElementById('H:${index}') -if(!d)return -do{n=d.nextSibling;n.remove()}while(n.nodeType!=8||n.nodeValue!='/$') -d.replaceWith(c.content) -})(document) -`; - const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat(); - if (!callbacks.length) { - return html; - } - if (phase === import_html2.HtmlEscapedCallbackPhase.Stream) { - html = await (0, import_html2.resolveCallback)(html, import_html2.HtmlEscapedCallbackPhase.BeforeStream, true, context); - } - return (0, import_html.raw)(html, callbacks); - }); - } - ]); - } else { - return (0, import_html.raw)(resArray.join("")); - } -}; -Suspense[import_constants.DOM_RENDERER] = import_components2.Suspense; -const textEncoder = new TextEncoder(); -const renderToReadableStream = (content, onError = console.trace) => { - const reader = new ReadableStream({ - async start(controller) { - try { - if (content instanceof import_base.JSXNode) { - content = content.toString(); - } - const context = typeof content === "object" ? content : {}; - const resolved = await (0, import_html2.resolveCallback)( - content, - import_html2.HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - controller.enqueue(textEncoder.encode(resolved)); - let resolvedCount = 0; - const callbacks = []; - const then = (promise) => { - callbacks.push( - promise.catch((err) => { - console.log(err); - onError(err); - return ""; - }).then(async (res) => { - res = await (0, import_html2.resolveCallback)( - res, - import_html2.HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - res.callbacks?.map((c) => c({ phase: import_html2.HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then); - resolvedCount++; - controller.enqueue(textEncoder.encode(res)); - }) - ); - }; - resolved.callbacks?.map((c) => c({ phase: import_html2.HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then); - while (resolvedCount !== callbacks.length) { - await Promise.all(callbacks); - } - } catch (e) { - onError(e); - } - controller.close(); - } - }); - return reader; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - StreamingContext, - Suspense, - renderToReadableStream -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/types.js b/mcp-server/node_modules/hono/dist/cjs/jsx/types.js deleted file mode 100644 index 43ae536..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/types.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var types_exports = {}; -module.exports = __toCommonJS(types_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/jsx/utils.js b/mcp-server/node_modules/hono/dist/cjs/jsx/utils.js deleted file mode 100644 index 7dcfe0d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/jsx/utils.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -__export(utils_exports, { - normalizeIntrinsicElementKey: () => normalizeIntrinsicElementKey, - styleObjectForEach: () => styleObjectForEach -}); -module.exports = __toCommonJS(utils_exports); -const normalizeElementKeyMap = /* @__PURE__ */ new Map([ - ["className", "class"], - ["htmlFor", "for"], - ["crossOrigin", "crossorigin"], - ["httpEquiv", "http-equiv"], - ["itemProp", "itemprop"], - ["fetchPriority", "fetchpriority"], - ["noModule", "nomodule"], - ["formAction", "formaction"] -]); -const normalizeIntrinsicElementKey = (key) => normalizeElementKeyMap.get(key) || key; -const styleObjectForEach = (style, fn) => { - for (const [k, v] of Object.entries(style)) { - const key = k[0] === "-" || !/[A-Z]/.test(k) ? k : k.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`); - fn( - key, - v == null ? null : typeof v === "number" ? !key.match( - /^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/ - ) ? `${v}px` : `${v}` : v - ); - } -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - normalizeIntrinsicElementKey, - styleObjectForEach -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/basic-auth/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/basic-auth/index.js deleted file mode 100644 index 8560493..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var basic_auth_exports = {}; -__export(basic_auth_exports, { - basicAuth: () => basicAuth -}); -module.exports = __toCommonJS(basic_auth_exports); -var import_http_exception = require("../../http-exception"); -var import_basic_auth = require("../../utils/basic-auth"); -var import_buffer = require("../../utils/buffer"); -const basicAuth = (options, ...users) => { - const usernamePasswordInOptions = "username" in options && "password" in options; - const verifyUserInOptions = "verifyUser" in options; - if (!(usernamePasswordInOptions || verifyUserInOptions)) { - throw new Error( - 'basic auth middleware requires options for "username and password" or "verifyUser"' - ); - } - if (!options.realm) { - options.realm = "Secure Area"; - } - if (!options.invalidUserMessage) { - options.invalidUserMessage = "Unauthorized"; - } - if (usernamePasswordInOptions) { - users.unshift({ username: options.username, password: options.password }); - } - return async function basicAuth2(ctx, next) { - const requestUser = (0, import_basic_auth.auth)(ctx.req.raw); - if (requestUser) { - if (verifyUserInOptions) { - if (await options.verifyUser(requestUser.username, requestUser.password, ctx)) { - await next(); - return; - } - } else { - for (const user of users) { - const [usernameEqual, passwordEqual] = await Promise.all([ - (0, import_buffer.timingSafeEqual)(user.username, requestUser.username, options.hashFunction), - (0, import_buffer.timingSafeEqual)(user.password, requestUser.password, options.hashFunction) - ]); - if (usernameEqual && passwordEqual) { - await next(); - return; - } - } - } - } - const status = 401; - const headers = { - "WWW-Authenticate": 'Basic realm="' + options.realm?.replace(/"/g, '\\"') + '"' - }; - const responseMessage = typeof options.invalidUserMessage === "function" ? await options.invalidUserMessage(ctx) : options.invalidUserMessage; - const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), { - status, - headers: { - ...headers, - "content-type": "application/json" - } - }); - throw new import_http_exception.HTTPException(status, { res }); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - basicAuth -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js deleted file mode 100644 index 58d0c2b..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var bearer_auth_exports = {}; -__export(bearer_auth_exports, { - bearerAuth: () => bearerAuth -}); -module.exports = __toCommonJS(bearer_auth_exports); -var import_http_exception = require("../../http-exception"); -var import_buffer = require("../../utils/buffer"); -const TOKEN_STRINGS = "[A-Za-z0-9._~+/-]+=*"; -const PREFIX = "Bearer"; -const HEADER = "Authorization"; -const bearerAuth = (options) => { - if (!("token" in options || "verifyToken" in options)) { - throw new Error('bearer auth middleware requires options for "token"'); - } - if (!options.realm) { - options.realm = ""; - } - if (options.prefix === void 0) { - options.prefix = PREFIX; - } - const realm = options.realm?.replace(/"/g, '\\"'); - const prefixRegexStr = options.prefix === "" ? "" : `${options.prefix} +`; - const regexp = new RegExp(`^${prefixRegexStr}(${TOKEN_STRINGS}) *$`); - const wwwAuthenticatePrefix = options.prefix === "" ? "" : `${options.prefix} `; - const throwHTTPException = async (c, status, wwwAuthenticateHeader, messageOption) => { - const wwwAuthenticateHeaderValue = typeof wwwAuthenticateHeader === "function" ? await wwwAuthenticateHeader(c) : wwwAuthenticateHeader; - const headers = { - "WWW-Authenticate": typeof wwwAuthenticateHeaderValue === "string" ? wwwAuthenticateHeaderValue : `${wwwAuthenticatePrefix}${Object.entries(wwwAuthenticateHeaderValue).map(([key, value]) => `${key}="${value}"`).join(",")}` - }; - const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption; - const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), { - status, - headers: { - ...headers, - "content-type": "application/json" - } - }); - throw new import_http_exception.HTTPException(status, { res }); - }; - return async function bearerAuth2(c, next) { - const headerToken = c.req.header(options.headerName || HEADER); - if (!headerToken) { - await throwHTTPException( - c, - 401, - options.noAuthenticationHeader?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}realm="${realm}"`, - options.noAuthenticationHeader?.message || options.noAuthenticationHeaderMessage || "Unauthorized" - ); - } else { - const match = regexp.exec(headerToken); - if (!match) { - await throwHTTPException( - c, - 400, - options.invalidAuthenticationHeader?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}error="invalid_request"`, - options.invalidAuthenticationHeader?.message || options.invalidAuthenticationHeaderMessage || "Bad Request" - ); - } else { - let equal = false; - if ("verifyToken" in options) { - equal = await options.verifyToken(match[1], c); - } else if (typeof options.token === "string") { - equal = await (0, import_buffer.timingSafeEqual)(options.token, match[1], options.hashFunction); - } else if (Array.isArray(options.token) && options.token.length > 0) { - for (const token of options.token) { - if (await (0, import_buffer.timingSafeEqual)(token, match[1], options.hashFunction)) { - equal = true; - break; - } - } - } - if (!equal) { - await throwHTTPException( - c, - 401, - options.invalidToken?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}error="invalid_token"`, - options.invalidToken?.message || options.invalidTokenMessage || "Unauthorized" - ); - } - } - } - await next(); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - bearerAuth -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/body-limit/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/body-limit/index.js deleted file mode 100644 index 6d65ab6..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/body-limit/index.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var body_limit_exports = {}; -__export(body_limit_exports, { - bodyLimit: () => bodyLimit -}); -module.exports = __toCommonJS(body_limit_exports); -var import_http_exception = require("../../http-exception"); -const ERROR_MESSAGE = "Payload Too Large"; -class BodyLimitError extends Error { - constructor(message) { - super(message); - this.name = "BodyLimitError"; - } -} -const bodyLimit = (options) => { - const onError = options.onError || (() => { - const res = new Response(ERROR_MESSAGE, { - status: 413 - }); - throw new import_http_exception.HTTPException(413, { res }); - }); - const maxSize = options.maxSize; - return async function bodyLimit2(c, next) { - if (!c.req.raw.body) { - return next(); - } - const hasTransferEncoding = c.req.raw.headers.has("transfer-encoding"); - const hasContentLength = c.req.raw.headers.has("content-length"); - if (hasTransferEncoding && hasContentLength) { - } - if (hasContentLength && !hasTransferEncoding) { - const contentLength = parseInt(c.req.raw.headers.get("content-length") || "0", 10); - return contentLength > maxSize ? onError(c) : next(); - } - let size = 0; - const rawReader = c.req.raw.body.getReader(); - const reader = new ReadableStream({ - async start(controller) { - try { - for (; ; ) { - const { done, value } = await rawReader.read(); - if (done) { - break; - } - size += value.length; - if (size > maxSize) { - controller.error(new BodyLimitError(ERROR_MESSAGE)); - break; - } - controller.enqueue(value); - } - } finally { - controller.close(); - } - } - }); - const requestInit = { body: reader, duplex: "half" }; - c.req.raw = new Request(c.req.raw, requestInit); - await next(); - if (c.error instanceof BodyLimitError) { - c.res = await onError(c); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - bodyLimit -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/cache/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/cache/index.js deleted file mode 100644 index 1aba622..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/cache/index.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var cache_exports = {}; -__export(cache_exports, { - cache: () => cache -}); -module.exports = __toCommonJS(cache_exports); -const defaultCacheableStatusCodes = [200]; -const shouldSkipCache = (res) => { - const vary = res.headers.get("Vary"); - return vary && vary.includes("*"); -}; -const cache = (options) => { - if (!globalThis.caches) { - console.log("Cache Middleware is not enabled because caches is not defined."); - return async (_c, next) => await next(); - } - if (options.wait === void 0) { - options.wait = false; - } - const cacheControlDirectives = options.cacheControl?.split(",").map((directive) => directive.toLowerCase()); - const varyDirectives = Array.isArray(options.vary) ? options.vary : options.vary?.split(",").map((directive) => directive.trim()); - if (options.vary?.includes("*")) { - throw new Error( - 'Middleware vary configuration cannot include "*", as it disallows effective caching.' - ); - } - const cacheableStatusCodes = new Set( - options.cacheableStatusCodes ?? defaultCacheableStatusCodes - ); - const addHeader = (c) => { - if (cacheControlDirectives) { - const existingDirectives = c.res.headers.get("Cache-Control")?.split(",").map((d) => d.trim().split("=", 1)[0]) ?? []; - for (const directive of cacheControlDirectives) { - let [name, value] = directive.trim().split("=", 2); - name = name.toLowerCase(); - if (!existingDirectives.includes(name)) { - c.header("Cache-Control", `${name}${value ? `=${value}` : ""}`, { append: true }); - } - } - } - if (varyDirectives) { - const existingDirectives = c.res.headers.get("Vary")?.split(",").map((d) => d.trim()) ?? []; - const vary = Array.from( - new Set( - [...existingDirectives, ...varyDirectives].map((directive) => directive.toLowerCase()) - ) - ).sort(); - if (vary.includes("*")) { - c.header("Vary", "*"); - } else { - c.header("Vary", vary.join(", ")); - } - } - }; - return async function cache2(c, next) { - let key = c.req.url; - if (options.keyGenerator) { - key = await options.keyGenerator(c); - } - const cacheName = typeof options.cacheName === "function" ? await options.cacheName(c) : options.cacheName; - const cache3 = await caches.open(cacheName); - const response = await cache3.match(key); - if (response) { - return new Response(response.body, response); - } - await next(); - if (!cacheableStatusCodes.has(c.res.status)) { - return; - } - addHeader(c); - if (shouldSkipCache(c.res)) { - return; - } - const res = c.res.clone(); - if (options.wait) { - await cache3.put(key, res); - } else { - c.executionCtx.waitUntil(cache3.put(key, res)); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - cache -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/combine/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/combine/index.js deleted file mode 100644 index 2889137..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/combine/index.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except2, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except2) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var combine_exports = {}; -__export(combine_exports, { - every: () => every, - except: () => except, - some: () => some -}); -module.exports = __toCommonJS(combine_exports); -var import_compose = require("../../compose"); -var import_router = require("../../router"); -var import_trie_router = require("../../router/trie-router"); -const some = (...middleware) => { - return async function some2(c, next) { - let isNextCalled = false; - const wrappedNext = () => { - isNextCalled = true; - return next(); - }; - let lastError; - for (const handler of middleware) { - try { - const result = await handler(c, wrappedNext); - if (result === true && !c.finalized) { - await wrappedNext(); - } else if (result === false) { - lastError = new Error("No successful middleware found"); - continue; - } - lastError = void 0; - break; - } catch (error) { - lastError = error; - if (isNextCalled) { - break; - } - } - } - if (lastError) { - throw lastError; - } - }; -}; -const every = (...middleware) => { - return async function every2(c, next) { - const currentRouteIndex = c.req.routeIndex; - await (0, import_compose.compose)( - middleware.map((m) => [ - [ - async (c2, next2) => { - c2.req.routeIndex = currentRouteIndex; - const res = await m(c2, next2); - if (res === false) { - throw new Error("Unmet condition"); - } - return res; - } - ] - ]) - )(c, next); - }; -}; -const except = (condition, ...middleware) => { - let router = void 0; - const conditions = (Array.isArray(condition) ? condition : [condition]).map((condition2) => { - if (typeof condition2 === "string") { - router ||= new import_trie_router.TrieRouter(); - router.add(import_router.METHOD_NAME_ALL, condition2, true); - } else { - return condition2; - } - }).filter(Boolean); - if (router) { - conditions.unshift((c) => !!router?.match(import_router.METHOD_NAME_ALL, c.req.path)?.[0]?.[0]?.[0]); - } - const handler = some((c) => conditions.some((cond) => cond(c)), every(...middleware)); - return async function except2(c, next) { - await handler(c, next); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - every, - except, - some -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/compress/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/compress/index.js deleted file mode 100644 index 3a29b46..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/compress/index.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var compress_exports = {}; -__export(compress_exports, { - compress: () => compress -}); -module.exports = __toCommonJS(compress_exports); -var import_compress = require("../../utils/compress"); -const ENCODING_TYPES = ["gzip", "deflate"]; -const cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/i; -const compress = (options) => { - const threshold = options?.threshold ?? 1024; - return async function compress2(ctx, next) { - await next(); - const contentLength = ctx.res.headers.get("Content-Length"); - if (ctx.res.headers.has("Content-Encoding") || // already encoded - ctx.res.headers.has("Transfer-Encoding") || // already encoded or chunked - ctx.req.method === "HEAD" || // HEAD request - contentLength && Number(contentLength) < threshold || // content-length below threshold - !shouldCompress(ctx.res) || // not compressible type - !shouldTransform(ctx.res)) { - return; - } - const accepted = ctx.req.header("Accept-Encoding"); - const encoding = options?.encoding ?? ENCODING_TYPES.find((encoding2) => accepted?.includes(encoding2)); - if (!encoding || !ctx.res.body) { - return; - } - const stream = new CompressionStream(encoding); - ctx.res = new Response(ctx.res.body.pipeThrough(stream), ctx.res); - ctx.res.headers.delete("Content-Length"); - ctx.res.headers.set("Content-Encoding", encoding); - }; -}; -const shouldCompress = (res) => { - const type = res.headers.get("Content-Type"); - return type && import_compress.COMPRESSIBLE_CONTENT_TYPE_REGEX.test(type); -}; -const shouldTransform = (res) => { - const cacheControl = res.headers.get("Cache-Control"); - return !cacheControl || !cacheControlNoTransformRegExp.test(cacheControl); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - compress -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/context-storage/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/context-storage/index.js deleted file mode 100644 index d1370ef..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/context-storage/index.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var context_storage_exports = {}; -__export(context_storage_exports, { - contextStorage: () => contextStorage, - getContext: () => getContext, - tryGetContext: () => tryGetContext -}); -module.exports = __toCommonJS(context_storage_exports); -var import_node_async_hooks = require("node:async_hooks"); -const asyncLocalStorage = new import_node_async_hooks.AsyncLocalStorage(); -const contextStorage = () => { - return async function contextStorage2(c, next) { - await asyncLocalStorage.run(c, next); - }; -}; -const tryGetContext = () => { - return asyncLocalStorage.getStore(); -}; -const getContext = () => { - const context = tryGetContext(); - if (!context) { - throw new Error("Context is not available"); - } - return context; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - contextStorage, - getContext, - tryGetContext -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/cors/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/cors/index.js deleted file mode 100644 index db07713..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/cors/index.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var cors_exports = {}; -__export(cors_exports, { - cors: () => cors -}); -module.exports = __toCommonJS(cors_exports); -const cors = (options) => { - const defaults = { - origin: "*", - allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"], - allowHeaders: [], - exposeHeaders: [] - }; - const opts = { - ...defaults, - ...options - }; - const findAllowOrigin = ((optsOrigin) => { - if (typeof optsOrigin === "string") { - if (optsOrigin === "*") { - return () => optsOrigin; - } else { - return (origin) => optsOrigin === origin ? origin : null; - } - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin) ? origin : null; - } - })(opts.origin); - const findAllowMethods = ((optsAllowMethods) => { - if (typeof optsAllowMethods === "function") { - return optsAllowMethods; - } else if (Array.isArray(optsAllowMethods)) { - return () => optsAllowMethods; - } else { - return () => []; - } - })(opts.allowMethods); - return async function cors2(c, next) { - function set(key, value) { - c.res.headers.set(key, value); - } - const allowOrigin = await findAllowOrigin(c.req.header("origin") || "", c); - if (allowOrigin) { - set("Access-Control-Allow-Origin", allowOrigin); - } - if (opts.credentials) { - set("Access-Control-Allow-Credentials", "true"); - } - if (opts.exposeHeaders?.length) { - set("Access-Control-Expose-Headers", opts.exposeHeaders.join(",")); - } - if (c.req.method === "OPTIONS") { - if (opts.origin !== "*") { - set("Vary", "Origin"); - } - if (opts.maxAge != null) { - set("Access-Control-Max-Age", opts.maxAge.toString()); - } - const allowMethods = await findAllowMethods(c.req.header("origin") || "", c); - if (allowMethods.length) { - set("Access-Control-Allow-Methods", allowMethods.join(",")); - } - let headers = opts.allowHeaders; - if (!headers?.length) { - const requestHeaders = c.req.header("Access-Control-Request-Headers"); - if (requestHeaders) { - headers = requestHeaders.split(/\s*,\s*/); - } - } - if (headers?.length) { - set("Access-Control-Allow-Headers", headers.join(",")); - c.res.headers.append("Vary", "Access-Control-Request-Headers"); - } - c.res.headers.delete("Content-Length"); - c.res.headers.delete("Content-Type"); - return new Response(null, { - headers: c.res.headers, - status: 204, - statusText: "No Content" - }); - } - await next(); - if (opts.origin !== "*") { - c.header("Vary", "Origin", { append: true }); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - cors -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/csrf/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/csrf/index.js deleted file mode 100644 index 9434a5f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/csrf/index.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var csrf_exports = {}; -__export(csrf_exports, { - csrf: () => csrf -}); -module.exports = __toCommonJS(csrf_exports); -var import_http_exception = require("../../http-exception"); -const secFetchSiteValues = ["same-origin", "same-site", "none", "cross-site"]; -const isSecFetchSite = (value) => secFetchSiteValues.includes(value); -const isSafeMethodRe = /^(GET|HEAD)$/; -const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i; -const csrf = (options) => { - const originHandler = ((optsOrigin) => { - if (!optsOrigin) { - return (origin, c) => origin === new URL(c.req.url).origin; - } else if (typeof optsOrigin === "string") { - return (origin) => origin === optsOrigin; - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin); - } - })(options?.origin); - const isAllowedOrigin = async (origin, c) => { - if (origin === void 0) { - return false; - } - return await originHandler(origin, c); - }; - const secFetchSiteHandler = ((optsSecFetchSite) => { - if (!optsSecFetchSite) { - return (secFetchSite) => secFetchSite === "same-origin"; - } else if (typeof optsSecFetchSite === "string") { - return (secFetchSite) => secFetchSite === optsSecFetchSite; - } else if (typeof optsSecFetchSite === "function") { - return optsSecFetchSite; - } else { - return (secFetchSite) => optsSecFetchSite.includes(secFetchSite); - } - })(options?.secFetchSite); - const isAllowedSecFetchSite = async (secFetchSite, c) => { - if (secFetchSite === void 0) { - return false; - } - if (!isSecFetchSite(secFetchSite)) { - return false; - } - return await secFetchSiteHandler(secFetchSite, c); - }; - return async function csrf2(c, next) { - if (!isSafeMethodRe.test(c.req.method) && isRequestedByFormElementRe.test(c.req.header("content-type") || "text/plain") && !await isAllowedSecFetchSite(c.req.header("sec-fetch-site"), c) && !await isAllowedOrigin(c.req.header("origin"), c)) { - const res = new Response("Forbidden", { status: 403 }); - throw new import_http_exception.HTTPException(403, { res }); - } - await next(); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - csrf -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/etag/digest.js b/mcp-server/node_modules/hono/dist/cjs/middleware/etag/digest.js deleted file mode 100644 index cbfde28..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/etag/digest.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var digest_exports = {}; -__export(digest_exports, { - generateDigest: () => generateDigest -}); -module.exports = __toCommonJS(digest_exports); -const mergeBuffers = (buffer1, buffer2) => { - if (!buffer1) { - return buffer2; - } - const merged = new Uint8Array( - new ArrayBuffer(buffer1.byteLength + buffer2.byteLength) - ); - merged.set(new Uint8Array(buffer1), 0); - merged.set(buffer2, buffer1.byteLength); - return merged; -}; -const generateDigest = async (stream, generator) => { - if (!stream) { - return null; - } - let result = void 0; - const reader = stream.getReader(); - for (; ; ) { - const { value, done } = await reader.read(); - if (done) { - break; - } - result = await generator(mergeBuffers(result, value)); - } - if (!result) { - return null; - } - return Array.prototype.map.call(new Uint8Array(result), (x) => x.toString(16).padStart(2, "0")).join(""); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - generateDigest -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/etag/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/etag/index.js deleted file mode 100644 index e65652b..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/etag/index.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var etag_exports = {}; -__export(etag_exports, { - RETAINED_304_HEADERS: () => RETAINED_304_HEADERS, - etag: () => etag -}); -module.exports = __toCommonJS(etag_exports); -var import_digest = require("./digest"); -const RETAINED_304_HEADERS = [ - "cache-control", - "content-location", - "date", - "etag", - "expires", - "vary" -]; -const stripWeak = (tag) => tag.replace(/^W\//, ""); -function etagMatches(etag2, ifNoneMatch) { - return ifNoneMatch != null && ifNoneMatch.split(/,\s*/).some((t) => stripWeak(t) === stripWeak(etag2)); -} -function initializeGenerator(generator) { - if (!generator) { - if (crypto && crypto.subtle) { - generator = (body) => crypto.subtle.digest( - { - name: "SHA-1" - }, - body - ); - } - } - return generator; -} -const etag = (options) => { - const retainedHeaders = options?.retainedHeaders ?? RETAINED_304_HEADERS; - const weak = options?.weak ?? false; - const generator = initializeGenerator(options?.generateDigest); - return async function etag2(c, next) { - const ifNoneMatch = c.req.header("If-None-Match") ?? null; - await next(); - const res = c.res; - let etag3 = res.headers.get("ETag"); - if (!etag3) { - if (!generator) { - return; - } - const hash = await (0, import_digest.generateDigest)( - // This type casing avoids the type error for `deno publish` - res.clone().body, - generator - ); - if (hash === null) { - return; - } - etag3 = weak ? `W/"${hash}"` : `"${hash}"`; - } - if (etagMatches(etag3, ifNoneMatch)) { - c.res = new Response(null, { - status: 304, - statusText: "Not Modified", - headers: { - ETag: etag3 - } - }); - c.res.headers.forEach((_, key) => { - if (retainedHeaders.indexOf(key.toLowerCase()) === -1) { - c.res.headers.delete(key); - } - }); - } else { - c.res.headers.set("ETag", etag3); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - RETAINED_304_HEADERS, - etag -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js deleted file mode 100644 index 29738a0..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var ip_restriction_exports = {}; -__export(ip_restriction_exports, { - ipRestriction: () => ipRestriction -}); -module.exports = __toCommonJS(ip_restriction_exports); -var import_http_exception = require("../../http-exception"); -var import_ipaddr = require("../../utils/ipaddr"); -const IS_CIDR_NOTATION_REGEX = /\/[0-9]{0,3}$/; -const buildMatcher = (rules) => { - const functionRules = []; - const staticRules = /* @__PURE__ */ new Set(); - const cidrRules = []; - for (let rule of rules) { - if (rule === "*") { - return () => true; - } else if (typeof rule === "function") { - functionRules.push(rule); - } else { - if (IS_CIDR_NOTATION_REGEX.test(rule)) { - const separatedRule = rule.split("/"); - const addrStr = separatedRule[0]; - const type2 = (0, import_ipaddr.distinctRemoteAddr)(addrStr); - if (type2 === void 0) { - throw new TypeError(`Invalid rule: ${rule}`); - } - const isIPv4 = type2 === "IPv4"; - const prefix = parseInt(separatedRule[1]); - if (isIPv4 ? prefix === 32 : prefix === 128) { - rule = addrStr; - } else { - const addr = (isIPv4 ? import_ipaddr.convertIPv4ToBinary : import_ipaddr.convertIPv6ToBinary)(addrStr); - const mask = (1n << BigInt(prefix)) - 1n << BigInt((isIPv4 ? 32 : 128) - prefix); - cidrRules.push([isIPv4, addr & mask, mask]); - continue; - } - } - const type = (0, import_ipaddr.distinctRemoteAddr)(rule); - if (type === void 0) { - throw new TypeError(`Invalid rule: ${rule}`); - } - staticRules.add( - type === "IPv4" ? rule : (0, import_ipaddr.convertIPv6BinaryToString)((0, import_ipaddr.convertIPv6ToBinary)(rule)) - // normalize IPv6 address (e.g. 0000:0000:0000:0000:0000:0000:0000:0001 => ::1) - ); - } - } - return (remote) => { - if (staticRules.has(remote.addr)) { - return true; - } - for (const [isIPv4, addr, mask] of cidrRules) { - if (isIPv4 !== remote.isIPv4) { - continue; - } - const remoteAddr = remote.binaryAddr ||= (isIPv4 ? import_ipaddr.convertIPv4ToBinary : import_ipaddr.convertIPv6ToBinary)(remote.addr); - if ((remoteAddr & mask) === addr) { - return true; - } - } - for (const rule of functionRules) { - if (rule({ addr: remote.addr, type: remote.type })) { - return true; - } - } - return false; - }; -}; -const ipRestriction = (getIP, { denyList = [], allowList = [] }, onError) => { - const allowLength = allowList.length; - const denyMatcher = buildMatcher(denyList); - const allowMatcher = buildMatcher(allowList); - const blockError = (c) => new import_http_exception.HTTPException(403, { - res: c.text("Forbidden", { - status: 403 - }) - }); - return async function ipRestriction2(c, next) { - const connInfo = getIP(c); - const addr = typeof connInfo === "string" ? connInfo : connInfo.remote.address; - if (!addr) { - throw blockError(c); - } - const type = typeof connInfo !== "string" && connInfo.remote.addressType || (0, import_ipaddr.distinctRemoteAddr)(addr); - const remoteData = { addr, type, isIPv4: type === "IPv4" }; - if (denyMatcher(remoteData)) { - if (onError) { - return onError({ addr, type }, c); - } - throw blockError(c); - } - if (allowMatcher(remoteData)) { - return await next(); - } - if (allowLength === 0) { - return await next(); - } else { - if (onError) { - return await onError({ addr, type }, c); - } - throw blockError(c); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - ipRestriction -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js deleted file mode 100644 index 3d7c32d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jsx_renderer_exports = {}; -__export(jsx_renderer_exports, { - RequestContext: () => RequestContext, - jsxRenderer: () => jsxRenderer, - useRequestContext: () => useRequestContext -}); -module.exports = __toCommonJS(jsx_renderer_exports); -var import_html = require("../../helper/html"); -var import_jsx = require("../../jsx"); -var import_streaming = require("../../jsx/streaming"); -const RequestContext = (0, import_jsx.createContext)(null); -const createRenderer = (c, Layout, component, options) => (children, props) => { - const docType = typeof options?.docType === "string" ? options.docType : options?.docType === false ? "" : ""; - const currentLayout = component ? (0, import_jsx.jsx)( - (props2) => component(props2, c), - { - Layout, - ...props - }, - children - ) : children; - const body = import_html.html`${(0, import_html.raw)(docType)}${(0, import_jsx.jsx)( - RequestContext.Provider, - { value: c }, - currentLayout - )}`; - if (options?.stream) { - if (options.stream === true) { - c.header("Transfer-Encoding", "chunked"); - c.header("Content-Type", "text/html; charset=UTF-8"); - c.header("Content-Encoding", "Identity"); - } else { - for (const [key, value] of Object.entries(options.stream)) { - c.header(key, value); - } - } - return c.body((0, import_streaming.renderToReadableStream)(body)); - } else { - return c.html(body); - } -}; -const jsxRenderer = (component, options) => function jsxRenderer2(c, next) { - const Layout = c.getLayout() ?? import_jsx.Fragment; - if (component) { - c.setLayout((props) => { - return component({ ...props, Layout }, c); - }); - } - c.setRenderer(createRenderer(c, Layout, component, options)); - return next(); -}; -const useRequestContext = () => { - const c = (0, import_jsx.useContext)(RequestContext); - if (!c) { - throw new Error("RequestContext is not provided."); - } - return c; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - RequestContext, - jsxRenderer, - useRequestContext -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/index.js deleted file mode 100644 index 1c22463..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwk_exports = {}; -__export(jwk_exports, { - jwk: () => import_jwk.jwk -}); -module.exports = __toCommonJS(jwk_exports); -var import_jwk = require("./jwk"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - jwk -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/jwk.js b/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/jwk.js deleted file mode 100644 index 7554466..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwk_exports = {}; -__export(jwk_exports, { - jwk: () => jwk -}); -module.exports = __toCommonJS(jwk_exports); -var import_cookie = require("../../helper/cookie"); -var import_http_exception = require("../../http-exception"); -var import_jwt = require("../../utils/jwt"); -var import_context = require("../../context"); -const jwk = (options, init) => { - const verifyOpts = options.verification || {}; - if (!options || !(options.keys || options.jwks_uri)) { - throw new Error('JWK auth middleware requires options for either "keys" or "jwks_uri" or both'); - } - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWK auth middleware requires it."); - } - return async function jwk2(ctx, next) { - const headerName = options.headerName || "Authorization"; - const credentials = ctx.req.raw.headers.get(headerName); - let token; - if (credentials) { - const parts = credentials.split(/\s+/); - if (parts.length !== 2) { - const errDescription = "invalid credentials structure"; - throw new import_http_exception.HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } else { - token = parts[1]; - } - } else if (options.cookie) { - if (typeof options.cookie == "string") { - token = (0, import_cookie.getCookie)(ctx, options.cookie); - } else if (options.cookie.secret) { - if (options.cookie.prefixOptions) { - token = await (0, import_cookie.getSignedCookie)( - ctx, - options.cookie.secret, - options.cookie.key, - options.cookie.prefixOptions - ); - } else { - token = await (0, import_cookie.getSignedCookie)(ctx, options.cookie.secret, options.cookie.key); - } - } else { - if (options.cookie.prefixOptions) { - token = (0, import_cookie.getCookie)(ctx, options.cookie.key, options.cookie.prefixOptions); - } else { - token = (0, import_cookie.getCookie)(ctx, options.cookie.key); - } - } - } - if (!token) { - if (options.allow_anon) { - return next(); - } - const errDescription = "no authorization included in request"; - throw new import_http_exception.HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } - let payload; - let cause; - try { - const keys = typeof options.keys === "function" ? await options.keys(ctx) : options.keys; - const jwks_uri = typeof options.jwks_uri === "function" ? await options.jwks_uri(ctx) : options.jwks_uri; - payload = await import_jwt.Jwt.verifyWithJwks(token, { keys, jwks_uri, verification: verifyOpts }, init); - } catch (e) { - cause = e; - } - if (!payload) { - if (cause instanceof Error && cause.constructor === Error) { - throw cause; - } - throw new import_http_exception.HTTPException(401, { - message: "Unauthorized", - res: unauthorizedResponse({ - ctx, - error: "invalid_token", - statusText: "Unauthorized", - errDescription: "token verification failure" - }), - cause - }); - } - ctx.set("jwtPayload", payload); - await next(); - }; -}; -function unauthorizedResponse(opts) { - return new Response("Unauthorized", { - status: 401, - statusText: opts.statusText, - headers: { - "WWW-Authenticate": `Bearer realm="${opts.ctx.req.url}",error="${opts.error}",error_description="${opts.errDescription}"` - } - }); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - jwk -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/index.js deleted file mode 100644 index 4af8bbe..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwt_exports = {}; -__export(jwt_exports, { - decode: () => import_jwt.decode, - jwt: () => import_jwt.jwt, - sign: () => import_jwt.sign, - verify: () => import_jwt.verify, - verifyWithJwks: () => import_jwt.verifyWithJwks -}); -module.exports = __toCommonJS(jwt_exports); -var import_jwt = require("./jwt"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - decode, - jwt, - sign, - verify, - verifyWithJwks -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/jwt.js b/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/jwt.js deleted file mode 100644 index f1755ce..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwt_exports = {}; -__export(jwt_exports, { - decode: () => decode, - jwt: () => jwt, - sign: () => sign, - verify: () => verify, - verifyWithJwks: () => verifyWithJwks -}); -module.exports = __toCommonJS(jwt_exports); -var import_cookie = require("../../helper/cookie"); -var import_http_exception = require("../../http-exception"); -var import_jwt = require("../../utils/jwt"); -var import_context = require("../../context"); -const jwt = (options) => { - const verifyOpts = options.verification || {}; - if (!options || !options.secret) { - throw new Error('JWT auth middleware requires options for "secret"'); - } - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - return async function jwt2(ctx, next) { - const headerName = options.headerName || "Authorization"; - const credentials = ctx.req.raw.headers.get(headerName); - let token; - if (credentials) { - const parts = credentials.split(/\s+/); - if (parts.length !== 2) { - const errDescription = "invalid credentials structure"; - throw new import_http_exception.HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } else { - token = parts[1]; - } - } else if (options.cookie) { - if (typeof options.cookie == "string") { - token = (0, import_cookie.getCookie)(ctx, options.cookie); - } else if (options.cookie.secret) { - if (options.cookie.prefixOptions) { - token = await (0, import_cookie.getSignedCookie)( - ctx, - options.cookie.secret, - options.cookie.key, - options.cookie.prefixOptions - ); - } else { - token = await (0, import_cookie.getSignedCookie)(ctx, options.cookie.secret, options.cookie.key); - } - } else { - if (options.cookie.prefixOptions) { - token = (0, import_cookie.getCookie)(ctx, options.cookie.key, options.cookie.prefixOptions); - } else { - token = (0, import_cookie.getCookie)(ctx, options.cookie.key); - } - } - } - if (!token) { - const errDescription = "no authorization included in request"; - throw new import_http_exception.HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } - let payload; - let cause; - try { - payload = await import_jwt.Jwt.verify(token, options.secret, { - alg: options.alg, - ...verifyOpts - }); - } catch (e) { - cause = e; - } - if (!payload) { - throw new import_http_exception.HTTPException(401, { - message: "Unauthorized", - res: unauthorizedResponse({ - ctx, - error: "invalid_token", - statusText: "Unauthorized", - errDescription: "token verification failure" - }), - cause - }); - } - ctx.set("jwtPayload", payload); - await next(); - }; -}; -function unauthorizedResponse(opts) { - return new Response("Unauthorized", { - status: 401, - statusText: opts.statusText, - headers: { - "WWW-Authenticate": `Bearer realm="${opts.ctx.req.url}",error="${opts.error}",error_description="${opts.errDescription}"` - } - }); -} -const verifyWithJwks = import_jwt.Jwt.verifyWithJwks; -const verify = import_jwt.Jwt.verify; -const decode = import_jwt.Jwt.decode; -const sign = import_jwt.Jwt.sign; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - decode, - jwt, - sign, - verify, - verifyWithJwks -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/language/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/language/index.js deleted file mode 100644 index 133886f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/language/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var language_exports = {}; -__export(language_exports, { - detectFromCookie: () => import_language.detectFromCookie, - detectFromHeader: () => import_language.detectFromHeader, - detectFromPath: () => import_language.detectFromPath, - detectFromQuery: () => import_language.detectFromQuery, - languageDetector: () => import_language.languageDetector -}); -module.exports = __toCommonJS(language_exports); -var import_language = require("./language"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - detectFromCookie, - detectFromHeader, - detectFromPath, - detectFromQuery, - languageDetector -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/language/language.js b/mcp-server/node_modules/hono/dist/cjs/middleware/language/language.js deleted file mode 100644 index ed6433d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/language/language.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var language_exports = {}; -__export(language_exports, { - DEFAULT_OPTIONS: () => DEFAULT_OPTIONS, - detectFromCookie: () => detectFromCookie, - detectFromHeader: () => detectFromHeader, - detectFromPath: () => detectFromPath, - detectFromQuery: () => detectFromQuery, - detectors: () => detectors, - languageDetector: () => languageDetector, - normalizeLanguage: () => normalizeLanguage, - parseAcceptLanguage: () => parseAcceptLanguage, - validateOptions: () => validateOptions -}); -module.exports = __toCommonJS(language_exports); -var import_cookie = require("../../helper/cookie"); -var import_accept = require("../../utils/accept"); -const DEFAULT_OPTIONS = { - order: ["querystring", "cookie", "header"], - lookupQueryString: "lang", - lookupCookie: "language", - lookupFromHeaderKey: "accept-language", - lookupFromPathIndex: 0, - caches: ["cookie"], - ignoreCase: true, - fallbackLanguage: "en", - supportedLanguages: ["en"], - cookieOptions: { - sameSite: "Strict", - secure: true, - maxAge: 365 * 24 * 60 * 60, - httpOnly: true - }, - debug: false -}; -function parseAcceptLanguage(header) { - return (0, import_accept.parseAccept)(header).map(({ type, q }) => ({ lang: type, q })); -} -const normalizeLanguage = (lang, options) => { - if (!lang) { - return void 0; - } - try { - let normalizedLang = lang.trim(); - if (options.convertDetectedLanguage) { - normalizedLang = options.convertDetectedLanguage(normalizedLang); - } - const compLang = options.ignoreCase ? normalizedLang.toLowerCase() : normalizedLang; - const compSupported = options.supportedLanguages.map( - (l) => options.ignoreCase ? l.toLowerCase() : l - ); - const matchedLang = compSupported.find((l) => l === compLang); - return matchedLang ? options.supportedLanguages[compSupported.indexOf(matchedLang)] : void 0; - } catch { - return void 0; - } -}; -const detectFromQuery = (c, options) => { - try { - const query = c.req.query(options.lookupQueryString); - return normalizeLanguage(query, options); - } catch { - return void 0; - } -}; -const detectFromCookie = (c, options) => { - try { - const cookie = (0, import_cookie.getCookie)(c, options.lookupCookie); - return normalizeLanguage(cookie, options); - } catch { - return void 0; - } -}; -function detectFromHeader(c, options) { - try { - const acceptLanguage = c.req.header(options.lookupFromHeaderKey); - if (!acceptLanguage) { - return void 0; - } - const languages = parseAcceptLanguage(acceptLanguage); - for (const { lang } of languages) { - const normalizedLang = normalizeLanguage(lang, options); - if (normalizedLang) { - return normalizedLang; - } - } - return void 0; - } catch { - return void 0; - } -} -function detectFromPath(c, options) { - try { - const url = new URL(c.req.url); - const pathSegments = url.pathname.split("/").filter(Boolean); - const langSegment = pathSegments[options.lookupFromPathIndex]; - return normalizeLanguage(langSegment, options); - } catch { - return void 0; - } -} -const detectors = { - querystring: detectFromQuery, - cookie: detectFromCookie, - header: detectFromHeader, - path: detectFromPath -}; -function validateOptions(options) { - if (!options.supportedLanguages.includes(options.fallbackLanguage)) { - throw new Error("Fallback language must be included in supported languages"); - } - if (options.lookupFromPathIndex < 0) { - throw new Error("Path index must be non-negative"); - } - if (!options.order.every((detector) => Object.keys(detectors).includes(detector))) { - throw new Error("Invalid detector type in order array"); - } -} -function cacheLanguage(c, language, options) { - if (!Array.isArray(options.caches) || !options.caches.includes("cookie")) { - return; - } - try { - (0, import_cookie.setCookie)(c, options.lookupCookie, language, options.cookieOptions); - } catch (error) { - if (options.debug) { - console.error("Failed to cache language:", error); - } - } -} -const detectLanguage = (c, options) => { - let detectedLang; - for (const detectorName of options.order) { - const detector = detectors[detectorName]; - if (!detector) { - continue; - } - try { - detectedLang = detector(c, options); - if (detectedLang) { - if (options.debug) { - console.log(`Language detected from ${detectorName}: ${detectedLang}`); - } - break; - } - } catch (error) { - if (options.debug) { - console.error(`Error in ${detectorName} detector:`, error); - } - continue; - } - } - const finalLang = detectedLang || options.fallbackLanguage; - if (detectedLang && options.caches) { - cacheLanguage(c, finalLang, options); - } - return finalLang; -}; -const languageDetector = (userOptions) => { - const options = { - ...DEFAULT_OPTIONS, - ...userOptions, - cookieOptions: { - ...DEFAULT_OPTIONS.cookieOptions, - ...userOptions.cookieOptions - } - }; - validateOptions(options); - return async function languageDetector2(ctx, next) { - try { - const lang = detectLanguage(ctx, options); - ctx.set("language", lang); - } catch (error) { - if (options.debug) { - console.error("Language detection failed:", error); - } - ctx.set("language", options.fallbackLanguage); - } - await next(); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - DEFAULT_OPTIONS, - detectFromCookie, - detectFromHeader, - detectFromPath, - detectFromQuery, - detectors, - languageDetector, - normalizeLanguage, - parseAcceptLanguage, - validateOptions -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/logger/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/logger/index.js deleted file mode 100644 index ee709cf..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/logger/index.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var logger_exports = {}; -__export(logger_exports, { - logger: () => logger -}); -module.exports = __toCommonJS(logger_exports); -var import_color = require("../../utils/color"); -var LogPrefix = /* @__PURE__ */ ((LogPrefix2) => { - LogPrefix2["Outgoing"] = "-->"; - LogPrefix2["Incoming"] = "<--"; - LogPrefix2["Error"] = "xxx"; - return LogPrefix2; -})(LogPrefix || {}); -const humanize = (times) => { - const [delimiter, separator] = [",", "."]; - const orderTimes = times.map((v) => v.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimiter)); - return orderTimes.join(separator); -}; -const time = (start) => { - const delta = Date.now() - start; - return humanize([delta < 1e3 ? delta + "ms" : Math.round(delta / 1e3) + "s"]); -}; -const colorStatus = async (status) => { - const colorEnabled = await (0, import_color.getColorEnabledAsync)(); - if (colorEnabled) { - switch (status / 100 | 0) { - case 5: - return `\x1B[31m${status}\x1B[0m`; - case 4: - return `\x1B[33m${status}\x1B[0m`; - case 3: - return `\x1B[36m${status}\x1B[0m`; - case 2: - return `\x1B[32m${status}\x1B[0m`; - } - } - return `${status}`; -}; -async function log(fn, prefix, method, path, status = 0, elapsed) { - const out = prefix === "<--" /* Incoming */ ? `${prefix} ${method} ${path}` : `${prefix} ${method} ${path} ${await colorStatus(status)} ${elapsed}`; - fn(out); -} -const logger = (fn = console.log) => { - return async function logger2(c, next) { - const { method, url } = c.req; - const path = url.slice(url.indexOf("/", 8)); - await log(fn, "<--" /* Incoming */, method, path); - const start = Date.now(); - await next(); - await log(fn, "-->" /* Outgoing */, method, path, c.res.status, time(start)); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - logger -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/method-override/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/method-override/index.js deleted file mode 100644 index dfbd952..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/method-override/index.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var method_override_exports = {}; -__export(method_override_exports, { - methodOverride: () => methodOverride -}); -module.exports = __toCommonJS(method_override_exports); -var import_body = require("../../utils/body"); -const DEFAULT_METHOD_FORM_NAME = "_method"; -const methodOverride = (options) => async function methodOverride2(c, next) { - if (c.req.method === "GET") { - return await next(); - } - const app = options.app; - if (!(options.header || options.query)) { - const contentType = c.req.header("content-type"); - const methodFormName = options.form || DEFAULT_METHOD_FORM_NAME; - const clonedRequest = c.req.raw.clone(); - const newRequest = clonedRequest.clone(); - if (contentType?.startsWith("multipart/form-data")) { - const form = await clonedRequest.formData(); - const method = form.get(methodFormName); - if (method) { - const newForm = await newRequest.formData(); - newForm.delete(methodFormName); - const newHeaders = new Headers(clonedRequest.headers); - newHeaders.delete("content-type"); - newHeaders.delete("content-length"); - const request = new Request(c.req.url, { - body: newForm, - headers: newHeaders, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - if (contentType === "application/x-www-form-urlencoded") { - const params = await (0, import_body.parseBody)(clonedRequest); - const method = params[methodFormName]; - if (method) { - delete params[methodFormName]; - const newParams = new URLSearchParams(params); - const request = new Request(newRequest, { - body: newParams, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - } else if (options.header) { - const headerName = options.header; - const method = c.req.header(headerName); - if (method) { - const newHeaders = new Headers(c.req.raw.headers); - newHeaders.delete(headerName); - const request = new Request(c.req.raw, { - headers: newHeaders, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } else if (options.query) { - const queryName = options.query; - const method = c.req.query(queryName); - if (method) { - const url = new URL(c.req.url); - url.searchParams.delete(queryName); - const request = new Request(url.toString(), { - body: c.req.raw.body, - headers: c.req.raw.headers, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - await next(); -}; -const getExecutionCtx = (c) => { - let executionCtx; - try { - executionCtx = c.executionCtx; - } catch { - } - return executionCtx; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - methodOverride -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/powered-by/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/powered-by/index.js deleted file mode 100644 index 5580b93..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/powered-by/index.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var powered_by_exports = {}; -__export(powered_by_exports, { - poweredBy: () => poweredBy -}); -module.exports = __toCommonJS(powered_by_exports); -const poweredBy = (options) => { - return async function poweredBy2(c, next) { - await next(); - c.res.headers.set("X-Powered-By", options?.serverName ?? "Hono"); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - poweredBy -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/pretty-json/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/pretty-json/index.js deleted file mode 100644 index 0ca7c39..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var pretty_json_exports = {}; -__export(pretty_json_exports, { - prettyJSON: () => prettyJSON -}); -module.exports = __toCommonJS(pretty_json_exports); -const prettyJSON = (options) => { - const targetQuery = options?.query ?? "pretty"; - return async function prettyJSON2(c, next) { - const pretty = options?.force || c.req.query(targetQuery) || c.req.query(targetQuery) === ""; - await next(); - if (pretty && c.res.headers.get("Content-Type")?.startsWith("application/json")) { - const obj = await c.res.json(); - c.res = new Response(JSON.stringify(obj, null, options?.space ?? 2), c.res); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - prettyJSON -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/index.js deleted file mode 100644 index ec5ac3d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var request_id_exports = {}; -__export(request_id_exports, { - requestId: () => import_request_id.requestId -}); -module.exports = __toCommonJS(request_id_exports); -var import_request_id = require("./request-id"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - requestId -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/request-id.js b/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/request-id.js deleted file mode 100644 index 48e7ced..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var request_id_exports = {}; -__export(request_id_exports, { - requestId: () => requestId -}); -module.exports = __toCommonJS(request_id_exports); -const requestId = ({ - limitLength = 255, - headerName = "X-Request-Id", - generator = () => crypto.randomUUID() -} = {}) => { - return async function requestId2(c, next) { - let reqId = headerName ? c.req.header(headerName) : void 0; - if (!reqId || reqId.length > limitLength || /[^\w\-=]/.test(reqId)) { - reqId = generator(c); - } - c.set("requestId", reqId); - if (headerName) { - c.header(headerName, reqId); - } - await next(); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - requestId -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/index.js deleted file mode 100644 index de33ce9..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var secure_headers_exports = {}; -__export(secure_headers_exports, { - NONCE: () => import_secure_headers.NONCE, - secureHeaders: () => import_secure_headers.secureHeaders -}); -module.exports = __toCommonJS(secure_headers_exports); -var import_secure_headers = require("./secure-headers"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - NONCE, - secureHeaders -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js b/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js deleted file mode 100644 index 468148d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var permissions_policy_exports = {}; -module.exports = __toCommonJS(permissions_policy_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js b/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js deleted file mode 100644 index b8c9bf4..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +++ /dev/null @@ -1,190 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var secure_headers_exports = {}; -__export(secure_headers_exports, { - NONCE: () => NONCE, - secureHeaders: () => secureHeaders -}); -module.exports = __toCommonJS(secure_headers_exports); -var import_encode = require("../../utils/encode"); -const HEADERS_MAP = { - crossOriginEmbedderPolicy: ["Cross-Origin-Embedder-Policy", "require-corp"], - crossOriginResourcePolicy: ["Cross-Origin-Resource-Policy", "same-origin"], - crossOriginOpenerPolicy: ["Cross-Origin-Opener-Policy", "same-origin"], - originAgentCluster: ["Origin-Agent-Cluster", "?1"], - referrerPolicy: ["Referrer-Policy", "no-referrer"], - strictTransportSecurity: ["Strict-Transport-Security", "max-age=15552000; includeSubDomains"], - xContentTypeOptions: ["X-Content-Type-Options", "nosniff"], - xDnsPrefetchControl: ["X-DNS-Prefetch-Control", "off"], - xDownloadOptions: ["X-Download-Options", "noopen"], - xFrameOptions: ["X-Frame-Options", "SAMEORIGIN"], - xPermittedCrossDomainPolicies: ["X-Permitted-Cross-Domain-Policies", "none"], - xXssProtection: ["X-XSS-Protection", "0"] -}; -const DEFAULT_OPTIONS = { - crossOriginEmbedderPolicy: false, - crossOriginResourcePolicy: true, - crossOriginOpenerPolicy: true, - originAgentCluster: true, - referrerPolicy: true, - strictTransportSecurity: true, - xContentTypeOptions: true, - xDnsPrefetchControl: true, - xDownloadOptions: true, - xFrameOptions: true, - xPermittedCrossDomainPolicies: true, - xXssProtection: true, - removePoweredBy: true, - permissionsPolicy: {} -}; -const generateNonce = () => { - const arrayBuffer = new Uint8Array(16); - crypto.getRandomValues(arrayBuffer); - return (0, import_encode.encodeBase64)(arrayBuffer.buffer); -}; -const NONCE = (ctx) => { - const key = "secureHeadersNonce"; - const init = ctx.get(key); - const nonce = init || generateNonce(); - if (init == null) { - ctx.set(key, nonce); - } - return `'nonce-${nonce}'`; -}; -const secureHeaders = (customOptions) => { - const options = { ...DEFAULT_OPTIONS, ...customOptions }; - const headersToSet = getFilteredHeaders(options); - const callbacks = []; - if (options.contentSecurityPolicy) { - const [callback, value] = getCSPDirectives(options.contentSecurityPolicy); - if (callback) { - callbacks.push(callback); - } - headersToSet.push(["Content-Security-Policy", value]); - } - if (options.contentSecurityPolicyReportOnly) { - const [callback, value] = getCSPDirectives(options.contentSecurityPolicyReportOnly); - if (callback) { - callbacks.push(callback); - } - headersToSet.push(["Content-Security-Policy-Report-Only", value]); - } - if (options.permissionsPolicy && Object.keys(options.permissionsPolicy).length > 0) { - headersToSet.push([ - "Permissions-Policy", - getPermissionsPolicyDirectives(options.permissionsPolicy) - ]); - } - if (options.reportingEndpoints) { - headersToSet.push(["Reporting-Endpoints", getReportingEndpoints(options.reportingEndpoints)]); - } - if (options.reportTo) { - headersToSet.push(["Report-To", getReportToOptions(options.reportTo)]); - } - return async function secureHeaders2(ctx, next) { - const headersToSetForReq = callbacks.length === 0 ? headersToSet : callbacks.reduce((acc, cb) => cb(ctx, acc), headersToSet); - await next(); - setHeaders(ctx, headersToSetForReq); - if (options?.removePoweredBy) { - ctx.res.headers.delete("X-Powered-By"); - } - }; -}; -function getFilteredHeaders(options) { - return Object.entries(HEADERS_MAP).filter(([key]) => options[key]).map(([key, defaultValue]) => { - const overrideValue = options[key]; - return typeof overrideValue === "string" ? [defaultValue[0], overrideValue] : defaultValue; - }); -} -function getCSPDirectives(contentSecurityPolicy) { - const callbacks = []; - const resultValues = []; - for (const [directive, value] of Object.entries(contentSecurityPolicy)) { - const valueArray = Array.isArray(value) ? value : [value]; - valueArray.forEach((value2, i) => { - if (typeof value2 === "function") { - const index = i * 2 + 2 + resultValues.length; - callbacks.push((ctx, values) => { - values[index] = value2(ctx, directive); - }); - } - }); - resultValues.push( - directive.replace( - /[A-Z]+(?![a-z])|[A-Z]/g, - (match, offset) => offset ? "-" + match.toLowerCase() : match.toLowerCase() - ), - ...valueArray.flatMap((value2) => [" ", value2]), - "; " - ); - } - resultValues.pop(); - return callbacks.length === 0 ? [void 0, resultValues.join("")] : [ - (ctx, headersToSet) => headersToSet.map((values) => { - if (values[0] === "Content-Security-Policy" || values[0] === "Content-Security-Policy-Report-Only") { - const clone = values[1].slice(); - callbacks.forEach((cb) => { - cb(ctx, clone); - }); - return [values[0], clone.join("")]; - } else { - return values; - } - }), - resultValues - ]; -} -function getPermissionsPolicyDirectives(policy) { - return Object.entries(policy).map(([directive, value]) => { - const kebabDirective = camelToKebab(directive); - if (typeof value === "boolean") { - return `${kebabDirective}=${value ? "*" : "none"}`; - } - if (Array.isArray(value)) { - if (value.length === 0) { - return `${kebabDirective}=()`; - } - if (value.length === 1 && (value[0] === "*" || value[0] === "none")) { - return `${kebabDirective}=${value[0]}`; - } - const allowlist = value.map((item) => ["self", "src"].includes(item) ? item : `"${item}"`); - return `${kebabDirective}=(${allowlist.join(" ")})`; - } - return ""; - }).filter(Boolean).join(", "); -} -function camelToKebab(str) { - return str.replace(/([a-z\d])([A-Z])/g, "$1-$2").toLowerCase(); -} -function getReportingEndpoints(reportingEndpoints = []) { - return reportingEndpoints.map((endpoint) => `${endpoint.name}="${endpoint.url}"`).join(", "); -} -function getReportToOptions(reportTo = []) { - return reportTo.map((option) => JSON.stringify(option)).join(", "); -} -function setHeaders(ctx, headersToSet) { - headersToSet.forEach(([header, value]) => { - ctx.res.headers.set(header, value); - }); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - NONCE, - secureHeaders -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/index.js deleted file mode 100644 index ffd483d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/index.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var serve_static_exports = {}; -__export(serve_static_exports, { - serveStatic: () => serveStatic -}); -module.exports = __toCommonJS(serve_static_exports); -var import_compress = require("../../utils/compress"); -var import_mime = require("../../utils/mime"); -var import_path = require("./path"); -const ENCODINGS = { - br: ".br", - zstd: ".zst", - gzip: ".gz" -}; -const ENCODINGS_ORDERED_KEYS = Object.keys(ENCODINGS); -const DEFAULT_DOCUMENT = "index.html"; -const serveStatic = (options) => { - const root = options.root ?? "./"; - const optionPath = options.path; - const join = options.join ?? import_path.defaultJoin; - return async (c, next) => { - if (c.finalized) { - return next(); - } - let filename; - if (options.path) { - filename = options.path; - } else { - try { - filename = decodeURIComponent(c.req.path); - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - throw new Error(); - } - } catch { - await options.onNotFound?.(c.req.path, c); - return next(); - } - } - let path = join( - root, - !optionPath && options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename - ); - if (options.isDir && await options.isDir(path)) { - path = join(path, DEFAULT_DOCUMENT); - } - const getContent = options.getContent; - let content = await getContent(path, c); - if (content instanceof Response) { - return c.newResponse(content.body, content); - } - if (content) { - const mimeType = options.mimes && (0, import_mime.getMimeType)(path, options.mimes) || (0, import_mime.getMimeType)(path); - c.header("Content-Type", mimeType || "application/octet-stream"); - if (options.precompressed && (!mimeType || import_compress.COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) { - const acceptEncodingSet = new Set( - c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()) - ); - for (const encoding of ENCODINGS_ORDERED_KEYS) { - if (!acceptEncodingSet.has(encoding)) { - continue; - } - const compressedContent = await getContent(path + ENCODINGS[encoding], c); - if (compressedContent) { - content = compressedContent; - c.header("Content-Encoding", encoding); - c.header("Vary", "Accept-Encoding", { append: true }); - break; - } - } - } - await options.onFound?.(path, c); - return c.body(content); - } - await options.onNotFound?.(path, c); - await next(); - return; - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - serveStatic -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/path.js b/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/path.js deleted file mode 100644 index ff620aa..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/serve-static/path.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var path_exports = {}; -__export(path_exports, { - defaultJoin: () => defaultJoin -}); -module.exports = __toCommonJS(path_exports); -const defaultJoin = (...paths) => { - let result = paths.filter((p) => p !== "").join("/"); - result = result.replace(/(?<=\/)\/+/g, ""); - const segments = result.split("/"); - const resolved = []; - for (const segment of segments) { - if (segment === ".." && resolved.length > 0 && resolved.at(-1) !== "..") { - resolved.pop(); - } else if (segment !== ".") { - resolved.push(segment); - } - } - return resolved.join("/") || "."; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - defaultJoin -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/timeout/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/timeout/index.js deleted file mode 100644 index 1df7d76..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/timeout/index.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var timeout_exports = {}; -__export(timeout_exports, { - timeout: () => timeout -}); -module.exports = __toCommonJS(timeout_exports); -var import_http_exception = require("../../http-exception"); -const defaultTimeoutException = new import_http_exception.HTTPException(504, { - message: "Gateway Timeout" -}); -const timeout = (duration, exception = defaultTimeoutException) => { - return async function timeout2(context, next) { - let timer; - const timeoutPromise = new Promise((_, reject) => { - timer = setTimeout(() => { - reject(typeof exception === "function" ? exception(context) : exception); - }, duration); - }); - try { - await Promise.race([next(), timeoutPromise]); - } finally { - if (timer !== void 0) { - clearTimeout(timer); - } - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - timeout -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/timing/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/timing/index.js deleted file mode 100644 index 2775406..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/timing/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var timing_exports = {}; -__export(timing_exports, { - endTime: () => import_timing.endTime, - setMetric: () => import_timing.setMetric, - startTime: () => import_timing.startTime, - timing: () => import_timing.timing, - wrapTime: () => import_timing.wrapTime -}); -module.exports = __toCommonJS(timing_exports); -var import_timing = require("./timing"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - endTime, - setMetric, - startTime, - timing, - wrapTime -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/timing/timing.js b/mcp-server/node_modules/hono/dist/cjs/middleware/timing/timing.js deleted file mode 100644 index 7c25a94..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/timing/timing.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var timing_exports = {}; -__export(timing_exports, { - endTime: () => endTime, - setMetric: () => setMetric, - startTime: () => startTime, - timing: () => timing, - wrapTime: () => wrapTime -}); -module.exports = __toCommonJS(timing_exports); -var import_context = require("../../context"); -const getTime = () => { - try { - return performance.now(); - } catch { - } - return Date.now(); -}; -const timing = (config) => { - const options = { - total: true, - enabled: true, - totalDescription: "Total Response Time", - autoEnd: true, - crossOrigin: false, - ...config - }; - return async function timing2(c, next) { - const headers = []; - const timers = /* @__PURE__ */ new Map(); - if (c.get("metric")) { - return await next(); - } - c.set("metric", { headers, timers }); - if (options.total) { - startTime(c, "total", options.totalDescription); - } - await next(); - if (options.total) { - endTime(c, "total"); - } - if (options.autoEnd) { - timers.forEach((_, key) => endTime(c, key)); - } - const enabled = typeof options.enabled === "function" ? options.enabled(c) : options.enabled; - if (enabled) { - c.res.headers.append("Server-Timing", headers.join(",")); - const crossOrigin = typeof options.crossOrigin === "function" ? options.crossOrigin(c) : options.crossOrigin; - if (crossOrigin) { - c.res.headers.append( - "Timing-Allow-Origin", - typeof crossOrigin === "string" ? crossOrigin : "*" - ); - } - } - }; -}; -const setMetric = (c, name, valueDescription, description, precision) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - if (typeof valueDescription === "number") { - const dur = valueDescription.toFixed(precision || 1); - const metric = description ? `${name};dur=${dur};desc="${description}"` : `${name};dur=${dur}`; - metrics.headers.push(metric); - } else { - const metric = valueDescription ? `${name};desc="${valueDescription}"` : `${name}`; - metrics.headers.push(metric); - } -}; -const startTime = (c, name, description) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - metrics.timers.set(name, { description, start: getTime() }); -}; -const endTime = (c, name, precision) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - const timer = metrics.timers.get(name); - if (!timer) { - console.warn(`Timer "${name}" does not exist!`); - return; - } - const { description, start } = timer; - const duration = getTime() - start; - setMetric(c, name, duration, description, precision); - metrics.timers.delete(name); -}; -async function wrapTime(c, name, callable, description, precision) { - startTime(c, name, description); - try { - return await callable; - } finally { - endTime(c, name, precision); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - endTime, - setMetric, - startTime, - timing, - wrapTime -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js b/mcp-server/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js deleted file mode 100644 index 085f34c..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var trailing_slash_exports = {}; -__export(trailing_slash_exports, { - appendTrailingSlash: () => appendTrailingSlash, - trimTrailingSlash: () => trimTrailingSlash -}); -module.exports = __toCommonJS(trailing_slash_exports); -const trimTrailingSlash = () => { - return async function trimTrailingSlash2(c, next) { - await next(); - if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path !== "/" && c.req.path.at(-1) === "/") { - const url = new URL(c.req.url); - url.pathname = url.pathname.substring(0, url.pathname.length - 1); - c.res = c.redirect(url.toString(), 301); - } - }; -}; -const appendTrailingSlash = () => { - return async function appendTrailingSlash2(c, next) { - await next(); - if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path.at(-1) !== "/") { - const url = new URL(c.req.url); - url.pathname += "/"; - c.res = c.redirect(url.toString(), 301); - } - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - appendTrailingSlash, - trimTrailingSlash -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/package.json b/mcp-server/node_modules/hono/dist/cjs/package.json deleted file mode 100644 index 5bbefff..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/mcp-server/node_modules/hono/dist/cjs/preset/quick.js b/mcp-server/node_modules/hono/dist/cjs/preset/quick.js deleted file mode 100644 index 793f3d8..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/preset/quick.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var quick_exports = {}; -__export(quick_exports, { - Hono: () => Hono -}); -module.exports = __toCommonJS(quick_exports); -var import_hono_base = require("../hono-base"); -var import_linear_router = require("../router/linear-router"); -var import_smart_router = require("../router/smart-router"); -var import_trie_router = require("../router/trie-router"); -class Hono extends import_hono_base.HonoBase { - constructor(options = {}) { - super(options); - this.router = new import_smart_router.SmartRouter({ - routers: [new import_linear_router.LinearRouter(), new import_trie_router.TrieRouter()] - }); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Hono -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/preset/tiny.js b/mcp-server/node_modules/hono/dist/cjs/preset/tiny.js deleted file mode 100644 index 1fd5478..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/preset/tiny.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var tiny_exports = {}; -__export(tiny_exports, { - Hono: () => Hono -}); -module.exports = __toCommonJS(tiny_exports); -var import_hono_base = require("../hono-base"); -var import_pattern_router = require("../router/pattern-router"); -class Hono extends import_hono_base.HonoBase { - constructor(options = {}) { - super(options); - this.router = new import_pattern_router.PatternRouter(); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Hono -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/request.js b/mcp-server/node_modules/hono/dist/cjs/request.js deleted file mode 100644 index 51c192f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/request.js +++ /dev/null @@ -1,325 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var request_exports = {}; -__export(request_exports, { - HonoRequest: () => HonoRequest, - cloneRawRequest: () => cloneRawRequest -}); -module.exports = __toCommonJS(request_exports); -var import_http_exception = require("./http-exception"); -var import_constants = require("./request/constants"); -var import_body = require("./utils/body"); -var import_url = require("./utils/url"); -const tryDecodeURIComponent = (str) => (0, import_url.tryDecode)(str, import_url.decodeURIComponent_); -class HonoRequest { - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw; - #validatedData; - // Short name of validatedData - #matchResult; - routeIndex = 0; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path; - bodyCache = {}; - constructor(request, path = "/", matchResult = [[]]) { - this.raw = request; - this.path = path; - this.#matchResult = matchResult; - this.#validatedData = {}; - } - param(key) { - return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams(); - } - #getDecodedParam(key) { - const paramKey = this.#matchResult[0][this.routeIndex][1][key]; - const param = this.#getParamValue(paramKey); - return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param; - } - #getAllDecodedParams() { - const decoded = {}; - const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]); - for (const key of keys) { - const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]); - if (value !== void 0) { - decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value; - } - } - return decoded; - } - #getParamValue(paramKey) { - return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey; - } - query(key) { - return (0, import_url.getQueryParam)(this.url, key); - } - queries(key) { - return (0, import_url.getQueryParams)(this.url, key); - } - header(name) { - if (name) { - return this.raw.headers.get(name) ?? void 0; - } - const headerData = {}; - this.raw.headers.forEach((value, key) => { - headerData[key] = value; - }); - return headerData; - } - async parseBody(options) { - return this.bodyCache.parsedBody ??= await (0, import_body.parseBody)(this, options); - } - #cachedBody = (key) => { - const { bodyCache, raw } = this; - const cachedBody = bodyCache[key]; - if (cachedBody) { - return cachedBody; - } - const anyCachedKey = Object.keys(bodyCache)[0]; - if (anyCachedKey) { - return bodyCache[anyCachedKey].then((body) => { - if (anyCachedKey === "json") { - body = JSON.stringify(body); - } - return new Response(body)[key](); - }); - } - return bodyCache[key] = raw[key](); - }; - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json() { - return this.#cachedBody("text").then((text) => JSON.parse(text)); - } - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text() { - return this.#cachedBody("text"); - } - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer() { - return this.#cachedBody("arrayBuffer"); - } - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob() { - return this.#cachedBody("blob"); - } - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData() { - return this.#cachedBody("formData"); - } - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target, data) { - this.#validatedData[target] = data; - } - valid(target) { - return this.#validatedData[target]; - } - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url() { - return this.raw.url; - } - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method() { - return this.raw.method; - } - get [import_constants.GET_MATCH_RESULT]() { - return this.#matchResult; - } - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes() { - return this.#matchResult[0].map(([[, route]]) => route); - } - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath() { - return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path; - } -} -const cloneRawRequest = async (req) => { - if (!req.raw.bodyUsed) { - return req.raw.clone(); - } - const cacheKey = Object.keys(req.bodyCache)[0]; - if (!cacheKey) { - throw new import_http_exception.HTTPException(500, { - message: "Cannot clone request: body was already consumed and not cached. Please use HonoRequest methods (e.g., req.json(), req.text()) instead of consuming req.raw directly." - }); - } - const requestInit = { - body: await req[cacheKey](), - cache: req.raw.cache, - credentials: req.raw.credentials, - headers: req.header(), - integrity: req.raw.integrity, - keepalive: req.raw.keepalive, - method: req.method, - mode: req.raw.mode, - redirect: req.raw.redirect, - referrer: req.raw.referrer, - referrerPolicy: req.raw.referrerPolicy, - signal: req.raw.signal - }; - return new Request(req.url, requestInit); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - HonoRequest, - cloneRawRequest -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/request/constants.js b/mcp-server/node_modules/hono/dist/cjs/request/constants.js deleted file mode 100644 index 322f24d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/request/constants.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var constants_exports = {}; -__export(constants_exports, { - GET_MATCH_RESULT: () => GET_MATCH_RESULT -}); -module.exports = __toCommonJS(constants_exports); -const GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - GET_MATCH_RESULT -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router.js b/mcp-server/node_modules/hono/dist/cjs/router.js deleted file mode 100644 index b05b67f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - MESSAGE_MATCHER_IS_ALREADY_BUILT: () => MESSAGE_MATCHER_IS_ALREADY_BUILT, - METHODS: () => METHODS, - METHOD_NAME_ALL: () => METHOD_NAME_ALL, - METHOD_NAME_ALL_LOWERCASE: () => METHOD_NAME_ALL_LOWERCASE, - UnsupportedPathError: () => UnsupportedPathError -}); -module.exports = __toCommonJS(router_exports); -const METHOD_NAME_ALL = "ALL"; -const METHOD_NAME_ALL_LOWERCASE = "all"; -const METHODS = ["get", "post", "put", "delete", "options", "patch"]; -const MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -class UnsupportedPathError extends Error { -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - MESSAGE_MATCHER_IS_ALREADY_BUILT, - METHODS, - METHOD_NAME_ALL, - METHOD_NAME_ALL_LOWERCASE, - UnsupportedPathError -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/linear-router/index.js b/mcp-server/node_modules/hono/dist/cjs/router/linear-router/index.js deleted file mode 100644 index 10ed2b2..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/linear-router/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var linear_router_exports = {}; -__export(linear_router_exports, { - LinearRouter: () => import_router.LinearRouter -}); -module.exports = __toCommonJS(linear_router_exports); -var import_router = require("./router"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - LinearRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/linear-router/router.js b/mcp-server/node_modules/hono/dist/cjs/router/linear-router/router.js deleted file mode 100644 index c72e7ca..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/linear-router/router.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - LinearRouter: () => LinearRouter -}); -module.exports = __toCommonJS(router_exports); -var import_router = require("../../router"); -var import_url = require("../../utils/url"); -const emptyParams = /* @__PURE__ */ Object.create(null); -const splitPathRe = /\/(:\w+(?:{(?:(?:{[\d,]+})|[^}])+})?)|\/[^\/\?]+|(\?)/g; -const splitByStarRe = /\*/; -class LinearRouter { - name = "LinearRouter"; - #routes = []; - add(method, path, handler) { - for (let i = 0, paths = (0, import_url.checkOptionalParameter)(path) || [path], len = paths.length; i < len; i++) { - this.#routes.push([method, paths[i], handler]); - } - } - match(method, path) { - const handlers = []; - ROUTES_LOOP: for (let i = 0, len = this.#routes.length; i < len; i++) { - const [routeMethod, routePath, handler] = this.#routes[i]; - if (routeMethod === method || routeMethod === import_router.METHOD_NAME_ALL) { - if (routePath === "*" || routePath === "/*") { - handlers.push([handler, emptyParams]); - continue; - } - const hasStar = routePath.indexOf("*") !== -1; - const hasLabel = routePath.indexOf(":") !== -1; - if (!hasStar && !hasLabel) { - if (routePath === path || routePath + "/" === path) { - handlers.push([handler, emptyParams]); - } - } else if (hasStar && !hasLabel) { - const endsWithStar = routePath.charCodeAt(routePath.length - 1) === 42; - const parts = (endsWithStar ? routePath.slice(0, -2) : routePath).split(splitByStarRe); - const lastIndex = parts.length - 1; - for (let j = 0, pos = 0, len2 = parts.length; j < len2; j++) { - const part = parts[j]; - const index = path.indexOf(part, pos); - if (index !== pos) { - continue ROUTES_LOOP; - } - pos += part.length; - if (j === lastIndex) { - if (!endsWithStar && pos !== path.length && !(pos === path.length - 1 && path.charCodeAt(pos) === 47)) { - continue ROUTES_LOOP; - } - } else { - const index2 = path.indexOf("/", pos); - if (index2 === -1) { - continue ROUTES_LOOP; - } - pos = index2; - } - } - handlers.push([handler, emptyParams]); - } else if (hasLabel && !hasStar) { - const params = /* @__PURE__ */ Object.create(null); - const parts = routePath.match(splitPathRe); - const lastIndex = parts.length - 1; - for (let j = 0, pos = 0, len2 = parts.length; j < len2; j++) { - if (pos === -1 || pos >= path.length) { - continue ROUTES_LOOP; - } - const part = parts[j]; - if (part.charCodeAt(1) === 58) { - if (path.charCodeAt(pos) !== 47) { - continue ROUTES_LOOP; - } - let name = part.slice(2); - let value; - if (name.charCodeAt(name.length - 1) === 125) { - const openBracePos = name.indexOf("{"); - const next = parts[j + 1]; - const lookahead = next && next[1] !== ":" && next[1] !== "*" ? `(?=${next})` : ""; - const pattern = name.slice(openBracePos + 1, -1) + lookahead; - const restPath = path.slice(pos + 1); - const match = new RegExp(pattern, "d").exec(restPath); - if (!match || match.indices[0][0] !== 0 || match.indices[0][1] === 0) { - continue ROUTES_LOOP; - } - name = name.slice(0, openBracePos); - value = restPath.slice(...match.indices[0]); - pos += match.indices[0][1] + 1; - } else { - let endValuePos = path.indexOf("/", pos + 1); - if (endValuePos === -1) { - if (pos + 1 === path.length) { - continue ROUTES_LOOP; - } - endValuePos = path.length; - } - value = path.slice(pos + 1, endValuePos); - pos = endValuePos; - } - params[name] ||= value; - } else { - const index = path.indexOf(part, pos); - if (index !== pos) { - continue ROUTES_LOOP; - } - pos += part.length; - } - if (j === lastIndex) { - if (pos !== path.length && !(pos === path.length - 1 && path.charCodeAt(pos) === 47)) { - continue ROUTES_LOOP; - } - } - } - handlers.push([handler, params]); - } else if (hasLabel && hasStar) { - throw new import_router.UnsupportedPathError(); - } - } - } - return [handlers]; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - LinearRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/index.js b/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/index.js deleted file mode 100644 index 54e9757..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var pattern_router_exports = {}; -__export(pattern_router_exports, { - PatternRouter: () => import_router.PatternRouter -}); -module.exports = __toCommonJS(pattern_router_exports); -var import_router = require("./router"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - PatternRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/router.js b/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/router.js deleted file mode 100644 index a9592d9..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/pattern-router/router.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - PatternRouter: () => PatternRouter -}); -module.exports = __toCommonJS(router_exports); -var import_router = require("../../router"); -const emptyParams = /* @__PURE__ */ Object.create(null); -class PatternRouter { - name = "PatternRouter"; - #routes = []; - add(method, path, handler) { - const endsWithWildcard = path.at(-1) === "*"; - if (endsWithWildcard) { - path = path.slice(0, -2); - } - if (path.at(-1) === "?") { - path = path.slice(0, -1); - this.add(method, path.replace(/\/[^/]+$/, ""), handler); - } - const parts = (path.match(/\/?(:\w+(?:{(?:(?:{[\d,]+})|[^}])+})?)|\/?[^\/\?]+/g) || []).map( - (part) => { - const match = part.match(/^\/:([^{]+)(?:{(.*)})?/); - return match ? `/(?<${match[1]}>${match[2] || "[^/]+"})` : part === "/*" ? "/[^/]+" : part.replace(/[.\\+*[^\]$()]/g, "\\$&"); - } - ); - try { - this.#routes.push([ - new RegExp(`^${parts.join("")}${endsWithWildcard ? "" : "/?$"}`), - method, - handler - ]); - } catch { - throw new import_router.UnsupportedPathError(); - } - } - match(method, path) { - const handlers = []; - for (let i = 0, len = this.#routes.length; i < len; i++) { - const [pattern, routeMethod, handler] = this.#routes[i]; - if (routeMethod === method || routeMethod === import_router.METHOD_NAME_ALL) { - const match = pattern.exec(path); - if (match) { - handlers.push([handler, match.groups || emptyParams]); - } - } - } - return [handlers]; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - PatternRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/index.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/index.js deleted file mode 100644 index 46ad451..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var reg_exp_router_exports = {}; -__export(reg_exp_router_exports, { - PreparedRegExpRouter: () => import_prepared_router.PreparedRegExpRouter, - RegExpRouter: () => import_router.RegExpRouter, - buildInitParams: () => import_prepared_router.buildInitParams, - serializeInitParams: () => import_prepared_router.serializeInitParams -}); -module.exports = __toCommonJS(reg_exp_router_exports); -var import_router = require("./router"); -var import_prepared_router = require("./prepared-router"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - PreparedRegExpRouter, - RegExpRouter, - buildInitParams, - serializeInitParams -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js deleted file mode 100644 index cacc336..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var matcher_exports = {}; -__export(matcher_exports, { - emptyParam: () => emptyParam, - match: () => match -}); -module.exports = __toCommonJS(matcher_exports); -var import_router = require("../../router"); -const emptyParam = []; -function match(method, path) { - const matchers = this.buildAllMatchers(); - const match2 = ((method2, path2) => { - const matcher = matchers[method2] || matchers[import_router.METHOD_NAME_ALL]; - const staticMatch = matcher[2][path2]; - if (staticMatch) { - return staticMatch; - } - const match3 = path2.match(matcher[0]); - if (!match3) { - return [[], emptyParam]; - } - const index = match3.indexOf("", 1); - return [matcher[1][index], match3]; - }); - this.match = match2; - return match2(method, path); -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - emptyParam, - match -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/node.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/node.js deleted file mode 100644 index c5486a9..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +++ /dev/null @@ -1,135 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var node_exports = {}; -__export(node_exports, { - Node: () => Node, - PATH_ERROR: () => PATH_ERROR -}); -module.exports = __toCommonJS(node_exports); -const LABEL_REG_EXP_STR = "[^/]+"; -const ONLY_WILDCARD_REG_EXP_STR = ".*"; -const TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)"; -const PATH_ERROR = /* @__PURE__ */ Symbol(); -const regExpMetaChars = new Set(".\\+*[^]$()"); -function compareKey(a, b) { - if (a.length === 1) { - return b.length === 1 ? a < b ? -1 : 1 : -1; - } - if (b.length === 1) { - return 1; - } - if (a === ONLY_WILDCARD_REG_EXP_STR || a === TAIL_WILDCARD_REG_EXP_STR) { - return 1; - } else if (b === ONLY_WILDCARD_REG_EXP_STR || b === TAIL_WILDCARD_REG_EXP_STR) { - return -1; - } - if (a === LABEL_REG_EXP_STR) { - return 1; - } else if (b === LABEL_REG_EXP_STR) { - return -1; - } - return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length; -} -class Node { - #index; - #varIndex; - #children = /* @__PURE__ */ Object.create(null); - insert(tokens, index, paramMap, context, pathErrorCheckOnly) { - if (tokens.length === 0) { - if (this.#index !== void 0) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - this.#index = index; - return; - } - const [token, ...restTokens] = tokens; - const pattern = token === "*" ? restTokens.length === 0 ? ["", "", ONLY_WILDCARD_REG_EXP_STR] : ["", "", LABEL_REG_EXP_STR] : token === "/*" ? ["", "", TAIL_WILDCARD_REG_EXP_STR] : token.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - let node; - if (pattern) { - const name = pattern[1]; - let regexpStr = pattern[2] || LABEL_REG_EXP_STR; - if (name && pattern[2]) { - if (regexpStr === ".*") { - throw PATH_ERROR; - } - regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:"); - if (/\((?!\?:)/.test(regexpStr)) { - throw PATH_ERROR; - } - } - node = this.#children[regexpStr]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[regexpStr] = new Node(); - if (name !== "") { - node.#varIndex = context.varIndex++; - } - } - if (!pathErrorCheckOnly && name !== "") { - paramMap.push([name, node.#varIndex]); - } - } else { - node = this.#children[token]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k.length > 1 && k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[token] = new Node(); - } - } - node.insert(restTokens, index, paramMap, context, pathErrorCheckOnly); - } - buildRegExpStr() { - const childKeys = Object.keys(this.#children).sort(compareKey); - const strList = childKeys.map((k) => { - const c = this.#children[k]; - return (typeof c.#varIndex === "number" ? `(${k})@${c.#varIndex}` : regExpMetaChars.has(k) ? `\\${k}` : k) + c.buildRegExpStr(); - }); - if (typeof this.#index === "number") { - strList.unshift(`#${this.#index}`); - } - if (strList.length === 0) { - return ""; - } - if (strList.length === 1) { - return strList[0]; - } - return "(?:" + strList.join("|") + ")"; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Node, - PATH_ERROR -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js deleted file mode 100644 index 6785515..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var prepared_router_exports = {}; -__export(prepared_router_exports, { - PreparedRegExpRouter: () => PreparedRegExpRouter, - buildInitParams: () => buildInitParams, - serializeInitParams: () => serializeInitParams -}); -module.exports = __toCommonJS(prepared_router_exports); -var import_router = require("../../router"); -var import_matcher = require("./matcher"); -var import_router2 = require("./router"); -class PreparedRegExpRouter { - name = "PreparedRegExpRouter"; - #matchers; - #relocateMap; - constructor(matchers, relocateMap) { - this.#matchers = matchers; - this.#relocateMap = relocateMap; - } - #addWildcard(method, handlerData) { - const matcher = this.#matchers[method]; - matcher[1].forEach((list) => list && list.push(handlerData)); - Object.values(matcher[2]).forEach((list) => list[0].push(handlerData)); - } - #addPath(method, path, handler, indexes, map) { - const matcher = this.#matchers[method]; - if (!map) { - matcher[2][path][0].push([handler, {}]); - } else { - indexes.forEach((index) => { - if (typeof index === "number") { - matcher[1][index].push([handler, map]); - } else { - ; - matcher[2][index || path][0].push([handler, map]); - } - }); - } - } - add(method, path, handler) { - if (!this.#matchers[method]) { - const all = this.#matchers[import_router.METHOD_NAME_ALL]; - const staticMap = {}; - for (const key in all[2]) { - staticMap[key] = [all[2][key][0].slice(), import_matcher.emptyParam]; - } - this.#matchers[method] = [ - all[0], - all[1].map((list) => Array.isArray(list) ? list.slice() : 0), - staticMap - ]; - } - if (path === "/*" || path === "*") { - const handlerData = [handler, {}]; - if (method === import_router.METHOD_NAME_ALL) { - for (const m in this.#matchers) { - this.#addWildcard(m, handlerData); - } - } else { - this.#addWildcard(method, handlerData); - } - return; - } - const data = this.#relocateMap[path]; - if (!data) { - throw new Error(`Path ${path} is not registered`); - } - for (const [indexes, map] of data) { - if (method === import_router.METHOD_NAME_ALL) { - for (const m in this.#matchers) { - this.#addPath(m, path, handler, indexes, map); - } - } else { - this.#addPath(method, path, handler, indexes, map); - } - } - } - buildAllMatchers() { - return this.#matchers; - } - match = import_matcher.match; -} -const buildInitParams = ({ paths }) => { - const RegExpRouterWithMatcherExport = class extends import_router2.RegExpRouter { - buildAndExportAllMatchers() { - return this.buildAllMatchers(); - } - }; - const router = new RegExpRouterWithMatcherExport(); - for (const path of paths) { - router.add(import_router.METHOD_NAME_ALL, path, path); - } - const matchers = router.buildAndExportAllMatchers(); - const all = matchers[import_router.METHOD_NAME_ALL]; - const relocateMap = {}; - for (const path of paths) { - if (path === "/*" || path === "*") { - continue; - } - all[1].forEach((list, i) => { - list.forEach(([p, map]) => { - if (p === path) { - if (relocateMap[path]) { - relocateMap[path][0][1] = { - ...relocateMap[path][0][1], - ...map - }; - } else { - relocateMap[path] = [[[], map]]; - } - if (relocateMap[path][0][0].findIndex((j) => j === i) === -1) { - relocateMap[path][0][0].push(i); - } - } - }); - }); - for (const path2 in all[2]) { - all[2][path2][0].forEach(([p]) => { - if (p === path) { - relocateMap[path] ||= [[[]]]; - const value = path2 === path ? "" : path2; - if (relocateMap[path][0][0].findIndex((v) => v === value) === -1) { - relocateMap[path][0][0].push(value); - } - } - }); - } - } - for (let i = 0, len = all[1].length; i < len; i++) { - all[1][i] = all[1][i] ? [] : 0; - } - for (const path in all[2]) { - all[2][path][0] = []; - } - return [matchers, relocateMap]; -}; -const serializeInitParams = ([matchers, relocateMap]) => { - const matchersStr = JSON.stringify( - matchers, - (_, value) => value instanceof RegExp ? `##${value.toString()}##` : value - ).replace(/"##(.+?)##"/g, (_, str) => str.replace(/\\\\/g, "\\")); - const relocateMapStr = JSON.stringify(relocateMap); - return `[${matchersStr},${relocateMapStr}]`; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - PreparedRegExpRouter, - buildInitParams, - serializeInitParams -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/router.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/router.js deleted file mode 100644 index 0b66be9..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +++ /dev/null @@ -1,209 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - RegExpRouter: () => RegExpRouter -}); -module.exports = __toCommonJS(router_exports); -var import_router = require("../../router"); -var import_url = require("../../utils/url"); -var import_matcher = require("./matcher"); -var import_node = require("./node"); -var import_trie = require("./trie"); -const nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)]; -let wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -function buildWildcardRegExp(path) { - return wildcardRegExpCache[path] ??= new RegExp( - path === "*" ? "" : `^${path.replace( - /\/\*$|([.\\+*[^\]$()])/g, - (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)" - )}$` - ); -} -function clearWildcardRegExpCache() { - wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -} -function buildMatcherFromPreprocessedRoutes(routes) { - const trie = new import_trie.Trie(); - const handlerData = []; - if (routes.length === 0) { - return nullMatcher; - } - const routesWithStaticPathFlag = routes.map( - (route) => [!/\*|\/:/.test(route[0]), ...route] - ).sort( - ([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length - ); - const staticMap = /* @__PURE__ */ Object.create(null); - for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) { - const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i]; - if (pathErrorCheckOnly) { - staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), import_matcher.emptyParam]; - } else { - j++; - } - let paramAssoc; - try { - paramAssoc = trie.insert(path, j, pathErrorCheckOnly); - } catch (e) { - throw e === import_node.PATH_ERROR ? new import_router.UnsupportedPathError(path) : e; - } - if (pathErrorCheckOnly) { - continue; - } - handlerData[j] = handlers.map(([h, paramCount]) => { - const paramIndexMap = /* @__PURE__ */ Object.create(null); - paramCount -= 1; - for (; paramCount >= 0; paramCount--) { - const [key, value] = paramAssoc[paramCount]; - paramIndexMap[key] = value; - } - return [h, paramIndexMap]; - }); - } - const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp(); - for (let i = 0, len = handlerData.length; i < len; i++) { - for (let j = 0, len2 = handlerData[i].length; j < len2; j++) { - const map = handlerData[i][j]?.[1]; - if (!map) { - continue; - } - const keys = Object.keys(map); - for (let k = 0, len3 = keys.length; k < len3; k++) { - map[keys[k]] = paramReplacementMap[map[keys[k]]]; - } - } - } - const handlerMap = []; - for (const i in indexReplacementMap) { - handlerMap[i] = handlerData[indexReplacementMap[i]]; - } - return [regexp, handlerMap, staticMap]; -} -function findMiddleware(middleware, path) { - if (!middleware) { - return void 0; - } - for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) { - if (buildWildcardRegExp(k).test(path)) { - return [...middleware[k]]; - } - } - return void 0; -} -class RegExpRouter { - name = "RegExpRouter"; - #middleware; - #routes; - constructor() { - this.#middleware = { [import_router.METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - this.#routes = { [import_router.METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - } - add(method, path, handler) { - const middleware = this.#middleware; - const routes = this.#routes; - if (!middleware || !routes) { - throw new Error(import_router.MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - if (!middleware[method]) { - ; - [middleware, routes].forEach((handlerMap) => { - handlerMap[method] = /* @__PURE__ */ Object.create(null); - Object.keys(handlerMap[import_router.METHOD_NAME_ALL]).forEach((p) => { - handlerMap[method][p] = [...handlerMap[import_router.METHOD_NAME_ALL][p]]; - }); - }); - } - if (path === "/*") { - path = "*"; - } - const paramCount = (path.match(/\/:/g) || []).length; - if (/\*$/.test(path)) { - const re = buildWildcardRegExp(path); - if (method === import_router.METHOD_NAME_ALL) { - Object.keys(middleware).forEach((m) => { - middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[import_router.METHOD_NAME_ALL], path) || []; - }); - } else { - middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[import_router.METHOD_NAME_ALL], path) || []; - } - Object.keys(middleware).forEach((m) => { - if (method === import_router.METHOD_NAME_ALL || method === m) { - Object.keys(middleware[m]).forEach((p) => { - re.test(p) && middleware[m][p].push([handler, paramCount]); - }); - } - }); - Object.keys(routes).forEach((m) => { - if (method === import_router.METHOD_NAME_ALL || method === m) { - Object.keys(routes[m]).forEach( - (p) => re.test(p) && routes[m][p].push([handler, paramCount]) - ); - } - }); - return; - } - const paths = (0, import_url.checkOptionalParameter)(path) || [path]; - for (let i = 0, len = paths.length; i < len; i++) { - const path2 = paths[i]; - Object.keys(routes).forEach((m) => { - if (method === import_router.METHOD_NAME_ALL || method === m) { - routes[m][path2] ||= [ - ...findMiddleware(middleware[m], path2) || findMiddleware(middleware[import_router.METHOD_NAME_ALL], path2) || [] - ]; - routes[m][path2].push([handler, paramCount - len + i + 1]); - } - }); - } - } - match = import_matcher.match; - buildAllMatchers() { - const matchers = /* @__PURE__ */ Object.create(null); - Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => { - matchers[method] ||= this.#buildMatcher(method); - }); - this.#middleware = this.#routes = void 0; - clearWildcardRegExpCache(); - return matchers; - } - #buildMatcher(method) { - const routes = []; - let hasOwnRoute = method === import_router.METHOD_NAME_ALL; - [this.#middleware, this.#routes].forEach((r) => { - const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : []; - if (ownRoute.length !== 0) { - hasOwnRoute ||= true; - routes.push(...ownRoute); - } else if (method !== import_router.METHOD_NAME_ALL) { - routes.push( - ...Object.keys(r[import_router.METHOD_NAME_ALL]).map((path) => [path, r[import_router.METHOD_NAME_ALL][path]]) - ); - } - }); - if (!hasOwnRoute) { - return null; - } else { - return buildMatcherFromPreprocessedRoutes(routes); - } - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - RegExpRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js b/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js deleted file mode 100644 index 70754e1..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var trie_exports = {}; -__export(trie_exports, { - Trie: () => Trie -}); -module.exports = __toCommonJS(trie_exports); -var import_node = require("./node"); -class Trie { - #context = { varIndex: 0 }; - #root = new import_node.Node(); - insert(path, index, pathErrorCheckOnly) { - const paramAssoc = []; - const groups = []; - for (let i = 0; ; ) { - let replaced = false; - path = path.replace(/\{[^}]+\}/g, (m) => { - const mark = `@\\${i}`; - groups[i] = [mark, m]; - i++; - replaced = true; - return mark; - }); - if (!replaced) { - break; - } - } - const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || []; - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = tokens.length - 1; j >= 0; j--) { - if (tokens[j].indexOf(mark) !== -1) { - tokens[j] = tokens[j].replace(mark, groups[i][1]); - break; - } - } - } - this.#root.insert(tokens, index, paramAssoc, this.#context, pathErrorCheckOnly); - return paramAssoc; - } - buildRegExp() { - let regexp = this.#root.buildRegExpStr(); - if (regexp === "") { - return [/^$/, [], []]; - } - let captureIndex = 0; - const indexReplacementMap = []; - const paramReplacementMap = []; - regexp = regexp.replace(/#(\d+)|@(\d+)|\.\*\$/g, (_, handlerIndex, paramIndex) => { - if (handlerIndex !== void 0) { - indexReplacementMap[++captureIndex] = Number(handlerIndex); - return "$()"; - } - if (paramIndex !== void 0) { - paramReplacementMap[Number(paramIndex)] = ++captureIndex; - return ""; - } - return ""; - }); - return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap]; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Trie -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/smart-router/index.js b/mcp-server/node_modules/hono/dist/cjs/router/smart-router/index.js deleted file mode 100644 index 1d31883..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/smart-router/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var smart_router_exports = {}; -__export(smart_router_exports, { - SmartRouter: () => import_router.SmartRouter -}); -module.exports = __toCommonJS(smart_router_exports); -var import_router = require("./router"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SmartRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/smart-router/router.js b/mcp-server/node_modules/hono/dist/cjs/router/smart-router/router.js deleted file mode 100644 index 2e43178..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/smart-router/router.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - SmartRouter: () => SmartRouter -}); -module.exports = __toCommonJS(router_exports); -var import_router = require("../../router"); -class SmartRouter { - name = "SmartRouter"; - #routers = []; - #routes = []; - constructor(init) { - this.#routers = init.routers; - } - add(method, path, handler) { - if (!this.#routes) { - throw new Error(import_router.MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - this.#routes.push([method, path, handler]); - } - match(method, path) { - if (!this.#routes) { - throw new Error("Fatal error"); - } - const routers = this.#routers; - const routes = this.#routes; - const len = routers.length; - let i = 0; - let res; - for (; i < len; i++) { - const router = routers[i]; - try { - for (let i2 = 0, len2 = routes.length; i2 < len2; i2++) { - router.add(...routes[i2]); - } - res = router.match(method, path); - } catch (e) { - if (e instanceof import_router.UnsupportedPathError) { - continue; - } - throw e; - } - this.match = router.match.bind(router); - this.#routers = [router]; - this.#routes = void 0; - break; - } - if (i === len) { - throw new Error("Fatal error"); - } - this.name = `SmartRouter + ${this.activeRouter.name}`; - return res; - } - get activeRouter() { - if (this.#routes || this.#routers.length !== 1) { - throw new Error("No active router has been determined yet."); - } - return this.#routers[0]; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SmartRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/index.js b/mcp-server/node_modules/hono/dist/cjs/router/trie-router/index.js deleted file mode 100644 index feaeadb..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var trie_router_exports = {}; -__export(trie_router_exports, { - TrieRouter: () => import_router.TrieRouter -}); -module.exports = __toCommonJS(trie_router_exports); -var import_router = require("./router"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - TrieRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/node.js b/mcp-server/node_modules/hono/dist/cjs/router/trie-router/node.js deleted file mode 100644 index e41f3d0..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/node.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var node_exports = {}; -__export(node_exports, { - Node: () => Node -}); -module.exports = __toCommonJS(node_exports); -var import_router = require("../../router"); -var import_url = require("../../utils/url"); -const emptyParams = /* @__PURE__ */ Object.create(null); -class Node { - #methods; - #children; - #patterns; - #order = 0; - #params = emptyParams; - constructor(method, handler, children) { - this.#children = children || /* @__PURE__ */ Object.create(null); - this.#methods = []; - if (method && handler) { - const m = /* @__PURE__ */ Object.create(null); - m[method] = { handler, possibleKeys: [], score: 0 }; - this.#methods = [m]; - } - this.#patterns = []; - } - insert(method, path, handler) { - this.#order = ++this.#order; - let curNode = this; - const parts = (0, import_url.splitRoutingPath)(path); - const possibleKeys = []; - for (let i = 0, len = parts.length; i < len; i++) { - const p = parts[i]; - const nextP = parts[i + 1]; - const pattern = (0, import_url.getPattern)(p, nextP); - const key = Array.isArray(pattern) ? pattern[0] : p; - if (key in curNode.#children) { - curNode = curNode.#children[key]; - if (pattern) { - possibleKeys.push(pattern[1]); - } - continue; - } - curNode.#children[key] = new Node(); - if (pattern) { - curNode.#patterns.push(pattern); - possibleKeys.push(pattern[1]); - } - curNode = curNode.#children[key]; - } - curNode.#methods.push({ - [method]: { - handler, - possibleKeys: possibleKeys.filter((v, i, a) => a.indexOf(v) === i), - score: this.#order - } - }); - return curNode; - } - #getHandlerSets(node, method, nodeParams, params) { - const handlerSets = []; - for (let i = 0, len = node.#methods.length; i < len; i++) { - const m = node.#methods[i]; - const handlerSet = m[method] || m[import_router.METHOD_NAME_ALL]; - const processedSet = {}; - if (handlerSet !== void 0) { - handlerSet.params = /* @__PURE__ */ Object.create(null); - handlerSets.push(handlerSet); - if (nodeParams !== emptyParams || params && params !== emptyParams) { - for (let i2 = 0, len2 = handlerSet.possibleKeys.length; i2 < len2; i2++) { - const key = handlerSet.possibleKeys[i2]; - const processed = processedSet[handlerSet.score]; - handlerSet.params[key] = params?.[key] && !processed ? params[key] : nodeParams[key] ?? params?.[key]; - processedSet[handlerSet.score] = true; - } - } - } - } - return handlerSets; - } - search(method, path) { - const handlerSets = []; - this.#params = emptyParams; - const curNode = this; - let curNodes = [curNode]; - const parts = (0, import_url.splitPath)(path); - const curNodesQueue = []; - for (let i = 0, len = parts.length; i < len; i++) { - const part = parts[i]; - const isLast = i === len - 1; - const tempNodes = []; - for (let j = 0, len2 = curNodes.length; j < len2; j++) { - const node = curNodes[j]; - const nextNode = node.#children[part]; - if (nextNode) { - nextNode.#params = node.#params; - if (isLast) { - if (nextNode.#children["*"]) { - handlerSets.push( - ...this.#getHandlerSets(nextNode.#children["*"], method, node.#params) - ); - } - handlerSets.push(...this.#getHandlerSets(nextNode, method, node.#params)); - } else { - tempNodes.push(nextNode); - } - } - for (let k = 0, len3 = node.#patterns.length; k < len3; k++) { - const pattern = node.#patterns[k]; - const params = node.#params === emptyParams ? {} : { ...node.#params }; - if (pattern === "*") { - const astNode = node.#children["*"]; - if (astNode) { - handlerSets.push(...this.#getHandlerSets(astNode, method, node.#params)); - astNode.#params = params; - tempNodes.push(astNode); - } - continue; - } - const [key, name, matcher] = pattern; - if (!part && !(matcher instanceof RegExp)) { - continue; - } - const child = node.#children[key]; - const restPathString = parts.slice(i).join("/"); - if (matcher instanceof RegExp) { - const m = matcher.exec(restPathString); - if (m) { - params[name] = m[0]; - handlerSets.push(...this.#getHandlerSets(child, method, node.#params, params)); - if (Object.keys(child.#children).length) { - child.#params = params; - const componentCount = m[0].match(/\//)?.length ?? 0; - const targetCurNodes = curNodesQueue[componentCount] ||= []; - targetCurNodes.push(child); - } - continue; - } - } - if (matcher === true || matcher.test(part)) { - params[name] = part; - if (isLast) { - handlerSets.push(...this.#getHandlerSets(child, method, params, node.#params)); - if (child.#children["*"]) { - handlerSets.push( - ...this.#getHandlerSets(child.#children["*"], method, params, node.#params) - ); - } - } else { - child.#params = params; - tempNodes.push(child); - } - } - } - } - curNodes = tempNodes.concat(curNodesQueue.shift() ?? []); - } - if (handlerSets.length > 1) { - handlerSets.sort((a, b) => { - return a.score - b.score; - }); - } - return [handlerSets.map(({ handler, params }) => [handler, params])]; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Node -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/router.js b/mcp-server/node_modules/hono/dist/cjs/router/trie-router/router.js deleted file mode 100644 index 9c2133f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/router/trie-router/router.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var router_exports = {}; -__export(router_exports, { - TrieRouter: () => TrieRouter -}); -module.exports = __toCommonJS(router_exports); -var import_url = require("../../utils/url"); -var import_node = require("./node"); -class TrieRouter { - name = "TrieRouter"; - #node; - constructor() { - this.#node = new import_node.Node(); - } - add(method, path, handler) { - const results = (0, import_url.checkOptionalParameter)(path); - if (results) { - for (let i = 0, len = results.length; i < len; i++) { - this.#node.insert(method, results[i], handler); - } - return; - } - this.#node.insert(method, path, handler); - } - match(method, path) { - return this.#node.search(method, path); - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - TrieRouter -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/types.js b/mcp-server/node_modules/hono/dist/cjs/types.js deleted file mode 100644 index 2daf730..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/types.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var types_exports = {}; -__export(types_exports, { - FetchEventLike: () => FetchEventLike -}); -module.exports = __toCommonJS(types_exports); -class FetchEventLike { -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - FetchEventLike -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/accept.js b/mcp-server/node_modules/hono/dist/cjs/utils/accept.js deleted file mode 100644 index d717757..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/accept.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var accept_exports = {}; -__export(accept_exports, { - parseAccept: () => parseAccept -}); -module.exports = __toCommonJS(accept_exports); -const parseAccept = (acceptHeader) => { - if (!acceptHeader) { - return []; - } - const acceptValues = acceptHeader.split(",").map((value, index) => ({ value, index })); - return acceptValues.map(parseAcceptValue).filter((item) => Boolean(item)).sort(sortByQualityAndIndex).map(({ type, params, q }) => ({ type, params, q })); -}; -const parseAcceptValueRegex = /;(?=(?:(?:[^"]*"){2})*[^"]*$)/; -const parseAcceptValue = ({ value, index }) => { - const parts = value.trim().split(parseAcceptValueRegex).map((s) => s.trim()); - const type = parts[0]; - if (!type) { - return null; - } - const params = parseParams(parts.slice(1)); - const q = parseQuality(params.q); - return { type, params, q, index }; -}; -const parseParams = (paramParts) => { - return paramParts.reduce((acc, param) => { - const [key, val] = param.split("=").map((s) => s.trim()); - if (key && val) { - acc[key] = val; - } - return acc; - }, {}); -}; -const parseQuality = (qVal) => { - if (qVal === void 0) { - return 1; - } - if (qVal === "") { - return 1; - } - if (qVal === "NaN") { - return 0; - } - const num = Number(qVal); - if (num === Infinity) { - return 1; - } - if (num === -Infinity) { - return 0; - } - if (Number.isNaN(num)) { - return 1; - } - if (num < 0 || num > 1) { - return 1; - } - return num; -}; -const sortByQualityAndIndex = (a, b) => { - const qDiff = b.q - a.q; - if (qDiff !== 0) { - return qDiff; - } - return a.index - b.index; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - parseAccept -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/basic-auth.js b/mcp-server/node_modules/hono/dist/cjs/utils/basic-auth.js deleted file mode 100644 index a8d4719..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/basic-auth.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var basic_auth_exports = {}; -__export(basic_auth_exports, { - auth: () => auth -}); -module.exports = __toCommonJS(basic_auth_exports); -var import_encode = require("./encode"); -const CREDENTIALS_REGEXP = /^ *(?:[Bb][Aa][Ss][Ii][Cc]) +([A-Za-z0-9._~+/-]+=*) *$/; -const USER_PASS_REGEXP = /^([^:]*):(.*)$/; -const utf8Decoder = new TextDecoder(); -const auth = (req) => { - const match = CREDENTIALS_REGEXP.exec(req.headers.get("Authorization") || ""); - if (!match) { - return void 0; - } - let userPass = void 0; - try { - userPass = USER_PASS_REGEXP.exec(utf8Decoder.decode((0, import_encode.decodeBase64)(match[1]))); - } catch { - } - if (!userPass) { - return void 0; - } - return { username: userPass[1], password: userPass[2] }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - auth -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/body.js b/mcp-server/node_modules/hono/dist/cjs/utils/body.js deleted file mode 100644 index cbcb761..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/body.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var body_exports = {}; -__export(body_exports, { - parseBody: () => parseBody -}); -module.exports = __toCommonJS(body_exports); -var import_request = require("../request"); -const parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => { - const { all = false, dot = false } = options; - const headers = request instanceof import_request.HonoRequest ? request.raw.headers : request.headers; - const contentType = headers.get("Content-Type"); - if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) { - return parseFormData(request, { all, dot }); - } - return {}; -}; -async function parseFormData(request, options) { - const formData = await request.formData(); - if (formData) { - return convertFormDataToBodyData(formData, options); - } - return {}; -} -function convertFormDataToBodyData(formData, options) { - const form = /* @__PURE__ */ Object.create(null); - formData.forEach((value, key) => { - const shouldParseAllValues = options.all || key.endsWith("[]"); - if (!shouldParseAllValues) { - form[key] = value; - } else { - handleParsingAllValues(form, key, value); - } - }); - if (options.dot) { - Object.entries(form).forEach(([key, value]) => { - const shouldParseDotValues = key.includes("."); - if (shouldParseDotValues) { - handleParsingNestedValues(form, key, value); - delete form[key]; - } - }); - } - return form; -} -const handleParsingAllValues = (form, key, value) => { - if (form[key] !== void 0) { - if (Array.isArray(form[key])) { - ; - form[key].push(value); - } else { - form[key] = [form[key], value]; - } - } else { - if (!key.endsWith("[]")) { - form[key] = value; - } else { - form[key] = [value]; - } - } -}; -const handleParsingNestedValues = (form, key, value) => { - let nestedForm = form; - const keys = key.split("."); - keys.forEach((key2, index) => { - if (index === keys.length - 1) { - nestedForm[key2] = value; - } else { - if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) { - nestedForm[key2] = /* @__PURE__ */ Object.create(null); - } - nestedForm = nestedForm[key2]; - } - }); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - parseBody -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/buffer.js b/mcp-server/node_modules/hono/dist/cjs/utils/buffer.js deleted file mode 100644 index fbd826f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/buffer.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var buffer_exports = {}; -__export(buffer_exports, { - bufferToFormData: () => bufferToFormData, - bufferToString: () => bufferToString, - equal: () => equal, - timingSafeEqual: () => timingSafeEqual -}); -module.exports = __toCommonJS(buffer_exports); -var import_crypto = require("./crypto"); -const equal = (a, b) => { - if (a === b) { - return true; - } - if (a.byteLength !== b.byteLength) { - return false; - } - const va = new DataView(a); - const vb = new DataView(b); - let i = va.byteLength; - while (i--) { - if (va.getUint8(i) !== vb.getUint8(i)) { - return false; - } - } - return true; -}; -const timingSafeEqual = async (a, b, hashFunction) => { - if (!hashFunction) { - hashFunction = import_crypto.sha256; - } - const [sa, sb] = await Promise.all([hashFunction(a), hashFunction(b)]); - if (!sa || !sb) { - return false; - } - return sa === sb && a === b; -}; -const bufferToString = (buffer) => { - if (buffer instanceof ArrayBuffer) { - const enc = new TextDecoder("utf-8"); - return enc.decode(buffer); - } - return buffer; -}; -const bufferToFormData = (arrayBuffer, contentType) => { - const response = new Response(arrayBuffer, { - headers: { - "Content-Type": contentType - } - }); - return response.formData(); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - bufferToFormData, - bufferToString, - equal, - timingSafeEqual -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/color.js b/mcp-server/node_modules/hono/dist/cjs/utils/color.js deleted file mode 100644 index 9383515..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/color.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var color_exports = {}; -__export(color_exports, { - getColorEnabled: () => getColorEnabled, - getColorEnabledAsync: () => getColorEnabledAsync -}); -module.exports = __toCommonJS(color_exports); -function getColorEnabled() { - const { process, Deno } = globalThis; - const isNoColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : process !== void 0 ? ( - // eslint-disable-next-line no-unsafe-optional-chaining - "NO_COLOR" in process?.env - ) : false; - return !isNoColor; -} -async function getColorEnabledAsync() { - const { navigator } = globalThis; - const cfWorkers = "cloudflare:workers"; - const isNoColor = navigator !== void 0 && navigator.userAgent === "Cloudflare-Workers" ? await (async () => { - try { - return "NO_COLOR" in ((await import(cfWorkers)).env ?? {}); - } catch { - return false; - } - })() : !getColorEnabled(); - return !isNoColor; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getColorEnabled, - getColorEnabledAsync -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/compress.js b/mcp-server/node_modules/hono/dist/cjs/utils/compress.js deleted file mode 100644 index a7c2098..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/compress.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var compress_exports = {}; -__export(compress_exports, { - COMPRESSIBLE_CONTENT_TYPE_REGEX: () => COMPRESSIBLE_CONTENT_TYPE_REGEX -}); -module.exports = __toCommonJS(compress_exports); -const COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/(?!event-stream(?:[;\s]|$))[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - COMPRESSIBLE_CONTENT_TYPE_REGEX -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/concurrent.js b/mcp-server/node_modules/hono/dist/cjs/utils/concurrent.js deleted file mode 100644 index 56fa28d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/concurrent.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var concurrent_exports = {}; -__export(concurrent_exports, { - createPool: () => createPool -}); -module.exports = __toCommonJS(concurrent_exports); -const DEFAULT_CONCURRENCY = 1024; -const createPool = ({ - concurrency, - interval -} = {}) => { - concurrency ||= DEFAULT_CONCURRENCY; - if (concurrency === Infinity) { - return { - run: async (fn) => fn() - }; - } - const pool = /* @__PURE__ */ new Set(); - const run = async (fn, promise, resolve) => { - if (pool.size >= concurrency) { - promise ||= new Promise((r) => resolve = r); - setTimeout(() => run(fn, promise, resolve)); - return promise; - } - const marker = {}; - pool.add(marker); - const result = await fn(); - if (interval) { - setTimeout(() => pool.delete(marker), interval); - } else { - pool.delete(marker); - } - if (resolve) { - resolve(result); - return promise; - } else { - return result; - } - }; - return { run }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createPool -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/constants.js b/mcp-server/node_modules/hono/dist/cjs/utils/constants.js deleted file mode 100644 index 08c127f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/constants.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var constants_exports = {}; -__export(constants_exports, { - COMPOSED_HANDLER: () => COMPOSED_HANDLER -}); -module.exports = __toCommonJS(constants_exports); -const COMPOSED_HANDLER = "__COMPOSED_HANDLER"; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - COMPOSED_HANDLER -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/cookie.js b/mcp-server/node_modules/hono/dist/cjs/utils/cookie.js deleted file mode 100644 index e8f1134..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/cookie.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var cookie_exports = {}; -__export(cookie_exports, { - parse: () => parse, - parseSigned: () => parseSigned, - serialize: () => serialize, - serializeSigned: () => serializeSigned -}); -module.exports = __toCommonJS(cookie_exports); -var import_url = require("./url"); -const algorithm = { name: "HMAC", hash: "SHA-256" }; -const getCryptoKey = async (secret) => { - const secretBuf = typeof secret === "string" ? new TextEncoder().encode(secret) : secret; - return await crypto.subtle.importKey("raw", secretBuf, algorithm, false, ["sign", "verify"]); -}; -const makeSignature = async (value, secret) => { - const key = await getCryptoKey(secret); - const signature = await crypto.subtle.sign(algorithm.name, key, new TextEncoder().encode(value)); - return btoa(String.fromCharCode(...new Uint8Array(signature))); -}; -const verifySignature = async (base64Signature, value, secret) => { - try { - const signatureBinStr = atob(base64Signature); - const signature = new Uint8Array(signatureBinStr.length); - for (let i = 0, len = signatureBinStr.length; i < len; i++) { - signature[i] = signatureBinStr.charCodeAt(i); - } - return await crypto.subtle.verify(algorithm, secret, signature, new TextEncoder().encode(value)); - } catch { - return false; - } -}; -const validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/; -const validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/; -const parse = (cookie, name) => { - if (name && cookie.indexOf(name) === -1) { - return {}; - } - const pairs = cookie.trim().split(";"); - const parsedCookie = {}; - for (let pairStr of pairs) { - pairStr = pairStr.trim(); - const valueStartPos = pairStr.indexOf("="); - if (valueStartPos === -1) { - continue; - } - const cookieName = pairStr.substring(0, valueStartPos).trim(); - if (name && name !== cookieName || !validCookieNameRegEx.test(cookieName)) { - continue; - } - let cookieValue = pairStr.substring(valueStartPos + 1).trim(); - if (cookieValue.startsWith('"') && cookieValue.endsWith('"')) { - cookieValue = cookieValue.slice(1, -1); - } - if (validCookieValueRegEx.test(cookieValue)) { - parsedCookie[cookieName] = cookieValue.indexOf("%") !== -1 ? (0, import_url.tryDecode)(cookieValue, import_url.decodeURIComponent_) : cookieValue; - if (name) { - break; - } - } - } - return parsedCookie; -}; -const parseSigned = async (cookie, secret, name) => { - const parsedCookie = {}; - const secretKey = await getCryptoKey(secret); - for (const [key, value] of Object.entries(parse(cookie, name))) { - const signatureStartPos = value.lastIndexOf("."); - if (signatureStartPos < 1) { - continue; - } - const signedValue = value.substring(0, signatureStartPos); - const signature = value.substring(signatureStartPos + 1); - if (signature.length !== 44 || !signature.endsWith("=")) { - continue; - } - const isVerified = await verifySignature(signature, signedValue, secretKey); - parsedCookie[key] = isVerified ? signedValue : false; - } - return parsedCookie; -}; -const _serialize = (name, value, opt = {}) => { - let cookie = `${name}=${value}`; - if (name.startsWith("__Secure-") && !opt.secure) { - throw new Error("__Secure- Cookie must have Secure attributes"); - } - if (name.startsWith("__Host-")) { - if (!opt.secure) { - throw new Error("__Host- Cookie must have Secure attributes"); - } - if (opt.path !== "/") { - throw new Error('__Host- Cookie must have Path attributes with "/"'); - } - if (opt.domain) { - throw new Error("__Host- Cookie must not have Domain attributes"); - } - } - if (opt && typeof opt.maxAge === "number" && opt.maxAge >= 0) { - if (opt.maxAge > 3456e4) { - throw new Error( - "Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration." - ); - } - cookie += `; Max-Age=${opt.maxAge | 0}`; - } - if (opt.domain && opt.prefix !== "host") { - cookie += `; Domain=${opt.domain}`; - } - if (opt.path) { - cookie += `; Path=${opt.path}`; - } - if (opt.expires) { - if (opt.expires.getTime() - Date.now() > 3456e7) { - throw new Error( - "Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future." - ); - } - cookie += `; Expires=${opt.expires.toUTCString()}`; - } - if (opt.httpOnly) { - cookie += "; HttpOnly"; - } - if (opt.secure) { - cookie += "; Secure"; - } - if (opt.sameSite) { - cookie += `; SameSite=${opt.sameSite.charAt(0).toUpperCase() + opt.sameSite.slice(1)}`; - } - if (opt.priority) { - cookie += `; Priority=${opt.priority.charAt(0).toUpperCase() + opt.priority.slice(1)}`; - } - if (opt.partitioned) { - if (!opt.secure) { - throw new Error("Partitioned Cookie must have Secure attributes"); - } - cookie += "; Partitioned"; - } - return cookie; -}; -const serialize = (name, value, opt) => { - value = encodeURIComponent(value); - return _serialize(name, value, opt); -}; -const serializeSigned = async (name, value, secret, opt = {}) => { - const signature = await makeSignature(value, secret); - value = `${value}.${signature}`; - value = encodeURIComponent(value); - return _serialize(name, value, opt); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - parse, - parseSigned, - serialize, - serializeSigned -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/crypto.js b/mcp-server/node_modules/hono/dist/cjs/utils/crypto.js deleted file mode 100644 index 90e3757..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/crypto.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var crypto_exports = {}; -__export(crypto_exports, { - createHash: () => createHash, - md5: () => md5, - sha1: () => sha1, - sha256: () => sha256 -}); -module.exports = __toCommonJS(crypto_exports); -const sha256 = async (data) => { - const algorithm = { name: "SHA-256", alias: "sha256" }; - const hash = await createHash(data, algorithm); - return hash; -}; -const sha1 = async (data) => { - const algorithm = { name: "SHA-1", alias: "sha1" }; - const hash = await createHash(data, algorithm); - return hash; -}; -const md5 = async (data) => { - const algorithm = { name: "MD5", alias: "md5" }; - const hash = await createHash(data, algorithm); - return hash; -}; -const createHash = async (data, algorithm) => { - let sourceBuffer; - if (ArrayBuffer.isView(data) || data instanceof ArrayBuffer) { - sourceBuffer = data; - } else { - if (typeof data === "object") { - data = JSON.stringify(data); - } - sourceBuffer = new TextEncoder().encode(String(data)); - } - if (crypto && crypto.subtle) { - const buffer = await crypto.subtle.digest( - { - name: algorithm.name - }, - sourceBuffer - ); - const hash = Array.prototype.map.call(new Uint8Array(buffer), (x) => ("00" + x.toString(16)).slice(-2)).join(""); - return hash; - } - return null; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - createHash, - md5, - sha1, - sha256 -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/encode.js b/mcp-server/node_modules/hono/dist/cjs/utils/encode.js deleted file mode 100644 index dcb6469..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/encode.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var encode_exports = {}; -__export(encode_exports, { - decodeBase64: () => decodeBase64, - decodeBase64Url: () => decodeBase64Url, - encodeBase64: () => encodeBase64, - encodeBase64Url: () => encodeBase64Url -}); -module.exports = __toCommonJS(encode_exports); -const decodeBase64Url = (str) => { - return decodeBase64(str.replace(/_|-/g, (m) => ({ _: "/", "-": "+" })[m] ?? m)); -}; -const encodeBase64Url = (buf) => encodeBase64(buf).replace(/\/|\+/g, (m) => ({ "/": "_", "+": "-" })[m] ?? m); -const encodeBase64 = (buf) => { - let binary = ""; - const bytes = new Uint8Array(buf); - for (let i = 0, len = bytes.length; i < len; i++) { - binary += String.fromCharCode(bytes[i]); - } - return btoa(binary); -}; -const decodeBase64 = (str) => { - const binary = atob(str); - const bytes = new Uint8Array(new ArrayBuffer(binary.length)); - const half = binary.length / 2; - for (let i = 0, j = binary.length - 1; i <= half; i++, j--) { - bytes[i] = binary.charCodeAt(i); - bytes[j] = binary.charCodeAt(j); - } - return bytes; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - decodeBase64, - decodeBase64Url, - encodeBase64, - encodeBase64Url -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/filepath.js b/mcp-server/node_modules/hono/dist/cjs/utils/filepath.js deleted file mode 100644 index 59b6ff6..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/filepath.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var filepath_exports = {}; -__export(filepath_exports, { - getFilePath: () => getFilePath, - getFilePathWithoutDefaultDocument: () => getFilePathWithoutDefaultDocument -}); -module.exports = __toCommonJS(filepath_exports); -const getFilePath = (options) => { - let filename = options.filename; - const defaultDocument = options.defaultDocument || "index.html"; - if (filename.endsWith("/")) { - filename = filename.concat(defaultDocument); - } else if (!filename.match(/\.[a-zA-Z0-9_-]+$/)) { - filename = filename.concat("/" + defaultDocument); - } - const path = getFilePathWithoutDefaultDocument({ - root: options.root, - filename - }); - return path; -}; -const getFilePathWithoutDefaultDocument = (options) => { - let root = options.root || ""; - let filename = options.filename; - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - return; - } - filename = filename.replace(/^\.?[\/\\]/, ""); - filename = filename.replace(/\\/, "/"); - root = root.replace(/\/$/, ""); - let path = root ? root + "/" + filename : filename; - path = path.replace(/^\.?\//, ""); - if (root[0] !== "/" && path[0] === "/") { - return; - } - return path; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getFilePath, - getFilePathWithoutDefaultDocument -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/handler.js b/mcp-server/node_modules/hono/dist/cjs/utils/handler.js deleted file mode 100644 index c3d51da..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/handler.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var handler_exports = {}; -__export(handler_exports, { - findTargetHandler: () => findTargetHandler, - isMiddleware: () => isMiddleware -}); -module.exports = __toCommonJS(handler_exports); -var import_constants = require("./constants"); -const isMiddleware = (handler) => handler.length > 1; -const findTargetHandler = (handler) => { - return handler[import_constants.COMPOSED_HANDLER] ? ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - findTargetHandler(handler[import_constants.COMPOSED_HANDLER]) - ) : handler; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - findTargetHandler, - isMiddleware -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/headers.js b/mcp-server/node_modules/hono/dist/cjs/utils/headers.js deleted file mode 100644 index e58ee38..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/headers.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var headers_exports = {}; -module.exports = __toCommonJS(headers_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/html.js b/mcp-server/node_modules/hono/dist/cjs/utils/html.js deleted file mode 100644 index 508c4be..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/html.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var html_exports = {}; -__export(html_exports, { - HtmlEscapedCallbackPhase: () => HtmlEscapedCallbackPhase, - escapeToBuffer: () => escapeToBuffer, - raw: () => raw, - resolveCallback: () => resolveCallback, - resolveCallbackSync: () => resolveCallbackSync, - stringBufferToString: () => stringBufferToString -}); -module.exports = __toCommonJS(html_exports); -const HtmlEscapedCallbackPhase = { - Stringify: 1, - BeforeStream: 2, - Stream: 3 -}; -const raw = (value, callbacks) => { - const escapedString = new String(value); - escapedString.isEscaped = true; - escapedString.callbacks = callbacks; - return escapedString; -}; -const escapeRe = /[&<>'"]/; -const stringBufferToString = async (buffer, callbacks) => { - let str = ""; - callbacks ||= []; - const resolvedBuffer = await Promise.all(buffer); - for (let i = resolvedBuffer.length - 1; ; i--) { - str += resolvedBuffer[i]; - i--; - if (i < 0) { - break; - } - let r = resolvedBuffer[i]; - if (typeof r === "object") { - callbacks.push(...r.callbacks || []); - } - const isEscaped = r.isEscaped; - r = await (typeof r === "object" ? r.toString() : r); - if (typeof r === "object") { - callbacks.push(...r.callbacks || []); - } - if (r.isEscaped ?? isEscaped) { - str += r; - } else { - const buf = [str]; - escapeToBuffer(r, buf); - str = buf[0]; - } - } - return raw(str, callbacks); -}; -const escapeToBuffer = (str, buffer) => { - const match = str.search(escapeRe); - if (match === -1) { - buffer[0] += str; - return; - } - let escape; - let index; - let lastIndex = 0; - for (index = match; index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape = """; - break; - case 39: - escape = "'"; - break; - case 38: - escape = "&"; - break; - case 60: - escape = "<"; - break; - case 62: - escape = ">"; - break; - default: - continue; - } - buffer[0] += str.substring(lastIndex, index) + escape; - lastIndex = index + 1; - } - buffer[0] += str.substring(lastIndex, index); -}; -const resolveCallbackSync = (str) => { - const callbacks = str.callbacks; - if (!callbacks?.length) { - return str; - } - const buffer = [str]; - const context = {}; - callbacks.forEach((c) => c({ phase: HtmlEscapedCallbackPhase.Stringify, buffer, context })); - return buffer[0]; -}; -const resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => { - if (typeof str === "object" && !(str instanceof String)) { - if (!(str instanceof Promise)) { - str = str.toString(); - } - if (str instanceof Promise) { - str = await str; - } - } - const callbacks = str.callbacks; - if (!callbacks?.length) { - return Promise.resolve(str); - } - if (buffer) { - buffer[0] += str; - } else { - buffer = [str]; - } - const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context }))).then( - (res) => Promise.all( - res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context, buffer)) - ).then(() => buffer[0]) - ); - if (preserveCallbacks) { - return raw(await resStr, callbacks); - } else { - return resStr; - } -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - HtmlEscapedCallbackPhase, - escapeToBuffer, - raw, - resolveCallback, - resolveCallbackSync, - stringBufferToString -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/http-status.js b/mcp-server/node_modules/hono/dist/cjs/utils/http-status.js deleted file mode 100644 index cbc154b..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/http-status.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var http_status_exports = {}; -module.exports = __toCommonJS(http_status_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/ipaddr.js b/mcp-server/node_modules/hono/dist/cjs/utils/ipaddr.js deleted file mode 100644 index 29d67b2..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/ipaddr.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var ipaddr_exports = {}; -__export(ipaddr_exports, { - convertIPv4BinaryToString: () => convertIPv4BinaryToString, - convertIPv4ToBinary: () => convertIPv4ToBinary, - convertIPv6BinaryToString: () => convertIPv6BinaryToString, - convertIPv6ToBinary: () => convertIPv6ToBinary, - distinctRemoteAddr: () => distinctRemoteAddr, - expandIPv6: () => expandIPv6 -}); -module.exports = __toCommonJS(ipaddr_exports); -const expandIPv6 = (ipV6) => { - const sections = ipV6.split(":"); - if (IPV4_REGEX.test(sections.at(-1))) { - sections.splice( - -1, - 1, - ...convertIPv6BinaryToString(convertIPv4ToBinary(sections.at(-1))).substring(2).split(":") - // => ['7f00', '0001'] - ); - } - for (let i = 0; i < sections.length; i++) { - const node = sections[i]; - if (node !== "") { - sections[i] = node.padStart(4, "0"); - } else { - sections[i + 1] === "" && sections.splice(i + 1, 1); - sections[i] = new Array(8 - sections.length + 1).fill("0000").join(":"); - } - } - return sections.join(":"); -}; -const IPV4_REGEX = /^[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}$/; -const distinctRemoteAddr = (remoteAddr) => { - if (IPV4_REGEX.test(remoteAddr)) { - return "IPv4"; - } - if (remoteAddr.includes(":")) { - return "IPv6"; - } -}; -const convertIPv4ToBinary = (ipv4) => { - const parts = ipv4.split("."); - let result = 0n; - for (let i = 0; i < 4; i++) { - result <<= 8n; - result += BigInt(parts[i]); - } - return result; -}; -const convertIPv6ToBinary = (ipv6) => { - const sections = expandIPv6(ipv6).split(":"); - let result = 0n; - for (let i = 0; i < 8; i++) { - result <<= 16n; - result += BigInt(parseInt(sections[i], 16)); - } - return result; -}; -const convertIPv4BinaryToString = (ipV4) => { - const sections = []; - for (let i = 0; i < 4; i++) { - sections.push(ipV4 >> BigInt(8 * (3 - i)) & 0xffn); - } - return sections.join("."); -}; -const convertIPv6BinaryToString = (ipV6) => { - if (ipV6 >> 32n === 0xffffn) { - return `::ffff:${convertIPv4BinaryToString(ipV6 & 0xffffffffn)}`; - } - const sections = []; - for (let i = 0; i < 8; i++) { - sections.push((ipV6 >> BigInt(16 * (7 - i)) & 0xffffn).toString(16)); - } - let currentZeroStart = -1; - let maxZeroStart = -1; - let maxZeroEnd = -1; - for (let i = 0; i < 8; i++) { - if (sections[i] === "0") { - if (currentZeroStart === -1) { - currentZeroStart = i; - } - } else { - if (currentZeroStart > -1) { - if (i - currentZeroStart > maxZeroEnd - maxZeroStart) { - maxZeroStart = currentZeroStart; - maxZeroEnd = i; - } - currentZeroStart = -1; - } - } - } - if (currentZeroStart > -1) { - if (8 - currentZeroStart > maxZeroEnd - maxZeroStart) { - maxZeroStart = currentZeroStart; - maxZeroEnd = 8; - } - } - if (maxZeroStart !== -1) { - sections.splice(maxZeroStart, maxZeroEnd - maxZeroStart, ":"); - } - return sections.join(":").replace(/:{2,}/g, "::"); -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - convertIPv4BinaryToString, - convertIPv4ToBinary, - convertIPv6BinaryToString, - convertIPv6ToBinary, - distinctRemoteAddr, - expandIPv6 -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/index.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/index.js deleted file mode 100644 index eade561..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwt_exports = {}; -__export(jwt_exports, { - Jwt: () => Jwt -}); -module.exports = __toCommonJS(jwt_exports); -var import_jwt = require("./jwt"); -const Jwt = { sign: import_jwt.sign, verify: import_jwt.verify, decode: import_jwt.decode, verifyWithJwks: import_jwt.verifyWithJwks }; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - Jwt -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwa.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwa.js deleted file mode 100644 index 5094b50..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwa.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwa_exports = {}; -__export(jwa_exports, { - AlgorithmTypes: () => AlgorithmTypes -}); -module.exports = __toCommonJS(jwa_exports); -var AlgorithmTypes = /* @__PURE__ */ ((AlgorithmTypes2) => { - AlgorithmTypes2["HS256"] = "HS256"; - AlgorithmTypes2["HS384"] = "HS384"; - AlgorithmTypes2["HS512"] = "HS512"; - AlgorithmTypes2["RS256"] = "RS256"; - AlgorithmTypes2["RS384"] = "RS384"; - AlgorithmTypes2["RS512"] = "RS512"; - AlgorithmTypes2["PS256"] = "PS256"; - AlgorithmTypes2["PS384"] = "PS384"; - AlgorithmTypes2["PS512"] = "PS512"; - AlgorithmTypes2["ES256"] = "ES256"; - AlgorithmTypes2["ES384"] = "ES384"; - AlgorithmTypes2["ES512"] = "ES512"; - AlgorithmTypes2["EdDSA"] = "EdDSA"; - return AlgorithmTypes2; -})(AlgorithmTypes || {}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - AlgorithmTypes -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jws.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jws.js deleted file mode 100644 index 0f0c88e..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jws.js +++ /dev/null @@ -1,216 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jws_exports = {}; -__export(jws_exports, { - signing: () => signing, - verifying: () => verifying -}); -module.exports = __toCommonJS(jws_exports); -var import_adapter = require("../../helper/adapter"); -var import_encode = require("../encode"); -var import_types = require("./types"); -var import_utf8 = require("./utf8"); -async function signing(privateKey, alg, data) { - const algorithm = getKeyAlgorithm(alg); - const cryptoKey = await importPrivateKey(privateKey, algorithm); - return await crypto.subtle.sign(algorithm, cryptoKey, data); -} -async function verifying(publicKey, alg, signature, data) { - const algorithm = getKeyAlgorithm(alg); - const cryptoKey = await importPublicKey(publicKey, algorithm); - return await crypto.subtle.verify(algorithm, cryptoKey, signature, data); -} -function pemToBinary(pem) { - return (0, import_encode.decodeBase64)(pem.replace(/-+(BEGIN|END).*/g, "").replace(/\s/g, "")); -} -async function importPrivateKey(key, alg) { - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - if (isCryptoKey(key)) { - if (key.type !== "private" && key.type !== "secret") { - throw new Error( - `unexpected key type: CryptoKey.type is ${key.type}, expected private or secret` - ); - } - return key; - } - const usages = [import_types.CryptoKeyUsage.Sign]; - if (typeof key === "object") { - return await crypto.subtle.importKey("jwk", key, alg, false, usages); - } - if (key.includes("PRIVATE")) { - return await crypto.subtle.importKey("pkcs8", pemToBinary(key), alg, false, usages); - } - return await crypto.subtle.importKey("raw", import_utf8.utf8Encoder.encode(key), alg, false, usages); -} -async function importPublicKey(key, alg) { - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - if (isCryptoKey(key)) { - if (key.type === "public" || key.type === "secret") { - return key; - } - key = await exportPublicJwkFrom(key); - } - if (typeof key === "string" && key.includes("PRIVATE")) { - const privateKey = await crypto.subtle.importKey("pkcs8", pemToBinary(key), alg, true, [ - import_types.CryptoKeyUsage.Sign - ]); - key = await exportPublicJwkFrom(privateKey); - } - const usages = [import_types.CryptoKeyUsage.Verify]; - if (typeof key === "object") { - return await crypto.subtle.importKey("jwk", key, alg, false, usages); - } - if (key.includes("PUBLIC")) { - return await crypto.subtle.importKey("spki", pemToBinary(key), alg, false, usages); - } - return await crypto.subtle.importKey("raw", import_utf8.utf8Encoder.encode(key), alg, false, usages); -} -async function exportPublicJwkFrom(privateKey) { - if (privateKey.type !== "private") { - throw new Error(`unexpected key type: ${privateKey.type}`); - } - if (!privateKey.extractable) { - throw new Error("unexpected private key is unextractable"); - } - const jwk = await crypto.subtle.exportKey("jwk", privateKey); - const { kty } = jwk; - const { alg, e, n } = jwk; - const { crv, x, y } = jwk; - return { kty, alg, e, n, crv, x, y, key_ops: [import_types.CryptoKeyUsage.Verify] }; -} -function getKeyAlgorithm(name) { - switch (name) { - case "HS256": - return { - name: "HMAC", - hash: { - name: "SHA-256" - } - }; - case "HS384": - return { - name: "HMAC", - hash: { - name: "SHA-384" - } - }; - case "HS512": - return { - name: "HMAC", - hash: { - name: "SHA-512" - } - }; - case "RS256": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-256" - } - }; - case "RS384": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-384" - } - }; - case "RS512": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-512" - } - }; - case "PS256": - return { - name: "RSA-PSS", - hash: { - name: "SHA-256" - }, - saltLength: 32 - // 256 >> 3 - }; - case "PS384": - return { - name: "RSA-PSS", - hash: { - name: "SHA-384" - }, - saltLength: 48 - // 384 >> 3 - }; - case "PS512": - return { - name: "RSA-PSS", - hash: { - name: "SHA-512" - }, - saltLength: 64 - // 512 >> 3, - }; - case "ES256": - return { - name: "ECDSA", - hash: { - name: "SHA-256" - }, - namedCurve: "P-256" - }; - case "ES384": - return { - name: "ECDSA", - hash: { - name: "SHA-384" - }, - namedCurve: "P-384" - }; - case "ES512": - return { - name: "ECDSA", - hash: { - name: "SHA-512" - }, - namedCurve: "P-521" - }; - case "EdDSA": - return { - name: "Ed25519", - namedCurve: "Ed25519" - }; - default: - throw new import_types.JwtAlgorithmNotImplemented(name); - } -} -function isCryptoKey(key) { - const runtime = (0, import_adapter.getRuntimeKey)(); - if (runtime === "node" && !!crypto.webcrypto) { - return key instanceof crypto.webcrypto.CryptoKey; - } - return key instanceof CryptoKey; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - signing, - verifying -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwt.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwt.js deleted file mode 100644 index 4cb6e2d..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/jwt.js +++ /dev/null @@ -1,187 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var jwt_exports = {}; -__export(jwt_exports, { - decode: () => decode, - decodeHeader: () => decodeHeader, - isTokenHeader: () => isTokenHeader, - sign: () => sign, - verify: () => verify, - verifyWithJwks: () => verifyWithJwks -}); -module.exports = __toCommonJS(jwt_exports); -var import_encode = require("../../utils/encode"); -var import_jwa = require("./jwa"); -var import_jws = require("./jws"); -var import_types = require("./types"); -var import_utf8 = require("./utf8"); -const encodeJwtPart = (part) => (0, import_encode.encodeBase64Url)(import_utf8.utf8Encoder.encode(JSON.stringify(part)).buffer).replace(/=/g, ""); -const encodeSignaturePart = (buf) => (0, import_encode.encodeBase64Url)(buf).replace(/=/g, ""); -const decodeJwtPart = (part) => JSON.parse(import_utf8.utf8Decoder.decode((0, import_encode.decodeBase64Url)(part))); -function isTokenHeader(obj) { - if (typeof obj === "object" && obj !== null) { - const objWithAlg = obj; - return "alg" in objWithAlg && Object.values(import_jwa.AlgorithmTypes).includes(objWithAlg.alg) && (!("typ" in objWithAlg) || objWithAlg.typ === "JWT"); - } - return false; -} -const sign = async (payload, privateKey, alg = "HS256") => { - const encodedPayload = encodeJwtPart(payload); - let encodedHeader; - if (typeof privateKey === "object" && "alg" in privateKey) { - alg = privateKey.alg; - encodedHeader = encodeJwtPart({ alg, typ: "JWT", kid: privateKey.kid }); - } else { - encodedHeader = encodeJwtPart({ alg, typ: "JWT" }); - } - const partialToken = `${encodedHeader}.${encodedPayload}`; - const signaturePart = await (0, import_jws.signing)(privateKey, alg, import_utf8.utf8Encoder.encode(partialToken)); - const signature = encodeSignaturePart(signaturePart); - return `${partialToken}.${signature}`; -}; -const verify = async (token, publicKey, algOrOptions) => { - const { - alg = "HS256", - iss, - nbf = true, - exp = true, - iat = true, - aud - } = typeof algOrOptions === "string" ? { alg: algOrOptions } : algOrOptions || {}; - const tokenParts = token.split("."); - if (tokenParts.length !== 3) { - throw new import_types.JwtTokenInvalid(token); - } - const { header, payload } = decode(token); - if (!isTokenHeader(header)) { - throw new import_types.JwtHeaderInvalid(header); - } - const now = Date.now() / 1e3 | 0; - if (nbf && payload.nbf && payload.nbf > now) { - throw new import_types.JwtTokenNotBefore(token); - } - if (exp && payload.exp && payload.exp <= now) { - throw new import_types.JwtTokenExpired(token); - } - if (iat && payload.iat && now < payload.iat) { - throw new import_types.JwtTokenIssuedAt(now, payload.iat); - } - if (iss) { - if (!payload.iss) { - throw new import_types.JwtTokenIssuer(iss, null); - } - if (typeof iss === "string" && payload.iss !== iss) { - throw new import_types.JwtTokenIssuer(iss, payload.iss); - } - if (iss instanceof RegExp && !iss.test(payload.iss)) { - throw new import_types.JwtTokenIssuer(iss, payload.iss); - } - } - if (aud) { - if (!payload.aud) { - throw new import_types.JwtPayloadRequiresAud(payload); - } - const audiences = Array.isArray(payload.aud) ? payload.aud : [payload.aud]; - const matched = audiences.some( - (payloadAud) => aud instanceof RegExp ? aud.test(payloadAud) : typeof aud === "string" ? payloadAud === aud : Array.isArray(aud) && aud.includes(payloadAud) - ); - if (!matched) { - throw new import_types.JwtTokenAudience(aud, payload.aud); - } - } - const headerPayload = token.substring(0, token.lastIndexOf(".")); - const verified = await (0, import_jws.verifying)( - publicKey, - alg, - (0, import_encode.decodeBase64Url)(tokenParts[2]), - import_utf8.utf8Encoder.encode(headerPayload) - ); - if (!verified) { - throw new import_types.JwtTokenSignatureMismatched(token); - } - return payload; -}; -const verifyWithJwks = async (token, options, init) => { - const verifyOpts = options.verification || {}; - const header = decodeHeader(token); - if (!isTokenHeader(header)) { - throw new import_types.JwtHeaderInvalid(header); - } - if (!header.kid) { - throw new import_types.JwtHeaderRequiresKid(header); - } - if (options.jwks_uri) { - const response = await fetch(options.jwks_uri, init); - if (!response.ok) { - throw new Error(`failed to fetch JWKS from ${options.jwks_uri}`); - } - const data = await response.json(); - if (!data.keys) { - throw new Error('invalid JWKS response. "keys" field is missing'); - } - if (!Array.isArray(data.keys)) { - throw new Error('invalid JWKS response. "keys" field is not an array'); - } - if (options.keys) { - options.keys.push(...data.keys); - } else { - options.keys = data.keys; - } - } else if (!options.keys) { - throw new Error('verifyWithJwks requires options for either "keys" or "jwks_uri" or both'); - } - const matchingKey = options.keys.find((key) => key.kid === header.kid); - if (!matchingKey) { - throw new import_types.JwtTokenInvalid(token); - } - return await verify(token, matchingKey, { - alg: matchingKey.alg || header.alg, - ...verifyOpts - }); -}; -const decode = (token) => { - try { - const [h, p] = token.split("."); - const header = decodeJwtPart(h); - const payload = decodeJwtPart(p); - return { - header, - payload - }; - } catch { - throw new import_types.JwtTokenInvalid(token); - } -}; -const decodeHeader = (token) => { - try { - const [h] = token.split("."); - return decodeJwtPart(h); - } catch { - throw new import_types.JwtTokenInvalid(token); - } -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - decode, - decodeHeader, - isTokenHeader, - sign, - verify, - verifyWithJwks -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/types.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/types.js deleted file mode 100644 index 48a88ec..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/types.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var types_exports = {}; -__export(types_exports, { - CryptoKeyUsage: () => CryptoKeyUsage, - JwtAlgorithmNotImplemented: () => JwtAlgorithmNotImplemented, - JwtHeaderInvalid: () => JwtHeaderInvalid, - JwtHeaderRequiresKid: () => JwtHeaderRequiresKid, - JwtPayloadRequiresAud: () => JwtPayloadRequiresAud, - JwtTokenAudience: () => JwtTokenAudience, - JwtTokenExpired: () => JwtTokenExpired, - JwtTokenInvalid: () => JwtTokenInvalid, - JwtTokenIssuedAt: () => JwtTokenIssuedAt, - JwtTokenIssuer: () => JwtTokenIssuer, - JwtTokenNotBefore: () => JwtTokenNotBefore, - JwtTokenSignatureMismatched: () => JwtTokenSignatureMismatched -}); -module.exports = __toCommonJS(types_exports); -class JwtAlgorithmNotImplemented extends Error { - constructor(alg) { - super(`${alg} is not an implemented algorithm`); - this.name = "JwtAlgorithmNotImplemented"; - } -} -class JwtTokenInvalid extends Error { - constructor(token) { - super(`invalid JWT token: ${token}`); - this.name = "JwtTokenInvalid"; - } -} -class JwtTokenNotBefore extends Error { - constructor(token) { - super(`token (${token}) is being used before it's valid`); - this.name = "JwtTokenNotBefore"; - } -} -class JwtTokenExpired extends Error { - constructor(token) { - super(`token (${token}) expired`); - this.name = "JwtTokenExpired"; - } -} -class JwtTokenIssuedAt extends Error { - constructor(currentTimestamp, iat) { - super( - `Invalid "iat" claim, must be a valid number lower than "${currentTimestamp}" (iat: "${iat}")` - ); - this.name = "JwtTokenIssuedAt"; - } -} -class JwtTokenIssuer extends Error { - constructor(expected, iss) { - super(`expected issuer "${expected}", got ${iss ? `"${iss}"` : "none"} `); - this.name = "JwtTokenIssuer"; - } -} -class JwtHeaderInvalid extends Error { - constructor(header) { - super(`jwt header is invalid: ${JSON.stringify(header)}`); - this.name = "JwtHeaderInvalid"; - } -} -class JwtHeaderRequiresKid extends Error { - constructor(header) { - super(`required "kid" in jwt header: ${JSON.stringify(header)}`); - this.name = "JwtHeaderRequiresKid"; - } -} -class JwtTokenSignatureMismatched extends Error { - constructor(token) { - super(`token(${token}) signature mismatched`); - this.name = "JwtTokenSignatureMismatched"; - } -} -class JwtPayloadRequiresAud extends Error { - constructor(payload) { - super(`required "aud" in jwt payload: ${JSON.stringify(payload)}`); - this.name = "JwtPayloadRequiresAud"; - } -} -class JwtTokenAudience extends Error { - constructor(expected, aud) { - super( - `expected audience "${Array.isArray(expected) ? expected.join(", ") : expected}", got "${aud}"` - ); - this.name = "JwtTokenAudience"; - } -} -var CryptoKeyUsage = /* @__PURE__ */ ((CryptoKeyUsage2) => { - CryptoKeyUsage2["Encrypt"] = "encrypt"; - CryptoKeyUsage2["Decrypt"] = "decrypt"; - CryptoKeyUsage2["Sign"] = "sign"; - CryptoKeyUsage2["Verify"] = "verify"; - CryptoKeyUsage2["DeriveKey"] = "deriveKey"; - CryptoKeyUsage2["DeriveBits"] = "deriveBits"; - CryptoKeyUsage2["WrapKey"] = "wrapKey"; - CryptoKeyUsage2["UnwrapKey"] = "unwrapKey"; - return CryptoKeyUsage2; -})(CryptoKeyUsage || {}); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - CryptoKeyUsage, - JwtAlgorithmNotImplemented, - JwtHeaderInvalid, - JwtHeaderRequiresKid, - JwtPayloadRequiresAud, - JwtTokenAudience, - JwtTokenExpired, - JwtTokenInvalid, - JwtTokenIssuedAt, - JwtTokenIssuer, - JwtTokenNotBefore, - JwtTokenSignatureMismatched -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/utf8.js b/mcp-server/node_modules/hono/dist/cjs/utils/jwt/utf8.js deleted file mode 100644 index 9afa123..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/jwt/utf8.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utf8_exports = {}; -__export(utf8_exports, { - utf8Decoder: () => utf8Decoder, - utf8Encoder: () => utf8Encoder -}); -module.exports = __toCommonJS(utf8_exports); -const utf8Encoder = new TextEncoder(); -const utf8Decoder = new TextDecoder(); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - utf8Decoder, - utf8Encoder -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/mime.js b/mcp-server/node_modules/hono/dist/cjs/utils/mime.js deleted file mode 100644 index f3b1b82..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/mime.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var mime_exports = {}; -__export(mime_exports, { - getExtension: () => getExtension, - getMimeType: () => getMimeType, - mimes: () => baseMimes -}); -module.exports = __toCommonJS(mime_exports); -const getMimeType = (filename, mimes = baseMimes) => { - const regexp = /\.([a-zA-Z0-9]+?)$/; - const match = filename.match(regexp); - if (!match) { - return; - } - let mimeType = mimes[match[1]]; - if (mimeType && mimeType.startsWith("text")) { - mimeType += "; charset=utf-8"; - } - return mimeType; -}; -const getExtension = (mimeType) => { - for (const ext in baseMimes) { - if (baseMimes[ext] === mimeType) { - return ext; - } - } -}; -const _baseMimes = { - aac: "audio/aac", - avi: "video/x-msvideo", - avif: "image/avif", - av1: "video/av1", - bin: "application/octet-stream", - bmp: "image/bmp", - css: "text/css", - csv: "text/csv", - eot: "application/vnd.ms-fontobject", - epub: "application/epub+zip", - gif: "image/gif", - gz: "application/gzip", - htm: "text/html", - html: "text/html", - ico: "image/x-icon", - ics: "text/calendar", - jpeg: "image/jpeg", - jpg: "image/jpeg", - js: "text/javascript", - json: "application/json", - jsonld: "application/ld+json", - map: "application/json", - mid: "audio/x-midi", - midi: "audio/x-midi", - mjs: "text/javascript", - mp3: "audio/mpeg", - mp4: "video/mp4", - mpeg: "video/mpeg", - oga: "audio/ogg", - ogv: "video/ogg", - ogx: "application/ogg", - opus: "audio/opus", - otf: "font/otf", - pdf: "application/pdf", - png: "image/png", - rtf: "application/rtf", - svg: "image/svg+xml", - tif: "image/tiff", - tiff: "image/tiff", - ts: "video/mp2t", - ttf: "font/ttf", - txt: "text/plain", - wasm: "application/wasm", - webm: "video/webm", - weba: "audio/webm", - webmanifest: "application/manifest+json", - webp: "image/webp", - woff: "font/woff", - woff2: "font/woff2", - xhtml: "application/xhtml+xml", - xml: "application/xml", - zip: "application/zip", - "3gp": "video/3gpp", - "3g2": "video/3gpp2", - gltf: "model/gltf+json", - glb: "model/gltf-binary" -}; -const baseMimes = _baseMimes; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - getExtension, - getMimeType, - mimes -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/stream.js b/mcp-server/node_modules/hono/dist/cjs/utils/stream.js deleted file mode 100644 index bbcdc01..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/stream.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var stream_exports = {}; -__export(stream_exports, { - StreamingApi: () => StreamingApi -}); -module.exports = __toCommonJS(stream_exports); -class StreamingApi { - writer; - encoder; - writable; - abortSubscribers = []; - responseReadable; - /** - * Whether the stream has been aborted. - */ - aborted = false; - /** - * Whether the stream has been closed normally. - */ - closed = false; - constructor(writable, _readable) { - this.writable = writable; - this.writer = writable.getWriter(); - this.encoder = new TextEncoder(); - const reader = _readable.getReader(); - this.abortSubscribers.push(async () => { - await reader.cancel(); - }); - this.responseReadable = new ReadableStream({ - async pull(controller) { - const { done, value } = await reader.read(); - done ? controller.close() : controller.enqueue(value); - }, - cancel: () => { - this.abort(); - } - }); - } - async write(input) { - try { - if (typeof input === "string") { - input = this.encoder.encode(input); - } - await this.writer.write(input); - } catch { - } - return this; - } - async writeln(input) { - await this.write(input + "\n"); - return this; - } - sleep(ms) { - return new Promise((res) => setTimeout(res, ms)); - } - async close() { - try { - await this.writer.close(); - } catch { - } - this.closed = true; - } - async pipe(body) { - this.writer.releaseLock(); - await body.pipeTo(this.writable, { preventClose: true }); - this.writer = this.writable.getWriter(); - } - onAbort(listener) { - this.abortSubscribers.push(listener); - } - /** - * Abort the stream. - * You can call this method when stream is aborted by external event. - */ - abort() { - if (!this.aborted) { - this.aborted = true; - this.abortSubscribers.forEach((subscriber) => subscriber()); - } - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - StreamingApi -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/types.js b/mcp-server/node_modules/hono/dist/cjs/utils/types.js deleted file mode 100644 index 43ae536..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/types.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var types_exports = {}; -module.exports = __toCommonJS(types_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/utils/url.js b/mcp-server/node_modules/hono/dist/cjs/utils/url.js deleted file mode 100644 index 21ddfab..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/utils/url.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var url_exports = {}; -__export(url_exports, { - checkOptionalParameter: () => checkOptionalParameter, - decodeURIComponent_: () => decodeURIComponent_, - getPath: () => getPath, - getPathNoStrict: () => getPathNoStrict, - getPattern: () => getPattern, - getQueryParam: () => getQueryParam, - getQueryParams: () => getQueryParams, - getQueryStrings: () => getQueryStrings, - mergePath: () => mergePath, - splitPath: () => splitPath, - splitRoutingPath: () => splitRoutingPath, - tryDecode: () => tryDecode -}); -module.exports = __toCommonJS(url_exports); -const splitPath = (path) => { - const paths = path.split("/"); - if (paths[0] === "") { - paths.shift(); - } - return paths; -}; -const splitRoutingPath = (routePath) => { - const { groups, path } = extractGroupsFromPath(routePath); - const paths = splitPath(path); - return replaceGroupMarks(paths, groups); -}; -const extractGroupsFromPath = (path) => { - const groups = []; - path = path.replace(/\{[^}]+\}/g, (match, index) => { - const mark = `@${index}`; - groups.push([mark, match]); - return mark; - }); - return { groups, path }; -}; -const replaceGroupMarks = (paths, groups) => { - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = paths.length - 1; j >= 0; j--) { - if (paths[j].includes(mark)) { - paths[j] = paths[j].replace(mark, groups[i][1]); - break; - } - } - } - return paths; -}; -const patternCache = {}; -const getPattern = (label, next) => { - if (label === "*") { - return "*"; - } - const match = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - if (match) { - const cacheKey = `${label}#${next}`; - if (!patternCache[cacheKey]) { - if (match[2]) { - patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match[1], new RegExp(`^${match[2]}(?=/${next})`)] : [label, match[1], new RegExp(`^${match[2]}$`)]; - } else { - patternCache[cacheKey] = [label, match[1], true]; - } - } - return patternCache[cacheKey]; - } - return null; -}; -const tryDecode = (str, decoder) => { - try { - return decoder(str); - } catch { - return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match) => { - try { - return decoder(match); - } catch { - return match; - } - }); - } -}; -const tryDecodeURI = (str) => tryDecode(str, decodeURI); -const getPath = (request) => { - const url = request.url; - const start = url.indexOf("/", url.indexOf(":") + 4); - let i = start; - for (; i < url.length; i++) { - const charCode = url.charCodeAt(i); - if (charCode === 37) { - const queryIndex = url.indexOf("?", i); - const path = url.slice(start, queryIndex === -1 ? void 0 : queryIndex); - return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path); - } else if (charCode === 63) { - break; - } - } - return url.slice(start, i); -}; -const getQueryStrings = (url) => { - const queryIndex = url.indexOf("?", 8); - return queryIndex === -1 ? "" : "?" + url.slice(queryIndex + 1); -}; -const getPathNoStrict = (request) => { - const result = getPath(request); - return result.length > 1 && result.at(-1) === "/" ? result.slice(0, -1) : result; -}; -const mergePath = (base, sub, ...rest) => { - if (rest.length) { - sub = mergePath(sub, ...rest); - } - return `${base?.[0] === "/" ? "" : "/"}${base}${sub === "/" ? "" : `${base?.at(-1) === "/" ? "" : "/"}${sub?.[0] === "/" ? sub.slice(1) : sub}`}`; -}; -const checkOptionalParameter = (path) => { - if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(":")) { - return null; - } - const segments = path.split("/"); - const results = []; - let basePath = ""; - segments.forEach((segment) => { - if (segment !== "" && !/\:/.test(segment)) { - basePath += "/" + segment; - } else if (/\:/.test(segment)) { - if (/\?/.test(segment)) { - if (results.length === 0 && basePath === "") { - results.push("/"); - } else { - results.push(basePath); - } - const optionalSegment = segment.replace("?", ""); - basePath += "/" + optionalSegment; - results.push(basePath); - } else { - basePath += "/" + segment; - } - } - }); - return results.filter((v, i, a) => a.indexOf(v) === i); -}; -const _decodeURI = (value) => { - if (!/[%+]/.test(value)) { - return value; - } - if (value.indexOf("+") !== -1) { - value = value.replace(/\+/g, " "); - } - return value.indexOf("%") !== -1 ? tryDecode(value, decodeURIComponent_) : value; -}; -const _getQueryParam = (url, key, multiple) => { - let encoded; - if (!multiple && key && !/[%+]/.test(key)) { - let keyIndex2 = url.indexOf("?", 8); - if (keyIndex2 === -1) { - return void 0; - } - if (!url.startsWith(key, keyIndex2 + 1)) { - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - while (keyIndex2 !== -1) { - const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1); - if (trailingKeyCode === 61) { - const valueIndex = keyIndex2 + key.length + 2; - const endIndex = url.indexOf("&", valueIndex); - return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex)); - } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) { - return ""; - } - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - encoded = /[%+]/.test(url); - if (!encoded) { - return void 0; - } - } - const results = {}; - encoded ??= /[%+]/.test(url); - let keyIndex = url.indexOf("?", 8); - while (keyIndex !== -1) { - const nextKeyIndex = url.indexOf("&", keyIndex + 1); - let valueIndex = url.indexOf("=", keyIndex); - if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) { - valueIndex = -1; - } - let name = url.slice( - keyIndex + 1, - valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex - ); - if (encoded) { - name = _decodeURI(name); - } - keyIndex = nextKeyIndex; - if (name === "") { - continue; - } - let value; - if (valueIndex === -1) { - value = ""; - } else { - value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex); - if (encoded) { - value = _decodeURI(value); - } - } - if (multiple) { - if (!(results[name] && Array.isArray(results[name]))) { - results[name] = []; - } - ; - results[name].push(value); - } else { - results[name] ??= value; - } - } - return key ? results[key] : results; -}; -const getQueryParam = _getQueryParam; -const getQueryParams = (url, key) => { - return _getQueryParam(url, key, true); -}; -const decodeURIComponent_ = decodeURIComponent; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - checkOptionalParameter, - decodeURIComponent_, - getPath, - getPathNoStrict, - getPattern, - getQueryParam, - getQueryParams, - getQueryStrings, - mergePath, - splitPath, - splitRoutingPath, - tryDecode -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/validator/index.js b/mcp-server/node_modules/hono/dist/cjs/validator/index.js deleted file mode 100644 index cbaa47f..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/validator/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var validator_exports = {}; -__export(validator_exports, { - validator: () => import_validator.validator -}); -module.exports = __toCommonJS(validator_exports); -var import_validator = require("./validator"); -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - validator -}); diff --git a/mcp-server/node_modules/hono/dist/cjs/validator/utils.js b/mcp-server/node_modules/hono/dist/cjs/validator/utils.js deleted file mode 100644 index cfe4f8a..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/validator/utils.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utils_exports = {}; -module.exports = __toCommonJS(utils_exports); diff --git a/mcp-server/node_modules/hono/dist/cjs/validator/validator.js b/mcp-server/node_modules/hono/dist/cjs/validator/validator.js deleted file mode 100644 index 552cd60..0000000 --- a/mcp-server/node_modules/hono/dist/cjs/validator/validator.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var validator_exports = {}; -__export(validator_exports, { - validator: () => validator -}); -module.exports = __toCommonJS(validator_exports); -var import_cookie = require("../helper/cookie"); -var import_http_exception = require("../http-exception"); -var import_buffer = require("../utils/buffer"); -const jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/; -const multipartRegex = /^multipart\/form-data(;\s?boundary=[a-zA-Z0-9'"()+_,\-./:=?]+)?$/; -const urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/; -const validator = (target, validationFunc) => { - return async (c, next) => { - let value = {}; - const contentType = c.req.header("Content-Type"); - switch (target) { - case "json": - if (!contentType || !jsonRegex.test(contentType)) { - break; - } - try { - value = await c.req.json(); - } catch { - const message = "Malformed JSON in request body"; - throw new import_http_exception.HTTPException(400, { message }); - } - break; - case "form": { - if (!contentType || !(multipartRegex.test(contentType) || urlencodedRegex.test(contentType))) { - break; - } - let formData; - if (c.req.bodyCache.formData) { - formData = await c.req.bodyCache.formData; - } else { - try { - const arrayBuffer = await c.req.arrayBuffer(); - formData = await (0, import_buffer.bufferToFormData)(arrayBuffer, contentType); - c.req.bodyCache.formData = formData; - } catch (e) { - let message = "Malformed FormData request."; - message += e instanceof Error ? ` ${e.message}` : ` ${String(e)}`; - throw new import_http_exception.HTTPException(400, { message }); - } - } - const form = {}; - formData.forEach((value2, key) => { - if (key.endsWith("[]")) { - ; - (form[key] ??= []).push(value2); - } else if (Array.isArray(form[key])) { - ; - form[key].push(value2); - } else if (key in form) { - form[key] = [form[key], value2]; - } else { - form[key] = value2; - } - }); - value = form; - break; - } - case "query": - value = Object.fromEntries( - Object.entries(c.req.queries()).map(([k, v]) => { - return v.length === 1 ? [k, v[0]] : [k, v]; - }) - ); - break; - case "param": - value = c.req.param(); - break; - case "header": - value = c.req.header(); - break; - case "cookie": - value = (0, import_cookie.getCookie)(c); - break; - } - const res = await validationFunc(value, c); - if (res instanceof Response) { - return res; - } - c.req.addValidatedData(target, res); - return await next(); - }; -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - validator -}); diff --git a/mcp-server/node_modules/hono/dist/client/client.js b/mcp-server/node_modules/hono/dist/client/client.js deleted file mode 100644 index 6b9ef67..0000000 --- a/mcp-server/node_modules/hono/dist/client/client.js +++ /dev/null @@ -1,174 +0,0 @@ -// src/client/client.ts -import { serialize } from "../utils/cookie.js"; -import { - buildSearchParams, - deepMerge, - mergePath, - removeIndexString, - replaceUrlParam, - replaceUrlProtocol -} from "./utils.js"; -var createProxy = (callback, path) => { - const proxy = new Proxy(() => { - }, { - get(_obj, key) { - if (typeof key !== "string" || key === "then") { - return void 0; - } - return createProxy(callback, [...path, key]); - }, - apply(_1, _2, args) { - return callback({ - path, - args - }); - } - }); - return proxy; -}; -var ClientRequestImpl = class { - url; - method; - buildSearchParams; - queryParams = void 0; - pathParams = {}; - rBody; - cType = void 0; - constructor(url, method, options) { - this.url = url; - this.method = method; - this.buildSearchParams = options.buildSearchParams; - } - fetch = async (args, opt) => { - if (args) { - if (args.query) { - this.queryParams = this.buildSearchParams(args.query); - } - if (args.form) { - const form = new FormData(); - for (const [k, v] of Object.entries(args.form)) { - if (Array.isArray(v)) { - for (const v2 of v) { - form.append(k, v2); - } - } else { - form.append(k, v); - } - } - this.rBody = form; - } - if (args.json) { - this.rBody = JSON.stringify(args.json); - this.cType = "application/json"; - } - if (args.param) { - this.pathParams = args.param; - } - } - let methodUpperCase = this.method.toUpperCase(); - const headerValues = { - ...args?.header, - ...typeof opt?.headers === "function" ? await opt.headers() : opt?.headers - }; - if (args?.cookie) { - const cookies = []; - for (const [key, value] of Object.entries(args.cookie)) { - cookies.push(serialize(key, value, { path: "/" })); - } - headerValues["Cookie"] = cookies.join(","); - } - if (this.cType) { - headerValues["Content-Type"] = this.cType; - } - const headers = new Headers(headerValues ?? void 0); - let url = this.url; - url = removeIndexString(url); - url = replaceUrlParam(url, this.pathParams); - if (this.queryParams) { - url = url + "?" + this.queryParams.toString(); - } - methodUpperCase = this.method.toUpperCase(); - const setBody = !(methodUpperCase === "GET" || methodUpperCase === "HEAD"); - return (opt?.fetch || fetch)(url, { - body: setBody ? this.rBody : void 0, - method: methodUpperCase, - headers, - ...opt?.init - }); - }; -}; -var hc = (baseUrl, options) => createProxy(function proxyCallback(opts) { - const buildSearchParamsOption = options?.buildSearchParams ?? buildSearchParams; - const parts = [...opts.path]; - const lastParts = parts.slice(-3).reverse(); - if (lastParts[0] === "toString") { - if (lastParts[1] === "name") { - return lastParts[2] || ""; - } - return proxyCallback.toString(); - } - if (lastParts[0] === "valueOf") { - if (lastParts[1] === "name") { - return lastParts[2] || ""; - } - return proxyCallback; - } - let method = ""; - if (/^\$/.test(lastParts[0])) { - const last = parts.pop(); - if (last) { - method = last.replace(/^\$/, ""); - } - } - const path = parts.join("/"); - const url = mergePath(baseUrl, path); - if (method === "url") { - let result = url; - if (opts.args[0]) { - if (opts.args[0].param) { - result = replaceUrlParam(url, opts.args[0].param); - } - if (opts.args[0].query) { - result = result + "?" + buildSearchParamsOption(opts.args[0].query).toString(); - } - } - result = removeIndexString(result); - return new URL(result); - } - if (method === "ws") { - const webSocketUrl = replaceUrlProtocol( - opts.args[0] && opts.args[0].param ? replaceUrlParam(url, opts.args[0].param) : url, - "ws" - ); - const targetUrl = new URL(webSocketUrl); - const queryParams = opts.args[0]?.query; - if (queryParams) { - Object.entries(queryParams).forEach(([key, value]) => { - if (Array.isArray(value)) { - value.forEach((item) => targetUrl.searchParams.append(key, item)); - } else { - targetUrl.searchParams.set(key, value); - } - }); - } - const establishWebSocket = (...args) => { - if (options?.webSocket !== void 0 && typeof options.webSocket === "function") { - return options.webSocket(...args); - } - return new WebSocket(...args); - }; - return establishWebSocket(targetUrl.toString()); - } - const req = new ClientRequestImpl(url, method, { - buildSearchParams: buildSearchParamsOption - }); - if (method) { - options ??= {}; - const args = deepMerge(options, { ...opts.args[1] }); - return req.fetch(opts.args[0], args); - } - return req; -}, []); -export { - hc -}; diff --git a/mcp-server/node_modules/hono/dist/client/fetch-result-please.js b/mcp-server/node_modules/hono/dist/client/fetch-result-please.js deleted file mode 100644 index 9f7a813..0000000 --- a/mcp-server/node_modules/hono/dist/client/fetch-result-please.js +++ /dev/null @@ -1,62 +0,0 @@ -// src/client/fetch-result-please.ts -var nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]); -async function fetchRP(fetchRes) { - const _fetchRes = await fetchRes; - const hasBody = (_fetchRes.body || _fetchRes._bodyInit) && !nullBodyResponses.has(_fetchRes.status); - if (hasBody) { - const responseType = detectResponseType(_fetchRes); - _fetchRes._data = await _fetchRes[responseType](); - } - if (!_fetchRes.ok) { - throw new DetailedError(`${_fetchRes.status} ${_fetchRes.statusText}`, { - statusCode: _fetchRes?.status, - detail: { - data: _fetchRes?._data, - statusText: _fetchRes?.statusText - } - }); - } - return _fetchRes._data; -} -var DetailedError = class extends Error { - /** - * Additional `message` that will be logged AND returned to client - */ - detail; - /** - * Additional `code` that will be logged AND returned to client - */ - code; - /** - * Additional value that will be logged AND NOT returned to client - */ - log; - /** - * Optionally set the status code to return, in a web server context - */ - statusCode; - constructor(message, options = {}) { - super(message); - this.name = "DetailedError"; - this.log = options.log; - this.detail = options.detail; - this.code = options.code; - this.statusCode = options.statusCode; - } -}; -var jsonRegex = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i; -function detectResponseType(response) { - const _contentType = response.headers.get("content-type"); - if (!_contentType) { - return "text"; - } - const contentType = _contentType.split(";").shift(); - if (jsonRegex.test(contentType)) { - return "json"; - } - return "text"; -} -export { - DetailedError, - fetchRP -}; diff --git a/mcp-server/node_modules/hono/dist/client/index.js b/mcp-server/node_modules/hono/dist/client/index.js deleted file mode 100644 index e133afa..0000000 --- a/mcp-server/node_modules/hono/dist/client/index.js +++ /dev/null @@ -1,8 +0,0 @@ -// src/client/index.ts -import { hc } from "./client.js"; -import { parseResponse, DetailedError } from "./utils.js"; -export { - DetailedError, - hc, - parseResponse -}; diff --git a/mcp-server/node_modules/hono/dist/client/types.js b/mcp-server/node_modules/hono/dist/client/types.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/client/utils.js b/mcp-server/node_modules/hono/dist/client/utils.js deleted file mode 100644 index 1842ff8..0000000 --- a/mcp-server/node_modules/hono/dist/client/utils.js +++ /dev/null @@ -1,76 +0,0 @@ -// src/client/utils.ts -import { fetchRP, DetailedError } from "./fetch-result-please.js"; -var mergePath = (base, path) => { - base = base.replace(/\/+$/, ""); - base = base + "/"; - path = path.replace(/^\/+/, ""); - return base + path; -}; -var replaceUrlParam = (urlString, params) => { - for (const [k, v] of Object.entries(params)) { - const reg = new RegExp("/:" + k + "(?:{[^/]+})?\\??"); - urlString = urlString.replace(reg, v ? `/${v}` : ""); - } - return urlString; -}; -var buildSearchParams = (query) => { - const searchParams = new URLSearchParams(); - for (const [k, v] of Object.entries(query)) { - if (v === void 0) { - continue; - } - if (Array.isArray(v)) { - for (const v2 of v) { - searchParams.append(k, v2); - } - } else { - searchParams.set(k, v); - } - } - return searchParams; -}; -var replaceUrlProtocol = (urlString, protocol) => { - switch (protocol) { - case "ws": - return urlString.replace(/^http/, "ws"); - case "http": - return urlString.replace(/^ws/, "http"); - } -}; -var removeIndexString = (urlString) => { - if (/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(urlString)) { - return urlString.replace(/\/index(?=\?|$)/, "/"); - } - return urlString.replace(/\/index(?=\?|$)/, ""); -}; -function isObject(item) { - return typeof item === "object" && item !== null && !Array.isArray(item); -} -function deepMerge(target, source) { - if (!isObject(target) && !isObject(source)) { - return source; - } - const merged = { ...target }; - for (const key in source) { - const value = source[key]; - if (isObject(merged[key]) && isObject(value)) { - merged[key] = deepMerge(merged[key], value); - } else { - merged[key] = value; - } - } - return merged; -} -async function parseResponse(fetchRes) { - return fetchRP(fetchRes); -} -export { - DetailedError, - buildSearchParams, - deepMerge, - mergePath, - parseResponse, - removeIndexString, - replaceUrlParam, - replaceUrlProtocol -}; diff --git a/mcp-server/node_modules/hono/dist/compose.js b/mcp-server/node_modules/hono/dist/compose.js deleted file mode 100644 index 8e1326f..0000000 --- a/mcp-server/node_modules/hono/dist/compose.js +++ /dev/null @@ -1,46 +0,0 @@ -// src/compose.ts -var compose = (middleware, onError, onNotFound) => { - return (context, next) => { - let index = -1; - return dispatch(0); - async function dispatch(i) { - if (i <= index) { - throw new Error("next() called multiple times"); - } - index = i; - let res; - let isError = false; - let handler; - if (middleware[i]) { - handler = middleware[i][0][0]; - context.req.routeIndex = i; - } else { - handler = i === middleware.length && next || void 0; - } - if (handler) { - try { - res = await handler(context, () => dispatch(i + 1)); - } catch (err) { - if (err instanceof Error && onError) { - context.error = err; - res = await onError(err, context); - isError = true; - } else { - throw err; - } - } - } else { - if (context.finalized === false && onNotFound) { - res = await onNotFound(context); - } - } - if (res && (context.finalized === false || isError)) { - context.res = res; - } - return context; - } - }; -}; -export { - compose -}; diff --git a/mcp-server/node_modules/hono/dist/context.js b/mcp-server/node_modules/hono/dist/context.js deleted file mode 100644 index 3d8a9c6..0000000 --- a/mcp-server/node_modules/hono/dist/context.js +++ /dev/null @@ -1,411 +0,0 @@ -// src/context.ts -import { HonoRequest } from "./request.js"; -import { HtmlEscapedCallbackPhase, resolveCallback } from "./utils/html.js"; -var TEXT_PLAIN = "text/plain; charset=UTF-8"; -var setDefaultContentType = (contentType, headers) => { - return { - "Content-Type": contentType, - ...headers - }; -}; -var Context = class { - #rawRequest; - #req; - /** - * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers. - * - * @see {@link https://hono.dev/docs/api/context#env} - * - * @example - * ```ts - * // Environment object for Cloudflare Workers - * app.get('*', async c => { - * const counter = c.env.COUNTER - * }) - * ``` - */ - env = {}; - #var; - finalized = false; - /** - * `.error` can get the error object from the middleware if the Handler throws an error. - * - * @see {@link https://hono.dev/docs/api/context#error} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * await next() - * if (c.error) { - * // do something... - * } - * }) - * ``` - */ - error; - #status; - #executionCtx; - #res; - #layout; - #renderer; - #notFoundHandler; - #preparedHeaders; - #matchResult; - #path; - /** - * Creates an instance of the Context class. - * - * @param req - The Request object. - * @param options - Optional configuration options for the context. - */ - constructor(req, options) { - this.#rawRequest = req; - if (options) { - this.#executionCtx = options.executionCtx; - this.env = options.env; - this.#notFoundHandler = options.notFoundHandler; - this.#path = options.path; - this.#matchResult = options.matchResult; - } - } - /** - * `.req` is the instance of {@link HonoRequest}. - */ - get req() { - this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult); - return this.#req; - } - /** - * @see {@link https://hono.dev/docs/api/context#event} - * The FetchEvent associated with the current request. - * - * @throws Will throw an error if the context does not have a FetchEvent. - */ - get event() { - if (this.#executionCtx && "respondWith" in this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no FetchEvent"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#executionctx} - * The ExecutionContext associated with the current request. - * - * @throws Will throw an error if the context does not have an ExecutionContext. - */ - get executionCtx() { - if (this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no ExecutionContext"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#res} - * The Response object for the current request. - */ - get res() { - return this.#res ||= new Response(null, { - headers: this.#preparedHeaders ??= new Headers() - }); - } - /** - * Sets the Response object for the current request. - * - * @param _res - The Response object to set. - */ - set res(_res) { - if (this.#res && _res) { - _res = new Response(_res.body, _res); - for (const [k, v] of this.#res.headers.entries()) { - if (k === "content-type") { - continue; - } - if (k === "set-cookie") { - const cookies = this.#res.headers.getSetCookie(); - _res.headers.delete("set-cookie"); - for (const cookie of cookies) { - _res.headers.append("set-cookie", cookie); - } - } else { - _res.headers.set(k, v); - } - } - } - this.#res = _res; - this.finalized = true; - } - /** - * `.render()` can create a response within a layout. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```ts - * app.get('/', (c) => { - * return c.render('Hello!') - * }) - * ``` - */ - render = (...args) => { - this.#renderer ??= (content) => this.html(content); - return this.#renderer(...args); - }; - /** - * Sets the layout for the response. - * - * @param layout - The layout to set. - * @returns The layout function. - */ - setLayout = (layout) => this.#layout = layout; - /** - * Gets the current layout for the response. - * - * @returns The current layout function. - */ - getLayout = () => this.#layout; - /** - * `.setRenderer()` can set the layout in the custom middleware. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```tsx - * app.use('*', async (c, next) => { - * c.setRenderer((content) => { - * return c.html( - * - * - *

{content}

- * - * - * ) - * }) - * await next() - * }) - * ``` - */ - setRenderer = (renderer) => { - this.#renderer = renderer; - }; - /** - * `.header()` can set headers. - * - * @see {@link https://hono.dev/docs/api/context#header} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * - * return c.body('Thank you for coming') - * }) - * ``` - */ - header = (name, value, options) => { - if (this.finalized) { - this.#res = new Response(this.#res.body, this.#res); - } - const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers(); - if (value === void 0) { - headers.delete(name); - } else if (options?.append) { - headers.append(name, value); - } else { - headers.set(name, value); - } - }; - status = (status) => { - this.#status = status; - }; - /** - * `.set()` can set the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * c.set('message', 'Hono is hot!!') - * await next() - * }) - * ``` - */ - set = (key, value) => { - this.#var ??= /* @__PURE__ */ new Map(); - this.#var.set(key, value); - }; - /** - * `.get()` can use the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.get('/', (c) => { - * const message = c.get('message') - * return c.text(`The message is "${message}"`) - * }) - * ``` - */ - get = (key) => { - return this.#var ? this.#var.get(key) : void 0; - }; - /** - * `.var` can access the value of a variable. - * - * @see {@link https://hono.dev/docs/api/context#var} - * - * @example - * ```ts - * const result = c.var.client.oneMethod() - * ``` - */ - // c.var.propName is a read-only - get var() { - if (!this.#var) { - return {}; - } - return Object.fromEntries(this.#var); - } - #newResponse(data, arg, headers) { - const responseHeaders = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers(); - if (typeof arg === "object" && "headers" in arg) { - const argHeaders = arg.headers instanceof Headers ? arg.headers : new Headers(arg.headers); - for (const [key, value] of argHeaders) { - if (key.toLowerCase() === "set-cookie") { - responseHeaders.append(key, value); - } else { - responseHeaders.set(key, value); - } - } - } - if (headers) { - for (const [k, v] of Object.entries(headers)) { - if (typeof v === "string") { - responseHeaders.set(k, v); - } else { - responseHeaders.delete(k); - for (const v2 of v) { - responseHeaders.append(k, v2); - } - } - } - } - const status = typeof arg === "number" ? arg : arg?.status ?? this.#status; - return new Response(data, { status, headers: responseHeaders }); - } - newResponse = (...args) => this.#newResponse(...args); - /** - * `.body()` can return the HTTP response. - * You can set headers with `.header()` and set HTTP status code with `.status`. - * This can also be set in `.text()`, `.json()` and so on. - * - * @see {@link https://hono.dev/docs/api/context#body} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * // Set HTTP status code - * c.status(201) - * - * // Return the response body - * return c.body('Thank you for coming') - * }) - * ``` - */ - body = (data, arg, headers) => this.#newResponse(data, arg, headers); - /** - * `.text()` can render text as `Content-Type:text/plain`. - * - * @see {@link https://hono.dev/docs/api/context#text} - * - * @example - * ```ts - * app.get('/say', (c) => { - * return c.text('Hello!') - * }) - * ``` - */ - text = (text, arg, headers) => { - return !this.#preparedHeaders && !this.#status && !arg && !headers && !this.finalized ? new Response(text) : this.#newResponse( - text, - arg, - setDefaultContentType(TEXT_PLAIN, headers) - ); - }; - /** - * `.json()` can render JSON as `Content-Type:application/json`. - * - * @see {@link https://hono.dev/docs/api/context#json} - * - * @example - * ```ts - * app.get('/api', (c) => { - * return c.json({ message: 'Hello!' }) - * }) - * ``` - */ - json = (object, arg, headers) => { - return this.#newResponse( - JSON.stringify(object), - arg, - setDefaultContentType("application/json", headers) - ); - }; - html = (html, arg, headers) => { - const res = (html2) => this.#newResponse(html2, arg, setDefaultContentType("text/html; charset=UTF-8", headers)); - return typeof html === "object" ? resolveCallback(html, HtmlEscapedCallbackPhase.Stringify, false, {}).then(res) : res(html); - }; - /** - * `.redirect()` can Redirect, default status code is 302. - * - * @see {@link https://hono.dev/docs/api/context#redirect} - * - * @example - * ```ts - * app.get('/redirect', (c) => { - * return c.redirect('/') - * }) - * app.get('/redirect-permanently', (c) => { - * return c.redirect('/', 301) - * }) - * ``` - */ - redirect = (location, status) => { - const locationString = String(location); - this.header( - "Location", - // Multibyes should be encoded - // eslint-disable-next-line no-control-regex - !/[^\x00-\xFF]/.test(locationString) ? locationString : encodeURI(locationString) - ); - return this.newResponse(null, status ?? 302); - }; - /** - * `.notFound()` can return the Not Found Response. - * - * @see {@link https://hono.dev/docs/api/context#notfound} - * - * @example - * ```ts - * app.get('/notfound', (c) => { - * return c.notFound() - * }) - * ``` - */ - notFound = () => { - this.#notFoundHandler ??= () => new Response(); - return this.#notFoundHandler(this); - }; -}; -export { - Context, - TEXT_PLAIN -}; diff --git a/mcp-server/node_modules/hono/dist/helper/accepts/accepts.js b/mcp-server/node_modules/hono/dist/helper/accepts/accepts.js deleted file mode 100644 index fd87c4c..0000000 --- a/mcp-server/node_modules/hono/dist/helper/accepts/accepts.js +++ /dev/null @@ -1,20 +0,0 @@ -// src/helper/accepts/accepts.ts -import { parseAccept } from "../../utils/accept.js"; -var defaultMatch = (accepts2, config) => { - const { supports, default: defaultSupport } = config; - const accept = accepts2.sort((a, b) => b.q - a.q).find((accept2) => supports.includes(accept2.type)); - return accept ? accept.type : defaultSupport; -}; -var accepts = (c, options) => { - const acceptHeader = c.req.header(options.header); - if (!acceptHeader) { - return options.default; - } - const accepts2 = parseAccept(acceptHeader); - const match = options.match || defaultMatch; - return match(accepts2, options); -}; -export { - accepts, - defaultMatch -}; diff --git a/mcp-server/node_modules/hono/dist/helper/accepts/index.js b/mcp-server/node_modules/hono/dist/helper/accepts/index.js deleted file mode 100644 index f80f3c8..0000000 --- a/mcp-server/node_modules/hono/dist/helper/accepts/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/helper/accepts/index.ts -import { accepts } from "./accepts.js"; -export { - accepts -}; diff --git a/mcp-server/node_modules/hono/dist/helper/adapter/index.js b/mcp-server/node_modules/hono/dist/helper/adapter/index.js deleted file mode 100644 index 7eb7803..0000000 --- a/mcp-server/node_modules/hono/dist/helper/adapter/index.js +++ /dev/null @@ -1,56 +0,0 @@ -// src/helper/adapter/index.ts -var env = (c, runtime) => { - const global = globalThis; - const globalEnv = global?.process?.env; - runtime ??= getRuntimeKey(); - const runtimeEnvHandlers = { - bun: () => globalEnv, - node: () => globalEnv, - "edge-light": () => globalEnv, - deno: () => { - return Deno.env.toObject(); - }, - workerd: () => c.env, - // On Fastly Compute, you can use the ConfigStore to manage user-defined data. - fastly: () => ({}), - other: () => ({}) - }; - return runtimeEnvHandlers[runtime](); -}; -var knownUserAgents = { - deno: "Deno", - bun: "Bun", - workerd: "Cloudflare-Workers", - node: "Node.js" -}; -var getRuntimeKey = () => { - const global = globalThis; - const userAgentSupported = typeof navigator !== "undefined" && typeof navigator.userAgent === "string"; - if (userAgentSupported) { - for (const [runtimeKey, userAgent] of Object.entries(knownUserAgents)) { - if (checkUserAgentEquals(userAgent)) { - return runtimeKey; - } - } - } - if (typeof global?.EdgeRuntime === "string") { - return "edge-light"; - } - if (global?.fastly !== void 0) { - return "fastly"; - } - if (global?.process?.release?.name === "node") { - return "node"; - } - return "other"; -}; -var checkUserAgentEquals = (platform) => { - const userAgent = navigator.userAgent; - return userAgent.startsWith(platform); -}; -export { - checkUserAgentEquals, - env, - getRuntimeKey, - knownUserAgents -}; diff --git a/mcp-server/node_modules/hono/dist/helper/conninfo/index.js b/mcp-server/node_modules/hono/dist/helper/conninfo/index.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/helper/conninfo/types.js b/mcp-server/node_modules/hono/dist/helper/conninfo/types.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/helper/cookie/index.js b/mcp-server/node_modules/hono/dist/helper/cookie/index.js deleted file mode 100644 index 59f9968..0000000 --- a/mcp-server/node_modules/hono/dist/helper/cookie/index.js +++ /dev/null @@ -1,102 +0,0 @@ -// src/helper/cookie/index.ts -import { parse, parseSigned, serialize, serializeSigned } from "../../utils/cookie.js"; -var getCookie = (c, key, prefix) => { - const cookie = c.req.raw.headers.get("Cookie"); - if (typeof key === "string") { - if (!cookie) { - return void 0; - } - let finalKey = key; - if (prefix === "secure") { - finalKey = "__Secure-" + key; - } else if (prefix === "host") { - finalKey = "__Host-" + key; - } - const obj2 = parse(cookie, finalKey); - return obj2[finalKey]; - } - if (!cookie) { - return {}; - } - const obj = parse(cookie); - return obj; -}; -var getSignedCookie = async (c, secret, key, prefix) => { - const cookie = c.req.raw.headers.get("Cookie"); - if (typeof key === "string") { - if (!cookie) { - return void 0; - } - let finalKey = key; - if (prefix === "secure") { - finalKey = "__Secure-" + key; - } else if (prefix === "host") { - finalKey = "__Host-" + key; - } - const obj2 = await parseSigned(cookie, secret, finalKey); - return obj2[finalKey]; - } - if (!cookie) { - return {}; - } - const obj = await parseSigned(cookie, secret); - return obj; -}; -var generateCookie = (name, value, opt) => { - let cookie; - if (opt?.prefix === "secure") { - cookie = serialize("__Secure-" + name, value, { path: "/", ...opt, secure: true }); - } else if (opt?.prefix === "host") { - cookie = serialize("__Host-" + name, value, { - ...opt, - path: "/", - secure: true, - domain: void 0 - }); - } else { - cookie = serialize(name, value, { path: "/", ...opt }); - } - return cookie; -}; -var setCookie = (c, name, value, opt) => { - const cookie = generateCookie(name, value, opt); - c.header("Set-Cookie", cookie, { append: true }); -}; -var generateSignedCookie = async (name, value, secret, opt) => { - let cookie; - if (opt?.prefix === "secure") { - cookie = await serializeSigned("__Secure-" + name, value, secret, { - path: "/", - ...opt, - secure: true - }); - } else if (opt?.prefix === "host") { - cookie = await serializeSigned("__Host-" + name, value, secret, { - ...opt, - path: "/", - secure: true, - domain: void 0 - }); - } else { - cookie = await serializeSigned(name, value, secret, { path: "/", ...opt }); - } - return cookie; -}; -var setSignedCookie = async (c, name, value, secret, opt) => { - const cookie = await generateSignedCookie(name, value, secret, opt); - c.header("set-cookie", cookie, { append: true }); -}; -var deleteCookie = (c, name, opt) => { - const deletedCookie = getCookie(c, name, opt?.prefix); - setCookie(c, name, "", { ...opt, maxAge: 0 }); - return deletedCookie; -}; -export { - deleteCookie, - generateCookie, - generateSignedCookie, - getCookie, - getSignedCookie, - setCookie, - setSignedCookie -}; diff --git a/mcp-server/node_modules/hono/dist/helper/css/common.js b/mcp-server/node_modules/hono/dist/helper/css/common.js deleted file mode 100644 index a48d437..0000000 --- a/mcp-server/node_modules/hono/dist/helper/css/common.js +++ /dev/null @@ -1,185 +0,0 @@ -// src/helper/css/common.ts -var PSEUDO_GLOBAL_SELECTOR = ":-hono-global"; -var isPseudoGlobalSelectorRe = new RegExp(`^${PSEUDO_GLOBAL_SELECTOR}{(.*)}$`); -var DEFAULT_STYLE_ID = "hono-css"; -var SELECTOR = /* @__PURE__ */ Symbol(); -var CLASS_NAME = /* @__PURE__ */ Symbol(); -var STYLE_STRING = /* @__PURE__ */ Symbol(); -var SELECTORS = /* @__PURE__ */ Symbol(); -var EXTERNAL_CLASS_NAMES = /* @__PURE__ */ Symbol(); -var CSS_ESCAPED = /* @__PURE__ */ Symbol(); -var IS_CSS_ESCAPED = /* @__PURE__ */ Symbol(); -var rawCssString = (value) => { - return { - [CSS_ESCAPED]: value - }; -}; -var toHash = (str) => { - let i = 0, out = 11; - while (i < str.length) { - out = 101 * out + str.charCodeAt(i++) >>> 0; - } - return "css-" + out; -}; -var cssStringReStr = [ - '"(?:(?:\\\\[\\s\\S]|[^"\\\\])*)"', - // double quoted string - "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'" - // single quoted string -].join("|"); -var minifyCssRe = new RegExp( - [ - "(" + cssStringReStr + ")", - // $1: quoted string - "(?:" + [ - "^\\s+", - // head whitespace - "\\/\\*.*?\\*\\/\\s*", - // multi-line comment - "\\/\\/.*\\n\\s*", - // single-line comment - "\\s+$" - // tail whitespace - ].join("|") + ")", - "\\s*;\\s*(}|$)\\s*", - // $2: trailing semicolon - "\\s*([{};:,])\\s*", - // $3: whitespace around { } : , ; - "(\\s)\\s+" - // $4: 2+ spaces - ].join("|"), - "g" -); -var minify = (css) => { - return css.replace(minifyCssRe, (_, $1, $2, $3, $4) => $1 || $2 || $3 || $4 || ""); -}; -var buildStyleString = (strings, values) => { - const selectors = []; - const externalClassNames = []; - const label = strings[0].match(/^\s*\/\*(.*?)\*\//)?.[1] || ""; - let styleString = ""; - for (let i = 0, len = strings.length; i < len; i++) { - styleString += strings[i]; - let vArray = values[i]; - if (typeof vArray === "boolean" || vArray === null || vArray === void 0) { - continue; - } - if (!Array.isArray(vArray)) { - vArray = [vArray]; - } - for (let j = 0, len2 = vArray.length; j < len2; j++) { - let value = vArray[j]; - if (typeof value === "boolean" || value === null || value === void 0) { - continue; - } - if (typeof value === "string") { - if (/([\\"'\/])/.test(value)) { - styleString += value.replace(/([\\"']|(?<=<)\/)/g, "\\$1"); - } else { - styleString += value; - } - } else if (typeof value === "number") { - styleString += value; - } else if (value[CSS_ESCAPED]) { - styleString += value[CSS_ESCAPED]; - } else if (value[CLASS_NAME].startsWith("@keyframes ")) { - selectors.push(value); - styleString += ` ${value[CLASS_NAME].substring(11)} `; - } else { - if (strings[i + 1]?.match(/^\s*{/)) { - selectors.push(value); - value = `.${value[CLASS_NAME]}`; - } else { - selectors.push(...value[SELECTORS]); - externalClassNames.push(...value[EXTERNAL_CLASS_NAMES]); - value = value[STYLE_STRING]; - const valueLen = value.length; - if (valueLen > 0) { - const lastChar = value[valueLen - 1]; - if (lastChar !== ";" && lastChar !== "}") { - value += ";"; - } - } - } - styleString += `${value || ""}`; - } - } - } - return [label, minify(styleString), selectors, externalClassNames]; -}; -var cssCommon = (strings, values) => { - let [label, thisStyleString, selectors, externalClassNames] = buildStyleString(strings, values); - const isPseudoGlobal = isPseudoGlobalSelectorRe.exec(thisStyleString); - if (isPseudoGlobal) { - thisStyleString = isPseudoGlobal[1]; - } - const selector = (isPseudoGlobal ? PSEUDO_GLOBAL_SELECTOR : "") + toHash(label + thisStyleString); - const className = (isPseudoGlobal ? selectors.map((s) => s[CLASS_NAME]) : [selector, ...externalClassNames]).join(" "); - return { - [SELECTOR]: selector, - [CLASS_NAME]: className, - [STYLE_STRING]: thisStyleString, - [SELECTORS]: selectors, - [EXTERNAL_CLASS_NAMES]: externalClassNames - }; -}; -var cxCommon = (args) => { - for (let i = 0, len = args.length; i < len; i++) { - const arg = args[i]; - if (typeof arg === "string") { - args[i] = { - [SELECTOR]: "", - [CLASS_NAME]: "", - [STYLE_STRING]: "", - [SELECTORS]: [], - [EXTERNAL_CLASS_NAMES]: [arg] - }; - } - } - return args; -}; -var keyframesCommon = (strings, ...values) => { - const [label, styleString] = buildStyleString(strings, values); - return { - [SELECTOR]: "", - [CLASS_NAME]: `@keyframes ${toHash(label + styleString)}`, - [STYLE_STRING]: styleString, - [SELECTORS]: [], - [EXTERNAL_CLASS_NAMES]: [] - }; -}; -var viewTransitionNameIndex = 0; -var viewTransitionCommon = ((strings, values) => { - if (!strings) { - strings = [`/* h-v-t ${viewTransitionNameIndex++} */`]; - } - const content = Array.isArray(strings) ? cssCommon(strings, values) : strings; - const transitionName = content[CLASS_NAME]; - const res = cssCommon(["view-transition-name:", ""], [transitionName]); - content[CLASS_NAME] = PSEUDO_GLOBAL_SELECTOR + content[CLASS_NAME]; - content[STYLE_STRING] = content[STYLE_STRING].replace( - /(?<=::view-transition(?:[a-z-]*)\()(?=\))/g, - transitionName - ); - res[CLASS_NAME] = res[SELECTOR] = transitionName; - res[SELECTORS] = [...content[SELECTORS], content]; - return res; -}); -export { - CLASS_NAME, - DEFAULT_STYLE_ID, - EXTERNAL_CLASS_NAMES, - IS_CSS_ESCAPED, - PSEUDO_GLOBAL_SELECTOR, - SELECTOR, - SELECTORS, - STYLE_STRING, - buildStyleString, - cssCommon, - cxCommon, - isPseudoGlobalSelectorRe, - keyframesCommon, - minify, - rawCssString, - viewTransitionCommon -}; diff --git a/mcp-server/node_modules/hono/dist/helper/css/index.js b/mcp-server/node_modules/hono/dist/helper/css/index.js deleted file mode 100644 index b60a2c7..0000000 --- a/mcp-server/node_modules/hono/dist/helper/css/index.js +++ /dev/null @@ -1,125 +0,0 @@ -// src/helper/css/index.ts -import { raw } from "../../helper/html/index.js"; -import { DOM_RENDERER } from "../../jsx/constants.js"; -import { createCssJsxDomObjects } from "../../jsx/dom/css.js"; -import { - CLASS_NAME, - DEFAULT_STYLE_ID, - PSEUDO_GLOBAL_SELECTOR, - SELECTOR, - SELECTORS, - STYLE_STRING, - cssCommon, - cxCommon, - keyframesCommon, - viewTransitionCommon -} from "./common.js"; -import { rawCssString } from "./common.js"; -var createCssContext = ({ id }) => { - const [cssJsxDomObject, StyleRenderToDom] = createCssJsxDomObjects({ id }); - const contextMap = /* @__PURE__ */ new WeakMap(); - const nonceMap = /* @__PURE__ */ new WeakMap(); - const replaceStyleRe = new RegExp(`()`); - const newCssClassNameObject = (cssClassName) => { - const appendStyle = ({ buffer, context }) => { - const [toAdd, added] = contextMap.get(context); - const names = Object.keys(toAdd); - if (!names.length) { - return; - } - let stylesStr = ""; - names.forEach((className2) => { - added[className2] = true; - stylesStr += className2.startsWith(PSEUDO_GLOBAL_SELECTOR) ? toAdd[className2] : `${className2[0] === "@" ? "" : "."}${className2}{${toAdd[className2]}}`; - }); - contextMap.set(context, [{}, added]); - if (buffer && replaceStyleRe.test(buffer[0])) { - buffer[0] = buffer[0].replace(replaceStyleRe, (_, pre, post) => `${pre}${stylesStr}${post}`); - return; - } - const nonce = nonceMap.get(context); - const appendStyleScript = `document.querySelector('#${id}').textContent+=${JSON.stringify(stylesStr)}`; - if (buffer) { - buffer[0] = `${appendStyleScript}${buffer[0]}`; - return; - } - return Promise.resolve(appendStyleScript); - }; - const addClassNameToContext = ({ context }) => { - if (!contextMap.has(context)) { - contextMap.set(context, [{}, {}]); - } - const [toAdd, added] = contextMap.get(context); - let allAdded = true; - if (!added[cssClassName[SELECTOR]]) { - allAdded = false; - toAdd[cssClassName[SELECTOR]] = cssClassName[STYLE_STRING]; - } - cssClassName[SELECTORS].forEach( - ({ [CLASS_NAME]: className2, [STYLE_STRING]: styleString }) => { - if (!added[className2]) { - allAdded = false; - toAdd[className2] = styleString; - } - } - ); - if (allAdded) { - return; - } - return Promise.resolve(raw("", [appendStyle])); - }; - const className = new String(cssClassName[CLASS_NAME]); - Object.assign(className, cssClassName); - className.isEscaped = true; - className.callbacks = [addClassNameToContext]; - const promise = Promise.resolve(className); - Object.assign(promise, cssClassName); - promise.toString = cssJsxDomObject.toString; - return promise; - }; - const css2 = (strings, ...values) => { - return newCssClassNameObject(cssCommon(strings, values)); - }; - const cx2 = (...args) => { - args = cxCommon(args); - return css2(Array(args.length).fill(""), ...args); - }; - const keyframes2 = keyframesCommon; - const viewTransition2 = ((strings, ...values) => { - return newCssClassNameObject(viewTransitionCommon(strings, values)); - }); - const Style2 = ({ children, nonce } = {}) => raw( - ``, - [ - ({ context }) => { - nonceMap.set(context, nonce); - return void 0; - } - ] - ); - Style2[DOM_RENDERER] = StyleRenderToDom; - return { - css: css2, - cx: cx2, - keyframes: keyframes2, - viewTransition: viewTransition2, - Style: Style2 - }; -}; -var defaultContext = createCssContext({ - id: DEFAULT_STYLE_ID -}); -var css = defaultContext.css; -var cx = defaultContext.cx; -var keyframes = defaultContext.keyframes; -var viewTransition = defaultContext.viewTransition; -var Style = defaultContext.Style; -export { - Style, - createCssContext, - css, - cx, - keyframes, - rawCssString, - viewTransition -}; diff --git a/mcp-server/node_modules/hono/dist/helper/dev/index.js b/mcp-server/node_modules/hono/dist/helper/dev/index.js deleted file mode 100644 index 98244ef..0000000 --- a/mcp-server/node_modules/hono/dist/helper/dev/index.js +++ /dev/null @@ -1,55 +0,0 @@ -// src/helper/dev/index.ts -import { getColorEnabled } from "../../utils/color.js"; -import { findTargetHandler, isMiddleware } from "../../utils/handler.js"; -var handlerName = (handler) => { - return handler.name || (isMiddleware(handler) ? "[middleware]" : "[handler]"); -}; -var inspectRoutes = (hono) => { - return hono.routes.map(({ path, method, handler }) => { - const targetHandler = findTargetHandler(handler); - return { - path, - method, - name: handlerName(targetHandler), - isMiddleware: isMiddleware(targetHandler) - }; - }); -}; -var showRoutes = (hono, opts) => { - const colorEnabled = opts?.colorize ?? getColorEnabled(); - const routeData = {}; - let maxMethodLength = 0; - let maxPathLength = 0; - inspectRoutes(hono).filter(({ isMiddleware: isMiddleware2 }) => opts?.verbose || !isMiddleware2).map((route) => { - const key = `${route.method}-${route.path}`; - (routeData[key] ||= []).push(route); - if (routeData[key].length > 1) { - return; - } - maxMethodLength = Math.max(maxMethodLength, route.method.length); - maxPathLength = Math.max(maxPathLength, route.path.length); - return { method: route.method, path: route.path, routes: routeData[key] }; - }).forEach((data) => { - if (!data) { - return; - } - const { method, path, routes } = data; - const methodStr = colorEnabled ? `\x1B[32m${method}\x1B[0m` : method; - console.log(`${methodStr} ${" ".repeat(maxMethodLength - method.length)} ${path}`); - if (!opts?.verbose) { - return; - } - routes.forEach(({ name }) => { - console.log(`${" ".repeat(maxMethodLength + 3)} ${name}`); - }); - }); -}; -var getRouterName = (app) => { - app.router.match("GET", "/"); - return app.router.name; -}; -export { - getRouterName, - inspectRoutes, - showRoutes -}; diff --git a/mcp-server/node_modules/hono/dist/helper/factory/index.js b/mcp-server/node_modules/hono/dist/helper/factory/index.js deleted file mode 100644 index 6b48e91..0000000 --- a/mcp-server/node_modules/hono/dist/helper/factory/index.js +++ /dev/null @@ -1,30 +0,0 @@ -// src/helper/factory/index.ts -import { Hono } from "../../hono.js"; -var Factory = class { - initApp; - #defaultAppOptions; - constructor(init) { - this.initApp = init?.initApp; - this.#defaultAppOptions = init?.defaultAppOptions; - } - createApp = (options) => { - const app = new Hono( - options && this.#defaultAppOptions ? { ...this.#defaultAppOptions, ...options } : options ?? this.#defaultAppOptions - ); - if (this.initApp) { - this.initApp(app); - } - return app; - }; - createMiddleware = (middleware) => middleware; - createHandlers = (...handlers) => { - return handlers.filter((handler) => handler !== void 0); - }; -}; -var createFactory = (init) => new Factory(init); -var createMiddleware = (middleware) => middleware; -export { - Factory, - createFactory, - createMiddleware -}; diff --git a/mcp-server/node_modules/hono/dist/helper/html/index.js b/mcp-server/node_modules/hono/dist/helper/html/index.js deleted file mode 100644 index d5726ca..0000000 --- a/mcp-server/node_modules/hono/dist/helper/html/index.js +++ /dev/null @@ -1,41 +0,0 @@ -// src/helper/html/index.ts -import { escapeToBuffer, raw, resolveCallbackSync, stringBufferToString } from "../../utils/html.js"; -var html = (strings, ...values) => { - const buffer = [""]; - for (let i = 0, len = strings.length - 1; i < len; i++) { - buffer[0] += strings[i]; - const children = Array.isArray(values[i]) ? values[i].flat(Infinity) : [values[i]]; - for (let i2 = 0, len2 = children.length; i2 < len2; i2++) { - const child = children[i2]; - if (typeof child === "string") { - escapeToBuffer(child, buffer); - } else if (typeof child === "number") { - ; - buffer[0] += child; - } else if (typeof child === "boolean" || child === null || child === void 0) { - continue; - } else if (typeof child === "object" && child.isEscaped) { - if (child.callbacks) { - buffer.unshift("", child); - } else { - const tmp = child.toString(); - if (tmp instanceof Promise) { - buffer.unshift("", tmp); - } else { - buffer[0] += tmp; - } - } - } else if (child instanceof Promise) { - buffer.unshift("", child); - } else { - escapeToBuffer(child.toString(), buffer); - } - } - } - buffer[0] += strings.at(-1); - return buffer.length === 1 ? "callbacks" in buffer ? raw(resolveCallbackSync(raw(buffer[0], buffer.callbacks))) : raw(buffer[0]) : stringBufferToString(buffer, buffer.callbacks); -}; -export { - html, - raw -}; diff --git a/mcp-server/node_modules/hono/dist/helper/proxy/index.js b/mcp-server/node_modules/hono/dist/helper/proxy/index.js deleted file mode 100644 index e666f7a..0000000 --- a/mcp-server/node_modules/hono/dist/helper/proxy/index.js +++ /dev/null @@ -1,89 +0,0 @@ -// src/helper/proxy/index.ts -import { HTTPException } from "../../http-exception.js"; -var hopByHopHeaders = [ - "connection", - "keep-alive", - "proxy-authenticate", - "proxy-authorization", - "te", - "trailer", - "transfer-encoding", - "upgrade" -]; -var ALLOWED_TOKEN_PATTERN = /^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/; -var buildRequestInitFromRequest = (request, strictConnectionProcessing) => { - if (!request) { - return {}; - } - const headers = new Headers(request.headers); - if (strictConnectionProcessing) { - const connectionValue = headers.get("connection"); - if (connectionValue) { - const headerNames = connectionValue.split(",").map((h) => h.trim()); - const invalidHeaders = headerNames.filter((h) => !ALLOWED_TOKEN_PATTERN.test(h)); - if (invalidHeaders.length > 0) { - throw new HTTPException(400, { - message: `Invalid Connection header value: ${invalidHeaders.join(", ")}` - }); - } - headerNames.forEach((headerName) => { - headers.delete(headerName); - }); - } - } - hopByHopHeaders.forEach((header) => { - headers.delete(header); - }); - return { - method: request.method, - body: request.body, - duplex: request.body ? "half" : void 0, - headers, - signal: request.signal - }; -}; -var preprocessRequestInit = (requestInit) => { - if (!requestInit.headers || Array.isArray(requestInit.headers) || requestInit.headers instanceof Headers) { - return requestInit; - } - const headers = new Headers(); - for (const [key, value] of Object.entries(requestInit.headers)) { - if (value == null) { - headers.delete(key); - } else { - headers.set(key, value); - } - } - requestInit.headers = headers; - return requestInit; -}; -var proxy = async (input, proxyInit) => { - const { - raw, - customFetch, - strictConnectionProcessing = false, - ...requestInit - } = proxyInit instanceof Request ? { raw: proxyInit } : proxyInit ?? {}; - const req = new Request(input, { - ...buildRequestInitFromRequest(raw, strictConnectionProcessing), - ...preprocessRequestInit(requestInit) - }); - req.headers.delete("accept-encoding"); - const res = await (customFetch || fetch)(req); - const resHeaders = new Headers(res.headers); - hopByHopHeaders.forEach((header) => { - resHeaders.delete(header); - }); - if (resHeaders.has("content-encoding")) { - resHeaders.delete("content-encoding"); - resHeaders.delete("content-length"); - } - return new Response(res.body, { - status: res.status, - statusText: res.statusText, - headers: resHeaders - }); -}; -export { - proxy -}; diff --git a/mcp-server/node_modules/hono/dist/helper/route/index.js b/mcp-server/node_modules/hono/dist/helper/route/index.js deleted file mode 100644 index 457d362..0000000 --- a/mcp-server/node_modules/hono/dist/helper/route/index.js +++ /dev/null @@ -1,46 +0,0 @@ -// src/helper/route/index.ts -import { GET_MATCH_RESULT } from "../../request/constants.js"; -import { getPattern, splitRoutingPath } from "../../utils/url.js"; -var matchedRoutes = (c) => ( - // @ts-expect-error c.req[GET_MATCH_RESULT] is not typed - c.req[GET_MATCH_RESULT][0].map(([[, route]]) => route) -); -var routePath = (c, index) => matchedRoutes(c).at(index ?? c.req.routeIndex)?.path ?? ""; -var baseRoutePath = (c, index) => matchedRoutes(c).at(index ?? c.req.routeIndex)?.basePath ?? ""; -var basePathCacheMap = /* @__PURE__ */ new WeakMap(); -var basePath = (c, index) => { - index ??= c.req.routeIndex; - const cache = basePathCacheMap.get(c) || []; - if (typeof cache[index] === "string") { - return cache[index]; - } - let result; - const rp = baseRoutePath(c, index); - if (!/[:*]/.test(rp)) { - result = rp; - } else { - const paths = splitRoutingPath(rp); - const reqPath = c.req.path; - let basePathLength = 0; - for (let i = 0, len = paths.length; i < len; i++) { - const pattern = getPattern(paths[i], paths[i + 1]); - if (pattern) { - const re = pattern[2] === true || pattern === "*" ? /[^\/]+/ : pattern[2]; - basePathLength += reqPath.substring(basePathLength + 1).match(re)?.[0].length || 0; - } else { - basePathLength += paths[i].length; - } - basePathLength += 1; - } - result = reqPath.substring(0, basePathLength); - } - cache[index] = result; - basePathCacheMap.set(c, cache); - return result; -}; -export { - basePath, - baseRoutePath, - matchedRoutes, - routePath -}; diff --git a/mcp-server/node_modules/hono/dist/helper/ssg/index.js b/mcp-server/node_modules/hono/dist/helper/ssg/index.js deleted file mode 100644 index 68bcb8e..0000000 --- a/mcp-server/node_modules/hono/dist/helper/ssg/index.js +++ /dev/null @@ -1,16 +0,0 @@ -// src/helper/ssg/index.ts -export * from "./ssg.js"; -import { - X_HONO_DISABLE_SSG_HEADER_KEY, - ssgParams, - isSSGContext, - disableSSG, - onlySSG -} from "./middleware.js"; -export { - X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG, - isSSGContext, - onlySSG, - ssgParams -}; diff --git a/mcp-server/node_modules/hono/dist/helper/ssg/middleware.js b/mcp-server/node_modules/hono/dist/helper/ssg/middleware.js deleted file mode 100644 index ddb59bd..0000000 --- a/mcp-server/node_modules/hono/dist/helper/ssg/middleware.js +++ /dev/null @@ -1,45 +0,0 @@ -// src/helper/ssg/middleware.ts -import { isDynamicRoute } from "./utils.js"; -var SSG_CONTEXT = "HONO_SSG_CONTEXT"; -var X_HONO_DISABLE_SSG_HEADER_KEY = "x-hono-disable-ssg"; -var SSG_DISABLED_RESPONSE = (() => { - try { - return new Response("SSG is disabled", { - status: 404, - headers: { [X_HONO_DISABLE_SSG_HEADER_KEY]: "true" } - }); - } catch { - return null; - } -})(); -var ssgParams = (params) => async (c, next) => { - if (isDynamicRoute(c.req.path)) { - ; - c.req.raw.ssgParams = Array.isArray(params) ? params : await params(c); - return c.notFound(); - } - await next(); -}; -var isSSGContext = (c) => !!c.env?.[SSG_CONTEXT]; -var disableSSG = () => async function disableSSG2(c, next) { - if (isSSGContext(c)) { - c.header(X_HONO_DISABLE_SSG_HEADER_KEY, "true"); - return c.notFound(); - } - await next(); -}; -var onlySSG = () => async function onlySSG2(c, next) { - if (!isSSGContext(c)) { - return c.notFound(); - } - await next(); -}; -export { - SSG_CONTEXT, - SSG_DISABLED_RESPONSE, - X_HONO_DISABLE_SSG_HEADER_KEY, - disableSSG, - isSSGContext, - onlySSG, - ssgParams -}; diff --git a/mcp-server/node_modules/hono/dist/helper/ssg/ssg.js b/mcp-server/node_modules/hono/dist/helper/ssg/ssg.js deleted file mode 100644 index d51f07d..0000000 --- a/mcp-server/node_modules/hono/dist/helper/ssg/ssg.js +++ /dev/null @@ -1,295 +0,0 @@ -// src/helper/ssg/ssg.ts -import { replaceUrlParam } from "../../client/utils.js"; -import { createPool } from "../../utils/concurrent.js"; -import { getExtension } from "../../utils/mime.js"; -import { SSG_CONTEXT, X_HONO_DISABLE_SSG_HEADER_KEY } from "./middleware.js"; -import { dirname, filterStaticGenerateRoutes, isDynamicRoute, joinPaths } from "./utils.js"; -var DEFAULT_CONCURRENCY = 2; -var DEFAULT_CONTENT_TYPE = "text/plain"; -var DEFAULT_OUTPUT_DIR = "./static"; -var generateFilePath = (routePath, outDir, mimeType, extensionMap) => { - const extension = determineExtension(mimeType, extensionMap); - if (routePath.endsWith(`.${extension}`)) { - return joinPaths(outDir, routePath); - } - if (routePath === "/") { - return joinPaths(outDir, `index.${extension}`); - } - if (routePath.endsWith("/")) { - return joinPaths(outDir, routePath, `index.${extension}`); - } - return joinPaths(outDir, `${routePath}.${extension}`); -}; -var parseResponseContent = async (response) => { - const contentType = response.headers.get("Content-Type"); - try { - if (contentType?.includes("text") || contentType?.includes("json")) { - return await response.text(); - } else { - return await response.arrayBuffer(); - } - } catch (error) { - throw new Error( - `Error processing response: ${error instanceof Error ? error.message : "Unknown error"}` - ); - } -}; -var defaultExtensionMap = { - "text/html": "html", - "text/xml": "xml", - "application/xml": "xml", - "application/yaml": "yaml" -}; -var determineExtension = (mimeType, userExtensionMap) => { - const extensionMap = userExtensionMap || defaultExtensionMap; - if (mimeType in extensionMap) { - return extensionMap[mimeType]; - } - return getExtension(mimeType) || "html"; -}; -var combineBeforeRequestHooks = (hooks) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (req) => { - let currentReq = req; - for (const hook of hooks) { - const result = await hook(currentReq); - if (result === false) { - return false; - } - if (result instanceof Request) { - currentReq = result; - } - } - return currentReq; - }; -}; -var combineAfterResponseHooks = (hooks) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (res) => { - let currentRes = res; - for (const hook of hooks) { - const result = await hook(currentRes); - if (result === false) { - return false; - } - if (result instanceof Response) { - currentRes = result; - } - } - return currentRes; - }; -}; -var combineAfterGenerateHooks = (hooks, fsModule, options) => { - if (!Array.isArray(hooks)) { - return hooks; - } - return async (result) => { - for (const hook of hooks) { - await hook(result, fsModule, options); - } - }; -}; -var fetchRoutesContent = function* (app, beforeRequestHook, afterResponseHook, concurrency) { - const baseURL = "http://localhost"; - const pool = createPool({ concurrency }); - for (const route of filterStaticGenerateRoutes(app)) { - const thisRouteBaseURL = new URL(route.path, baseURL).toString(); - let forGetInfoURLRequest = new Request(thisRouteBaseURL); - yield new Promise(async (resolveGetInfo, rejectGetInfo) => { - try { - if (beforeRequestHook) { - const maybeRequest = await beforeRequestHook(forGetInfoURLRequest); - if (!maybeRequest) { - resolveGetInfo(void 0); - return; - } - forGetInfoURLRequest = maybeRequest; - } - await pool.run(() => app.fetch(forGetInfoURLRequest)); - if (!forGetInfoURLRequest.ssgParams) { - if (isDynamicRoute(route.path)) { - resolveGetInfo(void 0); - return; - } - forGetInfoURLRequest.ssgParams = [{}]; - } - const requestInit = { - method: forGetInfoURLRequest.method, - headers: forGetInfoURLRequest.headers - }; - resolveGetInfo( - (function* () { - for (const param of forGetInfoURLRequest.ssgParams) { - yield new Promise(async (resolveReq, rejectReq) => { - try { - const replacedUrlParam = replaceUrlParam(route.path, param); - let response = await pool.run( - () => app.request(replacedUrlParam, requestInit, { - [SSG_CONTEXT]: true - }) - ); - if (response.headers.get(X_HONO_DISABLE_SSG_HEADER_KEY)) { - resolveReq(void 0); - return; - } - if (afterResponseHook) { - const maybeResponse = await afterResponseHook(response); - if (!maybeResponse) { - resolveReq(void 0); - return; - } - response = maybeResponse; - } - const mimeType = response.headers.get("Content-Type")?.split(";")[0] || DEFAULT_CONTENT_TYPE; - const content = await parseResponseContent(response); - resolveReq({ - routePath: replacedUrlParam, - mimeType, - content - }); - } catch (error) { - rejectReq(error); - } - }); - } - })() - ); - } catch (error) { - rejectGetInfo(error); - } - }); - } -}; -var createdDirs = /* @__PURE__ */ new Set(); -var saveContentToFile = async (data, fsModule, outDir, extensionMap) => { - const awaitedData = await data; - if (!awaitedData) { - return; - } - const { routePath, content, mimeType } = awaitedData; - const filePath = generateFilePath(routePath, outDir, mimeType, extensionMap); - const dirPath = dirname(filePath); - if (!createdDirs.has(dirPath)) { - await fsModule.mkdir(dirPath, { recursive: true }); - createdDirs.add(dirPath); - } - if (typeof content === "string") { - await fsModule.writeFile(filePath, content); - } else if (content instanceof ArrayBuffer) { - await fsModule.writeFile(filePath, new Uint8Array(content)); - } - return filePath; -}; -var defaultPlugin = { - afterResponseHook: (res) => { - if (res.status !== 200) { - return false; - } - return res; - } -}; -var toSSG = async (app, fs, options) => { - let result; - const getInfoPromises = []; - const savePromises = []; - const plugins = options?.plugins || [defaultPlugin]; - const beforeRequestHooks = []; - const afterResponseHooks = []; - const afterGenerateHooks = []; - if (options?.beforeRequestHook) { - beforeRequestHooks.push( - ...Array.isArray(options.beforeRequestHook) ? options.beforeRequestHook : [options.beforeRequestHook] - ); - } - if (options?.afterResponseHook) { - afterResponseHooks.push( - ...Array.isArray(options.afterResponseHook) ? options.afterResponseHook : [options.afterResponseHook] - ); - } - if (options?.afterGenerateHook) { - afterGenerateHooks.push( - ...Array.isArray(options.afterGenerateHook) ? options.afterGenerateHook : [options.afterGenerateHook] - ); - } - for (const plugin of plugins) { - if (plugin.beforeRequestHook) { - beforeRequestHooks.push( - ...Array.isArray(plugin.beforeRequestHook) ? plugin.beforeRequestHook : [plugin.beforeRequestHook] - ); - } - if (plugin.afterResponseHook) { - afterResponseHooks.push( - ...Array.isArray(plugin.afterResponseHook) ? plugin.afterResponseHook : [plugin.afterResponseHook] - ); - } - if (plugin.afterGenerateHook) { - afterGenerateHooks.push( - ...Array.isArray(plugin.afterGenerateHook) ? plugin.afterGenerateHook : [plugin.afterGenerateHook] - ); - } - } - try { - const outputDir = options?.dir ?? DEFAULT_OUTPUT_DIR; - const concurrency = options?.concurrency ?? DEFAULT_CONCURRENCY; - const combinedBeforeRequestHook = combineBeforeRequestHooks( - beforeRequestHooks.length > 0 ? beforeRequestHooks : [(req) => req] - ); - const combinedAfterResponseHook = combineAfterResponseHooks( - afterResponseHooks.length > 0 ? afterResponseHooks : [(req) => req] - ); - const getInfoGen = fetchRoutesContent( - app, - combinedBeforeRequestHook, - combinedAfterResponseHook, - concurrency - ); - for (const getInfo of getInfoGen) { - getInfoPromises.push( - getInfo.then((getContentGen) => { - if (!getContentGen) { - return; - } - for (const content of getContentGen) { - savePromises.push( - saveContentToFile(content, fs, outputDir, options?.extensionMap).catch((e) => e) - ); - } - }) - ); - } - await Promise.all(getInfoPromises); - const files = []; - for (const savePromise of savePromises) { - const fileOrError = await savePromise; - if (typeof fileOrError === "string") { - files.push(fileOrError); - } else if (fileOrError) { - throw fileOrError; - } - } - result = { success: true, files }; - } catch (error) { - const errorObj = error instanceof Error ? error : new Error(String(error)); - result = { success: false, files: [], error: errorObj }; - } - if (afterGenerateHooks.length > 0) { - const combinedAfterGenerateHooks = combineAfterGenerateHooks(afterGenerateHooks, fs, options); - await combinedAfterGenerateHooks(result, fs, options); - } - return result; -}; -export { - DEFAULT_OUTPUT_DIR, - combineAfterGenerateHooks, - combineAfterResponseHooks, - combineBeforeRequestHooks, - defaultExtensionMap, - defaultPlugin, - fetchRoutesContent, - saveContentToFile, - toSSG -}; diff --git a/mcp-server/node_modules/hono/dist/helper/ssg/utils.js b/mcp-server/node_modules/hono/dist/helper/ssg/utils.js deleted file mode 100644 index 793b5dc..0000000 --- a/mcp-server/node_modules/hono/dist/helper/ssg/utils.js +++ /dev/null @@ -1,59 +0,0 @@ -// src/helper/ssg/utils.ts -import { METHOD_NAME_ALL } from "../../router.js"; -import { findTargetHandler, isMiddleware } from "../../utils/handler.js"; -var dirname = (path) => { - const separatedPath = path.split(/[\/\\]/); - return separatedPath.slice(0, -1).join("/"); -}; -var normalizePath = (path) => { - return path.replace(/(\\)/g, "/").replace(/\/$/g, ""); -}; -var handleParent = (resultPaths, beforeParentFlag) => { - if (resultPaths.length === 0 || beforeParentFlag) { - resultPaths.push(".."); - } else { - resultPaths.pop(); - } -}; -var handleNonDot = (path, resultPaths) => { - path = path.replace(/^\.(?!.)/, ""); - if (path !== "") { - resultPaths.push(path); - } -}; -var handleSegments = (paths, resultPaths) => { - let beforeParentFlag = false; - for (const path of paths) { - if (path === "..") { - handleParent(resultPaths, beforeParentFlag); - beforeParentFlag = true; - } else { - handleNonDot(path, resultPaths); - beforeParentFlag = false; - } - } -}; -var joinPaths = (...paths) => { - paths = paths.map(normalizePath); - const resultPaths = []; - handleSegments(paths.join("/").split("/"), resultPaths); - return (paths[0][0] === "/" ? "/" : "") + resultPaths.join("/"); -}; -var filterStaticGenerateRoutes = (hono) => { - return hono.routes.reduce((acc, { method, handler, path }) => { - const targetHandler = findTargetHandler(handler); - if (["GET", METHOD_NAME_ALL].includes(method) && !isMiddleware(targetHandler)) { - acc.push({ path }); - } - return acc; - }, []); -}; -var isDynamicRoute = (path) => { - return path.split("/").some((segment) => segment.startsWith(":") || segment.includes("*")); -}; -export { - dirname, - filterStaticGenerateRoutes, - isDynamicRoute, - joinPaths -}; diff --git a/mcp-server/node_modules/hono/dist/helper/streaming/index.js b/mcp-server/node_modules/hono/dist/helper/streaming/index.js deleted file mode 100644 index c59a2d0..0000000 --- a/mcp-server/node_modules/hono/dist/helper/streaming/index.js +++ /dev/null @@ -1,10 +0,0 @@ -// src/helper/streaming/index.ts -import { stream } from "./stream.js"; -import { streamSSE, SSEStreamingApi } from "./sse.js"; -import { streamText } from "./text.js"; -export { - SSEStreamingApi, - stream, - streamSSE, - streamText -}; diff --git a/mcp-server/node_modules/hono/dist/helper/streaming/sse.js b/mcp-server/node_modules/hono/dist/helper/streaming/sse.js deleted file mode 100644 index cc8b51d..0000000 --- a/mcp-server/node_modules/hono/dist/helper/streaming/sse.js +++ /dev/null @@ -1,62 +0,0 @@ -// src/helper/streaming/sse.ts -import { HtmlEscapedCallbackPhase, resolveCallback } from "../../utils/html.js"; -import { StreamingApi } from "../../utils/stream.js"; -import { isOldBunVersion } from "./utils.js"; -var SSEStreamingApi = class extends StreamingApi { - constructor(writable, readable) { - super(writable, readable); - } - async writeSSE(message) { - const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {}); - const dataLines = data.split("\n").map((line) => { - return `data: ${line}`; - }).join("\n"); - const sseData = [ - message.event && `event: ${message.event}`, - dataLines, - message.id && `id: ${message.id}`, - message.retry && `retry: ${message.retry}` - ].filter(Boolean).join("\n") + "\n\n"; - await this.write(sseData); - } -}; -var run = async (stream, cb, onError) => { - try { - await cb(stream); - } catch (e) { - if (e instanceof Error && onError) { - await onError(e, stream); - await stream.writeSSE({ - event: "error", - data: e.message - }); - } else { - console.error(e); - } - } finally { - stream.close(); - } -}; -var contextStash = /* @__PURE__ */ new WeakMap(); -var streamSSE = (c, cb, onError) => { - const { readable, writable } = new TransformStream(); - const stream = new SSEStreamingApi(writable, readable); - if (isOldBunVersion()) { - c.req.raw.signal.addEventListener("abort", () => { - if (!stream.closed) { - stream.abort(); - } - }); - } - contextStash.set(stream.responseReadable, c); - c.header("Transfer-Encoding", "chunked"); - c.header("Content-Type", "text/event-stream"); - c.header("Cache-Control", "no-cache"); - c.header("Connection", "keep-alive"); - run(stream, cb, onError); - return c.newResponse(stream.responseReadable); -}; -export { - SSEStreamingApi, - streamSSE -}; diff --git a/mcp-server/node_modules/hono/dist/helper/streaming/stream.js b/mcp-server/node_modules/hono/dist/helper/streaming/stream.js deleted file mode 100644 index 8a3feb4..0000000 --- a/mcp-server/node_modules/hono/dist/helper/streaming/stream.js +++ /dev/null @@ -1,34 +0,0 @@ -// src/helper/streaming/stream.ts -import { StreamingApi } from "../../utils/stream.js"; -import { isOldBunVersion } from "./utils.js"; -var contextStash = /* @__PURE__ */ new WeakMap(); -var stream = (c, cb, onError) => { - const { readable, writable } = new TransformStream(); - const stream2 = new StreamingApi(writable, readable); - if (isOldBunVersion()) { - c.req.raw.signal.addEventListener("abort", () => { - if (!stream2.closed) { - stream2.abort(); - } - }); - } - contextStash.set(stream2.responseReadable, c); - (async () => { - try { - await cb(stream2); - } catch (e) { - if (e === void 0) { - } else if (e instanceof Error && onError) { - await onError(e, stream2); - } else { - console.error(e); - } - } finally { - stream2.close(); - } - })(); - return c.newResponse(stream2.responseReadable); -}; -export { - stream -}; diff --git a/mcp-server/node_modules/hono/dist/helper/streaming/text.js b/mcp-server/node_modules/hono/dist/helper/streaming/text.js deleted file mode 100644 index 9e93cab..0000000 --- a/mcp-server/node_modules/hono/dist/helper/streaming/text.js +++ /dev/null @@ -1,12 +0,0 @@ -// src/helper/streaming/text.ts -import { TEXT_PLAIN } from "../../context.js"; -import { stream } from "./index.js"; -var streamText = (c, cb, onError) => { - c.header("Content-Type", TEXT_PLAIN); - c.header("X-Content-Type-Options", "nosniff"); - c.header("Transfer-Encoding", "chunked"); - return stream(c, cb, onError); -}; -export { - streamText -}; diff --git a/mcp-server/node_modules/hono/dist/helper/streaming/utils.js b/mcp-server/node_modules/hono/dist/helper/streaming/utils.js deleted file mode 100644 index 671f441..0000000 --- a/mcp-server/node_modules/hono/dist/helper/streaming/utils.js +++ /dev/null @@ -1,13 +0,0 @@ -// src/helper/streaming/utils.ts -var isOldBunVersion = () => { - const version = typeof Bun !== "undefined" ? Bun.version : void 0; - if (version === void 0) { - return false; - } - const result = version.startsWith("1.1") || version.startsWith("1.0") || version.startsWith("0."); - isOldBunVersion = () => result; - return result; -}; -export { - isOldBunVersion -}; diff --git a/mcp-server/node_modules/hono/dist/helper/testing/index.js b/mcp-server/node_modules/hono/dist/helper/testing/index.js deleted file mode 100644 index 7ba1034..0000000 --- a/mcp-server/node_modules/hono/dist/helper/testing/index.js +++ /dev/null @@ -1,11 +0,0 @@ -// src/helper/testing/index.ts -import { hc } from "../../client/index.js"; -var testClient = (app, Env, executionCtx, options) => { - const customFetch = (input, init) => { - return app.request(input, init, Env, executionCtx); - }; - return hc("http://localhost", { ...options, fetch: customFetch }); -}; -export { - testClient -}; diff --git a/mcp-server/node_modules/hono/dist/helper/websocket/index.js b/mcp-server/node_modules/hono/dist/helper/websocket/index.js deleted file mode 100644 index 1225415..0000000 --- a/mcp-server/node_modules/hono/dist/helper/websocket/index.js +++ /dev/null @@ -1,57 +0,0 @@ -// src/helper/websocket/index.ts -var WSContext = class { - #init; - constructor(init) { - this.#init = init; - this.raw = init.raw; - this.url = init.url ? new URL(init.url) : null; - this.protocol = init.protocol ?? null; - } - send(source, options) { - this.#init.send(source, options ?? {}); - } - raw; - binaryType = "arraybuffer"; - get readyState() { - return this.#init.readyState; - } - url; - protocol; - close(code, reason) { - this.#init.close(code, reason); - } -}; -var createWSMessageEvent = (source) => { - return new MessageEvent("message", { - data: source - }); -}; -var defineWebSocketHelper = (handler) => { - return ((...args) => { - if (typeof args[0] === "function") { - const [createEvents, options] = args; - return async function upgradeWebSocket(c, next) { - const events = await createEvents(c); - const result = await handler(c, events, options); - if (result) { - return result; - } - await next(); - }; - } else { - const [c, events, options] = args; - return (async () => { - const upgraded = await handler(c, events, options); - if (!upgraded) { - throw new Error("Failed to upgrade WebSocket"); - } - return upgraded; - })(); - } - }); -}; -export { - WSContext, - createWSMessageEvent, - defineWebSocketHelper -}; diff --git a/mcp-server/node_modules/hono/dist/hono-base.js b/mcp-server/node_modules/hono/dist/hono-base.js deleted file mode 100644 index 61003a8..0000000 --- a/mcp-server/node_modules/hono/dist/hono-base.js +++ /dev/null @@ -1,378 +0,0 @@ -// src/hono-base.ts -import { compose } from "./compose.js"; -import { Context } from "./context.js"; -import { METHODS, METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE } from "./router.js"; -import { COMPOSED_HANDLER } from "./utils/constants.js"; -import { getPath, getPathNoStrict, mergePath } from "./utils/url.js"; -var notFoundHandler = (c) => { - return c.text("404 Not Found", 404); -}; -var errorHandler = (err, c) => { - if ("getResponse" in err) { - const res = err.getResponse(); - return c.newResponse(res.body, res); - } - console.error(err); - return c.text("Internal Server Error", 500); -}; -var Hono = class _Hono { - get; - post; - put; - delete; - options; - patch; - all; - on; - use; - /* - This class is like an abstract class and does not have a router. - To use it, inherit the class and implement router in the constructor. - */ - router; - getPath; - // Cannot use `#` because it requires visibility at JavaScript runtime. - _basePath = "/"; - #path = "/"; - routes = []; - constructor(options = {}) { - const allMethods = [...METHODS, METHOD_NAME_ALL_LOWERCASE]; - allMethods.forEach((method) => { - this[method] = (args1, ...args) => { - if (typeof args1 === "string") { - this.#path = args1; - } else { - this.#addRoute(method, this.#path, args1); - } - args.forEach((handler) => { - this.#addRoute(method, this.#path, handler); - }); - return this; - }; - }); - this.on = (method, path, ...handlers) => { - for (const p of [path].flat()) { - this.#path = p; - for (const m of [method].flat()) { - handlers.map((handler) => { - this.#addRoute(m.toUpperCase(), this.#path, handler); - }); - } - } - return this; - }; - this.use = (arg1, ...handlers) => { - if (typeof arg1 === "string") { - this.#path = arg1; - } else { - this.#path = "*"; - handlers.unshift(arg1); - } - handlers.forEach((handler) => { - this.#addRoute(METHOD_NAME_ALL, this.#path, handler); - }); - return this; - }; - const { strict, ...optionsWithoutStrict } = options; - Object.assign(this, optionsWithoutStrict); - this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict; - } - #clone() { - const clone = new _Hono({ - router: this.router, - getPath: this.getPath - }); - clone.errorHandler = this.errorHandler; - clone.#notFoundHandler = this.#notFoundHandler; - clone.routes = this.routes; - return clone; - } - #notFoundHandler = notFoundHandler; - // Cannot use `#` because it requires visibility at JavaScript runtime. - errorHandler = errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path, app) { - const subApp = this.basePath(path); - app.routes.map((r) => { - let handler; - if (app.errorHandler === errorHandler) { - handler = r.handler; - } else { - handler = async (c, next) => (await compose([], app.errorHandler)(c, () => r.handler(c, next))).res; - handler[COMPOSED_HANDLER] = r.handler; - } - subApp.#addRoute(r.method, r.path, handler); - }); - return this; - } - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path) { - const subApp = this.#clone(); - subApp._basePath = mergePath(this._basePath, path); - return subApp; - } - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError = (handler) => { - this.errorHandler = handler; - return this; - }; - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound = (handler) => { - this.#notFoundHandler = handler; - return this; - }; - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path, applicationHandler, options) { - let replaceRequest; - let optionHandler; - if (options) { - if (typeof options === "function") { - optionHandler = options; - } else { - optionHandler = options.optionHandler; - if (options.replaceRequest === false) { - replaceRequest = (request) => request; - } else { - replaceRequest = options.replaceRequest; - } - } - } - const getOptions = optionHandler ? (c) => { - const options2 = optionHandler(c); - return Array.isArray(options2) ? options2 : [options2]; - } : (c) => { - let executionContext = void 0; - try { - executionContext = c.executionCtx; - } catch { - } - return [c.env, executionContext]; - }; - replaceRequest ||= (() => { - const mergedPath = mergePath(this._basePath, path); - const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length; - return (request) => { - const url = new URL(request.url); - url.pathname = url.pathname.slice(pathPrefixLength) || "/"; - return new Request(url, request); - }; - })(); - const handler = async (c, next) => { - const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c)); - if (res) { - return res; - } - await next(); - }; - this.#addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler); - return this; - } - #addRoute(method, path, handler) { - method = method.toUpperCase(); - path = mergePath(this._basePath, path); - const r = { basePath: this._basePath, path, method, handler }; - this.router.add(method, path, [handler, r]); - this.routes.push(r); - } - #handleError(err, c) { - if (err instanceof Error) { - return this.errorHandler(err, c); - } - throw err; - } - #dispatch(request, executionCtx, env, method) { - if (method === "HEAD") { - return (async () => new Response(null, await this.#dispatch(request, executionCtx, env, "GET")))(); - } - const path = this.getPath(request, { env }); - const matchResult = this.router.match(method, path); - const c = new Context(request, { - path, - matchResult, - env, - executionCtx, - notFoundHandler: this.#notFoundHandler - }); - if (matchResult[0].length === 1) { - let res; - try { - res = matchResult[0][0][0][0](c, async () => { - c.res = await this.#notFoundHandler(c); - }); - } catch (err) { - return this.#handleError(err, c); - } - return res instanceof Promise ? res.then( - (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c)) - ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c); - } - const composed = compose(matchResult[0], this.errorHandler, this.#notFoundHandler); - return (async () => { - try { - const context = await composed(c); - if (!context.finalized) { - throw new Error( - "Context is not finalized. Did you forget to return a Response object or `await next()`?" - ); - } - return context.res; - } catch (err) { - return this.#handleError(err, c); - } - })(); - } - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch = (request, ...rest) => { - return this.#dispatch(request, rest[1], rest[0], request.method); - }; - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request = (input, requestInit, Env, executionCtx) => { - if (input instanceof Request) { - return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx); - } - input = input.toString(); - return this.fetch( - new Request( - /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`, - requestInit - ), - Env, - executionCtx - ); - }; - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire = () => { - addEventListener("fetch", (event) => { - event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method)); - }); - }; -}; -export { - Hono as HonoBase -}; diff --git a/mcp-server/node_modules/hono/dist/hono.js b/mcp-server/node_modules/hono/dist/hono.js deleted file mode 100644 index ff63386..0000000 --- a/mcp-server/node_modules/hono/dist/hono.js +++ /dev/null @@ -1,21 +0,0 @@ -// src/hono.ts -import { HonoBase } from "./hono-base.js"; -import { RegExpRouter } from "./router/reg-exp-router/index.js"; -import { SmartRouter } from "./router/smart-router/index.js"; -import { TrieRouter } from "./router/trie-router/index.js"; -var Hono = class extends HonoBase { - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options = {}) { - super(options); - this.router = options.router ?? new SmartRouter({ - routers: [new RegExpRouter(), new TrieRouter()] - }); - } -}; -export { - Hono -}; diff --git a/mcp-server/node_modules/hono/dist/http-exception.js b/mcp-server/node_modules/hono/dist/http-exception.js deleted file mode 100644 index 070a51f..0000000 --- a/mcp-server/node_modules/hono/dist/http-exception.js +++ /dev/null @@ -1,35 +0,0 @@ -// src/http-exception.ts -var HTTPException = class extends Error { - res; - status; - /** - * Creates an instance of `HTTPException`. - * @param status - HTTP status code for the exception. Defaults to 500. - * @param options - Additional options for the exception. - */ - constructor(status = 500, options) { - super(options?.message, { cause: options?.cause }); - this.res = options?.res; - this.status = status; - } - /** - * Returns the response object associated with the exception. - * If a response object is not provided, a new response is created with the error message and status code. - * @returns The response object. - */ - getResponse() { - if (this.res) { - const newResponse = new Response(this.res.body, { - status: this.status, - headers: this.res.headers - }); - return newResponse; - } - return new Response(this.message, { - status: this.status - }); - } -}; -export { - HTTPException -}; diff --git a/mcp-server/node_modules/hono/dist/index.js b/mcp-server/node_modules/hono/dist/index.js deleted file mode 100644 index 7f45bb9..0000000 --- a/mcp-server/node_modules/hono/dist/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/index.ts -import { Hono } from "./hono.js"; -export { - Hono -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/base.js b/mcp-server/node_modules/hono/dist/jsx/base.js deleted file mode 100644 index 105e25c..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/base.js +++ /dev/null @@ -1,331 +0,0 @@ -// src/jsx/base.ts -import { raw } from "../helper/html/index.js"; -import { escapeToBuffer, resolveCallbackSync, stringBufferToString } from "../utils/html.js"; -import { DOM_RENDERER, DOM_MEMO } from "./constants.js"; -import { createContext, globalContexts, useContext } from "./context.js"; -import { domRenderers } from "./intrinsic-element/common.js"; -import * as intrinsicElementTags from "./intrinsic-element/components.js"; -import { normalizeIntrinsicElementKey, styleObjectForEach } from "./utils.js"; -var nameSpaceContext = void 0; -var getNameSpaceContext = () => nameSpaceContext; -var toSVGAttributeName = (key) => /[A-Z]/.test(key) && // Presentation attributes are findable in style object. "clip-path", "font-size", "stroke-width", etc. -// Or other un-deprecated kebab-case attributes. "overline-position", "paint-order", "strikethrough-position", etc. -key.match( - /^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/ -) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key; -var emptyTags = [ - "area", - "base", - "br", - "col", - "embed", - "hr", - "img", - "input", - "keygen", - "link", - "meta", - "param", - "source", - "track", - "wbr" -]; -var booleanAttributes = [ - "allowfullscreen", - "async", - "autofocus", - "autoplay", - "checked", - "controls", - "default", - "defer", - "disabled", - "download", - "formnovalidate", - "hidden", - "inert", - "ismap", - "itemscope", - "loop", - "multiple", - "muted", - "nomodule", - "novalidate", - "open", - "playsinline", - "readonly", - "required", - "reversed", - "selected" -]; -var childrenToStringToBuffer = (children, buffer) => { - for (let i = 0, len = children.length; i < len; i++) { - const child = children[i]; - if (typeof child === "string") { - escapeToBuffer(child, buffer); - } else if (typeof child === "boolean" || child === null || child === void 0) { - continue; - } else if (child instanceof JSXNode) { - child.toStringToBuffer(buffer); - } else if (typeof child === "number" || child.isEscaped) { - ; - buffer[0] += child; - } else if (child instanceof Promise) { - buffer.unshift("", child); - } else { - childrenToStringToBuffer(child, buffer); - } - } -}; -var JSXNode = class { - tag; - props; - key; - children; - isEscaped = true; - localContexts; - constructor(tag, props, children) { - this.tag = tag; - this.props = props; - this.children = children; - } - get type() { - return this.tag; - } - // Added for compatibility with libraries that rely on React's internal structure - // eslint-disable-next-line @typescript-eslint/no-explicit-any - get ref() { - return this.props.ref || null; - } - toString() { - const buffer = [""]; - this.localContexts?.forEach(([context, value]) => { - context.values.push(value); - }); - try { - this.toStringToBuffer(buffer); - } finally { - this.localContexts?.forEach(([context]) => { - context.values.pop(); - }); - } - return buffer.length === 1 ? "callbacks" in buffer ? resolveCallbackSync(raw(buffer[0], buffer.callbacks)).toString() : buffer[0] : stringBufferToString(buffer, buffer.callbacks); - } - toStringToBuffer(buffer) { - const tag = this.tag; - const props = this.props; - let { children } = this; - buffer[0] += `<${tag}`; - const normalizeKey = nameSpaceContext && useContext(nameSpaceContext) === "svg" ? (key) => toSVGAttributeName(normalizeIntrinsicElementKey(key)) : (key) => normalizeIntrinsicElementKey(key); - for (let [key, v] of Object.entries(props)) { - key = normalizeKey(key); - if (key === "children") { - } else if (key === "style" && typeof v === "object") { - let styleStr = ""; - styleObjectForEach(v, (property, value) => { - if (value != null) { - styleStr += `${styleStr ? ";" : ""}${property}:${value}`; - } - }); - buffer[0] += ' style="'; - escapeToBuffer(styleStr, buffer); - buffer[0] += '"'; - } else if (typeof v === "string") { - buffer[0] += ` ${key}="`; - escapeToBuffer(v, buffer); - buffer[0] += '"'; - } else if (v === null || v === void 0) { - } else if (typeof v === "number" || v.isEscaped) { - buffer[0] += ` ${key}="${v}"`; - } else if (typeof v === "boolean" && booleanAttributes.includes(key)) { - if (v) { - buffer[0] += ` ${key}=""`; - } - } else if (key === "dangerouslySetInnerHTML") { - if (children.length > 0) { - throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); - } - children = [raw(v.__html)]; - } else if (v instanceof Promise) { - buffer[0] += ` ${key}="`; - buffer.unshift('"', v); - } else if (typeof v === "function") { - if (!key.startsWith("on") && key !== "ref") { - throw new Error(`Invalid prop '${key}' of type 'function' supplied to '${tag}'.`); - } - } else { - buffer[0] += ` ${key}="`; - escapeToBuffer(v.toString(), buffer); - buffer[0] += '"'; - } - } - if (emptyTags.includes(tag) && children.length === 0) { - buffer[0] += "/>"; - return; - } - buffer[0] += ">"; - childrenToStringToBuffer(children, buffer); - buffer[0] += ``; - } -}; -var JSXFunctionNode = class extends JSXNode { - toStringToBuffer(buffer) { - const { children } = this; - const props = { ...this.props }; - if (children.length) { - props.children = children.length === 1 ? children[0] : children; - } - const res = this.tag.call(null, props); - if (typeof res === "boolean" || res == null) { - return; - } else if (res instanceof Promise) { - if (globalContexts.length === 0) { - buffer.unshift("", res); - } else { - const currentContexts = globalContexts.map((c) => [c, c.values.at(-1)]); - buffer.unshift( - "", - res.then((childRes) => { - if (childRes instanceof JSXNode) { - childRes.localContexts = currentContexts; - } - return childRes; - }) - ); - } - } else if (res instanceof JSXNode) { - res.toStringToBuffer(buffer); - } else if (typeof res === "number" || res.isEscaped) { - buffer[0] += res; - if (res.callbacks) { - buffer.callbacks ||= []; - buffer.callbacks.push(...res.callbacks); - } - } else { - escapeToBuffer(res, buffer); - } - } -}; -var JSXFragmentNode = class extends JSXNode { - toStringToBuffer(buffer) { - childrenToStringToBuffer(this.children, buffer); - } -}; -var jsx = (tag, props, ...children) => { - props ??= {}; - if (children.length) { - props.children = children.length === 1 ? children[0] : children; - } - const key = props.key; - delete props["key"]; - const node = jsxFn(tag, props, children); - node.key = key; - return node; -}; -var initDomRenderer = false; -var jsxFn = (tag, props, children) => { - if (!initDomRenderer) { - for (const k in domRenderers) { - ; - intrinsicElementTags[k][DOM_RENDERER] = domRenderers[k]; - } - initDomRenderer = true; - } - if (typeof tag === "function") { - return new JSXFunctionNode(tag, props, children); - } else if (intrinsicElementTags[tag]) { - return new JSXFunctionNode( - intrinsicElementTags[tag], - props, - children - ); - } else if (tag === "svg" || tag === "head") { - nameSpaceContext ||= createContext(""); - return new JSXNode(tag, props, [ - new JSXFunctionNode( - nameSpaceContext, - { - value: tag - }, - children - ) - ]); - } else { - return new JSXNode(tag, props, children); - } -}; -var shallowEqual = (a, b) => { - if (a === b) { - return true; - } - const aKeys = Object.keys(a).sort(); - const bKeys = Object.keys(b).sort(); - if (aKeys.length !== bKeys.length) { - return false; - } - for (let i = 0, len = aKeys.length; i < len; i++) { - if (aKeys[i] === "children" && bKeys[i] === "children" && !a.children?.length && !b.children?.length) { - continue; - } else if (a[aKeys[i]] !== b[aKeys[i]]) { - return false; - } - } - return true; -}; -var memo = (component, propsAreEqual = shallowEqual) => { - let computed = null; - let prevProps = void 0; - const wrapper = ((props) => { - if (prevProps && !propsAreEqual(prevProps, props)) { - computed = null; - } - prevProps = props; - return computed ||= component(props); - }); - wrapper[DOM_MEMO] = propsAreEqual; - wrapper[DOM_RENDERER] = component; - return wrapper; -}; -var Fragment = ({ - children -}) => { - return new JSXFragmentNode( - "", - { - children - }, - Array.isArray(children) ? children : children ? [children] : [] - ); -}; -var isValidElement = (element) => { - return !!(element && typeof element === "object" && "tag" in element && "props" in element); -}; -var cloneElement = (element, props, ...children) => { - let childrenToClone; - if (children.length > 0) { - childrenToClone = children; - } else { - const c = element.props.children; - childrenToClone = Array.isArray(c) ? c : [c]; - } - return jsx( - element.tag, - { ...element.props, ...props }, - ...childrenToClone - ); -}; -var reactAPICompatVersion = "19.0.0-hono-jsx"; -export { - Fragment, - JSXFragmentNode, - JSXNode, - booleanAttributes, - cloneElement, - getNameSpaceContext, - isValidElement, - jsx, - jsxFn, - memo, - reactAPICompatVersion, - shallowEqual -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/children.js b/mcp-server/node_modules/hono/dist/jsx/children.js deleted file mode 100644 index 12ad951..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/children.js +++ /dev/null @@ -1,21 +0,0 @@ -// src/jsx/children.ts -var toArray = (children) => Array.isArray(children) ? children : [children]; -var Children = { - map: (children, fn) => toArray(children).map(fn), - forEach: (children, fn) => { - toArray(children).forEach(fn); - }, - count: (children) => toArray(children).length, - only: (_children) => { - const children = toArray(_children); - if (children.length !== 1) { - throw new Error("Children.only() expects only one child"); - } - return children[0]; - }, - toArray -}; -export { - Children, - toArray -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/components.js b/mcp-server/node_modules/hono/dist/jsx/components.js deleted file mode 100644 index c8052d5..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/components.js +++ /dev/null @@ -1,152 +0,0 @@ -// src/jsx/components.ts -import { raw } from "../helper/html/index.js"; -import { HtmlEscapedCallbackPhase, resolveCallback } from "../utils/html.js"; -import { DOM_RENDERER } from "./constants.js"; -import { useContext } from "./context.js"; -import { ErrorBoundary as ErrorBoundaryDomRenderer } from "./dom/components.js"; -import { StreamingContext } from "./streaming.js"; -var errorBoundaryCounter = 0; -var childrenToString = async (children) => { - try { - return children.flat().map((c) => c == null || typeof c === "boolean" ? "" : c.toString()); - } catch (e) { - if (e instanceof Promise) { - await e; - return childrenToString(children); - } else { - throw e; - } - } -}; -var ErrorBoundary = async ({ children, fallback, fallbackRender, onError }) => { - if (!children) { - return raw(""); - } - if (!Array.isArray(children)) { - children = [children]; - } - const nonce = useContext(StreamingContext)?.scriptNonce; - let fallbackStr; - const fallbackRes = (error) => { - onError?.(error); - return (fallbackStr || fallbackRender?.(error) || "").toString(); - }; - let resArray = []; - try { - resArray = children.map( - (c) => c == null || typeof c === "boolean" ? "" : c.toString() - ); - } catch (e) { - fallbackStr = await fallback?.toString(); - if (e instanceof Promise) { - resArray = [ - e.then(() => childrenToString(children)).catch((e2) => fallbackRes(e2)) - ]; - } else { - resArray = [fallbackRes(e)]; - } - } - if (resArray.some((res) => res instanceof Promise)) { - fallbackStr ||= await fallback?.toString(); - const index = errorBoundaryCounter++; - const replaceRe = RegExp(`(.*?)(.*?)()`); - const caught = false; - const catchCallback = ({ error: error2, buffer }) => { - if (caught) { - return ""; - } - const fallbackResString = fallbackRes(error2); - if (buffer) { - buffer[0] = buffer[0].replace(replaceRe, fallbackResString); - } - return buffer ? "" : ``; - }; - let error; - const promiseAll = Promise.all(resArray).catch((e) => error = e); - return raw(``, [ - ({ phase, buffer, context }) => { - if (phase === HtmlEscapedCallbackPhase.BeforeStream) { - return; - } - return promiseAll.then(async (htmlArray) => { - if (error) { - throw error; - } - htmlArray = htmlArray.flat(); - const content = htmlArray.join(""); - let html = buffer ? "" : ` -((d,c) => { -c=d.currentScript.previousSibling -d=d.getElementById('E:${index}') -if(!d)return -d.parentElement.insertBefore(c.content,d.nextSibling) -})(document) -`; - if (htmlArray.every((html2) => !html2.callbacks?.length)) { - if (buffer) { - buffer[0] = buffer[0].replace(replaceRe, content); - } - return html; - } - if (buffer) { - buffer[0] = buffer[0].replace( - replaceRe, - (_all, pre, _, post) => `${pre}${content}${post}` - ); - } - const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat(); - if (phase === HtmlEscapedCallbackPhase.Stream) { - html = await resolveCallback( - html, - HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - } - let resolvedCount = 0; - const promises = callbacks.map( - (c) => (...args) => c(...args)?.then((content2) => { - resolvedCount++; - if (buffer) { - if (resolvedCount === callbacks.length) { - buffer[0] = buffer[0].replace(replaceRe, (_all, _pre, content3) => content3); - } - buffer[0] += content2; - return raw("", content2.callbacks); - } - return raw( - content2 + (resolvedCount !== callbacks.length ? "" : ``), - content2.callbacks - ); - }).catch((error2) => catchCallback({ error: error2, buffer })) - ); - return raw(html, promises); - }).catch((error2) => catchCallback({ error: error2, buffer })); - } - ]); - } else { - return raw(resArray.join("")); - } -}; -ErrorBoundary[DOM_RENDERER] = ErrorBoundaryDomRenderer; -export { - ErrorBoundary, - childrenToString -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/constants.js b/mcp-server/node_modules/hono/dist/jsx/constants.js deleted file mode 100644 index 872b4bb..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/constants.js +++ /dev/null @@ -1,15 +0,0 @@ -// src/jsx/constants.ts -var DOM_RENDERER = /* @__PURE__ */ Symbol("RENDERER"); -var DOM_ERROR_HANDLER = /* @__PURE__ */ Symbol("ERROR_HANDLER"); -var DOM_STASH = /* @__PURE__ */ Symbol("STASH"); -var DOM_INTERNAL_TAG = /* @__PURE__ */ Symbol("INTERNAL"); -var DOM_MEMO = /* @__PURE__ */ Symbol("MEMO"); -var PERMALINK = /* @__PURE__ */ Symbol("PERMALINK"); -export { - DOM_ERROR_HANDLER, - DOM_INTERNAL_TAG, - DOM_MEMO, - DOM_RENDERER, - DOM_STASH, - PERMALINK -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/context.js b/mcp-server/node_modules/hono/dist/jsx/context.js deleted file mode 100644 index c60896a..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/context.js +++ /dev/null @@ -1,36 +0,0 @@ -// src/jsx/context.ts -import { raw } from "../helper/html/index.js"; -import { JSXFragmentNode } from "./base.js"; -import { DOM_RENDERER } from "./constants.js"; -import { createContextProviderFunction } from "./dom/context.js"; -var globalContexts = []; -var createContext = (defaultValue) => { - const values = [defaultValue]; - const context = ((props) => { - values.push(props.value); - let string; - try { - string = props.children ? (Array.isArray(props.children) ? new JSXFragmentNode("", {}, props.children) : props.children).toString() : ""; - } finally { - values.pop(); - } - if (string instanceof Promise) { - return string.then((resString) => raw(resString, resString.callbacks)); - } else { - return raw(string); - } - }); - context.values = values; - context.Provider = context; - context[DOM_RENDERER] = createContextProviderFunction(values); - globalContexts.push(context); - return context; -}; -var useContext = (context) => { - return context.values.at(-1); -}; -export { - createContext, - globalContexts, - useContext -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/client.js b/mcp-server/node_modules/hono/dist/jsx/dom/client.js deleted file mode 100644 index 4338249..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/client.js +++ /dev/null @@ -1,53 +0,0 @@ -// src/jsx/dom/client.ts -import { useState } from "../hooks/index.js"; -import { buildNode, renderNode } from "./render.js"; -var createRoot = (element, options = {}) => { - let setJsxNode = ( - // unmounted - void 0 - ); - if (Object.keys(options).length > 0) { - console.warn("createRoot options are not supported yet"); - } - return { - render(jsxNode) { - if (setJsxNode === null) { - throw new Error("Cannot update an unmounted root"); - } - if (setJsxNode) { - setJsxNode(jsxNode); - } else { - renderNode( - buildNode({ - tag: () => { - const [_jsxNode, _setJsxNode] = useState(jsxNode); - setJsxNode = _setJsxNode; - return _jsxNode; - }, - props: {} - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }), - element - ); - } - }, - unmount() { - setJsxNode?.(null); - setJsxNode = null; - } - }; -}; -var hydrateRoot = (element, reactNode, options = {}) => { - const root = createRoot(element, options); - root.render(reactNode); - return root; -}; -var client_default = { - createRoot, - hydrateRoot -}; -export { - createRoot, - client_default as default, - hydrateRoot -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/components.js b/mcp-server/node_modules/hono/dist/jsx/dom/components.js deleted file mode 100644 index ad120be..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/components.js +++ /dev/null @@ -1,32 +0,0 @@ -// src/jsx/dom/components.ts -import { DOM_ERROR_HANDLER } from "../constants.js"; -import { Fragment } from "./jsx-runtime.js"; -var ErrorBoundary = (({ children, fallback, fallbackRender, onError }) => { - const res = Fragment({ children }); - res[DOM_ERROR_HANDLER] = (err) => { - if (err instanceof Promise) { - throw err; - } - onError?.(err); - return fallbackRender?.(err) || fallback; - }; - return res; -}); -var Suspense = (({ - children, - fallback -}) => { - const res = Fragment({ children }); - res[DOM_ERROR_HANDLER] = (err, retry) => { - if (!(err instanceof Promise)) { - throw err; - } - err.finally(retry); - return fallback; - }; - return res; -}); -export { - ErrorBoundary, - Suspense -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/context.js b/mcp-server/node_modules/hono/dist/jsx/dom/context.js deleted file mode 100644 index 5bc71a7..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/context.js +++ /dev/null @@ -1,48 +0,0 @@ -// src/jsx/dom/context.ts -import { DOM_ERROR_HANDLER } from "../constants.js"; -import { globalContexts } from "../context.js"; -import { setInternalTagFlag } from "./utils.js"; -var createContextProviderFunction = (values) => ({ value, children }) => { - if (!children) { - return void 0; - } - const props = { - children: [ - { - tag: setInternalTagFlag(() => { - values.push(value); - }), - props: {} - } - ] - }; - if (Array.isArray(children)) { - props.children.push(...children.flat()); - } else { - props.children.push(children); - } - props.children.push({ - tag: setInternalTagFlag(() => { - values.pop(); - }), - props: {} - }); - const res = { tag: "", props, type: "" }; - res[DOM_ERROR_HANDLER] = (err) => { - values.pop(); - throw err; - }; - return res; -}; -var createContext = (defaultValue) => { - const values = [defaultValue]; - const context = createContextProviderFunction(values); - context.values = values; - context.Provider = context; - globalContexts.push(context); - return context; -}; -export { - createContext, - createContextProviderFunction -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/css.js b/mcp-server/node_modules/hono/dist/jsx/dom/css.js deleted file mode 100644 index f5bc6de..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/css.js +++ /dev/null @@ -1,143 +0,0 @@ -// src/jsx/dom/css.ts -import { - CLASS_NAME, - DEFAULT_STYLE_ID, - PSEUDO_GLOBAL_SELECTOR, - SELECTOR, - SELECTORS, - STYLE_STRING, - cssCommon, - cxCommon, - keyframesCommon, - viewTransitionCommon -} from "../../helper/css/common.js"; -import { rawCssString } from "../../helper/css/common.js"; -var splitRule = (rule) => { - const result = []; - let startPos = 0; - let depth = 0; - for (let i = 0, len = rule.length; i < len; i++) { - const char = rule[i]; - if (char === "'" || char === '"') { - const quote = char; - i++; - for (; i < len; i++) { - if (rule[i] === "\\") { - i++; - continue; - } - if (rule[i] === quote) { - break; - } - } - continue; - } - if (char === "{") { - depth++; - continue; - } - if (char === "}") { - depth--; - if (depth === 0) { - result.push(rule.slice(startPos, i + 1)); - startPos = i + 1; - } - continue; - } - } - return result; -}; -var createCssJsxDomObjects = ({ id }) => { - let styleSheet = void 0; - const findStyleSheet = () => { - if (!styleSheet) { - styleSheet = document.querySelector(`style#${id}`)?.sheet; - if (styleSheet) { - ; - styleSheet.addedStyles = /* @__PURE__ */ new Set(); - } - } - return styleSheet ? [styleSheet, styleSheet.addedStyles] : []; - }; - const insertRule = (className, styleString) => { - const [sheet, addedStyles] = findStyleSheet(); - if (!sheet || !addedStyles) { - Promise.resolve().then(() => { - if (!findStyleSheet()[0]) { - throw new Error("style sheet not found"); - } - insertRule(className, styleString); - }); - return; - } - if (!addedStyles.has(className)) { - addedStyles.add(className); - (className.startsWith(PSEUDO_GLOBAL_SELECTOR) ? splitRule(styleString) : [`${className[0] === "@" ? "" : "."}${className}{${styleString}}`]).forEach((rule) => { - sheet.insertRule(rule, sheet.cssRules.length); - }); - } - }; - const cssObject = { - toString() { - const selector = this[SELECTOR]; - insertRule(selector, this[STYLE_STRING]); - this[SELECTORS].forEach(({ [CLASS_NAME]: className, [STYLE_STRING]: styleString }) => { - insertRule(className, styleString); - }); - return this[CLASS_NAME]; - } - }; - const Style2 = ({ children, nonce }) => ({ - tag: "style", - props: { - id, - nonce, - children: children && (Array.isArray(children) ? children : [children]).map( - (c) => c[STYLE_STRING] - ) - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }); - return [cssObject, Style2]; -}; -var createCssContext = ({ id }) => { - const [cssObject, Style2] = createCssJsxDomObjects({ id }); - const newCssClassNameObject = (cssClassName) => { - cssClassName.toString = cssObject.toString; - return cssClassName; - }; - const css2 = (strings, ...values) => { - return newCssClassNameObject(cssCommon(strings, values)); - }; - const cx2 = (...args) => { - args = cxCommon(args); - return css2(Array(args.length).fill(""), ...args); - }; - const keyframes2 = keyframesCommon; - const viewTransition2 = ((strings, ...values) => { - return newCssClassNameObject(viewTransitionCommon(strings, values)); - }); - return { - css: css2, - cx: cx2, - keyframes: keyframes2, - viewTransition: viewTransition2, - Style: Style2 - }; -}; -var defaultContext = createCssContext({ id: DEFAULT_STYLE_ID }); -var css = defaultContext.css; -var cx = defaultContext.cx; -var keyframes = defaultContext.keyframes; -var viewTransition = defaultContext.viewTransition; -var Style = defaultContext.Style; -export { - Style, - createCssContext, - createCssJsxDomObjects, - css, - cx, - keyframes, - rawCssString, - viewTransition -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/hooks/index.js b/mcp-server/node_modules/hono/dist/jsx/dom/hooks/index.js deleted file mode 100644 index 5eed982..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/hooks/index.js +++ /dev/null @@ -1,48 +0,0 @@ -// src/jsx/dom/hooks/index.ts -import { PERMALINK } from "../../constants.js"; -import { useContext } from "../../context.js"; -import { useCallback, useState } from "../../hooks/index.js"; -import { createContext } from "../context.js"; -var FormContext = createContext({ - pending: false, - data: null, - method: null, - action: null -}); -var actions = /* @__PURE__ */ new Set(); -var registerAction = (action) => { - actions.add(action); - action.finally(() => actions.delete(action)); -}; -var useFormStatus = () => { - return useContext(FormContext); -}; -var useOptimistic = (state, updateState) => { - const [optimisticState, setOptimisticState] = useState(state); - if (actions.size > 0) { - Promise.all(actions).finally(() => { - setOptimisticState(state); - }); - } else { - setOptimisticState(state); - } - const cb = useCallback((newData) => { - setOptimisticState((currentState) => updateState(currentState, newData)); - }, []); - return [optimisticState, cb]; -}; -var useActionState = (fn, initialState, permalink) => { - const [state, setState] = useState(initialState); - const actionState = async (data) => { - setState(await fn(state, data)); - }; - actionState[PERMALINK] = permalink; - return [state, actionState]; -}; -export { - FormContext, - registerAction, - useActionState, - useFormStatus, - useOptimistic -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/index.js b/mcp-server/node_modules/hono/dist/jsx/dom/index.js deleted file mode 100644 index 4e5fbd3..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/index.js +++ /dev/null @@ -1,142 +0,0 @@ -// src/jsx/dom/index.ts -import { isValidElement, reactAPICompatVersion, shallowEqual } from "../base.js"; -import { Children } from "../children.js"; -import { DOM_MEMO } from "../constants.js"; -import { useContext } from "../context.js"; -import { - createRef, - forwardRef, - startTransition, - startViewTransition, - use, - useCallback, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition -} from "../hooks/index.js"; -import { ErrorBoundary, Suspense } from "./components.js"; -import { createContext } from "./context.js"; -import { useActionState, useFormStatus, useOptimistic } from "./hooks/index.js"; -import { Fragment, jsx } from "./jsx-runtime.js"; -import { createPortal, flushSync } from "./render.js"; -import { render } from "./render.js"; -var createElement = (tag, props, ...children) => { - const jsxProps = props ? { ...props } : {}; - if (children.length) { - jsxProps.children = children.length === 1 ? children[0] : children; - } - let key = void 0; - if ("key" in jsxProps) { - key = jsxProps.key; - delete jsxProps.key; - } - return jsx(tag, jsxProps, key); -}; -var cloneElement = (element, props, ...children) => { - return jsx( - element.tag, - { - ...element.props, - ...props, - children: children.length ? children : element.props.children - }, - element.key - ); -}; -var memo = (component, propsAreEqual = shallowEqual) => { - const wrapper = ((props) => component(props)); - wrapper[DOM_MEMO] = propsAreEqual; - return wrapper; -}; -var dom_default = { - version: reactAPICompatVersion, - useState, - useEffect, - useRef, - useCallback, - use, - startTransition, - useTransition, - useDeferredValue, - startViewTransition, - useViewTransition, - useMemo, - useLayoutEffect, - useInsertionEffect, - useReducer, - useId, - useDebugValue, - createRef, - forwardRef, - useImperativeHandle, - useSyncExternalStore, - useFormStatus, - useActionState, - useOptimistic, - Suspense, - ErrorBoundary, - createContext, - useContext, - memo, - isValidElement, - createElement, - cloneElement, - Children, - Fragment, - StrictMode: Fragment, - flushSync, - createPortal -}; -export { - Children, - ErrorBoundary, - Fragment, - Fragment as StrictMode, - Suspense, - cloneElement, - createContext, - createElement, - createPortal, - createRef, - dom_default as default, - flushSync, - forwardRef, - isValidElement, - createElement as jsx, - memo, - render, - startTransition, - startViewTransition, - use, - useActionState, - useCallback, - useContext, - useDebugValue, - useDeferredValue, - useEffect, - useFormStatus, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useOptimistic, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition, - reactAPICompatVersion as version -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js b/mcp-server/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js deleted file mode 100644 index 995b789..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +++ /dev/null @@ -1,337 +0,0 @@ -// src/jsx/dom/intrinsic-element/components.ts -import { useContext } from "../../context.js"; -import { use, useCallback, useMemo, useState } from "../../hooks/index.js"; -import { dataPrecedenceAttr, deDupeKeyMap, domRenderers } from "../../intrinsic-element/common.js"; -import { FormContext, registerAction } from "../hooks/index.js"; -import { createPortal, getNameSpaceContext } from "../render.js"; -var clearCache = () => { - blockingPromiseMap = /* @__PURE__ */ Object.create(null); - createdElements = /* @__PURE__ */ Object.create(null); -}; -var composeRef = (ref, cb) => { - return useMemo( - () => (e) => { - let refCleanup; - if (ref) { - if (typeof ref === "function") { - refCleanup = ref(e) || (() => { - ref(null); - }); - } else if (ref && "current" in ref) { - ref.current = e; - refCleanup = () => { - ref.current = null; - }; - } - } - const cbCleanup = cb(e); - return () => { - cbCleanup?.(); - refCleanup?.(); - }; - }, - [ref] - ); -}; -var blockingPromiseMap = /* @__PURE__ */ Object.create(null); -var createdElements = /* @__PURE__ */ Object.create(null); -var documentMetadataTag = (tag, props, preserveNodeType, supportSort, supportBlocking) => { - if (props?.itemProp) { - return { - tag, - props, - type: tag, - ref: props.ref - }; - } - const head = document.head; - let { onLoad, onError, precedence, blocking, ...restProps } = props; - let element = null; - let created = false; - const deDupeKeys = deDupeKeyMap[tag]; - let existingElements = void 0; - if (deDupeKeys.length > 0) { - const tags = head.querySelectorAll(tag); - LOOP: for (const e of tags) { - for (const key of deDupeKeyMap[tag]) { - if (e.getAttribute(key) === props[key]) { - element = e; - break LOOP; - } - } - } - if (!element) { - const cacheKey = deDupeKeys.reduce( - (acc, key) => props[key] === void 0 ? acc : `${acc}-${key}-${props[key]}`, - tag - ); - created = !createdElements[cacheKey]; - element = createdElements[cacheKey] ||= (() => { - const e = document.createElement(tag); - for (const key of deDupeKeys) { - if (props[key] !== void 0) { - e.setAttribute(key, props[key]); - } - if (props.rel) { - e.setAttribute("rel", props.rel); - } - } - return e; - })(); - } - } else { - existingElements = head.querySelectorAll(tag); - } - precedence = supportSort ? precedence ?? "" : void 0; - if (supportSort) { - restProps[dataPrecedenceAttr] = precedence; - } - const insert = useCallback( - (e) => { - if (deDupeKeys.length > 0) { - let found = false; - for (const existingElement of head.querySelectorAll(tag)) { - if (found && existingElement.getAttribute(dataPrecedenceAttr) !== precedence) { - head.insertBefore(e, existingElement); - return; - } - if (existingElement.getAttribute(dataPrecedenceAttr) === precedence) { - found = true; - } - } - head.appendChild(e); - } else if (existingElements) { - let found = false; - for (const existingElement of existingElements) { - if (existingElement === e) { - found = true; - break; - } - } - if (!found) { - head.insertBefore( - e, - head.contains(existingElements[0]) ? existingElements[0] : head.querySelector(tag) - ); - } - existingElements = void 0; - } - }, - [precedence] - ); - const ref = composeRef(props.ref, (e) => { - const key = deDupeKeys[0]; - if (preserveNodeType === 2) { - e.innerHTML = ""; - } - if (created || existingElements) { - insert(e); - } - if (!onError && !onLoad) { - return; - } - let promise = blockingPromiseMap[e.getAttribute(key)] ||= new Promise( - (resolve, reject) => { - e.addEventListener("load", resolve); - e.addEventListener("error", reject); - } - ); - if (onLoad) { - promise = promise.then(onLoad); - } - if (onError) { - promise = promise.catch(onError); - } - promise.catch(() => { - }); - }); - if (supportBlocking && blocking === "render") { - const key = deDupeKeyMap[tag][0]; - if (props[key]) { - const value = props[key]; - const promise = blockingPromiseMap[value] ||= new Promise((resolve, reject) => { - insert(element); - element.addEventListener("load", resolve); - element.addEventListener("error", reject); - }); - use(promise); - } - } - const jsxNode = { - tag, - type: tag, - props: { - ...restProps, - ref - }, - ref - }; - jsxNode.p = preserveNodeType; - if (element) { - jsxNode.e = element; - } - return createPortal( - jsxNode, - head - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ); -}; -var title = (props) => { - const nameSpaceContext = getNameSpaceContext(); - const ns = nameSpaceContext && useContext(nameSpaceContext); - if (ns?.endsWith("svg")) { - return { - tag: "title", - props, - type: "title", - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ref: props.ref - }; - } - return documentMetadataTag("title", props, void 0, false, false); -}; -var script = (props) => { - if (!props || ["src", "async"].some((k) => !props[k])) { - return { - tag: "script", - props, - type: "script", - ref: props.ref - }; - } - return documentMetadataTag("script", props, 1, false, true); -}; -var style = (props) => { - if (!props || !["href", "precedence"].every((k) => k in props)) { - return { - tag: "style", - props, - type: "style", - ref: props.ref - }; - } - props["data-href"] = props.href; - delete props.href; - return documentMetadataTag("style", props, 2, true, true); -}; -var link = (props) => { - if (!props || ["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) { - return { - tag: "link", - props, - type: "link", - ref: props.ref - }; - } - return documentMetadataTag("link", props, 1, "precedence" in props, true); -}; -var meta = (props) => { - return documentMetadataTag("meta", props, void 0, false, false); -}; -var customEventFormAction = /* @__PURE__ */ Symbol(); -var form = (props) => { - const { action, ...restProps } = props; - if (typeof action !== "function") { - ; - restProps.action = action; - } - const [state, setState] = useState([null, false]); - const onSubmit = useCallback( - async (ev) => { - const currentAction = ev.isTrusted ? action : ev.detail[customEventFormAction]; - if (typeof currentAction !== "function") { - return; - } - ev.preventDefault(); - const formData = new FormData(ev.target); - setState([formData, true]); - const actionRes = currentAction(formData); - if (actionRes instanceof Promise) { - registerAction(actionRes); - await actionRes; - } - setState([null, true]); - }, - [] - ); - const ref = composeRef(props.ref, (el) => { - el.addEventListener("submit", onSubmit); - return () => { - el.removeEventListener("submit", onSubmit); - }; - }); - const [data, isDirty] = state; - state[1] = false; - return { - tag: FormContext, - props: { - value: { - pending: data !== null, - data, - method: data ? "post" : null, - action: data ? action : null - }, - children: { - tag: "form", - props: { - ...restProps, - ref - }, - type: "form", - ref - } - }, - f: isDirty - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; -}; -var formActionableElement = (tag, { - formAction, - ...props -}) => { - if (typeof formAction === "function") { - const onClick = useCallback((ev) => { - ev.preventDefault(); - ev.currentTarget.form.dispatchEvent( - new CustomEvent("submit", { detail: { [customEventFormAction]: formAction } }) - ); - }, []); - props.ref = composeRef(props.ref, (el) => { - el.addEventListener("click", onClick); - return () => { - el.removeEventListener("click", onClick); - }; - }); - } - return { - tag, - props, - type: tag, - ref: props.ref - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; -}; -var input = (props) => formActionableElement("input", props); -var button = (props) => formActionableElement("button", props); -Object.assign(domRenderers, { - title, - script, - style, - link, - meta, - form, - input, - button -}); -export { - button, - clearCache, - composeRef, - form, - input, - link, - meta, - script, - style, - title -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js b/mcp-server/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js deleted file mode 100644 index 688a642..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +++ /dev/null @@ -1,19 +0,0 @@ -// src/jsx/dom/jsx-dev-runtime.ts -import * as intrinsicElementTags from "./intrinsic-element/components.js"; -var jsxDEV = (tag, props, key) => { - if (typeof tag === "string" && intrinsicElementTags[tag]) { - tag = intrinsicElementTags[tag]; - } - return { - tag, - type: tag, - props, - key, - ref: props.ref - }; -}; -var Fragment = (props) => jsxDEV("", props, void 0); -export { - Fragment, - jsxDEV -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/jsx-runtime.js b/mcp-server/node_modules/hono/dist/jsx/dom/jsx-runtime.js deleted file mode 100644 index 925d6df..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/jsx-runtime.js +++ /dev/null @@ -1,8 +0,0 @@ -// src/jsx/dom/jsx-runtime.ts -import { jsxDEV, Fragment } from "./jsx-dev-runtime.js"; -import { jsxDEV as jsxDEV2 } from "./jsx-dev-runtime.js"; -export { - Fragment, - jsxDEV as jsx, - jsxDEV2 as jsxs -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/render.js b/mcp-server/node_modules/hono/dist/jsx/dom/render.js deleted file mode 100644 index 78730d6..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/render.js +++ /dev/null @@ -1,597 +0,0 @@ -// src/jsx/dom/render.ts -import { toArray } from "../children.js"; -import { - DOM_ERROR_HANDLER, - DOM_INTERNAL_TAG, - DOM_MEMO, - DOM_RENDERER, - DOM_STASH -} from "../constants.js"; -import { globalContexts as globalJSXContexts, useContext } from "../context.js"; -import { STASH_EFFECT } from "../hooks/index.js"; -import { normalizeIntrinsicElementKey, styleObjectForEach } from "../utils.js"; -import { createContext } from "./context.js"; -var HONO_PORTAL_ELEMENT = "_hp"; -var eventAliasMap = { - Change: "Input", - DoubleClick: "DblClick" -}; -var nameSpaceMap = { - svg: "2000/svg", - math: "1998/Math/MathML" -}; -var buildDataStack = []; -var refCleanupMap = /* @__PURE__ */ new WeakMap(); -var nameSpaceContext = void 0; -var getNameSpaceContext = () => nameSpaceContext; -var isNodeString = (node) => "t" in node; -var eventCache = { - // pre-define events that are used very frequently - onClick: ["click", false] -}; -var getEventSpec = (key) => { - if (!key.startsWith("on")) { - return void 0; - } - if (eventCache[key]) { - return eventCache[key]; - } - const match = key.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/); - if (match) { - const [, eventName, capture] = match; - return eventCache[key] = [(eventAliasMap[eventName] || eventName).toLowerCase(), !!capture]; - } - return void 0; -}; -var toAttributeName = (element, key) => nameSpaceContext && element instanceof SVGElement && /[A-Z]/.test(key) && (key in element.style || // Presentation attributes are findable in style object. "clip-path", "font-size", "stroke-width", etc. -key.match(/^(?:o|pai|str|u|ve)/)) ? key.replace(/([A-Z])/g, "-$1").toLowerCase() : key; -var applyProps = (container, attributes, oldAttributes) => { - attributes ||= {}; - for (let key in attributes) { - const value = attributes[key]; - if (key !== "children" && (!oldAttributes || oldAttributes[key] !== value)) { - key = normalizeIntrinsicElementKey(key); - const eventSpec = getEventSpec(key); - if (eventSpec) { - if (oldAttributes?.[key] !== value) { - if (oldAttributes) { - container.removeEventListener(eventSpec[0], oldAttributes[key], eventSpec[1]); - } - if (value != null) { - if (typeof value !== "function") { - throw new Error(`Event handler for "${key}" is not a function`); - } - container.addEventListener(eventSpec[0], value, eventSpec[1]); - } - } - } else if (key === "dangerouslySetInnerHTML" && value) { - container.innerHTML = value.__html; - } else if (key === "ref") { - let cleanup; - if (typeof value === "function") { - cleanup = value(container) || (() => value(null)); - } else if (value && "current" in value) { - value.current = container; - cleanup = () => value.current = null; - } - refCleanupMap.set(container, cleanup); - } else if (key === "style") { - const style = container.style; - if (typeof value === "string") { - style.cssText = value; - } else { - style.cssText = ""; - if (value != null) { - styleObjectForEach(value, style.setProperty.bind(style)); - } - } - } else { - if (key === "value") { - const nodeName = container.nodeName; - if (nodeName === "INPUT" || nodeName === "TEXTAREA" || nodeName === "SELECT") { - ; - container.value = value === null || value === void 0 || value === false ? null : value; - if (nodeName === "TEXTAREA") { - container.textContent = value; - continue; - } else if (nodeName === "SELECT") { - if (container.selectedIndex === -1) { - ; - container.selectedIndex = 0; - } - continue; - } - } - } else if (key === "checked" && container.nodeName === "INPUT" || key === "selected" && container.nodeName === "OPTION") { - ; - container[key] = value; - } - const k = toAttributeName(container, key); - if (value === null || value === void 0 || value === false) { - container.removeAttribute(k); - } else if (value === true) { - container.setAttribute(k, ""); - } else if (typeof value === "string" || typeof value === "number") { - container.setAttribute(k, value); - } else { - container.setAttribute(k, value.toString()); - } - } - } - } - if (oldAttributes) { - for (let key in oldAttributes) { - const value = oldAttributes[key]; - if (key !== "children" && !(key in attributes)) { - key = normalizeIntrinsicElementKey(key); - const eventSpec = getEventSpec(key); - if (eventSpec) { - container.removeEventListener(eventSpec[0], value, eventSpec[1]); - } else if (key === "ref") { - refCleanupMap.get(container)?.(); - } else { - container.removeAttribute(toAttributeName(container, key)); - } - } - } - } -}; -var invokeTag = (context, node) => { - node[DOM_STASH][0] = 0; - buildDataStack.push([context, node]); - const func = node.tag[DOM_RENDERER] || node.tag; - const props = func.defaultProps ? { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ...func.defaultProps, - ...node.props - } : node.props; - try { - return [func.call(null, props)]; - } finally { - buildDataStack.pop(); - } -}; -var getNextChildren = (node, container, nextChildren, childrenToRemove, callbacks) => { - if (node.vR?.length) { - childrenToRemove.push(...node.vR); - delete node.vR; - } - if (typeof node.tag === "function") { - node[DOM_STASH][1][STASH_EFFECT]?.forEach((data) => callbacks.push(data)); - } - node.vC.forEach((child) => { - if (isNodeString(child)) { - nextChildren.push(child); - } else { - if (typeof child.tag === "function" || child.tag === "") { - child.c = container; - const currentNextChildrenIndex = nextChildren.length; - getNextChildren(child, container, nextChildren, childrenToRemove, callbacks); - if (child.s) { - for (let i = currentNextChildrenIndex; i < nextChildren.length; i++) { - nextChildren[i].s = true; - } - child.s = false; - } - } else { - nextChildren.push(child); - if (child.vR?.length) { - childrenToRemove.push(...child.vR); - delete child.vR; - } - } - } - }); -}; -var findInsertBefore = (node) => { - for (; ; node = node.tag === HONO_PORTAL_ELEMENT || !node.vC || !node.pP ? node.nN : node.vC[0]) { - if (!node) { - return null; - } - if (node.tag !== HONO_PORTAL_ELEMENT && node.e) { - return node.e; - } - } -}; -var removeNode = (node) => { - if (!isNodeString(node)) { - node[DOM_STASH]?.[1][STASH_EFFECT]?.forEach((data) => data[2]?.()); - refCleanupMap.get(node.e)?.(); - if (node.p === 2) { - node.vC?.forEach((n) => n.p = 2); - } - node.vC?.forEach(removeNode); - } - if (!node.p) { - node.e?.remove(); - delete node.e; - } - if (typeof node.tag === "function") { - updateMap.delete(node); - fallbackUpdateFnArrayMap.delete(node); - delete node[DOM_STASH][3]; - node.a = true; - } -}; -var apply = (node, container, isNew) => { - node.c = container; - applyNodeObject(node, container, isNew); -}; -var findChildNodeIndex = (childNodes, child) => { - if (!child) { - return; - } - for (let i = 0, len = childNodes.length; i < len; i++) { - if (childNodes[i] === child) { - return i; - } - } - return; -}; -var cancelBuild = /* @__PURE__ */ Symbol(); -var applyNodeObject = (node, container, isNew) => { - const next = []; - const remove = []; - const callbacks = []; - getNextChildren(node, container, next, remove, callbacks); - remove.forEach(removeNode); - const childNodes = isNew ? void 0 : container.childNodes; - let offset; - let insertBeforeNode = null; - if (isNew) { - offset = -1; - } else if (!childNodes.length) { - offset = 0; - } else { - const offsetByNextNode = findChildNodeIndex(childNodes, findInsertBefore(node.nN)); - if (offsetByNextNode !== void 0) { - insertBeforeNode = childNodes[offsetByNextNode]; - offset = offsetByNextNode; - } else { - offset = findChildNodeIndex(childNodes, next.find((n) => n.tag !== HONO_PORTAL_ELEMENT && n.e)?.e) ?? -1; - } - if (offset === -1) { - isNew = true; - } - } - for (let i = 0, len = next.length; i < len; i++, offset++) { - const child = next[i]; - let el; - if (child.s && child.e) { - el = child.e; - child.s = false; - } else { - const isNewLocal = isNew || !child.e; - if (isNodeString(child)) { - if (child.e && child.d) { - child.e.textContent = child.t; - } - child.d = false; - el = child.e ||= document.createTextNode(child.t); - } else { - el = child.e ||= child.n ? document.createElementNS(child.n, child.tag) : document.createElement(child.tag); - applyProps(el, child.props, child.pP); - applyNodeObject(child, el, isNewLocal); - } - } - if (child.tag === HONO_PORTAL_ELEMENT) { - offset--; - } else if (isNew) { - if (!el.parentNode) { - container.appendChild(el); - } - } else if (childNodes[offset] !== el && childNodes[offset - 1] !== el) { - if (childNodes[offset + 1] === el) { - container.appendChild(childNodes[offset]); - } else { - container.insertBefore(el, insertBeforeNode || childNodes[offset] || null); - } - } - } - if (node.pP) { - delete node.pP; - } - if (callbacks.length) { - const useLayoutEffectCbs = []; - const useEffectCbs = []; - callbacks.forEach(([, useLayoutEffectCb, , useEffectCb, useInsertionEffectCb]) => { - if (useLayoutEffectCb) { - useLayoutEffectCbs.push(useLayoutEffectCb); - } - if (useEffectCb) { - useEffectCbs.push(useEffectCb); - } - useInsertionEffectCb?.(); - }); - useLayoutEffectCbs.forEach((cb) => cb()); - if (useEffectCbs.length) { - requestAnimationFrame(() => { - useEffectCbs.forEach((cb) => cb()); - }); - } - } -}; -var isSameContext = (oldContexts, newContexts) => !!(oldContexts && oldContexts.length === newContexts.length && oldContexts.every((ctx, i) => ctx[1] === newContexts[i][1])); -var fallbackUpdateFnArrayMap = /* @__PURE__ */ new WeakMap(); -var build = (context, node, children) => { - const buildWithPreviousChildren = !children && node.pC; - if (children) { - node.pC ||= node.vC; - } - let foundErrorHandler; - try { - children ||= typeof node.tag == "function" ? invokeTag(context, node) : toArray(node.props.children); - if (children[0]?.tag === "" && children[0][DOM_ERROR_HANDLER]) { - foundErrorHandler = children[0][DOM_ERROR_HANDLER]; - context[5].push([context, foundErrorHandler, node]); - } - const oldVChildren = buildWithPreviousChildren ? [...node.pC] : node.vC ? [...node.vC] : void 0; - const vChildren = []; - let prevNode; - for (let i = 0; i < children.length; i++) { - if (Array.isArray(children[i])) { - children.splice(i, 1, ...children[i].flat()); - } - let child = buildNode(children[i]); - if (child) { - if (typeof child.tag === "function" && // eslint-disable-next-line @typescript-eslint/no-explicit-any - !child.tag[DOM_INTERNAL_TAG]) { - if (globalJSXContexts.length > 0) { - child[DOM_STASH][2] = globalJSXContexts.map((c) => [c, c.values.at(-1)]); - } - if (context[5]?.length) { - child[DOM_STASH][3] = context[5].at(-1); - } - } - let oldChild; - if (oldVChildren && oldVChildren.length) { - const i2 = oldVChildren.findIndex( - isNodeString(child) ? (c) => isNodeString(c) : child.key !== void 0 ? (c) => c.key === child.key && c.tag === child.tag : (c) => c.tag === child.tag - ); - if (i2 !== -1) { - oldChild = oldVChildren[i2]; - oldVChildren.splice(i2, 1); - } - } - if (oldChild) { - if (isNodeString(child)) { - if (oldChild.t !== child.t) { - ; - oldChild.t = child.t; - oldChild.d = true; - } - child = oldChild; - } else { - const pP = oldChild.pP = oldChild.props; - oldChild.props = child.props; - oldChild.f ||= child.f || node.f; - if (typeof child.tag === "function") { - const oldContexts = oldChild[DOM_STASH][2]; - oldChild[DOM_STASH][2] = child[DOM_STASH][2] || []; - oldChild[DOM_STASH][3] = child[DOM_STASH][3]; - if (!oldChild.f && ((oldChild.o || oldChild) === child.o || // The code generated by the react compiler is memoized under this condition. - oldChild.tag[DOM_MEMO]?.(pP, oldChild.props)) && // The `memo` function is memoized under this condition. - isSameContext(oldContexts, oldChild[DOM_STASH][2])) { - oldChild.s = true; - } - } - child = oldChild; - } - } else if (!isNodeString(child) && nameSpaceContext) { - const ns = useContext(nameSpaceContext); - if (ns) { - child.n = ns; - } - } - if (!isNodeString(child) && !child.s) { - build(context, child); - delete child.f; - } - vChildren.push(child); - if (prevNode && !prevNode.s && !child.s) { - for (let p = prevNode; p && !isNodeString(p); p = p.vC?.at(-1)) { - p.nN = child; - } - } - prevNode = child; - } - } - node.vR = buildWithPreviousChildren ? [...node.vC, ...oldVChildren || []] : oldVChildren || []; - node.vC = vChildren; - if (buildWithPreviousChildren) { - delete node.pC; - } - } catch (e) { - node.f = true; - if (e === cancelBuild) { - if (foundErrorHandler) { - return; - } else { - throw e; - } - } - const [errorHandlerContext, errorHandler, errorHandlerNode] = node[DOM_STASH]?.[3] || []; - if (errorHandler) { - const fallbackUpdateFn = () => update([0, false, context[2]], errorHandlerNode); - const fallbackUpdateFnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode) || []; - fallbackUpdateFnArray.push(fallbackUpdateFn); - fallbackUpdateFnArrayMap.set(errorHandlerNode, fallbackUpdateFnArray); - const fallback = errorHandler(e, () => { - const fnArray = fallbackUpdateFnArrayMap.get(errorHandlerNode); - if (fnArray) { - const i = fnArray.indexOf(fallbackUpdateFn); - if (i !== -1) { - fnArray.splice(i, 1); - return fallbackUpdateFn(); - } - } - }); - if (fallback) { - if (context[0] === 1) { - context[1] = true; - } else { - build(context, errorHandlerNode, [fallback]); - if ((errorHandler.length === 1 || context !== errorHandlerContext) && errorHandlerNode.c) { - apply(errorHandlerNode, errorHandlerNode.c, false); - return; - } - } - throw cancelBuild; - } - } - throw e; - } finally { - if (foundErrorHandler) { - context[5].pop(); - } - } -}; -var buildNode = (node) => { - if (node === void 0 || node === null || typeof node === "boolean") { - return void 0; - } else if (typeof node === "string" || typeof node === "number") { - return { t: node.toString(), d: true }; - } else { - if ("vR" in node) { - node = { - tag: node.tag, - props: node.props, - key: node.key, - f: node.f, - type: node.tag, - ref: node.props.ref, - o: node.o || node - // eslint-disable-next-line @typescript-eslint/no-explicit-any - }; - } - if (typeof node.tag === "function") { - ; - node[DOM_STASH] = [0, []]; - } else { - const ns = nameSpaceMap[node.tag]; - if (ns) { - nameSpaceContext ||= createContext(""); - node.props.children = [ - { - tag: nameSpaceContext, - props: { - value: node.n = `http://www.w3.org/${ns}`, - children: node.props.children - } - } - ]; - } - } - return node; - } -}; -var replaceContainer = (node, from, to) => { - if (node.c === from) { - node.c = to; - node.vC.forEach((child) => replaceContainer(child, from, to)); - } -}; -var updateSync = (context, node) => { - node[DOM_STASH][2]?.forEach(([c, v]) => { - c.values.push(v); - }); - try { - build(context, node, void 0); - } catch { - return; - } - if (node.a) { - delete node.a; - return; - } - node[DOM_STASH][2]?.forEach(([c]) => { - c.values.pop(); - }); - if (context[0] !== 1 || !context[1]) { - apply(node, node.c, false); - } -}; -var updateMap = /* @__PURE__ */ new WeakMap(); -var currentUpdateSets = []; -var update = async (context, node) => { - context[5] ||= []; - const existing = updateMap.get(node); - if (existing) { - existing[0](void 0); - } - let resolve; - const promise = new Promise((r) => resolve = r); - updateMap.set(node, [ - resolve, - () => { - if (context[2]) { - context[2](context, node, (context2) => { - updateSync(context2, node); - }).then(() => resolve(node)); - } else { - updateSync(context, node); - resolve(node); - } - } - ]); - if (currentUpdateSets.length) { - ; - currentUpdateSets.at(-1).add(node); - } else { - await Promise.resolve(); - const latest = updateMap.get(node); - if (latest) { - updateMap.delete(node); - latest[1](); - } - } - return promise; -}; -var renderNode = (node, container) => { - const context = []; - context[5] = []; - context[4] = true; - build(context, node, void 0); - context[4] = false; - const fragment = document.createDocumentFragment(); - apply(node, fragment, true); - replaceContainer(node, fragment, container); - container.replaceChildren(fragment); -}; -var render = (jsxNode, container) => { - renderNode(buildNode({ tag: "", props: { children: jsxNode } }), container); -}; -var flushSync = (callback) => { - const set = /* @__PURE__ */ new Set(); - currentUpdateSets.push(set); - callback(); - set.forEach((node) => { - const latest = updateMap.get(node); - if (latest) { - updateMap.delete(node); - latest[1](); - } - }); - currentUpdateSets.pop(); -}; -var createPortal = (children, container, key) => ({ - tag: HONO_PORTAL_ELEMENT, - props: { - children - }, - key, - e: container, - p: 1 - // eslint-disable-next-line @typescript-eslint/no-explicit-any -}); -export { - build, - buildDataStack, - buildNode, - createPortal, - flushSync, - getNameSpaceContext, - render, - renderNode, - update -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/server.js b/mcp-server/node_modules/hono/dist/jsx/dom/server.js deleted file mode 100644 index a1110dd..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/server.js +++ /dev/null @@ -1,33 +0,0 @@ -// src/jsx/dom/server.ts -import { renderToReadableStream as renderToReadableStreamHono } from "../streaming.js"; -import version from "./index.js"; -var renderToString = (element, options = {}) => { - if (Object.keys(options).length > 0) { - console.warn("options are not supported yet"); - } - const res = element?.toString() ?? ""; - if (typeof res !== "string") { - throw new Error("Async component is not supported in renderToString"); - } - return res; -}; -var renderToReadableStream = async (element, options = {}) => { - if (Object.keys(options).some((key) => key !== "onError")) { - console.warn("options are not supported yet, except onError"); - } - if (!element || typeof element !== "object") { - element = element?.toString() ?? ""; - } - return renderToReadableStreamHono(element, options.onError); -}; -var server_default = { - renderToString, - renderToReadableStream, - version -}; -export { - server_default as default, - renderToReadableStream, - renderToString, - version -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/dom/utils.js b/mcp-server/node_modules/hono/dist/jsx/dom/utils.js deleted file mode 100644 index b8efa98..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/dom/utils.js +++ /dev/null @@ -1,10 +0,0 @@ -// src/jsx/dom/utils.ts -import { DOM_INTERNAL_TAG } from "../constants.js"; -var setInternalTagFlag = (fn) => { - ; - fn[DOM_INTERNAL_TAG] = true; - return fn; -}; -export { - setInternalTagFlag -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/hooks/index.js b/mcp-server/node_modules/hono/dist/jsx/hooks/index.js deleted file mode 100644 index ec842c7..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/hooks/index.js +++ /dev/null @@ -1,328 +0,0 @@ -// src/jsx/hooks/index.ts -import { DOM_STASH } from "../constants.js"; -import { buildDataStack, update } from "../dom/render.js"; -var STASH_SATE = 0; -var STASH_EFFECT = 1; -var STASH_CALLBACK = 2; -var STASH_MEMO = 3; -var STASH_REF = 4; -var resolvedPromiseValueMap = /* @__PURE__ */ new WeakMap(); -var isDepsChanged = (prevDeps, deps) => !prevDeps || !deps || prevDeps.length !== deps.length || deps.some((dep, i) => dep !== prevDeps[i]); -var viewTransitionState = void 0; -var documentStartViewTransition = (cb) => { - if (document?.startViewTransition) { - return document.startViewTransition(cb); - } else { - cb(); - return { finished: Promise.resolve() }; - } -}; -var updateHook = void 0; -var viewTransitionHook = (context, node, cb) => { - const state = [true, false]; - let lastVC = node.vC; - return documentStartViewTransition(() => { - if (lastVC === node.vC) { - viewTransitionState = state; - cb(context); - viewTransitionState = void 0; - lastVC = node.vC; - } - }).finished.then(() => { - if (state[1] && lastVC === node.vC) { - state[0] = false; - viewTransitionState = state; - cb(context); - viewTransitionState = void 0; - } - }); -}; -var startViewTransition = (callback) => { - updateHook = viewTransitionHook; - try { - callback(); - } finally { - updateHook = void 0; - } -}; -var useViewTransition = () => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return [false, () => { - }]; - } - if (viewTransitionState) { - viewTransitionState[1] = true; - } - return [!!viewTransitionState?.[0], startViewTransition]; -}; -var pendingStack = []; -var runCallback = (type, callback) => { - let resolve; - const promise = new Promise((r) => resolve = r); - pendingStack.push([type, promise]); - try { - const res = callback(); - if (res instanceof Promise) { - res.then(resolve, resolve); - } else { - resolve(); - } - } finally { - pendingStack.pop(); - } -}; -var startTransition = (callback) => { - runCallback(1, callback); -}; -var startTransitionHook = (callback) => { - runCallback(2, callback); -}; -var useTransition = () => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return [false, () => { - }]; - } - const [error, setError] = useState(); - const [state, updateState] = useState(); - if (error) { - throw error[0]; - } - const startTransitionLocalHook = useCallback( - (callback) => { - startTransitionHook(() => { - updateState((state2) => !state2); - let res = callback(); - if (res instanceof Promise) { - res = res.catch((e) => { - setError([e]); - }); - } - return res; - }); - }, - [state] - ); - const [context] = buildData; - return [context[0] === 2, startTransitionLocalHook]; -}; -var useDeferredValue = (value, ...rest) => { - const [values, setValues] = useState( - rest.length ? [rest[0], rest[0]] : [value, value] - ); - if (Object.is(values[1], value)) { - return values[1]; - } - pendingStack.push([3, Promise.resolve()]); - updateHook = async (context, _, cb) => { - cb(context); - values[0] = value; - }; - setValues([values[0], value]); - updateHook = void 0; - pendingStack.pop(); - return values[0]; -}; -var useState = (initialState) => { - const resolveInitialState = () => typeof initialState === "function" ? initialState() : initialState; - const buildData = buildDataStack.at(-1); - if (!buildData) { - return [resolveInitialState(), () => { - }]; - } - const [, node] = buildData; - const stateArray = node[DOM_STASH][1][STASH_SATE] ||= []; - const hookIndex = node[DOM_STASH][0]++; - return stateArray[hookIndex] ||= [ - resolveInitialState(), - (newState) => { - const localUpdateHook = updateHook; - const stateData = stateArray[hookIndex]; - if (typeof newState === "function") { - newState = newState(stateData[0]); - } - if (!Object.is(newState, stateData[0])) { - stateData[0] = newState; - if (pendingStack.length) { - const [pendingType, pendingPromise] = pendingStack.at(-1); - Promise.all([ - pendingType === 3 ? node : update([pendingType, false, localUpdateHook], node), - pendingPromise - ]).then(([node2]) => { - if (!node2 || !(pendingType === 2 || pendingType === 3)) { - return; - } - const lastVC = node2.vC; - const addUpdateTask = () => { - setTimeout(() => { - if (lastVC !== node2.vC) { - return; - } - update([pendingType === 3 ? 1 : 0, false, localUpdateHook], node2); - }); - }; - requestAnimationFrame(addUpdateTask); - }); - } else { - update([0, false, localUpdateHook], node); - } - } - } - ]; -}; -var useReducer = (reducer, initialArg, init) => { - const handler = useCallback( - (action) => { - setState((state2) => reducer(state2, action)); - }, - [reducer] - ); - const [state, setState] = useState(() => init ? init(initialArg) : initialArg); - return [state, handler]; -}; -var useEffectCommon = (index, effect, deps) => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return; - } - const [, node] = buildData; - const effectDepsArray = node[DOM_STASH][1][STASH_EFFECT] ||= []; - const hookIndex = node[DOM_STASH][0]++; - const [prevDeps, , prevCleanup] = effectDepsArray[hookIndex] ||= []; - if (isDepsChanged(prevDeps, deps)) { - if (prevCleanup) { - prevCleanup(); - } - const runner = () => { - data[index] = void 0; - data[2] = effect(); - }; - const data = [deps, void 0, void 0, void 0, void 0]; - data[index] = runner; - effectDepsArray[hookIndex] = data; - } -}; -var useEffect = (effect, deps) => useEffectCommon(3, effect, deps); -var useLayoutEffect = (effect, deps) => useEffectCommon(1, effect, deps); -var useInsertionEffect = (effect, deps) => useEffectCommon(4, effect, deps); -var useCallback = (callback, deps) => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return callback; - } - const [, node] = buildData; - const callbackArray = node[DOM_STASH][1][STASH_CALLBACK] ||= []; - const hookIndex = node[DOM_STASH][0]++; - const prevDeps = callbackArray[hookIndex]; - if (isDepsChanged(prevDeps?.[1], deps)) { - callbackArray[hookIndex] = [callback, deps]; - } else { - callback = callbackArray[hookIndex][0]; - } - return callback; -}; -var useRef = (initialValue) => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return { current: initialValue }; - } - const [, node] = buildData; - const refArray = node[DOM_STASH][1][STASH_REF] ||= []; - const hookIndex = node[DOM_STASH][0]++; - return refArray[hookIndex] ||= { current: initialValue }; -}; -var use = (promise) => { - const cachedRes = resolvedPromiseValueMap.get(promise); - if (cachedRes) { - if (cachedRes.length === 2) { - throw cachedRes[1]; - } - return cachedRes[0]; - } - promise.then( - (res) => resolvedPromiseValueMap.set(promise, [res]), - (e) => resolvedPromiseValueMap.set(promise, [void 0, e]) - ); - throw promise; -}; -var useMemo = (factory, deps) => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - return factory(); - } - const [, node] = buildData; - const memoArray = node[DOM_STASH][1][STASH_MEMO] ||= []; - const hookIndex = node[DOM_STASH][0]++; - const prevDeps = memoArray[hookIndex]; - if (isDepsChanged(prevDeps?.[1], deps)) { - memoArray[hookIndex] = [factory(), deps]; - } - return memoArray[hookIndex][0]; -}; -var idCounter = 0; -var useId = () => useMemo(() => `:r${(idCounter++).toString(32)}:`, []); -var useDebugValue = (_value, _formatter) => { -}; -var createRef = () => { - return { current: null }; -}; -var forwardRef = (Component) => { - return (props) => { - const { ref, ...rest } = props; - return Component(rest, ref); - }; -}; -var useImperativeHandle = (ref, createHandle, deps) => { - useEffect(() => { - ref.current = createHandle(); - return () => { - ref.current = null; - }; - }, deps); -}; -var useSyncExternalStore = (subscribe, getSnapshot, getServerSnapshot) => { - const buildData = buildDataStack.at(-1); - if (!buildData) { - if (!getServerSnapshot) { - throw new Error("getServerSnapshot is required for server side rendering"); - } - return getServerSnapshot(); - } - const [serverSnapshotIsUsed] = useState(!!(buildData[0][4] && getServerSnapshot)); - const [state, setState] = useState( - () => serverSnapshotIsUsed ? getServerSnapshot() : getSnapshot() - ); - useEffect(() => { - if (serverSnapshotIsUsed) { - setState(getSnapshot()); - } - return subscribe(() => { - setState(getSnapshot()); - }); - }, []); - return state; -}; -export { - STASH_EFFECT, - createRef, - forwardRef, - startTransition, - startViewTransition, - use, - useCallback, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/index.js b/mcp-server/node_modules/hono/dist/jsx/index.js deleted file mode 100644 index 49b2df9..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/index.js +++ /dev/null @@ -1,103 +0,0 @@ -// src/jsx/index.ts -import { Fragment, cloneElement, isValidElement, jsx, memo, reactAPICompatVersion } from "./base.js"; -import { Children } from "./children.js"; -import { ErrorBoundary } from "./components.js"; -import { createContext, useContext } from "./context.js"; -import { useActionState, useOptimistic } from "./dom/hooks/index.js"; -import { - createRef, - forwardRef, - startTransition, - startViewTransition, - use, - useCallback, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition -} from "./hooks/index.js"; -import { Suspense } from "./streaming.js"; -var jsx_default = { - version: reactAPICompatVersion, - memo, - Fragment, - StrictMode: Fragment, - isValidElement, - createElement: jsx, - cloneElement, - ErrorBoundary, - createContext, - useContext, - useState, - useEffect, - useRef, - useCallback, - useReducer, - useId, - useDebugValue, - use, - startTransition, - useTransition, - useDeferredValue, - startViewTransition, - useViewTransition, - useMemo, - useLayoutEffect, - useInsertionEffect, - createRef, - forwardRef, - useImperativeHandle, - useSyncExternalStore, - useActionState, - useOptimistic, - Suspense, - Children -}; -export { - Children, - ErrorBoundary, - Fragment, - Fragment as StrictMode, - Suspense, - cloneElement, - createContext, - jsx as createElement, - createRef, - jsx_default as default, - forwardRef, - isValidElement, - jsx, - memo, - startTransition, - startViewTransition, - use, - useActionState, - useCallback, - useContext, - useDebugValue, - useDeferredValue, - useEffect, - useId, - useImperativeHandle, - useInsertionEffect, - useLayoutEffect, - useMemo, - useOptimistic, - useReducer, - useRef, - useState, - useSyncExternalStore, - useTransition, - useViewTransition, - reactAPICompatVersion as version -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/common.js b/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/common.js deleted file mode 100644 index b287db7..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/common.js +++ /dev/null @@ -1,15 +0,0 @@ -// src/jsx/intrinsic-element/common.ts -var deDupeKeyMap = { - title: [], - script: ["src"], - style: ["data-href"], - link: ["href"], - meta: ["name", "httpEquiv", "charset", "itemProp"] -}; -var domRenderers = {}; -var dataPrecedenceAttr = "data-precedence"; -export { - dataPrecedenceAttr, - deDupeKeyMap, - domRenderers -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/components.js b/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/components.js deleted file mode 100644 index 116565f..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/intrinsic-element/components.js +++ /dev/null @@ -1,153 +0,0 @@ -// src/jsx/intrinsic-element/components.ts -import { raw } from "../../helper/html/index.js"; -import { JSXNode, getNameSpaceContext } from "../base.js"; -import { toArray } from "../children.js"; -import { PERMALINK } from "../constants.js"; -import { useContext } from "../context.js"; -import { dataPrecedenceAttr, deDupeKeyMap } from "./common.js"; -var metaTagMap = /* @__PURE__ */ new WeakMap(); -var insertIntoHead = (tagName, tag, props, precedence) => ({ buffer, context }) => { - if (!buffer) { - return; - } - const map = metaTagMap.get(context) || {}; - metaTagMap.set(context, map); - const tags = map[tagName] ||= []; - let duped = false; - const deDupeKeys = deDupeKeyMap[tagName]; - if (deDupeKeys.length > 0) { - LOOP: for (const [, tagProps] of tags) { - for (const key of deDupeKeys) { - if ((tagProps?.[key] ?? null) === props?.[key]) { - duped = true; - break LOOP; - } - } - } - } - if (duped) { - buffer[0] = buffer[0].replaceAll(tag, ""); - } else if (deDupeKeys.length > 0) { - tags.push([tag, props, precedence]); - } else { - tags.unshift([tag, props, precedence]); - } - if (buffer[0].indexOf("") !== -1) { - let insertTags; - if (precedence === void 0) { - insertTags = tags.map(([tag2]) => tag2); - } else { - const precedences = []; - insertTags = tags.map(([tag2, , precedence2]) => { - let order = precedences.indexOf(precedence2); - if (order === -1) { - precedences.push(precedence2); - order = precedences.length - 1; - } - return [tag2, order]; - }).sort((a, b) => a[1] - b[1]).map(([tag2]) => tag2); - } - insertTags.forEach((tag2) => { - buffer[0] = buffer[0].replaceAll(tag2, ""); - }); - buffer[0] = buffer[0].replace(/(?=<\/head>)/, insertTags.join("")); - } -}; -var returnWithoutSpecialBehavior = (tag, children, props) => raw(new JSXNode(tag, props, toArray(children ?? [])).toString()); -var documentMetadataTag = (tag, children, props, sort) => { - if ("itemProp" in props) { - return returnWithoutSpecialBehavior(tag, children, props); - } - let { precedence, blocking, ...restProps } = props; - precedence = sort ? precedence ?? "" : void 0; - if (sort) { - restProps[dataPrecedenceAttr] = precedence; - } - const string = new JSXNode(tag, restProps, toArray(children || [])).toString(); - if (string instanceof Promise) { - return string.then( - (resString) => raw(string, [ - ...resString.callbacks || [], - insertIntoHead(tag, resString, restProps, precedence) - ]) - ); - } else { - return raw(string, [insertIntoHead(tag, string, restProps, precedence)]); - } -}; -var title = ({ children, ...props }) => { - const nameSpaceContext = getNameSpaceContext(); - if (nameSpaceContext) { - const context = useContext(nameSpaceContext); - if (context === "svg" || context === "head") { - return new JSXNode( - "title", - props, - toArray(children ?? []) - ); - } - } - return documentMetadataTag("title", children, props, false); -}; -var script = ({ - children, - ...props -}) => { - const nameSpaceContext = getNameSpaceContext(); - if (["src", "async"].some((k) => !props[k]) || nameSpaceContext && useContext(nameSpaceContext) === "head") { - return returnWithoutSpecialBehavior("script", children, props); - } - return documentMetadataTag("script", children, props, false); -}; -var style = ({ - children, - ...props -}) => { - if (!["href", "precedence"].every((k) => k in props)) { - return returnWithoutSpecialBehavior("style", children, props); - } - props["data-href"] = props.href; - delete props.href; - return documentMetadataTag("style", children, props, true); -}; -var link = ({ children, ...props }) => { - if (["onLoad", "onError"].some((k) => k in props) || props.rel === "stylesheet" && (!("precedence" in props) || "disabled" in props)) { - return returnWithoutSpecialBehavior("link", children, props); - } - return documentMetadataTag("link", children, props, "precedence" in props); -}; -var meta = ({ children, ...props }) => { - const nameSpaceContext = getNameSpaceContext(); - if (nameSpaceContext && useContext(nameSpaceContext) === "head") { - return returnWithoutSpecialBehavior("meta", children, props); - } - return documentMetadataTag("meta", children, props, false); -}; -var newJSXNode = (tag, { children, ...props }) => ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - new JSXNode(tag, props, toArray(children ?? [])) -); -var form = (props) => { - if (typeof props.action === "function") { - props.action = PERMALINK in props.action ? props.action[PERMALINK] : void 0; - } - return newJSXNode("form", props); -}; -var formActionableElement = (tag, props) => { - if (typeof props.formAction === "function") { - props.formAction = PERMALINK in props.formAction ? props.formAction[PERMALINK] : void 0; - } - return newJSXNode(tag, props); -}; -var input = (props) => formActionableElement("input", props); -var button = (props) => formActionableElement("button", props); -export { - button, - form, - input, - link, - meta, - script, - style, - title -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/intrinsic-elements.js b/mcp-server/node_modules/hono/dist/jsx/intrinsic-elements.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/jsx/jsx-dev-runtime.js b/mcp-server/node_modules/hono/dist/jsx/jsx-dev-runtime.js deleted file mode 100644 index 2a68920..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/jsx-dev-runtime.js +++ /dev/null @@ -1,18 +0,0 @@ -// src/jsx/jsx-dev-runtime.ts -import { jsxFn } from "./base.js"; -import { Fragment } from "./base.js"; -function jsxDEV(tag, props, key) { - let node; - if (!props || !("children" in props)) { - node = jsxFn(tag, props, []); - } else { - const children = props.children; - node = Array.isArray(children) ? jsxFn(tag, props, children) : jsxFn(tag, props, [children]); - } - node.key = key; - return node; -} -export { - Fragment, - jsxDEV -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/jsx-runtime.js b/mcp-server/node_modules/hono/dist/jsx/jsx-runtime.js deleted file mode 100644 index 7ad5df3..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/jsx-runtime.js +++ /dev/null @@ -1,41 +0,0 @@ -// src/jsx/jsx-runtime.ts -import { jsxDEV, Fragment } from "./jsx-dev-runtime.js"; -import { jsxDEV as jsxDEV2 } from "./jsx-dev-runtime.js"; -import { html, raw } from "../helper/html/index.js"; -import { escapeToBuffer, stringBufferToString } from "../utils/html.js"; -import { styleObjectForEach } from "./utils.js"; -var jsxAttr = (key, v) => { - const buffer = [`${key}="`]; - if (key === "style" && typeof v === "object") { - let styleStr = ""; - styleObjectForEach(v, (property, value) => { - if (value != null) { - styleStr += `${styleStr ? ";" : ""}${property}:${value}`; - } - }); - escapeToBuffer(styleStr, buffer); - buffer[0] += '"'; - } else if (typeof v === "string") { - escapeToBuffer(v, buffer); - buffer[0] += '"'; - } else if (v === null || v === void 0) { - return raw(""); - } else if (typeof v === "number" || v.isEscaped) { - buffer[0] += `${v}"`; - } else if (v instanceof Promise) { - buffer.unshift('"', v); - } else { - escapeToBuffer(v.toString(), buffer); - buffer[0] += '"'; - } - return buffer.length === 1 ? raw(buffer[0]) : stringBufferToString(buffer, void 0); -}; -var jsxEscape = (value) => value; -export { - Fragment, - jsxDEV as jsx, - jsxAttr, - jsxEscape, - html as jsxTemplate, - jsxDEV2 as jsxs -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/streaming.js b/mcp-server/node_modules/hono/dist/jsx/streaming.js deleted file mode 100644 index ea64dc0..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/streaming.js +++ /dev/null @@ -1,143 +0,0 @@ -// src/jsx/streaming.ts -import { raw } from "../helper/html/index.js"; -import { HtmlEscapedCallbackPhase, resolveCallback } from "../utils/html.js"; -import { JSXNode } from "./base.js"; -import { childrenToString } from "./components.js"; -import { DOM_RENDERER, DOM_STASH } from "./constants.js"; -import { createContext, useContext } from "./context.js"; -import { Suspense as SuspenseDomRenderer } from "./dom/components.js"; -import { buildDataStack } from "./dom/render.js"; -var StreamingContext = createContext(null); -var suspenseCounter = 0; -var Suspense = async ({ - children, - fallback -}) => { - if (!Array.isArray(children)) { - children = [children]; - } - const nonce = useContext(StreamingContext)?.scriptNonce; - let resArray = []; - const stackNode = { [DOM_STASH]: [0, []] }; - const popNodeStack = (value) => { - buildDataStack.pop(); - return value; - }; - try { - stackNode[DOM_STASH][0] = 0; - buildDataStack.push([[], stackNode]); - resArray = children.map( - (c) => c == null || typeof c === "boolean" ? "" : c.toString() - ); - } catch (e) { - if (e instanceof Promise) { - resArray = [ - e.then(() => { - stackNode[DOM_STASH][0] = 0; - buildDataStack.push([[], stackNode]); - return childrenToString(children).then(popNodeStack); - }) - ]; - } else { - throw e; - } - } finally { - popNodeStack(); - } - if (resArray.some((res) => res instanceof Promise)) { - const index = suspenseCounter++; - const fallbackStr = await fallback.toString(); - return raw(`${fallbackStr}`, [ - ...fallbackStr.callbacks || [], - ({ phase, buffer, context }) => { - if (phase === HtmlEscapedCallbackPhase.BeforeStream) { - return; - } - return Promise.all(resArray).then(async (htmlArray) => { - htmlArray = htmlArray.flat(); - const content = htmlArray.join(""); - if (buffer) { - buffer[0] = buffer[0].replace( - new RegExp(`.*?`), - content - ); - } - let html = buffer ? "" : ` -((d,c,n) => { -c=d.currentScript.previousSibling -d=d.getElementById('H:${index}') -if(!d)return -do{n=d.nextSibling;n.remove()}while(n.nodeType!=8||n.nodeValue!='/$') -d.replaceWith(c.content) -})(document) -`; - const callbacks = htmlArray.map((html2) => html2.callbacks || []).flat(); - if (!callbacks.length) { - return html; - } - if (phase === HtmlEscapedCallbackPhase.Stream) { - html = await resolveCallback(html, HtmlEscapedCallbackPhase.BeforeStream, true, context); - } - return raw(html, callbacks); - }); - } - ]); - } else { - return raw(resArray.join("")); - } -}; -Suspense[DOM_RENDERER] = SuspenseDomRenderer; -var textEncoder = new TextEncoder(); -var renderToReadableStream = (content, onError = console.trace) => { - const reader = new ReadableStream({ - async start(controller) { - try { - if (content instanceof JSXNode) { - content = content.toString(); - } - const context = typeof content === "object" ? content : {}; - const resolved = await resolveCallback( - content, - HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - controller.enqueue(textEncoder.encode(resolved)); - let resolvedCount = 0; - const callbacks = []; - const then = (promise) => { - callbacks.push( - promise.catch((err) => { - console.log(err); - onError(err); - return ""; - }).then(async (res) => { - res = await resolveCallback( - res, - HtmlEscapedCallbackPhase.BeforeStream, - true, - context - ); - res.callbacks?.map((c) => c({ phase: HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then); - resolvedCount++; - controller.enqueue(textEncoder.encode(res)); - }) - ); - }; - resolved.callbacks?.map((c) => c({ phase: HtmlEscapedCallbackPhase.Stream, context })).filter(Boolean).forEach(then); - while (resolvedCount !== callbacks.length) { - await Promise.all(callbacks); - } - } catch (e) { - onError(e); - } - controller.close(); - } - }); - return reader; -}; -export { - StreamingContext, - Suspense, - renderToReadableStream -}; diff --git a/mcp-server/node_modules/hono/dist/jsx/types.js b/mcp-server/node_modules/hono/dist/jsx/types.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/jsx/utils.js b/mcp-server/node_modules/hono/dist/jsx/utils.js deleted file mode 100644 index 7f3a219..0000000 --- a/mcp-server/node_modules/hono/dist/jsx/utils.js +++ /dev/null @@ -1,27 +0,0 @@ -// src/jsx/utils.ts -var normalizeElementKeyMap = /* @__PURE__ */ new Map([ - ["className", "class"], - ["htmlFor", "for"], - ["crossOrigin", "crossorigin"], - ["httpEquiv", "http-equiv"], - ["itemProp", "itemprop"], - ["fetchPriority", "fetchpriority"], - ["noModule", "nomodule"], - ["formAction", "formaction"] -]); -var normalizeIntrinsicElementKey = (key) => normalizeElementKeyMap.get(key) || key; -var styleObjectForEach = (style, fn) => { - for (const [k, v] of Object.entries(style)) { - const key = k[0] === "-" || !/[A-Z]/.test(k) ? k : k.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`); - fn( - key, - v == null ? null : typeof v === "number" ? !key.match( - /^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/ - ) ? `${v}px` : `${v}` : v - ); - } -}; -export { - normalizeIntrinsicElementKey, - styleObjectForEach -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/basic-auth/index.js b/mcp-server/node_modules/hono/dist/middleware/basic-auth/index.js deleted file mode 100644 index fc54a53..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/basic-auth/index.js +++ /dev/null @@ -1,60 +0,0 @@ -// src/middleware/basic-auth/index.ts -import { HTTPException } from "../../http-exception.js"; -import { auth } from "../../utils/basic-auth.js"; -import { timingSafeEqual } from "../../utils/buffer.js"; -var basicAuth = (options, ...users) => { - const usernamePasswordInOptions = "username" in options && "password" in options; - const verifyUserInOptions = "verifyUser" in options; - if (!(usernamePasswordInOptions || verifyUserInOptions)) { - throw new Error( - 'basic auth middleware requires options for "username and password" or "verifyUser"' - ); - } - if (!options.realm) { - options.realm = "Secure Area"; - } - if (!options.invalidUserMessage) { - options.invalidUserMessage = "Unauthorized"; - } - if (usernamePasswordInOptions) { - users.unshift({ username: options.username, password: options.password }); - } - return async function basicAuth2(ctx, next) { - const requestUser = auth(ctx.req.raw); - if (requestUser) { - if (verifyUserInOptions) { - if (await options.verifyUser(requestUser.username, requestUser.password, ctx)) { - await next(); - return; - } - } else { - for (const user of users) { - const [usernameEqual, passwordEqual] = await Promise.all([ - timingSafeEqual(user.username, requestUser.username, options.hashFunction), - timingSafeEqual(user.password, requestUser.password, options.hashFunction) - ]); - if (usernameEqual && passwordEqual) { - await next(); - return; - } - } - } - } - const status = 401; - const headers = { - "WWW-Authenticate": 'Basic realm="' + options.realm?.replace(/"/g, '\\"') + '"' - }; - const responseMessage = typeof options.invalidUserMessage === "function" ? await options.invalidUserMessage(ctx) : options.invalidUserMessage; - const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), { - status, - headers: { - ...headers, - "content-type": "application/json" - } - }); - throw new HTTPException(status, { res }); - }; -}; -export { - basicAuth -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/bearer-auth/index.js b/mcp-server/node_modules/hono/dist/middleware/bearer-auth/index.js deleted file mode 100644 index f082899..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/bearer-auth/index.js +++ /dev/null @@ -1,83 +0,0 @@ -// src/middleware/bearer-auth/index.ts -import { HTTPException } from "../../http-exception.js"; -import { timingSafeEqual } from "../../utils/buffer.js"; -var TOKEN_STRINGS = "[A-Za-z0-9._~+/-]+=*"; -var PREFIX = "Bearer"; -var HEADER = "Authorization"; -var bearerAuth = (options) => { - if (!("token" in options || "verifyToken" in options)) { - throw new Error('bearer auth middleware requires options for "token"'); - } - if (!options.realm) { - options.realm = ""; - } - if (options.prefix === void 0) { - options.prefix = PREFIX; - } - const realm = options.realm?.replace(/"/g, '\\"'); - const prefixRegexStr = options.prefix === "" ? "" : `${options.prefix} +`; - const regexp = new RegExp(`^${prefixRegexStr}(${TOKEN_STRINGS}) *$`); - const wwwAuthenticatePrefix = options.prefix === "" ? "" : `${options.prefix} `; - const throwHTTPException = async (c, status, wwwAuthenticateHeader, messageOption) => { - const wwwAuthenticateHeaderValue = typeof wwwAuthenticateHeader === "function" ? await wwwAuthenticateHeader(c) : wwwAuthenticateHeader; - const headers = { - "WWW-Authenticate": typeof wwwAuthenticateHeaderValue === "string" ? wwwAuthenticateHeaderValue : `${wwwAuthenticatePrefix}${Object.entries(wwwAuthenticateHeaderValue).map(([key, value]) => `${key}="${value}"`).join(",")}` - }; - const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption; - const res = typeof responseMessage === "string" ? new Response(responseMessage, { status, headers }) : new Response(JSON.stringify(responseMessage), { - status, - headers: { - ...headers, - "content-type": "application/json" - } - }); - throw new HTTPException(status, { res }); - }; - return async function bearerAuth2(c, next) { - const headerToken = c.req.header(options.headerName || HEADER); - if (!headerToken) { - await throwHTTPException( - c, - 401, - options.noAuthenticationHeader?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}realm="${realm}"`, - options.noAuthenticationHeader?.message || options.noAuthenticationHeaderMessage || "Unauthorized" - ); - } else { - const match = regexp.exec(headerToken); - if (!match) { - await throwHTTPException( - c, - 400, - options.invalidAuthenticationHeader?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}error="invalid_request"`, - options.invalidAuthenticationHeader?.message || options.invalidAuthenticationHeaderMessage || "Bad Request" - ); - } else { - let equal = false; - if ("verifyToken" in options) { - equal = await options.verifyToken(match[1], c); - } else if (typeof options.token === "string") { - equal = await timingSafeEqual(options.token, match[1], options.hashFunction); - } else if (Array.isArray(options.token) && options.token.length > 0) { - for (const token of options.token) { - if (await timingSafeEqual(token, match[1], options.hashFunction)) { - equal = true; - break; - } - } - } - if (!equal) { - await throwHTTPException( - c, - 401, - options.invalidToken?.wwwAuthenticateHeader || `${wwwAuthenticatePrefix}error="invalid_token"`, - options.invalidToken?.message || options.invalidTokenMessage || "Unauthorized" - ); - } - } - } - await next(); - }; -}; -export { - bearerAuth -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/body-limit/index.js b/mcp-server/node_modules/hono/dist/middleware/body-limit/index.js deleted file mode 100644 index 01de755..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/body-limit/index.js +++ /dev/null @@ -1,62 +0,0 @@ -// src/middleware/body-limit/index.ts -import { HTTPException } from "../../http-exception.js"; -var ERROR_MESSAGE = "Payload Too Large"; -var BodyLimitError = class extends Error { - constructor(message) { - super(message); - this.name = "BodyLimitError"; - } -}; -var bodyLimit = (options) => { - const onError = options.onError || (() => { - const res = new Response(ERROR_MESSAGE, { - status: 413 - }); - throw new HTTPException(413, { res }); - }); - const maxSize = options.maxSize; - return async function bodyLimit2(c, next) { - if (!c.req.raw.body) { - return next(); - } - const hasTransferEncoding = c.req.raw.headers.has("transfer-encoding"); - const hasContentLength = c.req.raw.headers.has("content-length"); - if (hasTransferEncoding && hasContentLength) { - } - if (hasContentLength && !hasTransferEncoding) { - const contentLength = parseInt(c.req.raw.headers.get("content-length") || "0", 10); - return contentLength > maxSize ? onError(c) : next(); - } - let size = 0; - const rawReader = c.req.raw.body.getReader(); - const reader = new ReadableStream({ - async start(controller) { - try { - for (; ; ) { - const { done, value } = await rawReader.read(); - if (done) { - break; - } - size += value.length; - if (size > maxSize) { - controller.error(new BodyLimitError(ERROR_MESSAGE)); - break; - } - controller.enqueue(value); - } - } finally { - controller.close(); - } - } - }); - const requestInit = { body: reader, duplex: "half" }; - c.req.raw = new Request(c.req.raw, requestInit); - await next(); - if (c.error instanceof BodyLimitError) { - c.res = await onError(c); - } - }; -}; -export { - bodyLimit -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/cache/index.js b/mcp-server/node_modules/hono/dist/middleware/cache/index.js deleted file mode 100644 index 3bb7bee..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/cache/index.js +++ /dev/null @@ -1,79 +0,0 @@ -// src/middleware/cache/index.ts -var defaultCacheableStatusCodes = [200]; -var shouldSkipCache = (res) => { - const vary = res.headers.get("Vary"); - return vary && vary.includes("*"); -}; -var cache = (options) => { - if (!globalThis.caches) { - console.log("Cache Middleware is not enabled because caches is not defined."); - return async (_c, next) => await next(); - } - if (options.wait === void 0) { - options.wait = false; - } - const cacheControlDirectives = options.cacheControl?.split(",").map((directive) => directive.toLowerCase()); - const varyDirectives = Array.isArray(options.vary) ? options.vary : options.vary?.split(",").map((directive) => directive.trim()); - if (options.vary?.includes("*")) { - throw new Error( - 'Middleware vary configuration cannot include "*", as it disallows effective caching.' - ); - } - const cacheableStatusCodes = new Set( - options.cacheableStatusCodes ?? defaultCacheableStatusCodes - ); - const addHeader = (c) => { - if (cacheControlDirectives) { - const existingDirectives = c.res.headers.get("Cache-Control")?.split(",").map((d) => d.trim().split("=", 1)[0]) ?? []; - for (const directive of cacheControlDirectives) { - let [name, value] = directive.trim().split("=", 2); - name = name.toLowerCase(); - if (!existingDirectives.includes(name)) { - c.header("Cache-Control", `${name}${value ? `=${value}` : ""}`, { append: true }); - } - } - } - if (varyDirectives) { - const existingDirectives = c.res.headers.get("Vary")?.split(",").map((d) => d.trim()) ?? []; - const vary = Array.from( - new Set( - [...existingDirectives, ...varyDirectives].map((directive) => directive.toLowerCase()) - ) - ).sort(); - if (vary.includes("*")) { - c.header("Vary", "*"); - } else { - c.header("Vary", vary.join(", ")); - } - } - }; - return async function cache2(c, next) { - let key = c.req.url; - if (options.keyGenerator) { - key = await options.keyGenerator(c); - } - const cacheName = typeof options.cacheName === "function" ? await options.cacheName(c) : options.cacheName; - const cache3 = await caches.open(cacheName); - const response = await cache3.match(key); - if (response) { - return new Response(response.body, response); - } - await next(); - if (!cacheableStatusCodes.has(c.res.status)) { - return; - } - addHeader(c); - if (shouldSkipCache(c.res)) { - return; - } - const res = c.res.clone(); - if (options.wait) { - await cache3.put(key, res); - } else { - c.executionCtx.waitUntil(cache3.put(key, res)); - } - }; -}; -export { - cache -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/combine/index.js b/mcp-server/node_modules/hono/dist/middleware/combine/index.js deleted file mode 100644 index c16d91f..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/combine/index.js +++ /dev/null @@ -1,77 +0,0 @@ -// src/middleware/combine/index.ts -import { compose } from "../../compose.js"; -import { METHOD_NAME_ALL } from "../../router.js"; -import { TrieRouter } from "../../router/trie-router/index.js"; -var some = (...middleware) => { - return async function some2(c, next) { - let isNextCalled = false; - const wrappedNext = () => { - isNextCalled = true; - return next(); - }; - let lastError; - for (const handler of middleware) { - try { - const result = await handler(c, wrappedNext); - if (result === true && !c.finalized) { - await wrappedNext(); - } else if (result === false) { - lastError = new Error("No successful middleware found"); - continue; - } - lastError = void 0; - break; - } catch (error) { - lastError = error; - if (isNextCalled) { - break; - } - } - } - if (lastError) { - throw lastError; - } - }; -}; -var every = (...middleware) => { - return async function every2(c, next) { - const currentRouteIndex = c.req.routeIndex; - await compose( - middleware.map((m) => [ - [ - async (c2, next2) => { - c2.req.routeIndex = currentRouteIndex; - const res = await m(c2, next2); - if (res === false) { - throw new Error("Unmet condition"); - } - return res; - } - ] - ]) - )(c, next); - }; -}; -var except = (condition, ...middleware) => { - let router = void 0; - const conditions = (Array.isArray(condition) ? condition : [condition]).map((condition2) => { - if (typeof condition2 === "string") { - router ||= new TrieRouter(); - router.add(METHOD_NAME_ALL, condition2, true); - } else { - return condition2; - } - }).filter(Boolean); - if (router) { - conditions.unshift((c) => !!router?.match(METHOD_NAME_ALL, c.req.path)?.[0]?.[0]?.[0]); - } - const handler = some((c) => conditions.some((cond) => cond(c)), every(...middleware)); - return async function except2(c, next) { - await handler(c, next); - }; -}; -export { - every, - except, - some -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/compress/index.js b/mcp-server/node_modules/hono/dist/middleware/compress/index.js deleted file mode 100644 index fcc3ae6..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/compress/index.js +++ /dev/null @@ -1,39 +0,0 @@ -// src/middleware/compress/index.ts -import { COMPRESSIBLE_CONTENT_TYPE_REGEX } from "../../utils/compress.js"; -var ENCODING_TYPES = ["gzip", "deflate"]; -var cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/i; -var compress = (options) => { - const threshold = options?.threshold ?? 1024; - return async function compress2(ctx, next) { - await next(); - const contentLength = ctx.res.headers.get("Content-Length"); - if (ctx.res.headers.has("Content-Encoding") || // already encoded - ctx.res.headers.has("Transfer-Encoding") || // already encoded or chunked - ctx.req.method === "HEAD" || // HEAD request - contentLength && Number(contentLength) < threshold || // content-length below threshold - !shouldCompress(ctx.res) || // not compressible type - !shouldTransform(ctx.res)) { - return; - } - const accepted = ctx.req.header("Accept-Encoding"); - const encoding = options?.encoding ?? ENCODING_TYPES.find((encoding2) => accepted?.includes(encoding2)); - if (!encoding || !ctx.res.body) { - return; - } - const stream = new CompressionStream(encoding); - ctx.res = new Response(ctx.res.body.pipeThrough(stream), ctx.res); - ctx.res.headers.delete("Content-Length"); - ctx.res.headers.set("Content-Encoding", encoding); - }; -}; -var shouldCompress = (res) => { - const type = res.headers.get("Content-Type"); - return type && COMPRESSIBLE_CONTENT_TYPE_REGEX.test(type); -}; -var shouldTransform = (res) => { - const cacheControl = res.headers.get("Cache-Control"); - return !cacheControl || !cacheControlNoTransformRegExp.test(cacheControl); -}; -export { - compress -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/context-storage/index.js b/mcp-server/node_modules/hono/dist/middleware/context-storage/index.js deleted file mode 100644 index a1bd4c6..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/context-storage/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// src/middleware/context-storage/index.ts -import { AsyncLocalStorage } from "node:async_hooks"; -var asyncLocalStorage = new AsyncLocalStorage(); -var contextStorage = () => { - return async function contextStorage2(c, next) { - await asyncLocalStorage.run(c, next); - }; -}; -var tryGetContext = () => { - return asyncLocalStorage.getStore(); -}; -var getContext = () => { - const context = tryGetContext(); - if (!context) { - throw new Error("Context is not available"); - } - return context; -}; -export { - contextStorage, - getContext, - tryGetContext -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/cors/index.js b/mcp-server/node_modules/hono/dist/middleware/cors/index.js deleted file mode 100644 index 9169e5a..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/cors/index.js +++ /dev/null @@ -1,87 +0,0 @@ -// src/middleware/cors/index.ts -var cors = (options) => { - const defaults = { - origin: "*", - allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"], - allowHeaders: [], - exposeHeaders: [] - }; - const opts = { - ...defaults, - ...options - }; - const findAllowOrigin = ((optsOrigin) => { - if (typeof optsOrigin === "string") { - if (optsOrigin === "*") { - return () => optsOrigin; - } else { - return (origin) => optsOrigin === origin ? origin : null; - } - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin) ? origin : null; - } - })(opts.origin); - const findAllowMethods = ((optsAllowMethods) => { - if (typeof optsAllowMethods === "function") { - return optsAllowMethods; - } else if (Array.isArray(optsAllowMethods)) { - return () => optsAllowMethods; - } else { - return () => []; - } - })(opts.allowMethods); - return async function cors2(c, next) { - function set(key, value) { - c.res.headers.set(key, value); - } - const allowOrigin = await findAllowOrigin(c.req.header("origin") || "", c); - if (allowOrigin) { - set("Access-Control-Allow-Origin", allowOrigin); - } - if (opts.credentials) { - set("Access-Control-Allow-Credentials", "true"); - } - if (opts.exposeHeaders?.length) { - set("Access-Control-Expose-Headers", opts.exposeHeaders.join(",")); - } - if (c.req.method === "OPTIONS") { - if (opts.origin !== "*") { - set("Vary", "Origin"); - } - if (opts.maxAge != null) { - set("Access-Control-Max-Age", opts.maxAge.toString()); - } - const allowMethods = await findAllowMethods(c.req.header("origin") || "", c); - if (allowMethods.length) { - set("Access-Control-Allow-Methods", allowMethods.join(",")); - } - let headers = opts.allowHeaders; - if (!headers?.length) { - const requestHeaders = c.req.header("Access-Control-Request-Headers"); - if (requestHeaders) { - headers = requestHeaders.split(/\s*,\s*/); - } - } - if (headers?.length) { - set("Access-Control-Allow-Headers", headers.join(",")); - c.res.headers.append("Vary", "Access-Control-Request-Headers"); - } - c.res.headers.delete("Content-Length"); - c.res.headers.delete("Content-Type"); - return new Response(null, { - headers: c.res.headers, - status: 204, - statusText: "No Content" - }); - } - await next(); - if (opts.origin !== "*") { - c.header("Vary", "Origin", { append: true }); - } - }; -}; -export { - cors -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/csrf/index.js b/mcp-server/node_modules/hono/dist/middleware/csrf/index.js deleted file mode 100644 index 3df5b4e..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/csrf/index.js +++ /dev/null @@ -1,55 +0,0 @@ -// src/middleware/csrf/index.ts -import { HTTPException } from "../../http-exception.js"; -var secFetchSiteValues = ["same-origin", "same-site", "none", "cross-site"]; -var isSecFetchSite = (value) => secFetchSiteValues.includes(value); -var isSafeMethodRe = /^(GET|HEAD)$/; -var isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i; -var csrf = (options) => { - const originHandler = ((optsOrigin) => { - if (!optsOrigin) { - return (origin, c) => origin === new URL(c.req.url).origin; - } else if (typeof optsOrigin === "string") { - return (origin) => origin === optsOrigin; - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin); - } - })(options?.origin); - const isAllowedOrigin = async (origin, c) => { - if (origin === void 0) { - return false; - } - return await originHandler(origin, c); - }; - const secFetchSiteHandler = ((optsSecFetchSite) => { - if (!optsSecFetchSite) { - return (secFetchSite) => secFetchSite === "same-origin"; - } else if (typeof optsSecFetchSite === "string") { - return (secFetchSite) => secFetchSite === optsSecFetchSite; - } else if (typeof optsSecFetchSite === "function") { - return optsSecFetchSite; - } else { - return (secFetchSite) => optsSecFetchSite.includes(secFetchSite); - } - })(options?.secFetchSite); - const isAllowedSecFetchSite = async (secFetchSite, c) => { - if (secFetchSite === void 0) { - return false; - } - if (!isSecFetchSite(secFetchSite)) { - return false; - } - return await secFetchSiteHandler(secFetchSite, c); - }; - return async function csrf2(c, next) { - if (!isSafeMethodRe.test(c.req.method) && isRequestedByFormElementRe.test(c.req.header("content-type") || "text/plain") && !await isAllowedSecFetchSite(c.req.header("sec-fetch-site"), c) && !await isAllowedOrigin(c.req.header("origin"), c)) { - const res = new Response("Forbidden", { status: 403 }); - throw new HTTPException(403, { res }); - } - await next(); - }; -}; -export { - csrf -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/etag/digest.js b/mcp-server/node_modules/hono/dist/middleware/etag/digest.js deleted file mode 100644 index 31f78bf..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/etag/digest.js +++ /dev/null @@ -1,33 +0,0 @@ -// src/middleware/etag/digest.ts -var mergeBuffers = (buffer1, buffer2) => { - if (!buffer1) { - return buffer2; - } - const merged = new Uint8Array( - new ArrayBuffer(buffer1.byteLength + buffer2.byteLength) - ); - merged.set(new Uint8Array(buffer1), 0); - merged.set(buffer2, buffer1.byteLength); - return merged; -}; -var generateDigest = async (stream, generator) => { - if (!stream) { - return null; - } - let result = void 0; - const reader = stream.getReader(); - for (; ; ) { - const { value, done } = await reader.read(); - if (done) { - break; - } - result = await generator(mergeBuffers(result, value)); - } - if (!result) { - return null; - } - return Array.prototype.map.call(new Uint8Array(result), (x) => x.toString(16).padStart(2, "0")).join(""); -}; -export { - generateDigest -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/etag/index.js b/mcp-server/node_modules/hono/dist/middleware/etag/index.js deleted file mode 100644 index 2ad0110..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/etag/index.js +++ /dev/null @@ -1,72 +0,0 @@ -// src/middleware/etag/index.ts -import { generateDigest } from "./digest.js"; -var RETAINED_304_HEADERS = [ - "cache-control", - "content-location", - "date", - "etag", - "expires", - "vary" -]; -var stripWeak = (tag) => tag.replace(/^W\//, ""); -function etagMatches(etag2, ifNoneMatch) { - return ifNoneMatch != null && ifNoneMatch.split(/,\s*/).some((t) => stripWeak(t) === stripWeak(etag2)); -} -function initializeGenerator(generator) { - if (!generator) { - if (crypto && crypto.subtle) { - generator = (body) => crypto.subtle.digest( - { - name: "SHA-1" - }, - body - ); - } - } - return generator; -} -var etag = (options) => { - const retainedHeaders = options?.retainedHeaders ?? RETAINED_304_HEADERS; - const weak = options?.weak ?? false; - const generator = initializeGenerator(options?.generateDigest); - return async function etag2(c, next) { - const ifNoneMatch = c.req.header("If-None-Match") ?? null; - await next(); - const res = c.res; - let etag3 = res.headers.get("ETag"); - if (!etag3) { - if (!generator) { - return; - } - const hash = await generateDigest( - // This type casing avoids the type error for `deno publish` - res.clone().body, - generator - ); - if (hash === null) { - return; - } - etag3 = weak ? `W/"${hash}"` : `"${hash}"`; - } - if (etagMatches(etag3, ifNoneMatch)) { - c.res = new Response(null, { - status: 304, - statusText: "Not Modified", - headers: { - ETag: etag3 - } - }); - c.res.headers.forEach((_, key) => { - if (retainedHeaders.indexOf(key.toLowerCase()) === -1) { - c.res.headers.delete(key); - } - }); - } else { - c.res.headers.set("ETag", etag3); - } - }; -}; -export { - RETAINED_304_HEADERS, - etag -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/ip-restriction/index.js b/mcp-server/node_modules/hono/dist/middleware/ip-restriction/index.js deleted file mode 100644 index b4b390e..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/ip-restriction/index.js +++ /dev/null @@ -1,107 +0,0 @@ -// src/middleware/ip-restriction/index.ts -import { HTTPException } from "../../http-exception.js"; -import { - convertIPv4ToBinary, - convertIPv6BinaryToString, - convertIPv6ToBinary, - distinctRemoteAddr -} from "../../utils/ipaddr.js"; -var IS_CIDR_NOTATION_REGEX = /\/[0-9]{0,3}$/; -var buildMatcher = (rules) => { - const functionRules = []; - const staticRules = /* @__PURE__ */ new Set(); - const cidrRules = []; - for (let rule of rules) { - if (rule === "*") { - return () => true; - } else if (typeof rule === "function") { - functionRules.push(rule); - } else { - if (IS_CIDR_NOTATION_REGEX.test(rule)) { - const separatedRule = rule.split("/"); - const addrStr = separatedRule[0]; - const type2 = distinctRemoteAddr(addrStr); - if (type2 === void 0) { - throw new TypeError(`Invalid rule: ${rule}`); - } - const isIPv4 = type2 === "IPv4"; - const prefix = parseInt(separatedRule[1]); - if (isIPv4 ? prefix === 32 : prefix === 128) { - rule = addrStr; - } else { - const addr = (isIPv4 ? convertIPv4ToBinary : convertIPv6ToBinary)(addrStr); - const mask = (1n << BigInt(prefix)) - 1n << BigInt((isIPv4 ? 32 : 128) - prefix); - cidrRules.push([isIPv4, addr & mask, mask]); - continue; - } - } - const type = distinctRemoteAddr(rule); - if (type === void 0) { - throw new TypeError(`Invalid rule: ${rule}`); - } - staticRules.add( - type === "IPv4" ? rule : convertIPv6BinaryToString(convertIPv6ToBinary(rule)) - // normalize IPv6 address (e.g. 0000:0000:0000:0000:0000:0000:0000:0001 => ::1) - ); - } - } - return (remote) => { - if (staticRules.has(remote.addr)) { - return true; - } - for (const [isIPv4, addr, mask] of cidrRules) { - if (isIPv4 !== remote.isIPv4) { - continue; - } - const remoteAddr = remote.binaryAddr ||= (isIPv4 ? convertIPv4ToBinary : convertIPv6ToBinary)(remote.addr); - if ((remoteAddr & mask) === addr) { - return true; - } - } - for (const rule of functionRules) { - if (rule({ addr: remote.addr, type: remote.type })) { - return true; - } - } - return false; - }; -}; -var ipRestriction = (getIP, { denyList = [], allowList = [] }, onError) => { - const allowLength = allowList.length; - const denyMatcher = buildMatcher(denyList); - const allowMatcher = buildMatcher(allowList); - const blockError = (c) => new HTTPException(403, { - res: c.text("Forbidden", { - status: 403 - }) - }); - return async function ipRestriction2(c, next) { - const connInfo = getIP(c); - const addr = typeof connInfo === "string" ? connInfo : connInfo.remote.address; - if (!addr) { - throw blockError(c); - } - const type = typeof connInfo !== "string" && connInfo.remote.addressType || distinctRemoteAddr(addr); - const remoteData = { addr, type, isIPv4: type === "IPv4" }; - if (denyMatcher(remoteData)) { - if (onError) { - return onError({ addr, type }, c); - } - throw blockError(c); - } - if (allowMatcher(remoteData)) { - return await next(); - } - if (allowLength === 0) { - return await next(); - } else { - if (onError) { - return await onError({ addr, type }, c); - } - throw blockError(c); - } - }; -}; -export { - ipRestriction -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/jsx-renderer/index.js b/mcp-server/node_modules/hono/dist/middleware/jsx-renderer/index.js deleted file mode 100644 index d43b2a7..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/jsx-renderer/index.js +++ /dev/null @@ -1,57 +0,0 @@ -// src/middleware/jsx-renderer/index.ts -import { html, raw } from "../../helper/html/index.js"; -import { Fragment, createContext, jsx, useContext } from "../../jsx/index.js"; -import { renderToReadableStream } from "../../jsx/streaming.js"; -var RequestContext = createContext(null); -var createRenderer = (c, Layout, component, options) => (children, props) => { - const docType = typeof options?.docType === "string" ? options.docType : options?.docType === false ? "" : ""; - const currentLayout = component ? jsx( - (props2) => component(props2, c), - { - Layout, - ...props - }, - children - ) : children; - const body = html`${raw(docType)}${jsx( - RequestContext.Provider, - { value: c }, - currentLayout - )}`; - if (options?.stream) { - if (options.stream === true) { - c.header("Transfer-Encoding", "chunked"); - c.header("Content-Type", "text/html; charset=UTF-8"); - c.header("Content-Encoding", "Identity"); - } else { - for (const [key, value] of Object.entries(options.stream)) { - c.header(key, value); - } - } - return c.body(renderToReadableStream(body)); - } else { - return c.html(body); - } -}; -var jsxRenderer = (component, options) => function jsxRenderer2(c, next) { - const Layout = c.getLayout() ?? Fragment; - if (component) { - c.setLayout((props) => { - return component({ ...props, Layout }, c); - }); - } - c.setRenderer(createRenderer(c, Layout, component, options)); - return next(); -}; -var useRequestContext = () => { - const c = useContext(RequestContext); - if (!c) { - throw new Error("RequestContext is not provided."); - } - return c; -}; -export { - RequestContext, - jsxRenderer, - useRequestContext -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/jwk/index.js b/mcp-server/node_modules/hono/dist/middleware/jwk/index.js deleted file mode 100644 index 310baa6..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/jwk/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/middleware/jwk/index.ts -import { jwk } from "./jwk.js"; -export { - jwk -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/jwk/jwk.js b/mcp-server/node_modules/hono/dist/middleware/jwk/jwk.js deleted file mode 100644 index aa87b06..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/jwk/jwk.js +++ /dev/null @@ -1,108 +0,0 @@ -// src/middleware/jwk/jwk.ts -import { getCookie, getSignedCookie } from "../../helper/cookie/index.js"; -import { HTTPException } from "../../http-exception.js"; -import { Jwt } from "../../utils/jwt/index.js"; -import "../../context.js"; -var jwk = (options, init) => { - const verifyOpts = options.verification || {}; - if (!options || !(options.keys || options.jwks_uri)) { - throw new Error('JWK auth middleware requires options for either "keys" or "jwks_uri" or both'); - } - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWK auth middleware requires it."); - } - return async function jwk2(ctx, next) { - const headerName = options.headerName || "Authorization"; - const credentials = ctx.req.raw.headers.get(headerName); - let token; - if (credentials) { - const parts = credentials.split(/\s+/); - if (parts.length !== 2) { - const errDescription = "invalid credentials structure"; - throw new HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } else { - token = parts[1]; - } - } else if (options.cookie) { - if (typeof options.cookie == "string") { - token = getCookie(ctx, options.cookie); - } else if (options.cookie.secret) { - if (options.cookie.prefixOptions) { - token = await getSignedCookie( - ctx, - options.cookie.secret, - options.cookie.key, - options.cookie.prefixOptions - ); - } else { - token = await getSignedCookie(ctx, options.cookie.secret, options.cookie.key); - } - } else { - if (options.cookie.prefixOptions) { - token = getCookie(ctx, options.cookie.key, options.cookie.prefixOptions); - } else { - token = getCookie(ctx, options.cookie.key); - } - } - } - if (!token) { - if (options.allow_anon) { - return next(); - } - const errDescription = "no authorization included in request"; - throw new HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } - let payload; - let cause; - try { - const keys = typeof options.keys === "function" ? await options.keys(ctx) : options.keys; - const jwks_uri = typeof options.jwks_uri === "function" ? await options.jwks_uri(ctx) : options.jwks_uri; - payload = await Jwt.verifyWithJwks(token, { keys, jwks_uri, verification: verifyOpts }, init); - } catch (e) { - cause = e; - } - if (!payload) { - if (cause instanceof Error && cause.constructor === Error) { - throw cause; - } - throw new HTTPException(401, { - message: "Unauthorized", - res: unauthorizedResponse({ - ctx, - error: "invalid_token", - statusText: "Unauthorized", - errDescription: "token verification failure" - }), - cause - }); - } - ctx.set("jwtPayload", payload); - await next(); - }; -}; -function unauthorizedResponse(opts) { - return new Response("Unauthorized", { - status: 401, - statusText: opts.statusText, - headers: { - "WWW-Authenticate": `Bearer realm="${opts.ctx.req.url}",error="${opts.error}",error_description="${opts.errDescription}"` - } - }); -} -export { - jwk -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/jwt/index.js b/mcp-server/node_modules/hono/dist/middleware/jwt/index.js deleted file mode 100644 index 1a3b240..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/jwt/index.js +++ /dev/null @@ -1,9 +0,0 @@ -// src/middleware/jwt/index.ts -import { jwt, verifyWithJwks, verify, decode, sign } from "./jwt.js"; -export { - decode, - jwt, - sign, - verify, - verifyWithJwks -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/jwt/jwt.js b/mcp-server/node_modules/hono/dist/middleware/jwt/jwt.js deleted file mode 100644 index b60a33c..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/jwt/jwt.js +++ /dev/null @@ -1,111 +0,0 @@ -// src/middleware/jwt/jwt.ts -import { getCookie, getSignedCookie } from "../../helper/cookie/index.js"; -import { HTTPException } from "../../http-exception.js"; -import { Jwt } from "../../utils/jwt/index.js"; -import "../../context.js"; -var jwt = (options) => { - const verifyOpts = options.verification || {}; - if (!options || !options.secret) { - throw new Error('JWT auth middleware requires options for "secret"'); - } - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - return async function jwt2(ctx, next) { - const headerName = options.headerName || "Authorization"; - const credentials = ctx.req.raw.headers.get(headerName); - let token; - if (credentials) { - const parts = credentials.split(/\s+/); - if (parts.length !== 2) { - const errDescription = "invalid credentials structure"; - throw new HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } else { - token = parts[1]; - } - } else if (options.cookie) { - if (typeof options.cookie == "string") { - token = getCookie(ctx, options.cookie); - } else if (options.cookie.secret) { - if (options.cookie.prefixOptions) { - token = await getSignedCookie( - ctx, - options.cookie.secret, - options.cookie.key, - options.cookie.prefixOptions - ); - } else { - token = await getSignedCookie(ctx, options.cookie.secret, options.cookie.key); - } - } else { - if (options.cookie.prefixOptions) { - token = getCookie(ctx, options.cookie.key, options.cookie.prefixOptions); - } else { - token = getCookie(ctx, options.cookie.key); - } - } - } - if (!token) { - const errDescription = "no authorization included in request"; - throw new HTTPException(401, { - message: errDescription, - res: unauthorizedResponse({ - ctx, - error: "invalid_request", - errDescription - }) - }); - } - let payload; - let cause; - try { - payload = await Jwt.verify(token, options.secret, { - alg: options.alg, - ...verifyOpts - }); - } catch (e) { - cause = e; - } - if (!payload) { - throw new HTTPException(401, { - message: "Unauthorized", - res: unauthorizedResponse({ - ctx, - error: "invalid_token", - statusText: "Unauthorized", - errDescription: "token verification failure" - }), - cause - }); - } - ctx.set("jwtPayload", payload); - await next(); - }; -}; -function unauthorizedResponse(opts) { - return new Response("Unauthorized", { - status: 401, - statusText: opts.statusText, - headers: { - "WWW-Authenticate": `Bearer realm="${opts.ctx.req.url}",error="${opts.error}",error_description="${opts.errDescription}"` - } - }); -} -var verifyWithJwks = Jwt.verifyWithJwks; -var verify = Jwt.verify; -var decode = Jwt.decode; -var sign = Jwt.sign; -export { - decode, - jwt, - sign, - verify, - verifyWithJwks -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/language/index.js b/mcp-server/node_modules/hono/dist/middleware/language/index.js deleted file mode 100644 index 9455c61..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/language/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// src/middleware/language/index.ts -import { - languageDetector, - detectFromCookie, - detectFromHeader, - detectFromPath, - detectFromQuery -} from "./language.js"; -export { - detectFromCookie, - detectFromHeader, - detectFromPath, - detectFromQuery, - languageDetector -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/language/language.js b/mcp-server/node_modules/hono/dist/middleware/language/language.js deleted file mode 100644 index fe4316e..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/language/language.js +++ /dev/null @@ -1,179 +0,0 @@ -// src/middleware/language/language.ts -import { setCookie, getCookie } from "../../helper/cookie/index.js"; -import { parseAccept } from "../../utils/accept.js"; -var DEFAULT_OPTIONS = { - order: ["querystring", "cookie", "header"], - lookupQueryString: "lang", - lookupCookie: "language", - lookupFromHeaderKey: "accept-language", - lookupFromPathIndex: 0, - caches: ["cookie"], - ignoreCase: true, - fallbackLanguage: "en", - supportedLanguages: ["en"], - cookieOptions: { - sameSite: "Strict", - secure: true, - maxAge: 365 * 24 * 60 * 60, - httpOnly: true - }, - debug: false -}; -function parseAcceptLanguage(header) { - return parseAccept(header).map(({ type, q }) => ({ lang: type, q })); -} -var normalizeLanguage = (lang, options) => { - if (!lang) { - return void 0; - } - try { - let normalizedLang = lang.trim(); - if (options.convertDetectedLanguage) { - normalizedLang = options.convertDetectedLanguage(normalizedLang); - } - const compLang = options.ignoreCase ? normalizedLang.toLowerCase() : normalizedLang; - const compSupported = options.supportedLanguages.map( - (l) => options.ignoreCase ? l.toLowerCase() : l - ); - const matchedLang = compSupported.find((l) => l === compLang); - return matchedLang ? options.supportedLanguages[compSupported.indexOf(matchedLang)] : void 0; - } catch { - return void 0; - } -}; -var detectFromQuery = (c, options) => { - try { - const query = c.req.query(options.lookupQueryString); - return normalizeLanguage(query, options); - } catch { - return void 0; - } -}; -var detectFromCookie = (c, options) => { - try { - const cookie = getCookie(c, options.lookupCookie); - return normalizeLanguage(cookie, options); - } catch { - return void 0; - } -}; -function detectFromHeader(c, options) { - try { - const acceptLanguage = c.req.header(options.lookupFromHeaderKey); - if (!acceptLanguage) { - return void 0; - } - const languages = parseAcceptLanguage(acceptLanguage); - for (const { lang } of languages) { - const normalizedLang = normalizeLanguage(lang, options); - if (normalizedLang) { - return normalizedLang; - } - } - return void 0; - } catch { - return void 0; - } -} -function detectFromPath(c, options) { - try { - const url = new URL(c.req.url); - const pathSegments = url.pathname.split("/").filter(Boolean); - const langSegment = pathSegments[options.lookupFromPathIndex]; - return normalizeLanguage(langSegment, options); - } catch { - return void 0; - } -} -var detectors = { - querystring: detectFromQuery, - cookie: detectFromCookie, - header: detectFromHeader, - path: detectFromPath -}; -function validateOptions(options) { - if (!options.supportedLanguages.includes(options.fallbackLanguage)) { - throw new Error("Fallback language must be included in supported languages"); - } - if (options.lookupFromPathIndex < 0) { - throw new Error("Path index must be non-negative"); - } - if (!options.order.every((detector) => Object.keys(detectors).includes(detector))) { - throw new Error("Invalid detector type in order array"); - } -} -function cacheLanguage(c, language, options) { - if (!Array.isArray(options.caches) || !options.caches.includes("cookie")) { - return; - } - try { - setCookie(c, options.lookupCookie, language, options.cookieOptions); - } catch (error) { - if (options.debug) { - console.error("Failed to cache language:", error); - } - } -} -var detectLanguage = (c, options) => { - let detectedLang; - for (const detectorName of options.order) { - const detector = detectors[detectorName]; - if (!detector) { - continue; - } - try { - detectedLang = detector(c, options); - if (detectedLang) { - if (options.debug) { - console.log(`Language detected from ${detectorName}: ${detectedLang}`); - } - break; - } - } catch (error) { - if (options.debug) { - console.error(`Error in ${detectorName} detector:`, error); - } - continue; - } - } - const finalLang = detectedLang || options.fallbackLanguage; - if (detectedLang && options.caches) { - cacheLanguage(c, finalLang, options); - } - return finalLang; -}; -var languageDetector = (userOptions) => { - const options = { - ...DEFAULT_OPTIONS, - ...userOptions, - cookieOptions: { - ...DEFAULT_OPTIONS.cookieOptions, - ...userOptions.cookieOptions - } - }; - validateOptions(options); - return async function languageDetector2(ctx, next) { - try { - const lang = detectLanguage(ctx, options); - ctx.set("language", lang); - } catch (error) { - if (options.debug) { - console.error("Language detection failed:", error); - } - ctx.set("language", options.fallbackLanguage); - } - await next(); - }; -}; -export { - DEFAULT_OPTIONS, - detectFromCookie, - detectFromHeader, - detectFromPath, - detectFromQuery, - detectors, - languageDetector, - normalizeLanguage, - parseAcceptLanguage, - validateOptions -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/logger/index.js b/mcp-server/node_modules/hono/dist/middleware/logger/index.js deleted file mode 100644 index 2a727b6..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/logger/index.js +++ /dev/null @@ -1,44 +0,0 @@ -// src/middleware/logger/index.ts -import { getColorEnabledAsync } from "../../utils/color.js"; -var humanize = (times) => { - const [delimiter, separator] = [",", "."]; - const orderTimes = times.map((v) => v.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1" + delimiter)); - return orderTimes.join(separator); -}; -var time = (start) => { - const delta = Date.now() - start; - return humanize([delta < 1e3 ? delta + "ms" : Math.round(delta / 1e3) + "s"]); -}; -var colorStatus = async (status) => { - const colorEnabled = await getColorEnabledAsync(); - if (colorEnabled) { - switch (status / 100 | 0) { - case 5: - return `\x1B[31m${status}\x1B[0m`; - case 4: - return `\x1B[33m${status}\x1B[0m`; - case 3: - return `\x1B[36m${status}\x1B[0m`; - case 2: - return `\x1B[32m${status}\x1B[0m`; - } - } - return `${status}`; -}; -async function log(fn, prefix, method, path, status = 0, elapsed) { - const out = prefix === "<--" /* Incoming */ ? `${prefix} ${method} ${path}` : `${prefix} ${method} ${path} ${await colorStatus(status)} ${elapsed}`; - fn(out); -} -var logger = (fn = console.log) => { - return async function logger2(c, next) { - const { method, url } = c.req; - const path = url.slice(url.indexOf("/", 8)); - await log(fn, "<--" /* Incoming */, method, path); - const start = Date.now(); - await next(); - await log(fn, "-->" /* Outgoing */, method, path, c.res.status, time(start)); - }; -}; -export { - logger -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/method-override/index.js b/mcp-server/node_modules/hono/dist/middleware/method-override/index.js deleted file mode 100644 index e7daefe..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/method-override/index.js +++ /dev/null @@ -1,82 +0,0 @@ -// src/middleware/method-override/index.ts -import { parseBody } from "../../utils/body.js"; -var DEFAULT_METHOD_FORM_NAME = "_method"; -var methodOverride = (options) => async function methodOverride2(c, next) { - if (c.req.method === "GET") { - return await next(); - } - const app = options.app; - if (!(options.header || options.query)) { - const contentType = c.req.header("content-type"); - const methodFormName = options.form || DEFAULT_METHOD_FORM_NAME; - const clonedRequest = c.req.raw.clone(); - const newRequest = clonedRequest.clone(); - if (contentType?.startsWith("multipart/form-data")) { - const form = await clonedRequest.formData(); - const method = form.get(methodFormName); - if (method) { - const newForm = await newRequest.formData(); - newForm.delete(methodFormName); - const newHeaders = new Headers(clonedRequest.headers); - newHeaders.delete("content-type"); - newHeaders.delete("content-length"); - const request = new Request(c.req.url, { - body: newForm, - headers: newHeaders, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - if (contentType === "application/x-www-form-urlencoded") { - const params = await parseBody(clonedRequest); - const method = params[methodFormName]; - if (method) { - delete params[methodFormName]; - const newParams = new URLSearchParams(params); - const request = new Request(newRequest, { - body: newParams, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - } else if (options.header) { - const headerName = options.header; - const method = c.req.header(headerName); - if (method) { - const newHeaders = new Headers(c.req.raw.headers); - newHeaders.delete(headerName); - const request = new Request(c.req.raw, { - headers: newHeaders, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } else if (options.query) { - const queryName = options.query; - const method = c.req.query(queryName); - if (method) { - const url = new URL(c.req.url); - url.searchParams.delete(queryName); - const request = new Request(url.toString(), { - body: c.req.raw.body, - headers: c.req.raw.headers, - method - }); - return app.fetch(request, c.env, getExecutionCtx(c)); - } - } - await next(); -}; -var getExecutionCtx = (c) => { - let executionCtx; - try { - executionCtx = c.executionCtx; - } catch { - } - return executionCtx; -}; -export { - methodOverride -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/powered-by/index.js b/mcp-server/node_modules/hono/dist/middleware/powered-by/index.js deleted file mode 100644 index 827f65f..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/powered-by/index.js +++ /dev/null @@ -1,10 +0,0 @@ -// src/middleware/powered-by/index.ts -var poweredBy = (options) => { - return async function poweredBy2(c, next) { - await next(); - c.res.headers.set("X-Powered-By", options?.serverName ?? "Hono"); - }; -}; -export { - poweredBy -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/pretty-json/index.js b/mcp-server/node_modules/hono/dist/middleware/pretty-json/index.js deleted file mode 100644 index 5bb7163..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/pretty-json/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// src/middleware/pretty-json/index.ts -var prettyJSON = (options) => { - const targetQuery = options?.query ?? "pretty"; - return async function prettyJSON2(c, next) { - const pretty = options?.force || c.req.query(targetQuery) || c.req.query(targetQuery) === ""; - await next(); - if (pretty && c.res.headers.get("Content-Type")?.startsWith("application/json")) { - const obj = await c.res.json(); - c.res = new Response(JSON.stringify(obj, null, options?.space ?? 2), c.res); - } - }; -}; -export { - prettyJSON -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/request-id/index.js b/mcp-server/node_modules/hono/dist/middleware/request-id/index.js deleted file mode 100644 index 3f6a077..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/request-id/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/middleware/request-id/index.ts -import { requestId } from "./request-id.js"; -export { - requestId -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/request-id/request-id.js b/mcp-server/node_modules/hono/dist/middleware/request-id/request-id.js deleted file mode 100644 index 0c22de6..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/request-id/request-id.js +++ /dev/null @@ -1,21 +0,0 @@ -// src/middleware/request-id/request-id.ts -var requestId = ({ - limitLength = 255, - headerName = "X-Request-Id", - generator = () => crypto.randomUUID() -} = {}) => { - return async function requestId2(c, next) { - let reqId = headerName ? c.req.header(headerName) : void 0; - if (!reqId || reqId.length > limitLength || /[^\w\-=]/.test(reqId)) { - reqId = generator(c); - } - c.set("requestId", reqId); - if (headerName) { - c.header(headerName, reqId); - } - await next(); - }; -}; -export { - requestId -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/secure-headers/index.js b/mcp-server/node_modules/hono/dist/middleware/secure-headers/index.js deleted file mode 100644 index 7983a6f..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/secure-headers/index.js +++ /dev/null @@ -1,6 +0,0 @@ -// src/middleware/secure-headers/index.ts -import { NONCE, secureHeaders } from "./secure-headers.js"; -export { - NONCE, - secureHeaders -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js b/mcp-server/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/middleware/secure-headers/secure-headers.js b/mcp-server/node_modules/hono/dist/middleware/secure-headers/secure-headers.js deleted file mode 100644 index 7124599..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +++ /dev/null @@ -1,166 +0,0 @@ -// src/middleware/secure-headers/secure-headers.ts -import { encodeBase64 } from "../../utils/encode.js"; -var HEADERS_MAP = { - crossOriginEmbedderPolicy: ["Cross-Origin-Embedder-Policy", "require-corp"], - crossOriginResourcePolicy: ["Cross-Origin-Resource-Policy", "same-origin"], - crossOriginOpenerPolicy: ["Cross-Origin-Opener-Policy", "same-origin"], - originAgentCluster: ["Origin-Agent-Cluster", "?1"], - referrerPolicy: ["Referrer-Policy", "no-referrer"], - strictTransportSecurity: ["Strict-Transport-Security", "max-age=15552000; includeSubDomains"], - xContentTypeOptions: ["X-Content-Type-Options", "nosniff"], - xDnsPrefetchControl: ["X-DNS-Prefetch-Control", "off"], - xDownloadOptions: ["X-Download-Options", "noopen"], - xFrameOptions: ["X-Frame-Options", "SAMEORIGIN"], - xPermittedCrossDomainPolicies: ["X-Permitted-Cross-Domain-Policies", "none"], - xXssProtection: ["X-XSS-Protection", "0"] -}; -var DEFAULT_OPTIONS = { - crossOriginEmbedderPolicy: false, - crossOriginResourcePolicy: true, - crossOriginOpenerPolicy: true, - originAgentCluster: true, - referrerPolicy: true, - strictTransportSecurity: true, - xContentTypeOptions: true, - xDnsPrefetchControl: true, - xDownloadOptions: true, - xFrameOptions: true, - xPermittedCrossDomainPolicies: true, - xXssProtection: true, - removePoweredBy: true, - permissionsPolicy: {} -}; -var generateNonce = () => { - const arrayBuffer = new Uint8Array(16); - crypto.getRandomValues(arrayBuffer); - return encodeBase64(arrayBuffer.buffer); -}; -var NONCE = (ctx) => { - const key = "secureHeadersNonce"; - const init = ctx.get(key); - const nonce = init || generateNonce(); - if (init == null) { - ctx.set(key, nonce); - } - return `'nonce-${nonce}'`; -}; -var secureHeaders = (customOptions) => { - const options = { ...DEFAULT_OPTIONS, ...customOptions }; - const headersToSet = getFilteredHeaders(options); - const callbacks = []; - if (options.contentSecurityPolicy) { - const [callback, value] = getCSPDirectives(options.contentSecurityPolicy); - if (callback) { - callbacks.push(callback); - } - headersToSet.push(["Content-Security-Policy", value]); - } - if (options.contentSecurityPolicyReportOnly) { - const [callback, value] = getCSPDirectives(options.contentSecurityPolicyReportOnly); - if (callback) { - callbacks.push(callback); - } - headersToSet.push(["Content-Security-Policy-Report-Only", value]); - } - if (options.permissionsPolicy && Object.keys(options.permissionsPolicy).length > 0) { - headersToSet.push([ - "Permissions-Policy", - getPermissionsPolicyDirectives(options.permissionsPolicy) - ]); - } - if (options.reportingEndpoints) { - headersToSet.push(["Reporting-Endpoints", getReportingEndpoints(options.reportingEndpoints)]); - } - if (options.reportTo) { - headersToSet.push(["Report-To", getReportToOptions(options.reportTo)]); - } - return async function secureHeaders2(ctx, next) { - const headersToSetForReq = callbacks.length === 0 ? headersToSet : callbacks.reduce((acc, cb) => cb(ctx, acc), headersToSet); - await next(); - setHeaders(ctx, headersToSetForReq); - if (options?.removePoweredBy) { - ctx.res.headers.delete("X-Powered-By"); - } - }; -}; -function getFilteredHeaders(options) { - return Object.entries(HEADERS_MAP).filter(([key]) => options[key]).map(([key, defaultValue]) => { - const overrideValue = options[key]; - return typeof overrideValue === "string" ? [defaultValue[0], overrideValue] : defaultValue; - }); -} -function getCSPDirectives(contentSecurityPolicy) { - const callbacks = []; - const resultValues = []; - for (const [directive, value] of Object.entries(contentSecurityPolicy)) { - const valueArray = Array.isArray(value) ? value : [value]; - valueArray.forEach((value2, i) => { - if (typeof value2 === "function") { - const index = i * 2 + 2 + resultValues.length; - callbacks.push((ctx, values) => { - values[index] = value2(ctx, directive); - }); - } - }); - resultValues.push( - directive.replace( - /[A-Z]+(?![a-z])|[A-Z]/g, - (match, offset) => offset ? "-" + match.toLowerCase() : match.toLowerCase() - ), - ...valueArray.flatMap((value2) => [" ", value2]), - "; " - ); - } - resultValues.pop(); - return callbacks.length === 0 ? [void 0, resultValues.join("")] : [ - (ctx, headersToSet) => headersToSet.map((values) => { - if (values[0] === "Content-Security-Policy" || values[0] === "Content-Security-Policy-Report-Only") { - const clone = values[1].slice(); - callbacks.forEach((cb) => { - cb(ctx, clone); - }); - return [values[0], clone.join("")]; - } else { - return values; - } - }), - resultValues - ]; -} -function getPermissionsPolicyDirectives(policy) { - return Object.entries(policy).map(([directive, value]) => { - const kebabDirective = camelToKebab(directive); - if (typeof value === "boolean") { - return `${kebabDirective}=${value ? "*" : "none"}`; - } - if (Array.isArray(value)) { - if (value.length === 0) { - return `${kebabDirective}=()`; - } - if (value.length === 1 && (value[0] === "*" || value[0] === "none")) { - return `${kebabDirective}=${value[0]}`; - } - const allowlist = value.map((item) => ["self", "src"].includes(item) ? item : `"${item}"`); - return `${kebabDirective}=(${allowlist.join(" ")})`; - } - return ""; - }).filter(Boolean).join(", "); -} -function camelToKebab(str) { - return str.replace(/([a-z\d])([A-Z])/g, "$1-$2").toLowerCase(); -} -function getReportingEndpoints(reportingEndpoints = []) { - return reportingEndpoints.map((endpoint) => `${endpoint.name}="${endpoint.url}"`).join(", "); -} -function getReportToOptions(reportTo = []) { - return reportTo.map((option) => JSON.stringify(option)).join(", "); -} -function setHeaders(ctx, headersToSet) { - headersToSet.forEach(([header, value]) => { - ctx.res.headers.set(header, value); - }); -} -export { - NONCE, - secureHeaders -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/serve-static/index.js b/mcp-server/node_modules/hono/dist/middleware/serve-static/index.js deleted file mode 100644 index 7ed3d9a..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/serve-static/index.js +++ /dev/null @@ -1,76 +0,0 @@ -// src/middleware/serve-static/index.ts -import { COMPRESSIBLE_CONTENT_TYPE_REGEX } from "../../utils/compress.js"; -import { getMimeType } from "../../utils/mime.js"; -import { defaultJoin } from "./path.js"; -var ENCODINGS = { - br: ".br", - zstd: ".zst", - gzip: ".gz" -}; -var ENCODINGS_ORDERED_KEYS = Object.keys(ENCODINGS); -var DEFAULT_DOCUMENT = "index.html"; -var serveStatic = (options) => { - const root = options.root ?? "./"; - const optionPath = options.path; - const join = options.join ?? defaultJoin; - return async (c, next) => { - if (c.finalized) { - return next(); - } - let filename; - if (options.path) { - filename = options.path; - } else { - try { - filename = decodeURIComponent(c.req.path); - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - throw new Error(); - } - } catch { - await options.onNotFound?.(c.req.path, c); - return next(); - } - } - let path = join( - root, - !optionPath && options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename - ); - if (options.isDir && await options.isDir(path)) { - path = join(path, DEFAULT_DOCUMENT); - } - const getContent = options.getContent; - let content = await getContent(path, c); - if (content instanceof Response) { - return c.newResponse(content.body, content); - } - if (content) { - const mimeType = options.mimes && getMimeType(path, options.mimes) || getMimeType(path); - c.header("Content-Type", mimeType || "application/octet-stream"); - if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) { - const acceptEncodingSet = new Set( - c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()) - ); - for (const encoding of ENCODINGS_ORDERED_KEYS) { - if (!acceptEncodingSet.has(encoding)) { - continue; - } - const compressedContent = await getContent(path + ENCODINGS[encoding], c); - if (compressedContent) { - content = compressedContent; - c.header("Content-Encoding", encoding); - c.header("Vary", "Accept-Encoding", { append: true }); - break; - } - } - } - await options.onFound?.(path, c); - return c.body(content); - } - await options.onNotFound?.(path, c); - await next(); - return; - }; -}; -export { - serveStatic -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/serve-static/path.js b/mcp-server/node_modules/hono/dist/middleware/serve-static/path.js deleted file mode 100644 index ab7f823..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/serve-static/path.js +++ /dev/null @@ -1,18 +0,0 @@ -// src/middleware/serve-static/path.ts -var defaultJoin = (...paths) => { - let result = paths.filter((p) => p !== "").join("/"); - result = result.replace(/(?<=\/)\/+/g, ""); - const segments = result.split("/"); - const resolved = []; - for (const segment of segments) { - if (segment === ".." && resolved.length > 0 && resolved.at(-1) !== "..") { - resolved.pop(); - } else if (segment !== ".") { - resolved.push(segment); - } - } - return resolved.join("/") || "."; -}; -export { - defaultJoin -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/timeout/index.js b/mcp-server/node_modules/hono/dist/middleware/timeout/index.js deleted file mode 100644 index 9fac713..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/timeout/index.js +++ /dev/null @@ -1,25 +0,0 @@ -// src/middleware/timeout/index.ts -import { HTTPException } from "../../http-exception.js"; -var defaultTimeoutException = new HTTPException(504, { - message: "Gateway Timeout" -}); -var timeout = (duration, exception = defaultTimeoutException) => { - return async function timeout2(context, next) { - let timer; - const timeoutPromise = new Promise((_, reject) => { - timer = setTimeout(() => { - reject(typeof exception === "function" ? exception(context) : exception); - }, duration); - }); - try { - await Promise.race([next(), timeoutPromise]); - } finally { - if (timer !== void 0) { - clearTimeout(timer); - } - } - }; -}; -export { - timeout -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/timing/index.js b/mcp-server/node_modules/hono/dist/middleware/timing/index.js deleted file mode 100644 index 4c0836b..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/timing/index.js +++ /dev/null @@ -1,9 +0,0 @@ -// src/middleware/timing/index.ts -import { timing, setMetric, startTime, endTime, wrapTime } from "./timing.js"; -export { - endTime, - setMetric, - startTime, - timing, - wrapTime -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/timing/timing.js b/mcp-server/node_modules/hono/dist/middleware/timing/timing.js deleted file mode 100644 index df3014c..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/timing/timing.js +++ /dev/null @@ -1,102 +0,0 @@ -// src/middleware/timing/timing.ts -import "../../context.js"; -var getTime = () => { - try { - return performance.now(); - } catch { - } - return Date.now(); -}; -var timing = (config) => { - const options = { - total: true, - enabled: true, - totalDescription: "Total Response Time", - autoEnd: true, - crossOrigin: false, - ...config - }; - return async function timing2(c, next) { - const headers = []; - const timers = /* @__PURE__ */ new Map(); - if (c.get("metric")) { - return await next(); - } - c.set("metric", { headers, timers }); - if (options.total) { - startTime(c, "total", options.totalDescription); - } - await next(); - if (options.total) { - endTime(c, "total"); - } - if (options.autoEnd) { - timers.forEach((_, key) => endTime(c, key)); - } - const enabled = typeof options.enabled === "function" ? options.enabled(c) : options.enabled; - if (enabled) { - c.res.headers.append("Server-Timing", headers.join(",")); - const crossOrigin = typeof options.crossOrigin === "function" ? options.crossOrigin(c) : options.crossOrigin; - if (crossOrigin) { - c.res.headers.append( - "Timing-Allow-Origin", - typeof crossOrigin === "string" ? crossOrigin : "*" - ); - } - } - }; -}; -var setMetric = (c, name, valueDescription, description, precision) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - if (typeof valueDescription === "number") { - const dur = valueDescription.toFixed(precision || 1); - const metric = description ? `${name};dur=${dur};desc="${description}"` : `${name};dur=${dur}`; - metrics.headers.push(metric); - } else { - const metric = valueDescription ? `${name};desc="${valueDescription}"` : `${name}`; - metrics.headers.push(metric); - } -}; -var startTime = (c, name, description) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - metrics.timers.set(name, { description, start: getTime() }); -}; -var endTime = (c, name, precision) => { - const metrics = c.get("metric"); - if (!metrics) { - console.warn("Metrics not initialized! Please add the `timing()` middleware to this route!"); - return; - } - const timer = metrics.timers.get(name); - if (!timer) { - console.warn(`Timer "${name}" does not exist!`); - return; - } - const { description, start } = timer; - const duration = getTime() - start; - setMetric(c, name, duration, description, precision); - metrics.timers.delete(name); -}; -async function wrapTime(c, name, callable, description, precision) { - startTime(c, name, description); - try { - return await callable; - } finally { - endTime(c, name, precision); - } -} -export { - endTime, - setMetric, - startTime, - timing, - wrapTime -}; diff --git a/mcp-server/node_modules/hono/dist/middleware/trailing-slash/index.js b/mcp-server/node_modules/hono/dist/middleware/trailing-slash/index.js deleted file mode 100644 index c769749..0000000 --- a/mcp-server/node_modules/hono/dist/middleware/trailing-slash/index.js +++ /dev/null @@ -1,25 +0,0 @@ -// src/middleware/trailing-slash/index.ts -var trimTrailingSlash = () => { - return async function trimTrailingSlash2(c, next) { - await next(); - if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path !== "/" && c.req.path.at(-1) === "/") { - const url = new URL(c.req.url); - url.pathname = url.pathname.substring(0, url.pathname.length - 1); - c.res = c.redirect(url.toString(), 301); - } - }; -}; -var appendTrailingSlash = () => { - return async function appendTrailingSlash2(c, next) { - await next(); - if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path.at(-1) !== "/") { - const url = new URL(c.req.url); - url.pathname += "/"; - c.res = c.redirect(url.toString(), 301); - } - }; -}; -export { - appendTrailingSlash, - trimTrailingSlash -}; diff --git a/mcp-server/node_modules/hono/dist/preset/quick.js b/mcp-server/node_modules/hono/dist/preset/quick.js deleted file mode 100644 index b8eca97..0000000 --- a/mcp-server/node_modules/hono/dist/preset/quick.js +++ /dev/null @@ -1,16 +0,0 @@ -// src/preset/quick.ts -import { HonoBase } from "../hono-base.js"; -import { LinearRouter } from "../router/linear-router/index.js"; -import { SmartRouter } from "../router/smart-router/index.js"; -import { TrieRouter } from "../router/trie-router/index.js"; -var Hono = class extends HonoBase { - constructor(options = {}) { - super(options); - this.router = new SmartRouter({ - routers: [new LinearRouter(), new TrieRouter()] - }); - } -}; -export { - Hono -}; diff --git a/mcp-server/node_modules/hono/dist/preset/tiny.js b/mcp-server/node_modules/hono/dist/preset/tiny.js deleted file mode 100644 index 377e3b0..0000000 --- a/mcp-server/node_modules/hono/dist/preset/tiny.js +++ /dev/null @@ -1,12 +0,0 @@ -// src/preset/tiny.ts -import { HonoBase } from "../hono-base.js"; -import { PatternRouter } from "../router/pattern-router/index.js"; -var Hono = class extends HonoBase { - constructor(options = {}) { - super(options); - this.router = new PatternRouter(); - } -}; -export { - Hono -}; diff --git a/mcp-server/node_modules/hono/dist/request.js b/mcp-server/node_modules/hono/dist/request.js deleted file mode 100644 index 06a2bf9..0000000 --- a/mcp-server/node_modules/hono/dist/request.js +++ /dev/null @@ -1,301 +0,0 @@ -// src/request.ts -import { HTTPException } from "./http-exception.js"; -import { GET_MATCH_RESULT } from "./request/constants.js"; -import { parseBody } from "./utils/body.js"; -import { decodeURIComponent_, getQueryParam, getQueryParams, tryDecode } from "./utils/url.js"; -var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_); -var HonoRequest = class { - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw; - #validatedData; - // Short name of validatedData - #matchResult; - routeIndex = 0; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path; - bodyCache = {}; - constructor(request, path = "/", matchResult = [[]]) { - this.raw = request; - this.path = path; - this.#matchResult = matchResult; - this.#validatedData = {}; - } - param(key) { - return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams(); - } - #getDecodedParam(key) { - const paramKey = this.#matchResult[0][this.routeIndex][1][key]; - const param = this.#getParamValue(paramKey); - return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param; - } - #getAllDecodedParams() { - const decoded = {}; - const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]); - for (const key of keys) { - const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]); - if (value !== void 0) { - decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value; - } - } - return decoded; - } - #getParamValue(paramKey) { - return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey; - } - query(key) { - return getQueryParam(this.url, key); - } - queries(key) { - return getQueryParams(this.url, key); - } - header(name) { - if (name) { - return this.raw.headers.get(name) ?? void 0; - } - const headerData = {}; - this.raw.headers.forEach((value, key) => { - headerData[key] = value; - }); - return headerData; - } - async parseBody(options) { - return this.bodyCache.parsedBody ??= await parseBody(this, options); - } - #cachedBody = (key) => { - const { bodyCache, raw } = this; - const cachedBody = bodyCache[key]; - if (cachedBody) { - return cachedBody; - } - const anyCachedKey = Object.keys(bodyCache)[0]; - if (anyCachedKey) { - return bodyCache[anyCachedKey].then((body) => { - if (anyCachedKey === "json") { - body = JSON.stringify(body); - } - return new Response(body)[key](); - }); - } - return bodyCache[key] = raw[key](); - }; - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json() { - return this.#cachedBody("text").then((text) => JSON.parse(text)); - } - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text() { - return this.#cachedBody("text"); - } - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer() { - return this.#cachedBody("arrayBuffer"); - } - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob() { - return this.#cachedBody("blob"); - } - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData() { - return this.#cachedBody("formData"); - } - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target, data) { - this.#validatedData[target] = data; - } - valid(target) { - return this.#validatedData[target]; - } - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url() { - return this.raw.url; - } - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method() { - return this.raw.method; - } - get [GET_MATCH_RESULT]() { - return this.#matchResult; - } - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes() { - return this.#matchResult[0].map(([[, route]]) => route); - } - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath() { - return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path; - } -}; -var cloneRawRequest = async (req) => { - if (!req.raw.bodyUsed) { - return req.raw.clone(); - } - const cacheKey = Object.keys(req.bodyCache)[0]; - if (!cacheKey) { - throw new HTTPException(500, { - message: "Cannot clone request: body was already consumed and not cached. Please use HonoRequest methods (e.g., req.json(), req.text()) instead of consuming req.raw directly." - }); - } - const requestInit = { - body: await req[cacheKey](), - cache: req.raw.cache, - credentials: req.raw.credentials, - headers: req.header(), - integrity: req.raw.integrity, - keepalive: req.raw.keepalive, - method: req.method, - mode: req.raw.mode, - redirect: req.raw.redirect, - referrer: req.raw.referrer, - referrerPolicy: req.raw.referrerPolicy, - signal: req.raw.signal - }; - return new Request(req.url, requestInit); -}; -export { - HonoRequest, - cloneRawRequest -}; diff --git a/mcp-server/node_modules/hono/dist/request/constants.js b/mcp-server/node_modules/hono/dist/request/constants.js deleted file mode 100644 index 0dd1f54..0000000 --- a/mcp-server/node_modules/hono/dist/request/constants.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/request/constants.ts -var GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); -export { - GET_MATCH_RESULT -}; diff --git a/mcp-server/node_modules/hono/dist/router.js b/mcp-server/node_modules/hono/dist/router.js deleted file mode 100644 index 7e3111e..0000000 --- a/mcp-server/node_modules/hono/dist/router.js +++ /dev/null @@ -1,14 +0,0 @@ -// src/router.ts -var METHOD_NAME_ALL = "ALL"; -var METHOD_NAME_ALL_LOWERCASE = "all"; -var METHODS = ["get", "post", "put", "delete", "options", "patch"]; -var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -var UnsupportedPathError = class extends Error { -}; -export { - MESSAGE_MATCHER_IS_ALREADY_BUILT, - METHODS, - METHOD_NAME_ALL, - METHOD_NAME_ALL_LOWERCASE, - UnsupportedPathError -}; diff --git a/mcp-server/node_modules/hono/dist/router/linear-router/index.js b/mcp-server/node_modules/hono/dist/router/linear-router/index.js deleted file mode 100644 index ed50711..0000000 --- a/mcp-server/node_modules/hono/dist/router/linear-router/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/router/linear-router/index.ts -import { LinearRouter } from "./router.js"; -export { - LinearRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/linear-router/router.js b/mcp-server/node_modules/hono/dist/router/linear-router/router.js deleted file mode 100644 index ca0a0c1..0000000 --- a/mcp-server/node_modules/hono/dist/router/linear-router/router.js +++ /dev/null @@ -1,118 +0,0 @@ -// src/router/linear-router/router.ts -import { METHOD_NAME_ALL, UnsupportedPathError } from "../../router.js"; -import { checkOptionalParameter } from "../../utils/url.js"; -var emptyParams = /* @__PURE__ */ Object.create(null); -var splitPathRe = /\/(:\w+(?:{(?:(?:{[\d,]+})|[^}])+})?)|\/[^\/\?]+|(\?)/g; -var splitByStarRe = /\*/; -var LinearRouter = class { - name = "LinearRouter"; - #routes = []; - add(method, path, handler) { - for (let i = 0, paths = checkOptionalParameter(path) || [path], len = paths.length; i < len; i++) { - this.#routes.push([method, paths[i], handler]); - } - } - match(method, path) { - const handlers = []; - ROUTES_LOOP: for (let i = 0, len = this.#routes.length; i < len; i++) { - const [routeMethod, routePath, handler] = this.#routes[i]; - if (routeMethod === method || routeMethod === METHOD_NAME_ALL) { - if (routePath === "*" || routePath === "/*") { - handlers.push([handler, emptyParams]); - continue; - } - const hasStar = routePath.indexOf("*") !== -1; - const hasLabel = routePath.indexOf(":") !== -1; - if (!hasStar && !hasLabel) { - if (routePath === path || routePath + "/" === path) { - handlers.push([handler, emptyParams]); - } - } else if (hasStar && !hasLabel) { - const endsWithStar = routePath.charCodeAt(routePath.length - 1) === 42; - const parts = (endsWithStar ? routePath.slice(0, -2) : routePath).split(splitByStarRe); - const lastIndex = parts.length - 1; - for (let j = 0, pos = 0, len2 = parts.length; j < len2; j++) { - const part = parts[j]; - const index = path.indexOf(part, pos); - if (index !== pos) { - continue ROUTES_LOOP; - } - pos += part.length; - if (j === lastIndex) { - if (!endsWithStar && pos !== path.length && !(pos === path.length - 1 && path.charCodeAt(pos) === 47)) { - continue ROUTES_LOOP; - } - } else { - const index2 = path.indexOf("/", pos); - if (index2 === -1) { - continue ROUTES_LOOP; - } - pos = index2; - } - } - handlers.push([handler, emptyParams]); - } else if (hasLabel && !hasStar) { - const params = /* @__PURE__ */ Object.create(null); - const parts = routePath.match(splitPathRe); - const lastIndex = parts.length - 1; - for (let j = 0, pos = 0, len2 = parts.length; j < len2; j++) { - if (pos === -1 || pos >= path.length) { - continue ROUTES_LOOP; - } - const part = parts[j]; - if (part.charCodeAt(1) === 58) { - if (path.charCodeAt(pos) !== 47) { - continue ROUTES_LOOP; - } - let name = part.slice(2); - let value; - if (name.charCodeAt(name.length - 1) === 125) { - const openBracePos = name.indexOf("{"); - const next = parts[j + 1]; - const lookahead = next && next[1] !== ":" && next[1] !== "*" ? `(?=${next})` : ""; - const pattern = name.slice(openBracePos + 1, -1) + lookahead; - const restPath = path.slice(pos + 1); - const match = new RegExp(pattern, "d").exec(restPath); - if (!match || match.indices[0][0] !== 0 || match.indices[0][1] === 0) { - continue ROUTES_LOOP; - } - name = name.slice(0, openBracePos); - value = restPath.slice(...match.indices[0]); - pos += match.indices[0][1] + 1; - } else { - let endValuePos = path.indexOf("/", pos + 1); - if (endValuePos === -1) { - if (pos + 1 === path.length) { - continue ROUTES_LOOP; - } - endValuePos = path.length; - } - value = path.slice(pos + 1, endValuePos); - pos = endValuePos; - } - params[name] ||= value; - } else { - const index = path.indexOf(part, pos); - if (index !== pos) { - continue ROUTES_LOOP; - } - pos += part.length; - } - if (j === lastIndex) { - if (pos !== path.length && !(pos === path.length - 1 && path.charCodeAt(pos) === 47)) { - continue ROUTES_LOOP; - } - } - } - handlers.push([handler, params]); - } else if (hasLabel && hasStar) { - throw new UnsupportedPathError(); - } - } - } - return [handlers]; - } -}; -export { - LinearRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/pattern-router/index.js b/mcp-server/node_modules/hono/dist/router/pattern-router/index.js deleted file mode 100644 index b4e9ab4..0000000 --- a/mcp-server/node_modules/hono/dist/router/pattern-router/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/router/pattern-router/index.ts -import { PatternRouter } from "./router.js"; -export { - PatternRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/pattern-router/router.js b/mcp-server/node_modules/hono/dist/router/pattern-router/router.js deleted file mode 100644 index 96eb0b8..0000000 --- a/mcp-server/node_modules/hono/dist/router/pattern-router/router.js +++ /dev/null @@ -1,48 +0,0 @@ -// src/router/pattern-router/router.ts -import { METHOD_NAME_ALL, UnsupportedPathError } from "../../router.js"; -var emptyParams = /* @__PURE__ */ Object.create(null); -var PatternRouter = class { - name = "PatternRouter"; - #routes = []; - add(method, path, handler) { - const endsWithWildcard = path.at(-1) === "*"; - if (endsWithWildcard) { - path = path.slice(0, -2); - } - if (path.at(-1) === "?") { - path = path.slice(0, -1); - this.add(method, path.replace(/\/[^/]+$/, ""), handler); - } - const parts = (path.match(/\/?(:\w+(?:{(?:(?:{[\d,]+})|[^}])+})?)|\/?[^\/\?]+/g) || []).map( - (part) => { - const match = part.match(/^\/:([^{]+)(?:{(.*)})?/); - return match ? `/(?<${match[1]}>${match[2] || "[^/]+"})` : part === "/*" ? "/[^/]+" : part.replace(/[.\\+*[^\]$()]/g, "\\$&"); - } - ); - try { - this.#routes.push([ - new RegExp(`^${parts.join("")}${endsWithWildcard ? "" : "/?$"}`), - method, - handler - ]); - } catch { - throw new UnsupportedPathError(); - } - } - match(method, path) { - const handlers = []; - for (let i = 0, len = this.#routes.length; i < len; i++) { - const [pattern, routeMethod, handler] = this.#routes[i]; - if (routeMethod === method || routeMethod === METHOD_NAME_ALL) { - const match = pattern.exec(path); - if (match) { - handlers.push([handler, match.groups || emptyParams]); - } - } - } - return [handlers]; - } -}; -export { - PatternRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/index.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/index.js deleted file mode 100644 index dc94aeb..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/index.js +++ /dev/null @@ -1,9 +0,0 @@ -// src/router/reg-exp-router/index.ts -import { RegExpRouter } from "./router.js"; -import { PreparedRegExpRouter, buildInitParams, serializeInitParams } from "./prepared-router.js"; -export { - PreparedRegExpRouter, - RegExpRouter, - buildInitParams, - serializeInitParams -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/matcher.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/matcher.js deleted file mode 100644 index 3691559..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/matcher.js +++ /dev/null @@ -1,25 +0,0 @@ -// src/router/reg-exp-router/matcher.ts -import { METHOD_NAME_ALL } from "../../router.js"; -var emptyParam = []; -function match(method, path) { - const matchers = this.buildAllMatchers(); - const match2 = ((method2, path2) => { - const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; - const staticMatch = matcher[2][path2]; - if (staticMatch) { - return staticMatch; - } - const match3 = path2.match(matcher[0]); - if (!match3) { - return [[], emptyParam]; - } - const index = match3.indexOf("", 1); - return [matcher[1][index], match3]; - }); - this.match = match2; - return match2(method, path); -} -export { - emptyParam, - match -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/node.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/node.js deleted file mode 100644 index fc4b292..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/node.js +++ /dev/null @@ -1,111 +0,0 @@ -// src/router/reg-exp-router/node.ts -var LABEL_REG_EXP_STR = "[^/]+"; -var ONLY_WILDCARD_REG_EXP_STR = ".*"; -var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)"; -var PATH_ERROR = /* @__PURE__ */ Symbol(); -var regExpMetaChars = new Set(".\\+*[^]$()"); -function compareKey(a, b) { - if (a.length === 1) { - return b.length === 1 ? a < b ? -1 : 1 : -1; - } - if (b.length === 1) { - return 1; - } - if (a === ONLY_WILDCARD_REG_EXP_STR || a === TAIL_WILDCARD_REG_EXP_STR) { - return 1; - } else if (b === ONLY_WILDCARD_REG_EXP_STR || b === TAIL_WILDCARD_REG_EXP_STR) { - return -1; - } - if (a === LABEL_REG_EXP_STR) { - return 1; - } else if (b === LABEL_REG_EXP_STR) { - return -1; - } - return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length; -} -var Node = class _Node { - #index; - #varIndex; - #children = /* @__PURE__ */ Object.create(null); - insert(tokens, index, paramMap, context, pathErrorCheckOnly) { - if (tokens.length === 0) { - if (this.#index !== void 0) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - this.#index = index; - return; - } - const [token, ...restTokens] = tokens; - const pattern = token === "*" ? restTokens.length === 0 ? ["", "", ONLY_WILDCARD_REG_EXP_STR] : ["", "", LABEL_REG_EXP_STR] : token === "/*" ? ["", "", TAIL_WILDCARD_REG_EXP_STR] : token.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - let node; - if (pattern) { - const name = pattern[1]; - let regexpStr = pattern[2] || LABEL_REG_EXP_STR; - if (name && pattern[2]) { - if (regexpStr === ".*") { - throw PATH_ERROR; - } - regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:"); - if (/\((?!\?:)/.test(regexpStr)) { - throw PATH_ERROR; - } - } - node = this.#children[regexpStr]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[regexpStr] = new _Node(); - if (name !== "") { - node.#varIndex = context.varIndex++; - } - } - if (!pathErrorCheckOnly && name !== "") { - paramMap.push([name, node.#varIndex]); - } - } else { - node = this.#children[token]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k.length > 1 && k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[token] = new _Node(); - } - } - node.insert(restTokens, index, paramMap, context, pathErrorCheckOnly); - } - buildRegExpStr() { - const childKeys = Object.keys(this.#children).sort(compareKey); - const strList = childKeys.map((k) => { - const c = this.#children[k]; - return (typeof c.#varIndex === "number" ? `(${k})@${c.#varIndex}` : regExpMetaChars.has(k) ? `\\${k}` : k) + c.buildRegExpStr(); - }); - if (typeof this.#index === "number") { - strList.unshift(`#${this.#index}`); - } - if (strList.length === 0) { - return ""; - } - if (strList.length === 1) { - return strList[0]; - } - return "(?:" + strList.join("|") + ")"; - } -}; -export { - Node, - PATH_ERROR -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/prepared-router.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/prepared-router.js deleted file mode 100644 index d329d76..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +++ /dev/null @@ -1,142 +0,0 @@ -// src/router/reg-exp-router/prepared-router.ts -import { METHOD_NAME_ALL } from "../../router.js"; -import { match, emptyParam } from "./matcher.js"; -import { RegExpRouter } from "./router.js"; -var PreparedRegExpRouter = class { - name = "PreparedRegExpRouter"; - #matchers; - #relocateMap; - constructor(matchers, relocateMap) { - this.#matchers = matchers; - this.#relocateMap = relocateMap; - } - #addWildcard(method, handlerData) { - const matcher = this.#matchers[method]; - matcher[1].forEach((list) => list && list.push(handlerData)); - Object.values(matcher[2]).forEach((list) => list[0].push(handlerData)); - } - #addPath(method, path, handler, indexes, map) { - const matcher = this.#matchers[method]; - if (!map) { - matcher[2][path][0].push([handler, {}]); - } else { - indexes.forEach((index) => { - if (typeof index === "number") { - matcher[1][index].push([handler, map]); - } else { - ; - matcher[2][index || path][0].push([handler, map]); - } - }); - } - } - add(method, path, handler) { - if (!this.#matchers[method]) { - const all = this.#matchers[METHOD_NAME_ALL]; - const staticMap = {}; - for (const key in all[2]) { - staticMap[key] = [all[2][key][0].slice(), emptyParam]; - } - this.#matchers[method] = [ - all[0], - all[1].map((list) => Array.isArray(list) ? list.slice() : 0), - staticMap - ]; - } - if (path === "/*" || path === "*") { - const handlerData = [handler, {}]; - if (method === METHOD_NAME_ALL) { - for (const m in this.#matchers) { - this.#addWildcard(m, handlerData); - } - } else { - this.#addWildcard(method, handlerData); - } - return; - } - const data = this.#relocateMap[path]; - if (!data) { - throw new Error(`Path ${path} is not registered`); - } - for (const [indexes, map] of data) { - if (method === METHOD_NAME_ALL) { - for (const m in this.#matchers) { - this.#addPath(m, path, handler, indexes, map); - } - } else { - this.#addPath(method, path, handler, indexes, map); - } - } - } - buildAllMatchers() { - return this.#matchers; - } - match = match; -}; -var buildInitParams = ({ paths }) => { - const RegExpRouterWithMatcherExport = class extends RegExpRouter { - buildAndExportAllMatchers() { - return this.buildAllMatchers(); - } - }; - const router = new RegExpRouterWithMatcherExport(); - for (const path of paths) { - router.add(METHOD_NAME_ALL, path, path); - } - const matchers = router.buildAndExportAllMatchers(); - const all = matchers[METHOD_NAME_ALL]; - const relocateMap = {}; - for (const path of paths) { - if (path === "/*" || path === "*") { - continue; - } - all[1].forEach((list, i) => { - list.forEach(([p, map]) => { - if (p === path) { - if (relocateMap[path]) { - relocateMap[path][0][1] = { - ...relocateMap[path][0][1], - ...map - }; - } else { - relocateMap[path] = [[[], map]]; - } - if (relocateMap[path][0][0].findIndex((j) => j === i) === -1) { - relocateMap[path][0][0].push(i); - } - } - }); - }); - for (const path2 in all[2]) { - all[2][path2][0].forEach(([p]) => { - if (p === path) { - relocateMap[path] ||= [[[]]]; - const value = path2 === path ? "" : path2; - if (relocateMap[path][0][0].findIndex((v) => v === value) === -1) { - relocateMap[path][0][0].push(value); - } - } - }); - } - } - for (let i = 0, len = all[1].length; i < len; i++) { - all[1][i] = all[1][i] ? [] : 0; - } - for (const path in all[2]) { - all[2][path][0] = []; - } - return [matchers, relocateMap]; -}; -var serializeInitParams = ([matchers, relocateMap]) => { - const matchersStr = JSON.stringify( - matchers, - (_, value) => value instanceof RegExp ? `##${value.toString()}##` : value - ).replace(/"##(.+?)##"/g, (_, str) => str.replace(/\\\\/g, "\\")); - const relocateMapStr = JSON.stringify(relocateMap); - return `[${matchersStr},${relocateMapStr}]`; -}; -export { - PreparedRegExpRouter, - buildInitParams, - serializeInitParams -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/router.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/router.js deleted file mode 100644 index c8abb70..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/router.js +++ /dev/null @@ -1,190 +0,0 @@ -// src/router/reg-exp-router/router.ts -import { - MESSAGE_MATCHER_IS_ALREADY_BUILT, - METHOD_NAME_ALL, - UnsupportedPathError -} from "../../router.js"; -import { checkOptionalParameter } from "../../utils/url.js"; -import { match, emptyParam } from "./matcher.js"; -import { PATH_ERROR } from "./node.js"; -import { Trie } from "./trie.js"; -var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)]; -var wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -function buildWildcardRegExp(path) { - return wildcardRegExpCache[path] ??= new RegExp( - path === "*" ? "" : `^${path.replace( - /\/\*$|([.\\+*[^\]$()])/g, - (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)" - )}$` - ); -} -function clearWildcardRegExpCache() { - wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -} -function buildMatcherFromPreprocessedRoutes(routes) { - const trie = new Trie(); - const handlerData = []; - if (routes.length === 0) { - return nullMatcher; - } - const routesWithStaticPathFlag = routes.map( - (route) => [!/\*|\/:/.test(route[0]), ...route] - ).sort( - ([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length - ); - const staticMap = /* @__PURE__ */ Object.create(null); - for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) { - const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i]; - if (pathErrorCheckOnly) { - staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam]; - } else { - j++; - } - let paramAssoc; - try { - paramAssoc = trie.insert(path, j, pathErrorCheckOnly); - } catch (e) { - throw e === PATH_ERROR ? new UnsupportedPathError(path) : e; - } - if (pathErrorCheckOnly) { - continue; - } - handlerData[j] = handlers.map(([h, paramCount]) => { - const paramIndexMap = /* @__PURE__ */ Object.create(null); - paramCount -= 1; - for (; paramCount >= 0; paramCount--) { - const [key, value] = paramAssoc[paramCount]; - paramIndexMap[key] = value; - } - return [h, paramIndexMap]; - }); - } - const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp(); - for (let i = 0, len = handlerData.length; i < len; i++) { - for (let j = 0, len2 = handlerData[i].length; j < len2; j++) { - const map = handlerData[i][j]?.[1]; - if (!map) { - continue; - } - const keys = Object.keys(map); - for (let k = 0, len3 = keys.length; k < len3; k++) { - map[keys[k]] = paramReplacementMap[map[keys[k]]]; - } - } - } - const handlerMap = []; - for (const i in indexReplacementMap) { - handlerMap[i] = handlerData[indexReplacementMap[i]]; - } - return [regexp, handlerMap, staticMap]; -} -function findMiddleware(middleware, path) { - if (!middleware) { - return void 0; - } - for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) { - if (buildWildcardRegExp(k).test(path)) { - return [...middleware[k]]; - } - } - return void 0; -} -var RegExpRouter = class { - name = "RegExpRouter"; - #middleware; - #routes; - constructor() { - this.#middleware = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - this.#routes = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - } - add(method, path, handler) { - const middleware = this.#middleware; - const routes = this.#routes; - if (!middleware || !routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - if (!middleware[method]) { - ; - [middleware, routes].forEach((handlerMap) => { - handlerMap[method] = /* @__PURE__ */ Object.create(null); - Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((p) => { - handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]]; - }); - }); - } - if (path === "/*") { - path = "*"; - } - const paramCount = (path.match(/\/:/g) || []).length; - if (/\*$/.test(path)) { - const re = buildWildcardRegExp(path); - if (method === METHOD_NAME_ALL) { - Object.keys(middleware).forEach((m) => { - middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - }); - } else { - middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - } - Object.keys(middleware).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(middleware[m]).forEach((p) => { - re.test(p) && middleware[m][p].push([handler, paramCount]); - }); - } - }); - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(routes[m]).forEach( - (p) => re.test(p) && routes[m][p].push([handler, paramCount]) - ); - } - }); - return; - } - const paths = checkOptionalParameter(path) || [path]; - for (let i = 0, len = paths.length; i < len; i++) { - const path2 = paths[i]; - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - routes[m][path2] ||= [ - ...findMiddleware(middleware[m], path2) || findMiddleware(middleware[METHOD_NAME_ALL], path2) || [] - ]; - routes[m][path2].push([handler, paramCount - len + i + 1]); - } - }); - } - } - match = match; - buildAllMatchers() { - const matchers = /* @__PURE__ */ Object.create(null); - Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => { - matchers[method] ||= this.#buildMatcher(method); - }); - this.#middleware = this.#routes = void 0; - clearWildcardRegExpCache(); - return matchers; - } - #buildMatcher(method) { - const routes = []; - let hasOwnRoute = method === METHOD_NAME_ALL; - [this.#middleware, this.#routes].forEach((r) => { - const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : []; - if (ownRoute.length !== 0) { - hasOwnRoute ||= true; - routes.push(...ownRoute); - } else if (method !== METHOD_NAME_ALL) { - routes.push( - ...Object.keys(r[METHOD_NAME_ALL]).map((path) => [path, r[METHOD_NAME_ALL][path]]) - ); - } - }); - if (!hasOwnRoute) { - return null; - } else { - return buildMatcherFromPreprocessedRoutes(routes); - } - } -}; -export { - RegExpRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/reg-exp-router/trie.js b/mcp-server/node_modules/hono/dist/router/reg-exp-router/trie.js deleted file mode 100644 index 7de861e..0000000 --- a/mcp-server/node_modules/hono/dist/router/reg-exp-router/trie.js +++ /dev/null @@ -1,59 +0,0 @@ -// src/router/reg-exp-router/trie.ts -import { Node } from "./node.js"; -var Trie = class { - #context = { varIndex: 0 }; - #root = new Node(); - insert(path, index, pathErrorCheckOnly) { - const paramAssoc = []; - const groups = []; - for (let i = 0; ; ) { - let replaced = false; - path = path.replace(/\{[^}]+\}/g, (m) => { - const mark = `@\\${i}`; - groups[i] = [mark, m]; - i++; - replaced = true; - return mark; - }); - if (!replaced) { - break; - } - } - const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || []; - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = tokens.length - 1; j >= 0; j--) { - if (tokens[j].indexOf(mark) !== -1) { - tokens[j] = tokens[j].replace(mark, groups[i][1]); - break; - } - } - } - this.#root.insert(tokens, index, paramAssoc, this.#context, pathErrorCheckOnly); - return paramAssoc; - } - buildRegExp() { - let regexp = this.#root.buildRegExpStr(); - if (regexp === "") { - return [/^$/, [], []]; - } - let captureIndex = 0; - const indexReplacementMap = []; - const paramReplacementMap = []; - regexp = regexp.replace(/#(\d+)|@(\d+)|\.\*\$/g, (_, handlerIndex, paramIndex) => { - if (handlerIndex !== void 0) { - indexReplacementMap[++captureIndex] = Number(handlerIndex); - return "$()"; - } - if (paramIndex !== void 0) { - paramReplacementMap[Number(paramIndex)] = ++captureIndex; - return ""; - } - return ""; - }); - return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap]; - } -}; -export { - Trie -}; diff --git a/mcp-server/node_modules/hono/dist/router/smart-router/index.js b/mcp-server/node_modules/hono/dist/router/smart-router/index.js deleted file mode 100644 index 2e68377..0000000 --- a/mcp-server/node_modules/hono/dist/router/smart-router/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/router/smart-router/index.ts -import { SmartRouter } from "./router.js"; -export { - SmartRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/smart-router/router.js b/mcp-server/node_modules/hono/dist/router/smart-router/router.js deleted file mode 100644 index 1b19adb..0000000 --- a/mcp-server/node_modules/hono/dist/router/smart-router/router.js +++ /dev/null @@ -1,58 +0,0 @@ -// src/router/smart-router/router.ts -import { MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError } from "../../router.js"; -var SmartRouter = class { - name = "SmartRouter"; - #routers = []; - #routes = []; - constructor(init) { - this.#routers = init.routers; - } - add(method, path, handler) { - if (!this.#routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - this.#routes.push([method, path, handler]); - } - match(method, path) { - if (!this.#routes) { - throw new Error("Fatal error"); - } - const routers = this.#routers; - const routes = this.#routes; - const len = routers.length; - let i = 0; - let res; - for (; i < len; i++) { - const router = routers[i]; - try { - for (let i2 = 0, len2 = routes.length; i2 < len2; i2++) { - router.add(...routes[i2]); - } - res = router.match(method, path); - } catch (e) { - if (e instanceof UnsupportedPathError) { - continue; - } - throw e; - } - this.match = router.match.bind(router); - this.#routers = [router]; - this.#routes = void 0; - break; - } - if (i === len) { - throw new Error("Fatal error"); - } - this.name = `SmartRouter + ${this.activeRouter.name}`; - return res; - } - get activeRouter() { - if (this.#routes || this.#routers.length !== 1) { - throw new Error("No active router has been determined yet."); - } - return this.#routers[0]; - } -}; -export { - SmartRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/trie-router/index.js b/mcp-server/node_modules/hono/dist/router/trie-router/index.js deleted file mode 100644 index c680d10..0000000 --- a/mcp-server/node_modules/hono/dist/router/trie-router/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/router/trie-router/index.ts -import { TrieRouter } from "./router.js"; -export { - TrieRouter -}; diff --git a/mcp-server/node_modules/hono/dist/router/trie-router/node.js b/mcp-server/node_modules/hono/dist/router/trie-router/node.js deleted file mode 100644 index a34c96d..0000000 --- a/mcp-server/node_modules/hono/dist/router/trie-router/node.js +++ /dev/null @@ -1,162 +0,0 @@ -// src/router/trie-router/node.ts -import { METHOD_NAME_ALL } from "../../router.js"; -import { getPattern, splitPath, splitRoutingPath } from "../../utils/url.js"; -var emptyParams = /* @__PURE__ */ Object.create(null); -var Node = class _Node { - #methods; - #children; - #patterns; - #order = 0; - #params = emptyParams; - constructor(method, handler, children) { - this.#children = children || /* @__PURE__ */ Object.create(null); - this.#methods = []; - if (method && handler) { - const m = /* @__PURE__ */ Object.create(null); - m[method] = { handler, possibleKeys: [], score: 0 }; - this.#methods = [m]; - } - this.#patterns = []; - } - insert(method, path, handler) { - this.#order = ++this.#order; - let curNode = this; - const parts = splitRoutingPath(path); - const possibleKeys = []; - for (let i = 0, len = parts.length; i < len; i++) { - const p = parts[i]; - const nextP = parts[i + 1]; - const pattern = getPattern(p, nextP); - const key = Array.isArray(pattern) ? pattern[0] : p; - if (key in curNode.#children) { - curNode = curNode.#children[key]; - if (pattern) { - possibleKeys.push(pattern[1]); - } - continue; - } - curNode.#children[key] = new _Node(); - if (pattern) { - curNode.#patterns.push(pattern); - possibleKeys.push(pattern[1]); - } - curNode = curNode.#children[key]; - } - curNode.#methods.push({ - [method]: { - handler, - possibleKeys: possibleKeys.filter((v, i, a) => a.indexOf(v) === i), - score: this.#order - } - }); - return curNode; - } - #getHandlerSets(node, method, nodeParams, params) { - const handlerSets = []; - for (let i = 0, len = node.#methods.length; i < len; i++) { - const m = node.#methods[i]; - const handlerSet = m[method] || m[METHOD_NAME_ALL]; - const processedSet = {}; - if (handlerSet !== void 0) { - handlerSet.params = /* @__PURE__ */ Object.create(null); - handlerSets.push(handlerSet); - if (nodeParams !== emptyParams || params && params !== emptyParams) { - for (let i2 = 0, len2 = handlerSet.possibleKeys.length; i2 < len2; i2++) { - const key = handlerSet.possibleKeys[i2]; - const processed = processedSet[handlerSet.score]; - handlerSet.params[key] = params?.[key] && !processed ? params[key] : nodeParams[key] ?? params?.[key]; - processedSet[handlerSet.score] = true; - } - } - } - } - return handlerSets; - } - search(method, path) { - const handlerSets = []; - this.#params = emptyParams; - const curNode = this; - let curNodes = [curNode]; - const parts = splitPath(path); - const curNodesQueue = []; - for (let i = 0, len = parts.length; i < len; i++) { - const part = parts[i]; - const isLast = i === len - 1; - const tempNodes = []; - for (let j = 0, len2 = curNodes.length; j < len2; j++) { - const node = curNodes[j]; - const nextNode = node.#children[part]; - if (nextNode) { - nextNode.#params = node.#params; - if (isLast) { - if (nextNode.#children["*"]) { - handlerSets.push( - ...this.#getHandlerSets(nextNode.#children["*"], method, node.#params) - ); - } - handlerSets.push(...this.#getHandlerSets(nextNode, method, node.#params)); - } else { - tempNodes.push(nextNode); - } - } - for (let k = 0, len3 = node.#patterns.length; k < len3; k++) { - const pattern = node.#patterns[k]; - const params = node.#params === emptyParams ? {} : { ...node.#params }; - if (pattern === "*") { - const astNode = node.#children["*"]; - if (astNode) { - handlerSets.push(...this.#getHandlerSets(astNode, method, node.#params)); - astNode.#params = params; - tempNodes.push(astNode); - } - continue; - } - const [key, name, matcher] = pattern; - if (!part && !(matcher instanceof RegExp)) { - continue; - } - const child = node.#children[key]; - const restPathString = parts.slice(i).join("/"); - if (matcher instanceof RegExp) { - const m = matcher.exec(restPathString); - if (m) { - params[name] = m[0]; - handlerSets.push(...this.#getHandlerSets(child, method, node.#params, params)); - if (Object.keys(child.#children).length) { - child.#params = params; - const componentCount = m[0].match(/\//)?.length ?? 0; - const targetCurNodes = curNodesQueue[componentCount] ||= []; - targetCurNodes.push(child); - } - continue; - } - } - if (matcher === true || matcher.test(part)) { - params[name] = part; - if (isLast) { - handlerSets.push(...this.#getHandlerSets(child, method, params, node.#params)); - if (child.#children["*"]) { - handlerSets.push( - ...this.#getHandlerSets(child.#children["*"], method, params, node.#params) - ); - } - } else { - child.#params = params; - tempNodes.push(child); - } - } - } - } - curNodes = tempNodes.concat(curNodesQueue.shift() ?? []); - } - if (handlerSets.length > 1) { - handlerSets.sort((a, b) => { - return a.score - b.score; - }); - } - return [handlerSets.map(({ handler, params }) => [handler, params])]; - } -}; -export { - Node -}; diff --git a/mcp-server/node_modules/hono/dist/router/trie-router/router.js b/mcp-server/node_modules/hono/dist/router/trie-router/router.js deleted file mode 100644 index 40fd29d..0000000 --- a/mcp-server/node_modules/hono/dist/router/trie-router/router.js +++ /dev/null @@ -1,26 +0,0 @@ -// src/router/trie-router/router.ts -import { checkOptionalParameter } from "../../utils/url.js"; -import { Node } from "./node.js"; -var TrieRouter = class { - name = "TrieRouter"; - #node; - constructor() { - this.#node = new Node(); - } - add(method, path, handler) { - const results = checkOptionalParameter(path); - if (results) { - for (let i = 0, len = results.length; i < len; i++) { - this.#node.insert(method, results[i], handler); - } - return; - } - this.#node.insert(method, path, handler); - } - match(method, path) { - return this.#node.search(method, path); - } -}; -export { - TrieRouter -}; diff --git a/mcp-server/node_modules/hono/dist/types.js b/mcp-server/node_modules/hono/dist/types.js deleted file mode 100644 index 863d104..0000000 --- a/mcp-server/node_modules/hono/dist/types.js +++ /dev/null @@ -1,6 +0,0 @@ -// src/types.ts -var FetchEventLike = class { -}; -export { - FetchEventLike -}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts deleted file mode 100644 index 2adfa9b..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type { Hono } from '../../hono'; -import type { Env, Schema } from '../../types'; -import type { ALBRequestContext, ApiGatewayRequestContext, ApiGatewayRequestContextV2, Handler, LambdaContext, LatticeRequestContextV2 } from './types'; -export type LambdaEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBProxyEvent | LatticeProxyEventV2; -export interface LatticeProxyEventV2 { - version: string; - path: string; - method: string; - headers: Record; - queryStringParameters: Record; - body: string | null; - isBase64Encoded: boolean; - requestContext: LatticeRequestContextV2; -} -export interface APIGatewayProxyEventV2 { - version: string; - routeKey: string; - headers: Record; - multiValueHeaders?: undefined; - cookies?: string[]; - rawPath: string; - rawQueryString: string; - body: string | null; - isBase64Encoded: boolean; - requestContext: ApiGatewayRequestContextV2; - queryStringParameters?: { - [name: string]: string | undefined; - }; - pathParameters?: { - [name: string]: string | undefined; - }; - stageVariables?: { - [name: string]: string | undefined; - }; -} -export interface APIGatewayProxyEvent { - version: string; - httpMethod: string; - headers: Record; - multiValueHeaders?: { - [headerKey: string]: string[]; - }; - path: string; - body: string | null; - isBase64Encoded: boolean; - queryStringParameters?: Record; - requestContext: ApiGatewayRequestContext; - resource: string; - multiValueQueryStringParameters?: { - [parameterKey: string]: string[]; - }; - pathParameters?: Record; - stageVariables?: Record; -} -export interface ALBProxyEvent { - httpMethod: string; - headers?: Record; - multiValueHeaders?: Record; - path: string; - body: string | null; - isBase64Encoded: boolean; - queryStringParameters?: Record; - multiValueQueryStringParameters?: { - [parameterKey: string]: string[]; - }; - requestContext: ALBRequestContext; -} -type WithHeaders = { - headers: Record; - multiValueHeaders?: undefined; -}; -type WithMultiValueHeaders = { - headers?: undefined; - multiValueHeaders: Record; -}; -export type APIGatewayProxyResult = { - statusCode: number; - statusDescription?: string; - body: string; - cookies?: string[]; - isBase64Encoded: boolean; -} & (WithHeaders | WithMultiValueHeaders); -export declare const streamHandle: (app: Hono) => Handler; -type HandleOptions = { - isContentTypeBinary: ((contentType: string) => boolean) | undefined; -}; -/** - * Converts a Hono application to an AWS Lambda handler. - * - * Accepts events from API Gateway (v1 and v2), Application Load Balancer (ALB), - * and Lambda Function URLs. - * - * @param app - The Hono application instance - * @param options - Optional configuration - * @param options.isContentTypeBinary - A function to determine if the content type is binary. - * If not provided, the default function will be used. - * @returns Lambda handler function - * - * @example - * ```js - * import { Hono } from 'hono' - * import { handle } from 'hono/aws-lambda' - * - * const app = new Hono() - * - * app.get('/', (c) => c.text('Hello from Lambda')) - * app.get('/json', (c) => c.json({ message: 'Hello JSON' })) - * - * export const handler = handle(app) - * ``` - * - * @example - * ```js - * // With custom binary content type detection - * import { handle, defaultIsContentTypeBinary } from 'hono/aws-lambda' - * export const handler = handle(app, { - * isContentTypeBinary: (contentType) => { - * if (defaultIsContentTypeBinary(contentType)) { - * // default logic same as prior to v4.8.4 - * return true - * } - * return contentType.startsWith('image/') || contentType === 'application/pdf' - * } - * }) - * ``` - */ -export declare const handle: (app: Hono, { isContentTypeBinary }?: HandleOptions) => ((event: L, lambdaContext?: LambdaContext) => Promise; -} ? WithMultiValueHeaders : WithHeaders)>); -export declare abstract class EventProcessor { - protected abstract getPath(event: E): string; - protected abstract getMethod(event: E): string; - protected abstract getQueryString(event: E): string; - protected abstract getHeaders(event: E): Headers; - protected abstract getCookies(event: E, headers: Headers): void; - protected abstract setCookiesToResult(result: APIGatewayProxyResult, cookies: string[]): void; - protected getHeaderValue(headers: E['headers'], key: string): string | undefined; - protected getDomainName(event: E): string | undefined; - createRequest(event: E): Request; - createResult(event: E, res: Response, options: Pick): Promise; - setCookies(event: E, res: Response, result: APIGatewayProxyResult): void; -} -export declare class EventV2Processor extends EventProcessor { - protected getPath(event: APIGatewayProxyEventV2): string; - protected getMethod(event: APIGatewayProxyEventV2): string; - protected getQueryString(event: APIGatewayProxyEventV2): string; - protected getCookies(event: APIGatewayProxyEventV2, headers: Headers): void; - protected setCookiesToResult(result: APIGatewayProxyResult, cookies: string[]): void; - protected getHeaders(event: APIGatewayProxyEventV2): Headers; -} -export declare class EventV1Processor extends EventProcessor { - protected getPath(event: APIGatewayProxyEvent): string; - protected getMethod(event: APIGatewayProxyEvent): string; - protected getQueryString(event: APIGatewayProxyEvent): string; - protected getCookies(event: APIGatewayProxyEvent, headers: Headers): void; - protected getHeaders(event: APIGatewayProxyEvent): Headers; - protected setCookiesToResult(result: APIGatewayProxyResult, cookies: string[]): void; -} -export declare class ALBProcessor extends EventProcessor { - protected getHeaders(event: ALBProxyEvent): Headers; - protected getPath(event: ALBProxyEvent): string; - protected getMethod(event: ALBProxyEvent): string; - protected getQueryString(event: ALBProxyEvent): string; - protected getCookies(event: ALBProxyEvent, headers: Headers): void; - protected setCookiesToResult(result: APIGatewayProxyResult, cookies: string[]): void; -} -export declare class LatticeV2Processor extends EventProcessor { - protected getPath(event: LatticeProxyEventV2): string; - protected getMethod(event: LatticeProxyEventV2): string; - protected getQueryString(): string; - protected getHeaders(event: LatticeProxyEventV2): Headers; - protected getCookies(): void; - protected setCookiesToResult(result: APIGatewayProxyResult, cookies: string[]): void; -} -export declare const getProcessor: (event: LambdaEvent) => EventProcessor; -/** - * Check if the given content type is binary. - * This is a default function and may be overwritten by the user via `isContentTypeBinary` option in handler(). - * @param contentType The content type to check. - * @returns True if the content type is binary, false otherwise. - */ -export declare const defaultIsContentTypeBinary: (contentType: string) => boolean; -export declare const isContentEncodingBinary: (contentEncoding: string | null) => boolean; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts deleted file mode 100644 index 5a43c2c..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * AWS Lambda Adapter for Hono. - */ -export { handle, streamHandle, defaultIsContentTypeBinary } from './handler'; -export type { APIGatewayProxyResult, LambdaEvent } from './handler'; -export type { ApiGatewayRequestContext, ApiGatewayRequestContextV2, ALBRequestContext, LambdaContext, } from './types'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts deleted file mode 100644 index 22bb1c1..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +++ /dev/null @@ -1,144 +0,0 @@ -export interface CognitoIdentity { - cognitoIdentityId: string; - cognitoIdentityPoolId: string; -} -export interface ClientContext { - client: ClientContextClient; - Custom?: any; - env: ClientContextEnv; -} -export interface ClientContextClient { - installationId: string; - appTitle: string; - appVersionName: string; - appVersionCode: string; - appPackageName: string; -} -export interface ClientContextEnv { - platformVersion: string; - platform: string; - make: string; - model: string; - locale: string; -} -/** - * {@link Handler} context parameter. - * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}. - */ -export interface LambdaContext { - callbackWaitsForEmptyEventLoop: boolean; - functionName: string; - functionVersion: string; - invokedFunctionArn: string; - memoryLimitInMB: string; - awsRequestId: string; - logGroupName: string; - logStreamName: string; - identity?: CognitoIdentity | undefined; - clientContext?: ClientContext | undefined; - getRemainingTimeInMillis(): number; -} -type Callback = (error?: Error | string | null, result?: TResult) => void; -export type Handler = (event: TEvent, context: LambdaContext, callback: Callback) => void | Promise; -interface ClientCert { - clientCertPem: string; - subjectDN: string; - issuerDN: string; - serialNumber: string; - validity: { - notBefore: string; - notAfter: string; - }; -} -interface Identity { - accessKey?: string; - accountId?: string; - caller?: string; - cognitoAuthenticationProvider?: string; - cognitoAuthenticationType?: string; - cognitoIdentityId?: string; - cognitoIdentityPoolId?: string; - principalOrgId?: string; - sourceIp: string; - user?: string; - userAgent: string; - userArn?: string; - clientCert?: ClientCert; -} -export interface ApiGatewayRequestContext { - accountId: string; - apiId: string; - authorizer: { - claims?: unknown; - scopes?: unknown; - }; - domainName: string; - domainPrefix: string; - extendedRequestId: string; - httpMethod: string; - identity: Identity; - path: string; - protocol: string; - requestId: string; - requestTime: string; - requestTimeEpoch: number; - resourceId?: string; - resourcePath: string; - stage: string; -} -interface Authorizer { - iam?: { - accessKey: string; - accountId: string; - callerId: string; - cognitoIdentity: null; - principalOrgId: null; - userArn: string; - userId: string; - }; -} -export interface ApiGatewayRequestContextV2 { - accountId: string; - apiId: string; - authentication: null; - authorizer: Authorizer; - domainName: string; - domainPrefix: string; - http: { - method: string; - path: string; - protocol: string; - sourceIp: string; - userAgent: string; - }; - requestId: string; - routeKey: string; - stage: string; - time: string; - timeEpoch: number; -} -export interface ALBRequestContext { - elb: { - targetGroupArn: string; - }; -} -export interface LatticeRequestContextV2 { - serviceNetworkArn: string; - serviceArn: string; - targetGroupArn: string; - region: string; - timeEpoch: string; - identity: { - sourceVpcArn?: string; - type?: string; - principal?: string; - principalOrgID?: string; - sessionName?: string; - x509IssuerOu?: string; - x509SanDns?: string; - x509SanNameCn?: string; - x509SanUri?: string; - x509SubjectCn?: string; - }; -} -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts deleted file mode 100644 index 1a7cf11..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { GetConnInfo } from '../../helper/conninfo'; -/** - * Get ConnInfo with Bun - * @param c Context - * @returns ConnInfo - */ -export declare const getConnInfo: GetConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/index.d.ts deleted file mode 100644 index 39cd249..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @module - * Bun Adapter for Hono. - */ -export { serveStatic } from './serve-static'; -export { bunFileSystemModule, toSSG } from './ssg'; -export { createBunWebSocket, upgradeWebSocket, websocket } from './websocket'; -export type { BunWebSocketData, BunWebSocketHandler } from './websocket'; -export { getConnInfo } from './conninfo'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts deleted file mode 100644 index e79742d..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ServeStaticOptions } from '../../middleware/serve-static'; -import type { Env, MiddlewareHandler } from '../../types'; -export declare const serveStatic: (options: ServeStaticOptions) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/server.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/server.d.ts deleted file mode 100644 index a6f7f0b..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/server.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Getting Bun Server Object for Bun adapters - * @module - */ -import type { Context } from '../../context'; -/** - * Bun Server Object - */ -export interface BunServer { - requestIP?: (req: Request) => { - address: string; - family: string; - port: number; - } | null; - upgrade(req: Request, options?: { - data: T; - }): boolean; -} -/** - * Get Bun Server Object from Context - * @param c Context - * @returns Bun Server - */ -export declare const getBunServer: (c: Context) => BunServer | undefined; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/ssg.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/ssg.d.ts deleted file mode 100644 index 8db4e65..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { FileSystemModule, ToSSGAdaptorInterface } from '../../helper/ssg'; -/** - * @experimental - * `bunFileSystemModule` is an experimental feature. - * The API might be changed. - */ -export declare const bunFileSystemModule: FileSystemModule; -/** - * @experimental - * `toSSG` is an experimental feature. - * The API might be changed. - */ -export declare const toSSG: ToSSGAdaptorInterface; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/bun/websocket.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/bun/websocket.d.ts deleted file mode 100644 index 2fff433..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { UpgradeWebSocket, WSEvents } from '../../helper/websocket'; -import { WSContext } from '../../helper/websocket'; -/** - * @internal - */ -export interface BunServerWebSocket { - send(data: string | ArrayBuffer | Uint8Array, compress?: boolean): void; - close(code?: number, reason?: string): void; - data: T; - readyState: 0 | 1 | 2 | 3; -} -export interface BunWebSocketHandler { - open(ws: BunServerWebSocket): void; - close(ws: BunServerWebSocket, code?: number, reason?: string): void; - message(ws: BunServerWebSocket, message: string | { - buffer: ArrayBufferLike; - }): void; -} -interface CreateWebSocket { - upgradeWebSocket: UpgradeWebSocket; - websocket: BunWebSocketHandler; -} -export interface BunWebSocketData { - events: WSEvents; - url: URL; - protocol: string; -} -/** - * @internal - */ -export declare const createWSContext: (ws: BunServerWebSocket) => WSContext; -export declare const upgradeWebSocket: UpgradeWebSocket; -export declare const websocket: BunWebSocketHandler; -/** - * @deprecated Import `createWebSocket` and `websocket` directly from `hono/bun` instead. - * @returns A function to create a Bun WebSocket handler. - */ -export declare const createBunWebSocket: () => CreateWebSocket; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts deleted file mode 100644 index c78b00e..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { Hono } from '../../hono'; -import type { BlankSchema, Env, Input, MiddlewareHandler, Schema } from '../../types'; -type Params

= Record; -export type EventContext> = { - request: Request; - functionPath: string; - waitUntil: (promise: Promise) => void; - passThroughOnException: () => void; - props: any; - next: (input?: Request | string, init?: RequestInit) => Promise; - env: Env & { - ASSETS: { - fetch: typeof fetch; - }; - }; - params: Params

; - data: Data; -}; -declare type PagesFunction = Record> = (context: EventContext) => Response | Promise; -export declare const handle: (app: Hono) => PagesFunction; -export declare function handleMiddleware(middleware: MiddlewareHandler): PagesFunction; -/** - * - * @description `serveStatic()` is for advanced mode: - * https://developers.cloudflare.com/pages/platform/functions/advanced-mode/#set-up-a-function - * - */ -export declare const serveStatic: () => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts deleted file mode 100644 index 4a7ff17..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * Cloudflare Pages Adapter for Hono. - */ -export { handle, handleMiddleware, serveStatic } from './handler'; -export type { EventContext } from './handler'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts deleted file mode 100644 index da71f88..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { GetConnInfo } from '../../helper/conninfo'; -export declare const getConnInfo: GetConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts deleted file mode 100644 index c2ca01b..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * Cloudflare Workers Adapter for Hono. - */ -export { serveStatic } from './serve-static-module'; -export { upgradeWebSocket } from './websocket'; -export { getConnInfo } from './conninfo'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts deleted file mode 100644 index 59fbd2a..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Env, MiddlewareHandler } from '../../types'; -import type { ServeStaticOptions } from './serve-static'; -declare const module: (options: Omit, "namespace">) => MiddlewareHandler; -export { module as serveStatic }; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts deleted file mode 100644 index a8d166d..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ServeStaticOptions as BaseServeStaticOptions } from '../../middleware/serve-static'; -import type { Env, MiddlewareHandler } from '../../types'; -export type ServeStaticOptions = BaseServeStaticOptions & { - namespace?: unknown; - manifest: object | string; -}; -/** - * @deprecated - * `serveStatic` in the Cloudflare Workers adapter is deprecated. - * You can serve static files directly using Cloudflare Static Assets. - * @see https://developers.cloudflare.com/workers/static-assets/ - * Cloudflare Static Assets is currently in open beta. If this doesn't work for you, - * please consider using Cloudflare Pages. You can start to create the Cloudflare Pages - * application with the `npm create hono@latest` command. - */ -export declare const serveStatic: (options: ServeStaticOptions) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts deleted file mode 100644 index d406c18..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type KVAssetOptions = { - manifest?: object | string; - namespace?: unknown; -}; -export declare const getContentFromKVAsset: (path: string, options?: KVAssetOptions) => Promise; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts deleted file mode 100644 index be35674..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { UpgradeWebSocket, WSEvents } from '../../helper/websocket'; -export declare const upgradeWebSocket: UpgradeWebSocket, 'onOpen'>>; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts deleted file mode 100644 index d274def..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { GetConnInfo } from '../../helper/conninfo'; -/** - * Get conninfo with Deno - * @param c Context - * @returns ConnInfo - */ -export declare const getConnInfo: GetConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/deno/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/deno/index.d.ts deleted file mode 100644 index d360f6d..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/deno/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * Deno Adapter for Hono. - */ -export { serveStatic } from './serve-static'; -export { toSSG, denoFileSystemModule } from './ssg'; -export { upgradeWebSocket } from './websocket'; -export { getConnInfo } from './conninfo'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts deleted file mode 100644 index e79742d..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ServeStaticOptions } from '../../middleware/serve-static'; -import type { Env, MiddlewareHandler } from '../../types'; -export declare const serveStatic: (options: ServeStaticOptions) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/deno/ssg.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/deno/ssg.d.ts deleted file mode 100644 index 293e1f9..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { FileSystemModule, ToSSGAdaptorInterface } from '../../helper/ssg/index'; -/** - * @experimental - * `denoFileSystemModule` is an experimental feature. - * The API might be changed. - */ -export declare const denoFileSystemModule: FileSystemModule; -/** - * @experimental - * `toSSG` is an experimental feature. - * The API might be changed. - */ -export declare const toSSG: ToSSGAdaptorInterface; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/deno/websocket.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/deno/websocket.d.ts deleted file mode 100644 index f391ccb..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { UpgradeWebSocket } from '../../helper/websocket'; -export declare const upgradeWebSocket: UpgradeWebSocket; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts deleted file mode 100644 index da71f88..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { GetConnInfo } from '../../helper/conninfo'; -export declare const getConnInfo: GetConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts deleted file mode 100644 index 67800f8..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import type { Hono } from '../../hono'; -interface CloudFrontHeader { - key: string; - value: string; -} -interface CloudFrontHeaders { - [name: string]: CloudFrontHeader[]; -} -interface CloudFrontCustomOrigin { - customHeaders: CloudFrontHeaders; - domainName: string; - keepaliveTimeout: number; - path: string; - port: number; - protocol: string; - readTimeout: number; - sslProtocols: string[]; -} -interface CloudFrontS3Origin { - authMethod: 'origin-access-identity' | 'none'; - customHeaders: CloudFrontHeaders; - domainName: string; - path: string; - region: string; -} -type CloudFrontOrigin = { - s3: CloudFrontS3Origin; - custom?: never; -} | { - custom: CloudFrontCustomOrigin; - s3?: never; -}; -export interface CloudFrontRequest { - clientIp: string; - headers: CloudFrontHeaders; - method: string; - querystring: string; - uri: string; - body?: { - inputTruncated: boolean; - action: string; - encoding: string; - data: string; - }; - origin?: CloudFrontOrigin; -} -export interface CloudFrontResponse { - headers: CloudFrontHeaders; - status: string; - statusDescription?: string; -} -export interface CloudFrontConfig { - distributionDomainName: string; - distributionId: string; - eventType: string; - requestId: string; -} -interface CloudFrontEvent { - cf: { - config: CloudFrontConfig; - request: CloudFrontRequest; - response?: CloudFrontResponse; - }; -} -export interface CloudFrontEdgeEvent { - Records: CloudFrontEvent[]; -} -type CloudFrontContext = {}; -export interface Callback { - (err: Error | null, result?: CloudFrontRequest | CloudFrontResult): void; -} -interface CloudFrontResult { - status: string; - statusDescription?: string; - headers?: { - [header: string]: { - key: string; - value: string; - }[]; - }; - body?: string; - bodyEncoding?: 'text' | 'base64'; -} -export declare const handle: (app: Hono) => ((event: CloudFrontEdgeEvent, context?: CloudFrontContext, callback?: Callback) => Promise); -export declare const createBody: (method: string, requestBody: CloudFrontRequest["body"]) => string | Uint8Array | undefined; -export declare const isContentTypeBinary: (contentType: string) => boolean; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts deleted file mode 100644 index 8889c41..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * Lambda@Edge Adapter for Hono. - */ -export { handle } from './handler'; -export { getConnInfo } from './conninfo'; -export type { Callback, CloudFrontConfig, CloudFrontRequest, CloudFrontResponse, CloudFrontEdgeEvent, } from './handler'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/netlify/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/netlify/handler.d.ts deleted file mode 100644 index 6f49216..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { Hono } from '../../hono'; -export declare const handle: (app: Hono) => ((req: Request, context: any) => Response | Promise); diff --git a/mcp-server/node_modules/hono/dist/types/adapter/netlify/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/netlify/index.d.ts deleted file mode 100644 index cd2b35c..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/netlify/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * Netlify Adapter for Hono. - */ -export * from './mod'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/netlify/mod.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/netlify/mod.d.ts deleted file mode 100644 index a7583a3..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { handle } from './handler'; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts deleted file mode 100644 index b2c1c4f..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Handler for Service Worker - * @module - */ -import type { Hono } from '../../hono'; -import type { Env, Schema } from '../../types'; -import type { FetchEvent } from './types'; -type Handler = (evt: FetchEvent) => void; -export type HandleOptions = { - fetch?: typeof fetch; -}; -/** - * Adapter for Service Worker - */ -export declare const handle: (app: Hono, opts?: HandleOptions) => Handler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/service-worker/index.d.ts deleted file mode 100644 index a89b3c7..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Service Worker Adapter for Hono. - * @module - */ -import type { Hono } from '../../hono'; -import type { Env, Schema } from '../../types'; -import { handle } from './handler'; -import type { HandleOptions } from './handler'; -/** - * Registers a Hono app to handle fetch events in a service worker. - * This sets up `addEventListener('fetch', handle(app, options))` for the provided app. - * - * @param app - The Hono application instance - * @param options - Options for handling requests (fetch defaults to undefined) - * @example - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * - * app.get('/', (c) => c.text('Hi')) - * - * fire(app) - * ``` - */ -declare const fire: (app: Hono, options?: HandleOptions) => void; -export { handle, fire }; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/types.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/service-worker/types.d.ts deleted file mode 100644 index 66298f4..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -interface ExtendableEvent extends Event { - waitUntil(f: Promise): void; -} -export interface FetchEvent extends ExtendableEvent { - readonly clientId: string; - readonly handled: Promise; - readonly preloadResponse: Promise; - readonly request: Request; - readonly resultingClientId: string; - respondWith(r: Response | PromiseLike): void; -} -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts deleted file mode 100644 index da71f88..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { GetConnInfo } from '../../helper/conninfo'; -export declare const getConnInfo: GetConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/vercel/handler.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/vercel/handler.d.ts deleted file mode 100644 index 73bb38d..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { Hono } from '../../hono'; -export declare const handle: (app: Hono) => (req: Request) => Response | Promise; diff --git a/mcp-server/node_modules/hono/dist/types/adapter/vercel/index.d.ts b/mcp-server/node_modules/hono/dist/types/adapter/vercel/index.d.ts deleted file mode 100644 index 8645b76..0000000 --- a/mcp-server/node_modules/hono/dist/types/adapter/vercel/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * Vercel Adapter for Hono. - */ -export { handle } from './handler'; -export { getConnInfo } from './conninfo'; diff --git a/mcp-server/node_modules/hono/dist/types/client/client.d.ts b/mcp-server/node_modules/hono/dist/types/client/client.d.ts deleted file mode 100644 index 9a161b6..0000000 --- a/mcp-server/node_modules/hono/dist/types/client/client.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { Hono } from '../hono'; -import type { UnionToIntersection } from '../utils/types'; -import type { Client, ClientRequestOptions } from './types'; -export declare const hc: , Prefix extends string = string>(baseUrl: Prefix, options?: ClientRequestOptions) => UnionToIntersection>; diff --git a/mcp-server/node_modules/hono/dist/types/client/fetch-result-please.d.ts b/mcp-server/node_modules/hono/dist/types/client/fetch-result-please.d.ts deleted file mode 100644 index f9558e0..0000000 --- a/mcp-server/node_modules/hono/dist/types/client/fetch-result-please.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * @description This file is a modified version of `fetch-result-please` (`ofetch`), minimalized and adapted to Hono's custom needs. - * - * @link https://www.npmjs.com/package/fetch-result-please - */ -/** - * Smartly parses and return the consumable result from a fetch `Response`. - * - * Throwing a structured error if the response is not `ok`. ({@link DetailedError}) - */ -export declare function fetchRP(fetchRes: Response | Promise): Promise; -export declare class DetailedError extends Error { - /** - * Additional `message` that will be logged AND returned to client - */ - detail?: any; - /** - * Additional `code` that will be logged AND returned to client - */ - code?: any; - /** - * Additional value that will be logged AND NOT returned to client - */ - log?: any; - /** - * Optionally set the status code to return, in a web server context - */ - statusCode?: any; - constructor(message: string, options?: { - detail?: any; - code?: any; - statusCode?: number; - log?: any; - }); -} diff --git a/mcp-server/node_modules/hono/dist/types/client/index.d.ts b/mcp-server/node_modules/hono/dist/types/client/index.d.ts deleted file mode 100644 index 7530b6c..0000000 --- a/mcp-server/node_modules/hono/dist/types/client/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * The HTTP Client for Hono. - */ -export { hc } from './client'; -export { parseResponse, DetailedError } from './utils'; -export type { InferResponseType, InferRequestType, Fetch, ClientRequestOptions, ClientRequest, ClientResponse, } from './types'; diff --git a/mcp-server/node_modules/hono/dist/types/client/types.d.ts b/mcp-server/node_modules/hono/dist/types/client/types.d.ts deleted file mode 100644 index d230e9b..0000000 --- a/mcp-server/node_modules/hono/dist/types/client/types.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import type { Hono } from '../hono'; -import type { HonoBase } from '../hono-base'; -import type { Endpoint, ResponseFormat, Schema } from '../types'; -import type { StatusCode, SuccessStatusCode } from '../utils/http-status'; -import type { HasRequiredKeys } from '../utils/types'; -type HonoRequest = (typeof Hono.prototype)['request']; -export type BuildSearchParamsFn = (query: Record) => URLSearchParams; -export type ClientRequestOptions = { - fetch?: typeof fetch | HonoRequest; - webSocket?: (...args: ConstructorParameters) => WebSocket; - /** - * Standard `RequestInit`, caution that this take highest priority - * and could be used to overwrite things that Hono sets for you, like `body | method | headers`. - * - * If you want to add some headers, use in `headers` instead of `init` - */ - init?: RequestInit; - /** - * Custom function to serialize query parameters into URLSearchParams. - * By default, arrays are serialized as multiple parameters with the same key (e.g., `key=a&key=b`). - * You can provide a custom function to change this behavior, for example to use bracket notation (e.g., `key[]=a&key[]=b`). - * - * @example - * ```ts - * const client = hc('http://localhost', { - * buildSearchParams: (query) => { - * return new URLSearchParams(qs.stringify(query)) - * } - * }) - * ``` - */ - buildSearchParams?: BuildSearchParamsFn; -} & (keyof T extends never ? { - headers?: Record | (() => Record | Promise>); -} : { - headers: T | (() => T | Promise); -}); -export type ClientRequest = { - [M in keyof S]: S[M] extends Endpoint & { - input: infer R; - } ? R extends object ? HasRequiredKeys extends true ? (args: R, options?: ClientRequestOptions) => Promise> : (args?: R, options?: ClientRequestOptions) => Promise> : never : never; -} & { - $url: (arg?: Arg) => HonoURL; -} & (S['$get'] extends { - outputFormat: 'ws'; -} ? S['$get'] extends { - input: infer I; -} ? { - $ws: (args?: I) => WebSocket; -} : {} : {}); -type ClientResponseOfEndpoint = T extends { - output: infer O; - outputFormat: infer F; - status: infer S; -} ? ClientResponse : never; -export interface ClientResponse extends globalThis.Response { - readonly body: ReadableStream | null; - readonly bodyUsed: boolean; - ok: U extends SuccessStatusCode ? true : U extends Exclude ? false : boolean; - status: U; - statusText: string; - headers: Headers; - url: string; - redirect(url: string, status: number): Response; - clone(): Response; - json(): F extends 'text' ? Promise : F extends 'json' ? Promise : Promise; - text(): F extends 'text' ? (T extends string ? Promise : Promise) : Promise; - blob(): Promise; - formData(): Promise; - arrayBuffer(): Promise; -} -type BuildSearch = Arg extends { - [K in Key]: infer Query; -} ? IsEmptyObject extends true ? '' : `?${string}` : ''; -type BuildPathname

= Arg extends { - param: infer Param; -} ? `${ApplyParam, Param>}` : `/${TrimStartSlash

}`; -type BuildTypedURL = TypedURL<`${Protocol}:`, Host, Port, BuildPathname, BuildSearch>; -type HonoURL = IsLiteral extends true ? TrimEndSlash extends `${infer Protocol}://${infer Rest}` ? Rest extends `${infer Hostname}/${infer P}` ? ParseHostName extends [infer Host extends string, infer Port extends string] ? BuildTypedURL : never : ParseHostName extends [infer Host extends string, infer Port extends string] ? BuildTypedURL : never : URL : URL; -type ParseHostName = T extends `${infer Host}:${infer Port}` ? [Host, Port] : [T, '']; -type TrimStartSlash = T extends `/${infer R}` ? TrimStartSlash : T; -type TrimEndSlash = T extends `${infer R}/` ? TrimEndSlash : T; -type IsLiteral = [T] extends [never] ? false : string extends T ? false : true; -type ApplyParam = Path extends `${infer Head}/${infer Rest}` ? Head extends `:${infer Param}` ? P extends Record ? IsLiteral extends true ? ApplyParam : ApplyParam : ApplyParam : ApplyParam : Path extends `:${infer Param}` ? P extends Record ? IsLiteral extends true ? `${Result}/${Value & string}` : `${Result}/${Path}` : `${Result}/${Path}` : `${Result}/${Path}`; -type IsEmptyObject = keyof T extends never ? true : false; -export interface TypedURL extends URL { - protocol: Protocol; - hostname: Hostname; - port: Port; - host: Port extends '' ? Hostname : `${Hostname}:${Port}`; - origin: `${Protocol}//${Hostname}${Port extends '' ? '' : `:${Port}`}`; - pathname: Pathname; - search: Search; - href: `${Protocol}//${Hostname}${Port extends '' ? '' : `:${Port}`}${Pathname}${Search}`; -} -export interface Response extends ClientResponse { -} -export type Fetch = (args?: InferRequestType, opt?: ClientRequestOptions) => Promise>>; -type InferEndpointType = T extends (args: infer R, options: any | undefined) => Promise ? U extends ClientResponse ? { - input: NonNullable; - output: O; - outputFormat: F; - status: S; -} extends Endpoint ? { - input: NonNullable; - output: O; - outputFormat: F; - status: S; -} : never : never : never; -export type InferResponseType = InferResponseTypeFromEndpoint, U>; -type InferResponseTypeFromEndpoint = T extends { - output: infer O; - status: infer S; -} ? S extends U ? O : never : never; -export type InferRequestType = T extends (args: infer R, options: any | undefined) => Promise> ? NonNullable : never; -export type InferRequestOptionsType = T extends (args: any, options: infer R) => Promise> ? NonNullable : never; -/** - * Filter a ClientResponse type so it only includes responses of specific status codes. - */ -export type FilterClientResponseByStatusCode, U extends number = StatusCode> = T extends ClientResponse ? RC extends U ? ClientResponse : never : never; -type PathToChain = Path extends `/${infer P}` ? PathToChain : Path extends `${infer P}/${infer R}` ? { - [K in P]: PathToChain; -} : { - [K in Path extends '' ? 'index' : Path]: ClientRequest ? E[Original] : never>; -}; -export type Client = T extends HonoBase ? S extends Record ? K extends string ? PathToChain : never : never : never; -export type Callback = (opts: CallbackOptions) => unknown; -interface CallbackOptions { - path: string[]; - args: any[]; -} -export type ObjectType = { - [key: string]: T; -}; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/client/utils.d.ts b/mcp-server/node_modules/hono/dist/types/client/utils.d.ts deleted file mode 100644 index 496020b..0000000 --- a/mcp-server/node_modules/hono/dist/types/client/utils.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { ClientErrorStatusCode, ContentfulStatusCode, ServerErrorStatusCode } from '../utils/http-status'; -import { DetailedError } from './fetch-result-please'; -import type { ClientResponse, FilterClientResponseByStatusCode } from './types'; -export { DetailedError }; -export declare const mergePath: (base: string, path: string) => string; -export declare const replaceUrlParam: (urlString: string, params: Record) => string; -export declare const buildSearchParams: (query: Record) => URLSearchParams; -export declare const replaceUrlProtocol: (urlString: string, protocol: "ws" | "http") => string; -export declare const removeIndexString: (urlString: string) => string; -export declare function deepMerge(target: T, source: Record): T; -/** - * Shortcut to get a consumable response from `hc`'s fetch calls (Response), with types inference. - * - * Smartly parse the response data, throwing a structured error if the response is not `ok`. ({@link DetailedError}) - * - * @example const result = await parseResponse(client.posts.$get()) - */ -export declare function parseResponse>(fetchRes: T | Promise): Promise> extends never ? undefined : FilterClientResponseByStatusCode> extends ClientResponse ? RF extends 'json' ? RT : RT extends string ? RT : string : undefined>; diff --git a/mcp-server/node_modules/hono/dist/types/compose.d.ts b/mcp-server/node_modules/hono/dist/types/compose.d.ts deleted file mode 100644 index 937905e..0000000 --- a/mcp-server/node_modules/hono/dist/types/compose.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { Context } from './context'; -import type { Env, ErrorHandler, Next, NotFoundHandler } from './types'; -/** - * Compose middleware functions into a single function based on `koa-compose` package. - * - * @template E - The environment type. - * - * @param {[[Function, unknown], unknown][] | [[Function]][]} middleware - An array of middleware functions and their corresponding parameters. - * @param {ErrorHandler} [onError] - An optional error handler function. - * @param {NotFoundHandler} [onNotFound] - An optional not-found handler function. - * - * @returns {(context: Context, next?: Next) => Promise} - A composed middleware function. - */ -export declare const compose: (middleware: [[Function, unknown], unknown][] | [[Function]][], onError?: ErrorHandler, onNotFound?: NotFoundHandler) => ((context: Context, next?: Next) => Promise); diff --git a/mcp-server/node_modules/hono/dist/types/context.d.ts b/mcp-server/node_modules/hono/dist/types/context.d.ts deleted file mode 100644 index 6ad1223..0000000 --- a/mcp-server/node_modules/hono/dist/types/context.d.ts +++ /dev/null @@ -1,451 +0,0 @@ -import { HonoRequest } from './request'; -import type { Result } from './router'; -import type { Env, FetchEventLike, H, Input, NotFoundHandler, RouterRoute, TypedResponse } from './types'; -import type { ResponseHeader } from './utils/headers'; -import type { ContentfulStatusCode, RedirectStatusCode, StatusCode } from './utils/http-status'; -import type { BaseMime } from './utils/mime'; -import type { InvalidJSONValue, IsAny, JSONParsed, JSONValue } from './utils/types'; -type HeaderRecord = Record<'Content-Type', BaseMime> | Record | Record; -/** - * Data type can be a string, ArrayBuffer, Uint8Array (buffer), or ReadableStream. - */ -export type Data = string | ArrayBuffer | ReadableStream | Uint8Array; -/** - * Interface for the execution context in a web worker or similar environment. - */ -export interface ExecutionContext { - /** - * Extends the lifetime of the event callback until the promise is settled. - * - * @param promise - A promise to wait for. - */ - waitUntil(promise: Promise): void; - /** - * Allows the event to be passed through to subsequent event listeners. - */ - passThroughOnException(): void; - /** - * For compatibility with Wrangler 4.x. - */ - props: any; -} -/** - * Interface for context variable mapping. - */ -export interface ContextVariableMap { -} -/** - * Interface for context renderer. - */ -export interface ContextRenderer { -} -/** - * Interface representing a renderer for content. - * - * @interface DefaultRenderer - * @param {string | Promise} content - The content to be rendered, which can be either a string or a Promise resolving to a string. - * @returns {Response | Promise} - The response after rendering the content, which can be either a Response or a Promise resolving to a Response. - */ -interface DefaultRenderer { - (content: string | Promise): Response | Promise; -} -/** - * Renderer type which can either be a ContextRenderer or DefaultRenderer. - */ -export type Renderer = ContextRenderer extends Function ? ContextRenderer : DefaultRenderer; -/** - * Extracts the props for the renderer. - */ -export type PropsForRenderer = [...Required>] extends [unknown, infer Props] ? Props : unknown; -export type Layout> = (props: T) => any; -/** - * Interface for getting context variables. - * - * @template E - Environment type. - */ -interface Get { - (key: Key): E['Variables'][Key]; - (key: Key): ContextVariableMap[Key]; -} -/** - * Interface for setting context variables. - * - * @template E - Environment type. - */ -interface Set { - (key: Key, value: E['Variables'][Key]): void; - (key: Key, value: ContextVariableMap[Key]): void; -} -/** - * Interface for creating a new response. - */ -interface NewResponse { - (data: Data | null, status?: StatusCode, headers?: HeaderRecord): Response; - (data: Data | null, init?: ResponseOrInit): Response; -} -/** - * Interface for responding with a body. - */ -interface BodyRespond { - (data: T, status?: U, headers?: HeaderRecord): Response & TypedResponse; - (data: T, init?: ResponseOrInit): Response & TypedResponse; - (data: T, status?: U, headers?: HeaderRecord): Response & TypedResponse; - (data: T, init?: ResponseOrInit): Response & TypedResponse; -} -/** - * Interface for responding with text. - * - * @interface TextRespond - * @template T - The type of the text content. - * @template U - The type of the status code. - * - * @param {T} text - The text content to be included in the response. - * @param {U} [status] - An optional status code for the response. - * @param {HeaderRecord} [headers] - An optional record of headers to include in the response. - * - * @returns {Response & TypedResponse} - The response after rendering the text content, typed with the provided text and status code types. - */ -interface TextRespond { - (text: T, status?: U, headers?: HeaderRecord): Response & TypedResponse; - (text: T, init?: ResponseOrInit): Response & TypedResponse; -} -/** - * Interface for responding with JSON. - * - * @interface JSONRespond - * @template T - The type of the JSON value or simplified unknown type. - * @template U - The type of the status code. - * - * @param {T} object - The JSON object to be included in the response. - * @param {U} [status] - An optional status code for the response. - * @param {HeaderRecord} [headers] - An optional record of headers to include in the response. - * - * @returns {JSONRespondReturn} - The response after rendering the JSON object, typed with the provided object and status code types. - */ -interface JSONRespond { - (object: T, status?: U, headers?: HeaderRecord): JSONRespondReturn; - (object: T, init?: ResponseOrInit): JSONRespondReturn; -} -/** - * @template T - The type of the JSON value or simplified unknown type. - * @template U - The type of the status code. - * - * @returns {Response & TypedResponse, U, 'json'>} - The response after rendering the JSON object, typed with the provided object and status code types. - */ -type JSONRespondReturn = Response & TypedResponse, U, 'json'>; -/** - * Interface representing a function that responds with HTML content. - * - * @param html - The HTML content to respond with, which can be a string or a Promise that resolves to a string. - * @param status - (Optional) The HTTP status code for the response. - * @param headers - (Optional) A record of headers to include in the response. - * @param init - (Optional) The response initialization object. - * - * @returns A Response object or a Promise that resolves to a Response object. - */ -interface HTMLRespond { - >(html: T, status?: ContentfulStatusCode, headers?: HeaderRecord): T extends string ? Response : Promise; - >(html: T, init?: ResponseOrInit): T extends string ? Response : Promise; -} -/** - * Options for configuring the context. - * - * @template E - Environment type. - */ -type ContextOptions = { - /** - * Bindings for the environment. - */ - env: E['Bindings']; - /** - * Execution context for the request. - */ - executionCtx?: FetchEventLike | ExecutionContext | undefined; - /** - * Handler for not found responses. - */ - notFoundHandler?: NotFoundHandler; - matchResult?: Result<[H, RouterRoute]>; - path?: string; -}; -interface SetHeadersOptions { - append?: boolean; -} -interface SetHeaders { - (name: 'Content-Type', value?: BaseMime, options?: SetHeadersOptions): void; - (name: ResponseHeader, value?: string, options?: SetHeadersOptions): void; - (name: string, value?: string, options?: SetHeadersOptions): void; -} -type ResponseHeadersInit = [string, string][] | Record<'Content-Type', BaseMime> | Record | Record | Headers; -interface ResponseInit { - headers?: ResponseHeadersInit; - status?: T; - statusText?: string; -} -type ResponseOrInit = ResponseInit | Response; -export declare const TEXT_PLAIN = "text/plain; charset=UTF-8"; -export declare class Context { - - /** - * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers. - * - * @see {@link https://hono.dev/docs/api/context#env} - * - * @example - * ```ts - * // Environment object for Cloudflare Workers - * app.get('*', async c => { - * const counter = c.env.COUNTER - * }) - * ``` - */ - env: E['Bindings']; - finalized: boolean; - /** - * `.error` can get the error object from the middleware if the Handler throws an error. - * - * @see {@link https://hono.dev/docs/api/context#error} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * await next() - * if (c.error) { - * // do something... - * } - * }) - * ``` - */ - error: Error | undefined; - /** - * Creates an instance of the Context class. - * - * @param req - The Request object. - * @param options - Optional configuration options for the context. - */ - constructor(req: Request, options?: ContextOptions); - /** - * `.req` is the instance of {@link HonoRequest}. - */ - get req(): HonoRequest; - /** - * @see {@link https://hono.dev/docs/api/context#event} - * The FetchEvent associated with the current request. - * - * @throws Will throw an error if the context does not have a FetchEvent. - */ - get event(): FetchEventLike; - /** - * @see {@link https://hono.dev/docs/api/context#executionctx} - * The ExecutionContext associated with the current request. - * - * @throws Will throw an error if the context does not have an ExecutionContext. - */ - get executionCtx(): ExecutionContext; - /** - * @see {@link https://hono.dev/docs/api/context#res} - * The Response object for the current request. - */ - get res(): Response; - /** - * Sets the Response object for the current request. - * - * @param _res - The Response object to set. - */ - set res(_res: Response | undefined); - /** - * `.render()` can create a response within a layout. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```ts - * app.get('/', (c) => { - * return c.render('Hello!') - * }) - * ``` - */ - render: Renderer; - /** - * Sets the layout for the response. - * - * @param layout - The layout to set. - * @returns The layout function. - */ - setLayout: (layout: Layout) => Layout; - /** - * Gets the current layout for the response. - * - * @returns The current layout function. - */ - getLayout: () => Layout | undefined; - /** - * `.setRenderer()` can set the layout in the custom middleware. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```tsx - * app.use('*', async (c, next) => { - * c.setRenderer((content) => { - * return c.html( - * - * - *

{content}

- * - * - * ) - * }) - * await next() - * }) - * ``` - */ - setRenderer: (renderer: Renderer) => void; - /** - * `.header()` can set headers. - * - * @see {@link https://hono.dev/docs/api/context#header} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * - * return c.body('Thank you for coming') - * }) - * ``` - */ - header: SetHeaders; - status: (status: StatusCode) => void; - /** - * `.set()` can set the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * c.set('message', 'Hono is hot!!') - * await next() - * }) - * ``` - */ - set: Set extends true ? { - Variables: ContextVariableMap & Record; - } : E>; - /** - * `.get()` can use the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.get('/', (c) => { - * const message = c.get('message') - * return c.text(`The message is "${message}"`) - * }) - * ``` - */ - get: Get extends true ? { - Variables: ContextVariableMap & Record; - } : E>; - /** - * `.var` can access the value of a variable. - * - * @see {@link https://hono.dev/docs/api/context#var} - * - * @example - * ```ts - * const result = c.var.client.oneMethod() - * ``` - */ - get var(): Readonly extends true ? Record : E['Variables'])>; - newResponse: NewResponse; - /** - * `.body()` can return the HTTP response. - * You can set headers with `.header()` and set HTTP status code with `.status`. - * This can also be set in `.text()`, `.json()` and so on. - * - * @see {@link https://hono.dev/docs/api/context#body} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * // Set HTTP status code - * c.status(201) - * - * // Return the response body - * return c.body('Thank you for coming') - * }) - * ``` - */ - body: BodyRespond; - /** - * `.text()` can render text as `Content-Type:text/plain`. - * - * @see {@link https://hono.dev/docs/api/context#text} - * - * @example - * ```ts - * app.get('/say', (c) => { - * return c.text('Hello!') - * }) - * ``` - */ - text: TextRespond; - /** - * `.json()` can render JSON as `Content-Type:application/json`. - * - * @see {@link https://hono.dev/docs/api/context#json} - * - * @example - * ```ts - * app.get('/api', (c) => { - * return c.json({ message: 'Hello!' }) - * }) - * ``` - */ - json: JSONRespond; - html: HTMLRespond; - /** - * `.redirect()` can Redirect, default status code is 302. - * - * @see {@link https://hono.dev/docs/api/context#redirect} - * - * @example - * ```ts - * app.get('/redirect', (c) => { - * return c.redirect('/') - * }) - * app.get('/redirect-permanently', (c) => { - * return c.redirect('/', 301) - * }) - * ``` - */ - redirect: (location: string | URL, status?: T) => Response & TypedResponse; - /** - * `.notFound()` can return the Not Found Response. - * - * @see {@link https://hono.dev/docs/api/context#notfound} - * - * @example - * ```ts - * app.get('/notfound', (c) => { - * return c.notFound() - * }) - * ``` - */ - notFound: () => ReturnType; -} -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/accepts/accepts.d.ts b/mcp-server/node_modules/hono/dist/types/helper/accepts/accepts.d.ts deleted file mode 100644 index 55cbee1..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import type { Context } from '../../context'; -import type { AcceptHeader } from '../../utils/headers'; -export interface Accept { - type: string; - params: Record; - q: number; -} -export interface acceptsConfig { - header: AcceptHeader; - supports: string[]; - default: string; -} -export interface acceptsOptions extends acceptsConfig { - match?: (accepts: Accept[], config: acceptsConfig) => string; -} -export declare const defaultMatch: (accepts: Accept[], config: acceptsConfig) => string; -/** - * Match the accept header with the given options. - * @example - * ```ts - * app.get('/users', (c) => { - * const lang = accepts(c, { - * header: 'Accept-Language', - * supports: ['en', 'zh'], - * default: 'en', - * }) - * }) - * ``` - */ -export declare const accepts: (c: Context, options: acceptsOptions) => string; diff --git a/mcp-server/node_modules/hono/dist/types/helper/accepts/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/accepts/index.d.ts deleted file mode 100644 index 946d23e..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/accepts/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * Accepts Helper for Hono. - */ -export { accepts } from './accepts'; diff --git a/mcp-server/node_modules/hono/dist/types/helper/adapter/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/adapter/index.d.ts deleted file mode 100644 index 838391a..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/adapter/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module - * Adapter Helper for Hono. - */ -import type { Context } from '../../context'; -export type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'other'; -export declare const env: , C extends Context = Context<{ - Bindings: T; -}>>(c: T extends Record ? Context : C, runtime?: Runtime) => T & C["env"]; -export declare const knownUserAgents: Partial>; -export declare const getRuntimeKey: () => Runtime; -export declare const checkUserAgentEquals: (platform: string) => boolean; diff --git a/mcp-server/node_modules/hono/dist/types/helper/conninfo/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/conninfo/index.d.ts deleted file mode 100644 index 876fb1d..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/conninfo/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * ConnInfo Helper for Hono. - */ -export type { AddressType, NetAddrInfo, ConnInfo, GetConnInfo } from './types'; diff --git a/mcp-server/node_modules/hono/dist/types/helper/conninfo/types.d.ts b/mcp-server/node_modules/hono/dist/types/helper/conninfo/types.d.ts deleted file mode 100644 index 466af76..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/conninfo/types.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { Context } from '../../context'; -export type AddressType = 'IPv6' | 'IPv4' | undefined; -export type NetAddrInfo = { - /** - * Transport protocol type - */ - transport?: 'tcp' | 'udp'; - /** - * Transport port number - */ - port?: number; - address?: string; - addressType?: AddressType; -} & ({ - /** - * Host name such as IP Addr - */ - address: string; - /** - * Host name type - */ - addressType: AddressType; -} | {}); -/** - * HTTP Connection information - */ -export interface ConnInfo { - /** - * Remote information - */ - remote: NetAddrInfo; -} -/** - * Helper type - */ -export type GetConnInfo = (c: Context) => ConnInfo; diff --git a/mcp-server/node_modules/hono/dist/types/helper/cookie/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/cookie/index.d.ts deleted file mode 100644 index cc421b9..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/cookie/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @module - * Cookie Helper for Hono. - */ -import type { Context } from '../../context'; -import type { Cookie, CookieOptions, CookiePrefixOptions, SignedCookie } from '../../utils/cookie'; -interface GetCookie { - (c: Context, key: string): string | undefined; - (c: Context): Cookie; - (c: Context, key: string, prefixOptions?: CookiePrefixOptions): string | undefined; -} -interface GetSignedCookie { - (c: Context, secret: string | BufferSource, key: string): Promise; - (c: Context, secret: string | BufferSource): Promise; - (c: Context, secret: string | BufferSource, key: string, prefixOptions?: CookiePrefixOptions): Promise; -} -export declare const getCookie: GetCookie; -export declare const getSignedCookie: GetSignedCookie; -export declare const generateCookie: (name: string, value: string, opt?: CookieOptions) => string; -export declare const setCookie: (c: Context, name: string, value: string, opt?: CookieOptions) => void; -export declare const generateSignedCookie: (name: string, value: string, secret: string | BufferSource, opt?: CookieOptions) => Promise; -export declare const setSignedCookie: (c: Context, name: string, value: string, secret: string | BufferSource, opt?: CookieOptions) => Promise; -export declare const deleteCookie: (c: Context, name: string, opt?: CookieOptions) => string | undefined; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/css/common.d.ts b/mcp-server/node_modules/hono/dist/types/helper/css/common.d.ts deleted file mode 100644 index a71ff80..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/css/common.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export declare const PSEUDO_GLOBAL_SELECTOR = ":-hono-global"; -export declare const isPseudoGlobalSelectorRe: RegExp; -export declare const DEFAULT_STYLE_ID = "hono-css"; -export declare const SELECTOR: unique symbol; -export declare const CLASS_NAME: unique symbol; -export declare const STYLE_STRING: unique symbol; -export declare const SELECTORS: unique symbol; -export declare const EXTERNAL_CLASS_NAMES: unique symbol; -declare const CSS_ESCAPED: unique symbol; -export interface CssClassName { - [SELECTOR]: string; - [CLASS_NAME]: string; - [STYLE_STRING]: string; - [SELECTORS]: CssClassName[]; - [EXTERNAL_CLASS_NAMES]: string[]; -} -export declare const IS_CSS_ESCAPED: unique symbol; -interface CssEscapedString { - [CSS_ESCAPED]: string; -} -/** - * @experimental - * `rawCssString` is an experimental feature. - * The API might be changed. - */ -export declare const rawCssString: (value: string) => CssEscapedString; -export declare const minify: (css: string) => string; -type CssVariableBasicType = CssClassName | CssEscapedString | string | number | boolean | null | undefined; -type CssVariableAsyncType = Promise; -type CssVariableArrayType = (CssVariableBasicType | CssVariableAsyncType)[]; -export type CssVariableType = CssVariableBasicType | CssVariableAsyncType | CssVariableArrayType; -export declare const buildStyleString: (strings: TemplateStringsArray, values: CssVariableType[]) => [string, string, CssClassName[], string[]]; -export declare const cssCommon: (strings: TemplateStringsArray, values: CssVariableType[]) => CssClassName; -export declare const cxCommon: (args: (string | boolean | null | undefined | CssClassName)[]) => (string | boolean | null | undefined | CssClassName)[]; -export declare const keyframesCommon: (strings: TemplateStringsArray, ...values: CssVariableType[]) => CssClassName; -type ViewTransitionType = { - (strings: TemplateStringsArray, values: CssVariableType[]): CssClassName; - (content: CssClassName): CssClassName; - (): CssClassName; -}; -export declare const viewTransitionCommon: ViewTransitionType; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/css/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/css/index.d.ts deleted file mode 100644 index 9a74aae..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/css/index.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @module - * css Helper for Hono. - */ -import type { HtmlEscapedString } from '../../utils/html'; -import type { CssClassName as CssClassNameCommon, CssVariableType } from './common'; -export { rawCssString } from './common'; -type CssClassName = HtmlEscapedString & CssClassNameCommon; -interface CssType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): Promise; -} -interface CxType { - (...args: (CssClassName | Promise | string | boolean | null | undefined)[]): Promise; -} -interface KeyframesType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): CssClassNameCommon; -} -interface ViewTransitionType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): Promise; - (content: Promise): Promise; - (): Promise; -} -interface StyleType { - (args?: { - children?: Promise; - nonce?: string; - }): HtmlEscapedString; -} -/** - * @experimental - * `createCssContext` is an experimental feature. - * The API might be changed. - */ -export declare const createCssContext: ({ id }: { - id: Readonly; -}) => DefaultContextType; -interface DefaultContextType { - css: CssType; - cx: CxType; - keyframes: KeyframesType; - viewTransition: ViewTransitionType; - Style: StyleType; -} -/** - * @experimental - * `css` is an experimental feature. - * The API might be changed. - */ -export declare const css: CssType; -/** - * @experimental - * `cx` is an experimental feature. - * The API might be changed. - */ -export declare const cx: CxType; -/** - * @experimental - * `keyframes` is an experimental feature. - * The API might be changed. - */ -export declare const keyframes: KeyframesType; -/** - * @experimental - * `viewTransition` is an experimental feature. - * The API might be changed. - */ -export declare const viewTransition: ViewTransitionType; -/** - * @experimental - * `Style` is an experimental feature. - * The API might be changed. - */ -export declare const Style: StyleType; diff --git a/mcp-server/node_modules/hono/dist/types/helper/dev/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/dev/index.d.ts deleted file mode 100644 index 28eb408..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/dev/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @module - * Dev Helper for Hono. - */ -import type { Hono } from '../../hono'; -import type { Env } from '../../types'; -interface ShowRoutesOptions { - verbose?: boolean; - colorize?: boolean; -} -interface RouteData { - path: string; - method: string; - name: string; - isMiddleware: boolean; -} -export declare const inspectRoutes: (hono: Hono) => RouteData[]; -export declare const showRoutes: (hono: Hono, opts?: ShowRoutesOptions) => void; -export declare const getRouterName: (app: Hono) => string; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/factory/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/factory/index.d.ts deleted file mode 100644 index f14b48a..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/factory/index.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @module - * Factory Helper for Hono. - */ -import { Hono } from '../../hono'; -import type { HonoOptions } from '../../hono-base'; -import type { Env, H, HandlerResponse, Input, IntersectNonAnyTypes, MiddlewareHandler } from '../../types'; -type InitApp = (app: Hono) => void; -export interface CreateHandlersInterface { - = any, E2 extends Env = E>(handler1: H): [H]; - = any, R2 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(handler1: H, handler2: H): [H, H]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(handler1: H, handler2: H, handler3: H): [H, H, H]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(handler1: H, handler2: H, handler3: H, handler4: H): [H, H, H, H]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H): [H, H, H, H, H]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, R6 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H, handler6: H): [ - H, - H, - H, - H, - H, - H - ]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, R6 extends HandlerResponse = any, R7 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H, handler6: H, handler7: H): [ - H, - H, - H, - H, - H, - H, - H - ]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, R6 extends HandlerResponse = any, R7 extends HandlerResponse = any, R8 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H, handler6: H, handler7: H, handler8: H): [ - H, - H, - H, - H, - H, - H, - H, - H - ]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, R6 extends HandlerResponse = any, R7 extends HandlerResponse = any, R8 extends HandlerResponse = any, R9 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H, handler6: H, handler7: H, handler8: H, handler9: H): [ - H, - H, - H, - H, - H, - H, - H, - H, - H - ]; - = any, R2 extends HandlerResponse = any, R3 extends HandlerResponse = any, R4 extends HandlerResponse = any, R5 extends HandlerResponse = any, R6 extends HandlerResponse = any, R7 extends HandlerResponse = any, R8 extends HandlerResponse = any, R9 extends HandlerResponse = any, R10 extends HandlerResponse = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>>(handler1: H, handler2: H, handler3: H, handler4: H, handler5: H, handler6: H, handler7: H, handler8: H, handler9: H, handler10: H): [ - H, - H, - H, - H, - H, - H, - H, - H, - H, - H - ]; -} -export declare class Factory { - - private initApp?; - constructor(init?: { - initApp?: InitApp; - defaultAppOptions?: HonoOptions; - }); - createApp: (options?: HonoOptions) => Hono; - createMiddleware: | void = void>(middleware: MiddlewareHandler) => MiddlewareHandler; - createHandlers: CreateHandlersInterface; -} -export declare const createFactory: (init?: { - initApp?: InitApp; - defaultAppOptions?: HonoOptions; -}) => Factory; -export declare const createMiddleware: | void = void>(middleware: MiddlewareHandler) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/html/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/html/index.d.ts deleted file mode 100644 index ce17eac..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/html/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * html Helper for Hono. - */ -import { raw } from '../../utils/html'; -import type { HtmlEscapedString } from '../../utils/html'; -export { raw }; -export declare const html: (strings: TemplateStringsArray, ...values: unknown[]) => HtmlEscapedString | Promise; diff --git a/mcp-server/node_modules/hono/dist/types/helper/proxy/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/proxy/index.d.ts deleted file mode 100644 index 4a5b334..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/proxy/index.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @module - * Proxy Helper for Hono. - */ -import type { RequestHeader } from '../../utils/headers'; -interface ProxyRequestInit extends Omit { - raw?: Request; - headers?: HeadersInit | [string, string][] | Record | Record; - customFetch?: (request: Request) => Promise; - /** - * Enable strict RFC 9110 compliance for Connection header processing. - * - * - `false` (default): Ignores Connection header to prevent potential - * Hop-by-Hop Header Injection attacks. Recommended for untrusted clients. - * - `true`: Processes Connection header per RFC 9110 and removes listed headers. - * Only use in trusted environments. - * - * @default false - * @see https://datatracker.ietf.org/doc/html/rfc9110#section-7.6.1 - */ - strictConnectionProcessing?: boolean; -} -interface ProxyFetch { - (input: string | URL | Request, init?: ProxyRequestInit): Promise; -} -/** - * Fetch API wrapper for proxy. - * The parameters and return value are the same as for `fetch` (except for the proxy-specific options). - * - * The “Accept-Encoding” header is replaced with an encoding that the current runtime can handle. - * Unnecessary response headers are deleted and a Response object is returned that can be returned - * as is as a response from the handler. - * - * @example - * ```ts - * app.get('/proxy/:path', (c) => { - * return proxy(`http://${originServer}/${c.req.param('path')}`, { - * headers: { - * ...c.req.header(), // optional, specify only when forwarding all the request data (including credentials) is necessary. - * 'X-Forwarded-For': '127.0.0.1', - * 'X-Forwarded-Host': c.req.header('host'), - * Authorization: undefined, // do not propagate request headers contained in c.req.header('Authorization') - * }, - * }).then((res) => { - * res.headers.delete('Set-Cookie') - * return res - * }) - * }) - * - * app.all('/proxy/:path', (c) => { - * return proxy(`http://${originServer}/${c.req.param('path')}`, { - * ...c.req, // optional, specify only when forwarding all the request data (including credentials) is necessary. - * headers: { - * ...c.req.header(), - * 'X-Forwarded-For': '127.0.0.1', - * 'X-Forwarded-Host': c.req.header('host'), - * Authorization: undefined, // do not propagate request headers contained in c.req.header('Authorization') - * }, - * }) - * }) - * - * // Strict RFC compliance mode (use only in trusted environments) - * app.get('/internal-proxy/:path', (c) => { - * return proxy(`http://${internalServer}/${c.req.param('path')}`, { - * ...c.req, - * strictConnectionProcessing: true, - * }) - * }) - * ``` - */ -export declare const proxy: ProxyFetch; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/route/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/route/index.d.ts deleted file mode 100644 index f5af1e6..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/route/index.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type { Context } from '../../context'; -import type { RouterRoute } from '../../types'; -/** - * Get matched routes in the handler - * - * @param {Context} c - The context object - * @returns An array of matched routes - * - * @example - * ```ts - * import { matchedRoutes } from 'hono/route' - * - * app.use('*', async function logger(c, next) { - * await next() - * matchedRoutes(c).forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ -export declare const matchedRoutes: (c: Context) => RouterRoute[]; -/** - * Get the route path registered within the handler - * - * @param {Context} c - The context object - * @param {number} index - The index of the root from which to retrieve the path, similar to Array.prototype.at(), where a negative number is the index counted from the end of the matching root. Defaults to the current root index. - * @returns The route path registered within the handler - * - * @example - * ```ts - * import { routePath } from 'hono/route' - * - * app.use('*', (c, next) => { - * console.log(routePath(c)) // '*' - * console.log(routePath(c, -1)) // '/posts/:id' - * return next() - * }) - * - * app.get('/posts/:id', (c) => { - * return c.text(routePath(c)) // '/posts/:id' - * }) - * ``` - */ -export declare const routePath: (c: Context, index?: number) => string; -/** - * Get the basePath of the as-is route specified by routing. - * - * @param {Context} c - The context object - * @param {number} index - The index of the root from which to retrieve the path, similar to Array.prototype.at(), where a negative number is the index counted from the end of the matching root. Defaults to the current root index. - * @returns The basePath of the as-is route specified by routing. - * - * @example - * ```ts - * import { baseRoutePath } from 'hono/route' - * - * const app = new Hono() - * - * const subApp = new Hono() - * subApp.get('/posts/:id', (c) => { - * return c.text(baseRoutePath(c)) // '/:sub' - * }) - * - * app.route('/:sub', subApp) - * ``` - */ -export declare const baseRoutePath: (c: Context, index?: number) => string; -export declare const basePath: (c: Context, index?: number) => string; diff --git a/mcp-server/node_modules/hono/dist/types/helper/ssg/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/ssg/index.d.ts deleted file mode 100644 index 4e12417..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/ssg/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * SSG Helper for Hono. - */ -export * from './ssg'; -export { X_HONO_DISABLE_SSG_HEADER_KEY, ssgParams, isSSGContext, disableSSG, onlySSG, } from './middleware'; diff --git a/mcp-server/node_modules/hono/dist/types/helper/ssg/middleware.d.ts b/mcp-server/node_modules/hono/dist/types/helper/ssg/middleware.d.ts deleted file mode 100644 index 791ee40..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { Context } from '../../context'; -import type { Env, MiddlewareHandler } from '../../types'; -export declare const SSG_CONTEXT = "HONO_SSG_CONTEXT"; -export declare const X_HONO_DISABLE_SSG_HEADER_KEY = "x-hono-disable-ssg"; -/** - * @deprecated - * Use `X_HONO_DISABLE_SSG_HEADER_KEY` instead. - * This constant will be removed in the next minor version. - */ -export declare const SSG_DISABLED_RESPONSE: Response; -interface SSGParam { - [key: string]: string; -} -export type SSGParams = SSGParam[]; -interface SSGParamsMiddleware { - (generateParams: (c: Context) => SSGParams | Promise): MiddlewareHandler; - (params: SSGParams): MiddlewareHandler; -} -export type AddedSSGDataRequest = Request & { - ssgParams?: SSGParams; -}; -/** - * Define SSG Route - */ -export declare const ssgParams: SSGParamsMiddleware; -/** - * @experimental - * `isSSGContext` is an experimental feature. - * The API might be changed. - */ -export declare const isSSGContext: (c: Context) => boolean; -/** - * @experimental - * `disableSSG` is an experimental feature. - * The API might be changed. - */ -export declare const disableSSG: () => MiddlewareHandler; -/** - * @experimental - * `onlySSG` is an experimental feature. - * The API might be changed. - */ -export declare const onlySSG: () => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/ssg/ssg.d.ts b/mcp-server/node_modules/hono/dist/types/helper/ssg/ssg.d.ts deleted file mode 100644 index 026cde2..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import type { Hono } from '../../hono'; -import type { Env, Schema } from '../../types'; -export declare const DEFAULT_OUTPUT_DIR = "./static"; -/** - * @experimental - * `FileSystemModule` is an experimental feature. - * The API might be changed. - */ -export interface FileSystemModule { - writeFile(path: string, data: string | Uint8Array): Promise; - mkdir(path: string, options: { - recursive: boolean; - }): Promise; -} -/** - * @experimental - * `ToSSGResult` is an experimental feature. - * The API might be changed. - */ -export interface ToSSGResult { - success: boolean; - files: string[]; - error?: Error; -} -export declare const defaultExtensionMap: Record; -export type BeforeRequestHook = (req: Request) => Request | false | Promise; -export type AfterResponseHook = (res: Response) => Response | false | Promise; -export type AfterGenerateHook = (result: ToSSGResult, fsModule: FileSystemModule, options?: ToSSGOptions) => void | Promise; -export declare const combineBeforeRequestHooks: (hooks: BeforeRequestHook | BeforeRequestHook[]) => BeforeRequestHook; -export declare const combineAfterResponseHooks: (hooks: AfterResponseHook | AfterResponseHook[]) => AfterResponseHook; -export declare const combineAfterGenerateHooks: (hooks: AfterGenerateHook | AfterGenerateHook[], fsModule: FileSystemModule, options?: ToSSGOptions) => AfterGenerateHook; -export interface SSGPlugin { - beforeRequestHook?: BeforeRequestHook | BeforeRequestHook[]; - afterResponseHook?: AfterResponseHook | AfterResponseHook[]; - afterGenerateHook?: AfterGenerateHook | AfterGenerateHook[]; -} -export interface ToSSGOptions { - dir?: string; - /** - * @deprecated Use plugins[].beforeRequestHook instead. - */ - beforeRequestHook?: BeforeRequestHook | BeforeRequestHook[]; - /** - * @deprecated Use plugins[].afterResponseHook instead. - */ - afterResponseHook?: AfterResponseHook | AfterResponseHook[]; - /** - * @deprecated Use plugins[].afterGenerateHook instead. - */ - afterGenerateHook?: AfterGenerateHook | AfterGenerateHook[]; - concurrency?: number; - extensionMap?: Record; - plugins?: SSGPlugin[]; -} -/** - * @experimental - * `fetchRoutesContent` is an experimental feature. - * The API might be changed. - */ -export declare const fetchRoutesContent: (app: Hono, beforeRequestHook?: BeforeRequestHook, afterResponseHook?: AfterResponseHook, concurrency?: number) => Generator> | undefined>>; -export declare const saveContentToFile: (data: Promise<{ - routePath: string; - content: string | ArrayBuffer; - mimeType: string; -} | undefined>, fsModule: FileSystemModule, outDir: string, extensionMap?: Record) => Promise; -/** - * @experimental - * `ToSSGInterface` is an experimental feature. - * The API might be changed. - */ -export interface ToSSGInterface { - (app: Hono, fsModule: FileSystemModule, options?: ToSSGOptions): Promise; -} -/** - * @experimental - * `ToSSGAdaptorInterface` is an experimental feature. - * The API might be changed. - */ -export interface ToSSGAdaptorInterface { - (app: Hono, options?: ToSSGOptions): Promise; -} -/** - * The default plugin that defines the recommended behavior. - * - * @experimental - * `defaultPlugin` is an experimental feature. - * The API might be changed. - */ -export declare const defaultPlugin: SSGPlugin; -/** - * @experimental - * `toSSG` is an experimental feature. - * The API might be changed. - */ -export declare const toSSG: ToSSGInterface; diff --git a/mcp-server/node_modules/hono/dist/types/helper/ssg/utils.d.ts b/mcp-server/node_modules/hono/dist/types/helper/ssg/utils.d.ts deleted file mode 100644 index 9553bf4..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/ssg/utils.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Hono } from '../../hono'; -import type { Env } from '../../types'; -/** - * Get dirname - * @param path File Path - * @returns Parent dir path - */ -export declare const dirname: (path: string) => string; -export declare const joinPaths: (...paths: string[]) => string; -interface FilterStaticGenerateRouteData { - path: string; -} -export declare const filterStaticGenerateRoutes: (hono: Hono) => FilterStaticGenerateRouteData[]; -export declare const isDynamicRoute: (path: string) => boolean; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/streaming/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/streaming/index.d.ts deleted file mode 100644 index c89d67e..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/streaming/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * Streaming Helper for Hono. - */ -export { stream } from './stream'; -export type { SSEMessage } from './sse'; -export { streamSSE, SSEStreamingApi } from './sse'; -export { streamText } from './text'; diff --git a/mcp-server/node_modules/hono/dist/types/helper/streaming/sse.d.ts b/mcp-server/node_modules/hono/dist/types/helper/streaming/sse.d.ts deleted file mode 100644 index c4cf659..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/streaming/sse.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Context } from '../../context'; -import { StreamingApi } from '../../utils/stream'; -export interface SSEMessage { - data: string | Promise; - event?: string; - id?: string; - retry?: number; -} -export declare class SSEStreamingApi extends StreamingApi { - constructor(writable: WritableStream, readable: ReadableStream); - writeSSE(message: SSEMessage): Promise; -} -export declare const streamSSE: (c: Context, cb: (stream: SSEStreamingApi) => Promise, onError?: (e: Error, stream: SSEStreamingApi) => Promise) => Response; diff --git a/mcp-server/node_modules/hono/dist/types/helper/streaming/stream.d.ts b/mcp-server/node_modules/hono/dist/types/helper/streaming/stream.d.ts deleted file mode 100644 index 2c34ef8..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/streaming/stream.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Context } from '../../context'; -import { StreamingApi } from '../../utils/stream'; -export declare const stream: (c: Context, cb: (stream: StreamingApi) => Promise, onError?: (e: Error, stream: StreamingApi) => Promise) => Response; diff --git a/mcp-server/node_modules/hono/dist/types/helper/streaming/text.d.ts b/mcp-server/node_modules/hono/dist/types/helper/streaming/text.d.ts deleted file mode 100644 index 39934dc..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/streaming/text.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Context } from '../../context'; -import type { StreamingApi } from '../../utils/stream'; -export declare const streamText: (c: Context, cb: (stream: StreamingApi) => Promise, onError?: (e: Error, stream: StreamingApi) => Promise) => Response; diff --git a/mcp-server/node_modules/hono/dist/types/helper/streaming/utils.d.ts b/mcp-server/node_modules/hono/dist/types/helper/streaming/utils.d.ts deleted file mode 100644 index 8ae4c76..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/streaming/utils.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare let isOldBunVersion: () => boolean; diff --git a/mcp-server/node_modules/hono/dist/types/helper/testing/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/testing/index.d.ts deleted file mode 100644 index 208d310..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/testing/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module - * Testing Helper for Hono. - */ -import type { Client, ClientRequestOptions } from '../../client/types'; -import type { ExecutionContext } from '../../context'; -import type { Hono } from '../../hono'; -import type { Schema } from '../../types'; -import type { UnionToIntersection } from '../../utils/types'; -type ExtractEnv = T extends Hono ? E : never; -export declare const testClient: >(app: T, Env?: ExtractEnv["Bindings"] | {}, executionCtx?: ExecutionContext, options?: Omit) => UnionToIntersection>; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/helper/websocket/index.d.ts b/mcp-server/node_modules/hono/dist/types/helper/websocket/index.d.ts deleted file mode 100644 index 0d7ebbb..0000000 --- a/mcp-server/node_modules/hono/dist/types/helper/websocket/index.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * @module - * WebSocket Helper for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler, TypedResponse } from '../../types'; -import type { StatusCode } from '../../utils/http-status'; -/** - * WebSocket Event Listeners type - */ -export interface WSEvents { - onOpen?: (evt: Event, ws: WSContext) => void; - onMessage?: (evt: MessageEvent, ws: WSContext) => void; - onClose?: (evt: CloseEvent, ws: WSContext) => void; - onError?: (evt: Event, ws: WSContext) => void; -} -/** - * Upgrade WebSocket Type - */ -export interface UpgradeWebSocket> { - (createEvents: (c: Context) => _WSEvents | Promise<_WSEvents>, options?: U): MiddlewareHandler; - (c: Context, events: _WSEvents, options?: U): Promise>; -} -/** - * ReadyState for WebSocket - */ -export type WSReadyState = 0 | 1 | 2 | 3; -/** - * An argument for WSContext class - */ -export interface WSContextInit { - send(data: string | ArrayBuffer | Uint8Array, options: SendOptions): void; - close(code?: number, reason?: string): void; - raw?: T; - readyState: WSReadyState; - url?: string | URL | null; - protocol?: string | null; -} -/** - * Options for sending message - */ -export interface SendOptions { - compress?: boolean; -} -/** - * A context for controlling WebSockets - */ -export declare class WSContext { - - constructor(init: WSContextInit); - send(source: string | ArrayBuffer | Uint8Array, options?: SendOptions): void; - raw?: T; - binaryType: BinaryType; - get readyState(): WSReadyState; - url: URL | null; - protocol: string | null; - close(code?: number, reason?: string): void; -} -export type WSMessageReceive = string | Blob | ArrayBufferLike; -export declare const createWSMessageEvent: (source: WSMessageReceive) => MessageEvent; -export interface WebSocketHelperDefineContext { -} -export type WebSocketHelperDefineHandler = (c: Context, events: WSEvents, options?: U) => Promise | Response | void; -/** - * Create a WebSocket adapter/helper - */ -export declare const defineWebSocketHelper: (handler: WebSocketHelperDefineHandler) => UpgradeWebSocket; diff --git a/mcp-server/node_modules/hono/dist/types/hono-base.d.ts b/mcp-server/node_modules/hono/dist/types/hono-base.d.ts deleted file mode 100644 index 1f01271..0000000 --- a/mcp-server/node_modules/hono/dist/types/hono-base.d.ts +++ /dev/null @@ -1,220 +0,0 @@ -/** - * @module - * This module is the base module for the Hono object. - */ -import { Context } from './context'; -import type { ExecutionContext } from './context'; -import type { Router } from './router'; -import type { Env, ErrorHandler, H, HandlerInterface, MergePath, MergeSchemaPath, MiddlewareHandlerInterface, NotFoundHandler, OnHandlerInterface, RouterRoute, Schema } from './types'; -type GetPath = (request: Request, options?: { - env?: E['Bindings']; -}) => string; -export type HonoOptions = { - /** - * `strict` option specifies whether to distinguish whether the last path is a directory or not. - * - * @see {@link https://hono.dev/docs/api/hono#strict-mode} - * - * @default true - */ - strict?: boolean; - /** - * `router` option specifies which router to use. - * - * @see {@link https://hono.dev/docs/api/hono#router-option} - * - * @example - * ```ts - * const app = new Hono({ router: new RegExpRouter() }) - * ``` - */ - router?: Router<[H, RouterRoute]>; - /** - * `getPath` can handle the host header value. - * - * @see {@link https://hono.dev/docs/api/routing#routing-with-host-header-value} - * - * @example - * ```ts - * const app = new Hono({ - * getPath: (req) => - * '/' + req.headers.get('host') + req.url.replace(/^https?:\/\/[^/]+(\/[^?]*)/, '$1'), - * }) - * - * app.get('/www1.example.com/hello', () => c.text('hello www1')) - * - * // A following request will match the route: - * // new Request('http://www1.example.com/hello', { - * // headers: { host: 'www1.example.com' }, - * // }) - * ``` - */ - getPath?: GetPath; -}; -type MountOptionHandler = (c: Context) => unknown; -type MountReplaceRequest = (originalRequest: Request) => Request; -type MountOptions = MountOptionHandler | { - optionHandler?: MountOptionHandler; - replaceRequest?: MountReplaceRequest | false; -}; -declare class Hono { - - get: HandlerInterface; - post: HandlerInterface; - put: HandlerInterface; - delete: HandlerInterface; - options: HandlerInterface; - patch: HandlerInterface; - all: HandlerInterface; - on: OnHandlerInterface; - use: MiddlewareHandlerInterface; - router: Router<[H, RouterRoute]>; - readonly getPath: GetPath; - private _basePath; - routes: RouterRoute[]; - constructor(options?: HonoOptions); - private errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path: SubPath, app: Hono): Hono> | S, BasePath, CurrentPath>; - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path: SubPath): Hono, MergePath>; - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError: (handler: ErrorHandler) => Hono; - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound: (handler: NotFoundHandler) => Hono; - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path: string, applicationHandler: (request: Request, ...args: any) => Response | Promise, options?: MountOptions): Hono; - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch: (request: Request, Env?: E['Bindings'] | {}, executionCtx?: ExecutionContext) => Response | Promise; - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request: (input: RequestInfo | URL, requestInit?: RequestInit, Env?: E["Bindings"] | {}, executionCtx?: ExecutionContext) => Response | Promise; - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire: () => void; -} -export { Hono as HonoBase }; diff --git a/mcp-server/node_modules/hono/dist/types/hono.d.ts b/mcp-server/node_modules/hono/dist/types/hono.d.ts deleted file mode 100644 index caeb4dc..0000000 --- a/mcp-server/node_modules/hono/dist/types/hono.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { HonoBase } from './hono-base'; -import type { HonoOptions } from './hono-base'; -import type { BlankEnv, BlankSchema, Env, Schema } from './types'; -/** - * The Hono class extends the functionality of the HonoBase class. - * It sets up routing and allows for custom options to be passed. - * - * @template E - The environment type. - * @template S - The schema type. - * @template BasePath - The base path type. - */ -export declare class Hono extends HonoBase { - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options?: HonoOptions); -} diff --git a/mcp-server/node_modules/hono/dist/types/http-exception.d.ts b/mcp-server/node_modules/hono/dist/types/http-exception.d.ts deleted file mode 100644 index 8b90cca..0000000 --- a/mcp-server/node_modules/hono/dist/types/http-exception.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @module - * This module provides the `HTTPException` class. - */ -import type { ContentfulStatusCode } from './utils/http-status'; -/** - * Options for creating an `HTTPException`. - * @property res - Optional response object to use. - * @property message - Optional custom error message. - * @property cause - Optional cause of the error. - */ -type HTTPExceptionOptions = { - res?: Response; - message?: string; - cause?: unknown; -}; -/** - * `HTTPException` must be used when a fatal error such as authentication failure occurs. - * - * @see {@link https://hono.dev/docs/api/exception} - * - * @param {StatusCode} status - status code of HTTPException - * @param {HTTPExceptionOptions} options - options of HTTPException - * @param {HTTPExceptionOptions["res"]} options.res - response of options of HTTPException - * @param {HTTPExceptionOptions["message"]} options.message - message of options of HTTPException - * @param {HTTPExceptionOptions["cause"]} options.cause - cause of options of HTTPException - * - * @example - * ```ts - * import { HTTPException } from 'hono/http-exception' - * - * // ... - * - * app.post('/auth', async (c, next) => { - * // authentication - * if (authorized === false) { - * throw new HTTPException(401, { message: 'Custom error message' }) - * } - * await next() - * }) - * ``` - */ -export declare class HTTPException extends Error { - readonly res?: Response; - readonly status: ContentfulStatusCode; - /** - * Creates an instance of `HTTPException`. - * @param status - HTTP status code for the exception. Defaults to 500. - * @param options - Additional options for the exception. - */ - constructor(status?: ContentfulStatusCode, options?: HTTPExceptionOptions); - /** - * Returns the response object associated with the exception. - * If a response object is not provided, a new response is created with the error message and status code. - * @returns The response object. - */ - getResponse(): Response; -} -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/index.d.ts b/mcp-server/node_modules/hono/dist/types/index.d.ts deleted file mode 100644 index 2e861bf..0000000 --- a/mcp-server/node_modules/hono/dist/types/index.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @module - * - * Hono - Web Framework built on Web Standards - * - * @example - * ```ts - * import { Hono } from 'hono' - * const app = new Hono() - * - * app.get('/', (c) => c.text('Hono!')) - * - * export default app - * ``` - */ -import { Hono } from './hono'; -/** - * Types for environment variables, error handlers, handlers, middleware handlers, and more. - */ -export type { Env, ErrorHandler, Handler, MiddlewareHandler, Next, NotFoundResponse, NotFoundHandler, ValidationTargets, Input, Schema, ToSchema, TypedResponse, } from './types'; -/** - * Types for context, context variable map, context renderer, and execution context. - */ -export type { Context, ContextVariableMap, ContextRenderer, ExecutionContext } from './context'; -/** - * Type for HonoRequest. - */ -export type { HonoRequest } from './request'; -/** - * Types for inferring request and response types and client request options. - */ -export type { InferRequestType, InferResponseType, ClientRequestOptions } from './client'; -/** - * Hono framework for building web applications. - */ -export { Hono }; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/base.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/base.d.ts deleted file mode 100644 index 488d5c4..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/base.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { HtmlEscaped, HtmlEscapedString, StringBufferWithCallbacks } from '../utils/html'; -import { DOM_MEMO } from './constants'; -import type { Context } from './context'; -import type { JSX as HonoJSX, IntrinsicElements as IntrinsicElementsDefined } from './intrinsic-elements'; -export type Props = Record; -export type FC

= { - (props: P): HtmlEscapedString | Promise | null; - defaultProps?: Partial

| undefined; - displayName?: string | undefined; -}; -export type DOMAttributes = HonoJSX.HTMLAttributes; -export declare namespace JSX { - type Element = HtmlEscapedString | Promise; - interface ElementChildrenAttribute { - children: Child; - } - interface IntrinsicElements extends IntrinsicElementsDefined { - [tagName: string]: Props; - } - interface IntrinsicAttributes { - key?: string | number | bigint | null | undefined; - } -} -export declare const getNameSpaceContext: () => Context | undefined; -export declare const booleanAttributes: string[]; -type LocalContexts = [Context, unknown][]; -export type Child = string | Promise | number | JSXNode | null | undefined | boolean | Child[]; -export declare class JSXNode implements HtmlEscaped { - tag: string | Function; - props: Props; - key?: string; - children: Child[]; - isEscaped: true; - localContexts?: LocalContexts; - constructor(tag: string | Function, props: Props, children: Child[]); - get type(): string | Function; - get ref(): any; - toString(): string | Promise; - toStringToBuffer(buffer: StringBufferWithCallbacks): void; -} -export declare class JSXFragmentNode extends JSXNode { - toStringToBuffer(buffer: StringBufferWithCallbacks): void; -} -export declare const jsx: (tag: string | Function, props: Props | null, ...children: (string | number | HtmlEscapedString)[]) => JSXNode; -export declare const jsxFn: (tag: string | Function, props: Props, children: (string | number | HtmlEscapedString)[]) => JSXNode; -export declare const shallowEqual: (a: Props, b: Props) => boolean; -export type MemorableFC = FC & { - [DOM_MEMO]: (prevProps: Readonly, nextProps: Readonly) => boolean; -}; -export declare const memo: (component: FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => FC; -export declare const Fragment: ({ children, }: { - key?: string; - children?: Child | HtmlEscapedString; -}) => HtmlEscapedString; -export declare const isValidElement: (element: unknown) => element is JSXNode; -export declare const cloneElement: (element: T, props: Partial, ...children: Child[]) => T; -export declare const reactAPICompatVersion = "19.0.0-hono-jsx"; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/children.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/children.d.ts deleted file mode 100644 index 7e13b27..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/children.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Child } from './base'; -export declare const toArray: (children: Child) => Child[]; -export declare const Children: { - map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[]; - forEach: (children: Child[], fn: (child: Child, index: number) => void) => void; - count: (children: Child[]) => number; - only: (_children: Child[]) => Child; - toArray: (children: Child) => Child[]; -}; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/components.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/components.d.ts deleted file mode 100644 index ede9201..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/components.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { HtmlEscapedString } from '../utils/html'; -import type { Child, FC, PropsWithChildren } from './'; -export declare const childrenToString: (children: Child[]) => Promise; -export type ErrorHandler = (error: Error) => void; -export type FallbackRender = (error: Error) => Child; -/** - * @experimental - * `ErrorBoundary` is an experimental feature. - * The API might be changed. - */ -export declare const ErrorBoundary: FC>; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/constants.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/constants.d.ts deleted file mode 100644 index 27b9606..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/constants.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare const DOM_RENDERER: unique symbol; -export declare const DOM_ERROR_HANDLER: unique symbol; -export declare const DOM_STASH: unique symbol; -export declare const DOM_INTERNAL_TAG: unique symbol; -export declare const DOM_MEMO: unique symbol; -export declare const PERMALINK: unique symbol; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/context.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/context.d.ts deleted file mode 100644 index 64ac66c..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/context.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { FC, PropsWithChildren } from './'; -export interface Context extends FC> { - values: T[]; - Provider: FC>; -} -export declare const globalContexts: Context[]; -export declare const createContext: (defaultValue: T) => Context; -export declare const useContext: (context: Context) => T; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/client.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/client.d.ts deleted file mode 100644 index a30e3e4..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/client.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @module - * This module provides APIs for `hono/jsx/dom/client`, which is compatible with `react-dom/client`. - */ -import type { Child } from '../base'; -export interface Root { - render(children: Child): void; - unmount(): void; -} -export type RootOptions = Record; -/** - * Create a root object for rendering - * @param element Render target - * @param options Options for createRoot (not supported yet) - * @returns Root object has `render` and `unmount` methods - */ -export declare const createRoot: (element: HTMLElement | DocumentFragment, options?: RootOptions) => Root; -/** - * Create a root object and hydrate app to the target element. - * In hono/jsx/dom, hydrate is equivalent to render. - * @param element Render target - * @param reactNode A JSXNode to render - * @param options Options for createRoot (not supported yet) - * @returns Root object has `render` and `unmount` methods - */ -export declare const hydrateRoot: (element: HTMLElement | DocumentFragment, reactNode: Child, options?: RootOptions) => Root; -declare const _default: { - createRoot: (element: HTMLElement | DocumentFragment, options?: RootOptions) => Root; - hydrateRoot: (element: HTMLElement | DocumentFragment, reactNode: Child, options?: RootOptions) => Root; -}; -export default _default; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/components.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/components.d.ts deleted file mode 100644 index 54beaef..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/components.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Child, FC, PropsWithChildren } from '../'; -import type { ErrorHandler, FallbackRender } from '../components'; -export declare const ErrorBoundary: FC>; -export declare const Suspense: FC>; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/context.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/context.d.ts deleted file mode 100644 index ba9b54b..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/context.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Context } from '../context'; -export declare const createContextProviderFunction: (values: T[]) => Function; -export declare const createContext: (defaultValue: T) => Context; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/css.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/css.d.ts deleted file mode 100644 index cf6ea22..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/css.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @module - * This module provides APIs that enable `hono/jsx/dom` to support. - */ -import type { FC, PropsWithChildren } from '../'; -import type { CssClassName, CssVariableType } from '../../helper/css/common'; -export { rawCssString } from '../../helper/css/common'; -interface CreateCssJsxDomObjectsType { - (args: { - id: Readonly; - }): readonly [ - { - toString(this: CssClassName): string; - }, - FC> - ]; -} -export declare const createCssJsxDomObjects: CreateCssJsxDomObjectsType; -interface CssType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): string; -} -interface CxType { - (...args: (string | boolean | null | undefined)[]): string; -} -interface KeyframesType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): CssClassName; -} -interface ViewTransitionType { - (strings: TemplateStringsArray, ...values: CssVariableType[]): string; - (content: string): string; - (): string; -} -interface DefaultContextType { - css: CssType; - cx: CxType; - keyframes: KeyframesType; - viewTransition: ViewTransitionType; - Style: FC>; -} -/** - * @experimental - * `createCssContext` is an experimental feature. - * The API might be changed. - */ -export declare const createCssContext: ({ id }: { - id: Readonly; -}) => DefaultContextType; -/** - * @experimental - * `css` is an experimental feature. - * The API might be changed. - */ -export declare const css: CssType; -/** - * @experimental - * `cx` is an experimental feature. - * The API might be changed. - */ -export declare const cx: CxType; -/** - * @experimental - * `keyframes` is an experimental feature. - * The API might be changed. - */ -export declare const keyframes: KeyframesType; -/** - * @experimental - * `viewTransition` is an experimental feature. - * The API might be changed. - */ -export declare const viewTransition: ViewTransitionType; -/** - * @experimental - * `Style` is an experimental feature. - * The API might be changed. - */ -export declare const Style: FC>; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts deleted file mode 100644 index eca26ae..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Provide hooks used only in jsx/dom - */ -import type { Context } from '../../context'; -type FormStatus = { - pending: false; - data: null; - method: null; - action: null; -} | { - pending: true; - data: FormData; - method: 'get' | 'post'; - action: string | ((formData: FormData) => void | Promise); -}; -export declare const FormContext: Context; -export declare const registerAction: (action: Promise) => void; -/** - * This hook returns the current form status - * @returns FormStatus - */ -export declare const useFormStatus: () => FormStatus; -/** - * This hook returns the current state and a function to update the state optimistically - * The current state is updated optimistically and then reverted to the original state when all actions are resolved - * @param state - * @param updateState - * @returns [T, (action: N) => void] - */ -export declare const useOptimistic: (state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void]; -/** - * This hook returns the current state and a function to update the state by form action - * @param fn - * @param initialState - * @param permalink - * @returns [T, (data: FormData) => void] - */ -export declare const useActionState: (fn: Function, initialState: T, permalink?: string) => [T, Function]; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/index.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/index.d.ts deleted file mode 100644 index a3cfe59..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/index.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @module - * This module provides APIs for `hono/jsx/dom`. - */ -import { isValidElement, reactAPICompatVersion } from '../base'; -import type { Child, DOMAttributes, JSX, JSXNode, Props, FC } from '../base'; -import { Children } from '../children'; -import { useContext } from '../context'; -import { createRef, forwardRef, startTransition, startViewTransition, use, useCallback, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition } from '../hooks'; -import { ErrorBoundary, Suspense } from './components'; -import { createContext } from './context'; -import { useActionState, useFormStatus, useOptimistic } from './hooks'; -import { Fragment } from './jsx-runtime'; -import { createPortal, flushSync } from './render'; -export { render } from './render'; -declare const createElement: (tag: string | ((props: Props) => JSXNode), props: Props | null, ...children: Child[]) => JSXNode; -declare const cloneElement: (element: T, props: Props, ...children: Child[]) => T; -declare const memo: (component: FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => FC; -export { reactAPICompatVersion as version, createElement as jsx, useState, useEffect, useRef, useCallback, use, startTransition, useTransition, useDeferredValue, startViewTransition, useViewTransition, useMemo, useLayoutEffect, useInsertionEffect, useReducer, useId, useDebugValue, createRef, forwardRef, useImperativeHandle, useSyncExternalStore, useFormStatus, useActionState, useOptimistic, Suspense, ErrorBoundary, createContext, useContext, memo, isValidElement, createElement, cloneElement, Children, Fragment, Fragment as StrictMode, DOMAttributes, flushSync, createPortal, }; -declare const _default: { - version: string; - useState: { - (initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void]; - (): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void]; - }; - useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useRef: (initialValue: T | null) => import("..").RefObject; - useCallback: (callback: T, deps: readonly unknown[]) => T; - use: (promise: Promise) => T; - startTransition: (callback: () => void) => void; - useTransition: () => [boolean, (callback: () => void | Promise) => void]; - useDeferredValue: (value: T, initialValue?: T) => T; - startViewTransition: (callback: () => void) => void; - useViewTransition: () => [boolean, (callback: () => void) => void]; - useMemo: (factory: () => T, deps: readonly unknown[]) => T; - useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useReducer: (reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void]; - useId: () => string; - useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void; - createRef: () => import("..").RefObject; - forwardRef: (Component: (props: P, ref?: import("..").RefObject) => JSX.Element) => ((props: P & { - ref?: import("..").RefObject; - }) => JSX.Element); - useImperativeHandle: (ref: import("..").RefObject, createHandle: () => T, deps: readonly unknown[]) => void; - useSyncExternalStore: (subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T; - useFormStatus: () => { - pending: false; - data: null; - method: null; - action: null; - } | { - pending: true; - data: FormData; - method: "get" | "post"; - action: string | ((formData: FormData) => void | Promise); - }; - useActionState: (fn: Function, initialState: T, permalink?: string) => [T, Function]; - useOptimistic: (state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void]; - Suspense: FC>; - ErrorBoundary: FC>; - createContext: (defaultValue: T) => import("..").Context; - useContext: (context: import("..").Context) => T; - memo: (component: FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => FC; - isValidElement: (element: unknown) => element is JSXNode; - createElement: (tag: string | ((props: Props) => JSXNode), props: Props | null, ...children: Child[]) => JSXNode; - cloneElement: (element: T, props: Props, ...children: Child[]) => T; - Children: { - map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[]; - forEach: (children: Child[], fn: (child: Child, index: number) => void) => void; - count: (children: Child[]) => number; - only: (_children: Child[]) => Child; - toArray: (children: Child) => Child[]; - }; - Fragment: (props: Record) => JSXNode; - StrictMode: (props: Record) => JSXNode; - flushSync: (callback: () => void) => void; - createPortal: (children: Child, container: HTMLElement, key?: string) => Child; -}; -export default _default; -export type { Context } from '../context'; -export type * from '../types'; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts deleted file mode 100644 index 53f879a..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { IntrinsicElements } from '../../intrinsic-elements'; -import type { FC, PropsWithChildren, RefObject } from '../../types'; -export declare const clearCache: () => void; -export declare const composeRef: (ref: RefObject | Function | undefined, cb: (e: T) => void | (() => void)) => ((e: T) => () => void); -export declare const title: FC; -export declare const script: FC>; -export declare const style: FC>; -export declare const link: FC>; -export declare const meta: FC; -export declare const form: FC | ((e: HTMLFormElement | null) => void | (() => void)); -}>>; -export declare const input: FC>; -export declare const button: FC>; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts deleted file mode 100644 index 2316d31..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * This module provides the `hono/jsx/dom` dev runtime. - */ -import type { JSXNode, Props } from '../base'; -export type { JSX } from '../base'; -export declare const jsxDEV: (tag: string | Function, props: Props, key?: string) => JSXNode; -export declare const Fragment: (props: Record) => JSXNode; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts deleted file mode 100644 index 884ccb9..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * This module provides the `hono/jsx/dom` runtime. - */ -export { jsxDEV as jsx, Fragment } from './jsx-dev-runtime'; -export { jsxDEV as jsxs } from './jsx-dev-runtime'; -export type { JSX } from './jsx-dev-runtime'; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/render.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/render.d.ts deleted file mode 100644 index 5b12d55..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/render.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type { Child, FC, JSXNode, Props } from '../base'; -import { DOM_RENDERER, DOM_STASH } from '../constants'; -import type { Context as JSXContext } from '../context'; -export type HasRenderToDom = FC & { - [DOM_RENDERER]: FC; -}; -export type ErrorHandler = (error: any, retry: () => void) => Child | undefined; -type Container = HTMLElement | DocumentFragment; -type LocalJSXContexts = [JSXContext, unknown][] | undefined; -type SupportedElement = HTMLElement | SVGElement | MathMLElement; -export type PreserveNodeType = 1 | 2; -export type NodeObject = { - pP: Props | undefined; - nN: Node | undefined; - vC: Node[]; - pC?: Node[]; - vR: Node[]; - n?: string; - f?: boolean; - s?: boolean; - c: Container | undefined; - e: SupportedElement | Text | undefined; - p?: PreserveNodeType; - a?: boolean; - o?: NodeObject; - [DOM_STASH]: [ - number, - any[][], - LocalJSXContexts, - [ - Context, - Function, - NodeObject - ] - ] | [number, any[][]]; -} & JSXNode; -type NodeString = { - t: string; - d: boolean; - s?: boolean; -} & { - e?: Text; - vC: undefined; - nN: undefined; - p?: true; - key: undefined; - tag: undefined; -}; -export type Node = NodeString | NodeObject; -export type PendingType = 0 | 1 | 2; -export type UpdateHook = (context: Context, node: Node, cb: (context: Context) => void) => Promise; -export type Context = [ - PendingType, - boolean, - UpdateHook, - boolean, - boolean, - [ - Context, - Function, - NodeObject - ][] -] | [PendingType, boolean, UpdateHook, boolean] | [PendingType, boolean, UpdateHook] | [PendingType, boolean] | [PendingType] | []; -export declare const buildDataStack: [Context, Node][]; -export declare const getNameSpaceContext: () => JSXContext | undefined; -export declare const build: (context: Context, node: NodeObject, children?: Child[]) => void; -export declare const buildNode: (node: Child) => Node | undefined; -export declare const update: (context: Context, node: NodeObject) => Promise; -export declare const renderNode: (node: NodeObject, container: Container) => void; -export declare const render: (jsxNode: Child, container: Container) => void; -export declare const flushSync: (callback: () => void) => void; -export declare const createPortal: (children: Child, container: HTMLElement, key?: string) => Child; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/server.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/server.d.ts deleted file mode 100644 index 7de82cc..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/server.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @module - * This module provides APIs for `hono/jsx/server`, which is compatible with `react-dom/server`. - */ -import type { Child } from '../base'; -import version from './'; -export interface RenderToStringOptions { - identifierPrefix?: string; -} -/** - * Render JSX element to string. - * @param element JSX element to render. - * @param options Options for rendering. - * @returns Rendered string. - */ -declare const renderToString: (element: Child, options?: RenderToStringOptions) => string; -export interface RenderToReadableStreamOptions { - identifierPrefix?: string; - namespaceURI?: string; - nonce?: string; - bootstrapScriptContent?: string; - bootstrapScripts?: string[]; - bootstrapModules?: string[]; - progressiveChunkSize?: number; - signal?: AbortSignal; - onError?: (error: unknown) => string | void; -} -/** - * Render JSX element to readable stream. - * @param element JSX element to render. - * @param options Options for rendering. - * @returns Rendered readable stream. - */ -declare const renderToReadableStream: (element: Child, options?: RenderToReadableStreamOptions) => Promise>; -export { renderToString, renderToReadableStream, version }; -declare const _default: { - renderToString: (element: Child, options?: RenderToStringOptions) => string; - renderToReadableStream: (element: Child, options?: RenderToReadableStreamOptions) => Promise>; - version: { - version: string; - useState: { - (initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void]; - (): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void]; - }; - useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useRef: (initialValue: T | null) => import("..").RefObject; - useCallback: (callback: T, deps: readonly unknown[]) => T; - use: (promise: Promise) => T; - startTransition: (callback: () => void) => void; - useTransition: () => [boolean, (callback: () => void | Promise) => void]; - useDeferredValue: (value: T, initialValue?: T) => T; - startViewTransition: (callback: () => void) => void; - useViewTransition: () => [boolean, (callback: () => void) => void]; - useMemo: (factory: () => T, deps: readonly unknown[]) => T; - useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useReducer: (reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void]; - useId: () => string; - useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void; - createRef: () => import("..").RefObject; - forwardRef: (Component: (props: P, ref?: import("..").RefObject) => import("./jsx-dev-runtime").JSX.Element) => ((props: P & { - ref?: import("..").RefObject; - }) => import("./jsx-dev-runtime").JSX.Element); - useImperativeHandle: (ref: import("..").RefObject, createHandle: () => T, deps: readonly unknown[]) => void; - useSyncExternalStore: (subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T; - useFormStatus: () => { - pending: false; - data: null; - method: null; - action: null; - } | { - pending: true; - data: FormData; - method: "get" | "post"; - action: string | ((formData: FormData) => void | Promise); - }; - useActionState: (fn: Function, initialState: T, permalink?: string) => [T, Function]; - useOptimistic: (state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void]; - Suspense: import("..").FC>; - ErrorBoundary: import("..").FC>; - createContext: (defaultValue: T) => import("..").Context; - useContext: (context: import("..").Context) => T; - memo: (component: import("..").FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => import("..").FC; - isValidElement: (element: unknown) => element is import("..").JSXNode; - createElement: (tag: string | ((props: import("../base").Props) => import("..").JSXNode), props: import("../base").Props | null, ...children: Child[]) => import("..").JSXNode; - cloneElement: (element: T, props: import("../base").Props, ...children: Child[]) => T; - Children: { - map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[]; - forEach: (children: Child[], fn: (child: Child, index: number) => void) => void; - count: (children: Child[]) => number; - only: (_children: Child[]) => Child; - toArray: (children: Child) => Child[]; - }; - Fragment: (props: Record) => import("..").JSXNode; - StrictMode: (props: Record) => import("..").JSXNode; - flushSync: (callback: () => void) => void; - createPortal: (children: Child, container: HTMLElement, key?: string) => Child; - }; -}; -export default _default; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/dom/utils.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/dom/utils.d.ts deleted file mode 100644 index b1d29f6..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/dom/utils.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const setInternalTagFlag: (fn: Function) => Function; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/hooks/index.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/hooks/index.d.ts deleted file mode 100644 index 929e315..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/hooks/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { JSX } from '../base'; -type UpdateStateFunction = (newState: T | ((currentState: T) => T)) => void; -export declare const STASH_EFFECT = 1; -export type EffectData = [ - readonly unknown[] | undefined, - // deps - (() => void | (() => void)) | undefined, - // layout effect - (() => void) | undefined, - // cleanup - (() => void) | undefined, - // effect - (() => void) | undefined -]; -export declare const startViewTransition: (callback: () => void) => void; -export declare const useViewTransition: () => [boolean, (callback: () => void) => void]; -export declare const startTransition: (callback: () => void) => void; -export declare const useTransition: () => [boolean, (callback: () => void | Promise) => void]; -type UseDeferredValue = (value: T, initialValue?: T) => T; -export declare const useDeferredValue: UseDeferredValue; -type UseStateType = { - (initialState: T | (() => T)): [T, UpdateStateFunction]; - (): [T | undefined, UpdateStateFunction]; -}; -export declare const useState: UseStateType; -export declare const useReducer: (reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void]; -export declare const useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; -export declare const useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; -export declare const useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; -export declare const useCallback: (callback: T, deps: readonly unknown[]) => T; -export type RefObject = { - current: T | null; -}; -export declare const useRef: (initialValue: T | null) => RefObject; -export declare const use: (promise: Promise) => T; -export declare const useMemo: (factory: () => T, deps: readonly unknown[]) => T; -export declare const useId: () => string; -export declare const useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void; -export declare const createRef: () => RefObject; -export declare const forwardRef: (Component: (props: P, ref?: RefObject) => JSX.Element) => ((props: P & { - ref?: RefObject; -}) => JSX.Element); -export declare const useImperativeHandle: (ref: RefObject, createHandle: () => T, deps: readonly unknown[]) => void; -export declare const useSyncExternalStore: (subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/index.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/index.d.ts deleted file mode 100644 index 63d20b6..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/index.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @module - * JSX for Hono. - */ -import { Fragment, cloneElement, isValidElement, jsx, memo, reactAPICompatVersion } from './base'; -import type { DOMAttributes } from './base'; -import { Children } from './children'; -import { ErrorBoundary } from './components'; -import { createContext, useContext } from './context'; -import { useActionState, useOptimistic } from './dom/hooks'; -import { createRef, forwardRef, startTransition, startViewTransition, use, useCallback, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, useViewTransition } from './hooks'; -import { Suspense } from './streaming'; -export { reactAPICompatVersion as version, jsx, memo, Fragment, Fragment as StrictMode, isValidElement, jsx as createElement, cloneElement, ErrorBoundary, createContext, useContext, useState, useEffect, useRef, useCallback, useReducer, useId, useDebugValue, use, startTransition, useTransition, useDeferredValue, startViewTransition, useViewTransition, useMemo, useLayoutEffect, useInsertionEffect, createRef, forwardRef, useImperativeHandle, useSyncExternalStore, useActionState, useOptimistic, Suspense, Children, DOMAttributes, }; -declare const _default: { - version: string; - memo: (component: import("./base").FC, propsAreEqual?: (prevProps: Readonly, nextProps: Readonly) => boolean) => import("./base").FC; - Fragment: ({ children, }: { - key?: string; - children?: import("./base").Child | import("../utils/html").HtmlEscapedString; - }) => import("../utils/html").HtmlEscapedString; - StrictMode: ({ children, }: { - key?: string; - children?: import("./base").Child | import("../utils/html").HtmlEscapedString; - }) => import("../utils/html").HtmlEscapedString; - isValidElement: (element: unknown) => element is import("./base").JSXNode; - createElement: (tag: string | Function, props: import("./base").Props | null, ...children: (string | number | import("../utils/html").HtmlEscapedString)[]) => import("./base").JSXNode; - cloneElement: (element: T, props: Partial, ...children: import("./base").Child[]) => T; - ErrorBoundary: import("./base").FC>; - createContext: (defaultValue: T) => import("./context").Context; - useContext: (context: import("./context").Context) => T; - useState: { - (initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void]; - (): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void]; - }; - useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useRef: (initialValue: T | null) => import("./hooks").RefObject; - useCallback: (callback: T, deps: readonly unknown[]) => T; - useReducer: (reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void]; - useId: () => string; - useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void; - use: (promise: Promise) => T; - startTransition: (callback: () => void) => void; - useTransition: () => [boolean, (callback: () => void | Promise) => void]; - useDeferredValue: (value: T, initialValue?: T) => T; - startViewTransition: (callback: () => void) => void; - useViewTransition: () => [boolean, (callback: () => void) => void]; - useMemo: (factory: () => T, deps: readonly unknown[]) => T; - useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void; - createRef: () => import("./hooks").RefObject; - forwardRef: (Component: (props: P, ref?: import("./hooks").RefObject) => import("./base").JSX.Element) => ((props: P & { - ref?: import("./hooks").RefObject; - }) => import("./base").JSX.Element); - useImperativeHandle: (ref: import("./hooks").RefObject, createHandle: () => T, deps: readonly unknown[]) => void; - useSyncExternalStore: (subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T; - useActionState: (fn: Function, initialState: T, permalink?: string) => [T, Function]; - useOptimistic: (state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void]; - Suspense: import("./base").FC>; - Children: { - map: (children: import("./base").Child[], fn: (child: import("./base").Child, index: number) => import("./base").Child) => import("./base").Child[]; - forEach: (children: import("./base").Child[], fn: (child: import("./base").Child, index: number) => void) => void; - count: (children: import("./base").Child[]) => number; - only: (_children: import("./base").Child[]) => import("./base").Child; - toArray: (children: import("./base").Child) => import("./base").Child[]; - }; -}; -export default _default; -export type * from './types'; -export type { JSX } from './intrinsic-elements'; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts deleted file mode 100644 index b095aa6..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const deDupeKeyMap: Record; -export declare const domRenderers: Record; -export declare const dataPrecedenceAttr = "data-precedence"; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts deleted file mode 100644 index 77d0849..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { IntrinsicElements } from '../intrinsic-elements'; -import type { FC, PropsWithChildren } from '../types'; -export declare const title: FC; -export declare const script: FC>; -export declare const style: FC>; -export declare const link: FC>; -export declare const meta: FC; -export declare const form: FC>; -export declare const input: (props: PropsWithChildren) => unknown; -export declare const button: (props: PropsWithChildren) => unknown; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts deleted file mode 100644 index f35b34f..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +++ /dev/null @@ -1,722 +0,0 @@ -import type { BaseMime } from '../utils/mime'; -import type { StringLiteralUnion } from '../utils/types'; -/** - * This code is based on React. - * https://github.com/facebook/react - * MIT License - * Copyright (c) Meta Platforms, Inc. and affiliates. - */ -export declare namespace JSX { - export type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined; - export interface CSSProperties { - [propertyKey: string]: unknown; - } - type AnyAttributes = { - [attributeName: string]: any; - }; - interface JSXAttributes { - dangerouslySetInnerHTML?: { - __html: string; - }; - } - interface EventAttributes { - onScroll?: (event: Event) => void; - onScrollCapture?: (event: Event) => void; - onScrollEnd?: (event: Event) => void; - onScrollEndCapture?: (event: Event) => void; - onWheel?: (event: WheelEvent) => void; - onWheelCapture?: (event: WheelEvent) => void; - onAnimationCancel?: (event: AnimationEvent) => void; - onAnimationCancelCapture?: (event: AnimationEvent) => void; - onAnimationEnd?: (event: AnimationEvent) => void; - onAnimationEndCapture?: (event: AnimationEvent) => void; - onAnimationIteration?: (event: AnimationEvent) => void; - onAnimationIterationCapture?: (event: AnimationEvent) => void; - onAnimationStart?: (event: AnimationEvent) => void; - onAnimationStartCapture?: (event: AnimationEvent) => void; - onCopy?: (event: ClipboardEvent) => void; - onCopyCapture?: (event: ClipboardEvent) => void; - onCut?: (event: ClipboardEvent) => void; - onCutCapture?: (event: ClipboardEvent) => void; - onPaste?: (event: ClipboardEvent) => void; - onPasteCapture?: (event: ClipboardEvent) => void; - onCompositionEnd?: (event: CompositionEvent) => void; - onCompositionEndCapture?: (event: CompositionEvent) => void; - onCompositionStart?: (event: CompositionEvent) => void; - onCompositionStartCapture?: (event: CompositionEvent) => void; - onCompositionUpdate?: (event: CompositionEvent) => void; - onCompositionUpdateCapture?: (event: CompositionEvent) => void; - onBlur?: (event: FocusEvent) => void; - onBlurCapture?: (event: FocusEvent) => void; - onFocus?: (event: FocusEvent) => void; - onFocusCapture?: (event: FocusEvent) => void; - onFocusIn?: (event: FocusEvent) => void; - onFocusInCapture?: (event: FocusEvent) => void; - onFocusOut?: (event: FocusEvent) => void; - onFocusOutCapture?: (event: FocusEvent) => void; - onFullscreenChange?: (event: Event) => void; - onFullscreenChangeCapture?: (event: Event) => void; - onFullscreenError?: (event: Event) => void; - onFullscreenErrorCapture?: (event: Event) => void; - onKeyDown?: (event: KeyboardEvent) => void; - onKeyDownCapture?: (event: KeyboardEvent) => void; - onKeyPress?: (event: KeyboardEvent) => void; - onKeyPressCapture?: (event: KeyboardEvent) => void; - onKeyUp?: (event: KeyboardEvent) => void; - onKeyUpCapture?: (event: KeyboardEvent) => void; - onAuxClick?: (event: MouseEvent) => void; - onAuxClickCapture?: (event: MouseEvent) => void; - onClick?: (event: MouseEvent) => void; - onClickCapture?: (event: MouseEvent) => void; - onContextMenu?: (event: MouseEvent) => void; - onContextMenuCapture?: (event: MouseEvent) => void; - onDoubleClick?: (event: MouseEvent) => void; - onDoubleClickCapture?: (event: MouseEvent) => void; - onMouseDown?: (event: MouseEvent) => void; - onMouseDownCapture?: (event: MouseEvent) => void; - onMouseEnter?: (event: MouseEvent) => void; - onMouseEnterCapture?: (event: MouseEvent) => void; - onMouseLeave?: (event: MouseEvent) => void; - onMouseLeaveCapture?: (event: MouseEvent) => void; - onMouseMove?: (event: MouseEvent) => void; - onMouseMoveCapture?: (event: MouseEvent) => void; - onMouseOut?: (event: MouseEvent) => void; - onMouseOutCapture?: (event: MouseEvent) => void; - onMouseOver?: (event: MouseEvent) => void; - onMouseOverCapture?: (event: MouseEvent) => void; - onMouseUp?: (event: MouseEvent) => void; - onMouseUpCapture?: (event: MouseEvent) => void; - onMouseWheel?: (event: WheelEvent) => void; - onMouseWheelCapture?: (event: WheelEvent) => void; - onGotPointerCapture?: (event: PointerEvent) => void; - onGotPointerCaptureCapture?: (event: PointerEvent) => void; - onLostPointerCapture?: (event: PointerEvent) => void; - onLostPointerCaptureCapture?: (event: PointerEvent) => void; - onPointerCancel?: (event: PointerEvent) => void; - onPointerCancelCapture?: (event: PointerEvent) => void; - onPointerDown?: (event: PointerEvent) => void; - onPointerDownCapture?: (event: PointerEvent) => void; - onPointerEnter?: (event: PointerEvent) => void; - onPointerEnterCapture?: (event: PointerEvent) => void; - onPointerLeave?: (event: PointerEvent) => void; - onPointerLeaveCapture?: (event: PointerEvent) => void; - onPointerMove?: (event: PointerEvent) => void; - onPointerMoveCapture?: (event: PointerEvent) => void; - onPointerOut?: (event: PointerEvent) => void; - onPointerOutCapture?: (event: PointerEvent) => void; - onPointerOver?: (event: PointerEvent) => void; - onPointerOverCapture?: (event: PointerEvent) => void; - onPointerUp?: (event: PointerEvent) => void; - onPointerUpCapture?: (event: PointerEvent) => void; - onTouchCancel?: (event: TouchEvent) => void; - onTouchCancelCapture?: (event: TouchEvent) => void; - onTouchEnd?: (event: TouchEvent) => void; - onTouchEndCapture?: (event: TouchEvent) => void; - onTouchMove?: (event: TouchEvent) => void; - onTouchMoveCapture?: (event: TouchEvent) => void; - onTouchStart?: (event: TouchEvent) => void; - onTouchStartCapture?: (event: TouchEvent) => void; - onTransitionCancel?: (event: TransitionEvent) => void; - onTransitionCancelCapture?: (event: TransitionEvent) => void; - onTransitionEnd?: (event: TransitionEvent) => void; - onTransitionEndCapture?: (event: TransitionEvent) => void; - onTransitionRun?: (event: TransitionEvent) => void; - onTransitionRunCapture?: (event: TransitionEvent) => void; - onTransitionStart?: (event: TransitionEvent) => void; - onTransitionStartCapture?: (event: TransitionEvent) => void; - onFormData?: (event: FormDataEvent) => void; - onFormDataCapture?: (event: FormDataEvent) => void; - onReset?: (event: Event) => void; - onResetCapture?: (event: Event) => void; - onSubmit?: (event: Event) => void; - onSubmitCapture?: (event: Event) => void; - onInvalid?: (event: Event) => void; - onInvalidCapture?: (event: Event) => void; - onSelect?: (event: Event) => void; - onSelectCapture?: (event: Event) => void; - onSelectChange?: (event: Event) => void; - onSelectChangeCapture?: (event: Event) => void; - onInput?: (event: InputEvent) => void; - onInputCapture?: (event: InputEvent) => void; - onBeforeInput?: (event: InputEvent) => void; - onBeforeInputCapture?: (event: InputEvent) => void; - onChange?: (event: Event) => void; - onChangeCapture?: (event: Event) => void; - } - export interface HTMLAttributes extends JSXAttributes, EventAttributes, AnyAttributes { - accesskey?: string | undefined; - autocapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined; - autofocus?: boolean | undefined; - class?: string | Promise | undefined; - contenteditable?: boolean | 'inherit' | 'plaintext-only' | undefined; - contextmenu?: string | undefined; - dir?: string | undefined; - draggable?: 'true' | 'false' | boolean | undefined; - enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined; - hidden?: boolean | undefined; - id?: string | undefined; - inert?: boolean | undefined; - inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | undefined; - is?: string | undefined; - itemid?: string | undefined; - itemprop?: string | undefined; - itemref?: string | undefined; - itemscope?: boolean | undefined; - itemtype?: string | undefined; - lang?: string | undefined; - nonce?: string | undefined; - placeholder?: string | undefined; - /** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */ - popover?: boolean | 'auto' | 'manual' | undefined; - slot?: string | undefined; - spellcheck?: boolean | undefined; - style?: CSSProperties | string | undefined; - tabindex?: number | undefined; - title?: string | undefined; - translate?: 'yes' | 'no' | undefined; - itemProp?: string | undefined; - } - type HTMLAttributeReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'; - type HTMLAttributeAnchorTarget = StringLiteralUnion<'_self' | '_blank' | '_parent' | '_top'>; - interface AnchorHTMLAttributes extends HTMLAttributes { - download?: string | boolean | undefined; - href?: string | undefined; - hreflang?: string | undefined; - media?: string | undefined; - ping?: string | undefined; - target?: HTMLAttributeAnchorTarget | undefined; - type?: StringLiteralUnion | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - } - interface AudioHTMLAttributes extends MediaHTMLAttributes { - } - interface AreaHTMLAttributes extends HTMLAttributes { - alt?: string | undefined; - coords?: string | undefined; - download?: string | boolean | undefined; - href?: string | undefined; - hreflang?: string | undefined; - media?: string | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - shape?: string | undefined; - target?: HTMLAttributeAnchorTarget | undefined; - } - interface BaseHTMLAttributes extends HTMLAttributes { - href?: string | undefined; - target?: HTMLAttributeAnchorTarget | undefined; - } - interface BlockquoteHTMLAttributes extends HTMLAttributes { - cite?: string | undefined; - } - /** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */ - type HTMLAttributePopoverTargetAction = 'show' | 'hide' | 'toggle'; - interface ButtonHTMLAttributes extends HTMLAttributes { - disabled?: boolean | undefined; - form?: string | undefined; - formenctype?: HTMLAttributeFormEnctype | undefined; - formmethod?: HTMLAttributeFormMethod | undefined; - formnovalidate?: boolean | undefined; - formtarget?: HTMLAttributeAnchorTarget | undefined; - name?: string | undefined; - type?: 'submit' | 'reset' | 'button' | undefined; - value?: string | ReadonlyArray | number | undefined; - popovertarget?: string | undefined; - popovertargetaction?: HTMLAttributePopoverTargetAction | undefined; - formAction?: string | Function | undefined; - } - interface CanvasHTMLAttributes extends HTMLAttributes { - height?: number | string | undefined; - width?: number | string | undefined; - } - interface ColHTMLAttributes extends HTMLAttributes { - span?: number | undefined; - width?: number | string | undefined; - } - interface ColgroupHTMLAttributes extends HTMLAttributes { - span?: number | undefined; - } - interface DataHTMLAttributes extends HTMLAttributes { - value?: string | ReadonlyArray | number | undefined; - } - interface DetailsHTMLAttributes extends HTMLAttributes { - open?: boolean | undefined; - } - interface DelHTMLAttributes extends HTMLAttributes { - cite?: string | undefined; - dateTime?: string | undefined; - } - interface DialogHTMLAttributes extends HTMLAttributes { - open?: boolean | undefined; - } - interface EmbedHTMLAttributes extends HTMLAttributes { - height?: number | string | undefined; - src?: string | undefined; - type?: StringLiteralUnion | undefined; - width?: number | string | undefined; - } - interface FieldsetHTMLAttributes extends HTMLAttributes { - disabled?: boolean | undefined; - form?: string | undefined; - name?: string | undefined; - } - /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#method */ - type HTMLAttributeFormMethod = 'get' | 'post' | 'dialog'; - /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#enctype */ - type HTMLAttributeFormEnctype = 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain'; - /** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocomplete */ - type HTMLAttributeFormAutocomplete = 'on' | 'off'; - interface FormHTMLAttributes extends HTMLAttributes { - 'accept-charset'?: StringLiteralUnion<'utf-8'> | undefined; - autocomplete?: HTMLAttributeFormAutocomplete | undefined; - enctype?: HTMLAttributeFormEnctype | undefined; - method?: HTMLAttributeFormMethod | undefined; - name?: string | undefined; - novalidate?: boolean | undefined; - target?: HTMLAttributeAnchorTarget | undefined; - action?: string | Function | undefined; - } - interface HtmlHTMLAttributes extends HTMLAttributes { - manifest?: string | undefined; - } - interface IframeHTMLAttributes extends HTMLAttributes { - allow?: string | undefined; - allowfullscreen?: boolean | undefined; - height?: number | string | undefined; - loading?: 'eager' | 'lazy' | undefined; - name?: string | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - sandbox?: string | undefined; - seamless?: boolean | undefined; - src?: string | undefined; - srcdoc?: string | undefined; - width?: number | string | undefined; - } - interface ImgHTMLAttributes extends HTMLAttributes { - alt?: string | undefined; - crossorigin?: CrossOrigin; - decoding?: 'async' | 'auto' | 'sync' | undefined; - height?: number | string | undefined; - loading?: 'eager' | 'lazy' | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - sizes?: string | undefined; - src?: string | undefined; - srcset?: string | undefined; - usemap?: string | undefined; - width?: number | string | undefined; - } - interface InsHTMLAttributes extends HTMLAttributes { - cite?: string | undefined; - datetime?: string | undefined; - } - type HTMLInputTypeAttribute = StringLiteralUnion<'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week'>; - type AutoFillAddressKind = 'billing' | 'shipping'; - type AutoFillBase = '' | 'off' | 'on'; - type AutoFillContactField = 'email' | 'tel' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-local-prefix' | 'tel-local-suffix' | 'tel-national'; - type AutoFillContactKind = 'home' | 'mobile' | 'work'; - type AutoFillCredentialField = 'webauthn'; - type AutoFillNormalField = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday-day' | 'bday-month' | 'bday-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country' | 'country-name' | 'current-password' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'new-password' | 'one-time-code' | 'organization' | 'postal-code' | 'street-address' | 'transaction-amount' | 'transaction-currency' | 'username'; - type OptionalPrefixToken = `${T} ` | ''; - type OptionalPostfixToken = ` ${T}` | ''; - type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken}${AutoFillContactField}`; - type AutoFillSection = `section-${string}`; - type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; - interface InputHTMLAttributes extends HTMLAttributes { - accept?: string | undefined; - alt?: string | undefined; - autocomplete?: StringLiteralUnion | undefined; - capture?: boolean | 'user' | 'environment' | undefined; - checked?: boolean | undefined; - disabled?: boolean | undefined; - form?: string | undefined; - formenctype?: HTMLAttributeFormEnctype | undefined; - formmethod?: HTMLAttributeFormMethod | undefined; - formnovalidate?: boolean | undefined; - formtarget?: HTMLAttributeAnchorTarget | undefined; - height?: number | string | undefined; - list?: string | undefined; - max?: number | string | undefined; - maxlength?: number | undefined; - min?: number | string | undefined; - minlength?: number | undefined; - multiple?: boolean | undefined; - name?: string | undefined; - pattern?: string | undefined; - placeholder?: string | undefined; - readonly?: boolean | undefined; - required?: boolean | undefined; - size?: number | undefined; - src?: string | undefined; - step?: number | string | undefined; - type?: HTMLInputTypeAttribute | undefined; - value?: string | ReadonlyArray | number | undefined; - width?: number | string | undefined; - popovertarget?: string | undefined; - popovertargetaction?: HTMLAttributePopoverTargetAction | undefined; - formAction?: string | Function | undefined; - } - interface KeygenHTMLAttributes extends HTMLAttributes { - challenge?: string | undefined; - disabled?: boolean | undefined; - form?: string | undefined; - keytype?: string | undefined; - name?: string | undefined; - } - interface LabelHTMLAttributes extends HTMLAttributes { - form?: string | undefined; - for?: string | undefined; - } - interface LiHTMLAttributes extends HTMLAttributes { - value?: string | ReadonlyArray | number | undefined; - } - interface LinkHTMLAttributes extends HTMLAttributes { - as?: string | undefined; - crossorigin?: CrossOrigin; - href?: string | undefined; - hreflang?: string | undefined; - integrity?: string | undefined; - media?: string | undefined; - imagesrcset?: string | undefined; - imagesizes?: string | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - sizes?: string | undefined; - type?: StringLiteralUnion | undefined; - charSet?: string | undefined; - rel?: string | undefined; - precedence?: string | undefined; - title?: string | undefined; - disabled?: boolean | undefined; - onError?: ((event: Event) => void) | undefined; - onLoad?: ((event: Event) => void) | undefined; - blocking?: 'render' | undefined; - } - interface MapHTMLAttributes extends HTMLAttributes { - name?: string | undefined; - } - interface MenuHTMLAttributes extends HTMLAttributes { - type?: string | undefined; - } - interface MediaHTMLAttributes extends HTMLAttributes { - autoplay?: boolean | undefined; - controls?: boolean | undefined; - controlslist?: string | undefined; - crossorigin?: CrossOrigin; - loop?: boolean | undefined; - mediagroup?: string | undefined; - muted?: boolean | undefined; - playsinline?: boolean | undefined; - preload?: string | undefined; - src?: string | undefined; - } - /** - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv - */ - type MetaHttpEquiv = 'content-security-policy' | 'content-type' | 'default-style' | 'x-ua-compatible' | 'refresh'; - /** - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name - */ - type MetaName = 'application-name' | 'author' | 'description' | 'generator' | 'keywords' | 'referrer' | 'theme-color' | 'color-scheme' | 'viewport' | 'creator' | 'googlebot' | 'publisher' | 'robots'; - /** - * @see https://ogp.me/ - */ - type MetaProperty = 'og:title' | 'og:type' | 'og:image' | 'og:url' | 'og:audio' | 'og:description' | 'og:determiner' | 'og:locale' | 'og:locale:alternate' | 'og:site_name' | 'og:video' | 'og:image:url' | 'og:image:secure_url' | 'og:image:type' | 'og:image:width' | 'og:image:height' | 'og:image:alt'; - interface MetaHTMLAttributes extends HTMLAttributes { - charset?: StringLiteralUnion<'utf-8'> | undefined; - 'http-equiv'?: StringLiteralUnion | undefined; - name?: StringLiteralUnion | undefined; - media?: string | undefined; - content?: string | undefined; - property?: StringLiteralUnion | undefined; - httpEquiv?: StringLiteralUnion | undefined; - } - interface MeterHTMLAttributes extends HTMLAttributes { - form?: string | undefined; - high?: number | undefined; - low?: number | undefined; - max?: number | string | undefined; - min?: number | string | undefined; - optimum?: number | undefined; - value?: string | ReadonlyArray | number | undefined; - } - interface QuoteHTMLAttributes extends HTMLAttributes { - cite?: string | undefined; - } - interface ObjectHTMLAttributes extends HTMLAttributes { - data?: string | undefined; - form?: string | undefined; - height?: number | string | undefined; - name?: string | undefined; - type?: StringLiteralUnion | undefined; - usemap?: string | undefined; - width?: number | string | undefined; - } - interface OlHTMLAttributes extends HTMLAttributes { - reversed?: boolean | undefined; - start?: number | undefined; - type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined; - } - interface OptgroupHTMLAttributes extends HTMLAttributes { - disabled?: boolean | undefined; - label?: string | undefined; - } - interface OptionHTMLAttributes extends HTMLAttributes { - disabled?: boolean | undefined; - label?: string | undefined; - selected?: boolean | undefined; - value?: string | ReadonlyArray | number | undefined; - } - interface OutputHTMLAttributes extends HTMLAttributes { - form?: string | undefined; - for?: string | undefined; - name?: string | undefined; - } - interface ParamHTMLAttributes extends HTMLAttributes { - name?: string | undefined; - value?: string | ReadonlyArray | number | undefined; - } - interface ProgressHTMLAttributes extends HTMLAttributes { - max?: number | string | undefined; - value?: string | ReadonlyArray | number | undefined; - } - interface SlotHTMLAttributes extends HTMLAttributes { - name?: string | undefined; - } - interface ScriptHTMLAttributes extends HTMLAttributes { - async?: boolean | undefined; - crossorigin?: CrossOrigin; - defer?: boolean | undefined; - integrity?: string | undefined; - nomodule?: boolean | undefined; - referrerpolicy?: HTMLAttributeReferrerPolicy | undefined; - src?: string | undefined; - /** - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type - */ - type?: StringLiteralUnion<'' | 'text/javascript' | 'importmap' | 'module'> | undefined; - crossOrigin?: CrossOrigin; - fetchPriority?: string | undefined; - noModule?: boolean | undefined; - referrer?: HTMLAttributeReferrerPolicy | undefined; - onError?: ((event: Event) => void) | undefined; - onLoad?: ((event: Event) => void) | undefined; - blocking?: 'render' | undefined; - } - interface SelectHTMLAttributes extends HTMLAttributes { - autocomplete?: string | undefined; - disabled?: boolean | undefined; - form?: string | undefined; - multiple?: boolean | undefined; - name?: string | undefined; - required?: boolean | undefined; - size?: number | undefined; - value?: string | ReadonlyArray | number | undefined; - } - type MediaMime = BaseMime & (`image/${string}` | `audio/${string}` | `video/${string}`); - interface SourceHTMLAttributes extends HTMLAttributes { - height?: number | string | undefined; - media?: string | undefined; - sizes?: string | undefined; - src?: string | undefined; - srcset?: string | undefined; - type?: StringLiteralUnion | undefined; - width?: number | string | undefined; - } - interface StyleHTMLAttributes extends HTMLAttributes { - media?: string | undefined; - scoped?: boolean | undefined; - /** - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#type - */ - type?: '' | 'text/css' | undefined; - href?: string | undefined; - precedence?: string | undefined; - title?: string | undefined; - disabled?: boolean | undefined; - blocking?: 'render' | undefined; - } - interface TableHTMLAttributes extends HTMLAttributes { - align?: 'left' | 'center' | 'right' | undefined; - bgcolor?: string | undefined; - border?: number | undefined; - cellpadding?: number | string | undefined; - cellspacing?: number | string | undefined; - frame?: boolean | undefined; - rules?: 'none' | 'groups' | 'rows' | 'columns' | 'all' | undefined; - summary?: string | undefined; - width?: number | string | undefined; - } - interface TextareaHTMLAttributes extends HTMLAttributes { - autocomplete?: string | undefined; - cols?: number | undefined; - dirname?: string | undefined; - disabled?: boolean | undefined; - form?: string | undefined; - maxlength?: number | undefined; - minlength?: number | undefined; - name?: string | undefined; - placeholder?: string | undefined; - readonly?: boolean | undefined; - required?: boolean | undefined; - rows?: number | undefined; - value?: string | ReadonlyArray | number | undefined; - wrap?: string | undefined; - } - interface TdHTMLAttributes extends HTMLAttributes { - align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined; - colspan?: number | undefined; - headers?: string | undefined; - rowspan?: number | undefined; - scope?: string | undefined; - abbr?: string | undefined; - height?: number | string | undefined; - width?: number | string | undefined; - valign?: 'top' | 'middle' | 'bottom' | 'baseline' | undefined; - } - interface ThHTMLAttributes extends HTMLAttributes { - align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined; - colspan?: number | undefined; - headers?: string | undefined; - rowspan?: number | undefined; - scope?: 'row' | 'col' | 'rowgroup' | 'colgroup' | string | undefined; - abbr?: string | undefined; - } - interface TimeHTMLAttributes extends HTMLAttributes { - datetime?: string | undefined; - } - interface TrackHTMLAttributes extends HTMLAttributes { - default?: boolean | undefined; - kind?: string | undefined; - label?: string | undefined; - src?: string | undefined; - srclang?: string | undefined; - } - interface VideoHTMLAttributes extends MediaHTMLAttributes { - height?: number | string | undefined; - playsinline?: boolean | undefined; - poster?: string | undefined; - width?: number | string | undefined; - disablePictureInPicture?: boolean | undefined; - disableRemotePlayback?: boolean | undefined; - } - export interface IntrinsicElements { - a: AnchorHTMLAttributes; - abbr: HTMLAttributes; - address: HTMLAttributes; - area: AreaHTMLAttributes; - article: HTMLAttributes; - aside: HTMLAttributes; - audio: AudioHTMLAttributes; - b: HTMLAttributes; - base: BaseHTMLAttributes; - bdi: HTMLAttributes; - bdo: HTMLAttributes; - big: HTMLAttributes; - blockquote: BlockquoteHTMLAttributes; - body: HTMLAttributes; - br: HTMLAttributes; - button: ButtonHTMLAttributes; - canvas: CanvasHTMLAttributes; - caption: HTMLAttributes; - center: HTMLAttributes; - cite: HTMLAttributes; - code: HTMLAttributes; - col: ColHTMLAttributes; - colgroup: ColgroupHTMLAttributes; - data: DataHTMLAttributes; - datalist: HTMLAttributes; - dd: HTMLAttributes; - del: DelHTMLAttributes; - details: DetailsHTMLAttributes; - dfn: HTMLAttributes; - dialog: DialogHTMLAttributes; - div: HTMLAttributes; - dl: HTMLAttributes; - dt: HTMLAttributes; - em: HTMLAttributes; - embed: EmbedHTMLAttributes; - fieldset: FieldsetHTMLAttributes; - figcaption: HTMLAttributes; - figure: HTMLAttributes; - footer: HTMLAttributes; - form: FormHTMLAttributes; - h1: HTMLAttributes; - h2: HTMLAttributes; - h3: HTMLAttributes; - h4: HTMLAttributes; - h5: HTMLAttributes; - h6: HTMLAttributes; - head: HTMLAttributes; - header: HTMLAttributes; - hgroup: HTMLAttributes; - hr: HTMLAttributes; - html: HtmlHTMLAttributes; - i: HTMLAttributes; - iframe: IframeHTMLAttributes; - img: ImgHTMLAttributes; - input: InputHTMLAttributes; - ins: InsHTMLAttributes; - kbd: HTMLAttributes; - keygen: KeygenHTMLAttributes; - label: LabelHTMLAttributes; - legend: HTMLAttributes; - li: LiHTMLAttributes; - link: LinkHTMLAttributes; - main: HTMLAttributes; - map: MapHTMLAttributes; - mark: HTMLAttributes; - menu: MenuHTMLAttributes; - menuitem: HTMLAttributes; - meta: MetaHTMLAttributes; - meter: MeterHTMLAttributes; - nav: HTMLAttributes; - noscript: HTMLAttributes; - object: ObjectHTMLAttributes; - ol: OlHTMLAttributes; - optgroup: OptgroupHTMLAttributes; - option: OptionHTMLAttributes; - output: OutputHTMLAttributes; - p: HTMLAttributes; - param: ParamHTMLAttributes; - picture: HTMLAttributes; - pre: HTMLAttributes; - progress: ProgressHTMLAttributes; - q: QuoteHTMLAttributes; - rp: HTMLAttributes; - rt: HTMLAttributes; - ruby: HTMLAttributes; - s: HTMLAttributes; - samp: HTMLAttributes; - search: HTMLAttributes; - slot: SlotHTMLAttributes; - script: ScriptHTMLAttributes; - section: HTMLAttributes; - select: SelectHTMLAttributes; - small: HTMLAttributes; - source: SourceHTMLAttributes; - span: HTMLAttributes; - strong: HTMLAttributes; - style: StyleHTMLAttributes; - sub: HTMLAttributes; - summary: HTMLAttributes; - sup: HTMLAttributes; - table: TableHTMLAttributes; - template: HTMLAttributes; - tbody: HTMLAttributes; - td: TdHTMLAttributes; - textarea: TextareaHTMLAttributes; - tfoot: HTMLAttributes; - th: ThHTMLAttributes; - thead: HTMLAttributes; - time: TimeHTMLAttributes; - title: HTMLAttributes; - tr: HTMLAttributes; - track: TrackHTMLAttributes; - u: HTMLAttributes; - ul: HTMLAttributes; - var: HTMLAttributes; - video: VideoHTMLAttributes; - wbr: HTMLAttributes; - } - export {}; -} -export interface IntrinsicElements extends JSX.IntrinsicElements { -} diff --git a/mcp-server/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts deleted file mode 100644 index aa11518..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * This module provides Hono's JSX dev runtime. - */ -import type { JSXNode } from './base'; -export { Fragment } from './base'; -export type { JSX } from './base'; -export declare function jsxDEV(tag: string | Function, props: Record, key?: string): JSXNode; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts deleted file mode 100644 index 41ab669..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module - * This module provides Hono's JSX runtime. - */ -export { jsxDEV as jsx, Fragment } from './jsx-dev-runtime'; -export { jsxDEV as jsxs } from './jsx-dev-runtime'; -export type { JSX } from './jsx-dev-runtime'; -import { html } from '../helper/html'; -import type { HtmlEscapedString } from '../utils/html'; -export { html as jsxTemplate }; -export declare const jsxAttr: (key: string, v: string | Promise | Record) => HtmlEscapedString | Promise; -export declare const jsxEscape: (value: string) => string; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/streaming.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/streaming.d.ts deleted file mode 100644 index 6c85bae..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/streaming.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @module - * This module enables JSX to supports streaming Response. - */ -import type { HtmlEscapedString } from '../utils/html'; -import { JSXNode } from './base'; -import type { FC, PropsWithChildren, Context as JSXContext } from './'; -/** - * Used to specify nonce for scripts generated by `Suspense` and `ErrorBoundary`. - * - * @example - * ```tsx - * - * Loading...

}> - * - * - * - * ``` - */ -export declare const StreamingContext: JSXContext<{ - scriptNonce: string; -} | null>; -/** - * @experimental - * `Suspense` is an experimental feature. - * The API might be changed. - */ -export declare const Suspense: FC>; -/** - * @experimental - * `renderToReadableStream()` is an experimental feature. - * The API might be changed. - */ -export declare const renderToReadableStream: (content: HtmlEscapedString | JSXNode | Promise, onError?: (e: unknown) => string | void) => ReadableStream; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/types.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/types.d.ts deleted file mode 100644 index 2251ba7..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/types.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * All types exported from "hono/jsx" are in this file. - */ -import type { Child, JSXNode } from './base'; -import type { JSX } from './intrinsic-elements'; -export type { Child, JSXNode, FC } from './base'; -export type { RefObject } from './hooks'; -export type { Context } from './context'; -export type PropsWithChildren

= P & { - children?: Child | undefined; -}; -export type CSSProperties = JSX.CSSProperties; -/** - * React types - */ -type ReactElement

= JSXNode & { - type: T; - props: P; - key: string | null; -}; -type ReactNode = ReactElement | string | number | boolean | null | undefined; -type ComponentClass

= unknown; -export type { ReactElement, ReactNode, ComponentClass }; -export type Event = globalThis.Event; -export type MouseEvent = globalThis.MouseEvent; -export type KeyboardEvent = globalThis.KeyboardEvent; -export type FocusEvent = globalThis.FocusEvent; -export type ClipboardEvent = globalThis.ClipboardEvent; -export type InputEvent = globalThis.InputEvent; -export type PointerEvent = globalThis.PointerEvent; -export type TouchEvent = globalThis.TouchEvent; -export type WheelEvent = globalThis.WheelEvent; -export type AnimationEvent = globalThis.AnimationEvent; -export type TransitionEvent = globalThis.TransitionEvent; -export type DragEvent = globalThis.DragEvent; diff --git a/mcp-server/node_modules/hono/dist/types/jsx/utils.d.ts b/mcp-server/node_modules/hono/dist/types/jsx/utils.d.ts deleted file mode 100644 index 8dd469a..0000000 --- a/mcp-server/node_modules/hono/dist/types/jsx/utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const normalizeIntrinsicElementKey: (key: string) => string; -export declare const styleObjectForEach: (style: Record, fn: (key: string, value: string | null) => void) => void; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts deleted file mode 100644 index 80cb793..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @module - * Basic Auth Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type MessageFunction = (c: Context) => string | object | Promise; -type BasicAuthOptions = { - username: string; - password: string; - realm?: string; - hashFunction?: Function; - invalidUserMessage?: string | object | MessageFunction; -} | { - verifyUser: (username: string, password: string, c: Context) => boolean | Promise; - realm?: string; - hashFunction?: Function; - invalidUserMessage?: string | object | MessageFunction; -}; -/** - * Basic Auth Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/basic-auth} - * - * @param {BasicAuthOptions} options - The options for the basic authentication middleware. - * @param {string} options.username - The username for authentication. - * @param {string} options.password - The password for authentication. - * @param {string} [options.realm="Secure Area"] - The realm attribute for the WWW-Authenticate header. - * @param {Function} [options.hashFunction] - The hash function used for secure comparison. - * @param {Function} [options.verifyUser] - The function to verify user credentials. - * @param {string | object | MessageFunction} [options.invalidUserMessage="Unauthorized"] - The invalid user message. - * @returns {MiddlewareHandler} The middleware handler function. - * @throws {HTTPException} If neither "username and password" nor "verifyUser" options are provided. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use( - * '/auth/*', - * basicAuth({ - * username: 'hono', - * password: 'ahotproject', - * }) - * ) - * - * app.get('/auth/page', (c) => { - * return c.text('You are authorized') - * }) - * ``` - */ -export declare const basicAuth: (options: BasicAuthOptions, ...users: { - username: string; - password: string; -}[]) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts deleted file mode 100644 index 6164585..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @module - * Bearer Auth Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type MessageFunction = (c: Context) => string | object | Promise; -type CustomizedErrorResponseOptions = { - wwwAuthenticateHeader?: string | object | MessageFunction; - message?: string | object | MessageFunction; -}; -type BearerAuthOptions = { - token: string | string[]; - realm?: string; - prefix?: string; - headerName?: string; - hashFunction?: Function; - /** - * @deprecated Use noAuthenticationHeader.message instead - */ - noAuthenticationHeaderMessage?: string | object | MessageFunction; - noAuthenticationHeader?: CustomizedErrorResponseOptions; - /** - * @deprecated Use invalidAuthenticationHeader.message instead - */ - invalidAuthenticationHeaderMessage?: string | object | MessageFunction; - invalidAuthenticationHeader?: CustomizedErrorResponseOptions; - /** - * @deprecated Use invalidToken.message instead - */ - invalidTokenMessage?: string | object | MessageFunction; - invalidToken?: CustomizedErrorResponseOptions; -} | { - realm?: string; - prefix?: string; - headerName?: string; - verifyToken: (token: string, c: Context) => boolean | Promise; - hashFunction?: Function; - /** - * @deprecated Use noAuthenticationHeader.message instead - */ - noAuthenticationHeaderMessage?: string | object | MessageFunction; - noAuthenticationHeader?: CustomizedErrorResponseOptions; - /** - * @deprecated Use invalidAuthenticationHeader.message instead - */ - invalidAuthenticationHeaderMessage?: string | object | MessageFunction; - invalidAuthenticationHeader?: CustomizedErrorResponseOptions; - /** - * @deprecated Use invalidToken.message instead - */ - invalidTokenMessage?: string | object | MessageFunction; - invalidToken?: CustomizedErrorResponseOptions; -}; -/** - * Bearer Auth Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/bearer-auth} - * - * @param {BearerAuthOptions} options - The options for the bearer authentication middleware. - * @param {string | string[]} [options.token] - The string or array of strings to validate the incoming bearer token against. - * @param {Function} [options.verifyToken] - The function to verify the token. - * @param {string} [options.realm=""] - The domain name of the realm, as part of the returned WWW-Authenticate challenge header. - * @param {string} [options.prefix="Bearer"] - The prefix (or known as `schema`) for the Authorization header value. If set to the empty string, no prefix is expected. - * @param {string} [options.headerName=Authorization] - The header name. - * @param {Function} [options.hashFunction] - A function to handle hashing for safe comparison of authentication tokens. - * @param {string | object | MessageFunction} [options.noAuthenticationHeader.message="Unauthorized"] - The no authentication header message. - * @param {string | object | MessageFunction} [options.noAuthenticationHeader.wwwAuthenticateHeader="Bearer realm=\"\""] - The response header value for the WWW-Authenticate header when no authentication header is provided. - * @param {string | object | MessageFunction} [options.invalidAuthenticationHeader.message="Bad Request"] - The invalid authentication header message. - * @param {string | object | MessageFunction} [options.invalidAuthenticationHeader.wwwAuthenticateHeader="Bearer error=\"invalid_request\""] - The response header value for the WWW-Authenticate header when authentication header is invalid. - * @param {string | object | MessageFunction} [options.invalidToken.message="Unauthorized"] - The invalid token message. - * @param {string | object | MessageFunction} [options.invalidToken.wwwAuthenticateHeader="Bearer error=\"invalid_token\""] - The response header value for the WWW-Authenticate header when token is invalid. - * @returns {MiddlewareHandler} The middleware handler function. - * @throws {Error} If neither "token" nor "verifyToken" options are provided. - * @throws {HTTPException} If authentication fails, with 401 status code for missing or invalid token, or 400 status code for invalid request. - * - * @example - * ```ts - * const app = new Hono() - * - * const token = 'honoishot' - * - * app.use('/api/*', bearerAuth({ token })) - * - * app.get('/api/page', (c) => { - * return c.json({ message: 'You are authorized' }) - * }) - * ``` - */ -export declare const bearerAuth: (options: BearerAuthOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/body-limit/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/body-limit/index.d.ts deleted file mode 100644 index 754e9ec..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @module - * Body Limit Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type OnError = (c: Context) => Response | Promise; -type BodyLimitOptions = { - maxSize: number; - onError?: OnError; -}; -/** - * Body Limit Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/body-limit} - * - * @param {BodyLimitOptions} options - The options for the body limit middleware. - * @param {number} options.maxSize - The maximum body size allowed. - * @param {OnError} [options.onError] - The error handler to be invoked if the specified body size is exceeded. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.post( - * '/upload', - * bodyLimit({ - * maxSize: 50 * 1024, // 50kb - * onError: (c) => { - * return c.text('overflow :(', 413) - * }, - * }), - * async (c) => { - * const body = await c.req.parseBody() - * if (body['file'] instanceof File) { - * console.log(`Got file sized: ${body['file'].size}`) - * } - * return c.text('pass :)') - * } - * ) - * ``` - */ -export declare const bodyLimit: (options: BodyLimitOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/cache/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/cache/index.d.ts deleted file mode 100644 index 5d03727..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/cache/index.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @module - * Cache Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -import type { StatusCode } from '../../utils/http-status'; -/** - * Cache Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/cache} - * - * @param {Object} options - The options for the cache middleware. - * @param {string | Function} options.cacheName - The name of the cache. Can be used to store multiple caches with different identifiers. - * @param {boolean} [options.wait=false] - A boolean indicating if Hono should wait for the Promise of the `cache.put` function to resolve before continuing with the request. Required to be true for the Deno environment. - * @param {string} [options.cacheControl] - A string of directives for the `Cache-Control` header. - * @param {string | string[]} [options.vary] - Sets the `Vary` header in the response. If the original response header already contains a `Vary` header, the values are merged, removing any duplicates. - * @param {Function} [options.keyGenerator] - Generates keys for every request in the `cacheName` store. This can be used to cache data based on request parameters or context parameters. - * @param {number[]} [options.cacheableStatusCodes=[200]] - An array of status codes that can be cached. - * @returns {MiddlewareHandler} The middleware handler function. - * @throws {Error} If the `vary` option includes "*". - * - * @example - * ```ts - * app.get( - * '*', - * cache({ - * cacheName: 'my-app', - * cacheControl: 'max-age=3600', - * }) - * ) - * ``` - */ -export declare const cache: (options: { - cacheName: string | ((c: Context) => Promise | string); - wait?: boolean; - cacheControl?: string; - vary?: string | string[]; - keyGenerator?: (c: Context) => Promise | string; - cacheableStatusCodes?: StatusCode[]; -}) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/combine/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/combine/index.d.ts deleted file mode 100644 index 57e53dc..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/combine/index.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -/** - * @module - * Combine Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type Condition = (c: Context) => boolean; -/** - * Create a composed middleware that runs the first middleware that returns true. - * - * @param middleware - An array of MiddlewareHandler or Condition functions. - * Middleware is applied in the order it is passed, and if any middleware exits without returning - * an exception first, subsequent middleware will not be executed. - * You can also pass a condition function that returns a boolean value. If returns true - * the evaluation will be halted, and rest of the middleware will not be executed. - * @returns A composed middleware. - * - * @example - * ```ts - * import { some } from 'hono/combine' - * import { bearerAuth } from 'hono/bearer-auth' - * import { myRateLimit } from '@/rate-limit' - * - * // If client has a valid token, then skip rate limiting. - * // Otherwise, apply rate limiting. - * app.use('/api/*', some( - * bearerAuth({ token }), - * myRateLimit({ limit: 100 }), - * )); - * ``` - */ -export declare const some: (...middleware: (MiddlewareHandler | Condition)[]) => MiddlewareHandler; -/** - * Create a composed middleware that runs all middleware and throws an error if any of them fail. - * - * @param middleware - An array of MiddlewareHandler or Condition functions. - * Middleware is applied in the order it is passed, and if any middleware throws an error, - * subsequent middleware will not be executed. - * You can also pass a condition function that returns a boolean value. If returns false - * the evaluation will be halted, and rest of the middleware will not be executed. - * @returns A composed middleware. - * - * @example - * ```ts - * import { some, every } from 'hono/combine' - * import { bearerAuth } from 'hono/bearer-auth' - * import { myCheckLocalNetwork } from '@/check-local-network' - * import { myRateLimit } from '@/rate-limit' - * - * // If client is in local network, then skip authentication and rate limiting. - * // Otherwise, apply authentication and rate limiting. - * app.use('/api/*', some( - * myCheckLocalNetwork(), - * every( - * bearerAuth({ token }), - * myRateLimit({ limit: 100 }), - * ), - * )); - * ``` - */ -export declare const every: (...middleware: (MiddlewareHandler | Condition)[]) => MiddlewareHandler; -/** - * Create a composed middleware that runs all middleware except when the condition is met. - * - * @param condition - A string or Condition function. - * If there are multiple targets to match any of them, they can be passed as an array. - * If a string is passed, it will be treated as a path pattern to match. - * If a Condition function is passed, it will be evaluated against the request context. - * @param middleware - A composed middleware - * - * @example - * ```ts - * import { except } from 'hono/combine' - * import { bearerAuth } from 'hono/bearer-auth - * - * // If client is accessing public API, then skip authentication. - * // Otherwise, require a valid token. - * app.use('/api/*', except( - * '/api/public/*', - * bearerAuth({ token }), - * )); - * ``` - */ -export declare const except: (condition: string | Condition | (string | Condition)[], ...middleware: MiddlewareHandler[]) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/compress/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/compress/index.d.ts deleted file mode 100644 index aa8f937..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/compress/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @module - * Compress Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -declare const ENCODING_TYPES: readonly ["gzip", "deflate"]; -interface CompressionOptions { - encoding?: (typeof ENCODING_TYPES)[number]; - threshold?: number; -} -/** - * Compress Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/compress} - * - * @param {CompressionOptions} [options] - The options for the compress middleware. - * @param {'gzip' | 'deflate'} [options.encoding] - The compression scheme to allow for response compression. Either 'gzip' or 'deflate'. If not defined, both are allowed and will be used based on the Accept-Encoding header. 'gzip' is prioritized if this option is not provided and the client provides both in the Accept-Encoding header. - * @param {number} [options.threshold=1024] - The minimum size in bytes to compress. Defaults to 1024 bytes. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use(compress()) - * ``` - */ -export declare const compress: (options?: CompressionOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/context-storage/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/context-storage/index.d.ts deleted file mode 100644 index 6e6301b..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @module - * Context Storage Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { Env, MiddlewareHandler } from '../../types'; -/** - * Context Storage Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/context-storage} - * - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * type Env = { - * Variables: { - * message: string - * } - * } - * - * const app = new Hono() - * - * app.use(contextStorage()) - * - * app.use(async (c, next) => { - * c.set('message', 'Hono is hot!!) - * await next() - * }) - * - * app.get('/', async (c) => { c.text(getMessage()) }) - * - * const getMessage = () => { - * return getContext().var.message - * } - * ``` - */ -export declare const contextStorage: () => MiddlewareHandler; -export declare const tryGetContext: () => Context | undefined; -export declare const getContext: () => Context; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/cors/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/cors/index.d.ts deleted file mode 100644 index c23fb3e..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/cors/index.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @module - * CORS Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type CORSOptions = { - origin: string | string[] | ((origin: string, c: Context) => Promise | string | undefined | null); - allowMethods?: string[] | ((origin: string, c: Context) => Promise | string[]); - allowHeaders?: string[]; - maxAge?: number; - credentials?: boolean; - exposeHeaders?: string[]; -}; -/** - * CORS Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/cors} - * - * @param {CORSOptions} [options] - The options for the CORS middleware. - * @param {string | string[] | ((origin: string, c: Context) => Promise | string | undefined | null)} [options.origin='*'] - The value of "Access-Control-Allow-Origin" CORS header. - * @param {string[] | ((origin: string, c: Context) => Promise | string[])} [options.allowMethods=['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH']] - The value of "Access-Control-Allow-Methods" CORS header. - * @param {string[]} [options.allowHeaders=[]] - The value of "Access-Control-Allow-Headers" CORS header. - * @param {number} [options.maxAge] - The value of "Access-Control-Max-Age" CORS header. - * @param {boolean} [options.credentials] - The value of "Access-Control-Allow-Credentials" CORS header. - * @param {string[]} [options.exposeHeaders=[]] - The value of "Access-Control-Expose-Headers" CORS header. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use('/api/*', cors()) - * app.use( - * '/api2/*', - * cors({ - * origin: 'http://example.com', - * allowHeaders: ['X-Custom-Header', 'Upgrade-Insecure-Requests'], - * allowMethods: ['POST', 'GET', 'OPTIONS'], - * exposeHeaders: ['Content-Length', 'X-Kuma-Revision'], - * maxAge: 600, - * credentials: true, - * }) - * ) - * - * app.all('/api/abc', (c) => { - * return c.json({ success: true }) - * }) - * app.all('/api2/abc', (c) => { - * return c.json({ success: true }) - * }) - * ``` - */ -export declare const cors: (options?: CORSOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/csrf/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/csrf/index.d.ts deleted file mode 100644 index fc47854..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/csrf/index.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @module - * CSRF Protection Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -type IsAllowedOriginHandler = (origin: string, context: Context) => boolean | Promise; -declare const secFetchSiteValues: readonly ["same-origin", "same-site", "none", "cross-site"]; -type SecFetchSite = (typeof secFetchSiteValues)[number]; -type IsAllowedSecFetchSiteHandler = (secFetchSite: SecFetchSite, context: Context) => boolean | Promise; -interface CSRFOptions { - origin?: string | string[] | IsAllowedOriginHandler; - secFetchSite?: SecFetchSite | SecFetchSite[] | IsAllowedSecFetchSiteHandler; -} -/** - * CSRF Protection Middleware for Hono. - * - * Protects against Cross-Site Request Forgery attacks by validating request origins - * and sec-fetch-site headers. The request is allowed if either validation passes. - * - * @see {@link https://hono.dev/docs/middleware/builtin/csrf} - * - * @param {CSRFOptions} [options] - The options for the CSRF protection middleware. - * @param {string|string[]|(origin: string, context: Context) => boolean} [options.origin] - - * Allowed origins for requests. - * - string: Single allowed origin (e.g., 'https://example.com') - * - string[]: Multiple allowed origins - * - function: Custom validation logic - * - Default: Only same origin as the request URL - * @param {string|string[]|(secFetchSite: string, context: Context) => boolean} [options.secFetchSite] - - * Sec-Fetch-Site header validation. Standard values include 'same-origin', 'same-site', 'cross-site', 'none'. - * - string: Single allowed value (e.g., 'same-origin') - * - string[]: Multiple allowed values (e.g., ['same-origin', 'same-site']) - * - function: Custom validation with access to context - * - Default: Only allows 'same-origin' - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * // Default: both origin and sec-fetch-site validation - * app.use('*', csrf()) - * - * // Allow specific origins - * app.use('*', csrf({ origin: 'https://example.com' })) - * app.use('*', csrf({ origin: ['https://app.com', 'https://api.com'] })) - * - * // Allow specific sec-fetch-site values - * app.use('*', csrf({ secFetchSite: 'same-origin' })) - * app.use('*', csrf({ secFetchSite: ['same-origin', 'same-site'] })) - * - * // Dynamic sec-fetch-site validation - * app.use('*', csrf({ - * secFetchSite: (secFetchSite, c) => { - * // Always allow same-origin - * if (secFetchSite === 'same-origin') return true - * // Allow cross-site for webhook endpoints - * if (secFetchSite === 'cross-site' && c.req.path.startsWith('/webhook/')) { - * return true - * } - * return false - * } - * })) - * - * // Dynamic origin validation - * app.use('*', csrf({ - * origin: (origin, c) => { - * // Allow same origin - * if (origin === new URL(c.req.url).origin) return true - * // Allow specific trusted domains - * return ['https://app.example.com', 'https://admin.example.com'].includes(origin) - * } - * })) - * ``` - */ -export declare const csrf: (options?: CSRFOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/etag/digest.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/etag/digest.d.ts deleted file mode 100644 index dcc773a..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/etag/digest.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const generateDigest: (stream: ReadableStream> | null, generator: (body: Uint8Array) => ArrayBuffer | Promise) => Promise; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/etag/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/etag/index.d.ts deleted file mode 100644 index 415d028..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/etag/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @module - * ETag Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -type ETagOptions = { - retainedHeaders?: string[]; - weak?: boolean; - generateDigest?: (body: Uint8Array) => ArrayBuffer | Promise; -}; -/** - * Default headers to pass through on 304 responses. From the spec: - * > The response must not contain a body and must include the headers that - * > would have been sent in an equivalent 200 OK response: Cache-Control, - * > Content-Location, Date, ETag, Expires, and Vary. - */ -export declare const RETAINED_304_HEADERS: string[]; -/** - * ETag Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/etag} - * - * @param {ETagOptions} [options] - The options for the ETag middleware. - * @param {boolean} [options.weak=false] - Define using or not using a weak validation. If true is set, then `W/` is added to the prefix of the value. - * @param {string[]} [options.retainedHeaders=RETAINED_304_HEADERS] - The headers that you want to retain in the 304 Response. - * @param {function(Uint8Array): ArrayBuffer | Promise} [options.generateDigest] - - * A custom digest generation function. By default, it uses 'SHA-1' - * This function is called with the response body as a `Uint8Array` and should return a hash as an `ArrayBuffer` or a Promise of one. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use('/etag/*', etag()) - * app.get('/etag/abc', (c) => { - * return c.text('Hono is hot') - * }) - * ``` - */ -export declare const etag: (options?: ETagOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts deleted file mode 100644 index a21aa0b..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * IP Restriction Middleware for Hono - * @module - */ -import type { Context, MiddlewareHandler } from '../..'; -import type { AddressType, GetConnInfo } from '../../helper/conninfo'; -/** - * Function to get IP Address - */ -type GetIPAddr = GetConnInfo | ((c: Context) => string); -export type IPRestrictionRule = string | ((addr: { - addr: string; - type: AddressType; -}) => boolean); -/** - * Rules for IP Restriction Middleware - */ -export interface IPRestrictionRules { - denyList?: IPRestrictionRule[]; - allowList?: IPRestrictionRule[]; -} -/** - * IP Restriction Middleware - * - * @param getIP function to get IP Address - */ -export declare const ipRestriction: (getIP: GetIPAddr, { denyList, allowList }: IPRestrictionRules, onError?: (remote: { - addr: string; - type: AddressType; -}, c: Context) => Response | Promise) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts deleted file mode 100644 index f5bfc57..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @module - * JSX Renderer Middleware for Hono. - */ -import type { Context, PropsForRenderer } from '../../context'; -import type { FC, Context as JSXContext, PropsWithChildren } from '../../jsx'; -import type { Env, Input, MiddlewareHandler } from '../../types'; -import type { HtmlEscapedString } from '../../utils/html'; -export declare const RequestContext: JSXContext | null>; -type RendererOptions = { - docType?: boolean | string; - stream?: boolean | Record; -}; -type ComponentWithChildren = (props: PropsWithChildren, c: Context) => HtmlEscapedString | Promise; -/** - * JSX Renderer Middleware for hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/jsx-renderer} - * - * @param {ComponentWithChildren} [component] - The component to render, which can accept children and props. - * @param {RendererOptions} [options] - The options for the JSX renderer middleware. - * @param {boolean | string} [options.docType=true] - The DOCTYPE to be added at the beginning of the HTML. If set to false, no DOCTYPE will be added. - * @param {boolean | Record} [options.stream=false] - If set to true, enables streaming response with default headers. If a record is provided, custom headers will be used. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.get( - * '/page/*', - * jsxRenderer(({ children }) => { - * return ( - * - * - *

Menu
- *
{children}
- * - * - * ) - * }) - * ) - * - * app.get('/page/about', (c) => { - * return c.render(

About me!

) - * }) - * ``` - */ -export declare const jsxRenderer: (component?: ComponentWithChildren, options?: RendererOptions) => MiddlewareHandler; -/** - * useRequestContext for Hono. - * - * @template E - The environment type. - * @template P - The parameter type. - * @template I - The input type. - * @returns {Context} An instance of Context. - * - * @example - * ```ts - * const RequestUrlBadge: FC = () => { - * const c = useRequestContext() - * return {c.req.url} - * } - * - * app.get('/page/info', (c) => { - * return c.render( - *
- * You are accessing: - *
- * ) - * }) - * ``` - */ -export declare const useRequestContext: () => Context; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/jwk/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/jwk/index.d.ts deleted file mode 100644 index ff7158d..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/jwk/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { jwk } from './jwk'; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts deleted file mode 100644 index e8f1997..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @module - * JWK Auth Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -import type { CookiePrefixOptions } from '../../utils/cookie'; -import '../../context'; -import type { HonoJsonWebKey } from '../../utils/jwt/jws'; -import type { VerifyOptions } from '../../utils/jwt/jwt'; -/** - * JWK Auth Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/jwk} - * - * @param {object} options - The options for the JWK middleware. - * @param {HonoJsonWebKey[] | ((ctx: Context) => Promise | HonoJsonWebKey[])} [options.keys] - The public keys used for JWK verification, or a function that returns them. - * @param {string | ((ctx: Context) => Promise | string)} [options.jwks_uri] - If set to a URI string or a function that returns a URI string, attempt to fetch JWKs from it. The response must be a JSON object containing a `keys` array, which will be merged with the `keys` option. - * @param {boolean} [options.allow_anon] - If set to `true`, the middleware allows requests without a token to proceed without authentication. - * @param {string} [options.cookie] - If set, the middleware attempts to retrieve the token from a cookie with these options (optionally signed) only if no token is found in the header. - * @param {string} [options.headerName='Authorization'] - The name of the header to look for the JWT token. Default is 'Authorization'. - * @param {RequestInit} [init] - Optional init options for the `fetch` request when retrieving JWKS from a URI. - * @param {VerifyOptions} [options.verification] - Additional options for JWK payload verification. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use("/auth/*", jwk({ - * jwks_uri: (c) => `https://${c.env.authServer}/.well-known/jwks.json`, - * headerName: 'x-custom-auth-header', // Optional, default is 'Authorization' - * })) - * - * app.get('/auth/page', (c) => { - * return c.text('You are authorized') - * }) - * ``` - */ -export declare const jwk: (options: { - keys?: HonoJsonWebKey[] | ((ctx: Context) => Promise | HonoJsonWebKey[]); - jwks_uri?: string | ((ctx: Context) => Promise | string); - allow_anon?: boolean; - cookie?: string | { - key: string; - secret?: string | BufferSource; - prefixOptions?: CookiePrefixOptions; - }; - headerName?: string; - verification?: VerifyOptions; -}, init?: RequestInit) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/jwt/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/jwt/index.d.ts deleted file mode 100644 index 4370088..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/jwt/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { JwtVariables } from './jwt'; -export type { JwtVariables }; -export { jwt, verifyWithJwks, verify, decode, sign } from './jwt'; -declare module '../..' { - interface ContextVariableMap extends JwtVariables { - } -} diff --git a/mcp-server/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts deleted file mode 100644 index 04b2b16..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @module - * JWT Auth Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -import type { CookiePrefixOptions } from '../../utils/cookie'; -import '../../context'; -import type { SignatureAlgorithm } from '../../utils/jwt/jwa'; -import type { SignatureKey } from '../../utils/jwt/jws'; -import type { VerifyOptions } from '../../utils/jwt/jwt'; -export type JwtVariables = { - jwtPayload: T; -}; -/** - * JWT Auth Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/jwt} - * - * @param {object} options - The options for the JWT middleware. - * @param {SignatureKey} [options.secret] - A value of your secret key. - * @param {string} [options.cookie] - If this value is set, then the value is retrieved from the cookie header using that value as a key, which is then validated as a token. - * @param {SignatureAlgorithm} [options.alg=HS256] - An algorithm type that is used for verifying. Available types are `HS256` | `HS384` | `HS512` | `RS256` | `RS384` | `RS512` | `PS256` | `PS384` | `PS512` | `ES256` | `ES384` | `ES512` | `EdDSA`. - * @param {string} [options.headerName='Authorization'] - The name of the header to look for the JWT token. Default is 'Authorization'. - * @param {VerifyOptions} [options.verification] - Additional options for JWT payload verification. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use( - * '/auth/*', - * jwt({ - * secret: 'it-is-very-secret', - * headerName: 'x-custom-auth-header', // Optional, default is 'Authorization' - * }) - * ) - * - * app.get('/auth/page', (c) => { - * return c.text('You are authorized') - * }) - * ``` - */ -export declare const jwt: (options: { - secret: SignatureKey; - cookie?: string | { - key: string; - secret?: string | BufferSource; - prefixOptions?: CookiePrefixOptions; - }; - alg?: SignatureAlgorithm; - headerName?: string; - verification?: VerifyOptions; -}) => MiddlewareHandler; -export declare const verifyWithJwks: (token: string, options: { - keys?: import("../../utils/jwt/jws").HonoJsonWebKey[]; - jwks_uri?: string; - verification?: VerifyOptions; -}, init?: RequestInit) => Promise; -export declare const verify: (token: string, publicKey: SignatureKey, algOrOptions?: SignatureAlgorithm | import("../../utils/jwt/jwt").VerifyOptionsWithAlg) => Promise; -export declare const decode: (token: string) => { - header: import("../../utils/jwt/jwt").TokenHeader; - payload: import("../../utils/jwt/types").JWTPayload; -}; -export declare const sign: (payload: import("../../utils/jwt/types").JWTPayload, privateKey: SignatureKey, alg?: SignatureAlgorithm) => Promise; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/language/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/language/index.d.ts deleted file mode 100644 index 51cc2ee..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/language/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { LanguageVariables, DetectorOptions, DetectorType, CacheType } from './language'; -export type { LanguageVariables, DetectorOptions, DetectorType, CacheType }; -export { languageDetector, detectFromCookie, detectFromHeader, detectFromPath, detectFromQuery, } from './language'; -declare module '../..' { - interface ContextVariableMap extends LanguageVariables { - } -} diff --git a/mcp-server/node_modules/hono/dist/types/middleware/language/language.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/language/language.d.ts deleted file mode 100644 index d4be43b..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/language/language.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @module - * Language module for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -export type DetectorType = 'path' | 'querystring' | 'cookie' | 'header'; -export type CacheType = 'cookie'; -export interface DetectorOptions { - /** Order of language detection strategies */ - order: DetectorType[]; - /** Query parameter name for language */ - lookupQueryString: string; - /** Cookie name for language */ - lookupCookie: string; - /** Index in URL path where language code appears */ - lookupFromPathIndex: number; - /** Header key for language detection */ - lookupFromHeaderKey: string; - /** Caching strategies */ - caches: CacheType[] | false; - /** Cookie configuration options */ - cookieOptions?: { - domain?: string; - path?: string; - sameSite?: 'Strict' | 'Lax' | 'None'; - secure?: boolean; - maxAge?: number; - httpOnly?: boolean; - }; - /** Whether to ignore case in language codes */ - ignoreCase: boolean; - /** Default language if none detected */ - fallbackLanguage: string; - /** List of supported language codes */ - supportedLanguages: string[]; - /** Optional function to transform detected language codes */ - convertDetectedLanguage?: (lang: string) => string; - /** Enable debug logging */ - debug?: boolean; -} -export interface LanguageVariables { - language: string; -} -export declare const DEFAULT_OPTIONS: DetectorOptions; -/** - * Parse Accept-Language header values with quality scores - * @param header Accept-Language header string - * @returns Array of parsed languages with quality scores - */ -export declare function parseAcceptLanguage(header: string): Array<{ - lang: string; - q: number; -}>; -/** - * Validate and normalize language codes - * @param lang Language code to normalize - * @param options Detector options - * @returns Normalized language code or undefined - */ -export declare const normalizeLanguage: (lang: string | null | undefined, options: DetectorOptions) => string | undefined; -/** - * Detects language from query parameter - */ -export declare const detectFromQuery: (c: Context, options: DetectorOptions) => string | undefined; -/** - * Detects language from cookie - */ -export declare const detectFromCookie: (c: Context, options: DetectorOptions) => string | undefined; -/** - * Detects language from Accept-Language header - */ -export declare function detectFromHeader(c: Context, options: DetectorOptions): string | undefined; -/** - * Detects language from URL path - */ -export declare function detectFromPath(c: Context, options: DetectorOptions): string | undefined; -/** - * Collection of all language detection strategies - */ -export declare const detectors: { - readonly querystring: (c: Context, options: DetectorOptions) => string | undefined; - readonly cookie: (c: Context, options: DetectorOptions) => string | undefined; - readonly header: typeof detectFromHeader; - readonly path: typeof detectFromPath; -}; -/** Type for detector functions */ -export type DetectorFunction = (c: Context, options: DetectorOptions) => string | undefined; -/** Type-safe detector map */ -export type Detectors = Record; -/** - * Validate detector options - * @param options Detector options to validate - * @throws Error if options are invalid - */ -export declare function validateOptions(options: DetectorOptions): void; -/** - * Language detector middleware factory - * @param userOptions Configuration options for the language detector - * @returns Hono middleware function - */ -export declare const languageDetector: (userOptions: Partial) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/logger/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/logger/index.d.ts deleted file mode 100644 index a36100e..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/logger/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @module - * Logger Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -type PrintFunc = (str: string, ...rest: string[]) => void; -/** - * Logger Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/logger} - * - * @param {PrintFunc} [fn=console.log] - Optional function for customized logging behavior. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use(logger()) - * app.get('/', (c) => c.text('Hello Hono!')) - * ``` - */ -export declare const logger: (fn?: PrintFunc) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/method-override/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/method-override/index.d.ts deleted file mode 100644 index 0217975..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/method-override/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @module - * Method Override Middleware for Hono. - */ -import type { Hono } from '../../hono'; -import type { MiddlewareHandler } from '../../types'; -type MethodOverrideOptions = { - app: Hono; -} & ({ - form?: string; - header?: never; - query?: never; -} | { - form?: never; - header: string; - query?: never; -} | { - form?: never; - header?: never; - query: string; -}); -/** - * Method Override Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/method-override} - * - * @param {MethodOverrideOptions} options - The options for the method override middleware. - * @param {Hono} options.app - The instance of Hono is used in your application. - * @param {string} [options.form=_method] - Form key with a value containing the method name. - * @param {string} [options.header] - Header name with a value containing the method name. - * @param {string} [options.query] - Query parameter key with a value containing the method name. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * // If no options are specified, the value of `_method` in the form, - * // e.g. DELETE, is used as the method. - * app.use('/posts', methodOverride({ app })) - * - * app.delete('/posts', (c) => { - * // .... - * }) - * ``` - */ -export declare const methodOverride: (options: MethodOverrideOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/powered-by/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/powered-by/index.d.ts deleted file mode 100644 index 9091970..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @module - * Powered By Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -type PoweredByOptions = { - /** - * The value for X-Powered-By header. - * @default Hono - */ - serverName?: string; -}; -/** - * Powered By Middleware for Hono. - * - * @param options - The options for the Powered By Middleware. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * import { poweredBy } from 'hono/powered-by' - * - * const app = new Hono() - * - * app.use(poweredBy()) // With options: poweredBy({ serverName: "My Server" }) - * ``` - */ -export declare const poweredBy: (options?: PoweredByOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts deleted file mode 100644 index 256d4ce..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @module - * Pretty JSON Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -interface PrettyOptions { - /** - * Number of spaces for indentation. - * @default 2 - */ - space?: number; - /** - * Query conditions for when to Pretty. - * @default 'pretty' - */ - query?: string; - /** - * Force prettification of JSON responses regardless of query parameters. - * @default false - */ - force?: boolean; -} -/** - * Pretty JSON Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/pretty-json} - * - * @param options - The options for the pretty JSON middleware. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use(prettyJSON()) // With options: prettyJSON({ space: 4 }) - * app.get('/', (c) => { - * return c.json({ message: 'Hono!' }) - * }) - * ``` - */ -export declare const prettyJSON: (options?: PrettyOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/request-id/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/request-id/index.d.ts deleted file mode 100644 index dc895b9..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/request-id/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { RequestIdVariables } from './request-id'; -export type { RequestIdVariables }; -export { requestId } from './request-id'; -declare module '../..' { - interface ContextVariableMap extends RequestIdVariables { - } -} diff --git a/mcp-server/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts deleted file mode 100644 index dd1fdea..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @module - * Request ID Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -export type RequestIdVariables = { - requestId: string; -}; -export type RequestIdOptions = { - limitLength?: number; - headerName?: string; - generator?: (c: Context) => string; -}; -/** - * Request ID Middleware for Hono. - * - * @param {object} options - Options for Request ID middleware. - * @param {number} [options.limitLength=255] - The maximum length of request id. - * @param {string} [options.headerName=X-Request-Id] - The header name used in request id. - * @param {generator} [options.generator=() => crypto.randomUUID()] - The request id generation function. - * - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * type Variables = RequestIdVariables - * const app = new Hono<{Variables: Variables}>() - * - * app.use(requestId()) - * app.get('/', (c) => { - * console.log(c.get('requestId')) // Debug - * return c.text('Hello World!') - * }) - * ``` - */ -export declare const requestId: ({ limitLength, headerName, generator, }?: RequestIdOptions) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts deleted file mode 100644 index 6e351a8..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type { ContentSecurityPolicyOptionHandler } from './secure-headers'; -export { NONCE, secureHeaders } from './secure-headers'; -import type { SecureHeadersVariables } from './secure-headers'; -export type { SecureHeadersVariables }; -declare module '../..' { - interface ContextVariableMap extends SecureHeadersVariables { - } -} diff --git a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts deleted file mode 100644 index 1a4c40e..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type PermissionsPolicyDirective = StandardizedFeatures | ProposedFeatures | ExperimentalFeatures; -/** - * These features have been declared in a published version of the respective specification. - */ -type StandardizedFeatures = 'accelerometer' | 'ambientLightSensor' | 'attributionReporting' | 'autoplay' | 'battery' | 'bluetooth' | 'camera' | 'chUa' | 'chUaArch' | 'chUaBitness' | 'chUaFullVersion' | 'chUaFullVersionList' | 'chUaMobile' | 'chUaModel' | 'chUaPlatform' | 'chUaPlatformVersion' | 'chUaWow64' | 'computePressure' | 'crossOriginIsolated' | 'directSockets' | 'displayCapture' | 'encryptedMedia' | 'executionWhileNotRendered' | 'executionWhileOutOfViewport' | 'fullscreen' | 'geolocation' | 'gyroscope' | 'hid' | 'identityCredentialsGet' | 'idleDetection' | 'keyboardMap' | 'magnetometer' | 'microphone' | 'midi' | 'navigationOverride' | 'payment' | 'pictureInPicture' | 'publickeyCredentialsGet' | 'screenWakeLock' | 'serial' | 'storageAccess' | 'syncXhr' | 'usb' | 'webShare' | 'windowManagement' | 'xrSpatialTracking'; -/** - * These features have been proposed, but the definitions have not yet been integrated into their respective specs. - */ -type ProposedFeatures = 'clipboardRead' | 'clipboardWrite' | 'gamepad' | 'sharedAutofill' | 'speakerSelection'; -/** - * These features generally have an explainer only, but may be available for experimentation by web developers. - */ -type ExperimentalFeatures = 'allScreensCapture' | 'browsingTopics' | 'capturedSurfaceControl' | 'conversionMeasurement' | 'digitalCredentialsGet' | 'focusWithoutUserActivation' | 'joinAdInterestGroup' | 'localFonts' | 'runAdAuction' | 'smartCard' | 'syncScript' | 'trustTokenRedemption' | 'unload' | 'verticalScroll'; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts deleted file mode 100644 index a632b52..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @module - * Secure Headers Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -import type { PermissionsPolicyDirective } from './permissions-policy'; -export type SecureHeadersVariables = { - secureHeadersNonce?: string; -}; -export type ContentSecurityPolicyOptionHandler = (ctx: Context, directive: string) => string; -type ContentSecurityPolicyOptionValue = (string | ContentSecurityPolicyOptionHandler)[]; -interface ContentSecurityPolicyOptions { - defaultSrc?: ContentSecurityPolicyOptionValue; - baseUri?: ContentSecurityPolicyOptionValue; - childSrc?: ContentSecurityPolicyOptionValue; - connectSrc?: ContentSecurityPolicyOptionValue; - fontSrc?: ContentSecurityPolicyOptionValue; - formAction?: ContentSecurityPolicyOptionValue; - frameAncestors?: ContentSecurityPolicyOptionValue; - frameSrc?: ContentSecurityPolicyOptionValue; - imgSrc?: ContentSecurityPolicyOptionValue; - manifestSrc?: ContentSecurityPolicyOptionValue; - mediaSrc?: ContentSecurityPolicyOptionValue; - objectSrc?: ContentSecurityPolicyOptionValue; - reportTo?: string; - reportUri?: string | string[]; - sandbox?: ContentSecurityPolicyOptionValue; - scriptSrc?: ContentSecurityPolicyOptionValue; - scriptSrcAttr?: ContentSecurityPolicyOptionValue; - scriptSrcElem?: ContentSecurityPolicyOptionValue; - styleSrc?: ContentSecurityPolicyOptionValue; - styleSrcAttr?: ContentSecurityPolicyOptionValue; - styleSrcElem?: ContentSecurityPolicyOptionValue; - upgradeInsecureRequests?: ContentSecurityPolicyOptionValue; - workerSrc?: ContentSecurityPolicyOptionValue; - requireTrustedTypesFor?: ContentSecurityPolicyOptionValue; - trustedTypes?: ContentSecurityPolicyOptionValue; -} -interface ReportToOptions { - group: string; - max_age: number; - endpoints: ReportToEndpoint[]; -} -interface ReportToEndpoint { - url: string; -} -interface ReportingEndpointOptions { - name: string; - url: string; -} -type PermissionsPolicyValue = '*' | 'self' | 'src' | 'none' | string; -type PermissionsPolicyOptions = Partial>; -type overridableHeader = boolean | string; -interface SecureHeadersOptions { - contentSecurityPolicy?: ContentSecurityPolicyOptions; - contentSecurityPolicyReportOnly?: ContentSecurityPolicyOptions; - crossOriginEmbedderPolicy?: overridableHeader; - crossOriginResourcePolicy?: overridableHeader; - crossOriginOpenerPolicy?: overridableHeader; - originAgentCluster?: overridableHeader; - referrerPolicy?: overridableHeader; - reportingEndpoints?: ReportingEndpointOptions[]; - reportTo?: ReportToOptions[]; - strictTransportSecurity?: overridableHeader; - xContentTypeOptions?: overridableHeader; - xDnsPrefetchControl?: overridableHeader; - xDownloadOptions?: overridableHeader; - xFrameOptions?: overridableHeader; - xPermittedCrossDomainPolicies?: overridableHeader; - xXssProtection?: overridableHeader; - removePoweredBy?: boolean; - permissionsPolicy?: PermissionsPolicyOptions; -} -export declare const NONCE: ContentSecurityPolicyOptionHandler; -/** - * Secure Headers Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/secure-headers} - * - * @param {Partial} [customOptions] - The options for the secure headers middleware. - * @param {ContentSecurityPolicyOptions} [customOptions.contentSecurityPolicy] - Settings for the Content-Security-Policy header. - * @param {ContentSecurityPolicyOptions} [customOptions.contentSecurityPolicyReportOnly] - Settings for the Content-Security-Policy-Report-Only header. - * @param {overridableHeader} [customOptions.crossOriginEmbedderPolicy=false] - Settings for the Cross-Origin-Embedder-Policy header. - * @param {overridableHeader} [customOptions.crossOriginResourcePolicy=true] - Settings for the Cross-Origin-Resource-Policy header. - * @param {overridableHeader} [customOptions.crossOriginOpenerPolicy=true] - Settings for the Cross-Origin-Opener-Policy header. - * @param {overridableHeader} [customOptions.originAgentCluster=true] - Settings for the Origin-Agent-Cluster header. - * @param {overridableHeader} [customOptions.referrerPolicy=true] - Settings for the Referrer-Policy header. - * @param {ReportingEndpointOptions[]} [customOptions.reportingEndpoints] - Settings for the Reporting-Endpoints header. - * @param {ReportToOptions[]} [customOptions.reportTo] - Settings for the Report-To header. - * @param {overridableHeader} [customOptions.strictTransportSecurity=true] - Settings for the Strict-Transport-Security header. - * @param {overridableHeader} [customOptions.xContentTypeOptions=true] - Settings for the X-Content-Type-Options header. - * @param {overridableHeader} [customOptions.xDnsPrefetchControl=true] - Settings for the X-DNS-Prefetch-Control header. - * @param {overridableHeader} [customOptions.xDownloadOptions=true] - Settings for the X-Download-Options header. - * @param {overridableHeader} [customOptions.xFrameOptions=true] - Settings for the X-Frame-Options header. - * @param {overridableHeader} [customOptions.xPermittedCrossDomainPolicies=true] - Settings for the X-Permitted-Cross-Domain-Policies header. - * @param {overridableHeader} [customOptions.xXssProtection=true] - Settings for the X-XSS-Protection header. - * @param {boolean} [customOptions.removePoweredBy=true] - Settings for remove X-Powered-By header. - * @param {PermissionsPolicyOptions} [customOptions.permissionsPolicy] - Settings for the Permissions-Policy header. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * app.use(secureHeaders()) - * ``` - */ -export declare const secureHeaders: (customOptions?: SecureHeadersOptions) => MiddlewareHandler; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/serve-static/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/serve-static/index.d.ts deleted file mode 100644 index f8fd606..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @module - * Serve Static Middleware for Hono. - */ -import type { Context, Data } from '../../context'; -import type { Env, MiddlewareHandler } from '../../types'; -export type ServeStaticOptions = { - root?: string; - path?: string; - precompressed?: boolean; - mimes?: Record; - rewriteRequestPath?: (path: string) => string; - onFound?: (path: string, c: Context) => void | Promise; - onNotFound?: (path: string, c: Context) => void | Promise; -}; -/** - * This middleware is not directly used by the user. Create a wrapper specifying `getContent()` by the environment such as Deno or Bun. - */ -export declare const serveStatic: (options: ServeStaticOptions & { - getContent: (path: string, c: Context) => Promise; - /** - * - * `join` option according to the runtime. Example `import { join } from 'node:path`. If not specified, it will fall back to the default join function.` - */ - join?: (...paths: string[]) => string; - /** - * @deprecated Currently, `pathResolve` is no longer used. - */ - pathResolve?: (path: string) => string; - isDir?: (path: string) => boolean | undefined | Promise; -}) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/serve-static/path.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/serve-static/path.d.ts deleted file mode 100644 index 4d2e95e..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * `defaultJoin` does not support Windows paths and always uses `/` separators. - * If you need Windows path support, please use `join` exported from `node:path` etc. instead. - */ -export declare const defaultJoin: (...paths: string[]) => string; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/timeout/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/timeout/index.d.ts deleted file mode 100644 index 28d533f..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/timeout/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @module - * Timeout Middleware for Hono. - */ -import type { Context } from '../../context'; -import { HTTPException } from '../../http-exception'; -import type { MiddlewareHandler } from '../../types'; -export type HTTPExceptionFunction = (context: Context) => HTTPException; -/** - * Timeout Middleware for Hono. - * - * @param {number} duration - The timeout duration in milliseconds. - * @param {HTTPExceptionFunction | HTTPException} [exception=defaultTimeoutException] - The exception to throw when the timeout occurs. Can be a function that returns an HTTPException or an HTTPException object. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use( - * '/long-request', - * timeout(5000) // Set timeout to 5 seconds - * ) - * - * app.get('/long-request', async (c) => { - * await someLongRunningFunction() - * return c.text('Completed within time limit') - * }) - * ``` - */ -export declare const timeout: (duration: number, exception?: HTTPExceptionFunction | HTTPException) => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/timing/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/timing/index.d.ts deleted file mode 100644 index a627bc6..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/timing/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { TimingVariables } from './timing'; -export { TimingVariables }; -export { timing, setMetric, startTime, endTime, wrapTime } from './timing'; -declare module '../..' { - interface ContextVariableMap extends TimingVariables { - } -} diff --git a/mcp-server/node_modules/hono/dist/types/middleware/timing/timing.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/timing/timing.d.ts deleted file mode 100644 index b4d2170..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/timing/timing.d.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * @module - * Server-Timing Middleware for Hono. - */ -import type { Context } from '../../context'; -import type { MiddlewareHandler } from '../../types'; -import '../../context'; -export type TimingVariables = { - metric?: { - headers: string[]; - timers: Map; - }; -}; -interface Timer { - description?: string; - start: number; -} -interface TimingOptions { - total?: boolean; - enabled?: boolean | ((c: Context) => boolean); - totalDescription?: string; - autoEnd?: boolean; - crossOrigin?: boolean | string | ((c: Context) => boolean | string); -} -/** - * Server-Timing Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/timing} - * - * @param {TimingOptions} [config] - The options for the timing middleware. - * @param {boolean} [config.total=true] - Show the total response time. - * @param {boolean | ((c: Context) => boolean)} [config.enabled=true] - Whether timings should be added to the headers or not. - * @param {string} [config.totalDescription=Total Response Time] - Description for the total response time. - * @param {boolean} [config.autoEnd=true] - If `startTime()` should end automatically at the end of the request. - * @param {boolean | string | ((c: Context) => boolean | string)} [config.crossOrigin=false] - The origin this timings header should be readable. - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * // add the middleware to your router - * app.use(timing()); - * - * app.get('/', async (c) => { - * // add custom metrics - * setMetric(c, 'region', 'europe-west3') - * - * // add custom metrics with timing, must be in milliseconds - * setMetric(c, 'custom', 23.8, 'My custom Metric') - * - * // start a new timer - * startTime(c, 'db'); - * - * const data = await db.findMany(...); - * - * // end the timer - * endTime(c, 'db'); - * - * return c.json({ response: data }); - * }); - * ``` - */ -export declare const timing: (config?: TimingOptions) => MiddlewareHandler; -interface SetMetric { - (c: Context, name: string, value: number, description?: string, precision?: number): void; - (c: Context, name: string, description?: string): void; -} -/** - * Set a metric for the timing middleware. - * - * @param {Context} c - The context of the request. - * @param {string} name - The name of the metric. - * @param {number | string} [valueDescription] - The value or description of the metric. - * @param {string} [description] - The description of the metric. - * @param {number} [precision] - The precision of the metric value. - * - * @example - * ```ts - * setMetric(c, 'region', 'europe-west3') - * setMetric(c, 'custom', 23.8, 'My custom Metric') - * ``` - */ -export declare const setMetric: SetMetric; -/** - * Start a timer for the timing middleware. - * - * @param {Context} c - The context of the request. - * @param {string} name - The name of the timer. - * @param {string} [description] - The description of the timer. - * - * @example - * ```ts - * startTime(c, 'db') - * ``` - */ -export declare const startTime: (c: Context, name: string, description?: string) => void; -/** - * End a timer for the timing middleware. - * - * @param {Context} c - The context of the request. - * @param {string} name - The name of the timer. - * @param {number} [precision] - The precision of the timer value. - * - * @example - * ```ts - * endTime(c, 'db') - * ``` - */ -export declare const endTime: (c: Context, name: string, precision?: number) => void; -/** - * Wrap a Promise to capture its duration. - * @param {Context} c - The context of the request. - * @param {string} name - The name of the timer. - * @param {Promise} callable - The Promise to time. - * @param {string} [description] - The description of the timer. - * @param {number} [precision] - The precision of the timer value. - * - * @example - * ```ts - * // Instead of this: - * const data = await db.findMany(...); - * - * // do this: - * const data = await wrapTime(c, 'query', db.findMany(...)); - * ``` - * */ -export declare function wrapTime(c: Context, name: string, callable: Promise, description?: string, precision?: number): Promise; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts b/mcp-server/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts deleted file mode 100644 index 9b1d12d..0000000 --- a/mcp-server/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @module - * Trailing Slash Middleware for Hono. - */ -import type { MiddlewareHandler } from '../../types'; -/** - * Trailing Slash Middleware for Hono. - * - * @see {@link https://hono.dev/docs/middleware/builtin/trailing-slash} - * - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use(trimTrailingSlash()) - * app.get('/about/me/', (c) => c.text('With Trailing Slash')) - * ``` - */ -export declare const trimTrailingSlash: () => MiddlewareHandler; -/** - * Append trailing slash middleware for Hono. - * Append a trailing slash to the URL if it doesn't have one. For example, `/path/to/page` will be redirected to `/path/to/page/`. - * - * @see {@link https://hono.dev/docs/middleware/builtin/trailing-slash} - * - * @returns {MiddlewareHandler} The middleware handler function. - * - * @example - * ```ts - * const app = new Hono() - * - * app.use(appendTrailingSlash()) - * ``` - */ -export declare const appendTrailingSlash: () => MiddlewareHandler; diff --git a/mcp-server/node_modules/hono/dist/types/package.json b/mcp-server/node_modules/hono/dist/types/package.json deleted file mode 100644 index 5bbefff..0000000 --- a/mcp-server/node_modules/hono/dist/types/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/mcp-server/node_modules/hono/dist/types/preset/quick.d.ts b/mcp-server/node_modules/hono/dist/types/preset/quick.d.ts deleted file mode 100644 index d53dea3..0000000 --- a/mcp-server/node_modules/hono/dist/types/preset/quick.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @module - * The preset that uses `LinearRouter`. - */ -import { HonoBase } from '../hono-base'; -import type { HonoOptions } from '../hono-base'; -import type { BlankEnv, BlankSchema, Env, Schema } from '../types'; -export declare class Hono extends HonoBase { - constructor(options?: HonoOptions); -} diff --git a/mcp-server/node_modules/hono/dist/types/preset/tiny.d.ts b/mcp-server/node_modules/hono/dist/types/preset/tiny.d.ts deleted file mode 100644 index 4f75f72..0000000 --- a/mcp-server/node_modules/hono/dist/types/preset/tiny.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @module - * The preset that uses `PatternRouter`. - */ -import { HonoBase } from '../hono-base'; -import type { HonoOptions } from '../hono-base'; -import type { BlankEnv, BlankSchema, Env, Schema } from '../types'; -export declare class Hono extends HonoBase { - constructor(options?: HonoOptions); -} diff --git a/mcp-server/node_modules/hono/dist/types/request.d.ts b/mcp-server/node_modules/hono/dist/types/request.d.ts deleted file mode 100644 index fa13425..0000000 --- a/mcp-server/node_modules/hono/dist/types/request.d.ts +++ /dev/null @@ -1,313 +0,0 @@ -import { GET_MATCH_RESULT } from './request/constants'; -import type { Result } from './router'; -import type { Input, InputToDataByTarget, ParamKeyToRecord, ParamKeys, RemoveQuestion, RouterRoute, ValidationTargets } from './types'; -import type { BodyData, ParseBodyOptions } from './utils/body'; -import type { CustomHeader, RequestHeader } from './utils/headers'; -import type { Simplify, UnionToIntersection } from './utils/types'; -type Body = { - json: any; - text: string; - arrayBuffer: ArrayBuffer; - blob: Blob; - formData: FormData; -}; -type BodyCache = Partial; -export declare class HonoRequest

{ - - [GET_MATCH_RESULT]: Result<[unknown, RouterRoute]>; - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw: Request; - routeIndex: number; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path: string; - bodyCache: BodyCache; - constructor(request: Request, path?: string, matchResult?: Result<[unknown, RouterRoute]>); - /** - * `.req.param()` gets the path parameters. - * - * @see {@link https://hono.dev/docs/api/routing#path-parameter} - * - * @example - * ```ts - * const name = c.req.param('name') - * // or all parameters at once - * const { id, comment_id } = c.req.param() - * ``` - */ - param = ParamKeys

>(key: P2 extends `${infer _}?` ? never : P2): string; - param> = RemoveQuestion>>(key: P2): string | undefined; - param(key: string): string | undefined; - param(): Simplify>>>; - /** - * `.query()` can get querystring parameters. - * - * @see {@link https://hono.dev/docs/api/request#query} - * - * @example - * ```ts - * // Query params - * app.get('/search', (c) => { - * const query = c.req.query('q') - * }) - * - * // Get all params at once - * app.get('/search', (c) => { - * const { q, limit, offset } = c.req.query() - * }) - * ``` - */ - query(key: string): string | undefined; - query(): Record; - /** - * `.queries()` can get multiple querystring parameter values, e.g. /search?tags=A&tags=B - * - * @see {@link https://hono.dev/docs/api/request#queries} - * - * @example - * ```ts - * app.get('/search', (c) => { - * // tags will be string[] - * const tags = c.req.queries('tags') - * }) - * ``` - */ - queries(key: string): string[] | undefined; - queries(): Record; - /** - * `.header()` can get the request header value. - * - * @see {@link https://hono.dev/docs/api/request#header} - * - * @example - * ```ts - * app.get('/', (c) => { - * const userAgent = c.req.header('User-Agent') - * }) - * ``` - */ - header(name: RequestHeader): string | undefined; - header(name: string): string | undefined; - header(): Record; - /** - * `.parseBody()` can parse Request body of type `multipart/form-data` or `application/x-www-form-urlencoded` - * - * @see {@link https://hono.dev/docs/api/request#parsebody} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.parseBody() - * }) - * ``` - */ - parseBody, T extends BodyData>(options?: Options): Promise; - parseBody(options?: Partial): Promise; - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json(): Promise; - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text(): Promise; - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer(): Promise; - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob(): Promise; - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData(): Promise; - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target: keyof ValidationTargets, data: {}): void; - /** - * Gets validated data from the request. - * - * @param target - The target of the validation. - * @returns The validated data. - * - * @see https://hono.dev/docs/api/request#valid - */ - valid(target: T): InputToDataByTarget; - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url(): string; - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method(): string; - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes(): RouterRoute[]; - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath(): string; -} -/** - * Clones a HonoRequest's underlying raw Request object. - * - * This utility handles both consumed and unconsumed request bodies: - * - If the request body hasn't been consumed, it uses the native `clone()` method - * - If the request body has been consumed, it reconstructs a new Request using cached body data - * - * This is particularly useful when you need to: - * - Process the same request body multiple times - * - Pass requests to external services after validation - * - * @param req - The HonoRequest object to clone - * @returns A Promise that resolves to a new Request object with the same properties - * @throws {HTTPException} If the request body was consumed directly via `req.raw` - * without using HonoRequest methods (e.g., `req.json()`, `req.text()`), making it - * impossible to reconstruct the body from cache - * - * @example - * ```ts - * // Clone after consuming the body (e.g., after validation) - * app.post('/forward', - * validator('json', (data) => data), - * async (c) => { - * const validated = c.req.valid('json') - * // Body has been consumed, but cloneRawRequest still works - * const clonedReq = await cloneRawRequest(c.req) - * return fetch('http://backend-service.com', clonedReq) - * } - * ) - * ``` - */ -export declare const cloneRawRequest: (req: HonoRequest) => Promise; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/request/constants.d.ts b/mcp-server/node_modules/hono/dist/types/request/constants.d.ts deleted file mode 100644 index 3d95e12..0000000 --- a/mcp-server/node_modules/hono/dist/types/request/constants.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const GET_MATCH_RESULT: symbol; diff --git a/mcp-server/node_modules/hono/dist/types/router.d.ts b/mcp-server/node_modules/hono/dist/types/router.d.ts deleted file mode 100644 index abe9f03..0000000 --- a/mcp-server/node_modules/hono/dist/types/router.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @module - * This module provides types definitions and variables for the routers. - */ -/** - * Constant representing all HTTP methods in uppercase. - */ -export declare const METHOD_NAME_ALL: "ALL"; -/** - * Constant representing all HTTP methods in lowercase. - */ -export declare const METHOD_NAME_ALL_LOWERCASE: "all"; -/** - * Array of supported HTTP methods. - */ -export declare const METHODS: readonly ["get", "post", "put", "delete", "options", "patch"]; -/** - * Error message indicating that a route cannot be added because the matcher is already built. - */ -export declare const MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -/** - * Interface representing a router. - * - * @template T - The type of the handler. - */ -export interface Router { - /** - * The name of the router. - */ - name: string; - /** - * Adds a route to the router. - * - * @param method - The HTTP method (e.g., 'get', 'post'). - * @param path - The path for the route. - * @param handler - The handler for the route. - */ - add(method: string, path: string, handler: T): void; - /** - * Matches a route based on the given method and path. - * - * @param method - The HTTP method (e.g., 'get', 'post'). - * @param path - The path to match. - * @returns The result of the match. - */ - match(method: string, path: string): Result; -} -/** - * Type representing a map of parameter indices. - */ -export type ParamIndexMap = Record; -/** - * Type representing a stash of parameters. - */ -export type ParamStash = string[]; -/** - * Type representing a map of parameters. - */ -export type Params = Record; -/** - * Type representing the result of a route match. - * - * The result can be in one of two formats: - * 1. An array of handlers with their corresponding parameter index maps, followed by a parameter stash. - * 2. An array of handlers with their corresponding parameter maps. - * - * Example: - * - * [[handler, paramIndexMap][], paramArray] - * ```typescript - * [ - * [ - * [middlewareA, {}], // '*' - * [funcA, {'id': 0}], // '/user/:id/*' - * [funcB, {'id': 0, 'action': 1}], // '/user/:id/:action' - * ], - * ['123', 'abc'] - * ] - * ``` - * - * [[handler, params][]] - * ```typescript - * [ - * [ - * [middlewareA, {}], // '*' - * [funcA, {'id': '123'}], // '/user/:id/*' - * [funcB, {'id': '123', 'action': 'abc'}], // '/user/:id/:action' - * ] - * ] - * ``` - */ -export type Result = [[T, ParamIndexMap][], ParamStash] | [[T, Params][]]; -/** - * Error class representing an unsupported path error. - */ -export declare class UnsupportedPathError extends Error { -} diff --git a/mcp-server/node_modules/hono/dist/types/router/linear-router/index.d.ts b/mcp-server/node_modules/hono/dist/types/router/linear-router/index.d.ts deleted file mode 100644 index 899f66e..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/linear-router/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * LinearRouter for Hono. - */ -export { LinearRouter } from './router'; diff --git a/mcp-server/node_modules/hono/dist/types/router/linear-router/router.d.ts b/mcp-server/node_modules/hono/dist/types/router/linear-router/router.d.ts deleted file mode 100644 index 45d563a..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/linear-router/router.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Result, Router } from '../../router'; -export declare class LinearRouter implements Router { - - name: string; - add(method: string, path: string, handler: T): void; - match(method: string, path: string): Result; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/pattern-router/index.d.ts b/mcp-server/node_modules/hono/dist/types/router/pattern-router/index.d.ts deleted file mode 100644 index 26f9f23..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/pattern-router/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * PatternRouter for Hono. - */ -export { PatternRouter } from './router'; diff --git a/mcp-server/node_modules/hono/dist/types/router/pattern-router/router.d.ts b/mcp-server/node_modules/hono/dist/types/router/pattern-router/router.d.ts deleted file mode 100644 index 299811d..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/pattern-router/router.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Result, Router } from '../../router'; -export declare class PatternRouter implements Router { - - name: string; - add(method: string, path: string, handler: T): void; - match(method: string, path: string): Result; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts deleted file mode 100644 index 25c2363..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * RegExpRouter for Hono. - */ -export { RegExpRouter } from './router'; -export { PreparedRegExpRouter, buildInitParams, serializeInitParams } from './prepared-router'; diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts deleted file mode 100644 index 721ec4b..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ParamIndexMap, Result, Router } from '../../router'; -export type HandlerData = [T, ParamIndexMap][]; -export type StaticMap = Record>; -export type Matcher = [RegExp, HandlerData[], StaticMap]; -export type MatcherMap = Record | null>; -export declare const emptyParam: string[]; -export declare function match, T>(this: R, method: string, path: string): Result; diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts deleted file mode 100644 index 76f1c53..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare const PATH_ERROR: unique symbol; -export type ParamAssocArray = [string, number][]; -export interface Context { - varIndex: number; -} -export declare class Node { - - insert(tokens: readonly string[], index: number, paramMap: ParamAssocArray, context: Context, pathErrorCheckOnly: boolean): void; - buildRegExpStr(): string; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts deleted file mode 100644 index de9f39e..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { ParamIndexMap, Router } from '../../router'; -import type { MatcherMap } from './matcher'; -import { match } from './matcher'; -type RelocateMap = Record; -export declare class PreparedRegExpRouter implements Router { - - name: string; - constructor(matchers: MatcherMap, relocateMap: RelocateMap); - add(method: string, path: string, handler: T): void; - protected buildAllMatchers(): MatcherMap; - match: typeof match, T>; -} -export declare const buildInitParams: (params: { - paths: string[]; -}) => ConstructorParameters; -export declare const serializeInitParams: (params: ConstructorParameters) => string; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts deleted file mode 100644 index fda1ebb..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { Router } from '../../router'; -import type { MatcherMap } from './matcher'; -import { match } from './matcher'; -export declare class RegExpRouter implements Router { - - name: string; - constructor(); - add(method: string, path: string, handler: T): void; - match: typeof match, T>; - protected buildAllMatchers(): MatcherMap; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts b/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts deleted file mode 100644 index a1f1a80..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ParamAssocArray } from './node'; -export type ReplacementMap = number[]; -export declare class Trie { - - insert(path: string, index: number, pathErrorCheckOnly: boolean): ParamAssocArray; - buildRegExp(): [RegExp, ReplacementMap, ReplacementMap]; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/smart-router/index.d.ts b/mcp-server/node_modules/hono/dist/types/router/smart-router/index.d.ts deleted file mode 100644 index e7801b8..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/smart-router/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * SmartRouter for Hono. - */ -export { SmartRouter } from './router'; diff --git a/mcp-server/node_modules/hono/dist/types/router/smart-router/router.d.ts b/mcp-server/node_modules/hono/dist/types/router/smart-router/router.d.ts deleted file mode 100644 index 94a4de3..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/smart-router/router.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { Result, Router } from '../../router'; -export declare class SmartRouter implements Router { - - name: string; - constructor(init: { - routers: Router[]; - }); - add(method: string, path: string, handler: T): void; - match(method: string, path: string): Result; - get activeRouter(): Router; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/trie-router/index.d.ts b/mcp-server/node_modules/hono/dist/types/router/trie-router/index.d.ts deleted file mode 100644 index 44ace76..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/trie-router/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @module - * TrieRouter for Hono. - */ -export { TrieRouter } from './router'; diff --git a/mcp-server/node_modules/hono/dist/types/router/trie-router/node.d.ts b/mcp-server/node_modules/hono/dist/types/router/trie-router/node.d.ts deleted file mode 100644 index 81b9cc5..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/trie-router/node.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Params } from '../../router'; -export declare class Node { - - constructor(method?: string, handler?: T, children?: Record>); - insert(method: string, path: string, handler: T): Node; - search(method: string, path: string): [[T, Params][]]; -} diff --git a/mcp-server/node_modules/hono/dist/types/router/trie-router/router.d.ts b/mcp-server/node_modules/hono/dist/types/router/trie-router/router.d.ts deleted file mode 100644 index 50990db..0000000 --- a/mcp-server/node_modules/hono/dist/types/router/trie-router/router.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { Result, Router } from '../../router'; -export declare class TrieRouter implements Router { - - name: string; - constructor(); - add(method: string, path: string, handler: T): void; - match(method: string, path: string): Result; -} diff --git a/mcp-server/node_modules/hono/dist/types/types.d.ts b/mcp-server/node_modules/hono/dist/types/types.d.ts deleted file mode 100644 index 856f412..0000000 --- a/mcp-server/node_modules/hono/dist/types/types.d.ts +++ /dev/null @@ -1,573 +0,0 @@ -/** - * @module - * This module contains some type definitions for the Hono modules. - */ -import type { Context } from './context'; -import type { HonoBase } from './hono-base'; -import type { CustomHeader, RequestHeader } from './utils/headers'; -import type { StatusCode } from './utils/http-status'; -import type { IfAnyThenEmptyObject, IsAny, JSONValue, RemoveBlankRecord, Simplify, UnionToIntersection } from './utils/types'; -export type Bindings = object; -export type Variables = object; -export type BlankEnv = {}; -export type Env = { - Bindings?: Bindings; - Variables?: Variables; -}; -export type Next = () => Promise; -export type ExtractInput = I extends Input ? unknown extends I['in'] ? {} : I['in'] : I; -export type Input = { - in?: {}; - out?: {}; - outputFormat?: ResponseFormat; -}; -export type BlankSchema = {}; -export type BlankInput = {}; -export interface RouterRoute { - basePath: string; - path: string; - method: string; - handler: H; -} -export type HandlerResponse = Response | TypedResponse | Promise> | Promise; -export type Handler = any> = (c: Context, next: Next) => R; -export type MiddlewareHandler = Response> = (c: Context, next: Next) => Promise; -export type H = any> = Handler | MiddlewareHandler; -/** - * You can extend this interface to define a custom `c.notFound()` Response type. - * - * @example - * declare module 'hono' { - * interface NotFoundResponse extends Response, TypedResponse {} - * } - */ -export interface NotFoundResponse { -} -export type NotFoundHandler = (c: Context) => NotFoundResponse extends Response ? NotFoundResponse | Promise : Response | Promise; -export interface HTTPResponseError extends Error { - getResponse: () => Response; -} -export type ErrorHandler = (err: Error | HTTPResponseError, c: Context) => Response | Promise; -export interface HandlerInterface { -

= any, E2 extends Env = E>(handler: H): HonoBase, S & ToSchema>, BasePath, CurrentPath>; -

= any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, M1 extends H = H>(...handlers: [H & M1, H]): HonoBase, S & ToSchema | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, E2 extends Env = E>(path: P, handler: H): HonoBase, S, M, P, I, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, M1 extends H = H, M2 extends H = H>(...handlers: [H & M1, H & M2, H]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, M1 extends H = H>(path: P, ...handlers: [H & M1, H]): HonoBase | MergeMiddlewareResponse, S, M, P, I2, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, M1 extends H = H, M2 extends H = H, M3 extends H = H>(...handlers: [H & M1, H & M2, H & M3, H]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, M1 extends H = H, M2 extends H = H>(path: P, ...handlers: [H & M1, H & M2, H]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I3, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, M1 extends H = H, M2 extends H = H, M3 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I4, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I5, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I6, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I7, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H, M8 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H & M8, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I8, BasePath>, BasePath, MergePath>; -

= any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H, M8 extends H = H, M9 extends H = H>(...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H & M8, - H & M9, - H - ]): HonoBase, S & ToSchema | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse>, BasePath, CurrentPath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H, M8 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H & M8, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I9, BasePath>, BasePath, MergePath>; -

, R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, M1 extends H = H, M2 extends H = H, M3 extends H = H, M4 extends H = H, M5 extends H = H, M6 extends H = H, M7 extends H = H, M8 extends H = H, M9 extends H = H>(path: P, ...handlers: [ - H & M1, - H & M2, - H & M3, - H & M4, - H & M5, - H & M6, - H & M7, - H & M8, - H & M9, - H - ]): HonoBase | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse | MergeMiddlewareResponse, S, M, P, I10, BasePath>, BasePath, MergePath>; -

= any>(...handlers: H[]): HonoBase>, BasePath, CurrentPath>; -

= any>(path: P, ...handlers: [H, I, R>, ...H, I, R>[]]): HonoBase, I, MergeTypedResponse>, BasePath, MergePath>; -

= any, I extends Input = BlankInput>(path: P): HonoBase, I, MergeTypedResponse>, BasePath, MergePath>; -} -export interface MiddlewareHandlerInterface { - (...handlers: MiddlewareHandler>[]): HonoBase, S, BasePath, MergePath>; - (handler: MiddlewareHandler>): HonoBase, S, BasePath, MergePath>; - , P extends string = MergePath>(...handlers: [MiddlewareHandler, MiddlewareHandler]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E>(path: P, handler: MiddlewareHandler): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(path: P, ...handlers: [MiddlewareHandler, MiddlewareHandler]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(path: P, ...handlers: [MiddlewareHandler, MiddlewareHandler, MiddlewareHandler]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; - , E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, P extends string = MergePath>(...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, P>; -

, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(path: P, ...handlers: [ - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler, - MiddlewareHandler - ]): HonoBase, S, BasePath, MergedPath>; -

(path: P, ...handlers: MiddlewareHandler>[]): HonoBase>; -} -export interface OnHandlerInterface { - , R extends HandlerResponse = any, I extends Input = BlankInput, E2 extends Env = E>(method: M, path: P, handler: H): HonoBase, S & ToSchema, I, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(method: M, path: P, ...handlers: [H, H]): HonoBase, S & ToSchema, I2, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(method: M, path: P, ...handlers: [H, H, H]): HonoBase, S & ToSchema, I3, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I4, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I5, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I6, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I7, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I8, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I9, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>>(method: M, path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I10, MergeTypedResponse>>, BasePath, MergePath>; - = any, I extends Input = BlankInput>(method: M, path: P, ...handlers: [H, I, R>, ...H, I, R>[]]): HonoBase, I, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, E2 extends Env = E>(methods: M[], path: P, handler: H): HonoBase, S & ToSchema, I, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(methods: M[], path: P, ...handlers: [H, H]): HonoBase, S & ToSchema, I2, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(methods: M[], path: P, ...handlers: [H, H, H]): HonoBase, S & ToSchema, I3, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I4, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I5, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I6, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I7, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I8, MergeTypedResponse>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I9, MergeTypedResponse>>, BasePath, MergePath>; - , R extends HandlerResponse = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>>(methods: M[], path: P, ...handlers: [ - H, - H, - H, - H, - H, - H, - H, - H, - H, - H - ]): HonoBase, S & ToSchema, I10, MergeTypedResponse>>, BasePath, MergePath>; - = any, I extends Input = BlankInput>(methods: M[], path: P, ...handlers: [H, I, R>, ...H, I, R>[]]): HonoBase, I, MergeTypedResponse>, BasePath, MergePath>; - = any, E2 extends Env = E>(methods: M | M[], paths: Ps, ...handlers: H, I, R>[]): HonoBase, I, MergeTypedResponse>, BasePath, Ps extends [...string[], infer LastPath extends string] ? MergePath : never>; -} -type ToSchemaOutput = RorO extends TypedResponse ? { - output: unknown extends T ? {} : T; - outputFormat: I extends { - outputFormat: string; - } ? I['outputFormat'] : F; - status: U; -} : { - output: unknown extends RorO ? {} : RorO; - outputFormat: unknown extends RorO ? 'json' : I extends { - outputFormat: string; - } ? I['outputFormat'] : 'json'; - status: StatusCode; -}; -export type ToSchema = IsAny extends true ? { - [K in P]: { - [K2 in M as AddDollar]: { - input: AddParam, P>; - output: {}; - outputFormat: ResponseFormat; - status: StatusCode; - }; - }; -} : [RorO] extends [never] ? {} : [RorO] extends [Promise] ? {} : { - [K in P]: { - [K2 in M as AddDollar]: Simplify<{ - input: AddParam, P>; - } & ToSchemaOutput>; - }; -}; -export type Schema = { - [Path: string]: { - [Method: `$${Lowercase}`]: Endpoint; - }; -}; -type AddSchemaIfHasResponse = [Merged] extends [Promise] ? S : S & ToSchema, I, Merged>; -export type Endpoint = { - input: any; - output: any; - outputFormat: ResponseFormat; - status: StatusCode; -}; -type ExtractParams = string extends Path ? Record : Path extends `${infer _Start}:${infer Param}/${infer Rest}` ? { - [K in Param | keyof ExtractParams<`/${Rest}`>]: string; -} : Path extends `${infer _Start}:${infer Param}` ? { - [K in Param]: string; -} : never; -type FlattenIfIntersect = T extends infer O ? { - [K in keyof O]: O[K]; -} : never; -export type MergeSchemaPath = { - [P in keyof OrigSchema as MergePath]: [OrigSchema[P]] extends [ - Record - ] ? { - [M in keyof OrigSchema[P]]: MergeEndpointParamsWithPath; - } : never; -}; -type MergeEndpointParamsWithPath = T extends unknown ? { - input: T['input'] extends { - param: infer _; - } ? ExtractParams extends never ? T['input'] : FlattenIfIntersect as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string; - }; - }> : RemoveBlankRecord> extends never ? T['input'] : T['input'] & { - param: { - [K in keyof ExtractParams as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string; - }; - }; - output: T['output']; - outputFormat: T['outputFormat']; - status: T['status']; -} : never; -export type AddParam = ParamKeys

extends never ? I : I extends { - param: infer _; -} ? I : I & { - param: UnionToIntersection>>; -}; -type AddDollar = `$${Lowercase}`; -export type MergePath = B extends '' ? MergePath : A extends '' ? B : A extends '/' ? B : A extends `${infer P}/` ? B extends `/${infer Q}` ? `${P}/${Q}` : `${P}/${B}` : B extends `/${infer Q}` ? Q extends '' ? A : `${A}/${Q}` : `${A}/${B}`; -export type KnownResponseFormat = 'json' | 'text' | 'redirect'; -export type ResponseFormat = KnownResponseFormat | string; -export type TypedResponse = { - _data: T; - _status: U; - _format: F; -}; -type MergeTypedResponse = T extends Promise ? T : T extends Promise ? T2 extends TypedResponse ? T2 : TypedResponse : T extends TypedResponse ? T : TypedResponse; -type ExtractTypedResponseOnly = T extends TypedResponse ? T : never; -type MergeMiddlewareResponse = T extends (c: any, next: any) => Promise ? Exclude extends never ? never : Exclude extends Response | TypedResponse ? ExtractTypedResponseOnly> : never : T extends (c: any, next: any) => infer R ? R extends Response | TypedResponse ? ExtractTypedResponseOnly : never : never; -export type FormValue = string | Blob; -export type ParsedFormValue = string | File; -export type ValidationTargets = { - json: any; - form: Record; - query: Record; - param: Record; - header: Record; - cookie: Record; -}; -type ParamKey = Component extends `:${infer NameWithPattern}` ? NameWithPattern extends `${infer Name}{${infer Rest}` ? Rest extends `${infer _Pattern}?` ? `${Name}?` : Name : NameWithPattern : never; -export type ParamKeys = Path extends `${infer Component}/${infer Rest}` ? ParamKey | ParamKeys : ParamKey; -export type ParamKeyToRecord = T extends `${infer R}?` ? Record : { - [K in T]: string; -}; -export type InputToDataByTarget = T extends { - [K in Target]: infer R; -} ? R : never; -export type RemoveQuestion = T extends `${infer R}?` ? R : T; -export type ExtractSchema = UnionToIntersection ? S : never>; -export type ExtractSchemaForStatusCode = { - [Path in keyof ExtractSchema]: { - [Method in keyof ExtractSchema[Path]]: Extract[Path][Method], { - status: Status; - }>; - }; -}; -export type ExtractHandlerResponse = T extends (c: any, next: any) => Promise ? Exclude extends never ? never : Exclude extends Response | TypedResponse ? Exclude : never : T extends (c: any, next: any) => infer R ? R extends Response | TypedResponse ? R : never : never; -type ProcessHead = IfAnyThenEmptyObject; -export type IntersectNonAnyTypes = T extends [infer Head, ...infer Rest] ? ProcessHead & IntersectNonAnyTypes : {}; -export declare abstract class FetchEventLike { - abstract readonly request: Request; - abstract respondWith(promise: Response | Promise): void; - abstract passThroughOnException(): void; - abstract waitUntil(promise: Promise): void; -} -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/accept.d.ts b/mcp-server/node_modules/hono/dist/types/utils/accept.d.ts deleted file mode 100644 index 75c37e8..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/accept.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export interface Accept { - type: string; - params: Record; - q: number; -} -/** - * Parse an Accept header into an array of objects with type, parameters, and quality score. - * @param acceptHeader The Accept header string - * @returns An array of parsed Accept values - */ -export declare const parseAccept: (acceptHeader: string) => Accept[]; diff --git a/mcp-server/node_modules/hono/dist/types/utils/basic-auth.d.ts b/mcp-server/node_modules/hono/dist/types/utils/basic-auth.d.ts deleted file mode 100644 index 4741a4e..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/basic-auth.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type Auth = (req: Request) => { - username: string; - password: string; -} | undefined; -export declare const auth: Auth; diff --git a/mcp-server/node_modules/hono/dist/types/utils/body.d.ts b/mcp-server/node_modules/hono/dist/types/utils/body.d.ts deleted file mode 100644 index 5c37a1f..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/body.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @module - * Body utility. - */ -import { HonoRequest } from '../request'; -type BodyDataValueDot = { - [x: string]: string | File | BodyDataValueDot; -}; -type BodyDataValueDotAll = { - [x: string]: string | File | (string | File)[] | BodyDataValueDotAll; -}; -type SimplifyBodyData = { - [K in keyof T]: string | File | (string | File)[] | BodyDataValueDotAll extends T[K] ? string | File | (string | File)[] | BodyDataValueDotAll : string | File | BodyDataValueDot extends T[K] ? string | File | BodyDataValueDot : string | File | (string | File)[] extends T[K] ? string | File | (string | File)[] : string | File; -} & {}; -type BodyDataValueComponent = string | File | (T extends { - all: false; -} ? never : T extends { - all: true; -} | { - all: boolean; -} ? (string | File)[] : never); -type BodyDataValueObject = { - [key: string]: BodyDataValueComponent | BodyDataValueObject; -}; -type BodyDataValue = BodyDataValueComponent | (T extends { - dot: false; -} ? never : T extends { - dot: true; -} | { - dot: boolean; -} ? BodyDataValueObject : never); -export type BodyData = {}> = SimplifyBodyData>>; -export type ParseBodyOptions = { - /** - * Determines whether all fields with multiple values should be parsed as arrays. - * @default false - * @example - * const data = new FormData() - * data.append('file', 'aaa') - * data.append('file', 'bbb') - * data.append('message', 'hello') - * - * If all is false: - * parseBody should return { file: 'bbb', message: 'hello' } - * - * If all is true: - * parseBody should return { file: ['aaa', 'bbb'], message: 'hello' } - */ - all: boolean; - /** - * Determines whether all fields with dot notation should be parsed as nested objects. - * @default false - * @example - * const data = new FormData() - * data.append('obj.key1', 'value1') - * data.append('obj.key2', 'value2') - * - * If dot is false: - * parseBody should return { 'obj.key1': 'value1', 'obj.key2': 'value2' } - * - * If dot is true: - * parseBody should return { obj: { key1: 'value1', key2: 'value2' } } - */ - dot: boolean; -}; -/** - * Parses the body of a request based on the provided options. - * - * @template T - The type of the parsed body data. - * @param {HonoRequest | Request} request - The request object to parse. - * @param {Partial} [options] - Options for parsing the body. - * @returns {Promise} The parsed body data. - */ -interface ParseBody { - , T extends BodyData>(request: HonoRequest | Request, options?: Options): Promise; - (request: HonoRequest | Request, options?: Partial): Promise; -} -export declare const parseBody: ParseBody; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/buffer.d.ts b/mcp-server/node_modules/hono/dist/types/utils/buffer.d.ts deleted file mode 100644 index 71396bc..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/buffer.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * Buffer utility. - */ -export declare const equal: (a: ArrayBuffer, b: ArrayBuffer) => boolean; -export declare const timingSafeEqual: (a: string | object | boolean, b: string | object | boolean, hashFunction?: Function) => Promise; -export declare const bufferToString: (buffer: ArrayBuffer) => string; -export declare const bufferToFormData: (arrayBuffer: ArrayBuffer, contentType: string) => Promise; diff --git a/mcp-server/node_modules/hono/dist/types/utils/color.d.ts b/mcp-server/node_modules/hono/dist/types/utils/color.d.ts deleted file mode 100644 index f57d739..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/color.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @module - * Color utility. - */ -/** - * Get whether color change on terminal is enabled or disabled. - * If `NO_COLOR` environment variable is set, this function returns `false`. - * Unlike getColorEnabledAsync(), this cannot check Cloudflare environment variables. - * @see {@link https://no-color.org/} - * - * @returns {boolean} - */ -export declare function getColorEnabled(): boolean; -/** - * Get whether color change on terminal is enabled or disabled. - * If `NO_COLOR` environment variable is set, this function returns `false`. - * @see {@link https://no-color.org/} - * - * @returns {boolean} - */ -export declare function getColorEnabledAsync(): Promise; diff --git a/mcp-server/node_modules/hono/dist/types/utils/compress.d.ts b/mcp-server/node_modules/hono/dist/types/utils/compress.d.ts deleted file mode 100644 index 01666b8..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/compress.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * Constants for compression. - */ -/** - * Match for compressible content type. - */ -export declare const COMPRESSIBLE_CONTENT_TYPE_REGEX: RegExp; diff --git a/mcp-server/node_modules/hono/dist/types/utils/concurrent.d.ts b/mcp-server/node_modules/hono/dist/types/utils/concurrent.d.ts deleted file mode 100644 index 24abe69..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/concurrent.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @module - * Concurrent utility. - */ -export interface Pool { - run(fn: () => T): Promise; -} -export declare const createPool: ({ concurrency, interval, }?: { - concurrency?: number; - interval?: number; -}) => Pool; diff --git a/mcp-server/node_modules/hono/dist/types/utils/constants.d.ts b/mcp-server/node_modules/hono/dist/types/utils/constants.d.ts deleted file mode 100644 index 733c0ef..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Constant used to mark a composed handler. - */ -export declare const COMPOSED_HANDLER = "__COMPOSED_HANDLER"; diff --git a/mcp-server/node_modules/hono/dist/types/utils/cookie.d.ts b/mcp-server/node_modules/hono/dist/types/utils/cookie.d.ts deleted file mode 100644 index d6f75f9..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/cookie.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @module - * Cookie utility. - */ -export type Cookie = Record; -export type SignedCookie = Record; -type PartitionedCookieConstraint = { - partitioned: true; - secure: true; -} | { - partitioned?: boolean; - secure?: boolean; -}; -type SecureCookieConstraint = { - secure: true; -}; -type HostCookieConstraint = { - secure: true; - path: '/'; - domain?: undefined; -}; -export type CookieOptions = { - domain?: string; - expires?: Date; - httpOnly?: boolean; - maxAge?: number; - path?: string; - secure?: boolean; - sameSite?: 'Strict' | 'Lax' | 'None' | 'strict' | 'lax' | 'none'; - partitioned?: boolean; - priority?: 'Low' | 'Medium' | 'High' | 'low' | 'medium' | 'high'; - prefix?: CookiePrefixOptions; -} & PartitionedCookieConstraint; -export type CookiePrefixOptions = 'host' | 'secure'; -export type CookieConstraint = Name extends `__Secure-${string}` ? CookieOptions & SecureCookieConstraint : Name extends `__Host-${string}` ? CookieOptions & HostCookieConstraint : CookieOptions; -export declare const parse: (cookie: string, name?: string) => Cookie; -export declare const parseSigned: (cookie: string, secret: string | BufferSource, name?: string) => Promise; -export declare const serialize: (name: Name, value: string, opt?: CookieConstraint) => string; -export declare const serializeSigned: (name: string, value: string, secret: string | BufferSource, opt?: CookieOptions) => Promise; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/crypto.d.ts b/mcp-server/node_modules/hono/dist/types/utils/crypto.d.ts deleted file mode 100644 index 5974286..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/crypto.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @module - * Crypto utility. - */ -import type { JSONValue } from './types'; -type Algorithm = { - name: string; - alias: string; -}; -type Data = string | boolean | number | JSONValue | ArrayBufferView | ArrayBuffer; -export declare const sha256: (data: Data) => Promise; -export declare const sha1: (data: Data) => Promise; -export declare const md5: (data: Data) => Promise; -export declare const createHash: (data: Data, algorithm: Algorithm) => Promise; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/encode.d.ts b/mcp-server/node_modules/hono/dist/types/utils/encode.d.ts deleted file mode 100644 index c60d6e7..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/encode.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * Encode utility. - */ -export declare const decodeBase64Url: (str: string) => Uint8Array; -export declare const encodeBase64Url: (buf: ArrayBufferLike) => string; -export declare const encodeBase64: (buf: ArrayBufferLike) => string; -export declare const decodeBase64: (str: string) => Uint8Array; diff --git a/mcp-server/node_modules/hono/dist/types/utils/filepath.d.ts b/mcp-server/node_modules/hono/dist/types/utils/filepath.d.ts deleted file mode 100644 index b266925..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/filepath.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module - * FilePath utility. - */ -type FilePathOptions = { - filename: string; - root?: string; - defaultDocument?: string; -}; -export declare const getFilePath: (options: FilePathOptions) => string | undefined; -export declare const getFilePathWithoutDefaultDocument: (options: Omit) => string | undefined; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/handler.d.ts b/mcp-server/node_modules/hono/dist/types/utils/handler.d.ts deleted file mode 100644 index 6b593c5..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/handler.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * Handler utility. - */ -export declare const isMiddleware: (handler: Function) => boolean; -export declare const findTargetHandler: (handler: Function) => Function; diff --git a/mcp-server/node_modules/hono/dist/types/utils/headers.d.ts b/mcp-server/node_modules/hono/dist/types/utils/headers.d.ts deleted file mode 100644 index 0c1bc9c..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/headers.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @module - * HTTP Headers utility. - */ -export type RequestHeader = 'A-IM' | 'Accept' | 'Accept-Additions' | 'Accept-CH' | 'Accept-Charset' | 'Accept-Datetime' | 'Accept-Encoding' | 'Accept-Features' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges' | 'Accept-Signature' | 'Access-Control' | 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Age' | 'Allow' | 'ALPN' | 'Alt-Svc' | 'Alt-Used' | 'Alternates' | 'AMP-Cache-Transform' | 'Apply-To-Redirect-Ref' | 'Authentication-Control' | 'Authentication-Info' | 'Authorization' | 'Available-Dictionary' | 'C-Ext' | 'C-Man' | 'C-Opt' | 'C-PEP' | 'C-PEP-Info' | 'Cache-Control' | 'Cache-Status' | 'Cal-Managed-ID' | 'CalDAV-Timezones' | 'Capsule-Protocol' | 'CDN-Cache-Control' | 'CDN-Loop' | 'Cert-Not-After' | 'Cert-Not-Before' | 'Clear-Site-Data' | 'Client-Cert' | 'Client-Cert-Chain' | 'Close' | 'CMCD-Object' | 'CMCD-Request' | 'CMCD-Session' | 'CMCD-Status' | 'CMSD-Dynamic' | 'CMSD-Static' | 'Concealed-Auth-Export' | 'Configuration-Context' | 'Connection' | 'Content-Base' | 'Content-Digest' | 'Content-Disposition' | 'Content-Encoding' | 'Content-ID' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-MD5' | 'Content-Range' | 'Content-Script-Type' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Style-Type' | 'Content-Type' | 'Content-Version' | 'Cookie' | 'Cookie2' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Embedder-Policy-Report-Only' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Opener-Policy-Report-Only' | 'Cross-Origin-Resource-Policy' | 'CTA-Common-Access-Token' | 'DASL' | 'Date' | 'DAV' | 'Default-Style' | 'Delta-Base' | 'Deprecation' | 'Depth' | 'Derived-From' | 'Destination' | 'Differential-ID' | 'Dictionary-ID' | 'Digest' | 'DPoP' | 'DPoP-Nonce' | 'Early-Data' | 'EDIINT-Features' | 'ETag' | 'Expect' | 'Expect-CT' | 'Expires' | 'Ext' | 'Forwarded' | 'From' | 'GetProfile' | 'Hobareg' | 'Host' | 'HTTP2-Settings' | 'If' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Schedule-Tag-Match' | 'If-Unmodified-Since' | 'IM' | 'Include-Referred-Token-Binding-ID' | 'Isolation' | 'Keep-Alive' | 'Label' | 'Last-Event-ID' | 'Last-Modified' | 'Link' | 'Link-Template' | 'Location' | 'Lock-Token' | 'Man' | 'Max-Forwards' | 'Memento-Datetime' | 'Meter' | 'Method-Check' | 'Method-Check-Expires' | 'MIME-Version' | 'Negotiate' | 'NEL' | 'OData-EntityId' | 'OData-Isolation' | 'OData-MaxVersion' | 'OData-Version' | 'Opt' | 'Optional-WWW-Authenticate' | 'Ordering-Type' | 'Origin' | 'Origin-Agent-Cluster' | 'OSCORE' | 'OSLC-Core-Version' | 'Overwrite' | 'P3P' | 'PEP' | 'PEP-Info' | 'Permissions-Policy' | 'PICS-Label' | 'Ping-From' | 'Ping-To' | 'Position' | 'Pragma' | 'Prefer' | 'Preference-Applied' | 'Priority' | 'ProfileObject' | 'Protocol' | 'Protocol-Info' | 'Protocol-Query' | 'Protocol-Request' | 'Proxy-Authenticate' | 'Proxy-Authentication-Info' | 'Proxy-Authorization' | 'Proxy-Features' | 'Proxy-Instruction' | 'Proxy-Status' | 'Public' | 'Public-Key-Pins' | 'Public-Key-Pins-Report-Only' | 'Range' | 'Redirect-Ref' | 'Referer' | 'Referer-Root' | 'Referrer-Policy' | 'Refresh' | 'Repeatability-Client-ID' | 'Repeatability-First-Sent' | 'Repeatability-Request-ID' | 'Repeatability-Result' | 'Replay-Nonce' | 'Reporting-Endpoints' | 'Repr-Digest' | 'Retry-After' | 'Safe' | 'Schedule-Reply' | 'Schedule-Tag' | 'Sec-GPC' | 'Sec-Purpose' | 'Sec-Token-Binding' | 'Sec-WebSocket-Accept' | 'Sec-WebSocket-Extensions' | 'Sec-WebSocket-Key' | 'Sec-WebSocket-Protocol' | 'Sec-WebSocket-Version' | 'Security-Scheme' | 'Server' | 'Server-Timing' | 'Set-Cookie' | 'Set-Cookie2' | 'SetProfile' | 'Signature' | 'Signature-Input' | 'SLUG' | 'SoapAction' | 'Status-URI' | 'Strict-Transport-Security' | 'Sunset' | 'Surrogate-Capability' | 'Surrogate-Control' | 'TCN' | 'TE' | 'Timeout' | 'Timing-Allow-Origin' | 'Topic' | 'Traceparent' | 'Tracestate' | 'Trailer' | 'Transfer-Encoding' | 'TTL' | 'Upgrade' | 'Urgency' | 'URI' | 'Use-As-Dictionary' | 'User-Agent' | 'Variant-Vary' | 'Vary' | 'Via' | 'Want-Content-Digest' | 'Want-Digest' | 'Want-Repr-Digest' | 'Warning' | 'WWW-Authenticate' | 'X-Content-Type-Options' | 'X-Frame-Options'; -export type ResponseHeader = 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Age' | 'Allow' | 'Cache-Control' | 'Clear-Site-Data' | 'Content-Disposition' | 'Content-Encoding' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-Range' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Type' | 'Cookie' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Resource-Policy' | 'Date' | 'ETag' | 'Expires' | 'Last-Modified' | 'Location' | 'Permissions-Policy' | 'Pragma' | 'Retry-After' | 'Save-Data' | 'Sec-CH-Prefers-Color-Scheme' | 'Sec-CH-Prefers-Reduced-Motion' | 'Sec-CH-UA' | 'Sec-CH-UA-Arch' | 'Sec-CH-UA-Bitness' | 'Sec-CH-UA-Form-Factor' | 'Sec-CH-UA-Full-Version' | 'Sec-CH-UA-Full-Version-List' | 'Sec-CH-UA-Mobile' | 'Sec-CH-UA-Model' | 'Sec-CH-UA-Platform' | 'Sec-CH-UA-Platform-Version' | 'Sec-CH-UA-WoW64' | 'Sec-Fetch-Dest' | 'Sec-Fetch-Mode' | 'Sec-Fetch-Site' | 'Sec-Fetch-User' | 'Sec-GPC' | 'Server' | 'Server-Timing' | 'Service-Worker-Navigation-Preload' | 'Set-Cookie' | 'Strict-Transport-Security' | 'Timing-Allow-Origin' | 'Trailer' | 'Transfer-Encoding' | 'Upgrade' | 'Vary' | 'WWW-Authenticate' | 'Warning' | 'X-Content-Type-Options' | 'X-DNS-Prefetch-Control' | 'X-Frame-Options' | 'X-Permitted-Cross-Domain-Policies' | 'X-Powered-By' | 'X-Robots-Tag' | 'X-XSS-Protection'; -export type AcceptHeader = 'Accept' | 'Accept-Charset' | 'Accept-Encoding' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges'; -export type CustomHeader = string & {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/html.d.ts b/mcp-server/node_modules/hono/dist/types/utils/html.d.ts deleted file mode 100644 index 35475cb..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/html.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @module - * HTML utility. - */ -export declare const HtmlEscapedCallbackPhase: { - readonly Stringify: 1; - readonly BeforeStream: 2; - readonly Stream: 3; -}; -type HtmlEscapedCallbackOpts = { - buffer?: [string]; - phase: (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase]; - context: Readonly; -}; -export type HtmlEscapedCallback = (opts: HtmlEscapedCallbackOpts) => Promise | undefined; -export type HtmlEscaped = { - isEscaped: true; - callbacks?: HtmlEscapedCallback[]; -}; -export type HtmlEscapedString = string & HtmlEscaped; -/** - * StringBuffer contains string and Promise alternately - * The length of the array will be odd, the odd numbered element will be a string, - * and the even numbered element will be a Promise. - * When concatenating into a single string, it must be processed from the tail. - * @example - * [ - * 'framework.', - * Promise.resolve('ultra fast'), - * 'a ', - * Promise.resolve('is '), - * 'Hono', - * ] - */ -export type StringBuffer = (string | Promise)[]; -export type StringBufferWithCallbacks = StringBuffer & { - callbacks: HtmlEscapedCallback[]; -}; -export declare const raw: (value: unknown, callbacks?: HtmlEscapedCallback[]) => HtmlEscapedString; -export declare const stringBufferToString: (buffer: StringBuffer, callbacks: HtmlEscapedCallback[] | undefined) => Promise; -export declare const escapeToBuffer: (str: string, buffer: StringBuffer) => void; -export declare const resolveCallbackSync: (str: string | HtmlEscapedString) => string; -export declare const resolveCallback: (str: string | HtmlEscapedString | Promise, phase: (typeof HtmlEscapedCallbackPhase)[keyof typeof HtmlEscapedCallbackPhase], preserveCallbacks: boolean, context: object, buffer?: [string]) => Promise; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/http-status.d.ts b/mcp-server/node_modules/hono/dist/types/utils/http-status.d.ts deleted file mode 100644 index f0cb67c..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/http-status.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @module - * HTTP Status utility. - */ -export type InfoStatusCode = 100 | 101 | 102 | 103; -export type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226; -export type DeprecatedStatusCode = 305 | 306; -export type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308; -export type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451; -export type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511; -/** - * `UnofficialStatusCode` can be used to specify an unofficial status code. - * @example - * - * ```ts - * app.get('/unknown', (c) => { - * return c.text("Unknown Error", 520 as UnofficialStatusCode) - * }) - * ``` - */ -export type UnofficialStatusCode = -1; -/** - * @deprecated - * Use `UnofficialStatusCode` instead. - */ -export type UnOfficalStatusCode = UnofficialStatusCode; -/** - * If you want to use an unofficial status, use `UnofficialStatusCode`. - */ -export type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode; -export type ContentlessStatusCode = 101 | 204 | 205 | 304; -export type ContentfulStatusCode = Exclude; diff --git a/mcp-server/node_modules/hono/dist/types/utils/ipaddr.d.ts b/mcp-server/node_modules/hono/dist/types/utils/ipaddr.d.ts deleted file mode 100644 index ae97e71..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/ipaddr.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Utils for IP Addresses - * @module - */ -import type { AddressType } from '../helper/conninfo'; -/** - * Expand IPv6 Address - * @param ipV6 Shorten IPv6 Address - * @return expanded IPv6 Address - */ -export declare const expandIPv6: (ipV6: string) => string; -/** - * Distinct Remote Addr - * @param remoteAddr Remote Addr - */ -export declare const distinctRemoteAddr: (remoteAddr: string) => AddressType; -/** - * Convert IPv4 to Uint8Array - * @param ipv4 IPv4 Address - * @returns BigInt - */ -export declare const convertIPv4ToBinary: (ipv4: string) => bigint; -/** - * Convert IPv6 to Uint8Array - * @param ipv6 IPv6 Address - * @returns BigInt - */ -export declare const convertIPv6ToBinary: (ipv6: string) => bigint; -/** - * Convert a binary representation of an IPv4 address to a string. - * @param ipV4 binary IPv4 Address - * @return IPv4 Address in string - */ -export declare const convertIPv4BinaryToString: (ipV4: bigint) => string; -/** - * Convert a binary representation of an IPv6 address to a string. - * @param ipV6 binary IPv6 Address - * @return normalized IPv6 Address in string - */ -export declare const convertIPv6BinaryToString: (ipV6: bigint) => string; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/index.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/index.d.ts deleted file mode 100644 index e9e7290..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @module - * JWT utility. - */ -export declare const Jwt: { - sign: (payload: import("./types").JWTPayload, privateKey: import("./jws").SignatureKey, alg?: import("./jwa").SignatureAlgorithm) => Promise; - verify: (token: string, publicKey: import("./jws").SignatureKey, algOrOptions?: import("./jwa").SignatureAlgorithm | import("./jwt").VerifyOptionsWithAlg) => Promise; - decode: (token: string) => { - header: import("./jwt").TokenHeader; - payload: import("./types").JWTPayload; - }; - verifyWithJwks: (token: string, options: { - keys?: import("./jws").HonoJsonWebKey[]; - jwks_uri?: string; - verification?: import("./jwt").VerifyOptions; - }, init?: RequestInit) => Promise; -}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/jwa.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/jwa.d.ts deleted file mode 100644 index a170e64..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @module - * JSON Web Algorithms (JWA) - * https://datatracker.ietf.org/doc/html/rfc7518 - */ -export declare enum AlgorithmTypes { - HS256 = "HS256", - HS384 = "HS384", - HS512 = "HS512", - RS256 = "RS256", - RS384 = "RS384", - RS512 = "RS512", - PS256 = "PS256", - PS384 = "PS384", - PS512 = "PS512", - ES256 = "ES256", - ES384 = "ES384", - ES512 = "ES512", - EdDSA = "EdDSA" -} -export type SignatureAlgorithm = keyof typeof AlgorithmTypes; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/jws.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/jws.d.ts deleted file mode 100644 index 63605f6..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/jws.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @module - * JSON Web Signature (JWS) - * https://datatracker.ietf.org/doc/html/rfc7515 - */ -import type { SignatureAlgorithm } from './jwa'; -export interface HonoJsonWebKey extends JsonWebKey { - kid?: string; -} -export type SignatureKey = string | HonoJsonWebKey | CryptoKey; -export declare function signing(privateKey: SignatureKey, alg: SignatureAlgorithm, data: BufferSource): Promise; -export declare function verifying(publicKey: SignatureKey, alg: SignatureAlgorithm, signature: BufferSource, data: BufferSource): Promise; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/jwt.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/jwt.d.ts deleted file mode 100644 index 50c97e4..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @module - * JSON Web Token (JWT) - * https://datatracker.ietf.org/doc/html/rfc7519 - */ -import type { SignatureAlgorithm } from './jwa'; -import type { HonoJsonWebKey, SignatureKey } from './jws'; -import type { JWTPayload } from './types'; -export interface TokenHeader { - alg: SignatureAlgorithm; - typ?: 'JWT'; - kid?: string; -} -export declare function isTokenHeader(obj: unknown): obj is TokenHeader; -export declare const sign: (payload: JWTPayload, privateKey: SignatureKey, alg?: SignatureAlgorithm) => Promise; -export type VerifyOptions = { - /** The expected issuer used for verifying the token */ - iss?: string | RegExp; - /** Verify the `nbf` claim (default: `true`) */ - nbf?: boolean; - /** Verify the `exp` claim (default: `true`) */ - exp?: boolean; - /** Verify the `iat` claim (default: `true`) */ - iat?: boolean; - /** Acceptable audience(s) for the token */ - aud?: string | string[] | RegExp; -}; -export type VerifyOptionsWithAlg = { - /** The algorithm used for decoding the token */ - alg?: SignatureAlgorithm; -} & VerifyOptions; -export declare const verify: (token: string, publicKey: SignatureKey, algOrOptions?: SignatureAlgorithm | VerifyOptionsWithAlg) => Promise; -export declare const verifyWithJwks: (token: string, options: { - keys?: HonoJsonWebKey[]; - jwks_uri?: string; - verification?: VerifyOptions; -}, init?: RequestInit) => Promise; -export declare const decode: (token: string) => { - header: TokenHeader; - payload: JWTPayload; -}; -export declare const decodeHeader: (token: string) => TokenHeader; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/types.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/types.d.ts deleted file mode 100644 index 9923f74..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/types.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @module - * Type definitions for JWT utilities. - */ -export declare class JwtAlgorithmNotImplemented extends Error { - constructor(alg: string); -} -export declare class JwtTokenInvalid extends Error { - constructor(token: string); -} -export declare class JwtTokenNotBefore extends Error { - constructor(token: string); -} -export declare class JwtTokenExpired extends Error { - constructor(token: string); -} -export declare class JwtTokenIssuedAt extends Error { - constructor(currentTimestamp: number, iat: number); -} -export declare class JwtTokenIssuer extends Error { - constructor(expected: string | RegExp, iss: string | null); -} -export declare class JwtHeaderInvalid extends Error { - constructor(header: object); -} -export declare class JwtHeaderRequiresKid extends Error { - constructor(header: object); -} -export declare class JwtTokenSignatureMismatched extends Error { - constructor(token: string); -} -export declare class JwtPayloadRequiresAud extends Error { - constructor(payload: object); -} -export declare class JwtTokenAudience extends Error { - constructor(expected: string | string[] | RegExp, aud: string | string[]); -} -export declare enum CryptoKeyUsage { - Encrypt = "encrypt", - Decrypt = "decrypt", - Sign = "sign", - Verify = "verify", - DeriveKey = "deriveKey", - DeriveBits = "deriveBits", - WrapKey = "wrapKey", - UnwrapKey = "unwrapKey" -} -/** - * JWT Payload - */ -export type JWTPayload = { - [key: string]: unknown; - /** - * The token is checked to ensure it has not expired. - */ - exp?: number; - /** - * The token is checked to ensure it is not being used before a specified time. - */ - nbf?: number; - /** - * The token is checked to ensure it is not issued in the future. - */ - iat?: number; - /** - * The token is checked to ensure it has been issued by a trusted issuer. - */ - iss?: string; - /** - * The token is checked to ensure it is intended for a specific audience. - */ - aud?: string | string[]; -}; -export type { HonoJsonWebKey } from './jws'; diff --git a/mcp-server/node_modules/hono/dist/types/utils/jwt/utf8.d.ts b/mcp-server/node_modules/hono/dist/types/utils/jwt/utf8.d.ts deleted file mode 100644 index ff9fc1c..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @module - * Functions for encoding/decoding UTF8. - */ -export declare const utf8Encoder: TextEncoder; -export declare const utf8Decoder: TextDecoder; diff --git a/mcp-server/node_modules/hono/dist/types/utils/mime.d.ts b/mcp-server/node_modules/hono/dist/types/utils/mime.d.ts deleted file mode 100644 index b83bcec..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/mime.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @module - * MIME utility. - */ -export declare const getMimeType: (filename: string, mimes?: Record) => string | undefined; -export declare const getExtension: (mimeType: string) => string | undefined; -export { baseMimes as mimes }; -/** - * Union types for BaseMime - */ -export type BaseMime = (typeof _baseMimes)[keyof typeof _baseMimes]; -declare const _baseMimes: { - readonly aac: "audio/aac"; - readonly avi: "video/x-msvideo"; - readonly avif: "image/avif"; - readonly av1: "video/av1"; - readonly bin: "application/octet-stream"; - readonly bmp: "image/bmp"; - readonly css: "text/css"; - readonly csv: "text/csv"; - readonly eot: "application/vnd.ms-fontobject"; - readonly epub: "application/epub+zip"; - readonly gif: "image/gif"; - readonly gz: "application/gzip"; - readonly htm: "text/html"; - readonly html: "text/html"; - readonly ico: "image/x-icon"; - readonly ics: "text/calendar"; - readonly jpeg: "image/jpeg"; - readonly jpg: "image/jpeg"; - readonly js: "text/javascript"; - readonly json: "application/json"; - readonly jsonld: "application/ld+json"; - readonly map: "application/json"; - readonly mid: "audio/x-midi"; - readonly midi: "audio/x-midi"; - readonly mjs: "text/javascript"; - readonly mp3: "audio/mpeg"; - readonly mp4: "video/mp4"; - readonly mpeg: "video/mpeg"; - readonly oga: "audio/ogg"; - readonly ogv: "video/ogg"; - readonly ogx: "application/ogg"; - readonly opus: "audio/opus"; - readonly otf: "font/otf"; - readonly pdf: "application/pdf"; - readonly png: "image/png"; - readonly rtf: "application/rtf"; - readonly svg: "image/svg+xml"; - readonly tif: "image/tiff"; - readonly tiff: "image/tiff"; - readonly ts: "video/mp2t"; - readonly ttf: "font/ttf"; - readonly txt: "text/plain"; - readonly wasm: "application/wasm"; - readonly webm: "video/webm"; - readonly weba: "audio/webm"; - readonly webmanifest: "application/manifest+json"; - readonly webp: "image/webp"; - readonly woff: "font/woff"; - readonly woff2: "font/woff2"; - readonly xhtml: "application/xhtml+xml"; - readonly xml: "application/xml"; - readonly zip: "application/zip"; - readonly '3gp': "video/3gpp"; - readonly '3g2': "video/3gpp2"; - readonly gltf: "model/gltf+json"; - readonly glb: "model/gltf-binary"; -}; -declare const baseMimes: Record; diff --git a/mcp-server/node_modules/hono/dist/types/utils/stream.d.ts b/mcp-server/node_modules/hono/dist/types/utils/stream.d.ts deleted file mode 100644 index 51c46e6..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/stream.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @module - * Stream utility. - */ -export declare class StreamingApi { - private writer; - private encoder; - private writable; - private abortSubscribers; - responseReadable: ReadableStream; - /** - * Whether the stream has been aborted. - */ - aborted: boolean; - /** - * Whether the stream has been closed normally. - */ - closed: boolean; - constructor(writable: WritableStream, _readable: ReadableStream); - write(input: Uint8Array | string): Promise; - writeln(input: string): Promise; - sleep(ms: number): Promise; - close(): Promise; - pipe(body: ReadableStream): Promise; - onAbort(listener: () => void | Promise): void; - /** - * Abort the stream. - * You can call this method when stream is aborted by external event. - */ - abort(): void; -} diff --git a/mcp-server/node_modules/hono/dist/types/utils/types.d.ts b/mcp-server/node_modules/hono/dist/types/utils/types.d.ts deleted file mode 100644 index 8dce20d..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/types.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @module - * Types utility. - */ -export type Expect = T; -export type Equal = (() => T extends X ? 1 : 2) extends () => T extends Y ? 1 : 2 ? true : false; -export type NotEqual = true extends Equal ? false : true; -export type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; -export type RemoveBlankRecord = T extends Record ? (K extends string ? T : never) : never; -export type IfAnyThenEmptyObject = 0 extends 1 & T ? {} : T; -export type JSONPrimitive = string | boolean | number | null; -export type JSONArray = (JSONPrimitive | JSONObject | JSONArray)[]; -export type JSONObject = { - [key: string]: JSONPrimitive | JSONArray | JSONObject | object | InvalidJSONValue; -}; -export type InvalidJSONValue = undefined | symbol | ((...args: unknown[]) => unknown); -type InvalidToNull = T extends InvalidJSONValue ? null : T; -type IsInvalid = T extends InvalidJSONValue ? true : false; -/** - * symbol keys are omitted through `JSON.stringify` - */ -type OmitSymbolKeys = { - [K in keyof T as K extends symbol ? never : K]: T[K]; -}; -export type JSONValue = JSONObject | JSONArray | JSONPrimitive; -/** - * Convert a type to a JSON-compatible type. - * - * Non-JSON values such as `Date` implement `.toJSON()`, - * so they can be transformed to a value assignable to `JSONObject` - * - * `JSON.stringify()` throws a `TypeError` when it encounters a `bigint` value, - * unless a custom `replacer` function or `.toJSON()` method is provided. - * - * This behaviour can be controlled by the `TError` generic type parameter, - * which defaults to `bigint | ReadonlyArray`. - * You can set it to `never` to disable this check. - */ -export type JSONParsed> = T extends { - toJSON(): infer J; -} ? (() => J) extends () => JSONPrimitive ? J : (() => J) extends () => { - toJSON(): unknown; -} ? {} : JSONParsed : T extends JSONPrimitive ? T : T extends InvalidJSONValue ? never : T extends ReadonlyArray ? { - [K in keyof T]: JSONParsed, TError>; -} : T extends Set | Map | Record ? {} : T extends object ? T[keyof T] extends TError ? never : { - [K in keyof OmitSymbolKeys as IsInvalid extends true ? never : K]: boolean extends IsInvalid ? JSONParsed | undefined : JSONParsed; -} : T extends unknown ? T extends TError ? never : JSONValue : never; -/** - * Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability. - * @copyright from sindresorhus/type-fest - */ -export type Simplify = { - [KeyType in keyof T]: T[KeyType]; -} & {}; -/** - * A simple extension of Simplify that will deeply traverse array elements. - */ -export type SimplifyDeepArray = T extends any[] ? { - [E in keyof T]: SimplifyDeepArray; -} : Simplify; -export type InterfaceToType = T extends Function ? T : { - [K in keyof T]: InterfaceToType; -}; -export type RequiredKeysOf = Exclude<{ - [Key in keyof BaseType]: BaseType extends Record ? Key : never; -}[keyof BaseType], undefined>; -export type HasRequiredKeys = RequiredKeysOf extends never ? false : true; -export type IsAny = boolean extends (T extends never ? true : false) ? true : false; -/** - * String literal types with auto-completion - * @see https://github.com/Microsoft/TypeScript/issues/29729 - */ -export type StringLiteralUnion = T | (string & Record); -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/utils/url.d.ts b/mcp-server/node_modules/hono/dist/types/utils/url.d.ts deleted file mode 100644 index dc94f1e..0000000 --- a/mcp-server/node_modules/hono/dist/types/utils/url.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @module - * URL utility. - */ -export type Pattern = readonly [string, string, RegExp | true] | '*'; -export declare const splitPath: (path: string) => string[]; -export declare const splitRoutingPath: (routePath: string) => string[]; -export declare const getPattern: (label: string, next?: string) => Pattern | null; -type Decoder = (str: string) => string; -export declare const tryDecode: (str: string, decoder: Decoder) => string; -export declare const getPath: (request: Request) => string; -export declare const getQueryStrings: (url: string) => string; -export declare const getPathNoStrict: (request: Request) => string; -/** - * Merge paths. - * @param {string[]} ...paths - The paths to merge. - * @returns {string} The merged path. - * @example - * mergePath('/api', '/users') // '/api/users' - * mergePath('/api/', '/users') // '/api/users' - * mergePath('/api', '/') // '/api' - * mergePath('/api/', '/') // '/api/' - */ -export declare const mergePath: (...paths: string[]) => string; -export declare const checkOptionalParameter: (path: string) => string[] | null; -export declare const getQueryParam: (url: string, key?: string) => string | undefined | Record; -export declare const getQueryParams: (url: string, key?: string) => string[] | undefined | Record; -export declare const decodeURIComponent_: typeof decodeURIComponent; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/validator/index.d.ts b/mcp-server/node_modules/hono/dist/types/validator/index.d.ts deleted file mode 100644 index 149b255..0000000 --- a/mcp-server/node_modules/hono/dist/types/validator/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @module - * Validator for Hono. - */ -export { validator } from './validator'; -export type { ValidationFunction } from './validator'; -export type { InferInput } from './utils'; diff --git a/mcp-server/node_modules/hono/dist/types/validator/utils.d.ts b/mcp-server/node_modules/hono/dist/types/validator/utils.d.ts deleted file mode 100644 index 4fef73d..0000000 --- a/mcp-server/node_modules/hono/dist/types/validator/utils.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { FormValue, ParsedFormValue, ValidationTargets } from '../types'; -import type { UnionToIntersection } from '../utils/types'; -/** - * Checks if T is a literal union type (e.g., 'asc' | 'desc') - * that should be preserved in input types. - * Returns true for union literals, false for single literals or wide types. - */ -export type IsLiteralUnion = [Exclude] extends [Base] ? [Exclude] extends [UnionToIntersection>] ? false : true : false; -type IsOptionalUnion = [unknown] extends [T] ? false : undefined extends T ? true : false; -type SimplifyDeep = { - [K in keyof T]: T[K]; -} & {}; -type InferInputInner = SimplifyDeep<{ - [K in keyof Output]: IsLiteralUnion extends true ? Output[K] : IsOptionalUnion extends true ? Output[K] : Target extends 'form' ? T | T[] : Target extends 'query' ? string | string[] : Target extends 'param' ? string : Target extends 'header' ? string : Target extends 'cookie' ? string : unknown; -}>; -/** - * Utility type to infer input types for validation targets. - * Preserves literal union types (e.g., 'asc' | 'desc') while using - * the default ValidationTargets type for other values. - * - * @example - * ```ts - * // In @hono/zod-validator or similar: - * type Input = InferInput, 'query'> - * // { orderBy: 'asc' | 'desc', page: string | string[] } - * ``` - */ -export type InferInput = [Exclude] extends [never] ? {} : [Exclude] extends [object] ? undefined extends Output ? SimplifyDeep, Target, T>> | undefined : SimplifyDeep> : {}; -export {}; diff --git a/mcp-server/node_modules/hono/dist/types/validator/validator.d.ts b/mcp-server/node_modules/hono/dist/types/validator/validator.d.ts deleted file mode 100644 index 0a94947..0000000 --- a/mcp-server/node_modules/hono/dist/types/validator/validator.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Context } from '../context'; -import type { Env, MiddlewareHandler, TypedResponse, ValidationTargets, FormValue } from '../types'; -import type { InferInput } from './utils'; -type ValidationTargetKeysWithBody = 'form' | 'json'; -type ValidationTargetByMethod = M extends 'get' | 'head' ? Exclude : keyof ValidationTargets; -export type ValidationFunction = (value: InputType, c: Context) => OutputType | TypedResponse | Promise | Promise; -export type ExtractValidationResponse = VF extends (value: any, c: any) => infer R ? R extends Promise ? PR extends TypedResponse ? TypedResponse : PR extends Response ? PR : PR extends undefined ? never : never : R extends TypedResponse ? TypedResponse : R extends Response ? R : R extends undefined ? never : never : never; -export declare const validator: , P2 extends string = P, VF extends (value: unknown extends InputType ? ValidationTargets[U] : InputType, c: Context) => any = (value: unknown extends InputType ? ValidationTargets[U] : InputType, c: Context) => any, V extends { - in: { [K in U]: K extends "json" ? unknown extends InputType ? ExtractValidatorOutput : InputType : InferInput, K, FormValue>; }; - out: { [K in U]: ExtractValidatorOutput; }; -} = { - in: { [K in U]: K extends "json" ? unknown extends InputType ? ExtractValidatorOutput : InputType : InferInput, K, FormValue>; }; - out: { [K in U]: ExtractValidatorOutput; }; -}, E extends Env = any>(target: U, validationFunc: VF) => MiddlewareHandler>; -export type ExtractValidatorOutput = VF extends (value: any, c: any) => infer R ? R extends Promise ? PR extends Response | TypedResponse ? never : PR : R extends Response | TypedResponse ? never : R : never; -export {}; diff --git a/mcp-server/node_modules/hono/dist/utils/accept.js b/mcp-server/node_modules/hono/dist/utils/accept.js deleted file mode 100644 index 2d72f1f..0000000 --- a/mcp-server/node_modules/hono/dist/utils/accept.js +++ /dev/null @@ -1,63 +0,0 @@ -// src/utils/accept.ts -var parseAccept = (acceptHeader) => { - if (!acceptHeader) { - return []; - } - const acceptValues = acceptHeader.split(",").map((value, index) => ({ value, index })); - return acceptValues.map(parseAcceptValue).filter((item) => Boolean(item)).sort(sortByQualityAndIndex).map(({ type, params, q }) => ({ type, params, q })); -}; -var parseAcceptValueRegex = /;(?=(?:(?:[^"]*"){2})*[^"]*$)/; -var parseAcceptValue = ({ value, index }) => { - const parts = value.trim().split(parseAcceptValueRegex).map((s) => s.trim()); - const type = parts[0]; - if (!type) { - return null; - } - const params = parseParams(parts.slice(1)); - const q = parseQuality(params.q); - return { type, params, q, index }; -}; -var parseParams = (paramParts) => { - return paramParts.reduce((acc, param) => { - const [key, val] = param.split("=").map((s) => s.trim()); - if (key && val) { - acc[key] = val; - } - return acc; - }, {}); -}; -var parseQuality = (qVal) => { - if (qVal === void 0) { - return 1; - } - if (qVal === "") { - return 1; - } - if (qVal === "NaN") { - return 0; - } - const num = Number(qVal); - if (num === Infinity) { - return 1; - } - if (num === -Infinity) { - return 0; - } - if (Number.isNaN(num)) { - return 1; - } - if (num < 0 || num > 1) { - return 1; - } - return num; -}; -var sortByQualityAndIndex = (a, b) => { - const qDiff = b.q - a.q; - if (qDiff !== 0) { - return qDiff; - } - return a.index - b.index; -}; -export { - parseAccept -}; diff --git a/mcp-server/node_modules/hono/dist/utils/basic-auth.js b/mcp-server/node_modules/hono/dist/utils/basic-auth.js deleted file mode 100644 index 579a665..0000000 --- a/mcp-server/node_modules/hono/dist/utils/basic-auth.js +++ /dev/null @@ -1,23 +0,0 @@ -// src/utils/basic-auth.ts -import { decodeBase64 } from "./encode.js"; -var CREDENTIALS_REGEXP = /^ *(?:[Bb][Aa][Ss][Ii][Cc]) +([A-Za-z0-9._~+/-]+=*) *$/; -var USER_PASS_REGEXP = /^([^:]*):(.*)$/; -var utf8Decoder = new TextDecoder(); -var auth = (req) => { - const match = CREDENTIALS_REGEXP.exec(req.headers.get("Authorization") || ""); - if (!match) { - return void 0; - } - let userPass = void 0; - try { - userPass = USER_PASS_REGEXP.exec(utf8Decoder.decode(decodeBase64(match[1]))); - } catch { - } - if (!userPass) { - return void 0; - } - return { username: userPass[1], password: userPass[2] }; -}; -export { - auth -}; diff --git a/mcp-server/node_modules/hono/dist/utils/body.js b/mcp-server/node_modules/hono/dist/utils/body.js deleted file mode 100644 index d636562..0000000 --- a/mcp-server/node_modules/hono/dist/utils/body.js +++ /dev/null @@ -1,72 +0,0 @@ -// src/utils/body.ts -import { HonoRequest } from "../request.js"; -var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => { - const { all = false, dot = false } = options; - const headers = request instanceof HonoRequest ? request.raw.headers : request.headers; - const contentType = headers.get("Content-Type"); - if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) { - return parseFormData(request, { all, dot }); - } - return {}; -}; -async function parseFormData(request, options) { - const formData = await request.formData(); - if (formData) { - return convertFormDataToBodyData(formData, options); - } - return {}; -} -function convertFormDataToBodyData(formData, options) { - const form = /* @__PURE__ */ Object.create(null); - formData.forEach((value, key) => { - const shouldParseAllValues = options.all || key.endsWith("[]"); - if (!shouldParseAllValues) { - form[key] = value; - } else { - handleParsingAllValues(form, key, value); - } - }); - if (options.dot) { - Object.entries(form).forEach(([key, value]) => { - const shouldParseDotValues = key.includes("."); - if (shouldParseDotValues) { - handleParsingNestedValues(form, key, value); - delete form[key]; - } - }); - } - return form; -} -var handleParsingAllValues = (form, key, value) => { - if (form[key] !== void 0) { - if (Array.isArray(form[key])) { - ; - form[key].push(value); - } else { - form[key] = [form[key], value]; - } - } else { - if (!key.endsWith("[]")) { - form[key] = value; - } else { - form[key] = [value]; - } - } -}; -var handleParsingNestedValues = (form, key, value) => { - let nestedForm = form; - const keys = key.split("."); - keys.forEach((key2, index) => { - if (index === keys.length - 1) { - nestedForm[key2] = value; - } else { - if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) { - nestedForm[key2] = /* @__PURE__ */ Object.create(null); - } - nestedForm = nestedForm[key2]; - } - }); -}; -export { - parseBody -}; diff --git a/mcp-server/node_modules/hono/dist/utils/buffer.js b/mcp-server/node_modules/hono/dist/utils/buffer.js deleted file mode 100644 index 241b9c1..0000000 --- a/mcp-server/node_modules/hono/dist/utils/buffer.js +++ /dev/null @@ -1,50 +0,0 @@ -// src/utils/buffer.ts -import { sha256 } from "./crypto.js"; -var equal = (a, b) => { - if (a === b) { - return true; - } - if (a.byteLength !== b.byteLength) { - return false; - } - const va = new DataView(a); - const vb = new DataView(b); - let i = va.byteLength; - while (i--) { - if (va.getUint8(i) !== vb.getUint8(i)) { - return false; - } - } - return true; -}; -var timingSafeEqual = async (a, b, hashFunction) => { - if (!hashFunction) { - hashFunction = sha256; - } - const [sa, sb] = await Promise.all([hashFunction(a), hashFunction(b)]); - if (!sa || !sb) { - return false; - } - return sa === sb && a === b; -}; -var bufferToString = (buffer) => { - if (buffer instanceof ArrayBuffer) { - const enc = new TextDecoder("utf-8"); - return enc.decode(buffer); - } - return buffer; -}; -var bufferToFormData = (arrayBuffer, contentType) => { - const response = new Response(arrayBuffer, { - headers: { - "Content-Type": contentType - } - }); - return response.formData(); -}; -export { - bufferToFormData, - bufferToString, - equal, - timingSafeEqual -}; diff --git a/mcp-server/node_modules/hono/dist/utils/color.js b/mcp-server/node_modules/hono/dist/utils/color.js deleted file mode 100644 index e867195..0000000 --- a/mcp-server/node_modules/hono/dist/utils/color.js +++ /dev/null @@ -1,25 +0,0 @@ -// src/utils/color.ts -function getColorEnabled() { - const { process, Deno } = globalThis; - const isNoColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : process !== void 0 ? ( - // eslint-disable-next-line no-unsafe-optional-chaining - "NO_COLOR" in process?.env - ) : false; - return !isNoColor; -} -async function getColorEnabledAsync() { - const { navigator } = globalThis; - const cfWorkers = "cloudflare:workers"; - const isNoColor = navigator !== void 0 && navigator.userAgent === "Cloudflare-Workers" ? await (async () => { - try { - return "NO_COLOR" in ((await import(cfWorkers)).env ?? {}); - } catch { - return false; - } - })() : !getColorEnabled(); - return !isNoColor; -} -export { - getColorEnabled, - getColorEnabledAsync -}; diff --git a/mcp-server/node_modules/hono/dist/utils/compress.js b/mcp-server/node_modules/hono/dist/utils/compress.js deleted file mode 100644 index 52b39b4..0000000 --- a/mcp-server/node_modules/hono/dist/utils/compress.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/utils/compress.ts -var COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/(?!event-stream(?:[;\s]|$))[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i; -export { - COMPRESSIBLE_CONTENT_TYPE_REGEX -}; diff --git a/mcp-server/node_modules/hono/dist/utils/concurrent.js b/mcp-server/node_modules/hono/dist/utils/concurrent.js deleted file mode 100644 index a9d4b6c..0000000 --- a/mcp-server/node_modules/hono/dist/utils/concurrent.js +++ /dev/null @@ -1,39 +0,0 @@ -// src/utils/concurrent.ts -var DEFAULT_CONCURRENCY = 1024; -var createPool = ({ - concurrency, - interval -} = {}) => { - concurrency ||= DEFAULT_CONCURRENCY; - if (concurrency === Infinity) { - return { - run: async (fn) => fn() - }; - } - const pool = /* @__PURE__ */ new Set(); - const run = async (fn, promise, resolve) => { - if (pool.size >= concurrency) { - promise ||= new Promise((r) => resolve = r); - setTimeout(() => run(fn, promise, resolve)); - return promise; - } - const marker = {}; - pool.add(marker); - const result = await fn(); - if (interval) { - setTimeout(() => pool.delete(marker), interval); - } else { - pool.delete(marker); - } - if (resolve) { - resolve(result); - return promise; - } else { - return result; - } - }; - return { run }; -}; -export { - createPool -}; diff --git a/mcp-server/node_modules/hono/dist/utils/constants.js b/mcp-server/node_modules/hono/dist/utils/constants.js deleted file mode 100644 index 1c63165..0000000 --- a/mcp-server/node_modules/hono/dist/utils/constants.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/utils/constants.ts -var COMPOSED_HANDLER = "__COMPOSED_HANDLER"; -export { - COMPOSED_HANDLER -}; diff --git a/mcp-server/node_modules/hono/dist/utils/cookie.js b/mcp-server/node_modules/hono/dist/utils/cookie.js deleted file mode 100644 index c1281f4..0000000 --- a/mcp-server/node_modules/hono/dist/utils/cookie.js +++ /dev/null @@ -1,147 +0,0 @@ -// src/utils/cookie.ts -import { decodeURIComponent_, tryDecode } from "./url.js"; -var algorithm = { name: "HMAC", hash: "SHA-256" }; -var getCryptoKey = async (secret) => { - const secretBuf = typeof secret === "string" ? new TextEncoder().encode(secret) : secret; - return await crypto.subtle.importKey("raw", secretBuf, algorithm, false, ["sign", "verify"]); -}; -var makeSignature = async (value, secret) => { - const key = await getCryptoKey(secret); - const signature = await crypto.subtle.sign(algorithm.name, key, new TextEncoder().encode(value)); - return btoa(String.fromCharCode(...new Uint8Array(signature))); -}; -var verifySignature = async (base64Signature, value, secret) => { - try { - const signatureBinStr = atob(base64Signature); - const signature = new Uint8Array(signatureBinStr.length); - for (let i = 0, len = signatureBinStr.length; i < len; i++) { - signature[i] = signatureBinStr.charCodeAt(i); - } - return await crypto.subtle.verify(algorithm, secret, signature, new TextEncoder().encode(value)); - } catch { - return false; - } -}; -var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/; -var validCookieValueRegEx = /^[ !#-:<-[\]-~]*$/; -var parse = (cookie, name) => { - if (name && cookie.indexOf(name) === -1) { - return {}; - } - const pairs = cookie.trim().split(";"); - const parsedCookie = {}; - for (let pairStr of pairs) { - pairStr = pairStr.trim(); - const valueStartPos = pairStr.indexOf("="); - if (valueStartPos === -1) { - continue; - } - const cookieName = pairStr.substring(0, valueStartPos).trim(); - if (name && name !== cookieName || !validCookieNameRegEx.test(cookieName)) { - continue; - } - let cookieValue = pairStr.substring(valueStartPos + 1).trim(); - if (cookieValue.startsWith('"') && cookieValue.endsWith('"')) { - cookieValue = cookieValue.slice(1, -1); - } - if (validCookieValueRegEx.test(cookieValue)) { - parsedCookie[cookieName] = cookieValue.indexOf("%") !== -1 ? tryDecode(cookieValue, decodeURIComponent_) : cookieValue; - if (name) { - break; - } - } - } - return parsedCookie; -}; -var parseSigned = async (cookie, secret, name) => { - const parsedCookie = {}; - const secretKey = await getCryptoKey(secret); - for (const [key, value] of Object.entries(parse(cookie, name))) { - const signatureStartPos = value.lastIndexOf("."); - if (signatureStartPos < 1) { - continue; - } - const signedValue = value.substring(0, signatureStartPos); - const signature = value.substring(signatureStartPos + 1); - if (signature.length !== 44 || !signature.endsWith("=")) { - continue; - } - const isVerified = await verifySignature(signature, signedValue, secretKey); - parsedCookie[key] = isVerified ? signedValue : false; - } - return parsedCookie; -}; -var _serialize = (name, value, opt = {}) => { - let cookie = `${name}=${value}`; - if (name.startsWith("__Secure-") && !opt.secure) { - throw new Error("__Secure- Cookie must have Secure attributes"); - } - if (name.startsWith("__Host-")) { - if (!opt.secure) { - throw new Error("__Host- Cookie must have Secure attributes"); - } - if (opt.path !== "/") { - throw new Error('__Host- Cookie must have Path attributes with "/"'); - } - if (opt.domain) { - throw new Error("__Host- Cookie must not have Domain attributes"); - } - } - if (opt && typeof opt.maxAge === "number" && opt.maxAge >= 0) { - if (opt.maxAge > 3456e4) { - throw new Error( - "Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration." - ); - } - cookie += `; Max-Age=${opt.maxAge | 0}`; - } - if (opt.domain && opt.prefix !== "host") { - cookie += `; Domain=${opt.domain}`; - } - if (opt.path) { - cookie += `; Path=${opt.path}`; - } - if (opt.expires) { - if (opt.expires.getTime() - Date.now() > 3456e7) { - throw new Error( - "Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future." - ); - } - cookie += `; Expires=${opt.expires.toUTCString()}`; - } - if (opt.httpOnly) { - cookie += "; HttpOnly"; - } - if (opt.secure) { - cookie += "; Secure"; - } - if (opt.sameSite) { - cookie += `; SameSite=${opt.sameSite.charAt(0).toUpperCase() + opt.sameSite.slice(1)}`; - } - if (opt.priority) { - cookie += `; Priority=${opt.priority.charAt(0).toUpperCase() + opt.priority.slice(1)}`; - } - if (opt.partitioned) { - if (!opt.secure) { - throw new Error("Partitioned Cookie must have Secure attributes"); - } - cookie += "; Partitioned"; - } - return cookie; -}; -var serialize = (name, value, opt) => { - value = encodeURIComponent(value); - return _serialize(name, value, opt); -}; -var serializeSigned = async (name, value, secret, opt = {}) => { - const signature = await makeSignature(value, secret); - value = `${value}.${signature}`; - value = encodeURIComponent(value); - return _serialize(name, value, opt); -}; -export { - parse, - parseSigned, - serialize, - serializeSigned -}; diff --git a/mcp-server/node_modules/hono/dist/utils/crypto.js b/mcp-server/node_modules/hono/dist/utils/crypto.js deleted file mode 100644 index 36772c4..0000000 --- a/mcp-server/node_modules/hono/dist/utils/crypto.js +++ /dev/null @@ -1,44 +0,0 @@ -// src/utils/crypto.ts -var sha256 = async (data) => { - const algorithm = { name: "SHA-256", alias: "sha256" }; - const hash = await createHash(data, algorithm); - return hash; -}; -var sha1 = async (data) => { - const algorithm = { name: "SHA-1", alias: "sha1" }; - const hash = await createHash(data, algorithm); - return hash; -}; -var md5 = async (data) => { - const algorithm = { name: "MD5", alias: "md5" }; - const hash = await createHash(data, algorithm); - return hash; -}; -var createHash = async (data, algorithm) => { - let sourceBuffer; - if (ArrayBuffer.isView(data) || data instanceof ArrayBuffer) { - sourceBuffer = data; - } else { - if (typeof data === "object") { - data = JSON.stringify(data); - } - sourceBuffer = new TextEncoder().encode(String(data)); - } - if (crypto && crypto.subtle) { - const buffer = await crypto.subtle.digest( - { - name: algorithm.name - }, - sourceBuffer - ); - const hash = Array.prototype.map.call(new Uint8Array(buffer), (x) => ("00" + x.toString(16)).slice(-2)).join(""); - return hash; - } - return null; -}; -export { - createHash, - md5, - sha1, - sha256 -}; diff --git a/mcp-server/node_modules/hono/dist/utils/encode.js b/mcp-server/node_modules/hono/dist/utils/encode.js deleted file mode 100644 index d4ce6a7..0000000 --- a/mcp-server/node_modules/hono/dist/utils/encode.js +++ /dev/null @@ -1,29 +0,0 @@ -// src/utils/encode.ts -var decodeBase64Url = (str) => { - return decodeBase64(str.replace(/_|-/g, (m) => ({ _: "/", "-": "+" })[m] ?? m)); -}; -var encodeBase64Url = (buf) => encodeBase64(buf).replace(/\/|\+/g, (m) => ({ "/": "_", "+": "-" })[m] ?? m); -var encodeBase64 = (buf) => { - let binary = ""; - const bytes = new Uint8Array(buf); - for (let i = 0, len = bytes.length; i < len; i++) { - binary += String.fromCharCode(bytes[i]); - } - return btoa(binary); -}; -var decodeBase64 = (str) => { - const binary = atob(str); - const bytes = new Uint8Array(new ArrayBuffer(binary.length)); - const half = binary.length / 2; - for (let i = 0, j = binary.length - 1; i <= half; i++, j--) { - bytes[i] = binary.charCodeAt(i); - bytes[j] = binary.charCodeAt(j); - } - return bytes; -}; -export { - decodeBase64, - decodeBase64Url, - encodeBase64, - encodeBase64Url -}; diff --git a/mcp-server/node_modules/hono/dist/utils/filepath.js b/mcp-server/node_modules/hono/dist/utils/filepath.js deleted file mode 100644 index 7807be5..0000000 --- a/mcp-server/node_modules/hono/dist/utils/filepath.js +++ /dev/null @@ -1,35 +0,0 @@ -// src/utils/filepath.ts -var getFilePath = (options) => { - let filename = options.filename; - const defaultDocument = options.defaultDocument || "index.html"; - if (filename.endsWith("/")) { - filename = filename.concat(defaultDocument); - } else if (!filename.match(/\.[a-zA-Z0-9_-]+$/)) { - filename = filename.concat("/" + defaultDocument); - } - const path = getFilePathWithoutDefaultDocument({ - root: options.root, - filename - }); - return path; -}; -var getFilePathWithoutDefaultDocument = (options) => { - let root = options.root || ""; - let filename = options.filename; - if (/(?:^|[\/\\])\.\.(?:$|[\/\\])/.test(filename)) { - return; - } - filename = filename.replace(/^\.?[\/\\]/, ""); - filename = filename.replace(/\\/, "/"); - root = root.replace(/\/$/, ""); - let path = root ? root + "/" + filename : filename; - path = path.replace(/^\.?\//, ""); - if (root[0] !== "/" && path[0] === "/") { - return; - } - return path; -}; -export { - getFilePath, - getFilePathWithoutDefaultDocument -}; diff --git a/mcp-server/node_modules/hono/dist/utils/handler.js b/mcp-server/node_modules/hono/dist/utils/handler.js deleted file mode 100644 index 317ae65..0000000 --- a/mcp-server/node_modules/hono/dist/utils/handler.js +++ /dev/null @@ -1,13 +0,0 @@ -// src/utils/handler.ts -import { COMPOSED_HANDLER } from "./constants.js"; -var isMiddleware = (handler) => handler.length > 1; -var findTargetHandler = (handler) => { - return handler[COMPOSED_HANDLER] ? ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - findTargetHandler(handler[COMPOSED_HANDLER]) - ) : handler; -}; -export { - findTargetHandler, - isMiddleware -}; diff --git a/mcp-server/node_modules/hono/dist/utils/headers.js b/mcp-server/node_modules/hono/dist/utils/headers.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/utils/html.js b/mcp-server/node_modules/hono/dist/utils/html.js deleted file mode 100644 index 79f7772..0000000 --- a/mcp-server/node_modules/hono/dist/utils/html.js +++ /dev/null @@ -1,123 +0,0 @@ -// src/utils/html.ts -var HtmlEscapedCallbackPhase = { - Stringify: 1, - BeforeStream: 2, - Stream: 3 -}; -var raw = (value, callbacks) => { - const escapedString = new String(value); - escapedString.isEscaped = true; - escapedString.callbacks = callbacks; - return escapedString; -}; -var escapeRe = /[&<>'"]/; -var stringBufferToString = async (buffer, callbacks) => { - let str = ""; - callbacks ||= []; - const resolvedBuffer = await Promise.all(buffer); - for (let i = resolvedBuffer.length - 1; ; i--) { - str += resolvedBuffer[i]; - i--; - if (i < 0) { - break; - } - let r = resolvedBuffer[i]; - if (typeof r === "object") { - callbacks.push(...r.callbacks || []); - } - const isEscaped = r.isEscaped; - r = await (typeof r === "object" ? r.toString() : r); - if (typeof r === "object") { - callbacks.push(...r.callbacks || []); - } - if (r.isEscaped ?? isEscaped) { - str += r; - } else { - const buf = [str]; - escapeToBuffer(r, buf); - str = buf[0]; - } - } - return raw(str, callbacks); -}; -var escapeToBuffer = (str, buffer) => { - const match = str.search(escapeRe); - if (match === -1) { - buffer[0] += str; - return; - } - let escape; - let index; - let lastIndex = 0; - for (index = match; index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape = """; - break; - case 39: - escape = "'"; - break; - case 38: - escape = "&"; - break; - case 60: - escape = "<"; - break; - case 62: - escape = ">"; - break; - default: - continue; - } - buffer[0] += str.substring(lastIndex, index) + escape; - lastIndex = index + 1; - } - buffer[0] += str.substring(lastIndex, index); -}; -var resolveCallbackSync = (str) => { - const callbacks = str.callbacks; - if (!callbacks?.length) { - return str; - } - const buffer = [str]; - const context = {}; - callbacks.forEach((c) => c({ phase: HtmlEscapedCallbackPhase.Stringify, buffer, context })); - return buffer[0]; -}; -var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => { - if (typeof str === "object" && !(str instanceof String)) { - if (!(str instanceof Promise)) { - str = str.toString(); - } - if (str instanceof Promise) { - str = await str; - } - } - const callbacks = str.callbacks; - if (!callbacks?.length) { - return Promise.resolve(str); - } - if (buffer) { - buffer[0] += str; - } else { - buffer = [str]; - } - const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context }))).then( - (res) => Promise.all( - res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context, buffer)) - ).then(() => buffer[0]) - ); - if (preserveCallbacks) { - return raw(await resStr, callbacks); - } else { - return resStr; - } -}; -export { - HtmlEscapedCallbackPhase, - escapeToBuffer, - raw, - resolveCallback, - resolveCallbackSync, - stringBufferToString -}; diff --git a/mcp-server/node_modules/hono/dist/utils/http-status.js b/mcp-server/node_modules/hono/dist/utils/http-status.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/utils/ipaddr.js b/mcp-server/node_modules/hono/dist/utils/ipaddr.js deleted file mode 100644 index c10df08..0000000 --- a/mcp-server/node_modules/hono/dist/utils/ipaddr.js +++ /dev/null @@ -1,101 +0,0 @@ -// src/utils/ipaddr.ts -var expandIPv6 = (ipV6) => { - const sections = ipV6.split(":"); - if (IPV4_REGEX.test(sections.at(-1))) { - sections.splice( - -1, - 1, - ...convertIPv6BinaryToString(convertIPv4ToBinary(sections.at(-1))).substring(2).split(":") - // => ['7f00', '0001'] - ); - } - for (let i = 0; i < sections.length; i++) { - const node = sections[i]; - if (node !== "") { - sections[i] = node.padStart(4, "0"); - } else { - sections[i + 1] === "" && sections.splice(i + 1, 1); - sections[i] = new Array(8 - sections.length + 1).fill("0000").join(":"); - } - } - return sections.join(":"); -}; -var IPV4_REGEX = /^[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}\.[0-9]{0,3}$/; -var distinctRemoteAddr = (remoteAddr) => { - if (IPV4_REGEX.test(remoteAddr)) { - return "IPv4"; - } - if (remoteAddr.includes(":")) { - return "IPv6"; - } -}; -var convertIPv4ToBinary = (ipv4) => { - const parts = ipv4.split("."); - let result = 0n; - for (let i = 0; i < 4; i++) { - result <<= 8n; - result += BigInt(parts[i]); - } - return result; -}; -var convertIPv6ToBinary = (ipv6) => { - const sections = expandIPv6(ipv6).split(":"); - let result = 0n; - for (let i = 0; i < 8; i++) { - result <<= 16n; - result += BigInt(parseInt(sections[i], 16)); - } - return result; -}; -var convertIPv4BinaryToString = (ipV4) => { - const sections = []; - for (let i = 0; i < 4; i++) { - sections.push(ipV4 >> BigInt(8 * (3 - i)) & 0xffn); - } - return sections.join("."); -}; -var convertIPv6BinaryToString = (ipV6) => { - if (ipV6 >> 32n === 0xffffn) { - return `::ffff:${convertIPv4BinaryToString(ipV6 & 0xffffffffn)}`; - } - const sections = []; - for (let i = 0; i < 8; i++) { - sections.push((ipV6 >> BigInt(16 * (7 - i)) & 0xffffn).toString(16)); - } - let currentZeroStart = -1; - let maxZeroStart = -1; - let maxZeroEnd = -1; - for (let i = 0; i < 8; i++) { - if (sections[i] === "0") { - if (currentZeroStart === -1) { - currentZeroStart = i; - } - } else { - if (currentZeroStart > -1) { - if (i - currentZeroStart > maxZeroEnd - maxZeroStart) { - maxZeroStart = currentZeroStart; - maxZeroEnd = i; - } - currentZeroStart = -1; - } - } - } - if (currentZeroStart > -1) { - if (8 - currentZeroStart > maxZeroEnd - maxZeroStart) { - maxZeroStart = currentZeroStart; - maxZeroEnd = 8; - } - } - if (maxZeroStart !== -1) { - sections.splice(maxZeroStart, maxZeroEnd - maxZeroStart, ":"); - } - return sections.join(":").replace(/:{2,}/g, "::"); -}; -export { - convertIPv4BinaryToString, - convertIPv4ToBinary, - convertIPv6BinaryToString, - convertIPv6ToBinary, - distinctRemoteAddr, - expandIPv6 -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/index.js b/mcp-server/node_modules/hono/dist/utils/jwt/index.js deleted file mode 100644 index 25467d1..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/index.js +++ /dev/null @@ -1,6 +0,0 @@ -// src/utils/jwt/index.ts -import { decode, sign, verify, verifyWithJwks } from "./jwt.js"; -var Jwt = { sign, verify, decode, verifyWithJwks }; -export { - Jwt -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/jwa.js b/mcp-server/node_modules/hono/dist/utils/jwt/jwa.js deleted file mode 100644 index 6331192..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/jwa.js +++ /dev/null @@ -1,20 +0,0 @@ -// src/utils/jwt/jwa.ts -var AlgorithmTypes = /* @__PURE__ */ ((AlgorithmTypes2) => { - AlgorithmTypes2["HS256"] = "HS256"; - AlgorithmTypes2["HS384"] = "HS384"; - AlgorithmTypes2["HS512"] = "HS512"; - AlgorithmTypes2["RS256"] = "RS256"; - AlgorithmTypes2["RS384"] = "RS384"; - AlgorithmTypes2["RS512"] = "RS512"; - AlgorithmTypes2["PS256"] = "PS256"; - AlgorithmTypes2["PS384"] = "PS384"; - AlgorithmTypes2["PS512"] = "PS512"; - AlgorithmTypes2["ES256"] = "ES256"; - AlgorithmTypes2["ES384"] = "ES384"; - AlgorithmTypes2["ES512"] = "ES512"; - AlgorithmTypes2["EdDSA"] = "EdDSA"; - return AlgorithmTypes2; -})(AlgorithmTypes || {}); -export { - AlgorithmTypes -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/jws.js b/mcp-server/node_modules/hono/dist/utils/jwt/jws.js deleted file mode 100644 index 2832b9c..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/jws.js +++ /dev/null @@ -1,192 +0,0 @@ -// src/utils/jwt/jws.ts -import { getRuntimeKey } from "../../helper/adapter/index.js"; -import { decodeBase64 } from "../encode.js"; -import { CryptoKeyUsage, JwtAlgorithmNotImplemented } from "./types.js"; -import { utf8Encoder } from "./utf8.js"; -async function signing(privateKey, alg, data) { - const algorithm = getKeyAlgorithm(alg); - const cryptoKey = await importPrivateKey(privateKey, algorithm); - return await crypto.subtle.sign(algorithm, cryptoKey, data); -} -async function verifying(publicKey, alg, signature, data) { - const algorithm = getKeyAlgorithm(alg); - const cryptoKey = await importPublicKey(publicKey, algorithm); - return await crypto.subtle.verify(algorithm, cryptoKey, signature, data); -} -function pemToBinary(pem) { - return decodeBase64(pem.replace(/-+(BEGIN|END).*/g, "").replace(/\s/g, "")); -} -async function importPrivateKey(key, alg) { - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - if (isCryptoKey(key)) { - if (key.type !== "private" && key.type !== "secret") { - throw new Error( - `unexpected key type: CryptoKey.type is ${key.type}, expected private or secret` - ); - } - return key; - } - const usages = [CryptoKeyUsage.Sign]; - if (typeof key === "object") { - return await crypto.subtle.importKey("jwk", key, alg, false, usages); - } - if (key.includes("PRIVATE")) { - return await crypto.subtle.importKey("pkcs8", pemToBinary(key), alg, false, usages); - } - return await crypto.subtle.importKey("raw", utf8Encoder.encode(key), alg, false, usages); -} -async function importPublicKey(key, alg) { - if (!crypto.subtle || !crypto.subtle.importKey) { - throw new Error("`crypto.subtle.importKey` is undefined. JWT auth middleware requires it."); - } - if (isCryptoKey(key)) { - if (key.type === "public" || key.type === "secret") { - return key; - } - key = await exportPublicJwkFrom(key); - } - if (typeof key === "string" && key.includes("PRIVATE")) { - const privateKey = await crypto.subtle.importKey("pkcs8", pemToBinary(key), alg, true, [ - CryptoKeyUsage.Sign - ]); - key = await exportPublicJwkFrom(privateKey); - } - const usages = [CryptoKeyUsage.Verify]; - if (typeof key === "object") { - return await crypto.subtle.importKey("jwk", key, alg, false, usages); - } - if (key.includes("PUBLIC")) { - return await crypto.subtle.importKey("spki", pemToBinary(key), alg, false, usages); - } - return await crypto.subtle.importKey("raw", utf8Encoder.encode(key), alg, false, usages); -} -async function exportPublicJwkFrom(privateKey) { - if (privateKey.type !== "private") { - throw new Error(`unexpected key type: ${privateKey.type}`); - } - if (!privateKey.extractable) { - throw new Error("unexpected private key is unextractable"); - } - const jwk = await crypto.subtle.exportKey("jwk", privateKey); - const { kty } = jwk; - const { alg, e, n } = jwk; - const { crv, x, y } = jwk; - return { kty, alg, e, n, crv, x, y, key_ops: [CryptoKeyUsage.Verify] }; -} -function getKeyAlgorithm(name) { - switch (name) { - case "HS256": - return { - name: "HMAC", - hash: { - name: "SHA-256" - } - }; - case "HS384": - return { - name: "HMAC", - hash: { - name: "SHA-384" - } - }; - case "HS512": - return { - name: "HMAC", - hash: { - name: "SHA-512" - } - }; - case "RS256": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-256" - } - }; - case "RS384": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-384" - } - }; - case "RS512": - return { - name: "RSASSA-PKCS1-v1_5", - hash: { - name: "SHA-512" - } - }; - case "PS256": - return { - name: "RSA-PSS", - hash: { - name: "SHA-256" - }, - saltLength: 32 - // 256 >> 3 - }; - case "PS384": - return { - name: "RSA-PSS", - hash: { - name: "SHA-384" - }, - saltLength: 48 - // 384 >> 3 - }; - case "PS512": - return { - name: "RSA-PSS", - hash: { - name: "SHA-512" - }, - saltLength: 64 - // 512 >> 3, - }; - case "ES256": - return { - name: "ECDSA", - hash: { - name: "SHA-256" - }, - namedCurve: "P-256" - }; - case "ES384": - return { - name: "ECDSA", - hash: { - name: "SHA-384" - }, - namedCurve: "P-384" - }; - case "ES512": - return { - name: "ECDSA", - hash: { - name: "SHA-512" - }, - namedCurve: "P-521" - }; - case "EdDSA": - return { - name: "Ed25519", - namedCurve: "Ed25519" - }; - default: - throw new JwtAlgorithmNotImplemented(name); - } -} -function isCryptoKey(key) { - const runtime = getRuntimeKey(); - if (runtime === "node" && !!crypto.webcrypto) { - return key instanceof crypto.webcrypto.CryptoKey; - } - return key instanceof CryptoKey; -} -export { - signing, - verifying -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/jwt.js b/mcp-server/node_modules/hono/dist/utils/jwt/jwt.js deleted file mode 100644 index 50658f7..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/jwt.js +++ /dev/null @@ -1,170 +0,0 @@ -// src/utils/jwt/jwt.ts -import { decodeBase64Url, encodeBase64Url } from "../../utils/encode.js"; -import { AlgorithmTypes } from "./jwa.js"; -import { signing, verifying } from "./jws.js"; -import { - JwtHeaderInvalid, - JwtHeaderRequiresKid, - JwtPayloadRequiresAud, - JwtTokenAudience, - JwtTokenExpired, - JwtTokenInvalid, - JwtTokenIssuedAt, - JwtTokenIssuer, - JwtTokenNotBefore, - JwtTokenSignatureMismatched -} from "./types.js"; -import { utf8Decoder, utf8Encoder } from "./utf8.js"; -var encodeJwtPart = (part) => encodeBase64Url(utf8Encoder.encode(JSON.stringify(part)).buffer).replace(/=/g, ""); -var encodeSignaturePart = (buf) => encodeBase64Url(buf).replace(/=/g, ""); -var decodeJwtPart = (part) => JSON.parse(utf8Decoder.decode(decodeBase64Url(part))); -function isTokenHeader(obj) { - if (typeof obj === "object" && obj !== null) { - const objWithAlg = obj; - return "alg" in objWithAlg && Object.values(AlgorithmTypes).includes(objWithAlg.alg) && (!("typ" in objWithAlg) || objWithAlg.typ === "JWT"); - } - return false; -} -var sign = async (payload, privateKey, alg = "HS256") => { - const encodedPayload = encodeJwtPart(payload); - let encodedHeader; - if (typeof privateKey === "object" && "alg" in privateKey) { - alg = privateKey.alg; - encodedHeader = encodeJwtPart({ alg, typ: "JWT", kid: privateKey.kid }); - } else { - encodedHeader = encodeJwtPart({ alg, typ: "JWT" }); - } - const partialToken = `${encodedHeader}.${encodedPayload}`; - const signaturePart = await signing(privateKey, alg, utf8Encoder.encode(partialToken)); - const signature = encodeSignaturePart(signaturePart); - return `${partialToken}.${signature}`; -}; -var verify = async (token, publicKey, algOrOptions) => { - const { - alg = "HS256", - iss, - nbf = true, - exp = true, - iat = true, - aud - } = typeof algOrOptions === "string" ? { alg: algOrOptions } : algOrOptions || {}; - const tokenParts = token.split("."); - if (tokenParts.length !== 3) { - throw new JwtTokenInvalid(token); - } - const { header, payload } = decode(token); - if (!isTokenHeader(header)) { - throw new JwtHeaderInvalid(header); - } - const now = Date.now() / 1e3 | 0; - if (nbf && payload.nbf && payload.nbf > now) { - throw new JwtTokenNotBefore(token); - } - if (exp && payload.exp && payload.exp <= now) { - throw new JwtTokenExpired(token); - } - if (iat && payload.iat && now < payload.iat) { - throw new JwtTokenIssuedAt(now, payload.iat); - } - if (iss) { - if (!payload.iss) { - throw new JwtTokenIssuer(iss, null); - } - if (typeof iss === "string" && payload.iss !== iss) { - throw new JwtTokenIssuer(iss, payload.iss); - } - if (iss instanceof RegExp && !iss.test(payload.iss)) { - throw new JwtTokenIssuer(iss, payload.iss); - } - } - if (aud) { - if (!payload.aud) { - throw new JwtPayloadRequiresAud(payload); - } - const audiences = Array.isArray(payload.aud) ? payload.aud : [payload.aud]; - const matched = audiences.some( - (payloadAud) => aud instanceof RegExp ? aud.test(payloadAud) : typeof aud === "string" ? payloadAud === aud : Array.isArray(aud) && aud.includes(payloadAud) - ); - if (!matched) { - throw new JwtTokenAudience(aud, payload.aud); - } - } - const headerPayload = token.substring(0, token.lastIndexOf(".")); - const verified = await verifying( - publicKey, - alg, - decodeBase64Url(tokenParts[2]), - utf8Encoder.encode(headerPayload) - ); - if (!verified) { - throw new JwtTokenSignatureMismatched(token); - } - return payload; -}; -var verifyWithJwks = async (token, options, init) => { - const verifyOpts = options.verification || {}; - const header = decodeHeader(token); - if (!isTokenHeader(header)) { - throw new JwtHeaderInvalid(header); - } - if (!header.kid) { - throw new JwtHeaderRequiresKid(header); - } - if (options.jwks_uri) { - const response = await fetch(options.jwks_uri, init); - if (!response.ok) { - throw new Error(`failed to fetch JWKS from ${options.jwks_uri}`); - } - const data = await response.json(); - if (!data.keys) { - throw new Error('invalid JWKS response. "keys" field is missing'); - } - if (!Array.isArray(data.keys)) { - throw new Error('invalid JWKS response. "keys" field is not an array'); - } - if (options.keys) { - options.keys.push(...data.keys); - } else { - options.keys = data.keys; - } - } else if (!options.keys) { - throw new Error('verifyWithJwks requires options for either "keys" or "jwks_uri" or both'); - } - const matchingKey = options.keys.find((key) => key.kid === header.kid); - if (!matchingKey) { - throw new JwtTokenInvalid(token); - } - return await verify(token, matchingKey, { - alg: matchingKey.alg || header.alg, - ...verifyOpts - }); -}; -var decode = (token) => { - try { - const [h, p] = token.split("."); - const header = decodeJwtPart(h); - const payload = decodeJwtPart(p); - return { - header, - payload - }; - } catch { - throw new JwtTokenInvalid(token); - } -}; -var decodeHeader = (token) => { - try { - const [h] = token.split("."); - return decodeJwtPart(h); - } catch { - throw new JwtTokenInvalid(token); - } -}; -export { - decode, - decodeHeader, - isTokenHeader, - sign, - verify, - verifyWithJwks -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/types.js b/mcp-server/node_modules/hono/dist/utils/jwt/types.js deleted file mode 100644 index 4d64d4f..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/types.js +++ /dev/null @@ -1,96 +0,0 @@ -// src/utils/jwt/types.ts -var JwtAlgorithmNotImplemented = class extends Error { - constructor(alg) { - super(`${alg} is not an implemented algorithm`); - this.name = "JwtAlgorithmNotImplemented"; - } -}; -var JwtTokenInvalid = class extends Error { - constructor(token) { - super(`invalid JWT token: ${token}`); - this.name = "JwtTokenInvalid"; - } -}; -var JwtTokenNotBefore = class extends Error { - constructor(token) { - super(`token (${token}) is being used before it's valid`); - this.name = "JwtTokenNotBefore"; - } -}; -var JwtTokenExpired = class extends Error { - constructor(token) { - super(`token (${token}) expired`); - this.name = "JwtTokenExpired"; - } -}; -var JwtTokenIssuedAt = class extends Error { - constructor(currentTimestamp, iat) { - super( - `Invalid "iat" claim, must be a valid number lower than "${currentTimestamp}" (iat: "${iat}")` - ); - this.name = "JwtTokenIssuedAt"; - } -}; -var JwtTokenIssuer = class extends Error { - constructor(expected, iss) { - super(`expected issuer "${expected}", got ${iss ? `"${iss}"` : "none"} `); - this.name = "JwtTokenIssuer"; - } -}; -var JwtHeaderInvalid = class extends Error { - constructor(header) { - super(`jwt header is invalid: ${JSON.stringify(header)}`); - this.name = "JwtHeaderInvalid"; - } -}; -var JwtHeaderRequiresKid = class extends Error { - constructor(header) { - super(`required "kid" in jwt header: ${JSON.stringify(header)}`); - this.name = "JwtHeaderRequiresKid"; - } -}; -var JwtTokenSignatureMismatched = class extends Error { - constructor(token) { - super(`token(${token}) signature mismatched`); - this.name = "JwtTokenSignatureMismatched"; - } -}; -var JwtPayloadRequiresAud = class extends Error { - constructor(payload) { - super(`required "aud" in jwt payload: ${JSON.stringify(payload)}`); - this.name = "JwtPayloadRequiresAud"; - } -}; -var JwtTokenAudience = class extends Error { - constructor(expected, aud) { - super( - `expected audience "${Array.isArray(expected) ? expected.join(", ") : expected}", got "${aud}"` - ); - this.name = "JwtTokenAudience"; - } -}; -var CryptoKeyUsage = /* @__PURE__ */ ((CryptoKeyUsage2) => { - CryptoKeyUsage2["Encrypt"] = "encrypt"; - CryptoKeyUsage2["Decrypt"] = "decrypt"; - CryptoKeyUsage2["Sign"] = "sign"; - CryptoKeyUsage2["Verify"] = "verify"; - CryptoKeyUsage2["DeriveKey"] = "deriveKey"; - CryptoKeyUsage2["DeriveBits"] = "deriveBits"; - CryptoKeyUsage2["WrapKey"] = "wrapKey"; - CryptoKeyUsage2["UnwrapKey"] = "unwrapKey"; - return CryptoKeyUsage2; -})(CryptoKeyUsage || {}); -export { - CryptoKeyUsage, - JwtAlgorithmNotImplemented, - JwtHeaderInvalid, - JwtHeaderRequiresKid, - JwtPayloadRequiresAud, - JwtTokenAudience, - JwtTokenExpired, - JwtTokenInvalid, - JwtTokenIssuedAt, - JwtTokenIssuer, - JwtTokenNotBefore, - JwtTokenSignatureMismatched -}; diff --git a/mcp-server/node_modules/hono/dist/utils/jwt/utf8.js b/mcp-server/node_modules/hono/dist/utils/jwt/utf8.js deleted file mode 100644 index 3cd9f0e..0000000 --- a/mcp-server/node_modules/hono/dist/utils/jwt/utf8.js +++ /dev/null @@ -1,7 +0,0 @@ -// src/utils/jwt/utf8.ts -var utf8Encoder = new TextEncoder(); -var utf8Decoder = new TextDecoder(); -export { - utf8Decoder, - utf8Encoder -}; diff --git a/mcp-server/node_modules/hono/dist/utils/mime.js b/mcp-server/node_modules/hono/dist/utils/mime.js deleted file mode 100644 index 8d9985e..0000000 --- a/mcp-server/node_modules/hono/dist/utils/mime.js +++ /dev/null @@ -1,84 +0,0 @@ -// src/utils/mime.ts -var getMimeType = (filename, mimes = baseMimes) => { - const regexp = /\.([a-zA-Z0-9]+?)$/; - const match = filename.match(regexp); - if (!match) { - return; - } - let mimeType = mimes[match[1]]; - if (mimeType && mimeType.startsWith("text")) { - mimeType += "; charset=utf-8"; - } - return mimeType; -}; -var getExtension = (mimeType) => { - for (const ext in baseMimes) { - if (baseMimes[ext] === mimeType) { - return ext; - } - } -}; -var _baseMimes = { - aac: "audio/aac", - avi: "video/x-msvideo", - avif: "image/avif", - av1: "video/av1", - bin: "application/octet-stream", - bmp: "image/bmp", - css: "text/css", - csv: "text/csv", - eot: "application/vnd.ms-fontobject", - epub: "application/epub+zip", - gif: "image/gif", - gz: "application/gzip", - htm: "text/html", - html: "text/html", - ico: "image/x-icon", - ics: "text/calendar", - jpeg: "image/jpeg", - jpg: "image/jpeg", - js: "text/javascript", - json: "application/json", - jsonld: "application/ld+json", - map: "application/json", - mid: "audio/x-midi", - midi: "audio/x-midi", - mjs: "text/javascript", - mp3: "audio/mpeg", - mp4: "video/mp4", - mpeg: "video/mpeg", - oga: "audio/ogg", - ogv: "video/ogg", - ogx: "application/ogg", - opus: "audio/opus", - otf: "font/otf", - pdf: "application/pdf", - png: "image/png", - rtf: "application/rtf", - svg: "image/svg+xml", - tif: "image/tiff", - tiff: "image/tiff", - ts: "video/mp2t", - ttf: "font/ttf", - txt: "text/plain", - wasm: "application/wasm", - webm: "video/webm", - weba: "audio/webm", - webmanifest: "application/manifest+json", - webp: "image/webp", - woff: "font/woff", - woff2: "font/woff2", - xhtml: "application/xhtml+xml", - xml: "application/xml", - zip: "application/zip", - "3gp": "video/3gpp", - "3g2": "video/3gpp2", - gltf: "model/gltf+json", - glb: "model/gltf-binary" -}; -var baseMimes = _baseMimes; -export { - getExtension, - getMimeType, - baseMimes as mimes -}; diff --git a/mcp-server/node_modules/hono/dist/utils/stream.js b/mcp-server/node_modules/hono/dist/utils/stream.js deleted file mode 100644 index 9fb6191..0000000 --- a/mcp-server/node_modules/hono/dist/utils/stream.js +++ /dev/null @@ -1,79 +0,0 @@ -// src/utils/stream.ts -var StreamingApi = class { - writer; - encoder; - writable; - abortSubscribers = []; - responseReadable; - /** - * Whether the stream has been aborted. - */ - aborted = false; - /** - * Whether the stream has been closed normally. - */ - closed = false; - constructor(writable, _readable) { - this.writable = writable; - this.writer = writable.getWriter(); - this.encoder = new TextEncoder(); - const reader = _readable.getReader(); - this.abortSubscribers.push(async () => { - await reader.cancel(); - }); - this.responseReadable = new ReadableStream({ - async pull(controller) { - const { done, value } = await reader.read(); - done ? controller.close() : controller.enqueue(value); - }, - cancel: () => { - this.abort(); - } - }); - } - async write(input) { - try { - if (typeof input === "string") { - input = this.encoder.encode(input); - } - await this.writer.write(input); - } catch { - } - return this; - } - async writeln(input) { - await this.write(input + "\n"); - return this; - } - sleep(ms) { - return new Promise((res) => setTimeout(res, ms)); - } - async close() { - try { - await this.writer.close(); - } catch { - } - this.closed = true; - } - async pipe(body) { - this.writer.releaseLock(); - await body.pipeTo(this.writable, { preventClose: true }); - this.writer = this.writable.getWriter(); - } - onAbort(listener) { - this.abortSubscribers.push(listener); - } - /** - * Abort the stream. - * You can call this method when stream is aborted by external event. - */ - abort() { - if (!this.aborted) { - this.aborted = true; - this.abortSubscribers.forEach((subscriber) => subscriber()); - } - } -}; -export { - StreamingApi -}; diff --git a/mcp-server/node_modules/hono/dist/utils/types.js b/mcp-server/node_modules/hono/dist/utils/types.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/utils/url.js b/mcp-server/node_modules/hono/dist/utils/url.js deleted file mode 100644 index 5a77e2a..0000000 --- a/mcp-server/node_modules/hono/dist/utils/url.js +++ /dev/null @@ -1,219 +0,0 @@ -// src/utils/url.ts -var splitPath = (path) => { - const paths = path.split("/"); - if (paths[0] === "") { - paths.shift(); - } - return paths; -}; -var splitRoutingPath = (routePath) => { - const { groups, path } = extractGroupsFromPath(routePath); - const paths = splitPath(path); - return replaceGroupMarks(paths, groups); -}; -var extractGroupsFromPath = (path) => { - const groups = []; - path = path.replace(/\{[^}]+\}/g, (match, index) => { - const mark = `@${index}`; - groups.push([mark, match]); - return mark; - }); - return { groups, path }; -}; -var replaceGroupMarks = (paths, groups) => { - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = paths.length - 1; j >= 0; j--) { - if (paths[j].includes(mark)) { - paths[j] = paths[j].replace(mark, groups[i][1]); - break; - } - } - } - return paths; -}; -var patternCache = {}; -var getPattern = (label, next) => { - if (label === "*") { - return "*"; - } - const match = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - if (match) { - const cacheKey = `${label}#${next}`; - if (!patternCache[cacheKey]) { - if (match[2]) { - patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match[1], new RegExp(`^${match[2]}(?=/${next})`)] : [label, match[1], new RegExp(`^${match[2]}$`)]; - } else { - patternCache[cacheKey] = [label, match[1], true]; - } - } - return patternCache[cacheKey]; - } - return null; -}; -var tryDecode = (str, decoder) => { - try { - return decoder(str); - } catch { - return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match) => { - try { - return decoder(match); - } catch { - return match; - } - }); - } -}; -var tryDecodeURI = (str) => tryDecode(str, decodeURI); -var getPath = (request) => { - const url = request.url; - const start = url.indexOf("/", url.indexOf(":") + 4); - let i = start; - for (; i < url.length; i++) { - const charCode = url.charCodeAt(i); - if (charCode === 37) { - const queryIndex = url.indexOf("?", i); - const path = url.slice(start, queryIndex === -1 ? void 0 : queryIndex); - return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path); - } else if (charCode === 63) { - break; - } - } - return url.slice(start, i); -}; -var getQueryStrings = (url) => { - const queryIndex = url.indexOf("?", 8); - return queryIndex === -1 ? "" : "?" + url.slice(queryIndex + 1); -}; -var getPathNoStrict = (request) => { - const result = getPath(request); - return result.length > 1 && result.at(-1) === "/" ? result.slice(0, -1) : result; -}; -var mergePath = (base, sub, ...rest) => { - if (rest.length) { - sub = mergePath(sub, ...rest); - } - return `${base?.[0] === "/" ? "" : "/"}${base}${sub === "/" ? "" : `${base?.at(-1) === "/" ? "" : "/"}${sub?.[0] === "/" ? sub.slice(1) : sub}`}`; -}; -var checkOptionalParameter = (path) => { - if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(":")) { - return null; - } - const segments = path.split("/"); - const results = []; - let basePath = ""; - segments.forEach((segment) => { - if (segment !== "" && !/\:/.test(segment)) { - basePath += "/" + segment; - } else if (/\:/.test(segment)) { - if (/\?/.test(segment)) { - if (results.length === 0 && basePath === "") { - results.push("/"); - } else { - results.push(basePath); - } - const optionalSegment = segment.replace("?", ""); - basePath += "/" + optionalSegment; - results.push(basePath); - } else { - basePath += "/" + segment; - } - } - }); - return results.filter((v, i, a) => a.indexOf(v) === i); -}; -var _decodeURI = (value) => { - if (!/[%+]/.test(value)) { - return value; - } - if (value.indexOf("+") !== -1) { - value = value.replace(/\+/g, " "); - } - return value.indexOf("%") !== -1 ? tryDecode(value, decodeURIComponent_) : value; -}; -var _getQueryParam = (url, key, multiple) => { - let encoded; - if (!multiple && key && !/[%+]/.test(key)) { - let keyIndex2 = url.indexOf("?", 8); - if (keyIndex2 === -1) { - return void 0; - } - if (!url.startsWith(key, keyIndex2 + 1)) { - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - while (keyIndex2 !== -1) { - const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1); - if (trailingKeyCode === 61) { - const valueIndex = keyIndex2 + key.length + 2; - const endIndex = url.indexOf("&", valueIndex); - return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex)); - } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) { - return ""; - } - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - encoded = /[%+]/.test(url); - if (!encoded) { - return void 0; - } - } - const results = {}; - encoded ??= /[%+]/.test(url); - let keyIndex = url.indexOf("?", 8); - while (keyIndex !== -1) { - const nextKeyIndex = url.indexOf("&", keyIndex + 1); - let valueIndex = url.indexOf("=", keyIndex); - if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) { - valueIndex = -1; - } - let name = url.slice( - keyIndex + 1, - valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex - ); - if (encoded) { - name = _decodeURI(name); - } - keyIndex = nextKeyIndex; - if (name === "") { - continue; - } - let value; - if (valueIndex === -1) { - value = ""; - } else { - value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex); - if (encoded) { - value = _decodeURI(value); - } - } - if (multiple) { - if (!(results[name] && Array.isArray(results[name]))) { - results[name] = []; - } - ; - results[name].push(value); - } else { - results[name] ??= value; - } - } - return key ? results[key] : results; -}; -var getQueryParam = _getQueryParam; -var getQueryParams = (url, key) => { - return _getQueryParam(url, key, true); -}; -var decodeURIComponent_ = decodeURIComponent; -export { - checkOptionalParameter, - decodeURIComponent_, - getPath, - getPathNoStrict, - getPattern, - getQueryParam, - getQueryParams, - getQueryStrings, - mergePath, - splitPath, - splitRoutingPath, - tryDecode -}; diff --git a/mcp-server/node_modules/hono/dist/validator/index.js b/mcp-server/node_modules/hono/dist/validator/index.js deleted file mode 100644 index a8f176b..0000000 --- a/mcp-server/node_modules/hono/dist/validator/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// src/validator/index.ts -import { validator } from "./validator.js"; -export { - validator -}; diff --git a/mcp-server/node_modules/hono/dist/validator/utils.js b/mcp-server/node_modules/hono/dist/validator/utils.js deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/hono/dist/validator/validator.js b/mcp-server/node_modules/hono/dist/validator/validator.js deleted file mode 100644 index 6b3689a..0000000 --- a/mcp-server/node_modules/hono/dist/validator/validator.js +++ /dev/null @@ -1,86 +0,0 @@ -// src/validator/validator.ts -import { getCookie } from "../helper/cookie/index.js"; -import { HTTPException } from "../http-exception.js"; -import { bufferToFormData } from "../utils/buffer.js"; -var jsonRegex = /^application\/([a-z-\.]+\+)?json(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/; -var multipartRegex = /^multipart\/form-data(;\s?boundary=[a-zA-Z0-9'"()+_,\-./:=?]+)?$/; -var urlencodedRegex = /^application\/x-www-form-urlencoded(;\s*[a-zA-Z0-9\-]+\=([^;]+))*$/; -var validator = (target, validationFunc) => { - return async (c, next) => { - let value = {}; - const contentType = c.req.header("Content-Type"); - switch (target) { - case "json": - if (!contentType || !jsonRegex.test(contentType)) { - break; - } - try { - value = await c.req.json(); - } catch { - const message = "Malformed JSON in request body"; - throw new HTTPException(400, { message }); - } - break; - case "form": { - if (!contentType || !(multipartRegex.test(contentType) || urlencodedRegex.test(contentType))) { - break; - } - let formData; - if (c.req.bodyCache.formData) { - formData = await c.req.bodyCache.formData; - } else { - try { - const arrayBuffer = await c.req.arrayBuffer(); - formData = await bufferToFormData(arrayBuffer, contentType); - c.req.bodyCache.formData = formData; - } catch (e) { - let message = "Malformed FormData request."; - message += e instanceof Error ? ` ${e.message}` : ` ${String(e)}`; - throw new HTTPException(400, { message }); - } - } - const form = {}; - formData.forEach((value2, key) => { - if (key.endsWith("[]")) { - ; - (form[key] ??= []).push(value2); - } else if (Array.isArray(form[key])) { - ; - form[key].push(value2); - } else if (key in form) { - form[key] = [form[key], value2]; - } else { - form[key] = value2; - } - }); - value = form; - break; - } - case "query": - value = Object.fromEntries( - Object.entries(c.req.queries()).map(([k, v]) => { - return v.length === 1 ? [k, v[0]] : [k, v]; - }) - ); - break; - case "param": - value = c.req.param(); - break; - case "header": - value = c.req.header(); - break; - case "cookie": - value = getCookie(c); - break; - } - const res = await validationFunc(value, c); - if (res instanceof Response) { - return res; - } - c.req.addValidatedData(target, res); - return await next(); - }; -}; -export { - validator -}; diff --git a/mcp-server/node_modules/hono/package.json b/mcp-server/node_modules/hono/package.json deleted file mode 100644 index e86280c..0000000 --- a/mcp-server/node_modules/hono/package.json +++ /dev/null @@ -1,691 +0,0 @@ -{ - "name": "hono", - "version": "4.11.3", - "description": "Web framework built on Web Standards", - "main": "dist/cjs/index.js", - "type": "module", - "module": "dist/index.js", - "types": "dist/types/index.d.ts", - "files": [ - "dist" - ], - "scripts": { - "test": "tsc --noEmit && vitest --run", - "test:watch": "vitest --watch", - "test:deno": "deno test --allow-read --allow-env --allow-write --allow-net -c runtime-tests/deno/deno.json runtime-tests/deno && deno test --no-lock -c runtime-tests/deno-jsx/deno.precompile.json runtime-tests/deno-jsx && deno test --no-lock -c runtime-tests/deno-jsx/deno.react-jsx.json runtime-tests/deno-jsx", - "test:bun": "bun test --jsx-import-source ../../src/jsx runtime-tests/bun/*", - "test:fastly": "vitest --run --project fastly", - "test:node": "vitest --run --project node", - "test:workerd": "vitest --run --project workerd", - "test:lambda": "vitest --run --project lambda", - "test:lambda-edge": "vitest --run --project lambda-edge", - "test:all": "bun run test && bun test:deno && bun test:bun", - "lint": "eslint src runtime-tests build perf-measures benchmarks", - "lint:fix": "eslint src runtime-tests build perf-measures benchmarks --fix", - "format": "prettier --check --cache \"src/**/*.{js,ts,tsx}\" \"runtime-tests/**/*.{js,ts,tsx}\" \"build/**/*.{js,ts,tsx}\" \"perf-measures/**/*.{js,ts,tsx}\" \"benchmarks/**/*.{js,ts,tsx}\"", - "format:fix": "prettier --write --cache --cache-strategy metadata \"src/**/*.{js,ts,tsx}\" \"runtime-tests/**/*.{js,ts,tsx}\" \"build/**/*.{js,ts,tsx}\" \"perf-measures/**/*.{js,ts,tsx}\" \"benchmarks/**/*.{js,ts,tsx}\"", - "editorconfig-checker": "editorconfig-checker", - "copy:package.cjs.json": "cp ./package.cjs.json ./dist/cjs/package.json && cp ./package.cjs.json ./dist/types/package.json", - "build": "bun run --shell bun remove-dist && bun ./build/build.ts && bun run copy:package.cjs.json", - "postbuild": "publint", - "watch": "bun run --shell bun remove-dist && bun ./build/build.ts --watch && bun run copy:package.cjs.json", - "coverage": "vitest --run --coverage", - "prerelease": "bun test:deno && bun run build", - "release": "np", - "remove-dist": "rm -rf dist" - }, - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "import": "./dist/index.js", - "require": "./dist/cjs/index.js" - }, - "./request": { - "types": "./dist/types/request.d.ts", - "import": "./dist/request.js", - "require": "./dist/cjs/request.js" - }, - "./types": { - "types": "./dist/types/types.d.ts", - "import": "./dist/types.js", - "require": "./dist/cjs/types.js" - }, - "./hono-base": { - "types": "./dist/types/hono-base.d.ts", - "import": "./dist/hono-base.js", - "require": "./dist/cjs/hono-base.js" - }, - "./tiny": { - "types": "./dist/types/preset/tiny.d.ts", - "import": "./dist/preset/tiny.js", - "require": "./dist/cjs/preset/tiny.js" - }, - "./quick": { - "types": "./dist/types/preset/quick.d.ts", - "import": "./dist/preset/quick.js", - "require": "./dist/cjs/preset/quick.js" - }, - "./http-exception": { - "types": "./dist/types/http-exception.d.ts", - "import": "./dist/http-exception.js", - "require": "./dist/cjs/http-exception.js" - }, - "./basic-auth": { - "types": "./dist/types/middleware/basic-auth/index.d.ts", - "import": "./dist/middleware/basic-auth/index.js", - "require": "./dist/cjs/middleware/basic-auth/index.js" - }, - "./bearer-auth": { - "types": "./dist/types/middleware/bearer-auth/index.d.ts", - "import": "./dist/middleware/bearer-auth/index.js", - "require": "./dist/cjs/middleware/bearer-auth/index.js" - }, - "./body-limit": { - "types": "./dist/types/middleware/body-limit/index.d.ts", - "import": "./dist/middleware/body-limit/index.js", - "require": "./dist/cjs/middleware/body-limit/index.js" - }, - "./ip-restriction": { - "types": "./dist/types/middleware/ip-restriction/index.d.ts", - "import": "./dist/middleware/ip-restriction/index.js", - "require": "./dist/cjs/middleware/ip-restriction/index.js" - }, - "./cache": { - "types": "./dist/types/middleware/cache/index.d.ts", - "import": "./dist/middleware/cache/index.js", - "require": "./dist/cjs/middleware/cache/index.js" - }, - "./route": { - "types": "./dist/types/helper/route/index.d.ts", - "import": "./dist/helper/route/index.js", - "require": "./dist/cjs/helper/route/index.js" - }, - "./cookie": { - "types": "./dist/types/helper/cookie/index.d.ts", - "import": "./dist/helper/cookie/index.js", - "require": "./dist/cjs/helper/cookie/index.js" - }, - "./accepts": { - "types": "./dist/types/helper/accepts/index.d.ts", - "import": "./dist/helper/accepts/index.js", - "require": "./dist/cjs/helper/accepts/index.js" - }, - "./compress": { - "types": "./dist/types/middleware/compress/index.d.ts", - "import": "./dist/middleware/compress/index.js", - "require": "./dist/cjs/middleware/compress/index.js" - }, - "./context-storage": { - "types": "./dist/types/middleware/context-storage/index.d.ts", - "import": "./dist/middleware/context-storage/index.js", - "require": "./dist/cjs/middleware/context-storage/index.js" - }, - "./cors": { - "types": "./dist/types/middleware/cors/index.d.ts", - "import": "./dist/middleware/cors/index.js", - "require": "./dist/cjs/middleware/cors/index.js" - }, - "./csrf": { - "types": "./dist/types/middleware/csrf/index.d.ts", - "import": "./dist/middleware/csrf/index.js", - "require": "./dist/cjs/middleware/csrf/index.js" - }, - "./etag": { - "types": "./dist/types/middleware/etag/index.d.ts", - "import": "./dist/middleware/etag/index.js", - "require": "./dist/cjs/middleware/etag/index.js" - }, - "./trailing-slash": { - "types": "./dist/types/middleware/trailing-slash/index.d.ts", - "import": "./dist/middleware/trailing-slash/index.js", - "require": "./dist/cjs/middleware/trailing-slash/index.js" - }, - "./html": { - "types": "./dist/types/helper/html/index.d.ts", - "import": "./dist/helper/html/index.js", - "require": "./dist/cjs/helper/html/index.js" - }, - "./css": { - "types": "./dist/types/helper/css/index.d.ts", - "import": "./dist/helper/css/index.js", - "require": "./dist/cjs/helper/css/index.js" - }, - "./jsx": { - "types": "./dist/types/jsx/index.d.ts", - "import": "./dist/jsx/index.js", - "require": "./dist/cjs/jsx/index.js" - }, - "./jsx/jsx-dev-runtime": { - "types": "./dist/types/jsx/jsx-dev-runtime.d.ts", - "import": "./dist/jsx/jsx-dev-runtime.js", - "require": "./dist/cjs/jsx/jsx-dev-runtime.js" - }, - "./jsx/jsx-runtime": { - "types": "./dist/types/jsx/jsx-runtime.d.ts", - "import": "./dist/jsx/jsx-runtime.js", - "require": "./dist/cjs/jsx/jsx-runtime.js" - }, - "./jsx/streaming": { - "types": "./dist/types/jsx/streaming.d.ts", - "import": "./dist/jsx/streaming.js", - "require": "./dist/cjs/jsx/streaming.js" - }, - "./jsx-renderer": { - "types": "./dist/types/middleware/jsx-renderer/index.d.ts", - "import": "./dist/middleware/jsx-renderer/index.js", - "require": "./dist/cjs/middleware/jsx-renderer/index.js" - }, - "./jsx/dom": { - "types": "./dist/types/jsx/dom/index.d.ts", - "import": "./dist/jsx/dom/index.js", - "require": "./dist/cjs/jsx/dom/index.js" - }, - "./jsx/dom/jsx-dev-runtime": { - "types": "./dist/types/jsx/dom/jsx-dev-runtime.d.ts", - "import": "./dist/jsx/dom/jsx-dev-runtime.js", - "require": "./dist/cjs/jsx/dom/jsx-dev-runtime.js" - }, - "./jsx/dom/jsx-runtime": { - "types": "./dist/types/jsx/dom/jsx-runtime.d.ts", - "import": "./dist/jsx/dom/jsx-runtime.js", - "require": "./dist/cjs/jsx/dom/jsx-runtime.js" - }, - "./jsx/dom/client": { - "types": "./dist/types/jsx/dom/client.d.ts", - "import": "./dist/jsx/dom/client.js", - "require": "./dist/cjs/jsx/dom/client.js" - }, - "./jsx/dom/css": { - "types": "./dist/types/jsx/dom/css.d.ts", - "import": "./dist/jsx/dom/css.js", - "require": "./dist/cjs/jsx/dom/css.js" - }, - "./jsx/dom/server": { - "types": "./dist/types/jsx/dom/server.d.ts", - "import": "./dist/jsx/dom/server.js", - "require": "./dist/cjs/jsx/dom/server.js" - }, - "./jwt": { - "types": "./dist/types/middleware/jwt/index.d.ts", - "import": "./dist/middleware/jwt/index.js", - "require": "./dist/cjs/middleware/jwt/index.js" - }, - "./jwk": { - "types": "./dist/types/middleware/jwk/index.d.ts", - "import": "./dist/middleware/jwk/index.js", - "require": "./dist/cjs/middleware/jwk/index.js" - }, - "./timeout": { - "types": "./dist/types/middleware/timeout/index.d.ts", - "import": "./dist/middleware/timeout/index.js", - "require": "./dist/cjs/middleware/timeout/index.js" - }, - "./timing": { - "types": "./dist/types/middleware/timing/index.d.ts", - "import": "./dist/middleware/timing/index.js", - "require": "./dist/cjs/middleware/timing/index.js" - }, - "./logger": { - "types": "./dist/types/middleware/logger/index.d.ts", - "import": "./dist/middleware/logger/index.js", - "require": "./dist/cjs/middleware/logger/index.js" - }, - "./method-override": { - "types": "./dist/types/middleware/method-override/index.d.ts", - "import": "./dist/middleware/method-override/index.js", - "require": "./dist/cjs/middleware/method-override/index.js" - }, - "./powered-by": { - "types": "./dist/types/middleware/powered-by/index.d.ts", - "import": "./dist/middleware/powered-by/index.js", - "require": "./dist/cjs/middleware/powered-by/index.js" - }, - "./pretty-json": { - "types": "./dist/types/middleware/pretty-json/index.d.ts", - "import": "./dist/middleware/pretty-json/index.js", - "require": "./dist/cjs/middleware/pretty-json/index.js" - }, - "./request-id": { - "types": "./dist/types/middleware/request-id/index.d.ts", - "import": "./dist/middleware/request-id/index.js", - "require": "./dist/cjs/middleware/request-id/index.js" - }, - "./language": { - "types": "./dist/types/middleware/language/index.d.ts", - "import": "./dist/middleware/language/index.js", - "require": "./dist/cjs/middleware/language/index.js" - }, - "./secure-headers": { - "types": "./dist/types/middleware/secure-headers/index.d.ts", - "import": "./dist/middleware/secure-headers/index.js", - "require": "./dist/cjs/middleware/secure-headers/index.js" - }, - "./combine": { - "types": "./dist/types/middleware/combine/index.d.ts", - "import": "./dist/middleware/combine/index.js", - "require": "./dist/cjs/middleware/combine/index.js" - }, - "./ssg": { - "types": "./dist/types/helper/ssg/index.d.ts", - "import": "./dist/helper/ssg/index.js", - "require": "./dist/cjs/helper/ssg/index.js" - }, - "./streaming": { - "types": "./dist/types/helper/streaming/index.d.ts", - "import": "./dist/helper/streaming/index.js", - "require": "./dist/cjs/helper/streaming/index.js" - }, - "./validator": { - "types": "./dist/types/validator/index.d.ts", - "import": "./dist/validator/index.js", - "require": "./dist/cjs/validator/index.js" - }, - "./router": { - "types": "./dist/types/router.d.ts", - "import": "./dist/router.js", - "require": "./dist/cjs/router.js" - }, - "./router/reg-exp-router": { - "types": "./dist/types/router/reg-exp-router/index.d.ts", - "import": "./dist/router/reg-exp-router/index.js", - "require": "./dist/cjs/router/reg-exp-router/index.js" - }, - "./router/smart-router": { - "types": "./dist/types/router/smart-router/index.d.ts", - "import": "./dist/router/smart-router/index.js", - "require": "./dist/cjs/router/smart-router/index.js" - }, - "./router/trie-router": { - "types": "./dist/types/router/trie-router/index.d.ts", - "import": "./dist/router/trie-router/index.js", - "require": "./dist/cjs/router/trie-router/index.js" - }, - "./router/pattern-router": { - "types": "./dist/types/router/pattern-router/index.d.ts", - "import": "./dist/router/pattern-router/index.js", - "require": "./dist/cjs/router/pattern-router/index.js" - }, - "./router/linear-router": { - "types": "./dist/types/router/linear-router/index.d.ts", - "import": "./dist/router/linear-router/index.js", - "require": "./dist/cjs/router/linear-router/index.js" - }, - "./utils/jwt": { - "types": "./dist/types/utils/jwt/index.d.ts", - "import": "./dist/utils/jwt/index.js", - "require": "./dist/cjs/utils/jwt/index.js" - }, - "./utils/*": { - "types": "./dist/types/utils/*.d.ts", - "import": "./dist/utils/*.js", - "require": "./dist/cjs/utils/*.js" - }, - "./client": { - "types": "./dist/types/client/index.d.ts", - "import": "./dist/client/index.js", - "require": "./dist/cjs/client/index.js" - }, - "./adapter": { - "types": "./dist/types/helper/adapter/index.d.ts", - "import": "./dist/helper/adapter/index.js", - "require": "./dist/cjs/helper/adapter/index.js" - }, - "./factory": { - "types": "./dist/types/helper/factory/index.d.ts", - "import": "./dist/helper/factory/index.js", - "require": "./dist/cjs/helper/factory/index.js" - }, - "./serve-static": { - "types": "./dist/types/middleware/serve-static/index.d.ts", - "import": "./dist/middleware/serve-static/index.js", - "require": "./dist/cjs/middleware/serve-static/index.js" - }, - "./cloudflare-workers": { - "types": "./dist/types/adapter/cloudflare-workers/index.d.ts", - "import": "./dist/adapter/cloudflare-workers/index.js", - "require": "./dist/cjs/adapter/cloudflare-workers/index.js" - }, - "./cloudflare-pages": { - "types": "./dist/types/adapter/cloudflare-pages/index.d.ts", - "import": "./dist/adapter/cloudflare-pages/index.js", - "require": "./dist/cjs/adapter/cloudflare-pages/index.js" - }, - "./deno": { - "types": "./dist/types/adapter/deno/index.d.ts", - "import": "./dist/adapter/deno/index.js", - "require": "./dist/cjs/adapter/deno/index.js" - }, - "./bun": { - "types": "./dist/types/adapter/bun/index.d.ts", - "import": "./dist/adapter/bun/index.js", - "require": "./dist/cjs/adapter/bun/index.js" - }, - "./aws-lambda": { - "types": "./dist/types/adapter/aws-lambda/index.d.ts", - "import": "./dist/adapter/aws-lambda/index.js", - "require": "./dist/cjs/adapter/aws-lambda/index.js" - }, - "./vercel": { - "types": "./dist/types/adapter/vercel/index.d.ts", - "import": "./dist/adapter/vercel/index.js", - "require": "./dist/cjs/adapter/vercel/index.js" - }, - "./netlify": { - "types": "./dist/types/adapter/netlify/index.d.ts", - "import": "./dist/adapter/netlify/index.js", - "require": "./dist/cjs/adapter/netlify/index.js" - }, - "./lambda-edge": { - "types": "./dist/types/adapter/lambda-edge/index.d.ts", - "import": "./dist/adapter/lambda-edge/index.js", - "require": "./dist/cjs/adapter/lambda-edge/index.js" - }, - "./service-worker": { - "types": "./dist/types/adapter/service-worker/index.d.ts", - "import": "./dist/adapter/service-worker/index.js", - "require": "./dist/cjs/adapter/service-worker/index.js" - }, - "./testing": { - "types": "./dist/types/helper/testing/index.d.ts", - "import": "./dist/helper/testing/index.js", - "require": "./dist/cjs/helper/testing/index.js" - }, - "./dev": { - "types": "./dist/types/helper/dev/index.d.ts", - "import": "./dist/helper/dev/index.js", - "require": "./dist/cjs/helper/dev/index.js" - }, - "./ws": { - "types": "./dist/types/helper/websocket/index.d.ts", - "import": "./dist/helper/websocket/index.js", - "require": "./dist/cjs/helper/websocket/index.js" - }, - "./conninfo": { - "types": "./dist/types/helper/conninfo/index.d.ts", - "import": "./dist/helper/conninfo/index.js", - "require": "./dist/cjs/helper/conninfo/index.js" - }, - "./proxy": { - "types": "./dist/types/helper/proxy/index.d.ts", - "import": "./dist/helper/proxy/index.js", - "require": "./dist/cjs/helper/proxy/index.js" - } - }, - "typesVersions": { - "*": { - "request": [ - "./dist/types/request" - ], - "types": [ - "./dist/types/types" - ], - "hono-base": [ - "./dist/types/hono-base" - ], - "tiny": [ - "./dist/types/preset/tiny" - ], - "quick": [ - "./dist/types/preset/quick" - ], - "http-exception": [ - "./dist/types/http-exception" - ], - "basic-auth": [ - "./dist/types/middleware/basic-auth" - ], - "bearer-auth": [ - "./dist/types/middleware/bearer-auth" - ], - "body-limit": [ - "./dist/types/middleware/body-limit" - ], - "ip-restriction": [ - "./dist/types/middleware/ip-restriction" - ], - "cache": [ - "./dist/types/middleware/cache" - ], - "route": [ - "./dist/types/helper/route" - ], - "cookie": [ - "./dist/types/helper/cookie" - ], - "accepts": [ - "./dist/types/helper/accepts" - ], - "compress": [ - "./dist/types/middleware/compress" - ], - "context-storage": [ - "./dist/types/middleware/context-storage" - ], - "cors": [ - "./dist/types/middleware/cors" - ], - "csrf": [ - "./dist/types/middleware/csrf" - ], - "etag": [ - "./dist/types/middleware/etag" - ], - "trailing-slash": [ - "./dist/types/middleware/trailing-slash" - ], - "html": [ - "./dist/types/helper/html" - ], - "css": [ - "./dist/types/helper/css" - ], - "jsx": [ - "./dist/types/jsx" - ], - "jsx/jsx-runtime": [ - "./dist/types/jsx/jsx-runtime.d.ts" - ], - "jsx/jsx-dev-runtime": [ - "./dist/types/jsx/jsx-dev-runtime.d.ts" - ], - "jsx/streaming": [ - "./dist/types/jsx/streaming.d.ts" - ], - "jsx-renderer": [ - "./dist/types/middleware/jsx-renderer" - ], - "jsx/dom": [ - "./dist/types/jsx/dom" - ], - "jsx/dom/client": [ - "./dist/types/jsx/dom/client.d.ts" - ], - "jsx/dom/css": [ - "./dist/types/jsx/dom/css.d.ts" - ], - "jsx/dom/server": [ - "./dist/types/jsx/dom/server.d.ts" - ], - "jwt": [ - "./dist/types/middleware/jwt" - ], - "timeout": [ - "./dist/types/middleware/timeout" - ], - "timing": [ - "./dist/types/middleware/timing" - ], - "logger": [ - "./dist/types/middleware/logger" - ], - "method-override": [ - "./dist/types/middleware/method-override" - ], - "powered-by": [ - "./dist/types/middleware/powered-by" - ], - "pretty-json": [ - "./dist/types/middleware/pretty-json" - ], - "request-id": [ - "./dist/types/middleware/request-id" - ], - "language": [ - "./dist/types/middleware/language" - ], - "streaming": [ - "./dist/types/helper/streaming" - ], - "ssg": [ - "./dist/types/helper/ssg" - ], - "secure-headers": [ - "./dist/types/middleware/secure-headers" - ], - "combine": [ - "./dist/types/middleware/combine" - ], - "validator": [ - "./dist/types/validator/index.d.ts" - ], - "router": [ - "./dist/types/router.d.ts" - ], - "router/reg-exp-router": [ - "./dist/types/router/reg-exp-router/router.d.ts" - ], - "router/smart-router": [ - "./dist/types/router/smart-router/router.d.ts" - ], - "router/trie-router": [ - "./dist/types/router/trie-router/router.d.ts" - ], - "router/pattern-router": [ - "./dist/types/router/pattern-router/router.d.ts" - ], - "router/linear-router": [ - "./dist/types/router/linear-router/router.d.ts" - ], - "utils/jwt": [ - "./dist/types/utils/jwt/index.d.ts" - ], - "utils/*": [ - "./dist/types/utils/*" - ], - "client": [ - "./dist/types/client/index.d.ts" - ], - "adapter": [ - "./dist/types/helper/adapter/index.d.ts" - ], - "factory": [ - "./dist/types/helper/factory/index.d.ts" - ], - "serve-static": [ - "./dist/types/middleware/serve-static" - ], - "cloudflare-workers": [ - "./dist/types/adapter/cloudflare-workers" - ], - "cloudflare-pages": [ - "./dist/types/adapter/cloudflare-pages" - ], - "deno": [ - "./dist/types/adapter/deno" - ], - "bun": [ - "./dist/types/adapter/bun" - ], - "nextjs": [ - "./dist/types/adapter/nextjs" - ], - "aws-lambda": [ - "./dist/types/adapter/aws-lambda" - ], - "vercel": [ - "./dist/types/adapter/vercel" - ], - "lambda-edge": [ - "./dist/types/adapter/lambda-edge" - ], - "service-worker": [ - "./dist/types/adapter/service-worker" - ], - "testing": [ - "./dist/types/helper/testing" - ], - "dev": [ - "./dist/types/helper/dev" - ], - "ws": [ - "./dist/types/helper/websocket" - ], - "conninfo": [ - "./dist/types/helper/conninfo" - ], - "proxy": [ - "./dist/types/helper/proxy" - ] - } - }, - "author": "Yusuke Wada (https://github.com/yusukebe)", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/honojs/hono.git" - }, - "publishConfig": { - "registry": "https://registry.npmjs.org" - }, - "homepage": "https://hono.dev", - "keywords": [ - "hono", - "web", - "app", - "http", - "application", - "framework", - "router", - "cloudflare", - "workers", - "fastly", - "compute", - "deno", - "bun", - "lambda", - "nodejs" - ], - "devDependencies": { - "@hono/eslint-config": "^2.0.3", - "@hono/node-server": "^1.13.5", - "@types/glob": "^9.0.0", - "@types/jsdom": "^21.1.7", - "@types/node": "^24.3.0", - "@typescript/native-preview": "7.0.0-dev.20251220.1", - "@vitest/coverage-v8": "^3.2.4", - "arg": "^5.0.2", - "bun-types": "^1.2.20", - "editorconfig-checker": "6.1.1", - "esbuild": "^0.27.1", - "eslint": "9.39.1", - "glob": "^11.0.0", - "jsdom": "22.1.0", - "msw": "^2.6.0", - "np": "10.2.0", - "oxc-parser": "^0.96.0", - "pkg-pr-new": "^0.0.53", - "prettier": "3.7.4", - "publint": "0.3.15", - "typescript": "^5.9.2", - "undici": "^6.21.3", - "vite-plugin-fastly-js-compute": "^0.4.2", - "vitest": "^3.2.4", - "wrangler": "4.12.0", - "ws": "^8.18.0", - "zod": "^3.23.8" - }, - "packageManager": "bun@1.2.20", - "engines": { - "node": ">=16.9.0" - } -} diff --git a/mcp-server/node_modules/http-errors/HISTORY.md b/mcp-server/node_modules/http-errors/HISTORY.md deleted file mode 100644 index 3d81d26..0000000 --- a/mcp-server/node_modules/http-errors/HISTORY.md +++ /dev/null @@ -1,186 +0,0 @@ -2.0.1 / 2025-11-20 -================== - - * deps: use tilde notation for dependencies - * deps: update statuses to 2.0.2 - -2.0.0 / 2021-12-17 -================== - - * Drop support for Node.js 0.6 - * Remove `I'mateapot` export; use `ImATeapot` instead - * Remove support for status being non-first argument - * Rename `UnorderedCollection` constructor to `TooEarly` - * deps: depd@2.0.0 - - Replace internal `eval` usage with `Function` constructor - - Use instance methods on `process` to check for listeners - * deps: statuses@2.0.1 - - Fix messaging casing of `418 I'm a Teapot` - - Remove code 306 - - Rename `425 Unordered Collection` to standard `425 Too Early` - -2021-11-14 / 1.8.1 -================== - - * deps: toidentifier@1.0.1 - -2020-06-29 / 1.8.0 -================== - - * Add `isHttpError` export to determine if value is an HTTP error - * deps: setprototypeof@1.2.0 - -2019-06-24 / 1.7.3 -================== - - * deps: inherits@2.0.4 - -2019-02-18 / 1.7.2 -================== - - * deps: setprototypeof@1.1.1 - -2018-09-08 / 1.7.1 -================== - - * Fix error creating objects in some environments - -2018-07-30 / 1.7.0 -================== - - * Set constructor name when possible - * Use `toidentifier` module to make class names - * deps: statuses@'>= 1.5.0 < 2' - -2018-03-29 / 1.6.3 -================== - - * deps: depd@~1.1.2 - - perf: remove argument reassignment - * deps: setprototypeof@1.1.0 - * deps: statuses@'>= 1.4.0 < 2' - -2017-08-04 / 1.6.2 -================== - - * deps: depd@1.1.1 - - Remove unnecessary `Buffer` loading - -2017-02-20 / 1.6.1 -================== - - * deps: setprototypeof@1.0.3 - - Fix shim for old browsers - -2017-02-14 / 1.6.0 -================== - - * Accept custom 4xx and 5xx status codes in factory - * Add deprecation message to `"I'mateapot"` export - * Deprecate passing status code as anything except first argument in factory - * Deprecate using non-error status codes - * Make `message` property enumerable for `HttpError`s - -2016-11-16 / 1.5.1 -================== - - * deps: inherits@2.0.3 - - Fix issue loading in browser - * deps: setprototypeof@1.0.2 - * deps: statuses@'>= 1.3.1 < 2' - -2016-05-18 / 1.5.0 -================== - - * Support new code `421 Misdirected Request` - * Use `setprototypeof` module to replace `__proto__` setting - * deps: statuses@'>= 1.3.0 < 2' - - Add `421 Misdirected Request` - - perf: enable strict mode - * perf: enable strict mode - -2016-01-28 / 1.4.0 -================== - - * Add `HttpError` export, for `err instanceof createError.HttpError` - * deps: inherits@2.0.1 - * deps: statuses@'>= 1.2.1 < 2' - - Fix message for status 451 - - Remove incorrect nginx status code - -2015-02-02 / 1.3.1 -================== - - * Fix regression where status can be overwritten in `createError` `props` - -2015-02-01 / 1.3.0 -================== - - * Construct errors using defined constructors from `createError` - * Fix error names that are not identifiers - - `createError["I'mateapot"]` is now `createError.ImATeapot` - * Set a meaningful `name` property on constructed errors - -2014-12-09 / 1.2.8 -================== - - * Fix stack trace from exported function - * Remove `arguments.callee` usage - -2014-10-14 / 1.2.7 -================== - - * Remove duplicate line - -2014-10-02 / 1.2.6 -================== - - * Fix `expose` to be `true` for `ClientError` constructor - -2014-09-28 / 1.2.5 -================== - - * deps: statuses@1 - -2014-09-21 / 1.2.4 -================== - - * Fix dependency version to work with old `npm`s - -2014-09-21 / 1.2.3 -================== - - * deps: statuses@~1.1.0 - -2014-09-21 / 1.2.2 -================== - - * Fix publish error - -2014-09-21 / 1.2.1 -================== - - * Support Node.js 0.6 - * Use `inherits` instead of `util` - -2014-09-09 / 1.2.0 -================== - - * Fix the way inheriting functions - * Support `expose` being provided in properties argument - -2014-09-08 / 1.1.0 -================== - - * Default status to 500 - * Support provided `error` to extend - -2014-09-08 / 1.0.1 -================== - - * Fix accepting string message - -2014-09-08 / 1.0.0 -================== - - * Initial release diff --git a/mcp-server/node_modules/http-errors/LICENSE b/mcp-server/node_modules/http-errors/LICENSE deleted file mode 100644 index 82af4df..0000000 --- a/mcp-server/node_modules/http-errors/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) 2014 Jonathan Ong me@jongleberry.com -Copyright (c) 2016 Douglas Christopher Wilson doug@somethingdoug.com - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/mcp-server/node_modules/http-errors/README.md b/mcp-server/node_modules/http-errors/README.md deleted file mode 100644 index a8b7330..0000000 --- a/mcp-server/node_modules/http-errors/README.md +++ /dev/null @@ -1,169 +0,0 @@ -# http-errors - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][node-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Create HTTP errors for Express, Koa, Connect, etc. with ease. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```console -$ npm install http-errors -``` - -## Example - -```js -var createError = require('http-errors') -var express = require('express') -var app = express() - -app.use(function (req, res, next) { - if (!req.user) return next(createError(401, 'Please login to view this page.')) - next() -}) -``` - -## API - -This is the current API, currently extracted from Koa and subject to change. - -### Error Properties - -- `expose` - can be used to signal if `message` should be sent to the client, - defaulting to `false` when `status` >= 500 -- `headers` - can be an object of header names to values to be sent to the - client, defaulting to `undefined`. When defined, the key names should all - be lower-cased -- `message` - the traditional error message, which should be kept short and all - single line -- `status` - the status code of the error, mirroring `statusCode` for general - compatibility -- `statusCode` - the status code of the error, defaulting to `500` - -### createError([status], [message], [properties]) - -Create a new error object with the given message `msg`. -The error object inherits from `createError.HttpError`. - -```js -var err = createError(404, 'This video does not exist!') -``` - -- `status: 500` - the status code as a number -- `message` - the message of the error, defaulting to node's text for that status code. -- `properties` - custom properties to attach to the object - -### createError([status], [error], [properties]) - -Extend the given `error` object with `createError.HttpError` -properties. This will not alter the inheritance of the given -`error` object, and the modified `error` object is the -return value. - - - -```js -fs.readFile('foo.txt', function (err, buf) { - if (err) { - if (err.code === 'ENOENT') { - var httpError = createError(404, err, { expose: false }) - } else { - var httpError = createError(500, err) - } - } -}) -``` - -- `status` - the status code as a number -- `error` - the error object to extend -- `properties` - custom properties to attach to the object - -### createError.isHttpError(val) - -Determine if the provided `val` is an `HttpError`. This will return `true` -if the error inherits from the `HttpError` constructor of this module or -matches the "duck type" for an error this module creates. All outputs from -the `createError` factory will return `true` for this function, including -if an non-`HttpError` was passed into the factory. - -### new createError\[code || name\](\[msg]\)) - -Create a new error object with the given message `msg`. -The error object inherits from `createError.HttpError`. - -```js -var err = new createError.NotFound() -``` - -- `code` - the status code as a number -- `name` - the name of the error as a "bumpy case", i.e. `NotFound` or `InternalServerError`. - -#### List of all constructors - -|Status Code|Constructor Name | -|-----------|-----------------------------| -|400 |BadRequest | -|401 |Unauthorized | -|402 |PaymentRequired | -|403 |Forbidden | -|404 |NotFound | -|405 |MethodNotAllowed | -|406 |NotAcceptable | -|407 |ProxyAuthenticationRequired | -|408 |RequestTimeout | -|409 |Conflict | -|410 |Gone | -|411 |LengthRequired | -|412 |PreconditionFailed | -|413 |PayloadTooLarge | -|414 |URITooLong | -|415 |UnsupportedMediaType | -|416 |RangeNotSatisfiable | -|417 |ExpectationFailed | -|418 |ImATeapot | -|421 |MisdirectedRequest | -|422 |UnprocessableEntity | -|423 |Locked | -|424 |FailedDependency | -|425 |TooEarly | -|426 |UpgradeRequired | -|428 |PreconditionRequired | -|429 |TooManyRequests | -|431 |RequestHeaderFieldsTooLarge | -|451 |UnavailableForLegalReasons | -|500 |InternalServerError | -|501 |NotImplemented | -|502 |BadGateway | -|503 |ServiceUnavailable | -|504 |GatewayTimeout | -|505 |HTTPVersionNotSupported | -|506 |VariantAlsoNegotiates | -|507 |InsufficientStorage | -|508 |LoopDetected | -|509 |BandwidthLimitExceeded | -|510 |NotExtended | -|511 |NetworkAuthenticationRequired| - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/jshttp/http-errors/master?label=ci -[ci-url]: https://github.com/jshttp/http-errors/actions?query=workflow%3Aci -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/http-errors/master -[coveralls-url]: https://coveralls.io/r/jshttp/http-errors?branch=master -[node-image]: https://badgen.net/npm/node/http-errors -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/http-errors -[npm-url]: https://npmjs.org/package/http-errors -[npm-version-image]: https://badgen.net/npm/v/http-errors -[travis-image]: https://badgen.net/travis/jshttp/http-errors/master -[travis-url]: https://travis-ci.org/jshttp/http-errors diff --git a/mcp-server/node_modules/http-errors/index.js b/mcp-server/node_modules/http-errors/index.js deleted file mode 100644 index 82271f6..0000000 --- a/mcp-server/node_modules/http-errors/index.js +++ /dev/null @@ -1,290 +0,0 @@ -/*! - * http-errors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var deprecate = require('depd')('http-errors') -var setPrototypeOf = require('setprototypeof') -var statuses = require('statuses') -var inherits = require('inherits') -var toIdentifier = require('toidentifier') - -/** - * Module exports. - * @public - */ - -module.exports = createError -module.exports.HttpError = createHttpErrorConstructor() -module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError) - -// Populate exports for all constructors -populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError) - -/** - * Get the code class of a status code. - * @private - */ - -function codeClass (status) { - return Number(String(status).charAt(0) + '00') -} - -/** - * Create a new HTTP Error. - * - * @returns {Error} - * @public - */ - -function createError () { - // so much arity going on ~_~ - var err - var msg - var status = 500 - var props = {} - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i] - var type = typeof arg - if (type === 'object' && arg instanceof Error) { - err = arg - status = err.status || err.statusCode || status - } else if (type === 'number' && i === 0) { - status = arg - } else if (type === 'string') { - msg = arg - } else if (type === 'object') { - props = arg - } else { - throw new TypeError('argument #' + (i + 1) + ' unsupported type ' + type) - } - } - - if (typeof status === 'number' && (status < 400 || status >= 600)) { - deprecate('non-error status code; use only 4xx or 5xx status codes') - } - - if (typeof status !== 'number' || - (!statuses.message[status] && (status < 400 || status >= 600))) { - status = 500 - } - - // constructor - var HttpError = createError[status] || createError[codeClass(status)] - - if (!err) { - // create error - err = HttpError - ? new HttpError(msg) - : new Error(msg || statuses.message[status]) - Error.captureStackTrace(err, createError) - } - - if (!HttpError || !(err instanceof HttpError) || err.status !== status) { - // add properties to generic error - err.expose = status < 500 - err.status = err.statusCode = status - } - - for (var key in props) { - if (key !== 'status' && key !== 'statusCode') { - err[key] = props[key] - } - } - - return err -} - -/** - * Create HTTP error abstract base class. - * @private - */ - -function createHttpErrorConstructor () { - function HttpError () { - throw new TypeError('cannot construct abstract class') - } - - inherits(HttpError, Error) - - return HttpError -} - -/** - * Create a constructor for a client error. - * @private - */ - -function createClientErrorConstructor (HttpError, name, code) { - var className = toClassName(name) - - function ClientError (message) { - // create the error object - var msg = message != null ? message : statuses.message[code] - var err = new Error(msg) - - // capture a stack trace to the construction point - Error.captureStackTrace(err, ClientError) - - // adjust the [[Prototype]] - setPrototypeOf(err, ClientError.prototype) - - // redefine the error message - Object.defineProperty(err, 'message', { - enumerable: true, - configurable: true, - value: msg, - writable: true - }) - - // redefine the error name - Object.defineProperty(err, 'name', { - enumerable: false, - configurable: true, - value: className, - writable: true - }) - - return err - } - - inherits(ClientError, HttpError) - nameFunc(ClientError, className) - - ClientError.prototype.status = code - ClientError.prototype.statusCode = code - ClientError.prototype.expose = true - - return ClientError -} - -/** - * Create function to test is a value is a HttpError. - * @private - */ - -function createIsHttpErrorFunction (HttpError) { - return function isHttpError (val) { - if (!val || typeof val !== 'object') { - return false - } - - if (val instanceof HttpError) { - return true - } - - return val instanceof Error && - typeof val.expose === 'boolean' && - typeof val.statusCode === 'number' && val.status === val.statusCode - } -} - -/** - * Create a constructor for a server error. - * @private - */ - -function createServerErrorConstructor (HttpError, name, code) { - var className = toClassName(name) - - function ServerError (message) { - // create the error object - var msg = message != null ? message : statuses.message[code] - var err = new Error(msg) - - // capture a stack trace to the construction point - Error.captureStackTrace(err, ServerError) - - // adjust the [[Prototype]] - setPrototypeOf(err, ServerError.prototype) - - // redefine the error message - Object.defineProperty(err, 'message', { - enumerable: true, - configurable: true, - value: msg, - writable: true - }) - - // redefine the error name - Object.defineProperty(err, 'name', { - enumerable: false, - configurable: true, - value: className, - writable: true - }) - - return err - } - - inherits(ServerError, HttpError) - nameFunc(ServerError, className) - - ServerError.prototype.status = code - ServerError.prototype.statusCode = code - ServerError.prototype.expose = false - - return ServerError -} - -/** - * Set the name of a function, if possible. - * @private - */ - -function nameFunc (func, name) { - var desc = Object.getOwnPropertyDescriptor(func, 'name') - - if (desc && desc.configurable) { - desc.value = name - Object.defineProperty(func, 'name', desc) - } -} - -/** - * Populate the exports object with constructors for every error class. - * @private - */ - -function populateConstructorExports (exports, codes, HttpError) { - codes.forEach(function forEachCode (code) { - var CodeError - var name = toIdentifier(statuses.message[code]) - - switch (codeClass(code)) { - case 400: - CodeError = createClientErrorConstructor(HttpError, name, code) - break - case 500: - CodeError = createServerErrorConstructor(HttpError, name, code) - break - } - - if (CodeError) { - // export the constructor - exports[code] = CodeError - exports[name] = CodeError - } - }) -} - -/** - * Get a class name from a name identifier. - * - * @param {string} name - * @returns {string} - * @private - */ - -function toClassName (name) { - return name.slice(-5) === 'Error' ? name : name + 'Error' -} diff --git a/mcp-server/node_modules/http-errors/package.json b/mcp-server/node_modules/http-errors/package.json deleted file mode 100644 index 4b46d62..0000000 --- a/mcp-server/node_modules/http-errors/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "http-errors", - "description": "Create HTTP error objects", - "version": "2.0.1", - "author": "Jonathan Ong (http://jongleberry.com)", - "contributors": [ - "Alan Plum ", - "Douglas Christopher Wilson " - ], - "license": "MIT", - "repository": "jshttp/http-errors", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "devDependencies": { - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.32.0", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.1.3", - "nyc": "15.1.0" - }, - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "lint": "eslint . && node ./scripts/lint-readme-list.js", - "test": "mocha --reporter spec", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "version": "node scripts/version-history.js && git add HISTORY.md" - }, - "keywords": [ - "http", - "error" - ], - "files": [ - "index.js", - "HISTORY.md", - "LICENSE", - "README.md" - ] -} diff --git a/mcp-server/node_modules/iconv-lite/Changelog.md b/mcp-server/node_modules/iconv-lite/Changelog.md deleted file mode 100644 index c59ab1c..0000000 --- a/mcp-server/node_modules/iconv-lite/Changelog.md +++ /dev/null @@ -1,241 +0,0 @@ -## 0.7.1 - -### 🚀 Improvements - -* types: improve type definitions and add missing APIs - by [@plbstl](https://github.com/plbstl) and [@bjohansebas](https://github.com/bjohansebas) in [#330](https://github.com/pillarjs/iconv-lite/pull/330) - -## 0.7.0 - -### 🐞 Bug fixes - -* Handle split surrogate pairs when encoding utf8 - by [@yosion-p](https://github.com/yosion-p) and [@ashtuchkin](https://github.com/ashtuchkin) in [#282](https://github.com/ashtuchkin/iconv-lite/pull/282): - - Handle a case where streaming utf8 encoder (converting js strings -> buffers) encounters - surrogate pairs split between chunks (last character of one chunk is high surrogate and first - character of the next chunk is a low surrogate). - -* Avoid false positives in encodingExists by using objects without a prototype - by [@bjohansebas](https://github.com/bjohansebas) in [#328](https://github.com/ashtuchkin/iconv-lite/pull/328) - - The encodingExists method could return incorrect results if the lookup matched properties inherited - from the prototype of the object that stores the encodings, such as constructor and others. This change - replaces that object with one that has no prototype, ensuring that only explicitly defined valid encodings - in the library are considered. In addition, the fix is applied to the internal cache system to avoid the same - kind of false positives - -### 🚀 Improvements - -* Make explicit that decode() method supports Uint8Array input - by [@jardicc](https://github.com/jardicc) in [#271](https://github.com/ashtuchkin/iconv-lite/pull/271) -* Remove compatibility check for StringDecoder.end method - by [@bjohansebas](https://github.com/bjohansebas) in [#331](https://github.com/ashtuchkin/iconv-lite/pull/331) - -## 0.6.3 / 2021-05-23 - * Fix HKSCS encoding to prefer Big5 codes if both Big5 and HKSCS codes are possible (#264) - - -## 0.6.2 / 2020-07-08 - * Support Uint8Array-s decoding without conversion to Buffers, plus fix an edge case. - - -## 0.6.1 / 2020-06-28 - * Support Uint8Array-s directly when decoding (#246, by @gyzerok) - * Unify package.json version ranges to be strictly semver-compatible (#241) - * Fix minor issue in UTF-32 decoder's endianness detection code. - - -## 0.6.0 / 2020-06-08 - * Updated 'gb18030' encoding to :2005 edition (see https://github.com/whatwg/encoding/issues/22). - * Removed `iconv.extendNodeEncodings()` mechanism. It was deprecated 5 years ago and didn't work - in recent Node versions. - * Reworked Streaming API behavior in browser environments to fix #204. Streaming API will be - excluded by default in browser packs, saving ~100Kb bundle size, unless enabled explicitly using - `iconv.enableStreamingAPI(require('stream'))`. - * Updates to development environment & tests: - * Added ./test/webpack private package to test complex new use cases that need custom environment. - It's tested as a separate job in Travis CI. - * Updated generation code for the new EUC-KR index file format from Encoding Standard. - * Removed Buffer() constructor in tests (#197 by @gabrielschulhof). - - -## 0.5.2 / 2020-06-08 - * Added `iconv.getEncoder()` and `iconv.getDecoder()` methods to typescript definitions (#229). - * Fixed semver version to 6.1.2 to support Node 8.x (by @tanandara). - * Capped iconv version to 2.x as 3.x has dropped support for older Node versions. - * Switched from instanbul to c8 for code coverage. - - -## 0.5.1 / 2020-01-18 - - * Added cp720 encoding (#221, by @kr-deps) - * (minor) Changed Changelog.md formatting to use h2. - - -## 0.5.0 / 2019-06-26 - - * Added UTF-32 encoding, both little-endian and big-endian variants (UTF-32LE, UTF32-BE). If endianness - is not provided for decoding, it's deduced automatically from the stream using a heuristic similar to - what we use in UTF-16. (great work in #216 by @kshetline) - * Several minor updates to README (#217 by @oldj, plus some more) - * Added Node versions 10 and 12 to Travis test harness. - - -## 0.4.24 / 2018-08-22 - - * Added MIK encoding (#196, by @Ivan-Kalatchev) - - -## 0.4.23 / 2018-05-07 - - * Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann) - * Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn) - - -## 0.4.22 / 2018-05-05 - - * Use older semver style for dependencies to be compatible with Node version 0.10 (#182, by @dougwilson) - * Fix tests to accomodate fixes in Node v10 (#182, by @dougwilson) - - -## 0.4.21 / 2018-04-06 - - * Fix encoding canonicalization (#156) - * Fix the paths in the "browser" field in package.json (#174 by @LMLB) - * Removed "contributors" section in package.json - see Git history instead. - - -## 0.4.20 / 2018-04-06 - - * Updated `new Buffer()` usages with recommended replacements as it's being deprecated in Node v10 (#176, #178 by @ChALkeR) - - -## 0.4.19 / 2017-09-09 - - * Fixed iso8859-1 codec regression in handling untranslatable characters (#162, caused by #147) - * Re-generated windows1255 codec, because it was updated in iconv project - * Fixed grammar in error message when iconv-lite is loaded with encoding other than utf8 - - -## 0.4.18 / 2017-06-13 - - * Fixed CESU-8 regression in Node v8. - - -## 0.4.17 / 2017-04-22 - - * Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn) - - -## 0.4.16 / 2017-04-22 - - * Added support for React Native (#150) - * Changed iso8859-1 encoding to usine internal 'binary' encoding, as it's the same thing (#147 by @mscdex) - * Fixed typo in Readme (#138 by @jiangzhuo) - * Fixed build for Node v6.10+ by making correct version comparison - * Added a warning if iconv-lite is loaded not as utf-8 (see #142) - - -## 0.4.15 / 2016-11-21 - - * Fixed typescript type definition (#137) - - -## 0.4.14 / 2016-11-20 - - * Preparation for v1.0 - * Added Node v6 and latest Node versions to Travis CI test rig - * Deprecated Node v0.8 support - * Typescript typings (@larssn) - * Fix encoding of Euro character in GB 18030 (inspired by @lygstate) - * Add ms prefix to dbcs windows encodings (@rokoroku) - - -## 0.4.13 / 2015-10-01 - - * Fix silly mistake in deprecation notice. - - -## 0.4.12 / 2015-09-26 - - * Node v4 support: - * Added CESU-8 decoding (#106) - * Added deprecation notice for `extendNodeEncodings` - * Added Travis tests for Node v4 and io.js latest (#105 by @Mithgol) - - -## 0.4.11 / 2015-07-03 - - * Added CESU-8 encoding. - - -## 0.4.10 / 2015-05-26 - - * Changed UTF-16 endianness heuristic to take into account any ASCII chars, not - just spaces. This should minimize the importance of "default" endianness. - - -## 0.4.9 / 2015-05-24 - - * Streamlined BOM handling: strip BOM by default, add BOM when encoding if - addBOM: true. Added docs to Readme. - * UTF16 now uses UTF16-LE by default. - * Fixed minor issue with big5 encoding. - * Added io.js testing on Travis; updated node-iconv version to test against. - Now we just skip testing SBCS encodings that node-iconv doesn't support. - * (internal refactoring) Updated codec interface to use classes. - * Use strict mode in all files. - - -## 0.4.8 / 2015-04-14 - - * added alias UNICODE-1-1-UTF-7 for UTF-7 encoding (#94) - - -## 0.4.7 / 2015-02-05 - - * stop official support of Node.js v0.8. Should still work, but no guarantees. - reason: Packages needed for testing are hard to get on Travis CI. - * work in environment where Object.prototype is monkey patched with enumerable - props (#89). - - -## 0.4.6 / 2015-01-12 - - * fix rare aliases of single-byte encodings (thanks @mscdex) - * double the timeout for dbcs tests to make them less flaky on travis - - -## 0.4.5 / 2014-11-20 - - * fix windows-31j and x-sjis encoding support (@nleush) - * minor fix: undefined variable reference when internal error happens - - -## 0.4.4 / 2014-07-16 - - * added encodings UTF-7 (RFC2152) and UTF-7-IMAP (RFC3501 Section 5.1.3) - * fixed streaming base64 encoding - - -## 0.4.3 / 2014-06-14 - - * added encodings UTF-16BE and UTF-16 with BOM - - -## 0.4.2 / 2014-06-12 - - * don't throw exception if `extendNodeEncodings()` is called more than once - - -## 0.4.1 / 2014-06-11 - - * codepage 808 added - - -## 0.4.0 / 2014-06-10 - - * code is rewritten from scratch - * all widespread encodings are supported - * streaming interface added - * browserify compatibility added - * (optional) extend core primitive encodings to make usage even simpler - * moved from vows to mocha as the testing framework - - diff --git a/mcp-server/node_modules/iconv-lite/LICENSE b/mcp-server/node_modules/iconv-lite/LICENSE deleted file mode 100644 index d518d83..0000000 --- a/mcp-server/node_modules/iconv-lite/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2011 Alexander Shtuchkin - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/mcp-server/node_modules/iconv-lite/README.md b/mcp-server/node_modules/iconv-lite/README.md deleted file mode 100644 index 78a7a5f..0000000 --- a/mcp-server/node_modules/iconv-lite/README.md +++ /dev/null @@ -1,138 +0,0 @@ -## iconv-lite: Pure JS character encoding conversion - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-downloads-url] -[![License][license-image]][license-url] -[![NPM Install Size][npm-install-size-image]][npm-install-size-url] - -* No need for native code compilation. Quick to install, works on Windows, Web, and in sandboxed environments. -* Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser), - [Grunt](http://gruntjs.com/), [Nodemailer](http://www.nodemailer.com/), [Yeoman](http://yeoman.io/) and others. -* Faster than [node-iconv](https://github.com/bnoordhuis/node-iconv) (see below for performance comparison). -* Intuitive encode/decode API, including Streaming support. -* In-browser usage via [browserify](https://github.com/substack/node-browserify) or [webpack](https://webpack.js.org/) (~180kb gzip compressed with Buffer shim included). -* Typescript [type definition file](https://github.com/ashtuchkin/iconv-lite/blob/master/lib/index.d.ts) included. -* React Native is supported (need to install `stream` module to enable Streaming API). - -## Usage - -### Basic API - -```javascript -var iconv = require('iconv-lite'); - -// Convert from an encoded buffer to a js string. -str = iconv.decode(Buffer.from([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251'); - -// Convert from a js string to an encoded buffer. -buf = iconv.encode("Sample input string", 'win1251'); - -// Check if encoding is supported -iconv.encodingExists("us-ascii") -``` - -### Streaming API - -```javascript -// Decode stream (from binary data stream to js strings) -http.createServer(function(req, res) { - var converterStream = iconv.decodeStream('win1251'); - req.pipe(converterStream); - - converterStream.on('data', function(str) { - console.log(str); // Do something with decoded strings, chunk-by-chunk. - }); -}); - -// Convert encoding streaming example -fs.createReadStream('file-in-win1251.txt') - .pipe(iconv.decodeStream('win1251')) - .pipe(iconv.encodeStream('ucs2')) - .pipe(fs.createWriteStream('file-in-ucs2.txt')); - -// Sugar: all encode/decode streams have .collect(cb) method to accumulate data. -http.createServer(function(req, res) { - req.pipe(iconv.decodeStream('win1251')).collect(function(err, body) { - assert(typeof body == 'string'); - console.log(body); // full request body string - }); -}); -``` - -## Supported encodings - - * All node.js native encodings: utf8, ucs2 / utf16-le, ascii, binary, base64, hex. - * Additional unicode encodings: utf16, utf16-be, utf-7, utf-7-imap, utf32, utf32-le, and utf32-be. - * All widespread singlebyte encodings: Windows 125x family, ISO-8859 family, - IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library. - Aliases like 'latin1', 'us-ascii' also supported. - * All widespread multibyte encodings: CP932, CP936, CP949, CP950, GB2312, GBK, GB18030, Big5, Shift_JIS, EUC-JP. - -See [all supported encodings on wiki](https://github.com/ashtuchkin/iconv-lite/wiki/Supported-Encodings). - -Most singlebyte encodings are generated automatically from [node-iconv](https://github.com/bnoordhuis/node-iconv). Thank you Ben Noordhuis and libiconv authors! - -Multibyte encodings are generated from [Unicode.org mappings](http://www.unicode.org/Public/MAPPINGS/) and [WHATWG Encoding Standard mappings](http://encoding.spec.whatwg.org/). Thank you, respective authors! - -## Encoding/decoding speed - -Comparison with node-iconv module (1000x256kb, on MacBook Pro, Core i5/2.6 GHz, Node v0.12.0). -Note: your results may vary, so please always check on your hardware. - - operation iconv@2.1.4 iconv-lite@0.4.7 - ---------------------------------------------------------- - encode('win1251') ~96 Mb/s ~320 Mb/s - decode('win1251') ~95 Mb/s ~246 Mb/s - -## BOM handling - - * Decoding: BOM is stripped by default, unless overridden by passing `stripBOM: false` in options - (f.ex. `iconv.decode(buf, enc, {stripBOM: false})`). - A callback might also be given as a `stripBOM` parameter - it'll be called if BOM character was actually found. - * If you want to detect UTF-8 BOM when decoding other encodings, use [node-autodetect-decoder-stream](https://github.com/danielgindi/node-autodetect-decoder-stream) module. - * Encoding: No BOM added, unless overridden by `addBOM: true` option. - -## UTF-16 Encodings - -This library supports UTF-16LE, UTF-16BE and UTF-16 encodings. First two are straightforward, but UTF-16 is trying to be -smart about endianness in the following ways: - * Decoding: uses BOM and 'spaces heuristic' to determine input endianness. Default is UTF-16LE, but can be - overridden with `defaultEncoding: 'utf-16be'` option. Strips BOM unless `stripBOM: false`. - * Encoding: uses UTF-16LE and writes BOM by default. Use `addBOM: false` to override. - -## UTF-32 Encodings - -This library supports UTF-32LE, UTF-32BE and UTF-32 encodings. Like the UTF-16 encoding above, UTF-32 defaults to UTF-32LE, but uses BOM and 'spaces heuristics' to determine input endianness. - * The default of UTF-32LE can be overridden with the `defaultEncoding: 'utf-32be'` option. Strips BOM unless `stripBOM: false`. - * Encoding: uses UTF-32LE and writes BOM by default. Use `addBOM: false` to override. (`defaultEncoding: 'utf-32be'` can also be used here to change encoding.) - -## Other notes - -When decoding, be sure to supply a Buffer to decode() method, otherwise [bad things usually happen](https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding). -Untranslatable characters are set to � or ?. No transliteration is currently supported. -Node versions 0.10.31 and 0.11.13 are buggy, don't use them (see [#65](https://github.com/ashtuchkin/iconv-lite/issues/65), [#77](https://github.com/ashtuchkin/iconv-lite/issues/77)). - -## Testing - -```sh -git clone git@github.com:ashtuchkin/iconv-lite.git -cd iconv-lite -npm install -npm test - -# To view performance: -npm run test:performance - -# To view test coverage: -npm run test:cov -open coverage/index.html -``` - -[npm-downloads-image]: https://badgen.net/npm/dm/iconv-lite -[npm-downloads-url]: https://npmcharts.com/compare/iconv-lite?minimal=true -[npm-url]: https://npmjs.org/package/iconv-lite -[npm-version-image]: https://badgen.net/npm/v/iconv-lite -[npm-install-size-image]: https://badgen.net/packagephobia/install/iconv-lite -[npm-install-size-url]: https://packagephobia.com/result?p=iconv-lite -[license-image]: https://img.shields.io/npm/l/iconv-lite.svg -[license-url]: https://github.com/ashtuchkin/iconv-lite/blob/HEAD/LICENSE \ No newline at end of file diff --git a/mcp-server/node_modules/iconv-lite/encodings/dbcs-codec.js b/mcp-server/node_modules/iconv-lite/encodings/dbcs-codec.js deleted file mode 100644 index bfec7f2..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/dbcs-codec.js +++ /dev/null @@ -1,532 +0,0 @@ -"use strict" -var Buffer = require("safer-buffer").Buffer - -// Multibyte codec. In this scheme, a character is represented by 1 or more bytes. -// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences. -// To save memory and loading time, we read table files only when requested. - -exports._dbcs = DBCSCodec - -var UNASSIGNED = -1 -var GB18030_CODE = -2 -var SEQ_START = -10 -var NODE_START = -1000 -var UNASSIGNED_NODE = new Array(0x100) -var DEF_CHAR = -1 - -for (var i = 0; i < 0x100; i++) { UNASSIGNED_NODE[i] = UNASSIGNED } - -// Class DBCSCodec reads and initializes mapping tables. -function DBCSCodec (codecOptions, iconv) { - this.encodingName = codecOptions.encodingName - if (!codecOptions) { throw new Error("DBCS codec is called without the data.") } - if (!codecOptions.table) { throw new Error("Encoding '" + this.encodingName + "' has no data.") } - - // Load tables. - var mappingTable = codecOptions.table() - - // Decode tables: MBCS -> Unicode. - - // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256. - // Trie root is decodeTables[0]. - // Values: >= 0 -> unicode character code. can be > 0xFFFF - // == UNASSIGNED -> unknown/unassigned sequence. - // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence. - // <= NODE_START -> index of the next node in our trie to process next byte. - // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq. - this.decodeTables = [] - this.decodeTables[0] = UNASSIGNED_NODE.slice(0) // Create root node. - - // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. - this.decodeTableSeq = [] - - // Actual mapping tables consist of chunks. Use them to fill up decode tables. - for (var i = 0; i < mappingTable.length; i++) { this._addDecodeChunk(mappingTable[i]) } - - // Load & create GB18030 tables when needed. - if (typeof codecOptions.gb18030 === "function") { - this.gb18030 = codecOptions.gb18030() // Load GB18030 ranges. - - // Add GB18030 common decode nodes. - var commonThirdByteNodeIdx = this.decodeTables.length - this.decodeTables.push(UNASSIGNED_NODE.slice(0)) - - var commonFourthByteNodeIdx = this.decodeTables.length - this.decodeTables.push(UNASSIGNED_NODE.slice(0)) - - // Fill out the tree - var firstByteNode = this.decodeTables[0] - for (var i = 0x81; i <= 0xFE; i++) { - var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]] - for (var j = 0x30; j <= 0x39; j++) { - if (secondByteNode[j] === UNASSIGNED) { - secondByteNode[j] = NODE_START - commonThirdByteNodeIdx - } else if (secondByteNode[j] > NODE_START) { - throw new Error("gb18030 decode tables conflict at byte 2") - } - - var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]] - for (var k = 0x81; k <= 0xFE; k++) { - if (thirdByteNode[k] === UNASSIGNED) { - thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx - } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) { - continue - } else if (thirdByteNode[k] > NODE_START) { - throw new Error("gb18030 decode tables conflict at byte 3") - } - - var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]] - for (var l = 0x30; l <= 0x39; l++) { - if (fourthByteNode[l] === UNASSIGNED) { fourthByteNode[l] = GB18030_CODE } - } - } - } - } - } - - this.defaultCharUnicode = iconv.defaultCharUnicode - - // Encode tables: Unicode -> DBCS. - - // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance. - // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null. - // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.). - // == UNASSIGNED -> no conversion found. Output a default char. - // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence. - this.encodeTable = [] - - // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of - // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key - // means end of sequence (needed when one sequence is a strict subsequence of another). - // Objects are kept separately from encodeTable to increase performance. - this.encodeTableSeq = [] - - // Some chars can be decoded, but need not be encoded. - var skipEncodeChars = {} - if (codecOptions.encodeSkipVals) { - for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) { - var val = codecOptions.encodeSkipVals[i] - if (typeof val === "number") { skipEncodeChars[val] = true } else { - for (var j = val.from; j <= val.to; j++) { skipEncodeChars[j] = true } - } - } - } - - // Use decode trie to recursively fill out encode tables. - this._fillEncodeTable(0, 0, skipEncodeChars) - - // Add more encoding pairs when needed. - if (codecOptions.encodeAdd) { - for (var uChar in codecOptions.encodeAdd) { - if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) { this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]) } - } - } - - this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)] - if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"] - if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0) -} - -DBCSCodec.prototype.encoder = DBCSEncoder -DBCSCodec.prototype.decoder = DBCSDecoder - -// Decoder helpers -DBCSCodec.prototype._getDecodeTrieNode = function (addr) { - var bytes = [] - for (; addr > 0; addr >>>= 8) { bytes.push(addr & 0xFF) } - if (bytes.length == 0) { bytes.push(0) } - - var node = this.decodeTables[0] - for (var i = bytes.length - 1; i > 0; i--) { // Traverse nodes deeper into the trie. - var val = node[bytes[i]] - - if (val == UNASSIGNED) { // Create new node. - node[bytes[i]] = NODE_START - this.decodeTables.length - this.decodeTables.push(node = UNASSIGNED_NODE.slice(0)) - } else if (val <= NODE_START) { // Existing node. - node = this.decodeTables[NODE_START - val] - } else { throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)) } - } - return node -} - -DBCSCodec.prototype._addDecodeChunk = function (chunk) { - // First element of chunk is the hex mbcs code where we start. - var curAddr = parseInt(chunk[0], 16) - - // Choose the decoding node where we'll write our chars. - var writeTable = this._getDecodeTrieNode(curAddr) - curAddr = curAddr & 0xFF - - // Write all other elements of the chunk to the table. - for (var k = 1; k < chunk.length; k++) { - var part = chunk[k] - if (typeof part === "string") { // String, write as-is. - for (var l = 0; l < part.length;) { - var code = part.charCodeAt(l++) - if (code >= 0xD800 && code < 0xDC00) { // Decode surrogate - var codeTrail = part.charCodeAt(l++) - if (codeTrail >= 0xDC00 && codeTrail < 0xE000) { writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00) } else { throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]) } - } else if (code > 0x0FF0 && code <= 0x0FFF) { // Character sequence (our own encoding used) - var len = 0xFFF - code + 2 - var seq = [] - for (var m = 0; m < len; m++) { seq.push(part.charCodeAt(l++)) } // Simple variation: don't support surrogates or subsequences in seq. - - writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length - this.decodeTableSeq.push(seq) - } else { writeTable[curAddr++] = code } // Basic char - } - } else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character. - var charCode = writeTable[curAddr - 1] + 1 - for (var l = 0; l < part; l++) { writeTable[curAddr++] = charCode++ } - } else { throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]) } - } - if (curAddr > 0xFF) { throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr) } -} - -// Encoder helpers -DBCSCodec.prototype._getEncodeBucket = function (uCode) { - var high = uCode >> 8 // This could be > 0xFF because of astral characters. - if (this.encodeTable[high] === undefined) { - this.encodeTable[high] = UNASSIGNED_NODE.slice(0) - } // Create bucket on demand. - return this.encodeTable[high] -} - -DBCSCodec.prototype._setEncodeChar = function (uCode, dbcsCode) { - var bucket = this._getEncodeBucket(uCode) - var low = uCode & 0xFF - if (bucket[low] <= SEQ_START) { this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode } // There's already a sequence, set a single-char subsequence of it. - else if (bucket[low] == UNASSIGNED) { bucket[low] = dbcsCode } -} - -DBCSCodec.prototype._setEncodeSequence = function (seq, dbcsCode) { - // Get the root of character tree according to first character of the sequence. - var uCode = seq[0] - var bucket = this._getEncodeBucket(uCode) - var low = uCode & 0xFF - - var node - if (bucket[low] <= SEQ_START) { - // There's already a sequence with - use it. - node = this.encodeTableSeq[SEQ_START - bucket[low]] - } else { - // There was no sequence object - allocate a new one. - node = {} - if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low] // If a char was set before - make it a single-char subsequence. - bucket[low] = SEQ_START - this.encodeTableSeq.length - this.encodeTableSeq.push(node) - } - - // Traverse the character tree, allocating new nodes as needed. - for (var j = 1; j < seq.length - 1; j++) { - var oldVal = node[uCode] - if (typeof oldVal === "object") { node = oldVal } else { - node = node[uCode] = {} - if (oldVal !== undefined) { node[DEF_CHAR] = oldVal } - } - } - - // Set the leaf to given dbcsCode. - uCode = seq[seq.length - 1] - node[uCode] = dbcsCode -} - -DBCSCodec.prototype._fillEncodeTable = function (nodeIdx, prefix, skipEncodeChars) { - var node = this.decodeTables[nodeIdx] - var hasValues = false - var subNodeEmpty = {} - for (var i = 0; i < 0x100; i++) { - var uCode = node[i] - var mbCode = prefix + i - if (skipEncodeChars[mbCode]) { continue } - - if (uCode >= 0) { - this._setEncodeChar(uCode, mbCode) - hasValues = true - } else if (uCode <= NODE_START) { - var subNodeIdx = NODE_START - uCode - if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030). - var newPrefix = (mbCode << 8) >>> 0 // NOTE: '>>> 0' keeps 32-bit num positive. - if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) { hasValues = true } else { subNodeEmpty[subNodeIdx] = true } - } - } else if (uCode <= SEQ_START) { - this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode) - hasValues = true - } - } - return hasValues -} - -// == Encoder ================================================================== - -function DBCSEncoder (options, codec) { - // Encoder state - this.leadSurrogate = -1 - this.seqObj = undefined - - // Static data - this.encodeTable = codec.encodeTable - this.encodeTableSeq = codec.encodeTableSeq - this.defaultCharSingleByte = codec.defCharSB - this.gb18030 = codec.gb18030 -} - -DBCSEncoder.prototype.write = function (str) { - var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)) - var leadSurrogate = this.leadSurrogate - var seqObj = this.seqObj - var nextChar = -1 - var i = 0; var j = 0 - - while (true) { - // 0. Get next character. - if (nextChar === -1) { - if (i == str.length) break - var uCode = str.charCodeAt(i++) - } else { - var uCode = nextChar - nextChar = -1 - } - - // 1. Handle surrogates. - if (uCode >= 0xD800 && uCode < 0xE000) { // Char is one of surrogates. - if (uCode < 0xDC00) { // We've got lead surrogate. - if (leadSurrogate === -1) { - leadSurrogate = uCode - continue - } else { - leadSurrogate = uCode - // Double lead surrogate found. - uCode = UNASSIGNED - } - } else { // We've got trail surrogate. - if (leadSurrogate !== -1) { - uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00) - leadSurrogate = -1 - } else { - // Incomplete surrogate pair - only trail surrogate found. - uCode = UNASSIGNED - } - } - } else if (leadSurrogate !== -1) { - // Incomplete surrogate pair - only lead surrogate found. - nextChar = uCode; uCode = UNASSIGNED // Write an error, then current char. - leadSurrogate = -1 - } - - // 2. Convert uCode character. - var dbcsCode = UNASSIGNED - if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence - var resCode = seqObj[uCode] - if (typeof resCode === "object") { // Sequence continues. - seqObj = resCode - continue - } else if (typeof resCode === "number") { // Sequence finished. Write it. - dbcsCode = resCode - } else if (resCode == undefined) { // Current character is not part of the sequence. - // Try default character for this sequence - resCode = seqObj[DEF_CHAR] - if (resCode !== undefined) { - dbcsCode = resCode // Found. Write it. - nextChar = uCode // Current character will be written too in the next iteration. - } else { - // TODO: What if we have no default? (resCode == undefined) - // Then, we should write first char of the sequence as-is and try the rest recursively. - // Didn't do it for now because no encoding has this situation yet. - // Currently, just skip the sequence and write current char. - } - } - seqObj = undefined - } else if (uCode >= 0) { // Regular character - var subtable = this.encodeTable[uCode >> 8] - if (subtable !== undefined) { dbcsCode = subtable[uCode & 0xFF] } - - if (dbcsCode <= SEQ_START) { // Sequence start - seqObj = this.encodeTableSeq[SEQ_START - dbcsCode] - continue - } - - if (dbcsCode == UNASSIGNED && this.gb18030) { - // Use GB18030 algorithm to find character(s) to write. - var idx = findIdx(this.gb18030.uChars, uCode) - if (idx != -1) { - var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]) - newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600 - newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260 - newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10 - newBuf[j++] = 0x30 + dbcsCode - continue - } - } - } - - // 3. Write dbcsCode character. - if (dbcsCode === UNASSIGNED) { dbcsCode = this.defaultCharSingleByte } - - if (dbcsCode < 0x100) { - newBuf[j++] = dbcsCode - } else if (dbcsCode < 0x10000) { - newBuf[j++] = dbcsCode >> 8 // high byte - newBuf[j++] = dbcsCode & 0xFF // low byte - } else if (dbcsCode < 0x1000000) { - newBuf[j++] = dbcsCode >> 16 - newBuf[j++] = (dbcsCode >> 8) & 0xFF - newBuf[j++] = dbcsCode & 0xFF - } else { - newBuf[j++] = dbcsCode >>> 24 - newBuf[j++] = (dbcsCode >>> 16) & 0xFF - newBuf[j++] = (dbcsCode >>> 8) & 0xFF - newBuf[j++] = dbcsCode & 0xFF - } - } - - this.seqObj = seqObj - this.leadSurrogate = leadSurrogate - return newBuf.slice(0, j) -} - -DBCSEncoder.prototype.end = function () { - if (this.leadSurrogate === -1 && this.seqObj === undefined) { return } // All clean. Most often case. - - var newBuf = Buffer.alloc(10); var j = 0 - - if (this.seqObj) { // We're in the sequence. - var dbcsCode = this.seqObj[DEF_CHAR] - if (dbcsCode !== undefined) { // Write beginning of the sequence. - if (dbcsCode < 0x100) { - newBuf[j++] = dbcsCode - } else { - newBuf[j++] = dbcsCode >> 8 // high byte - newBuf[j++] = dbcsCode & 0xFF // low byte - } - } else { - // See todo above. - } - this.seqObj = undefined - } - - if (this.leadSurrogate !== -1) { - // Incomplete surrogate pair - only lead surrogate found. - newBuf[j++] = this.defaultCharSingleByte - this.leadSurrogate = -1 - } - - return newBuf.slice(0, j) -} - -// Export for testing -DBCSEncoder.prototype.findIdx = findIdx - -// == Decoder ================================================================== - -function DBCSDecoder (options, codec) { - // Decoder state - this.nodeIdx = 0 - this.prevBytes = [] - - // Static data - this.decodeTables = codec.decodeTables - this.decodeTableSeq = codec.decodeTableSeq - this.defaultCharUnicode = codec.defaultCharUnicode - this.gb18030 = codec.gb18030 -} - -DBCSDecoder.prototype.write = function (buf) { - var newBuf = Buffer.alloc(buf.length * 2) - var nodeIdx = this.nodeIdx - var prevBytes = this.prevBytes; var prevOffset = this.prevBytes.length - var seqStart = -this.prevBytes.length // idx of the start of current parsed sequence. - var uCode - - for (var i = 0, j = 0; i < buf.length; i++) { - var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset] - - // Lookup in current trie node. - var uCode = this.decodeTables[nodeIdx][curByte] - - if (uCode >= 0) { - // Normal character, just use it. - } else if (uCode === UNASSIGNED) { // Unknown char. - // TODO: Callback with seq. - uCode = this.defaultCharUnicode.charCodeAt(0) - i = seqStart // Skip one byte ('i' will be incremented by the for loop) and try to parse again. - } else if (uCode === GB18030_CODE) { - if (i >= 3) { - var ptr = (buf[i - 3] - 0x81) * 12600 + (buf[i - 2] - 0x30) * 1260 + (buf[i - 1] - 0x81) * 10 + (curByte - 0x30) - } else { - var ptr = (prevBytes[i - 3 + prevOffset] - 0x81) * 12600 + - (((i - 2 >= 0) ? buf[i - 2] : prevBytes[i - 2 + prevOffset]) - 0x30) * 1260 + - (((i - 1 >= 0) ? buf[i - 1] : prevBytes[i - 1 + prevOffset]) - 0x81) * 10 + - (curByte - 0x30) - } - var idx = findIdx(this.gb18030.gbChars, ptr) - uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx] - } else if (uCode <= NODE_START) { // Go to next trie node. - nodeIdx = NODE_START - uCode - continue - } else if (uCode <= SEQ_START) { // Output a sequence of chars. - var seq = this.decodeTableSeq[SEQ_START - uCode] - for (var k = 0; k < seq.length - 1; k++) { - uCode = seq[k] - newBuf[j++] = uCode & 0xFF - newBuf[j++] = uCode >> 8 - } - uCode = seq[seq.length - 1] - } else { throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte) } - - // Write the character to buffer, handling higher planes using surrogate pair. - if (uCode >= 0x10000) { - uCode -= 0x10000 - var uCodeLead = 0xD800 | (uCode >> 10) - newBuf[j++] = uCodeLead & 0xFF - newBuf[j++] = uCodeLead >> 8 - - uCode = 0xDC00 | (uCode & 0x3FF) - } - newBuf[j++] = uCode & 0xFF - newBuf[j++] = uCode >> 8 - - // Reset trie node. - nodeIdx = 0; seqStart = i + 1 - } - - this.nodeIdx = nodeIdx - this.prevBytes = (seqStart >= 0) - ? Array.prototype.slice.call(buf, seqStart) - : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf)) - - return newBuf.slice(0, j).toString("ucs2") -} - -DBCSDecoder.prototype.end = function () { - var ret = "" - - // Try to parse all remaining chars. - while (this.prevBytes.length > 0) { - // Skip 1 character in the buffer. - ret += this.defaultCharUnicode - var bytesArr = this.prevBytes.slice(1) - - // Parse remaining as usual. - this.prevBytes = [] - this.nodeIdx = 0 - if (bytesArr.length > 0) { ret += this.write(bytesArr) } - } - - this.prevBytes = [] - this.nodeIdx = 0 - return ret -} - -// Binary search for GB18030. Returns largest i such that table[i] <= val. -function findIdx (table, val) { - if (table[0] > val) { return -1 } - - var l = 0; var r = table.length - while (l < r - 1) { // always table[l] <= val < table[r] - var mid = l + ((r - l + 1) >> 1) - if (table[mid] <= val) { l = mid } else { r = mid } - } - return l -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/dbcs-data.js b/mcp-server/node_modules/iconv-lite/encodings/dbcs-data.js deleted file mode 100644 index a3858d4..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/dbcs-data.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict" - -// Description of supported double byte encodings and aliases. -// Tables are not require()-d until they are needed to speed up library load. -// require()-s are direct to support Browserify. - -module.exports = { - - // == Japanese/ShiftJIS ==================================================== - // All japanese encodings are based on JIS X set of standards: - // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF. - // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. - // Has several variations in 1978, 1983, 1990 and 1997. - // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead. - // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233. - // 2 planes, first is superset of 0208, second - revised 0212. - // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx) - - // Byte encodings are: - // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte - // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC. - // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI. - // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes. - // 0x00-0x7F - lower part of 0201 - // 0x8E, 0xA1-0xDF - upper part of 0201 - // (0xA1-0xFE)x2 - 0208 plane (94x94). - // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94). - // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon. - // Used as-is in ISO2022 family. - // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, - // 0201-1976 Roman, 0208-1978, 0208-1983. - // * ISO2022-JP-1: Adds esc seq for 0212-1990. - // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7. - // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2. - // * ISO2022-JP-2004: Adds 0213-2004 Plane 1. - // - // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes. - // - // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html - - shiftjis: { - type: "_dbcs", - table: function () { return require("./tables/shiftjis.json") }, - encodeAdd: { "\u00a5": 0x5C, "\u203E": 0x7E }, - encodeSkipVals: [{ from: 0xED40, to: 0xF940 }] - }, - csshiftjis: "shiftjis", - mskanji: "shiftjis", - sjis: "shiftjis", - windows31j: "shiftjis", - ms31j: "shiftjis", - xsjis: "shiftjis", - windows932: "shiftjis", - ms932: "shiftjis", - 932: "shiftjis", - cp932: "shiftjis", - - eucjp: { - type: "_dbcs", - table: function () { return require("./tables/eucjp.json") }, - encodeAdd: { "\u00a5": 0x5C, "\u203E": 0x7E } - }, - - // TODO: KDDI extension to Shift_JIS - // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes. - // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars. - - // == Chinese/GBK ========================================================== - // http://en.wikipedia.org/wiki/GBK - // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder - - // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936 - gb2312: "cp936", - gb231280: "cp936", - gb23121980: "cp936", - csgb2312: "cp936", - csiso58gb231280: "cp936", - euccn: "cp936", - - // Microsoft's CP936 is a subset and approximation of GBK. - windows936: "cp936", - ms936: "cp936", - 936: "cp936", - cp936: { - type: "_dbcs", - table: function () { return require("./tables/cp936.json") } - }, - - // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other. - gbk: { - type: "_dbcs", - table: function () { return require("./tables/cp936.json").concat(require("./tables/gbk-added.json")) } - }, - xgbk: "gbk", - isoir58: "gbk", - - // GB18030 is an algorithmic extension of GBK. - // Main source: https://www.w3.org/TR/encoding/#gbk-encoder - // http://icu-project.org/docs/papers/gb18030.html - // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml - // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0 - gb18030: { - type: "_dbcs", - table: function () { return require("./tables/cp936.json").concat(require("./tables/gbk-added.json")) }, - gb18030: function () { return require("./tables/gb18030-ranges.json") }, - encodeSkipVals: [0x80], - encodeAdd: { "€": 0xA2E3 } - }, - - chinese: "gb18030", - - // == Korean =============================================================== - // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same. - windows949: "cp949", - ms949: "cp949", - 949: "cp949", - cp949: { - type: "_dbcs", - table: function () { return require("./tables/cp949.json") } - }, - - cseuckr: "cp949", - csksc56011987: "cp949", - euckr: "cp949", - isoir149: "cp949", - korean: "cp949", - ksc56011987: "cp949", - ksc56011989: "cp949", - ksc5601: "cp949", - - // == Big5/Taiwan/Hong Kong ================================================ - // There are lots of tables for Big5 and cp950. Please see the following links for history: - // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html - // Variations, in roughly number of defined chars: - // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT - // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/ - // * Big5-2003 (Taiwan standard) almost superset of cp950. - // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers. - // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. - // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years. - // Plus, it has 4 combining sequences. - // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299 - // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way. - // Implementations are not consistent within browsers; sometimes labeled as just big5. - // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied. - // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31 - // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s. - // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt - // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt - // - // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder - // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong. - - windows950: "cp950", - ms950: "cp950", - 950: "cp950", - cp950: { - type: "_dbcs", - table: function () { return require("./tables/cp950.json") } - }, - - // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus. - big5: "big5hkscs", - big5hkscs: { - type: "_dbcs", - table: function () { return require("./tables/cp950.json").concat(require("./tables/big5-added.json")) }, - encodeSkipVals: [ - // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of - // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU. - // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter. - 0x8e69, 0x8e6f, 0x8e7e, 0x8eab, 0x8eb4, 0x8ecd, 0x8ed0, 0x8f57, 0x8f69, 0x8f6e, 0x8fcb, 0x8ffe, - 0x906d, 0x907a, 0x90c4, 0x90dc, 0x90f1, 0x91bf, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92d1, 0x9447, 0x94ca, - 0x95d9, 0x96fc, 0x9975, 0x9b76, 0x9b78, 0x9b7b, 0x9bc6, 0x9bde, 0x9bec, 0x9bf6, 0x9c42, 0x9c53, 0x9c62, - 0x9c68, 0x9c6b, 0x9c77, 0x9cbc, 0x9cbd, 0x9cd0, 0x9d57, 0x9d5a, 0x9dc4, 0x9def, 0x9dfb, 0x9ea9, 0x9eef, - 0x9efd, 0x9f60, 0x9fcb, 0xa077, 0xa0dc, 0xa0df, 0x8fcc, 0x92c8, 0x9644, 0x96ed, - - // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345 - 0xa2a4, 0xa2a5, 0xa2a7, 0xa2a6, 0xa2cc, 0xa2ce - ] - }, - - cnbig5: "big5hkscs", - csbig5: "big5hkscs", - xxbig5: "big5hkscs" -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/index.js b/mcp-server/node_modules/iconv-lite/encodings/index.js deleted file mode 100644 index 9d90e3c..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict" - -var mergeModules = require("../lib/helpers/merge-exports") - -// Update this array if you add/rename/remove files in this directory. -// We support Browserify by skipping automatic module discovery and requiring modules directly. -var modules = [ - require("./internal"), - require("./utf32"), - require("./utf16"), - require("./utf7"), - require("./sbcs-codec"), - require("./sbcs-data"), - require("./sbcs-data-generated"), - require("./dbcs-codec"), - require("./dbcs-data") -] - -// Put all encoding/alias/codec definitions to single object and export it. -for (var i = 0; i < modules.length; i++) { - var module = modules[i] - mergeModules(exports, module) -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/internal.js b/mcp-server/node_modules/iconv-lite/encodings/internal.js deleted file mode 100644 index 4e5c3ff..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/internal.js +++ /dev/null @@ -1,218 +0,0 @@ -"use strict" -var Buffer = require("safer-buffer").Buffer - -// Export Node.js internal encodings. - -module.exports = { - // Encodings - utf8: { type: "_internal", bomAware: true }, - cesu8: { type: "_internal", bomAware: true }, - unicode11utf8: "utf8", - - ucs2: { type: "_internal", bomAware: true }, - utf16le: "ucs2", - - binary: { type: "_internal" }, - base64: { type: "_internal" }, - hex: { type: "_internal" }, - - // Codec. - _internal: InternalCodec -} - -// ------------------------------------------------------------------------------ - -function InternalCodec (codecOptions, iconv) { - this.enc = codecOptions.encodingName - this.bomAware = codecOptions.bomAware - - if (this.enc === "base64") { this.encoder = InternalEncoderBase64 } else if (this.enc === "utf8") { this.encoder = InternalEncoderUtf8 } else if (this.enc === "cesu8") { - this.enc = "utf8" // Use utf8 for decoding. - this.encoder = InternalEncoderCesu8 - - // Add decoder for versions of Node not supporting CESU-8 - if (Buffer.from("eda0bdedb2a9", "hex").toString() !== "💩") { - this.decoder = InternalDecoderCesu8 - this.defaultCharUnicode = iconv.defaultCharUnicode - } - } -} - -InternalCodec.prototype.encoder = InternalEncoder -InternalCodec.prototype.decoder = InternalDecoder - -// ------------------------------------------------------------------------------ - -// We use node.js internal decoder. Its signature is the same as ours. -var StringDecoder = require("string_decoder").StringDecoder - -function InternalDecoder (options, codec) { - this.decoder = new StringDecoder(codec.enc) -} - -InternalDecoder.prototype.write = function (buf) { - if (!Buffer.isBuffer(buf)) { - buf = Buffer.from(buf) - } - - return this.decoder.write(buf) -} - -InternalDecoder.prototype.end = function () { - return this.decoder.end() -} - -// ------------------------------------------------------------------------------ -// Encoder is mostly trivial - -function InternalEncoder (options, codec) { - this.enc = codec.enc -} - -InternalEncoder.prototype.write = function (str) { - return Buffer.from(str, this.enc) -} - -InternalEncoder.prototype.end = function () { -} - -// ------------------------------------------------------------------------------ -// Except base64 encoder, which must keep its state. - -function InternalEncoderBase64 (options, codec) { - this.prevStr = "" -} - -InternalEncoderBase64.prototype.write = function (str) { - str = this.prevStr + str - var completeQuads = str.length - (str.length % 4) - this.prevStr = str.slice(completeQuads) - str = str.slice(0, completeQuads) - - return Buffer.from(str, "base64") -} - -InternalEncoderBase64.prototype.end = function () { - return Buffer.from(this.prevStr, "base64") -} - -// ------------------------------------------------------------------------------ -// CESU-8 encoder is also special. - -function InternalEncoderCesu8 (options, codec) { -} - -InternalEncoderCesu8.prototype.write = function (str) { - var buf = Buffer.alloc(str.length * 3); var bufIdx = 0 - for (var i = 0; i < str.length; i++) { - var charCode = str.charCodeAt(i) - // Naive implementation, but it works because CESU-8 is especially easy - // to convert from UTF-16 (which all JS strings are encoded in). - if (charCode < 0x80) { buf[bufIdx++] = charCode } else if (charCode < 0x800) { - buf[bufIdx++] = 0xC0 + (charCode >>> 6) - buf[bufIdx++] = 0x80 + (charCode & 0x3f) - } else { // charCode will always be < 0x10000 in javascript. - buf[bufIdx++] = 0xE0 + (charCode >>> 12) - buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f) - buf[bufIdx++] = 0x80 + (charCode & 0x3f) - } - } - return buf.slice(0, bufIdx) -} - -InternalEncoderCesu8.prototype.end = function () { -} - -// ------------------------------------------------------------------------------ -// CESU-8 decoder is not implemented in Node v4.0+ - -function InternalDecoderCesu8 (options, codec) { - this.acc = 0 - this.contBytes = 0 - this.accBytes = 0 - this.defaultCharUnicode = codec.defaultCharUnicode -} - -InternalDecoderCesu8.prototype.write = function (buf) { - var acc = this.acc; var contBytes = this.contBytes; var accBytes = this.accBytes - var res = "" - for (var i = 0; i < buf.length; i++) { - var curByte = buf[i] - if ((curByte & 0xC0) !== 0x80) { // Leading byte - if (contBytes > 0) { // Previous code is invalid - res += this.defaultCharUnicode - contBytes = 0 - } - - if (curByte < 0x80) { // Single-byte code - res += String.fromCharCode(curByte) - } else if (curByte < 0xE0) { // Two-byte code - acc = curByte & 0x1F - contBytes = 1; accBytes = 1 - } else if (curByte < 0xF0) { // Three-byte code - acc = curByte & 0x0F - contBytes = 2; accBytes = 1 - } else { // Four or more are not supported for CESU-8. - res += this.defaultCharUnicode - } - } else { // Continuation byte - if (contBytes > 0) { // We're waiting for it. - acc = (acc << 6) | (curByte & 0x3f) - contBytes--; accBytes++ - if (contBytes === 0) { - // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80) - if (accBytes === 2 && acc < 0x80 && acc > 0) { - res += this.defaultCharUnicode - } else if (accBytes === 3 && acc < 0x800) { - res += this.defaultCharUnicode - } else { - // Actually add character. - res += String.fromCharCode(acc) - } - } - } else { // Unexpected continuation byte - res += this.defaultCharUnicode - } - } - } - this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes - return res -} - -InternalDecoderCesu8.prototype.end = function () { - var res = 0 - if (this.contBytes > 0) { res += this.defaultCharUnicode } - return res -} - -// ------------------------------------------------------------------------------ -// check the chunk boundaries for surrogate pair - -function InternalEncoderUtf8 (options, codec) { - this.highSurrogate = "" -} - -InternalEncoderUtf8.prototype.write = function (str) { - if (this.highSurrogate) { - str = this.highSurrogate + str - this.highSurrogate = "" - } - - if (str.length > 0) { - var charCode = str.charCodeAt(str.length - 1) - if (charCode >= 0xd800 && charCode < 0xdc00) { - this.highSurrogate = str[str.length - 1] - str = str.slice(0, str.length - 1) - } - } - - return Buffer.from(str, this.enc) -} - -InternalEncoderUtf8.prototype.end = function () { - if (this.highSurrogate) { - var str = this.highSurrogate - this.highSurrogate = "" - return Buffer.from(str, this.enc) - } -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/sbcs-codec.js b/mcp-server/node_modules/iconv-lite/encodings/sbcs-codec.js deleted file mode 100644 index 0e2fc92..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/sbcs-codec.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict" -var Buffer = require("safer-buffer").Buffer - -// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that -// correspond to encoded bytes (if 128 - then lower half is ASCII). - -exports._sbcs = SBCSCodec -function SBCSCodec (codecOptions, iconv) { - if (!codecOptions) { - throw new Error("SBCS codec is called without the data.") - } - - // Prepare char buffer for decoding. - if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)) { - throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)") - } - - if (codecOptions.chars.length === 128) { - var asciiString = "" - for (var i = 0; i < 128; i++) { - asciiString += String.fromCharCode(i) - } - codecOptions.chars = asciiString + codecOptions.chars - } - - this.decodeBuf = Buffer.from(codecOptions.chars, "ucs2") - - // Encoding buffer. - var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0)) - - for (var i = 0; i < codecOptions.chars.length; i++) { - encodeBuf[codecOptions.chars.charCodeAt(i)] = i - } - - this.encodeBuf = encodeBuf -} - -SBCSCodec.prototype.encoder = SBCSEncoder -SBCSCodec.prototype.decoder = SBCSDecoder - -function SBCSEncoder (options, codec) { - this.encodeBuf = codec.encodeBuf -} - -SBCSEncoder.prototype.write = function (str) { - var buf = Buffer.alloc(str.length) - for (var i = 0; i < str.length; i++) { - buf[i] = this.encodeBuf[str.charCodeAt(i)] - } - - return buf -} - -SBCSEncoder.prototype.end = function () { -} - -function SBCSDecoder (options, codec) { - this.decodeBuf = codec.decodeBuf -} - -SBCSDecoder.prototype.write = function (buf) { - // Strings are immutable in JS -> we use ucs2 buffer to speed up computations. - var decodeBuf = this.decodeBuf - var newBuf = Buffer.alloc(buf.length * 2) - var idx1 = 0; var idx2 = 0 - for (var i = 0; i < buf.length; i++) { - idx1 = buf[i] * 2; idx2 = i * 2 - newBuf[idx2] = decodeBuf[idx1] - newBuf[idx2 + 1] = decodeBuf[idx1 + 1] - } - return newBuf.toString("ucs2") -} - -SBCSDecoder.prototype.end = function () { -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/sbcs-data-generated.js b/mcp-server/node_modules/iconv-lite/encodings/sbcs-data-generated.js deleted file mode 100644 index 9b48236..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/sbcs-data-generated.js +++ /dev/null @@ -1,451 +0,0 @@ -"use strict"; - -// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script. -module.exports = { - "437": "cp437", - "737": "cp737", - "775": "cp775", - "850": "cp850", - "852": "cp852", - "855": "cp855", - "856": "cp856", - "857": "cp857", - "858": "cp858", - "860": "cp860", - "861": "cp861", - "862": "cp862", - "863": "cp863", - "864": "cp864", - "865": "cp865", - "866": "cp866", - "869": "cp869", - "874": "windows874", - "922": "cp922", - "1046": "cp1046", - "1124": "cp1124", - "1125": "cp1125", - "1129": "cp1129", - "1133": "cp1133", - "1161": "cp1161", - "1162": "cp1162", - "1163": "cp1163", - "1250": "windows1250", - "1251": "windows1251", - "1252": "windows1252", - "1253": "windows1253", - "1254": "windows1254", - "1255": "windows1255", - "1256": "windows1256", - "1257": "windows1257", - "1258": "windows1258", - "28591": "iso88591", - "28592": "iso88592", - "28593": "iso88593", - "28594": "iso88594", - "28595": "iso88595", - "28596": "iso88596", - "28597": "iso88597", - "28598": "iso88598", - "28599": "iso88599", - "28600": "iso885910", - "28601": "iso885911", - "28603": "iso885913", - "28604": "iso885914", - "28605": "iso885915", - "28606": "iso885916", - "windows874": { - "type": "_sbcs", - "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "win874": "windows874", - "cp874": "windows874", - "windows1250": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "win1250": "windows1250", - "cp1250": "windows1250", - "windows1251": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "win1251": "windows1251", - "cp1251": "windows1251", - "windows1252": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "win1252": "windows1252", - "cp1252": "windows1252", - "windows1253": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "win1253": "windows1253", - "cp1253": "windows1253", - "windows1254": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "win1254": "windows1254", - "cp1254": "windows1254", - "windows1255": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "win1255": "windows1255", - "cp1255": "windows1255", - "windows1256": { - "type": "_sbcs", - "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے" - }, - "win1256": "windows1256", - "cp1256": "windows1256", - "windows1257": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙" - }, - "win1257": "windows1257", - "cp1257": "windows1257", - "windows1258": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "win1258": "windows1258", - "cp1258": "windows1258", - "iso88591": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28591": "iso88591", - "iso88592": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "cp28592": "iso88592", - "iso88593": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙" - }, - "cp28593": "iso88593", - "iso88594": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙" - }, - "cp28594": "iso88594", - "iso88595": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ" - }, - "cp28595": "iso88595", - "iso88596": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������" - }, - "cp28596": "iso88596", - "iso88597": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "cp28597": "iso88597", - "iso88598": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "cp28598": "iso88598", - "iso88599": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "cp28599": "iso88599", - "iso885910": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ" - }, - "cp28600": "iso885910", - "iso885911": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "cp28601": "iso885911", - "iso885913": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’" - }, - "cp28603": "iso885913", - "iso885914": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ" - }, - "cp28604": "iso885914", - "iso885915": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28605": "iso885915", - "iso885916": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ" - }, - "cp28606": "iso885916", - "cp437": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm437": "cp437", - "csibm437": "cp437", - "cp737": { - "type": "_sbcs", - "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ " - }, - "ibm737": "cp737", - "csibm737": "cp737", - "cp775": { - "type": "_sbcs", - "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ " - }, - "ibm775": "cp775", - "csibm775": "cp775", - "cp850": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm850": "cp850", - "csibm850": "cp850", - "cp852": { - "type": "_sbcs", - "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ " - }, - "ibm852": "cp852", - "csibm852": "cp852", - "cp855": { - "type": "_sbcs", - "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ " - }, - "ibm855": "cp855", - "csibm855": "cp855", - "cp856": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm856": "cp856", - "csibm856": "cp856", - "cp857": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ " - }, - "ibm857": "cp857", - "csibm857": "cp857", - "cp858": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm858": "cp858", - "csibm858": "cp858", - "cp860": { - "type": "_sbcs", - "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm860": "cp860", - "csibm860": "cp860", - "cp861": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm861": "cp861", - "csibm861": "cp861", - "cp862": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm862": "cp862", - "csibm862": "cp862", - "cp863": { - "type": "_sbcs", - "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm863": "cp863", - "csibm863": "cp863", - "cp864": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�" - }, - "ibm864": "cp864", - "csibm864": "cp864", - "cp865": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm865": "cp865", - "csibm865": "cp865", - "cp866": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ " - }, - "ibm866": "cp866", - "csibm866": "cp866", - "cp869": { - "type": "_sbcs", - "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ " - }, - "ibm869": "cp869", - "csibm869": "cp869", - "cp922": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ" - }, - "ibm922": "cp922", - "csibm922": "cp922", - "cp1046": { - "type": "_sbcs", - "chars": "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�" - }, - "ibm1046": "cp1046", - "csibm1046": "cp1046", - "cp1124": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ" - }, - "ibm1124": "cp1124", - "csibm1124": "cp1124", - "cp1125": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ " - }, - "ibm1125": "cp1125", - "csibm1125": "cp1125", - "cp1129": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1129": "cp1129", - "csibm1129": "cp1129", - "cp1133": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�" - }, - "ibm1133": "cp1133", - "csibm1133": "cp1133", - "cp1161": { - "type": "_sbcs", - "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ " - }, - "ibm1161": "cp1161", - "csibm1161": "cp1161", - "cp1162": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "ibm1162": "cp1162", - "csibm1162": "cp1162", - "cp1163": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1163": "cp1163", - "csibm1163": "cp1163", - "maccroatian": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ" - }, - "maccyrillic": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "macgreek": { - "type": "_sbcs", - "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�" - }, - "maciceland": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macroman": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macromania": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macthai": { - "type": "_sbcs", - "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����" - }, - "macturkish": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macukraine": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "koi8r": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8u": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8ru": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8t": { - "type": "_sbcs", - "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "armscii8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�" - }, - "rk1048": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "tcvn": { - "type": "_sbcs", - "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ" - }, - "georgianacademy": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "georgianps": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "pt154": { - "type": "_sbcs", - "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "viscii": { - "type": "_sbcs", - "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ" - }, - "iso646cn": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "iso646jp": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "hproman8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�" - }, - "macintosh": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "ascii": { - "type": "_sbcs", - "chars": "��������������������������������������������������������������������������������������������������������������������������������" - }, - "tis620": { - "type": "_sbcs", - "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - } -} \ No newline at end of file diff --git a/mcp-server/node_modules/iconv-lite/encodings/sbcs-data.js b/mcp-server/node_modules/iconv-lite/encodings/sbcs-data.js deleted file mode 100644 index d8f8e17..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/sbcs-data.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict" - -// Manually added data to be used by sbcs codec in addition to generated one. - -module.exports = { - // Not supported by iconv, not sure why. - 10029: "maccenteuro", - maccenteuro: { - type: "_sbcs", - chars: "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ" - }, - - 808: "cp808", - ibm808: "cp808", - cp808: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ " - }, - - mik: { - type: "_sbcs", - chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - - cp720: { - type: "_sbcs", - chars: "\x80\x81éâ\x84à\x86çêëèïî\x8d\x8e\x8f\x90\u0651\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\u064b\u064c\u064d\u064e\u064f\u0650≈°∙·√ⁿ²■\u00a0" - }, - - // Aliases of generated encodings. - ascii8bit: "ascii", - usascii: "ascii", - ansix34: "ascii", - ansix341968: "ascii", - ansix341986: "ascii", - csascii: "ascii", - cp367: "ascii", - ibm367: "ascii", - isoir6: "ascii", - iso646us: "ascii", - iso646irv: "ascii", - us: "ascii", - - latin1: "iso88591", - latin2: "iso88592", - latin3: "iso88593", - latin4: "iso88594", - latin5: "iso88599", - latin6: "iso885910", - latin7: "iso885913", - latin8: "iso885914", - latin9: "iso885915", - latin10: "iso885916", - - csisolatin1: "iso88591", - csisolatin2: "iso88592", - csisolatin3: "iso88593", - csisolatin4: "iso88594", - csisolatincyrillic: "iso88595", - csisolatinarabic: "iso88596", - csisolatingreek: "iso88597", - csisolatinhebrew: "iso88598", - csisolatin5: "iso88599", - csisolatin6: "iso885910", - - l1: "iso88591", - l2: "iso88592", - l3: "iso88593", - l4: "iso88594", - l5: "iso88599", - l6: "iso885910", - l7: "iso885913", - l8: "iso885914", - l9: "iso885915", - l10: "iso885916", - - isoir14: "iso646jp", - isoir57: "iso646cn", - isoir100: "iso88591", - isoir101: "iso88592", - isoir109: "iso88593", - isoir110: "iso88594", - isoir144: "iso88595", - isoir127: "iso88596", - isoir126: "iso88597", - isoir138: "iso88598", - isoir148: "iso88599", - isoir157: "iso885910", - isoir166: "tis620", - isoir179: "iso885913", - isoir199: "iso885914", - isoir203: "iso885915", - isoir226: "iso885916", - - cp819: "iso88591", - ibm819: "iso88591", - - cyrillic: "iso88595", - - arabic: "iso88596", - arabic8: "iso88596", - ecma114: "iso88596", - asmo708: "iso88596", - - greek: "iso88597", - greek8: "iso88597", - ecma118: "iso88597", - elot928: "iso88597", - - hebrew: "iso88598", - hebrew8: "iso88598", - - turkish: "iso88599", - turkish8: "iso88599", - - thai: "iso885911", - thai8: "iso885911", - - celtic: "iso885914", - celtic8: "iso885914", - isoceltic: "iso885914", - - tis6200: "tis620", - tis62025291: "tis620", - tis62025330: "tis620", - - 10000: "macroman", - 10006: "macgreek", - 10007: "maccyrillic", - 10079: "maciceland", - 10081: "macturkish", - - cspc8codepage437: "cp437", - cspc775baltic: "cp775", - cspc850multilingual: "cp850", - cspcp852: "cp852", - cspc862latinhebrew: "cp862", - cpgr: "cp869", - - msee: "cp1250", - mscyrl: "cp1251", - msansi: "cp1252", - msgreek: "cp1253", - msturk: "cp1254", - mshebr: "cp1255", - msarab: "cp1256", - winbaltrim: "cp1257", - - cp20866: "koi8r", - 20866: "koi8r", - ibm878: "koi8r", - cskoi8r: "koi8r", - - cp21866: "koi8u", - 21866: "koi8u", - ibm1168: "koi8u", - - strk10482002: "rk1048", - - tcvn5712: "tcvn", - tcvn57121: "tcvn", - - gb198880: "iso646cn", - cn: "iso646cn", - - csiso14jisc6220ro: "iso646jp", - jisc62201969ro: "iso646jp", - jp: "iso646jp", - - cshproman8: "hproman8", - r8: "hproman8", - roman8: "hproman8", - xroman8: "hproman8", - ibm1051: "hproman8", - - mac: "macintosh", - csmacintosh: "macintosh" -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/big5-added.json b/mcp-server/node_modules/iconv-lite/encodings/tables/big5-added.json deleted file mode 100644 index 3c3d3c2..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/big5-added.json +++ /dev/null @@ -1,122 +0,0 @@ -[ -["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"], -["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"], -["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"], -["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"], -["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"], -["8940","𪎩𡅅"], -["8943","攊"], -["8946","丽滝鵎釟"], -["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"], -["89a1","琑糼緍楆竉刧"], -["89ab","醌碸酞肼"], -["89b0","贋胶𠧧"], -["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"], -["89c1","溚舾甙"], -["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"], -["8a40","𧶄唥"], -["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"], -["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"], -["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"], -["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"], -["8aac","䠋𠆩㿺塳𢶍"], -["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"], -["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"], -["8ac9","𪘁𠸉𢫏𢳉"], -["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"], -["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"], -["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"], -["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"], -["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"], -["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"], -["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"], -["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"], -["8ca1","𣏹椙橃𣱣泿"], -["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"], -["8cc9","顨杫䉶圽"], -["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"], -["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"], -["8d40","𠮟"], -["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"], -["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"], -["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"], -["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"], -["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"], -["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"], -["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"], -["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"], -["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"], -["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"], -["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"], -["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"], -["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"], -["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"], -["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"], -["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"], -["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"], -["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"], -["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"], -["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"], -["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"], -["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"], -["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"], -["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"], -["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"], -["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"], -["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"], -["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"], -["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"], -["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"], -["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"], -["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"], -["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"], -["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"], -["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"], -["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"], -["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"], -["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"], -["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"], -["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"], -["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"], -["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"], -["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"], -["9fae","酙隁酜"], -["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"], -["9fc1","𤤙盖鮝个𠳔莾衂"], -["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"], -["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"], -["9fe7","毺蠘罸"], -["9feb","嘠𪙊蹷齓"], -["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"], -["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"], -["a055","𡠻𦸅"], -["a058","詾𢔛"], -["a05b","惽癧髗鵄鍮鮏蟵"], -["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"], -["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"], -["a0a1","嵗𨯂迚𨸹"], -["a0a6","僙𡵆礆匲阸𠼻䁥"], -["a0ae","矾"], -["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"], -["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"], -["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"], -["a3c0","␀",31,"␡"], -["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23], -["c740","す",58,"ァアィイ"], -["c7a1","ゥ",81,"А",5,"ЁЖ",4], -["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"], -["c8a1","龰冈龱𧘇"], -["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"], -["c8f5","ʃɐɛɔɵœøŋʊɪ"], -["f9fe","■"], -["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"], -["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"], -["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"], -["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"], -["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"], -["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"], -["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"], -["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"], -["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"], -["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/cp936.json b/mcp-server/node_modules/iconv-lite/encodings/tables/cp936.json deleted file mode 100644 index 49ddb9a..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/cp936.json +++ /dev/null @@ -1,264 +0,0 @@ -[ -["0","\u0000",127,"€"], -["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"], -["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"], -["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11], -["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"], -["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"], -["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5], -["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"], -["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"], -["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"], -["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"], -["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"], -["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"], -["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4], -["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6], -["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"], -["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7], -["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"], -["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"], -["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"], -["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5], -["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"], -["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6], -["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"], -["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4], -["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4], -["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"], -["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"], -["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6], -["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"], -["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"], -["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"], -["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6], -["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"], -["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"], -["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"], -["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"], -["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"], -["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"], -["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8], -["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"], -["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"], -["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"], -["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"], -["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5], -["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"], -["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"], -["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"], -["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"], -["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5], -["9980","檧檨檪檭",114,"欥欦欨",6], -["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"], -["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"], -["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"], -["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"], -["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"], -["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5], -["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"], -["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"], -["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6], -["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"], -["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"], -["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4], -["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19], -["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"], -["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"], -["a2a1","ⅰ",9], -["a2b1","⒈",19,"⑴",19,"①",9], -["a2e5","㈠",9], -["a2f1","Ⅰ",11], -["a3a1","!"#¥%",88," ̄"], -["a4a1","ぁ",82], -["a5a1","ァ",85], -["a6a1","Α",16,"Σ",6], -["a6c1","α",16,"σ",6], -["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"], -["a6ee","︻︼︷︸︱"], -["a6f4","︳︴"], -["a7a1","А",5,"ЁЖ",25], -["a7d1","а",5,"ёж",25], -["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6], -["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"], -["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"], -["a8bd","ńň"], -["a8c0","ɡ"], -["a8c5","ㄅ",36], -["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"], -["a959","℡㈱"], -["a95c","‐"], -["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8], -["a980","﹢",4,"﹨﹩﹪﹫"], -["a996","〇"], -["a9a4","─",75], -["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8], -["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"], -["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4], -["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4], -["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11], -["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"], -["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12], -["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"], -["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"], -["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"], -["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"], -["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"], -["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"], -["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"], -["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"], -["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"], -["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4], -["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"], -["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"], -["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"], -["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9], -["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"], -["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"], -["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"], -["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"], -["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"], -["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16], -["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"], -["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"], -["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"], -["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"], -["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"], -["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"], -["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"], -["bb40","籃",9,"籎",36,"籵",5,"籾",9], -["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"], -["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5], -["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"], -["bd40","紷",54,"絯",7], -["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"], -["be40","継",12,"綧",6,"綯",42], -["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"], -["bf40","緻",62], -["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"], -["c040","繞",35,"纃",23,"纜纝纞"], -["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"], -["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"], -["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"], -["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"], -["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"], -["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"], -["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"], -["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"], -["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"], -["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"], -["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"], -["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"], -["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"], -["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"], -["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"], -["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"], -["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"], -["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"], -["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"], -["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10], -["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"], -["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"], -["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"], -["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"], -["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"], -["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"], -["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"], -["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"], -["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"], -["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9], -["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"], -["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"], -["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"], -["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5], -["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"], -["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"], -["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"], -["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6], -["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"], -["d440","訞",31,"訿",8,"詉",21], -["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"], -["d540","誁",7,"誋",7,"誔",46], -["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"], -["d640","諤",34,"謈",27], -["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"], -["d740","譆",31,"譧",4,"譭",25], -["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"], -["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"], -["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"], -["d940","貮",62], -["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"], -["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"], -["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"], -["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"], -["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"], -["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7], -["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"], -["dd40","軥",62], -["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"], -["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"], -["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"], -["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"], -["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"], -["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"], -["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"], -["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"], -["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"], -["e240","釦",62], -["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"], -["e340","鉆",45,"鉵",16], -["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"], -["e440","銨",5,"銯",24,"鋉",31], -["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"], -["e540","錊",51,"錿",10], -["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"], -["e640","鍬",34,"鎐",27], -["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"], -["e740","鏎",7,"鏗",54], -["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"], -["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"], -["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"], -["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42], -["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"], -["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"], -["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"], -["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"], -["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"], -["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7], -["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"], -["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46], -["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"], -["ee40","頏",62], -["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"], -["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4], -["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"], -["f040","餈",4,"餎餏餑",28,"餯",26], -["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"], -["f140","馌馎馚",10,"馦馧馩",47], -["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"], -["f240","駺",62], -["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"], -["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"], -["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"], -["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5], -["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"], -["f540","魼",62], -["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"], -["f640","鯜",62], -["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"], -["f740","鰼",62], -["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"], -["f840","鳣",62], -["f880","鴢",32], -["f940","鵃",62], -["f980","鶂",32], -["fa40","鶣",62], -["fa80","鷢",32], -["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"], -["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"], -["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6], -["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"], -["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38], -["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"], -["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/cp949.json b/mcp-server/node_modules/iconv-lite/encodings/tables/cp949.json deleted file mode 100644 index 2022a00..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/cp949.json +++ /dev/null @@ -1,273 +0,0 @@ -[ -["0","\u0000",127], -["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"], -["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"], -["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"], -["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5], -["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"], -["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18], -["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7], -["8361","긝",18,"긲긳긵긶긹긻긼"], -["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8], -["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8], -["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18], -["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"], -["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4], -["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"], -["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"], -["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"], -["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10], -["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"], -["8741","놞",9,"놩",15], -["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"], -["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4], -["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4], -["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"], -["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"], -["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"], -["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"], -["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15], -["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"], -["8a61","둧",4,"둭",18,"뒁뒂"], -["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"], -["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"], -["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8], -["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18], -["8c41","똀",15,"똒똓똕똖똗똙",4], -["8c61","똞",6,"똦",5,"똭",6,"똵",5], -["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16], -["8d41","뛃",16,"뛕",8], -["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"], -["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"], -["8e41","랟랡",6,"랪랮",5,"랶랷랹",8], -["8e61","럂",4,"럈럊",19], -["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7], -["8f41","뢅",7,"뢎",17], -["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4], -["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5], -["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"], -["9061","륾",5,"릆릈릋릌릏",15], -["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"], -["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5], -["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5], -["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6], -["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"], -["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4], -["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"], -["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"], -["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8], -["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"], -["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8], -["9461","봞",5,"봥",6,"봭",12], -["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24], -["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"], -["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"], -["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14], -["9641","뺸",23,"뻒뻓"], -["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8], -["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44], -["9741","뾃",16,"뾕",8], -["9761","뾞",17,"뾱",7], -["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"], -["9841","쁀",16,"쁒",5,"쁙쁚쁛"], -["9861","쁝쁞쁟쁡",6,"쁪",15], -["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"], -["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"], -["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"], -["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"], -["9a41","숤숥숦숧숪숬숮숰숳숵",16], -["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"], -["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"], -["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8], -["9b61","쌳",17,"썆",7], -["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"], -["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5], -["9c61","쏿",8,"쐉",6,"쐑",9], -["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12], -["9d41","쒪",13,"쒹쒺쒻쒽",8], -["9d61","쓆",25], -["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"], -["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"], -["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"], -["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"], -["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"], -["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"], -["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"], -["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"], -["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13], -["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"], -["a141","좥좦좧좩",18,"좾좿죀죁"], -["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"], -["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"], -["a241","줐줒",5,"줙",18], -["a261","줭",6,"줵",18], -["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"], -["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"], -["a361","즑",6,"즚즜즞",16], -["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"], -["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"], -["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12], -["a481","쨦쨧쨨쨪",28,"ㄱ",93], -["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"], -["a561","쩫",17,"쩾",5,"쪅쪆"], -["a581","쪇",16,"쪙",14,"ⅰ",9], -["a5b0","Ⅰ",9], -["a5c1","Α",16,"Σ",6], -["a5e1","α",16,"σ",6], -["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"], -["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6], -["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7], -["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7], -["a761","쬪",22,"쭂쭃쭄"], -["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"], -["a841","쭭",10,"쭺",14], -["a861","쮉",18,"쮝",6], -["a881","쮤",19,"쮹",11,"ÆÐªĦ"], -["a8a6","IJ"], -["a8a8","ĿŁØŒºÞŦŊ"], -["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"], -["a941","쯅",14,"쯕",10], -["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18], -["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"], -["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"], -["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"], -["aa81","챳챴챶",29,"ぁ",82], -["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"], -["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5], -["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85], -["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"], -["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4], -["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25], -["acd1","а",5,"ёж",25], -["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7], -["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"], -["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"], -["ae41","췆",5,"췍췎췏췑",16], -["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4], -["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"], -["af41","츬츭츮츯츲츴츶",19], -["af61","칊",13,"칚칛칝칞칢",5,"칪칬"], -["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"], -["b041","캚",5,"캢캦",5,"캮",12], -["b061","캻",5,"컂",19], -["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"], -["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"], -["b161","켥",6,"켮켲",5,"켹",11], -["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"], -["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"], -["b261","쾎",18,"쾢",5,"쾩"], -["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"], -["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"], -["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5], -["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"], -["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5], -["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"], -["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"], -["b541","킕",14,"킦킧킩킪킫킭",5], -["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4], -["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"], -["b641","턅",7,"턎",17], -["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"], -["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"], -["b741","텮",13,"텽",6,"톅톆톇톉톊"], -["b761","톋",20,"톢톣톥톦톧"], -["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"], -["b841","퇐",7,"퇙",17], -["b861","퇫",8,"퇵퇶퇷퇹",13], -["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"], -["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"], -["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"], -["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"], -["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"], -["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5], -["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"], -["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"], -["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"], -["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"], -["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"], -["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"], -["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"], -["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"], -["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13], -["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"], -["be41","퐸",7,"푁푂푃푅",14], -["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"], -["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"], -["bf41","풞",10,"풪",14], -["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"], -["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"], -["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5], -["c061","픞",25], -["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"], -["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"], -["c161","햌햍햎햏햑",19,"햦햧"], -["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"], -["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"], -["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"], -["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"], -["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4], -["c361","홢",4,"홨홪",5,"홲홳홵",11], -["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"], -["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"], -["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4], -["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"], -["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"], -["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4], -["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"], -["c641","힍힎힏힑",6,"힚힜힞",5], -["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"], -["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"], -["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"], -["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"], -["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"], -["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"], -["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"], -["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"], -["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"], -["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"], -["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"], -["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"], -["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"], -["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"], -["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"], -["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"], -["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"], -["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"], -["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"], -["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"], -["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"], -["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"], -["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"], -["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"], -["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"], -["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"], -["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"], -["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"], -["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"], -["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"], -["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"], -["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"], -["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"], -["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"], -["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"], -["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"], -["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"], -["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"], -["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"], -["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"], -["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"], -["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"], -["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"], -["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"], -["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"], -["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"], -["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"], -["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"], -["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"], -["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"], -["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"], -["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"], -["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"], -["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"], -["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/cp950.json b/mcp-server/node_modules/iconv-lite/encodings/tables/cp950.json deleted file mode 100644 index d8bc871..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/cp950.json +++ /dev/null @@ -1,177 +0,0 @@ -[ -["0","\u0000",127], -["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"], -["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"], -["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"], -["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21], -["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10], -["a3a1","ㄐ",25,"˙ˉˊˇˋ"], -["a3e1","€"], -["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"], -["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"], -["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"], -["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"], -["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"], -["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"], -["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"], -["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"], -["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"], -["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"], -["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"], -["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"], -["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"], -["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"], -["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"], -["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"], -["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"], -["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"], -["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"], -["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"], -["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"], -["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"], -["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"], -["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"], -["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"], -["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"], -["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"], -["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"], -["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"], -["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"], -["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"], -["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"], -["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"], -["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"], -["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"], -["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"], -["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"], -["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"], -["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"], -["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"], -["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"], -["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"], -["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"], -["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"], -["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"], -["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"], -["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"], -["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"], -["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"], -["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"], -["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"], -["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"], -["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"], -["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"], -["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"], -["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"], -["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"], -["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"], -["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"], -["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"], -["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"], -["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"], -["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"], -["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"], -["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"], -["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"], -["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"], -["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"], -["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"], -["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"], -["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"], -["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"], -["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"], -["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"], -["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"], -["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"], -["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"], -["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"], -["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"], -["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"], -["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"], -["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"], -["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"], -["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"], -["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"], -["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"], -["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"], -["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"], -["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"], -["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"], -["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"], -["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"], -["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"], -["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"], -["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"], -["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"], -["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"], -["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"], -["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"], -["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"], -["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"], -["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"], -["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"], -["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"], -["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"], -["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"], -["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"], -["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"], -["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"], -["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"], -["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"], -["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"], -["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"], -["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"], -["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"], -["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"], -["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"], -["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"], -["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"], -["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"], -["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"], -["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"], -["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"], -["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"], -["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"], -["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"], -["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"], -["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"], -["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"], -["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"], -["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"], -["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"], -["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"], -["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"], -["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"], -["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"], -["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"], -["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"], -["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"], -["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"], -["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"], -["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"], -["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"], -["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"], -["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"], -["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"], -["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"], -["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"], -["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"], -["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"], -["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"], -["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"], -["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"], -["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"], -["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"], -["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"], -["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"], -["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"], -["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"], -["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"], -["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"], -["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"], -["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"], -["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"], -["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"], -["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"], -["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/eucjp.json b/mcp-server/node_modules/iconv-lite/encodings/tables/eucjp.json deleted file mode 100644 index 4fa61ca..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/eucjp.json +++ /dev/null @@ -1,182 +0,0 @@ -[ -["0","\u0000",127], -["8ea1","。",62], -["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"], -["a2a1","◆□■△▲▽▼※〒→←↑↓〓"], -["a2ba","∈∋⊆⊇⊂⊃∪∩"], -["a2ca","∧∨¬⇒⇔∀∃"], -["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], -["a2f2","ʼn♯♭♪†‡¶"], -["a2fe","◯"], -["a3b0","0",9], -["a3c1","A",25], -["a3e1","a",25], -["a4a1","ぁ",82], -["a5a1","ァ",85], -["a6a1","Α",16,"Σ",6], -["a6c1","α",16,"σ",6], -["a7a1","А",5,"ЁЖ",25], -["a7d1","а",5,"ёж",25], -["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], -["ada1","①",19,"Ⅰ",9], -["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], -["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"], -["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], -["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"], -["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], -["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"], -["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], -["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"], -["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], -["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"], -["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], -["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"], -["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], -["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"], -["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], -["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"], -["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], -["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"], -["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], -["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"], -["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], -["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"], -["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], -["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"], -["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], -["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"], -["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], -["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"], -["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], -["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"], -["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], -["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"], -["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], -["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], -["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], -["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"], -["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], -["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"], -["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], -["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"], -["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], -["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"], -["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], -["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"], -["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], -["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"], -["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], -["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"], -["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], -["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"], -["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], -["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"], -["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], -["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"], -["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], -["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"], -["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], -["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"], -["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], -["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"], -["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], -["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"], -["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], -["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"], -["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], -["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"], -["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], -["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"], -["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], -["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"], -["f4a1","堯槇遙瑤凜熙"], -["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"], -["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], -["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"], -["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], -["fcf1","ⅰ",9,"¬¦'""], -["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"], -["8fa2c2","¡¦¿"], -["8fa2eb","ºª©®™¤№"], -["8fa6e1","ΆΈΉΊΪ"], -["8fa6e7","Ό"], -["8fa6e9","ΎΫ"], -["8fa6ec","Ώ"], -["8fa6f1","άέήίϊΐόςύϋΰώ"], -["8fa7c2","Ђ",10,"ЎЏ"], -["8fa7f2","ђ",10,"ўџ"], -["8fa9a1","ÆĐ"], -["8fa9a4","Ħ"], -["8fa9a6","IJ"], -["8fa9a8","ŁĿ"], -["8fa9ab","ŊØŒ"], -["8fa9af","ŦÞ"], -["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"], -["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"], -["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"], -["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"], -["8fabbd","ġĥíìïîǐ"], -["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"], -["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"], -["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"], -["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"], -["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"], -["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"], -["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"], -["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"], -["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"], -["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"], -["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"], -["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"], -["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"], -["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"], -["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"], -["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"], -["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"], -["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"], -["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"], -["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"], -["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"], -["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"], -["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"], -["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"], -["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"], -["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"], -["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"], -["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"], -["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"], -["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"], -["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"], -["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"], -["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"], -["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"], -["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"], -["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5], -["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"], -["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"], -["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"], -["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"], -["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"], -["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"], -["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"], -["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"], -["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"], -["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"], -["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"], -["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"], -["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"], -["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"], -["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"], -["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"], -["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"], -["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"], -["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"], -["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"], -["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"], -["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"], -["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4], -["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"], -["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"], -["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"], -["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json b/mcp-server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json deleted file mode 100644 index 85c6934..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +++ /dev/null @@ -1 +0,0 @@ -{"uChars":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],"gbChars":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]} \ No newline at end of file diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/gbk-added.json b/mcp-server/node_modules/iconv-lite/encodings/tables/gbk-added.json deleted file mode 100644 index b742e36..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/gbk-added.json +++ /dev/null @@ -1,56 +0,0 @@ -[ -["a140","",62], -["a180","",32], -["a240","",62], -["a280","",32], -["a2ab","",5], -["a2e3","€"], -["a2ef",""], -["a2fd",""], -["a340","",62], -["a380","",31," "], -["a440","",62], -["a480","",32], -["a4f4","",10], -["a540","",62], -["a580","",32], -["a5f7","",7], -["a640","",62], -["a680","",32], -["a6b9","",7], -["a6d9","",6], -["a6ec",""], -["a6f3",""], -["a6f6","",8], -["a740","",62], -["a780","",32], -["a7c2","",14], -["a7f2","",12], -["a896","",10], -["a8bc","ḿ"], -["a8bf","ǹ"], -["a8c1",""], -["a8ea","",20], -["a958",""], -["a95b",""], -["a95d",""], -["a989","〾⿰",11], -["a997","",12], -["a9f0","",14], -["aaa1","",93], -["aba1","",93], -["aca1","",93], -["ada1","",93], -["aea1","",93], -["afa1","",93], -["d7fa","",4], -["f8a1","",93], -["f9a1","",93], -["faa1","",93], -["fba1","",93], -["fca1","",93], -["fda1","",93], -["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"], -["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93], -["8135f437",""] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/tables/shiftjis.json b/mcp-server/node_modules/iconv-lite/encodings/tables/shiftjis.json deleted file mode 100644 index 5a3a43c..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/tables/shiftjis.json +++ /dev/null @@ -1,125 +0,0 @@ -[ -["0","\u0000",128], -["a1","。",62], -["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"], -["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"], -["81b8","∈∋⊆⊇⊂⊃∪∩"], -["81c8","∧∨¬⇒⇔∀∃"], -["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"], -["81f0","ʼn♯♭♪†‡¶"], -["81fc","◯"], -["824f","0",9], -["8260","A",25], -["8281","a",25], -["829f","ぁ",82], -["8340","ァ",62], -["8380","ム",22], -["839f","Α",16,"Σ",6], -["83bf","α",16,"σ",6], -["8440","А",5,"ЁЖ",25], -["8470","а",5,"ёж",7], -["8480","о",17], -["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"], -["8740","①",19,"Ⅰ",9], -["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"], -["877e","㍻"], -["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"], -["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"], -["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"], -["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"], -["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"], -["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"], -["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"], -["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"], -["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"], -["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"], -["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"], -["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"], -["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"], -["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"], -["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"], -["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"], -["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"], -["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"], -["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"], -["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"], -["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"], -["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"], -["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"], -["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"], -["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"], -["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"], -["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"], -["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"], -["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"], -["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"], -["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"], -["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"], -["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"], -["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"], -["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"], -["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"], -["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"], -["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"], -["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"], -["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"], -["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"], -["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"], -["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"], -["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"], -["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"], -["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"], -["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"], -["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"], -["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"], -["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"], -["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"], -["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"], -["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"], -["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"], -["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"], -["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"], -["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"], -["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"], -["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"], -["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"], -["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"], -["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"], -["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"], -["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"], -["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"], -["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"], -["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"], -["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"], -["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"], -["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"], -["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"], -["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"], -["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"], -["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"], -["eeef","ⅰ",9,"¬¦'""], -["f040","",62], -["f080","",124], -["f140","",62], -["f180","",124], -["f240","",62], -["f280","",124], -["f340","",62], -["f380","",124], -["f440","",62], -["f480","",124], -["f540","",62], -["f580","",124], -["f640","",62], -["f680","",124], -["f740","",62], -["f780","",124], -["f840","",62], -["f880","",124], -["f940",""], -["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"], -["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"], -["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"], -["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"], -["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"] -] diff --git a/mcp-server/node_modules/iconv-lite/encodings/utf16.js b/mcp-server/node_modules/iconv-lite/encodings/utf16.js deleted file mode 100644 index ae60d98..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/utf16.js +++ /dev/null @@ -1,187 +0,0 @@ -"use strict" -var Buffer = require("safer-buffer").Buffer - -// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js - -// == UTF16-BE codec. ========================================================== - -exports.utf16be = Utf16BECodec -function Utf16BECodec () { -} - -Utf16BECodec.prototype.encoder = Utf16BEEncoder -Utf16BECodec.prototype.decoder = Utf16BEDecoder -Utf16BECodec.prototype.bomAware = true - -// -- Encoding - -function Utf16BEEncoder () { -} - -Utf16BEEncoder.prototype.write = function (str) { - var buf = Buffer.from(str, "ucs2") - for (var i = 0; i < buf.length; i += 2) { - var tmp = buf[i]; buf[i] = buf[i + 1]; buf[i + 1] = tmp - } - return buf -} - -Utf16BEEncoder.prototype.end = function () { -} - -// -- Decoding - -function Utf16BEDecoder () { - this.overflowByte = -1 -} - -Utf16BEDecoder.prototype.write = function (buf) { - if (buf.length == 0) { return "" } - - var buf2 = Buffer.alloc(buf.length + 1) - var i = 0; var j = 0 - - if (this.overflowByte !== -1) { - buf2[0] = buf[0] - buf2[1] = this.overflowByte - i = 1; j = 2 - } - - for (; i < buf.length - 1; i += 2, j += 2) { - buf2[j] = buf[i + 1] - buf2[j + 1] = buf[i] - } - - this.overflowByte = (i == buf.length - 1) ? buf[buf.length - 1] : -1 - - return buf2.slice(0, j).toString("ucs2") -} - -Utf16BEDecoder.prototype.end = function () { - this.overflowByte = -1 -} - -// == UTF-16 codec ============================================================= -// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic. -// Defaults to UTF-16LE, as it's prevalent and default in Node. -// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le -// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'}); - -// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false). - -exports.utf16 = Utf16Codec -function Utf16Codec (codecOptions, iconv) { - this.iconv = iconv -} - -Utf16Codec.prototype.encoder = Utf16Encoder -Utf16Codec.prototype.decoder = Utf16Decoder - -// -- Encoding (pass-through) - -function Utf16Encoder (options, codec) { - options = options || {} - if (options.addBOM === undefined) { options.addBOM = true } - this.encoder = codec.iconv.getEncoder("utf-16le", options) -} - -Utf16Encoder.prototype.write = function (str) { - return this.encoder.write(str) -} - -Utf16Encoder.prototype.end = function () { - return this.encoder.end() -} - -// -- Decoding - -function Utf16Decoder (options, codec) { - this.decoder = null - this.initialBufs = [] - this.initialBufsLen = 0 - - this.options = options || {} - this.iconv = codec.iconv -} - -Utf16Decoder.prototype.write = function (buf) { - if (!this.decoder) { - // Codec is not chosen yet. Accumulate initial bytes. - this.initialBufs.push(buf) - this.initialBufsLen += buf.length - - if (this.initialBufsLen < 16) // We need more bytes to use space heuristic (see below) - { return "" } - - // We have enough bytes -> detect endianness. - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding) - this.decoder = this.iconv.getDecoder(encoding, this.options) - - var resStr = "" - for (var i = 0; i < this.initialBufs.length; i++) { resStr += this.decoder.write(this.initialBufs[i]) } - - this.initialBufs.length = this.initialBufsLen = 0 - return resStr - } - - return this.decoder.write(buf) -} - -Utf16Decoder.prototype.end = function () { - if (!this.decoder) { - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding) - this.decoder = this.iconv.getDecoder(encoding, this.options) - - var resStr = "" - for (var i = 0; i < this.initialBufs.length; i++) { resStr += this.decoder.write(this.initialBufs[i]) } - - var trail = this.decoder.end() - if (trail) { resStr += trail } - - this.initialBufs.length = this.initialBufsLen = 0 - return resStr - } - return this.decoder.end() -} - -function detectEncoding (bufs, defaultEncoding) { - var b = [] - var charsProcessed = 0 - // Number of ASCII chars when decoded as LE or BE. - var asciiCharsLE = 0 - var asciiCharsBE = 0 - - outerLoop: - for (var i = 0; i < bufs.length; i++) { - var buf = bufs[i] - for (var j = 0; j < buf.length; j++) { - b.push(buf[j]) - if (b.length === 2) { - if (charsProcessed === 0) { - // Check BOM first. - if (b[0] === 0xFF && b[1] === 0xFE) return "utf-16le" - if (b[0] === 0xFE && b[1] === 0xFF) return "utf-16be" - } - - if (b[0] === 0 && b[1] !== 0) asciiCharsBE++ - if (b[0] !== 0 && b[1] === 0) asciiCharsLE++ - - b.length = 0 - charsProcessed++ - - if (charsProcessed >= 100) { - break outerLoop - } - } - } - } - - // Make decisions. - // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon. - // So, we count ASCII as if it was LE or BE, and decide from that. - if (asciiCharsBE > asciiCharsLE) return "utf-16be" - if (asciiCharsBE < asciiCharsLE) return "utf-16le" - - // Couldn't decide (likely all zeros or not enough data). - return defaultEncoding || "utf-16le" -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/utf32.js b/mcp-server/node_modules/iconv-lite/encodings/utf32.js deleted file mode 100644 index 7231789..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/utf32.js +++ /dev/null @@ -1,307 +0,0 @@ -"use strict" - -var Buffer = require("safer-buffer").Buffer - -// == UTF32-LE/BE codec. ========================================================== - -exports._utf32 = Utf32Codec - -function Utf32Codec (codecOptions, iconv) { - this.iconv = iconv - this.bomAware = true - this.isLE = codecOptions.isLE -} - -exports.utf32le = { type: "_utf32", isLE: true } -exports.utf32be = { type: "_utf32", isLE: false } - -// Aliases -exports.ucs4le = "utf32le" -exports.ucs4be = "utf32be" - -Utf32Codec.prototype.encoder = Utf32Encoder -Utf32Codec.prototype.decoder = Utf32Decoder - -// -- Encoding - -function Utf32Encoder (options, codec) { - this.isLE = codec.isLE - this.highSurrogate = 0 -} - -Utf32Encoder.prototype.write = function (str) { - var src = Buffer.from(str, "ucs2") - var dst = Buffer.alloc(src.length * 2) - var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE - var offset = 0 - - for (var i = 0; i < src.length; i += 2) { - var code = src.readUInt16LE(i) - var isHighSurrogate = (code >= 0xD800 && code < 0xDC00) - var isLowSurrogate = (code >= 0xDC00 && code < 0xE000) - - if (this.highSurrogate) { - if (isHighSurrogate || !isLowSurrogate) { - // There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low - // surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character - // (technically wrong, but expected by some applications, like Windows file names). - write32.call(dst, this.highSurrogate, offset) - offset += 4 - } else { - // Create 32-bit value from high and low surrogates; - var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000 - - write32.call(dst, codepoint, offset) - offset += 4 - this.highSurrogate = 0 - - continue - } - } - - if (isHighSurrogate) { this.highSurrogate = code } else { - // Even if the current character is a low surrogate, with no previous high surrogate, we'll - // encode it as a semi-invalid stand-alone character for the same reasons expressed above for - // unpaired high surrogates. - write32.call(dst, code, offset) - offset += 4 - this.highSurrogate = 0 - } - } - - if (offset < dst.length) { dst = dst.slice(0, offset) } - - return dst -} - -Utf32Encoder.prototype.end = function () { - // Treat any leftover high surrogate as a semi-valid independent character. - if (!this.highSurrogate) { return } - - var buf = Buffer.alloc(4) - - if (this.isLE) { buf.writeUInt32LE(this.highSurrogate, 0) } else { buf.writeUInt32BE(this.highSurrogate, 0) } - - this.highSurrogate = 0 - - return buf -} - -// -- Decoding - -function Utf32Decoder (options, codec) { - this.isLE = codec.isLE - this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0) - this.overflow = [] -} - -Utf32Decoder.prototype.write = function (src) { - if (src.length === 0) { return "" } - - var i = 0 - var codepoint = 0 - var dst = Buffer.alloc(src.length + 4) - var offset = 0 - var isLE = this.isLE - var overflow = this.overflow - var badChar = this.badChar - - if (overflow.length > 0) { - for (; i < src.length && overflow.length < 4; i++) { overflow.push(src[i]) } - - if (overflow.length === 4) { - // NOTE: codepoint is a signed int32 and can be negative. - // NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer). - if (isLE) { - codepoint = overflow[i] | (overflow[i + 1] << 8) | (overflow[i + 2] << 16) | (overflow[i + 3] << 24) - } else { - codepoint = overflow[i + 3] | (overflow[i + 2] << 8) | (overflow[i + 1] << 16) | (overflow[i] << 24) - } - overflow.length = 0 - - offset = _writeCodepoint(dst, offset, codepoint, badChar) - } - } - - // Main loop. Should be as optimized as possible. - for (; i < src.length - 3; i += 4) { - // NOTE: codepoint is a signed int32 and can be negative. - if (isLE) { - codepoint = src[i] | (src[i + 1] << 8) | (src[i + 2] << 16) | (src[i + 3] << 24) - } else { - codepoint = src[i + 3] | (src[i + 2] << 8) | (src[i + 1] << 16) | (src[i] << 24) - } - offset = _writeCodepoint(dst, offset, codepoint, badChar) - } - - // Keep overflowing bytes. - for (; i < src.length; i++) { - overflow.push(src[i]) - } - - return dst.slice(0, offset).toString("ucs2") -} - -function _writeCodepoint (dst, offset, codepoint, badChar) { - // NOTE: codepoint is signed int32 and can be negative. We keep it that way to help V8 with optimizations. - if (codepoint < 0 || codepoint > 0x10FFFF) { - // Not a valid Unicode codepoint - codepoint = badChar - } - - // Ephemeral Planes: Write high surrogate. - if (codepoint >= 0x10000) { - codepoint -= 0x10000 - - var high = 0xD800 | (codepoint >> 10) - dst[offset++] = high & 0xff - dst[offset++] = high >> 8 - - // Low surrogate is written below. - var codepoint = 0xDC00 | (codepoint & 0x3FF) - } - - // Write BMP char or low surrogate. - dst[offset++] = codepoint & 0xff - dst[offset++] = codepoint >> 8 - - return offset -}; - -Utf32Decoder.prototype.end = function () { - this.overflow.length = 0 -} - -// == UTF-32 Auto codec ============================================================= -// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic. -// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32 -// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'}); - -// Encoder prepends BOM (which can be overridden with (addBOM: false}). - -exports.utf32 = Utf32AutoCodec -exports.ucs4 = "utf32" - -function Utf32AutoCodec (options, iconv) { - this.iconv = iconv -} - -Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder -Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder - -// -- Encoding - -function Utf32AutoEncoder (options, codec) { - options = options || {} - - if (options.addBOM === undefined) { - options.addBOM = true - } - - this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options) -} - -Utf32AutoEncoder.prototype.write = function (str) { - return this.encoder.write(str) -} - -Utf32AutoEncoder.prototype.end = function () { - return this.encoder.end() -} - -// -- Decoding - -function Utf32AutoDecoder (options, codec) { - this.decoder = null - this.initialBufs = [] - this.initialBufsLen = 0 - this.options = options || {} - this.iconv = codec.iconv -} - -Utf32AutoDecoder.prototype.write = function (buf) { - if (!this.decoder) { - // Codec is not chosen yet. Accumulate initial bytes. - this.initialBufs.push(buf) - this.initialBufsLen += buf.length - - if (this.initialBufsLen < 32) // We need more bytes to use space heuristic (see below) - { return "" } - - // We have enough bytes -> detect endianness. - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding) - this.decoder = this.iconv.getDecoder(encoding, this.options) - - var resStr = "" - for (var i = 0; i < this.initialBufs.length; i++) { resStr += this.decoder.write(this.initialBufs[i]) } - - this.initialBufs.length = this.initialBufsLen = 0 - return resStr - } - - return this.decoder.write(buf) -} - -Utf32AutoDecoder.prototype.end = function () { - if (!this.decoder) { - var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding) - this.decoder = this.iconv.getDecoder(encoding, this.options) - - var resStr = "" - for (var i = 0; i < this.initialBufs.length; i++) { resStr += this.decoder.write(this.initialBufs[i]) } - - var trail = this.decoder.end() - if (trail) { resStr += trail } - - this.initialBufs.length = this.initialBufsLen = 0 - return resStr - } - - return this.decoder.end() -} - -function detectEncoding (bufs, defaultEncoding) { - var b = [] - var charsProcessed = 0 - var invalidLE = 0; var invalidBE = 0 // Number of invalid chars when decoded as LE or BE. - var bmpCharsLE = 0; var bmpCharsBE = 0 // Number of BMP chars when decoded as LE or BE. - - outerLoop: - for (var i = 0; i < bufs.length; i++) { - var buf = bufs[i] - for (var j = 0; j < buf.length; j++) { - b.push(buf[j]) - if (b.length === 4) { - if (charsProcessed === 0) { - // Check BOM first. - if (b[0] === 0xFF && b[1] === 0xFE && b[2] === 0 && b[3] === 0) { - return "utf-32le" - } - if (b[0] === 0 && b[1] === 0 && b[2] === 0xFE && b[3] === 0xFF) { - return "utf-32be" - } - } - - if (b[0] !== 0 || b[1] > 0x10) invalidBE++ - if (b[3] !== 0 || b[2] > 0x10) invalidLE++ - - if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++ - if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++ - - b.length = 0 - charsProcessed++ - - if (charsProcessed >= 100) { - break outerLoop - } - } - } - } - - // Make decisions. - if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return "utf-32be" - if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return "utf-32le" - - // Couldn't decide (likely all zeros or not enough data). - return defaultEncoding || "utf-32le" -} diff --git a/mcp-server/node_modules/iconv-lite/encodings/utf7.js b/mcp-server/node_modules/iconv-lite/encodings/utf7.js deleted file mode 100644 index fe72a9d..0000000 --- a/mcp-server/node_modules/iconv-lite/encodings/utf7.js +++ /dev/null @@ -1,283 +0,0 @@ -"use strict" -var Buffer = require("safer-buffer").Buffer - -// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152 -// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3 - -exports.utf7 = Utf7Codec -exports.unicode11utf7 = "utf7" // Alias UNICODE-1-1-UTF-7 -function Utf7Codec (codecOptions, iconv) { - this.iconv = iconv -}; - -Utf7Codec.prototype.encoder = Utf7Encoder -Utf7Codec.prototype.decoder = Utf7Decoder -Utf7Codec.prototype.bomAware = true - -// -- Encoding - -// Why scape ()?./? -// eslint-disable-next-line no-useless-escape -var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g - -function Utf7Encoder (options, codec) { - this.iconv = codec.iconv -} - -Utf7Encoder.prototype.write = function (str) { - // Naive implementation. - // Non-direct chars are encoded as "+-"; single "+" char is encoded as "+-". - return Buffer.from(str.replace(nonDirectChars, function (chunk) { - return "+" + (chunk === "+" - ? "" - : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) + - "-" - }.bind(this))) -} - -Utf7Encoder.prototype.end = function () { -} - -// -- Decoding - -function Utf7Decoder (options, codec) { - this.iconv = codec.iconv - this.inBase64 = false - this.base64Accum = "" -} - -// Why scape /? -// eslint-disable-next-line no-useless-escape -var base64Regex = /[A-Za-z0-9\/+]/ -var base64Chars = [] -for (var i = 0; i < 256; i++) { base64Chars[i] = base64Regex.test(String.fromCharCode(i)) } - -var plusChar = "+".charCodeAt(0) -var minusChar = "-".charCodeAt(0) -var andChar = "&".charCodeAt(0) - -Utf7Decoder.prototype.write = function (buf) { - var res = ""; var lastI = 0 - var inBase64 = this.inBase64 - var base64Accum = this.base64Accum - - // The decoder is more involved as we must handle chunks in stream. - - for (var i = 0; i < buf.length; i++) { - if (!inBase64) { // We're in direct mode. - // Write direct chars until '+' - if (buf[i] == plusChar) { - res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars. - lastI = i + 1 - inBase64 = true - } - } else { // We decode base64. - if (!base64Chars[buf[i]]) { // Base64 ended. - if (i == lastI && buf[i] == minusChar) { // "+-" -> "+" - res += "+" - } else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii") - res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be") - } - - if (buf[i] != minusChar) // Minus is absorbed after base64. - { i-- } - - lastI = i + 1 - inBase64 = false - base64Accum = "" - } - } - } - - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars. - } else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii") - - var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars. - base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future. - b64str = b64str.slice(0, canBeDecoded) - - res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be") - } - - this.inBase64 = inBase64 - this.base64Accum = base64Accum - - return res -} - -Utf7Decoder.prototype.end = function () { - var res = "" - if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") } - - this.inBase64 = false - this.base64Accum = "" - return res -} - -// UTF-7-IMAP codec. -// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3) -// Differences: -// * Base64 part is started by "&" instead of "+" -// * Direct characters are 0x20-0x7E, except "&" (0x26) -// * In Base64, "," is used instead of "/" -// * Base64 must not be used to represent direct characters. -// * No implicit shift back from Base64 (should always end with '-') -// * String must end in non-shifted position. -// * "-&" while in base64 is not allowed. - -exports.utf7imap = Utf7IMAPCodec -function Utf7IMAPCodec (codecOptions, iconv) { - this.iconv = iconv -}; - -Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder -Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder -Utf7IMAPCodec.prototype.bomAware = true - -// -- Encoding - -function Utf7IMAPEncoder (options, codec) { - this.iconv = codec.iconv - this.inBase64 = false - this.base64Accum = Buffer.alloc(6) - this.base64AccumIdx = 0 -} - -Utf7IMAPEncoder.prototype.write = function (str) { - var inBase64 = this.inBase64 - var base64Accum = this.base64Accum - var base64AccumIdx = this.base64AccumIdx - var buf = Buffer.alloc(str.length * 5 + 10); var bufIdx = 0 - - for (var i = 0; i < str.length; i++) { - var uChar = str.charCodeAt(i) - if (uChar >= 0x20 && uChar <= 0x7E) { // Direct character or '&'. - if (inBase64) { - if (base64AccumIdx > 0) { - bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx) - base64AccumIdx = 0 - } - - buf[bufIdx++] = minusChar // Write '-', then go to direct mode. - inBase64 = false - } - - if (!inBase64) { - buf[bufIdx++] = uChar // Write direct character - - if (uChar === andChar) // Ampersand -> '&-' - { buf[bufIdx++] = minusChar } - } - } else { // Non-direct character - if (!inBase64) { - buf[bufIdx++] = andChar // Write '&', then go to base64 mode. - inBase64 = true - } - if (inBase64) { - base64Accum[base64AccumIdx++] = uChar >> 8 - base64Accum[base64AccumIdx++] = uChar & 0xFF - - if (base64AccumIdx == base64Accum.length) { - bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx) - base64AccumIdx = 0 - } - } - } - } - - this.inBase64 = inBase64 - this.base64AccumIdx = base64AccumIdx - - return buf.slice(0, bufIdx) -} - -Utf7IMAPEncoder.prototype.end = function () { - var buf = Buffer.alloc(10); var bufIdx = 0 - if (this.inBase64) { - if (this.base64AccumIdx > 0) { - bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx) - this.base64AccumIdx = 0 - } - - buf[bufIdx++] = minusChar // Write '-', then go to direct mode. - this.inBase64 = false - } - - return buf.slice(0, bufIdx) -} - -// -- Decoding - -function Utf7IMAPDecoder (options, codec) { - this.iconv = codec.iconv - this.inBase64 = false - this.base64Accum = "" -} - -var base64IMAPChars = base64Chars.slice() -base64IMAPChars[",".charCodeAt(0)] = true - -Utf7IMAPDecoder.prototype.write = function (buf) { - var res = ""; var lastI = 0 - var inBase64 = this.inBase64 - var base64Accum = this.base64Accum - - // The decoder is more involved as we must handle chunks in stream. - // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end). - - for (var i = 0; i < buf.length; i++) { - if (!inBase64) { // We're in direct mode. - // Write direct chars until '&' - if (buf[i] == andChar) { - res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars. - lastI = i + 1 - inBase64 = true - } - } else { // We decode base64. - if (!base64IMAPChars[buf[i]]) { // Base64 ended. - if (i == lastI && buf[i] == minusChar) { // "&-" -> "&" - res += "&" - } else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii").replace(/,/g, "/") - res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be") - } - - if (buf[i] != minusChar) // Minus may be absorbed after base64. - { i-- } - - lastI = i + 1 - inBase64 = false - base64Accum = "" - } - } - } - - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars. - } else { - var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, "/") - - var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars. - base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future. - b64str = b64str.slice(0, canBeDecoded) - - res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be") - } - - this.inBase64 = inBase64 - this.base64Accum = base64Accum - - return res -} - -Utf7IMAPDecoder.prototype.end = function () { - var res = "" - if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") } - - this.inBase64 = false - this.base64Accum = "" - return res -} diff --git a/mcp-server/node_modules/iconv-lite/lib/bom-handling.js b/mcp-server/node_modules/iconv-lite/lib/bom-handling.js deleted file mode 100644 index a86a6b5..0000000 --- a/mcp-server/node_modules/iconv-lite/lib/bom-handling.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict" - -var BOMChar = "\uFEFF" - -exports.PrependBOM = PrependBOMWrapper -function PrependBOMWrapper (encoder, options) { - this.encoder = encoder - this.addBOM = true -} - -PrependBOMWrapper.prototype.write = function (str) { - if (this.addBOM) { - str = BOMChar + str - this.addBOM = false - } - - return this.encoder.write(str) -} - -PrependBOMWrapper.prototype.end = function () { - return this.encoder.end() -} - -// ------------------------------------------------------------------------------ - -exports.StripBOM = StripBOMWrapper -function StripBOMWrapper (decoder, options) { - this.decoder = decoder - this.pass = false - this.options = options || {} -} - -StripBOMWrapper.prototype.write = function (buf) { - var res = this.decoder.write(buf) - if (this.pass || !res) { return res } - - if (res[0] === BOMChar) { - res = res.slice(1) - if (typeof this.options.stripBOM === "function") { this.options.stripBOM() } - } - - this.pass = true - return res -} - -StripBOMWrapper.prototype.end = function () { - return this.decoder.end() -} diff --git a/mcp-server/node_modules/iconv-lite/lib/helpers/merge-exports.js b/mcp-server/node_modules/iconv-lite/lib/helpers/merge-exports.js deleted file mode 100644 index e79e041..0000000 --- a/mcp-server/node_modules/iconv-lite/lib/helpers/merge-exports.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict" - -var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn - -function mergeModules (target, module) { - for (var key in module) { - if (hasOwn(module, key)) { - target[key] = module[key] - } - } -} - -module.exports = mergeModules diff --git a/mcp-server/node_modules/iconv-lite/lib/index.d.ts b/mcp-server/node_modules/iconv-lite/lib/index.d.ts deleted file mode 100644 index 8721797..0000000 --- a/mcp-server/node_modules/iconv-lite/lib/index.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* --------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - * REQUIREMENT: This definition is dependent on the @types/node definition. - * Install with `npm install @types/node --save-dev` - *-------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- - * This file provides detailed typings for the public API of iconv-lite - *-------------------------------------------------------------------------------------------- */ - -import type { Encoding } from "../types/encodings" - -// --- Options --- - -declare namespace iconv { - export interface DecodeOptions { - /** Strip the byte order mark (BOM) from the input, when decoding. @default true */ - stripBOM?: boolean; - /** Override the default endianness for `UTF-16` and `UTF-32` decodings. */ - defaultEncoding?: "utf16be" | "utf32be"; - } - - export interface EncodeOptions { - /** Add a byte order mark (BOM) to the output, when encoding. @default false */ - addBOM?: boolean; - /** Override the default endianness for `UTF-32` encoding. */ - defaultEncoding?: "utf32be"; - } - - // --- Return values --- - - export interface EncoderStream { - write(str: string): Buffer; - end(): Buffer | undefined; - } - - export interface DecoderStream { - write(buf: Buffer): string; - end(): string | undefined; - } - - export interface Codec { - encoder: new (options?: EncodeOptions, codec?: any) => EncoderStream; - decoder: new (options?: DecodeOptions, codec?: any) => DecoderStream; - [key: string]: any; - } - - const iconv: { - // --- Basic API --- - - /** Encodes a `string` into a `Buffer`, using the provided `encoding`. */ - encode(content: string, encoding: Encoding, options?: EncodeOptions): Buffer; - - /** Decodes a `Buffer` into a `string`, using the provided `encoding`. */ - decode(buffer: Buffer | Uint8Array, encoding: Encoding, options?: DecodeOptions): string; - - /** Checks if a given encoding is supported by `iconv-lite`. */ - encodingExists(encoding: string): encoding is Encoding; - - // --- Legacy aliases --- - - /** Legacy alias for {@link iconv.encode}. */ - toEncoding: typeof iconv.encode; - - /** Legacy alias for {@link iconv.decode}. */ - fromEncoding: typeof iconv.decode; - - // --- Stream API --- - - /** Creates a stream that decodes binary data from a given `encoding` into strings. */ - decodeStream(encoding: Encoding, options?: DecodeOptions): NodeJS.ReadWriteStream; - - /** Creates a stream that encodes strings into binary data in a given `encoding`. */ - encodeStream(encoding: Encoding, options?: EncodeOptions): NodeJS.ReadWriteStream; - - /** - * Explicitly enable Streaming API in browser environments by passing in: - * ```js - * require('stream') - * ``` - * @example iconv.enableStreamingAPI(require('stream')); - */ - enableStreamingAPI(stream_module: any): void; - - // --- Low-level stream APIs --- - - /** Creates and returns a low-level encoder stream. */ - getEncoder(encoding: Encoding, options?: EncodeOptions): EncoderStream; - - /** Creates and returns a low-level decoder stream. */ - getDecoder(encoding: Encoding, options?: DecodeOptions): DecoderStream; - - /** - * Returns a codec object for the given `encoding`. - * @throws If the `encoding` is not recognized. - */ - getCodec(encoding: Encoding): Codec; - - /** Strips all non-alphanumeric characters and appended year from `encoding`. */ - _canonicalizeEncoding(encoding: Encoding): string; - - // --- Properties --- - - /** A cache of all loaded encoding definitions. */ - encodings: Record< - Encoding, - | string - | { - type: string; - [key: string]: any; - } - > | null; - - /** A cache of initialized codec objects. */ - _codecDataCache: Record; - - /** The character used for untranslatable `Unicode` characters. @default "�" */ - defaultCharUnicode: string; - - /** The character used for untranslatable `single-byte` characters. @default "?" */ - defaultCharSingleByte: string; - - /** @readonly Whether or not, Streaming API is enabled. */ - readonly supportsStreams: boolean; - } - - export type { iconv as Iconv, Encoding } - export { iconv as default } -} -export = iconv diff --git a/mcp-server/node_modules/iconv-lite/lib/index.js b/mcp-server/node_modules/iconv-lite/lib/index.js deleted file mode 100644 index be3e9f9..0000000 --- a/mcp-server/node_modules/iconv-lite/lib/index.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict" - -var Buffer = require("safer-buffer").Buffer - -var bomHandling = require("./bom-handling") -var mergeModules = require("./helpers/merge-exports") -var iconv = module.exports - -// All codecs and aliases are kept here, keyed by encoding name/alias. -// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`. -// Cannot initialize with { __proto__: null } because Boolean({ __proto__: null }) === true -iconv.encodings = null - -// Characters emitted in case of error. -iconv.defaultCharUnicode = "�" -iconv.defaultCharSingleByte = "?" - -// Public API. -iconv.encode = function encode (str, encoding, options) { - str = "" + (str || "") // Ensure string. - - var encoder = iconv.getEncoder(encoding, options) - - var res = encoder.write(str) - var trail = encoder.end() - - return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res -} - -iconv.decode = function decode (buf, encoding, options) { - if (typeof buf === "string") { - if (!iconv.skipDecodeWarning) { - console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding") - iconv.skipDecodeWarning = true - } - - buf = Buffer.from("" + (buf || ""), "binary") // Ensure buffer. - } - - var decoder = iconv.getDecoder(encoding, options) - - var res = decoder.write(buf) - var trail = decoder.end() - - return trail ? (res + trail) : res -} - -iconv.encodingExists = function encodingExists (enc) { - try { - iconv.getCodec(enc) - return true - } catch (e) { - return false - } -} - -// Legacy aliases to convert functions -iconv.toEncoding = iconv.encode -iconv.fromEncoding = iconv.decode - -// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache. -iconv._codecDataCache = { __proto__: null } - -iconv.getCodec = function getCodec (encoding) { - if (!iconv.encodings) { - var raw = require("../encodings") - // TODO: In future versions when old nodejs support is removed can use object.assign - iconv.encodings = { __proto__: null } // Initialize as empty object. - mergeModules(iconv.encodings, raw) - } - - // Canonicalize encoding name: strip all non-alphanumeric chars and appended year. - var enc = iconv._canonicalizeEncoding(encoding) - - // Traverse iconv.encodings to find actual codec. - var codecOptions = {} - while (true) { - var codec = iconv._codecDataCache[enc] - - if (codec) { return codec } - - var codecDef = iconv.encodings[enc] - - switch (typeof codecDef) { - case "string": // Direct alias to other encoding. - enc = codecDef - break - - case "object": // Alias with options. Can be layered. - for (var key in codecDef) { codecOptions[key] = codecDef[key] } - - if (!codecOptions.encodingName) { codecOptions.encodingName = enc } - - enc = codecDef.type - break - - case "function": // Codec itself. - if (!codecOptions.encodingName) { codecOptions.encodingName = enc } - - // The codec function must load all tables and return object with .encoder and .decoder methods. - // It'll be called only once (for each different options object). - // - codec = new codecDef(codecOptions, iconv) - - iconv._codecDataCache[codecOptions.encodingName] = codec // Save it to be reused later. - return codec - - default: - throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')") - } - } -} - -iconv._canonicalizeEncoding = function (encoding) { - // Canonicalize encoding name: strip all non-alphanumeric chars and appended year. - return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "") -} - -iconv.getEncoder = function getEncoder (encoding, options) { - var codec = iconv.getCodec(encoding) - var encoder = new codec.encoder(options, codec) - - if (codec.bomAware && options && options.addBOM) { encoder = new bomHandling.PrependBOM(encoder, options) } - - return encoder -} - -iconv.getDecoder = function getDecoder (encoding, options) { - var codec = iconv.getCodec(encoding) - var decoder = new codec.decoder(options, codec) - - if (codec.bomAware && !(options && options.stripBOM === false)) { decoder = new bomHandling.StripBOM(decoder, options) } - - return decoder -} - -// Streaming API -// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add -// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default. -// If you would like to enable it explicitly, please add the following code to your app: -// > iconv.enableStreamingAPI(require('stream')); -iconv.enableStreamingAPI = function enableStreamingAPI (streamModule) { - if (iconv.supportsStreams) { return } - - // Dependency-inject stream module to create IconvLite stream classes. - var streams = require("./streams")(streamModule) - - // Not public API yet, but expose the stream classes. - iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream - iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream - - // Streaming API. - iconv.encodeStream = function encodeStream (encoding, options) { - return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options) - } - - iconv.decodeStream = function decodeStream (encoding, options) { - return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options) - } - - iconv.supportsStreams = true -} - -// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments). -var streamModule -try { - streamModule = require("stream") -} catch (e) {} - -if (streamModule && streamModule.Transform) { - iconv.enableStreamingAPI(streamModule) -} else { - // In rare cases where 'stream' module is not available by default, throw a helpful exception. - iconv.encodeStream = iconv.decodeStream = function () { - throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.") - } -} - -// Some environments, such as browsers, may not load JavaScript files as UTF-8 -// eslint-disable-next-line no-constant-condition -if ("Ā" !== "\u0100") { - console.error("iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.") -} diff --git a/mcp-server/node_modules/iconv-lite/lib/streams.js b/mcp-server/node_modules/iconv-lite/lib/streams.js deleted file mode 100644 index ebfed8e..0000000 --- a/mcp-server/node_modules/iconv-lite/lib/streams.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict" - -var Buffer = require("safer-buffer").Buffer - -// NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments), -// we opt to dependency-inject it instead of creating a hard dependency. -module.exports = function (streamModule) { - var Transform = streamModule.Transform - - // == Encoder stream ======================================================= - - function IconvLiteEncoderStream (conv, options) { - this.conv = conv - options = options || {} - options.decodeStrings = false // We accept only strings, so we don't need to decode them. - Transform.call(this, options) - } - - IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteEncoderStream } - }) - - IconvLiteEncoderStream.prototype._transform = function (chunk, encoding, done) { - if (typeof chunk !== "string") { - return done(new Error("Iconv encoding stream needs strings as its input.")) - } - - try { - var res = this.conv.write(chunk) - if (res && res.length) this.push(res) - done() - } catch (e) { - done(e) - } - } - - IconvLiteEncoderStream.prototype._flush = function (done) { - try { - var res = this.conv.end() - if (res && res.length) this.push(res) - done() - } catch (e) { - done(e) - } - } - - IconvLiteEncoderStream.prototype.collect = function (cb) { - var chunks = [] - this.on("error", cb) - this.on("data", function (chunk) { chunks.push(chunk) }) - this.on("end", function () { - cb(null, Buffer.concat(chunks)) - }) - return this - } - - // == Decoder stream ======================================================= - - function IconvLiteDecoderStream (conv, options) { - this.conv = conv - options = options || {} - options.encoding = this.encoding = "utf8" // We output strings. - Transform.call(this, options) - } - - IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteDecoderStream } - }) - - IconvLiteDecoderStream.prototype._transform = function (chunk, encoding, done) { - if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array)) { return done(new Error("Iconv decoding stream needs buffers as its input.")) } - try { - var res = this.conv.write(chunk) - if (res && res.length) this.push(res, this.encoding) - done() - } catch (e) { - done(e) - } - } - - IconvLiteDecoderStream.prototype._flush = function (done) { - try { - var res = this.conv.end() - if (res && res.length) this.push(res, this.encoding) - done() - } catch (e) { - done(e) - } - } - - IconvLiteDecoderStream.prototype.collect = function (cb) { - var res = "" - this.on("error", cb) - this.on("data", function (chunk) { res += chunk }) - this.on("end", function () { - cb(null, res) - }) - return this - } - - return { - IconvLiteEncoderStream: IconvLiteEncoderStream, - IconvLiteDecoderStream: IconvLiteDecoderStream - } -} diff --git a/mcp-server/node_modules/iconv-lite/package.json b/mcp-server/node_modules/iconv-lite/package.json deleted file mode 100644 index 87afc34..0000000 --- a/mcp-server/node_modules/iconv-lite/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "iconv-lite", - "description": "Convert character encodings in pure javascript.", - "version": "0.7.1", - "license": "MIT", - "keywords": [ - "iconv", - "convert", - "charset", - "icu" - ], - "author": "Alexander Shtuchkin ", - "main": "./lib/index.js", - "typings": "./lib/index.d.ts", - "homepage": "https://github.com/pillarjs/iconv-lite", - "bugs": "https://github.com/pillarjs/iconv-lite/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - }, - "repository": { - "type": "git", - "url": "https://github.com/pillarjs/iconv-lite.git" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "lint": "eslint", - "lint:fix": "eslint --fix", - "test": "mocha --reporter spec --check-leaks --grep .", - "test:ci": "nyc --exclude test --reporter=lcovonly --reporter=text npm test", - "test:cov": "nyc --exclude test --reporter=html --reporter=text npm test", - "test:performance": "node --allow-natives-syntax performance/index.js", - "test:tap": "mocha --reporter tap --check-leaks --grep .", - "test:typescript": "tsc && attw --pack", - "test:webpack": "npm pack && mv iconv-lite-*.tgz test/webpack/iconv-lite.tgz && cd test/webpack && npm install && npm run test && rm iconv-lite.tgz", - "typegen": "node generation/gen-typings.js" - }, - "browser": { - "stream": false - }, - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.4", - "@stylistic/eslint-plugin": "^5.1.0", - "@stylistic/eslint-plugin-js": "^4.1.0", - "@types/node": "^24.0.12", - "async": "^3.2.0", - "bench-node": "^0.10.0", - "eslint": "^9.0.0", - "errto": "^0.2.1", - "expect-type": "^1.2.0", - "iconv": "^2.3.5", - "mocha": "^6.2.2", - "neostandard": "^0.12.0", - "nyc": "^14.1.1", - "request": "^2.88.2", - "semver": "^6.3.0", - "typescript": "~5.9.2", - "unorm": "^1.6.0" - }, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } -} diff --git a/mcp-server/node_modules/iconv-lite/types/encodings.d.ts b/mcp-server/node_modules/iconv-lite/types/encodings.d.ts deleted file mode 100644 index bedbe33..0000000 --- a/mcp-server/node_modules/iconv-lite/types/encodings.d.ts +++ /dev/null @@ -1,423 +0,0 @@ -/* - * --------------------------------------------------------------------------------------------- - * DO NOT EDIT THIS FILE MANUALLY. - * THIS FILE IS AUTOMATICALLY GENERATED. - * TO UPDATE, RUN `npm run typegen` AND COMMIT THE CHANGES. - * --------------------------------------------------------------------------------------------- - */ - -/** A union of all supported encoding strings in `iconv-lite`. */ -export type Encoding = - | "10000" - | "10006" - | "10007" - | "10029" - | "10079" - | "10081" - | "1046" - | "1124" - | "1125" - | "1129" - | "1133" - | "1161" - | "1162" - | "1163" - | "1250" - | "1251" - | "1252" - | "1253" - | "1254" - | "1255" - | "1256" - | "1257" - | "1258" - | "20866" - | "21866" - | "28591" - | "28592" - | "28593" - | "28594" - | "28595" - | "28596" - | "28597" - | "28598" - | "28599" - | "28600" - | "28601" - | "28603" - | "28604" - | "28605" - | "28606" - | "437" - | "737" - | "775" - | "808" - | "850" - | "852" - | "855" - | "856" - | "857" - | "858" - | "860" - | "861" - | "862" - | "863" - | "864" - | "865" - | "866" - | "869" - | "874" - | "922" - | "932" - | "936" - | "949" - | "950" - | "ansix34" - | "ansix341968" - | "ansix341986" - | "arabic" - | "arabic8" - | "armscii8" - | "ascii" - | "ascii8bit" - | "asmo708" - | "base64" - | "big5" - | "big5hkscs" - | "binary" - | "celtic" - | "celtic8" - | "cesu8" - | "chinese" - | "cn" - | "cnbig5" - | "cp1046" - | "cp1124" - | "cp1125" - | "cp1129" - | "cp1133" - | "cp1161" - | "cp1162" - | "cp1163" - | "cp1250" - | "cp1251" - | "cp1252" - | "cp1253" - | "cp1254" - | "cp1255" - | "cp1256" - | "cp1257" - | "cp1258" - | "cp20866" - | "cp21866" - | "cp28591" - | "cp28592" - | "cp28593" - | "cp28594" - | "cp28595" - | "cp28596" - | "cp28597" - | "cp28598" - | "cp28599" - | "cp28600" - | "cp28601" - | "cp28603" - | "cp28604" - | "cp28605" - | "cp28606" - | "cp367" - | "cp437" - | "cp720" - | "cp737" - | "cp775" - | "cp808" - | "cp819" - | "cp850" - | "cp852" - | "cp855" - | "cp856" - | "cp857" - | "cp858" - | "cp860" - | "cp861" - | "cp862" - | "cp863" - | "cp864" - | "cp865" - | "cp866" - | "cp869" - | "cp874" - | "cp922" - | "cp932" - | "cp936" - | "cp949" - | "cp950" - | "cpgr" - | "csascii" - | "csbig5" - | "cseuckr" - | "csgb2312" - | "cshproman8" - | "csibm1046" - | "csibm1124" - | "csibm1125" - | "csibm1129" - | "csibm1133" - | "csibm1161" - | "csibm1162" - | "csibm1163" - | "csibm437" - | "csibm737" - | "csibm775" - | "csibm850" - | "csibm852" - | "csibm855" - | "csibm856" - | "csibm857" - | "csibm858" - | "csibm860" - | "csibm861" - | "csibm862" - | "csibm863" - | "csibm864" - | "csibm865" - | "csibm866" - | "csibm869" - | "csibm922" - | "csiso14jisc6220ro" - | "csiso58gb231280" - | "csisolatin1" - | "csisolatin2" - | "csisolatin3" - | "csisolatin4" - | "csisolatin5" - | "csisolatin6" - | "csisolatinarabic" - | "csisolatincyrillic" - | "csisolatingreek" - | "csisolatinhebrew" - | "cskoi8r" - | "csksc56011987" - | "csmacintosh" - | "cspc775baltic" - | "cspc850multilingual" - | "cspc862latinhebrew" - | "cspc8codepage437" - | "cspcp852" - | "csshiftjis" - | "cyrillic" - | "ecma114" - | "ecma118" - | "elot928" - | "euccn" - | "eucjp" - | "euckr" - | "gb18030" - | "gb198880" - | "gb2312" - | "gb23121980" - | "gb231280" - | "gbk" - | "georgianacademy" - | "georgianps" - | "greek" - | "greek8" - | "hebrew" - | "hebrew8" - | "hex" - | "hproman8" - | "ibm1046" - | "ibm1051" - | "ibm1124" - | "ibm1125" - | "ibm1129" - | "ibm1133" - | "ibm1161" - | "ibm1162" - | "ibm1163" - | "ibm1168" - | "ibm367" - | "ibm437" - | "ibm737" - | "ibm775" - | "ibm808" - | "ibm819" - | "ibm850" - | "ibm852" - | "ibm855" - | "ibm856" - | "ibm857" - | "ibm858" - | "ibm860" - | "ibm861" - | "ibm862" - | "ibm863" - | "ibm864" - | "ibm865" - | "ibm866" - | "ibm869" - | "ibm878" - | "ibm922" - | "iso646cn" - | "iso646irv" - | "iso646jp" - | "iso646us" - | "iso88591" - | "iso885910" - | "iso885911" - | "iso885913" - | "iso885914" - | "iso885915" - | "iso885916" - | "iso88592" - | "iso88593" - | "iso88594" - | "iso88595" - | "iso88596" - | "iso88597" - | "iso88598" - | "iso88599" - | "isoceltic" - | "isoir100" - | "isoir101" - | "isoir109" - | "isoir110" - | "isoir126" - | "isoir127" - | "isoir138" - | "isoir14" - | "isoir144" - | "isoir148" - | "isoir149" - | "isoir157" - | "isoir166" - | "isoir179" - | "isoir199" - | "isoir203" - | "isoir226" - | "isoir57" - | "isoir58" - | "isoir6" - | "jisc62201969ro" - | "jp" - | "koi8r" - | "koi8ru" - | "koi8t" - | "koi8u" - | "korean" - | "ksc5601" - | "ksc56011987" - | "ksc56011989" - | "l1" - | "l10" - | "l2" - | "l3" - | "l4" - | "l5" - | "l6" - | "l7" - | "l8" - | "l9" - | "latin1" - | "latin10" - | "latin2" - | "latin3" - | "latin4" - | "latin5" - | "latin6" - | "latin7" - | "latin8" - | "latin9" - | "mac" - | "maccenteuro" - | "maccroatian" - | "maccyrillic" - | "macgreek" - | "maciceland" - | "macintosh" - | "macroman" - | "macromania" - | "macthai" - | "macturkish" - | "macukraine" - | "mik" - | "ms31j" - | "ms932" - | "ms936" - | "ms949" - | "ms950" - | "msansi" - | "msarab" - | "mscyrl" - | "msee" - | "msgreek" - | "mshebr" - | "mskanji" - | "msturk" - | "pt154" - | "r8" - | "rk1048" - | "roman8" - | "shiftjis" - | "sjis" - | "strk10482002" - | "tcvn" - | "tcvn5712" - | "tcvn57121" - | "thai" - | "thai8" - | "tis620" - | "tis6200" - | "tis62025291" - | "tis62025330" - | "turkish" - | "turkish8" - | "ucs2" - | "ucs4" - | "ucs4be" - | "ucs4le" - | "unicode11utf7" - | "unicode11utf8" - | "us" - | "usascii" - | "utf16" - | "utf16be" - | "utf16le" - | "utf32" - | "utf32be" - | "utf32le" - | "utf7" - | "utf7imap" - | "utf8" - | "viscii" - | "win1250" - | "win1251" - | "win1252" - | "win1253" - | "win1254" - | "win1255" - | "win1256" - | "win1257" - | "win1258" - | "win874" - | "winbaltrim" - | "windows1250" - | "windows1251" - | "windows1252" - | "windows1253" - | "windows1254" - | "windows1255" - | "windows1256" - | "windows1257" - | "windows1258" - | "windows31j" - | "windows874" - | "windows932" - | "windows936" - | "windows949" - | "windows950" - | "xgbk" - | "xroman8" - | "xsjis" - | "xxbig5" - | (string & {}) diff --git a/mcp-server/node_modules/inherits/LICENSE b/mcp-server/node_modules/inherits/LICENSE deleted file mode 100644 index dea3013..0000000 --- a/mcp-server/node_modules/inherits/LICENSE +++ /dev/null @@ -1,16 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - diff --git a/mcp-server/node_modules/inherits/README.md b/mcp-server/node_modules/inherits/README.md deleted file mode 100644 index b1c5665..0000000 --- a/mcp-server/node_modules/inherits/README.md +++ /dev/null @@ -1,42 +0,0 @@ -Browser-friendly inheritance fully compatible with standard node.js -[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor). - -This package exports standard `inherits` from node.js `util` module in -node environment, but also provides alternative browser-friendly -implementation through [browser -field](https://gist.github.com/shtylman/4339901). Alternative -implementation is a literal copy of standard one located in standalone -module to avoid requiring of `util`. It also has a shim for old -browsers with no `Object.create` support. - -While keeping you sure you are using standard `inherits` -implementation in node.js environment, it allows bundlers such as -[browserify](https://github.com/substack/node-browserify) to not -include full `util` package to your client code if all you need is -just `inherits` function. It worth, because browser shim for `util` -package is large and `inherits` is often the single function you need -from it. - -It's recommended to use this package instead of -`require('util').inherits` for any code that has chances to be used -not only in node.js but in browser too. - -## usage - -```js -var inherits = require('inherits'); -// then use exactly as the standard one -``` - -## note on version ~1.0 - -Version ~1.0 had completely different motivation and is not compatible -neither with 2.0 nor with standard node.js `inherits`. - -If you are using version ~1.0 and planning to switch to ~2.0, be -careful: - -* new version uses `super_` instead of `super` for referencing - superclass -* new version overwrites current prototype while old one preserves any - existing fields on it diff --git a/mcp-server/node_modules/inherits/inherits.js b/mcp-server/node_modules/inherits/inherits.js deleted file mode 100644 index f71f2d9..0000000 --- a/mcp-server/node_modules/inherits/inherits.js +++ /dev/null @@ -1,9 +0,0 @@ -try { - var util = require('util'); - /* istanbul ignore next */ - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - /* istanbul ignore next */ - module.exports = require('./inherits_browser.js'); -} diff --git a/mcp-server/node_modules/inherits/inherits_browser.js b/mcp-server/node_modules/inherits/inherits_browser.js deleted file mode 100644 index 86bbb3d..0000000 --- a/mcp-server/node_modules/inherits/inherits_browser.js +++ /dev/null @@ -1,27 +0,0 @@ -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} diff --git a/mcp-server/node_modules/inherits/package.json b/mcp-server/node_modules/inherits/package.json deleted file mode 100644 index 37b4366..0000000 --- a/mcp-server/node_modules/inherits/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "inherits", - "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", - "version": "2.0.4", - "keywords": [ - "inheritance", - "class", - "klass", - "oop", - "object-oriented", - "inherits", - "browser", - "browserify" - ], - "main": "./inherits.js", - "browser": "./inherits_browser.js", - "repository": "git://github.com/isaacs/inherits", - "license": "ISC", - "scripts": { - "test": "tap" - }, - "devDependencies": { - "tap": "^14.2.4" - }, - "files": [ - "inherits.js", - "inherits_browser.js" - ] -} diff --git a/mcp-server/node_modules/ipaddr.js/LICENSE b/mcp-server/node_modules/ipaddr.js/LICENSE deleted file mode 100644 index f6b37b5..0000000 --- a/mcp-server/node_modules/ipaddr.js/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (C) 2011-2017 whitequark - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/mcp-server/node_modules/ipaddr.js/README.md b/mcp-server/node_modules/ipaddr.js/README.md deleted file mode 100644 index f57725b..0000000 --- a/mcp-server/node_modules/ipaddr.js/README.md +++ /dev/null @@ -1,233 +0,0 @@ -# ipaddr.js — an IPv6 and IPv4 address manipulation library [![Build Status](https://travis-ci.org/whitequark/ipaddr.js.svg)](https://travis-ci.org/whitequark/ipaddr.js) - -ipaddr.js is a small (1.9K minified and gzipped) library for manipulating -IP addresses in JavaScript environments. It runs on both CommonJS runtimes -(e.g. [nodejs]) and in a web browser. - -ipaddr.js allows you to verify and parse string representation of an IP -address, match it against a CIDR range or range list, determine if it falls -into some reserved ranges (examples include loopback and private ranges), -and convert between IPv4 and IPv4-mapped IPv6 addresses. - -[nodejs]: http://nodejs.org - -## Installation - -`npm install ipaddr.js` - -or - -`bower install ipaddr.js` - -## API - -ipaddr.js defines one object in the global scope: `ipaddr`. In CommonJS, -it is exported from the module: - -```js -var ipaddr = require('ipaddr.js'); -``` - -The API consists of several global methods and two classes: ipaddr.IPv6 and ipaddr.IPv4. - -### Global methods - -There are three global methods defined: `ipaddr.isValid`, `ipaddr.parse` and -`ipaddr.process`. All of them receive a string as a single parameter. - -The `ipaddr.isValid` method returns `true` if the address is a valid IPv4 or -IPv6 address, and `false` otherwise. It does not throw any exceptions. - -The `ipaddr.parse` method returns an object representing the IP address, -or throws an `Error` if the passed string is not a valid representation of an -IP address. - -The `ipaddr.process` method works just like the `ipaddr.parse` one, but it -automatically converts IPv4-mapped IPv6 addresses to their IPv4 counterparts -before returning. It is useful when you have a Node.js instance listening -on an IPv6 socket, and the `net.ivp6.bindv6only` sysctl parameter (or its -equivalent on non-Linux OS) is set to 0. In this case, you can accept IPv4 -connections on your IPv6-only socket, but the remote address will be mangled. -Use `ipaddr.process` method to automatically demangle it. - -### Object representation - -Parsing methods return an object which descends from `ipaddr.IPv6` or -`ipaddr.IPv4`. These objects share some properties, but most of them differ. - -#### Shared properties - -One can determine the type of address by calling `addr.kind()`. It will return -either `"ipv6"` or `"ipv4"`. - -An address can be converted back to its string representation with `addr.toString()`. -Note that this method: - * does not return the original string used to create the object (in fact, there is - no way of getting that string) - * returns a compact representation (when it is applicable) - -A `match(range, bits)` method can be used to check if the address falls into a -certain CIDR range. -Note that an address can be (obviously) matched only against an address of the same type. - -For example: - -```js -var addr = ipaddr.parse("2001:db8:1234::1"); -var range = ipaddr.parse("2001:db8::"); - -addr.match(range, 32); // => true -``` - -Alternatively, `match` can also be called as `match([range, bits])`. In this way, -it can be used together with the `parseCIDR(string)` method, which parses an IP -address together with a CIDR range. - -For example: - -```js -var addr = ipaddr.parse("2001:db8:1234::1"); - -addr.match(ipaddr.parseCIDR("2001:db8::/32")); // => true -``` - -A `range()` method returns one of predefined names for several special ranges defined -by IP protocols. The exact names (and their respective CIDR ranges) can be looked up -in the source: [IPv6 ranges] and [IPv4 ranges]. Some common ones include `"unicast"` -(the default one) and `"reserved"`. - -You can match against your own range list by using -`ipaddr.subnetMatch(address, rangeList, defaultName)` method. It can work with a mix of IPv6 or IPv4 addresses, and accepts a name-to-subnet map as the range list. For example: - -```js -var rangeList = { - documentationOnly: [ ipaddr.parse('2001:db8::'), 32 ], - tunnelProviders: [ - [ ipaddr.parse('2001:470::'), 32 ], // he.net - [ ipaddr.parse('2001:5c0::'), 32 ] // freenet6 - ] -}; -ipaddr.subnetMatch(ipaddr.parse('2001:470:8:66::1'), rangeList, 'unknown'); // => "tunnelProviders" -``` - -The addresses can be converted to their byte representation with `toByteArray()`. -(Actually, JavaScript mostly does not know about byte buffers. They are emulated with -arrays of numbers, each in range of 0..255.) - -```js -var bytes = ipaddr.parse('2a00:1450:8007::68').toByteArray(); // ipv6.google.com -bytes // => [42, 0x00, 0x14, 0x50, 0x80, 0x07, 0x00, , 0x00, 0x68 ] -``` - -The `ipaddr.IPv4` and `ipaddr.IPv6` objects have some methods defined, too. All of them -have the same interface for both protocols, and are similar to global methods. - -`ipaddr.IPvX.isValid(string)` can be used to check if the string is a valid address -for particular protocol, and `ipaddr.IPvX.parse(string)` is the error-throwing parser. - -`ipaddr.IPvX.isValid(string)` uses the same format for parsing as the POSIX `inet_ntoa` function, which accepts unusual formats like `0xc0.168.1.1` or `0x10000000`. The function `ipaddr.IPv4.isValidFourPartDecimal(string)` validates the IPv4 address and also ensures that it is written in four-part decimal format. - -[IPv6 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L186 -[IPv4 ranges]: https://github.com/whitequark/ipaddr.js/blob/master/src/ipaddr.coffee#L71 - -#### IPv6 properties - -Sometimes you will want to convert IPv6 not to a compact string representation (with -the `::` substitution); the `toNormalizedString()` method will return an address where -all zeroes are explicit. - -For example: - -```js -var addr = ipaddr.parse("2001:0db8::0001"); -addr.toString(); // => "2001:db8::1" -addr.toNormalizedString(); // => "2001:db8:0:0:0:0:0:1" -``` - -The `isIPv4MappedAddress()` method will return `true` if this address is an IPv4-mapped -one, and `toIPv4Address()` will return an IPv4 object address. - -To access the underlying binary representation of the address, use `addr.parts`. - -```js -var addr = ipaddr.parse("2001:db8:10::1234:DEAD"); -addr.parts // => [0x2001, 0xdb8, 0x10, 0, 0, 0, 0x1234, 0xdead] -``` - -A IPv6 zone index can be accessed via `addr.zoneId`: - -```js -var addr = ipaddr.parse("2001:db8::%eth0"); -addr.zoneId // => 'eth0' -``` - -#### IPv4 properties - -`toIPv4MappedAddress()` will return a corresponding IPv4-mapped IPv6 address. - -To access the underlying representation of the address, use `addr.octets`. - -```js -var addr = ipaddr.parse("192.168.1.1"); -addr.octets // => [192, 168, 1, 1] -``` - -`prefixLengthFromSubnetMask()` will return a CIDR prefix length for a valid IPv4 netmask or -null if the netmask is not valid. - -```js -ipaddr.IPv4.parse('255.255.255.240').prefixLengthFromSubnetMask() == 28 -ipaddr.IPv4.parse('255.192.164.0').prefixLengthFromSubnetMask() == null -``` - -`subnetMaskFromPrefixLength()` will return an IPv4 netmask for a valid CIDR prefix length. - -```js -ipaddr.IPv4.subnetMaskFromPrefixLength(24) == "255.255.255.0" -ipaddr.IPv4.subnetMaskFromPrefixLength(29) == "255.255.255.248" -``` - -`broadcastAddressFromCIDR()` will return the broadcast address for a given IPv4 interface and netmask in CIDR notation. -```js -ipaddr.IPv4.broadcastAddressFromCIDR("172.0.0.1/24") == "172.0.0.255" -``` -`networkAddressFromCIDR()` will return the network address for a given IPv4 interface and netmask in CIDR notation. -```js -ipaddr.IPv4.networkAddressFromCIDR("172.0.0.1/24") == "172.0.0.0" -``` - -#### Conversion - -IPv4 and IPv6 can be converted bidirectionally to and from network byte order (MSB) byte arrays. - -The `fromByteArray()` method will take an array and create an appropriate IPv4 or IPv6 object -if the input satisfies the requirements. For IPv4 it has to be an array of four 8-bit values, -while for IPv6 it has to be an array of sixteen 8-bit values. - -For example: -```js -var addr = ipaddr.fromByteArray([0x7f, 0, 0, 1]); -addr.toString(); // => "127.0.0.1" -``` - -or - -```js -var addr = ipaddr.fromByteArray([0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]) -addr.toString(); // => "2001:db8::1" -``` - -Both objects also offer a `toByteArray()` method, which returns an array in network byte order (MSB). - -For example: -```js -var addr = ipaddr.parse("127.0.0.1"); -addr.toByteArray(); // => [0x7f, 0, 0, 1] -``` - -or - -```js -var addr = ipaddr.parse("2001:db8::1"); -addr.toByteArray(); // => [0x20, 1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] -``` diff --git a/mcp-server/node_modules/ipaddr.js/ipaddr.min.js b/mcp-server/node_modules/ipaddr.js/ipaddr.min.js deleted file mode 100644 index b54a7cc..0000000 --- a/mcp-server/node_modules/ipaddr.js/ipaddr.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var r,t,n,e,i,o,a,s;t={},s=this,"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:s.ipaddr=t,a=function(r,t,n,e){var i,o;if(r.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(i=0;e>0;){if((o=n-e)<0&&(o=0),r[i]>>o!=t[i]>>o)return!1;e-=n,i+=1}return!0},t.subnetMatch=function(r,t,n){var e,i,o,a,s;null==n&&(n="unicast");for(o in t)for(!(a=t[o])[0]||a[0]instanceof Array||(a=[a]),e=0,i=a.length;e=0;t=n+=-1){if(!((e=this.octets[t])in a))return null;if(o=a[e],i&&0!==o)return null;8!==o&&(i=!0),r+=o}return 32-r},r}(),n="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},t.IPv4.parser=function(r){var t,n,i,o,a;if(n=function(r){return"0"===r[0]&&"x"!==r[1]?parseInt(r,8):parseInt(r)},t=r.match(e.fourOctet))return function(){var r,e,o,a;for(a=[],r=0,e=(o=t.slice(1,6)).length;r4294967295||a<0)throw new Error("ipaddr: address outside defined range");return function(){var r,t;for(t=[],o=r=0;r<=24;o=r+=8)t.push(a>>o&255);return t}().reverse()}return null},t.IPv6=function(){function r(r,t){var n,e,i,o,a,s;if(16===r.length)for(this.parts=[],n=e=0;e<=14;n=e+=2)this.parts.push(r[n]<<8|r[n+1]);else{if(8!==r.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=r}for(i=0,o=(s=this.parts).length;it&&(r=n.index,t=n[0].length);return t<0?i:i.substring(0,r)+"::"+i.substring(r+t)},r.prototype.toByteArray=function(){var r,t,n,e,i;for(r=[],t=0,n=(i=this.parts).length;t>8),r.push(255&e);return r},r.prototype.toNormalizedString=function(){var r,t,n;return r=function(){var r,n,e,i;for(i=[],r=0,n=(e=this.parts).length;r>8,255&r,n>>8,255&n])},r.prototype.prefixLengthFromSubnetMask=function(){var r,t,n,e,i,o,a;for(a={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r=0,i=!1,t=n=7;n>=0;t=n+=-1){if(!((e=this.parts[t])in a))return null;if(o=a[e],i&&0!==o)return null;16!==o&&(i=!0),r+=o}return 128-r},r}(),i="(?:[0-9a-f]+::?)+",o={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+n+"\\."+n+"\\."+n+"\\."+n+"(%[0-9a-z]{1,})?$","i")},r=function(r,t){var n,e,i,a,s,p;if(r.indexOf("::")!==r.lastIndexOf("::"))return null;for((p=(r.match(o.zoneIndex)||[])[0])&&(p=p.substring(1),r=r.replace(/%.+$/,"")),n=0,e=-1;(e=r.indexOf(":",e+1))>=0;)n++;if("::"===r.substr(0,2)&&n--,"::"===r.substr(-2,2)&&n--,n>t)return null;for(s=t-n,a=":";s--;)a+="0:";return":"===(r=r.replace("::",a))[0]&&(r=r.slice(1)),":"===r[r.length-1]&&(r=r.slice(0,-1)),t=function(){var t,n,e,o;for(o=[],t=0,n=(e=r.split(":")).length;t=0&&t<=32)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},t.IPv4.subnetMaskFromPrefixLength=function(r){var t,n,e;if((r=parseInt(r))<0||r>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(e=[0,0,0,0],n=0,t=Math.floor(r/8);n=0&&t<=128)return e=[this.parse(n[1]),t],Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},t.isValid=function(r){return t.IPv6.isValid(r)||t.IPv4.isValid(r)},t.parse=function(r){if(t.IPv6.isValid(r))return t.IPv6.parse(r);if(t.IPv4.isValid(r))return t.IPv4.parse(r);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},t.parseCIDR=function(r){try{return t.IPv6.parseCIDR(r)}catch(n){n;try{return t.IPv4.parseCIDR(r)}catch(r){throw r,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},t.fromByteArray=function(r){var n;if(4===(n=r.length))return new t.IPv4(r);if(16===n)return new t.IPv6(r);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},t.process=function(r){var t;return t=this.parse(r),"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}).call(this); \ No newline at end of file diff --git a/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js b/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js deleted file mode 100644 index 18bd93b..0000000 --- a/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js +++ /dev/null @@ -1,673 +0,0 @@ -(function() { - var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex; - - ipaddr = {}; - - root = this; - - if ((typeof module !== "undefined" && module !== null) && module.exports) { - module.exports = ipaddr; - } else { - root['ipaddr'] = ipaddr; - } - - matchCIDR = function(first, second, partSize, cidrBits) { - var part, shift; - if (first.length !== second.length) { - throw new Error("ipaddr: cannot match CIDR for objects with different lengths"); - } - part = 0; - while (cidrBits > 0) { - shift = partSize - cidrBits; - if (shift < 0) { - shift = 0; - } - if (first[part] >> shift !== second[part] >> shift) { - return false; - } - cidrBits -= partSize; - part += 1; - } - return true; - }; - - ipaddr.subnetMatch = function(address, rangeList, defaultName) { - var k, len, rangeName, rangeSubnets, subnet; - if (defaultName == null) { - defaultName = 'unicast'; - } - for (rangeName in rangeList) { - rangeSubnets = rangeList[rangeName]; - if (rangeSubnets[0] && !(rangeSubnets[0] instanceof Array)) { - rangeSubnets = [rangeSubnets]; - } - for (k = 0, len = rangeSubnets.length; k < len; k++) { - subnet = rangeSubnets[k]; - if (address.kind() === subnet[0].kind()) { - if (address.match.apply(address, subnet)) { - return rangeName; - } - } - } - } - return defaultName; - }; - - ipaddr.IPv4 = (function() { - function IPv4(octets) { - var k, len, octet; - if (octets.length !== 4) { - throw new Error("ipaddr: ipv4 octet count should be 4"); - } - for (k = 0, len = octets.length; k < len; k++) { - octet = octets[k]; - if (!((0 <= octet && octet <= 255))) { - throw new Error("ipaddr: ipv4 octet should fit in 8 bits"); - } - } - this.octets = octets; - } - - IPv4.prototype.kind = function() { - return 'ipv4'; - }; - - IPv4.prototype.toString = function() { - return this.octets.join("."); - }; - - IPv4.prototype.toNormalizedString = function() { - return this.toString(); - }; - - IPv4.prototype.toByteArray = function() { - return this.octets.slice(0); - }; - - IPv4.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === void 0) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== 'ipv4') { - throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one"); - } - return matchCIDR(this.octets, other.octets, 8, cidrRange); - }; - - IPv4.prototype.SpecialRanges = { - unspecified: [[new IPv4([0, 0, 0, 0]), 8]], - broadcast: [[new IPv4([255, 255, 255, 255]), 32]], - multicast: [[new IPv4([224, 0, 0, 0]), 4]], - linkLocal: [[new IPv4([169, 254, 0, 0]), 16]], - loopback: [[new IPv4([127, 0, 0, 0]), 8]], - carrierGradeNat: [[new IPv4([100, 64, 0, 0]), 10]], - "private": [[new IPv4([10, 0, 0, 0]), 8], [new IPv4([172, 16, 0, 0]), 12], [new IPv4([192, 168, 0, 0]), 16]], - reserved: [[new IPv4([192, 0, 0, 0]), 24], [new IPv4([192, 0, 2, 0]), 24], [new IPv4([192, 88, 99, 0]), 24], [new IPv4([198, 51, 100, 0]), 24], [new IPv4([203, 0, 113, 0]), 24], [new IPv4([240, 0, 0, 0]), 4]] - }; - - IPv4.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - IPv4.prototype.toIPv4MappedAddress = function() { - return ipaddr.IPv6.parse("::ffff:" + (this.toString())); - }; - - IPv4.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, octet, stop, zeros, zerotable; - zerotable = { - 0: 8, - 128: 7, - 192: 6, - 224: 5, - 240: 4, - 248: 3, - 252: 2, - 254: 1, - 255: 0 - }; - cidr = 0; - stop = false; - for (i = k = 3; k >= 0; i = k += -1) { - octet = this.octets[i]; - if (octet in zerotable) { - zeros = zerotable[octet]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 8) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 32 - cidr; - }; - - return IPv4; - - })(); - - ipv4Part = "(0?\\d+|0x[a-f0-9]+)"; - - ipv4Regexes = { - fourOctet: new RegExp("^" + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "$", 'i'), - longValue: new RegExp("^" + ipv4Part + "$", 'i') - }; - - ipaddr.IPv4.parser = function(string) { - var match, parseIntAuto, part, shift, value; - parseIntAuto = function(string) { - if (string[0] === "0" && string[1] !== "x") { - return parseInt(string, 8); - } else { - return parseInt(string); - } - }; - if (match = string.match(ipv4Regexes.fourOctet)) { - return (function() { - var k, len, ref, results; - ref = match.slice(1, 6); - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(parseIntAuto(part)); - } - return results; - })(); - } else if (match = string.match(ipv4Regexes.longValue)) { - value = parseIntAuto(match[1]); - if (value > 0xffffffff || value < 0) { - throw new Error("ipaddr: address outside defined range"); - } - return ((function() { - var k, results; - results = []; - for (shift = k = 0; k <= 24; shift = k += 8) { - results.push((value >> shift) & 0xff); - } - return results; - })()).reverse(); - } else { - return null; - } - }; - - ipaddr.IPv6 = (function() { - function IPv6(parts, zoneId) { - var i, k, l, len, part, ref; - if (parts.length === 16) { - this.parts = []; - for (i = k = 0; k <= 14; i = k += 2) { - this.parts.push((parts[i] << 8) | parts[i + 1]); - } - } else if (parts.length === 8) { - this.parts = parts; - } else { - throw new Error("ipaddr: ipv6 part count should be 8 or 16"); - } - ref = this.parts; - for (l = 0, len = ref.length; l < len; l++) { - part = ref[l]; - if (!((0 <= part && part <= 0xffff))) { - throw new Error("ipaddr: ipv6 part should fit in 16 bits"); - } - } - if (zoneId) { - this.zoneId = zoneId; - } - } - - IPv6.prototype.kind = function() { - return 'ipv6'; - }; - - IPv6.prototype.toString = function() { - return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::'); - }; - - IPv6.prototype.toRFC5952String = function() { - var bestMatchIndex, bestMatchLength, match, regex, string; - regex = /((^|:)(0(:|$)){2,})/g; - string = this.toNormalizedString(); - bestMatchIndex = 0; - bestMatchLength = -1; - while ((match = regex.exec(string))) { - if (match[0].length > bestMatchLength) { - bestMatchIndex = match.index; - bestMatchLength = match[0].length; - } - } - if (bestMatchLength < 0) { - return string; - } - return string.substring(0, bestMatchIndex) + '::' + string.substring(bestMatchIndex + bestMatchLength); - }; - - IPv6.prototype.toByteArray = function() { - var bytes, k, len, part, ref; - bytes = []; - ref = this.parts; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - bytes.push(part >> 8); - bytes.push(part & 0xff); - } - return bytes; - }; - - IPv6.prototype.toNormalizedString = function() { - var addr, part, suffix; - addr = ((function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(part.toString(16)); - } - return results; - }).call(this)).join(":"); - suffix = ''; - if (this.zoneId) { - suffix = '%' + this.zoneId; - } - return addr + suffix; - }; - - IPv6.prototype.toFixedLengthString = function() { - var addr, part, suffix; - addr = ((function() { - var k, len, ref, results; - ref = this.parts; - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(part.toString(16).padStart(4, '0')); - } - return results; - }).call(this)).join(":"); - suffix = ''; - if (this.zoneId) { - suffix = '%' + this.zoneId; - } - return addr + suffix; - }; - - IPv6.prototype.match = function(other, cidrRange) { - var ref; - if (cidrRange === void 0) { - ref = other, other = ref[0], cidrRange = ref[1]; - } - if (other.kind() !== 'ipv6') { - throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one"); - } - return matchCIDR(this.parts, other.parts, 16, cidrRange); - }; - - IPv6.prototype.SpecialRanges = { - unspecified: [new IPv6([0, 0, 0, 0, 0, 0, 0, 0]), 128], - linkLocal: [new IPv6([0xfe80, 0, 0, 0, 0, 0, 0, 0]), 10], - multicast: [new IPv6([0xff00, 0, 0, 0, 0, 0, 0, 0]), 8], - loopback: [new IPv6([0, 0, 0, 0, 0, 0, 0, 1]), 128], - uniqueLocal: [new IPv6([0xfc00, 0, 0, 0, 0, 0, 0, 0]), 7], - ipv4Mapped: [new IPv6([0, 0, 0, 0, 0, 0xffff, 0, 0]), 96], - rfc6145: [new IPv6([0, 0, 0, 0, 0xffff, 0, 0, 0]), 96], - rfc6052: [new IPv6([0x64, 0xff9b, 0, 0, 0, 0, 0, 0]), 96], - '6to4': [new IPv6([0x2002, 0, 0, 0, 0, 0, 0, 0]), 16], - teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32], - reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]] - }; - - IPv6.prototype.range = function() { - return ipaddr.subnetMatch(this, this.SpecialRanges); - }; - - IPv6.prototype.isIPv4MappedAddress = function() { - return this.range() === 'ipv4Mapped'; - }; - - IPv6.prototype.toIPv4Address = function() { - var high, low, ref; - if (!this.isIPv4MappedAddress()) { - throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4"); - } - ref = this.parts.slice(-2), high = ref[0], low = ref[1]; - return new ipaddr.IPv4([high >> 8, high & 0xff, low >> 8, low & 0xff]); - }; - - IPv6.prototype.prefixLengthFromSubnetMask = function() { - var cidr, i, k, part, stop, zeros, zerotable; - zerotable = { - 0: 16, - 32768: 15, - 49152: 14, - 57344: 13, - 61440: 12, - 63488: 11, - 64512: 10, - 65024: 9, - 65280: 8, - 65408: 7, - 65472: 6, - 65504: 5, - 65520: 4, - 65528: 3, - 65532: 2, - 65534: 1, - 65535: 0 - }; - cidr = 0; - stop = false; - for (i = k = 7; k >= 0; i = k += -1) { - part = this.parts[i]; - if (part in zerotable) { - zeros = zerotable[part]; - if (stop && zeros !== 0) { - return null; - } - if (zeros !== 16) { - stop = true; - } - cidr += zeros; - } else { - return null; - } - } - return 128 - cidr; - }; - - return IPv6; - - })(); - - ipv6Part = "(?:[0-9a-f]+::?)+"; - - zoneIndex = "%[0-9a-z]{1,}"; - - ipv6Regexes = { - zoneIndex: new RegExp(zoneIndex, 'i'), - "native": new RegExp("^(::)?(" + ipv6Part + ")?([0-9a-f]+)?(::)?(" + zoneIndex + ")?$", 'i'), - transitional: new RegExp(("^((?:" + ipv6Part + ")|(?:::)(?:" + ipv6Part + ")?)") + (ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part + "\\." + ipv4Part) + ("(" + zoneIndex + ")?$"), 'i') - }; - - expandIPv6 = function(string, parts) { - var colonCount, lastColon, part, replacement, replacementCount, zoneId; - if (string.indexOf('::') !== string.lastIndexOf('::')) { - return null; - } - zoneId = (string.match(ipv6Regexes['zoneIndex']) || [])[0]; - if (zoneId) { - zoneId = zoneId.substring(1); - string = string.replace(/%.+$/, ''); - } - colonCount = 0; - lastColon = -1; - while ((lastColon = string.indexOf(':', lastColon + 1)) >= 0) { - colonCount++; - } - if (string.substr(0, 2) === '::') { - colonCount--; - } - if (string.substr(-2, 2) === '::') { - colonCount--; - } - if (colonCount > parts) { - return null; - } - replacementCount = parts - colonCount; - replacement = ':'; - while (replacementCount--) { - replacement += '0:'; - } - string = string.replace('::', replacement); - if (string[0] === ':') { - string = string.slice(1); - } - if (string[string.length - 1] === ':') { - string = string.slice(0, -1); - } - parts = (function() { - var k, len, ref, results; - ref = string.split(":"); - results = []; - for (k = 0, len = ref.length; k < len; k++) { - part = ref[k]; - results.push(parseInt(part, 16)); - } - return results; - })(); - return { - parts: parts, - zoneId: zoneId - }; - }; - - ipaddr.IPv6.parser = function(string) { - var addr, k, len, match, octet, octets, zoneId; - if (ipv6Regexes['native'].test(string)) { - return expandIPv6(string, 8); - } else if (match = string.match(ipv6Regexes['transitional'])) { - zoneId = match[6] || ''; - addr = expandIPv6(match[1].slice(0, -1) + zoneId, 6); - if (addr.parts) { - octets = [parseInt(match[2]), parseInt(match[3]), parseInt(match[4]), parseInt(match[5])]; - for (k = 0, len = octets.length; k < len; k++) { - octet = octets[k]; - if (!((0 <= octet && octet <= 255))) { - return null; - } - } - addr.parts.push(octets[0] << 8 | octets[1]); - addr.parts.push(octets[2] << 8 | octets[3]); - return { - parts: addr.parts, - zoneId: addr.zoneId - }; - } - } - return null; - }; - - ipaddr.IPv4.isIPv4 = ipaddr.IPv6.isIPv6 = function(string) { - return this.parser(string) !== null; - }; - - ipaddr.IPv4.isValid = function(string) { - var e; - try { - new this(this.parser(string)); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - - ipaddr.IPv4.isValidFourPartDecimal = function(string) { - if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) { - return true; - } else { - return false; - } - }; - - ipaddr.IPv6.isValid = function(string) { - var addr, e; - if (typeof string === "string" && string.indexOf(":") === -1) { - return false; - } - try { - addr = this.parser(string); - new this(addr.parts, addr.zoneId); - return true; - } catch (error1) { - e = error1; - return false; - } - }; - - ipaddr.IPv4.parse = function(string) { - var parts; - parts = this.parser(string); - if (parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(parts); - }; - - ipaddr.IPv6.parse = function(string) { - var addr; - addr = this.parser(string); - if (addr.parts === null) { - throw new Error("ipaddr: string is not formatted like ip address"); - } - return new this(addr.parts, addr.zoneId); - }; - - ipaddr.IPv4.parseCIDR = function(string) { - var maskLength, match, parsed; - if (match = string.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 32) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function() { - return this.join('/'); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range"); - }; - - ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) { - var filledOctetCount, j, octets; - prefix = parseInt(prefix); - if (prefix < 0 || prefix > 32) { - throw new Error('ipaddr: invalid IPv4 prefix length'); - } - octets = [0, 0, 0, 0]; - j = 0; - filledOctetCount = Math.floor(prefix / 8); - while (j < filledOctetCount) { - octets[j] = 255; - j++; - } - if (filledOctetCount < 4) { - octets[filledOctetCount] = Math.pow(2, prefix % 8) - 1 << 8 - (prefix % 8); - } - return new this(octets); - }; - - ipaddr.IPv4.broadcastAddressFromCIDR = function(string) { - var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) | parseInt(subnetMaskOctets[i], 10) ^ 255); - i++; - } - return new this(octets); - } catch (error1) { - error = error1; - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } - }; - - ipaddr.IPv4.networkAddressFromCIDR = function(string) { - var cidr, error, i, ipInterfaceOctets, octets, subnetMaskOctets; - try { - cidr = this.parseCIDR(string); - ipInterfaceOctets = cidr[0].toByteArray(); - subnetMaskOctets = this.subnetMaskFromPrefixLength(cidr[1]).toByteArray(); - octets = []; - i = 0; - while (i < 4) { - octets.push(parseInt(ipInterfaceOctets[i], 10) & parseInt(subnetMaskOctets[i], 10)); - i++; - } - return new this(octets); - } catch (error1) { - error = error1; - throw new Error('ipaddr: the address does not have IPv4 CIDR format'); - } - }; - - ipaddr.IPv6.parseCIDR = function(string) { - var maskLength, match, parsed; - if (match = string.match(/^(.+)\/(\d+)$/)) { - maskLength = parseInt(match[2]); - if (maskLength >= 0 && maskLength <= 128) { - parsed = [this.parse(match[1]), maskLength]; - Object.defineProperty(parsed, 'toString', { - value: function() { - return this.join('/'); - } - }); - return parsed; - } - } - throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range"); - }; - - ipaddr.isValid = function(string) { - return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string); - }; - - ipaddr.parse = function(string) { - if (ipaddr.IPv6.isValid(string)) { - return ipaddr.IPv6.parse(string); - } else if (ipaddr.IPv4.isValid(string)) { - return ipaddr.IPv4.parse(string); - } else { - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format"); - } - }; - - ipaddr.parseCIDR = function(string) { - var e; - try { - return ipaddr.IPv6.parseCIDR(string); - } catch (error1) { - e = error1; - try { - return ipaddr.IPv4.parseCIDR(string); - } catch (error1) { - e = error1; - throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format"); - } - } - }; - - ipaddr.fromByteArray = function(bytes) { - var length; - length = bytes.length; - if (length === 4) { - return new ipaddr.IPv4(bytes); - } else if (length === 16) { - return new ipaddr.IPv6(bytes); - } else { - throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address"); - } - }; - - ipaddr.process = function(string) { - var addr; - addr = this.parse(string); - if (addr.kind() === 'ipv6' && addr.isIPv4MappedAddress()) { - return addr.toIPv4Address(); - } else { - return addr; - } - }; - -}).call(this); diff --git a/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js.d.ts b/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js.d.ts deleted file mode 100644 index 52174b6..0000000 --- a/mcp-server/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -declare module "ipaddr.js" { - type IPv4Range = 'unicast' | 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved'; - type IPv6Range = 'unicast' | 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' | '6to4' | 'teredo' | 'reserved'; - - interface RangeList { - [name: string]: [T, number] | [T, number][]; - } - - // Common methods/properties for IPv4 and IPv6 classes. - class IP { - prefixLengthFromSubnetMask(): number | null; - toByteArray(): number[]; - toNormalizedString(): string; - toString(): string; - } - - namespace Address { - export function isValid(addr: string): boolean; - export function fromByteArray(bytes: number[]): IPv4 | IPv6; - export function parse(addr: string): IPv4 | IPv6; - export function parseCIDR(mask: string): [IPv4 | IPv6, number]; - export function process(addr: string): IPv4 | IPv6; - export function subnetMatch(addr: IPv4, rangeList: RangeList, defaultName?: string): string; - export function subnetMatch(addr: IPv6, rangeList: RangeList, defaultName?: string): string; - - export class IPv4 extends IP { - static broadcastAddressFromCIDR(addr: string): IPv4; - static isIPv4(addr: string): boolean; - static isValidFourPartDecimal(addr: string): boolean; - static isValid(addr: string): boolean; - static networkAddressFromCIDR(addr: string): IPv4; - static parse(addr: string): IPv4; - static parseCIDR(addr: string): [IPv4, number]; - static subnetMaskFromPrefixLength(prefix: number): IPv4; - constructor(octets: number[]); - octets: number[] - - kind(): 'ipv4'; - match(addr: IPv4, bits: number): boolean; - match(mask: [IPv4, number]): boolean; - range(): IPv4Range; - subnetMatch(rangeList: RangeList, defaultName?: string): string; - toIPv4MappedAddress(): IPv6; - } - - export class IPv6 extends IP { - static broadcastAddressFromCIDR(addr: string): IPv6; - static isIPv6(addr: string): boolean; - static isValid(addr: string): boolean; - static parse(addr: string): IPv6; - static parseCIDR(addr: string): [IPv6, number]; - static subnetMaskFromPrefixLength(prefix: number): IPv6; - constructor(parts: number[]); - parts: number[] - zoneId?: string - - isIPv4MappedAddress(): boolean; - kind(): 'ipv6'; - match(addr: IPv6, bits: number): boolean; - match(mask: [IPv6, number]): boolean; - range(): IPv6Range; - subnetMatch(rangeList: RangeList, defaultName?: string): string; - toIPv4Address(): IPv4; - } - } - - export = Address; -} diff --git a/mcp-server/node_modules/ipaddr.js/package.json b/mcp-server/node_modules/ipaddr.js/package.json deleted file mode 100644 index f4d3547..0000000 --- a/mcp-server/node_modules/ipaddr.js/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "ipaddr.js", - "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.", - "version": "1.9.1", - "author": "whitequark ", - "directories": { - "lib": "./lib" - }, - "dependencies": {}, - "devDependencies": { - "coffee-script": "~1.12.6", - "nodeunit": "^0.11.3", - "uglify-js": "~3.0.19" - }, - "scripts": { - "test": "cake build test" - }, - "files": [ - "lib/", - "LICENSE", - "ipaddr.min.js" - ], - "keywords": [ - "ip", - "ipv4", - "ipv6" - ], - "repository": "git://github.com/whitequark/ipaddr.js", - "main": "./lib/ipaddr.js", - "engines": { - "node": ">= 0.10" - }, - "license": "MIT", - "types": "./lib/ipaddr.js.d.ts" -} diff --git a/mcp-server/node_modules/is-promise/LICENSE b/mcp-server/node_modules/is-promise/LICENSE deleted file mode 100644 index 27cc9f3..0000000 --- a/mcp-server/node_modules/is-promise/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2014 Forbes Lindesay - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/mcp-server/node_modules/is-promise/index.d.ts b/mcp-server/node_modules/is-promise/index.d.ts deleted file mode 100644 index 2107b42..0000000 --- a/mcp-server/node_modules/is-promise/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isPromise(obj: PromiseLike | S): obj is PromiseLike; -export default isPromise; diff --git a/mcp-server/node_modules/is-promise/index.js b/mcp-server/node_modules/is-promise/index.js deleted file mode 100644 index 1bed087..0000000 --- a/mcp-server/node_modules/is-promise/index.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = isPromise; -module.exports.default = isPromise; - -function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} diff --git a/mcp-server/node_modules/is-promise/index.mjs b/mcp-server/node_modules/is-promise/index.mjs deleted file mode 100644 index bf9e99b..0000000 --- a/mcp-server/node_modules/is-promise/index.mjs +++ /dev/null @@ -1,3 +0,0 @@ -export default function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} diff --git a/mcp-server/node_modules/is-promise/package.json b/mcp-server/node_modules/is-promise/package.json deleted file mode 100644 index 2a3c540..0000000 --- a/mcp-server/node_modules/is-promise/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "is-promise", - "version": "4.0.0", - "description": "Test whether an object looks like a promises-a+ promise", - "main": "./index.js", - "scripts": { - "test": "node test" - }, - "files": [ - "index.js", - "index.mjs", - "index.d.ts" - ], - "exports": { - ".": [ - { - "import": "./index.mjs", - "require": "./index.js", - "default": "./index.js" - }, - "./index.js" - ] - }, - "repository": { - "type": "git", - "url": "https://github.com/then/is-promise.git" - }, - "author": "ForbesLindesay", - "license": "MIT" -} diff --git a/mcp-server/node_modules/is-promise/readme.md b/mcp-server/node_modules/is-promise/readme.md deleted file mode 100644 index d53d34b..0000000 --- a/mcp-server/node_modules/is-promise/readme.md +++ /dev/null @@ -1,33 +0,0 @@ - - -# is-promise - - Test whether an object looks like a promises-a+ promise - - [![Build Status](https://img.shields.io/travis/then/is-promise/master.svg)](https://travis-ci.org/then/is-promise) - [![Dependency Status](https://img.shields.io/david/then/is-promise.svg)](https://david-dm.org/then/is-promise) - [![NPM version](https://img.shields.io/npm/v/is-promise.svg)](https://www.npmjs.org/package/is-promise) - - - -## Installation - - $ npm install is-promise - -You can also use it client side via npm. - -## API - -```typescript -import isPromise from 'is-promise'; - -isPromise(Promise.resolve());//=>true -isPromise({then:function () {...}});//=>true -isPromise(null);//=>false -isPromise({});//=>false -isPromise({then: true})//=>false -``` - -## License - - MIT diff --git a/mcp-server/node_modules/json-schema-traverse/.eslintrc.yml b/mcp-server/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index 618559a..0000000 --- a/mcp-server/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 15] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/mcp-server/node_modules/json-schema-traverse/.github/FUNDING.yml b/mcp-server/node_modules/json-schema-traverse/.github/FUNDING.yml deleted file mode 100644 index 44f80f4..0000000 --- a/mcp-server/node_modules/json-schema-traverse/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: epoberezkin -tidelift: "npm/json-schema-traverse" diff --git a/mcp-server/node_modules/json-schema-traverse/.github/workflows/build.yml b/mcp-server/node_modules/json-schema-traverse/.github/workflows/build.yml deleted file mode 100644 index f8ef5ba..0000000 --- a/mcp-server/node_modules/json-schema-traverse/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: build - -on: - push: - branches: [master] - pull_request: - branches: ["*"] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - - name: Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/mcp-server/node_modules/json-schema-traverse/.github/workflows/publish.yml b/mcp-server/node_modules/json-schema-traverse/.github/workflows/publish.yml deleted file mode 100644 index 924825b..0000000 --- a/mcp-server/node_modules/json-schema-traverse/.github/workflows/publish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish - -on: - release: - types: [published] - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm test - - name: Publish beta version to npm - if: "github.event.release.prerelease" - run: npm publish --tag beta - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish to npm - if: "!github.event.release.prerelease" - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/mcp-server/node_modules/json-schema-traverse/LICENSE b/mcp-server/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f15435..0000000 --- a/mcp-server/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/json-schema-traverse/README.md b/mcp-server/node_modules/json-schema-traverse/README.md deleted file mode 100644 index f3e6007..0000000 --- a/mcp-server/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild) -[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse) -[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## Enterprise support - -json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/mcp-server/node_modules/json-schema-traverse/index.d.ts b/mcp-server/node_modules/json-schema-traverse/index.d.ts deleted file mode 100644 index 0772dae..0000000 --- a/mcp-server/node_modules/json-schema-traverse/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -declare function traverse( - schema: traverse.SchemaObject, - opts: traverse.Options, - cb?: traverse.Callback -): void; - -declare function traverse( - schema: traverse.SchemaObject, - cb: traverse.Callback -): void; - -declare namespace traverse { - interface SchemaObject { - $id?: string; - $schema?: string; - [x: string]: any; - } - - type Callback = ( - schema: SchemaObject, - jsonPtr: string, - rootSchema: SchemaObject, - parentJsonPtr?: string, - parentKeyword?: string, - parentSchema?: SchemaObject, - keyIndex?: string | number - ) => void; - - interface Options { - allKeys?: boolean; - cb?: - | Callback - | { - pre?: Callback; - post?: Callback; - }; - } -} - -export = traverse; diff --git a/mcp-server/node_modules/json-schema-traverse/index.js b/mcp-server/node_modules/json-schema-traverse/index.js deleted file mode 100644 index e521bfa..0000000 --- a/mcp-server/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true, - if: true, - then: true, - else: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - $defs: true, - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i - -All JSON Schema documentation and descriptions are copyright (c): - -2009 [draft-0] IETF Trust , Kris Zyp , -and SitePen (USA) . - -2009 [draft-1] IETF Trust , Kris Zyp , -and SitePen (USA) . - -2010 [draft-2] IETF Trust , Kris Zyp , -and SitePen (USA) . - -2010 [draft-3] IETF Trust , Kris Zyp , -Gary Court , and SitePen (USA) . - -2013 [draft-4] IETF Trust ), Francis Galiegue -, Kris Zyp , Gary Court -, and SitePen (USA) . - -2018 [draft-7] IETF Trust , Austin Wright , -Henry Andrews , Geraint Luff , and -Cloudflare, Inc. . - -2019 [draft-2019-09] IETF Trust , Austin Wright -, Henry Andrews , Ben Hutton -, and Greg Dennis . - -2020 [draft-2020-12] IETF Trust , Austin Wright -, Henry Andrews , Ben Hutton -, and Greg Dennis . - -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/mcp-server/node_modules/json-schema-typed/README.md b/mcp-server/node_modules/json-schema-typed/README.md deleted file mode 100644 index 91b643b..0000000 --- a/mcp-server/node_modules/json-schema-typed/README.md +++ /dev/null @@ -1,108 +0,0 @@ -[![npm](https://img.shields.io/npm/v/json-schema-typed.svg?style=flat-square)](https://npmjs.org/package/json-schema-typed) -[![downloads-per-month](https://img.shields.io/npm/dm/json-schema-typed.svg?style=flat-square&label=npm%20downloads)](https://npmjs.org/package/json-schema-typed) -[![License](https://img.shields.io/badge/license-BSD--2--Clause-blue.svg?style=flat-square)][license] - -# JSON Schema Typed - -JSON Schema TypeScript definitions with complete inline documentation. - -**NOTE:** This library only supports defining schemas. You will need a separate -library for data validation. - -There are 3 JSON Schema drafts included in this package: - -- `draft-07` -- `draft-2019-09` -- `draft-2020-12` - -## Install - -```sh -npm install json-schema-typed -``` - -## Usage - -1. Chose which draft you'd like to import. - -- The main package export points to the latest supported stable draft, currently - `draft-2020-12`. Future releases that point the main package export to a new - draft will always incur a bump to the major semantic version. - - ```ts - import { type JSONSchema } from "json-schema-typed"; - ``` - -- Or you can specify the exact draft you need. - ```ts - import { type JSONSchema } from "json-schema-typed/draft-2020-12"; - ``` - -2. Define a schema - - ```ts - import { Format, type JSONSchema } from "json-schema-typed"; - - const schema: JSONSchema = { - properties: { - email: { - format: Format.Email, - type: "string", - }, - }, - type: "object", - }; - - // The JSONSchema namespace also provides type-specific narrowed interfaces - const stringSchema: JSONSchema.String = { - // Only { type: "string" } and common keywords are allowed - maxLength: 100, - type: "string", - }; - ``` - -## Upgrading - -Version `8.0.0` has breaking changes from the previous release. - -- Now a - [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). -- Many exports were renamed. The table below reflects the new export names. - These are considered final and unlikely to change in future releases. -- The `JSONSchema` type was changed from an `interface` to a `type` which is a - mixed union that allows `boolean` values in order to properly align with the - JSON Schema spec. If you were previously extending the `JSONSchema` interface, - you can access the `interface` directly with `JSONSchema.Interface`. -- The previous main package export pointed to Draft 7. Import it directly if you - need to continue using it: - ```ts - import { type JSONSchema } from "json-schema-typed/draft-07"; - ``` - -## Exports supported in each draft module - -| Name | Type | Purpose | -| ----------------- | --------------- | ------------------------------------------------------------------ | -| `$schema` | `string` | Draft meta schema URL that can be used with the `$schema` keyword. | -| `ContentEncoding` | Enum object | String content encoding strategies. | -| `draft` | `string` | Draft version. | -| `Format` | Enum object | String formats. | -| `JSONSchema` | TypeScript Type | Used to define a JSON Schema. | -| `keywords` | `string[]` | All the keywords for the imported draft. | -| `TypeName` | Enum object | Simple type names for the `type` keyword. | - -## Versioning - -This library follows [semantic versioning](https://semver.org). - ---- - -## Maintainers - -- [Remy Rylan](https://github.com/RemyRylan) - -## License - -[BSD-2-Clause][license] - -[license]: https://github.com/RemyRylan/json-schema-typed/blob/main/dist/node/LICENSE.md diff --git a/mcp-server/node_modules/json-schema-typed/draft_07.d.ts b/mcp-server/node_modules/json-schema-typed/draft_07.d.ts deleted file mode 100644 index 0fdcea0..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_07.d.ts +++ /dev/null @@ -1,882 +0,0 @@ -export declare const draft: "7"; -export declare const $schema: "https://json-schema.org/draft-07/schema"; -type MaybeReadonlyArray = Array | ReadonlyArray; -type ValueOf = T[keyof T]; -/** - * JSON Schema [Draft 7](https://json-schema.org/draft-07/json-schema-validation.html) - */ -export type JSONSchema ? "object" : JSONSchema.TypeValue> = boolean | { - /** - * This keyword is reserved for comments from schema authors to readers or - * maintainers of the schema. The value of this keyword MUST be a string. - * Implementations MUST NOT present this string to end users. Tools for - * editing schemas SHOULD support displaying and editing this keyword. - * - * The value of this keyword MAY be used in debug or error output which is - * intended for developers making use of schemas. Schema vocabularies - * SHOULD allow `comment` within any object containing vocabulary - * keywords. - * - * Implementations MAY assume `comment` is allowed unless the vocabulary - * specifically forbids it. Vocabularies MUST NOT specify any effect of - * `comment` beyond what is described in this specification. Tools that - * translate other media types or programming languages to and from - * `application/schema+json` MAY choose to convert that media type or - * programming language's native comments to or from `comment` values. - * - * The behavior of such translation when both native comments and - * `comment` properties are present is implementation-dependent. - * Implementations SHOULD treat `comment` identically to an unknown - * extension keyword. - * - * They MAY strip `comment` values at any point during processing. In - * particular, this allows for shortening schemas when the size of deployed - * schemas is a concern. Implementations MUST NOT take any other action - * based on the presence, absence, or contents of `comment` properties. - */ - $comment?: string; - /** - * The `$id` keyword defines a URI for the schema, and the base URI that - * other URI references within the schema are resolved against. A - * subschema's `$id` is resolved against the base URI of its parent - * schema. If no parent sets an explicit base with `$id`, the base URI is - * that of the entire document, as determined per - * [RFC 3986 section 5][RFC3986]. - * - * If present, the value for this keyword MUST be a string, and MUST - * represent a valid [URI-reference][RFC3986]. This value SHOULD be - * normalized, and SHOULD NOT be an empty fragment `#` or an empty string. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri-reference" - */ - $id?: string; - /** - * The `$ref` keyword is used to reference a schema, and provides the - * ability to validate recursive structures through self-reference. - * - * An object schema with a `$ref` property MUST be interpreted as a - * `$ref` reference. The value of the `$ref` property MUST be a URI - * Reference. Resolved against the current URI base, it identifies the URI - * of a schema to use. All other properties in a `$ref` object MUST be - * ignored. - * - * The URI is not a network locator, only an identifier. A schema need not - * be downloadable from the address if it is a network-addressable URL, and - * implementations SHOULD NOT assume they should perform a network - * operation when they encounter a network-addressable URI. - * - * A schema MUST NOT be run into an infinite loop against a schema. For - * example, if two schemas `"#alice"` and `"#bob"` both have an - * `allOf` property that refers to the other, a naive validator might get - * stuck in an infinite recursive loop trying to validate the instance. - * Schemas SHOULD NOT make use of infinite recursive nesting like this; the - * behavior is undefined. - * - * @format "uri-reference" - */ - $ref?: string; - /** - * The `$schema` keyword is both used as a JSON Schema version identifier - * and the location of a resource which is itself a JSON Schema, which - * describes any schema written for this particular version. - * - * The value of this keyword MUST be a [URI][RFC3986] (containing a scheme) - * and this URI MUST be normalized. The current schema MUST be valid - * against the meta-schema identified by this URI. - * - * If this URI identifies a retrievable resource, that resource SHOULD be - * of media type `application/schema+json`. - * - * The `$schema` keyword SHOULD be used in a root schema. It MUST NOT - * appear in subschemas. - * - * Values for this property are defined in other documents and by other - * parties. JSON Schema implementations SHOULD implement support for - * current and previous published drafts of JSON Schema vocabularies as - * deemed reasonable. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri" - */ - $schema?: string; - /** - * The value of `additionalItems` MUST be a valid JSON Schema. - * - * This keyword determines how child instances validate for arrays, and - * does not directly validate the immediate instance itself. - * - * If `items` is an array of schemas, validation succeeds if every - * instance element at a position greater than the size of `items` - * validates against `additionalItems`. - * - * Otherwise, `additionalItems` MUST be ignored, as the `items` schema - * (possibly the default value of an empty schema) is applied to all - * elements. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - additionalItems?: JSONSchema; - /** - * The value of `additionalProperties` MUST be a valid JSON Schema. - * - * This keyword determines how child instances validate for objects, and - * does not directly validate the immediate instance itself. - * - * Validation with `additionalProperties` applies only to the child - * values of instance names that do not match any names in `properties`, - * and do not match any regular expression in `patternProperties`. - * - * For all such properties, validation succeeds if the child instance - * validates against the `additionalProperties` schema. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - additionalProperties?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against all schemas defined by this keyword's value. - */ - allOf?: MaybeReadonlyArray>; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against at least one schema defined by this keyword's - * value. - */ - anyOf?: MaybeReadonlyArray>; - /** - * An instance validates successfully against this keyword if its value is - * equal to the value of the keyword. - * - * Use of this keyword is functionally equivalent to the `enum` keyword - * with a single value. - */ - const?: Value; - /** - * The value of this keyword MUST be a valid JSON Schema. - * - * An array instance is valid against `contains` if at least one of its - * elements is valid against the given schema. - */ - contains?: JSONSchema; - /** - * If the instance value is a string, this property defines that the - * string SHOULD be interpreted as binary data and decoded using the - * encoding named by this property. [RFC 2045, Sec 6.1][RFC2045] lists the - * possible values for this property. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * [RFC2045]: https://datatracker.ietf.org/doc/html/rfc2045#section-6.1 - */ - contentEncoding?: "7bit" | "8bit" | "base64" | "binary" | "ietf-token" | "quoted-printable" | "x-token"; - /** - * The value of this property must be a media type, as defined by - * [RFC 2046][RFC2046]. This property defines the media type of instances - * which this schema defines. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * If the `contentEncoding` property is not present, but the instance - * value is a string, then the value of this property SHOULD specify a text - * document type, and the character set SHOULD be the character set into - * which the JSON string value was decoded (for which the default is - * Unicode). - * - * [RFC2046]: https://datatracker.ietf.org/doc/html/rfc2046 - */ - contentMediaType?: string; - /** - * This keyword can be used to supply a default JSON value associated with - * a particular schema. It is RECOMMENDED that a `default` value be valid - * against the associated schema. - */ - default?: Value; - /** - * The `definitions` keywords provides a standardized location for schema - * authors to inline re-usable JSON Schemas into a more general schema. The - * keyword does not directly affect the validation result. - * - * This keyword's value MUST be an object. Each member value of this object - * MUST be a valid JSON Schema. - */ - definitions?: Record; - /** - * This keyword specifies rules that are evaluated if the instance is an - * object and contains a certain property. - * - * This keyword's value MUST be an object. Each property specifies a - * dependency. Each dependency value MUST be an array or a valid JSON - * Schema. - * - * If the dependency value is a subschema, and the dependency key is a - * property in the instance, the entire instance must validate against the - * dependency value. - * - * If the dependency value is an array, each element in the array, if any, - * MUST be a string, and MUST be unique. If the dependency key is a - * property in the instance, each of the items in the dependency value must - * be a property that exists in the instance. - * - * Omitting this keyword has the same behavior as an empty object. - */ - dependencies?: Record | JSONSchema>; - /** - * Can be used to decorate a user interface with explanation or information - * about the data produced. - */ - description?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance fails to validate against its - * subschema, then validation succeeds against this keyword if the instance - * successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * successfully validates against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - else?: JSONSchema; - /** - * The value of this keyword MUST be an array. This array SHOULD have at - * least one element. Elements in the array SHOULD be unique. - * - * An instance validates successfully against this keyword if its value is - * equal to one of the elements in this keyword's array value. - * - * Elements in the array might be of any type, including `null`. - */ - enum?: MaybeReadonlyArray; - /** - * The value of this keyword MUST be an array. When multiple occurrences of - * this keyword are applicable to a single sub-instance, implementations - * MUST provide a flat array of all values rather than an array of arrays. - * - * This keyword can be used to provide sample JSON values associated with a - * particular schema, for the purpose of illustrating usage. It is - * RECOMMENDED that these values be valid against the associated schema. - * - * Implementations MAY use the value(s) of `default`, if present, as an - * additional example. If `examples` is absent, `default` MAY still be - * used in this manner. - */ - examples?: MaybeReadonlyArray; - /** - * The value of `exclusiveMaximum` MUST be a number, representing an - * exclusive upper limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly less than (not equal to) `exclusiveMaximum`. - */ - exclusiveMaximum?: number; - /** - * The value of `exclusiveMinimum` MUST be a number, representing an - * exclusive lower limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly greater than (not equal to) `exclusiveMinimum`. - */ - exclusiveMinimum?: number; - /** - * The `format` keyword functions as both an [annotation][annotation] and - * as an [assertion][assertion]. While no special effort is required to - * implement it as an annotation conveying semantic meaning, implementing - * validation is non-trivial. - * - * Implementations MAY support the `format` keyword as a validation - * assertion. - * - * Implementations MAY add custom `format` attributes. Save for agreement - * between parties, schema authors SHALL NOT expect a peer implementation - * to support this keyword and/or custom `format` attributes. - * - * [annotation]: https://json-schema.org/draft-07/json-schema-validation.html#annotations - * [assertion]: https://json-schema.org/draft-07/json-schema-validation.html#assertions - */ - format?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * This validation outcome of this keyword's subschema has no direct effect - * on the overall validation result. Rather, it controls which of the - * `then` or `else` keywords are evaluated. - * - * Instances that successfully validate against this keyword's subschema - * MUST also be valid against the subschema value of the `then` keyword, - * if present. - * - * Instances that fail to validate against this keyword's subschema MUST - * also be valid against the subschema value of the `else` keyword, if - * present. - * - * If [annotations][annotations] are being collected, they are collected - * from this keyword's subschema in the usual way, including when the - * keyword is present without either `then` or `else`. - * - * [annotations]: https://json-schema.org/draft-07/json-schema-validation.html#annotations - */ - if?: JSONSchema; - /** - * The value of `items` MUST be either a valid JSON Schema or an array of - * valid JSON Schemas. - * - * This keyword determines how child instances validate for arrays, and - * does not directly validate the immediate instance itself. - * - * If `items` is a schema, validation succeeds if all elements in the - * array successfully validate against that schema. - * - * If `items` is an array of schemas, validation succeeds if each element - * of the instance validates against the schema at the same position, if - * any. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - items?: MaybeReadonlyArray | JSONSchema; - /** - * The value of `maximum` MUST be a number, representing an inclusive - * upper limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is less than or exactly equal to `maximum`. - */ - maximum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `maxItems` if its size is less - * than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is less - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 7159][RFC7159]. - * - * [RFC7159]: https://datatracker.ietf.org/doc/html/rfc7159 - * - * @minimum 0 - */ - maxLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `maxProperties` if its number of - * `properties` is less than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxProperties?: number; - /** - * The value of `minimum` MUST be a number, representing an inclusive - * lower limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is greater than or exactly equal to `minimum`. - */ - minimum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `minItems` if its size is greater - * than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is greater - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 7159][RFC7159]. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * [RFC7159]: https://datatracker.ietf.org/doc/html/rfc7159 - * - * @default 0 - * @minimum 0 - */ - minLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `minProperties` if its number of - * `properties` is greater than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minProperties?: number; - /** - * The value of `multipleOf` MUST be a number, strictly greater than - * `0`. - * - * A numeric instance is valid only if division by this keyword's value - * results in an integer. - * - * @exclusiveMinimum 0 - */ - multipleOf?: number; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * An instance is valid against this keyword if it fails to validate - * successfully against the schema defined by this keyword. - */ - not?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against exactly one schema defined by this keyword's value. - */ - oneOf?: MaybeReadonlyArray>; - /** - * The value of this keyword MUST be a string. This string SHOULD be a - * valid regular expression, according to the [ECMA-262][ecma262] regular - * expression dialect. - * - * A string instance is considered valid if the regular expression matches - * the instance successfully. Recall: regular expressions are not - * implicitly anchored. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * - * @format "regex" - */ - pattern?: string; - /** - * The value of `patternProperties` MUST be an object. Each property name - * of this object SHOULD be a valid regular expression, according to the - * [ECMA-262][ecma262] regular expression dialect. Each property value of - * this object MUST be a valid JSON Schema. - * - * This keyword determines how child instances validate for objects, and - * does not directly validate the immediate instance itself. Validation of - * the primitive instance type against this keyword always succeeds. - * - * Validation succeeds if, for each instance name that matches any regular - * expressions that appear as a property name in this keyword's value, the - * child instance for that name successfully validates against each schema - * that corresponds to a matching regular expression. - * - * Omitting this keyword has the same behavior as an empty object. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - */ - patternProperties?: Record; - /** - * The value of `properties` MUST be an object. Each value of this object - * MUST be a valid JSON Schema. - * - * This keyword determines how child instances validate for objects, and - * does not directly validate the immediate instance itself. - * - * Validation succeeds if, for each name that appears in both the instance - * and as a name within this keyword's value, the child instance for that - * name successfully validates against the corresponding schema. - * - * Omitting this keyword has the same behavior as an empty object. - */ - properties?: Record; - /** - * The value of `propertyNames` MUST be a valid JSON Schema. - * - * If the instance is an object, this keyword validates if every property - * name in the instance validates against the provided schema. Note the - * property name that the schema is testing will always be a string. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - propertyNames?: JSONSchema; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword are applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `readOnly` has a value of boolean `true`, it indicates that the - * value of the instance is managed exclusively by the owning authority, - * and attempts by an application to modify the value of this property are - * expected to be ignored or rejected by that owning authority. - * - * An instance document that is marked as `readOnly` for the entire - * document MAY be ignored if sent to the owning authority, or MAY result - * in an error, at the authority's discretion. - * - * For example, `readOnly` would be used to mark a database-generated - * serial number as read-only. - * - * This keyword can be used to assist in user interface instance - * generation. - * - * @default false - */ - readOnly?: boolean; - /** - * The value of this keyword MUST be an array. Elements of this array, if - * any, MUST be strings, and MUST be unique. - * - * An object instance is valid against this keyword if every item in the - * array is the name of a property in the instance. - * - * Omitting this keyword has the same behavior as an empty array. - */ - required?: MaybeReadonlyArray; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance successfully validates against - * its subschema, then validation succeeds against this keyword if the - * instance also successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * fails to validate against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - then?: JSONSchema; - /** - * Can be used to decorate a user interface with a short label about the - * data produced. - */ - title?: string; - /** - * The value of this keyword MUST be either a string or an array. If it is - * an array, elements of the array MUST be strings and MUST be unique. - * - * String values MUST be one of the six primitive types (`"null"`, - * `"boolean"`, `"object"`, `"array"`, `"number"`, or - * `"string"`), or `"integer"` which matches any number with a zero - * fractional part. - * - * An instance validates if and only if the instance is in any of the sets - * listed for this keyword. - */ - type?: SchemaType; - /** - * The value of this keyword MUST be a boolean. - * - * If this keyword has boolean value `false`, the instance validates - * successfully. If it has boolean value `true`, the instance validates - * successfully if all of its elements are unique. - * - * Omitting this keyword has the same behavior as a value of `false`. - * - * @default false - */ - uniqueItems?: boolean; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword is applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `writeOnly` has a value of boolean `true`, it indicates that the - * value is never present when the instance is retrieved from the owning - * authority. It can be present when sent to the owning authority to update - * or create the document (or the resource it represents), but it will not - * be included in any updated or newly created version of the instance. - * - * An instance document that is marked as `writeOnly` for the entire - * document MAY be returned as a blank document of some sort, or MAY - * produce an error upon retrieval, or have the retrieval request ignored, - * at the authority's discretion. - * - * For example, `writeOnly` would be used to mark a password input field. - * - * These keywords can be used to assist in user interface instance - * generation. In particular, an application MAY choose to use a widget - * that hides input values as they are typed for write-only fields. - * - * @default false - */ - writeOnly?: boolean; -}; -export declare namespace JSONSchema { - type TypeValue = ValueOf | TypeName | Array | TypeName> | ReadonlyArray | TypeName>; - /** - * JSON Schema interface - */ - type Interface = Exclude, boolean>; - type Array = Pick, KeywordByType.Any | KeywordByType.Array>; - type Boolean = Pick, KeywordByType.Any>; - type Integer = Pick, KeywordByType.Any | KeywordByType.Number>; - type Number = Pick, KeywordByType.Any | KeywordByType.Number>; - type Null = Pick, KeywordByType.Any>; - type Object = Pick, KeywordByType.Any | KeywordByType.Object>; - type String = Pick, KeywordByType.Any | KeywordByType.String>; -} -declare namespace KeywordByType { - type Any = "$comment" | "$id" | "$ref" | "$schema" | "allOf" | "anyOf" | "const" | "default" | "definitions" | "description" | "else" | "enum" | "examples" | "if" | "not" | "oneOf" | "readOnly" | "then" | "title" | "type" | "writeOnly"; - type Array = "additionalItems" | "contains" | "items" | "maxItems" | "minItems" | "uniqueItems"; - type Number = "exclusiveMaximum" | "exclusiveMinimum" | "maximum" | "minimum" | "multipleOf"; - type Object = "additionalProperties" | "dependencies" | "maxProperties" | "minProperties" | "patternProperties" | "properties" | "propertyNames" | "required"; - type String = "contentEncoding" | "contentMediaType" | "format" | "maxLength" | "minLength" | "pattern"; -} -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export declare enum ContentEncoding { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - "7bit" = "7bit", - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - "8bit" = "8bit", - /** - * Useful for data that is mostly non-text. - */ - Base64 = "base64", - /** - * Same character set as 8bit, with no line length restriction. - */ - Binary = "binary", - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - IETFToken = "ietf-token", - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - QuotedPrintable = "quoted-printable", - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - XToken = "x-token" -} -/** - * This enum provides well-known formats that apply to strings. - */ -export declare enum Format { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Date = "date", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - DateTime = "date-time", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 5322, section 3.4.1][RFC5322]. - * - * [RFC5322]: https://datatracker.ietf.org/doc/html/rfc5322 - */ - Email = "email", - /** - * As defined by [RFC 1034, section 3.1][RFC1034], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1034]: https://datatracker.ietf.org/doc/html/rfc1034 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Hostname = "hostname", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 6531][RFC6531]. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - IDNEmail = "idn-email", - /** - * As defined by either [RFC 1034, section 3.1][RFC1034] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1034]: https://datatracker.ietf.org/doc/html/rfc1034 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - IDNHostname = "idn-hostname", - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - IPv4 = "ipv4", - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - IPv6 = "ipv6", - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRI = "iri", - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRIReference = "iri-reference", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointer = "json-pointer", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointerURIFragment = "json-pointer-uri-fragment", - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft-07/json-schema-validation.html#regexInterop - */ - RegEx = "regex", - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - RelativeJSONPointer = "relative-json-pointer", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Time = "time", - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URI = "uri", - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URIReference = "uri-reference", - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - URITemplate = "uri-template", - /** - * UUID - */ - UUID = "uuid" -} -/** - * Enum consisting of simple type names for the `type` keyword - */ -export declare enum TypeName { - /** - * Value MUST be an array. - */ - Array = "array", - /** - * Value MUST be a boolean. - */ - Boolean = "boolean", - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - Integer = "integer", - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - Null = "null", - /** - * Value MUST be a number, floating point numbers are allowed. - */ - Number = "number", - /** - * Value MUST be an object. - */ - Object = "object", - /** - * Value MUST be a string. - */ - String = "string" -} -export declare const keywords: readonly ["$comment", "$id", "$ref", "$schema", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "default", "definitions", "dependencies", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maximum", "maxItems", "maxLength", "maxProperties", "minimum", "minItems", "minLength", "minProperties", "multipleOf", "not", "oneOf", "pattern", "patternProperties", "properties", "propertyNames", "readOnly", "required", "then", "title", "type", "uniqueItems", "writeOnly"]; -export {}; diff --git a/mcp-server/node_modules/json-schema-typed/draft_07.js b/mcp-server/node_modules/json-schema-typed/draft_07.js deleted file mode 100644 index 55ef88a..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_07.js +++ /dev/null @@ -1,328 +0,0 @@ -// @generated -// This code is automatically generated. Manual editing is not recommended. -/* - * BSD-2-Clause License - * - * Original source code is copyright (c) 2019-2025 Remy Rylan - * - * - * Documentation and keyword descriptions are copyright (c) 2018 IETF Trust - * , Austin Wright , Henry Andrews - * , Geraint Luff , and Cloudflare, - * Inc. . All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -export const draft = "7"; -export const $schema = "https://json-schema.org/draft-07/schema"; -// ----------------------------------------------------------------------------- -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export var ContentEncoding; -(function (ContentEncoding) { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["7bit"] = "7bit"; - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["8bit"] = "8bit"; - /** - * Useful for data that is mostly non-text. - */ - ContentEncoding["Base64"] = "base64"; - /** - * Same character set as 8bit, with no line length restriction. - */ - ContentEncoding["Binary"] = "binary"; - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - ContentEncoding["IETFToken"] = "ietf-token"; - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - ContentEncoding["QuotedPrintable"] = "quoted-printable"; - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - ContentEncoding["XToken"] = "x-token"; -})(ContentEncoding || (ContentEncoding = {})); -/** - * This enum provides well-known formats that apply to strings. - */ -export var Format; -(function (Format) { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Date"] = "date"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["DateTime"] = "date-time"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 5322, section 3.4.1][RFC5322]. - * - * [RFC5322]: https://datatracker.ietf.org/doc/html/rfc5322 - */ - Format["Email"] = "email"; - /** - * As defined by [RFC 1034, section 3.1][RFC1034], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1034]: https://datatracker.ietf.org/doc/html/rfc1034 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Format["Hostname"] = "hostname"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 6531][RFC6531]. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - Format["IDNEmail"] = "idn-email"; - /** - * As defined by either [RFC 1034, section 3.1][RFC1034] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1034]: https://datatracker.ietf.org/doc/html/rfc1034 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - Format["IDNHostname"] = "idn-hostname"; - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - Format["IPv4"] = "ipv4"; - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - Format["IPv6"] = "ipv6"; - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRI"] = "iri"; - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRIReference"] = "iri-reference"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointer"] = "json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointerURIFragment"] = "json-pointer-uri-fragment"; - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft-07/json-schema-validation.html#regexInterop - */ - Format["RegEx"] = "regex"; - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - Format["RelativeJSONPointer"] = "relative-json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Time"] = "time"; - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URI"] = "uri"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URIReference"] = "uri-reference"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - Format["URITemplate"] = "uri-template"; - /** - * UUID - */ - Format["UUID"] = "uuid"; -})(Format || (Format = {})); -/** - * Enum consisting of simple type names for the `type` keyword - */ -export var TypeName; -(function (TypeName) { - /** - * Value MUST be an array. - */ - TypeName["Array"] = "array"; - /** - * Value MUST be a boolean. - */ - TypeName["Boolean"] = "boolean"; - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - TypeName["Integer"] = "integer"; - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - TypeName["Null"] = "null"; - /** - * Value MUST be a number, floating point numbers are allowed. - */ - TypeName["Number"] = "number"; - /** - * Value MUST be an object. - */ - TypeName["Object"] = "object"; - /** - * Value MUST be a string. - */ - TypeName["String"] = "string"; -})(TypeName || (TypeName = {})); -// ----------------------------------------------------------------------------- -// Keywords -// ----------------------------------------------------------------------------- -export const keywords = [ - "$comment", - "$id", - "$ref", - "$schema", - "additionalItems", - "additionalProperties", - "allOf", - "anyOf", - "const", - "contains", - "contentEncoding", - "contentMediaType", - "default", - "definitions", - "dependencies", - "description", - "else", - "enum", - "examples", - "exclusiveMaximum", - "exclusiveMinimum", - "format", - "if", - "items", - "maximum", - "maxItems", - "maxLength", - "maxProperties", - "minimum", - "minItems", - "minLength", - "minProperties", - "multipleOf", - "not", - "oneOf", - "pattern", - "patternProperties", - "properties", - "propertyNames", - "readOnly", - "required", - "then", - "title", - "type", - "uniqueItems", - "writeOnly", -]; diff --git a/mcp-server/node_modules/json-schema-typed/draft_2019_09.d.ts b/mcp-server/node_modules/json-schema-typed/draft_2019_09.d.ts deleted file mode 100644 index b3368c7..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_2019_09.d.ts +++ /dev/null @@ -1,1247 +0,0 @@ -export declare const draft: "2019-09"; -export declare const $schema: "https://json-schema.org/draft/2019-09/schema"; -type MaybeReadonlyArray = Array | ReadonlyArray; -type ValueOf = T[keyof T]; -/** - * JSON Schema [Draft 2019-09](https://json-schema.org/draft/2019-09/json-schema-validation.html) - */ -export type JSONSchema ? "object" : JSONSchema.TypeValue> = boolean | { - /** - * Using JSON Pointer fragments requires knowledge of the structure of the - * schema. When writing schema documents with the intention to provide - * re-usable schemas, it may be preferable to use a plain name fragment - * that is not tied to any particular structural location. This allows a - * subschema to be relocated without requiring JSON Pointer references to - * be updated. - * - * The `$anchor` keyword is used to specify such a fragment. It is an - * identifier keyword that can only be used to create plain name fragments. - * - * If present, the value of this keyword MUST be a string, which MUST start - * with a letter `[A-Za-z]`, followed by any number of letters, digits - * `[0-9]`, hyphens `-`, underscores `_`, colons `:`, - * or periods `.`. - * - * Note that the anchor string does not include the `#` character, - * as it is not a URI-reference. An `{"$anchor": "foo"}` becomes the - * fragment `#foo` when used in a URI. - * - * The base URI to which the resulting fragment is appended is determined - * by the `$id` keyword as explained in the previous section. - * Two `$anchor` keywords in the same schema document MAY have the same - * value if they apply to different base URIs, as the resulting full URIs - * will be distinct. However, the effect of two `$anchor` keywords - * with the same value and the same base URI is undefined. Implementations - * MAY raise an error if such usage is detected. - */ - $anchor?: string; - /** - * This keyword reserves a location for comments from schema authors - * to readers or maintainers of the schema. - * - * The value of this keyword MUST be a string. Implementations MUST NOT - * present this string to end users. Tools for editing schemas SHOULD - * support displaying and editing this keyword. The value of this keyword - * MAY be used in debug or error output which is intended for developers - * making use of schemas. - * - * Schema vocabularies SHOULD allow `$comment` within any object - * containing vocabulary keywords. Implementations MAY assume `$comment` - * is allowed unless the vocabulary specifically forbids it. Vocabularies - * MUST NOT specify any effect of `$comment` beyond what is described in - * this specification. - * - * Tools that translate other media types or programming languages - * to and from `application/schema+json` MAY choose to convert that media - * type or programming language's native comments to or from `$comment` - * values. The behavior of such translation when both native comments and - * `$comment` properties are present is implementation-dependent. - * - * Implementations SHOULD treat `$comment` identically to an unknown - * extension keyword. They MAY strip `$comment` values at any point - * during processing. In particular, this allows for shortening schemas - * when the size of deployed schemas is a concern. - * - * Implementations MUST NOT take any other action based on the presence, - * absence, or contents of `$comment` properties. In particular, the - * value of `$comment` MUST NOT be collected as an annotation result. - */ - $comment?: string; - /** - * The `$defs` keywords provides a standardized location for schema - * authors to inline re-usable JSON Schemas into a more general schema. The - * keyword does not directly affect the validation result. - * - * This keyword's value MUST be an object. Each member value of this object - * MUST be a valid JSON Schema. - */ - $defs?: Record; - /** - * The `$id` keyword identifies a schema resource with its - * [canonical][[RFC6596]] URI. - * - * Note that this URI is an identifier and not necessarily a network - * locator. In the case of a network-addressable URL, a schema need not be - * downloadable from its canonical URI. - * - * If present, the value for this keyword MUST be a string, and MUST - * represent a valid [URI-reference][RFC3986]. This URI-reference SHOULD - * be normalized, and MUST resolve to an [absolute-URI][RFC3986] (without a - * fragment). Therefore, `$id` MUST NOT contain a non-empty fragment, - * and SHOULD NOT contain an empty fragment. - * - * Since an empty fragment in the context of the - * `application/schema+json` media type refers to the same resource as - * the base URI without a fragment, an implementation MAY normalize a URI - * ending with an empty fragment by removing the fragment. However, schema - * authors SHOULD NOT rely on this behavior across implementations. - * - * This URI also serves as the base URI for relative URI-references in - * keywords within the schema resource, in accordance with - * [RFC 3986][RFC3986] section 5.1.1 regarding base URIs embedded in - * content. - * - * The presence of `$id` in a subschema indicates that the subschema - * constitutes a distinct schema resource within a single schema document. - * Furthermore, in accordance with [RFC 3986][RFC3986] section 5.1.2 - * regarding encapsulating entities, if an `$id` in a subschema is a - * relative URI-reference, the base URI for resolving that reference is the - * URI of the parent schema resource. - * - * If no parent schema object explicitly identifies itself as a resource - * with `$id`, the base URI is that of the entire document. - * - * The root schema of a JSON Schema document SHOULD contain an `$id` - * keyword with an [absolute-URI][RFC3986] (containing a scheme, but no - * fragment). - * - * [RFC6596]: https://datatracker.ietf.org/doc/html/rfc6596 - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri-reference" - */ - $id?: string; - /** - * The value of the `$recursiveAnchor` property MUST be a boolean. - * - * `$recursiveAnchor` is used to dynamically identify a base URI at - * runtime for `$recursiveRef` by marking where such a calculation can - * start, and where it stops. This keyword MUST NOT affect the base URI of - * other keywords, unless they are explicitly defined to rely on it. - * - * If set to `true`, then when the containing schema object is used as a - * target of `$recursiveRef`, a new base URI is determined by examining - * the [dynamic scope][scopes] for the outermost schema that also contains - * `$recursiveAnchor` with a value of `true`. The base URI of that - * schema is then used as the dynamic base URI. - * - * - If no such schema exists, then the base URI is unchanged. - * - If this keyword is set to `false`, the base URI is unchanged. - * - * Omitting this keyword has the same behavior as a value of `false`. - * - * [scopes]: https://json-schema.org/draft/2019-09/json-schema-core.html#scopes - */ - $recursiveAnchor?: boolean; - /** - * The value of the `$recursiveRef` property MUST be a string which is - * a URI-reference. It is a by-reference applicator that uses a - * dynamically calculated base URI to resolve its value. - * - * The behavior of this keyword is defined only for the value `"#"`. - * Implementations MAY choose to consider other values to be errors. - * - * The value of `$recursiveRef` is initially resolved against the - * current base URI, in the same manner as for `$ref`. - * - * The schema identified by the resulting URI is examined for the - * presence of `$recursiveAnchor`, and a new base URI is calculated. - * - * Finally, the value of `$recursiveRef` is resolved against the new base - * URI determined according to `$recursiveAnchor` producing the final - * resolved reference URI. - * - * Note that in the absence of `$recursiveAnchor` (and in some cases - * when it is present), `$recursiveRef`'s behavior is identical to - * that of `$ref`. - * - * As with `$ref`, the results of this keyword are the results of the - * referenced schema. - * - * @format "uri-reference" - */ - $recursiveRef?: string; - /** - * The `$ref` keyword is an applicator that is used to reference a - * statically identified schema. Its results are the results of the - * referenced schema. Other keywords can appear alongside of `$ref` in - * the same schema object. - * - * The value of the `$ref` property MUST be a string which is a - * URI-Reference. Resolved against the current URI base, it produces the - * URI of the schema to apply. - * - * @format "uri-reference" - */ - $ref?: string; - /** - * The `$schema` keyword is both used as a JSON Schema version identifier - * and the location of a resource which is itself a JSON Schema, which - * describes any schema written for this particular version. - * - * The value of this keyword MUST be a [URI][RFC3986] (containing a scheme) - * and this URI MUST be normalized. The current schema MUST be valid - * against the meta-schema identified by this URI. - * - * If this URI identifies a retrievable resource, that resource SHOULD be - * of media type `application/schema+json`. - * - * The `$schema` keyword SHOULD be used in a resource root schema. - * It MUST NOT appear in resource subschemas. If absent from the root - * schema, the resulting behavior is implementation-defined. - * - * If multiple schema resources are present in a single document, then all - * schema resources SHOULD Have the same value for `$schema`. The result - * of differing values for "$schema" within the same schema document is - * implementation-defined. - * - * Values for this property are defined elsewhere in this and other - * documents, and by other parties. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri" - */ - $schema?: string; - /** - * The `$vocabulary` keyword is used in meta-schemas to identify the - * vocabularies available for use in schemas described by that meta-schema. - * It is also used to indicate whether each vocabulary is required or - * optional, in the sense that an implementation MUST understand the - * required vocabularies in order to successfully process the schema. - * - * The value of this keyword MUST be an object. The property names in the - * object MUST be URIs (containing a scheme) and this URI MUST be - * normalized. Each URI that appears as a property name identifies a - * specific set of keywords and their semantics. - * - * The URI MAY be a URL, but the nature of the retrievable resource is - * currently undefined, and reserved for future use. Vocabulary authors - * MAY use the URL of the vocabulary specification, in a human-readable - * media type such as `text/html` or `text/plain`, as the vocabulary - * URI. - * - * The values of the object properties MUST be booleans. - * If the value is `true`, then implementations that do not recognize - * the vocabulary MUST refuse to process any schemas that declare - * this meta-schema with "$schema". If the value is `false`, - * implementations that do not recognize the vocabulary SHOULD proceed with - * processing such schemas. - * - * Unrecognized keywords SHOULD be ignored. This remains the case for - * keywords defined by unrecognized vocabularies. It is not currently - * possible to distinguish between unrecognized keywords that are defined - * in vocabularies from those that are not part of any vocabulary. - * - * The `$vocabulary` keyword SHOULD be used in the root schema of any - * schema document intended for use as a meta-schema. It MUST NOT appear - * in subschemas. - * - * The `$vocabulary` keyword MUST be ignored in schema documents that are - * not being processed as a meta-schema. - */ - $vocabulary?: Record; - /** - * The value of `additionalItems` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the presence and annotation - * result of `items` within the same schema object. - * If `items` is present, and its annotation result is a number, - * validation succeeds if every instance element at an index greater than - * that number validates against `additionalItems`. - * - * Otherwise, if `items` is absent or its annotation result is the - * boolean `true`, `additionalItems` MUST be ignored. - * - * If the `additionalItems` subschema is applied to any positions within - * the instance array, it produces an annotation result of boolean - * `true`, analogous to the single schema behavior of `items`. If any - * `additionalItems` keyword from any subschema applied to the same - * instance location produces an annotation value of `true`, then the - * combined result from these keywords is also `true`. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations MAY choose to implement or optimize this keyword in - * another way that produces the same effect, such as by directly - * checking for the presence and size of an `items` array. - */ - additionalItems?: JSONSchema; - /** - * The value of `additionalProperties` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the presence and annotation - * results of `properties` and `patternProperties` within the same - * schema object. Validation with `additionalProperties` applies only to - * the child values of instance names that do not appear in the annotation - * results of either `properties` or `patternProperties`. - * - * For all such properties, validation succeeds if the child instance - * validates against the `additionalProperties` schema. - * - * The annotation result of this keyword is the set of instance property - * names validated by this keyword's subschema. Annotation results for - * `additionalProperties` keywords from multiple schemas applied to the - * same instance location are combined by taking the union of the sets. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations MAY choose to implement or optimize this keyword in - * another way that produces the same effect, such as by directly checking - * the names in `properties` and the patterns in `patternProperties` - * against the instance property set. - */ - additionalProperties?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against all schemas defined by this keyword's value. - */ - allOf?: MaybeReadonlyArray>; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against at least one schema defined by this keyword's - * value. - */ - anyOf?: MaybeReadonlyArray>; - /** - * An instance validates successfully against this keyword if its value is - * equal to the value of the keyword. - * - * Use of this keyword is functionally equivalent to the `enum` keyword - * with a single value. - */ - const?: Value; - /** - * An array instance is valid against `contains` if at least one of - * its elements is valid against the given schema. Note that when - * collecting annotations, the subschema MUST be applied to every - * array element even after the first match has been found. This - * is to ensure that all possible annotations are collected. - */ - contains?: JSONSchema; - /** - * If the instance value is a string, this property defines that the - * string SHOULD be interpreted as binary data and decoded using the - * encoding named by this property. [RFC 2045, Sec 6.1][RFC2045] lists the - * possible values for this property. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * If this keyword is absent, but `contentMediaType` is present, this - * indicates that the media type could be encoded into `UTF-8` like any - * other JSON string value, and does not require additional decoding. - * - * The value of this property MUST be a string. - * - * [RFC2045]: https://datatracker.ietf.org/doc/html/rfc2045#section-6.1 - */ - contentEncoding?: "7bit" | "8bit" | "base64" | "binary" | "ietf-token" | "quoted-printable" | "x-token"; - /** - * If the instance is a string, this property indicates the media type - * of the contents of the string. If `contentEncoding` is present, - * this property describes the decoded string. - * - * The value of this property must be a media type, as defined by - * [RFC 2046][RFC2046]. This property defines the media type of instances - * which this schema defines. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * If the `contentEncoding` property is not present, but the instance - * value is a string, then the value of this property SHOULD specify a text - * document type, and the character set SHOULD be the character set into - * which the JSON string value was decoded (for which the default is - * Unicode). - * - * [RFC2046]: https://datatracker.ietf.org/doc/html/rfc2046 - */ - contentMediaType?: string; - /** - * If the instance is a string, and if `contentMediaType` is present, - * this property contains a schema which describes the structure of the - * string. - * - * This keyword MAY be used with any media type that can be mapped into - * JSON Schema's data model. - * - * The value of this property SHOULD be ignored if `contentMediaType` is - * not present. - */ - contentSchema?: JSONSchema; - /** - * This keyword can be used to supply a default JSON value associated with - * a particular schema. It is RECOMMENDED that a `default` value be valid - * against the associated schema. - */ - default?: Value; - /** - * @deprecated `definitions` has been renamed to `$defs`. - */ - definitions?: Record; - /** - * @deprecated `dependencies` has been split into two keywords: - * `dependentSchemas` and `dependentRequired`. - */ - dependencies?: Record | JSONSchema>; - /** - * The value of this keyword MUST be an object. Properties in - * this object, if any, MUST be arrays. Elements in each array, - * if any, MUST be strings, and MUST be unique. - * - * This keyword specifies properties that are required if a specific - * other property is present. Their requirement is dependent on the - * presence of the other property. - * - * Validation succeeds if, for each name that appears in both - * the instance and as a name within this keyword's value, every - * item in the corresponding array is also the name of a property - * in the instance. - * - * Omitting this keyword has the same behavior as an empty object. - */ - dependentRequired?: Record>; - /** - * This keyword specifies subschemas that are evaluated if the instance is - * an object and contains a certain property. - * - * This keyword's value MUST be an object. Each value in the object MUST be - * a valid JSON Schema. - * - * If the object key is a property in the instance, the entire instance - * must validate against the subschema. Its use is dependent on the - * presence of the property. - * - * Omitting this keyword has the same behavior as an empty object. - */ - dependentSchemas?: Record; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword are applicable to a single sub-instance, applications - * SHOULD consider the instance location to be deprecated if any occurrence - * specifies a `true` value. - * - * If `deprecated` has a value of boolean `true`, it indicates that - * applications SHOULD refrain from usage of the declared property. It MAY - * mean the property is going to be removed in the future. - * - * A root schema containing `deprecated` with a value of `true` - * indicates that the entire resource being described MAY be removed in the - * future. - * - * When the `deprecated` keyword is applied to an item in an array by - * means of `items`, if `items` is a single schema, the deprecation - * relates to the whole array, while if `items` is an array of schemas, - * the deprecation relates to the corresponding item according to the - * subschemas position. - * - * Omitting this keyword has the same behavior as a value of `false`. - */ - deprecated?: boolean; - /** - * Can be used to decorate a user interface with explanation or information - * about the data produced. - */ - description?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance fails to validate against its - * subschema, then validation succeeds against this keyword if the instance - * successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * successfully validates against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - else?: JSONSchema; - /** - * The value of this keyword MUST be an array. This array SHOULD have at - * least one element. Elements in the array SHOULD be unique. - * - * An instance validates successfully against this keyword if its value is - * equal to one of the elements in this keyword's array value. - * - * Elements in the array might be of any type, including `null`. - */ - enum?: MaybeReadonlyArray; - /** - * The value of this keyword MUST be an array. When multiple occurrences of - * this keyword are applicable to a single sub-instance, implementations - * MUST provide a flat array of all values rather than an array of arrays. - * - * This keyword can be used to provide sample JSON values associated with a - * particular schema, for the purpose of illustrating usage. It is - * RECOMMENDED that these values be valid against the associated schema. - * - * Implementations MAY use the value(s) of `default`, if present, as an - * additional example. If `examples` is absent, `default` MAY still be - * used in this manner. - */ - examples?: MaybeReadonlyArray; - /** - * The value of `exclusiveMaximum` MUST be a number, representing an - * exclusive upper limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly less than (not equal to) `exclusiveMaximum`. - */ - exclusiveMaximum?: number; - /** - * The value of `exclusiveMinimum` MUST be a number, representing an - * exclusive lower limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly greater than (not equal to) `exclusiveMinimum`. - */ - exclusiveMinimum?: number; - /** - * Implementations MAY treat `format` as an assertion in addition to an - * annotation, and attempt to validate the value's conformance to the - * specified semantics. - * - * The value of this keyword is called a format attribute. It MUST be a - * string. A format attribute can generally only validate a given set - * of instance types. If the type of the instance to validate is not in - * this set, validation for this format attribute and instance SHOULD - * succeed. Format attributes are most often applied to strings, but can - * be specified to apply to any type. - * - * Implementations MAY support custom format attributes. Save for agreement - * between parties, schema authors SHALL NOT expect a peer implementation - * to support such custom format attributes. An implementation MUST NOT - * fail validation or cease processing due to an unknown format attribute. - * When treating `format` as an annotation, implementations SHOULD - * collect both known and unknown format attribute values. - */ - format?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * This validation outcome of this keyword's subschema has no direct effect - * on the overall validation result. Rather, it controls which of the - * `then` or `else` keywords are evaluated. - * - * Instances that successfully validate against this keyword's subschema - * MUST also be valid against the subschema value of the `then` keyword, - * if present. - * - * Instances that fail to validate against this keyword's subschema MUST - * also be valid against the subschema value of the `else` keyword, if - * present. - * - * If annotations are being collected, they are collected - * from this keyword's subschema in the usual way, including when the - * keyword is present without either `then` or `else`. - */ - if?: JSONSchema; - /** - * The value of `items` MUST be either a valid JSON Schema or an array of - * valid JSON Schemas. - * - * If `items` is a schema, validation succeeds if all elements in the - * array successfully validate against that schema. - * - * If `items` is an array of schemas, validation succeeds if each element - * of the instance validates against the schema at the same position, if - * any. - * - * This keyword produces an annotation value which is the largest index to - * which this keyword applied a subschema. The value MAY be a boolean - * `true` if a subschema was applied to every index of the instance, such - * as when `items` is a schema. - * - * Annotation results for `items` keywords from multiple schemas applied - * to the same instance location are combined by setting the combined - * result to `true` if any of the values are `true`, and otherwise - * retaining the largest numerical value. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - */ - items?: MaybeReadonlyArray | JSONSchema; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `maxContains` if the number of - * elements that are valid against the schema for - * `contains` is less than, or equal to, the value of this keyword. - * - * If `contains` is not present within the same schema object, then this - * keyword has no effect. - */ - maxContains?: number; - /** - * The value of `maximum` MUST be a number, representing an inclusive - * upper limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is less than or exactly equal to `maximum`. - */ - maximum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `maxItems` if its size is less - * than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is less - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 8259][RFC8259]. - * - * [RFC8259]: https://datatracker.ietf.org/doc/html/rfc8259 - * - * @minimum 0 - */ - maxLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `maxProperties` if its number of - * `properties` is less than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxProperties?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `minContains` if the number of - * elements that are valid against the schema for `contains` is - * greater than, or equal to, the value of this keyword. - * - * A value of `0` is allowed, but is only useful for setting a range - * of occurrences from `0` to the value of `maxContains`. A value of - * `0` with no `maxContains` causes `contains` to always pass - * validation. - * - * If `contains` is not present within the same schema object, then this - * keyword has no effect. - * - * Omitting this keyword has the same behavior as a value of `1`. - * - * @default 1 - */ - minContains?: number; - /** - * The value of `minimum` MUST be a number, representing an inclusive - * lower limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is greater than or exactly equal to `minimum`. - */ - minimum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `minItems` if its size is greater - * than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is greater - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 8259][RFC8259]. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * [RFC8259]: https://datatracker.ietf.org/doc/html/rfc8259 - * - * @default 0 - * @minimum 0 - */ - minLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `minProperties` if its number of - * `properties` is greater than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minProperties?: number; - /** - * The value of `multipleOf` MUST be a number, strictly greater than - * `0`. - * - * A numeric instance is valid only if division by this keyword's value - * results in an integer. - * - * @exclusiveMinimum 0 - */ - multipleOf?: number; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * An instance is valid against this keyword if it fails to validate - * successfully against the schema defined by this keyword. - */ - not?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against exactly one schema defined by this keyword's value. - */ - oneOf?: MaybeReadonlyArray>; - /** - * The value of this keyword MUST be a string. This string SHOULD be a - * valid regular expression, according to the [ECMA-262][ecma262] regular - * expression dialect. - * - * A string instance is considered valid if the regular expression matches - * the instance successfully. Recall: regular expressions are not - * implicitly anchored. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * - * @format "regex" - */ - pattern?: string; - /** - * The value of `patternProperties` MUST be an object. Each property name - * of this object SHOULD be a valid regular expression, according to the - * [ECMA-262][ecma262] regular expression dialect. Each property value of - * this object MUST be a valid JSON Schema. - * - * Validation succeeds if, for each instance name that matches any regular - * expressions that appear as a property name in this keyword's value, - * the child instance for that name successfully validates against each - * schema that corresponds to a matching regular expression. - * - * The annotation result of this keyword is the set of instance property - * names matched by this keyword. Annotation results for - * `patternProperties` keywords from multiple schemas applied to the same - * instance location are combined by taking the union of the sets. - * - * Omitting this keyword has the same assertion behavior as an empty - * object. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - */ - patternProperties?: Record; - /** - * The value of `properties` MUST be an object. Each value of this object - * MUST be a valid JSON Schema. - * - * Validation succeeds if, for each name that appears in both the instance - * and as a name within this keyword's value, the child instance for that - * name successfully validates against the corresponding schema. - * - * The annotation result of this keyword is the set of instance property - * names matched by this keyword. Annotation results for `properties` - * keywords from multiple schemas applied to the same instance location are - * combined by taking the union of the sets. - * - * Omitting this keyword has the same assertion behavior as an empty - * object. - */ - properties?: Record; - /** - * The value of `propertyNames` MUST be a valid JSON Schema. - * - * If the instance is an object, this keyword validates if every property - * name in the instance validates against the provided schema. - * Note the property name that the schema is testing will always be a - * string. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - propertyNames?: JSONSchema; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword are applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `readOnly` has a value of boolean `true`, it indicates that the - * value of the instance is managed exclusively by the owning authority, - * and attempts by an application to modify the value of this property are - * expected to be ignored or rejected by that owning authority. - * - * An instance document that is marked as `readOnly` for the entire - * document MAY be ignored if sent to the owning authority, or MAY result - * in an error, at the authority's discretion. - * - * For example, `readOnly` would be used to mark a database-generated - * serial number as read-only. - * - * This keyword can be used to assist in user interface instance - * generation. - * - * @default false - */ - readOnly?: boolean; - /** - * The value of this keyword MUST be an array. Elements of this array, if - * any, MUST be strings, and MUST be unique. - * - * An object instance is valid against this keyword if every item in the - * array is the name of a property in the instance. - * - * Omitting this keyword has the same behavior as an empty array. - */ - required?: MaybeReadonlyArray; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance successfully validates against - * its subschema, then validation succeeds against this keyword if the - * instance also successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * fails to validate against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - then?: JSONSchema; - /** - * Can be used to decorate a user interface with a short label about the - * data produced. - */ - title?: string; - /** - * The value of this keyword MUST be either a string or an array. If it is - * an array, elements of the array MUST be strings and MUST be unique. - * - * String values MUST be one of the six primitive types (`"null"`, - * `"boolean"`, `"object"`, `"array"`, `"number"`, or - * `"string"`), or `"integer"` which matches any number with a zero - * fractional part. - * - * An instance validates if and only if the instance is in any of the sets - * listed for this keyword. - */ - type?: SchemaType; - /** - * The value of `unevaluatedItems` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the annotation results of - * adjacent keywords that apply to the instance location being validated. - * Specifically, the annotations from `items` and `additionalItems`, - * which can come from those keywords when they are adjacent to the - * `unevaluatedItems` keyword. Those two annotations, as well as - * `unevaluatedItems`, can also result from any and all adjacent - * [in-place applicator][in-place-applicator] keywords. - * - * If an `items` annotation is present, and its annotation result is a - * number, and no "additionalItems" or `unevaluatedItems` annotation is - * present, then validation succeeds if every instance element at an index - * greater than the `items` annotation validates against - * `unevaluatedItems`. - * - * Otherwise, if any `items`, `additionalItems`, or - * `unevaluatedItems` annotations are present with a value of boolean - * `true`, then `unevaluatedItems` MUST be ignored. However, if none - * of these annotations are present, `unevaluatedItems` MUST be applied - * to all locations in the array. - * - * This means that `items`, `additionalItems`, and all in-place - * applicators MUST be evaluated before this keyword can be evaluated. - * Authors of extension keywords MUST NOT define an in-place applicator - * that would need to be evaluated before this keyword. - * - * If the `unevaluatedItems` subschema is applied to any positions within - * the instance array, it produces an annotation result of boolean - * `true`, analogous to the single schema behavior of `items`. If any - * `unevaluatedItems` keyword from any subschema applied to the same - * instance location produces an annotation value of `true`, then the - * combined result from these keywords is also `true`. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations that do not collect annotations MUST raise an error - * upon encountering this keyword. - * - * [in-place-applicator]: https://json-schema.org/draft/2019-09/json-schema-core.html#in-place - */ - unevaluatedItems?: JSONSchema; - /** - * The value of `unevaluatedProperties` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the annotation results of - * adjacent keywords that apply to the instance location being validated. - * Specifically, the annotations from `properties`, - * `patternProperties`, and `additionalProperties`, which can come from - * those keywords when they are adjacent to the `unevaluatedProperties` - * keyword. Those three annotations, as well as `unevaluatedProperties`, - * can also result from any and all adjacent - * [in-place applicator][in-place-applicator] keywords. - * - * Validation with `unevaluatedProperties` applies only to the child - * values of instance names that do not appear in the `properties`, - * `patternProperties`, `additionalProperties`, or - * `unevaluatedProperties` annotation results that apply to the - * instance location being validated. - * - * For all such properties, validation succeeds if the child instance - * validates against the "unevaluatedProperties" schema. - * - * This means that `properties`, `patternProperties`, - * `additionalProperties`, and all in-place applicators MUST be evaluated - * before this keyword can be evaluated. Authors of extension keywords - * MUST NOT define an in-place applicator that would need to be evaluated - * before this keyword. - * - * The annotation result of this keyword is the set of instance property - * names validated by this keyword's subschema. Annotation results for - * `unevaluatedProperties` keywords from multiple schemas applied to the - * same instance location are combined by taking the union of the sets. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations that do not collect annotations MUST raise an error upon - * encountering this keyword. - * - * [in-place-applicator]: https://json-schema.org/draft/2019-09/json-schema-core.html#in-place - */ - unevaluatedProperties?: JSONSchema; - /** - * The value of this keyword MUST be a boolean. - * - * If this keyword has boolean value `false`, the instance validates - * successfully. If it has boolean value `true`, the instance validates - * successfully if all of its elements are unique. - * - * Omitting this keyword has the same behavior as a value of `false`. - * - * @default false - */ - uniqueItems?: boolean; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword is applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `writeOnly` has a value of boolean `true`, it indicates that the - * value is never present when the instance is retrieved from the owning - * authority. It can be present when sent to the owning authority to update - * or create the document (or the resource it represents), but it will not - * be included in any updated or newly created version of the instance. - * - * An instance document that is marked as `writeOnly` for the entire - * document MAY be returned as a blank document of some sort, or MAY - * produce an error upon retrieval, or have the retrieval request ignored, - * at the authority's discretion. - * - * For example, `writeOnly` would be used to mark a password input field. - * - * These keywords can be used to assist in user interface instance - * generation. In particular, an application MAY choose to use a widget - * that hides input values as they are typed for write-only fields. - * - * @default false - */ - writeOnly?: boolean; -}; -export declare namespace JSONSchema { - type TypeValue = ValueOf | TypeName | Array | TypeName> | ReadonlyArray | TypeName>; - /** - * JSON Schema interface - */ - type Interface = Exclude, boolean>; - type Array = Pick, KeywordByType.Any | KeywordByType.Array>; - type Boolean = Pick, KeywordByType.Any>; - type Integer = Pick, KeywordByType.Any | KeywordByType.Number>; - type Number = Pick, KeywordByType.Any | KeywordByType.Number>; - type Null = Pick, KeywordByType.Any>; - type Object = Pick, KeywordByType.Any | KeywordByType.Object>; - type String = Pick, KeywordByType.Any | KeywordByType.String>; -} -declare namespace KeywordByType { - type Any = "$anchor" | "$comment" | "$defs" | "$id" | "$recursiveAnchor" | "$recursiveRef" | "$ref" | "$schema" | "$vocabulary" | "allOf" | "anyOf" | "const" | "default" | "definitions" | "deprecated" | "description" | "else" | "enum" | "examples" | "format" | "if" | "not" | "oneOf" | "readOnly" | "then" | "title" | "type" | "writeOnly"; - type Array = "additionalItems" | "contains" | "items" | "maxContains" | "maxItems" | "minContains" | "minItems" | "unevaluatedItems" | "uniqueItems"; - type Number = "exclusiveMaximum" | "exclusiveMinimum" | "maximum" | "minimum" | "multipleOf"; - type Object = "additionalProperties" | "dependencies" | "dependentRequired" | "dependentSchemas" | "maxProperties" | "minProperties" | "patternProperties" | "properties" | "propertyNames" | "required" | "unevaluatedProperties"; - type String = "contentEncoding" | "contentMediaType" | "contentSchema" | "maxLength" | "minLength" | "pattern"; -} -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export declare enum ContentEncoding { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - "7bit" = "7bit", - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - "8bit" = "8bit", - /** - * Useful for data that is mostly non-text. - */ - Base64 = "base64", - /** - * Same character set as 8bit, with no line length restriction. - */ - Binary = "binary", - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - IETFToken = "ietf-token", - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - QuotedPrintable = "quoted-printable", - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - XToken = "x-token" -} -/** - * This enum provides well-known formats that apply to strings. - */ -export declare enum Format { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Date = "date", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - DateTime = "date-time", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "duration" production. - */ - Duration = "duration", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 5322, section 3.4.1][RFC5322]. - * - * [RFC5322]: https://datatracker.ietf.org/doc/html/rfc5322 - */ - Email = "email", - /** - * As defined by [RFC 1123, section 2.1][RFC1123], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Hostname = "hostname", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 6531][RFC6531]. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - IDNEmail = "idn-email", - /** - * As defined by either [RFC 1123, section 2.1][RFC1123] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - IDNHostname = "idn-hostname", - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - IPv4 = "ipv4", - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - IPv6 = "ipv6", - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRI = "iri", - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRIReference = "iri-reference", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointer = "json-pointer", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointerURIFragment = "json-pointer-uri-fragment", - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft/2019-09/json-schema-validation.html#regexInterop - */ - RegEx = "regex", - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - RelativeJSONPointer = "relative-json-pointer", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Time = "time", - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URI = "uri", - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URIReference = "uri-reference", - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC 6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - URITemplate = "uri-template", - /** - * A string instance is valid against this attribute if it is a valid string - * representation of a UUID, according to [RFC 4122][RFC4122]. - * - * [RFC4122]: https://datatracker.ietf.org/doc/html/rfc4122 - */ - UUID = "uuid" -} -/** - * Enum consisting of simple type names for the `type` keyword - */ -export declare enum TypeName { - /** - * Value MUST be an array. - */ - Array = "array", - /** - * Value MUST be a boolean. - */ - Boolean = "boolean", - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - Integer = "integer", - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - Null = "null", - /** - * Value MUST be a number, floating point numbers are allowed. - */ - Number = "number", - /** - * Value MUST be an object. - */ - Object = "object", - /** - * Value MUST be a string. - */ - String = "string" -} -export declare const keywords: readonly ["$anchor", "$comment", "$defs", "$id", "$recursiveAnchor", "$recursiveRef", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems", "minLength", "minProperties", "multipleOf", "not", "oneOf", "pattern", "patternProperties", "properties", "propertyNames", "readOnly", "required", "then", "title", "type", "unevaluatedItems", "unevaluatedProperties", "uniqueItems", "writeOnly"]; -export {}; diff --git a/mcp-server/node_modules/json-schema-typed/draft_2019_09.js b/mcp-server/node_modules/json-schema-typed/draft_2019_09.js deleted file mode 100644 index a488571..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_2019_09.js +++ /dev/null @@ -1,349 +0,0 @@ -// @generated -// This code is automatically generated. Manual editing is not recommended. -/* - * BSD-2-Clause License - * - * Original source code is copyright (c) 2025 Remy Rylan - * - * - * Documentation and keyword descriptions are copyright (c) 2019 IETF Trust - * , Austin Wright , Henry Andrews - * , Ben Hutton , and Greg Dennis - * . All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -export const draft = "2019-09"; -export const $schema = "https://json-schema.org/draft/2019-09/schema"; -// ----------------------------------------------------------------------------- -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export var ContentEncoding; -(function (ContentEncoding) { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["7bit"] = "7bit"; - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["8bit"] = "8bit"; - /** - * Useful for data that is mostly non-text. - */ - ContentEncoding["Base64"] = "base64"; - /** - * Same character set as 8bit, with no line length restriction. - */ - ContentEncoding["Binary"] = "binary"; - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - ContentEncoding["IETFToken"] = "ietf-token"; - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - ContentEncoding["QuotedPrintable"] = "quoted-printable"; - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - ContentEncoding["XToken"] = "x-token"; -})(ContentEncoding || (ContentEncoding = {})); -/** - * This enum provides well-known formats that apply to strings. - */ -export var Format; -(function (Format) { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Date"] = "date"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["DateTime"] = "date-time"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "duration" production. - */ - Format["Duration"] = "duration"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 5322, section 3.4.1][RFC5322]. - * - * [RFC5322]: https://datatracker.ietf.org/doc/html/rfc5322 - */ - Format["Email"] = "email"; - /** - * As defined by [RFC 1123, section 2.1][RFC1123], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Format["Hostname"] = "hostname"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by [RFC 6531][RFC6531]. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - Format["IDNEmail"] = "idn-email"; - /** - * As defined by either [RFC 1123, section 2.1][RFC1123] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - Format["IDNHostname"] = "idn-hostname"; - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - Format["IPv4"] = "ipv4"; - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - Format["IPv6"] = "ipv6"; - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRI"] = "iri"; - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRIReference"] = "iri-reference"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointer"] = "json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointerURIFragment"] = "json-pointer-uri-fragment"; - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft/2019-09/json-schema-validation.html#regexInterop - */ - Format["RegEx"] = "regex"; - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - Format["RelativeJSONPointer"] = "relative-json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Time"] = "time"; - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URI"] = "uri"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URIReference"] = "uri-reference"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC 6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - Format["URITemplate"] = "uri-template"; - /** - * A string instance is valid against this attribute if it is a valid string - * representation of a UUID, according to [RFC 4122][RFC4122]. - * - * [RFC4122]: https://datatracker.ietf.org/doc/html/rfc4122 - */ - Format["UUID"] = "uuid"; -})(Format || (Format = {})); -/** - * Enum consisting of simple type names for the `type` keyword - */ -export var TypeName; -(function (TypeName) { - /** - * Value MUST be an array. - */ - TypeName["Array"] = "array"; - /** - * Value MUST be a boolean. - */ - TypeName["Boolean"] = "boolean"; - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - TypeName["Integer"] = "integer"; - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - TypeName["Null"] = "null"; - /** - * Value MUST be a number, floating point numbers are allowed. - */ - TypeName["Number"] = "number"; - /** - * Value MUST be an object. - */ - TypeName["Object"] = "object"; - /** - * Value MUST be a string. - */ - TypeName["String"] = "string"; -})(TypeName || (TypeName = {})); -// ----------------------------------------------------------------------------- -// Keywords -// ----------------------------------------------------------------------------- -export const keywords = [ - "$anchor", - "$comment", - "$defs", - "$id", - "$recursiveAnchor", - "$recursiveRef", - "$ref", - "$schema", - "$vocabulary", - "additionalItems", - "additionalProperties", - "allOf", - "anyOf", - "const", - "contains", - "contentEncoding", - "contentMediaType", - "contentSchema", - "default", - "definitions", - "dependencies", - "dependentRequired", - "dependentSchemas", - "deprecated", - "description", - "else", - "enum", - "examples", - "exclusiveMaximum", - "exclusiveMinimum", - "format", - "if", - "items", - "maxContains", - "maximum", - "maxItems", - "maxLength", - "maxProperties", - "minContains", - "minimum", - "minItems", - "minLength", - "minProperties", - "multipleOf", - "not", - "oneOf", - "pattern", - "patternProperties", - "properties", - "propertyNames", - "readOnly", - "required", - "then", - "title", - "type", - "unevaluatedItems", - "unevaluatedProperties", - "uniqueItems", - "writeOnly", -]; diff --git a/mcp-server/node_modules/json-schema-typed/draft_2020_12.d.ts b/mcp-server/node_modules/json-schema-typed/draft_2020_12.d.ts deleted file mode 100644 index c2024fb..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_2020_12.d.ts +++ /dev/null @@ -1,1239 +0,0 @@ -export declare const draft: "2020-12"; -export declare const $schema: "https://json-schema.org/draft/2020-12/schema"; -type MaybeReadonlyArray = Array | ReadonlyArray; -type ValueOf = T[keyof T]; -/** - * JSON Schema [Draft 2020-12](https://json-schema.org/draft/2020-12/json-schema-validation.html) - */ -export type JSONSchema ? "object" : JSONSchema.TypeValue> = boolean | { - /** - * Using JSON Pointer fragments requires knowledge of the structure of the - * schema. When writing schema documents with the intention to provide - * re-usable schemas, it may be preferable to use a plain name fragment - * that is not tied to any particular structural location. This allows a - * subschema to be relocated without requiring JSON Pointer references to - * be updated. - * - * The `$anchor` keyword is used to specify such a fragment. It is an - * identifier keyword that can only be used to create plain name fragments. - * - * If present, the value of this keyword MUST be a string, which MUST start - * with a letter `[A-Za-z]`, followed by any number of letters, digits - * `[0-9]`, hyphens `-`, underscores `_`, colons `:`, - * or periods `.`. - * - * Note that the anchor string does not include the `#` character, - * as it is not a URI-reference. An `{"$anchor": "foo"}` becomes the - * fragment `#foo` when used in a URI. - * - * The base URI to which the resulting fragment is appended is determined - * by the `$id` keyword as explained in the previous section. - * Two `$anchor` keywords in the same schema document MAY have the same - * value if they apply to different base URIs, as the resulting full URIs - * will be distinct. However, the effect of two `$anchor` keywords - * with the same value and the same base URI is undefined. Implementations - * MAY raise an error if such usage is detected. - */ - $anchor?: string; - /** - * This keyword reserves a location for comments from schema authors to - * readers or maintainers of the schema. - * - * The value of this keyword MUST be a string. Implementations MUST NOT - * present this string to end users. Tools for editing schemas SHOULD - * support displaying and editing this keyword. The value of this keyword - * MAY be used in debug or error output which is intended for developers - * making use of schemas. - * - * Schema vocabularies SHOULD allow `$comment` within any object - * containing vocabulary keywords. Implementations MAY assume `$comment` - * is allowed unless the vocabulary specifically forbids it. Vocabularies - * MUST NOT specify any effect of `$comment` beyond what is described in - * this specification. - * - * Tools that translate other media types or programming languages - * to and from `application/schema+json` MAY choose to convert that media - * type or programming language's native comments to or from `$comment` - * values. The behavior of such translation when both native comments and - * `$comment` properties are present is implementation-dependent. - * - * Implementations MAY strip `$comment` values at any point during - * processing. In particular, this allows for shortening schemas when the - * size of deployed schemas is a concern. - * - * Implementations MUST NOT take any other action based on the presence, - * absence, or contents of `$comment` properties. In particular, the - * value of `$comment` MUST NOT be collected as an annotation result. - */ - $comment?: string; - /** - * The `$defs` keyword reserves a location for schema authors to inline - * re-usable JSON Schemas into a more general schema. The keyword does not - * directly affect the validation result. - * - * This keyword's value MUST be an object. Each member value of this object - * MUST be a valid JSON Schema. - */ - $defs?: Record; - /** - * "The `$dynamicAnchor` indicates that the fragment is an extension - * point when used with the `$dynamicRef` keyword. This low-level, - * advanced feature makes it easier to extend recursive schemas such as the - * meta-schemas, without imposing any particular semantics on that - * extension. See `$dynamicRef` for more details. - */ - $dynamicAnchor?: string; - /** - * The `$dynamicRef` keyword is an applicator that allows for deferring - * the full resolution until runtime, at which point it is resolved each - * time it is encountered while evaluating an instance. - * - * Together with `$dynamicAnchor`, `$dynamicRef` implements a - * cooperative extension mechanism that is primarily useful with recursive - * schemas (schemas that reference themselves). Both the extension point - * and the runtime-determined extension target are defined with - * `$dynamicAnchor`, and only exhibit runtime dynamic behavior when - * referenced with `$dynamicRef`. - * - * The value of the `$dynamicRef` property MUST be a string which is - * a URI-Reference. Resolved against the current URI base, it produces - * the URI used as the starting point for runtime resolution. This initial - * resolution is safe to perform on schema load. - * - * If the initially resolved starting point URI includes a fragment that - * was created by the `$dynamicAnchor` keyword, the initial URI MUST be - * replaced by the URI (including the fragment) for the outermost schema - * resource in the [dynamic scope][scopes] that defines - * an identically named fragment with `$dynamicAnchor`. - * - * Otherwise, its behavior is identical to `$ref`, and no runtime - * resolution is needed. - * - * [scopes]: https://json-schema.org/draft/2020-12/json-schema-core.html#scopes - * - * @format "uri-reference" - */ - $dynamicRef?: string; - /** - * The `$id` keyword identifies a schema resource with its - * [canonical][[RFC6596]] URI. - * - * Note that this URI is an identifier and not necessarily a network - * locator. In the case of a network-addressable URL, a schema need not be - * downloadable from its canonical URI. - * - * If present, the value for this keyword MUST be a string, and MUST - * represent a valid [URI-reference][RFC3986]. This URI-reference SHOULD - * be normalized, and MUST resolve to an [absolute-URI][RFC3986] (without a - * fragment). Therefore, `$id` MUST NOT contain a non-empty fragment, - * and SHOULD NOT contain an empty fragment. - * - * Since an empty fragment in the context of the - * `application/schema+json` media type refers to the same resource as - * the base URI without a fragment, an implementation MAY normalize a URI - * ending with an empty fragment by removing the fragment. However, schema - * authors SHOULD NOT rely on this behavior across implementations. - * - * This URI also serves as the base URI for relative URI-references in - * keywords within the schema resource, in accordance with - * [RFC 3986][RFC3986] section 5.1.1 regarding base URIs embedded in - * content. - * - * The presence of `$id` in a subschema indicates that the subschema - * constitutes a distinct schema resource within a single schema document. - * Furthermore, in accordance with [RFC 3986][RFC3986] section 5.1.2 - * regarding encapsulating entities, if an `$id` in a subschema is a - * relative URI-reference, the base URI for resolving that reference is the - * URI of the parent schema resource. - * - * If no parent schema object explicitly identifies itself as a resource - * with `$id`, the base URI is that of the entire document. - * - * The root schema of a JSON Schema document SHOULD contain an `$id` - * keyword with an [absolute-URI][RFC3986] (containing a scheme, but no - * fragment). - * - * [RFC6596]: https://datatracker.ietf.org/doc/html/rfc6596 - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri-reference" - */ - $id?: string; - /** - * The `$ref` keyword is an applicator that is used to reference a - * statically identified schema. Its results are the results of the - * referenced schema. Other keywords can appear alongside of `$ref` in - * the same schema object. - * - * The value of the `$ref` property MUST be a string which is a - * URI-Reference. Resolved against the current URI base, it produces the - * URI of the schema to apply. - * - * @format "uri-reference" - */ - $ref?: string; - /** - * The `$schema` keyword is both used as a JSON Schema dialect identifier - * and as the identifier of a resource which is itself a JSON Schema, which - * describes the set of valid schemas written for this particular dialect. - * - * The value of this keyword MUST be a [URI][RFC3986] (containing a scheme) - * and this URI MUST be normalized. The current schema MUST be valid - * against the meta-schema identified by this URI. - * - * If this URI identifies a retrievable resource, that resource SHOULD be - * of media type `application/schema+json`. - * - * The `$schema` keyword SHOULD be used in the document root schema - * object, and MAY be used in the root schema objects of embedded schema - * resources. It MUST NOT appear in non-resource root schema objects. If - * absent from the document root schema, the resulting behavior is - * implementation-defined. - * - * Values for this property are defined elsewhere in this and other - * documents, and by other parties. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - * - * @format "uri" - */ - $schema?: string; - /** - * The `$vocabulary` keyword is used in meta-schemas to identify the - * vocabularies available for use in schemas described by that meta-schema. - * It is also used to indicate whether each vocabulary is required or - * optional, in the sense that an implementation MUST understand the - * required vocabularies in order to successfully process the schema. - * Together, this information forms a dialect. Any vocabulary that is - * understood by the implementation MUST be processed in a manner - * consistent with the semantic definitions contained within the - * vocabulary. - * - * The value of this keyword MUST be an object. The property names in the - * object MUST be URIs (containing a scheme) and this URI MUST be - * normalized. Each URI that appears as a property name identifies a - * specific set of keywords and their semantics. - * - * The URI MAY be a URL, but the nature of the retrievable resource is - * currently undefined, and reserved for future use. Vocabulary authors - * MAY use the URL of the vocabulary specification, in a human-readable - * media type such as `text/html` or `text/plain`, as the vocabulary - * URI. - * - * The values of the object properties MUST be booleans. If the value is - * `true`, then implementations that do not recognize the vocabulary MUST - * refuse to process any schemas that declare this meta-schema with - * `$schema`. If the value is `false`, implementations that do not - * recognize the vocabulary SHOULD proceed with processing such schemas. - * The value has no impact if the implementation understands the - * vocabulary. - * - * Unrecognized keywords SHOULD be ignored. This remains the case for - * keywords defined by unrecognized vocabularies. It is not currently - * possible to distinguish between unrecognized keywords that are defined - * in vocabularies from those that are not part of any vocabulary. - * - * The `$vocabulary` keyword SHOULD be used in the root schema of any - * schema document intended for use as a meta-schema. It MUST NOT appear - * in subschemas. - * - * The `$vocabulary` keyword MUST be ignored in schema documents that are - * not being processed as a meta-schema. - */ - $vocabulary?: Record; - /** - * @deprecated `additionalItems` has been deprecated in favor of `prefixItems` - * paired with `items`. - */ - additionalItems?: JSONSchema; - /** - * The value of `additionalProperties` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the presence and annotation - * results of `properties` and `patternProperties` within the same - * schema object. Validation with `additionalProperties` applies only to - * the child values of instance names that do not appear in the annotation - * results of either `properties` or `patternProperties`. - * - * For all such properties, validation succeeds if the child instance - * validates against the `additionalProperties` schema. - * - * The annotation result of this keyword is the set of instance property - * names validated by this keyword's subschema. Annotation results for - * `additionalProperties` keywords from multiple schemas applied to the - * same instance location are combined by taking the union of the sets. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations MAY choose to implement or optimize this keyword in - * another way that produces the same effect, such as by directly checking - * the names in `properties` and the patterns in `patternProperties` - * against the instance property set. - */ - additionalProperties?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against all schemas defined by this keyword's value. - */ - allOf?: MaybeReadonlyArray>; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against at least one schema defined by this keyword's - * value. - */ - anyOf?: MaybeReadonlyArray>; - /** - * An instance validates successfully against this keyword if its value is - * equal to the value of the keyword. - * - * Use of this keyword is functionally equivalent to the `enum` keyword - * with a single value. - */ - const?: Value; - /** - * The value of this keyword MUST be a valid JSON Schema. - * - * An array instance is valid against `contains` if at least one of its - * elements is valid against the given schema. The subschema MUST be - * applied to every array element even after the first match has been - * found, in order to collect annotations for use by other keywords. - * This is to ensure that all possible annotations are collected. - * - * Logically, the validation result of applying the value subschema to each - * item in the array MUST be OR'ed with `false`, resulting in an overall - * validation result. - * - * This keyword produces an annotation value which is an array of the - * indexes to which this keyword validates successfully when applying its - * subschema, in ascending order. The value MAY be a boolean `true` if - * the subschema validates successfully when applied to every index of the - * instance. The annotation MUST be present if the instance array to which - * this keyword's schema applies is empty. - */ - contains?: JSONSchema; - /** - * If the instance value is a string, this property defines that the - * string SHOULD be interpreted as binary data and decoded using the - * encoding named by this property. [RFC 2045, Sec 6.1][RFC2045] lists the - * possible values for this property. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * If this keyword is absent, but `contentMediaType` is present, this - * indicates that the media type could be encoded into `UTF-8` like any - * other JSON string value, and does not require additional decoding. - * - * The value of this property MUST be a string. - * - * [RFC2045]: https://datatracker.ietf.org/doc/html/rfc2045#section-6.1 - */ - contentEncoding?: "7bit" | "8bit" | "base64" | "binary" | "ietf-token" | "quoted-printable" | "x-token"; - /** - * If the instance is a string, this property indicates the media type - * of the contents of the string. If `contentEncoding` is present, - * this property describes the decoded string. - * - * The value of this property must be a media type, as defined by - * [RFC 2046][RFC2046]. This property defines the media type of instances - * which this schema defines. - * - * The value of this property SHOULD be ignored if the instance described - * is not a string. - * - * If the `contentEncoding` property is not present, but the instance - * value is a string, then the value of this property SHOULD specify a text - * document type, and the character set SHOULD be the character set into - * which the JSON string value was decoded (for which the default is - * Unicode). - * - * [RFC2046]: https://datatracker.ietf.org/doc/html/rfc2046 - */ - contentMediaType?: string; - /** - * If the instance is a string, and if `contentMediaType` is present, - * this property contains a schema which describes the structure of the - * string. - * - * This keyword MAY be used with any media type that can be mapped into - * JSON Schema's data model. - * - * The value of this property MUST be a valid JSON schema. It SHOULD be - * ignored if `contentMediaType` is not present. - */ - contentSchema?: JSONSchema; - /** - * This keyword can be used to supply a default JSON value associated with - * a particular schema. It is RECOMMENDED that a `default` value be valid - * against the associated schema. - */ - default?: Value; - /** - * @deprecated `definitions` has been renamed to `$defs`. - */ - definitions?: Record; - /** - * @deprecated `dependencies` has been split into two keywords: - * `dependentSchemas` and `dependentRequired`. - */ - dependencies?: Record | JSONSchema>; - /** - * The value of this keyword MUST be an object. Properties in - * this object, if any, MUST be arrays. Elements in each array, - * if any, MUST be strings, and MUST be unique. - * - * This keyword specifies properties that are required if a specific - * other property is present. Their requirement is dependent on the - * presence of the other property. - * - * Validation succeeds if, for each name that appears in both - * the instance and as a name within this keyword's value, every - * item in the corresponding array is also the name of a property - * in the instance. - * - * Omitting this keyword has the same behavior as an empty object. - */ - dependentRequired?: Record>; - /** - * This keyword specifies subschemas that are evaluated if the instance is - * an object and contains a certain property. - * - * This keyword's value MUST be an object. Each value in the object MUST be - * a valid JSON Schema. - * - * If the object key is a property in the instance, the entire instance - * must validate against the subschema. Its use is dependent on the - * presence of the property. - * - * Omitting this keyword has the same behavior as an empty object. - */ - dependentSchemas?: Record; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword are applicable to a single sub-instance, applications - * SHOULD consider the instance location to be deprecated if any occurrence - * specifies a `true` value. - * - * If `deprecated` has a value of boolean `true`, it indicates that - * applications SHOULD refrain from usage of the declared property. It MAY - * mean the property is going to be removed in the future. - * - * A root schema containing `deprecated` with a value of `true` - * indicates that the entire resource being described MAY be removed in the - * future. - * - * The `deprecated` keyword applies to each instance location to which - * the schema object containing the keyword successfully applies. This can - * result in scenarios where every array item or object property is - * deprecated even though the containing array or object is not. - * - * Omitting this keyword has the same behavior as a value of `false`. - */ - deprecated?: boolean; - /** - * Can be used to decorate a user interface with explanation or information - * about the data produced. - */ - description?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance fails to validate against its - * subschema, then validation succeeds against this keyword if the instance - * successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * successfully validates against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - else?: JSONSchema; - /** - * The value of this keyword MUST be an array. This array SHOULD have at - * least one element. Elements in the array SHOULD be unique. - * - * An instance validates successfully against this keyword if its value is - * equal to one of the elements in this keyword's array value. - * - * Elements in the array might be of any type, including `null`. - */ - enum?: MaybeReadonlyArray; - /** - * The value of this keyword MUST be an array. When multiple occurrences of - * this keyword are applicable to a single sub-instance, implementations - * MUST provide a flat array of all values rather than an array of arrays. - * - * This keyword can be used to provide sample JSON values associated with a - * particular schema, for the purpose of illustrating usage. It is - * RECOMMENDED that these values be valid against the associated schema. - * - * Implementations MAY use the value(s) of `default`, if present, as an - * additional example. If `examples` is absent, `default` MAY still be - * used in this manner. - */ - examples?: MaybeReadonlyArray; - /** - * The value of `exclusiveMaximum` MUST be a number, representing an - * exclusive upper limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly less than (not equal to) `exclusiveMaximum`. - */ - exclusiveMaximum?: number; - /** - * The value of `exclusiveMinimum` MUST be a number, representing an - * exclusive lower limit for a numeric instance. - * - * If the instance is a number, then the instance is valid only if it has a - * value strictly greater than (not equal to) `exclusiveMinimum`. - */ - exclusiveMinimum?: number; - /** - * Implementations MAY treat `format` as an assertion in addition to an - * annotation, and attempt to validate the value's conformance to the - * specified semantics. - * - * The value of this keyword is called a format attribute. It MUST be a - * string. A format attribute can generally only validate a given set - * of instance types. If the type of the instance to validate is not in - * this set, validation for this format attribute and instance SHOULD - * succeed. Format attributes are most often applied to strings, but can - * be specified to apply to any type. - * - * Implementations MAY support custom format attributes. Save for agreement - * between parties, schema authors SHALL NOT expect a peer implementation - * to support such custom format attributes. An implementation MUST NOT - * fail validation or cease processing due to an unknown format attribute. - * When treating `format` as an annotation, implementations SHOULD - * collect both known and unknown format attribute values. - */ - format?: string; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * This validation outcome of this keyword's subschema has no direct effect - * on the overall validation result. Rather, it controls which of the - * `then` or `else` keywords are evaluated. - * - * Instances that successfully validate against this keyword's subschema - * MUST also be valid against the subschema value of the `then` keyword, - * if present. - * - * Instances that fail to validate against this keyword's subschema MUST - * also be valid against the subschema value of the `else` keyword, if - * present. - * - * If annotations are being collected, they are collected - * from this keyword's subschema in the usual way, including when the - * keyword is present without either `then` or `else`. - */ - if?: JSONSchema; - /** - * The value of `items` MUST be a valid JSON Schema. - * - * This keyword applies its subschema to all instance elements at indexes - * greater than the length of the `prefixItems` array in the same schema - * object, as reported by the annotation result of that `prefixItems` - * keyword. If no such annotation result exists, `items` applies its - * subschema to all instance array elements. - * - * Note that the behavior of `items` without `prefixItems` is identical - * to that of the schema form of `items` in prior drafts. - * - * When `prefixItems` is present, the behavior of `items` is identical - * to the former `additionalItems` keyword. - * - * If the `items` subschema is applied to any positions within the - * instance array, it produces an annotation result of boolean `true`, - * indicating that all remaining array elements have been evaluated against - * this keyword's subschema. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * Implementations MAY choose to implement or optimize this keyword - * in another way that produces the same effect, such as by directly - * checking for the presence and size of a `prefixItems` array. - */ - items?: JSONSchema; - /** - * The value of this keyword MUST be a non-negative integer. - * - * If `contains` is not present within the same schema object, then this - * keyword has no effect. - * - * An instance array is valid against `maxContains` in two ways, - * depending on the form of the annotation result of an adjacent - * `contains` keyword. The first way is if the annotation result is an - * array and the length of that array is less than or equal to the - * `maxContains` value. The second way is if the annotation result is a - * boolean `true` and the instance array length is less than or equal to - * the `maxContains` value. - */ - maxContains?: number; - /** - * The value of `maximum` MUST be a number, representing an inclusive - * upper limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is less than or exactly equal to `maximum`. - */ - maximum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `maxItems` if its size is less - * than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is less - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 8259][RFC8259]. - * - * [RFC8259]: https://datatracker.ietf.org/doc/html/rfc8259 - * - * @minimum 0 - */ - maxLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `maxProperties` if its number of - * `properties` is less than, or equal to, the value of this keyword. - * - * @minimum 0 - */ - maxProperties?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * If `contains` is not present within the same schema object, then this - * keyword has no effect. - * - * An instance array is valid against `minContains` in two ways, - * depending on the form of the annotation result of an adjacent - * `contains` keyword. The first way is if the annotation result is an - * array and the length of that array is greater than or equal to the - * `minContains` value. The second way is if the annotation result is a - * boolean `true` and the instance array length is greater than or equal - * to the `minContains` value. - * - * A value of `0` is allowed, but is only useful for setting a range - * of occurrences from `0` to the value of `maxContains`. A value of - * `0` with no `maxContains` causes `contains` to always pass - * validation. - * - * Omitting this keyword has the same behavior as a value of `1`. - * - * @default 1 - */ - minContains?: number; - /** - * The value of `minimum` MUST be a number, representing an inclusive - * lower limit for a numeric instance. - * - * If the instance is a number, then this keyword validates only if the - * instance is greater than or exactly equal to `minimum`. - */ - minimum?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An array instance is valid against `minItems` if its size is greater - * than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minItems?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * A string instance is valid against this keyword if its length is greater - * than, or equal to, the value of this keyword. - * - * The length of a string instance is defined as the number of its - * characters as defined by [RFC 8259][RFC8259]. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * [RFC8259]: https://datatracker.ietf.org/doc/html/rfc8259 - * - * @default 0 - * @minimum 0 - */ - minLength?: number; - /** - * The value of this keyword MUST be a non-negative integer. - * - * An object instance is valid against `minProperties` if its number of - * `properties` is greater than, or equal to, the value of this keyword. - * - * Omitting this keyword has the same behavior as a value of `0`. - * - * @default 0 - * @minimum 0 - */ - minProperties?: number; - /** - * The value of `multipleOf` MUST be a number, strictly greater than - * `0`. - * - * A numeric instance is valid only if division by this keyword's value - * results in an integer. - * - * @exclusiveMinimum 0 - */ - multipleOf?: number; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * An instance is valid against this keyword if it fails to validate - * successfully against the schema defined by this keyword. - */ - not?: JSONSchema; - /** - * This keyword's value MUST be a non-empty array. Each item of the array - * MUST be a valid JSON Schema. - * - * An instance validates successfully against this keyword if it validates - * successfully against exactly one schema defined by this keyword's value. - */ - oneOf?: MaybeReadonlyArray>; - /** - * The value of this keyword MUST be a string. This string SHOULD be a - * valid regular expression, according to the [ECMA-262][ecma262] regular - * expression dialect. - * - * A string instance is considered valid if the regular expression matches - * the instance successfully. Recall: regular expressions are not - * implicitly anchored. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * - * @format "regex" - */ - pattern?: string; - /** - * The value of `patternProperties` MUST be an object. Each property name - * of this object SHOULD be a valid regular expression, according to the - * [ECMA-262][ecma262] regular expression dialect. Each property value of - * this object MUST be a valid JSON Schema. - * - * Validation succeeds if, for each instance name that matches any regular - * expressions that appear as a property name in this keyword's value, - * the child instance for that name successfully validates against each - * schema that corresponds to a matching regular expression. - * - * The annotation result of this keyword is the set of instance property - * names matched by this keyword. Omitting this keyword has the same - * assertion behavior as an empty object. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - */ - patternProperties?: Record; - /** - * The value of `prefixItems` MUST be a non-empty array of valid JSON - * Schemas. - * - * Validation succeeds if each element of the instance validates against - * the schema at the same position, if any. This keyword does not - * constrain the length of the array. If the array is longer than this - * keyword's value, this keyword validates only the prefix of matching - * length. - * - * This keyword produces an annotation value which is the largest index to - * which this keyword applied a subschema. The value MAY be a boolean - * `true` if a subschema was applied to every index of the instance, such - * as is produced by the `items` keyword. - * This annotation affects the behavior of `items` and - * `unevaluatedItems`. - * - * Omitting this keyword has the same assertion behavior as an empty array. - */ - prefixItems?: MaybeReadonlyArray | JSONSchema; - /** - * The value of `properties` MUST be an object. Each value of this object - * MUST be a valid JSON Schema. - * - * Validation succeeds if, for each name that appears in both the instance - * and as a name within this keyword's value, the child instance for that - * name successfully validates against the corresponding schema. - * - * The annotation result of this keyword is the set of instance property - * names matched by this keyword. - * - * Omitting this keyword has the same assertion behavior as an empty - * object. - */ - properties?: Record; - /** - * The value of `propertyNames` MUST be a valid JSON Schema. - * - * If the instance is an object, this keyword validates if every property - * name in the instance validates against the provided schema. - * Note the property name that the schema is testing will always be a - * string. - * - * Omitting this keyword has the same behavior as an empty schema. - */ - propertyNames?: JSONSchema; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword are applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `readOnly` has a value of boolean `true`, it indicates that the - * value of the instance is managed exclusively by the owning authority, - * and attempts by an application to modify the value of this property are - * expected to be ignored or rejected by that owning authority. - * - * An instance document that is marked as `readOnly` for the entire - * document MAY be ignored if sent to the owning authority, or MAY result - * in an error, at the authority's discretion. - * - * For example, `readOnly` would be used to mark a database-generated - * serial number as read-only. - * - * This keyword can be used to assist in user interface instance - * generation. - * - * @default false - */ - readOnly?: boolean; - /** - * The value of this keyword MUST be an array. Elements of this array, if - * any, MUST be strings, and MUST be unique. - * - * An object instance is valid against this keyword if every item in the - * array is the name of a property in the instance. - * - * Omitting this keyword has the same behavior as an empty array. - */ - required?: MaybeReadonlyArray; - /** - * This keyword's value MUST be a valid JSON Schema. - * - * When `if` is present, and the instance successfully validates against - * its subschema, then validation succeeds against this keyword if the - * instance also successfully validates against this keyword's subschema. - * - * This keyword has no effect when `if` is absent, or when the instance - * fails to validate against its subschema. Implementations MUST NOT - * evaluate the instance against this keyword, for either validation or - * annotation collection purposes, in such cases. - */ - then?: JSONSchema; - /** - * Can be used to decorate a user interface with a short label about the - * data produced. - */ - title?: string; - /** - * The value of this keyword MUST be either a string or an array. If it is - * an array, elements of the array MUST be strings and MUST be unique. - * - * String values MUST be one of the six primitive types (`"null"`, - * `"boolean"`, `"object"`, `"array"`, `"number"`, or - * `"string"`), or `"integer"` which matches any number with a zero - * fractional part. - * - * An instance validates if and only if the instance is in any of the sets - * listed for this keyword. - */ - type?: SchemaType; - /** - * The value of `unevaluatedItems` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the annotation results of - * adjacent keywords that apply to the instance location being validated. - * Specifically, the annotations from `prefixItems`, `items`, and - * `contains`, which can come from those keywords when they are adjacent - * to the `unevaluatedItems` keyword. Those three annotations, as well as - * `unevaluatedItems`, can also result from any and all adjacent - * [in-place applicator][in-place-applicator] keywords. - * - * If no relevant annotations are present, the `unevaluatedItems` - * subschema MUST be applied to all locations in the array. - * If a boolean `true` value is present from any of the relevant - * annotations, `unevaluatedItems` MUST be ignored. Otherwise, the - * subschema MUST be applied to any index greater than the largest - * annotation value for `prefixItems`, which does not appear in any - * annotation value for `contains`. - * - * This means that `prefixItems`, `items`, `contains`, and all - * in-place applicators MUST be evaluated before this keyword can be - * evaluated. Authors of extension keywords MUST NOT define an in-place - * applicator that would need to be evaluated after this keyword. - * - * If the `unevaluatedItems` subschema is applied to any positions within - * the instance array, it produces an annotation result of boolean - * `true`, analogous to the behavior of `items`. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * [in-place-applicator]: https://json-schema.org/draft/2020-12/json-schema-core.html#in-place - */ - unevaluatedItems?: JSONSchema; - /** - * The value of `unevaluatedProperties` MUST be a valid JSON Schema. - * - * The behavior of this keyword depends on the annotation results of - * adjacent keywords that apply to the instance location being validated. - * Specifically, the annotations from `properties`, - * `patternProperties`, and `additionalProperties`, which can come from - * those keywords when they are adjacent to the `unevaluatedProperties` - * keyword. Those three annotations, as well as `unevaluatedProperties`, - * can also result from any and all adjacent - * [in-place applicator][in-place-applicator] keywords. - * - * Validation with `unevaluatedProperties` applies only to the child - * values of instance names that do not appear in the `properties`, - * `patternProperties`, `additionalProperties`, or - * `unevaluatedProperties` annotation results that apply to the - * instance location being validated. - * - * For all such properties, validation succeeds if the child instance - * validates against the "unevaluatedProperties" schema. - * - * This means that `properties`, `patternProperties`, - * `additionalProperties`, and all in-place applicators MUST be evaluated - * before this keyword can be evaluated. Authors of extension keywords - * MUST NOT define an in-place applicator that would need to be evaluated - * after this keyword. - * - * The annotation result of this keyword is the set of instance property - * names validated by this keyword's subschema. - * - * Omitting this keyword has the same assertion behavior as an empty - * schema. - * - * [in-place-applicator]: https://json-schema.org/draft/2020-12/json-schema-core.html#in-place - */ - unevaluatedProperties?: JSONSchema; - /** - * The value of this keyword MUST be a boolean. - * - * If this keyword has boolean value `false`, the instance validates - * successfully. If it has boolean value `true`, the instance validates - * successfully if all of its elements are unique. - * - * Omitting this keyword has the same behavior as a value of `false`. - * - * @default false - */ - uniqueItems?: boolean; - /** - * The value of this keyword MUST be a boolean. When multiple occurrences - * of this keyword is applicable to a single sub-instance, the resulting - * value MUST be `true` if any occurrence specifies a `true` value, and - * MUST be `false` otherwise. - * - * If `writeOnly` has a value of boolean `true`, it indicates that the - * value is never present when the instance is retrieved from the owning - * authority. It can be present when sent to the owning authority to update - * or create the document (or the resource it represents), but it will not - * be included in any updated or newly created version of the instance. - * - * An instance document that is marked as `writeOnly` for the entire - * document MAY be returned as a blank document of some sort, or MAY - * produce an error upon retrieval, or have the retrieval request ignored, - * at the authority's discretion. - * - * For example, `writeOnly` would be used to mark a password input field. - * - * These keywords can be used to assist in user interface instance - * generation. In particular, an application MAY choose to use a widget - * that hides input values as they are typed for write-only fields. - * - * @default false - */ - writeOnly?: boolean; -}; -export declare namespace JSONSchema { - type TypeValue = ValueOf | TypeName | Array | TypeName> | ReadonlyArray | TypeName>; - /** - * JSON Schema interface - */ - type Interface = Exclude, boolean>; - type Array = Pick, KeywordByType.Any | KeywordByType.Array>; - type Boolean = Pick, KeywordByType.Any>; - type Integer = Pick, KeywordByType.Any | KeywordByType.Number>; - type Number = Pick, KeywordByType.Any | KeywordByType.Number>; - type Null = Pick, KeywordByType.Any>; - type Object = Pick, KeywordByType.Any | KeywordByType.Object>; - type String = Pick, KeywordByType.Any | KeywordByType.String>; -} -declare namespace KeywordByType { - type Any = "$anchor" | "$comment" | "$defs" | "$dynamicAnchor" | "$dynamicRef" | "$id" | "$ref" | "$schema" | "$vocabulary" | "allOf" | "anyOf" | "const" | "default" | "definitions" | "deprecated" | "description" | "else" | "enum" | "examples" | "format" | "if" | "not" | "oneOf" | "readOnly" | "then" | "title" | "type" | "writeOnly"; - type Array = "additionalItems" | "contains" | "items" | "maxContains" | "maxItems" | "minContains" | "minItems" | "prefixItems" | "unevaluatedItems" | "uniqueItems"; - type Number = "exclusiveMaximum" | "exclusiveMinimum" | "maximum" | "minimum" | "multipleOf"; - type Object = "additionalProperties" | "dependencies" | "dependentRequired" | "dependentSchemas" | "maxProperties" | "minProperties" | "patternProperties" | "properties" | "propertyNames" | "required" | "unevaluatedProperties"; - type String = "contentEncoding" | "contentMediaType" | "contentSchema" | "maxLength" | "minLength" | "pattern"; -} -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export declare enum ContentEncoding { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - "7bit" = "7bit", - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - "8bit" = "8bit", - /** - * Useful for data that is mostly non-text. - */ - Base64 = "base64", - /** - * Same character set as 8bit, with no line length restriction. - */ - Binary = "binary", - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - IETFToken = "ietf-token", - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - QuotedPrintable = "quoted-printable", - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - XToken = "x-token" -} -/** - * This enum provides well-known formats that apply to strings. - */ -export declare enum Format { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Date = "date", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - DateTime = "date-time", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "duration" production. - */ - Duration = "duration", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by by the "Mailbox" ABNF rule in [RFC - * 5321][RFC5322], section 4.1.2. - * - * [RFC5321]: https://datatracker.ietf.org/doc/html/rfc5321 - */ - Email = "email", - /** - * As defined by [RFC 1123, section 2.1][RFC1123], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Hostname = "hostname", - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by the extended "Mailbox" ABNF rule in - * [RFC 6531][RFC6531], section 3.3. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - IDNEmail = "idn-email", - /** - * As defined by either [RFC 1123, section 2.1][RFC1123] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - IDNHostname = "idn-hostname", - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - IPv4 = "ipv4", - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - IPv6 = "ipv6", - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRI = "iri", - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - IRIReference = "iri-reference", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointer = "json-pointer", - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - JSONPointerURIFragment = "json-pointer-uri-fragment", - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft/2020-12/json-schema-validation.html#regexInterop - */ - RegEx = "regex", - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - RelativeJSONPointer = "relative-json-pointer", - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Time = "time", - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URI = "uri", - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - URIReference = "uri-reference", - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC 6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - URITemplate = "uri-template", - /** - * A string instance is valid against this attribute if it is a valid string - * representation of a UUID, according to [RFC 4122][RFC4122]. - * - * [RFC4122]: https://datatracker.ietf.org/doc/html/rfc4122 - */ - UUID = "uuid" -} -/** - * Enum consisting of simple type names for the `type` keyword - */ -export declare enum TypeName { - /** - * Value MUST be an array. - */ - Array = "array", - /** - * Value MUST be a boolean. - */ - Boolean = "boolean", - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - Integer = "integer", - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - Null = "null", - /** - * Value MUST be a number, floating point numbers are allowed. - */ - Number = "number", - /** - * Value MUST be an object. - */ - Object = "object", - /** - * Value MUST be a string. - */ - String = "string" -} -export declare const keywords: readonly ["$anchor", "$comment", "$defs", "$dynamicAnchor", "$dynamicRef", "$id", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems", "minLength", "minProperties", "multipleOf", "not", "oneOf", "pattern", "patternProperties", "prefixItems", "properties", "propertyNames", "readOnly", "required", "then", "title", "type", "unevaluatedItems", "unevaluatedProperties", "uniqueItems", "writeOnly"]; -export {}; diff --git a/mcp-server/node_modules/json-schema-typed/draft_2020_12.js b/mcp-server/node_modules/json-schema-typed/draft_2020_12.js deleted file mode 100644 index 67130c0..0000000 --- a/mcp-server/node_modules/json-schema-typed/draft_2020_12.js +++ /dev/null @@ -1,352 +0,0 @@ -// @generated -// This code is automatically generated. Manual editing is not recommended. -/* - * BSD-2-Clause License - * - * Original source code is copyright (c) 2025 Remy Rylan - * - * - * Documentation and keyword descriptions are copyright (c) 2020 IETF Trust - * , Austin Wright , Henry Andrews - * , Ben Hutton , and Greg Dennis - * . All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -export const draft = "2020-12"; -export const $schema = "https://json-schema.org/draft/2020-12/schema"; -// ----------------------------------------------------------------------------- -/** - * Content encoding strategy enum. - * - * - [Content-Transfer-Encoding Syntax](https://datatracker.ietf.org/doc/html/rfc2045#section-6.1) - * - [7bit vs 8bit encoding](https://stackoverflow.com/questions/25710599/content-transfer-encoding-7bit-or-8-bit/28531705#28531705) - */ -export var ContentEncoding; -(function (ContentEncoding) { - /** - * Only US-ASCII characters, which use the lower 7 bits for each character. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["7bit"] = "7bit"; - /** - * Allow extended ASCII characters which can use the 8th (highest) bit to - * indicate special characters not available in 7bit. - * - * Each line must be less than 1,000 characters. - */ - ContentEncoding["8bit"] = "8bit"; - /** - * Useful for data that is mostly non-text. - */ - ContentEncoding["Base64"] = "base64"; - /** - * Same character set as 8bit, with no line length restriction. - */ - ContentEncoding["Binary"] = "binary"; - /** - * An extension token defined by a standards-track RFC and registered with - * IANA. - */ - ContentEncoding["IETFToken"] = "ietf-token"; - /** - * Lines are limited to 76 characters, and line breaks are represented using - * special characters that are escaped. - */ - ContentEncoding["QuotedPrintable"] = "quoted-printable"; - /** - * The two characters "X-" or "x-" followed, with no intervening white space, - * by any token. - */ - ContentEncoding["XToken"] = "x-token"; -})(ContentEncoding || (ContentEncoding = {})); -/** - * This enum provides well-known formats that apply to strings. - */ -export var Format; -(function (Format) { - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "full-date" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Date"] = "date"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "date-time" production in - * [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["DateTime"] = "date-time"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "duration" production. - */ - Format["Duration"] = "duration"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by by the "Mailbox" ABNF rule in [RFC - * 5321][RFC5322], section 4.1.2. - * - * [RFC5321]: https://datatracker.ietf.org/doc/html/rfc5321 - */ - Format["Email"] = "email"; - /** - * As defined by [RFC 1123, section 2.1][RFC1123], including host names - * produced using the Punycode algorithm specified in - * [RFC 5891, section 4.4][RFC5891]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5891]: https://datatracker.ietf.org/doc/html/rfc5891 - */ - Format["Hostname"] = "hostname"; - /** - * A string instance is valid against this attribute if it is a valid Internet - * email address as defined by the extended "Mailbox" ABNF rule in - * [RFC 6531][RFC6531], section 3.3. - * - * [RFC6531]: https://datatracker.ietf.org/doc/html/rfc6531 - */ - Format["IDNEmail"] = "idn-email"; - /** - * As defined by either [RFC 1123, section 2.1][RFC1123] as for hostname, or - * an internationalized hostname as defined by - * [RFC 5890, section 2.3.2.3][RFC5890]. - * - * [RFC1123]: https://datatracker.ietf.org/doc/html/rfc1123 - * [RFC5890]: https://datatracker.ietf.org/doc/html/rfc5890 - */ - Format["IDNHostname"] = "idn-hostname"; - /** - * An IPv4 address according to the "dotted-quad" ABNF syntax as defined in - * [RFC 2673, section 3.2][RFC2673]. - * - * [RFC2673]: https://datatracker.ietf.org/doc/html/rfc2673 - */ - Format["IPv4"] = "ipv4"; - /** - * An IPv6 address as defined in [RFC 4291, section 2.2][RFC4291]. - * - * [RFC4291]: https://datatracker.ietf.org/doc/html/rfc4291 - */ - Format["IPv6"] = "ipv6"; - /** - * A string instance is valid against this attribute if it is a valid IRI, - * according to [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRI"] = "iri"; - /** - * A string instance is valid against this attribute if it is a valid IRI - * Reference (either an IRI or a relative-reference), according to - * [RFC 3987][RFC3987]. - * - * [RFC3987]: https://datatracker.ietf.org/doc/html/rfc3987 - */ - Format["IRIReference"] = "iri-reference"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointer"] = "json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid JSON - * string representation of a JSON Pointer fragment, according to - * [RFC 6901, section 5][RFC6901]. - * - * [RFC6901]: https://datatracker.ietf.org/doc/html/rfc6901 - */ - Format["JSONPointerURIFragment"] = "json-pointer-uri-fragment"; - /** - * This attribute applies to string instances. - * - * A regular expression, which SHOULD be valid according to the - * [ECMA-262][ecma262] regular expression dialect. - * - * Implementations that validate formats MUST accept at least the subset of - * [ECMA-262][ecma262] defined in the [Regular Expressions][regexInterop] - * section of this specification, and SHOULD accept all valid - * [ECMA-262][ecma262] expressions. - * - * [ecma262]: https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ - * [regexInterop]: https://json-schema.org/draft/2020-12/json-schema-validation.html#regexInterop - */ - Format["RegEx"] = "regex"; - /** - * A string instance is valid against this attribute if it is a valid - * [Relative JSON Pointer][relative-json-pointer]. - * - * [relative-json-pointer]: https://datatracker.ietf.org/doc/html/draft-handrews-relative-json-pointer-01 - */ - Format["RelativeJSONPointer"] = "relative-json-pointer"; - /** - * A string instance is valid against this attribute if it is a valid - * representation according to the "time" production in [RFC 3339][RFC3339]. - * - * [RFC3339]: https://datatracker.ietf.org/doc/html/rfc3339 - */ - Format["Time"] = "time"; - /** - * A string instance is valid against this attribute if it is a valid URI, - * according to [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URI"] = "uri"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Reference (either a URI or a relative-reference), according to - * [RFC3986][RFC3986]. - * - * [RFC3986]: https://datatracker.ietf.org/doc/html/rfc3986 - */ - Format["URIReference"] = "uri-reference"; - /** - * A string instance is valid against this attribute if it is a valid URI - * Template (of any level), according to [RFC 6570][RFC6570]. - * - * Note that URI Templates may be used for IRIs; there is no separate IRI - * Template specification. - * - * [RFC6570]: https://datatracker.ietf.org/doc/html/rfc6570 - */ - Format["URITemplate"] = "uri-template"; - /** - * A string instance is valid against this attribute if it is a valid string - * representation of a UUID, according to [RFC 4122][RFC4122]. - * - * [RFC4122]: https://datatracker.ietf.org/doc/html/rfc4122 - */ - Format["UUID"] = "uuid"; -})(Format || (Format = {})); -/** - * Enum consisting of simple type names for the `type` keyword - */ -export var TypeName; -(function (TypeName) { - /** - * Value MUST be an array. - */ - TypeName["Array"] = "array"; - /** - * Value MUST be a boolean. - */ - TypeName["Boolean"] = "boolean"; - /** - * Value MUST be an integer, no floating point numbers are allowed. This is a - * subset of the number type. - */ - TypeName["Integer"] = "integer"; - /** - * Value MUST be null. Note this is mainly for purpose of being able use union - * types to define nullability. If this type is not included in a union, null - * values are not allowed (the primitives listed above do not allow nulls on - * their own). - */ - TypeName["Null"] = "null"; - /** - * Value MUST be a number, floating point numbers are allowed. - */ - TypeName["Number"] = "number"; - /** - * Value MUST be an object. - */ - TypeName["Object"] = "object"; - /** - * Value MUST be a string. - */ - TypeName["String"] = "string"; -})(TypeName || (TypeName = {})); -// ----------------------------------------------------------------------------- -// Keywords -// ----------------------------------------------------------------------------- -export const keywords = [ - "$anchor", - "$comment", - "$defs", - "$dynamicAnchor", - "$dynamicRef", - "$id", - "$ref", - "$schema", - "$vocabulary", - "additionalItems", - "additionalProperties", - "allOf", - "anyOf", - "const", - "contains", - "contentEncoding", - "contentMediaType", - "contentSchema", - "default", - "definitions", - "dependencies", - "dependentRequired", - "dependentSchemas", - "deprecated", - "description", - "else", - "enum", - "examples", - "exclusiveMaximum", - "exclusiveMinimum", - "format", - "if", - "items", - "maxContains", - "maximum", - "maxItems", - "maxLength", - "maxProperties", - "minContains", - "minimum", - "minItems", - "minLength", - "minProperties", - "multipleOf", - "not", - "oneOf", - "pattern", - "patternProperties", - "prefixItems", - "properties", - "propertyNames", - "readOnly", - "required", - "then", - "title", - "type", - "unevaluatedItems", - "unevaluatedProperties", - "uniqueItems", - "writeOnly", -]; diff --git a/mcp-server/node_modules/json-schema-typed/package.json b/mcp-server/node_modules/json-schema-typed/package.json deleted file mode 100644 index b5d791c..0000000 --- a/mcp-server/node_modules/json-schema-typed/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "json-schema-typed", - "description": "JSON Schema TypeScript definitions with complete inline documentation.", - "license": "BSD-2-Clause", - "version": "8.0.2", - "homepage": "https://github.com/RemyRylan/json-schema-typed/tree/main/dist/node", - "repository": { - "type": "git", - "url": "https://github.com/RemyRylan/json-schema-typed.git" - }, - "author": { - "name": "Remy Rylan", - "url": "https://github.com/RemyRylan" - }, - "main": "./draft_2020_12.js", - "types": "./draft_2020_12.d.ts", - "type": "module", - "exports": { - ".": { - "types": "./draft_2020_12.d.ts", - "default": "./draft_2020_12.js" - }, - "./draft-07": { - "types": "./draft_07.d.ts", - "default": "./draft_07.js" - }, - "./draft-2019-09": { - "types": "./draft_2019_09.d.ts", - "default": "./draft_2019_09.js" - }, - "./draft-2020-12": { - "types": "./draft_2020_12.d.ts", - "default": "./draft_2020_12.js" - } - }, - "keywords": [ - "jsonschema", - "typescript", - "types", - "definitions", - "json", - "schema" - ] -} diff --git a/mcp-server/node_modules/math-intrinsics/.eslintrc b/mcp-server/node_modules/math-intrinsics/.eslintrc deleted file mode 100644 index d90a1bc..0000000 --- a/mcp-server/node_modules/math-intrinsics/.eslintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "eqeqeq": ["error", "allow-null"], - "id-length": "off", - "new-cap": ["error", { - "capIsNewExceptions": [ - "RequireObjectCoercible", - "ToObject", - ], - }], - }, -} diff --git a/mcp-server/node_modules/math-intrinsics/.github/FUNDING.yml b/mcp-server/node_modules/math-intrinsics/.github/FUNDING.yml deleted file mode 100644 index 868f4ff..0000000 --- a/mcp-server/node_modules/math-intrinsics/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/math-intrinsics -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/mcp-server/node_modules/math-intrinsics/CHANGELOG.md b/mcp-server/node_modules/math-intrinsics/CHANGELOG.md deleted file mode 100644 index 9cf48f5..0000000 --- a/mcp-server/node_modules/math-intrinsics/CHANGELOG.md +++ /dev/null @@ -1,24 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.1.0](https://github.com/es-shims/math-intrinsics/compare/v1.0.0...v1.1.0) - 2024-12-18 - -### Commits - -- [New] add `round` [`7cfb044`](https://github.com/es-shims/math-intrinsics/commit/7cfb04460c0fbdf1ca101eecbac3f59d11994130) -- [Tests] add attw [`e96be8f`](https://github.com/es-shims/math-intrinsics/commit/e96be8fbf58449eafe976446a0470e6ea561ad8d) -- [Dev Deps] update `@types/tape` [`30d0023`](https://github.com/es-shims/math-intrinsics/commit/30d00234ce8a3fa0094a61cd55d6686eb91e36ec) - -## v1.0.0 - 2024-12-11 - -### Commits - -- Initial implementation, tests, readme, types [`b898caa`](https://github.com/es-shims/math-intrinsics/commit/b898caae94e9994a94a42b8740f7bbcfd0a868fe) -- Initial commit [`02745b0`](https://github.com/es-shims/math-intrinsics/commit/02745b03a62255af8a332771987b55d127538d9c) -- [New] add `constants/maxArrayLength`, `mod` [`b978178`](https://github.com/es-shims/math-intrinsics/commit/b978178a57685bd23ed1c7efe2137f3784f5fcc5) -- npm init [`a39fc57`](https://github.com/es-shims/math-intrinsics/commit/a39fc57e5639a645d0bd52a0dc56202480223be2) -- Only apps should have lockfiles [`9451580`](https://github.com/es-shims/math-intrinsics/commit/94515800fb34db4f3cc7e99290042d45609ac7bd) diff --git a/mcp-server/node_modules/math-intrinsics/LICENSE b/mcp-server/node_modules/math-intrinsics/LICENSE deleted file mode 100644 index 34995e7..0000000 --- a/mcp-server/node_modules/math-intrinsics/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 ECMAScript Shims - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/math-intrinsics/README.md b/mcp-server/node_modules/math-intrinsics/README.md deleted file mode 100644 index 4a66dcf..0000000 --- a/mcp-server/node_modules/math-intrinsics/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# math-intrinsics [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -ES Math-related intrinsics and helpers, robustly cached. - - - `abs` - - `floor` - - `isFinite` - - `isInteger` - - `isNaN` - - `isNegativeZero` - - `max` - - `min` - - `mod` - - `pow` - - `round` - - `sign` - - `constants/maxArrayLength` - - `constants/maxSafeInteger` - - `constants/maxValue` - - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -## Security - -Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. - -[package-url]: https://npmjs.org/package/math-intrinsics -[npm-version-svg]: https://versionbadg.es/es-shims/math-intrinsics.svg -[deps-svg]: https://david-dm.org/es-shims/math-intrinsics.svg -[deps-url]: https://david-dm.org/es-shims/math-intrinsics -[dev-deps-svg]: https://david-dm.org/es-shims/math-intrinsics/dev-status.svg -[dev-deps-url]: https://david-dm.org/es-shims/math-intrinsics#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/math-intrinsics.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/math-intrinsics.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/es-object.svg -[downloads-url]: https://npm-stat.com/charts.html?package=math-intrinsics -[codecov-image]: https://codecov.io/gh/es-shims/math-intrinsics/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/es-shims/math-intrinsics/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/math-intrinsics -[actions-url]: https://github.com/es-shims/math-intrinsics/actions diff --git a/mcp-server/node_modules/math-intrinsics/abs.d.ts b/mcp-server/node_modules/math-intrinsics/abs.d.ts deleted file mode 100644 index 14ad9c6..0000000 --- a/mcp-server/node_modules/math-intrinsics/abs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.abs; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/abs.js b/mcp-server/node_modules/math-intrinsics/abs.js deleted file mode 100644 index a751424..0000000 --- a/mcp-server/node_modules/math-intrinsics/abs.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./abs')} */ -module.exports = Math.abs; diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.d.ts b/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.d.ts deleted file mode 100644 index b92d46b..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const MAX_ARRAY_LENGTH: 4294967295; - -export = MAX_ARRAY_LENGTH; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.js b/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.js deleted file mode 100644 index cfc6aff..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxArrayLength.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./maxArrayLength')} */ -module.exports = 4294967295; // Math.pow(2, 32) - 1; diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts b/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts deleted file mode 100644 index fee3f62..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const MAX_SAFE_INTEGER: 9007199254740991; - -export = MAX_SAFE_INTEGER; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.js b/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.js deleted file mode 100644 index b568ad3..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxSafeInteger.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -/** @type {import('./maxSafeInteger')} */ -// eslint-disable-next-line no-extra-parens -module.exports = /** @type {import('./maxSafeInteger')} */ (Number.MAX_SAFE_INTEGER) || 9007199254740991; // Math.pow(2, 53) - 1; diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxValue.d.ts b/mcp-server/node_modules/math-intrinsics/constants/maxValue.d.ts deleted file mode 100644 index 292cb82..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxValue.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const MAX_VALUE: 1.7976931348623157e+308; - -export = MAX_VALUE; diff --git a/mcp-server/node_modules/math-intrinsics/constants/maxValue.js b/mcp-server/node_modules/math-intrinsics/constants/maxValue.js deleted file mode 100644 index a2202dc..0000000 --- a/mcp-server/node_modules/math-intrinsics/constants/maxValue.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -/** @type {import('./maxValue')} */ -// eslint-disable-next-line no-extra-parens -module.exports = /** @type {import('./maxValue')} */ (Number.MAX_VALUE) || 1.7976931348623157e+308; diff --git a/mcp-server/node_modules/math-intrinsics/floor.d.ts b/mcp-server/node_modules/math-intrinsics/floor.d.ts deleted file mode 100644 index 9265236..0000000 --- a/mcp-server/node_modules/math-intrinsics/floor.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.floor; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/floor.js b/mcp-server/node_modules/math-intrinsics/floor.js deleted file mode 100644 index ab0e5d7..0000000 --- a/mcp-server/node_modules/math-intrinsics/floor.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./floor')} */ -module.exports = Math.floor; diff --git a/mcp-server/node_modules/math-intrinsics/isFinite.d.ts b/mcp-server/node_modules/math-intrinsics/isFinite.d.ts deleted file mode 100644 index 6daae33..0000000 --- a/mcp-server/node_modules/math-intrinsics/isFinite.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function isFinite(x: unknown): x is number | bigint; - -export = isFinite; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/isFinite.js b/mcp-server/node_modules/math-intrinsics/isFinite.js deleted file mode 100644 index b201a5a..0000000 --- a/mcp-server/node_modules/math-intrinsics/isFinite.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var $isNaN = require('./isNaN'); - -/** @type {import('./isFinite')} */ -module.exports = function isFinite(x) { - return (typeof x === 'number' || typeof x === 'bigint') - && !$isNaN(x) - && x !== Infinity - && x !== -Infinity; -}; - diff --git a/mcp-server/node_modules/math-intrinsics/isInteger.d.ts b/mcp-server/node_modules/math-intrinsics/isInteger.d.ts deleted file mode 100644 index 13935a8..0000000 --- a/mcp-server/node_modules/math-intrinsics/isInteger.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function isInteger(argument: unknown): argument is number; - -export = isInteger; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/isInteger.js b/mcp-server/node_modules/math-intrinsics/isInteger.js deleted file mode 100644 index 4b1b9a5..0000000 --- a/mcp-server/node_modules/math-intrinsics/isInteger.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var $abs = require('./abs'); -var $floor = require('./floor'); - -var $isNaN = require('./isNaN'); -var $isFinite = require('./isFinite'); - -/** @type {import('./isInteger')} */ -module.exports = function isInteger(argument) { - if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = $abs(argument); - return $floor(absValue) === absValue; -}; diff --git a/mcp-server/node_modules/math-intrinsics/isNaN.d.ts b/mcp-server/node_modules/math-intrinsics/isNaN.d.ts deleted file mode 100644 index c1d4c55..0000000 --- a/mcp-server/node_modules/math-intrinsics/isNaN.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Number.isNaN; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/isNaN.js b/mcp-server/node_modules/math-intrinsics/isNaN.js deleted file mode 100644 index e36475c..0000000 --- a/mcp-server/node_modules/math-intrinsics/isNaN.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -/** @type {import('./isNaN')} */ -module.exports = Number.isNaN || function isNaN(a) { - return a !== a; -}; diff --git a/mcp-server/node_modules/math-intrinsics/isNegativeZero.d.ts b/mcp-server/node_modules/math-intrinsics/isNegativeZero.d.ts deleted file mode 100644 index 7ad8819..0000000 --- a/mcp-server/node_modules/math-intrinsics/isNegativeZero.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function isNegativeZero(x: unknown): boolean; - -export = isNegativeZero; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/isNegativeZero.js b/mcp-server/node_modules/math-intrinsics/isNegativeZero.js deleted file mode 100644 index b69adcc..0000000 --- a/mcp-server/node_modules/math-intrinsics/isNegativeZero.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -/** @type {import('./isNegativeZero')} */ -module.exports = function isNegativeZero(x) { - return x === 0 && 1 / x === 1 / -0; -}; diff --git a/mcp-server/node_modules/math-intrinsics/max.d.ts b/mcp-server/node_modules/math-intrinsics/max.d.ts deleted file mode 100644 index ad6f43e..0000000 --- a/mcp-server/node_modules/math-intrinsics/max.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.max; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/max.js b/mcp-server/node_modules/math-intrinsics/max.js deleted file mode 100644 index edb55df..0000000 --- a/mcp-server/node_modules/math-intrinsics/max.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./max')} */ -module.exports = Math.max; diff --git a/mcp-server/node_modules/math-intrinsics/min.d.ts b/mcp-server/node_modules/math-intrinsics/min.d.ts deleted file mode 100644 index fd90f2d..0000000 --- a/mcp-server/node_modules/math-intrinsics/min.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.min; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/min.js b/mcp-server/node_modules/math-intrinsics/min.js deleted file mode 100644 index 5a4a7c7..0000000 --- a/mcp-server/node_modules/math-intrinsics/min.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./min')} */ -module.exports = Math.min; diff --git a/mcp-server/node_modules/math-intrinsics/mod.d.ts b/mcp-server/node_modules/math-intrinsics/mod.d.ts deleted file mode 100644 index 549dbd4..0000000 --- a/mcp-server/node_modules/math-intrinsics/mod.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function mod(number: number, modulo: number): number; - -export = mod; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/mod.js b/mcp-server/node_modules/math-intrinsics/mod.js deleted file mode 100644 index 4a98362..0000000 --- a/mcp-server/node_modules/math-intrinsics/mod.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -var $floor = require('./floor'); - -/** @type {import('./mod')} */ -module.exports = function mod(number, modulo) { - var remain = number % modulo; - return $floor(remain >= 0 ? remain : remain + modulo); -}; diff --git a/mcp-server/node_modules/math-intrinsics/package.json b/mcp-server/node_modules/math-intrinsics/package.json deleted file mode 100644 index 0676273..0000000 --- a/mcp-server/node_modules/math-intrinsics/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "math-intrinsics", - "version": "1.1.0", - "description": "ES Math-related intrinsics and helpers, robustly cached.", - "main": false, - "exports": { - "./abs": "./abs.js", - "./floor": "./floor.js", - "./isFinite": "./isFinite.js", - "./isInteger": "./isInteger.js", - "./isNaN": "./isNaN.js", - "./isNegativeZero": "./isNegativeZero.js", - "./max": "./max.js", - "./min": "./min.js", - "./mod": "./mod.js", - "./pow": "./pow.js", - "./sign": "./sign.js", - "./round": "./round.js", - "./constants/maxArrayLength": "./constants/maxArrayLength.js", - "./constants/maxSafeInteger": "./constants/maxSafeInteger.js", - "./constants/maxValue": "./constants/maxValue.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "pretest": "npm run lint", - "test": "npm run tests-only", - "tests-only": "nyc tape 'test/**/*.js'", - "posttest": "npx npm@'>= 10.2' audit --production", - "prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", - "lint": "eslint --ext=js,mjs .", - "postlint": "tsc && attw -P", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/es-shims/math-intrinsics.git" - }, - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/es-shims/math-intrinsics/issues" - }, - "homepage": "https://github.com/es-shims/math-intrinsics#readme", - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.1", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.2.2", - "@types/for-each": "^0.3.3", - "@types/object-inspect": "^1.13.0", - "@types/tape": "^5.8.0", - "auto-changelog": "^2.5.0", - "eclint": "^2.8.1", - "es-value-fixtures": "^1.5.0", - "eslint": "^8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.3", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.3", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/mcp-server/node_modules/math-intrinsics/pow.d.ts b/mcp-server/node_modules/math-intrinsics/pow.d.ts deleted file mode 100644 index 5873c44..0000000 --- a/mcp-server/node_modules/math-intrinsics/pow.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.pow; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/pow.js b/mcp-server/node_modules/math-intrinsics/pow.js deleted file mode 100644 index c0a4103..0000000 --- a/mcp-server/node_modules/math-intrinsics/pow.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./pow')} */ -module.exports = Math.pow; diff --git a/mcp-server/node_modules/math-intrinsics/round.d.ts b/mcp-server/node_modules/math-intrinsics/round.d.ts deleted file mode 100644 index da1fde3..0000000 --- a/mcp-server/node_modules/math-intrinsics/round.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Math.round; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/round.js b/mcp-server/node_modules/math-intrinsics/round.js deleted file mode 100644 index b792156..0000000 --- a/mcp-server/node_modules/math-intrinsics/round.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./round')} */ -module.exports = Math.round; diff --git a/mcp-server/node_modules/math-intrinsics/sign.d.ts b/mcp-server/node_modules/math-intrinsics/sign.d.ts deleted file mode 100644 index c49ceca..0000000 --- a/mcp-server/node_modules/math-intrinsics/sign.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function sign(x: number): number; - -export = sign; \ No newline at end of file diff --git a/mcp-server/node_modules/math-intrinsics/sign.js b/mcp-server/node_modules/math-intrinsics/sign.js deleted file mode 100644 index 9e5173c..0000000 --- a/mcp-server/node_modules/math-intrinsics/sign.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var $isNaN = require('./isNaN'); - -/** @type {import('./sign')} */ -module.exports = function sign(number) { - if ($isNaN(number) || number === 0) { - return number; - } - return number < 0 ? -1 : +1; -}; diff --git a/mcp-server/node_modules/math-intrinsics/test/index.js b/mcp-server/node_modules/math-intrinsics/test/index.js deleted file mode 100644 index 0f90a5d..0000000 --- a/mcp-server/node_modules/math-intrinsics/test/index.js +++ /dev/null @@ -1,192 +0,0 @@ -'use strict'; - -var test = require('tape'); -var v = require('es-value-fixtures'); -var forEach = require('for-each'); -var inspect = require('object-inspect'); - -var abs = require('../abs'); -var floor = require('../floor'); -var isFinite = require('../isFinite'); -var isInteger = require('../isInteger'); -var isNaN = require('../isNaN'); -var isNegativeZero = require('../isNegativeZero'); -var max = require('../max'); -var min = require('../min'); -var mod = require('../mod'); -var pow = require('../pow'); -var round = require('../round'); -var sign = require('../sign'); - -var maxArrayLength = require('../constants/maxArrayLength'); -var maxSafeInteger = require('../constants/maxSafeInteger'); -var maxValue = require('../constants/maxValue'); - -test('abs', function (t) { - t.equal(abs(-1), 1, 'abs(-1) === 1'); - t.equal(abs(+1), 1, 'abs(+1) === 1'); - t.equal(abs(+0), +0, 'abs(+0) === +0'); - t.equal(abs(-0), +0, 'abs(-0) === +0'); - - t.end(); -}); - -test('floor', function (t) { - t.equal(floor(-1.1), -2, 'floor(-1.1) === -2'); - t.equal(floor(+1.1), 1, 'floor(+1.1) === 1'); - t.equal(floor(+0), +0, 'floor(+0) === +0'); - t.equal(floor(-0), -0, 'floor(-0) === -0'); - t.equal(floor(-Infinity), -Infinity, 'floor(-Infinity) === -Infinity'); - t.equal(floor(Number(Infinity)), Number(Infinity), 'floor(+Infinity) === +Infinity'); - t.equal(floor(NaN), NaN, 'floor(NaN) === NaN'); - t.equal(floor(0), +0, 'floor(0) === +0'); - t.equal(floor(-0), -0, 'floor(-0) === -0'); - t.equal(floor(1), 1, 'floor(1) === 1'); - t.equal(floor(-1), -1, 'floor(-1) === -1'); - t.equal(floor(1.1), 1, 'floor(1.1) === 1'); - t.equal(floor(-1.1), -2, 'floor(-1.1) === -2'); - t.equal(floor(maxValue), maxValue, 'floor(maxValue) === maxValue'); - t.equal(floor(maxSafeInteger), maxSafeInteger, 'floor(maxSafeInteger) === maxSafeInteger'); - - t.end(); -}); - -test('isFinite', function (t) { - t.equal(isFinite(0), true, 'isFinite(+0) === true'); - t.equal(isFinite(-0), true, 'isFinite(-0) === true'); - t.equal(isFinite(1), true, 'isFinite(1) === true'); - t.equal(isFinite(Infinity), false, 'isFinite(Infinity) === false'); - t.equal(isFinite(-Infinity), false, 'isFinite(-Infinity) === false'); - t.equal(isFinite(NaN), false, 'isFinite(NaN) === false'); - - forEach(v.nonNumbers, function (nonNumber) { - t.equal(isFinite(nonNumber), false, 'isFinite(' + inspect(nonNumber) + ') === false'); - }); - - t.end(); -}); - -test('isInteger', function (t) { - forEach([].concat( - // @ts-expect-error TS sucks with concat - v.nonNumbers, - v.nonIntegerNumbers - ), function (nonInteger) { - t.equal(isInteger(nonInteger), false, 'isInteger(' + inspect(nonInteger) + ') === false'); - }); - - t.end(); -}); - -test('isNaN', function (t) { - forEach([].concat( - // @ts-expect-error TS sucks with concat - v.nonNumbers, - v.infinities, - v.zeroes, - v.integerNumbers - ), function (nonNaN) { - t.equal(isNaN(nonNaN), false, 'isNaN(' + inspect(nonNaN) + ') === false'); - }); - - t.equal(isNaN(NaN), true, 'isNaN(NaN) === true'); - - t.end(); -}); - -test('isNegativeZero', function (t) { - t.equal(isNegativeZero(-0), true, 'isNegativeZero(-0) === true'); - t.equal(isNegativeZero(+0), false, 'isNegativeZero(+0) === false'); - t.equal(isNegativeZero(1), false, 'isNegativeZero(1) === false'); - t.equal(isNegativeZero(-1), false, 'isNegativeZero(-1) === false'); - t.equal(isNegativeZero(NaN), false, 'isNegativeZero(NaN) === false'); - t.equal(isNegativeZero(Infinity), false, 'isNegativeZero(Infinity) === false'); - t.equal(isNegativeZero(-Infinity), false, 'isNegativeZero(-Infinity) === false'); - - forEach(v.nonNumbers, function (nonNumber) { - t.equal(isNegativeZero(nonNumber), false, 'isNegativeZero(' + inspect(nonNumber) + ') === false'); - }); - - t.end(); -}); - -test('max', function (t) { - t.equal(max(1, 2), 2, 'max(1, 2) === 2'); - t.equal(max(1, 2, 3), 3, 'max(1, 2, 3) === 3'); - t.equal(max(1, 2, 3, 4), 4, 'max(1, 2, 3, 4) === 4'); - t.equal(max(1, 2, 3, 4, 5), 5, 'max(1, 2, 3, 4, 5) === 5'); - t.equal(max(1, 2, 3, 4, 5, 6), 6, 'max(1, 2, 3, 4, 5, 6) === 6'); - t.equal(max(1, 2, 3, 4, 5, 6, 7), 7, 'max(1, 2, 3, 4, 5, 6, 7) === 7'); - - t.end(); -}); - -test('min', function (t) { - t.equal(min(1, 2), 1, 'min(1, 2) === 1'); - t.equal(min(1, 2, 3), 1, 'min(1, 2, 3) === 1'); - t.equal(min(1, 2, 3, 4), 1, 'min(1, 2, 3, 4) === 1'); - t.equal(min(1, 2, 3, 4, 5), 1, 'min(1, 2, 3, 4, 5) === 1'); - t.equal(min(1, 2, 3, 4, 5, 6), 1, 'min(1, 2, 3, 4, 5, 6) === 1'); - - t.end(); -}); - -test('mod', function (t) { - t.equal(mod(1, 2), 1, 'mod(1, 2) === 1'); - t.equal(mod(2, 2), 0, 'mod(2, 2) === 0'); - t.equal(mod(3, 2), 1, 'mod(3, 2) === 1'); - t.equal(mod(4, 2), 0, 'mod(4, 2) === 0'); - t.equal(mod(5, 2), 1, 'mod(5, 2) === 1'); - t.equal(mod(6, 2), 0, 'mod(6, 2) === 0'); - t.equal(mod(7, 2), 1, 'mod(7, 2) === 1'); - t.equal(mod(8, 2), 0, 'mod(8, 2) === 0'); - t.equal(mod(9, 2), 1, 'mod(9, 2) === 1'); - t.equal(mod(10, 2), 0, 'mod(10, 2) === 0'); - t.equal(mod(11, 2), 1, 'mod(11, 2) === 1'); - - t.end(); -}); - -test('pow', function (t) { - t.equal(pow(2, 2), 4, 'pow(2, 2) === 4'); - t.equal(pow(2, 3), 8, 'pow(2, 3) === 8'); - t.equal(pow(2, 4), 16, 'pow(2, 4) === 16'); - t.equal(pow(2, 5), 32, 'pow(2, 5) === 32'); - t.equal(pow(2, 6), 64, 'pow(2, 6) === 64'); - t.equal(pow(2, 7), 128, 'pow(2, 7) === 128'); - t.equal(pow(2, 8), 256, 'pow(2, 8) === 256'); - t.equal(pow(2, 9), 512, 'pow(2, 9) === 512'); - t.equal(pow(2, 10), 1024, 'pow(2, 10) === 1024'); - - t.end(); -}); - -test('round', function (t) { - t.equal(round(1.1), 1, 'round(1.1) === 1'); - t.equal(round(1.5), 2, 'round(1.5) === 2'); - t.equal(round(1.9), 2, 'round(1.9) === 2'); - - t.end(); -}); - -test('sign', function (t) { - t.equal(sign(-1), -1, 'sign(-1) === -1'); - t.equal(sign(+1), +1, 'sign(+1) === +1'); - t.equal(sign(+0), +0, 'sign(+0) === +0'); - t.equal(sign(-0), -0, 'sign(-0) === -0'); - t.equal(sign(NaN), NaN, 'sign(NaN) === NaN'); - t.equal(sign(Infinity), +1, 'sign(Infinity) === +1'); - t.equal(sign(-Infinity), -1, 'sign(-Infinity) === -1'); - t.equal(sign(maxValue), +1, 'sign(maxValue) === +1'); - t.equal(sign(maxSafeInteger), +1, 'sign(maxSafeInteger) === +1'); - - t.end(); -}); - -test('constants', function (t) { - t.equal(typeof maxArrayLength, 'number', 'typeof maxArrayLength === "number"'); - t.equal(typeof maxSafeInteger, 'number', 'typeof maxSafeInteger === "number"'); - t.equal(typeof maxValue, 'number', 'typeof maxValue === "number"'); - - t.end(); -}); diff --git a/mcp-server/node_modules/math-intrinsics/tsconfig.json b/mcp-server/node_modules/math-intrinsics/tsconfig.json deleted file mode 100644 index b131000..0000000 --- a/mcp-server/node_modules/math-intrinsics/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", -} diff --git a/mcp-server/node_modules/media-typer/HISTORY.md b/mcp-server/node_modules/media-typer/HISTORY.md deleted file mode 100644 index 62c2003..0000000 --- a/mcp-server/node_modules/media-typer/HISTORY.md +++ /dev/null @@ -1,22 +0,0 @@ -0.3.0 / 2014-09-07 -================== - - * Support Node.js 0.6 - * Throw error when parameter format invalid on parse - -0.2.0 / 2014-06-18 -================== - - * Add `typer.format()` to format media types - -0.1.0 / 2014-06-17 -================== - - * Accept `req` as argument to `parse` - * Accept `res` as argument to `parse` - * Parse media type with extra LWS between type and first parameter - -0.0.0 / 2014-06-13 -================== - - * Initial implementation diff --git a/mcp-server/node_modules/media-typer/LICENSE b/mcp-server/node_modules/media-typer/LICENSE deleted file mode 100644 index b7dce6c..0000000 --- a/mcp-server/node_modules/media-typer/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/media-typer/README.md b/mcp-server/node_modules/media-typer/README.md deleted file mode 100644 index d8df623..0000000 --- a/mcp-server/node_modules/media-typer/README.md +++ /dev/null @@ -1,81 +0,0 @@ -# media-typer - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Simple RFC 6838 media type parser - -## Installation - -```sh -$ npm install media-typer -``` - -## API - -```js -var typer = require('media-typer') -``` - -### typer.parse(string) - -```js -var obj = typer.parse('image/svg+xml; charset=utf-8') -``` - -Parse a media type string. This will return an object with the following -properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`): - - - `type`: The type of the media type (always lower case). Example: `'image'` - - - `subtype`: The subtype of the media type (always lower case). Example: `'svg'` - - - `suffix`: The suffix of the media type (always lower case). Example: `'xml'` - - - `parameters`: An object of the parameters in the media type (name of parameter always lower case). Example: `{charset: 'utf-8'}` - -### typer.parse(req) - -```js -var obj = typer.parse(req) -``` - -Parse the `content-type` header from the given `req`. Short-cut for -`typer.parse(req.headers['content-type'])`. - -### typer.parse(res) - -```js -var obj = typer.parse(res) -``` - -Parse the `content-type` header set on the given `res`. Short-cut for -`typer.parse(res.getHeader('content-type'))`. - -### typer.format(obj) - -```js -var obj = typer.format({type: 'image', subtype: 'svg', suffix: 'xml'}) -``` - -Format an object into a media type string. This will return a string of the -mime type for the given object. For the properties of the object, see the -documentation for `typer.parse(string)`. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/media-typer.svg?style=flat -[npm-url]: https://npmjs.org/package/media-typer -[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat -[node-version-url]: http://nodejs.org/download/ -[travis-image]: https://img.shields.io/travis/jshttp/media-typer.svg?style=flat -[travis-url]: https://travis-ci.org/jshttp/media-typer -[coveralls-image]: https://img.shields.io/coveralls/jshttp/media-typer.svg?style=flat -[coveralls-url]: https://coveralls.io/r/jshttp/media-typer -[downloads-image]: https://img.shields.io/npm/dm/media-typer.svg?style=flat -[downloads-url]: https://npmjs.org/package/media-typer diff --git a/mcp-server/node_modules/media-typer/index.js b/mcp-server/node_modules/media-typer/index.js deleted file mode 100644 index 07f7295..0000000 --- a/mcp-server/node_modules/media-typer/index.js +++ /dev/null @@ -1,270 +0,0 @@ -/*! - * media-typer - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * RegExp to match *( ";" parameter ) in RFC 2616 sec 3.7 - * - * parameter = token "=" ( token | quoted-string ) - * token = 1* - * separators = "(" | ")" | "<" | ">" | "@" - * | "," | ";" | ":" | "\" | <"> - * | "/" | "[" | "]" | "?" | "=" - * | "{" | "}" | SP | HT - * quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) - * qdtext = > - * quoted-pair = "\" CHAR - * CHAR = - * TEXT = - * LWS = [CRLF] 1*( SP | HT ) - * CRLF = CR LF - * CR = - * LF = - * SP = - * SHT = - * CTL = - * OCTET = - */ -var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g; -var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/ -var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/ - -/** - * RegExp to match quoted-pair in RFC 2616 - * - * quoted-pair = "\" CHAR - * CHAR = - */ -var qescRegExp = /\\([\u0000-\u007f])/g; - -/** - * RegExp to match chars that must be quoted-pair in RFC 2616 - */ -var quoteRegExp = /([\\"])/g; - -/** - * RegExp to match type in RFC 6838 - * - * type-name = restricted-name - * subtype-name = restricted-name - * restricted-name = restricted-name-first *126restricted-name-chars - * restricted-name-first = ALPHA / DIGIT - * restricted-name-chars = ALPHA / DIGIT / "!" / "#" / - * "$" / "&" / "-" / "^" / "_" - * restricted-name-chars =/ "." ; Characters before first dot always - * ; specify a facet name - * restricted-name-chars =/ "+" ; Characters after last plus always - * ; specify a structured syntax suffix - * ALPHA = %x41-5A / %x61-7A ; A-Z / a-z - * DIGIT = %x30-39 ; 0-9 - */ -var subtypeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/ -var typeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/ -var typeRegExp = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/; - -/** - * Module exports. - */ - -exports.format = format -exports.parse = parse - -/** - * Format object to media type. - * - * @param {object} obj - * @return {string} - * @api public - */ - -function format(obj) { - if (!obj || typeof obj !== 'object') { - throw new TypeError('argument obj is required') - } - - var parameters = obj.parameters - var subtype = obj.subtype - var suffix = obj.suffix - var type = obj.type - - if (!type || !typeNameRegExp.test(type)) { - throw new TypeError('invalid type') - } - - if (!subtype || !subtypeNameRegExp.test(subtype)) { - throw new TypeError('invalid subtype') - } - - // format as type/subtype - var string = type + '/' + subtype - - // append +suffix - if (suffix) { - if (!typeNameRegExp.test(suffix)) { - throw new TypeError('invalid suffix') - } - - string += '+' + suffix - } - - // append parameters - if (parameters && typeof parameters === 'object') { - var param - var params = Object.keys(parameters).sort() - - for (var i = 0; i < params.length; i++) { - param = params[i] - - if (!tokenRegExp.test(param)) { - throw new TypeError('invalid parameter name') - } - - string += '; ' + param + '=' + qstring(parameters[param]) - } - } - - return string -} - -/** - * Parse media type to object. - * - * @param {string|object} string - * @return {Object} - * @api public - */ - -function parse(string) { - if (!string) { - throw new TypeError('argument string is required') - } - - // support req/res-like objects as argument - if (typeof string === 'object') { - string = getcontenttype(string) - } - - if (typeof string !== 'string') { - throw new TypeError('argument string is required to be a string') - } - - var index = string.indexOf(';') - var type = index !== -1 - ? string.substr(0, index) - : string - - var key - var match - var obj = splitType(type) - var params = {} - var value - - paramRegExp.lastIndex = index - - while (match = paramRegExp.exec(string)) { - if (match.index !== index) { - throw new TypeError('invalid parameter format') - } - - index += match[0].length - key = match[1].toLowerCase() - value = match[2] - - if (value[0] === '"') { - // remove quotes and escapes - value = value - .substr(1, value.length - 2) - .replace(qescRegExp, '$1') - } - - params[key] = value - } - - if (index !== -1 && index !== string.length) { - throw new TypeError('invalid parameter format') - } - - obj.parameters = params - - return obj -} - -/** - * Get content-type from req/res objects. - * - * @param {object} - * @return {Object} - * @api private - */ - -function getcontenttype(obj) { - if (typeof obj.getHeader === 'function') { - // res-like - return obj.getHeader('content-type') - } - - if (typeof obj.headers === 'object') { - // req-like - return obj.headers && obj.headers['content-type'] - } -} - -/** - * Quote a string if necessary. - * - * @param {string} val - * @return {string} - * @api private - */ - -function qstring(val) { - var str = String(val) - - // no need to quote tokens - if (tokenRegExp.test(str)) { - return str - } - - if (str.length > 0 && !textRegExp.test(str)) { - throw new TypeError('invalid parameter value') - } - - return '"' + str.replace(quoteRegExp, '\\$1') + '"' -} - -/** - * Simply "type/subtype+siffx" into parts. - * - * @param {string} string - * @return {Object} - * @api private - */ - -function splitType(string) { - var match = typeRegExp.exec(string.toLowerCase()) - - if (!match) { - throw new TypeError('invalid media type') - } - - var type = match[1] - var subtype = match[2] - var suffix - - // suffix after last + - var index = subtype.lastIndexOf('+') - if (index !== -1) { - suffix = subtype.substr(index + 1) - subtype = subtype.substr(0, index) - } - - var obj = { - type: type, - subtype: subtype, - suffix: suffix - } - - return obj -} diff --git a/mcp-server/node_modules/media-typer/package.json b/mcp-server/node_modules/media-typer/package.json deleted file mode 100644 index 8cf3ebc..0000000 --- a/mcp-server/node_modules/media-typer/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "media-typer", - "description": "Simple RFC 6838 media type parser and formatter", - "version": "0.3.0", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "repository": "jshttp/media-typer", - "devDependencies": { - "istanbul": "0.3.2", - "mocha": "~1.21.4", - "should": "~4.0.4" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "test": "mocha --reporter spec --check-leaks --bail test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" - } -} diff --git a/mcp-server/node_modules/merge-descriptors/HISTORY.md b/mcp-server/node_modules/merge-descriptors/HISTORY.md deleted file mode 100644 index 486771f..0000000 --- a/mcp-server/node_modules/merge-descriptors/HISTORY.md +++ /dev/null @@ -1,21 +0,0 @@ -1.0.1 / 2016-01-17 -================== - - * perf: enable strict mode - -1.0.0 / 2015-03-01 -================== - - * Add option to only add new descriptors - * Add simple argument validation - * Add jsdoc to source file - -0.0.2 / 2013-12-14 -================== - - * Move repository to `component` organization - -0.0.1 / 2013-10-29 -================== - - * Initial release diff --git a/mcp-server/node_modules/merge-descriptors/LICENSE b/mcp-server/node_modules/merge-descriptors/LICENSE deleted file mode 100644 index 274bfd8..0000000 --- a/mcp-server/node_modules/merge-descriptors/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2013 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/merge-descriptors/README.md b/mcp-server/node_modules/merge-descriptors/README.md deleted file mode 100644 index 3403f4a..0000000 --- a/mcp-server/node_modules/merge-descriptors/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# merge-descriptors - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Merge objects using descriptors. - -```js -var thing = { - get name() { - return 'jon' - } -} - -var animal = { - -} - -merge(animal, thing) - -animal.name === 'jon' -``` - -## API - -### merge(destination, source) - -Redefines `destination`'s descriptors with `source`'s. The return value is the -`destination` object. - -### merge(destination, source, false) - -Defines `source`'s descriptors on `destination` if `destination` does not have -a descriptor by the same name. The return value is the `destination` object. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/merge-descriptors.svg -[npm-url]: https://npmjs.org/package/merge-descriptors -[travis-image]: https://img.shields.io/travis/component/merge-descriptors/master.svg -[travis-url]: https://travis-ci.org/component/merge-descriptors -[coveralls-image]: https://img.shields.io/coveralls/component/merge-descriptors/master.svg -[coveralls-url]: https://coveralls.io/r/component/merge-descriptors?branch=master -[downloads-image]: https://img.shields.io/npm/dm/merge-descriptors.svg -[downloads-url]: https://npmjs.org/package/merge-descriptors diff --git a/mcp-server/node_modules/merge-descriptors/index.js b/mcp-server/node_modules/merge-descriptors/index.js deleted file mode 100644 index f22ebab..0000000 --- a/mcp-server/node_modules/merge-descriptors/index.js +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * merge-descriptors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = merge - -/** - * Module variables. - * @private - */ - -var hasOwnProperty = Object.prototype.hasOwnProperty - -/** - * Merge the property descriptors of `src` into `dest` - * - * @param {object} dest Object to add descriptors to - * @param {object} src Object to clone descriptors from - * @param {boolean} [redefine=true] Redefine `dest` properties with `src` properties - * @returns {object} Reference to dest - * @public - */ - -function merge (dest, src, redefine) { - if (!dest) { - throw new TypeError('argument dest is required') - } - - if (!src) { - throw new TypeError('argument src is required') - } - - if (redefine === undefined) { - // Default to true - redefine = true - } - - Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName (name) { - if (!redefine && hasOwnProperty.call(dest, name)) { - // Skip descriptor - return - } - - // Copy descriptor - var descriptor = Object.getOwnPropertyDescriptor(src, name) - Object.defineProperty(dest, name, descriptor) - }) - - return dest -} diff --git a/mcp-server/node_modules/merge-descriptors/package.json b/mcp-server/node_modules/merge-descriptors/package.json deleted file mode 100644 index aa9af0a..0000000 --- a/mcp-server/node_modules/merge-descriptors/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "merge-descriptors", - "description": "Merge objects using descriptors", - "version": "1.0.3", - "author": { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com", - "twitter": "https://twitter.com/jongleberry" - }, - "contributors": [ - "Douglas Christopher Wilson ", - "Mike Grabowski " - ], - "license": "MIT", - "repository": "sindresorhus/merge-descriptors", - "funding": "https://github.com/sponsors/sindresorhus", - "devDependencies": { - "eslint": "5.9.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.14.0", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.0.1", - "eslint-plugin-standard": "4.0.0", - "mocha": "5.2.0", - "nyc": "13.1.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "README.md", - "index.js" - ], - "scripts": { - "lint": "eslint .", - "test": "mocha test/", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/methods/HISTORY.md b/mcp-server/node_modules/methods/HISTORY.md deleted file mode 100644 index c0ecf07..0000000 --- a/mcp-server/node_modules/methods/HISTORY.md +++ /dev/null @@ -1,29 +0,0 @@ -1.1.2 / 2016-01-17 -================== - - * perf: enable strict mode - -1.1.1 / 2014-12-30 -================== - - * Improve `browserify` support - -1.1.0 / 2014-07-05 -================== - - * Add `CONNECT` method - -1.0.1 / 2014-06-02 -================== - - * Fix module to work with harmony transform - -1.0.0 / 2014-05-08 -================== - - * Add `PURGE` method - -0.1.0 / 2013-10-28 -================== - - * Add `http.METHODS` support diff --git a/mcp-server/node_modules/methods/LICENSE b/mcp-server/node_modules/methods/LICENSE deleted file mode 100644 index 220dc1a..0000000 --- a/mcp-server/node_modules/methods/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2013-2014 TJ Holowaychuk -Copyright (c) 2015-2016 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/mcp-server/node_modules/methods/README.md b/mcp-server/node_modules/methods/README.md deleted file mode 100644 index 672a32b..0000000 --- a/mcp-server/node_modules/methods/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# Methods - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -HTTP verbs that Node.js core's HTTP parser supports. - -This module provides an export that is just like `http.METHODS` from Node.js core, -with the following differences: - - * All method names are lower-cased. - * Contains a fallback list of methods for Node.js versions that do not have a - `http.METHODS` export (0.10 and lower). - * Provides the fallback list when using tools like `browserify` without pulling - in the `http` shim module. - -## Install - -```bash -$ npm install methods -``` - -## API - -```js -var methods = require('methods') -``` - -### methods - -This is an array of lower-cased method names that Node.js supports. If Node.js -provides the `http.METHODS` export, then this is the same array lower-cased, -otherwise it is a snapshot of the verbs from Node.js 0.10. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/methods.svg?style=flat -[npm-url]: https://npmjs.org/package/methods -[node-version-image]: https://img.shields.io/node/v/methods.svg?style=flat -[node-version-url]: https://nodejs.org/en/download/ -[travis-image]: https://img.shields.io/travis/jshttp/methods.svg?style=flat -[travis-url]: https://travis-ci.org/jshttp/methods -[coveralls-image]: https://img.shields.io/coveralls/jshttp/methods.svg?style=flat -[coveralls-url]: https://coveralls.io/r/jshttp/methods?branch=master -[downloads-image]: https://img.shields.io/npm/dm/methods.svg?style=flat -[downloads-url]: https://npmjs.org/package/methods diff --git a/mcp-server/node_modules/methods/index.js b/mcp-server/node_modules/methods/index.js deleted file mode 100644 index 667a50b..0000000 --- a/mcp-server/node_modules/methods/index.js +++ /dev/null @@ -1,69 +0,0 @@ -/*! - * methods - * Copyright(c) 2013-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module dependencies. - * @private - */ - -var http = require('http'); - -/** - * Module exports. - * @public - */ - -module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); - -/** - * Get the current Node.js methods. - * @private - */ - -function getCurrentNodeMethods() { - return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { - return method.toLowerCase(); - }); -} - -/** - * Get the "basic" Node.js methods, a snapshot from Node.js 0.10. - * @private - */ - -function getBasicNodeMethods() { - return [ - 'get', - 'post', - 'put', - 'head', - 'delete', - 'options', - 'trace', - 'copy', - 'lock', - 'mkcol', - 'move', - 'purge', - 'propfind', - 'proppatch', - 'unlock', - 'report', - 'mkactivity', - 'checkout', - 'merge', - 'm-search', - 'notify', - 'subscribe', - 'unsubscribe', - 'patch', - 'search', - 'connect' - ]; -} diff --git a/mcp-server/node_modules/methods/package.json b/mcp-server/node_modules/methods/package.json deleted file mode 100644 index c4ce6f0..0000000 --- a/mcp-server/node_modules/methods/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "methods", - "description": "HTTP methods that node supports", - "version": "1.1.2", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)", - "TJ Holowaychuk (http://tjholowaychuk.com)" - ], - "license": "MIT", - "repository": "jshttp/methods", - "devDependencies": { - "istanbul": "0.4.1", - "mocha": "1.21.5" - }, - "files": [ - "index.js", - "HISTORY.md", - "LICENSE" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" - }, - "browser": { - "http": false - }, - "keywords": [ - "http", - "methods" - ] -} diff --git a/mcp-server/node_modules/mime-db/HISTORY.md b/mcp-server/node_modules/mime-db/HISTORY.md deleted file mode 100644 index 7436f64..0000000 --- a/mcp-server/node_modules/mime-db/HISTORY.md +++ /dev/null @@ -1,507 +0,0 @@ -1.52.0 / 2022-02-21 -=================== - - * Add extensions from IANA for more `image/*` types - * Add extension `.asc` to `application/pgp-keys` - * Add extensions to various XML types - * Add new upstream MIME types - -1.51.0 / 2021-11-08 -=================== - - * Add new upstream MIME types - * Mark `image/vnd.microsoft.icon` as compressible - * Mark `image/vnd.ms-dds` as compressible - -1.50.0 / 2021-09-15 -=================== - - * Add deprecated iWorks mime types and extensions - * Add new upstream MIME types - -1.49.0 / 2021-07-26 -=================== - - * Add extension `.trig` to `application/trig` - * Add new upstream MIME types - -1.48.0 / 2021-05-30 -=================== - - * Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - * Add new upstream MIME types - * Mark `text/yaml` as compressible - -1.47.0 / 2021-04-01 -=================== - - * Add new upstream MIME types - * Remove ambigious extensions from IANA for `application/*+xml` types - * Update primary extension to `.es` for `application/ecmascript` - -1.46.0 / 2021-02-13 -=================== - - * Add extension `.amr` to `audio/amr` - * Add extension `.m4s` to `video/iso.segment` - * Add extension `.opus` to `audio/ogg` - * Add new upstream MIME types - -1.45.0 / 2020-09-22 -=================== - - * Add `application/ubjson` with extension `.ubj` - * Add `image/avif` with extension `.avif` - * Add `image/ktx2` with extension `.ktx2` - * Add extension `.dbf` to `application/vnd.dbf` - * Add extension `.rar` to `application/vnd.rar` - * Add extension `.td` to `application/urc-targetdesc+xml` - * Add new upstream MIME types - * Fix extension of `application/vnd.apple.keynote` to be `.key` - -1.44.0 / 2020-04-22 -=================== - - * Add charsets from IANA - * Add extension `.cjs` to `application/node` - * Add new upstream MIME types - -1.43.0 / 2020-01-05 -=================== - - * Add `application/x-keepass2` with extension `.kdbx` - * Add extension `.mxmf` to `audio/mobile-xmf` - * Add extensions from IANA for `application/*+xml` types - * Add new upstream MIME types - -1.42.0 / 2019-09-25 -=================== - - * Add `image/vnd.ms-dds` with extension `.dds` - * Add new upstream MIME types - * Remove compressible from `multipart/mixed` - -1.41.0 / 2019-08-30 -=================== - - * Add new upstream MIME types - * Add `application/toml` with extension `.toml` - * Mark `font/ttf` as compressible - -1.40.0 / 2019-04-20 -=================== - - * Add extensions from IANA for `model/*` types - * Add `text/mdx` with extension `.mdx` - -1.39.0 / 2019-04-04 -=================== - - * Add extensions `.siv` and `.sieve` to `application/sieve` - * Add new upstream MIME types - -1.38.0 / 2019-02-04 -=================== - - * Add extension `.nq` to `application/n-quads` - * Add extension `.nt` to `application/n-triples` - * Add new upstream MIME types - * Mark `text/less` as compressible - -1.37.0 / 2018-10-19 -=================== - - * Add extensions to HEIC image types - * Add new upstream MIME types - -1.36.0 / 2018-08-20 -=================== - - * Add Apple file extensions from IANA - * Add extensions from IANA for `image/*` types - * Add new upstream MIME types - -1.35.0 / 2018-07-15 -=================== - - * Add extension `.owl` to `application/rdf+xml` - * Add new upstream MIME types - - Removes extension `.woff` from `application/font-woff` - -1.34.0 / 2018-06-03 -=================== - - * Add extension `.csl` to `application/vnd.citationstyles.style+xml` - * Add extension `.es` to `application/ecmascript` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/turtle` - * Mark all XML-derived types as compressible - -1.33.0 / 2018-02-15 -=================== - - * Add extensions from IANA for `message/*` types - * Add new upstream MIME types - * Fix some incorrect OOXML types - * Remove `application/font-woff2` - -1.32.0 / 2017-11-29 -=================== - - * Add new upstream MIME types - * Update `text/hjson` to registered `application/hjson` - * Add `text/shex` with extension `.shex` - -1.31.0 / 2017-10-25 -=================== - - * Add `application/raml+yaml` with extension `.raml` - * Add `application/wasm` with extension `.wasm` - * Add new `font` type from IANA - * Add new upstream font extensions - * Add new upstream MIME types - * Add extensions for JPEG-2000 images - -1.30.0 / 2017-08-27 -=================== - - * Add `application/vnd.ms-outlook` - * Add `application/x-arj` - * Add extension `.mjs` to `application/javascript` - * Add glTF types and extensions - * Add new upstream MIME types - * Add `text/x-org` - * Add VirtualBox MIME types - * Fix `source` records for `video/*` types that are IANA - * Update `font/opentype` to registered `font/otf` - -1.29.0 / 2017-07-10 -=================== - - * Add `application/fido.trusted-apps+json` - * Add extension `.wadl` to `application/vnd.sun.wadl+xml` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/css` - -1.28.0 / 2017-05-14 -=================== - - * Add new upstream MIME types - * Add extension `.gz` to `application/gzip` - * Update extensions `.md` and `.markdown` to be `text/markdown` - -1.27.0 / 2017-03-16 -=================== - - * Add new upstream MIME types - * Add `image/apng` with extension `.apng` - -1.26.0 / 2017-01-14 -=================== - - * Add new upstream MIME types - * Add extension `.geojson` to `application/geo+json` - -1.25.0 / 2016-11-11 -=================== - - * Add new upstream MIME types - -1.24.0 / 2016-09-18 -=================== - - * Add `audio/mp3` - * Add new upstream MIME types - -1.23.0 / 2016-05-01 -=================== - - * Add new upstream MIME types - * Add extension `.3gpp` to `audio/3gpp` - -1.22.0 / 2016-02-15 -=================== - - * Add `text/slim` - * Add extension `.rng` to `application/xml` - * Add new upstream MIME types - * Fix extension of `application/dash+xml` to be `.mpd` - * Update primary extension to `.m4a` for `audio/mp4` - -1.21.0 / 2016-01-06 -=================== - - * Add Google document types - * Add new upstream MIME types - -1.20.0 / 2015-11-10 -=================== - - * Add `text/x-suse-ymp` - * Add new upstream MIME types - -1.19.0 / 2015-09-17 -=================== - - * Add `application/vnd.apple.pkpass` - * Add new upstream MIME types - -1.18.0 / 2015-09-03 -=================== - - * Add new upstream MIME types - -1.17.0 / 2015-08-13 -=================== - - * Add `application/x-msdos-program` - * Add `audio/g711-0` - * Add `image/vnd.mozilla.apng` - * Add extension `.exe` to `application/x-msdos-program` - -1.16.0 / 2015-07-29 -=================== - - * Add `application/vnd.uri-map` - -1.15.0 / 2015-07-13 -=================== - - * Add `application/x-httpd-php` - -1.14.0 / 2015-06-25 -=================== - - * Add `application/scim+json` - * Add `application/vnd.3gpp.ussd+xml` - * Add `application/vnd.biopax.rdf+xml` - * Add `text/x-processing` - -1.13.0 / 2015-06-07 -=================== - - * Add nginx as a source - * Add `application/x-cocoa` - * Add `application/x-java-archive-diff` - * Add `application/x-makeself` - * Add `application/x-perl` - * Add `application/x-pilot` - * Add `application/x-redhat-package-manager` - * Add `application/x-sea` - * Add `audio/x-m4a` - * Add `audio/x-realaudio` - * Add `image/x-jng` - * Add `text/mathml` - -1.12.0 / 2015-06-05 -=================== - - * Add `application/bdoc` - * Add `application/vnd.hyperdrive+json` - * Add `application/x-bdoc` - * Add extension `.rtf` to `text/rtf` - -1.11.0 / 2015-05-31 -=================== - - * Add `audio/wav` - * Add `audio/wave` - * Add extension `.litcoffee` to `text/coffeescript` - * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` - * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` - -1.10.0 / 2015-05-19 -=================== - - * Add `application/vnd.balsamiq.bmpr` - * Add `application/vnd.microsoft.portable-executable` - * Add `application/x-ns-proxy-autoconfig` - -1.9.1 / 2015-04-19 -================== - - * Remove `.json` extension from `application/manifest+json` - - This is causing bugs downstream - -1.9.0 / 2015-04-19 -================== - - * Add `application/manifest+json` - * Add `application/vnd.micro+json` - * Add `image/vnd.zbrush.pcx` - * Add `image/x-ms-bmp` - -1.8.0 / 2015-03-13 -================== - - * Add `application/vnd.citationstyles.style+xml` - * Add `application/vnd.fastcopy-disk-image` - * Add `application/vnd.gov.sk.xmldatacontainer+xml` - * Add extension `.jsonld` to `application/ld+json` - -1.7.0 / 2015-02-08 -================== - - * Add `application/vnd.gerber` - * Add `application/vnd.msa-disk-image` - -1.6.1 / 2015-02-05 -================== - - * Community extensions ownership transferred from `node-mime` - -1.6.0 / 2015-01-29 -================== - - * Add `application/jose` - * Add `application/jose+json` - * Add `application/json-seq` - * Add `application/jwk+json` - * Add `application/jwk-set+json` - * Add `application/jwt` - * Add `application/rdap+json` - * Add `application/vnd.gov.sk.e-form+xml` - * Add `application/vnd.ims.imsccv1p3` - -1.5.0 / 2014-12-30 -================== - - * Add `application/vnd.oracle.resource+json` - * Fix various invalid MIME type entries - - `application/mbox+xml` - - `application/oscp-response` - - `application/vwg-multiplexed` - - `audio/g721` - -1.4.0 / 2014-12-21 -================== - - * Add `application/vnd.ims.imsccv1p2` - * Fix various invalid MIME type entries - - `application/vnd-acucobol` - - `application/vnd-curl` - - `application/vnd-dart` - - `application/vnd-dxr` - - `application/vnd-fdf` - - `application/vnd-mif` - - `application/vnd-sema` - - `application/vnd-wap-wmlc` - - `application/vnd.adobe.flash-movie` - - `application/vnd.dece-zip` - - `application/vnd.dvb_service` - - `application/vnd.micrografx-igx` - - `application/vnd.sealed-doc` - - `application/vnd.sealed-eml` - - `application/vnd.sealed-mht` - - `application/vnd.sealed-ppt` - - `application/vnd.sealed-tiff` - - `application/vnd.sealed-xls` - - `application/vnd.sealedmedia.softseal-html` - - `application/vnd.sealedmedia.softseal-pdf` - - `application/vnd.wap-slc` - - `application/vnd.wap-wbxml` - - `audio/vnd.sealedmedia.softseal-mpeg` - - `image/vnd-djvu` - - `image/vnd-svf` - - `image/vnd-wap-wbmp` - - `image/vnd.sealed-png` - - `image/vnd.sealedmedia.softseal-gif` - - `image/vnd.sealedmedia.softseal-jpg` - - `model/vnd-dwf` - - `model/vnd.parasolid.transmit-binary` - - `model/vnd.parasolid.transmit-text` - - `text/vnd-a` - - `text/vnd-curl` - - `text/vnd.wap-wml` - * Remove example template MIME types - - `application/example` - - `audio/example` - - `image/example` - - `message/example` - - `model/example` - - `multipart/example` - - `text/example` - - `video/example` - -1.3.1 / 2014-12-16 -================== - - * Fix missing extensions - - `application/json5` - - `text/hjson` - -1.3.0 / 2014-12-07 -================== - - * Add `application/a2l` - * Add `application/aml` - * Add `application/atfx` - * Add `application/atxml` - * Add `application/cdfx+xml` - * Add `application/dii` - * Add `application/json5` - * Add `application/lxf` - * Add `application/mf4` - * Add `application/vnd.apache.thrift.compact` - * Add `application/vnd.apache.thrift.json` - * Add `application/vnd.coffeescript` - * Add `application/vnd.enphase.envoy` - * Add `application/vnd.ims.imsccv1p1` - * Add `text/csv-schema` - * Add `text/hjson` - * Add `text/markdown` - * Add `text/yaml` - -1.2.0 / 2014-11-09 -================== - - * Add `application/cea` - * Add `application/dit` - * Add `application/vnd.gov.sk.e-form+zip` - * Add `application/vnd.tmd.mediaflex.api+xml` - * Type `application/epub+zip` is now IANA-registered - -1.1.2 / 2014-10-23 -================== - - * Rebuild database for `application/x-www-form-urlencoded` change - -1.1.1 / 2014-10-20 -================== - - * Mark `application/x-www-form-urlencoded` as compressible. - -1.1.0 / 2014-09-28 -================== - - * Add `application/font-woff2` - -1.0.3 / 2014-09-25 -================== - - * Fix engine requirement in package - -1.0.2 / 2014-09-25 -================== - - * Add `application/coap-group+json` - * Add `application/dcd` - * Add `application/vnd.apache.thrift.binary` - * Add `image/vnd.tencent.tap` - * Mark all JSON-derived types as compressible - * Update `text/vtt` data - -1.0.1 / 2014-08-30 -================== - - * Fix extension ordering - -1.0.0 / 2014-08-30 -================== - - * Add `application/atf` - * Add `application/merge-patch+json` - * Add `multipart/x-mixed-replace` - * Add `source: 'apache'` metadata - * Add `source: 'iana'` metadata - * Remove badly-assumed charset data diff --git a/mcp-server/node_modules/mime-db/LICENSE b/mcp-server/node_modules/mime-db/LICENSE deleted file mode 100644 index 0751cb1..0000000 --- a/mcp-server/node_modules/mime-db/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015-2022 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/mime-db/README.md b/mcp-server/node_modules/mime-db/README.md deleted file mode 100644 index 5a8fcfe..0000000 --- a/mcp-server/node_modules/mime-db/README.md +++ /dev/null @@ -1,100 +0,0 @@ -# mime-db - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][ci-image]][ci-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -This is a large database of mime types and information about them. -It consists of a single, public JSON file and does not include any logic, -allowing it to remain as un-opinionated as possible with an API. -It aggregates data from the following sources: - -- http://www.iana.org/assignments/media-types/media-types.xhtml -- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types - -## Installation - -```bash -npm install mime-db -``` - -### Database Download - -If you're crazy enough to use this in the browser, you can just grab the -JSON file using [jsDelivr](https://www.jsdelivr.com/). It is recommended to -replace `master` with [a release tag](https://github.com/jshttp/mime-db/tags) -as the JSON format may change in the future. - -``` -https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json -``` - -## Usage - -```js -var db = require('mime-db') - -// grab data on .js files -var data = db['application/javascript'] -``` - -## Data Structure - -The JSON file is a map lookup for lowercased mime types. -Each mime type has the following properties: - -- `.source` - where the mime type is defined. - If not set, it's probably a custom media type. - - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) - - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml) - - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types) -- `.extensions[]` - known extensions associated with this mime type. -- `.compressible` - whether a file of this type can be gzipped. -- `.charset` - the default charset associated with this type, if any. - -If unknown, every property could be `undefined`. - -## Contributing - -To edit the database, only make PRs against `src/custom-types.json` or -`src/custom-suffix.json`. - -The `src/custom-types.json` file is a JSON object with the MIME type as the -keys and the values being an object with the following keys: - -- `compressible` - leave out if you don't know, otherwise `true`/`false` to - indicate whether the data represented by the type is typically compressible. -- `extensions` - include an array of file extensions that are associated with - the type. -- `notes` - human-readable notes about the type, typically what the type is. -- `sources` - include an array of URLs of where the MIME type and the associated - extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source); - links to type aggregating sites and Wikipedia are _not acceptable_. - -To update the build, run `npm run build`. - -### Adding Custom Media Types - -The best way to get new media types included in this library is to register -them with the IANA. The community registration procedure is outlined in -[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types -registered with the IANA are automatically pulled into this library. - -If that is not possible / feasible, they can be added directly here as a -"custom" type. To do this, it is required to have a primary source that -definitively lists the media type. If an extension is going to be listed as -associateed with this media type, the source must definitively link the -media type and extension as well. - -[ci-image]: https://badgen.net/github/checks/jshttp/mime-db/master?label=ci -[ci-url]: https://github.com/jshttp/mime-db/actions?query=workflow%3Aci -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master -[node-image]: https://badgen.net/npm/node/mime-db -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-db -[npm-url]: https://npmjs.org/package/mime-db -[npm-version-image]: https://badgen.net/npm/v/mime-db diff --git a/mcp-server/node_modules/mime-db/db.json b/mcp-server/node_modules/mime-db/db.json deleted file mode 100644 index eb9c42c..0000000 --- a/mcp-server/node_modules/mime-db/db.json +++ /dev/null @@ -1,8519 +0,0 @@ -{ - "application/1d-interleaved-parityfec": { - "source": "iana" - }, - "application/3gpdash-qoe-report+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/3gpp-ims+xml": { - "source": "iana", - "compressible": true - }, - "application/3gpphal+json": { - "source": "iana", - "compressible": true - }, - "application/3gpphalforms+json": { - "source": "iana", - "compressible": true - }, - "application/a2l": { - "source": "iana" - }, - "application/ace+cbor": { - "source": "iana" - }, - "application/activemessage": { - "source": "iana" - }, - "application/activity+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-directory+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcost+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcostparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointprop+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointpropparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-error+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-updatestreamcontrol+json": { - "source": "iana", - "compressible": true - }, - "application/alto-updatestreamparams+json": { - "source": "iana", - "compressible": true - }, - "application/aml": { - "source": "iana" - }, - "application/andrew-inset": { - "source": "iana", - "extensions": ["ez"] - }, - "application/applefile": { - "source": "iana" - }, - "application/applixware": { - "source": "apache", - "extensions": ["aw"] - }, - "application/at+jwt": { - "source": "iana" - }, - "application/atf": { - "source": "iana" - }, - "application/atfx": { - "source": "iana" - }, - "application/atom+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atom"] - }, - "application/atomcat+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomcat"] - }, - "application/atomdeleted+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomdeleted"] - }, - "application/atomicmail": { - "source": "iana" - }, - "application/atomsvc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomsvc"] - }, - "application/atsc-dwd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dwd"] - }, - "application/atsc-dynamic-event-message": { - "source": "iana" - }, - "application/atsc-held+xml": { - "source": "iana", - "compressible": true, - "extensions": ["held"] - }, - "application/atsc-rdt+json": { - "source": "iana", - "compressible": true - }, - "application/atsc-rsat+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rsat"] - }, - "application/atxml": { - "source": "iana" - }, - "application/auth-policy+xml": { - "source": "iana", - "compressible": true - }, - "application/bacnet-xdd+zip": { - "source": "iana", - "compressible": false - }, - "application/batch-smtp": { - "source": "iana" - }, - "application/bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/beep+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/calendar+json": { - "source": "iana", - "compressible": true - }, - "application/calendar+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xcs"] - }, - "application/call-completion": { - "source": "iana" - }, - "application/cals-1840": { - "source": "iana" - }, - "application/captive+json": { - "source": "iana", - "compressible": true - }, - "application/cbor": { - "source": "iana" - }, - "application/cbor-seq": { - "source": "iana" - }, - "application/cccex": { - "source": "iana" - }, - "application/ccmp+xml": { - "source": "iana", - "compressible": true - }, - "application/ccxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ccxml"] - }, - "application/cdfx+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cdfx"] - }, - "application/cdmi-capability": { - "source": "iana", - "extensions": ["cdmia"] - }, - "application/cdmi-container": { - "source": "iana", - "extensions": ["cdmic"] - }, - "application/cdmi-domain": { - "source": "iana", - "extensions": ["cdmid"] - }, - "application/cdmi-object": { - "source": "iana", - "extensions": ["cdmio"] - }, - "application/cdmi-queue": { - "source": "iana", - "extensions": ["cdmiq"] - }, - "application/cdni": { - "source": "iana" - }, - "application/cea": { - "source": "iana" - }, - "application/cea-2018+xml": { - "source": "iana", - "compressible": true - }, - "application/cellml+xml": { - "source": "iana", - "compressible": true - }, - "application/cfw": { - "source": "iana" - }, - "application/city+json": { - "source": "iana", - "compressible": true - }, - "application/clr": { - "source": "iana" - }, - "application/clue+xml": { - "source": "iana", - "compressible": true - }, - "application/clue_info+xml": { - "source": "iana", - "compressible": true - }, - "application/cms": { - "source": "iana" - }, - "application/cnrp+xml": { - "source": "iana", - "compressible": true - }, - "application/coap-group+json": { - "source": "iana", - "compressible": true - }, - "application/coap-payload": { - "source": "iana" - }, - "application/commonground": { - "source": "iana" - }, - "application/conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/cose": { - "source": "iana" - }, - "application/cose-key": { - "source": "iana" - }, - "application/cose-key-set": { - "source": "iana" - }, - "application/cpl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cpl"] - }, - "application/csrattrs": { - "source": "iana" - }, - "application/csta+xml": { - "source": "iana", - "compressible": true - }, - "application/cstadata+xml": { - "source": "iana", - "compressible": true - }, - "application/csvm+json": { - "source": "iana", - "compressible": true - }, - "application/cu-seeme": { - "source": "apache", - "extensions": ["cu"] - }, - "application/cwt": { - "source": "iana" - }, - "application/cybercash": { - "source": "iana" - }, - "application/dart": { - "compressible": true - }, - "application/dash+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpd"] - }, - "application/dash-patch+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpp"] - }, - "application/dashdelta": { - "source": "iana" - }, - "application/davmount+xml": { - "source": "iana", - "compressible": true, - "extensions": ["davmount"] - }, - "application/dca-rft": { - "source": "iana" - }, - "application/dcd": { - "source": "iana" - }, - "application/dec-dx": { - "source": "iana" - }, - "application/dialog-info+xml": { - "source": "iana", - "compressible": true - }, - "application/dicom": { - "source": "iana" - }, - "application/dicom+json": { - "source": "iana", - "compressible": true - }, - "application/dicom+xml": { - "source": "iana", - "compressible": true - }, - "application/dii": { - "source": "iana" - }, - "application/dit": { - "source": "iana" - }, - "application/dns": { - "source": "iana" - }, - "application/dns+json": { - "source": "iana", - "compressible": true - }, - "application/dns-message": { - "source": "iana" - }, - "application/docbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dbk"] - }, - "application/dots+cbor": { - "source": "iana" - }, - "application/dskpp+xml": { - "source": "iana", - "compressible": true - }, - "application/dssc+der": { - "source": "iana", - "extensions": ["dssc"] - }, - "application/dssc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdssc"] - }, - "application/dvcs": { - "source": "iana" - }, - "application/ecmascript": { - "source": "iana", - "compressible": true, - "extensions": ["es","ecma"] - }, - "application/edi-consent": { - "source": "iana" - }, - "application/edi-x12": { - "source": "iana", - "compressible": false - }, - "application/edifact": { - "source": "iana", - "compressible": false - }, - "application/efi": { - "source": "iana" - }, - "application/elm+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/elm+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.cap+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/emergencycalldata.comment+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.control+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.deviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.ecall.msd": { - "source": "iana" - }, - "application/emergencycalldata.providerinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.serviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.subscriberinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.veds+xml": { - "source": "iana", - "compressible": true - }, - "application/emma+xml": { - "source": "iana", - "compressible": true, - "extensions": ["emma"] - }, - "application/emotionml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["emotionml"] - }, - "application/encaprtp": { - "source": "iana" - }, - "application/epp+xml": { - "source": "iana", - "compressible": true - }, - "application/epub+zip": { - "source": "iana", - "compressible": false, - "extensions": ["epub"] - }, - "application/eshop": { - "source": "iana" - }, - "application/exi": { - "source": "iana", - "extensions": ["exi"] - }, - "application/expect-ct-report+json": { - "source": "iana", - "compressible": true - }, - "application/express": { - "source": "iana", - "extensions": ["exp"] - }, - "application/fastinfoset": { - "source": "iana" - }, - "application/fastsoap": { - "source": "iana" - }, - "application/fdt+xml": { - "source": "iana", - "compressible": true, - "extensions": ["fdt"] - }, - "application/fhir+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/fhir+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/fido.trusted-apps+json": { - "compressible": true - }, - "application/fits": { - "source": "iana" - }, - "application/flexfec": { - "source": "iana" - }, - "application/font-sfnt": { - "source": "iana" - }, - "application/font-tdpfr": { - "source": "iana", - "extensions": ["pfr"] - }, - "application/font-woff": { - "source": "iana", - "compressible": false - }, - "application/framework-attributes+xml": { - "source": "iana", - "compressible": true - }, - "application/geo+json": { - "source": "iana", - "compressible": true, - "extensions": ["geojson"] - }, - "application/geo+json-seq": { - "source": "iana" - }, - "application/geopackage+sqlite3": { - "source": "iana" - }, - "application/geoxacml+xml": { - "source": "iana", - "compressible": true - }, - "application/gltf-buffer": { - "source": "iana" - }, - "application/gml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["gml"] - }, - "application/gpx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["gpx"] - }, - "application/gxf": { - "source": "apache", - "extensions": ["gxf"] - }, - "application/gzip": { - "source": "iana", - "compressible": false, - "extensions": ["gz"] - }, - "application/h224": { - "source": "iana" - }, - "application/held+xml": { - "source": "iana", - "compressible": true - }, - "application/hjson": { - "extensions": ["hjson"] - }, - "application/http": { - "source": "iana" - }, - "application/hyperstudio": { - "source": "iana", - "extensions": ["stk"] - }, - "application/ibe-key-request+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pkg-reply+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pp-data": { - "source": "iana" - }, - "application/iges": { - "source": "iana" - }, - "application/im-iscomposing+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/index": { - "source": "iana" - }, - "application/index.cmd": { - "source": "iana" - }, - "application/index.obj": { - "source": "iana" - }, - "application/index.response": { - "source": "iana" - }, - "application/index.vnd": { - "source": "iana" - }, - "application/inkml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ink","inkml"] - }, - "application/iotp": { - "source": "iana" - }, - "application/ipfix": { - "source": "iana", - "extensions": ["ipfix"] - }, - "application/ipp": { - "source": "iana" - }, - "application/isup": { - "source": "iana" - }, - "application/its+xml": { - "source": "iana", - "compressible": true, - "extensions": ["its"] - }, - "application/java-archive": { - "source": "apache", - "compressible": false, - "extensions": ["jar","war","ear"] - }, - "application/java-serialized-object": { - "source": "apache", - "compressible": false, - "extensions": ["ser"] - }, - "application/java-vm": { - "source": "apache", - "compressible": false, - "extensions": ["class"] - }, - "application/javascript": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["js","mjs"] - }, - "application/jf2feed+json": { - "source": "iana", - "compressible": true - }, - "application/jose": { - "source": "iana" - }, - "application/jose+json": { - "source": "iana", - "compressible": true - }, - "application/jrd+json": { - "source": "iana", - "compressible": true - }, - "application/jscalendar+json": { - "source": "iana", - "compressible": true - }, - "application/json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["json","map"] - }, - "application/json-patch+json": { - "source": "iana", - "compressible": true - }, - "application/json-seq": { - "source": "iana" - }, - "application/json5": { - "extensions": ["json5"] - }, - "application/jsonml+json": { - "source": "apache", - "compressible": true, - "extensions": ["jsonml"] - }, - "application/jwk+json": { - "source": "iana", - "compressible": true - }, - "application/jwk-set+json": { - "source": "iana", - "compressible": true - }, - "application/jwt": { - "source": "iana" - }, - "application/kpml-request+xml": { - "source": "iana", - "compressible": true - }, - "application/kpml-response+xml": { - "source": "iana", - "compressible": true - }, - "application/ld+json": { - "source": "iana", - "compressible": true, - "extensions": ["jsonld"] - }, - "application/lgr+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lgr"] - }, - "application/link-format": { - "source": "iana" - }, - "application/load-control+xml": { - "source": "iana", - "compressible": true - }, - "application/lost+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lostxml"] - }, - "application/lostsync+xml": { - "source": "iana", - "compressible": true - }, - "application/lpf+zip": { - "source": "iana", - "compressible": false - }, - "application/lxf": { - "source": "iana" - }, - "application/mac-binhex40": { - "source": "iana", - "extensions": ["hqx"] - }, - "application/mac-compactpro": { - "source": "apache", - "extensions": ["cpt"] - }, - "application/macwriteii": { - "source": "iana" - }, - "application/mads+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mads"] - }, - "application/manifest+json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["webmanifest"] - }, - "application/marc": { - "source": "iana", - "extensions": ["mrc"] - }, - "application/marcxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mrcx"] - }, - "application/mathematica": { - "source": "iana", - "extensions": ["ma","nb","mb"] - }, - "application/mathml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mathml"] - }, - "application/mathml-content+xml": { - "source": "iana", - "compressible": true - }, - "application/mathml-presentation+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-associated-procedure-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-deregister+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-envelope+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-protection-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-reception-report+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-schedule+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-user-service-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbox": { - "source": "iana", - "extensions": ["mbox"] - }, - "application/media-policy-dataset+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpf"] - }, - "application/media_control+xml": { - "source": "iana", - "compressible": true - }, - "application/mediaservercontrol+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mscml"] - }, - "application/merge-patch+json": { - "source": "iana", - "compressible": true - }, - "application/metalink+xml": { - "source": "apache", - "compressible": true, - "extensions": ["metalink"] - }, - "application/metalink4+xml": { - "source": "iana", - "compressible": true, - "extensions": ["meta4"] - }, - "application/mets+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mets"] - }, - "application/mf4": { - "source": "iana" - }, - "application/mikey": { - "source": "iana" - }, - "application/mipc": { - "source": "iana" - }, - "application/missing-blocks+cbor-seq": { - "source": "iana" - }, - "application/mmt-aei+xml": { - "source": "iana", - "compressible": true, - "extensions": ["maei"] - }, - "application/mmt-usd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["musd"] - }, - "application/mods+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mods"] - }, - "application/moss-keys": { - "source": "iana" - }, - "application/moss-signature": { - "source": "iana" - }, - "application/mosskey-data": { - "source": "iana" - }, - "application/mosskey-request": { - "source": "iana" - }, - "application/mp21": { - "source": "iana", - "extensions": ["m21","mp21"] - }, - "application/mp4": { - "source": "iana", - "extensions": ["mp4s","m4p"] - }, - "application/mpeg4-generic": { - "source": "iana" - }, - "application/mpeg4-iod": { - "source": "iana" - }, - "application/mpeg4-iod-xmt": { - "source": "iana" - }, - "application/mrb-consumer+xml": { - "source": "iana", - "compressible": true - }, - "application/mrb-publish+xml": { - "source": "iana", - "compressible": true - }, - "application/msc-ivr+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/msc-mixer+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/msword": { - "source": "iana", - "compressible": false, - "extensions": ["doc","dot"] - }, - "application/mud+json": { - "source": "iana", - "compressible": true - }, - "application/multipart-core": { - "source": "iana" - }, - "application/mxf": { - "source": "iana", - "extensions": ["mxf"] - }, - "application/n-quads": { - "source": "iana", - "extensions": ["nq"] - }, - "application/n-triples": { - "source": "iana", - "extensions": ["nt"] - }, - "application/nasdata": { - "source": "iana" - }, - "application/news-checkgroups": { - "source": "iana", - "charset": "US-ASCII" - }, - "application/news-groupinfo": { - "source": "iana", - "charset": "US-ASCII" - }, - "application/news-transmission": { - "source": "iana" - }, - "application/nlsml+xml": { - "source": "iana", - "compressible": true - }, - "application/node": { - "source": "iana", - "extensions": ["cjs"] - }, - "application/nss": { - "source": "iana" - }, - "application/oauth-authz-req+jwt": { - "source": "iana" - }, - "application/oblivious-dns-message": { - "source": "iana" - }, - "application/ocsp-request": { - "source": "iana" - }, - "application/ocsp-response": { - "source": "iana" - }, - "application/octet-stream": { - "source": "iana", - "compressible": false, - "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] - }, - "application/oda": { - "source": "iana", - "extensions": ["oda"] - }, - "application/odm+xml": { - "source": "iana", - "compressible": true - }, - "application/odx": { - "source": "iana" - }, - "application/oebps-package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["opf"] - }, - "application/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogx"] - }, - "application/omdoc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["omdoc"] - }, - "application/onenote": { - "source": "apache", - "extensions": ["onetoc","onetoc2","onetmp","onepkg"] - }, - "application/opc-nodeset+xml": { - "source": "iana", - "compressible": true - }, - "application/oscore": { - "source": "iana" - }, - "application/oxps": { - "source": "iana", - "extensions": ["oxps"] - }, - "application/p21": { - "source": "iana" - }, - "application/p21+zip": { - "source": "iana", - "compressible": false - }, - "application/p2p-overlay+xml": { - "source": "iana", - "compressible": true, - "extensions": ["relo"] - }, - "application/parityfec": { - "source": "iana" - }, - "application/passport": { - "source": "iana" - }, - "application/patch-ops-error+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xer"] - }, - "application/pdf": { - "source": "iana", - "compressible": false, - "extensions": ["pdf"] - }, - "application/pdx": { - "source": "iana" - }, - "application/pem-certificate-chain": { - "source": "iana" - }, - "application/pgp-encrypted": { - "source": "iana", - "compressible": false, - "extensions": ["pgp"] - }, - "application/pgp-keys": { - "source": "iana", - "extensions": ["asc"] - }, - "application/pgp-signature": { - "source": "iana", - "extensions": ["asc","sig"] - }, - "application/pics-rules": { - "source": "apache", - "extensions": ["prf"] - }, - "application/pidf+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/pidf-diff+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/pkcs10": { - "source": "iana", - "extensions": ["p10"] - }, - "application/pkcs12": { - "source": "iana" - }, - "application/pkcs7-mime": { - "source": "iana", - "extensions": ["p7m","p7c"] - }, - "application/pkcs7-signature": { - "source": "iana", - "extensions": ["p7s"] - }, - "application/pkcs8": { - "source": "iana", - "extensions": ["p8"] - }, - "application/pkcs8-encrypted": { - "source": "iana" - }, - "application/pkix-attr-cert": { - "source": "iana", - "extensions": ["ac"] - }, - "application/pkix-cert": { - "source": "iana", - "extensions": ["cer"] - }, - "application/pkix-crl": { - "source": "iana", - "extensions": ["crl"] - }, - "application/pkix-pkipath": { - "source": "iana", - "extensions": ["pkipath"] - }, - "application/pkixcmp": { - "source": "iana", - "extensions": ["pki"] - }, - "application/pls+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pls"] - }, - "application/poc-settings+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/postscript": { - "source": "iana", - "compressible": true, - "extensions": ["ai","eps","ps"] - }, - "application/ppsp-tracker+json": { - "source": "iana", - "compressible": true - }, - "application/problem+json": { - "source": "iana", - "compressible": true - }, - "application/problem+xml": { - "source": "iana", - "compressible": true - }, - "application/provenance+xml": { - "source": "iana", - "compressible": true, - "extensions": ["provx"] - }, - "application/prs.alvestrand.titrax-sheet": { - "source": "iana" - }, - "application/prs.cww": { - "source": "iana", - "extensions": ["cww"] - }, - "application/prs.cyn": { - "source": "iana", - "charset": "7-BIT" - }, - "application/prs.hpub+zip": { - "source": "iana", - "compressible": false - }, - "application/prs.nprend": { - "source": "iana" - }, - "application/prs.plucker": { - "source": "iana" - }, - "application/prs.rdf-xml-crypt": { - "source": "iana" - }, - "application/prs.xsf+xml": { - "source": "iana", - "compressible": true - }, - "application/pskc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pskcxml"] - }, - "application/pvd+json": { - "source": "iana", - "compressible": true - }, - "application/qsig": { - "source": "iana" - }, - "application/raml+yaml": { - "compressible": true, - "extensions": ["raml"] - }, - "application/raptorfec": { - "source": "iana" - }, - "application/rdap+json": { - "source": "iana", - "compressible": true - }, - "application/rdf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rdf","owl"] - }, - "application/reginfo+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rif"] - }, - "application/relax-ng-compact-syntax": { - "source": "iana", - "extensions": ["rnc"] - }, - "application/remote-printing": { - "source": "iana" - }, - "application/reputon+json": { - "source": "iana", - "compressible": true - }, - "application/resource-lists+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rl"] - }, - "application/resource-lists-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rld"] - }, - "application/rfc+xml": { - "source": "iana", - "compressible": true - }, - "application/riscos": { - "source": "iana" - }, - "application/rlmi+xml": { - "source": "iana", - "compressible": true - }, - "application/rls-services+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rs"] - }, - "application/route-apd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rapd"] - }, - "application/route-s-tsid+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sls"] - }, - "application/route-usd+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rusd"] - }, - "application/rpki-ghostbusters": { - "source": "iana", - "extensions": ["gbr"] - }, - "application/rpki-manifest": { - "source": "iana", - "extensions": ["mft"] - }, - "application/rpki-publication": { - "source": "iana" - }, - "application/rpki-roa": { - "source": "iana", - "extensions": ["roa"] - }, - "application/rpki-updown": { - "source": "iana" - }, - "application/rsd+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rsd"] - }, - "application/rss+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rss"] - }, - "application/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "application/rtploopback": { - "source": "iana" - }, - "application/rtx": { - "source": "iana" - }, - "application/samlassertion+xml": { - "source": "iana", - "compressible": true - }, - "application/samlmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/sarif+json": { - "source": "iana", - "compressible": true - }, - "application/sarif-external-properties+json": { - "source": "iana", - "compressible": true - }, - "application/sbe": { - "source": "iana" - }, - "application/sbml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sbml"] - }, - "application/scaip+xml": { - "source": "iana", - "compressible": true - }, - "application/scim+json": { - "source": "iana", - "compressible": true - }, - "application/scvp-cv-request": { - "source": "iana", - "extensions": ["scq"] - }, - "application/scvp-cv-response": { - "source": "iana", - "extensions": ["scs"] - }, - "application/scvp-vp-request": { - "source": "iana", - "extensions": ["spq"] - }, - "application/scvp-vp-response": { - "source": "iana", - "extensions": ["spp"] - }, - "application/sdp": { - "source": "iana", - "extensions": ["sdp"] - }, - "application/secevent+jwt": { - "source": "iana" - }, - "application/senml+cbor": { - "source": "iana" - }, - "application/senml+json": { - "source": "iana", - "compressible": true - }, - "application/senml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["senmlx"] - }, - "application/senml-etch+cbor": { - "source": "iana" - }, - "application/senml-etch+json": { - "source": "iana", - "compressible": true - }, - "application/senml-exi": { - "source": "iana" - }, - "application/sensml+cbor": { - "source": "iana" - }, - "application/sensml+json": { - "source": "iana", - "compressible": true - }, - "application/sensml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sensmlx"] - }, - "application/sensml-exi": { - "source": "iana" - }, - "application/sep+xml": { - "source": "iana", - "compressible": true - }, - "application/sep-exi": { - "source": "iana" - }, - "application/session-info": { - "source": "iana" - }, - "application/set-payment": { - "source": "iana" - }, - "application/set-payment-initiation": { - "source": "iana", - "extensions": ["setpay"] - }, - "application/set-registration": { - "source": "iana" - }, - "application/set-registration-initiation": { - "source": "iana", - "extensions": ["setreg"] - }, - "application/sgml": { - "source": "iana" - }, - "application/sgml-open-catalog": { - "source": "iana" - }, - "application/shf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["shf"] - }, - "application/sieve": { - "source": "iana", - "extensions": ["siv","sieve"] - }, - "application/simple-filter+xml": { - "source": "iana", - "compressible": true - }, - "application/simple-message-summary": { - "source": "iana" - }, - "application/simplesymbolcontainer": { - "source": "iana" - }, - "application/sipc": { - "source": "iana" - }, - "application/slate": { - "source": "iana" - }, - "application/smil": { - "source": "iana" - }, - "application/smil+xml": { - "source": "iana", - "compressible": true, - "extensions": ["smi","smil"] - }, - "application/smpte336m": { - "source": "iana" - }, - "application/soap+fastinfoset": { - "source": "iana" - }, - "application/soap+xml": { - "source": "iana", - "compressible": true - }, - "application/sparql-query": { - "source": "iana", - "extensions": ["rq"] - }, - "application/sparql-results+xml": { - "source": "iana", - "compressible": true, - "extensions": ["srx"] - }, - "application/spdx+json": { - "source": "iana", - "compressible": true - }, - "application/spirits-event+xml": { - "source": "iana", - "compressible": true - }, - "application/sql": { - "source": "iana" - }, - "application/srgs": { - "source": "iana", - "extensions": ["gram"] - }, - "application/srgs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["grxml"] - }, - "application/sru+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sru"] - }, - "application/ssdl+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ssdl"] - }, - "application/ssml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ssml"] - }, - "application/stix+json": { - "source": "iana", - "compressible": true - }, - "application/swid+xml": { - "source": "iana", - "compressible": true, - "extensions": ["swidtag"] - }, - "application/tamp-apex-update": { - "source": "iana" - }, - "application/tamp-apex-update-confirm": { - "source": "iana" - }, - "application/tamp-community-update": { - "source": "iana" - }, - "application/tamp-community-update-confirm": { - "source": "iana" - }, - "application/tamp-error": { - "source": "iana" - }, - "application/tamp-sequence-adjust": { - "source": "iana" - }, - "application/tamp-sequence-adjust-confirm": { - "source": "iana" - }, - "application/tamp-status-query": { - "source": "iana" - }, - "application/tamp-status-response": { - "source": "iana" - }, - "application/tamp-update": { - "source": "iana" - }, - "application/tamp-update-confirm": { - "source": "iana" - }, - "application/tar": { - "compressible": true - }, - "application/taxii+json": { - "source": "iana", - "compressible": true - }, - "application/td+json": { - "source": "iana", - "compressible": true - }, - "application/tei+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tei","teicorpus"] - }, - "application/tetra_isi": { - "source": "iana" - }, - "application/thraud+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tfi"] - }, - "application/timestamp-query": { - "source": "iana" - }, - "application/timestamp-reply": { - "source": "iana" - }, - "application/timestamped-data": { - "source": "iana", - "extensions": ["tsd"] - }, - "application/tlsrpt+gzip": { - "source": "iana" - }, - "application/tlsrpt+json": { - "source": "iana", - "compressible": true - }, - "application/tnauthlist": { - "source": "iana" - }, - "application/token-introspection+jwt": { - "source": "iana" - }, - "application/toml": { - "compressible": true, - "extensions": ["toml"] - }, - "application/trickle-ice-sdpfrag": { - "source": "iana" - }, - "application/trig": { - "source": "iana", - "extensions": ["trig"] - }, - "application/ttml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ttml"] - }, - "application/tve-trigger": { - "source": "iana" - }, - "application/tzif": { - "source": "iana" - }, - "application/tzif-leap": { - "source": "iana" - }, - "application/ubjson": { - "compressible": false, - "extensions": ["ubj"] - }, - "application/ulpfec": { - "source": "iana" - }, - "application/urc-grpsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/urc-ressheet+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rsheet"] - }, - "application/urc-targetdesc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["td"] - }, - "application/urc-uisocketdesc+xml": { - "source": "iana", - "compressible": true - }, - "application/vcard+json": { - "source": "iana", - "compressible": true - }, - "application/vcard+xml": { - "source": "iana", - "compressible": true - }, - "application/vemmi": { - "source": "iana" - }, - "application/vividence.scriptfile": { - "source": "apache" - }, - "application/vnd.1000minds.decision-model+xml": { - "source": "iana", - "compressible": true, - "extensions": ["1km"] - }, - "application/vnd.3gpp-prose+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc3ch+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-v2x-local-service-information": { - "source": "iana" - }, - "application/vnd.3gpp.5gnas": { - "source": "iana" - }, - "application/vnd.3gpp.access-transfer-events+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.bsf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.gmop+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.gtpc": { - "source": "iana" - }, - "application/vnd.3gpp.interworking-data": { - "source": "iana" - }, - "application/vnd.3gpp.lpp": { - "source": "iana" - }, - "application/vnd.3gpp.mc-signalling-ear": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-payload": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-signalling": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcdata-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-floor-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-signed+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-ue-init-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-affiliation-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-service-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-transmission-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-ue-config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcvideo-user-profile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mid-call+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.ngap": { - "source": "iana" - }, - "application/vnd.3gpp.pfcp": { - "source": "iana" - }, - "application/vnd.3gpp.pic-bw-large": { - "source": "iana", - "extensions": ["plb"] - }, - "application/vnd.3gpp.pic-bw-small": { - "source": "iana", - "extensions": ["psb"] - }, - "application/vnd.3gpp.pic-bw-var": { - "source": "iana", - "extensions": ["pvb"] - }, - "application/vnd.3gpp.s1ap": { - "source": "iana" - }, - "application/vnd.3gpp.sms": { - "source": "iana" - }, - "application/vnd.3gpp.sms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-ext+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.state-and-event-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.ussd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.bcmcsinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.sms": { - "source": "iana" - }, - "application/vnd.3gpp2.tcap": { - "source": "iana", - "extensions": ["tcap"] - }, - "application/vnd.3lightssoftware.imagescal": { - "source": "iana" - }, - "application/vnd.3m.post-it-notes": { - "source": "iana", - "extensions": ["pwn"] - }, - "application/vnd.accpac.simply.aso": { - "source": "iana", - "extensions": ["aso"] - }, - "application/vnd.accpac.simply.imp": { - "source": "iana", - "extensions": ["imp"] - }, - "application/vnd.acucobol": { - "source": "iana", - "extensions": ["acu"] - }, - "application/vnd.acucorp": { - "source": "iana", - "extensions": ["atc","acutc"] - }, - "application/vnd.adobe.air-application-installer-package+zip": { - "source": "apache", - "compressible": false, - "extensions": ["air"] - }, - "application/vnd.adobe.flash.movie": { - "source": "iana" - }, - "application/vnd.adobe.formscentral.fcdt": { - "source": "iana", - "extensions": ["fcdt"] - }, - "application/vnd.adobe.fxp": { - "source": "iana", - "extensions": ["fxp","fxpl"] - }, - "application/vnd.adobe.partial-upload": { - "source": "iana" - }, - "application/vnd.adobe.xdp+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdp"] - }, - "application/vnd.adobe.xfdf": { - "source": "iana", - "extensions": ["xfdf"] - }, - "application/vnd.aether.imp": { - "source": "iana" - }, - "application/vnd.afpc.afplinedata": { - "source": "iana" - }, - "application/vnd.afpc.afplinedata-pagedef": { - "source": "iana" - }, - "application/vnd.afpc.cmoca-cmresource": { - "source": "iana" - }, - "application/vnd.afpc.foca-charset": { - "source": "iana" - }, - "application/vnd.afpc.foca-codedfont": { - "source": "iana" - }, - "application/vnd.afpc.foca-codepage": { - "source": "iana" - }, - "application/vnd.afpc.modca": { - "source": "iana" - }, - "application/vnd.afpc.modca-cmtable": { - "source": "iana" - }, - "application/vnd.afpc.modca-formdef": { - "source": "iana" - }, - "application/vnd.afpc.modca-mediummap": { - "source": "iana" - }, - "application/vnd.afpc.modca-objectcontainer": { - "source": "iana" - }, - "application/vnd.afpc.modca-overlay": { - "source": "iana" - }, - "application/vnd.afpc.modca-pagesegment": { - "source": "iana" - }, - "application/vnd.age": { - "source": "iana", - "extensions": ["age"] - }, - "application/vnd.ah-barcode": { - "source": "iana" - }, - "application/vnd.ahead.space": { - "source": "iana", - "extensions": ["ahead"] - }, - "application/vnd.airzip.filesecure.azf": { - "source": "iana", - "extensions": ["azf"] - }, - "application/vnd.airzip.filesecure.azs": { - "source": "iana", - "extensions": ["azs"] - }, - "application/vnd.amadeus+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.amazon.ebook": { - "source": "apache", - "extensions": ["azw"] - }, - "application/vnd.amazon.mobi8-ebook": { - "source": "iana" - }, - "application/vnd.americandynamics.acc": { - "source": "iana", - "extensions": ["acc"] - }, - "application/vnd.amiga.ami": { - "source": "iana", - "extensions": ["ami"] - }, - "application/vnd.amundsen.maze+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.android.ota": { - "source": "iana" - }, - "application/vnd.android.package-archive": { - "source": "apache", - "compressible": false, - "extensions": ["apk"] - }, - "application/vnd.anki": { - "source": "iana" - }, - "application/vnd.anser-web-certificate-issue-initiation": { - "source": "iana", - "extensions": ["cii"] - }, - "application/vnd.anser-web-funds-transfer-initiation": { - "source": "apache", - "extensions": ["fti"] - }, - "application/vnd.antix.game-component": { - "source": "iana", - "extensions": ["atx"] - }, - "application/vnd.apache.arrow.file": { - "source": "iana" - }, - "application/vnd.apache.arrow.stream": { - "source": "iana" - }, - "application/vnd.apache.thrift.binary": { - "source": "iana" - }, - "application/vnd.apache.thrift.compact": { - "source": "iana" - }, - "application/vnd.apache.thrift.json": { - "source": "iana" - }, - "application/vnd.api+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.aplextor.warrp+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apothekende.reservation+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apple.installer+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpkg"] - }, - "application/vnd.apple.keynote": { - "source": "iana", - "extensions": ["key"] - }, - "application/vnd.apple.mpegurl": { - "source": "iana", - "extensions": ["m3u8"] - }, - "application/vnd.apple.numbers": { - "source": "iana", - "extensions": ["numbers"] - }, - "application/vnd.apple.pages": { - "source": "iana", - "extensions": ["pages"] - }, - "application/vnd.apple.pkpass": { - "compressible": false, - "extensions": ["pkpass"] - }, - "application/vnd.arastra.swi": { - "source": "iana" - }, - "application/vnd.aristanetworks.swi": { - "source": "iana", - "extensions": ["swi"] - }, - "application/vnd.artisan+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.artsquare": { - "source": "iana" - }, - "application/vnd.astraea-software.iota": { - "source": "iana", - "extensions": ["iota"] - }, - "application/vnd.audiograph": { - "source": "iana", - "extensions": ["aep"] - }, - "application/vnd.autopackage": { - "source": "iana" - }, - "application/vnd.avalon+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.avistar+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.balsamiq.bmml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["bmml"] - }, - "application/vnd.balsamiq.bmpr": { - "source": "iana" - }, - "application/vnd.banana-accounting": { - "source": "iana" - }, - "application/vnd.bbf.usp.error": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bekitzur-stech+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bint.med-content": { - "source": "iana" - }, - "application/vnd.biopax.rdf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.blink-idb-value-wrapper": { - "source": "iana" - }, - "application/vnd.blueice.multipass": { - "source": "iana", - "extensions": ["mpm"] - }, - "application/vnd.bluetooth.ep.oob": { - "source": "iana" - }, - "application/vnd.bluetooth.le.oob": { - "source": "iana" - }, - "application/vnd.bmi": { - "source": "iana", - "extensions": ["bmi"] - }, - "application/vnd.bpf": { - "source": "iana" - }, - "application/vnd.bpf3": { - "source": "iana" - }, - "application/vnd.businessobjects": { - "source": "iana", - "extensions": ["rep"] - }, - "application/vnd.byu.uapi+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cab-jscript": { - "source": "iana" - }, - "application/vnd.canon-cpdl": { - "source": "iana" - }, - "application/vnd.canon-lips": { - "source": "iana" - }, - "application/vnd.capasystems-pg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cendio.thinlinc.clientconf": { - "source": "iana" - }, - "application/vnd.century-systems.tcp_stream": { - "source": "iana" - }, - "application/vnd.chemdraw+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cdxml"] - }, - "application/vnd.chess-pgn": { - "source": "iana" - }, - "application/vnd.chipnuts.karaoke-mmd": { - "source": "iana", - "extensions": ["mmd"] - }, - "application/vnd.ciedi": { - "source": "iana" - }, - "application/vnd.cinderella": { - "source": "iana", - "extensions": ["cdy"] - }, - "application/vnd.cirpack.isdn-ext": { - "source": "iana" - }, - "application/vnd.citationstyles.style+xml": { - "source": "iana", - "compressible": true, - "extensions": ["csl"] - }, - "application/vnd.claymore": { - "source": "iana", - "extensions": ["cla"] - }, - "application/vnd.cloanto.rp9": { - "source": "iana", - "extensions": ["rp9"] - }, - "application/vnd.clonk.c4group": { - "source": "iana", - "extensions": ["c4g","c4d","c4f","c4p","c4u"] - }, - "application/vnd.cluetrust.cartomobile-config": { - "source": "iana", - "extensions": ["c11amc"] - }, - "application/vnd.cluetrust.cartomobile-config-pkg": { - "source": "iana", - "extensions": ["c11amz"] - }, - "application/vnd.coffeescript": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet-template": { - "source": "iana" - }, - "application/vnd.collection+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.doc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.next+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.comicbook+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.comicbook-rar": { - "source": "iana" - }, - "application/vnd.commerce-battelle": { - "source": "iana" - }, - "application/vnd.commonspace": { - "source": "iana", - "extensions": ["csp"] - }, - "application/vnd.contact.cmsg": { - "source": "iana", - "extensions": ["cdbcmsg"] - }, - "application/vnd.coreos.ignition+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cosmocaller": { - "source": "iana", - "extensions": ["cmc"] - }, - "application/vnd.crick.clicker": { - "source": "iana", - "extensions": ["clkx"] - }, - "application/vnd.crick.clicker.keyboard": { - "source": "iana", - "extensions": ["clkk"] - }, - "application/vnd.crick.clicker.palette": { - "source": "iana", - "extensions": ["clkp"] - }, - "application/vnd.crick.clicker.template": { - "source": "iana", - "extensions": ["clkt"] - }, - "application/vnd.crick.clicker.wordbank": { - "source": "iana", - "extensions": ["clkw"] - }, - "application/vnd.criticaltools.wbs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wbs"] - }, - "application/vnd.cryptii.pipe+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.crypto-shade-file": { - "source": "iana" - }, - "application/vnd.cryptomator.encrypted": { - "source": "iana" - }, - "application/vnd.cryptomator.vault": { - "source": "iana" - }, - "application/vnd.ctc-posml": { - "source": "iana", - "extensions": ["pml"] - }, - "application/vnd.ctct.ws+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cups-pdf": { - "source": "iana" - }, - "application/vnd.cups-postscript": { - "source": "iana" - }, - "application/vnd.cups-ppd": { - "source": "iana", - "extensions": ["ppd"] - }, - "application/vnd.cups-raster": { - "source": "iana" - }, - "application/vnd.cups-raw": { - "source": "iana" - }, - "application/vnd.curl": { - "source": "iana" - }, - "application/vnd.curl.car": { - "source": "apache", - "extensions": ["car"] - }, - "application/vnd.curl.pcurl": { - "source": "apache", - "extensions": ["pcurl"] - }, - "application/vnd.cyan.dean.root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cybank": { - "source": "iana" - }, - "application/vnd.cyclonedx+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cyclonedx+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.d2l.coursepackage1p0+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.d3m-dataset": { - "source": "iana" - }, - "application/vnd.d3m-problem": { - "source": "iana" - }, - "application/vnd.dart": { - "source": "iana", - "compressible": true, - "extensions": ["dart"] - }, - "application/vnd.data-vision.rdz": { - "source": "iana", - "extensions": ["rdz"] - }, - "application/vnd.datapackage+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dataresource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dbf": { - "source": "iana", - "extensions": ["dbf"] - }, - "application/vnd.debian.binary-package": { - "source": "iana" - }, - "application/vnd.dece.data": { - "source": "iana", - "extensions": ["uvf","uvvf","uvd","uvvd"] - }, - "application/vnd.dece.ttml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uvt","uvvt"] - }, - "application/vnd.dece.unspecified": { - "source": "iana", - "extensions": ["uvx","uvvx"] - }, - "application/vnd.dece.zip": { - "source": "iana", - "extensions": ["uvz","uvvz"] - }, - "application/vnd.denovo.fcselayout-link": { - "source": "iana", - "extensions": ["fe_launch"] - }, - "application/vnd.desmume.movie": { - "source": "iana" - }, - "application/vnd.dir-bi.plate-dl-nosuffix": { - "source": "iana" - }, - "application/vnd.dm.delegation+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dna": { - "source": "iana", - "extensions": ["dna"] - }, - "application/vnd.document+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dolby.mlp": { - "source": "apache", - "extensions": ["mlp"] - }, - "application/vnd.dolby.mobile.1": { - "source": "iana" - }, - "application/vnd.dolby.mobile.2": { - "source": "iana" - }, - "application/vnd.doremir.scorecloud-binary-document": { - "source": "iana" - }, - "application/vnd.dpgraph": { - "source": "iana", - "extensions": ["dpg"] - }, - "application/vnd.dreamfactory": { - "source": "iana", - "extensions": ["dfac"] - }, - "application/vnd.drive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ds-keypoint": { - "source": "apache", - "extensions": ["kpxx"] - }, - "application/vnd.dtg.local": { - "source": "iana" - }, - "application/vnd.dtg.local.flash": { - "source": "iana" - }, - "application/vnd.dtg.local.html": { - "source": "iana" - }, - "application/vnd.dvb.ait": { - "source": "iana", - "extensions": ["ait"] - }, - "application/vnd.dvb.dvbisl+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.dvbj": { - "source": "iana" - }, - "application/vnd.dvb.esgcontainer": { - "source": "iana" - }, - "application/vnd.dvb.ipdcdftnotifaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess2": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgpdd": { - "source": "iana" - }, - "application/vnd.dvb.ipdcroaming": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-base": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-enhancement": { - "source": "iana" - }, - "application/vnd.dvb.notif-aggregate-root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-container+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-generic+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-msglist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-response+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-init+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.pfr": { - "source": "iana" - }, - "application/vnd.dvb.service": { - "source": "iana", - "extensions": ["svc"] - }, - "application/vnd.dxr": { - "source": "iana" - }, - "application/vnd.dynageo": { - "source": "iana", - "extensions": ["geo"] - }, - "application/vnd.dzr": { - "source": "iana" - }, - "application/vnd.easykaraoke.cdgdownload": { - "source": "iana" - }, - "application/vnd.ecdis-update": { - "source": "iana" - }, - "application/vnd.ecip.rlp": { - "source": "iana" - }, - "application/vnd.eclipse.ditto+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ecowin.chart": { - "source": "iana", - "extensions": ["mag"] - }, - "application/vnd.ecowin.filerequest": { - "source": "iana" - }, - "application/vnd.ecowin.fileupdate": { - "source": "iana" - }, - "application/vnd.ecowin.series": { - "source": "iana" - }, - "application/vnd.ecowin.seriesrequest": { - "source": "iana" - }, - "application/vnd.ecowin.seriesupdate": { - "source": "iana" - }, - "application/vnd.efi.img": { - "source": "iana" - }, - "application/vnd.efi.iso": { - "source": "iana" - }, - "application/vnd.emclient.accessrequest+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.enliven": { - "source": "iana", - "extensions": ["nml"] - }, - "application/vnd.enphase.envoy": { - "source": "iana" - }, - "application/vnd.eprints.data+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.epson.esf": { - "source": "iana", - "extensions": ["esf"] - }, - "application/vnd.epson.msf": { - "source": "iana", - "extensions": ["msf"] - }, - "application/vnd.epson.quickanime": { - "source": "iana", - "extensions": ["qam"] - }, - "application/vnd.epson.salt": { - "source": "iana", - "extensions": ["slt"] - }, - "application/vnd.epson.ssf": { - "source": "iana", - "extensions": ["ssf"] - }, - "application/vnd.ericsson.quickcall": { - "source": "iana" - }, - "application/vnd.espass-espass+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.eszigno3+xml": { - "source": "iana", - "compressible": true, - "extensions": ["es3","et3"] - }, - "application/vnd.etsi.aoc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.asic-e+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.asic-s+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.cug+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvcommand+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-bc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-cod+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-npvr+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvservice+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsync+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mcid+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mheg5": { - "source": "iana" - }, - "application/vnd.etsi.overload-control-policy-dataset+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.pstn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.sci+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.simservs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.timestamp-token": { - "source": "iana" - }, - "application/vnd.etsi.tsl+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.tsl.der": { - "source": "iana" - }, - "application/vnd.eu.kasparian.car+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.eudora.data": { - "source": "iana" - }, - "application/vnd.evolv.ecig.profile": { - "source": "iana" - }, - "application/vnd.evolv.ecig.settings": { - "source": "iana" - }, - "application/vnd.evolv.ecig.theme": { - "source": "iana" - }, - "application/vnd.exstream-empower+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.exstream-package": { - "source": "iana" - }, - "application/vnd.ezpix-album": { - "source": "iana", - "extensions": ["ez2"] - }, - "application/vnd.ezpix-package": { - "source": "iana", - "extensions": ["ez3"] - }, - "application/vnd.f-secure.mobile": { - "source": "iana" - }, - "application/vnd.familysearch.gedcom+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.fastcopy-disk-image": { - "source": "iana" - }, - "application/vnd.fdf": { - "source": "iana", - "extensions": ["fdf"] - }, - "application/vnd.fdsn.mseed": { - "source": "iana", - "extensions": ["mseed"] - }, - "application/vnd.fdsn.seed": { - "source": "iana", - "extensions": ["seed","dataless"] - }, - "application/vnd.ffsns": { - "source": "iana" - }, - "application/vnd.ficlab.flb+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.filmit.zfc": { - "source": "iana" - }, - "application/vnd.fints": { - "source": "iana" - }, - "application/vnd.firemonkeys.cloudcell": { - "source": "iana" - }, - "application/vnd.flographit": { - "source": "iana", - "extensions": ["gph"] - }, - "application/vnd.fluxtime.clip": { - "source": "iana", - "extensions": ["ftc"] - }, - "application/vnd.font-fontforge-sfd": { - "source": "iana" - }, - "application/vnd.framemaker": { - "source": "iana", - "extensions": ["fm","frame","maker","book"] - }, - "application/vnd.frogans.fnc": { - "source": "iana", - "extensions": ["fnc"] - }, - "application/vnd.frogans.ltf": { - "source": "iana", - "extensions": ["ltf"] - }, - "application/vnd.fsc.weblaunch": { - "source": "iana", - "extensions": ["fsc"] - }, - "application/vnd.fujifilm.fb.docuworks": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.docuworks.binder": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujifilm.fb.jfi+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.fujitsu.oasys": { - "source": "iana", - "extensions": ["oas"] - }, - "application/vnd.fujitsu.oasys2": { - "source": "iana", - "extensions": ["oa2"] - }, - "application/vnd.fujitsu.oasys3": { - "source": "iana", - "extensions": ["oa3"] - }, - "application/vnd.fujitsu.oasysgp": { - "source": "iana", - "extensions": ["fg5"] - }, - "application/vnd.fujitsu.oasysprs": { - "source": "iana", - "extensions": ["bh2"] - }, - "application/vnd.fujixerox.art-ex": { - "source": "iana" - }, - "application/vnd.fujixerox.art4": { - "source": "iana" - }, - "application/vnd.fujixerox.ddd": { - "source": "iana", - "extensions": ["ddd"] - }, - "application/vnd.fujixerox.docuworks": { - "source": "iana", - "extensions": ["xdw"] - }, - "application/vnd.fujixerox.docuworks.binder": { - "source": "iana", - "extensions": ["xbd"] - }, - "application/vnd.fujixerox.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujixerox.hbpl": { - "source": "iana" - }, - "application/vnd.fut-misnet": { - "source": "iana" - }, - "application/vnd.futoin+cbor": { - "source": "iana" - }, - "application/vnd.futoin+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.fuzzysheet": { - "source": "iana", - "extensions": ["fzs"] - }, - "application/vnd.genomatix.tuxedo": { - "source": "iana", - "extensions": ["txd"] - }, - "application/vnd.gentics.grd+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.geo+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.geocube+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.geogebra.file": { - "source": "iana", - "extensions": ["ggb"] - }, - "application/vnd.geogebra.slides": { - "source": "iana" - }, - "application/vnd.geogebra.tool": { - "source": "iana", - "extensions": ["ggt"] - }, - "application/vnd.geometry-explorer": { - "source": "iana", - "extensions": ["gex","gre"] - }, - "application/vnd.geonext": { - "source": "iana", - "extensions": ["gxt"] - }, - "application/vnd.geoplan": { - "source": "iana", - "extensions": ["g2w"] - }, - "application/vnd.geospace": { - "source": "iana", - "extensions": ["g3w"] - }, - "application/vnd.gerber": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt-response": { - "source": "iana" - }, - "application/vnd.gmx": { - "source": "iana", - "extensions": ["gmx"] - }, - "application/vnd.google-apps.document": { - "compressible": false, - "extensions": ["gdoc"] - }, - "application/vnd.google-apps.presentation": { - "compressible": false, - "extensions": ["gslides"] - }, - "application/vnd.google-apps.spreadsheet": { - "compressible": false, - "extensions": ["gsheet"] - }, - "application/vnd.google-earth.kml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["kml"] - }, - "application/vnd.google-earth.kmz": { - "source": "iana", - "compressible": false, - "extensions": ["kmz"] - }, - "application/vnd.gov.sk.e-form+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.gov.sk.e-form+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.gov.sk.xmldatacontainer+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.grafeq": { - "source": "iana", - "extensions": ["gqf","gqs"] - }, - "application/vnd.gridmp": { - "source": "iana" - }, - "application/vnd.groove-account": { - "source": "iana", - "extensions": ["gac"] - }, - "application/vnd.groove-help": { - "source": "iana", - "extensions": ["ghf"] - }, - "application/vnd.groove-identity-message": { - "source": "iana", - "extensions": ["gim"] - }, - "application/vnd.groove-injector": { - "source": "iana", - "extensions": ["grv"] - }, - "application/vnd.groove-tool-message": { - "source": "iana", - "extensions": ["gtm"] - }, - "application/vnd.groove-tool-template": { - "source": "iana", - "extensions": ["tpl"] - }, - "application/vnd.groove-vcard": { - "source": "iana", - "extensions": ["vcg"] - }, - "application/vnd.hal+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hal+xml": { - "source": "iana", - "compressible": true, - "extensions": ["hal"] - }, - "application/vnd.handheld-entertainment+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zmm"] - }, - "application/vnd.hbci": { - "source": "iana", - "extensions": ["hbci"] - }, - "application/vnd.hc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hcl-bireports": { - "source": "iana" - }, - "application/vnd.hdt": { - "source": "iana" - }, - "application/vnd.heroku+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hhe.lesson-player": { - "source": "iana", - "extensions": ["les"] - }, - "application/vnd.hl7cda+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.hl7v2+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.hp-hpgl": { - "source": "iana", - "extensions": ["hpgl"] - }, - "application/vnd.hp-hpid": { - "source": "iana", - "extensions": ["hpid"] - }, - "application/vnd.hp-hps": { - "source": "iana", - "extensions": ["hps"] - }, - "application/vnd.hp-jlyt": { - "source": "iana", - "extensions": ["jlt"] - }, - "application/vnd.hp-pcl": { - "source": "iana", - "extensions": ["pcl"] - }, - "application/vnd.hp-pclxl": { - "source": "iana", - "extensions": ["pclxl"] - }, - "application/vnd.httphone": { - "source": "iana" - }, - "application/vnd.hydrostatix.sof-data": { - "source": "iana", - "extensions": ["sfd-hdstx"] - }, - "application/vnd.hyper+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyper-item+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyperdrive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hzn-3d-crossword": { - "source": "iana" - }, - "application/vnd.ibm.afplinedata": { - "source": "iana" - }, - "application/vnd.ibm.electronic-media": { - "source": "iana" - }, - "application/vnd.ibm.minipay": { - "source": "iana", - "extensions": ["mpy"] - }, - "application/vnd.ibm.modcap": { - "source": "iana", - "extensions": ["afp","listafp","list3820"] - }, - "application/vnd.ibm.rights-management": { - "source": "iana", - "extensions": ["irm"] - }, - "application/vnd.ibm.secure-container": { - "source": "iana", - "extensions": ["sc"] - }, - "application/vnd.iccprofile": { - "source": "iana", - "extensions": ["icc","icm"] - }, - "application/vnd.ieee.1905": { - "source": "iana" - }, - "application/vnd.igloader": { - "source": "iana", - "extensions": ["igl"] - }, - "application/vnd.imagemeter.folder+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.imagemeter.image+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.immervision-ivp": { - "source": "iana", - "extensions": ["ivp"] - }, - "application/vnd.immervision-ivu": { - "source": "iana", - "extensions": ["ivu"] - }, - "application/vnd.ims.imsccv1p1": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p2": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p3": { - "source": "iana" - }, - "application/vnd.ims.lis.v2.result+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolconsumerprofile+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy.id+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings.simple+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.informedcontrol.rms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.informix-visionary": { - "source": "iana" - }, - "application/vnd.infotech.project": { - "source": "iana" - }, - "application/vnd.infotech.project+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.innopath.wamp.notification": { - "source": "iana" - }, - "application/vnd.insors.igm": { - "source": "iana", - "extensions": ["igm"] - }, - "application/vnd.intercon.formnet": { - "source": "iana", - "extensions": ["xpw","xpx"] - }, - "application/vnd.intergeo": { - "source": "iana", - "extensions": ["i2g"] - }, - "application/vnd.intertrust.digibox": { - "source": "iana" - }, - "application/vnd.intertrust.nncp": { - "source": "iana" - }, - "application/vnd.intu.qbo": { - "source": "iana", - "extensions": ["qbo"] - }, - "application/vnd.intu.qfx": { - "source": "iana", - "extensions": ["qfx"] - }, - "application/vnd.iptc.g2.catalogitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.conceptitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.knowledgeitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.packageitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.planningitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ipunplugged.rcprofile": { - "source": "iana", - "extensions": ["rcprofile"] - }, - "application/vnd.irepository.package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["irp"] - }, - "application/vnd.is-xpr": { - "source": "iana", - "extensions": ["xpr"] - }, - "application/vnd.isac.fcs": { - "source": "iana", - "extensions": ["fcs"] - }, - "application/vnd.iso11783-10+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.jam": { - "source": "iana", - "extensions": ["jam"] - }, - "application/vnd.japannet-directory-service": { - "source": "iana" - }, - "application/vnd.japannet-jpnstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-payment-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-registration": { - "source": "iana" - }, - "application/vnd.japannet-registration-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-setstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-verification": { - "source": "iana" - }, - "application/vnd.japannet-verification-wakeup": { - "source": "iana" - }, - "application/vnd.jcp.javame.midlet-rms": { - "source": "iana", - "extensions": ["rms"] - }, - "application/vnd.jisp": { - "source": "iana", - "extensions": ["jisp"] - }, - "application/vnd.joost.joda-archive": { - "source": "iana", - "extensions": ["joda"] - }, - "application/vnd.jsk.isdn-ngn": { - "source": "iana" - }, - "application/vnd.kahootz": { - "source": "iana", - "extensions": ["ktz","ktr"] - }, - "application/vnd.kde.karbon": { - "source": "iana", - "extensions": ["karbon"] - }, - "application/vnd.kde.kchart": { - "source": "iana", - "extensions": ["chrt"] - }, - "application/vnd.kde.kformula": { - "source": "iana", - "extensions": ["kfo"] - }, - "application/vnd.kde.kivio": { - "source": "iana", - "extensions": ["flw"] - }, - "application/vnd.kde.kontour": { - "source": "iana", - "extensions": ["kon"] - }, - "application/vnd.kde.kpresenter": { - "source": "iana", - "extensions": ["kpr","kpt"] - }, - "application/vnd.kde.kspread": { - "source": "iana", - "extensions": ["ksp"] - }, - "application/vnd.kde.kword": { - "source": "iana", - "extensions": ["kwd","kwt"] - }, - "application/vnd.kenameaapp": { - "source": "iana", - "extensions": ["htke"] - }, - "application/vnd.kidspiration": { - "source": "iana", - "extensions": ["kia"] - }, - "application/vnd.kinar": { - "source": "iana", - "extensions": ["kne","knp"] - }, - "application/vnd.koan": { - "source": "iana", - "extensions": ["skp","skd","skt","skm"] - }, - "application/vnd.kodak-descriptor": { - "source": "iana", - "extensions": ["sse"] - }, - "application/vnd.las": { - "source": "iana" - }, - "application/vnd.las.las+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.las.las+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lasxml"] - }, - "application/vnd.laszip": { - "source": "iana" - }, - "application/vnd.leap+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.liberty-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.llamagraphics.life-balance.desktop": { - "source": "iana", - "extensions": ["lbd"] - }, - "application/vnd.llamagraphics.life-balance.exchange+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lbe"] - }, - "application/vnd.logipipe.circuit+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.loom": { - "source": "iana" - }, - "application/vnd.lotus-1-2-3": { - "source": "iana", - "extensions": ["123"] - }, - "application/vnd.lotus-approach": { - "source": "iana", - "extensions": ["apr"] - }, - "application/vnd.lotus-freelance": { - "source": "iana", - "extensions": ["pre"] - }, - "application/vnd.lotus-notes": { - "source": "iana", - "extensions": ["nsf"] - }, - "application/vnd.lotus-organizer": { - "source": "iana", - "extensions": ["org"] - }, - "application/vnd.lotus-screencam": { - "source": "iana", - "extensions": ["scm"] - }, - "application/vnd.lotus-wordpro": { - "source": "iana", - "extensions": ["lwp"] - }, - "application/vnd.macports.portpkg": { - "source": "iana", - "extensions": ["portpkg"] - }, - "application/vnd.mapbox-vector-tile": { - "source": "iana", - "extensions": ["mvt"] - }, - "application/vnd.marlin.drm.actiontoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.conftoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.license+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.mdcf": { - "source": "iana" - }, - "application/vnd.mason+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.maxar.archive.3tz+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.maxmind.maxmind-db": { - "source": "iana" - }, - "application/vnd.mcd": { - "source": "iana", - "extensions": ["mcd"] - }, - "application/vnd.medcalcdata": { - "source": "iana", - "extensions": ["mc1"] - }, - "application/vnd.mediastation.cdkey": { - "source": "iana", - "extensions": ["cdkey"] - }, - "application/vnd.meridian-slingshot": { - "source": "iana" - }, - "application/vnd.mfer": { - "source": "iana", - "extensions": ["mwf"] - }, - "application/vnd.mfmp": { - "source": "iana", - "extensions": ["mfm"] - }, - "application/vnd.micro+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.micrografx.flo": { - "source": "iana", - "extensions": ["flo"] - }, - "application/vnd.micrografx.igx": { - "source": "iana", - "extensions": ["igx"] - }, - "application/vnd.microsoft.portable-executable": { - "source": "iana" - }, - "application/vnd.microsoft.windows.thumbnail-cache": { - "source": "iana" - }, - "application/vnd.miele+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.mif": { - "source": "iana", - "extensions": ["mif"] - }, - "application/vnd.minisoft-hp3000-save": { - "source": "iana" - }, - "application/vnd.mitsubishi.misty-guard.trustweb": { - "source": "iana" - }, - "application/vnd.mobius.daf": { - "source": "iana", - "extensions": ["daf"] - }, - "application/vnd.mobius.dis": { - "source": "iana", - "extensions": ["dis"] - }, - "application/vnd.mobius.mbk": { - "source": "iana", - "extensions": ["mbk"] - }, - "application/vnd.mobius.mqy": { - "source": "iana", - "extensions": ["mqy"] - }, - "application/vnd.mobius.msl": { - "source": "iana", - "extensions": ["msl"] - }, - "application/vnd.mobius.plc": { - "source": "iana", - "extensions": ["plc"] - }, - "application/vnd.mobius.txf": { - "source": "iana", - "extensions": ["txf"] - }, - "application/vnd.mophun.application": { - "source": "iana", - "extensions": ["mpn"] - }, - "application/vnd.mophun.certificate": { - "source": "iana", - "extensions": ["mpc"] - }, - "application/vnd.motorola.flexsuite": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.adsi": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.fis": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.gotap": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.kmr": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.ttc": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.wem": { - "source": "iana" - }, - "application/vnd.motorola.iprm": { - "source": "iana" - }, - "application/vnd.mozilla.xul+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xul"] - }, - "application/vnd.ms-3mfdocument": { - "source": "iana" - }, - "application/vnd.ms-artgalry": { - "source": "iana", - "extensions": ["cil"] - }, - "application/vnd.ms-asf": { - "source": "iana" - }, - "application/vnd.ms-cab-compressed": { - "source": "iana", - "extensions": ["cab"] - }, - "application/vnd.ms-color.iccprofile": { - "source": "apache" - }, - "application/vnd.ms-excel": { - "source": "iana", - "compressible": false, - "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] - }, - "application/vnd.ms-excel.addin.macroenabled.12": { - "source": "iana", - "extensions": ["xlam"] - }, - "application/vnd.ms-excel.sheet.binary.macroenabled.12": { - "source": "iana", - "extensions": ["xlsb"] - }, - "application/vnd.ms-excel.sheet.macroenabled.12": { - "source": "iana", - "extensions": ["xlsm"] - }, - "application/vnd.ms-excel.template.macroenabled.12": { - "source": "iana", - "extensions": ["xltm"] - }, - "application/vnd.ms-fontobject": { - "source": "iana", - "compressible": true, - "extensions": ["eot"] - }, - "application/vnd.ms-htmlhelp": { - "source": "iana", - "extensions": ["chm"] - }, - "application/vnd.ms-ims": { - "source": "iana", - "extensions": ["ims"] - }, - "application/vnd.ms-lrm": { - "source": "iana", - "extensions": ["lrm"] - }, - "application/vnd.ms-office.activex+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-officetheme": { - "source": "iana", - "extensions": ["thmx"] - }, - "application/vnd.ms-opentype": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-outlook": { - "compressible": false, - "extensions": ["msg"] - }, - "application/vnd.ms-package.obfuscated-opentype": { - "source": "apache" - }, - "application/vnd.ms-pki.seccat": { - "source": "apache", - "extensions": ["cat"] - }, - "application/vnd.ms-pki.stl": { - "source": "apache", - "extensions": ["stl"] - }, - "application/vnd.ms-playready.initiator+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-powerpoint": { - "source": "iana", - "compressible": false, - "extensions": ["ppt","pps","pot"] - }, - "application/vnd.ms-powerpoint.addin.macroenabled.12": { - "source": "iana", - "extensions": ["ppam"] - }, - "application/vnd.ms-powerpoint.presentation.macroenabled.12": { - "source": "iana", - "extensions": ["pptm"] - }, - "application/vnd.ms-powerpoint.slide.macroenabled.12": { - "source": "iana", - "extensions": ["sldm"] - }, - "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { - "source": "iana", - "extensions": ["ppsm"] - }, - "application/vnd.ms-powerpoint.template.macroenabled.12": { - "source": "iana", - "extensions": ["potm"] - }, - "application/vnd.ms-printdevicecapabilities+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-printing.printticket+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-printschematicket+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-project": { - "source": "iana", - "extensions": ["mpp","mpt"] - }, - "application/vnd.ms-tnef": { - "source": "iana" - }, - "application/vnd.ms-windows.devicepairing": { - "source": "iana" - }, - "application/vnd.ms-windows.nwprinting.oob": { - "source": "iana" - }, - "application/vnd.ms-windows.printerpairing": { - "source": "iana" - }, - "application/vnd.ms-windows.wsd.oob": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-resp": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-resp": { - "source": "iana" - }, - "application/vnd.ms-word.document.macroenabled.12": { - "source": "iana", - "extensions": ["docm"] - }, - "application/vnd.ms-word.template.macroenabled.12": { - "source": "iana", - "extensions": ["dotm"] - }, - "application/vnd.ms-works": { - "source": "iana", - "extensions": ["wps","wks","wcm","wdb"] - }, - "application/vnd.ms-wpl": { - "source": "iana", - "extensions": ["wpl"] - }, - "application/vnd.ms-xpsdocument": { - "source": "iana", - "compressible": false, - "extensions": ["xps"] - }, - "application/vnd.msa-disk-image": { - "source": "iana" - }, - "application/vnd.mseq": { - "source": "iana", - "extensions": ["mseq"] - }, - "application/vnd.msign": { - "source": "iana" - }, - "application/vnd.multiad.creator": { - "source": "iana" - }, - "application/vnd.multiad.creator.cif": { - "source": "iana" - }, - "application/vnd.music-niff": { - "source": "iana" - }, - "application/vnd.musician": { - "source": "iana", - "extensions": ["mus"] - }, - "application/vnd.muvee.style": { - "source": "iana", - "extensions": ["msty"] - }, - "application/vnd.mynfc": { - "source": "iana", - "extensions": ["taglet"] - }, - "application/vnd.nacamar.ybrid+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ncd.control": { - "source": "iana" - }, - "application/vnd.ncd.reference": { - "source": "iana" - }, - "application/vnd.nearst.inv+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nebumind.line": { - "source": "iana" - }, - "application/vnd.nervana": { - "source": "iana" - }, - "application/vnd.netfpx": { - "source": "iana" - }, - "application/vnd.neurolanguage.nlu": { - "source": "iana", - "extensions": ["nlu"] - }, - "application/vnd.nimn": { - "source": "iana" - }, - "application/vnd.nintendo.nitro.rom": { - "source": "iana" - }, - "application/vnd.nintendo.snes.rom": { - "source": "iana" - }, - "application/vnd.nitf": { - "source": "iana", - "extensions": ["ntf","nitf"] - }, - "application/vnd.noblenet-directory": { - "source": "iana", - "extensions": ["nnd"] - }, - "application/vnd.noblenet-sealer": { - "source": "iana", - "extensions": ["nns"] - }, - "application/vnd.noblenet-web": { - "source": "iana", - "extensions": ["nnw"] - }, - "application/vnd.nokia.catalogs": { - "source": "iana" - }, - "application/vnd.nokia.conml+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.conml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.iptv.config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.isds-radio-presets": { - "source": "iana" - }, - "application/vnd.nokia.landmark+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.landmark+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.landmarkcollection+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.n-gage.ac+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ac"] - }, - "application/vnd.nokia.n-gage.data": { - "source": "iana", - "extensions": ["ngdat"] - }, - "application/vnd.nokia.n-gage.symbian.install": { - "source": "iana", - "extensions": ["n-gage"] - }, - "application/vnd.nokia.ncd": { - "source": "iana" - }, - "application/vnd.nokia.pcd+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.pcd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.radio-preset": { - "source": "iana", - "extensions": ["rpst"] - }, - "application/vnd.nokia.radio-presets": { - "source": "iana", - "extensions": ["rpss"] - }, - "application/vnd.novadigm.edm": { - "source": "iana", - "extensions": ["edm"] - }, - "application/vnd.novadigm.edx": { - "source": "iana", - "extensions": ["edx"] - }, - "application/vnd.novadigm.ext": { - "source": "iana", - "extensions": ["ext"] - }, - "application/vnd.ntt-local.content-share": { - "source": "iana" - }, - "application/vnd.ntt-local.file-transfer": { - "source": "iana" - }, - "application/vnd.ntt-local.ogw_remote-access": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_remote": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_tcp_stream": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.chart": { - "source": "iana", - "extensions": ["odc"] - }, - "application/vnd.oasis.opendocument.chart-template": { - "source": "iana", - "extensions": ["otc"] - }, - "application/vnd.oasis.opendocument.database": { - "source": "iana", - "extensions": ["odb"] - }, - "application/vnd.oasis.opendocument.formula": { - "source": "iana", - "extensions": ["odf"] - }, - "application/vnd.oasis.opendocument.formula-template": { - "source": "iana", - "extensions": ["odft"] - }, - "application/vnd.oasis.opendocument.graphics": { - "source": "iana", - "compressible": false, - "extensions": ["odg"] - }, - "application/vnd.oasis.opendocument.graphics-template": { - "source": "iana", - "extensions": ["otg"] - }, - "application/vnd.oasis.opendocument.image": { - "source": "iana", - "extensions": ["odi"] - }, - "application/vnd.oasis.opendocument.image-template": { - "source": "iana", - "extensions": ["oti"] - }, - "application/vnd.oasis.opendocument.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["odp"] - }, - "application/vnd.oasis.opendocument.presentation-template": { - "source": "iana", - "extensions": ["otp"] - }, - "application/vnd.oasis.opendocument.spreadsheet": { - "source": "iana", - "compressible": false, - "extensions": ["ods"] - }, - "application/vnd.oasis.opendocument.spreadsheet-template": { - "source": "iana", - "extensions": ["ots"] - }, - "application/vnd.oasis.opendocument.text": { - "source": "iana", - "compressible": false, - "extensions": ["odt"] - }, - "application/vnd.oasis.opendocument.text-master": { - "source": "iana", - "extensions": ["odm"] - }, - "application/vnd.oasis.opendocument.text-template": { - "source": "iana", - "extensions": ["ott"] - }, - "application/vnd.oasis.opendocument.text-web": { - "source": "iana", - "extensions": ["oth"] - }, - "application/vnd.obn": { - "source": "iana" - }, - "application/vnd.ocf+cbor": { - "source": "iana" - }, - "application/vnd.oci.image.manifest.v1+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oftn.l10n+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessdownload+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessstreaming+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.cspg-hexbinary": { - "source": "iana" - }, - "application/vnd.oipf.dae.svg+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.dae.xhtml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.mippvcontrolmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.pae.gem": { - "source": "iana" - }, - "application/vnd.oipf.spdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.spdlist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.ueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.userprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.olpc-sugar": { - "source": "iana", - "extensions": ["xo"] - }, - "application/vnd.oma-scws-config": { - "source": "iana" - }, - "application/vnd.oma-scws-http-request": { - "source": "iana" - }, - "application/vnd.oma-scws-http-response": { - "source": "iana" - }, - "application/vnd.oma.bcast.associated-procedure-parameter+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.drm-trigger+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.imd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.ltkm": { - "source": "iana" - }, - "application/vnd.oma.bcast.notification+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.provisioningtrigger": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgboot": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgdd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.sgdu": { - "source": "iana" - }, - "application/vnd.oma.bcast.simple-symbol-container": { - "source": "iana" - }, - "application/vnd.oma.bcast.smartcard-trigger+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.sprov+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.stkm": { - "source": "iana" - }, - "application/vnd.oma.cab-address-book+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-feature-handler+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-pcc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-subs-invite+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-user-prefs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.dcd": { - "source": "iana" - }, - "application/vnd.oma.dcdc": { - "source": "iana" - }, - "application/vnd.oma.dd2+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dd2"] - }, - "application/vnd.oma.drm.risd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.group-usage-list+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+cbor": { - "source": "iana" - }, - "application/vnd.oma.lwm2m+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+tlv": { - "source": "iana" - }, - "application/vnd.oma.pal+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.detailed-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.final-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.groups+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.invocation-descriptor+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.optimized-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.push": { - "source": "iana" - }, - "application/vnd.oma.scidm.messages+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.xcap-directory+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omads-email+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omads-file+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omads-folder+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.omaloc-supl-init": { - "source": "iana" - }, - "application/vnd.onepager": { - "source": "iana" - }, - "application/vnd.onepagertamp": { - "source": "iana" - }, - "application/vnd.onepagertamx": { - "source": "iana" - }, - "application/vnd.onepagertat": { - "source": "iana" - }, - "application/vnd.onepagertatp": { - "source": "iana" - }, - "application/vnd.onepagertatx": { - "source": "iana" - }, - "application/vnd.openblox.game+xml": { - "source": "iana", - "compressible": true, - "extensions": ["obgx"] - }, - "application/vnd.openblox.game-binary": { - "source": "iana" - }, - "application/vnd.openeye.oeb": { - "source": "iana" - }, - "application/vnd.openofficeorg.extension": { - "source": "apache", - "extensions": ["oxt"] - }, - "application/vnd.openstreetmap.data+xml": { - "source": "iana", - "compressible": true, - "extensions": ["osm"] - }, - "application/vnd.opentimestamps.ots": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.custom-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawing+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.extended-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["pptx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide": { - "source": "iana", - "extensions": ["sldx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { - "source": "iana", - "extensions": ["ppsx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.template": { - "source": "iana", - "extensions": ["potx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { - "source": "iana", - "compressible": false, - "extensions": ["xlsx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { - "source": "iana", - "extensions": ["xltx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.theme+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.themeoverride+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.vmldrawing": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { - "source": "iana", - "compressible": false, - "extensions": ["docx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { - "source": "iana", - "extensions": ["dotx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.core-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.relationships+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oracle.resource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.orange.indata": { - "source": "iana" - }, - "application/vnd.osa.netdeploy": { - "source": "iana" - }, - "application/vnd.osgeo.mapguide.package": { - "source": "iana", - "extensions": ["mgp"] - }, - "application/vnd.osgi.bundle": { - "source": "iana" - }, - "application/vnd.osgi.dp": { - "source": "iana", - "extensions": ["dp"] - }, - "application/vnd.osgi.subsystem": { - "source": "iana", - "extensions": ["esa"] - }, - "application/vnd.otps.ct-kip+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oxli.countgraph": { - "source": "iana" - }, - "application/vnd.pagerduty+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.palm": { - "source": "iana", - "extensions": ["pdb","pqa","oprc"] - }, - "application/vnd.panoply": { - "source": "iana" - }, - "application/vnd.paos.xml": { - "source": "iana" - }, - "application/vnd.patentdive": { - "source": "iana" - }, - "application/vnd.patientecommsdoc": { - "source": "iana" - }, - "application/vnd.pawaafile": { - "source": "iana", - "extensions": ["paw"] - }, - "application/vnd.pcos": { - "source": "iana" - }, - "application/vnd.pg.format": { - "source": "iana", - "extensions": ["str"] - }, - "application/vnd.pg.osasli": { - "source": "iana", - "extensions": ["ei6"] - }, - "application/vnd.piaccess.application-licence": { - "source": "iana" - }, - "application/vnd.picsel": { - "source": "iana", - "extensions": ["efif"] - }, - "application/vnd.pmi.widget": { - "source": "iana", - "extensions": ["wg"] - }, - "application/vnd.poc.group-advertisement+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.pocketlearn": { - "source": "iana", - "extensions": ["plf"] - }, - "application/vnd.powerbuilder6": { - "source": "iana", - "extensions": ["pbd"] - }, - "application/vnd.powerbuilder6-s": { - "source": "iana" - }, - "application/vnd.powerbuilder7": { - "source": "iana" - }, - "application/vnd.powerbuilder7-s": { - "source": "iana" - }, - "application/vnd.powerbuilder75": { - "source": "iana" - }, - "application/vnd.powerbuilder75-s": { - "source": "iana" - }, - "application/vnd.preminet": { - "source": "iana" - }, - "application/vnd.previewsystems.box": { - "source": "iana", - "extensions": ["box"] - }, - "application/vnd.proteus.magazine": { - "source": "iana", - "extensions": ["mgz"] - }, - "application/vnd.psfs": { - "source": "iana" - }, - "application/vnd.publishare-delta-tree": { - "source": "iana", - "extensions": ["qps"] - }, - "application/vnd.pvi.ptid1": { - "source": "iana", - "extensions": ["ptid"] - }, - "application/vnd.pwg-multiplexed": { - "source": "iana" - }, - "application/vnd.pwg-xhtml-print+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.qualcomm.brew-app-res": { - "source": "iana" - }, - "application/vnd.quarantainenet": { - "source": "iana" - }, - "application/vnd.quark.quarkxpress": { - "source": "iana", - "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] - }, - "application/vnd.quobject-quoxdocument": { - "source": "iana" - }, - "application/vnd.radisys.moml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-stream+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-base+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-detect+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-group+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-speech+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-transform+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.rainstor.data": { - "source": "iana" - }, - "application/vnd.rapid": { - "source": "iana" - }, - "application/vnd.rar": { - "source": "iana", - "extensions": ["rar"] - }, - "application/vnd.realvnc.bed": { - "source": "iana", - "extensions": ["bed"] - }, - "application/vnd.recordare.musicxml": { - "source": "iana", - "extensions": ["mxl"] - }, - "application/vnd.recordare.musicxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["musicxml"] - }, - "application/vnd.renlearn.rlprint": { - "source": "iana" - }, - "application/vnd.resilient.logic": { - "source": "iana" - }, - "application/vnd.restful+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.rig.cryptonote": { - "source": "iana", - "extensions": ["cryptonote"] - }, - "application/vnd.rim.cod": { - "source": "apache", - "extensions": ["cod"] - }, - "application/vnd.rn-realmedia": { - "source": "apache", - "extensions": ["rm"] - }, - "application/vnd.rn-realmedia-vbr": { - "source": "apache", - "extensions": ["rmvb"] - }, - "application/vnd.route66.link66+xml": { - "source": "iana", - "compressible": true, - "extensions": ["link66"] - }, - "application/vnd.rs-274x": { - "source": "iana" - }, - "application/vnd.ruckus.download": { - "source": "iana" - }, - "application/vnd.s3sms": { - "source": "iana" - }, - "application/vnd.sailingtracker.track": { - "source": "iana", - "extensions": ["st"] - }, - "application/vnd.sar": { - "source": "iana" - }, - "application/vnd.sbm.cid": { - "source": "iana" - }, - "application/vnd.sbm.mid2": { - "source": "iana" - }, - "application/vnd.scribus": { - "source": "iana" - }, - "application/vnd.sealed.3df": { - "source": "iana" - }, - "application/vnd.sealed.csf": { - "source": "iana" - }, - "application/vnd.sealed.doc": { - "source": "iana" - }, - "application/vnd.sealed.eml": { - "source": "iana" - }, - "application/vnd.sealed.mht": { - "source": "iana" - }, - "application/vnd.sealed.net": { - "source": "iana" - }, - "application/vnd.sealed.ppt": { - "source": "iana" - }, - "application/vnd.sealed.tiff": { - "source": "iana" - }, - "application/vnd.sealed.xls": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.html": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.pdf": { - "source": "iana" - }, - "application/vnd.seemail": { - "source": "iana", - "extensions": ["see"] - }, - "application/vnd.seis+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.sema": { - "source": "iana", - "extensions": ["sema"] - }, - "application/vnd.semd": { - "source": "iana", - "extensions": ["semd"] - }, - "application/vnd.semf": { - "source": "iana", - "extensions": ["semf"] - }, - "application/vnd.shade-save-file": { - "source": "iana" - }, - "application/vnd.shana.informed.formdata": { - "source": "iana", - "extensions": ["ifm"] - }, - "application/vnd.shana.informed.formtemplate": { - "source": "iana", - "extensions": ["itp"] - }, - "application/vnd.shana.informed.interchange": { - "source": "iana", - "extensions": ["iif"] - }, - "application/vnd.shana.informed.package": { - "source": "iana", - "extensions": ["ipk"] - }, - "application/vnd.shootproof+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.shopkick+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.shp": { - "source": "iana" - }, - "application/vnd.shx": { - "source": "iana" - }, - "application/vnd.sigrok.session": { - "source": "iana" - }, - "application/vnd.simtech-mindmapper": { - "source": "iana", - "extensions": ["twd","twds"] - }, - "application/vnd.siren+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.smaf": { - "source": "iana", - "extensions": ["mmf"] - }, - "application/vnd.smart.notebook": { - "source": "iana" - }, - "application/vnd.smart.teacher": { - "source": "iana", - "extensions": ["teacher"] - }, - "application/vnd.snesdev-page-table": { - "source": "iana" - }, - "application/vnd.software602.filler.form+xml": { - "source": "iana", - "compressible": true, - "extensions": ["fo"] - }, - "application/vnd.software602.filler.form-xml-zip": { - "source": "iana" - }, - "application/vnd.solent.sdkm+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sdkm","sdkd"] - }, - "application/vnd.spotfire.dxp": { - "source": "iana", - "extensions": ["dxp"] - }, - "application/vnd.spotfire.sfs": { - "source": "iana", - "extensions": ["sfs"] - }, - "application/vnd.sqlite3": { - "source": "iana" - }, - "application/vnd.sss-cod": { - "source": "iana" - }, - "application/vnd.sss-dtf": { - "source": "iana" - }, - "application/vnd.sss-ntf": { - "source": "iana" - }, - "application/vnd.stardivision.calc": { - "source": "apache", - "extensions": ["sdc"] - }, - "application/vnd.stardivision.draw": { - "source": "apache", - "extensions": ["sda"] - }, - "application/vnd.stardivision.impress": { - "source": "apache", - "extensions": ["sdd"] - }, - "application/vnd.stardivision.math": { - "source": "apache", - "extensions": ["smf"] - }, - "application/vnd.stardivision.writer": { - "source": "apache", - "extensions": ["sdw","vor"] - }, - "application/vnd.stardivision.writer-global": { - "source": "apache", - "extensions": ["sgl"] - }, - "application/vnd.stepmania.package": { - "source": "iana", - "extensions": ["smzip"] - }, - "application/vnd.stepmania.stepchart": { - "source": "iana", - "extensions": ["sm"] - }, - "application/vnd.street-stream": { - "source": "iana" - }, - "application/vnd.sun.wadl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wadl"] - }, - "application/vnd.sun.xml.calc": { - "source": "apache", - "extensions": ["sxc"] - }, - "application/vnd.sun.xml.calc.template": { - "source": "apache", - "extensions": ["stc"] - }, - "application/vnd.sun.xml.draw": { - "source": "apache", - "extensions": ["sxd"] - }, - "application/vnd.sun.xml.draw.template": { - "source": "apache", - "extensions": ["std"] - }, - "application/vnd.sun.xml.impress": { - "source": "apache", - "extensions": ["sxi"] - }, - "application/vnd.sun.xml.impress.template": { - "source": "apache", - "extensions": ["sti"] - }, - "application/vnd.sun.xml.math": { - "source": "apache", - "extensions": ["sxm"] - }, - "application/vnd.sun.xml.writer": { - "source": "apache", - "extensions": ["sxw"] - }, - "application/vnd.sun.xml.writer.global": { - "source": "apache", - "extensions": ["sxg"] - }, - "application/vnd.sun.xml.writer.template": { - "source": "apache", - "extensions": ["stw"] - }, - "application/vnd.sus-calendar": { - "source": "iana", - "extensions": ["sus","susp"] - }, - "application/vnd.svd": { - "source": "iana", - "extensions": ["svd"] - }, - "application/vnd.swiftview-ics": { - "source": "iana" - }, - "application/vnd.sycle+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.syft+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.symbian.install": { - "source": "apache", - "extensions": ["sis","sisx"] - }, - "application/vnd.syncml+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["xsm"] - }, - "application/vnd.syncml.dm+wbxml": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["bdm"] - }, - "application/vnd.syncml.dm+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["xdm"] - }, - "application/vnd.syncml.dm.notification": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["ddf"] - }, - "application/vnd.syncml.dmtnds+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmtnds+xml": { - "source": "iana", - "charset": "UTF-8", - "compressible": true - }, - "application/vnd.syncml.ds.notification": { - "source": "iana" - }, - "application/vnd.tableschema+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tao.intent-module-archive": { - "source": "iana", - "extensions": ["tao"] - }, - "application/vnd.tcpdump.pcap": { - "source": "iana", - "extensions": ["pcap","cap","dmp"] - }, - "application/vnd.think-cell.ppttc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tmd.mediaflex.api+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.tml": { - "source": "iana" - }, - "application/vnd.tmobile-livetv": { - "source": "iana", - "extensions": ["tmo"] - }, - "application/vnd.tri.onesource": { - "source": "iana" - }, - "application/vnd.trid.tpt": { - "source": "iana", - "extensions": ["tpt"] - }, - "application/vnd.triscape.mxs": { - "source": "iana", - "extensions": ["mxs"] - }, - "application/vnd.trueapp": { - "source": "iana", - "extensions": ["tra"] - }, - "application/vnd.truedoc": { - "source": "iana" - }, - "application/vnd.ubisoft.webplayer": { - "source": "iana" - }, - "application/vnd.ufdl": { - "source": "iana", - "extensions": ["ufd","ufdl"] - }, - "application/vnd.uiq.theme": { - "source": "iana", - "extensions": ["utz"] - }, - "application/vnd.umajin": { - "source": "iana", - "extensions": ["umj"] - }, - "application/vnd.unity": { - "source": "iana", - "extensions": ["unityweb"] - }, - "application/vnd.uoml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uoml"] - }, - "application/vnd.uplanet.alert": { - "source": "iana" - }, - "application/vnd.uplanet.alert-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.channel": { - "source": "iana" - }, - "application/vnd.uplanet.channel-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.list": { - "source": "iana" - }, - "application/vnd.uplanet.list-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.signal": { - "source": "iana" - }, - "application/vnd.uri-map": { - "source": "iana" - }, - "application/vnd.valve.source.material": { - "source": "iana" - }, - "application/vnd.vcx": { - "source": "iana", - "extensions": ["vcx"] - }, - "application/vnd.vd-study": { - "source": "iana" - }, - "application/vnd.vectorworks": { - "source": "iana" - }, - "application/vnd.vel+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.verimatrix.vcas": { - "source": "iana" - }, - "application/vnd.veritone.aion+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.veryant.thin": { - "source": "iana" - }, - "application/vnd.ves.encrypted": { - "source": "iana" - }, - "application/vnd.vidsoft.vidconference": { - "source": "iana" - }, - "application/vnd.visio": { - "source": "iana", - "extensions": ["vsd","vst","vss","vsw"] - }, - "application/vnd.visionary": { - "source": "iana", - "extensions": ["vis"] - }, - "application/vnd.vividence.scriptfile": { - "source": "iana" - }, - "application/vnd.vsf": { - "source": "iana", - "extensions": ["vsf"] - }, - "application/vnd.wap.sic": { - "source": "iana" - }, - "application/vnd.wap.slc": { - "source": "iana" - }, - "application/vnd.wap.wbxml": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["wbxml"] - }, - "application/vnd.wap.wmlc": { - "source": "iana", - "extensions": ["wmlc"] - }, - "application/vnd.wap.wmlscriptc": { - "source": "iana", - "extensions": ["wmlsc"] - }, - "application/vnd.webturbo": { - "source": "iana", - "extensions": ["wtb"] - }, - "application/vnd.wfa.dpp": { - "source": "iana" - }, - "application/vnd.wfa.p2p": { - "source": "iana" - }, - "application/vnd.wfa.wsc": { - "source": "iana" - }, - "application/vnd.windows.devicepairing": { - "source": "iana" - }, - "application/vnd.wmc": { - "source": "iana" - }, - "application/vnd.wmf.bootstrap": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica.package": { - "source": "iana" - }, - "application/vnd.wolfram.player": { - "source": "iana", - "extensions": ["nbp"] - }, - "application/vnd.wordperfect": { - "source": "iana", - "extensions": ["wpd"] - }, - "application/vnd.wqd": { - "source": "iana", - "extensions": ["wqd"] - }, - "application/vnd.wrq-hp3000-labelled": { - "source": "iana" - }, - "application/vnd.wt.stf": { - "source": "iana", - "extensions": ["stf"] - }, - "application/vnd.wv.csp+wbxml": { - "source": "iana" - }, - "application/vnd.wv.csp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.wv.ssp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xacml+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.xara": { - "source": "iana", - "extensions": ["xar"] - }, - "application/vnd.xfdl": { - "source": "iana", - "extensions": ["xfdl"] - }, - "application/vnd.xfdl.webform": { - "source": "iana" - }, - "application/vnd.xmi+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xmpie.cpkg": { - "source": "iana" - }, - "application/vnd.xmpie.dpkg": { - "source": "iana" - }, - "application/vnd.xmpie.plan": { - "source": "iana" - }, - "application/vnd.xmpie.ppkg": { - "source": "iana" - }, - "application/vnd.xmpie.xlim": { - "source": "iana" - }, - "application/vnd.yamaha.hv-dic": { - "source": "iana", - "extensions": ["hvd"] - }, - "application/vnd.yamaha.hv-script": { - "source": "iana", - "extensions": ["hvs"] - }, - "application/vnd.yamaha.hv-voice": { - "source": "iana", - "extensions": ["hvp"] - }, - "application/vnd.yamaha.openscoreformat": { - "source": "iana", - "extensions": ["osf"] - }, - "application/vnd.yamaha.openscoreformat.osfpvg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["osfpvg"] - }, - "application/vnd.yamaha.remote-setup": { - "source": "iana" - }, - "application/vnd.yamaha.smaf-audio": { - "source": "iana", - "extensions": ["saf"] - }, - "application/vnd.yamaha.smaf-phrase": { - "source": "iana", - "extensions": ["spf"] - }, - "application/vnd.yamaha.through-ngn": { - "source": "iana" - }, - "application/vnd.yamaha.tunnel-udpencap": { - "source": "iana" - }, - "application/vnd.yaoweme": { - "source": "iana" - }, - "application/vnd.yellowriver-custom-menu": { - "source": "iana", - "extensions": ["cmp"] - }, - "application/vnd.youtube.yt": { - "source": "iana" - }, - "application/vnd.zul": { - "source": "iana", - "extensions": ["zir","zirz"] - }, - "application/vnd.zzazz.deck+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zaz"] - }, - "application/voicexml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["vxml"] - }, - "application/voucher-cms+json": { - "source": "iana", - "compressible": true - }, - "application/vq-rtcpxr": { - "source": "iana" - }, - "application/wasm": { - "source": "iana", - "compressible": true, - "extensions": ["wasm"] - }, - "application/watcherinfo+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wif"] - }, - "application/webpush-options+json": { - "source": "iana", - "compressible": true - }, - "application/whoispp-query": { - "source": "iana" - }, - "application/whoispp-response": { - "source": "iana" - }, - "application/widget": { - "source": "iana", - "extensions": ["wgt"] - }, - "application/winhlp": { - "source": "apache", - "extensions": ["hlp"] - }, - "application/wita": { - "source": "iana" - }, - "application/wordperfect5.1": { - "source": "iana" - }, - "application/wsdl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wsdl"] - }, - "application/wspolicy+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wspolicy"] - }, - "application/x-7z-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["7z"] - }, - "application/x-abiword": { - "source": "apache", - "extensions": ["abw"] - }, - "application/x-ace-compressed": { - "source": "apache", - "extensions": ["ace"] - }, - "application/x-amf": { - "source": "apache" - }, - "application/x-apple-diskimage": { - "source": "apache", - "extensions": ["dmg"] - }, - "application/x-arj": { - "compressible": false, - "extensions": ["arj"] - }, - "application/x-authorware-bin": { - "source": "apache", - "extensions": ["aab","x32","u32","vox"] - }, - "application/x-authorware-map": { - "source": "apache", - "extensions": ["aam"] - }, - "application/x-authorware-seg": { - "source": "apache", - "extensions": ["aas"] - }, - "application/x-bcpio": { - "source": "apache", - "extensions": ["bcpio"] - }, - "application/x-bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/x-bittorrent": { - "source": "apache", - "extensions": ["torrent"] - }, - "application/x-blorb": { - "source": "apache", - "extensions": ["blb","blorb"] - }, - "application/x-bzip": { - "source": "apache", - "compressible": false, - "extensions": ["bz"] - }, - "application/x-bzip2": { - "source": "apache", - "compressible": false, - "extensions": ["bz2","boz"] - }, - "application/x-cbr": { - "source": "apache", - "extensions": ["cbr","cba","cbt","cbz","cb7"] - }, - "application/x-cdlink": { - "source": "apache", - "extensions": ["vcd"] - }, - "application/x-cfs-compressed": { - "source": "apache", - "extensions": ["cfs"] - }, - "application/x-chat": { - "source": "apache", - "extensions": ["chat"] - }, - "application/x-chess-pgn": { - "source": "apache", - "extensions": ["pgn"] - }, - "application/x-chrome-extension": { - "extensions": ["crx"] - }, - "application/x-cocoa": { - "source": "nginx", - "extensions": ["cco"] - }, - "application/x-compress": { - "source": "apache" - }, - "application/x-conference": { - "source": "apache", - "extensions": ["nsc"] - }, - "application/x-cpio": { - "source": "apache", - "extensions": ["cpio"] - }, - "application/x-csh": { - "source": "apache", - "extensions": ["csh"] - }, - "application/x-deb": { - "compressible": false - }, - "application/x-debian-package": { - "source": "apache", - "extensions": ["deb","udeb"] - }, - "application/x-dgc-compressed": { - "source": "apache", - "extensions": ["dgc"] - }, - "application/x-director": { - "source": "apache", - "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] - }, - "application/x-doom": { - "source": "apache", - "extensions": ["wad"] - }, - "application/x-dtbncx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ncx"] - }, - "application/x-dtbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dtb"] - }, - "application/x-dtbresource+xml": { - "source": "apache", - "compressible": true, - "extensions": ["res"] - }, - "application/x-dvi": { - "source": "apache", - "compressible": false, - "extensions": ["dvi"] - }, - "application/x-envoy": { - "source": "apache", - "extensions": ["evy"] - }, - "application/x-eva": { - "source": "apache", - "extensions": ["eva"] - }, - "application/x-font-bdf": { - "source": "apache", - "extensions": ["bdf"] - }, - "application/x-font-dos": { - "source": "apache" - }, - "application/x-font-framemaker": { - "source": "apache" - }, - "application/x-font-ghostscript": { - "source": "apache", - "extensions": ["gsf"] - }, - "application/x-font-libgrx": { - "source": "apache" - }, - "application/x-font-linux-psf": { - "source": "apache", - "extensions": ["psf"] - }, - "application/x-font-pcf": { - "source": "apache", - "extensions": ["pcf"] - }, - "application/x-font-snf": { - "source": "apache", - "extensions": ["snf"] - }, - "application/x-font-speedo": { - "source": "apache" - }, - "application/x-font-sunos-news": { - "source": "apache" - }, - "application/x-font-type1": { - "source": "apache", - "extensions": ["pfa","pfb","pfm","afm"] - }, - "application/x-font-vfont": { - "source": "apache" - }, - "application/x-freearc": { - "source": "apache", - "extensions": ["arc"] - }, - "application/x-futuresplash": { - "source": "apache", - "extensions": ["spl"] - }, - "application/x-gca-compressed": { - "source": "apache", - "extensions": ["gca"] - }, - "application/x-glulx": { - "source": "apache", - "extensions": ["ulx"] - }, - "application/x-gnumeric": { - "source": "apache", - "extensions": ["gnumeric"] - }, - "application/x-gramps-xml": { - "source": "apache", - "extensions": ["gramps"] - }, - "application/x-gtar": { - "source": "apache", - "extensions": ["gtar"] - }, - "application/x-gzip": { - "source": "apache" - }, - "application/x-hdf": { - "source": "apache", - "extensions": ["hdf"] - }, - "application/x-httpd-php": { - "compressible": true, - "extensions": ["php"] - }, - "application/x-install-instructions": { - "source": "apache", - "extensions": ["install"] - }, - "application/x-iso9660-image": { - "source": "apache", - "extensions": ["iso"] - }, - "application/x-iwork-keynote-sffkey": { - "extensions": ["key"] - }, - "application/x-iwork-numbers-sffnumbers": { - "extensions": ["numbers"] - }, - "application/x-iwork-pages-sffpages": { - "extensions": ["pages"] - }, - "application/x-java-archive-diff": { - "source": "nginx", - "extensions": ["jardiff"] - }, - "application/x-java-jnlp-file": { - "source": "apache", - "compressible": false, - "extensions": ["jnlp"] - }, - "application/x-javascript": { - "compressible": true - }, - "application/x-keepass2": { - "extensions": ["kdbx"] - }, - "application/x-latex": { - "source": "apache", - "compressible": false, - "extensions": ["latex"] - }, - "application/x-lua-bytecode": { - "extensions": ["luac"] - }, - "application/x-lzh-compressed": { - "source": "apache", - "extensions": ["lzh","lha"] - }, - "application/x-makeself": { - "source": "nginx", - "extensions": ["run"] - }, - "application/x-mie": { - "source": "apache", - "extensions": ["mie"] - }, - "application/x-mobipocket-ebook": { - "source": "apache", - "extensions": ["prc","mobi"] - }, - "application/x-mpegurl": { - "compressible": false - }, - "application/x-ms-application": { - "source": "apache", - "extensions": ["application"] - }, - "application/x-ms-shortcut": { - "source": "apache", - "extensions": ["lnk"] - }, - "application/x-ms-wmd": { - "source": "apache", - "extensions": ["wmd"] - }, - "application/x-ms-wmz": { - "source": "apache", - "extensions": ["wmz"] - }, - "application/x-ms-xbap": { - "source": "apache", - "extensions": ["xbap"] - }, - "application/x-msaccess": { - "source": "apache", - "extensions": ["mdb"] - }, - "application/x-msbinder": { - "source": "apache", - "extensions": ["obd"] - }, - "application/x-mscardfile": { - "source": "apache", - "extensions": ["crd"] - }, - "application/x-msclip": { - "source": "apache", - "extensions": ["clp"] - }, - "application/x-msdos-program": { - "extensions": ["exe"] - }, - "application/x-msdownload": { - "source": "apache", - "extensions": ["exe","dll","com","bat","msi"] - }, - "application/x-msmediaview": { - "source": "apache", - "extensions": ["mvb","m13","m14"] - }, - "application/x-msmetafile": { - "source": "apache", - "extensions": ["wmf","wmz","emf","emz"] - }, - "application/x-msmoney": { - "source": "apache", - "extensions": ["mny"] - }, - "application/x-mspublisher": { - "source": "apache", - "extensions": ["pub"] - }, - "application/x-msschedule": { - "source": "apache", - "extensions": ["scd"] - }, - "application/x-msterminal": { - "source": "apache", - "extensions": ["trm"] - }, - "application/x-mswrite": { - "source": "apache", - "extensions": ["wri"] - }, - "application/x-netcdf": { - "source": "apache", - "extensions": ["nc","cdf"] - }, - "application/x-ns-proxy-autoconfig": { - "compressible": true, - "extensions": ["pac"] - }, - "application/x-nzb": { - "source": "apache", - "extensions": ["nzb"] - }, - "application/x-perl": { - "source": "nginx", - "extensions": ["pl","pm"] - }, - "application/x-pilot": { - "source": "nginx", - "extensions": ["prc","pdb"] - }, - "application/x-pkcs12": { - "source": "apache", - "compressible": false, - "extensions": ["p12","pfx"] - }, - "application/x-pkcs7-certificates": { - "source": "apache", - "extensions": ["p7b","spc"] - }, - "application/x-pkcs7-certreqresp": { - "source": "apache", - "extensions": ["p7r"] - }, - "application/x-pki-message": { - "source": "iana" - }, - "application/x-rar-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["rar"] - }, - "application/x-redhat-package-manager": { - "source": "nginx", - "extensions": ["rpm"] - }, - "application/x-research-info-systems": { - "source": "apache", - "extensions": ["ris"] - }, - "application/x-sea": { - "source": "nginx", - "extensions": ["sea"] - }, - "application/x-sh": { - "source": "apache", - "compressible": true, - "extensions": ["sh"] - }, - "application/x-shar": { - "source": "apache", - "extensions": ["shar"] - }, - "application/x-shockwave-flash": { - "source": "apache", - "compressible": false, - "extensions": ["swf"] - }, - "application/x-silverlight-app": { - "source": "apache", - "extensions": ["xap"] - }, - "application/x-sql": { - "source": "apache", - "extensions": ["sql"] - }, - "application/x-stuffit": { - "source": "apache", - "compressible": false, - "extensions": ["sit"] - }, - "application/x-stuffitx": { - "source": "apache", - "extensions": ["sitx"] - }, - "application/x-subrip": { - "source": "apache", - "extensions": ["srt"] - }, - "application/x-sv4cpio": { - "source": "apache", - "extensions": ["sv4cpio"] - }, - "application/x-sv4crc": { - "source": "apache", - "extensions": ["sv4crc"] - }, - "application/x-t3vm-image": { - "source": "apache", - "extensions": ["t3"] - }, - "application/x-tads": { - "source": "apache", - "extensions": ["gam"] - }, - "application/x-tar": { - "source": "apache", - "compressible": true, - "extensions": ["tar"] - }, - "application/x-tcl": { - "source": "apache", - "extensions": ["tcl","tk"] - }, - "application/x-tex": { - "source": "apache", - "extensions": ["tex"] - }, - "application/x-tex-tfm": { - "source": "apache", - "extensions": ["tfm"] - }, - "application/x-texinfo": { - "source": "apache", - "extensions": ["texinfo","texi"] - }, - "application/x-tgif": { - "source": "apache", - "extensions": ["obj"] - }, - "application/x-ustar": { - "source": "apache", - "extensions": ["ustar"] - }, - "application/x-virtualbox-hdd": { - "compressible": true, - "extensions": ["hdd"] - }, - "application/x-virtualbox-ova": { - "compressible": true, - "extensions": ["ova"] - }, - "application/x-virtualbox-ovf": { - "compressible": true, - "extensions": ["ovf"] - }, - "application/x-virtualbox-vbox": { - "compressible": true, - "extensions": ["vbox"] - }, - "application/x-virtualbox-vbox-extpack": { - "compressible": false, - "extensions": ["vbox-extpack"] - }, - "application/x-virtualbox-vdi": { - "compressible": true, - "extensions": ["vdi"] - }, - "application/x-virtualbox-vhd": { - "compressible": true, - "extensions": ["vhd"] - }, - "application/x-virtualbox-vmdk": { - "compressible": true, - "extensions": ["vmdk"] - }, - "application/x-wais-source": { - "source": "apache", - "extensions": ["src"] - }, - "application/x-web-app-manifest+json": { - "compressible": true, - "extensions": ["webapp"] - }, - "application/x-www-form-urlencoded": { - "source": "iana", - "compressible": true - }, - "application/x-x509-ca-cert": { - "source": "iana", - "extensions": ["der","crt","pem"] - }, - "application/x-x509-ca-ra-cert": { - "source": "iana" - }, - "application/x-x509-next-ca-cert": { - "source": "iana" - }, - "application/x-xfig": { - "source": "apache", - "extensions": ["fig"] - }, - "application/x-xliff+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xlf"] - }, - "application/x-xpinstall": { - "source": "apache", - "compressible": false, - "extensions": ["xpi"] - }, - "application/x-xz": { - "source": "apache", - "extensions": ["xz"] - }, - "application/x-zmachine": { - "source": "apache", - "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] - }, - "application/x400-bp": { - "source": "iana" - }, - "application/xacml+xml": { - "source": "iana", - "compressible": true - }, - "application/xaml+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xaml"] - }, - "application/xcap-att+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xav"] - }, - "application/xcap-caps+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xca"] - }, - "application/xcap-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdf"] - }, - "application/xcap-el+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xel"] - }, - "application/xcap-error+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-ns+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xns"] - }, - "application/xcon-conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/xcon-conference-info-diff+xml": { - "source": "iana", - "compressible": true - }, - "application/xenc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xenc"] - }, - "application/xhtml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xhtml","xht"] - }, - "application/xhtml-voice+xml": { - "source": "apache", - "compressible": true - }, - "application/xliff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xlf"] - }, - "application/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml","xsl","xsd","rng"] - }, - "application/xml-dtd": { - "source": "iana", - "compressible": true, - "extensions": ["dtd"] - }, - "application/xml-external-parsed-entity": { - "source": "iana" - }, - "application/xml-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/xmpp+xml": { - "source": "iana", - "compressible": true - }, - "application/xop+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xop"] - }, - "application/xproc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xpl"] - }, - "application/xslt+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xsl","xslt"] - }, - "application/xspf+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xspf"] - }, - "application/xv+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mxml","xhvml","xvml","xvm"] - }, - "application/yang": { - "source": "iana", - "extensions": ["yang"] - }, - "application/yang-data+json": { - "source": "iana", - "compressible": true - }, - "application/yang-data+xml": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+json": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/yin+xml": { - "source": "iana", - "compressible": true, - "extensions": ["yin"] - }, - "application/zip": { - "source": "iana", - "compressible": false, - "extensions": ["zip"] - }, - "application/zlib": { - "source": "iana" - }, - "application/zstd": { - "source": "iana" - }, - "audio/1d-interleaved-parityfec": { - "source": "iana" - }, - "audio/32kadpcm": { - "source": "iana" - }, - "audio/3gpp": { - "source": "iana", - "compressible": false, - "extensions": ["3gpp"] - }, - "audio/3gpp2": { - "source": "iana" - }, - "audio/aac": { - "source": "iana" - }, - "audio/ac3": { - "source": "iana" - }, - "audio/adpcm": { - "source": "apache", - "extensions": ["adp"] - }, - "audio/amr": { - "source": "iana", - "extensions": ["amr"] - }, - "audio/amr-wb": { - "source": "iana" - }, - "audio/amr-wb+": { - "source": "iana" - }, - "audio/aptx": { - "source": "iana" - }, - "audio/asc": { - "source": "iana" - }, - "audio/atrac-advanced-lossless": { - "source": "iana" - }, - "audio/atrac-x": { - "source": "iana" - }, - "audio/atrac3": { - "source": "iana" - }, - "audio/basic": { - "source": "iana", - "compressible": false, - "extensions": ["au","snd"] - }, - "audio/bv16": { - "source": "iana" - }, - "audio/bv32": { - "source": "iana" - }, - "audio/clearmode": { - "source": "iana" - }, - "audio/cn": { - "source": "iana" - }, - "audio/dat12": { - "source": "iana" - }, - "audio/dls": { - "source": "iana" - }, - "audio/dsr-es201108": { - "source": "iana" - }, - "audio/dsr-es202050": { - "source": "iana" - }, - "audio/dsr-es202211": { - "source": "iana" - }, - "audio/dsr-es202212": { - "source": "iana" - }, - "audio/dv": { - "source": "iana" - }, - "audio/dvi4": { - "source": "iana" - }, - "audio/eac3": { - "source": "iana" - }, - "audio/encaprtp": { - "source": "iana" - }, - "audio/evrc": { - "source": "iana" - }, - "audio/evrc-qcp": { - "source": "iana" - }, - "audio/evrc0": { - "source": "iana" - }, - "audio/evrc1": { - "source": "iana" - }, - "audio/evrcb": { - "source": "iana" - }, - "audio/evrcb0": { - "source": "iana" - }, - "audio/evrcb1": { - "source": "iana" - }, - "audio/evrcnw": { - "source": "iana" - }, - "audio/evrcnw0": { - "source": "iana" - }, - "audio/evrcnw1": { - "source": "iana" - }, - "audio/evrcwb": { - "source": "iana" - }, - "audio/evrcwb0": { - "source": "iana" - }, - "audio/evrcwb1": { - "source": "iana" - }, - "audio/evs": { - "source": "iana" - }, - "audio/flexfec": { - "source": "iana" - }, - "audio/fwdred": { - "source": "iana" - }, - "audio/g711-0": { - "source": "iana" - }, - "audio/g719": { - "source": "iana" - }, - "audio/g722": { - "source": "iana" - }, - "audio/g7221": { - "source": "iana" - }, - "audio/g723": { - "source": "iana" - }, - "audio/g726-16": { - "source": "iana" - }, - "audio/g726-24": { - "source": "iana" - }, - "audio/g726-32": { - "source": "iana" - }, - "audio/g726-40": { - "source": "iana" - }, - "audio/g728": { - "source": "iana" - }, - "audio/g729": { - "source": "iana" - }, - "audio/g7291": { - "source": "iana" - }, - "audio/g729d": { - "source": "iana" - }, - "audio/g729e": { - "source": "iana" - }, - "audio/gsm": { - "source": "iana" - }, - "audio/gsm-efr": { - "source": "iana" - }, - "audio/gsm-hr-08": { - "source": "iana" - }, - "audio/ilbc": { - "source": "iana" - }, - "audio/ip-mr_v2.5": { - "source": "iana" - }, - "audio/isac": { - "source": "apache" - }, - "audio/l16": { - "source": "iana" - }, - "audio/l20": { - "source": "iana" - }, - "audio/l24": { - "source": "iana", - "compressible": false - }, - "audio/l8": { - "source": "iana" - }, - "audio/lpc": { - "source": "iana" - }, - "audio/melp": { - "source": "iana" - }, - "audio/melp1200": { - "source": "iana" - }, - "audio/melp2400": { - "source": "iana" - }, - "audio/melp600": { - "source": "iana" - }, - "audio/mhas": { - "source": "iana" - }, - "audio/midi": { - "source": "apache", - "extensions": ["mid","midi","kar","rmi"] - }, - "audio/mobile-xmf": { - "source": "iana", - "extensions": ["mxmf"] - }, - "audio/mp3": { - "compressible": false, - "extensions": ["mp3"] - }, - "audio/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["m4a","mp4a"] - }, - "audio/mp4a-latm": { - "source": "iana" - }, - "audio/mpa": { - "source": "iana" - }, - "audio/mpa-robust": { - "source": "iana" - }, - "audio/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] - }, - "audio/mpeg4-generic": { - "source": "iana" - }, - "audio/musepack": { - "source": "apache" - }, - "audio/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["oga","ogg","spx","opus"] - }, - "audio/opus": { - "source": "iana" - }, - "audio/parityfec": { - "source": "iana" - }, - "audio/pcma": { - "source": "iana" - }, - "audio/pcma-wb": { - "source": "iana" - }, - "audio/pcmu": { - "source": "iana" - }, - "audio/pcmu-wb": { - "source": "iana" - }, - "audio/prs.sid": { - "source": "iana" - }, - "audio/qcelp": { - "source": "iana" - }, - "audio/raptorfec": { - "source": "iana" - }, - "audio/red": { - "source": "iana" - }, - "audio/rtp-enc-aescm128": { - "source": "iana" - }, - "audio/rtp-midi": { - "source": "iana" - }, - "audio/rtploopback": { - "source": "iana" - }, - "audio/rtx": { - "source": "iana" - }, - "audio/s3m": { - "source": "apache", - "extensions": ["s3m"] - }, - "audio/scip": { - "source": "iana" - }, - "audio/silk": { - "source": "apache", - "extensions": ["sil"] - }, - "audio/smv": { - "source": "iana" - }, - "audio/smv-qcp": { - "source": "iana" - }, - "audio/smv0": { - "source": "iana" - }, - "audio/sofa": { - "source": "iana" - }, - "audio/sp-midi": { - "source": "iana" - }, - "audio/speex": { - "source": "iana" - }, - "audio/t140c": { - "source": "iana" - }, - "audio/t38": { - "source": "iana" - }, - "audio/telephone-event": { - "source": "iana" - }, - "audio/tetra_acelp": { - "source": "iana" - }, - "audio/tetra_acelp_bb": { - "source": "iana" - }, - "audio/tone": { - "source": "iana" - }, - "audio/tsvcis": { - "source": "iana" - }, - "audio/uemclip": { - "source": "iana" - }, - "audio/ulpfec": { - "source": "iana" - }, - "audio/usac": { - "source": "iana" - }, - "audio/vdvi": { - "source": "iana" - }, - "audio/vmr-wb": { - "source": "iana" - }, - "audio/vnd.3gpp.iufp": { - "source": "iana" - }, - "audio/vnd.4sb": { - "source": "iana" - }, - "audio/vnd.audiokoz": { - "source": "iana" - }, - "audio/vnd.celp": { - "source": "iana" - }, - "audio/vnd.cisco.nse": { - "source": "iana" - }, - "audio/vnd.cmles.radio-events": { - "source": "iana" - }, - "audio/vnd.cns.anp1": { - "source": "iana" - }, - "audio/vnd.cns.inf1": { - "source": "iana" - }, - "audio/vnd.dece.audio": { - "source": "iana", - "extensions": ["uva","uvva"] - }, - "audio/vnd.digital-winds": { - "source": "iana", - "extensions": ["eol"] - }, - "audio/vnd.dlna.adts": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.1": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.2": { - "source": "iana" - }, - "audio/vnd.dolby.mlp": { - "source": "iana" - }, - "audio/vnd.dolby.mps": { - "source": "iana" - }, - "audio/vnd.dolby.pl2": { - "source": "iana" - }, - "audio/vnd.dolby.pl2x": { - "source": "iana" - }, - "audio/vnd.dolby.pl2z": { - "source": "iana" - }, - "audio/vnd.dolby.pulse.1": { - "source": "iana" - }, - "audio/vnd.dra": { - "source": "iana", - "extensions": ["dra"] - }, - "audio/vnd.dts": { - "source": "iana", - "extensions": ["dts"] - }, - "audio/vnd.dts.hd": { - "source": "iana", - "extensions": ["dtshd"] - }, - "audio/vnd.dts.uhd": { - "source": "iana" - }, - "audio/vnd.dvb.file": { - "source": "iana" - }, - "audio/vnd.everad.plj": { - "source": "iana" - }, - "audio/vnd.hns.audio": { - "source": "iana" - }, - "audio/vnd.lucent.voice": { - "source": "iana", - "extensions": ["lvp"] - }, - "audio/vnd.ms-playready.media.pya": { - "source": "iana", - "extensions": ["pya"] - }, - "audio/vnd.nokia.mobile-xmf": { - "source": "iana" - }, - "audio/vnd.nortel.vbk": { - "source": "iana" - }, - "audio/vnd.nuera.ecelp4800": { - "source": "iana", - "extensions": ["ecelp4800"] - }, - "audio/vnd.nuera.ecelp7470": { - "source": "iana", - "extensions": ["ecelp7470"] - }, - "audio/vnd.nuera.ecelp9600": { - "source": "iana", - "extensions": ["ecelp9600"] - }, - "audio/vnd.octel.sbc": { - "source": "iana" - }, - "audio/vnd.presonus.multitrack": { - "source": "iana" - }, - "audio/vnd.qcelp": { - "source": "iana" - }, - "audio/vnd.rhetorex.32kadpcm": { - "source": "iana" - }, - "audio/vnd.rip": { - "source": "iana", - "extensions": ["rip"] - }, - "audio/vnd.rn-realaudio": { - "compressible": false - }, - "audio/vnd.sealedmedia.softseal.mpeg": { - "source": "iana" - }, - "audio/vnd.vmx.cvsd": { - "source": "iana" - }, - "audio/vnd.wave": { - "compressible": false - }, - "audio/vorbis": { - "source": "iana", - "compressible": false - }, - "audio/vorbis-config": { - "source": "iana" - }, - "audio/wav": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/wave": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/webm": { - "source": "apache", - "compressible": false, - "extensions": ["weba"] - }, - "audio/x-aac": { - "source": "apache", - "compressible": false, - "extensions": ["aac"] - }, - "audio/x-aiff": { - "source": "apache", - "extensions": ["aif","aiff","aifc"] - }, - "audio/x-caf": { - "source": "apache", - "compressible": false, - "extensions": ["caf"] - }, - "audio/x-flac": { - "source": "apache", - "extensions": ["flac"] - }, - "audio/x-m4a": { - "source": "nginx", - "extensions": ["m4a"] - }, - "audio/x-matroska": { - "source": "apache", - "extensions": ["mka"] - }, - "audio/x-mpegurl": { - "source": "apache", - "extensions": ["m3u"] - }, - "audio/x-ms-wax": { - "source": "apache", - "extensions": ["wax"] - }, - "audio/x-ms-wma": { - "source": "apache", - "extensions": ["wma"] - }, - "audio/x-pn-realaudio": { - "source": "apache", - "extensions": ["ram","ra"] - }, - "audio/x-pn-realaudio-plugin": { - "source": "apache", - "extensions": ["rmp"] - }, - "audio/x-realaudio": { - "source": "nginx", - "extensions": ["ra"] - }, - "audio/x-tta": { - "source": "apache" - }, - "audio/x-wav": { - "source": "apache", - "extensions": ["wav"] - }, - "audio/xm": { - "source": "apache", - "extensions": ["xm"] - }, - "chemical/x-cdx": { - "source": "apache", - "extensions": ["cdx"] - }, - "chemical/x-cif": { - "source": "apache", - "extensions": ["cif"] - }, - "chemical/x-cmdf": { - "source": "apache", - "extensions": ["cmdf"] - }, - "chemical/x-cml": { - "source": "apache", - "extensions": ["cml"] - }, - "chemical/x-csml": { - "source": "apache", - "extensions": ["csml"] - }, - "chemical/x-pdb": { - "source": "apache" - }, - "chemical/x-xyz": { - "source": "apache", - "extensions": ["xyz"] - }, - "font/collection": { - "source": "iana", - "extensions": ["ttc"] - }, - "font/otf": { - "source": "iana", - "compressible": true, - "extensions": ["otf"] - }, - "font/sfnt": { - "source": "iana" - }, - "font/ttf": { - "source": "iana", - "compressible": true, - "extensions": ["ttf"] - }, - "font/woff": { - "source": "iana", - "extensions": ["woff"] - }, - "font/woff2": { - "source": "iana", - "extensions": ["woff2"] - }, - "image/aces": { - "source": "iana", - "extensions": ["exr"] - }, - "image/apng": { - "compressible": false, - "extensions": ["apng"] - }, - "image/avci": { - "source": "iana", - "extensions": ["avci"] - }, - "image/avcs": { - "source": "iana", - "extensions": ["avcs"] - }, - "image/avif": { - "source": "iana", - "compressible": false, - "extensions": ["avif"] - }, - "image/bmp": { - "source": "iana", - "compressible": true, - "extensions": ["bmp"] - }, - "image/cgm": { - "source": "iana", - "extensions": ["cgm"] - }, - "image/dicom-rle": { - "source": "iana", - "extensions": ["drle"] - }, - "image/emf": { - "source": "iana", - "extensions": ["emf"] - }, - "image/fits": { - "source": "iana", - "extensions": ["fits"] - }, - "image/g3fax": { - "source": "iana", - "extensions": ["g3"] - }, - "image/gif": { - "source": "iana", - "compressible": false, - "extensions": ["gif"] - }, - "image/heic": { - "source": "iana", - "extensions": ["heic"] - }, - "image/heic-sequence": { - "source": "iana", - "extensions": ["heics"] - }, - "image/heif": { - "source": "iana", - "extensions": ["heif"] - }, - "image/heif-sequence": { - "source": "iana", - "extensions": ["heifs"] - }, - "image/hej2k": { - "source": "iana", - "extensions": ["hej2"] - }, - "image/hsj2": { - "source": "iana", - "extensions": ["hsj2"] - }, - "image/ief": { - "source": "iana", - "extensions": ["ief"] - }, - "image/jls": { - "source": "iana", - "extensions": ["jls"] - }, - "image/jp2": { - "source": "iana", - "compressible": false, - "extensions": ["jp2","jpg2"] - }, - "image/jpeg": { - "source": "iana", - "compressible": false, - "extensions": ["jpeg","jpg","jpe"] - }, - "image/jph": { - "source": "iana", - "extensions": ["jph"] - }, - "image/jphc": { - "source": "iana", - "extensions": ["jhc"] - }, - "image/jpm": { - "source": "iana", - "compressible": false, - "extensions": ["jpm"] - }, - "image/jpx": { - "source": "iana", - "compressible": false, - "extensions": ["jpx","jpf"] - }, - "image/jxr": { - "source": "iana", - "extensions": ["jxr"] - }, - "image/jxra": { - "source": "iana", - "extensions": ["jxra"] - }, - "image/jxrs": { - "source": "iana", - "extensions": ["jxrs"] - }, - "image/jxs": { - "source": "iana", - "extensions": ["jxs"] - }, - "image/jxsc": { - "source": "iana", - "extensions": ["jxsc"] - }, - "image/jxsi": { - "source": "iana", - "extensions": ["jxsi"] - }, - "image/jxss": { - "source": "iana", - "extensions": ["jxss"] - }, - "image/ktx": { - "source": "iana", - "extensions": ["ktx"] - }, - "image/ktx2": { - "source": "iana", - "extensions": ["ktx2"] - }, - "image/naplps": { - "source": "iana" - }, - "image/pjpeg": { - "compressible": false - }, - "image/png": { - "source": "iana", - "compressible": false, - "extensions": ["png"] - }, - "image/prs.btif": { - "source": "iana", - "extensions": ["btif"] - }, - "image/prs.pti": { - "source": "iana", - "extensions": ["pti"] - }, - "image/pwg-raster": { - "source": "iana" - }, - "image/sgi": { - "source": "apache", - "extensions": ["sgi"] - }, - "image/svg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["svg","svgz"] - }, - "image/t38": { - "source": "iana", - "extensions": ["t38"] - }, - "image/tiff": { - "source": "iana", - "compressible": false, - "extensions": ["tif","tiff"] - }, - "image/tiff-fx": { - "source": "iana", - "extensions": ["tfx"] - }, - "image/vnd.adobe.photoshop": { - "source": "iana", - "compressible": true, - "extensions": ["psd"] - }, - "image/vnd.airzip.accelerator.azv": { - "source": "iana", - "extensions": ["azv"] - }, - "image/vnd.cns.inf2": { - "source": "iana" - }, - "image/vnd.dece.graphic": { - "source": "iana", - "extensions": ["uvi","uvvi","uvg","uvvg"] - }, - "image/vnd.djvu": { - "source": "iana", - "extensions": ["djvu","djv"] - }, - "image/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "image/vnd.dwg": { - "source": "iana", - "extensions": ["dwg"] - }, - "image/vnd.dxf": { - "source": "iana", - "extensions": ["dxf"] - }, - "image/vnd.fastbidsheet": { - "source": "iana", - "extensions": ["fbs"] - }, - "image/vnd.fpx": { - "source": "iana", - "extensions": ["fpx"] - }, - "image/vnd.fst": { - "source": "iana", - "extensions": ["fst"] - }, - "image/vnd.fujixerox.edmics-mmr": { - "source": "iana", - "extensions": ["mmr"] - }, - "image/vnd.fujixerox.edmics-rlc": { - "source": "iana", - "extensions": ["rlc"] - }, - "image/vnd.globalgraphics.pgb": { - "source": "iana" - }, - "image/vnd.microsoft.icon": { - "source": "iana", - "compressible": true, - "extensions": ["ico"] - }, - "image/vnd.mix": { - "source": "iana" - }, - "image/vnd.mozilla.apng": { - "source": "iana" - }, - "image/vnd.ms-dds": { - "compressible": true, - "extensions": ["dds"] - }, - "image/vnd.ms-modi": { - "source": "iana", - "extensions": ["mdi"] - }, - "image/vnd.ms-photo": { - "source": "apache", - "extensions": ["wdp"] - }, - "image/vnd.net-fpx": { - "source": "iana", - "extensions": ["npx"] - }, - "image/vnd.pco.b16": { - "source": "iana", - "extensions": ["b16"] - }, - "image/vnd.radiance": { - "source": "iana" - }, - "image/vnd.sealed.png": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.gif": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.jpg": { - "source": "iana" - }, - "image/vnd.svf": { - "source": "iana" - }, - "image/vnd.tencent.tap": { - "source": "iana", - "extensions": ["tap"] - }, - "image/vnd.valve.source.texture": { - "source": "iana", - "extensions": ["vtf"] - }, - "image/vnd.wap.wbmp": { - "source": "iana", - "extensions": ["wbmp"] - }, - "image/vnd.xiff": { - "source": "iana", - "extensions": ["xif"] - }, - "image/vnd.zbrush.pcx": { - "source": "iana", - "extensions": ["pcx"] - }, - "image/webp": { - "source": "apache", - "extensions": ["webp"] - }, - "image/wmf": { - "source": "iana", - "extensions": ["wmf"] - }, - "image/x-3ds": { - "source": "apache", - "extensions": ["3ds"] - }, - "image/x-cmu-raster": { - "source": "apache", - "extensions": ["ras"] - }, - "image/x-cmx": { - "source": "apache", - "extensions": ["cmx"] - }, - "image/x-freehand": { - "source": "apache", - "extensions": ["fh","fhc","fh4","fh5","fh7"] - }, - "image/x-icon": { - "source": "apache", - "compressible": true, - "extensions": ["ico"] - }, - "image/x-jng": { - "source": "nginx", - "extensions": ["jng"] - }, - "image/x-mrsid-image": { - "source": "apache", - "extensions": ["sid"] - }, - "image/x-ms-bmp": { - "source": "nginx", - "compressible": true, - "extensions": ["bmp"] - }, - "image/x-pcx": { - "source": "apache", - "extensions": ["pcx"] - }, - "image/x-pict": { - "source": "apache", - "extensions": ["pic","pct"] - }, - "image/x-portable-anymap": { - "source": "apache", - "extensions": ["pnm"] - }, - "image/x-portable-bitmap": { - "source": "apache", - "extensions": ["pbm"] - }, - "image/x-portable-graymap": { - "source": "apache", - "extensions": ["pgm"] - }, - "image/x-portable-pixmap": { - "source": "apache", - "extensions": ["ppm"] - }, - "image/x-rgb": { - "source": "apache", - "extensions": ["rgb"] - }, - "image/x-tga": { - "source": "apache", - "extensions": ["tga"] - }, - "image/x-xbitmap": { - "source": "apache", - "extensions": ["xbm"] - }, - "image/x-xcf": { - "compressible": false - }, - "image/x-xpixmap": { - "source": "apache", - "extensions": ["xpm"] - }, - "image/x-xwindowdump": { - "source": "apache", - "extensions": ["xwd"] - }, - "message/cpim": { - "source": "iana" - }, - "message/delivery-status": { - "source": "iana" - }, - "message/disposition-notification": { - "source": "iana", - "extensions": [ - "disposition-notification" - ] - }, - "message/external-body": { - "source": "iana" - }, - "message/feedback-report": { - "source": "iana" - }, - "message/global": { - "source": "iana", - "extensions": ["u8msg"] - }, - "message/global-delivery-status": { - "source": "iana", - "extensions": ["u8dsn"] - }, - "message/global-disposition-notification": { - "source": "iana", - "extensions": ["u8mdn"] - }, - "message/global-headers": { - "source": "iana", - "extensions": ["u8hdr"] - }, - "message/http": { - "source": "iana", - "compressible": false - }, - "message/imdn+xml": { - "source": "iana", - "compressible": true - }, - "message/news": { - "source": "iana" - }, - "message/partial": { - "source": "iana", - "compressible": false - }, - "message/rfc822": { - "source": "iana", - "compressible": true, - "extensions": ["eml","mime"] - }, - "message/s-http": { - "source": "iana" - }, - "message/sip": { - "source": "iana" - }, - "message/sipfrag": { - "source": "iana" - }, - "message/tracking-status": { - "source": "iana" - }, - "message/vnd.si.simp": { - "source": "iana" - }, - "message/vnd.wfa.wsc": { - "source": "iana", - "extensions": ["wsc"] - }, - "model/3mf": { - "source": "iana", - "extensions": ["3mf"] - }, - "model/e57": { - "source": "iana" - }, - "model/gltf+json": { - "source": "iana", - "compressible": true, - "extensions": ["gltf"] - }, - "model/gltf-binary": { - "source": "iana", - "compressible": true, - "extensions": ["glb"] - }, - "model/iges": { - "source": "iana", - "compressible": false, - "extensions": ["igs","iges"] - }, - "model/mesh": { - "source": "iana", - "compressible": false, - "extensions": ["msh","mesh","silo"] - }, - "model/mtl": { - "source": "iana", - "extensions": ["mtl"] - }, - "model/obj": { - "source": "iana", - "extensions": ["obj"] - }, - "model/step": { - "source": "iana" - }, - "model/step+xml": { - "source": "iana", - "compressible": true, - "extensions": ["stpx"] - }, - "model/step+zip": { - "source": "iana", - "compressible": false, - "extensions": ["stpz"] - }, - "model/step-xml+zip": { - "source": "iana", - "compressible": false, - "extensions": ["stpxz"] - }, - "model/stl": { - "source": "iana", - "extensions": ["stl"] - }, - "model/vnd.collada+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dae"] - }, - "model/vnd.dwf": { - "source": "iana", - "extensions": ["dwf"] - }, - "model/vnd.flatland.3dml": { - "source": "iana" - }, - "model/vnd.gdl": { - "source": "iana", - "extensions": ["gdl"] - }, - "model/vnd.gs-gdl": { - "source": "apache" - }, - "model/vnd.gs.gdl": { - "source": "iana" - }, - "model/vnd.gtw": { - "source": "iana", - "extensions": ["gtw"] - }, - "model/vnd.moml+xml": { - "source": "iana", - "compressible": true - }, - "model/vnd.mts": { - "source": "iana", - "extensions": ["mts"] - }, - "model/vnd.opengex": { - "source": "iana", - "extensions": ["ogex"] - }, - "model/vnd.parasolid.transmit.binary": { - "source": "iana", - "extensions": ["x_b"] - }, - "model/vnd.parasolid.transmit.text": { - "source": "iana", - "extensions": ["x_t"] - }, - "model/vnd.pytha.pyox": { - "source": "iana" - }, - "model/vnd.rosette.annotated-data-model": { - "source": "iana" - }, - "model/vnd.sap.vds": { - "source": "iana", - "extensions": ["vds"] - }, - "model/vnd.usdz+zip": { - "source": "iana", - "compressible": false, - "extensions": ["usdz"] - }, - "model/vnd.valve.source.compiled-map": { - "source": "iana", - "extensions": ["bsp"] - }, - "model/vnd.vtu": { - "source": "iana", - "extensions": ["vtu"] - }, - "model/vrml": { - "source": "iana", - "compressible": false, - "extensions": ["wrl","vrml"] - }, - "model/x3d+binary": { - "source": "apache", - "compressible": false, - "extensions": ["x3db","x3dbz"] - }, - "model/x3d+fastinfoset": { - "source": "iana", - "extensions": ["x3db"] - }, - "model/x3d+vrml": { - "source": "apache", - "compressible": false, - "extensions": ["x3dv","x3dvz"] - }, - "model/x3d+xml": { - "source": "iana", - "compressible": true, - "extensions": ["x3d","x3dz"] - }, - "model/x3d-vrml": { - "source": "iana", - "extensions": ["x3dv"] - }, - "multipart/alternative": { - "source": "iana", - "compressible": false - }, - "multipart/appledouble": { - "source": "iana" - }, - "multipart/byteranges": { - "source": "iana" - }, - "multipart/digest": { - "source": "iana" - }, - "multipart/encrypted": { - "source": "iana", - "compressible": false - }, - "multipart/form-data": { - "source": "iana", - "compressible": false - }, - "multipart/header-set": { - "source": "iana" - }, - "multipart/mixed": { - "source": "iana" - }, - "multipart/multilingual": { - "source": "iana" - }, - "multipart/parallel": { - "source": "iana" - }, - "multipart/related": { - "source": "iana", - "compressible": false - }, - "multipart/report": { - "source": "iana" - }, - "multipart/signed": { - "source": "iana", - "compressible": false - }, - "multipart/vnd.bint.med-plus": { - "source": "iana" - }, - "multipart/voice-message": { - "source": "iana" - }, - "multipart/x-mixed-replace": { - "source": "iana" - }, - "text/1d-interleaved-parityfec": { - "source": "iana" - }, - "text/cache-manifest": { - "source": "iana", - "compressible": true, - "extensions": ["appcache","manifest"] - }, - "text/calendar": { - "source": "iana", - "extensions": ["ics","ifb"] - }, - "text/calender": { - "compressible": true - }, - "text/cmd": { - "compressible": true - }, - "text/coffeescript": { - "extensions": ["coffee","litcoffee"] - }, - "text/cql": { - "source": "iana" - }, - "text/cql-expression": { - "source": "iana" - }, - "text/cql-identifier": { - "source": "iana" - }, - "text/css": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["css"] - }, - "text/csv": { - "source": "iana", - "compressible": true, - "extensions": ["csv"] - }, - "text/csv-schema": { - "source": "iana" - }, - "text/directory": { - "source": "iana" - }, - "text/dns": { - "source": "iana" - }, - "text/ecmascript": { - "source": "iana" - }, - "text/encaprtp": { - "source": "iana" - }, - "text/enriched": { - "source": "iana" - }, - "text/fhirpath": { - "source": "iana" - }, - "text/flexfec": { - "source": "iana" - }, - "text/fwdred": { - "source": "iana" - }, - "text/gff3": { - "source": "iana" - }, - "text/grammar-ref-list": { - "source": "iana" - }, - "text/html": { - "source": "iana", - "compressible": true, - "extensions": ["html","htm","shtml"] - }, - "text/jade": { - "extensions": ["jade"] - }, - "text/javascript": { - "source": "iana", - "compressible": true - }, - "text/jcr-cnd": { - "source": "iana" - }, - "text/jsx": { - "compressible": true, - "extensions": ["jsx"] - }, - "text/less": { - "compressible": true, - "extensions": ["less"] - }, - "text/markdown": { - "source": "iana", - "compressible": true, - "extensions": ["markdown","md"] - }, - "text/mathml": { - "source": "nginx", - "extensions": ["mml"] - }, - "text/mdx": { - "compressible": true, - "extensions": ["mdx"] - }, - "text/mizar": { - "source": "iana" - }, - "text/n3": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["n3"] - }, - "text/parameters": { - "source": "iana", - "charset": "UTF-8" - }, - "text/parityfec": { - "source": "iana" - }, - "text/plain": { - "source": "iana", - "compressible": true, - "extensions": ["txt","text","conf","def","list","log","in","ini"] - }, - "text/provenance-notation": { - "source": "iana", - "charset": "UTF-8" - }, - "text/prs.fallenstein.rst": { - "source": "iana" - }, - "text/prs.lines.tag": { - "source": "iana", - "extensions": ["dsc"] - }, - "text/prs.prop.logic": { - "source": "iana" - }, - "text/raptorfec": { - "source": "iana" - }, - "text/red": { - "source": "iana" - }, - "text/rfc822-headers": { - "source": "iana" - }, - "text/richtext": { - "source": "iana", - "compressible": true, - "extensions": ["rtx"] - }, - "text/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "text/rtp-enc-aescm128": { - "source": "iana" - }, - "text/rtploopback": { - "source": "iana" - }, - "text/rtx": { - "source": "iana" - }, - "text/sgml": { - "source": "iana", - "extensions": ["sgml","sgm"] - }, - "text/shaclc": { - "source": "iana" - }, - "text/shex": { - "source": "iana", - "extensions": ["shex"] - }, - "text/slim": { - "extensions": ["slim","slm"] - }, - "text/spdx": { - "source": "iana", - "extensions": ["spdx"] - }, - "text/strings": { - "source": "iana" - }, - "text/stylus": { - "extensions": ["stylus","styl"] - }, - "text/t140": { - "source": "iana" - }, - "text/tab-separated-values": { - "source": "iana", - "compressible": true, - "extensions": ["tsv"] - }, - "text/troff": { - "source": "iana", - "extensions": ["t","tr","roff","man","me","ms"] - }, - "text/turtle": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["ttl"] - }, - "text/ulpfec": { - "source": "iana" - }, - "text/uri-list": { - "source": "iana", - "compressible": true, - "extensions": ["uri","uris","urls"] - }, - "text/vcard": { - "source": "iana", - "compressible": true, - "extensions": ["vcard"] - }, - "text/vnd.a": { - "source": "iana" - }, - "text/vnd.abc": { - "source": "iana" - }, - "text/vnd.ascii-art": { - "source": "iana" - }, - "text/vnd.curl": { - "source": "iana", - "extensions": ["curl"] - }, - "text/vnd.curl.dcurl": { - "source": "apache", - "extensions": ["dcurl"] - }, - "text/vnd.curl.mcurl": { - "source": "apache", - "extensions": ["mcurl"] - }, - "text/vnd.curl.scurl": { - "source": "apache", - "extensions": ["scurl"] - }, - "text/vnd.debian.copyright": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.dmclientscript": { - "source": "iana" - }, - "text/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "text/vnd.esmertec.theme-descriptor": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.familysearch.gedcom": { - "source": "iana", - "extensions": ["ged"] - }, - "text/vnd.ficlab.flt": { - "source": "iana" - }, - "text/vnd.fly": { - "source": "iana", - "extensions": ["fly"] - }, - "text/vnd.fmi.flexstor": { - "source": "iana", - "extensions": ["flx"] - }, - "text/vnd.gml": { - "source": "iana" - }, - "text/vnd.graphviz": { - "source": "iana", - "extensions": ["gv"] - }, - "text/vnd.hans": { - "source": "iana" - }, - "text/vnd.hgl": { - "source": "iana" - }, - "text/vnd.in3d.3dml": { - "source": "iana", - "extensions": ["3dml"] - }, - "text/vnd.in3d.spot": { - "source": "iana", - "extensions": ["spot"] - }, - "text/vnd.iptc.newsml": { - "source": "iana" - }, - "text/vnd.iptc.nitf": { - "source": "iana" - }, - "text/vnd.latex-z": { - "source": "iana" - }, - "text/vnd.motorola.reflex": { - "source": "iana" - }, - "text/vnd.ms-mediapackage": { - "source": "iana" - }, - "text/vnd.net2phone.commcenter.command": { - "source": "iana" - }, - "text/vnd.radisys.msml-basic-layout": { - "source": "iana" - }, - "text/vnd.senx.warpscript": { - "source": "iana" - }, - "text/vnd.si.uricatalogue": { - "source": "iana" - }, - "text/vnd.sosi": { - "source": "iana" - }, - "text/vnd.sun.j2me.app-descriptor": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["jad"] - }, - "text/vnd.trolltech.linguist": { - "source": "iana", - "charset": "UTF-8" - }, - "text/vnd.wap.si": { - "source": "iana" - }, - "text/vnd.wap.sl": { - "source": "iana" - }, - "text/vnd.wap.wml": { - "source": "iana", - "extensions": ["wml"] - }, - "text/vnd.wap.wmlscript": { - "source": "iana", - "extensions": ["wmls"] - }, - "text/vtt": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["vtt"] - }, - "text/x-asm": { - "source": "apache", - "extensions": ["s","asm"] - }, - "text/x-c": { - "source": "apache", - "extensions": ["c","cc","cxx","cpp","h","hh","dic"] - }, - "text/x-component": { - "source": "nginx", - "extensions": ["htc"] - }, - "text/x-fortran": { - "source": "apache", - "extensions": ["f","for","f77","f90"] - }, - "text/x-gwt-rpc": { - "compressible": true - }, - "text/x-handlebars-template": { - "extensions": ["hbs"] - }, - "text/x-java-source": { - "source": "apache", - "extensions": ["java"] - }, - "text/x-jquery-tmpl": { - "compressible": true - }, - "text/x-lua": { - "extensions": ["lua"] - }, - "text/x-markdown": { - "compressible": true, - "extensions": ["mkd"] - }, - "text/x-nfo": { - "source": "apache", - "extensions": ["nfo"] - }, - "text/x-opml": { - "source": "apache", - "extensions": ["opml"] - }, - "text/x-org": { - "compressible": true, - "extensions": ["org"] - }, - "text/x-pascal": { - "source": "apache", - "extensions": ["p","pas"] - }, - "text/x-processing": { - "compressible": true, - "extensions": ["pde"] - }, - "text/x-sass": { - "extensions": ["sass"] - }, - "text/x-scss": { - "extensions": ["scss"] - }, - "text/x-setext": { - "source": "apache", - "extensions": ["etx"] - }, - "text/x-sfv": { - "source": "apache", - "extensions": ["sfv"] - }, - "text/x-suse-ymp": { - "compressible": true, - "extensions": ["ymp"] - }, - "text/x-uuencode": { - "source": "apache", - "extensions": ["uu"] - }, - "text/x-vcalendar": { - "source": "apache", - "extensions": ["vcs"] - }, - "text/x-vcard": { - "source": "apache", - "extensions": ["vcf"] - }, - "text/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml"] - }, - "text/xml-external-parsed-entity": { - "source": "iana" - }, - "text/yaml": { - "compressible": true, - "extensions": ["yaml","yml"] - }, - "video/1d-interleaved-parityfec": { - "source": "iana" - }, - "video/3gpp": { - "source": "iana", - "extensions": ["3gp","3gpp"] - }, - "video/3gpp-tt": { - "source": "iana" - }, - "video/3gpp2": { - "source": "iana", - "extensions": ["3g2"] - }, - "video/av1": { - "source": "iana" - }, - "video/bmpeg": { - "source": "iana" - }, - "video/bt656": { - "source": "iana" - }, - "video/celb": { - "source": "iana" - }, - "video/dv": { - "source": "iana" - }, - "video/encaprtp": { - "source": "iana" - }, - "video/ffv1": { - "source": "iana" - }, - "video/flexfec": { - "source": "iana" - }, - "video/h261": { - "source": "iana", - "extensions": ["h261"] - }, - "video/h263": { - "source": "iana", - "extensions": ["h263"] - }, - "video/h263-1998": { - "source": "iana" - }, - "video/h263-2000": { - "source": "iana" - }, - "video/h264": { - "source": "iana", - "extensions": ["h264"] - }, - "video/h264-rcdo": { - "source": "iana" - }, - "video/h264-svc": { - "source": "iana" - }, - "video/h265": { - "source": "iana" - }, - "video/iso.segment": { - "source": "iana", - "extensions": ["m4s"] - }, - "video/jpeg": { - "source": "iana", - "extensions": ["jpgv"] - }, - "video/jpeg2000": { - "source": "iana" - }, - "video/jpm": { - "source": "apache", - "extensions": ["jpm","jpgm"] - }, - "video/jxsv": { - "source": "iana" - }, - "video/mj2": { - "source": "iana", - "extensions": ["mj2","mjp2"] - }, - "video/mp1s": { - "source": "iana" - }, - "video/mp2p": { - "source": "iana" - }, - "video/mp2t": { - "source": "iana", - "extensions": ["ts"] - }, - "video/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["mp4","mp4v","mpg4"] - }, - "video/mp4v-es": { - "source": "iana" - }, - "video/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpeg","mpg","mpe","m1v","m2v"] - }, - "video/mpeg4-generic": { - "source": "iana" - }, - "video/mpv": { - "source": "iana" - }, - "video/nv": { - "source": "iana" - }, - "video/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogv"] - }, - "video/parityfec": { - "source": "iana" - }, - "video/pointer": { - "source": "iana" - }, - "video/quicktime": { - "source": "iana", - "compressible": false, - "extensions": ["qt","mov"] - }, - "video/raptorfec": { - "source": "iana" - }, - "video/raw": { - "source": "iana" - }, - "video/rtp-enc-aescm128": { - "source": "iana" - }, - "video/rtploopback": { - "source": "iana" - }, - "video/rtx": { - "source": "iana" - }, - "video/scip": { - "source": "iana" - }, - "video/smpte291": { - "source": "iana" - }, - "video/smpte292m": { - "source": "iana" - }, - "video/ulpfec": { - "source": "iana" - }, - "video/vc1": { - "source": "iana" - }, - "video/vc2": { - "source": "iana" - }, - "video/vnd.cctv": { - "source": "iana" - }, - "video/vnd.dece.hd": { - "source": "iana", - "extensions": ["uvh","uvvh"] - }, - "video/vnd.dece.mobile": { - "source": "iana", - "extensions": ["uvm","uvvm"] - }, - "video/vnd.dece.mp4": { - "source": "iana" - }, - "video/vnd.dece.pd": { - "source": "iana", - "extensions": ["uvp","uvvp"] - }, - "video/vnd.dece.sd": { - "source": "iana", - "extensions": ["uvs","uvvs"] - }, - "video/vnd.dece.video": { - "source": "iana", - "extensions": ["uvv","uvvv"] - }, - "video/vnd.directv.mpeg": { - "source": "iana" - }, - "video/vnd.directv.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dlna.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dvb.file": { - "source": "iana", - "extensions": ["dvb"] - }, - "video/vnd.fvt": { - "source": "iana", - "extensions": ["fvt"] - }, - "video/vnd.hns.video": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsavc": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsmpeg2": { - "source": "iana" - }, - "video/vnd.motorola.video": { - "source": "iana" - }, - "video/vnd.motorola.videop": { - "source": "iana" - }, - "video/vnd.mpegurl": { - "source": "iana", - "extensions": ["mxu","m4u"] - }, - "video/vnd.ms-playready.media.pyv": { - "source": "iana", - "extensions": ["pyv"] - }, - "video/vnd.nokia.interleaved-multimedia": { - "source": "iana" - }, - "video/vnd.nokia.mp4vr": { - "source": "iana" - }, - "video/vnd.nokia.videovoip": { - "source": "iana" - }, - "video/vnd.objectvideo": { - "source": "iana" - }, - "video/vnd.radgamettools.bink": { - "source": "iana" - }, - "video/vnd.radgamettools.smacker": { - "source": "iana" - }, - "video/vnd.sealed.mpeg1": { - "source": "iana" - }, - "video/vnd.sealed.mpeg4": { - "source": "iana" - }, - "video/vnd.sealed.swf": { - "source": "iana" - }, - "video/vnd.sealedmedia.softseal.mov": { - "source": "iana" - }, - "video/vnd.uvvu.mp4": { - "source": "iana", - "extensions": ["uvu","uvvu"] - }, - "video/vnd.vivo": { - "source": "iana", - "extensions": ["viv"] - }, - "video/vnd.youtube.yt": { - "source": "iana" - }, - "video/vp8": { - "source": "iana" - }, - "video/vp9": { - "source": "iana" - }, - "video/webm": { - "source": "apache", - "compressible": false, - "extensions": ["webm"] - }, - "video/x-f4v": { - "source": "apache", - "extensions": ["f4v"] - }, - "video/x-fli": { - "source": "apache", - "extensions": ["fli"] - }, - "video/x-flv": { - "source": "apache", - "compressible": false, - "extensions": ["flv"] - }, - "video/x-m4v": { - "source": "apache", - "extensions": ["m4v"] - }, - "video/x-matroska": { - "source": "apache", - "compressible": false, - "extensions": ["mkv","mk3d","mks"] - }, - "video/x-mng": { - "source": "apache", - "extensions": ["mng"] - }, - "video/x-ms-asf": { - "source": "apache", - "extensions": ["asf","asx"] - }, - "video/x-ms-vob": { - "source": "apache", - "extensions": ["vob"] - }, - "video/x-ms-wm": { - "source": "apache", - "extensions": ["wm"] - }, - "video/x-ms-wmv": { - "source": "apache", - "compressible": false, - "extensions": ["wmv"] - }, - "video/x-ms-wmx": { - "source": "apache", - "extensions": ["wmx"] - }, - "video/x-ms-wvx": { - "source": "apache", - "extensions": ["wvx"] - }, - "video/x-msvideo": { - "source": "apache", - "extensions": ["avi"] - }, - "video/x-sgi-movie": { - "source": "apache", - "extensions": ["movie"] - }, - "video/x-smv": { - "source": "apache", - "extensions": ["smv"] - }, - "x-conference/x-cooltalk": { - "source": "apache", - "extensions": ["ice"] - }, - "x-shader/x-fragment": { - "compressible": true - }, - "x-shader/x-vertex": { - "compressible": true - } -} diff --git a/mcp-server/node_modules/mime-db/index.js b/mcp-server/node_modules/mime-db/index.js deleted file mode 100644 index ec2be30..0000000 --- a/mcp-server/node_modules/mime-db/index.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module exports. - */ - -module.exports = require('./db.json') diff --git a/mcp-server/node_modules/mime-db/package.json b/mcp-server/node_modules/mime-db/package.json deleted file mode 100644 index 32c14b8..0000000 --- a/mcp-server/node_modules/mime-db/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "mime-db", - "description": "Media Type Database", - "version": "1.52.0", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)", - "Robert Kieffer (http://github.com/broofa)" - ], - "license": "MIT", - "keywords": [ - "mime", - "db", - "type", - "types", - "database", - "charset", - "charsets" - ], - "repository": "jshttp/mime-db", - "devDependencies": { - "bluebird": "3.7.2", - "co": "4.6.0", - "cogent": "1.0.1", - "csv-parse": "4.16.3", - "eslint": "7.32.0", - "eslint-config-standard": "15.0.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.1.1", - "eslint-plugin-standard": "4.1.0", - "gnode": "0.1.2", - "media-typer": "1.1.0", - "mocha": "9.2.1", - "nyc": "15.1.0", - "raw-body": "2.5.0", - "stream-to-array": "2.3.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "README.md", - "db.json", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "build": "node scripts/build", - "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx", - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "update": "npm run fetch && npm run build", - "version": "node scripts/version-history.js && git add HISTORY.md" - } -} diff --git a/mcp-server/node_modules/mime-types/HISTORY.md b/mcp-server/node_modules/mime-types/HISTORY.md deleted file mode 100644 index c5043b7..0000000 --- a/mcp-server/node_modules/mime-types/HISTORY.md +++ /dev/null @@ -1,397 +0,0 @@ -2.1.35 / 2022-03-12 -=================== - - * deps: mime-db@1.52.0 - - Add extensions from IANA for more `image/*` types - - Add extension `.asc` to `application/pgp-keys` - - Add extensions to various XML types - - Add new upstream MIME types - -2.1.34 / 2021-11-08 -=================== - - * deps: mime-db@1.51.0 - - Add new upstream MIME types - -2.1.33 / 2021-10-01 -=================== - - * deps: mime-db@1.50.0 - - Add deprecated iWorks mime types and extensions - - Add new upstream MIME types - -2.1.32 / 2021-07-27 -=================== - - * deps: mime-db@1.49.0 - - Add extension `.trig` to `application/trig` - - Add new upstream MIME types - -2.1.31 / 2021-06-01 -=================== - - * deps: mime-db@1.48.0 - - Add extension `.mvt` to `application/vnd.mapbox-vector-tile` - - Add new upstream MIME types - -2.1.30 / 2021-04-02 -=================== - - * deps: mime-db@1.47.0 - - Add extension `.amr` to `audio/amr` - - Remove ambigious extensions from IANA for `application/*+xml` types - - Update primary extension to `.es` for `application/ecmascript` - -2.1.29 / 2021-02-17 -=================== - - * deps: mime-db@1.46.0 - - Add extension `.amr` to `audio/amr` - - Add extension `.m4s` to `video/iso.segment` - - Add extension `.opus` to `audio/ogg` - - Add new upstream MIME types - -2.1.28 / 2021-01-01 -=================== - - * deps: mime-db@1.45.0 - - Add `application/ubjson` with extension `.ubj` - - Add `image/avif` with extension `.avif` - - Add `image/ktx2` with extension `.ktx2` - - Add extension `.dbf` to `application/vnd.dbf` - - Add extension `.rar` to `application/vnd.rar` - - Add extension `.td` to `application/urc-targetdesc+xml` - - Add new upstream MIME types - - Fix extension of `application/vnd.apple.keynote` to be `.key` - -2.1.27 / 2020-04-23 -=================== - - * deps: mime-db@1.44.0 - - Add charsets from IANA - - Add extension `.cjs` to `application/node` - - Add new upstream MIME types - -2.1.26 / 2020-01-05 -=================== - - * deps: mime-db@1.43.0 - - Add `application/x-keepass2` with extension `.kdbx` - - Add extension `.mxmf` to `audio/mobile-xmf` - - Add extensions from IANA for `application/*+xml` types - - Add new upstream MIME types - -2.1.25 / 2019-11-12 -=================== - - * deps: mime-db@1.42.0 - - Add new upstream MIME types - - Add `application/toml` with extension `.toml` - - Add `image/vnd.ms-dds` with extension `.dds` - -2.1.24 / 2019-04-20 -=================== - - * deps: mime-db@1.40.0 - - Add extensions from IANA for `model/*` types - - Add `text/mdx` with extension `.mdx` - -2.1.23 / 2019-04-17 -=================== - - * deps: mime-db@~1.39.0 - - Add extensions `.siv` and `.sieve` to `application/sieve` - - Add new upstream MIME types - -2.1.22 / 2019-02-14 -=================== - - * deps: mime-db@~1.38.0 - - Add extension `.nq` to `application/n-quads` - - Add extension `.nt` to `application/n-triples` - - Add new upstream MIME types - -2.1.21 / 2018-10-19 -=================== - - * deps: mime-db@~1.37.0 - - Add extensions to HEIC image types - - Add new upstream MIME types - -2.1.20 / 2018-08-26 -=================== - - * deps: mime-db@~1.36.0 - - Add Apple file extensions from IANA - - Add extensions from IANA for `image/*` types - - Add new upstream MIME types - -2.1.19 / 2018-07-17 -=================== - - * deps: mime-db@~1.35.0 - - Add extension `.csl` to `application/vnd.citationstyles.style+xml` - - Add extension `.es` to `application/ecmascript` - - Add extension `.owl` to `application/rdf+xml` - - Add new upstream MIME types - - Add UTF-8 as default charset for `text/turtle` - -2.1.18 / 2018-02-16 -=================== - - * deps: mime-db@~1.33.0 - - Add `application/raml+yaml` with extension `.raml` - - Add `application/wasm` with extension `.wasm` - - Add `text/shex` with extension `.shex` - - Add extensions for JPEG-2000 images - - Add extensions from IANA for `message/*` types - - Add new upstream MIME types - - Update font MIME types - - Update `text/hjson` to registered `application/hjson` - -2.1.17 / 2017-09-01 -=================== - - * deps: mime-db@~1.30.0 - - Add `application/vnd.ms-outlook` - - Add `application/x-arj` - - Add extension `.mjs` to `application/javascript` - - Add glTF types and extensions - - Add new upstream MIME types - - Add `text/x-org` - - Add VirtualBox MIME types - - Fix `source` records for `video/*` types that are IANA - - Update `font/opentype` to registered `font/otf` - -2.1.16 / 2017-07-24 -=================== - - * deps: mime-db@~1.29.0 - - Add `application/fido.trusted-apps+json` - - Add extension `.wadl` to `application/vnd.sun.wadl+xml` - - Add extension `.gz` to `application/gzip` - - Add new upstream MIME types - - Update extensions `.md` and `.markdown` to be `text/markdown` - -2.1.15 / 2017-03-23 -=================== - - * deps: mime-db@~1.27.0 - - Add new mime types - - Add `image/apng` - -2.1.14 / 2017-01-14 -=================== - - * deps: mime-db@~1.26.0 - - Add new mime types - -2.1.13 / 2016-11-18 -=================== - - * deps: mime-db@~1.25.0 - - Add new mime types - -2.1.12 / 2016-09-18 -=================== - - * deps: mime-db@~1.24.0 - - Add new mime types - - Add `audio/mp3` - -2.1.11 / 2016-05-01 -=================== - - * deps: mime-db@~1.23.0 - - Add new mime types - -2.1.10 / 2016-02-15 -=================== - - * deps: mime-db@~1.22.0 - - Add new mime types - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - -2.1.9 / 2016-01-06 -================== - - * deps: mime-db@~1.21.0 - - Add new mime types - -2.1.8 / 2015-11-30 -================== - - * deps: mime-db@~1.20.0 - - Add new mime types - -2.1.7 / 2015-09-20 -================== - - * deps: mime-db@~1.19.0 - - Add new mime types - -2.1.6 / 2015-09-03 -================== - - * deps: mime-db@~1.18.0 - - Add new mime types - -2.1.5 / 2015-08-20 -================== - - * deps: mime-db@~1.17.0 - - Add new mime types - -2.1.4 / 2015-07-30 -================== - - * deps: mime-db@~1.16.0 - - Add new mime types - -2.1.3 / 2015-07-13 -================== - - * deps: mime-db@~1.15.0 - - Add new mime types - -2.1.2 / 2015-06-25 -================== - - * deps: mime-db@~1.14.0 - - Add new mime types - -2.1.1 / 2015-06-08 -================== - - * perf: fix deopt during mapping - -2.1.0 / 2015-06-07 -================== - - * Fix incorrectly treating extension-less file name as extension - - i.e. `'path/to/json'` will no longer return `application/json` - * Fix `.charset(type)` to accept parameters - * Fix `.charset(type)` to match case-insensitive - * Improve generation of extension to MIME mapping - * Refactor internals for readability and no argument reassignment - * Prefer `application/*` MIME types from the same source - * Prefer any type over `application/octet-stream` - * deps: mime-db@~1.13.0 - - Add nginx as a source - - Add new mime types - -2.0.14 / 2015-06-06 -=================== - - * deps: mime-db@~1.12.0 - - Add new mime types - -2.0.13 / 2015-05-31 -=================== - - * deps: mime-db@~1.11.0 - - Add new mime types - -2.0.12 / 2015-05-19 -=================== - - * deps: mime-db@~1.10.0 - - Add new mime types - -2.0.11 / 2015-05-05 -=================== - - * deps: mime-db@~1.9.1 - - Add new mime types - -2.0.10 / 2015-03-13 -=================== - - * deps: mime-db@~1.8.0 - - Add new mime types - -2.0.9 / 2015-02-09 -================== - - * deps: mime-db@~1.7.0 - - Add new mime types - - Community extensions ownership transferred from `node-mime` - -2.0.8 / 2015-01-29 -================== - - * deps: mime-db@~1.6.0 - - Add new mime types - -2.0.7 / 2014-12-30 -================== - - * deps: mime-db@~1.5.0 - - Add new mime types - - Fix various invalid MIME type entries - -2.0.6 / 2014-12-30 -================== - - * deps: mime-db@~1.4.0 - - Add new mime types - - Fix various invalid MIME type entries - - Remove example template MIME types - -2.0.5 / 2014-12-29 -================== - - * deps: mime-db@~1.3.1 - - Fix missing extensions - -2.0.4 / 2014-12-10 -================== - - * deps: mime-db@~1.3.0 - - Add new mime types - -2.0.3 / 2014-11-09 -================== - - * deps: mime-db@~1.2.0 - - Add new mime types - -2.0.2 / 2014-09-28 -================== - - * deps: mime-db@~1.1.0 - - Add new mime types - - Update charsets - -2.0.1 / 2014-09-07 -================== - - * Support Node.js 0.6 - -2.0.0 / 2014-09-02 -================== - - * Use `mime-db` - * Remove `.define()` - -1.0.2 / 2014-08-04 -================== - - * Set charset=utf-8 for `text/javascript` - -1.0.1 / 2014-06-24 -================== - - * Add `text/jsx` type - -1.0.0 / 2014-05-12 -================== - - * Return `false` for unknown types - * Set charset=utf-8 for `application/json` - -0.1.0 / 2014-05-02 -================== - - * Initial release diff --git a/mcp-server/node_modules/mime-types/LICENSE b/mcp-server/node_modules/mime-types/LICENSE deleted file mode 100644 index 0616607..0000000 --- a/mcp-server/node_modules/mime-types/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/mime-types/README.md b/mcp-server/node_modules/mime-types/README.md deleted file mode 100644 index 48d2fb4..0000000 --- a/mcp-server/node_modules/mime-types/README.md +++ /dev/null @@ -1,113 +0,0 @@ -# mime-types - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][ci-image]][ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -The ultimate javascript content-type utility. - -Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except: - -- __No fallbacks.__ Instead of naively returning the first available type, - `mime-types` simply returns `false`, so do - `var type = mime.lookup('unrecognized') || 'application/octet-stream'`. -- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`. -- No `.define()` functionality -- Bug fixes for `.lookup(path)` - -Otherwise, the API is compatible with `mime` 1.x. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install mime-types -``` - -## Adding Types - -All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db), -so open a PR there if you'd like to add mime types. - -## API - -```js -var mime = require('mime-types') -``` - -All functions return `false` if input is invalid or not found. - -### mime.lookup(path) - -Lookup the content-type associated with a file. - -```js -mime.lookup('json') // 'application/json' -mime.lookup('.md') // 'text/markdown' -mime.lookup('file.html') // 'text/html' -mime.lookup('folder/file.js') // 'application/javascript' -mime.lookup('folder/.htaccess') // false - -mime.lookup('cats') // false -``` - -### mime.contentType(type) - -Create a full content-type header given a content-type or extension. -When given an extension, `mime.lookup` is used to get the matching -content-type, otherwise the given content-type is used. Then if the -content-type does not already have a `charset` parameter, `mime.charset` -is used to get the default charset and add to the returned content-type. - -```js -mime.contentType('markdown') // 'text/x-markdown; charset=utf-8' -mime.contentType('file.json') // 'application/json; charset=utf-8' -mime.contentType('text/html') // 'text/html; charset=utf-8' -mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1' - -// from a full path -mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8' -``` - -### mime.extension(type) - -Get the default extension for a content-type. - -```js -mime.extension('application/octet-stream') // 'bin' -``` - -### mime.charset(type) - -Lookup the implied default charset of a content-type. - -```js -mime.charset('text/markdown') // 'UTF-8' -``` - -### var type = mime.types[extension] - -A map of content-types by extension. - -### [extensions...] = mime.extensions[type] - -A map of extensions by content-type. - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/jshttp/mime-types/master?label=ci -[ci-url]: https://github.com/jshttp/mime-types/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master -[node-version-image]: https://badgen.net/npm/node/mime-types -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-types -[npm-url]: https://npmjs.org/package/mime-types -[npm-version-image]: https://badgen.net/npm/v/mime-types diff --git a/mcp-server/node_modules/mime-types/index.js b/mcp-server/node_modules/mime-types/index.js deleted file mode 100644 index b9f34d5..0000000 --- a/mcp-server/node_modules/mime-types/index.js +++ /dev/null @@ -1,188 +0,0 @@ -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var db = require('mime-db') -var extname = require('path').extname - -/** - * Module variables. - * @private - */ - -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i - -/** - * Module exports. - * @public - */ - -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - -/** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } - - return false -} - -/** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} - */ - -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - -/** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] - - if (!exts || !exts.length) { - return false - } - - return exts[0] -} - -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} - */ - -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } - - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) - - if (!extension) { - return false - } - - return exports.types[extension] || false -} - -/** - * Populate the extensions and types maps. - * @private - */ - -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] - - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - - if (!exts || !exts.length) { - return - } - - // mime -> extensions - extensions[type] = exts - - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] - - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) - - if (types[extension] !== 'application/octet-stream' && - (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { - // skip the remapping - continue - } - } - - // set the extension -> mime - types[extension] = type - } - }) -} diff --git a/mcp-server/node_modules/mime-types/package.json b/mcp-server/node_modules/mime-types/package.json deleted file mode 100644 index bbef696..0000000 --- a/mcp-server/node_modules/mime-types/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "mime-types", - "description": "The ultimate javascript content-type utility.", - "version": "2.1.35", - "contributors": [ - "Douglas Christopher Wilson ", - "Jeremiah Senkpiel (https://searchbeam.jit.su)", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "keywords": [ - "mime", - "types" - ], - "repository": "jshttp/mime-types", - "dependencies": { - "mime-db": "1.52.0" - }, - "devDependencies": { - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.2.2", - "nyc": "15.1.0" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec test/test.js", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/mime/.npmignore b/mcp-server/node_modules/mime/.npmignore deleted file mode 100644 index e69de29..0000000 diff --git a/mcp-server/node_modules/mime/CHANGELOG.md b/mcp-server/node_modules/mime/CHANGELOG.md deleted file mode 100644 index f127535..0000000 --- a/mcp-server/node_modules/mime/CHANGELOG.md +++ /dev/null @@ -1,164 +0,0 @@ -# Changelog - -## v1.6.0 (24/11/2017) -*No changelog for this release.* - ---- - -## v2.0.4 (24/11/2017) -- [**closed**] Switch to mime-score module for resolving extension contention issues. [#182](https://github.com/broofa/node-mime/issues/182) -- [**closed**] Update mime-db to 1.31.0 in v1.x branch [#181](https://github.com/broofa/node-mime/issues/181) - ---- - -## v1.5.0 (22/11/2017) -- [**closed**] need ES5 version ready in npm package [#179](https://github.com/broofa/node-mime/issues/179) -- [**closed**] mime-db no trace of iWork - pages / numbers / etc. [#178](https://github.com/broofa/node-mime/issues/178) -- [**closed**] How it works in brownser ? [#176](https://github.com/broofa/node-mime/issues/176) -- [**closed**] Missing `./Mime` [#175](https://github.com/broofa/node-mime/issues/175) -- [**closed**] Vulnerable Regular Expression [#167](https://github.com/broofa/node-mime/issues/167) - ---- - -## v2.0.3 (25/09/2017) -*No changelog for this release.* - ---- - -## v1.4.1 (25/09/2017) -- [**closed**] Issue when bundling with webpack [#172](https://github.com/broofa/node-mime/issues/172) - ---- - -## v2.0.2 (15/09/2017) -- [**V2**] fs.readFileSync is not a function [#165](https://github.com/broofa/node-mime/issues/165) -- [**closed**] The extension for video/quicktime should map to .mov, not .qt [#164](https://github.com/broofa/node-mime/issues/164) -- [**V2**] [v2 Feedback request] Mime class API [#163](https://github.com/broofa/node-mime/issues/163) -- [**V2**] [v2 Feedback request] Resolving conflicts over extensions [#162](https://github.com/broofa/node-mime/issues/162) -- [**V2**] Allow callers to load module with official, full, or no defined types. [#161](https://github.com/broofa/node-mime/issues/161) -- [**V2**] Use "facets" to resolve extension conflicts [#160](https://github.com/broofa/node-mime/issues/160) -- [**V2**] Remove fs and path dependencies [#152](https://github.com/broofa/node-mime/issues/152) -- [**V2**] Default content-type should not be application/octet-stream [#139](https://github.com/broofa/node-mime/issues/139) -- [**V2**] reset mime-types [#124](https://github.com/broofa/node-mime/issues/124) -- [**V2**] Extensionless paths should return null or false [#113](https://github.com/broofa/node-mime/issues/113) - ---- - -## v2.0.1 (14/09/2017) -- [**closed**] Changelog for v2.0 does not mention breaking changes [#171](https://github.com/broofa/node-mime/issues/171) -- [**closed**] MIME breaking with 'class' declaration as it is without 'use strict mode' [#170](https://github.com/broofa/node-mime/issues/170) - ---- - -## v2.0.0 (12/09/2017) -- [**closed**] woff and woff2 [#168](https://github.com/broofa/node-mime/issues/168) - ---- - -## v1.4.0 (28/08/2017) -- [**closed**] support for ac3 voc files [#159](https://github.com/broofa/node-mime/issues/159) -- [**closed**] Help understanding change from application/xml to text/xml [#158](https://github.com/broofa/node-mime/issues/158) -- [**closed**] no longer able to override mimetype [#157](https://github.com/broofa/node-mime/issues/157) -- [**closed**] application/vnd.adobe.photoshop [#147](https://github.com/broofa/node-mime/issues/147) -- [**closed**] Directories should appear as something other than application/octet-stream [#135](https://github.com/broofa/node-mime/issues/135) -- [**closed**] requested features [#131](https://github.com/broofa/node-mime/issues/131) -- [**closed**] Make types.json loading optional? [#129](https://github.com/broofa/node-mime/issues/129) -- [**closed**] Cannot find module './types.json' [#120](https://github.com/broofa/node-mime/issues/120) -- [**V2**] .wav files show up as "audio/x-wav" instead of "audio/x-wave" [#118](https://github.com/broofa/node-mime/issues/118) -- [**closed**] Don't be a pain in the ass for node community [#108](https://github.com/broofa/node-mime/issues/108) -- [**closed**] don't make default_type global [#78](https://github.com/broofa/node-mime/issues/78) -- [**closed**] mime.extension() fails if the content-type is parameterized [#74](https://github.com/broofa/node-mime/issues/74) - ---- - -## v1.3.6 (11/05/2017) -- [**closed**] .md should be text/markdown as of March 2016 [#154](https://github.com/broofa/node-mime/issues/154) -- [**closed**] Error while installing mime [#153](https://github.com/broofa/node-mime/issues/153) -- [**closed**] application/manifest+json [#149](https://github.com/broofa/node-mime/issues/149) -- [**closed**] Dynamic adaptive streaming over HTTP (DASH) file extension typo [#141](https://github.com/broofa/node-mime/issues/141) -- [**closed**] charsets image/png undefined [#140](https://github.com/broofa/node-mime/issues/140) -- [**closed**] Mime-db dependency out of date [#130](https://github.com/broofa/node-mime/issues/130) -- [**closed**] how to support plist? [#126](https://github.com/broofa/node-mime/issues/126) -- [**closed**] how does .types file format look like? [#123](https://github.com/broofa/node-mime/issues/123) -- [**closed**] Feature: support for expanding MIME patterns [#121](https://github.com/broofa/node-mime/issues/121) -- [**closed**] DEBUG_MIME doesn't work [#117](https://github.com/broofa/node-mime/issues/117) - ---- - -## v1.3.4 (06/02/2015) -*No changelog for this release.* - ---- - -## v1.3.3 (06/02/2015) -*No changelog for this release.* - ---- - -## v1.3.1 (05/02/2015) -- [**closed**] Consider adding support for Handlebars .hbs file ending [#111](https://github.com/broofa/node-mime/issues/111) -- [**closed**] Consider adding support for hjson. [#110](https://github.com/broofa/node-mime/issues/110) -- [**closed**] Add mime type for Opus audio files [#94](https://github.com/broofa/node-mime/issues/94) -- [**closed**] Consider making the `Requesting New Types` information more visible [#77](https://github.com/broofa/node-mime/issues/77) - ---- - -## v1.3.0 (05/02/2015) -- [**closed**] Add common name? [#114](https://github.com/broofa/node-mime/issues/114) -- [**closed**] application/x-yaml [#104](https://github.com/broofa/node-mime/issues/104) -- [**closed**] Add mime type for WOFF file format 2.0 [#102](https://github.com/broofa/node-mime/issues/102) -- [**closed**] application/x-msi for .msi [#99](https://github.com/broofa/node-mime/issues/99) -- [**closed**] Add mimetype for gettext translation files [#98](https://github.com/broofa/node-mime/issues/98) -- [**closed**] collaborators [#88](https://github.com/broofa/node-mime/issues/88) -- [**closed**] getting errot in installation of mime module...any1 can help? [#87](https://github.com/broofa/node-mime/issues/87) -- [**closed**] should application/json's charset be utf8? [#86](https://github.com/broofa/node-mime/issues/86) -- [**closed**] Add "license" and "licenses" to package.json [#81](https://github.com/broofa/node-mime/issues/81) -- [**closed**] lookup with extension-less file on Windows returns wrong type [#68](https://github.com/broofa/node-mime/issues/68) - ---- - -## v1.2.11 (15/08/2013) -- [**closed**] Update mime.types [#65](https://github.com/broofa/node-mime/issues/65) -- [**closed**] Publish a new version [#63](https://github.com/broofa/node-mime/issues/63) -- [**closed**] README should state upfront that "application/octet-stream" is default for unknown extension [#55](https://github.com/broofa/node-mime/issues/55) -- [**closed**] Suggested improvement to the charset API [#52](https://github.com/broofa/node-mime/issues/52) - ---- - -## v1.2.10 (25/07/2013) -- [**closed**] Mime type for woff files should be application/font-woff and not application/x-font-woff [#62](https://github.com/broofa/node-mime/issues/62) -- [**closed**] node.types in conflict with mime.types [#51](https://github.com/broofa/node-mime/issues/51) - ---- - -## v1.2.9 (17/01/2013) -- [**closed**] Please update "mime" NPM [#49](https://github.com/broofa/node-mime/issues/49) -- [**closed**] Please add semicolon [#46](https://github.com/broofa/node-mime/issues/46) -- [**closed**] parse full mime types [#43](https://github.com/broofa/node-mime/issues/43) - ---- - -## v1.2.8 (10/01/2013) -- [**closed**] /js directory mime is application/javascript. Is it correct? [#47](https://github.com/broofa/node-mime/issues/47) -- [**closed**] Add mime types for lua code. [#45](https://github.com/broofa/node-mime/issues/45) - ---- - -## v1.2.7 (19/10/2012) -- [**closed**] cannot install 1.2.7 via npm [#41](https://github.com/broofa/node-mime/issues/41) -- [**closed**] Transfer ownership to @broofa [#36](https://github.com/broofa/node-mime/issues/36) -- [**closed**] it's wrong to set charset to UTF-8 for text [#30](https://github.com/broofa/node-mime/issues/30) -- [**closed**] Allow multiple instances of MIME types container [#27](https://github.com/broofa/node-mime/issues/27) - ---- - -## v1.2.5 (16/02/2012) -- [**closed**] When looking up a types, check hasOwnProperty [#23](https://github.com/broofa/node-mime/issues/23) -- [**closed**] Bump version to 1.2.2 [#18](https://github.com/broofa/node-mime/issues/18) -- [**closed**] No license [#16](https://github.com/broofa/node-mime/issues/16) -- [**closed**] Some types missing that are used by html5/css3 [#13](https://github.com/broofa/node-mime/issues/13) -- [**closed**] npm install fails for 1.2.1 [#12](https://github.com/broofa/node-mime/issues/12) -- [**closed**] image/pjpeg + image/x-png [#10](https://github.com/broofa/node-mime/issues/10) -- [**closed**] symlink [#8](https://github.com/broofa/node-mime/issues/8) -- [**closed**] gzip [#2](https://github.com/broofa/node-mime/issues/2) -- [**closed**] ALL CAPS filenames return incorrect mime type [#1](https://github.com/broofa/node-mime/issues/1) diff --git a/mcp-server/node_modules/mime/LICENSE b/mcp-server/node_modules/mime/LICENSE deleted file mode 100644 index d3f46f7..0000000 --- a/mcp-server/node_modules/mime/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2010 Benjamin Thomas, Robert Kieffer - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/mcp-server/node_modules/mime/README.md b/mcp-server/node_modules/mime/README.md deleted file mode 100644 index 506fbe5..0000000 --- a/mcp-server/node_modules/mime/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# mime - -Comprehensive MIME type mapping API based on mime-db module. - -## Install - -Install with [npm](http://github.com/isaacs/npm): - - npm install mime - -## Contributing / Testing - - npm run test - -## Command Line - - mime [path_string] - -E.g. - - > mime scripts/jquery.js - application/javascript - -## API - Queries - -### mime.lookup(path) -Get the mime type associated with a file, if no mime type is found `application/octet-stream` is returned. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.'). E.g. - -```js -var mime = require('mime'); - -mime.lookup('/path/to/file.txt'); // => 'text/plain' -mime.lookup('file.txt'); // => 'text/plain' -mime.lookup('.TXT'); // => 'text/plain' -mime.lookup('htm'); // => 'text/html' -``` - -### mime.default_type -Sets the mime type returned when `mime.lookup` fails to find the extension searched for. (Default is `application/octet-stream`.) - -### mime.extension(type) -Get the default extension for `type` - -```js -mime.extension('text/html'); // => 'html' -mime.extension('application/octet-stream'); // => 'bin' -``` - -### mime.charsets.lookup() - -Map mime-type to charset - -```js -mime.charsets.lookup('text/plain'); // => 'UTF-8' -``` - -(The logic for charset lookups is pretty rudimentary. Feel free to suggest improvements.) - -## API - Defining Custom Types - -Custom type mappings can be added on a per-project basis via the following APIs. - -### mime.define() - -Add custom mime/extension mappings - -```js -mime.define({ - 'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'], - 'application/x-my-type': ['x-mt', 'x-mtt'], - // etc ... -}); - -mime.lookup('x-sft'); // => 'text/x-some-format' -``` - -The first entry in the extensions array is returned by `mime.extension()`. E.g. - -```js -mime.extension('text/x-some-format'); // => 'x-sf' -``` - -### mime.load(filepath) - -Load mappings from an Apache ".types" format file - -```js -mime.load('./my_project.types'); -``` -The .types file format is simple - See the `types` dir for examples. diff --git a/mcp-server/node_modules/mime/cli.js b/mcp-server/node_modules/mime/cli.js deleted file mode 100644 index 20b1ffe..0000000 --- a/mcp-server/node_modules/mime/cli.js +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env node - -var mime = require('./mime.js'); -var file = process.argv[2]; -var type = mime.lookup(file); - -process.stdout.write(type + '\n'); - diff --git a/mcp-server/node_modules/mime/mime.js b/mcp-server/node_modules/mime/mime.js deleted file mode 100644 index d7efbde..0000000 --- a/mcp-server/node_modules/mime/mime.js +++ /dev/null @@ -1,108 +0,0 @@ -var path = require('path'); -var fs = require('fs'); - -function Mime() { - // Map of extension -> mime type - this.types = Object.create(null); - - // Map of mime type -> extension - this.extensions = Object.create(null); -} - -/** - * Define mimetype -> extension mappings. Each key is a mime-type that maps - * to an array of extensions associated with the type. The first extension is - * used as the default extension for the type. - * - * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); - * - * @param map (Object) type definitions - */ -Mime.prototype.define = function (map) { - for (var type in map) { - var exts = map[type]; - for (var i = 0; i < exts.length; i++) { - if (process.env.DEBUG_MIME && this.types[exts[i]]) { - console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + - this.types[exts[i]] + ' to ' + type); - } - - this.types[exts[i]] = type; - } - - // Default extension is the first one we encounter - if (!this.extensions[type]) { - this.extensions[type] = exts[0]; - } - } -}; - -/** - * Load an Apache2-style ".types" file - * - * This may be called multiple times (it's expected). Where files declare - * overlapping types/extensions, the last file wins. - * - * @param file (String) path of file to load. - */ -Mime.prototype.load = function(file) { - this._loading = file; - // Read file and split into lines - var map = {}, - content = fs.readFileSync(file, 'ascii'), - lines = content.split(/[\r\n]+/); - - lines.forEach(function(line) { - // Clean up whitespace/comments, and split into fields - var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/); - map[fields.shift()] = fields; - }); - - this.define(map); - - this._loading = null; -}; - -/** - * Lookup a mime type based on extension - */ -Mime.prototype.lookup = function(path, fallback) { - var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase(); - - return this.types[ext] || fallback || this.default_type; -}; - -/** - * Return file extension associated with a mime type - */ -Mime.prototype.extension = function(mimeType) { - var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); - return this.extensions[type]; -}; - -// Default instance -var mime = new Mime(); - -// Define built-in types -mime.define(require('./types.json')); - -// Default type -mime.default_type = mime.lookup('bin'); - -// -// Additional API specific to the default instance -// - -mime.Mime = Mime; - -/** - * Lookup a charset based on mime type. - */ -mime.charsets = { - lookup: function(mimeType, fallback) { - // Assume text types are utf8 - return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback; - } -}; - -module.exports = mime; diff --git a/mcp-server/node_modules/mime/package.json b/mcp-server/node_modules/mime/package.json deleted file mode 100644 index 6bd24bc..0000000 --- a/mcp-server/node_modules/mime/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "author": { - "name": "Robert Kieffer", - "url": "http://github.com/broofa", - "email": "robert@broofa.com" - }, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - }, - "contributors": [ - { - "name": "Benjamin Thomas", - "url": "http://github.com/bentomas", - "email": "benjamin@benjaminthomas.org" - } - ], - "description": "A comprehensive library for mime-type mapping", - "license": "MIT", - "dependencies": {}, - "devDependencies": { - "github-release-notes": "0.13.1", - "mime-db": "1.31.0", - "mime-score": "1.1.0" - }, - "scripts": { - "prepare": "node src/build.js", - "changelog": "gren changelog --tags=all --generate --override", - "test": "node src/test.js" - }, - "keywords": [ - "util", - "mime" - ], - "main": "mime.js", - "name": "mime", - "repository": { - "url": "https://github.com/broofa/node-mime", - "type": "git" - }, - "version": "1.6.0" -} diff --git a/mcp-server/node_modules/mime/src/build.js b/mcp-server/node_modules/mime/src/build.js deleted file mode 100644 index 4928e48..0000000 --- a/mcp-server/node_modules/mime/src/build.js +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env node - -'use strict'; - -const fs = require('fs'); -const path = require('path'); -const mimeScore = require('mime-score'); - -let db = require('mime-db'); -let chalk = require('chalk'); - -const STANDARD_FACET_SCORE = 900; - -const byExtension = {}; - -// Clear out any conflict extensions in mime-db -for (let type in db) { - let entry = db[type]; - entry.type = type; - - if (!entry.extensions) continue; - - entry.extensions.forEach(ext => { - if (ext in byExtension) { - const e0 = entry; - const e1 = byExtension[ext]; - e0.pri = mimeScore(e0.type, e0.source); - e1.pri = mimeScore(e1.type, e1.source); - - let drop = e0.pri < e1.pri ? e0 : e1; - let keep = e0.pri >= e1.pri ? e0 : e1; - drop.extensions = drop.extensions.filter(e => e !== ext); - - console.log(`${ext}: Keeping ${chalk.green(keep.type)} (${keep.pri}), dropping ${chalk.red(drop.type)} (${drop.pri})`); - } - byExtension[ext] = entry; - }); -} - -function writeTypesFile(types, path) { - fs.writeFileSync(path, JSON.stringify(types)); -} - -// Segregate into standard and non-standard types based on facet per -// https://tools.ietf.org/html/rfc6838#section-3.1 -const types = {}; - -Object.keys(db).sort().forEach(k => { - const entry = db[k]; - types[entry.type] = entry.extensions; -}); - -writeTypesFile(types, path.join(__dirname, '..', 'types.json')); diff --git a/mcp-server/node_modules/mime/src/test.js b/mcp-server/node_modules/mime/src/test.js deleted file mode 100644 index 42958a2..0000000 --- a/mcp-server/node_modules/mime/src/test.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Usage: node test.js - */ - -var mime = require('../mime'); -var assert = require('assert'); -var path = require('path'); - -// -// Test mime lookups -// - -assert.equal('text/plain', mime.lookup('text.txt')); // normal file -assert.equal('text/plain', mime.lookup('TEXT.TXT')); // uppercase -assert.equal('text/plain', mime.lookup('dir/text.txt')); // dir + file -assert.equal('text/plain', mime.lookup('.text.txt')); // hidden file -assert.equal('text/plain', mime.lookup('.txt')); // nameless -assert.equal('text/plain', mime.lookup('txt')); // extension-only -assert.equal('text/plain', mime.lookup('/txt')); // extension-less () -assert.equal('text/plain', mime.lookup('\\txt')); // Windows, extension-less -assert.equal('application/octet-stream', mime.lookup('text.nope')); // unrecognized -assert.equal('fallback', mime.lookup('text.fallback', 'fallback')); // alternate default - -// -// Test extensions -// - -assert.equal('txt', mime.extension(mime.types.text)); -assert.equal('html', mime.extension(mime.types.htm)); -assert.equal('bin', mime.extension('application/octet-stream')); -assert.equal('bin', mime.extension('application/octet-stream ')); -assert.equal('html', mime.extension(' text/html; charset=UTF-8')); -assert.equal('html', mime.extension('text/html; charset=UTF-8 ')); -assert.equal('html', mime.extension('text/html; charset=UTF-8')); -assert.equal('html', mime.extension('text/html ; charset=UTF-8')); -assert.equal('html', mime.extension('text/html;charset=UTF-8')); -assert.equal('html', mime.extension('text/Html;charset=UTF-8')); -assert.equal(undefined, mime.extension('unrecognized')); - -// -// Test node.types lookups -// - -assert.equal('font/woff', mime.lookup('file.woff')); -assert.equal('application/octet-stream', mime.lookup('file.buffer')); -// TODO: Uncomment once #157 is resolved -// assert.equal('audio/mp4', mime.lookup('file.m4a')); -assert.equal('font/otf', mime.lookup('file.otf')); - -// -// Test charsets -// - -assert.equal('UTF-8', mime.charsets.lookup('text/plain')); -assert.equal('UTF-8', mime.charsets.lookup(mime.types.js)); -assert.equal('UTF-8', mime.charsets.lookup(mime.types.json)); -assert.equal(undefined, mime.charsets.lookup(mime.types.bin)); -assert.equal('fallback', mime.charsets.lookup('application/octet-stream', 'fallback')); - -console.log('\nAll tests passed'); diff --git a/mcp-server/node_modules/mime/types.json b/mcp-server/node_modules/mime/types.json deleted file mode 100644 index bec78ab..0000000 --- a/mcp-server/node_modules/mime/types.json +++ /dev/null @@ -1 +0,0 @@ -{"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]} \ No newline at end of file diff --git a/mcp-server/node_modules/ms/index.js b/mcp-server/node_modules/ms/index.js deleted file mode 100644 index 6a522b1..0000000 --- a/mcp-server/node_modules/ms/index.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isNaN(val) === false) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - if (ms >= d) { - return Math.round(ms / d) + 'd'; - } - if (ms >= h) { - return Math.round(ms / h) + 'h'; - } - if (ms >= m) { - return Math.round(ms / m) + 'm'; - } - if (ms >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - return plural(ms, d, 'day') || - plural(ms, h, 'hour') || - plural(ms, m, 'minute') || - plural(ms, s, 'second') || - ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, n, name) { - if (ms < n) { - return; - } - if (ms < n * 1.5) { - return Math.floor(ms / n) + ' ' + name; - } - return Math.ceil(ms / n) + ' ' + name + 's'; -} diff --git a/mcp-server/node_modules/ms/license.md b/mcp-server/node_modules/ms/license.md deleted file mode 100644 index 69b6125..0000000 --- a/mcp-server/node_modules/ms/license.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Zeit, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/ms/package.json b/mcp-server/node_modules/ms/package.json deleted file mode 100644 index 6a31c81..0000000 --- a/mcp-server/node_modules/ms/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "ms", - "version": "2.0.0", - "description": "Tiny milisecond conversion utility", - "repository": "zeit/ms", - "main": "./index", - "files": [ - "index.js" - ], - "scripts": { - "precommit": "lint-staged", - "lint": "eslint lib/* bin/*", - "test": "mocha tests.js" - }, - "eslintConfig": { - "extends": "eslint:recommended", - "env": { - "node": true, - "es6": true - } - }, - "lint-staged": { - "*.js": [ - "npm run lint", - "prettier --single-quote --write", - "git add" - ] - }, - "license": "MIT", - "devDependencies": { - "eslint": "3.19.0", - "expect.js": "0.3.1", - "husky": "0.13.3", - "lint-staged": "3.4.1", - "mocha": "3.4.1" - } -} diff --git a/mcp-server/node_modules/ms/readme.md b/mcp-server/node_modules/ms/readme.md deleted file mode 100644 index 84a9974..0000000 --- a/mcp-server/node_modules/ms/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# ms - -[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) -[![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/) - -Use this package to easily convert various time formats to milliseconds. - -## Examples - -```js -ms('2 days') // 172800000 -ms('1d') // 86400000 -ms('10h') // 36000000 -ms('2.5 hrs') // 9000000 -ms('2h') // 7200000 -ms('1m') // 60000 -ms('5s') // 5000 -ms('1y') // 31557600000 -ms('100') // 100 -``` - -### Convert from milliseconds - -```js -ms(60000) // "1m" -ms(2 * 60000) // "2m" -ms(ms('10 hours')) // "10h" -``` - -### Time format written-out - -```js -ms(60000, { long: true }) // "1 minute" -ms(2 * 60000, { long: true }) // "2 minutes" -ms(ms('10 hours'), { long: true }) // "10 hours" -``` - -## Features - -- Works both in [node](https://nodejs.org) and in the browser. -- If a number is supplied to `ms`, a string with a unit is returned. -- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`). -- If you pass a string with a number and a valid unit, the number of equivalent ms is returned. - -## Caught a bug? - -1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device -2. Link the package to the global module directory: `npm link` -3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms! - -As always, you can run the tests using: `npm test` diff --git a/mcp-server/node_modules/negotiator/HISTORY.md b/mcp-server/node_modules/negotiator/HISTORY.md deleted file mode 100644 index a9a5449..0000000 --- a/mcp-server/node_modules/negotiator/HISTORY.md +++ /dev/null @@ -1,108 +0,0 @@ -0.6.3 / 2022-01-22 -================== - - * Revert "Lazy-load modules from main entry point" - -0.6.2 / 2019-04-29 -================== - - * Fix sorting charset, encoding, and language with extra parameters - -0.6.1 / 2016-05-02 -================== - - * perf: improve `Accept` parsing speed - * perf: improve `Accept-Charset` parsing speed - * perf: improve `Accept-Encoding` parsing speed - * perf: improve `Accept-Language` parsing speed - -0.6.0 / 2015-09-29 -================== - - * Fix including type extensions in parameters in `Accept` parsing - * Fix parsing `Accept` parameters with quoted equals - * Fix parsing `Accept` parameters with quoted semicolons - * Lazy-load modules from main entry point - * perf: delay type concatenation until needed - * perf: enable strict mode - * perf: hoist regular expressions - * perf: remove closures getting spec properties - * perf: remove a closure from media type parsing - * perf: remove property delete from media type parsing - -0.5.3 / 2015-05-10 -================== - - * Fix media type parameter matching to be case-insensitive - -0.5.2 / 2015-05-06 -================== - - * Fix comparing media types with quoted values - * Fix splitting media types with quoted commas - -0.5.1 / 2015-02-14 -================== - - * Fix preference sorting to be stable for long acceptable lists - -0.5.0 / 2014-12-18 -================== - - * Fix list return order when large accepted list - * Fix missing identity encoding when q=0 exists - * Remove dynamic building of Negotiator class - -0.4.9 / 2014-10-14 -================== - - * Fix error when media type has invalid parameter - -0.4.8 / 2014-09-28 -================== - - * Fix all negotiations to be case-insensitive - * Stable sort preferences of same quality according to client order - * Support Node.js 0.6 - -0.4.7 / 2014-06-24 -================== - - * Handle invalid provided languages - * Handle invalid provided media types - -0.4.6 / 2014-06-11 -================== - - * Order by specificity when quality is the same - -0.4.5 / 2014-05-29 -================== - - * Fix regression in empty header handling - -0.4.4 / 2014-05-29 -================== - - * Fix behaviors when headers are not present - -0.4.3 / 2014-04-16 -================== - - * Handle slashes on media params correctly - -0.4.2 / 2014-02-28 -================== - - * Fix media type sorting - * Handle media types params strictly - -0.4.1 / 2014-01-16 -================== - - * Use most specific matches - -0.4.0 / 2014-01-09 -================== - - * Remove preferred prefix from methods diff --git a/mcp-server/node_modules/negotiator/LICENSE b/mcp-server/node_modules/negotiator/LICENSE deleted file mode 100644 index ea6b9e2..0000000 --- a/mcp-server/node_modules/negotiator/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2012-2014 Federico Romero -Copyright (c) 2012-2014 Isaac Z. Schlueter -Copyright (c) 2014-2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/negotiator/README.md b/mcp-server/node_modules/negotiator/README.md deleted file mode 100644 index 82915e5..0000000 --- a/mcp-server/node_modules/negotiator/README.md +++ /dev/null @@ -1,203 +0,0 @@ -# negotiator - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][github-actions-ci-image]][github-actions-ci-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -An HTTP content negotiator for Node.js - -## Installation - -```sh -$ npm install negotiator -``` - -## API - -```js -var Negotiator = require('negotiator') -``` - -### Accept Negotiation - -```js -availableMediaTypes = ['text/html', 'text/plain', 'application/json'] - -// The negotiator constructor receives a request object -negotiator = new Negotiator(request) - -// Let's say Accept header is 'text/html, application/*;q=0.2, image/jpeg;q=0.8' - -negotiator.mediaTypes() -// -> ['text/html', 'image/jpeg', 'application/*'] - -negotiator.mediaTypes(availableMediaTypes) -// -> ['text/html', 'application/json'] - -negotiator.mediaType(availableMediaTypes) -// -> 'text/html' -``` - -You can check a working example at `examples/accept.js`. - -#### Methods - -##### mediaType() - -Returns the most preferred media type from the client. - -##### mediaType(availableMediaType) - -Returns the most preferred media type from a list of available media types. - -##### mediaTypes() - -Returns an array of preferred media types ordered by the client preference. - -##### mediaTypes(availableMediaTypes) - -Returns an array of preferred media types ordered by priority from a list of -available media types. - -### Accept-Language Negotiation - -```js -negotiator = new Negotiator(request) - -availableLanguages = ['en', 'es', 'fr'] - -// Let's say Accept-Language header is 'en;q=0.8, es, pt' - -negotiator.languages() -// -> ['es', 'pt', 'en'] - -negotiator.languages(availableLanguages) -// -> ['es', 'en'] - -language = negotiator.language(availableLanguages) -// -> 'es' -``` - -You can check a working example at `examples/language.js`. - -#### Methods - -##### language() - -Returns the most preferred language from the client. - -##### language(availableLanguages) - -Returns the most preferred language from a list of available languages. - -##### languages() - -Returns an array of preferred languages ordered by the client preference. - -##### languages(availableLanguages) - -Returns an array of preferred languages ordered by priority from a list of -available languages. - -### Accept-Charset Negotiation - -```js -availableCharsets = ['utf-8', 'iso-8859-1', 'iso-8859-5'] - -negotiator = new Negotiator(request) - -// Let's say Accept-Charset header is 'utf-8, iso-8859-1;q=0.8, utf-7;q=0.2' - -negotiator.charsets() -// -> ['utf-8', 'iso-8859-1', 'utf-7'] - -negotiator.charsets(availableCharsets) -// -> ['utf-8', 'iso-8859-1'] - -negotiator.charset(availableCharsets) -// -> 'utf-8' -``` - -You can check a working example at `examples/charset.js`. - -#### Methods - -##### charset() - -Returns the most preferred charset from the client. - -##### charset(availableCharsets) - -Returns the most preferred charset from a list of available charsets. - -##### charsets() - -Returns an array of preferred charsets ordered by the client preference. - -##### charsets(availableCharsets) - -Returns an array of preferred charsets ordered by priority from a list of -available charsets. - -### Accept-Encoding Negotiation - -```js -availableEncodings = ['identity', 'gzip'] - -negotiator = new Negotiator(request) - -// Let's say Accept-Encoding header is 'gzip, compress;q=0.2, identity;q=0.5' - -negotiator.encodings() -// -> ['gzip', 'identity', 'compress'] - -negotiator.encodings(availableEncodings) -// -> ['gzip', 'identity'] - -negotiator.encoding(availableEncodings) -// -> 'gzip' -``` - -You can check a working example at `examples/encoding.js`. - -#### Methods - -##### encoding() - -Returns the most preferred encoding from the client. - -##### encoding(availableEncodings) - -Returns the most preferred encoding from a list of available encodings. - -##### encodings() - -Returns an array of preferred encodings ordered by the client preference. - -##### encodings(availableEncodings) - -Returns an array of preferred encodings ordered by priority from a list of -available encodings. - -## See Also - -The [accepts](https://npmjs.org/package/accepts#readme) module builds on -this module and provides an alternative interface, mime type validation, -and more. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/negotiator.svg -[npm-url]: https://npmjs.org/package/negotiator -[node-version-image]: https://img.shields.io/node/v/negotiator.svg -[node-version-url]: https://nodejs.org/en/download/ -[coveralls-image]: https://img.shields.io/coveralls/jshttp/negotiator/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/negotiator?branch=master -[downloads-image]: https://img.shields.io/npm/dm/negotiator.svg -[downloads-url]: https://npmjs.org/package/negotiator -[github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/negotiator/ci/master?label=ci -[github-actions-ci-url]: https://github.com/jshttp/negotiator/actions/workflows/ci.yml diff --git a/mcp-server/node_modules/negotiator/index.js b/mcp-server/node_modules/negotiator/index.js deleted file mode 100644 index 4788264..0000000 --- a/mcp-server/node_modules/negotiator/index.js +++ /dev/null @@ -1,82 +0,0 @@ -/*! - * negotiator - * Copyright(c) 2012 Federico Romero - * Copyright(c) 2012-2014 Isaac Z. Schlueter - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -var preferredCharsets = require('./lib/charset') -var preferredEncodings = require('./lib/encoding') -var preferredLanguages = require('./lib/language') -var preferredMediaTypes = require('./lib/mediaType') - -/** - * Module exports. - * @public - */ - -module.exports = Negotiator; -module.exports.Negotiator = Negotiator; - -/** - * Create a Negotiator instance from a request. - * @param {object} request - * @public - */ - -function Negotiator(request) { - if (!(this instanceof Negotiator)) { - return new Negotiator(request); - } - - this.request = request; -} - -Negotiator.prototype.charset = function charset(available) { - var set = this.charsets(available); - return set && set[0]; -}; - -Negotiator.prototype.charsets = function charsets(available) { - return preferredCharsets(this.request.headers['accept-charset'], available); -}; - -Negotiator.prototype.encoding = function encoding(available) { - var set = this.encodings(available); - return set && set[0]; -}; - -Negotiator.prototype.encodings = function encodings(available) { - return preferredEncodings(this.request.headers['accept-encoding'], available); -}; - -Negotiator.prototype.language = function language(available) { - var set = this.languages(available); - return set && set[0]; -}; - -Negotiator.prototype.languages = function languages(available) { - return preferredLanguages(this.request.headers['accept-language'], available); -}; - -Negotiator.prototype.mediaType = function mediaType(available) { - var set = this.mediaTypes(available); - return set && set[0]; -}; - -Negotiator.prototype.mediaTypes = function mediaTypes(available) { - return preferredMediaTypes(this.request.headers.accept, available); -}; - -// Backwards compatibility -Negotiator.prototype.preferredCharset = Negotiator.prototype.charset; -Negotiator.prototype.preferredCharsets = Negotiator.prototype.charsets; -Negotiator.prototype.preferredEncoding = Negotiator.prototype.encoding; -Negotiator.prototype.preferredEncodings = Negotiator.prototype.encodings; -Negotiator.prototype.preferredLanguage = Negotiator.prototype.language; -Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages; -Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType; -Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes; diff --git a/mcp-server/node_modules/negotiator/lib/charset.js b/mcp-server/node_modules/negotiator/lib/charset.js deleted file mode 100644 index cdd0148..0000000 --- a/mcp-server/node_modules/negotiator/lib/charset.js +++ /dev/null @@ -1,169 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredCharsets; -module.exports.preferredCharsets = preferredCharsets; - -/** - * Module variables. - * @private - */ - -var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Charset header. - * @private - */ - -function parseAcceptCharset(accept) { - var accepts = accept.split(','); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var charset = parseCharset(accepts[i].trim(), i); - - if (charset) { - accepts[j++] = charset; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a charset from the Accept-Charset header. - * @private - */ - -function parseCharset(str, i) { - var match = simpleCharsetRegExp.exec(str); - if (!match) return null; - - var charset = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(';') - for (var j = 0; j < params.length; j++) { - var p = params[j].trim().split('='); - if (p[0] === 'q') { - q = parseFloat(p[1]); - break; - } - } - } - - return { - charset: charset, - q: q, - i: i - }; -} - -/** - * Get the priority of a charset. - * @private - */ - -function getCharsetPriority(charset, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(charset, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the charset. - * @private - */ - -function specify(charset, spec, index) { - var s = 0; - if(spec.charset.toLowerCase() === charset.toLowerCase()){ - s |= 1; - } else if (spec.charset !== '*' ) { - return null - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s - } -} - -/** - * Get the preferred charsets from an Accept-Charset header. - * @public - */ - -function preferredCharsets(accept, provided) { - // RFC 2616 sec 14.2: no header = * - var accepts = parseAcceptCharset(accept === undefined ? '*' : accept || ''); - - if (!provided) { - // sorted list of all charsets - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullCharset); - } - - var priorities = provided.map(function getPriority(type, index) { - return getCharsetPriority(type, accepts, index); - }); - - // sorted list of accepted charsets - return priorities.filter(isQuality).sort(compareSpecs).map(function getCharset(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full charset string. - * @private - */ - -function getFullCharset(spec) { - return spec.charset; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/negotiator/lib/encoding.js b/mcp-server/node_modules/negotiator/lib/encoding.js deleted file mode 100644 index 8432cd7..0000000 --- a/mcp-server/node_modules/negotiator/lib/encoding.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredEncodings; -module.exports.preferredEncodings = preferredEncodings; - -/** - * Module variables. - * @private - */ - -var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Encoding header. - * @private - */ - -function parseAcceptEncoding(accept) { - var accepts = accept.split(','); - var hasIdentity = false; - var minQuality = 1; - - for (var i = 0, j = 0; i < accepts.length; i++) { - var encoding = parseEncoding(accepts[i].trim(), i); - - if (encoding) { - accepts[j++] = encoding; - hasIdentity = hasIdentity || specify('identity', encoding); - minQuality = Math.min(minQuality, encoding.q || 1); - } - } - - if (!hasIdentity) { - /* - * If identity doesn't explicitly appear in the accept-encoding header, - * it's added to the list of acceptable encoding with the lowest q - */ - accepts[j++] = { - encoding: 'identity', - q: minQuality, - i: i - }; - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse an encoding from the Accept-Encoding header. - * @private - */ - -function parseEncoding(str, i) { - var match = simpleEncodingRegExp.exec(str); - if (!match) return null; - - var encoding = match[1]; - var q = 1; - if (match[2]) { - var params = match[2].split(';'); - for (var j = 0; j < params.length; j++) { - var p = params[j].trim().split('='); - if (p[0] === 'q') { - q = parseFloat(p[1]); - break; - } - } - } - - return { - encoding: encoding, - q: q, - i: i - }; -} - -/** - * Get the priority of an encoding. - * @private - */ - -function getEncodingPriority(encoding, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(encoding, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the encoding. - * @private - */ - -function specify(encoding, spec, index) { - var s = 0; - if(spec.encoding.toLowerCase() === encoding.toLowerCase()){ - s |= 1; - } else if (spec.encoding !== '*' ) { - return null - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s - } -}; - -/** - * Get the preferred encodings from an Accept-Encoding header. - * @public - */ - -function preferredEncodings(accept, provided) { - var accepts = parseAcceptEncoding(accept || ''); - - if (!provided) { - // sorted list of all encodings - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullEncoding); - } - - var priorities = provided.map(function getPriority(type, index) { - return getEncodingPriority(type, accepts, index); - }); - - // sorted list of accepted encodings - return priorities.filter(isQuality).sort(compareSpecs).map(function getEncoding(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full encoding string. - * @private - */ - -function getFullEncoding(spec) { - return spec.encoding; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/negotiator/lib/language.js b/mcp-server/node_modules/negotiator/lib/language.js deleted file mode 100644 index a231672..0000000 --- a/mcp-server/node_modules/negotiator/lib/language.js +++ /dev/null @@ -1,179 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredLanguages; -module.exports.preferredLanguages = preferredLanguages; - -/** - * Module variables. - * @private - */ - -var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/; - -/** - * Parse the Accept-Language header. - * @private - */ - -function parseAcceptLanguage(accept) { - var accepts = accept.split(','); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var language = parseLanguage(accepts[i].trim(), i); - - if (language) { - accepts[j++] = language; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a language from the Accept-Language header. - * @private - */ - -function parseLanguage(str, i) { - var match = simpleLanguageRegExp.exec(str); - if (!match) return null; - - var prefix = match[1] - var suffix = match[2] - var full = prefix - - if (suffix) full += "-" + suffix; - - var q = 1; - if (match[3]) { - var params = match[3].split(';') - for (var j = 0; j < params.length; j++) { - var p = params[j].split('='); - if (p[0] === 'q') q = parseFloat(p[1]); - } - } - - return { - prefix: prefix, - suffix: suffix, - q: q, - i: i, - full: full - }; -} - -/** - * Get the priority of a language. - * @private - */ - -function getLanguagePriority(language, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(language, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the language. - * @private - */ - -function specify(language, spec, index) { - var p = parseLanguage(language) - if (!p) return null; - var s = 0; - if(spec.full.toLowerCase() === p.full.toLowerCase()){ - s |= 4; - } else if (spec.prefix.toLowerCase() === p.full.toLowerCase()) { - s |= 2; - } else if (spec.full.toLowerCase() === p.prefix.toLowerCase()) { - s |= 1; - } else if (spec.full !== '*' ) { - return null - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s - } -}; - -/** - * Get the preferred languages from an Accept-Language header. - * @public - */ - -function preferredLanguages(accept, provided) { - // RFC 2616 sec 14.4: no header = * - var accepts = parseAcceptLanguage(accept === undefined ? '*' : accept || ''); - - if (!provided) { - // sorted list of all languages - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullLanguage); - } - - var priorities = provided.map(function getPriority(type, index) { - return getLanguagePriority(type, accepts, index); - }); - - // sorted list of accepted languages - return priorities.filter(isQuality).sort(compareSpecs).map(function getLanguage(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full language string. - * @private - */ - -function getFullLanguage(spec) { - return spec.full; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} diff --git a/mcp-server/node_modules/negotiator/lib/mediaType.js b/mcp-server/node_modules/negotiator/lib/mediaType.js deleted file mode 100644 index 67309dd..0000000 --- a/mcp-server/node_modules/negotiator/lib/mediaType.js +++ /dev/null @@ -1,294 +0,0 @@ -/** - * negotiator - * Copyright(c) 2012 Isaac Z. Schlueter - * Copyright(c) 2014 Federico Romero - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict'; - -/** - * Module exports. - * @public - */ - -module.exports = preferredMediaTypes; -module.exports.preferredMediaTypes = preferredMediaTypes; - -/** - * Module variables. - * @private - */ - -var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/; - -/** - * Parse the Accept header. - * @private - */ - -function parseAccept(accept) { - var accepts = splitMediaTypes(accept); - - for (var i = 0, j = 0; i < accepts.length; i++) { - var mediaType = parseMediaType(accepts[i].trim(), i); - - if (mediaType) { - accepts[j++] = mediaType; - } - } - - // trim accepts - accepts.length = j; - - return accepts; -} - -/** - * Parse a media type from the Accept header. - * @private - */ - -function parseMediaType(str, i) { - var match = simpleMediaTypeRegExp.exec(str); - if (!match) return null; - - var params = Object.create(null); - var q = 1; - var subtype = match[2]; - var type = match[1]; - - if (match[3]) { - var kvps = splitParameters(match[3]).map(splitKeyValuePair); - - for (var j = 0; j < kvps.length; j++) { - var pair = kvps[j]; - var key = pair[0].toLowerCase(); - var val = pair[1]; - - // get the value, unwrapping quotes - var value = val && val[0] === '"' && val[val.length - 1] === '"' - ? val.substr(1, val.length - 2) - : val; - - if (key === 'q') { - q = parseFloat(value); - break; - } - - // store parameter - params[key] = value; - } - } - - return { - type: type, - subtype: subtype, - params: params, - q: q, - i: i - }; -} - -/** - * Get the priority of a media type. - * @private - */ - -function getMediaTypePriority(type, accepted, index) { - var priority = {o: -1, q: 0, s: 0}; - - for (var i = 0; i < accepted.length; i++) { - var spec = specify(type, accepted[i], index); - - if (spec && (priority.s - spec.s || priority.q - spec.q || priority.o - spec.o) < 0) { - priority = spec; - } - } - - return priority; -} - -/** - * Get the specificity of the media type. - * @private - */ - -function specify(type, spec, index) { - var p = parseMediaType(type); - var s = 0; - - if (!p) { - return null; - } - - if(spec.type.toLowerCase() == p.type.toLowerCase()) { - s |= 4 - } else if(spec.type != '*') { - return null; - } - - if(spec.subtype.toLowerCase() == p.subtype.toLowerCase()) { - s |= 2 - } else if(spec.subtype != '*') { - return null; - } - - var keys = Object.keys(spec.params); - if (keys.length > 0) { - if (keys.every(function (k) { - return spec.params[k] == '*' || (spec.params[k] || '').toLowerCase() == (p.params[k] || '').toLowerCase(); - })) { - s |= 1 - } else { - return null - } - } - - return { - i: index, - o: spec.i, - q: spec.q, - s: s, - } -} - -/** - * Get the preferred media types from an Accept header. - * @public - */ - -function preferredMediaTypes(accept, provided) { - // RFC 2616 sec 14.2: no header = */* - var accepts = parseAccept(accept === undefined ? '*/*' : accept || ''); - - if (!provided) { - // sorted list of all types - return accepts - .filter(isQuality) - .sort(compareSpecs) - .map(getFullType); - } - - var priorities = provided.map(function getPriority(type, index) { - return getMediaTypePriority(type, accepts, index); - }); - - // sorted list of accepted types - return priorities.filter(isQuality).sort(compareSpecs).map(function getType(priority) { - return provided[priorities.indexOf(priority)]; - }); -} - -/** - * Compare two specs. - * @private - */ - -function compareSpecs(a, b) { - return (b.q - a.q) || (b.s - a.s) || (a.o - b.o) || (a.i - b.i) || 0; -} - -/** - * Get full type string. - * @private - */ - -function getFullType(spec) { - return spec.type + '/' + spec.subtype; -} - -/** - * Check if a spec has any quality. - * @private - */ - -function isQuality(spec) { - return spec.q > 0; -} - -/** - * Count the number of quotes in a string. - * @private - */ - -function quoteCount(string) { - var count = 0; - var index = 0; - - while ((index = string.indexOf('"', index)) !== -1) { - count++; - index++; - } - - return count; -} - -/** - * Split a key value pair. - * @private - */ - -function splitKeyValuePair(str) { - var index = str.indexOf('='); - var key; - var val; - - if (index === -1) { - key = str; - } else { - key = str.substr(0, index); - val = str.substr(index + 1); - } - - return [key, val]; -} - -/** - * Split an Accept header into media types. - * @private - */ - -function splitMediaTypes(accept) { - var accepts = accept.split(','); - - for (var i = 1, j = 0; i < accepts.length; i++) { - if (quoteCount(accepts[j]) % 2 == 0) { - accepts[++j] = accepts[i]; - } else { - accepts[j] += ',' + accepts[i]; - } - } - - // trim accepts - accepts.length = j + 1; - - return accepts; -} - -/** - * Split a string of parameters. - * @private - */ - -function splitParameters(str) { - var parameters = str.split(';'); - - for (var i = 1, j = 0; i < parameters.length; i++) { - if (quoteCount(parameters[j]) % 2 == 0) { - parameters[++j] = parameters[i]; - } else { - parameters[j] += ';' + parameters[i]; - } - } - - // trim parameters - parameters.length = j + 1; - - for (var i = 0; i < parameters.length; i++) { - parameters[i] = parameters[i].trim(); - } - - return parameters; -} diff --git a/mcp-server/node_modules/negotiator/package.json b/mcp-server/node_modules/negotiator/package.json deleted file mode 100644 index 297635f..0000000 --- a/mcp-server/node_modules/negotiator/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "negotiator", - "description": "HTTP content negotiation", - "version": "0.6.3", - "contributors": [ - "Douglas Christopher Wilson ", - "Federico Romero ", - "Isaac Z. Schlueter (http://blog.izs.me/)" - ], - "license": "MIT", - "keywords": [ - "http", - "content negotiation", - "accept", - "accept-language", - "accept-encoding", - "accept-charset" - ], - "repository": "jshttp/negotiator", - "devDependencies": { - "eslint": "7.32.0", - "eslint-plugin-markdown": "2.2.1", - "mocha": "9.1.3", - "nyc": "15.1.0" - }, - "files": [ - "lib/", - "HISTORY.md", - "LICENSE", - "index.js", - "README.md" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --check-leaks --bail test/", - "test-ci": "nyc --reporter=lcov --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/object-assign/index.js b/mcp-server/node_modules/object-assign/index.js deleted file mode 100644 index 0930cf8..0000000 --- a/mcp-server/node_modules/object-assign/index.js +++ /dev/null @@ -1,90 +0,0 @@ -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - -'use strict'; -/* eslint-disable no-unused-vars */ -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } -} - -module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; -}; diff --git a/mcp-server/node_modules/object-assign/license b/mcp-server/node_modules/object-assign/license deleted file mode 100644 index 654d0bf..0000000 --- a/mcp-server/node_modules/object-assign/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/mcp-server/node_modules/object-assign/package.json b/mcp-server/node_modules/object-assign/package.json deleted file mode 100644 index 503eb1e..0000000 --- a/mcp-server/node_modules/object-assign/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "object-assign", - "version": "4.1.1", - "description": "ES2015 `Object.assign()` ponyfill", - "license": "MIT", - "repository": "sindresorhus/object-assign", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "xo && ava", - "bench": "matcha bench.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "object", - "assign", - "extend", - "properties", - "es2015", - "ecmascript", - "harmony", - "ponyfill", - "prollyfill", - "polyfill", - "shim", - "browser" - ], - "devDependencies": { - "ava": "^0.16.0", - "lodash": "^4.16.4", - "matcha": "^0.7.0", - "xo": "^0.16.0" - } -} diff --git a/mcp-server/node_modules/object-assign/readme.md b/mcp-server/node_modules/object-assign/readme.md deleted file mode 100644 index 1be09d3..0000000 --- a/mcp-server/node_modules/object-assign/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign) - -> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com) - - -## Use the built-in - -Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari), -support `Object.assign()` :tada:. If you target only those environments, then by all -means, use `Object.assign()` instead of this package. - - -## Install - -``` -$ npm install --save object-assign -``` - - -## Usage - -```js -const objectAssign = require('object-assign'); - -objectAssign({foo: 0}, {bar: 1}); -//=> {foo: 0, bar: 1} - -// multiple sources -objectAssign({foo: 0}, {bar: 1}, {baz: 2}); -//=> {foo: 0, bar: 1, baz: 2} - -// overwrites equal keys -objectAssign({foo: 0}, {foo: 1}, {foo: 2}); -//=> {foo: 2} - -// ignores null and undefined sources -objectAssign({foo: 0}, null, {bar: 1}, undefined); -//=> {foo: 0, bar: 1} -``` - - -## API - -### objectAssign(target, [source, ...]) - -Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones. - - -## Resources - -- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign) - - -## Related - -- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/mcp-server/node_modules/object-inspect/.eslintrc b/mcp-server/node_modules/object-inspect/.eslintrc deleted file mode 100644 index 21f9039..0000000 --- a/mcp-server/node_modules/object-inspect/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "extends": "@ljharb", - "rules": { - "complexity": 0, - "func-style": [2, "declaration"], - "indent": [2, 4], - "max-lines": 1, - "max-lines-per-function": 1, - "max-params": [2, 4], - "max-statements": 0, - "max-statements-per-line": [2, { "max": 2 }], - "no-magic-numbers": 0, - "no-param-reassign": 1, - "strict": 0, // TODO - }, - "overrides": [ - { - "files": ["test/**", "test-*", "example/**"], - "extends": "@ljharb/eslint-config/tests", - "rules": { - "id-length": 0, - }, - }, - { - "files": ["example/**"], - "rules": { - "no-console": 0, - }, - }, - { - "files": ["test/browser/**"], - "env": { - "browser": true, - }, - }, - { - "files": ["test/bigint*"], - "rules": { - "new-cap": [2, { "capIsNewExceptions": ["BigInt"] }], - }, - }, - { - "files": "index.js", - "globals": { - "HTMLElement": false, - }, - "rules": { - "no-use-before-define": 1, - }, - }, - ], -} diff --git a/mcp-server/node_modules/object-inspect/.github/FUNDING.yml b/mcp-server/node_modules/object-inspect/.github/FUNDING.yml deleted file mode 100644 index 730276b..0000000 --- a/mcp-server/node_modules/object-inspect/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/object-inspect -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/mcp-server/node_modules/object-inspect/.nycrc b/mcp-server/node_modules/object-inspect/.nycrc deleted file mode 100644 index 58a5db7..0000000 --- a/mcp-server/node_modules/object-inspect/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "instrumentation": false, - "sourceMap": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "example", - "test", - "test-core-js.js" - ] -} diff --git a/mcp-server/node_modules/object-inspect/CHANGELOG.md b/mcp-server/node_modules/object-inspect/CHANGELOG.md deleted file mode 100644 index bdf9002..0000000 --- a/mcp-server/node_modules/object-inspect/CHANGELOG.md +++ /dev/null @@ -1,424 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.13.4](https://github.com/inspect-js/object-inspect/compare/v1.13.3...v1.13.4) - 2025-02-04 - -### Commits - -- [Fix] avoid being fooled by a `Symbol.toStringTag` [`fa5870d`](https://github.com/inspect-js/object-inspect/commit/fa5870da468a525d2f20193700f70752f506cbf7) -- [Tests] fix tests in node v6.0 - v6.4 [`2abfe1b`](https://github.com/inspect-js/object-inspect/commit/2abfe1bc3c69f9293c07c5cd65a9d7d87a628b84) -- [Dev Deps] update `es-value-fixtures`, `for-each`, `has-symbols` [`3edfb01`](https://github.com/inspect-js/object-inspect/commit/3edfb01cc8cce220fba0dfdfe2dc8bc955758cdd) - -## [v1.13.3](https://github.com/inspect-js/object-inspect/compare/v1.13.2...v1.13.3) - 2024-11-09 - -### Commits - -- [actions] split out node 10-20, and 20+ [`44395a8`](https://github.com/inspect-js/object-inspect/commit/44395a8fc1deda6718a5e125e86b9ffcaa1c7580) -- [Fix] `quoteStyle`: properly escape only the containing quotes [`5137f8f`](https://github.com/inspect-js/object-inspect/commit/5137f8f7bea69a7fc671bb683fd35f244f38fc52) -- [Refactor] clean up `quoteStyle` code [`450680c`](https://github.com/inspect-js/object-inspect/commit/450680cd50de4e689ee3b8e1d6db3a1bcf3fc18c) -- [Tests] add `quoteStyle` escaping tests [`e997c59`](https://github.com/inspect-js/object-inspect/commit/e997c595aeaea84fd98ca35d7e1c3b5ab3ae26e0) -- [Dev Deps] update `auto-changelog`, `es-value-fixtures`, `tape` [`d5a469c`](https://github.com/inspect-js/object-inspect/commit/d5a469c99ec07ccaeafc36ac4b36a93285086d48) -- [Tests] replace `aud` with `npm audit` [`fb7815f`](https://github.com/inspect-js/object-inspect/commit/fb7815f9b72cae277a04f65bbb0543f85b88be62) -- [Dev Deps] update `mock-property` [`11c817b`](https://github.com/inspect-js/object-inspect/commit/11c817bf10392aa017755962ba6bc89d731359ee) - -## [v1.13.2](https://github.com/inspect-js/object-inspect/compare/v1.13.1...v1.13.2) - 2024-06-21 - -### Commits - -- [readme] update badges [`8a51e6b`](https://github.com/inspect-js/object-inspect/commit/8a51e6bedaf389ec40cc4659e9df53e8543d176e) -- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`ef05f58`](https://github.com/inspect-js/object-inspect/commit/ef05f58c9761a41416ab907299bf0fa79517014b) -- [Dev Deps] update `error-cause`, `has-tostringtag`, `tape` [`c0c6c26`](https://github.com/inspect-js/object-inspect/commit/c0c6c26c44cee6671f7c5d43d2b91d27c5c00d90) -- [Fix] Don't throw when `global` is not defined [`d4d0965`](https://github.com/inspect-js/object-inspect/commit/d4d096570f7dbd0e03266a96de11d05eb7b63e0f) -- [meta] add missing `engines.node` [`17a352a`](https://github.com/inspect-js/object-inspect/commit/17a352af6fe1ba6b70a19081674231eb1a50c940) -- [Dev Deps] update `globalthis` [`9c08884`](https://github.com/inspect-js/object-inspect/commit/9c08884aa662a149e2f11403f413927736b97da7) -- [Dev Deps] update `error-cause` [`6af352d`](https://github.com/inspect-js/object-inspect/commit/6af352d7c3929a4cc4c55768c27bf547a5e900f4) -- [Dev Deps] update `npmignore` [`94e617d`](https://github.com/inspect-js/object-inspect/commit/94e617d38831722562fa73dff4c895746861d267) -- [Dev Deps] update `mock-property` [`2ac24d7`](https://github.com/inspect-js/object-inspect/commit/2ac24d7e58cd388ad093c33249e413e05bbfd6c3) -- [Dev Deps] update `tape` [`46125e5`](https://github.com/inspect-js/object-inspect/commit/46125e58f1d1dcfb170ed3d1ea69da550ea8d77b) - -## [v1.13.1](https://github.com/inspect-js/object-inspect/compare/v1.13.0...v1.13.1) - 2023-10-19 - -### Commits - -- [Fix] in IE 8, global can !== window despite them being prototypes of each other [`30d0859`](https://github.com/inspect-js/object-inspect/commit/30d0859dc4606cf75c2410edcd5d5c6355f8d372) - -## [v1.13.0](https://github.com/inspect-js/object-inspect/compare/v1.12.3...v1.13.0) - 2023-10-14 - -### Commits - -- [New] add special handling for the global object [`431bab2`](https://github.com/inspect-js/object-inspect/commit/431bab21a490ee51d35395966a504501e8c685da) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`fd4f619`](https://github.com/inspect-js/object-inspect/commit/fd4f6193562b4b0e95dcf5c0201b4e8cbbc4f58d) -- [Dev Deps] update `mock-property`, `tape` [`b453f6c`](https://github.com/inspect-js/object-inspect/commit/b453f6ceeebf8a1b738a1029754092e0367a4134) -- [Dev Deps] update `error-cause` [`e8ffc57`](https://github.com/inspect-js/object-inspect/commit/e8ffc577d73b92bb6a4b00c44f14e3319e374888) -- [Dev Deps] update `tape` [`054b8b9`](https://github.com/inspect-js/object-inspect/commit/054b8b9b98633284cf989e582450ebfbbe53503c) -- [Dev Deps] temporarily remove `aud` due to breaking change in transitive deps [`2476845`](https://github.com/inspect-js/object-inspect/commit/2476845e0678dd290c541c81cd3dec8420782c52) -- [Dev Deps] pin `glob`, since v10.3.8+ requires a broken `jackspeak` [`383fa5e`](https://github.com/inspect-js/object-inspect/commit/383fa5eebc0afd705cc778a4b49d8e26452e49a8) -- [Dev Deps] pin `jackspeak` since 2.1.2+ depends on npm aliases, which kill the install process in npm < 6 [`68c244c`](https://github.com/inspect-js/object-inspect/commit/68c244c5174cdd877e5dcb8ee90aa3f44b2f25be) - -## [v1.12.3](https://github.com/inspect-js/object-inspect/compare/v1.12.2...v1.12.3) - 2023-01-12 - -### Commits - -- [Fix] in eg FF 24, collections lack forEach [`75fc226`](https://github.com/inspect-js/object-inspect/commit/75fc22673c82d45f28322b1946bb0eb41b672b7f) -- [actions] update rebase action to use reusable workflow [`250a277`](https://github.com/inspect-js/object-inspect/commit/250a277a095e9dacc029ab8454dcfc15de549dcd) -- [Dev Deps] update `aud`, `es-value-fixtures`, `tape` [`66a19b3`](https://github.com/inspect-js/object-inspect/commit/66a19b3209ccc3c5ef4b34c3cb0160e65d1ce9d5) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `error-cause` [`c43d332`](https://github.com/inspect-js/object-inspect/commit/c43d3324b48384a16fd3dc444e5fc589d785bef3) -- [Tests] add `@pkgjs/support` to `postlint` [`e2618d2`](https://github.com/inspect-js/object-inspect/commit/e2618d22a7a3fa361b6629b53c1752fddc9c4d80) - -## [v1.12.2](https://github.com/inspect-js/object-inspect/compare/v1.12.1...v1.12.2) - 2022-05-26 - -### Commits - -- [Fix] use `util.inspect` for a custom inspection symbol method [`e243bf2`](https://github.com/inspect-js/object-inspect/commit/e243bf2eda6c4403ac6f1146fddb14d12e9646c1) -- [meta] add support info [`ca20ba3`](https://github.com/inspect-js/object-inspect/commit/ca20ba35713c17068ca912a86c542f5e8acb656c) -- [Fix] ignore `cause` in node v16.9 and v16.10 where it has a bug [`86aa553`](https://github.com/inspect-js/object-inspect/commit/86aa553a4a455562c2c56f1540f0bf857b9d314b) - -## [v1.12.1](https://github.com/inspect-js/object-inspect/compare/v1.12.0...v1.12.1) - 2022-05-21 - -### Commits - -- [Tests] use `mock-property` [`4ec8893`](https://github.com/inspect-js/object-inspect/commit/4ec8893ea9bfd28065ca3638cf6762424bf44352) -- [meta] use `npmignore` to autogenerate an npmignore file [`07f868c`](https://github.com/inspect-js/object-inspect/commit/07f868c10bd25a9d18686528339bb749c211fc9a) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`b05244b`](https://github.com/inspect-js/object-inspect/commit/b05244b4f331e00c43b3151bc498041be77ccc91) -- [Dev Deps] update `@ljharb/eslint-config`, `error-cause`, `es-value-fixtures`, `functions-have-names`, `tape` [`d037398`](https://github.com/inspect-js/object-inspect/commit/d037398dcc5d531532e4c19c4a711ed677f579c1) -- [Fix] properly handle callable regexes in older engines [`848fe48`](https://github.com/inspect-js/object-inspect/commit/848fe48bd6dd0064ba781ee6f3c5e54a94144c37) - -## [v1.12.0](https://github.com/inspect-js/object-inspect/compare/v1.11.1...v1.12.0) - 2021-12-18 - -### Commits - -- [New] add `numericSeparator` boolean option [`2d2d537`](https://github.com/inspect-js/object-inspect/commit/2d2d537f5359a4300ce1c10241369f8024f89e11) -- [Robustness] cache more prototype methods [`191533d`](https://github.com/inspect-js/object-inspect/commit/191533da8aec98a05eadd73a5a6e979c9c8653e8) -- [New] ensure an Error’s `cause` is displayed [`53bc2ce`](https://github.com/inspect-js/object-inspect/commit/53bc2cee4e5a9cc4986f3cafa22c0685f340715e) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`bc164b6`](https://github.com/inspect-js/object-inspect/commit/bc164b6e2e7d36b263970f16f54de63048b84a36) -- [Robustness] cache `RegExp.prototype.test` [`a314ab8`](https://github.com/inspect-js/object-inspect/commit/a314ab8271b905cbabc594c82914d2485a8daf12) -- [meta] fix auto-changelog settings [`5ed0983`](https://github.com/inspect-js/object-inspect/commit/5ed0983be72f73e32e2559997517a95525c7e20d) - -## [v1.11.1](https://github.com/inspect-js/object-inspect/compare/v1.11.0...v1.11.1) - 2021-12-05 - -### Commits - -- [meta] add `auto-changelog` [`7dbdd22`](https://github.com/inspect-js/object-inspect/commit/7dbdd228401d6025d8b7391476d88aee9ea9bbdf) -- [actions] reuse common workflows [`c8823bc`](https://github.com/inspect-js/object-inspect/commit/c8823bc0a8790729680709d45fb6e652432e91aa) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`7532b12`](https://github.com/inspect-js/object-inspect/commit/7532b120598307497b712890f75af8056f6d37a6) -- [Refactor] use `has-tostringtag` to behave correctly in the presence of symbol shams [`94abb5d`](https://github.com/inspect-js/object-inspect/commit/94abb5d4e745bf33253942dea86b3e538d2ff6c6) -- [actions] update codecov uploader [`5ed5102`](https://github.com/inspect-js/object-inspect/commit/5ed51025267a00e53b1341357315490ac4eb0874) -- [Dev Deps] update `eslint`, `tape` [`37b2ad2`](https://github.com/inspect-js/object-inspect/commit/37b2ad26c08d94bfd01d5d07069a0b28ef4e2ad7) -- [meta] add `sideEffects` flag [`d341f90`](https://github.com/inspect-js/object-inspect/commit/d341f905ef8bffa6a694cda6ddc5ba343532cd4f) - -## [v1.11.0](https://github.com/inspect-js/object-inspect/compare/v1.10.3...v1.11.0) - 2021-07-12 - -### Commits - -- [New] `customInspect`: add `symbol` option, to mimic modern util.inspect behavior [`e973a6e`](https://github.com/inspect-js/object-inspect/commit/e973a6e21f8140c5837cf25e9d89bdde88dc3120) -- [Dev Deps] update `eslint` [`05f1cb3`](https://github.com/inspect-js/object-inspect/commit/05f1cb3cbcfe1f238e8b51cf9bc294305b7ed793) - -## [v1.10.3](https://github.com/inspect-js/object-inspect/compare/v1.10.2...v1.10.3) - 2021-05-07 - -### Commits - -- [Fix] handle core-js Symbol shams [`4acfc2c`](https://github.com/inspect-js/object-inspect/commit/4acfc2c4b503498759120eb517abad6d51c9c5d6) -- [readme] update badges [`95c323a`](https://github.com/inspect-js/object-inspect/commit/95c323ad909d6cbabb95dd6015c190ba6db9c1f2) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud` [`cb38f48`](https://github.com/inspect-js/object-inspect/commit/cb38f485de6ec7a95109b5a9bbd0a1deba2f6611) - -## [v1.10.2](https://github.com/inspect-js/object-inspect/compare/v1.10.1...v1.10.2) - 2021-04-17 - -### Commits - -- [Fix] use a robust check for a boxed Symbol [`87f12d6`](https://github.com/inspect-js/object-inspect/commit/87f12d6e69ce530be04659c81a4cd502943acac5) - -## [v1.10.1](https://github.com/inspect-js/object-inspect/compare/v1.10.0...v1.10.1) - 2021-04-17 - -### Commits - -- [Fix] use a robust check for a boxed bigint [`d5ca829`](https://github.com/inspect-js/object-inspect/commit/d5ca8298b6d2e5c7b9334a5b21b96ed95d225c91) - -## [v1.10.0](https://github.com/inspect-js/object-inspect/compare/v1.9.0...v1.10.0) - 2021-04-17 - -### Commits - -- [Tests] increase coverage [`d8abb8a`](https://github.com/inspect-js/object-inspect/commit/d8abb8a62c2f084919df994a433b346e0d87a227) -- [actions] use `node/install` instead of `node/run`; use `codecov` action [`4bfec2e`](https://github.com/inspect-js/object-inspect/commit/4bfec2e30aaef6ddef6cbb1448306f9f8b9520b7) -- [New] respect `Symbol.toStringTag` on objects [`799b58f`](https://github.com/inspect-js/object-inspect/commit/799b58f536a45e4484633a8e9daeb0330835f175) -- [Fix] do not allow Symbol.toStringTag to masquerade as builtins [`d6c5b37`](https://github.com/inspect-js/object-inspect/commit/d6c5b37d7e94427796b82432fb0c8964f033a6ab) -- [New] add `WeakRef` support [`b6d898e`](https://github.com/inspect-js/object-inspect/commit/b6d898ee21868c780a7ee66b28532b5b34ed7f09) -- [meta] do not publish github action workflow files [`918cdfc`](https://github.com/inspect-js/object-inspect/commit/918cdfc4b6fe83f559ff6ef04fe66201e3ff5cbd) -- [meta] create `FUNDING.yml` [`0bb5fc5`](https://github.com/inspect-js/object-inspect/commit/0bb5fc516dbcd2cd728bd89cee0b580acc5ce301) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`22c8dc0`](https://github.com/inspect-js/object-inspect/commit/22c8dc0cac113d70f4781e49a950070923a671be) -- [meta] use `prepublishOnly` script for npm 7+ [`e52ee09`](https://github.com/inspect-js/object-inspect/commit/e52ee09e8050b8dbac94ef57f786675567728223) -- [Dev Deps] update `eslint` [`7c4e6fd`](https://github.com/inspect-js/object-inspect/commit/7c4e6fdedcd27cc980e13c9ad834d05a96f3d40c) - -## [v1.9.0](https://github.com/inspect-js/object-inspect/compare/v1.8.0...v1.9.0) - 2020-11-30 - -### Commits - -- [Tests] migrate tests to Github Actions [`d262251`](https://github.com/inspect-js/object-inspect/commit/d262251e13e16d3490b5473672f6b6d6ff86675d) -- [New] add enumerable own Symbols to plain object output [`ee60c03`](https://github.com/inspect-js/object-inspect/commit/ee60c033088cff9d33baa71e59a362a541b48284) -- [Tests] add passing tests [`01ac3e4`](https://github.com/inspect-js/object-inspect/commit/01ac3e4b5a30f97875a63dc9b1416b3bd626afc9) -- [actions] add "Require Allow Edits" action [`c2d7746`](https://github.com/inspect-js/object-inspect/commit/c2d774680cde4ca4af332d84d4121b26f798ba9e) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `core-js` [`70058de`](https://github.com/inspect-js/object-inspect/commit/70058de1579fc54d1d15ed6c2dbe246637ce70ff) -- [Fix] hex characters in strings should be uppercased, to match node `assert` [`6ab8faa`](https://github.com/inspect-js/object-inspect/commit/6ab8faaa0abc08fe7a8e2afd8b39c6f1f0e00113) -- [Tests] run `nyc` on all tests [`4c47372`](https://github.com/inspect-js/object-inspect/commit/4c473727879ddc8e28b599202551ddaaf07b6210) -- [Tests] node 0.8 has an unpredictable property order; fix `groups` test by removing property [`f192069`](https://github.com/inspect-js/object-inspect/commit/f192069a978a3b60e6f0e0d45ac7df260ab9a778) -- [New] add enumerable properties to Function inspect result, per node’s `assert` [`fd38e1b`](https://github.com/inspect-js/object-inspect/commit/fd38e1bc3e2a1dc82091ce3e021917462eee64fc) -- [Tests] fix tests for node < 10, due to regex match `groups` [`2ac6462`](https://github.com/inspect-js/object-inspect/commit/2ac6462cc4f72eaa0b63a8cfee9aabe3008b2330) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`44b59e2`](https://github.com/inspect-js/object-inspect/commit/44b59e2676a7f825ef530dfd19dafb599e3b9456) -- [Robustness] cache `Symbol.prototype.toString` [`f3c2074`](https://github.com/inspect-js/object-inspect/commit/f3c2074d8f32faf8292587c07c9678ea931703dd) -- [Dev Deps] update `eslint` [`9411294`](https://github.com/inspect-js/object-inspect/commit/94112944b9245e3302e25453277876402d207e7f) -- [meta] `require-allow-edits` no longer requires an explicit github token [`36c0220`](https://github.com/inspect-js/object-inspect/commit/36c02205de3c2b0e84d53777c5c9fd54a36c48ab) -- [actions] update rebase checkout action to v2 [`55a39a6`](https://github.com/inspect-js/object-inspect/commit/55a39a64e944f19c6a7d8efddf3df27700f20d14) -- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`f59fd3c`](https://github.com/inspect-js/object-inspect/commit/f59fd3cf406c3a7c7ece140904a80bbc6bacfcca) -- [Dev Deps] update `eslint` [`a492bec`](https://github.com/inspect-js/object-inspect/commit/a492becec644b0155c9c4bc1caf6f9fac11fb2c7) - -## [v1.8.0](https://github.com/inspect-js/object-inspect/compare/v1.7.0...v1.8.0) - 2020-06-18 - -### Fixed - -- [New] add `indent` option [`#27`](https://github.com/inspect-js/object-inspect/issues/27) - -### Commits - -- [Tests] add codecov [`4324cbb`](https://github.com/inspect-js/object-inspect/commit/4324cbb1a2bd7710822a4151ff373570db22453e) -- [New] add `maxStringLength` option [`b3995cb`](https://github.com/inspect-js/object-inspect/commit/b3995cb71e15b5ee127a3094c43994df9d973502) -- [New] add `customInspect` option, to disable custom inspect methods [`28b9179`](https://github.com/inspect-js/object-inspect/commit/28b9179ee802bb3b90810100c11637db90c2fb6d) -- [Tests] add Date and RegExp tests [`3b28eca`](https://github.com/inspect-js/object-inspect/commit/3b28eca57b0367aeadffac604ea09e8bdae7d97b) -- [actions] add automatic rebasing / merge commit blocking [`0d9c6c0`](https://github.com/inspect-js/object-inspect/commit/0d9c6c044e83475ff0bfffb9d35b149834c83a2e) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `tape`; add `aud` [`7c204f2`](https://github.com/inspect-js/object-inspect/commit/7c204f22b9e41bc97147f4d32d4cb045b17769a6) -- [readme] fix repo URLs, remove testling [`34ca9a0`](https://github.com/inspect-js/object-inspect/commit/34ca9a0dabfe75bd311f806a326fadad029909a3) -- [Fix] when truncating a deep array, note it as `[Array]` instead of just `[Object]` [`f74c82d`](https://github.com/inspect-js/object-inspect/commit/f74c82dd0b35386445510deb250f34c41be3ec0e) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`1a8a5ea`](https://github.com/inspect-js/object-inspect/commit/1a8a5ea069ea2bee89d77caedad83ffa23d35711) -- [Fix] do not be fooled by a function’s own `toString` method [`7cb5c65`](https://github.com/inspect-js/object-inspect/commit/7cb5c657a976f94715c19c10556a30f15bb7d5d7) -- [patch] indicate explicitly that anon functions are anonymous, to match node [`81ebdd4`](https://github.com/inspect-js/object-inspect/commit/81ebdd4215005144074bbdff3f6bafa01407910a) -- [Dev Deps] loosen the `core-js` dep [`e7472e8`](https://github.com/inspect-js/object-inspect/commit/e7472e8e242117670560bd995830c2a4d12080f5) -- [Dev Deps] update `tape` [`699827e`](https://github.com/inspect-js/object-inspect/commit/699827e6b37258b5203c33c78c009bf4b0e6a66d) -- [meta] add `safe-publish-latest` [`c5d2868`](https://github.com/inspect-js/object-inspect/commit/c5d2868d6eb33c472f37a20f89ceef2787046088) -- [Dev Deps] update `@ljharb/eslint-config` [`9199501`](https://github.com/inspect-js/object-inspect/commit/919950195d486114ccebacbdf9d74d7f382693b0) - -## [v1.7.0](https://github.com/inspect-js/object-inspect/compare/v1.6.0...v1.7.0) - 2019-11-10 - -### Commits - -- [Tests] use shared travis-ci configs [`19899ed`](https://github.com/inspect-js/object-inspect/commit/19899edbf31f4f8809acf745ce34ad1ce1bfa63b) -- [Tests] add linting [`a00f057`](https://github.com/inspect-js/object-inspect/commit/a00f057d917f66ea26dd37769c6b810ec4af97e8) -- [Tests] lint last file [`2698047`](https://github.com/inspect-js/object-inspect/commit/2698047b58af1e2e88061598ef37a75f228dddf6) -- [Tests] up to `node` `v12.7`, `v11.15`, `v10.16`, `v8.16`, `v6.17` [`589e87a`](https://github.com/inspect-js/object-inspect/commit/589e87a99cadcff4b600e6a303418e9d922836e8) -- [New] add support for `WeakMap` and `WeakSet` [`3ddb3e4`](https://github.com/inspect-js/object-inspect/commit/3ddb3e4e0c8287130c61a12e0ed9c104b1549306) -- [meta] clean up license so github can detect it properly [`27527bb`](https://github.com/inspect-js/object-inspect/commit/27527bb801520c9610c68cc3b55d6f20a2bee56d) -- [Tests] cover `util.inspect.custom` [`36d47b9`](https://github.com/inspect-js/object-inspect/commit/36d47b9c59056a57ef2f1491602c726359561800) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `tape` [`b614eaa`](https://github.com/inspect-js/object-inspect/commit/b614eaac901da0e5c69151f534671f990a94cace) -- [Tests] fix coverage thresholds [`7b7b176`](https://github.com/inspect-js/object-inspect/commit/7b7b176e15f8bd6e8b2f261ff5a493c2fe78d9c2) -- [Tests] bigint tests now can run on unflagged node [`063af31`](https://github.com/inspect-js/object-inspect/commit/063af31ce9cd13c202e3b67c07ba06dc9b7c0f81) -- [Refactor] add early bailout to `isMap` and `isSet` checks [`fc51047`](https://github.com/inspect-js/object-inspect/commit/fc5104714a3671d37e225813db79470d6335683b) -- [meta] add `funding` field [`7f9953a`](https://github.com/inspect-js/object-inspect/commit/7f9953a113eec7b064a6393cf9f90ba15f1d131b) -- [Tests] Fix invalid strict-mode syntax with hexadecimal [`a8b5425`](https://github.com/inspect-js/object-inspect/commit/a8b542503b4af1599a275209a1a99f5fdedb1ead) -- [Dev Deps] update `@ljharb/eslint-config` [`98df157`](https://github.com/inspect-js/object-inspect/commit/98df1577314d9188a3fc3f17fdcf2fba697ae1bd) -- add copyright to LICENSE [`bb69fd0`](https://github.com/inspect-js/object-inspect/commit/bb69fd017a062d299e44da1f9b2c7dcd67f621e6) -- [Tests] use `npx aud` in `posttest` [`4838353`](https://github.com/inspect-js/object-inspect/commit/4838353593974cf7f905b9ef04c03c094f0cdbe2) -- [Tests] move `0.6` to allowed failures, because it won‘t build on travis [`1bff32a`](https://github.com/inspect-js/object-inspect/commit/1bff32aa52e8aea687f0856b28ba754b3e43ebf7) - -## [v1.6.0](https://github.com/inspect-js/object-inspect/compare/v1.5.0...v1.6.0) - 2018-05-02 - -### Commits - -- [New] add support for boxed BigInt primitives [`356c66a`](https://github.com/inspect-js/object-inspect/commit/356c66a410e7aece7162c8319880a5ef647beaa9) -- [Tests] up to `node` `v10.0`, `v9.11`, `v8.11`, `v6.14`, `v4.9` [`c77b65b`](https://github.com/inspect-js/object-inspect/commit/c77b65bba593811b906b9ec57561c5cba92e2db3) -- [New] Add support for upcoming `BigInt` [`1ac548e`](https://github.com/inspect-js/object-inspect/commit/1ac548e4b27e26466c28c9a5e63e5d4e0591c31f) -- [Tests] run bigint tests in CI with --harmony-bigint flag [`d31b738`](https://github.com/inspect-js/object-inspect/commit/d31b73831880254b5c6cf5691cda9a149fbc5f04) -- [Dev Deps] update `core-js`, `tape` [`ff9eff6`](https://github.com/inspect-js/object-inspect/commit/ff9eff67113341ee1aaf80c1c22d683f43bfbccf) -- [Docs] fix example to use `safer-buffer` [`48cae12`](https://github.com/inspect-js/object-inspect/commit/48cae12a73ec6cacc955175bc56bbe6aee6a211f) - -## [v1.5.0](https://github.com/inspect-js/object-inspect/compare/v1.4.1...v1.5.0) - 2017-12-25 - -### Commits - -- [New] add `quoteStyle` option [`f5a72d2`](https://github.com/inspect-js/object-inspect/commit/f5a72d26edb3959b048f74c056ca7100a6b091e4) -- [Tests] add more test coverage [`30ebe4e`](https://github.com/inspect-js/object-inspect/commit/30ebe4e1fa943b99ecbb85be7614256d536e2759) -- [Tests] require 0.6 to pass [`99a008c`](https://github.com/inspect-js/object-inspect/commit/99a008ccace189a60fd7da18bf00e32c9572b980) - -## [v1.4.1](https://github.com/inspect-js/object-inspect/compare/v1.4.0...v1.4.1) - 2017-12-19 - -### Commits - -- [Tests] up to `node` `v9.3`, `v8.9`, `v6.12` [`6674476`](https://github.com/inspect-js/object-inspect/commit/6674476cc56acaac1bde96c84fed5ef631911906) -- [Fix] `inspect(Object(-0))` should be “Object(-0)”, not “Object(0)” [`d0a031f`](https://github.com/inspect-js/object-inspect/commit/d0a031f1cbb3024ee9982bfe364dd18a7e4d1bd3) - -## [v1.4.0](https://github.com/inspect-js/object-inspect/compare/v1.3.0...v1.4.0) - 2017-10-24 - -### Commits - -- [Tests] add `npm run coverage` [`3b48fb2`](https://github.com/inspect-js/object-inspect/commit/3b48fb25db037235eeb808f0b2830aad7aa36f70) -- [Tests] remove commented-out osx builds [`71e24db`](https://github.com/inspect-js/object-inspect/commit/71e24db8ad6ee3b9b381c5300b0475f2ba595a73) -- [New] add support for `util.inspect.custom`, in node only. [`20cca77`](https://github.com/inspect-js/object-inspect/commit/20cca7762d7e17f15b21a90793dff84acce155df) -- [Tests] up to `node` `v8.6`; use `nvm install-latest-npm` to ensure new npm doesn’t break old node [`252952d`](https://github.com/inspect-js/object-inspect/commit/252952d230d8065851dd3d4d5fe8398aae068529) -- [Tests] up to `node` `v8.8` [`4aa868d`](https://github.com/inspect-js/object-inspect/commit/4aa868d3a62914091d489dd6ec6eed194ee67cd3) -- [Dev Deps] update `core-js`, `tape` [`59483d1`](https://github.com/inspect-js/object-inspect/commit/59483d1df418f852f51fa0db7b24aa6b0209a27a) - -## [v1.3.0](https://github.com/inspect-js/object-inspect/compare/v1.2.2...v1.3.0) - 2017-07-31 - -### Fixed - -- [Fix] Map/Set: work around core-js bug < v2.5.0 [`#9`](https://github.com/inspect-js/object-inspect/issues/9) - -### Commits - -- [New] add support for arrays with additional object keys [`0d19937`](https://github.com/inspect-js/object-inspect/commit/0d199374ee37959e51539616666f420ccb29acb9) -- [Tests] up to `node` `v8.2`, `v7.10`, `v6.11`; fix new npm breaking on older nodes [`e24784a`](https://github.com/inspect-js/object-inspect/commit/e24784a90c49117787157a12a63897c49cf89bbb) -- Only apps should have lockfiles [`c6faebc`](https://github.com/inspect-js/object-inspect/commit/c6faebcb2ee486a889a4a1c4d78c0776c7576185) -- [Dev Deps] update `tape` [`7345a0a`](https://github.com/inspect-js/object-inspect/commit/7345a0aeba7e91b888a079c10004d17696a7f586) - -## [v1.2.2](https://github.com/inspect-js/object-inspect/compare/v1.2.1...v1.2.2) - 2017-03-24 - -### Commits - -- [Tests] up to `node` `v7.7`, `v6.10`, `v4.8`; improve test matrix [`a2ddc15`](https://github.com/inspect-js/object-inspect/commit/a2ddc15a1f2c65af18076eea1c0eb9cbceb478a0) -- [Tests] up to `node` `v7.0`, `v6.9`, `v5.12`, `v4.6`, `io.js` `v3.3`; improve test matrix [`a48949f`](https://github.com/inspect-js/object-inspect/commit/a48949f6b574b2d4d2298109d8e8d0eb3e7a83e7) -- [Performance] check for primitive types as early as possible. [`3b8092a`](https://github.com/inspect-js/object-inspect/commit/3b8092a2a4deffd0575f94334f00194e2d48dad3) -- [Refactor] remove unneeded `else`s. [`7255034`](https://github.com/inspect-js/object-inspect/commit/725503402e08de4f96f6bf2d8edef44ac36f26b6) -- [Refactor] avoid recreating `lowbyte` function every time. [`81edd34`](https://github.com/inspect-js/object-inspect/commit/81edd3475bd15bdd18e84de7472033dcf5004aaa) -- [Fix] differentiate -0 from 0 [`521d345`](https://github.com/inspect-js/object-inspect/commit/521d3456b009da7bf1c5785c8a9df5a9f8718264) -- [Refactor] move object key gathering into separate function [`aca6265`](https://github.com/inspect-js/object-inspect/commit/aca626536eaeef697196c6e9db3e90e7e0355b6a) -- [Refactor] consolidate wrapping logic for boxed primitives into a function. [`4e440cd`](https://github.com/inspect-js/object-inspect/commit/4e440cd9065df04802a2a1dead03f48c353ca301) -- [Robustness] use `typeof` instead of comparing to literal `undefined` [`5ca6f60`](https://github.com/inspect-js/object-inspect/commit/5ca6f601937506daff8ed2fcf686363b55807b69) -- [Refactor] consolidate Map/Set notations. [`4e576e5`](https://github.com/inspect-js/object-inspect/commit/4e576e5d7ed2f9ec3fb7f37a0d16732eb10758a9) -- [Tests] ensure that this function remains anonymous, despite ES6 name inference. [`7540ae5`](https://github.com/inspect-js/object-inspect/commit/7540ae591278756db614fa4def55ca413150e1a3) -- [Refactor] explicitly coerce Error objects to strings. [`7f4ca84`](https://github.com/inspect-js/object-inspect/commit/7f4ca8424ee8dc2c0ca5a422d94f7fac40327261) -- [Refactor] split up `var` declarations for debuggability [`6f2c11e`](https://github.com/inspect-js/object-inspect/commit/6f2c11e6a85418586a00292dcec5e97683f89bc3) -- [Robustness] cache `Object.prototype.toString` [`df44a20`](https://github.com/inspect-js/object-inspect/commit/df44a20adfccf31529d60d1df2079bfc3c836e27) -- [Dev Deps] update `tape` [`3ec714e`](https://github.com/inspect-js/object-inspect/commit/3ec714eba57bc3f58a6eb4fca1376f49e70d300a) -- [Dev Deps] update `tape` [`beb72d9`](https://github.com/inspect-js/object-inspect/commit/beb72d969653747d7cde300393c28755375329b0) - -## [v1.2.1](https://github.com/inspect-js/object-inspect/compare/v1.2.0...v1.2.1) - 2016-04-09 - -### Fixed - -- [Fix] fix Boolean `false` object inspection. [`#7`](https://github.com/substack/object-inspect/pull/7) - -## [v1.2.0](https://github.com/inspect-js/object-inspect/compare/v1.1.0...v1.2.0) - 2016-04-09 - -### Fixed - -- [New] add support for inspecting String/Number/Boolean objects. [`#6`](https://github.com/inspect-js/object-inspect/issues/6) - -### Commits - -- [Dev Deps] update `tape` [`742caa2`](https://github.com/inspect-js/object-inspect/commit/742caa262cf7af4c815d4821c8bd0129c1446432) - -## [v1.1.0](https://github.com/inspect-js/object-inspect/compare/1.0.2...v1.1.0) - 2015-12-14 - -### Merged - -- [New] add ES6 Map/Set support. [`#4`](https://github.com/inspect-js/object-inspect/pull/4) - -### Fixed - -- [New] add ES6 Map/Set support. [`#3`](https://github.com/inspect-js/object-inspect/issues/3) - -### Commits - -- Update `travis.yml` to test on bunches of `iojs` and `node` versions. [`4c1fd65`](https://github.com/inspect-js/object-inspect/commit/4c1fd65cc3bd95307e854d114b90478324287fd2) -- [Dev Deps] update `tape` [`88a907e`](https://github.com/inspect-js/object-inspect/commit/88a907e33afbe408e4b5d6e4e42a33143f88848c) - -## [1.0.2](https://github.com/inspect-js/object-inspect/compare/1.0.1...1.0.2) - 2015-08-07 - -### Commits - -- [Fix] Cache `Object.prototype.hasOwnProperty` in case it's deleted later. [`1d0075d`](https://github.com/inspect-js/object-inspect/commit/1d0075d3091dc82246feeb1f9871cb2b8ed227b3) -- [Dev Deps] Update `tape` [`ca8d5d7`](https://github.com/inspect-js/object-inspect/commit/ca8d5d75635ddbf76f944e628267581e04958457) -- gitignore node_modules since this is a reusable modules. [`ed41407`](https://github.com/inspect-js/object-inspect/commit/ed41407811743ca530cdeb28f982beb96026af82) - -## [1.0.1](https://github.com/inspect-js/object-inspect/compare/1.0.0...1.0.1) - 2015-07-19 - -### Commits - -- Make `inspect` work with symbol primitives and objects, including in node 0.11 and 0.12. [`ddf1b94`](https://github.com/inspect-js/object-inspect/commit/ddf1b94475ab951f1e3bccdc0a48e9073cfbfef4) -- bump tape [`103d674`](https://github.com/inspect-js/object-inspect/commit/103d67496b504bdcfdd765d303a773f87ec106e2) -- use newer travis config [`d497276`](https://github.com/inspect-js/object-inspect/commit/d497276c1da14234bb5098a59cf20de75fbc316a) - -## [1.0.0](https://github.com/inspect-js/object-inspect/compare/0.4.0...1.0.0) - 2014-08-05 - -### Commits - -- error inspect works properly [`260a22d`](https://github.com/inspect-js/object-inspect/commit/260a22d134d3a8a482c67d52091c6040c34f4299) -- seen coverage [`57269e8`](https://github.com/inspect-js/object-inspect/commit/57269e8baa992a7439047f47325111fdcbcb8417) -- htmlelement instance coverage [`397ffe1`](https://github.com/inspect-js/object-inspect/commit/397ffe10a1980350868043ef9de65686d438979f) -- more element coverage [`6905cc2`](https://github.com/inspect-js/object-inspect/commit/6905cc2f7df35600177e613b0642b4df5efd3eca) -- failing test for type errors [`385b615`](https://github.com/inspect-js/object-inspect/commit/385b6152e49b51b68449a662f410b084ed7c601a) -- fn name coverage [`edc906d`](https://github.com/inspect-js/object-inspect/commit/edc906d40fca6b9194d304062c037ee8e398c4c2) -- server-side element test [`362d1d3`](https://github.com/inspect-js/object-inspect/commit/362d1d3e86f187651c29feeb8478110afada385b) -- custom inspect fn [`e89b0f6`](https://github.com/inspect-js/object-inspect/commit/e89b0f6fe6d5e03681282af83732a509160435a6) -- fixed browser test [`b530882`](https://github.com/inspect-js/object-inspect/commit/b5308824a1c8471c5617e394766a03a6977102a9) -- depth test, matches node [`1cfd9e0`](https://github.com/inspect-js/object-inspect/commit/1cfd9e0285a4ae1dff44101ad482915d9bf47e48) -- exercise hasOwnProperty path [`8d753fb`](https://github.com/inspect-js/object-inspect/commit/8d753fb362a534fa1106e4d80f2ee9bea06a66d9) -- more cases covered for errors [`c5c46a5`](https://github.com/inspect-js/object-inspect/commit/c5c46a569ec4606583497e8550f0d8c7ad39a4a4) -- \W obj key test case [`b0eceee`](https://github.com/inspect-js/object-inspect/commit/b0eceeea6e0eb94d686c1046e99b9e25e5005f75) -- coverage for explicit depth param [`e12b91c`](https://github.com/inspect-js/object-inspect/commit/e12b91cd59683362f3a0e80f46481a0211e26c15) - -## [0.4.0](https://github.com/inspect-js/object-inspect/compare/0.3.1...0.4.0) - 2014-03-21 - -### Commits - -- passing lowbyte interpolation test [`b847511`](https://github.com/inspect-js/object-inspect/commit/b8475114f5def7e7961c5353d48d3d8d9a520985) -- lowbyte test [`4a2b0e1`](https://github.com/inspect-js/object-inspect/commit/4a2b0e142667fc933f195472759385ac08f3946c) - -## [0.3.1](https://github.com/inspect-js/object-inspect/compare/0.3.0...0.3.1) - 2014-03-04 - -### Commits - -- sort keys [`a07b19c`](https://github.com/inspect-js/object-inspect/commit/a07b19cc3b1521a82d4fafb6368b7a9775428a05) - -## [0.3.0](https://github.com/inspect-js/object-inspect/compare/0.2.0...0.3.0) - 2014-03-04 - -### Commits - -- [] and {} instead of [ ] and { } [`654c44b`](https://github.com/inspect-js/object-inspect/commit/654c44b2865811f3519e57bb8526e0821caf5c6b) - -## [0.2.0](https://github.com/inspect-js/object-inspect/compare/0.1.3...0.2.0) - 2014-03-04 - -### Commits - -- failing holes test [`99cdfad`](https://github.com/inspect-js/object-inspect/commit/99cdfad03c6474740275a75636fe6ca86c77737a) -- regex already work [`e324033`](https://github.com/inspect-js/object-inspect/commit/e324033267025995ec97d32ed0a65737c99477a6) -- failing undef/null test [`1f88a00`](https://github.com/inspect-js/object-inspect/commit/1f88a00265d3209719dda8117b7e6360b4c20943) -- holes in the all example [`7d345f3`](https://github.com/inspect-js/object-inspect/commit/7d345f3676dcbe980cff89a4f6c243269ebbb709) -- check for .inspect(), fixes Buffer use-case [`c3f7546`](https://github.com/inspect-js/object-inspect/commit/c3f75466dbca125347d49847c05262c292f12b79) -- fixes for holes [`ce25f73`](https://github.com/inspect-js/object-inspect/commit/ce25f736683de4b92ff27dc5471218415e2d78d8) -- weird null behavior [`405c1ea`](https://github.com/inspect-js/object-inspect/commit/405c1ea72cd5a8cf3b498c3eaa903d01b9fbcab5) -- tape is actually a devDependency, upgrade [`703b0ce`](https://github.com/inspect-js/object-inspect/commit/703b0ce6c5817b4245a082564bccd877e0bb6990) -- put date in the example [`a342219`](https://github.com/inspect-js/object-inspect/commit/a3422190eeaa013215f46df2d0d37b48595ac058) -- passing the null test [`4ab737e`](https://github.com/inspect-js/object-inspect/commit/4ab737ebf862a75d247ebe51e79307a34d6380d4) - -## [0.1.3](https://github.com/inspect-js/object-inspect/compare/0.1.1...0.1.3) - 2013-07-26 - -### Commits - -- special isElement() check [`882768a`](https://github.com/inspect-js/object-inspect/commit/882768a54035d30747be9de1baf14e5aa0daa128) -- oh right old IEs don't have indexOf either [`36d1275`](https://github.com/inspect-js/object-inspect/commit/36d12756c38b08a74370b0bb696c809e529913a5) - -## [0.1.1](https://github.com/inspect-js/object-inspect/compare/0.1.0...0.1.1) - 2013-07-26 - -### Commits - -- tests! [`4422fd9`](https://github.com/inspect-js/object-inspect/commit/4422fd95532c2745aa6c4f786f35f1090be29998) -- fix for ie<9, doesn't have hasOwnProperty [`6b7d611`](https://github.com/inspect-js/object-inspect/commit/6b7d61183050f6da801ea04473211da226482613) -- fix for all IEs: no f.name [`4e0c2f6`](https://github.com/inspect-js/object-inspect/commit/4e0c2f6dfd01c306d067d7163319acc97c94ee50) -- badges [`5ed0d88`](https://github.com/inspect-js/object-inspect/commit/5ed0d88e4e407f9cb327fa4a146c17921f9680f3) - -## [0.1.0](https://github.com/inspect-js/object-inspect/compare/0.0.0...0.1.0) - 2013-07-26 - -### Commits - -- [Function] for functions [`ad5c485`](https://github.com/inspect-js/object-inspect/commit/ad5c485098fc83352cb540a60b2548ca56820e0b) - -## 0.0.0 - 2013-07-26 - -### Commits - -- working browser example [`34be6b6`](https://github.com/inspect-js/object-inspect/commit/34be6b6548f9ce92bdc3c27572857ba0c4a1218d) -- package.json etc [`cad51f2`](https://github.com/inspect-js/object-inspect/commit/cad51f23fc6bcf1a456ed6abe16088256c2f632f) -- docs complete [`b80cce2`](https://github.com/inspect-js/object-inspect/commit/b80cce2490c4e7183a9ee11ea89071f0abec4446) -- circular example [`4b4a7b9`](https://github.com/inspect-js/object-inspect/commit/4b4a7b92209e4e6b4630976cb6bcd17d14165a59) -- string rep [`7afb479`](https://github.com/inspect-js/object-inspect/commit/7afb479baa798d27f09e0a178b72ea327f60f5c8) diff --git a/mcp-server/node_modules/object-inspect/LICENSE b/mcp-server/node_modules/object-inspect/LICENSE deleted file mode 100644 index ca64cc1..0000000 --- a/mcp-server/node_modules/object-inspect/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 James Halliday - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/object-inspect/example/all.js b/mcp-server/node_modules/object-inspect/example/all.js deleted file mode 100644 index 2f3355c..0000000 --- a/mcp-server/node_modules/object-inspect/example/all.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var Buffer = require('safer-buffer').Buffer; - -var holes = ['a', 'b']; -holes[4] = 'e'; -holes[6] = 'g'; - -var obj = { - a: 1, - b: [3, 4, undefined, null], - c: undefined, - d: null, - e: { - regex: /^x/i, - buf: Buffer.from('abc'), - holes: holes - }, - now: new Date() -}; -obj.self = obj; -console.log(inspect(obj)); diff --git a/mcp-server/node_modules/object-inspect/example/circular.js b/mcp-server/node_modules/object-inspect/example/circular.js deleted file mode 100644 index 487a7c1..0000000 --- a/mcp-server/node_modules/object-inspect/example/circular.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var obj = { a: 1, b: [3, 4] }; -obj.c = obj; -console.log(inspect(obj)); diff --git a/mcp-server/node_modules/object-inspect/example/fn.js b/mcp-server/node_modules/object-inspect/example/fn.js deleted file mode 100644 index 9b5db8d..0000000 --- a/mcp-server/node_modules/object-inspect/example/fn.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var obj = [1, 2, function f(n) { return n + 5; }, 4]; -console.log(inspect(obj)); diff --git a/mcp-server/node_modules/object-inspect/example/inspect.js b/mcp-server/node_modules/object-inspect/example/inspect.js deleted file mode 100644 index e2df7c9..0000000 --- a/mcp-server/node_modules/object-inspect/example/inspect.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -/* eslint-env browser */ -var inspect = require('../'); - -var d = document.createElement('div'); -d.setAttribute('id', 'beep'); -d.innerHTML = 'woooiiiii'; - -console.log(inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }])); diff --git a/mcp-server/node_modules/object-inspect/index.js b/mcp-server/node_modules/object-inspect/index.js deleted file mode 100644 index a4b2d4c..0000000 --- a/mcp-server/node_modules/object-inspect/index.js +++ /dev/null @@ -1,544 +0,0 @@ -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') - ? Symbol.toStringTag - : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( - [].__proto__ === Array.prototype // eslint-disable-line no-proto - ? function (O) { - return O.__proto__; // eslint-disable-line no-proto - } - : null -); - -function addNumericSeparator(num, str) { - if ( - num === Infinity - || num === -Infinity - || num !== num - || (num && num > -1000 && num < 1000) - || $test.call(/e/, str) - ) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} - -var utilInspect = require('./util.inspect'); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; - -var quotes = { - __proto__: null, - 'double': '"', - single: "'" -}; -var quoteREs = { - __proto__: null, - 'double': /(["\\])/g, - single: /(['\\])/g -}; - -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; - - if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } - - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; - - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } - - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } - - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } - - var indent = getIndent(opts, depth); - - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } - - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } - - if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other - /* eslint-env browser */ - if (typeof window !== 'undefined' && obj === window) { - return '{ [object Window] }'; - } - if ( - (typeof globalThis !== 'undefined' && obj === globalThis) - || (typeof global !== 'undefined' && obj === global) - ) { - return '{ [object globalThis] }'; - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { return tag + '{}'; } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; - } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; - } - return String(obj); -}; - -function wrapQuotes(s, defaultStyle, opts) { - var style = opts.quoteStyle || defaultStyle; - var quoteChar = quotes[style]; - return quoteChar + s + quoteChar; -} - -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} - -function canTrustToString(obj) { - return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined')); -} -function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); } -function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); } -function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); } -function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); } -function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); } - -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} - -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} - -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} - -function toStr(obj) { - return objectToString.call(obj); -} - -function nameOf(f) { - if (f.name) { return f.name; } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} - -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} - -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} - -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} - -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; - } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} - -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - var quoteRE = quoteREs[opts.quoteStyle || 'single']; - quoteRE.lastIndex = 0; - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} - -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} - -function markBoxed(str) { - return 'Object(' + str + ')'; -} - -function weakCollectionOf(type) { - return type + ' { ? }'; -} - -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} - -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; - } - } - return true; -} - -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} - -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} - -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; - } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; - } - } - - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); - } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } - } - } - return xs; -} diff --git a/mcp-server/node_modules/object-inspect/package-support.json b/mcp-server/node_modules/object-inspect/package-support.json deleted file mode 100644 index 5cc12d0..0000000 --- a/mcp-server/node_modules/object-inspect/package-support.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "versions": [ - { - "version": "*", - "target": { - "node": "all" - }, - "response": { - "type": "time-permitting" - }, - "backing": { - "npm-funding": true, - "donations": [ - "https://github.com/ljharb", - "https://tidelift.com/funding/github/npm/object-inspect" - ] - } - } - ] -} diff --git a/mcp-server/node_modules/object-inspect/package.json b/mcp-server/node_modules/object-inspect/package.json deleted file mode 100644 index 9fd97ff..0000000 --- a/mcp-server/node_modules/object-inspect/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "name": "object-inspect", - "version": "1.13.4", - "description": "string representations of objects in node and the browser", - "main": "index.js", - "sideEffects": false, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.1", - "@pkgjs/support": "^0.0.6", - "auto-changelog": "^2.5.0", - "core-js": "^2.6.12", - "error-cause": "^1.0.8", - "es-value-fixtures": "^1.7.1", - "eslint": "=8.8.0", - "for-each": "^0.3.4", - "functions-have-names": "^1.2.3", - "glob": "=10.3.7", - "globalthis": "^1.0.4", - "has-symbols": "^1.1.0", - "has-tostringtag": "^1.0.2", - "in-publish": "^2.0.1", - "jackspeak": "=2.1.1", - "make-arrow-function": "^1.2.0", - "mock-property": "^1.1.0", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "safer-buffer": "^2.1.2", - "semver": "^6.3.1", - "string.prototype.repeat": "^1.0.0", - "tape": "^5.9.0" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "pretest": "npm run lint", - "lint": "eslint --ext=js,mjs .", - "postlint": "npx @pkgjs/support validate", - "test": "npm run tests-only && npm run test:corejs", - "tests-only": "nyc tape 'test/*.js'", - "test:corejs": "nyc tape test-core-js.js 'test/*.js'", - "posttest": "npx npm@'>=10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "testling": { - "files": [ - "test/*.js", - "test/browser/*.js" - ], - "browsers": [ - "ie/6..latest", - "chrome/latest", - "firefox/latest", - "safari/latest", - "opera/latest", - "iphone/latest", - "ipad/latest", - "android/latest" - ] - }, - "repository": { - "type": "git", - "url": "git://github.com/inspect-js/object-inspect.git" - }, - "homepage": "https://github.com/inspect-js/object-inspect", - "keywords": [ - "inspect", - "util.inspect", - "object", - "stringify", - "pretty" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "browser": { - "./util.inspect.js": false - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "./test-core-js.js" - ] - }, - "support": true, - "engines": { - "node": ">= 0.4" - } -} diff --git a/mcp-server/node_modules/object-inspect/readme.markdown b/mcp-server/node_modules/object-inspect/readme.markdown deleted file mode 100644 index f91617d..0000000 --- a/mcp-server/node_modules/object-inspect/readme.markdown +++ /dev/null @@ -1,84 +0,0 @@ -# object-inspect [![Version Badge][npm-version-svg]][package-url] - -string representations of objects in node and the browser - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -# example - -## circular - -``` js -var inspect = require('object-inspect'); -var obj = { a: 1, b: [3,4] }; -obj.c = obj; -console.log(inspect(obj)); -``` - -## dom element - -``` js -var inspect = require('object-inspect'); - -var d = document.createElement('div'); -d.setAttribute('id', 'beep'); -d.innerHTML = 'woooiiiii'; - -console.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ])); -``` - -output: - -``` -[
...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ] -``` - -# methods - -``` js -var inspect = require('object-inspect') -``` - -## var s = inspect(obj, opts={}) - -Return a string `s` with the string representation of `obj` up to a depth of `opts.depth`. - -Additional options: - - `quoteStyle`: must be "single" or "double", if present. Default `'single'` for strings, `'double'` for HTML elements. - - `maxStringLength`: must be `0`, a positive integer, `Infinity`, or `null`, if present. Default `Infinity`. - - `customInspect`: When `true`, a custom inspect method function will be invoked (either undere the `util.inspect.custom` symbol, or the `inspect` property). When the string `'symbol'`, only the symbol method will be invoked. Default `true`. - - `indent`: must be "\t", `null`, or a positive integer. Default `null`. - - `numericSeparator`: must be a boolean, if present. Default `false`. If `true`, all numbers will be printed with numeric separators (eg, `1234.5678` will be printed as `'1_234.567_8'`) - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install object-inspect -``` - -# license - -MIT - -[package-url]: https://npmjs.org/package/object-inspect -[npm-version-svg]: https://versionbadg.es/inspect-js/object-inspect.svg -[deps-svg]: https://david-dm.org/inspect-js/object-inspect.svg -[deps-url]: https://david-dm.org/inspect-js/object-inspect -[dev-deps-svg]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg -[dev-deps-url]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/object-inspect.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/object-inspect.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg -[downloads-url]: https://npm-stat.com/charts.html?package=object-inspect -[codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect -[actions-url]: https://github.com/inspect-js/object-inspect/actions diff --git a/mcp-server/node_modules/object-inspect/test-core-js.js b/mcp-server/node_modules/object-inspect/test-core-js.js deleted file mode 100644 index e53c400..0000000 --- a/mcp-server/node_modules/object-inspect/test-core-js.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -require('core-js'); - -var inspect = require('./'); -var test = require('tape'); - -test('Maps', function (t) { - t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}'); - t.end(); -}); - -test('WeakMaps', function (t) { - t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }'); - t.end(); -}); - -test('Sets', function (t) { - t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}'); - t.end(); -}); - -test('WeakSets', function (t) { - t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }'); - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/bigint.js b/mcp-server/node_modules/object-inspect/test/bigint.js deleted file mode 100644 index 4ecc31d..0000000 --- a/mcp-server/node_modules/object-inspect/test/bigint.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var test = require('tape'); -var hasToStringTag = require('has-tostringtag/shams')(); - -test('bigint', { skip: typeof BigInt === 'undefined' }, function (t) { - t.test('primitives', function (st) { - st.plan(3); - - st.equal(inspect(BigInt(-256)), '-256n'); - st.equal(inspect(BigInt(0)), '0n'); - st.equal(inspect(BigInt(256)), '256n'); - }); - - t.test('objects', function (st) { - st.plan(3); - - st.equal(inspect(Object(BigInt(-256))), 'Object(-256n)'); - st.equal(inspect(Object(BigInt(0))), 'Object(0n)'); - st.equal(inspect(Object(BigInt(256))), 'Object(256n)'); - }); - - t.test('syntactic primitives', function (st) { - st.plan(3); - - /* eslint-disable no-new-func */ - st.equal(inspect(Function('return -256n')()), '-256n'); - st.equal(inspect(Function('return 0n')()), '0n'); - st.equal(inspect(Function('return 256n')()), '256n'); - }); - - t.test('toStringTag', { skip: !hasToStringTag }, function (st) { - st.plan(1); - - var faker = {}; - faker[Symbol.toStringTag] = 'BigInt'; - st.equal( - inspect(faker), - '{ [Symbol(Symbol.toStringTag)]: \'BigInt\' }', - 'object lying about being a BigInt inspects as an object' - ); - }); - - t.test('numericSeparator', function (st) { - st.equal(inspect(BigInt(0), { numericSeparator: false }), '0n', '0n, numericSeparator false'); - st.equal(inspect(BigInt(0), { numericSeparator: true }), '0n', '0n, numericSeparator true'); - - st.equal(inspect(BigInt(1234), { numericSeparator: false }), '1234n', '1234n, numericSeparator false'); - st.equal(inspect(BigInt(1234), { numericSeparator: true }), '1_234n', '1234n, numericSeparator true'); - st.equal(inspect(BigInt(-1234), { numericSeparator: false }), '-1234n', '1234n, numericSeparator false'); - st.equal(inspect(BigInt(-1234), { numericSeparator: true }), '-1_234n', '1234n, numericSeparator true'); - - st.end(); - }); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/browser/dom.js b/mcp-server/node_modules/object-inspect/test/browser/dom.js deleted file mode 100644 index 210c0b2..0000000 --- a/mcp-server/node_modules/object-inspect/test/browser/dom.js +++ /dev/null @@ -1,15 +0,0 @@ -var inspect = require('../../'); -var test = require('tape'); - -test('dom element', function (t) { - t.plan(1); - - var d = document.createElement('div'); - d.setAttribute('id', 'beep'); - d.innerHTML = 'woooiiiii'; - - t.equal( - inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]), - '[
...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [Object] ] ] ] } ]' - ); -}); diff --git a/mcp-server/node_modules/object-inspect/test/circular.js b/mcp-server/node_modules/object-inspect/test/circular.js deleted file mode 100644 index 5df4233..0000000 --- a/mcp-server/node_modules/object-inspect/test/circular.js +++ /dev/null @@ -1,16 +0,0 @@ -var inspect = require('../'); -var test = require('tape'); - -test('circular', function (t) { - t.plan(2); - var obj = { a: 1, b: [3, 4] }; - obj.c = obj; - t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }'); - - var double = {}; - double.a = [double]; - double.b = {}; - double.b.inner = double.b; - double.b.obj = double; - t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }'); -}); diff --git a/mcp-server/node_modules/object-inspect/test/deep.js b/mcp-server/node_modules/object-inspect/test/deep.js deleted file mode 100644 index 99ce32a..0000000 --- a/mcp-server/node_modules/object-inspect/test/deep.js +++ /dev/null @@ -1,12 +0,0 @@ -var inspect = require('../'); -var test = require('tape'); - -test('deep', function (t) { - t.plan(4); - var obj = [[[[[[500]]]]]]; - t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]'); - t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]'); - t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]'); - - t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]'); -}); diff --git a/mcp-server/node_modules/object-inspect/test/element.js b/mcp-server/node_modules/object-inspect/test/element.js deleted file mode 100644 index 47fa9e2..0000000 --- a/mcp-server/node_modules/object-inspect/test/element.js +++ /dev/null @@ -1,53 +0,0 @@ -var inspect = require('../'); -var test = require('tape'); - -test('element', function (t) { - t.plan(3); - var elem = { - nodeName: 'div', - attributes: [{ name: 'class', value: 'row' }], - getAttribute: function (key) { return key; }, - childNodes: [] - }; - var obj = [1, elem, 3]; - t.deepEqual(inspect(obj), '[ 1,
, 3 ]'); - t.deepEqual(inspect(obj, { quoteStyle: 'single' }), "[ 1,
, 3 ]"); - t.deepEqual(inspect(obj, { quoteStyle: 'double' }), '[ 1,
, 3 ]'); -}); - -test('element no attr', function (t) { - t.plan(1); - var elem = { - nodeName: 'div', - getAttribute: function (key) { return key; }, - childNodes: [] - }; - var obj = [1, elem, 3]; - t.deepEqual(inspect(obj), '[ 1,
, 3 ]'); -}); - -test('element with contents', function (t) { - t.plan(1); - var elem = { - nodeName: 'div', - getAttribute: function (key) { return key; }, - childNodes: [{ nodeName: 'b' }] - }; - var obj = [1, elem, 3]; - t.deepEqual(inspect(obj), '[ 1,
...
, 3 ]'); -}); - -test('element instance', function (t) { - t.plan(1); - var h = global.HTMLElement; - global.HTMLElement = function (name, attr) { - this.nodeName = name; - this.attributes = attr; - }; - global.HTMLElement.prototype.getAttribute = function () {}; - - var elem = new global.HTMLElement('div', []); - var obj = [1, elem, 3]; - t.deepEqual(inspect(obj), '[ 1,
, 3 ]'); - global.HTMLElement = h; -}); diff --git a/mcp-server/node_modules/object-inspect/test/err.js b/mcp-server/node_modules/object-inspect/test/err.js deleted file mode 100644 index cc1d884..0000000 --- a/mcp-server/node_modules/object-inspect/test/err.js +++ /dev/null @@ -1,48 +0,0 @@ -var test = require('tape'); -var ErrorWithCause = require('error-cause/Error'); - -var inspect = require('../'); - -test('type error', function (t) { - t.plan(1); - var aerr = new TypeError(); - aerr.foo = 555; - aerr.bar = [1, 2, 3]; - - var berr = new TypeError('tuv'); - berr.baz = 555; - - var cerr = new SyntaxError(); - cerr.message = 'whoa'; - cerr['a-b'] = 5; - - var withCause = new ErrorWithCause('foo', { cause: 'bar' }); - var withCausePlus = new ErrorWithCause('foo', { cause: 'bar' }); - withCausePlus.foo = 'bar'; - var withUndefinedCause = new ErrorWithCause('foo', { cause: undefined }); - var withEnumerableCause = new Error('foo'); - withEnumerableCause.cause = 'bar'; - - var obj = [ - new TypeError(), - new TypeError('xxx'), - aerr, - berr, - cerr, - withCause, - withCausePlus, - withUndefinedCause, - withEnumerableCause - ]; - t.equal(inspect(obj), '[ ' + [ - '[TypeError]', - '[TypeError: xxx]', - '{ [TypeError] foo: 555, bar: [ 1, 2, 3 ] }', - '{ [TypeError: tuv] baz: 555 }', - '{ [SyntaxError: whoa] message: \'whoa\', \'a-b\': 5 }', - 'cause' in Error.prototype ? '[Error: foo]' : '{ [Error: foo] [cause]: \'bar\' }', - '{ [Error: foo] ' + ('cause' in Error.prototype ? '' : '[cause]: \'bar\', ') + 'foo: \'bar\' }', - 'cause' in Error.prototype ? '[Error: foo]' : '{ [Error: foo] [cause]: undefined }', - '{ [Error: foo] cause: \'bar\' }' - ].join(', ') + ' ]'); -}); diff --git a/mcp-server/node_modules/object-inspect/test/fakes.js b/mcp-server/node_modules/object-inspect/test/fakes.js deleted file mode 100644 index a65c08c..0000000 --- a/mcp-server/node_modules/object-inspect/test/fakes.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var test = require('tape'); -var hasToStringTag = require('has-tostringtag/shams')(); -var forEach = require('for-each'); - -test('fakes', { skip: !hasToStringTag }, function (t) { - forEach([ - 'Array', - 'Boolean', - 'Date', - 'Error', - 'Number', - 'RegExp', - 'String' - ], function (expected) { - var faker = {}; - faker[Symbol.toStringTag] = expected; - - t.equal( - inspect(faker), - '{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }', - 'faker masquerading as ' + expected + ' is not shown as one' - ); - }); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/fn.js b/mcp-server/node_modules/object-inspect/test/fn.js deleted file mode 100644 index de3ca62..0000000 --- a/mcp-server/node_modules/object-inspect/test/fn.js +++ /dev/null @@ -1,76 +0,0 @@ -var inspect = require('../'); -var test = require('tape'); -var arrow = require('make-arrow-function')(); -var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames(); - -test('function', function (t) { - t.plan(1); - var obj = [1, 2, function f(n) { return n; }, 4]; - t.equal(inspect(obj), '[ 1, 2, [Function: f], 4 ]'); -}); - -test('function name', function (t) { - t.plan(1); - var f = (function () { - return function () {}; - }()); - f.toString = function toStr() { return 'function xxx () {}'; }; - var obj = [1, 2, f, 4]; - t.equal(inspect(obj), '[ 1, 2, [Function (anonymous)] { toString: [Function: toStr] }, 4 ]'); -}); - -test('anon function', function (t) { - var f = (function () { - return function () {}; - }()); - var obj = [1, 2, f, 4]; - t.equal(inspect(obj), '[ 1, 2, [Function (anonymous)], 4 ]'); - - t.end(); -}); - -test('arrow function', { skip: !arrow }, function (t) { - t.equal(inspect(arrow), '[Function (anonymous)]'); - - t.end(); -}); - -test('truly nameless function', { skip: !arrow || !functionsHaveConfigurableNames }, function (t) { - function f() {} - Object.defineProperty(f, 'name', { value: false }); - t.equal(f.name, false); - t.equal( - inspect(f), - '[Function: f]', - 'named function with falsy `.name` does not hide its original name' - ); - - function g() {} - Object.defineProperty(g, 'name', { value: true }); - t.equal(g.name, true); - t.equal( - inspect(g), - '[Function: true]', - 'named function with truthy `.name` hides its original name' - ); - - var anon = function () {}; // eslint-disable-line func-style - Object.defineProperty(anon, 'name', { value: null }); - t.equal(anon.name, null); - t.equal( - inspect(anon), - '[Function (anonymous)]', - 'anon function with falsy `.name` does not hide its anonymity' - ); - - var anon2 = function () {}; // eslint-disable-line func-style - Object.defineProperty(anon2, 'name', { value: 1 }); - t.equal(anon2.name, 1); - t.equal( - inspect(anon2), - '[Function: 1]', - 'anon function with truthy `.name` hides its anonymity' - ); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/global.js b/mcp-server/node_modules/object-inspect/test/global.js deleted file mode 100644 index c57216a..0000000 --- a/mcp-server/node_modules/object-inspect/test/global.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var inspect = require('../'); - -var test = require('tape'); -var globalThis = require('globalthis')(); - -test('global object', function (t) { - /* eslint-env browser */ - var expected = typeof window === 'undefined' ? 'globalThis' : 'Window'; - t.equal( - inspect([globalThis]), - '[ { [object ' + expected + '] } ]' - ); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/has.js b/mcp-server/node_modules/object-inspect/test/has.js deleted file mode 100644 index 01800de..0000000 --- a/mcp-server/node_modules/object-inspect/test/has.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var test = require('tape'); -var mockProperty = require('mock-property'); - -test('when Object#hasOwnProperty is deleted', function (t) { - t.plan(1); - var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays - - t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty" - t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true })); - - t.equal(inspect(arr), '[ 1, , 3 ]'); -}); diff --git a/mcp-server/node_modules/object-inspect/test/holes.js b/mcp-server/node_modules/object-inspect/test/holes.js deleted file mode 100644 index 87fc8c8..0000000 --- a/mcp-server/node_modules/object-inspect/test/holes.js +++ /dev/null @@ -1,15 +0,0 @@ -var test = require('tape'); -var inspect = require('../'); - -var xs = ['a', 'b']; -xs[5] = 'f'; -xs[7] = 'j'; -xs[8] = 'k'; - -test('holes', function (t) { - t.plan(1); - t.equal( - inspect(xs), - "[ 'a', 'b', , , , 'f', , 'j', 'k' ]" - ); -}); diff --git a/mcp-server/node_modules/object-inspect/test/indent-option.js b/mcp-server/node_modules/object-inspect/test/indent-option.js deleted file mode 100644 index 89d8fce..0000000 --- a/mcp-server/node_modules/object-inspect/test/indent-option.js +++ /dev/null @@ -1,271 +0,0 @@ -var test = require('tape'); -var forEach = require('for-each'); - -var inspect = require('../'); - -test('bad indent options', function (t) { - forEach([ - undefined, - true, - false, - -1, - 1.2, - Infinity, - -Infinity, - NaN - ], function (indent) { - t['throws']( - function () { inspect('', { indent: indent }); }, - TypeError, - inspect(indent) + ' is invalid' - ); - }); - - t.end(); -}); - -test('simple object with indent', function (t) { - t.plan(2); - - var obj = { a: 1, b: 2 }; - - var expectedSpaces = [ - '{', - ' a: 1,', - ' b: 2', - '}' - ].join('\n'); - var expectedTabs = [ - '{', - ' a: 1,', - ' b: 2', - '}' - ].join('\n'); - - t.equal(inspect(obj, { indent: 2 }), expectedSpaces, 'two'); - t.equal(inspect(obj, { indent: '\t' }), expectedTabs, 'tabs'); -}); - -test('two deep object with indent', function (t) { - t.plan(2); - - var obj = { a: 1, b: { c: 3, d: 4 } }; - - var expectedSpaces = [ - '{', - ' a: 1,', - ' b: {', - ' c: 3,', - ' d: 4', - ' }', - '}' - ].join('\n'); - var expectedTabs = [ - '{', - ' a: 1,', - ' b: {', - ' c: 3,', - ' d: 4', - ' }', - '}' - ].join('\n'); - - t.equal(inspect(obj, { indent: 2 }), expectedSpaces, 'two'); - t.equal(inspect(obj, { indent: '\t' }), expectedTabs, 'tabs'); -}); - -test('simple array with all single line elements', function (t) { - t.plan(2); - - var obj = [1, 2, 3, 'asdf\nsdf']; - - var expected = '[ 1, 2, 3, \'asdf\\nsdf\' ]'; - - t.equal(inspect(obj, { indent: 2 }), expected, 'two'); - t.equal(inspect(obj, { indent: '\t' }), expected, 'tabs'); -}); - -test('array with complex elements', function (t) { - t.plan(2); - - var obj = [1, { a: 1, b: { c: 1 } }, 'asdf\nsdf']; - - var expectedSpaces = [ - '[', - ' 1,', - ' {', - ' a: 1,', - ' b: {', - ' c: 1', - ' }', - ' },', - ' \'asdf\\nsdf\'', - ']' - ].join('\n'); - var expectedTabs = [ - '[', - ' 1,', - ' {', - ' a: 1,', - ' b: {', - ' c: 1', - ' }', - ' },', - ' \'asdf\\nsdf\'', - ']' - ].join('\n'); - - t.equal(inspect(obj, { indent: 2 }), expectedSpaces, 'two'); - t.equal(inspect(obj, { indent: '\t' }), expectedTabs, 'tabs'); -}); - -test('values', function (t) { - t.plan(2); - var obj = [{}, [], { 'a-b': 5 }]; - - var expectedSpaces = [ - '[', - ' {},', - ' [],', - ' {', - ' \'a-b\': 5', - ' }', - ']' - ].join('\n'); - var expectedTabs = [ - '[', - ' {},', - ' [],', - ' {', - ' \'a-b\': 5', - ' }', - ']' - ].join('\n'); - - t.equal(inspect(obj, { indent: 2 }), expectedSpaces, 'two'); - t.equal(inspect(obj, { indent: '\t' }), expectedTabs, 'tabs'); -}); - -test('Map', { skip: typeof Map !== 'function' }, function (t) { - var map = new Map(); - map.set({ a: 1 }, ['b']); - map.set(3, NaN); - - var expectedStringSpaces = [ - 'Map (2) {', - ' { a: 1 } => [ \'b\' ],', - ' 3 => NaN', - '}' - ].join('\n'); - var expectedStringTabs = [ - 'Map (2) {', - ' { a: 1 } => [ \'b\' ],', - ' 3 => NaN', - '}' - ].join('\n'); - var expectedStringTabsDoubleQuotes = [ - 'Map (2) {', - ' { a: 1 } => [ "b" ],', - ' 3 => NaN', - '}' - ].join('\n'); - - t.equal( - inspect(map, { indent: 2 }), - expectedStringSpaces, - 'Map keys are not indented (two)' - ); - t.equal( - inspect(map, { indent: '\t' }), - expectedStringTabs, - 'Map keys are not indented (tabs)' - ); - t.equal( - inspect(map, { indent: '\t', quoteStyle: 'double' }), - expectedStringTabsDoubleQuotes, - 'Map keys are not indented (tabs + double quotes)' - ); - - t.equal(inspect(new Map(), { indent: 2 }), 'Map (0) {}', 'empty Map should show as empty (two)'); - t.equal(inspect(new Map(), { indent: '\t' }), 'Map (0) {}', 'empty Map should show as empty (tabs)'); - - var nestedMap = new Map(); - nestedMap.set(nestedMap, map); - var expectedNestedSpaces = [ - 'Map (1) {', - ' [Circular] => Map (2) {', - ' { a: 1 } => [ \'b\' ],', - ' 3 => NaN', - ' }', - '}' - ].join('\n'); - var expectedNestedTabs = [ - 'Map (1) {', - ' [Circular] => Map (2) {', - ' { a: 1 } => [ \'b\' ],', - ' 3 => NaN', - ' }', - '}' - ].join('\n'); - t.equal(inspect(nestedMap, { indent: 2 }), expectedNestedSpaces, 'Map containing a Map should work (two)'); - t.equal(inspect(nestedMap, { indent: '\t' }), expectedNestedTabs, 'Map containing a Map should work (tabs)'); - - t.end(); -}); - -test('Set', { skip: typeof Set !== 'function' }, function (t) { - var set = new Set(); - set.add({ a: 1 }); - set.add(['b']); - var expectedStringSpaces = [ - 'Set (2) {', - ' {', - ' a: 1', - ' },', - ' [ \'b\' ]', - '}' - ].join('\n'); - var expectedStringTabs = [ - 'Set (2) {', - ' {', - ' a: 1', - ' },', - ' [ \'b\' ]', - '}' - ].join('\n'); - t.equal(inspect(set, { indent: 2 }), expectedStringSpaces, 'new Set([{ a: 1 }, ["b"]]) should show size and contents (two)'); - t.equal(inspect(set, { indent: '\t' }), expectedStringTabs, 'new Set([{ a: 1 }, ["b"]]) should show size and contents (tabs)'); - - t.equal(inspect(new Set(), { indent: 2 }), 'Set (0) {}', 'empty Set should show as empty (two)'); - t.equal(inspect(new Set(), { indent: '\t' }), 'Set (0) {}', 'empty Set should show as empty (tabs)'); - - var nestedSet = new Set(); - nestedSet.add(set); - nestedSet.add(nestedSet); - var expectedNestedSpaces = [ - 'Set (2) {', - ' Set (2) {', - ' {', - ' a: 1', - ' },', - ' [ \'b\' ]', - ' },', - ' [Circular]', - '}' - ].join('\n'); - var expectedNestedTabs = [ - 'Set (2) {', - ' Set (2) {', - ' {', - ' a: 1', - ' },', - ' [ \'b\' ]', - ' },', - ' [Circular]', - '}' - ].join('\n'); - t.equal(inspect(nestedSet, { indent: 2 }), expectedNestedSpaces, 'Set containing a Set should work (two)'); - t.equal(inspect(nestedSet, { indent: '\t' }), expectedNestedTabs, 'Set containing a Set should work (tabs)'); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/inspect.js b/mcp-server/node_modules/object-inspect/test/inspect.js deleted file mode 100644 index 1abf81b..0000000 --- a/mcp-server/node_modules/object-inspect/test/inspect.js +++ /dev/null @@ -1,139 +0,0 @@ -var test = require('tape'); -var hasSymbols = require('has-symbols/shams')(); -var utilInspect = require('../util.inspect'); -var repeat = require('string.prototype.repeat'); - -var inspect = require('..'); - -test('inspect', function (t) { - t.plan(5); - - var obj = [{ inspect: function xyzInspect() { return '!XYZ¡'; } }, []]; - var stringResult = '[ !XYZ¡, [] ]'; - var falseResult = '[ { inspect: [Function: xyzInspect] }, [] ]'; - - t.equal(inspect(obj), stringResult); - t.equal(inspect(obj, { customInspect: true }), stringResult); - t.equal(inspect(obj, { customInspect: 'symbol' }), falseResult); - t.equal(inspect(obj, { customInspect: false }), falseResult); - t['throws']( - function () { inspect(obj, { customInspect: 'not a boolean or "symbol"' }); }, - TypeError, - '`customInspect` must be a boolean or the string "symbol"' - ); -}); - -test('inspect custom symbol', { skip: !hasSymbols || !utilInspect || !utilInspect.custom }, function (t) { - t.plan(4); - - var obj = { inspect: function stringInspect() { return 'string'; } }; - obj[utilInspect.custom] = function custom() { return 'symbol'; }; - - var symbolResult = '[ symbol, [] ]'; - var stringResult = '[ string, [] ]'; - var falseResult = '[ { inspect: [Function: stringInspect]' + (utilInspect.custom ? ', [' + inspect(utilInspect.custom) + ']: [Function: custom]' : '') + ' }, [] ]'; - - var symbolStringFallback = utilInspect.custom ? symbolResult : stringResult; - var symbolFalseFallback = utilInspect.custom ? symbolResult : falseResult; - - t.equal(inspect([obj, []]), symbolStringFallback); - t.equal(inspect([obj, []], { customInspect: true }), symbolStringFallback); - t.equal(inspect([obj, []], { customInspect: 'symbol' }), symbolFalseFallback); - t.equal(inspect([obj, []], { customInspect: false }), falseResult); -}); - -test('symbols', { skip: !hasSymbols }, function (t) { - t.plan(2); - - var obj = { a: 1 }; - obj[Symbol('test')] = 2; - obj[Symbol.iterator] = 3; - Object.defineProperty(obj, Symbol('non-enum'), { - enumerable: false, - value: 4 - }); - - if (typeof Symbol.iterator === 'symbol') { - t.equal(inspect(obj), '{ a: 1, [Symbol(test)]: 2, [Symbol(Symbol.iterator)]: 3 }', 'object with symbols'); - t.equal(inspect([obj, []]), '[ { a: 1, [Symbol(test)]: 2, [Symbol(Symbol.iterator)]: 3 }, [] ]', 'object with symbols in array'); - } else { - // symbol sham key ordering is unreliable - t.match( - inspect(obj), - /^(?:{ a: 1, \[Symbol\(test\)\]: 2, \[Symbol\(Symbol.iterator\)\]: 3 }|{ a: 1, \[Symbol\(Symbol.iterator\)\]: 3, \[Symbol\(test\)\]: 2 })$/, - 'object with symbols (nondeterministic symbol sham key ordering)' - ); - t.match( - inspect([obj, []]), - /^\[ (?:{ a: 1, \[Symbol\(test\)\]: 2, \[Symbol\(Symbol.iterator\)\]: 3 }|{ a: 1, \[Symbol\(Symbol.iterator\)\]: 3, \[Symbol\(test\)\]: 2 }), \[\] \]$/, - 'object with symbols in array (nondeterministic symbol sham key ordering)' - ); - } -}); - -test('maxStringLength', function (t) { - t['throws']( - function () { inspect('', { maxStringLength: -1 }); }, - TypeError, - 'maxStringLength must be >= 0, or Infinity, not negative' - ); - - var str = repeat('a', 1e8); - - t.equal( - inspect([str], { maxStringLength: 10 }), - '[ \'aaaaaaaaaa\'... 99999990 more characters ]', - 'maxStringLength option limits output' - ); - - t.equal( - inspect(['f'], { maxStringLength: null }), - '[ \'\'... 1 more character ]', - 'maxStringLength option accepts `null`' - ); - - t.equal( - inspect([str], { maxStringLength: Infinity }), - '[ \'' + str + '\' ]', - 'maxStringLength option accepts ∞' - ); - - t.end(); -}); - -test('inspect options', { skip: !utilInspect.custom }, function (t) { - var obj = {}; - obj[utilInspect.custom] = function () { - return JSON.stringify(arguments); - }; - t.equal( - inspect(obj), - utilInspect(obj, { depth: 5 }), - 'custom symbols will use node\'s inspect' - ); - t.equal( - inspect(obj, { depth: 2 }), - utilInspect(obj, { depth: 2 }), - 'a reduced depth will be passed to node\'s inspect' - ); - t.equal( - inspect({ d1: obj }, { depth: 3 }), - '{ d1: ' + utilInspect(obj, { depth: 2 }) + ' }', - 'deep objects will receive a reduced depth' - ); - t.equal( - inspect({ d1: obj }, { depth: 1 }), - '{ d1: [Object] }', - 'unlike nodejs inspect, customInspect will not be used once the depth is exceeded.' - ); - t.end(); -}); - -test('inspect URL', { skip: typeof URL === 'undefined' }, function (t) { - t.match( - inspect(new URL('https://nodejs.org')), - /nodejs\.org/, // Different environments stringify it differently - 'url can be inspected' - ); - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/lowbyte.js b/mcp-server/node_modules/object-inspect/test/lowbyte.js deleted file mode 100644 index 68a345d..0000000 --- a/mcp-server/node_modules/object-inspect/test/lowbyte.js +++ /dev/null @@ -1,12 +0,0 @@ -var test = require('tape'); -var inspect = require('../'); - -var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' }; - -test('interpolate low bytes', function (t) { - t.plan(1); - t.equal( - inspect(obj), - "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }" - ); -}); diff --git a/mcp-server/node_modules/object-inspect/test/number.js b/mcp-server/node_modules/object-inspect/test/number.js deleted file mode 100644 index 8f287e8..0000000 --- a/mcp-server/node_modules/object-inspect/test/number.js +++ /dev/null @@ -1,58 +0,0 @@ -var test = require('tape'); -var v = require('es-value-fixtures'); -var forEach = require('for-each'); - -var inspect = require('../'); - -test('negative zero', function (t) { - t.equal(inspect(0), '0', 'inspect(0) === "0"'); - t.equal(inspect(Object(0)), 'Object(0)', 'inspect(Object(0)) === "Object(0)"'); - - t.equal(inspect(-0), '-0', 'inspect(-0) === "-0"'); - t.equal(inspect(Object(-0)), 'Object(-0)', 'inspect(Object(-0)) === "Object(-0)"'); - - t.end(); -}); - -test('numericSeparator', function (t) { - forEach(v.nonBooleans, function (nonBoolean) { - t['throws']( - function () { inspect(true, { numericSeparator: nonBoolean }); }, - TypeError, - inspect(nonBoolean) + ' is not a boolean' - ); - }); - - t.test('3 digit numbers', function (st) { - var failed = false; - for (var i = -999; i < 1000; i += 1) { - var actual = inspect(i); - var actualSepNo = inspect(i, { numericSeparator: false }); - var actualSepYes = inspect(i, { numericSeparator: true }); - var expected = String(i); - if (actual !== expected || actualSepNo !== expected || actualSepYes !== expected) { - failed = true; - t.equal(actual, expected); - t.equal(actualSepNo, expected); - t.equal(actualSepYes, expected); - } - } - - st.notOk(failed, 'all 3 digit numbers passed'); - - st.end(); - }); - - t.equal(inspect(1e3), '1000', '1000'); - t.equal(inspect(1e3, { numericSeparator: false }), '1000', '1000, numericSeparator false'); - t.equal(inspect(1e3, { numericSeparator: true }), '1_000', '1000, numericSeparator true'); - t.equal(inspect(-1e3), '-1000', '-1000'); - t.equal(inspect(-1e3, { numericSeparator: false }), '-1000', '-1000, numericSeparator false'); - t.equal(inspect(-1e3, { numericSeparator: true }), '-1_000', '-1000, numericSeparator true'); - - t.equal(inspect(1234.5678, { numericSeparator: true }), '1_234.567_8', 'fractional numbers get separators'); - t.equal(inspect(1234.56789, { numericSeparator: true }), '1_234.567_89', 'fractional numbers get separators'); - t.equal(inspect(1234.567891, { numericSeparator: true }), '1_234.567_891', 'fractional numbers get separators'); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/quoteStyle.js b/mcp-server/node_modules/object-inspect/test/quoteStyle.js deleted file mode 100644 index da23e63..0000000 --- a/mcp-server/node_modules/object-inspect/test/quoteStyle.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var test = require('tape'); - -test('quoteStyle option', function (t) { - t['throws'](function () { inspect(null, { quoteStyle: false }); }, 'false is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: true }); }, 'true is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: '' }); }, '"" is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: {} }); }, '{} is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: [] }); }, '[] is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: 42 }); }, '42 is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: NaN }); }, 'NaN is not a valid value'); - t['throws'](function () { inspect(null, { quoteStyle: function () {} }); }, 'a function is not a valid value'); - - t.equal(inspect('"', { quoteStyle: 'single' }), '\'"\'', 'double quote, quoteStyle: "single"'); - t.equal(inspect('"', { quoteStyle: 'double' }), '"\\""', 'double quote, quoteStyle: "double"'); - - t.equal(inspect('\'', { quoteStyle: 'single' }), '\'\\\'\'', 'single quote, quoteStyle: "single"'); - t.equal(inspect('\'', { quoteStyle: 'double' }), '"\'"', 'single quote, quoteStyle: "double"'); - - t.equal(inspect('`', { quoteStyle: 'single' }), '\'`\'', 'backtick, quoteStyle: "single"'); - t.equal(inspect('`', { quoteStyle: 'double' }), '"`"', 'backtick, quoteStyle: "double"'); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/test/toStringTag.js b/mcp-server/node_modules/object-inspect/test/toStringTag.js deleted file mode 100644 index 95f8270..0000000 --- a/mcp-server/node_modules/object-inspect/test/toStringTag.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; - -var test = require('tape'); -var hasToStringTag = require('has-tostringtag/shams')(); - -var inspect = require('../'); - -test('Symbol.toStringTag', { skip: !hasToStringTag }, function (t) { - t.plan(4); - - var obj = { a: 1 }; - t.equal(inspect(obj), '{ a: 1 }', 'object, no Symbol.toStringTag'); - - obj[Symbol.toStringTag] = 'foo'; - t.equal(inspect(obj), '{ a: 1, [Symbol(Symbol.toStringTag)]: \'foo\' }', 'object with Symbol.toStringTag'); - - t.test('null objects', { skip: 'toString' in { __proto__: null } }, function (st) { - st.plan(2); - - var dict = { __proto__: null, a: 1 }; - st.equal(inspect(dict), '[Object: null prototype] { a: 1 }', 'null object with Symbol.toStringTag'); - - dict[Symbol.toStringTag] = 'Dict'; - st.equal(inspect(dict), '[Dict: null prototype] { a: 1, [Symbol(Symbol.toStringTag)]: \'Dict\' }', 'null object with Symbol.toStringTag'); - }); - - t.test('instances', function (st) { - st.plan(4); - - function C() { - this.a = 1; - } - st.equal(Object.prototype.toString.call(new C()), '[object Object]', 'instance, no toStringTag, Object.prototype.toString'); - st.equal(inspect(new C()), 'C { a: 1 }', 'instance, no toStringTag'); - - C.prototype[Symbol.toStringTag] = 'Class!'; - st.equal(Object.prototype.toString.call(new C()), '[object Class!]', 'instance, with toStringTag, Object.prototype.toString'); - st.equal(inspect(new C()), 'C [Class!] { a: 1 }', 'instance, with toStringTag'); - }); -}); diff --git a/mcp-server/node_modules/object-inspect/test/undef.js b/mcp-server/node_modules/object-inspect/test/undef.js deleted file mode 100644 index e3f4961..0000000 --- a/mcp-server/node_modules/object-inspect/test/undef.js +++ /dev/null @@ -1,12 +0,0 @@ -var test = require('tape'); -var inspect = require('../'); - -var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null }; - -test('undef and null', function (t) { - t.plan(1); - t.equal( - inspect(obj), - '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }' - ); -}); diff --git a/mcp-server/node_modules/object-inspect/test/values.js b/mcp-server/node_modules/object-inspect/test/values.js deleted file mode 100644 index 15986cd..0000000 --- a/mcp-server/node_modules/object-inspect/test/values.js +++ /dev/null @@ -1,261 +0,0 @@ -'use strict'; - -var inspect = require('../'); -var test = require('tape'); -var mockProperty = require('mock-property'); -var hasSymbols = require('has-symbols/shams')(); -var hasToStringTag = require('has-tostringtag/shams')(); -var forEach = require('for-each'); -var semver = require('semver'); - -test('values', function (t) { - t.plan(1); - var obj = [{}, [], { 'a-b': 5 }]; - t.equal(inspect(obj), '[ {}, [], { \'a-b\': 5 } ]'); -}); - -test('arrays with properties', function (t) { - t.plan(1); - var arr = [3]; - arr.foo = 'bar'; - var obj = [1, 2, arr]; - obj.baz = 'quux'; - obj.index = -1; - t.equal(inspect(obj), '[ 1, 2, [ 3, foo: \'bar\' ], baz: \'quux\', index: -1 ]'); -}); - -test('has', function (t) { - t.plan(1); - t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true })); - - t.equal(inspect({ a: 1, b: 2 }), '{ a: 1, b: 2 }'); -}); - -test('indexOf seen', function (t) { - t.plan(1); - var xs = [1, 2, 3, {}]; - xs.push(xs); - - var seen = []; - seen.indexOf = undefined; - - t.equal( - inspect(xs, {}, 0, seen), - '[ 1, 2, 3, {}, [Circular] ]' - ); -}); - -test('seen seen', function (t) { - t.plan(1); - var xs = [1, 2, 3]; - - var seen = [xs]; - seen.indexOf = undefined; - - t.equal( - inspect(xs, {}, 0, seen), - '[Circular]' - ); -}); - -test('seen seen seen', function (t) { - t.plan(1); - var xs = [1, 2, 3]; - - var seen = [5, xs]; - seen.indexOf = undefined; - - t.equal( - inspect(xs, {}, 0, seen), - '[Circular]' - ); -}); - -test('symbols', { skip: !hasSymbols }, function (t) { - var sym = Symbol('foo'); - t.equal(inspect(sym), 'Symbol(foo)', 'Symbol("foo") should be "Symbol(foo)"'); - if (typeof sym === 'symbol') { - // Symbol shams are incapable of differentiating boxed from unboxed symbols - t.equal(inspect(Object(sym)), 'Object(Symbol(foo))', 'Object(Symbol("foo")) should be "Object(Symbol(foo))"'); - } - - t.test('toStringTag', { skip: !hasToStringTag }, function (st) { - st.plan(1); - - var faker = {}; - faker[Symbol.toStringTag] = 'Symbol'; - st.equal( - inspect(faker), - '{ [Symbol(Symbol.toStringTag)]: \'Symbol\' }', - 'object lying about being a Symbol inspects as an object' - ); - }); - - t.end(); -}); - -test('Map', { skip: typeof Map !== 'function' }, function (t) { - var map = new Map(); - map.set({ a: 1 }, ['b']); - map.set(3, NaN); - var expectedString = 'Map (2) {' + inspect({ a: 1 }) + ' => ' + inspect(['b']) + ', 3 => NaN}'; - t.equal(inspect(map), expectedString, 'new Map([[{ a: 1 }, ["b"]], [3, NaN]]) should show size and contents'); - t.equal(inspect(new Map()), 'Map (0) {}', 'empty Map should show as empty'); - - var nestedMap = new Map(); - nestedMap.set(nestedMap, map); - t.equal(inspect(nestedMap), 'Map (1) {[Circular] => ' + expectedString + '}', 'Map containing a Map should work'); - - t.end(); -}); - -test('WeakMap', { skip: typeof WeakMap !== 'function' }, function (t) { - var map = new WeakMap(); - map.set({ a: 1 }, ['b']); - var expectedString = 'WeakMap { ? }'; - t.equal(inspect(map), expectedString, 'new WeakMap([[{ a: 1 }, ["b"]]]) should not show size or contents'); - t.equal(inspect(new WeakMap()), 'WeakMap { ? }', 'empty WeakMap should not show as empty'); - - t.end(); -}); - -test('Set', { skip: typeof Set !== 'function' }, function (t) { - var set = new Set(); - set.add({ a: 1 }); - set.add(['b']); - var expectedString = 'Set (2) {' + inspect({ a: 1 }) + ', ' + inspect(['b']) + '}'; - t.equal(inspect(set), expectedString, 'new Set([{ a: 1 }, ["b"]]) should show size and contents'); - t.equal(inspect(new Set()), 'Set (0) {}', 'empty Set should show as empty'); - - var nestedSet = new Set(); - nestedSet.add(set); - nestedSet.add(nestedSet); - t.equal(inspect(nestedSet), 'Set (2) {' + expectedString + ', [Circular]}', 'Set containing a Set should work'); - - t.end(); -}); - -test('WeakSet', { skip: typeof WeakSet !== 'function' }, function (t) { - var map = new WeakSet(); - map.add({ a: 1 }); - var expectedString = 'WeakSet { ? }'; - t.equal(inspect(map), expectedString, 'new WeakSet([{ a: 1 }]) should not show size or contents'); - t.equal(inspect(new WeakSet()), 'WeakSet { ? }', 'empty WeakSet should not show as empty'); - - t.end(); -}); - -test('WeakRef', { skip: typeof WeakRef !== 'function' }, function (t) { - var ref = new WeakRef({ a: 1 }); - var expectedString = 'WeakRef { ? }'; - t.equal(inspect(ref), expectedString, 'new WeakRef({ a: 1 }) should not show contents'); - - t.end(); -}); - -test('FinalizationRegistry', { skip: typeof FinalizationRegistry !== 'function' }, function (t) { - var registry = new FinalizationRegistry(function () {}); - var expectedString = 'FinalizationRegistry [FinalizationRegistry] {}'; - t.equal(inspect(registry), expectedString, 'new FinalizationRegistry(function () {}) should work normallys'); - - t.end(); -}); - -test('Strings', function (t) { - var str = 'abc'; - - t.equal(inspect(str), "'" + str + "'", 'primitive string shows as such'); - t.equal(inspect(str, { quoteStyle: 'single' }), "'" + str + "'", 'primitive string shows as such, single quoted'); - t.equal(inspect(str, { quoteStyle: 'double' }), '"' + str + '"', 'primitive string shows as such, double quoted'); - t.equal(inspect(Object(str)), 'Object(' + inspect(str) + ')', 'String object shows as such'); - t.equal(inspect(Object(str), { quoteStyle: 'single' }), 'Object(' + inspect(str, { quoteStyle: 'single' }) + ')', 'String object shows as such, single quoted'); - t.equal(inspect(Object(str), { quoteStyle: 'double' }), 'Object(' + inspect(str, { quoteStyle: 'double' }) + ')', 'String object shows as such, double quoted'); - - t.end(); -}); - -test('Numbers', function (t) { - var num = 42; - - t.equal(inspect(num), String(num), 'primitive number shows as such'); - t.equal(inspect(Object(num)), 'Object(' + inspect(num) + ')', 'Number object shows as such'); - - t.end(); -}); - -test('Booleans', function (t) { - t.equal(inspect(true), String(true), 'primitive true shows as such'); - t.equal(inspect(Object(true)), 'Object(' + inspect(true) + ')', 'Boolean object true shows as such'); - - t.equal(inspect(false), String(false), 'primitive false shows as such'); - t.equal(inspect(Object(false)), 'Object(' + inspect(false) + ')', 'Boolean false object shows as such'); - - t.end(); -}); - -test('Date', function (t) { - var now = new Date(); - t.equal(inspect(now), String(now), 'Date shows properly'); - t.equal(inspect(new Date(NaN)), 'Invalid Date', 'Invalid Date shows properly'); - - t.end(); -}); - -test('RegExps', function (t) { - t.equal(inspect(/a/g), '/a/g', 'regex shows properly'); - t.equal(inspect(new RegExp('abc', 'i')), '/abc/i', 'new RegExp shows properly'); - - var match = 'abc abc'.match(/[ab]+/); - delete match.groups; // for node < 10 - t.equal(inspect(match), '[ \'ab\', index: 0, input: \'abc abc\' ]', 'RegExp match object shows properly'); - - t.end(); -}); - -test('Proxies', { skip: typeof Proxy !== 'function' || !hasToStringTag }, function (t) { - var target = { proxy: true }; - var fake = new Proxy(target, { has: function () { return false; } }); - - // needed to work around a weird difference in node v6.0 - v6.4 where non-present properties are not logged - var isNode60 = semver.satisfies(process.version, '6.0 - 6.4'); - - forEach([ - 'Boolean', - 'Number', - 'String', - 'Symbol', - 'Date' - ], function (tag) { - target[Symbol.toStringTag] = tag; - - t.equal( - inspect(fake), - '{ ' + (isNode60 ? '' : 'proxy: true, ') + '[Symbol(Symbol.toStringTag)]: \'' + tag + '\' }', - 'Proxy for + ' + tag + ' shows as the target, which has no slots' - ); - }); - - t.end(); -}); - -test('fakers', { skip: !hasToStringTag }, function (t) { - var target = { proxy: false }; - - forEach([ - 'Boolean', - 'Number', - 'String', - 'Symbol', - 'Date' - ], function (tag) { - target[Symbol.toStringTag] = tag; - - t.equal( - inspect(target), - '{ proxy: false, [Symbol(Symbol.toStringTag)]: \'' + tag + '\' }', - 'Object pretending to be ' + tag + ' does not trick us' - ); - }); - - t.end(); -}); diff --git a/mcp-server/node_modules/object-inspect/util.inspect.js b/mcp-server/node_modules/object-inspect/util.inspect.js deleted file mode 100644 index 7784fab..0000000 --- a/mcp-server/node_modules/object-inspect/util.inspect.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('util').inspect; diff --git a/mcp-server/node_modules/on-finished/HISTORY.md b/mcp-server/node_modules/on-finished/HISTORY.md deleted file mode 100644 index 1917595..0000000 --- a/mcp-server/node_modules/on-finished/HISTORY.md +++ /dev/null @@ -1,98 +0,0 @@ -2.4.1 / 2022-02-22 -================== - - * Fix error on early async hooks implementations - -2.4.0 / 2022-02-21 -================== - - * Prevent loss of async hooks context - -2.3.0 / 2015-05-26 -================== - - * Add defined behavior for HTTP `CONNECT` requests - * Add defined behavior for HTTP `Upgrade` requests - * deps: ee-first@1.1.1 - -2.2.1 / 2015-04-22 -================== - - * Fix `isFinished(req)` when data buffered - -2.2.0 / 2014-12-22 -================== - - * Add message object to callback arguments - -2.1.1 / 2014-10-22 -================== - - * Fix handling of pipelined requests - -2.1.0 / 2014-08-16 -================== - - * Check if `socket` is detached - * Return `undefined` for `isFinished` if state unknown - -2.0.0 / 2014-08-16 -================== - - * Add `isFinished` function - * Move to `jshttp` organization - * Remove support for plain socket argument - * Rename to `on-finished` - * Support both `req` and `res` as arguments - * deps: ee-first@1.0.5 - -1.2.2 / 2014-06-10 -================== - - * Reduce listeners added to emitters - - avoids "event emitter leak" warnings when used multiple times on same request - -1.2.1 / 2014-06-08 -================== - - * Fix returned value when already finished - -1.2.0 / 2014-06-05 -================== - - * Call callback when called on already-finished socket - -1.1.4 / 2014-05-27 -================== - - * Support node.js 0.8 - -1.1.3 / 2014-04-30 -================== - - * Make sure errors passed as instanceof `Error` - -1.1.2 / 2014-04-18 -================== - - * Default the `socket` to passed-in object - -1.1.1 / 2014-01-16 -================== - - * Rename module to `finished` - -1.1.0 / 2013-12-25 -================== - - * Call callback when called on already-errored socket - -1.0.1 / 2013-12-20 -================== - - * Actually pass the error to the callback - -1.0.0 / 2013-12-20 -================== - - * Initial release diff --git a/mcp-server/node_modules/on-finished/LICENSE b/mcp-server/node_modules/on-finished/LICENSE deleted file mode 100644 index 5931fd2..0000000 --- a/mcp-server/node_modules/on-finished/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2013 Jonathan Ong -Copyright (c) 2014 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/on-finished/README.md b/mcp-server/node_modules/on-finished/README.md deleted file mode 100644 index 8973cde..0000000 --- a/mcp-server/node_modules/on-finished/README.md +++ /dev/null @@ -1,162 +0,0 @@ -# on-finished - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][ci-image]][ci-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -Execute a callback when a HTTP request closes, finishes, or errors. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install on-finished -``` - -## API - -```js -var onFinished = require('on-finished') -``` - -### onFinished(res, listener) - -Attach a listener to listen for the response to finish. The listener will -be invoked only once when the response finished. If the response finished -to an error, the first argument will contain the error. If the response -has already finished, the listener will be invoked. - -Listening to the end of a response would be used to close things associated -with the response, like open files. - -Listener is invoked as `listener(err, res)`. - - - -```js -onFinished(res, function (err, res) { - // clean up open fds, etc. - // err contains the error if request error'd -}) -``` - -### onFinished(req, listener) - -Attach a listener to listen for the request to finish. The listener will -be invoked only once when the request finished. If the request finished -to an error, the first argument will contain the error. If the request -has already finished, the listener will be invoked. - -Listening to the end of a request would be used to know when to continue -after reading the data. - -Listener is invoked as `listener(err, req)`. - - - -```js -var data = '' - -req.setEncoding('utf8') -req.on('data', function (str) { - data += str -}) - -onFinished(req, function (err, req) { - // data is read unless there is err -}) -``` - -### onFinished.isFinished(res) - -Determine if `res` is already finished. This would be useful to check and -not even start certain operations if the response has already finished. - -### onFinished.isFinished(req) - -Determine if `req` is already finished. This would be useful to check and -not even start certain operations if the request has already finished. - -## Special Node.js requests - -### HTTP CONNECT method - -The meaning of the `CONNECT` method from RFC 7231, section 4.3.6: - -> The CONNECT method requests that the recipient establish a tunnel to -> the destination origin server identified by the request-target and, -> if successful, thereafter restrict its behavior to blind forwarding -> of packets, in both directions, until the tunnel is closed. Tunnels -> are commonly used to create an end-to-end virtual connection, through -> one or more proxies, which can then be secured using TLS (Transport -> Layer Security, [RFC5246]). - -In Node.js, these request objects come from the `'connect'` event on -the HTTP server. - -When this module is used on a HTTP `CONNECT` request, the request is -considered "finished" immediately, **due to limitations in the Node.js -interface**. This means if the `CONNECT` request contains a request entity, -the request will be considered "finished" even before it has been read. - -There is no such thing as a response object to a `CONNECT` request in -Node.js, so there is no support for one. - -### HTTP Upgrade request - -The meaning of the `Upgrade` header from RFC 7230, section 6.1: - -> The "Upgrade" header field is intended to provide a simple mechanism -> for transitioning from HTTP/1.1 to some other protocol on the same -> connection. - -In Node.js, these request objects come from the `'upgrade'` event on -the HTTP server. - -When this module is used on a HTTP request with an `Upgrade` header, the -request is considered "finished" immediately, **due to limitations in the -Node.js interface**. This means if the `Upgrade` request contains a request -entity, the request will be considered "finished" even before it has been -read. - -There is no such thing as a response object to a `Upgrade` request in -Node.js, so there is no support for one. - -## Example - -The following code ensures that file descriptors are always closed -once the response finishes. - -```js -var destroy = require('destroy') -var fs = require('fs') -var http = require('http') -var onFinished = require('on-finished') - -http.createServer(function onRequest (req, res) { - var stream = fs.createReadStream('package.json') - stream.pipe(res) - onFinished(res, function () { - destroy(stream) - }) -}) -``` - -## License - -[MIT](LICENSE) - -[ci-image]: https://badgen.net/github/checks/jshttp/on-finished/master?label=ci -[ci-url]: https://github.com/jshttp/on-finished/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/on-finished/master -[coveralls-url]: https://coveralls.io/r/jshttp/on-finished?branch=master -[node-image]: https://badgen.net/npm/node/on-finished -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/on-finished -[npm-url]: https://npmjs.org/package/on-finished -[npm-version-image]: https://badgen.net/npm/v/on-finished diff --git a/mcp-server/node_modules/on-finished/index.js b/mcp-server/node_modules/on-finished/index.js deleted file mode 100644 index e68df7b..0000000 --- a/mcp-server/node_modules/on-finished/index.js +++ /dev/null @@ -1,234 +0,0 @@ -/*! - * on-finished - * Copyright(c) 2013 Jonathan Ong - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = onFinished -module.exports.isFinished = isFinished - -/** - * Module dependencies. - * @private - */ - -var asyncHooks = tryRequireAsyncHooks() -var first = require('ee-first') - -/** - * Variables. - * @private - */ - -/* istanbul ignore next */ -var defer = typeof setImmediate === 'function' - ? setImmediate - : function (fn) { process.nextTick(fn.bind.apply(fn, arguments)) } - -/** - * Invoke callback when the response has finished, useful for - * cleaning up resources afterwards. - * - * @param {object} msg - * @param {function} listener - * @return {object} - * @public - */ - -function onFinished (msg, listener) { - if (isFinished(msg) !== false) { - defer(listener, null, msg) - return msg - } - - // attach the listener to the message - attachListener(msg, wrap(listener)) - - return msg -} - -/** - * Determine if message is already finished. - * - * @param {object} msg - * @return {boolean} - * @public - */ - -function isFinished (msg) { - var socket = msg.socket - - if (typeof msg.finished === 'boolean') { - // OutgoingMessage - return Boolean(msg.finished || (socket && !socket.writable)) - } - - if (typeof msg.complete === 'boolean') { - // IncomingMessage - return Boolean(msg.upgrade || !socket || !socket.readable || (msg.complete && !msg.readable)) - } - - // don't know - return undefined -} - -/** - * Attach a finished listener to the message. - * - * @param {object} msg - * @param {function} callback - * @private - */ - -function attachFinishedListener (msg, callback) { - var eeMsg - var eeSocket - var finished = false - - function onFinish (error) { - eeMsg.cancel() - eeSocket.cancel() - - finished = true - callback(error) - } - - // finished on first message event - eeMsg = eeSocket = first([[msg, 'end', 'finish']], onFinish) - - function onSocket (socket) { - // remove listener - msg.removeListener('socket', onSocket) - - if (finished) return - if (eeMsg !== eeSocket) return - - // finished on first socket event - eeSocket = first([[socket, 'error', 'close']], onFinish) - } - - if (msg.socket) { - // socket already assigned - onSocket(msg.socket) - return - } - - // wait for socket to be assigned - msg.on('socket', onSocket) - - if (msg.socket === undefined) { - // istanbul ignore next: node.js 0.8 patch - patchAssignSocket(msg, onSocket) - } -} - -/** - * Attach the listener to the message. - * - * @param {object} msg - * @return {function} - * @private - */ - -function attachListener (msg, listener) { - var attached = msg.__onFinished - - // create a private single listener with queue - if (!attached || !attached.queue) { - attached = msg.__onFinished = createListener(msg) - attachFinishedListener(msg, attached) - } - - attached.queue.push(listener) -} - -/** - * Create listener on message. - * - * @param {object} msg - * @return {function} - * @private - */ - -function createListener (msg) { - function listener (err) { - if (msg.__onFinished === listener) msg.__onFinished = null - if (!listener.queue) return - - var queue = listener.queue - listener.queue = null - - for (var i = 0; i < queue.length; i++) { - queue[i](err, msg) - } - } - - listener.queue = [] - - return listener -} - -/** - * Patch ServerResponse.prototype.assignSocket for node.js 0.8. - * - * @param {ServerResponse} res - * @param {function} callback - * @private - */ - -// istanbul ignore next: node.js 0.8 patch -function patchAssignSocket (res, callback) { - var assignSocket = res.assignSocket - - if (typeof assignSocket !== 'function') return - - // res.on('socket', callback) is broken in 0.8 - res.assignSocket = function _assignSocket (socket) { - assignSocket.call(this, socket) - callback(socket) - } -} - -/** - * Try to require async_hooks - * @private - */ - -function tryRequireAsyncHooks () { - try { - return require('async_hooks') - } catch (e) { - return {} - } -} - -/** - * Wrap function with async resource, if possible. - * AsyncResource.bind static method backported. - * @private - */ - -function wrap (fn) { - var res - - // create anonymous resource - if (asyncHooks.AsyncResource) { - res = new asyncHooks.AsyncResource(fn.name || 'bound-anonymous-fn') - } - - // incompatible node.js - if (!res || !res.runInAsyncScope) { - return fn - } - - // return bound function - return res.runInAsyncScope.bind(res, fn, null) -} diff --git a/mcp-server/node_modules/on-finished/package.json b/mcp-server/node_modules/on-finished/package.json deleted file mode 100644 index 644cd81..0000000 --- a/mcp-server/node_modules/on-finished/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "on-finished", - "description": "Execute a callback when a request closes, finishes, or errors", - "version": "2.4.1", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "license": "MIT", - "repository": "jshttp/on-finished", - "dependencies": { - "ee-first": "1.1.1" - }, - "devDependencies": { - "eslint": "7.32.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.25.4", - "eslint-plugin-markdown": "2.2.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-promise": "5.2.0", - "eslint-plugin-standard": "4.1.0", - "mocha": "9.2.1", - "nyc": "15.1.0" - }, - "engines": { - "node": ">= 0.8" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js" - ], - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-ci": "nyc --reporter=lcovonly --reporter=text npm test", - "test-cov": "nyc --reporter=html --reporter=text npm test" - } -} diff --git a/mcp-server/node_modules/once/LICENSE b/mcp-server/node_modules/once/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/mcp-server/node_modules/once/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/mcp-server/node_modules/once/README.md b/mcp-server/node_modules/once/README.md deleted file mode 100644 index 1f1ffca..0000000 --- a/mcp-server/node_modules/once/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# once - -Only call a function once. - -## usage - -```javascript -var once = require('once') - -function load (file, cb) { - cb = once(cb) - loader.load('file') - loader.once('load', cb) - loader.once('error', cb) -} -``` - -Or add to the Function.prototype in a responsible way: - -```javascript -// only has to be done once -require('once').proto() - -function load (file, cb) { - cb = cb.once() - loader.load('file') - loader.once('load', cb) - loader.once('error', cb) -} -``` - -Ironically, the prototype feature makes this module twice as -complicated as necessary. - -To check whether you function has been called, use `fn.called`. Once the -function is called for the first time the return value of the original -function is saved in `fn.value` and subsequent calls will continue to -return this value. - -```javascript -var once = require('once') - -function load (cb) { - cb = once(cb) - var stream = createStream() - stream.once('data', cb) - stream.once('end', function () { - if (!cb.called) cb(new Error('not found')) - }) -} -``` - -## `once.strict(func)` - -Throw an error if the function is called twice. - -Some functions are expected to be called only once. Using `once` for them would -potentially hide logical errors. - -In the example below, the `greet` function has to call the callback only once: - -```javascript -function greet (name, cb) { - // return is missing from the if statement - // when no name is passed, the callback is called twice - if (!name) cb('Hello anonymous') - cb('Hello ' + name) -} - -function log (msg) { - console.log(msg) -} - -// this will print 'Hello anonymous' but the logical error will be missed -greet(null, once(msg)) - -// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time -greet(null, once.strict(msg)) -``` diff --git a/mcp-server/node_modules/once/once.js b/mcp-server/node_modules/once/once.js deleted file mode 100644 index 2354067..0000000 --- a/mcp-server/node_modules/once/once.js +++ /dev/null @@ -1,42 +0,0 @@ -var wrappy = require('wrappy') -module.exports = wrappy(once) -module.exports.strict = wrappy(onceStrict) - -once.proto = once(function () { - Object.defineProperty(Function.prototype, 'once', { - value: function () { - return once(this) - }, - configurable: true - }) - - Object.defineProperty(Function.prototype, 'onceStrict', { - value: function () { - return onceStrict(this) - }, - configurable: true - }) -}) - -function once (fn) { - var f = function () { - if (f.called) return f.value - f.called = true - return f.value = fn.apply(this, arguments) - } - f.called = false - return f -} - -function onceStrict (fn) { - var f = function () { - if (f.called) - throw new Error(f.onceError) - f.called = true - return f.value = fn.apply(this, arguments) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f -} diff --git a/mcp-server/node_modules/once/package.json b/mcp-server/node_modules/once/package.json deleted file mode 100644 index 16815b2..0000000 --- a/mcp-server/node_modules/once/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "once", - "version": "1.4.0", - "description": "Run a function exactly one time", - "main": "once.js", - "directories": { - "test": "test" - }, - "dependencies": { - "wrappy": "1" - }, - "devDependencies": { - "tap": "^7.0.1" - }, - "scripts": { - "test": "tap test/*.js" - }, - "files": [ - "once.js" - ], - "repository": { - "type": "git", - "url": "git://github.com/isaacs/once" - }, - "keywords": [ - "once", - "function", - "one", - "single" - ], - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC" -} diff --git a/mcp-server/node_modules/parseurl/HISTORY.md b/mcp-server/node_modules/parseurl/HISTORY.md deleted file mode 100644 index 8e40954..0000000 --- a/mcp-server/node_modules/parseurl/HISTORY.md +++ /dev/null @@ -1,58 +0,0 @@ -1.3.3 / 2019-04-15 -================== - - * Fix Node.js 0.8 return value inconsistencies - -1.3.2 / 2017-09-09 -================== - - * perf: reduce overhead for full URLs - * perf: unroll the "fast-path" `RegExp` - -1.3.1 / 2016-01-17 -================== - - * perf: enable strict mode - -1.3.0 / 2014-08-09 -================== - - * Add `parseurl.original` for parsing `req.originalUrl` with fallback - * Return `undefined` if `req.url` is `undefined` - -1.2.0 / 2014-07-21 -================== - - * Cache URLs based on original value - * Remove no-longer-needed URL mis-parse work-around - * Simplify the "fast-path" `RegExp` - -1.1.3 / 2014-07-08 -================== - - * Fix typo - -1.1.2 / 2014-07-08 -================== - - * Seriously fix Node.js 0.8 compatibility - -1.1.1 / 2014-07-08 -================== - - * Fix Node.js 0.8 compatibility - -1.1.0 / 2014-07-08 -================== - - * Incorporate URL href-only parse fast-path - -1.0.1 / 2014-03-08 -================== - - * Add missing `require` - -1.0.0 / 2014-03-08 -================== - - * Genesis from `connect` diff --git a/mcp-server/node_modules/parseurl/LICENSE b/mcp-server/node_modules/parseurl/LICENSE deleted file mode 100644 index 27653d3..0000000 --- a/mcp-server/node_modules/parseurl/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ - -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2014-2017 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/mcp-server/node_modules/parseurl/README.md b/mcp-server/node_modules/parseurl/README.md deleted file mode 100644 index 443e716..0000000 --- a/mcp-server/node_modules/parseurl/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# parseurl - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Parse a URL with memoization. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install parseurl -``` - -## API - -```js -var parseurl = require('parseurl') -``` - -### parseurl(req) - -Parse the URL of the given request object (looks at the `req.url` property) -and return the result. The result is the same as `url.parse` in Node.js core. -Calling this function multiple times on the same `req` where `req.url` does -not change will return a cached parsed object, rather than parsing again. - -### parseurl.original(req) - -Parse the original URL of the given request object and return the result. -This works by trying to parse `req.originalUrl` if it is a string, otherwise -parses `req.url`. The result is the same as `url.parse` in Node.js core. -Calling this function multiple times on the same `req` where `req.originalUrl` -does not change will return a cached parsed object, rather than parsing again. - -## Benchmark - -```bash -$ npm run-script bench - -> parseurl@1.3.3 bench nodejs-parseurl -> node benchmark/index.js - - http_parser@2.8.0 - node@10.6.0 - v8@6.7.288.46-node.13 - uv@1.21.0 - zlib@1.2.11 - ares@1.14.0 - modules@64 - nghttp2@1.32.0 - napi@3 - openssl@1.1.0h - icu@61.1 - unicode@10.0 - cldr@33.0 - tz@2018c - -> node benchmark/fullurl.js - - Parsing URL "http://localhost:8888/foo/bar?user=tj&pet=fluffy" - - 4 tests completed. - - fasturl x 2,207,842 ops/sec ±3.76% (184 runs sampled) - nativeurl - legacy x 507,180 ops/sec ±0.82% (191 runs sampled) - nativeurl - whatwg x 290,044 ops/sec ±1.96% (189 runs sampled) - parseurl x 488,907 ops/sec ±2.13% (192 runs sampled) - -> node benchmark/pathquery.js - - Parsing URL "/foo/bar?user=tj&pet=fluffy" - - 4 tests completed. - - fasturl x 3,812,564 ops/sec ±3.15% (188 runs sampled) - nativeurl - legacy x 2,651,631 ops/sec ±1.68% (189 runs sampled) - nativeurl - whatwg x 161,837 ops/sec ±2.26% (189 runs sampled) - parseurl x 4,166,338 ops/sec ±2.23% (184 runs sampled) - -> node benchmark/samerequest.js - - Parsing URL "/foo/bar?user=tj&pet=fluffy" on same request object - - 4 tests completed. - - fasturl x 3,821,651 ops/sec ±2.42% (185 runs sampled) - nativeurl - legacy x 2,651,162 ops/sec ±1.90% (187 runs sampled) - nativeurl - whatwg x 175,166 ops/sec ±1.44% (188 runs sampled) - parseurl x 14,912,606 ops/sec ±3.59% (183 runs sampled) - -> node benchmark/simplepath.js - - Parsing URL "/foo/bar" - - 4 tests completed. - - fasturl x 12,421,765 ops/sec ±2.04% (191 runs sampled) - nativeurl - legacy x 7,546,036 ops/sec ±1.41% (188 runs sampled) - nativeurl - whatwg x 198,843 ops/sec ±1.83% (189 runs sampled) - parseurl x 24,244,006 ops/sec ±0.51% (194 runs sampled) - -> node benchmark/slash.js - - Parsing URL "/" - - 4 tests completed. - - fasturl x 17,159,456 ops/sec ±3.25% (188 runs sampled) - nativeurl - legacy x 11,635,097 ops/sec ±3.79% (184 runs sampled) - nativeurl - whatwg x 240,693 ops/sec ±0.83% (189 runs sampled) - parseurl x 42,279,067 ops/sec ±0.55% (190 runs sampled) -``` - -## License - - [MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/pillarjs/parseurl/master -[coveralls-url]: https://coveralls.io/r/pillarjs/parseurl?branch=master -[node-image]: https://badgen.net/npm/node/parseurl -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/parseurl -[npm-url]: https://npmjs.org/package/parseurl -[npm-version-image]: https://badgen.net/npm/v/parseurl -[travis-image]: https://badgen.net/travis/pillarjs/parseurl/master -[travis-url]: https://travis-ci.org/pillarjs/parseurl diff --git a/mcp-server/node_modules/parseurl/index.js b/mcp-server/node_modules/parseurl/index.js deleted file mode 100644 index ece7223..0000000 --- a/mcp-server/node_modules/parseurl/index.js +++ /dev/null @@ -1,158 +0,0 @@ -/*! - * parseurl - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var url = require('url') -var parse = url.parse -var Url = url.Url - -/** - * Module exports. - * @public - */ - -module.exports = parseurl -module.exports.original = originalurl - -/** - * Parse the `req` url with memoization. - * - * @param {ServerRequest} req - * @return {Object} - * @public - */ - -function parseurl (req) { - var url = req.url - - if (url === undefined) { - // URL is undefined - return undefined - } - - var parsed = req._parsedUrl - - if (fresh(url, parsed)) { - // Return cached URL parse - return parsed - } - - // Parse the URL - parsed = fastparse(url) - parsed._raw = url - - return (req._parsedUrl = parsed) -}; - -/** - * Parse the `req` original url with fallback and memoization. - * - * @param {ServerRequest} req - * @return {Object} - * @public - */ - -function originalurl (req) { - var url = req.originalUrl - - if (typeof url !== 'string') { - // Fallback - return parseurl(req) - } - - var parsed = req._parsedOriginalUrl - - if (fresh(url, parsed)) { - // Return cached URL parse - return parsed - } - - // Parse the URL - parsed = fastparse(url) - parsed._raw = url - - return (req._parsedOriginalUrl = parsed) -}; - -/** - * Parse the `str` url with fast-path short-cut. - * - * @param {string} str - * @return {Object} - * @private - */ - -function fastparse (str) { - if (typeof str !== 'string' || str.charCodeAt(0) !== 0x2f /* / */) { - return parse(str) - } - - var pathname = str - var query = null - var search = null - - // This takes the regexp from https://github.com/joyent/node/pull/7878 - // Which is /^(\/[^?#\s]*)(\?[^#\s]*)?$/ - // And unrolls it into a for loop - for (var i = 1; i < str.length; i++) { - switch (str.charCodeAt(i)) { - case 0x3f: /* ? */ - if (search === null) { - pathname = str.substring(0, i) - query = str.substring(i + 1) - search = str.substring(i) - } - break - case 0x09: /* \t */ - case 0x0a: /* \n */ - case 0x0c: /* \f */ - case 0x0d: /* \r */ - case 0x20: /* */ - case 0x23: /* # */ - case 0xa0: - case 0xfeff: - return parse(str) - } - } - - var url = Url !== undefined - ? new Url() - : {} - - url.path = str - url.href = str - url.pathname = pathname - - if (search !== null) { - url.query = query - url.search = search - } - - return url -} - -/** - * Determine if parsed is still fresh for url. - * - * @param {string} url - * @param {object} parsedUrl - * @return {boolean} - * @private - */ - -function fresh (url, parsedUrl) { - return typeof parsedUrl === 'object' && - parsedUrl !== null && - (Url === undefined || parsedUrl instanceof Url) && - parsedUrl._raw === url -} diff --git a/mcp-server/node_modules/parseurl/package.json b/mcp-server/node_modules/parseurl/package.json deleted file mode 100644 index 6b443ca..0000000 --- a/mcp-server/node_modules/parseurl/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "parseurl", - "description": "parse a url with memoization", - "version": "1.3.3", - "contributors": [ - "Douglas Christopher Wilson ", - "Jonathan Ong (http://jongleberry.com)" - ], - "repository": "pillarjs/parseurl", - "license": "MIT", - "devDependencies": { - "beautify-benchmark": "0.2.4", - "benchmark": "2.1.4", - "eslint": "5.16.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.17.1", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.1.1", - "eslint-plugin-standard": "4.0.0", - "fast-url-parser": "1.1.3", - "istanbul": "0.4.5", - "mocha": "6.1.3" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "README.md", - "index.js" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "bench": "node benchmark/index.js", - "lint": "eslint .", - "test": "mocha --check-leaks --bail --reporter spec test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec test/" - } -} diff --git a/mcp-server/node_modules/path-to-regexp/LICENSE b/mcp-server/node_modules/path-to-regexp/LICENSE deleted file mode 100644 index 983fbe8..0000000 --- a/mcp-server/node_modules/path-to-regexp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/mcp-server/node_modules/path-to-regexp/Readme.md b/mcp-server/node_modules/path-to-regexp/Readme.md deleted file mode 100644 index 95452a6..0000000 --- a/mcp-server/node_modules/path-to-regexp/Readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# Path-to-RegExp - -Turn an Express-style path string such as `/user/:name` into a regular expression. - -**Note:** This is a legacy branch. You should upgrade to `1.x`. - -## Usage - -```javascript -var pathToRegexp = require('path-to-regexp'); -``` - -### pathToRegexp(path, keys, options) - - - **path** A string in the express format, an array of such strings, or a regular expression - - **keys** An array to be populated with the keys present in the url. Once the function completes, this will be an array of strings. - - **options** - - **options.sensitive** Defaults to false, set this to true to make routes case sensitive - - **options.strict** Defaults to false, set this to true to make the trailing slash matter. - - **options.end** Defaults to true, set this to false to only match the prefix of the URL. - -```javascript -var keys = []; -var exp = pathToRegexp('/foo/:bar', keys); -//keys = ['bar'] -//exp = /^\/foo\/(?:([^\/]+?))\/?$/i -``` - -## Live Demo - -You can see a live demo of this library in use at [express-route-tester](http://forbeslindesay.github.com/express-route-tester/). - -## License - - MIT diff --git a/mcp-server/node_modules/path-to-regexp/index.js b/mcp-server/node_modules/path-to-regexp/index.js deleted file mode 100644 index 95d2f4b..0000000 --- a/mcp-server/node_modules/path-to-regexp/index.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Expose `pathToRegexp`. - */ - -module.exports = pathToRegexp; - -/** - * Match matching groups in a regular expression. - */ -var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g; - -/** - * Normalize the given path string, - * returning a regular expression. - * - * An empty array should be passed, - * which will contain the placeholder - * key names. For example "/user/:id" will - * then contain ["id"]. - * - * @param {String|RegExp|Array} path - * @param {Array} keys - * @param {Object} options - * @return {RegExp} - * @api private - */ - -function pathToRegexp(path, keys, options) { - options = options || {}; - keys = keys || []; - var strict = options.strict; - var end = options.end !== false; - var flags = options.sensitive ? '' : 'i'; - var lookahead = options.lookahead !== false; - var extraOffset = 0; - var keysOffset = keys.length; - var i = 0; - var name = 0; - var pos = 0; - var backtrack = ''; - var m; - - if (path instanceof RegExp) { - while (m = MATCHING_GROUP_REGEXP.exec(path.source)) { - if (m[0][0] === '\\') continue; - - keys.push({ - name: m[1] || name++, - optional: false, - offset: m.index - }); - } - - return path; - } - - if (Array.isArray(path)) { - // Map array parts into regexps and return their source. We also pass - // the same keys and options instance into every generation to get - // consistent matching groups before we join the sources together. - path = path.map(function (value) { - return pathToRegexp(value, keys, options).source; - }); - - return new RegExp(path.join('|'), flags); - } - - if (typeof path !== 'string') { - throw new TypeError('path must be a string, array of strings, or regular expression'); - } - - path = path.replace( - /\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g, - function (match, slash, format, key, capture, star, optional, offset) { - if (match[0] === '\\') { - backtrack += match; - pos += 2; - return match; - } - - if (match === '.') { - backtrack += '\\.'; - extraOffset += 1; - pos += 1; - return '\\.'; - } - - if (slash || format) { - backtrack = ''; - } else { - backtrack += path.slice(pos, offset); - } - - pos = offset + match.length; - - if (match === '*') { - extraOffset += 3; - return '(.*)'; - } - - if (match === '/(') { - backtrack += '/'; - extraOffset += 2; - return '/(?:'; - } - - slash = slash || ''; - format = format ? '\\.' : ''; - optional = optional || ''; - capture = capture ? - capture.replace(/\\.|\*/, function (m) { return m === '*' ? '(.*)' : m; }) : - (backtrack ? '((?:(?!/|' + backtrack + ').)+?)' : '([^/' + format + ']+?)'); - - keys.push({ - name: key, - optional: !!optional, - offset: offset + extraOffset - }); - - var result = '(?:' - + format + slash + capture - + (star ? '((?:[/' + format + '].+?)?)' : '') - + ')' - + optional; - - extraOffset += result.length - match.length; - - return result; - }); - - // This is a workaround for handling unnamed matching groups. - while (m = MATCHING_GROUP_REGEXP.exec(path)) { - if (m[0][0] === '\\') continue; - - if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) { - keys.splice(keysOffset + i, 0, { - name: name++, // Unnamed matching groups must be consistently linear. - optional: false, - offset: m.index - }); - } - - i++; - } - - path += strict ? '' : path[path.length - 1] === '/' ? '?' : '/?'; - - // If the path is non-ending, match until the end or a slash. - if (end) { - path += '$'; - } else if (path[path.length - 1] !== '/') { - path += lookahead ? '(?=/|$)' : '(?:/|$)'; - } - - return new RegExp('^' + path, flags); -}; diff --git a/mcp-server/node_modules/path-to-regexp/package.json b/mcp-server/node_modules/path-to-regexp/package.json deleted file mode 100644 index 23b4b6a..0000000 --- a/mcp-server/node_modules/path-to-regexp/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "path-to-regexp", - "description": "Express style path to RegExp utility", - "version": "0.1.12", - "files": [ - "index.js", - "LICENSE" - ], - "scripts": { - "test": "istanbul cover _mocha -- -R spec" - }, - "keywords": [ - "express", - "regexp" - ], - "component": { - "scripts": { - "path-to-regexp": "index.js" - } - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/pillarjs/path-to-regexp.git" - }, - "devDependencies": { - "mocha": "^1.17.1", - "istanbul": "^0.2.6" - } -} diff --git a/mcp-server/node_modules/pkce-challenge/CHANGELOG.md b/mcp-server/node_modules/pkce-challenge/CHANGELOG.md deleted file mode 100644 index 09e31b8..0000000 --- a/mcp-server/node_modules/pkce-challenge/CHANGELOG.md +++ /dev/null @@ -1,114 +0,0 @@ -# Changelog - -## [5.0.1](https://github.com/crouchcd/pkce-challenge/releases/tag/5.0.1) - 2025-11-22 - -## What's Changed -* Use even distribution by @RobinVdBroeck in https://github.com/crouchcd/pkce-challenge/pull/38 - -## New Contributors -* @RobinVdBroeck made their first contribution in https://github.com/crouchcd/pkce-challenge/pull/38 - -**Full Changelog**: https://github.com/crouchcd/pkce-challenge/compare/5.0.0...5.0.1 - -## [5.0.0](https://github.com/crouchcd/pkce-challenge/releases/tag/5.0.0) - 2025-03-30 - -## What's Changed -* fix: add support for commonjs module by @li-yechao in https://github.com/crouchcd/pkce-challenge/pull/32 - -## New Contributors -* @li-yechao made their first contribution in https://github.com/crouchcd/pkce-challenge/pull/32 - -**Full Changelog**: https://github.com/crouchcd/pkce-challenge/compare/4.1.0...5.0.0 - -## [4.1.0](https://github.com/crouchcd/pkce-challenge/releases/tag/4.1.0) - 2024-01-25 - -## What's Changed -* Separate entrypoints for node and browser by @mdarocha in https://github.com/crouchcd/pkce-challenge/pull/25 - -## New Contributors -* @mdarocha made their first contribution in https://github.com/crouchcd/pkce-challenge/pull/25 - -**Full Changelog**: https://github.com/crouchcd/pkce-challenge/compare/4.0.1...4.1.0 - -## [4.0.1](https://github.com/crouchcd/pkce-challenge/releases/tag/4.0.1) - 2023-05-11 - -- chore: update README (dc76443a502c25ce98258cea3f25fd78a22cb2a8) -- chore: specify node engines >= 16.20.0 (5e7fc5edbcd0e19f99fc11a9705e5e708a100be8) - -## [4.0.0](https://github.com/crouchcd/pkce-challenge/releases/tag/4.0.0) - 2023-05-11 - -- BREAKING CHANGE: Use Web Cryptography API (#20), closes #21, #18 - -### Contributors - -- [saschanaz](https://github.com/saschanaz) - -## [3.1.0] - 2023-03-29 - -- chore: Use ES6 imports for crypto-js to reduce bundle size - -### Contributors - -- [gretchenfitze] - -## [3.0.0] - 2022-03-28 - -- feat!: depend on crypto-js for node/browser compatibility. Using Typescript with Parcel. - -```js -// commonjs -const pkceChallenge = require("pkce-challenge").default; - -// es modules -import pkceChallenge from "pkce-challenge"; -``` - -## [2.2.0] - 2021-05-19 - -### Added - -- `generateChallenge` exported from index - -### Contributors - -- [SeyyedKhandon] - -## [2.1.0] - 2019-12-20 - -### Added - -- `verifyChallenge` exported from index - -### Changed - -- code/comment formatting -- refactored `random` function - -## [2.0.0] - 2019-10-18 - -### Added - -- CHANGELOG -- typescript definition -- Cryptographically secured method for generating code verifier -- Method for base64 url encoding - -### Removed - -- `generateVerifier` export from index -- `generateChallenge` export from index -- `base64url` npm dependency -- `randomatic` npm dependency - -### Contributors - -- [lordnox] - -[gretchenfitze]: https://github.com/gretchenfitze -[seyyedkhandon]: https://github.com/SeyyedKhandon -[lordnox]: https://github.com/lordnox -[3.1.0]: https://github.com/crouchcd/pkce-challenge/releases/tag/3.1.0 -[3.0.0]: https://github.com/crouchcd/pkce-challenge/releases/tag/3.0.0 -[2.2.0]: https://github.com/crouchcd/pkce-challenge/releases/tag/2.2.0 -[2.1.0]: https://github.com/crouchcd/pkce-challenge/releases/tag/2.1.0 -[2.0.0]: https://github.com/crouchcd/pkce-challenge/releases/tag/2.0.0 diff --git a/mcp-server/node_modules/pkce-challenge/LICENSE b/mcp-server/node_modules/pkce-challenge/LICENSE deleted file mode 100644 index 8b23445..0000000 --- a/mcp-server/node_modules/pkce-challenge/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mcp-server/node_modules/pkce-challenge/README.md b/mcp-server/node_modules/pkce-challenge/README.md deleted file mode 100644 index e2218b6..0000000 --- a/mcp-server/node_modules/pkce-challenge/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# pkce-challenge - -Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair. - -Read more about [PKCE](https://www.oauth.com/oauth2-servers/pkce/authorization-request/). - -## Installation - -```bash -npm install pkce-challenge -``` - -## Usage - -Default length for the verifier is 43 - -```js -import pkceChallenge from "pkce-challenge"; - -await pkceChallenge(); -``` - -gives something like: - -```js -{ - code_verifier: 'u1ta-MQ0e7TcpHjgz33M2DcBnOQu~aMGxuiZt0QMD1C', - code_challenge: 'CUZX5qE8Wvye6kS_SasIsa8MMxacJftmWdsIA_iKp3I' -} -``` - -### Specify a verifier length - -```js -const challenge = await pkceChallenge(128); - -challenge.code_verifier.length === 128; // true -``` - -### Challenge verification - -```js -import { verifyChallenge } from "pkce-challenge"; - -(await verifyChallenge(challenge.code_verifier, challenge.code_challenge)) === - true; // true -``` - -### Challenge generation from existing code verifier - -```js -import { generateChallenge } from "pkce-challenge"; - -(await generateChallenge(challenge.code_verifier)) === challenge.code_challenge; // true -``` diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.browser.d.ts b/mcp-server/node_modules/pkce-challenge/dist/index.browser.d.ts deleted file mode 100644 index 602e32e..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.browser.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -export declare function generateChallenge(code_verifier: string): Promise; -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -export default function pkceChallenge(length?: number): Promise<{ - code_verifier: string; - code_challenge: string; -}>; -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -export declare function verifyChallenge(code_verifier: string, expectedChallenge: string): Promise; diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.browser.js b/mcp-server/node_modules/pkce-challenge/dist/index.browser.js deleted file mode 100644 index f40d7f7..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.browser.js +++ /dev/null @@ -1,75 +0,0 @@ -let crypto; -crypto = globalThis.crypto; // web browsers -/** - * Creates an array of length `size` of random bytes - * @param size - * @returns Array of random ints (0 to 255) - */ -async function getRandomValues(size) { - return (await crypto).getRandomValues(new Uint8Array(size)); -} -/** Generate cryptographically strong random string - * @param size The desired length of the string - * @returns The random string - */ -async function random(size) { - const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"; - const evenDistCutoff = Math.pow(2, 8) - Math.pow(2, 8) % mask.length; - let result = ""; - while (result.length < size) { - const randomBytes = await getRandomValues(size - result.length); - for (const randomByte of randomBytes) { - if (randomByte < evenDistCutoff) { - result += mask[randomByte % mask.length]; - } - } - } - return result; -} -/** Generate a PKCE challenge verifier - * @param length Length of the verifier - * @returns A random verifier `length` characters long - */ -async function generateVerifier(length) { - return await random(length); -} -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -export async function generateChallenge(code_verifier) { - const buffer = await (await crypto).subtle.digest("SHA-256", new TextEncoder().encode(code_verifier)); - // Generate base64url string - // btoa is deprecated in Node.js but is used here for web browser compatibility - // (which has no good replacement yet, see also https://github.com/whatwg/html/issues/6811) - return btoa(String.fromCharCode(...new Uint8Array(buffer))) - .replace(/\//g, '_') - .replace(/\+/g, '-') - .replace(/=/g, ''); -} -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -export default async function pkceChallenge(length) { - if (!length) - length = 43; - if (length < 43 || length > 128) { - throw `Expected a length between 43 and 128. Received ${length}.`; - } - const verifier = await generateVerifier(length); - const challenge = await generateChallenge(verifier); - return { - code_verifier: verifier, - code_challenge: challenge, - }; -} -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -export async function verifyChallenge(code_verifier, expectedChallenge) { - const actualChallenge = await generateChallenge(code_verifier); - return actualChallenge === expectedChallenge; -} diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.node.cjs b/mcp-server/node_modules/pkce-challenge/dist/index.node.cjs deleted file mode 100644 index 774ae40..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.node.cjs +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.generateChallenge = generateChallenge; -exports.default = pkceChallenge; -exports.verifyChallenge = verifyChallenge; -let crypto; -crypto = - globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL - globalThis.crypto ?? // Node.js >18 - import("node:crypto").then(m => m.webcrypto); // Node.js <18 Non-REPL -/** - * Creates an array of length `size` of random bytes - * @param size - * @returns Array of random ints (0 to 255) - */ -async function getRandomValues(size) { - return (await crypto).getRandomValues(new Uint8Array(size)); -} -/** Generate cryptographically strong random string - * @param size The desired length of the string - * @returns The random string - */ -async function random(size) { - const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"; - const evenDistCutoff = Math.pow(2, 8) - Math.pow(2, 8) % mask.length; - let result = ""; - while (result.length < size) { - const randomBytes = await getRandomValues(size - result.length); - for (const randomByte of randomBytes) { - if (randomByte < evenDistCutoff) { - result += mask[randomByte % mask.length]; - } - } - } - return result; -} -/** Generate a PKCE challenge verifier - * @param length Length of the verifier - * @returns A random verifier `length` characters long - */ -async function generateVerifier(length) { - return await random(length); -} -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -async function generateChallenge(code_verifier) { - const buffer = await (await crypto).subtle.digest("SHA-256", new TextEncoder().encode(code_verifier)); - // Generate base64url string - // btoa is deprecated in Node.js but is used here for web browser compatibility - // (which has no good replacement yet, see also https://github.com/whatwg/html/issues/6811) - return btoa(String.fromCharCode(...new Uint8Array(buffer))) - .replace(/\//g, '_') - .replace(/\+/g, '-') - .replace(/=/g, ''); -} -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -async function pkceChallenge(length) { - if (!length) - length = 43; - if (length < 43 || length > 128) { - throw `Expected a length between 43 and 128. Received ${length}.`; - } - const verifier = await generateVerifier(length); - const challenge = await generateChallenge(verifier); - return { - code_verifier: verifier, - code_challenge: challenge, - }; -} -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -async function verifyChallenge(code_verifier, expectedChallenge) { - const actualChallenge = await generateChallenge(code_verifier); - return actualChallenge === expectedChallenge; -} diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.node.d.cts b/mcp-server/node_modules/pkce-challenge/dist/index.node.d.cts deleted file mode 100644 index 602e32e..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.node.d.cts +++ /dev/null @@ -1,19 +0,0 @@ -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -export declare function generateChallenge(code_verifier: string): Promise; -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -export default function pkceChallenge(length?: number): Promise<{ - code_verifier: string; - code_challenge: string; -}>; -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -export declare function verifyChallenge(code_verifier: string, expectedChallenge: string): Promise; diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.node.d.ts b/mcp-server/node_modules/pkce-challenge/dist/index.node.d.ts deleted file mode 100644 index 602e32e..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.node.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -export declare function generateChallenge(code_verifier: string): Promise; -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -export default function pkceChallenge(length?: number): Promise<{ - code_verifier: string; - code_challenge: string; -}>; -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -export declare function verifyChallenge(code_verifier: string, expectedChallenge: string): Promise; diff --git a/mcp-server/node_modules/pkce-challenge/dist/index.node.js b/mcp-server/node_modules/pkce-challenge/dist/index.node.js deleted file mode 100644 index 56b47db..0000000 --- a/mcp-server/node_modules/pkce-challenge/dist/index.node.js +++ /dev/null @@ -1,78 +0,0 @@ -let crypto; -crypto = - globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL - globalThis.crypto ?? // Node.js >18 - import("node:crypto").then(m => m.webcrypto); // Node.js <18 Non-REPL -/** - * Creates an array of length `size` of random bytes - * @param size - * @returns Array of random ints (0 to 255) - */ -async function getRandomValues(size) { - return (await crypto).getRandomValues(new Uint8Array(size)); -} -/** Generate cryptographically strong random string - * @param size The desired length of the string - * @returns The random string - */ -async function random(size) { - const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"; - const evenDistCutoff = Math.pow(2, 8) - Math.pow(2, 8) % mask.length; - let result = ""; - while (result.length < size) { - const randomBytes = await getRandomValues(size - result.length); - for (const randomByte of randomBytes) { - if (randomByte < evenDistCutoff) { - result += mask[randomByte % mask.length]; - } - } - } - return result; -} -/** Generate a PKCE challenge verifier - * @param length Length of the verifier - * @returns A random verifier `length` characters long - */ -async function generateVerifier(length) { - return await random(length); -} -/** Generate a PKCE code challenge from a code verifier - * @param code_verifier - * @returns The base64 url encoded code challenge - */ -export async function generateChallenge(code_verifier) { - const buffer = await (await crypto).subtle.digest("SHA-256", new TextEncoder().encode(code_verifier)); - // Generate base64url string - // btoa is deprecated in Node.js but is used here for web browser compatibility - // (which has no good replacement yet, see also https://github.com/whatwg/html/issues/6811) - return btoa(String.fromCharCode(...new Uint8Array(buffer))) - .replace(/\//g, '_') - .replace(/\+/g, '-') - .replace(/=/g, ''); -} -/** Generate a PKCE challenge pair - * @param length Length of the verifer (between 43-128). Defaults to 43. - * @returns PKCE challenge pair - */ -export default async function pkceChallenge(length) { - if (!length) - length = 43; - if (length < 43 || length > 128) { - throw `Expected a length between 43 and 128. Received ${length}.`; - } - const verifier = await generateVerifier(length); - const challenge = await generateChallenge(verifier); - return { - code_verifier: verifier, - code_challenge: challenge, - }; -} -/** Verify that a code_verifier produces the expected code challenge - * @param code_verifier - * @param expectedChallenge The code challenge to verify - * @returns True if challenges are equal. False otherwise. - */ -export async function verifyChallenge(code_verifier, expectedChallenge) { - const actualChallenge = await generateChallenge(code_verifier); - return actualChallenge === expectedChallenge; -} diff --git a/mcp-server/node_modules/pkce-challenge/package.json b/mcp-server/node_modules/pkce-challenge/package.json deleted file mode 100644 index 3d23158..0000000 --- a/mcp-server/node_modules/pkce-challenge/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "pkce-challenge", - "version": "5.0.1", - "description": "Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair", - "browser": "dist/index.browser.js", - "type": "module", - "exports": { - ".": { - "types": { - "require": "./dist/index.node.d.cts", - "import": "./dist/index.node.d.ts" - }, - "browser": { - "types": "./dist/index.browser.d.ts", - "default": "./dist/index.browser.js" - }, - "node": { - "import": "./dist/index.node.js", - "require": "./dist/index.node.cjs" - } - } - }, - "files": [ - "dist/", - "CHANGELOG.md" - ], - "scripts": { - "watch": "tsc --watch --declaration", - "preprocess": "env=browser diverge -f src/index.ts src/index.browser.ts && env=node diverge -f src/index.ts src/index.node.ts && env=node diverge -f src/index.ts src/index.node.cts", - "build": "npm run preprocess && tsc --declaration", - "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", - "test:bundle": "npm run --prefix browser-test build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/crouchcd/pkce-challenge.git" - }, - "keywords": [ - "PKCE", - "oauth2" - ], - "author": "crouchcd", - "license": "MIT", - "bugs": { - "url": "https://github.com/crouchcd/pkce-challenge/issues" - }, - "homepage": "https://github.com/crouchcd/pkce-challenge#readme", - "engines": { - "node": ">=16.20.0" - }, - "devDependencies": { - "@types/jest": "^29.5.0", - "@types/node": "^18.15.11", - "diverge": "^1.0.2", - "esbuild": "^0.25.2", - "jest": "^29.5.0", - "typescript": "^5.0.3" - } -} diff --git a/mcp-server/node_modules/prisma/LICENSE b/mcp-server/node_modules/prisma/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/mcp-server/node_modules/prisma/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/mcp-server/node_modules/prisma/README.md b/mcp-server/node_modules/prisma/README.md deleted file mode 100644 index 44dd8fc..0000000 --- a/mcp-server/node_modules/prisma/README.md +++ /dev/null @@ -1,84 +0,0 @@ -
-

Prisma

- - - - Discord -
-
- Quickstart -   •   - Website -   •   - Docs -   •   - Examples -   •   - Blog -   •   - Discord -   •   - Twitter -
-
-
- -## What is Prisma? - -Prisma is a **next-generation ORM** that consists of these tools: - -- [**Prisma Client**](https://www.prisma.io/docs/concepts/components/prisma-client): Auto-generated and type-safe query builder for Node.js & TypeScript -- [**Prisma Migrate**](https://www.prisma.io/docs/concepts/components/prisma-migrate): Declarative data modeling & migration system -- [**Prisma Studio**](https://github.com/prisma/studio): GUI to view and edit data in your database - -Prisma Client can be used in _any_ Node.js or TypeScript backend application (including serverless applications and microservices). This can be a [REST API](https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/rest), a [GraphQL API](https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/graphql) a gRPC API, or anything else that needs a database. - -## Getting started - -The fastest way to get started with Prisma is by following the [**Quickstart (5 min)**](https://pris.ly/quickstart). - -The Quickstart is based on a preconfigured SQLite database. You can also get started with your own database (PostgreSQL and MySQL) by following one of these guides: - -- [Add Prisma to an existing project](https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-postgresql) -- [Set up a new project with Prisma from scratch](https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-postgresql) - -## Community - -Prisma has a large and supportive [community](https://www.prisma.io/community) of enthusiastic application developers. You can join us on [Discord](https://pris.ly/discord) and here on [GitHub](https://github.com/prisma/prisma/discussions). - -## Security - -If you have a security issue to report, please contact us at [security@prisma.io](mailto:security@prisma.io?subject=[GitHub]%20Prisma%202%20Security%20Report%20). - -## Support - -### Ask a question about Prisma - -You can ask questions and initiate [discussions](https://github.com/prisma/prisma/discussions/) about Prisma-related topics in the `prisma` repository on GitHub. - -👉 [**Ask a question**](https://github.com/prisma/prisma/discussions/new) - -### Create a bug report for Prisma - -If you see an error message or run into an issue, please make sure to create a bug report! You can find [best practices for creating bug reports](https://www.prisma.io/docs/guides/other/troubleshooting-orm/creating-bug-reports) (like including additional debugging output) in the docs. - -👉 [**Create bug report**](https://pris.ly/prisma-prisma-bug-report) - -### Submit a feature request - -If Prisma currently doesn't have a certain feature, be sure to check out the [roadmap](https://www.prisma.io/docs/more/roadmap) to see if this is already planned for the future. - -If the feature on the roadmap is linked to a GitHub issue, please make sure to leave a +1 on the issue and ideally a comment with your thoughts about the feature! - -👉 [**Submit feature request**](https://github.com/prisma/prisma/issues/new?assignees=&labels=&template=feature_request.md&title=) - -## Contributing - -Refer to our [contribution guidelines](https://github.com/prisma/prisma/blob/main/CONTRIBUTING.md) and [Code of Conduct for contributors](https://github.com/prisma/prisma/blob/main/CODE_OF_CONDUCT.md). - -## Tests Status - -- Prisma Tests Status: - [![CI](https://github.com/prisma/prisma/actions/workflows/test.yml/badge.svg)](https://github.com/prisma/prisma/actions/workflows/test.yml) -- Ecosystem Tests Status: - [![Actions Status](https://github.com/prisma/ecosystem-tests/workflows/test/badge.svg)](https://github.com/prisma/ecosystem-tests/actions) diff --git a/mcp-server/node_modules/prisma/build/child.js b/mcp-server/node_modules/prisma/build/child.js deleted file mode 100644 index 52c1049..0000000 --- a/mcp-server/node_modules/prisma/build/child.js +++ /dev/null @@ -1,82915 +0,0 @@ -'use strict'; - -var require$$0 = require('fs'); -var path$2 = require('path'); -var require$$2 = require('util'); -var fs$1 = require('fs/promises'); -var require$$1$1 = require('os'); -var crypto = require('crypto'); -var Stream = require('stream'); -var http = require('http'); -var Url = require('url'); -var require$$0$1 = require('punycode'); -var https = require('https'); -var zlib = require('zlib'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path$2); -var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2); -var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs$1); -var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1$1); -var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto); -var Stream__default = /*#__PURE__*/_interopDefaultLegacy(Stream); -var http__default = /*#__PURE__*/_interopDefaultLegacy(http); -var Url__default = /*#__PURE__*/_interopDefaultLegacy(Url); -var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1); -var https__default = /*#__PURE__*/_interopDefaultLegacy(https); -var zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib); - -var makeDir$2 = {exports: {}}; - -const debug$1 = ( - typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG) -) ? (...args) => console.error('SEMVER', ...args) - : () => {}; - -var debug_1 = debug$1; - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -const SEMVER_SPEC_VERSION = '2.0.0'; - -const MAX_LENGTH$1 = 256; -const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || -/* istanbul ignore next */ 9007199254740991; - -// Max safe segment length for coercion. -const MAX_SAFE_COMPONENT_LENGTH = 16; - -// Max safe length for a build identifier. The max length minus 6 characters for -// the shortest version with a build 0.0.0+BUILD. -const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH$1 - 6; - -const RELEASE_TYPES = [ - 'major', - 'premajor', - 'minor', - 'preminor', - 'patch', - 'prepatch', - 'prerelease', -]; - -var constants = { - MAX_LENGTH: MAX_LENGTH$1, - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1, - RELEASE_TYPES, - SEMVER_SPEC_VERSION, - FLAG_INCLUDE_PRERELEASE: 0b001, - FLAG_LOOSE: 0b010, -}; - -var re$1 = {exports: {}}; - -(function (module, exports) { -const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants; -const debug = debug_1; -exports = module.exports = {}; - -// The actual regexps go on exports.re -const re = exports.re = []; -const safeRe = exports.safeRe = []; -const src = exports.src = []; -const t = exports.t = {}; -let R = 0; - -const LETTERDASHNUMBER = '[a-zA-Z0-9-]'; - -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -const safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_SAFE_COMPONENT_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -]; - -const makeSafeRegex = (value) => { - for (const [token, max] of safeRegexReplacements) { - value = value - .split(`${token}*`).join(`${token}{0,${max}}`) - .split(`${token}+`).join(`${token}{1,${max}}`); - } - return value -}; - -const createToken = (name, value, isGlobal) => { - const safe = makeSafeRegex(value); - const index = R++; - debug(name, index, value); - t[name] = index; - src[index] = value; - re[index] = new RegExp(value, isGlobal ? 'g' : undefined); - safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined); -}; - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*'); -createToken('NUMERICIDENTIFIERLOOSE', '\\d+'); - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); - -// ## Main Version -// Three dot-separated numeric identifiers. - -createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})`); - -createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})`); - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER] -}|${src[t.NONNUMERICIDENTIFIER]})`); - -createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE] -}|${src[t.NONNUMERICIDENTIFIER]})`); - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] -}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); - -createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] -}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`); - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] -}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -createToken('FULLPLAIN', `v?${src[t.MAINVERSION] -}${src[t.PRERELEASE]}?${ - src[t.BUILD]}?`); - -createToken('FULL', `^${src[t.FULLPLAIN]}$`); - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] -}${src[t.PRERELEASELOOSE]}?${ - src[t.BUILD]}?`); - -createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`); - -createToken('GTLT', '((?:<|>)?=?)'); - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); -createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); - -createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:${src[t.PRERELEASE]})?${ - src[t.BUILD]}?` + - `)?)?`); - -createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:${src[t.PRERELEASELOOSE]})?${ - src[t.BUILD]}?` + - `)?)?`); - -createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); -createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -createToken('COERCE', `${'(^|[^\\d])' + - '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:$|[^\\d])`); -createToken('COERCERTL', src[t.COERCE], true); - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -createToken('LONETILDE', '(?:~>?)'); - -createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true); -exports.tildeTrimReplace = '$1~'; - -createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); -createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -createToken('LONECARET', '(?:\\^)'); - -createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true); -exports.caretTrimReplace = '$1^'; - -createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); -createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); -createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] -}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); -exports.comparatorTrimReplace = '$1$2$3'; - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAIN]})` + - `\\s*$`); - -createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAINLOOSE]})` + - `\\s*$`); - -// Star ranges basically just allow anything at all. -createToken('STAR', '(<|>)?=?\\s*\\*'); -// >=0.0.0 is like a star -createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$'); -createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$'); -}(re$1, re$1.exports)); - -// parse out just the options we care about -const looseOption = Object.freeze({ loose: true }); -const emptyOpts = Object.freeze({ }); -const parseOptions$1 = options => { - if (!options) { - return emptyOpts - } - - if (typeof options !== 'object') { - return looseOption - } - - return options -}; -var parseOptions_1 = parseOptions$1; - -const numeric = /^[0-9]+$/; -const compareIdentifiers$1 = (a, b) => { - const anum = numeric.test(a); - const bnum = numeric.test(b); - - if (anum && bnum) { - a = +a; - b = +b; - } - - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -}; - -const rcompareIdentifiers = (a, b) => compareIdentifiers$1(b, a); - -var identifiers = { - compareIdentifiers: compareIdentifiers$1, - rcompareIdentifiers, -}; - -const debug = debug_1; -const { MAX_LENGTH, MAX_SAFE_INTEGER } = constants; -const { safeRe: re, t } = re$1.exports; - -const parseOptions = parseOptions_1; -const { compareIdentifiers } = identifiers; -class SemVer$1 { - constructor (version, options) { - options = parseOptions(options); - - if (version instanceof SemVer$1) { - if (version.loose === !!options.loose && - version.includePrerelease === !!options.includePrerelease) { - return version - } else { - version = version.version; - } - } else if (typeof version !== 'string') { - throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) - } - - if (version.length > MAX_LENGTH) { - throw new TypeError( - `version is longer than ${MAX_LENGTH} characters` - ) - } - - debug('SemVer', version, options); - this.options = options; - this.loose = !!options.loose; - // this isn't actually relevant for versions, but keep it so that we - // don't run into trouble passing this.options around. - this.includePrerelease = !!options.includePrerelease; - - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); - - if (!m) { - throw new TypeError(`Invalid Version: ${version}`) - } - - this.raw = version; - - // these are actually numbers - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split('.').map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } - } - return id - }); - } - - this.build = m[5] ? m[5].split('.') : []; - this.format(); - } - - format () { - this.version = `${this.major}.${this.minor}.${this.patch}`; - if (this.prerelease.length) { - this.version += `-${this.prerelease.join('.')}`; - } - return this.version - } - - toString () { - return this.version - } - - compare (other) { - debug('SemVer.compare', this.version, this.options, other); - if (!(other instanceof SemVer$1)) { - if (typeof other === 'string' && other === this.version) { - return 0 - } - other = new SemVer$1(other, this.options); - } - - if (other.version === this.version) { - return 0 - } - - return this.compareMain(other) || this.comparePre(other) - } - - compareMain (other) { - if (!(other instanceof SemVer$1)) { - other = new SemVer$1(other, this.options); - } - - return ( - compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) - ) - } - - comparePre (other) { - if (!(other instanceof SemVer$1)) { - other = new SemVer$1(other, this.options); - } - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } - - let i = 0; - do { - const a = this.prerelease[i]; - const b = other.prerelease[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - compareBuild (other) { - if (!(other instanceof SemVer$1)) { - other = new SemVer$1(other, this.options); - } - - let i = 0; - do { - const a = this.build[i]; - const b = other.build[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } - - // preminor will bump the version up to the next minor release, and immediately - // down to pre-release. premajor and prepatch work the same way. - inc (release, identifier, identifierBase) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier, identifierBase); - break - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier, identifierBase); - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0; - this.inc('patch', identifier, identifierBase); - this.inc('pre', identifier, identifierBase); - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier, identifierBase); - } - this.inc('pre', identifier, identifierBase); - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if ( - this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0 - ) { - this.major++; - } - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - this.patch = 0; - this.prerelease = []; - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++; - } - this.prerelease = []; - break - // This probably shouldn't be used publicly. - // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. - case 'pre': { - const base = Number(identifierBase) ? 1 : 0; - - if (!identifier && identifierBase === false) { - throw new Error('invalid increment argument: identifier is empty') - } - - if (this.prerelease.length === 0) { - this.prerelease = [base]; - } else { - let i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) { - // didn't increment anything - if (identifier === this.prerelease.join('.') && identifierBase === false) { - throw new Error('invalid increment argument: identifier already exists') - } - this.prerelease.push(base); - } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - let prerelease = [identifier, base]; - if (identifierBase === false) { - prerelease = [identifier]; - } - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = prerelease; - } - } else { - this.prerelease = prerelease; - } - } - break - } - default: - throw new Error(`invalid increment argument: ${release}`) - } - this.raw = this.format(); - if (this.build.length) { - this.raw += `+${this.build.join('.')}`; - } - return this - } -} - -var semver = SemVer$1; - -const SemVer = semver; -const compare$1 = (a, b, loose) => - new SemVer(a, loose).compare(new SemVer(b, loose)); - -var compare_1 = compare$1; - -const compare = compare_1; -const gte = (a, b, loose) => compare(a, b, loose) >= 0; -var gte_1 = gte; - -const fs = require$$0__default["default"]; -const path$1 = path__default["default"]; -const {promisify} = require$$2__default["default"]; -const semverGte = gte_1; - -const useNativeRecursiveOption = semverGte(process.version, '10.12.0'); - -// https://github.com/nodejs/node/issues/8987 -// https://github.com/libuv/libuv/pull/1088 -const checkPath = pth => { - if (process.platform === 'win32') { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path$1.parse(pth).root, '')); - - if (pathHasInvalidWinCharacters) { - const error = new Error(`Path contains invalid characters: ${pth}`); - error.code = 'EINVAL'; - throw error; - } - } -}; - -const processOptions = options => { - const defaults = { - mode: 0o777, - fs - }; - - return { - ...defaults, - ...options - }; -}; - -const permissionError = pth => { - // This replicates the exception of `fs.mkdir` with native the - // `recusive` option when run on an invalid drive under Windows. - const error = new Error(`operation not permitted, mkdir '${pth}'`); - error.code = 'EPERM'; - error.errno = -4048; - error.path = pth; - error.syscall = 'mkdir'; - return error; -}; - -const makeDir = async (input, options) => { - checkPath(input); - options = processOptions(options); - - const mkdir = promisify(options.fs.mkdir); - const stat = promisify(options.fs.stat); - - if (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) { - const pth = path$1.resolve(input); - - await mkdir(pth, { - mode: options.mode, - recursive: true - }); - - return pth; - } - - const make = async pth => { - try { - await mkdir(pth, options.mode); - - return pth; - } catch (error) { - if (error.code === 'EPERM') { - throw error; - } - - if (error.code === 'ENOENT') { - if (path$1.dirname(pth) === pth) { - throw permissionError(pth); - } - - if (error.message.includes('null bytes')) { - throw error; - } - - await make(path$1.dirname(pth)); - - return make(pth); - } - - try { - const stats = await stat(pth); - if (!stats.isDirectory()) { - throw new Error('The path is not a directory'); - } - } catch { - throw error; - } - - return pth; - } - }; - - return make(path$1.resolve(input)); -}; - -makeDir$2.exports = makeDir; - -makeDir$2.exports.sync = (input, options) => { - checkPath(input); - options = processOptions(options); - - if (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) { - const pth = path$1.resolve(input); - - fs.mkdirSync(pth, { - mode: options.mode, - recursive: true - }); - - return pth; - } - - const make = pth => { - try { - options.fs.mkdirSync(pth, options.mode); - } catch (error) { - if (error.code === 'EPERM') { - throw error; - } - - if (error.code === 'ENOENT') { - if (path$1.dirname(pth) === pth) { - throw permissionError(pth); - } - - if (error.message.includes('null bytes')) { - throw error; - } - - make(path$1.dirname(pth)); - return make(pth); - } - - try { - if (!options.fs.statSync(pth).isDirectory()) { - throw new Error('The path is not a directory'); - } - } catch { - throw error; - } - } - - return pth; - }; - - return make(path$1.resolve(input)); -}; - -var makeDir$1 = makeDir$2.exports; - -// U is the subset of T, not sure why -// this works or why _T is necessary - - - - - - - - - - -// valid default schema -const defaultSchema = { - last_reminder: 0, - cached_at: 0, - version: '', - cli_path: '', - // User output - output: { - client_event_id: '', - previous_client_event_id: '', - product: '', - cli_path_hash: '', - local_timestamp: '', - previous_version: '', - current_version: '', - current_release_date: 0, - current_download_url: '', - current_changelog_url: '', - package: '', - release_tag: '', - install_command: '', - project_website: '', - outdated: false, - alerts: [], - }, -}; - -// initialize the configuration -class Config { - static async new(state, schema = defaultSchema) { - await makeDir$1(path__default["default"].dirname(state.cache_file)); - return new Config(state, schema) - } - - constructor( state, defaultSchema) {this.state = state;this.defaultSchema = defaultSchema;} - - // check and return the cache if (matches version or hasn't expired) - async checkCache(newState) { - const now = newState.now(); - // fetch the data from the cache - const cache = await this.all(); - - if (!cache) { - return { cache: undefined, stale: true } - } - // version has been upgraded or changed - // TODO: define this behaviour more clearly. - if (newState.version !== cache.version) { - return { cache, stale: true } - } - // cache expired - if (now - cache.cached_at > newState.cache_duration) { - return { cache, stale: true } - } - return { cache, stale: false } - } - - // set the configuration - async set(update) { - const existing = (await this.all()) || {}; - const schema = Object.assign(existing, update); - // TODO: figure out how to type this - for (let k in this.defaultSchema) { - // @ts-ignore - if (typeof schema[k] === 'undefined') { - // @ts-ignore - schema[k] = this.defaultSchema[k]; - } - } - await fs__default["default"].writeFile(this.state.cache_file, JSON.stringify(schema, null, ' ')); - } - - // get the entire schema - async all() { - try { - const data = await fs__default["default"].readFile(this.state.cache_file, 'utf8'); - return JSON.parse(data) - } catch (err) { - return - } - } - - // get a value from the schema - async get(key) { - const schema = await this.all(); - if (typeof schema === 'undefined') { - return - } - return schema[key] - } - - // reset the configuration - async reset() { - await fs__default["default"].writeFile(this.state.cache_file, JSON.stringify(this.defaultSchema, null, ' ')); - return - } - - // delete the configuration, ignoring any errors - async delete() { - try { - await fs__default["default"].unlink(this.state.cache_file); - return - } catch (err) { - return - } - } -} - -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - crypto__default["default"].randomFillSync(rnds8Pool); - poolPtr = 0; - } - - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ - -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} - -function unsafeStringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]; -} - -var native = { - randomUUID: crypto__default["default"].randomUUID -}; - -function v4(options, buf, offset) { - if (native.randomUUID && !buf && !options) { - return native.randomUUID(); - } - - options = options || {}; - const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return unsafeStringify(rnds); -} - -var envPaths$1 = {exports: {}}; - -const path = path__default["default"]; -const os = require$$1__default["default"]; - -const homedir = os.homedir(); -const tmpdir = os.tmpdir(); -const {env} = process; - -const macos = name => { - const library = path.join(homedir, 'Library'); - - return { - data: path.join(library, 'Application Support', name), - config: path.join(library, 'Preferences', name), - cache: path.join(library, 'Caches', name), - log: path.join(library, 'Logs', name), - temp: path.join(tmpdir, name) - }; -}; - -const windows = name => { - const appData = env.APPDATA || path.join(homedir, 'AppData', 'Roaming'); - const localAppData = env.LOCALAPPDATA || path.join(homedir, 'AppData', 'Local'); - - return { - // Data/config/cache/log are invented by me as Windows isn't opinionated about this - data: path.join(localAppData, name, 'Data'), - config: path.join(appData, name, 'Config'), - cache: path.join(localAppData, name, 'Cache'), - log: path.join(localAppData, name, 'Log'), - temp: path.join(tmpdir, name) - }; -}; - -// https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html -const linux = name => { - const username = path.basename(homedir); - - return { - data: path.join(env.XDG_DATA_HOME || path.join(homedir, '.local', 'share'), name), - config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, '.config'), name), - cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, '.cache'), name), - // https://wiki.debian.org/XDGBaseDirectorySpecification#state - log: path.join(env.XDG_STATE_HOME || path.join(homedir, '.local', 'state'), name), - temp: path.join(tmpdir, username, name) - }; -}; - -const envPaths = (name, options) => { - if (typeof name !== 'string') { - throw new TypeError(`Expected string, got ${typeof name}`); - } - - options = Object.assign({suffix: 'nodejs'}, options); - - if (options.suffix) { - // Add suffix to prevent possible conflict with native apps - name += `-${options.suffix}`; - } - - if (process.platform === 'darwin') { - return macos(name); - } - - if (process.platform === 'win32') { - return windows(name); - } - - return linux(name); -}; - -envPaths$1.exports = envPaths; -// TODO: Remove this for the next major release -envPaths$1.exports.default = envPaths; - -var paths = envPaths$1.exports; - -// Signature is a random signature that is stored and used - - - - - -// File identifier for global signature file -const PRISMA_SIGNATURE = 'signature'; - -// IMPORTANT: this is part of the public API -async function getSignature(signatureFile) { - const dirs = paths('checkpoint'); - signatureFile = signatureFile || path__default["default"].join(dirs.cache, PRISMA_SIGNATURE); // new file for signature - - // The signatureFile replaces cacheFile as the source of turth and therefore takes precedence - const signature = await readSignature(signatureFile); - if (signature) { - return signature - } - - return await createSignatureFile(signatureFile) -} - -function isSignatureValid(signature) { - return typeof signature === 'string' && signature.length === 36 -} - -/** - * Parse a file containing json and return the `signature` key from it - * @returns string empty if invalid or not found - */ -async function readSignature(file) { - try { - const data = await fs__default["default"].readFile(file, 'utf8'); - const { signature } = JSON.parse(data); - if (isSignatureValid(signature)) { - return signature - } - return '' - } catch (err) { - return '' - } -} - -async function createSignatureFile(signatureFile, signature) { - // Use passed signature or generate new - const signatureState = { - signature: signature || v4(), - }; - await makeDir$1(path__default["default"].dirname(signatureFile)); - await fs__default["default"].writeFile(signatureFile, JSON.stringify(signatureState, null, ' ')); - return signatureState.signature -} - -var publicApi = {}; - -var URL$2 = {exports: {}}; - -var conversions = {}; -var lib = conversions; - -function sign(x) { - return x < 0 ? -1 : 1; -} - -function evenRound(x) { - // Round x to the nearest integer, choosing the even integer if it lies halfway between two. - if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor) - return Math.floor(x); - } else { - return Math.round(x); - } -} - -function createNumberConversion(bitLength, typeOpts) { - if (!typeOpts.unsigned) { - --bitLength; - } - const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength); - const upperBound = Math.pow(2, bitLength) - 1; - - const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength); - const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1); - - return function(V, opts) { - if (!opts) opts = {}; - - let x = +V; - - if (opts.enforceRange) { - if (!Number.isFinite(x)) { - throw new TypeError("Argument is not a finite number"); - } - - x = sign(x) * Math.floor(Math.abs(x)); - if (x < lowerBound || x > upperBound) { - throw new TypeError("Argument is not in byte range"); - } - - return x; - } - - if (!isNaN(x) && opts.clamp) { - x = evenRound(x); - - if (x < lowerBound) x = lowerBound; - if (x > upperBound) x = upperBound; - return x; - } - - if (!Number.isFinite(x) || x === 0) { - return 0; - } - - x = sign(x) * Math.floor(Math.abs(x)); - x = x % moduloVal; - - if (!typeOpts.unsigned && x >= moduloBound) { - return x - moduloVal; - } else if (typeOpts.unsigned) { - if (x < 0) { - x += moduloVal; - } else if (x === -0) { // don't return negative zero - return 0; - } - } - - return x; - } -} - -conversions["void"] = function () { - return undefined; -}; - -conversions["boolean"] = function (val) { - return !!val; -}; - -conversions["byte"] = createNumberConversion(8, { unsigned: false }); -conversions["octet"] = createNumberConversion(8, { unsigned: true }); - -conversions["short"] = createNumberConversion(16, { unsigned: false }); -conversions["unsigned short"] = createNumberConversion(16, { unsigned: true }); - -conversions["long"] = createNumberConversion(32, { unsigned: false }); -conversions["unsigned long"] = createNumberConversion(32, { unsigned: true }); - -conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 }); -conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 }); - -conversions["double"] = function (V) { - const x = +V; - - if (!Number.isFinite(x)) { - throw new TypeError("Argument is not a finite floating-point value"); - } - - return x; -}; - -conversions["unrestricted double"] = function (V) { - const x = +V; - - if (isNaN(x)) { - throw new TypeError("Argument is NaN"); - } - - return x; -}; - -// not quite valid, but good enough for JS -conversions["float"] = conversions["double"]; -conversions["unrestricted float"] = conversions["unrestricted double"]; - -conversions["DOMString"] = function (V, opts) { - if (!opts) opts = {}; - - if (opts.treatNullAsEmptyString && V === null) { - return ""; - } - - return String(V); -}; - -conversions["ByteString"] = function (V, opts) { - const x = String(V); - let c = undefined; - for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) { - if (c > 255) { - throw new TypeError("Argument is not a valid bytestring"); - } - } - - return x; -}; - -conversions["USVString"] = function (V) { - const S = String(V); - const n = S.length; - const U = []; - for (let i = 0; i < n; ++i) { - const c = S.charCodeAt(i); - if (c < 0xD800 || c > 0xDFFF) { - U.push(String.fromCodePoint(c)); - } else if (0xDC00 <= c && c <= 0xDFFF) { - U.push(String.fromCodePoint(0xFFFD)); - } else { - if (i === n - 1) { - U.push(String.fromCodePoint(0xFFFD)); - } else { - const d = S.charCodeAt(i + 1); - if (0xDC00 <= d && d <= 0xDFFF) { - const a = c & 0x3FF; - const b = d & 0x3FF; - U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b)); - ++i; - } else { - U.push(String.fromCodePoint(0xFFFD)); - } - } - } - } - - return U.join(''); -}; - -conversions["Date"] = function (V, opts) { - if (!(V instanceof Date)) { - throw new TypeError("Argument is not a Date object"); - } - if (isNaN(V)) { - return undefined; - } - - return V; -}; - -conversions["RegExp"] = function (V, opts) { - if (!(V instanceof RegExp)) { - V = new RegExp(V); - } - - return V; -}; - -var utils = {exports: {}}; - -(function (module) { - -module.exports.mixin = function mixin(target, source) { - const keys = Object.getOwnPropertyNames(source); - for (let i = 0; i < keys.length; ++i) { - Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); - } -}; - -module.exports.wrapperSymbol = Symbol("wrapper"); -module.exports.implSymbol = Symbol("impl"); - -module.exports.wrapperForImpl = function (impl) { - return impl[module.exports.wrapperSymbol]; -}; - -module.exports.implForWrapper = function (wrapper) { - return wrapper[module.exports.implSymbol]; -}; -}(utils)); - -var URLImpl = {}; - -var urlStateMachine = {exports: {}}; - -var tr46 = {}; - -var require$$1 = [ - [ - [ - 0, - 44 - ], - "disallowed_STD3_valid" - ], - [ - [ - 45, - 46 - ], - "valid" - ], - [ - [ - 47, - 47 - ], - "disallowed_STD3_valid" - ], - [ - [ - 48, - 57 - ], - "valid" - ], - [ - [ - 58, - 64 - ], - "disallowed_STD3_valid" - ], - [ - [ - 65, - 65 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 66, - 66 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 67, - 67 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 68, - 68 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 69, - 69 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 70, - 70 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 71, - 71 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 72, - 72 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 73, - 73 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 74, - 74 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 75, - 75 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 76, - 76 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 77, - 77 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 78, - 78 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 79, - 79 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 80, - 80 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 81, - 81 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 82, - 82 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 83, - 83 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 84, - 84 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 85, - 85 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 86, - 86 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 87, - 87 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 88, - 88 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 89, - 89 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 90, - 90 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 91, - 96 - ], - "disallowed_STD3_valid" - ], - [ - [ - 97, - 122 - ], - "valid" - ], - [ - [ - 123, - 127 - ], - "disallowed_STD3_valid" - ], - [ - [ - 128, - 159 - ], - "disallowed" - ], - [ - [ - 160, - 160 - ], - "disallowed_STD3_mapped", - [ - 32 - ] - ], - [ - [ - 161, - 167 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 168, - 168 - ], - "disallowed_STD3_mapped", - [ - 32, - 776 - ] - ], - [ - [ - 169, - 169 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 170, - 170 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 171, - 172 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 173, - 173 - ], - "ignored" - ], - [ - [ - 174, - 174 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 175, - 175 - ], - "disallowed_STD3_mapped", - [ - 32, - 772 - ] - ], - [ - [ - 176, - 177 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 178, - 178 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 179, - 179 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 180, - 180 - ], - "disallowed_STD3_mapped", - [ - 32, - 769 - ] - ], - [ - [ - 181, - 181 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 182, - 182 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 183, - 183 - ], - "valid" - ], - [ - [ - 184, - 184 - ], - "disallowed_STD3_mapped", - [ - 32, - 807 - ] - ], - [ - [ - 185, - 185 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 186, - 186 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 187, - 187 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 188, - 188 - ], - "mapped", - [ - 49, - 8260, - 52 - ] - ], - [ - [ - 189, - 189 - ], - "mapped", - [ - 49, - 8260, - 50 - ] - ], - [ - [ - 190, - 190 - ], - "mapped", - [ - 51, - 8260, - 52 - ] - ], - [ - [ - 191, - 191 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 192, - 192 - ], - "mapped", - [ - 224 - ] - ], - [ - [ - 193, - 193 - ], - "mapped", - [ - 225 - ] - ], - [ - [ - 194, - 194 - ], - "mapped", - [ - 226 - ] - ], - [ - [ - 195, - 195 - ], - "mapped", - [ - 227 - ] - ], - [ - [ - 196, - 196 - ], - "mapped", - [ - 228 - ] - ], - [ - [ - 197, - 197 - ], - "mapped", - [ - 229 - ] - ], - [ - [ - 198, - 198 - ], - "mapped", - [ - 230 - ] - ], - [ - [ - 199, - 199 - ], - "mapped", - [ - 231 - ] - ], - [ - [ - 200, - 200 - ], - "mapped", - [ - 232 - ] - ], - [ - [ - 201, - 201 - ], - "mapped", - [ - 233 - ] - ], - [ - [ - 202, - 202 - ], - "mapped", - [ - 234 - ] - ], - [ - [ - 203, - 203 - ], - "mapped", - [ - 235 - ] - ], - [ - [ - 204, - 204 - ], - "mapped", - [ - 236 - ] - ], - [ - [ - 205, - 205 - ], - "mapped", - [ - 237 - ] - ], - [ - [ - 206, - 206 - ], - "mapped", - [ - 238 - ] - ], - [ - [ - 207, - 207 - ], - "mapped", - [ - 239 - ] - ], - [ - [ - 208, - 208 - ], - "mapped", - [ - 240 - ] - ], - [ - [ - 209, - 209 - ], - "mapped", - [ - 241 - ] - ], - [ - [ - 210, - 210 - ], - "mapped", - [ - 242 - ] - ], - [ - [ - 211, - 211 - ], - "mapped", - [ - 243 - ] - ], - [ - [ - 212, - 212 - ], - "mapped", - [ - 244 - ] - ], - [ - [ - 213, - 213 - ], - "mapped", - [ - 245 - ] - ], - [ - [ - 214, - 214 - ], - "mapped", - [ - 246 - ] - ], - [ - [ - 215, - 215 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 216, - 216 - ], - "mapped", - [ - 248 - ] - ], - [ - [ - 217, - 217 - ], - "mapped", - [ - 249 - ] - ], - [ - [ - 218, - 218 - ], - "mapped", - [ - 250 - ] - ], - [ - [ - 219, - 219 - ], - "mapped", - [ - 251 - ] - ], - [ - [ - 220, - 220 - ], - "mapped", - [ - 252 - ] - ], - [ - [ - 221, - 221 - ], - "mapped", - [ - 253 - ] - ], - [ - [ - 222, - 222 - ], - "mapped", - [ - 254 - ] - ], - [ - [ - 223, - 223 - ], - "deviation", - [ - 115, - 115 - ] - ], - [ - [ - 224, - 246 - ], - "valid" - ], - [ - [ - 247, - 247 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 248, - 255 - ], - "valid" - ], - [ - [ - 256, - 256 - ], - "mapped", - [ - 257 - ] - ], - [ - [ - 257, - 257 - ], - "valid" - ], - [ - [ - 258, - 258 - ], - "mapped", - [ - 259 - ] - ], - [ - [ - 259, - 259 - ], - "valid" - ], - [ - [ - 260, - 260 - ], - "mapped", - [ - 261 - ] - ], - [ - [ - 261, - 261 - ], - "valid" - ], - [ - [ - 262, - 262 - ], - "mapped", - [ - 263 - ] - ], - [ - [ - 263, - 263 - ], - "valid" - ], - [ - [ - 264, - 264 - ], - "mapped", - [ - 265 - ] - ], - [ - [ - 265, - 265 - ], - "valid" - ], - [ - [ - 266, - 266 - ], - "mapped", - [ - 267 - ] - ], - [ - [ - 267, - 267 - ], - "valid" - ], - [ - [ - 268, - 268 - ], - "mapped", - [ - 269 - ] - ], - [ - [ - 269, - 269 - ], - "valid" - ], - [ - [ - 270, - 270 - ], - "mapped", - [ - 271 - ] - ], - [ - [ - 271, - 271 - ], - "valid" - ], - [ - [ - 272, - 272 - ], - "mapped", - [ - 273 - ] - ], - [ - [ - 273, - 273 - ], - "valid" - ], - [ - [ - 274, - 274 - ], - "mapped", - [ - 275 - ] - ], - [ - [ - 275, - 275 - ], - "valid" - ], - [ - [ - 276, - 276 - ], - "mapped", - [ - 277 - ] - ], - [ - [ - 277, - 277 - ], - "valid" - ], - [ - [ - 278, - 278 - ], - "mapped", - [ - 279 - ] - ], - [ - [ - 279, - 279 - ], - "valid" - ], - [ - [ - 280, - 280 - ], - "mapped", - [ - 281 - ] - ], - [ - [ - 281, - 281 - ], - "valid" - ], - [ - [ - 282, - 282 - ], - "mapped", - [ - 283 - ] - ], - [ - [ - 283, - 283 - ], - "valid" - ], - [ - [ - 284, - 284 - ], - "mapped", - [ - 285 - ] - ], - [ - [ - 285, - 285 - ], - "valid" - ], - [ - [ - 286, - 286 - ], - "mapped", - [ - 287 - ] - ], - [ - [ - 287, - 287 - ], - "valid" - ], - [ - [ - 288, - 288 - ], - "mapped", - [ - 289 - ] - ], - [ - [ - 289, - 289 - ], - "valid" - ], - [ - [ - 290, - 290 - ], - "mapped", - [ - 291 - ] - ], - [ - [ - 291, - 291 - ], - "valid" - ], - [ - [ - 292, - 292 - ], - "mapped", - [ - 293 - ] - ], - [ - [ - 293, - 293 - ], - "valid" - ], - [ - [ - 294, - 294 - ], - "mapped", - [ - 295 - ] - ], - [ - [ - 295, - 295 - ], - "valid" - ], - [ - [ - 296, - 296 - ], - "mapped", - [ - 297 - ] - ], - [ - [ - 297, - 297 - ], - "valid" - ], - [ - [ - 298, - 298 - ], - "mapped", - [ - 299 - ] - ], - [ - [ - 299, - 299 - ], - "valid" - ], - [ - [ - 300, - 300 - ], - "mapped", - [ - 301 - ] - ], - [ - [ - 301, - 301 - ], - "valid" - ], - [ - [ - 302, - 302 - ], - "mapped", - [ - 303 - ] - ], - [ - [ - 303, - 303 - ], - "valid" - ], - [ - [ - 304, - 304 - ], - "mapped", - [ - 105, - 775 - ] - ], - [ - [ - 305, - 305 - ], - "valid" - ], - [ - [ - 306, - 307 - ], - "mapped", - [ - 105, - 106 - ] - ], - [ - [ - 308, - 308 - ], - "mapped", - [ - 309 - ] - ], - [ - [ - 309, - 309 - ], - "valid" - ], - [ - [ - 310, - 310 - ], - "mapped", - [ - 311 - ] - ], - [ - [ - 311, - 312 - ], - "valid" - ], - [ - [ - 313, - 313 - ], - "mapped", - [ - 314 - ] - ], - [ - [ - 314, - 314 - ], - "valid" - ], - [ - [ - 315, - 315 - ], - "mapped", - [ - 316 - ] - ], - [ - [ - 316, - 316 - ], - "valid" - ], - [ - [ - 317, - 317 - ], - "mapped", - [ - 318 - ] - ], - [ - [ - 318, - 318 - ], - "valid" - ], - [ - [ - 319, - 320 - ], - "mapped", - [ - 108, - 183 - ] - ], - [ - [ - 321, - 321 - ], - "mapped", - [ - 322 - ] - ], - [ - [ - 322, - 322 - ], - "valid" - ], - [ - [ - 323, - 323 - ], - "mapped", - [ - 324 - ] - ], - [ - [ - 324, - 324 - ], - "valid" - ], - [ - [ - 325, - 325 - ], - "mapped", - [ - 326 - ] - ], - [ - [ - 326, - 326 - ], - "valid" - ], - [ - [ - 327, - 327 - ], - "mapped", - [ - 328 - ] - ], - [ - [ - 328, - 328 - ], - "valid" - ], - [ - [ - 329, - 329 - ], - "mapped", - [ - 700, - 110 - ] - ], - [ - [ - 330, - 330 - ], - "mapped", - [ - 331 - ] - ], - [ - [ - 331, - 331 - ], - "valid" - ], - [ - [ - 332, - 332 - ], - "mapped", - [ - 333 - ] - ], - [ - [ - 333, - 333 - ], - "valid" - ], - [ - [ - 334, - 334 - ], - "mapped", - [ - 335 - ] - ], - [ - [ - 335, - 335 - ], - "valid" - ], - [ - [ - 336, - 336 - ], - "mapped", - [ - 337 - ] - ], - [ - [ - 337, - 337 - ], - "valid" - ], - [ - [ - 338, - 338 - ], - "mapped", - [ - 339 - ] - ], - [ - [ - 339, - 339 - ], - "valid" - ], - [ - [ - 340, - 340 - ], - "mapped", - [ - 341 - ] - ], - [ - [ - 341, - 341 - ], - "valid" - ], - [ - [ - 342, - 342 - ], - "mapped", - [ - 343 - ] - ], - [ - [ - 343, - 343 - ], - "valid" - ], - [ - [ - 344, - 344 - ], - "mapped", - [ - 345 - ] - ], - [ - [ - 345, - 345 - ], - "valid" - ], - [ - [ - 346, - 346 - ], - "mapped", - [ - 347 - ] - ], - [ - [ - 347, - 347 - ], - "valid" - ], - [ - [ - 348, - 348 - ], - "mapped", - [ - 349 - ] - ], - [ - [ - 349, - 349 - ], - "valid" - ], - [ - [ - 350, - 350 - ], - "mapped", - [ - 351 - ] - ], - [ - [ - 351, - 351 - ], - "valid" - ], - [ - [ - 352, - 352 - ], - "mapped", - [ - 353 - ] - ], - [ - [ - 353, - 353 - ], - "valid" - ], - [ - [ - 354, - 354 - ], - "mapped", - [ - 355 - ] - ], - [ - [ - 355, - 355 - ], - "valid" - ], - [ - [ - 356, - 356 - ], - "mapped", - [ - 357 - ] - ], - [ - [ - 357, - 357 - ], - "valid" - ], - [ - [ - 358, - 358 - ], - "mapped", - [ - 359 - ] - ], - [ - [ - 359, - 359 - ], - "valid" - ], - [ - [ - 360, - 360 - ], - "mapped", - [ - 361 - ] - ], - [ - [ - 361, - 361 - ], - "valid" - ], - [ - [ - 362, - 362 - ], - "mapped", - [ - 363 - ] - ], - [ - [ - 363, - 363 - ], - "valid" - ], - [ - [ - 364, - 364 - ], - "mapped", - [ - 365 - ] - ], - [ - [ - 365, - 365 - ], - "valid" - ], - [ - [ - 366, - 366 - ], - "mapped", - [ - 367 - ] - ], - [ - [ - 367, - 367 - ], - "valid" - ], - [ - [ - 368, - 368 - ], - "mapped", - [ - 369 - ] - ], - [ - [ - 369, - 369 - ], - "valid" - ], - [ - [ - 370, - 370 - ], - "mapped", - [ - 371 - ] - ], - [ - [ - 371, - 371 - ], - "valid" - ], - [ - [ - 372, - 372 - ], - "mapped", - [ - 373 - ] - ], - [ - [ - 373, - 373 - ], - "valid" - ], - [ - [ - 374, - 374 - ], - "mapped", - [ - 375 - ] - ], - [ - [ - 375, - 375 - ], - "valid" - ], - [ - [ - 376, - 376 - ], - "mapped", - [ - 255 - ] - ], - [ - [ - 377, - 377 - ], - "mapped", - [ - 378 - ] - ], - [ - [ - 378, - 378 - ], - "valid" - ], - [ - [ - 379, - 379 - ], - "mapped", - [ - 380 - ] - ], - [ - [ - 380, - 380 - ], - "valid" - ], - [ - [ - 381, - 381 - ], - "mapped", - [ - 382 - ] - ], - [ - [ - 382, - 382 - ], - "valid" - ], - [ - [ - 383, - 383 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 384, - 384 - ], - "valid" - ], - [ - [ - 385, - 385 - ], - "mapped", - [ - 595 - ] - ], - [ - [ - 386, - 386 - ], - "mapped", - [ - 387 - ] - ], - [ - [ - 387, - 387 - ], - "valid" - ], - [ - [ - 388, - 388 - ], - "mapped", - [ - 389 - ] - ], - [ - [ - 389, - 389 - ], - "valid" - ], - [ - [ - 390, - 390 - ], - "mapped", - [ - 596 - ] - ], - [ - [ - 391, - 391 - ], - "mapped", - [ - 392 - ] - ], - [ - [ - 392, - 392 - ], - "valid" - ], - [ - [ - 393, - 393 - ], - "mapped", - [ - 598 - ] - ], - [ - [ - 394, - 394 - ], - "mapped", - [ - 599 - ] - ], - [ - [ - 395, - 395 - ], - "mapped", - [ - 396 - ] - ], - [ - [ - 396, - 397 - ], - "valid" - ], - [ - [ - 398, - 398 - ], - "mapped", - [ - 477 - ] - ], - [ - [ - 399, - 399 - ], - "mapped", - [ - 601 - ] - ], - [ - [ - 400, - 400 - ], - "mapped", - [ - 603 - ] - ], - [ - [ - 401, - 401 - ], - "mapped", - [ - 402 - ] - ], - [ - [ - 402, - 402 - ], - "valid" - ], - [ - [ - 403, - 403 - ], - "mapped", - [ - 608 - ] - ], - [ - [ - 404, - 404 - ], - "mapped", - [ - 611 - ] - ], - [ - [ - 405, - 405 - ], - "valid" - ], - [ - [ - 406, - 406 - ], - "mapped", - [ - 617 - ] - ], - [ - [ - 407, - 407 - ], - "mapped", - [ - 616 - ] - ], - [ - [ - 408, - 408 - ], - "mapped", - [ - 409 - ] - ], - [ - [ - 409, - 411 - ], - "valid" - ], - [ - [ - 412, - 412 - ], - "mapped", - [ - 623 - ] - ], - [ - [ - 413, - 413 - ], - "mapped", - [ - 626 - ] - ], - [ - [ - 414, - 414 - ], - "valid" - ], - [ - [ - 415, - 415 - ], - "mapped", - [ - 629 - ] - ], - [ - [ - 416, - 416 - ], - "mapped", - [ - 417 - ] - ], - [ - [ - 417, - 417 - ], - "valid" - ], - [ - [ - 418, - 418 - ], - "mapped", - [ - 419 - ] - ], - [ - [ - 419, - 419 - ], - "valid" - ], - [ - [ - 420, - 420 - ], - "mapped", - [ - 421 - ] - ], - [ - [ - 421, - 421 - ], - "valid" - ], - [ - [ - 422, - 422 - ], - "mapped", - [ - 640 - ] - ], - [ - [ - 423, - 423 - ], - "mapped", - [ - 424 - ] - ], - [ - [ - 424, - 424 - ], - "valid" - ], - [ - [ - 425, - 425 - ], - "mapped", - [ - 643 - ] - ], - [ - [ - 426, - 427 - ], - "valid" - ], - [ - [ - 428, - 428 - ], - "mapped", - [ - 429 - ] - ], - [ - [ - 429, - 429 - ], - "valid" - ], - [ - [ - 430, - 430 - ], - "mapped", - [ - 648 - ] - ], - [ - [ - 431, - 431 - ], - "mapped", - [ - 432 - ] - ], - [ - [ - 432, - 432 - ], - "valid" - ], - [ - [ - 433, - 433 - ], - "mapped", - [ - 650 - ] - ], - [ - [ - 434, - 434 - ], - "mapped", - [ - 651 - ] - ], - [ - [ - 435, - 435 - ], - "mapped", - [ - 436 - ] - ], - [ - [ - 436, - 436 - ], - "valid" - ], - [ - [ - 437, - 437 - ], - "mapped", - [ - 438 - ] - ], - [ - [ - 438, - 438 - ], - "valid" - ], - [ - [ - 439, - 439 - ], - "mapped", - [ - 658 - ] - ], - [ - [ - 440, - 440 - ], - "mapped", - [ - 441 - ] - ], - [ - [ - 441, - 443 - ], - "valid" - ], - [ - [ - 444, - 444 - ], - "mapped", - [ - 445 - ] - ], - [ - [ - 445, - 451 - ], - "valid" - ], - [ - [ - 452, - 454 - ], - "mapped", - [ - 100, - 382 - ] - ], - [ - [ - 455, - 457 - ], - "mapped", - [ - 108, - 106 - ] - ], - [ - [ - 458, - 460 - ], - "mapped", - [ - 110, - 106 - ] - ], - [ - [ - 461, - 461 - ], - "mapped", - [ - 462 - ] - ], - [ - [ - 462, - 462 - ], - "valid" - ], - [ - [ - 463, - 463 - ], - "mapped", - [ - 464 - ] - ], - [ - [ - 464, - 464 - ], - "valid" - ], - [ - [ - 465, - 465 - ], - "mapped", - [ - 466 - ] - ], - [ - [ - 466, - 466 - ], - "valid" - ], - [ - [ - 467, - 467 - ], - "mapped", - [ - 468 - ] - ], - [ - [ - 468, - 468 - ], - "valid" - ], - [ - [ - 469, - 469 - ], - "mapped", - [ - 470 - ] - ], - [ - [ - 470, - 470 - ], - "valid" - ], - [ - [ - 471, - 471 - ], - "mapped", - [ - 472 - ] - ], - [ - [ - 472, - 472 - ], - "valid" - ], - [ - [ - 473, - 473 - ], - "mapped", - [ - 474 - ] - ], - [ - [ - 474, - 474 - ], - "valid" - ], - [ - [ - 475, - 475 - ], - "mapped", - [ - 476 - ] - ], - [ - [ - 476, - 477 - ], - "valid" - ], - [ - [ - 478, - 478 - ], - "mapped", - [ - 479 - ] - ], - [ - [ - 479, - 479 - ], - "valid" - ], - [ - [ - 480, - 480 - ], - "mapped", - [ - 481 - ] - ], - [ - [ - 481, - 481 - ], - "valid" - ], - [ - [ - 482, - 482 - ], - "mapped", - [ - 483 - ] - ], - [ - [ - 483, - 483 - ], - "valid" - ], - [ - [ - 484, - 484 - ], - "mapped", - [ - 485 - ] - ], - [ - [ - 485, - 485 - ], - "valid" - ], - [ - [ - 486, - 486 - ], - "mapped", - [ - 487 - ] - ], - [ - [ - 487, - 487 - ], - "valid" - ], - [ - [ - 488, - 488 - ], - "mapped", - [ - 489 - ] - ], - [ - [ - 489, - 489 - ], - "valid" - ], - [ - [ - 490, - 490 - ], - "mapped", - [ - 491 - ] - ], - [ - [ - 491, - 491 - ], - "valid" - ], - [ - [ - 492, - 492 - ], - "mapped", - [ - 493 - ] - ], - [ - [ - 493, - 493 - ], - "valid" - ], - [ - [ - 494, - 494 - ], - "mapped", - [ - 495 - ] - ], - [ - [ - 495, - 496 - ], - "valid" - ], - [ - [ - 497, - 499 - ], - "mapped", - [ - 100, - 122 - ] - ], - [ - [ - 500, - 500 - ], - "mapped", - [ - 501 - ] - ], - [ - [ - 501, - 501 - ], - "valid" - ], - [ - [ - 502, - 502 - ], - "mapped", - [ - 405 - ] - ], - [ - [ - 503, - 503 - ], - "mapped", - [ - 447 - ] - ], - [ - [ - 504, - 504 - ], - "mapped", - [ - 505 - ] - ], - [ - [ - 505, - 505 - ], - "valid" - ], - [ - [ - 506, - 506 - ], - "mapped", - [ - 507 - ] - ], - [ - [ - 507, - 507 - ], - "valid" - ], - [ - [ - 508, - 508 - ], - "mapped", - [ - 509 - ] - ], - [ - [ - 509, - 509 - ], - "valid" - ], - [ - [ - 510, - 510 - ], - "mapped", - [ - 511 - ] - ], - [ - [ - 511, - 511 - ], - "valid" - ], - [ - [ - 512, - 512 - ], - "mapped", - [ - 513 - ] - ], - [ - [ - 513, - 513 - ], - "valid" - ], - [ - [ - 514, - 514 - ], - "mapped", - [ - 515 - ] - ], - [ - [ - 515, - 515 - ], - "valid" - ], - [ - [ - 516, - 516 - ], - "mapped", - [ - 517 - ] - ], - [ - [ - 517, - 517 - ], - "valid" - ], - [ - [ - 518, - 518 - ], - "mapped", - [ - 519 - ] - ], - [ - [ - 519, - 519 - ], - "valid" - ], - [ - [ - 520, - 520 - ], - "mapped", - [ - 521 - ] - ], - [ - [ - 521, - 521 - ], - "valid" - ], - [ - [ - 522, - 522 - ], - "mapped", - [ - 523 - ] - ], - [ - [ - 523, - 523 - ], - "valid" - ], - [ - [ - 524, - 524 - ], - "mapped", - [ - 525 - ] - ], - [ - [ - 525, - 525 - ], - "valid" - ], - [ - [ - 526, - 526 - ], - "mapped", - [ - 527 - ] - ], - [ - [ - 527, - 527 - ], - "valid" - ], - [ - [ - 528, - 528 - ], - "mapped", - [ - 529 - ] - ], - [ - [ - 529, - 529 - ], - "valid" - ], - [ - [ - 530, - 530 - ], - "mapped", - [ - 531 - ] - ], - [ - [ - 531, - 531 - ], - "valid" - ], - [ - [ - 532, - 532 - ], - "mapped", - [ - 533 - ] - ], - [ - [ - 533, - 533 - ], - "valid" - ], - [ - [ - 534, - 534 - ], - "mapped", - [ - 535 - ] - ], - [ - [ - 535, - 535 - ], - "valid" - ], - [ - [ - 536, - 536 - ], - "mapped", - [ - 537 - ] - ], - [ - [ - 537, - 537 - ], - "valid" - ], - [ - [ - 538, - 538 - ], - "mapped", - [ - 539 - ] - ], - [ - [ - 539, - 539 - ], - "valid" - ], - [ - [ - 540, - 540 - ], - "mapped", - [ - 541 - ] - ], - [ - [ - 541, - 541 - ], - "valid" - ], - [ - [ - 542, - 542 - ], - "mapped", - [ - 543 - ] - ], - [ - [ - 543, - 543 - ], - "valid" - ], - [ - [ - 544, - 544 - ], - "mapped", - [ - 414 - ] - ], - [ - [ - 545, - 545 - ], - "valid" - ], - [ - [ - 546, - 546 - ], - "mapped", - [ - 547 - ] - ], - [ - [ - 547, - 547 - ], - "valid" - ], - [ - [ - 548, - 548 - ], - "mapped", - [ - 549 - ] - ], - [ - [ - 549, - 549 - ], - "valid" - ], - [ - [ - 550, - 550 - ], - "mapped", - [ - 551 - ] - ], - [ - [ - 551, - 551 - ], - "valid" - ], - [ - [ - 552, - 552 - ], - "mapped", - [ - 553 - ] - ], - [ - [ - 553, - 553 - ], - "valid" - ], - [ - [ - 554, - 554 - ], - "mapped", - [ - 555 - ] - ], - [ - [ - 555, - 555 - ], - "valid" - ], - [ - [ - 556, - 556 - ], - "mapped", - [ - 557 - ] - ], - [ - [ - 557, - 557 - ], - "valid" - ], - [ - [ - 558, - 558 - ], - "mapped", - [ - 559 - ] - ], - [ - [ - 559, - 559 - ], - "valid" - ], - [ - [ - 560, - 560 - ], - "mapped", - [ - 561 - ] - ], - [ - [ - 561, - 561 - ], - "valid" - ], - [ - [ - 562, - 562 - ], - "mapped", - [ - 563 - ] - ], - [ - [ - 563, - 563 - ], - "valid" - ], - [ - [ - 564, - 566 - ], - "valid" - ], - [ - [ - 567, - 569 - ], - "valid" - ], - [ - [ - 570, - 570 - ], - "mapped", - [ - 11365 - ] - ], - [ - [ - 571, - 571 - ], - "mapped", - [ - 572 - ] - ], - [ - [ - 572, - 572 - ], - "valid" - ], - [ - [ - 573, - 573 - ], - "mapped", - [ - 410 - ] - ], - [ - [ - 574, - 574 - ], - "mapped", - [ - 11366 - ] - ], - [ - [ - 575, - 576 - ], - "valid" - ], - [ - [ - 577, - 577 - ], - "mapped", - [ - 578 - ] - ], - [ - [ - 578, - 578 - ], - "valid" - ], - [ - [ - 579, - 579 - ], - "mapped", - [ - 384 - ] - ], - [ - [ - 580, - 580 - ], - "mapped", - [ - 649 - ] - ], - [ - [ - 581, - 581 - ], - "mapped", - [ - 652 - ] - ], - [ - [ - 582, - 582 - ], - "mapped", - [ - 583 - ] - ], - [ - [ - 583, - 583 - ], - "valid" - ], - [ - [ - 584, - 584 - ], - "mapped", - [ - 585 - ] - ], - [ - [ - 585, - 585 - ], - "valid" - ], - [ - [ - 586, - 586 - ], - "mapped", - [ - 587 - ] - ], - [ - [ - 587, - 587 - ], - "valid" - ], - [ - [ - 588, - 588 - ], - "mapped", - [ - 589 - ] - ], - [ - [ - 589, - 589 - ], - "valid" - ], - [ - [ - 590, - 590 - ], - "mapped", - [ - 591 - ] - ], - [ - [ - 591, - 591 - ], - "valid" - ], - [ - [ - 592, - 680 - ], - "valid" - ], - [ - [ - 681, - 685 - ], - "valid" - ], - [ - [ - 686, - 687 - ], - "valid" - ], - [ - [ - 688, - 688 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 689, - 689 - ], - "mapped", - [ - 614 - ] - ], - [ - [ - 690, - 690 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 691, - 691 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 692, - 692 - ], - "mapped", - [ - 633 - ] - ], - [ - [ - 693, - 693 - ], - "mapped", - [ - 635 - ] - ], - [ - [ - 694, - 694 - ], - "mapped", - [ - 641 - ] - ], - [ - [ - 695, - 695 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 696, - 696 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 697, - 705 - ], - "valid" - ], - [ - [ - 706, - 709 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 710, - 721 - ], - "valid" - ], - [ - [ - 722, - 727 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 728, - 728 - ], - "disallowed_STD3_mapped", - [ - 32, - 774 - ] - ], - [ - [ - 729, - 729 - ], - "disallowed_STD3_mapped", - [ - 32, - 775 - ] - ], - [ - [ - 730, - 730 - ], - "disallowed_STD3_mapped", - [ - 32, - 778 - ] - ], - [ - [ - 731, - 731 - ], - "disallowed_STD3_mapped", - [ - 32, - 808 - ] - ], - [ - [ - 732, - 732 - ], - "disallowed_STD3_mapped", - [ - 32, - 771 - ] - ], - [ - [ - 733, - 733 - ], - "disallowed_STD3_mapped", - [ - 32, - 779 - ] - ], - [ - [ - 734, - 734 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 735, - 735 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 736, - 736 - ], - "mapped", - [ - 611 - ] - ], - [ - [ - 737, - 737 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 738, - 738 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 739, - 739 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 740, - 740 - ], - "mapped", - [ - 661 - ] - ], - [ - [ - 741, - 745 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 746, - 747 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 748, - 748 - ], - "valid" - ], - [ - [ - 749, - 749 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 750, - 750 - ], - "valid" - ], - [ - [ - 751, - 767 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 768, - 831 - ], - "valid" - ], - [ - [ - 832, - 832 - ], - "mapped", - [ - 768 - ] - ], - [ - [ - 833, - 833 - ], - "mapped", - [ - 769 - ] - ], - [ - [ - 834, - 834 - ], - "valid" - ], - [ - [ - 835, - 835 - ], - "mapped", - [ - 787 - ] - ], - [ - [ - 836, - 836 - ], - "mapped", - [ - 776, - 769 - ] - ], - [ - [ - 837, - 837 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 838, - 846 - ], - "valid" - ], - [ - [ - 847, - 847 - ], - "ignored" - ], - [ - [ - 848, - 855 - ], - "valid" - ], - [ - [ - 856, - 860 - ], - "valid" - ], - [ - [ - 861, - 863 - ], - "valid" - ], - [ - [ - 864, - 865 - ], - "valid" - ], - [ - [ - 866, - 866 - ], - "valid" - ], - [ - [ - 867, - 879 - ], - "valid" - ], - [ - [ - 880, - 880 - ], - "mapped", - [ - 881 - ] - ], - [ - [ - 881, - 881 - ], - "valid" - ], - [ - [ - 882, - 882 - ], - "mapped", - [ - 883 - ] - ], - [ - [ - 883, - 883 - ], - "valid" - ], - [ - [ - 884, - 884 - ], - "mapped", - [ - 697 - ] - ], - [ - [ - 885, - 885 - ], - "valid" - ], - [ - [ - 886, - 886 - ], - "mapped", - [ - 887 - ] - ], - [ - [ - 887, - 887 - ], - "valid" - ], - [ - [ - 888, - 889 - ], - "disallowed" - ], - [ - [ - 890, - 890 - ], - "disallowed_STD3_mapped", - [ - 32, - 953 - ] - ], - [ - [ - 891, - 893 - ], - "valid" - ], - [ - [ - 894, - 894 - ], - "disallowed_STD3_mapped", - [ - 59 - ] - ], - [ - [ - 895, - 895 - ], - "mapped", - [ - 1011 - ] - ], - [ - [ - 896, - 899 - ], - "disallowed" - ], - [ - [ - 900, - 900 - ], - "disallowed_STD3_mapped", - [ - 32, - 769 - ] - ], - [ - [ - 901, - 901 - ], - "disallowed_STD3_mapped", - [ - 32, - 776, - 769 - ] - ], - [ - [ - 902, - 902 - ], - "mapped", - [ - 940 - ] - ], - [ - [ - 903, - 903 - ], - "mapped", - [ - 183 - ] - ], - [ - [ - 904, - 904 - ], - "mapped", - [ - 941 - ] - ], - [ - [ - 905, - 905 - ], - "mapped", - [ - 942 - ] - ], - [ - [ - 906, - 906 - ], - "mapped", - [ - 943 - ] - ], - [ - [ - 907, - 907 - ], - "disallowed" - ], - [ - [ - 908, - 908 - ], - "mapped", - [ - 972 - ] - ], - [ - [ - 909, - 909 - ], - "disallowed" - ], - [ - [ - 910, - 910 - ], - "mapped", - [ - 973 - ] - ], - [ - [ - 911, - 911 - ], - "mapped", - [ - 974 - ] - ], - [ - [ - 912, - 912 - ], - "valid" - ], - [ - [ - 913, - 913 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 914, - 914 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 915, - 915 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 916, - 916 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 917, - 917 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 918, - 918 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 919, - 919 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 920, - 920 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 921, - 921 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 922, - 922 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 923, - 923 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 924, - 924 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 925, - 925 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 926, - 926 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 927, - 927 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 928, - 928 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 929, - 929 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 930, - 930 - ], - "disallowed" - ], - [ - [ - 931, - 931 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 932, - 932 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 933, - 933 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 934, - 934 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 935, - 935 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 936, - 936 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 937, - 937 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 938, - 938 - ], - "mapped", - [ - 970 - ] - ], - [ - [ - 939, - 939 - ], - "mapped", - [ - 971 - ] - ], - [ - [ - 940, - 961 - ], - "valid" - ], - [ - [ - 962, - 962 - ], - "deviation", - [ - 963 - ] - ], - [ - [ - 963, - 974 - ], - "valid" - ], - [ - [ - 975, - 975 - ], - "mapped", - [ - 983 - ] - ], - [ - [ - 976, - 976 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 977, - 977 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 978, - 978 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 979, - 979 - ], - "mapped", - [ - 973 - ] - ], - [ - [ - 980, - 980 - ], - "mapped", - [ - 971 - ] - ], - [ - [ - 981, - 981 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 982, - 982 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 983, - 983 - ], - "valid" - ], - [ - [ - 984, - 984 - ], - "mapped", - [ - 985 - ] - ], - [ - [ - 985, - 985 - ], - "valid" - ], - [ - [ - 986, - 986 - ], - "mapped", - [ - 987 - ] - ], - [ - [ - 987, - 987 - ], - "valid" - ], - [ - [ - 988, - 988 - ], - "mapped", - [ - 989 - ] - ], - [ - [ - 989, - 989 - ], - "valid" - ], - [ - [ - 990, - 990 - ], - "mapped", - [ - 991 - ] - ], - [ - [ - 991, - 991 - ], - "valid" - ], - [ - [ - 992, - 992 - ], - "mapped", - [ - 993 - ] - ], - [ - [ - 993, - 993 - ], - "valid" - ], - [ - [ - 994, - 994 - ], - "mapped", - [ - 995 - ] - ], - [ - [ - 995, - 995 - ], - "valid" - ], - [ - [ - 996, - 996 - ], - "mapped", - [ - 997 - ] - ], - [ - [ - 997, - 997 - ], - "valid" - ], - [ - [ - 998, - 998 - ], - "mapped", - [ - 999 - ] - ], - [ - [ - 999, - 999 - ], - "valid" - ], - [ - [ - 1000, - 1000 - ], - "mapped", - [ - 1001 - ] - ], - [ - [ - 1001, - 1001 - ], - "valid" - ], - [ - [ - 1002, - 1002 - ], - "mapped", - [ - 1003 - ] - ], - [ - [ - 1003, - 1003 - ], - "valid" - ], - [ - [ - 1004, - 1004 - ], - "mapped", - [ - 1005 - ] - ], - [ - [ - 1005, - 1005 - ], - "valid" - ], - [ - [ - 1006, - 1006 - ], - "mapped", - [ - 1007 - ] - ], - [ - [ - 1007, - 1007 - ], - "valid" - ], - [ - [ - 1008, - 1008 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 1009, - 1009 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 1010, - 1010 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 1011, - 1011 - ], - "valid" - ], - [ - [ - 1012, - 1012 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 1013, - 1013 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 1014, - 1014 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1015, - 1015 - ], - "mapped", - [ - 1016 - ] - ], - [ - [ - 1016, - 1016 - ], - "valid" - ], - [ - [ - 1017, - 1017 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 1018, - 1018 - ], - "mapped", - [ - 1019 - ] - ], - [ - [ - 1019, - 1019 - ], - "valid" - ], - [ - [ - 1020, - 1020 - ], - "valid" - ], - [ - [ - 1021, - 1021 - ], - "mapped", - [ - 891 - ] - ], - [ - [ - 1022, - 1022 - ], - "mapped", - [ - 892 - ] - ], - [ - [ - 1023, - 1023 - ], - "mapped", - [ - 893 - ] - ], - [ - [ - 1024, - 1024 - ], - "mapped", - [ - 1104 - ] - ], - [ - [ - 1025, - 1025 - ], - "mapped", - [ - 1105 - ] - ], - [ - [ - 1026, - 1026 - ], - "mapped", - [ - 1106 - ] - ], - [ - [ - 1027, - 1027 - ], - "mapped", - [ - 1107 - ] - ], - [ - [ - 1028, - 1028 - ], - "mapped", - [ - 1108 - ] - ], - [ - [ - 1029, - 1029 - ], - "mapped", - [ - 1109 - ] - ], - [ - [ - 1030, - 1030 - ], - "mapped", - [ - 1110 - ] - ], - [ - [ - 1031, - 1031 - ], - "mapped", - [ - 1111 - ] - ], - [ - [ - 1032, - 1032 - ], - "mapped", - [ - 1112 - ] - ], - [ - [ - 1033, - 1033 - ], - "mapped", - [ - 1113 - ] - ], - [ - [ - 1034, - 1034 - ], - "mapped", - [ - 1114 - ] - ], - [ - [ - 1035, - 1035 - ], - "mapped", - [ - 1115 - ] - ], - [ - [ - 1036, - 1036 - ], - "mapped", - [ - 1116 - ] - ], - [ - [ - 1037, - 1037 - ], - "mapped", - [ - 1117 - ] - ], - [ - [ - 1038, - 1038 - ], - "mapped", - [ - 1118 - ] - ], - [ - [ - 1039, - 1039 - ], - "mapped", - [ - 1119 - ] - ], - [ - [ - 1040, - 1040 - ], - "mapped", - [ - 1072 - ] - ], - [ - [ - 1041, - 1041 - ], - "mapped", - [ - 1073 - ] - ], - [ - [ - 1042, - 1042 - ], - "mapped", - [ - 1074 - ] - ], - [ - [ - 1043, - 1043 - ], - "mapped", - [ - 1075 - ] - ], - [ - [ - 1044, - 1044 - ], - "mapped", - [ - 1076 - ] - ], - [ - [ - 1045, - 1045 - ], - "mapped", - [ - 1077 - ] - ], - [ - [ - 1046, - 1046 - ], - "mapped", - [ - 1078 - ] - ], - [ - [ - 1047, - 1047 - ], - "mapped", - [ - 1079 - ] - ], - [ - [ - 1048, - 1048 - ], - "mapped", - [ - 1080 - ] - ], - [ - [ - 1049, - 1049 - ], - "mapped", - [ - 1081 - ] - ], - [ - [ - 1050, - 1050 - ], - "mapped", - [ - 1082 - ] - ], - [ - [ - 1051, - 1051 - ], - "mapped", - [ - 1083 - ] - ], - [ - [ - 1052, - 1052 - ], - "mapped", - [ - 1084 - ] - ], - [ - [ - 1053, - 1053 - ], - "mapped", - [ - 1085 - ] - ], - [ - [ - 1054, - 1054 - ], - "mapped", - [ - 1086 - ] - ], - [ - [ - 1055, - 1055 - ], - "mapped", - [ - 1087 - ] - ], - [ - [ - 1056, - 1056 - ], - "mapped", - [ - 1088 - ] - ], - [ - [ - 1057, - 1057 - ], - "mapped", - [ - 1089 - ] - ], - [ - [ - 1058, - 1058 - ], - "mapped", - [ - 1090 - ] - ], - [ - [ - 1059, - 1059 - ], - "mapped", - [ - 1091 - ] - ], - [ - [ - 1060, - 1060 - ], - "mapped", - [ - 1092 - ] - ], - [ - [ - 1061, - 1061 - ], - "mapped", - [ - 1093 - ] - ], - [ - [ - 1062, - 1062 - ], - "mapped", - [ - 1094 - ] - ], - [ - [ - 1063, - 1063 - ], - "mapped", - [ - 1095 - ] - ], - [ - [ - 1064, - 1064 - ], - "mapped", - [ - 1096 - ] - ], - [ - [ - 1065, - 1065 - ], - "mapped", - [ - 1097 - ] - ], - [ - [ - 1066, - 1066 - ], - "mapped", - [ - 1098 - ] - ], - [ - [ - 1067, - 1067 - ], - "mapped", - [ - 1099 - ] - ], - [ - [ - 1068, - 1068 - ], - "mapped", - [ - 1100 - ] - ], - [ - [ - 1069, - 1069 - ], - "mapped", - [ - 1101 - ] - ], - [ - [ - 1070, - 1070 - ], - "mapped", - [ - 1102 - ] - ], - [ - [ - 1071, - 1071 - ], - "mapped", - [ - 1103 - ] - ], - [ - [ - 1072, - 1103 - ], - "valid" - ], - [ - [ - 1104, - 1104 - ], - "valid" - ], - [ - [ - 1105, - 1116 - ], - "valid" - ], - [ - [ - 1117, - 1117 - ], - "valid" - ], - [ - [ - 1118, - 1119 - ], - "valid" - ], - [ - [ - 1120, - 1120 - ], - "mapped", - [ - 1121 - ] - ], - [ - [ - 1121, - 1121 - ], - "valid" - ], - [ - [ - 1122, - 1122 - ], - "mapped", - [ - 1123 - ] - ], - [ - [ - 1123, - 1123 - ], - "valid" - ], - [ - [ - 1124, - 1124 - ], - "mapped", - [ - 1125 - ] - ], - [ - [ - 1125, - 1125 - ], - "valid" - ], - [ - [ - 1126, - 1126 - ], - "mapped", - [ - 1127 - ] - ], - [ - [ - 1127, - 1127 - ], - "valid" - ], - [ - [ - 1128, - 1128 - ], - "mapped", - [ - 1129 - ] - ], - [ - [ - 1129, - 1129 - ], - "valid" - ], - [ - [ - 1130, - 1130 - ], - "mapped", - [ - 1131 - ] - ], - [ - [ - 1131, - 1131 - ], - "valid" - ], - [ - [ - 1132, - 1132 - ], - "mapped", - [ - 1133 - ] - ], - [ - [ - 1133, - 1133 - ], - "valid" - ], - [ - [ - 1134, - 1134 - ], - "mapped", - [ - 1135 - ] - ], - [ - [ - 1135, - 1135 - ], - "valid" - ], - [ - [ - 1136, - 1136 - ], - "mapped", - [ - 1137 - ] - ], - [ - [ - 1137, - 1137 - ], - "valid" - ], - [ - [ - 1138, - 1138 - ], - "mapped", - [ - 1139 - ] - ], - [ - [ - 1139, - 1139 - ], - "valid" - ], - [ - [ - 1140, - 1140 - ], - "mapped", - [ - 1141 - ] - ], - [ - [ - 1141, - 1141 - ], - "valid" - ], - [ - [ - 1142, - 1142 - ], - "mapped", - [ - 1143 - ] - ], - [ - [ - 1143, - 1143 - ], - "valid" - ], - [ - [ - 1144, - 1144 - ], - "mapped", - [ - 1145 - ] - ], - [ - [ - 1145, - 1145 - ], - "valid" - ], - [ - [ - 1146, - 1146 - ], - "mapped", - [ - 1147 - ] - ], - [ - [ - 1147, - 1147 - ], - "valid" - ], - [ - [ - 1148, - 1148 - ], - "mapped", - [ - 1149 - ] - ], - [ - [ - 1149, - 1149 - ], - "valid" - ], - [ - [ - 1150, - 1150 - ], - "mapped", - [ - 1151 - ] - ], - [ - [ - 1151, - 1151 - ], - "valid" - ], - [ - [ - 1152, - 1152 - ], - "mapped", - [ - 1153 - ] - ], - [ - [ - 1153, - 1153 - ], - "valid" - ], - [ - [ - 1154, - 1154 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1155, - 1158 - ], - "valid" - ], - [ - [ - 1159, - 1159 - ], - "valid" - ], - [ - [ - 1160, - 1161 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1162, - 1162 - ], - "mapped", - [ - 1163 - ] - ], - [ - [ - 1163, - 1163 - ], - "valid" - ], - [ - [ - 1164, - 1164 - ], - "mapped", - [ - 1165 - ] - ], - [ - [ - 1165, - 1165 - ], - "valid" - ], - [ - [ - 1166, - 1166 - ], - "mapped", - [ - 1167 - ] - ], - [ - [ - 1167, - 1167 - ], - "valid" - ], - [ - [ - 1168, - 1168 - ], - "mapped", - [ - 1169 - ] - ], - [ - [ - 1169, - 1169 - ], - "valid" - ], - [ - [ - 1170, - 1170 - ], - "mapped", - [ - 1171 - ] - ], - [ - [ - 1171, - 1171 - ], - "valid" - ], - [ - [ - 1172, - 1172 - ], - "mapped", - [ - 1173 - ] - ], - [ - [ - 1173, - 1173 - ], - "valid" - ], - [ - [ - 1174, - 1174 - ], - "mapped", - [ - 1175 - ] - ], - [ - [ - 1175, - 1175 - ], - "valid" - ], - [ - [ - 1176, - 1176 - ], - "mapped", - [ - 1177 - ] - ], - [ - [ - 1177, - 1177 - ], - "valid" - ], - [ - [ - 1178, - 1178 - ], - "mapped", - [ - 1179 - ] - ], - [ - [ - 1179, - 1179 - ], - "valid" - ], - [ - [ - 1180, - 1180 - ], - "mapped", - [ - 1181 - ] - ], - [ - [ - 1181, - 1181 - ], - "valid" - ], - [ - [ - 1182, - 1182 - ], - "mapped", - [ - 1183 - ] - ], - [ - [ - 1183, - 1183 - ], - "valid" - ], - [ - [ - 1184, - 1184 - ], - "mapped", - [ - 1185 - ] - ], - [ - [ - 1185, - 1185 - ], - "valid" - ], - [ - [ - 1186, - 1186 - ], - "mapped", - [ - 1187 - ] - ], - [ - [ - 1187, - 1187 - ], - "valid" - ], - [ - [ - 1188, - 1188 - ], - "mapped", - [ - 1189 - ] - ], - [ - [ - 1189, - 1189 - ], - "valid" - ], - [ - [ - 1190, - 1190 - ], - "mapped", - [ - 1191 - ] - ], - [ - [ - 1191, - 1191 - ], - "valid" - ], - [ - [ - 1192, - 1192 - ], - "mapped", - [ - 1193 - ] - ], - [ - [ - 1193, - 1193 - ], - "valid" - ], - [ - [ - 1194, - 1194 - ], - "mapped", - [ - 1195 - ] - ], - [ - [ - 1195, - 1195 - ], - "valid" - ], - [ - [ - 1196, - 1196 - ], - "mapped", - [ - 1197 - ] - ], - [ - [ - 1197, - 1197 - ], - "valid" - ], - [ - [ - 1198, - 1198 - ], - "mapped", - [ - 1199 - ] - ], - [ - [ - 1199, - 1199 - ], - "valid" - ], - [ - [ - 1200, - 1200 - ], - "mapped", - [ - 1201 - ] - ], - [ - [ - 1201, - 1201 - ], - "valid" - ], - [ - [ - 1202, - 1202 - ], - "mapped", - [ - 1203 - ] - ], - [ - [ - 1203, - 1203 - ], - "valid" - ], - [ - [ - 1204, - 1204 - ], - "mapped", - [ - 1205 - ] - ], - [ - [ - 1205, - 1205 - ], - "valid" - ], - [ - [ - 1206, - 1206 - ], - "mapped", - [ - 1207 - ] - ], - [ - [ - 1207, - 1207 - ], - "valid" - ], - [ - [ - 1208, - 1208 - ], - "mapped", - [ - 1209 - ] - ], - [ - [ - 1209, - 1209 - ], - "valid" - ], - [ - [ - 1210, - 1210 - ], - "mapped", - [ - 1211 - ] - ], - [ - [ - 1211, - 1211 - ], - "valid" - ], - [ - [ - 1212, - 1212 - ], - "mapped", - [ - 1213 - ] - ], - [ - [ - 1213, - 1213 - ], - "valid" - ], - [ - [ - 1214, - 1214 - ], - "mapped", - [ - 1215 - ] - ], - [ - [ - 1215, - 1215 - ], - "valid" - ], - [ - [ - 1216, - 1216 - ], - "disallowed" - ], - [ - [ - 1217, - 1217 - ], - "mapped", - [ - 1218 - ] - ], - [ - [ - 1218, - 1218 - ], - "valid" - ], - [ - [ - 1219, - 1219 - ], - "mapped", - [ - 1220 - ] - ], - [ - [ - 1220, - 1220 - ], - "valid" - ], - [ - [ - 1221, - 1221 - ], - "mapped", - [ - 1222 - ] - ], - [ - [ - 1222, - 1222 - ], - "valid" - ], - [ - [ - 1223, - 1223 - ], - "mapped", - [ - 1224 - ] - ], - [ - [ - 1224, - 1224 - ], - "valid" - ], - [ - [ - 1225, - 1225 - ], - "mapped", - [ - 1226 - ] - ], - [ - [ - 1226, - 1226 - ], - "valid" - ], - [ - [ - 1227, - 1227 - ], - "mapped", - [ - 1228 - ] - ], - [ - [ - 1228, - 1228 - ], - "valid" - ], - [ - [ - 1229, - 1229 - ], - "mapped", - [ - 1230 - ] - ], - [ - [ - 1230, - 1230 - ], - "valid" - ], - [ - [ - 1231, - 1231 - ], - "valid" - ], - [ - [ - 1232, - 1232 - ], - "mapped", - [ - 1233 - ] - ], - [ - [ - 1233, - 1233 - ], - "valid" - ], - [ - [ - 1234, - 1234 - ], - "mapped", - [ - 1235 - ] - ], - [ - [ - 1235, - 1235 - ], - "valid" - ], - [ - [ - 1236, - 1236 - ], - "mapped", - [ - 1237 - ] - ], - [ - [ - 1237, - 1237 - ], - "valid" - ], - [ - [ - 1238, - 1238 - ], - "mapped", - [ - 1239 - ] - ], - [ - [ - 1239, - 1239 - ], - "valid" - ], - [ - [ - 1240, - 1240 - ], - "mapped", - [ - 1241 - ] - ], - [ - [ - 1241, - 1241 - ], - "valid" - ], - [ - [ - 1242, - 1242 - ], - "mapped", - [ - 1243 - ] - ], - [ - [ - 1243, - 1243 - ], - "valid" - ], - [ - [ - 1244, - 1244 - ], - "mapped", - [ - 1245 - ] - ], - [ - [ - 1245, - 1245 - ], - "valid" - ], - [ - [ - 1246, - 1246 - ], - "mapped", - [ - 1247 - ] - ], - [ - [ - 1247, - 1247 - ], - "valid" - ], - [ - [ - 1248, - 1248 - ], - "mapped", - [ - 1249 - ] - ], - [ - [ - 1249, - 1249 - ], - "valid" - ], - [ - [ - 1250, - 1250 - ], - "mapped", - [ - 1251 - ] - ], - [ - [ - 1251, - 1251 - ], - "valid" - ], - [ - [ - 1252, - 1252 - ], - "mapped", - [ - 1253 - ] - ], - [ - [ - 1253, - 1253 - ], - "valid" - ], - [ - [ - 1254, - 1254 - ], - "mapped", - [ - 1255 - ] - ], - [ - [ - 1255, - 1255 - ], - "valid" - ], - [ - [ - 1256, - 1256 - ], - "mapped", - [ - 1257 - ] - ], - [ - [ - 1257, - 1257 - ], - "valid" - ], - [ - [ - 1258, - 1258 - ], - "mapped", - [ - 1259 - ] - ], - [ - [ - 1259, - 1259 - ], - "valid" - ], - [ - [ - 1260, - 1260 - ], - "mapped", - [ - 1261 - ] - ], - [ - [ - 1261, - 1261 - ], - "valid" - ], - [ - [ - 1262, - 1262 - ], - "mapped", - [ - 1263 - ] - ], - [ - [ - 1263, - 1263 - ], - "valid" - ], - [ - [ - 1264, - 1264 - ], - "mapped", - [ - 1265 - ] - ], - [ - [ - 1265, - 1265 - ], - "valid" - ], - [ - [ - 1266, - 1266 - ], - "mapped", - [ - 1267 - ] - ], - [ - [ - 1267, - 1267 - ], - "valid" - ], - [ - [ - 1268, - 1268 - ], - "mapped", - [ - 1269 - ] - ], - [ - [ - 1269, - 1269 - ], - "valid" - ], - [ - [ - 1270, - 1270 - ], - "mapped", - [ - 1271 - ] - ], - [ - [ - 1271, - 1271 - ], - "valid" - ], - [ - [ - 1272, - 1272 - ], - "mapped", - [ - 1273 - ] - ], - [ - [ - 1273, - 1273 - ], - "valid" - ], - [ - [ - 1274, - 1274 - ], - "mapped", - [ - 1275 - ] - ], - [ - [ - 1275, - 1275 - ], - "valid" - ], - [ - [ - 1276, - 1276 - ], - "mapped", - [ - 1277 - ] - ], - [ - [ - 1277, - 1277 - ], - "valid" - ], - [ - [ - 1278, - 1278 - ], - "mapped", - [ - 1279 - ] - ], - [ - [ - 1279, - 1279 - ], - "valid" - ], - [ - [ - 1280, - 1280 - ], - "mapped", - [ - 1281 - ] - ], - [ - [ - 1281, - 1281 - ], - "valid" - ], - [ - [ - 1282, - 1282 - ], - "mapped", - [ - 1283 - ] - ], - [ - [ - 1283, - 1283 - ], - "valid" - ], - [ - [ - 1284, - 1284 - ], - "mapped", - [ - 1285 - ] - ], - [ - [ - 1285, - 1285 - ], - "valid" - ], - [ - [ - 1286, - 1286 - ], - "mapped", - [ - 1287 - ] - ], - [ - [ - 1287, - 1287 - ], - "valid" - ], - [ - [ - 1288, - 1288 - ], - "mapped", - [ - 1289 - ] - ], - [ - [ - 1289, - 1289 - ], - "valid" - ], - [ - [ - 1290, - 1290 - ], - "mapped", - [ - 1291 - ] - ], - [ - [ - 1291, - 1291 - ], - "valid" - ], - [ - [ - 1292, - 1292 - ], - "mapped", - [ - 1293 - ] - ], - [ - [ - 1293, - 1293 - ], - "valid" - ], - [ - [ - 1294, - 1294 - ], - "mapped", - [ - 1295 - ] - ], - [ - [ - 1295, - 1295 - ], - "valid" - ], - [ - [ - 1296, - 1296 - ], - "mapped", - [ - 1297 - ] - ], - [ - [ - 1297, - 1297 - ], - "valid" - ], - [ - [ - 1298, - 1298 - ], - "mapped", - [ - 1299 - ] - ], - [ - [ - 1299, - 1299 - ], - "valid" - ], - [ - [ - 1300, - 1300 - ], - "mapped", - [ - 1301 - ] - ], - [ - [ - 1301, - 1301 - ], - "valid" - ], - [ - [ - 1302, - 1302 - ], - "mapped", - [ - 1303 - ] - ], - [ - [ - 1303, - 1303 - ], - "valid" - ], - [ - [ - 1304, - 1304 - ], - "mapped", - [ - 1305 - ] - ], - [ - [ - 1305, - 1305 - ], - "valid" - ], - [ - [ - 1306, - 1306 - ], - "mapped", - [ - 1307 - ] - ], - [ - [ - 1307, - 1307 - ], - "valid" - ], - [ - [ - 1308, - 1308 - ], - "mapped", - [ - 1309 - ] - ], - [ - [ - 1309, - 1309 - ], - "valid" - ], - [ - [ - 1310, - 1310 - ], - "mapped", - [ - 1311 - ] - ], - [ - [ - 1311, - 1311 - ], - "valid" - ], - [ - [ - 1312, - 1312 - ], - "mapped", - [ - 1313 - ] - ], - [ - [ - 1313, - 1313 - ], - "valid" - ], - [ - [ - 1314, - 1314 - ], - "mapped", - [ - 1315 - ] - ], - [ - [ - 1315, - 1315 - ], - "valid" - ], - [ - [ - 1316, - 1316 - ], - "mapped", - [ - 1317 - ] - ], - [ - [ - 1317, - 1317 - ], - "valid" - ], - [ - [ - 1318, - 1318 - ], - "mapped", - [ - 1319 - ] - ], - [ - [ - 1319, - 1319 - ], - "valid" - ], - [ - [ - 1320, - 1320 - ], - "mapped", - [ - 1321 - ] - ], - [ - [ - 1321, - 1321 - ], - "valid" - ], - [ - [ - 1322, - 1322 - ], - "mapped", - [ - 1323 - ] - ], - [ - [ - 1323, - 1323 - ], - "valid" - ], - [ - [ - 1324, - 1324 - ], - "mapped", - [ - 1325 - ] - ], - [ - [ - 1325, - 1325 - ], - "valid" - ], - [ - [ - 1326, - 1326 - ], - "mapped", - [ - 1327 - ] - ], - [ - [ - 1327, - 1327 - ], - "valid" - ], - [ - [ - 1328, - 1328 - ], - "disallowed" - ], - [ - [ - 1329, - 1329 - ], - "mapped", - [ - 1377 - ] - ], - [ - [ - 1330, - 1330 - ], - "mapped", - [ - 1378 - ] - ], - [ - [ - 1331, - 1331 - ], - "mapped", - [ - 1379 - ] - ], - [ - [ - 1332, - 1332 - ], - "mapped", - [ - 1380 - ] - ], - [ - [ - 1333, - 1333 - ], - "mapped", - [ - 1381 - ] - ], - [ - [ - 1334, - 1334 - ], - "mapped", - [ - 1382 - ] - ], - [ - [ - 1335, - 1335 - ], - "mapped", - [ - 1383 - ] - ], - [ - [ - 1336, - 1336 - ], - "mapped", - [ - 1384 - ] - ], - [ - [ - 1337, - 1337 - ], - "mapped", - [ - 1385 - ] - ], - [ - [ - 1338, - 1338 - ], - "mapped", - [ - 1386 - ] - ], - [ - [ - 1339, - 1339 - ], - "mapped", - [ - 1387 - ] - ], - [ - [ - 1340, - 1340 - ], - "mapped", - [ - 1388 - ] - ], - [ - [ - 1341, - 1341 - ], - "mapped", - [ - 1389 - ] - ], - [ - [ - 1342, - 1342 - ], - "mapped", - [ - 1390 - ] - ], - [ - [ - 1343, - 1343 - ], - "mapped", - [ - 1391 - ] - ], - [ - [ - 1344, - 1344 - ], - "mapped", - [ - 1392 - ] - ], - [ - [ - 1345, - 1345 - ], - "mapped", - [ - 1393 - ] - ], - [ - [ - 1346, - 1346 - ], - "mapped", - [ - 1394 - ] - ], - [ - [ - 1347, - 1347 - ], - "mapped", - [ - 1395 - ] - ], - [ - [ - 1348, - 1348 - ], - "mapped", - [ - 1396 - ] - ], - [ - [ - 1349, - 1349 - ], - "mapped", - [ - 1397 - ] - ], - [ - [ - 1350, - 1350 - ], - "mapped", - [ - 1398 - ] - ], - [ - [ - 1351, - 1351 - ], - "mapped", - [ - 1399 - ] - ], - [ - [ - 1352, - 1352 - ], - "mapped", - [ - 1400 - ] - ], - [ - [ - 1353, - 1353 - ], - "mapped", - [ - 1401 - ] - ], - [ - [ - 1354, - 1354 - ], - "mapped", - [ - 1402 - ] - ], - [ - [ - 1355, - 1355 - ], - "mapped", - [ - 1403 - ] - ], - [ - [ - 1356, - 1356 - ], - "mapped", - [ - 1404 - ] - ], - [ - [ - 1357, - 1357 - ], - "mapped", - [ - 1405 - ] - ], - [ - [ - 1358, - 1358 - ], - "mapped", - [ - 1406 - ] - ], - [ - [ - 1359, - 1359 - ], - "mapped", - [ - 1407 - ] - ], - [ - [ - 1360, - 1360 - ], - "mapped", - [ - 1408 - ] - ], - [ - [ - 1361, - 1361 - ], - "mapped", - [ - 1409 - ] - ], - [ - [ - 1362, - 1362 - ], - "mapped", - [ - 1410 - ] - ], - [ - [ - 1363, - 1363 - ], - "mapped", - [ - 1411 - ] - ], - [ - [ - 1364, - 1364 - ], - "mapped", - [ - 1412 - ] - ], - [ - [ - 1365, - 1365 - ], - "mapped", - [ - 1413 - ] - ], - [ - [ - 1366, - 1366 - ], - "mapped", - [ - 1414 - ] - ], - [ - [ - 1367, - 1368 - ], - "disallowed" - ], - [ - [ - 1369, - 1369 - ], - "valid" - ], - [ - [ - 1370, - 1375 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1376, - 1376 - ], - "disallowed" - ], - [ - [ - 1377, - 1414 - ], - "valid" - ], - [ - [ - 1415, - 1415 - ], - "mapped", - [ - 1381, - 1410 - ] - ], - [ - [ - 1416, - 1416 - ], - "disallowed" - ], - [ - [ - 1417, - 1417 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1418, - 1418 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1419, - 1420 - ], - "disallowed" - ], - [ - [ - 1421, - 1422 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1423, - 1423 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1424, - 1424 - ], - "disallowed" - ], - [ - [ - 1425, - 1441 - ], - "valid" - ], - [ - [ - 1442, - 1442 - ], - "valid" - ], - [ - [ - 1443, - 1455 - ], - "valid" - ], - [ - [ - 1456, - 1465 - ], - "valid" - ], - [ - [ - 1466, - 1466 - ], - "valid" - ], - [ - [ - 1467, - 1469 - ], - "valid" - ], - [ - [ - 1470, - 1470 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1471, - 1471 - ], - "valid" - ], - [ - [ - 1472, - 1472 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1473, - 1474 - ], - "valid" - ], - [ - [ - 1475, - 1475 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1476, - 1476 - ], - "valid" - ], - [ - [ - 1477, - 1477 - ], - "valid" - ], - [ - [ - 1478, - 1478 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1479, - 1479 - ], - "valid" - ], - [ - [ - 1480, - 1487 - ], - "disallowed" - ], - [ - [ - 1488, - 1514 - ], - "valid" - ], - [ - [ - 1515, - 1519 - ], - "disallowed" - ], - [ - [ - 1520, - 1524 - ], - "valid" - ], - [ - [ - 1525, - 1535 - ], - "disallowed" - ], - [ - [ - 1536, - 1539 - ], - "disallowed" - ], - [ - [ - 1540, - 1540 - ], - "disallowed" - ], - [ - [ - 1541, - 1541 - ], - "disallowed" - ], - [ - [ - 1542, - 1546 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1547, - 1547 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1548, - 1548 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1549, - 1551 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1552, - 1557 - ], - "valid" - ], - [ - [ - 1558, - 1562 - ], - "valid" - ], - [ - [ - 1563, - 1563 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1564, - 1564 - ], - "disallowed" - ], - [ - [ - 1565, - 1565 - ], - "disallowed" - ], - [ - [ - 1566, - 1566 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1567, - 1567 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1568, - 1568 - ], - "valid" - ], - [ - [ - 1569, - 1594 - ], - "valid" - ], - [ - [ - 1595, - 1599 - ], - "valid" - ], - [ - [ - 1600, - 1600 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1601, - 1618 - ], - "valid" - ], - [ - [ - 1619, - 1621 - ], - "valid" - ], - [ - [ - 1622, - 1624 - ], - "valid" - ], - [ - [ - 1625, - 1630 - ], - "valid" - ], - [ - [ - 1631, - 1631 - ], - "valid" - ], - [ - [ - 1632, - 1641 - ], - "valid" - ], - [ - [ - 1642, - 1645 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1646, - 1647 - ], - "valid" - ], - [ - [ - 1648, - 1652 - ], - "valid" - ], - [ - [ - 1653, - 1653 - ], - "mapped", - [ - 1575, - 1652 - ] - ], - [ - [ - 1654, - 1654 - ], - "mapped", - [ - 1608, - 1652 - ] - ], - [ - [ - 1655, - 1655 - ], - "mapped", - [ - 1735, - 1652 - ] - ], - [ - [ - 1656, - 1656 - ], - "mapped", - [ - 1610, - 1652 - ] - ], - [ - [ - 1657, - 1719 - ], - "valid" - ], - [ - [ - 1720, - 1721 - ], - "valid" - ], - [ - [ - 1722, - 1726 - ], - "valid" - ], - [ - [ - 1727, - 1727 - ], - "valid" - ], - [ - [ - 1728, - 1742 - ], - "valid" - ], - [ - [ - 1743, - 1743 - ], - "valid" - ], - [ - [ - 1744, - 1747 - ], - "valid" - ], - [ - [ - 1748, - 1748 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1749, - 1756 - ], - "valid" - ], - [ - [ - 1757, - 1757 - ], - "disallowed" - ], - [ - [ - 1758, - 1758 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1759, - 1768 - ], - "valid" - ], - [ - [ - 1769, - 1769 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1770, - 1773 - ], - "valid" - ], - [ - [ - 1774, - 1775 - ], - "valid" - ], - [ - [ - 1776, - 1785 - ], - "valid" - ], - [ - [ - 1786, - 1790 - ], - "valid" - ], - [ - [ - 1791, - 1791 - ], - "valid" - ], - [ - [ - 1792, - 1805 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 1806, - 1806 - ], - "disallowed" - ], - [ - [ - 1807, - 1807 - ], - "disallowed" - ], - [ - [ - 1808, - 1836 - ], - "valid" - ], - [ - [ - 1837, - 1839 - ], - "valid" - ], - [ - [ - 1840, - 1866 - ], - "valid" - ], - [ - [ - 1867, - 1868 - ], - "disallowed" - ], - [ - [ - 1869, - 1871 - ], - "valid" - ], - [ - [ - 1872, - 1901 - ], - "valid" - ], - [ - [ - 1902, - 1919 - ], - "valid" - ], - [ - [ - 1920, - 1968 - ], - "valid" - ], - [ - [ - 1969, - 1969 - ], - "valid" - ], - [ - [ - 1970, - 1983 - ], - "disallowed" - ], - [ - [ - 1984, - 2037 - ], - "valid" - ], - [ - [ - 2038, - 2042 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2043, - 2047 - ], - "disallowed" - ], - [ - [ - 2048, - 2093 - ], - "valid" - ], - [ - [ - 2094, - 2095 - ], - "disallowed" - ], - [ - [ - 2096, - 2110 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2111, - 2111 - ], - "disallowed" - ], - [ - [ - 2112, - 2139 - ], - "valid" - ], - [ - [ - 2140, - 2141 - ], - "disallowed" - ], - [ - [ - 2142, - 2142 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2143, - 2207 - ], - "disallowed" - ], - [ - [ - 2208, - 2208 - ], - "valid" - ], - [ - [ - 2209, - 2209 - ], - "valid" - ], - [ - [ - 2210, - 2220 - ], - "valid" - ], - [ - [ - 2221, - 2226 - ], - "valid" - ], - [ - [ - 2227, - 2228 - ], - "valid" - ], - [ - [ - 2229, - 2274 - ], - "disallowed" - ], - [ - [ - 2275, - 2275 - ], - "valid" - ], - [ - [ - 2276, - 2302 - ], - "valid" - ], - [ - [ - 2303, - 2303 - ], - "valid" - ], - [ - [ - 2304, - 2304 - ], - "valid" - ], - [ - [ - 2305, - 2307 - ], - "valid" - ], - [ - [ - 2308, - 2308 - ], - "valid" - ], - [ - [ - 2309, - 2361 - ], - "valid" - ], - [ - [ - 2362, - 2363 - ], - "valid" - ], - [ - [ - 2364, - 2381 - ], - "valid" - ], - [ - [ - 2382, - 2382 - ], - "valid" - ], - [ - [ - 2383, - 2383 - ], - "valid" - ], - [ - [ - 2384, - 2388 - ], - "valid" - ], - [ - [ - 2389, - 2389 - ], - "valid" - ], - [ - [ - 2390, - 2391 - ], - "valid" - ], - [ - [ - 2392, - 2392 - ], - "mapped", - [ - 2325, - 2364 - ] - ], - [ - [ - 2393, - 2393 - ], - "mapped", - [ - 2326, - 2364 - ] - ], - [ - [ - 2394, - 2394 - ], - "mapped", - [ - 2327, - 2364 - ] - ], - [ - [ - 2395, - 2395 - ], - "mapped", - [ - 2332, - 2364 - ] - ], - [ - [ - 2396, - 2396 - ], - "mapped", - [ - 2337, - 2364 - ] - ], - [ - [ - 2397, - 2397 - ], - "mapped", - [ - 2338, - 2364 - ] - ], - [ - [ - 2398, - 2398 - ], - "mapped", - [ - 2347, - 2364 - ] - ], - [ - [ - 2399, - 2399 - ], - "mapped", - [ - 2351, - 2364 - ] - ], - [ - [ - 2400, - 2403 - ], - "valid" - ], - [ - [ - 2404, - 2405 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2406, - 2415 - ], - "valid" - ], - [ - [ - 2416, - 2416 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2417, - 2418 - ], - "valid" - ], - [ - [ - 2419, - 2423 - ], - "valid" - ], - [ - [ - 2424, - 2424 - ], - "valid" - ], - [ - [ - 2425, - 2426 - ], - "valid" - ], - [ - [ - 2427, - 2428 - ], - "valid" - ], - [ - [ - 2429, - 2429 - ], - "valid" - ], - [ - [ - 2430, - 2431 - ], - "valid" - ], - [ - [ - 2432, - 2432 - ], - "valid" - ], - [ - [ - 2433, - 2435 - ], - "valid" - ], - [ - [ - 2436, - 2436 - ], - "disallowed" - ], - [ - [ - 2437, - 2444 - ], - "valid" - ], - [ - [ - 2445, - 2446 - ], - "disallowed" - ], - [ - [ - 2447, - 2448 - ], - "valid" - ], - [ - [ - 2449, - 2450 - ], - "disallowed" - ], - [ - [ - 2451, - 2472 - ], - "valid" - ], - [ - [ - 2473, - 2473 - ], - "disallowed" - ], - [ - [ - 2474, - 2480 - ], - "valid" - ], - [ - [ - 2481, - 2481 - ], - "disallowed" - ], - [ - [ - 2482, - 2482 - ], - "valid" - ], - [ - [ - 2483, - 2485 - ], - "disallowed" - ], - [ - [ - 2486, - 2489 - ], - "valid" - ], - [ - [ - 2490, - 2491 - ], - "disallowed" - ], - [ - [ - 2492, - 2492 - ], - "valid" - ], - [ - [ - 2493, - 2493 - ], - "valid" - ], - [ - [ - 2494, - 2500 - ], - "valid" - ], - [ - [ - 2501, - 2502 - ], - "disallowed" - ], - [ - [ - 2503, - 2504 - ], - "valid" - ], - [ - [ - 2505, - 2506 - ], - "disallowed" - ], - [ - [ - 2507, - 2509 - ], - "valid" - ], - [ - [ - 2510, - 2510 - ], - "valid" - ], - [ - [ - 2511, - 2518 - ], - "disallowed" - ], - [ - [ - 2519, - 2519 - ], - "valid" - ], - [ - [ - 2520, - 2523 - ], - "disallowed" - ], - [ - [ - 2524, - 2524 - ], - "mapped", - [ - 2465, - 2492 - ] - ], - [ - [ - 2525, - 2525 - ], - "mapped", - [ - 2466, - 2492 - ] - ], - [ - [ - 2526, - 2526 - ], - "disallowed" - ], - [ - [ - 2527, - 2527 - ], - "mapped", - [ - 2479, - 2492 - ] - ], - [ - [ - 2528, - 2531 - ], - "valid" - ], - [ - [ - 2532, - 2533 - ], - "disallowed" - ], - [ - [ - 2534, - 2545 - ], - "valid" - ], - [ - [ - 2546, - 2554 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2555, - 2555 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2556, - 2560 - ], - "disallowed" - ], - [ - [ - 2561, - 2561 - ], - "valid" - ], - [ - [ - 2562, - 2562 - ], - "valid" - ], - [ - [ - 2563, - 2563 - ], - "valid" - ], - [ - [ - 2564, - 2564 - ], - "disallowed" - ], - [ - [ - 2565, - 2570 - ], - "valid" - ], - [ - [ - 2571, - 2574 - ], - "disallowed" - ], - [ - [ - 2575, - 2576 - ], - "valid" - ], - [ - [ - 2577, - 2578 - ], - "disallowed" - ], - [ - [ - 2579, - 2600 - ], - "valid" - ], - [ - [ - 2601, - 2601 - ], - "disallowed" - ], - [ - [ - 2602, - 2608 - ], - "valid" - ], - [ - [ - 2609, - 2609 - ], - "disallowed" - ], - [ - [ - 2610, - 2610 - ], - "valid" - ], - [ - [ - 2611, - 2611 - ], - "mapped", - [ - 2610, - 2620 - ] - ], - [ - [ - 2612, - 2612 - ], - "disallowed" - ], - [ - [ - 2613, - 2613 - ], - "valid" - ], - [ - [ - 2614, - 2614 - ], - "mapped", - [ - 2616, - 2620 - ] - ], - [ - [ - 2615, - 2615 - ], - "disallowed" - ], - [ - [ - 2616, - 2617 - ], - "valid" - ], - [ - [ - 2618, - 2619 - ], - "disallowed" - ], - [ - [ - 2620, - 2620 - ], - "valid" - ], - [ - [ - 2621, - 2621 - ], - "disallowed" - ], - [ - [ - 2622, - 2626 - ], - "valid" - ], - [ - [ - 2627, - 2630 - ], - "disallowed" - ], - [ - [ - 2631, - 2632 - ], - "valid" - ], - [ - [ - 2633, - 2634 - ], - "disallowed" - ], - [ - [ - 2635, - 2637 - ], - "valid" - ], - [ - [ - 2638, - 2640 - ], - "disallowed" - ], - [ - [ - 2641, - 2641 - ], - "valid" - ], - [ - [ - 2642, - 2648 - ], - "disallowed" - ], - [ - [ - 2649, - 2649 - ], - "mapped", - [ - 2582, - 2620 - ] - ], - [ - [ - 2650, - 2650 - ], - "mapped", - [ - 2583, - 2620 - ] - ], - [ - [ - 2651, - 2651 - ], - "mapped", - [ - 2588, - 2620 - ] - ], - [ - [ - 2652, - 2652 - ], - "valid" - ], - [ - [ - 2653, - 2653 - ], - "disallowed" - ], - [ - [ - 2654, - 2654 - ], - "mapped", - [ - 2603, - 2620 - ] - ], - [ - [ - 2655, - 2661 - ], - "disallowed" - ], - [ - [ - 2662, - 2676 - ], - "valid" - ], - [ - [ - 2677, - 2677 - ], - "valid" - ], - [ - [ - 2678, - 2688 - ], - "disallowed" - ], - [ - [ - 2689, - 2691 - ], - "valid" - ], - [ - [ - 2692, - 2692 - ], - "disallowed" - ], - [ - [ - 2693, - 2699 - ], - "valid" - ], - [ - [ - 2700, - 2700 - ], - "valid" - ], - [ - [ - 2701, - 2701 - ], - "valid" - ], - [ - [ - 2702, - 2702 - ], - "disallowed" - ], - [ - [ - 2703, - 2705 - ], - "valid" - ], - [ - [ - 2706, - 2706 - ], - "disallowed" - ], - [ - [ - 2707, - 2728 - ], - "valid" - ], - [ - [ - 2729, - 2729 - ], - "disallowed" - ], - [ - [ - 2730, - 2736 - ], - "valid" - ], - [ - [ - 2737, - 2737 - ], - "disallowed" - ], - [ - [ - 2738, - 2739 - ], - "valid" - ], - [ - [ - 2740, - 2740 - ], - "disallowed" - ], - [ - [ - 2741, - 2745 - ], - "valid" - ], - [ - [ - 2746, - 2747 - ], - "disallowed" - ], - [ - [ - 2748, - 2757 - ], - "valid" - ], - [ - [ - 2758, - 2758 - ], - "disallowed" - ], - [ - [ - 2759, - 2761 - ], - "valid" - ], - [ - [ - 2762, - 2762 - ], - "disallowed" - ], - [ - [ - 2763, - 2765 - ], - "valid" - ], - [ - [ - 2766, - 2767 - ], - "disallowed" - ], - [ - [ - 2768, - 2768 - ], - "valid" - ], - [ - [ - 2769, - 2783 - ], - "disallowed" - ], - [ - [ - 2784, - 2784 - ], - "valid" - ], - [ - [ - 2785, - 2787 - ], - "valid" - ], - [ - [ - 2788, - 2789 - ], - "disallowed" - ], - [ - [ - 2790, - 2799 - ], - "valid" - ], - [ - [ - 2800, - 2800 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2801, - 2801 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2802, - 2808 - ], - "disallowed" - ], - [ - [ - 2809, - 2809 - ], - "valid" - ], - [ - [ - 2810, - 2816 - ], - "disallowed" - ], - [ - [ - 2817, - 2819 - ], - "valid" - ], - [ - [ - 2820, - 2820 - ], - "disallowed" - ], - [ - [ - 2821, - 2828 - ], - "valid" - ], - [ - [ - 2829, - 2830 - ], - "disallowed" - ], - [ - [ - 2831, - 2832 - ], - "valid" - ], - [ - [ - 2833, - 2834 - ], - "disallowed" - ], - [ - [ - 2835, - 2856 - ], - "valid" - ], - [ - [ - 2857, - 2857 - ], - "disallowed" - ], - [ - [ - 2858, - 2864 - ], - "valid" - ], - [ - [ - 2865, - 2865 - ], - "disallowed" - ], - [ - [ - 2866, - 2867 - ], - "valid" - ], - [ - [ - 2868, - 2868 - ], - "disallowed" - ], - [ - [ - 2869, - 2869 - ], - "valid" - ], - [ - [ - 2870, - 2873 - ], - "valid" - ], - [ - [ - 2874, - 2875 - ], - "disallowed" - ], - [ - [ - 2876, - 2883 - ], - "valid" - ], - [ - [ - 2884, - 2884 - ], - "valid" - ], - [ - [ - 2885, - 2886 - ], - "disallowed" - ], - [ - [ - 2887, - 2888 - ], - "valid" - ], - [ - [ - 2889, - 2890 - ], - "disallowed" - ], - [ - [ - 2891, - 2893 - ], - "valid" - ], - [ - [ - 2894, - 2901 - ], - "disallowed" - ], - [ - [ - 2902, - 2903 - ], - "valid" - ], - [ - [ - 2904, - 2907 - ], - "disallowed" - ], - [ - [ - 2908, - 2908 - ], - "mapped", - [ - 2849, - 2876 - ] - ], - [ - [ - 2909, - 2909 - ], - "mapped", - [ - 2850, - 2876 - ] - ], - [ - [ - 2910, - 2910 - ], - "disallowed" - ], - [ - [ - 2911, - 2913 - ], - "valid" - ], - [ - [ - 2914, - 2915 - ], - "valid" - ], - [ - [ - 2916, - 2917 - ], - "disallowed" - ], - [ - [ - 2918, - 2927 - ], - "valid" - ], - [ - [ - 2928, - 2928 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2929, - 2929 - ], - "valid" - ], - [ - [ - 2930, - 2935 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 2936, - 2945 - ], - "disallowed" - ], - [ - [ - 2946, - 2947 - ], - "valid" - ], - [ - [ - 2948, - 2948 - ], - "disallowed" - ], - [ - [ - 2949, - 2954 - ], - "valid" - ], - [ - [ - 2955, - 2957 - ], - "disallowed" - ], - [ - [ - 2958, - 2960 - ], - "valid" - ], - [ - [ - 2961, - 2961 - ], - "disallowed" - ], - [ - [ - 2962, - 2965 - ], - "valid" - ], - [ - [ - 2966, - 2968 - ], - "disallowed" - ], - [ - [ - 2969, - 2970 - ], - "valid" - ], - [ - [ - 2971, - 2971 - ], - "disallowed" - ], - [ - [ - 2972, - 2972 - ], - "valid" - ], - [ - [ - 2973, - 2973 - ], - "disallowed" - ], - [ - [ - 2974, - 2975 - ], - "valid" - ], - [ - [ - 2976, - 2978 - ], - "disallowed" - ], - [ - [ - 2979, - 2980 - ], - "valid" - ], - [ - [ - 2981, - 2983 - ], - "disallowed" - ], - [ - [ - 2984, - 2986 - ], - "valid" - ], - [ - [ - 2987, - 2989 - ], - "disallowed" - ], - [ - [ - 2990, - 2997 - ], - "valid" - ], - [ - [ - 2998, - 2998 - ], - "valid" - ], - [ - [ - 2999, - 3001 - ], - "valid" - ], - [ - [ - 3002, - 3005 - ], - "disallowed" - ], - [ - [ - 3006, - 3010 - ], - "valid" - ], - [ - [ - 3011, - 3013 - ], - "disallowed" - ], - [ - [ - 3014, - 3016 - ], - "valid" - ], - [ - [ - 3017, - 3017 - ], - "disallowed" - ], - [ - [ - 3018, - 3021 - ], - "valid" - ], - [ - [ - 3022, - 3023 - ], - "disallowed" - ], - [ - [ - 3024, - 3024 - ], - "valid" - ], - [ - [ - 3025, - 3030 - ], - "disallowed" - ], - [ - [ - 3031, - 3031 - ], - "valid" - ], - [ - [ - 3032, - 3045 - ], - "disallowed" - ], - [ - [ - 3046, - 3046 - ], - "valid" - ], - [ - [ - 3047, - 3055 - ], - "valid" - ], - [ - [ - 3056, - 3058 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3059, - 3066 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3067, - 3071 - ], - "disallowed" - ], - [ - [ - 3072, - 3072 - ], - "valid" - ], - [ - [ - 3073, - 3075 - ], - "valid" - ], - [ - [ - 3076, - 3076 - ], - "disallowed" - ], - [ - [ - 3077, - 3084 - ], - "valid" - ], - [ - [ - 3085, - 3085 - ], - "disallowed" - ], - [ - [ - 3086, - 3088 - ], - "valid" - ], - [ - [ - 3089, - 3089 - ], - "disallowed" - ], - [ - [ - 3090, - 3112 - ], - "valid" - ], - [ - [ - 3113, - 3113 - ], - "disallowed" - ], - [ - [ - 3114, - 3123 - ], - "valid" - ], - [ - [ - 3124, - 3124 - ], - "valid" - ], - [ - [ - 3125, - 3129 - ], - "valid" - ], - [ - [ - 3130, - 3132 - ], - "disallowed" - ], - [ - [ - 3133, - 3133 - ], - "valid" - ], - [ - [ - 3134, - 3140 - ], - "valid" - ], - [ - [ - 3141, - 3141 - ], - "disallowed" - ], - [ - [ - 3142, - 3144 - ], - "valid" - ], - [ - [ - 3145, - 3145 - ], - "disallowed" - ], - [ - [ - 3146, - 3149 - ], - "valid" - ], - [ - [ - 3150, - 3156 - ], - "disallowed" - ], - [ - [ - 3157, - 3158 - ], - "valid" - ], - [ - [ - 3159, - 3159 - ], - "disallowed" - ], - [ - [ - 3160, - 3161 - ], - "valid" - ], - [ - [ - 3162, - 3162 - ], - "valid" - ], - [ - [ - 3163, - 3167 - ], - "disallowed" - ], - [ - [ - 3168, - 3169 - ], - "valid" - ], - [ - [ - 3170, - 3171 - ], - "valid" - ], - [ - [ - 3172, - 3173 - ], - "disallowed" - ], - [ - [ - 3174, - 3183 - ], - "valid" - ], - [ - [ - 3184, - 3191 - ], - "disallowed" - ], - [ - [ - 3192, - 3199 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3200, - 3200 - ], - "disallowed" - ], - [ - [ - 3201, - 3201 - ], - "valid" - ], - [ - [ - 3202, - 3203 - ], - "valid" - ], - [ - [ - 3204, - 3204 - ], - "disallowed" - ], - [ - [ - 3205, - 3212 - ], - "valid" - ], - [ - [ - 3213, - 3213 - ], - "disallowed" - ], - [ - [ - 3214, - 3216 - ], - "valid" - ], - [ - [ - 3217, - 3217 - ], - "disallowed" - ], - [ - [ - 3218, - 3240 - ], - "valid" - ], - [ - [ - 3241, - 3241 - ], - "disallowed" - ], - [ - [ - 3242, - 3251 - ], - "valid" - ], - [ - [ - 3252, - 3252 - ], - "disallowed" - ], - [ - [ - 3253, - 3257 - ], - "valid" - ], - [ - [ - 3258, - 3259 - ], - "disallowed" - ], - [ - [ - 3260, - 3261 - ], - "valid" - ], - [ - [ - 3262, - 3268 - ], - "valid" - ], - [ - [ - 3269, - 3269 - ], - "disallowed" - ], - [ - [ - 3270, - 3272 - ], - "valid" - ], - [ - [ - 3273, - 3273 - ], - "disallowed" - ], - [ - [ - 3274, - 3277 - ], - "valid" - ], - [ - [ - 3278, - 3284 - ], - "disallowed" - ], - [ - [ - 3285, - 3286 - ], - "valid" - ], - [ - [ - 3287, - 3293 - ], - "disallowed" - ], - [ - [ - 3294, - 3294 - ], - "valid" - ], - [ - [ - 3295, - 3295 - ], - "disallowed" - ], - [ - [ - 3296, - 3297 - ], - "valid" - ], - [ - [ - 3298, - 3299 - ], - "valid" - ], - [ - [ - 3300, - 3301 - ], - "disallowed" - ], - [ - [ - 3302, - 3311 - ], - "valid" - ], - [ - [ - 3312, - 3312 - ], - "disallowed" - ], - [ - [ - 3313, - 3314 - ], - "valid" - ], - [ - [ - 3315, - 3328 - ], - "disallowed" - ], - [ - [ - 3329, - 3329 - ], - "valid" - ], - [ - [ - 3330, - 3331 - ], - "valid" - ], - [ - [ - 3332, - 3332 - ], - "disallowed" - ], - [ - [ - 3333, - 3340 - ], - "valid" - ], - [ - [ - 3341, - 3341 - ], - "disallowed" - ], - [ - [ - 3342, - 3344 - ], - "valid" - ], - [ - [ - 3345, - 3345 - ], - "disallowed" - ], - [ - [ - 3346, - 3368 - ], - "valid" - ], - [ - [ - 3369, - 3369 - ], - "valid" - ], - [ - [ - 3370, - 3385 - ], - "valid" - ], - [ - [ - 3386, - 3386 - ], - "valid" - ], - [ - [ - 3387, - 3388 - ], - "disallowed" - ], - [ - [ - 3389, - 3389 - ], - "valid" - ], - [ - [ - 3390, - 3395 - ], - "valid" - ], - [ - [ - 3396, - 3396 - ], - "valid" - ], - [ - [ - 3397, - 3397 - ], - "disallowed" - ], - [ - [ - 3398, - 3400 - ], - "valid" - ], - [ - [ - 3401, - 3401 - ], - "disallowed" - ], - [ - [ - 3402, - 3405 - ], - "valid" - ], - [ - [ - 3406, - 3406 - ], - "valid" - ], - [ - [ - 3407, - 3414 - ], - "disallowed" - ], - [ - [ - 3415, - 3415 - ], - "valid" - ], - [ - [ - 3416, - 3422 - ], - "disallowed" - ], - [ - [ - 3423, - 3423 - ], - "valid" - ], - [ - [ - 3424, - 3425 - ], - "valid" - ], - [ - [ - 3426, - 3427 - ], - "valid" - ], - [ - [ - 3428, - 3429 - ], - "disallowed" - ], - [ - [ - 3430, - 3439 - ], - "valid" - ], - [ - [ - 3440, - 3445 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3446, - 3448 - ], - "disallowed" - ], - [ - [ - 3449, - 3449 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3450, - 3455 - ], - "valid" - ], - [ - [ - 3456, - 3457 - ], - "disallowed" - ], - [ - [ - 3458, - 3459 - ], - "valid" - ], - [ - [ - 3460, - 3460 - ], - "disallowed" - ], - [ - [ - 3461, - 3478 - ], - "valid" - ], - [ - [ - 3479, - 3481 - ], - "disallowed" - ], - [ - [ - 3482, - 3505 - ], - "valid" - ], - [ - [ - 3506, - 3506 - ], - "disallowed" - ], - [ - [ - 3507, - 3515 - ], - "valid" - ], - [ - [ - 3516, - 3516 - ], - "disallowed" - ], - [ - [ - 3517, - 3517 - ], - "valid" - ], - [ - [ - 3518, - 3519 - ], - "disallowed" - ], - [ - [ - 3520, - 3526 - ], - "valid" - ], - [ - [ - 3527, - 3529 - ], - "disallowed" - ], - [ - [ - 3530, - 3530 - ], - "valid" - ], - [ - [ - 3531, - 3534 - ], - "disallowed" - ], - [ - [ - 3535, - 3540 - ], - "valid" - ], - [ - [ - 3541, - 3541 - ], - "disallowed" - ], - [ - [ - 3542, - 3542 - ], - "valid" - ], - [ - [ - 3543, - 3543 - ], - "disallowed" - ], - [ - [ - 3544, - 3551 - ], - "valid" - ], - [ - [ - 3552, - 3557 - ], - "disallowed" - ], - [ - [ - 3558, - 3567 - ], - "valid" - ], - [ - [ - 3568, - 3569 - ], - "disallowed" - ], - [ - [ - 3570, - 3571 - ], - "valid" - ], - [ - [ - 3572, - 3572 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3573, - 3584 - ], - "disallowed" - ], - [ - [ - 3585, - 3634 - ], - "valid" - ], - [ - [ - 3635, - 3635 - ], - "mapped", - [ - 3661, - 3634 - ] - ], - [ - [ - 3636, - 3642 - ], - "valid" - ], - [ - [ - 3643, - 3646 - ], - "disallowed" - ], - [ - [ - 3647, - 3647 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3648, - 3662 - ], - "valid" - ], - [ - [ - 3663, - 3663 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3664, - 3673 - ], - "valid" - ], - [ - [ - 3674, - 3675 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3676, - 3712 - ], - "disallowed" - ], - [ - [ - 3713, - 3714 - ], - "valid" - ], - [ - [ - 3715, - 3715 - ], - "disallowed" - ], - [ - [ - 3716, - 3716 - ], - "valid" - ], - [ - [ - 3717, - 3718 - ], - "disallowed" - ], - [ - [ - 3719, - 3720 - ], - "valid" - ], - [ - [ - 3721, - 3721 - ], - "disallowed" - ], - [ - [ - 3722, - 3722 - ], - "valid" - ], - [ - [ - 3723, - 3724 - ], - "disallowed" - ], - [ - [ - 3725, - 3725 - ], - "valid" - ], - [ - [ - 3726, - 3731 - ], - "disallowed" - ], - [ - [ - 3732, - 3735 - ], - "valid" - ], - [ - [ - 3736, - 3736 - ], - "disallowed" - ], - [ - [ - 3737, - 3743 - ], - "valid" - ], - [ - [ - 3744, - 3744 - ], - "disallowed" - ], - [ - [ - 3745, - 3747 - ], - "valid" - ], - [ - [ - 3748, - 3748 - ], - "disallowed" - ], - [ - [ - 3749, - 3749 - ], - "valid" - ], - [ - [ - 3750, - 3750 - ], - "disallowed" - ], - [ - [ - 3751, - 3751 - ], - "valid" - ], - [ - [ - 3752, - 3753 - ], - "disallowed" - ], - [ - [ - 3754, - 3755 - ], - "valid" - ], - [ - [ - 3756, - 3756 - ], - "disallowed" - ], - [ - [ - 3757, - 3762 - ], - "valid" - ], - [ - [ - 3763, - 3763 - ], - "mapped", - [ - 3789, - 3762 - ] - ], - [ - [ - 3764, - 3769 - ], - "valid" - ], - [ - [ - 3770, - 3770 - ], - "disallowed" - ], - [ - [ - 3771, - 3773 - ], - "valid" - ], - [ - [ - 3774, - 3775 - ], - "disallowed" - ], - [ - [ - 3776, - 3780 - ], - "valid" - ], - [ - [ - 3781, - 3781 - ], - "disallowed" - ], - [ - [ - 3782, - 3782 - ], - "valid" - ], - [ - [ - 3783, - 3783 - ], - "disallowed" - ], - [ - [ - 3784, - 3789 - ], - "valid" - ], - [ - [ - 3790, - 3791 - ], - "disallowed" - ], - [ - [ - 3792, - 3801 - ], - "valid" - ], - [ - [ - 3802, - 3803 - ], - "disallowed" - ], - [ - [ - 3804, - 3804 - ], - "mapped", - [ - 3755, - 3737 - ] - ], - [ - [ - 3805, - 3805 - ], - "mapped", - [ - 3755, - 3745 - ] - ], - [ - [ - 3806, - 3807 - ], - "valid" - ], - [ - [ - 3808, - 3839 - ], - "disallowed" - ], - [ - [ - 3840, - 3840 - ], - "valid" - ], - [ - [ - 3841, - 3850 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3851, - 3851 - ], - "valid" - ], - [ - [ - 3852, - 3852 - ], - "mapped", - [ - 3851 - ] - ], - [ - [ - 3853, - 3863 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3864, - 3865 - ], - "valid" - ], - [ - [ - 3866, - 3871 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3872, - 3881 - ], - "valid" - ], - [ - [ - 3882, - 3892 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3893, - 3893 - ], - "valid" - ], - [ - [ - 3894, - 3894 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3895, - 3895 - ], - "valid" - ], - [ - [ - 3896, - 3896 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3897, - 3897 - ], - "valid" - ], - [ - [ - 3898, - 3901 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3902, - 3906 - ], - "valid" - ], - [ - [ - 3907, - 3907 - ], - "mapped", - [ - 3906, - 4023 - ] - ], - [ - [ - 3908, - 3911 - ], - "valid" - ], - [ - [ - 3912, - 3912 - ], - "disallowed" - ], - [ - [ - 3913, - 3916 - ], - "valid" - ], - [ - [ - 3917, - 3917 - ], - "mapped", - [ - 3916, - 4023 - ] - ], - [ - [ - 3918, - 3921 - ], - "valid" - ], - [ - [ - 3922, - 3922 - ], - "mapped", - [ - 3921, - 4023 - ] - ], - [ - [ - 3923, - 3926 - ], - "valid" - ], - [ - [ - 3927, - 3927 - ], - "mapped", - [ - 3926, - 4023 - ] - ], - [ - [ - 3928, - 3931 - ], - "valid" - ], - [ - [ - 3932, - 3932 - ], - "mapped", - [ - 3931, - 4023 - ] - ], - [ - [ - 3933, - 3944 - ], - "valid" - ], - [ - [ - 3945, - 3945 - ], - "mapped", - [ - 3904, - 4021 - ] - ], - [ - [ - 3946, - 3946 - ], - "valid" - ], - [ - [ - 3947, - 3948 - ], - "valid" - ], - [ - [ - 3949, - 3952 - ], - "disallowed" - ], - [ - [ - 3953, - 3954 - ], - "valid" - ], - [ - [ - 3955, - 3955 - ], - "mapped", - [ - 3953, - 3954 - ] - ], - [ - [ - 3956, - 3956 - ], - "valid" - ], - [ - [ - 3957, - 3957 - ], - "mapped", - [ - 3953, - 3956 - ] - ], - [ - [ - 3958, - 3958 - ], - "mapped", - [ - 4018, - 3968 - ] - ], - [ - [ - 3959, - 3959 - ], - "mapped", - [ - 4018, - 3953, - 3968 - ] - ], - [ - [ - 3960, - 3960 - ], - "mapped", - [ - 4019, - 3968 - ] - ], - [ - [ - 3961, - 3961 - ], - "mapped", - [ - 4019, - 3953, - 3968 - ] - ], - [ - [ - 3962, - 3968 - ], - "valid" - ], - [ - [ - 3969, - 3969 - ], - "mapped", - [ - 3953, - 3968 - ] - ], - [ - [ - 3970, - 3972 - ], - "valid" - ], - [ - [ - 3973, - 3973 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 3974, - 3979 - ], - "valid" - ], - [ - [ - 3980, - 3983 - ], - "valid" - ], - [ - [ - 3984, - 3986 - ], - "valid" - ], - [ - [ - 3987, - 3987 - ], - "mapped", - [ - 3986, - 4023 - ] - ], - [ - [ - 3988, - 3989 - ], - "valid" - ], - [ - [ - 3990, - 3990 - ], - "valid" - ], - [ - [ - 3991, - 3991 - ], - "valid" - ], - [ - [ - 3992, - 3992 - ], - "disallowed" - ], - [ - [ - 3993, - 3996 - ], - "valid" - ], - [ - [ - 3997, - 3997 - ], - "mapped", - [ - 3996, - 4023 - ] - ], - [ - [ - 3998, - 4001 - ], - "valid" - ], - [ - [ - 4002, - 4002 - ], - "mapped", - [ - 4001, - 4023 - ] - ], - [ - [ - 4003, - 4006 - ], - "valid" - ], - [ - [ - 4007, - 4007 - ], - "mapped", - [ - 4006, - 4023 - ] - ], - [ - [ - 4008, - 4011 - ], - "valid" - ], - [ - [ - 4012, - 4012 - ], - "mapped", - [ - 4011, - 4023 - ] - ], - [ - [ - 4013, - 4013 - ], - "valid" - ], - [ - [ - 4014, - 4016 - ], - "valid" - ], - [ - [ - 4017, - 4023 - ], - "valid" - ], - [ - [ - 4024, - 4024 - ], - "valid" - ], - [ - [ - 4025, - 4025 - ], - "mapped", - [ - 3984, - 4021 - ] - ], - [ - [ - 4026, - 4028 - ], - "valid" - ], - [ - [ - 4029, - 4029 - ], - "disallowed" - ], - [ - [ - 4030, - 4037 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4038, - 4038 - ], - "valid" - ], - [ - [ - 4039, - 4044 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4045, - 4045 - ], - "disallowed" - ], - [ - [ - 4046, - 4046 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4047, - 4047 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4048, - 4049 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4050, - 4052 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4053, - 4056 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4057, - 4058 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4059, - 4095 - ], - "disallowed" - ], - [ - [ - 4096, - 4129 - ], - "valid" - ], - [ - [ - 4130, - 4130 - ], - "valid" - ], - [ - [ - 4131, - 4135 - ], - "valid" - ], - [ - [ - 4136, - 4136 - ], - "valid" - ], - [ - [ - 4137, - 4138 - ], - "valid" - ], - [ - [ - 4139, - 4139 - ], - "valid" - ], - [ - [ - 4140, - 4146 - ], - "valid" - ], - [ - [ - 4147, - 4149 - ], - "valid" - ], - [ - [ - 4150, - 4153 - ], - "valid" - ], - [ - [ - 4154, - 4159 - ], - "valid" - ], - [ - [ - 4160, - 4169 - ], - "valid" - ], - [ - [ - 4170, - 4175 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4176, - 4185 - ], - "valid" - ], - [ - [ - 4186, - 4249 - ], - "valid" - ], - [ - [ - 4250, - 4253 - ], - "valid" - ], - [ - [ - 4254, - 4255 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4256, - 4293 - ], - "disallowed" - ], - [ - [ - 4294, - 4294 - ], - "disallowed" - ], - [ - [ - 4295, - 4295 - ], - "mapped", - [ - 11559 - ] - ], - [ - [ - 4296, - 4300 - ], - "disallowed" - ], - [ - [ - 4301, - 4301 - ], - "mapped", - [ - 11565 - ] - ], - [ - [ - 4302, - 4303 - ], - "disallowed" - ], - [ - [ - 4304, - 4342 - ], - "valid" - ], - [ - [ - 4343, - 4344 - ], - "valid" - ], - [ - [ - 4345, - 4346 - ], - "valid" - ], - [ - [ - 4347, - 4347 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4348, - 4348 - ], - "mapped", - [ - 4316 - ] - ], - [ - [ - 4349, - 4351 - ], - "valid" - ], - [ - [ - 4352, - 4441 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4442, - 4446 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4447, - 4448 - ], - "disallowed" - ], - [ - [ - 4449, - 4514 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4515, - 4519 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4520, - 4601 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4602, - 4607 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4608, - 4614 - ], - "valid" - ], - [ - [ - 4615, - 4615 - ], - "valid" - ], - [ - [ - 4616, - 4678 - ], - "valid" - ], - [ - [ - 4679, - 4679 - ], - "valid" - ], - [ - [ - 4680, - 4680 - ], - "valid" - ], - [ - [ - 4681, - 4681 - ], - "disallowed" - ], - [ - [ - 4682, - 4685 - ], - "valid" - ], - [ - [ - 4686, - 4687 - ], - "disallowed" - ], - [ - [ - 4688, - 4694 - ], - "valid" - ], - [ - [ - 4695, - 4695 - ], - "disallowed" - ], - [ - [ - 4696, - 4696 - ], - "valid" - ], - [ - [ - 4697, - 4697 - ], - "disallowed" - ], - [ - [ - 4698, - 4701 - ], - "valid" - ], - [ - [ - 4702, - 4703 - ], - "disallowed" - ], - [ - [ - 4704, - 4742 - ], - "valid" - ], - [ - [ - 4743, - 4743 - ], - "valid" - ], - [ - [ - 4744, - 4744 - ], - "valid" - ], - [ - [ - 4745, - 4745 - ], - "disallowed" - ], - [ - [ - 4746, - 4749 - ], - "valid" - ], - [ - [ - 4750, - 4751 - ], - "disallowed" - ], - [ - [ - 4752, - 4782 - ], - "valid" - ], - [ - [ - 4783, - 4783 - ], - "valid" - ], - [ - [ - 4784, - 4784 - ], - "valid" - ], - [ - [ - 4785, - 4785 - ], - "disallowed" - ], - [ - [ - 4786, - 4789 - ], - "valid" - ], - [ - [ - 4790, - 4791 - ], - "disallowed" - ], - [ - [ - 4792, - 4798 - ], - "valid" - ], - [ - [ - 4799, - 4799 - ], - "disallowed" - ], - [ - [ - 4800, - 4800 - ], - "valid" - ], - [ - [ - 4801, - 4801 - ], - "disallowed" - ], - [ - [ - 4802, - 4805 - ], - "valid" - ], - [ - [ - 4806, - 4807 - ], - "disallowed" - ], - [ - [ - 4808, - 4814 - ], - "valid" - ], - [ - [ - 4815, - 4815 - ], - "valid" - ], - [ - [ - 4816, - 4822 - ], - "valid" - ], - [ - [ - 4823, - 4823 - ], - "disallowed" - ], - [ - [ - 4824, - 4846 - ], - "valid" - ], - [ - [ - 4847, - 4847 - ], - "valid" - ], - [ - [ - 4848, - 4878 - ], - "valid" - ], - [ - [ - 4879, - 4879 - ], - "valid" - ], - [ - [ - 4880, - 4880 - ], - "valid" - ], - [ - [ - 4881, - 4881 - ], - "disallowed" - ], - [ - [ - 4882, - 4885 - ], - "valid" - ], - [ - [ - 4886, - 4887 - ], - "disallowed" - ], - [ - [ - 4888, - 4894 - ], - "valid" - ], - [ - [ - 4895, - 4895 - ], - "valid" - ], - [ - [ - 4896, - 4934 - ], - "valid" - ], - [ - [ - 4935, - 4935 - ], - "valid" - ], - [ - [ - 4936, - 4954 - ], - "valid" - ], - [ - [ - 4955, - 4956 - ], - "disallowed" - ], - [ - [ - 4957, - 4958 - ], - "valid" - ], - [ - [ - 4959, - 4959 - ], - "valid" - ], - [ - [ - 4960, - 4960 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4961, - 4988 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 4989, - 4991 - ], - "disallowed" - ], - [ - [ - 4992, - 5007 - ], - "valid" - ], - [ - [ - 5008, - 5017 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5018, - 5023 - ], - "disallowed" - ], - [ - [ - 5024, - 5108 - ], - "valid" - ], - [ - [ - 5109, - 5109 - ], - "valid" - ], - [ - [ - 5110, - 5111 - ], - "disallowed" - ], - [ - [ - 5112, - 5112 - ], - "mapped", - [ - 5104 - ] - ], - [ - [ - 5113, - 5113 - ], - "mapped", - [ - 5105 - ] - ], - [ - [ - 5114, - 5114 - ], - "mapped", - [ - 5106 - ] - ], - [ - [ - 5115, - 5115 - ], - "mapped", - [ - 5107 - ] - ], - [ - [ - 5116, - 5116 - ], - "mapped", - [ - 5108 - ] - ], - [ - [ - 5117, - 5117 - ], - "mapped", - [ - 5109 - ] - ], - [ - [ - 5118, - 5119 - ], - "disallowed" - ], - [ - [ - 5120, - 5120 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5121, - 5740 - ], - "valid" - ], - [ - [ - 5741, - 5742 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5743, - 5750 - ], - "valid" - ], - [ - [ - 5751, - 5759 - ], - "valid" - ], - [ - [ - 5760, - 5760 - ], - "disallowed" - ], - [ - [ - 5761, - 5786 - ], - "valid" - ], - [ - [ - 5787, - 5788 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5789, - 5791 - ], - "disallowed" - ], - [ - [ - 5792, - 5866 - ], - "valid" - ], - [ - [ - 5867, - 5872 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5873, - 5880 - ], - "valid" - ], - [ - [ - 5881, - 5887 - ], - "disallowed" - ], - [ - [ - 5888, - 5900 - ], - "valid" - ], - [ - [ - 5901, - 5901 - ], - "disallowed" - ], - [ - [ - 5902, - 5908 - ], - "valid" - ], - [ - [ - 5909, - 5919 - ], - "disallowed" - ], - [ - [ - 5920, - 5940 - ], - "valid" - ], - [ - [ - 5941, - 5942 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 5943, - 5951 - ], - "disallowed" - ], - [ - [ - 5952, - 5971 - ], - "valid" - ], - [ - [ - 5972, - 5983 - ], - "disallowed" - ], - [ - [ - 5984, - 5996 - ], - "valid" - ], - [ - [ - 5997, - 5997 - ], - "disallowed" - ], - [ - [ - 5998, - 6000 - ], - "valid" - ], - [ - [ - 6001, - 6001 - ], - "disallowed" - ], - [ - [ - 6002, - 6003 - ], - "valid" - ], - [ - [ - 6004, - 6015 - ], - "disallowed" - ], - [ - [ - 6016, - 6067 - ], - "valid" - ], - [ - [ - 6068, - 6069 - ], - "disallowed" - ], - [ - [ - 6070, - 6099 - ], - "valid" - ], - [ - [ - 6100, - 6102 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6103, - 6103 - ], - "valid" - ], - [ - [ - 6104, - 6107 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6108, - 6108 - ], - "valid" - ], - [ - [ - 6109, - 6109 - ], - "valid" - ], - [ - [ - 6110, - 6111 - ], - "disallowed" - ], - [ - [ - 6112, - 6121 - ], - "valid" - ], - [ - [ - 6122, - 6127 - ], - "disallowed" - ], - [ - [ - 6128, - 6137 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6138, - 6143 - ], - "disallowed" - ], - [ - [ - 6144, - 6149 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6150, - 6150 - ], - "disallowed" - ], - [ - [ - 6151, - 6154 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6155, - 6157 - ], - "ignored" - ], - [ - [ - 6158, - 6158 - ], - "disallowed" - ], - [ - [ - 6159, - 6159 - ], - "disallowed" - ], - [ - [ - 6160, - 6169 - ], - "valid" - ], - [ - [ - 6170, - 6175 - ], - "disallowed" - ], - [ - [ - 6176, - 6263 - ], - "valid" - ], - [ - [ - 6264, - 6271 - ], - "disallowed" - ], - [ - [ - 6272, - 6313 - ], - "valid" - ], - [ - [ - 6314, - 6314 - ], - "valid" - ], - [ - [ - 6315, - 6319 - ], - "disallowed" - ], - [ - [ - 6320, - 6389 - ], - "valid" - ], - [ - [ - 6390, - 6399 - ], - "disallowed" - ], - [ - [ - 6400, - 6428 - ], - "valid" - ], - [ - [ - 6429, - 6430 - ], - "valid" - ], - [ - [ - 6431, - 6431 - ], - "disallowed" - ], - [ - [ - 6432, - 6443 - ], - "valid" - ], - [ - [ - 6444, - 6447 - ], - "disallowed" - ], - [ - [ - 6448, - 6459 - ], - "valid" - ], - [ - [ - 6460, - 6463 - ], - "disallowed" - ], - [ - [ - 6464, - 6464 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6465, - 6467 - ], - "disallowed" - ], - [ - [ - 6468, - 6469 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6470, - 6509 - ], - "valid" - ], - [ - [ - 6510, - 6511 - ], - "disallowed" - ], - [ - [ - 6512, - 6516 - ], - "valid" - ], - [ - [ - 6517, - 6527 - ], - "disallowed" - ], - [ - [ - 6528, - 6569 - ], - "valid" - ], - [ - [ - 6570, - 6571 - ], - "valid" - ], - [ - [ - 6572, - 6575 - ], - "disallowed" - ], - [ - [ - 6576, - 6601 - ], - "valid" - ], - [ - [ - 6602, - 6607 - ], - "disallowed" - ], - [ - [ - 6608, - 6617 - ], - "valid" - ], - [ - [ - 6618, - 6618 - ], - "valid", - [ - ], - "XV8" - ], - [ - [ - 6619, - 6621 - ], - "disallowed" - ], - [ - [ - 6622, - 6623 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6624, - 6655 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6656, - 6683 - ], - "valid" - ], - [ - [ - 6684, - 6685 - ], - "disallowed" - ], - [ - [ - 6686, - 6687 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6688, - 6750 - ], - "valid" - ], - [ - [ - 6751, - 6751 - ], - "disallowed" - ], - [ - [ - 6752, - 6780 - ], - "valid" - ], - [ - [ - 6781, - 6782 - ], - "disallowed" - ], - [ - [ - 6783, - 6793 - ], - "valid" - ], - [ - [ - 6794, - 6799 - ], - "disallowed" - ], - [ - [ - 6800, - 6809 - ], - "valid" - ], - [ - [ - 6810, - 6815 - ], - "disallowed" - ], - [ - [ - 6816, - 6822 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6823, - 6823 - ], - "valid" - ], - [ - [ - 6824, - 6829 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6830, - 6831 - ], - "disallowed" - ], - [ - [ - 6832, - 6845 - ], - "valid" - ], - [ - [ - 6846, - 6846 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 6847, - 6911 - ], - "disallowed" - ], - [ - [ - 6912, - 6987 - ], - "valid" - ], - [ - [ - 6988, - 6991 - ], - "disallowed" - ], - [ - [ - 6992, - 7001 - ], - "valid" - ], - [ - [ - 7002, - 7018 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7019, - 7027 - ], - "valid" - ], - [ - [ - 7028, - 7036 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7037, - 7039 - ], - "disallowed" - ], - [ - [ - 7040, - 7082 - ], - "valid" - ], - [ - [ - 7083, - 7085 - ], - "valid" - ], - [ - [ - 7086, - 7097 - ], - "valid" - ], - [ - [ - 7098, - 7103 - ], - "valid" - ], - [ - [ - 7104, - 7155 - ], - "valid" - ], - [ - [ - 7156, - 7163 - ], - "disallowed" - ], - [ - [ - 7164, - 7167 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7168, - 7223 - ], - "valid" - ], - [ - [ - 7224, - 7226 - ], - "disallowed" - ], - [ - [ - 7227, - 7231 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7232, - 7241 - ], - "valid" - ], - [ - [ - 7242, - 7244 - ], - "disallowed" - ], - [ - [ - 7245, - 7293 - ], - "valid" - ], - [ - [ - 7294, - 7295 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7296, - 7359 - ], - "disallowed" - ], - [ - [ - 7360, - 7367 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7368, - 7375 - ], - "disallowed" - ], - [ - [ - 7376, - 7378 - ], - "valid" - ], - [ - [ - 7379, - 7379 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 7380, - 7410 - ], - "valid" - ], - [ - [ - 7411, - 7414 - ], - "valid" - ], - [ - [ - 7415, - 7415 - ], - "disallowed" - ], - [ - [ - 7416, - 7417 - ], - "valid" - ], - [ - [ - 7418, - 7423 - ], - "disallowed" - ], - [ - [ - 7424, - 7467 - ], - "valid" - ], - [ - [ - 7468, - 7468 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 7469, - 7469 - ], - "mapped", - [ - 230 - ] - ], - [ - [ - 7470, - 7470 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 7471, - 7471 - ], - "valid" - ], - [ - [ - 7472, - 7472 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 7473, - 7473 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 7474, - 7474 - ], - "mapped", - [ - 477 - ] - ], - [ - [ - 7475, - 7475 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 7476, - 7476 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 7477, - 7477 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 7478, - 7478 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 7479, - 7479 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 7480, - 7480 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 7481, - 7481 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 7482, - 7482 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 7483, - 7483 - ], - "valid" - ], - [ - [ - 7484, - 7484 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 7485, - 7485 - ], - "mapped", - [ - 547 - ] - ], - [ - [ - 7486, - 7486 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 7487, - 7487 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 7488, - 7488 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 7489, - 7489 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 7490, - 7490 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 7491, - 7491 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 7492, - 7492 - ], - "mapped", - [ - 592 - ] - ], - [ - [ - 7493, - 7493 - ], - "mapped", - [ - 593 - ] - ], - [ - [ - 7494, - 7494 - ], - "mapped", - [ - 7426 - ] - ], - [ - [ - 7495, - 7495 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 7496, - 7496 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 7497, - 7497 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 7498, - 7498 - ], - "mapped", - [ - 601 - ] - ], - [ - [ - 7499, - 7499 - ], - "mapped", - [ - 603 - ] - ], - [ - [ - 7500, - 7500 - ], - "mapped", - [ - 604 - ] - ], - [ - [ - 7501, - 7501 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 7502, - 7502 - ], - "valid" - ], - [ - [ - 7503, - 7503 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 7504, - 7504 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 7505, - 7505 - ], - "mapped", - [ - 331 - ] - ], - [ - [ - 7506, - 7506 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 7507, - 7507 - ], - "mapped", - [ - 596 - ] - ], - [ - [ - 7508, - 7508 - ], - "mapped", - [ - 7446 - ] - ], - [ - [ - 7509, - 7509 - ], - "mapped", - [ - 7447 - ] - ], - [ - [ - 7510, - 7510 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 7511, - 7511 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 7512, - 7512 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 7513, - 7513 - ], - "mapped", - [ - 7453 - ] - ], - [ - [ - 7514, - 7514 - ], - "mapped", - [ - 623 - ] - ], - [ - [ - 7515, - 7515 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 7516, - 7516 - ], - "mapped", - [ - 7461 - ] - ], - [ - [ - 7517, - 7517 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 7518, - 7518 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 7519, - 7519 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 7520, - 7520 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 7521, - 7521 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 7522, - 7522 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 7523, - 7523 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 7524, - 7524 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 7525, - 7525 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 7526, - 7526 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 7527, - 7527 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 7528, - 7528 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 7529, - 7529 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 7530, - 7530 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 7531, - 7531 - ], - "valid" - ], - [ - [ - 7532, - 7543 - ], - "valid" - ], - [ - [ - 7544, - 7544 - ], - "mapped", - [ - 1085 - ] - ], - [ - [ - 7545, - 7578 - ], - "valid" - ], - [ - [ - 7579, - 7579 - ], - "mapped", - [ - 594 - ] - ], - [ - [ - 7580, - 7580 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 7581, - 7581 - ], - "mapped", - [ - 597 - ] - ], - [ - [ - 7582, - 7582 - ], - "mapped", - [ - 240 - ] - ], - [ - [ - 7583, - 7583 - ], - "mapped", - [ - 604 - ] - ], - [ - [ - 7584, - 7584 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 7585, - 7585 - ], - "mapped", - [ - 607 - ] - ], - [ - [ - 7586, - 7586 - ], - "mapped", - [ - 609 - ] - ], - [ - [ - 7587, - 7587 - ], - "mapped", - [ - 613 - ] - ], - [ - [ - 7588, - 7588 - ], - "mapped", - [ - 616 - ] - ], - [ - [ - 7589, - 7589 - ], - "mapped", - [ - 617 - ] - ], - [ - [ - 7590, - 7590 - ], - "mapped", - [ - 618 - ] - ], - [ - [ - 7591, - 7591 - ], - "mapped", - [ - 7547 - ] - ], - [ - [ - 7592, - 7592 - ], - "mapped", - [ - 669 - ] - ], - [ - [ - 7593, - 7593 - ], - "mapped", - [ - 621 - ] - ], - [ - [ - 7594, - 7594 - ], - "mapped", - [ - 7557 - ] - ], - [ - [ - 7595, - 7595 - ], - "mapped", - [ - 671 - ] - ], - [ - [ - 7596, - 7596 - ], - "mapped", - [ - 625 - ] - ], - [ - [ - 7597, - 7597 - ], - "mapped", - [ - 624 - ] - ], - [ - [ - 7598, - 7598 - ], - "mapped", - [ - 626 - ] - ], - [ - [ - 7599, - 7599 - ], - "mapped", - [ - 627 - ] - ], - [ - [ - 7600, - 7600 - ], - "mapped", - [ - 628 - ] - ], - [ - [ - 7601, - 7601 - ], - "mapped", - [ - 629 - ] - ], - [ - [ - 7602, - 7602 - ], - "mapped", - [ - 632 - ] - ], - [ - [ - 7603, - 7603 - ], - "mapped", - [ - 642 - ] - ], - [ - [ - 7604, - 7604 - ], - "mapped", - [ - 643 - ] - ], - [ - [ - 7605, - 7605 - ], - "mapped", - [ - 427 - ] - ], - [ - [ - 7606, - 7606 - ], - "mapped", - [ - 649 - ] - ], - [ - [ - 7607, - 7607 - ], - "mapped", - [ - 650 - ] - ], - [ - [ - 7608, - 7608 - ], - "mapped", - [ - 7452 - ] - ], - [ - [ - 7609, - 7609 - ], - "mapped", - [ - 651 - ] - ], - [ - [ - 7610, - 7610 - ], - "mapped", - [ - 652 - ] - ], - [ - [ - 7611, - 7611 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 7612, - 7612 - ], - "mapped", - [ - 656 - ] - ], - [ - [ - 7613, - 7613 - ], - "mapped", - [ - 657 - ] - ], - [ - [ - 7614, - 7614 - ], - "mapped", - [ - 658 - ] - ], - [ - [ - 7615, - 7615 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 7616, - 7619 - ], - "valid" - ], - [ - [ - 7620, - 7626 - ], - "valid" - ], - [ - [ - 7627, - 7654 - ], - "valid" - ], - [ - [ - 7655, - 7669 - ], - "valid" - ], - [ - [ - 7670, - 7675 - ], - "disallowed" - ], - [ - [ - 7676, - 7676 - ], - "valid" - ], - [ - [ - 7677, - 7677 - ], - "valid" - ], - [ - [ - 7678, - 7679 - ], - "valid" - ], - [ - [ - 7680, - 7680 - ], - "mapped", - [ - 7681 - ] - ], - [ - [ - 7681, - 7681 - ], - "valid" - ], - [ - [ - 7682, - 7682 - ], - "mapped", - [ - 7683 - ] - ], - [ - [ - 7683, - 7683 - ], - "valid" - ], - [ - [ - 7684, - 7684 - ], - "mapped", - [ - 7685 - ] - ], - [ - [ - 7685, - 7685 - ], - "valid" - ], - [ - [ - 7686, - 7686 - ], - "mapped", - [ - 7687 - ] - ], - [ - [ - 7687, - 7687 - ], - "valid" - ], - [ - [ - 7688, - 7688 - ], - "mapped", - [ - 7689 - ] - ], - [ - [ - 7689, - 7689 - ], - "valid" - ], - [ - [ - 7690, - 7690 - ], - "mapped", - [ - 7691 - ] - ], - [ - [ - 7691, - 7691 - ], - "valid" - ], - [ - [ - 7692, - 7692 - ], - "mapped", - [ - 7693 - ] - ], - [ - [ - 7693, - 7693 - ], - "valid" - ], - [ - [ - 7694, - 7694 - ], - "mapped", - [ - 7695 - ] - ], - [ - [ - 7695, - 7695 - ], - "valid" - ], - [ - [ - 7696, - 7696 - ], - "mapped", - [ - 7697 - ] - ], - [ - [ - 7697, - 7697 - ], - "valid" - ], - [ - [ - 7698, - 7698 - ], - "mapped", - [ - 7699 - ] - ], - [ - [ - 7699, - 7699 - ], - "valid" - ], - [ - [ - 7700, - 7700 - ], - "mapped", - [ - 7701 - ] - ], - [ - [ - 7701, - 7701 - ], - "valid" - ], - [ - [ - 7702, - 7702 - ], - "mapped", - [ - 7703 - ] - ], - [ - [ - 7703, - 7703 - ], - "valid" - ], - [ - [ - 7704, - 7704 - ], - "mapped", - [ - 7705 - ] - ], - [ - [ - 7705, - 7705 - ], - "valid" - ], - [ - [ - 7706, - 7706 - ], - "mapped", - [ - 7707 - ] - ], - [ - [ - 7707, - 7707 - ], - "valid" - ], - [ - [ - 7708, - 7708 - ], - "mapped", - [ - 7709 - ] - ], - [ - [ - 7709, - 7709 - ], - "valid" - ], - [ - [ - 7710, - 7710 - ], - "mapped", - [ - 7711 - ] - ], - [ - [ - 7711, - 7711 - ], - "valid" - ], - [ - [ - 7712, - 7712 - ], - "mapped", - [ - 7713 - ] - ], - [ - [ - 7713, - 7713 - ], - "valid" - ], - [ - [ - 7714, - 7714 - ], - "mapped", - [ - 7715 - ] - ], - [ - [ - 7715, - 7715 - ], - "valid" - ], - [ - [ - 7716, - 7716 - ], - "mapped", - [ - 7717 - ] - ], - [ - [ - 7717, - 7717 - ], - "valid" - ], - [ - [ - 7718, - 7718 - ], - "mapped", - [ - 7719 - ] - ], - [ - [ - 7719, - 7719 - ], - "valid" - ], - [ - [ - 7720, - 7720 - ], - "mapped", - [ - 7721 - ] - ], - [ - [ - 7721, - 7721 - ], - "valid" - ], - [ - [ - 7722, - 7722 - ], - "mapped", - [ - 7723 - ] - ], - [ - [ - 7723, - 7723 - ], - "valid" - ], - [ - [ - 7724, - 7724 - ], - "mapped", - [ - 7725 - ] - ], - [ - [ - 7725, - 7725 - ], - "valid" - ], - [ - [ - 7726, - 7726 - ], - "mapped", - [ - 7727 - ] - ], - [ - [ - 7727, - 7727 - ], - "valid" - ], - [ - [ - 7728, - 7728 - ], - "mapped", - [ - 7729 - ] - ], - [ - [ - 7729, - 7729 - ], - "valid" - ], - [ - [ - 7730, - 7730 - ], - "mapped", - [ - 7731 - ] - ], - [ - [ - 7731, - 7731 - ], - "valid" - ], - [ - [ - 7732, - 7732 - ], - "mapped", - [ - 7733 - ] - ], - [ - [ - 7733, - 7733 - ], - "valid" - ], - [ - [ - 7734, - 7734 - ], - "mapped", - [ - 7735 - ] - ], - [ - [ - 7735, - 7735 - ], - "valid" - ], - [ - [ - 7736, - 7736 - ], - "mapped", - [ - 7737 - ] - ], - [ - [ - 7737, - 7737 - ], - "valid" - ], - [ - [ - 7738, - 7738 - ], - "mapped", - [ - 7739 - ] - ], - [ - [ - 7739, - 7739 - ], - "valid" - ], - [ - [ - 7740, - 7740 - ], - "mapped", - [ - 7741 - ] - ], - [ - [ - 7741, - 7741 - ], - "valid" - ], - [ - [ - 7742, - 7742 - ], - "mapped", - [ - 7743 - ] - ], - [ - [ - 7743, - 7743 - ], - "valid" - ], - [ - [ - 7744, - 7744 - ], - "mapped", - [ - 7745 - ] - ], - [ - [ - 7745, - 7745 - ], - "valid" - ], - [ - [ - 7746, - 7746 - ], - "mapped", - [ - 7747 - ] - ], - [ - [ - 7747, - 7747 - ], - "valid" - ], - [ - [ - 7748, - 7748 - ], - "mapped", - [ - 7749 - ] - ], - [ - [ - 7749, - 7749 - ], - "valid" - ], - [ - [ - 7750, - 7750 - ], - "mapped", - [ - 7751 - ] - ], - [ - [ - 7751, - 7751 - ], - "valid" - ], - [ - [ - 7752, - 7752 - ], - "mapped", - [ - 7753 - ] - ], - [ - [ - 7753, - 7753 - ], - "valid" - ], - [ - [ - 7754, - 7754 - ], - "mapped", - [ - 7755 - ] - ], - [ - [ - 7755, - 7755 - ], - "valid" - ], - [ - [ - 7756, - 7756 - ], - "mapped", - [ - 7757 - ] - ], - [ - [ - 7757, - 7757 - ], - "valid" - ], - [ - [ - 7758, - 7758 - ], - "mapped", - [ - 7759 - ] - ], - [ - [ - 7759, - 7759 - ], - "valid" - ], - [ - [ - 7760, - 7760 - ], - "mapped", - [ - 7761 - ] - ], - [ - [ - 7761, - 7761 - ], - "valid" - ], - [ - [ - 7762, - 7762 - ], - "mapped", - [ - 7763 - ] - ], - [ - [ - 7763, - 7763 - ], - "valid" - ], - [ - [ - 7764, - 7764 - ], - "mapped", - [ - 7765 - ] - ], - [ - [ - 7765, - 7765 - ], - "valid" - ], - [ - [ - 7766, - 7766 - ], - "mapped", - [ - 7767 - ] - ], - [ - [ - 7767, - 7767 - ], - "valid" - ], - [ - [ - 7768, - 7768 - ], - "mapped", - [ - 7769 - ] - ], - [ - [ - 7769, - 7769 - ], - "valid" - ], - [ - [ - 7770, - 7770 - ], - "mapped", - [ - 7771 - ] - ], - [ - [ - 7771, - 7771 - ], - "valid" - ], - [ - [ - 7772, - 7772 - ], - "mapped", - [ - 7773 - ] - ], - [ - [ - 7773, - 7773 - ], - "valid" - ], - [ - [ - 7774, - 7774 - ], - "mapped", - [ - 7775 - ] - ], - [ - [ - 7775, - 7775 - ], - "valid" - ], - [ - [ - 7776, - 7776 - ], - "mapped", - [ - 7777 - ] - ], - [ - [ - 7777, - 7777 - ], - "valid" - ], - [ - [ - 7778, - 7778 - ], - "mapped", - [ - 7779 - ] - ], - [ - [ - 7779, - 7779 - ], - "valid" - ], - [ - [ - 7780, - 7780 - ], - "mapped", - [ - 7781 - ] - ], - [ - [ - 7781, - 7781 - ], - "valid" - ], - [ - [ - 7782, - 7782 - ], - "mapped", - [ - 7783 - ] - ], - [ - [ - 7783, - 7783 - ], - "valid" - ], - [ - [ - 7784, - 7784 - ], - "mapped", - [ - 7785 - ] - ], - [ - [ - 7785, - 7785 - ], - "valid" - ], - [ - [ - 7786, - 7786 - ], - "mapped", - [ - 7787 - ] - ], - [ - [ - 7787, - 7787 - ], - "valid" - ], - [ - [ - 7788, - 7788 - ], - "mapped", - [ - 7789 - ] - ], - [ - [ - 7789, - 7789 - ], - "valid" - ], - [ - [ - 7790, - 7790 - ], - "mapped", - [ - 7791 - ] - ], - [ - [ - 7791, - 7791 - ], - "valid" - ], - [ - [ - 7792, - 7792 - ], - "mapped", - [ - 7793 - ] - ], - [ - [ - 7793, - 7793 - ], - "valid" - ], - [ - [ - 7794, - 7794 - ], - "mapped", - [ - 7795 - ] - ], - [ - [ - 7795, - 7795 - ], - "valid" - ], - [ - [ - 7796, - 7796 - ], - "mapped", - [ - 7797 - ] - ], - [ - [ - 7797, - 7797 - ], - "valid" - ], - [ - [ - 7798, - 7798 - ], - "mapped", - [ - 7799 - ] - ], - [ - [ - 7799, - 7799 - ], - "valid" - ], - [ - [ - 7800, - 7800 - ], - "mapped", - [ - 7801 - ] - ], - [ - [ - 7801, - 7801 - ], - "valid" - ], - [ - [ - 7802, - 7802 - ], - "mapped", - [ - 7803 - ] - ], - [ - [ - 7803, - 7803 - ], - "valid" - ], - [ - [ - 7804, - 7804 - ], - "mapped", - [ - 7805 - ] - ], - [ - [ - 7805, - 7805 - ], - "valid" - ], - [ - [ - 7806, - 7806 - ], - "mapped", - [ - 7807 - ] - ], - [ - [ - 7807, - 7807 - ], - "valid" - ], - [ - [ - 7808, - 7808 - ], - "mapped", - [ - 7809 - ] - ], - [ - [ - 7809, - 7809 - ], - "valid" - ], - [ - [ - 7810, - 7810 - ], - "mapped", - [ - 7811 - ] - ], - [ - [ - 7811, - 7811 - ], - "valid" - ], - [ - [ - 7812, - 7812 - ], - "mapped", - [ - 7813 - ] - ], - [ - [ - 7813, - 7813 - ], - "valid" - ], - [ - [ - 7814, - 7814 - ], - "mapped", - [ - 7815 - ] - ], - [ - [ - 7815, - 7815 - ], - "valid" - ], - [ - [ - 7816, - 7816 - ], - "mapped", - [ - 7817 - ] - ], - [ - [ - 7817, - 7817 - ], - "valid" - ], - [ - [ - 7818, - 7818 - ], - "mapped", - [ - 7819 - ] - ], - [ - [ - 7819, - 7819 - ], - "valid" - ], - [ - [ - 7820, - 7820 - ], - "mapped", - [ - 7821 - ] - ], - [ - [ - 7821, - 7821 - ], - "valid" - ], - [ - [ - 7822, - 7822 - ], - "mapped", - [ - 7823 - ] - ], - [ - [ - 7823, - 7823 - ], - "valid" - ], - [ - [ - 7824, - 7824 - ], - "mapped", - [ - 7825 - ] - ], - [ - [ - 7825, - 7825 - ], - "valid" - ], - [ - [ - 7826, - 7826 - ], - "mapped", - [ - 7827 - ] - ], - [ - [ - 7827, - 7827 - ], - "valid" - ], - [ - [ - 7828, - 7828 - ], - "mapped", - [ - 7829 - ] - ], - [ - [ - 7829, - 7833 - ], - "valid" - ], - [ - [ - 7834, - 7834 - ], - "mapped", - [ - 97, - 702 - ] - ], - [ - [ - 7835, - 7835 - ], - "mapped", - [ - 7777 - ] - ], - [ - [ - 7836, - 7837 - ], - "valid" - ], - [ - [ - 7838, - 7838 - ], - "mapped", - [ - 115, - 115 - ] - ], - [ - [ - 7839, - 7839 - ], - "valid" - ], - [ - [ - 7840, - 7840 - ], - "mapped", - [ - 7841 - ] - ], - [ - [ - 7841, - 7841 - ], - "valid" - ], - [ - [ - 7842, - 7842 - ], - "mapped", - [ - 7843 - ] - ], - [ - [ - 7843, - 7843 - ], - "valid" - ], - [ - [ - 7844, - 7844 - ], - "mapped", - [ - 7845 - ] - ], - [ - [ - 7845, - 7845 - ], - "valid" - ], - [ - [ - 7846, - 7846 - ], - "mapped", - [ - 7847 - ] - ], - [ - [ - 7847, - 7847 - ], - "valid" - ], - [ - [ - 7848, - 7848 - ], - "mapped", - [ - 7849 - ] - ], - [ - [ - 7849, - 7849 - ], - "valid" - ], - [ - [ - 7850, - 7850 - ], - "mapped", - [ - 7851 - ] - ], - [ - [ - 7851, - 7851 - ], - "valid" - ], - [ - [ - 7852, - 7852 - ], - "mapped", - [ - 7853 - ] - ], - [ - [ - 7853, - 7853 - ], - "valid" - ], - [ - [ - 7854, - 7854 - ], - "mapped", - [ - 7855 - ] - ], - [ - [ - 7855, - 7855 - ], - "valid" - ], - [ - [ - 7856, - 7856 - ], - "mapped", - [ - 7857 - ] - ], - [ - [ - 7857, - 7857 - ], - "valid" - ], - [ - [ - 7858, - 7858 - ], - "mapped", - [ - 7859 - ] - ], - [ - [ - 7859, - 7859 - ], - "valid" - ], - [ - [ - 7860, - 7860 - ], - "mapped", - [ - 7861 - ] - ], - [ - [ - 7861, - 7861 - ], - "valid" - ], - [ - [ - 7862, - 7862 - ], - "mapped", - [ - 7863 - ] - ], - [ - [ - 7863, - 7863 - ], - "valid" - ], - [ - [ - 7864, - 7864 - ], - "mapped", - [ - 7865 - ] - ], - [ - [ - 7865, - 7865 - ], - "valid" - ], - [ - [ - 7866, - 7866 - ], - "mapped", - [ - 7867 - ] - ], - [ - [ - 7867, - 7867 - ], - "valid" - ], - [ - [ - 7868, - 7868 - ], - "mapped", - [ - 7869 - ] - ], - [ - [ - 7869, - 7869 - ], - "valid" - ], - [ - [ - 7870, - 7870 - ], - "mapped", - [ - 7871 - ] - ], - [ - [ - 7871, - 7871 - ], - "valid" - ], - [ - [ - 7872, - 7872 - ], - "mapped", - [ - 7873 - ] - ], - [ - [ - 7873, - 7873 - ], - "valid" - ], - [ - [ - 7874, - 7874 - ], - "mapped", - [ - 7875 - ] - ], - [ - [ - 7875, - 7875 - ], - "valid" - ], - [ - [ - 7876, - 7876 - ], - "mapped", - [ - 7877 - ] - ], - [ - [ - 7877, - 7877 - ], - "valid" - ], - [ - [ - 7878, - 7878 - ], - "mapped", - [ - 7879 - ] - ], - [ - [ - 7879, - 7879 - ], - "valid" - ], - [ - [ - 7880, - 7880 - ], - "mapped", - [ - 7881 - ] - ], - [ - [ - 7881, - 7881 - ], - "valid" - ], - [ - [ - 7882, - 7882 - ], - "mapped", - [ - 7883 - ] - ], - [ - [ - 7883, - 7883 - ], - "valid" - ], - [ - [ - 7884, - 7884 - ], - "mapped", - [ - 7885 - ] - ], - [ - [ - 7885, - 7885 - ], - "valid" - ], - [ - [ - 7886, - 7886 - ], - "mapped", - [ - 7887 - ] - ], - [ - [ - 7887, - 7887 - ], - "valid" - ], - [ - [ - 7888, - 7888 - ], - "mapped", - [ - 7889 - ] - ], - [ - [ - 7889, - 7889 - ], - "valid" - ], - [ - [ - 7890, - 7890 - ], - "mapped", - [ - 7891 - ] - ], - [ - [ - 7891, - 7891 - ], - "valid" - ], - [ - [ - 7892, - 7892 - ], - "mapped", - [ - 7893 - ] - ], - [ - [ - 7893, - 7893 - ], - "valid" - ], - [ - [ - 7894, - 7894 - ], - "mapped", - [ - 7895 - ] - ], - [ - [ - 7895, - 7895 - ], - "valid" - ], - [ - [ - 7896, - 7896 - ], - "mapped", - [ - 7897 - ] - ], - [ - [ - 7897, - 7897 - ], - "valid" - ], - [ - [ - 7898, - 7898 - ], - "mapped", - [ - 7899 - ] - ], - [ - [ - 7899, - 7899 - ], - "valid" - ], - [ - [ - 7900, - 7900 - ], - "mapped", - [ - 7901 - ] - ], - [ - [ - 7901, - 7901 - ], - "valid" - ], - [ - [ - 7902, - 7902 - ], - "mapped", - [ - 7903 - ] - ], - [ - [ - 7903, - 7903 - ], - "valid" - ], - [ - [ - 7904, - 7904 - ], - "mapped", - [ - 7905 - ] - ], - [ - [ - 7905, - 7905 - ], - "valid" - ], - [ - [ - 7906, - 7906 - ], - "mapped", - [ - 7907 - ] - ], - [ - [ - 7907, - 7907 - ], - "valid" - ], - [ - [ - 7908, - 7908 - ], - "mapped", - [ - 7909 - ] - ], - [ - [ - 7909, - 7909 - ], - "valid" - ], - [ - [ - 7910, - 7910 - ], - "mapped", - [ - 7911 - ] - ], - [ - [ - 7911, - 7911 - ], - "valid" - ], - [ - [ - 7912, - 7912 - ], - "mapped", - [ - 7913 - ] - ], - [ - [ - 7913, - 7913 - ], - "valid" - ], - [ - [ - 7914, - 7914 - ], - "mapped", - [ - 7915 - ] - ], - [ - [ - 7915, - 7915 - ], - "valid" - ], - [ - [ - 7916, - 7916 - ], - "mapped", - [ - 7917 - ] - ], - [ - [ - 7917, - 7917 - ], - "valid" - ], - [ - [ - 7918, - 7918 - ], - "mapped", - [ - 7919 - ] - ], - [ - [ - 7919, - 7919 - ], - "valid" - ], - [ - [ - 7920, - 7920 - ], - "mapped", - [ - 7921 - ] - ], - [ - [ - 7921, - 7921 - ], - "valid" - ], - [ - [ - 7922, - 7922 - ], - "mapped", - [ - 7923 - ] - ], - [ - [ - 7923, - 7923 - ], - "valid" - ], - [ - [ - 7924, - 7924 - ], - "mapped", - [ - 7925 - ] - ], - [ - [ - 7925, - 7925 - ], - "valid" - ], - [ - [ - 7926, - 7926 - ], - "mapped", - [ - 7927 - ] - ], - [ - [ - 7927, - 7927 - ], - "valid" - ], - [ - [ - 7928, - 7928 - ], - "mapped", - [ - 7929 - ] - ], - [ - [ - 7929, - 7929 - ], - "valid" - ], - [ - [ - 7930, - 7930 - ], - "mapped", - [ - 7931 - ] - ], - [ - [ - 7931, - 7931 - ], - "valid" - ], - [ - [ - 7932, - 7932 - ], - "mapped", - [ - 7933 - ] - ], - [ - [ - 7933, - 7933 - ], - "valid" - ], - [ - [ - 7934, - 7934 - ], - "mapped", - [ - 7935 - ] - ], - [ - [ - 7935, - 7935 - ], - "valid" - ], - [ - [ - 7936, - 7943 - ], - "valid" - ], - [ - [ - 7944, - 7944 - ], - "mapped", - [ - 7936 - ] - ], - [ - [ - 7945, - 7945 - ], - "mapped", - [ - 7937 - ] - ], - [ - [ - 7946, - 7946 - ], - "mapped", - [ - 7938 - ] - ], - [ - [ - 7947, - 7947 - ], - "mapped", - [ - 7939 - ] - ], - [ - [ - 7948, - 7948 - ], - "mapped", - [ - 7940 - ] - ], - [ - [ - 7949, - 7949 - ], - "mapped", - [ - 7941 - ] - ], - [ - [ - 7950, - 7950 - ], - "mapped", - [ - 7942 - ] - ], - [ - [ - 7951, - 7951 - ], - "mapped", - [ - 7943 - ] - ], - [ - [ - 7952, - 7957 - ], - "valid" - ], - [ - [ - 7958, - 7959 - ], - "disallowed" - ], - [ - [ - 7960, - 7960 - ], - "mapped", - [ - 7952 - ] - ], - [ - [ - 7961, - 7961 - ], - "mapped", - [ - 7953 - ] - ], - [ - [ - 7962, - 7962 - ], - "mapped", - [ - 7954 - ] - ], - [ - [ - 7963, - 7963 - ], - "mapped", - [ - 7955 - ] - ], - [ - [ - 7964, - 7964 - ], - "mapped", - [ - 7956 - ] - ], - [ - [ - 7965, - 7965 - ], - "mapped", - [ - 7957 - ] - ], - [ - [ - 7966, - 7967 - ], - "disallowed" - ], - [ - [ - 7968, - 7975 - ], - "valid" - ], - [ - [ - 7976, - 7976 - ], - "mapped", - [ - 7968 - ] - ], - [ - [ - 7977, - 7977 - ], - "mapped", - [ - 7969 - ] - ], - [ - [ - 7978, - 7978 - ], - "mapped", - [ - 7970 - ] - ], - [ - [ - 7979, - 7979 - ], - "mapped", - [ - 7971 - ] - ], - [ - [ - 7980, - 7980 - ], - "mapped", - [ - 7972 - ] - ], - [ - [ - 7981, - 7981 - ], - "mapped", - [ - 7973 - ] - ], - [ - [ - 7982, - 7982 - ], - "mapped", - [ - 7974 - ] - ], - [ - [ - 7983, - 7983 - ], - "mapped", - [ - 7975 - ] - ], - [ - [ - 7984, - 7991 - ], - "valid" - ], - [ - [ - 7992, - 7992 - ], - "mapped", - [ - 7984 - ] - ], - [ - [ - 7993, - 7993 - ], - "mapped", - [ - 7985 - ] - ], - [ - [ - 7994, - 7994 - ], - "mapped", - [ - 7986 - ] - ], - [ - [ - 7995, - 7995 - ], - "mapped", - [ - 7987 - ] - ], - [ - [ - 7996, - 7996 - ], - "mapped", - [ - 7988 - ] - ], - [ - [ - 7997, - 7997 - ], - "mapped", - [ - 7989 - ] - ], - [ - [ - 7998, - 7998 - ], - "mapped", - [ - 7990 - ] - ], - [ - [ - 7999, - 7999 - ], - "mapped", - [ - 7991 - ] - ], - [ - [ - 8000, - 8005 - ], - "valid" - ], - [ - [ - 8006, - 8007 - ], - "disallowed" - ], - [ - [ - 8008, - 8008 - ], - "mapped", - [ - 8000 - ] - ], - [ - [ - 8009, - 8009 - ], - "mapped", - [ - 8001 - ] - ], - [ - [ - 8010, - 8010 - ], - "mapped", - [ - 8002 - ] - ], - [ - [ - 8011, - 8011 - ], - "mapped", - [ - 8003 - ] - ], - [ - [ - 8012, - 8012 - ], - "mapped", - [ - 8004 - ] - ], - [ - [ - 8013, - 8013 - ], - "mapped", - [ - 8005 - ] - ], - [ - [ - 8014, - 8015 - ], - "disallowed" - ], - [ - [ - 8016, - 8023 - ], - "valid" - ], - [ - [ - 8024, - 8024 - ], - "disallowed" - ], - [ - [ - 8025, - 8025 - ], - "mapped", - [ - 8017 - ] - ], - [ - [ - 8026, - 8026 - ], - "disallowed" - ], - [ - [ - 8027, - 8027 - ], - "mapped", - [ - 8019 - ] - ], - [ - [ - 8028, - 8028 - ], - "disallowed" - ], - [ - [ - 8029, - 8029 - ], - "mapped", - [ - 8021 - ] - ], - [ - [ - 8030, - 8030 - ], - "disallowed" - ], - [ - [ - 8031, - 8031 - ], - "mapped", - [ - 8023 - ] - ], - [ - [ - 8032, - 8039 - ], - "valid" - ], - [ - [ - 8040, - 8040 - ], - "mapped", - [ - 8032 - ] - ], - [ - [ - 8041, - 8041 - ], - "mapped", - [ - 8033 - ] - ], - [ - [ - 8042, - 8042 - ], - "mapped", - [ - 8034 - ] - ], - [ - [ - 8043, - 8043 - ], - "mapped", - [ - 8035 - ] - ], - [ - [ - 8044, - 8044 - ], - "mapped", - [ - 8036 - ] - ], - [ - [ - 8045, - 8045 - ], - "mapped", - [ - 8037 - ] - ], - [ - [ - 8046, - 8046 - ], - "mapped", - [ - 8038 - ] - ], - [ - [ - 8047, - 8047 - ], - "mapped", - [ - 8039 - ] - ], - [ - [ - 8048, - 8048 - ], - "valid" - ], - [ - [ - 8049, - 8049 - ], - "mapped", - [ - 940 - ] - ], - [ - [ - 8050, - 8050 - ], - "valid" - ], - [ - [ - 8051, - 8051 - ], - "mapped", - [ - 941 - ] - ], - [ - [ - 8052, - 8052 - ], - "valid" - ], - [ - [ - 8053, - 8053 - ], - "mapped", - [ - 942 - ] - ], - [ - [ - 8054, - 8054 - ], - "valid" - ], - [ - [ - 8055, - 8055 - ], - "mapped", - [ - 943 - ] - ], - [ - [ - 8056, - 8056 - ], - "valid" - ], - [ - [ - 8057, - 8057 - ], - "mapped", - [ - 972 - ] - ], - [ - [ - 8058, - 8058 - ], - "valid" - ], - [ - [ - 8059, - 8059 - ], - "mapped", - [ - 973 - ] - ], - [ - [ - 8060, - 8060 - ], - "valid" - ], - [ - [ - 8061, - 8061 - ], - "mapped", - [ - 974 - ] - ], - [ - [ - 8062, - 8063 - ], - "disallowed" - ], - [ - [ - 8064, - 8064 - ], - "mapped", - [ - 7936, - 953 - ] - ], - [ - [ - 8065, - 8065 - ], - "mapped", - [ - 7937, - 953 - ] - ], - [ - [ - 8066, - 8066 - ], - "mapped", - [ - 7938, - 953 - ] - ], - [ - [ - 8067, - 8067 - ], - "mapped", - [ - 7939, - 953 - ] - ], - [ - [ - 8068, - 8068 - ], - "mapped", - [ - 7940, - 953 - ] - ], - [ - [ - 8069, - 8069 - ], - "mapped", - [ - 7941, - 953 - ] - ], - [ - [ - 8070, - 8070 - ], - "mapped", - [ - 7942, - 953 - ] - ], - [ - [ - 8071, - 8071 - ], - "mapped", - [ - 7943, - 953 - ] - ], - [ - [ - 8072, - 8072 - ], - "mapped", - [ - 7936, - 953 - ] - ], - [ - [ - 8073, - 8073 - ], - "mapped", - [ - 7937, - 953 - ] - ], - [ - [ - 8074, - 8074 - ], - "mapped", - [ - 7938, - 953 - ] - ], - [ - [ - 8075, - 8075 - ], - "mapped", - [ - 7939, - 953 - ] - ], - [ - [ - 8076, - 8076 - ], - "mapped", - [ - 7940, - 953 - ] - ], - [ - [ - 8077, - 8077 - ], - "mapped", - [ - 7941, - 953 - ] - ], - [ - [ - 8078, - 8078 - ], - "mapped", - [ - 7942, - 953 - ] - ], - [ - [ - 8079, - 8079 - ], - "mapped", - [ - 7943, - 953 - ] - ], - [ - [ - 8080, - 8080 - ], - "mapped", - [ - 7968, - 953 - ] - ], - [ - [ - 8081, - 8081 - ], - "mapped", - [ - 7969, - 953 - ] - ], - [ - [ - 8082, - 8082 - ], - "mapped", - [ - 7970, - 953 - ] - ], - [ - [ - 8083, - 8083 - ], - "mapped", - [ - 7971, - 953 - ] - ], - [ - [ - 8084, - 8084 - ], - "mapped", - [ - 7972, - 953 - ] - ], - [ - [ - 8085, - 8085 - ], - "mapped", - [ - 7973, - 953 - ] - ], - [ - [ - 8086, - 8086 - ], - "mapped", - [ - 7974, - 953 - ] - ], - [ - [ - 8087, - 8087 - ], - "mapped", - [ - 7975, - 953 - ] - ], - [ - [ - 8088, - 8088 - ], - "mapped", - [ - 7968, - 953 - ] - ], - [ - [ - 8089, - 8089 - ], - "mapped", - [ - 7969, - 953 - ] - ], - [ - [ - 8090, - 8090 - ], - "mapped", - [ - 7970, - 953 - ] - ], - [ - [ - 8091, - 8091 - ], - "mapped", - [ - 7971, - 953 - ] - ], - [ - [ - 8092, - 8092 - ], - "mapped", - [ - 7972, - 953 - ] - ], - [ - [ - 8093, - 8093 - ], - "mapped", - [ - 7973, - 953 - ] - ], - [ - [ - 8094, - 8094 - ], - "mapped", - [ - 7974, - 953 - ] - ], - [ - [ - 8095, - 8095 - ], - "mapped", - [ - 7975, - 953 - ] - ], - [ - [ - 8096, - 8096 - ], - "mapped", - [ - 8032, - 953 - ] - ], - [ - [ - 8097, - 8097 - ], - "mapped", - [ - 8033, - 953 - ] - ], - [ - [ - 8098, - 8098 - ], - "mapped", - [ - 8034, - 953 - ] - ], - [ - [ - 8099, - 8099 - ], - "mapped", - [ - 8035, - 953 - ] - ], - [ - [ - 8100, - 8100 - ], - "mapped", - [ - 8036, - 953 - ] - ], - [ - [ - 8101, - 8101 - ], - "mapped", - [ - 8037, - 953 - ] - ], - [ - [ - 8102, - 8102 - ], - "mapped", - [ - 8038, - 953 - ] - ], - [ - [ - 8103, - 8103 - ], - "mapped", - [ - 8039, - 953 - ] - ], - [ - [ - 8104, - 8104 - ], - "mapped", - [ - 8032, - 953 - ] - ], - [ - [ - 8105, - 8105 - ], - "mapped", - [ - 8033, - 953 - ] - ], - [ - [ - 8106, - 8106 - ], - "mapped", - [ - 8034, - 953 - ] - ], - [ - [ - 8107, - 8107 - ], - "mapped", - [ - 8035, - 953 - ] - ], - [ - [ - 8108, - 8108 - ], - "mapped", - [ - 8036, - 953 - ] - ], - [ - [ - 8109, - 8109 - ], - "mapped", - [ - 8037, - 953 - ] - ], - [ - [ - 8110, - 8110 - ], - "mapped", - [ - 8038, - 953 - ] - ], - [ - [ - 8111, - 8111 - ], - "mapped", - [ - 8039, - 953 - ] - ], - [ - [ - 8112, - 8113 - ], - "valid" - ], - [ - [ - 8114, - 8114 - ], - "mapped", - [ - 8048, - 953 - ] - ], - [ - [ - 8115, - 8115 - ], - "mapped", - [ - 945, - 953 - ] - ], - [ - [ - 8116, - 8116 - ], - "mapped", - [ - 940, - 953 - ] - ], - [ - [ - 8117, - 8117 - ], - "disallowed" - ], - [ - [ - 8118, - 8118 - ], - "valid" - ], - [ - [ - 8119, - 8119 - ], - "mapped", - [ - 8118, - 953 - ] - ], - [ - [ - 8120, - 8120 - ], - "mapped", - [ - 8112 - ] - ], - [ - [ - 8121, - 8121 - ], - "mapped", - [ - 8113 - ] - ], - [ - [ - 8122, - 8122 - ], - "mapped", - [ - 8048 - ] - ], - [ - [ - 8123, - 8123 - ], - "mapped", - [ - 940 - ] - ], - [ - [ - 8124, - 8124 - ], - "mapped", - [ - 945, - 953 - ] - ], - [ - [ - 8125, - 8125 - ], - "disallowed_STD3_mapped", - [ - 32, - 787 - ] - ], - [ - [ - 8126, - 8126 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 8127, - 8127 - ], - "disallowed_STD3_mapped", - [ - 32, - 787 - ] - ], - [ - [ - 8128, - 8128 - ], - "disallowed_STD3_mapped", - [ - 32, - 834 - ] - ], - [ - [ - 8129, - 8129 - ], - "disallowed_STD3_mapped", - [ - 32, - 776, - 834 - ] - ], - [ - [ - 8130, - 8130 - ], - "mapped", - [ - 8052, - 953 - ] - ], - [ - [ - 8131, - 8131 - ], - "mapped", - [ - 951, - 953 - ] - ], - [ - [ - 8132, - 8132 - ], - "mapped", - [ - 942, - 953 - ] - ], - [ - [ - 8133, - 8133 - ], - "disallowed" - ], - [ - [ - 8134, - 8134 - ], - "valid" - ], - [ - [ - 8135, - 8135 - ], - "mapped", - [ - 8134, - 953 - ] - ], - [ - [ - 8136, - 8136 - ], - "mapped", - [ - 8050 - ] - ], - [ - [ - 8137, - 8137 - ], - "mapped", - [ - 941 - ] - ], - [ - [ - 8138, - 8138 - ], - "mapped", - [ - 8052 - ] - ], - [ - [ - 8139, - 8139 - ], - "mapped", - [ - 942 - ] - ], - [ - [ - 8140, - 8140 - ], - "mapped", - [ - 951, - 953 - ] - ], - [ - [ - 8141, - 8141 - ], - "disallowed_STD3_mapped", - [ - 32, - 787, - 768 - ] - ], - [ - [ - 8142, - 8142 - ], - "disallowed_STD3_mapped", - [ - 32, - 787, - 769 - ] - ], - [ - [ - 8143, - 8143 - ], - "disallowed_STD3_mapped", - [ - 32, - 787, - 834 - ] - ], - [ - [ - 8144, - 8146 - ], - "valid" - ], - [ - [ - 8147, - 8147 - ], - "mapped", - [ - 912 - ] - ], - [ - [ - 8148, - 8149 - ], - "disallowed" - ], - [ - [ - 8150, - 8151 - ], - "valid" - ], - [ - [ - 8152, - 8152 - ], - "mapped", - [ - 8144 - ] - ], - [ - [ - 8153, - 8153 - ], - "mapped", - [ - 8145 - ] - ], - [ - [ - 8154, - 8154 - ], - "mapped", - [ - 8054 - ] - ], - [ - [ - 8155, - 8155 - ], - "mapped", - [ - 943 - ] - ], - [ - [ - 8156, - 8156 - ], - "disallowed" - ], - [ - [ - 8157, - 8157 - ], - "disallowed_STD3_mapped", - [ - 32, - 788, - 768 - ] - ], - [ - [ - 8158, - 8158 - ], - "disallowed_STD3_mapped", - [ - 32, - 788, - 769 - ] - ], - [ - [ - 8159, - 8159 - ], - "disallowed_STD3_mapped", - [ - 32, - 788, - 834 - ] - ], - [ - [ - 8160, - 8162 - ], - "valid" - ], - [ - [ - 8163, - 8163 - ], - "mapped", - [ - 944 - ] - ], - [ - [ - 8164, - 8167 - ], - "valid" - ], - [ - [ - 8168, - 8168 - ], - "mapped", - [ - 8160 - ] - ], - [ - [ - 8169, - 8169 - ], - "mapped", - [ - 8161 - ] - ], - [ - [ - 8170, - 8170 - ], - "mapped", - [ - 8058 - ] - ], - [ - [ - 8171, - 8171 - ], - "mapped", - [ - 973 - ] - ], - [ - [ - 8172, - 8172 - ], - "mapped", - [ - 8165 - ] - ], - [ - [ - 8173, - 8173 - ], - "disallowed_STD3_mapped", - [ - 32, - 776, - 768 - ] - ], - [ - [ - 8174, - 8174 - ], - "disallowed_STD3_mapped", - [ - 32, - 776, - 769 - ] - ], - [ - [ - 8175, - 8175 - ], - "disallowed_STD3_mapped", - [ - 96 - ] - ], - [ - [ - 8176, - 8177 - ], - "disallowed" - ], - [ - [ - 8178, - 8178 - ], - "mapped", - [ - 8060, - 953 - ] - ], - [ - [ - 8179, - 8179 - ], - "mapped", - [ - 969, - 953 - ] - ], - [ - [ - 8180, - 8180 - ], - "mapped", - [ - 974, - 953 - ] - ], - [ - [ - 8181, - 8181 - ], - "disallowed" - ], - [ - [ - 8182, - 8182 - ], - "valid" - ], - [ - [ - 8183, - 8183 - ], - "mapped", - [ - 8182, - 953 - ] - ], - [ - [ - 8184, - 8184 - ], - "mapped", - [ - 8056 - ] - ], - [ - [ - 8185, - 8185 - ], - "mapped", - [ - 972 - ] - ], - [ - [ - 8186, - 8186 - ], - "mapped", - [ - 8060 - ] - ], - [ - [ - 8187, - 8187 - ], - "mapped", - [ - 974 - ] - ], - [ - [ - 8188, - 8188 - ], - "mapped", - [ - 969, - 953 - ] - ], - [ - [ - 8189, - 8189 - ], - "disallowed_STD3_mapped", - [ - 32, - 769 - ] - ], - [ - [ - 8190, - 8190 - ], - "disallowed_STD3_mapped", - [ - 32, - 788 - ] - ], - [ - [ - 8191, - 8191 - ], - "disallowed" - ], - [ - [ - 8192, - 8202 - ], - "disallowed_STD3_mapped", - [ - 32 - ] - ], - [ - [ - 8203, - 8203 - ], - "ignored" - ], - [ - [ - 8204, - 8205 - ], - "deviation", - [ - ] - ], - [ - [ - 8206, - 8207 - ], - "disallowed" - ], - [ - [ - 8208, - 8208 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8209, - 8209 - ], - "mapped", - [ - 8208 - ] - ], - [ - [ - 8210, - 8214 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8215, - 8215 - ], - "disallowed_STD3_mapped", - [ - 32, - 819 - ] - ], - [ - [ - 8216, - 8227 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8228, - 8230 - ], - "disallowed" - ], - [ - [ - 8231, - 8231 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8232, - 8238 - ], - "disallowed" - ], - [ - [ - 8239, - 8239 - ], - "disallowed_STD3_mapped", - [ - 32 - ] - ], - [ - [ - 8240, - 8242 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8243, - 8243 - ], - "mapped", - [ - 8242, - 8242 - ] - ], - [ - [ - 8244, - 8244 - ], - "mapped", - [ - 8242, - 8242, - 8242 - ] - ], - [ - [ - 8245, - 8245 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8246, - 8246 - ], - "mapped", - [ - 8245, - 8245 - ] - ], - [ - [ - 8247, - 8247 - ], - "mapped", - [ - 8245, - 8245, - 8245 - ] - ], - [ - [ - 8248, - 8251 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8252, - 8252 - ], - "disallowed_STD3_mapped", - [ - 33, - 33 - ] - ], - [ - [ - 8253, - 8253 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8254, - 8254 - ], - "disallowed_STD3_mapped", - [ - 32, - 773 - ] - ], - [ - [ - 8255, - 8262 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8263, - 8263 - ], - "disallowed_STD3_mapped", - [ - 63, - 63 - ] - ], - [ - [ - 8264, - 8264 - ], - "disallowed_STD3_mapped", - [ - 63, - 33 - ] - ], - [ - [ - 8265, - 8265 - ], - "disallowed_STD3_mapped", - [ - 33, - 63 - ] - ], - [ - [ - 8266, - 8269 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8270, - 8274 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8275, - 8276 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8277, - 8278 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8279, - 8279 - ], - "mapped", - [ - 8242, - 8242, - 8242, - 8242 - ] - ], - [ - [ - 8280, - 8286 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8287, - 8287 - ], - "disallowed_STD3_mapped", - [ - 32 - ] - ], - [ - [ - 8288, - 8288 - ], - "ignored" - ], - [ - [ - 8289, - 8291 - ], - "disallowed" - ], - [ - [ - 8292, - 8292 - ], - "ignored" - ], - [ - [ - 8293, - 8293 - ], - "disallowed" - ], - [ - [ - 8294, - 8297 - ], - "disallowed" - ], - [ - [ - 8298, - 8303 - ], - "disallowed" - ], - [ - [ - 8304, - 8304 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 8305, - 8305 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8306, - 8307 - ], - "disallowed" - ], - [ - [ - 8308, - 8308 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 8309, - 8309 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 8310, - 8310 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 8311, - 8311 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 8312, - 8312 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 8313, - 8313 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 8314, - 8314 - ], - "disallowed_STD3_mapped", - [ - 43 - ] - ], - [ - [ - 8315, - 8315 - ], - "mapped", - [ - 8722 - ] - ], - [ - [ - 8316, - 8316 - ], - "disallowed_STD3_mapped", - [ - 61 - ] - ], - [ - [ - 8317, - 8317 - ], - "disallowed_STD3_mapped", - [ - 40 - ] - ], - [ - [ - 8318, - 8318 - ], - "disallowed_STD3_mapped", - [ - 41 - ] - ], - [ - [ - 8319, - 8319 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 8320, - 8320 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 8321, - 8321 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 8322, - 8322 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 8323, - 8323 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 8324, - 8324 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 8325, - 8325 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 8326, - 8326 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 8327, - 8327 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 8328, - 8328 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 8329, - 8329 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 8330, - 8330 - ], - "disallowed_STD3_mapped", - [ - 43 - ] - ], - [ - [ - 8331, - 8331 - ], - "mapped", - [ - 8722 - ] - ], - [ - [ - 8332, - 8332 - ], - "disallowed_STD3_mapped", - [ - 61 - ] - ], - [ - [ - 8333, - 8333 - ], - "disallowed_STD3_mapped", - [ - 40 - ] - ], - [ - [ - 8334, - 8334 - ], - "disallowed_STD3_mapped", - [ - 41 - ] - ], - [ - [ - 8335, - 8335 - ], - "disallowed" - ], - [ - [ - 8336, - 8336 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 8337, - 8337 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 8338, - 8338 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 8339, - 8339 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 8340, - 8340 - ], - "mapped", - [ - 601 - ] - ], - [ - [ - 8341, - 8341 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 8342, - 8342 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 8343, - 8343 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 8344, - 8344 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 8345, - 8345 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 8346, - 8346 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 8347, - 8347 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 8348, - 8348 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 8349, - 8351 - ], - "disallowed" - ], - [ - [ - 8352, - 8359 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8360, - 8360 - ], - "mapped", - [ - 114, - 115 - ] - ], - [ - [ - 8361, - 8362 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8363, - 8363 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8364, - 8364 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8365, - 8367 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8368, - 8369 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8370, - 8373 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8374, - 8376 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8377, - 8377 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8378, - 8378 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8379, - 8381 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8382, - 8382 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8383, - 8399 - ], - "disallowed" - ], - [ - [ - 8400, - 8417 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8418, - 8419 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8420, - 8426 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8427, - 8427 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8428, - 8431 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8432, - 8432 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8433, - 8447 - ], - "disallowed" - ], - [ - [ - 8448, - 8448 - ], - "disallowed_STD3_mapped", - [ - 97, - 47, - 99 - ] - ], - [ - [ - 8449, - 8449 - ], - "disallowed_STD3_mapped", - [ - 97, - 47, - 115 - ] - ], - [ - [ - 8450, - 8450 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 8451, - 8451 - ], - "mapped", - [ - 176, - 99 - ] - ], - [ - [ - 8452, - 8452 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8453, - 8453 - ], - "disallowed_STD3_mapped", - [ - 99, - 47, - 111 - ] - ], - [ - [ - 8454, - 8454 - ], - "disallowed_STD3_mapped", - [ - 99, - 47, - 117 - ] - ], - [ - [ - 8455, - 8455 - ], - "mapped", - [ - 603 - ] - ], - [ - [ - 8456, - 8456 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8457, - 8457 - ], - "mapped", - [ - 176, - 102 - ] - ], - [ - [ - 8458, - 8458 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 8459, - 8462 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 8463, - 8463 - ], - "mapped", - [ - 295 - ] - ], - [ - [ - 8464, - 8465 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8466, - 8467 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 8468, - 8468 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8469, - 8469 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 8470, - 8470 - ], - "mapped", - [ - 110, - 111 - ] - ], - [ - [ - 8471, - 8472 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8473, - 8473 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 8474, - 8474 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 8475, - 8477 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 8478, - 8479 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8480, - 8480 - ], - "mapped", - [ - 115, - 109 - ] - ], - [ - [ - 8481, - 8481 - ], - "mapped", - [ - 116, - 101, - 108 - ] - ], - [ - [ - 8482, - 8482 - ], - "mapped", - [ - 116, - 109 - ] - ], - [ - [ - 8483, - 8483 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8484, - 8484 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 8485, - 8485 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8486, - 8486 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 8487, - 8487 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8488, - 8488 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 8489, - 8489 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8490, - 8490 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 8491, - 8491 - ], - "mapped", - [ - 229 - ] - ], - [ - [ - 8492, - 8492 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 8493, - 8493 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 8494, - 8494 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8495, - 8496 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 8497, - 8497 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 8498, - 8498 - ], - "disallowed" - ], - [ - [ - 8499, - 8499 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 8500, - 8500 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 8501, - 8501 - ], - "mapped", - [ - 1488 - ] - ], - [ - [ - 8502, - 8502 - ], - "mapped", - [ - 1489 - ] - ], - [ - [ - 8503, - 8503 - ], - "mapped", - [ - 1490 - ] - ], - [ - [ - 8504, - 8504 - ], - "mapped", - [ - 1491 - ] - ], - [ - [ - 8505, - 8505 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8506, - 8506 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8507, - 8507 - ], - "mapped", - [ - 102, - 97, - 120 - ] - ], - [ - [ - 8508, - 8508 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 8509, - 8510 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 8511, - 8511 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 8512, - 8512 - ], - "mapped", - [ - 8721 - ] - ], - [ - [ - 8513, - 8516 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8517, - 8518 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 8519, - 8519 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 8520, - 8520 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8521, - 8521 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 8522, - 8523 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8524, - 8524 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8525, - 8525 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8526, - 8526 - ], - "valid" - ], - [ - [ - 8527, - 8527 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8528, - 8528 - ], - "mapped", - [ - 49, - 8260, - 55 - ] - ], - [ - [ - 8529, - 8529 - ], - "mapped", - [ - 49, - 8260, - 57 - ] - ], - [ - [ - 8530, - 8530 - ], - "mapped", - [ - 49, - 8260, - 49, - 48 - ] - ], - [ - [ - 8531, - 8531 - ], - "mapped", - [ - 49, - 8260, - 51 - ] - ], - [ - [ - 8532, - 8532 - ], - "mapped", - [ - 50, - 8260, - 51 - ] - ], - [ - [ - 8533, - 8533 - ], - "mapped", - [ - 49, - 8260, - 53 - ] - ], - [ - [ - 8534, - 8534 - ], - "mapped", - [ - 50, - 8260, - 53 - ] - ], - [ - [ - 8535, - 8535 - ], - "mapped", - [ - 51, - 8260, - 53 - ] - ], - [ - [ - 8536, - 8536 - ], - "mapped", - [ - 52, - 8260, - 53 - ] - ], - [ - [ - 8537, - 8537 - ], - "mapped", - [ - 49, - 8260, - 54 - ] - ], - [ - [ - 8538, - 8538 - ], - "mapped", - [ - 53, - 8260, - 54 - ] - ], - [ - [ - 8539, - 8539 - ], - "mapped", - [ - 49, - 8260, - 56 - ] - ], - [ - [ - 8540, - 8540 - ], - "mapped", - [ - 51, - 8260, - 56 - ] - ], - [ - [ - 8541, - 8541 - ], - "mapped", - [ - 53, - 8260, - 56 - ] - ], - [ - [ - 8542, - 8542 - ], - "mapped", - [ - 55, - 8260, - 56 - ] - ], - [ - [ - 8543, - 8543 - ], - "mapped", - [ - 49, - 8260 - ] - ], - [ - [ - 8544, - 8544 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8545, - 8545 - ], - "mapped", - [ - 105, - 105 - ] - ], - [ - [ - 8546, - 8546 - ], - "mapped", - [ - 105, - 105, - 105 - ] - ], - [ - [ - 8547, - 8547 - ], - "mapped", - [ - 105, - 118 - ] - ], - [ - [ - 8548, - 8548 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 8549, - 8549 - ], - "mapped", - [ - 118, - 105 - ] - ], - [ - [ - 8550, - 8550 - ], - "mapped", - [ - 118, - 105, - 105 - ] - ], - [ - [ - 8551, - 8551 - ], - "mapped", - [ - 118, - 105, - 105, - 105 - ] - ], - [ - [ - 8552, - 8552 - ], - "mapped", - [ - 105, - 120 - ] - ], - [ - [ - 8553, - 8553 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 8554, - 8554 - ], - "mapped", - [ - 120, - 105 - ] - ], - [ - [ - 8555, - 8555 - ], - "mapped", - [ - 120, - 105, - 105 - ] - ], - [ - [ - 8556, - 8556 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 8557, - 8557 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 8558, - 8558 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 8559, - 8559 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 8560, - 8560 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 8561, - 8561 - ], - "mapped", - [ - 105, - 105 - ] - ], - [ - [ - 8562, - 8562 - ], - "mapped", - [ - 105, - 105, - 105 - ] - ], - [ - [ - 8563, - 8563 - ], - "mapped", - [ - 105, - 118 - ] - ], - [ - [ - 8564, - 8564 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 8565, - 8565 - ], - "mapped", - [ - 118, - 105 - ] - ], - [ - [ - 8566, - 8566 - ], - "mapped", - [ - 118, - 105, - 105 - ] - ], - [ - [ - 8567, - 8567 - ], - "mapped", - [ - 118, - 105, - 105, - 105 - ] - ], - [ - [ - 8568, - 8568 - ], - "mapped", - [ - 105, - 120 - ] - ], - [ - [ - 8569, - 8569 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 8570, - 8570 - ], - "mapped", - [ - 120, - 105 - ] - ], - [ - [ - 8571, - 8571 - ], - "mapped", - [ - 120, - 105, - 105 - ] - ], - [ - [ - 8572, - 8572 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 8573, - 8573 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 8574, - 8574 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 8575, - 8575 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 8576, - 8578 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8579, - 8579 - ], - "disallowed" - ], - [ - [ - 8580, - 8580 - ], - "valid" - ], - [ - [ - 8581, - 8584 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8585, - 8585 - ], - "mapped", - [ - 48, - 8260, - 51 - ] - ], - [ - [ - 8586, - 8587 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8588, - 8591 - ], - "disallowed" - ], - [ - [ - 8592, - 8682 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8683, - 8691 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8692, - 8703 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8704, - 8747 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8748, - 8748 - ], - "mapped", - [ - 8747, - 8747 - ] - ], - [ - [ - 8749, - 8749 - ], - "mapped", - [ - 8747, - 8747, - 8747 - ] - ], - [ - [ - 8750, - 8750 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8751, - 8751 - ], - "mapped", - [ - 8750, - 8750 - ] - ], - [ - [ - 8752, - 8752 - ], - "mapped", - [ - 8750, - 8750, - 8750 - ] - ], - [ - [ - 8753, - 8799 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8800, - 8800 - ], - "disallowed_STD3_valid" - ], - [ - [ - 8801, - 8813 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8814, - 8815 - ], - "disallowed_STD3_valid" - ], - [ - [ - 8816, - 8945 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8946, - 8959 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8960, - 8960 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8961, - 8961 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 8962, - 9000 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9001, - 9001 - ], - "mapped", - [ - 12296 - ] - ], - [ - [ - 9002, - 9002 - ], - "mapped", - [ - 12297 - ] - ], - [ - [ - 9003, - 9082 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9083, - 9083 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9084, - 9084 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9085, - 9114 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9115, - 9166 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9167, - 9168 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9169, - 9179 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9180, - 9191 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9192, - 9192 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9193, - 9203 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9204, - 9210 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9211, - 9215 - ], - "disallowed" - ], - [ - [ - 9216, - 9252 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9253, - 9254 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9255, - 9279 - ], - "disallowed" - ], - [ - [ - 9280, - 9290 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9291, - 9311 - ], - "disallowed" - ], - [ - [ - 9312, - 9312 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 9313, - 9313 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 9314, - 9314 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 9315, - 9315 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 9316, - 9316 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 9317, - 9317 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 9318, - 9318 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 9319, - 9319 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 9320, - 9320 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 9321, - 9321 - ], - "mapped", - [ - 49, - 48 - ] - ], - [ - [ - 9322, - 9322 - ], - "mapped", - [ - 49, - 49 - ] - ], - [ - [ - 9323, - 9323 - ], - "mapped", - [ - 49, - 50 - ] - ], - [ - [ - 9324, - 9324 - ], - "mapped", - [ - 49, - 51 - ] - ], - [ - [ - 9325, - 9325 - ], - "mapped", - [ - 49, - 52 - ] - ], - [ - [ - 9326, - 9326 - ], - "mapped", - [ - 49, - 53 - ] - ], - [ - [ - 9327, - 9327 - ], - "mapped", - [ - 49, - 54 - ] - ], - [ - [ - 9328, - 9328 - ], - "mapped", - [ - 49, - 55 - ] - ], - [ - [ - 9329, - 9329 - ], - "mapped", - [ - 49, - 56 - ] - ], - [ - [ - 9330, - 9330 - ], - "mapped", - [ - 49, - 57 - ] - ], - [ - [ - 9331, - 9331 - ], - "mapped", - [ - 50, - 48 - ] - ], - [ - [ - 9332, - 9332 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 41 - ] - ], - [ - [ - 9333, - 9333 - ], - "disallowed_STD3_mapped", - [ - 40, - 50, - 41 - ] - ], - [ - [ - 9334, - 9334 - ], - "disallowed_STD3_mapped", - [ - 40, - 51, - 41 - ] - ], - [ - [ - 9335, - 9335 - ], - "disallowed_STD3_mapped", - [ - 40, - 52, - 41 - ] - ], - [ - [ - 9336, - 9336 - ], - "disallowed_STD3_mapped", - [ - 40, - 53, - 41 - ] - ], - [ - [ - 9337, - 9337 - ], - "disallowed_STD3_mapped", - [ - 40, - 54, - 41 - ] - ], - [ - [ - 9338, - 9338 - ], - "disallowed_STD3_mapped", - [ - 40, - 55, - 41 - ] - ], - [ - [ - 9339, - 9339 - ], - "disallowed_STD3_mapped", - [ - 40, - 56, - 41 - ] - ], - [ - [ - 9340, - 9340 - ], - "disallowed_STD3_mapped", - [ - 40, - 57, - 41 - ] - ], - [ - [ - 9341, - 9341 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 48, - 41 - ] - ], - [ - [ - 9342, - 9342 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 49, - 41 - ] - ], - [ - [ - 9343, - 9343 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 50, - 41 - ] - ], - [ - [ - 9344, - 9344 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 51, - 41 - ] - ], - [ - [ - 9345, - 9345 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 52, - 41 - ] - ], - [ - [ - 9346, - 9346 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 53, - 41 - ] - ], - [ - [ - 9347, - 9347 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 54, - 41 - ] - ], - [ - [ - 9348, - 9348 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 55, - 41 - ] - ], - [ - [ - 9349, - 9349 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 56, - 41 - ] - ], - [ - [ - 9350, - 9350 - ], - "disallowed_STD3_mapped", - [ - 40, - 49, - 57, - 41 - ] - ], - [ - [ - 9351, - 9351 - ], - "disallowed_STD3_mapped", - [ - 40, - 50, - 48, - 41 - ] - ], - [ - [ - 9352, - 9371 - ], - "disallowed" - ], - [ - [ - 9372, - 9372 - ], - "disallowed_STD3_mapped", - [ - 40, - 97, - 41 - ] - ], - [ - [ - 9373, - 9373 - ], - "disallowed_STD3_mapped", - [ - 40, - 98, - 41 - ] - ], - [ - [ - 9374, - 9374 - ], - "disallowed_STD3_mapped", - [ - 40, - 99, - 41 - ] - ], - [ - [ - 9375, - 9375 - ], - "disallowed_STD3_mapped", - [ - 40, - 100, - 41 - ] - ], - [ - [ - 9376, - 9376 - ], - "disallowed_STD3_mapped", - [ - 40, - 101, - 41 - ] - ], - [ - [ - 9377, - 9377 - ], - "disallowed_STD3_mapped", - [ - 40, - 102, - 41 - ] - ], - [ - [ - 9378, - 9378 - ], - "disallowed_STD3_mapped", - [ - 40, - 103, - 41 - ] - ], - [ - [ - 9379, - 9379 - ], - "disallowed_STD3_mapped", - [ - 40, - 104, - 41 - ] - ], - [ - [ - 9380, - 9380 - ], - "disallowed_STD3_mapped", - [ - 40, - 105, - 41 - ] - ], - [ - [ - 9381, - 9381 - ], - "disallowed_STD3_mapped", - [ - 40, - 106, - 41 - ] - ], - [ - [ - 9382, - 9382 - ], - "disallowed_STD3_mapped", - [ - 40, - 107, - 41 - ] - ], - [ - [ - 9383, - 9383 - ], - "disallowed_STD3_mapped", - [ - 40, - 108, - 41 - ] - ], - [ - [ - 9384, - 9384 - ], - "disallowed_STD3_mapped", - [ - 40, - 109, - 41 - ] - ], - [ - [ - 9385, - 9385 - ], - "disallowed_STD3_mapped", - [ - 40, - 110, - 41 - ] - ], - [ - [ - 9386, - 9386 - ], - "disallowed_STD3_mapped", - [ - 40, - 111, - 41 - ] - ], - [ - [ - 9387, - 9387 - ], - "disallowed_STD3_mapped", - [ - 40, - 112, - 41 - ] - ], - [ - [ - 9388, - 9388 - ], - "disallowed_STD3_mapped", - [ - 40, - 113, - 41 - ] - ], - [ - [ - 9389, - 9389 - ], - "disallowed_STD3_mapped", - [ - 40, - 114, - 41 - ] - ], - [ - [ - 9390, - 9390 - ], - "disallowed_STD3_mapped", - [ - 40, - 115, - 41 - ] - ], - [ - [ - 9391, - 9391 - ], - "disallowed_STD3_mapped", - [ - 40, - 116, - 41 - ] - ], - [ - [ - 9392, - 9392 - ], - "disallowed_STD3_mapped", - [ - 40, - 117, - 41 - ] - ], - [ - [ - 9393, - 9393 - ], - "disallowed_STD3_mapped", - [ - 40, - 118, - 41 - ] - ], - [ - [ - 9394, - 9394 - ], - "disallowed_STD3_mapped", - [ - 40, - 119, - 41 - ] - ], - [ - [ - 9395, - 9395 - ], - "disallowed_STD3_mapped", - [ - 40, - 120, - 41 - ] - ], - [ - [ - 9396, - 9396 - ], - "disallowed_STD3_mapped", - [ - 40, - 121, - 41 - ] - ], - [ - [ - 9397, - 9397 - ], - "disallowed_STD3_mapped", - [ - 40, - 122, - 41 - ] - ], - [ - [ - 9398, - 9398 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 9399, - 9399 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 9400, - 9400 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 9401, - 9401 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 9402, - 9402 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 9403, - 9403 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 9404, - 9404 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 9405, - 9405 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 9406, - 9406 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 9407, - 9407 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 9408, - 9408 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 9409, - 9409 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 9410, - 9410 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 9411, - 9411 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 9412, - 9412 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 9413, - 9413 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 9414, - 9414 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 9415, - 9415 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 9416, - 9416 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 9417, - 9417 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 9418, - 9418 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 9419, - 9419 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 9420, - 9420 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 9421, - 9421 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 9422, - 9422 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 9423, - 9423 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 9424, - 9424 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 9425, - 9425 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 9426, - 9426 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 9427, - 9427 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 9428, - 9428 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 9429, - 9429 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 9430, - 9430 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 9431, - 9431 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 9432, - 9432 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 9433, - 9433 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 9434, - 9434 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 9435, - 9435 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 9436, - 9436 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 9437, - 9437 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 9438, - 9438 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 9439, - 9439 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 9440, - 9440 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 9441, - 9441 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 9442, - 9442 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 9443, - 9443 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 9444, - 9444 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 9445, - 9445 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 9446, - 9446 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 9447, - 9447 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 9448, - 9448 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 9449, - 9449 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 9450, - 9450 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 9451, - 9470 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9471, - 9471 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9472, - 9621 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9622, - 9631 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9632, - 9711 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9712, - 9719 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9720, - 9727 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9728, - 9747 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9748, - 9749 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9750, - 9751 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9752, - 9752 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9753, - 9753 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9754, - 9839 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9840, - 9841 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9842, - 9853 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9854, - 9855 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9856, - 9865 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9866, - 9873 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9874, - 9884 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9885, - 9885 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9886, - 9887 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9888, - 9889 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9890, - 9905 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9906, - 9906 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9907, - 9916 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9917, - 9919 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9920, - 9923 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9924, - 9933 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9934, - 9934 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9935, - 9953 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9954, - 9954 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9955, - 9955 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9956, - 9959 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9960, - 9983 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9984, - 9984 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9985, - 9988 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9989, - 9989 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9990, - 9993 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9994, - 9995 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 9996, - 10023 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10024, - 10024 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10025, - 10059 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10060, - 10060 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10061, - 10061 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10062, - 10062 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10063, - 10066 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10067, - 10069 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10070, - 10070 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10071, - 10071 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10072, - 10078 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10079, - 10080 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10081, - 10087 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10088, - 10101 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10102, - 10132 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10133, - 10135 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10136, - 10159 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10160, - 10160 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10161, - 10174 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10175, - 10175 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10176, - 10182 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10183, - 10186 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10187, - 10187 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10188, - 10188 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10189, - 10189 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10190, - 10191 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10192, - 10219 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10220, - 10223 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10224, - 10239 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10240, - 10495 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10496, - 10763 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10764, - 10764 - ], - "mapped", - [ - 8747, - 8747, - 8747, - 8747 - ] - ], - [ - [ - 10765, - 10867 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10868, - 10868 - ], - "disallowed_STD3_mapped", - [ - 58, - 58, - 61 - ] - ], - [ - [ - 10869, - 10869 - ], - "disallowed_STD3_mapped", - [ - 61, - 61 - ] - ], - [ - [ - 10870, - 10870 - ], - "disallowed_STD3_mapped", - [ - 61, - 61, - 61 - ] - ], - [ - [ - 10871, - 10971 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 10972, - 10972 - ], - "mapped", - [ - 10973, - 824 - ] - ], - [ - [ - 10973, - 11007 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11008, - 11021 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11022, - 11027 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11028, - 11034 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11035, - 11039 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11040, - 11043 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11044, - 11084 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11085, - 11087 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11088, - 11092 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11093, - 11097 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11098, - 11123 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11124, - 11125 - ], - "disallowed" - ], - [ - [ - 11126, - 11157 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11158, - 11159 - ], - "disallowed" - ], - [ - [ - 11160, - 11193 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11194, - 11196 - ], - "disallowed" - ], - [ - [ - 11197, - 11208 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11209, - 11209 - ], - "disallowed" - ], - [ - [ - 11210, - 11217 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11218, - 11243 - ], - "disallowed" - ], - [ - [ - 11244, - 11247 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11248, - 11263 - ], - "disallowed" - ], - [ - [ - 11264, - 11264 - ], - "mapped", - [ - 11312 - ] - ], - [ - [ - 11265, - 11265 - ], - "mapped", - [ - 11313 - ] - ], - [ - [ - 11266, - 11266 - ], - "mapped", - [ - 11314 - ] - ], - [ - [ - 11267, - 11267 - ], - "mapped", - [ - 11315 - ] - ], - [ - [ - 11268, - 11268 - ], - "mapped", - [ - 11316 - ] - ], - [ - [ - 11269, - 11269 - ], - "mapped", - [ - 11317 - ] - ], - [ - [ - 11270, - 11270 - ], - "mapped", - [ - 11318 - ] - ], - [ - [ - 11271, - 11271 - ], - "mapped", - [ - 11319 - ] - ], - [ - [ - 11272, - 11272 - ], - "mapped", - [ - 11320 - ] - ], - [ - [ - 11273, - 11273 - ], - "mapped", - [ - 11321 - ] - ], - [ - [ - 11274, - 11274 - ], - "mapped", - [ - 11322 - ] - ], - [ - [ - 11275, - 11275 - ], - "mapped", - [ - 11323 - ] - ], - [ - [ - 11276, - 11276 - ], - "mapped", - [ - 11324 - ] - ], - [ - [ - 11277, - 11277 - ], - "mapped", - [ - 11325 - ] - ], - [ - [ - 11278, - 11278 - ], - "mapped", - [ - 11326 - ] - ], - [ - [ - 11279, - 11279 - ], - "mapped", - [ - 11327 - ] - ], - [ - [ - 11280, - 11280 - ], - "mapped", - [ - 11328 - ] - ], - [ - [ - 11281, - 11281 - ], - "mapped", - [ - 11329 - ] - ], - [ - [ - 11282, - 11282 - ], - "mapped", - [ - 11330 - ] - ], - [ - [ - 11283, - 11283 - ], - "mapped", - [ - 11331 - ] - ], - [ - [ - 11284, - 11284 - ], - "mapped", - [ - 11332 - ] - ], - [ - [ - 11285, - 11285 - ], - "mapped", - [ - 11333 - ] - ], - [ - [ - 11286, - 11286 - ], - "mapped", - [ - 11334 - ] - ], - [ - [ - 11287, - 11287 - ], - "mapped", - [ - 11335 - ] - ], - [ - [ - 11288, - 11288 - ], - "mapped", - [ - 11336 - ] - ], - [ - [ - 11289, - 11289 - ], - "mapped", - [ - 11337 - ] - ], - [ - [ - 11290, - 11290 - ], - "mapped", - [ - 11338 - ] - ], - [ - [ - 11291, - 11291 - ], - "mapped", - [ - 11339 - ] - ], - [ - [ - 11292, - 11292 - ], - "mapped", - [ - 11340 - ] - ], - [ - [ - 11293, - 11293 - ], - "mapped", - [ - 11341 - ] - ], - [ - [ - 11294, - 11294 - ], - "mapped", - [ - 11342 - ] - ], - [ - [ - 11295, - 11295 - ], - "mapped", - [ - 11343 - ] - ], - [ - [ - 11296, - 11296 - ], - "mapped", - [ - 11344 - ] - ], - [ - [ - 11297, - 11297 - ], - "mapped", - [ - 11345 - ] - ], - [ - [ - 11298, - 11298 - ], - "mapped", - [ - 11346 - ] - ], - [ - [ - 11299, - 11299 - ], - "mapped", - [ - 11347 - ] - ], - [ - [ - 11300, - 11300 - ], - "mapped", - [ - 11348 - ] - ], - [ - [ - 11301, - 11301 - ], - "mapped", - [ - 11349 - ] - ], - [ - [ - 11302, - 11302 - ], - "mapped", - [ - 11350 - ] - ], - [ - [ - 11303, - 11303 - ], - "mapped", - [ - 11351 - ] - ], - [ - [ - 11304, - 11304 - ], - "mapped", - [ - 11352 - ] - ], - [ - [ - 11305, - 11305 - ], - "mapped", - [ - 11353 - ] - ], - [ - [ - 11306, - 11306 - ], - "mapped", - [ - 11354 - ] - ], - [ - [ - 11307, - 11307 - ], - "mapped", - [ - 11355 - ] - ], - [ - [ - 11308, - 11308 - ], - "mapped", - [ - 11356 - ] - ], - [ - [ - 11309, - 11309 - ], - "mapped", - [ - 11357 - ] - ], - [ - [ - 11310, - 11310 - ], - "mapped", - [ - 11358 - ] - ], - [ - [ - 11311, - 11311 - ], - "disallowed" - ], - [ - [ - 11312, - 11358 - ], - "valid" - ], - [ - [ - 11359, - 11359 - ], - "disallowed" - ], - [ - [ - 11360, - 11360 - ], - "mapped", - [ - 11361 - ] - ], - [ - [ - 11361, - 11361 - ], - "valid" - ], - [ - [ - 11362, - 11362 - ], - "mapped", - [ - 619 - ] - ], - [ - [ - 11363, - 11363 - ], - "mapped", - [ - 7549 - ] - ], - [ - [ - 11364, - 11364 - ], - "mapped", - [ - 637 - ] - ], - [ - [ - 11365, - 11366 - ], - "valid" - ], - [ - [ - 11367, - 11367 - ], - "mapped", - [ - 11368 - ] - ], - [ - [ - 11368, - 11368 - ], - "valid" - ], - [ - [ - 11369, - 11369 - ], - "mapped", - [ - 11370 - ] - ], - [ - [ - 11370, - 11370 - ], - "valid" - ], - [ - [ - 11371, - 11371 - ], - "mapped", - [ - 11372 - ] - ], - [ - [ - 11372, - 11372 - ], - "valid" - ], - [ - [ - 11373, - 11373 - ], - "mapped", - [ - 593 - ] - ], - [ - [ - 11374, - 11374 - ], - "mapped", - [ - 625 - ] - ], - [ - [ - 11375, - 11375 - ], - "mapped", - [ - 592 - ] - ], - [ - [ - 11376, - 11376 - ], - "mapped", - [ - 594 - ] - ], - [ - [ - 11377, - 11377 - ], - "valid" - ], - [ - [ - 11378, - 11378 - ], - "mapped", - [ - 11379 - ] - ], - [ - [ - 11379, - 11379 - ], - "valid" - ], - [ - [ - 11380, - 11380 - ], - "valid" - ], - [ - [ - 11381, - 11381 - ], - "mapped", - [ - 11382 - ] - ], - [ - [ - 11382, - 11383 - ], - "valid" - ], - [ - [ - 11384, - 11387 - ], - "valid" - ], - [ - [ - 11388, - 11388 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 11389, - 11389 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 11390, - 11390 - ], - "mapped", - [ - 575 - ] - ], - [ - [ - 11391, - 11391 - ], - "mapped", - [ - 576 - ] - ], - [ - [ - 11392, - 11392 - ], - "mapped", - [ - 11393 - ] - ], - [ - [ - 11393, - 11393 - ], - "valid" - ], - [ - [ - 11394, - 11394 - ], - "mapped", - [ - 11395 - ] - ], - [ - [ - 11395, - 11395 - ], - "valid" - ], - [ - [ - 11396, - 11396 - ], - "mapped", - [ - 11397 - ] - ], - [ - [ - 11397, - 11397 - ], - "valid" - ], - [ - [ - 11398, - 11398 - ], - "mapped", - [ - 11399 - ] - ], - [ - [ - 11399, - 11399 - ], - "valid" - ], - [ - [ - 11400, - 11400 - ], - "mapped", - [ - 11401 - ] - ], - [ - [ - 11401, - 11401 - ], - "valid" - ], - [ - [ - 11402, - 11402 - ], - "mapped", - [ - 11403 - ] - ], - [ - [ - 11403, - 11403 - ], - "valid" - ], - [ - [ - 11404, - 11404 - ], - "mapped", - [ - 11405 - ] - ], - [ - [ - 11405, - 11405 - ], - "valid" - ], - [ - [ - 11406, - 11406 - ], - "mapped", - [ - 11407 - ] - ], - [ - [ - 11407, - 11407 - ], - "valid" - ], - [ - [ - 11408, - 11408 - ], - "mapped", - [ - 11409 - ] - ], - [ - [ - 11409, - 11409 - ], - "valid" - ], - [ - [ - 11410, - 11410 - ], - "mapped", - [ - 11411 - ] - ], - [ - [ - 11411, - 11411 - ], - "valid" - ], - [ - [ - 11412, - 11412 - ], - "mapped", - [ - 11413 - ] - ], - [ - [ - 11413, - 11413 - ], - "valid" - ], - [ - [ - 11414, - 11414 - ], - "mapped", - [ - 11415 - ] - ], - [ - [ - 11415, - 11415 - ], - "valid" - ], - [ - [ - 11416, - 11416 - ], - "mapped", - [ - 11417 - ] - ], - [ - [ - 11417, - 11417 - ], - "valid" - ], - [ - [ - 11418, - 11418 - ], - "mapped", - [ - 11419 - ] - ], - [ - [ - 11419, - 11419 - ], - "valid" - ], - [ - [ - 11420, - 11420 - ], - "mapped", - [ - 11421 - ] - ], - [ - [ - 11421, - 11421 - ], - "valid" - ], - [ - [ - 11422, - 11422 - ], - "mapped", - [ - 11423 - ] - ], - [ - [ - 11423, - 11423 - ], - "valid" - ], - [ - [ - 11424, - 11424 - ], - "mapped", - [ - 11425 - ] - ], - [ - [ - 11425, - 11425 - ], - "valid" - ], - [ - [ - 11426, - 11426 - ], - "mapped", - [ - 11427 - ] - ], - [ - [ - 11427, - 11427 - ], - "valid" - ], - [ - [ - 11428, - 11428 - ], - "mapped", - [ - 11429 - ] - ], - [ - [ - 11429, - 11429 - ], - "valid" - ], - [ - [ - 11430, - 11430 - ], - "mapped", - [ - 11431 - ] - ], - [ - [ - 11431, - 11431 - ], - "valid" - ], - [ - [ - 11432, - 11432 - ], - "mapped", - [ - 11433 - ] - ], - [ - [ - 11433, - 11433 - ], - "valid" - ], - [ - [ - 11434, - 11434 - ], - "mapped", - [ - 11435 - ] - ], - [ - [ - 11435, - 11435 - ], - "valid" - ], - [ - [ - 11436, - 11436 - ], - "mapped", - [ - 11437 - ] - ], - [ - [ - 11437, - 11437 - ], - "valid" - ], - [ - [ - 11438, - 11438 - ], - "mapped", - [ - 11439 - ] - ], - [ - [ - 11439, - 11439 - ], - "valid" - ], - [ - [ - 11440, - 11440 - ], - "mapped", - [ - 11441 - ] - ], - [ - [ - 11441, - 11441 - ], - "valid" - ], - [ - [ - 11442, - 11442 - ], - "mapped", - [ - 11443 - ] - ], - [ - [ - 11443, - 11443 - ], - "valid" - ], - [ - [ - 11444, - 11444 - ], - "mapped", - [ - 11445 - ] - ], - [ - [ - 11445, - 11445 - ], - "valid" - ], - [ - [ - 11446, - 11446 - ], - "mapped", - [ - 11447 - ] - ], - [ - [ - 11447, - 11447 - ], - "valid" - ], - [ - [ - 11448, - 11448 - ], - "mapped", - [ - 11449 - ] - ], - [ - [ - 11449, - 11449 - ], - "valid" - ], - [ - [ - 11450, - 11450 - ], - "mapped", - [ - 11451 - ] - ], - [ - [ - 11451, - 11451 - ], - "valid" - ], - [ - [ - 11452, - 11452 - ], - "mapped", - [ - 11453 - ] - ], - [ - [ - 11453, - 11453 - ], - "valid" - ], - [ - [ - 11454, - 11454 - ], - "mapped", - [ - 11455 - ] - ], - [ - [ - 11455, - 11455 - ], - "valid" - ], - [ - [ - 11456, - 11456 - ], - "mapped", - [ - 11457 - ] - ], - [ - [ - 11457, - 11457 - ], - "valid" - ], - [ - [ - 11458, - 11458 - ], - "mapped", - [ - 11459 - ] - ], - [ - [ - 11459, - 11459 - ], - "valid" - ], - [ - [ - 11460, - 11460 - ], - "mapped", - [ - 11461 - ] - ], - [ - [ - 11461, - 11461 - ], - "valid" - ], - [ - [ - 11462, - 11462 - ], - "mapped", - [ - 11463 - ] - ], - [ - [ - 11463, - 11463 - ], - "valid" - ], - [ - [ - 11464, - 11464 - ], - "mapped", - [ - 11465 - ] - ], - [ - [ - 11465, - 11465 - ], - "valid" - ], - [ - [ - 11466, - 11466 - ], - "mapped", - [ - 11467 - ] - ], - [ - [ - 11467, - 11467 - ], - "valid" - ], - [ - [ - 11468, - 11468 - ], - "mapped", - [ - 11469 - ] - ], - [ - [ - 11469, - 11469 - ], - "valid" - ], - [ - [ - 11470, - 11470 - ], - "mapped", - [ - 11471 - ] - ], - [ - [ - 11471, - 11471 - ], - "valid" - ], - [ - [ - 11472, - 11472 - ], - "mapped", - [ - 11473 - ] - ], - [ - [ - 11473, - 11473 - ], - "valid" - ], - [ - [ - 11474, - 11474 - ], - "mapped", - [ - 11475 - ] - ], - [ - [ - 11475, - 11475 - ], - "valid" - ], - [ - [ - 11476, - 11476 - ], - "mapped", - [ - 11477 - ] - ], - [ - [ - 11477, - 11477 - ], - "valid" - ], - [ - [ - 11478, - 11478 - ], - "mapped", - [ - 11479 - ] - ], - [ - [ - 11479, - 11479 - ], - "valid" - ], - [ - [ - 11480, - 11480 - ], - "mapped", - [ - 11481 - ] - ], - [ - [ - 11481, - 11481 - ], - "valid" - ], - [ - [ - 11482, - 11482 - ], - "mapped", - [ - 11483 - ] - ], - [ - [ - 11483, - 11483 - ], - "valid" - ], - [ - [ - 11484, - 11484 - ], - "mapped", - [ - 11485 - ] - ], - [ - [ - 11485, - 11485 - ], - "valid" - ], - [ - [ - 11486, - 11486 - ], - "mapped", - [ - 11487 - ] - ], - [ - [ - 11487, - 11487 - ], - "valid" - ], - [ - [ - 11488, - 11488 - ], - "mapped", - [ - 11489 - ] - ], - [ - [ - 11489, - 11489 - ], - "valid" - ], - [ - [ - 11490, - 11490 - ], - "mapped", - [ - 11491 - ] - ], - [ - [ - 11491, - 11492 - ], - "valid" - ], - [ - [ - 11493, - 11498 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11499, - 11499 - ], - "mapped", - [ - 11500 - ] - ], - [ - [ - 11500, - 11500 - ], - "valid" - ], - [ - [ - 11501, - 11501 - ], - "mapped", - [ - 11502 - ] - ], - [ - [ - 11502, - 11505 - ], - "valid" - ], - [ - [ - 11506, - 11506 - ], - "mapped", - [ - 11507 - ] - ], - [ - [ - 11507, - 11507 - ], - "valid" - ], - [ - [ - 11508, - 11512 - ], - "disallowed" - ], - [ - [ - 11513, - 11519 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11520, - 11557 - ], - "valid" - ], - [ - [ - 11558, - 11558 - ], - "disallowed" - ], - [ - [ - 11559, - 11559 - ], - "valid" - ], - [ - [ - 11560, - 11564 - ], - "disallowed" - ], - [ - [ - 11565, - 11565 - ], - "valid" - ], - [ - [ - 11566, - 11567 - ], - "disallowed" - ], - [ - [ - 11568, - 11621 - ], - "valid" - ], - [ - [ - 11622, - 11623 - ], - "valid" - ], - [ - [ - 11624, - 11630 - ], - "disallowed" - ], - [ - [ - 11631, - 11631 - ], - "mapped", - [ - 11617 - ] - ], - [ - [ - 11632, - 11632 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11633, - 11646 - ], - "disallowed" - ], - [ - [ - 11647, - 11647 - ], - "valid" - ], - [ - [ - 11648, - 11670 - ], - "valid" - ], - [ - [ - 11671, - 11679 - ], - "disallowed" - ], - [ - [ - 11680, - 11686 - ], - "valid" - ], - [ - [ - 11687, - 11687 - ], - "disallowed" - ], - [ - [ - 11688, - 11694 - ], - "valid" - ], - [ - [ - 11695, - 11695 - ], - "disallowed" - ], - [ - [ - 11696, - 11702 - ], - "valid" - ], - [ - [ - 11703, - 11703 - ], - "disallowed" - ], - [ - [ - 11704, - 11710 - ], - "valid" - ], - [ - [ - 11711, - 11711 - ], - "disallowed" - ], - [ - [ - 11712, - 11718 - ], - "valid" - ], - [ - [ - 11719, - 11719 - ], - "disallowed" - ], - [ - [ - 11720, - 11726 - ], - "valid" - ], - [ - [ - 11727, - 11727 - ], - "disallowed" - ], - [ - [ - 11728, - 11734 - ], - "valid" - ], - [ - [ - 11735, - 11735 - ], - "disallowed" - ], - [ - [ - 11736, - 11742 - ], - "valid" - ], - [ - [ - 11743, - 11743 - ], - "disallowed" - ], - [ - [ - 11744, - 11775 - ], - "valid" - ], - [ - [ - 11776, - 11799 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11800, - 11803 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11804, - 11805 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11806, - 11822 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11823, - 11823 - ], - "valid" - ], - [ - [ - 11824, - 11824 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11825, - 11825 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11826, - 11835 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11836, - 11842 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11843, - 11903 - ], - "disallowed" - ], - [ - [ - 11904, - 11929 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11930, - 11930 - ], - "disallowed" - ], - [ - [ - 11931, - 11934 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 11935, - 11935 - ], - "mapped", - [ - 27597 - ] - ], - [ - [ - 11936, - 12018 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12019, - 12019 - ], - "mapped", - [ - 40863 - ] - ], - [ - [ - 12020, - 12031 - ], - "disallowed" - ], - [ - [ - 12032, - 12032 - ], - "mapped", - [ - 19968 - ] - ], - [ - [ - 12033, - 12033 - ], - "mapped", - [ - 20008 - ] - ], - [ - [ - 12034, - 12034 - ], - "mapped", - [ - 20022 - ] - ], - [ - [ - 12035, - 12035 - ], - "mapped", - [ - 20031 - ] - ], - [ - [ - 12036, - 12036 - ], - "mapped", - [ - 20057 - ] - ], - [ - [ - 12037, - 12037 - ], - "mapped", - [ - 20101 - ] - ], - [ - [ - 12038, - 12038 - ], - "mapped", - [ - 20108 - ] - ], - [ - [ - 12039, - 12039 - ], - "mapped", - [ - 20128 - ] - ], - [ - [ - 12040, - 12040 - ], - "mapped", - [ - 20154 - ] - ], - [ - [ - 12041, - 12041 - ], - "mapped", - [ - 20799 - ] - ], - [ - [ - 12042, - 12042 - ], - "mapped", - [ - 20837 - ] - ], - [ - [ - 12043, - 12043 - ], - "mapped", - [ - 20843 - ] - ], - [ - [ - 12044, - 12044 - ], - "mapped", - [ - 20866 - ] - ], - [ - [ - 12045, - 12045 - ], - "mapped", - [ - 20886 - ] - ], - [ - [ - 12046, - 12046 - ], - "mapped", - [ - 20907 - ] - ], - [ - [ - 12047, - 12047 - ], - "mapped", - [ - 20960 - ] - ], - [ - [ - 12048, - 12048 - ], - "mapped", - [ - 20981 - ] - ], - [ - [ - 12049, - 12049 - ], - "mapped", - [ - 20992 - ] - ], - [ - [ - 12050, - 12050 - ], - "mapped", - [ - 21147 - ] - ], - [ - [ - 12051, - 12051 - ], - "mapped", - [ - 21241 - ] - ], - [ - [ - 12052, - 12052 - ], - "mapped", - [ - 21269 - ] - ], - [ - [ - 12053, - 12053 - ], - "mapped", - [ - 21274 - ] - ], - [ - [ - 12054, - 12054 - ], - "mapped", - [ - 21304 - ] - ], - [ - [ - 12055, - 12055 - ], - "mapped", - [ - 21313 - ] - ], - [ - [ - 12056, - 12056 - ], - "mapped", - [ - 21340 - ] - ], - [ - [ - 12057, - 12057 - ], - "mapped", - [ - 21353 - ] - ], - [ - [ - 12058, - 12058 - ], - "mapped", - [ - 21378 - ] - ], - [ - [ - 12059, - 12059 - ], - "mapped", - [ - 21430 - ] - ], - [ - [ - 12060, - 12060 - ], - "mapped", - [ - 21448 - ] - ], - [ - [ - 12061, - 12061 - ], - "mapped", - [ - 21475 - ] - ], - [ - [ - 12062, - 12062 - ], - "mapped", - [ - 22231 - ] - ], - [ - [ - 12063, - 12063 - ], - "mapped", - [ - 22303 - ] - ], - [ - [ - 12064, - 12064 - ], - "mapped", - [ - 22763 - ] - ], - [ - [ - 12065, - 12065 - ], - "mapped", - [ - 22786 - ] - ], - [ - [ - 12066, - 12066 - ], - "mapped", - [ - 22794 - ] - ], - [ - [ - 12067, - 12067 - ], - "mapped", - [ - 22805 - ] - ], - [ - [ - 12068, - 12068 - ], - "mapped", - [ - 22823 - ] - ], - [ - [ - 12069, - 12069 - ], - "mapped", - [ - 22899 - ] - ], - [ - [ - 12070, - 12070 - ], - "mapped", - [ - 23376 - ] - ], - [ - [ - 12071, - 12071 - ], - "mapped", - [ - 23424 - ] - ], - [ - [ - 12072, - 12072 - ], - "mapped", - [ - 23544 - ] - ], - [ - [ - 12073, - 12073 - ], - "mapped", - [ - 23567 - ] - ], - [ - [ - 12074, - 12074 - ], - "mapped", - [ - 23586 - ] - ], - [ - [ - 12075, - 12075 - ], - "mapped", - [ - 23608 - ] - ], - [ - [ - 12076, - 12076 - ], - "mapped", - [ - 23662 - ] - ], - [ - [ - 12077, - 12077 - ], - "mapped", - [ - 23665 - ] - ], - [ - [ - 12078, - 12078 - ], - "mapped", - [ - 24027 - ] - ], - [ - [ - 12079, - 12079 - ], - "mapped", - [ - 24037 - ] - ], - [ - [ - 12080, - 12080 - ], - "mapped", - [ - 24049 - ] - ], - [ - [ - 12081, - 12081 - ], - "mapped", - [ - 24062 - ] - ], - [ - [ - 12082, - 12082 - ], - "mapped", - [ - 24178 - ] - ], - [ - [ - 12083, - 12083 - ], - "mapped", - [ - 24186 - ] - ], - [ - [ - 12084, - 12084 - ], - "mapped", - [ - 24191 - ] - ], - [ - [ - 12085, - 12085 - ], - "mapped", - [ - 24308 - ] - ], - [ - [ - 12086, - 12086 - ], - "mapped", - [ - 24318 - ] - ], - [ - [ - 12087, - 12087 - ], - "mapped", - [ - 24331 - ] - ], - [ - [ - 12088, - 12088 - ], - "mapped", - [ - 24339 - ] - ], - [ - [ - 12089, - 12089 - ], - "mapped", - [ - 24400 - ] - ], - [ - [ - 12090, - 12090 - ], - "mapped", - [ - 24417 - ] - ], - [ - [ - 12091, - 12091 - ], - "mapped", - [ - 24435 - ] - ], - [ - [ - 12092, - 12092 - ], - "mapped", - [ - 24515 - ] - ], - [ - [ - 12093, - 12093 - ], - "mapped", - [ - 25096 - ] - ], - [ - [ - 12094, - 12094 - ], - "mapped", - [ - 25142 - ] - ], - [ - [ - 12095, - 12095 - ], - "mapped", - [ - 25163 - ] - ], - [ - [ - 12096, - 12096 - ], - "mapped", - [ - 25903 - ] - ], - [ - [ - 12097, - 12097 - ], - "mapped", - [ - 25908 - ] - ], - [ - [ - 12098, - 12098 - ], - "mapped", - [ - 25991 - ] - ], - [ - [ - 12099, - 12099 - ], - "mapped", - [ - 26007 - ] - ], - [ - [ - 12100, - 12100 - ], - "mapped", - [ - 26020 - ] - ], - [ - [ - 12101, - 12101 - ], - "mapped", - [ - 26041 - ] - ], - [ - [ - 12102, - 12102 - ], - "mapped", - [ - 26080 - ] - ], - [ - [ - 12103, - 12103 - ], - "mapped", - [ - 26085 - ] - ], - [ - [ - 12104, - 12104 - ], - "mapped", - [ - 26352 - ] - ], - [ - [ - 12105, - 12105 - ], - "mapped", - [ - 26376 - ] - ], - [ - [ - 12106, - 12106 - ], - "mapped", - [ - 26408 - ] - ], - [ - [ - 12107, - 12107 - ], - "mapped", - [ - 27424 - ] - ], - [ - [ - 12108, - 12108 - ], - "mapped", - [ - 27490 - ] - ], - [ - [ - 12109, - 12109 - ], - "mapped", - [ - 27513 - ] - ], - [ - [ - 12110, - 12110 - ], - "mapped", - [ - 27571 - ] - ], - [ - [ - 12111, - 12111 - ], - "mapped", - [ - 27595 - ] - ], - [ - [ - 12112, - 12112 - ], - "mapped", - [ - 27604 - ] - ], - [ - [ - 12113, - 12113 - ], - "mapped", - [ - 27611 - ] - ], - [ - [ - 12114, - 12114 - ], - "mapped", - [ - 27663 - ] - ], - [ - [ - 12115, - 12115 - ], - "mapped", - [ - 27668 - ] - ], - [ - [ - 12116, - 12116 - ], - "mapped", - [ - 27700 - ] - ], - [ - [ - 12117, - 12117 - ], - "mapped", - [ - 28779 - ] - ], - [ - [ - 12118, - 12118 - ], - "mapped", - [ - 29226 - ] - ], - [ - [ - 12119, - 12119 - ], - "mapped", - [ - 29238 - ] - ], - [ - [ - 12120, - 12120 - ], - "mapped", - [ - 29243 - ] - ], - [ - [ - 12121, - 12121 - ], - "mapped", - [ - 29247 - ] - ], - [ - [ - 12122, - 12122 - ], - "mapped", - [ - 29255 - ] - ], - [ - [ - 12123, - 12123 - ], - "mapped", - [ - 29273 - ] - ], - [ - [ - 12124, - 12124 - ], - "mapped", - [ - 29275 - ] - ], - [ - [ - 12125, - 12125 - ], - "mapped", - [ - 29356 - ] - ], - [ - [ - 12126, - 12126 - ], - "mapped", - [ - 29572 - ] - ], - [ - [ - 12127, - 12127 - ], - "mapped", - [ - 29577 - ] - ], - [ - [ - 12128, - 12128 - ], - "mapped", - [ - 29916 - ] - ], - [ - [ - 12129, - 12129 - ], - "mapped", - [ - 29926 - ] - ], - [ - [ - 12130, - 12130 - ], - "mapped", - [ - 29976 - ] - ], - [ - [ - 12131, - 12131 - ], - "mapped", - [ - 29983 - ] - ], - [ - [ - 12132, - 12132 - ], - "mapped", - [ - 29992 - ] - ], - [ - [ - 12133, - 12133 - ], - "mapped", - [ - 30000 - ] - ], - [ - [ - 12134, - 12134 - ], - "mapped", - [ - 30091 - ] - ], - [ - [ - 12135, - 12135 - ], - "mapped", - [ - 30098 - ] - ], - [ - [ - 12136, - 12136 - ], - "mapped", - [ - 30326 - ] - ], - [ - [ - 12137, - 12137 - ], - "mapped", - [ - 30333 - ] - ], - [ - [ - 12138, - 12138 - ], - "mapped", - [ - 30382 - ] - ], - [ - [ - 12139, - 12139 - ], - "mapped", - [ - 30399 - ] - ], - [ - [ - 12140, - 12140 - ], - "mapped", - [ - 30446 - ] - ], - [ - [ - 12141, - 12141 - ], - "mapped", - [ - 30683 - ] - ], - [ - [ - 12142, - 12142 - ], - "mapped", - [ - 30690 - ] - ], - [ - [ - 12143, - 12143 - ], - "mapped", - [ - 30707 - ] - ], - [ - [ - 12144, - 12144 - ], - "mapped", - [ - 31034 - ] - ], - [ - [ - 12145, - 12145 - ], - "mapped", - [ - 31160 - ] - ], - [ - [ - 12146, - 12146 - ], - "mapped", - [ - 31166 - ] - ], - [ - [ - 12147, - 12147 - ], - "mapped", - [ - 31348 - ] - ], - [ - [ - 12148, - 12148 - ], - "mapped", - [ - 31435 - ] - ], - [ - [ - 12149, - 12149 - ], - "mapped", - [ - 31481 - ] - ], - [ - [ - 12150, - 12150 - ], - "mapped", - [ - 31859 - ] - ], - [ - [ - 12151, - 12151 - ], - "mapped", - [ - 31992 - ] - ], - [ - [ - 12152, - 12152 - ], - "mapped", - [ - 32566 - ] - ], - [ - [ - 12153, - 12153 - ], - "mapped", - [ - 32593 - ] - ], - [ - [ - 12154, - 12154 - ], - "mapped", - [ - 32650 - ] - ], - [ - [ - 12155, - 12155 - ], - "mapped", - [ - 32701 - ] - ], - [ - [ - 12156, - 12156 - ], - "mapped", - [ - 32769 - ] - ], - [ - [ - 12157, - 12157 - ], - "mapped", - [ - 32780 - ] - ], - [ - [ - 12158, - 12158 - ], - "mapped", - [ - 32786 - ] - ], - [ - [ - 12159, - 12159 - ], - "mapped", - [ - 32819 - ] - ], - [ - [ - 12160, - 12160 - ], - "mapped", - [ - 32895 - ] - ], - [ - [ - 12161, - 12161 - ], - "mapped", - [ - 32905 - ] - ], - [ - [ - 12162, - 12162 - ], - "mapped", - [ - 33251 - ] - ], - [ - [ - 12163, - 12163 - ], - "mapped", - [ - 33258 - ] - ], - [ - [ - 12164, - 12164 - ], - "mapped", - [ - 33267 - ] - ], - [ - [ - 12165, - 12165 - ], - "mapped", - [ - 33276 - ] - ], - [ - [ - 12166, - 12166 - ], - "mapped", - [ - 33292 - ] - ], - [ - [ - 12167, - 12167 - ], - "mapped", - [ - 33307 - ] - ], - [ - [ - 12168, - 12168 - ], - "mapped", - [ - 33311 - ] - ], - [ - [ - 12169, - 12169 - ], - "mapped", - [ - 33390 - ] - ], - [ - [ - 12170, - 12170 - ], - "mapped", - [ - 33394 - ] - ], - [ - [ - 12171, - 12171 - ], - "mapped", - [ - 33400 - ] - ], - [ - [ - 12172, - 12172 - ], - "mapped", - [ - 34381 - ] - ], - [ - [ - 12173, - 12173 - ], - "mapped", - [ - 34411 - ] - ], - [ - [ - 12174, - 12174 - ], - "mapped", - [ - 34880 - ] - ], - [ - [ - 12175, - 12175 - ], - "mapped", - [ - 34892 - ] - ], - [ - [ - 12176, - 12176 - ], - "mapped", - [ - 34915 - ] - ], - [ - [ - 12177, - 12177 - ], - "mapped", - [ - 35198 - ] - ], - [ - [ - 12178, - 12178 - ], - "mapped", - [ - 35211 - ] - ], - [ - [ - 12179, - 12179 - ], - "mapped", - [ - 35282 - ] - ], - [ - [ - 12180, - 12180 - ], - "mapped", - [ - 35328 - ] - ], - [ - [ - 12181, - 12181 - ], - "mapped", - [ - 35895 - ] - ], - [ - [ - 12182, - 12182 - ], - "mapped", - [ - 35910 - ] - ], - [ - [ - 12183, - 12183 - ], - "mapped", - [ - 35925 - ] - ], - [ - [ - 12184, - 12184 - ], - "mapped", - [ - 35960 - ] - ], - [ - [ - 12185, - 12185 - ], - "mapped", - [ - 35997 - ] - ], - [ - [ - 12186, - 12186 - ], - "mapped", - [ - 36196 - ] - ], - [ - [ - 12187, - 12187 - ], - "mapped", - [ - 36208 - ] - ], - [ - [ - 12188, - 12188 - ], - "mapped", - [ - 36275 - ] - ], - [ - [ - 12189, - 12189 - ], - "mapped", - [ - 36523 - ] - ], - [ - [ - 12190, - 12190 - ], - "mapped", - [ - 36554 - ] - ], - [ - [ - 12191, - 12191 - ], - "mapped", - [ - 36763 - ] - ], - [ - [ - 12192, - 12192 - ], - "mapped", - [ - 36784 - ] - ], - [ - [ - 12193, - 12193 - ], - "mapped", - [ - 36789 - ] - ], - [ - [ - 12194, - 12194 - ], - "mapped", - [ - 37009 - ] - ], - [ - [ - 12195, - 12195 - ], - "mapped", - [ - 37193 - ] - ], - [ - [ - 12196, - 12196 - ], - "mapped", - [ - 37318 - ] - ], - [ - [ - 12197, - 12197 - ], - "mapped", - [ - 37324 - ] - ], - [ - [ - 12198, - 12198 - ], - "mapped", - [ - 37329 - ] - ], - [ - [ - 12199, - 12199 - ], - "mapped", - [ - 38263 - ] - ], - [ - [ - 12200, - 12200 - ], - "mapped", - [ - 38272 - ] - ], - [ - [ - 12201, - 12201 - ], - "mapped", - [ - 38428 - ] - ], - [ - [ - 12202, - 12202 - ], - "mapped", - [ - 38582 - ] - ], - [ - [ - 12203, - 12203 - ], - "mapped", - [ - 38585 - ] - ], - [ - [ - 12204, - 12204 - ], - "mapped", - [ - 38632 - ] - ], - [ - [ - 12205, - 12205 - ], - "mapped", - [ - 38737 - ] - ], - [ - [ - 12206, - 12206 - ], - "mapped", - [ - 38750 - ] - ], - [ - [ - 12207, - 12207 - ], - "mapped", - [ - 38754 - ] - ], - [ - [ - 12208, - 12208 - ], - "mapped", - [ - 38761 - ] - ], - [ - [ - 12209, - 12209 - ], - "mapped", - [ - 38859 - ] - ], - [ - [ - 12210, - 12210 - ], - "mapped", - [ - 38893 - ] - ], - [ - [ - 12211, - 12211 - ], - "mapped", - [ - 38899 - ] - ], - [ - [ - 12212, - 12212 - ], - "mapped", - [ - 38913 - ] - ], - [ - [ - 12213, - 12213 - ], - "mapped", - [ - 39080 - ] - ], - [ - [ - 12214, - 12214 - ], - "mapped", - [ - 39131 - ] - ], - [ - [ - 12215, - 12215 - ], - "mapped", - [ - 39135 - ] - ], - [ - [ - 12216, - 12216 - ], - "mapped", - [ - 39318 - ] - ], - [ - [ - 12217, - 12217 - ], - "mapped", - [ - 39321 - ] - ], - [ - [ - 12218, - 12218 - ], - "mapped", - [ - 39340 - ] - ], - [ - [ - 12219, - 12219 - ], - "mapped", - [ - 39592 - ] - ], - [ - [ - 12220, - 12220 - ], - "mapped", - [ - 39640 - ] - ], - [ - [ - 12221, - 12221 - ], - "mapped", - [ - 39647 - ] - ], - [ - [ - 12222, - 12222 - ], - "mapped", - [ - 39717 - ] - ], - [ - [ - 12223, - 12223 - ], - "mapped", - [ - 39727 - ] - ], - [ - [ - 12224, - 12224 - ], - "mapped", - [ - 39730 - ] - ], - [ - [ - 12225, - 12225 - ], - "mapped", - [ - 39740 - ] - ], - [ - [ - 12226, - 12226 - ], - "mapped", - [ - 39770 - ] - ], - [ - [ - 12227, - 12227 - ], - "mapped", - [ - 40165 - ] - ], - [ - [ - 12228, - 12228 - ], - "mapped", - [ - 40565 - ] - ], - [ - [ - 12229, - 12229 - ], - "mapped", - [ - 40575 - ] - ], - [ - [ - 12230, - 12230 - ], - "mapped", - [ - 40613 - ] - ], - [ - [ - 12231, - 12231 - ], - "mapped", - [ - 40635 - ] - ], - [ - [ - 12232, - 12232 - ], - "mapped", - [ - 40643 - ] - ], - [ - [ - 12233, - 12233 - ], - "mapped", - [ - 40653 - ] - ], - [ - [ - 12234, - 12234 - ], - "mapped", - [ - 40657 - ] - ], - [ - [ - 12235, - 12235 - ], - "mapped", - [ - 40697 - ] - ], - [ - [ - 12236, - 12236 - ], - "mapped", - [ - 40701 - ] - ], - [ - [ - 12237, - 12237 - ], - "mapped", - [ - 40718 - ] - ], - [ - [ - 12238, - 12238 - ], - "mapped", - [ - 40723 - ] - ], - [ - [ - 12239, - 12239 - ], - "mapped", - [ - 40736 - ] - ], - [ - [ - 12240, - 12240 - ], - "mapped", - [ - 40763 - ] - ], - [ - [ - 12241, - 12241 - ], - "mapped", - [ - 40778 - ] - ], - [ - [ - 12242, - 12242 - ], - "mapped", - [ - 40786 - ] - ], - [ - [ - 12243, - 12243 - ], - "mapped", - [ - 40845 - ] - ], - [ - [ - 12244, - 12244 - ], - "mapped", - [ - 40860 - ] - ], - [ - [ - 12245, - 12245 - ], - "mapped", - [ - 40864 - ] - ], - [ - [ - 12246, - 12271 - ], - "disallowed" - ], - [ - [ - 12272, - 12283 - ], - "disallowed" - ], - [ - [ - 12284, - 12287 - ], - "disallowed" - ], - [ - [ - 12288, - 12288 - ], - "disallowed_STD3_mapped", - [ - 32 - ] - ], - [ - [ - 12289, - 12289 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12290, - 12290 - ], - "mapped", - [ - 46 - ] - ], - [ - [ - 12291, - 12292 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12293, - 12295 - ], - "valid" - ], - [ - [ - 12296, - 12329 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12330, - 12333 - ], - "valid" - ], - [ - [ - 12334, - 12341 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12342, - 12342 - ], - "mapped", - [ - 12306 - ] - ], - [ - [ - 12343, - 12343 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12344, - 12344 - ], - "mapped", - [ - 21313 - ] - ], - [ - [ - 12345, - 12345 - ], - "mapped", - [ - 21316 - ] - ], - [ - [ - 12346, - 12346 - ], - "mapped", - [ - 21317 - ] - ], - [ - [ - 12347, - 12347 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12348, - 12348 - ], - "valid" - ], - [ - [ - 12349, - 12349 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12350, - 12350 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12351, - 12351 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12352, - 12352 - ], - "disallowed" - ], - [ - [ - 12353, - 12436 - ], - "valid" - ], - [ - [ - 12437, - 12438 - ], - "valid" - ], - [ - [ - 12439, - 12440 - ], - "disallowed" - ], - [ - [ - 12441, - 12442 - ], - "valid" - ], - [ - [ - 12443, - 12443 - ], - "disallowed_STD3_mapped", - [ - 32, - 12441 - ] - ], - [ - [ - 12444, - 12444 - ], - "disallowed_STD3_mapped", - [ - 32, - 12442 - ] - ], - [ - [ - 12445, - 12446 - ], - "valid" - ], - [ - [ - 12447, - 12447 - ], - "mapped", - [ - 12424, - 12426 - ] - ], - [ - [ - 12448, - 12448 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12449, - 12542 - ], - "valid" - ], - [ - [ - 12543, - 12543 - ], - "mapped", - [ - 12467, - 12488 - ] - ], - [ - [ - 12544, - 12548 - ], - "disallowed" - ], - [ - [ - 12549, - 12588 - ], - "valid" - ], - [ - [ - 12589, - 12589 - ], - "valid" - ], - [ - [ - 12590, - 12592 - ], - "disallowed" - ], - [ - [ - 12593, - 12593 - ], - "mapped", - [ - 4352 - ] - ], - [ - [ - 12594, - 12594 - ], - "mapped", - [ - 4353 - ] - ], - [ - [ - 12595, - 12595 - ], - "mapped", - [ - 4522 - ] - ], - [ - [ - 12596, - 12596 - ], - "mapped", - [ - 4354 - ] - ], - [ - [ - 12597, - 12597 - ], - "mapped", - [ - 4524 - ] - ], - [ - [ - 12598, - 12598 - ], - "mapped", - [ - 4525 - ] - ], - [ - [ - 12599, - 12599 - ], - "mapped", - [ - 4355 - ] - ], - [ - [ - 12600, - 12600 - ], - "mapped", - [ - 4356 - ] - ], - [ - [ - 12601, - 12601 - ], - "mapped", - [ - 4357 - ] - ], - [ - [ - 12602, - 12602 - ], - "mapped", - [ - 4528 - ] - ], - [ - [ - 12603, - 12603 - ], - "mapped", - [ - 4529 - ] - ], - [ - [ - 12604, - 12604 - ], - "mapped", - [ - 4530 - ] - ], - [ - [ - 12605, - 12605 - ], - "mapped", - [ - 4531 - ] - ], - [ - [ - 12606, - 12606 - ], - "mapped", - [ - 4532 - ] - ], - [ - [ - 12607, - 12607 - ], - "mapped", - [ - 4533 - ] - ], - [ - [ - 12608, - 12608 - ], - "mapped", - [ - 4378 - ] - ], - [ - [ - 12609, - 12609 - ], - "mapped", - [ - 4358 - ] - ], - [ - [ - 12610, - 12610 - ], - "mapped", - [ - 4359 - ] - ], - [ - [ - 12611, - 12611 - ], - "mapped", - [ - 4360 - ] - ], - [ - [ - 12612, - 12612 - ], - "mapped", - [ - 4385 - ] - ], - [ - [ - 12613, - 12613 - ], - "mapped", - [ - 4361 - ] - ], - [ - [ - 12614, - 12614 - ], - "mapped", - [ - 4362 - ] - ], - [ - [ - 12615, - 12615 - ], - "mapped", - [ - 4363 - ] - ], - [ - [ - 12616, - 12616 - ], - "mapped", - [ - 4364 - ] - ], - [ - [ - 12617, - 12617 - ], - "mapped", - [ - 4365 - ] - ], - [ - [ - 12618, - 12618 - ], - "mapped", - [ - 4366 - ] - ], - [ - [ - 12619, - 12619 - ], - "mapped", - [ - 4367 - ] - ], - [ - [ - 12620, - 12620 - ], - "mapped", - [ - 4368 - ] - ], - [ - [ - 12621, - 12621 - ], - "mapped", - [ - 4369 - ] - ], - [ - [ - 12622, - 12622 - ], - "mapped", - [ - 4370 - ] - ], - [ - [ - 12623, - 12623 - ], - "mapped", - [ - 4449 - ] - ], - [ - [ - 12624, - 12624 - ], - "mapped", - [ - 4450 - ] - ], - [ - [ - 12625, - 12625 - ], - "mapped", - [ - 4451 - ] - ], - [ - [ - 12626, - 12626 - ], - "mapped", - [ - 4452 - ] - ], - [ - [ - 12627, - 12627 - ], - "mapped", - [ - 4453 - ] - ], - [ - [ - 12628, - 12628 - ], - "mapped", - [ - 4454 - ] - ], - [ - [ - 12629, - 12629 - ], - "mapped", - [ - 4455 - ] - ], - [ - [ - 12630, - 12630 - ], - "mapped", - [ - 4456 - ] - ], - [ - [ - 12631, - 12631 - ], - "mapped", - [ - 4457 - ] - ], - [ - [ - 12632, - 12632 - ], - "mapped", - [ - 4458 - ] - ], - [ - [ - 12633, - 12633 - ], - "mapped", - [ - 4459 - ] - ], - [ - [ - 12634, - 12634 - ], - "mapped", - [ - 4460 - ] - ], - [ - [ - 12635, - 12635 - ], - "mapped", - [ - 4461 - ] - ], - [ - [ - 12636, - 12636 - ], - "mapped", - [ - 4462 - ] - ], - [ - [ - 12637, - 12637 - ], - "mapped", - [ - 4463 - ] - ], - [ - [ - 12638, - 12638 - ], - "mapped", - [ - 4464 - ] - ], - [ - [ - 12639, - 12639 - ], - "mapped", - [ - 4465 - ] - ], - [ - [ - 12640, - 12640 - ], - "mapped", - [ - 4466 - ] - ], - [ - [ - 12641, - 12641 - ], - "mapped", - [ - 4467 - ] - ], - [ - [ - 12642, - 12642 - ], - "mapped", - [ - 4468 - ] - ], - [ - [ - 12643, - 12643 - ], - "mapped", - [ - 4469 - ] - ], - [ - [ - 12644, - 12644 - ], - "disallowed" - ], - [ - [ - 12645, - 12645 - ], - "mapped", - [ - 4372 - ] - ], - [ - [ - 12646, - 12646 - ], - "mapped", - [ - 4373 - ] - ], - [ - [ - 12647, - 12647 - ], - "mapped", - [ - 4551 - ] - ], - [ - [ - 12648, - 12648 - ], - "mapped", - [ - 4552 - ] - ], - [ - [ - 12649, - 12649 - ], - "mapped", - [ - 4556 - ] - ], - [ - [ - 12650, - 12650 - ], - "mapped", - [ - 4558 - ] - ], - [ - [ - 12651, - 12651 - ], - "mapped", - [ - 4563 - ] - ], - [ - [ - 12652, - 12652 - ], - "mapped", - [ - 4567 - ] - ], - [ - [ - 12653, - 12653 - ], - "mapped", - [ - 4569 - ] - ], - [ - [ - 12654, - 12654 - ], - "mapped", - [ - 4380 - ] - ], - [ - [ - 12655, - 12655 - ], - "mapped", - [ - 4573 - ] - ], - [ - [ - 12656, - 12656 - ], - "mapped", - [ - 4575 - ] - ], - [ - [ - 12657, - 12657 - ], - "mapped", - [ - 4381 - ] - ], - [ - [ - 12658, - 12658 - ], - "mapped", - [ - 4382 - ] - ], - [ - [ - 12659, - 12659 - ], - "mapped", - [ - 4384 - ] - ], - [ - [ - 12660, - 12660 - ], - "mapped", - [ - 4386 - ] - ], - [ - [ - 12661, - 12661 - ], - "mapped", - [ - 4387 - ] - ], - [ - [ - 12662, - 12662 - ], - "mapped", - [ - 4391 - ] - ], - [ - [ - 12663, - 12663 - ], - "mapped", - [ - 4393 - ] - ], - [ - [ - 12664, - 12664 - ], - "mapped", - [ - 4395 - ] - ], - [ - [ - 12665, - 12665 - ], - "mapped", - [ - 4396 - ] - ], - [ - [ - 12666, - 12666 - ], - "mapped", - [ - 4397 - ] - ], - [ - [ - 12667, - 12667 - ], - "mapped", - [ - 4398 - ] - ], - [ - [ - 12668, - 12668 - ], - "mapped", - [ - 4399 - ] - ], - [ - [ - 12669, - 12669 - ], - "mapped", - [ - 4402 - ] - ], - [ - [ - 12670, - 12670 - ], - "mapped", - [ - 4406 - ] - ], - [ - [ - 12671, - 12671 - ], - "mapped", - [ - 4416 - ] - ], - [ - [ - 12672, - 12672 - ], - "mapped", - [ - 4423 - ] - ], - [ - [ - 12673, - 12673 - ], - "mapped", - [ - 4428 - ] - ], - [ - [ - 12674, - 12674 - ], - "mapped", - [ - 4593 - ] - ], - [ - [ - 12675, - 12675 - ], - "mapped", - [ - 4594 - ] - ], - [ - [ - 12676, - 12676 - ], - "mapped", - [ - 4439 - ] - ], - [ - [ - 12677, - 12677 - ], - "mapped", - [ - 4440 - ] - ], - [ - [ - 12678, - 12678 - ], - "mapped", - [ - 4441 - ] - ], - [ - [ - 12679, - 12679 - ], - "mapped", - [ - 4484 - ] - ], - [ - [ - 12680, - 12680 - ], - "mapped", - [ - 4485 - ] - ], - [ - [ - 12681, - 12681 - ], - "mapped", - [ - 4488 - ] - ], - [ - [ - 12682, - 12682 - ], - "mapped", - [ - 4497 - ] - ], - [ - [ - 12683, - 12683 - ], - "mapped", - [ - 4498 - ] - ], - [ - [ - 12684, - 12684 - ], - "mapped", - [ - 4500 - ] - ], - [ - [ - 12685, - 12685 - ], - "mapped", - [ - 4510 - ] - ], - [ - [ - 12686, - 12686 - ], - "mapped", - [ - 4513 - ] - ], - [ - [ - 12687, - 12687 - ], - "disallowed" - ], - [ - [ - 12688, - 12689 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12690, - 12690 - ], - "mapped", - [ - 19968 - ] - ], - [ - [ - 12691, - 12691 - ], - "mapped", - [ - 20108 - ] - ], - [ - [ - 12692, - 12692 - ], - "mapped", - [ - 19977 - ] - ], - [ - [ - 12693, - 12693 - ], - "mapped", - [ - 22235 - ] - ], - [ - [ - 12694, - 12694 - ], - "mapped", - [ - 19978 - ] - ], - [ - [ - 12695, - 12695 - ], - "mapped", - [ - 20013 - ] - ], - [ - [ - 12696, - 12696 - ], - "mapped", - [ - 19979 - ] - ], - [ - [ - 12697, - 12697 - ], - "mapped", - [ - 30002 - ] - ], - [ - [ - 12698, - 12698 - ], - "mapped", - [ - 20057 - ] - ], - [ - [ - 12699, - 12699 - ], - "mapped", - [ - 19993 - ] - ], - [ - [ - 12700, - 12700 - ], - "mapped", - [ - 19969 - ] - ], - [ - [ - 12701, - 12701 - ], - "mapped", - [ - 22825 - ] - ], - [ - [ - 12702, - 12702 - ], - "mapped", - [ - 22320 - ] - ], - [ - [ - 12703, - 12703 - ], - "mapped", - [ - 20154 - ] - ], - [ - [ - 12704, - 12727 - ], - "valid" - ], - [ - [ - 12728, - 12730 - ], - "valid" - ], - [ - [ - 12731, - 12735 - ], - "disallowed" - ], - [ - [ - 12736, - 12751 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12752, - 12771 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12772, - 12783 - ], - "disallowed" - ], - [ - [ - 12784, - 12799 - ], - "valid" - ], - [ - [ - 12800, - 12800 - ], - "disallowed_STD3_mapped", - [ - 40, - 4352, - 41 - ] - ], - [ - [ - 12801, - 12801 - ], - "disallowed_STD3_mapped", - [ - 40, - 4354, - 41 - ] - ], - [ - [ - 12802, - 12802 - ], - "disallowed_STD3_mapped", - [ - 40, - 4355, - 41 - ] - ], - [ - [ - 12803, - 12803 - ], - "disallowed_STD3_mapped", - [ - 40, - 4357, - 41 - ] - ], - [ - [ - 12804, - 12804 - ], - "disallowed_STD3_mapped", - [ - 40, - 4358, - 41 - ] - ], - [ - [ - 12805, - 12805 - ], - "disallowed_STD3_mapped", - [ - 40, - 4359, - 41 - ] - ], - [ - [ - 12806, - 12806 - ], - "disallowed_STD3_mapped", - [ - 40, - 4361, - 41 - ] - ], - [ - [ - 12807, - 12807 - ], - "disallowed_STD3_mapped", - [ - 40, - 4363, - 41 - ] - ], - [ - [ - 12808, - 12808 - ], - "disallowed_STD3_mapped", - [ - 40, - 4364, - 41 - ] - ], - [ - [ - 12809, - 12809 - ], - "disallowed_STD3_mapped", - [ - 40, - 4366, - 41 - ] - ], - [ - [ - 12810, - 12810 - ], - "disallowed_STD3_mapped", - [ - 40, - 4367, - 41 - ] - ], - [ - [ - 12811, - 12811 - ], - "disallowed_STD3_mapped", - [ - 40, - 4368, - 41 - ] - ], - [ - [ - 12812, - 12812 - ], - "disallowed_STD3_mapped", - [ - 40, - 4369, - 41 - ] - ], - [ - [ - 12813, - 12813 - ], - "disallowed_STD3_mapped", - [ - 40, - 4370, - 41 - ] - ], - [ - [ - 12814, - 12814 - ], - "disallowed_STD3_mapped", - [ - 40, - 44032, - 41 - ] - ], - [ - [ - 12815, - 12815 - ], - "disallowed_STD3_mapped", - [ - 40, - 45208, - 41 - ] - ], - [ - [ - 12816, - 12816 - ], - "disallowed_STD3_mapped", - [ - 40, - 45796, - 41 - ] - ], - [ - [ - 12817, - 12817 - ], - "disallowed_STD3_mapped", - [ - 40, - 46972, - 41 - ] - ], - [ - [ - 12818, - 12818 - ], - "disallowed_STD3_mapped", - [ - 40, - 47560, - 41 - ] - ], - [ - [ - 12819, - 12819 - ], - "disallowed_STD3_mapped", - [ - 40, - 48148, - 41 - ] - ], - [ - [ - 12820, - 12820 - ], - "disallowed_STD3_mapped", - [ - 40, - 49324, - 41 - ] - ], - [ - [ - 12821, - 12821 - ], - "disallowed_STD3_mapped", - [ - 40, - 50500, - 41 - ] - ], - [ - [ - 12822, - 12822 - ], - "disallowed_STD3_mapped", - [ - 40, - 51088, - 41 - ] - ], - [ - [ - 12823, - 12823 - ], - "disallowed_STD3_mapped", - [ - 40, - 52264, - 41 - ] - ], - [ - [ - 12824, - 12824 - ], - "disallowed_STD3_mapped", - [ - 40, - 52852, - 41 - ] - ], - [ - [ - 12825, - 12825 - ], - "disallowed_STD3_mapped", - [ - 40, - 53440, - 41 - ] - ], - [ - [ - 12826, - 12826 - ], - "disallowed_STD3_mapped", - [ - 40, - 54028, - 41 - ] - ], - [ - [ - 12827, - 12827 - ], - "disallowed_STD3_mapped", - [ - 40, - 54616, - 41 - ] - ], - [ - [ - 12828, - 12828 - ], - "disallowed_STD3_mapped", - [ - 40, - 51452, - 41 - ] - ], - [ - [ - 12829, - 12829 - ], - "disallowed_STD3_mapped", - [ - 40, - 50724, - 51204, - 41 - ] - ], - [ - [ - 12830, - 12830 - ], - "disallowed_STD3_mapped", - [ - 40, - 50724, - 54980, - 41 - ] - ], - [ - [ - 12831, - 12831 - ], - "disallowed" - ], - [ - [ - 12832, - 12832 - ], - "disallowed_STD3_mapped", - [ - 40, - 19968, - 41 - ] - ], - [ - [ - 12833, - 12833 - ], - "disallowed_STD3_mapped", - [ - 40, - 20108, - 41 - ] - ], - [ - [ - 12834, - 12834 - ], - "disallowed_STD3_mapped", - [ - 40, - 19977, - 41 - ] - ], - [ - [ - 12835, - 12835 - ], - "disallowed_STD3_mapped", - [ - 40, - 22235, - 41 - ] - ], - [ - [ - 12836, - 12836 - ], - "disallowed_STD3_mapped", - [ - 40, - 20116, - 41 - ] - ], - [ - [ - 12837, - 12837 - ], - "disallowed_STD3_mapped", - [ - 40, - 20845, - 41 - ] - ], - [ - [ - 12838, - 12838 - ], - "disallowed_STD3_mapped", - [ - 40, - 19971, - 41 - ] - ], - [ - [ - 12839, - 12839 - ], - "disallowed_STD3_mapped", - [ - 40, - 20843, - 41 - ] - ], - [ - [ - 12840, - 12840 - ], - "disallowed_STD3_mapped", - [ - 40, - 20061, - 41 - ] - ], - [ - [ - 12841, - 12841 - ], - "disallowed_STD3_mapped", - [ - 40, - 21313, - 41 - ] - ], - [ - [ - 12842, - 12842 - ], - "disallowed_STD3_mapped", - [ - 40, - 26376, - 41 - ] - ], - [ - [ - 12843, - 12843 - ], - "disallowed_STD3_mapped", - [ - 40, - 28779, - 41 - ] - ], - [ - [ - 12844, - 12844 - ], - "disallowed_STD3_mapped", - [ - 40, - 27700, - 41 - ] - ], - [ - [ - 12845, - 12845 - ], - "disallowed_STD3_mapped", - [ - 40, - 26408, - 41 - ] - ], - [ - [ - 12846, - 12846 - ], - "disallowed_STD3_mapped", - [ - 40, - 37329, - 41 - ] - ], - [ - [ - 12847, - 12847 - ], - "disallowed_STD3_mapped", - [ - 40, - 22303, - 41 - ] - ], - [ - [ - 12848, - 12848 - ], - "disallowed_STD3_mapped", - [ - 40, - 26085, - 41 - ] - ], - [ - [ - 12849, - 12849 - ], - "disallowed_STD3_mapped", - [ - 40, - 26666, - 41 - ] - ], - [ - [ - 12850, - 12850 - ], - "disallowed_STD3_mapped", - [ - 40, - 26377, - 41 - ] - ], - [ - [ - 12851, - 12851 - ], - "disallowed_STD3_mapped", - [ - 40, - 31038, - 41 - ] - ], - [ - [ - 12852, - 12852 - ], - "disallowed_STD3_mapped", - [ - 40, - 21517, - 41 - ] - ], - [ - [ - 12853, - 12853 - ], - "disallowed_STD3_mapped", - [ - 40, - 29305, - 41 - ] - ], - [ - [ - 12854, - 12854 - ], - "disallowed_STD3_mapped", - [ - 40, - 36001, - 41 - ] - ], - [ - [ - 12855, - 12855 - ], - "disallowed_STD3_mapped", - [ - 40, - 31069, - 41 - ] - ], - [ - [ - 12856, - 12856 - ], - "disallowed_STD3_mapped", - [ - 40, - 21172, - 41 - ] - ], - [ - [ - 12857, - 12857 - ], - "disallowed_STD3_mapped", - [ - 40, - 20195, - 41 - ] - ], - [ - [ - 12858, - 12858 - ], - "disallowed_STD3_mapped", - [ - 40, - 21628, - 41 - ] - ], - [ - [ - 12859, - 12859 - ], - "disallowed_STD3_mapped", - [ - 40, - 23398, - 41 - ] - ], - [ - [ - 12860, - 12860 - ], - "disallowed_STD3_mapped", - [ - 40, - 30435, - 41 - ] - ], - [ - [ - 12861, - 12861 - ], - "disallowed_STD3_mapped", - [ - 40, - 20225, - 41 - ] - ], - [ - [ - 12862, - 12862 - ], - "disallowed_STD3_mapped", - [ - 40, - 36039, - 41 - ] - ], - [ - [ - 12863, - 12863 - ], - "disallowed_STD3_mapped", - [ - 40, - 21332, - 41 - ] - ], - [ - [ - 12864, - 12864 - ], - "disallowed_STD3_mapped", - [ - 40, - 31085, - 41 - ] - ], - [ - [ - 12865, - 12865 - ], - "disallowed_STD3_mapped", - [ - 40, - 20241, - 41 - ] - ], - [ - [ - 12866, - 12866 - ], - "disallowed_STD3_mapped", - [ - 40, - 33258, - 41 - ] - ], - [ - [ - 12867, - 12867 - ], - "disallowed_STD3_mapped", - [ - 40, - 33267, - 41 - ] - ], - [ - [ - 12868, - 12868 - ], - "mapped", - [ - 21839 - ] - ], - [ - [ - 12869, - 12869 - ], - "mapped", - [ - 24188 - ] - ], - [ - [ - 12870, - 12870 - ], - "mapped", - [ - 25991 - ] - ], - [ - [ - 12871, - 12871 - ], - "mapped", - [ - 31631 - ] - ], - [ - [ - 12872, - 12879 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12880, - 12880 - ], - "mapped", - [ - 112, - 116, - 101 - ] - ], - [ - [ - 12881, - 12881 - ], - "mapped", - [ - 50, - 49 - ] - ], - [ - [ - 12882, - 12882 - ], - "mapped", - [ - 50, - 50 - ] - ], - [ - [ - 12883, - 12883 - ], - "mapped", - [ - 50, - 51 - ] - ], - [ - [ - 12884, - 12884 - ], - "mapped", - [ - 50, - 52 - ] - ], - [ - [ - 12885, - 12885 - ], - "mapped", - [ - 50, - 53 - ] - ], - [ - [ - 12886, - 12886 - ], - "mapped", - [ - 50, - 54 - ] - ], - [ - [ - 12887, - 12887 - ], - "mapped", - [ - 50, - 55 - ] - ], - [ - [ - 12888, - 12888 - ], - "mapped", - [ - 50, - 56 - ] - ], - [ - [ - 12889, - 12889 - ], - "mapped", - [ - 50, - 57 - ] - ], - [ - [ - 12890, - 12890 - ], - "mapped", - [ - 51, - 48 - ] - ], - [ - [ - 12891, - 12891 - ], - "mapped", - [ - 51, - 49 - ] - ], - [ - [ - 12892, - 12892 - ], - "mapped", - [ - 51, - 50 - ] - ], - [ - [ - 12893, - 12893 - ], - "mapped", - [ - 51, - 51 - ] - ], - [ - [ - 12894, - 12894 - ], - "mapped", - [ - 51, - 52 - ] - ], - [ - [ - 12895, - 12895 - ], - "mapped", - [ - 51, - 53 - ] - ], - [ - [ - 12896, - 12896 - ], - "mapped", - [ - 4352 - ] - ], - [ - [ - 12897, - 12897 - ], - "mapped", - [ - 4354 - ] - ], - [ - [ - 12898, - 12898 - ], - "mapped", - [ - 4355 - ] - ], - [ - [ - 12899, - 12899 - ], - "mapped", - [ - 4357 - ] - ], - [ - [ - 12900, - 12900 - ], - "mapped", - [ - 4358 - ] - ], - [ - [ - 12901, - 12901 - ], - "mapped", - [ - 4359 - ] - ], - [ - [ - 12902, - 12902 - ], - "mapped", - [ - 4361 - ] - ], - [ - [ - 12903, - 12903 - ], - "mapped", - [ - 4363 - ] - ], - [ - [ - 12904, - 12904 - ], - "mapped", - [ - 4364 - ] - ], - [ - [ - 12905, - 12905 - ], - "mapped", - [ - 4366 - ] - ], - [ - [ - 12906, - 12906 - ], - "mapped", - [ - 4367 - ] - ], - [ - [ - 12907, - 12907 - ], - "mapped", - [ - 4368 - ] - ], - [ - [ - 12908, - 12908 - ], - "mapped", - [ - 4369 - ] - ], - [ - [ - 12909, - 12909 - ], - "mapped", - [ - 4370 - ] - ], - [ - [ - 12910, - 12910 - ], - "mapped", - [ - 44032 - ] - ], - [ - [ - 12911, - 12911 - ], - "mapped", - [ - 45208 - ] - ], - [ - [ - 12912, - 12912 - ], - "mapped", - [ - 45796 - ] - ], - [ - [ - 12913, - 12913 - ], - "mapped", - [ - 46972 - ] - ], - [ - [ - 12914, - 12914 - ], - "mapped", - [ - 47560 - ] - ], - [ - [ - 12915, - 12915 - ], - "mapped", - [ - 48148 - ] - ], - [ - [ - 12916, - 12916 - ], - "mapped", - [ - 49324 - ] - ], - [ - [ - 12917, - 12917 - ], - "mapped", - [ - 50500 - ] - ], - [ - [ - 12918, - 12918 - ], - "mapped", - [ - 51088 - ] - ], - [ - [ - 12919, - 12919 - ], - "mapped", - [ - 52264 - ] - ], - [ - [ - 12920, - 12920 - ], - "mapped", - [ - 52852 - ] - ], - [ - [ - 12921, - 12921 - ], - "mapped", - [ - 53440 - ] - ], - [ - [ - 12922, - 12922 - ], - "mapped", - [ - 54028 - ] - ], - [ - [ - 12923, - 12923 - ], - "mapped", - [ - 54616 - ] - ], - [ - [ - 12924, - 12924 - ], - "mapped", - [ - 52280, - 44256 - ] - ], - [ - [ - 12925, - 12925 - ], - "mapped", - [ - 51452, - 51032 - ] - ], - [ - [ - 12926, - 12926 - ], - "mapped", - [ - 50864 - ] - ], - [ - [ - 12927, - 12927 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 12928, - 12928 - ], - "mapped", - [ - 19968 - ] - ], - [ - [ - 12929, - 12929 - ], - "mapped", - [ - 20108 - ] - ], - [ - [ - 12930, - 12930 - ], - "mapped", - [ - 19977 - ] - ], - [ - [ - 12931, - 12931 - ], - "mapped", - [ - 22235 - ] - ], - [ - [ - 12932, - 12932 - ], - "mapped", - [ - 20116 - ] - ], - [ - [ - 12933, - 12933 - ], - "mapped", - [ - 20845 - ] - ], - [ - [ - 12934, - 12934 - ], - "mapped", - [ - 19971 - ] - ], - [ - [ - 12935, - 12935 - ], - "mapped", - [ - 20843 - ] - ], - [ - [ - 12936, - 12936 - ], - "mapped", - [ - 20061 - ] - ], - [ - [ - 12937, - 12937 - ], - "mapped", - [ - 21313 - ] - ], - [ - [ - 12938, - 12938 - ], - "mapped", - [ - 26376 - ] - ], - [ - [ - 12939, - 12939 - ], - "mapped", - [ - 28779 - ] - ], - [ - [ - 12940, - 12940 - ], - "mapped", - [ - 27700 - ] - ], - [ - [ - 12941, - 12941 - ], - "mapped", - [ - 26408 - ] - ], - [ - [ - 12942, - 12942 - ], - "mapped", - [ - 37329 - ] - ], - [ - [ - 12943, - 12943 - ], - "mapped", - [ - 22303 - ] - ], - [ - [ - 12944, - 12944 - ], - "mapped", - [ - 26085 - ] - ], - [ - [ - 12945, - 12945 - ], - "mapped", - [ - 26666 - ] - ], - [ - [ - 12946, - 12946 - ], - "mapped", - [ - 26377 - ] - ], - [ - [ - 12947, - 12947 - ], - "mapped", - [ - 31038 - ] - ], - [ - [ - 12948, - 12948 - ], - "mapped", - [ - 21517 - ] - ], - [ - [ - 12949, - 12949 - ], - "mapped", - [ - 29305 - ] - ], - [ - [ - 12950, - 12950 - ], - "mapped", - [ - 36001 - ] - ], - [ - [ - 12951, - 12951 - ], - "mapped", - [ - 31069 - ] - ], - [ - [ - 12952, - 12952 - ], - "mapped", - [ - 21172 - ] - ], - [ - [ - 12953, - 12953 - ], - "mapped", - [ - 31192 - ] - ], - [ - [ - 12954, - 12954 - ], - "mapped", - [ - 30007 - ] - ], - [ - [ - 12955, - 12955 - ], - "mapped", - [ - 22899 - ] - ], - [ - [ - 12956, - 12956 - ], - "mapped", - [ - 36969 - ] - ], - [ - [ - 12957, - 12957 - ], - "mapped", - [ - 20778 - ] - ], - [ - [ - 12958, - 12958 - ], - "mapped", - [ - 21360 - ] - ], - [ - [ - 12959, - 12959 - ], - "mapped", - [ - 27880 - ] - ], - [ - [ - 12960, - 12960 - ], - "mapped", - [ - 38917 - ] - ], - [ - [ - 12961, - 12961 - ], - "mapped", - [ - 20241 - ] - ], - [ - [ - 12962, - 12962 - ], - "mapped", - [ - 20889 - ] - ], - [ - [ - 12963, - 12963 - ], - "mapped", - [ - 27491 - ] - ], - [ - [ - 12964, - 12964 - ], - "mapped", - [ - 19978 - ] - ], - [ - [ - 12965, - 12965 - ], - "mapped", - [ - 20013 - ] - ], - [ - [ - 12966, - 12966 - ], - "mapped", - [ - 19979 - ] - ], - [ - [ - 12967, - 12967 - ], - "mapped", - [ - 24038 - ] - ], - [ - [ - 12968, - 12968 - ], - "mapped", - [ - 21491 - ] - ], - [ - [ - 12969, - 12969 - ], - "mapped", - [ - 21307 - ] - ], - [ - [ - 12970, - 12970 - ], - "mapped", - [ - 23447 - ] - ], - [ - [ - 12971, - 12971 - ], - "mapped", - [ - 23398 - ] - ], - [ - [ - 12972, - 12972 - ], - "mapped", - [ - 30435 - ] - ], - [ - [ - 12973, - 12973 - ], - "mapped", - [ - 20225 - ] - ], - [ - [ - 12974, - 12974 - ], - "mapped", - [ - 36039 - ] - ], - [ - [ - 12975, - 12975 - ], - "mapped", - [ - 21332 - ] - ], - [ - [ - 12976, - 12976 - ], - "mapped", - [ - 22812 - ] - ], - [ - [ - 12977, - 12977 - ], - "mapped", - [ - 51, - 54 - ] - ], - [ - [ - 12978, - 12978 - ], - "mapped", - [ - 51, - 55 - ] - ], - [ - [ - 12979, - 12979 - ], - "mapped", - [ - 51, - 56 - ] - ], - [ - [ - 12980, - 12980 - ], - "mapped", - [ - 51, - 57 - ] - ], - [ - [ - 12981, - 12981 - ], - "mapped", - [ - 52, - 48 - ] - ], - [ - [ - 12982, - 12982 - ], - "mapped", - [ - 52, - 49 - ] - ], - [ - [ - 12983, - 12983 - ], - "mapped", - [ - 52, - 50 - ] - ], - [ - [ - 12984, - 12984 - ], - "mapped", - [ - 52, - 51 - ] - ], - [ - [ - 12985, - 12985 - ], - "mapped", - [ - 52, - 52 - ] - ], - [ - [ - 12986, - 12986 - ], - "mapped", - [ - 52, - 53 - ] - ], - [ - [ - 12987, - 12987 - ], - "mapped", - [ - 52, - 54 - ] - ], - [ - [ - 12988, - 12988 - ], - "mapped", - [ - 52, - 55 - ] - ], - [ - [ - 12989, - 12989 - ], - "mapped", - [ - 52, - 56 - ] - ], - [ - [ - 12990, - 12990 - ], - "mapped", - [ - 52, - 57 - ] - ], - [ - [ - 12991, - 12991 - ], - "mapped", - [ - 53, - 48 - ] - ], - [ - [ - 12992, - 12992 - ], - "mapped", - [ - 49, - 26376 - ] - ], - [ - [ - 12993, - 12993 - ], - "mapped", - [ - 50, - 26376 - ] - ], - [ - [ - 12994, - 12994 - ], - "mapped", - [ - 51, - 26376 - ] - ], - [ - [ - 12995, - 12995 - ], - "mapped", - [ - 52, - 26376 - ] - ], - [ - [ - 12996, - 12996 - ], - "mapped", - [ - 53, - 26376 - ] - ], - [ - [ - 12997, - 12997 - ], - "mapped", - [ - 54, - 26376 - ] - ], - [ - [ - 12998, - 12998 - ], - "mapped", - [ - 55, - 26376 - ] - ], - [ - [ - 12999, - 12999 - ], - "mapped", - [ - 56, - 26376 - ] - ], - [ - [ - 13000, - 13000 - ], - "mapped", - [ - 57, - 26376 - ] - ], - [ - [ - 13001, - 13001 - ], - "mapped", - [ - 49, - 48, - 26376 - ] - ], - [ - [ - 13002, - 13002 - ], - "mapped", - [ - 49, - 49, - 26376 - ] - ], - [ - [ - 13003, - 13003 - ], - "mapped", - [ - 49, - 50, - 26376 - ] - ], - [ - [ - 13004, - 13004 - ], - "mapped", - [ - 104, - 103 - ] - ], - [ - [ - 13005, - 13005 - ], - "mapped", - [ - 101, - 114, - 103 - ] - ], - [ - [ - 13006, - 13006 - ], - "mapped", - [ - 101, - 118 - ] - ], - [ - [ - 13007, - 13007 - ], - "mapped", - [ - 108, - 116, - 100 - ] - ], - [ - [ - 13008, - 13008 - ], - "mapped", - [ - 12450 - ] - ], - [ - [ - 13009, - 13009 - ], - "mapped", - [ - 12452 - ] - ], - [ - [ - 13010, - 13010 - ], - "mapped", - [ - 12454 - ] - ], - [ - [ - 13011, - 13011 - ], - "mapped", - [ - 12456 - ] - ], - [ - [ - 13012, - 13012 - ], - "mapped", - [ - 12458 - ] - ], - [ - [ - 13013, - 13013 - ], - "mapped", - [ - 12459 - ] - ], - [ - [ - 13014, - 13014 - ], - "mapped", - [ - 12461 - ] - ], - [ - [ - 13015, - 13015 - ], - "mapped", - [ - 12463 - ] - ], - [ - [ - 13016, - 13016 - ], - "mapped", - [ - 12465 - ] - ], - [ - [ - 13017, - 13017 - ], - "mapped", - [ - 12467 - ] - ], - [ - [ - 13018, - 13018 - ], - "mapped", - [ - 12469 - ] - ], - [ - [ - 13019, - 13019 - ], - "mapped", - [ - 12471 - ] - ], - [ - [ - 13020, - 13020 - ], - "mapped", - [ - 12473 - ] - ], - [ - [ - 13021, - 13021 - ], - "mapped", - [ - 12475 - ] - ], - [ - [ - 13022, - 13022 - ], - "mapped", - [ - 12477 - ] - ], - [ - [ - 13023, - 13023 - ], - "mapped", - [ - 12479 - ] - ], - [ - [ - 13024, - 13024 - ], - "mapped", - [ - 12481 - ] - ], - [ - [ - 13025, - 13025 - ], - "mapped", - [ - 12484 - ] - ], - [ - [ - 13026, - 13026 - ], - "mapped", - [ - 12486 - ] - ], - [ - [ - 13027, - 13027 - ], - "mapped", - [ - 12488 - ] - ], - [ - [ - 13028, - 13028 - ], - "mapped", - [ - 12490 - ] - ], - [ - [ - 13029, - 13029 - ], - "mapped", - [ - 12491 - ] - ], - [ - [ - 13030, - 13030 - ], - "mapped", - [ - 12492 - ] - ], - [ - [ - 13031, - 13031 - ], - "mapped", - [ - 12493 - ] - ], - [ - [ - 13032, - 13032 - ], - "mapped", - [ - 12494 - ] - ], - [ - [ - 13033, - 13033 - ], - "mapped", - [ - 12495 - ] - ], - [ - [ - 13034, - 13034 - ], - "mapped", - [ - 12498 - ] - ], - [ - [ - 13035, - 13035 - ], - "mapped", - [ - 12501 - ] - ], - [ - [ - 13036, - 13036 - ], - "mapped", - [ - 12504 - ] - ], - [ - [ - 13037, - 13037 - ], - "mapped", - [ - 12507 - ] - ], - [ - [ - 13038, - 13038 - ], - "mapped", - [ - 12510 - ] - ], - [ - [ - 13039, - 13039 - ], - "mapped", - [ - 12511 - ] - ], - [ - [ - 13040, - 13040 - ], - "mapped", - [ - 12512 - ] - ], - [ - [ - 13041, - 13041 - ], - "mapped", - [ - 12513 - ] - ], - [ - [ - 13042, - 13042 - ], - "mapped", - [ - 12514 - ] - ], - [ - [ - 13043, - 13043 - ], - "mapped", - [ - 12516 - ] - ], - [ - [ - 13044, - 13044 - ], - "mapped", - [ - 12518 - ] - ], - [ - [ - 13045, - 13045 - ], - "mapped", - [ - 12520 - ] - ], - [ - [ - 13046, - 13046 - ], - "mapped", - [ - 12521 - ] - ], - [ - [ - 13047, - 13047 - ], - "mapped", - [ - 12522 - ] - ], - [ - [ - 13048, - 13048 - ], - "mapped", - [ - 12523 - ] - ], - [ - [ - 13049, - 13049 - ], - "mapped", - [ - 12524 - ] - ], - [ - [ - 13050, - 13050 - ], - "mapped", - [ - 12525 - ] - ], - [ - [ - 13051, - 13051 - ], - "mapped", - [ - 12527 - ] - ], - [ - [ - 13052, - 13052 - ], - "mapped", - [ - 12528 - ] - ], - [ - [ - 13053, - 13053 - ], - "mapped", - [ - 12529 - ] - ], - [ - [ - 13054, - 13054 - ], - "mapped", - [ - 12530 - ] - ], - [ - [ - 13055, - 13055 - ], - "disallowed" - ], - [ - [ - 13056, - 13056 - ], - "mapped", - [ - 12450, - 12497, - 12540, - 12488 - ] - ], - [ - [ - 13057, - 13057 - ], - "mapped", - [ - 12450, - 12523, - 12501, - 12449 - ] - ], - [ - [ - 13058, - 13058 - ], - "mapped", - [ - 12450, - 12531, - 12506, - 12450 - ] - ], - [ - [ - 13059, - 13059 - ], - "mapped", - [ - 12450, - 12540, - 12523 - ] - ], - [ - [ - 13060, - 13060 - ], - "mapped", - [ - 12452, - 12491, - 12531, - 12464 - ] - ], - [ - [ - 13061, - 13061 - ], - "mapped", - [ - 12452, - 12531, - 12481 - ] - ], - [ - [ - 13062, - 13062 - ], - "mapped", - [ - 12454, - 12457, - 12531 - ] - ], - [ - [ - 13063, - 13063 - ], - "mapped", - [ - 12456, - 12473, - 12463, - 12540, - 12489 - ] - ], - [ - [ - 13064, - 13064 - ], - "mapped", - [ - 12456, - 12540, - 12459, - 12540 - ] - ], - [ - [ - 13065, - 13065 - ], - "mapped", - [ - 12458, - 12531, - 12473 - ] - ], - [ - [ - 13066, - 13066 - ], - "mapped", - [ - 12458, - 12540, - 12512 - ] - ], - [ - [ - 13067, - 13067 - ], - "mapped", - [ - 12459, - 12452, - 12522 - ] - ], - [ - [ - 13068, - 13068 - ], - "mapped", - [ - 12459, - 12521, - 12483, - 12488 - ] - ], - [ - [ - 13069, - 13069 - ], - "mapped", - [ - 12459, - 12525, - 12522, - 12540 - ] - ], - [ - [ - 13070, - 13070 - ], - "mapped", - [ - 12460, - 12525, - 12531 - ] - ], - [ - [ - 13071, - 13071 - ], - "mapped", - [ - 12460, - 12531, - 12510 - ] - ], - [ - [ - 13072, - 13072 - ], - "mapped", - [ - 12462, - 12460 - ] - ], - [ - [ - 13073, - 13073 - ], - "mapped", - [ - 12462, - 12491, - 12540 - ] - ], - [ - [ - 13074, - 13074 - ], - "mapped", - [ - 12461, - 12517, - 12522, - 12540 - ] - ], - [ - [ - 13075, - 13075 - ], - "mapped", - [ - 12462, - 12523, - 12480, - 12540 - ] - ], - [ - [ - 13076, - 13076 - ], - "mapped", - [ - 12461, - 12525 - ] - ], - [ - [ - 13077, - 13077 - ], - "mapped", - [ - 12461, - 12525, - 12464, - 12521, - 12512 - ] - ], - [ - [ - 13078, - 13078 - ], - "mapped", - [ - 12461, - 12525, - 12513, - 12540, - 12488, - 12523 - ] - ], - [ - [ - 13079, - 13079 - ], - "mapped", - [ - 12461, - 12525, - 12527, - 12483, - 12488 - ] - ], - [ - [ - 13080, - 13080 - ], - "mapped", - [ - 12464, - 12521, - 12512 - ] - ], - [ - [ - 13081, - 13081 - ], - "mapped", - [ - 12464, - 12521, - 12512, - 12488, - 12531 - ] - ], - [ - [ - 13082, - 13082 - ], - "mapped", - [ - 12463, - 12523, - 12476, - 12452, - 12525 - ] - ], - [ - [ - 13083, - 13083 - ], - "mapped", - [ - 12463, - 12525, - 12540, - 12493 - ] - ], - [ - [ - 13084, - 13084 - ], - "mapped", - [ - 12465, - 12540, - 12473 - ] - ], - [ - [ - 13085, - 13085 - ], - "mapped", - [ - 12467, - 12523, - 12490 - ] - ], - [ - [ - 13086, - 13086 - ], - "mapped", - [ - 12467, - 12540, - 12509 - ] - ], - [ - [ - 13087, - 13087 - ], - "mapped", - [ - 12469, - 12452, - 12463, - 12523 - ] - ], - [ - [ - 13088, - 13088 - ], - "mapped", - [ - 12469, - 12531, - 12481, - 12540, - 12512 - ] - ], - [ - [ - 13089, - 13089 - ], - "mapped", - [ - 12471, - 12522, - 12531, - 12464 - ] - ], - [ - [ - 13090, - 13090 - ], - "mapped", - [ - 12475, - 12531, - 12481 - ] - ], - [ - [ - 13091, - 13091 - ], - "mapped", - [ - 12475, - 12531, - 12488 - ] - ], - [ - [ - 13092, - 13092 - ], - "mapped", - [ - 12480, - 12540, - 12473 - ] - ], - [ - [ - 13093, - 13093 - ], - "mapped", - [ - 12487, - 12471 - ] - ], - [ - [ - 13094, - 13094 - ], - "mapped", - [ - 12489, - 12523 - ] - ], - [ - [ - 13095, - 13095 - ], - "mapped", - [ - 12488, - 12531 - ] - ], - [ - [ - 13096, - 13096 - ], - "mapped", - [ - 12490, - 12494 - ] - ], - [ - [ - 13097, - 13097 - ], - "mapped", - [ - 12494, - 12483, - 12488 - ] - ], - [ - [ - 13098, - 13098 - ], - "mapped", - [ - 12495, - 12452, - 12484 - ] - ], - [ - [ - 13099, - 13099 - ], - "mapped", - [ - 12497, - 12540, - 12475, - 12531, - 12488 - ] - ], - [ - [ - 13100, - 13100 - ], - "mapped", - [ - 12497, - 12540, - 12484 - ] - ], - [ - [ - 13101, - 13101 - ], - "mapped", - [ - 12496, - 12540, - 12524, - 12523 - ] - ], - [ - [ - 13102, - 13102 - ], - "mapped", - [ - 12500, - 12450, - 12473, - 12488, - 12523 - ] - ], - [ - [ - 13103, - 13103 - ], - "mapped", - [ - 12500, - 12463, - 12523 - ] - ], - [ - [ - 13104, - 13104 - ], - "mapped", - [ - 12500, - 12467 - ] - ], - [ - [ - 13105, - 13105 - ], - "mapped", - [ - 12499, - 12523 - ] - ], - [ - [ - 13106, - 13106 - ], - "mapped", - [ - 12501, - 12449, - 12521, - 12483, - 12489 - ] - ], - [ - [ - 13107, - 13107 - ], - "mapped", - [ - 12501, - 12451, - 12540, - 12488 - ] - ], - [ - [ - 13108, - 13108 - ], - "mapped", - [ - 12502, - 12483, - 12471, - 12455, - 12523 - ] - ], - [ - [ - 13109, - 13109 - ], - "mapped", - [ - 12501, - 12521, - 12531 - ] - ], - [ - [ - 13110, - 13110 - ], - "mapped", - [ - 12504, - 12463, - 12479, - 12540, - 12523 - ] - ], - [ - [ - 13111, - 13111 - ], - "mapped", - [ - 12506, - 12477 - ] - ], - [ - [ - 13112, - 13112 - ], - "mapped", - [ - 12506, - 12491, - 12498 - ] - ], - [ - [ - 13113, - 13113 - ], - "mapped", - [ - 12504, - 12523, - 12484 - ] - ], - [ - [ - 13114, - 13114 - ], - "mapped", - [ - 12506, - 12531, - 12473 - ] - ], - [ - [ - 13115, - 13115 - ], - "mapped", - [ - 12506, - 12540, - 12472 - ] - ], - [ - [ - 13116, - 13116 - ], - "mapped", - [ - 12505, - 12540, - 12479 - ] - ], - [ - [ - 13117, - 13117 - ], - "mapped", - [ - 12509, - 12452, - 12531, - 12488 - ] - ], - [ - [ - 13118, - 13118 - ], - "mapped", - [ - 12508, - 12523, - 12488 - ] - ], - [ - [ - 13119, - 13119 - ], - "mapped", - [ - 12507, - 12531 - ] - ], - [ - [ - 13120, - 13120 - ], - "mapped", - [ - 12509, - 12531, - 12489 - ] - ], - [ - [ - 13121, - 13121 - ], - "mapped", - [ - 12507, - 12540, - 12523 - ] - ], - [ - [ - 13122, - 13122 - ], - "mapped", - [ - 12507, - 12540, - 12531 - ] - ], - [ - [ - 13123, - 13123 - ], - "mapped", - [ - 12510, - 12452, - 12463, - 12525 - ] - ], - [ - [ - 13124, - 13124 - ], - "mapped", - [ - 12510, - 12452, - 12523 - ] - ], - [ - [ - 13125, - 13125 - ], - "mapped", - [ - 12510, - 12483, - 12495 - ] - ], - [ - [ - 13126, - 13126 - ], - "mapped", - [ - 12510, - 12523, - 12463 - ] - ], - [ - [ - 13127, - 13127 - ], - "mapped", - [ - 12510, - 12531, - 12471, - 12519, - 12531 - ] - ], - [ - [ - 13128, - 13128 - ], - "mapped", - [ - 12511, - 12463, - 12525, - 12531 - ] - ], - [ - [ - 13129, - 13129 - ], - "mapped", - [ - 12511, - 12522 - ] - ], - [ - [ - 13130, - 13130 - ], - "mapped", - [ - 12511, - 12522, - 12496, - 12540, - 12523 - ] - ], - [ - [ - 13131, - 13131 - ], - "mapped", - [ - 12513, - 12460 - ] - ], - [ - [ - 13132, - 13132 - ], - "mapped", - [ - 12513, - 12460, - 12488, - 12531 - ] - ], - [ - [ - 13133, - 13133 - ], - "mapped", - [ - 12513, - 12540, - 12488, - 12523 - ] - ], - [ - [ - 13134, - 13134 - ], - "mapped", - [ - 12516, - 12540, - 12489 - ] - ], - [ - [ - 13135, - 13135 - ], - "mapped", - [ - 12516, - 12540, - 12523 - ] - ], - [ - [ - 13136, - 13136 - ], - "mapped", - [ - 12518, - 12450, - 12531 - ] - ], - [ - [ - 13137, - 13137 - ], - "mapped", - [ - 12522, - 12483, - 12488, - 12523 - ] - ], - [ - [ - 13138, - 13138 - ], - "mapped", - [ - 12522, - 12521 - ] - ], - [ - [ - 13139, - 13139 - ], - "mapped", - [ - 12523, - 12500, - 12540 - ] - ], - [ - [ - 13140, - 13140 - ], - "mapped", - [ - 12523, - 12540, - 12502, - 12523 - ] - ], - [ - [ - 13141, - 13141 - ], - "mapped", - [ - 12524, - 12512 - ] - ], - [ - [ - 13142, - 13142 - ], - "mapped", - [ - 12524, - 12531, - 12488, - 12466, - 12531 - ] - ], - [ - [ - 13143, - 13143 - ], - "mapped", - [ - 12527, - 12483, - 12488 - ] - ], - [ - [ - 13144, - 13144 - ], - "mapped", - [ - 48, - 28857 - ] - ], - [ - [ - 13145, - 13145 - ], - "mapped", - [ - 49, - 28857 - ] - ], - [ - [ - 13146, - 13146 - ], - "mapped", - [ - 50, - 28857 - ] - ], - [ - [ - 13147, - 13147 - ], - "mapped", - [ - 51, - 28857 - ] - ], - [ - [ - 13148, - 13148 - ], - "mapped", - [ - 52, - 28857 - ] - ], - [ - [ - 13149, - 13149 - ], - "mapped", - [ - 53, - 28857 - ] - ], - [ - [ - 13150, - 13150 - ], - "mapped", - [ - 54, - 28857 - ] - ], - [ - [ - 13151, - 13151 - ], - "mapped", - [ - 55, - 28857 - ] - ], - [ - [ - 13152, - 13152 - ], - "mapped", - [ - 56, - 28857 - ] - ], - [ - [ - 13153, - 13153 - ], - "mapped", - [ - 57, - 28857 - ] - ], - [ - [ - 13154, - 13154 - ], - "mapped", - [ - 49, - 48, - 28857 - ] - ], - [ - [ - 13155, - 13155 - ], - "mapped", - [ - 49, - 49, - 28857 - ] - ], - [ - [ - 13156, - 13156 - ], - "mapped", - [ - 49, - 50, - 28857 - ] - ], - [ - [ - 13157, - 13157 - ], - "mapped", - [ - 49, - 51, - 28857 - ] - ], - [ - [ - 13158, - 13158 - ], - "mapped", - [ - 49, - 52, - 28857 - ] - ], - [ - [ - 13159, - 13159 - ], - "mapped", - [ - 49, - 53, - 28857 - ] - ], - [ - [ - 13160, - 13160 - ], - "mapped", - [ - 49, - 54, - 28857 - ] - ], - [ - [ - 13161, - 13161 - ], - "mapped", - [ - 49, - 55, - 28857 - ] - ], - [ - [ - 13162, - 13162 - ], - "mapped", - [ - 49, - 56, - 28857 - ] - ], - [ - [ - 13163, - 13163 - ], - "mapped", - [ - 49, - 57, - 28857 - ] - ], - [ - [ - 13164, - 13164 - ], - "mapped", - [ - 50, - 48, - 28857 - ] - ], - [ - [ - 13165, - 13165 - ], - "mapped", - [ - 50, - 49, - 28857 - ] - ], - [ - [ - 13166, - 13166 - ], - "mapped", - [ - 50, - 50, - 28857 - ] - ], - [ - [ - 13167, - 13167 - ], - "mapped", - [ - 50, - 51, - 28857 - ] - ], - [ - [ - 13168, - 13168 - ], - "mapped", - [ - 50, - 52, - 28857 - ] - ], - [ - [ - 13169, - 13169 - ], - "mapped", - [ - 104, - 112, - 97 - ] - ], - [ - [ - 13170, - 13170 - ], - "mapped", - [ - 100, - 97 - ] - ], - [ - [ - 13171, - 13171 - ], - "mapped", - [ - 97, - 117 - ] - ], - [ - [ - 13172, - 13172 - ], - "mapped", - [ - 98, - 97, - 114 - ] - ], - [ - [ - 13173, - 13173 - ], - "mapped", - [ - 111, - 118 - ] - ], - [ - [ - 13174, - 13174 - ], - "mapped", - [ - 112, - 99 - ] - ], - [ - [ - 13175, - 13175 - ], - "mapped", - [ - 100, - 109 - ] - ], - [ - [ - 13176, - 13176 - ], - "mapped", - [ - 100, - 109, - 50 - ] - ], - [ - [ - 13177, - 13177 - ], - "mapped", - [ - 100, - 109, - 51 - ] - ], - [ - [ - 13178, - 13178 - ], - "mapped", - [ - 105, - 117 - ] - ], - [ - [ - 13179, - 13179 - ], - "mapped", - [ - 24179, - 25104 - ] - ], - [ - [ - 13180, - 13180 - ], - "mapped", - [ - 26157, - 21644 - ] - ], - [ - [ - 13181, - 13181 - ], - "mapped", - [ - 22823, - 27491 - ] - ], - [ - [ - 13182, - 13182 - ], - "mapped", - [ - 26126, - 27835 - ] - ], - [ - [ - 13183, - 13183 - ], - "mapped", - [ - 26666, - 24335, - 20250, - 31038 - ] - ], - [ - [ - 13184, - 13184 - ], - "mapped", - [ - 112, - 97 - ] - ], - [ - [ - 13185, - 13185 - ], - "mapped", - [ - 110, - 97 - ] - ], - [ - [ - 13186, - 13186 - ], - "mapped", - [ - 956, - 97 - ] - ], - [ - [ - 13187, - 13187 - ], - "mapped", - [ - 109, - 97 - ] - ], - [ - [ - 13188, - 13188 - ], - "mapped", - [ - 107, - 97 - ] - ], - [ - [ - 13189, - 13189 - ], - "mapped", - [ - 107, - 98 - ] - ], - [ - [ - 13190, - 13190 - ], - "mapped", - [ - 109, - 98 - ] - ], - [ - [ - 13191, - 13191 - ], - "mapped", - [ - 103, - 98 - ] - ], - [ - [ - 13192, - 13192 - ], - "mapped", - [ - 99, - 97, - 108 - ] - ], - [ - [ - 13193, - 13193 - ], - "mapped", - [ - 107, - 99, - 97, - 108 - ] - ], - [ - [ - 13194, - 13194 - ], - "mapped", - [ - 112, - 102 - ] - ], - [ - [ - 13195, - 13195 - ], - "mapped", - [ - 110, - 102 - ] - ], - [ - [ - 13196, - 13196 - ], - "mapped", - [ - 956, - 102 - ] - ], - [ - [ - 13197, - 13197 - ], - "mapped", - [ - 956, - 103 - ] - ], - [ - [ - 13198, - 13198 - ], - "mapped", - [ - 109, - 103 - ] - ], - [ - [ - 13199, - 13199 - ], - "mapped", - [ - 107, - 103 - ] - ], - [ - [ - 13200, - 13200 - ], - "mapped", - [ - 104, - 122 - ] - ], - [ - [ - 13201, - 13201 - ], - "mapped", - [ - 107, - 104, - 122 - ] - ], - [ - [ - 13202, - 13202 - ], - "mapped", - [ - 109, - 104, - 122 - ] - ], - [ - [ - 13203, - 13203 - ], - "mapped", - [ - 103, - 104, - 122 - ] - ], - [ - [ - 13204, - 13204 - ], - "mapped", - [ - 116, - 104, - 122 - ] - ], - [ - [ - 13205, - 13205 - ], - "mapped", - [ - 956, - 108 - ] - ], - [ - [ - 13206, - 13206 - ], - "mapped", - [ - 109, - 108 - ] - ], - [ - [ - 13207, - 13207 - ], - "mapped", - [ - 100, - 108 - ] - ], - [ - [ - 13208, - 13208 - ], - "mapped", - [ - 107, - 108 - ] - ], - [ - [ - 13209, - 13209 - ], - "mapped", - [ - 102, - 109 - ] - ], - [ - [ - 13210, - 13210 - ], - "mapped", - [ - 110, - 109 - ] - ], - [ - [ - 13211, - 13211 - ], - "mapped", - [ - 956, - 109 - ] - ], - [ - [ - 13212, - 13212 - ], - "mapped", - [ - 109, - 109 - ] - ], - [ - [ - 13213, - 13213 - ], - "mapped", - [ - 99, - 109 - ] - ], - [ - [ - 13214, - 13214 - ], - "mapped", - [ - 107, - 109 - ] - ], - [ - [ - 13215, - 13215 - ], - "mapped", - [ - 109, - 109, - 50 - ] - ], - [ - [ - 13216, - 13216 - ], - "mapped", - [ - 99, - 109, - 50 - ] - ], - [ - [ - 13217, - 13217 - ], - "mapped", - [ - 109, - 50 - ] - ], - [ - [ - 13218, - 13218 - ], - "mapped", - [ - 107, - 109, - 50 - ] - ], - [ - [ - 13219, - 13219 - ], - "mapped", - [ - 109, - 109, - 51 - ] - ], - [ - [ - 13220, - 13220 - ], - "mapped", - [ - 99, - 109, - 51 - ] - ], - [ - [ - 13221, - 13221 - ], - "mapped", - [ - 109, - 51 - ] - ], - [ - [ - 13222, - 13222 - ], - "mapped", - [ - 107, - 109, - 51 - ] - ], - [ - [ - 13223, - 13223 - ], - "mapped", - [ - 109, - 8725, - 115 - ] - ], - [ - [ - 13224, - 13224 - ], - "mapped", - [ - 109, - 8725, - 115, - 50 - ] - ], - [ - [ - 13225, - 13225 - ], - "mapped", - [ - 112, - 97 - ] - ], - [ - [ - 13226, - 13226 - ], - "mapped", - [ - 107, - 112, - 97 - ] - ], - [ - [ - 13227, - 13227 - ], - "mapped", - [ - 109, - 112, - 97 - ] - ], - [ - [ - 13228, - 13228 - ], - "mapped", - [ - 103, - 112, - 97 - ] - ], - [ - [ - 13229, - 13229 - ], - "mapped", - [ - 114, - 97, - 100 - ] - ], - [ - [ - 13230, - 13230 - ], - "mapped", - [ - 114, - 97, - 100, - 8725, - 115 - ] - ], - [ - [ - 13231, - 13231 - ], - "mapped", - [ - 114, - 97, - 100, - 8725, - 115, - 50 - ] - ], - [ - [ - 13232, - 13232 - ], - "mapped", - [ - 112, - 115 - ] - ], - [ - [ - 13233, - 13233 - ], - "mapped", - [ - 110, - 115 - ] - ], - [ - [ - 13234, - 13234 - ], - "mapped", - [ - 956, - 115 - ] - ], - [ - [ - 13235, - 13235 - ], - "mapped", - [ - 109, - 115 - ] - ], - [ - [ - 13236, - 13236 - ], - "mapped", - [ - 112, - 118 - ] - ], - [ - [ - 13237, - 13237 - ], - "mapped", - [ - 110, - 118 - ] - ], - [ - [ - 13238, - 13238 - ], - "mapped", - [ - 956, - 118 - ] - ], - [ - [ - 13239, - 13239 - ], - "mapped", - [ - 109, - 118 - ] - ], - [ - [ - 13240, - 13240 - ], - "mapped", - [ - 107, - 118 - ] - ], - [ - [ - 13241, - 13241 - ], - "mapped", - [ - 109, - 118 - ] - ], - [ - [ - 13242, - 13242 - ], - "mapped", - [ - 112, - 119 - ] - ], - [ - [ - 13243, - 13243 - ], - "mapped", - [ - 110, - 119 - ] - ], - [ - [ - 13244, - 13244 - ], - "mapped", - [ - 956, - 119 - ] - ], - [ - [ - 13245, - 13245 - ], - "mapped", - [ - 109, - 119 - ] - ], - [ - [ - 13246, - 13246 - ], - "mapped", - [ - 107, - 119 - ] - ], - [ - [ - 13247, - 13247 - ], - "mapped", - [ - 109, - 119 - ] - ], - [ - [ - 13248, - 13248 - ], - "mapped", - [ - 107, - 969 - ] - ], - [ - [ - 13249, - 13249 - ], - "mapped", - [ - 109, - 969 - ] - ], - [ - [ - 13250, - 13250 - ], - "disallowed" - ], - [ - [ - 13251, - 13251 - ], - "mapped", - [ - 98, - 113 - ] - ], - [ - [ - 13252, - 13252 - ], - "mapped", - [ - 99, - 99 - ] - ], - [ - [ - 13253, - 13253 - ], - "mapped", - [ - 99, - 100 - ] - ], - [ - [ - 13254, - 13254 - ], - "mapped", - [ - 99, - 8725, - 107, - 103 - ] - ], - [ - [ - 13255, - 13255 - ], - "disallowed" - ], - [ - [ - 13256, - 13256 - ], - "mapped", - [ - 100, - 98 - ] - ], - [ - [ - 13257, - 13257 - ], - "mapped", - [ - 103, - 121 - ] - ], - [ - [ - 13258, - 13258 - ], - "mapped", - [ - 104, - 97 - ] - ], - [ - [ - 13259, - 13259 - ], - "mapped", - [ - 104, - 112 - ] - ], - [ - [ - 13260, - 13260 - ], - "mapped", - [ - 105, - 110 - ] - ], - [ - [ - 13261, - 13261 - ], - "mapped", - [ - 107, - 107 - ] - ], - [ - [ - 13262, - 13262 - ], - "mapped", - [ - 107, - 109 - ] - ], - [ - [ - 13263, - 13263 - ], - "mapped", - [ - 107, - 116 - ] - ], - [ - [ - 13264, - 13264 - ], - "mapped", - [ - 108, - 109 - ] - ], - [ - [ - 13265, - 13265 - ], - "mapped", - [ - 108, - 110 - ] - ], - [ - [ - 13266, - 13266 - ], - "mapped", - [ - 108, - 111, - 103 - ] - ], - [ - [ - 13267, - 13267 - ], - "mapped", - [ - 108, - 120 - ] - ], - [ - [ - 13268, - 13268 - ], - "mapped", - [ - 109, - 98 - ] - ], - [ - [ - 13269, - 13269 - ], - "mapped", - [ - 109, - 105, - 108 - ] - ], - [ - [ - 13270, - 13270 - ], - "mapped", - [ - 109, - 111, - 108 - ] - ], - [ - [ - 13271, - 13271 - ], - "mapped", - [ - 112, - 104 - ] - ], - [ - [ - 13272, - 13272 - ], - "disallowed" - ], - [ - [ - 13273, - 13273 - ], - "mapped", - [ - 112, - 112, - 109 - ] - ], - [ - [ - 13274, - 13274 - ], - "mapped", - [ - 112, - 114 - ] - ], - [ - [ - 13275, - 13275 - ], - "mapped", - [ - 115, - 114 - ] - ], - [ - [ - 13276, - 13276 - ], - "mapped", - [ - 115, - 118 - ] - ], - [ - [ - 13277, - 13277 - ], - "mapped", - [ - 119, - 98 - ] - ], - [ - [ - 13278, - 13278 - ], - "mapped", - [ - 118, - 8725, - 109 - ] - ], - [ - [ - 13279, - 13279 - ], - "mapped", - [ - 97, - 8725, - 109 - ] - ], - [ - [ - 13280, - 13280 - ], - "mapped", - [ - 49, - 26085 - ] - ], - [ - [ - 13281, - 13281 - ], - "mapped", - [ - 50, - 26085 - ] - ], - [ - [ - 13282, - 13282 - ], - "mapped", - [ - 51, - 26085 - ] - ], - [ - [ - 13283, - 13283 - ], - "mapped", - [ - 52, - 26085 - ] - ], - [ - [ - 13284, - 13284 - ], - "mapped", - [ - 53, - 26085 - ] - ], - [ - [ - 13285, - 13285 - ], - "mapped", - [ - 54, - 26085 - ] - ], - [ - [ - 13286, - 13286 - ], - "mapped", - [ - 55, - 26085 - ] - ], - [ - [ - 13287, - 13287 - ], - "mapped", - [ - 56, - 26085 - ] - ], - [ - [ - 13288, - 13288 - ], - "mapped", - [ - 57, - 26085 - ] - ], - [ - [ - 13289, - 13289 - ], - "mapped", - [ - 49, - 48, - 26085 - ] - ], - [ - [ - 13290, - 13290 - ], - "mapped", - [ - 49, - 49, - 26085 - ] - ], - [ - [ - 13291, - 13291 - ], - "mapped", - [ - 49, - 50, - 26085 - ] - ], - [ - [ - 13292, - 13292 - ], - "mapped", - [ - 49, - 51, - 26085 - ] - ], - [ - [ - 13293, - 13293 - ], - "mapped", - [ - 49, - 52, - 26085 - ] - ], - [ - [ - 13294, - 13294 - ], - "mapped", - [ - 49, - 53, - 26085 - ] - ], - [ - [ - 13295, - 13295 - ], - "mapped", - [ - 49, - 54, - 26085 - ] - ], - [ - [ - 13296, - 13296 - ], - "mapped", - [ - 49, - 55, - 26085 - ] - ], - [ - [ - 13297, - 13297 - ], - "mapped", - [ - 49, - 56, - 26085 - ] - ], - [ - [ - 13298, - 13298 - ], - "mapped", - [ - 49, - 57, - 26085 - ] - ], - [ - [ - 13299, - 13299 - ], - "mapped", - [ - 50, - 48, - 26085 - ] - ], - [ - [ - 13300, - 13300 - ], - "mapped", - [ - 50, - 49, - 26085 - ] - ], - [ - [ - 13301, - 13301 - ], - "mapped", - [ - 50, - 50, - 26085 - ] - ], - [ - [ - 13302, - 13302 - ], - "mapped", - [ - 50, - 51, - 26085 - ] - ], - [ - [ - 13303, - 13303 - ], - "mapped", - [ - 50, - 52, - 26085 - ] - ], - [ - [ - 13304, - 13304 - ], - "mapped", - [ - 50, - 53, - 26085 - ] - ], - [ - [ - 13305, - 13305 - ], - "mapped", - [ - 50, - 54, - 26085 - ] - ], - [ - [ - 13306, - 13306 - ], - "mapped", - [ - 50, - 55, - 26085 - ] - ], - [ - [ - 13307, - 13307 - ], - "mapped", - [ - 50, - 56, - 26085 - ] - ], - [ - [ - 13308, - 13308 - ], - "mapped", - [ - 50, - 57, - 26085 - ] - ], - [ - [ - 13309, - 13309 - ], - "mapped", - [ - 51, - 48, - 26085 - ] - ], - [ - [ - 13310, - 13310 - ], - "mapped", - [ - 51, - 49, - 26085 - ] - ], - [ - [ - 13311, - 13311 - ], - "mapped", - [ - 103, - 97, - 108 - ] - ], - [ - [ - 13312, - 19893 - ], - "valid" - ], - [ - [ - 19894, - 19903 - ], - "disallowed" - ], - [ - [ - 19904, - 19967 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 19968, - 40869 - ], - "valid" - ], - [ - [ - 40870, - 40891 - ], - "valid" - ], - [ - [ - 40892, - 40899 - ], - "valid" - ], - [ - [ - 40900, - 40907 - ], - "valid" - ], - [ - [ - 40908, - 40908 - ], - "valid" - ], - [ - [ - 40909, - 40917 - ], - "valid" - ], - [ - [ - 40918, - 40959 - ], - "disallowed" - ], - [ - [ - 40960, - 42124 - ], - "valid" - ], - [ - [ - 42125, - 42127 - ], - "disallowed" - ], - [ - [ - 42128, - 42145 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42146, - 42147 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42148, - 42163 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42164, - 42164 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42165, - 42176 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42177, - 42177 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42178, - 42180 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42181, - 42181 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42182, - 42182 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42183, - 42191 - ], - "disallowed" - ], - [ - [ - 42192, - 42237 - ], - "valid" - ], - [ - [ - 42238, - 42239 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42240, - 42508 - ], - "valid" - ], - [ - [ - 42509, - 42511 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42512, - 42539 - ], - "valid" - ], - [ - [ - 42540, - 42559 - ], - "disallowed" - ], - [ - [ - 42560, - 42560 - ], - "mapped", - [ - 42561 - ] - ], - [ - [ - 42561, - 42561 - ], - "valid" - ], - [ - [ - 42562, - 42562 - ], - "mapped", - [ - 42563 - ] - ], - [ - [ - 42563, - 42563 - ], - "valid" - ], - [ - [ - 42564, - 42564 - ], - "mapped", - [ - 42565 - ] - ], - [ - [ - 42565, - 42565 - ], - "valid" - ], - [ - [ - 42566, - 42566 - ], - "mapped", - [ - 42567 - ] - ], - [ - [ - 42567, - 42567 - ], - "valid" - ], - [ - [ - 42568, - 42568 - ], - "mapped", - [ - 42569 - ] - ], - [ - [ - 42569, - 42569 - ], - "valid" - ], - [ - [ - 42570, - 42570 - ], - "mapped", - [ - 42571 - ] - ], - [ - [ - 42571, - 42571 - ], - "valid" - ], - [ - [ - 42572, - 42572 - ], - "mapped", - [ - 42573 - ] - ], - [ - [ - 42573, - 42573 - ], - "valid" - ], - [ - [ - 42574, - 42574 - ], - "mapped", - [ - 42575 - ] - ], - [ - [ - 42575, - 42575 - ], - "valid" - ], - [ - [ - 42576, - 42576 - ], - "mapped", - [ - 42577 - ] - ], - [ - [ - 42577, - 42577 - ], - "valid" - ], - [ - [ - 42578, - 42578 - ], - "mapped", - [ - 42579 - ] - ], - [ - [ - 42579, - 42579 - ], - "valid" - ], - [ - [ - 42580, - 42580 - ], - "mapped", - [ - 42581 - ] - ], - [ - [ - 42581, - 42581 - ], - "valid" - ], - [ - [ - 42582, - 42582 - ], - "mapped", - [ - 42583 - ] - ], - [ - [ - 42583, - 42583 - ], - "valid" - ], - [ - [ - 42584, - 42584 - ], - "mapped", - [ - 42585 - ] - ], - [ - [ - 42585, - 42585 - ], - "valid" - ], - [ - [ - 42586, - 42586 - ], - "mapped", - [ - 42587 - ] - ], - [ - [ - 42587, - 42587 - ], - "valid" - ], - [ - [ - 42588, - 42588 - ], - "mapped", - [ - 42589 - ] - ], - [ - [ - 42589, - 42589 - ], - "valid" - ], - [ - [ - 42590, - 42590 - ], - "mapped", - [ - 42591 - ] - ], - [ - [ - 42591, - 42591 - ], - "valid" - ], - [ - [ - 42592, - 42592 - ], - "mapped", - [ - 42593 - ] - ], - [ - [ - 42593, - 42593 - ], - "valid" - ], - [ - [ - 42594, - 42594 - ], - "mapped", - [ - 42595 - ] - ], - [ - [ - 42595, - 42595 - ], - "valid" - ], - [ - [ - 42596, - 42596 - ], - "mapped", - [ - 42597 - ] - ], - [ - [ - 42597, - 42597 - ], - "valid" - ], - [ - [ - 42598, - 42598 - ], - "mapped", - [ - 42599 - ] - ], - [ - [ - 42599, - 42599 - ], - "valid" - ], - [ - [ - 42600, - 42600 - ], - "mapped", - [ - 42601 - ] - ], - [ - [ - 42601, - 42601 - ], - "valid" - ], - [ - [ - 42602, - 42602 - ], - "mapped", - [ - 42603 - ] - ], - [ - [ - 42603, - 42603 - ], - "valid" - ], - [ - [ - 42604, - 42604 - ], - "mapped", - [ - 42605 - ] - ], - [ - [ - 42605, - 42607 - ], - "valid" - ], - [ - [ - 42608, - 42611 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42612, - 42619 - ], - "valid" - ], - [ - [ - 42620, - 42621 - ], - "valid" - ], - [ - [ - 42622, - 42622 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42623, - 42623 - ], - "valid" - ], - [ - [ - 42624, - 42624 - ], - "mapped", - [ - 42625 - ] - ], - [ - [ - 42625, - 42625 - ], - "valid" - ], - [ - [ - 42626, - 42626 - ], - "mapped", - [ - 42627 - ] - ], - [ - [ - 42627, - 42627 - ], - "valid" - ], - [ - [ - 42628, - 42628 - ], - "mapped", - [ - 42629 - ] - ], - [ - [ - 42629, - 42629 - ], - "valid" - ], - [ - [ - 42630, - 42630 - ], - "mapped", - [ - 42631 - ] - ], - [ - [ - 42631, - 42631 - ], - "valid" - ], - [ - [ - 42632, - 42632 - ], - "mapped", - [ - 42633 - ] - ], - [ - [ - 42633, - 42633 - ], - "valid" - ], - [ - [ - 42634, - 42634 - ], - "mapped", - [ - 42635 - ] - ], - [ - [ - 42635, - 42635 - ], - "valid" - ], - [ - [ - 42636, - 42636 - ], - "mapped", - [ - 42637 - ] - ], - [ - [ - 42637, - 42637 - ], - "valid" - ], - [ - [ - 42638, - 42638 - ], - "mapped", - [ - 42639 - ] - ], - [ - [ - 42639, - 42639 - ], - "valid" - ], - [ - [ - 42640, - 42640 - ], - "mapped", - [ - 42641 - ] - ], - [ - [ - 42641, - 42641 - ], - "valid" - ], - [ - [ - 42642, - 42642 - ], - "mapped", - [ - 42643 - ] - ], - [ - [ - 42643, - 42643 - ], - "valid" - ], - [ - [ - 42644, - 42644 - ], - "mapped", - [ - 42645 - ] - ], - [ - [ - 42645, - 42645 - ], - "valid" - ], - [ - [ - 42646, - 42646 - ], - "mapped", - [ - 42647 - ] - ], - [ - [ - 42647, - 42647 - ], - "valid" - ], - [ - [ - 42648, - 42648 - ], - "mapped", - [ - 42649 - ] - ], - [ - [ - 42649, - 42649 - ], - "valid" - ], - [ - [ - 42650, - 42650 - ], - "mapped", - [ - 42651 - ] - ], - [ - [ - 42651, - 42651 - ], - "valid" - ], - [ - [ - 42652, - 42652 - ], - "mapped", - [ - 1098 - ] - ], - [ - [ - 42653, - 42653 - ], - "mapped", - [ - 1100 - ] - ], - [ - [ - 42654, - 42654 - ], - "valid" - ], - [ - [ - 42655, - 42655 - ], - "valid" - ], - [ - [ - 42656, - 42725 - ], - "valid" - ], - [ - [ - 42726, - 42735 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42736, - 42737 - ], - "valid" - ], - [ - [ - 42738, - 42743 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42744, - 42751 - ], - "disallowed" - ], - [ - [ - 42752, - 42774 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42775, - 42778 - ], - "valid" - ], - [ - [ - 42779, - 42783 - ], - "valid" - ], - [ - [ - 42784, - 42785 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42786, - 42786 - ], - "mapped", - [ - 42787 - ] - ], - [ - [ - 42787, - 42787 - ], - "valid" - ], - [ - [ - 42788, - 42788 - ], - "mapped", - [ - 42789 - ] - ], - [ - [ - 42789, - 42789 - ], - "valid" - ], - [ - [ - 42790, - 42790 - ], - "mapped", - [ - 42791 - ] - ], - [ - [ - 42791, - 42791 - ], - "valid" - ], - [ - [ - 42792, - 42792 - ], - "mapped", - [ - 42793 - ] - ], - [ - [ - 42793, - 42793 - ], - "valid" - ], - [ - [ - 42794, - 42794 - ], - "mapped", - [ - 42795 - ] - ], - [ - [ - 42795, - 42795 - ], - "valid" - ], - [ - [ - 42796, - 42796 - ], - "mapped", - [ - 42797 - ] - ], - [ - [ - 42797, - 42797 - ], - "valid" - ], - [ - [ - 42798, - 42798 - ], - "mapped", - [ - 42799 - ] - ], - [ - [ - 42799, - 42801 - ], - "valid" - ], - [ - [ - 42802, - 42802 - ], - "mapped", - [ - 42803 - ] - ], - [ - [ - 42803, - 42803 - ], - "valid" - ], - [ - [ - 42804, - 42804 - ], - "mapped", - [ - 42805 - ] - ], - [ - [ - 42805, - 42805 - ], - "valid" - ], - [ - [ - 42806, - 42806 - ], - "mapped", - [ - 42807 - ] - ], - [ - [ - 42807, - 42807 - ], - "valid" - ], - [ - [ - 42808, - 42808 - ], - "mapped", - [ - 42809 - ] - ], - [ - [ - 42809, - 42809 - ], - "valid" - ], - [ - [ - 42810, - 42810 - ], - "mapped", - [ - 42811 - ] - ], - [ - [ - 42811, - 42811 - ], - "valid" - ], - [ - [ - 42812, - 42812 - ], - "mapped", - [ - 42813 - ] - ], - [ - [ - 42813, - 42813 - ], - "valid" - ], - [ - [ - 42814, - 42814 - ], - "mapped", - [ - 42815 - ] - ], - [ - [ - 42815, - 42815 - ], - "valid" - ], - [ - [ - 42816, - 42816 - ], - "mapped", - [ - 42817 - ] - ], - [ - [ - 42817, - 42817 - ], - "valid" - ], - [ - [ - 42818, - 42818 - ], - "mapped", - [ - 42819 - ] - ], - [ - [ - 42819, - 42819 - ], - "valid" - ], - [ - [ - 42820, - 42820 - ], - "mapped", - [ - 42821 - ] - ], - [ - [ - 42821, - 42821 - ], - "valid" - ], - [ - [ - 42822, - 42822 - ], - "mapped", - [ - 42823 - ] - ], - [ - [ - 42823, - 42823 - ], - "valid" - ], - [ - [ - 42824, - 42824 - ], - "mapped", - [ - 42825 - ] - ], - [ - [ - 42825, - 42825 - ], - "valid" - ], - [ - [ - 42826, - 42826 - ], - "mapped", - [ - 42827 - ] - ], - [ - [ - 42827, - 42827 - ], - "valid" - ], - [ - [ - 42828, - 42828 - ], - "mapped", - [ - 42829 - ] - ], - [ - [ - 42829, - 42829 - ], - "valid" - ], - [ - [ - 42830, - 42830 - ], - "mapped", - [ - 42831 - ] - ], - [ - [ - 42831, - 42831 - ], - "valid" - ], - [ - [ - 42832, - 42832 - ], - "mapped", - [ - 42833 - ] - ], - [ - [ - 42833, - 42833 - ], - "valid" - ], - [ - [ - 42834, - 42834 - ], - "mapped", - [ - 42835 - ] - ], - [ - [ - 42835, - 42835 - ], - "valid" - ], - [ - [ - 42836, - 42836 - ], - "mapped", - [ - 42837 - ] - ], - [ - [ - 42837, - 42837 - ], - "valid" - ], - [ - [ - 42838, - 42838 - ], - "mapped", - [ - 42839 - ] - ], - [ - [ - 42839, - 42839 - ], - "valid" - ], - [ - [ - 42840, - 42840 - ], - "mapped", - [ - 42841 - ] - ], - [ - [ - 42841, - 42841 - ], - "valid" - ], - [ - [ - 42842, - 42842 - ], - "mapped", - [ - 42843 - ] - ], - [ - [ - 42843, - 42843 - ], - "valid" - ], - [ - [ - 42844, - 42844 - ], - "mapped", - [ - 42845 - ] - ], - [ - [ - 42845, - 42845 - ], - "valid" - ], - [ - [ - 42846, - 42846 - ], - "mapped", - [ - 42847 - ] - ], - [ - [ - 42847, - 42847 - ], - "valid" - ], - [ - [ - 42848, - 42848 - ], - "mapped", - [ - 42849 - ] - ], - [ - [ - 42849, - 42849 - ], - "valid" - ], - [ - [ - 42850, - 42850 - ], - "mapped", - [ - 42851 - ] - ], - [ - [ - 42851, - 42851 - ], - "valid" - ], - [ - [ - 42852, - 42852 - ], - "mapped", - [ - 42853 - ] - ], - [ - [ - 42853, - 42853 - ], - "valid" - ], - [ - [ - 42854, - 42854 - ], - "mapped", - [ - 42855 - ] - ], - [ - [ - 42855, - 42855 - ], - "valid" - ], - [ - [ - 42856, - 42856 - ], - "mapped", - [ - 42857 - ] - ], - [ - [ - 42857, - 42857 - ], - "valid" - ], - [ - [ - 42858, - 42858 - ], - "mapped", - [ - 42859 - ] - ], - [ - [ - 42859, - 42859 - ], - "valid" - ], - [ - [ - 42860, - 42860 - ], - "mapped", - [ - 42861 - ] - ], - [ - [ - 42861, - 42861 - ], - "valid" - ], - [ - [ - 42862, - 42862 - ], - "mapped", - [ - 42863 - ] - ], - [ - [ - 42863, - 42863 - ], - "valid" - ], - [ - [ - 42864, - 42864 - ], - "mapped", - [ - 42863 - ] - ], - [ - [ - 42865, - 42872 - ], - "valid" - ], - [ - [ - 42873, - 42873 - ], - "mapped", - [ - 42874 - ] - ], - [ - [ - 42874, - 42874 - ], - "valid" - ], - [ - [ - 42875, - 42875 - ], - "mapped", - [ - 42876 - ] - ], - [ - [ - 42876, - 42876 - ], - "valid" - ], - [ - [ - 42877, - 42877 - ], - "mapped", - [ - 7545 - ] - ], - [ - [ - 42878, - 42878 - ], - "mapped", - [ - 42879 - ] - ], - [ - [ - 42879, - 42879 - ], - "valid" - ], - [ - [ - 42880, - 42880 - ], - "mapped", - [ - 42881 - ] - ], - [ - [ - 42881, - 42881 - ], - "valid" - ], - [ - [ - 42882, - 42882 - ], - "mapped", - [ - 42883 - ] - ], - [ - [ - 42883, - 42883 - ], - "valid" - ], - [ - [ - 42884, - 42884 - ], - "mapped", - [ - 42885 - ] - ], - [ - [ - 42885, - 42885 - ], - "valid" - ], - [ - [ - 42886, - 42886 - ], - "mapped", - [ - 42887 - ] - ], - [ - [ - 42887, - 42888 - ], - "valid" - ], - [ - [ - 42889, - 42890 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 42891, - 42891 - ], - "mapped", - [ - 42892 - ] - ], - [ - [ - 42892, - 42892 - ], - "valid" - ], - [ - [ - 42893, - 42893 - ], - "mapped", - [ - 613 - ] - ], - [ - [ - 42894, - 42894 - ], - "valid" - ], - [ - [ - 42895, - 42895 - ], - "valid" - ], - [ - [ - 42896, - 42896 - ], - "mapped", - [ - 42897 - ] - ], - [ - [ - 42897, - 42897 - ], - "valid" - ], - [ - [ - 42898, - 42898 - ], - "mapped", - [ - 42899 - ] - ], - [ - [ - 42899, - 42899 - ], - "valid" - ], - [ - [ - 42900, - 42901 - ], - "valid" - ], - [ - [ - 42902, - 42902 - ], - "mapped", - [ - 42903 - ] - ], - [ - [ - 42903, - 42903 - ], - "valid" - ], - [ - [ - 42904, - 42904 - ], - "mapped", - [ - 42905 - ] - ], - [ - [ - 42905, - 42905 - ], - "valid" - ], - [ - [ - 42906, - 42906 - ], - "mapped", - [ - 42907 - ] - ], - [ - [ - 42907, - 42907 - ], - "valid" - ], - [ - [ - 42908, - 42908 - ], - "mapped", - [ - 42909 - ] - ], - [ - [ - 42909, - 42909 - ], - "valid" - ], - [ - [ - 42910, - 42910 - ], - "mapped", - [ - 42911 - ] - ], - [ - [ - 42911, - 42911 - ], - "valid" - ], - [ - [ - 42912, - 42912 - ], - "mapped", - [ - 42913 - ] - ], - [ - [ - 42913, - 42913 - ], - "valid" - ], - [ - [ - 42914, - 42914 - ], - "mapped", - [ - 42915 - ] - ], - [ - [ - 42915, - 42915 - ], - "valid" - ], - [ - [ - 42916, - 42916 - ], - "mapped", - [ - 42917 - ] - ], - [ - [ - 42917, - 42917 - ], - "valid" - ], - [ - [ - 42918, - 42918 - ], - "mapped", - [ - 42919 - ] - ], - [ - [ - 42919, - 42919 - ], - "valid" - ], - [ - [ - 42920, - 42920 - ], - "mapped", - [ - 42921 - ] - ], - [ - [ - 42921, - 42921 - ], - "valid" - ], - [ - [ - 42922, - 42922 - ], - "mapped", - [ - 614 - ] - ], - [ - [ - 42923, - 42923 - ], - "mapped", - [ - 604 - ] - ], - [ - [ - 42924, - 42924 - ], - "mapped", - [ - 609 - ] - ], - [ - [ - 42925, - 42925 - ], - "mapped", - [ - 620 - ] - ], - [ - [ - 42926, - 42927 - ], - "disallowed" - ], - [ - [ - 42928, - 42928 - ], - "mapped", - [ - 670 - ] - ], - [ - [ - 42929, - 42929 - ], - "mapped", - [ - 647 - ] - ], - [ - [ - 42930, - 42930 - ], - "mapped", - [ - 669 - ] - ], - [ - [ - 42931, - 42931 - ], - "mapped", - [ - 43859 - ] - ], - [ - [ - 42932, - 42932 - ], - "mapped", - [ - 42933 - ] - ], - [ - [ - 42933, - 42933 - ], - "valid" - ], - [ - [ - 42934, - 42934 - ], - "mapped", - [ - 42935 - ] - ], - [ - [ - 42935, - 42935 - ], - "valid" - ], - [ - [ - 42936, - 42998 - ], - "disallowed" - ], - [ - [ - 42999, - 42999 - ], - "valid" - ], - [ - [ - 43000, - 43000 - ], - "mapped", - [ - 295 - ] - ], - [ - [ - 43001, - 43001 - ], - "mapped", - [ - 339 - ] - ], - [ - [ - 43002, - 43002 - ], - "valid" - ], - [ - [ - 43003, - 43007 - ], - "valid" - ], - [ - [ - 43008, - 43047 - ], - "valid" - ], - [ - [ - 43048, - 43051 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43052, - 43055 - ], - "disallowed" - ], - [ - [ - 43056, - 43065 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43066, - 43071 - ], - "disallowed" - ], - [ - [ - 43072, - 43123 - ], - "valid" - ], - [ - [ - 43124, - 43127 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43128, - 43135 - ], - "disallowed" - ], - [ - [ - 43136, - 43204 - ], - "valid" - ], - [ - [ - 43205, - 43213 - ], - "disallowed" - ], - [ - [ - 43214, - 43215 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43216, - 43225 - ], - "valid" - ], - [ - [ - 43226, - 43231 - ], - "disallowed" - ], - [ - [ - 43232, - 43255 - ], - "valid" - ], - [ - [ - 43256, - 43258 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43259, - 43259 - ], - "valid" - ], - [ - [ - 43260, - 43260 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43261, - 43261 - ], - "valid" - ], - [ - [ - 43262, - 43263 - ], - "disallowed" - ], - [ - [ - 43264, - 43309 - ], - "valid" - ], - [ - [ - 43310, - 43311 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43312, - 43347 - ], - "valid" - ], - [ - [ - 43348, - 43358 - ], - "disallowed" - ], - [ - [ - 43359, - 43359 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43360, - 43388 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43389, - 43391 - ], - "disallowed" - ], - [ - [ - 43392, - 43456 - ], - "valid" - ], - [ - [ - 43457, - 43469 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43470, - 43470 - ], - "disallowed" - ], - [ - [ - 43471, - 43481 - ], - "valid" - ], - [ - [ - 43482, - 43485 - ], - "disallowed" - ], - [ - [ - 43486, - 43487 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43488, - 43518 - ], - "valid" - ], - [ - [ - 43519, - 43519 - ], - "disallowed" - ], - [ - [ - 43520, - 43574 - ], - "valid" - ], - [ - [ - 43575, - 43583 - ], - "disallowed" - ], - [ - [ - 43584, - 43597 - ], - "valid" - ], - [ - [ - 43598, - 43599 - ], - "disallowed" - ], - [ - [ - 43600, - 43609 - ], - "valid" - ], - [ - [ - 43610, - 43611 - ], - "disallowed" - ], - [ - [ - 43612, - 43615 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43616, - 43638 - ], - "valid" - ], - [ - [ - 43639, - 43641 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43642, - 43643 - ], - "valid" - ], - [ - [ - 43644, - 43647 - ], - "valid" - ], - [ - [ - 43648, - 43714 - ], - "valid" - ], - [ - [ - 43715, - 43738 - ], - "disallowed" - ], - [ - [ - 43739, - 43741 - ], - "valid" - ], - [ - [ - 43742, - 43743 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43744, - 43759 - ], - "valid" - ], - [ - [ - 43760, - 43761 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43762, - 43766 - ], - "valid" - ], - [ - [ - 43767, - 43776 - ], - "disallowed" - ], - [ - [ - 43777, - 43782 - ], - "valid" - ], - [ - [ - 43783, - 43784 - ], - "disallowed" - ], - [ - [ - 43785, - 43790 - ], - "valid" - ], - [ - [ - 43791, - 43792 - ], - "disallowed" - ], - [ - [ - 43793, - 43798 - ], - "valid" - ], - [ - [ - 43799, - 43807 - ], - "disallowed" - ], - [ - [ - 43808, - 43814 - ], - "valid" - ], - [ - [ - 43815, - 43815 - ], - "disallowed" - ], - [ - [ - 43816, - 43822 - ], - "valid" - ], - [ - [ - 43823, - 43823 - ], - "disallowed" - ], - [ - [ - 43824, - 43866 - ], - "valid" - ], - [ - [ - 43867, - 43867 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 43868, - 43868 - ], - "mapped", - [ - 42791 - ] - ], - [ - [ - 43869, - 43869 - ], - "mapped", - [ - 43831 - ] - ], - [ - [ - 43870, - 43870 - ], - "mapped", - [ - 619 - ] - ], - [ - [ - 43871, - 43871 - ], - "mapped", - [ - 43858 - ] - ], - [ - [ - 43872, - 43875 - ], - "valid" - ], - [ - [ - 43876, - 43877 - ], - "valid" - ], - [ - [ - 43878, - 43887 - ], - "disallowed" - ], - [ - [ - 43888, - 43888 - ], - "mapped", - [ - 5024 - ] - ], - [ - [ - 43889, - 43889 - ], - "mapped", - [ - 5025 - ] - ], - [ - [ - 43890, - 43890 - ], - "mapped", - [ - 5026 - ] - ], - [ - [ - 43891, - 43891 - ], - "mapped", - [ - 5027 - ] - ], - [ - [ - 43892, - 43892 - ], - "mapped", - [ - 5028 - ] - ], - [ - [ - 43893, - 43893 - ], - "mapped", - [ - 5029 - ] - ], - [ - [ - 43894, - 43894 - ], - "mapped", - [ - 5030 - ] - ], - [ - [ - 43895, - 43895 - ], - "mapped", - [ - 5031 - ] - ], - [ - [ - 43896, - 43896 - ], - "mapped", - [ - 5032 - ] - ], - [ - [ - 43897, - 43897 - ], - "mapped", - [ - 5033 - ] - ], - [ - [ - 43898, - 43898 - ], - "mapped", - [ - 5034 - ] - ], - [ - [ - 43899, - 43899 - ], - "mapped", - [ - 5035 - ] - ], - [ - [ - 43900, - 43900 - ], - "mapped", - [ - 5036 - ] - ], - [ - [ - 43901, - 43901 - ], - "mapped", - [ - 5037 - ] - ], - [ - [ - 43902, - 43902 - ], - "mapped", - [ - 5038 - ] - ], - [ - [ - 43903, - 43903 - ], - "mapped", - [ - 5039 - ] - ], - [ - [ - 43904, - 43904 - ], - "mapped", - [ - 5040 - ] - ], - [ - [ - 43905, - 43905 - ], - "mapped", - [ - 5041 - ] - ], - [ - [ - 43906, - 43906 - ], - "mapped", - [ - 5042 - ] - ], - [ - [ - 43907, - 43907 - ], - "mapped", - [ - 5043 - ] - ], - [ - [ - 43908, - 43908 - ], - "mapped", - [ - 5044 - ] - ], - [ - [ - 43909, - 43909 - ], - "mapped", - [ - 5045 - ] - ], - [ - [ - 43910, - 43910 - ], - "mapped", - [ - 5046 - ] - ], - [ - [ - 43911, - 43911 - ], - "mapped", - [ - 5047 - ] - ], - [ - [ - 43912, - 43912 - ], - "mapped", - [ - 5048 - ] - ], - [ - [ - 43913, - 43913 - ], - "mapped", - [ - 5049 - ] - ], - [ - [ - 43914, - 43914 - ], - "mapped", - [ - 5050 - ] - ], - [ - [ - 43915, - 43915 - ], - "mapped", - [ - 5051 - ] - ], - [ - [ - 43916, - 43916 - ], - "mapped", - [ - 5052 - ] - ], - [ - [ - 43917, - 43917 - ], - "mapped", - [ - 5053 - ] - ], - [ - [ - 43918, - 43918 - ], - "mapped", - [ - 5054 - ] - ], - [ - [ - 43919, - 43919 - ], - "mapped", - [ - 5055 - ] - ], - [ - [ - 43920, - 43920 - ], - "mapped", - [ - 5056 - ] - ], - [ - [ - 43921, - 43921 - ], - "mapped", - [ - 5057 - ] - ], - [ - [ - 43922, - 43922 - ], - "mapped", - [ - 5058 - ] - ], - [ - [ - 43923, - 43923 - ], - "mapped", - [ - 5059 - ] - ], - [ - [ - 43924, - 43924 - ], - "mapped", - [ - 5060 - ] - ], - [ - [ - 43925, - 43925 - ], - "mapped", - [ - 5061 - ] - ], - [ - [ - 43926, - 43926 - ], - "mapped", - [ - 5062 - ] - ], - [ - [ - 43927, - 43927 - ], - "mapped", - [ - 5063 - ] - ], - [ - [ - 43928, - 43928 - ], - "mapped", - [ - 5064 - ] - ], - [ - [ - 43929, - 43929 - ], - "mapped", - [ - 5065 - ] - ], - [ - [ - 43930, - 43930 - ], - "mapped", - [ - 5066 - ] - ], - [ - [ - 43931, - 43931 - ], - "mapped", - [ - 5067 - ] - ], - [ - [ - 43932, - 43932 - ], - "mapped", - [ - 5068 - ] - ], - [ - [ - 43933, - 43933 - ], - "mapped", - [ - 5069 - ] - ], - [ - [ - 43934, - 43934 - ], - "mapped", - [ - 5070 - ] - ], - [ - [ - 43935, - 43935 - ], - "mapped", - [ - 5071 - ] - ], - [ - [ - 43936, - 43936 - ], - "mapped", - [ - 5072 - ] - ], - [ - [ - 43937, - 43937 - ], - "mapped", - [ - 5073 - ] - ], - [ - [ - 43938, - 43938 - ], - "mapped", - [ - 5074 - ] - ], - [ - [ - 43939, - 43939 - ], - "mapped", - [ - 5075 - ] - ], - [ - [ - 43940, - 43940 - ], - "mapped", - [ - 5076 - ] - ], - [ - [ - 43941, - 43941 - ], - "mapped", - [ - 5077 - ] - ], - [ - [ - 43942, - 43942 - ], - "mapped", - [ - 5078 - ] - ], - [ - [ - 43943, - 43943 - ], - "mapped", - [ - 5079 - ] - ], - [ - [ - 43944, - 43944 - ], - "mapped", - [ - 5080 - ] - ], - [ - [ - 43945, - 43945 - ], - "mapped", - [ - 5081 - ] - ], - [ - [ - 43946, - 43946 - ], - "mapped", - [ - 5082 - ] - ], - [ - [ - 43947, - 43947 - ], - "mapped", - [ - 5083 - ] - ], - [ - [ - 43948, - 43948 - ], - "mapped", - [ - 5084 - ] - ], - [ - [ - 43949, - 43949 - ], - "mapped", - [ - 5085 - ] - ], - [ - [ - 43950, - 43950 - ], - "mapped", - [ - 5086 - ] - ], - [ - [ - 43951, - 43951 - ], - "mapped", - [ - 5087 - ] - ], - [ - [ - 43952, - 43952 - ], - "mapped", - [ - 5088 - ] - ], - [ - [ - 43953, - 43953 - ], - "mapped", - [ - 5089 - ] - ], - [ - [ - 43954, - 43954 - ], - "mapped", - [ - 5090 - ] - ], - [ - [ - 43955, - 43955 - ], - "mapped", - [ - 5091 - ] - ], - [ - [ - 43956, - 43956 - ], - "mapped", - [ - 5092 - ] - ], - [ - [ - 43957, - 43957 - ], - "mapped", - [ - 5093 - ] - ], - [ - [ - 43958, - 43958 - ], - "mapped", - [ - 5094 - ] - ], - [ - [ - 43959, - 43959 - ], - "mapped", - [ - 5095 - ] - ], - [ - [ - 43960, - 43960 - ], - "mapped", - [ - 5096 - ] - ], - [ - [ - 43961, - 43961 - ], - "mapped", - [ - 5097 - ] - ], - [ - [ - 43962, - 43962 - ], - "mapped", - [ - 5098 - ] - ], - [ - [ - 43963, - 43963 - ], - "mapped", - [ - 5099 - ] - ], - [ - [ - 43964, - 43964 - ], - "mapped", - [ - 5100 - ] - ], - [ - [ - 43965, - 43965 - ], - "mapped", - [ - 5101 - ] - ], - [ - [ - 43966, - 43966 - ], - "mapped", - [ - 5102 - ] - ], - [ - [ - 43967, - 43967 - ], - "mapped", - [ - 5103 - ] - ], - [ - [ - 43968, - 44010 - ], - "valid" - ], - [ - [ - 44011, - 44011 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 44012, - 44013 - ], - "valid" - ], - [ - [ - 44014, - 44015 - ], - "disallowed" - ], - [ - [ - 44016, - 44025 - ], - "valid" - ], - [ - [ - 44026, - 44031 - ], - "disallowed" - ], - [ - [ - 44032, - 55203 - ], - "valid" - ], - [ - [ - 55204, - 55215 - ], - "disallowed" - ], - [ - [ - 55216, - 55238 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 55239, - 55242 - ], - "disallowed" - ], - [ - [ - 55243, - 55291 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 55292, - 55295 - ], - "disallowed" - ], - [ - [ - 55296, - 57343 - ], - "disallowed" - ], - [ - [ - 57344, - 63743 - ], - "disallowed" - ], - [ - [ - 63744, - 63744 - ], - "mapped", - [ - 35912 - ] - ], - [ - [ - 63745, - 63745 - ], - "mapped", - [ - 26356 - ] - ], - [ - [ - 63746, - 63746 - ], - "mapped", - [ - 36554 - ] - ], - [ - [ - 63747, - 63747 - ], - "mapped", - [ - 36040 - ] - ], - [ - [ - 63748, - 63748 - ], - "mapped", - [ - 28369 - ] - ], - [ - [ - 63749, - 63749 - ], - "mapped", - [ - 20018 - ] - ], - [ - [ - 63750, - 63750 - ], - "mapped", - [ - 21477 - ] - ], - [ - [ - 63751, - 63752 - ], - "mapped", - [ - 40860 - ] - ], - [ - [ - 63753, - 63753 - ], - "mapped", - [ - 22865 - ] - ], - [ - [ - 63754, - 63754 - ], - "mapped", - [ - 37329 - ] - ], - [ - [ - 63755, - 63755 - ], - "mapped", - [ - 21895 - ] - ], - [ - [ - 63756, - 63756 - ], - "mapped", - [ - 22856 - ] - ], - [ - [ - 63757, - 63757 - ], - "mapped", - [ - 25078 - ] - ], - [ - [ - 63758, - 63758 - ], - "mapped", - [ - 30313 - ] - ], - [ - [ - 63759, - 63759 - ], - "mapped", - [ - 32645 - ] - ], - [ - [ - 63760, - 63760 - ], - "mapped", - [ - 34367 - ] - ], - [ - [ - 63761, - 63761 - ], - "mapped", - [ - 34746 - ] - ], - [ - [ - 63762, - 63762 - ], - "mapped", - [ - 35064 - ] - ], - [ - [ - 63763, - 63763 - ], - "mapped", - [ - 37007 - ] - ], - [ - [ - 63764, - 63764 - ], - "mapped", - [ - 27138 - ] - ], - [ - [ - 63765, - 63765 - ], - "mapped", - [ - 27931 - ] - ], - [ - [ - 63766, - 63766 - ], - "mapped", - [ - 28889 - ] - ], - [ - [ - 63767, - 63767 - ], - "mapped", - [ - 29662 - ] - ], - [ - [ - 63768, - 63768 - ], - "mapped", - [ - 33853 - ] - ], - [ - [ - 63769, - 63769 - ], - "mapped", - [ - 37226 - ] - ], - [ - [ - 63770, - 63770 - ], - "mapped", - [ - 39409 - ] - ], - [ - [ - 63771, - 63771 - ], - "mapped", - [ - 20098 - ] - ], - [ - [ - 63772, - 63772 - ], - "mapped", - [ - 21365 - ] - ], - [ - [ - 63773, - 63773 - ], - "mapped", - [ - 27396 - ] - ], - [ - [ - 63774, - 63774 - ], - "mapped", - [ - 29211 - ] - ], - [ - [ - 63775, - 63775 - ], - "mapped", - [ - 34349 - ] - ], - [ - [ - 63776, - 63776 - ], - "mapped", - [ - 40478 - ] - ], - [ - [ - 63777, - 63777 - ], - "mapped", - [ - 23888 - ] - ], - [ - [ - 63778, - 63778 - ], - "mapped", - [ - 28651 - ] - ], - [ - [ - 63779, - 63779 - ], - "mapped", - [ - 34253 - ] - ], - [ - [ - 63780, - 63780 - ], - "mapped", - [ - 35172 - ] - ], - [ - [ - 63781, - 63781 - ], - "mapped", - [ - 25289 - ] - ], - [ - [ - 63782, - 63782 - ], - "mapped", - [ - 33240 - ] - ], - [ - [ - 63783, - 63783 - ], - "mapped", - [ - 34847 - ] - ], - [ - [ - 63784, - 63784 - ], - "mapped", - [ - 24266 - ] - ], - [ - [ - 63785, - 63785 - ], - "mapped", - [ - 26391 - ] - ], - [ - [ - 63786, - 63786 - ], - "mapped", - [ - 28010 - ] - ], - [ - [ - 63787, - 63787 - ], - "mapped", - [ - 29436 - ] - ], - [ - [ - 63788, - 63788 - ], - "mapped", - [ - 37070 - ] - ], - [ - [ - 63789, - 63789 - ], - "mapped", - [ - 20358 - ] - ], - [ - [ - 63790, - 63790 - ], - "mapped", - [ - 20919 - ] - ], - [ - [ - 63791, - 63791 - ], - "mapped", - [ - 21214 - ] - ], - [ - [ - 63792, - 63792 - ], - "mapped", - [ - 25796 - ] - ], - [ - [ - 63793, - 63793 - ], - "mapped", - [ - 27347 - ] - ], - [ - [ - 63794, - 63794 - ], - "mapped", - [ - 29200 - ] - ], - [ - [ - 63795, - 63795 - ], - "mapped", - [ - 30439 - ] - ], - [ - [ - 63796, - 63796 - ], - "mapped", - [ - 32769 - ] - ], - [ - [ - 63797, - 63797 - ], - "mapped", - [ - 34310 - ] - ], - [ - [ - 63798, - 63798 - ], - "mapped", - [ - 34396 - ] - ], - [ - [ - 63799, - 63799 - ], - "mapped", - [ - 36335 - ] - ], - [ - [ - 63800, - 63800 - ], - "mapped", - [ - 38706 - ] - ], - [ - [ - 63801, - 63801 - ], - "mapped", - [ - 39791 - ] - ], - [ - [ - 63802, - 63802 - ], - "mapped", - [ - 40442 - ] - ], - [ - [ - 63803, - 63803 - ], - "mapped", - [ - 30860 - ] - ], - [ - [ - 63804, - 63804 - ], - "mapped", - [ - 31103 - ] - ], - [ - [ - 63805, - 63805 - ], - "mapped", - [ - 32160 - ] - ], - [ - [ - 63806, - 63806 - ], - "mapped", - [ - 33737 - ] - ], - [ - [ - 63807, - 63807 - ], - "mapped", - [ - 37636 - ] - ], - [ - [ - 63808, - 63808 - ], - "mapped", - [ - 40575 - ] - ], - [ - [ - 63809, - 63809 - ], - "mapped", - [ - 35542 - ] - ], - [ - [ - 63810, - 63810 - ], - "mapped", - [ - 22751 - ] - ], - [ - [ - 63811, - 63811 - ], - "mapped", - [ - 24324 - ] - ], - [ - [ - 63812, - 63812 - ], - "mapped", - [ - 31840 - ] - ], - [ - [ - 63813, - 63813 - ], - "mapped", - [ - 32894 - ] - ], - [ - [ - 63814, - 63814 - ], - "mapped", - [ - 29282 - ] - ], - [ - [ - 63815, - 63815 - ], - "mapped", - [ - 30922 - ] - ], - [ - [ - 63816, - 63816 - ], - "mapped", - [ - 36034 - ] - ], - [ - [ - 63817, - 63817 - ], - "mapped", - [ - 38647 - ] - ], - [ - [ - 63818, - 63818 - ], - "mapped", - [ - 22744 - ] - ], - [ - [ - 63819, - 63819 - ], - "mapped", - [ - 23650 - ] - ], - [ - [ - 63820, - 63820 - ], - "mapped", - [ - 27155 - ] - ], - [ - [ - 63821, - 63821 - ], - "mapped", - [ - 28122 - ] - ], - [ - [ - 63822, - 63822 - ], - "mapped", - [ - 28431 - ] - ], - [ - [ - 63823, - 63823 - ], - "mapped", - [ - 32047 - ] - ], - [ - [ - 63824, - 63824 - ], - "mapped", - [ - 32311 - ] - ], - [ - [ - 63825, - 63825 - ], - "mapped", - [ - 38475 - ] - ], - [ - [ - 63826, - 63826 - ], - "mapped", - [ - 21202 - ] - ], - [ - [ - 63827, - 63827 - ], - "mapped", - [ - 32907 - ] - ], - [ - [ - 63828, - 63828 - ], - "mapped", - [ - 20956 - ] - ], - [ - [ - 63829, - 63829 - ], - "mapped", - [ - 20940 - ] - ], - [ - [ - 63830, - 63830 - ], - "mapped", - [ - 31260 - ] - ], - [ - [ - 63831, - 63831 - ], - "mapped", - [ - 32190 - ] - ], - [ - [ - 63832, - 63832 - ], - "mapped", - [ - 33777 - ] - ], - [ - [ - 63833, - 63833 - ], - "mapped", - [ - 38517 - ] - ], - [ - [ - 63834, - 63834 - ], - "mapped", - [ - 35712 - ] - ], - [ - [ - 63835, - 63835 - ], - "mapped", - [ - 25295 - ] - ], - [ - [ - 63836, - 63836 - ], - "mapped", - [ - 27138 - ] - ], - [ - [ - 63837, - 63837 - ], - "mapped", - [ - 35582 - ] - ], - [ - [ - 63838, - 63838 - ], - "mapped", - [ - 20025 - ] - ], - [ - [ - 63839, - 63839 - ], - "mapped", - [ - 23527 - ] - ], - [ - [ - 63840, - 63840 - ], - "mapped", - [ - 24594 - ] - ], - [ - [ - 63841, - 63841 - ], - "mapped", - [ - 29575 - ] - ], - [ - [ - 63842, - 63842 - ], - "mapped", - [ - 30064 - ] - ], - [ - [ - 63843, - 63843 - ], - "mapped", - [ - 21271 - ] - ], - [ - [ - 63844, - 63844 - ], - "mapped", - [ - 30971 - ] - ], - [ - [ - 63845, - 63845 - ], - "mapped", - [ - 20415 - ] - ], - [ - [ - 63846, - 63846 - ], - "mapped", - [ - 24489 - ] - ], - [ - [ - 63847, - 63847 - ], - "mapped", - [ - 19981 - ] - ], - [ - [ - 63848, - 63848 - ], - "mapped", - [ - 27852 - ] - ], - [ - [ - 63849, - 63849 - ], - "mapped", - [ - 25976 - ] - ], - [ - [ - 63850, - 63850 - ], - "mapped", - [ - 32034 - ] - ], - [ - [ - 63851, - 63851 - ], - "mapped", - [ - 21443 - ] - ], - [ - [ - 63852, - 63852 - ], - "mapped", - [ - 22622 - ] - ], - [ - [ - 63853, - 63853 - ], - "mapped", - [ - 30465 - ] - ], - [ - [ - 63854, - 63854 - ], - "mapped", - [ - 33865 - ] - ], - [ - [ - 63855, - 63855 - ], - "mapped", - [ - 35498 - ] - ], - [ - [ - 63856, - 63856 - ], - "mapped", - [ - 27578 - ] - ], - [ - [ - 63857, - 63857 - ], - "mapped", - [ - 36784 - ] - ], - [ - [ - 63858, - 63858 - ], - "mapped", - [ - 27784 - ] - ], - [ - [ - 63859, - 63859 - ], - "mapped", - [ - 25342 - ] - ], - [ - [ - 63860, - 63860 - ], - "mapped", - [ - 33509 - ] - ], - [ - [ - 63861, - 63861 - ], - "mapped", - [ - 25504 - ] - ], - [ - [ - 63862, - 63862 - ], - "mapped", - [ - 30053 - ] - ], - [ - [ - 63863, - 63863 - ], - "mapped", - [ - 20142 - ] - ], - [ - [ - 63864, - 63864 - ], - "mapped", - [ - 20841 - ] - ], - [ - [ - 63865, - 63865 - ], - "mapped", - [ - 20937 - ] - ], - [ - [ - 63866, - 63866 - ], - "mapped", - [ - 26753 - ] - ], - [ - [ - 63867, - 63867 - ], - "mapped", - [ - 31975 - ] - ], - [ - [ - 63868, - 63868 - ], - "mapped", - [ - 33391 - ] - ], - [ - [ - 63869, - 63869 - ], - "mapped", - [ - 35538 - ] - ], - [ - [ - 63870, - 63870 - ], - "mapped", - [ - 37327 - ] - ], - [ - [ - 63871, - 63871 - ], - "mapped", - [ - 21237 - ] - ], - [ - [ - 63872, - 63872 - ], - "mapped", - [ - 21570 - ] - ], - [ - [ - 63873, - 63873 - ], - "mapped", - [ - 22899 - ] - ], - [ - [ - 63874, - 63874 - ], - "mapped", - [ - 24300 - ] - ], - [ - [ - 63875, - 63875 - ], - "mapped", - [ - 26053 - ] - ], - [ - [ - 63876, - 63876 - ], - "mapped", - [ - 28670 - ] - ], - [ - [ - 63877, - 63877 - ], - "mapped", - [ - 31018 - ] - ], - [ - [ - 63878, - 63878 - ], - "mapped", - [ - 38317 - ] - ], - [ - [ - 63879, - 63879 - ], - "mapped", - [ - 39530 - ] - ], - [ - [ - 63880, - 63880 - ], - "mapped", - [ - 40599 - ] - ], - [ - [ - 63881, - 63881 - ], - "mapped", - [ - 40654 - ] - ], - [ - [ - 63882, - 63882 - ], - "mapped", - [ - 21147 - ] - ], - [ - [ - 63883, - 63883 - ], - "mapped", - [ - 26310 - ] - ], - [ - [ - 63884, - 63884 - ], - "mapped", - [ - 27511 - ] - ], - [ - [ - 63885, - 63885 - ], - "mapped", - [ - 36706 - ] - ], - [ - [ - 63886, - 63886 - ], - "mapped", - [ - 24180 - ] - ], - [ - [ - 63887, - 63887 - ], - "mapped", - [ - 24976 - ] - ], - [ - [ - 63888, - 63888 - ], - "mapped", - [ - 25088 - ] - ], - [ - [ - 63889, - 63889 - ], - "mapped", - [ - 25754 - ] - ], - [ - [ - 63890, - 63890 - ], - "mapped", - [ - 28451 - ] - ], - [ - [ - 63891, - 63891 - ], - "mapped", - [ - 29001 - ] - ], - [ - [ - 63892, - 63892 - ], - "mapped", - [ - 29833 - ] - ], - [ - [ - 63893, - 63893 - ], - "mapped", - [ - 31178 - ] - ], - [ - [ - 63894, - 63894 - ], - "mapped", - [ - 32244 - ] - ], - [ - [ - 63895, - 63895 - ], - "mapped", - [ - 32879 - ] - ], - [ - [ - 63896, - 63896 - ], - "mapped", - [ - 36646 - ] - ], - [ - [ - 63897, - 63897 - ], - "mapped", - [ - 34030 - ] - ], - [ - [ - 63898, - 63898 - ], - "mapped", - [ - 36899 - ] - ], - [ - [ - 63899, - 63899 - ], - "mapped", - [ - 37706 - ] - ], - [ - [ - 63900, - 63900 - ], - "mapped", - [ - 21015 - ] - ], - [ - [ - 63901, - 63901 - ], - "mapped", - [ - 21155 - ] - ], - [ - [ - 63902, - 63902 - ], - "mapped", - [ - 21693 - ] - ], - [ - [ - 63903, - 63903 - ], - "mapped", - [ - 28872 - ] - ], - [ - [ - 63904, - 63904 - ], - "mapped", - [ - 35010 - ] - ], - [ - [ - 63905, - 63905 - ], - "mapped", - [ - 35498 - ] - ], - [ - [ - 63906, - 63906 - ], - "mapped", - [ - 24265 - ] - ], - [ - [ - 63907, - 63907 - ], - "mapped", - [ - 24565 - ] - ], - [ - [ - 63908, - 63908 - ], - "mapped", - [ - 25467 - ] - ], - [ - [ - 63909, - 63909 - ], - "mapped", - [ - 27566 - ] - ], - [ - [ - 63910, - 63910 - ], - "mapped", - [ - 31806 - ] - ], - [ - [ - 63911, - 63911 - ], - "mapped", - [ - 29557 - ] - ], - [ - [ - 63912, - 63912 - ], - "mapped", - [ - 20196 - ] - ], - [ - [ - 63913, - 63913 - ], - "mapped", - [ - 22265 - ] - ], - [ - [ - 63914, - 63914 - ], - "mapped", - [ - 23527 - ] - ], - [ - [ - 63915, - 63915 - ], - "mapped", - [ - 23994 - ] - ], - [ - [ - 63916, - 63916 - ], - "mapped", - [ - 24604 - ] - ], - [ - [ - 63917, - 63917 - ], - "mapped", - [ - 29618 - ] - ], - [ - [ - 63918, - 63918 - ], - "mapped", - [ - 29801 - ] - ], - [ - [ - 63919, - 63919 - ], - "mapped", - [ - 32666 - ] - ], - [ - [ - 63920, - 63920 - ], - "mapped", - [ - 32838 - ] - ], - [ - [ - 63921, - 63921 - ], - "mapped", - [ - 37428 - ] - ], - [ - [ - 63922, - 63922 - ], - "mapped", - [ - 38646 - ] - ], - [ - [ - 63923, - 63923 - ], - "mapped", - [ - 38728 - ] - ], - [ - [ - 63924, - 63924 - ], - "mapped", - [ - 38936 - ] - ], - [ - [ - 63925, - 63925 - ], - "mapped", - [ - 20363 - ] - ], - [ - [ - 63926, - 63926 - ], - "mapped", - [ - 31150 - ] - ], - [ - [ - 63927, - 63927 - ], - "mapped", - [ - 37300 - ] - ], - [ - [ - 63928, - 63928 - ], - "mapped", - [ - 38584 - ] - ], - [ - [ - 63929, - 63929 - ], - "mapped", - [ - 24801 - ] - ], - [ - [ - 63930, - 63930 - ], - "mapped", - [ - 20102 - ] - ], - [ - [ - 63931, - 63931 - ], - "mapped", - [ - 20698 - ] - ], - [ - [ - 63932, - 63932 - ], - "mapped", - [ - 23534 - ] - ], - [ - [ - 63933, - 63933 - ], - "mapped", - [ - 23615 - ] - ], - [ - [ - 63934, - 63934 - ], - "mapped", - [ - 26009 - ] - ], - [ - [ - 63935, - 63935 - ], - "mapped", - [ - 27138 - ] - ], - [ - [ - 63936, - 63936 - ], - "mapped", - [ - 29134 - ] - ], - [ - [ - 63937, - 63937 - ], - "mapped", - [ - 30274 - ] - ], - [ - [ - 63938, - 63938 - ], - "mapped", - [ - 34044 - ] - ], - [ - [ - 63939, - 63939 - ], - "mapped", - [ - 36988 - ] - ], - [ - [ - 63940, - 63940 - ], - "mapped", - [ - 40845 - ] - ], - [ - [ - 63941, - 63941 - ], - "mapped", - [ - 26248 - ] - ], - [ - [ - 63942, - 63942 - ], - "mapped", - [ - 38446 - ] - ], - [ - [ - 63943, - 63943 - ], - "mapped", - [ - 21129 - ] - ], - [ - [ - 63944, - 63944 - ], - "mapped", - [ - 26491 - ] - ], - [ - [ - 63945, - 63945 - ], - "mapped", - [ - 26611 - ] - ], - [ - [ - 63946, - 63946 - ], - "mapped", - [ - 27969 - ] - ], - [ - [ - 63947, - 63947 - ], - "mapped", - [ - 28316 - ] - ], - [ - [ - 63948, - 63948 - ], - "mapped", - [ - 29705 - ] - ], - [ - [ - 63949, - 63949 - ], - "mapped", - [ - 30041 - ] - ], - [ - [ - 63950, - 63950 - ], - "mapped", - [ - 30827 - ] - ], - [ - [ - 63951, - 63951 - ], - "mapped", - [ - 32016 - ] - ], - [ - [ - 63952, - 63952 - ], - "mapped", - [ - 39006 - ] - ], - [ - [ - 63953, - 63953 - ], - "mapped", - [ - 20845 - ] - ], - [ - [ - 63954, - 63954 - ], - "mapped", - [ - 25134 - ] - ], - [ - [ - 63955, - 63955 - ], - "mapped", - [ - 38520 - ] - ], - [ - [ - 63956, - 63956 - ], - "mapped", - [ - 20523 - ] - ], - [ - [ - 63957, - 63957 - ], - "mapped", - [ - 23833 - ] - ], - [ - [ - 63958, - 63958 - ], - "mapped", - [ - 28138 - ] - ], - [ - [ - 63959, - 63959 - ], - "mapped", - [ - 36650 - ] - ], - [ - [ - 63960, - 63960 - ], - "mapped", - [ - 24459 - ] - ], - [ - [ - 63961, - 63961 - ], - "mapped", - [ - 24900 - ] - ], - [ - [ - 63962, - 63962 - ], - "mapped", - [ - 26647 - ] - ], - [ - [ - 63963, - 63963 - ], - "mapped", - [ - 29575 - ] - ], - [ - [ - 63964, - 63964 - ], - "mapped", - [ - 38534 - ] - ], - [ - [ - 63965, - 63965 - ], - "mapped", - [ - 21033 - ] - ], - [ - [ - 63966, - 63966 - ], - "mapped", - [ - 21519 - ] - ], - [ - [ - 63967, - 63967 - ], - "mapped", - [ - 23653 - ] - ], - [ - [ - 63968, - 63968 - ], - "mapped", - [ - 26131 - ] - ], - [ - [ - 63969, - 63969 - ], - "mapped", - [ - 26446 - ] - ], - [ - [ - 63970, - 63970 - ], - "mapped", - [ - 26792 - ] - ], - [ - [ - 63971, - 63971 - ], - "mapped", - [ - 27877 - ] - ], - [ - [ - 63972, - 63972 - ], - "mapped", - [ - 29702 - ] - ], - [ - [ - 63973, - 63973 - ], - "mapped", - [ - 30178 - ] - ], - [ - [ - 63974, - 63974 - ], - "mapped", - [ - 32633 - ] - ], - [ - [ - 63975, - 63975 - ], - "mapped", - [ - 35023 - ] - ], - [ - [ - 63976, - 63976 - ], - "mapped", - [ - 35041 - ] - ], - [ - [ - 63977, - 63977 - ], - "mapped", - [ - 37324 - ] - ], - [ - [ - 63978, - 63978 - ], - "mapped", - [ - 38626 - ] - ], - [ - [ - 63979, - 63979 - ], - "mapped", - [ - 21311 - ] - ], - [ - [ - 63980, - 63980 - ], - "mapped", - [ - 28346 - ] - ], - [ - [ - 63981, - 63981 - ], - "mapped", - [ - 21533 - ] - ], - [ - [ - 63982, - 63982 - ], - "mapped", - [ - 29136 - ] - ], - [ - [ - 63983, - 63983 - ], - "mapped", - [ - 29848 - ] - ], - [ - [ - 63984, - 63984 - ], - "mapped", - [ - 34298 - ] - ], - [ - [ - 63985, - 63985 - ], - "mapped", - [ - 38563 - ] - ], - [ - [ - 63986, - 63986 - ], - "mapped", - [ - 40023 - ] - ], - [ - [ - 63987, - 63987 - ], - "mapped", - [ - 40607 - ] - ], - [ - [ - 63988, - 63988 - ], - "mapped", - [ - 26519 - ] - ], - [ - [ - 63989, - 63989 - ], - "mapped", - [ - 28107 - ] - ], - [ - [ - 63990, - 63990 - ], - "mapped", - [ - 33256 - ] - ], - [ - [ - 63991, - 63991 - ], - "mapped", - [ - 31435 - ] - ], - [ - [ - 63992, - 63992 - ], - "mapped", - [ - 31520 - ] - ], - [ - [ - 63993, - 63993 - ], - "mapped", - [ - 31890 - ] - ], - [ - [ - 63994, - 63994 - ], - "mapped", - [ - 29376 - ] - ], - [ - [ - 63995, - 63995 - ], - "mapped", - [ - 28825 - ] - ], - [ - [ - 63996, - 63996 - ], - "mapped", - [ - 35672 - ] - ], - [ - [ - 63997, - 63997 - ], - "mapped", - [ - 20160 - ] - ], - [ - [ - 63998, - 63998 - ], - "mapped", - [ - 33590 - ] - ], - [ - [ - 63999, - 63999 - ], - "mapped", - [ - 21050 - ] - ], - [ - [ - 64000, - 64000 - ], - "mapped", - [ - 20999 - ] - ], - [ - [ - 64001, - 64001 - ], - "mapped", - [ - 24230 - ] - ], - [ - [ - 64002, - 64002 - ], - "mapped", - [ - 25299 - ] - ], - [ - [ - 64003, - 64003 - ], - "mapped", - [ - 31958 - ] - ], - [ - [ - 64004, - 64004 - ], - "mapped", - [ - 23429 - ] - ], - [ - [ - 64005, - 64005 - ], - "mapped", - [ - 27934 - ] - ], - [ - [ - 64006, - 64006 - ], - "mapped", - [ - 26292 - ] - ], - [ - [ - 64007, - 64007 - ], - "mapped", - [ - 36667 - ] - ], - [ - [ - 64008, - 64008 - ], - "mapped", - [ - 34892 - ] - ], - [ - [ - 64009, - 64009 - ], - "mapped", - [ - 38477 - ] - ], - [ - [ - 64010, - 64010 - ], - "mapped", - [ - 35211 - ] - ], - [ - [ - 64011, - 64011 - ], - "mapped", - [ - 24275 - ] - ], - [ - [ - 64012, - 64012 - ], - "mapped", - [ - 20800 - ] - ], - [ - [ - 64013, - 64013 - ], - "mapped", - [ - 21952 - ] - ], - [ - [ - 64014, - 64015 - ], - "valid" - ], - [ - [ - 64016, - 64016 - ], - "mapped", - [ - 22618 - ] - ], - [ - [ - 64017, - 64017 - ], - "valid" - ], - [ - [ - 64018, - 64018 - ], - "mapped", - [ - 26228 - ] - ], - [ - [ - 64019, - 64020 - ], - "valid" - ], - [ - [ - 64021, - 64021 - ], - "mapped", - [ - 20958 - ] - ], - [ - [ - 64022, - 64022 - ], - "mapped", - [ - 29482 - ] - ], - [ - [ - 64023, - 64023 - ], - "mapped", - [ - 30410 - ] - ], - [ - [ - 64024, - 64024 - ], - "mapped", - [ - 31036 - ] - ], - [ - [ - 64025, - 64025 - ], - "mapped", - [ - 31070 - ] - ], - [ - [ - 64026, - 64026 - ], - "mapped", - [ - 31077 - ] - ], - [ - [ - 64027, - 64027 - ], - "mapped", - [ - 31119 - ] - ], - [ - [ - 64028, - 64028 - ], - "mapped", - [ - 38742 - ] - ], - [ - [ - 64029, - 64029 - ], - "mapped", - [ - 31934 - ] - ], - [ - [ - 64030, - 64030 - ], - "mapped", - [ - 32701 - ] - ], - [ - [ - 64031, - 64031 - ], - "valid" - ], - [ - [ - 64032, - 64032 - ], - "mapped", - [ - 34322 - ] - ], - [ - [ - 64033, - 64033 - ], - "valid" - ], - [ - [ - 64034, - 64034 - ], - "mapped", - [ - 35576 - ] - ], - [ - [ - 64035, - 64036 - ], - "valid" - ], - [ - [ - 64037, - 64037 - ], - "mapped", - [ - 36920 - ] - ], - [ - [ - 64038, - 64038 - ], - "mapped", - [ - 37117 - ] - ], - [ - [ - 64039, - 64041 - ], - "valid" - ], - [ - [ - 64042, - 64042 - ], - "mapped", - [ - 39151 - ] - ], - [ - [ - 64043, - 64043 - ], - "mapped", - [ - 39164 - ] - ], - [ - [ - 64044, - 64044 - ], - "mapped", - [ - 39208 - ] - ], - [ - [ - 64045, - 64045 - ], - "mapped", - [ - 40372 - ] - ], - [ - [ - 64046, - 64046 - ], - "mapped", - [ - 37086 - ] - ], - [ - [ - 64047, - 64047 - ], - "mapped", - [ - 38583 - ] - ], - [ - [ - 64048, - 64048 - ], - "mapped", - [ - 20398 - ] - ], - [ - [ - 64049, - 64049 - ], - "mapped", - [ - 20711 - ] - ], - [ - [ - 64050, - 64050 - ], - "mapped", - [ - 20813 - ] - ], - [ - [ - 64051, - 64051 - ], - "mapped", - [ - 21193 - ] - ], - [ - [ - 64052, - 64052 - ], - "mapped", - [ - 21220 - ] - ], - [ - [ - 64053, - 64053 - ], - "mapped", - [ - 21329 - ] - ], - [ - [ - 64054, - 64054 - ], - "mapped", - [ - 21917 - ] - ], - [ - [ - 64055, - 64055 - ], - "mapped", - [ - 22022 - ] - ], - [ - [ - 64056, - 64056 - ], - "mapped", - [ - 22120 - ] - ], - [ - [ - 64057, - 64057 - ], - "mapped", - [ - 22592 - ] - ], - [ - [ - 64058, - 64058 - ], - "mapped", - [ - 22696 - ] - ], - [ - [ - 64059, - 64059 - ], - "mapped", - [ - 23652 - ] - ], - [ - [ - 64060, - 64060 - ], - "mapped", - [ - 23662 - ] - ], - [ - [ - 64061, - 64061 - ], - "mapped", - [ - 24724 - ] - ], - [ - [ - 64062, - 64062 - ], - "mapped", - [ - 24936 - ] - ], - [ - [ - 64063, - 64063 - ], - "mapped", - [ - 24974 - ] - ], - [ - [ - 64064, - 64064 - ], - "mapped", - [ - 25074 - ] - ], - [ - [ - 64065, - 64065 - ], - "mapped", - [ - 25935 - ] - ], - [ - [ - 64066, - 64066 - ], - "mapped", - [ - 26082 - ] - ], - [ - [ - 64067, - 64067 - ], - "mapped", - [ - 26257 - ] - ], - [ - [ - 64068, - 64068 - ], - "mapped", - [ - 26757 - ] - ], - [ - [ - 64069, - 64069 - ], - "mapped", - [ - 28023 - ] - ], - [ - [ - 64070, - 64070 - ], - "mapped", - [ - 28186 - ] - ], - [ - [ - 64071, - 64071 - ], - "mapped", - [ - 28450 - ] - ], - [ - [ - 64072, - 64072 - ], - "mapped", - [ - 29038 - ] - ], - [ - [ - 64073, - 64073 - ], - "mapped", - [ - 29227 - ] - ], - [ - [ - 64074, - 64074 - ], - "mapped", - [ - 29730 - ] - ], - [ - [ - 64075, - 64075 - ], - "mapped", - [ - 30865 - ] - ], - [ - [ - 64076, - 64076 - ], - "mapped", - [ - 31038 - ] - ], - [ - [ - 64077, - 64077 - ], - "mapped", - [ - 31049 - ] - ], - [ - [ - 64078, - 64078 - ], - "mapped", - [ - 31048 - ] - ], - [ - [ - 64079, - 64079 - ], - "mapped", - [ - 31056 - ] - ], - [ - [ - 64080, - 64080 - ], - "mapped", - [ - 31062 - ] - ], - [ - [ - 64081, - 64081 - ], - "mapped", - [ - 31069 - ] - ], - [ - [ - 64082, - 64082 - ], - "mapped", - [ - 31117 - ] - ], - [ - [ - 64083, - 64083 - ], - "mapped", - [ - 31118 - ] - ], - [ - [ - 64084, - 64084 - ], - "mapped", - [ - 31296 - ] - ], - [ - [ - 64085, - 64085 - ], - "mapped", - [ - 31361 - ] - ], - [ - [ - 64086, - 64086 - ], - "mapped", - [ - 31680 - ] - ], - [ - [ - 64087, - 64087 - ], - "mapped", - [ - 32244 - ] - ], - [ - [ - 64088, - 64088 - ], - "mapped", - [ - 32265 - ] - ], - [ - [ - 64089, - 64089 - ], - "mapped", - [ - 32321 - ] - ], - [ - [ - 64090, - 64090 - ], - "mapped", - [ - 32626 - ] - ], - [ - [ - 64091, - 64091 - ], - "mapped", - [ - 32773 - ] - ], - [ - [ - 64092, - 64092 - ], - "mapped", - [ - 33261 - ] - ], - [ - [ - 64093, - 64094 - ], - "mapped", - [ - 33401 - ] - ], - [ - [ - 64095, - 64095 - ], - "mapped", - [ - 33879 - ] - ], - [ - [ - 64096, - 64096 - ], - "mapped", - [ - 35088 - ] - ], - [ - [ - 64097, - 64097 - ], - "mapped", - [ - 35222 - ] - ], - [ - [ - 64098, - 64098 - ], - "mapped", - [ - 35585 - ] - ], - [ - [ - 64099, - 64099 - ], - "mapped", - [ - 35641 - ] - ], - [ - [ - 64100, - 64100 - ], - "mapped", - [ - 36051 - ] - ], - [ - [ - 64101, - 64101 - ], - "mapped", - [ - 36104 - ] - ], - [ - [ - 64102, - 64102 - ], - "mapped", - [ - 36790 - ] - ], - [ - [ - 64103, - 64103 - ], - "mapped", - [ - 36920 - ] - ], - [ - [ - 64104, - 64104 - ], - "mapped", - [ - 38627 - ] - ], - [ - [ - 64105, - 64105 - ], - "mapped", - [ - 38911 - ] - ], - [ - [ - 64106, - 64106 - ], - "mapped", - [ - 38971 - ] - ], - [ - [ - 64107, - 64107 - ], - "mapped", - [ - 24693 - ] - ], - [ - [ - 64108, - 64108 - ], - "mapped", - [ - 148206 - ] - ], - [ - [ - 64109, - 64109 - ], - "mapped", - [ - 33304 - ] - ], - [ - [ - 64110, - 64111 - ], - "disallowed" - ], - [ - [ - 64112, - 64112 - ], - "mapped", - [ - 20006 - ] - ], - [ - [ - 64113, - 64113 - ], - "mapped", - [ - 20917 - ] - ], - [ - [ - 64114, - 64114 - ], - "mapped", - [ - 20840 - ] - ], - [ - [ - 64115, - 64115 - ], - "mapped", - [ - 20352 - ] - ], - [ - [ - 64116, - 64116 - ], - "mapped", - [ - 20805 - ] - ], - [ - [ - 64117, - 64117 - ], - "mapped", - [ - 20864 - ] - ], - [ - [ - 64118, - 64118 - ], - "mapped", - [ - 21191 - ] - ], - [ - [ - 64119, - 64119 - ], - "mapped", - [ - 21242 - ] - ], - [ - [ - 64120, - 64120 - ], - "mapped", - [ - 21917 - ] - ], - [ - [ - 64121, - 64121 - ], - "mapped", - [ - 21845 - ] - ], - [ - [ - 64122, - 64122 - ], - "mapped", - [ - 21913 - ] - ], - [ - [ - 64123, - 64123 - ], - "mapped", - [ - 21986 - ] - ], - [ - [ - 64124, - 64124 - ], - "mapped", - [ - 22618 - ] - ], - [ - [ - 64125, - 64125 - ], - "mapped", - [ - 22707 - ] - ], - [ - [ - 64126, - 64126 - ], - "mapped", - [ - 22852 - ] - ], - [ - [ - 64127, - 64127 - ], - "mapped", - [ - 22868 - ] - ], - [ - [ - 64128, - 64128 - ], - "mapped", - [ - 23138 - ] - ], - [ - [ - 64129, - 64129 - ], - "mapped", - [ - 23336 - ] - ], - [ - [ - 64130, - 64130 - ], - "mapped", - [ - 24274 - ] - ], - [ - [ - 64131, - 64131 - ], - "mapped", - [ - 24281 - ] - ], - [ - [ - 64132, - 64132 - ], - "mapped", - [ - 24425 - ] - ], - [ - [ - 64133, - 64133 - ], - "mapped", - [ - 24493 - ] - ], - [ - [ - 64134, - 64134 - ], - "mapped", - [ - 24792 - ] - ], - [ - [ - 64135, - 64135 - ], - "mapped", - [ - 24910 - ] - ], - [ - [ - 64136, - 64136 - ], - "mapped", - [ - 24840 - ] - ], - [ - [ - 64137, - 64137 - ], - "mapped", - [ - 24974 - ] - ], - [ - [ - 64138, - 64138 - ], - "mapped", - [ - 24928 - ] - ], - [ - [ - 64139, - 64139 - ], - "mapped", - [ - 25074 - ] - ], - [ - [ - 64140, - 64140 - ], - "mapped", - [ - 25140 - ] - ], - [ - [ - 64141, - 64141 - ], - "mapped", - [ - 25540 - ] - ], - [ - [ - 64142, - 64142 - ], - "mapped", - [ - 25628 - ] - ], - [ - [ - 64143, - 64143 - ], - "mapped", - [ - 25682 - ] - ], - [ - [ - 64144, - 64144 - ], - "mapped", - [ - 25942 - ] - ], - [ - [ - 64145, - 64145 - ], - "mapped", - [ - 26228 - ] - ], - [ - [ - 64146, - 64146 - ], - "mapped", - [ - 26391 - ] - ], - [ - [ - 64147, - 64147 - ], - "mapped", - [ - 26395 - ] - ], - [ - [ - 64148, - 64148 - ], - "mapped", - [ - 26454 - ] - ], - [ - [ - 64149, - 64149 - ], - "mapped", - [ - 27513 - ] - ], - [ - [ - 64150, - 64150 - ], - "mapped", - [ - 27578 - ] - ], - [ - [ - 64151, - 64151 - ], - "mapped", - [ - 27969 - ] - ], - [ - [ - 64152, - 64152 - ], - "mapped", - [ - 28379 - ] - ], - [ - [ - 64153, - 64153 - ], - "mapped", - [ - 28363 - ] - ], - [ - [ - 64154, - 64154 - ], - "mapped", - [ - 28450 - ] - ], - [ - [ - 64155, - 64155 - ], - "mapped", - [ - 28702 - ] - ], - [ - [ - 64156, - 64156 - ], - "mapped", - [ - 29038 - ] - ], - [ - [ - 64157, - 64157 - ], - "mapped", - [ - 30631 - ] - ], - [ - [ - 64158, - 64158 - ], - "mapped", - [ - 29237 - ] - ], - [ - [ - 64159, - 64159 - ], - "mapped", - [ - 29359 - ] - ], - [ - [ - 64160, - 64160 - ], - "mapped", - [ - 29482 - ] - ], - [ - [ - 64161, - 64161 - ], - "mapped", - [ - 29809 - ] - ], - [ - [ - 64162, - 64162 - ], - "mapped", - [ - 29958 - ] - ], - [ - [ - 64163, - 64163 - ], - "mapped", - [ - 30011 - ] - ], - [ - [ - 64164, - 64164 - ], - "mapped", - [ - 30237 - ] - ], - [ - [ - 64165, - 64165 - ], - "mapped", - [ - 30239 - ] - ], - [ - [ - 64166, - 64166 - ], - "mapped", - [ - 30410 - ] - ], - [ - [ - 64167, - 64167 - ], - "mapped", - [ - 30427 - ] - ], - [ - [ - 64168, - 64168 - ], - "mapped", - [ - 30452 - ] - ], - [ - [ - 64169, - 64169 - ], - "mapped", - [ - 30538 - ] - ], - [ - [ - 64170, - 64170 - ], - "mapped", - [ - 30528 - ] - ], - [ - [ - 64171, - 64171 - ], - "mapped", - [ - 30924 - ] - ], - [ - [ - 64172, - 64172 - ], - "mapped", - [ - 31409 - ] - ], - [ - [ - 64173, - 64173 - ], - "mapped", - [ - 31680 - ] - ], - [ - [ - 64174, - 64174 - ], - "mapped", - [ - 31867 - ] - ], - [ - [ - 64175, - 64175 - ], - "mapped", - [ - 32091 - ] - ], - [ - [ - 64176, - 64176 - ], - "mapped", - [ - 32244 - ] - ], - [ - [ - 64177, - 64177 - ], - "mapped", - [ - 32574 - ] - ], - [ - [ - 64178, - 64178 - ], - "mapped", - [ - 32773 - ] - ], - [ - [ - 64179, - 64179 - ], - "mapped", - [ - 33618 - ] - ], - [ - [ - 64180, - 64180 - ], - "mapped", - [ - 33775 - ] - ], - [ - [ - 64181, - 64181 - ], - "mapped", - [ - 34681 - ] - ], - [ - [ - 64182, - 64182 - ], - "mapped", - [ - 35137 - ] - ], - [ - [ - 64183, - 64183 - ], - "mapped", - [ - 35206 - ] - ], - [ - [ - 64184, - 64184 - ], - "mapped", - [ - 35222 - ] - ], - [ - [ - 64185, - 64185 - ], - "mapped", - [ - 35519 - ] - ], - [ - [ - 64186, - 64186 - ], - "mapped", - [ - 35576 - ] - ], - [ - [ - 64187, - 64187 - ], - "mapped", - [ - 35531 - ] - ], - [ - [ - 64188, - 64188 - ], - "mapped", - [ - 35585 - ] - ], - [ - [ - 64189, - 64189 - ], - "mapped", - [ - 35582 - ] - ], - [ - [ - 64190, - 64190 - ], - "mapped", - [ - 35565 - ] - ], - [ - [ - 64191, - 64191 - ], - "mapped", - [ - 35641 - ] - ], - [ - [ - 64192, - 64192 - ], - "mapped", - [ - 35722 - ] - ], - [ - [ - 64193, - 64193 - ], - "mapped", - [ - 36104 - ] - ], - [ - [ - 64194, - 64194 - ], - "mapped", - [ - 36664 - ] - ], - [ - [ - 64195, - 64195 - ], - "mapped", - [ - 36978 - ] - ], - [ - [ - 64196, - 64196 - ], - "mapped", - [ - 37273 - ] - ], - [ - [ - 64197, - 64197 - ], - "mapped", - [ - 37494 - ] - ], - [ - [ - 64198, - 64198 - ], - "mapped", - [ - 38524 - ] - ], - [ - [ - 64199, - 64199 - ], - "mapped", - [ - 38627 - ] - ], - [ - [ - 64200, - 64200 - ], - "mapped", - [ - 38742 - ] - ], - [ - [ - 64201, - 64201 - ], - "mapped", - [ - 38875 - ] - ], - [ - [ - 64202, - 64202 - ], - "mapped", - [ - 38911 - ] - ], - [ - [ - 64203, - 64203 - ], - "mapped", - [ - 38923 - ] - ], - [ - [ - 64204, - 64204 - ], - "mapped", - [ - 38971 - ] - ], - [ - [ - 64205, - 64205 - ], - "mapped", - [ - 39698 - ] - ], - [ - [ - 64206, - 64206 - ], - "mapped", - [ - 40860 - ] - ], - [ - [ - 64207, - 64207 - ], - "mapped", - [ - 141386 - ] - ], - [ - [ - 64208, - 64208 - ], - "mapped", - [ - 141380 - ] - ], - [ - [ - 64209, - 64209 - ], - "mapped", - [ - 144341 - ] - ], - [ - [ - 64210, - 64210 - ], - "mapped", - [ - 15261 - ] - ], - [ - [ - 64211, - 64211 - ], - "mapped", - [ - 16408 - ] - ], - [ - [ - 64212, - 64212 - ], - "mapped", - [ - 16441 - ] - ], - [ - [ - 64213, - 64213 - ], - "mapped", - [ - 152137 - ] - ], - [ - [ - 64214, - 64214 - ], - "mapped", - [ - 154832 - ] - ], - [ - [ - 64215, - 64215 - ], - "mapped", - [ - 163539 - ] - ], - [ - [ - 64216, - 64216 - ], - "mapped", - [ - 40771 - ] - ], - [ - [ - 64217, - 64217 - ], - "mapped", - [ - 40846 - ] - ], - [ - [ - 64218, - 64255 - ], - "disallowed" - ], - [ - [ - 64256, - 64256 - ], - "mapped", - [ - 102, - 102 - ] - ], - [ - [ - 64257, - 64257 - ], - "mapped", - [ - 102, - 105 - ] - ], - [ - [ - 64258, - 64258 - ], - "mapped", - [ - 102, - 108 - ] - ], - [ - [ - 64259, - 64259 - ], - "mapped", - [ - 102, - 102, - 105 - ] - ], - [ - [ - 64260, - 64260 - ], - "mapped", - [ - 102, - 102, - 108 - ] - ], - [ - [ - 64261, - 64262 - ], - "mapped", - [ - 115, - 116 - ] - ], - [ - [ - 64263, - 64274 - ], - "disallowed" - ], - [ - [ - 64275, - 64275 - ], - "mapped", - [ - 1396, - 1398 - ] - ], - [ - [ - 64276, - 64276 - ], - "mapped", - [ - 1396, - 1381 - ] - ], - [ - [ - 64277, - 64277 - ], - "mapped", - [ - 1396, - 1387 - ] - ], - [ - [ - 64278, - 64278 - ], - "mapped", - [ - 1406, - 1398 - ] - ], - [ - [ - 64279, - 64279 - ], - "mapped", - [ - 1396, - 1389 - ] - ], - [ - [ - 64280, - 64284 - ], - "disallowed" - ], - [ - [ - 64285, - 64285 - ], - "mapped", - [ - 1497, - 1460 - ] - ], - [ - [ - 64286, - 64286 - ], - "valid" - ], - [ - [ - 64287, - 64287 - ], - "mapped", - [ - 1522, - 1463 - ] - ], - [ - [ - 64288, - 64288 - ], - "mapped", - [ - 1506 - ] - ], - [ - [ - 64289, - 64289 - ], - "mapped", - [ - 1488 - ] - ], - [ - [ - 64290, - 64290 - ], - "mapped", - [ - 1491 - ] - ], - [ - [ - 64291, - 64291 - ], - "mapped", - [ - 1492 - ] - ], - [ - [ - 64292, - 64292 - ], - "mapped", - [ - 1499 - ] - ], - [ - [ - 64293, - 64293 - ], - "mapped", - [ - 1500 - ] - ], - [ - [ - 64294, - 64294 - ], - "mapped", - [ - 1501 - ] - ], - [ - [ - 64295, - 64295 - ], - "mapped", - [ - 1512 - ] - ], - [ - [ - 64296, - 64296 - ], - "mapped", - [ - 1514 - ] - ], - [ - [ - 64297, - 64297 - ], - "disallowed_STD3_mapped", - [ - 43 - ] - ], - [ - [ - 64298, - 64298 - ], - "mapped", - [ - 1513, - 1473 - ] - ], - [ - [ - 64299, - 64299 - ], - "mapped", - [ - 1513, - 1474 - ] - ], - [ - [ - 64300, - 64300 - ], - "mapped", - [ - 1513, - 1468, - 1473 - ] - ], - [ - [ - 64301, - 64301 - ], - "mapped", - [ - 1513, - 1468, - 1474 - ] - ], - [ - [ - 64302, - 64302 - ], - "mapped", - [ - 1488, - 1463 - ] - ], - [ - [ - 64303, - 64303 - ], - "mapped", - [ - 1488, - 1464 - ] - ], - [ - [ - 64304, - 64304 - ], - "mapped", - [ - 1488, - 1468 - ] - ], - [ - [ - 64305, - 64305 - ], - "mapped", - [ - 1489, - 1468 - ] - ], - [ - [ - 64306, - 64306 - ], - "mapped", - [ - 1490, - 1468 - ] - ], - [ - [ - 64307, - 64307 - ], - "mapped", - [ - 1491, - 1468 - ] - ], - [ - [ - 64308, - 64308 - ], - "mapped", - [ - 1492, - 1468 - ] - ], - [ - [ - 64309, - 64309 - ], - "mapped", - [ - 1493, - 1468 - ] - ], - [ - [ - 64310, - 64310 - ], - "mapped", - [ - 1494, - 1468 - ] - ], - [ - [ - 64311, - 64311 - ], - "disallowed" - ], - [ - [ - 64312, - 64312 - ], - "mapped", - [ - 1496, - 1468 - ] - ], - [ - [ - 64313, - 64313 - ], - "mapped", - [ - 1497, - 1468 - ] - ], - [ - [ - 64314, - 64314 - ], - "mapped", - [ - 1498, - 1468 - ] - ], - [ - [ - 64315, - 64315 - ], - "mapped", - [ - 1499, - 1468 - ] - ], - [ - [ - 64316, - 64316 - ], - "mapped", - [ - 1500, - 1468 - ] - ], - [ - [ - 64317, - 64317 - ], - "disallowed" - ], - [ - [ - 64318, - 64318 - ], - "mapped", - [ - 1502, - 1468 - ] - ], - [ - [ - 64319, - 64319 - ], - "disallowed" - ], - [ - [ - 64320, - 64320 - ], - "mapped", - [ - 1504, - 1468 - ] - ], - [ - [ - 64321, - 64321 - ], - "mapped", - [ - 1505, - 1468 - ] - ], - [ - [ - 64322, - 64322 - ], - "disallowed" - ], - [ - [ - 64323, - 64323 - ], - "mapped", - [ - 1507, - 1468 - ] - ], - [ - [ - 64324, - 64324 - ], - "mapped", - [ - 1508, - 1468 - ] - ], - [ - [ - 64325, - 64325 - ], - "disallowed" - ], - [ - [ - 64326, - 64326 - ], - "mapped", - [ - 1510, - 1468 - ] - ], - [ - [ - 64327, - 64327 - ], - "mapped", - [ - 1511, - 1468 - ] - ], - [ - [ - 64328, - 64328 - ], - "mapped", - [ - 1512, - 1468 - ] - ], - [ - [ - 64329, - 64329 - ], - "mapped", - [ - 1513, - 1468 - ] - ], - [ - [ - 64330, - 64330 - ], - "mapped", - [ - 1514, - 1468 - ] - ], - [ - [ - 64331, - 64331 - ], - "mapped", - [ - 1493, - 1465 - ] - ], - [ - [ - 64332, - 64332 - ], - "mapped", - [ - 1489, - 1471 - ] - ], - [ - [ - 64333, - 64333 - ], - "mapped", - [ - 1499, - 1471 - ] - ], - [ - [ - 64334, - 64334 - ], - "mapped", - [ - 1508, - 1471 - ] - ], - [ - [ - 64335, - 64335 - ], - "mapped", - [ - 1488, - 1500 - ] - ], - [ - [ - 64336, - 64337 - ], - "mapped", - [ - 1649 - ] - ], - [ - [ - 64338, - 64341 - ], - "mapped", - [ - 1659 - ] - ], - [ - [ - 64342, - 64345 - ], - "mapped", - [ - 1662 - ] - ], - [ - [ - 64346, - 64349 - ], - "mapped", - [ - 1664 - ] - ], - [ - [ - 64350, - 64353 - ], - "mapped", - [ - 1658 - ] - ], - [ - [ - 64354, - 64357 - ], - "mapped", - [ - 1663 - ] - ], - [ - [ - 64358, - 64361 - ], - "mapped", - [ - 1657 - ] - ], - [ - [ - 64362, - 64365 - ], - "mapped", - [ - 1700 - ] - ], - [ - [ - 64366, - 64369 - ], - "mapped", - [ - 1702 - ] - ], - [ - [ - 64370, - 64373 - ], - "mapped", - [ - 1668 - ] - ], - [ - [ - 64374, - 64377 - ], - "mapped", - [ - 1667 - ] - ], - [ - [ - 64378, - 64381 - ], - "mapped", - [ - 1670 - ] - ], - [ - [ - 64382, - 64385 - ], - "mapped", - [ - 1671 - ] - ], - [ - [ - 64386, - 64387 - ], - "mapped", - [ - 1677 - ] - ], - [ - [ - 64388, - 64389 - ], - "mapped", - [ - 1676 - ] - ], - [ - [ - 64390, - 64391 - ], - "mapped", - [ - 1678 - ] - ], - [ - [ - 64392, - 64393 - ], - "mapped", - [ - 1672 - ] - ], - [ - [ - 64394, - 64395 - ], - "mapped", - [ - 1688 - ] - ], - [ - [ - 64396, - 64397 - ], - "mapped", - [ - 1681 - ] - ], - [ - [ - 64398, - 64401 - ], - "mapped", - [ - 1705 - ] - ], - [ - [ - 64402, - 64405 - ], - "mapped", - [ - 1711 - ] - ], - [ - [ - 64406, - 64409 - ], - "mapped", - [ - 1715 - ] - ], - [ - [ - 64410, - 64413 - ], - "mapped", - [ - 1713 - ] - ], - [ - [ - 64414, - 64415 - ], - "mapped", - [ - 1722 - ] - ], - [ - [ - 64416, - 64419 - ], - "mapped", - [ - 1723 - ] - ], - [ - [ - 64420, - 64421 - ], - "mapped", - [ - 1728 - ] - ], - [ - [ - 64422, - 64425 - ], - "mapped", - [ - 1729 - ] - ], - [ - [ - 64426, - 64429 - ], - "mapped", - [ - 1726 - ] - ], - [ - [ - 64430, - 64431 - ], - "mapped", - [ - 1746 - ] - ], - [ - [ - 64432, - 64433 - ], - "mapped", - [ - 1747 - ] - ], - [ - [ - 64434, - 64449 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 64450, - 64466 - ], - "disallowed" - ], - [ - [ - 64467, - 64470 - ], - "mapped", - [ - 1709 - ] - ], - [ - [ - 64471, - 64472 - ], - "mapped", - [ - 1735 - ] - ], - [ - [ - 64473, - 64474 - ], - "mapped", - [ - 1734 - ] - ], - [ - [ - 64475, - 64476 - ], - "mapped", - [ - 1736 - ] - ], - [ - [ - 64477, - 64477 - ], - "mapped", - [ - 1735, - 1652 - ] - ], - [ - [ - 64478, - 64479 - ], - "mapped", - [ - 1739 - ] - ], - [ - [ - 64480, - 64481 - ], - "mapped", - [ - 1733 - ] - ], - [ - [ - 64482, - 64483 - ], - "mapped", - [ - 1737 - ] - ], - [ - [ - 64484, - 64487 - ], - "mapped", - [ - 1744 - ] - ], - [ - [ - 64488, - 64489 - ], - "mapped", - [ - 1609 - ] - ], - [ - [ - 64490, - 64491 - ], - "mapped", - [ - 1574, - 1575 - ] - ], - [ - [ - 64492, - 64493 - ], - "mapped", - [ - 1574, - 1749 - ] - ], - [ - [ - 64494, - 64495 - ], - "mapped", - [ - 1574, - 1608 - ] - ], - [ - [ - 64496, - 64497 - ], - "mapped", - [ - 1574, - 1735 - ] - ], - [ - [ - 64498, - 64499 - ], - "mapped", - [ - 1574, - 1734 - ] - ], - [ - [ - 64500, - 64501 - ], - "mapped", - [ - 1574, - 1736 - ] - ], - [ - [ - 64502, - 64504 - ], - "mapped", - [ - 1574, - 1744 - ] - ], - [ - [ - 64505, - 64507 - ], - "mapped", - [ - 1574, - 1609 - ] - ], - [ - [ - 64508, - 64511 - ], - "mapped", - [ - 1740 - ] - ], - [ - [ - 64512, - 64512 - ], - "mapped", - [ - 1574, - 1580 - ] - ], - [ - [ - 64513, - 64513 - ], - "mapped", - [ - 1574, - 1581 - ] - ], - [ - [ - 64514, - 64514 - ], - "mapped", - [ - 1574, - 1605 - ] - ], - [ - [ - 64515, - 64515 - ], - "mapped", - [ - 1574, - 1609 - ] - ], - [ - [ - 64516, - 64516 - ], - "mapped", - [ - 1574, - 1610 - ] - ], - [ - [ - 64517, - 64517 - ], - "mapped", - [ - 1576, - 1580 - ] - ], - [ - [ - 64518, - 64518 - ], - "mapped", - [ - 1576, - 1581 - ] - ], - [ - [ - 64519, - 64519 - ], - "mapped", - [ - 1576, - 1582 - ] - ], - [ - [ - 64520, - 64520 - ], - "mapped", - [ - 1576, - 1605 - ] - ], - [ - [ - 64521, - 64521 - ], - "mapped", - [ - 1576, - 1609 - ] - ], - [ - [ - 64522, - 64522 - ], - "mapped", - [ - 1576, - 1610 - ] - ], - [ - [ - 64523, - 64523 - ], - "mapped", - [ - 1578, - 1580 - ] - ], - [ - [ - 64524, - 64524 - ], - "mapped", - [ - 1578, - 1581 - ] - ], - [ - [ - 64525, - 64525 - ], - "mapped", - [ - 1578, - 1582 - ] - ], - [ - [ - 64526, - 64526 - ], - "mapped", - [ - 1578, - 1605 - ] - ], - [ - [ - 64527, - 64527 - ], - "mapped", - [ - 1578, - 1609 - ] - ], - [ - [ - 64528, - 64528 - ], - "mapped", - [ - 1578, - 1610 - ] - ], - [ - [ - 64529, - 64529 - ], - "mapped", - [ - 1579, - 1580 - ] - ], - [ - [ - 64530, - 64530 - ], - "mapped", - [ - 1579, - 1605 - ] - ], - [ - [ - 64531, - 64531 - ], - "mapped", - [ - 1579, - 1609 - ] - ], - [ - [ - 64532, - 64532 - ], - "mapped", - [ - 1579, - 1610 - ] - ], - [ - [ - 64533, - 64533 - ], - "mapped", - [ - 1580, - 1581 - ] - ], - [ - [ - 64534, - 64534 - ], - "mapped", - [ - 1580, - 1605 - ] - ], - [ - [ - 64535, - 64535 - ], - "mapped", - [ - 1581, - 1580 - ] - ], - [ - [ - 64536, - 64536 - ], - "mapped", - [ - 1581, - 1605 - ] - ], - [ - [ - 64537, - 64537 - ], - "mapped", - [ - 1582, - 1580 - ] - ], - [ - [ - 64538, - 64538 - ], - "mapped", - [ - 1582, - 1581 - ] - ], - [ - [ - 64539, - 64539 - ], - "mapped", - [ - 1582, - 1605 - ] - ], - [ - [ - 64540, - 64540 - ], - "mapped", - [ - 1587, - 1580 - ] - ], - [ - [ - 64541, - 64541 - ], - "mapped", - [ - 1587, - 1581 - ] - ], - [ - [ - 64542, - 64542 - ], - "mapped", - [ - 1587, - 1582 - ] - ], - [ - [ - 64543, - 64543 - ], - "mapped", - [ - 1587, - 1605 - ] - ], - [ - [ - 64544, - 64544 - ], - "mapped", - [ - 1589, - 1581 - ] - ], - [ - [ - 64545, - 64545 - ], - "mapped", - [ - 1589, - 1605 - ] - ], - [ - [ - 64546, - 64546 - ], - "mapped", - [ - 1590, - 1580 - ] - ], - [ - [ - 64547, - 64547 - ], - "mapped", - [ - 1590, - 1581 - ] - ], - [ - [ - 64548, - 64548 - ], - "mapped", - [ - 1590, - 1582 - ] - ], - [ - [ - 64549, - 64549 - ], - "mapped", - [ - 1590, - 1605 - ] - ], - [ - [ - 64550, - 64550 - ], - "mapped", - [ - 1591, - 1581 - ] - ], - [ - [ - 64551, - 64551 - ], - "mapped", - [ - 1591, - 1605 - ] - ], - [ - [ - 64552, - 64552 - ], - "mapped", - [ - 1592, - 1605 - ] - ], - [ - [ - 64553, - 64553 - ], - "mapped", - [ - 1593, - 1580 - ] - ], - [ - [ - 64554, - 64554 - ], - "mapped", - [ - 1593, - 1605 - ] - ], - [ - [ - 64555, - 64555 - ], - "mapped", - [ - 1594, - 1580 - ] - ], - [ - [ - 64556, - 64556 - ], - "mapped", - [ - 1594, - 1605 - ] - ], - [ - [ - 64557, - 64557 - ], - "mapped", - [ - 1601, - 1580 - ] - ], - [ - [ - 64558, - 64558 - ], - "mapped", - [ - 1601, - 1581 - ] - ], - [ - [ - 64559, - 64559 - ], - "mapped", - [ - 1601, - 1582 - ] - ], - [ - [ - 64560, - 64560 - ], - "mapped", - [ - 1601, - 1605 - ] - ], - [ - [ - 64561, - 64561 - ], - "mapped", - [ - 1601, - 1609 - ] - ], - [ - [ - 64562, - 64562 - ], - "mapped", - [ - 1601, - 1610 - ] - ], - [ - [ - 64563, - 64563 - ], - "mapped", - [ - 1602, - 1581 - ] - ], - [ - [ - 64564, - 64564 - ], - "mapped", - [ - 1602, - 1605 - ] - ], - [ - [ - 64565, - 64565 - ], - "mapped", - [ - 1602, - 1609 - ] - ], - [ - [ - 64566, - 64566 - ], - "mapped", - [ - 1602, - 1610 - ] - ], - [ - [ - 64567, - 64567 - ], - "mapped", - [ - 1603, - 1575 - ] - ], - [ - [ - 64568, - 64568 - ], - "mapped", - [ - 1603, - 1580 - ] - ], - [ - [ - 64569, - 64569 - ], - "mapped", - [ - 1603, - 1581 - ] - ], - [ - [ - 64570, - 64570 - ], - "mapped", - [ - 1603, - 1582 - ] - ], - [ - [ - 64571, - 64571 - ], - "mapped", - [ - 1603, - 1604 - ] - ], - [ - [ - 64572, - 64572 - ], - "mapped", - [ - 1603, - 1605 - ] - ], - [ - [ - 64573, - 64573 - ], - "mapped", - [ - 1603, - 1609 - ] - ], - [ - [ - 64574, - 64574 - ], - "mapped", - [ - 1603, - 1610 - ] - ], - [ - [ - 64575, - 64575 - ], - "mapped", - [ - 1604, - 1580 - ] - ], - [ - [ - 64576, - 64576 - ], - "mapped", - [ - 1604, - 1581 - ] - ], - [ - [ - 64577, - 64577 - ], - "mapped", - [ - 1604, - 1582 - ] - ], - [ - [ - 64578, - 64578 - ], - "mapped", - [ - 1604, - 1605 - ] - ], - [ - [ - 64579, - 64579 - ], - "mapped", - [ - 1604, - 1609 - ] - ], - [ - [ - 64580, - 64580 - ], - "mapped", - [ - 1604, - 1610 - ] - ], - [ - [ - 64581, - 64581 - ], - "mapped", - [ - 1605, - 1580 - ] - ], - [ - [ - 64582, - 64582 - ], - "mapped", - [ - 1605, - 1581 - ] - ], - [ - [ - 64583, - 64583 - ], - "mapped", - [ - 1605, - 1582 - ] - ], - [ - [ - 64584, - 64584 - ], - "mapped", - [ - 1605, - 1605 - ] - ], - [ - [ - 64585, - 64585 - ], - "mapped", - [ - 1605, - 1609 - ] - ], - [ - [ - 64586, - 64586 - ], - "mapped", - [ - 1605, - 1610 - ] - ], - [ - [ - 64587, - 64587 - ], - "mapped", - [ - 1606, - 1580 - ] - ], - [ - [ - 64588, - 64588 - ], - "mapped", - [ - 1606, - 1581 - ] - ], - [ - [ - 64589, - 64589 - ], - "mapped", - [ - 1606, - 1582 - ] - ], - [ - [ - 64590, - 64590 - ], - "mapped", - [ - 1606, - 1605 - ] - ], - [ - [ - 64591, - 64591 - ], - "mapped", - [ - 1606, - 1609 - ] - ], - [ - [ - 64592, - 64592 - ], - "mapped", - [ - 1606, - 1610 - ] - ], - [ - [ - 64593, - 64593 - ], - "mapped", - [ - 1607, - 1580 - ] - ], - [ - [ - 64594, - 64594 - ], - "mapped", - [ - 1607, - 1605 - ] - ], - [ - [ - 64595, - 64595 - ], - "mapped", - [ - 1607, - 1609 - ] - ], - [ - [ - 64596, - 64596 - ], - "mapped", - [ - 1607, - 1610 - ] - ], - [ - [ - 64597, - 64597 - ], - "mapped", - [ - 1610, - 1580 - ] - ], - [ - [ - 64598, - 64598 - ], - "mapped", - [ - 1610, - 1581 - ] - ], - [ - [ - 64599, - 64599 - ], - "mapped", - [ - 1610, - 1582 - ] - ], - [ - [ - 64600, - 64600 - ], - "mapped", - [ - 1610, - 1605 - ] - ], - [ - [ - 64601, - 64601 - ], - "mapped", - [ - 1610, - 1609 - ] - ], - [ - [ - 64602, - 64602 - ], - "mapped", - [ - 1610, - 1610 - ] - ], - [ - [ - 64603, - 64603 - ], - "mapped", - [ - 1584, - 1648 - ] - ], - [ - [ - 64604, - 64604 - ], - "mapped", - [ - 1585, - 1648 - ] - ], - [ - [ - 64605, - 64605 - ], - "mapped", - [ - 1609, - 1648 - ] - ], - [ - [ - 64606, - 64606 - ], - "disallowed_STD3_mapped", - [ - 32, - 1612, - 1617 - ] - ], - [ - [ - 64607, - 64607 - ], - "disallowed_STD3_mapped", - [ - 32, - 1613, - 1617 - ] - ], - [ - [ - 64608, - 64608 - ], - "disallowed_STD3_mapped", - [ - 32, - 1614, - 1617 - ] - ], - [ - [ - 64609, - 64609 - ], - "disallowed_STD3_mapped", - [ - 32, - 1615, - 1617 - ] - ], - [ - [ - 64610, - 64610 - ], - "disallowed_STD3_mapped", - [ - 32, - 1616, - 1617 - ] - ], - [ - [ - 64611, - 64611 - ], - "disallowed_STD3_mapped", - [ - 32, - 1617, - 1648 - ] - ], - [ - [ - 64612, - 64612 - ], - "mapped", - [ - 1574, - 1585 - ] - ], - [ - [ - 64613, - 64613 - ], - "mapped", - [ - 1574, - 1586 - ] - ], - [ - [ - 64614, - 64614 - ], - "mapped", - [ - 1574, - 1605 - ] - ], - [ - [ - 64615, - 64615 - ], - "mapped", - [ - 1574, - 1606 - ] - ], - [ - [ - 64616, - 64616 - ], - "mapped", - [ - 1574, - 1609 - ] - ], - [ - [ - 64617, - 64617 - ], - "mapped", - [ - 1574, - 1610 - ] - ], - [ - [ - 64618, - 64618 - ], - "mapped", - [ - 1576, - 1585 - ] - ], - [ - [ - 64619, - 64619 - ], - "mapped", - [ - 1576, - 1586 - ] - ], - [ - [ - 64620, - 64620 - ], - "mapped", - [ - 1576, - 1605 - ] - ], - [ - [ - 64621, - 64621 - ], - "mapped", - [ - 1576, - 1606 - ] - ], - [ - [ - 64622, - 64622 - ], - "mapped", - [ - 1576, - 1609 - ] - ], - [ - [ - 64623, - 64623 - ], - "mapped", - [ - 1576, - 1610 - ] - ], - [ - [ - 64624, - 64624 - ], - "mapped", - [ - 1578, - 1585 - ] - ], - [ - [ - 64625, - 64625 - ], - "mapped", - [ - 1578, - 1586 - ] - ], - [ - [ - 64626, - 64626 - ], - "mapped", - [ - 1578, - 1605 - ] - ], - [ - [ - 64627, - 64627 - ], - "mapped", - [ - 1578, - 1606 - ] - ], - [ - [ - 64628, - 64628 - ], - "mapped", - [ - 1578, - 1609 - ] - ], - [ - [ - 64629, - 64629 - ], - "mapped", - [ - 1578, - 1610 - ] - ], - [ - [ - 64630, - 64630 - ], - "mapped", - [ - 1579, - 1585 - ] - ], - [ - [ - 64631, - 64631 - ], - "mapped", - [ - 1579, - 1586 - ] - ], - [ - [ - 64632, - 64632 - ], - "mapped", - [ - 1579, - 1605 - ] - ], - [ - [ - 64633, - 64633 - ], - "mapped", - [ - 1579, - 1606 - ] - ], - [ - [ - 64634, - 64634 - ], - "mapped", - [ - 1579, - 1609 - ] - ], - [ - [ - 64635, - 64635 - ], - "mapped", - [ - 1579, - 1610 - ] - ], - [ - [ - 64636, - 64636 - ], - "mapped", - [ - 1601, - 1609 - ] - ], - [ - [ - 64637, - 64637 - ], - "mapped", - [ - 1601, - 1610 - ] - ], - [ - [ - 64638, - 64638 - ], - "mapped", - [ - 1602, - 1609 - ] - ], - [ - [ - 64639, - 64639 - ], - "mapped", - [ - 1602, - 1610 - ] - ], - [ - [ - 64640, - 64640 - ], - "mapped", - [ - 1603, - 1575 - ] - ], - [ - [ - 64641, - 64641 - ], - "mapped", - [ - 1603, - 1604 - ] - ], - [ - [ - 64642, - 64642 - ], - "mapped", - [ - 1603, - 1605 - ] - ], - [ - [ - 64643, - 64643 - ], - "mapped", - [ - 1603, - 1609 - ] - ], - [ - [ - 64644, - 64644 - ], - "mapped", - [ - 1603, - 1610 - ] - ], - [ - [ - 64645, - 64645 - ], - "mapped", - [ - 1604, - 1605 - ] - ], - [ - [ - 64646, - 64646 - ], - "mapped", - [ - 1604, - 1609 - ] - ], - [ - [ - 64647, - 64647 - ], - "mapped", - [ - 1604, - 1610 - ] - ], - [ - [ - 64648, - 64648 - ], - "mapped", - [ - 1605, - 1575 - ] - ], - [ - [ - 64649, - 64649 - ], - "mapped", - [ - 1605, - 1605 - ] - ], - [ - [ - 64650, - 64650 - ], - "mapped", - [ - 1606, - 1585 - ] - ], - [ - [ - 64651, - 64651 - ], - "mapped", - [ - 1606, - 1586 - ] - ], - [ - [ - 64652, - 64652 - ], - "mapped", - [ - 1606, - 1605 - ] - ], - [ - [ - 64653, - 64653 - ], - "mapped", - [ - 1606, - 1606 - ] - ], - [ - [ - 64654, - 64654 - ], - "mapped", - [ - 1606, - 1609 - ] - ], - [ - [ - 64655, - 64655 - ], - "mapped", - [ - 1606, - 1610 - ] - ], - [ - [ - 64656, - 64656 - ], - "mapped", - [ - 1609, - 1648 - ] - ], - [ - [ - 64657, - 64657 - ], - "mapped", - [ - 1610, - 1585 - ] - ], - [ - [ - 64658, - 64658 - ], - "mapped", - [ - 1610, - 1586 - ] - ], - [ - [ - 64659, - 64659 - ], - "mapped", - [ - 1610, - 1605 - ] - ], - [ - [ - 64660, - 64660 - ], - "mapped", - [ - 1610, - 1606 - ] - ], - [ - [ - 64661, - 64661 - ], - "mapped", - [ - 1610, - 1609 - ] - ], - [ - [ - 64662, - 64662 - ], - "mapped", - [ - 1610, - 1610 - ] - ], - [ - [ - 64663, - 64663 - ], - "mapped", - [ - 1574, - 1580 - ] - ], - [ - [ - 64664, - 64664 - ], - "mapped", - [ - 1574, - 1581 - ] - ], - [ - [ - 64665, - 64665 - ], - "mapped", - [ - 1574, - 1582 - ] - ], - [ - [ - 64666, - 64666 - ], - "mapped", - [ - 1574, - 1605 - ] - ], - [ - [ - 64667, - 64667 - ], - "mapped", - [ - 1574, - 1607 - ] - ], - [ - [ - 64668, - 64668 - ], - "mapped", - [ - 1576, - 1580 - ] - ], - [ - [ - 64669, - 64669 - ], - "mapped", - [ - 1576, - 1581 - ] - ], - [ - [ - 64670, - 64670 - ], - "mapped", - [ - 1576, - 1582 - ] - ], - [ - [ - 64671, - 64671 - ], - "mapped", - [ - 1576, - 1605 - ] - ], - [ - [ - 64672, - 64672 - ], - "mapped", - [ - 1576, - 1607 - ] - ], - [ - [ - 64673, - 64673 - ], - "mapped", - [ - 1578, - 1580 - ] - ], - [ - [ - 64674, - 64674 - ], - "mapped", - [ - 1578, - 1581 - ] - ], - [ - [ - 64675, - 64675 - ], - "mapped", - [ - 1578, - 1582 - ] - ], - [ - [ - 64676, - 64676 - ], - "mapped", - [ - 1578, - 1605 - ] - ], - [ - [ - 64677, - 64677 - ], - "mapped", - [ - 1578, - 1607 - ] - ], - [ - [ - 64678, - 64678 - ], - "mapped", - [ - 1579, - 1605 - ] - ], - [ - [ - 64679, - 64679 - ], - "mapped", - [ - 1580, - 1581 - ] - ], - [ - [ - 64680, - 64680 - ], - "mapped", - [ - 1580, - 1605 - ] - ], - [ - [ - 64681, - 64681 - ], - "mapped", - [ - 1581, - 1580 - ] - ], - [ - [ - 64682, - 64682 - ], - "mapped", - [ - 1581, - 1605 - ] - ], - [ - [ - 64683, - 64683 - ], - "mapped", - [ - 1582, - 1580 - ] - ], - [ - [ - 64684, - 64684 - ], - "mapped", - [ - 1582, - 1605 - ] - ], - [ - [ - 64685, - 64685 - ], - "mapped", - [ - 1587, - 1580 - ] - ], - [ - [ - 64686, - 64686 - ], - "mapped", - [ - 1587, - 1581 - ] - ], - [ - [ - 64687, - 64687 - ], - "mapped", - [ - 1587, - 1582 - ] - ], - [ - [ - 64688, - 64688 - ], - "mapped", - [ - 1587, - 1605 - ] - ], - [ - [ - 64689, - 64689 - ], - "mapped", - [ - 1589, - 1581 - ] - ], - [ - [ - 64690, - 64690 - ], - "mapped", - [ - 1589, - 1582 - ] - ], - [ - [ - 64691, - 64691 - ], - "mapped", - [ - 1589, - 1605 - ] - ], - [ - [ - 64692, - 64692 - ], - "mapped", - [ - 1590, - 1580 - ] - ], - [ - [ - 64693, - 64693 - ], - "mapped", - [ - 1590, - 1581 - ] - ], - [ - [ - 64694, - 64694 - ], - "mapped", - [ - 1590, - 1582 - ] - ], - [ - [ - 64695, - 64695 - ], - "mapped", - [ - 1590, - 1605 - ] - ], - [ - [ - 64696, - 64696 - ], - "mapped", - [ - 1591, - 1581 - ] - ], - [ - [ - 64697, - 64697 - ], - "mapped", - [ - 1592, - 1605 - ] - ], - [ - [ - 64698, - 64698 - ], - "mapped", - [ - 1593, - 1580 - ] - ], - [ - [ - 64699, - 64699 - ], - "mapped", - [ - 1593, - 1605 - ] - ], - [ - [ - 64700, - 64700 - ], - "mapped", - [ - 1594, - 1580 - ] - ], - [ - [ - 64701, - 64701 - ], - "mapped", - [ - 1594, - 1605 - ] - ], - [ - [ - 64702, - 64702 - ], - "mapped", - [ - 1601, - 1580 - ] - ], - [ - [ - 64703, - 64703 - ], - "mapped", - [ - 1601, - 1581 - ] - ], - [ - [ - 64704, - 64704 - ], - "mapped", - [ - 1601, - 1582 - ] - ], - [ - [ - 64705, - 64705 - ], - "mapped", - [ - 1601, - 1605 - ] - ], - [ - [ - 64706, - 64706 - ], - "mapped", - [ - 1602, - 1581 - ] - ], - [ - [ - 64707, - 64707 - ], - "mapped", - [ - 1602, - 1605 - ] - ], - [ - [ - 64708, - 64708 - ], - "mapped", - [ - 1603, - 1580 - ] - ], - [ - [ - 64709, - 64709 - ], - "mapped", - [ - 1603, - 1581 - ] - ], - [ - [ - 64710, - 64710 - ], - "mapped", - [ - 1603, - 1582 - ] - ], - [ - [ - 64711, - 64711 - ], - "mapped", - [ - 1603, - 1604 - ] - ], - [ - [ - 64712, - 64712 - ], - "mapped", - [ - 1603, - 1605 - ] - ], - [ - [ - 64713, - 64713 - ], - "mapped", - [ - 1604, - 1580 - ] - ], - [ - [ - 64714, - 64714 - ], - "mapped", - [ - 1604, - 1581 - ] - ], - [ - [ - 64715, - 64715 - ], - "mapped", - [ - 1604, - 1582 - ] - ], - [ - [ - 64716, - 64716 - ], - "mapped", - [ - 1604, - 1605 - ] - ], - [ - [ - 64717, - 64717 - ], - "mapped", - [ - 1604, - 1607 - ] - ], - [ - [ - 64718, - 64718 - ], - "mapped", - [ - 1605, - 1580 - ] - ], - [ - [ - 64719, - 64719 - ], - "mapped", - [ - 1605, - 1581 - ] - ], - [ - [ - 64720, - 64720 - ], - "mapped", - [ - 1605, - 1582 - ] - ], - [ - [ - 64721, - 64721 - ], - "mapped", - [ - 1605, - 1605 - ] - ], - [ - [ - 64722, - 64722 - ], - "mapped", - [ - 1606, - 1580 - ] - ], - [ - [ - 64723, - 64723 - ], - "mapped", - [ - 1606, - 1581 - ] - ], - [ - [ - 64724, - 64724 - ], - "mapped", - [ - 1606, - 1582 - ] - ], - [ - [ - 64725, - 64725 - ], - "mapped", - [ - 1606, - 1605 - ] - ], - [ - [ - 64726, - 64726 - ], - "mapped", - [ - 1606, - 1607 - ] - ], - [ - [ - 64727, - 64727 - ], - "mapped", - [ - 1607, - 1580 - ] - ], - [ - [ - 64728, - 64728 - ], - "mapped", - [ - 1607, - 1605 - ] - ], - [ - [ - 64729, - 64729 - ], - "mapped", - [ - 1607, - 1648 - ] - ], - [ - [ - 64730, - 64730 - ], - "mapped", - [ - 1610, - 1580 - ] - ], - [ - [ - 64731, - 64731 - ], - "mapped", - [ - 1610, - 1581 - ] - ], - [ - [ - 64732, - 64732 - ], - "mapped", - [ - 1610, - 1582 - ] - ], - [ - [ - 64733, - 64733 - ], - "mapped", - [ - 1610, - 1605 - ] - ], - [ - [ - 64734, - 64734 - ], - "mapped", - [ - 1610, - 1607 - ] - ], - [ - [ - 64735, - 64735 - ], - "mapped", - [ - 1574, - 1605 - ] - ], - [ - [ - 64736, - 64736 - ], - "mapped", - [ - 1574, - 1607 - ] - ], - [ - [ - 64737, - 64737 - ], - "mapped", - [ - 1576, - 1605 - ] - ], - [ - [ - 64738, - 64738 - ], - "mapped", - [ - 1576, - 1607 - ] - ], - [ - [ - 64739, - 64739 - ], - "mapped", - [ - 1578, - 1605 - ] - ], - [ - [ - 64740, - 64740 - ], - "mapped", - [ - 1578, - 1607 - ] - ], - [ - [ - 64741, - 64741 - ], - "mapped", - [ - 1579, - 1605 - ] - ], - [ - [ - 64742, - 64742 - ], - "mapped", - [ - 1579, - 1607 - ] - ], - [ - [ - 64743, - 64743 - ], - "mapped", - [ - 1587, - 1605 - ] - ], - [ - [ - 64744, - 64744 - ], - "mapped", - [ - 1587, - 1607 - ] - ], - [ - [ - 64745, - 64745 - ], - "mapped", - [ - 1588, - 1605 - ] - ], - [ - [ - 64746, - 64746 - ], - "mapped", - [ - 1588, - 1607 - ] - ], - [ - [ - 64747, - 64747 - ], - "mapped", - [ - 1603, - 1604 - ] - ], - [ - [ - 64748, - 64748 - ], - "mapped", - [ - 1603, - 1605 - ] - ], - [ - [ - 64749, - 64749 - ], - "mapped", - [ - 1604, - 1605 - ] - ], - [ - [ - 64750, - 64750 - ], - "mapped", - [ - 1606, - 1605 - ] - ], - [ - [ - 64751, - 64751 - ], - "mapped", - [ - 1606, - 1607 - ] - ], - [ - [ - 64752, - 64752 - ], - "mapped", - [ - 1610, - 1605 - ] - ], - [ - [ - 64753, - 64753 - ], - "mapped", - [ - 1610, - 1607 - ] - ], - [ - [ - 64754, - 64754 - ], - "mapped", - [ - 1600, - 1614, - 1617 - ] - ], - [ - [ - 64755, - 64755 - ], - "mapped", - [ - 1600, - 1615, - 1617 - ] - ], - [ - [ - 64756, - 64756 - ], - "mapped", - [ - 1600, - 1616, - 1617 - ] - ], - [ - [ - 64757, - 64757 - ], - "mapped", - [ - 1591, - 1609 - ] - ], - [ - [ - 64758, - 64758 - ], - "mapped", - [ - 1591, - 1610 - ] - ], - [ - [ - 64759, - 64759 - ], - "mapped", - [ - 1593, - 1609 - ] - ], - [ - [ - 64760, - 64760 - ], - "mapped", - [ - 1593, - 1610 - ] - ], - [ - [ - 64761, - 64761 - ], - "mapped", - [ - 1594, - 1609 - ] - ], - [ - [ - 64762, - 64762 - ], - "mapped", - [ - 1594, - 1610 - ] - ], - [ - [ - 64763, - 64763 - ], - "mapped", - [ - 1587, - 1609 - ] - ], - [ - [ - 64764, - 64764 - ], - "mapped", - [ - 1587, - 1610 - ] - ], - [ - [ - 64765, - 64765 - ], - "mapped", - [ - 1588, - 1609 - ] - ], - [ - [ - 64766, - 64766 - ], - "mapped", - [ - 1588, - 1610 - ] - ], - [ - [ - 64767, - 64767 - ], - "mapped", - [ - 1581, - 1609 - ] - ], - [ - [ - 64768, - 64768 - ], - "mapped", - [ - 1581, - 1610 - ] - ], - [ - [ - 64769, - 64769 - ], - "mapped", - [ - 1580, - 1609 - ] - ], - [ - [ - 64770, - 64770 - ], - "mapped", - [ - 1580, - 1610 - ] - ], - [ - [ - 64771, - 64771 - ], - "mapped", - [ - 1582, - 1609 - ] - ], - [ - [ - 64772, - 64772 - ], - "mapped", - [ - 1582, - 1610 - ] - ], - [ - [ - 64773, - 64773 - ], - "mapped", - [ - 1589, - 1609 - ] - ], - [ - [ - 64774, - 64774 - ], - "mapped", - [ - 1589, - 1610 - ] - ], - [ - [ - 64775, - 64775 - ], - "mapped", - [ - 1590, - 1609 - ] - ], - [ - [ - 64776, - 64776 - ], - "mapped", - [ - 1590, - 1610 - ] - ], - [ - [ - 64777, - 64777 - ], - "mapped", - [ - 1588, - 1580 - ] - ], - [ - [ - 64778, - 64778 - ], - "mapped", - [ - 1588, - 1581 - ] - ], - [ - [ - 64779, - 64779 - ], - "mapped", - [ - 1588, - 1582 - ] - ], - [ - [ - 64780, - 64780 - ], - "mapped", - [ - 1588, - 1605 - ] - ], - [ - [ - 64781, - 64781 - ], - "mapped", - [ - 1588, - 1585 - ] - ], - [ - [ - 64782, - 64782 - ], - "mapped", - [ - 1587, - 1585 - ] - ], - [ - [ - 64783, - 64783 - ], - "mapped", - [ - 1589, - 1585 - ] - ], - [ - [ - 64784, - 64784 - ], - "mapped", - [ - 1590, - 1585 - ] - ], - [ - [ - 64785, - 64785 - ], - "mapped", - [ - 1591, - 1609 - ] - ], - [ - [ - 64786, - 64786 - ], - "mapped", - [ - 1591, - 1610 - ] - ], - [ - [ - 64787, - 64787 - ], - "mapped", - [ - 1593, - 1609 - ] - ], - [ - [ - 64788, - 64788 - ], - "mapped", - [ - 1593, - 1610 - ] - ], - [ - [ - 64789, - 64789 - ], - "mapped", - [ - 1594, - 1609 - ] - ], - [ - [ - 64790, - 64790 - ], - "mapped", - [ - 1594, - 1610 - ] - ], - [ - [ - 64791, - 64791 - ], - "mapped", - [ - 1587, - 1609 - ] - ], - [ - [ - 64792, - 64792 - ], - "mapped", - [ - 1587, - 1610 - ] - ], - [ - [ - 64793, - 64793 - ], - "mapped", - [ - 1588, - 1609 - ] - ], - [ - [ - 64794, - 64794 - ], - "mapped", - [ - 1588, - 1610 - ] - ], - [ - [ - 64795, - 64795 - ], - "mapped", - [ - 1581, - 1609 - ] - ], - [ - [ - 64796, - 64796 - ], - "mapped", - [ - 1581, - 1610 - ] - ], - [ - [ - 64797, - 64797 - ], - "mapped", - [ - 1580, - 1609 - ] - ], - [ - [ - 64798, - 64798 - ], - "mapped", - [ - 1580, - 1610 - ] - ], - [ - [ - 64799, - 64799 - ], - "mapped", - [ - 1582, - 1609 - ] - ], - [ - [ - 64800, - 64800 - ], - "mapped", - [ - 1582, - 1610 - ] - ], - [ - [ - 64801, - 64801 - ], - "mapped", - [ - 1589, - 1609 - ] - ], - [ - [ - 64802, - 64802 - ], - "mapped", - [ - 1589, - 1610 - ] - ], - [ - [ - 64803, - 64803 - ], - "mapped", - [ - 1590, - 1609 - ] - ], - [ - [ - 64804, - 64804 - ], - "mapped", - [ - 1590, - 1610 - ] - ], - [ - [ - 64805, - 64805 - ], - "mapped", - [ - 1588, - 1580 - ] - ], - [ - [ - 64806, - 64806 - ], - "mapped", - [ - 1588, - 1581 - ] - ], - [ - [ - 64807, - 64807 - ], - "mapped", - [ - 1588, - 1582 - ] - ], - [ - [ - 64808, - 64808 - ], - "mapped", - [ - 1588, - 1605 - ] - ], - [ - [ - 64809, - 64809 - ], - "mapped", - [ - 1588, - 1585 - ] - ], - [ - [ - 64810, - 64810 - ], - "mapped", - [ - 1587, - 1585 - ] - ], - [ - [ - 64811, - 64811 - ], - "mapped", - [ - 1589, - 1585 - ] - ], - [ - [ - 64812, - 64812 - ], - "mapped", - [ - 1590, - 1585 - ] - ], - [ - [ - 64813, - 64813 - ], - "mapped", - [ - 1588, - 1580 - ] - ], - [ - [ - 64814, - 64814 - ], - "mapped", - [ - 1588, - 1581 - ] - ], - [ - [ - 64815, - 64815 - ], - "mapped", - [ - 1588, - 1582 - ] - ], - [ - [ - 64816, - 64816 - ], - "mapped", - [ - 1588, - 1605 - ] - ], - [ - [ - 64817, - 64817 - ], - "mapped", - [ - 1587, - 1607 - ] - ], - [ - [ - 64818, - 64818 - ], - "mapped", - [ - 1588, - 1607 - ] - ], - [ - [ - 64819, - 64819 - ], - "mapped", - [ - 1591, - 1605 - ] - ], - [ - [ - 64820, - 64820 - ], - "mapped", - [ - 1587, - 1580 - ] - ], - [ - [ - 64821, - 64821 - ], - "mapped", - [ - 1587, - 1581 - ] - ], - [ - [ - 64822, - 64822 - ], - "mapped", - [ - 1587, - 1582 - ] - ], - [ - [ - 64823, - 64823 - ], - "mapped", - [ - 1588, - 1580 - ] - ], - [ - [ - 64824, - 64824 - ], - "mapped", - [ - 1588, - 1581 - ] - ], - [ - [ - 64825, - 64825 - ], - "mapped", - [ - 1588, - 1582 - ] - ], - [ - [ - 64826, - 64826 - ], - "mapped", - [ - 1591, - 1605 - ] - ], - [ - [ - 64827, - 64827 - ], - "mapped", - [ - 1592, - 1605 - ] - ], - [ - [ - 64828, - 64829 - ], - "mapped", - [ - 1575, - 1611 - ] - ], - [ - [ - 64830, - 64831 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 64832, - 64847 - ], - "disallowed" - ], - [ - [ - 64848, - 64848 - ], - "mapped", - [ - 1578, - 1580, - 1605 - ] - ], - [ - [ - 64849, - 64850 - ], - "mapped", - [ - 1578, - 1581, - 1580 - ] - ], - [ - [ - 64851, - 64851 - ], - "mapped", - [ - 1578, - 1581, - 1605 - ] - ], - [ - [ - 64852, - 64852 - ], - "mapped", - [ - 1578, - 1582, - 1605 - ] - ], - [ - [ - 64853, - 64853 - ], - "mapped", - [ - 1578, - 1605, - 1580 - ] - ], - [ - [ - 64854, - 64854 - ], - "mapped", - [ - 1578, - 1605, - 1581 - ] - ], - [ - [ - 64855, - 64855 - ], - "mapped", - [ - 1578, - 1605, - 1582 - ] - ], - [ - [ - 64856, - 64857 - ], - "mapped", - [ - 1580, - 1605, - 1581 - ] - ], - [ - [ - 64858, - 64858 - ], - "mapped", - [ - 1581, - 1605, - 1610 - ] - ], - [ - [ - 64859, - 64859 - ], - "mapped", - [ - 1581, - 1605, - 1609 - ] - ], - [ - [ - 64860, - 64860 - ], - "mapped", - [ - 1587, - 1581, - 1580 - ] - ], - [ - [ - 64861, - 64861 - ], - "mapped", - [ - 1587, - 1580, - 1581 - ] - ], - [ - [ - 64862, - 64862 - ], - "mapped", - [ - 1587, - 1580, - 1609 - ] - ], - [ - [ - 64863, - 64864 - ], - "mapped", - [ - 1587, - 1605, - 1581 - ] - ], - [ - [ - 64865, - 64865 - ], - "mapped", - [ - 1587, - 1605, - 1580 - ] - ], - [ - [ - 64866, - 64867 - ], - "mapped", - [ - 1587, - 1605, - 1605 - ] - ], - [ - [ - 64868, - 64869 - ], - "mapped", - [ - 1589, - 1581, - 1581 - ] - ], - [ - [ - 64870, - 64870 - ], - "mapped", - [ - 1589, - 1605, - 1605 - ] - ], - [ - [ - 64871, - 64872 - ], - "mapped", - [ - 1588, - 1581, - 1605 - ] - ], - [ - [ - 64873, - 64873 - ], - "mapped", - [ - 1588, - 1580, - 1610 - ] - ], - [ - [ - 64874, - 64875 - ], - "mapped", - [ - 1588, - 1605, - 1582 - ] - ], - [ - [ - 64876, - 64877 - ], - "mapped", - [ - 1588, - 1605, - 1605 - ] - ], - [ - [ - 64878, - 64878 - ], - "mapped", - [ - 1590, - 1581, - 1609 - ] - ], - [ - [ - 64879, - 64880 - ], - "mapped", - [ - 1590, - 1582, - 1605 - ] - ], - [ - [ - 64881, - 64882 - ], - "mapped", - [ - 1591, - 1605, - 1581 - ] - ], - [ - [ - 64883, - 64883 - ], - "mapped", - [ - 1591, - 1605, - 1605 - ] - ], - [ - [ - 64884, - 64884 - ], - "mapped", - [ - 1591, - 1605, - 1610 - ] - ], - [ - [ - 64885, - 64885 - ], - "mapped", - [ - 1593, - 1580, - 1605 - ] - ], - [ - [ - 64886, - 64887 - ], - "mapped", - [ - 1593, - 1605, - 1605 - ] - ], - [ - [ - 64888, - 64888 - ], - "mapped", - [ - 1593, - 1605, - 1609 - ] - ], - [ - [ - 64889, - 64889 - ], - "mapped", - [ - 1594, - 1605, - 1605 - ] - ], - [ - [ - 64890, - 64890 - ], - "mapped", - [ - 1594, - 1605, - 1610 - ] - ], - [ - [ - 64891, - 64891 - ], - "mapped", - [ - 1594, - 1605, - 1609 - ] - ], - [ - [ - 64892, - 64893 - ], - "mapped", - [ - 1601, - 1582, - 1605 - ] - ], - [ - [ - 64894, - 64894 - ], - "mapped", - [ - 1602, - 1605, - 1581 - ] - ], - [ - [ - 64895, - 64895 - ], - "mapped", - [ - 1602, - 1605, - 1605 - ] - ], - [ - [ - 64896, - 64896 - ], - "mapped", - [ - 1604, - 1581, - 1605 - ] - ], - [ - [ - 64897, - 64897 - ], - "mapped", - [ - 1604, - 1581, - 1610 - ] - ], - [ - [ - 64898, - 64898 - ], - "mapped", - [ - 1604, - 1581, - 1609 - ] - ], - [ - [ - 64899, - 64900 - ], - "mapped", - [ - 1604, - 1580, - 1580 - ] - ], - [ - [ - 64901, - 64902 - ], - "mapped", - [ - 1604, - 1582, - 1605 - ] - ], - [ - [ - 64903, - 64904 - ], - "mapped", - [ - 1604, - 1605, - 1581 - ] - ], - [ - [ - 64905, - 64905 - ], - "mapped", - [ - 1605, - 1581, - 1580 - ] - ], - [ - [ - 64906, - 64906 - ], - "mapped", - [ - 1605, - 1581, - 1605 - ] - ], - [ - [ - 64907, - 64907 - ], - "mapped", - [ - 1605, - 1581, - 1610 - ] - ], - [ - [ - 64908, - 64908 - ], - "mapped", - [ - 1605, - 1580, - 1581 - ] - ], - [ - [ - 64909, - 64909 - ], - "mapped", - [ - 1605, - 1580, - 1605 - ] - ], - [ - [ - 64910, - 64910 - ], - "mapped", - [ - 1605, - 1582, - 1580 - ] - ], - [ - [ - 64911, - 64911 - ], - "mapped", - [ - 1605, - 1582, - 1605 - ] - ], - [ - [ - 64912, - 64913 - ], - "disallowed" - ], - [ - [ - 64914, - 64914 - ], - "mapped", - [ - 1605, - 1580, - 1582 - ] - ], - [ - [ - 64915, - 64915 - ], - "mapped", - [ - 1607, - 1605, - 1580 - ] - ], - [ - [ - 64916, - 64916 - ], - "mapped", - [ - 1607, - 1605, - 1605 - ] - ], - [ - [ - 64917, - 64917 - ], - "mapped", - [ - 1606, - 1581, - 1605 - ] - ], - [ - [ - 64918, - 64918 - ], - "mapped", - [ - 1606, - 1581, - 1609 - ] - ], - [ - [ - 64919, - 64920 - ], - "mapped", - [ - 1606, - 1580, - 1605 - ] - ], - [ - [ - 64921, - 64921 - ], - "mapped", - [ - 1606, - 1580, - 1609 - ] - ], - [ - [ - 64922, - 64922 - ], - "mapped", - [ - 1606, - 1605, - 1610 - ] - ], - [ - [ - 64923, - 64923 - ], - "mapped", - [ - 1606, - 1605, - 1609 - ] - ], - [ - [ - 64924, - 64925 - ], - "mapped", - [ - 1610, - 1605, - 1605 - ] - ], - [ - [ - 64926, - 64926 - ], - "mapped", - [ - 1576, - 1582, - 1610 - ] - ], - [ - [ - 64927, - 64927 - ], - "mapped", - [ - 1578, - 1580, - 1610 - ] - ], - [ - [ - 64928, - 64928 - ], - "mapped", - [ - 1578, - 1580, - 1609 - ] - ], - [ - [ - 64929, - 64929 - ], - "mapped", - [ - 1578, - 1582, - 1610 - ] - ], - [ - [ - 64930, - 64930 - ], - "mapped", - [ - 1578, - 1582, - 1609 - ] - ], - [ - [ - 64931, - 64931 - ], - "mapped", - [ - 1578, - 1605, - 1610 - ] - ], - [ - [ - 64932, - 64932 - ], - "mapped", - [ - 1578, - 1605, - 1609 - ] - ], - [ - [ - 64933, - 64933 - ], - "mapped", - [ - 1580, - 1605, - 1610 - ] - ], - [ - [ - 64934, - 64934 - ], - "mapped", - [ - 1580, - 1581, - 1609 - ] - ], - [ - [ - 64935, - 64935 - ], - "mapped", - [ - 1580, - 1605, - 1609 - ] - ], - [ - [ - 64936, - 64936 - ], - "mapped", - [ - 1587, - 1582, - 1609 - ] - ], - [ - [ - 64937, - 64937 - ], - "mapped", - [ - 1589, - 1581, - 1610 - ] - ], - [ - [ - 64938, - 64938 - ], - "mapped", - [ - 1588, - 1581, - 1610 - ] - ], - [ - [ - 64939, - 64939 - ], - "mapped", - [ - 1590, - 1581, - 1610 - ] - ], - [ - [ - 64940, - 64940 - ], - "mapped", - [ - 1604, - 1580, - 1610 - ] - ], - [ - [ - 64941, - 64941 - ], - "mapped", - [ - 1604, - 1605, - 1610 - ] - ], - [ - [ - 64942, - 64942 - ], - "mapped", - [ - 1610, - 1581, - 1610 - ] - ], - [ - [ - 64943, - 64943 - ], - "mapped", - [ - 1610, - 1580, - 1610 - ] - ], - [ - [ - 64944, - 64944 - ], - "mapped", - [ - 1610, - 1605, - 1610 - ] - ], - [ - [ - 64945, - 64945 - ], - "mapped", - [ - 1605, - 1605, - 1610 - ] - ], - [ - [ - 64946, - 64946 - ], - "mapped", - [ - 1602, - 1605, - 1610 - ] - ], - [ - [ - 64947, - 64947 - ], - "mapped", - [ - 1606, - 1581, - 1610 - ] - ], - [ - [ - 64948, - 64948 - ], - "mapped", - [ - 1602, - 1605, - 1581 - ] - ], - [ - [ - 64949, - 64949 - ], - "mapped", - [ - 1604, - 1581, - 1605 - ] - ], - [ - [ - 64950, - 64950 - ], - "mapped", - [ - 1593, - 1605, - 1610 - ] - ], - [ - [ - 64951, - 64951 - ], - "mapped", - [ - 1603, - 1605, - 1610 - ] - ], - [ - [ - 64952, - 64952 - ], - "mapped", - [ - 1606, - 1580, - 1581 - ] - ], - [ - [ - 64953, - 64953 - ], - "mapped", - [ - 1605, - 1582, - 1610 - ] - ], - [ - [ - 64954, - 64954 - ], - "mapped", - [ - 1604, - 1580, - 1605 - ] - ], - [ - [ - 64955, - 64955 - ], - "mapped", - [ - 1603, - 1605, - 1605 - ] - ], - [ - [ - 64956, - 64956 - ], - "mapped", - [ - 1604, - 1580, - 1605 - ] - ], - [ - [ - 64957, - 64957 - ], - "mapped", - [ - 1606, - 1580, - 1581 - ] - ], - [ - [ - 64958, - 64958 - ], - "mapped", - [ - 1580, - 1581, - 1610 - ] - ], - [ - [ - 64959, - 64959 - ], - "mapped", - [ - 1581, - 1580, - 1610 - ] - ], - [ - [ - 64960, - 64960 - ], - "mapped", - [ - 1605, - 1580, - 1610 - ] - ], - [ - [ - 64961, - 64961 - ], - "mapped", - [ - 1601, - 1605, - 1610 - ] - ], - [ - [ - 64962, - 64962 - ], - "mapped", - [ - 1576, - 1581, - 1610 - ] - ], - [ - [ - 64963, - 64963 - ], - "mapped", - [ - 1603, - 1605, - 1605 - ] - ], - [ - [ - 64964, - 64964 - ], - "mapped", - [ - 1593, - 1580, - 1605 - ] - ], - [ - [ - 64965, - 64965 - ], - "mapped", - [ - 1589, - 1605, - 1605 - ] - ], - [ - [ - 64966, - 64966 - ], - "mapped", - [ - 1587, - 1582, - 1610 - ] - ], - [ - [ - 64967, - 64967 - ], - "mapped", - [ - 1606, - 1580, - 1610 - ] - ], - [ - [ - 64968, - 64975 - ], - "disallowed" - ], - [ - [ - 64976, - 65007 - ], - "disallowed" - ], - [ - [ - 65008, - 65008 - ], - "mapped", - [ - 1589, - 1604, - 1746 - ] - ], - [ - [ - 65009, - 65009 - ], - "mapped", - [ - 1602, - 1604, - 1746 - ] - ], - [ - [ - 65010, - 65010 - ], - "mapped", - [ - 1575, - 1604, - 1604, - 1607 - ] - ], - [ - [ - 65011, - 65011 - ], - "mapped", - [ - 1575, - 1603, - 1576, - 1585 - ] - ], - [ - [ - 65012, - 65012 - ], - "mapped", - [ - 1605, - 1581, - 1605, - 1583 - ] - ], - [ - [ - 65013, - 65013 - ], - "mapped", - [ - 1589, - 1604, - 1593, - 1605 - ] - ], - [ - [ - 65014, - 65014 - ], - "mapped", - [ - 1585, - 1587, - 1608, - 1604 - ] - ], - [ - [ - 65015, - 65015 - ], - "mapped", - [ - 1593, - 1604, - 1610, - 1607 - ] - ], - [ - [ - 65016, - 65016 - ], - "mapped", - [ - 1608, - 1587, - 1604, - 1605 - ] - ], - [ - [ - 65017, - 65017 - ], - "mapped", - [ - 1589, - 1604, - 1609 - ] - ], - [ - [ - 65018, - 65018 - ], - "disallowed_STD3_mapped", - [ - 1589, - 1604, - 1609, - 32, - 1575, - 1604, - 1604, - 1607, - 32, - 1593, - 1604, - 1610, - 1607, - 32, - 1608, - 1587, - 1604, - 1605 - ] - ], - [ - [ - 65019, - 65019 - ], - "disallowed_STD3_mapped", - [ - 1580, - 1604, - 32, - 1580, - 1604, - 1575, - 1604, - 1607 - ] - ], - [ - [ - 65020, - 65020 - ], - "mapped", - [ - 1585, - 1740, - 1575, - 1604 - ] - ], - [ - [ - 65021, - 65021 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65022, - 65023 - ], - "disallowed" - ], - [ - [ - 65024, - 65039 - ], - "ignored" - ], - [ - [ - 65040, - 65040 - ], - "disallowed_STD3_mapped", - [ - 44 - ] - ], - [ - [ - 65041, - 65041 - ], - "mapped", - [ - 12289 - ] - ], - [ - [ - 65042, - 65042 - ], - "disallowed" - ], - [ - [ - 65043, - 65043 - ], - "disallowed_STD3_mapped", - [ - 58 - ] - ], - [ - [ - 65044, - 65044 - ], - "disallowed_STD3_mapped", - [ - 59 - ] - ], - [ - [ - 65045, - 65045 - ], - "disallowed_STD3_mapped", - [ - 33 - ] - ], - [ - [ - 65046, - 65046 - ], - "disallowed_STD3_mapped", - [ - 63 - ] - ], - [ - [ - 65047, - 65047 - ], - "mapped", - [ - 12310 - ] - ], - [ - [ - 65048, - 65048 - ], - "mapped", - [ - 12311 - ] - ], - [ - [ - 65049, - 65049 - ], - "disallowed" - ], - [ - [ - 65050, - 65055 - ], - "disallowed" - ], - [ - [ - 65056, - 65059 - ], - "valid" - ], - [ - [ - 65060, - 65062 - ], - "valid" - ], - [ - [ - 65063, - 65069 - ], - "valid" - ], - [ - [ - 65070, - 65071 - ], - "valid" - ], - [ - [ - 65072, - 65072 - ], - "disallowed" - ], - [ - [ - 65073, - 65073 - ], - "mapped", - [ - 8212 - ] - ], - [ - [ - 65074, - 65074 - ], - "mapped", - [ - 8211 - ] - ], - [ - [ - 65075, - 65076 - ], - "disallowed_STD3_mapped", - [ - 95 - ] - ], - [ - [ - 65077, - 65077 - ], - "disallowed_STD3_mapped", - [ - 40 - ] - ], - [ - [ - 65078, - 65078 - ], - "disallowed_STD3_mapped", - [ - 41 - ] - ], - [ - [ - 65079, - 65079 - ], - "disallowed_STD3_mapped", - [ - 123 - ] - ], - [ - [ - 65080, - 65080 - ], - "disallowed_STD3_mapped", - [ - 125 - ] - ], - [ - [ - 65081, - 65081 - ], - "mapped", - [ - 12308 - ] - ], - [ - [ - 65082, - 65082 - ], - "mapped", - [ - 12309 - ] - ], - [ - [ - 65083, - 65083 - ], - "mapped", - [ - 12304 - ] - ], - [ - [ - 65084, - 65084 - ], - "mapped", - [ - 12305 - ] - ], - [ - [ - 65085, - 65085 - ], - "mapped", - [ - 12298 - ] - ], - [ - [ - 65086, - 65086 - ], - "mapped", - [ - 12299 - ] - ], - [ - [ - 65087, - 65087 - ], - "mapped", - [ - 12296 - ] - ], - [ - [ - 65088, - 65088 - ], - "mapped", - [ - 12297 - ] - ], - [ - [ - 65089, - 65089 - ], - "mapped", - [ - 12300 - ] - ], - [ - [ - 65090, - 65090 - ], - "mapped", - [ - 12301 - ] - ], - [ - [ - 65091, - 65091 - ], - "mapped", - [ - 12302 - ] - ], - [ - [ - 65092, - 65092 - ], - "mapped", - [ - 12303 - ] - ], - [ - [ - 65093, - 65094 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65095, - 65095 - ], - "disallowed_STD3_mapped", - [ - 91 - ] - ], - [ - [ - 65096, - 65096 - ], - "disallowed_STD3_mapped", - [ - 93 - ] - ], - [ - [ - 65097, - 65100 - ], - "disallowed_STD3_mapped", - [ - 32, - 773 - ] - ], - [ - [ - 65101, - 65103 - ], - "disallowed_STD3_mapped", - [ - 95 - ] - ], - [ - [ - 65104, - 65104 - ], - "disallowed_STD3_mapped", - [ - 44 - ] - ], - [ - [ - 65105, - 65105 - ], - "mapped", - [ - 12289 - ] - ], - [ - [ - 65106, - 65106 - ], - "disallowed" - ], - [ - [ - 65107, - 65107 - ], - "disallowed" - ], - [ - [ - 65108, - 65108 - ], - "disallowed_STD3_mapped", - [ - 59 - ] - ], - [ - [ - 65109, - 65109 - ], - "disallowed_STD3_mapped", - [ - 58 - ] - ], - [ - [ - 65110, - 65110 - ], - "disallowed_STD3_mapped", - [ - 63 - ] - ], - [ - [ - 65111, - 65111 - ], - "disallowed_STD3_mapped", - [ - 33 - ] - ], - [ - [ - 65112, - 65112 - ], - "mapped", - [ - 8212 - ] - ], - [ - [ - 65113, - 65113 - ], - "disallowed_STD3_mapped", - [ - 40 - ] - ], - [ - [ - 65114, - 65114 - ], - "disallowed_STD3_mapped", - [ - 41 - ] - ], - [ - [ - 65115, - 65115 - ], - "disallowed_STD3_mapped", - [ - 123 - ] - ], - [ - [ - 65116, - 65116 - ], - "disallowed_STD3_mapped", - [ - 125 - ] - ], - [ - [ - 65117, - 65117 - ], - "mapped", - [ - 12308 - ] - ], - [ - [ - 65118, - 65118 - ], - "mapped", - [ - 12309 - ] - ], - [ - [ - 65119, - 65119 - ], - "disallowed_STD3_mapped", - [ - 35 - ] - ], - [ - [ - 65120, - 65120 - ], - "disallowed_STD3_mapped", - [ - 38 - ] - ], - [ - [ - 65121, - 65121 - ], - "disallowed_STD3_mapped", - [ - 42 - ] - ], - [ - [ - 65122, - 65122 - ], - "disallowed_STD3_mapped", - [ - 43 - ] - ], - [ - [ - 65123, - 65123 - ], - "mapped", - [ - 45 - ] - ], - [ - [ - 65124, - 65124 - ], - "disallowed_STD3_mapped", - [ - 60 - ] - ], - [ - [ - 65125, - 65125 - ], - "disallowed_STD3_mapped", - [ - 62 - ] - ], - [ - [ - 65126, - 65126 - ], - "disallowed_STD3_mapped", - [ - 61 - ] - ], - [ - [ - 65127, - 65127 - ], - "disallowed" - ], - [ - [ - 65128, - 65128 - ], - "disallowed_STD3_mapped", - [ - 92 - ] - ], - [ - [ - 65129, - 65129 - ], - "disallowed_STD3_mapped", - [ - 36 - ] - ], - [ - [ - 65130, - 65130 - ], - "disallowed_STD3_mapped", - [ - 37 - ] - ], - [ - [ - 65131, - 65131 - ], - "disallowed_STD3_mapped", - [ - 64 - ] - ], - [ - [ - 65132, - 65135 - ], - "disallowed" - ], - [ - [ - 65136, - 65136 - ], - "disallowed_STD3_mapped", - [ - 32, - 1611 - ] - ], - [ - [ - 65137, - 65137 - ], - "mapped", - [ - 1600, - 1611 - ] - ], - [ - [ - 65138, - 65138 - ], - "disallowed_STD3_mapped", - [ - 32, - 1612 - ] - ], - [ - [ - 65139, - 65139 - ], - "valid" - ], - [ - [ - 65140, - 65140 - ], - "disallowed_STD3_mapped", - [ - 32, - 1613 - ] - ], - [ - [ - 65141, - 65141 - ], - "disallowed" - ], - [ - [ - 65142, - 65142 - ], - "disallowed_STD3_mapped", - [ - 32, - 1614 - ] - ], - [ - [ - 65143, - 65143 - ], - "mapped", - [ - 1600, - 1614 - ] - ], - [ - [ - 65144, - 65144 - ], - "disallowed_STD3_mapped", - [ - 32, - 1615 - ] - ], - [ - [ - 65145, - 65145 - ], - "mapped", - [ - 1600, - 1615 - ] - ], - [ - [ - 65146, - 65146 - ], - "disallowed_STD3_mapped", - [ - 32, - 1616 - ] - ], - [ - [ - 65147, - 65147 - ], - "mapped", - [ - 1600, - 1616 - ] - ], - [ - [ - 65148, - 65148 - ], - "disallowed_STD3_mapped", - [ - 32, - 1617 - ] - ], - [ - [ - 65149, - 65149 - ], - "mapped", - [ - 1600, - 1617 - ] - ], - [ - [ - 65150, - 65150 - ], - "disallowed_STD3_mapped", - [ - 32, - 1618 - ] - ], - [ - [ - 65151, - 65151 - ], - "mapped", - [ - 1600, - 1618 - ] - ], - [ - [ - 65152, - 65152 - ], - "mapped", - [ - 1569 - ] - ], - [ - [ - 65153, - 65154 - ], - "mapped", - [ - 1570 - ] - ], - [ - [ - 65155, - 65156 - ], - "mapped", - [ - 1571 - ] - ], - [ - [ - 65157, - 65158 - ], - "mapped", - [ - 1572 - ] - ], - [ - [ - 65159, - 65160 - ], - "mapped", - [ - 1573 - ] - ], - [ - [ - 65161, - 65164 - ], - "mapped", - [ - 1574 - ] - ], - [ - [ - 65165, - 65166 - ], - "mapped", - [ - 1575 - ] - ], - [ - [ - 65167, - 65170 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 65171, - 65172 - ], - "mapped", - [ - 1577 - ] - ], - [ - [ - 65173, - 65176 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 65177, - 65180 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 65181, - 65184 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 65185, - 65188 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 65189, - 65192 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 65193, - 65194 - ], - "mapped", - [ - 1583 - ] - ], - [ - [ - 65195, - 65196 - ], - "mapped", - [ - 1584 - ] - ], - [ - [ - 65197, - 65198 - ], - "mapped", - [ - 1585 - ] - ], - [ - [ - 65199, - 65200 - ], - "mapped", - [ - 1586 - ] - ], - [ - [ - 65201, - 65204 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 65205, - 65208 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 65209, - 65212 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 65213, - 65216 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 65217, - 65220 - ], - "mapped", - [ - 1591 - ] - ], - [ - [ - 65221, - 65224 - ], - "mapped", - [ - 1592 - ] - ], - [ - [ - 65225, - 65228 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 65229, - 65232 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 65233, - 65236 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 65237, - 65240 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 65241, - 65244 - ], - "mapped", - [ - 1603 - ] - ], - [ - [ - 65245, - 65248 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 65249, - 65252 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 65253, - 65256 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 65257, - 65260 - ], - "mapped", - [ - 1607 - ] - ], - [ - [ - 65261, - 65262 - ], - "mapped", - [ - 1608 - ] - ], - [ - [ - 65263, - 65264 - ], - "mapped", - [ - 1609 - ] - ], - [ - [ - 65265, - 65268 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 65269, - 65270 - ], - "mapped", - [ - 1604, - 1570 - ] - ], - [ - [ - 65271, - 65272 - ], - "mapped", - [ - 1604, - 1571 - ] - ], - [ - [ - 65273, - 65274 - ], - "mapped", - [ - 1604, - 1573 - ] - ], - [ - [ - 65275, - 65276 - ], - "mapped", - [ - 1604, - 1575 - ] - ], - [ - [ - 65277, - 65278 - ], - "disallowed" - ], - [ - [ - 65279, - 65279 - ], - "ignored" - ], - [ - [ - 65280, - 65280 - ], - "disallowed" - ], - [ - [ - 65281, - 65281 - ], - "disallowed_STD3_mapped", - [ - 33 - ] - ], - [ - [ - 65282, - 65282 - ], - "disallowed_STD3_mapped", - [ - 34 - ] - ], - [ - [ - 65283, - 65283 - ], - "disallowed_STD3_mapped", - [ - 35 - ] - ], - [ - [ - 65284, - 65284 - ], - "disallowed_STD3_mapped", - [ - 36 - ] - ], - [ - [ - 65285, - 65285 - ], - "disallowed_STD3_mapped", - [ - 37 - ] - ], - [ - [ - 65286, - 65286 - ], - "disallowed_STD3_mapped", - [ - 38 - ] - ], - [ - [ - 65287, - 65287 - ], - "disallowed_STD3_mapped", - [ - 39 - ] - ], - [ - [ - 65288, - 65288 - ], - "disallowed_STD3_mapped", - [ - 40 - ] - ], - [ - [ - 65289, - 65289 - ], - "disallowed_STD3_mapped", - [ - 41 - ] - ], - [ - [ - 65290, - 65290 - ], - "disallowed_STD3_mapped", - [ - 42 - ] - ], - [ - [ - 65291, - 65291 - ], - "disallowed_STD3_mapped", - [ - 43 - ] - ], - [ - [ - 65292, - 65292 - ], - "disallowed_STD3_mapped", - [ - 44 - ] - ], - [ - [ - 65293, - 65293 - ], - "mapped", - [ - 45 - ] - ], - [ - [ - 65294, - 65294 - ], - "mapped", - [ - 46 - ] - ], - [ - [ - 65295, - 65295 - ], - "disallowed_STD3_mapped", - [ - 47 - ] - ], - [ - [ - 65296, - 65296 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 65297, - 65297 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 65298, - 65298 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 65299, - 65299 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 65300, - 65300 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 65301, - 65301 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 65302, - 65302 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 65303, - 65303 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 65304, - 65304 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 65305, - 65305 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 65306, - 65306 - ], - "disallowed_STD3_mapped", - [ - 58 - ] - ], - [ - [ - 65307, - 65307 - ], - "disallowed_STD3_mapped", - [ - 59 - ] - ], - [ - [ - 65308, - 65308 - ], - "disallowed_STD3_mapped", - [ - 60 - ] - ], - [ - [ - 65309, - 65309 - ], - "disallowed_STD3_mapped", - [ - 61 - ] - ], - [ - [ - 65310, - 65310 - ], - "disallowed_STD3_mapped", - [ - 62 - ] - ], - [ - [ - 65311, - 65311 - ], - "disallowed_STD3_mapped", - [ - 63 - ] - ], - [ - [ - 65312, - 65312 - ], - "disallowed_STD3_mapped", - [ - 64 - ] - ], - [ - [ - 65313, - 65313 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 65314, - 65314 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 65315, - 65315 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 65316, - 65316 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 65317, - 65317 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 65318, - 65318 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 65319, - 65319 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 65320, - 65320 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 65321, - 65321 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 65322, - 65322 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 65323, - 65323 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 65324, - 65324 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 65325, - 65325 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 65326, - 65326 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 65327, - 65327 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 65328, - 65328 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 65329, - 65329 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 65330, - 65330 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 65331, - 65331 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 65332, - 65332 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 65333, - 65333 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 65334, - 65334 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 65335, - 65335 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 65336, - 65336 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 65337, - 65337 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 65338, - 65338 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 65339, - 65339 - ], - "disallowed_STD3_mapped", - [ - 91 - ] - ], - [ - [ - 65340, - 65340 - ], - "disallowed_STD3_mapped", - [ - 92 - ] - ], - [ - [ - 65341, - 65341 - ], - "disallowed_STD3_mapped", - [ - 93 - ] - ], - [ - [ - 65342, - 65342 - ], - "disallowed_STD3_mapped", - [ - 94 - ] - ], - [ - [ - 65343, - 65343 - ], - "disallowed_STD3_mapped", - [ - 95 - ] - ], - [ - [ - 65344, - 65344 - ], - "disallowed_STD3_mapped", - [ - 96 - ] - ], - [ - [ - 65345, - 65345 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 65346, - 65346 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 65347, - 65347 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 65348, - 65348 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 65349, - 65349 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 65350, - 65350 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 65351, - 65351 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 65352, - 65352 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 65353, - 65353 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 65354, - 65354 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 65355, - 65355 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 65356, - 65356 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 65357, - 65357 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 65358, - 65358 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 65359, - 65359 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 65360, - 65360 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 65361, - 65361 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 65362, - 65362 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 65363, - 65363 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 65364, - 65364 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 65365, - 65365 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 65366, - 65366 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 65367, - 65367 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 65368, - 65368 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 65369, - 65369 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 65370, - 65370 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 65371, - 65371 - ], - "disallowed_STD3_mapped", - [ - 123 - ] - ], - [ - [ - 65372, - 65372 - ], - "disallowed_STD3_mapped", - [ - 124 - ] - ], - [ - [ - 65373, - 65373 - ], - "disallowed_STD3_mapped", - [ - 125 - ] - ], - [ - [ - 65374, - 65374 - ], - "disallowed_STD3_mapped", - [ - 126 - ] - ], - [ - [ - 65375, - 65375 - ], - "mapped", - [ - 10629 - ] - ], - [ - [ - 65376, - 65376 - ], - "mapped", - [ - 10630 - ] - ], - [ - [ - 65377, - 65377 - ], - "mapped", - [ - 46 - ] - ], - [ - [ - 65378, - 65378 - ], - "mapped", - [ - 12300 - ] - ], - [ - [ - 65379, - 65379 - ], - "mapped", - [ - 12301 - ] - ], - [ - [ - 65380, - 65380 - ], - "mapped", - [ - 12289 - ] - ], - [ - [ - 65381, - 65381 - ], - "mapped", - [ - 12539 - ] - ], - [ - [ - 65382, - 65382 - ], - "mapped", - [ - 12530 - ] - ], - [ - [ - 65383, - 65383 - ], - "mapped", - [ - 12449 - ] - ], - [ - [ - 65384, - 65384 - ], - "mapped", - [ - 12451 - ] - ], - [ - [ - 65385, - 65385 - ], - "mapped", - [ - 12453 - ] - ], - [ - [ - 65386, - 65386 - ], - "mapped", - [ - 12455 - ] - ], - [ - [ - 65387, - 65387 - ], - "mapped", - [ - 12457 - ] - ], - [ - [ - 65388, - 65388 - ], - "mapped", - [ - 12515 - ] - ], - [ - [ - 65389, - 65389 - ], - "mapped", - [ - 12517 - ] - ], - [ - [ - 65390, - 65390 - ], - "mapped", - [ - 12519 - ] - ], - [ - [ - 65391, - 65391 - ], - "mapped", - [ - 12483 - ] - ], - [ - [ - 65392, - 65392 - ], - "mapped", - [ - 12540 - ] - ], - [ - [ - 65393, - 65393 - ], - "mapped", - [ - 12450 - ] - ], - [ - [ - 65394, - 65394 - ], - "mapped", - [ - 12452 - ] - ], - [ - [ - 65395, - 65395 - ], - "mapped", - [ - 12454 - ] - ], - [ - [ - 65396, - 65396 - ], - "mapped", - [ - 12456 - ] - ], - [ - [ - 65397, - 65397 - ], - "mapped", - [ - 12458 - ] - ], - [ - [ - 65398, - 65398 - ], - "mapped", - [ - 12459 - ] - ], - [ - [ - 65399, - 65399 - ], - "mapped", - [ - 12461 - ] - ], - [ - [ - 65400, - 65400 - ], - "mapped", - [ - 12463 - ] - ], - [ - [ - 65401, - 65401 - ], - "mapped", - [ - 12465 - ] - ], - [ - [ - 65402, - 65402 - ], - "mapped", - [ - 12467 - ] - ], - [ - [ - 65403, - 65403 - ], - "mapped", - [ - 12469 - ] - ], - [ - [ - 65404, - 65404 - ], - "mapped", - [ - 12471 - ] - ], - [ - [ - 65405, - 65405 - ], - "mapped", - [ - 12473 - ] - ], - [ - [ - 65406, - 65406 - ], - "mapped", - [ - 12475 - ] - ], - [ - [ - 65407, - 65407 - ], - "mapped", - [ - 12477 - ] - ], - [ - [ - 65408, - 65408 - ], - "mapped", - [ - 12479 - ] - ], - [ - [ - 65409, - 65409 - ], - "mapped", - [ - 12481 - ] - ], - [ - [ - 65410, - 65410 - ], - "mapped", - [ - 12484 - ] - ], - [ - [ - 65411, - 65411 - ], - "mapped", - [ - 12486 - ] - ], - [ - [ - 65412, - 65412 - ], - "mapped", - [ - 12488 - ] - ], - [ - [ - 65413, - 65413 - ], - "mapped", - [ - 12490 - ] - ], - [ - [ - 65414, - 65414 - ], - "mapped", - [ - 12491 - ] - ], - [ - [ - 65415, - 65415 - ], - "mapped", - [ - 12492 - ] - ], - [ - [ - 65416, - 65416 - ], - "mapped", - [ - 12493 - ] - ], - [ - [ - 65417, - 65417 - ], - "mapped", - [ - 12494 - ] - ], - [ - [ - 65418, - 65418 - ], - "mapped", - [ - 12495 - ] - ], - [ - [ - 65419, - 65419 - ], - "mapped", - [ - 12498 - ] - ], - [ - [ - 65420, - 65420 - ], - "mapped", - [ - 12501 - ] - ], - [ - [ - 65421, - 65421 - ], - "mapped", - [ - 12504 - ] - ], - [ - [ - 65422, - 65422 - ], - "mapped", - [ - 12507 - ] - ], - [ - [ - 65423, - 65423 - ], - "mapped", - [ - 12510 - ] - ], - [ - [ - 65424, - 65424 - ], - "mapped", - [ - 12511 - ] - ], - [ - [ - 65425, - 65425 - ], - "mapped", - [ - 12512 - ] - ], - [ - [ - 65426, - 65426 - ], - "mapped", - [ - 12513 - ] - ], - [ - [ - 65427, - 65427 - ], - "mapped", - [ - 12514 - ] - ], - [ - [ - 65428, - 65428 - ], - "mapped", - [ - 12516 - ] - ], - [ - [ - 65429, - 65429 - ], - "mapped", - [ - 12518 - ] - ], - [ - [ - 65430, - 65430 - ], - "mapped", - [ - 12520 - ] - ], - [ - [ - 65431, - 65431 - ], - "mapped", - [ - 12521 - ] - ], - [ - [ - 65432, - 65432 - ], - "mapped", - [ - 12522 - ] - ], - [ - [ - 65433, - 65433 - ], - "mapped", - [ - 12523 - ] - ], - [ - [ - 65434, - 65434 - ], - "mapped", - [ - 12524 - ] - ], - [ - [ - 65435, - 65435 - ], - "mapped", - [ - 12525 - ] - ], - [ - [ - 65436, - 65436 - ], - "mapped", - [ - 12527 - ] - ], - [ - [ - 65437, - 65437 - ], - "mapped", - [ - 12531 - ] - ], - [ - [ - 65438, - 65438 - ], - "mapped", - [ - 12441 - ] - ], - [ - [ - 65439, - 65439 - ], - "mapped", - [ - 12442 - ] - ], - [ - [ - 65440, - 65440 - ], - "disallowed" - ], - [ - [ - 65441, - 65441 - ], - "mapped", - [ - 4352 - ] - ], - [ - [ - 65442, - 65442 - ], - "mapped", - [ - 4353 - ] - ], - [ - [ - 65443, - 65443 - ], - "mapped", - [ - 4522 - ] - ], - [ - [ - 65444, - 65444 - ], - "mapped", - [ - 4354 - ] - ], - [ - [ - 65445, - 65445 - ], - "mapped", - [ - 4524 - ] - ], - [ - [ - 65446, - 65446 - ], - "mapped", - [ - 4525 - ] - ], - [ - [ - 65447, - 65447 - ], - "mapped", - [ - 4355 - ] - ], - [ - [ - 65448, - 65448 - ], - "mapped", - [ - 4356 - ] - ], - [ - [ - 65449, - 65449 - ], - "mapped", - [ - 4357 - ] - ], - [ - [ - 65450, - 65450 - ], - "mapped", - [ - 4528 - ] - ], - [ - [ - 65451, - 65451 - ], - "mapped", - [ - 4529 - ] - ], - [ - [ - 65452, - 65452 - ], - "mapped", - [ - 4530 - ] - ], - [ - [ - 65453, - 65453 - ], - "mapped", - [ - 4531 - ] - ], - [ - [ - 65454, - 65454 - ], - "mapped", - [ - 4532 - ] - ], - [ - [ - 65455, - 65455 - ], - "mapped", - [ - 4533 - ] - ], - [ - [ - 65456, - 65456 - ], - "mapped", - [ - 4378 - ] - ], - [ - [ - 65457, - 65457 - ], - "mapped", - [ - 4358 - ] - ], - [ - [ - 65458, - 65458 - ], - "mapped", - [ - 4359 - ] - ], - [ - [ - 65459, - 65459 - ], - "mapped", - [ - 4360 - ] - ], - [ - [ - 65460, - 65460 - ], - "mapped", - [ - 4385 - ] - ], - [ - [ - 65461, - 65461 - ], - "mapped", - [ - 4361 - ] - ], - [ - [ - 65462, - 65462 - ], - "mapped", - [ - 4362 - ] - ], - [ - [ - 65463, - 65463 - ], - "mapped", - [ - 4363 - ] - ], - [ - [ - 65464, - 65464 - ], - "mapped", - [ - 4364 - ] - ], - [ - [ - 65465, - 65465 - ], - "mapped", - [ - 4365 - ] - ], - [ - [ - 65466, - 65466 - ], - "mapped", - [ - 4366 - ] - ], - [ - [ - 65467, - 65467 - ], - "mapped", - [ - 4367 - ] - ], - [ - [ - 65468, - 65468 - ], - "mapped", - [ - 4368 - ] - ], - [ - [ - 65469, - 65469 - ], - "mapped", - [ - 4369 - ] - ], - [ - [ - 65470, - 65470 - ], - "mapped", - [ - 4370 - ] - ], - [ - [ - 65471, - 65473 - ], - "disallowed" - ], - [ - [ - 65474, - 65474 - ], - "mapped", - [ - 4449 - ] - ], - [ - [ - 65475, - 65475 - ], - "mapped", - [ - 4450 - ] - ], - [ - [ - 65476, - 65476 - ], - "mapped", - [ - 4451 - ] - ], - [ - [ - 65477, - 65477 - ], - "mapped", - [ - 4452 - ] - ], - [ - [ - 65478, - 65478 - ], - "mapped", - [ - 4453 - ] - ], - [ - [ - 65479, - 65479 - ], - "mapped", - [ - 4454 - ] - ], - [ - [ - 65480, - 65481 - ], - "disallowed" - ], - [ - [ - 65482, - 65482 - ], - "mapped", - [ - 4455 - ] - ], - [ - [ - 65483, - 65483 - ], - "mapped", - [ - 4456 - ] - ], - [ - [ - 65484, - 65484 - ], - "mapped", - [ - 4457 - ] - ], - [ - [ - 65485, - 65485 - ], - "mapped", - [ - 4458 - ] - ], - [ - [ - 65486, - 65486 - ], - "mapped", - [ - 4459 - ] - ], - [ - [ - 65487, - 65487 - ], - "mapped", - [ - 4460 - ] - ], - [ - [ - 65488, - 65489 - ], - "disallowed" - ], - [ - [ - 65490, - 65490 - ], - "mapped", - [ - 4461 - ] - ], - [ - [ - 65491, - 65491 - ], - "mapped", - [ - 4462 - ] - ], - [ - [ - 65492, - 65492 - ], - "mapped", - [ - 4463 - ] - ], - [ - [ - 65493, - 65493 - ], - "mapped", - [ - 4464 - ] - ], - [ - [ - 65494, - 65494 - ], - "mapped", - [ - 4465 - ] - ], - [ - [ - 65495, - 65495 - ], - "mapped", - [ - 4466 - ] - ], - [ - [ - 65496, - 65497 - ], - "disallowed" - ], - [ - [ - 65498, - 65498 - ], - "mapped", - [ - 4467 - ] - ], - [ - [ - 65499, - 65499 - ], - "mapped", - [ - 4468 - ] - ], - [ - [ - 65500, - 65500 - ], - "mapped", - [ - 4469 - ] - ], - [ - [ - 65501, - 65503 - ], - "disallowed" - ], - [ - [ - 65504, - 65504 - ], - "mapped", - [ - 162 - ] - ], - [ - [ - 65505, - 65505 - ], - "mapped", - [ - 163 - ] - ], - [ - [ - 65506, - 65506 - ], - "mapped", - [ - 172 - ] - ], - [ - [ - 65507, - 65507 - ], - "disallowed_STD3_mapped", - [ - 32, - 772 - ] - ], - [ - [ - 65508, - 65508 - ], - "mapped", - [ - 166 - ] - ], - [ - [ - 65509, - 65509 - ], - "mapped", - [ - 165 - ] - ], - [ - [ - 65510, - 65510 - ], - "mapped", - [ - 8361 - ] - ], - [ - [ - 65511, - 65511 - ], - "disallowed" - ], - [ - [ - 65512, - 65512 - ], - "mapped", - [ - 9474 - ] - ], - [ - [ - 65513, - 65513 - ], - "mapped", - [ - 8592 - ] - ], - [ - [ - 65514, - 65514 - ], - "mapped", - [ - 8593 - ] - ], - [ - [ - 65515, - 65515 - ], - "mapped", - [ - 8594 - ] - ], - [ - [ - 65516, - 65516 - ], - "mapped", - [ - 8595 - ] - ], - [ - [ - 65517, - 65517 - ], - "mapped", - [ - 9632 - ] - ], - [ - [ - 65518, - 65518 - ], - "mapped", - [ - 9675 - ] - ], - [ - [ - 65519, - 65528 - ], - "disallowed" - ], - [ - [ - 65529, - 65531 - ], - "disallowed" - ], - [ - [ - 65532, - 65532 - ], - "disallowed" - ], - [ - [ - 65533, - 65533 - ], - "disallowed" - ], - [ - [ - 65534, - 65535 - ], - "disallowed" - ], - [ - [ - 65536, - 65547 - ], - "valid" - ], - [ - [ - 65548, - 65548 - ], - "disallowed" - ], - [ - [ - 65549, - 65574 - ], - "valid" - ], - [ - [ - 65575, - 65575 - ], - "disallowed" - ], - [ - [ - 65576, - 65594 - ], - "valid" - ], - [ - [ - 65595, - 65595 - ], - "disallowed" - ], - [ - [ - 65596, - 65597 - ], - "valid" - ], - [ - [ - 65598, - 65598 - ], - "disallowed" - ], - [ - [ - 65599, - 65613 - ], - "valid" - ], - [ - [ - 65614, - 65615 - ], - "disallowed" - ], - [ - [ - 65616, - 65629 - ], - "valid" - ], - [ - [ - 65630, - 65663 - ], - "disallowed" - ], - [ - [ - 65664, - 65786 - ], - "valid" - ], - [ - [ - 65787, - 65791 - ], - "disallowed" - ], - [ - [ - 65792, - 65794 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65795, - 65798 - ], - "disallowed" - ], - [ - [ - 65799, - 65843 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65844, - 65846 - ], - "disallowed" - ], - [ - [ - 65847, - 65855 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65856, - 65930 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65931, - 65932 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65933, - 65935 - ], - "disallowed" - ], - [ - [ - 65936, - 65947 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65948, - 65951 - ], - "disallowed" - ], - [ - [ - 65952, - 65952 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 65953, - 65999 - ], - "disallowed" - ], - [ - [ - 66000, - 66044 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66045, - 66045 - ], - "valid" - ], - [ - [ - 66046, - 66175 - ], - "disallowed" - ], - [ - [ - 66176, - 66204 - ], - "valid" - ], - [ - [ - 66205, - 66207 - ], - "disallowed" - ], - [ - [ - 66208, - 66256 - ], - "valid" - ], - [ - [ - 66257, - 66271 - ], - "disallowed" - ], - [ - [ - 66272, - 66272 - ], - "valid" - ], - [ - [ - 66273, - 66299 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66300, - 66303 - ], - "disallowed" - ], - [ - [ - 66304, - 66334 - ], - "valid" - ], - [ - [ - 66335, - 66335 - ], - "valid" - ], - [ - [ - 66336, - 66339 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66340, - 66351 - ], - "disallowed" - ], - [ - [ - 66352, - 66368 - ], - "valid" - ], - [ - [ - 66369, - 66369 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66370, - 66377 - ], - "valid" - ], - [ - [ - 66378, - 66378 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66379, - 66383 - ], - "disallowed" - ], - [ - [ - 66384, - 66426 - ], - "valid" - ], - [ - [ - 66427, - 66431 - ], - "disallowed" - ], - [ - [ - 66432, - 66461 - ], - "valid" - ], - [ - [ - 66462, - 66462 - ], - "disallowed" - ], - [ - [ - 66463, - 66463 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66464, - 66499 - ], - "valid" - ], - [ - [ - 66500, - 66503 - ], - "disallowed" - ], - [ - [ - 66504, - 66511 - ], - "valid" - ], - [ - [ - 66512, - 66517 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66518, - 66559 - ], - "disallowed" - ], - [ - [ - 66560, - 66560 - ], - "mapped", - [ - 66600 - ] - ], - [ - [ - 66561, - 66561 - ], - "mapped", - [ - 66601 - ] - ], - [ - [ - 66562, - 66562 - ], - "mapped", - [ - 66602 - ] - ], - [ - [ - 66563, - 66563 - ], - "mapped", - [ - 66603 - ] - ], - [ - [ - 66564, - 66564 - ], - "mapped", - [ - 66604 - ] - ], - [ - [ - 66565, - 66565 - ], - "mapped", - [ - 66605 - ] - ], - [ - [ - 66566, - 66566 - ], - "mapped", - [ - 66606 - ] - ], - [ - [ - 66567, - 66567 - ], - "mapped", - [ - 66607 - ] - ], - [ - [ - 66568, - 66568 - ], - "mapped", - [ - 66608 - ] - ], - [ - [ - 66569, - 66569 - ], - "mapped", - [ - 66609 - ] - ], - [ - [ - 66570, - 66570 - ], - "mapped", - [ - 66610 - ] - ], - [ - [ - 66571, - 66571 - ], - "mapped", - [ - 66611 - ] - ], - [ - [ - 66572, - 66572 - ], - "mapped", - [ - 66612 - ] - ], - [ - [ - 66573, - 66573 - ], - "mapped", - [ - 66613 - ] - ], - [ - [ - 66574, - 66574 - ], - "mapped", - [ - 66614 - ] - ], - [ - [ - 66575, - 66575 - ], - "mapped", - [ - 66615 - ] - ], - [ - [ - 66576, - 66576 - ], - "mapped", - [ - 66616 - ] - ], - [ - [ - 66577, - 66577 - ], - "mapped", - [ - 66617 - ] - ], - [ - [ - 66578, - 66578 - ], - "mapped", - [ - 66618 - ] - ], - [ - [ - 66579, - 66579 - ], - "mapped", - [ - 66619 - ] - ], - [ - [ - 66580, - 66580 - ], - "mapped", - [ - 66620 - ] - ], - [ - [ - 66581, - 66581 - ], - "mapped", - [ - 66621 - ] - ], - [ - [ - 66582, - 66582 - ], - "mapped", - [ - 66622 - ] - ], - [ - [ - 66583, - 66583 - ], - "mapped", - [ - 66623 - ] - ], - [ - [ - 66584, - 66584 - ], - "mapped", - [ - 66624 - ] - ], - [ - [ - 66585, - 66585 - ], - "mapped", - [ - 66625 - ] - ], - [ - [ - 66586, - 66586 - ], - "mapped", - [ - 66626 - ] - ], - [ - [ - 66587, - 66587 - ], - "mapped", - [ - 66627 - ] - ], - [ - [ - 66588, - 66588 - ], - "mapped", - [ - 66628 - ] - ], - [ - [ - 66589, - 66589 - ], - "mapped", - [ - 66629 - ] - ], - [ - [ - 66590, - 66590 - ], - "mapped", - [ - 66630 - ] - ], - [ - [ - 66591, - 66591 - ], - "mapped", - [ - 66631 - ] - ], - [ - [ - 66592, - 66592 - ], - "mapped", - [ - 66632 - ] - ], - [ - [ - 66593, - 66593 - ], - "mapped", - [ - 66633 - ] - ], - [ - [ - 66594, - 66594 - ], - "mapped", - [ - 66634 - ] - ], - [ - [ - 66595, - 66595 - ], - "mapped", - [ - 66635 - ] - ], - [ - [ - 66596, - 66596 - ], - "mapped", - [ - 66636 - ] - ], - [ - [ - 66597, - 66597 - ], - "mapped", - [ - 66637 - ] - ], - [ - [ - 66598, - 66598 - ], - "mapped", - [ - 66638 - ] - ], - [ - [ - 66599, - 66599 - ], - "mapped", - [ - 66639 - ] - ], - [ - [ - 66600, - 66637 - ], - "valid" - ], - [ - [ - 66638, - 66717 - ], - "valid" - ], - [ - [ - 66718, - 66719 - ], - "disallowed" - ], - [ - [ - 66720, - 66729 - ], - "valid" - ], - [ - [ - 66730, - 66815 - ], - "disallowed" - ], - [ - [ - 66816, - 66855 - ], - "valid" - ], - [ - [ - 66856, - 66863 - ], - "disallowed" - ], - [ - [ - 66864, - 66915 - ], - "valid" - ], - [ - [ - 66916, - 66926 - ], - "disallowed" - ], - [ - [ - 66927, - 66927 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 66928, - 67071 - ], - "disallowed" - ], - [ - [ - 67072, - 67382 - ], - "valid" - ], - [ - [ - 67383, - 67391 - ], - "disallowed" - ], - [ - [ - 67392, - 67413 - ], - "valid" - ], - [ - [ - 67414, - 67423 - ], - "disallowed" - ], - [ - [ - 67424, - 67431 - ], - "valid" - ], - [ - [ - 67432, - 67583 - ], - "disallowed" - ], - [ - [ - 67584, - 67589 - ], - "valid" - ], - [ - [ - 67590, - 67591 - ], - "disallowed" - ], - [ - [ - 67592, - 67592 - ], - "valid" - ], - [ - [ - 67593, - 67593 - ], - "disallowed" - ], - [ - [ - 67594, - 67637 - ], - "valid" - ], - [ - [ - 67638, - 67638 - ], - "disallowed" - ], - [ - [ - 67639, - 67640 - ], - "valid" - ], - [ - [ - 67641, - 67643 - ], - "disallowed" - ], - [ - [ - 67644, - 67644 - ], - "valid" - ], - [ - [ - 67645, - 67646 - ], - "disallowed" - ], - [ - [ - 67647, - 67647 - ], - "valid" - ], - [ - [ - 67648, - 67669 - ], - "valid" - ], - [ - [ - 67670, - 67670 - ], - "disallowed" - ], - [ - [ - 67671, - 67679 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67680, - 67702 - ], - "valid" - ], - [ - [ - 67703, - 67711 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67712, - 67742 - ], - "valid" - ], - [ - [ - 67743, - 67750 - ], - "disallowed" - ], - [ - [ - 67751, - 67759 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67760, - 67807 - ], - "disallowed" - ], - [ - [ - 67808, - 67826 - ], - "valid" - ], - [ - [ - 67827, - 67827 - ], - "disallowed" - ], - [ - [ - 67828, - 67829 - ], - "valid" - ], - [ - [ - 67830, - 67834 - ], - "disallowed" - ], - [ - [ - 67835, - 67839 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67840, - 67861 - ], - "valid" - ], - [ - [ - 67862, - 67865 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67866, - 67867 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67868, - 67870 - ], - "disallowed" - ], - [ - [ - 67871, - 67871 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67872, - 67897 - ], - "valid" - ], - [ - [ - 67898, - 67902 - ], - "disallowed" - ], - [ - [ - 67903, - 67903 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 67904, - 67967 - ], - "disallowed" - ], - [ - [ - 67968, - 68023 - ], - "valid" - ], - [ - [ - 68024, - 68027 - ], - "disallowed" - ], - [ - [ - 68028, - 68029 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68030, - 68031 - ], - "valid" - ], - [ - [ - 68032, - 68047 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68048, - 68049 - ], - "disallowed" - ], - [ - [ - 68050, - 68095 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68096, - 68099 - ], - "valid" - ], - [ - [ - 68100, - 68100 - ], - "disallowed" - ], - [ - [ - 68101, - 68102 - ], - "valid" - ], - [ - [ - 68103, - 68107 - ], - "disallowed" - ], - [ - [ - 68108, - 68115 - ], - "valid" - ], - [ - [ - 68116, - 68116 - ], - "disallowed" - ], - [ - [ - 68117, - 68119 - ], - "valid" - ], - [ - [ - 68120, - 68120 - ], - "disallowed" - ], - [ - [ - 68121, - 68147 - ], - "valid" - ], - [ - [ - 68148, - 68151 - ], - "disallowed" - ], - [ - [ - 68152, - 68154 - ], - "valid" - ], - [ - [ - 68155, - 68158 - ], - "disallowed" - ], - [ - [ - 68159, - 68159 - ], - "valid" - ], - [ - [ - 68160, - 68167 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68168, - 68175 - ], - "disallowed" - ], - [ - [ - 68176, - 68184 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68185, - 68191 - ], - "disallowed" - ], - [ - [ - 68192, - 68220 - ], - "valid" - ], - [ - [ - 68221, - 68223 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68224, - 68252 - ], - "valid" - ], - [ - [ - 68253, - 68255 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68256, - 68287 - ], - "disallowed" - ], - [ - [ - 68288, - 68295 - ], - "valid" - ], - [ - [ - 68296, - 68296 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68297, - 68326 - ], - "valid" - ], - [ - [ - 68327, - 68330 - ], - "disallowed" - ], - [ - [ - 68331, - 68342 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68343, - 68351 - ], - "disallowed" - ], - [ - [ - 68352, - 68405 - ], - "valid" - ], - [ - [ - 68406, - 68408 - ], - "disallowed" - ], - [ - [ - 68409, - 68415 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68416, - 68437 - ], - "valid" - ], - [ - [ - 68438, - 68439 - ], - "disallowed" - ], - [ - [ - 68440, - 68447 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68448, - 68466 - ], - "valid" - ], - [ - [ - 68467, - 68471 - ], - "disallowed" - ], - [ - [ - 68472, - 68479 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68480, - 68497 - ], - "valid" - ], - [ - [ - 68498, - 68504 - ], - "disallowed" - ], - [ - [ - 68505, - 68508 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68509, - 68520 - ], - "disallowed" - ], - [ - [ - 68521, - 68527 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68528, - 68607 - ], - "disallowed" - ], - [ - [ - 68608, - 68680 - ], - "valid" - ], - [ - [ - 68681, - 68735 - ], - "disallowed" - ], - [ - [ - 68736, - 68736 - ], - "mapped", - [ - 68800 - ] - ], - [ - [ - 68737, - 68737 - ], - "mapped", - [ - 68801 - ] - ], - [ - [ - 68738, - 68738 - ], - "mapped", - [ - 68802 - ] - ], - [ - [ - 68739, - 68739 - ], - "mapped", - [ - 68803 - ] - ], - [ - [ - 68740, - 68740 - ], - "mapped", - [ - 68804 - ] - ], - [ - [ - 68741, - 68741 - ], - "mapped", - [ - 68805 - ] - ], - [ - [ - 68742, - 68742 - ], - "mapped", - [ - 68806 - ] - ], - [ - [ - 68743, - 68743 - ], - "mapped", - [ - 68807 - ] - ], - [ - [ - 68744, - 68744 - ], - "mapped", - [ - 68808 - ] - ], - [ - [ - 68745, - 68745 - ], - "mapped", - [ - 68809 - ] - ], - [ - [ - 68746, - 68746 - ], - "mapped", - [ - 68810 - ] - ], - [ - [ - 68747, - 68747 - ], - "mapped", - [ - 68811 - ] - ], - [ - [ - 68748, - 68748 - ], - "mapped", - [ - 68812 - ] - ], - [ - [ - 68749, - 68749 - ], - "mapped", - [ - 68813 - ] - ], - [ - [ - 68750, - 68750 - ], - "mapped", - [ - 68814 - ] - ], - [ - [ - 68751, - 68751 - ], - "mapped", - [ - 68815 - ] - ], - [ - [ - 68752, - 68752 - ], - "mapped", - [ - 68816 - ] - ], - [ - [ - 68753, - 68753 - ], - "mapped", - [ - 68817 - ] - ], - [ - [ - 68754, - 68754 - ], - "mapped", - [ - 68818 - ] - ], - [ - [ - 68755, - 68755 - ], - "mapped", - [ - 68819 - ] - ], - [ - [ - 68756, - 68756 - ], - "mapped", - [ - 68820 - ] - ], - [ - [ - 68757, - 68757 - ], - "mapped", - [ - 68821 - ] - ], - [ - [ - 68758, - 68758 - ], - "mapped", - [ - 68822 - ] - ], - [ - [ - 68759, - 68759 - ], - "mapped", - [ - 68823 - ] - ], - [ - [ - 68760, - 68760 - ], - "mapped", - [ - 68824 - ] - ], - [ - [ - 68761, - 68761 - ], - "mapped", - [ - 68825 - ] - ], - [ - [ - 68762, - 68762 - ], - "mapped", - [ - 68826 - ] - ], - [ - [ - 68763, - 68763 - ], - "mapped", - [ - 68827 - ] - ], - [ - [ - 68764, - 68764 - ], - "mapped", - [ - 68828 - ] - ], - [ - [ - 68765, - 68765 - ], - "mapped", - [ - 68829 - ] - ], - [ - [ - 68766, - 68766 - ], - "mapped", - [ - 68830 - ] - ], - [ - [ - 68767, - 68767 - ], - "mapped", - [ - 68831 - ] - ], - [ - [ - 68768, - 68768 - ], - "mapped", - [ - 68832 - ] - ], - [ - [ - 68769, - 68769 - ], - "mapped", - [ - 68833 - ] - ], - [ - [ - 68770, - 68770 - ], - "mapped", - [ - 68834 - ] - ], - [ - [ - 68771, - 68771 - ], - "mapped", - [ - 68835 - ] - ], - [ - [ - 68772, - 68772 - ], - "mapped", - [ - 68836 - ] - ], - [ - [ - 68773, - 68773 - ], - "mapped", - [ - 68837 - ] - ], - [ - [ - 68774, - 68774 - ], - "mapped", - [ - 68838 - ] - ], - [ - [ - 68775, - 68775 - ], - "mapped", - [ - 68839 - ] - ], - [ - [ - 68776, - 68776 - ], - "mapped", - [ - 68840 - ] - ], - [ - [ - 68777, - 68777 - ], - "mapped", - [ - 68841 - ] - ], - [ - [ - 68778, - 68778 - ], - "mapped", - [ - 68842 - ] - ], - [ - [ - 68779, - 68779 - ], - "mapped", - [ - 68843 - ] - ], - [ - [ - 68780, - 68780 - ], - "mapped", - [ - 68844 - ] - ], - [ - [ - 68781, - 68781 - ], - "mapped", - [ - 68845 - ] - ], - [ - [ - 68782, - 68782 - ], - "mapped", - [ - 68846 - ] - ], - [ - [ - 68783, - 68783 - ], - "mapped", - [ - 68847 - ] - ], - [ - [ - 68784, - 68784 - ], - "mapped", - [ - 68848 - ] - ], - [ - [ - 68785, - 68785 - ], - "mapped", - [ - 68849 - ] - ], - [ - [ - 68786, - 68786 - ], - "mapped", - [ - 68850 - ] - ], - [ - [ - 68787, - 68799 - ], - "disallowed" - ], - [ - [ - 68800, - 68850 - ], - "valid" - ], - [ - [ - 68851, - 68857 - ], - "disallowed" - ], - [ - [ - 68858, - 68863 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 68864, - 69215 - ], - "disallowed" - ], - [ - [ - 69216, - 69246 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69247, - 69631 - ], - "disallowed" - ], - [ - [ - 69632, - 69702 - ], - "valid" - ], - [ - [ - 69703, - 69709 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69710, - 69713 - ], - "disallowed" - ], - [ - [ - 69714, - 69733 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69734, - 69743 - ], - "valid" - ], - [ - [ - 69744, - 69758 - ], - "disallowed" - ], - [ - [ - 69759, - 69759 - ], - "valid" - ], - [ - [ - 69760, - 69818 - ], - "valid" - ], - [ - [ - 69819, - 69820 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69821, - 69821 - ], - "disallowed" - ], - [ - [ - 69822, - 69825 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69826, - 69839 - ], - "disallowed" - ], - [ - [ - 69840, - 69864 - ], - "valid" - ], - [ - [ - 69865, - 69871 - ], - "disallowed" - ], - [ - [ - 69872, - 69881 - ], - "valid" - ], - [ - [ - 69882, - 69887 - ], - "disallowed" - ], - [ - [ - 69888, - 69940 - ], - "valid" - ], - [ - [ - 69941, - 69941 - ], - "disallowed" - ], - [ - [ - 69942, - 69951 - ], - "valid" - ], - [ - [ - 69952, - 69955 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 69956, - 69967 - ], - "disallowed" - ], - [ - [ - 69968, - 70003 - ], - "valid" - ], - [ - [ - 70004, - 70005 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70006, - 70006 - ], - "valid" - ], - [ - [ - 70007, - 70015 - ], - "disallowed" - ], - [ - [ - 70016, - 70084 - ], - "valid" - ], - [ - [ - 70085, - 70088 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70089, - 70089 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70090, - 70092 - ], - "valid" - ], - [ - [ - 70093, - 70093 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70094, - 70095 - ], - "disallowed" - ], - [ - [ - 70096, - 70105 - ], - "valid" - ], - [ - [ - 70106, - 70106 - ], - "valid" - ], - [ - [ - 70107, - 70107 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70108, - 70108 - ], - "valid" - ], - [ - [ - 70109, - 70111 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70112, - 70112 - ], - "disallowed" - ], - [ - [ - 70113, - 70132 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70133, - 70143 - ], - "disallowed" - ], - [ - [ - 70144, - 70161 - ], - "valid" - ], - [ - [ - 70162, - 70162 - ], - "disallowed" - ], - [ - [ - 70163, - 70199 - ], - "valid" - ], - [ - [ - 70200, - 70205 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70206, - 70271 - ], - "disallowed" - ], - [ - [ - 70272, - 70278 - ], - "valid" - ], - [ - [ - 70279, - 70279 - ], - "disallowed" - ], - [ - [ - 70280, - 70280 - ], - "valid" - ], - [ - [ - 70281, - 70281 - ], - "disallowed" - ], - [ - [ - 70282, - 70285 - ], - "valid" - ], - [ - [ - 70286, - 70286 - ], - "disallowed" - ], - [ - [ - 70287, - 70301 - ], - "valid" - ], - [ - [ - 70302, - 70302 - ], - "disallowed" - ], - [ - [ - 70303, - 70312 - ], - "valid" - ], - [ - [ - 70313, - 70313 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70314, - 70319 - ], - "disallowed" - ], - [ - [ - 70320, - 70378 - ], - "valid" - ], - [ - [ - 70379, - 70383 - ], - "disallowed" - ], - [ - [ - 70384, - 70393 - ], - "valid" - ], - [ - [ - 70394, - 70399 - ], - "disallowed" - ], - [ - [ - 70400, - 70400 - ], - "valid" - ], - [ - [ - 70401, - 70403 - ], - "valid" - ], - [ - [ - 70404, - 70404 - ], - "disallowed" - ], - [ - [ - 70405, - 70412 - ], - "valid" - ], - [ - [ - 70413, - 70414 - ], - "disallowed" - ], - [ - [ - 70415, - 70416 - ], - "valid" - ], - [ - [ - 70417, - 70418 - ], - "disallowed" - ], - [ - [ - 70419, - 70440 - ], - "valid" - ], - [ - [ - 70441, - 70441 - ], - "disallowed" - ], - [ - [ - 70442, - 70448 - ], - "valid" - ], - [ - [ - 70449, - 70449 - ], - "disallowed" - ], - [ - [ - 70450, - 70451 - ], - "valid" - ], - [ - [ - 70452, - 70452 - ], - "disallowed" - ], - [ - [ - 70453, - 70457 - ], - "valid" - ], - [ - [ - 70458, - 70459 - ], - "disallowed" - ], - [ - [ - 70460, - 70468 - ], - "valid" - ], - [ - [ - 70469, - 70470 - ], - "disallowed" - ], - [ - [ - 70471, - 70472 - ], - "valid" - ], - [ - [ - 70473, - 70474 - ], - "disallowed" - ], - [ - [ - 70475, - 70477 - ], - "valid" - ], - [ - [ - 70478, - 70479 - ], - "disallowed" - ], - [ - [ - 70480, - 70480 - ], - "valid" - ], - [ - [ - 70481, - 70486 - ], - "disallowed" - ], - [ - [ - 70487, - 70487 - ], - "valid" - ], - [ - [ - 70488, - 70492 - ], - "disallowed" - ], - [ - [ - 70493, - 70499 - ], - "valid" - ], - [ - [ - 70500, - 70501 - ], - "disallowed" - ], - [ - [ - 70502, - 70508 - ], - "valid" - ], - [ - [ - 70509, - 70511 - ], - "disallowed" - ], - [ - [ - 70512, - 70516 - ], - "valid" - ], - [ - [ - 70517, - 70783 - ], - "disallowed" - ], - [ - [ - 70784, - 70853 - ], - "valid" - ], - [ - [ - 70854, - 70854 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 70855, - 70855 - ], - "valid" - ], - [ - [ - 70856, - 70863 - ], - "disallowed" - ], - [ - [ - 70864, - 70873 - ], - "valid" - ], - [ - [ - 70874, - 71039 - ], - "disallowed" - ], - [ - [ - 71040, - 71093 - ], - "valid" - ], - [ - [ - 71094, - 71095 - ], - "disallowed" - ], - [ - [ - 71096, - 71104 - ], - "valid" - ], - [ - [ - 71105, - 71113 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 71114, - 71127 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 71128, - 71133 - ], - "valid" - ], - [ - [ - 71134, - 71167 - ], - "disallowed" - ], - [ - [ - 71168, - 71232 - ], - "valid" - ], - [ - [ - 71233, - 71235 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 71236, - 71236 - ], - "valid" - ], - [ - [ - 71237, - 71247 - ], - "disallowed" - ], - [ - [ - 71248, - 71257 - ], - "valid" - ], - [ - [ - 71258, - 71295 - ], - "disallowed" - ], - [ - [ - 71296, - 71351 - ], - "valid" - ], - [ - [ - 71352, - 71359 - ], - "disallowed" - ], - [ - [ - 71360, - 71369 - ], - "valid" - ], - [ - [ - 71370, - 71423 - ], - "disallowed" - ], - [ - [ - 71424, - 71449 - ], - "valid" - ], - [ - [ - 71450, - 71452 - ], - "disallowed" - ], - [ - [ - 71453, - 71467 - ], - "valid" - ], - [ - [ - 71468, - 71471 - ], - "disallowed" - ], - [ - [ - 71472, - 71481 - ], - "valid" - ], - [ - [ - 71482, - 71487 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 71488, - 71839 - ], - "disallowed" - ], - [ - [ - 71840, - 71840 - ], - "mapped", - [ - 71872 - ] - ], - [ - [ - 71841, - 71841 - ], - "mapped", - [ - 71873 - ] - ], - [ - [ - 71842, - 71842 - ], - "mapped", - [ - 71874 - ] - ], - [ - [ - 71843, - 71843 - ], - "mapped", - [ - 71875 - ] - ], - [ - [ - 71844, - 71844 - ], - "mapped", - [ - 71876 - ] - ], - [ - [ - 71845, - 71845 - ], - "mapped", - [ - 71877 - ] - ], - [ - [ - 71846, - 71846 - ], - "mapped", - [ - 71878 - ] - ], - [ - [ - 71847, - 71847 - ], - "mapped", - [ - 71879 - ] - ], - [ - [ - 71848, - 71848 - ], - "mapped", - [ - 71880 - ] - ], - [ - [ - 71849, - 71849 - ], - "mapped", - [ - 71881 - ] - ], - [ - [ - 71850, - 71850 - ], - "mapped", - [ - 71882 - ] - ], - [ - [ - 71851, - 71851 - ], - "mapped", - [ - 71883 - ] - ], - [ - [ - 71852, - 71852 - ], - "mapped", - [ - 71884 - ] - ], - [ - [ - 71853, - 71853 - ], - "mapped", - [ - 71885 - ] - ], - [ - [ - 71854, - 71854 - ], - "mapped", - [ - 71886 - ] - ], - [ - [ - 71855, - 71855 - ], - "mapped", - [ - 71887 - ] - ], - [ - [ - 71856, - 71856 - ], - "mapped", - [ - 71888 - ] - ], - [ - [ - 71857, - 71857 - ], - "mapped", - [ - 71889 - ] - ], - [ - [ - 71858, - 71858 - ], - "mapped", - [ - 71890 - ] - ], - [ - [ - 71859, - 71859 - ], - "mapped", - [ - 71891 - ] - ], - [ - [ - 71860, - 71860 - ], - "mapped", - [ - 71892 - ] - ], - [ - [ - 71861, - 71861 - ], - "mapped", - [ - 71893 - ] - ], - [ - [ - 71862, - 71862 - ], - "mapped", - [ - 71894 - ] - ], - [ - [ - 71863, - 71863 - ], - "mapped", - [ - 71895 - ] - ], - [ - [ - 71864, - 71864 - ], - "mapped", - [ - 71896 - ] - ], - [ - [ - 71865, - 71865 - ], - "mapped", - [ - 71897 - ] - ], - [ - [ - 71866, - 71866 - ], - "mapped", - [ - 71898 - ] - ], - [ - [ - 71867, - 71867 - ], - "mapped", - [ - 71899 - ] - ], - [ - [ - 71868, - 71868 - ], - "mapped", - [ - 71900 - ] - ], - [ - [ - 71869, - 71869 - ], - "mapped", - [ - 71901 - ] - ], - [ - [ - 71870, - 71870 - ], - "mapped", - [ - 71902 - ] - ], - [ - [ - 71871, - 71871 - ], - "mapped", - [ - 71903 - ] - ], - [ - [ - 71872, - 71913 - ], - "valid" - ], - [ - [ - 71914, - 71922 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 71923, - 71934 - ], - "disallowed" - ], - [ - [ - 71935, - 71935 - ], - "valid" - ], - [ - [ - 71936, - 72383 - ], - "disallowed" - ], - [ - [ - 72384, - 72440 - ], - "valid" - ], - [ - [ - 72441, - 73727 - ], - "disallowed" - ], - [ - [ - 73728, - 74606 - ], - "valid" - ], - [ - [ - 74607, - 74648 - ], - "valid" - ], - [ - [ - 74649, - 74649 - ], - "valid" - ], - [ - [ - 74650, - 74751 - ], - "disallowed" - ], - [ - [ - 74752, - 74850 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 74851, - 74862 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 74863, - 74863 - ], - "disallowed" - ], - [ - [ - 74864, - 74867 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 74868, - 74868 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 74869, - 74879 - ], - "disallowed" - ], - [ - [ - 74880, - 75075 - ], - "valid" - ], - [ - [ - 75076, - 77823 - ], - "disallowed" - ], - [ - [ - 77824, - 78894 - ], - "valid" - ], - [ - [ - 78895, - 82943 - ], - "disallowed" - ], - [ - [ - 82944, - 83526 - ], - "valid" - ], - [ - [ - 83527, - 92159 - ], - "disallowed" - ], - [ - [ - 92160, - 92728 - ], - "valid" - ], - [ - [ - 92729, - 92735 - ], - "disallowed" - ], - [ - [ - 92736, - 92766 - ], - "valid" - ], - [ - [ - 92767, - 92767 - ], - "disallowed" - ], - [ - [ - 92768, - 92777 - ], - "valid" - ], - [ - [ - 92778, - 92781 - ], - "disallowed" - ], - [ - [ - 92782, - 92783 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 92784, - 92879 - ], - "disallowed" - ], - [ - [ - 92880, - 92909 - ], - "valid" - ], - [ - [ - 92910, - 92911 - ], - "disallowed" - ], - [ - [ - 92912, - 92916 - ], - "valid" - ], - [ - [ - 92917, - 92917 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 92918, - 92927 - ], - "disallowed" - ], - [ - [ - 92928, - 92982 - ], - "valid" - ], - [ - [ - 92983, - 92991 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 92992, - 92995 - ], - "valid" - ], - [ - [ - 92996, - 92997 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 92998, - 93007 - ], - "disallowed" - ], - [ - [ - 93008, - 93017 - ], - "valid" - ], - [ - [ - 93018, - 93018 - ], - "disallowed" - ], - [ - [ - 93019, - 93025 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 93026, - 93026 - ], - "disallowed" - ], - [ - [ - 93027, - 93047 - ], - "valid" - ], - [ - [ - 93048, - 93052 - ], - "disallowed" - ], - [ - [ - 93053, - 93071 - ], - "valid" - ], - [ - [ - 93072, - 93951 - ], - "disallowed" - ], - [ - [ - 93952, - 94020 - ], - "valid" - ], - [ - [ - 94021, - 94031 - ], - "disallowed" - ], - [ - [ - 94032, - 94078 - ], - "valid" - ], - [ - [ - 94079, - 94094 - ], - "disallowed" - ], - [ - [ - 94095, - 94111 - ], - "valid" - ], - [ - [ - 94112, - 110591 - ], - "disallowed" - ], - [ - [ - 110592, - 110593 - ], - "valid" - ], - [ - [ - 110594, - 113663 - ], - "disallowed" - ], - [ - [ - 113664, - 113770 - ], - "valid" - ], - [ - [ - 113771, - 113775 - ], - "disallowed" - ], - [ - [ - 113776, - 113788 - ], - "valid" - ], - [ - [ - 113789, - 113791 - ], - "disallowed" - ], - [ - [ - 113792, - 113800 - ], - "valid" - ], - [ - [ - 113801, - 113807 - ], - "disallowed" - ], - [ - [ - 113808, - 113817 - ], - "valid" - ], - [ - [ - 113818, - 113819 - ], - "disallowed" - ], - [ - [ - 113820, - 113820 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 113821, - 113822 - ], - "valid" - ], - [ - [ - 113823, - 113823 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 113824, - 113827 - ], - "ignored" - ], - [ - [ - 113828, - 118783 - ], - "disallowed" - ], - [ - [ - 118784, - 119029 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119030, - 119039 - ], - "disallowed" - ], - [ - [ - 119040, - 119078 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119079, - 119080 - ], - "disallowed" - ], - [ - [ - 119081, - 119081 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119082, - 119133 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119134, - 119134 - ], - "mapped", - [ - 119127, - 119141 - ] - ], - [ - [ - 119135, - 119135 - ], - "mapped", - [ - 119128, - 119141 - ] - ], - [ - [ - 119136, - 119136 - ], - "mapped", - [ - 119128, - 119141, - 119150 - ] - ], - [ - [ - 119137, - 119137 - ], - "mapped", - [ - 119128, - 119141, - 119151 - ] - ], - [ - [ - 119138, - 119138 - ], - "mapped", - [ - 119128, - 119141, - 119152 - ] - ], - [ - [ - 119139, - 119139 - ], - "mapped", - [ - 119128, - 119141, - 119153 - ] - ], - [ - [ - 119140, - 119140 - ], - "mapped", - [ - 119128, - 119141, - 119154 - ] - ], - [ - [ - 119141, - 119154 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119155, - 119162 - ], - "disallowed" - ], - [ - [ - 119163, - 119226 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119227, - 119227 - ], - "mapped", - [ - 119225, - 119141 - ] - ], - [ - [ - 119228, - 119228 - ], - "mapped", - [ - 119226, - 119141 - ] - ], - [ - [ - 119229, - 119229 - ], - "mapped", - [ - 119225, - 119141, - 119150 - ] - ], - [ - [ - 119230, - 119230 - ], - "mapped", - [ - 119226, - 119141, - 119150 - ] - ], - [ - [ - 119231, - 119231 - ], - "mapped", - [ - 119225, - 119141, - 119151 - ] - ], - [ - [ - 119232, - 119232 - ], - "mapped", - [ - 119226, - 119141, - 119151 - ] - ], - [ - [ - 119233, - 119261 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119262, - 119272 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119273, - 119295 - ], - "disallowed" - ], - [ - [ - 119296, - 119365 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119366, - 119551 - ], - "disallowed" - ], - [ - [ - 119552, - 119638 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119639, - 119647 - ], - "disallowed" - ], - [ - [ - 119648, - 119665 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 119666, - 119807 - ], - "disallowed" - ], - [ - [ - 119808, - 119808 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119809, - 119809 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119810, - 119810 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119811, - 119811 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119812, - 119812 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119813, - 119813 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119814, - 119814 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119815, - 119815 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119816, - 119816 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119817, - 119817 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119818, - 119818 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119819, - 119819 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119820, - 119820 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119821, - 119821 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119822, - 119822 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119823, - 119823 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119824, - 119824 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119825, - 119825 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119826, - 119826 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119827, - 119827 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119828, - 119828 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119829, - 119829 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119830, - 119830 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119831, - 119831 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119832, - 119832 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119833, - 119833 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119834, - 119834 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119835, - 119835 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119836, - 119836 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119837, - 119837 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119838, - 119838 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119839, - 119839 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119840, - 119840 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119841, - 119841 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119842, - 119842 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119843, - 119843 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119844, - 119844 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119845, - 119845 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119846, - 119846 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119847, - 119847 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119848, - 119848 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119849, - 119849 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119850, - 119850 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119851, - 119851 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119852, - 119852 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119853, - 119853 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119854, - 119854 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119855, - 119855 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119856, - 119856 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119857, - 119857 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119858, - 119858 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119859, - 119859 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119860, - 119860 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119861, - 119861 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119862, - 119862 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119863, - 119863 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119864, - 119864 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119865, - 119865 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119866, - 119866 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119867, - 119867 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119868, - 119868 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119869, - 119869 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119870, - 119870 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119871, - 119871 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119872, - 119872 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119873, - 119873 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119874, - 119874 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119875, - 119875 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119876, - 119876 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119877, - 119877 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119878, - 119878 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119879, - 119879 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119880, - 119880 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119881, - 119881 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119882, - 119882 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119883, - 119883 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119884, - 119884 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119885, - 119885 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119886, - 119886 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119887, - 119887 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119888, - 119888 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119889, - 119889 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119890, - 119890 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119891, - 119891 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119892, - 119892 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119893, - 119893 - ], - "disallowed" - ], - [ - [ - 119894, - 119894 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119895, - 119895 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119896, - 119896 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119897, - 119897 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119898, - 119898 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119899, - 119899 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119900, - 119900 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119901, - 119901 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119902, - 119902 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119903, - 119903 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119904, - 119904 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119905, - 119905 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119906, - 119906 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119907, - 119907 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119908, - 119908 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119909, - 119909 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119910, - 119910 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119911, - 119911 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119912, - 119912 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119913, - 119913 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119914, - 119914 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119915, - 119915 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119916, - 119916 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119917, - 119917 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119918, - 119918 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119919, - 119919 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119920, - 119920 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119921, - 119921 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119922, - 119922 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119923, - 119923 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119924, - 119924 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119925, - 119925 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119926, - 119926 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119927, - 119927 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119928, - 119928 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119929, - 119929 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119930, - 119930 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119931, - 119931 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119932, - 119932 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119933, - 119933 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119934, - 119934 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119935, - 119935 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119936, - 119936 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119937, - 119937 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119938, - 119938 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119939, - 119939 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119940, - 119940 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119941, - 119941 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119942, - 119942 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 119943, - 119943 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119944, - 119944 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119945, - 119945 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119946, - 119946 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119947, - 119947 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119948, - 119948 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119949, - 119949 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 119950, - 119950 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 119951, - 119951 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119952, - 119952 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119953, - 119953 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119954, - 119954 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119955, - 119955 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 119956, - 119956 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119957, - 119957 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119958, - 119958 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119959, - 119959 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119960, - 119960 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119961, - 119961 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119962, - 119962 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119963, - 119963 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119964, - 119964 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119965, - 119965 - ], - "disallowed" - ], - [ - [ - 119966, - 119966 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119967, - 119967 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119968, - 119969 - ], - "disallowed" - ], - [ - [ - 119970, - 119970 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 119971, - 119972 - ], - "disallowed" - ], - [ - [ - 119973, - 119973 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 119974, - 119974 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 119975, - 119976 - ], - "disallowed" - ], - [ - [ - 119977, - 119977 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 119978, - 119978 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 119979, - 119979 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 119980, - 119980 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 119981, - 119981 - ], - "disallowed" - ], - [ - [ - 119982, - 119982 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 119983, - 119983 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 119984, - 119984 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 119985, - 119985 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 119986, - 119986 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 119987, - 119987 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 119988, - 119988 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 119989, - 119989 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 119990, - 119990 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 119991, - 119991 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 119992, - 119992 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 119993, - 119993 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 119994, - 119994 - ], - "disallowed" - ], - [ - [ - 119995, - 119995 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 119996, - 119996 - ], - "disallowed" - ], - [ - [ - 119997, - 119997 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 119998, - 119998 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 119999, - 119999 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120000, - 120000 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120001, - 120001 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120002, - 120002 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120003, - 120003 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120004, - 120004 - ], - "disallowed" - ], - [ - [ - 120005, - 120005 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120006, - 120006 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120007, - 120007 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120008, - 120008 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120009, - 120009 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120010, - 120010 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120011, - 120011 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120012, - 120012 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120013, - 120013 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120014, - 120014 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120015, - 120015 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120016, - 120016 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120017, - 120017 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120018, - 120018 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120019, - 120019 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120020, - 120020 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120021, - 120021 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120022, - 120022 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120023, - 120023 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120024, - 120024 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120025, - 120025 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120026, - 120026 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120027, - 120027 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120028, - 120028 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120029, - 120029 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120030, - 120030 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120031, - 120031 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120032, - 120032 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120033, - 120033 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120034, - 120034 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120035, - 120035 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120036, - 120036 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120037, - 120037 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120038, - 120038 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120039, - 120039 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120040, - 120040 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120041, - 120041 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120042, - 120042 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120043, - 120043 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120044, - 120044 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120045, - 120045 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120046, - 120046 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120047, - 120047 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120048, - 120048 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120049, - 120049 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120050, - 120050 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120051, - 120051 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120052, - 120052 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120053, - 120053 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120054, - 120054 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120055, - 120055 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120056, - 120056 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120057, - 120057 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120058, - 120058 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120059, - 120059 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120060, - 120060 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120061, - 120061 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120062, - 120062 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120063, - 120063 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120064, - 120064 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120065, - 120065 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120066, - 120066 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120067, - 120067 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120068, - 120068 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120069, - 120069 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120070, - 120070 - ], - "disallowed" - ], - [ - [ - 120071, - 120071 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120072, - 120072 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120073, - 120073 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120074, - 120074 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120075, - 120076 - ], - "disallowed" - ], - [ - [ - 120077, - 120077 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120078, - 120078 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120079, - 120079 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120080, - 120080 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120081, - 120081 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120082, - 120082 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120083, - 120083 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120084, - 120084 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120085, - 120085 - ], - "disallowed" - ], - [ - [ - 120086, - 120086 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120087, - 120087 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120088, - 120088 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120089, - 120089 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120090, - 120090 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120091, - 120091 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120092, - 120092 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120093, - 120093 - ], - "disallowed" - ], - [ - [ - 120094, - 120094 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120095, - 120095 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120096, - 120096 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120097, - 120097 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120098, - 120098 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120099, - 120099 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120100, - 120100 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120101, - 120101 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120102, - 120102 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120103, - 120103 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120104, - 120104 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120105, - 120105 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120106, - 120106 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120107, - 120107 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120108, - 120108 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120109, - 120109 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120110, - 120110 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120111, - 120111 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120112, - 120112 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120113, - 120113 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120114, - 120114 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120115, - 120115 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120116, - 120116 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120117, - 120117 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120118, - 120118 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120119, - 120119 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120120, - 120120 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120121, - 120121 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120122, - 120122 - ], - "disallowed" - ], - [ - [ - 120123, - 120123 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120124, - 120124 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120125, - 120125 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120126, - 120126 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120127, - 120127 - ], - "disallowed" - ], - [ - [ - 120128, - 120128 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120129, - 120129 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120130, - 120130 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120131, - 120131 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120132, - 120132 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120133, - 120133 - ], - "disallowed" - ], - [ - [ - 120134, - 120134 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120135, - 120137 - ], - "disallowed" - ], - [ - [ - 120138, - 120138 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120139, - 120139 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120140, - 120140 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120141, - 120141 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120142, - 120142 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120143, - 120143 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120144, - 120144 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120145, - 120145 - ], - "disallowed" - ], - [ - [ - 120146, - 120146 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120147, - 120147 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120148, - 120148 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120149, - 120149 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120150, - 120150 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120151, - 120151 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120152, - 120152 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120153, - 120153 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120154, - 120154 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120155, - 120155 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120156, - 120156 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120157, - 120157 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120158, - 120158 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120159, - 120159 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120160, - 120160 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120161, - 120161 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120162, - 120162 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120163, - 120163 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120164, - 120164 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120165, - 120165 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120166, - 120166 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120167, - 120167 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120168, - 120168 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120169, - 120169 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120170, - 120170 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120171, - 120171 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120172, - 120172 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120173, - 120173 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120174, - 120174 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120175, - 120175 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120176, - 120176 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120177, - 120177 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120178, - 120178 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120179, - 120179 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120180, - 120180 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120181, - 120181 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120182, - 120182 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120183, - 120183 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120184, - 120184 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120185, - 120185 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120186, - 120186 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120187, - 120187 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120188, - 120188 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120189, - 120189 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120190, - 120190 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120191, - 120191 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120192, - 120192 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120193, - 120193 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120194, - 120194 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120195, - 120195 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120196, - 120196 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120197, - 120197 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120198, - 120198 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120199, - 120199 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120200, - 120200 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120201, - 120201 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120202, - 120202 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120203, - 120203 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120204, - 120204 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120205, - 120205 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120206, - 120206 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120207, - 120207 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120208, - 120208 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120209, - 120209 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120210, - 120210 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120211, - 120211 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120212, - 120212 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120213, - 120213 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120214, - 120214 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120215, - 120215 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120216, - 120216 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120217, - 120217 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120218, - 120218 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120219, - 120219 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120220, - 120220 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120221, - 120221 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120222, - 120222 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120223, - 120223 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120224, - 120224 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120225, - 120225 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120226, - 120226 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120227, - 120227 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120228, - 120228 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120229, - 120229 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120230, - 120230 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120231, - 120231 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120232, - 120232 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120233, - 120233 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120234, - 120234 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120235, - 120235 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120236, - 120236 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120237, - 120237 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120238, - 120238 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120239, - 120239 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120240, - 120240 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120241, - 120241 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120242, - 120242 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120243, - 120243 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120244, - 120244 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120245, - 120245 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120246, - 120246 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120247, - 120247 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120248, - 120248 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120249, - 120249 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120250, - 120250 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120251, - 120251 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120252, - 120252 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120253, - 120253 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120254, - 120254 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120255, - 120255 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120256, - 120256 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120257, - 120257 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120258, - 120258 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120259, - 120259 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120260, - 120260 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120261, - 120261 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120262, - 120262 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120263, - 120263 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120264, - 120264 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120265, - 120265 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120266, - 120266 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120267, - 120267 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120268, - 120268 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120269, - 120269 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120270, - 120270 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120271, - 120271 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120272, - 120272 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120273, - 120273 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120274, - 120274 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120275, - 120275 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120276, - 120276 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120277, - 120277 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120278, - 120278 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120279, - 120279 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120280, - 120280 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120281, - 120281 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120282, - 120282 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120283, - 120283 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120284, - 120284 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120285, - 120285 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120286, - 120286 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120287, - 120287 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120288, - 120288 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120289, - 120289 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120290, - 120290 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120291, - 120291 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120292, - 120292 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120293, - 120293 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120294, - 120294 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120295, - 120295 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120296, - 120296 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120297, - 120297 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120298, - 120298 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120299, - 120299 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120300, - 120300 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120301, - 120301 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120302, - 120302 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120303, - 120303 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120304, - 120304 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120305, - 120305 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120306, - 120306 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120307, - 120307 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120308, - 120308 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120309, - 120309 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120310, - 120310 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120311, - 120311 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120312, - 120312 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120313, - 120313 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120314, - 120314 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120315, - 120315 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120316, - 120316 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120317, - 120317 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120318, - 120318 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120319, - 120319 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120320, - 120320 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120321, - 120321 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120322, - 120322 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120323, - 120323 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120324, - 120324 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120325, - 120325 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120326, - 120326 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120327, - 120327 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120328, - 120328 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120329, - 120329 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120330, - 120330 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120331, - 120331 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120332, - 120332 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120333, - 120333 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120334, - 120334 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120335, - 120335 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120336, - 120336 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120337, - 120337 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120338, - 120338 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120339, - 120339 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120340, - 120340 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120341, - 120341 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120342, - 120342 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120343, - 120343 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120344, - 120344 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120345, - 120345 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120346, - 120346 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120347, - 120347 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120348, - 120348 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120349, - 120349 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120350, - 120350 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120351, - 120351 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120352, - 120352 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120353, - 120353 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120354, - 120354 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120355, - 120355 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120356, - 120356 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120357, - 120357 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120358, - 120358 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120359, - 120359 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120360, - 120360 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120361, - 120361 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120362, - 120362 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120363, - 120363 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120364, - 120364 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120365, - 120365 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120366, - 120366 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120367, - 120367 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120368, - 120368 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120369, - 120369 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120370, - 120370 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120371, - 120371 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120372, - 120372 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120373, - 120373 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120374, - 120374 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120375, - 120375 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120376, - 120376 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120377, - 120377 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120378, - 120378 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120379, - 120379 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120380, - 120380 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120381, - 120381 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120382, - 120382 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120383, - 120383 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120384, - 120384 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120385, - 120385 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120386, - 120386 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120387, - 120387 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120388, - 120388 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120389, - 120389 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120390, - 120390 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120391, - 120391 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120392, - 120392 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120393, - 120393 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120394, - 120394 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120395, - 120395 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120396, - 120396 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120397, - 120397 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120398, - 120398 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120399, - 120399 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120400, - 120400 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120401, - 120401 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120402, - 120402 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120403, - 120403 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120404, - 120404 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120405, - 120405 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120406, - 120406 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120407, - 120407 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120408, - 120408 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120409, - 120409 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120410, - 120410 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120411, - 120411 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120412, - 120412 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120413, - 120413 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120414, - 120414 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120415, - 120415 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120416, - 120416 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120417, - 120417 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120418, - 120418 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120419, - 120419 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120420, - 120420 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120421, - 120421 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120422, - 120422 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120423, - 120423 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120424, - 120424 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120425, - 120425 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120426, - 120426 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120427, - 120427 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120428, - 120428 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120429, - 120429 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120430, - 120430 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120431, - 120431 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120432, - 120432 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120433, - 120433 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120434, - 120434 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120435, - 120435 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120436, - 120436 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120437, - 120437 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120438, - 120438 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120439, - 120439 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120440, - 120440 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120441, - 120441 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120442, - 120442 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120443, - 120443 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120444, - 120444 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120445, - 120445 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120446, - 120446 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120447, - 120447 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120448, - 120448 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120449, - 120449 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120450, - 120450 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120451, - 120451 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120452, - 120452 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120453, - 120453 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120454, - 120454 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120455, - 120455 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120456, - 120456 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120457, - 120457 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120458, - 120458 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 120459, - 120459 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 120460, - 120460 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 120461, - 120461 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 120462, - 120462 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 120463, - 120463 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 120464, - 120464 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 120465, - 120465 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 120466, - 120466 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 120467, - 120467 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 120468, - 120468 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 120469, - 120469 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 120470, - 120470 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 120471, - 120471 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 120472, - 120472 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 120473, - 120473 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 120474, - 120474 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 120475, - 120475 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 120476, - 120476 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 120477, - 120477 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 120478, - 120478 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 120479, - 120479 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 120480, - 120480 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 120481, - 120481 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 120482, - 120482 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 120483, - 120483 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 120484, - 120484 - ], - "mapped", - [ - 305 - ] - ], - [ - [ - 120485, - 120485 - ], - "mapped", - [ - 567 - ] - ], - [ - [ - 120486, - 120487 - ], - "disallowed" - ], - [ - [ - 120488, - 120488 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120489, - 120489 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120490, - 120490 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120491, - 120491 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120492, - 120492 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120493, - 120493 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120494, - 120494 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120495, - 120495 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120496, - 120496 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120497, - 120497 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120498, - 120498 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120499, - 120499 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120500, - 120500 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120501, - 120501 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120502, - 120502 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120503, - 120503 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120504, - 120504 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120505, - 120505 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120506, - 120506 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120507, - 120507 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120508, - 120508 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120509, - 120509 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120510, - 120510 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120511, - 120511 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120512, - 120512 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120513, - 120513 - ], - "mapped", - [ - 8711 - ] - ], - [ - [ - 120514, - 120514 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120515, - 120515 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120516, - 120516 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120517, - 120517 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120518, - 120518 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120519, - 120519 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120520, - 120520 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120521, - 120521 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120522, - 120522 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120523, - 120523 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120524, - 120524 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120525, - 120525 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120526, - 120526 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120527, - 120527 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120528, - 120528 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120529, - 120529 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120530, - 120530 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120531, - 120532 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120533, - 120533 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120534, - 120534 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120535, - 120535 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120536, - 120536 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120537, - 120537 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120538, - 120538 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120539, - 120539 - ], - "mapped", - [ - 8706 - ] - ], - [ - [ - 120540, - 120540 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120541, - 120541 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120542, - 120542 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120543, - 120543 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120544, - 120544 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120545, - 120545 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120546, - 120546 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120547, - 120547 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120548, - 120548 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120549, - 120549 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120550, - 120550 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120551, - 120551 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120552, - 120552 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120553, - 120553 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120554, - 120554 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120555, - 120555 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120556, - 120556 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120557, - 120557 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120558, - 120558 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120559, - 120559 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120560, - 120560 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120561, - 120561 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120562, - 120562 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120563, - 120563 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120564, - 120564 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120565, - 120565 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120566, - 120566 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120567, - 120567 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120568, - 120568 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120569, - 120569 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120570, - 120570 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120571, - 120571 - ], - "mapped", - [ - 8711 - ] - ], - [ - [ - 120572, - 120572 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120573, - 120573 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120574, - 120574 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120575, - 120575 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120576, - 120576 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120577, - 120577 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120578, - 120578 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120579, - 120579 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120580, - 120580 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120581, - 120581 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120582, - 120582 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120583, - 120583 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120584, - 120584 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120585, - 120585 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120586, - 120586 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120587, - 120587 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120588, - 120588 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120589, - 120590 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120591, - 120591 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120592, - 120592 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120593, - 120593 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120594, - 120594 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120595, - 120595 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120596, - 120596 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120597, - 120597 - ], - "mapped", - [ - 8706 - ] - ], - [ - [ - 120598, - 120598 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120599, - 120599 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120600, - 120600 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120601, - 120601 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120602, - 120602 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120603, - 120603 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120604, - 120604 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120605, - 120605 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120606, - 120606 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120607, - 120607 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120608, - 120608 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120609, - 120609 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120610, - 120610 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120611, - 120611 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120612, - 120612 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120613, - 120613 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120614, - 120614 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120615, - 120615 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120616, - 120616 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120617, - 120617 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120618, - 120618 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120619, - 120619 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120620, - 120620 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120621, - 120621 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120622, - 120622 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120623, - 120623 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120624, - 120624 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120625, - 120625 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120626, - 120626 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120627, - 120627 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120628, - 120628 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120629, - 120629 - ], - "mapped", - [ - 8711 - ] - ], - [ - [ - 120630, - 120630 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120631, - 120631 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120632, - 120632 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120633, - 120633 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120634, - 120634 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120635, - 120635 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120636, - 120636 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120637, - 120637 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120638, - 120638 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120639, - 120639 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120640, - 120640 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120641, - 120641 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120642, - 120642 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120643, - 120643 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120644, - 120644 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120645, - 120645 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120646, - 120646 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120647, - 120648 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120649, - 120649 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120650, - 120650 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120651, - 120651 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120652, - 120652 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120653, - 120653 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120654, - 120654 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120655, - 120655 - ], - "mapped", - [ - 8706 - ] - ], - [ - [ - 120656, - 120656 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120657, - 120657 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120658, - 120658 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120659, - 120659 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120660, - 120660 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120661, - 120661 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120662, - 120662 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120663, - 120663 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120664, - 120664 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120665, - 120665 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120666, - 120666 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120667, - 120667 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120668, - 120668 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120669, - 120669 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120670, - 120670 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120671, - 120671 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120672, - 120672 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120673, - 120673 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120674, - 120674 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120675, - 120675 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120676, - 120676 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120677, - 120677 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120678, - 120678 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120679, - 120679 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120680, - 120680 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120681, - 120681 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120682, - 120682 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120683, - 120683 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120684, - 120684 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120685, - 120685 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120686, - 120686 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120687, - 120687 - ], - "mapped", - [ - 8711 - ] - ], - [ - [ - 120688, - 120688 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120689, - 120689 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120690, - 120690 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120691, - 120691 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120692, - 120692 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120693, - 120693 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120694, - 120694 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120695, - 120695 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120696, - 120696 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120697, - 120697 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120698, - 120698 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120699, - 120699 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120700, - 120700 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120701, - 120701 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120702, - 120702 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120703, - 120703 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120704, - 120704 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120705, - 120706 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120707, - 120707 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120708, - 120708 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120709, - 120709 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120710, - 120710 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120711, - 120711 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120712, - 120712 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120713, - 120713 - ], - "mapped", - [ - 8706 - ] - ], - [ - [ - 120714, - 120714 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120715, - 120715 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120716, - 120716 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120717, - 120717 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120718, - 120718 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120719, - 120719 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120720, - 120720 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120721, - 120721 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120722, - 120722 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120723, - 120723 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120724, - 120724 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120725, - 120725 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120726, - 120726 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120727, - 120727 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120728, - 120728 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120729, - 120729 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120730, - 120730 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120731, - 120731 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120732, - 120732 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120733, - 120733 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120734, - 120734 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120735, - 120735 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120736, - 120736 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120737, - 120737 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120738, - 120738 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120739, - 120739 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120740, - 120740 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120741, - 120741 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120742, - 120742 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120743, - 120743 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120744, - 120744 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120745, - 120745 - ], - "mapped", - [ - 8711 - ] - ], - [ - [ - 120746, - 120746 - ], - "mapped", - [ - 945 - ] - ], - [ - [ - 120747, - 120747 - ], - "mapped", - [ - 946 - ] - ], - [ - [ - 120748, - 120748 - ], - "mapped", - [ - 947 - ] - ], - [ - [ - 120749, - 120749 - ], - "mapped", - [ - 948 - ] - ], - [ - [ - 120750, - 120750 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120751, - 120751 - ], - "mapped", - [ - 950 - ] - ], - [ - [ - 120752, - 120752 - ], - "mapped", - [ - 951 - ] - ], - [ - [ - 120753, - 120753 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120754, - 120754 - ], - "mapped", - [ - 953 - ] - ], - [ - [ - 120755, - 120755 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120756, - 120756 - ], - "mapped", - [ - 955 - ] - ], - [ - [ - 120757, - 120757 - ], - "mapped", - [ - 956 - ] - ], - [ - [ - 120758, - 120758 - ], - "mapped", - [ - 957 - ] - ], - [ - [ - 120759, - 120759 - ], - "mapped", - [ - 958 - ] - ], - [ - [ - 120760, - 120760 - ], - "mapped", - [ - 959 - ] - ], - [ - [ - 120761, - 120761 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120762, - 120762 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120763, - 120764 - ], - "mapped", - [ - 963 - ] - ], - [ - [ - 120765, - 120765 - ], - "mapped", - [ - 964 - ] - ], - [ - [ - 120766, - 120766 - ], - "mapped", - [ - 965 - ] - ], - [ - [ - 120767, - 120767 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120768, - 120768 - ], - "mapped", - [ - 967 - ] - ], - [ - [ - 120769, - 120769 - ], - "mapped", - [ - 968 - ] - ], - [ - [ - 120770, - 120770 - ], - "mapped", - [ - 969 - ] - ], - [ - [ - 120771, - 120771 - ], - "mapped", - [ - 8706 - ] - ], - [ - [ - 120772, - 120772 - ], - "mapped", - [ - 949 - ] - ], - [ - [ - 120773, - 120773 - ], - "mapped", - [ - 952 - ] - ], - [ - [ - 120774, - 120774 - ], - "mapped", - [ - 954 - ] - ], - [ - [ - 120775, - 120775 - ], - "mapped", - [ - 966 - ] - ], - [ - [ - 120776, - 120776 - ], - "mapped", - [ - 961 - ] - ], - [ - [ - 120777, - 120777 - ], - "mapped", - [ - 960 - ] - ], - [ - [ - 120778, - 120779 - ], - "mapped", - [ - 989 - ] - ], - [ - [ - 120780, - 120781 - ], - "disallowed" - ], - [ - [ - 120782, - 120782 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 120783, - 120783 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 120784, - 120784 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 120785, - 120785 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 120786, - 120786 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 120787, - 120787 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 120788, - 120788 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 120789, - 120789 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 120790, - 120790 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 120791, - 120791 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 120792, - 120792 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 120793, - 120793 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 120794, - 120794 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 120795, - 120795 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 120796, - 120796 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 120797, - 120797 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 120798, - 120798 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 120799, - 120799 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 120800, - 120800 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 120801, - 120801 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 120802, - 120802 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 120803, - 120803 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 120804, - 120804 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 120805, - 120805 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 120806, - 120806 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 120807, - 120807 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 120808, - 120808 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 120809, - 120809 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 120810, - 120810 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 120811, - 120811 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 120812, - 120812 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 120813, - 120813 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 120814, - 120814 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 120815, - 120815 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 120816, - 120816 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 120817, - 120817 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 120818, - 120818 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 120819, - 120819 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 120820, - 120820 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 120821, - 120821 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 120822, - 120822 - ], - "mapped", - [ - 48 - ] - ], - [ - [ - 120823, - 120823 - ], - "mapped", - [ - 49 - ] - ], - [ - [ - 120824, - 120824 - ], - "mapped", - [ - 50 - ] - ], - [ - [ - 120825, - 120825 - ], - "mapped", - [ - 51 - ] - ], - [ - [ - 120826, - 120826 - ], - "mapped", - [ - 52 - ] - ], - [ - [ - 120827, - 120827 - ], - "mapped", - [ - 53 - ] - ], - [ - [ - 120828, - 120828 - ], - "mapped", - [ - 54 - ] - ], - [ - [ - 120829, - 120829 - ], - "mapped", - [ - 55 - ] - ], - [ - [ - 120830, - 120830 - ], - "mapped", - [ - 56 - ] - ], - [ - [ - 120831, - 120831 - ], - "mapped", - [ - 57 - ] - ], - [ - [ - 120832, - 121343 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 121344, - 121398 - ], - "valid" - ], - [ - [ - 121399, - 121402 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 121403, - 121452 - ], - "valid" - ], - [ - [ - 121453, - 121460 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 121461, - 121461 - ], - "valid" - ], - [ - [ - 121462, - 121475 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 121476, - 121476 - ], - "valid" - ], - [ - [ - 121477, - 121483 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 121484, - 121498 - ], - "disallowed" - ], - [ - [ - 121499, - 121503 - ], - "valid" - ], - [ - [ - 121504, - 121504 - ], - "disallowed" - ], - [ - [ - 121505, - 121519 - ], - "valid" - ], - [ - [ - 121520, - 124927 - ], - "disallowed" - ], - [ - [ - 124928, - 125124 - ], - "valid" - ], - [ - [ - 125125, - 125126 - ], - "disallowed" - ], - [ - [ - 125127, - 125135 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 125136, - 125142 - ], - "valid" - ], - [ - [ - 125143, - 126463 - ], - "disallowed" - ], - [ - [ - 126464, - 126464 - ], - "mapped", - [ - 1575 - ] - ], - [ - [ - 126465, - 126465 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 126466, - 126466 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126467, - 126467 - ], - "mapped", - [ - 1583 - ] - ], - [ - [ - 126468, - 126468 - ], - "disallowed" - ], - [ - [ - 126469, - 126469 - ], - "mapped", - [ - 1608 - ] - ], - [ - [ - 126470, - 126470 - ], - "mapped", - [ - 1586 - ] - ], - [ - [ - 126471, - 126471 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126472, - 126472 - ], - "mapped", - [ - 1591 - ] - ], - [ - [ - 126473, - 126473 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126474, - 126474 - ], - "mapped", - [ - 1603 - ] - ], - [ - [ - 126475, - 126475 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 126476, - 126476 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 126477, - 126477 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126478, - 126478 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126479, - 126479 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126480, - 126480 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 126481, - 126481 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126482, - 126482 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126483, - 126483 - ], - "mapped", - [ - 1585 - ] - ], - [ - [ - 126484, - 126484 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126485, - 126485 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 126486, - 126486 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 126487, - 126487 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126488, - 126488 - ], - "mapped", - [ - 1584 - ] - ], - [ - [ - 126489, - 126489 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126490, - 126490 - ], - "mapped", - [ - 1592 - ] - ], - [ - [ - 126491, - 126491 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126492, - 126492 - ], - "mapped", - [ - 1646 - ] - ], - [ - [ - 126493, - 126493 - ], - "mapped", - [ - 1722 - ] - ], - [ - [ - 126494, - 126494 - ], - "mapped", - [ - 1697 - ] - ], - [ - [ - 126495, - 126495 - ], - "mapped", - [ - 1647 - ] - ], - [ - [ - 126496, - 126496 - ], - "disallowed" - ], - [ - [ - 126497, - 126497 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 126498, - 126498 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126499, - 126499 - ], - "disallowed" - ], - [ - [ - 126500, - 126500 - ], - "mapped", - [ - 1607 - ] - ], - [ - [ - 126501, - 126502 - ], - "disallowed" - ], - [ - [ - 126503, - 126503 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126504, - 126504 - ], - "disallowed" - ], - [ - [ - 126505, - 126505 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126506, - 126506 - ], - "mapped", - [ - 1603 - ] - ], - [ - [ - 126507, - 126507 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 126508, - 126508 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 126509, - 126509 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126510, - 126510 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126511, - 126511 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126512, - 126512 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 126513, - 126513 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126514, - 126514 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126515, - 126515 - ], - "disallowed" - ], - [ - [ - 126516, - 126516 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126517, - 126517 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 126518, - 126518 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 126519, - 126519 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126520, - 126520 - ], - "disallowed" - ], - [ - [ - 126521, - 126521 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126522, - 126522 - ], - "disallowed" - ], - [ - [ - 126523, - 126523 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126524, - 126529 - ], - "disallowed" - ], - [ - [ - 126530, - 126530 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126531, - 126534 - ], - "disallowed" - ], - [ - [ - 126535, - 126535 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126536, - 126536 - ], - "disallowed" - ], - [ - [ - 126537, - 126537 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126538, - 126538 - ], - "disallowed" - ], - [ - [ - 126539, - 126539 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 126540, - 126540 - ], - "disallowed" - ], - [ - [ - 126541, - 126541 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126542, - 126542 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126543, - 126543 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126544, - 126544 - ], - "disallowed" - ], - [ - [ - 126545, - 126545 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126546, - 126546 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126547, - 126547 - ], - "disallowed" - ], - [ - [ - 126548, - 126548 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126549, - 126550 - ], - "disallowed" - ], - [ - [ - 126551, - 126551 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126552, - 126552 - ], - "disallowed" - ], - [ - [ - 126553, - 126553 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126554, - 126554 - ], - "disallowed" - ], - [ - [ - 126555, - 126555 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126556, - 126556 - ], - "disallowed" - ], - [ - [ - 126557, - 126557 - ], - "mapped", - [ - 1722 - ] - ], - [ - [ - 126558, - 126558 - ], - "disallowed" - ], - [ - [ - 126559, - 126559 - ], - "mapped", - [ - 1647 - ] - ], - [ - [ - 126560, - 126560 - ], - "disallowed" - ], - [ - [ - 126561, - 126561 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 126562, - 126562 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126563, - 126563 - ], - "disallowed" - ], - [ - [ - 126564, - 126564 - ], - "mapped", - [ - 1607 - ] - ], - [ - [ - 126565, - 126566 - ], - "disallowed" - ], - [ - [ - 126567, - 126567 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126568, - 126568 - ], - "mapped", - [ - 1591 - ] - ], - [ - [ - 126569, - 126569 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126570, - 126570 - ], - "mapped", - [ - 1603 - ] - ], - [ - [ - 126571, - 126571 - ], - "disallowed" - ], - [ - [ - 126572, - 126572 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 126573, - 126573 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126574, - 126574 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126575, - 126575 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126576, - 126576 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 126577, - 126577 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126578, - 126578 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126579, - 126579 - ], - "disallowed" - ], - [ - [ - 126580, - 126580 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126581, - 126581 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 126582, - 126582 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 126583, - 126583 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126584, - 126584 - ], - "disallowed" - ], - [ - [ - 126585, - 126585 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126586, - 126586 - ], - "mapped", - [ - 1592 - ] - ], - [ - [ - 126587, - 126587 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126588, - 126588 - ], - "mapped", - [ - 1646 - ] - ], - [ - [ - 126589, - 126589 - ], - "disallowed" - ], - [ - [ - 126590, - 126590 - ], - "mapped", - [ - 1697 - ] - ], - [ - [ - 126591, - 126591 - ], - "disallowed" - ], - [ - [ - 126592, - 126592 - ], - "mapped", - [ - 1575 - ] - ], - [ - [ - 126593, - 126593 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 126594, - 126594 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126595, - 126595 - ], - "mapped", - [ - 1583 - ] - ], - [ - [ - 126596, - 126596 - ], - "mapped", - [ - 1607 - ] - ], - [ - [ - 126597, - 126597 - ], - "mapped", - [ - 1608 - ] - ], - [ - [ - 126598, - 126598 - ], - "mapped", - [ - 1586 - ] - ], - [ - [ - 126599, - 126599 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126600, - 126600 - ], - "mapped", - [ - 1591 - ] - ], - [ - [ - 126601, - 126601 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126602, - 126602 - ], - "disallowed" - ], - [ - [ - 126603, - 126603 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 126604, - 126604 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 126605, - 126605 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126606, - 126606 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126607, - 126607 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126608, - 126608 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 126609, - 126609 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126610, - 126610 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126611, - 126611 - ], - "mapped", - [ - 1585 - ] - ], - [ - [ - 126612, - 126612 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126613, - 126613 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 126614, - 126614 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 126615, - 126615 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126616, - 126616 - ], - "mapped", - [ - 1584 - ] - ], - [ - [ - 126617, - 126617 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126618, - 126618 - ], - "mapped", - [ - 1592 - ] - ], - [ - [ - 126619, - 126619 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126620, - 126624 - ], - "disallowed" - ], - [ - [ - 126625, - 126625 - ], - "mapped", - [ - 1576 - ] - ], - [ - [ - 126626, - 126626 - ], - "mapped", - [ - 1580 - ] - ], - [ - [ - 126627, - 126627 - ], - "mapped", - [ - 1583 - ] - ], - [ - [ - 126628, - 126628 - ], - "disallowed" - ], - [ - [ - 126629, - 126629 - ], - "mapped", - [ - 1608 - ] - ], - [ - [ - 126630, - 126630 - ], - "mapped", - [ - 1586 - ] - ], - [ - [ - 126631, - 126631 - ], - "mapped", - [ - 1581 - ] - ], - [ - [ - 126632, - 126632 - ], - "mapped", - [ - 1591 - ] - ], - [ - [ - 126633, - 126633 - ], - "mapped", - [ - 1610 - ] - ], - [ - [ - 126634, - 126634 - ], - "disallowed" - ], - [ - [ - 126635, - 126635 - ], - "mapped", - [ - 1604 - ] - ], - [ - [ - 126636, - 126636 - ], - "mapped", - [ - 1605 - ] - ], - [ - [ - 126637, - 126637 - ], - "mapped", - [ - 1606 - ] - ], - [ - [ - 126638, - 126638 - ], - "mapped", - [ - 1587 - ] - ], - [ - [ - 126639, - 126639 - ], - "mapped", - [ - 1593 - ] - ], - [ - [ - 126640, - 126640 - ], - "mapped", - [ - 1601 - ] - ], - [ - [ - 126641, - 126641 - ], - "mapped", - [ - 1589 - ] - ], - [ - [ - 126642, - 126642 - ], - "mapped", - [ - 1602 - ] - ], - [ - [ - 126643, - 126643 - ], - "mapped", - [ - 1585 - ] - ], - [ - [ - 126644, - 126644 - ], - "mapped", - [ - 1588 - ] - ], - [ - [ - 126645, - 126645 - ], - "mapped", - [ - 1578 - ] - ], - [ - [ - 126646, - 126646 - ], - "mapped", - [ - 1579 - ] - ], - [ - [ - 126647, - 126647 - ], - "mapped", - [ - 1582 - ] - ], - [ - [ - 126648, - 126648 - ], - "mapped", - [ - 1584 - ] - ], - [ - [ - 126649, - 126649 - ], - "mapped", - [ - 1590 - ] - ], - [ - [ - 126650, - 126650 - ], - "mapped", - [ - 1592 - ] - ], - [ - [ - 126651, - 126651 - ], - "mapped", - [ - 1594 - ] - ], - [ - [ - 126652, - 126703 - ], - "disallowed" - ], - [ - [ - 126704, - 126705 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 126706, - 126975 - ], - "disallowed" - ], - [ - [ - 126976, - 127019 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127020, - 127023 - ], - "disallowed" - ], - [ - [ - 127024, - 127123 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127124, - 127135 - ], - "disallowed" - ], - [ - [ - 127136, - 127150 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127151, - 127152 - ], - "disallowed" - ], - [ - [ - 127153, - 127166 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127167, - 127167 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127168, - 127168 - ], - "disallowed" - ], - [ - [ - 127169, - 127183 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127184, - 127184 - ], - "disallowed" - ], - [ - [ - 127185, - 127199 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127200, - 127221 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127222, - 127231 - ], - "disallowed" - ], - [ - [ - 127232, - 127232 - ], - "disallowed" - ], - [ - [ - 127233, - 127233 - ], - "disallowed_STD3_mapped", - [ - 48, - 44 - ] - ], - [ - [ - 127234, - 127234 - ], - "disallowed_STD3_mapped", - [ - 49, - 44 - ] - ], - [ - [ - 127235, - 127235 - ], - "disallowed_STD3_mapped", - [ - 50, - 44 - ] - ], - [ - [ - 127236, - 127236 - ], - "disallowed_STD3_mapped", - [ - 51, - 44 - ] - ], - [ - [ - 127237, - 127237 - ], - "disallowed_STD3_mapped", - [ - 52, - 44 - ] - ], - [ - [ - 127238, - 127238 - ], - "disallowed_STD3_mapped", - [ - 53, - 44 - ] - ], - [ - [ - 127239, - 127239 - ], - "disallowed_STD3_mapped", - [ - 54, - 44 - ] - ], - [ - [ - 127240, - 127240 - ], - "disallowed_STD3_mapped", - [ - 55, - 44 - ] - ], - [ - [ - 127241, - 127241 - ], - "disallowed_STD3_mapped", - [ - 56, - 44 - ] - ], - [ - [ - 127242, - 127242 - ], - "disallowed_STD3_mapped", - [ - 57, - 44 - ] - ], - [ - [ - 127243, - 127244 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127245, - 127247 - ], - "disallowed" - ], - [ - [ - 127248, - 127248 - ], - "disallowed_STD3_mapped", - [ - 40, - 97, - 41 - ] - ], - [ - [ - 127249, - 127249 - ], - "disallowed_STD3_mapped", - [ - 40, - 98, - 41 - ] - ], - [ - [ - 127250, - 127250 - ], - "disallowed_STD3_mapped", - [ - 40, - 99, - 41 - ] - ], - [ - [ - 127251, - 127251 - ], - "disallowed_STD3_mapped", - [ - 40, - 100, - 41 - ] - ], - [ - [ - 127252, - 127252 - ], - "disallowed_STD3_mapped", - [ - 40, - 101, - 41 - ] - ], - [ - [ - 127253, - 127253 - ], - "disallowed_STD3_mapped", - [ - 40, - 102, - 41 - ] - ], - [ - [ - 127254, - 127254 - ], - "disallowed_STD3_mapped", - [ - 40, - 103, - 41 - ] - ], - [ - [ - 127255, - 127255 - ], - "disallowed_STD3_mapped", - [ - 40, - 104, - 41 - ] - ], - [ - [ - 127256, - 127256 - ], - "disallowed_STD3_mapped", - [ - 40, - 105, - 41 - ] - ], - [ - [ - 127257, - 127257 - ], - "disallowed_STD3_mapped", - [ - 40, - 106, - 41 - ] - ], - [ - [ - 127258, - 127258 - ], - "disallowed_STD3_mapped", - [ - 40, - 107, - 41 - ] - ], - [ - [ - 127259, - 127259 - ], - "disallowed_STD3_mapped", - [ - 40, - 108, - 41 - ] - ], - [ - [ - 127260, - 127260 - ], - "disallowed_STD3_mapped", - [ - 40, - 109, - 41 - ] - ], - [ - [ - 127261, - 127261 - ], - "disallowed_STD3_mapped", - [ - 40, - 110, - 41 - ] - ], - [ - [ - 127262, - 127262 - ], - "disallowed_STD3_mapped", - [ - 40, - 111, - 41 - ] - ], - [ - [ - 127263, - 127263 - ], - "disallowed_STD3_mapped", - [ - 40, - 112, - 41 - ] - ], - [ - [ - 127264, - 127264 - ], - "disallowed_STD3_mapped", - [ - 40, - 113, - 41 - ] - ], - [ - [ - 127265, - 127265 - ], - "disallowed_STD3_mapped", - [ - 40, - 114, - 41 - ] - ], - [ - [ - 127266, - 127266 - ], - "disallowed_STD3_mapped", - [ - 40, - 115, - 41 - ] - ], - [ - [ - 127267, - 127267 - ], - "disallowed_STD3_mapped", - [ - 40, - 116, - 41 - ] - ], - [ - [ - 127268, - 127268 - ], - "disallowed_STD3_mapped", - [ - 40, - 117, - 41 - ] - ], - [ - [ - 127269, - 127269 - ], - "disallowed_STD3_mapped", - [ - 40, - 118, - 41 - ] - ], - [ - [ - 127270, - 127270 - ], - "disallowed_STD3_mapped", - [ - 40, - 119, - 41 - ] - ], - [ - [ - 127271, - 127271 - ], - "disallowed_STD3_mapped", - [ - 40, - 120, - 41 - ] - ], - [ - [ - 127272, - 127272 - ], - "disallowed_STD3_mapped", - [ - 40, - 121, - 41 - ] - ], - [ - [ - 127273, - 127273 - ], - "disallowed_STD3_mapped", - [ - 40, - 122, - 41 - ] - ], - [ - [ - 127274, - 127274 - ], - "mapped", - [ - 12308, - 115, - 12309 - ] - ], - [ - [ - 127275, - 127275 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 127276, - 127276 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 127277, - 127277 - ], - "mapped", - [ - 99, - 100 - ] - ], - [ - [ - 127278, - 127278 - ], - "mapped", - [ - 119, - 122 - ] - ], - [ - [ - 127279, - 127279 - ], - "disallowed" - ], - [ - [ - 127280, - 127280 - ], - "mapped", - [ - 97 - ] - ], - [ - [ - 127281, - 127281 - ], - "mapped", - [ - 98 - ] - ], - [ - [ - 127282, - 127282 - ], - "mapped", - [ - 99 - ] - ], - [ - [ - 127283, - 127283 - ], - "mapped", - [ - 100 - ] - ], - [ - [ - 127284, - 127284 - ], - "mapped", - [ - 101 - ] - ], - [ - [ - 127285, - 127285 - ], - "mapped", - [ - 102 - ] - ], - [ - [ - 127286, - 127286 - ], - "mapped", - [ - 103 - ] - ], - [ - [ - 127287, - 127287 - ], - "mapped", - [ - 104 - ] - ], - [ - [ - 127288, - 127288 - ], - "mapped", - [ - 105 - ] - ], - [ - [ - 127289, - 127289 - ], - "mapped", - [ - 106 - ] - ], - [ - [ - 127290, - 127290 - ], - "mapped", - [ - 107 - ] - ], - [ - [ - 127291, - 127291 - ], - "mapped", - [ - 108 - ] - ], - [ - [ - 127292, - 127292 - ], - "mapped", - [ - 109 - ] - ], - [ - [ - 127293, - 127293 - ], - "mapped", - [ - 110 - ] - ], - [ - [ - 127294, - 127294 - ], - "mapped", - [ - 111 - ] - ], - [ - [ - 127295, - 127295 - ], - "mapped", - [ - 112 - ] - ], - [ - [ - 127296, - 127296 - ], - "mapped", - [ - 113 - ] - ], - [ - [ - 127297, - 127297 - ], - "mapped", - [ - 114 - ] - ], - [ - [ - 127298, - 127298 - ], - "mapped", - [ - 115 - ] - ], - [ - [ - 127299, - 127299 - ], - "mapped", - [ - 116 - ] - ], - [ - [ - 127300, - 127300 - ], - "mapped", - [ - 117 - ] - ], - [ - [ - 127301, - 127301 - ], - "mapped", - [ - 118 - ] - ], - [ - [ - 127302, - 127302 - ], - "mapped", - [ - 119 - ] - ], - [ - [ - 127303, - 127303 - ], - "mapped", - [ - 120 - ] - ], - [ - [ - 127304, - 127304 - ], - "mapped", - [ - 121 - ] - ], - [ - [ - 127305, - 127305 - ], - "mapped", - [ - 122 - ] - ], - [ - [ - 127306, - 127306 - ], - "mapped", - [ - 104, - 118 - ] - ], - [ - [ - 127307, - 127307 - ], - "mapped", - [ - 109, - 118 - ] - ], - [ - [ - 127308, - 127308 - ], - "mapped", - [ - 115, - 100 - ] - ], - [ - [ - 127309, - 127309 - ], - "mapped", - [ - 115, - 115 - ] - ], - [ - [ - 127310, - 127310 - ], - "mapped", - [ - 112, - 112, - 118 - ] - ], - [ - [ - 127311, - 127311 - ], - "mapped", - [ - 119, - 99 - ] - ], - [ - [ - 127312, - 127318 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127319, - 127319 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127320, - 127326 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127327, - 127327 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127328, - 127337 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127338, - 127338 - ], - "mapped", - [ - 109, - 99 - ] - ], - [ - [ - 127339, - 127339 - ], - "mapped", - [ - 109, - 100 - ] - ], - [ - [ - 127340, - 127343 - ], - "disallowed" - ], - [ - [ - 127344, - 127352 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127353, - 127353 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127354, - 127354 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127355, - 127356 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127357, - 127358 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127359, - 127359 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127360, - 127369 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127370, - 127373 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127374, - 127375 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127376, - 127376 - ], - "mapped", - [ - 100, - 106 - ] - ], - [ - [ - 127377, - 127386 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127387, - 127461 - ], - "disallowed" - ], - [ - [ - 127462, - 127487 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127488, - 127488 - ], - "mapped", - [ - 12411, - 12363 - ] - ], - [ - [ - 127489, - 127489 - ], - "mapped", - [ - 12467, - 12467 - ] - ], - [ - [ - 127490, - 127490 - ], - "mapped", - [ - 12469 - ] - ], - [ - [ - 127491, - 127503 - ], - "disallowed" - ], - [ - [ - 127504, - 127504 - ], - "mapped", - [ - 25163 - ] - ], - [ - [ - 127505, - 127505 - ], - "mapped", - [ - 23383 - ] - ], - [ - [ - 127506, - 127506 - ], - "mapped", - [ - 21452 - ] - ], - [ - [ - 127507, - 127507 - ], - "mapped", - [ - 12487 - ] - ], - [ - [ - 127508, - 127508 - ], - "mapped", - [ - 20108 - ] - ], - [ - [ - 127509, - 127509 - ], - "mapped", - [ - 22810 - ] - ], - [ - [ - 127510, - 127510 - ], - "mapped", - [ - 35299 - ] - ], - [ - [ - 127511, - 127511 - ], - "mapped", - [ - 22825 - ] - ], - [ - [ - 127512, - 127512 - ], - "mapped", - [ - 20132 - ] - ], - [ - [ - 127513, - 127513 - ], - "mapped", - [ - 26144 - ] - ], - [ - [ - 127514, - 127514 - ], - "mapped", - [ - 28961 - ] - ], - [ - [ - 127515, - 127515 - ], - "mapped", - [ - 26009 - ] - ], - [ - [ - 127516, - 127516 - ], - "mapped", - [ - 21069 - ] - ], - [ - [ - 127517, - 127517 - ], - "mapped", - [ - 24460 - ] - ], - [ - [ - 127518, - 127518 - ], - "mapped", - [ - 20877 - ] - ], - [ - [ - 127519, - 127519 - ], - "mapped", - [ - 26032 - ] - ], - [ - [ - 127520, - 127520 - ], - "mapped", - [ - 21021 - ] - ], - [ - [ - 127521, - 127521 - ], - "mapped", - [ - 32066 - ] - ], - [ - [ - 127522, - 127522 - ], - "mapped", - [ - 29983 - ] - ], - [ - [ - 127523, - 127523 - ], - "mapped", - [ - 36009 - ] - ], - [ - [ - 127524, - 127524 - ], - "mapped", - [ - 22768 - ] - ], - [ - [ - 127525, - 127525 - ], - "mapped", - [ - 21561 - ] - ], - [ - [ - 127526, - 127526 - ], - "mapped", - [ - 28436 - ] - ], - [ - [ - 127527, - 127527 - ], - "mapped", - [ - 25237 - ] - ], - [ - [ - 127528, - 127528 - ], - "mapped", - [ - 25429 - ] - ], - [ - [ - 127529, - 127529 - ], - "mapped", - [ - 19968 - ] - ], - [ - [ - 127530, - 127530 - ], - "mapped", - [ - 19977 - ] - ], - [ - [ - 127531, - 127531 - ], - "mapped", - [ - 36938 - ] - ], - [ - [ - 127532, - 127532 - ], - "mapped", - [ - 24038 - ] - ], - [ - [ - 127533, - 127533 - ], - "mapped", - [ - 20013 - ] - ], - [ - [ - 127534, - 127534 - ], - "mapped", - [ - 21491 - ] - ], - [ - [ - 127535, - 127535 - ], - "mapped", - [ - 25351 - ] - ], - [ - [ - 127536, - 127536 - ], - "mapped", - [ - 36208 - ] - ], - [ - [ - 127537, - 127537 - ], - "mapped", - [ - 25171 - ] - ], - [ - [ - 127538, - 127538 - ], - "mapped", - [ - 31105 - ] - ], - [ - [ - 127539, - 127539 - ], - "mapped", - [ - 31354 - ] - ], - [ - [ - 127540, - 127540 - ], - "mapped", - [ - 21512 - ] - ], - [ - [ - 127541, - 127541 - ], - "mapped", - [ - 28288 - ] - ], - [ - [ - 127542, - 127542 - ], - "mapped", - [ - 26377 - ] - ], - [ - [ - 127543, - 127543 - ], - "mapped", - [ - 26376 - ] - ], - [ - [ - 127544, - 127544 - ], - "mapped", - [ - 30003 - ] - ], - [ - [ - 127545, - 127545 - ], - "mapped", - [ - 21106 - ] - ], - [ - [ - 127546, - 127546 - ], - "mapped", - [ - 21942 - ] - ], - [ - [ - 127547, - 127551 - ], - "disallowed" - ], - [ - [ - 127552, - 127552 - ], - "mapped", - [ - 12308, - 26412, - 12309 - ] - ], - [ - [ - 127553, - 127553 - ], - "mapped", - [ - 12308, - 19977, - 12309 - ] - ], - [ - [ - 127554, - 127554 - ], - "mapped", - [ - 12308, - 20108, - 12309 - ] - ], - [ - [ - 127555, - 127555 - ], - "mapped", - [ - 12308, - 23433, - 12309 - ] - ], - [ - [ - 127556, - 127556 - ], - "mapped", - [ - 12308, - 28857, - 12309 - ] - ], - [ - [ - 127557, - 127557 - ], - "mapped", - [ - 12308, - 25171, - 12309 - ] - ], - [ - [ - 127558, - 127558 - ], - "mapped", - [ - 12308, - 30423, - 12309 - ] - ], - [ - [ - 127559, - 127559 - ], - "mapped", - [ - 12308, - 21213, - 12309 - ] - ], - [ - [ - 127560, - 127560 - ], - "mapped", - [ - 12308, - 25943, - 12309 - ] - ], - [ - [ - 127561, - 127567 - ], - "disallowed" - ], - [ - [ - 127568, - 127568 - ], - "mapped", - [ - 24471 - ] - ], - [ - [ - 127569, - 127569 - ], - "mapped", - [ - 21487 - ] - ], - [ - [ - 127570, - 127743 - ], - "disallowed" - ], - [ - [ - 127744, - 127776 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127777, - 127788 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127789, - 127791 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127792, - 127797 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127798, - 127798 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127799, - 127868 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127869, - 127869 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127870, - 127871 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127872, - 127891 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127892, - 127903 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127904, - 127940 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127941, - 127941 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127942, - 127946 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127947, - 127950 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127951, - 127955 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127956, - 127967 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127968, - 127984 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127985, - 127991 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 127992, - 127999 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128000, - 128062 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128063, - 128063 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128064, - 128064 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128065, - 128065 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128066, - 128247 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128248, - 128248 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128249, - 128252 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128253, - 128254 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128255, - 128255 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128256, - 128317 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128318, - 128319 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128320, - 128323 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128324, - 128330 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128331, - 128335 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128336, - 128359 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128360, - 128377 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128378, - 128378 - ], - "disallowed" - ], - [ - [ - 128379, - 128419 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128420, - 128420 - ], - "disallowed" - ], - [ - [ - 128421, - 128506 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128507, - 128511 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128512, - 128512 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128513, - 128528 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128529, - 128529 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128530, - 128532 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128533, - 128533 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128534, - 128534 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128535, - 128535 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128536, - 128536 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128537, - 128537 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128538, - 128538 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128539, - 128539 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128540, - 128542 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128543, - 128543 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128544, - 128549 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128550, - 128551 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128552, - 128555 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128556, - 128556 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128557, - 128557 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128558, - 128559 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128560, - 128563 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128564, - 128564 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128565, - 128576 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128577, - 128578 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128579, - 128580 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128581, - 128591 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128592, - 128639 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128640, - 128709 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128710, - 128719 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128720, - 128720 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128721, - 128735 - ], - "disallowed" - ], - [ - [ - 128736, - 128748 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128749, - 128751 - ], - "disallowed" - ], - [ - [ - 128752, - 128755 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128756, - 128767 - ], - "disallowed" - ], - [ - [ - 128768, - 128883 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128884, - 128895 - ], - "disallowed" - ], - [ - [ - 128896, - 128980 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 128981, - 129023 - ], - "disallowed" - ], - [ - [ - 129024, - 129035 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129036, - 129039 - ], - "disallowed" - ], - [ - [ - 129040, - 129095 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129096, - 129103 - ], - "disallowed" - ], - [ - [ - 129104, - 129113 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129114, - 129119 - ], - "disallowed" - ], - [ - [ - 129120, - 129159 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129160, - 129167 - ], - "disallowed" - ], - [ - [ - 129168, - 129197 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129198, - 129295 - ], - "disallowed" - ], - [ - [ - 129296, - 129304 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129305, - 129407 - ], - "disallowed" - ], - [ - [ - 129408, - 129412 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129413, - 129471 - ], - "disallowed" - ], - [ - [ - 129472, - 129472 - ], - "valid", - [ - ], - "NV8" - ], - [ - [ - 129473, - 131069 - ], - "disallowed" - ], - [ - [ - 131070, - 131071 - ], - "disallowed" - ], - [ - [ - 131072, - 173782 - ], - "valid" - ], - [ - [ - 173783, - 173823 - ], - "disallowed" - ], - [ - [ - 173824, - 177972 - ], - "valid" - ], - [ - [ - 177973, - 177983 - ], - "disallowed" - ], - [ - [ - 177984, - 178205 - ], - "valid" - ], - [ - [ - 178206, - 178207 - ], - "disallowed" - ], - [ - [ - 178208, - 183969 - ], - "valid" - ], - [ - [ - 183970, - 194559 - ], - "disallowed" - ], - [ - [ - 194560, - 194560 - ], - "mapped", - [ - 20029 - ] - ], - [ - [ - 194561, - 194561 - ], - "mapped", - [ - 20024 - ] - ], - [ - [ - 194562, - 194562 - ], - "mapped", - [ - 20033 - ] - ], - [ - [ - 194563, - 194563 - ], - "mapped", - [ - 131362 - ] - ], - [ - [ - 194564, - 194564 - ], - "mapped", - [ - 20320 - ] - ], - [ - [ - 194565, - 194565 - ], - "mapped", - [ - 20398 - ] - ], - [ - [ - 194566, - 194566 - ], - "mapped", - [ - 20411 - ] - ], - [ - [ - 194567, - 194567 - ], - "mapped", - [ - 20482 - ] - ], - [ - [ - 194568, - 194568 - ], - "mapped", - [ - 20602 - ] - ], - [ - [ - 194569, - 194569 - ], - "mapped", - [ - 20633 - ] - ], - [ - [ - 194570, - 194570 - ], - "mapped", - [ - 20711 - ] - ], - [ - [ - 194571, - 194571 - ], - "mapped", - [ - 20687 - ] - ], - [ - [ - 194572, - 194572 - ], - "mapped", - [ - 13470 - ] - ], - [ - [ - 194573, - 194573 - ], - "mapped", - [ - 132666 - ] - ], - [ - [ - 194574, - 194574 - ], - "mapped", - [ - 20813 - ] - ], - [ - [ - 194575, - 194575 - ], - "mapped", - [ - 20820 - ] - ], - [ - [ - 194576, - 194576 - ], - "mapped", - [ - 20836 - ] - ], - [ - [ - 194577, - 194577 - ], - "mapped", - [ - 20855 - ] - ], - [ - [ - 194578, - 194578 - ], - "mapped", - [ - 132380 - ] - ], - [ - [ - 194579, - 194579 - ], - "mapped", - [ - 13497 - ] - ], - [ - [ - 194580, - 194580 - ], - "mapped", - [ - 20839 - ] - ], - [ - [ - 194581, - 194581 - ], - "mapped", - [ - 20877 - ] - ], - [ - [ - 194582, - 194582 - ], - "mapped", - [ - 132427 - ] - ], - [ - [ - 194583, - 194583 - ], - "mapped", - [ - 20887 - ] - ], - [ - [ - 194584, - 194584 - ], - "mapped", - [ - 20900 - ] - ], - [ - [ - 194585, - 194585 - ], - "mapped", - [ - 20172 - ] - ], - [ - [ - 194586, - 194586 - ], - "mapped", - [ - 20908 - ] - ], - [ - [ - 194587, - 194587 - ], - "mapped", - [ - 20917 - ] - ], - [ - [ - 194588, - 194588 - ], - "mapped", - [ - 168415 - ] - ], - [ - [ - 194589, - 194589 - ], - "mapped", - [ - 20981 - ] - ], - [ - [ - 194590, - 194590 - ], - "mapped", - [ - 20995 - ] - ], - [ - [ - 194591, - 194591 - ], - "mapped", - [ - 13535 - ] - ], - [ - [ - 194592, - 194592 - ], - "mapped", - [ - 21051 - ] - ], - [ - [ - 194593, - 194593 - ], - "mapped", - [ - 21062 - ] - ], - [ - [ - 194594, - 194594 - ], - "mapped", - [ - 21106 - ] - ], - [ - [ - 194595, - 194595 - ], - "mapped", - [ - 21111 - ] - ], - [ - [ - 194596, - 194596 - ], - "mapped", - [ - 13589 - ] - ], - [ - [ - 194597, - 194597 - ], - "mapped", - [ - 21191 - ] - ], - [ - [ - 194598, - 194598 - ], - "mapped", - [ - 21193 - ] - ], - [ - [ - 194599, - 194599 - ], - "mapped", - [ - 21220 - ] - ], - [ - [ - 194600, - 194600 - ], - "mapped", - [ - 21242 - ] - ], - [ - [ - 194601, - 194601 - ], - "mapped", - [ - 21253 - ] - ], - [ - [ - 194602, - 194602 - ], - "mapped", - [ - 21254 - ] - ], - [ - [ - 194603, - 194603 - ], - "mapped", - [ - 21271 - ] - ], - [ - [ - 194604, - 194604 - ], - "mapped", - [ - 21321 - ] - ], - [ - [ - 194605, - 194605 - ], - "mapped", - [ - 21329 - ] - ], - [ - [ - 194606, - 194606 - ], - "mapped", - [ - 21338 - ] - ], - [ - [ - 194607, - 194607 - ], - "mapped", - [ - 21363 - ] - ], - [ - [ - 194608, - 194608 - ], - "mapped", - [ - 21373 - ] - ], - [ - [ - 194609, - 194611 - ], - "mapped", - [ - 21375 - ] - ], - [ - [ - 194612, - 194612 - ], - "mapped", - [ - 133676 - ] - ], - [ - [ - 194613, - 194613 - ], - "mapped", - [ - 28784 - ] - ], - [ - [ - 194614, - 194614 - ], - "mapped", - [ - 21450 - ] - ], - [ - [ - 194615, - 194615 - ], - "mapped", - [ - 21471 - ] - ], - [ - [ - 194616, - 194616 - ], - "mapped", - [ - 133987 - ] - ], - [ - [ - 194617, - 194617 - ], - "mapped", - [ - 21483 - ] - ], - [ - [ - 194618, - 194618 - ], - "mapped", - [ - 21489 - ] - ], - [ - [ - 194619, - 194619 - ], - "mapped", - [ - 21510 - ] - ], - [ - [ - 194620, - 194620 - ], - "mapped", - [ - 21662 - ] - ], - [ - [ - 194621, - 194621 - ], - "mapped", - [ - 21560 - ] - ], - [ - [ - 194622, - 194622 - ], - "mapped", - [ - 21576 - ] - ], - [ - [ - 194623, - 194623 - ], - "mapped", - [ - 21608 - ] - ], - [ - [ - 194624, - 194624 - ], - "mapped", - [ - 21666 - ] - ], - [ - [ - 194625, - 194625 - ], - "mapped", - [ - 21750 - ] - ], - [ - [ - 194626, - 194626 - ], - "mapped", - [ - 21776 - ] - ], - [ - [ - 194627, - 194627 - ], - "mapped", - [ - 21843 - ] - ], - [ - [ - 194628, - 194628 - ], - "mapped", - [ - 21859 - ] - ], - [ - [ - 194629, - 194630 - ], - "mapped", - [ - 21892 - ] - ], - [ - [ - 194631, - 194631 - ], - "mapped", - [ - 21913 - ] - ], - [ - [ - 194632, - 194632 - ], - "mapped", - [ - 21931 - ] - ], - [ - [ - 194633, - 194633 - ], - "mapped", - [ - 21939 - ] - ], - [ - [ - 194634, - 194634 - ], - "mapped", - [ - 21954 - ] - ], - [ - [ - 194635, - 194635 - ], - "mapped", - [ - 22294 - ] - ], - [ - [ - 194636, - 194636 - ], - "mapped", - [ - 22022 - ] - ], - [ - [ - 194637, - 194637 - ], - "mapped", - [ - 22295 - ] - ], - [ - [ - 194638, - 194638 - ], - "mapped", - [ - 22097 - ] - ], - [ - [ - 194639, - 194639 - ], - "mapped", - [ - 22132 - ] - ], - [ - [ - 194640, - 194640 - ], - "mapped", - [ - 20999 - ] - ], - [ - [ - 194641, - 194641 - ], - "mapped", - [ - 22766 - ] - ], - [ - [ - 194642, - 194642 - ], - "mapped", - [ - 22478 - ] - ], - [ - [ - 194643, - 194643 - ], - "mapped", - [ - 22516 - ] - ], - [ - [ - 194644, - 194644 - ], - "mapped", - [ - 22541 - ] - ], - [ - [ - 194645, - 194645 - ], - "mapped", - [ - 22411 - ] - ], - [ - [ - 194646, - 194646 - ], - "mapped", - [ - 22578 - ] - ], - [ - [ - 194647, - 194647 - ], - "mapped", - [ - 22577 - ] - ], - [ - [ - 194648, - 194648 - ], - "mapped", - [ - 22700 - ] - ], - [ - [ - 194649, - 194649 - ], - "mapped", - [ - 136420 - ] - ], - [ - [ - 194650, - 194650 - ], - "mapped", - [ - 22770 - ] - ], - [ - [ - 194651, - 194651 - ], - "mapped", - [ - 22775 - ] - ], - [ - [ - 194652, - 194652 - ], - "mapped", - [ - 22790 - ] - ], - [ - [ - 194653, - 194653 - ], - "mapped", - [ - 22810 - ] - ], - [ - [ - 194654, - 194654 - ], - "mapped", - [ - 22818 - ] - ], - [ - [ - 194655, - 194655 - ], - "mapped", - [ - 22882 - ] - ], - [ - [ - 194656, - 194656 - ], - "mapped", - [ - 136872 - ] - ], - [ - [ - 194657, - 194657 - ], - "mapped", - [ - 136938 - ] - ], - [ - [ - 194658, - 194658 - ], - "mapped", - [ - 23020 - ] - ], - [ - [ - 194659, - 194659 - ], - "mapped", - [ - 23067 - ] - ], - [ - [ - 194660, - 194660 - ], - "mapped", - [ - 23079 - ] - ], - [ - [ - 194661, - 194661 - ], - "mapped", - [ - 23000 - ] - ], - [ - [ - 194662, - 194662 - ], - "mapped", - [ - 23142 - ] - ], - [ - [ - 194663, - 194663 - ], - "mapped", - [ - 14062 - ] - ], - [ - [ - 194664, - 194664 - ], - "disallowed" - ], - [ - [ - 194665, - 194665 - ], - "mapped", - [ - 23304 - ] - ], - [ - [ - 194666, - 194667 - ], - "mapped", - [ - 23358 - ] - ], - [ - [ - 194668, - 194668 - ], - "mapped", - [ - 137672 - ] - ], - [ - [ - 194669, - 194669 - ], - "mapped", - [ - 23491 - ] - ], - [ - [ - 194670, - 194670 - ], - "mapped", - [ - 23512 - ] - ], - [ - [ - 194671, - 194671 - ], - "mapped", - [ - 23527 - ] - ], - [ - [ - 194672, - 194672 - ], - "mapped", - [ - 23539 - ] - ], - [ - [ - 194673, - 194673 - ], - "mapped", - [ - 138008 - ] - ], - [ - [ - 194674, - 194674 - ], - "mapped", - [ - 23551 - ] - ], - [ - [ - 194675, - 194675 - ], - "mapped", - [ - 23558 - ] - ], - [ - [ - 194676, - 194676 - ], - "disallowed" - ], - [ - [ - 194677, - 194677 - ], - "mapped", - [ - 23586 - ] - ], - [ - [ - 194678, - 194678 - ], - "mapped", - [ - 14209 - ] - ], - [ - [ - 194679, - 194679 - ], - "mapped", - [ - 23648 - ] - ], - [ - [ - 194680, - 194680 - ], - "mapped", - [ - 23662 - ] - ], - [ - [ - 194681, - 194681 - ], - "mapped", - [ - 23744 - ] - ], - [ - [ - 194682, - 194682 - ], - "mapped", - [ - 23693 - ] - ], - [ - [ - 194683, - 194683 - ], - "mapped", - [ - 138724 - ] - ], - [ - [ - 194684, - 194684 - ], - "mapped", - [ - 23875 - ] - ], - [ - [ - 194685, - 194685 - ], - "mapped", - [ - 138726 - ] - ], - [ - [ - 194686, - 194686 - ], - "mapped", - [ - 23918 - ] - ], - [ - [ - 194687, - 194687 - ], - "mapped", - [ - 23915 - ] - ], - [ - [ - 194688, - 194688 - ], - "mapped", - [ - 23932 - ] - ], - [ - [ - 194689, - 194689 - ], - "mapped", - [ - 24033 - ] - ], - [ - [ - 194690, - 194690 - ], - "mapped", - [ - 24034 - ] - ], - [ - [ - 194691, - 194691 - ], - "mapped", - [ - 14383 - ] - ], - [ - [ - 194692, - 194692 - ], - "mapped", - [ - 24061 - ] - ], - [ - [ - 194693, - 194693 - ], - "mapped", - [ - 24104 - ] - ], - [ - [ - 194694, - 194694 - ], - "mapped", - [ - 24125 - ] - ], - [ - [ - 194695, - 194695 - ], - "mapped", - [ - 24169 - ] - ], - [ - [ - 194696, - 194696 - ], - "mapped", - [ - 14434 - ] - ], - [ - [ - 194697, - 194697 - ], - "mapped", - [ - 139651 - ] - ], - [ - [ - 194698, - 194698 - ], - "mapped", - [ - 14460 - ] - ], - [ - [ - 194699, - 194699 - ], - "mapped", - [ - 24240 - ] - ], - [ - [ - 194700, - 194700 - ], - "mapped", - [ - 24243 - ] - ], - [ - [ - 194701, - 194701 - ], - "mapped", - [ - 24246 - ] - ], - [ - [ - 194702, - 194702 - ], - "mapped", - [ - 24266 - ] - ], - [ - [ - 194703, - 194703 - ], - "mapped", - [ - 172946 - ] - ], - [ - [ - 194704, - 194704 - ], - "mapped", - [ - 24318 - ] - ], - [ - [ - 194705, - 194706 - ], - "mapped", - [ - 140081 - ] - ], - [ - [ - 194707, - 194707 - ], - "mapped", - [ - 33281 - ] - ], - [ - [ - 194708, - 194709 - ], - "mapped", - [ - 24354 - ] - ], - [ - [ - 194710, - 194710 - ], - "mapped", - [ - 14535 - ] - ], - [ - [ - 194711, - 194711 - ], - "mapped", - [ - 144056 - ] - ], - [ - [ - 194712, - 194712 - ], - "mapped", - [ - 156122 - ] - ], - [ - [ - 194713, - 194713 - ], - "mapped", - [ - 24418 - ] - ], - [ - [ - 194714, - 194714 - ], - "mapped", - [ - 24427 - ] - ], - [ - [ - 194715, - 194715 - ], - "mapped", - [ - 14563 - ] - ], - [ - [ - 194716, - 194716 - ], - "mapped", - [ - 24474 - ] - ], - [ - [ - 194717, - 194717 - ], - "mapped", - [ - 24525 - ] - ], - [ - [ - 194718, - 194718 - ], - "mapped", - [ - 24535 - ] - ], - [ - [ - 194719, - 194719 - ], - "mapped", - [ - 24569 - ] - ], - [ - [ - 194720, - 194720 - ], - "mapped", - [ - 24705 - ] - ], - [ - [ - 194721, - 194721 - ], - "mapped", - [ - 14650 - ] - ], - [ - [ - 194722, - 194722 - ], - "mapped", - [ - 14620 - ] - ], - [ - [ - 194723, - 194723 - ], - "mapped", - [ - 24724 - ] - ], - [ - [ - 194724, - 194724 - ], - "mapped", - [ - 141012 - ] - ], - [ - [ - 194725, - 194725 - ], - "mapped", - [ - 24775 - ] - ], - [ - [ - 194726, - 194726 - ], - "mapped", - [ - 24904 - ] - ], - [ - [ - 194727, - 194727 - ], - "mapped", - [ - 24908 - ] - ], - [ - [ - 194728, - 194728 - ], - "mapped", - [ - 24910 - ] - ], - [ - [ - 194729, - 194729 - ], - "mapped", - [ - 24908 - ] - ], - [ - [ - 194730, - 194730 - ], - "mapped", - [ - 24954 - ] - ], - [ - [ - 194731, - 194731 - ], - "mapped", - [ - 24974 - ] - ], - [ - [ - 194732, - 194732 - ], - "mapped", - [ - 25010 - ] - ], - [ - [ - 194733, - 194733 - ], - "mapped", - [ - 24996 - ] - ], - [ - [ - 194734, - 194734 - ], - "mapped", - [ - 25007 - ] - ], - [ - [ - 194735, - 194735 - ], - "mapped", - [ - 25054 - ] - ], - [ - [ - 194736, - 194736 - ], - "mapped", - [ - 25074 - ] - ], - [ - [ - 194737, - 194737 - ], - "mapped", - [ - 25078 - ] - ], - [ - [ - 194738, - 194738 - ], - "mapped", - [ - 25104 - ] - ], - [ - [ - 194739, - 194739 - ], - "mapped", - [ - 25115 - ] - ], - [ - [ - 194740, - 194740 - ], - "mapped", - [ - 25181 - ] - ], - [ - [ - 194741, - 194741 - ], - "mapped", - [ - 25265 - ] - ], - [ - [ - 194742, - 194742 - ], - "mapped", - [ - 25300 - ] - ], - [ - [ - 194743, - 194743 - ], - "mapped", - [ - 25424 - ] - ], - [ - [ - 194744, - 194744 - ], - "mapped", - [ - 142092 - ] - ], - [ - [ - 194745, - 194745 - ], - "mapped", - [ - 25405 - ] - ], - [ - [ - 194746, - 194746 - ], - "mapped", - [ - 25340 - ] - ], - [ - [ - 194747, - 194747 - ], - "mapped", - [ - 25448 - ] - ], - [ - [ - 194748, - 194748 - ], - "mapped", - [ - 25475 - ] - ], - [ - [ - 194749, - 194749 - ], - "mapped", - [ - 25572 - ] - ], - [ - [ - 194750, - 194750 - ], - "mapped", - [ - 142321 - ] - ], - [ - [ - 194751, - 194751 - ], - "mapped", - [ - 25634 - ] - ], - [ - [ - 194752, - 194752 - ], - "mapped", - [ - 25541 - ] - ], - [ - [ - 194753, - 194753 - ], - "mapped", - [ - 25513 - ] - ], - [ - [ - 194754, - 194754 - ], - "mapped", - [ - 14894 - ] - ], - [ - [ - 194755, - 194755 - ], - "mapped", - [ - 25705 - ] - ], - [ - [ - 194756, - 194756 - ], - "mapped", - [ - 25726 - ] - ], - [ - [ - 194757, - 194757 - ], - "mapped", - [ - 25757 - ] - ], - [ - [ - 194758, - 194758 - ], - "mapped", - [ - 25719 - ] - ], - [ - [ - 194759, - 194759 - ], - "mapped", - [ - 14956 - ] - ], - [ - [ - 194760, - 194760 - ], - "mapped", - [ - 25935 - ] - ], - [ - [ - 194761, - 194761 - ], - "mapped", - [ - 25964 - ] - ], - [ - [ - 194762, - 194762 - ], - "mapped", - [ - 143370 - ] - ], - [ - [ - 194763, - 194763 - ], - "mapped", - [ - 26083 - ] - ], - [ - [ - 194764, - 194764 - ], - "mapped", - [ - 26360 - ] - ], - [ - [ - 194765, - 194765 - ], - "mapped", - [ - 26185 - ] - ], - [ - [ - 194766, - 194766 - ], - "mapped", - [ - 15129 - ] - ], - [ - [ - 194767, - 194767 - ], - "mapped", - [ - 26257 - ] - ], - [ - [ - 194768, - 194768 - ], - "mapped", - [ - 15112 - ] - ], - [ - [ - 194769, - 194769 - ], - "mapped", - [ - 15076 - ] - ], - [ - [ - 194770, - 194770 - ], - "mapped", - [ - 20882 - ] - ], - [ - [ - 194771, - 194771 - ], - "mapped", - [ - 20885 - ] - ], - [ - [ - 194772, - 194772 - ], - "mapped", - [ - 26368 - ] - ], - [ - [ - 194773, - 194773 - ], - "mapped", - [ - 26268 - ] - ], - [ - [ - 194774, - 194774 - ], - "mapped", - [ - 32941 - ] - ], - [ - [ - 194775, - 194775 - ], - "mapped", - [ - 17369 - ] - ], - [ - [ - 194776, - 194776 - ], - "mapped", - [ - 26391 - ] - ], - [ - [ - 194777, - 194777 - ], - "mapped", - [ - 26395 - ] - ], - [ - [ - 194778, - 194778 - ], - "mapped", - [ - 26401 - ] - ], - [ - [ - 194779, - 194779 - ], - "mapped", - [ - 26462 - ] - ], - [ - [ - 194780, - 194780 - ], - "mapped", - [ - 26451 - ] - ], - [ - [ - 194781, - 194781 - ], - "mapped", - [ - 144323 - ] - ], - [ - [ - 194782, - 194782 - ], - "mapped", - [ - 15177 - ] - ], - [ - [ - 194783, - 194783 - ], - "mapped", - [ - 26618 - ] - ], - [ - [ - 194784, - 194784 - ], - "mapped", - [ - 26501 - ] - ], - [ - [ - 194785, - 194785 - ], - "mapped", - [ - 26706 - ] - ], - [ - [ - 194786, - 194786 - ], - "mapped", - [ - 26757 - ] - ], - [ - [ - 194787, - 194787 - ], - "mapped", - [ - 144493 - ] - ], - [ - [ - 194788, - 194788 - ], - "mapped", - [ - 26766 - ] - ], - [ - [ - 194789, - 194789 - ], - "mapped", - [ - 26655 - ] - ], - [ - [ - 194790, - 194790 - ], - "mapped", - [ - 26900 - ] - ], - [ - [ - 194791, - 194791 - ], - "mapped", - [ - 15261 - ] - ], - [ - [ - 194792, - 194792 - ], - "mapped", - [ - 26946 - ] - ], - [ - [ - 194793, - 194793 - ], - "mapped", - [ - 27043 - ] - ], - [ - [ - 194794, - 194794 - ], - "mapped", - [ - 27114 - ] - ], - [ - [ - 194795, - 194795 - ], - "mapped", - [ - 27304 - ] - ], - [ - [ - 194796, - 194796 - ], - "mapped", - [ - 145059 - ] - ], - [ - [ - 194797, - 194797 - ], - "mapped", - [ - 27355 - ] - ], - [ - [ - 194798, - 194798 - ], - "mapped", - [ - 15384 - ] - ], - [ - [ - 194799, - 194799 - ], - "mapped", - [ - 27425 - ] - ], - [ - [ - 194800, - 194800 - ], - "mapped", - [ - 145575 - ] - ], - [ - [ - 194801, - 194801 - ], - "mapped", - [ - 27476 - ] - ], - [ - [ - 194802, - 194802 - ], - "mapped", - [ - 15438 - ] - ], - [ - [ - 194803, - 194803 - ], - "mapped", - [ - 27506 - ] - ], - [ - [ - 194804, - 194804 - ], - "mapped", - [ - 27551 - ] - ], - [ - [ - 194805, - 194805 - ], - "mapped", - [ - 27578 - ] - ], - [ - [ - 194806, - 194806 - ], - "mapped", - [ - 27579 - ] - ], - [ - [ - 194807, - 194807 - ], - "mapped", - [ - 146061 - ] - ], - [ - [ - 194808, - 194808 - ], - "mapped", - [ - 138507 - ] - ], - [ - [ - 194809, - 194809 - ], - "mapped", - [ - 146170 - ] - ], - [ - [ - 194810, - 194810 - ], - "mapped", - [ - 27726 - ] - ], - [ - [ - 194811, - 194811 - ], - "mapped", - [ - 146620 - ] - ], - [ - [ - 194812, - 194812 - ], - "mapped", - [ - 27839 - ] - ], - [ - [ - 194813, - 194813 - ], - "mapped", - [ - 27853 - ] - ], - [ - [ - 194814, - 194814 - ], - "mapped", - [ - 27751 - ] - ], - [ - [ - 194815, - 194815 - ], - "mapped", - [ - 27926 - ] - ], - [ - [ - 194816, - 194816 - ], - "mapped", - [ - 27966 - ] - ], - [ - [ - 194817, - 194817 - ], - "mapped", - [ - 28023 - ] - ], - [ - [ - 194818, - 194818 - ], - "mapped", - [ - 27969 - ] - ], - [ - [ - 194819, - 194819 - ], - "mapped", - [ - 28009 - ] - ], - [ - [ - 194820, - 194820 - ], - "mapped", - [ - 28024 - ] - ], - [ - [ - 194821, - 194821 - ], - "mapped", - [ - 28037 - ] - ], - [ - [ - 194822, - 194822 - ], - "mapped", - [ - 146718 - ] - ], - [ - [ - 194823, - 194823 - ], - "mapped", - [ - 27956 - ] - ], - [ - [ - 194824, - 194824 - ], - "mapped", - [ - 28207 - ] - ], - [ - [ - 194825, - 194825 - ], - "mapped", - [ - 28270 - ] - ], - [ - [ - 194826, - 194826 - ], - "mapped", - [ - 15667 - ] - ], - [ - [ - 194827, - 194827 - ], - "mapped", - [ - 28363 - ] - ], - [ - [ - 194828, - 194828 - ], - "mapped", - [ - 28359 - ] - ], - [ - [ - 194829, - 194829 - ], - "mapped", - [ - 147153 - ] - ], - [ - [ - 194830, - 194830 - ], - "mapped", - [ - 28153 - ] - ], - [ - [ - 194831, - 194831 - ], - "mapped", - [ - 28526 - ] - ], - [ - [ - 194832, - 194832 - ], - "mapped", - [ - 147294 - ] - ], - [ - [ - 194833, - 194833 - ], - "mapped", - [ - 147342 - ] - ], - [ - [ - 194834, - 194834 - ], - "mapped", - [ - 28614 - ] - ], - [ - [ - 194835, - 194835 - ], - "mapped", - [ - 28729 - ] - ], - [ - [ - 194836, - 194836 - ], - "mapped", - [ - 28702 - ] - ], - [ - [ - 194837, - 194837 - ], - "mapped", - [ - 28699 - ] - ], - [ - [ - 194838, - 194838 - ], - "mapped", - [ - 15766 - ] - ], - [ - [ - 194839, - 194839 - ], - "mapped", - [ - 28746 - ] - ], - [ - [ - 194840, - 194840 - ], - "mapped", - [ - 28797 - ] - ], - [ - [ - 194841, - 194841 - ], - "mapped", - [ - 28791 - ] - ], - [ - [ - 194842, - 194842 - ], - "mapped", - [ - 28845 - ] - ], - [ - [ - 194843, - 194843 - ], - "mapped", - [ - 132389 - ] - ], - [ - [ - 194844, - 194844 - ], - "mapped", - [ - 28997 - ] - ], - [ - [ - 194845, - 194845 - ], - "mapped", - [ - 148067 - ] - ], - [ - [ - 194846, - 194846 - ], - "mapped", - [ - 29084 - ] - ], - [ - [ - 194847, - 194847 - ], - "disallowed" - ], - [ - [ - 194848, - 194848 - ], - "mapped", - [ - 29224 - ] - ], - [ - [ - 194849, - 194849 - ], - "mapped", - [ - 29237 - ] - ], - [ - [ - 194850, - 194850 - ], - "mapped", - [ - 29264 - ] - ], - [ - [ - 194851, - 194851 - ], - "mapped", - [ - 149000 - ] - ], - [ - [ - 194852, - 194852 - ], - "mapped", - [ - 29312 - ] - ], - [ - [ - 194853, - 194853 - ], - "mapped", - [ - 29333 - ] - ], - [ - [ - 194854, - 194854 - ], - "mapped", - [ - 149301 - ] - ], - [ - [ - 194855, - 194855 - ], - "mapped", - [ - 149524 - ] - ], - [ - [ - 194856, - 194856 - ], - "mapped", - [ - 29562 - ] - ], - [ - [ - 194857, - 194857 - ], - "mapped", - [ - 29579 - ] - ], - [ - [ - 194858, - 194858 - ], - "mapped", - [ - 16044 - ] - ], - [ - [ - 194859, - 194859 - ], - "mapped", - [ - 29605 - ] - ], - [ - [ - 194860, - 194861 - ], - "mapped", - [ - 16056 - ] - ], - [ - [ - 194862, - 194862 - ], - "mapped", - [ - 29767 - ] - ], - [ - [ - 194863, - 194863 - ], - "mapped", - [ - 29788 - ] - ], - [ - [ - 194864, - 194864 - ], - "mapped", - [ - 29809 - ] - ], - [ - [ - 194865, - 194865 - ], - "mapped", - [ - 29829 - ] - ], - [ - [ - 194866, - 194866 - ], - "mapped", - [ - 29898 - ] - ], - [ - [ - 194867, - 194867 - ], - "mapped", - [ - 16155 - ] - ], - [ - [ - 194868, - 194868 - ], - "mapped", - [ - 29988 - ] - ], - [ - [ - 194869, - 194869 - ], - "mapped", - [ - 150582 - ] - ], - [ - [ - 194870, - 194870 - ], - "mapped", - [ - 30014 - ] - ], - [ - [ - 194871, - 194871 - ], - "mapped", - [ - 150674 - ] - ], - [ - [ - 194872, - 194872 - ], - "mapped", - [ - 30064 - ] - ], - [ - [ - 194873, - 194873 - ], - "mapped", - [ - 139679 - ] - ], - [ - [ - 194874, - 194874 - ], - "mapped", - [ - 30224 - ] - ], - [ - [ - 194875, - 194875 - ], - "mapped", - [ - 151457 - ] - ], - [ - [ - 194876, - 194876 - ], - "mapped", - [ - 151480 - ] - ], - [ - [ - 194877, - 194877 - ], - "mapped", - [ - 151620 - ] - ], - [ - [ - 194878, - 194878 - ], - "mapped", - [ - 16380 - ] - ], - [ - [ - 194879, - 194879 - ], - "mapped", - [ - 16392 - ] - ], - [ - [ - 194880, - 194880 - ], - "mapped", - [ - 30452 - ] - ], - [ - [ - 194881, - 194881 - ], - "mapped", - [ - 151795 - ] - ], - [ - [ - 194882, - 194882 - ], - "mapped", - [ - 151794 - ] - ], - [ - [ - 194883, - 194883 - ], - "mapped", - [ - 151833 - ] - ], - [ - [ - 194884, - 194884 - ], - "mapped", - [ - 151859 - ] - ], - [ - [ - 194885, - 194885 - ], - "mapped", - [ - 30494 - ] - ], - [ - [ - 194886, - 194887 - ], - "mapped", - [ - 30495 - ] - ], - [ - [ - 194888, - 194888 - ], - "mapped", - [ - 30538 - ] - ], - [ - [ - 194889, - 194889 - ], - "mapped", - [ - 16441 - ] - ], - [ - [ - 194890, - 194890 - ], - "mapped", - [ - 30603 - ] - ], - [ - [ - 194891, - 194891 - ], - "mapped", - [ - 16454 - ] - ], - [ - [ - 194892, - 194892 - ], - "mapped", - [ - 16534 - ] - ], - [ - [ - 194893, - 194893 - ], - "mapped", - [ - 152605 - ] - ], - [ - [ - 194894, - 194894 - ], - "mapped", - [ - 30798 - ] - ], - [ - [ - 194895, - 194895 - ], - "mapped", - [ - 30860 - ] - ], - [ - [ - 194896, - 194896 - ], - "mapped", - [ - 30924 - ] - ], - [ - [ - 194897, - 194897 - ], - "mapped", - [ - 16611 - ] - ], - [ - [ - 194898, - 194898 - ], - "mapped", - [ - 153126 - ] - ], - [ - [ - 194899, - 194899 - ], - "mapped", - [ - 31062 - ] - ], - [ - [ - 194900, - 194900 - ], - "mapped", - [ - 153242 - ] - ], - [ - [ - 194901, - 194901 - ], - "mapped", - [ - 153285 - ] - ], - [ - [ - 194902, - 194902 - ], - "mapped", - [ - 31119 - ] - ], - [ - [ - 194903, - 194903 - ], - "mapped", - [ - 31211 - ] - ], - [ - [ - 194904, - 194904 - ], - "mapped", - [ - 16687 - ] - ], - [ - [ - 194905, - 194905 - ], - "mapped", - [ - 31296 - ] - ], - [ - [ - 194906, - 194906 - ], - "mapped", - [ - 31306 - ] - ], - [ - [ - 194907, - 194907 - ], - "mapped", - [ - 31311 - ] - ], - [ - [ - 194908, - 194908 - ], - "mapped", - [ - 153980 - ] - ], - [ - [ - 194909, - 194910 - ], - "mapped", - [ - 154279 - ] - ], - [ - [ - 194911, - 194911 - ], - "disallowed" - ], - [ - [ - 194912, - 194912 - ], - "mapped", - [ - 16898 - ] - ], - [ - [ - 194913, - 194913 - ], - "mapped", - [ - 154539 - ] - ], - [ - [ - 194914, - 194914 - ], - "mapped", - [ - 31686 - ] - ], - [ - [ - 194915, - 194915 - ], - "mapped", - [ - 31689 - ] - ], - [ - [ - 194916, - 194916 - ], - "mapped", - [ - 16935 - ] - ], - [ - [ - 194917, - 194917 - ], - "mapped", - [ - 154752 - ] - ], - [ - [ - 194918, - 194918 - ], - "mapped", - [ - 31954 - ] - ], - [ - [ - 194919, - 194919 - ], - "mapped", - [ - 17056 - ] - ], - [ - [ - 194920, - 194920 - ], - "mapped", - [ - 31976 - ] - ], - [ - [ - 194921, - 194921 - ], - "mapped", - [ - 31971 - ] - ], - [ - [ - 194922, - 194922 - ], - "mapped", - [ - 32000 - ] - ], - [ - [ - 194923, - 194923 - ], - "mapped", - [ - 155526 - ] - ], - [ - [ - 194924, - 194924 - ], - "mapped", - [ - 32099 - ] - ], - [ - [ - 194925, - 194925 - ], - "mapped", - [ - 17153 - ] - ], - [ - [ - 194926, - 194926 - ], - "mapped", - [ - 32199 - ] - ], - [ - [ - 194927, - 194927 - ], - "mapped", - [ - 32258 - ] - ], - [ - [ - 194928, - 194928 - ], - "mapped", - [ - 32325 - ] - ], - [ - [ - 194929, - 194929 - ], - "mapped", - [ - 17204 - ] - ], - [ - [ - 194930, - 194930 - ], - "mapped", - [ - 156200 - ] - ], - [ - [ - 194931, - 194931 - ], - "mapped", - [ - 156231 - ] - ], - [ - [ - 194932, - 194932 - ], - "mapped", - [ - 17241 - ] - ], - [ - [ - 194933, - 194933 - ], - "mapped", - [ - 156377 - ] - ], - [ - [ - 194934, - 194934 - ], - "mapped", - [ - 32634 - ] - ], - [ - [ - 194935, - 194935 - ], - "mapped", - [ - 156478 - ] - ], - [ - [ - 194936, - 194936 - ], - "mapped", - [ - 32661 - ] - ], - [ - [ - 194937, - 194937 - ], - "mapped", - [ - 32762 - ] - ], - [ - [ - 194938, - 194938 - ], - "mapped", - [ - 32773 - ] - ], - [ - [ - 194939, - 194939 - ], - "mapped", - [ - 156890 - ] - ], - [ - [ - 194940, - 194940 - ], - "mapped", - [ - 156963 - ] - ], - [ - [ - 194941, - 194941 - ], - "mapped", - [ - 32864 - ] - ], - [ - [ - 194942, - 194942 - ], - "mapped", - [ - 157096 - ] - ], - [ - [ - 194943, - 194943 - ], - "mapped", - [ - 32880 - ] - ], - [ - [ - 194944, - 194944 - ], - "mapped", - [ - 144223 - ] - ], - [ - [ - 194945, - 194945 - ], - "mapped", - [ - 17365 - ] - ], - [ - [ - 194946, - 194946 - ], - "mapped", - [ - 32946 - ] - ], - [ - [ - 194947, - 194947 - ], - "mapped", - [ - 33027 - ] - ], - [ - [ - 194948, - 194948 - ], - "mapped", - [ - 17419 - ] - ], - [ - [ - 194949, - 194949 - ], - "mapped", - [ - 33086 - ] - ], - [ - [ - 194950, - 194950 - ], - "mapped", - [ - 23221 - ] - ], - [ - [ - 194951, - 194951 - ], - "mapped", - [ - 157607 - ] - ], - [ - [ - 194952, - 194952 - ], - "mapped", - [ - 157621 - ] - ], - [ - [ - 194953, - 194953 - ], - "mapped", - [ - 144275 - ] - ], - [ - [ - 194954, - 194954 - ], - "mapped", - [ - 144284 - ] - ], - [ - [ - 194955, - 194955 - ], - "mapped", - [ - 33281 - ] - ], - [ - [ - 194956, - 194956 - ], - "mapped", - [ - 33284 - ] - ], - [ - [ - 194957, - 194957 - ], - "mapped", - [ - 36766 - ] - ], - [ - [ - 194958, - 194958 - ], - "mapped", - [ - 17515 - ] - ], - [ - [ - 194959, - 194959 - ], - "mapped", - [ - 33425 - ] - ], - [ - [ - 194960, - 194960 - ], - "mapped", - [ - 33419 - ] - ], - [ - [ - 194961, - 194961 - ], - "mapped", - [ - 33437 - ] - ], - [ - [ - 194962, - 194962 - ], - "mapped", - [ - 21171 - ] - ], - [ - [ - 194963, - 194963 - ], - "mapped", - [ - 33457 - ] - ], - [ - [ - 194964, - 194964 - ], - "mapped", - [ - 33459 - ] - ], - [ - [ - 194965, - 194965 - ], - "mapped", - [ - 33469 - ] - ], - [ - [ - 194966, - 194966 - ], - "mapped", - [ - 33510 - ] - ], - [ - [ - 194967, - 194967 - ], - "mapped", - [ - 158524 - ] - ], - [ - [ - 194968, - 194968 - ], - "mapped", - [ - 33509 - ] - ], - [ - [ - 194969, - 194969 - ], - "mapped", - [ - 33565 - ] - ], - [ - [ - 194970, - 194970 - ], - "mapped", - [ - 33635 - ] - ], - [ - [ - 194971, - 194971 - ], - "mapped", - [ - 33709 - ] - ], - [ - [ - 194972, - 194972 - ], - "mapped", - [ - 33571 - ] - ], - [ - [ - 194973, - 194973 - ], - "mapped", - [ - 33725 - ] - ], - [ - [ - 194974, - 194974 - ], - "mapped", - [ - 33767 - ] - ], - [ - [ - 194975, - 194975 - ], - "mapped", - [ - 33879 - ] - ], - [ - [ - 194976, - 194976 - ], - "mapped", - [ - 33619 - ] - ], - [ - [ - 194977, - 194977 - ], - "mapped", - [ - 33738 - ] - ], - [ - [ - 194978, - 194978 - ], - "mapped", - [ - 33740 - ] - ], - [ - [ - 194979, - 194979 - ], - "mapped", - [ - 33756 - ] - ], - [ - [ - 194980, - 194980 - ], - "mapped", - [ - 158774 - ] - ], - [ - [ - 194981, - 194981 - ], - "mapped", - [ - 159083 - ] - ], - [ - [ - 194982, - 194982 - ], - "mapped", - [ - 158933 - ] - ], - [ - [ - 194983, - 194983 - ], - "mapped", - [ - 17707 - ] - ], - [ - [ - 194984, - 194984 - ], - "mapped", - [ - 34033 - ] - ], - [ - [ - 194985, - 194985 - ], - "mapped", - [ - 34035 - ] - ], - [ - [ - 194986, - 194986 - ], - "mapped", - [ - 34070 - ] - ], - [ - [ - 194987, - 194987 - ], - "mapped", - [ - 160714 - ] - ], - [ - [ - 194988, - 194988 - ], - "mapped", - [ - 34148 - ] - ], - [ - [ - 194989, - 194989 - ], - "mapped", - [ - 159532 - ] - ], - [ - [ - 194990, - 194990 - ], - "mapped", - [ - 17757 - ] - ], - [ - [ - 194991, - 194991 - ], - "mapped", - [ - 17761 - ] - ], - [ - [ - 194992, - 194992 - ], - "mapped", - [ - 159665 - ] - ], - [ - [ - 194993, - 194993 - ], - "mapped", - [ - 159954 - ] - ], - [ - [ - 194994, - 194994 - ], - "mapped", - [ - 17771 - ] - ], - [ - [ - 194995, - 194995 - ], - "mapped", - [ - 34384 - ] - ], - [ - [ - 194996, - 194996 - ], - "mapped", - [ - 34396 - ] - ], - [ - [ - 194997, - 194997 - ], - "mapped", - [ - 34407 - ] - ], - [ - [ - 194998, - 194998 - ], - "mapped", - [ - 34409 - ] - ], - [ - [ - 194999, - 194999 - ], - "mapped", - [ - 34473 - ] - ], - [ - [ - 195000, - 195000 - ], - "mapped", - [ - 34440 - ] - ], - [ - [ - 195001, - 195001 - ], - "mapped", - [ - 34574 - ] - ], - [ - [ - 195002, - 195002 - ], - "mapped", - [ - 34530 - ] - ], - [ - [ - 195003, - 195003 - ], - "mapped", - [ - 34681 - ] - ], - [ - [ - 195004, - 195004 - ], - "mapped", - [ - 34600 - ] - ], - [ - [ - 195005, - 195005 - ], - "mapped", - [ - 34667 - ] - ], - [ - [ - 195006, - 195006 - ], - "mapped", - [ - 34694 - ] - ], - [ - [ - 195007, - 195007 - ], - "disallowed" - ], - [ - [ - 195008, - 195008 - ], - "mapped", - [ - 34785 - ] - ], - [ - [ - 195009, - 195009 - ], - "mapped", - [ - 34817 - ] - ], - [ - [ - 195010, - 195010 - ], - "mapped", - [ - 17913 - ] - ], - [ - [ - 195011, - 195011 - ], - "mapped", - [ - 34912 - ] - ], - [ - [ - 195012, - 195012 - ], - "mapped", - [ - 34915 - ] - ], - [ - [ - 195013, - 195013 - ], - "mapped", - [ - 161383 - ] - ], - [ - [ - 195014, - 195014 - ], - "mapped", - [ - 35031 - ] - ], - [ - [ - 195015, - 195015 - ], - "mapped", - [ - 35038 - ] - ], - [ - [ - 195016, - 195016 - ], - "mapped", - [ - 17973 - ] - ], - [ - [ - 195017, - 195017 - ], - "mapped", - [ - 35066 - ] - ], - [ - [ - 195018, - 195018 - ], - "mapped", - [ - 13499 - ] - ], - [ - [ - 195019, - 195019 - ], - "mapped", - [ - 161966 - ] - ], - [ - [ - 195020, - 195020 - ], - "mapped", - [ - 162150 - ] - ], - [ - [ - 195021, - 195021 - ], - "mapped", - [ - 18110 - ] - ], - [ - [ - 195022, - 195022 - ], - "mapped", - [ - 18119 - ] - ], - [ - [ - 195023, - 195023 - ], - "mapped", - [ - 35488 - ] - ], - [ - [ - 195024, - 195024 - ], - "mapped", - [ - 35565 - ] - ], - [ - [ - 195025, - 195025 - ], - "mapped", - [ - 35722 - ] - ], - [ - [ - 195026, - 195026 - ], - "mapped", - [ - 35925 - ] - ], - [ - [ - 195027, - 195027 - ], - "mapped", - [ - 162984 - ] - ], - [ - [ - 195028, - 195028 - ], - "mapped", - [ - 36011 - ] - ], - [ - [ - 195029, - 195029 - ], - "mapped", - [ - 36033 - ] - ], - [ - [ - 195030, - 195030 - ], - "mapped", - [ - 36123 - ] - ], - [ - [ - 195031, - 195031 - ], - "mapped", - [ - 36215 - ] - ], - [ - [ - 195032, - 195032 - ], - "mapped", - [ - 163631 - ] - ], - [ - [ - 195033, - 195033 - ], - "mapped", - [ - 133124 - ] - ], - [ - [ - 195034, - 195034 - ], - "mapped", - [ - 36299 - ] - ], - [ - [ - 195035, - 195035 - ], - "mapped", - [ - 36284 - ] - ], - [ - [ - 195036, - 195036 - ], - "mapped", - [ - 36336 - ] - ], - [ - [ - 195037, - 195037 - ], - "mapped", - [ - 133342 - ] - ], - [ - [ - 195038, - 195038 - ], - "mapped", - [ - 36564 - ] - ], - [ - [ - 195039, - 195039 - ], - "mapped", - [ - 36664 - ] - ], - [ - [ - 195040, - 195040 - ], - "mapped", - [ - 165330 - ] - ], - [ - [ - 195041, - 195041 - ], - "mapped", - [ - 165357 - ] - ], - [ - [ - 195042, - 195042 - ], - "mapped", - [ - 37012 - ] - ], - [ - [ - 195043, - 195043 - ], - "mapped", - [ - 37105 - ] - ], - [ - [ - 195044, - 195044 - ], - "mapped", - [ - 37137 - ] - ], - [ - [ - 195045, - 195045 - ], - "mapped", - [ - 165678 - ] - ], - [ - [ - 195046, - 195046 - ], - "mapped", - [ - 37147 - ] - ], - [ - [ - 195047, - 195047 - ], - "mapped", - [ - 37432 - ] - ], - [ - [ - 195048, - 195048 - ], - "mapped", - [ - 37591 - ] - ], - [ - [ - 195049, - 195049 - ], - "mapped", - [ - 37592 - ] - ], - [ - [ - 195050, - 195050 - ], - "mapped", - [ - 37500 - ] - ], - [ - [ - 195051, - 195051 - ], - "mapped", - [ - 37881 - ] - ], - [ - [ - 195052, - 195052 - ], - "mapped", - [ - 37909 - ] - ], - [ - [ - 195053, - 195053 - ], - "mapped", - [ - 166906 - ] - ], - [ - [ - 195054, - 195054 - ], - "mapped", - [ - 38283 - ] - ], - [ - [ - 195055, - 195055 - ], - "mapped", - [ - 18837 - ] - ], - [ - [ - 195056, - 195056 - ], - "mapped", - [ - 38327 - ] - ], - [ - [ - 195057, - 195057 - ], - "mapped", - [ - 167287 - ] - ], - [ - [ - 195058, - 195058 - ], - "mapped", - [ - 18918 - ] - ], - [ - [ - 195059, - 195059 - ], - "mapped", - [ - 38595 - ] - ], - [ - [ - 195060, - 195060 - ], - "mapped", - [ - 23986 - ] - ], - [ - [ - 195061, - 195061 - ], - "mapped", - [ - 38691 - ] - ], - [ - [ - 195062, - 195062 - ], - "mapped", - [ - 168261 - ] - ], - [ - [ - 195063, - 195063 - ], - "mapped", - [ - 168474 - ] - ], - [ - [ - 195064, - 195064 - ], - "mapped", - [ - 19054 - ] - ], - [ - [ - 195065, - 195065 - ], - "mapped", - [ - 19062 - ] - ], - [ - [ - 195066, - 195066 - ], - "mapped", - [ - 38880 - ] - ], - [ - [ - 195067, - 195067 - ], - "mapped", - [ - 168970 - ] - ], - [ - [ - 195068, - 195068 - ], - "mapped", - [ - 19122 - ] - ], - [ - [ - 195069, - 195069 - ], - "mapped", - [ - 169110 - ] - ], - [ - [ - 195070, - 195071 - ], - "mapped", - [ - 38923 - ] - ], - [ - [ - 195072, - 195072 - ], - "mapped", - [ - 38953 - ] - ], - [ - [ - 195073, - 195073 - ], - "mapped", - [ - 169398 - ] - ], - [ - [ - 195074, - 195074 - ], - "mapped", - [ - 39138 - ] - ], - [ - [ - 195075, - 195075 - ], - "mapped", - [ - 19251 - ] - ], - [ - [ - 195076, - 195076 - ], - "mapped", - [ - 39209 - ] - ], - [ - [ - 195077, - 195077 - ], - "mapped", - [ - 39335 - ] - ], - [ - [ - 195078, - 195078 - ], - "mapped", - [ - 39362 - ] - ], - [ - [ - 195079, - 195079 - ], - "mapped", - [ - 39422 - ] - ], - [ - [ - 195080, - 195080 - ], - "mapped", - [ - 19406 - ] - ], - [ - [ - 195081, - 195081 - ], - "mapped", - [ - 170800 - ] - ], - [ - [ - 195082, - 195082 - ], - "mapped", - [ - 39698 - ] - ], - [ - [ - 195083, - 195083 - ], - "mapped", - [ - 40000 - ] - ], - [ - [ - 195084, - 195084 - ], - "mapped", - [ - 40189 - ] - ], - [ - [ - 195085, - 195085 - ], - "mapped", - [ - 19662 - ] - ], - [ - [ - 195086, - 195086 - ], - "mapped", - [ - 19693 - ] - ], - [ - [ - 195087, - 195087 - ], - "mapped", - [ - 40295 - ] - ], - [ - [ - 195088, - 195088 - ], - "mapped", - [ - 172238 - ] - ], - [ - [ - 195089, - 195089 - ], - "mapped", - [ - 19704 - ] - ], - [ - [ - 195090, - 195090 - ], - "mapped", - [ - 172293 - ] - ], - [ - [ - 195091, - 195091 - ], - "mapped", - [ - 172558 - ] - ], - [ - [ - 195092, - 195092 - ], - "mapped", - [ - 172689 - ] - ], - [ - [ - 195093, - 195093 - ], - "mapped", - [ - 40635 - ] - ], - [ - [ - 195094, - 195094 - ], - "mapped", - [ - 19798 - ] - ], - [ - [ - 195095, - 195095 - ], - "mapped", - [ - 40697 - ] - ], - [ - [ - 195096, - 195096 - ], - "mapped", - [ - 40702 - ] - ], - [ - [ - 195097, - 195097 - ], - "mapped", - [ - 40709 - ] - ], - [ - [ - 195098, - 195098 - ], - "mapped", - [ - 40719 - ] - ], - [ - [ - 195099, - 195099 - ], - "mapped", - [ - 40726 - ] - ], - [ - [ - 195100, - 195100 - ], - "mapped", - [ - 40763 - ] - ], - [ - [ - 195101, - 195101 - ], - "mapped", - [ - 173568 - ] - ], - [ - [ - 195102, - 196605 - ], - "disallowed" - ], - [ - [ - 196606, - 196607 - ], - "disallowed" - ], - [ - [ - 196608, - 262141 - ], - "disallowed" - ], - [ - [ - 262142, - 262143 - ], - "disallowed" - ], - [ - [ - 262144, - 327677 - ], - "disallowed" - ], - [ - [ - 327678, - 327679 - ], - "disallowed" - ], - [ - [ - 327680, - 393213 - ], - "disallowed" - ], - [ - [ - 393214, - 393215 - ], - "disallowed" - ], - [ - [ - 393216, - 458749 - ], - "disallowed" - ], - [ - [ - 458750, - 458751 - ], - "disallowed" - ], - [ - [ - 458752, - 524285 - ], - "disallowed" - ], - [ - [ - 524286, - 524287 - ], - "disallowed" - ], - [ - [ - 524288, - 589821 - ], - "disallowed" - ], - [ - [ - 589822, - 589823 - ], - "disallowed" - ], - [ - [ - 589824, - 655357 - ], - "disallowed" - ], - [ - [ - 655358, - 655359 - ], - "disallowed" - ], - [ - [ - 655360, - 720893 - ], - "disallowed" - ], - [ - [ - 720894, - 720895 - ], - "disallowed" - ], - [ - [ - 720896, - 786429 - ], - "disallowed" - ], - [ - [ - 786430, - 786431 - ], - "disallowed" - ], - [ - [ - 786432, - 851965 - ], - "disallowed" - ], - [ - [ - 851966, - 851967 - ], - "disallowed" - ], - [ - [ - 851968, - 917501 - ], - "disallowed" - ], - [ - [ - 917502, - 917503 - ], - "disallowed" - ], - [ - [ - 917504, - 917504 - ], - "disallowed" - ], - [ - [ - 917505, - 917505 - ], - "disallowed" - ], - [ - [ - 917506, - 917535 - ], - "disallowed" - ], - [ - [ - 917536, - 917631 - ], - "disallowed" - ], - [ - [ - 917632, - 917759 - ], - "disallowed" - ], - [ - [ - 917760, - 917999 - ], - "ignored" - ], - [ - [ - 918000, - 983037 - ], - "disallowed" - ], - [ - [ - 983038, - 983039 - ], - "disallowed" - ], - [ - [ - 983040, - 1048573 - ], - "disallowed" - ], - [ - [ - 1048574, - 1048575 - ], - "disallowed" - ], - [ - [ - 1048576, - 1114109 - ], - "disallowed" - ], - [ - [ - 1114110, - 1114111 - ], - "disallowed" - ] -]; - -var punycode = require$$0__default$1["default"]; -var mappingTable = require$$1; - -var PROCESSING_OPTIONS = { - TRANSITIONAL: 0, - NONTRANSITIONAL: 1 -}; - -function normalize(str) { // fix bug in v8 - return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000'); -} - -function findStatus(val) { - var start = 0; - var end = mappingTable.length - 1; - - while (start <= end) { - var mid = Math.floor((start + end) / 2); - - var target = mappingTable[mid]; - if (target[0][0] <= val && target[0][1] >= val) { - return target; - } else if (target[0][0] > val) { - end = mid - 1; - } else { - start = mid + 1; - } - } - - return null; -} - -var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - -function countSymbols(string) { - return string - // replace every surrogate pair with a BMP symbol - .replace(regexAstralSymbols, '_') - // then get the length - .length; -} - -function mapChars(domain_name, useSTD3, processing_option) { - var hasError = false; - var processed = ""; - - var len = countSymbols(domain_name); - for (var i = 0; i < len; ++i) { - var codePoint = domain_name.codePointAt(i); - var status = findStatus(codePoint); - - switch (status[1]) { - case "disallowed": - hasError = true; - processed += String.fromCodePoint(codePoint); - break; - case "ignored": - break; - case "mapped": - processed += String.fromCodePoint.apply(String, status[2]); - break; - case "deviation": - if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) { - processed += String.fromCodePoint.apply(String, status[2]); - } else { - processed += String.fromCodePoint(codePoint); - } - break; - case "valid": - processed += String.fromCodePoint(codePoint); - break; - case "disallowed_STD3_mapped": - if (useSTD3) { - hasError = true; - processed += String.fromCodePoint(codePoint); - } else { - processed += String.fromCodePoint.apply(String, status[2]); - } - break; - case "disallowed_STD3_valid": - if (useSTD3) { - hasError = true; - } - - processed += String.fromCodePoint(codePoint); - break; - } - } - - return { - string: processed, - error: hasError - }; -} - -var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/; - -function validateLabel(label, processing_option) { - if (label.substr(0, 4) === "xn--") { - label = punycode.toUnicode(label); - PROCESSING_OPTIONS.NONTRANSITIONAL; - } - - var error = false; - - if (normalize(label) !== label || - (label[3] === "-" && label[4] === "-") || - label[0] === "-" || label[label.length - 1] === "-" || - label.indexOf(".") !== -1 || - label.search(combiningMarksRegex) === 0) { - error = true; - } - - var len = countSymbols(label); - for (var i = 0; i < len; ++i) { - var status = findStatus(label.codePointAt(i)); - if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") || - (processing === PROCESSING_OPTIONS.NONTRANSITIONAL && - status[1] !== "valid" && status[1] !== "deviation")) { - error = true; - break; - } - } - - return { - label: label, - error: error - }; -} - -function processing(domain_name, useSTD3, processing_option) { - var result = mapChars(domain_name, useSTD3, processing_option); - result.string = normalize(result.string); - - var labels = result.string.split("."); - for (var i = 0; i < labels.length; ++i) { - try { - var validation = validateLabel(labels[i]); - labels[i] = validation.label; - result.error = result.error || validation.error; - } catch(e) { - result.error = true; - } - } - - return { - string: labels.join("."), - error: result.error - }; -} - -tr46.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) { - var result = processing(domain_name, useSTD3, processing_option); - var labels = result.string.split("."); - labels = labels.map(function(l) { - try { - return punycode.toASCII(l); - } catch(e) { - result.error = true; - return l; - } - }); - - if (verifyDnsLength) { - var total = labels.slice(0, labels.length - 1).join(".").length; - if (total.length > 253 || total.length === 0) { - result.error = true; - } - - for (var i=0; i < labels.length; ++i) { - if (labels.length > 63 || labels.length === 0) { - result.error = true; - break; - } - } - } - - if (result.error) return null; - return labels.join("."); -}; - -tr46.toUnicode = function(domain_name, useSTD3) { - var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL); - - return { - domain: result.string, - error: result.error - }; -}; - -tr46.PROCESSING_OPTIONS = PROCESSING_OPTIONS; - -(function (module) { -const punycode = require$$0__default$1["default"]; -const tr46$1 = tr46; - -const specialSchemes = { - ftp: 21, - file: null, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443 -}; - -const failure = Symbol("failure"); - -function countSymbols(str) { - return punycode.ucs2.decode(str).length; -} - -function at(input, idx) { - const c = input[idx]; - return isNaN(c) ? undefined : String.fromCodePoint(c); -} - -function isASCIIDigit(c) { - return c >= 0x30 && c <= 0x39; -} - -function isASCIIAlpha(c) { - return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); -} - -function isASCIIAlphanumeric(c) { - return isASCIIAlpha(c) || isASCIIDigit(c); -} - -function isASCIIHex(c) { - return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); -} - -function isSingleDot(buffer) { - return buffer === "." || buffer.toLowerCase() === "%2e"; -} - -function isDoubleDot(buffer) { - buffer = buffer.toLowerCase(); - return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e"; -} - -function isWindowsDriveLetterCodePoints(cp1, cp2) { - return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124); -} - -function isWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|"); -} - -function isNormalizedWindowsDriveLetterString(string) { - return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":"; -} - -function containsForbiddenHostCodePoint(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1; -} - -function containsForbiddenHostCodePointExcludingPercent(string) { - return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1; -} - -function isSpecialScheme(scheme) { - return specialSchemes[scheme] !== undefined; -} - -function isSpecial(url) { - return isSpecialScheme(url.scheme); -} - -function defaultPort(scheme) { - return specialSchemes[scheme]; -} - -function percentEncode(c) { - let hex = c.toString(16).toUpperCase(); - if (hex.length === 1) { - hex = "0" + hex; - } - - return "%" + hex; -} - -function utf8PercentEncode(c) { - const buf = new Buffer(c); - - let str = ""; - - for (let i = 0; i < buf.length; ++i) { - str += percentEncode(buf[i]); - } - - return str; -} - -function utf8PercentDecode(str) { - const input = new Buffer(str); - const output = []; - for (let i = 0; i < input.length; ++i) { - if (input[i] !== 37) { - output.push(input[i]); - } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) { - output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16)); - i += 2; - } else { - output.push(input[i]); - } - } - return new Buffer(output).toString(); -} - -function isC0ControlPercentEncode(c) { - return c <= 0x1F || c > 0x7E; -} - -const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]); -function isPathPercentEncode(c) { - return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c); -} - -const extraUserinfoPercentEncodeSet = - new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]); -function isUserinfoPercentEncode(c) { - return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); -} - -function percentEncodeChar(c, encodeSetPredicate) { - const cStr = String.fromCodePoint(c); - - if (encodeSetPredicate(c)) { - return utf8PercentEncode(cStr); - } - - return cStr; -} - -function parseIPv4Number(input) { - let R = 10; - - if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") { - input = input.substring(2); - R = 16; - } else if (input.length >= 2 && input.charAt(0) === "0") { - input = input.substring(1); - R = 8; - } - - if (input === "") { - return 0; - } - - const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/); - if (regex.test(input)) { - return failure; - } - - return parseInt(input, R); -} - -function parseIPv4(input) { - const parts = input.split("."); - if (parts[parts.length - 1] === "") { - if (parts.length > 1) { - parts.pop(); - } - } - - if (parts.length > 4) { - return input; - } - - const numbers = []; - for (const part of parts) { - if (part === "") { - return input; - } - const n = parseIPv4Number(part); - if (n === failure) { - return input; - } - - numbers.push(n); - } - - for (let i = 0; i < numbers.length - 1; ++i) { - if (numbers[i] > 255) { - return failure; - } - } - if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) { - return failure; - } - - let ipv4 = numbers.pop(); - let counter = 0; - - for (const n of numbers) { - ipv4 += n * Math.pow(256, 3 - counter); - ++counter; - } - - return ipv4; -} - -function serializeIPv4(address) { - let output = ""; - let n = address; - - for (let i = 1; i <= 4; ++i) { - output = String(n % 256) + output; - if (i !== 4) { - output = "." + output; - } - n = Math.floor(n / 256); - } - - return output; -} - -function parseIPv6(input) { - const address = [0, 0, 0, 0, 0, 0, 0, 0]; - let pieceIndex = 0; - let compress = null; - let pointer = 0; - - input = punycode.ucs2.decode(input); - - if (input[pointer] === 58) { - if (input[pointer + 1] !== 58) { - return failure; - } - - pointer += 2; - ++pieceIndex; - compress = pieceIndex; - } - - while (pointer < input.length) { - if (pieceIndex === 8) { - return failure; - } - - if (input[pointer] === 58) { - if (compress !== null) { - return failure; - } - ++pointer; - ++pieceIndex; - compress = pieceIndex; - continue; - } - - let value = 0; - let length = 0; - - while (length < 4 && isASCIIHex(input[pointer])) { - value = value * 0x10 + parseInt(at(input, pointer), 16); - ++pointer; - ++length; - } - - if (input[pointer] === 46) { - if (length === 0) { - return failure; - } - - pointer -= length; - - if (pieceIndex > 6) { - return failure; - } - - let numbersSeen = 0; - - while (input[pointer] !== undefined) { - let ipv4Piece = null; - - if (numbersSeen > 0) { - if (input[pointer] === 46 && numbersSeen < 4) { - ++pointer; - } else { - return failure; - } - } - - if (!isASCIIDigit(input[pointer])) { - return failure; - } - - while (isASCIIDigit(input[pointer])) { - const number = parseInt(at(input, pointer)); - if (ipv4Piece === null) { - ipv4Piece = number; - } else if (ipv4Piece === 0) { - return failure; - } else { - ipv4Piece = ipv4Piece * 10 + number; - } - if (ipv4Piece > 255) { - return failure; - } - ++pointer; - } - - address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece; - - ++numbersSeen; - - if (numbersSeen === 2 || numbersSeen === 4) { - ++pieceIndex; - } - } - - if (numbersSeen !== 4) { - return failure; - } - - break; - } else if (input[pointer] === 58) { - ++pointer; - if (input[pointer] === undefined) { - return failure; - } - } else if (input[pointer] !== undefined) { - return failure; - } - - address[pieceIndex] = value; - ++pieceIndex; - } - - if (compress !== null) { - let swaps = pieceIndex - compress; - pieceIndex = 7; - while (pieceIndex !== 0 && swaps > 0) { - const temp = address[compress + swaps - 1]; - address[compress + swaps - 1] = address[pieceIndex]; - address[pieceIndex] = temp; - --pieceIndex; - --swaps; - } - } else if (compress === null && pieceIndex !== 8) { - return failure; - } - - return address; -} - -function serializeIPv6(address) { - let output = ""; - const seqResult = findLongestZeroSequence(address); - const compress = seqResult.idx; - let ignore0 = false; - - for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) { - if (ignore0 && address[pieceIndex] === 0) { - continue; - } else if (ignore0) { - ignore0 = false; - } - - if (compress === pieceIndex) { - const separator = pieceIndex === 0 ? "::" : ":"; - output += separator; - ignore0 = true; - continue; - } - - output += address[pieceIndex].toString(16); - - if (pieceIndex !== 7) { - output += ":"; - } - } - - return output; -} - -function parseHost(input, isSpecialArg) { - if (input[0] === "[") { - if (input[input.length - 1] !== "]") { - return failure; - } - - return parseIPv6(input.substring(1, input.length - 1)); - } - - if (!isSpecialArg) { - return parseOpaqueHost(input); - } - - const domain = utf8PercentDecode(input); - const asciiDomain = tr46$1.toASCII(domain, false, tr46$1.PROCESSING_OPTIONS.NONTRANSITIONAL, false); - if (asciiDomain === null) { - return failure; - } - - if (containsForbiddenHostCodePoint(asciiDomain)) { - return failure; - } - - const ipv4Host = parseIPv4(asciiDomain); - if (typeof ipv4Host === "number" || ipv4Host === failure) { - return ipv4Host; - } - - return asciiDomain; -} - -function parseOpaqueHost(input) { - if (containsForbiddenHostCodePointExcludingPercent(input)) { - return failure; - } - - let output = ""; - const decoded = punycode.ucs2.decode(input); - for (let i = 0; i < decoded.length; ++i) { - output += percentEncodeChar(decoded[i], isC0ControlPercentEncode); - } - return output; -} - -function findLongestZeroSequence(arr) { - let maxIdx = null; - let maxLen = 1; // only find elements > 1 - let currStart = null; - let currLen = 0; - - for (let i = 0; i < arr.length; ++i) { - if (arr[i] !== 0) { - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - - currStart = null; - currLen = 0; - } else { - if (currStart === null) { - currStart = i; - } - ++currLen; - } - } - - // if trailing zeros - if (currLen > maxLen) { - maxIdx = currStart; - maxLen = currLen; - } - - return { - idx: maxIdx, - len: maxLen - }; -} - -function serializeHost(host) { - if (typeof host === "number") { - return serializeIPv4(host); - } - - // IPv6 serializer - if (host instanceof Array) { - return "[" + serializeIPv6(host) + "]"; - } - - return host; -} - -function trimControlChars(url) { - return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, ""); -} - -function trimTabAndNewline(url) { - return url.replace(/\u0009|\u000A|\u000D/g, ""); -} - -function shortenPath(url) { - const path = url.path; - if (path.length === 0) { - return; - } - if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) { - return; - } - - path.pop(); -} - -function includesCredentials(url) { - return url.username !== "" || url.password !== ""; -} - -function cannotHaveAUsernamePasswordPort(url) { - return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file"; -} - -function isNormalizedWindowsDriveLetter(string) { - return /^[A-Za-z]:$/.test(string); -} - -function URLStateMachine(input, base, encodingOverride, url, stateOverride) { - this.pointer = 0; - this.input = input; - this.base = base || null; - this.encodingOverride = encodingOverride || "utf-8"; - this.stateOverride = stateOverride; - this.url = url; - this.failure = false; - this.parseError = false; - - if (!this.url) { - this.url = { - scheme: "", - username: "", - password: "", - host: null, - port: null, - path: [], - query: null, - fragment: null, - - cannotBeABaseURL: false - }; - - const res = trimControlChars(this.input); - if (res !== this.input) { - this.parseError = true; - } - this.input = res; - } - - const res = trimTabAndNewline(this.input); - if (res !== this.input) { - this.parseError = true; - } - this.input = res; - - this.state = stateOverride || "scheme start"; - - this.buffer = ""; - this.atFlag = false; - this.arrFlag = false; - this.passwordTokenSeenFlag = false; - - this.input = punycode.ucs2.decode(this.input); - - for (; this.pointer <= this.input.length; ++this.pointer) { - const c = this.input[this.pointer]; - const cStr = isNaN(c) ? undefined : String.fromCodePoint(c); - - // exec state machine - const ret = this["parse " + this.state](c, cStr); - if (!ret) { - break; // terminate algorithm - } else if (ret === failure) { - this.failure = true; - break; - } - } -} - -URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) { - if (isASCIIAlpha(c)) { - this.buffer += cStr.toLowerCase(); - this.state = "scheme"; - } else if (!this.stateOverride) { - this.state = "no scheme"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - - return true; -}; - -URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) { - if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) { - this.buffer += cStr.toLowerCase(); - } else if (c === 58) { - if (this.stateOverride) { - if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) { - return false; - } - - if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) { - return false; - } - - if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") { - return false; - } - - if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) { - return false; - } - } - this.url.scheme = this.buffer; - this.buffer = ""; - if (this.stateOverride) { - return false; - } - if (this.url.scheme === "file") { - if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) { - this.parseError = true; - } - this.state = "file"; - } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) { - this.state = "special relative or authority"; - } else if (isSpecial(this.url)) { - this.state = "special authority slashes"; - } else if (this.input[this.pointer + 1] === 47) { - this.state = "path or authority"; - ++this.pointer; - } else { - this.url.cannotBeABaseURL = true; - this.url.path.push(""); - this.state = "cannot-be-a-base-URL path"; - } - } else if (!this.stateOverride) { - this.buffer = ""; - this.state = "no scheme"; - this.pointer = -1; - } else { - this.parseError = true; - return failure; - } - - return true; -}; - -URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) { - if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) { - return failure; - } else if (this.base.cannotBeABaseURL && c === 35) { - this.url.scheme = this.base.scheme; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.url.cannotBeABaseURL = true; - this.state = "fragment"; - } else if (this.base.scheme === "file") { - this.state = "file"; - --this.pointer; - } else { - this.state = "relative"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "relative"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) { - if (c === 47) { - this.state = "authority"; - } else { - this.state = "path"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse relative"] = function parseRelative(c) { - this.url.scheme = this.base.scheme; - if (isNaN(c)) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 47) { - this.state = "relative slash"; - } else if (c === 63) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else if (isSpecial(this.url) && c === 92) { - this.parseError = true; - this.state = "relative slash"; - } else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.url.path = this.base.path.slice(0, this.base.path.length - 1); - - this.state = "path"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) { - if (isSpecial(this.url) && (c === 47 || c === 92)) { - if (c === 92) { - this.parseError = true; - } - this.state = "special authority ignore slashes"; - } else if (c === 47) { - this.state = "authority"; - } else { - this.url.username = this.base.username; - this.url.password = this.base.password; - this.url.host = this.base.host; - this.url.port = this.base.port; - this.state = "path"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) { - if (c === 47 && this.input[this.pointer + 1] === 47) { - this.state = "special authority ignore slashes"; - ++this.pointer; - } else { - this.parseError = true; - this.state = "special authority ignore slashes"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) { - if (c !== 47 && c !== 92) { - this.state = "authority"; - --this.pointer; - } else { - this.parseError = true; - } - - return true; -}; - -URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) { - if (c === 64) { - this.parseError = true; - if (this.atFlag) { - this.buffer = "%40" + this.buffer; - } - this.atFlag = true; - - // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars - const len = countSymbols(this.buffer); - for (let pointer = 0; pointer < len; ++pointer) { - const codePoint = this.buffer.codePointAt(pointer); - - if (codePoint === 58 && !this.passwordTokenSeenFlag) { - this.passwordTokenSeenFlag = true; - continue; - } - const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode); - if (this.passwordTokenSeenFlag) { - this.url.password += encodedCodePoints; - } else { - this.url.username += encodedCodePoints; - } - } - this.buffer = ""; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || - (isSpecial(this.url) && c === 92)) { - if (this.atFlag && this.buffer === "") { - this.parseError = true; - return failure; - } - this.pointer -= countSymbols(this.buffer) + 1; - this.buffer = ""; - this.state = "host"; - } else { - this.buffer += cStr; - } - - return true; -}; - -URLStateMachine.prototype["parse hostname"] = -URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) { - if (this.stateOverride && this.url.scheme === "file") { - --this.pointer; - this.state = "file host"; - } else if (c === 58 && !this.arrFlag) { - if (this.buffer === "") { - this.parseError = true; - return failure; - } - - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - - this.url.host = host; - this.buffer = ""; - this.state = "port"; - if (this.stateOverride === "hostname") { - return false; - } - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || - (isSpecial(this.url) && c === 92)) { - --this.pointer; - if (isSpecial(this.url) && this.buffer === "") { - this.parseError = true; - return failure; - } else if (this.stateOverride && this.buffer === "" && - (includesCredentials(this.url) || this.url.port !== null)) { - this.parseError = true; - return false; - } - - const host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - - this.url.host = host; - this.buffer = ""; - this.state = "path start"; - if (this.stateOverride) { - return false; - } - } else { - if (c === 91) { - this.arrFlag = true; - } else if (c === 93) { - this.arrFlag = false; - } - this.buffer += cStr; - } - - return true; -}; - -URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) { - if (isASCIIDigit(c)) { - this.buffer += cStr; - } else if (isNaN(c) || c === 47 || c === 63 || c === 35 || - (isSpecial(this.url) && c === 92) || - this.stateOverride) { - if (this.buffer !== "") { - const port = parseInt(this.buffer); - if (port > Math.pow(2, 16) - 1) { - this.parseError = true; - return failure; - } - this.url.port = port === defaultPort(this.url.scheme) ? null : port; - this.buffer = ""; - } - if (this.stateOverride) { - return false; - } - this.state = "path start"; - --this.pointer; - } else { - this.parseError = true; - return failure; - } - - return true; -}; - -const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]); - -URLStateMachine.prototype["parse file"] = function parseFile(c) { - this.url.scheme = "file"; - - if (c === 47 || c === 92) { - if (c === 92) { - this.parseError = true; - } - this.state = "file slash"; - } else if (this.base !== null && this.base.scheme === "file") { - if (isNaN(c)) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - } else if (c === 63) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - this.url.query = this.base.query; - this.url.fragment = ""; - this.state = "fragment"; - } else { - if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points - !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) || - (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points - !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) { - this.url.host = this.base.host; - this.url.path = this.base.path.slice(); - shortenPath(this.url); - } else { - this.parseError = true; - } - - this.state = "path"; - --this.pointer; - } - } else { - this.state = "path"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) { - if (c === 47 || c === 92) { - if (c === 92) { - this.parseError = true; - } - this.state = "file host"; - } else { - if (this.base !== null && this.base.scheme === "file") { - if (isNormalizedWindowsDriveLetterString(this.base.path[0])) { - this.url.path.push(this.base.path[0]); - } else { - this.url.host = this.base.host; - } - } - this.state = "path"; - --this.pointer; - } - - return true; -}; - -URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) { - if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) { - --this.pointer; - if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) { - this.parseError = true; - this.state = "path"; - } else if (this.buffer === "") { - this.url.host = ""; - if (this.stateOverride) { - return false; - } - this.state = "path start"; - } else { - let host = parseHost(this.buffer, isSpecial(this.url)); - if (host === failure) { - return failure; - } - if (host === "localhost") { - host = ""; - } - this.url.host = host; - - if (this.stateOverride) { - return false; - } - - this.buffer = ""; - this.state = "path start"; - } - } else { - this.buffer += cStr; - } - - return true; -}; - -URLStateMachine.prototype["parse path start"] = function parsePathStart(c) { - if (isSpecial(this.url)) { - if (c === 92) { - this.parseError = true; - } - this.state = "path"; - - if (c !== 47 && c !== 92) { - --this.pointer; - } - } else if (!this.stateOverride && c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (!this.stateOverride && c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else if (c !== undefined) { - this.state = "path"; - if (c !== 47) { - --this.pointer; - } - } - - return true; -}; - -URLStateMachine.prototype["parse path"] = function parsePath(c) { - if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) || - (!this.stateOverride && (c === 63 || c === 35))) { - if (isSpecial(this.url) && c === 92) { - this.parseError = true; - } - - if (isDoubleDot(this.buffer)) { - shortenPath(this.url); - if (c !== 47 && !(isSpecial(this.url) && c === 92)) { - this.url.path.push(""); - } - } else if (isSingleDot(this.buffer) && c !== 47 && - !(isSpecial(this.url) && c === 92)) { - this.url.path.push(""); - } else if (!isSingleDot(this.buffer)) { - if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) { - if (this.url.host !== "" && this.url.host !== null) { - this.parseError = true; - this.url.host = ""; - } - this.buffer = this.buffer[0] + ":"; - } - this.url.path.push(this.buffer); - } - this.buffer = ""; - if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) { - while (this.url.path.length > 1 && this.url.path[0] === "") { - this.parseError = true; - this.url.path.shift(); - } - } - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - // TODO: If c is not a URL code point and not "%", parse error. - - if (c === 37 && - (!isASCIIHex(this.input[this.pointer + 1]) || - !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - - this.buffer += percentEncodeChar(c, isPathPercentEncode); - } - - return true; -}; - -URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) { - if (c === 63) { - this.url.query = ""; - this.state = "query"; - } else if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } else { - // TODO: Add: not a URL code point - if (!isNaN(c) && c !== 37) { - this.parseError = true; - } - - if (c === 37 && - (!isASCIIHex(this.input[this.pointer + 1]) || - !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - - if (!isNaN(c)) { - this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode); - } - } - - return true; -}; - -URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) { - if (isNaN(c) || (!this.stateOverride && c === 35)) { - if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") { - this.encodingOverride = "utf-8"; - } - - const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead - for (let i = 0; i < buffer.length; ++i) { - if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 || - buffer[i] === 0x3C || buffer[i] === 0x3E) { - this.url.query += percentEncode(buffer[i]); - } else { - this.url.query += String.fromCodePoint(buffer[i]); - } - } - - this.buffer = ""; - if (c === 35) { - this.url.fragment = ""; - this.state = "fragment"; - } - } else { - // TODO: If c is not a URL code point and not "%", parse error. - if (c === 37 && - (!isASCIIHex(this.input[this.pointer + 1]) || - !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - - this.buffer += cStr; - } - - return true; -}; - -URLStateMachine.prototype["parse fragment"] = function parseFragment(c) { - if (isNaN(c)) ; else if (c === 0x0) { - this.parseError = true; - } else { - // TODO: If c is not a URL code point and not "%", parse error. - if (c === 37 && - (!isASCIIHex(this.input[this.pointer + 1]) || - !isASCIIHex(this.input[this.pointer + 2]))) { - this.parseError = true; - } - - this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode); - } - - return true; -}; - -function serializeURL(url, excludeFragment) { - let output = url.scheme + ":"; - if (url.host !== null) { - output += "//"; - - if (url.username !== "" || url.password !== "") { - output += url.username; - if (url.password !== "") { - output += ":" + url.password; - } - output += "@"; - } - - output += serializeHost(url.host); - - if (url.port !== null) { - output += ":" + url.port; - } - } else if (url.host === null && url.scheme === "file") { - output += "//"; - } - - if (url.cannotBeABaseURL) { - output += url.path[0]; - } else { - for (const string of url.path) { - output += "/" + string; - } - } - - if (url.query !== null) { - output += "?" + url.query; - } - - if (!excludeFragment && url.fragment !== null) { - output += "#" + url.fragment; - } - - return output; -} - -function serializeOrigin(tuple) { - let result = tuple.scheme + "://"; - result += serializeHost(tuple.host); - - if (tuple.port !== null) { - result += ":" + tuple.port; - } - - return result; -} - -module.exports.serializeURL = serializeURL; - -module.exports.serializeURLOrigin = function (url) { - // https://url.spec.whatwg.org/#concept-url-origin - switch (url.scheme) { - case "blob": - try { - return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0])); - } catch (e) { - // serializing an opaque origin returns "null" - return "null"; - } - case "ftp": - case "gopher": - case "http": - case "https": - case "ws": - case "wss": - return serializeOrigin({ - scheme: url.scheme, - host: url.host, - port: url.port - }); - case "file": - // spec says "exercise to the reader", chrome says "file://" - return "file://"; - default: - // serializing an opaque origin returns "null" - return "null"; - } -}; - -module.exports.basicURLParse = function (input, options) { - if (options === undefined) { - options = {}; - } - - const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride); - if (usm.failure) { - return "failure"; - } - - return usm.url; -}; - -module.exports.setTheUsername = function (url, username) { - url.username = ""; - const decoded = punycode.ucs2.decode(username); - for (let i = 0; i < decoded.length; ++i) { - url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode); - } -}; - -module.exports.setThePassword = function (url, password) { - url.password = ""; - const decoded = punycode.ucs2.decode(password); - for (let i = 0; i < decoded.length; ++i) { - url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode); - } -}; - -module.exports.serializeHost = serializeHost; - -module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort; - -module.exports.serializeInteger = function (integer) { - return String(integer); -}; - -module.exports.parseURL = function (input, options) { - if (options === undefined) { - options = {}; - } - - // We don't handle blobs, so this just delegates: - return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride }); -}; -}(urlStateMachine)); - -const usm = urlStateMachine.exports; - -URLImpl.implementation = class URLImpl { - constructor(constructorArgs) { - const url = constructorArgs[0]; - const base = constructorArgs[1]; - - let parsedBase = null; - if (base !== undefined) { - parsedBase = usm.basicURLParse(base); - if (parsedBase === "failure") { - throw new TypeError("Invalid base URL"); - } - } - - const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase }); - if (parsedURL === "failure") { - throw new TypeError("Invalid URL"); - } - - this._url = parsedURL; - - // TODO: query stuff - } - - get href() { - return usm.serializeURL(this._url); - } - - set href(v) { - const parsedURL = usm.basicURLParse(v); - if (parsedURL === "failure") { - throw new TypeError("Invalid URL"); - } - - this._url = parsedURL; - } - - get origin() { - return usm.serializeURLOrigin(this._url); - } - - get protocol() { - return this._url.scheme + ":"; - } - - set protocol(v) { - usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" }); - } - - get username() { - return this._url.username; - } - - set username(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - - usm.setTheUsername(this._url, v); - } - - get password() { - return this._url.password; - } - - set password(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - - usm.setThePassword(this._url, v); - } - - get host() { - const url = this._url; - - if (url.host === null) { - return ""; - } - - if (url.port === null) { - return usm.serializeHost(url.host); - } - - return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port); - } - - set host(v) { - if (this._url.cannotBeABaseURL) { - return; - } - - usm.basicURLParse(v, { url: this._url, stateOverride: "host" }); - } - - get hostname() { - if (this._url.host === null) { - return ""; - } - - return usm.serializeHost(this._url.host); - } - - set hostname(v) { - if (this._url.cannotBeABaseURL) { - return; - } - - usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" }); - } - - get port() { - if (this._url.port === null) { - return ""; - } - - return usm.serializeInteger(this._url.port); - } - - set port(v) { - if (usm.cannotHaveAUsernamePasswordPort(this._url)) { - return; - } - - if (v === "") { - this._url.port = null; - } else { - usm.basicURLParse(v, { url: this._url, stateOverride: "port" }); - } - } - - get pathname() { - if (this._url.cannotBeABaseURL) { - return this._url.path[0]; - } - - if (this._url.path.length === 0) { - return ""; - } - - return "/" + this._url.path.join("/"); - } - - set pathname(v) { - if (this._url.cannotBeABaseURL) { - return; - } - - this._url.path = []; - usm.basicURLParse(v, { url: this._url, stateOverride: "path start" }); - } - - get search() { - if (this._url.query === null || this._url.query === "") { - return ""; - } - - return "?" + this._url.query; - } - - set search(v) { - // TODO: query stuff - - const url = this._url; - - if (v === "") { - url.query = null; - return; - } - - const input = v[0] === "?" ? v.substring(1) : v; - url.query = ""; - usm.basicURLParse(input, { url, stateOverride: "query" }); - } - - get hash() { - if (this._url.fragment === null || this._url.fragment === "") { - return ""; - } - - return "#" + this._url.fragment; - } - - set hash(v) { - if (v === "") { - this._url.fragment = null; - return; - } - - const input = v[0] === "#" ? v.substring(1) : v; - this._url.fragment = ""; - usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" }); - } - - toJSON() { - return this.href; - } -}; - -(function (module) { - -const conversions = lib; -const utils$1 = utils.exports; -const Impl = URLImpl; - -const impl = utils$1.implSymbol; - -function URL(url) { - if (!this || this[impl] || !(this instanceof URL)) { - throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function."); - } - if (arguments.length < 1) { - throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present."); - } - const args = []; - for (let i = 0; i < arguments.length && i < 2; ++i) { - args[i] = arguments[i]; - } - args[0] = conversions["USVString"](args[0]); - if (args[1] !== undefined) { - args[1] = conversions["USVString"](args[1]); - } - - module.exports.setup(this, args); -} - -URL.prototype.toJSON = function toJSON() { - if (!this || !module.exports.is(this)) { - throw new TypeError("Illegal invocation"); - } - const args = []; - for (let i = 0; i < arguments.length && i < 0; ++i) { - args[i] = arguments[i]; - } - return this[impl].toJSON.apply(this[impl], args); -}; -Object.defineProperty(URL.prototype, "href", { - get() { - return this[impl].href; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].href = V; - }, - enumerable: true, - configurable: true -}); - -URL.prototype.toString = function () { - if (!this || !module.exports.is(this)) { - throw new TypeError("Illegal invocation"); - } - return this.href; -}; - -Object.defineProperty(URL.prototype, "origin", { - get() { - return this[impl].origin; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "protocol", { - get() { - return this[impl].protocol; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].protocol = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "username", { - get() { - return this[impl].username; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].username = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "password", { - get() { - return this[impl].password; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].password = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "host", { - get() { - return this[impl].host; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].host = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "hostname", { - get() { - return this[impl].hostname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hostname = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "port", { - get() { - return this[impl].port; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].port = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "pathname", { - get() { - return this[impl].pathname; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].pathname = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "search", { - get() { - return this[impl].search; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].search = V; - }, - enumerable: true, - configurable: true -}); - -Object.defineProperty(URL.prototype, "hash", { - get() { - return this[impl].hash; - }, - set(V) { - V = conversions["USVString"](V); - this[impl].hash = V; - }, - enumerable: true, - configurable: true -}); - - -module.exports = { - is(obj) { - return !!obj && obj[impl] instanceof Impl.implementation; - }, - create(constructorArgs, privateData) { - let obj = Object.create(URL.prototype); - this.setup(obj, constructorArgs, privateData); - return obj; - }, - setup(obj, constructorArgs, privateData) { - if (!privateData) privateData = {}; - privateData.wrapper = obj; - - obj[impl] = new Impl.implementation(constructorArgs, privateData); - obj[impl][utils$1.wrapperSymbol] = obj; - }, - interface: URL, - expose: { - Window: { URL: URL }, - Worker: { URL: URL } - } -}; -}(URL$2)); - -publicApi.URL = URL$2.exports.interface; -publicApi.serializeURL = urlStateMachine.exports.serializeURL; -publicApi.serializeURLOrigin = urlStateMachine.exports.serializeURLOrigin; -publicApi.basicURLParse = urlStateMachine.exports.basicURLParse; -publicApi.setTheUsername = urlStateMachine.exports.setTheUsername; -publicApi.setThePassword = urlStateMachine.exports.setThePassword; -publicApi.serializeHost = urlStateMachine.exports.serializeHost; -publicApi.serializeInteger = urlStateMachine.exports.serializeInteger; -publicApi.parseURL = urlStateMachine.exports.parseURL; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream__default["default"].Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream__default["default"].PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream__default["default"]) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream__default["default"]) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream__default["default"])) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http__default["default"].STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url__default["default"].URL || publicApi.URL; - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url__default["default"].parse; -const format_url = Url__default["default"].format; - -/** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} - */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 - */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } - - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} - -const streamDestructionSupported = 'destroy' in Stream__default["default"].Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream__default["default"].Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -const URL$1 = Url__default["default"].URL || publicApi.URL; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream__default["default"].PassThrough; - -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; - - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); -}; - -/** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; - - return orig === dest; -}; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https__default["default"] : http__default["default"]).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream__default["default"].Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - - if (response && response.body) { - destroyStream(response.body, err); - } - - finalize(); - }); - - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } - - if (response && response.body) { - destroyStream(response.body, err); - } - }); - - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; - - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib__default["default"].Z_SYNC_FLUSH, - finishFlush: zlib__default["default"].Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib__default["default"].createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib__default["default"].createInflate()); - } else { - body = body.pipe(zlib__default["default"].createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib__default["default"].createBrotliDecompress === 'function') { - body = body.pipe(zlib__default["default"].createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - - request.on('socket', function (s) { - socket = s; - }); - - request.on('response', function (response) { - const headers = response.headers; - - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; - - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} - -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} - -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -var ms = function (val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - -async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } -// CHECK_VERSION is a hardcoded version of the current data structure. -// If something is breaking, this needs to be manually adapted. -const CHECK_VERSION = 4; - -// run main -main() - .then(() => process.exit(0)) - .catch((err) => { - console.error(err); - process.exit(1); - }); - -async function main() { - const state = JSON.parse(process.argv[2]); - await Promise.race([check(state), timeout(state.timeout)]); -} - -async function check(state) { - // make the cache file if we haven't already - const config = await Config.new(state); - // get the signature - const signature = await getSignature(); - - const clientEventID = state.client_event_id || v4(); - - // format the URL - const urlObj = Url__default["default"].parse(state.endpoint, true); - const basepath = (urlObj.pathname || '').replace(/\/$/, ''); - urlObj.pathname = `${basepath}/v1/check/${state.product}`; - urlObj.query = { - checkpoint_version: CHECK_VERSION.toString(), - local_timestamp: state.local_timestamp, - information: state.information, - schema_providers: state.schema_providers, - schema_preview_features: state.schema_preview_features, - schema_generators_providers: state.schema_generators_providers, - command: state.command, - client_event_id: clientEventID, - signature, - project_hash: state.project_hash, - cli_path_hash: state.cli_path_hash, - arch: state.arch, - os: state.os, - node_version: state.node_version, - version: state.version, - ci: typeof state.ci !== 'undefined' ? String(state.ci) : undefined, - ci_name: state.ci_name || '', - cli_install_type: state.cli_install_type, - previous_client_event_id: await _asyncOptionalChain([(await config.get('output')), 'optionalAccess', async _ => _.client_event_id]), - check_if_update_available: String(state.check_if_update_available), - }; - - // When env.CHECKPOINT_DEBUG_STDOUT !== undefined, - // print what would be sent to the telemetry server without actually sending it - if (process.env.CHECKPOINT_DEBUG_STDOUT !== undefined) { - process.stdout.write('[checkpoint-client] debug\n'); - process.stdout.write(JSON.stringify(urlObj, null, ' ')); - return - } - - // send the request - const response = await fetch(Url__default["default"].format(urlObj), { - method: 'get', - timeout: state.timeout, - headers: { - Accept: 'application/json', - 'User-Agent': 'prisma/js-checkpoint', - }, - }); - if (!response.ok) { - throw new Error(`checkpoint response error: ${response.status} ${response.statusText}`) - } - // read the response body - const output = await response.json(); - - // create or update the configuration - // Only do so if there's a need to check if an update is available - // That is to say, if the cache is stale or doesn't exist - if (state.check_if_update_available) { - await config.set({ - last_reminder: 0, - cached_at: Date.now(), - version: state.version, - cli_path: state.cli_path, - output, - }); - } - - // write to process.stdout - process.stdout.write(JSON.stringify(output, null, ' ')); -} - -// this should take a maximum of 5 seconds -async function timeout(millis) { - await sleep(millis); - throw new Error(`checkpoint-client: process timed out after ${ms(millis)}`) -} - -// sleep helper method -function sleep(ms) { - return new Promise((resolve) => { - // we want to unreference this timeout to ensure - // that it doesn't hold up the process from exiting - setTimeout(resolve, ms).unref(); - }) -} diff --git a/mcp-server/node_modules/prisma/build/index.js b/mcp-server/node_modules/prisma/build/index.js deleted file mode 100644 index 65f0fe3..0000000 --- a/mcp-server/node_modules/prisma/build/index.js +++ /dev/null @@ -1,2591 +0,0 @@ -#!/usr/bin/env node -"use strict";var lOe=Object.create;var Ag=Object.defineProperty;var fOe=Object.getOwnPropertyDescriptor;var pOe=Object.getOwnPropertyNames;var dOe=Object.getPrototypeOf,hOe=Object.prototype.hasOwnProperty;var QB=e=>{throw TypeError(e)};var mOe=(e,r,n)=>r in e?Ag(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Np=(e,r)=>()=>(e&&(r=e(e=0)),r);var S=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Xn=(e,r)=>{for(var n in r)Ag(e,n,{get:r[n],enumerable:!0})},jx=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of pOe(r))!hOe.call(e,a)&&a!==n&&Ag(e,a,{get:()=>r[a],enumerable:!(i=fOe(r,a))||i.enumerable});return e},Bx=(e,r,n)=>(jx(e,r,"default"),n&&jx(n,r,"default")),B=(e,r,n)=>(n=e!=null?lOe(dOe(e)):{},jx(r||!e||!e.__esModule?Ag(n,"default",{value:e,enumerable:!0}):n,e)),gOe=e=>jx(Ag({},"__esModule",{value:!0}),e);var Je=(e,r,n)=>mOe(e,typeof r!="symbol"?r+"":r,n),ZT=(e,r,n)=>r.has(e)||QB("Cannot "+n);var $=(e,r,n)=>(ZT(e,r,"read from private field"),n?n.call(e):r.get(e)),Ee=(e,r,n)=>r.has(e)?QB("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n),fe=(e,r,n,i)=>(ZT(e,r,"write to private field"),i?i.call(e,n):r.set(e,n),n),de=(e,r,n)=>(ZT(e,r,"access private method"),n);var Ic=(e,r,n,i)=>({set _(a){fe(e,r,a,n)},get _(){return $(e,r,i)}});var dR=S((wAt,pR)=>{"use strict";var st=pR.exports;pR.exports.default=st;var Rt="\x1B[",Ng="\x1B]",qp="\x07",Xx=";",y9=process.env.TERM_PROGRAM==="Apple_Terminal";st.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Rt+(e+1)+"G":Rt+(r+1)+";"+(e+1)+"H"};st.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let n="";return e<0?n+=Rt+-e+"D":e>0&&(n+=Rt+e+"C"),r<0?n+=Rt+-r+"A":r>0&&(n+=Rt+r+"B"),n};st.cursorUp=(e=1)=>Rt+e+"A";st.cursorDown=(e=1)=>Rt+e+"B";st.cursorForward=(e=1)=>Rt+e+"C";st.cursorBackward=(e=1)=>Rt+e+"D";st.cursorLeft=Rt+"G";st.cursorSavePosition=y9?"\x1B7":Rt+"s";st.cursorRestorePosition=y9?"\x1B8":Rt+"u";st.cursorGetPosition=Rt+"6n";st.cursorNextLine=Rt+"E";st.cursorPrevLine=Rt+"F";st.cursorHide=Rt+"?25l";st.cursorShow=Rt+"?25h";st.eraseLines=e=>{let r="";for(let n=0;n[Ng,"8",Xx,Xx,r,qp,e,Ng,"8",Xx,Xx,qp].join("");st.image=(e,r={})=>{let n=`${Ng}1337;File=inline=1`;return r.width&&(n+=`;width=${r.width}`),r.height&&(n+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+qp};st.iTerm={setCwd:(e=process.cwd())=>`${Ng}50;CurrentDir=${e}${qp}`,annotation:(e,r={})=>{let n=`${Ng}1337;`,i=typeof r.x<"u",a=typeof r.y<"u";if((i||a)&&!(i&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?n+=(i?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):n+=e,n+qp}}});var Jx=S((_At,b9)=>{"use strict";b9.exports=(e,r=process.argv)=>{let n=e.startsWith("-")?"":e.length===1?"-":"--",i=r.indexOf(n+e),a=r.indexOf("--");return i!==-1&&(a===-1||i{"use strict";var iIe=require("os"),x9=require("tty"),vs=Jx(),{env:rn}=process,Nc;vs("no-color")||vs("no-colors")||vs("color=false")||vs("color=never")?Nc=0:(vs("color")||vs("colors")||vs("color=true")||vs("color=always"))&&(Nc=1);"FORCE_COLOR"in rn&&(rn.FORCE_COLOR==="true"?Nc=1:rn.FORCE_COLOR==="false"?Nc=0:Nc=rn.FORCE_COLOR.length===0?1:Math.min(parseInt(rn.FORCE_COLOR,10),3));function hR(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function mR(e,r){if(Nc===0)return 0;if(vs("color=16m")||vs("color=full")||vs("color=truecolor"))return 3;if(vs("color=256"))return 2;if(e&&!r&&Nc===void 0)return 0;let n=Nc||0;if(rn.TERM==="dumb")return n;if(process.platform==="win32"){let i=iIe.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in rn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in rn)||rn.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in rn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rn.TEAMCITY_VERSION)?1:0;if(rn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in rn){let i=parseInt((rn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rn.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rn.TERM)||"COLORTERM"in rn?1:n}function sIe(e){let r=mR(e,e&&e.isTTY);return hR(r)}w9.exports={supportsColor:sIe,stdout:hR(mR(!0,x9.isatty(1))),stderr:hR(mR(!0,x9.isatty(2)))}});var S9=S((SAt,E9)=>{"use strict";var aIe=gR(),jp=Jx();function _9(e){if(/^\d{3,4}$/.test(e)){let n=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(n[1],10),patch:parseInt(n[2],10)}}let r=(e||"").split(".").map(n=>parseInt(n,10));return{major:r[0],minor:r[1],patch:r[2]}}function vR(e){let{env:r}=process;if("FORCE_HYPERLINK"in r)return!(r.FORCE_HYPERLINK.length>0&&parseInt(r.FORCE_HYPERLINK,10)===0);if(jp("no-hyperlink")||jp("no-hyperlinks")||jp("hyperlink=false")||jp("hyperlink=never"))return!1;if(jp("hyperlink=true")||jp("hyperlink=always")||"NETLIFY"in r)return!0;if(!aIe.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in r||"TEAMCITY_VERSION"in r)return!1;if("TERM_PROGRAM"in r){let n=_9(r.TERM_PROGRAM_VERSION);switch(r.TERM_PROGRAM){case"iTerm.app":return n.major===3?n.minor>=1:n.major>3;case"WezTerm":return n.major>=20200620;case"vscode":return n.major>1||n.major===1&&n.minor>=72}}if("VTE_VERSION"in r){if(r.VTE_VERSION==="0.50.0")return!1;let n=_9(r.VTE_VERSION);return n.major>0||n.minor>=50}return!1}E9.exports={supportsHyperlink:vR,stdout:vR(process.stdout),stderr:vR(process.stderr)}});var bR=S((DAt,Mg)=>{"use strict";var oIe=dR(),yR=S9(),D9=(e,r,{target:n="stdout",...i}={})=>yR[n]?oIe.link(e,r):i.fallback===!1?e:typeof i.fallback=="function"?i.fallback(e,r):`${e} (\u200B${r}\u200B)`;Mg.exports=(e,r,n={})=>D9(e,r,n);Mg.exports.stderr=(e,r,n={})=>D9(e,r,{target:"stderr",...n});Mg.exports.isSupported=yR.stdout;Mg.exports.stderr.isSupported=yR.stderr});var O9=S((TAt,A9)=>{"use strict";A9.exports=R9;R9.sync=uIe;var P9=require("fs");function cIe(e,r){var n=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var i=0;i{"use strict";$9.exports=k9;k9.sync=lIe;var I9=require("fs");function k9(e,r,n){I9.stat(e,function(i,a){n(i,i?!1:F9(a,r))})}function lIe(e,r){return F9(I9.statSync(e),r)}function F9(e,r){return e.isFile()&&fIe(e,r)}function fIe(e,r){var n=e.mode,i=e.uid,a=e.gid,o=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),c=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),u=parseInt("100",8),l=parseInt("010",8),f=parseInt("001",8),p=u|l,g=n&f||n&l&&a===c||n&u&&i===o||n&p&&o===0;return g}});var M9=S((OAt,N9)=>{"use strict";var AAt=require("fs"),Qx;process.platform==="win32"||global.TESTING_WINDOWS?Qx=O9():Qx=L9();N9.exports=wR;wR.sync=pIe;function wR(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,a){wR(e,r||{},function(o,c){o?a(o):i(c)})})}Qx(e,r||{},function(i,a){i&&(i.code==="EACCES"||r&&r.ignoreErrors)&&(i=null,a=!1),n(i,a)})}function pIe(e,r){try{return Qx.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var H9=S((IAt,W9)=>{"use strict";var Bp=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",q9=require("path"),dIe=Bp?";":":",j9=M9(),B9=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),U9=(e,r)=>{let n=r.colon||dIe,i=e.match(/\//)||Bp&&e.match(/\\/)?[""]:[...Bp?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],a=Bp?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Bp?a.split(n):[""];return Bp&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:a}},G9=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:i,pathExt:a,pathExtExe:o}=U9(e,r),c=[],u=f=>new Promise((p,g)=>{if(f===i.length)return r.all&&c.length?p(c):g(B9(e));let v=i[f],x=/^".*"$/.test(v)?v.slice(1,-1):v,E=q9.join(x,e),D=!x&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;p(l(D,f,0))}),l=(f,p,g)=>new Promise((v,x)=>{if(g===a.length)return v(u(p+1));let E=a[g];j9(f+E,{pathExt:o},(D,P)=>{if(!D&&P)if(r.all)c.push(f+E);else return v(f+E);return v(l(f,p,g+1))})});return n?u(0).then(f=>n(null,f),n):u(0)},hIe=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:i,pathExtExe:a}=U9(e,r),o=[];for(let c=0;c{"use strict";var z9=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};_R.exports=z9;_R.exports.default=z9});var X9=S((FAt,K9)=>{"use strict";var V9=require("path"),mIe=H9(),gIe=ER();function Y9(e,r){let n=e.options.env||process.env,i=process.cwd(),a=e.options.cwd!=null,o=a&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let c;try{c=mIe.sync(e.command,{path:n[gIe({env:n})],pathExt:r?V9.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return c&&(c=V9.resolve(a?e.options.cwd:"",c)),c}function vIe(e){return Y9(e)||Y9(e,!0)}K9.exports=vIe});var J9=S(($At,DR)=>{"use strict";var SR=/([()\][%!^"`<>&|;, *?])/g;function yIe(e){return e=e.replace(SR,"^$1"),e}function bIe(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(SR,"^$1"),r&&(e=e.replace(SR,"^$1")),e}DR.exports.command=yIe;DR.exports.argument=bIe});var Z9=S((LAt,Q9)=>{"use strict";Q9.exports=/^#!(.*)/});var tU=S((NAt,eU)=>{"use strict";var xIe=Z9();eU.exports=(e="")=>{let r=e.match(xIe);if(!r)return null;let[n,i]=r[0].replace(/#! ?/,"").split(" "),a=n.split("/").pop();return a==="env"?i:i?`${a} ${i}`:a}});var nU=S((MAt,rU)=>{"use strict";var CR=require("fs"),wIe=tU();function _Ie(e){let n=Buffer.alloc(150),i;try{i=CR.openSync(e,"r"),CR.readSync(i,n,0,150,0),CR.closeSync(i)}catch{}return wIe(n.toString())}rU.exports=_Ie});var oU=S((qAt,aU)=>{"use strict";var EIe=require("path"),iU=X9(),sU=J9(),SIe=nU(),DIe=process.platform==="win32",CIe=/\.(?:com|exe)$/i,PIe=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function TIe(e){e.file=iU(e);let r=e.file&&SIe(e.file);return r?(e.args.unshift(e.file),e.command=r,iU(e)):e.file}function RIe(e){if(!DIe)return e;let r=TIe(e),n=!CIe.test(r);if(e.options.forceShell||n){let i=PIe.test(r);e.command=EIe.normalize(e.command),e.command=sU.command(e.command),e.args=e.args.map(o=>sU.argument(o,i));let a=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${a}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function AIe(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let i={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?i:RIe(i)}aU.exports=AIe});var lU=S((jAt,uU)=>{"use strict";var PR=process.platform==="win32";function TR(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function OIe(e,r){if(!PR)return;let n=e.emit;e.emit=function(i,a){if(i==="exit"){let o=cU(a,r,"spawn");if(o)return n.call(e,"error",o)}return n.apply(e,arguments)}}function cU(e,r){return PR&&e===1&&!r.file?TR(r.original,"spawn"):null}function IIe(e,r){return PR&&e===1&&!r.file?TR(r.original,"spawnSync"):null}uU.exports={hookChildProcess:OIe,verifyENOENT:cU,verifyENOENTSync:IIe,notFoundError:TR}});var OR=S((BAt,Up)=>{"use strict";var fU=require("child_process"),RR=oU(),AR=lU();function pU(e,r,n){let i=RR(e,r,n),a=fU.spawn(i.command,i.args,i.options);return AR.hookChildProcess(a,i),a}function kIe(e,r,n){let i=RR(e,r,n),a=fU.spawnSync(i.command,i.args,i.options);return a.error=a.error||AR.verifyENOENTSync(a.status,i),a}Up.exports=pU;Up.exports.spawn=pU;Up.exports.sync=kIe;Up.exports._parse=RR;Up.exports._enoent=AR});var hU=S((UAt,dU)=>{"use strict";dU.exports=e=>{let r=typeof e=="string"?` -`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}});var vU=S((GAt,jg)=>{"use strict";var qg=require("path"),mU=ER(),gU=e=>{e={cwd:process.cwd(),path:process.env[mU()],execPath:process.execPath,...e};let r,n=qg.resolve(e.cwd),i=[];for(;r!==n;)i.push(qg.join(n,"node_modules/.bin")),r=n,n=qg.resolve(n,"..");let a=qg.resolve(e.cwd,e.execPath,"..");return i.push(a),i.concat(e.path).join(qg.delimiter)};jg.exports=gU;jg.exports.default=gU;jg.exports.env=e=>{e={env:process.env,...e};let r={...e.env},n=mU({env:r});return e.path=r[n],r[n]=jg.exports(e),r}});var bU=S((WAt,IR)=>{"use strict";var yU=(e,r)=>{for(let n of Reflect.ownKeys(r))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));return e};IR.exports=yU;IR.exports.default=yU});var kR=S((HAt,ew)=>{"use strict";var FIe=bU(),Zx=new WeakMap,xU=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,i=0,a=e.displayName||e.name||"",o=function(...c){if(Zx.set(o,++i),i===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return n};return FIe(o,e),Zx.set(o,i),o};ew.exports=xU;ew.exports.default=xU;ew.exports.callCount=e=>{if(!Zx.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Zx.get(e)}});var wU=S(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});tw.SIGNALS=void 0;var $Ie=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];tw.SIGNALS=$Ie});var FR=S(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.SIGRTMAX=Gp.getRealtimeSignals=void 0;var LIe=function(){let e=EU-_U+1;return Array.from({length:e},NIe)};Gp.getRealtimeSignals=LIe;var NIe=function(e,r){return{name:`SIGRT${r+1}`,number:_U+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},_U=34,EU=64;Gp.SIGRTMAX=EU});var SU=S(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});rw.getSignals=void 0;var MIe=require("os"),qIe=wU(),jIe=FR(),BIe=function(){let e=(0,jIe.getRealtimeSignals)();return[...qIe.SIGNALS,...e].map(UIe)};rw.getSignals=BIe;var UIe=function({name:e,number:r,description:n,action:i,forced:a=!1,standard:o}){let{signals:{[e]:c}}=MIe.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:i,forced:a,standard:o}}});var CU=S(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.signalsByNumber=Wp.signalsByName=void 0;var GIe=require("os"),DU=SU(),WIe=FR(),HIe=function(){return(0,DU.getSignals)().reduce(zIe,{})},zIe=function(e,{name:r,number:n,description:i,supported:a,action:o,forced:c,standard:u}){return{...e,[r]:{name:r,number:n,description:i,supported:a,action:o,forced:c,standard:u}}},VIe=HIe();Wp.signalsByName=VIe;var YIe=function(){let e=(0,DU.getSignals)(),r=WIe.SIGRTMAX+1,n=Array.from({length:r},(i,a)=>KIe(a,e));return Object.assign({},...n)},KIe=function(e,r){let n=XIe(e,r);if(n===void 0)return{};let{name:i,description:a,supported:o,action:c,forced:u,standard:l}=n;return{[e]:{name:i,number:e,description:a,supported:o,action:c,forced:u,standard:l}}},XIe=function(e,r){let n=r.find(({name:i})=>GIe.constants.signals[i]===e);return n!==void 0?n:r.find(i=>i.number===e)},JIe=YIe();Wp.signalsByNumber=JIe});var TU=S((XAt,PU)=>{"use strict";var{signalsByName:QIe}=CU(),ZIe=({timedOut:e,timeout:r,errorCode:n,signal:i,signalDescription:a,exitCode:o,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:i!==void 0?`was killed with ${i} (${a})`:o!==void 0?`failed with exit code ${o}`:"failed",eke=({stdout:e,stderr:r,all:n,error:i,signal:a,exitCode:o,command:c,escapedCommand:u,timedOut:l,isCanceled:f,killed:p,parsed:{options:{timeout:g}}})=>{o=o===null?void 0:o,a=a===null?void 0:a;let v=a===void 0?void 0:QIe[a].description,x=i&&i.code,D=`Command ${ZIe({timedOut:l,timeout:g,errorCode:x,signal:a,signalDescription:v,exitCode:o,isCanceled:f})}: ${c}`,P=Object.prototype.toString.call(i)==="[object Error]",R=P?`${D} -${i.message}`:D,k=[R,r,e].filter(Boolean).join(` -`);return P?(i.originalMessage=i.message,i.message=k):i=new Error(k),i.shortMessage=R,i.command=c,i.escapedCommand=u,i.exitCode=o,i.signal=a,i.signalDescription=v,i.stdout=e,i.stderr=r,n!==void 0&&(i.all=n),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=f,i.killed=p&&!l,i};PU.exports=eke});var AU=S((JAt,$R)=>{"use strict";var nw=["stdin","stdout","stderr"],tke=e=>nw.some(r=>e[r]!==void 0),RU=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return nw.map(i=>e[i]);if(tke(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${nw.map(i=>`\`${i}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let n=Math.max(r.length,nw.length);return Array.from({length:n},(i,a)=>r[a])};$R.exports=RU;$R.exports.node=e=>{let r=RU(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var OU=S((QAt,iw)=>{"use strict";iw.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&iw.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&iw.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var MR=S((ZAt,Vp)=>{"use strict";var ar=global.process,Dl=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};Dl(ar)?(IU=require("assert"),Hp=OU(),kU=/^win/i.test(ar.platform),Bg=require("events"),typeof Bg!="function"&&(Bg=Bg.EventEmitter),ar.__signal_exit_emitter__?nn=ar.__signal_exit_emitter__:(nn=ar.__signal_exit_emitter__=new Bg,nn.count=0,nn.emitted={}),nn.infinite||(nn.setMaxListeners(1/0),nn.infinite=!0),Vp.exports=function(e,r){if(!Dl(global.process))return function(){};IU.equal(typeof e,"function","a callback must be provided for exit handler"),zp===!1&&LR();var n="exit";r&&r.alwaysLast&&(n="afterexit");var i=function(){nn.removeListener(n,e),nn.listeners("exit").length===0&&nn.listeners("afterexit").length===0&&sw()};return nn.on(n,e),i},sw=function(){!zp||!Dl(global.process)||(zp=!1,Hp.forEach(function(r){try{ar.removeListener(r,aw[r])}catch{}}),ar.emit=ow,ar.reallyExit=NR,nn.count-=1)},Vp.exports.unload=sw,Cl=function(r,n,i){nn.emitted[r]||(nn.emitted[r]=!0,nn.emit(r,n,i))},aw={},Hp.forEach(function(e){aw[e]=function(){if(Dl(global.process)){var n=ar.listeners(e);n.length===nn.count&&(sw(),Cl("exit",null,e),Cl("afterexit",null,e),kU&&e==="SIGHUP"&&(e="SIGINT"),ar.kill(ar.pid,e))}}}),Vp.exports.signals=function(){return Hp},zp=!1,LR=function(){zp||!Dl(global.process)||(zp=!0,nn.count+=1,Hp=Hp.filter(function(r){try{return ar.on(r,aw[r]),!0}catch{return!1}}),ar.emit=$U,ar.reallyExit=FU)},Vp.exports.load=LR,NR=ar.reallyExit,FU=function(r){Dl(global.process)&&(ar.exitCode=r||0,Cl("exit",ar.exitCode,null),Cl("afterexit",ar.exitCode,null),NR.call(ar,ar.exitCode))},ow=ar.emit,$U=function(r,n){if(r==="exit"&&Dl(global.process)){n!==void 0&&(ar.exitCode=n);var i=ow.apply(this,arguments);return Cl("exit",ar.exitCode,null),Cl("afterexit",ar.exitCode,null),i}else return ow.apply(this,arguments)}):Vp.exports=function(){return function(){}};var IU,Hp,kU,Bg,nn,sw,Cl,aw,zp,LR,NR,FU,ow,$U});var NU=S((eOt,LU)=>{"use strict";var rke=require("os"),nke=MR(),ike=1e3*5,ske=(e,r="SIGTERM",n={})=>{let i=e(r);return ake(e,r,n,i),i},ake=(e,r,n,i)=>{if(!oke(r,n,i))return;let a=uke(n),o=setTimeout(()=>{e("SIGKILL")},a);o.unref&&o.unref()},oke=(e,{forceKillAfterTimeout:r},n)=>cke(e)&&r!==!1&&n,cke=e=>e===rke.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",uke=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ike;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},lke=(e,r)=>{e.kill()&&(r.isCanceled=!0)},fke=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},pke=(e,{timeout:r,killSignal:n="SIGTERM"},i)=>{if(r===0||r===void 0)return i;let a,o=new Promise((u,l)=>{a=setTimeout(()=>{fke(e,n,l)},r)}),c=i.finally(()=>{clearTimeout(a)});return Promise.race([o,c])},dke=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},hke=async(e,{cleanup:r,detached:n},i)=>{if(!r||n)return i;let a=nke(()=>{e.kill()});return i.finally(()=>{a()})};LU.exports={spawnedKill:ske,spawnedCancel:lke,setupTimeout:pke,validateTimeout:dke,setExitHandler:hke}});var cw=S((tOt,MU)=>{"use strict";var Ua=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ua.writable=e=>Ua(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ua.readable=e=>Ua(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ua.duplex=e=>Ua.writable(e)&&Ua.readable(e);Ua.transform=e=>Ua.duplex(e)&&typeof e._transform=="function";MU.exports=Ua});var jU=S((rOt,qU)=>{"use strict";var{PassThrough:mke}=require("stream");qU.exports=e=>{e={...e};let{array:r}=e,{encoding:n}=e,i=n==="buffer",a=!1;r?a=!(n||i):n=n||"utf8",i&&(n=null);let o=new mke({objectMode:a});n&&o.setEncoding(n);let c=0,u=[];return o.on("data",l=>{u.push(l),a?c=u.length:c+=l.length}),o.getBufferedValue=()=>r?u:i?Buffer.concat(u,c):u.join(""),o.getBufferedLength=()=>c,o}});var BU=S((nOt,Ug)=>{"use strict";var{constants:gke}=require("buffer"),vke=require("stream"),{promisify:yke}=require("util"),bke=jU(),xke=yke(vke.pipeline),uw=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function qR(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:n}=r,i=bke(r);return await new Promise((a,o)=>{let c=u=>{u&&i.getBufferedLength()<=gke.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),o(u)};(async()=>{try{await xke(e,i),a()}catch(u){c(u)}})(),i.on("data",()=>{i.getBufferedLength()>n&&c(new uw)})}),i.getBufferedValue()}Ug.exports=qR;Ug.exports.buffer=(e,r)=>qR(e,{...r,encoding:"buffer"});Ug.exports.array=(e,r)=>qR(e,{...r,array:!0});Ug.exports.MaxBufferError=uw});var GU=S((iOt,UU)=>{"use strict";var{PassThrough:wke}=require("stream");UU.exports=function(){var e=[],r=new wke({objectMode:!0});return r.setMaxListeners(0),r.add=n,r.isEmpty=i,r.on("unpipe",a),Array.prototype.slice.call(arguments).forEach(n),r;function n(o){return Array.isArray(o)?(o.forEach(n),this):(e.push(o),o.once("end",a.bind(null,o)),o.once("error",r.emit.bind(r,"error")),o.pipe(r,{end:!1}),this)}function i(){return e.length==0}function a(o){e=e.filter(function(c){return c!==o}),!e.length&&r.readable&&r.end()}}});var VU=S((sOt,zU)=>{"use strict";var HU=cw(),WU=BU(),_ke=GU(),Eke=(e,r)=>{r===void 0||e.stdin===void 0||(HU(r)?r.pipe(e.stdin):e.stdin.end(r))},Ske=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=_ke();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},jR=async(e,r)=>{if(e){e.destroy();try{return await r}catch(n){return n.bufferedData}}},BR=(e,{encoding:r,buffer:n,maxBuffer:i})=>{if(!(!e||!n))return r?WU(e,{encoding:r,maxBuffer:i}):WU.buffer(e,{maxBuffer:i})},Dke=async({stdout:e,stderr:r,all:n},{encoding:i,buffer:a,maxBuffer:o},c)=>{let u=BR(e,{encoding:i,buffer:a,maxBuffer:o}),l=BR(r,{encoding:i,buffer:a,maxBuffer:o}),f=BR(n,{encoding:i,buffer:a,maxBuffer:o*2});try{return await Promise.all([c,u,l,f])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},jR(e,u),jR(r,l),jR(n,f)])}},Cke=({input:e})=>{if(HU(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};zU.exports={handleInput:Eke,makeAllStream:Ske,getSpawnedResult:Dke,validateInputSync:Cke}});var KU=S((aOt,YU)=>{"use strict";var Pke=(async()=>{})().constructor.prototype,Tke=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Pke,e)]),Rke=(e,r)=>{for(let[n,i]of Tke){let a=typeof r=="function"?(...o)=>Reflect.apply(i.value,r(),o):i.value.bind(r);Reflect.defineProperty(e,n,{...i,value:a})}return e},Ake=e=>new Promise((r,n)=>{e.on("exit",(i,a)=>{r({exitCode:i,signal:a})}),e.on("error",i=>{n(i)}),e.stdin&&e.stdin.on("error",i=>{n(i)})});YU.exports={mergePromise:Rke,getSpawnedPromise:Ake}});var QU=S((oOt,JU)=>{"use strict";var XU=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],Oke=/^[\w.-]+$/,Ike=/"/g,kke=e=>typeof e!="string"||Oke.test(e)?e:`"${e.replace(Ike,'\\"')}"`,Fke=(e,r)=>XU(e,r).join(" "),$ke=(e,r)=>XU(e,r).map(n=>kke(n)).join(" "),Lke=/ +/g,Nke=e=>{let r=[];for(let n of e.trim().split(Lke)){let i=r[r.length-1];i&&i.endsWith("\\")?r[r.length-1]=`${i.slice(0,-1)} ${n}`:r.push(n)}return r};JU.exports={joinCommand:Fke,getEscapedCommand:$ke,parseCommand:Nke}});var Pl=S((cOt,Yp)=>{"use strict";var Mke=require("path"),UR=require("child_process"),qke=OR(),jke=hU(),Bke=vU(),Uke=kR(),lw=TU(),e7=AU(),{spawnedKill:Gke,spawnedCancel:Wke,setupTimeout:Hke,validateTimeout:zke,setExitHandler:Vke}=NU(),{handleInput:Yke,getSpawnedResult:Kke,makeAllStream:Xke,validateInputSync:Jke}=VU(),{mergePromise:ZU,getSpawnedPromise:Qke}=KU(),{joinCommand:t7,parseCommand:r7,getEscapedCommand:n7}=QU(),Zke=1e3*1e3*100,eFe=({env:e,extendEnv:r,preferLocal:n,localDir:i,execPath:a})=>{let o=r?{...process.env,...e}:e;return n?Bke.env({env:o,cwd:i,execPath:a}):o},i7=(e,r,n={})=>{let i=qke._parse(e,r,n);return e=i.command,r=i.args,n=i.options,n={maxBuffer:Zke,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=eFe(n),n.stdio=e7(n),process.platform==="win32"&&Mke.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:i}},Gg=(e,r,n)=>typeof r!="string"&&!Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?jke(r):r,fw=(e,r,n)=>{let i=i7(e,r,n),a=t7(e,r),o=n7(e,r);zke(i.options);let c;try{c=UR.spawn(i.file,i.args,i.options)}catch(x){let E=new UR.ChildProcess,D=Promise.reject(lw({error:x,stdout:"",stderr:"",all:"",command:a,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return ZU(E,D)}let u=Qke(c),l=Hke(c,i.options,u),f=Vke(c,i.options,l),p={isCanceled:!1};c.kill=Gke.bind(null,c.kill.bind(c)),c.cancel=Wke.bind(null,c,p);let v=Uke(async()=>{let[{error:x,exitCode:E,signal:D,timedOut:P},R,k,F]=await Kke(c,i.options,f),L=Gg(i.options,R),U=Gg(i.options,k),V=Gg(i.options,F);if(x||E!==0||D!==null){let j=lw({error:x,exitCode:E,signal:D,stdout:L,stderr:U,all:V,command:a,escapedCommand:o,parsed:i,timedOut:P,isCanceled:p.isCanceled,killed:c.killed});if(!i.options.reject)return j;throw j}return{command:a,escapedCommand:o,exitCode:0,stdout:L,stderr:U,all:V,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Yke(c,i.options.input),c.all=Xke(c,i.options),ZU(c,v)};Yp.exports=fw;Yp.exports.sync=(e,r,n)=>{let i=i7(e,r,n),a=t7(e,r),o=n7(e,r);Jke(i.options);let c;try{c=UR.spawnSync(i.file,i.args,i.options)}catch(f){throw lw({error:f,stdout:"",stderr:"",all:"",command:a,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=Gg(i.options,c.stdout,c.error),l=Gg(i.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let f=lw({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:a,escapedCommand:o,parsed:i,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!i.options.reject)return f;throw f}return{command:a,escapedCommand:o,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Yp.exports.command=(e,r)=>{let[n,...i]=r7(e);return fw(n,i,r)};Yp.exports.commandSync=(e,r)=>{let[n,...i]=r7(e);return fw.sync(n,i,r)};Yp.exports.node=(e,r,n={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(n=r,r=[]);let i=e7.node(n),a=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:c=a}=n;return fw(o,[...c,e,...Array.isArray(r)?r:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var a7=S((uOt,s7)=>{"use strict";s7.exports=e=>function(){let r=arguments.length,n=new Array(r);for(let i=0;i{n.push((o,c)=>{o?a(o):i(c)}),e.apply(null,n)})}});var mi=S((lOt,o7)=>{"use strict";var pw=require("fs"),tFe=a7(),rFe=e=>[typeof pw[e]=="function",!e.match(/Sync$/),!e.match(/^[A-Z]/),!e.match(/^create/),!e.match(/^(un)?watch/)].every(Boolean),nFe=e=>{let r=pw[e];return tFe(r)},iFe=()=>{let e={};return Object.keys(pw).forEach(r=>{rFe(r)?r==="exists"?e.exists=()=>{throw new Error("fs.exists() is deprecated")}:e[r]=nFe(r):e[r]=pw[r]}),e};o7.exports=iFe()});var Sn=S((fOt,f7)=>{"use strict";var sFe=e=>{let r=n=>["a","e","i","o","u"].indexOf(n[0])!==-1?`an ${n}`:`a ${n}`;return e.map(r).join(" or ")},c7=e=>/array of /.test(e),u7=e=>e.split(" of ")[1],l7=e=>c7(e)?l7(u7(e)):["string","number","boolean","array","object","buffer","null","undefined","function"].some(r=>r===e),Wg=e=>e===null?"null":Array.isArray(e)?"array":Buffer.isBuffer(e)?"buffer":typeof e,aFe=(e,r,n)=>n.indexOf(e)===r,oFe=e=>{let r=Wg(e),n;return r==="array"&&(n=e.map(i=>Wg(i)).filter(aFe),r+=` of ${n.join(", ")}`),r},cFe=(e,r)=>{let n=u7(r);return Wg(e)!=="array"?!1:e.every(i=>Wg(i)===n)},GR=(e,r,n,i)=>{if(!i.some(o=>{if(!l7(o))throw new Error(`Unknown type "${o}"`);return c7(o)?cFe(n,o):o===Wg(n)}))throw new Error(`Argument "${r}" passed to ${e} must be ${sFe(i)}. Received ${oFe(n)}`)},uFe=(e,r,n,i)=>{n!==void 0&&(GR(e,r,n,["object"]),Object.keys(n).forEach(a=>{let o=`${r}.${a}`;if(i[a]!==void 0)GR(e,o,n[a],i[a]);else throw new Error(`Unknown argument "${o}" passed to ${e}`)}))};f7.exports={argument:GR,options:uFe}});var dw=S(p7=>{"use strict";p7.normalizeFileMode=e=>{let r;return typeof e=="number"?r=e.toString(8):r=e,r.substring(r.length-3)}});var mw=S(hw=>{"use strict";var d7=mi(),lFe=Sn(),fFe=(e,r)=>{let n=`${e}([path])`;lFe.argument(n,"path",r,["string","undefined"])},pFe=e=>{d7.rmSync(e,{recursive:!0,force:!0,maxRetries:3})},dFe=e=>d7.rm(e,{recursive:!0,force:!0,maxRetries:3});hw.validateInput=fFe;hw.sync=pFe;hw.async=dFe});var Tl=S(Kp=>{"use strict";var gw=require("path"),Ga=mi(),WR=dw(),h7=Sn(),m7=mw(),hFe=(e,r,n)=>{let i=`${e}(path, [criteria])`;h7.argument(i,"path",r,["string"]),h7.options(i,"criteria",n,{empty:["boolean"],mode:["string","number"]})},g7=e=>{let r=e||{};return typeof r.empty!="boolean"&&(r.empty=!1),r.mode!==void 0&&(r.mode=WR.normalizeFileMode(r.mode)),r},v7=e=>new Error(`Path ${e} exists but is not a directory. Halting jetpack.dir() call for safety reasons.`),mFe=e=>{let r;try{r=Ga.statSync(e)}catch(n){if(n.code!=="ENOENT")throw n}if(r&&!r.isDirectory())throw v7(e);return r},HR=(e,r)=>{let n=r||{};try{Ga.mkdirSync(e,n.mode)}catch(i){if(i.code==="ENOENT")HR(gw.dirname(e),n),Ga.mkdirSync(e,n.mode);else if(i.code!=="EEXIST")throw i}},gFe=(e,r,n)=>{let i=()=>{let o=WR.normalizeFileMode(r.mode);n.mode!==void 0&&n.mode!==o&&Ga.chmodSync(e,n.mode)},a=()=>{n.empty&&Ga.readdirSync(e).forEach(c=>{m7.sync(gw.resolve(e,c))})};i(),a()},vFe=(e,r)=>{let n=g7(r),i=mFe(e);i?gFe(e,i,n):HR(e,n)},yFe=e=>new Promise((r,n)=>{Ga.stat(e).then(i=>{i.isDirectory()?r(i):n(v7(e))}).catch(i=>{i.code==="ENOENT"?r(void 0):n(i)})}),bFe=e=>new Promise((r,n)=>{Ga.readdir(e).then(i=>{let a=o=>{if(o===i.length)r();else{let c=gw.resolve(e,i[o]);m7.async(c).then(()=>{a(o+1)})}};a(0)}).catch(n)}),xFe=(e,r,n)=>new Promise((i,a)=>{let o=()=>{let u=WR.normalizeFileMode(r.mode);return n.mode!==void 0&&n.mode!==u?Ga.chmod(e,n.mode):Promise.resolve()},c=()=>n.empty?bFe(e):Promise.resolve();o().then(c).then(i,a)}),zR=(e,r)=>{let n=r||{};return new Promise((i,a)=>{Ga.mkdir(e,n.mode).then(i).catch(o=>{o.code==="ENOENT"?zR(gw.dirname(e),n).then(()=>Ga.mkdir(e,n.mode)).then(i).catch(c=>{c.code==="EEXIST"?i():a(c)}):o.code==="EEXIST"?i():a(o)})})},wFe=(e,r)=>new Promise((n,i)=>{let a=g7(r);yFe(e).then(o=>o!==void 0?xFe(e,o,a):zR(e,a)).then(n,i)});Kp.validateInput=hFe;Kp.sync=vFe;Kp.createSync=HR;Kp.async=wFe;Kp.createAsync=zR});var Hg=S(yw=>{"use strict";var y7=require("path"),Xp=mi(),VR=Sn(),b7=Tl(),_Fe=(e,r,n,i)=>{let a=`${e}(path, data, [options])`;VR.argument(a,"path",r,["string"]),VR.argument(a,"data",n,["string","buffer","object","array"]),VR.options(a,"options",i,{mode:["string","number"],atomic:["boolean"],jsonIndent:["number"]})},vw=".__new__",x7=(e,r)=>{let n=r;return typeof n!="number"&&(n=2),typeof e=="object"&&!Buffer.isBuffer(e)&&e!==null?JSON.stringify(e,null,n):e},w7=(e,r,n)=>{try{Xp.writeFileSync(e,r,n)}catch(i){if(i.code==="ENOENT")b7.createSync(y7.dirname(e)),Xp.writeFileSync(e,r,n);else throw i}},EFe=(e,r,n)=>{w7(e+vw,r,n),Xp.renameSync(e+vw,e)},SFe=(e,r,n)=>{let i=n||{},a=x7(r,i.jsonIndent),o=w7;i.atomic&&(o=EFe),o(e,a,{mode:i.mode})},_7=(e,r,n)=>new Promise((i,a)=>{Xp.writeFile(e,r,n).then(i).catch(o=>{o.code==="ENOENT"?b7.createAsync(y7.dirname(e)).then(()=>Xp.writeFile(e,r,n)).then(i,a):a(o)})}),DFe=(e,r,n)=>new Promise((i,a)=>{_7(e+vw,r,n).then(()=>Xp.rename(e+vw,e)).then(i,a)}),CFe=(e,r,n)=>{let i=n||{},a=x7(r,i.jsonIndent),o=_7;return i.atomic&&(o=DFe),o(e,a,{mode:i.mode})};yw.validateInput=_Fe;yw.sync=SFe;yw.async=CFe});var D7=S(bw=>{"use strict";var E7=mi(),S7=Hg(),YR=Sn(),PFe=(e,r,n,i)=>{let a=`${e}(path, data, [options])`;YR.argument(a,"path",r,["string"]),YR.argument(a,"data",n,["string","buffer"]),YR.options(a,"options",i,{mode:["string","number"]})},TFe=(e,r,n)=>{try{E7.appendFileSync(e,r,n)}catch(i){if(i.code==="ENOENT")S7.sync(e,r,n);else throw i}},RFe=(e,r,n)=>new Promise((i,a)=>{E7.appendFile(e,r,n).then(i).catch(o=>{o.code==="ENOENT"?S7.async(e,r,n).then(i,a):a(o)})});bw.validateInput=PFe;bw.sync=TFe;bw.async=RFe});var R7=S(_w=>{"use strict";var xw=mi(),KR=dw(),C7=Sn(),ww=Hg(),AFe=(e,r,n)=>{let i=`${e}(path, [criteria])`;C7.argument(i,"path",r,["string"]),C7.options(i,"criteria",n,{content:["string","buffer","object","array"],jsonIndent:["number"],mode:["string","number"]})},P7=e=>{let r=e||{};return r.mode!==void 0&&(r.mode=KR.normalizeFileMode(r.mode)),r},T7=e=>new Error(`Path ${e} exists but is not a file. Halting jetpack.file() call for safety reasons.`),OFe=e=>{let r;try{r=xw.statSync(e)}catch(n){if(n.code!=="ENOENT")throw n}if(r&&!r.isFile())throw T7(e);return r},IFe=(e,r,n)=>{let i=KR.normalizeFileMode(r.mode),a=()=>n.content!==void 0?(ww.sync(e,n.content,{mode:i,jsonIndent:n.jsonIndent}),!0):!1,o=()=>{n.mode!==void 0&&n.mode!==i&&xw.chmodSync(e,n.mode)};a()||o()},kFe=(e,r)=>{let n="";r.content!==void 0&&(n=r.content),ww.sync(e,n,{mode:r.mode,jsonIndent:r.jsonIndent})},FFe=(e,r)=>{let n=P7(r),i=OFe(e);i!==void 0?IFe(e,i,n):kFe(e,n)},$Fe=e=>new Promise((r,n)=>{xw.stat(e).then(i=>{i.isFile()?r(i):n(T7(e))}).catch(i=>{i.code==="ENOENT"?r(void 0):n(i)})}),LFe=(e,r,n)=>{let i=KR.normalizeFileMode(r.mode),a=()=>new Promise((c,u)=>{n.content!==void 0?ww.async(e,n.content,{mode:i,jsonIndent:n.jsonIndent}).then(()=>{c(!0)}).catch(u):c(!1)}),o=()=>{if(n.mode!==void 0&&n.mode!==i)return xw.chmod(e,n.mode)};return a().then(c=>{if(!c)return o()})},NFe=(e,r)=>{let n="";return r.content!==void 0&&(n=r.content),ww.async(e,n,{mode:r.mode,jsonIndent:r.jsonIndent})},MFe=(e,r)=>new Promise((n,i)=>{let a=P7(r);$Fe(e).then(o=>o!==void 0?LFe(e,o,a):NFe(e,a)).then(n,i)});_w.validateInput=AFe;_w.sync=FFe;_w.async=MFe});var Qp=S(Jp=>{"use strict";var O7=require("crypto"),qFe=require("path"),Mc=mi(),A7=Sn(),XR=["md5","sha1","sha256","sha512"],JR=["report","follow"],jFe=(e,r,n)=>{let i=`${e}(path, [options])`;if(A7.argument(i,"path",r,["string"]),A7.options(i,"options",n,{checksum:["string"],mode:["boolean"],times:["boolean"],absolutePath:["boolean"],symlinks:["string"]}),n&&n.checksum!==void 0&&XR.indexOf(n.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${i} must have one of values: ${XR.join(", ")}`);if(n&&n.symlinks!==void 0&&JR.indexOf(n.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${i} must have one of values: ${JR.join(", ")}`)},I7=(e,r,n)=>{let i={};return i.name=qFe.basename(e),n.isFile()?(i.type="file",i.size=n.size):n.isDirectory()?i.type="dir":n.isSymbolicLink()?i.type="symlink":i.type="other",r.mode&&(i.mode=n.mode),r.times&&(i.accessTime=n.atime,i.modifyTime=n.mtime,i.changeTime=n.ctime,i.birthTime=n.birthtime),r.absolutePath&&(i.absolutePath=e),i},BFe=(e,r)=>{let n=O7.createHash(r),i=Mc.readFileSync(e);return n.update(i),n.digest("hex")},UFe=(e,r,n)=>{r.type==="file"&&n.checksum?r[n.checksum]=BFe(e,n.checksum):r.type==="symlink"&&(r.pointsAt=Mc.readlinkSync(e))},GFe=(e,r)=>{let n=Mc.lstatSync,i,a=r||{};a.symlinks==="follow"&&(n=Mc.statSync);try{i=n(e)}catch(c){if(c.code==="ENOENT")return;throw c}let o=I7(e,a,i);return UFe(e,o,a),o},WFe=(e,r)=>new Promise((n,i)=>{let a=O7.createHash(r),o=Mc.createReadStream(e);o.on("data",c=>{a.update(c)}),o.on("end",()=>{n(a.digest("hex"))}),o.on("error",i)}),HFe=(e,r,n)=>r.type==="file"&&n.checksum?WFe(e,n.checksum).then(i=>(r[n.checksum]=i,r)):r.type==="symlink"?Mc.readlink(e).then(i=>(r.pointsAt=i,r)):Promise.resolve(r),zFe=(e,r)=>new Promise((n,i)=>{let a=Mc.lstat,o=r||{};o.symlinks==="follow"&&(a=Mc.stat),a(e).then(c=>{let u=I7(e,o,c);HFe(e,u,o).then(n,i)}).catch(c=>{c.code==="ENOENT"?n(void 0):i(c)})});Jp.supportedChecksumAlgorithms=XR;Jp.symlinkOptions=JR;Jp.validateInput=jFe;Jp.sync=GFe;Jp.async=zFe});var Sw=S(Ew=>{"use strict";var k7=mi(),VFe=Sn(),YFe=(e,r)=>{let n=`${e}(path)`;VFe.argument(n,"path",r,["string","undefined"])},KFe=e=>{try{return k7.readdirSync(e)}catch(r){if(r.code==="ENOENT")return;throw r}},XFe=e=>new Promise((r,n)=>{k7.readdir(e).then(i=>{r(i)}).catch(i=>{i.code==="ENOENT"?r(void 0):n(i)})});Ew.validateInput=YFe;Ew.sync=KFe;Ew.async=XFe});var Tw=S(QR=>{"use strict";var Dw=require("fs"),Cw=require("path"),zg=Qp(),xOt=Sw(),Pw=e=>e.isDirectory()?"dir":e.isFile()?"file":e.isSymbolicLink()?"symlink":"other",JFe=(e,r,n)=>{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let i=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.symlinks);let a=(c,u)=>{Dw.readdirSync(c,{withFileTypes:!0}).forEach(l=>{let f=typeof l=="string",p;f?p=Cw.join(c,l):p=Cw.join(c,l.name);let g;if(i)g=zg.sync(p,r.inspectOptions);else if(f){let v=zg.sync(p,r.inspectOptions);g={name:v.name,type:v.type}}else{let v=Pw(l);if(v==="symlink"&&r.symlinks==="follow"){let x=Dw.statSync(p);g={name:l.name,type:Pw(x)}}else g={name:l.name,type:v}}g!==void 0&&(n(p,g),g.type==="dir"&&u{r.maxLevelsDeep===void 0&&(r.maxLevelsDeep=1/0);let a=r.inspectOptions!==void 0;r.symlinks&&(r.inspectOptions===void 0?r.inspectOptions={symlinks:r.symlinks}:r.inspectOptions.symlinks=r.symlinks);let o=[],c=0,u=()=>{if(o.length===0&&c===0)i();else if(o.length>0&&c{o.push(g),u()},f=()=>{c-=1,u()},p=(g,v)=>{let x=(E,D)=>{D.type==="dir"&&v{Dw.readdir(g,{withFileTypes:!0},(E,D)=>{E?i(E):(D.forEach(P=>{let R=typeof P=="string",k;if(R?k=Cw.join(g,P):k=Cw.join(g,P.name),a||R)l(()=>{zg.async(k,r.inspectOptions).then(F=>{F!==void 0&&(a?n(k,F):n(k,{name:F.name,type:F.type}),x(k,F)),f()}).catch(F=>{i(F)})});else{let F=Pw(P);if(F==="symlink"&&r.symlinks==="follow")l(()=>{Dw.stat(k,(L,U)=>{if(L)i(L);else{let V={name:P.name,type:Pw(U)};n(k,V),x(k,V),f()}})});else{let L={name:P.name,type:F};n(k,L),x(k,L)}}}),f())})})};zg.async(e,r.inspectOptions).then(g=>{g?(a?n(e,g):n(e,{name:g.name,type:g.type}),g.type==="dir"?p(e,1):i()):(n(e,void 0),i())}).catch(g=>{i(g)})};QR.sync=JFe;QR.async=ZFe});var $7=S((_Ot,F7)=>{"use strict";var e$e=typeof process=="object"&&process&&process.platform==="win32";F7.exports=e$e?{sep:"\\"}:{sep:"/"}});var ZR=S((EOt,q7)=>{"use strict";q7.exports=N7;function N7(e,r,n){e instanceof RegExp&&(e=L7(e,n)),r instanceof RegExp&&(r=L7(r,n));var i=M7(e,r,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+r.length)}}function L7(e,r){var n=r.match(e);return n?n[0]:null}N7.range=M7;function M7(e,r,n){var i,a,o,c,u,l=n.indexOf(e),f=n.indexOf(r,l+1),p=l;if(l>=0&&f>0){if(e===r)return[l,f];for(i=[],o=n.length;p>=0&&!u;)p==l?(i.push(p),l=n.indexOf(e,p+1)):i.length==1?u=[i.pop(),f]:(a=i.pop(),a=0?l:f;i.length&&(u=[o,c])}return u}});var r2=S((SOt,z7)=>{"use strict";var j7=ZR();z7.exports=n$e;var B7="\0SLASH"+Math.random()+"\0",U7="\0OPEN"+Math.random()+"\0",t2="\0CLOSE"+Math.random()+"\0",G7="\0COMMA"+Math.random()+"\0",W7="\0PERIOD"+Math.random()+"\0";function e2(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function t$e(e){return e.split("\\\\").join(B7).split("\\{").join(U7).split("\\}").join(t2).split("\\,").join(G7).split("\\.").join(W7)}function r$e(e){return e.split(B7).join("\\").split(U7).join("{").split(t2).join("}").split(G7).join(",").split(W7).join(".")}function H7(e){if(!e)return[""];var r=[],n=j7("{","}",e);if(!n)return e.split(",");var i=n.pre,a=n.body,o=n.post,c=i.split(",");c[c.length-1]+="{"+a+"}";var u=H7(o);return o.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),r.push.apply(r,c),r}function n$e(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Vg(t$e(e),!0).map(r$e)):[]}function i$e(e){return"{"+e+"}"}function s$e(e){return/^-?0\d/.test(e)}function a$e(e,r){return e<=r}function o$e(e,r){return e>=r}function Vg(e,r){var n=[],i=j7("{","}",e);if(!i)return[e];var a=i.pre,o=i.post.length?Vg(i.post,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c=0;if(!p&&!g)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+t2+i.post,Vg(e)):[e];var v;if(p)v=i.body.split(/\.\./);else if(v=H7(i.body),v.length===1&&(v=Vg(v[0],!1).map(i$e),v.length===1))return o.map(function(X){return i.pre+v[0]+X});var x;if(p){var E=e2(v[0]),D=e2(v[1]),P=Math.max(v[0].length,v[1].length),R=v.length==3?Math.abs(e2(v[2])):1,k=a$e,F=D0){var W=new Array(j+1).join("0");U<0?V="-"+W+V.slice(1):V=W+V}}x.push(V)}}else{x=[];for(var q=0;q{"use strict";var qi=a2.exports=(e,r,n={})=>(Aw(r),!n.nocomment&&r.charAt(0)==="#"?!1:new Zp(r,n).match(e));a2.exports=qi;var i2=$7();qi.sep=i2.sep;var ta=Symbol("globstar **");qi.GLOBSTAR=ta;var c$e=r2(),V7={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s2="[^/]",n2=s2+"*?",u$e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l$e="(?:(?!(?:\\/|^)\\.).)*?",X7=e=>e.split("").reduce((r,n)=>(r[n]=!0,r),{}),Y7=X7("().*{}+?[]^$\\!"),f$e=X7("[.("),K7=/\/+/;qi.filter=(e,r={})=>(n,i,a)=>qi(n,e,r);var qc=(e,r={})=>{let n={};return Object.keys(e).forEach(i=>n[i]=e[i]),Object.keys(r).forEach(i=>n[i]=r[i]),n};qi.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return qi;let r=qi,n=(i,a,o)=>r(i,a,qc(e,o));return n.Minimatch=class extends r.Minimatch{constructor(a,o){super(a,qc(e,o))}},n.Minimatch.defaults=i=>r.defaults(qc(e,i)).Minimatch,n.filter=(i,a)=>r.filter(i,qc(e,a)),n.defaults=i=>r.defaults(qc(e,i)),n.makeRe=(i,a)=>r.makeRe(i,qc(e,a)),n.braceExpand=(i,a)=>r.braceExpand(i,qc(e,a)),n.match=(i,a,o)=>r.match(i,a,qc(e,o)),n};qi.braceExpand=(e,r)=>J7(e,r);var J7=(e,r={})=>(Aw(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:c$e(e)),p$e=1024*64,Aw=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>p$e)throw new TypeError("pattern is too long")},Rw=Symbol("subparse");qi.makeRe=(e,r)=>new Zp(e,r||{}).makeRe();qi.match=(e,r,n={})=>{let i=new Zp(r,n);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(r),e};var d$e=e=>e.replace(/\\(.)/g,"$1"),h$e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zp=class{constructor(r,n){Aw(r),n||(n={}),this.options=n,this.set=[],this.pattern=r,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){let r=this.pattern,n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();n.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,i),i=this.globParts=i.map(a=>a.split(K7)),this.debug(this.pattern,i),i=i.map((a,o,c)=>a.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(a=>a.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let r=this.pattern,n=!1,i=0;for(let a=0;a>> no match, partial?`,r,g,n,v),g===u))}var E;if(typeof f=="string"?(E=p===f,this.debug("string match",f,p,E)):(E=p.match(f),this.debug("pattern match",f,p,E)),!E)return!1}if(o===u&&c===l)return!0;if(o===u)return i;if(c===l)return o===u-1&&r[o]==="";throw new Error("wtf?")}braceExpand(){return J7(this.pattern,this.options)}parse(r,n){Aw(r);let i=this.options;if(r==="**")if(i.noglobstar)r="*";else return ta;if(r==="")return"";let a="",o=!!i.nocase,c=!1,u=[],l=[],f,p=!1,g=-1,v=-1,x,E,D,P=r.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",R=()=>{if(f){switch(f){case"*":a+=n2,o=!0;break;case"?":a+=s2,o=!0;break;default:a+="\\"+f;break}this.debug("clearStateChar %j %j",f,a),f=!1}};for(let L=0,U;L(W||(W="\\"),j+j+W+"|")),this.debug(`tail=%j - %s`,L,L,E,a);let U=E.type==="*"?n2:E.type==="?"?s2:"\\"+E.type;o=!0,a=a.slice(0,E.reStart)+U+"\\("+L}R(),c&&(a+="\\\\");let k=f$e[a.charAt(0)];for(let L=l.length-1;L>-1;L--){let U=l[L],V=a.slice(0,U.reStart),j=a.slice(U.reStart,U.reEnd-8),W=a.slice(U.reEnd),q=a.slice(U.reEnd-8,U.reEnd)+W,X=V.split("(").length-1,M=W;for(let ee=0;ee(c=c.map(u=>typeof u=="string"?h$e(u):u===ta?ta:u._src).reduce((u,l)=>(u[u.length-1]===ta&&l===ta||u.push(l),u),[]),c.forEach((u,l)=>{u!==ta||c[l-1]===ta||(l===0?c.length>1?c[l+1]="(?:\\/|"+i+"\\/)?"+c[l+1]:c[l]=i:l===c.length-1?c[l-1]+="(?:\\/|"+i+")?":(c[l-1]+="(?:\\/|\\/"+i+"\\/)"+c[l+1],c[l+1]=ta))}),c.filter(u=>u!==ta).join("/"))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,a)}catch{this.regexp=!1}return this.regexp}match(r,n=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;let i=this.options;i2.sep!=="/"&&(r=r.split(i2.sep).join("/")),r=r.split(K7),this.debug(this.pattern,"split",r);let a=this.set;this.debug(this.pattern,"set",a);let o;for(let c=r.length-1;c>=0&&(o=r[c],!o);c--);for(let c=0;c{"use strict";var m$e=Q7().Minimatch,g$e=(e,r)=>{let n=r.indexOf("/")!==-1,i=/^!?\//.test(r),a=/^!/.test(r),o;if(!i&&n){let c=r.replace(/^!/,"").replace(/^\.\//,"");return/\/$/.test(e)?o="":o="/",a?`!${e}${o}${c}`:`${e}${o}${c}`}return r};Z7.create=(e,r,n)=>{let i;typeof r=="string"?i=[r]:i=r;let a=i.map(c=>g$e(e,c)).map(c=>new m$e(c,{matchBase:!0,nocomment:!0,nocase:n||!1,dot:!0,windowsPathsNoEscape:!0}));return c=>{let u="matching",l=!1,f,p;for(p=0;p{"use strict";var v$e=require("path"),tG=Tw(),rG=Qp(),nG=o2(),eG=Sn(),y$e=(e,r,n)=>{let i=`${e}([path], options)`;eG.argument(i,"path",r,["string"]),eG.options(i,"options",n,{matching:["string","array of string"],filter:["function"],files:["boolean"],directories:["boolean"],recursive:["boolean"],ignoreCase:["boolean"]})},iG=e=>{let r=e||{};return r.matching===void 0&&(r.matching="*"),r.files===void 0&&(r.files=!0),r.ignoreCase===void 0&&(r.ignoreCase=!1),r.directories===void 0&&(r.directories=!1),r.recursive===void 0&&(r.recursive=!0),r},sG=(e,r)=>e.map(n=>v$e.relative(r,n)),aG=e=>{let r=new Error(`Path you want to find stuff in doesn't exist ${e}`);return r.code="ENOENT",r},oG=e=>{let r=new Error(`Path you want to find stuff in must be a directory ${e}`);return r.code="ENOTDIR",r},b$e=(e,r)=>{let n=[],i=nG.create(e,r.matching,r.ignoreCase),a=1/0;return r.recursive===!1&&(a=1),tG.sync(e,{maxLevelsDeep:a,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(o,c)=>{c&&o!==e&&i(o)&&(c.type==="file"&&r.files===!0||c.type==="dir"&&r.directories===!0)&&(r.filter?r.filter(c)&&n.push(o):n.push(o))}),n.sort(),sG(n,r.cwd)},x$e=(e,r)=>{let n=rG.sync(e,{symlinks:"follow"});if(n===void 0)throw aG(e);if(n.type!=="dir")throw oG(e);return b$e(e,iG(r))},w$e=(e,r)=>new Promise((n,i)=>{let a=[],o=nG.create(e,r.matching,r.ignoreCase),c=1/0;r.recursive===!1&&(c=1);let u=0,l=!1,f=()=>{l&&u===0&&(a.sort(),n(sG(a,r.cwd)))};tG.async(e,{maxLevelsDeep:c,symlinks:"follow",inspectOptions:{times:!0,absolutePath:!0}},(p,g)=>{if(g&&p!==e&&o(p)&&(g.type==="file"&&r.files===!0||g.type==="dir"&&r.directories===!0))if(r.filter){let x=r.filter(g);typeof x.then=="function"?(u+=1,x.then(D=>{D&&a.push(p),u-=1,f()}).catch(D=>{i(D)})):x&&a.push(p)}else a.push(p)},p=>{p?i(p):(l=!0,f())})}),_$e=(e,r)=>rG.async(e,{symlinks:"follow"}).then(n=>{if(n===void 0)throw aG(e);if(n.type!=="dir")throw oG(e);return w$e(e,iG(r))});Ow.validateInput=y$e;Ow.sync=x$e;Ow.async=_$e});var fG=S(Fw=>{"use strict";var E$e=require("crypto"),kw=require("path"),Iw=Qp(),ROt=Sw(),uG=Sn(),lG=Tw(),S$e=(e,r,n)=>{let i=`${e}(path, [options])`;if(uG.argument(i,"path",r,["string"]),uG.options(i,"options",n,{checksum:["string"],relativePath:["boolean"],times:["boolean"],symlinks:["string"]}),n&&n.checksum!==void 0&&Iw.supportedChecksumAlgorithms.indexOf(n.checksum)===-1)throw new Error(`Argument "options.checksum" passed to ${i} must have one of values: ${Iw.supportedChecksumAlgorithms.join(", ")}`);if(n&&n.symlinks!==void 0&&Iw.symlinkOptions.indexOf(n.symlinks)===-1)throw new Error(`Argument "options.symlinks" passed to ${i} must have one of values: ${Iw.symlinkOptions.join(", ")}`)},D$e=(e,r)=>e===void 0?".":e.relativePath+"/"+r.name,C$e=(e,r)=>{let n=E$e.createHash(r);return e.forEach(i=>{n.update(i.name+i[r])}),n.digest("hex")},c2=(e,r,n)=>{n.relativePath&&(r.relativePath=D$e(e,r)),r.type==="dir"&&(r.children.forEach(i=>{c2(r,i,n)}),r.size=0,r.children.sort((i,a)=>i.type==="dir"&&a.type==="file"?-1:i.type==="file"&&a.type==="dir"?1:i.name.localeCompare(a.name)),r.children.forEach(i=>{r.size+=i.size||0}),n.checksum&&(r[n.checksum]=C$e(r.children,n.checksum)))},u2=(e,r,n)=>{let i=r[0];if(r.length>1){let a=e.children.find(o=>o.name===i);return u2(a,r.slice(1),n)}return e},P$e=(e,r)=>{let n=r||{},i;return lG.sync(e,{inspectOptions:n},(a,o)=>{if(o){o.type==="dir"&&(o.children=[]);let c=kw.relative(e,a);c===""?i=o:u2(i,c.split(kw.sep),o).children.push(o)}}),i&&c2(void 0,i,n),i},T$e=(e,r)=>{let n=r||{},i;return new Promise((a,o)=>{lG.async(e,{inspectOptions:n},(c,u)=>{if(u){u.type==="dir"&&(u.children=[]);let l=kw.relative(e,c);l===""?i=u:u2(i,l.split(kw.sep),u).children.push(u)}},c=>{c?o(c):(i&&c2(void 0,i,n),a(i))})})};Fw.validateInput=S$e;Fw.sync=P$e;Fw.async=T$e});var Lw=S($w=>{"use strict";var pG=mi(),R$e=Sn(),A$e=(e,r)=>{let n=`${e}(path)`;R$e.argument(n,"path",r,["string"])},O$e=e=>{try{let r=pG.statSync(e);return r.isDirectory()?"dir":r.isFile()?"file":"other"}catch(r){if(r.code!=="ENOENT")throw r}return!1},I$e=e=>new Promise((r,n)=>{pG.stat(e).then(i=>{i.isDirectory()?r("dir"):i.isFile()?r("file"):r("other")}).catch(i=>{i.code==="ENOENT"?r(!1):n(i)})});$w.validateInput=A$e;$w.sync=O$e;$w.async=I$e});var d2=S(jw=>{"use strict";var Yg=require("path"),ji=mi(),p2=Tl(),Nw=Lw(),dG=Qp(),k$e=Hg(),F$e=o2(),hG=dw(),mG=Tw(),l2=Sn(),$$e=(e,r,n,i)=>{let a=`${e}(from, to, [options])`;l2.argument(a,"from",r,["string"]),l2.argument(a,"to",n,["string"]),l2.options(a,"options",i,{overwrite:["boolean","function"],matching:["string","array of string"],ignoreCase:["boolean"]})},gG=(e,r)=>{let n=e||{},i={};return n.ignoreCase===void 0&&(n.ignoreCase=!1),i.overwrite=n.overwrite,n.matching?i.allowedToCopy=F$e.create(r,n.matching,n.ignoreCase):i.allowedToCopy=()=>!0,i},vG=e=>{let r=new Error(`Path to copy doesn't exist ${e}`);return r.code="ENOENT",r},Mw=e=>{let r=new Error(`Destination path already exists ${e}`);return r.code="EEXIST",r},qw={mode:!0,symlinks:"report",times:!0,absolutePath:!0},yG=e=>typeof e.opts.overwrite!="function"&&e.opts.overwrite!==!0,L$e=(e,r,n)=>{if(!Nw.sync(e))throw vG(e);if(Nw.sync(r)&&!n.overwrite)throw Mw(r)},N$e=e=>{if(typeof e.opts.overwrite=="function"){let r=dG.sync(e.destPath,qw);return e.opts.overwrite(e.srcInspectData,r)}return e.opts.overwrite===!0},M$e=(e,r,n,i)=>{let a=ji.readFileSync(e);try{ji.writeFileSync(r,a,{mode:n,flag:"wx"})}catch(o){if(o.code==="ENOENT")k$e.sync(r,a,{mode:n});else if(o.code==="EEXIST"){if(N$e(i))ji.writeFileSync(r,a,{mode:n});else if(yG(i))throw Mw(i.destPath)}else throw o}},q$e=(e,r)=>{let n=ji.readlinkSync(e);try{ji.symlinkSync(n,r)}catch(i){if(i.code==="EEXIST")ji.unlinkSync(r),ji.symlinkSync(n,r);else throw i}},j$e=(e,r,n,i)=>{let a={srcPath:e,destPath:n,srcInspectData:r,opts:i},o=hG.normalizeFileMode(r.mode);r.type==="dir"?p2.createSync(n,{mode:o}):r.type==="file"?M$e(e,n,o,a):r.type==="symlink"&&q$e(e,n)},B$e=(e,r,n)=>{let i=gG(n,e);L$e(e,r,i),mG.sync(e,{inspectOptions:qw},(a,o)=>{let c=Yg.relative(e,a),u=Yg.resolve(r,c);i.allowedToCopy(a,u,o)&&j$e(a,o,u,i)})},U$e=(e,r,n)=>Nw.async(e).then(i=>{if(i)return Nw.async(r);throw vG(e)}).then(i=>{if(i&&!n.overwrite)throw Mw(r)}),G$e=e=>new Promise((r,n)=>{typeof e.opts.overwrite=="function"?dG.async(e.destPath,qw).then(i=>{r(e.opts.overwrite(e.srcInspectData,i))}).catch(n):r(e.opts.overwrite===!0)}),f2=(e,r,n,i,a)=>new Promise((o,c)=>{let u=a||{},l="wx";u.overwrite&&(l="w");let f=ji.createReadStream(e),p=ji.createWriteStream(r,{mode:n,flags:l});f.on("error",c),p.on("error",g=>{f.resume(),g.code==="ENOENT"?p2.createAsync(Yg.dirname(r)).then(()=>{f2(e,r,n,i).then(o,c)}).catch(c):g.code==="EEXIST"?G$e(i).then(v=>{v?f2(e,r,n,i,{overwrite:!0}).then(o,c):yG(i)?c(Mw(r)):o()}).catch(c):c(g)}),p.on("finish",o),f.pipe(p)}),W$e=(e,r)=>ji.readlink(e).then(n=>new Promise((i,a)=>{ji.symlink(n,r).then(i).catch(o=>{o.code==="EEXIST"?ji.unlink(r).then(()=>ji.symlink(n,r)).then(i,a):a(o)})})),H$e=(e,r,n,i)=>{let a={srcPath:e,destPath:n,srcInspectData:r,opts:i},o=hG.normalizeFileMode(r.mode);return r.type==="dir"?p2.createAsync(n,{mode:o}):r.type==="file"?f2(e,n,o,a):r.type==="symlink"?W$e(e,n):Promise.resolve()},z$e=(e,r,n)=>new Promise((i,a)=>{let o=gG(n,e);U$e(e,r,o).then(()=>{let c=!1,u=0;mG.async(e,{inspectOptions:qw},(l,f)=>{if(f){let p=Yg.relative(e,l),g=Yg.resolve(r,p);o.allowedToCopy(l,f,g)&&(u+=1,H$e(l,f,g,o).then(()=>{u-=1,c&&u===0&&i()}).catch(a))}},l=>{l?a(l):(c=!0,c&&u===0&&i())})}).catch(a)});jw.validateInput=$$e;jw.sync=B$e;jw.async=z$e});var m2=S(Uw=>{"use strict";var bG=require("path"),ed=mi(),h2=Sn(),xG=d2(),wG=Tl(),Kg=Lw(),Bw=mw(),V$e=(e,r,n,i)=>{let a=`${e}(from, to, [options])`;h2.argument(a,"from",r,["string"]),h2.argument(a,"to",n,["string"]),h2.options(a,"options",i,{overwrite:["boolean"]})},_G=e=>e||{},EG=e=>{let r=new Error(`Destination path already exists ${e}`);return r.code="EEXIST",r},SG=e=>{let r=new Error(`Path to move doesn't exist ${e}`);return r.code="ENOENT",r},Y$e=(e,r,n)=>{let i=_G(n);if(Kg.sync(r)!==!1&&i.overwrite!==!0)throw EG(r);try{ed.renameSync(e,r)}catch(a){if(a.code==="EISDIR"||a.code==="EPERM")Bw.sync(r),ed.renameSync(e,r);else if(a.code==="EXDEV")xG.sync(e,r,{overwrite:!0}),Bw.sync(e);else if(a.code==="ENOENT"){if(!Kg.sync(e))throw SG(e);wG.createSync(bG.dirname(r)),ed.renameSync(e,r)}else throw a}},K$e=e=>new Promise((r,n)=>{let i=bG.dirname(e);Kg.async(i).then(a=>{a?n():wG.createAsync(i).then(r,n)}).catch(n)}),X$e=(e,r,n)=>{let i=_G(n);return new Promise((a,o)=>{Kg.async(r).then(c=>{c!==!1&&i.overwrite!==!0?o(EG(r)):ed.rename(e,r).then(a).catch(u=>{u.code==="EISDIR"||u.code==="EPERM"?Bw.async(r).then(()=>ed.rename(e,r)).then(a,o):u.code==="EXDEV"?xG.async(e,r,{overwrite:!0}).then(()=>Bw.async(e)).then(a,o):u.code==="ENOENT"?Kg.async(e).then(l=>{l?K$e(r).then(()=>ed.rename(e,r)).then(a,o):o(SG(e))}).catch(o):o(u)})})})};Uw.validateInput=V$e;Uw.sync=Y$e;Uw.async=X$e});var AG=S(Gw=>{"use strict";var PG=mi(),DG=Sn(),CG=["utf8","buffer","json","jsonWithDates"],J$e=(e,r,n)=>{let i=`${e}(path, returnAs)`;if(DG.argument(i,"path",r,["string"]),DG.argument(i,"returnAs",n,["string","undefined"]),n&&CG.indexOf(n)===-1)throw new Error(`Argument "returnAs" passed to ${i} must have one of values: ${CG.join(", ")}`)},TG=(e,r)=>typeof r=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.exec(r)?new Date(r):r,RG=(e,r)=>{let n=new Error(`JSON parsing failed while reading ${e} [${r}]`);return n.originalError=r,n},Q$e=(e,r)=>{let n=r||"utf8",i,a="utf8";n==="buffer"&&(a=null);try{i=PG.readFileSync(e,{encoding:a})}catch(o){if(o.code==="ENOENT")return;throw o}try{n==="json"?i=JSON.parse(i):n==="jsonWithDates"&&(i=JSON.parse(i,TG))}catch(o){throw RG(e,o)}return i},Z$e=(e,r)=>new Promise((n,i)=>{let a=r||"utf8",o="utf8";a==="buffer"&&(o=null),PG.readFile(e,{encoding:o}).then(c=>{try{n(a==="json"?JSON.parse(c):a==="jsonWithDates"?JSON.parse(c,TG):c)}catch(u){i(RG(e,u))}}).catch(c=>{c.code==="ENOENT"?n(void 0):i(c)})});Gw.validateInput=J$e;Gw.sync=Q$e;Gw.async=Z$e});var IG=S(Ww=>{"use strict";var Xg=require("path"),OG=m2(),g2=Sn(),e3e=(e,r,n,i)=>{let a=`${e}(path, newName, [options])`;if(g2.argument(a,"path",r,["string"]),g2.argument(a,"newName",n,["string"]),g2.options(a,"options",i,{overwrite:["boolean"]}),Xg.basename(n)!==n)throw new Error(`Argument "newName" passed to ${a} should be a filename, not a path. Received "${n}"`)},t3e=(e,r,n)=>{let i=Xg.join(Xg.dirname(e),r);OG.sync(e,i,n)},r3e=(e,r,n)=>{let i=Xg.join(Xg.dirname(e),r);return OG.async(e,i,n)};Ww.validateInput=e3e;Ww.sync=t3e;Ww.async=r3e});var LG=S(zw=>{"use strict";var FG=require("path"),Hw=mi(),kG=Sn(),$G=Tl(),n3e=(e,r,n)=>{let i=`${e}(symlinkValue, path)`;kG.argument(i,"symlinkValue",r,["string"]),kG.argument(i,"path",n,["string"])},i3e=(e,r)=>{try{Hw.symlinkSync(e,r)}catch(n){if(n.code==="ENOENT")$G.createSync(FG.dirname(r)),Hw.symlinkSync(e,r);else throw n}},s3e=(e,r)=>new Promise((n,i)=>{Hw.symlink(e,r).then(n).catch(a=>{a.code==="ENOENT"?$G.createAsync(FG.dirname(r)).then(()=>Hw.symlink(e,r)).then(n,i):i(a)})});zw.validateInput=n3e;zw.sync=i3e;zw.async=s3e});var MG=S(v2=>{"use strict";var NG=require("fs");v2.createWriteStream=NG.createWriteStream;v2.createReadStream=NG.createReadStream});var WG=S(Vw=>{"use strict";var y2=require("path"),a3e=require("os"),qG=require("crypto"),jG=Tl(),BG=mi(),o3e=Sn(),c3e=(e,r)=>{let n=`${e}([options])`;o3e.options(n,"options",r,{prefix:["string"],basePath:["string"]})},UG=(e,r)=>{e=e||{};let n={};return typeof e.prefix!="string"?n.prefix="":n.prefix=e.prefix,typeof e.basePath=="string"?n.basePath=y2.resolve(r,e.basePath):n.basePath=a3e.tmpdir(),n},GG=32,u3e=(e,r)=>{let n=UG(r,e),i=qG.randomBytes(GG/2).toString("hex"),a=y2.join(n.basePath,n.prefix+i);try{BG.mkdirSync(a)}catch(o){if(o.code==="ENOENT")jG.sync(a);else throw o}return a},l3e=(e,r)=>new Promise((n,i)=>{let a=UG(r,e);qG.randomBytes(GG/2,(o,c)=>{if(o)i(o);else{let u=c.toString("hex"),l=y2.join(a.basePath,a.prefix+u);BG.mkdir(l,f=>{f?f.code==="ENOENT"?jG.async(l).then(()=>{n(l)},i):i(f):n(l)})}})});Vw.validateInput=c3e;Vw.sync=u3e;Vw.async=l3e});var KG=S((qOt,YG)=>{"use strict";var HG=require("util"),b2=require("path"),Yw=D7(),Kw=Tl(),Xw=R7(),Jw=cG(),Qw=Qp(),Zw=fG(),e1=d2(),t1=Lw(),r1=Sw(),n1=m2(),i1=AG(),s1=mw(),a1=IG(),o1=LG(),zG=MG(),c1=WG(),u1=Hg(),VG=e=>{let r=()=>e||process.cwd(),n=function(){if(arguments.length===0)return r();let u=Array.prototype.slice.call(arguments),l=[r()].concat(u);return VG(b2.resolve.apply(null,l))},i=u=>b2.resolve(r(),u),a=function(){return Array.prototype.unshift.call(arguments,r()),b2.resolve.apply(null,arguments)},o=u=>{let l=u||{};return l.cwd=r(),l},c={cwd:n,path:a,append:(u,l,f)=>{Yw.validateInput("append",u,l,f),Yw.sync(i(u),l,f)},appendAsync:(u,l,f)=>(Yw.validateInput("appendAsync",u,l,f),Yw.async(i(u),l,f)),copy:(u,l,f)=>{e1.validateInput("copy",u,l,f),e1.sync(i(u),i(l),f)},copyAsync:(u,l,f)=>(e1.validateInput("copyAsync",u,l,f),e1.async(i(u),i(l),f)),createWriteStream:(u,l)=>zG.createWriteStream(i(u),l),createReadStream:(u,l)=>zG.createReadStream(i(u),l),dir:(u,l)=>{Kw.validateInput("dir",u,l);let f=i(u);return Kw.sync(f,l),n(f)},dirAsync:(u,l)=>(Kw.validateInput("dirAsync",u,l),new Promise((f,p)=>{let g=i(u);Kw.async(g,l).then(()=>{f(n(g))},p)})),exists:u=>(t1.validateInput("exists",u),t1.sync(i(u))),existsAsync:u=>(t1.validateInput("existsAsync",u),t1.async(i(u))),file:(u,l)=>(Xw.validateInput("file",u,l),Xw.sync(i(u),l),c),fileAsync:(u,l)=>(Xw.validateInput("fileAsync",u,l),new Promise((f,p)=>{Xw.async(i(u),l).then(()=>{f(c)},p)})),find:(u,l)=>(typeof l>"u"&&typeof u=="object"&&(l=u,u="."),Jw.validateInput("find",u,l),Jw.sync(i(u),o(l))),findAsync:(u,l)=>(typeof l>"u"&&typeof u=="object"&&(l=u,u="."),Jw.validateInput("findAsync",u,l),Jw.async(i(u),o(l))),inspect:(u,l)=>(Qw.validateInput("inspect",u,l),Qw.sync(i(u),l)),inspectAsync:(u,l)=>(Qw.validateInput("inspectAsync",u,l),Qw.async(i(u),l)),inspectTree:(u,l)=>(Zw.validateInput("inspectTree",u,l),Zw.sync(i(u),l)),inspectTreeAsync:(u,l)=>(Zw.validateInput("inspectTreeAsync",u,l),Zw.async(i(u),l)),list:u=>(r1.validateInput("list",u),r1.sync(i(u||"."))),listAsync:u=>(r1.validateInput("listAsync",u),r1.async(i(u||"."))),move:(u,l,f)=>{n1.validateInput("move",u,l,f),n1.sync(i(u),i(l),f)},moveAsync:(u,l,f)=>(n1.validateInput("moveAsync",u,l,f),n1.async(i(u),i(l),f)),read:(u,l)=>(i1.validateInput("read",u,l),i1.sync(i(u),l)),readAsync:(u,l)=>(i1.validateInput("readAsync",u,l),i1.async(i(u),l)),remove:u=>{s1.validateInput("remove",u),s1.sync(i(u||"."))},removeAsync:u=>(s1.validateInput("removeAsync",u),s1.async(i(u||"."))),rename:(u,l,f)=>{a1.validateInput("rename",u,l,f),a1.sync(i(u),l,f)},renameAsync:(u,l,f)=>(a1.validateInput("renameAsync",u,l,f),a1.async(i(u),l,f)),symlink:(u,l)=>{o1.validateInput("symlink",u,l),o1.sync(u,i(l))},symlinkAsync:(u,l)=>(o1.validateInput("symlinkAsync",u,l),o1.async(u,i(l))),tmpDir:u=>{c1.validateInput("tmpDir",u);let l=c1.sync(r(),u);return n(l)},tmpDirAsync:u=>(c1.validateInput("tmpDirAsync",u),new Promise((l,f)=>{c1.async(r(),u).then(p=>{l(n(p))},f)})),write:(u,l,f)=>{u1.validateInput("write",u,l,f),u1.sync(i(u),l,f)},writeAsync:(u,l,f)=>(u1.validateInput("writeAsync",u,l,f),u1.async(i(u),l,f))};return HG.inspect.custom!==void 0&&(c[HG.inspect.custom]=()=>`[fs-jetpack CWD: ${r()}]`),c};YG.exports=VG});var JG=S((jOt,XG)=>{"use strict";var f3e=KG();XG.exports=f3e()});var ZG=S((BOt,QG)=>{"use strict";var p3e=require("crypto");QG.exports=e=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");return p3e.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}});var tW=S((UOt,eW)=>{"use strict";var d3e=ZG();eW.exports=()=>d3e(32)});var l1=S((GOt,rW)=>{"use strict";var h3e=require("fs"),m3e=require("os"),x2=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[x2]||Object.defineProperty(global,x2,{value:h3e.realpathSync(m3e.tmpdir())});rW.exports=global[x2]});var iW=S((WOt,nW)=>{"use strict";nW.exports=(...e)=>[...new Set([].concat(...e))]});var w2=S((HOt,oW)=>{"use strict";var g3e=require("stream"),sW=g3e.PassThrough,v3e=Array.prototype.slice;oW.exports=y3e;function y3e(){let e=[],r=v3e.call(arguments),n=!1,i=r[r.length-1];i&&!Array.isArray(i)&&i.pipe==null?r.pop():i={};let a=i.end!==!1,o=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let c=sW(i);function u(){for(let p=0,g=arguments.length;p0||(n=!1,l())}function x(E){function D(){E.removeListener("merge2UnpipeEnd",D),E.removeListener("end",D),o&&E.removeListener("error",P),v()}function P(R){c.emit("error",R)}if(E._readableState.endEmitted)return v();E.on("merge2UnpipeEnd",D),E.on("end",D),o&&E.on("error",P),E.pipe(c,{end:!1}),E.resume()}for(let E=0;E{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.splitWhen=td.flatten=void 0;function b3e(e){return e.reduce((r,n)=>[].concat(r,n),[])}td.flatten=b3e;function x3e(e,r){let n=[[]],i=0;for(let a of e)r(a)?(i++,n[i]=[]):n[i].push(a);return n}td.splitWhen=x3e});var uW=S(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.isEnoentCodeError=void 0;function w3e(e){return e.code==="ENOENT"}f1.isEnoentCodeError=w3e});var lW=S(p1=>{"use strict";Object.defineProperty(p1,"__esModule",{value:!0});p1.createDirentFromStats=void 0;var _2=class{constructor(r,n){this.name=r,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function _3e(e,r){return new _2(e,r)}p1.createDirentFromStats=_3e});var hW=S(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.convertPosixPathToPattern=Or.convertWindowsPathToPattern=Or.convertPathToPattern=Or.escapePosixPath=Or.escapeWindowsPath=Or.escape=Or.removeLeadingDotSegment=Or.makeAbsolute=Or.unixify=void 0;var E3e=require("os"),S3e=require("path"),fW=E3e.platform()==="win32",D3e=2,C3e=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,P3e=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,T3e=/^\\\\([.?])/,R3e=/\\(?![!()+@[\]{}])/g;function A3e(e){return e.replace(/\\/g,"/")}Or.unixify=A3e;function O3e(e,r){return S3e.resolve(e,r)}Or.makeAbsolute=O3e;function I3e(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(D3e)}return e}Or.removeLeadingDotSegment=I3e;Or.escape=fW?E2:S2;function E2(e){return e.replace(P3e,"\\$2")}Or.escapeWindowsPath=E2;function S2(e){return e.replace(C3e,"\\$2")}Or.escapePosixPath=S2;Or.convertPathToPattern=fW?pW:dW;function pW(e){return E2(e).replace(T3e,"//$1").replace(R3e,"/")}Or.convertWindowsPathToPattern=pW;function dW(e){return S2(e)}Or.convertPosixPathToPattern=dW});var gW=S((XOt,mW)=>{"use strict";mW.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(n[2])return!0;r=r.slice(n.index+n[0].length)}return!1}});var d1=S((JOt,yW)=>{"use strict";var k3e=gW(),vW={"{":"}","(":")","[":"]"},F3e=function(e){if(e[0]==="!")return!0;for(var r=0,n=-2,i=-2,a=-2,o=-2,c=-2;rr&&(c===-1||c>i||(c=e.indexOf("\\",r),c===-1||c>i)))||a!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(a=e.indexOf("}",r),a>r&&(c=e.indexOf("\\",r),c===-1||c>a))||o!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(o=e.indexOf(")",r),o>r&&(c=e.indexOf("\\",r),c===-1||c>o))||n!==-1&&e[r]==="("&&e[r+1]!=="|"&&(nn&&(c=e.indexOf("\\",n),c===-1||c>o))))return!0;if(e[r]==="\\"){var u=e[r+1];r+=2;var l=vW[u];if(l){var f=e.indexOf(l,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},$3e=function(e){if(e[0]==="!")return!0;for(var r=0;r{"use strict";var L3e=d1(),N3e=require("path").posix.dirname,M3e=require("os").platform()==="win32",D2="/",q3e=/\\/g,j3e=/[\{\[].*[\}\]]$/,B3e=/(^|[^\\])([\{\[]|\([^\)]+$)/,U3e=/\\([\!\*\?\|\[\]\(\)\{\}])/g;bW.exports=function(r,n){var i=Object.assign({flipBackslashes:!0},n);i.flipBackslashes&&M3e&&r.indexOf(D2)<0&&(r=r.replace(q3e,D2)),j3e.test(r)&&(r+=D2),r+="a";do r=N3e(r);while(L3e(r)||B3e.test(r));return r.replace(U3e,"$1")}});var h1=S(ys=>{"use strict";ys.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ys.find=(e,r)=>e.nodes.find(n=>n.type===r);ys.exceedsLimit=(e,r,n=1,i)=>i===!1||!ys.isInteger(e)||!ys.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=i;ys.escapeNode=(e,r=0,n)=>{let i=e.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};ys.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ys.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ys.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ys.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]);ys.flatten=(...e)=>{let r=[],n=i=>{for(let a=0;a{"use strict";var xW=h1();wW.exports=(e,r={})=>{let n=(i,a={})=>{let o=r.escapeInvalid&&xW.isInvalidBrace(a),c=i.invalid===!0&&r.escapeInvalid===!0,u="";if(i.value)return(o||c)&&xW.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)u+=n(l);return u};return n(e)}});var EW=S((tIt,_W)=>{"use strict";_W.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var IW=S((rIt,OW)=>{"use strict";var SW=EW(),Rl=(e,r,n)=>{if(SW(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(SW(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let a=String(i.relaxZeros),o=String(i.shorthand),c=String(i.capture),u=String(i.wrap),l=e+":"+r+"="+a+o+c+u;if(Rl.cache.hasOwnProperty(l))return Rl.cache[l].result;let f=Math.min(e,r),p=Math.max(e,r);if(Math.abs(f-p)===1){let D=e+"|"+r;return i.capture?`(${D})`:i.wrap===!1?D:`(?:${D})`}let g=AW(e)||AW(r),v={min:e,max:r,a:f,b:p},x=[],E=[];if(g&&(v.isPadded=g,v.maxLen=String(v.max).length),f<0){let D=p<0?Math.abs(p):1;E=DW(D,Math.abs(f),v,i),f=v.a=0}return p>=0&&(x=DW(f,p,v,i)),v.negatives=E,v.positives=x,v.result=G3e(E,x,i),i.capture===!0?v.result=`(${v.result})`:i.wrap!==!1&&x.length+E.length>1&&(v.result=`(?:${v.result})`),Rl.cache[l]=v,v.result};function G3e(e,r,n){let i=P2(e,r,"-",!1,n)||[],a=P2(r,e,"",!1,n)||[],o=P2(e,r,"-?",!0,n)||[];return i.concat(o).concat(a).join("|")}function W3e(e,r){let n=1,i=1,a=PW(e,n),o=new Set([r]);for(;e<=a&&a<=r;)o.add(a),n+=1,a=PW(e,n);for(a=TW(r+1,i)-1;e1&&u.count.pop(),u.count.push(p.count[0]),u.string=u.pattern+RW(u.count),c=f+1;continue}n.isPadded&&(g=K3e(f,n,i)),p.string=g+p.pattern+RW(p.count),o.push(p),c=f+1,u=p}return o}function P2(e,r,n,i,a){let o=[];for(let c of e){let{string:u}=c;!i&&!CW(r,"string",u)&&o.push(n+u),i&&CW(r,"string",u)&&o.push(n+u)}return o}function z3e(e,r){let n=[];for(let i=0;ir?1:r>e?-1:0}function CW(e,r,n){return e.some(i=>i[r]===n)}function PW(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function TW(e,r){return e-e%Math.pow(10,r)}function RW(e){let[r=0,n=""]=e;return n||r>1?`{${r+(n?","+n:"")}}`:""}function Y3e(e,r,n){return`[${e}${r-e===1?"":"-"}${r}]`}function AW(e){return/^-?(0+)\d/.test(e)}function K3e(e,r,n){if(!r.isPadded)return e;let i=Math.abs(r.maxLen-String(e).length),a=n.relaxZeros!==!1;switch(i){case 0:return"";case 1:return a?"0?":"0";case 2:return a?"0{0,2}":"00";default:return a?`0{0,${i}}`:`0{${i}}`}}Rl.cache={};Rl.clearCache=()=>Rl.cache={};OW.exports=Rl});var A2=S((nIt,qW)=>{"use strict";var X3e=require("util"),FW=IW(),kW=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),J3e=e=>r=>e===!0?Number(r):String(r),T2=e=>typeof e=="number"||typeof e=="string"&&e!=="",Jg=e=>Number.isInteger(+e),R2=e=>{let r=`${e}`,n=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++n]==="0";);return n>0},Q3e=(e,r,n)=>typeof e=="string"||typeof r=="string"?!0:n.stringify===!0,Z3e=(e,r,n)=>{if(r>0){let i=e[0]==="-"?"-":"";i&&(e=e.slice(1)),e=i+e.padStart(i?r-1:r,"0")}return n===!1?String(e):e},v1=(e,r)=>{let n=e[0]==="-"?"-":"";for(n&&(e=e.slice(1),r--);e.length{e.negatives.sort((u,l)=>ul?1:0),e.positives.sort((u,l)=>ul?1:0);let i=r.capture?"":"?:",a="",o="",c;return e.positives.length&&(a=e.positives.map(u=>v1(String(u),n)).join("|")),e.negatives.length&&(o=`-(${i}${e.negatives.map(u=>v1(String(u),n)).join("|")})`),a&&o?c=`${a}|${o}`:c=a||o,r.wrap?`(${i}${c})`:c},$W=(e,r,n,i)=>{if(n)return FW(e,r,{wrap:!1,...i});let a=String.fromCharCode(e);if(e===r)return a;let o=String.fromCharCode(r);return`[${a}-${o}]`},LW=(e,r,n)=>{if(Array.isArray(e)){let i=n.wrap===!0,a=n.capture?"":"?:";return i?`(${a}${e.join("|")})`:e.join("|")}return FW(e,r,n)},NW=(...e)=>new RangeError("Invalid range arguments: "+X3e.inspect(...e)),MW=(e,r,n)=>{if(n.strictRanges===!0)throw NW([e,r]);return[]},tLe=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},rLe=(e,r,n=1,i={})=>{let a=Number(e),o=Number(r);if(!Number.isInteger(a)||!Number.isInteger(o)){if(i.strictRanges===!0)throw NW([e,r]);return[]}a===0&&(a=0),o===0&&(o=0);let c=a>o,u=String(e),l=String(r),f=String(n);n=Math.max(Math.abs(n),1);let p=R2(u)||R2(l)||R2(f),g=p?Math.max(u.length,l.length,f.length):0,v=p===!1&&Q3e(e,r,i)===!1,x=i.transform||J3e(v);if(i.toRegex&&n===1)return $W(v1(e,g),v1(r,g),!0,i);let E={negatives:[],positives:[]},D=k=>E[k<0?"negatives":"positives"].push(Math.abs(k)),P=[],R=0;for(;c?a>=o:a<=o;)i.toRegex===!0&&n>1?D(a):P.push(Z3e(x(a,R),g,v)),a=c?a-n:a+n,R++;return i.toRegex===!0?n>1?eLe(E,i,g):LW(P,null,{wrap:!1,...i}):P},nLe=(e,r,n=1,i={})=>{if(!Jg(e)&&e.length>1||!Jg(r)&&r.length>1)return MW(e,r,i);let a=i.transform||(v=>String.fromCharCode(v)),o=`${e}`.charCodeAt(0),c=`${r}`.charCodeAt(0),u=o>c,l=Math.min(o,c),f=Math.max(o,c);if(i.toRegex&&n===1)return $W(l,f,!1,i);let p=[],g=0;for(;u?o>=c:o<=c;)p.push(a(o,g)),o=u?o-n:o+n,g++;return i.toRegex===!0?LW(p,null,{wrap:!1,options:i}):p},g1=(e,r,n,i={})=>{if(r==null&&T2(e))return[e];if(!T2(e)||!T2(r))return MW(e,r,i);if(typeof n=="function")return g1(e,r,1,{transform:n});if(kW(n))return g1(e,r,0,n);let a={...i};return a.capture===!0&&(a.wrap=!0),n=n||a.step||1,Jg(n)?Jg(e)&&Jg(r)?rLe(e,r,n,a):nLe(e,r,Math.max(Math.abs(n),1),a):n!=null&&!kW(n)?tLe(n,a):g1(e,r,1,n)};qW.exports=g1});var UW=S((iIt,BW)=>{"use strict";var iLe=A2(),jW=h1(),sLe=(e,r={})=>{let n=(i,a={})=>{let o=jW.isInvalidBrace(a),c=i.invalid===!0&&r.escapeInvalid===!0,u=o===!0||c===!0,l=r.escapeInvalid===!0?"\\":"",f="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return u?l+i.value:"(";if(i.type==="close")return u?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let p=jW.reduce(i.nodes),g=iLe(...p,{...r,wrap:!1,toRegex:!0});if(g.length!==0)return p.length>1&&g.length>1?`(${g})`:g}if(i.nodes)for(let p of i.nodes)f+=n(p,i);return f};return n(e)};BW.exports=sLe});var HW=S((sIt,WW)=>{"use strict";var aLe=A2(),GW=m1(),rd=h1(),Al=(e="",r="",n=!1)=>{let i=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return n?rd.flatten(r).map(a=>`{${a}}`):r;for(let a of e)if(Array.isArray(a))for(let o of a)i.push(Al(o,r,n));else for(let o of r)n===!0&&typeof o=="string"&&(o=`{${o}}`),i.push(Array.isArray(o)?Al(a,o,n):a+o);return rd.flatten(i)},oLe=(e,r={})=>{let n=r.rangeLimit===void 0?1e3:r.rangeLimit,i=(a,o={})=>{a.queue=[];let c=o,u=o.queue;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.queue;if(a.invalid||a.dollar){u.push(Al(u.pop(),GW(a,r)));return}if(a.type==="brace"&&a.invalid!==!0&&a.nodes.length===2){u.push(Al(u.pop(),["{}"]));return}if(a.nodes&&a.ranges>0){let g=rd.reduce(a.nodes);if(rd.exceedsLimit(...g,r.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let v=aLe(...g,r);v.length===0&&(v=GW(a,r)),u.push(Al(u.pop(),v)),a.nodes=[];return}let l=rd.encloseBrace(a),f=a.queue,p=a;for(;p.type!=="brace"&&p.type!=="root"&&p.parent;)p=p.parent,f=p.queue;for(let g=0;g{"use strict";zW.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` -`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var QW=S((oIt,JW)=>{"use strict";var cLe=m1(),{MAX_LENGTH:YW,CHAR_BACKSLASH:O2,CHAR_BACKTICK:uLe,CHAR_COMMA:lLe,CHAR_DOT:fLe,CHAR_LEFT_PARENTHESES:pLe,CHAR_RIGHT_PARENTHESES:dLe,CHAR_LEFT_CURLY_BRACE:hLe,CHAR_RIGHT_CURLY_BRACE:mLe,CHAR_LEFT_SQUARE_BRACKET:KW,CHAR_RIGHT_SQUARE_BRACKET:XW,CHAR_DOUBLE_QUOTE:gLe,CHAR_SINGLE_QUOTE:vLe,CHAR_NO_BREAK_SPACE:yLe,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bLe}=VW(),xLe=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=r||{},i=typeof n.maxLength=="number"?Math.min(YW,n.maxLength):YW;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let a={type:"root",input:e,nodes:[]},o=[a],c=a,u=a,l=0,f=e.length,p=0,g=0,v,x={},E=()=>e[p++],D=P=>{if(P.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&P.type==="text"){u.value+=P.value;return}return c.nodes.push(P),P.parent=c,P.prev=u,u=P,P};for(D({type:"bos"});p0){if(c.ranges>0){c.ranges=0;let P=c.nodes.shift();c.nodes=[P,{type:"text",value:cLe(c)}]}D({type:"comma",value:v}),c.commas++;continue}if(v===fLe&&g>0&&c.commas===0){let P=c.nodes;if(g===0||P.length===0){D({type:"text",value:v});continue}if(u.type==="dot"){if(c.range=[],u.value+=v,u.type="range",c.nodes.length!==3&&c.nodes.length!==5){c.invalid=!0,c.ranges=0,u.type="text";continue}c.ranges++,c.args=[];continue}if(u.type==="range"){P.pop();let R=P[P.length-1];R.value+=u.value+v,u=R,c.ranges--;continue}D({type:"dot",value:v});continue}D({type:"text",value:v})}do if(c=o.pop(),c.type!=="root"){c.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let P=o[o.length-1],R=P.nodes.indexOf(c);P.nodes.splice(R,1,...c.nodes)}while(o.length>0);return D({type:"eos"}),a};JW.exports=xLe});var I2=S((cIt,eH)=>{"use strict";var ZW=m1(),wLe=UW(),_Le=HW(),ELe=QW(),Bi=(e,r={})=>{let n=[];if(Array.isArray(e))for(let i of e){let a=Bi.create(i,r);Array.isArray(a)?n.push(...a):n.push(a)}else n=[].concat(Bi.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(n=[...new Set(n)]),n};Bi.parse=(e,r={})=>ELe(e,r);Bi.stringify=(e,r={})=>ZW(typeof e=="string"?Bi.parse(e,r):e,r);Bi.compile=(e,r={})=>(typeof e=="string"&&(e=Bi.parse(e,r)),wLe(e,r));Bi.expand=(e,r={})=>{typeof e=="string"&&(e=Bi.parse(e,r));let n=_Le(e,r);return r.noempty===!0&&(n=n.filter(Boolean)),r.nodupes===!0&&(n=[...new Set(n)]),n};Bi.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?Bi.compile(e,r):Bi.expand(e,r);eH.exports=Bi});var Qg=S((uIt,sH)=>{"use strict";var SLe=require("path"),Wa="\\\\/",tH=`[^${Wa}]`,Io="\\.",DLe="\\+",CLe="\\?",y1="\\/",PLe="(?=.)",rH="[^/]",k2=`(?:${y1}|$)`,nH=`(?:^|${y1})`,F2=`${Io}{1,2}${k2}`,TLe=`(?!${Io})`,RLe=`(?!${nH}${F2})`,ALe=`(?!${Io}{0,1}${k2})`,OLe=`(?!${F2})`,ILe=`[^.${y1}]`,kLe=`${rH}*?`,iH={DOT_LITERAL:Io,PLUS_LITERAL:DLe,QMARK_LITERAL:CLe,SLASH_LITERAL:y1,ONE_CHAR:PLe,QMARK:rH,END_ANCHOR:k2,DOTS_SLASH:F2,NO_DOT:TLe,NO_DOTS:RLe,NO_DOT_SLASH:ALe,NO_DOTS_SLASH:OLe,QMARK_NO_DOT:ILe,STAR:kLe,START_ANCHOR:nH},FLe={...iH,SLASH_LITERAL:`[${Wa}]`,QMARK:tH,STAR:`${tH}*?`,DOTS_SLASH:`${Io}{1,2}(?:[${Wa}]|$)`,NO_DOT:`(?!${Io})`,NO_DOTS:`(?!(?:^|[${Wa}])${Io}{1,2}(?:[${Wa}]|$))`,NO_DOT_SLASH:`(?!${Io}{0,1}(?:[${Wa}]|$))`,NO_DOTS_SLASH:`(?!${Io}{1,2}(?:[${Wa}]|$))`,QMARK_NO_DOT:`[^.${Wa}]`,START_ANCHOR:`(?:^|[${Wa}])`,END_ANCHOR:`(?:[${Wa}]|$)`},$Le={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};sH.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$Le,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:SLe.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?FLe:iH}}});var Zg=S(gi=>{"use strict";var LLe=require("path"),NLe=process.platform==="win32",{REGEX_BACKSLASH:MLe,REGEX_REMOVE_BACKSLASH:qLe,REGEX_SPECIAL_CHARS:jLe,REGEX_SPECIAL_CHARS_GLOBAL:BLe}=Qg();gi.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);gi.hasRegexChars=e=>jLe.test(e);gi.isRegexChar=e=>e.length===1&&gi.hasRegexChars(e);gi.escapeRegex=e=>e.replace(BLe,"\\$1");gi.toPosixSlashes=e=>e.replace(MLe,"/");gi.removeBackslashes=e=>e.replace(qLe,r=>r==="\\"?"":r);gi.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};gi.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:NLe===!0||LLe.sep==="\\";gi.escapeLast=(e,r,n)=>{let i=e.lastIndexOf(r,n);return i===-1?e:e[i-1]==="\\"?gi.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`};gi.removePrefix=(e,r={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),r.prefix="./"),n};gi.wrapOutput=(e,r={},n={})=>{let i=n.contains?"":"^",a=n.contains?"":"$",o=`${i}(?:${e})${a}`;return r.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var dH=S((fIt,pH)=>{"use strict";var aH=Zg(),{CHAR_ASTERISK:$2,CHAR_AT:ULe,CHAR_BACKWARD_SLASH:ev,CHAR_COMMA:GLe,CHAR_DOT:L2,CHAR_EXCLAMATION_MARK:N2,CHAR_FORWARD_SLASH:fH,CHAR_LEFT_CURLY_BRACE:M2,CHAR_LEFT_PARENTHESES:q2,CHAR_LEFT_SQUARE_BRACKET:WLe,CHAR_PLUS:HLe,CHAR_QUESTION_MARK:oH,CHAR_RIGHT_CURLY_BRACE:zLe,CHAR_RIGHT_PARENTHESES:cH,CHAR_RIGHT_SQUARE_BRACKET:VLe}=Qg(),uH=e=>e===fH||e===ev,lH=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},YLe=(e,r)=>{let n=r||{},i=e.length-1,a=n.parts===!0||n.scanToEnd===!0,o=[],c=[],u=[],l=e,f=-1,p=0,g=0,v=!1,x=!1,E=!1,D=!1,P=!1,R=!1,k=!1,F=!1,L=!1,U=!1,V=0,j,W,q={value:"",depth:0,isGlob:!1},X=()=>f>=i,M=()=>l.charCodeAt(f+1),Q=()=>(j=W,l.charCodeAt(++f));for(;f0&&(ce=l.slice(0,p),l=l.slice(p),g-=p),ee&&E===!0&&g>0?(ee=l.slice(0,g),H=l.slice(g)):E===!0?(ee="",H=l):ee=l,ee&&ee!==""&&ee!=="/"&&ee!==l&&uH(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),n.unescape===!0&&(H&&(H=aH.removeBackslashes(H)),ee&&k===!0&&(ee=aH.removeBackslashes(ee)));let Y={prefix:ce,input:e,start:p,base:ee,glob:H,isBrace:v,isBracket:x,isGlob:E,isExtglob:D,isGlobstar:P,negated:F,negatedExtglob:L};if(n.tokens===!0&&(Y.maxDepth=0,uH(W)||c.push(q),Y.tokens=c),n.parts===!0||n.tokens===!0){let ie;for(let ae=0;ae{"use strict";var b1=Qg(),Ui=Zg(),{MAX_LENGTH:x1,POSIX_REGEX_SOURCE:KLe,REGEX_NON_SPECIAL_CHARS:XLe,REGEX_SPECIAL_CHARS_BACKREF:JLe,REPLACEMENTS:hH}=b1,QLe=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(a=>Ui.escapeRegex(a)).join("..")}return n},nd=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,j2=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=hH[e]||e;let n={...r},i=typeof n.maxLength=="number"?Math.min(x1,n.maxLength):x1,a=e.length;if(a>i)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`);let o={type:"bos",value:"",output:n.prepend||""},c=[o],u=n.capture?"":"?:",l=Ui.isWindows(r),f=b1.globChars(l),p=b1.extglobChars(f),{DOT_LITERAL:g,PLUS_LITERAL:v,SLASH_LITERAL:x,ONE_CHAR:E,DOTS_SLASH:D,NO_DOT:P,NO_DOT_SLASH:R,NO_DOTS_SLASH:k,QMARK:F,QMARK_NO_DOT:L,STAR:U,START_ANCHOR:V}=f,j=pe=>`(${u}(?:(?!${V}${pe.dot?D:g}).)*?)`,W=n.dot?"":P,q=n.dot?F:L,X=n.bash===!0?j(n):U;n.capture&&(X=`(${X})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let M={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:c};e=Ui.removePrefix(e,M),a=e.length;let Q=[],ee=[],ce=[],H=o,Y,ie=()=>M.index===a-1,ae=M.peek=(pe=1)=>e[M.index+pe],le=M.advance=()=>e[++M.index]||"",$t=()=>e.slice(M.index+1),Lt=(pe="",Ge=0)=>{M.consumed+=pe,M.index+=Ge},ur=pe=>{M.output+=pe.output!=null?pe.output:pe.value,Lt(pe.value)},Dr=()=>{let pe=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)le(),M.start++,pe++;return pe%2===0?!1:(M.negated=!0,M.start++,!0)},Xs=pe=>{M[pe]++,ce.push(pe)},tn=pe=>{M[pe]--,ce.pop()},Te=pe=>{if(H.type==="globstar"){let Ge=M.braces>0&&(pe.type==="comma"||pe.type==="brace"),ue=pe.extglob===!0||Q.length&&(pe.type==="pipe"||pe.type==="paren");pe.type!=="slash"&&pe.type!=="paren"&&!Ge&&!ue&&(M.output=M.output.slice(0,-H.output.length),H.type="star",H.value="*",H.output=X,M.output+=H.output)}if(Q.length&&pe.type!=="paren"&&(Q[Q.length-1].inner+=pe.value),(pe.value||pe.output)&&ur(pe),H&&H.type==="text"&&pe.type==="text"){H.value+=pe.value,H.output=(H.output||"")+pe.value;return}pe.prev=H,c.push(pe),H=pe},Wt=(pe,Ge)=>{let ue={...p[Ge],conditions:1,inner:""};ue.prev=H,ue.parens=M.parens,ue.output=M.output;let Be=(n.capture?"(":"")+ue.open;Xs("parens"),Te({type:pe,value:Ge,output:M.output?"":E}),Te({type:"paren",extglob:!0,value:le(),output:Be}),Q.push(ue)},Sc=pe=>{let Ge=pe.close+(n.capture?")":""),ue;if(pe.type==="negate"){let Be=X;if(pe.inner&&pe.inner.length>1&&pe.inner.includes("/")&&(Be=j(n)),(Be!==X||ie()||/^\)+$/.test($t()))&&(Ge=pe.close=`)$))${Be}`),pe.inner.includes("*")&&(ue=$t())&&/^\.[^\\/.]+$/.test(ue)){let Ht=j2(ue,{...r,fastpaths:!1}).output;Ge=pe.close=`)${Ht})${Be})`}pe.prev.type==="bos"&&(M.negatedExtglob=!0)}Te({type:"paren",extglob:!0,value:Y,output:Ge}),tn("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let pe=!1,Ge=e.replace(JLe,(ue,Be,Ht,wn,br,vl)=>wn==="\\"?(pe=!0,ue):wn==="?"?Be?Be+wn+(br?F.repeat(br.length):""):vl===0?q+(br?F.repeat(br.length):""):F.repeat(Ht.length):wn==="."?g.repeat(Ht.length):wn==="*"?Be?Be+wn+(br?X:""):X:Be?ue:`\\${ue}`);return pe===!0&&(n.unescape===!0?Ge=Ge.replace(/\\/g,""):Ge=Ge.replace(/\\+/g,ue=>ue.length%2===0?"\\\\":ue?"\\":"")),Ge===e&&n.contains===!0?(M.output=e,M):(M.output=Ui.wrapOutput(Ge,M,r),M)}for(;!ie();){if(Y=le(),Y==="\0")continue;if(Y==="\\"){let ue=ae();if(ue==="/"&&n.bash!==!0||ue==="."||ue===";")continue;if(!ue){Y+="\\",Te({type:"text",value:Y});continue}let Be=/^\\+/.exec($t()),Ht=0;if(Be&&Be[0].length>2&&(Ht=Be[0].length,M.index+=Ht,Ht%2!==0&&(Y+="\\")),n.unescape===!0?Y=le():Y+=le(),M.brackets===0){Te({type:"text",value:Y});continue}}if(M.brackets>0&&(Y!=="]"||H.value==="["||H.value==="[^")){if(n.posix!==!1&&Y===":"){let ue=H.value.slice(1);if(ue.includes("[")&&(H.posix=!0,ue.includes(":"))){let Be=H.value.lastIndexOf("["),Ht=H.value.slice(0,Be),wn=H.value.slice(Be+2),br=KLe[wn];if(br){H.value=Ht+br,M.backtrack=!0,le(),!o.output&&c.indexOf(H)===1&&(o.output=E);continue}}}(Y==="["&&ae()!==":"||Y==="-"&&ae()==="]")&&(Y=`\\${Y}`),Y==="]"&&(H.value==="["||H.value==="[^")&&(Y=`\\${Y}`),n.posix===!0&&Y==="!"&&H.value==="["&&(Y="^"),H.value+=Y,ur({value:Y});continue}if(M.quotes===1&&Y!=='"'){Y=Ui.escapeRegex(Y),H.value+=Y,ur({value:Y});continue}if(Y==='"'){M.quotes=M.quotes===1?0:1,n.keepQuotes===!0&&Te({type:"text",value:Y});continue}if(Y==="("){Xs("parens"),Te({type:"paren",value:Y});continue}if(Y===")"){if(M.parens===0&&n.strictBrackets===!0)throw new SyntaxError(nd("opening","("));let ue=Q[Q.length-1];if(ue&&M.parens===ue.parens+1){Sc(Q.pop());continue}Te({type:"paren",value:Y,output:M.parens?")":"\\)"}),tn("parens");continue}if(Y==="["){if(n.nobracket===!0||!$t().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(nd("closing","]"));Y=`\\${Y}`}else Xs("brackets");Te({type:"bracket",value:Y});continue}if(Y==="]"){if(n.nobracket===!0||H&&H.type==="bracket"&&H.value.length===1){Te({type:"text",value:Y,output:`\\${Y}`});continue}if(M.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(nd("opening","["));Te({type:"text",value:Y,output:`\\${Y}`});continue}tn("brackets");let ue=H.value.slice(1);if(H.posix!==!0&&ue[0]==="^"&&!ue.includes("/")&&(Y=`/${Y}`),H.value+=Y,ur({value:Y}),n.literalBrackets===!1||Ui.hasRegexChars(ue))continue;let Be=Ui.escapeRegex(H.value);if(M.output=M.output.slice(0,-H.value.length),n.literalBrackets===!0){M.output+=Be,H.value=Be;continue}H.value=`(${u}${Be}|${H.value})`,M.output+=H.value;continue}if(Y==="{"&&n.nobrace!==!0){Xs("braces");let ue={type:"brace",value:Y,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ee.push(ue),Te(ue);continue}if(Y==="}"){let ue=ee[ee.length-1];if(n.nobrace===!0||!ue){Te({type:"text",value:Y,output:Y});continue}let Be=")";if(ue.dots===!0){let Ht=c.slice(),wn=[];for(let br=Ht.length-1;br>=0&&(c.pop(),Ht[br].type!=="brace");br--)Ht[br].type!=="dots"&&wn.unshift(Ht[br].value);Be=QLe(wn,n),M.backtrack=!0}if(ue.comma!==!0&&ue.dots!==!0){let Ht=M.output.slice(0,ue.outputIndex),wn=M.tokens.slice(ue.tokensIndex);ue.value=ue.output="\\{",Y=Be="\\}",M.output=Ht;for(let br of wn)M.output+=br.output||br.value}Te({type:"brace",value:Y,output:Be}),tn("braces"),ee.pop();continue}if(Y==="|"){Q.length>0&&Q[Q.length-1].conditions++,Te({type:"text",value:Y});continue}if(Y===","){let ue=Y,Be=ee[ee.length-1];Be&&ce[ce.length-1]==="braces"&&(Be.comma=!0,ue="|"),Te({type:"comma",value:Y,output:ue});continue}if(Y==="/"){if(H.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",c.pop(),H=o;continue}Te({type:"slash",value:Y,output:x});continue}if(Y==="."){if(M.braces>0&&H.type==="dot"){H.value==="."&&(H.output=g);let ue=ee[ee.length-1];H.type="dots",H.output+=Y,H.value+=Y,ue.dots=!0;continue}if(M.braces+M.parens===0&&H.type!=="bos"&&H.type!=="slash"){Te({type:"text",value:Y,output:g});continue}Te({type:"dot",value:Y,output:g});continue}if(Y==="?"){if(!(H&&H.value==="(")&&n.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){Wt("qmark",Y);continue}if(H&&H.type==="paren"){let Be=ae(),Ht=Y;if(Be==="<"&&!Ui.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(H.value==="("&&!/[!=<:]/.test(Be)||Be==="<"&&!/<([!=]|\w+>)/.test($t()))&&(Ht=`\\${Y}`),Te({type:"text",value:Y,output:Ht});continue}if(n.dot!==!0&&(H.type==="slash"||H.type==="bos")){Te({type:"qmark",value:Y,output:L});continue}Te({type:"qmark",value:Y,output:F});continue}if(Y==="!"){if(n.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){Wt("negate",Y);continue}if(n.nonegate!==!0&&M.index===0){Dr();continue}}if(Y==="+"){if(n.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){Wt("plus",Y);continue}if(H&&H.value==="("||n.regex===!1){Te({type:"plus",value:Y,output:v});continue}if(H&&(H.type==="bracket"||H.type==="paren"||H.type==="brace")||M.parens>0){Te({type:"plus",value:Y});continue}Te({type:"plus",value:v});continue}if(Y==="@"){if(n.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){Te({type:"at",extglob:!0,value:Y,output:""});continue}Te({type:"text",value:Y});continue}if(Y!=="*"){(Y==="$"||Y==="^")&&(Y=`\\${Y}`);let ue=XLe.exec($t());ue&&(Y+=ue[0],M.index+=ue[0].length),Te({type:"text",value:Y});continue}if(H&&(H.type==="globstar"||H.star===!0)){H.type="star",H.star=!0,H.value+=Y,H.output=X,M.backtrack=!0,M.globstar=!0,Lt(Y);continue}let pe=$t();if(n.noextglob!==!0&&/^\([^?]/.test(pe)){Wt("star",Y);continue}if(H.type==="star"){if(n.noglobstar===!0){Lt(Y);continue}let ue=H.prev,Be=ue.prev,Ht=ue.type==="slash"||ue.type==="bos",wn=Be&&(Be.type==="star"||Be.type==="globstar");if(n.bash===!0&&(!Ht||pe[0]&&pe[0]!=="/")){Te({type:"star",value:Y,output:""});continue}let br=M.braces>0&&(ue.type==="comma"||ue.type==="brace"),vl=Q.length&&(ue.type==="pipe"||ue.type==="paren");if(!Ht&&ue.type!=="paren"&&!br&&!vl){Te({type:"star",value:Y,output:""});continue}for(;pe.slice(0,3)==="/**";){let Js=e[M.index+4];if(Js&&Js!=="/")break;pe=pe.slice(3),Lt("/**",3)}if(ue.type==="bos"&&ie()){H.type="globstar",H.value+=Y,H.output=j(n),M.output=H.output,M.globstar=!0,Lt(Y);continue}if(ue.type==="slash"&&ue.prev.type!=="bos"&&!wn&&ie()){M.output=M.output.slice(0,-(ue.output+H.output).length),ue.output=`(?:${ue.output}`,H.type="globstar",H.output=j(n)+(n.strictSlashes?")":"|$)"),H.value+=Y,M.globstar=!0,M.output+=ue.output+H.output,Lt(Y);continue}if(ue.type==="slash"&&ue.prev.type!=="bos"&&pe[0]==="/"){let Js=pe[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(ue.output+H.output).length),ue.output=`(?:${ue.output}`,H.type="globstar",H.output=`${j(n)}${x}|${x}${Js})`,H.value+=Y,M.output+=ue.output+H.output,M.globstar=!0,Lt(Y+le()),Te({type:"slash",value:"/",output:""});continue}if(ue.type==="bos"&&pe[0]==="/"){H.type="globstar",H.value+=Y,H.output=`(?:^|${x}|${j(n)}${x})`,M.output=H.output,M.globstar=!0,Lt(Y+le()),Te({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-H.output.length),H.type="globstar",H.output=j(n),H.value+=Y,M.output+=H.output,M.globstar=!0,Lt(Y);continue}let Ge={type:"star",value:Y,output:X};if(n.bash===!0){Ge.output=".*?",(H.type==="bos"||H.type==="slash")&&(Ge.output=W+Ge.output),Te(Ge);continue}if(H&&(H.type==="bracket"||H.type==="paren")&&n.regex===!0){Ge.output=Y,Te(Ge);continue}(M.index===M.start||H.type==="slash"||H.type==="dot")&&(H.type==="dot"?(M.output+=R,H.output+=R):n.dot===!0?(M.output+=k,H.output+=k):(M.output+=W,H.output+=W),ae()!=="*"&&(M.output+=E,H.output+=E)),Te(Ge)}for(;M.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(nd("closing","]"));M.output=Ui.escapeLast(M.output,"["),tn("brackets")}for(;M.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(nd("closing",")"));M.output=Ui.escapeLast(M.output,"("),tn("parens")}for(;M.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(nd("closing","}"));M.output=Ui.escapeLast(M.output,"{"),tn("braces")}if(n.strictSlashes!==!0&&(H.type==="star"||H.type==="bracket")&&Te({type:"maybe_slash",value:"",output:`${x}?`}),M.backtrack===!0){M.output="";for(let pe of M.tokens)M.output+=pe.output!=null?pe.output:pe.value,pe.suffix&&(M.output+=pe.suffix)}return M};j2.fastpaths=(e,r)=>{let n={...r},i=typeof n.maxLength=="number"?Math.min(x1,n.maxLength):x1,a=e.length;if(a>i)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`);e=hH[e]||e;let o=Ui.isWindows(r),{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:g,NO_DOTS_SLASH:v,STAR:x,START_ANCHOR:E}=b1.globChars(o),D=n.dot?g:p,P=n.dot?v:p,R=n.capture?"":"?:",k={negated:!1,prefix:""},F=n.bash===!0?".*?":x;n.capture&&(F=`(${F})`);let L=W=>W.noglobstar===!0?F:`(${R}(?:(?!${E}${W.dot?f:c}).)*?)`,U=W=>{switch(W){case"*":return`${D}${l}${F}`;case".*":return`${c}${l}${F}`;case"*.*":return`${D}${F}${c}${l}${F}`;case"*/*":return`${D}${F}${u}${l}${P}${F}`;case"**":return D+L(n);case"**/*":return`(?:${D}${L(n)}${u})?${P}${l}${F}`;case"**/*.*":return`(?:${D}${L(n)}${u})?${P}${F}${c}${l}${F}`;case"**/.*":return`(?:${D}${L(n)}${u})?${c}${l}${F}`;default:{let q=/^(.*?)\.(\w+)$/.exec(W);if(!q)return;let X=U(q[1]);return X?X+c+q[2]:void 0}}},V=Ui.removePrefix(e,k),j=U(V);return j&&n.strictSlashes!==!0&&(j+=`${u}?`),j};mH.exports=j2});var yH=S((dIt,vH)=>{"use strict";var ZLe=require("path"),e8e=dH(),B2=gH(),U2=Zg(),t8e=Qg(),r8e=e=>e&&typeof e=="object"&&!Array.isArray(e),Pr=(e,r,n=!1)=>{if(Array.isArray(e)){let p=e.map(v=>Pr(v,r,n));return v=>{for(let x of p){let E=x(v);if(E)return E}return!1}}let i=r8e(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let a=r||{},o=U2.isWindows(r),c=i?Pr.compileRe(e,r):Pr.makeRe(e,r,!1,!0),u=c.state;delete c.state;let l=()=>!1;if(a.ignore){let p={...r,ignore:null,onMatch:null,onResult:null};l=Pr(a.ignore,p,n)}let f=(p,g=!1)=>{let{isMatch:v,match:x,output:E}=Pr.test(p,c,r,{glob:e,posix:o}),D={glob:e,state:u,regex:c,posix:o,input:p,output:E,match:x,isMatch:v};return typeof a.onResult=="function"&&a.onResult(D),v===!1?(D.isMatch=!1,g?D:!1):l(p)?(typeof a.onIgnore=="function"&&a.onIgnore(D),D.isMatch=!1,g?D:!1):(typeof a.onMatch=="function"&&a.onMatch(D),g?D:!0)};return n&&(f.state=u),f};Pr.test=(e,r,n,{glob:i,posix:a}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=n||{},c=o.format||(a?U2.toPosixSlashes:null),u=e===i,l=u&&c?c(e):e;return u===!1&&(l=c?c(e):e,u=l===i),(u===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?u=Pr.matchBase(e,r,n,a):u=r.exec(l)),{isMatch:!!u,match:u,output:l}};Pr.matchBase=(e,r,n,i=U2.isWindows(n))=>(r instanceof RegExp?r:Pr.makeRe(r,n)).test(ZLe.basename(e));Pr.isMatch=(e,r,n)=>Pr(r,n)(e);Pr.parse=(e,r)=>Array.isArray(e)?e.map(n=>Pr.parse(n,r)):B2(e,{...r,fastpaths:!1});Pr.scan=(e,r)=>e8e(e,r);Pr.compileRe=(e,r,n=!1,i=!1)=>{if(n===!0)return e.output;let a=r||{},o=a.contains?"":"^",c=a.contains?"":"$",u=`${o}(?:${e.output})${c}`;e&&e.negated===!0&&(u=`^(?!${u}).*$`);let l=Pr.toRegex(u,r);return i===!0&&(l.state=e),l};Pr.makeRe=(e,r={},n=!1,i=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(a.output=B2.fastpaths(e,r)),a.output||(a=B2(e,r)),Pr.compileRe(a,r,n,i)};Pr.toRegex=(e,r)=>{try{let n=r||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(r&&r.debug===!0)throw n;return/$^/}};Pr.constants=t8e;vH.exports=Pr});var w1=S((hIt,bH)=>{"use strict";bH.exports=yH()});var SH=S((mIt,EH)=>{"use strict";var wH=require("util"),_H=I2(),Ha=w1(),G2=Zg(),xH=e=>e===""||e==="./",or=(e,r,n)=>{r=[].concat(r),e=[].concat(e);let i=new Set,a=new Set,o=new Set,c=0,u=p=>{o.add(p.output),n&&n.onResult&&n.onResult(p)};for(let p=0;p!i.has(p));if(n&&f.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?r.map(p=>p.replace(/\\/g,"")):r}return f};or.match=or;or.matcher=(e,r)=>Ha(e,r);or.isMatch=(e,r,n)=>Ha(r,n)(e);or.any=or.isMatch;or.not=(e,r,n={})=>{r=[].concat(r).map(String);let i=new Set,a=[],o=u=>{n.onResult&&n.onResult(u),a.push(u.output)},c=new Set(or(e,r,{...n,onResult:o}));for(let u of a)c.has(u)||i.add(u);return[...i]};or.contains=(e,r,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wH.inspect(e)}"`);if(Array.isArray(r))return r.some(i=>or.contains(e,i,n));if(typeof r=="string"){if(xH(e)||xH(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return or.isMatch(e,r,{...n,contains:!0})};or.matchKeys=(e,r,n)=>{if(!G2.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=or(Object.keys(e),r,n),a={};for(let o of i)a[o]=e[o];return a};or.some=(e,r,n)=>{let i=[].concat(e);for(let a of[].concat(r)){let o=Ha(String(a),n);if(i.some(c=>o(c)))return!0}return!1};or.every=(e,r,n)=>{let i=[].concat(e);for(let a of[].concat(r)){let o=Ha(String(a),n);if(!i.every(c=>o(c)))return!1}return!0};or.all=(e,r,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${wH.inspect(e)}"`);return[].concat(r).every(i=>Ha(i,n)(e))};or.capture=(e,r,n)=>{let i=G2.isWindows(n),o=Ha.makeRe(String(e),{...n,capture:!0}).exec(i?G2.toPosixSlashes(r):r);if(o)return o.slice(1).map(c=>c===void 0?"":c)};or.makeRe=(...e)=>Ha.makeRe(...e);or.scan=(...e)=>Ha.scan(...e);or.parse=(e,r)=>{let n=[];for(let i of[].concat(e||[]))for(let a of _H(String(i),r))n.push(Ha.parse(a,r));return n};or.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:_H(e,r)};or.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return or.braces(e,{...r,expand:!0})};EH.exports=or});var IH=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.removeDuplicateSlashes=Ne.matchAny=Ne.convertPatternsToRe=Ne.makeRe=Ne.getPatternParts=Ne.expandBraceExpansion=Ne.expandPatternsWithBraceExpansion=Ne.isAffectDepthOfReadingPattern=Ne.endsWithSlashGlobStar=Ne.hasGlobStar=Ne.getBaseDirectory=Ne.isPatternRelatedToParentDirectory=Ne.getPatternsOutsideCurrentDirectory=Ne.getPatternsInsideCurrentDirectory=Ne.getPositivePatterns=Ne.getNegativePatterns=Ne.isPositivePattern=Ne.isNegativePattern=Ne.convertToNegativePattern=Ne.convertToPositivePattern=Ne.isDynamicPattern=Ne.isStaticPattern=void 0;var n8e=require("path"),i8e=C2(),W2=SH(),DH="**",s8e="\\",a8e=/[*?]|^!/,o8e=/\[[^[]*]/,c8e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,u8e=/[!*+?@]\([^(]*\)/,l8e=/,|\.\./,f8e=/(?!^)\/{2,}/g;function CH(e,r={}){return!PH(e,r)}Ne.isStaticPattern=CH;function PH(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(s8e)||a8e.test(e)||o8e.test(e)||c8e.test(e)||r.extglob!==!1&&u8e.test(e)||r.braceExpansion!==!1&&p8e(e))}Ne.isDynamicPattern=PH;function p8e(e){let r=e.indexOf("{");if(r===-1)return!1;let n=e.indexOf("}",r+1);if(n===-1)return!1;let i=e.slice(r,n);return l8e.test(i)}function d8e(e){return _1(e)?e.slice(1):e}Ne.convertToPositivePattern=d8e;function h8e(e){return"!"+e}Ne.convertToNegativePattern=h8e;function _1(e){return e.startsWith("!")&&e[1]!=="("}Ne.isNegativePattern=_1;function TH(e){return!_1(e)}Ne.isPositivePattern=TH;function m8e(e){return e.filter(_1)}Ne.getNegativePatterns=m8e;function g8e(e){return e.filter(TH)}Ne.getPositivePatterns=g8e;function v8e(e){return e.filter(r=>!H2(r))}Ne.getPatternsInsideCurrentDirectory=v8e;function y8e(e){return e.filter(H2)}Ne.getPatternsOutsideCurrentDirectory=y8e;function H2(e){return e.startsWith("..")||e.startsWith("./..")}Ne.isPatternRelatedToParentDirectory=H2;function b8e(e){return i8e(e,{flipBackslashes:!1})}Ne.getBaseDirectory=b8e;function x8e(e){return e.includes(DH)}Ne.hasGlobStar=x8e;function RH(e){return e.endsWith("/"+DH)}Ne.endsWithSlashGlobStar=RH;function w8e(e){let r=n8e.basename(e);return RH(e)||CH(r)}Ne.isAffectDepthOfReadingPattern=w8e;function _8e(e){return e.reduce((r,n)=>r.concat(AH(n)),[])}Ne.expandPatternsWithBraceExpansion=_8e;function AH(e){let r=W2.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return r.sort((n,i)=>n.length-i.length),r.filter(n=>n!=="")}Ne.expandBraceExpansion=AH;function E8e(e,r){let{parts:n}=W2.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return n.length===0&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}Ne.getPatternParts=E8e;function OH(e,r){return W2.makeRe(e,r)}Ne.makeRe=OH;function S8e(e,r){return e.map(n=>OH(n,r))}Ne.convertPatternsToRe=S8e;function D8e(e,r){return r.some(n=>n.test(e))}Ne.matchAny=D8e;function C8e(e){return e.replace(f8e,"/")}Ne.removeDuplicateSlashes=C8e});var FH=S(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.merge=void 0;var P8e=w2();function T8e(e){let r=P8e(e);return e.forEach(n=>{n.once("error",i=>r.emit("error",i))}),r.once("close",()=>kH(e)),r.once("end",()=>kH(e)),r}E1.merge=T8e;function kH(e){e.forEach(r=>r.emit("close"))}});var $H=S(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.isEmpty=id.isString=void 0;function R8e(e){return typeof e=="string"}id.isString=R8e;function A8e(e){return e===""}id.isEmpty=A8e});var ko=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.string=Ln.stream=Ln.pattern=Ln.path=Ln.fs=Ln.errno=Ln.array=void 0;var O8e=cW();Ln.array=O8e;var I8e=uW();Ln.errno=I8e;var k8e=lW();Ln.fs=k8e;var F8e=hW();Ln.path=F8e;var $8e=IH();Ln.pattern=$8e;var L8e=FH();Ln.stream=L8e;var N8e=$H();Ln.string=N8e});var qH=S(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.convertPatternGroupToTask=Nn.convertPatternGroupsToTasks=Nn.groupPatternsByBaseDirectory=Nn.getNegativePatternsAsPositive=Nn.getPositivePatterns=Nn.convertPatternsToTasks=Nn.generate=void 0;var ra=ko();function M8e(e,r){let n=LH(e,r),i=LH(r.ignore,r),a=NH(n),o=MH(n,i),c=a.filter(p=>ra.pattern.isStaticPattern(p,r)),u=a.filter(p=>ra.pattern.isDynamicPattern(p,r)),l=z2(c,o,!1),f=z2(u,o,!0);return l.concat(f)}Nn.generate=M8e;function LH(e,r){let n=e;return r.braceExpansion&&(n=ra.pattern.expandPatternsWithBraceExpansion(n)),r.baseNameMatch&&(n=n.map(i=>i.includes("/")?i:`**/${i}`)),n.map(i=>ra.pattern.removeDuplicateSlashes(i))}function z2(e,r,n){let i=[],a=ra.pattern.getPatternsOutsideCurrentDirectory(e),o=ra.pattern.getPatternsInsideCurrentDirectory(e),c=V2(a),u=V2(o);return i.push(...Y2(c,r,n)),"."in u?i.push(K2(".",o,r,n)):i.push(...Y2(u,r,n)),i}Nn.convertPatternsToTasks=z2;function NH(e){return ra.pattern.getPositivePatterns(e)}Nn.getPositivePatterns=NH;function MH(e,r){return ra.pattern.getNegativePatterns(e).concat(r).map(ra.pattern.convertToPositivePattern)}Nn.getNegativePatternsAsPositive=MH;function V2(e){let r={};return e.reduce((n,i)=>{let a=ra.pattern.getBaseDirectory(i);return a in n?n[a].push(i):n[a]=[i],n},r)}Nn.groupPatternsByBaseDirectory=V2;function Y2(e,r,n){return Object.keys(e).map(i=>K2(i,e[i],r,n))}Nn.convertPatternGroupsToTasks=Y2;function K2(e,r,n,i){return{dynamic:i,positive:r,negative:n,base:e,patterns:[].concat(r,n.map(ra.pattern.convertToNegativePattern))}}Nn.convertPatternGroupToTask=K2});var BH=S(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.read=void 0;function q8e(e,r,n){r.fs.lstat(e,(i,a)=>{if(i!==null){jH(n,i);return}if(!a.isSymbolicLink()||!r.followSymbolicLink){X2(n,a);return}r.fs.stat(e,(o,c)=>{if(o!==null){if(r.throwErrorOnBrokenSymbolicLink){jH(n,o);return}X2(n,a);return}r.markSymbolicLink&&(c.isSymbolicLink=()=>!0),X2(n,c)})})}S1.read=q8e;function jH(e,r){e(r)}function X2(e,r){e(null,r)}});var UH=S(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.read=void 0;function j8e(e,r){let n=r.fs.lstatSync(e);if(!n.isSymbolicLink()||!r.followSymbolicLink)return n;try{let i=r.fs.statSync(e);return r.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!r.throwErrorOnBrokenSymbolicLink)return n;throw i}}D1.read=j8e});var GH=S(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.createFileSystemAdapter=jc.FILE_SYSTEM_ADAPTER=void 0;var C1=require("fs");jc.FILE_SYSTEM_ADAPTER={lstat:C1.lstat,stat:C1.stat,lstatSync:C1.lstatSync,statSync:C1.statSync};function B8e(e){return e===void 0?jc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jc.FILE_SYSTEM_ADAPTER),e)}jc.createFileSystemAdapter=B8e});var WH=S(Q2=>{"use strict";Object.defineProperty(Q2,"__esModule",{value:!0});var U8e=GH(),J2=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=U8e.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,n){return r??n}};Q2.default=J2});var Ol=S(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.statSync=Bc.stat=Bc.Settings=void 0;var HH=BH(),G8e=UH(),Z2=WH();Bc.Settings=Z2.default;function W8e(e,r,n){if(typeof r=="function"){HH.read(e,eA(),r);return}HH.read(e,eA(r),n)}Bc.stat=W8e;function H8e(e,r){let n=eA(r);return G8e.read(e,n)}Bc.statSync=H8e;function eA(e={}){return e instanceof Z2.default?e:new Z2.default(e)}});var YH=S((CIt,VH)=>{"use strict";var zH;VH.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(zH||(zH=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var XH=S((PIt,KH)=>{"use strict";KH.exports=V8e;var z8e=YH();function V8e(e,r){let n,i,a,o=!0;Array.isArray(e)?(n=[],i=e.length):(a=Object.keys(e),n={},i=a.length);function c(l){function f(){r&&r(l,n),r=null}o?z8e(f):f()}function u(l,f,p){n[l]=p,(--i===0||f)&&c(f)}i?a?a.forEach(function(l){e[l](function(f,p){u(l,f,p)})}):e.forEach(function(l,f){l(function(p,g){u(f,p,g)})}):c(null),o=!1}});var tA=S(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var P1=process.versions.node.split(".");if(P1[0]===void 0||P1[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var JH=Number.parseInt(P1[0],10),Y8e=Number.parseInt(P1[1],10),QH=10,K8e=10,X8e=JH>QH,J8e=JH===QH&&Y8e>=K8e;T1.IS_SUPPORT_READDIR_WITH_FILE_TYPES=X8e||J8e});var ZH=S(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});R1.createDirentFromStats=void 0;var rA=class{constructor(r,n){this.name=r,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function Q8e(e,r){return new rA(e,r)}R1.createDirentFromStats=Q8e});var nA=S(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});A1.fs=void 0;var Z8e=ZH();A1.fs=Z8e});var iA=S(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});O1.joinPathSegments=void 0;function eNe(e,r,n){return e.endsWith(n)?e+r:e+n+r}O1.joinPathSegments=eNe});var sz=S(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.readdir=Uc.readdirWithFileTypes=Uc.read=void 0;var tNe=Ol(),ez=XH(),rNe=tA(),tz=nA(),rz=iA();function nNe(e,r,n){if(!r.stats&&rNe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){nz(e,r,n);return}iz(e,r,n)}Uc.read=nNe;function nz(e,r,n){r.fs.readdir(e,{withFileTypes:!0},(i,a)=>{if(i!==null){I1(n,i);return}let o=a.map(u=>({dirent:u,name:u.name,path:rz.joinPathSegments(e,u.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){sA(n,o);return}let c=o.map(u=>iNe(u,r));ez(c,(u,l)=>{if(u!==null){I1(n,u);return}sA(n,l)})})}Uc.readdirWithFileTypes=nz;function iNe(e,r){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}r.fs.stat(e.path,(i,a)=>{if(i!==null){if(r.throwErrorOnBrokenSymbolicLink){n(i);return}n(null,e);return}e.dirent=tz.fs.createDirentFromStats(e.name,a),n(null,e)})}}function iz(e,r,n){r.fs.readdir(e,(i,a)=>{if(i!==null){I1(n,i);return}let o=a.map(c=>{let u=rz.joinPathSegments(e,c,r.pathSegmentSeparator);return l=>{tNe.stat(u,r.fsStatSettings,(f,p)=>{if(f!==null){l(f);return}let g={name:c,path:u,dirent:tz.fs.createDirentFromStats(c,p)};r.stats&&(g.stats=p),l(null,g)})}});ez(o,(c,u)=>{if(c!==null){I1(n,c);return}sA(n,u)})})}Uc.readdir=iz;function I1(e,r){e(r)}function sA(e,r){e(null,r)}});var lz=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.readdir=Gc.readdirWithFileTypes=Gc.read=void 0;var sNe=Ol(),aNe=tA(),az=nA(),oz=iA();function oNe(e,r){return!r.stats&&aNe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?cz(e,r):uz(e,r)}Gc.read=oNe;function cz(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(i=>{let a={dirent:i,name:i.name,path:oz.joinPathSegments(e,i.name,r.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let o=r.fs.statSync(a.path);a.dirent=az.fs.createDirentFromStats(a.name,o)}catch(o){if(r.throwErrorOnBrokenSymbolicLink)throw o}return a})}Gc.readdirWithFileTypes=cz;function uz(e,r){return r.fs.readdirSync(e).map(i=>{let a=oz.joinPathSegments(e,i,r.pathSegmentSeparator),o=sNe.statSync(a,r.fsStatSettings),c={name:i,path:a,dirent:az.fs.createDirentFromStats(i,o)};return r.stats&&(c.stats=o),c})}Gc.readdir=uz});var fz=S(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.createFileSystemAdapter=Wc.FILE_SYSTEM_ADAPTER=void 0;var sd=require("fs");Wc.FILE_SYSTEM_ADAPTER={lstat:sd.lstat,stat:sd.stat,lstatSync:sd.lstatSync,statSync:sd.statSync,readdir:sd.readdir,readdirSync:sd.readdirSync};function cNe(e){return e===void 0?Wc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Wc.FILE_SYSTEM_ADAPTER),e)}Wc.createFileSystemAdapter=cNe});var pz=S(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});var uNe=require("path"),lNe=Ol(),fNe=fz(),aA=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=fNe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,uNe.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new lNe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r??n}};oA.default=aA});var k1=S(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.Settings=Hc.scandirSync=Hc.scandir=void 0;var dz=sz(),pNe=lz(),cA=pz();Hc.Settings=cA.default;function dNe(e,r,n){if(typeof r=="function"){dz.read(e,uA(),r);return}dz.read(e,uA(r),n)}Hc.scandir=dNe;function hNe(e,r){let n=uA(r);return pNe.read(e,n)}Hc.scandirSync=hNe;function uA(e={}){return e instanceof cA.default?e:new cA.default(e)}});var mz=S((NIt,hz)=>{"use strict";function mNe(e){var r=new e,n=r;function i(){var o=r;return o.next?r=o.next:(r=new e,n=r),o.next=null,o}function a(o){n.next=o,n=o}return{get:i,release:a}}hz.exports=mNe});var vz=S((MIt,lA)=>{"use strict";var gNe=mz();function gz(e,r,n){if(typeof e=="function"&&(n=r,r=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var i=gNe(vNe),a=null,o=null,c=0,u=null,l={push:D,drain:bs,saturated:bs,pause:p,paused:!1,concurrency:n,running:f,resume:x,idle:E,length:g,getQueue:v,unshift:P,empty:bs,kill:k,killAndDrain:F,error:L};return l;function f(){return c}function p(){l.paused=!0}function g(){for(var U=a,V=0;U;)U=U.next,V++;return V}function v(){for(var U=a,V=[];U;)V.push(U.value),U=U.next;return V}function x(){if(l.paused){l.paused=!1;for(var U=0;U{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.joinPathSegments=za.replacePathSegmentSeparator=za.isAppliedFilter=za.isFatalError=void 0;function bNe(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}za.isFatalError=bNe;function xNe(e,r){return e===null||e(r)}za.isAppliedFilter=xNe;function wNe(e,r){return e.split(/[/\\]/).join(r)}za.replacePathSegmentSeparator=wNe;function _Ne(e,r,n){return e===""?r:e.endsWith(n)?e+r:e+n+r}za.joinPathSegments=_Ne});var dA=S(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});var ENe=F1(),fA=class{constructor(r,n){this._root=r,this._settings=n,this._root=ENe.replacePathSegmentSeparator(r,n.pathSegmentSeparator)}};pA.default=fA});var gA=S(mA=>{"use strict";Object.defineProperty(mA,"__esModule",{value:!0});var SNe=require("events"),DNe=k1(),CNe=vz(),$1=F1(),PNe=dA(),hA=class extends PNe.default{constructor(r,n){super(r,n),this._settings=n,this._scandir=DNe.scandir,this._emitter=new SNe.EventEmitter,this._queue=CNe(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,n){let i={directory:r,base:n};this._queue.push(i,a=>{a!==null&&this._handleError(a)})}_worker(r,n){this._scandir(r.directory,this._settings.fsScandirSettings,(i,a)=>{if(i!==null){n(i,void 0);return}for(let o of a)this._handleEntry(o,r.base);n(null,void 0)})}_handleError(r){this._isDestroyed||!$1.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,n){if(this._isDestroyed||this._isFatalError)return;let i=r.path;n!==void 0&&(r.path=$1.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)),$1.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&$1.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(i,n===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};mA.default=hA});var yz=S(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});var TNe=gA(),vA=class{constructor(r,n){this._root=r,this._settings=n,this._reader=new TNe.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(n=>{RNe(r,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{ANe(r,this._storage)}),this._reader.read()}};yA.default=vA;function RNe(e,r){e(r)}function ANe(e,r){e(null,r)}});var bz=S(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});var ONe=require("stream"),INe=gA(),bA=class{constructor(r,n){this._root=r,this._settings=n,this._reader=new INe.default(this._root,this._settings),this._stream=new ONe.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};xA.default=bA});var xz=S(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});var kNe=k1(),L1=F1(),FNe=dA(),wA=class extends FNe.default{constructor(){super(...arguments),this._scandir=kNe.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,n){this._queue.add({directory:r,base:n})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,n){try{let i=this._scandir(r,this._settings.fsScandirSettings);for(let a of i)this._handleEntry(a,n)}catch(i){this._handleError(i)}}_handleError(r){if(L1.isFatalError(this._settings,r))throw r}_handleEntry(r,n){let i=r.path;n!==void 0&&(r.path=L1.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)),L1.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&L1.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(i,n===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};_A.default=wA});var wz=S(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});var $Ne=xz(),EA=class{constructor(r,n){this._root=r,this._settings=n,this._reader=new $Ne.default(this._root,this._settings)}read(){return this._reader.read()}};SA.default=EA});var _z=S(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});var LNe=require("path"),NNe=k1(),DA=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,LNe.sep),this.fsScandirSettings=new NNe.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r??n}};CA.default=DA});var M1=S(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.Settings=Va.walkStream=Va.walkSync=Va.walk=void 0;var Ez=yz(),MNe=bz(),qNe=wz(),PA=_z();Va.Settings=PA.default;function jNe(e,r,n){if(typeof r=="function"){new Ez.default(e,N1()).read(r);return}new Ez.default(e,N1(r)).read(n)}Va.walk=jNe;function BNe(e,r){let n=N1(r);return new qNe.default(e,n).read()}Va.walkSync=BNe;function UNe(e,r){let n=N1(r);return new MNe.default(e,n).read()}Va.walkStream=UNe;function N1(e={}){return e instanceof PA.default?e:new PA.default(e)}});var q1=S(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});var GNe=require("path"),WNe=Ol(),Sz=ko(),TA=class{constructor(r){this._settings=r,this._fsStatSettings=new WNe.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return GNe.resolve(this._settings.cwd,r)}_makeEntry(r,n){let i={name:n,path:n,dirent:Sz.fs.createDirentFromStats(n,r)};return this._settings.stats&&(i.stats=r),i}_isFatalError(r){return!Sz.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};RA.default=TA});var IA=S(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});var HNe=require("stream"),zNe=Ol(),VNe=M1(),YNe=q1(),AA=class extends YNe.default{constructor(){super(...arguments),this._walkStream=VNe.walkStream,this._stat=zNe.stat}dynamic(r,n){return this._walkStream(r,n)}static(r,n){let i=r.map(this._getFullEntryPath,this),a=new HNe.PassThrough({objectMode:!0});a._write=(o,c,u)=>this._getEntry(i[o],r[o],n).then(l=>{l!==null&&n.entryFilter(l)&&a.push(l),o===i.length-1&&a.end(),u()}).catch(u);for(let o=0;othis._makeEntry(a,n)).catch(a=>{if(i.errorFilter(a))return null;throw a})}_getStat(r){return new Promise((n,i)=>{this._stat(r,this._fsStatSettings,(a,o)=>a===null?n(o):i(a))})}};OA.default=AA});var Dz=S(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});var KNe=M1(),XNe=q1(),JNe=IA(),kA=class extends XNe.default{constructor(){super(...arguments),this._walkAsync=KNe.walk,this._readerStream=new JNe.default(this._settings)}dynamic(r,n){return new Promise((i,a)=>{this._walkAsync(r,n,(o,c)=>{o===null?i(c):a(o)})})}async static(r,n){let i=[],a=this._readerStream.static(r,n);return new Promise((o,c)=>{a.once("error",c),a.on("data",u=>i.push(u)),a.once("end",()=>o(i))})}};FA.default=kA});var Cz=S(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0});var tv=ko(),$A=class{constructor(r,n,i){this._patterns=r,this._settings=n,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){for(let r of this._patterns){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(r){return tv.pattern.getPatternParts(r,this._micromatchOptions).map(i=>tv.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:tv.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(r){return tv.array.splitWhen(r,n=>n.dynamic&&tv.pattern.hasGlobStar(n.pattern))}};LA.default=$A});var Pz=S(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});var QNe=Cz(),NA=class extends QNe.default{match(r){let n=r.split("/"),i=n.length,a=this._storage.filter(o=>!o.complete||o.segments.length>i);for(let o of a){let c=o.sections[0];if(!o.complete&&i>c.length||n.every((l,f)=>{let p=o.segments[f];return!!(p.dynamic&&p.patternRe.test(l)||!p.dynamic&&p.pattern===l)}))return!0}return!1}};MA.default=NA});var Tz=S(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});var j1=ko(),ZNe=Pz(),qA=class{constructor(r,n){this._settings=r,this._micromatchOptions=n}getFilter(r,n,i){let a=this._getMatcher(n),o=this._getNegativePatternsRe(i);return c=>this._filter(r,c,a,o)}_getMatcher(r){return new ZNe.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let n=r.filter(j1.pattern.isAffectDepthOfReadingPattern);return j1.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(r,n,i,a){if(this._isSkippedByDeep(r,n.path)||this._isSkippedSymbolicLink(n))return!1;let o=j1.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(o,i)?!1:this._isSkippedByNegativePatterns(o,a)}_isSkippedByDeep(r,n){return this._settings.deep===1/0?!1:this._getEntryLevel(r,n)>=this._settings.deep}_getEntryLevel(r,n){let i=n.split("/").length;if(r==="")return i;let a=r.split("/").length;return i-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,n){return!this._settings.baseNameMatch&&!n.match(r)}_isSkippedByNegativePatterns(r,n){return!j1.pattern.matchAny(r,n)}};jA.default=qA});var Rz=S(UA=>{"use strict";Object.defineProperty(UA,"__esModule",{value:!0});var Il=ko(),BA=class{constructor(r,n){this._settings=r,this._micromatchOptions=n,this.index=new Map}getFilter(r,n){let i=Il.pattern.convertPatternsToRe(r,this._micromatchOptions),a=Il.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return o=>this._filter(o,i,a)}_filter(r,n,i){let a=Il.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(a)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(a,i))return!1;let o=r.dirent.isDirectory(),c=this._isMatchToPatterns(a,n,o)&&!this._isMatchToPatterns(a,i,o);return this._settings.unique&&c&&this._createIndexRecord(a),c}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,n){if(!this._settings.absolute)return!1;let i=Il.path.makeAbsolute(this._settings.cwd,r);return Il.pattern.matchAny(i,n)}_isMatchToPatterns(r,n,i){let a=Il.pattern.matchAny(r,n);return!a&&i?Il.pattern.matchAny(r+"/",n):a}};UA.default=BA});var Az=S(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0});var eMe=ko(),GA=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return eMe.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};WA.default=GA});var Iz=S(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});var Oz=ko(),HA=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let n=r.path;return this._settings.absolute&&(n=Oz.path.makeAbsolute(this._settings.cwd,n),n=Oz.path.unixify(n)),this._settings.markDirectories&&r.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:n}):n}};zA.default=HA});var B1=S(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0});var tMe=require("path"),rMe=Tz(),nMe=Rz(),iMe=Az(),sMe=Iz(),VA=class{constructor(r){this._settings=r,this.errorFilter=new iMe.default(this._settings),this.entryFilter=new nMe.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new rMe.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new sMe.default(this._settings)}_getRootDirectory(r){return tMe.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let n=r.base==="."?"":r.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};YA.default=VA});var kz=S(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});var aMe=Dz(),oMe=B1(),KA=class extends oMe.default{constructor(){super(...arguments),this._reader=new aMe.default(this._settings)}async read(r){let n=this._getRootDirectory(r),i=this._getReaderOptions(r);return(await this.api(n,r,i)).map(o=>i.transform(o))}api(r,n,i){return n.dynamic?this._reader.dynamic(r,i):this._reader.static(n.patterns,i)}};XA.default=KA});var Fz=S(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});var cMe=require("stream"),uMe=IA(),lMe=B1(),JA=class extends lMe.default{constructor(){super(...arguments),this._reader=new uMe.default(this._settings)}read(r){let n=this._getRootDirectory(r),i=this._getReaderOptions(r),a=this.api(n,r,i),o=new cMe.Readable({objectMode:!0,read:()=>{}});return a.once("error",c=>o.emit("error",c)).on("data",c=>o.emit("data",i.transform(c))).once("end",()=>o.emit("end")),o.once("close",()=>a.destroy()),o}api(r,n,i){return n.dynamic?this._reader.dynamic(r,i):this._reader.static(n.patterns,i)}};QA.default=JA});var $z=S(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0});var fMe=Ol(),pMe=M1(),dMe=q1(),ZA=class extends dMe.default{constructor(){super(...arguments),this._walkSync=pMe.walkSync,this._statSync=fMe.statSync}dynamic(r,n){return this._walkSync(r,n)}static(r,n){let i=[];for(let a of r){let o=this._getFullEntryPath(a),c=this._getEntry(o,a,n);c===null||!n.entryFilter(c)||i.push(c)}return i}_getEntry(r,n,i){try{let a=this._getStat(r);return this._makeEntry(a,n)}catch(a){if(i.errorFilter(a))return null;throw a}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};eO.default=ZA});var Lz=S(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0});var hMe=$z(),mMe=B1(),tO=class extends mMe.default{constructor(){super(...arguments),this._reader=new hMe.default(this._settings)}read(r){let n=this._getRootDirectory(r),i=this._getReaderOptions(r);return this.api(n,r,i).map(i.transform)}api(r,n,i){return n.dynamic?this._reader.dynamic(r,i):this._reader.static(n.patterns,i)}};rO.default=tO});var Nz=S(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ad=require("fs"),gMe=require("os"),vMe=Math.max(gMe.cpus().length,1);od.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ad.lstat,lstatSync:ad.lstatSync,stat:ad.stat,statSync:ad.statSync,readdir:ad.readdir,readdirSync:ad.readdirSync};var nO=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,vMe),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(r,n){return r===void 0?n:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},od.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};od.default=nO});var U1=S((ukt,qz)=>{"use strict";var Mz=qH(),yMe=kz(),bMe=Fz(),xMe=Lz(),iO=Nz(),xs=ko();async function sO(e,r){na(e);let n=aO(e,yMe.default,r),i=await Promise.all(n);return xs.array.flatten(i)}(function(e){e.glob=e,e.globSync=r,e.globStream=n,e.async=e;function r(f,p){na(f);let g=aO(f,xMe.default,p);return xs.array.flatten(g)}e.sync=r;function n(f,p){na(f);let g=aO(f,bMe.default,p);return xs.stream.merge(g)}e.stream=n;function i(f,p){na(f);let g=[].concat(f),v=new iO.default(p);return Mz.generate(g,v)}e.generateTasks=i;function a(f,p){na(f);let g=new iO.default(p);return xs.pattern.isDynamicPattern(f,g)}e.isDynamicPattern=a;function o(f){return na(f),xs.path.escape(f)}e.escapePath=o;function c(f){return na(f),xs.path.convertPathToPattern(f)}e.convertPathToPattern=c;let u;(function(f){function p(v){return na(v),xs.path.escapePosixPath(v)}f.escapePath=p;function g(v){return na(v),xs.path.convertPosixPathToPattern(v)}f.convertPathToPattern=g})(u=e.posix||(e.posix={}));let l;(function(f){function p(v){return na(v),xs.path.escapeWindowsPath(v)}f.escapePath=p;function g(v){return na(v),xs.path.convertWindowsPathToPattern(v)}f.convertPathToPattern=g})(l=e.win32||(e.win32={}))})(sO||(sO={}));function aO(e,r,n){let i=[].concat(e),a=new iO.default(n),o=Mz.generate(i,a),c=new r(a);return o.map(c.read,c)}function na(e){if(![].concat(e).every(i=>xs.string.isString(i)&&!xs.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}qz.exports=sO});var Bz=S(kl=>{"use strict";var{promisify:wMe}=require("util"),jz=require("fs");async function oO(e,r,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await wMe(jz[e])(n))[r]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}function cO(e,r,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return jz[e](n)[r]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}kl.isFile=oO.bind(null,"stat","isFile");kl.isDirectory=oO.bind(null,"stat","isDirectory");kl.isSymlink=oO.bind(null,"lstat","isSymbolicLink");kl.isFileSync=cO.bind(null,"statSync","isFile");kl.isDirectorySync=cO.bind(null,"statSync","isDirectory");kl.isSymlinkSync=cO.bind(null,"lstatSync","isSymbolicLink")});var zz=S((fkt,uO)=>{"use strict";var Fl=require("path"),Uz=Bz(),Gz=e=>e.length>1?`{${e.join(",")}}`:e[0],Wz=(e,r)=>{let n=e[0]==="!"?e.slice(1):e;return Fl.isAbsolute(n)?n:Fl.join(r,n)},_Me=(e,r)=>Fl.extname(e)?`**/${e}`:`**/${e}.${Gz(r)}`,Hz=(e,r)=>{if(r.files&&!Array.isArray(r.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof r.files}\``);if(r.extensions&&!Array.isArray(r.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof r.extensions}\``);return r.files&&r.extensions?r.files.map(n=>Fl.posix.join(e,_Me(n,r.extensions))):r.files?r.files.map(n=>Fl.posix.join(e,`**/${n}`)):r.extensions?[Fl.posix.join(e,`**/*.${Gz(r.extensions)}`)]:[Fl.posix.join(e,"**")]};uO.exports=async(e,r)=>{if(r={cwd:process.cwd(),...r},typeof r.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof r.cwd}\``);let n=await Promise.all([].concat(e).map(async i=>await Uz.isDirectory(Wz(i,r.cwd))?Hz(i,r):i));return[].concat.apply([],n)};uO.exports.sync=(e,r)=>{if(r={cwd:process.cwd(),...r},typeof r.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof r.cwd}\``);let n=[].concat(e).map(i=>Uz.isDirectorySync(Wz(i,r.cwd))?Hz(i,r):i);return[].concat.apply([],n)}});var rV=S((pkt,tV)=>{"use strict";function Vz(e){return Array.isArray(e)?e:[e]}var Jz="",Yz=" ",lO="\\",EMe=/^\s+$/,SMe=/(?:[^\\]|^)\\$/,DMe=/^\\!/,CMe=/^\\#/,PMe=/\r?\n/g,TMe=/^\.*\/|^\.+$/,fO="/",Qz="node-ignore";typeof Symbol<"u"&&(Qz=Symbol.for("node-ignore"));var Kz=Qz,RMe=(e,r,n)=>Object.defineProperty(e,r,{value:n}),AMe=/([0-z])-([0-z])/g,Zz=()=>!1,OMe=e=>e.replace(AMe,(r,n,i)=>n.charCodeAt(0)<=i.charCodeAt(0)?r:Jz),IMe=e=>{let{length:r}=e;return e.slice(0,r-r%2)},kMe=[[/\\?\s+$/,e=>e.indexOf("\\")===0?Yz:Jz],[/\\\s/g,()=>Yz],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,r,n)=>r+6{let i=n.replace(/\\\*/g,"[^\\/]*");return r+i}],[/\\\\\\(?=[$.|*+(){^])/g,()=>lO],[/\\\\/g,()=>lO],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,r,n,i,a)=>r===lO?`\\[${n}${IMe(i)}${a}`:a==="]"&&i.length%2===0?`[${OMe(n)}${i}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,r)=>`${r?`${r}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Xz=Object.create(null),FMe=(e,r)=>{let n=Xz[e];return n||(n=kMe.reduce((i,a)=>i.replace(a[0],a[1].bind(e)),e),Xz[e]=n),r?new RegExp(n,"i"):new RegExp(n)},hO=e=>typeof e=="string",$Me=e=>e&&hO(e)&&!EMe.test(e)&&!SMe.test(e)&&e.indexOf("#")!==0,LMe=e=>e.split(PMe),pO=class{constructor(r,n,i,a){this.origin=r,this.pattern=n,this.negative=i,this.regex=a}},NMe=(e,r)=>{let n=e,i=!1;e.indexOf("!")===0&&(i=!0,e=e.substr(1)),e=e.replace(DMe,"!").replace(CMe,"#");let a=FMe(e,r);return new pO(n,e,i,a)},MMe=(e,r)=>{throw new r(e)},Fo=(e,r,n)=>hO(e)?e?Fo.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${r}"`,RangeError):!0:n("path must not be empty",TypeError):n(`path must be a string, but got \`${r}\``,TypeError),eV=e=>TMe.test(e);Fo.isNotRelative=eV;Fo.convert=e=>e;var dO=class{constructor({ignorecase:r=!0,ignoreCase:n=r,allowRelativePaths:i=!1}={}){RMe(this,Kz,!0),this._rules=[],this._ignoreCase=n,this._allowRelativePaths=i,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(r){if(r&&r[Kz]){this._rules=this._rules.concat(r._rules),this._added=!0;return}if($Me(r)){let n=NMe(r,this._ignoreCase);this._added=!0,this._rules.push(n)}}add(r){return this._added=!1,Vz(hO(r)?LMe(r):r).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(r){return this.add(r)}_testOne(r,n){let i=!1,a=!1;return this._rules.forEach(o=>{let{negative:c}=o;if(a===c&&i!==a||c&&!i&&!a&&!n)return;o.regex.test(r)&&(i=!c,a=c)}),{ignored:i,unignored:a}}_test(r,n,i,a){let o=r&&Fo.convert(r);return Fo(o,r,this._allowRelativePaths?Zz:MMe),this._t(o,n,i,a)}_t(r,n,i,a){if(r in n)return n[r];if(a||(a=r.split(fO)),a.pop(),!a.length)return n[r]=this._testOne(r,i);let o=this._t(a.join(fO)+fO,n,i,a);return n[r]=o.ignored?o:this._testOne(r,i)}ignores(r){return this._test(r,this._ignoreCache,!1).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return Vz(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,!0)}},G1=e=>new dO(e),qMe=e=>Fo(e&&Fo.convert(e),e,Zz);G1.isPathValid=qMe;G1.default=G1;tV.exports=G1;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=n=>/^\\\\\?\\/.test(n)||/["<>|\u0000-\u001F]+/u.test(n)?n:n.replace(/\\/g,"/");Fo.convert=e;let r=/^[a-z]:\//i;Fo.isNotRelative=n=>r.test(n)||eV(n)}});var mO=S((dkt,nV)=>{"use strict";nV.exports=e=>{let r=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return r||n?e:e.replace(/\\/g,"/")}});var lV=S((hkt,gO)=>{"use strict";var{promisify:jMe}=require("util"),iV=require("fs"),$o=require("path"),sV=U1(),BMe=rV(),rv=mO(),aV=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],UMe=jMe(iV.readFile),GMe=e=>r=>r.startsWith("!")?"!"+$o.posix.join(e,r.slice(1)):$o.posix.join(e,r),WMe=(e,r)=>{let n=rv($o.relative(r.cwd,$o.dirname(r.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(i=>!i.startsWith("#")).map(GMe(n))},oV=e=>{let r=BMe();for(let n of e)r.add(WMe(n.content,{cwd:n.cwd,fileName:n.filePath}));return r},HMe=(e,r)=>{if(e=rv(e),$o.isAbsolute(r)){if(rv(r).startsWith(e))return r;throw new Error(`Path ${r} is not in cwd ${e}`)}return $o.join(e,r)},cV=(e,r)=>n=>e.ignores(rv($o.relative(r,HMe(r,n.path||n)))),zMe=async(e,r)=>{let n=$o.join(r,e),i=await UMe(n,"utf8");return{cwd:r,filePath:n,content:i}},VMe=(e,r)=>{let n=$o.join(r,e),i=iV.readFileSync(n,"utf8");return{cwd:r,filePath:n,content:i}},uV=({ignore:e=[],cwd:r=rv(process.cwd())}={})=>({ignore:e,cwd:r});gO.exports=async e=>{e=uV(e);let r=await sV("**/.gitignore",{ignore:aV.concat(e.ignore),cwd:e.cwd}),n=await Promise.all(r.map(a=>zMe(a,e.cwd))),i=oV(n);return cV(i,e.cwd)};gO.exports.sync=e=>{e=uV(e);let n=sV.sync("**/.gitignore",{ignore:aV.concat(e.ignore),cwd:e.cwd}).map(a=>VMe(a,e.cwd)),i=oV(n);return cV(i,e.cwd)}});var pV=S((mkt,fV)=>{"use strict";var{Transform:YMe}=require("stream"),W1=class extends YMe{constructor(){super({objectMode:!0})}},vO=class extends W1{constructor(r){super(),this._filter=r}_transform(r,n,i){this._filter(r)&&this.push(r),i()}},yO=class extends W1{constructor(){super(),this._pushed=new Set}_transform(r,n,i){this._pushed.has(r)||(this.push(r),this._pushed.add(r)),i()}};fV.exports={FilterStream:vO,UniqueStream:yO}});var nv=S((gkt,$l)=>{"use strict";var hV=require("fs"),H1=iW(),KMe=w2(),z1=U1(),V1=zz(),bO=lV(),{FilterStream:XMe,UniqueStream:JMe}=pV(),mV=()=>!1,dV=e=>e[0]==="!",QMe=e=>{if(!e.every(r=>typeof r=="string"))throw new TypeError("Patterns must be a string or an array of strings")},ZMe=(e={})=>{if(!e.cwd)return;let r;try{r=hV.statSync(e.cwd)}catch{return}if(!r.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},e4e=e=>e.stats instanceof hV.Stats?e.path:e,Y1=(e,r)=>{e=H1([].concat(e)),QMe(e),ZMe(r);let n=[];r={ignore:[],expandDirectories:!0,...r};for(let[i,a]of e.entries()){if(dV(a))continue;let o=e.slice(i).filter(u=>dV(u)).map(u=>u.slice(1)),c={...r,ignore:r.ignore.concat(o)};n.push({pattern:a,options:c})}return n},t4e=(e,r)=>{let n={};return e.options.cwd&&(n.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?n={...n,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(n={...n,...e.options.expandDirectories}),r(e.pattern,n)},xO=(e,r)=>e.options.expandDirectories?t4e(e,r):[e.pattern],gV=e=>e&&e.gitignore?bO.sync({cwd:e.cwd,ignore:e.ignore}):mV,wO=e=>r=>{let{options:n}=e;return n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories&&(n.ignore=V1.sync(n.ignore)),{pattern:r,options:n}};$l.exports=async(e,r)=>{let n=Y1(e,r),i=async()=>r&&r.gitignore?bO({cwd:r.cwd,ignore:r.ignore}):mV,a=async()=>{let l=await Promise.all(n.map(async f=>{let p=await xO(f,V1);return Promise.all(p.map(wO(f)))}));return H1(...l)},[o,c]=await Promise.all([i(),a()]),u=await Promise.all(c.map(l=>z1(l.pattern,l.options)));return H1(...u).filter(l=>!o(e4e(l)))};$l.exports.sync=(e,r)=>{let n=Y1(e,r),i=[];for(let c of n){let u=xO(c,V1.sync).map(wO(c));i.push(...u)}let a=gV(r),o=[];for(let c of i)o=H1(o,z1.sync(c.pattern,c.options));return o.filter(c=>!a(c))};$l.exports.stream=(e,r)=>{let n=Y1(e,r),i=[];for(let u of n){let l=xO(u,V1.sync).map(wO(u));i.push(...l)}let a=gV(r),o=new XMe(u=>!a(u)),c=new JMe;return KMe(i.map(u=>z1.stream(u.pattern,u.options))).pipe(o).pipe(c)};$l.exports.generateGlobTasks=Y1;$l.exports.hasMagic=(e,r)=>[].concat(e).some(n=>z1.isDynamicPattern(n,r));$l.exports.gitignore=bO});var yV=S((vkt,vV)=>{"use strict";var zc=require("constants"),r4e=process.cwd,K1=null,n4e=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return K1||(K1=r4e.call(process)),K1};try{process.cwd()}catch{}typeof process.chdir=="function"&&(_O=process.chdir,process.chdir=function(e){K1=null,_O.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_O));var _O;vV.exports=i4e;function i4e(e){zc.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&r(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(p,g,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(p,g,v,x){x&&process.nextTick(x)},e.lchownSync=function(){}),n4e==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(p){function g(v,x,E){var D=Date.now(),P=0;p(v,x,function R(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-D<6e4){setTimeout(function(){e.stat(x,function(F,L){F&&F.code==="ENOENT"?p(v,x,R):E(k)})},P),P<100&&(P+=10);return}E&&E(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(g,p),g}(e.rename)),e.read=typeof e.read!="function"?e.read:function(p){function g(v,x,E,D,P,R){var k;if(R&&typeof R=="function"){var F=0;k=function(L,U,V){if(L&&L.code==="EAGAIN"&&F<10)return F++,p.call(e,v,x,E,D,P,k);R.apply(this,arguments)}}return p.call(e,v,x,E,D,P,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,p),g}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(p){return function(g,v,x,E,D){for(var P=0;;)try{return p.call(e,g,v,x,E,D)}catch(R){if(R.code==="EAGAIN"&&P<10){P++;continue}throw R}}}(e.readSync);function r(p){p.lchmod=function(g,v,x){p.open(g,zc.O_WRONLY|zc.O_SYMLINK,v,function(E,D){if(E){x&&x(E);return}p.fchmod(D,v,function(P){p.close(D,function(R){x&&x(P||R)})})})},p.lchmodSync=function(g,v){var x=p.openSync(g,zc.O_WRONLY|zc.O_SYMLINK,v),E=!0,D;try{D=p.fchmodSync(x,v),E=!1}finally{if(E)try{p.closeSync(x)}catch{}else p.closeSync(x)}return D}}function n(p){zc.hasOwnProperty("O_SYMLINK")&&p.futimes?(p.lutimes=function(g,v,x,E){p.open(g,zc.O_SYMLINK,function(D,P){if(D){E&&E(D);return}p.futimes(P,v,x,function(R){p.close(P,function(k){E&&E(R||k)})})})},p.lutimesSync=function(g,v,x){var E=p.openSync(g,zc.O_SYMLINK),D,P=!0;try{D=p.futimesSync(E,v,x),P=!1}finally{if(P)try{p.closeSync(E)}catch{}else p.closeSync(E)}return D}):p.futimes&&(p.lutimes=function(g,v,x,E){E&&process.nextTick(E)},p.lutimesSync=function(){})}function i(p){return p&&function(g,v,x){return p.call(e,g,v,function(E){f(E)&&(E=null),x&&x.apply(this,arguments)})}}function a(p){return p&&function(g,v){try{return p.call(e,g,v)}catch(x){if(!f(x))throw x}}}function o(p){return p&&function(g,v,x,E){return p.call(e,g,v,x,function(D){f(D)&&(D=null),E&&E.apply(this,arguments)})}}function c(p){return p&&function(g,v,x){try{return p.call(e,g,v,x)}catch(E){if(!f(E))throw E}}}function u(p){return p&&function(g,v,x){typeof v=="function"&&(x=v,v=null);function E(D,P){P&&(P.uid<0&&(P.uid+=4294967296),P.gid<0&&(P.gid+=4294967296)),x&&x.apply(this,arguments)}return v?p.call(e,g,v,E):p.call(e,g,E)}}function l(p){return p&&function(g,v){var x=v?p.call(e,g,v):p.call(e,g);return x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),x}}function f(p){if(!p||p.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(p.code==="EINVAL"||p.code==="EPERM"))}}});var wV=S((ykt,xV)=>{"use strict";var bV=require("stream").Stream;xV.exports=s4e;function s4e(e){return{ReadStream:r,WriteStream:n};function r(i,a){if(!(this instanceof r))return new r(i,a);bV.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var c=Object.keys(a),u=0,l=c.length;uthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(p,g){if(p){o.emit("error",p),o.readable=!1;return}o.fd=g,o.emit("open",g),o._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);bV.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var o=Object.keys(a),c=0,u=o.length;c= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var EV=S((bkt,_V)=>{"use strict";_V.exports=o4e;var a4e=Object.getPrototypeOf||function(e){return e.__proto__};function o4e(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var r={__proto__:a4e(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))}),r}});var Zn=S((xkt,DO)=>{"use strict";var lr=require("fs"),c4e=yV(),u4e=wV(),l4e=EV(),X1=require("util"),Dn,Q1;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Dn=Symbol.for("graceful-fs.queue"),Q1=Symbol.for("graceful-fs.previous")):(Dn="___graceful-fs.queue",Q1="___graceful-fs.previous");function f4e(){}function CV(e,r){Object.defineProperty(e,Dn,{get:function(){return r}})}var Ll=f4e;X1.debuglog?Ll=X1.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ll=function(){var e=X1.format.apply(X1,arguments);e="GFS4: "+e.split(/\n/).join(` -GFS4: `),console.error(e)});lr[Dn]||(SV=global[Dn]||[],CV(lr,SV),lr.close=function(e){function r(n,i){return e.call(lr,n,function(a){a||DV(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(r,Q1,{value:e}),r}(lr.close),lr.closeSync=function(e){function r(n){e.apply(lr,arguments),DV()}return Object.defineProperty(r,Q1,{value:e}),r}(lr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ll(lr[Dn]),require("assert").equal(lr[Dn].length,0)}));var SV;global[Dn]||CV(global,lr[Dn]);DO.exports=EO(l4e(lr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!lr.__patched&&(DO.exports=EO(lr),lr.__patched=!0);function EO(e){c4e(e),e.gracefulify=EO,e.createReadStream=U,e.createWriteStream=V;var r=e.readFile;e.readFile=n;function n(q,X,M){return typeof X=="function"&&(M=X,X=null),Q(q,X,M);function Q(ee,ce,H,Y){return r(ee,ce,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?cd([Q,[ee,ce,H],ie,Y||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=a;function a(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return i(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?cd([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=c);function c(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return o(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?cd([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(q,X,M,Q){return typeof M=="function"&&(Q=M,M=0),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return u(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?cd([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var f=e.readdir;e.readdir=g;var p=/^v[0-5]\./;function g(q,X,M){typeof X=="function"&&(M=X,X=null);var Q=p.test(process.version)?function(H,Y,ie,ae){return f(H,ee(H,Y,ie,ae))}:function(H,Y,ie,ae){return f(H,Y,ee(H,Y,ie,ae))};return Q(q,X,M);function ee(ce,H,Y,ie){return function(ae,le){ae&&(ae.code==="EMFILE"||ae.code==="ENFILE")?cd([Q,[ce,H,Y],ae,ie||Date.now(),Date.now()]):(le&&le.sort&&le.sort(),typeof Y=="function"&&Y.call(this,ae,le))}}}if(process.version.substr(0,4)==="v0.8"){var v=u4e(e);R=v.ReadStream,F=v.WriteStream}var x=e.ReadStream;x&&(R.prototype=Object.create(x.prototype),R.prototype.open=k);var E=e.WriteStream;E&&(F.prototype=Object.create(E.prototype),F.prototype.open=L),Object.defineProperty(e,"ReadStream",{get:function(){return R},set:function(q){R=q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(q){F=q},enumerable:!0,configurable:!0});var D=R;Object.defineProperty(e,"FileReadStream",{get:function(){return D},set:function(q){D=q},enumerable:!0,configurable:!0});var P=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return P},set:function(q){P=q},enumerable:!0,configurable:!0});function R(q,X){return this instanceof R?(x.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function k(){var q=this;W(q.path,q.flags,q.mode,function(X,M){X?(q.autoClose&&q.destroy(),q.emit("error",X)):(q.fd=M,q.emit("open",M),q.read())})}function F(q,X){return this instanceof F?(E.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function L(){var q=this;W(q.path,q.flags,q.mode,function(X,M){X?(q.destroy(),q.emit("error",X)):(q.fd=M,q.emit("open",M))})}function U(q,X){return new e.ReadStream(q,X)}function V(q,X){return new e.WriteStream(q,X)}var j=e.open;e.open=W;function W(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return j(ce,H,Y,function(le,$t){le&&(le.code==="EMFILE"||le.code==="ENFILE")?cd([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return e}function cd(e){Ll("ENQUEUE",e[0].name,e[1]),lr[Dn].push(e),SO()}var J1;function DV(){for(var e=Date.now(),r=0;r2&&(lr[Dn][r][3]=e,lr[Dn][r][4]=e);SO()}function SO(){if(clearTimeout(J1),J1=void 0,lr[Dn].length!==0){var e=lr[Dn].shift(),r=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)Ll("RETRY",r.name,n),r.apply(null,n);else if(Date.now()-a>=6e4){Ll("TIMEOUT",r.name,n);var c=n.pop();typeof c=="function"&&c.call(null,i)}else{var u=Date.now()-o,l=Math.max(o-a,1),f=Math.min(l*1.2,100);u>=f?(Ll("RETRY",r.name,n),r.apply(null,n.concat([a]))):lr[Dn].push(e)}J1===void 0&&(J1=setTimeout(SO,0))}}});var TV=S((wkt,PV)=>{"use strict";var p4e=require("path");PV.exports=e=>{let r=process.cwd();return e=p4e.resolve(e),process.platform==="win32"&&(r=r.toLowerCase(),e=e.toLowerCase()),e===r}});var AV=S((_kt,RV)=>{"use strict";var CO=require("path");RV.exports=(e,r)=>{let n=CO.relative(r,e);return!!(n&&n!==".."&&!n.startsWith(`..${CO.sep}`)&&n!==CO.resolve(e))}});var OV=S(PO=>{"use strict";var Nl=require("path"),Yc=process.platform==="win32",Vc=require("fs"),d4e=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function h4e(){var e;if(d4e){var r=new Error;e=n}else e=i;return e;function n(a){a&&(r.message=a.message,a=r,i(a))}function i(a){if(a){if(process.throwDeprecation)throw a;if(!process.noDeprecation){var o="fs: missing callback "+(a.stack||a.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function m4e(e){return typeof e=="function"?e:h4e()}var Ekt=Nl.normalize;Yc?Lo=/(.*?)(?:[\/\\]+|$)/g:Lo=/(.*?)(?:[\/]+|$)/g;var Lo;Yc?iv=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:iv=/^[\/]*/;var iv;PO.realpathSync=function(r,n){if(r=Nl.resolve(r),n&&Object.prototype.hasOwnProperty.call(n,r))return n[r];var i=r,a={},o={},c,u,l,f;p();function p(){var P=iv.exec(r);c=P[0].length,u=P[0],l=P[0],f="",Yc&&!o[l]&&(Vc.lstatSync(l),o[l]=!0)}for(;c=r.length)return n&&(n[a]=r),i(null,r);Lo.lastIndex=u;var P=Lo.exec(r);return p=l,l+=P[0],f=p+P[1],u=Lo.lastIndex,c[f]||n&&n[f]===f?process.nextTick(v):n&&Object.prototype.hasOwnProperty.call(n,f)?D(n[f]):Vc.lstat(f,x)}function x(P,R){if(P)return i(P);if(!R.isSymbolicLink())return c[f]=!0,n&&(n[f]=f),process.nextTick(v);if(!Yc){var k=R.dev.toString(32)+":"+R.ino.toString(32);if(o.hasOwnProperty(k))return E(null,o[k],f)}Vc.stat(f,function(F){if(F)return i(F);Vc.readlink(f,function(L,U){Yc||(o[k]=U),E(L,U)})})}function E(P,R,k){if(P)return i(P);var F=Nl.resolve(p,R);n&&(n[k]=F),D(F)}function D(P){r=Nl.resolve(P,r.slice(u)),g()}}});var sv=S((Dkt,$V)=>{"use strict";$V.exports=Kc;Kc.realpath=Kc;Kc.sync=AO;Kc.realpathSync=AO;Kc.monkeypatch=v4e;Kc.unmonkeypatch=y4e;var ud=require("fs"),TO=ud.realpath,RO=ud.realpathSync,g4e=process.version,IV=/^v[0-5]\./.test(g4e),kV=OV();function FV(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function Kc(e,r,n){if(IV)return TO(e,r,n);typeof r=="function"&&(n=r,r=null),TO(e,r,function(i,a){FV(i)?kV.realpath(e,r,n):n(i,a)})}function AO(e,r){if(IV)return RO(e,r);try{return RO(e,r)}catch(n){if(FV(n))return kV.realpathSync(e,r);throw n}}function v4e(){ud.realpath=Kc,ud.realpathSync=AO}function y4e(){ud.realpath=TO,ud.realpathSync=RO}});var NV=S((Ckt,LV)=>{"use strict";LV.exports=function(e,r){for(var n=[],i=0;i{"use strict";var x4e=NV(),MV=ZR();WV.exports=E4e;var qV="\0SLASH"+Math.random()+"\0",jV="\0OPEN"+Math.random()+"\0",IO="\0CLOSE"+Math.random()+"\0",BV="\0COMMA"+Math.random()+"\0",UV="\0PERIOD"+Math.random()+"\0";function OO(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function w4e(e){return e.split("\\\\").join(qV).split("\\{").join(jV).split("\\}").join(IO).split("\\,").join(BV).split("\\.").join(UV)}function _4e(e){return e.split(qV).join("\\").split(jV).join("{").split(IO).join("}").split(BV).join(",").split(UV).join(".")}function GV(e){if(!e)return[""];var r=[],n=MV("{","}",e);if(!n)return e.split(",");var i=n.pre,a=n.body,o=n.post,c=i.split(",");c[c.length-1]+="{"+a+"}";var u=GV(o);return o.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),r.push.apply(r,c),r}function E4e(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),ld(w4e(e),!0).map(_4e)):[]}function S4e(e){return"{"+e+"}"}function D4e(e){return/^-?0\d/.test(e)}function C4e(e,r){return e<=r}function P4e(e,r){return e>=r}function ld(e,r){var n=[],i=MV("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=a||o,u=i.body.indexOf(",")>=0;if(!c&&!u)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+IO+i.post,ld(e)):[e];var l;if(c)l=i.body.split(/\.\./);else if(l=GV(i.body),l.length===1&&(l=ld(l[0],!1).map(S4e),l.length===1)){var p=i.post.length?ld(i.post,!1):[""];return p.map(function(M){return i.pre+l[0]+M})}var f=i.pre,p=i.post.length?ld(i.post,!1):[""],g;if(c){var v=OO(l[0]),x=OO(l[1]),E=Math.max(l[0].length,l[1].length),D=l.length==3?Math.abs(OO(l[2])):1,P=C4e,R=x0){var V=new Array(U+1).join("0");F<0?L="-"+V+L.slice(1):L=V+L}}g.push(L)}}else g=x4e(l,function(X){return ld(X,!1)});for(var j=0;j{"use strict";XV.exports=Gi;Gi.Minimatch=Cn;var av=function(){try{return require("path")}catch{}}()||{sep:"/"};Gi.sep=av.sep;var $O=Gi.GLOBSTAR=Cn.GLOBSTAR={},T4e=HV(),zV={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},kO="[^/]",FO=kO+"*?",R4e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",A4e="(?:(?!(?:\\/|^)\\.).)*?",VV=O4e("().*{}+?[]^$\\!");function O4e(e){return e.split("").reduce(function(r,n){return r[n]=!0,r},{})}var YV=/\/+/;Gi.filter=I4e;function I4e(e,r){return r=r||{},function(n,i,a){return Gi(n,e,r)}}function Xc(e,r){r=r||{};var n={};return Object.keys(e).forEach(function(i){n[i]=e[i]}),Object.keys(r).forEach(function(i){n[i]=r[i]}),n}Gi.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return Gi;var r=Gi,n=function(a,o,c){return r(a,o,Xc(e,c))};return n.Minimatch=function(a,o){return new r.Minimatch(a,Xc(e,o))},n.Minimatch.defaults=function(a){return r.defaults(Xc(e,a)).Minimatch},n.filter=function(a,o){return r.filter(a,Xc(e,o))},n.defaults=function(a){return r.defaults(Xc(e,a))},n.makeRe=function(a,o){return r.makeRe(a,Xc(e,o))},n.braceExpand=function(a,o){return r.braceExpand(a,Xc(e,o))},n.match=function(i,a,o){return r.match(i,a,Xc(e,o))},n};Cn.defaults=function(e){return Gi.defaults(e).Minimatch};function Gi(e,r,n){return e_(r),n||(n={}),!n.nocomment&&r.charAt(0)==="#"?!1:new Cn(r,n).match(e)}function Cn(e,r){if(!(this instanceof Cn))return new Cn(e,r);e_(e),r||(r={}),e=e.trim(),!r.allowWindowsEscape&&av.sep!=="/"&&(e=e.split(av.sep).join("/")),this.options=r,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}Cn.prototype.debug=function(){};Cn.prototype.make=k4e;function k4e(){var e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();r.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(i){return i.split(YV)}),this.debug(this.pattern,n),n=n.map(function(i,a,o){return i.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}Cn.prototype.parseNegate=F4e;function F4e(){var e=this.pattern,r=!1,n=this.options,i=0;if(!n.nonegate){for(var a=0,o=e.length;a"u"?this.pattern:e,e_(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:T4e(e)}var $4e=1024*64,e_=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$4e)throw new TypeError("pattern is too long")};Cn.prototype.parse=L4e;var Z1={};function L4e(e,r){e_(e);var n=this.options;if(e==="**")if(n.noglobstar)e="*";else return $O;if(e==="")return"";var i="",a=!!n.nocase,o=!1,c=[],u=[],l,f=!1,p=-1,g=-1,v=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=this;function E(){if(l){switch(l){case"*":i+=FO,a=!0;break;case"?":i+=kO,a=!0;break;default:i+="\\"+l;break}x.debug("clearStateChar %j %j",l,i),l=!1}}for(var D=0,P=e.length,R;D-1;W--){var q=u[W],X=i.slice(0,q.reStart),M=i.slice(q.reStart,q.reEnd-8),Q=i.slice(q.reEnd-8,q.reEnd),ee=i.slice(q.reEnd);Q+=ee;var ce=X.split("(").length-1,H=ee;for(D=0;D"u"&&(n=this.partial),this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;var i=this.options;av.sep!=="/"&&(r=r.split(av.sep).join("/")),r=r.split(YV),this.debug(this.pattern,"split",r);var a=this.set;this.debug(this.pattern,"set",a);var o,c;for(c=r.length-1;c>=0&&(o=r[c],!o);c--);for(c=0;c>> no match, partial?`,e,p,r,g),p===c))}var x;if(typeof l=="string"?(x=f===l,this.debug("string match",l,f,x)):(x=f.match(l),this.debug("pattern match",l,f,x)),!x)return!1}if(a===c&&o===u)return!0;if(a===c)return n;if(o===u)return a===c-1&&e[a]==="";throw new Error("wtf?")};function M4e(e){return e.replace(/\\(.)/g,"$1")}function q4e(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var JV=S((Rkt,LO)=>{"use strict";typeof Object.create=="function"?LO.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:LO.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}});var ei=S((Akt,MO)=>{"use strict";try{if(NO=require("util"),typeof NO.inherits!="function")throw"";MO.exports=NO.inherits}catch{MO.exports=JV()}var NO});var n_=S((Okt,r_)=>{"use strict";function QV(e){return e.charAt(0)==="/"}function ZV(e){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,n=r.exec(e),i=n[1]||"",a=!!(i&&i.charAt(1)!==":");return!!(n[2]||a)}r_.exports=process.platform==="win32"?ZV:QV;r_.exports.posix=QV;r_.exports.win32=ZV});var jO=S(Jc=>{"use strict";Jc.setopts=H4e;Jc.ownProp=eY;Jc.makeAbs=ov;Jc.finish=z4e;Jc.mark=V4e;Jc.isIgnored=rY;Jc.childrenIgnored=Y4e;function eY(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var j4e=require("fs"),fd=require("path"),B4e=t_(),tY=n_(),qO=B4e.Minimatch;function U4e(e,r){return e.localeCompare(r,"en")}function G4e(e,r){e.ignore=r.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(W4e))}function W4e(e){var r=null;if(e.slice(-3)==="/**"){var n=e.replace(/(\/\*\*)+$/,"");r=new qO(n,{dot:!0})}return{matcher:new qO(e,{dot:!0}),gmatcher:r}}function H4e(e,r,n){if(n||(n={}),n.matchBase&&r.indexOf("/")===-1){if(n.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!n.silent,e.pattern=r,e.strict=n.strict!==!1,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.fs=n.fs||j4e,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),G4e(e,n),e.changedCwd=!1;var i=process.cwd();eY(n,"cwd")?(e.cwd=fd.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i,e.root=n.root||fd.resolve(e.cwd,"/"),e.root=fd.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=tY(e.cwd)?e.cwd:ov(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,n.allowWindowsEscape=!1,e.minimatch=new qO(r,n),e.options=e.minimatch.options}function z4e(e){for(var r=e.nounique,n=r?[]:Object.create(null),i=0,a=e.matches.length;i{"use strict";aY.exports=sY;sY.GlobSync=zr;var K4e=sv(),nY=t_(),kkt=nY.Minimatch,Fkt=GO().Glob,$kt=require("util"),BO=require("path"),iY=require("assert"),i_=n_(),Ml=jO(),X4e=Ml.setopts,UO=Ml.ownProp,J4e=Ml.childrenIgnored,Q4e=Ml.isIgnored;function sY(e,r){if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);return new zr(e,r).found}function zr(e,r){if(!e)throw new Error("must provide pattern");if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof zr))return new zr(e,r);if(X4e(this,e,r),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&UO(this.cache,r)){var c=this.cache[r];if(Array.isArray(c)&&(c="DIR"),!n||c==="DIR")return c;if(n&&c==="FILE")return!1}var i,a=this.statCache[r];if(!a){var o;try{o=this.fs.lstatSync(r)}catch(u){if(u&&(u.code==="ENOENT"||u.code==="ENOTDIR"))return this.statCache[r]=!1,!1}if(o&&o.isSymbolicLink())try{a=this.fs.statSync(r)}catch{a=o}else a=o}this.statCache[r]=a;var c=!0;return a&&(c=a.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||c,n&&c==="FILE"?!1:c};zr.prototype._mark=function(e){return Ml.mark(this,e)};zr.prototype._makeAbs=function(e){return Ml.makeAbs(this,e)}});var WO=S((Nkt,uY)=>{"use strict";uY.exports=cY;function cY(e,r){if(e&&r)return cY(e)(r);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){n[i]=e[i]}),n;function n(){for(var i=new Array(arguments.length),a=0;a{"use strict";var lY=WO();HO.exports=lY(s_);HO.exports.strict=lY(fY);s_.proto=s_(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s_(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return fY(this)},configurable:!0})});function s_(e){var r=function(){return r.called?r.value:(r.called=!0,r.value=e.apply(this,arguments))};return r.called=!1,r}function fY(e){var r=function(){if(r.called)throw new Error(r.onceError);return r.called=!0,r.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return r.onceError=n+" shouldn't be called more than once",r.called=!1,r}});var zO=S((qkt,pY)=>{"use strict";var Z4e=WO(),cv=Object.create(null),e6e=a_();pY.exports=Z4e(t6e);function t6e(e,r){return cv[e]?(cv[e].push(r),null):(cv[e]=[r],r6e(e))}function r6e(e){return e6e(function r(){var n=cv[e],i=n.length,a=n6e(arguments);try{for(var o=0;oi?(n.splice(0,i),process.nextTick(function(){r.apply(null,a)})):delete cv[e]}})}function n6e(e){for(var r=e.length,n=[],i=0;i{"use strict";hY.exports=ql;var i6e=sv(),dY=t_(),jkt=dY.Minimatch,s6e=ei(),a6e=require("events").EventEmitter,VO=require("path"),YO=require("assert"),uv=n_(),XO=oY(),jl=jO(),o6e=jl.setopts,KO=jl.ownProp,JO=zO(),Bkt=require("util"),c6e=jl.childrenIgnored,u6e=jl.isIgnored,l6e=a_();function ql(e,r,n){if(typeof r=="function"&&(n=r,r={}),r||(r={}),r.sync){if(n)throw new TypeError("callback provided to sync glob");return XO(e,r)}return new _t(e,r,n)}ql.sync=XO;var f6e=ql.GlobSync=XO.GlobSync;ql.glob=ql;function p6e(e,r){if(r===null||typeof r!="object")return e;for(var n=Object.keys(r),i=n.length;i--;)e[n[i]]=r[n[i]];return e}ql.hasMagic=function(e,r){var n=p6e({},r);n.noprocess=!0;var i=new _t(e,n),a=i.minimatch.set;if(!e)return!1;if(a.length>1)return!0;for(var o=0;othis.maxLength)return r();if(!this.stat&&KO(this.cache,n)){var a=this.cache[n];if(Array.isArray(a)&&(a="DIR"),!i||a==="DIR")return r(null,a);if(i&&a==="FILE")return r()}var o,c=this.statCache[n];if(c!==void 0){if(c===!1)return r(null,c);var u=c.isDirectory()?"DIR":"FILE";return i&&u==="FILE"?r():r(null,u,c)}var l=this,f=JO("stat\0"+n,p);f&&l.fs.lstat(n,f);function p(g,v){if(v&&v.isSymbolicLink())return l.fs.stat(n,function(x,E){x?l._stat2(e,n,null,v,r):l._stat2(e,n,x,E,r)});l._stat2(e,n,g,v,r)}};_t.prototype._stat2=function(e,r,n,i,a){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return this.statCache[r]=!1,a();var o=e.slice(-1)==="/";if(this.statCache[r]=i,r.slice(-1)==="/"&&i&&!i.isDirectory())return a(null,!1,i);var c=!0;return i&&(c=i.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||c,o&&c==="FILE"?a():a(null,c,i)}});var u_=S((Gkt,wY)=>{"use strict";var Bt=require("assert"),yY=require("path"),mY=require("fs"),pd;try{pd=GO()}catch{}var h6e={nosort:!0,silent:!0},QO=0,lv=process.platform==="win32",bY=e=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||mY[n],n=n+"Sync",e[n]=e[n]||mY[n]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,e.glob===!1&&(e.disableGlob=!0),e.disableGlob!==!0&&pd===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");e.disableGlob=e.disableGlob||!1,e.glob=e.glob||h6e},eI=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),Bt(e,"rimraf: missing path"),Bt.equal(typeof e,"string","rimraf: path should be a string"),Bt.equal(typeof n,"function","rimraf: callback function required"),Bt(r,"rimraf: invalid options argument provided"),Bt.equal(typeof r,"object","rimraf: options should be object"),bY(r);let i=0,a=null,o=0,c=l=>{a=a||l,--o===0&&n(a)},u=(l,f)=>{if(l)return n(l);if(o=f.length,o===0)return n();f.forEach(p=>{let g=v=>{if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&iZO(p,r,g),i*100);if(v.code==="EMFILE"&&QOZO(p,r,g),QO++);v.code==="ENOENT"&&(v=null)}QO=0,c(v)};ZO(p,r,g)})};if(r.disableGlob||!pd.hasMagic(e))return u(null,[e]);r.lstat(e,(l,f)=>{if(!l)return u(null,[e]);pd(e,r.glob,u)})},ZO=(e,r,n)=>{Bt(e),Bt(r),Bt(typeof n=="function"),r.lstat(e,(i,a)=>{if(i&&i.code==="ENOENT")return n(null);if(i&&i.code==="EPERM"&&lv&&gY(e,r,i,n),a&&a.isDirectory())return o_(e,r,i,n);r.unlink(e,o=>{if(o){if(o.code==="ENOENT")return n(null);if(o.code==="EPERM")return lv?gY(e,r,o,n):o_(e,r,o,n);if(o.code==="EISDIR")return o_(e,r,o,n)}return n(o)})})},gY=(e,r,n,i)=>{Bt(e),Bt(r),Bt(typeof i=="function"),r.chmod(e,438,a=>{a?i(a.code==="ENOENT"?null:n):r.stat(e,(o,c)=>{o?i(o.code==="ENOENT"?null:n):c.isDirectory()?o_(e,r,n,i):r.unlink(e,i)})})},vY=(e,r,n)=>{Bt(e),Bt(r);try{r.chmodSync(e,438)}catch(a){if(a.code==="ENOENT")return;throw n}let i;try{i=r.statSync(e)}catch(a){if(a.code==="ENOENT")return;throw n}i.isDirectory()?c_(e,r,n):r.unlinkSync(e)},o_=(e,r,n,i)=>{Bt(e),Bt(r),Bt(typeof i=="function"),r.rmdir(e,a=>{a&&(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM")?m6e(e,r,i):a&&a.code==="ENOTDIR"?i(n):i(a)})},m6e=(e,r,n)=>{Bt(e),Bt(r),Bt(typeof n=="function"),r.readdir(e,(i,a)=>{if(i)return n(i);let o=a.length;if(o===0)return r.rmdir(e,n);let c;a.forEach(u=>{eI(yY.join(e,u),r,l=>{if(!c){if(l)return n(c=l);--o===0&&r.rmdir(e,n)}})})})},xY=(e,r)=>{r=r||{},bY(r),Bt(e,"rimraf: missing path"),Bt.equal(typeof e,"string","rimraf: path should be a string"),Bt(r,"rimraf: missing options"),Bt.equal(typeof r,"object","rimraf: options should be object");let n;if(r.disableGlob||!pd.hasMagic(e))n=[e];else try{r.lstatSync(e),n=[e]}catch{n=pd.sync(e,r.glob)}if(n.length)for(let i=0;i{Bt(e),Bt(r);try{r.rmdirSync(e)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw n;(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")&&g6e(e,r)}},g6e=(e,r)=>{Bt(e),Bt(r),r.readdirSync(e).forEach(a=>xY(yY.join(e,a),r));let n=lv?100:1,i=0;do{let a=!0;try{let o=r.rmdirSync(e,r);return a=!1,o}finally{if(++i{"use strict";_Y.exports=(e,r=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(r===0)return e;let i=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(i,n.indent.repeat(r))}});var CY=S((Hkt,DY)=>{"use strict";var EY=require("os"),SY=/\s+at.*(?:\(|\s)(.*)\)?/,v6e=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,y6e=typeof EY.homedir>"u"?"":EY.homedir();DY.exports=(e,r)=>(r=Object.assign({pretty:!1},r),e.replace(/\\/g,"/").split(` -`).filter(n=>{let i=n.match(SY);if(i===null||!i[1])return!0;let a=i[1];return a.includes(".app/Contents/Resources/electron.asar")||a.includes(".app/Contents/Resources/default_app.asar")?!1:!v6e.test(a)}).filter(n=>n.trim()!=="").map(n=>r.pretty?n.replace(SY,(i,a)=>i.replace(a,a.replace(y6e,"~"))):n).join(` -`))});var TY=S((zkt,PY)=>{"use strict";var b6e=fv(),x6e=CY(),w6e=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""),tI=class extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);r=[...r].map(i=>i instanceof Error?i:i!==null&&typeof i=="object"?Object.assign(new Error(i.message),i):new Error(i));let n=r.map(i=>typeof i.stack=="string"?w6e(x6e(i.stack)):String(i)).join(` -`);n=` -`+b6e(n,4),super(n),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:r})}*[Symbol.iterator](){for(let r of this._errors)yield r}};PY.exports=tI});var l_=S((Vkt,RY)=>{"use strict";var _6e=TY();RY.exports=async(e,r,{concurrency:n=1/0,stopOnError:i=!0}={})=>new Promise((a,o)=>{if(typeof r!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(n)||n===1/0)&&n>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${n}\` (${typeof n})`);let c=[],u=[],l=e[Symbol.iterator](),f=!1,p=!1,g=0,v=0,x=()=>{if(f)return;let E=l.next(),D=v;if(v++,E.done){p=!0,g===0&&(!i&&u.length!==0?o(new _6e(u)):a(c));return}g++,(async()=>{try{let P=await E.value;c[D]=await r(P,D),g--,x()}catch(P){i?(f=!0,o(P)):(u.push(P),g--,x())}})()};for(let E=0;E{"use strict";var{promisify:E6e}=require("util"),AY=require("path"),OY=nv(),S6e=d1(),D6e=mO(),ws=Zn(),C6e=TV(),P6e=AV(),IY=u_(),T6e=l_(),R6e=E6e(IY),kY={glob:!1,unlink:ws.unlink,unlinkSync:ws.unlinkSync,chmod:ws.chmod,chmodSync:ws.chmodSync,stat:ws.stat,statSync:ws.statSync,lstat:ws.lstat,lstatSync:ws.lstatSync,rmdir:ws.rmdir,rmdirSync:ws.rmdirSync,readdir:ws.readdir,readdirSync:ws.readdirSync};function FY(e,r){if(C6e(e))throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!P6e(e,r))throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}function $Y(e){return e=Array.isArray(e)?e:[e],e=e.map(r=>process.platform==="win32"&&S6e(r)===!1?D6e(r):r),e}rI.exports=async(e,{force:r,dryRun:n,cwd:i=process.cwd(),onProgress:a=()=>{},...o}={})=>{o={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...o},e=$Y(e);let c=(await OY(e,o)).sort((p,g)=>g.localeCompare(p));c.length===0&&a({totalCount:0,deletedCount:0,percent:1});let u=0,f=await T6e(c,async p=>(p=AY.resolve(i,p),r||FY(p,i),n||await R6e(p,kY),u+=1,a({totalCount:c.length,deletedCount:u,percent:u/c.length}),p),o);return f.sort((p,g)=>p.localeCompare(g)),f};rI.exports.sync=(e,{force:r,dryRun:n,cwd:i=process.cwd(),...a}={})=>{a={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...a},e=$Y(e);let c=OY.sync(e,a).sort((u,l)=>l.localeCompare(u)).map(u=>(u=AY.resolve(i,u),r||FY(u,i),n||IY.sync(u,kY),u));return c.sort((u,l)=>u.localeCompare(l)),c}});var jY=S((Kkt,ti)=>{"use strict";var f_=require("fs"),NY=require("path"),A6e=tW(),MY=l1(),O6e=cw(),I6e=LY(),k6e=require("stream"),{promisify:F6e}=require("util"),$6e=F6e(k6e.pipeline),{writeFile:L6e}=f_.promises,qY=(e="")=>NY.join(MY,e+A6e()),N6e=async(e,r)=>$6e(r,f_.createWriteStream(e)),nI=(e,{extraArguments:r=0}={})=>async(...n)=>{let[i,a]=n.slice(r),o=await e(...n.slice(0,r),a);try{return await i(o)}finally{await I6e(o,{force:!0})}};ti.exports.file=e=>{if(e={...e},e.name){if(e.extension!==void 0&&e.extension!==null)throw new Error("The `name` and `extension` options are mutually exclusive");return NY.join(ti.exports.directory(),e.name)}return qY()+(e.extension===void 0||e.extension===null?"":"."+e.extension.replace(/^\./,""))};ti.exports.file.task=nI(ti.exports.file);ti.exports.directory=({prefix:e=""}={})=>{let r=qY(e);return f_.mkdirSync(r),r};ti.exports.directory.task=nI(ti.exports.directory);ti.exports.write=async(e,r)=>{let n=ti.exports.file(r);return await(O6e(e)?N6e:L6e)(n,e),n};ti.exports.write.task=nI(ti.exports.write,{extraArguments:1});ti.exports.writeSync=(e,r)=>{let n=ti.exports.file(r);return f_.writeFileSync(n,e),n};Object.defineProperty(ti.exports,"root",{get(){return MY}})});var Nt=S(Ie=>{"use strict";var V6e=Ie&&Ie.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var i=0,a=r.length,o;i1?e(r[1],r[0]):function(i){return e(i)(r[0])}}}function ZY(e,r,n,i,a,o,c,u,l){switch(arguments.length){case 1:return e;case 2:return function(){return r(e.apply(this,arguments))};case 3:return function(){return n(r(e.apply(this,arguments)))};case 4:return function(){return i(n(r(e.apply(this,arguments))))};case 5:return function(){return a(i(n(r(e.apply(this,arguments)))))};case 6:return function(){return o(a(i(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(o(a(i(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(o(a(i(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(o(a(i(n(r(e.apply(this,arguments)))))))))}}}function t5e(){for(var e=[],r=0;r=e}:e;return function(){var i=Array.from(arguments);return n(arguments)?r.apply(this,i):function(a){return r.apply(void 0,V6e([a],i,!1))}}};Ie.dual=l5e});var yI=S((bFt,Tr)=>{"use strict";var tK={};tK.__wbindgen_placeholder__=Tr.exports;var se,{TextDecoder:f5e,TextEncoder:p5e}=require("util"),rK=new f5e("utf-8",{ignoreBOM:!0,fatal:!0});rK.decode();var x_=null;function w_(){return(x_===null||x_.byteLength===0)&&(x_=new Uint8Array(se.memory.buffer)),x_}function Mn(e,r){return e=e>>>0,rK.decode(w_().subarray(e,e+r))}var qo=new Array(128).fill(void 0);qo.push(void 0,null,!0,!1);var mv=qo.length;function d5e(e){mv===qo.length&&qo.push(qo.length+1);let r=mv;return mv=qo[r],qo[r]=e,r}var Ir=0,__=new p5e("utf-8"),h5e=typeof __.encodeInto=="function"?function(e,r){return __.encodeInto(e,r)}:function(e,r){let n=__.encode(e);return r.set(n),{read:e.length,written:n.length}};function an(e,r,n){if(n===void 0){let u=__.encode(e),l=r(u.length,1)>>>0;return w_().subarray(l,l+u.length).set(u),Ir=u.length,l}let i=e.length,a=r(i,1)>>>0,o=w_(),c=0;for(;c127)break;o[a+c]=u}if(c!==i){c!==0&&(e=e.slice(c)),a=n(a,i,i=c+e.length*3,1)>>>0;let u=w_().subarray(a+c,a+i),l=h5e(e,u);c+=l.written,a=n(a,i,c,1)>>>0}return Ir=c,a}var dd=null;function lt(){return(dd===null||dd.buffer.detached===!0||dd.buffer.detached===void 0&&dd.buffer!==se.memory.buffer)&&(dd=new DataView(se.memory.buffer)),dd}Tr.exports.format=function(e,r){let n,i;try{let c=se.__wbindgen_add_to_stack_pointer(-16),u=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),l=Ir,f=an(r,se.__wbindgen_malloc,se.__wbindgen_realloc),p=Ir;se.format(c,u,l,f,p);var a=lt().getInt32(c+4*0,!0),o=lt().getInt32(c+4*1,!0);return n=a,i=o,Mn(a,o)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(n,i,1)}};Tr.exports.get_config=function(e){let r,n;try{let o=se.__wbindgen_add_to_stack_pointer(-16),c=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),u=Ir;se.get_config(o,c,u);var i=lt().getInt32(o+4*0,!0),a=lt().getInt32(o+4*1,!0);return r=i,n=a,Mn(i,a)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};function m5e(e){return qo[e]}function g5e(e){e<132||(qo[e]=mv,mv=e)}function E_(e){let r=m5e(e);return g5e(e),r}Tr.exports.get_dmmf=function(e){let r,n;try{let f=se.__wbindgen_add_to_stack_pointer(-16),p=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),g=Ir;se.get_dmmf(f,p,g);var i=lt().getInt32(f+4*0,!0),a=lt().getInt32(f+4*1,!0),o=lt().getInt32(f+4*2,!0),c=lt().getInt32(f+4*3,!0),u=i,l=a;if(c)throw u=0,l=0,E_(o);return r=u,n=l,Mn(u,l)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.get_datamodel=function(e){let r,n;try{let f=se.__wbindgen_add_to_stack_pointer(-16),p=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),g=Ir;se.get_datamodel(f,p,g);var i=lt().getInt32(f+4*0,!0),a=lt().getInt32(f+4*1,!0),o=lt().getInt32(f+4*2,!0),c=lt().getInt32(f+4*3,!0),u=i,l=a;if(c)throw u=0,l=0,E_(o);return r=u,n=l,Mn(u,l)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.lint=function(e){let r,n;try{let o=se.__wbindgen_add_to_stack_pointer(-16),c=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),u=Ir;se.lint(o,c,u);var i=lt().getInt32(o+4*0,!0),a=lt().getInt32(o+4*1,!0);return r=i,n=a,Mn(i,a)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.validate=function(e){try{let i=se.__wbindgen_add_to_stack_pointer(-16),a=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),o=Ir;se.validate(i,a,o);var r=lt().getInt32(i+4*0,!0),n=lt().getInt32(i+4*1,!0);if(n)throw E_(r)}finally{se.__wbindgen_add_to_stack_pointer(16)}};Tr.exports.merge_schemas=function(e){let r,n;try{let f=se.__wbindgen_add_to_stack_pointer(-16),p=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),g=Ir;se.merge_schemas(f,p,g);var i=lt().getInt32(f+4*0,!0),a=lt().getInt32(f+4*1,!0),o=lt().getInt32(f+4*2,!0),c=lt().getInt32(f+4*3,!0),u=i,l=a;if(c)throw u=0,l=0,E_(o);return r=u,n=l,Mn(u,l)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.native_types=function(e){let r,n;try{let o=se.__wbindgen_add_to_stack_pointer(-16),c=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),u=Ir;se.native_types(o,c,u);var i=lt().getInt32(o+4*0,!0),a=lt().getInt32(o+4*1,!0);return r=i,n=a,Mn(i,a)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.referential_actions=function(e){let r,n;try{let o=se.__wbindgen_add_to_stack_pointer(-16),c=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),u=Ir;se.referential_actions(o,c,u);var i=lt().getInt32(o+4*0,!0),a=lt().getInt32(o+4*1,!0);return r=i,n=a,Mn(i,a)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(r,n,1)}};Tr.exports.preview_features=function(){let e,r;try{let a=se.__wbindgen_add_to_stack_pointer(-16);se.preview_features(a);var n=lt().getInt32(a+4*0,!0),i=lt().getInt32(a+4*1,!0);return e=n,r=i,Mn(n,i)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(e,r,1)}};Tr.exports.text_document_completion=function(e,r){let n,i;try{let c=se.__wbindgen_add_to_stack_pointer(-16),u=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),l=Ir,f=an(r,se.__wbindgen_malloc,se.__wbindgen_realloc),p=Ir;se.text_document_completion(c,u,l,f,p);var a=lt().getInt32(c+4*0,!0),o=lt().getInt32(c+4*1,!0);return n=a,i=o,Mn(a,o)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(n,i,1)}};Tr.exports.code_actions=function(e,r){let n,i;try{let c=se.__wbindgen_add_to_stack_pointer(-16),u=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),l=Ir,f=an(r,se.__wbindgen_malloc,se.__wbindgen_realloc),p=Ir;se.code_actions(c,u,l,f,p);var a=lt().getInt32(c+4*0,!0),o=lt().getInt32(c+4*1,!0);return n=a,i=o,Mn(a,o)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(n,i,1)}};Tr.exports.references=function(e,r){let n,i;try{let c=se.__wbindgen_add_to_stack_pointer(-16),u=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),l=Ir,f=an(r,se.__wbindgen_malloc,se.__wbindgen_realloc),p=Ir;se.references(c,u,l,f,p);var a=lt().getInt32(c+4*0,!0),o=lt().getInt32(c+4*1,!0);return n=a,i=o,Mn(a,o)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(n,i,1)}};Tr.exports.hover=function(e,r){let n,i;try{let c=se.__wbindgen_add_to_stack_pointer(-16),u=an(e,se.__wbindgen_malloc,se.__wbindgen_realloc),l=Ir,f=an(r,se.__wbindgen_malloc,se.__wbindgen_realloc),p=Ir;se.hover(c,u,l,f,p);var a=lt().getInt32(c+4*0,!0),o=lt().getInt32(c+4*1,!0);return n=a,i=o,Mn(a,o)}finally{se.__wbindgen_add_to_stack_pointer(16),se.__wbindgen_free(n,i,1)}};Tr.exports.debug_panic=function(){se.debug_panic()};Tr.exports.__wbindgen_error_new=function(e,r){let n=new Error(Mn(e,r));return d5e(n)};Tr.exports.__wbg_setmessage_e113e9fee2d41bd4=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(Mn(e,r))};Tr.exports.__wbindgen_throw=function(e,r){throw new Error(Mn(e,r))};var v5e=require("path").join(__dirname,"prisma_schema_build_bg.wasm"),y5e=require("fs").readFileSync(v5e),b5e=new WebAssembly.Module(y5e),x5e=new WebAssembly.Instance(b5e,tK);se=x5e.exports;Tr.exports.__wasm=se});var bI=S((wFt,w5e)=>{w5e.exports={name:"@prisma/internals",version:"5.22.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@antfu/ni":"0.21.12","@babel/helper-validator-identifier":"7.24.7","@opentelemetry/api":"1.9.0","@swc/core":"1.2.204","@swc/jest":"0.2.36","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.12","@types/node":"18.19.31","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"2.1.0",dotenv:"16.0.3",esbuild:"0.23.0","escape-string-regexp":"4.0.0",execa:"5.1.1","fast-glob":"3.3.2","find-up":"5.0.0","fp-ts":"2.16.9","fs-extra":"11.1.1","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0","replace-string":"3.1.0",resolve:"1.22.8","string-width":"4.2.3","strip-ansi":"6.0.1","strip-indent":"3.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"2.1.1",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.2.0","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},sideEffects:!1}});var MK=S((f3t,NK)=>{"use strict";var TI=class{constructor(r){this.value=r,this.next=void 0}},RI=class{constructor(){this.clear()}enqueue(r){let n=new TI(r);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){let r=this._head;if(r)return this._head=this._head.next,this._size--,r.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let r=this._head;for(;r;)yield r.value,r=r.next}};NK.exports=RI});var jK=S((p3t,qK)=>{"use strict";var Z5e=MK(),eqe=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let r=new Z5e,n=0,i=()=>{n--,r.size>0&&r.dequeue()()},a=async(u,l,...f)=>{n++;let p=(async()=>u(...f))();l(p);try{await p}catch{}i()},o=(u,l,...f)=>{r.enqueue(a.bind(null,u,l,...f)),(async()=>(await Promise.resolve(),n0&&r.dequeue()()))()},c=(u,...l)=>new Promise(f=>{o(u,f,...l)});return Object.defineProperties(c,{activeCount:{get:()=>n},pendingCount:{get:()=>r.size},clearQueue:{value:()=>{r.clear()}}}),c};qK.exports=eqe});var GK=S((d3t,UK)=>{"use strict";var BK=jK(),$_=class extends Error{constructor(r){super(),this.value=r}},tqe=async(e,r)=>r(await e),rqe=async e=>{let r=await Promise.all(e);if(r[1]===!0)throw new $_(r[0]);return!1},nqe=async(e,r,n)=>{n={concurrency:1/0,preserveOrder:!0,...n};let i=BK(n.concurrency),a=[...e].map(c=>[c,i(tqe,c,r)]),o=BK(n.preserveOrder?1:1/0);try{await Promise.all(a.map(c=>o(rqe,c)))}catch(c){if(c instanceof $_)return c.value;throw c}};UK.exports=nqe});var KK=S((h3t,AI)=>{"use strict";var WK=require("path"),L_=require("fs"),{promisify:HK}=require("util"),iqe=GK(),sqe=HK(L_.stat),aqe=HK(L_.lstat),zK={directory:"isDirectory",file:"isFile"};function VK({type:e}){if(!(e in zK))throw new Error(`Invalid type specified: ${e}`)}var YK=(e,r)=>e===void 0||r[zK[e]]();AI.exports=async(e,r)=>{r={cwd:process.cwd(),type:"file",allowSymlinks:!0,...r},VK(r);let n=r.allowSymlinks?sqe:aqe;return iqe(e,async i=>{try{let a=await n(WK.resolve(r.cwd,i));return YK(r.type,a)}catch{return!1}},r)};AI.exports.sync=(e,r)=>{r={cwd:process.cwd(),allowSymlinks:!0,type:"file",...r},VK(r);let n=r.allowSymlinks?L_.statSync:L_.lstatSync;for(let i of e)try{let a=n(WK.resolve(r.cwd,i));if(YK(r.type,a))return i}catch{}}});var JK=S((m3t,OI)=>{"use strict";var XK=require("fs"),{promisify:oqe}=require("util"),cqe=oqe(XK.access);OI.exports=async e=>{try{return await cqe(e),!0}catch{return!1}};OI.exports.sync=e=>{try{return XK.accessSync(e),!0}catch{return!1}}});var ZK=S((g3t,yd)=>{"use strict";var iu=require("path"),N_=KK(),QK=JK(),II=Symbol("findUp.stop");yd.exports=async(e,r={})=>{let n=iu.resolve(r.cwd||""),{root:i}=iu.parse(n),a=[].concat(e),o=async c=>{if(typeof e!="function")return N_(a,c);let u=await e(c.cwd);return typeof u=="string"?N_([u],c):u};for(;;){let c=await o({...r,cwd:n});if(c===II)return;if(c)return iu.resolve(n,c);if(n===i)return;n=iu.dirname(n)}};yd.exports.sync=(e,r={})=>{let n=iu.resolve(r.cwd||""),{root:i}=iu.parse(n),a=[].concat(e),o=c=>{if(typeof e!="function")return N_.sync(a,c);let u=e(c.cwd);return typeof u=="string"?N_.sync([u],c):u};for(;;){let c=o({...r,cwd:n});if(c===II)return;if(c)return iu.resolve(n,c);if(n===i)return;n=iu.dirname(n)}};yd.exports.exists=QK;yd.exports.sync.exists=QK.sync;yd.exports.stop=II});var xi=S(kI=>{"use strict";kI.fromCallback=function(e){return Object.defineProperty(function(...r){if(typeof r[r.length-1]=="function")e.apply(this,r);else return new Promise((n,i)=>{e.call(this,...r,(a,o)=>a!=null?i(a):n(o))})},"name",{value:e.name})};kI.fromPromise=function(e){return Object.defineProperty(function(...r){let n=r[r.length-1];if(typeof n!="function")return e.apply(this,r);e.apply(this,r.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:e.name})}});var Vl=S(Bo=>{"use strict";var eX=xi().fromCallback,ri=Zn(),uqe=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof ri[e]=="function");Object.assign(Bo,ri);uqe.forEach(e=>{Bo[e]=eX(ri[e])});Bo.exists=function(e,r){return typeof r=="function"?ri.exists(e,r):new Promise(n=>ri.exists(e,n))};Bo.read=function(e,r,n,i,a,o){return typeof o=="function"?ri.read(e,r,n,i,a,o):new Promise((c,u)=>{ri.read(e,r,n,i,a,(l,f,p)=>{if(l)return u(l);c({bytesRead:f,buffer:p})})})};Bo.write=function(e,r,...n){return typeof n[n.length-1]=="function"?ri.write(e,r,...n):new Promise((i,a)=>{ri.write(e,r,...n,(o,c,u)=>{if(o)return a(o);i({bytesWritten:c,buffer:u})})})};Bo.readv=function(e,r,...n){return typeof n[n.length-1]=="function"?ri.readv(e,r,...n):new Promise((i,a)=>{ri.readv(e,r,...n,(o,c,u)=>{if(o)return a(o);i({bytesRead:c,buffers:u})})})};Bo.writev=function(e,r,...n){return typeof n[n.length-1]=="function"?ri.writev(e,r,...n):new Promise((i,a)=>{ri.writev(e,r,...n,(o,c,u)=>{if(o)return a(o);i({bytesWritten:c,buffers:u})})})};typeof ri.realpath.native=="function"?Bo.realpath.native=eX(ri.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var rX=S((b3t,tX)=>{"use strict";var lqe=require("path");tX.exports.checkPath=function(r){if(process.platform==="win32"&&/[<>:"|?*]/.test(r.replace(lqe.parse(r).root,""))){let i=new Error(`Path contains invalid characters: ${r}`);throw i.code="EINVAL",i}}});var aX=S((x3t,FI)=>{"use strict";var nX=Vl(),{checkPath:iX}=rX(),sX=e=>{let r={mode:511};return typeof e=="number"?e:{...r,...e}.mode};FI.exports.makeDir=async(e,r)=>(iX(e),nX.mkdir(e,{mode:sX(r),recursive:!0}));FI.exports.makeDirSync=(e,r)=>(iX(e),nX.mkdirSync(e,{mode:sX(r),recursive:!0}))});var sa=S((w3t,oX)=>{"use strict";var fqe=xi().fromPromise,{makeDir:pqe,makeDirSync:$I}=aX(),LI=fqe(pqe);oX.exports={mkdirs:LI,mkdirsSync:$I,mkdirp:LI,mkdirpSync:$I,ensureDir:LI,ensureDirSync:$I}});var su=S((_3t,uX)=>{"use strict";var dqe=xi().fromPromise,cX=Vl();function hqe(e){return cX.access(e).then(()=>!0).catch(()=>!1)}uX.exports={pathExists:dqe(hqe),pathExistsSync:cX.existsSync}});var NI=S((E3t,lX)=>{"use strict";var bd=Zn();function mqe(e,r,n,i){bd.open(e,"r+",(a,o)=>{if(a)return i(a);bd.futimes(o,r,n,c=>{bd.close(o,u=>{i&&i(c||u)})})})}function gqe(e,r,n){let i=bd.openSync(e,"r+");return bd.futimesSync(i,r,n),bd.closeSync(i)}lX.exports={utimesMillis:mqe,utimesMillisSync:gqe}});var Yl=S((S3t,dX)=>{"use strict";var xd=Vl(),cn=require("path"),vqe=require("util");function yqe(e,r,n){let i=n.dereference?a=>xd.stat(a,{bigint:!0}):a=>xd.lstat(a,{bigint:!0});return Promise.all([i(e),i(r).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,o])=>({srcStat:a,destStat:o}))}function bqe(e,r,n){let i,a=n.dereference?c=>xd.statSync(c,{bigint:!0}):c=>xd.lstatSync(c,{bigint:!0}),o=a(e);try{i=a(r)}catch(c){if(c.code==="ENOENT")return{srcStat:o,destStat:null};throw c}return{srcStat:o,destStat:i}}function xqe(e,r,n,i,a){vqe.callbackify(yqe)(e,r,i,(o,c)=>{if(o)return a(o);let{srcStat:u,destStat:l}=c;if(l){if(xv(u,l)){let f=cn.basename(e),p=cn.basename(r);return n==="move"&&f!==p&&f.toLowerCase()===p.toLowerCase()?a(null,{srcStat:u,destStat:l,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!l.isDirectory())return a(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`));if(!u.isDirectory()&&l.isDirectory())return a(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}return u.isDirectory()&&MI(e,r)?a(new Error(M_(e,r,n))):a(null,{srcStat:u,destStat:l})})}function wqe(e,r,n,i){let{srcStat:a,destStat:o}=bqe(e,r,i);if(o){if(xv(a,o)){let c=cn.basename(e),u=cn.basename(r);if(n==="move"&&c!==u&&c.toLowerCase()===u.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}if(a.isDirectory()&&MI(e,r))throw new Error(M_(e,r,n));return{srcStat:a,destStat:o}}function fX(e,r,n,i,a){let o=cn.resolve(cn.dirname(e)),c=cn.resolve(cn.dirname(n));if(c===o||c===cn.parse(c).root)return a();xd.stat(c,{bigint:!0},(u,l)=>u?u.code==="ENOENT"?a():a(u):xv(r,l)?a(new Error(M_(e,n,i))):fX(e,r,c,i,a))}function pX(e,r,n,i){let a=cn.resolve(cn.dirname(e)),o=cn.resolve(cn.dirname(n));if(o===a||o===cn.parse(o).root)return;let c;try{c=xd.statSync(o,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(xv(r,c))throw new Error(M_(e,n,i));return pX(e,r,o,i)}function xv(e,r){return r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev}function MI(e,r){let n=cn.resolve(e).split(cn.sep).filter(a=>a),i=cn.resolve(r).split(cn.sep).filter(a=>a);return n.reduce((a,o,c)=>a&&i[c]===o,!0)}function M_(e,r,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${r}'.`}dX.exports={checkPaths:xqe,checkPathsSync:wqe,checkParentPaths:fX,checkParentPathsSync:pX,isSrcSubdir:MI,areIdentical:xv}});var bX=S((D3t,yX)=>{"use strict";var wi=Zn(),wv=require("path"),_qe=sa().mkdirs,Eqe=su().pathExists,Sqe=NI().utimesMillis,_v=Yl();function Dqe(e,r,n,i){typeof n=="function"&&!i?(i=n,n={}):typeof n=="function"&&(n={filter:n}),i=i||function(){},n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),_v.checkPaths(e,r,"copy",n,(a,o)=>{if(a)return i(a);let{srcStat:c,destStat:u}=o;_v.checkParentPaths(e,c,r,"copy",l=>{if(l)return i(l);mX(e,r,n,(f,p)=>{if(f)return i(f);if(!p)return i();Cqe(u,e,r,n,i)})})})}function Cqe(e,r,n,i,a){let o=wv.dirname(n);Eqe(o,(c,u)=>{if(c)return a(c);if(u)return qI(e,r,n,i,a);_qe(o,l=>l?a(l):qI(e,r,n,i,a))})}function mX(e,r,n,i){if(!n.filter)return i(null,!0);Promise.resolve(n.filter(e,r)).then(a=>i(null,a),a=>i(a))}function qI(e,r,n,i,a){(i.dereference?wi.stat:wi.lstat)(r,(c,u)=>c?a(c):u.isDirectory()?kqe(u,e,r,n,i,a):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?Pqe(u,e,r,n,i,a):u.isSymbolicLink()?Lqe(e,r,n,i,a):u.isSocket()?a(new Error(`Cannot copy a socket file: ${r}`)):u.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${r}`)):a(new Error(`Unknown file: ${r}`)))}function Pqe(e,r,n,i,a,o){return r?Tqe(e,n,i,a,o):gX(e,n,i,a,o)}function Tqe(e,r,n,i,a){if(i.overwrite)wi.unlink(n,o=>o?a(o):gX(e,r,n,i,a));else return i.errorOnExist?a(new Error(`'${n}' already exists`)):a()}function gX(e,r,n,i,a){wi.copyFile(r,n,o=>o?a(o):i.preserveTimestamps?Rqe(e.mode,r,n,a):q_(n,e.mode,a))}function Rqe(e,r,n,i){return Aqe(e)?Oqe(n,e,a=>a?i(a):hX(e,r,n,i)):hX(e,r,n,i)}function Aqe(e){return(e&128)===0}function Oqe(e,r,n){return q_(e,r|128,n)}function hX(e,r,n,i){Iqe(r,n,a=>a?i(a):q_(n,e,i))}function q_(e,r,n){return wi.chmod(e,r,n)}function Iqe(e,r,n){wi.stat(e,(i,a)=>i?n(i):Sqe(r,a.atime,a.mtime,n))}function kqe(e,r,n,i,a,o){return r?vX(n,i,a,o):Fqe(e.mode,n,i,a,o)}function Fqe(e,r,n,i,a){wi.mkdir(n,o=>{if(o)return a(o);vX(r,n,i,c=>c?a(c):q_(n,e,a))})}function vX(e,r,n,i){wi.readdir(e,(a,o)=>a?i(a):jI(o,e,r,n,i))}function jI(e,r,n,i,a){let o=e.pop();return o?$qe(e,o,r,n,i,a):a()}function $qe(e,r,n,i,a,o){let c=wv.join(n,r),u=wv.join(i,r);mX(c,u,a,(l,f)=>{if(l)return o(l);if(!f)return jI(e,n,i,a,o);_v.checkPaths(c,u,"copy",a,(p,g)=>{if(p)return o(p);let{destStat:v}=g;qI(v,c,u,a,x=>x?o(x):jI(e,n,i,a,o))})})}function Lqe(e,r,n,i,a){wi.readlink(r,(o,c)=>{if(o)return a(o);if(i.dereference&&(c=wv.resolve(process.cwd(),c)),e)wi.readlink(n,(u,l)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?wi.symlink(c,n,a):a(u):(i.dereference&&(l=wv.resolve(process.cwd(),l)),_v.isSrcSubdir(c,l)?a(new Error(`Cannot copy '${c}' to a subdirectory of itself, '${l}'.`)):_v.isSrcSubdir(l,c)?a(new Error(`Cannot overwrite '${l}' with '${c}'.`)):Nqe(c,n,a)));else return wi.symlink(c,n,a)})}function Nqe(e,r,n){wi.unlink(r,i=>i?n(i):wi.symlink(e,r,n))}yX.exports=Dqe});var SX=S((C3t,EX)=>{"use strict";var ni=Zn(),Ev=require("path"),Mqe=sa().mkdirsSync,qqe=NI().utimesMillisSync,Sv=Yl();function jqe(e,r,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended; - - see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=Sv.checkPathsSync(e,r,"copy",n);if(Sv.checkParentPathsSync(e,i,r,"copy"),n.filter&&!n.filter(e,r))return;let o=Ev.dirname(r);return ni.existsSync(o)||Mqe(o),xX(a,e,r,n)}function xX(e,r,n,i){let o=(i.dereference?ni.statSync:ni.lstatSync)(r);if(o.isDirectory())return Vqe(o,e,r,n,i);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Bqe(o,e,r,n,i);if(o.isSymbolicLink())return Xqe(e,r,n,i);throw o.isSocket()?new Error(`Cannot copy a socket file: ${r}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${r}`):new Error(`Unknown file: ${r}`)}function Bqe(e,r,n,i,a){return r?Uqe(e,n,i,a):wX(e,n,i,a)}function Uqe(e,r,n,i){if(i.overwrite)return ni.unlinkSync(n),wX(e,r,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function wX(e,r,n,i){return ni.copyFileSync(r,n),i.preserveTimestamps&&Gqe(e.mode,r,n),BI(n,e.mode)}function Gqe(e,r,n){return Wqe(e)&&Hqe(n,e),zqe(r,n)}function Wqe(e){return(e&128)===0}function Hqe(e,r){return BI(e,r|128)}function BI(e,r){return ni.chmodSync(e,r)}function zqe(e,r){let n=ni.statSync(e);return qqe(r,n.atime,n.mtime)}function Vqe(e,r,n,i,a){return r?_X(n,i,a):Yqe(e.mode,n,i,a)}function Yqe(e,r,n,i){return ni.mkdirSync(n),_X(r,n,i),BI(n,e)}function _X(e,r,n){ni.readdirSync(e).forEach(i=>Kqe(i,e,r,n))}function Kqe(e,r,n,i){let a=Ev.join(r,e),o=Ev.join(n,e);if(i.filter&&!i.filter(a,o))return;let{destStat:c}=Sv.checkPathsSync(a,o,"copy",i);return xX(c,a,o,i)}function Xqe(e,r,n,i){let a=ni.readlinkSync(r);if(i.dereference&&(a=Ev.resolve(process.cwd(),a)),e){let o;try{o=ni.readlinkSync(n)}catch(c){if(c.code==="EINVAL"||c.code==="UNKNOWN")return ni.symlinkSync(a,n);throw c}if(i.dereference&&(o=Ev.resolve(process.cwd(),o)),Sv.isSrcSubdir(a,o))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${o}'.`);if(Sv.isSrcSubdir(o,a))throw new Error(`Cannot overwrite '${o}' with '${a}'.`);return Jqe(a,n)}else return ni.symlinkSync(a,n)}function Jqe(e,r){return ni.unlinkSync(r),ni.symlinkSync(e,r)}EX.exports=jqe});var j_=S((P3t,DX)=>{"use strict";var Qqe=xi().fromCallback;DX.exports={copy:Qqe(bX()),copySync:SX()}});var Dv=S((T3t,PX)=>{"use strict";var CX=Zn(),Zqe=xi().fromCallback;function eje(e,r){CX.rm(e,{recursive:!0,force:!0},r)}function tje(e){CX.rmSync(e,{recursive:!0,force:!0})}PX.exports={remove:Zqe(eje),removeSync:tje}});var $X=S((R3t,FX)=>{"use strict";var rje=xi().fromPromise,AX=Vl(),OX=require("path"),IX=sa(),kX=Dv(),TX=rje(async function(r){let n;try{n=await AX.readdir(r)}catch{return IX.mkdirs(r)}return Promise.all(n.map(i=>kX.remove(OX.join(r,i))))});function RX(e){let r;try{r=AX.readdirSync(e)}catch{return IX.mkdirsSync(e)}r.forEach(n=>{n=OX.join(e,n),kX.removeSync(n)})}FX.exports={emptyDirSync:RX,emptydirSync:RX,emptyDir:TX,emptydir:TX}});var qX=S((A3t,MX)=>{"use strict";var nje=xi().fromCallback,LX=require("path"),au=Zn(),NX=sa();function ije(e,r){function n(){au.writeFile(e,"",i=>{if(i)return r(i);r()})}au.stat(e,(i,a)=>{if(!i&&a.isFile())return r();let o=LX.dirname(e);au.stat(o,(c,u)=>{if(c)return c.code==="ENOENT"?NX.mkdirs(o,l=>{if(l)return r(l);n()}):r(c);u.isDirectory()?n():au.readdir(o,l=>{if(l)return r(l)})})})}function sje(e){let r;try{r=au.statSync(e)}catch{}if(r&&r.isFile())return;let n=LX.dirname(e);try{au.statSync(n).isDirectory()||au.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")NX.mkdirsSync(n);else throw i}au.writeFileSync(e,"")}MX.exports={createFile:nje(ije),createFileSync:sje}});var WX=S((O3t,GX)=>{"use strict";var aje=xi().fromCallback,jX=require("path"),ou=Zn(),BX=sa(),oje=su().pathExists,{areIdentical:UX}=Yl();function cje(e,r,n){function i(a,o){ou.link(a,o,c=>{if(c)return n(c);n(null)})}ou.lstat(r,(a,o)=>{ou.lstat(e,(c,u)=>{if(c)return c.message=c.message.replace("lstat","ensureLink"),n(c);if(o&&UX(u,o))return n(null);let l=jX.dirname(r);oje(l,(f,p)=>{if(f)return n(f);if(p)return i(e,r);BX.mkdirs(l,g=>{if(g)return n(g);i(e,r)})})})})}function uje(e,r){let n;try{n=ou.lstatSync(r)}catch{}try{let o=ou.lstatSync(e);if(n&&UX(o,n))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let i=jX.dirname(r);return ou.existsSync(i)||BX.mkdirsSync(i),ou.linkSync(e,r)}GX.exports={createLink:aje(cje),createLinkSync:uje}});var zX=S((I3t,HX)=>{"use strict";var cu=require("path"),Cv=Zn(),lje=su().pathExists;function fje(e,r,n){if(cu.isAbsolute(e))return Cv.lstat(e,i=>i?(i.message=i.message.replace("lstat","ensureSymlink"),n(i)):n(null,{toCwd:e,toDst:e}));{let i=cu.dirname(r),a=cu.join(i,e);return lje(a,(o,c)=>o?n(o):c?n(null,{toCwd:a,toDst:e}):Cv.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),n(u)):n(null,{toCwd:e,toDst:cu.relative(i,e)})))}}function pje(e,r){let n;if(cu.isAbsolute(e)){if(n=Cv.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let i=cu.dirname(r),a=cu.join(i,e);if(n=Cv.existsSync(a),n)return{toCwd:a,toDst:e};if(n=Cv.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:cu.relative(i,e)}}}HX.exports={symlinkPaths:fje,symlinkPathsSync:pje}});var KX=S((k3t,YX)=>{"use strict";var VX=Zn();function dje(e,r,n){if(n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,r)return n(null,r);VX.lstat(e,(i,a)=>{if(i)return n(null,"file");r=a&&a.isDirectory()?"dir":"file",n(null,r)})}function hje(e,r){let n;if(r)return r;try{n=VX.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}YX.exports={symlinkType:dje,symlinkTypeSync:hje}});var nJ=S((F3t,rJ)=>{"use strict";var mje=xi().fromCallback,JX=require("path"),aa=Vl(),QX=sa(),gje=QX.mkdirs,vje=QX.mkdirsSync,ZX=zX(),yje=ZX.symlinkPaths,bje=ZX.symlinkPathsSync,eJ=KX(),xje=eJ.symlinkType,wje=eJ.symlinkTypeSync,_je=su().pathExists,{areIdentical:tJ}=Yl();function Eje(e,r,n,i){i=typeof n=="function"?n:i,n=typeof n=="function"?!1:n,aa.lstat(r,(a,o)=>{!a&&o.isSymbolicLink()?Promise.all([aa.stat(e),aa.stat(r)]).then(([c,u])=>{if(tJ(c,u))return i(null);XX(e,r,n,i)}):XX(e,r,n,i)})}function XX(e,r,n,i){yje(e,r,(a,o)=>{if(a)return i(a);e=o.toDst,xje(o.toCwd,n,(c,u)=>{if(c)return i(c);let l=JX.dirname(r);_je(l,(f,p)=>{if(f)return i(f);if(p)return aa.symlink(e,r,u,i);gje(l,g=>{if(g)return i(g);aa.symlink(e,r,u,i)})})})})}function Sje(e,r,n){let i;try{i=aa.lstatSync(r)}catch{}if(i&&i.isSymbolicLink()){let u=aa.statSync(e),l=aa.statSync(r);if(tJ(u,l))return}let a=bje(e,r);e=a.toDst,n=wje(a.toCwd,n);let o=JX.dirname(r);return aa.existsSync(o)||vje(o),aa.symlinkSync(e,r,n)}rJ.exports={createSymlink:mje(Eje),createSymlinkSync:Sje}});var fJ=S(($3t,lJ)=>{"use strict";var{createFile:iJ,createFileSync:sJ}=qX(),{createLink:aJ,createLinkSync:oJ}=WX(),{createSymlink:cJ,createSymlinkSync:uJ}=nJ();lJ.exports={createFile:iJ,createFileSync:sJ,ensureFile:iJ,ensureFileSync:sJ,createLink:aJ,createLinkSync:oJ,ensureLink:aJ,ensureLinkSync:oJ,createSymlink:cJ,createSymlinkSync:uJ,ensureSymlink:cJ,ensureSymlinkSync:uJ}});var B_=S((L3t,pJ)=>{"use strict";function Dje(e,{EOL:r=` -`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let o=n?r:"";return JSON.stringify(e,i,a).replace(/\n/g,r)+o}function Cje(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}pJ.exports={stringify:Dje,stripBom:Cje}});var gJ=S((N3t,mJ)=>{"use strict";var wd;try{wd=Zn()}catch{wd=require("fs")}var U_=xi(),{stringify:dJ,stripBom:hJ}=B_();async function Pje(e,r={}){typeof r=="string"&&(r={encoding:r});let n=r.fs||wd,i="throws"in r?r.throws:!0,a=await U_.fromCallback(n.readFile)(e,r);a=hJ(a);let o;try{o=JSON.parse(a,r?r.reviver:null)}catch(c){if(i)throw c.message=`${e}: ${c.message}`,c;return null}return o}var Tje=U_.fromPromise(Pje);function Rje(e,r={}){typeof r=="string"&&(r={encoding:r});let n=r.fs||wd,i="throws"in r?r.throws:!0;try{let a=n.readFileSync(e,r);return a=hJ(a),JSON.parse(a,r.reviver)}catch(a){if(i)throw a.message=`${e}: ${a.message}`,a;return null}}async function Aje(e,r,n={}){let i=n.fs||wd,a=dJ(r,n);await U_.fromCallback(i.writeFile)(e,a,n)}var Oje=U_.fromPromise(Aje);function Ije(e,r,n={}){let i=n.fs||wd,a=dJ(r,n);return i.writeFileSync(e,a,n)}var kje={readFile:Tje,readFileSync:Rje,writeFile:Oje,writeFileSync:Ije};mJ.exports=kje});var yJ=S((M3t,vJ)=>{"use strict";var G_=gJ();vJ.exports={readJson:G_.readFile,readJsonSync:G_.readFileSync,writeJson:G_.writeFile,writeJsonSync:G_.writeFileSync}});var W_=S((q3t,wJ)=>{"use strict";var Fje=xi().fromCallback,Pv=Zn(),bJ=require("path"),xJ=sa(),$je=su().pathExists;function Lje(e,r,n,i){typeof n=="function"&&(i=n,n="utf8");let a=bJ.dirname(e);$je(a,(o,c)=>{if(o)return i(o);if(c)return Pv.writeFile(e,r,n,i);xJ.mkdirs(a,u=>{if(u)return i(u);Pv.writeFile(e,r,n,i)})})}function Nje(e,...r){let n=bJ.dirname(e);if(Pv.existsSync(n))return Pv.writeFileSync(e,...r);xJ.mkdirsSync(n),Pv.writeFileSync(e,...r)}wJ.exports={outputFile:Fje(Lje),outputFileSync:Nje}});var EJ=S((j3t,_J)=>{"use strict";var{stringify:Mje}=B_(),{outputFile:qje}=W_();async function jje(e,r,n={}){let i=Mje(r,n);await qje(e,i,n)}_J.exports=jje});var DJ=S((B3t,SJ)=>{"use strict";var{stringify:Bje}=B_(),{outputFileSync:Uje}=W_();function Gje(e,r,n){let i=Bje(r,n);Uje(e,i,n)}SJ.exports=Gje});var PJ=S((U3t,CJ)=>{"use strict";var Wje=xi().fromPromise,ii=yJ();ii.outputJson=Wje(EJ());ii.outputJsonSync=DJ();ii.outputJSON=ii.outputJson;ii.outputJSONSync=ii.outputJsonSync;ii.writeJSON=ii.writeJson;ii.writeJSONSync=ii.writeJsonSync;ii.readJSON=ii.readJson;ii.readJSONSync=ii.readJsonSync;CJ.exports=ii});var IJ=S((G3t,OJ)=>{"use strict";var Hje=Zn(),GI=require("path"),zje=j_().copy,AJ=Dv().remove,Vje=sa().mkdirp,Yje=su().pathExists,TJ=Yl();function Kje(e,r,n,i){typeof n=="function"&&(i=n,n={}),n=n||{};let a=n.overwrite||n.clobber||!1;TJ.checkPaths(e,r,"move",n,(o,c)=>{if(o)return i(o);let{srcStat:u,isChangingCase:l=!1}=c;TJ.checkParentPaths(e,u,r,"move",f=>{if(f)return i(f);if(Xje(r))return RJ(e,r,a,l,i);Vje(GI.dirname(r),p=>p?i(p):RJ(e,r,a,l,i))})})}function Xje(e){let r=GI.dirname(e);return GI.parse(r).root===r}function RJ(e,r,n,i,a){if(i)return UI(e,r,n,a);if(n)return AJ(r,o=>o?a(o):UI(e,r,n,a));Yje(r,(o,c)=>o?a(o):c?a(new Error("dest already exists.")):UI(e,r,n,a))}function UI(e,r,n,i){Hje.rename(e,r,a=>a?a.code!=="EXDEV"?i(a):Jje(e,r,n,i):i())}function Jje(e,r,n,i){zje(e,r,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0},o=>o?i(o):AJ(e,i))}OJ.exports=Kje});var NJ=S((W3t,LJ)=>{"use strict";var FJ=Zn(),HI=require("path"),Qje=j_().copySync,$J=Dv().removeSync,Zje=sa().mkdirpSync,kJ=Yl();function eBe(e,r,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:o=!1}=kJ.checkPathsSync(e,r,"move",n);return kJ.checkParentPathsSync(e,a,r,"move"),tBe(r)||Zje(HI.dirname(r)),rBe(e,r,i,o)}function tBe(e){let r=HI.dirname(e);return HI.parse(r).root===r}function rBe(e,r,n,i){if(i)return WI(e,r,n);if(n)return $J(r),WI(e,r,n);if(FJ.existsSync(r))throw new Error("dest already exists.");return WI(e,r,n)}function WI(e,r,n){try{FJ.renameSync(e,r)}catch(i){if(i.code!=="EXDEV")throw i;return nBe(e,r,n)}}function nBe(e,r,n){return Qje(e,r,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),$J(e)}LJ.exports=eBe});var qJ=S((H3t,MJ)=>{"use strict";var iBe=xi().fromCallback;MJ.exports={move:iBe(IJ()),moveSync:NJ()}});var uu=S((z3t,jJ)=>{"use strict";jJ.exports={...Vl(),...j_(),...$X(),...fJ(),...PJ(),...sa(),...qJ(),...W_(),...su(),...Dv()}});var KJ=S((V3t,YJ)=>{"use strict";var sBe=Object.create,z_=Object.defineProperty,aBe=Object.getOwnPropertyDescriptor,oBe=Object.getOwnPropertyNames,cBe=Object.getPrototypeOf,uBe=Object.prototype.hasOwnProperty,lBe=(e,r)=>{for(var n in r)z_(e,n,{get:r[n],enumerable:!0})},GJ=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of oBe(r))!uBe.call(e,a)&&a!==n&&z_(e,a,{get:()=>r[a],enumerable:!(i=aBe(r,a))||i.enumerable});return e},YI=(e,r,n)=>(n=e!=null?sBe(cBe(e)):{},GJ(r||!e||!e.__esModule?z_(n,"default",{value:e,enumerable:!0}):n,e)),fBe=e=>GJ(z_({},"__esModule",{value:!0}),e),WJ={};lBe(WJ,{CompositeFilesResolver:()=>dBe,InMemoryFilesResolver:()=>mBe,loadRelatedSchemaFiles:()=>gBe,loadSchemaFiles:()=>zJ,realFsResolver:()=>KI,usesPrismaSchemaFolder:()=>VJ});YJ.exports=fBe(WJ);var zI=YI(require("path")),pBe=yI(),BJ=YI(require("path"));function HJ(e){return e.caseSensitive?r=>r:r=>r.toLocaleLowerCase()}var dBe=class{constructor(e,r,n){this.primary=e,this.secondary=r,this._fileNameToKey=HJ(n)}async listDirContents(e){let r=await this.primary.listDirContents(e),n=await this.secondary.listDirContents(e);return hBe([...r,...n],this._fileNameToKey)}async getEntryType(e){return await this.primary.getEntryType(e)??await this.secondary.getEntryType(e)}async getFileContents(e){return await this.primary.getFileContents(e)??await this.secondary.getFileContents(e)}};function hBe(e,r){let n=new Map;for(let i of e){let a=r(i);n.has(a)||n.set(a,i)}return Array.from(n.values())}var mBe=class{constructor(e){this._tree={},this._fileNameToKey=HJ(e)}addFile(e,r){let n=e.split(/[\\/]/),i=n.pop();if(!i)throw new Error("Path is empty");let a=this._tree;for(let o of n){let c=this._fileNameToKey(o),u=a[c];if(u||(u={canonicalName:o,content:{}},a[c]=u),typeof u.content=="string")throw new Error(`${o} is a file`);a=u.content}if(typeof a[i]?.content=="object")throw new Error(`${e} is a directory`);a[this._fileNameToKey(i)]={canonicalName:i,content:r}}getInMemoryContent(e){let r=e.split(/[\\/]/).map(i=>this._fileNameToKey(i)),n=this._tree;for(let i of r){if(typeof n!="object")return;n=n[i]?.content}return n}listDirContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);return typeof r!="object"?[]:Object.values(r).map(n=>n.canonicalName)})}getEntryType(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(typeof r=="string")return{kind:"file"};if(typeof r=="object")return{kind:"directory"}})}getFileContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(!(typeof r>"u")){if(typeof r=="object")throw new Error(`${e} is directory`);return r}})}},H_=YI(uu()),KI={listDirContents(e){return H_.default.readdir(e)},async getEntryType(e){let r=await H_.default.lstat(e);return r.isFile()?{kind:"file"}:r.isDirectory()?{kind:"directory"}:r.isSymbolicLink()?{kind:"symlink",realPath:await H_.default.realpath(e)}:{kind:"other"}},getFileContents(e){return H_.default.readFile(e,"utf8")}};async function zJ(e,r=KI){let n=await r.getEntryType(e);return VI(e,n,r)}async function VI(e,r,n){if(!r)return[];if(r.kind==="symlink"){let i=r.realPath,a=await n.getEntryType(i);return VI(i,a,n)}if(r.kind==="file"){if(BJ.default.extname(e)!==".prisma")return[];let i=await n.getFileContents(e);return typeof i>"u"?[]:[[e,i]]}if(r.kind==="directory"){let i=await n.listDirContents(e);return(await Promise.all(i.map(async o=>{let c=BJ.default.join(e,o),u=await n.getEntryType(c);return VI(c,u,n)}))).flat()}return[]}function VJ(e){return(e.generators.find(n=>n.previewFeatures.length>0)?.previewFeatures||[]).includes("prismaSchemaFolder")}async function gBe(e,r=KI){let n=await yBe(e,r);if(!n)return UJ(e,r);let i=await zJ(n,r);return vBe(i)?i:UJ(e,r)}async function UJ(e,r){let n=await r.getFileContents(e);return n===void 0?[]:[[e,n]]}function vBe(e){let r=JSON.stringify({prismaSchema:e,datasourceOverrides:{},ignoreEnvVarErrors:!0,env:{}});try{let n=JSON.parse((0,pBe.get_config)(r));return VJ(n.config)}catch{return!1}}async function yBe(e,r){let n=zI.default.dirname(e);for(;n!==e;){let i=zI.default.dirname(n);if((await r.listDirContents(i)).filter(c=>zI.default.extname(c)===".prisma").length===0)return n;n=i}}});var tQ=S(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;V_.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}});var aQ=S(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});Tv.isIdentifierChar=sQ;Tv.isIdentifierName=_Be;Tv.isIdentifierStart=iQ;var JI="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",rQ="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",bBe=new RegExp("["+JI+"]"),xBe=new RegExp("["+JI+rQ+"]");JI=rQ=null;var nQ=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],wBe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function XI(e,r){let n=65536;for(let i=0,a=r.length;ie)return!1;if(n+=r[i+1],n>=e)return!0}return!1}function iQ(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&bBe.test(String.fromCharCode(e)):XI(e,nQ)}function sQ(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&xBe.test(String.fromCharCode(e)):XI(e,nQ)||XI(e,wBe)}function _Be(e){let r=!0;for(let n=0;n{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.isKeyword=PBe;Xl.isReservedWord=oQ;Xl.isStrictBindOnlyReservedWord=uQ;Xl.isStrictBindReservedWord=CBe;Xl.isStrictReservedWord=cQ;var QI={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},EBe=new Set(QI.keyword),SBe=new Set(QI.strict),DBe=new Set(QI.strictBind);function oQ(e,r){return r&&e==="await"||e==="enum"}function cQ(e,r){return oQ(e,r)||SBe.has(e)}function uQ(e){return DBe.has(e)}function CBe(e,r){return cQ(e,r)||uQ(e)}function PBe(e){return EBe.has(e)}});var ek=S(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Object.defineProperty(Ya,"isIdentifierChar",{enumerable:!0,get:function(){return ZI.isIdentifierChar}});Object.defineProperty(Ya,"isIdentifierName",{enumerable:!0,get:function(){return ZI.isIdentifierName}});Object.defineProperty(Ya,"isIdentifierStart",{enumerable:!0,get:function(){return ZI.isIdentifierStart}});Object.defineProperty(Ya,"isKeyword",{enumerable:!0,get:function(){return Rv.isKeyword}});Object.defineProperty(Ya,"isReservedWord",{enumerable:!0,get:function(){return Rv.isReservedWord}});Object.defineProperty(Ya,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Rv.isStrictBindOnlyReservedWord}});Object.defineProperty(Ya,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Rv.isStrictBindReservedWord}});Object.defineProperty(Ya,"isStrictReservedWord",{enumerable:!0,get:function(){return Rv.isStrictReservedWord}});var ZI=aQ(),Rv=lQ()});var pQ=S((tLt,fQ)=>{"use strict";var TBe=/[|\\{}()[\]^$+*?.]/g;fQ.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(TBe,"\\$&")}});var hQ=S((rLt,dQ)=>{"use strict";dQ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var tk=S((nLt,yQ)=>{"use strict";var Jl=hQ(),vQ={};for(Y_ in Jl)Jl.hasOwnProperty(Y_)&&(vQ[Jl[Y_]]=Y_);var Y_,Se=yQ.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(si in Se)if(Se.hasOwnProperty(si)){if(!("channels"in Se[si]))throw new Error("missing channels property: "+si);if(!("labels"in Se[si]))throw new Error("missing channel labels property: "+si);if(Se[si].labels.length!==Se[si].channels)throw new Error("channel and label counts mismatch: "+si);mQ=Se[si].channels,gQ=Se[si].labels,delete Se[si].channels,delete Se[si].labels,Object.defineProperty(Se[si],"channels",{value:mQ}),Object.defineProperty(Se[si],"labels",{value:gQ})}var mQ,gQ,si;Se.rgb.hsl=function(e){var r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.min(r,n,i),o=Math.max(r,n,i),c=o-a,u,l,f;return o===a?u=0:r===o?u=(n-i)/c:n===o?u=2+(i-r)/c:i===o&&(u=4+(r-n)/c),u=Math.min(u*60,360),u<0&&(u+=360),f=(a+o)/2,o===a?l=0:f<=.5?l=c/(o+a):l=c/(2-o-a),[u,l*100,f*100]};Se.rgb.hsv=function(e){var r,n,i,a,o,c=e[0]/255,u=e[1]/255,l=e[2]/255,f=Math.max(c,u,l),p=f-Math.min(c,u,l),g=function(v){return(f-v)/6/p+1/2};return p===0?a=o=0:(o=p/f,r=g(c),n=g(u),i=g(l),c===f?a=i-n:u===f?a=1/3+r-i:l===f&&(a=2/3+n-r),a<0?a+=1:a>1&&(a-=1)),[a*360,o*100,f*100]};Se.rgb.hwb=function(e){var r=e[0],n=e[1],i=e[2],a=Se.rgb.hsl(e)[0],o=1/255*Math.min(r,Math.min(n,i));return i=1-1/255*Math.max(r,Math.max(n,i)),[a,o*100,i*100]};Se.rgb.cmyk=function(e){var r=e[0]/255,n=e[1]/255,i=e[2]/255,a,o,c,u;return u=Math.min(1-r,1-n,1-i),a=(1-r-u)/(1-u)||0,o=(1-n-u)/(1-u)||0,c=(1-i-u)/(1-u)||0,[a*100,o*100,c*100,u*100]};function RBe(e,r){return Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2)+Math.pow(e[2]-r[2],2)}Se.rgb.keyword=function(e){var r=vQ[e];if(r)return r;var n=1/0,i;for(var a in Jl)if(Jl.hasOwnProperty(a)){var o=Jl[a],c=RBe(e,o);c.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=r*.4124+n*.3576+i*.1805,o=r*.2126+n*.7152+i*.0722,c=r*.0193+n*.1192+i*.9505;return[a*100,o*100,c*100]};Se.rgb.lab=function(e){var r=Se.rgb.xyz(e),n=r[0],i=r[1],a=r[2],o,c,u;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=116*i-16,c=500*(n-i),u=200*(i-a),[o,c,u]};Se.hsl.rgb=function(e){var r=e[0]/360,n=e[1]/100,i=e[2]/100,a,o,c,u,l;if(n===0)return l=i*255,[l,l,l];i<.5?o=i*(1+n):o=i+n-i*n,a=2*i-o,u=[0,0,0];for(var f=0;f<3;f++)c=r+1/3*-(f-1),c<0&&c++,c>1&&c--,6*c<1?l=a+(o-a)*6*c:2*c<1?l=o:3*c<2?l=a+(o-a)*(2/3-c)*6:l=a,u[f]=l*255;return u};Se.hsl.hsv=function(e){var r=e[0],n=e[1]/100,i=e[2]/100,a=n,o=Math.max(i,.01),c,u;return i*=2,n*=i<=1?i:2-i,a*=o<=1?o:2-o,u=(i+n)/2,c=i===0?2*a/(o+a):2*n/(i+n),[r,c*100,u*100]};Se.hsv.rgb=function(e){var r=e[0]/60,n=e[1]/100,i=e[2]/100,a=Math.floor(r)%6,o=r-Math.floor(r),c=255*i*(1-n),u=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,a){case 0:return[i,l,c];case 1:return[u,i,c];case 2:return[c,i,l];case 3:return[c,u,i];case 4:return[l,c,i];case 5:return[i,c,u]}};Se.hsv.hsl=function(e){var r=e[0],n=e[1]/100,i=e[2]/100,a=Math.max(i,.01),o,c,u;return u=(2-n)*i,o=(2-n)*a,c=n*a,c/=o<=1?o:2-o,c=c||0,u/=2,[r,c*100,u*100]};Se.hwb.rgb=function(e){var r=e[0]/360,n=e[1]/100,i=e[2]/100,a=n+i,o,c,u,l;a>1&&(n/=a,i/=a),o=Math.floor(6*r),c=1-i,u=6*r-o,o&1&&(u=1-u),l=n+u*(c-n);var f,p,g;switch(o){default:case 6:case 0:f=c,p=l,g=n;break;case 1:f=l,p=c,g=n;break;case 2:f=n,p=c,g=l;break;case 3:f=n,p=l,g=c;break;case 4:f=l,p=n,g=c;break;case 5:f=c,p=n,g=l;break}return[f*255,p*255,g*255]};Se.cmyk.rgb=function(e){var r=e[0]/100,n=e[1]/100,i=e[2]/100,a=e[3]/100,o,c,u;return o=1-Math.min(1,r*(1-a)+a),c=1-Math.min(1,n*(1-a)+a),u=1-Math.min(1,i*(1-a)+a),[o*255,c*255,u*255]};Se.xyz.rgb=function(e){var r=e[0]/100,n=e[1]/100,i=e[2]/100,a,o,c;return a=r*3.2406+n*-1.5372+i*-.4986,o=r*-.9689+n*1.8758+i*.0415,c=r*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:c*12.92,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),c=Math.min(Math.max(0,c),1),[a*255,o*255,c*255]};Se.xyz.lab=function(e){var r=e[0],n=e[1],i=e[2],a,o,c;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,o=500*(r-n),c=200*(n-i),[a,o,c]};Se.lab.xyz=function(e){var r=e[0],n=e[1],i=e[2],a,o,c;o=(r+16)/116,a=n/500+o,c=o-i/200;var u=Math.pow(o,3),l=Math.pow(a,3),f=Math.pow(c,3);return o=u>.008856?u:(o-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,c=f>.008856?f:(c-16/116)/7.787,a*=95.047,o*=100,c*=108.883,[a,o,c]};Se.lab.lch=function(e){var r=e[0],n=e[1],i=e[2],a,o,c;return a=Math.atan2(i,n),o=a*360/2/Math.PI,o<0&&(o+=360),c=Math.sqrt(n*n+i*i),[r,c,o]};Se.lch.lab=function(e){var r=e[0],n=e[1],i=e[2],a,o,c;return c=i/360*2*Math.PI,a=n*Math.cos(c),o=n*Math.sin(c),[r,a,o]};Se.rgb.ansi16=function(e){var r=e[0],n=e[1],i=e[2],a=1 in arguments?arguments[1]:Se.rgb.hsv(e)[2];if(a=Math.round(a/50),a===0)return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};Se.hsv.ansi16=function(e){return Se.rgb.ansi16(Se.hsv.rgb(e),e[2])};Se.rgb.ansi256=function(e){var r=e[0],n=e[1],i=e[2];if(r===n&&n===i)return r<8?16:r>248?231:Math.round((r-8)/247*24)+232;var a=16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};Se.ansi16.rgb=function(e){var r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];var n=(~~(e>50)+1)*.5,i=(r&1)*n*255,a=(r>>1&1)*n*255,o=(r>>2&1)*n*255;return[i,a,o]};Se.ansi256.rgb=function(e){if(e>=232){var r=(e-232)*10+8;return[r,r,r]}e-=16;var n,i=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,o=n%6/5*255;return[i,a,o]};Se.rgb.hex=function(e){var r=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};Se.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var n=r[0];r[0].length===3&&(n=n.split("").map(function(u){return u+u}).join(""));var i=parseInt(n,16),a=i>>16&255,o=i>>8&255,c=i&255;return[a,o,c]};Se.rgb.hcg=function(e){var r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),o=Math.min(Math.min(r,n),i),c=a-o,u,l;return c<1?u=o/(1-c):u=0,c<=0?l=0:a===r?l=(n-i)/c%6:a===n?l=2+(i-r)/c:l=4+(r-n)/c+4,l/=6,l%=1,[l*360,c*100,u*100]};Se.hsl.hcg=function(e){var r=e[1]/100,n=e[2]/100,i=1,a=0;return n<.5?i=2*r*n:i=2*r*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[e[0],i*100,a*100]};Se.hsv.hcg=function(e){var r=e[1]/100,n=e[2]/100,i=r*n,a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};Se.hcg.rgb=function(e){var r=e[0]/360,n=e[1]/100,i=e[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],o=r%1*6,c=o%1,u=1-c,l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=c,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=c;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=c,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return l=(1-n)*i,[(n*a[0]+l)*255,(n*a[1]+l)*255,(n*a[2]+l)*255]};Se.hcg.hsv=function(e){var r=e[1]/100,n=e[2]/100,i=r+n*(1-r),a=0;return i>0&&(a=r/i),[e[0],a*100,i*100]};Se.hcg.hsl=function(e){var r=e[1]/100,n=e[2]/100,i=n*(1-r)+.5*r,a=0;return i>0&&i<.5?a=r/(2*i):i>=.5&&i<1&&(a=r/(2*(1-i))),[e[0],a*100,i*100]};Se.hcg.hwb=function(e){var r=e[1]/100,n=e[2]/100,i=r+n*(1-r);return[e[0],(i-r)*100,(1-i)*100]};Se.hwb.hcg=function(e){var r=e[1]/100,n=e[2]/100,i=1-n,a=i-r,o=0;return a<1&&(o=(i-a)/(1-a)),[e[0],a*100,o*100]};Se.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Se.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Se.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Se.gray.hsl=Se.gray.hsv=function(e){return[0,0,e[0]]};Se.gray.hwb=function(e){return[0,100,e[0]]};Se.gray.cmyk=function(e){return[0,0,0,e[0]]};Se.gray.lab=function(e){return[e[0],0,0]};Se.gray.hex=function(e){var r=Math.round(e[0]/100*255)&255,n=(r<<16)+(r<<8)+r,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};Se.rgb.gray=function(e){var r=(e[0]+e[1]+e[2])/3;return[r/255*100]}});var xQ=S((iLt,bQ)=>{"use strict";var K_=tk();function ABe(){for(var e={},r=Object.keys(K_),n=r.length,i=0;i{"use strict";var rk=tk(),FBe=xQ(),_d={},$Be=Object.keys(rk);function LBe(e){var r=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function NBe(e){var r=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=e(n);if(typeof i=="object")for(var a=i.length,o=0;o{"use strict";var Ed=_Q(),X_=(e,r)=>function(){return`\x1B[${e.apply(Ed,arguments)+r}m`},J_=(e,r)=>function(){let n=e.apply(Ed,arguments);return`\x1B[${38+r};5;${n}m`},Q_=(e,r)=>function(){let n=e.apply(Ed,arguments);return`\x1B[${38+r};2;${n[0]};${n[1]};${n[2]}m`};function MBe(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(let a of Object.keys(r)){let o=r[a];for(let c of Object.keys(o)){let u=o[c];r[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},o[c]=r[c],e.set(u[0],u[1])}Object.defineProperty(r,a,{value:o,enumerable:!1}),Object.defineProperty(r,"codes",{value:e,enumerable:!1})}let n=a=>a,i=(a,o,c)=>[a,o,c];r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi={ansi:X_(n,0)},r.color.ansi256={ansi256:J_(n,0)},r.color.ansi16m={rgb:Q_(i,0)},r.bgColor.ansi={ansi:X_(n,10)},r.bgColor.ansi256={ansi256:J_(n,10)},r.bgColor.ansi16m={rgb:Q_(i,10)};for(let a of Object.keys(Ed)){if(typeof Ed[a]!="object")continue;let o=Ed[a];a==="ansi16"&&(a="ansi"),"ansi16"in o&&(r.color.ansi[a]=X_(o.ansi16,0),r.bgColor.ansi[a]=X_(o.ansi16,10)),"ansi256"in o&&(r.color.ansi256[a]=J_(o.ansi256,0),r.bgColor.ansi256[a]=J_(o.ansi256,10)),"rgb"in o&&(r.color.ansi16m[a]=Q_(o.rgb,0),r.bgColor.ansi16m[a]=Q_(o.rgb,10))}return r}Object.defineProperty(EQ,"exports",{enumerable:!0,get:MBe})});var CQ=S((oLt,DQ)=>{"use strict";DQ.exports=(e,r)=>{r=r||process.argv;let n=e.startsWith("-")?"":e.length===1?"-":"--",i=r.indexOf(n+e),a=r.indexOf("--");return i!==-1&&(a===-1?!0:i{"use strict";var qBe=require("os"),oa=CQ(),qn=process.env,Sd;oa("no-color")||oa("no-colors")||oa("color=false")?Sd=!1:(oa("color")||oa("colors")||oa("color=true")||oa("color=always"))&&(Sd=!0);"FORCE_COLOR"in qn&&(Sd=qn.FORCE_COLOR.length===0||parseInt(qn.FORCE_COLOR,10)!==0);function jBe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function BBe(e){if(Sd===!1)return 0;if(oa("color=16m")||oa("color=full")||oa("color=truecolor"))return 3;if(oa("color=256"))return 2;if(e&&!e.isTTY&&Sd!==!0)return 0;let r=Sd?1:0;if(process.platform==="win32"){let n=qBe.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in qn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in qn)||qn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in qn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(qn.TEAMCITY_VERSION)?1:0;if(qn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in qn){let n=parseInt((qn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(qn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(qn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(qn.TERM)||"COLORTERM"in qn?1:(qn.TERM==="dumb",r)}function nk(e){let r=BBe(e);return jBe(r)}PQ.exports={supportsColor:nk,stdout:nk(process.stdout),stderr:nk(process.stderr)}});var kQ=S((uLt,IQ)=>{"use strict";var UBe=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,RQ=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,GBe=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,WBe=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,HBe=new Map([["n",` -`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function OQ(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):HBe.get(e)||e}function zBe(e,r){let n=[],i=r.trim().split(/\s*,\s*/g),a;for(let o of i)if(!isNaN(o))n.push(Number(o));else if(a=o.match(GBe))n.push(a[2].replace(WBe,(c,u,l)=>u?OQ(u):l));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return n}function VBe(e){RQ.lastIndex=0;let r=[],n;for(;(n=RQ.exec(e))!==null;){let i=n[1];if(n[2]){let a=zBe(i,n[2]);r.push([i].concat(a))}else r.push([i])}return r}function AQ(e,r){let n={};for(let a of r)for(let o of a.styles)n[o[0]]=a.inverse?null:o.slice(1);let i=e;for(let a of Object.keys(n))if(Array.isArray(n[a])){if(!(a in i))throw new Error(`Unknown Chalk style: ${a}`);n[a].length>0?i=i[a].apply(i,n[a]):i=i[a]}return i}IQ.exports=(e,r)=>{let n=[],i=[],a=[];if(r.replace(UBe,(o,c,u,l,f,p)=>{if(c)a.push(OQ(c));else if(l){let g=a.join("");a=[],i.push(n.length===0?g:AQ(e,n)(g)),n.push({inverse:u,styles:VBe(l)})}else if(f){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(AQ(e,n)(a.join(""))),a=[],n.pop()}else a.push(p)}),i.push(a.join("")),n.length>0){let o=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return i.join("")}});var ak=S((lLt,Ov)=>{"use strict";var sk=pQ(),kr=SQ(),ik=TQ().stdout,YBe=kQ(),$Q=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),LQ=["ansi","ansi","ansi256","ansi16m"],NQ=new Set(["gray"]),Dd=Object.create(null);function FQ(e,r){r=r||{};let n=ik?ik.level:0;e.level=r.level===void 0?n:r.level,e.enabled="enabled"in r?r.enabled:e.level>0}function Av(e){if(!this||!(this instanceof Av)||this.template){let r={};return FQ(r,e),r.template=function(){let n=[].slice.call(arguments);return JBe.apply(null,[r.template].concat(n))},Object.setPrototypeOf(r,Av.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=Av,r.template}FQ(this,e)}$Q&&(kr.blue.open="\x1B[94m");for(let e of Object.keys(kr))kr[e].closeRe=new RegExp(sk(kr[e].close),"g"),Dd[e]={get(){let r=kr[e];return Z_.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}};Dd.visible={get(){return Z_.call(this,this._styles||[],!0,"visible")}};kr.color.closeRe=new RegExp(sk(kr.color.close),"g");for(let e of Object.keys(kr.color.ansi))NQ.has(e)||(Dd[e]={get(){let r=this.level;return function(){let i={open:kr.color[LQ[r]][e].apply(null,arguments),close:kr.color.close,closeRe:kr.color.closeRe};return Z_.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});kr.bgColor.closeRe=new RegExp(sk(kr.bgColor.close),"g");for(let e of Object.keys(kr.bgColor.ansi)){if(NQ.has(e))continue;let r="bg"+e[0].toUpperCase()+e.slice(1);Dd[r]={get(){let n=this.level;return function(){let a={open:kr.bgColor[LQ[n]][e].apply(null,arguments),close:kr.bgColor.close,closeRe:kr.bgColor.closeRe};return Z_.call(this,this._styles?this._styles.concat(a):[a],this._empty,e)}}}}var KBe=Object.defineProperties(()=>{},Dd);function Z_(e,r,n){let i=function(){return XBe.apply(i,arguments)};i._styles=e,i._empty=r;let a=this;return Object.defineProperty(i,"level",{enumerable:!0,get(){return a.level},set(o){a.level=o}}),Object.defineProperty(i,"enabled",{enumerable:!0,get(){return a.enabled},set(o){a.enabled=o}}),i.hasGrey=this.hasGrey||n==="gray"||n==="grey",i.__proto__=KBe,i}function XBe(){let e=arguments,r=e.length,n=String(arguments[0]);if(r===0)return"";if(r>1)for(let a=1;a{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.default=i9e;Iv.shouldHighlight=UQ;var MQ=tQ(),qQ=ek(),ck=QBe(ak(),!0);function jQ(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,n=new WeakMap;return(jQ=function(i){return i?n:r})(e)}function QBe(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=jQ(r);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(i,o,c):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var ZBe=new Set(["as","async","from","get","of","set"]);function e9e(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var t9e=/\r\n|[\n\r\u2028\u2029]/,r9e=/^[()[\]{}]$/,BQ;{let e=/^[a-z][\w-]*$/i,r=function(n,i,a){if(n.type==="name"){if((0,qQ.isKeyword)(n.value)||(0,qQ.isStrictReservedWord)(n.value,!0)||ZBe.has(n.value))return"keyword";if(e.test(n.value)&&(a[i-1]==="<"||a.slice(i-2,i)=="o(c)).join(` -`):n+=a}return n}function UQ(e){return ck.default.level>0||e.forceColor}var ok;function GQ(e){if(e){var r;return(r=ok)!=null||(ok=new ck.default.constructor({enabled:!0,level:1})),ok}return ck.default}Iv.getChalk=e=>GQ(e.forceColor);function i9e(e,r={}){if(e!==""&&UQ(r)){let n=e9e(GQ(r.forceColor));return n9e(n,e)}else return e}});var JQ=S(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.codeFrameColumns=XQ;eE.default=u9e;var HQ=WQ(),zQ=s9e(ak(),!0);function KQ(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,n=new WeakMap;return(KQ=function(i){return i?n:r})(e)}function s9e(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=KQ(r);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var c=a?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(i,o,c):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var uk;function a9e(e){if(e){var r;return(r=uk)!=null||(uk=new zQ.default.constructor({enabled:!0,level:1})),uk}return zQ.default}var VQ=!1;function o9e(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var YQ=/\r\n|[\n\r\u2028\u2029]/;function c9e(e,r,n){let i=Object.assign({column:0,line:-1},e.start),a=Object.assign({},i,e.end),{linesAbove:o=2,linesBelow:c=3}=n||{},u=i.line,l=i.column,f=a.line,p=a.column,g=Math.max(u-(o+1),0),v=Math.min(r.length,f+c);u===-1&&(g=0),f===-1&&(v=r.length);let x=f-u,E={};if(x)for(let D=0;D<=x;D++){let P=D+u;if(!l)E[P]=!0;else if(D===0){let R=r[P-1].length;E[P]=[l,R-l+1]}else if(D===x)E[P]=[0,p];else{let R=r[P-D].length;E[P]=[0,R]}}else l===p?l?E[u]=[l,0]:E[u]=!0:E[u]=[l,p-l];return{start:g,end:v,markerLines:E}}function XQ(e,r,n={}){let i=(n.highlightCode||n.forceColor)&&(0,HQ.shouldHighlight)(n),a=a9e(n.forceColor),o=o9e(a),c=(D,P)=>i?D(P):P,u=e.split(YQ),{start:l,end:f,markerLines:p}=c9e(r,u,n),g=r.start&&typeof r.start.column=="number",v=String(f).length,E=(i?(0,HQ.default)(e,n):e).split(YQ,f).slice(l,f).map((D,P)=>{let R=l+1+P,F=` ${` ${R}`.slice(-v)} |`,L=p[R],U=!p[R+1];if(L){let V="";if(Array.isArray(L)){let j=D.slice(0,Math.max(L[0]-1,0)).replace(/[^\t]/g," "),W=L[1]||1;V=[` - `,c(o.gutter,F.replace(/\d/g," "))," ",j,c(o.marker,"^").repeat(W)].join(""),U&&n.message&&(V+=" "+c(o.message,n.message))}return[c(o.marker,">"),c(o.gutter,F),D.length>0?` ${D}`:"",V].join("")}else return` ${c(o.gutter,F)}${D.length>0?` ${D}`:""}`}).join(` -`);return n.message&&!g&&(E=`${" ".repeat(v+1)}${n.message} -${E}`),i?a.reset(E):E}function u9e(e,r,n,i={}){if(!VQ){VQ=!0;let o="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(o,"DeprecationWarning");else{let c=new Error(o);c.name="DeprecationWarning",console.warn(new Error(o))}}return n=Math.max(n,0),XQ(e,{start:{column:n,line:r}},i)}});var dk=S((vLt,tZ)=>{"use strict";var h9e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};tZ.exports=h9e});var hk=S((yLt,rZ)=>{"use strict";var m9e="2.0.0",g9e=Number.MAX_SAFE_INTEGER||9007199254740991,v9e=16,y9e=250,b9e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rZ.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:v9e,MAX_SAFE_BUILD_LENGTH:y9e,MAX_SAFE_INTEGER:g9e,RELEASE_TYPES:b9e,SEMVER_SPEC_VERSION:m9e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var iZ=S((Uo,nZ)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:mk,MAX_SAFE_BUILD_LENGTH:x9e,MAX_LENGTH:w9e}=hk(),_9e=dk();Uo=nZ.exports={};var E9e=Uo.re=[],S9e=Uo.safeRe=[],ve=Uo.src=[],ye=Uo.t={},D9e=0,gk="[a-zA-Z0-9-]",C9e=[["\\s",1],["\\d",w9e],[gk,x9e]],P9e=e=>{for(let[r,n]of C9e)e=e.split(`${r}*`).join(`${r}{0,${n}}`).split(`${r}+`).join(`${r}{1,${n}}`);return e},je=(e,r,n)=>{let i=P9e(r),a=D9e++;_9e(e,a,r),ye[e]=a,ve[a]=r,E9e[a]=new RegExp(r,n?"g":void 0),S9e[a]=new RegExp(i,n?"g":void 0)};je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","\\d+");je("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${gk}*`);je("MAINVERSION",`(${ve[ye.NUMERICIDENTIFIER]})\\.(${ve[ye.NUMERICIDENTIFIER]})\\.(${ve[ye.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${ve[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ve[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ve[ye.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${ve[ye.NUMERICIDENTIFIER]}|${ve[ye.NONNUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${ve[ye.NUMERICIDENTIFIERLOOSE]}|${ve[ye.NONNUMERICIDENTIFIER]})`);je("PRERELEASE",`(?:-(${ve[ye.PRERELEASEIDENTIFIER]}(?:\\.${ve[ye.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${ve[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ve[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER",`${gk}+`);je("BUILD",`(?:\\+(${ve[ye.BUILDIDENTIFIER]}(?:\\.${ve[ye.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${ve[ye.MAINVERSION]}${ve[ye.PRERELEASE]}?${ve[ye.BUILD]}?`);je("FULL",`^${ve[ye.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${ve[ye.MAINVERSIONLOOSE]}${ve[ye.PRERELEASELOOSE]}?${ve[ye.BUILD]}?`);je("LOOSE",`^${ve[ye.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${ve[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${ve[ye.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${ve[ye.XRANGEIDENTIFIER]})(?:\\.(${ve[ye.XRANGEIDENTIFIER]})(?:\\.(${ve[ye.XRANGEIDENTIFIER]})(?:${ve[ye.PRERELEASE]})?${ve[ye.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${ve[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ve[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ve[ye.XRANGEIDENTIFIERLOOSE]})(?:${ve[ye.PRERELEASELOOSE]})?${ve[ye.BUILD]}?)?)?`);je("XRANGE",`^${ve[ye.GTLT]}\\s*${ve[ye.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${ve[ye.GTLT]}\\s*${ve[ye.XRANGEPLAINLOOSE]}$`);je("COERCEPLAIN",`(^|[^\\d])(\\d{1,${mk}})(?:\\.(\\d{1,${mk}}))?(?:\\.(\\d{1,${mk}}))?`);je("COERCE",`${ve[ye.COERCEPLAIN]}(?:$|[^\\d])`);je("COERCEFULL",ve[ye.COERCEPLAIN]+`(?:${ve[ye.PRERELEASE]})?(?:${ve[ye.BUILD]})?(?:$|[^\\d])`);je("COERCERTL",ve[ye.COERCE],!0);je("COERCERTLFULL",ve[ye.COERCEFULL],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${ve[ye.LONETILDE]}\\s+`,!0);Uo.tildeTrimReplace="$1~";je("TILDE",`^${ve[ye.LONETILDE]}${ve[ye.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${ve[ye.LONETILDE]}${ve[ye.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${ve[ye.LONECARET]}\\s+`,!0);Uo.caretTrimReplace="$1^";je("CARET",`^${ve[ye.LONECARET]}${ve[ye.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${ve[ye.LONECARET]}${ve[ye.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${ve[ye.GTLT]}\\s*(${ve[ye.LOOSEPLAIN]})$|^$`);je("COMPARATOR",`^${ve[ye.GTLT]}\\s*(${ve[ye.FULLPLAIN]})$|^$`);je("COMPARATORTRIM",`(\\s*)${ve[ye.GTLT]}\\s*(${ve[ye.LOOSEPLAIN]}|${ve[ye.XRANGEPLAIN]})`,!0);Uo.comparatorTrimReplace="$1$2$3";je("HYPHENRANGE",`^\\s*(${ve[ye.XRANGEPLAIN]})\\s+-\\s+(${ve[ye.XRANGEPLAIN]})\\s*$`);je("HYPHENRANGELOOSE",`^\\s*(${ve[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ve[ye.XRANGEPLAINLOOSE]})\\s*$`);je("STAR","(<|>)?=?\\s*\\*");je("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");je("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var aZ=S((bLt,sZ)=>{"use strict";var T9e=Object.freeze({loose:!0}),R9e=Object.freeze({}),A9e=e=>e?typeof e!="object"?T9e:e:R9e;sZ.exports=A9e});var lZ=S((xLt,uZ)=>{"use strict";var oZ=/^[0-9]+$/,cZ=(e,r)=>{let n=oZ.test(e),i=oZ.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:ecZ(r,e);uZ.exports={compareIdentifiers:cZ,rcompareIdentifiers:O9e}});var mZ=S((wLt,hZ)=>{"use strict";var rE=dk(),{MAX_LENGTH:fZ,MAX_SAFE_INTEGER:nE}=hk(),{safeRe:pZ,t:dZ}=iZ(),I9e=aZ(),{compareIdentifiers:Pd}=lZ(),vk=class e{constructor(r,n){if(n=I9e(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>fZ)throw new TypeError(`version is longer than ${fZ} characters`);rE("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=r.trim().match(n.loose?pZ[dZ.LOOSE]:pZ[dZ.FULL]);if(!i)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>nE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>nE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>nE||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let o=[n,a];i===!1&&(o=[n]),Pd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};hZ.exports=vk});var yk=S((_Lt,vZ)=>{"use strict";var gZ=mZ(),k9e=(e,r,n=!1)=>{if(e instanceof gZ)return e;try{return new gZ(e,r)}catch(i){if(!n)return null;throw i}};vZ.exports=k9e});var bZ=S((ELt,yZ)=>{"use strict";var F9e=yk(),$9e=(e,r)=>{let n=F9e(e,r);return n?n.version:null};yZ.exports=$9e});var wZ=S((SLt,xZ)=>{"use strict";var L9e=yk(),N9e=(e,r)=>{let n=L9e(e.trim().replace(/^[=v]+/,""),r);return n?n.version:null};xZ.exports=N9e});var iE=S((DLt,M9e)=>{M9e.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIT","MIT-0","MIT-CMU","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var _Z=S((CLt,q9e)=>{q9e.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var SZ=S((PLt,EZ)=>{"use strict";var j9e=[].concat(iE()).concat(iE()),B9e=_Z();EZ.exports=function(e){var r=0;function n(){return r1&&e[r-2]===" ")throw new Error("Space before `+`");return E&&{type:"OPERATOR",string:E}}function c(){return i(/[A-Za-z0-9-.]+/)}function u(){var E=c();if(!E)throw new Error("Expected idstring at offset "+r);return E}function l(){if(i("DocumentRef-")){var E=u();return{type:"DOCUMENTREF",string:E}}}function f(){if(i("LicenseRef-")){var E=u();return{type:"LICENSEREF",string:E}}}function p(){var E=r,D=c();if(j9e.indexOf(D)!==-1)return{type:"LICENSE",string:D};if(B9e.indexOf(D)!==-1)return{type:"EXCEPTION",string:D};r=E}function g(){return o()||l()||f()||p()}for(var v=[];n()&&(a(),!!n());){var x=g();if(!x)throw new Error("Unexpected `"+e[r]+"` at offset "+r);v.push(x)}return v}});var CZ=S((TLt,DZ)=>{"use strict";DZ.exports=function(e){var r=0;function n(){return r{"use strict";var U9e=SZ(),G9e=CZ();PZ.exports=function(e){return G9e(U9e(e))}});var $Z=S((ALt,FZ)=>{"use strict";var W9e=bk(),H9e=iE();function sE(e){try{return W9e(e),!0}catch{return!1}}var TZ=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]],z9e=0,V9e=1,RZ=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],xk=H9e.map(function(e){var r=/^(.*)-\d+\.\d+$/.exec(e);return r?[r[0],r[1]]:[e,null]}).reduce(function(e,r){var n=r[1];return e[n]=e[n]||[],e[n].push(r[0]),e},{}),Y9e=Object.keys(xk).map(function(r){return[r,xk[r]]}).filter(function(r){return r[1].length===1&&r[0]!==null&&r[0]!=="APL"}).map(function(r){return[r[0],r[1][0]]});xk=void 0;var AZ=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(Y9e),K9e=0,X9e=1,OZ=function(e){for(var r=0;r-1)return i[X9e]}return null},kZ=function(e,r){for(var n=0;n-1){var o=e.replace(a,i[V9e]),c=r(o);if(c!==null)return c}}return null};FZ.exports=function(e,r){r=r||{};var n=r.upgrade===void 0?!0:!!r.upgrade;function i(u){return n?J9e(u):u}var a=typeof e=="string"&&e.trim().length!==0;if(!a)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),sE(e))return i(e);var o=e.replace(/\+$/,"").trim();if(sE(o))return i(o);var c=OZ(e);return c!==null||(c=kZ(e,function(u){return sE(u)?u:OZ(u)}),c!==null)||(c=IZ(e),c!==null)||(c=kZ(e,IZ),c!==null)?i(c):null};function J9e(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var qZ=S((OLt,MZ)=>{"use strict";var Q9e=bk(),Z9e=$Z(),LZ='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "',eUe=/^SEE LICEN[CS]E IN (.+)$/;function NZ(e,r){return r.slice(0,e.length)===e}function wk(e){if(e.hasOwnProperty("license")){var r=e.license;return NZ("LicenseRef",r)||NZ("DocumentRef",r)}else return wk(e.left)||wk(e.right)}MZ.exports=function(e){var r;try{r=Q9e(e)}catch{var n;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(n=eUe.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:n[1]};var i={validForOldPackages:!1,validForNewPackages:!1,warnings:[LZ]};if(e.trim().length!==0){var a=Z9e(e);a&&i.warnings.push('license is similar to the valid expression "'+a+'"')}return i}return wk(r)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[LZ]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var VZ=S(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.LRUCache=void 0;var Td=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,GZ=new Set,_k=typeof process=="object"&&process?process:{},WZ=(e,r,n,i)=>{typeof _k.emitWarning=="function"?_k.emitWarning(e,r,n,i):console.error(`[${n}] ${r}: ${e}`)},cE=globalThis.AbortController,jZ=globalThis.AbortSignal;if(typeof cE>"u"){jZ=class{constructor(){Je(this,"onabort");Je(this,"_onabort",[]);Je(this,"reason");Je(this,"aborted",!1)}addEventListener(i,a){this._onabort.push(a)}},cE=class{constructor(){Je(this,"signal",new jZ);r()}abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let a of this.signal._onabort)a(i);this.signal.onabort?.(i)}}};let e=_k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",r=()=>{e&&(e=!1,WZ("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",r))}}var tUe=e=>!GZ.has(e),FLt=Symbol("type"),lu=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),HZ=e=>lu(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Rd:null:null,Rd=class extends Array{constructor(r){super(r),this.fill(0)}},Ad,Ql=class Ql{constructor(r,n){Je(this,"heap");Je(this,"length");if(!$(Ql,Ad))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(r),this.length=0}static create(r){let n=HZ(r);if(!n)return[];fe(Ql,Ad,!0);let i=new Ql(r,n);return fe(Ql,Ad,!1),i}push(r){this.heap[this.length++]=r}pop(){return this.heap[--this.length]}};Ad=new WeakMap,Ee(Ql,Ad,!1);var Ek=Ql,BZ,UZ,ca,Hi,ua,la,Od,Vr,fa,Fr,nr,Me,ai,zi,jn,un,pa,ln,da,ha,Vi,ma,du,oi,be,Dk,Zl,Go,Fv,Yi,zZ,ef,Id,$v,fu,pu,Ck,aE,oE,rr,Pk,kv,Tk=class Tk{constructor(r){Ee(this,be);Ee(this,ca);Ee(this,Hi);Ee(this,ua);Ee(this,la);Ee(this,Od);Je(this,"ttl");Je(this,"ttlResolution");Je(this,"ttlAutopurge");Je(this,"updateAgeOnGet");Je(this,"updateAgeOnHas");Je(this,"allowStale");Je(this,"noDisposeOnSet");Je(this,"noUpdateTTL");Je(this,"maxEntrySize");Je(this,"sizeCalculation");Je(this,"noDeleteOnFetchRejection");Je(this,"noDeleteOnStaleGet");Je(this,"allowStaleOnFetchAbort");Je(this,"allowStaleOnFetchRejection");Je(this,"ignoreFetchAbort");Ee(this,Vr);Ee(this,fa);Ee(this,Fr);Ee(this,nr);Ee(this,Me);Ee(this,ai);Ee(this,zi);Ee(this,jn);Ee(this,un);Ee(this,pa);Ee(this,ln);Ee(this,da);Ee(this,ha);Ee(this,Vi);Ee(this,ma);Ee(this,du);Ee(this,oi);Ee(this,Zl,()=>{});Ee(this,Go,()=>{});Ee(this,Fv,()=>{});Ee(this,Yi,()=>!1);Ee(this,ef,r=>{});Ee(this,Id,(r,n,i)=>{});Ee(this,$v,(r,n,i,a)=>{if(i||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Je(this,BZ,"LRUCache");let{max:n=0,ttl:i,ttlResolution:a=1,ttlAutopurge:o,updateAgeOnGet:c,updateAgeOnHas:u,allowStale:l,dispose:f,disposeAfter:p,noDisposeOnSet:g,noUpdateTTL:v,maxSize:x=0,maxEntrySize:E=0,sizeCalculation:D,fetchMethod:P,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:L,ignoreFetchAbort:U}=r;if(n!==0&&!lu(n))throw new TypeError("max option must be a nonnegative integer");let V=n?HZ(n):Array;if(!V)throw new Error("invalid max value: "+n);if(fe(this,ca,n),fe(this,Hi,x),this.maxEntrySize=E||$(this,Hi),this.sizeCalculation=D,this.sizeCalculation){if(!$(this,Hi)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(P!==void 0&&typeof P!="function")throw new TypeError("fetchMethod must be a function if specified");if(fe(this,Od,P),fe(this,du,!!P),fe(this,Fr,new Map),fe(this,nr,new Array(n).fill(void 0)),fe(this,Me,new Array(n).fill(void 0)),fe(this,ai,new V(n)),fe(this,zi,new V(n)),fe(this,jn,0),fe(this,un,0),fe(this,pa,Ek.create(n)),fe(this,Vr,0),fe(this,fa,0),typeof f=="function"&&fe(this,ua,f),typeof p=="function"?(fe(this,la,p),fe(this,ln,[])):(fe(this,la,void 0),fe(this,ln,void 0)),fe(this,ma,!!$(this,ua)),fe(this,oi,!!$(this,la)),this.noDisposeOnSet=!!g,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!F,this.allowStaleOnFetchAbort=!!L,this.ignoreFetchAbort=!!U,this.maxEntrySize!==0){if($(this,Hi)!==0&&!lu($(this,Hi)))throw new TypeError("maxSize must be a positive integer if specified");if(!lu(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");de(this,be,zZ).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!u,this.ttlResolution=lu(a)||a===0?a:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!lu(this.ttl))throw new TypeError("ttl must be a positive integer if specified");de(this,be,Dk).call(this)}if($(this,ca)===0&&this.ttl===0&&$(this,Hi)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!$(this,ca)&&!$(this,Hi)){let j="LRU_CACHE_UNBOUNDED";tUe(j)&&(GZ.add(j),WZ("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,Tk))}}static unsafeExposeInternals(r){return{starts:$(r,ha),ttls:$(r,Vi),sizes:$(r,da),keyMap:$(r,Fr),keyList:$(r,nr),valList:$(r,Me),next:$(r,ai),prev:$(r,zi),get head(){return $(r,jn)},get tail(){return $(r,un)},free:$(r,pa),isBackgroundFetch:n=>{var i;return de(i=r,be,rr).call(i,n)},backgroundFetch:(n,i,a,o)=>{var c;return de(c=r,be,oE).call(c,n,i,a,o)},moveToTail:n=>{var i;return de(i=r,be,kv).call(i,n)},indexes:n=>{var i;return de(i=r,be,fu).call(i,n)},rindexes:n=>{var i;return de(i=r,be,pu).call(i,n)},isStale:n=>{var i;return $(i=r,Yi).call(i,n)}}}get max(){return $(this,ca)}get maxSize(){return $(this,Hi)}get calculatedSize(){return $(this,fa)}get size(){return $(this,Vr)}get fetchMethod(){return $(this,Od)}get dispose(){return $(this,ua)}get disposeAfter(){return $(this,la)}getRemainingTTL(r){return $(this,Fr).has(r)?1/0:0}*entries(){for(let r of de(this,be,fu).call(this))$(this,Me)[r]!==void 0&&$(this,nr)[r]!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield[$(this,nr)[r],$(this,Me)[r]])}*rentries(){for(let r of de(this,be,pu).call(this))$(this,Me)[r]!==void 0&&$(this,nr)[r]!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield[$(this,nr)[r],$(this,Me)[r]])}*keys(){for(let r of de(this,be,fu).call(this)){let n=$(this,nr)[r];n!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield n)}}*rkeys(){for(let r of de(this,be,pu).call(this)){let n=$(this,nr)[r];n!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield n)}}*values(){for(let r of de(this,be,fu).call(this))$(this,Me)[r]!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield $(this,Me)[r])}*rvalues(){for(let r of de(this,be,pu).call(this))$(this,Me)[r]!==void 0&&!de(this,be,rr).call(this,$(this,Me)[r])&&(yield $(this,Me)[r])}[(UZ=Symbol.iterator,BZ=Symbol.toStringTag,UZ)](){return this.entries()}find(r,n={}){for(let i of de(this,be,fu).call(this)){let a=$(this,Me)[i],o=de(this,be,rr).call(this,a)?a.__staleWhileFetching:a;if(o!==void 0&&r(o,$(this,nr)[i],this))return this.get($(this,nr)[i],n)}}forEach(r,n=this){for(let i of de(this,be,fu).call(this)){let a=$(this,Me)[i],o=de(this,be,rr).call(this,a)?a.__staleWhileFetching:a;o!==void 0&&r.call(n,o,$(this,nr)[i],this)}}rforEach(r,n=this){for(let i of de(this,be,pu).call(this)){let a=$(this,Me)[i],o=de(this,be,rr).call(this,a)?a.__staleWhileFetching:a;o!==void 0&&r.call(n,o,$(this,nr)[i],this)}}purgeStale(){let r=!1;for(let n of de(this,be,pu).call(this,{allowStale:!0}))$(this,Yi).call(this,n)&&(this.delete($(this,nr)[n]),r=!0);return r}info(r){let n=$(this,Fr).get(r);if(n===void 0)return;let i=$(this,Me)[n],a=de(this,be,rr).call(this,i)?i.__staleWhileFetching:i;if(a===void 0)return;let o={value:a};if($(this,Vi)&&$(this,ha)){let c=$(this,Vi)[n],u=$(this,ha)[n];if(c&&u){let l=c-(Td.now()-u);o.ttl=l,o.start=Date.now()}}return $(this,da)&&(o.size=$(this,da)[n]),o}dump(){let r=[];for(let n of de(this,be,fu).call(this,{allowStale:!0})){let i=$(this,nr)[n],a=$(this,Me)[n],o=de(this,be,rr).call(this,a)?a.__staleWhileFetching:a;if(o===void 0||i===void 0)continue;let c={value:o};if($(this,Vi)&&$(this,ha)){c.ttl=$(this,Vi)[n];let u=Td.now()-$(this,ha)[n];c.start=Math.floor(Date.now()-u)}$(this,da)&&(c.size=$(this,da)[n]),r.unshift([i,c])}return r}load(r){this.clear();for(let[n,i]of r){if(i.start){let a=Date.now()-i.start;i.start=Td.now()-a}this.set(n,i.value,i)}}set(r,n,i={}){var v,x,E;if(n===void 0)return this.delete(r),this;let{ttl:a=this.ttl,start:o,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:l}=i,{noUpdateTTL:f=this.noUpdateTTL}=i,p=$(this,$v).call(this,r,n,i.size||0,u);if(this.maxEntrySize&&p>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(r),this;let g=$(this,Vr)===0?void 0:$(this,Fr).get(r);if(g===void 0)g=$(this,Vr)===0?$(this,un):$(this,pa).length!==0?$(this,pa).pop():$(this,Vr)===$(this,ca)?de(this,be,aE).call(this,!1):$(this,Vr),$(this,nr)[g]=r,$(this,Me)[g]=n,$(this,Fr).set(r,g),$(this,ai)[$(this,un)]=g,$(this,zi)[g]=$(this,un),fe(this,un,g),Ic(this,Vr)._++,$(this,Id).call(this,g,p,l),l&&(l.set="add"),f=!1;else{de(this,be,kv).call(this,g);let D=$(this,Me)[g];if(n!==D){if($(this,du)&&de(this,be,rr).call(this,D)){D.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:P}=D;P!==void 0&&!c&&($(this,ma)&&((v=$(this,ua))==null||v.call(this,P,r,"set")),$(this,oi)&&$(this,ln)?.push([P,r,"set"]))}else c||($(this,ma)&&((x=$(this,ua))==null||x.call(this,D,r,"set")),$(this,oi)&&$(this,ln)?.push([D,r,"set"]));if($(this,ef).call(this,g),$(this,Id).call(this,g,p,l),$(this,Me)[g]=n,l){l.set="replace";let P=D&&de(this,be,rr).call(this,D)?D.__staleWhileFetching:D;P!==void 0&&(l.oldValue=P)}}else l&&(l.set="update")}if(a!==0&&!$(this,Vi)&&de(this,be,Dk).call(this),$(this,Vi)&&(f||$(this,Fv).call(this,g,a,o),l&&$(this,Go).call(this,l,g)),!c&&$(this,oi)&&$(this,ln)){let D=$(this,ln),P;for(;P=D?.shift();)(E=$(this,la))==null||E.call(this,...P)}return this}pop(){var r;try{for(;$(this,Vr);){let n=$(this,Me)[$(this,jn)];if(de(this,be,aE).call(this,!0),de(this,be,rr).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if($(this,oi)&&$(this,ln)){let n=$(this,ln),i;for(;i=n?.shift();)(r=$(this,la))==null||r.call(this,...i)}}}has(r,n={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:a}=n,o=$(this,Fr).get(r);if(o!==void 0){let c=$(this,Me)[o];if(de(this,be,rr).call(this,c)&&c.__staleWhileFetching===void 0)return!1;if($(this,Yi).call(this,o))a&&(a.has="stale",$(this,Go).call(this,a,o));else return i&&$(this,Zl).call(this,o),a&&(a.has="hit",$(this,Go).call(this,a,o)),!0}else a&&(a.has="miss");return!1}peek(r,n={}){let{allowStale:i=this.allowStale}=n,a=$(this,Fr).get(r);if(a===void 0||!i&&$(this,Yi).call(this,a))return;let o=$(this,Me)[a];return de(this,be,rr).call(this,o)?o.__staleWhileFetching:o}async fetch(r,n={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:c=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:l=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:x=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:D,forceRefresh:P=!1,status:R,signal:k}=n;if(!$(this,du))return R&&(R.fetch="get"),this.get(r,{allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:o,status:R});let F={allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:o,ttl:c,noDisposeOnSet:u,size:l,sizeCalculation:f,noUpdateTTL:p,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:E,ignoreFetchAbort:x,status:R,signal:k},L=$(this,Fr).get(r);if(L===void 0){R&&(R.fetch="miss");let U=de(this,be,oE).call(this,r,L,F,D);return U.__returned=U}else{let U=$(this,Me)[L];if(de(this,be,rr).call(this,U)){let X=i&&U.__staleWhileFetching!==void 0;return R&&(R.fetch="inflight",X&&(R.returnedStale=!0)),X?U.__staleWhileFetching:U.__returned=U}let V=$(this,Yi).call(this,L);if(!P&&!V)return R&&(R.fetch="hit"),de(this,be,kv).call(this,L),a&&$(this,Zl).call(this,L),R&&$(this,Go).call(this,R,L),U;let j=de(this,be,oE).call(this,r,L,F,D),q=j.__staleWhileFetching!==void 0&&i;return R&&(R.fetch=V?"stale":"refresh",q&&V&&(R.returnedStale=!0)),q?j.__staleWhileFetching:j.__returned=j}}get(r,n={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:c}=n,u=$(this,Fr).get(r);if(u!==void 0){let l=$(this,Me)[u],f=de(this,be,rr).call(this,l);return c&&$(this,Go).call(this,c,u),$(this,Yi).call(this,u)?(c&&(c.get="stale"),f?(c&&i&&l.__staleWhileFetching!==void 0&&(c.returnedStale=!0),i?l.__staleWhileFetching:void 0):(o||this.delete(r),c&&i&&(c.returnedStale=!0),i?l:void 0)):(c&&(c.get="hit"),f?l.__staleWhileFetching:(de(this,be,kv).call(this,u),a&&$(this,Zl).call(this,u),l))}else c&&(c.get="miss")}delete(r){var i,a;let n=!1;if($(this,Vr)!==0){let o=$(this,Fr).get(r);if(o!==void 0)if(n=!0,$(this,Vr)===1)this.clear();else{$(this,ef).call(this,o);let c=$(this,Me)[o];if(de(this,be,rr).call(this,c)?c.__abortController.abort(new Error("deleted")):($(this,ma)||$(this,oi))&&($(this,ma)&&((i=$(this,ua))==null||i.call(this,c,r,"delete")),$(this,oi)&&$(this,ln)?.push([c,r,"delete"])),$(this,Fr).delete(r),$(this,nr)[o]=void 0,$(this,Me)[o]=void 0,o===$(this,un))fe(this,un,$(this,zi)[o]);else if(o===$(this,jn))fe(this,jn,$(this,ai)[o]);else{let u=$(this,zi)[o];$(this,ai)[u]=$(this,ai)[o];let l=$(this,ai)[o];$(this,zi)[l]=$(this,zi)[o]}Ic(this,Vr)._--,$(this,pa).push(o)}}if($(this,oi)&&$(this,ln)?.length){let o=$(this,ln),c;for(;c=o?.shift();)(a=$(this,la))==null||a.call(this,...c)}return n}clear(){var r,n;for(let i of de(this,be,pu).call(this,{allowStale:!0})){let a=$(this,Me)[i];if(de(this,be,rr).call(this,a))a.__abortController.abort(new Error("deleted"));else{let o=$(this,nr)[i];$(this,ma)&&((r=$(this,ua))==null||r.call(this,a,o,"delete")),$(this,oi)&&$(this,ln)?.push([a,o,"delete"])}}if($(this,Fr).clear(),$(this,Me).fill(void 0),$(this,nr).fill(void 0),$(this,Vi)&&$(this,ha)&&($(this,Vi).fill(0),$(this,ha).fill(0)),$(this,da)&&$(this,da).fill(0),fe(this,jn,0),fe(this,un,0),$(this,pa).length=0,fe(this,fa,0),fe(this,Vr,0),$(this,oi)&&$(this,ln)){let i=$(this,ln),a;for(;a=i?.shift();)(n=$(this,la))==null||n.call(this,...a)}}};ca=new WeakMap,Hi=new WeakMap,ua=new WeakMap,la=new WeakMap,Od=new WeakMap,Vr=new WeakMap,fa=new WeakMap,Fr=new WeakMap,nr=new WeakMap,Me=new WeakMap,ai=new WeakMap,zi=new WeakMap,jn=new WeakMap,un=new WeakMap,pa=new WeakMap,ln=new WeakMap,da=new WeakMap,ha=new WeakMap,Vi=new WeakMap,ma=new WeakMap,du=new WeakMap,oi=new WeakMap,be=new WeakSet,Dk=function(){let r=new Rd($(this,ca)),n=new Rd($(this,ca));fe(this,Vi,r),fe(this,ha,n),fe(this,Fv,(o,c,u=Td.now())=>{if(n[o]=c!==0?u:0,r[o]=c,c!==0&&this.ttlAutopurge){let l=setTimeout(()=>{$(this,Yi).call(this,o)&&this.delete($(this,nr)[o])},c+1);l.unref&&l.unref()}}),fe(this,Zl,o=>{n[o]=r[o]!==0?Td.now():0}),fe(this,Go,(o,c)=>{if(r[c]){let u=r[c],l=n[c];if(!u||!l)return;o.ttl=u,o.start=l,o.now=i||a();let f=o.now-l;o.remainingTTL=u-f}});let i=0,a=()=>{let o=Td.now();if(this.ttlResolution>0){i=o;let c=setTimeout(()=>i=0,this.ttlResolution);c.unref&&c.unref()}return o};this.getRemainingTTL=o=>{let c=$(this,Fr).get(o);if(c===void 0)return 0;let u=r[c],l=n[c];if(!u||!l)return 1/0;let f=(i||a())-l;return u-f},fe(this,Yi,o=>{let c=n[o],u=r[o];return!!u&&!!c&&(i||a())-c>u})},Zl=new WeakMap,Go=new WeakMap,Fv=new WeakMap,Yi=new WeakMap,zZ=function(){let r=new Rd($(this,ca));fe(this,fa,0),fe(this,da,r),fe(this,ef,n=>{fe(this,fa,$(this,fa)-r[n]),r[n]=0}),fe(this,$v,(n,i,a,o)=>{if(de(this,be,rr).call(this,i))return 0;if(!lu(a))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(a=o(i,n),!lu(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a}),fe(this,Id,(n,i,a)=>{if(r[n]=i,$(this,Hi)){let o=$(this,Hi)-r[n];for(;$(this,fa)>o;)de(this,be,aE).call(this,!0)}fe(this,fa,$(this,fa)+r[n]),a&&(a.entrySize=i,a.totalCalculatedSize=$(this,fa))})},ef=new WeakMap,Id=new WeakMap,$v=new WeakMap,fu=function*({allowStale:r=this.allowStale}={}){if($(this,Vr))for(let n=$(this,un);!(!de(this,be,Ck).call(this,n)||((r||!$(this,Yi).call(this,n))&&(yield n),n===$(this,jn)));)n=$(this,zi)[n]},pu=function*({allowStale:r=this.allowStale}={}){if($(this,Vr))for(let n=$(this,jn);!(!de(this,be,Ck).call(this,n)||((r||!$(this,Yi).call(this,n))&&(yield n),n===$(this,un)));)n=$(this,ai)[n]},Ck=function(r){return r!==void 0&&$(this,Fr).get($(this,nr)[r])===r},aE=function(r){var o;let n=$(this,jn),i=$(this,nr)[n],a=$(this,Me)[n];return $(this,du)&&de(this,be,rr).call(this,a)?a.__abortController.abort(new Error("evicted")):($(this,ma)||$(this,oi))&&($(this,ma)&&((o=$(this,ua))==null||o.call(this,a,i,"evict")),$(this,oi)&&$(this,ln)?.push([a,i,"evict"])),$(this,ef).call(this,n),r&&($(this,nr)[n]=void 0,$(this,Me)[n]=void 0,$(this,pa).push(n)),$(this,Vr)===1?(fe(this,jn,fe(this,un,0)),$(this,pa).length=0):fe(this,jn,$(this,ai)[n]),$(this,Fr).delete(i),Ic(this,Vr)._--,n},oE=function(r,n,i,a){let o=n===void 0?void 0:$(this,Me)[n];if(de(this,be,rr).call(this,o))return o;let c=new cE,{signal:u}=i;u?.addEventListener("abort",()=>c.abort(u.reason),{signal:c.signal});let l={signal:c.signal,options:i,context:a},f=(D,P=!1)=>{let{aborted:R}=c.signal,k=i.ignoreFetchAbort&&D!==void 0;if(i.status&&(R&&!P?(i.status.fetchAborted=!0,i.status.fetchError=c.signal.reason,k&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),R&&!k&&!P)return g(c.signal.reason);let F=x;return $(this,Me)[n]===x&&(D===void 0?F.__staleWhileFetching?$(this,Me)[n]=F.__staleWhileFetching:this.delete(r):(i.status&&(i.status.fetchUpdated=!0),this.set(r,D,l.options))),D},p=D=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=D),g(D)),g=D=>{let{aborted:P}=c.signal,R=P&&i.allowStaleOnFetchAbort,k=R||i.allowStaleOnFetchRejection,F=k||i.noDeleteOnFetchRejection,L=x;if($(this,Me)[n]===x&&(!F||L.__staleWhileFetching===void 0?this.delete(r):R||($(this,Me)[n]=L.__staleWhileFetching)),k)return i.status&&L.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),L.__staleWhileFetching;if(L.__returned===L)throw D},v=(D,P)=>{var k;let R=(k=$(this,Od))==null?void 0:k.call(this,r,o,l);R&&R instanceof Promise&&R.then(F=>D(F===void 0?void 0:F),P),c.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(D(void 0),i.allowStaleOnFetchAbort&&(D=F=>f(F,!0)))})};i.status&&(i.status.fetchDispatched=!0);let x=new Promise(v).then(f,p),E=Object.assign(x,{__abortController:c,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(r,E,{...l.options,status:void 0}),n=$(this,Fr).get(r)):$(this,Me)[n]=E,E},rr=function(r){if(!$(this,du))return!1;let n=r;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof cE},Pk=function(r,n){$(this,zi)[n]=r,$(this,ai)[r]=n},kv=function(r){r!==$(this,un)&&(r===$(this,jn)?fe(this,jn,$(this,ai)[r]):de(this,be,Pk).call(this,$(this,zi)[r],$(this,ai)[r]),de(this,be,Pk).call(this,$(this,un),r),fe(this,un,r))};var Sk=Tk;uE.LRUCache=Sk});var XZ=S((NLt,KZ)=>{"use strict";var gt=(...e)=>e.every(r=>r)?e.join(""):"",$r=e=>e?encodeURIComponent(e):"",YZ=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),rUe={sshtemplate:({domain:e,user:r,project:n,committish:i})=>`git@${e}:${r}/${n}.git${gt("#",i)}`,sshurltemplate:({domain:e,user:r,project:n,committish:i})=>`git+ssh://git@${e}/${r}/${n}.git${gt("#",i)}`,edittemplate:({domain:e,user:r,project:n,committish:i,editpath:a,path:o})=>`https://${e}/${r}/${n}${gt("/",a,"/",$r(i||"HEAD"),"/",o)}`,browsetemplate:({domain:e,user:r,project:n,committish:i,treepath:a})=>`https://${e}/${r}/${n}${gt("/",a,"/",$r(i))}`,browsetreetemplate:({domain:e,user:r,project:n,committish:i,treepath:a,path:o,fragment:c,hashformat:u})=>`https://${e}/${r}/${n}/${a}/${$r(i||"HEAD")}/${o}${gt("#",u(c||""))}`,browseblobtemplate:({domain:e,user:r,project:n,committish:i,blobpath:a,path:o,fragment:c,hashformat:u})=>`https://${e}/${r}/${n}/${a}/${$r(i||"HEAD")}/${o}${gt("#",u(c||""))}`,docstemplate:({domain:e,user:r,project:n,treepath:i,committish:a})=>`https://${e}/${r}/${n}${gt("/",i,"/",$r(a))}#readme`,httpstemplate:({auth:e,domain:r,user:n,project:i,committish:a})=>`git+https://${gt(e,"@")}${r}/${n}/${i}.git${gt("#",a)}`,filetemplate:({domain:e,user:r,project:n,committish:i,path:a})=>`https://${e}/${r}/${n}/raw/${$r(i||"HEAD")}/${a}`,shortcuttemplate:({type:e,user:r,project:n,committish:i})=>`${e}:${r}/${n}${gt("#",i)}`,pathtemplate:({user:e,project:r,committish:n})=>`${e}/${r}${gt("#",n)}`,bugstemplate:({domain:e,user:r,project:n})=>`https://${e}/${r}/${n}/issues`,hashformat:YZ},hu={};hu.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:r,project:n,committish:i,path:a})=>`https://${gt(e,"@")}raw.githubusercontent.com/${r}/${n}/${$r(i||"HEAD")}/${a}`,gittemplate:({auth:e,domain:r,user:n,project:i,committish:a})=>`git://${gt(e,"@")}${r}/${n}/${i}.git${gt("#",a)}`,tarballtemplate:({domain:e,user:r,project:n,committish:i})=>`https://codeload.${e}/${r}/${n}/tar.gz/${$r(i||"HEAD")}`,extract:e=>{let[,r,n,i,a]=e.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(a=e.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!r||!n)))return{user:r,project:n,committish:a}}};hu.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:r,project:n,committish:i,treepath:a,path:o,editpath:c})=>`https://${e}/${r}/${n}${gt("/",a,"/",$r(i||"HEAD"),"/",o,c)}`,tarballtemplate:({domain:e,user:r,project:n,committish:i})=>`https://${e}/${r}/${n}/get/${$r(i||"HEAD")}.tar.gz`,extract:e=>{let[,r,n,i]=e.pathname.split("/",4);if(!["get"].includes(i)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!r||!n)))return{user:r,project:n,committish:e.hash.slice(1)}}};hu.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:r,user:n,project:i,committish:a})=>`git+https://${gt(e,"@")}${r}/${n}/${i}.git${gt("#",a)}`,tarballtemplate:({domain:e,user:r,project:n,committish:i})=>`https://${e}/${r}/${n}/repository/archive.tar.gz?ref=${$r(i||"HEAD")}`,extract:e=>{let r=e.pathname.slice(1);if(r.includes("/-/")||r.includes("/archive.tar.gz"))return;let n=r.split("/"),i=n.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let a=n.join("/");if(!(!a||!i))return{user:a,project:i,committish:e.hash.slice(1)}}};hu.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:r,committish:n})=>`git@${e}:${r}.git${gt("#",n)}`,sshurltemplate:({domain:e,project:r,committish:n})=>`git+ssh://git@${e}/${r}.git${gt("#",n)}`,edittemplate:({domain:e,user:r,project:n,committish:i,editpath:a})=>`https://${e}/${r}/${n}${gt("/",$r(i))}/${a}`,browsetemplate:({domain:e,project:r,committish:n})=>`https://${e}/${r}${gt("/",$r(n))}`,browsetreetemplate:({domain:e,project:r,committish:n,path:i,hashformat:a})=>`https://${e}/${r}${gt("/",$r(n))}${gt("#",a(i))}`,browseblobtemplate:({domain:e,project:r,committish:n,path:i,hashformat:a})=>`https://${e}/${r}${gt("/",$r(n))}${gt("#",a(i))}`,docstemplate:({domain:e,project:r,committish:n})=>`https://${e}/${r}${gt("/",$r(n))}`,httpstemplate:({domain:e,project:r,committish:n})=>`git+https://${e}/${r}.git${gt("#",n)}`,filetemplate:({user:e,project:r,committish:n,path:i})=>`https://gist.githubusercontent.com/${e}/${r}/raw${gt("/",$r(n))}/${i}`,shortcuttemplate:({type:e,project:r,committish:n})=>`${e}:${r}${gt("#",n)}`,pathtemplate:({project:e,committish:r})=>`${e}${gt("#",r)}`,bugstemplate:({domain:e,project:r})=>`https://${e}/${r}`,gittemplate:({domain:e,project:r,committish:n})=>`git://${e}/${r}.git${gt("#",n)}`,tarballtemplate:({project:e,committish:r})=>`https://codeload.github.com/gist/${e}/tar.gz/${$r(r||"HEAD")}`,extract:e=>{let[,r,n,i]=e.pathname.split("/",4);if(i!=="raw"){if(!n){if(!r)return;n=r,r=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:r,project:n,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+YZ(e)}};hu.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:r,project:n,committish:i,path:a})=>`https://${e}/${r}/${n}/blob/${$r(i)||"HEAD"}/${a}`,httpstemplate:({domain:e,user:r,project:n,committish:i})=>`https://${e}/${r}/${n}.git${gt("#",i)}`,tarballtemplate:({domain:e,user:r,project:n,committish:i})=>`https://${e}/${r}/${n}/archive/${$r(i)||"HEAD"}.tar.gz`,bugstemplate:({user:e,project:r})=>null,extract:e=>{let[,r,n,i]=e.pathname.split("/",4);if(!["archive"].includes(i)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!r||!n)))return{user:r,project:n,committish:e.hash.slice(1)}}};for(let[e,r]of Object.entries(hu))hu[e]=Object.assign({},rUe,r);KZ.exports=hu});var Ak=S((MLt,QZ)=>{"use strict";var nUe=require("url"),Rk=(e,r,n)=>{let i=e.indexOf(n);return e.lastIndexOf(r,i>-1?i:1/0)},JZ=e=>{try{return new nUe.URL(e)}catch{}},iUe=(e,r)=>{let n=e.indexOf(":"),i=e.slice(0,n+1);if(Object.prototype.hasOwnProperty.call(r,i))return e;let a=e.indexOf("@");return a>-1?a>n?`git+ssh://${e}`:e:e.indexOf("//")===n+1?e:`${e.slice(0,n+1)}//${e.slice(n+1)}`},sUe=e=>{let r=Rk(e,"@","#"),n=Rk(e,":","#");return n>r&&(e=e.slice(0,n)+"/"+e.slice(n+1)),Rk(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};QZ.exports=(e,r)=>{let n=r?iUe(e,r):e;return JZ(n)||JZ(sUe(n))}});var eee=S((qLt,ZZ)=>{"use strict";var aUe=Ak(),oUe=e=>{let r=e.indexOf("#"),n=e.indexOf("/"),i=e.indexOf("/",n+1),a=e.indexOf(":"),o=/\s/.exec(e),c=e.indexOf("@"),u=!o||r>-1&&o.index>r,l=c===-1||r>-1&&c>r,f=a===-1||r>-1&&a>r,p=i===-1||r>-1&&i>r,g=n>0,v=r>-1?e[r-1]!=="/":!e.endsWith("/"),x=!e.startsWith(".");return u&&g&&v&&x&&l&&f&&p};ZZ.exports=(e,r,{gitHosts:n,protocols:i})=>{if(!e)return;let a=oUe(e)?`github:${e}`:e,o=aUe(a,i);if(!o)return;let c=n.byShortcut[o.protocol],u=n.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],l=c||u;if(!l)return;let f=n[c||u],p=null;i[o.protocol]?.auth&&(o.username||o.password)&&(p=`${o.username}${o.password?":"+o.password:""}`);let g=null,v=null,x=null,E=null;try{if(c){let D=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,P=D.indexOf("@");P>-1&&(D=D.slice(P+1));let R=D.lastIndexOf("/");R>-1?(v=decodeURIComponent(D.slice(0,R)),v||(v=null),x=decodeURIComponent(D.slice(R+1))):x=decodeURIComponent(D),x.endsWith(".git")&&(x=x.slice(0,-4)),o.hash&&(g=decodeURIComponent(o.hash.slice(1))),E="shortcut"}else{if(!f.protocols.includes(o.protocol))return;let D=f.extract(o);if(!D)return;v=D.user&&decodeURIComponent(D.user),x=decodeURIComponent(D.project),g=decodeURIComponent(D.committish),E=i[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(D){if(D instanceof URIError)return;throw D}return[l,v,p,x,g,E,r]}});var ree=S((jLt,tee)=>{"use strict";var{LRUCache:cUe}=VZ(),uUe=XZ(),lUe=eee(),fUe=Ak(),Ok=new cUe({max:1e3}),mu,Lv,Yr,Pn,Ds=class Ds{constructor(r,n,i,a,o,c,u={}){Ee(this,Yr);Object.assign(this,$(Ds,mu)[r],{type:r,user:n,auth:i,project:a,committish:o,default:c,opts:u})}static addHost(r,n){$(Ds,mu)[r]=n,$(Ds,mu).byDomain[n.domain]=r,$(Ds,mu).byShortcut[`${r}:`]=r,$(Ds,Lv)[`${r}:`]={name:r}}static fromUrl(r,n){if(typeof r!="string")return;let i=r+JSON.stringify(n||{});if(!Ok.has(i)){let a=lUe(r,n,{gitHosts:$(Ds,mu),protocols:$(Ds,Lv)});Ok.set(i,a?new Ds(...a):void 0)}return Ok.get(i)}static parseUrl(r){return fUe(r)}hash(){return this.committish?`#${this.committish}`:""}ssh(r){return de(this,Yr,Pn).call(this,this.sshtemplate,r)}sshurl(r){return de(this,Yr,Pn).call(this,this.sshurltemplate,r)}browse(r,...n){return typeof r!="string"?de(this,Yr,Pn).call(this,this.browsetemplate,r):typeof n[0]!="string"?de(this,Yr,Pn).call(this,this.browsetreetemplate,{...n[0],path:r}):de(this,Yr,Pn).call(this,this.browsetreetemplate,{...n[1],fragment:n[0],path:r})}browseFile(r,...n){return typeof n[0]!="string"?de(this,Yr,Pn).call(this,this.browseblobtemplate,{...n[0],path:r}):de(this,Yr,Pn).call(this,this.browseblobtemplate,{...n[1],fragment:n[0],path:r})}docs(r){return de(this,Yr,Pn).call(this,this.docstemplate,r)}bugs(r){return de(this,Yr,Pn).call(this,this.bugstemplate,r)}https(r){return de(this,Yr,Pn).call(this,this.httpstemplate,r)}git(r){return de(this,Yr,Pn).call(this,this.gittemplate,r)}shortcut(r){return de(this,Yr,Pn).call(this,this.shortcuttemplate,r)}path(r){return de(this,Yr,Pn).call(this,this.pathtemplate,r)}tarball(r){return de(this,Yr,Pn).call(this,this.tarballtemplate,{...r,noCommittish:!1})}file(r,n){return de(this,Yr,Pn).call(this,this.filetemplate,{...n,path:r})}edit(r,n){return de(this,Yr,Pn).call(this,this.edittemplate,{...n,path:r})}getDefaultRepresentation(){return this.default}toString(r){return this.default&&typeof this[this.default]=="function"?this[this.default](r):this.sshurl(r)}};mu=new WeakMap,Lv=new WeakMap,Yr=new WeakSet,Pn=function(r,n){if(typeof r!="function")return null;let i={...this,...this.opts,...n};i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let a=r(i);return i.noGitPlus&&a.startsWith("git+")?a.slice(4):a},Ee(Ds,mu,{byShortcut:{},byDomain:{}}),Ee(Ds,Lv,{"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}});var lE=Ds;for(let[e,r]of Object.entries(uUe))lE.addHost(e,r);tee.exports=lE});var see=S((ULt,iee)=>{"use strict";var pUe="Function.prototype.bind called on incompatible ",dUe=Object.prototype.toString,hUe=Math.max,mUe="[object Function]",nee=function(r,n){for(var i=[],a=0;a{"use strict";var yUe=see();aee.exports=Function.prototype.bind||yUe});var uee=S((WLt,cee)=>{"use strict";var bUe=Function.prototype.call,xUe=Object.prototype.hasOwnProperty,wUe=oee();cee.exports=wUe.call(bUe,xUe)});var lee=S((HLt,_Ue)=>{_Ue.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var kd=S((zLt,dee)=>{"use strict";var EUe=uee();function SUe(e,r){for(var n=e.split("."),i=r.split(" "),a=i.length>1?i[0]:"=",o=(i.length>1?i[1]:i[0]).split("."),c=0;c<3;++c){var u=parseInt(n[c]||0,10),l=parseInt(o[c]||0,10);if(u!==l)return a==="<"?u="?u>=l:!1}return a===">="}function fee(e,r){var n=r.split(/ ?&& ?/);if(n.length===0)return!1;for(var i=0;i"u"?process.versions&&process.versions.node:e;if(typeof n!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(r&&typeof r=="object"){for(var i=0;i{"use strict";hee.exports=CUe;function CUe(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(` -`);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;let n=e.length,i=r+1;for(;i{PUe.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var xee=S((KLt,bee)=>{"use strict";var TUe=bZ(),RUe=wZ(),AUe=qZ(),fE=ree(),OUe=kd(),IUe=["dependencies","devDependencies","optionalDependencies"],kUe=mee(),Ik=require("url"),gu=gee(),vee=e=>e.includes("@")&&e.indexOf("@")"u"&&(r={});var n=r.strict;if(!e.name&&!n){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");n||(e.name=e.name.trim()),LUe(e.name,n,r.allowLegacyCase),OUe(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=kUe(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var r=fE.fromUrl(e.repository.url);r&&r.bugs()&&(e.bugs={url:r.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")vee(e.bugs)?e.bugs={email:e.bugs}:Ik.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{UUe(e.bugs,this.warn);var n=e.bugs;e.bugs={},n.url&&(typeof n.url=="string"&&Ik.parse(n.url).protocol?e.bugs.url=n.url:this.warn("nonUrlBugsUrlField")),n.email&&(typeof n.email=="string"&&vee(n.email)?e.bugs.email=n.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var r=fE.fromUrl(e.repository.url);r&&r.docs()&&(e.homepage=r.docs())}if(e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Ik.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let r=e.license||e.licence;if(!r)return this.warn("missingLicense");if(typeof r!="string"||r.length<1||r.trim()==="")return this.warn("invalidLicense");if(!AUe(r).validForNewPackages)return this.warn("invalidLicense")}};function FUe(e){if(e.charAt(0)!=="@")return!1;var r=e.slice(1).split("/");return r.length!==2?!1:r[0]&&r[1]&&r[0]===encodeURIComponent(r[0])&&r[1]===encodeURIComponent(r[1])}function $Ue(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function LUe(e,r,n){if(e.charAt(0)==="."||!(FUe(e)||$Ue(e))||r&&!n&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function yee(e,r){return e.author&&(e.author=r(e.author)),["maintainers","contributors"].forEach(function(n){Array.isArray(e[n])&&(e[n]=e[n].map(r))}),e}function NUe(e){if(typeof e=="string")return e;var r=e.name||"",n=e.url||e.web,i=n?" ("+n+")":"",a=e.email||e.mail,o=a?" <"+a+">":"";return r+o+i}function MUe(e){if(typeof e!="string")return e;var r=e.match(/^([^(<]+)/),n=e.match(/\(([^()]+)\)/),i=e.match(/<([^<>]+)>/),a={};return r&&r[0].trim()&&(a.name=r[0].trim()),i&&(a.email=i[1]),n&&(a.url=n[1]),a}function qUe(e,r){var n=e.optionalDependencies;if(n){var i=e.dependencies||{};Object.keys(n).forEach(function(a){i[a]=n[a]}),e.dependencies=i}}function jUe(e,r,n){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;n("deprecatedArrayDependencies",r);var i={};return e.filter(function(a){return typeof a=="string"}).forEach(function(a){a=a.trim().split(/(:?[@\s><=])/);var o=a.shift(),c=a.join("");c=c.trim(),c=c.replace(/^@/,""),i[o]=c}),i}function BUe(e,r){IUe.forEach(function(n){e[n]&&(e[n]=jUe(e[n],n,r))})}function UUe(e,r){e&&Object.keys(e).forEach(function(n){gu.bugs[n]&&(r("typo",n,gu.bugs[n],"bugs"),e[gu.bugs[n]]=e[n],delete e[n])})}});var wee=S((XLt,GUe)=>{GUe.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var See=S((JLt,Eee)=>{"use strict";var _ee=require("util"),kk=wee();Eee.exports=function(){var e=Array.prototype.slice.call(arguments,0),r=e.shift();if(r==="typo")return WUe.apply(null,e);var n=kk[r]?kk[r]:r+": '%s'";return e.unshift(n),_ee.format.apply(null,e)};function WUe(e,r,n){return n&&(e=n+"['"+e+"']",r=n+"['"+r+"']"),_ee.format(kk.typo,e,r)}});var Tee=S((QLt,Pee)=>{"use strict";Pee.exports=Dee;var Fk=xee();Dee.fixer=Fk;var HUe=See(),zUe=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],VUe=["dependencies","people","typos"],$k=zUe.map(function(e){return Cee(e)+"Field"});$k=$k.concat(VUe);function Dee(e,r,n){r===!0&&(r=null,n=!0),n||(n=!1),(!r||e.private)&&(r=function(i){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Fk.warn=function(){r(HUe.apply(null,arguments))},$k.forEach(function(i){Fk["fix"+Cee(i)](e,n)}),e._id=e.name+"@"+e.version}function Cee(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var jee=S((F8t,jk)=>{"use strict";var qee=(e,r,n)=>new Promise((i,a)=>{if(n=Object.assign({concurrency:1/0},n),typeof r!="function")throw new TypeError("Mapper function is required");let{concurrency:o}=n;if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);let c=[],u=e[Symbol.iterator](),l=!1,f=!1,p=0,g=0,v=()=>{if(l)return;let x=u.next(),E=g;if(g++,x.done){f=!0,p===0&&i(c);return}p++,Promise.resolve(x.value).then(D=>r(D,E)).then(D=>{c[E]=D,p--,v()},D=>{l=!0,a(D)})};for(let x=0;x{"use strict";var t7e=jee(),Bee=async(e,r,n)=>(await t7e(e,(a,o)=>Promise.all([r(a,o),a]),n)).filter(a=>!!a[0]).map(a=>a[1]);Bk.exports=Bee;Bk.exports.default=Bee});var Hee=S((N8t,Wee)=>{"use strict";var{sep:r7e}=require("path"),n7e=e=>{for(let r of e){let n=/(\/|\\)/.exec(r);if(n!==null)return n[0]}return r7e};Wee.exports=function(r,n=n7e(r)){let[i="",...a]=r;if(i===""||a.length===0)return"";let o=i.split(n),c=o.length;for(let l of a){let f=l.split(n);for(let p=0;p{"use strict";var fte=require("fs"),m7e=require("path"),pte=require("crypto"),g7e=cw(),{Worker:dte}=(()=>{try{return require("worker_threads")}catch{return{}}})(),rf,v7e=0,gE=new Map,y7e=e=>{let r=new Error(e.message);for(let[n,i]of Object.entries(e))n!=="message"&&(r[n]=i);return r},b7e=()=>{rf=new dte(m7e.join(__dirname,"thread.js")),rf.on("message",e=>{let r=gE.get(e.id);gE.delete(e.id),gE.size===0&&rf.unref(),e.error===void 0?r.resolve(e.value):r.reject(y7e(e.error))}),rf.on("error",e=>{throw e})},lte=(e,r,n)=>new Promise((i,a)=>{let o=v7e++;gE.set(o,{resolve:i,reject:a}),rf===void 0&&b7e(),rf.ref(),rf.postMessage({id:o,method:e,args:r},n)}),Cs=(e,r={})=>{let n=r.encoding||"hex";n==="buffer"&&(n=void 0);let i=pte.createHash(r.algorithm||"sha512"),a=o=>{let c=typeof o=="string"?"utf8":void 0;i.update(o,c)};return Array.isArray(e)?e.forEach(a):a(e),i.digest(n)};Cs.stream=(e={})=>{let r=e.encoding||"hex";r==="buffer"&&(r=void 0);let n=pte.createHash(e.algorithm||"sha512");return n.setEncoding(r),n};Cs.fromStream=async(e,r={})=>{if(!g7e(e))throw new TypeError("Expected a stream");return new Promise((n,i)=>{e.on("error",i).pipe(Cs.stream(r)).on("error",i).on("finish",function(){n(this.read())})})};dte===void 0?(Cs.fromFile=async(e,r)=>Cs.fromStream(fte.createReadStream(e),r),Cs.async=async(e,r)=>Cs(e,r)):(Cs.fromFile=async(e,{algorithm:r="sha512",encoding:n="hex"}={})=>{let i=await lte("hashFile",[r,e]);return n==="buffer"?Buffer.from(i):Buffer.from(i).toString(n)},Cs.async=async(e,{algorithm:r="sha512",encoding:n="hex"}={})=>{n==="buffer"&&(n=void 0);let i=await lte("hash",[r,e]);return n===void 0?Buffer.from(i):Buffer.from(i).toString(n)});Cs.fromFileSync=(e,r)=>Cs(fte.readFileSync(e),r);hte.exports=Cs});var bte=S((vE,yte)=>{"use strict";(function(e,r){typeof vE=="object"&&typeof yte<"u"?r(vE):typeof define=="function"&&define.amd?define(["exports"],r):(e=typeof globalThis<"u"?globalThis:e||self,r(e.WebStreamsPolyfill={}))})(vE,function(e){"use strict";let r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:b=>`Symbol(${b})`;function n(){}function i(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}let a=i();function o(b){return typeof b=="object"&&b!==null||typeof b=="function"}let c=n,u=Promise,l=Promise.prototype.then,f=Promise.resolve.bind(u),p=Promise.reject.bind(u);function g(b){return new u(b)}function v(b){return f(b)}function x(b){return p(b)}function E(b,C,O){return l.call(b,C,O)}function D(b,C,O){E(E(b,C,O),void 0,c)}function P(b,C){D(b,C)}function R(b,C){D(b,void 0,C)}function k(b,C,O){return E(b,C,O)}function F(b){E(b,void 0,c)}let L=(()=>{let b=a&&a.queueMicrotask;if(typeof b=="function")return b;let C=v(void 0);return O=>E(C,O)})();function U(b,C,O){if(typeof b!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(b,C,O)}function V(b,C,O){try{return v(U(b,C,O))}catch(G){return x(G)}}let j=16384;class W{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(C){let O=this._back,G=O;O._elements.length===j-1&&(G={_elements:[],_next:void 0}),O._elements.push(C),G!==O&&(this._back=G,O._next=G),++this._size}shift(){let C=this._front,O=C,G=this._cursor,K=G+1,Z=C._elements,ne=Z[G];return K===j&&(O=C._next,K=0),--this._size,this._cursor=K,C!==O&&(this._front=O),Z[G]=void 0,ne}forEach(C){let O=this._cursor,G=this._front,K=G._elements;for(;(O!==K.length||G._next!==void 0)&&!(O===K.length&&(G=G._next,K=G._elements,O=0,K.length===0));)C(K[O]),++O}peek(){let C=this._front,O=this._cursor;return C._elements[O]}}function q(b,C){b._ownerReadableStream=C,C._reader=b,C._state==="readable"?ee(b):C._state==="closed"?H(b):ce(b,C._storedError)}function X(b,C){let O=b._ownerReadableStream;return Zs(O,C)}function M(b){b._ownerReadableStream._state==="readable"?Y(b,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):ie(b,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),b._ownerReadableStream._reader=void 0,b._ownerReadableStream=void 0}function Q(b){return new TypeError("Cannot "+b+" a stream using a released reader")}function ee(b){b._closedPromise=g((C,O)=>{b._closedPromise_resolve=C,b._closedPromise_reject=O})}function ce(b,C){ee(b),Y(b,C)}function H(b){ee(b),ae(b)}function Y(b,C){b._closedPromise_reject!==void 0&&(F(b._closedPromise),b._closedPromise_reject(C),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0)}function ie(b,C){ce(b,C)}function ae(b){b._closedPromise_resolve!==void 0&&(b._closedPromise_resolve(void 0),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0)}let le=r("[[AbortSteps]]"),$t=r("[[ErrorSteps]]"),Lt=r("[[CancelSteps]]"),ur=r("[[PullSteps]]"),Dr=Number.isFinite||function(b){return typeof b=="number"&&isFinite(b)},Xs=Math.trunc||function(b){return b<0?Math.ceil(b):Math.floor(b)};function tn(b){return typeof b=="object"||typeof b=="function"}function Te(b,C){if(b!==void 0&&!tn(b))throw new TypeError(`${C} is not an object.`)}function Wt(b,C){if(typeof b!="function")throw new TypeError(`${C} is not a function.`)}function Sc(b){return typeof b=="object"&&b!==null||typeof b=="function"}function pe(b,C){if(!Sc(b))throw new TypeError(`${C} is not an object.`)}function Ge(b,C,O){if(b===void 0)throw new TypeError(`Parameter ${C} is required in '${O}'.`)}function ue(b,C,O){if(b===void 0)throw new TypeError(`${C} is required in '${O}'.`)}function Be(b){return Number(b)}function Ht(b){return b===0?0:b}function wn(b){return Ht(Xs(b))}function br(b,C){let G=Number.MAX_SAFE_INTEGER,K=Number(b);if(K=Ht(K),!Dr(K))throw new TypeError(`${C} is not a finite number`);if(K=wn(K),K<0||K>G)throw new TypeError(`${C} is outside the accepted range of 0 to ${G}, inclusive`);return!Dr(K)||K===0?0:K}function vl(b,C){if(!Rc(b))throw new TypeError(`${C} is not a ReadableStream.`)}function Js(b){return new mg(b)}function zj(b,C){b._reader._readRequests.push(C)}function RT(b,C,O){let K=b._reader._readRequests.shift();O?K._closeSteps():K._chunkSteps(C)}function cx(b){return b._reader._readRequests.length}function Vj(b){let C=b._reader;return!(C===void 0||!Dc(C))}class mg{constructor(C){if(Ge(C,1,"ReadableStreamDefaultReader"),vl(C,"First parameter"),Ac(C))throw new TypeError("This stream has already been locked for exclusive reading by another reader");q(this,C),this._readRequests=new W}get closed(){return Dc(this)?this._closedPromise:x(ux("closed"))}cancel(C=void 0){return Dc(this)?this._ownerReadableStream===void 0?x(Q("cancel")):X(this,C):x(ux("cancel"))}read(){if(!Dc(this))return x(ux("read"));if(this._ownerReadableStream===void 0)return x(Q("read from"));let C,O,G=g((Z,ne)=>{C=Z,O=ne});return gg(this,{_chunkSteps:Z=>C({value:Z,done:!1}),_closeSteps:()=>C({value:void 0,done:!0}),_errorSteps:Z=>O(Z)}),G}releaseLock(){if(!Dc(this))throw ux("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}}Object.defineProperties(mg.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(mg.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Dc(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_readRequests")?!1:b instanceof mg}function gg(b,C){let O=b._ownerReadableStream;O._disturbed=!0,O._state==="closed"?C._closeSteps():O._state==="errored"?C._errorSteps(O._storedError):O._readableStreamController[ur](C)}function ux(b){return new TypeError(`ReadableStreamDefaultReader.prototype.${b} can only be used on a ReadableStreamDefaultReader`)}let Yj=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);class Kj{constructor(C,O){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=C,this._preventCancel=O}next(){let C=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?k(this._ongoingPromise,C,C):C(),this._ongoingPromise}return(C){let O=()=>this._returnSteps(C);return this._ongoingPromise?k(this._ongoingPromise,O,O):O()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let C=this._reader;if(C._ownerReadableStream===void 0)return x(Q("iterate"));let O,G,K=g((ne,we)=>{O=ne,G=we});return gg(C,{_chunkSteps:ne=>{this._ongoingPromise=void 0,L(()=>O({value:ne,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(C),O({value:void 0,done:!0})},_errorSteps:ne=>{this._ongoingPromise=void 0,this._isFinished=!0,M(C),G(ne)}}),K}_returnSteps(C){if(this._isFinished)return Promise.resolve({value:C,done:!0});this._isFinished=!0;let O=this._reader;if(O._ownerReadableStream===void 0)return x(Q("finish iterating"));if(!this._preventCancel){let G=X(O,C);return M(O),k(G,()=>({value:C,done:!0}))}return M(O),v({value:C,done:!0})}}let Xj={next(){return Jj(this)?this._asyncIteratorImpl.next():x(Qj("next"))},return(b){return Jj(this)?this._asyncIteratorImpl.return(b):x(Qj("return"))}};Yj!==void 0&&Object.setPrototypeOf(Xj,Yj);function H2e(b,C){let O=Js(b),G=new Kj(O,C),K=Object.create(Xj);return K._asyncIteratorImpl=G,K}function Jj(b){if(!o(b)||!Object.prototype.hasOwnProperty.call(b,"_asyncIteratorImpl"))return!1;try{return b._asyncIteratorImpl instanceof Kj}catch{return!1}}function Qj(b){return new TypeError(`ReadableStreamAsyncIterator.${b} can only be used on a ReadableSteamAsyncIterator`)}let Zj=Number.isNaN||function(b){return b!==b};function vg(b){return b.slice()}function eB(b,C,O,G,K){new Uint8Array(b).set(new Uint8Array(O,G,K),C)}function oAt(b){return b}function lx(b){return!1}function tB(b,C,O){if(b.slice)return b.slice(C,O);let G=O-C,K=new ArrayBuffer(G);return eB(K,0,b,C,G),K}function z2e(b){return!(typeof b!="number"||Zj(b)||b<0)}function rB(b){let C=tB(b.buffer,b.byteOffset,b.byteOffset+b.byteLength);return new Uint8Array(C)}function AT(b){let C=b._queue.shift();return b._queueTotalSize-=C.size,b._queueTotalSize<0&&(b._queueTotalSize=0),C.value}function OT(b,C,O){if(!z2e(O)||O===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");b._queue.push({value:C,size:O}),b._queueTotalSize+=O}function V2e(b){return b._queue.peek().value}function Cc(b){b._queue=new W,b._queueTotalSize=0}class yg{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!IT(this))throw LT("view");return this._view}respond(C){if(!IT(this))throw LT("respond");if(Ge(C,1,"respond"),C=br(C,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");lx(this._view.buffer),mx(this._associatedReadableByteStreamController,C)}respondWithNewView(C){if(!IT(this))throw LT("respondWithNewView");if(Ge(C,1,"respondWithNewView"),!ArrayBuffer.isView(C))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");lx(C.buffer),gx(this._associatedReadableByteStreamController,C)}}Object.defineProperties(yg.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(yg.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Pp{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!yl(this))throw xg("byobRequest");return $T(this)}get desiredSize(){if(!yl(this))throw xg("desiredSize");return lB(this)}close(){if(!yl(this))throw xg("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");let C=this._controlledReadableByteStream._state;if(C!=="readable")throw new TypeError(`The stream (in ${C} state) is not in the readable state and cannot be closed`);bg(this)}enqueue(C){if(!yl(this))throw xg("enqueue");if(Ge(C,1,"enqueue"),!ArrayBuffer.isView(C))throw new TypeError("chunk must be an array buffer view");if(C.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(C.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");let O=this._controlledReadableByteStream._state;if(O!=="readable")throw new TypeError(`The stream (in ${O} state) is not in the readable state and cannot be enqueued to`);hx(this,C)}error(C=void 0){if(!yl(this))throw xg("error");Qs(this,C)}[Lt](C){nB(this),Cc(this);let O=this._cancelAlgorithm(C);return dx(this),O}[ur](C){let O=this._controlledReadableByteStream;if(this._queueTotalSize>0){let K=this._queue.shift();this._queueTotalSize-=K.byteLength,oB(this);let Z=new Uint8Array(K.buffer,K.byteOffset,K.byteLength);C._chunkSteps(Z);return}let G=this._autoAllocateChunkSize;if(G!==void 0){let K;try{K=new ArrayBuffer(G)}catch(ne){C._errorSteps(ne);return}let Z={buffer:K,bufferByteLength:G,byteOffset:0,byteLength:G,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Z)}zj(O,C),bl(this)}}Object.defineProperties(Pp.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Pp.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function yl(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledReadableByteStream")?!1:b instanceof Pp}function IT(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_associatedReadableByteStreamController")?!1:b instanceof yg}function bl(b){if(!J2e(b))return;if(b._pulling){b._pullAgain=!0;return}b._pulling=!0;let O=b._pullAlgorithm();D(O,()=>{b._pulling=!1,b._pullAgain&&(b._pullAgain=!1,bl(b))},G=>{Qs(b,G)})}function nB(b){FT(b),b._pendingPullIntos=new W}function kT(b,C){let O=!1;b._state==="closed"&&(O=!0);let G=iB(C);C.readerType==="default"?RT(b,G,O):eAe(b,G,O)}function iB(b){let C=b.bytesFilled,O=b.elementSize;return new b.viewConstructor(b.buffer,b.byteOffset,C/O)}function fx(b,C,O,G){b._queue.push({buffer:C,byteOffset:O,byteLength:G}),b._queueTotalSize+=G}function sB(b,C){let O=C.elementSize,G=C.bytesFilled-C.bytesFilled%O,K=Math.min(b._queueTotalSize,C.byteLength-C.bytesFilled),Z=C.bytesFilled+K,ne=Z-Z%O,we=K,We=!1;ne>G&&(we=ne-C.bytesFilled,We=!0);let it=b._queue;for(;we>0;){let ht=it.peek(),mt=Math.min(we,ht.byteLength),Ar=C.byteOffset+C.bytesFilled;eB(C.buffer,Ar,ht.buffer,ht.byteOffset,mt),ht.byteLength===mt?it.shift():(ht.byteOffset+=mt,ht.byteLength-=mt),b._queueTotalSize-=mt,aB(b,mt,C),we-=mt}return We}function aB(b,C,O){O.bytesFilled+=C}function oB(b){b._queueTotalSize===0&&b._closeRequested?(dx(b),Tg(b._controlledReadableByteStream)):bl(b)}function FT(b){b._byobRequest!==null&&(b._byobRequest._associatedReadableByteStreamController=void 0,b._byobRequest._view=null,b._byobRequest=null)}function cB(b){for(;b._pendingPullIntos.length>0;){if(b._queueTotalSize===0)return;let C=b._pendingPullIntos.peek();sB(b,C)&&(px(b),kT(b._controlledReadableByteStream,C))}}function Y2e(b,C,O){let G=b._controlledReadableByteStream,K=1;C.constructor!==DataView&&(K=C.constructor.BYTES_PER_ELEMENT);let Z=C.constructor,ne=C.buffer,we={buffer:ne,bufferByteLength:ne.byteLength,byteOffset:C.byteOffset,byteLength:C.byteLength,bytesFilled:0,elementSize:K,viewConstructor:Z,readerType:"byob"};if(b._pendingPullIntos.length>0){b._pendingPullIntos.push(we),dB(G,O);return}if(G._state==="closed"){let We=new Z(we.buffer,we.byteOffset,0);O._closeSteps(We);return}if(b._queueTotalSize>0){if(sB(b,we)){let We=iB(we);oB(b),O._chunkSteps(We);return}if(b._closeRequested){let We=new TypeError("Insufficient bytes to fill elements in the given buffer");Qs(b,We),O._errorSteps(We);return}}b._pendingPullIntos.push(we),dB(G,O),bl(b)}function K2e(b,C){let O=b._controlledReadableByteStream;if(NT(O))for(;hB(O)>0;){let G=px(b);kT(O,G)}}function X2e(b,C,O){if(aB(b,C,O),O.bytesFilled0){let K=O.byteOffset+O.bytesFilled,Z=tB(O.buffer,K-G,K);fx(b,Z,0,Z.byteLength)}O.bytesFilled-=G,kT(b._controlledReadableByteStream,O),cB(b)}function uB(b,C){let O=b._pendingPullIntos.peek();FT(b),b._controlledReadableByteStream._state==="closed"?K2e(b):X2e(b,C,O),bl(b)}function px(b){return b._pendingPullIntos.shift()}function J2e(b){let C=b._controlledReadableByteStream;return C._state!=="readable"||b._closeRequested||!b._started?!1:!!(Vj(C)&&cx(C)>0||NT(C)&&hB(C)>0||lB(b)>0)}function dx(b){b._pullAlgorithm=void 0,b._cancelAlgorithm=void 0}function bg(b){let C=b._controlledReadableByteStream;if(!(b._closeRequested||C._state!=="readable")){if(b._queueTotalSize>0){b._closeRequested=!0;return}if(b._pendingPullIntos.length>0&&b._pendingPullIntos.peek().bytesFilled>0){let G=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Qs(b,G),G}dx(b),Tg(C)}}function hx(b,C){let O=b._controlledReadableByteStream;if(b._closeRequested||O._state!=="readable")return;let G=C.buffer,K=C.byteOffset,Z=C.byteLength,ne=G;if(b._pendingPullIntos.length>0){let we=b._pendingPullIntos.peek();lx(we.buffer),we.buffer=we.buffer}if(FT(b),Vj(O))if(cx(O)===0)fx(b,ne,K,Z);else{b._pendingPullIntos.length>0&&px(b);let we=new Uint8Array(ne,K,Z);RT(O,we,!1)}else NT(O)?(fx(b,ne,K,Z),cB(b)):fx(b,ne,K,Z);bl(b)}function Qs(b,C){let O=b._controlledReadableByteStream;O._state==="readable"&&(nB(b),Cc(b),dx(b),MB(O,C))}function $T(b){if(b._byobRequest===null&&b._pendingPullIntos.length>0){let C=b._pendingPullIntos.peek(),O=new Uint8Array(C.buffer,C.byteOffset+C.bytesFilled,C.byteLength-C.bytesFilled),G=Object.create(yg.prototype);Z2e(G,b,O),b._byobRequest=G}return b._byobRequest}function lB(b){let C=b._controlledReadableByteStream._state;return C==="errored"?null:C==="closed"?0:b._strategyHWM-b._queueTotalSize}function mx(b,C){let O=b._pendingPullIntos.peek();if(b._controlledReadableByteStream._state==="closed"){if(C!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(C===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(O.bytesFilled+C>O.byteLength)throw new RangeError("bytesWritten out of range")}O.buffer=O.buffer,uB(b,C)}function gx(b,C){let O=b._pendingPullIntos.peek();if(b._controlledReadableByteStream._state==="closed"){if(C.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(C.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(O.byteOffset+O.bytesFilled!==C.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(O.bufferByteLength!==C.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(O.bytesFilled+C.byteLength>O.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");let K=C.byteLength;O.buffer=C.buffer,uB(b,K)}function fB(b,C,O,G,K,Z,ne){C._controlledReadableByteStream=b,C._pullAgain=!1,C._pulling=!1,C._byobRequest=null,C._queue=C._queueTotalSize=void 0,Cc(C),C._closeRequested=!1,C._started=!1,C._strategyHWM=Z,C._pullAlgorithm=G,C._cancelAlgorithm=K,C._autoAllocateChunkSize=ne,C._pendingPullIntos=new W,b._readableStreamController=C;let we=O();D(v(we),()=>{C._started=!0,bl(C)},We=>{Qs(C,We)})}function Q2e(b,C,O){let G=Object.create(Pp.prototype),K=()=>{},Z=()=>v(void 0),ne=()=>v(void 0);C.start!==void 0&&(K=()=>C.start(G)),C.pull!==void 0&&(Z=()=>C.pull(G)),C.cancel!==void 0&&(ne=We=>C.cancel(We));let we=C.autoAllocateChunkSize;if(we===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");fB(b,G,K,Z,ne,O,we)}function Z2e(b,C,O){b._associatedReadableByteStreamController=C,b._view=O}function LT(b){return new TypeError(`ReadableStreamBYOBRequest.prototype.${b} can only be used on a ReadableStreamBYOBRequest`)}function xg(b){return new TypeError(`ReadableByteStreamController.prototype.${b} can only be used on a ReadableByteStreamController`)}function pB(b){return new wg(b)}function dB(b,C){b._reader._readIntoRequests.push(C)}function eAe(b,C,O){let K=b._reader._readIntoRequests.shift();O?K._closeSteps(C):K._chunkSteps(C)}function hB(b){return b._reader._readIntoRequests.length}function NT(b){let C=b._reader;return!(C===void 0||!xl(C))}class wg{constructor(C){if(Ge(C,1,"ReadableStreamBYOBReader"),vl(C,"First parameter"),Ac(C))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!yl(C._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");q(this,C),this._readIntoRequests=new W}get closed(){return xl(this)?this._closedPromise:x(vx("closed"))}cancel(C=void 0){return xl(this)?this._ownerReadableStream===void 0?x(Q("cancel")):X(this,C):x(vx("cancel"))}read(C){if(!xl(this))return x(vx("read"));if(!ArrayBuffer.isView(C))return x(new TypeError("view must be an array buffer view"));if(C.byteLength===0)return x(new TypeError("view must have non-zero byteLength"));if(C.buffer.byteLength===0)return x(new TypeError("view's buffer must have non-zero byteLength"));if(lx(C.buffer),this._ownerReadableStream===void 0)return x(Q("read from"));let O,G,K=g((ne,we)=>{O=ne,G=we});return mB(this,C,{_chunkSteps:ne=>O({value:ne,done:!1}),_closeSteps:ne=>O({value:ne,done:!0}),_errorSteps:ne=>G(ne)}),K}releaseLock(){if(!xl(this))throw vx("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}}Object.defineProperties(wg.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(wg.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function xl(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_readIntoRequests")?!1:b instanceof wg}function mB(b,C,O){let G=b._ownerReadableStream;G._disturbed=!0,G._state==="errored"?O._errorSteps(G._storedError):Y2e(G._readableStreamController,C,O)}function vx(b){return new TypeError(`ReadableStreamBYOBReader.prototype.${b} can only be used on a ReadableStreamBYOBReader`)}function _g(b,C){let{highWaterMark:O}=b;if(O===void 0)return C;if(Zj(O)||O<0)throw new RangeError("Invalid highWaterMark");return O}function yx(b){let{size:C}=b;return C||(()=>1)}function bx(b,C){Te(b,C);let O=b?.highWaterMark,G=b?.size;return{highWaterMark:O===void 0?void 0:Be(O),size:G===void 0?void 0:tAe(G,`${C} has member 'size' that`)}}function tAe(b,C){return Wt(b,C),O=>Be(b(O))}function rAe(b,C){Te(b,C);let O=b?.abort,G=b?.close,K=b?.start,Z=b?.type,ne=b?.write;return{abort:O===void 0?void 0:nAe(O,b,`${C} has member 'abort' that`),close:G===void 0?void 0:iAe(G,b,`${C} has member 'close' that`),start:K===void 0?void 0:sAe(K,b,`${C} has member 'start' that`),write:ne===void 0?void 0:aAe(ne,b,`${C} has member 'write' that`),type:Z}}function nAe(b,C,O){return Wt(b,O),G=>V(b,C,[G])}function iAe(b,C,O){return Wt(b,O),()=>V(b,C,[])}function sAe(b,C,O){return Wt(b,O),G=>U(b,C,[G])}function aAe(b,C,O){return Wt(b,O),(G,K)=>V(b,C,[G,K])}function gB(b,C){if(!Tp(b))throw new TypeError(`${C} is not a WritableStream.`)}function oAe(b){if(typeof b!="object"||b===null)return!1;try{return typeof b.aborted=="boolean"}catch{return!1}}let cAe=typeof AbortController=="function";function uAe(){if(cAe)return new AbortController}class Eg{constructor(C={},O={}){C===void 0?C=null:pe(C,"First parameter");let G=bx(O,"Second parameter"),K=rAe(C,"First parameter");if(yB(this),K.type!==void 0)throw new RangeError("Invalid type is specified");let ne=yx(G),we=_g(G,1);EAe(this,K,we,ne)}get locked(){if(!Tp(this))throw Sx("locked");return Rp(this)}abort(C=void 0){return Tp(this)?Rp(this)?x(new TypeError("Cannot abort a stream that already has a writer")):xx(this,C):x(Sx("abort"))}close(){return Tp(this)?Rp(this)?x(new TypeError("Cannot close a stream that already has a writer")):Ma(this)?x(new TypeError("Cannot close an already-closing stream")):bB(this):x(Sx("close"))}getWriter(){if(!Tp(this))throw Sx("getWriter");return vB(this)}}Object.defineProperties(Eg.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Eg.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function vB(b){return new Sg(b)}function lAe(b,C,O,G,K=1,Z=()=>1){let ne=Object.create(Eg.prototype);yB(ne);let we=Object.create(Ap.prototype);return DB(ne,we,b,C,O,G,K,Z),ne}function yB(b){b._state="writable",b._storedError=void 0,b._writer=void 0,b._writableStreamController=void 0,b._writeRequests=new W,b._inFlightWriteRequest=void 0,b._closeRequest=void 0,b._inFlightCloseRequest=void 0,b._pendingAbortRequest=void 0,b._backpressure=!1}function Tp(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_writableStreamController")?!1:b instanceof Eg}function Rp(b){return b._writer!==void 0}function xx(b,C){var O;if(b._state==="closed"||b._state==="errored")return v(void 0);b._writableStreamController._abortReason=C,(O=b._writableStreamController._abortController)===null||O===void 0||O.abort();let G=b._state;if(G==="closed"||G==="errored")return v(void 0);if(b._pendingAbortRequest!==void 0)return b._pendingAbortRequest._promise;let K=!1;G==="erroring"&&(K=!0,C=void 0);let Z=g((ne,we)=>{b._pendingAbortRequest={_promise:void 0,_resolve:ne,_reject:we,_reason:C,_wasAlreadyErroring:K}});return b._pendingAbortRequest._promise=Z,K||qT(b,C),Z}function bB(b){let C=b._state;if(C==="closed"||C==="errored")return x(new TypeError(`The stream (in ${C} state) is not in the writable state and cannot be closed`));let O=g((K,Z)=>{let ne={_resolve:K,_reject:Z};b._closeRequest=ne}),G=b._writer;return G!==void 0&&b._backpressure&&C==="writable"&&YT(G),SAe(b._writableStreamController),O}function fAe(b){return g((O,G)=>{let K={_resolve:O,_reject:G};b._writeRequests.push(K)})}function MT(b,C){if(b._state==="writable"){qT(b,C);return}jT(b)}function qT(b,C){let O=b._writableStreamController;b._state="erroring",b._storedError=C;let G=b._writer;G!==void 0&&wB(G,C),!gAe(b)&&O._started&&jT(b)}function jT(b){b._state="errored",b._writableStreamController[$t]();let C=b._storedError;if(b._writeRequests.forEach(K=>{K._reject(C)}),b._writeRequests=new W,b._pendingAbortRequest===void 0){wx(b);return}let O=b._pendingAbortRequest;if(b._pendingAbortRequest=void 0,O._wasAlreadyErroring){O._reject(C),wx(b);return}let G=b._writableStreamController[le](O._reason);D(G,()=>{O._resolve(),wx(b)},K=>{O._reject(K),wx(b)})}function pAe(b){b._inFlightWriteRequest._resolve(void 0),b._inFlightWriteRequest=void 0}function dAe(b,C){b._inFlightWriteRequest._reject(C),b._inFlightWriteRequest=void 0,MT(b,C)}function hAe(b){b._inFlightCloseRequest._resolve(void 0),b._inFlightCloseRequest=void 0,b._state==="erroring"&&(b._storedError=void 0,b._pendingAbortRequest!==void 0&&(b._pendingAbortRequest._resolve(),b._pendingAbortRequest=void 0)),b._state="closed";let O=b._writer;O!==void 0&&RB(O)}function mAe(b,C){b._inFlightCloseRequest._reject(C),b._inFlightCloseRequest=void 0,b._pendingAbortRequest!==void 0&&(b._pendingAbortRequest._reject(C),b._pendingAbortRequest=void 0),MT(b,C)}function Ma(b){return!(b._closeRequest===void 0&&b._inFlightCloseRequest===void 0)}function gAe(b){return!(b._inFlightWriteRequest===void 0&&b._inFlightCloseRequest===void 0)}function vAe(b){b._inFlightCloseRequest=b._closeRequest,b._closeRequest=void 0}function yAe(b){b._inFlightWriteRequest=b._writeRequests.shift()}function wx(b){b._closeRequest!==void 0&&(b._closeRequest._reject(b._storedError),b._closeRequest=void 0);let C=b._writer;C!==void 0&&zT(C,b._storedError)}function BT(b,C){let O=b._writer;O!==void 0&&C!==b._backpressure&&(C?OAe(O):YT(O)),b._backpressure=C}class Sg{constructor(C){if(Ge(C,1,"WritableStreamDefaultWriter"),gB(C,"First parameter"),Rp(C))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=C,C._writer=this;let O=C._state;if(O==="writable")!Ma(C)&&C._backpressure?Cx(this):AB(this),Dx(this);else if(O==="erroring")VT(this,C._storedError),Dx(this);else if(O==="closed")AB(this),RAe(this);else{let G=C._storedError;VT(this,G),TB(this,G)}}get closed(){return wl(this)?this._closedPromise:x(_l("closed"))}get desiredSize(){if(!wl(this))throw _l("desiredSize");if(this._ownerWritableStream===void 0)throw Dg("desiredSize");return _Ae(this)}get ready(){return wl(this)?this._readyPromise:x(_l("ready"))}abort(C=void 0){return wl(this)?this._ownerWritableStream===void 0?x(Dg("abort")):bAe(this,C):x(_l("abort"))}close(){if(!wl(this))return x(_l("close"));let C=this._ownerWritableStream;return C===void 0?x(Dg("close")):Ma(C)?x(new TypeError("Cannot close an already-closing stream")):xB(this)}releaseLock(){if(!wl(this))throw _l("releaseLock");this._ownerWritableStream!==void 0&&_B(this)}write(C=void 0){return wl(this)?this._ownerWritableStream===void 0?x(Dg("write to")):EB(this,C):x(_l("write"))}}Object.defineProperties(Sg.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Sg.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function wl(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_ownerWritableStream")?!1:b instanceof Sg}function bAe(b,C){let O=b._ownerWritableStream;return xx(O,C)}function xB(b){let C=b._ownerWritableStream;return bB(C)}function xAe(b){let C=b._ownerWritableStream,O=C._state;return Ma(C)||O==="closed"?v(void 0):O==="errored"?x(C._storedError):xB(b)}function wAe(b,C){b._closedPromiseState==="pending"?zT(b,C):AAe(b,C)}function wB(b,C){b._readyPromiseState==="pending"?OB(b,C):IAe(b,C)}function _Ae(b){let C=b._ownerWritableStream,O=C._state;return O==="errored"||O==="erroring"?null:O==="closed"?0:CB(C._writableStreamController)}function _B(b){let C=b._ownerWritableStream,O=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");wB(b,O),wAe(b,O),C._writer=void 0,b._ownerWritableStream=void 0}function EB(b,C){let O=b._ownerWritableStream,G=O._writableStreamController,K=DAe(G,C);if(O!==b._ownerWritableStream)return x(Dg("write to"));let Z=O._state;if(Z==="errored")return x(O._storedError);if(Ma(O)||Z==="closed")return x(new TypeError("The stream is closing or closed and cannot be written to"));if(Z==="erroring")return x(O._storedError);let ne=fAe(O);return CAe(G,C,K),ne}let SB={};class Ap{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!UT(this))throw HT("abortReason");return this._abortReason}get signal(){if(!UT(this))throw HT("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(C=void 0){if(!UT(this))throw HT("error");this._controlledWritableStream._state==="writable"&&PB(this,C)}[le](C){let O=this._abortAlgorithm(C);return _x(this),O}[$t](){Cc(this)}}Object.defineProperties(Ap.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ap.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function UT(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledWritableStream")?!1:b instanceof Ap}function DB(b,C,O,G,K,Z,ne,we){C._controlledWritableStream=b,b._writableStreamController=C,C._queue=void 0,C._queueTotalSize=void 0,Cc(C),C._abortReason=void 0,C._abortController=uAe(),C._started=!1,C._strategySizeAlgorithm=we,C._strategyHWM=ne,C._writeAlgorithm=G,C._closeAlgorithm=K,C._abortAlgorithm=Z;let We=WT(C);BT(b,We);let it=O(),ht=v(it);D(ht,()=>{C._started=!0,Ex(C)},mt=>{C._started=!0,MT(b,mt)})}function EAe(b,C,O,G){let K=Object.create(Ap.prototype),Z=()=>{},ne=()=>v(void 0),we=()=>v(void 0),We=()=>v(void 0);C.start!==void 0&&(Z=()=>C.start(K)),C.write!==void 0&&(ne=it=>C.write(it,K)),C.close!==void 0&&(we=()=>C.close()),C.abort!==void 0&&(We=it=>C.abort(it)),DB(b,K,Z,ne,we,We,O,G)}function _x(b){b._writeAlgorithm=void 0,b._closeAlgorithm=void 0,b._abortAlgorithm=void 0,b._strategySizeAlgorithm=void 0}function SAe(b){OT(b,SB,0),Ex(b)}function DAe(b,C){try{return b._strategySizeAlgorithm(C)}catch(O){return GT(b,O),1}}function CB(b){return b._strategyHWM-b._queueTotalSize}function CAe(b,C,O){try{OT(b,C,O)}catch(K){GT(b,K);return}let G=b._controlledWritableStream;if(!Ma(G)&&G._state==="writable"){let K=WT(b);BT(G,K)}Ex(b)}function Ex(b){let C=b._controlledWritableStream;if(!b._started||C._inFlightWriteRequest!==void 0)return;if(C._state==="erroring"){jT(C);return}if(b._queue.length===0)return;let G=V2e(b);G===SB?PAe(b):TAe(b,G)}function GT(b,C){b._controlledWritableStream._state==="writable"&&PB(b,C)}function PAe(b){let C=b._controlledWritableStream;vAe(C),AT(b);let O=b._closeAlgorithm();_x(b),D(O,()=>{hAe(C)},G=>{mAe(C,G)})}function TAe(b,C){let O=b._controlledWritableStream;yAe(O);let G=b._writeAlgorithm(C);D(G,()=>{pAe(O);let K=O._state;if(AT(b),!Ma(O)&&K==="writable"){let Z=WT(b);BT(O,Z)}Ex(b)},K=>{O._state==="writable"&&_x(b),dAe(O,K)})}function WT(b){return CB(b)<=0}function PB(b,C){let O=b._controlledWritableStream;_x(b),qT(O,C)}function Sx(b){return new TypeError(`WritableStream.prototype.${b} can only be used on a WritableStream`)}function HT(b){return new TypeError(`WritableStreamDefaultController.prototype.${b} can only be used on a WritableStreamDefaultController`)}function _l(b){return new TypeError(`WritableStreamDefaultWriter.prototype.${b} can only be used on a WritableStreamDefaultWriter`)}function Dg(b){return new TypeError("Cannot "+b+" a stream using a released writer")}function Dx(b){b._closedPromise=g((C,O)=>{b._closedPromise_resolve=C,b._closedPromise_reject=O,b._closedPromiseState="pending"})}function TB(b,C){Dx(b),zT(b,C)}function RAe(b){Dx(b),RB(b)}function zT(b,C){b._closedPromise_reject!==void 0&&(F(b._closedPromise),b._closedPromise_reject(C),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0,b._closedPromiseState="rejected")}function AAe(b,C){TB(b,C)}function RB(b){b._closedPromise_resolve!==void 0&&(b._closedPromise_resolve(void 0),b._closedPromise_resolve=void 0,b._closedPromise_reject=void 0,b._closedPromiseState="resolved")}function Cx(b){b._readyPromise=g((C,O)=>{b._readyPromise_resolve=C,b._readyPromise_reject=O}),b._readyPromiseState="pending"}function VT(b,C){Cx(b),OB(b,C)}function AB(b){Cx(b),YT(b)}function OB(b,C){b._readyPromise_reject!==void 0&&(F(b._readyPromise),b._readyPromise_reject(C),b._readyPromise_resolve=void 0,b._readyPromise_reject=void 0,b._readyPromiseState="rejected")}function OAe(b){Cx(b)}function IAe(b,C){VT(b,C)}function YT(b){b._readyPromise_resolve!==void 0&&(b._readyPromise_resolve(void 0),b._readyPromise_resolve=void 0,b._readyPromise_reject=void 0,b._readyPromiseState="fulfilled")}let IB=typeof DOMException<"u"?DOMException:void 0;function kAe(b){if(!(typeof b=="function"||typeof b=="object"))return!1;try{return new b,!0}catch{return!1}}function FAe(){let b=function(O,G){this.message=O||"",this.name=G||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return b.prototype=Object.create(Error.prototype),Object.defineProperty(b.prototype,"constructor",{value:b,writable:!0,configurable:!0}),b}let $Ae=kAe(IB)?IB:FAe();function kB(b,C,O,G,K,Z){let ne=Js(b),we=vB(C);b._disturbed=!0;let We=!1,it=v(void 0);return g((ht,mt)=>{let Ar;if(Z!==void 0){if(Ar=()=>{let Ae=new $Ae("Aborted","AbortError"),nt=[];G||nt.push(()=>C._state==="writable"?xx(C,Ae):v(void 0)),K||nt.push(()=>b._state==="readable"?Zs(b,Ae):v(void 0)),di(()=>Promise.all(nt.map(zt=>zt())),!0,Ae)},Z.aborted){Ar();return}Z.addEventListener("abort",Ar)}function ea(){return g((Ae,nt)=>{function zt(Ni){Ni?Ae():E(kp(),zt,nt)}zt(!1)})}function kp(){return We?v(!0):E(we._readyPromise,()=>g((Ae,nt)=>{gg(ne,{_chunkSteps:zt=>{it=E(EB(we,zt),void 0,n),Ae(!1)},_closeSteps:()=>Ae(!0),_errorSteps:nt})}))}if(Ro(b,ne._closedPromise,Ae=>{G?ds(!0,Ae):di(()=>xx(C,Ae),!0,Ae)}),Ro(C,we._closedPromise,Ae=>{K?ds(!0,Ae):di(()=>Zs(b,Ae),!0,Ae)}),Kn(b,ne._closedPromise,()=>{O?ds():di(()=>xAe(we))}),Ma(C)||C._state==="closed"){let Ae=new TypeError("the destination writable stream closed before all data could be piped to it");K?ds(!0,Ae):di(()=>Zs(b,Ae),!0,Ae)}F(ea());function Oc(){let Ae=it;return E(it,()=>Ae!==it?Oc():void 0)}function Ro(Ae,nt,zt){Ae._state==="errored"?zt(Ae._storedError):R(nt,zt)}function Kn(Ae,nt,zt){Ae._state==="closed"?zt():P(nt,zt)}function di(Ae,nt,zt){if(We)return;We=!0,C._state==="writable"&&!Ma(C)?P(Oc(),Ni):Ni();function Ni(){D(Ae(),()=>Ao(nt,zt),Fp=>Ao(!0,Fp))}}function ds(Ae,nt){We||(We=!0,C._state==="writable"&&!Ma(C)?P(Oc(),()=>Ao(Ae,nt)):Ao(Ae,nt))}function Ao(Ae,nt){_B(we),M(ne),Z!==void 0&&Z.removeEventListener("abort",Ar),Ae?mt(nt):ht(void 0)}})}class Op{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Px(this))throw Ax("desiredSize");return KT(this)}close(){if(!Px(this))throw Ax("close");if(!Ip(this))throw new TypeError("The stream is not in a state that permits close");Pg(this)}enqueue(C=void 0){if(!Px(this))throw Ax("enqueue");if(!Ip(this))throw new TypeError("The stream is not in a state that permits enqueue");return Rx(this,C)}error(C=void 0){if(!Px(this))throw Ax("error");Pc(this,C)}[Lt](C){Cc(this);let O=this._cancelAlgorithm(C);return Tx(this),O}[ur](C){let O=this._controlledReadableStream;if(this._queue.length>0){let G=AT(this);this._closeRequested&&this._queue.length===0?(Tx(this),Tg(O)):Cg(this),C._chunkSteps(G)}else zj(O,C),Cg(this)}}Object.defineProperties(Op.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Op.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function Px(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledReadableStream")?!1:b instanceof Op}function Cg(b){if(!FB(b))return;if(b._pulling){b._pullAgain=!0;return}b._pulling=!0;let O=b._pullAlgorithm();D(O,()=>{b._pulling=!1,b._pullAgain&&(b._pullAgain=!1,Cg(b))},G=>{Pc(b,G)})}function FB(b){let C=b._controlledReadableStream;return!Ip(b)||!b._started?!1:!!(Ac(C)&&cx(C)>0||KT(b)>0)}function Tx(b){b._pullAlgorithm=void 0,b._cancelAlgorithm=void 0,b._strategySizeAlgorithm=void 0}function Pg(b){if(!Ip(b))return;let C=b._controlledReadableStream;b._closeRequested=!0,b._queue.length===0&&(Tx(b),Tg(C))}function Rx(b,C){if(!Ip(b))return;let O=b._controlledReadableStream;if(Ac(O)&&cx(O)>0)RT(O,C,!1);else{let G;try{G=b._strategySizeAlgorithm(C)}catch(K){throw Pc(b,K),K}try{OT(b,C,G)}catch(K){throw Pc(b,K),K}}Cg(b)}function Pc(b,C){let O=b._controlledReadableStream;O._state==="readable"&&(Cc(b),Tx(b),MB(O,C))}function KT(b){let C=b._controlledReadableStream._state;return C==="errored"?null:C==="closed"?0:b._strategyHWM-b._queueTotalSize}function LAe(b){return!FB(b)}function Ip(b){let C=b._controlledReadableStream._state;return!b._closeRequested&&C==="readable"}function $B(b,C,O,G,K,Z,ne){C._controlledReadableStream=b,C._queue=void 0,C._queueTotalSize=void 0,Cc(C),C._started=!1,C._closeRequested=!1,C._pullAgain=!1,C._pulling=!1,C._strategySizeAlgorithm=ne,C._strategyHWM=Z,C._pullAlgorithm=G,C._cancelAlgorithm=K,b._readableStreamController=C;let we=O();D(v(we),()=>{C._started=!0,Cg(C)},We=>{Pc(C,We)})}function NAe(b,C,O,G){let K=Object.create(Op.prototype),Z=()=>{},ne=()=>v(void 0),we=()=>v(void 0);C.start!==void 0&&(Z=()=>C.start(K)),C.pull!==void 0&&(ne=()=>C.pull(K)),C.cancel!==void 0&&(we=We=>C.cancel(We)),$B(b,K,Z,ne,we,O,G)}function Ax(b){return new TypeError(`ReadableStreamDefaultController.prototype.${b} can only be used on a ReadableStreamDefaultController`)}function MAe(b,C){return yl(b._readableStreamController)?jAe(b):qAe(b)}function qAe(b,C){let O=Js(b),G=!1,K=!1,Z=!1,ne=!1,we,We,it,ht,mt,Ar=g(Kn=>{mt=Kn});function ea(){return G?(K=!0,v(void 0)):(G=!0,gg(O,{_chunkSteps:di=>{L(()=>{K=!1;let ds=di,Ao=di;Z||Rx(it._readableStreamController,ds),ne||Rx(ht._readableStreamController,Ao),G=!1,K&&ea()})},_closeSteps:()=>{G=!1,Z||Pg(it._readableStreamController),ne||Pg(ht._readableStreamController),(!Z||!ne)&&mt(void 0)},_errorSteps:()=>{G=!1}}),v(void 0))}function kp(Kn){if(Z=!0,we=Kn,ne){let di=vg([we,We]),ds=Zs(b,di);mt(ds)}return Ar}function Oc(Kn){if(ne=!0,We=Kn,Z){let di=vg([we,We]),ds=Zs(b,di);mt(ds)}return Ar}function Ro(){}return it=XT(Ro,ea,kp),ht=XT(Ro,ea,Oc),R(O._closedPromise,Kn=>{Pc(it._readableStreamController,Kn),Pc(ht._readableStreamController,Kn),(!Z||!ne)&&mt(void 0)}),[it,ht]}function jAe(b){let C=Js(b),O=!1,G=!1,K=!1,Z=!1,ne=!1,we,We,it,ht,mt,Ar=g(Ae=>{mt=Ae});function ea(Ae){R(Ae._closedPromise,nt=>{Ae===C&&(Qs(it._readableStreamController,nt),Qs(ht._readableStreamController,nt),(!Z||!ne)&&mt(void 0))})}function kp(){xl(C)&&(M(C),C=Js(b),ea(C)),gg(C,{_chunkSteps:nt=>{L(()=>{G=!1,K=!1;let zt=nt,Ni=nt;if(!Z&&!ne)try{Ni=rB(nt)}catch(Fp){Qs(it._readableStreamController,Fp),Qs(ht._readableStreamController,Fp),mt(Zs(b,Fp));return}Z||hx(it._readableStreamController,zt),ne||hx(ht._readableStreamController,Ni),O=!1,G?Ro():K&&Kn()})},_closeSteps:()=>{O=!1,Z||bg(it._readableStreamController),ne||bg(ht._readableStreamController),it._readableStreamController._pendingPullIntos.length>0&&mx(it._readableStreamController,0),ht._readableStreamController._pendingPullIntos.length>0&&mx(ht._readableStreamController,0),(!Z||!ne)&&mt(void 0)},_errorSteps:()=>{O=!1}})}function Oc(Ae,nt){Dc(C)&&(M(C),C=pB(b),ea(C));let zt=nt?ht:it,Ni=nt?it:ht;mB(C,Ae,{_chunkSteps:$p=>{L(()=>{G=!1,K=!1;let Lp=nt?ne:Z;if(nt?Z:ne)Lp||gx(zt._readableStreamController,$p);else{let JB;try{JB=rB($p)}catch(QT){Qs(zt._readableStreamController,QT),Qs(Ni._readableStreamController,QT),mt(Zs(b,QT));return}Lp||gx(zt._readableStreamController,$p),hx(Ni._readableStreamController,JB)}O=!1,G?Ro():K&&Kn()})},_closeSteps:$p=>{O=!1;let Lp=nt?ne:Z,qx=nt?Z:ne;Lp||bg(zt._readableStreamController),qx||bg(Ni._readableStreamController),$p!==void 0&&(Lp||gx(zt._readableStreamController,$p),!qx&&Ni._readableStreamController._pendingPullIntos.length>0&&mx(Ni._readableStreamController,0)),(!Lp||!qx)&&mt(void 0)},_errorSteps:()=>{O=!1}})}function Ro(){if(O)return G=!0,v(void 0);O=!0;let Ae=$T(it._readableStreamController);return Ae===null?kp():Oc(Ae._view,!1),v(void 0)}function Kn(){if(O)return K=!0,v(void 0);O=!0;let Ae=$T(ht._readableStreamController);return Ae===null?kp():Oc(Ae._view,!0),v(void 0)}function di(Ae){if(Z=!0,we=Ae,ne){let nt=vg([we,We]),zt=Zs(b,nt);mt(zt)}return Ar}function ds(Ae){if(ne=!0,We=Ae,Z){let nt=vg([we,We]),zt=Zs(b,nt);mt(zt)}return Ar}function Ao(){}return it=NB(Ao,Ro,di),ht=NB(Ao,Kn,ds),ea(C),[it,ht]}function BAe(b,C){Te(b,C);let O=b,G=O?.autoAllocateChunkSize,K=O?.cancel,Z=O?.pull,ne=O?.start,we=O?.type;return{autoAllocateChunkSize:G===void 0?void 0:br(G,`${C} has member 'autoAllocateChunkSize' that`),cancel:K===void 0?void 0:UAe(K,O,`${C} has member 'cancel' that`),pull:Z===void 0?void 0:GAe(Z,O,`${C} has member 'pull' that`),start:ne===void 0?void 0:WAe(ne,O,`${C} has member 'start' that`),type:we===void 0?void 0:HAe(we,`${C} has member 'type' that`)}}function UAe(b,C,O){return Wt(b,O),G=>V(b,C,[G])}function GAe(b,C,O){return Wt(b,O),G=>V(b,C,[G])}function WAe(b,C,O){return Wt(b,O),G=>U(b,C,[G])}function HAe(b,C){if(b=`${b}`,b!=="bytes")throw new TypeError(`${C} '${b}' is not a valid enumeration value for ReadableStreamType`);return b}function zAe(b,C){Te(b,C);let O=b?.mode;return{mode:O===void 0?void 0:VAe(O,`${C} has member 'mode' that`)}}function VAe(b,C){if(b=`${b}`,b!=="byob")throw new TypeError(`${C} '${b}' is not a valid enumeration value for ReadableStreamReaderMode`);return b}function YAe(b,C){return Te(b,C),{preventCancel:!!b?.preventCancel}}function LB(b,C){Te(b,C);let O=b?.preventAbort,G=b?.preventCancel,K=b?.preventClose,Z=b?.signal;return Z!==void 0&&KAe(Z,`${C} has member 'signal' that`),{preventAbort:!!O,preventCancel:!!G,preventClose:!!K,signal:Z}}function KAe(b,C){if(!oAe(b))throw new TypeError(`${C} is not an AbortSignal.`)}function XAe(b,C){Te(b,C);let O=b?.readable;ue(O,"readable","ReadableWritablePair"),vl(O,`${C} has member 'readable' that`);let G=b?.writable;return ue(G,"writable","ReadableWritablePair"),gB(G,`${C} has member 'writable' that`),{readable:O,writable:G}}class Tc{constructor(C={},O={}){C===void 0?C=null:pe(C,"First parameter");let G=bx(O,"Second parameter"),K=BAe(C,"First parameter");if(JT(this),K.type==="bytes"){if(G.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");let Z=_g(G,0);Q2e(this,K,Z)}else{let Z=yx(G),ne=_g(G,1);NAe(this,K,ne,Z)}}get locked(){if(!Rc(this))throw El("locked");return Ac(this)}cancel(C=void 0){return Rc(this)?Ac(this)?x(new TypeError("Cannot cancel a stream that already has a reader")):Zs(this,C):x(El("cancel"))}getReader(C=void 0){if(!Rc(this))throw El("getReader");return zAe(C,"First parameter").mode===void 0?Js(this):pB(this)}pipeThrough(C,O={}){if(!Rc(this))throw El("pipeThrough");Ge(C,1,"pipeThrough");let G=XAe(C,"First parameter"),K=LB(O,"Second parameter");if(Ac(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Rp(G.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");let Z=kB(this,G.writable,K.preventClose,K.preventAbort,K.preventCancel,K.signal);return F(Z),G.readable}pipeTo(C,O={}){if(!Rc(this))return x(El("pipeTo"));if(C===void 0)return x("Parameter 1 is required in 'pipeTo'.");if(!Tp(C))return x(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let G;try{G=LB(O,"Second parameter")}catch(K){return x(K)}return Ac(this)?x(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Rp(C)?x(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):kB(this,C,G.preventClose,G.preventAbort,G.preventCancel,G.signal)}tee(){if(!Rc(this))throw El("tee");let C=MAe(this);return vg(C)}values(C=void 0){if(!Rc(this))throw El("values");let O=YAe(C,"First parameter");return H2e(this,O.preventCancel)}}Object.defineProperties(Tc.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Tc.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),typeof r.asyncIterator=="symbol"&&Object.defineProperty(Tc.prototype,r.asyncIterator,{value:Tc.prototype.values,writable:!0,configurable:!0});function XT(b,C,O,G=1,K=()=>1){let Z=Object.create(Tc.prototype);JT(Z);let ne=Object.create(Op.prototype);return $B(Z,ne,b,C,O,G,K),Z}function NB(b,C,O){let G=Object.create(Tc.prototype);JT(G);let K=Object.create(Pp.prototype);return fB(G,K,b,C,O,0,void 0),G}function JT(b){b._state="readable",b._reader=void 0,b._storedError=void 0,b._disturbed=!1}function Rc(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_readableStreamController")?!1:b instanceof Tc}function Ac(b){return b._reader!==void 0}function Zs(b,C){if(b._disturbed=!0,b._state==="closed")return v(void 0);if(b._state==="errored")return x(b._storedError);Tg(b);let O=b._reader;O!==void 0&&xl(O)&&(O._readIntoRequests.forEach(K=>{K._closeSteps(void 0)}),O._readIntoRequests=new W);let G=b._readableStreamController[Lt](C);return k(G,n)}function Tg(b){b._state="closed";let C=b._reader;C!==void 0&&(ae(C),Dc(C)&&(C._readRequests.forEach(O=>{O._closeSteps()}),C._readRequests=new W))}function MB(b,C){b._state="errored",b._storedError=C;let O=b._reader;O!==void 0&&(Y(O,C),Dc(O)?(O._readRequests.forEach(G=>{G._errorSteps(C)}),O._readRequests=new W):(O._readIntoRequests.forEach(G=>{G._errorSteps(C)}),O._readIntoRequests=new W))}function El(b){return new TypeError(`ReadableStream.prototype.${b} can only be used on a ReadableStream`)}function qB(b,C){Te(b,C);let O=b?.highWaterMark;return ue(O,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Be(O)}}let jB=b=>b.byteLength;try{Object.defineProperty(jB,"name",{value:"size",configurable:!0})}catch{}class Ox{constructor(C){Ge(C,1,"ByteLengthQueuingStrategy"),C=qB(C,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=C.highWaterMark}get highWaterMark(){if(!UB(this))throw BB("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!UB(this))throw BB("size");return jB}}Object.defineProperties(Ox.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ox.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function BB(b){return new TypeError(`ByteLengthQueuingStrategy.prototype.${b} can only be used on a ByteLengthQueuingStrategy`)}function UB(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_byteLengthQueuingStrategyHighWaterMark")?!1:b instanceof Ox}let GB=()=>1;try{Object.defineProperty(GB,"name",{value:"size",configurable:!0})}catch{}class Ix{constructor(C){Ge(C,1,"CountQueuingStrategy"),C=qB(C,"First parameter"),this._countQueuingStrategyHighWaterMark=C.highWaterMark}get highWaterMark(){if(!HB(this))throw WB("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!HB(this))throw WB("size");return GB}}Object.defineProperties(Ix.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Ix.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function WB(b){return new TypeError(`CountQueuingStrategy.prototype.${b} can only be used on a CountQueuingStrategy`)}function HB(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_countQueuingStrategyHighWaterMark")?!1:b instanceof Ix}function JAe(b,C){Te(b,C);let O=b?.flush,G=b?.readableType,K=b?.start,Z=b?.transform,ne=b?.writableType;return{flush:O===void 0?void 0:QAe(O,b,`${C} has member 'flush' that`),readableType:G,start:K===void 0?void 0:ZAe(K,b,`${C} has member 'start' that`),transform:Z===void 0?void 0:eOe(Z,b,`${C} has member 'transform' that`),writableType:ne}}function QAe(b,C,O){return Wt(b,O),G=>V(b,C,[G])}function ZAe(b,C,O){return Wt(b,O),G=>U(b,C,[G])}function eOe(b,C,O){return Wt(b,O),(G,K)=>V(b,C,[G,K])}class kx{constructor(C={},O={},G={}){C===void 0&&(C=null);let K=bx(O,"Second parameter"),Z=bx(G,"Third parameter"),ne=JAe(C,"First parameter");if(ne.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(ne.writableType!==void 0)throw new RangeError("Invalid writableType specified");let we=_g(Z,0),We=yx(Z),it=_g(K,1),ht=yx(K),mt,Ar=g(ea=>{mt=ea});tOe(this,Ar,it,ht,we,We),nOe(this,ne),ne.start!==void 0?mt(ne.start(this._transformStreamController)):mt(void 0)}get readable(){if(!zB(this))throw XB("readable");return this._readable}get writable(){if(!zB(this))throw XB("writable");return this._writable}}Object.defineProperties(kx.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(kx.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function tOe(b,C,O,G,K,Z){function ne(){return C}function we(Ar){return aOe(b,Ar)}function We(Ar){return oOe(b,Ar)}function it(){return cOe(b)}b._writable=lAe(ne,we,it,We,O,G);function ht(){return uOe(b)}function mt(Ar){return $x(b,Ar),v(void 0)}b._readable=XT(ne,ht,mt,K,Z),b._backpressure=void 0,b._backpressureChangePromise=void 0,b._backpressureChangePromise_resolve=void 0,Lx(b,!0),b._transformStreamController=void 0}function zB(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_transformStreamController")?!1:b instanceof kx}function Fx(b,C){Pc(b._readable._readableStreamController,C),$x(b,C)}function $x(b,C){VB(b._transformStreamController),GT(b._writable._writableStreamController,C),b._backpressure&&Lx(b,!1)}function Lx(b,C){b._backpressureChangePromise!==void 0&&b._backpressureChangePromise_resolve(),b._backpressureChangePromise=g(O=>{b._backpressureChangePromise_resolve=O}),b._backpressure=C}class Rg{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Nx(this))throw Mx("desiredSize");let C=this._controlledTransformStream._readable._readableStreamController;return KT(C)}enqueue(C=void 0){if(!Nx(this))throw Mx("enqueue");YB(this,C)}error(C=void 0){if(!Nx(this))throw Mx("error");iOe(this,C)}terminate(){if(!Nx(this))throw Mx("terminate");sOe(this)}}Object.defineProperties(Rg.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof r.toStringTag=="symbol"&&Object.defineProperty(Rg.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Nx(b){return!o(b)||!Object.prototype.hasOwnProperty.call(b,"_controlledTransformStream")?!1:b instanceof Rg}function rOe(b,C,O,G){C._controlledTransformStream=b,b._transformStreamController=C,C._transformAlgorithm=O,C._flushAlgorithm=G}function nOe(b,C){let O=Object.create(Rg.prototype),G=Z=>{try{return YB(O,Z),v(void 0)}catch(ne){return x(ne)}},K=()=>v(void 0);C.transform!==void 0&&(G=Z=>C.transform(Z,O)),C.flush!==void 0&&(K=()=>C.flush(O)),rOe(b,O,G,K)}function VB(b){b._transformAlgorithm=void 0,b._flushAlgorithm=void 0}function YB(b,C){let O=b._controlledTransformStream,G=O._readable._readableStreamController;if(!Ip(G))throw new TypeError("Readable side is not in a state that permits enqueue");try{Rx(G,C)}catch(Z){throw $x(O,Z),O._readable._storedError}LAe(G)!==O._backpressure&&Lx(O,!0)}function iOe(b,C){Fx(b._controlledTransformStream,C)}function KB(b,C){let O=b._transformAlgorithm(C);return k(O,void 0,G=>{throw Fx(b._controlledTransformStream,G),G})}function sOe(b){let C=b._controlledTransformStream,O=C._readable._readableStreamController;Pg(O);let G=new TypeError("TransformStream terminated");$x(C,G)}function aOe(b,C){let O=b._transformStreamController;if(b._backpressure){let G=b._backpressureChangePromise;return k(G,()=>{let K=b._writable;if(K._state==="erroring")throw K._storedError;return KB(O,C)})}return KB(O,C)}function oOe(b,C){return Fx(b,C),v(void 0)}function cOe(b){let C=b._readable,O=b._transformStreamController,G=O._flushAlgorithm();return VB(O),k(G,()=>{if(C._state==="errored")throw C._storedError;Pg(C._readableStreamController)},K=>{throw Fx(b,K),C._storedError})}function uOe(b){return Lx(b,!1),b._backpressureChangePromise}function Mx(b){return new TypeError(`TransformStreamDefaultController.prototype.${b} can only be used on a TransformStreamDefaultController`)}function XB(b){return new TypeError(`TransformStream.prototype.${b} can only be used on a TransformStream`)}e.ByteLengthQueuingStrategy=Ox,e.CountQueuingStrategy=Ix,e.ReadableByteStreamController=Pp,e.ReadableStream=Tc,e.ReadableStreamBYOBReader=wg,e.ReadableStreamBYOBRequest=yg,e.ReadableStreamDefaultController=Op,e.ReadableStreamDefaultReader=mg,e.TransformStream=kx,e.TransformStreamDefaultController=Rg,e.WritableStream=Eg,e.WritableStreamDefaultController=Ap,e.WritableStreamDefaultWriter=Sg,Object.defineProperty(e,"__esModule",{value:!0})})});var xte=S(()=>{"use strict";if(!globalThis.ReadableStream)try{let e=require("process"),{emitWarning:r}=e;try{e.emitWarning=()=>{},Object.assign(globalThis,require("stream/web")),e.emitWarning=r}catch(n){throw e.emitWarning=r,n}}catch{Object.assign(globalThis,bte())}try{let{Blob:e}=require("buffer");e&&!e.prototype.stream&&(e.prototype.stream=function(n){let i=0,a=this;return new ReadableStream({type:"bytes",async pull(o){let u=await a.slice(i,Math.min(a.size,i+65536)).arrayBuffer();i+=u.byteLength,o.enqueue(new Uint8Array(u)),i===a.size&&o.close()}})})}catch{}});async function*Xk(e,r=!0){for(let n of e)if("stream"in n)yield*n.stream();else if(ArrayBuffer.isView(n))if(r){let i=n.byteOffset,a=n.byteOffset+n.byteLength;for(;i!==a;){let o=Math.min(a-i,wte),c=n.buffer.slice(i,i+o);i+=c.byteLength,yield new Uint8Array(c)}}else yield n;else{let i=0,a=n;for(;i!==a.size;){let c=await a.slice(i,Math.min(a.size,i+wte)).arrayBuffer();i+=c.byteLength,yield new Uint8Array(c)}}}var bNt,wte,Wo,Gv,Nd,yE,nf,_te,w7e,Ho,Wv=Np(()=>{"use strict";bNt=B(xte(),1);wte=65536;_te=(nf=class{constructor(r=[],n={}){Ee(this,Wo,[]);Ee(this,Gv,"");Ee(this,Nd,0);Ee(this,yE,"transparent");if(typeof r!="object"||r===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(typeof r[Symbol.iterator]!="function")throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof n!="object"&&typeof n!="function")throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");n===null&&(n={});let i=new TextEncoder;for(let o of r){let c;ArrayBuffer.isView(o)?c=new Uint8Array(o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)):o instanceof ArrayBuffer?c=new Uint8Array(o.slice(0)):o instanceof nf?c=o:c=i.encode(`${o}`),fe(this,Nd,$(this,Nd)+(ArrayBuffer.isView(c)?c.byteLength:c.size)),$(this,Wo).push(c)}fe(this,yE,`${n.endings===void 0?"transparent":n.endings}`);let a=n.type===void 0?"":String(n.type);fe(this,Gv,/^[\x20-\x7E]*$/.test(a)?a:"")}get size(){return $(this,Nd)}get type(){return $(this,Gv)}async text(){let r=new TextDecoder,n="";for await(let i of Xk($(this,Wo),!1))n+=r.decode(i,{stream:!0});return n+=r.decode(),n}async arrayBuffer(){let r=new Uint8Array(this.size),n=0;for await(let i of Xk($(this,Wo),!1))r.set(i,n),n+=i.length;return r.buffer}stream(){let r=Xk($(this,Wo),!0);return new globalThis.ReadableStream({type:"bytes",async pull(n){let i=await r.next();i.done?n.close():n.enqueue(i.value)},async cancel(){await r.return()}})}slice(r=0,n=this.size,i=""){let{size:a}=this,o=r<0?Math.max(a+r,0):Math.min(r,a),c=n<0?Math.max(a+n,0):Math.min(n,a),u=Math.max(c-o,0),l=$(this,Wo),f=[],p=0;for(let v of l){if(p>=u)break;let x=ArrayBuffer.isView(v)?v.byteLength:v.size;if(o&&x<=o)o-=x,c-=x;else{let E;ArrayBuffer.isView(v)?(E=v.subarray(o,Math.min(x,c)),p+=E.byteLength):(E=v.slice(o,Math.min(x,c)),p+=E.size),c-=x,f.push(E),o=0}}let g=new nf([],{type:String(i).toLowerCase()});return fe(g,Nd,u),fe(g,Wo,f),g}get[Symbol.toStringTag](){return"Blob"}static[Symbol.hasInstance](r){return r&&typeof r=="object"&&typeof r.constructor=="function"&&(typeof r.stream=="function"||typeof r.arrayBuffer=="function")&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}},Wo=new WeakMap,Gv=new WeakMap,Nd=new WeakMap,yE=new WeakMap,nf);Object.defineProperties(_te.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}});w7e=_te,Ho=w7e});var Hv,zv,Ete,_7e,E7e,Md,Jk=Np(()=>{"use strict";Wv();_7e=(Ete=class extends Ho{constructor(n,i,a={}){if(arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);super(n,a);Ee(this,Hv,0);Ee(this,zv,"");a===null&&(a={});let o=a.lastModified===void 0?Date.now():Number(a.lastModified);Number.isNaN(o)||fe(this,Hv,o),fe(this,zv,String(i))}get name(){return $(this,zv)}get lastModified(){return $(this,Hv)}get[Symbol.toStringTag](){return"File"}static[Symbol.hasInstance](n){return!!n&&n instanceof Ho&&/^(File)$/.test(n[Symbol.toStringTag])}},Hv=new WeakMap,zv=new WeakMap,Ete),E7e=_7e,Md=E7e});function Pte(e,r=Ho){var n=`${Ste()}${Ste()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),i=[],a=`--${n}\r -Content-Disposition: form-data; name="`;return e.forEach((o,c)=>typeof o=="string"?i.push(a+Qk(c)+`"\r -\r -${o.replace(/\r(?!\n)|(?{"use strict";Wv();Jk();({toStringTag:Vv,iterator:S7e,hasInstance:D7e}=Symbol),Ste=Math.random,C7e="append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","),Dte=(e,r,n)=>(e+="",/^(Blob|File)$/.test(r&&r[Vv])?[(n=n!==void 0?n+"":r[Vv]=="File"?r.name:"blob",e),r.name!==n||r[Vv]=="blob"?new Md([r],n,r):r]:[e,r+""]),Qk=(e,r)=>(r?e:e.replace(/\r?\n|\r/g,`\r -`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),sf=(e,r,n)=>{if(r.lengthtypeof r[n]!="function")}append(...r){sf("append",arguments,2),$(this,Ps).push(Dte(...r))}delete(r){sf("delete",arguments,1),r+="",fe(this,Ps,$(this,Ps).filter(([n])=>n!==r))}get(r){sf("get",arguments,1),r+="";for(var n=$(this,Ps),i=n.length,a=0;ai[0]===r&&n.push(i[1])),n}has(r){return sf("has",arguments,1),r+="",$(this,Ps).some(n=>n[0]===r)}forEach(r,n){sf("forEach",arguments,1);for(var[i,a]of this)r.call(n,a,i,this)}set(...r){sf("set",arguments,2);var n=[],i=!0;r=Dte(...r),$(this,Ps).forEach(a=>{a[0]===r[0]?i&&(i=!n.push(r)):n.push(a)}),i&&n.push(r),fe(this,Ps,n)}*entries(){yield*$(this,Ps)}*keys(){for(var[r]of this)yield r}*values(){for(var[,r]of this)yield r}},Ps=new WeakMap,Cte)});var Ite=S(($Nt,Ote)=>{"use strict";if(!globalThis.DOMException)try{let{MessageChannel:e}=require("worker_threads"),r=new e().port1,n=new ArrayBuffer;r.postMessage(n,[n,n])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}Ote.exports=globalThis.DOMException});var wE,P7e,MNt,eF=Np(()=>{"use strict";wE=require("fs"),P7e=B(Ite(),1);Jk();Wv();({stat:MNt}=wE.promises)});var Fte={};Xn(Fte,{toFormData:()=>F7e});function k7e(e){let r=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!r)return;let n=r[2]||r[3]||"",i=n.slice(n.lastIndexOf("\\")+1);return i=i.replace(/%22/g,'"'),i=i.replace(/&#(\d{4});/g,(a,o)=>String.fromCharCode(o)),i}async function F7e(e,r){if(!/multipart/i.test(r))throw new TypeError("Failed to fetch");let n=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");let i=new tF(n[1]||n[2]),a,o,c,u,l,f,p=[],g=new af,v=R=>{c+=P.decode(R,{stream:!0})},x=R=>{p.push(R)},E=()=>{let R=new Md(p,f,{type:l});g.append(u,R)},D=()=>{g.append(u,c)},P=new TextDecoder("utf-8");P.decode(),i.onPartBegin=function(){i.onPartData=v,i.onPartEnd=D,a="",o="",c="",u="",l="",f=null,p.length=0},i.onHeaderField=function(R){a+=P.decode(R,{stream:!0})},i.onHeaderValue=function(R){o+=P.decode(R,{stream:!0})},i.onHeaderEnd=function(){if(o+=P.decode(),a=a.toLowerCase(),a==="content-disposition"){let R=o.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);R&&(u=R[2]||R[3]||""),f=k7e(o),f&&(i.onPartData=x,i.onPartEnd=E)}else a==="content-type"&&(l=o);o="",a=""};for await(let R of e)i.write(R);return i.end(),g}var Ka,Yt,kte,vu,_E,EE,T7e,Kv,R7e,A7e,O7e,I7e,of,tF,$te=Np(()=>{"use strict";eF();bE();Ka=0,Yt={START_BOUNDARY:Ka++,HEADER_FIELD_START:Ka++,HEADER_FIELD:Ka++,HEADER_VALUE_START:Ka++,HEADER_VALUE:Ka++,HEADER_VALUE_ALMOST_DONE:Ka++,HEADERS_ALMOST_DONE:Ka++,PART_DATA_START:Ka++,PART_DATA:Ka++,END:Ka++},kte=1,vu={PART_BOUNDARY:kte,LAST_BOUNDARY:kte*=2},_E=10,EE=13,T7e=32,Kv=45,R7e=58,A7e=97,O7e=122,I7e=e=>e|32,of=()=>{},tF=class{constructor(r){this.index=0,this.flags=0,this.onHeaderEnd=of,this.onHeaderField=of,this.onHeadersEnd=of,this.onHeaderValue=of,this.onPartBegin=of,this.onPartData=of,this.onPartEnd=of,this.boundaryChars={},r=`\r ---`+r;let n=new Uint8Array(r.length);for(let i=0;i{this[L+"Mark"]=n},R=L=>{delete this[L+"Mark"]},k=(L,U,V,j)=>{(U===void 0||U!==V)&&this[L](j&&j.subarray(U,V))},F=(L,U)=>{let V=L+"Mark";V in this&&(U?(k(L,this[V],n,r),delete this[V]):(k(L,this[V],r.length,r),this[V]=0))};for(n=0;nO7e)return;break;case Yt.HEADER_VALUE_START:if(E===T7e)break;P("onHeaderValue"),f=Yt.HEADER_VALUE;case Yt.HEADER_VALUE:E===EE&&(F("onHeaderValue",!0),k("onHeaderEnd"),f=Yt.HEADER_VALUE_ALMOST_DONE);break;case Yt.HEADER_VALUE_ALMOST_DONE:if(E!==_E)return;f=Yt.HEADER_FIELD_START;break;case Yt.HEADERS_ALMOST_DONE:if(E!==_E)return;k("onHeadersEnd"),f=Yt.PART_DATA_START;break;case Yt.PART_DATA_START:f=Yt.PART_DATA,P("onPartData");case Yt.PART_DATA:if(a=l,l===0){for(n+=v;n0)o[l-1]=E;else if(a>0){let L=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);k("onPartData",0,a,L),a=0,P("onPartData"),n--}break;case Yt.END:break;default:throw new Error(`Unexpected state entered: ${f}`)}F("onHeaderField"),F("onHeaderValue"),F("onPartData"),this.index=l,this.state=f,this.flags=p}end(){if(this.state===Yt.HEADER_FIELD_START&&this.index===0||this.state===Yt.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==Yt.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}});var Zte=S((TMt,Qte)=>{"use strict";function As(e,r){typeof r=="boolean"&&(r={forever:r}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=r||{},this._maxRetryTime=r&&r.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Qte.exports=As;As.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};As.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};As.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var r=new Date().getTime();if(e&&r-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},n),this._options.unref&&this._timer.unref(),!0};As.prototype.attempt=function(e,r){this._fn=e,r&&(r.timeout&&(this._operationTimeout=r.timeout),r.cb&&(this._operationTimeoutCb=r.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};As.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};As.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};As.prototype.start=As.prototype.try;As.prototype.errors=function(){return this._errors};As.prototype.attempts=function(){return this._attempts};As.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},r=null,n=0,i=0;i=n&&(r=a,n=c)}return r}});var ere=S(lf=>{"use strict";var U7e=Zte();lf.operation=function(e){var r=lf.timeouts(e);return new U7e(r,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};lf.timeouts=function(e){if(e instanceof Array)return[].concat(e);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in e)r[n]=e[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a{"use strict";tre.exports=ere()});var ire=S((OMt,RE)=>{"use strict";var G7e=rre(),W7e=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],TE=class extends Error{constructor(r){super(),r instanceof Error?(this.originalError=r,{message:r}=r):(this.originalError=new Error(r),this.originalError.stack=this.stack),this.name="AbortError",this.message=r}},H7e=(e,r,n)=>{let i=n.retries-(r-1);return e.attemptNumber=r,e.retriesLeft=i,e},z7e=e=>W7e.includes(e),nre=(e,r)=>new Promise((n,i)=>{r={onFailedAttempt:()=>{},retries:10,...r};let a=G7e.operation(r);a.attempt(async o=>{try{n(await e(o))}catch(c){if(!(c instanceof Error)){i(new TypeError(`Non-error was thrown: "${c}". You should only throw errors.`));return}if(c instanceof TE)a.stop(),i(c.originalError);else if(c instanceof TypeError&&!z7e(c.message))a.stop(),i(c);else{H7e(c,o,r);try{await r.onFailedAttempt(c)}catch(u){i(u);return}a.retry(c)||i(a.mainError())}}})});RE.exports=nre;RE.exports.default=nre;RE.exports.AbortError=TE});var sF=S((IMt,sre)=>{"use strict";var Bd=1e3,Ud=Bd*60,Gd=Ud*60,ff=Gd*24,V7e=ff*7,Y7e=ff*365.25;sre.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return K7e(e);if(n==="number"&&isFinite(e))return r.long?J7e(e):X7e(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function K7e(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),i=(r[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*Y7e;case"weeks":case"week":case"w":return n*V7e;case"days":case"day":case"d":return n*ff;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Gd;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ud;case"seconds":case"second":case"secs":case"sec":case"s":return n*Bd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function X7e(e){var r=Math.abs(e);return r>=ff?Math.round(e/ff)+"d":r>=Gd?Math.round(e/Gd)+"h":r>=Ud?Math.round(e/Ud)+"m":r>=Bd?Math.round(e/Bd)+"s":e+"ms"}function J7e(e){var r=Math.abs(e);return r>=ff?AE(e,r,ff,"day"):r>=Gd?AE(e,r,Gd,"hour"):r>=Ud?AE(e,r,Ud,"minute"):r>=Bd?AE(e,r,Bd,"second"):e+" ms"}function AE(e,r,n,i){var a=r>=n*1.5;return Math.round(e/n)+" "+i+(a?"s":"")}});var aF=S((kMt,are)=>{"use strict";function Q7e(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=a,n.enabled=c,n.humanize=sF(),n.destroy=f,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function r(p){let g=0;for(let v=0;v{if(V==="%%")return"%";L++;let W=n.formatters[j];if(typeof W=="function"){let q=P[L];V=W.call(R,q),P.splice(L,1),L--}return V}),n.formatArgs.call(R,P),(R.log||n.log).apply(R,P)}return D.namespace=p,D.useColors=n.useColors(),D.color=n.selectColor(p),D.extend=i,D.destroy=n.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(x!==n.namespaces&&(x=n.namespaces,E=n.enabled(p)),E),set:P=>{v=P}}),typeof n.init=="function"&&n.init(D),D}function i(p,g){let v=n(this.namespace+(typeof g>"u"?":":g)+p);return v.log=this.log,v}function a(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];let g,v=(typeof p=="string"?p:"").split(/[\s,]+/),x=v.length;for(g=0;g"-"+g)].join(",");return n.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let g,v;for(g=0,v=n.skips.length;g{"use strict";Ji.formatArgs=eGe;Ji.save=tGe;Ji.load=rGe;Ji.useColors=Z7e;Ji.storage=nGe();Ji.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ji.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Z7e(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function eGe(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+OE.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}Ji.log=console.debug||console.log||(()=>{});function tGe(e){try{e?Ji.storage.setItem("debug",e):Ji.storage.removeItem("debug")}catch{}}function rGe(){let e;try{e=Ji.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function nGe(){try{return localStorage}catch{}}OE.exports=aF()(Ji);var{formatters:iGe}=OE.exports;iGe.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});var cF=S((FMt,ure)=>{"use strict";var sGe=require("os"),cre=require("tty"),Os=Jx(),{env:dn}=process,IE;Os("no-color")||Os("no-colors")||Os("color=false")||Os("color=never")?IE=0:(Os("color")||Os("colors")||Os("color=true")||Os("color=always"))&&(IE=1);function aGe(){if("FORCE_COLOR"in dn)return dn.FORCE_COLOR==="true"?1:dn.FORCE_COLOR==="false"?0:dn.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(dn.FORCE_COLOR,10),3)}function oGe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function cGe(e,{streamIsTTY:r,sniffFlags:n=!0}={}){let i=aGe();i!==void 0&&(IE=i);let a=n?IE:i;if(a===0)return 0;if(n){if(Os("color=16m")||Os("color=full")||Os("color=truecolor"))return 3;if(Os("color=256"))return 2}if(e&&!r&&a===void 0)return 0;let o=a||0;if(dn.TERM==="dumb")return o;if(process.platform==="win32"){let c=sGe.release().split(".");return Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in dn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(c=>c in dn)||dn.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in dn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dn.TEAMCITY_VERSION)?1:0;if(dn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dn){let c=Number.parseInt((dn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dn.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dn.TERM)||"COLORTERM"in dn?1:o}function oF(e,r={}){let n=cGe(e,{streamIsTTY:e&&e.isTTY,...r});return oGe(n)}ure.exports={supportsColor:oF,stdout:oF({isTTY:cre.isatty(1)}),stderr:oF({isTTY:cre.isatty(2)})}});var fre=S((hn,FE)=>{"use strict";var uGe=require("tty"),kE=require("util");hn.init=gGe;hn.log=dGe;hn.formatArgs=fGe;hn.save=hGe;hn.load=mGe;hn.useColors=lGe;hn.destroy=kE.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");hn.colors=[6,2,3,4,5,1];try{let e=cF();e&&(e.stderr||e).level>=2&&(hn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}hn.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,r)=>{let n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(a,o)=>o.toUpperCase()),i=process.env[r];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[n]=i,e},{});function lGe(){return"colors"in hn.inspectOpts?!!hn.inspectOpts.colors:uGe.isatty(process.stderr.fd)}function fGe(e){let{namespace:r,useColors:n}=this;if(n){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${a};1m${r} \x1B[0m`;e[0]=o+e[0].split(` -`).join(` -`+o),e.push(a+"m+"+FE.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=pGe()+r+" "+e[0]}function pGe(){return hn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dGe(...e){return process.stderr.write(kE.formatWithOptions(hn.inspectOpts,...e)+` -`)}function hGe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function mGe(){return process.env.DEBUG}function gGe(e){e.inspectOpts={};let r=Object.keys(hn.inspectOpts);for(let n=0;nr.trim()).join(" ")};lre.O=function(e){return this.inspectOpts.colors=this.useColors,kE.inspect(e,this.inspectOpts)}});var $E=S(($Mt,uF)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?uF.exports=ore():uF.exports=fre()});var hre=S(Si=>{"use strict";var vGe=Si&&Si.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),yGe=Si&&Si.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),pre=Si&&Si.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&vGe(r,e,n);return yGe(r,e),r};Object.defineProperty(Si,"__esModule",{value:!0});Si.req=Si.json=Si.toBuffer=void 0;var bGe=pre(require("http")),xGe=pre(require("https"));async function dre(e){let r=0,n=[];for await(let i of e)r+=i.length,n.push(i);return Buffer.concat(n,r)}Si.toBuffer=dre;async function wGe(e){let n=(await dre(e)).toString("utf8");try{return JSON.parse(n)}catch(i){let a=i;throw a.message+=` (input: ${n})`,a}}Si.json=wGe;function _Ge(e,r={}){let i=((typeof e=="string"?e:e.href).startsWith("https:")?xGe:bGe).request(e,r),a=new Promise((o,c)=>{i.once("response",o).once("error",c).end()});return i.then=a.then.bind(a),i}Si.req=_Ge});var fF=S(Qi=>{"use strict";var gre=Qi&&Qi.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),EGe=Qi&&Qi.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),SGe=Qi&&Qi.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&gre(r,e,n);return EGe(r,e),r},DGe=Qi&&Qi.__exportStar||function(e,r){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&gre(r,e,n)};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Agent=void 0;var mre=SGe(require("http"));DGe(hre(),Qi);var Qa=Symbol("AgentBaseInternalState"),lF=class extends mre.Agent{constructor(r){super(r),this[Qa]={}}isSecureEndpoint(r){if(r){if(typeof r.secureEndpoint=="boolean")return r.secureEndpoint;if(typeof r.protocol=="string")return r.protocol==="https:"}let{stack:n}=new Error;return typeof n!="string"?!1:n.split(` -`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}createSocket(r,n,i){let a={...n,secureEndpoint:this.isSecureEndpoint(n)};Promise.resolve().then(()=>this.connect(r,a)).then(o=>{if(o instanceof mre.Agent)return o.addRequest(r,a);this[Qa].currentSocket=o,super.createSocket(r,n,i)},i)}createConnection(){let r=this[Qa].currentSocket;if(this[Qa].currentSocket=void 0,!r)throw new Error("No socket was returned in the `connect()` function");return r}get defaultPort(){return this[Qa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){this[Qa]&&(this[Qa].defaultPort=r)}get protocol(){return this[Qa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){this[Qa]&&(this[Qa].protocol=r)}};Qi.Agent=lF});var bre=S(Is=>{"use strict";var CGe=Is&&Is.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),PGe=Is&&Is.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),yre=Is&&Is.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&CGe(r,e,n);return PGe(r,e),r},TGe=Is&&Is.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Is,"__esModule",{value:!0});Is.HttpProxyAgent=void 0;var RGe=yre(require("net")),AGe=yre(require("tls")),OGe=TGe($E()),IGe=require("events"),kGe=fF(),vre=require("url"),Wd=(0,OGe.default)("http-proxy-agent"),LE=class extends kGe.Agent{constructor(r,n){super(n),this.proxy=typeof r=="string"?new vre.URL(r):r,this.proxyHeaders=n?.headers??{},Wd("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...n?FGe(n,"headers"):null,host:i,port:a}}addRequest(r,n){r._header=null,this.setRequestProps(r,n),super.addRequest(r,n)}setRequestProps(r,n){let{proxy:i}=this,a=n.secureEndpoint?"https:":"http:",o=r.getHeader("host")||"localhost",c=`${a}//${o}`,u=new vre.URL(r.path,c);n.port!==80&&(u.port=String(n.port)),r.path=String(u);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let f=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(l)){let p=l[f];p&&r.setHeader(f,p)}}async connect(r,n){r._header=null,r.path.includes("://")||this.setRequestProps(r,n);let i,a;Wd("Regenerating stored HTTP header string for request"),r._implicitHeader(),r.outputData&&r.outputData.length>0&&(Wd("Patching connection write() output buffer with updated header"),i=r.outputData[0].data,a=i.indexOf(`\r -\r -`)+4,r.outputData[0].data=r._header+i.substring(a),Wd("Output buffer: %o",r.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Wd("Creating `tls.Socket`: %o",this.connectOpts),o=AGe.connect(this.connectOpts)):(Wd("Creating `net.Socket`: %o",this.connectOpts),o=RGe.connect(this.connectOpts)),await(0,IGe.once)(o,"connect"),o}};LE.protocols=["http","https"];Is.HttpProxyAgent=LE;function FGe(e,...r){let n={},i;for(i in e)r.includes(i)||(n[i]=e[i]);return n}});var xre=S(Hd=>{"use strict";var $Ge=Hd&&Hd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hd,"__esModule",{value:!0});Hd.parseProxyResponse=void 0;var LGe=$Ge($E()),NE=(0,LGe.default)("https-proxy-agent:parse-proxy-response");function NGe(e){return new Promise((r,n)=>{let i=0,a=[];function o(){let p=e.read();p?f(p):e.once("readable",o)}function c(){e.removeListener("end",u),e.removeListener("error",l),e.removeListener("readable",o)}function u(){c(),NE("onend"),n(new Error("Proxy connection ended before receiving CONNECT response"))}function l(p){c(),NE("onerror %o",p),n(p)}function f(p){a.push(p),i+=p.length;let g=Buffer.concat(a,i),v=g.indexOf(`\r -\r -`);if(v===-1){NE("have not received end of HTTP headers yet..."),o();return}let x=g.slice(0,v).toString("ascii").split(`\r -`),E=x.shift();if(!E)return e.destroy(),n(new Error("No header received from proxy CONNECT response"));let D=E.split(" "),P=+D[1],R=D.slice(2).join(" "),k={};for(let F of x){if(!F)continue;let L=F.indexOf(":");if(L===-1)return e.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${F}"`));let U=F.slice(0,L).toLowerCase(),V=F.slice(L+1).trimStart(),j=k[U];typeof j=="string"?k[U]=[j,V]:Array.isArray(j)?j.push(V):k[U]=V}NE("got proxy server response: %o %o",E,k),c(),r({connect:{statusCode:P,statusText:R,headers:k},buffered:g})}e.on("error",l),e.on("end",u),o()})}Hd.parseProxyResponse=NGe});var Dre=S(ks=>{"use strict";var MGe=ks&&ks.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),qGe=ks&&ks.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Ere=ks&&ks.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&MGe(r,e,n);return qGe(r,e),r},Sre=ks&&ks.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpsProxyAgent=void 0;var pF=Ere(require("net")),wre=Ere(require("tls")),jGe=Sre(require("assert")),BGe=Sre($E()),UGe=fF(),GGe=require("url"),WGe=xre(),Zv=(0,BGe.default)("https-proxy-agent"),ME=class extends UGe.Agent{constructor(r,n){super(n),this.options={path:void 0},this.proxy=typeof r=="string"?new GGe.URL(r):r,this.proxyHeaders=n?.headers??{},Zv("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?_re(n,"headers"):null,host:i,port:a}}async connect(r,n){let{proxy:i}=this;if(!n.host)throw new TypeError('No "host" provided');let a;if(i.protocol==="https:"){Zv("Creating `tls.Socket`: %o",this.connectOpts);let v=this.connectOpts.servername||this.connectOpts.host;a=wre.connect({...this.connectOpts,servername:v})}else Zv("Creating `net.Socket`: %o",this.connectOpts),a=pF.connect(this.connectOpts);let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=pF.isIPv6(n.host)?`[${n.host}]`:n.host,u=`CONNECT ${c}:${n.port} HTTP/1.1\r -`;if(i.username||i.password){let v=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(v).toString("base64")}`}o.Host=`${c}:${n.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let v of Object.keys(o))u+=`${v}: ${o[v]}\r -`;let l=(0,WGe.parseProxyResponse)(a);a.write(`${u}\r -`);let{connect:f,buffered:p}=await l;if(r.emit("proxyConnect",f),this.emit("proxyConnect",f,r),f.statusCode===200){if(r.once("socket",HGe),n.secureEndpoint){Zv("Upgrading socket connection to TLS");let v=n.servername||n.host;return wre.connect({..._re(n,"host","path","port"),socket:a,servername:v})}return a}a.destroy();let g=new pF.Socket({writable:!1});return g.readable=!0,r.once("socket",v=>{Zv("Replaying proxy buffer for failed request"),(0,jGe.default)(v.listenerCount("data")>0),v.push(p),v.push(null)}),g}};ME.protocols=["http","https"];ks.HttpsProxyAgent=ME;function HGe(e){e.resume()}function _re(e,...r){let n={},i;for(i in e)r.includes(i)||(n[i]=e[i]);return n}});var zre=S((Wre,Hre)=>{"use strict";Wre=Hre.exports=zd;function zd(e,r){if(this.stream=r.stream||process.stderr,typeof r=="number"){var n=r;r={},r.total=n}else{if(r=r||{},typeof e!="string")throw new Error("format required");if(typeof r.total!="number")throw new Error("total required")}this.fmt=e,this.curr=r.curr||0,this.total=r.total,this.width=r.width||this.total,this.clear=r.clear,this.chars={complete:r.complete||"=",incomplete:r.incomplete||"-",head:r.head||r.complete||"="},this.renderThrottle=r.renderThrottle!==0?r.renderThrottle||16:0,this.lastRender=-1/0,this.callback=r.callback||function(){},this.tokens={},this.lastDraw=""}zd.prototype.tick=function(e,r){if(e!==0&&(e=e||1),typeof e=="object"&&(r=e,e=1),r&&(this.tokens=r),this.curr==0&&(this.start=new Date),this.curr+=e,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}};zd.prototype.render=function(e,r){if(r=r!==void 0?r:!1,e&&(this.tokens=e),!!this.stream.isTTY){var n=Date.now(),i=n-this.lastRender;if(!(!r&&i0&&(u=u.slice(0,-1)+this.chars.head),v=v.replace(":bar",u+c),this.tokens)for(var D in this.tokens)v=v.replace(":"+D,this.tokens[D]);this.lastDraw!==v&&(this.stream.cursorTo(0),this.stream.write(v),this.stream.clearLine(1),this.lastDraw=v)}}};zd.prototype.update=function(e,r){var n=Math.floor(e*this.total),i=n-this.curr;this.tick(i,r)};zd.prototype.interrupt=function(e){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(e),this.stream.write(` -`),this.stream.write(this.lastDraw)};zd.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(` -`)}});var Yre=S((QMt,Vre)=>{"use strict";Vre.exports=zre()});var Jre=S((e4t,QGe)=>{QGe.exports={name:"@prisma/fetch-engine",version:"5.22.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/fetch-engine"},bugs:"https://github.com/prisma/prisma/issues",enginesOverride:{},devDependencies:{"@swc/core":"1.6.13","@swc/jest":"0.2.36","@types/jest":"29.5.12","@types/node":"18.19.31","@types/progress":"2.0.7",del:"6.1.1",execa:"5.1.1","find-cache-dir":"5.0.0","fs-extra":"11.1.1",hasha:"5.2.2","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.5",jest:"29.7.0",kleur:"4.1.5","node-fetch":"3.3.2","p-filter":"2.1.0","p-map":"4.0.0","p-retry":"4.6.2",progress:"2.0.3",rimraf:"3.0.2","strip-ansi":"6.0.1","temp-dir":"2.0.0",tempy:"1.0.1","timeout-signal":"2.0.0",typescript:"5.4.5"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"jest",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});var Ane=S((P6t,bWe)=>{bWe.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var RF=S((T6t,VE)=>{"use strict";var xWe=require("fs"),One=require("path"),wWe=require("os"),_We=Ane(),EWe=_We.version,SWe=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function DWe(e){let r={},n=e.toString();n=n.replace(/\r\n?/mg,` -`);let i;for(;(i=SWe.exec(n))!=null;){let a=i[1],o=i[2]||"";o=o.trim();let c=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),c==='"'&&(o=o.replace(/\\n/g,` -`),o=o.replace(/\\r/g,"\r")),r[a]=o}return r}function TF(e){console.log(`[dotenv@${EWe}][DEBUG] ${e}`)}function CWe(e){return e[0]==="~"?One.join(wWe.homedir(),e.slice(1)):e}function PWe(e){let r=One.resolve(process.cwd(),".env"),n="utf8",i=!!(e&&e.debug),a=!!(e&&e.override);e&&(e.path!=null&&(r=CWe(e.path)),e.encoding!=null&&(n=e.encoding));try{let o=zE.parse(xWe.readFileSync(r,{encoding:n}));return Object.keys(o).forEach(function(c){Object.prototype.hasOwnProperty.call(process.env,c)?(a===!0&&(process.env[c]=o[c]),i&&TF(a===!0?`"${c}" is already defined in \`process.env\` and WAS overwritten`:`"${c}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[c]=o[c]}),{parsed:o}}catch(o){return i&&TF(`Failed to load ${r} ${o.message}`),{error:o}}}var zE={config:PWe,parse:DWe};VE.exports.config=zE.config;VE.exports.parse=zE.parse;VE.exports=zE});var MF=S((r5t,jne)=>{"use strict";var NF=Symbol("arg flag"),Fs=class e extends Error{constructor(r,n){super(r),this.name="ArgError",this.code=n,Object.setPrototypeOf(this,e.prototype)}};function ay(e,{argv:r=process.argv.slice(2),permissive:n=!1,stopAtPositional:i=!1}={}){if(!e)throw new Fs("argument specification object is required","ARG_CONFIG_NO_SPEC");let a={_:[]},o={},c={};for(let u of Object.keys(e)){if(!u)throw new Fs("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(u[0]!=="-")throw new Fs(`argument key must start with '-' but found: '${u}'`,"ARG_CONFIG_NONOPT_KEY");if(u.length===1)throw new Fs(`argument key must have a name; singular '-' keys are not allowed: ${u}`,"ARG_CONFIG_NONAME_KEY");if(typeof e[u]=="string"){o[u]=e[u];continue}let l=e[u],f=!1;if(Array.isArray(l)&&l.length===1&&typeof l[0]=="function"){let[p]=l;l=(g,v,x=[])=>(x.push(p(g,v,x[x.length-1])),x),f=p===Boolean||p[NF]===!0}else if(typeof l=="function")f=l===Boolean||l[NF]===!0;else throw new Fs(`type missing or not a function or valid array type: ${u}`,"ARG_CONFIG_VAD_TYPE");if(u[1]!=="-"&&u.length>2)throw new Fs(`short argument keys (with a single hyphen) must have only one character: ${u}`,"ARG_CONFIG_SHORTOPT_TOOLONG");c[u]=[l,f]}for(let u=0,l=r.length;u0){a._=a._.concat(r.slice(u));break}if(f==="--"){a._=a._.concat(r.slice(u+1));break}if(f.length>1&&f[0]==="-"){let p=f[1]==="-"||f.length===2?[f]:f.slice(1).split("").map(g=>`-${g}`);for(let g=0;g1&&r[u+1][0]==="-"&&!(r[u+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(P===Number||typeof BigInt<"u"&&P===BigInt))){let k=x===D?"":` (alias for ${D})`;throw new Fs(`option requires argument: ${x}${k}`,"ARG_MISSING_REQUIRED_LONGARG")}a[D]=P(r[u+1],D,a[D]),++u}else a[D]=P(E,D,a[D])}}else a._.push(f)}return a}ay.flag=e=>(e[NF]=!0,e);ay.COUNT=ay.flag((e,r,n)=>(n||0)+1);ay.ArgError=Fs;jne.exports=ay});var Une=S((n5t,Bne)=>{"use strict";Bne.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((n,i)=>Math.min(n,i.length),1/0):0}});var Wne=S((i5t,Gne)=>{"use strict";var LWe=Une();Gne.exports=e=>{let r=LWe(e);if(r===0)return e;let n=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(n,"")}});var G$=S((kqt,dae)=>{"use strict";var QKe=require("os");dae.exports=QKe.homedir||function(){var r=process.env.HOME,n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||r||null:process.platform==="darwin"?r||(n?"/Users/"+n:null):process.platform==="linux"?r||(process.getuid()===0?"/root":n?"/home/"+n:null):r||null}});var W$=S((Fqt,hae)=>{"use strict";hae.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(n,i){return i};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}});var mae=S(($qt,_y)=>{"use strict";var ZKe=process.platform==="win32",eXe=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,H$={};function tXe(e){return eXe.exec(e).slice(1)}H$.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=tXe(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var rXe=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,z$={};function nXe(e){return rXe.exec(e).slice(1)}z$.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=nXe(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};ZKe?_y.exports=H$.parse:_y.exports=z$.parse;_y.exports.posix=z$.parse;_y.exports.win32=H$.parse});var V$=S((Lqt,bae)=>{"use strict";var yae=require("path"),gae=yae.parse||mae(),vae=function(r,n){var i="/";/^([A-Za-z]:)/.test(r)?i="":/^\\\\/.test(r)&&(i="\\\\");for(var a=[r],o=gae(r);o.dir!==a[a.length-1];)a.push(o.dir),o=gae(o.dir);return a.reduce(function(c,u){return c.concat(n.map(function(l){return yae.resolve(i,u,l)}))},[])};bae.exports=function(r,n,i){var a=n&&n.moduleDirectory?[].concat(n.moduleDirectory):["node_modules"];if(n&&typeof n.paths=="function")return n.paths(i,r,function(){return vae(r,a)},n);var o=vae(r,a);return n&&n.paths?o.concat(n.paths):o}});var Y$=S((Nqt,xae)=>{"use strict";xae.exports=function(e,r){return r||{}}});var Eae=S((Mqt,_ae)=>{"use strict";var Ef=require("fs"),iXe=G$(),Nr=require("path"),sXe=W$(),aXe=V$(),oXe=Y$(),cXe=kd(),uXe=process.platform!=="win32"&&Ef.realpath&&typeof Ef.realpath.native=="function"?Ef.realpath.native:Ef.realpath,wae=iXe(),lXe=function(){return[Nr.join(wae,".node_modules"),Nr.join(wae,".node_libraries")]},fXe=function(r,n){Ef.stat(r,function(i,a){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?n(null,!1):n(i):n(null,a.isFile()||a.isFIFO())})},pXe=function(r,n){Ef.stat(r,function(i,a){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?n(null,!1):n(i):n(null,a.isDirectory())})},dXe=function(r,n){uXe(r,function(i,a){i&&i.code!=="ENOENT"?n(i):n(null,i?r:a)})},Ey=function(r,n,i,a){i&&i.preserveSymlinks===!1?r(n,a):a(null,n)},hXe=function(r,n,i){r(n,function(a,o){if(a)i(a);else try{var c=JSON.parse(o);i(null,c)}catch{i(null)}})},mXe=function(r,n,i){for(var a=aXe(n,i,r),o=0;o{gXe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Tae=S((jqt,Pae)=>{"use strict";var vXe=kd(),Dae=Sae(),Cae={};for(gS in Dae)Object.prototype.hasOwnProperty.call(Dae,gS)&&(Cae[gS]=vXe(gS));var gS;Pae.exports=Cae});var Aae=S((Bqt,Rae)=>{"use strict";var yXe=kd();Rae.exports=function(r){return yXe(r)}});var kae=S((Uqt,Iae)=>{"use strict";var bXe=kd(),Sf=require("fs"),Un=require("path"),xXe=G$(),wXe=W$(),_Xe=V$(),EXe=Y$(),SXe=process.platform!=="win32"&&Sf.realpathSync&&typeof Sf.realpathSync.native=="function"?Sf.realpathSync.native:Sf.realpathSync,Oae=xXe(),DXe=function(){return[Un.join(Oae,".node_modules"),Un.join(Oae,".node_libraries")]},CXe=function(r){try{var n=Sf.statSync(r,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!n&&(n.isFile()||n.isFIFO())},PXe=function(r){try{var n=Sf.statSync(r,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!n&&n.isDirectory()},TXe=function(r){try{return SXe(r)}catch(n){if(n.code!=="ENOENT")throw n}return r},Sy=function(r,n,i){return i&&i.preserveSymlinks===!1?r(n):n},RXe=function(r,n){var i=r(n);try{var a=JSON.parse(i);return a}catch{}},AXe=function(r,n,i){for(var a=_Xe(n,i,r),o=0;o{"use strict";var vS=Eae();vS.core=Tae();vS.isCore=Aae();vS.sync=kae();Fae.exports=vS});var hoe=S((lBt,doe)=>{"use strict";var zXe=typeof process=="object"&&process&&process.platform==="win32";doe.exports=zXe?{sep:"\\"}:{sep:"/"}});var Py=S((pBt,c3)=>{"use strict";var es=c3.exports=(e,r,n={})=>(_S(r),!n.nocomment&&r.charAt(0)==="#"?!1:new hh(r,n).match(e));c3.exports=es;var a3=hoe();es.sep=a3.sep;var wa=Symbol("globstar **");es.GLOBSTAR=wa;var VXe=r2(),moe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},o3="[^/]",i3=o3+"*?",YXe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",KXe="(?:(?!(?:\\/|^)\\.).)*?",yoe=e=>e.split("").reduce((r,n)=>(r[n]=!0,r),{}),goe=yoe("().*{}+?[]^$\\!"),XXe=yoe("[.("),voe=/\/+/;es.filter=(e,r={})=>(n,i,a)=>es(n,e,r);var Pu=(e,r={})=>{let n={};return Object.keys(e).forEach(i=>n[i]=e[i]),Object.keys(r).forEach(i=>n[i]=r[i]),n};es.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return es;let r=es,n=(i,a,o)=>r(i,a,Pu(e,o));return n.Minimatch=class extends r.Minimatch{constructor(a,o){super(a,Pu(e,o))}},n.Minimatch.defaults=i=>r.defaults(Pu(e,i)).Minimatch,n.filter=(i,a)=>r.filter(i,Pu(e,a)),n.defaults=i=>r.defaults(Pu(e,i)),n.makeRe=(i,a)=>r.makeRe(i,Pu(e,a)),n.braceExpand=(i,a)=>r.braceExpand(i,Pu(e,a)),n.match=(i,a,o)=>r.match(i,a,Pu(e,o)),n};es.braceExpand=(e,r)=>boe(e,r);var boe=(e,r={})=>(_S(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:VXe(e)),JXe=1024*64,_S=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>JXe)throw new TypeError("pattern is too long")},s3=Symbol("subparse");es.makeRe=(e,r)=>new hh(e,r||{}).makeRe();es.match=(e,r,n={})=>{let i=new hh(r,n);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(r),e};var QXe=e=>e.replace(/\\(.)/g,"$1"),ZXe=e=>e.replace(/\\([^-\]])/g,"$1"),eJe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tJe=e=>e.replace(/[[\]\\]/g,"\\$&"),hh=class{constructor(r,n){_S(r),n||(n={}),this.options=n,this.set=[],this.pattern=r,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.make()}debug(){}make(){let r=this.pattern,n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();n.debug&&(this.debug=(...a)=>console.error(...a)),this.debug(this.pattern,i),i=this.globParts=i.map(a=>a.split(voe)),this.debug(this.pattern,i),i=i.map((a,o,c)=>a.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(a=>a.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let r=this.pattern,n=!1,i=0;for(let a=0;a>> no match, partial?`,r,g,n,v),g===u))}var E;if(typeof f=="string"?(E=p===f,this.debug("string match",f,p,E)):(E=p.match(f),this.debug("pattern match",f,p,E)),!E)return!1}if(o===u&&c===l)return!0;if(o===u)return i;if(c===l)return o===u-1&&r[o]==="";throw new Error("wtf?")}braceExpand(){return boe(this.pattern,this.options)}parse(r,n){_S(r);let i=this.options;if(r==="**")if(i.noglobstar)r="*";else return wa;if(r==="")return"";let a="",o=!1,c=!1,u=[],l=[],f,p=!1,g=-1,v=-1,x,E,D,P=r.charAt(0)===".",R=i.dot||P,k=()=>P?"":R?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",F=j=>j.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=()=>{if(f){switch(f){case"*":a+=i3,o=!0;break;case"?":a+=o3,o=!0;break;default:a+="\\"+f;break}this.debug("clearStateChar %j %j",f,a),f=!1}};for(let j=0,W;j(M||(M="\\"),X+X+M+"|")),this.debug(`tail=%j - %s`,j,j,E,a);let W=E.type==="*"?i3:E.type==="?"?o3:"\\"+E.type;o=!0,a=a.slice(0,E.reStart)+W+"\\("+j}L(),c&&(a+="\\\\");let U=XXe[a.charAt(0)];for(let j=l.length-1;j>-1;j--){let W=l[j],q=a.slice(0,W.reStart),X=a.slice(W.reStart,W.reEnd-8),M=a.slice(W.reEnd),Q=a.slice(W.reEnd-8,W.reEnd)+M,ee=q.split(")").length,ce=q.split("(").length-ee,H=M;for(let ie=0;ie(c=c.map(u=>typeof u=="string"?eJe(u):u===wa?wa:u._src).reduce((u,l)=>(u[u.length-1]===wa&&l===wa||u.push(l),u),[]),c.forEach((u,l)=>{u!==wa||c[l-1]===wa||(l===0?c.length>1?c[l+1]="(?:\\/|"+i+"\\/)?"+c[l+1]:c[l]=i:l===c.length-1?c[l-1]+="(?:\\/|"+i+")?":(c[l-1]+="(?:\\/|\\/"+i+"\\/)"+c[l+1],c[l+1]=wa))}),c.filter(u=>u!==wa).join("/"))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,a)}catch{this.regexp=!1}return this.regexp}match(r,n=this.partial){if(this.debug("match",r,this.pattern),this.comment)return!1;if(this.empty)return r==="";if(r==="/"&&n)return!0;let i=this.options;a3.sep!=="/"&&(r=r.split(a3.sep).join("/")),r=r.split(voe),this.debug(this.pattern,"split",r);let a=this.set;this.debug(this.pattern,"set",a);let o;for(let c=r.length-1;c>=0&&(o=r[c],!o);c--);for(let c=0;c{"use strict";Eoe.exports=_oe;var l3=require("fs"),{EventEmitter:rJe}=require("events"),{Minimatch:u3}=Py(),{resolve:nJe}=require("path");function iJe(e,r){return new Promise((n,i)=>{l3.readdir(e,{withFileTypes:!0},(a,o)=>{if(a)switch(a.code){case"ENOTDIR":r?i(a):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:i(a);break}else n(o)})})}function xoe(e,r){return new Promise((n,i)=>{(r?l3.stat:l3.lstat)(e,(o,c)=>{if(o)switch(o.code){case"ENOENT":n(r?xoe(e,!1):null);break;default:n(null);break}else n(c)})})}async function*woe(e,r,n,i,a,o){let c=await iJe(r+e,o);for(let u of c){let l=u.name;l===void 0&&(l=u,i=!0);let f=e+"/"+l,p=f.slice(1),g=r+"/"+p,v=null;(i||n)&&(v=await xoe(g,n)),!v&&u.name!==void 0&&(v=u),v===null&&(v={isDirectory:()=>!1}),v.isDirectory()?a(p)||(yield{relative:p,absolute:g,stats:v},yield*woe(f,r,n,i,a,!1)):yield{relative:p,absolute:g,stats:v}}}async function*sJe(e,r,n,i){yield*woe("",e,r,n,i,!0)}function aJe(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var ES=class extends rJe{constructor(r,n,i){if(super(),typeof n=="function"&&(i=n,n=null),this.options=aJe(n||{}),this.matchers=[],this.options.pattern){let a=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=a.map(o=>new u3(o,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let a=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=a.map(o=>new u3(o,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let a=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=a.map(o=>new u3(o,{dot:!0}))}this.iterator=sJe(nJe(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",a=>this._matches.push(this.options.absolute?a.absolute:a.relative)),this.on("error",a=>i(a)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(r){return this.skipMatchers.some(n=>n.match(r))}_fileMatches(r,n){let i=r+(n?"/":"");return(this.matchers.length===0||this.matchers.some(a=>a.match(i)))&&!this.ignoreMatchers.some(a=>a.match(i))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(r=>{if(r.done)this.emit("end");else{let n=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,n)){let i=r.value.relative,a=r.value.absolute;this.options.mark&&n&&(i+="/",a+="/"),this.options.stat?this.emit("match",{relative:i,absolute:a,stat:r.value.stats}):this.emit("match",{relative:i,absolute:a})}this._next(this.iterator)}}).catch(r=>{this.abort(),this.emit("error",r),!r.code&&!this.options.silent&&console.error(r)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function _oe(e,r,n){return new ES(e,r,n)}_oe.ReaddirGlob=ES});var _ce={};Xn(_ce,{all:()=>b3,allLimit:()=>x3,allSeries:()=>w3,any:()=>T3,anyLimit:()=>R3,anySeries:()=>A3,apply:()=>Aoe,applyEach:()=>Loe,applyEachSeries:()=>Noe,asyncify:()=>DS,auto:()=>k3,autoInject:()=>Moe,cargo:()=>qoe,cargoQueue:()=>joe,compose:()=>Boe,concat:()=>d3,concatLimit:()=>Ay,concatSeries:()=>h3,constant:()=>Uoe,default:()=>pQe,detect:()=>m3,detectLimit:()=>g3,detectSeries:()=>v3,dir:()=>Woe,doDuring:()=>CS,doUntil:()=>Hoe,doWhilst:()=>CS,during:()=>OS,each:()=>y3,eachLimit:()=>PS,eachOf:()=>Ms,eachOfLimit:()=>Ry,eachOfSeries:()=>io,eachSeries:()=>TS,ensureAsync:()=>L3,every:()=>b3,everyLimit:()=>x3,everySeries:()=>w3,filter:()=>_3,filterLimit:()=>E3,filterSeries:()=>S3,find:()=>m3,findLimit:()=>g3,findSeries:()=>v3,flatMap:()=>d3,flatMapLimit:()=>Ay,flatMapSeries:()=>h3,foldl:()=>mh,foldr:()=>C3,forEach:()=>y3,forEachLimit:()=>PS,forEachOf:()=>Ms,forEachOfLimit:()=>Ry,forEachOfSeries:()=>io,forEachSeries:()=>TS,forever:()=>Voe,groupBy:()=>Yoe,groupByLimit:()=>LS,groupBySeries:()=>Koe,inject:()=>mh,log:()=>Xoe,map:()=>FS,mapLimit:()=>ky,mapSeries:()=>I3,mapValues:()=>Joe,mapValuesLimit:()=>NS,mapValuesSeries:()=>Qoe,memoize:()=>Zoe,nextTick:()=>ece,parallel:()=>tce,parallelLimit:()=>rce,priorityQueue:()=>nce,queue:()=>M3,race:()=>ice,reduce:()=>mh,reduceRight:()=>C3,reflect:()=>RS,reflectAll:()=>sce,reject:()=>ace,rejectLimit:()=>oce,rejectSeries:()=>cce,retry:()=>AS,retryable:()=>fce,select:()=>_3,selectLimit:()=>E3,selectSeries:()=>S3,seq:()=>$3,series:()=>pce,setImmediate:()=>Tu,some:()=>T3,someLimit:()=>R3,someSeries:()=>A3,sortBy:()=>dce,timeout:()=>hce,times:()=>mce,timesLimit:()=>MS,timesSeries:()=>gce,transform:()=>vce,tryEach:()=>yce,unmemoize:()=>bce,until:()=>xce,waterfall:()=>wce,whilst:()=>OS,wrapSync:()=>DS});function Aoe(e,...r){return(...n)=>e(...r,...n)}function Oy(e){return function(...r){var n=r.pop();return e.call(this,r,n)}}function koe(e){setTimeout(e,0)}function Foe(e){return(r,...n)=>e(()=>r(...n))}function DS(e){return Iy(e)?function(...r){let n=r.pop(),i=e.apply(this,r);return Doe(i,n)}:Oy(function(r,n){var i;try{i=e.apply(this,r)}catch(a){return n(a)}if(i&&typeof i.then=="function")return Doe(i,n);n(null,i)})}function Doe(e,r){return e.then(n=>{Coe(r,null,n)},n=>{Coe(r,n&&n.message?n:new Error(n))})}function Coe(e,r,n){try{e(r,n)}catch(i){Tu(a=>{throw a},i)}}function Iy(e){return e[Symbol.toStringTag]==="AsyncFunction"}function cJe(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function uJe(e){return typeof e[Symbol.asyncIterator]=="function"}function Qe(e){if(typeof e!="function")throw new Error("expected a function");return Iy(e)?DS(e):e}function Ye(e,r=e.length){if(!r)throw new Error("arity is undefined");function n(...i){return typeof i[r-1]=="function"?e.apply(this,i):new Promise((a,o)=>{i[r-1]=(c,...u)=>{if(c)return o(c);a(u.length>1?u:u[0])},e.apply(this,i)})}return n}function $oe(e){return function(n,...i){return Ye(function(o){var c=this;return e(n,(u,l)=>{Qe(u).apply(c,i.concat(l))},o)})}}function O3(e,r,n,i){r=r||[];var a=[],o=0,c=Qe(n);return e(r,(u,l,f)=>{var p=o++;c(u,(g,v)=>{a[p]=v,f(g)})},u=>{i(u,a)})}function IS(e){return e&&typeof e.length=="number"&&e.length>=0&&e.length%1===0}function Ru(e){function r(...n){if(e!==null){var i=e;e=null,i.apply(this,n)}}return Object.assign(r,e),r}function lJe(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function fJe(e){var r=-1,n=e.length;return function(){return++r=r||c||a||(c=!0,e.next().then(({value:v,done:x})=>{if(!(o||a)){if(c=!1,x){a=!0,u<=0&&i(null);return}u++,n(v,l,p),l++,f()}}).catch(g))}function p(v,x){if(u-=1,!o){if(v)return g(v);if(v===!1){a=!0,o=!0;return}if(x===kS||a&&u<=0)return a=!0,i(null);f()}}function g(v){o||(c=!1,a=!0,i(v))}f()}function mJe(e,r,n,i){return _a(r)(e,Qe(n),i)}function gJe(e,r,n){n=Ru(n);var i=0,a=0,{length:o}=e,c=!1;o===0&&n(null);function u(l,f){l===!1&&(c=!0),c!==!0&&(l?n(l):(++a===o||f===kS)&&n(null))}for(;i1?a:a[0])}return n[vh]=new Promise((i,a)=>{e=i,r=a}),n}function k3(e,r,n){typeof r!="number"&&(n=r,r=null),n=Ru(n||gh());var i=Object.keys(e).length;if(!i)return n(null);r||(r=i);var a={},o=0,c=!1,u=!1,l=Object.create(null),f=[],p=[],g={};Object.keys(e).forEach(F=>{var L=e[F];if(!Array.isArray(L)){v(F,[L]),p.push(F);return}var U=L.slice(0,L.length-1),V=U.length;if(V===0){v(F,L),p.push(F);return}g[F]=V,U.forEach(j=>{if(!e[j])throw new Error("async.auto task `"+F+"` has a non-existent dependency `"+j+"` in "+U.join(", "));E(j,()=>{V--,V===0&&v(F,L)})})}),R(),x();function v(F,L){f.push(()=>P(F,L))}function x(){if(!c){if(f.length===0&&o===0)return n(null,a);for(;f.length&&oU()),x()}function P(F,L){if(!u){var U=Au((j,...W)=>{if(o--,j===!1){c=!0;return}if(W.length<2&&([W]=W),j){var q={};if(Object.keys(a).forEach(X=>{q[X]=a[X]}),q[F]=W,u=!0,l=Object.create(null),c)return;n(j,q)}else a[F]=W,D(F)});o++;var V=Qe(L[L.length-1]);L.length>1?V(a,U):V(U)}}function R(){for(var F,L=0;p.length;)F=p.pop(),L++,k(F).forEach(U=>{--g[U]===0&&p.push(U)});if(L!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function k(F){var L=[];return Object.keys(e).forEach(U=>{let V=e[U];Array.isArray(V)&&V.indexOf(F)>=0&&L.push(U)}),L}return n[vh]}function CJe(e){let r="",n=0,i=e.indexOf("*/");for(;na.replace(DJe,"").trim())}function Moe(e,r){var n={};return Object.keys(e).forEach(i=>{var a=e[i],o,c=Iy(a),u=!c&&a.length===1||c&&a.length===0;if(Array.isArray(a))o=[...a],a=o.pop(),n[i]=o.concat(o.length>0?l:a);else if(u)n[i]=a;else{if(o=PJe(a),a.length===0&&!c&&o.length===0)throw new Error("autoInject task functions require explicit parameters.");c||o.pop(),n[i]=o.concat(l)}function l(f,p){var g=o.map(v=>f[v]);g.push(p),Qe(a)(...g)}}),k3(n,r)}function Toe(e,r){e.length=1,e.head=e.tail=r}function F3(e,r,n){if(r==null)r=1;else if(r===0)throw new RangeError("Concurrency must not be zero");var i=Qe(e),a=0,o=[];let c={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function u(k,F){c[k].push(F)}function l(k,F){let L=(...U)=>{f(k,L),F(...U)};c[k].push(L)}function f(k,F){if(!k)return Object.keys(c).forEach(L=>c[L]=[]);if(!F)return c[k]=[];c[k]=c[k].filter(L=>L!==F)}function p(k,...F){c[k].forEach(L=>L(...F))}var g=!1;function v(k,F,L,U){if(U!=null&&typeof U!="function")throw new Error("task callback must be a function");R.started=!0;var V,j;function W(X,...M){if(X)return L?j(X):V();if(M.length<=1)return V(M[0]);V(M)}var q=R._createTaskItem(k,L?W:U||W);if(F?R._tasks.unshift(q):R._tasks.push(q),g||(g=!0,Tu(()=>{g=!1,R.process()})),L||!U)return new Promise((X,M)=>{V=X,j=M})}function x(k){return function(F,...L){a-=1;for(var U=0,V=k.length;U0&&o.splice(W,1),j.callback(F,...L),F!=null&&p("error",F,j.data)}a<=R.concurrency-R.buffer&&p("unsaturated"),R.idle()&&p("drain"),R.process()}}function E(k){return k.length===0&&R.idle()?(Tu(()=>p("drain")),!0):!1}let D=k=>F=>{if(!F)return new Promise((L,U)=>{l(k,(V,j)=>{if(V)return U(V);L(j)})});f(k),u(k,F)};var P=!1,R={_tasks:new p3,_createTaskItem(k,F){return{data:k,callback:F}},*[Symbol.iterator](){yield*R._tasks[Symbol.iterator]()},concurrency:r,payload:n,buffer:r/4,started:!1,paused:!1,push(k,F){return Array.isArray(k)?E(k)?void 0:k.map(L=>v(L,!1,!1,F)):v(k,!1,!1,F)},pushAsync(k,F){return Array.isArray(k)?E(k)?void 0:k.map(L=>v(L,!1,!0,F)):v(k,!1,!0,F)},kill(){f(),R._tasks.empty()},unshift(k,F){return Array.isArray(k)?E(k)?void 0:k.map(L=>v(L,!0,!1,F)):v(k,!0,!1,F)},unshiftAsync(k,F){return Array.isArray(k)?E(k)?void 0:k.map(L=>v(L,!0,!0,F)):v(k,!0,!0,F)},remove(k){R._tasks.remove(k)},process(){if(!P){for(P=!0;!R.paused&&a{a(r,o,(l,f)=>{r=f,u(l)})},o=>i(o,r))}function $3(...e){var r=e.map(Qe);return function(...n){var i=this,a=n[n.length-1];return typeof a=="function"?n.pop():a=gh(),mh(r,n,(o,c,u)=>{c.apply(i,o.concat((l,...f)=>{u(l,f)}))},(o,c)=>a(o,...c)),a[vh]}}function Boe(...e){return $3(...e.reverse())}function RJe(e,r,n,i){return O3(_a(r),e,n,i)}function AJe(e,r,n,i){var a=Qe(n);return ky(e,r,(o,c)=>{a(o,(u,...l)=>u?c(u):c(u,l))},(o,c)=>{for(var u=[],l=0;l{var c=!1,u;let l=Qe(a);n(i,(f,p,g)=>{l(f,(v,x)=>{if(v||v===!1)return g(v);if(e(x)&&!u)return c=!0,u=r(!0,f),g(null,kS);g()})},f=>{if(f)return o(f);o(null,c?u:r(!1))})}}function kJe(e,r,n){return rc(i=>i,(i,a)=>a)(Ms,e,r,n)}function FJe(e,r,n,i){return rc(a=>a,(a,o)=>o)(_a(r),e,n,i)}function $Je(e,r,n){return rc(i=>i,(i,a)=>a)(_a(1),e,r,n)}function Goe(e){return(r,...n)=>Qe(r)(...n,(i,...a)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[e]&&a.forEach(o=>console[e](o)))})}function LJe(e,r,n){n=Au(n);var i=Qe(e),a=Qe(r),o;function c(l,...f){if(l)return n(l);l!==!1&&(o=f,a(...f,u))}function u(l,f){if(l)return n(l);if(l!==!1){if(!f)return n(null,...o);i(c)}}return u(null,!0)}function Hoe(e,r,n){let i=Qe(r);return CS(e,(...a)=>{let o=a.pop();i(...a,(c,u)=>o(c,!u))},n)}function zoe(e){return(r,n,i)=>e(r,i)}function NJe(e,r,n){return Ms(e,zoe(Qe(r)),n)}function MJe(e,r,n,i){return _a(r)(e,zoe(Qe(n)),i)}function qJe(e,r,n){return PS(e,1,r,n)}function L3(e){return Iy(e)?e:function(...r){var n=r.pop(),i=!0;r.push((...a)=>{i?Tu(()=>n(...a)):n(...a)}),e.apply(this,r),i=!1}}function jJe(e,r,n){return rc(i=>!i,i=>!i)(Ms,e,r,n)}function BJe(e,r,n,i){return rc(a=>!a,a=>!a)(_a(r),e,n,i)}function UJe(e,r,n){return rc(i=>!i,i=>!i)(io,e,r,n)}function GJe(e,r,n,i){var a=new Array(r.length);e(r,(o,c,u)=>{n(o,(l,f)=>{a[c]=!!f,u(l)})},o=>{if(o)return i(o);for(var c=[],u=0;u{n(o,(l,f)=>{if(l)return u(l);f&&a.push({index:c,value:o}),u(l)})},o=>{if(o)return i(o);i(null,a.sort((c,u)=>c.index-u.index).map(c=>c.value))})}function $S(e,r,n,i){var a=IS(r)?GJe:WJe;return a(e,r,Qe(n),i)}function HJe(e,r,n){return $S(Ms,e,r,n)}function zJe(e,r,n,i){return $S(_a(r),e,n,i)}function VJe(e,r,n){return $S(io,e,r,n)}function YJe(e,r){var n=Au(r),i=Qe(L3(e));function a(o){if(o)return n(o);o!==!1&&i(a)}return a()}function KJe(e,r,n,i){var a=Qe(n);return ky(e,r,(o,c)=>{a(o,(u,l)=>u?c(u):c(u,{key:l,val:o}))},(o,c)=>{for(var u={},{hasOwnProperty:l}=Object.prototype,f=0;f{o(c,u,(f,p)=>{if(f)return l(f);a[u]=p,l(f)})},c=>i(c,a))}function Joe(e,r,n){return NS(e,1/0,r,n)}function Qoe(e,r,n){return NS(e,1,r,n)}function Zoe(e,r=n=>n){var n=Object.create(null),i=Object.create(null),a=Qe(e),o=Oy((c,u)=>{var l=r(...c);l in n?Tu(()=>u(null,...n[l])):l in i?i[l].push(u):(i[l]=[u],a(...c,(f,...p)=>{f||(n[l]=p);var g=i[l];delete i[l];for(var v=0,x=g.length;v{n(i[0],a)},r,1)}function JJe(e){return(e<<1)+1}function Roe(e){return(e+1>>1)-1}function f3(e,r){return e.priority!==r.priority?e.priority({data:c,priority:u,callback:l});function o(c,u){return Array.isArray(c)?c.map(l=>({data:l,priority:u})):{data:c,priority:u}}return n.push=function(c,u=0,l){return i(o(c,u),l)},n.pushAsync=function(c,u=0,l){return a(o(c,u),l)},delete n.unshift,delete n.unshiftAsync,n}function QJe(e,r){if(r=Ru(r),!Array.isArray(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var n=0,i=e.length;n{let u={};if(o&&(u.error=o),c.length>0){var l=c;c.length<=1&&([l]=c),u.value=l}a(null,u)}),r.apply(this,i)})}function sce(e){var r;return Array.isArray(e)?r=e.map(RS):(r={},Object.keys(e).forEach(n=>{r[n]=RS.call(this,e[n])})),r}function q3(e,r,n,i){let a=Qe(n);return $S(e,r,(o,c)=>{a(o,(u,l)=>{c(u,!l)})},i)}function ZJe(e,r,n){return q3(Ms,e,r,n)}function eQe(e,r,n,i){return q3(_a(r),e,n,i)}function tQe(e,r,n){return q3(io,e,r,n)}function uce(e){return function(){return e}}function AS(e,r,n){var i={times:P3,intervalFunc:uce(lce)};if(arguments.length<3&&typeof e=="function"?(n=r||gh(),r=e):(rQe(i,e),n=n||gh()),typeof r!="function")throw new Error("Invalid arguments for async.retry");var a=Qe(r),o=1;function c(){a((u,...l)=>{u!==!1&&(u&&o++{(a.lengthi)(Ms,e,r,n)}function iQe(e,r,n,i){return rc(Boolean,a=>a)(_a(r),e,n,i)}function sQe(e,r,n){return rc(Boolean,i=>i)(io,e,r,n)}function aQe(e,r,n){var i=Qe(r);return FS(e,(o,c)=>{i(o,(u,l)=>{if(u)return c(u);c(u,{value:o,criteria:l})})},(o,c)=>{if(o)return n(o);n(null,c.sort(a).map(u=>u.value))});function a(o,c){var u=o.criteria,l=c.criteria;return ul?1:0}}function hce(e,r,n){var i=Qe(e);return Oy((a,o)=>{var c=!1,u;function l(){var f=e.name||"anonymous",p=new Error('Callback function "'+f+'" timed out.');p.code="ETIMEDOUT",n&&(p.info=n),c=!0,o(p)}a.push((...f)=>{c||(o(...f),clearTimeout(u))}),u=setTimeout(l,r),i(...a)})}function oQe(e){for(var r=Array(e);e--;)r[e]=e;return r}function MS(e,r,n,i){var a=Qe(n);return ky(oQe(e),r,a,i)}function mce(e,r,n){return MS(e,1/0,r,n)}function gce(e,r,n){return MS(e,1,r,n)}function vce(e,r,n,i){arguments.length<=3&&typeof r=="function"&&(i=n,n=r,r=Array.isArray(e)?[]:{}),i=Ru(i||gh());var a=Qe(n);return Ms(e,(o,c,u)=>{a(r,o,c,u)},o=>i(o,r)),i[vh]}function cQe(e,r){var n=null,i;return TS(e,(a,o)=>{Qe(a)((c,...u)=>{if(c===!1)return o(c);u.length<2?[i]=u:i=u,n=c,o(c?null:{})})},()=>r(n,i))}function bce(e){return(...r)=>(e.unmemoized||e)(...r)}function uQe(e,r,n){n=Au(n);var i=Qe(r),a=Qe(e),o=[];function c(l,...f){if(l)return n(l);o=f,l!==!1&&a(u)}function u(l,f){if(l)return n(l);if(l!==!1){if(!f)return n(null,...o);i(c)}}return a(u)}function xce(e,r,n){let i=Qe(e);return OS(a=>i((o,c)=>a(o,!c)),r,n)}function lQe(e,r){if(r=Ru(r),!Array.isArray(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var n=0;function i(o){var c=Qe(e[n++]);c(...o,Au(a))}function a(o,...c){if(o!==!1){if(o||n===e.length)return r(o,...c);i(c)}}i([])}var oJe,Ooe,Ioe,Ty,Tu,kS,_a,Ry,Ms,FS,Loe,io,I3,Noe,vh,_Je,EJe,SJe,DJe,p3,mh,ky,Ay,d3,h3,m3,g3,v3,Woe,CS,y3,PS,TS,b3,x3,w3,_3,E3,S3,Voe,LS,Xoe,NS,SS,ece,N3,D3,ice,ace,oce,cce,P3,lce,T3,R3,A3,dce,yce,OS,wce,fQe,pQe,Ece=Np(()=>{"use strict";oJe=typeof queueMicrotask=="function"&&queueMicrotask,Ooe=typeof setImmediate=="function"&&setImmediate,Ioe=typeof process=="object"&&typeof process.nextTick=="function";oJe?Ty=queueMicrotask:Ooe?Ty=setImmediate:Ioe?Ty=process.nextTick:Ty=koe;Tu=Foe(Ty);kS={};_a=e=>(r,n,i)=>{if(i=Ru(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!r)return i(null);if(cJe(r))return Poe(r,e,n,i);if(uJe(r))return Poe(r[Symbol.asyncIterator](),e,n,i);var a=hJe(r),o=!1,c=!1,u=0,l=!1;function f(g,v){if(!c)if(u-=1,g)o=!0,i(g);else if(g===!1)o=!0,c=!0;else{if(v===kS||o&&u<=0)return o=!0,i(null);l||p()}}function p(){for(l=!0;u)/,SJe=/,/,DJe=/(=.+)?(\s*)$/;p3=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(r){return r.prev?r.prev.next=r.next:this.head=r.next,r.next?r.next.prev=r.prev:this.tail=r.prev,r.prev=r.next=null,this.length-=1,r}empty(){for(;this.head;)this.shift();return this}insertAfter(r,n){n.prev=r,n.next=r.next,r.next?r.next.prev=n:this.tail=n,r.next=n,this.length+=1}insertBefore(r,n){n.prev=r.prev,n.next=r,r.prev?r.prev.next=n:this.head=n,r.prev=n,this.length+=1}unshift(r){this.head?this.insertBefore(this.head,r):Toe(this,r)}push(r){this.tail?this.insertAfter(this.tail,r):Toe(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var r=this.head;r;)yield r.data,r=r.next}remove(r){for(var n=this.head;n;){var{next:i}=n;r(n)&&this.removeLink(n),n=i}return this}};mh=Ye(TJe,4);ky=Ye(RJe,4);Ay=Ye(AJe,4);d3=Ye(OJe,3);h3=Ye(IJe,3);m3=Ye(kJe,3);g3=Ye(FJe,4);v3=Ye($Je,3);Woe=Goe("dir");CS=Ye(LJe,3);y3=Ye(NJe,3);PS=Ye(MJe,4);TS=Ye(qJe,3);b3=Ye(jJe,3);x3=Ye(BJe,4);w3=Ye(UJe,3);_3=Ye(HJe,3);E3=Ye(zJe,4);S3=Ye(VJe,3);Voe=Ye(YJe,2);LS=Ye(KJe,4);Xoe=Goe("log");NS=Ye(XJe,4);Ioe?SS=process.nextTick:Ooe?SS=setImmediate:SS=koe;ece=Foe(SS),N3=Ye((e,r,n)=>{var i=IS(r)?[]:{};e(r,(a,o,c)=>{Qe(a)((u,...l)=>{l.length<2&&([l]=l),i[o]=l,c(u)})},a=>n(a,i))},3);D3=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(r){let n;for(;r>0&&f3(this.heap[r],this.heap[n=Roe(r)]);){let i=this.heap[r];this.heap[r]=this.heap[n],this.heap[n]=i,r=n}}percDown(r){let n;for(;(n=JJe(r))=0;i--)this.percDown(i);return this}};ice=Ye(QJe,2);ace=Ye(ZJe,3);oce=Ye(eQe,4);cce=Ye(tQe,3);P3=5,lce=0;T3=Ye(nQe,3);R3=Ye(iQe,4);A3=Ye(sQe,3);dce=Ye(aQe,3);yce=Ye(cQe);OS=Ye(uQe,3);wce=Ye(lQe),fQe={apply:Aoe,applyEach:Loe,applyEachSeries:Noe,asyncify:DS,auto:k3,autoInject:Moe,cargo:qoe,cargoQueue:joe,compose:Boe,concat:d3,concatLimit:Ay,concatSeries:h3,constant:Uoe,detect:m3,detectLimit:g3,detectSeries:v3,dir:Woe,doUntil:Hoe,doWhilst:CS,each:y3,eachLimit:PS,eachOf:Ms,eachOfLimit:Ry,eachOfSeries:io,eachSeries:TS,ensureAsync:L3,every:b3,everyLimit:x3,everySeries:w3,filter:_3,filterLimit:E3,filterSeries:S3,forever:Voe,groupBy:Yoe,groupByLimit:LS,groupBySeries:Koe,log:Xoe,map:FS,mapLimit:ky,mapSeries:I3,mapValues:Joe,mapValuesLimit:NS,mapValuesSeries:Qoe,memoize:Zoe,nextTick:ece,parallel:tce,parallelLimit:rce,priorityQueue:nce,queue:M3,race:ice,reduce:mh,reduceRight:C3,reflect:RS,reflectAll:sce,reject:ace,rejectLimit:oce,rejectSeries:cce,retry:AS,retryable:fce,seq:$3,series:pce,setImmediate:Tu,some:T3,someLimit:R3,someSeries:A3,sortBy:dce,timeout:hce,times:mce,timesLimit:MS,timesSeries:gce,transform:vce,tryEach:yce,unmemoize:bce,until:xce,waterfall:wce,whilst:OS,all:b3,allLimit:x3,allSeries:w3,any:T3,anyLimit:R3,anySeries:A3,find:m3,findLimit:g3,findSeries:v3,flatMap:d3,flatMapLimit:Ay,flatMapSeries:h3,forEach:y3,forEachSeries:TS,forEachLimit:PS,forEachOf:Ms,forEachOfSeries:io,forEachOfLimit:Ry,inject:mh,foldl:mh,foldr:C3,select:_3,selectLimit:E3,selectSeries:S3,wrapSync:DS,during:OS,doDuring:CS},pQe=fQe});var Dce=S((hBt,Sce)=>{"use strict";var Ou=require("constants"),dQe=process.cwd,qS=null,hQe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return qS||(qS=dQe.call(process)),qS};try{process.cwd()}catch{}typeof process.chdir=="function"&&(j3=process.chdir,process.chdir=function(e){qS=null,j3.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,j3));var j3;Sce.exports=mQe;function mQe(e){Ou.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&r(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(p,g,v){v&&process.nextTick(v)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(p,g,v,x){x&&process.nextTick(x)},e.lchownSync=function(){}),hQe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(p){function g(v,x,E){var D=Date.now(),P=0;p(v,x,function R(k){if(k&&(k.code==="EACCES"||k.code==="EPERM"||k.code==="EBUSY")&&Date.now()-D<6e4){setTimeout(function(){e.stat(x,function(F,L){F&&F.code==="ENOENT"?p(v,x,R):E(k)})},P),P<100&&(P+=10);return}E&&E(k)})}return Object.setPrototypeOf&&Object.setPrototypeOf(g,p),g}(e.rename)),e.read=typeof e.read!="function"?e.read:function(p){function g(v,x,E,D,P,R){var k;if(R&&typeof R=="function"){var F=0;k=function(L,U,V){if(L&&L.code==="EAGAIN"&&F<10)return F++,p.call(e,v,x,E,D,P,k);R.apply(this,arguments)}}return p.call(e,v,x,E,D,P,k)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,p),g}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(p){return function(g,v,x,E,D){for(var P=0;;)try{return p.call(e,g,v,x,E,D)}catch(R){if(R.code==="EAGAIN"&&P<10){P++;continue}throw R}}}(e.readSync);function r(p){p.lchmod=function(g,v,x){p.open(g,Ou.O_WRONLY|Ou.O_SYMLINK,v,function(E,D){if(E){x&&x(E);return}p.fchmod(D,v,function(P){p.close(D,function(R){x&&x(P||R)})})})},p.lchmodSync=function(g,v){var x=p.openSync(g,Ou.O_WRONLY|Ou.O_SYMLINK,v),E=!0,D;try{D=p.fchmodSync(x,v),E=!1}finally{if(E)try{p.closeSync(x)}catch{}else p.closeSync(x)}return D}}function n(p){Ou.hasOwnProperty("O_SYMLINK")&&p.futimes?(p.lutimes=function(g,v,x,E){p.open(g,Ou.O_SYMLINK,function(D,P){if(D){E&&E(D);return}p.futimes(P,v,x,function(R){p.close(P,function(k){E&&E(R||k)})})})},p.lutimesSync=function(g,v,x){var E=p.openSync(g,Ou.O_SYMLINK),D,P=!0;try{D=p.futimesSync(E,v,x),P=!1}finally{if(P)try{p.closeSync(E)}catch{}else p.closeSync(E)}return D}):p.futimes&&(p.lutimes=function(g,v,x,E){E&&process.nextTick(E)},p.lutimesSync=function(){})}function i(p){return p&&function(g,v,x){return p.call(e,g,v,function(E){f(E)&&(E=null),x&&x.apply(this,arguments)})}}function a(p){return p&&function(g,v){try{return p.call(e,g,v)}catch(x){if(!f(x))throw x}}}function o(p){return p&&function(g,v,x,E){return p.call(e,g,v,x,function(D){f(D)&&(D=null),E&&E.apply(this,arguments)})}}function c(p){return p&&function(g,v,x){try{return p.call(e,g,v,x)}catch(E){if(!f(E))throw E}}}function u(p){return p&&function(g,v,x){typeof v=="function"&&(x=v,v=null);function E(D,P){P&&(P.uid<0&&(P.uid+=4294967296),P.gid<0&&(P.gid+=4294967296)),x&&x.apply(this,arguments)}return v?p.call(e,g,v,E):p.call(e,g,E)}}function l(p){return p&&function(g,v){var x=v?p.call(e,g,v):p.call(e,g);return x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),x}}function f(p){if(!p||p.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(p.code==="EINVAL"||p.code==="EPERM"))}}});var Tce=S((mBt,Pce)=>{"use strict";var Cce=require("stream").Stream;Pce.exports=gQe;function gQe(e){return{ReadStream:r,WriteStream:n};function r(i,a){if(!(this instanceof r))return new r(i,a);Cce.call(this);var o=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var c=Object.keys(a),u=0,l=c.length;uthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(p,g){if(p){o.emit("error",p),o.readable=!1;return}o.fd=g,o.emit("open",g),o._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);Cce.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var o=Object.keys(a),c=0,u=o.length;c= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ace=S((gBt,Rce)=>{"use strict";Rce.exports=yQe;var vQe=Object.getPrototypeOf||function(e){return e.__proto__};function yQe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var r={__proto__:vQe(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))}),r}});var W3=S((vBt,G3)=>{"use strict";var hr=require("fs"),bQe=Dce(),xQe=Tce(),wQe=Ace(),jS=require("util"),Tn,US;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Tn=Symbol.for("graceful-fs.queue"),US=Symbol.for("graceful-fs.previous")):(Tn="___graceful-fs.queue",US="___graceful-fs.previous");function _Qe(){}function kce(e,r){Object.defineProperty(e,Tn,{get:function(){return r}})}var Pf=_Qe;jS.debuglog?Pf=jS.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Pf=function(){var e=jS.format.apply(jS,arguments);e="GFS4: "+e.split(/\n/).join(` -GFS4: `),console.error(e)});hr[Tn]||(Oce=global[Tn]||[],kce(hr,Oce),hr.close=function(e){function r(n,i){return e.call(hr,n,function(a){a||Ice(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(r,US,{value:e}),r}(hr.close),hr.closeSync=function(e){function r(n){e.apply(hr,arguments),Ice()}return Object.defineProperty(r,US,{value:e}),r}(hr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Pf(hr[Tn]),require("assert").equal(hr[Tn].length,0)}));var Oce;global[Tn]||kce(global,hr[Tn]);G3.exports=B3(wQe(hr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!hr.__patched&&(G3.exports=B3(hr),hr.__patched=!0);function B3(e){bQe(e),e.gracefulify=B3,e.createReadStream=U,e.createWriteStream=V;var r=e.readFile;e.readFile=n;function n(q,X,M){return typeof X=="function"&&(M=X,X=null),Q(q,X,M);function Q(ee,ce,H,Y){return r(ee,ce,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?yh([Q,[ee,ce,H],ie,Y||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=a;function a(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return i(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?yh([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=c);function c(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return o(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?yh([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(q,X,M,Q){return typeof M=="function"&&(Q=M,M=0),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return u(ce,H,Y,function(le){le&&(le.code==="EMFILE"||le.code==="ENFILE")?yh([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var f=e.readdir;e.readdir=g;var p=/^v[0-5]\./;function g(q,X,M){typeof X=="function"&&(M=X,X=null);var Q=p.test(process.version)?function(H,Y,ie,ae){return f(H,ee(H,Y,ie,ae))}:function(H,Y,ie,ae){return f(H,Y,ee(H,Y,ie,ae))};return Q(q,X,M);function ee(ce,H,Y,ie){return function(ae,le){ae&&(ae.code==="EMFILE"||ae.code==="ENFILE")?yh([Q,[ce,H,Y],ae,ie||Date.now(),Date.now()]):(le&&le.sort&&le.sort(),typeof Y=="function"&&Y.call(this,ae,le))}}}if(process.version.substr(0,4)==="v0.8"){var v=xQe(e);R=v.ReadStream,F=v.WriteStream}var x=e.ReadStream;x&&(R.prototype=Object.create(x.prototype),R.prototype.open=k);var E=e.WriteStream;E&&(F.prototype=Object.create(E.prototype),F.prototype.open=L),Object.defineProperty(e,"ReadStream",{get:function(){return R},set:function(q){R=q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(q){F=q},enumerable:!0,configurable:!0});var D=R;Object.defineProperty(e,"FileReadStream",{get:function(){return D},set:function(q){D=q},enumerable:!0,configurable:!0});var P=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return P},set:function(q){P=q},enumerable:!0,configurable:!0});function R(q,X){return this instanceof R?(x.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function k(){var q=this;W(q.path,q.flags,q.mode,function(X,M){X?(q.autoClose&&q.destroy(),q.emit("error",X)):(q.fd=M,q.emit("open",M),q.read())})}function F(q,X){return this instanceof F?(E.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function L(){var q=this;W(q.path,q.flags,q.mode,function(X,M){X?(q.destroy(),q.emit("error",X)):(q.fd=M,q.emit("open",M))})}function U(q,X){return new e.ReadStream(q,X)}function V(q,X){return new e.WriteStream(q,X)}var j=e.open;e.open=W;function W(q,X,M,Q){return typeof M=="function"&&(Q=M,M=null),ee(q,X,M,Q);function ee(ce,H,Y,ie,ae){return j(ce,H,Y,function(le,$t){le&&(le.code==="EMFILE"||le.code==="ENFILE")?yh([ee,[ce,H,Y,ie],le,ae||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return e}function yh(e){Pf("ENQUEUE",e[0].name,e[1]),hr[Tn].push(e),U3()}var BS;function Ice(){for(var e=Date.now(),r=0;r2&&(hr[Tn][r][3]=e,hr[Tn][r][4]=e);U3()}function U3(){if(clearTimeout(BS),BS=void 0,hr[Tn].length!==0){var e=hr[Tn].shift(),r=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)Pf("RETRY",r.name,n),r.apply(null,n);else if(Date.now()-a>=6e4){Pf("TIMEOUT",r.name,n);var c=n.pop();typeof c=="function"&&c.call(null,i)}else{var u=Date.now()-o,l=Math.max(o-a,1),f=Math.min(l*1.2,100);u>=f?(Pf("RETRY",r.name,n),r.apply(null,n.concat([a]))):hr[Tn].push(e)}BS===void 0&&(BS=setTimeout(U3,0))}}});var Fy=S((yBt,H3)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?H3.exports={nextTick:EQe}:H3.exports=process;function EQe(e,r,n,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,o,c;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,r)});case 3:return process.nextTick(function(){e.call(null,r,n)});case 4:return process.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(a-1),c=0;c{"use strict";var SQe={}.toString;Fce.exports=Array.isArray||function(e){return SQe.call(e)=="[object Array]"}});var z3=S((xBt,Lce)=>{"use strict";Lce.exports=require("stream")});var $y=S((V3,Mce)=>{"use strict";var GS=require("buffer"),nc=GS.Buffer;function Nce(e,r){for(var n in e)r[n]=e[n]}nc.from&&nc.alloc&&nc.allocUnsafe&&nc.allocUnsafeSlow?Mce.exports=GS:(Nce(GS,V3),V3.Buffer=bh);function bh(e,r,n){return nc(e,r,n)}Nce(nc,bh);bh.from=function(e,r,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return nc(e,r,n)};bh.alloc=function(e,r,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=nc(e);return r!==void 0?typeof n=="string"?i.fill(r,n):i.fill(r):i.fill(0),i};bh.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return nc(e)};bh.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return GS.SlowBuffer(e)}});var xh=S(Gn=>{"use strict";function DQe(e){return Array.isArray?Array.isArray(e):WS(e)==="[object Array]"}Gn.isArray=DQe;function CQe(e){return typeof e=="boolean"}Gn.isBoolean=CQe;function PQe(e){return e===null}Gn.isNull=PQe;function TQe(e){return e==null}Gn.isNullOrUndefined=TQe;function RQe(e){return typeof e=="number"}Gn.isNumber=RQe;function AQe(e){return typeof e=="string"}Gn.isString=AQe;function OQe(e){return typeof e=="symbol"}Gn.isSymbol=OQe;function IQe(e){return e===void 0}Gn.isUndefined=IQe;function kQe(e){return WS(e)==="[object RegExp]"}Gn.isRegExp=kQe;function FQe(e){return typeof e=="object"&&e!==null}Gn.isObject=FQe;function $Qe(e){return WS(e)==="[object Date]"}Gn.isDate=$Qe;function LQe(e){return WS(e)==="[object Error]"||e instanceof Error}Gn.isError=LQe;function NQe(e){return typeof e=="function"}Gn.isFunction=NQe;function MQe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Gn.isPrimitive=MQe;Gn.isBuffer=require("buffer").Buffer.isBuffer;function WS(e){return Object.prototype.toString.call(e)}});var jce=S((_Bt,Y3)=>{"use strict";function qQe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var qce=$y().Buffer,Ly=require("util");function jQe(e,r,n){e.copy(r,n)}Y3.exports=function(){function e(){qQe(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a},e.prototype.concat=function(n){if(this.length===0)return qce.alloc(0);if(this.length===1)return this.head.data;for(var i=qce.allocUnsafe(n>>>0),a=this.head,o=0;a;)jQe(a.data,i,o),o+=a.data.length,a=a.next;return i},e}();Ly&&Ly.inspect&&Ly.inspect.custom&&(Y3.exports.prototype[Ly.inspect.custom]=function(){var e=Ly.inspect({length:this.length});return this.constructor.name+" "+e})});var K3=S((EBt,Gce)=>{"use strict";var Bce=Fy();function BQe(e,r){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(r?r(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&Bce.nextTick(Uce,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?(Bce.nextTick(Uce,n,o),n._writableState&&(n._writableState.errorEmitted=!0)):r&&r(o)}),this)}function UQe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Uce(e,r){e.emit("error",r)}Gce.exports={destroy:BQe,undestroy:UQe}});var X3=S((SBt,Wce)=>{"use strict";Wce.exports=require("util").deprecate});var Q3=S((DBt,Qce)=>{"use strict";var Tf=Fy();Qce.exports=Mr;function zce(e){var r=this;this.next=null,this.entry=null,this.finish=function(){aZe(r,e)}}var GQe=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Tf.nextTick,wh;Mr.WritableState=My;var Vce=Object.create(xh());Vce.inherits=ei();var WQe={deprecate:X3()},Yce=z3(),zS=$y().Buffer,HQe=global.Uint8Array||function(){};function zQe(e){return zS.from(e)}function VQe(e){return zS.isBuffer(e)||e instanceof HQe}var Kce=K3();Vce.inherits(Mr,Yce);function YQe(){}function My(e,r){wh=wh||Rf(),e=e||{};var n=r instanceof wh;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(u){tZe(r,u)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new zce(this)}My.prototype.getBuffer=function(){for(var r=this.bufferedRequest,n=[];r;)n.push(r),r=r.next;return n};(function(){try{Object.defineProperty(My.prototype,"buffer",{get:WQe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var HS;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(HS=Function.prototype[Symbol.hasInstance],Object.defineProperty(Mr,Symbol.hasInstance,{value:function(e){return HS.call(this,e)?!0:this!==Mr?!1:e&&e._writableState instanceof My}})):HS=function(e){return e instanceof this};function Mr(e){if(wh=wh||Rf(),!HS.call(Mr,this)&&!(this instanceof wh))return new Mr(e);this._writableState=new My(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Yce.call(this)}Mr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function KQe(e,r){var n=new Error("write after end");e.emit("error",n),Tf.nextTick(r,n)}function XQe(e,r,n,i){var a=!0,o=!1;return n===null?o=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!r.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Tf.nextTick(i,o),a=!1),a}Mr.prototype.write=function(e,r,n){var i=this._writableState,a=!1,o=!i.objectMode&&VQe(e);return o&&!zS.isBuffer(e)&&(e=zQe(e)),typeof r=="function"&&(n=r,r=null),o?r="buffer":r||(r=i.defaultEncoding),typeof n!="function"&&(n=YQe),i.ended?KQe(this,n):(o||XQe(this,i,e,n))&&(i.pendingcb++,a=QQe(this,i,o,e,r,n)),a};Mr.prototype.cork=function(){var e=this._writableState;e.corked++};Mr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&Xce(this,e))};Mr.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);return this._writableState.defaultEncoding=r,this};function JQe(e,r,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=zS.from(r,n)),r}Object.defineProperty(Mr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function QQe(e,r,n,i,a,o){if(!n){var c=JQe(r,i,a);i!==c&&(n=!0,a="buffer",i=c)}var u=r.objectMode?1:i.length;r.length+=u;var l=r.length{"use strict";var Zce=Fy(),oZe=Object.keys||function(e){var r=[];for(var n in e)r.push(n);return r};rue.exports=ic;var eue=Object.create(xh());eue.inherits=ei();var tue=tL(),eL=Q3();eue.inherits(ic,tue);for(Z3=oZe(eL.prototype),VS=0;VS{"use strict";var nL=$y().Buffer,nue=nL.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function lZe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function fZe(e){var r=lZe(e);if(typeof r!="string"&&(nL.isEncoding===nue||!nue(e)))throw new Error("Unknown encoding: "+e);return r||e}iue.StringDecoder=qy;function qy(e){this.encoding=fZe(e);var r;switch(this.encoding){case"utf16le":this.text=vZe,this.end=yZe,r=4;break;case"utf8":this.fillLast=hZe,r=4;break;case"base64":this.text=bZe,this.end=xZe,r=3;break;default:this.write=wZe,this.end=_Ze;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=nL.allocUnsafe(r)}qy.prototype.write=function(e){if(e.length===0)return"";var r,n;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function pZe(e,r,n){var i=r.length-1;if(i=0?(a>0&&(e.lastNeed=a-1),a):--i=0?(a>0&&(e.lastNeed=a-2),a):--i=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function dZe(e,r,n){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function hZe(e){var r=this.lastTotal-this.lastNeed,n=dZe(this,e,r);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function mZe(e,r){var n=pZe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",r,i)}function gZe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function vZe(e,r){if((e.length-r)%2===0){var n=e.toString("utf16le",r);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function yZe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,n)}return r}function bZe(e,r){var n=(e.length-r)%3;return n===0?e.toString("base64",r):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-n))}function xZe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function wZe(e){return e.toString(this.encoding)}function _Ze(e){return e&&e.length?this.write(e):""}});var tL=S((RBt,gue)=>{"use strict";var Eh=Fy();gue.exports=ir;var EZe=$ce(),jy;ir.ReadableState=fue;var TBt=require("events").EventEmitter,cue=function(e,r){return e.listeners(r).length},uL=z3(),By=$y().Buffer,SZe=global.Uint8Array||function(){};function DZe(e){return By.from(e)}function CZe(e){return By.isBuffer(e)||e instanceof SZe}var uue=Object.create(xh());uue.inherits=ei();var sL=require("util"),xt=void 0;sL&&sL.debuglog?xt=sL.debuglog("stream"):xt=function(){};var PZe=jce(),lue=K3(),_h;uue.inherits(ir,uL);var aL=["error","close","destroy","pause","resume"];function TZe(e,r,n){if(typeof e.prependListener=="function")return e.prependListener(r,n);!e._events||!e._events[r]?e.on(r,n):EZe(e._events[r])?e._events[r].unshift(n):e._events[r]=[n,e._events[r]]}function fue(e,r){jy=jy||Rf(),e=e||{};var n=r instanceof jy;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:n&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new PZe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(_h||(_h=iL().StringDecoder),this.decoder=new _h(e.encoding),this.encoding=e.encoding)}function ir(e){if(jy=jy||Rf(),!(this instanceof ir))return new ir(e);this._readableState=new fue(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),uL.call(this)}Object.defineProperty(ir.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});ir.prototype.destroy=lue.destroy;ir.prototype._undestroy=lue.undestroy;ir.prototype._destroy=function(e,r){this.push(null),r(e)};ir.prototype.push=function(e,r){var n=this._readableState,i;return n.objectMode?i=!0:typeof e=="string"&&(r=r||n.defaultEncoding,r!==n.encoding&&(e=By.from(e,r),r=""),i=!0),pue(this,e,r,!1,i)};ir.prototype.unshift=function(e){return pue(this,e,null,!0,!1)};function pue(e,r,n,i,a){var o=e._readableState;if(r===null)o.reading=!1,IZe(e,o);else{var c;a||(c=RZe(o,r)),c?e.emit("error",c):o.objectMode||r&&r.length>0?(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==By.prototype&&(r=DZe(r)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):oL(e,o,r,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(r=o.decoder.write(r),o.objectMode||r.length!==0?oL(e,o,r,!1):due(e,o)):oL(e,o,r,!1))):i||(o.reading=!1)}return AZe(o)}function oL(e,r,n,i){r.flowing&&r.length===0&&!r.sync?(e.emit("data",n),e.read(0)):(r.length+=r.objectMode?1:n.length,i?r.buffer.unshift(n):r.buffer.push(n),r.needReadable&&KS(e)),due(e,r)}function RZe(e,r){var n;return!CZe(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function AZe(e){return!e.ended&&(e.needReadable||e.length=sue?e=sue:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function aue(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=OZe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}ir.prototype.read=function(e){xt("read",e),e=parseInt(e,10);var r=this._readableState,n=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return xt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?cL(this):KS(this),null;if(e=aue(e,r),e===0&&r.ended)return r.length===0&&cL(this),null;var i=r.needReadable;xt("need readable",i),(r.length===0||r.length-e0?a=hue(e,r):a=null,a===null?(r.needReadable=!0,e=0):r.length-=e,r.length===0&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&cL(this)),a!==null&&this.emit("data",a),a};function IZe(e,r){if(!r.ended){if(r.decoder){var n=r.decoder.end();n&&n.length&&(r.buffer.push(n),r.length+=r.objectMode?1:n.length)}r.ended=!0,KS(e)}}function KS(e){var r=e._readableState;r.needReadable=!1,r.emittedReadable||(xt("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?Eh.nextTick(oue,e):oue(e))}function oue(e){xt("emit readable"),e.emit("readable"),lL(e)}function due(e,r){r.readingMore||(r.readingMore=!0,Eh.nextTick(kZe,e,r))}function kZe(e,r){for(var n=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length1&&mue(i.pipes,e)!==-1)&&!f&&(xt("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,g=!0),n.pause())}function x(R){xt("onerror",R),P(),e.removeListener("error",x),cue(e,"error")===0&&e.emit("error",R)}TZe(e,"error",x);function E(){e.removeListener("finish",D),P()}e.once("close",E);function D(){xt("onfinish"),e.removeListener("close",E),P()}e.once("finish",D);function P(){xt("unpipe"),n.unpipe(e)}return e.emit("pipe",n),i.flowing||(xt("pipe resume"),n.resume()),e};function FZe(e){return function(){var r=e._readableState;xt("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&cue(e,"data")&&(r.flowing=!0,lL(e))}}ir.prototype.unpipe=function(e){var r=this._readableState,n={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=r.pipes,a=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o=r.length?(r.decoder?n=r.buffer.join(""):r.buffer.length===1?n=r.buffer.head.data:n=r.buffer.concat(r.length),r.buffer.clear()):n=MZe(e,r.buffer,r.decoder),n}function MZe(e,r,n){var i;return eo.length?o.length:e;if(c===o.length?a+=o:a+=o.slice(0,e),e-=c,e===0){c===o.length?(++i,n.next?r.head=n.next:r.head=r.tail=null):(r.head=n,n.data=o.slice(c));break}++i}return r.length-=i,a}function jZe(e,r){var n=By.allocUnsafe(e),i=r.head,a=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var o=i.data,c=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,c),e-=c,e===0){c===o.length?(++a,i.next?r.head=i.next:r.head=r.tail=null):(r.head=i,i.data=o.slice(c));break}++a}return r.length-=a,n}function cL(e){var r=e._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,Eh.nextTick(BZe,r,e))}function BZe(e,r){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"))}function mue(e,r){for(var n=0,i=e.length;n{"use strict";bue.exports=sc;var XS=Rf(),yue=Object.create(xh());yue.inherits=ei();yue.inherits(sc,XS);function UZe(e,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,r!=null&&this.push(r),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";_ue.exports=Uy;var xue=fL(),wue=Object.create(xh());wue.inherits=ei();wue.inherits(Uy,xue);function Uy(e){if(!(this instanceof Uy))return new Uy(e);xue.call(this,e)}Uy.prototype._transform=function(e,r,n){n(null,e)}});var Sue=S((Rn,JS)=>{"use strict";var so=require("stream");process.env.READABLE_STREAM==="disable"&&so?(JS.exports=so,Rn=JS.exports=so.Readable,Rn.Readable=so.Readable,Rn.Writable=so.Writable,Rn.Duplex=so.Duplex,Rn.Transform=so.Transform,Rn.PassThrough=so.PassThrough,Rn.Stream=so):(Rn=JS.exports=tL(),Rn.Stream=so||Rn,Rn.Readable=Rn,Rn.Writable=Q3(),Rn.Duplex=Rf(),Rn.Transform=fL(),Rn.PassThrough=Eue())});var Cue=S((IBt,Due)=>{"use strict";Due.exports=Sue().PassThrough});var Aue=S((kBt,Rue)=>{"use strict";var Pue=require("util"),eD=Cue();Rue.exports={Readable:QS,Writable:ZS};Pue.inherits(QS,eD);Pue.inherits(ZS,eD);function Tue(e,r,n){e[r]=function(){return delete e[r],n.apply(this,arguments),this[r].apply(this,arguments)}}function QS(e,r){if(!(this instanceof QS))return new QS(e,r);eD.call(this,r),Tue(this,"_read",function(){var n=e.call(this,r),i=this.emit.bind(this,"error");n.on("error",i),n.pipe(this)}),this.emit("readable")}function ZS(e,r){if(!(this instanceof ZS))return new ZS(e,r);eD.call(this,r),Tue(this,"_write",function(){var n=e.call(this,r),i=this.emit.bind(this,"error");n.on("error",i),this.pipe(n)}),this.emit("writable")}});var Gy=S((FBt,Oue)=>{"use strict";Oue.exports=function(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var n=e.length;if(n<=1)return e;var i="";if(n>4&&e[3]==="\\"){var a=e[2];(a==="?"||a===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var o=e.split(/[/\\]+/);return r!==!1&&o[o.length-1]===""&&o.pop(),i+o.join("/")}});var pL=S(($Bt,Iue)=>{"use strict";function WZe(e){return e}Iue.exports=WZe});var Fue=S((LBt,kue)=>{"use strict";function HZe(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}kue.exports=HZe});var Nue=S((NBt,Lue)=>{"use strict";var zZe=Fue(),$ue=Math.max;function VZe(e,r,n){return r=$ue(r===void 0?e.length-1:r,0),function(){for(var i=arguments,a=-1,o=$ue(i.length-r,0),c=Array(o);++a{"use strict";function YZe(e){return function(){return e}}Mue.exports=YZe});var dL=S((qBt,jue)=>{"use strict";var KZe=typeof global=="object"&&global&&global.Object===Object&&global;jue.exports=KZe});var Sh=S((jBt,Bue)=>{"use strict";var XZe=dL(),JZe=typeof self=="object"&&self&&self.Object===Object&&self,QZe=XZe||JZe||Function("return this")();Bue.exports=QZe});var tD=S((BBt,Uue)=>{"use strict";var ZZe=Sh(),eet=ZZe.Symbol;Uue.exports=eet});var zue=S((UBt,Hue)=>{"use strict";var Gue=tD(),Wue=Object.prototype,tet=Wue.hasOwnProperty,ret=Wue.toString,Wy=Gue?Gue.toStringTag:void 0;function net(e){var r=tet.call(e,Wy),n=e[Wy];try{e[Wy]=void 0;var i=!0}catch{}var a=ret.call(e);return i&&(r?e[Wy]=n:delete e[Wy]),a}Hue.exports=net});var Yue=S((GBt,Vue)=>{"use strict";var iet=Object.prototype,set=iet.toString;function aet(e){return set.call(e)}Vue.exports=aet});var Hy=S((WBt,Jue)=>{"use strict";var Kue=tD(),oet=zue(),cet=Yue(),uet="[object Null]",fet="[object Undefined]",Xue=Kue?Kue.toStringTag:void 0;function pet(e){return e==null?e===void 0?fet:uet:Xue&&Xue in Object(e)?oet(e):cet(e)}Jue.exports=pet});var zy=S((HBt,Que)=>{"use strict";function det(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Que.exports=det});var hL=S((zBt,Zue)=>{"use strict";var het=Hy(),met=zy(),get="[object AsyncFunction]",vet="[object Function]",yet="[object GeneratorFunction]",bet="[object Proxy]";function xet(e){if(!met(e))return!1;var r=het(e);return r==vet||r==yet||r==get||r==bet}Zue.exports=xet});var tle=S((VBt,ele)=>{"use strict";var wet=Sh(),_et=wet["__core-js_shared__"];ele.exports=_et});var ile=S((YBt,nle)=>{"use strict";var mL=tle(),rle=function(){var e=/[^.]+$/.exec(mL&&mL.keys&&mL.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eet(e){return!!rle&&rle in e}nle.exports=Eet});var ale=S((KBt,sle)=>{"use strict";var Det=Function.prototype,Cet=Det.toString;function Pet(e){if(e!=null){try{return Cet.call(e)}catch{}try{return e+""}catch{}}return""}sle.exports=Pet});var cle=S((XBt,ole)=>{"use strict";var Tet=hL(),Ret=ile(),Aet=zy(),Oet=ale(),Iet=/[\\^$.*+?()[\]{}|]/g,ket=/^\[object .+?Constructor\]$/,Fet=Function.prototype,$et=Object.prototype,Let=Fet.toString,Net=$et.hasOwnProperty,Met=RegExp("^"+Let.call(Net).replace(Iet,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qet(e){if(!Aet(e)||Ret(e))return!1;var r=Tet(e)?Met:ket;return r.test(Oet(e))}ole.exports=qet});var lle=S((JBt,ule)=>{"use strict";function jet(e,r){return e?.[r]}ule.exports=jet});var Vy=S((QBt,fle)=>{"use strict";var Bet=cle(),Uet=lle();function Get(e,r){var n=Uet(e,r);return Bet(n)?n:void 0}fle.exports=Get});var dle=S((ZBt,ple)=>{"use strict";var Wet=Vy(),Het=function(){try{var e=Wet(Object,"defineProperty");return e({},"",{}),e}catch{}}();ple.exports=Het});var gle=S((e9t,mle)=>{"use strict";var zet=que(),hle=dle(),Vet=pL(),Yet=hle?function(e,r){return hle(e,"toString",{configurable:!0,enumerable:!1,value:zet(r),writable:!0})}:Vet;mle.exports=Yet});var yle=S((t9t,vle)=>{"use strict";var Ket=800,Xet=16,Jet=Date.now;function Qet(e){var r=0,n=0;return function(){var i=Jet(),a=Xet-(i-n);if(n=i,a>0){if(++r>=Ket)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}vle.exports=Qet});var xle=S((r9t,ble)=>{"use strict";var Zet=gle(),ett=yle(),ttt=ett(Zet);ble.exports=ttt});var rD=S((n9t,wle)=>{"use strict";var rtt=pL(),ntt=Nue(),itt=xle();function stt(e,r){return itt(ntt(e,r,rtt),e+"")}wle.exports=stt});var nD=S((i9t,_le)=>{"use strict";function att(e,r){return e===r||e!==e&&r!==r}_le.exports=att});var gL=S((s9t,Ele)=>{"use strict";var ott=9007199254740991;function ctt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ott}Ele.exports=ctt});var iD=S((a9t,Sle)=>{"use strict";var utt=hL(),ltt=gL();function ftt(e){return e!=null&<t(e.length)&&!utt(e)}Sle.exports=ftt});var vL=S((o9t,Dle)=>{"use strict";var ptt=9007199254740991,dtt=/^(?:0|[1-9]\d*)$/;function htt(e,r){var n=typeof e;return r=r??ptt,!!r&&(n=="number"||n!="symbol"&&dtt.test(e))&&e>-1&&e%1==0&&e{"use strict";var mtt=nD(),gtt=iD(),vtt=vL(),ytt=zy();function btt(e,r,n){if(!ytt(n))return!1;var i=typeof r;return(i=="number"?gtt(n)&&vtt(r,n.length):i=="string"&&r in n)?mtt(n[r],e):!1}Cle.exports=btt});var Rle=S((u9t,Tle)=>{"use strict";function xtt(e,r){for(var n=-1,i=Array(e);++n{"use strict";function wtt(e){return e!=null&&typeof e=="object"}Ale.exports=wtt});var Ile=S((f9t,Ole)=>{"use strict";var _tt=Hy(),Ett=Dh(),Stt="[object Arguments]";function Dtt(e){return Ett(e)&&_tt(e)==Stt}Ole.exports=Dtt});var yL=S((p9t,$le)=>{"use strict";var kle=Ile(),Ctt=Dh(),Fle=Object.prototype,Ptt=Fle.hasOwnProperty,Ttt=Fle.propertyIsEnumerable,Rtt=kle(function(){return arguments}())?kle:function(e){return Ctt(e)&&Ptt.call(e,"callee")&&!Ttt.call(e,"callee")};$le.exports=Rtt});var bL=S((d9t,Lle)=>{"use strict";var Att=Array.isArray;Lle.exports=Att});var Mle=S((h9t,Nle)=>{"use strict";function Ott(){return!1}Nle.exports=Ott});var Ule=S((Yy,Ch)=>{"use strict";var Itt=Sh(),ktt=Mle(),Ble=typeof Yy=="object"&&Yy&&!Yy.nodeType&&Yy,qle=Ble&&typeof Ch=="object"&&Ch&&!Ch.nodeType&&Ch,Ftt=qle&&qle.exports===Ble,jle=Ftt?Itt.Buffer:void 0,$tt=jle?jle.isBuffer:void 0,Ltt=$tt||ktt;Ch.exports=Ltt});var Wle=S((m9t,Gle)=>{"use strict";var Ntt=Hy(),Mtt=gL(),qtt=Dh(),jtt="[object Arguments]",Btt="[object Array]",Utt="[object Boolean]",Gtt="[object Date]",Wtt="[object Error]",Htt="[object Function]",ztt="[object Map]",Vtt="[object Number]",Ytt="[object Object]",Ktt="[object RegExp]",Xtt="[object Set]",Jtt="[object String]",Qtt="[object WeakMap]",Ztt="[object ArrayBuffer]",ert="[object DataView]",trt="[object Float32Array]",rrt="[object Float64Array]",nrt="[object Int8Array]",irt="[object Int16Array]",srt="[object Int32Array]",art="[object Uint8Array]",ort="[object Uint8ClampedArray]",crt="[object Uint16Array]",urt="[object Uint32Array]",sr={};sr[trt]=sr[rrt]=sr[nrt]=sr[irt]=sr[srt]=sr[art]=sr[ort]=sr[crt]=sr[urt]=!0;sr[jtt]=sr[Btt]=sr[Ztt]=sr[Utt]=sr[ert]=sr[Gtt]=sr[Wtt]=sr[Htt]=sr[ztt]=sr[Vtt]=sr[Ytt]=sr[Ktt]=sr[Xtt]=sr[Jtt]=sr[Qtt]=!1;function lrt(e){return qtt(e)&&Mtt(e.length)&&!!sr[Ntt(e)]}Gle.exports=lrt});var xL=S((g9t,Hle)=>{"use strict";function frt(e){return function(r){return e(r)}}Hle.exports=frt});var Vle=S((Ky,Ph)=>{"use strict";var prt=dL(),zle=typeof Ky=="object"&&Ky&&!Ky.nodeType&&Ky,Xy=zle&&typeof Ph=="object"&&Ph&&!Ph.nodeType&&Ph,drt=Xy&&Xy.exports===zle,wL=drt&&prt.process,hrt=function(){try{var e=Xy&&Xy.require&&Xy.require("util").types;return e||wL&&wL.binding&&wL.binding("util")}catch{}}();Ph.exports=hrt});var Jle=S((v9t,Xle)=>{"use strict";var mrt=Wle(),grt=xL(),Yle=Vle(),Kle=Yle&&Yle.isTypedArray,vrt=Kle?grt(Kle):mrt;Xle.exports=vrt});var Zle=S((y9t,Qle)=>{"use strict";var yrt=Rle(),brt=yL(),xrt=bL(),wrt=Ule(),_rt=vL(),Ert=Jle(),Srt=Object.prototype,Drt=Srt.hasOwnProperty;function Crt(e,r){var n=xrt(e),i=!n&&brt(e),a=!n&&!i&&wrt(e),o=!n&&!i&&!a&&Ert(e),c=n||i||a||o,u=c?yrt(e.length,String):[],l=u.length;for(var f in e)(r||Drt.call(e,f))&&!(c&&(f=="length"||a&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||_rt(f,l)))&&u.push(f);return u}Qle.exports=Crt});var tfe=S((b9t,efe)=>{"use strict";var Prt=Object.prototype;function Trt(e){var r=e&&e.constructor,n=typeof r=="function"&&r.prototype||Prt;return e===n}efe.exports=Trt});var nfe=S((x9t,rfe)=>{"use strict";function Rrt(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}rfe.exports=Rrt});var sfe=S((w9t,ife)=>{"use strict";var Art=zy(),Ort=tfe(),Irt=nfe(),krt=Object.prototype,Frt=krt.hasOwnProperty;function $rt(e){if(!Art(e))return Irt(e);var r=Ort(e),n=[];for(var i in e)i=="constructor"&&(r||!Frt.call(e,i))||n.push(i);return n}ife.exports=$rt});var ofe=S((_9t,afe)=>{"use strict";var Lrt=Zle(),Nrt=sfe(),Mrt=iD();function qrt(e){return Mrt(e)?Lrt(e,!0):Nrt(e)}afe.exports=qrt});var lfe=S((E9t,ufe)=>{"use strict";var jrt=rD(),Brt=nD(),Urt=Ple(),Grt=ofe(),cfe=Object.prototype,Wrt=cfe.hasOwnProperty,Hrt=jrt(function(e,r){e=Object(e);var n=-1,i=r.length,a=i>2?r[2]:void 0;for(a&&Urt(r[0],r[1],a)&&(i=1);++n{"use strict";ffe.exports=require("stream")});var mfe=S((D9t,hfe)=>{"use strict";function pfe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function zrt(e){for(var r=1;r0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return sD.alloc(0);for(var i=sD.allocUnsafe(n>>>0),a=this.head,o=0;a;)Zrt(a.data,i,o),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return nc.length?c.length:n;if(u===c.length?o+=c:o+=c.slice(0,n),n-=u,n===0){u===c.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=c.slice(u));break}++a}return this.length-=a,o}},{key:"_getBuffer",value:function(n){var i=sD.allocUnsafe(n),a=this.head,o=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var c=a.data,u=n>c.length?c.length:n;if(c.copy(i,i.length-n,0,u),n-=u,n===0){u===c.length?(++o,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=c.slice(u));break}++o}return this.length-=o,i}},{key:Qrt,value:function(n,i){return EL(this,zrt({},i,{depth:0,customInspect:!1}))}}]),e}()});var DL=S((C9t,vfe)=>{"use strict";function ent(e,r){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(SL,this,e)):process.nextTick(SL,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!r&&o?n._writableState?n._writableState.errorEmitted?process.nextTick(aD,n):(n._writableState.errorEmitted=!0,process.nextTick(gfe,n,o)):process.nextTick(gfe,n,o):r?(process.nextTick(aD,n),r(o)):process.nextTick(aD,n)}),this)}function gfe(e,r){SL(e,r),aD(e)}function aD(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function tnt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function SL(e,r){e.emit("error",r)}function rnt(e,r){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(r):e.emit("error",r)}vfe.exports={destroy:ent,undestroy:tnt,errorOrDestroy:rnt}});var Iu=S((P9t,xfe)=>{"use strict";var bfe={};function qs(e,r,n){n||(n=Error);function i(o,c,u){return typeof r=="string"?r:r(o,c,u)}class a extends n{constructor(c,u,l){super(i(c,u,l))}}a.prototype.name=n.name,a.prototype.code=e,bfe[e]=a}function yfe(e,r){if(Array.isArray(e)){let n=e.length;return e=e.map(i=>String(i)),n>2?`one of ${r} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:n===2?`one of ${r} ${e[0]} or ${e[1]}`:`of ${r} ${e[0]}`}else return`of ${r} ${String(e)}`}function nnt(e,r,n){return e.substr(!n||n<0?0:+n,r.length)===r}function int(e,r,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-r.length,n)===r}function snt(e,r,n){return typeof n!="number"&&(n=0),n+r.length>e.length?!1:e.indexOf(r,n)!==-1}qs("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);qs("ERR_INVALID_ARG_TYPE",function(e,r,n){let i;typeof r=="string"&&nnt(r,"not ")?(i="must not be",r=r.replace(/^not /,"")):i="must be";let a;if(int(e," argument"))a=`The ${e} ${i} ${yfe(r,"type")}`;else{let o=snt(e,".")?"property":"argument";a=`The "${e}" ${o} ${i} ${yfe(r,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);qs("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");qs("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});qs("ERR_STREAM_PREMATURE_CLOSE","Premature close");qs("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});qs("ERR_MULTIPLE_CALLBACK","Callback called multiple times");qs("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");qs("ERR_STREAM_WRITE_AFTER_END","write after end");qs("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qs("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);qs("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");xfe.exports.codes=bfe});var CL=S((T9t,wfe)=>{"use strict";var ant=Iu().codes.ERR_INVALID_OPT_VALUE;function ont(e,r,n){return e.highWaterMark!=null?e.highWaterMark:r?e[n]:null}function cnt(e,r,n,i){var a=ont(r,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var o=i?n:"highWaterMark";throw new ant(o,a)}return Math.floor(a)}return e.objectMode?16:16*1024}wfe.exports={getHighWaterMark:cnt}});var RL=S((R9t,Pfe)=>{"use strict";Pfe.exports=wr;function Efe(e){var r=this;this.next=null,this.entry=null,this.finish=function(){$nt(r,e)}}var Th;wr.WritableState=Qy;var unt={deprecate:X3()},Sfe=_L(),cD=require("buffer").Buffer,lnt=global.Uint8Array||function(){};function fnt(e){return cD.from(e)}function pnt(e){return cD.isBuffer(e)||e instanceof lnt}var TL=DL(),dnt=CL(),hnt=dnt.getHighWaterMark,ku=Iu().codes,mnt=ku.ERR_INVALID_ARG_TYPE,gnt=ku.ERR_METHOD_NOT_IMPLEMENTED,vnt=ku.ERR_MULTIPLE_CALLBACK,ynt=ku.ERR_STREAM_CANNOT_PIPE,bnt=ku.ERR_STREAM_DESTROYED,xnt=ku.ERR_STREAM_NULL_VALUES,wnt=ku.ERR_STREAM_WRITE_AFTER_END,_nt=ku.ERR_UNKNOWN_ENCODING,Rh=TL.errorOrDestroy;ei()(wr,Sfe);function Ent(){}function Qy(e,r,n){Th=Th||Af(),e=e||{},typeof n!="boolean"&&(n=r instanceof Th),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=hnt(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Ant(r,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Efe(this)}Qy.prototype.getBuffer=function(){for(var r=this.bufferedRequest,n=[];r;)n.push(r),r=r.next;return n};(function(){try{Object.defineProperty(Qy.prototype,"buffer",{get:unt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var oD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(oD=Function.prototype[Symbol.hasInstance],Object.defineProperty(wr,Symbol.hasInstance,{value:function(r){return oD.call(this,r)?!0:this!==wr?!1:r&&r._writableState instanceof Qy}})):oD=function(r){return r instanceof this};function wr(e){Th=Th||Af();var r=this instanceof Th;if(!r&&!oD.call(wr,this))return new wr(e);this._writableState=new Qy(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Sfe.call(this)}wr.prototype.pipe=function(){Rh(this,new ynt)};function Snt(e,r){var n=new wnt;Rh(e,n),process.nextTick(r,n)}function Dnt(e,r,n,i){var a;return n===null?a=new xnt:typeof n!="string"&&!r.objectMode&&(a=new mnt("chunk",["string","Buffer"],n)),a?(Rh(e,a),process.nextTick(i,a),!1):!0}wr.prototype.write=function(e,r,n){var i=this._writableState,a=!1,o=!i.objectMode&&pnt(e);return o&&!cD.isBuffer(e)&&(e=fnt(e)),typeof r=="function"&&(n=r,r=null),o?r="buffer":r||(r=i.defaultEncoding),typeof n!="function"&&(n=Ent),i.ending?Snt(this,n):(o||Dnt(this,i,e,n))&&(i.pendingcb++,a=Pnt(this,i,o,e,r,n)),a};wr.prototype.cork=function(){this._writableState.corked++};wr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Dfe(this,e))};wr.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new _nt(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(wr.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Cnt(e,r,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=cD.from(r,n)),r}Object.defineProperty(wr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pnt(e,r,n,i,a,o){if(!n){var c=Cnt(r,i,a);i!==c&&(n=!0,a="buffer",i=c)}var u=r.objectMode?1:i.length;r.length+=u;var l=r.length{"use strict";var Lnt=Object.keys||function(e){var r=[];for(var n in e)r.push(n);return r};Rfe.exports=ao;var Tfe=IL(),OL=RL();ei()(ao,Tfe);for(AL=Lnt(OL.prototype),uD=0;uD{"use strict";var fD=require("buffer"),oo=fD.Buffer;function Afe(e,r){for(var n in e)r[n]=e[n]}oo.from&&oo.alloc&&oo.allocUnsafe&&oo.allocUnsafeSlow?Ofe.exports=fD:(Afe(fD,kL),kL.Buffer=Of);function Of(e,r,n){return oo(e,r,n)}Of.prototype=Object.create(oo.prototype);Afe(oo,Of);Of.from=function(e,r,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return oo(e,r,n)};Of.alloc=function(e,r,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=oo(e);return r!==void 0?typeof n=="string"?i.fill(r,n):i.fill(r):i.fill(0),i};Of.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return oo(e)};Of.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return fD.SlowBuffer(e)}});var LL=S(kfe=>{"use strict";var $L=Zy().Buffer,Ife=$L.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function qnt(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function jnt(e){var r=qnt(e);if(typeof r!="string"&&($L.isEncoding===Ife||!Ife(e)))throw new Error("Unknown encoding: "+e);return r||e}kfe.StringDecoder=e0;function e0(e){this.encoding=jnt(e);var r;switch(this.encoding){case"utf16le":this.text=znt,this.end=Vnt,r=4;break;case"utf8":this.fillLast=Gnt,r=4;break;case"base64":this.text=Ynt,this.end=Knt,r=3;break;default:this.write=Xnt,this.end=Jnt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$L.allocUnsafe(r)}e0.prototype.write=function(e){if(e.length===0)return"";var r,n;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Bnt(e,r,n){var i=r.length-1;if(i=0?(a>0&&(e.lastNeed=a-1),a):--i=0?(a>0&&(e.lastNeed=a-2),a):--i=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function Unt(e,r,n){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Gnt(e){var r=this.lastTotal-this.lastNeed,n=Unt(this,e,r);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function Wnt(e,r){var n=Bnt(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",r,i)}function Hnt(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function znt(e,r){if((e.length-r)%2===0){var n=e.toString("utf16le",r);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function Vnt(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,n)}return r}function Ynt(e,r){var n=(e.length-r)%3;return n===0?e.toString("base64",r):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-n))}function Knt(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function Xnt(e){return e.toString(this.encoding)}function Jnt(e){return e&&e.length?this.write(e):""}});var pD=S((I9t,Lfe)=>{"use strict";var Ffe=Iu().codes.ERR_STREAM_PREMATURE_CLOSE;function Qnt(e){var r=!1;return function(){if(!r){r=!0;for(var n=arguments.length,i=new Array(n),a=0;a{"use strict";var dD;function Fu(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var tit=pD(),$u=Symbol("lastResolve"),If=Symbol("lastReject"),t0=Symbol("error"),hD=Symbol("ended"),kf=Symbol("lastPromise"),NL=Symbol("handlePromise"),Ff=Symbol("stream");function Lu(e,r){return{value:e,done:r}}function rit(e){var r=e[$u];if(r!==null){var n=e[Ff].read();n!==null&&(e[kf]=null,e[$u]=null,e[If]=null,r(Lu(n,!1)))}}function nit(e){process.nextTick(rit,e)}function iit(e,r){return function(n,i){e.then(function(){if(r[hD]){n(Lu(void 0,!0));return}r[NL](n,i)},i)}}var sit=Object.getPrototypeOf(function(){}),ait=Object.setPrototypeOf((dD={get stream(){return this[Ff]},next:function(){var r=this,n=this[t0];if(n!==null)return Promise.reject(n);if(this[hD])return Promise.resolve(Lu(void 0,!0));if(this[Ff].destroyed)return new Promise(function(c,u){process.nextTick(function(){r[t0]?u(r[t0]):c(Lu(void 0,!0))})});var i=this[kf],a;if(i)a=new Promise(iit(i,this));else{var o=this[Ff].read();if(o!==null)return Promise.resolve(Lu(o,!1));a=new Promise(this[NL])}return this[kf]=a,a}},Fu(dD,Symbol.asyncIterator,function(){return this}),Fu(dD,"return",function(){var r=this;return new Promise(function(n,i){r[Ff].destroy(null,function(a){if(a){i(a);return}n(Lu(void 0,!0))})})}),dD),sit),oit=function(r){var n,i=Object.create(ait,(n={},Fu(n,Ff,{value:r,writable:!0}),Fu(n,$u,{value:null,writable:!0}),Fu(n,If,{value:null,writable:!0}),Fu(n,t0,{value:null,writable:!0}),Fu(n,hD,{value:r._readableState.endEmitted,writable:!0}),Fu(n,NL,{value:function(o,c){var u=i[Ff].read();u?(i[kf]=null,i[$u]=null,i[If]=null,o(Lu(u,!1))):(i[$u]=o,i[If]=c)},writable:!0}),n));return i[kf]=null,tit(r,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[If];o!==null&&(i[kf]=null,i[$u]=null,i[If]=null,o(a)),i[t0]=a;return}var c=i[$u];c!==null&&(i[kf]=null,i[$u]=null,i[If]=null,c(Lu(void 0,!0))),i[hD]=!0}),r.on("readable",nit.bind(null,i)),i};Nfe.exports=oit});var Ufe=S((F9t,Bfe)=>{"use strict";function qfe(e,r,n,i,a,o,c){try{var u=e[o](c),l=u.value}catch(f){n(f);return}u.done?r(l):Promise.resolve(l).then(i,a)}function cit(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function c(l){qfe(o,i,a,c,u,"next",l)}function u(l){qfe(o,i,a,c,u,"throw",l)}c(void 0)})}}function jfe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function uit(e){for(var r=1;r{"use strict";Qfe.exports=dt;var Ah;dt.ReadableState=zfe;var $9t=require("events").EventEmitter,Hfe=function(r,n){return r.listeners(n).length},n0=_L(),mD=require("buffer").Buffer,dit=global.Uint8Array||function(){};function hit(e){return mD.from(e)}function mit(e){return mD.isBuffer(e)||e instanceof dit}var ML=require("util"),Ze;ML&&ML.debuglog?Ze=ML.debuglog("stream"):Ze=function(){};var git=mfe(),HL=DL(),vit=CL(),yit=vit.getHighWaterMark,gD=Iu().codes,bit=gD.ERR_INVALID_ARG_TYPE,xit=gD.ERR_STREAM_PUSH_AFTER_EOF,wit=gD.ERR_METHOD_NOT_IMPLEMENTED,_it=gD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Oh,qL,jL;ei()(dt,n0);var r0=HL.errorOrDestroy,BL=["error","close","destroy","pause","resume"];function Eit(e,r,n){if(typeof e.prependListener=="function")return e.prependListener(r,n);!e._events||!e._events[r]?e.on(r,n):Array.isArray(e._events[r])?e._events[r].unshift(n):e._events[r]=[n,e._events[r]]}function zfe(e,r,n){Ah=Ah||Af(),e=e||{},typeof n!="boolean"&&(n=r instanceof Ah),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=yit(this,e,"readableHighWaterMark",n),this.buffer=new git,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Oh||(Oh=LL().StringDecoder),this.decoder=new Oh(e.encoding),this.encoding=e.encoding)}function dt(e){if(Ah=Ah||Af(),!(this instanceof dt))return new dt(e);var r=this instanceof Ah;this._readableState=new zfe(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),n0.call(this)}Object.defineProperty(dt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});dt.prototype.destroy=HL.destroy;dt.prototype._undestroy=HL.undestroy;dt.prototype._destroy=function(e,r){r(e)};dt.prototype.push=function(e,r){var n=this._readableState,i;return n.objectMode?i=!0:typeof e=="string"&&(r=r||n.defaultEncoding,r!==n.encoding&&(e=mD.from(e,r),r=""),i=!0),Vfe(this,e,r,!1,i)};dt.prototype.unshift=function(e){return Vfe(this,e,null,!0,!1)};function Vfe(e,r,n,i,a){Ze("readableAddChunk",r);var o=e._readableState;if(r===null)o.reading=!1,Cit(e,o);else{var c;if(a||(c=Sit(o,r)),c)r0(e,c);else if(o.objectMode||r&&r.length>0)if(typeof r!="string"&&!o.objectMode&&Object.getPrototypeOf(r)!==mD.prototype&&(r=hit(r)),i)o.endEmitted?r0(e,new _it):UL(e,o,r,!0);else if(o.ended)r0(e,new xit);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(r=o.decoder.write(r),o.objectMode||r.length!==0?UL(e,o,r,!1):WL(e,o)):UL(e,o,r,!1)}else i||(o.reading=!1,WL(e,o))}return!o.ended&&(o.length=Gfe?e=Gfe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Wfe(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=Dit(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}dt.prototype.read=function(e){Ze("read",e),e=parseInt(e,10);var r=this._readableState,n=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return Ze("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?GL(this):vD(this),null;if(e=Wfe(e,r),e===0&&r.ended)return r.length===0&&GL(this),null;var i=r.needReadable;Ze("need readable",i),(r.length===0||r.length-e0?a=Xfe(e,r):a=null,a===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&GL(this)),a!==null&&this.emit("data",a),a};function Cit(e,r){if(Ze("onEofChunk"),!r.ended){if(r.decoder){var n=r.decoder.end();n&&n.length&&(r.buffer.push(n),r.length+=r.objectMode?1:n.length)}r.ended=!0,r.sync?vD(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Yfe(e)))}}function vD(e){var r=e._readableState;Ze("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(Ze("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Yfe,e))}function Yfe(e){var r=e._readableState;Ze("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,zL(e)}function WL(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(Pit,e,r))}function Pit(e,r){for(;!r.reading&&!r.ended&&(r.length1&&Jfe(i.pipes,e)!==-1)&&!f&&(Ze("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function v(P){Ze("onerror",P),D(),e.removeListener("error",v),Hfe(e,"error")===0&&r0(e,P)}Eit(e,"error",v);function x(){e.removeListener("finish",E),D()}e.once("close",x);function E(){Ze("onfinish"),e.removeListener("close",x),D()}e.once("finish",E);function D(){Ze("unpipe"),n.unpipe(e)}return e.emit("pipe",n),i.flowing||(Ze("pipe resume"),n.resume()),e};function Tit(e){return function(){var n=e._readableState;Ze("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&Hfe(e,"data")&&(n.flowing=!0,zL(e))}}dt.prototype.unpipe=function(e){var r=this._readableState,n={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=r.pipes,a=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var o=0;o0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Ze("on readable",i.length,i.reading),i.length?vD(this):i.reading||process.nextTick(Rit,this)),n};dt.prototype.addListener=dt.prototype.on;dt.prototype.removeListener=function(e,r){var n=n0.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Kfe,this),n};dt.prototype.removeAllListeners=function(e){var r=n0.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Kfe,this),r};function Kfe(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Rit(e){Ze("readable nexttick read 0"),e.read(0)}dt.prototype.resume=function(){var e=this._readableState;return e.flowing||(Ze("resume"),e.flowing=!e.readableListening,Ait(this,e)),e.paused=!1,this};function Ait(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(Oit,e,r))}function Oit(e,r){Ze("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),zL(e),r.flowing&&!r.reading&&e.read(0)}dt.prototype.pause=function(){return Ze("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ze("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function zL(e){var r=e._readableState;for(Ze("flow",r.flowing);r.flowing&&e.read()!==null;);}dt.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;e.on("end",function(){if(Ze("wrapped end"),n.decoder&&!n.ended){var c=n.decoder.end();c&&c.length&&r.push(c)}r.push(null)}),e.on("data",function(c){if(Ze("wrapped data"),n.decoder&&(c=n.decoder.write(c)),!(n.objectMode&&c==null)&&!(!n.objectMode&&(!c||!c.length))){var u=r.push(c);u||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(u){return function(){return e[u].apply(e,arguments)}}(a));for(var o=0;o=r.length?(r.decoder?n=r.buffer.join(""):r.buffer.length===1?n=r.buffer.first():n=r.buffer.concat(r.length),r.buffer.clear()):n=r.buffer.consume(e,r.decoder),n}function GL(e){var r=e._readableState;Ze("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(Iit,r,e))}function Iit(e,r){if(Ze("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var n=r._writableState;(!n||n.autoDestroy&&n.finished)&&r.destroy()}}typeof Symbol=="function"&&(dt.from=function(e,r){return jL===void 0&&(jL=Ufe()),jL(dt,e,r)});function Jfe(e,r){for(var n=0,i=e.length;n{"use strict";epe.exports=ac;var yD=Iu().codes,kit=yD.ERR_METHOD_NOT_IMPLEMENTED,Fit=yD.ERR_MULTIPLE_CALLBACK,$it=yD.ERR_TRANSFORM_ALREADY_TRANSFORMING,Lit=yD.ERR_TRANSFORM_WITH_LENGTH_0,bD=Af();ei()(ac,bD);function Nit(e,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new Fit);n.writechunk=null,n.writecb=null,r!=null&&this.push(r),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";rpe.exports=i0;var tpe=VL();ei()(i0,tpe);function i0(e){if(!(this instanceof i0))return new i0(e);tpe.call(this,e)}i0.prototype._transform=function(e,r,n){n(null,e)}});var cpe=S((q9t,ope)=>{"use strict";var YL;function qit(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var ape=Iu().codes,jit=ape.ERR_MISSING_ARGS,Bit=ape.ERR_STREAM_DESTROYED;function ipe(e){if(e)throw e}function Uit(e){return e.setHeader&&typeof e.abort=="function"}function Git(e,r,n,i){i=qit(i);var a=!1;e.on("close",function(){a=!0}),YL===void 0&&(YL=pD()),YL(e,{readable:r,writable:n},function(c){if(c)return i(c);a=!0,i()});var o=!1;return function(c){if(!a&&!o){if(o=!0,Uit(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(c||new Bit("pipe"))}}}function spe(e){e()}function Wit(e,r){return e.pipe(r)}function Hit(e){return!e.length||typeof e[e.length-1]!="function"?ipe:e.pop()}function zit(){for(var e=arguments.length,r=new Array(e),n=0;n0;return Git(c,l,f,function(p){a||(a=p),p&&o.forEach(spe),!l&&(o.forEach(spe),i(a))})});return r.reduce(Wit)}ope.exports=zit});var Nu=S((js,a0)=>{"use strict";var s0=require("stream");process.env.READABLE_STREAM==="disable"&&s0?(a0.exports=s0.Readable,Object.assign(a0.exports,s0),a0.exports.Stream=s0):(js=a0.exports=IL(),js.Stream=s0||js,js.Readable=js,js.Writable=RL(),js.Duplex=Af(),js.Transform=VL(),js.PassThrough=npe(),js.finished=pD(),js.pipeline=cpe())});var lpe=S((j9t,upe)=>{"use strict";function Vit(e,r){for(var n=-1,i=r.length,a=e.length;++n{"use strict";var fpe=tD(),Yit=yL(),Kit=bL(),ppe=fpe?fpe.isConcatSpreadable:void 0;function Xit(e){return Kit(e)||Yit(e)||!!(ppe&&e&&e[ppe])}dpe.exports=Xit});var xD=S((U9t,gpe)=>{"use strict";var Jit=lpe(),Qit=hpe();function mpe(e,r,n,i,a){var o=-1,c=e.length;for(n||(n=Qit),a||(a=[]);++o0&&n(u)?r>1?mpe(u,r-1,n,i,a):Jit(a,u):i||(a[a.length]=u)}return a}gpe.exports=mpe});var ype=S((G9t,vpe)=>{"use strict";var Zit=xD();function est(e){var r=e==null?0:e.length;return r?Zit(e,1):[]}vpe.exports=est});var o0=S((W9t,bpe)=>{"use strict";var tst=Vy(),rst=tst(Object,"create");bpe.exports=rst});var _pe=S((H9t,wpe)=>{"use strict";var xpe=o0();function nst(){this.__data__=xpe?xpe(null):{},this.size=0}wpe.exports=nst});var Spe=S((z9t,Epe)=>{"use strict";function ist(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Epe.exports=ist});var Cpe=S((V9t,Dpe)=>{"use strict";var sst=o0(),ast="__lodash_hash_undefined__",ost=Object.prototype,cst=ost.hasOwnProperty;function ust(e){var r=this.__data__;if(sst){var n=r[e];return n===ast?void 0:n}return cst.call(r,e)?r[e]:void 0}Dpe.exports=ust});var Tpe=S((Y9t,Ppe)=>{"use strict";var lst=o0(),fst=Object.prototype,pst=fst.hasOwnProperty;function dst(e){var r=this.__data__;return lst?r[e]!==void 0:pst.call(r,e)}Ppe.exports=dst});var Ape=S((K9t,Rpe)=>{"use strict";var hst=o0(),mst="__lodash_hash_undefined__";function gst(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hst&&r===void 0?mst:r,this}Rpe.exports=gst});var Ipe=S((X9t,Ope)=>{"use strict";var vst=_pe(),yst=Spe(),bst=Cpe(),xst=Tpe(),wst=Ape();function Ih(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r{"use strict";function _st(){this.__data__=[],this.size=0}kpe.exports=_st});var c0=S((Q9t,$pe)=>{"use strict";var Est=nD();function Sst(e,r){for(var n=e.length;n--;)if(Est(e[n][0],r))return n;return-1}$pe.exports=Sst});var Npe=S((Z9t,Lpe)=>{"use strict";var Dst=c0(),Cst=Array.prototype,Pst=Cst.splice;function Tst(e){var r=this.__data__,n=Dst(r,e);if(n<0)return!1;var i=r.length-1;return n==i?r.pop():Pst.call(r,n,1),--this.size,!0}Lpe.exports=Tst});var qpe=S((eUt,Mpe)=>{"use strict";var Rst=c0();function Ast(e){var r=this.__data__,n=Rst(r,e);return n<0?void 0:r[n][1]}Mpe.exports=Ast});var Bpe=S((tUt,jpe)=>{"use strict";var Ost=c0();function Ist(e){return Ost(this.__data__,e)>-1}jpe.exports=Ist});var Gpe=S((rUt,Upe)=>{"use strict";var kst=c0();function Fst(e,r){var n=this.__data__,i=kst(n,e);return i<0?(++this.size,n.push([e,r])):n[i][1]=r,this}Upe.exports=Fst});var Hpe=S((nUt,Wpe)=>{"use strict";var $st=Fpe(),Lst=Npe(),Nst=qpe(),Mst=Bpe(),qst=Gpe();function kh(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r{"use strict";var jst=Vy(),Bst=Sh(),Ust=jst(Bst,"Map");zpe.exports=Ust});var Xpe=S((sUt,Kpe)=>{"use strict";var Ype=Ipe(),Gst=Hpe(),Wst=Vpe();function Hst(){this.size=0,this.__data__={hash:new Ype,map:new(Wst||Gst),string:new Ype}}Kpe.exports=Hst});var Qpe=S((aUt,Jpe)=>{"use strict";function zst(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Jpe.exports=zst});var u0=S((oUt,Zpe)=>{"use strict";var Vst=Qpe();function Yst(e,r){var n=e.__data__;return Vst(r)?n[typeof r=="string"?"string":"hash"]:n.map}Zpe.exports=Yst});var tde=S((cUt,ede)=>{"use strict";var Kst=u0();function Xst(e){var r=Kst(this,e).delete(e);return this.size-=r?1:0,r}ede.exports=Xst});var nde=S((uUt,rde)=>{"use strict";var Jst=u0();function Qst(e){return Jst(this,e).get(e)}rde.exports=Qst});var sde=S((lUt,ide)=>{"use strict";var Zst=u0();function eat(e){return Zst(this,e).has(e)}ide.exports=eat});var ode=S((fUt,ade)=>{"use strict";var tat=u0();function rat(e,r){var n=tat(this,e),i=n.size;return n.set(e,r),this.size+=n.size==i?0:1,this}ade.exports=rat});var ude=S((pUt,cde)=>{"use strict";var nat=Xpe(),iat=tde(),sat=nde(),aat=sde(),oat=ode();function Fh(e){var r=-1,n=e==null?0:e.length;for(this.clear();++r{"use strict";var cat="__lodash_hash_undefined__";function uat(e){return this.__data__.set(e,cat),this}lde.exports=uat});var dde=S((hUt,pde)=>{"use strict";function lat(e){return this.__data__.has(e)}pde.exports=lat});var KL=S((mUt,hde)=>{"use strict";var fat=ude(),pat=fde(),dat=dde();function wD(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new fat;++r{"use strict";function hat(e,r,n,i){for(var a=e.length,o=n+(i?1:-1);i?o--:++o{"use strict";function mat(e){return e!==e}vde.exports=mat});var xde=S((yUt,bde)=>{"use strict";function gat(e,r,n){for(var i=n-1,a=e.length;++i{"use strict";var vat=gde(),yat=yde(),bat=xde();function xat(e,r,n){return r===r?bat(e,r,n):vat(e,yat,n)}wde.exports=xat});var XL=S((xUt,Ede)=>{"use strict";var wat=_de();function _at(e,r){var n=e==null?0:e.length;return!!n&&wat(e,r,0)>-1}Ede.exports=_at});var JL=S((wUt,Sde)=>{"use strict";function Eat(e,r,n){for(var i=-1,a=e==null?0:e.length;++i{"use strict";function Sat(e,r){for(var n=-1,i=e==null?0:e.length,a=Array(i);++n{"use strict";function Dat(e,r){return e.has(r)}Pde.exports=Dat});var Rde=S((SUt,Tde)=>{"use strict";var Cat=KL(),Pat=XL(),Tat=JL(),Rat=Cde(),Aat=xL(),Oat=QL(),Iat=200;function kat(e,r,n,i){var a=-1,o=Pat,c=!0,u=e.length,l=[],f=r.length;if(!u)return l;n&&(r=Rat(r,Aat(n))),i?(o=Tat,c=!1):r.length>=Iat&&(o=Oat,c=!1,r=new Cat(r));e:for(;++a{"use strict";var Fat=iD(),$at=Dh();function Lat(e){return $at(e)&&Fat(e)}Ade.exports=Lat});var kde=S((CUt,Ide)=>{"use strict";var Nat=Rde(),Mat=xD(),qat=rD(),Ode=ZL(),jat=qat(function(e,r){return Ode(e)?Nat(e,Mat(r,1,Ode,!0)):[]});Ide.exports=jat});var $de=S((PUt,Fde)=>{"use strict";var Bat=Vy(),Uat=Sh(),Gat=Bat(Uat,"Set");Fde.exports=Gat});var Nde=S((TUt,Lde)=>{"use strict";function Wat(){}Lde.exports=Wat});var e8=S((RUt,Mde)=>{"use strict";function Hat(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}Mde.exports=Hat});var jde=S((AUt,qde)=>{"use strict";var t8=$de(),zat=Nde(),Vat=e8(),Yat=1/0,Kat=t8&&1/Vat(new t8([,-0]))[1]==Yat?function(e){return new t8(e)}:zat;qde.exports=Kat});var Ude=S((OUt,Bde)=>{"use strict";var Xat=KL(),Jat=XL(),Qat=JL(),Zat=QL(),eot=jde(),tot=e8(),rot=200;function not(e,r,n){var i=-1,a=Jat,o=e.length,c=!0,u=[],l=u;if(n)c=!1,a=Qat;else if(o>=rot){var f=r?null:eot(e);if(f)return tot(f);c=!1,a=Zat,l=new Xat}else l=r?[]:u;e:for(;++i{"use strict";var iot=xD(),sot=rD(),aot=Ude(),oot=ZL(),cot=sot(function(e){return aot(iot(e,1,oot,!0))});Gde.exports=cot});var zde=S((kUt,Hde)=>{"use strict";function uot(e,r){return function(n){return e(r(n))}}Hde.exports=uot});var Yde=S((FUt,Vde)=>{"use strict";var lot=zde(),fot=lot(Object.getPrototypeOf,Object);Vde.exports=fot});var Jde=S(($Ut,Xde)=>{"use strict";var pot=Hy(),dot=Yde(),hot=Dh(),mot="[object Object]",got=Function.prototype,vot=Object.prototype,Kde=got.toString,yot=vot.hasOwnProperty,bot=Kde.call(Object);function xot(e){if(!hot(e)||pot(e)!=mot)return!1;var r=dot(e);if(r===null)return!0;var n=yot.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&Kde.call(n)==bot}Xde.exports=xot});var n8=S(Mu=>{"use strict";Mu.setopts=Cot;Mu.ownProp=Qde;Mu.makeAbs=l0;Mu.finish=Pot;Mu.mark=Tot;Mu.isIgnored=ehe;Mu.childrenIgnored=Rot;function Qde(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var wot=require("fs"),$f=require("path"),_ot=Py(),Zde=require("path").isAbsolute,r8=_ot.Minimatch;function Eot(e,r){return e.localeCompare(r,"en")}function Sot(e,r){e.ignore=r.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Dot))}function Dot(e){var r=null;if(e.slice(-3)==="/**"){var n=e.replace(/(\/\*\*)+$/,"");r=new r8(n,{dot:!0})}return{matcher:new r8(e,{dot:!0}),gmatcher:r}}function Cot(e,r,n){if(n||(n={}),n.matchBase&&r.indexOf("/")===-1){if(n.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,e.windowsPathsNoEscape&&(r=r.replace(/\\/g,"/")),e.silent=!!n.silent,e.pattern=r,e.strict=n.strict!==!1,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0),e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.absolute=!!n.absolute,e.fs=n.fs||wot,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),Sot(e,n),e.changedCwd=!1;var i=process.cwd();Qde(n,"cwd")?(e.cwd=$f.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=$f.resolve(i),e.root=n.root||$f.resolve(e.cwd,"/"),e.root=$f.resolve(e.root),e.cwdAbs=Zde(e.cwd)?e.cwd:l0(e,e.cwd),e.nomount=!!n.nomount,process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),n.nonegate=!0,n.nocomment=!0,e.minimatch=new r8(r,n),e.options=e.minimatch.options}function Pot(e){for(var r=e.nounique,n=r?[]:Object.create(null),i=0,a=e.matches.length;i{"use strict";ihe.exports=nhe;nhe.GlobSync=Xr;var Aot=sv(),the=Py(),NUt=the.Minimatch,MUt=a8().Glob,qUt=require("util"),i8=require("path"),rhe=require("assert"),_D=require("path").isAbsolute,Lf=n8(),Oot=Lf.setopts,s8=Lf.ownProp,Iot=Lf.childrenIgnored,kot=Lf.isIgnored;function nhe(e,r){if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);return new Xr(e,r).found}function Xr(e,r){if(!e)throw new Error("must provide pattern");if(typeof r=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob -See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Xr))return new Xr(e,r);if(Oot(this,e,r),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&s8(this.cache,r)){var c=this.cache[r];if(Array.isArray(c)&&(c="DIR"),!n||c==="DIR")return c;if(n&&c==="FILE")return!1}var i,a=this.statCache[r];if(!a){var o;try{o=this.fs.lstatSync(r)}catch(u){if(u&&(u.code==="ENOENT"||u.code==="ENOTDIR"))return this.statCache[r]=!1,!1}if(o&&o.isSymbolicLink())try{a=this.fs.statSync(r)}catch{a=o}else a=o}this.statCache[r]=a;var c=!0;return a&&(c=a.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||c,n&&c==="FILE"?!1:c};Xr.prototype._mark=function(e){return Lf.mark(this,e)};Xr.prototype._makeAbs=function(e){return Lf.makeAbs(this,e)}});var a8=S((GUt,ohe)=>{"use strict";ohe.exports=Nf;var Fot=sv(),ahe=Py(),BUt=ahe.Minimatch,$ot=ei(),Lot=require("events").EventEmitter,o8=require("path"),c8=require("assert"),f0=require("path").isAbsolute,l8=she(),Mf=n8(),Not=Mf.setopts,u8=Mf.ownProp,f8=zO(),UUt=require("util"),Mot=Mf.childrenIgnored,qot=Mf.isIgnored,jot=a_();function Nf(e,r,n){if(typeof r=="function"&&(n=r,r={}),r||(r={}),r.sync){if(n)throw new TypeError("callback provided to sync glob");return l8(e,r)}return new Et(e,r,n)}Nf.sync=l8;var Bot=Nf.GlobSync=l8.GlobSync;Nf.glob=Nf;function Uot(e,r){if(r===null||typeof r!="object")return e;for(var n=Object.keys(r),i=n.length;i--;)e[n[i]]=r[n[i]];return e}Nf.hasMagic=function(e,r){var n=Uot({},r);n.noprocess=!0;var i=new Et(e,n),a=i.minimatch.set;if(!e)return!1;if(a.length>1)return!0;for(var o=0;othis.maxLength)return r();if(!this.stat&&u8(this.cache,n)){var a=this.cache[n];if(Array.isArray(a)&&(a="DIR"),!i||a==="DIR")return r(null,a);if(i&&a==="FILE")return r()}var o,c=this.statCache[n];if(c!==void 0){if(c===!1)return r(null,c);var u=c.isDirectory()?"DIR":"FILE";return i&&u==="FILE"?r():r(null,u,c)}var l=this,f=f8("stat\0"+n,p);f&&l.fs.lstat(n,f);function p(g,v){if(v&&v.isSymbolicLink())return l.fs.stat(n,function(x,E){x?l._stat2(e,n,null,v,r):l._stat2(e,n,x,E,r)});l._stat2(e,n,g,v,r)}};Et.prototype._stat2=function(e,r,n,i,a){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return this.statCache[r]=!1,a();var o=e.slice(-1)==="/";if(this.statCache[r]=i,r.slice(-1)==="/"&&i&&!i.isDirectory())return a(null,!1,i);var c=!0;return i&&(c=i.isDirectory()?"DIR":"FILE"),this.cache[r]=this.cache[r]||c,o&&c==="FILE"?a():a(null,c,i)}});var fhe=S((WUt,lhe)=>{"use strict";var uhe=W3(),$h=require("path"),p8=ype(),Wot=kde(),Hot=Wde(),zot=Jde(),Vot=a8(),qf=lhe.exports={},che=/[\/\\]/g,Yot=function(e,r){var n=[];return p8(e).forEach(function(i){var a=i.indexOf("!")===0;a&&(i=i.slice(1));var o=r(i);a?n=Wot(n,o):n=Hot(n,o)}),n};qf.exists=function(){var e=$h.join.apply($h,arguments);return uhe.existsSync(e)};qf.expand=function(...e){var r=zot(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var i=Yot(n,function(a){return Vot.sync(a,r)});return r.filter&&(i=i.filter(function(a){a=$h.join(r.cwd||"",a);try{return typeof r.filter=="function"?r.filter(a):uhe.statSync(a)[r.filter]()}catch{return!1}})),i};qf.expandMapping=function(e,r,n){n=Object.assign({rename:function(o,c){return $h.join(o||"",c)}},n);var i=[],a={};return qf.expand(n,e).forEach(function(o){var c=o;n.flatten&&(c=$h.basename(c)),n.ext&&(c=c.replace(/(\.[^\/]*)?$/,n.ext));var u=n.rename(r,c,n);n.cwd&&(o=$h.join(n.cwd,o)),u=u.replace(che,"/"),o=o.replace(che,"/"),a[u]?a[u].src.push(o):(i.push({src:[o],dest:u}),a[u]=i[i.length-1])}),i};qf.normalizeFilesArray=function(e){var r=[];return e.forEach(function(n){var i;("src"in n||"dest"in n)&&r.push(n)}),r.length===0?[]:(r=_(r).chain().forEach(function(n){!("src"in n)||!n.src||(Array.isArray(n.src)?n.src=p8(n.src):n.src=[n.src])}).map(function(n){var i=Object.assign({},n);if(delete i.src,delete i.dest,n.expand)return qf.expandMapping(n.src,n.dest,i).map(function(o){var c=Object.assign({},n);return c.orig=Object.assign({},n),c.src=o.src,c.dest=o.dest,["expand","cwd","flatten","rename","ext"].forEach(function(u){delete c[u]}),c});var a=Object.assign({},n);return a.orig=Object.assign({},n),"src"in a&&Object.defineProperty(a,"src",{enumerable:!0,get:function o(){var c;return"result"in o||(c=n.src,c=Array.isArray(c)?p8(c):[c],o.result=qf.expand(i,c)),o.result}}),"dest"in a&&(a.dest=n.dest),a}).flatten().value(),r)}});var Lh=S((HUt,hhe)=>{"use strict";var d8=W3(),phe=require("path"),Kot=Aue(),dhe=Gy(),Xot=lfe(),Jot=require("stream").Stream,Qot=Nu().PassThrough,ts=hhe.exports={};ts.file=fhe();ts.collectStream=function(e,r){var n=[],i=0;e.on("error",r),e.on("data",function(a){n.push(a),i+=a.length}),e.on("end",function(){var a=Buffer.alloc(i),o=0;n.forEach(function(c){c.copy(a,o),o+=c.length}),r(null,a)})};ts.dateify=function(e){return e=e||new Date,e instanceof Date?e=e:typeof e=="string"?e=new Date(e):e=new Date,e};ts.defaults=function(e,r,n){var i=arguments;return i[0]=i[0]||{},Xot(...i)};ts.isStream=function(e){return e instanceof Jot};ts.lazyReadStream=function(e){return new Kot.Readable(function(){return d8.createReadStream(e)})};ts.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e=="string"?Buffer.from(e):ts.isStream(e)?e.pipe(new Qot):e};ts.sanitizePath=function(e){return dhe(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ts.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};ts.unixifyPath=function(e){return dhe(e,!1).replace(/^\w+:/,"")};ts.walkdir=function(e,r,n){var i=[];typeof r=="function"&&(n=r,r=e),d8.readdir(e,function(a,o){var c=0,u,l;if(a)return n(a);(function f(){if(u=o[c++],!u)return n(null,i);l=phe.join(e,u),d8.stat(l,function(p,g){i.push({path:l,relative:phe.relative(r,l).replace(/\\/g,"/"),stats:g}),g&&g.isDirectory()?ts.walkdir(l,r,function(v,x){if(v)return n(v);x.forEach(function(E){i.push(E)}),f()}):f()})})()})}});var yhe=S((ghe,vhe)=>{"use strict";var Zot=require("util"),ect={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function mhe(e,r){Error.captureStackTrace(this,this.constructor),this.message=ect[e]||e,this.code=e,this.data=r}Zot.inherits(mhe,Error);ghe=vhe.exports=mhe});var Ehe=S((zUt,_he)=>{"use strict";var g8=require("fs"),xhe=Soe(),bhe=(Ece(),gOe(_ce)),h8=require("path"),co=Lh(),tct=require("util").inherits,_r=yhe(),whe=Nu().Transform,m8=process.platform==="win32",vt=function(e,r){if(!(this instanceof vt))return new vt(e,r);typeof e!="string"&&(r=e,e="zip"),r=this.options=co.defaults(r,{highWaterMark:1024*1024,statConcurrency:4}),whe.call(this,r),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=bhe.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=bhe.queue(this._onStatQueueTask.bind(this),r.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};tct(vt,whe);vt.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};vt.prototype._append=function(e,r){r=r||{};var n={source:null,filepath:e};r.name||(r.name=e),r.sourcePath=e,n.data=r,this._entriesCount++,r.stats&&r.stats instanceof g8.Stats?(n=this._updateQueueTaskWithStats(n,r.stats),n&&(r.stats.size&&(this._fsEntriesTotalBytes+=r.stats.size),this._queue.push(n))):this._statQueue.push(n)};vt.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};vt.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};vt.prototype._moduleAppend=function(e,r,n){if(this._state.aborted){n();return}this._module.append(e,r,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(n);return}this.emit("entry",r),this._entriesProcessedCount++,r.stats&&r.stats.size&&(this._fsEntriesProcessedBytes+=r.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))};vt.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new _r("NOENDMETHOD"))};vt.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};vt.prototype._moduleSupports=function(e){return!this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]};vt.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};vt.prototype._normalizeEntryData=function(e,r){e=co.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),r&&e.stats===!1&&(e.stats=r);var n=e.type==="directory";return e.name&&(typeof e.prefix=="string"&&e.prefix!==""&&(e.name=e.prefix+"/"+e.name,e.prefix=null),e.name=co.sanitizePath(e.name),e.type!=="symlink"&&e.name.slice(-1)==="/"?(n=!0,e.type="directory"):n&&(e.name+="/")),typeof e.mode=="number"?m8?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(m8?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,m8&&n&&(e.mode=493)):e.mode===null&&(e.mode=n?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=co.dateify(e.date),e};vt.prototype._onModuleError=function(e){this.emit("error",e)};vt.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};vt.prototype._onQueueTask=function(e,r){var n=()=>{e.data.callback&&e.data.callback(),r()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=e,this._moduleAppend(e.source,e.data,n)};vt.prototype._onStatQueueTask=function(e,r){if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}g8.lstat(e.filepath,function(n,i){if(this._state.aborted){setImmediate(r);return}if(n){this._entriesCount--,this.emit("warning",n),setImmediate(r);return}e=this._updateQueueTaskWithStats(e,i),e&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(e)),setImmediate(r)}.bind(this))};vt.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};vt.prototype._transform=function(e,r,n){e&&(this._pointer+=e.length),n(null,e)};vt.prototype._updateQueueTaskWithStats=function(e,r){if(r.isFile())e.data.type="file",e.data.sourceType="stream",e.source=co.lazyReadStream(e.filepath);else if(r.isDirectory()&&this._moduleSupports("directory"))e.data.name=co.trailingSlashIt(e.data.name),e.data.type="directory",e.data.sourcePath=co.trailingSlashIt(e.filepath),e.data.sourceType="buffer",e.source=Buffer.concat([]);else if(r.isSymbolicLink()&&this._moduleSupports("symlink")){var n=g8.readlinkSync(e.filepath),i=h8.dirname(e.filepath);e.data.type="symlink",e.data.linkname=h8.relative(i,h8.resolve(i,n)),e.data.sourceType="buffer",e.source=Buffer.concat([])}else return r.isDirectory()?this.emit("warning",new _r("DIRECTORYNOTSUPPORTED",e.data)):r.isSymbolicLink()?this.emit("warning",new _r("SYMLINKNOTSUPPORTED",e.data)):this.emit("warning",new _r("ENTRYNOTSUPPORTED",e.data)),null;return e.data=this._normalizeEntryData(e.data,r),e};vt.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};vt.prototype.append=function(e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new _r("QUEUECLOSED")),this;if(r=this._normalizeEntryData(r),typeof r.name!="string"||r.name.length===0)return this.emit("error",new _r("ENTRYNAMEREQUIRED")),this;if(r.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new _r("DIRECTORYNOTSUPPORTED",{name:r.name})),this;if(e=co.normalizeInputSource(e),Buffer.isBuffer(e))r.sourceType="buffer";else if(co.isStream(e))r.sourceType="stream";else return this.emit("error",new _r("INPUTSTEAMBUFFERREQUIRED",{name:r.name})),this;return this._entriesCount++,this._queue.push({data:r,source:e}),this};vt.prototype.directory=function(e,r,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new _r("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new _r("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,r===!1?r="":typeof r!="string"&&(r=e);var i=!1;typeof n=="function"?(i=n,n={}):typeof n!="object"&&(n={});var a={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function c(f){this.emit("error",f)}function u(f){l.pause();var p=!1,g=Object.assign({},n);g.name=f.relative,g.prefix=r,g.stats=f.stat,g.callback=l.resume.bind(l);try{if(i){if(g=i(g),g===!1)p=!0;else if(typeof g!="object")throw new _r("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}catch(v){this.emit("error",v);return}if(p){l.resume();return}this._append(f.absolute,g)}var l=xhe(e,a);return l.on("error",c.bind(this)),l.on("match",u.bind(this)),l.on("end",o.bind(this)),this};vt.prototype.file=function(e,r){return this._state.finalize||this._state.aborted?(this.emit("error",new _r("QUEUECLOSED")),this):typeof e!="string"||e.length===0?(this.emit("error",new _r("FILEFILEPATHREQUIRED")),this):(this._append(e,r),this)};vt.prototype.glob=function(e,r,n){this._pending++,r=co.defaults(r,{stat:!0,pattern:e});function i(){this._pending--,this._maybeFinalize()}function a(u){this.emit("error",u)}function o(u){c.pause();var l=Object.assign({},n);l.callback=c.resume.bind(c),l.stats=u.stat,l.name=u.relative,this._append(u.absolute,l)}var c=xhe(r.cwd||".",r);return c.on("error",a.bind(this)),c.on("match",o.bind(this)),c.on("end",i.bind(this)),this};vt.prototype.finalize=function(){if(this._state.aborted){var e=new _r("ABORTED");return this.emit("error",e),Promise.reject(e)}if(this._state.finalize){var r=new _r("FINALIZING");return this.emit("error",r),Promise.reject(r)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(i,a){var o;n._module.on("end",function(){o||i()}),n._module.on("error",function(c){o=!0,a(c)})})};vt.prototype.setFormat=function(e){return this._format?(this.emit("error",new _r("FORMATSET")),this):(this._format=e,this)};vt.prototype.setModule=function(e){return this._state.aborted?(this.emit("error",new _r("ABORTED")),this):this._state.module?(this.emit("error",new _r("MODULESET")),this):(this._module=e,this._modulePipe(),this)};vt.prototype.symlink=function(e,r,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new _r("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new _r("SYMLINKFILEPATHREQUIRED")),this;if(typeof r!="string"||r.length===0)return this.emit("error",new _r("SYMLINKTARGETREQUIRED",{filepath:e})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new _r("SYMLINKNOTSUPPORTED",{filepath:e})),this;var i={};return i.type="symlink",i.name=e.replace(/\\/g,"/"),i.linkname=r.replace(/\\/g,"/"),i.sourceType="buffer",typeof n=="number"&&(i.mode=n),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};vt.prototype.pointer=function(){return this._pointer};vt.prototype.use=function(e){return this._streams.push(e),this};_he.exports=vt});var SD=S((VUt,She)=>{"use strict";var ED=She.exports=function(){};ED.prototype.getName=function(){};ED.prototype.getSize=function(){};ED.prototype.getLastModifiedDate=function(){};ED.prototype.isDirectory=function(){}});var DD=S((YUt,Dhe)=>{"use strict";var Bs=Dhe.exports={};Bs.dateToDos=function(e,r){r=r||!1;var n=r?e.getFullYear():e.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var i={year:n,month:r?e.getMonth():e.getUTCMonth(),date:r?e.getDate():e.getUTCDate(),hours:r?e.getHours():e.getUTCHours(),minutes:r?e.getMinutes():e.getUTCMinutes(),seconds:r?e.getSeconds():e.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};Bs.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};Bs.fromDosTime=function(e){return Bs.dosToDate(e.readUInt32LE(0))};Bs.getEightBytes=function(e){var r=Buffer.alloc(8);return r.writeUInt32LE(e%4294967296,0),r.writeUInt32LE(e/4294967296|0,4),r};Bs.getShortBytes=function(e){var r=Buffer.alloc(2);return r.writeUInt16LE((e&65535)>>>0,0),r};Bs.getShortBytesValue=function(e,r){return e.readUInt16LE(r)};Bs.getLongBytes=function(e){var r=Buffer.alloc(4);return r.writeUInt32LE((e&4294967295)>>>0,0),r};Bs.getLongBytesValue=function(e,r){return e.readUInt32LE(r)};Bs.toDosTime=function(e){return Bs.getLongBytes(Bs.dateToDos(e))}});var v8=S((KUt,Ohe)=>{"use strict";var Che=DD(),Phe=8,The=1,rct=4,nct=2,Rhe=64,Ahe=2048,An=Ohe.exports=function(){return this instanceof An?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new An};An.prototype.encode=function(){return Che.getShortBytes((this.descriptor?Phe:0)|(this.utf8?Ahe:0)|(this.encryption?The:0)|(this.strongEncryption?Rhe:0))};An.prototype.parse=function(e,r){var n=Che.getShortBytesValue(e,r),i=new An;return i.useDataDescriptor((n&Phe)!==0),i.useUTF8ForNames((n&Ahe)!==0),i.useStrongEncryption((n&Rhe)!==0),i.useEncryption((n&The)!==0),i.setSlidingDictionarySize(n&nct?8192:4096),i.setNumberOfShannonFanoTrees(n&rct?3:2),i};An.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};An.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};An.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};An.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};An.prototype.useDataDescriptor=function(e){this.descriptor=e};An.prototype.usesDataDescriptor=function(){return this.descriptor};An.prototype.useEncryption=function(e){this.encryption=e};An.prototype.usesEncryption=function(){return this.encryption};An.prototype.useStrongEncryption=function(e){this.strongEncryption=e};An.prototype.usesStrongEncryption=function(){return this.strongEncryption};An.prototype.useUTF8ForNames=function(e){this.utf8=e};An.prototype.usesUTF8ForNames=function(){return this.utf8}});var khe=S((XUt,Ihe)=>{"use strict";Ihe.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var y8=S((JUt,Fhe)=>{"use strict";Fhe.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var b8=S((QUt,qhe)=>{"use strict";var ict=require("util").inherits,sct=Gy(),Lhe=SD(),Nhe=v8(),$he=khe(),ui=y8(),Mhe=DD(),et=qhe.exports=function(e){if(!(this instanceof et))return new et(e);Lhe.call(this),this.platform=ui.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new Nhe,this.crc=0,this.time=-1,this.minver=ui.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};ict(et,Lhe);et.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};et.prototype.getComment=function(){return this.comment!==null?this.comment:""};et.prototype.getCompressedSize=function(){return this.csize};et.prototype.getCrc=function(){return this.crc};et.prototype.getExternalAttributes=function(){return this.exattr};et.prototype.getExtra=function(){return this.extra!==null?this.extra:ui.EMPTY};et.prototype.getGeneralPurposeBit=function(){return this.gpb};et.prototype.getInternalAttributes=function(){return this.inattr};et.prototype.getLastModifiedDate=function(){return this.getTime()};et.prototype.getLocalFileDataExtra=function(){return this.getExtra()};et.prototype.getMethod=function(){return this.method};et.prototype.getName=function(){return this.name};et.prototype.getPlatform=function(){return this.platform};et.prototype.getSize=function(){return this.size};et.prototype.getTime=function(){return this.time!==-1?Mhe.dosToDate(this.time):-1};et.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};et.prototype.getUnixMode=function(){return this.platform!==ui.PLATFORM_UNIX?0:this.getExternalAttributes()>>ui.SHORT_SHIFT&ui.SHORT_MASK};et.prototype.getVersionNeededToExtract=function(){return this.minver};et.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e};et.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e};et.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e};et.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};et.prototype.setExtra=function(e){this.extra=e};et.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof Nhe))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e};et.prototype.setInternalAttributes=function(e){this.inattr=e};et.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e};et.prototype.setName=function(e,r=!1){e=sct(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),r&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e};et.prototype.setPlatform=function(e){this.platform=e};et.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e};et.prototype.setTime=function(e,r){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=Mhe.dateToDos(e,r)};et.prototype.setUnixMode=function(e){e|=this.isDirectory()?ui.S_IFDIR:ui.S_IFREG;var r=0;r|=e<ui.ZIP64_MAGIC||this.size>ui.ZIP64_MAGIC}});var w8=S((ZUt,jhe)=>{"use strict";var act=require("stream").Stream,oct=Nu().PassThrough,x8=jhe.exports={};x8.isStream=function(e){return e instanceof act};x8.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e=="string")return Buffer.from(e);if(x8.isStream(e)&&!e._readableState){var r=new oct;return e.pipe(r),r}return e}});var E8=S((e7t,Uhe)=>{"use strict";var cct=require("util").inherits,_8=Nu().Transform,uct=SD(),Bhe=w8(),rs=Uhe.exports=function(e){if(!(this instanceof rs))return new rs(e);_8.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};cct(rs,_8);rs.prototype._appendBuffer=function(e,r,n){};rs.prototype._appendStream=function(e,r,n){};rs.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)};rs.prototype._finish=function(e){};rs.prototype._normalizeEntry=function(e){};rs.prototype._transform=function(e,r,n){n(null,e)};rs.prototype.entry=function(e,r,n){if(r=r||null,typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),!(e instanceof uct)){n(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){n(new Error("unacceptable entry after finish"));return}if(this._archive.processing){n(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,r=Bhe.normalizeInputSource(r),Buffer.isBuffer(r))this._appendBuffer(e,r,n);else if(Bhe.isStream(r))this._appendStream(e,r,n);else{this._archive.processing=!1,n(new Error("input source must be valid Stream or Buffer instance"));return}return this};rs.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};rs.prototype.getBytesWritten=function(){return this.offset};rs.prototype.write=function(e,r){return e&&(this.offset+=e.length),_8.prototype.write.call(this,e,r)}});var CD=S(S8=>{"use strict";var Ghe;(function(e){typeof DO_NOT_EXPORT_CRC>"u"?typeof S8=="object"?e(S8):typeof define=="function"&&define.amd?define(function(){var r={};return e(r),r}):e(Ghe={}):e(Ghe={})})(function(e){e.version="1.2.2";function r(){for(var j=0,W=new Array(256),q=0;q!=256;++q)j=q,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,j=j&1?-306674912^j>>>1:j>>>1,W[q]=j;return typeof Int32Array<"u"?new Int32Array(W):W}var n=r();function i(j){var W=0,q=0,X=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(X=0;X!=256;++X)M[X]=j[X];for(X=0;X!=256;++X)for(q=j[X],W=256+X;W<4096;W+=256)q=M[W]=q>>>8^j[q&255];var Q=[];for(X=1;X!=16;++X)Q[X-1]=typeof Int32Array<"u"?M.subarray(X*256,X*256+256):M.slice(X*256,X*256+256);return Q}var a=i(n),o=a[0],c=a[1],u=a[2],l=a[3],f=a[4],p=a[5],g=a[6],v=a[7],x=a[8],E=a[9],D=a[10],P=a[11],R=a[12],k=a[13],F=a[14];function L(j,W){for(var q=W^-1,X=0,M=j.length;X>>8^n[(q^j.charCodeAt(X++))&255];return~q}function U(j,W){for(var q=W^-1,X=j.length-15,M=0;M>8&255]^R[j[M++]^q>>16&255]^P[j[M++]^q>>>24]^D[j[M++]]^E[j[M++]]^x[j[M++]]^v[j[M++]]^g[j[M++]]^p[j[M++]]^f[j[M++]]^l[j[M++]]^u[j[M++]]^c[j[M++]]^o[j[M++]]^n[j[M++]];for(X+=15;M>>8^n[(q^j[M++])&255];return~q}function V(j,W){for(var q=W^-1,X=0,M=j.length,Q=0,ee=0;X>>8^n[(q^Q)&255]:Q<2048?(q=q>>>8^n[(q^(192|Q>>6&31))&255],q=q>>>8^n[(q^(128|Q&63))&255]):Q>=55296&&Q<57344?(Q=(Q&1023)+64,ee=j.charCodeAt(X++)&1023,q=q>>>8^n[(q^(240|Q>>8&7))&255],q=q>>>8^n[(q^(128|Q>>2&63))&255],q=q>>>8^n[(q^(128|ee>>6&15|(Q&3)<<4))&255],q=q>>>8^n[(q^(128|ee&63))&255]):(q=q>>>8^n[(q^(224|Q>>12&15))&255],q=q>>>8^n[(q^(128|Q>>6&63))&255],q=q>>>8^n[(q^(128|Q&63))&255]);return~q}e.table=n,e.bstr=L,e.buf=U,e.str=V})});var Hhe=S((r7t,Whe)=>{"use strict";var{Transform:lct}=Nu(),fct=CD(),D8=class extends lct{constructor(r){super(r),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(r,n,i){r&&(this.checksum=fct.buf(r,this.checksum)>>>0,this.rawSize+=r.length),i(null,r)}digest(r){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};Whe.exports=D8});var Vhe=S((n7t,zhe)=>{"use strict";var{DeflateRaw:pct}=require("zlib"),dct=CD(),C8=class extends pct{constructor(r){super(r),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(r,n){return r&&(this.compressedSize+=r.length),super.push(r,n)}_transform(r,n,i){r&&(this.checksum=dct.buf(r,this.checksum)>>>0,this.rawSize+=r.length),super._transform(r,n,i)}digest(r){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(r=!1){return r?this.compressedSize:this.rawSize}};zhe.exports=C8});var P8=S((i7t,Yhe)=>{"use strict";Yhe.exports={CRC32Stream:Hhe(),DeflateCRC32Stream:Vhe()}});var Jhe=S((c7t,Xhe)=>{"use strict";var hct=require("util").inherits,mct=CD(),{CRC32Stream:gct}=P8(),{DeflateCRC32Stream:vct}=P8(),Khe=E8(),s7t=b8(),a7t=v8(),Ue=y8(),o7t=w8(),Oe=DD(),vn=Xhe.exports=function(e){if(!(this instanceof vn))return new vn(e);e=this.options=this._defaults(e),Khe.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};hct(vn,Khe);vn.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};vn.prototype._appendBuffer=function(e,r,n){r.length===0&&e.setMethod(Ue.METHOD_STORED);var i=e.getMethod();if(i===Ue.METHOD_STORED&&(e.setSize(r.length),e.setCompressedSize(r.length),e.setCrc(mct.buf(r)>>>0)),this._writeLocalFileHeader(e),i===Ue.METHOD_STORED){this.write(r),this._afterAppend(e),n(null,e);return}else if(i===Ue.METHOD_DEFLATED){this._smartStream(e,n).end(r);return}else{n(new Error("compression method "+i+" not implemented"));return}};vn.prototype._appendStream=function(e,r,n){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(Ue.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var i=this._smartStream(e,n);r.once("error",function(a){i.emit("error",a),i.end()}),r.pipe(i)};vn.prototype._defaults=function(e){return typeof e!="object"&&(e={}),typeof e.zlib!="object"&&(e.zlib={}),typeof e.zlib.level!="number"&&(e.zlib.level=Ue.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e};vn.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};vn.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(Ue.METHOD_DEFLATED),e.getMethod()===Ue.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(Ue.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}};vn.prototype._smartStream=function(e,r){var n=e.getMethod()===Ue.METHOD_DEFLATED,i=n?new vct(this.options.zlib):new gct,a=null;function o(){var c=i.digest().readUInt32BE(0);e.setCrc(c),e.setSize(i.size()),e.setCompressedSize(i.size(!0)),this._afterAppend(e),r(a,e)}return i.once("end",o.bind(this)),i.once("error",function(c){a=c}),i.pipe(this,{end:!1}),i};vn.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,r=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(e=Ue.ZIP64_MAGIC_SHORT,r=Ue.ZIP64_MAGIC,n=Ue.ZIP64_MAGIC),this.write(Oe.getLongBytes(Ue.SIG_EOCD)),this.write(Ue.SHORT_ZERO),this.write(Ue.SHORT_ZERO),this.write(Oe.getShortBytes(e)),this.write(Oe.getShortBytes(e)),this.write(Oe.getLongBytes(r)),this.write(Oe.getLongBytes(n));var i=this.getComment(),a=Buffer.byteLength(i);this.write(Oe.getShortBytes(a)),this.write(i)};vn.prototype._writeCentralDirectoryZip64=function(){this.write(Oe.getLongBytes(Ue.SIG_ZIP64_EOCD)),this.write(Oe.getEightBytes(44)),this.write(Oe.getShortBytes(Ue.MIN_VERSION_ZIP64)),this.write(Oe.getShortBytes(Ue.MIN_VERSION_ZIP64)),this.write(Ue.LONG_ZERO),this.write(Ue.LONG_ZERO),this.write(Oe.getEightBytes(this._entries.length)),this.write(Oe.getEightBytes(this._entries.length)),this.write(Oe.getEightBytes(this._archive.centralLength)),this.write(Oe.getEightBytes(this._archive.centralOffset)),this.write(Oe.getLongBytes(Ue.SIG_ZIP64_EOCD_LOC)),this.write(Ue.LONG_ZERO),this.write(Oe.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(Oe.getLongBytes(1))};vn.prototype._writeCentralFileHeader=function(e){var r=e.getGeneralPurposeBit(),n=e.getMethod(),i=e._offsets,a=e.getSize(),o=e.getCompressedSize();if(e.isZip64()||i.file>Ue.ZIP64_MAGIC){a=Ue.ZIP64_MAGIC,o=Ue.ZIP64_MAGIC,e.setVersionNeededToExtract(Ue.MIN_VERSION_ZIP64);var c=Buffer.concat([Oe.getShortBytes(Ue.ZIP64_EXTRA_ID),Oe.getShortBytes(24),Oe.getEightBytes(e.getSize()),Oe.getEightBytes(e.getCompressedSize()),Oe.getEightBytes(i.file)],28);e.setExtra(c)}this.write(Oe.getLongBytes(Ue.SIG_CFH)),this.write(Oe.getShortBytes(e.getPlatform()<<8|Ue.VERSION_MADEBY)),this.write(Oe.getShortBytes(e.getVersionNeededToExtract())),this.write(r.encode()),this.write(Oe.getShortBytes(n)),this.write(Oe.getLongBytes(e.getTimeDos())),this.write(Oe.getLongBytes(e.getCrc())),this.write(Oe.getLongBytes(o)),this.write(Oe.getLongBytes(a));var u=e.getName(),l=e.getComment(),f=e.getCentralDirectoryExtra();r.usesUTF8ForNames()&&(u=Buffer.from(u),l=Buffer.from(l)),this.write(Oe.getShortBytes(u.length)),this.write(Oe.getShortBytes(f.length)),this.write(Oe.getShortBytes(l.length)),this.write(Ue.SHORT_ZERO),this.write(Oe.getShortBytes(e.getInternalAttributes())),this.write(Oe.getLongBytes(e.getExternalAttributes())),i.file>Ue.ZIP64_MAGIC?this.write(Oe.getLongBytes(Ue.ZIP64_MAGIC)):this.write(Oe.getLongBytes(i.file)),this.write(u),this.write(f),this.write(l)};vn.prototype._writeDataDescriptor=function(e){this.write(Oe.getLongBytes(Ue.SIG_DD)),this.write(Oe.getLongBytes(e.getCrc())),e.isZip64()?(this.write(Oe.getEightBytes(e.getCompressedSize())),this.write(Oe.getEightBytes(e.getSize()))):(this.write(Oe.getLongBytes(e.getCompressedSize())),this.write(Oe.getLongBytes(e.getSize())))};vn.prototype._writeLocalFileHeader=function(e){var r=e.getGeneralPurposeBit(),n=e.getMethod(),i=e.getName(),a=e.getLocalFileDataExtra();e.isZip64()&&(r.useDataDescriptor(!0),e.setVersionNeededToExtract(Ue.MIN_VERSION_ZIP64)),r.usesUTF8ForNames()&&(i=Buffer.from(i)),e._offsets.file=this.offset,this.write(Oe.getLongBytes(Ue.SIG_LFH)),this.write(Oe.getShortBytes(e.getVersionNeededToExtract())),this.write(r.encode()),this.write(Oe.getShortBytes(n)),this.write(Oe.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,r.usesDataDescriptor()?(this.write(Ue.LONG_ZERO),this.write(Ue.LONG_ZERO),this.write(Ue.LONG_ZERO)):(this.write(Oe.getLongBytes(e.getCrc())),this.write(Oe.getLongBytes(e.getCompressedSize())),this.write(Oe.getLongBytes(e.getSize()))),this.write(Oe.getShortBytes(i.length)),this.write(Oe.getShortBytes(a.length)),this.write(i),this.write(a),e._offsets.contents=this.offset};vn.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};vn.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Ue.ZIP64_MAGIC_SHORT||this._archive.centralLength>Ue.ZIP64_MAGIC||this._archive.centralOffset>Ue.ZIP64_MAGIC};vn.prototype.setComment=function(e){this._archive.comment=e}});var T8=S((u7t,Qhe)=>{"use strict";Qhe.exports={ArchiveEntry:SD(),ZipArchiveEntry:b8(),ArchiveOutputStream:E8(),ZipArchiveOutputStream:Jhe()}});var eme=S((l7t,Zhe)=>{"use strict";var yct=require("util").inherits,A8=T8().ZipArchiveOutputStream,bct=T8().ZipArchiveEntry,R8=Lh(),Nh=Zhe.exports=function(e){if(!(this instanceof Nh))return new Nh(e);e=this.options=e||{},e.zlib=e.zlib||{},A8.call(this,e),typeof e.level=="number"&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level=="number"&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};yct(Nh,A8);Nh.prototype._normalizeFileData=function(e){e=R8.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var r=e.type==="directory",n=e.type==="symlink";return e.name&&(e.name=R8.sanitizePath(e.name),!n&&e.name.slice(-1)==="/"?(r=!0,e.type="directory"):r&&(e.name+="/")),(r||n)&&(e.store=!0),e.date=R8.dateify(e.date),e};Nh.prototype.entry=function(e,r,n){if(typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),r=this._normalizeFileData(r),r.type!=="file"&&r.type!=="directory"&&r.type!=="symlink"){n(new Error(r.type+" entries not currently supported"));return}if(typeof r.name!="string"||r.name.length===0){n(new Error("entry name must be a non-empty string value"));return}if(r.type==="symlink"&&typeof r.linkname!="string"){n(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new bct(r.name);return i.setTime(r.date,this.options.forceLocalTime),r.namePrependSlash&&i.setName(r.name,!0),r.store&&i.setMethod(0),r.comment.length>0&&i.setComment(r.comment),r.type==="symlink"&&typeof r.mode!="number"&&(r.mode=40960),typeof r.mode=="number"&&(r.type==="symlink"&&(r.mode|=40960),i.setUnixMode(r.mode)),r.type==="symlink"&&typeof r.linkname=="string"&&(e=Buffer.from(r.linkname)),A8.prototype.entry.call(this,i,e,n)};Nh.prototype.finalize=function(){this.finish()}});var rme=S((f7t,tme)=>{"use strict";var xct=eme(),wct=Lh(),qu=function(e){if(!(this instanceof qu))return new qu(e);e=this.options=wct.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new xct(e)};qu.prototype.append=function(e,r,n){this.engine.entry(e,r,n)};qu.prototype.finalize=function(){this.engine.finalize()};qu.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};qu.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};qu.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};tme.exports=qu});var ime=S((p7t,nme)=>{"use strict";nme.exports=typeof queueMicrotask=="function"?queueMicrotask:e=>Promise.resolve().then(e)});var ame=S((d7t,sme)=>{"use strict";sme.exports=typeof process<"u"&&typeof process.nextTick=="function"?process.nextTick.bind(process):ime()});var cme=S((m7t,ome)=>{"use strict";ome.exports=class{constructor(r){if(!(r>0)||r-1&r)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r),this.mask=r-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(r){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=r,this.top=this.top+1&this.mask,!0)}shift(){let r=this.buffer[this.btm];if(r!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var O8=S((v7t,lme)=>{"use strict";var ume=cme();lme.exports=class{constructor(r){this.hwm=r||16,this.head=new ume(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(r){if(this.length++,!this.head.push(r)){let n=this.head;this.head=n.next=new ume(2*this.head.buffer.length),this.head.push(r)}}shift(){this.length!==0&&this.length--;let r=this.tail.shift();if(r===void 0&&this.tail.next){let n=this.tail.next;return this.tail.next=null,this.tail=n,this.tail.shift()}return r}peek(){let r=this.tail.peek();return r===void 0&&this.tail.next?this.tail.next.peek():r}isEmpty(){return this.length===0}}});var V8=S((y7t,Ime)=>{"use strict";var{EventEmitter:_ct}=require("events"),ID=new Error("Stream was destroyed"),I8=new Error("Premature close"),mme=ame(),gme=O8(),qr=(1<<27)-1,Gf=1,j8=2,jf=4,p0=8,vme=qr^Gf,Ect=qr^j8,y0=16,d0=32,Uh=64,ju=128,h0=256,B8=512,Bf=1024,k8=2048,U8=4096,G8=8192,Ea=16384,Mh=32768,kD=65536,yme=h0|B8,Sct=y0|kD,Dct=Uh|y0,Cct=U8|ju,Pct=qr^y0,Tct=qr^Uh,Rct=qr^(Uh|kD),Act=qr^kD,Oct=qr^h0,Ict=qr^(ju|G8),kct=qr^Bf,fme=qr^yme,bme=qr^Mh,Fct=qr^d0,Bu=1<<17,jh=2<<17,b0=4<<17,Uf=8<<17,x0=16<<17,Wf=32<<17,F8=64<<17,qh=128<<17,W8=256<<17,Bh=512<<17,xme=qr^(Bu|W8),wme=qr^b0,$ct=qr^Bh,Lct=qr^x0,Nct=qr^Uf,_me=qr^qh,Mct=qr^jh,m0=y0|Bu,Eme=qr^m0,H8=Ea|Wf,oc=jf|p0|j8,ns=oc|Gf,Sme=oc|H8,qct=wme&Tct,z8=qh|Mh,jct=z8&Eme,Dme=ns|jct,Bct=ns|Bf|Ea,pme=ns|Ea|ju,Uct=ns|Bf|ju,Gct=ns|U8|ju|G8,Wct=ns|y0|Bf|Ea|kD,Hct=oc|Bf|Ea,zct=d0|ns|Mh|Uh,Vct=ns|Bh|Wf,Yct=Uf|x0,Cme=Uf|Bu,Kct=Uf|x0|ns|Bu,dme=ns|Bu|Uf,Xct=b0|Bu,Jct=Bu|W8,Qct=ns|Bh|Cme|Wf,Zct=x0|oc|Bh|Wf,eut=jh|ns|qh|b0,PD=Symbol.asyncIterator||Symbol("asyncIterator"),TD=class{constructor(r,{highWaterMark:n=16384,map:i=null,mapWritable:a,byteLength:o,byteLengthWritable:c}={}){this.stream=r,this.queue=new gme,this.highWaterMark=n,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=c||o||Ome,this.map=a||i,this.afterWrite=nut.bind(this),this.afterUpdateNextTick=aut.bind(this)}get ended(){return(this.stream._duplexState&Wf)!==0}push(r){return this.map!==null&&(r=this.map(r)),this.buffered+=this.byteLength(r),this.queue.push(r),this.buffered0;)n.push(this.shift());for(let i=0;i0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(r,e)}}function nut(e){let r=this.stream;e&&r.destroy(e),r._duplexState&=xme,this.drains!==null&&out(this.drains),(r._duplexState&Kct)===x0&&(r._duplexState&=Lct,(r._duplexState&F8)===F8&&r.emit("drain")),this.updateCallback()}function iut(e){e&&this.stream.destroy(e),this.stream._duplexState&=Pct,this.updateCallback()}function sut(){this.stream._duplexState&d0||(this.stream._duplexState&=bme,this.update())}function aut(){this.stream._duplexState&jh||(this.stream._duplexState&=_me,this.update())}function out(e){for(let r=0;r=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&h0)===0}[PD](){let r=this,n=null,i=null,a=null;return this.on("error",f=>{n=f}),this.on("readable",o),this.on("close",c),{[PD](){return this},next(){return new Promise(function(f,p){i=f,a=p;let g=r.read();g!==null?u(g):r._duplexState&p0&&u(null)})},return(){return l(null)},throw(f){return l(f)}};function o(){i!==null&&u(r.read())}function c(){i!==null&&u(null)}function u(f){a!==null&&(n?a(n):f===null&&!(r._duplexState&Ea)?a(ID):i({value:f,done:f===null}),a=i=null)}function l(f){return r.destroy(f),new Promise((p,g)=>{if(r._duplexState&p0)return p({value:void 0,done:!0});r.once("close",function(){f?g(f):p({value:void 0,done:!0})})})}}},M8=class extends g0{constructor(r){super(r),this._duplexState|=Gf|Ea,this._writableState=new TD(this,r),r&&(r.writev&&(this._writev=r.writev),r.write&&(this._write=r.write),r.final&&(this._final=r.final),r.eagerOpen&&this._writableState.updateNextTick())}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&Zct)!==0}static drained(r){if(r.destroyed)return Promise.resolve(!1);let n=r._writableState,i=n.queue.length+(r._duplexState&W8?1:0);return i===0?Promise.resolve(!0):(n.drains===null&&(n.drains=[]),new Promise(a=>{n.drains.push({writes:i,resolve:a})}))}write(r){return this._writableState.updateNextTick(),this._writableState.push(r)}end(r){return this._writableState.updateNextTick(),this._writableState.end(r),this}},AD=class extends RD{constructor(r){super(r),this._duplexState=Gf,this._writableState=new TD(this,r),r&&(r.writev&&(this._writev=r.writev),r.write&&(this._write=r.write),r.final&&(this._final=r.final))}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}write(r){return this._writableState.updateNextTick(),this._writableState.push(r)}end(r){return this._writableState.updateNextTick(),this._writableState.end(r),this}},OD=class extends AD{constructor(r){super(r),this._transformState=new L8(this),r&&(r.transform&&(this._transform=r.transform),r.flush&&(this._flush=r.flush))}_write(r,n){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=r:this._transform(r,this._transformState.afterTransform)}_read(r){if(this._transformState.data!==null){let n=this._transformState.data;this._transformState.data=null,r(null),this._transform(n,this._transformState.afterTransform)}else r(null)}_transform(r,n){n(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r,this._flush(uut.bind(this))}},q8=class extends OD{};function uut(e,r){let n=this._transformState.afterFinal;if(e)return n(e);r!=null&&this.push(r),this.push(null),n(null)}function lut(...e){return new Promise((r,n)=>Rme(...e,i=>{if(i)return n(i);r()}))}function Rme(e,...r){let n=Array.isArray(e)?[...e,...r]:[e,...r],i=n.length&&typeof n[n.length-1]=="function"?n.pop():null;if(n.length<2)throw new Error("Pipeline requires at least 2 streams");let a=n[0],o=null,c=null;for(let f=1;f1,l),a.pipe(o)),a=o;if(i){let f=!1,p=v0(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on("error",g=>{c===null&&(c=g)}),o.on("finish",()=>{f=!0,p||i(c)}),p&&o.on("close",()=>i(c||(f?null:I8)))}return o;function u(f,p,g,v){f.on("error",v),f.on("close",x);function x(){if(p&&f._readableState&&!f._readableState.ended||g&&f._writableState&&!f._writableState.ended)return v(I8)}}function l(f){if(!(!f||c)){c=f;for(let p of n)p.destroy(f)}}}function Ame(e){return!!e._readableState||!!e._writableState}function v0(e){return typeof e._duplexState=="number"&&Ame(e)}function fut(e){let r=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return r===ID?null:r}function put(e){return v0(e)&&e.readable}function dut(e){return typeof e=="object"&&e!==null&&typeof e.byteLength=="number"}function Ome(e){return dut(e)?e.byteLength:1024}function hme(){}function hut(){this.destroy(new Error("Stream aborted."))}Ime.exports={pipeline:Rme,pipelinePromise:lut,isStream:Ame,isStreamx:v0,getStreamError:fut,Stream:g0,Writable:M8,Readable:RD,Duplex:AD,Transform:OD,PassThrough:q8}});var FD=S((b7t,kme)=>{"use strict";function mut(e){return Buffer.isBuffer(e)||e instanceof Uint8Array}function gut(e){return Buffer.isEncoding(e)}function vut(e,r,n){return Buffer.alloc(e,r,n)}function yut(e){return Buffer.allocUnsafe(e)}function but(e){return Buffer.allocUnsafeSlow(e)}function xut(e,r){return Buffer.byteLength(e,r)}function wut(e,r){return Buffer.compare(e,r)}function _ut(e,r){return Buffer.concat(e,r)}function Eut(e,r,n,i,a){return jr(e).copy(r,n,i,a)}function Sut(e,r){return jr(e).equals(r)}function Dut(e,r,n,i,a){return jr(e).fill(r,n,i,a)}function Cut(e,r,n){return Buffer.from(e,r,n)}function Put(e,r,n,i){return jr(e).includes(r,n,i)}function Tut(e,r,n,i){return jr(e).indexOf(r,n,i)}function Rut(e,r,n,i){return jr(e).lastIndexOf(r,n,i)}function Aut(e){return jr(e).swap16()}function Out(e){return jr(e).swap32()}function Iut(e){return jr(e).swap64()}function jr(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function kut(e,r,n,i){return jr(e).toString(r,n,i)}function Fut(e,r,n,i,a){return jr(e).write(r,n,i,a)}function $ut(e,r,n){return jr(e).writeDoubleLE(r,n)}function Lut(e,r,n){return jr(e).writeFloatLE(r,n)}function Nut(e,r,n){return jr(e).writeUInt32LE(r,n)}function Mut(e,r,n){return jr(e).writeInt32LE(r,n)}function qut(e,r){return jr(e).readDoubleLE(r)}function jut(e,r){return jr(e).readFloatLE(r)}function But(e,r){return jr(e).readUInt32LE(r)}function Uut(e,r){return jr(e).readInt32LE(r)}kme.exports={isBuffer:mut,isEncoding:gut,alloc:vut,allocUnsafe:yut,allocUnsafeSlow:but,byteLength:xut,compare:wut,concat:_ut,copy:Eut,equals:Sut,fill:Dut,from:Cut,includes:Put,indexOf:Tut,lastIndexOf:Rut,swap16:Aut,swap32:Out,swap64:Iut,toBuffer:jr,toString:kut,write:Fut,writeDoubleLE:$ut,writeFloatLE:Lut,writeUInt32LE:Nut,writeInt32LE:Mut,readDoubleLE:qut,readFloatLE:jut,readUInt32LE:But,readInt32LE:Uut}});var X8=S(Wh=>{"use strict";var yt=FD(),Gut="0000000000000000000",Wut="7777777777777777777",$D=48,Fme=yt.from([117,115,116,97,114,0]),Hut=yt.from([$D,$D]),zut=yt.from([117,115,116,97,114,32]),Vut=yt.from([32,0]),Yut=4095,w0=257,K8=263;Wh.decodeLongPath=function(r,n){return Gh(r,0,r.length,n)};Wh.encodePax=function(r){let n="";r.name&&(n+=Y8(" path="+r.name+` -`)),r.linkname&&(n+=Y8(" linkpath="+r.linkname+` -`));let i=r.pax;if(i)for(let a in i)n+=Y8(" "+a+"="+i[a]+` -`);return yt.from(n)};Wh.decodePax=function(r){let n={};for(;r.length;){let i=0;for(;i100;){let o=i.indexOf("/");if(o===-1)return null;a+=a?"/"+i.slice(0,o):i.slice(0,o),i=i.slice(o+1)}return yt.byteLength(i)>100||yt.byteLength(a)>155||r.linkname&&yt.byteLength(r.linkname)>100?null:(yt.write(n,i),yt.write(n,Gu(r.mode&Yut,6),100),yt.write(n,Gu(r.uid,6),108),yt.write(n,Gu(r.gid,6),116),tlt(r.size,n,124),yt.write(n,Gu(r.mtime.getTime()/1e3|0,11),136),n[156]=$D+Zut(r.type),r.linkname&&yt.write(n,r.linkname,157),yt.copy(Fme,n,w0),yt.copy(Hut,n,K8),r.uname&&yt.write(n,r.uname,265),r.gname&&yt.write(n,r.gname,297),yt.write(n,Gu(r.devmajor||0,6),329),yt.write(n,Gu(r.devminor||0,6),337),a&&yt.write(n,a,345),yt.write(n,Gu(Lme(n),6),148),n)};Wh.decode=function(r,n,i){let a=r[156]===0?0:r[156]-$D,o=Gh(r,0,100,n),c=Uu(r,100,8),u=Uu(r,108,8),l=Uu(r,116,8),f=Uu(r,124,12),p=Uu(r,136,12),g=Qut(a),v=r[157]===0?null:Gh(r,157,100,n),x=Gh(r,265,32),E=Gh(r,297,32),D=Uu(r,329,8),P=Uu(r,337,8),R=Lme(r);if(R===8*32)return null;if(R!==Uu(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Kut(r))r[345]&&(o=Gh(r,345,155,n)+"/"+o);else if(!Xut(r)){if(!i)throw new Error("Invalid tar header: unknown format.")}return a===0&&o&&o[o.length-1]==="/"&&(a=5),{name:o,mode:c,uid:u,gid:l,size:f,mtime:new Date(1e3*p),type:g,linkname:v,uname:x,gname:E,devmajor:D,devminor:P,pax:null}};function Kut(e){return yt.equals(Fme,e.subarray(w0,w0+6))}function Xut(e){return yt.equals(zut,e.subarray(w0,w0+6))&&yt.equals(Vut,e.subarray(K8,K8+2))}function Jut(e,r,n){return typeof e!="number"?n:(e=~~e,e>=r?r:e>=0||(e+=r,e>=0)?e:0)}function Qut(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function Zut(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function $me(e,r,n,i){for(;nr?Wut.slice(0,r)+" ":Gut.slice(0,r-e.length)+e+" "}function elt(e,r,n){r[n]=128;for(let i=11;i>0;i--)r[n+i]=e&255,e=Math.floor(e/256)}function tlt(e,r,n){e.toString(8).length>11?elt(e,r,n):yt.write(r,Gu(e,11),n)}function rlt(e){let r;if(e[0]===128)r=!0;else if(e[0]===255)r=!1;else return null;let n=[],i;for(i=e.length-1;i>0;i--){let c=e[i];r?n.push(c):n.push(255-c)}let a=0,o=n.length;for(i=0;i=Math.pow(10,n)&&n++,r+n+e}});var Bme=S((w7t,jme)=>{"use strict";var{Writable:nlt,Readable:ilt,getStreamError:Nme}=V8(),slt=O8(),Mme=FD(),Hh=X8(),alt=Mme.alloc(0),Q8=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new slt,this._offset=0}push(r){this.buffered+=r.byteLength,this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return alt;let n=this._next(r);if(r===n.byteLength)return n;let i=[n];for(;(r-=n.byteLength)>0;)n=this._next(r),i.push(n);return Mme.concat(i)}_next(r){let n=this.queue.peek(),i=n.byteLength-this._offset;if(r>=i){let a=this._offset?n.subarray(this._offset,n.byteLength):n;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,a}return this.buffered-=r,this.shifted+=r,n.subarray(this._offset,this._offset+=r)}},Z8=class extends ilt{constructor(r,n,i){super(),this.header=n,this.offset=i,this._parent=r}_read(r){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),r(null)}_predestroy(){this._parent.destroy(Nme(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=qme(this.header.size),this._parent._update())}_destroy(r){this._detach(),r(null)}},eN=class extends nlt{constructor(r){super(r),r||(r={}),this._buffer=new Q8,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=J8,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=r.filenameEncoding||"utf-8",this._allowUnknownFormat=!!r.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(r){if(this._locked=!1,r){this.destroy(r),this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Hh.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){return this._continueWrite(r),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Hh.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Hh.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Hh.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?Hh.decodePax(r):Object.assign({},this._paxGlobal,Hh.decodePax(r));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=qme(this._header.size);let r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(n){return this._continueWrite(n),!1}return!0}_consumeStream(){let r=this._buffer.shiftFirst(this._missing);if(r===null)return!1;this._missing-=r.byteLength;let n=this._stream.push(r);return this._missing===0?(this._stream.push(null),n&&this._stream._detach(),n&&this._locked===!1):n}_createStream(){return new Z8(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let r=this._buffer.shiftFirst(this._missing);r!==null&&(this._missing-=r.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(r){let n=this._callback;this._callback=J8,n(r)}_write(r,n){this._callback=n,this._buffer.push(r),this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0,r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){this._stream&&this._stream.destroy(Nme(this)),r(null)}[Symbol.asyncIterator](){let r=null,n=null,i=null,a=null,o=null,c=this;return this.on("entry",f),this.on("error",v=>{r=v}),this.on("close",p),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return g(null)},throw(v){return g(v)}};function u(v){if(!o)return;let x=o;o=null,x(v)}function l(v,x){if(r)return x(r);if(a){v({value:a,done:!1}),a=null;return}n=v,i=x,u(null),c._finished&&n&&(n({value:void 0,done:!0}),n=i=null)}function f(v,x,E){o=E,x.on("error",J8),n?(n({value:x,done:!1}),n=i=null):a=x}function p(){u(r),n&&(r?i(r):n({value:void 0,done:!0}),n=i=null)}function g(v){return c.destroy(v),u(v),new Promise((x,E)=>{if(c.destroyed)return x({value:void 0,done:!0});c.once("close",function(){v?E(v):x({value:void 0,done:!0})})})}}};jme.exports=function(r){return new eN(r)};function J8(){}function qme(e){return e&=511,e&&512-e}});var Gme=S((_7t,tN)=>{"use strict";var Ume={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{tN.exports=require("fs").constants||Ume}catch{tN.exports=Ume}});var Yme=S((E7t,Vme)=>{"use strict";var{Readable:olt,Writable:clt,getStreamError:Wme}=V8(),Hf=FD(),zh=Gme(),LD=X8(),ult=493,llt=420,Hme=Hf.alloc(1024),nN=class extends clt{constructor(r,n,i){super({mapWritable:plt,eagerOpen:!0}),this.written=0,this.header=n,this._callback=i,this._linkname=null,this._isLinkname=n.type==="symlink"&&!n.linkname,this._isVoid=n.type!=="file"&&n.type!=="contiguous-file",this._finished=!1,this._pack=r,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(r){this._openCallback=r,this._pack._stream===this&&this._continueOpen()}_continuePack(r){if(this._callback===null)return;let n=this._callback;this._callback=null,n(r)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let r=this._openCallback;if(this._openCallback=null,r!==null){if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),r(null)}}_write(r,n){if(this._isLinkname)return this._linkname=this._linkname?Hf.concat([this._linkname,r]):r,n(null);if(this._isVoid)return r.byteLength>0?n(new Error("No body allowed for this entry")):n();if(this.written+=r.byteLength,this._pack.push(r))return n();this._pack._drain=n}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?Hf.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),zme(this._pack,this.header.size),this._pack._done(this))}_final(r){if(this.written!==this.header.size)return r(new Error("Size mismatch"));this._finish(),r(null)}_getError(){return Wme(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),r()}},iN=class extends olt{constructor(r){super(r),this._drain=rN,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(r,n,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof n=="function"&&(i=n,n=null),i||(i=rN),(!r.size||r.type==="symlink")&&(r.size=0),r.type||(r.type=flt(r.mode)),r.mode||(r.mode=r.type==="directory"?ult:llt),r.uid||(r.uid=0),r.gid||(r.gid=0),r.mtime||(r.mtime=new Date),typeof n=="string"&&(n=Hf.from(n));let a=new nN(this,r,i);return Hf.isBuffer(n)?(r.size=n.byteLength,a.write(n),a.end(),a):(a._isVoid,a)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(Hme),this.push(null))}_done(r){r===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(r){if(!r.pax){let n=LD.encode(r);if(n){this.push(n);return}}this._encodePax(r)}_encodePax(r){let n=LD.encodePax({name:r.name,linkname:r.linkname,pax:r.pax}),i={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:n.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(LD.encode(i)),this.push(n),zme(this,n.byteLength),i.size=r.size,i.type=r.type,this.push(LD.encode(i))}_doDrain(){let r=this._drain;this._drain=rN,r()}_predestroy(){let r=Wme(this);for(this._stream&&this._stream.destroy(r);this._pending.length;){let n=this._pending.shift();n.destroy(r),n._continueOpen()}this._doDrain()}_read(r){this._doDrain(),r()}};Vme.exports=function(r){return new iN(r)};function flt(e){switch(e&zh.S_IFMT){case zh.S_IFBLK:return"block-device";case zh.S_IFCHR:return"character-device";case zh.S_IFDIR:return"directory";case zh.S_IFIFO:return"fifo";case zh.S_IFLNK:return"symlink"}return"file"}function rN(){}function zme(e,r){r&=511,r&&e.push(Hme.subarray(0,512-r))}function plt(e){return Hf.isBuffer(e)?e:Hf.from(e)}});var Kme=S(sN=>{"use strict";sN.extract=Bme();sN.pack=Yme()});var Qme=S((D7t,Jme)=>{"use strict";var dlt=require("zlib"),hlt=Kme(),Xme=Lh(),cc=function(e){if(!(this instanceof cc))return new cc(e);e=this.options=Xme.defaults(e,{gzip:!1}),typeof e.gzipOptions!="object"&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=hlt.pack(e),this.compressor=!1,e.gzip&&(this.compressor=dlt.createGzip(e.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};cc.prototype._onCompressorError=function(e){this.engine.emit("error",e)};cc.prototype.append=function(e,r,n){var i=this;r.mtime=r.date;function a(c,u){if(c){n(c);return}i.engine.entry(r,u,function(l){n(l,r)})}if(r.sourceType==="buffer")a(null,e);else if(r.sourceType==="stream"&&r.stats){r.size=r.stats.size;var o=i.engine.entry(r,function(c){n(c,r)});e.pipe(o)}else r.sourceType==="stream"&&Xme.collectStream(e,a)};cc.prototype.finalize=function(){this.engine.finalize()};cc.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};cc.prototype.pipe=function(e,r){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,r):this.engine.pipe.apply(this.engine,arguments)};cc.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};Jme.exports=cc});var tge=S((C7t,ege)=>{"use strict";var Wu=require("buffer").Buffer,aN=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(aN=new Int32Array(aN));function Zme(e){if(Wu.isBuffer(e))return e;var r=typeof Wu.alloc=="function"&&typeof Wu.from=="function";if(typeof e=="number")return r?Wu.alloc(e):new Wu(e);if(typeof e=="string")return r?Wu.from(e):new Wu(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function mlt(e){var r=Zme(4);return r.writeInt32BE(e,0),r}function oN(e,r){e=Zme(e),Wu.isBuffer(r)&&(r=r.readUInt32BE(0));for(var n=~~r^-1,i=0;i>>8;return n^-1}function cN(){return mlt(oN.apply(null,arguments))}cN.signed=function(){return oN.apply(null,arguments)};cN.unsigned=function(){return oN.apply(null,arguments)>>>0};ege.exports=cN});var sge=S((P7t,ige)=>{"use strict";var glt=require("util").inherits,rge=Nu().Transform,vlt=tge(),nge=Lh(),Hu=function(e){if(!(this instanceof Hu))return new Hu(e);e=this.options=nge.defaults(e,{}),rge.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};glt(Hu,rge);Hu.prototype._transform=function(e,r,n){n(null,e)};Hu.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};Hu.prototype.append=function(e,r,n){var i=this;r.crc32=0;function a(o,c){if(o){n(o);return}r.size=c.length||0,r.crc32=vlt.unsigned(c),i.files.push(r),n(null,r)}r.sourceType==="buffer"?a(null,e):r.sourceType==="stream"&&nge.collectStream(e,a)};Hu.prototype.finalize=function(){this._writeStringified(),this.end()};ige.exports=Hu});var oge=S((T7t,age)=>{"use strict";var ylt=Ehe(),_0={},zu=function(e,r){return zu.create(e,r)};zu.create=function(e,r){if(_0[e]){var n=new ylt(e,r);return n.setFormat(e),n.setModule(new _0[e](r)),n}else throw new Error("create("+e+"): format not registered")};zu.registerFormat=function(e,r){if(_0[e])throw new Error("register("+e+"): format already registered");if(typeof r!="function")throw new Error("register("+e+"): format module invalid");if(typeof r.prototype.append!="function"||typeof r.prototype.finalize!="function")throw new Error("register("+e+"): format module missing methods");_0[e]=r};zu.isRegisteredFormat=function(e){return!!_0[e]};zu.registerFormat("zip",rme());zu.registerFormat("tar",Qme());zu.registerFormat("json",sge());age.exports=zu});var cge=S((R7t,blt)=>{blt.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var fge=S(is=>{"use strict";var lge=cge(),Jr=process.env;Object.defineProperty(is,"_vendors",{value:lge.map(function(e){return e.constant})});is.name=null;is.isPR=null;lge.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(i){return uge(i)});if(is[e.constant]=n,!!n)switch(is.name=e.name,typeof e.pr){case"string":is.isPR=!!Jr[e.pr];break;case"object":"env"in e.pr?is.isPR=e.pr.env in Jr&&Jr[e.pr.env]!==e.pr.ne:"any"in e.pr?is.isPR=e.pr.any.some(function(i){return!!Jr[i]}):is.isPR=uge(e.pr);break;default:is.isPR=null}});is.isCI=!!(Jr.CI!=="false"&&(Jr.BUILD_ID||Jr.BUILD_NUMBER||Jr.CI||Jr.CI_APP_ID||Jr.CI_BUILD_ID||Jr.CI_BUILD_NUMBER||Jr.CI_NAME||Jr.CONTINUOUS_INTEGRATION||Jr.RUN_ID||is.name));function uge(e){return typeof e=="string"?!!Jr[e]:"env"in e?Jr[e.env]&&Jr[e.env].includes(e.includes):"any"in e?e.any.some(function(r){return!!Jr[r]}):Object.keys(e).every(function(r){return Jr[r]===e[r]})}});var Vh=S((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var path$2=require("path"),os$1=require("os"),require$$0=require("fs"),require$$2=require("util"),fs$1=require("fs/promises"),crypto=require("crypto"),child_process=require("child_process");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var path__default=_interopDefaultLegacy(path$2),os__default=_interopDefaultLegacy(os$1),require$$0__default=_interopDefaultLegacy(require$$0),require$$2__default=_interopDefaultLegacy(require$$2),fs__default=_interopDefaultLegacy(fs$1),crypto__default=_interopDefaultLegacy(crypto),rnds8Pool=new Uint8Array(256),poolPtr=rnds8Pool.length;function rng(){return poolPtr>rnds8Pool.length-16&&(crypto__default.default.randomFillSync(rnds8Pool),poolPtr=0),rnds8Pool.slice(poolPtr,poolPtr+=16)}var byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,r=0){return byteToHex[e[r+0]]+byteToHex[e[r+1]]+byteToHex[e[r+2]]+byteToHex[e[r+3]]+"-"+byteToHex[e[r+4]]+byteToHex[e[r+5]]+"-"+byteToHex[e[r+6]]+byteToHex[e[r+7]]+"-"+byteToHex[e[r+8]]+byteToHex[e[r+9]]+"-"+byteToHex[e[r+10]]+byteToHex[e[r+11]]+byteToHex[e[r+12]]+byteToHex[e[r+13]]+byteToHex[e[r+14]]+byteToHex[e[r+15]]}var native={randomUUID:crypto__default.default.randomUUID};function v4(e,r,n){if(native.randomUUID&&!r&&!e)return native.randomUUID();e=e||{};let i=e.random||(e.rng||rng)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,r){n=n||0;for(let a=0;a<16;++a)r[n+a]=i[a];return r}return unsafeStringify(i)}var envPaths$1={exports:{}},path$1=path__default.default,os=os__default.default,homedir=os.homedir(),tmpdir=os.tmpdir(),{env}=process,macos=e=>{let r=path$1.join(homedir,"Library");return{data:path$1.join(r,"Application Support",e),config:path$1.join(r,"Preferences",e),cache:path$1.join(r,"Caches",e),log:path$1.join(r,"Logs",e),temp:path$1.join(tmpdir,e)}},windows=e=>{let r=env.APPDATA||path$1.join(homedir,"AppData","Roaming"),n=env.LOCALAPPDATA||path$1.join(homedir,"AppData","Local");return{data:path$1.join(n,e,"Data"),config:path$1.join(r,e,"Config"),cache:path$1.join(n,e,"Cache"),log:path$1.join(n,e,"Log"),temp:path$1.join(tmpdir,e)}},linux=e=>{let r=path$1.basename(homedir);return{data:path$1.join(env.XDG_DATA_HOME||path$1.join(homedir,".local","share"),e),config:path$1.join(env.XDG_CONFIG_HOME||path$1.join(homedir,".config"),e),cache:path$1.join(env.XDG_CACHE_HOME||path$1.join(homedir,".cache"),e),log:path$1.join(env.XDG_STATE_HOME||path$1.join(homedir,".local","state"),e),temp:path$1.join(tmpdir,r,e)}},envPaths=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return r=Object.assign({suffix:"nodejs"},r),r.suffix&&(e+=`-${r.suffix}`),process.platform==="darwin"?macos(e):process.platform==="win32"?windows(e):linux(e)};envPaths$1.exports=envPaths;envPaths$1.exports.default=envPaths;var paths=envPaths$1.exports,makeDir$2={exports:{}},debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},debug_1=debug$1,SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"],constants={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},re$1={exports:{}};(function(e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i}=constants,a=debug_1;r=e.exports={};let o=r.re=[],c=r.safeRe=[],u=r.src=[],l=r.t={},f=0,p="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",n],[p,i]],v=E=>{for(let[D,P]of g)E=E.split(`${D}*`).join(`${D}{0,${P}}`).split(`${D}+`).join(`${D}{1,${P}}`);return E},x=(E,D,P)=>{let R=v(D),k=f++;a(E,k,D),l[E]=k,u[k]=D,o[k]=new RegExp(D,P?"g":void 0),c[k]=new RegExp(R,P?"g":void 0)};x("NUMERICIDENTIFIER","0|[1-9]\\d*"),x("NUMERICIDENTIFIERLOOSE","\\d+"),x("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),x("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),x("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),x("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),x("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),x("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),x("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),x("BUILDIDENTIFIER",`${p}+`),x("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),x("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),x("FULL",`^${u[l.FULLPLAIN]}$`),x("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),x("LOOSE",`^${u[l.LOOSEPLAIN]}$`),x("GTLT","((?:<|>)?=?)"),x("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),x("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),x("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),x("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),x("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),x("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),x("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),x("COERCERTL",u[l.COERCE],!0),x("LONETILDE","(?:~>?)"),x("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",x("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),x("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),x("LONECARET","(?:\\^)"),x("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",x("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),x("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),x("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),x("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),x("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",x("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),x("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),x("STAR","(<|>)?=?\\s*\\*"),x("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),x("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$1,re$1.exports);var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts,parseOptions_1=parseOptions$1,numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{let n=numeric.test(e),i=numeric.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:ecompareIdentifiers$1(r,e),identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers},debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=re$1.exports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers,SemVer$1=class e{constructor(r,n){if(n=parseOptions(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=r.trim().match(n.loose?re[t.LOOSE]:re[t.FULL]);if(!i)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let o=[n,a];i===!1&&(o=[n]),compareIdentifiers(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},semver=SemVer$1,SemVer=semver,compare$1=(e,r,n)=>new SemVer(e,n).compare(new SemVer(r,n)),compare_1=compare$1,compare=compare_1,gte=(e,r,n)=>compare(e,r,n)>=0,gte_1=gte,fs=require$$0__default.default,path=path__default.default,{promisify}=require$$2__default.default,semverGte=gte_1,useNativeRecursiveOption=semverGte(process.version,"10.12.0"),checkPath=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(path.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},processOptions=e=>({...{mode:511,fs},...e}),permissionError=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r},makeDir=async(e,r)=>{checkPath(e),r=processOptions(r);let n=promisify(r.fs.mkdir),i=promisify(r.fs.stat);if(useNativeRecursiveOption&&r.fs.mkdir===fs.mkdir){let o=path.resolve(e);return await n(o,{mode:r.mode,recursive:!0}),o}let a=async o=>{try{return await n(o,r.mode),o}catch(c){if(c.code==="EPERM")throw c;if(c.code==="ENOENT"){if(path.dirname(o)===o)throw permissionError(o);if(c.message.includes("null bytes"))throw c;return await a(path.dirname(o)),a(o)}try{if(!(await i(o)).isDirectory())throw new Error("The path is not a directory")}catch{throw c}return o}};return a(path.resolve(e))};makeDir$2.exports=makeDir;makeDir$2.exports.sync=(e,r)=>{if(checkPath(e),r=processOptions(r),useNativeRecursiveOption&&r.fs.mkdirSync===fs.mkdirSync){let i=path.resolve(e);return fs.mkdirSync(i,{mode:r.mode,recursive:!0}),i}let n=i=>{try{r.fs.mkdirSync(i,r.mode)}catch(a){if(a.code==="EPERM")throw a;if(a.code==="ENOENT"){if(path.dirname(i)===i)throw permissionError(i);if(a.message.includes("null bytes"))throw a;return n(path.dirname(i)),n(i)}try{if(!r.fs.statSync(i).isDirectory())throw new Error("The path is not a directory")}catch{throw a}}return i};return n(path.resolve(e))};var makeDir$1=makeDir$2.exports,PRISMA_SIGNATURE="signature";async function getSignature(e){let r=paths("checkpoint");e=e||path__default.default.join(r.cache,PRISMA_SIGNATURE);let n=await readSignature(e);return n||await createSignatureFile(e)}function isSignatureValid(e){return typeof e=="string"&&e.length===36}async function readSignature(e){try{let r=await fs__default.default.readFile(e,"utf8"),{signature:n}=JSON.parse(r);return isSignatureValid(n)?n:""}catch{return""}}async function createSignatureFile(e,r){let n={signature:r||v4()};return await makeDir$1(path__default.default.dirname(e)),await fs__default.default.writeFile(e,JSON.stringify(n,null," ")),n.signature}async function getInfo(){let e=paths("checkpoint").cache;require$$0.existsSync(e)||await fs__default.default.mkdir(e,{recursive:!0});let r=await fs__default.default.readdir(e),n=[];for(let i of r)if(i.includes("-"))try{let a=JSON.parse(await fs__default.default.readFile(path__default.default.join(e,i),{encoding:"utf-8"}));a.output&&!a.output.cli_path_hash&&(a.output.cli_path_hash=i.split("-")[1]),n.push(a)}catch(a){console.error(a)}return{signature:await getSignature(),cachePath:e,cacheItems:n}}var defaultSchema={last_reminder:0,cached_at:0,version:"",cli_path:"",output:{client_event_id:"",previous_client_event_id:"",product:"",cli_path_hash:"",local_timestamp:"",previous_version:"",current_version:"",current_release_date:0,current_download_url:"",current_changelog_url:"",package:"",release_tag:"",install_command:"",project_website:"",outdated:!1,alerts:[]}},Config=class e{static async new(r,n=defaultSchema){return await makeDir$1(path__default.default.dirname(r.cache_file)),new e(r,n)}constructor(r,n){this.state=r,this.defaultSchema=n}async checkCache(r){let n=r.now(),i=await this.all();return i?r.version!==i.version?{cache:i,stale:!0}:n-i.cached_at>r.cache_duration?{cache:i,stale:!0}:{cache:i,stale:!1}:{cache:void 0,stale:!0}}async set(r){let n=await this.all()||{},i=Object.assign(n,r);for(let a in this.defaultSchema)typeof i[a]>"u"&&(i[a]=this.defaultSchema[a]);await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(i,null," "))}async all(){try{let r=await fs__default.default.readFile(this.state.cache_file,"utf8");return JSON.parse(r)}catch{return}}async get(r){let n=await this.all();if(!(typeof n>"u"))return n[r]}async reset(){await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(this.defaultSchema,null," "))}async delete(){try{await fs__default.default.unlink(this.state.cache_file);return}catch{return}}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return parse(e);if(n==="number"&&isFinite(e))return r.long?fmtLong(e):fmtShort(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),i=(r[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var r=Math.abs(e);return r>=d?Math.round(e/d)+"d":r>=h?Math.round(e/h)+"h":r>=m?Math.round(e/m)+"m":r>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){var r=Math.abs(e);return r>=d?plural(e,r,d,"day"):r>=h?plural(e,r,h,"hour"):r>=m?plural(e,r,m,"minute"):r>=s?plural(e,r,s,"second"):e+" ms"}function plural(e,r,n,i){var a=r>=n*1.5;return Math.round(e/n)+" "+i+(a?"s":"")}var TELEMETRY_ENDPOINT_URL_PRODUCTION="https://checkpoint.prisma.io",childPath=path__default.default.join(eval("__dirname"),"child");async function check(e){let r=getCacheFile(e.product,e.cli_path_hash||"default"),n=fge(),i=e.endpoint||process.env.PRISMA_TELEMETRY_ENDPOINT||TELEMETRY_ENDPOINT_URL_PRODUCTION,a={product:e.product,version:e.version,cli_install_type:e.cli_install_type||"",information:e.information||"",local_timestamp:e.local_timestamp||rfc3339(new Date),project_hash:e.project_hash,cli_path:e.cli_path||"",cli_path_hash:e.cli_path_hash||"",endpoint:i,disable:typeof e.disable>"u"?!1:e.disable,arch:e.arch||os__default.default.arch(),os:e.os||os__default.default.platform(),node_version:e.node_version||process.version,ci:typeof e.ci<"u"?e.ci:n.isCI,ci_name:typeof e.ci_name<"u"?e.ci_name||"":n.name||"",command:e.command||"",schema_providers:e.schema_providers||[],schema_preview_features:e.schema_preview_features||[],schema_generators_providers:e.schema_generators_providers||[],cache_file:e.cache_file||r,cache_duration:typeof e.cache_duration>"u"?ms("12h"):e.cache_duration,remind_duration:typeof e.remind_duration>"u"?ms("48h"):e.remind_duration,force:typeof e.force>"u"?!1:e.force,timeout:getTimeout(e.timeout),unref:typeof e.unref>"u"?!0:e.unref,child_path:e.child_path||childPath,now:()=>Date.now(),client_event_id:e.client_event_id||"",previous_client_event_id:e.previous_client_event_id||"",check_if_update_available:!1};if((process.env.CHECKPOINT_DISABLE||a.disable)&&!a.force)return{status:"disabled"};let o=await Config.new(a),c=await o.checkCache(a);a.check_if_update_available=c.stale===!0||!c.cache;let u=spawn(a);if(a.unref&&(u.unref(),u.disconnect()),c.stale===!0||!c.cache)return{status:"waiting",data:u};for(let f of Object.keys(a))a[f]&&await o.set({[f]:a[f]});return a.now()-c.cache.last_reminder"u")return 5e3;let n=parseInt(r,10);return isNaN(n)?5e3:n}function getForkOpts(e){return e.unref===!0?{detached:!0,stdio:process.env.CHECKPOINT_DEBUG_STDOUT?"inherit":"ignore",env:process.env}:{detached:!1,stdio:"pipe",env:process.env}}function spawn(e){return child_process.fork(childPath,[JSON.stringify(e)],getForkOpts(e))}function rfc3339(e){function r(i){return i<10?"0"+i:i}function n(i){let a;return i===0?"Z":(a=i>0?"-":"+",i=Math.abs(i),a+r(Math.floor(i/60))+":"+r(i%60))}return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n(e.getTimezoneOffset())}exports.check=check;exports.getInfo=getInfo;exports.getSignature=getSignature});var dge=S((O7t,pge)=>{"use strict";pge.exports=({onlyFirst:e=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}});var Yh=S((I7t,hge)=>{"use strict";var xlt=dge();hge.exports=e=>typeof e=="string"?e.replace(xlt(),""):e});var Age=S((k7t,uc)=>{"use strict";var Br=require("fs"),dN=require("os"),ss=require("path"),mge=require("crypto"),uo={fs:Br.constants,os:dN.constants},gge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",yge=/XXXXXX/,wlt=3,bge=(uo.O_CREAT||uo.fs.O_CREAT)|(uo.O_EXCL||uo.fs.O_EXCL)|(uo.O_RDWR||uo.fs.O_RDWR),_lt=dN.platform()==="win32",Elt=uo.EBADF||uo.os.errno.EBADF,Slt=uo.ENOENT||uo.os.errno.ENOENT,xge=448,wge=384,Dlt="exit",Kh=[],_ge=Br.rmdirSync.bind(Br),Ege=!1;function Clt(e,r){return Br.rm(e,{recursive:!0},r)}function Sge(e){return Br.rmSync(e,{recursive:!0})}function hN(e,r){let n=Xh(e,r),i=n[0],a=n[1];try{Pge(i)}catch(c){return a(c)}let o=i.tries;(function c(){try{let u=Cge(i);Br.stat(u,function(l){if(!l)return o-- >0?c():a(new Error("Could not get a unique tmp filename, max tries reached "+u));a(null,u)})}catch(u){a(u)}})()}function mN(e){let r=Xh(e),n=r[0];Pge(n);let i=n.tries;do{let a=Cge(n);try{Br.statSync(a)}catch{return a}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Plt(e,r){let n=Xh(e,r),i=n[0],a=n[1];hN(i,function(c,u){if(c)return a(c);Br.open(u,bge,i.mode||wge,function(f,p){if(f)return a(f);if(i.discardDescriptor)return Br.close(p,function(v){return a(v,u,void 0,lN(u,-1,i,!1))});{let g=i.discardDescriptor||i.detachDescriptor;a(null,u,p,lN(u,g?-1:p,i,!1))}})})}function Tlt(e){let r=Xh(e),n=r[0],i=n.discardDescriptor||n.detachDescriptor,a=mN(n);var o=Br.openSync(a,bge,n.mode||wge);return n.discardDescriptor&&(Br.closeSync(o),o=void 0),{name:a,fd:o,removeCallback:lN(a,i?-1:o,n,!0)}}function Rlt(e,r){let n=Xh(e,r),i=n[0],a=n[1];hN(i,function(c,u){if(c)return a(c);Br.mkdir(u,i.mode||xge,function(f){if(f)return a(f);a(null,u,Dge(u,i,!1))})})}function Alt(e){let r=Xh(e),n=r[0],i=mN(n);return Br.mkdirSync(i,n.mode||xge),{name:i,removeCallback:Dge(i,n,!0)}}function Olt(e,r){let n=function(i){if(i&&!pN(i))return r(i);r()};0<=e[0]?Br.close(e[0],function(){Br.unlink(e[1],n)}):Br.unlink(e[1],n)}function Ilt(e){let r=null;try{0<=e[0]&&Br.closeSync(e[0])}catch(n){if(!$lt(n)&&!pN(n))throw n}finally{try{Br.unlinkSync(e[1])}catch(n){pN(n)||(r=n)}}if(r!==null)throw r}function lN(e,r,n,i){let a=ND(Ilt,[r,e],i),o=ND(Olt,[r,e],i,a);return n.keep||Kh.unshift(a),i?a:o}function Dge(e,r,n){let i=r.unsafeCleanup?Clt:Br.rmdir.bind(Br),a=r.unsafeCleanup?Sge:_ge,o=ND(a,e,n),c=ND(i,e,n,o);return r.keep||Kh.unshift(o),n?o:c}function ND(e,r,n,i){let a=!1;return function o(c){if(!a){let u=i||o,l=Kh.indexOf(u);return l>=0&&Kh.splice(l,1),a=!0,n||e===_ge||e===Sge?e(r):e(r,c||function(){})}}}function klt(){if(Ege)for(;Kh.length;)try{Kh[0]()}catch{}}function vge(e){let r=[],n=null;try{n=mge.randomBytes(e)}catch{n=mge.pseudoRandomBytes(e)}for(var i=0;i"u"}function Xh(e,r){if(typeof e=="function")return[{},e];if(Ci(e))return[{},r];let n={};for(let i of Object.getOwnPropertyNames(e))n[i]=e[i];return[n,r]}function Cge(e){let r=e.tmpdir;if(!Ci(e.name))return ss.join(r,e.dir,e.name);if(!Ci(e.template))return ss.join(r,e.dir,e.template).replace(yge,vge(6));let n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",vge(12),e.postfix?"-"+e.postfix:""].join("");return ss.join(r,e.dir,n)}function Pge(e){e.tmpdir=Rge(e);let r=e.tmpdir;if(Ci(e.name)||uN(e.name,"name",r),Ci(e.dir)||uN(e.dir,"dir",r),!Ci(e.template)&&(uN(e.template,"template",r),!e.template.match(yge)))throw new Error(`Invalid template, found "${e.template}".`);if(!Ci(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Ci(e.name)?e.tries||wlt:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Ci(e.dir)?"":ss.relative(r,fN(e.dir,r)),e.template=Ci(e.template)?void 0:ss.relative(r,fN(e.template,r)),e.template=Flt(e.template)?void 0:ss.relative(e.dir,e.template),e.name=Ci(e.name)?void 0:e.name,e.prefix=Ci(e.prefix)?"":e.prefix,e.postfix=Ci(e.postfix)?"":e.postfix}function fN(e,r){return e.startsWith(r)?ss.resolve(e):ss.resolve(ss.join(r,e))}function uN(e,r,n){if(r==="name"){if(ss.isAbsolute(e))throw new Error(`${r} option must not contain an absolute path, found "${e}".`);let i=ss.basename(e);if(i===".."||i==="."||i!==e)throw new Error(`${r} option must not contain a path, found "${e}".`)}else{if(ss.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${e}".`);let i=fN(e,n);if(!i.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${i}".`)}}function $lt(e){return Tge(e,-Elt,"EBADF")}function pN(e){return Tge(e,-Slt,"ENOENT")}function Tge(e,r,n){return _lt?e.code===n:e.code===n&&e.errno===r}function Llt(){Ege=!0}function Rge(e){return ss.resolve(e&&e.tmpdir||dN.tmpdir())}process.addListener(Dlt,klt);Object.defineProperty(uc.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return Rge()}});uc.exports.dir=Rlt;uc.exports.dirSync=Alt;uc.exports.file=Plt;uc.exports.fileSync=Tlt;uc.exports.tmpName=hN;uc.exports.tmpNameSync=mN;uc.exports.setGracefulCleanup=Llt});var Gge=S((X7t,Uge)=>{"use strict";Uge.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var mr=S((J7t,Hge)=>{"use strict";var{FORCE_COLOR:jlt,NODE_DISABLE_COLORS:Blt,TERM:Ult}=process.env,It={enabled:!Blt&&Ult!=="dumb"&&jlt!=="0",reset:Jt(0,0),bold:Jt(1,22),dim:Jt(2,22),italic:Jt(3,23),underline:Jt(4,24),inverse:Jt(7,27),hidden:Jt(8,28),strikethrough:Jt(9,29),black:Jt(30,39),red:Jt(31,39),green:Jt(32,39),yellow:Jt(33,39),blue:Jt(34,39),magenta:Jt(35,39),cyan:Jt(36,39),white:Jt(37,39),gray:Jt(90,39),grey:Jt(90,39),bgBlack:Jt(40,49),bgRed:Jt(41,49),bgGreen:Jt(42,49),bgYellow:Jt(43,49),bgBlue:Jt(44,49),bgMagenta:Jt(45,49),bgCyan:Jt(46,49),bgWhite:Jt(47,49)};function Wge(e,r){let n=0,i,a="",o="";for(;n{"use strict";zge.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var qD=S((Z7t,Yge)=>{"use strict";Yge.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var vr=S((eGt,Kge)=>{"use strict";var xN="\x1B",gr=`${xN}[`,Wlt="\x07",wN={to(e,r){return r?`${gr}${r+1};${e+1}H`:`${gr}${e+1}G`},move(e,r){let n="";return e<0?n+=`${gr}${-e}D`:e>0&&(n+=`${gr}${e}C`),r<0?n+=`${gr}${-r}A`:r>0&&(n+=`${gr}${r}B`),n},up:(e=1)=>`${gr}${e}A`,down:(e=1)=>`${gr}${e}B`,forward:(e=1)=>`${gr}${e}C`,backward:(e=1)=>`${gr}${e}D`,nextLine:(e=1)=>`${gr}E`.repeat(e),prevLine:(e=1)=>`${gr}F`.repeat(e),left:`${gr}G`,hide:`${gr}?25l`,show:`${gr}?25h`,save:`${xN}7`,restore:`${xN}8`},Hlt={up:(e=1)=>`${gr}S`.repeat(e),down:(e=1)=>`${gr}T`.repeat(e)},zlt={screen:`${gr}2J`,up:(e=1)=>`${gr}1J`.repeat(e),down:(e=1)=>`${gr}J`.repeat(e),line:`${gr}2K`,lineEnd:`${gr}K`,lineStart:`${gr}1K`,lines(e){let r="";for(let n=0;n{"use strict";function Vlt(e,r){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ylt(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,c=!1,u;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return o=f.done,f},e:function(f){c=!0,u=f},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(c)throw u}}}}function Ylt(e,r){if(e){if(typeof e=="string")return Xge(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xge(e,r)}}function Xge(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n[...Klt(e)].length;Zge.exports=function(e,r){if(!r)return Jge.line+Xlt.to(0);let n=0,i=e.split(/\r?\n/);var a=Vlt(i),o;try{for(a.s();!(o=a.n()).done;){let c=o.value;n+=1+Math.floor(Math.max(Jlt(c)-1,0)/r)}}catch(c){a.e(c)}finally{a.f()}return Jge.lines(n)}});var _N=S((rGt,tve)=>{"use strict";var S0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Qlt={arrowUp:S0.arrowUp,arrowDown:S0.arrowDown,arrowLeft:S0.arrowLeft,arrowRight:S0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Zlt=process.platform==="win32"?Qlt:S0;tve.exports=Zlt});var nve=S((nGt,rve)=>{"use strict";var em=mr(),zf=_N(),EN=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1F603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),eft=e=>EN[e]||EN.default,D0=Object.freeze({aborted:em.red(zf.cross),done:em.green(zf.tick),exited:em.yellow(zf.cross),default:em.cyan("?")}),tft=(e,r,n)=>r?D0.aborted:n?D0.exited:e?D0.done:D0.default,rft=e=>em.gray(e?zf.ellipsis:zf.pointerSmall),nft=(e,r)=>em.gray(e?r?zf.pointerSmall:"+":zf.line);rve.exports={styles:EN,render:eft,symbols:D0,symbol:tft,delimiter:rft,item:nft}});var sve=S((iGt,ive)=>{"use strict";var ift=qD();ive.exports=function(e,r){let n=String(ift(e)||"").split(/\r?\n/);return r?n.map(i=>Math.ceil(i.length/r)).reduce((i,a)=>i+a):n.length}});var ove=S((sGt,ave)=>{"use strict";ave.exports=(e,r={})=>{let n=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",i=r.width;return(e||"").split(/\r?\n/g).map(a=>a.split(/\s+/g).reduce((o,c)=>(c.length+n.length>=i||o[o.length-1].length+c.length+1{"use strict";cve.exports=(e,r,n)=>{n=n||r;let i=Math.min(r-n,e-Math.floor(n/2));i<0&&(i=0);let a=Math.min(i+n,r);return{startIndex:i,endIndex:a}}});var Da=S((oGt,lve)=>{"use strict";lve.exports={action:Vge(),clear:eve(),style:nve(),strip:qD(),figures:_N(),lines:sve(),wrap:ove(),entriesToDisplay:uve()}});var lc=S((cGt,dve)=>{"use strict";var fve=require("readline"),sft=Da(),aft=sft.action,oft=require("events"),pve=vr(),cft=pve.beep,uft=pve.cursor,lft=mr(),SN=class extends oft{constructor(r={}){super(),this.firstRender=!0,this.in=r.stdin||process.stdin,this.out=r.stdout||process.stdout,this.onRender=(r.onRender||(()=>{})).bind(this);let n=fve.createInterface({input:this.in,escapeCodeTimeout:50});fve.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,a=(o,c)=>{let u=aft(c,i);u===!1?this._&&this._(o,c):typeof this[u]=="function"?this[u](c):this.bell()};this.close=()=>{this.out.write(uft.show),this.in.removeListener("keypress",a),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",a)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(cft)}render(){this.onRender(lft),this.firstRender&&(this.firstRender=!1)}};dve.exports=SN});var yve=S((uGt,vve)=>{"use strict";function hve(e,r,n,i,a,o,c){try{var u=e[o](c),l=u.value}catch(f){n(f);return}u.done?r(l):Promise.resolve(l).then(i,a)}function mve(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function c(l){hve(o,i,a,c,u,"next",l)}function u(l){hve(o,i,a,c,u,"throw",l)}c(void 0)})}}var jD=mr(),fft=lc(),gve=vr(),pft=gve.erase,C0=gve.cursor,BD=Da(),DN=BD.style,CN=BD.clear,dft=BD.lines,hft=BD.figures,PN=class extends fft{constructor(r={}){super(r),this.transform=DN.render(r.style),this.scale=this.transform.scale,this.msg=r.message,this.initial=r.initial||"",this.validator=r.validate||(()=>!0),this.value="",this.errorMsg=r.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=CN("",this.out.columns),this.render()}set value(r){!r&&this.initial?(this.placeholder=!0,this.rendered=jD.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(r)),this._value=r,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var r=this;return mve(function*(){let n=yield r.validator(r.value);typeof n=="string"&&(r.errorMsg=n,n=!1),r.error=!n})()}submit(){var r=this;return mve(function*(){if(r.value=r.value||r.initial,r.cursorOffset=0,r.cursor=r.rendered.length,yield r.validate(),r.error){r.red=!0,r.fire(),r.render();return}r.done=!0,r.aborted=!1,r.fire(),r.render(),r.out.write(` -`),r.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(r){this.placeholder||(this.cursor=this.cursor+r,this.cursorOffset+=r)}_(r,n){let i=this.value.slice(0,this.cursor),a=this.value.slice(this.cursor);this.value=`${i}${r}${a}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let r=this.value.slice(0,this.cursor-1),n=this.value.slice(this.cursor);this.value=`${r}${n}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor+1);this.value=`${r}${n}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(C0.down(dft(this.outputError,this.out.columns)-1)+CN(this.outputError,this.out.columns)),this.out.write(CN(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[DN.symbol(this.done,this.aborted),jD.bold(this.msg),DN.delimiter(this.done),this.red?jD.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":hft.pointerSmall} ${jD.red().italic(n)}`,"")),this.out.write(pft.line+C0.to(0)+this.outputText+C0.save+this.outputError+C0.restore+C0.move(this.cursorOffset,0)))}};vve.exports=PN});var _ve=S((lGt,wve)=>{"use strict";var fc=mr(),mft=lc(),P0=Da(),bve=P0.style,xve=P0.clear,UD=P0.figures,gft=P0.wrap,vft=P0.entriesToDisplay,yft=vr(),bft=yft.cursor,TN=class extends mft{constructor(r={}){super(r),this.msg=r.message,this.hint=r.hint||"- Use arrow-keys. Return to submit.",this.warn=r.warn||"- This option is disabled",this.cursor=r.initial||0,this.choices=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),value:n&&(n.value===void 0?i:n.value),description:n&&n.description,selected:n&&n.selected,disabled:n&&n.disabled})),this.optionsPerPage=r.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=xve("",this.out.columns),this.render()}moveCursor(r){this.cursor=r,this.value=this.choices[r].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(r,n){if(r===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(bft.hide):this.out.write(xve(this.outputText,this.out.columns)),super.render();let r=vft(this.cursor,this.choices.length,this.optionsPerPage),n=r.startIndex,i=r.endIndex;if(this.outputText=[bve.symbol(this.done,this.aborted),fc.bold(this.msg),bve.delimiter(!1),this.done?this.selection.title:this.selection.disabled?fc.yellow(this.warn):fc.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let a=n;a0?c=UD.arrowUp:a===i-1&&i=this.out.columns||l.description.split(/\r?\n/).length>1)&&(u=` -`+gft(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${c} ${o}${fc.gray(u)} -`}}this.out.write(this.outputText)}};wve.exports=TN});var Tve=S((fGt,Pve)=>{"use strict";var GD=mr(),xft=lc(),Dve=Da(),Eve=Dve.style,wft=Dve.clear,Cve=vr(),Sve=Cve.cursor,_ft=Cve.erase,RN=class extends xft{constructor(r={}){super(r),this.msg=r.message,this.value=!!r.initial,this.active=r.active||"on",this.inactive=r.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(r,n){if(r===" ")this.value=!this.value;else if(r==="1")this.value=!0;else if(r==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Sve.hide):this.out.write(wft(this.outputText,this.out.columns)),super.render(),this.outputText=[Eve.symbol(this.done,this.aborted),GD.bold(this.msg),Eve.delimiter(this.done),this.value?this.inactive:GD.cyan().underline(this.inactive),GD.gray("/"),this.value?GD.cyan().underline(this.active):this.active].join(" "),this.out.write(_ft.line+Sve.to(0)+this.outputText))}};Pve.exports=RN});var lo=S((pGt,Rve)=>{"use strict";var AN=class e{constructor({token:r,date:n,parts:i,locales:a}){this.token=r,this.date=n||new Date,this.parts=i||[this],this.locales=a||{}}up(){}down(){}next(){let r=this.parts.indexOf(this);return this.parts.find((n,i)=>i>r&&n instanceof e)}setTo(r){}prev(){let r=[].concat(this.parts).reverse(),n=r.indexOf(this);return r.find((i,a)=>a>n&&i instanceof e)}toString(){return String(this.date)}};Rve.exports=AN});var Ove=S((dGt,Ave)=>{"use strict";var Eft=lo(),ON=class extends Eft{constructor(r={}){super(r)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let r=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?r.toUpperCase():r}};Ave.exports=ON});var kve=S((hGt,Ive)=>{"use strict";var Sft=lo(),Dft=e=>(e=e%10,e===1?"st":e===2?"nd":e===3?"rd":"th"),IN=class extends Sft{constructor(r={}){super(r)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(r){this.date.setDate(parseInt(r.substr(-2)))}toString(){let r=this.date.getDate(),n=this.date.getDay();return this.token==="DD"?String(r).padStart(2,"0"):this.token==="Do"?r+Dft(r):this.token==="d"?n+1:this.token==="ddd"?this.locales.weekdaysShort[n]:this.token==="dddd"?this.locales.weekdays[n]:r}};Ive.exports=IN});var $ve=S((mGt,Fve)=>{"use strict";var Cft=lo(),kN=class extends Cft{constructor(r={}){super(r)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(r){this.date.setHours(parseInt(r.substr(-2)))}toString(){let r=this.date.getHours();return/h/.test(this.token)&&(r=r%12||12),this.token.length>1?String(r).padStart(2,"0"):r}};Fve.exports=kN});var Nve=S((gGt,Lve)=>{"use strict";var Pft=lo(),FN=class extends Pft{constructor(r={}){super(r)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(r){this.date.setMilliseconds(parseInt(r.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Lve.exports=FN});var qve=S((vGt,Mve)=>{"use strict";var Tft=lo(),$N=class extends Tft{constructor(r={}){super(r)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(r){this.date.setMinutes(parseInt(r.substr(-2)))}toString(){let r=this.date.getMinutes();return this.token.length>1?String(r).padStart(2,"0"):r}};Mve.exports=$N});var Bve=S((yGt,jve)=>{"use strict";var Rft=lo(),LN=class extends Rft{constructor(r={}){super(r)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(r){r=parseInt(r.substr(-2))-1,this.date.setMonth(r<0?0:r)}toString(){let r=this.date.getMonth(),n=this.token.length;return n===2?String(r+1).padStart(2,"0"):n===3?this.locales.monthsShort[r]:n===4?this.locales.months[r]:String(r+1)}};jve.exports=LN});var Gve=S((bGt,Uve)=>{"use strict";var Aft=lo(),NN=class extends Aft{constructor(r={}){super(r)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(r){this.date.setSeconds(parseInt(r.substr(-2)))}toString(){let r=this.date.getSeconds();return this.token.length>1?String(r).padStart(2,"0"):r}};Uve.exports=NN});var Hve=S((xGt,Wve)=>{"use strict";var Oft=lo(),MN=class extends Oft{constructor(r={}){super(r)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(r){this.date.setFullYear(r.substr(-4))}toString(){let r=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?r.substr(-2):r}};Wve.exports=MN});var Vve=S((wGt,zve)=>{"use strict";zve.exports={DatePart:lo(),Meridiem:Ove(),Day:kve(),Hours:$ve(),Milliseconds:Nve(),Minutes:qve(),Month:Bve(),Seconds:Gve(),Year:Hve()}});var nye=S((_Gt,rye)=>{"use strict";function Yve(e,r,n,i,a,o,c){try{var u=e[o](c),l=u.value}catch(f){n(f);return}u.done?r(l):Promise.resolve(l).then(i,a)}function Kve(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function c(l){Yve(o,i,a,c,u,"next",l)}function u(l){Yve(o,i,a,c,u,"throw",l)}c(void 0)})}}var qN=mr(),Ift=lc(),BN=Da(),Xve=BN.style,Jve=BN.clear,kft=BN.figures,tye=vr(),Fft=tye.erase,Qve=tye.cursor,pc=Vve(),Zve=pc.DatePart,$ft=pc.Meridiem,Lft=pc.Day,Nft=pc.Hours,Mft=pc.Milliseconds,qft=pc.Minutes,jft=pc.Month,Bft=pc.Seconds,Uft=pc.Year,Gft=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,eye={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new Lft(e),3:e=>new jft(e),4:e=>new Uft(e),5:e=>new $ft(e),6:e=>new Nft(e),7:e=>new qft(e),8:e=>new Bft(e),9:e=>new Mft(e)},Wft={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},jN=class extends Ift{constructor(r={}){super(r),this.msg=r.message,this.cursor=0,this.typed="",this.locales=Object.assign(Wft,r.locales),this._date=r.initial||new Date,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.mask=r.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Jve("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(r){r&&this._date.setTime(r.getTime())}set mask(r){let n;for(this.parts=[];n=Gft.exec(r);){let a=n.shift(),o=n.findIndex(c=>c!=null);this.parts.push(o in eye?eye[o]({token:n[o]||a,date:this.date,parts:this.parts,locales:this.locales}):n[o]||a)}let i=this.parts.reduce((a,o)=>(typeof o=="string"&&typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(r){this.typed="",this.cursor=r,this.fire()}reset(){this.moveCursor(this.parts.findIndex(r=>r instanceof Zve)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var r=this;return Kve(function*(){let n=yield r.validator(r.value);typeof n=="string"&&(r.errorMsg=n,n=!1),r.error=!n})()}submit(){var r=this;return Kve(function*(){if(yield r.validate(),r.error){r.color="red",r.fire(),r.render();return}r.done=!0,r.aborted=!1,r.fire(),r.render(),r.out.write(` -`),r.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let r=this.parts[this.cursor].prev();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}right(){let r=this.parts[this.cursor].next();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}next(){let r=this.parts[this.cursor].next();this.moveCursor(r?this.parts.indexOf(r):this.parts.findIndex(n=>n instanceof Zve)),this.render()}_(r){/\d/.test(r)&&(this.typed+=r,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Qve.hide):this.out.write(Jve(this.outputText,this.out.columns)),super.render(),this.outputText=[Xve.symbol(this.done,this.aborted),qN.bold(this.msg),Xve.delimiter(!1),this.parts.reduce((r,n,i)=>r.concat(i===this.cursor&&!this.done?qN.cyan().underline(n.toString()):n),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":kft.pointerSmall} ${qN.red().italic(n)}`,"")),this.out.write(Fft.line+Qve.to(0)+this.outputText))}};rye.exports=jN});var lye=S((EGt,uye)=>{"use strict";function iye(e,r,n,i,a,o,c){try{var u=e[o](c),l=u.value}catch(f){n(f);return}u.done?r(l):Promise.resolve(l).then(i,a)}function sye(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function c(l){iye(o,i,a,c,u,"next",l)}function u(l){iye(o,i,a,c,u,"throw",l)}c(void 0)})}}var WD=mr(),Hft=lc(),cye=vr(),HD=cye.cursor,zft=cye.erase,zD=Da(),UN=zD.style,Vft=zD.figures,aye=zD.clear,Yft=zD.lines,Kft=/[0-9]/,GN=e=>e!==void 0,oye=(e,r)=>{let n=Math.pow(10,r);return Math.round(e*n)/n},WN=class extends Hft{constructor(r={}){super(r),this.transform=UN.render(r.style),this.msg=r.message,this.initial=GN(r.initial)?r.initial:"",this.float=!!r.float,this.round=r.round||2,this.inc=r.increment||1,this.min=GN(r.min)?r.min:-1/0,this.max=GN(r.max)?r.max:1/0,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(r){!r&&r!==0?(this.placeholder=!0,this.rendered=WD.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${oye(r,this.round)}`),this._value=oye(r,this.round)),this.fire()}get value(){return this._value}parse(r){return this.float?parseFloat(r):parseInt(r)}valid(r){return r==="-"||r==="."&&this.float||Kft.test(r)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let r=this.value;this.value=r!==""?r:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var r=this;return sye(function*(){let n=yield r.validator(r.value);typeof n=="string"&&(r.errorMsg=n,n=!1),r.error=!n})()}submit(){var r=this;return sye(function*(){if(yield r.validate(),r.error){r.color="red",r.fire(),r.render();return}let n=r.value;r.value=n!==""?n:r.initial,r.done=!0,r.aborted=!1,r.error=!1,r.fire(),r.render(),r.out.write(` -`),r.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let r=this.value.toString();if(r.length===0)return this.bell();this.value=this.parse(r=r.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=r,this.lastHit=i,this.color="cyan",r===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuer+` -${i?" ":Vft.pointerSmall} ${WD.red().italic(n)}`,"")),this.out.write(zft.line+HD.to(0)+this.outputText+HD.save+this.outputError+HD.restore))}};uye.exports=WN});var zN=S((SGt,dye)=>{"use strict";var fo=mr(),Xft=vr(),Jft=Xft.cursor,Qft=lc(),T0=Da(),fye=T0.clear,Vu=T0.figures,pye=T0.style,Zft=T0.wrap,ept=T0.entriesToDisplay,HN=class extends Qft{constructor(r={}){super(r),this.msg=r.message,this.cursor=r.cursor||0,this.scrollIndex=r.cursor||0,this.hint=r.hint||"",this.warn=r.warn||"- This option is disabled -",this.minSelected=r.min,this.showMinError=!1,this.maxChoices=r.max,this.instructions=r.instructions,this.optionsPerPage=r.optionsPerPage||10,this.value=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),description:n&&n.description,value:n&&(n.value===void 0?i:n.value),selected:n&&n.selected,disabled:n&&n.disabled})),this.clear=fye("",this.out.columns),r.overrideRender||this.render()}reset(){this.value.map(r=>!r.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(r=>r.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let r=this.value.filter(n=>n.selected);this.minSelected&&r.lengthr.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let r=this.value[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let r=!this.value[this.cursor].selected;this.value.filter(n=>!n.disabled).forEach(n=>n.selected=r),this.render()}_(r,n){if(r===" ")this.handleSpaceToggle();else if(r==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${Vu.arrowUp}/${Vu.arrowDown}: Highlight option - ${Vu.arrowLeft}/${Vu.arrowRight}/[space]: Toggle selection -`+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer":""}renderOption(r,n,i,a){let o=(n.selected?fo.green(Vu.radioOn):Vu.radioOff)+" "+a+" ",c,u;return n.disabled?c=r===i?fo.gray().underline(n.title):fo.strikethrough().gray(n.title):(c=r===i?fo.cyan().underline(n.title):n.title,r===i&&n.description&&(u=` - ${n.description}`,(o.length+c.length+u.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(u=` -`+Zft(n.description,{margin:o.length,width:this.out.columns})))),o+c+fo.gray(u||"")}paginateOptions(r){if(r.length===0)return fo.red("No matches for this query.");let n=ept(this.cursor,r.length,this.optionsPerPage),i=n.startIndex,a=n.endIndex,o,c=[];for(let u=i;u0?o=Vu.arrowUp:u===a-1&&an.selected).map(n=>n.title).join(", ");let r=[fo.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&r.push(fo.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Jft.hide),super.render();let r=[pye.symbol(this.done,this.aborted),fo.bold(this.msg),pye.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=fo.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.value),this.out.write(this.clear+r),this.clear=fye(r,this.out.columns)}};dye.exports=HN});var xye=S((DGt,bye)=>{"use strict";function hye(e,r,n,i,a,o,c){try{var u=e[o](c),l=u.value}catch(f){n(f);return}u.done?r(l):Promise.resolve(l).then(i,a)}function tpt(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function c(l){hye(o,i,a,c,u,"next",l)}function u(l){hye(o,i,a,c,u,"throw",l)}c(void 0)})}}var R0=mr(),rpt=lc(),yye=vr(),npt=yye.erase,mye=yye.cursor,A0=Da(),VN=A0.style,gye=A0.clear,YN=A0.figures,ipt=A0.wrap,spt=A0.entriesToDisplay,vye=(e,r)=>e[r]&&(e[r].value||e[r].title||e[r]),apt=(e,r)=>e[r]&&(e[r].title||e[r].value||e[r]),opt=(e,r)=>{let n=e.findIndex(i=>i.value===r||i.title===r);return n>-1?n:void 0},KN=class extends rpt{constructor(r={}){super(r),this.msg=r.message,this.suggest=r.suggest,this.choices=r.choices,this.initial=typeof r.initial=="number"?r.initial:opt(r.choices,r.initial),this.select=this.initial||r.cursor||0,this.i18n={noMatches:r.noMatches||"no matches found"},this.fallback=r.fallback||this.initial,this.clearFirst=r.clearFirst||!1,this.suggestions=[],this.input="",this.limit=r.limit||10,this.cursor=0,this.transform=VN.render(r.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=gye("",this.out.columns),this.complete(this.render),this.render()}set fallback(r){this._fb=Number.isSafeInteger(parseInt(r))?parseInt(r):r}get fallback(){let r;return typeof this._fb=="number"?r=this.choices[this._fb]:typeof this._fb=="string"&&(r={title:this._fb}),r||this._fb||{title:this.i18n.noMatches}}moveSelect(r){this.select=r,this.suggestions.length>0?this.value=vye(this.suggestions,r):this.value=this.fallback.value,this.fire()}complete(r){var n=this;return tpt(function*(){let i=n.completing=n.suggest(n.input,n.choices),a=yield i;if(n.completing!==i)return;n.suggestions=a.map((c,u,l)=>({title:apt(l,u),value:vye(l,u),description:c.description})),n.completing=!1;let o=Math.max(a.length-1,0);n.moveSelect(Math.min(o,n.select)),r&&r()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){let i=this.input.slice(0,this.cursor),a=this.input.slice(this.cursor);this.input=`${i}${r}${a}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let r=this.input.slice(0,this.cursor-1),n=this.input.slice(this.cursor);this.input=`${r}${n}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor+1);this.input=`${r}${n}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(r,n,i,a){let o,c=i?YN.arrowUp:a?YN.arrowDown:" ",u=n?R0.cyan().underline(r.title):r.title;return c=(n?R0.cyan(YN.pointer)+" ":" ")+c,r.description&&(o=` - ${r.description}`,(c.length+u.length+o.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(o=` -`+ipt(r.description,{margin:3,width:this.out.columns}))),c+" "+u+R0.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(mye.hide):this.out.write(gye(this.outputText,this.out.columns)),super.render();let r=spt(this.select,this.choices.length,this.limit),n=r.startIndex,i=r.endIndex;if(this.outputText=[VN.symbol(this.done,this.aborted,this.exited),R0.bold(this.msg),VN.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let a=this.suggestions.slice(n,i).map((o,c)=>this.renderOption(o,this.select===c+n,c===0&&n>0,c+n===i-1&&i{"use strict";var dc=mr(),cpt=vr(),upt=cpt.cursor,lpt=zN(),JN=Da(),wye=JN.clear,_ye=JN.style,tm=JN.figures,XN=class extends lpt{constructor(r={}){r.overrideRender=!0,super(r),this.inputValue="",this.clear=wye("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let r=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let n=this.filteredOptions.findIndex(i=>i===r);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){let r=this.filteredOptions[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}handleInputChange(r){this.inputValue=this.inputValue+r,this.updateFilteredOptions()}_(r,n){r===" "?this.handleSpaceToggle():this.handleInputChange(r)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${tm.arrowUp}/${tm.arrowDown}: Highlight option - ${tm.arrowLeft}/${tm.arrowRight}/[space]: Toggle selection - [a,b,c]/delete: Filter choices - enter/return: Complete answer -`:""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:dc.gray("Enter something to filter")} -`}renderOption(r,n,i){let a;return n.disabled?a=r===i?dc.gray().underline(n.title):dc.strikethrough().gray(n.title):a=r===i?dc.cyan().underline(n.title):n.title,(n.selected?dc.green(tm.radioOn):tm.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let r=[dc.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&r.push(dc.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(upt.hide),super.render();let r=[_ye.symbol(this.done,this.aborted),dc.bold(this.msg),_ye.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=dc.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+r),this.clear=wye(r,this.out.columns)}};Eye.exports=XN});var Oye=S((PGt,Aye)=>{"use strict";var Dye=mr(),fpt=lc(),Tye=Da(),Cye=Tye.style,ppt=Tye.clear,Rye=vr(),dpt=Rye.erase,Pye=Rye.cursor,QN=class extends fpt{constructor(r={}){super(r),this.msg=r.message,this.value=r.initial,this.initialValue=!!r.initial,this.yesMsg=r.yes||"yes",this.yesOption=r.yesOption||"(Y/n)",this.noMsg=r.no||"no",this.noOption=r.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){return r.toLowerCase()==="y"?(this.value=!0,this.submit()):r.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Pye.hide):this.out.write(ppt(this.outputText,this.out.columns)),super.render(),this.outputText=[Cye.symbol(this.done,this.aborted),Dye.bold(this.msg),Cye.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Dye.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(dpt.line+Pye.to(0)+this.outputText))}};Aye.exports=QN});var kye=S((TGt,Iye)=>{"use strict";Iye.exports={TextPrompt:yve(),SelectPrompt:_ve(),TogglePrompt:Tve(),DatePrompt:nye(),NumberPrompt:lye(),MultiselectPrompt:zN(),AutocompletePrompt:xye(),AutocompleteMultiselectPrompt:Sye(),ConfirmPrompt:Oye()}});var $ye=S(Fye=>{"use strict";var Pi=Fye,hpt=kye(),VD=e=>e;function po(e,r,n={}){return new Promise((i,a)=>{let o=new hpt[e](r),c=n.onAbort||VD,u=n.onSubmit||VD,l=n.onExit||VD;o.on("state",r.onState||VD),o.on("submit",f=>i(u(f))),o.on("exit",f=>i(l(f))),o.on("abort",f=>a(c(f)))})}Pi.text=e=>po("TextPrompt",e);Pi.password=e=>(e.style="password",Pi.text(e));Pi.invisible=e=>(e.style="invisible",Pi.text(e));Pi.number=e=>po("NumberPrompt",e);Pi.date=e=>po("DatePrompt",e);Pi.confirm=e=>po("ConfirmPrompt",e);Pi.list=e=>{let r=e.separator||",";return po("TextPrompt",e,{onSubmit:n=>n.split(r).map(i=>i.trim())})};Pi.toggle=e=>po("TogglePrompt",e);Pi.select=e=>po("SelectPrompt",e);Pi.multiselect=e=>{e.choices=[].concat(e.choices||[]);let r=n=>n.filter(i=>i.selected).map(i=>i.value);return po("MultiselectPrompt",e,{onAbort:r,onSubmit:r})};Pi.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);let r=n=>n.filter(i=>i.selected).map(i=>i.value);return po("AutocompleteMultiselectPrompt",e,{onAbort:r,onSubmit:r})};var mpt=(e,r)=>Promise.resolve(r.filter(n=>n.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));Pi.autocomplete=e=>(e.suggest=e.suggest||mpt,e.choices=[].concat(e.choices||[]),po("AutocompletePrompt",e))});var Gye=S((AGt,Uye)=>{"use strict";function Lye(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function Nye(e){for(var r=1;r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,c=!1,u;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return o=f.done,f},e:function(f){c=!0,u=f},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(c)throw u}}}}function ypt(e,r){if(e){if(typeof e=="string")return Mye(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mye(e,r)}}function Mye(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n{};function Yu(){return eM.apply(this,arguments)}function eM(){return eM=jye(function*(e=[],{onSubmit:r=Bye,onCancel:n=Bye}={}){let i={},a=Yu._override||{};e=[].concat(e);let o,c,u,l,f,p,g=function(){var P=jye(function*(R,k,F=!1){if(!(!F&&R.validate&&R.validate(k)!==!0))return R.format?yield R.format(k,i):k});return function(k,F){return P.apply(this,arguments)}}();var v=vpt(e),x;try{for(v.s();!(x=v.n()).done;){c=x.value;var E=c;if(l=E.name,f=E.type,typeof f=="function"&&(f=yield f(o,Nye({},i),c),c.type=f),!!f){for(let P in c){if(bpt.includes(P))continue;let R=c[P];c[P]=typeof R=="function"?yield R(o,Nye({},i),p):R}if(p=c,typeof c.message!="string")throw new Error("prompt message is required");var D=c;if(l=D.name,f=D.type,ZN[f]===void 0)throw new Error(`prompt type (${f}) is not defined`);if(a[c.name]!==void 0&&(o=yield g(c,a[c.name]),o!==void 0)){i[l]=o;continue}try{o=Yu._injected?xpt(Yu._injected,c.initial):yield ZN[f](c),i[l]=o=yield g(c,o,!0),u=yield r(c,o,i)}catch{u=!(yield n(c,i))}if(u)return i}}}catch(P){v.e(P)}finally{v.f()}return i}),eM.apply(this,arguments)}function xpt(e,r){let n=e.shift();if(n instanceof Error)throw n;return n===void 0?r:n}function wpt(e){Yu._injected=(Yu._injected||[]).concat(e)}function _pt(e){Yu._override=Object.assign({},e)}Uye.exports=Object.assign(Yu,{prompt:Yu,prompts:ZN,inject:wpt,override:_pt})});var Hye=S((OGt,Wye)=>{"use strict";Wye.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var YD=S((IGt,zye)=>{"use strict";zye.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var Kye=S((kGt,Yye)=>{"use strict";var Ept=YD(),{erase:Vye,cursor:Spt}=vr(),Dpt=e=>[...Ept(e)].length;Yye.exports=function(e,r){if(!r)return Vye.line+Spt.to(0);let n=0,i=e.split(/\r?\n/);for(let a of i)n+=1+Math.floor(Math.max(Dpt(a)-1,0)/r);return Vye.lines(n)}});var tM=S((FGt,Xye)=>{"use strict";var O0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Cpt={arrowUp:O0.arrowUp,arrowDown:O0.arrowDown,arrowLeft:O0.arrowLeft,arrowRight:O0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Ppt=process.platform==="win32"?Cpt:O0;Xye.exports=Ppt});var Qye=S(($Gt,Jye)=>{"use strict";var rm=mr(),Vf=tM(),rM=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1F603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),Tpt=e=>rM[e]||rM.default,I0=Object.freeze({aborted:rm.red(Vf.cross),done:rm.green(Vf.tick),exited:rm.yellow(Vf.cross),default:rm.cyan("?")}),Rpt=(e,r,n)=>r?I0.aborted:n?I0.exited:e?I0.done:I0.default,Apt=e=>rm.gray(e?Vf.ellipsis:Vf.pointerSmall),Opt=(e,r)=>rm.gray(e?r?Vf.pointerSmall:"+":Vf.line);Jye.exports={styles:rM,render:Tpt,symbols:I0,symbol:Rpt,delimiter:Apt,item:Opt}});var e0e=S((LGt,Zye)=>{"use strict";var Ipt=YD();Zye.exports=function(e,r){let n=String(Ipt(e)||"").split(/\r?\n/);return r?n.map(i=>Math.ceil(i.length/r)).reduce((i,a)=>i+a):n.length}});var r0e=S((NGt,t0e)=>{"use strict";t0e.exports=(e,r={})=>{let n=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",i=r.width;return(e||"").split(/\r?\n/g).map(a=>a.split(/\s+/g).reduce((o,c)=>(c.length+n.length>=i||o[o.length-1].length+c.length+1{"use strict";n0e.exports=(e,r,n)=>{n=n||r;let i=Math.min(r-n,e-Math.floor(n/2));i<0&&(i=0);let a=Math.min(i+n,r);return{startIndex:i,endIndex:a}}});var Ca=S((qGt,s0e)=>{"use strict";s0e.exports={action:Hye(),clear:Kye(),style:Qye(),strip:YD(),figures:tM(),lines:e0e(),wrap:r0e(),entriesToDisplay:i0e()}});var hc=S((jGt,o0e)=>{"use strict";var a0e=require("readline"),{action:kpt}=Ca(),Fpt=require("events"),{beep:$pt,cursor:Lpt}=vr(),Npt=mr(),nM=class extends Fpt{constructor(r={}){super(),this.firstRender=!0,this.in=r.stdin||process.stdin,this.out=r.stdout||process.stdout,this.onRender=(r.onRender||(()=>{})).bind(this);let n=a0e.createInterface({input:this.in,escapeCodeTimeout:50});a0e.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,a=(o,c)=>{let u=kpt(c,i);u===!1?this._&&this._(o,c):typeof this[u]=="function"?this[u](c):this.bell()};this.close=()=>{this.out.write(Lpt.show),this.in.removeListener("keypress",a),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",a)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write($pt)}render(){this.onRender(Npt),this.firstRender&&(this.firstRender=!1)}};o0e.exports=nM});var u0e=S((BGt,c0e)=>{"use strict";var KD=mr(),Mpt=hc(),{erase:qpt,cursor:k0}=vr(),{style:iM,clear:sM,lines:jpt,figures:Bpt}=Ca(),aM=class extends Mpt{constructor(r={}){super(r),this.transform=iM.render(r.style),this.scale=this.transform.scale,this.msg=r.message,this.initial=r.initial||"",this.validator=r.validate||(()=>!0),this.value="",this.errorMsg=r.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=sM("",this.out.columns),this.render()}set value(r){!r&&this.initial?(this.placeholder=!0,this.rendered=KD.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(r)),this._value=r,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(r){this.placeholder||(this.cursor=this.cursor+r,this.cursorOffset+=r)}_(r,n){let i=this.value.slice(0,this.cursor),a=this.value.slice(this.cursor);this.value=`${i}${r}${a}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let r=this.value.slice(0,this.cursor-1),n=this.value.slice(this.cursor);this.value=`${r}${n}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor+1);this.value=`${r}${n}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(k0.down(jpt(this.outputError,this.out.columns)-1)+sM(this.outputError,this.out.columns)),this.out.write(sM(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[iM.symbol(this.done,this.aborted),KD.bold(this.msg),iM.delimiter(this.done),this.red?KD.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":Bpt.pointerSmall} ${KD.red().italic(n)}`,"")),this.out.write(qpt.line+k0.to(0)+this.outputText+k0.save+this.outputError+k0.restore+k0.move(this.cursorOffset,0)))}};c0e.exports=aM});var d0e=S((UGt,p0e)=>{"use strict";var mc=mr(),Upt=hc(),{style:l0e,clear:f0e,figures:XD,wrap:Gpt,entriesToDisplay:Wpt}=Ca(),{cursor:Hpt}=vr(),oM=class extends Upt{constructor(r={}){super(r),this.msg=r.message,this.hint=r.hint||"- Use arrow-keys. Return to submit.",this.warn=r.warn||"- This option is disabled",this.cursor=r.initial||0,this.choices=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),value:n&&(n.value===void 0?i:n.value),description:n&&n.description,selected:n&&n.selected,disabled:n&&n.disabled})),this.optionsPerPage=r.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=f0e("",this.out.columns),this.render()}moveCursor(r){this.cursor=r,this.value=this.choices[r].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(r,n){if(r===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Hpt.hide):this.out.write(f0e(this.outputText,this.out.columns)),super.render();let{startIndex:r,endIndex:n}=Wpt(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[l0e.symbol(this.done,this.aborted),mc.bold(this.msg),l0e.delimiter(!1),this.done?this.selection.title:this.selection.disabled?mc.yellow(this.warn):mc.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let i=r;i0?o=XD.arrowUp:i===n-1&&n=this.out.columns||u.description.split(/\r?\n/).length>1)&&(c=` -`+Gpt(u.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${a}${mc.gray(c)} -`}}this.out.write(this.outputText)}};p0e.exports=oM});var v0e=S((GGt,g0e)=>{"use strict";var JD=mr(),zpt=hc(),{style:h0e,clear:Vpt}=Ca(),{cursor:m0e,erase:Ypt}=vr(),cM=class extends zpt{constructor(r={}){super(r),this.msg=r.message,this.value=!!r.initial,this.active=r.active||"on",this.inactive=r.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(r,n){if(r===" ")this.value=!this.value;else if(r==="1")this.value=!0;else if(r==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(m0e.hide):this.out.write(Vpt(this.outputText,this.out.columns)),super.render(),this.outputText=[h0e.symbol(this.done,this.aborted),JD.bold(this.msg),h0e.delimiter(this.done),this.value?this.inactive:JD.cyan().underline(this.inactive),JD.gray("/"),this.value?JD.cyan().underline(this.active):this.active].join(" "),this.out.write(Ypt.line+m0e.to(0)+this.outputText))}};g0e.exports=cM});var ho=S((WGt,y0e)=>{"use strict";var uM=class e{constructor({token:r,date:n,parts:i,locales:a}){this.token=r,this.date=n||new Date,this.parts=i||[this],this.locales=a||{}}up(){}down(){}next(){let r=this.parts.indexOf(this);return this.parts.find((n,i)=>i>r&&n instanceof e)}setTo(r){}prev(){let r=[].concat(this.parts).reverse(),n=r.indexOf(this);return r.find((i,a)=>a>n&&i instanceof e)}toString(){return String(this.date)}};y0e.exports=uM});var x0e=S((HGt,b0e)=>{"use strict";var Kpt=ho(),lM=class extends Kpt{constructor(r={}){super(r)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let r=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?r.toUpperCase():r}};b0e.exports=lM});var _0e=S((zGt,w0e)=>{"use strict";var Xpt=ho(),Jpt=e=>(e=e%10,e===1?"st":e===2?"nd":e===3?"rd":"th"),fM=class extends Xpt{constructor(r={}){super(r)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(r){this.date.setDate(parseInt(r.substr(-2)))}toString(){let r=this.date.getDate(),n=this.date.getDay();return this.token==="DD"?String(r).padStart(2,"0"):this.token==="Do"?r+Jpt(r):this.token==="d"?n+1:this.token==="ddd"?this.locales.weekdaysShort[n]:this.token==="dddd"?this.locales.weekdays[n]:r}};w0e.exports=fM});var S0e=S((VGt,E0e)=>{"use strict";var Qpt=ho(),pM=class extends Qpt{constructor(r={}){super(r)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(r){this.date.setHours(parseInt(r.substr(-2)))}toString(){let r=this.date.getHours();return/h/.test(this.token)&&(r=r%12||12),this.token.length>1?String(r).padStart(2,"0"):r}};E0e.exports=pM});var C0e=S((YGt,D0e)=>{"use strict";var Zpt=ho(),dM=class extends Zpt{constructor(r={}){super(r)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(r){this.date.setMilliseconds(parseInt(r.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};D0e.exports=dM});var T0e=S((KGt,P0e)=>{"use strict";var edt=ho(),hM=class extends edt{constructor(r={}){super(r)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(r){this.date.setMinutes(parseInt(r.substr(-2)))}toString(){let r=this.date.getMinutes();return this.token.length>1?String(r).padStart(2,"0"):r}};P0e.exports=hM});var A0e=S((XGt,R0e)=>{"use strict";var tdt=ho(),mM=class extends tdt{constructor(r={}){super(r)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(r){r=parseInt(r.substr(-2))-1,this.date.setMonth(r<0?0:r)}toString(){let r=this.date.getMonth(),n=this.token.length;return n===2?String(r+1).padStart(2,"0"):n===3?this.locales.monthsShort[r]:n===4?this.locales.months[r]:String(r+1)}};R0e.exports=mM});var I0e=S((JGt,O0e)=>{"use strict";var rdt=ho(),gM=class extends rdt{constructor(r={}){super(r)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(r){this.date.setSeconds(parseInt(r.substr(-2)))}toString(){let r=this.date.getSeconds();return this.token.length>1?String(r).padStart(2,"0"):r}};O0e.exports=gM});var F0e=S((QGt,k0e)=>{"use strict";var ndt=ho(),vM=class extends ndt{constructor(r={}){super(r)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(r){this.date.setFullYear(r.substr(-4))}toString(){let r=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?r.substr(-2):r}};k0e.exports=vM});var L0e=S((ZGt,$0e)=>{"use strict";$0e.exports={DatePart:ho(),Meridiem:x0e(),Day:_0e(),Hours:S0e(),Milliseconds:C0e(),Minutes:T0e(),Month:A0e(),Seconds:I0e(),Year:F0e()}});var G0e=S((eWt,U0e)=>{"use strict";var yM=mr(),idt=hc(),{style:N0e,clear:M0e,figures:sdt}=Ca(),{erase:adt,cursor:q0e}=vr(),{DatePart:j0e,Meridiem:odt,Day:cdt,Hours:udt,Milliseconds:ldt,Minutes:fdt,Month:pdt,Seconds:ddt,Year:hdt}=L0e(),mdt=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,B0e={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new cdt(e),3:e=>new pdt(e),4:e=>new hdt(e),5:e=>new odt(e),6:e=>new udt(e),7:e=>new fdt(e),8:e=>new ddt(e),9:e=>new ldt(e)},gdt={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},bM=class extends idt{constructor(r={}){super(r),this.msg=r.message,this.cursor=0,this.typed="",this.locales=Object.assign(gdt,r.locales),this._date=r.initial||new Date,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.mask=r.mask||"YYYY-MM-DD HH:mm:ss",this.clear=M0e("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(r){r&&this._date.setTime(r.getTime())}set mask(r){let n;for(this.parts=[];n=mdt.exec(r);){let a=n.shift(),o=n.findIndex(c=>c!=null);this.parts.push(o in B0e?B0e[o]({token:n[o]||a,date:this.date,parts:this.parts,locales:this.locales}):n[o]||a)}let i=this.parts.reduce((a,o)=>(typeof o=="string"&&typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(r){this.typed="",this.cursor=r,this.fire()}reset(){this.moveCursor(this.parts.findIndex(r=>r instanceof j0e)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let r=this.parts[this.cursor].prev();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}right(){let r=this.parts[this.cursor].next();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}next(){let r=this.parts[this.cursor].next();this.moveCursor(r?this.parts.indexOf(r):this.parts.findIndex(n=>n instanceof j0e)),this.render()}_(r){/\d/.test(r)&&(this.typed+=r,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(q0e.hide):this.out.write(M0e(this.outputText,this.out.columns)),super.render(),this.outputText=[N0e.symbol(this.done,this.aborted),yM.bold(this.msg),N0e.delimiter(!1),this.parts.reduce((r,n,i)=>r.concat(i===this.cursor&&!this.done?yM.cyan().underline(n.toString()):n),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":sdt.pointerSmall} ${yM.red().italic(n)}`,"")),this.out.write(adt.line+q0e.to(0)+this.outputText))}};U0e.exports=bM});var V0e=S((tWt,z0e)=>{"use strict";var QD=mr(),vdt=hc(),{cursor:ZD,erase:ydt}=vr(),{style:xM,figures:bdt,clear:W0e,lines:xdt}=Ca(),wdt=/[0-9]/,wM=e=>e!==void 0,H0e=(e,r)=>{let n=Math.pow(10,r);return Math.round(e*n)/n},_M=class extends vdt{constructor(r={}){super(r),this.transform=xM.render(r.style),this.msg=r.message,this.initial=wM(r.initial)?r.initial:"",this.float=!!r.float,this.round=r.round||2,this.inc=r.increment||1,this.min=wM(r.min)?r.min:-1/0,this.max=wM(r.max)?r.max:1/0,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(r){!r&&r!==0?(this.placeholder=!0,this.rendered=QD.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${H0e(r,this.round)}`),this._value=H0e(r,this.round)),this.fire()}get value(){return this._value}parse(r){return this.float?parseFloat(r):parseInt(r)}valid(r){return r==="-"||r==="."&&this.float||wdt.test(r)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let r=this.value;this.value=r!==""?r:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let r=this.value;this.value=r!==""?r:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let r=this.value.toString();if(r.length===0)return this.bell();this.value=this.parse(r=r.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=r,this.lastHit=i,this.color="cyan",r===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuer+` -${i?" ":bdt.pointerSmall} ${QD.red().italic(n)}`,"")),this.out.write(ydt.line+ZD.to(0)+this.outputText+ZD.save+this.outputError+ZD.restore))}};z0e.exports=_M});var SM=S((rWt,X0e)=>{"use strict";var mo=mr(),{cursor:_dt}=vr(),Edt=hc(),{clear:Y0e,figures:Ku,style:K0e,wrap:Sdt,entriesToDisplay:Ddt}=Ca(),EM=class extends Edt{constructor(r={}){super(r),this.msg=r.message,this.cursor=r.cursor||0,this.scrollIndex=r.cursor||0,this.hint=r.hint||"",this.warn=r.warn||"- This option is disabled -",this.minSelected=r.min,this.showMinError=!1,this.maxChoices=r.max,this.instructions=r.instructions,this.optionsPerPage=r.optionsPerPage||10,this.value=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),description:n&&n.description,value:n&&(n.value===void 0?i:n.value),selected:n&&n.selected,disabled:n&&n.disabled})),this.clear=Y0e("",this.out.columns),r.overrideRender||this.render()}reset(){this.value.map(r=>!r.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(r=>r.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let r=this.value.filter(n=>n.selected);this.minSelected&&r.lengthr.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let r=this.value[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let r=!this.value[this.cursor].selected;this.value.filter(n=>!n.disabled).forEach(n=>n.selected=r),this.render()}_(r,n){if(r===" ")this.handleSpaceToggle();else if(r==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${Ku.arrowUp}/${Ku.arrowDown}: Highlight option - ${Ku.arrowLeft}/${Ku.arrowRight}/[space]: Toggle selection -`+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer":""}renderOption(r,n,i,a){let o=(n.selected?mo.green(Ku.radioOn):Ku.radioOff)+" "+a+" ",c,u;return n.disabled?c=r===i?mo.gray().underline(n.title):mo.strikethrough().gray(n.title):(c=r===i?mo.cyan().underline(n.title):n.title,r===i&&n.description&&(u=` - ${n.description}`,(o.length+c.length+u.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(u=` -`+Sdt(n.description,{margin:o.length,width:this.out.columns})))),o+c+mo.gray(u||"")}paginateOptions(r){if(r.length===0)return mo.red("No matches for this query.");let{startIndex:n,endIndex:i}=Ddt(this.cursor,r.length,this.optionsPerPage),a,o=[];for(let c=n;c0?a=Ku.arrowUp:c===i-1&&in.selected).map(n=>n.title).join(", ");let r=[mo.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&r.push(mo.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(_dt.hide),super.render();let r=[K0e.symbol(this.done,this.aborted),mo.bold(this.msg),K0e.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=mo.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.value),this.out.write(this.clear+r),this.clear=Y0e(r,this.out.columns)}};X0e.exports=EM});var tbe=S((nWt,ebe)=>{"use strict";var F0=mr(),Cdt=hc(),{erase:Pdt,cursor:J0e}=vr(),{style:DM,clear:Q0e,figures:CM,wrap:Tdt,entriesToDisplay:Rdt}=Ca(),Z0e=(e,r)=>e[r]&&(e[r].value||e[r].title||e[r]),Adt=(e,r)=>e[r]&&(e[r].title||e[r].value||e[r]),Odt=(e,r)=>{let n=e.findIndex(i=>i.value===r||i.title===r);return n>-1?n:void 0},PM=class extends Cdt{constructor(r={}){super(r),this.msg=r.message,this.suggest=r.suggest,this.choices=r.choices,this.initial=typeof r.initial=="number"?r.initial:Odt(r.choices,r.initial),this.select=this.initial||r.cursor||0,this.i18n={noMatches:r.noMatches||"no matches found"},this.fallback=r.fallback||this.initial,this.clearFirst=r.clearFirst||!1,this.suggestions=[],this.input="",this.limit=r.limit||10,this.cursor=0,this.transform=DM.render(r.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Q0e("",this.out.columns),this.complete(this.render),this.render()}set fallback(r){this._fb=Number.isSafeInteger(parseInt(r))?parseInt(r):r}get fallback(){let r;return typeof this._fb=="number"?r=this.choices[this._fb]:typeof this._fb=="string"&&(r={title:this._fb}),r||this._fb||{title:this.i18n.noMatches}}moveSelect(r){this.select=r,this.suggestions.length>0?this.value=Z0e(this.suggestions,r):this.value=this.fallback.value,this.fire()}async complete(r){let n=this.completing=this.suggest(this.input,this.choices),i=await n;if(this.completing!==n)return;this.suggestions=i.map((o,c,u)=>({title:Adt(u,c),value:Z0e(u,c),description:o.description})),this.completing=!1;let a=Math.max(i.length-1,0);this.moveSelect(Math.min(a,this.select)),r&&r()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){let i=this.input.slice(0,this.cursor),a=this.input.slice(this.cursor);this.input=`${i}${r}${a}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let r=this.input.slice(0,this.cursor-1),n=this.input.slice(this.cursor);this.input=`${r}${n}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor+1);this.input=`${r}${n}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(r,n,i,a){let o,c=i?CM.arrowUp:a?CM.arrowDown:" ",u=n?F0.cyan().underline(r.title):r.title;return c=(n?F0.cyan(CM.pointer)+" ":" ")+c,r.description&&(o=` - ${r.description}`,(c.length+u.length+o.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(o=` -`+Tdt(r.description,{margin:3,width:this.out.columns}))),c+" "+u+F0.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(J0e.hide):this.out.write(Q0e(this.outputText,this.out.columns)),super.render();let{startIndex:r,endIndex:n}=Rdt(this.select,this.choices.length,this.limit);if(this.outputText=[DM.symbol(this.done,this.aborted,this.exited),F0.bold(this.msg),DM.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(r,n).map((a,o)=>this.renderOption(a,this.select===o+r,o===0&&r>0,o+r===n-1&&n{"use strict";var gc=mr(),{cursor:Idt}=vr(),kdt=SM(),{clear:rbe,style:nbe,figures:nm}=Ca(),TM=class extends kdt{constructor(r={}){r.overrideRender=!0,super(r),this.inputValue="",this.clear=rbe("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let r=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let n=this.filteredOptions.findIndex(i=>i===r);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){let r=this.filteredOptions[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}handleInputChange(r){this.inputValue=this.inputValue+r,this.updateFilteredOptions()}_(r,n){r===" "?this.handleSpaceToggle():this.handleInputChange(r)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${nm.arrowUp}/${nm.arrowDown}: Highlight option - ${nm.arrowLeft}/${nm.arrowRight}/[space]: Toggle selection - [a,b,c]/delete: Filter choices - enter/return: Complete answer -`:""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:gc.gray("Enter something to filter")} -`}renderOption(r,n,i){let a;return n.disabled?a=r===i?gc.gray().underline(n.title):gc.strikethrough().gray(n.title):a=r===i?gc.cyan().underline(n.title):n.title,(n.selected?gc.green(nm.radioOn):nm.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let r=[gc.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&r.push(gc.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Idt.hide),super.render();let r=[nbe.symbol(this.done,this.aborted),gc.bold(this.msg),nbe.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=gc.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+r),this.clear=rbe(r,this.out.columns)}};ibe.exports=TM});var lbe=S((sWt,ube)=>{"use strict";var abe=mr(),Fdt=hc(),{style:obe,clear:$dt}=Ca(),{erase:Ldt,cursor:cbe}=vr(),RM=class extends Fdt{constructor(r={}){super(r),this.msg=r.message,this.value=r.initial,this.initialValue=!!r.initial,this.yesMsg=r.yes||"yes",this.yesOption=r.yesOption||"(Y/n)",this.noMsg=r.no||"no",this.noOption=r.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){return r.toLowerCase()==="y"?(this.value=!0,this.submit()):r.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(cbe.hide):this.out.write($dt(this.outputText,this.out.columns)),super.render(),this.outputText=[obe.symbol(this.done,this.aborted),abe.bold(this.msg),obe.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:abe.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(Ldt.line+cbe.to(0)+this.outputText))}};ube.exports=RM});var pbe=S((aWt,fbe)=>{"use strict";fbe.exports={TextPrompt:u0e(),SelectPrompt:d0e(),TogglePrompt:v0e(),DatePrompt:G0e(),NumberPrompt:V0e(),MultiselectPrompt:SM(),AutocompletePrompt:tbe(),AutocompleteMultiselectPrompt:sbe(),ConfirmPrompt:lbe()}});var hbe=S(dbe=>{"use strict";var Ti=dbe,Ndt=pbe(),eC=e=>e;function go(e,r,n={}){return new Promise((i,a)=>{let o=new Ndt[e](r),c=n.onAbort||eC,u=n.onSubmit||eC,l=n.onExit||eC;o.on("state",r.onState||eC),o.on("submit",f=>i(u(f))),o.on("exit",f=>i(l(f))),o.on("abort",f=>a(c(f)))})}Ti.text=e=>go("TextPrompt",e);Ti.password=e=>(e.style="password",Ti.text(e));Ti.invisible=e=>(e.style="invisible",Ti.text(e));Ti.number=e=>go("NumberPrompt",e);Ti.date=e=>go("DatePrompt",e);Ti.confirm=e=>go("ConfirmPrompt",e);Ti.list=e=>{let r=e.separator||",";return go("TextPrompt",e,{onSubmit:n=>n.split(r).map(i=>i.trim())})};Ti.toggle=e=>go("TogglePrompt",e);Ti.select=e=>go("SelectPrompt",e);Ti.multiselect=e=>{e.choices=[].concat(e.choices||[]);let r=n=>n.filter(i=>i.selected).map(i=>i.value);return go("MultiselectPrompt",e,{onAbort:r,onSubmit:r})};Ti.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);let r=n=>n.filter(i=>i.selected).map(i=>i.value);return go("AutocompleteMultiselectPrompt",e,{onAbort:r,onSubmit:r})};var Mdt=(e,r)=>Promise.resolve(r.filter(n=>n.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));Ti.autocomplete=e=>(e.suggest=e.suggest||Mdt,e.choices=[].concat(e.choices||[]),go("AutocompletePrompt",e))});var vbe=S((cWt,gbe)=>{"use strict";var AM=hbe(),qdt=["suggest","format","onState","validate","onRender","type"],mbe=()=>{};async function Xu(e=[],{onSubmit:r=mbe,onCancel:n=mbe}={}){let i={},a=Xu._override||{};e=[].concat(e);let o,c,u,l,f,p,g=async(v,x,E=!1)=>{if(!(!E&&v.validate&&v.validate(x)!==!0))return v.format?await v.format(x,i):x};for(c of e)if({name:l,type:f}=c,typeof f=="function"&&(f=await f(o,{...i},c),c.type=f),!!f){for(let v in c){if(qdt.includes(v))continue;let x=c[v];c[v]=typeof x=="function"?await x(o,{...i},p):x}if(p=c,typeof c.message!="string")throw new Error("prompt message is required");if({name:l,type:f}=c,AM[f]===void 0)throw new Error(`prompt type (${f}) is not defined`);if(a[c.name]!==void 0&&(o=await g(c,a[c.name]),o!==void 0)){i[l]=o;continue}try{o=Xu._injected?jdt(Xu._injected,c.initial):await AM[f](c),i[l]=o=await g(c,o,!0),u=await r(c,o,i)}catch{u=!await n(c,i)}if(u)return i}return i}function jdt(e,r){let n=e.shift();if(n instanceof Error)throw n;return n===void 0?r:n}function Bdt(e){Xu._injected=(Xu._injected||[]).concat(e)}function Udt(e){Xu._override=Object.assign({},e)}gbe.exports=Object.assign(Xu,{prompt:Xu,prompts:AM,inject:Bdt,override:Udt})});var Ju=S((uWt,ybe)=>{"use strict";function Gdt(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let r=0,n=process.versions.node.split(".").map(Number);for(;re[r])return!1;if(e[r]>n[r])return!0}return!1}ybe.exports=Gdt("8.6.0")?Gye():vbe()});var rC=S((vWt,IM)=>{"use strict";var Ebe=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);IM.exports=Ebe;IM.exports.default=Ebe});var kM=S((yWt,Dbe)=>{"use strict";var Sbe="[\uD800-\uDBFF][\uDC00-\uDFFF]",Wdt=e=>e&&e.exact?new RegExp(`^${Sbe}$`):new RegExp(Sbe,"g");Dbe.exports=Wdt});var Pbe=S((bWt,Cbe)=>{"use strict";Cbe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var FM=S((xWt,Rbe)=>{"use strict";var $0=Pbe(),Tbe={};for(let e of Object.keys($0))Tbe[$0[e]]=e;var De={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Rbe.exports=De;for(let e of Object.keys(De)){if(!("channels"in De[e]))throw new Error("missing channels property: "+e);if(!("labels"in De[e]))throw new Error("missing channel labels property: "+e);if(De[e].labels.length!==De[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:n}=De[e];delete De[e].channels,delete De[e].labels,Object.defineProperty(De[e],"channels",{value:r}),Object.defineProperty(De[e],"labels",{value:n})}De.rgb.hsl=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.min(r,n,i),o=Math.max(r,n,i),c=o-a,u,l;o===a?u=0:r===o?u=(n-i)/c:n===o?u=2+(i-r)/c:i===o&&(u=4+(r-n)/c),u=Math.min(u*60,360),u<0&&(u+=360);let f=(a+o)/2;return o===a?l=0:f<=.5?l=c/(o+a):l=c/(2-o-a),[u,l*100,f*100]};De.rgb.hsv=function(e){let r,n,i,a,o,c=e[0]/255,u=e[1]/255,l=e[2]/255,f=Math.max(c,u,l),p=f-Math.min(c,u,l),g=function(v){return(f-v)/6/p+1/2};return p===0?(a=0,o=0):(o=p/f,r=g(c),n=g(u),i=g(l),c===f?a=i-n:u===f?a=1/3+r-i:l===f&&(a=2/3+n-r),a<0?a+=1:a>1&&(a-=1)),[a*360,o*100,f*100]};De.rgb.hwb=function(e){let r=e[0],n=e[1],i=e[2],a=De.rgb.hsl(e)[0],o=1/255*Math.min(r,Math.min(n,i));return i=1-1/255*Math.max(r,Math.max(n,i)),[a,o*100,i*100]};De.rgb.cmyk=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.min(1-r,1-n,1-i),o=(1-r-a)/(1-a)||0,c=(1-n-a)/(1-a)||0,u=(1-i-a)/(1-a)||0;return[o*100,c*100,u*100,a*100]};function Hdt(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}De.rgb.keyword=function(e){let r=Tbe[e];if(r)return r;let n=1/0,i;for(let a of Object.keys($0)){let o=$0[a],c=Hdt(e,o);c.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let a=r*.4124+n*.3576+i*.1805,o=r*.2126+n*.7152+i*.0722,c=r*.0193+n*.1192+i*.9505;return[a*100,o*100,c*100]};De.rgb.lab=function(e){let r=De.rgb.xyz(e),n=r[0],i=r[1],a=r[2];n/=95.047,i/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*i-16,c=500*(n-i),u=200*(i-a);return[o,c,u]};De.hsl.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,a,o,c;if(n===0)return c=i*255,[c,c,c];i<.5?a=i*(1+n):a=i+n-i*n;let u=2*i-a,l=[0,0,0];for(let f=0;f<3;f++)o=r+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?c=u+(a-u)*6*o:2*o<1?c=a:3*o<2?c=u+(a-u)*(2/3-o)*6:c=u,l[f]=c*255;return l};De.hsl.hsv=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,a=n,o=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,a*=o<=1?o:2-o;let c=(i+n)/2,u=i===0?2*a/(o+a):2*n/(i+n);return[r,u*100,c*100]};De.hsv.rgb=function(e){let r=e[0]/60,n=e[1]/100,i=e[2]/100,a=Math.floor(r)%6,o=r-Math.floor(r),c=255*i*(1-n),u=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,a){case 0:return[i,l,c];case 1:return[u,i,c];case 2:return[c,i,l];case 3:return[c,u,i];case 4:return[l,c,i];case 5:return[i,c,u]}};De.hsv.hsl=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,a=Math.max(i,.01),o,c;c=(2-n)*i;let u=(2-n)*a;return o=n*a,o/=u<=1?u:2-u,o=o||0,c/=2,[r,o*100,c*100]};De.hwb.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,a=n+i,o;a>1&&(n/=a,i/=a);let c=Math.floor(6*r),u=1-i;o=6*r-c,c&1&&(o=1-o);let l=n+o*(u-n),f,p,g;switch(c){default:case 6:case 0:f=u,p=l,g=n;break;case 1:f=l,p=u,g=n;break;case 2:f=n,p=u,g=l;break;case 3:f=n,p=l,g=u;break;case 4:f=l,p=n,g=u;break;case 5:f=u,p=n,g=l;break}return[f*255,p*255,g*255]};De.cmyk.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,a=e[3]/100,o=1-Math.min(1,r*(1-a)+a),c=1-Math.min(1,n*(1-a)+a),u=1-Math.min(1,i*(1-a)+a);return[o*255,c*255,u*255]};De.xyz.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,a,o,c;return a=r*3.2406+n*-1.5372+i*-.4986,o=r*-.9689+n*1.8758+i*.0415,c=r*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),c=Math.min(Math.max(0,c),1),[a*255,o*255,c*255]};De.xyz.lab=function(e){let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let a=116*n-16,o=500*(r-n),c=200*(n-i);return[a,o,c]};De.lab.xyz=function(e){let r=e[0],n=e[1],i=e[2],a,o,c;o=(r+16)/116,a=n/500+o,c=o-i/200;let u=o**3,l=a**3,f=c**3;return o=u>.008856?u:(o-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,c=f>.008856?f:(c-16/116)/7.787,a*=95.047,o*=100,c*=108.883,[a,o,c]};De.lab.lch=function(e){let r=e[0],n=e[1],i=e[2],a;a=Math.atan2(i,n)*360/2/Math.PI,a<0&&(a+=360);let c=Math.sqrt(n*n+i*i);return[r,c,a]};De.lch.lab=function(e){let r=e[0],n=e[1],a=e[2]/360*2*Math.PI,o=n*Math.cos(a),c=n*Math.sin(a);return[r,o,c]};De.rgb.ansi16=function(e,r=null){let[n,i,a]=e,o=r===null?De.rgb.hsv(e)[2]:r;if(o=Math.round(o/50),o===0)return 30;let c=30+(Math.round(a/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return o===2&&(c+=60),c};De.hsv.ansi16=function(e){return De.rgb.ansi16(De.hsv.rgb(e),e[2])};De.rgb.ansi256=function(e){let r=e[0],n=e[1],i=e[2];return r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)};De.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let n=(~~(e>50)+1)*.5,i=(r&1)*n*255,a=(r>>1&1)*n*255,o=(r>>2&1)*n*255;return[i,a,o]};De.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,a=r%6/5*255;return[n,i,a]};De.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};De.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(u=>u+u).join(""));let i=parseInt(n,16),a=i>>16&255,o=i>>8&255,c=i&255;return[a,o,c]};De.rgb.hcg=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),o=Math.min(Math.min(r,n),i),c=a-o,u,l;return c<1?u=o/(1-c):u=0,c<=0?l=0:a===r?l=(n-i)/c%6:a===n?l=2+(i-r)/c:l=4+(r-n)/c,l/=6,l%=1,[l*360,c*100,u*100]};De.hsl.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=n<.5?2*r*n:2*r*(1-n),a=0;return i<1&&(a=(n-.5*i)/(1-i)),[e[0],i*100,a*100]};De.hsv.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=r*n,a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};De.hcg.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100;if(n===0)return[i*255,i*255,i*255];let a=[0,0,0],o=r%1*6,c=o%1,u=1-c,l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=c,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=c;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=c,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return l=(1-n)*i,[(n*a[0]+l)*255,(n*a[1]+l)*255,(n*a[2]+l)*255]};De.hcg.hsv=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r),a=0;return i>0&&(a=r/i),[e[0],a*100,i*100]};De.hcg.hsl=function(e){let r=e[1]/100,i=e[2]/100*(1-r)+.5*r,a=0;return i>0&&i<.5?a=r/(2*i):i>=.5&&i<1&&(a=r/(2*(1-i))),[e[0],a*100,i*100]};De.hcg.hwb=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r);return[e[0],(i-r)*100,(1-i)*100]};De.hwb.hcg=function(e){let r=e[1]/100,i=1-e[2]/100,a=i-r,o=0;return a<1&&(o=(i-a)/(1-a)),[e[0],a*100,o*100]};De.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};De.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};De.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};De.gray.hsl=function(e){return[0,0,e[0]]};De.gray.hsv=De.gray.hsl;De.gray.hwb=function(e){return[0,100,e[0]]};De.gray.cmyk=function(e){return[0,0,0,e[0]]};De.gray.lab=function(e){return[e[0],0,0]};De.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,i=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(i.length)+i};De.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Obe=S((wWt,Abe)=>{"use strict";var nC=FM();function zdt(){let e={},r=Object.keys(nC);for(let n=r.length,i=0;i{"use strict";var $M=FM(),Xdt=Obe(),im={},Jdt=Object.keys($M);function Qdt(e){let r=function(...n){let i=n[0];return i==null?i:(i.length>1&&(n=i),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function Zdt(e){let r=function(...n){let i=n[0];if(i==null)return i;i.length>1&&(n=i);let a=e(n);if(typeof a=="object")for(let o=a.length,c=0;c{im[e]={},Object.defineProperty(im[e],"channels",{value:$M[e].channels}),Object.defineProperty(im[e],"labels",{value:$M[e].labels});let r=Xdt(e);Object.keys(r).forEach(i=>{let a=r[i];im[e][i]=Zdt(a),im[e][i].raw=Qdt(a)})});Ibe.exports=im});var L0=S((EWt,Mbe)=>{"use strict";var Fbe=(e,r)=>(...n)=>`\x1B[${e(...n)+r}m`,$be=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};5;${i}m`},Lbe=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};2;${i[0]};${i[1]};${i[2]}m`},iC=e=>e,Nbe=(e,r,n)=>[e,r,n],sm=(e,r,n)=>{Object.defineProperty(e,r,{get:()=>{let i=n();return Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},LM,am=(e,r,n,i)=>{LM===void 0&&(LM=kbe());let a=i?10:0,o={};for(let[c,u]of Object.entries(LM)){let l=c==="ansi16"?"ansi":c;c===r?o[l]=e(n,a):typeof u=="object"&&(o[l]=e(u[r],a))}return o};function eht(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[n,i]of Object.entries(r)){for(let[a,o]of Object.entries(i))r[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[a]=r[a],e.set(o[0],o[1]);Object.defineProperty(r,n,{value:i,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",sm(r.color,"ansi",()=>am(Fbe,"ansi16",iC,!1)),sm(r.color,"ansi256",()=>am($be,"ansi256",iC,!1)),sm(r.color,"ansi16m",()=>am(Lbe,"rgb",Nbe,!1)),sm(r.bgColor,"ansi",()=>am(Fbe,"ansi16",iC,!0)),sm(r.bgColor,"ansi256",()=>am($be,"ansi256",iC,!0)),sm(r.bgColor,"ansi16m",()=>am(Lbe,"rgb",Nbe,!0)),r}Object.defineProperty(Mbe,"exports",{enumerable:!0,get:eht})});var Gbe=S((SWt,Ube)=>{"use strict";var tht=rC(),rht=kM(),qbe=L0(),Bbe=["\x1B","\x9B"],sC=e=>`${Bbe[0]}[${e}m`,jbe=(e,r,n)=>{let i=[];e=[...e];for(let a of e){let o=a;a.match(";")&&(a=a.split(";")[0][0]+"0");let c=qbe.codes.get(parseInt(a,10));if(c){let u=e.indexOf(c.toString());u>=0?e.splice(u,1):i.push(sC(r?c:o))}else if(r){i.push(sC(0));break}else i.push(sC(o))}if(r&&(i=i.filter((a,o)=>i.indexOf(a)===o),n!==void 0)){let a=sC(qbe.codes.get(parseInt(n,10)));i=i.reduce((o,c)=>c===a?[c,...o]:[...o,c],[])}return i.join("")};Ube.exports=(e,r,n)=>{let i=[...e.normalize()],a=[];n=typeof n=="number"?n:i.length;let o=!1,c,u=0,l="";for(let[f,p]of i.entries()){let g=!1;if(Bbe.includes(p)){let v=/\d[^m]*/.exec(e.slice(f,f+18));c=v&&v.length>0?v[0]:void 0,ur&&u<=n)l+=p;else if(u===r&&!o&&c!==void 0)l=jbe(a);else if(u>=n){l+=jbe(a,!0,c);break}}return l}});var Hbe=S((DWt,Wbe)=>{"use strict";Wbe.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDD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DECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var aC=S((CWt,NM)=>{"use strict";var nht=Yh(),iht=rC(),sht=Hbe(),zbe=e=>{if(typeof e!="string"||e.length===0||(e=nht(e),e.length===0))return 0;e=e.replace(sht()," ");let r=0;for(let n=0;n=127&&i<=159||i>=768&&i<=879||(i>65535&&n++,r+=iht(i)?2:1)}return r};NM.exports=zbe;NM.exports.default=zbe});var Ybe=S((PWt,Vbe)=>{"use strict";var Qu=Gbe(),aht=aC();function oC(e,r,n){if(e.charAt(r)===" ")return r;for(let i=1;i<=3;i++)if(n){if(e.charAt(r+i)===" ")return r+i}else if(e.charAt(r-i)===" ")return r-i;return r}Vbe.exports=(e,r,n)=>{n={position:"end",preferTruncationOnSpace:!1,...n};let{position:i,space:a,preferTruncationOnSpace:o}=n,c="\u2026",u=1;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof r!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof r}`);if(r<1)return"";if(r===1)return c;let l=aht(e);if(l<=r)return e;if(i==="start"){if(o){let f=oC(e,l-r+1,!0);return c+Qu(e,f,l).trim()}return a===!0&&(c+=" ",u=2),c+Qu(e,l-r+u,l)}if(i==="middle"){a===!0&&(c=" "+c+" ",u=3);let f=Math.floor(r/2);if(o){let p=oC(e,f),g=oC(e,l-(r-f)+1,!0);return Qu(e,0,p)+c+Qu(e,g,l).trim()}return Qu(e,0,f)+c+Qu(e,l-(r-f)+u,l)}if(i==="end"){if(o){let f=oC(e,r-1);return Qu(e,0,f)+c}return a===!0&&(c=" "+c,u=2),Qu(e,0,r-u)+c}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}});var vc=S(Ce=>{"use strict";var cht=Ce&&Ce.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var i=0,a=r.length,o;i0};Ce.isNonEmpty=vht;var yht=function(e){return e[0]};Ce.head=yht;var bht=function(e){return e.slice(1)};Ce.tail=bht;Ce.emptyReadonlyArray=[];Ce.emptyRecord={};Ce.has=Object.prototype.hasOwnProperty;var xht=function(e){return cht([e[0]],e.slice(1),!0)};Ce.fromReadonlyNonEmptyArray=xht;var wht=function(e){return function(r,n){return function(){for(var i=[],a=0;a{"use strict";var Rht=li&&li.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),Aht=li&&li.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Oht=li&&li.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Rht(r,e,n);return Aht(r,e),r};Object.defineProperty(li,"__esModule",{value:!0});li.ap=Fht;li.apFirst=$ht;li.apSecond=Lht;li.apS=Nht;li.getApplySemigroup=Mht;li.sequenceT=jht;li.sequenceS=Uht;var Iht=Nt(),kht=Oht(vc());function Fht(e,r){return function(n){return function(i){return e.ap(e.map(i,function(a){return function(o){return r.ap(a,o)}}),n)}}}function $ht(e){return function(r){return function(n){return e.ap(e.map(n,function(i){return function(){return i}}),r)}}}function Lht(e){return function(r){return function(n){return e.ap(e.map(n,function(){return function(i){return i}}),r)}}}function Nht(e){return function(r,n){return function(i){return e.ap(e.map(i,function(a){return function(o){var c;return Object.assign({},a,(c={},c[r]=o,c))}}),n)}}}function Mht(e){return function(r){return{concat:function(n,i){return e.ap(e.map(n,function(a){return function(o){return r.concat(a,o)}}),i)}}}}function jM(e,r,n){return function(i){for(var a=Array(n.length+1),o=0;o{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.map=Xbe;yc.flap=Wht;yc.bindTo=Hht;yc.let=zht;yc.getFunctorComposition=Vht;yc.as=Jbe;yc.asUnit=Yht;var Ght=Nt();function Xbe(e,r){return function(n){return function(i){return e.map(i,function(a){return r.map(a,n)})}}}function Wht(e){return function(r){return function(n){return e.map(n,function(i){return i(r)})}}}function Hht(e){return function(r){return function(n){return e.map(n,function(i){var a;return a={},a[r]=i,a})}}}function zht(e){return function(r,n){return function(i){return e.map(i,function(a){var o;return Object.assign({},a,(o={},o[r]=n(a),o))})}}}function Vht(e,r){var n=Xbe(e,r);return{map:function(i,a){return(0,Ght.pipe)(i,n(a))}}}function Jbe(e){return function(r,n){return e.map(r,function(){return n})}}function Yht(e){var r=Jbe(e);return function(n){return r(n,void 0)}}});var M0=S(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});cC.getApplicativeMonoid=Jht;cC.getApplicativeComposition=Qht;var Qbe=Jf(),Kht=Nt(),Xht=vo();function Jht(e){var r=(0,Qbe.getApplySemigroup)(e);return function(n){return{concat:r(n).concat,empty:e.of(n.empty)}}}function Qht(e,r){var n=(0,Xht.getFunctorComposition)(e,r).map,i=(0,Qbe.ap)(e,r);return{map:n,of:function(a){return e.of(r.of(a))},ap:function(a,o){return(0,Kht.pipe)(a,i(o))}}}});var Zu=S(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.chainFirst=Zht;q0.tap=Zbe;q0.bind=emt;function Zht(e){var r=Zbe(e);return function(n){return function(i){return r(i,n)}}}function Zbe(e){return function(r,n){return e.chain(r,function(i){return e.map(n(i),function(){return i})})}}function emt(e){return function(r,n){return function(i){return e.chain(i,function(a){return e.map(n(a),function(o){var c;return Object.assign({},a,(c={},c[r]=o,c))})})}}}});var uC=S(On=>{"use strict";var tmt=On&&On.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),rmt=On&&On.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),nmt=On&&On.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&tmt(r,e,n);return rmt(r,e),r};Object.defineProperty(On,"__esModule",{value:!0});On.fromOption=txe;On.fromPredicate=smt;On.fromOptionK=rxe;On.chainOptionK=amt;On.fromEitherK=BM;On.chainEitherK=omt;On.chainFirstEitherK=cmt;On.filterOrElse=umt;On.tapEither=nxe;var imt=Zu(),exe=Nt(),Qf=nmt(vc());function txe(e){return function(r){return function(n){return e.fromEither(Qf.isNone(n)?Qf.left(r()):Qf.right(n.value))}}}function smt(e){return function(r,n){return function(i){return e.fromEither(r(i)?Qf.right(i):Qf.left(n(i)))}}}function rxe(e){var r=txe(e);return function(n){var i=r(n);return function(a){return(0,exe.flow)(a,i)}}}function amt(e,r){var n=rxe(e);return function(i){var a=n(i);return function(o){return function(c){return r.chain(c,a(o))}}}}function BM(e){return function(r){return(0,exe.flow)(r,e.fromEither)}}function omt(e,r){var n=BM(e);return function(i){return function(a){return r.chain(a,n(i))}}}function cmt(e,r){var n=nxe(e,r);return function(i){return function(a){return n(a,i)}}}function umt(e,r){return function(n,i){return function(a){return r.chain(a,function(o){return e.fromEither(n(o)?Qf.right(o):Qf.left(i(o)))})}}}function nxe(e,r){var n=BM(e),i=(0,imt.tap)(r);return function(a,o){return i(a,n(o))}}});var UM=S(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.and=qt.or=qt.not=qt.Contravariant=qt.getMonoidAll=qt.getSemigroupAll=qt.getMonoidAny=qt.getSemigroupAny=qt.URI=qt.contramap=void 0;var cm=Nt(),lmt=function(e,r){return(0,cm.pipe)(e,(0,qt.contramap)(r))},fmt=function(e){return function(r){return(0,cm.flow)(e,r)}};qt.contramap=fmt;qt.URI="Predicate";var pmt=function(){return{concat:function(e,r){return(0,cm.pipe)(e,(0,qt.or)(r))}}};qt.getSemigroupAny=pmt;var dmt=function(){return{concat:(0,qt.getSemigroupAny)().concat,empty:cm.constFalse}};qt.getMonoidAny=dmt;var hmt=function(){return{concat:function(e,r){return(0,cm.pipe)(e,(0,qt.and)(r))}}};qt.getSemigroupAll=hmt;var mmt=function(){return{concat:(0,qt.getSemigroupAll)().concat,empty:cm.constTrue}};qt.getMonoidAll=mmt;qt.Contravariant={URI:qt.URI,contramap:lmt};var gmt=function(e){return function(r){return!e(r)}};qt.not=gmt;var vmt=function(e){return function(r){return function(n){return r(n)||e(n)}}};qt.or=vmt;var ymt=function(e){return function(r){return function(n){return r(n)&&e(n)}}};qt.and=ymt});var ixe=S(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.concatAll=Us.endo=Us.filterSecond=Us.filterFirst=Us.reverse=void 0;var bmt=function(e){return{concat:function(r,n){return e.concat(n,r)}}};Us.reverse=bmt;var xmt=function(e){return function(r){return{concat:function(n,i){return e(n)?r.concat(n,i):i}}}};Us.filterFirst=xmt;var wmt=function(e){return function(r){return{concat:function(n,i){return e(i)?r.concat(n,i):n}}}};Us.filterSecond=wmt;var _mt=function(e){return function(r){return{concat:function(n,i){return r.concat(e(n),e(i))}}}};Us.endo=_mt;var Emt=function(e){return function(r){return function(n){return n.reduce(function(i,a){return e.concat(i,a)},r)}}};Us.concatAll=Emt});var sxe=S(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.eqDate=Fe.eqNumber=Fe.eqString=Fe.eqBoolean=Fe.eq=Fe.strictEqual=Fe.getStructEq=Fe.getTupleEq=Fe.Contravariant=Fe.getMonoid=Fe.getSemigroup=Fe.eqStrict=Fe.URI=Fe.contramap=Fe.tuple=Fe.struct=Fe.fromEquals=void 0;var Smt=Nt(),Dmt=function(e){return{equals:function(r,n){return r===n||e(r,n)}}};Fe.fromEquals=Dmt;var Cmt=function(e){return(0,Fe.fromEquals)(function(r,n){for(var i in e)if(!e[i].equals(r[i],n[i]))return!1;return!0})};Fe.struct=Cmt;var Pmt=function(){for(var e=[],r=0;r{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.ordDate=he.ordNumber=he.ordString=he.ordBoolean=he.ord=he.getDualOrd=he.getTupleOrd=he.between=he.clamp=he.max=he.min=he.geq=he.leq=he.gt=he.lt=he.equals=he.trivial=he.Contravariant=he.getMonoid=he.getSemigroup=he.URI=he.contramap=he.reverse=he.tuple=he.fromCompare=he.equalsDefault=void 0;var kmt=sxe(),lC=Nt(),Fmt=function(e){return function(r,n){return r===n||e(r,n)===0}};he.equalsDefault=Fmt;var $mt=function(e){return{equals:(0,he.equalsDefault)(e),compare:function(r,n){return r===n?0:e(r,n)}}};he.fromCompare=$mt;var Lmt=function(){for(var e=[],r=0;r-1?r:n}};he.max=Ymt;var Kmt=function(e){var r=(0,he.min)(e),n=(0,he.max)(e);return function(i,a){return function(o){return n(r(o,a),i)}}};he.clamp=Kmt;var Xmt=function(e){var r=(0,he.lt)(e),n=(0,he.gt)(e);return function(i,a){return function(o){return!(r(o,i)||n(o,a))}}};he.between=Xmt;he.getTupleOrd=he.tuple;he.getDualOrd=he.reverse;he.ord=he.Contravariant;function Jmt(e,r){return er?1:0}var GM={equals:kmt.eqStrict.equals,compare:Jmt};he.ordBoolean=GM;he.ordString=GM;he.ordNumber=GM;he.ordDate=(0,lC.pipe)(he.ordNumber,(0,he.contramap)(function(e){return e.valueOf()}))});var lxe=S(ge=>{"use strict";var Qmt=ge&&ge.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),Zmt=ge&&ge.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),WM=ge&&ge.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Qmt(r,e,n);return Zmt(r,e),r};Object.defineProperty(ge,"__esModule",{value:!0});ge.semigroupProduct=ge.semigroupSum=ge.semigroupString=ge.getFunctionSemigroup=ge.semigroupAny=ge.semigroupAll=ge.getIntercalateSemigroup=ge.getMeetSemigroup=ge.getJoinSemigroup=ge.getDualSemigroup=ge.getStructSemigroup=ge.getTupleSemigroup=ge.getFirstSemigroup=ge.getLastSemigroup=ge.getObjectSemigroup=ge.semigroupVoid=ge.concatAll=ge.last=ge.first=ge.intercalate=ge.tuple=ge.struct=ge.reverse=ge.constant=ge.max=ge.min=void 0;ge.fold=lgt;var oxe=Nt(),egt=WM(vc()),cxe=WM(ixe()),uxe=WM(axe()),tgt=function(e){return{concat:uxe.min(e)}};ge.min=tgt;var rgt=function(e){return{concat:uxe.max(e)}};ge.max=rgt;var ngt=function(e){return{concat:function(){return e}}};ge.constant=ngt;ge.reverse=cxe.reverse;var igt=function(e){return{concat:function(r,n){var i={};for(var a in e)egt.has.call(e,a)&&(i[a]=e[a].concat(r[a],n[a]));return i}}};ge.struct=igt;var sgt=function(){for(var e=[],r=0;r{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.right=rt.left=rt.flap=rt.Functor=rt.Bifunctor=rt.URI=rt.bimap=rt.mapLeft=rt.map=rt.separated=void 0;var HM=Nt(),fgt=vo(),pgt=function(e,r){return{left:e,right:r}};rt.separated=pgt;var dgt=function(e,r){return(0,HM.pipe)(e,(0,rt.map)(r))},hgt=function(e,r){return(0,HM.pipe)(e,(0,rt.mapLeft)(r))},mgt=function(e,r,n){return(0,HM.pipe)(e,(0,rt.bimap)(r,n))},ggt=function(e){return function(r){return(0,rt.separated)((0,rt.left)(r),e((0,rt.right)(r)))}};rt.map=ggt;var vgt=function(e){return function(r){return(0,rt.separated)(e((0,rt.left)(r)),(0,rt.right)(r))}};rt.mapLeft=vgt;var ygt=function(e,r){return function(n){return(0,rt.separated)(e((0,rt.left)(n)),r((0,rt.right)(n)))}};rt.bimap=ygt;rt.URI="Separated";rt.Bifunctor={URI:rt.URI,mapLeft:hgt,bimap:mgt};rt.Functor={URI:rt.URI,map:dgt};rt.flap=(0,fgt.flap)(rt.Functor);var bgt=function(e){return e.left};rt.left=bgt;var xgt=function(e){return e.right};rt.right=xgt});var zM=S(Ta=>{"use strict";var wgt=Ta&&Ta.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),_gt=Ta&&Ta.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Egt=Ta&&Ta.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wgt(r,e,n);return _gt(r,e),r};Object.defineProperty(Ta,"__esModule",{value:!0});Ta.wiltDefault=Sgt;Ta.witherDefault=Dgt;Ta.filterE=Cgt;var fxe=Egt(vc());function Sgt(e,r){return function(n){var i=e.traverse(n);return function(a,o){return n.map(i(a,o),r.separate)}}}function Dgt(e,r){return function(n){var i=e.traverse(n);return function(a,o){return n.map(i(a,o),r.compact)}}}function Cgt(e){return function(r){var n=e.wither(r);return function(i){return function(a){return n(a,function(o){return r.map(i(o),function(c){return c?fxe.some(o):fxe.none})})}}}}});var pxe=S(VM=>{"use strict";Object.defineProperty(VM,"__esModule",{value:!0});VM.guard=Pgt;function Pgt(e,r){return function(n){return n?r.of(void 0):e.zero()}}});var n4=S(I=>{"use strict";var Tgt=I&&I.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),Rgt=I&&I.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),dxe=I&&I.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Tgt(r,e,n);return Rgt(r,e),r};Object.defineProperty(I,"__esModule",{value:!0});I.throwError=I.Witherable=I.wilt=I.wither=I.Traversable=I.sequence=I.traverse=I.Filterable=I.partitionMap=I.partition=I.filterMap=I.filter=I.Compactable=I.separate=I.compact=I.Extend=I.extend=I.Alternative=I.guard=I.Zero=I.zero=I.Alt=I.alt=I.altW=I.orElse=I.Foldable=I.reduceRight=I.foldMap=I.reduce=I.Monad=I.Chain=I.flatMap=I.Applicative=I.Apply=I.ap=I.Pointed=I.of=I.asUnit=I.as=I.Functor=I.map=I.getMonoid=I.getOrd=I.getEq=I.getShow=I.URI=I.getRight=I.getLeft=I.some=I.none=void 0;I.getLastMonoid=I.getFirstMonoid=I.getApplyMonoid=I.getApplySemigroup=I.option=I.mapNullable=I.chainFirst=I.chain=I.sequenceArray=I.traverseArray=I.traverseArrayWithIndex=I.traverseReadonlyArrayWithIndex=I.traverseReadonlyNonEmptyArrayWithIndex=I.ApT=I.apS=I.bind=I.let=I.bindTo=I.Do=I.exists=I.toUndefined=I.toNullable=I.chainNullableK=I.fromNullableK=I.tryCatchK=I.tryCatch=I.fromNullable=I.chainFirstEitherK=I.chainEitherK=I.fromEitherK=I.duplicate=I.tapEither=I.tap=I.flatten=I.apSecond=I.apFirst=I.flap=I.getOrElse=I.getOrElseW=I.fold=I.match=I.foldW=I.matchW=I.isNone=I.isSome=I.FromEither=I.fromEither=I.MonadThrow=void 0;I.fromPredicate=kgt;I.elem=yxe;I.getRefinement=vvt;var Agt=M0(),fC=Jf(),hxe=dxe(Zu()),YM=uC(),Qt=Nt(),U0=vo(),Zf=dxe(vc()),Ogt=UM(),mxe=lxe(),KM=j0(),gxe=zM(),Igt=pxe();I.none=Zf.none;I.some=Zf.some;function kgt(e){return function(r){return e(r)?(0,I.some)(r):I.none}}var Fgt=function(e){return e._tag==="Right"?I.none:(0,I.some)(e.left)};I.getLeft=Fgt;var $gt=function(e){return e._tag==="Left"?I.none:(0,I.some)(e.right)};I.getRight=$gt;var us=function(e,r){return(0,Qt.pipe)(e,(0,I.map)(r))},ep=function(e,r){return(0,Qt.pipe)(e,(0,I.ap)(r))},pC=function(e,r,n){return(0,Qt.pipe)(e,(0,I.reduce)(r,n))},dC=function(e){var r=(0,I.foldMap)(e);return function(n,i){return(0,Qt.pipe)(n,r(i))}},hC=function(e,r,n){return(0,Qt.pipe)(e,(0,I.reduceRight)(r,n))},XM=function(e){var r=(0,I.traverse)(e);return function(n,i){return(0,Qt.pipe)(n,r(i))}},JM=function(e,r){return(0,Qt.pipe)(e,(0,I.alt)(r))},B0=function(e,r){return(0,Qt.pipe)(e,(0,I.filter)(r))},QM=function(e,r){return(0,Qt.pipe)(e,(0,I.filterMap)(r))},vxe=function(e,r){return(0,Qt.pipe)(e,(0,I.extend)(r))},ZM=function(e,r){return(0,Qt.pipe)(e,(0,I.partition)(r))},e4=function(e,r){return(0,Qt.pipe)(e,(0,I.partitionMap)(r))};I.URI="Option";var Lgt=function(e){return{show:function(r){return(0,I.isNone)(r)?"none":"some(".concat(e.show(r.value),")")}}};I.getShow=Lgt;var Ngt=function(e){return{equals:function(r,n){return r===n||((0,I.isNone)(r)?(0,I.isNone)(n):(0,I.isNone)(n)?!1:e.equals(r.value,n.value))}}};I.getEq=Ngt;var Mgt=function(e){return{equals:(0,I.getEq)(e).equals,compare:function(r,n){return r===n?0:(0,I.isSome)(r)?(0,I.isSome)(n)?e.compare(r.value,n.value):1:-1}}};I.getOrd=Mgt;var qgt=function(e){return{concat:function(r,n){return(0,I.isNone)(r)?n:(0,I.isNone)(n)?r:(0,I.some)(e.concat(r.value,n.value))},empty:I.none}};I.getMonoid=qgt;var jgt=function(e){return function(r){return(0,I.isNone)(r)?I.none:(0,I.some)(e(r.value))}};I.map=jgt;I.Functor={URI:I.URI,map:us};I.as=(0,Qt.dual)(2,(0,U0.as)(I.Functor));I.asUnit=(0,U0.asUnit)(I.Functor);I.of=I.some;I.Pointed={URI:I.URI,of:I.of};var Bgt=function(e){return function(r){return(0,I.isNone)(r)||(0,I.isNone)(e)?I.none:(0,I.some)(r.value(e.value))}};I.ap=Bgt;I.Apply={URI:I.URI,map:us,ap:ep};I.Applicative={URI:I.URI,map:us,ap:ep,of:I.of};I.flatMap=(0,Qt.dual)(2,function(e,r){return(0,I.isNone)(e)?I.none:r(e.value)});I.Chain={URI:I.URI,map:us,ap:ep,chain:I.flatMap};I.Monad={URI:I.URI,map:us,ap:ep,of:I.of,chain:I.flatMap};var Ugt=function(e,r){return function(n){return(0,I.isNone)(n)?e:r(e,n.value)}};I.reduce=Ugt;var Ggt=function(e){return function(r){return function(n){return(0,I.isNone)(n)?e.empty:r(n.value)}}};I.foldMap=Ggt;var Wgt=function(e,r){return function(n){return(0,I.isNone)(n)?e:r(n.value,e)}};I.reduceRight=Wgt;I.Foldable={URI:I.URI,reduce:pC,foldMap:dC,reduceRight:hC};I.orElse=(0,Qt.dual)(2,function(e,r){return(0,I.isNone)(e)?r():e});I.altW=I.orElse;I.alt=I.orElse;I.Alt={URI:I.URI,map:us,alt:JM};var Hgt=function(){return I.none};I.zero=Hgt;I.Zero={URI:I.URI,zero:I.zero};I.guard=(0,Igt.guard)(I.Zero,I.Pointed);I.Alternative={URI:I.URI,map:us,ap:ep,of:I.of,alt:JM,zero:I.zero};var zgt=function(e){return function(r){return(0,I.isNone)(r)?I.none:(0,I.some)(e(r))}};I.extend=zgt;I.Extend={URI:I.URI,map:us,extend:vxe};I.compact=(0,I.flatMap)(Qt.identity);var Vgt=(0,KM.separated)(I.none,I.none),Ygt=function(e){return(0,I.isNone)(e)?Vgt:(0,KM.separated)((0,I.getLeft)(e.value),(0,I.getRight)(e.value))};I.separate=Ygt;I.Compactable={URI:I.URI,compact:I.compact,separate:I.separate};var Kgt=function(e){return function(r){return(0,I.isNone)(r)?I.none:e(r.value)?r:I.none}};I.filter=Kgt;var Xgt=function(e){return function(r){return(0,I.isNone)(r)?I.none:e(r.value)}};I.filterMap=Xgt;var Jgt=function(e){return function(r){return(0,KM.separated)(B0(r,(0,Ogt.not)(e)),B0(r,e))}};I.partition=Jgt;var Qgt=function(e){return(0,Qt.flow)((0,I.map)(e),I.separate)};I.partitionMap=Qgt;I.Filterable={URI:I.URI,map:us,compact:I.compact,separate:I.separate,filter:B0,filterMap:QM,partition:ZM,partitionMap:e4};var Zgt=function(e){return function(r){return function(n){return(0,I.isNone)(n)?e.of(I.none):e.map(r(n.value),I.some)}}};I.traverse=Zgt;var evt=function(e){return function(r){return(0,I.isNone)(r)?e.of(I.none):e.map(r.value,I.some)}};I.sequence=evt;I.Traversable={URI:I.URI,map:us,reduce:pC,foldMap:dC,reduceRight:hC,traverse:XM,sequence:I.sequence};var t4=(0,gxe.witherDefault)(I.Traversable,I.Compactable),r4=(0,gxe.wiltDefault)(I.Traversable,I.Compactable),tvt=function(e){var r=t4(e);return function(n){return function(i){return r(i,n)}}};I.wither=tvt;var rvt=function(e){var r=r4(e);return function(n){return function(i){return r(i,n)}}};I.wilt=rvt;I.Witherable={URI:I.URI,map:us,reduce:pC,foldMap:dC,reduceRight:hC,traverse:XM,sequence:I.sequence,compact:I.compact,separate:I.separate,filter:B0,filterMap:QM,partition:ZM,partitionMap:e4,wither:t4,wilt:r4};var nvt=function(){return I.none};I.throwError=nvt;I.MonadThrow={URI:I.URI,map:us,ap:ep,of:I.of,chain:I.flatMap,throwError:I.throwError};I.fromEither=I.getRight;I.FromEither={URI:I.URI,fromEither:I.fromEither};I.isSome=Zf.isSome;var ivt=function(e){return e._tag==="None"};I.isNone=ivt;var svt=function(e,r){return function(n){return(0,I.isNone)(n)?e():r(n.value)}};I.matchW=svt;I.foldW=I.matchW;I.match=I.matchW;I.fold=I.match;var avt=function(e){return function(r){return(0,I.isNone)(r)?e():r.value}};I.getOrElseW=avt;I.getOrElse=I.getOrElseW;I.flap=(0,U0.flap)(I.Functor);I.apFirst=(0,fC.apFirst)(I.Apply);I.apSecond=(0,fC.apSecond)(I.Apply);I.flatten=I.compact;I.tap=(0,Qt.dual)(2,hxe.tap(I.Chain));I.tapEither=(0,Qt.dual)(2,(0,YM.tapEither)(I.FromEither,I.Chain));I.duplicate=(0,I.extend)(Qt.identity);I.fromEitherK=(0,YM.fromEitherK)(I.FromEither);I.chainEitherK=(0,YM.chainEitherK)(I.FromEither,I.Chain);I.chainFirstEitherK=I.tapEither;var ovt=function(e){return e==null?I.none:(0,I.some)(e)};I.fromNullable=ovt;var cvt=function(e){try{return(0,I.some)(e())}catch{return I.none}};I.tryCatch=cvt;var uvt=function(e){return function(){for(var r=[],n=0;n{"use strict";var xvt=Ra&&Ra.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),wvt=Ra&&Ra.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),_vt=Ra&&Ra.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&xvt(r,e,n);return wvt(r,e),r};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.compact=i4;Ra.separate=_xe;Ra.getCompactableComposition=Svt;var bxe=Nt(),wxe=vo(),xxe=n4(),Evt=_vt(j0());function i4(e,r){return function(n){return e.map(n,r.compact)}}function _xe(e,r,n){var i=i4(e,r),a=(0,wxe.map)(e,n);return function(o){return Evt.separated(i((0,bxe.pipe)(o,a(xxe.getLeft))),i((0,bxe.pipe)(o,a(xxe.getRight))))}}function Svt(e,r){var n=(0,wxe.getFunctorComposition)(e,r).map;return{map:n,compact:i4(e,r),separate:_xe(e,r,r)}}});var Exe=S(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});mC.tailRec=void 0;var Dvt=function(e,r){for(var n=r(e);n._tag==="Left";)n=r(n.left);return n.right};mC.tailRec=Dvt});var yC=S(A=>{"use strict";var Cvt=A&&A.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),Pvt=A&&A.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Dxe=A&&A.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Cvt(r,e,n);return Pvt(r,e),r};Object.defineProperty(A,"__esModule",{value:!0});A.match=A.foldW=A.matchW=A.isRight=A.isLeft=A.fromOption=A.fromPredicate=A.FromEither=A.MonadThrow=A.throwError=A.ChainRec=A.Extend=A.extend=A.Alt=A.alt=A.altW=A.Bifunctor=A.mapLeft=A.bimap=A.Traversable=A.sequence=A.traverse=A.Foldable=A.reduceRight=A.foldMap=A.reduce=A.Monad=A.Chain=A.Applicative=A.Apply=A.ap=A.apW=A.Pointed=A.of=A.asUnit=A.as=A.Functor=A.map=A.getAltValidation=A.getApplicativeValidation=A.getWitherable=A.getFilterable=A.getCompactable=A.getSemigroup=A.getEq=A.getShow=A.URI=A.flatMap=A.right=A.left=void 0;A.either=A.stringifyJSON=A.chainFirstW=A.chainFirst=A.chain=A.chainW=A.sequenceArray=A.traverseArray=A.traverseArrayWithIndex=A.traverseReadonlyArrayWithIndex=A.traverseReadonlyNonEmptyArrayWithIndex=A.ApT=A.apSW=A.apS=A.bindW=A.bind=A.let=A.bindTo=A.Do=A.exists=A.toUnion=A.chainNullableK=A.fromNullableK=A.tryCatchK=A.tryCatch=A.fromNullable=A.orElse=A.orElseW=A.swap=A.filterOrElseW=A.filterOrElse=A.flatMapOption=A.flatMapNullable=A.liftOption=A.liftNullable=A.chainOptionKW=A.chainOptionK=A.fromOptionK=A.duplicate=A.flatten=A.flattenW=A.tap=A.apSecondW=A.apSecond=A.apFirstW=A.apFirst=A.flap=A.getOrElse=A.getOrElseW=A.fold=void 0;A.getValidationMonoid=A.getValidationSemigroup=A.getApplyMonoid=A.getApplySemigroup=void 0;A.toError=nyt;A.elem=Axe;A.parseJSON=uyt;A.getValidation=dyt;var Cxe=M0(),G0=Jf(),Pxe=Dxe(Zu()),Tvt=Exe(),W0=uC(),Ur=Nt(),H0=vo(),Gs=Dxe(vc()),bc=j0(),Sxe=zM();A.left=Gs.left;A.right=Gs.right;A.flatMap=(0,Ur.dual)(2,function(e,r){return(0,A.isLeft)(e)?e:r(e.right)});var Wn=function(e,r){return(0,Ur.pipe)(e,(0,A.map)(r))},tp=function(e,r){return(0,Ur.pipe)(e,(0,A.ap)(r))},z0=function(e,r,n){return(0,Ur.pipe)(e,(0,A.reduce)(r,n))},V0=function(e){return function(r,n){var i=(0,A.foldMap)(e);return(0,Ur.pipe)(r,i(n))}},Y0=function(e,r,n){return(0,Ur.pipe)(e,(0,A.reduceRight)(r,n))},gC=function(e){var r=(0,A.traverse)(e);return function(n,i){return(0,Ur.pipe)(n,r(i))}},a4=function(e,r,n){return(0,Ur.pipe)(e,(0,A.bimap)(r,n))},o4=function(e,r){return(0,Ur.pipe)(e,(0,A.mapLeft)(r))},Txe=function(e,r){return(0,Ur.pipe)(e,(0,A.alt)(r))},c4=function(e,r){return(0,Ur.pipe)(e,(0,A.extend)(r))},u4=function(e,r){return(0,Tvt.tailRec)(r(e),function(n){return(0,A.isLeft)(n)?(0,A.right)((0,A.left)(n.left)):(0,A.isLeft)(n.right)?(0,A.left)(r(n.right.left)):(0,A.right)((0,A.right)(n.right.right))})};A.URI="Either";var Rvt=function(e,r){return{show:function(n){return(0,A.isLeft)(n)?"left(".concat(e.show(n.left),")"):"right(".concat(r.show(n.right),")")}}};A.getShow=Rvt;var Avt=function(e,r){return{equals:function(n,i){return n===i||((0,A.isLeft)(n)?(0,A.isLeft)(i)&&e.equals(n.left,i.left):(0,A.isRight)(i)&&r.equals(n.right,i.right))}}};A.getEq=Avt;var Ovt=function(e){return{concat:function(r,n){return(0,A.isLeft)(n)?r:(0,A.isLeft)(r)?n:(0,A.right)(e.concat(r.right,n.right))}}};A.getSemigroup=Ovt;var Ivt=function(e){var r=(0,A.left)(e.empty);return{URI:A.URI,_E:void 0,compact:function(n){return(0,A.isLeft)(n)?n:n.right._tag==="None"?r:(0,A.right)(n.right.value)},separate:function(n){return(0,A.isLeft)(n)?(0,bc.separated)(n,n):(0,A.isLeft)(n.right)?(0,bc.separated)((0,A.right)(n.right.left),r):(0,bc.separated)(r,(0,A.right)(n.right.right))}}};A.getCompactable=Ivt;var kvt=function(e){var r=(0,A.left)(e.empty),n=(0,A.getCompactable)(e),i=n.compact,a=n.separate,o=function(u,l){return(0,A.isLeft)(u)||l(u.right)?u:r},c=function(u,l){return(0,A.isLeft)(u)?(0,bc.separated)(u,u):l(u.right)?(0,bc.separated)(r,(0,A.right)(u.right)):(0,bc.separated)((0,A.right)(u.right),r)};return{URI:A.URI,_E:void 0,map:Wn,compact:i,separate:a,filter:o,filterMap:function(u,l){if((0,A.isLeft)(u))return u;var f=l(u.right);return f._tag==="None"?r:(0,A.right)(f.value)},partition:c,partitionMap:function(u,l){if((0,A.isLeft)(u))return(0,bc.separated)(u,u);var f=l(u.right);return(0,A.isLeft)(f)?(0,bc.separated)((0,A.right)(f.left),r):(0,bc.separated)(r,(0,A.right)(f.right))}}};A.getFilterable=kvt;var Fvt=function(e){var r=(0,A.getFilterable)(e),n=(0,A.getCompactable)(e);return{URI:A.URI,_E:void 0,map:Wn,compact:r.compact,separate:r.separate,filter:r.filter,filterMap:r.filterMap,partition:r.partition,partitionMap:r.partitionMap,traverse:gC,sequence:A.sequence,reduce:z0,foldMap:V0,reduceRight:Y0,wither:(0,Sxe.witherDefault)(A.Traversable,n),wilt:(0,Sxe.wiltDefault)(A.Traversable,n)}};A.getWitherable=Fvt;var $vt=function(e){return{URI:A.URI,_E:void 0,map:Wn,ap:function(r,n){return(0,A.isLeft)(r)?(0,A.isLeft)(n)?(0,A.left)(e.concat(r.left,n.left)):r:(0,A.isLeft)(n)?n:(0,A.right)(r.right(n.right))},of:A.of}};A.getApplicativeValidation=$vt;var Lvt=function(e){return{URI:A.URI,_E:void 0,map:Wn,alt:function(r,n){if((0,A.isRight)(r))return r;var i=n();return(0,A.isLeft)(i)?(0,A.left)(e.concat(r.left,i.left)):i}}};A.getAltValidation=Lvt;var Nvt=function(e){return function(r){return(0,A.isLeft)(r)?r:(0,A.right)(e(r.right))}};A.map=Nvt;A.Functor={URI:A.URI,map:Wn};A.as=(0,Ur.dual)(2,(0,H0.as)(A.Functor));A.asUnit=(0,H0.asUnit)(A.Functor);A.of=A.right;A.Pointed={URI:A.URI,of:A.of};var Mvt=function(e){return function(r){return(0,A.isLeft)(r)?r:(0,A.isLeft)(e)?e:(0,A.right)(r.right(e.right))}};A.apW=Mvt;A.ap=A.apW;A.Apply={URI:A.URI,map:Wn,ap:tp};A.Applicative={URI:A.URI,map:Wn,ap:tp,of:A.of};A.Chain={URI:A.URI,map:Wn,ap:tp,chain:A.flatMap};A.Monad={URI:A.URI,map:Wn,ap:tp,of:A.of,chain:A.flatMap};var qvt=function(e,r){return function(n){return(0,A.isLeft)(n)?e:r(e,n.right)}};A.reduce=qvt;var jvt=function(e){return function(r){return function(n){return(0,A.isLeft)(n)?e.empty:r(n.right)}}};A.foldMap=jvt;var Bvt=function(e,r){return function(n){return(0,A.isLeft)(n)?e:r(n.right,e)}};A.reduceRight=Bvt;A.Foldable={URI:A.URI,reduce:z0,foldMap:V0,reduceRight:Y0};var Uvt=function(e){return function(r){return function(n){return(0,A.isLeft)(n)?e.of((0,A.left)(n.left)):e.map(r(n.right),A.right)}}};A.traverse=Uvt;var Gvt=function(e){return function(r){return(0,A.isLeft)(r)?e.of((0,A.left)(r.left)):e.map(r.right,A.right)}};A.sequence=Gvt;A.Traversable={URI:A.URI,map:Wn,reduce:z0,foldMap:V0,reduceRight:Y0,traverse:gC,sequence:A.sequence};var Wvt=function(e,r){return function(n){return(0,A.isLeft)(n)?(0,A.left)(e(n.left)):(0,A.right)(r(n.right))}};A.bimap=Wvt;var Hvt=function(e){return function(r){return(0,A.isLeft)(r)?(0,A.left)(e(r.left)):r}};A.mapLeft=Hvt;A.Bifunctor={URI:A.URI,bimap:a4,mapLeft:o4};var zvt=function(e){return function(r){return(0,A.isLeft)(r)?e():r}};A.altW=zvt;A.alt=A.altW;A.Alt={URI:A.URI,map:Wn,alt:Txe};var Vvt=function(e){return function(r){return(0,A.isLeft)(r)?r:(0,A.right)(e(r))}};A.extend=Vvt;A.Extend={URI:A.URI,map:Wn,extend:c4};A.ChainRec={URI:A.URI,map:Wn,ap:tp,chain:A.flatMap,chainRec:u4};A.throwError=A.left;A.MonadThrow={URI:A.URI,map:Wn,ap:tp,of:A.of,chain:A.flatMap,throwError:A.throwError};A.FromEither={URI:A.URI,fromEither:Ur.identity};A.fromPredicate=(0,W0.fromPredicate)(A.FromEither);A.fromOption=(0,W0.fromOption)(A.FromEither);A.isLeft=Gs.isLeft;A.isRight=Gs.isRight;var Yvt=function(e,r){return function(n){return(0,A.isLeft)(n)?e(n.left):r(n.right)}};A.matchW=Yvt;A.foldW=A.matchW;A.match=A.matchW;A.fold=A.match;var Kvt=function(e){return function(r){return(0,A.isLeft)(r)?e(r.left):r.right}};A.getOrElseW=Kvt;A.getOrElse=A.getOrElseW;A.flap=(0,H0.flap)(A.Functor);A.apFirst=(0,G0.apFirst)(A.Apply);A.apFirstW=A.apFirst;A.apSecond=(0,G0.apSecond)(A.Apply);A.apSecondW=A.apSecond;A.tap=(0,Ur.dual)(2,Pxe.tap(A.Chain));A.flattenW=(0,A.flatMap)(Ur.identity);A.flatten=A.flattenW;A.duplicate=(0,A.extend)(Ur.identity);A.fromOptionK=(0,W0.fromOptionK)(A.FromEither);A.chainOptionK=(0,W0.chainOptionK)(A.FromEither,A.Chain);A.chainOptionKW=A.chainOptionK;var vC={fromEither:A.FromEither.fromEither};A.liftNullable=Gs.liftNullable(vC);A.liftOption=Gs.liftOption(vC);var Rxe={flatMap:A.flatMap};A.flatMapNullable=Gs.flatMapNullable(vC,Rxe);A.flatMapOption=Gs.flatMapOption(vC,Rxe);A.filterOrElse=(0,W0.filterOrElse)(A.FromEither,A.Chain);A.filterOrElseW=A.filterOrElse;var Xvt=function(e){return(0,A.isLeft)(e)?(0,A.right)(e.left):(0,A.left)(e.right)};A.swap=Xvt;var Jvt=function(e){return function(r){return(0,A.isLeft)(r)?e(r.left):r}};A.orElseW=Jvt;A.orElse=A.orElseW;var Qvt=function(e){return function(r){return r==null?(0,A.left)(e):(0,A.right)(r)}};A.fromNullable=Qvt;var Zvt=function(e,r){try{return(0,A.right)(e())}catch(n){return(0,A.left)(r(n))}};A.tryCatch=Zvt;var eyt=function(e,r){return function(){for(var n=[],i=0;i{"use strict";var hyt=ct&&ct.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),myt=ct&&ct.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),gyt=ct&&ct.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&hyt(r,e,n);return myt(r,e),r};Object.defineProperty(ct,"__esModule",{value:!0});ct.right=l4;ct.left=Oxe;ct.rightF=Ixe;ct.leftF=kxe;ct.fromNullable=Fxe;ct.fromNullableK=$xe;ct.chainNullableK=byt;ct.map=Lxe;ct.ap=Nxe;ct.chain=f4;ct.flatMap=Mxe;ct.alt=qxe;ct.bimap=jxe;ct.mapBoth=Bxe;ct.mapLeft=Uxe;ct.mapError=Gxe;ct.altValidation=xyt;ct.match=wyt;ct.matchE=Wxe;ct.getOrElse=Hxe;ct.orElse=p4;ct.orElseFirst=_yt;ct.tapError=zxe;ct.orLeft=Eyt;ct.swap=Vxe;ct.toUnion=Syt;ct.getEitherM=Dyt;var vyt=Jf(),cr=gyt(yC()),Ri=Nt(),yyt=vo();function l4(e){return(0,Ri.flow)(cr.right,e.of)}function Oxe(e){return(0,Ri.flow)(cr.left,e.of)}function Ixe(e){return function(r){return e.map(r,cr.right)}}function kxe(e){return function(r){return e.map(r,cr.left)}}function Fxe(e){return function(r){return(0,Ri.flow)(cr.fromNullable(r),e.of)}}function $xe(e){var r=Fxe(e);return function(n){var i=r(n);return function(a){return(0,Ri.flow)(a,i)}}}function byt(e){var r=f4(e),n=$xe(e);return function(i){var a=n(i);return function(o){return r(a(o))}}}function Lxe(e){return(0,yyt.map)(e,cr.Functor)}function Nxe(e){return(0,vyt.ap)(e,cr.Apply)}function f4(e){var r=Mxe(e);return function(n){return function(i){return r(i,n)}}}function Mxe(e){return function(r,n){return e.chain(r,function(i){return cr.isLeft(i)?e.of(i):n(i.right)})}}function qxe(e){return function(r){return function(n){return e.chain(n,function(i){return cr.isLeft(i)?r():e.of(i)})}}}function jxe(e){var r=Bxe(e);return function(n,i){return function(a){return r(a,n,i)}}}function Bxe(e){return function(r,n,i){return e.map(r,cr.bimap(n,i))}}function Uxe(e){var r=Gxe(e);return function(n){return function(i){return r(i,n)}}}function Gxe(e){return function(r,n){return e.map(r,cr.mapLeft(n))}}function xyt(e,r){return function(n){return function(i){return e.chain(i,cr.match(function(a){return e.map(n(),cr.mapLeft(function(o){return r.concat(a,o)}))},l4(e)))}}}function wyt(e){return function(r,n){return function(i){return e.map(i,cr.match(r,n))}}}function Wxe(e){return function(r,n){return function(i){return e.chain(i,cr.match(r,n))}}}function Hxe(e){return function(r){return function(n){return e.chain(n,cr.match(r,e.of))}}}function p4(e){return function(r){return function(n){return e.chain(n,function(i){return cr.isLeft(i)?r(i.left):e.of(i)})}}}function _yt(e){var r=zxe(e);return function(n){return function(i){return r(i,n)}}}function zxe(e){var r=p4(e);return function(n,i){return(0,Ri.pipe)(n,r(function(a){return e.map(i(a),function(o){return cr.isLeft(o)?o:cr.left(a)})}))}}function Eyt(e){return function(r){return function(n){return e.chain(n,cr.match(function(i){return e.map(r(i),cr.left)},function(i){return e.of(cr.right(i))}))}}}function Vxe(e){return function(r){return e.map(r,cr.swap)}}function Syt(e){return function(r){return e.map(r,cr.toUnion)}}function Dyt(e){var r=Nxe(e),n=Lxe(e),i=f4(e),a=qxe(e),o=jxe(e),c=Uxe(e),u=Wxe(e),l=Hxe(e),f=p4(e);return{map:function(p,g){return(0,Ri.pipe)(p,n(g))},ap:function(p,g){return(0,Ri.pipe)(p,r(g))},of:l4(e),chain:function(p,g){return(0,Ri.pipe)(p,i(g))},alt:function(p,g){return(0,Ri.pipe)(p,a(g))},bimap:function(p,g,v){return(0,Ri.pipe)(p,o(g,v))},mapLeft:function(p,g){return(0,Ri.pipe)(p,c(g))},fold:function(p,g,v){return(0,Ri.pipe)(p,u(g,v))},getOrElse:function(p,g){return(0,Ri.pipe)(p,l(g))},orElse:function(p,g){return(0,Ri.pipe)(p,f(g))},swap:Vxe(e),rightM:Ixe(e),leftM:kxe(e),left:Oxe(e)}}});var ewe=S(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.filter=d4;rp.filterMap=h4;rp.partition=Qxe;rp.partitionMap=Zxe;rp.getFilterableComposition=Tyt;var Kxe=s4(),um=Nt(),Cyt=vo(),Xxe=n4(),Pyt=UM(),Jxe=j0();function d4(e,r){return function(n){return function(i){return e.map(i,function(a){return r.filter(a,n)})}}}function h4(e,r){return function(n){return function(i){return e.map(i,function(a){return r.filterMap(a,n)})}}}function Qxe(e,r){var n=d4(e,r);return function(i){var a=n((0,Pyt.not)(i)),o=n(i);return function(c){return(0,Jxe.separated)(a(c),o(c))}}}function Zxe(e,r){var n=h4(e,r);return function(i){return function(a){return(0,Jxe.separated)((0,um.pipe)(a,n(function(o){return(0,Xxe.getLeft)(i(o))})),(0,um.pipe)(a,n(function(o){return(0,Xxe.getRight)(i(o))})))}}}function Tyt(e,r){var n=(0,Cyt.getFunctorComposition)(e,r).map,i=(0,Kxe.compact)(e,r),a=(0,Kxe.separate)(e,r,r),o=d4(e,r),c=h4(e,r),u=Qxe(e,r),l=Zxe(e,r);return{map:n,compact:i,separate:a,filter:function(f,p){return(0,um.pipe)(f,o(p))},filterMap:function(f,p){return(0,um.pipe)(f,c(p))},partition:function(f,p){return(0,um.pipe)(f,u(p))},partitionMap:function(f,p){return(0,um.pipe)(f,l(p))}}}});var g4=S(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.fromIOK=Ayt;lm.chainIOK=Oyt;lm.chainFirstIOK=Iyt;lm.tapIO=twe;var Ryt=Zu(),m4=Nt();function Ayt(e){return function(r){return(0,m4.flow)(r,e.fromIO)}}function Oyt(e,r){return function(n){var i=(0,m4.flow)(n,e.fromIO);return function(a){return r.chain(a,i)}}}function Iyt(e,r){var n=twe(e,r);return function(i){return function(a){return n(a,i)}}}function twe(e,r){var n=(0,Ryt.tap)(r);return function(i,a){return n(i,(0,m4.flow)(a,e.fromIO))}}});var nwe=S(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.fromTaskK=Fyt;fm.chainTaskK=$yt;fm.chainFirstTaskK=Lyt;fm.tapTask=rwe;var kyt=Zu(),y4=Nt();function Fyt(e){return function(r){return(0,y4.flow)(r,e.fromTask)}}function $yt(e,r){return function(n){var i=(0,y4.flow)(n,e.fromTask);return function(a){return r.chain(a,i)}}}function Lyt(e,r){var n=rwe(e,r);return function(i){return function(a){return n(a,i)}}}function rwe(e,r){var n=(0,kyt.tap)(r);return function(i,a){return n(i,(0,y4.flow)(a,e.fromTask))}}});var x4=S(z=>{"use strict";var Nyt=z&&z.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),Myt=z&&z.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),iwe=z&&z.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Nyt(r,e,n);return Myt(r,e),r};Object.defineProperty(z,"__esModule",{value:!0});z.chainFirst=z.chain=z.sequenceSeqArray=z.traverseSeqArray=z.traverseSeqArrayWithIndex=z.sequenceArray=z.traverseArray=z.traverseArrayWithIndex=z.traverseReadonlyArrayWithIndexSeq=z.traverseReadonlyNonEmptyArrayWithIndexSeq=z.traverseReadonlyArrayWithIndex=z.traverseReadonlyNonEmptyArrayWithIndex=z.ApT=z.apS=z.bind=z.let=z.bindTo=z.Do=z.never=z.FromTask=z.chainFirstIOK=z.chainIOK=z.fromIOK=z.tapIO=z.tap=z.flatMapIO=z.FromIO=z.MonadTask=z.fromTask=z.MonadIO=z.Monad=z.Chain=z.ApplicativeSeq=z.ApplySeq=z.ApplicativePar=z.apSecond=z.apFirst=z.ApplyPar=z.Pointed=z.flap=z.asUnit=z.as=z.Functor=z.URI=z.flatten=z.flatMap=z.of=z.ap=z.map=z.fromIO=void 0;z.getMonoid=z.getSemigroup=z.taskSeq=z.task=void 0;z.delay=Byt;z.getRaceMonoid=Hyt;var qyt=M0(),bC=Jf(),swe=iwe(Zu()),awe=g4(),Aa=Nt(),K0=vo(),el=iwe(vc()),jyt=function(e){return function(){return Promise.resolve().then(e)}};z.fromIO=jyt;function Byt(e){return function(r){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(r).then(n)},e)})}}}var Oa=function(e,r){return(0,Aa.pipe)(e,(0,z.map)(r))},np=function(e,r){return(0,Aa.pipe)(e,(0,z.ap)(r))},b4=function(e,r){return(0,z.flatMap)(e,function(n){return(0,Aa.pipe)(r,(0,z.map)(n))})},Uyt=function(e){return function(r){return function(){return Promise.resolve().then(r).then(e)}}};z.map=Uyt;var Gyt=function(e){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(e)]).then(function(n){var i=n[0],a=n[1];return i(a)})}}};z.ap=Gyt;var Wyt=function(e){return function(){return Promise.resolve(e)}};z.of=Wyt;z.flatMap=(0,Aa.dual)(2,function(e,r){return function(){return Promise.resolve().then(e).then(function(n){return r(n)()})}});z.flatten=(0,z.flatMap)(Aa.identity);z.URI="Task";function Hyt(){return{concat:function(e,r){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(r)])}},empty:z.never}}z.Functor={URI:z.URI,map:Oa};z.as=(0,Aa.dual)(2,(0,K0.as)(z.Functor));z.asUnit=(0,K0.asUnit)(z.Functor);z.flap=(0,K0.flap)(z.Functor);z.Pointed={URI:z.URI,of:z.of};z.ApplyPar={URI:z.URI,map:Oa,ap:np};z.apFirst=(0,bC.apFirst)(z.ApplyPar);z.apSecond=(0,bC.apSecond)(z.ApplyPar);z.ApplicativePar={URI:z.URI,map:Oa,ap:np,of:z.of};z.ApplySeq={URI:z.URI,map:Oa,ap:b4};z.ApplicativeSeq={URI:z.URI,map:Oa,ap:b4,of:z.of};z.Chain={URI:z.URI,map:Oa,ap:np,chain:z.flatMap};z.Monad={URI:z.URI,map:Oa,of:z.of,ap:np,chain:z.flatMap};z.MonadIO={URI:z.URI,map:Oa,of:z.of,ap:np,chain:z.flatMap,fromIO:z.fromIO};z.fromTask=Aa.identity;z.MonadTask={URI:z.URI,map:Oa,of:z.of,ap:np,chain:z.flatMap,fromIO:z.fromIO,fromTask:z.fromTask};z.FromIO={URI:z.URI,fromIO:z.fromIO};var zyt={flatMap:z.flatMap},Vyt={fromIO:z.FromIO.fromIO};z.flatMapIO=el.flatMapIO(Vyt,zyt);z.tap=(0,Aa.dual)(2,swe.tap(z.Chain));z.tapIO=(0,Aa.dual)(2,(0,awe.tapIO)(z.FromIO,z.Chain));z.fromIOK=(0,awe.fromIOK)(z.FromIO);z.chainIOK=z.flatMapIO;z.chainFirstIOK=z.tapIO;z.FromTask={URI:z.URI,fromIO:z.fromIO,fromTask:z.fromTask};var Yyt=function(){return new Promise(function(e){})};z.never=Yyt;z.Do=(0,z.of)(el.emptyRecord);z.bindTo=(0,K0.bindTo)(z.Functor);var Kyt=(0,K0.let)(z.Functor);z.let=Kyt;z.bind=swe.bind(z.Chain);z.apS=(0,bC.apS)(z.ApplyPar);z.ApT=(0,z.of)(el.emptyReadonlyArray);var Xyt=function(e){return function(r){return function(){return Promise.all(r.map(function(n,i){return Promise.resolve().then(function(){return e(i,n)()})}))}}};z.traverseReadonlyNonEmptyArrayWithIndex=Xyt;var Jyt=function(e){var r=(0,z.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(n){return el.isNonEmpty(n)?r(n):z.ApT}};z.traverseReadonlyArrayWithIndex=Jyt;var Qyt=function(e){return function(r){return function(){return el.tail(r).reduce(function(n,i,a){return n.then(function(o){return Promise.resolve().then(e(a+1,i)).then(function(c){return o.push(c),o})})},Promise.resolve().then(e(0,el.head(r))).then(el.singleton))}}};z.traverseReadonlyNonEmptyArrayWithIndexSeq=Qyt;var Zyt=function(e){var r=(0,z.traverseReadonlyNonEmptyArrayWithIndexSeq)(e);return function(n){return el.isNonEmpty(n)?r(n):z.ApT}};z.traverseReadonlyArrayWithIndexSeq=Zyt;z.traverseArrayWithIndex=z.traverseReadonlyArrayWithIndex;var e0t=function(e){return(0,z.traverseReadonlyArrayWithIndex)(function(r,n){return e(n)})};z.traverseArray=e0t;z.sequenceArray=(0,z.traverseArray)(Aa.identity);z.traverseSeqArrayWithIndex=z.traverseReadonlyArrayWithIndexSeq;var t0t=function(e){return(0,z.traverseReadonlyArrayWithIndexSeq)(function(r,n){return e(n)})};z.traverseSeqArray=t0t;z.sequenceSeqArray=(0,z.traverseSeqArray)(Aa.identity);z.chain=z.flatMap;z.chainFirst=z.tap;z.task={URI:z.URI,map:Oa,of:z.of,ap:np,chain:z.flatMap,fromIO:z.fromIO,fromTask:z.fromTask};z.taskSeq={URI:z.URI,map:Oa,of:z.of,ap:b4,chain:z.flatMap,fromIO:z.fromIO,fromTask:z.fromTask};z.getSemigroup=(0,bC.getApplySemigroup)(z.ApplySeq);z.getMonoid=(0,qyt.getApplicativeMonoid)(z.ApplicativeSeq)});var E4=S(T=>{"use strict";var r0t=T&&T.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(r,n);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,i,a)}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),n0t=T&&T.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),X0=T&&T.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&r0t(r,e,n);return n0t(r,e),r},i0t=T&&T.__awaiter||function(e,r,n,i){function a(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(p){try{f(i.next(p))}catch(g){c(g)}}function l(p){try{f(i.throw(p))}catch(g){c(g)}}function f(p){p.done?o(p.value):a(p.value).then(u,l)}f((i=i.apply(e,r||[])).next())})},s0t=T&&T.__generator||function(e,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(p){return l([f,p])}}function l(f){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,f[0]&&(n=0)),n;)try{if(i=1,a&&(o=f[0]&2?a.return:f[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,f[1])).done)return o;switch(a=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]{"use strict";var{hasOwnProperty:T4}=Object.prototype,R4=typeof process<"u"&&process.platform==="win32"?`\r -`:` -`,A4=(e,r)=>{let n=[],i="";typeof r=="string"?r={section:r,whitespace:!1}:(r=r||Object.create(null),r.whitespace=r.whitespace===!0);let a=r.whitespace?" = ":"=";for(let o of Object.keys(e)){let c=e[o];if(c&&Array.isArray(c))for(let u of c)i+=hm(o+"[]")+a+hm(u)+` -`;else c&&typeof c=="object"?n.push(o):i+=hm(o)+a+hm(c)+R4}r.section&&i.length&&(i="["+hm(r.section)+"]"+R4+i);for(let o of n){let c=bwe(o).join("\\."),u=(r.section?r.section+".":"")+c,{whitespace:l}=r,f=A4(e[o],{section:u,whitespace:l});i.length&&f.length&&(i+=R4),i+=f}return i},bwe=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(r=>r.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),ywe=e=>{let r=Object.create(null),n=r,i=null,a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g);for(let u of o){if(!u||u.match(/^\s*[;#]/))continue;let l=u.match(a);if(!l)continue;if(l[1]!==void 0){if(i=_C(l[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let f=_C(l[2]),p=f.length>2&&f.slice(-2)==="[]",g=p?f.slice(0,-2):f;if(g==="__proto__")continue;let v=l[3]?_C(l[4]):!0,x=v==="true"||v==="false"||v==="null"?JSON.parse(v):v;p&&(T4.call(n,g)?Array.isArray(n[g])||(n[g]=[n[g]]):n[g]=[]),Array.isArray(n[g])?n[g].push(x):n[g]=x}let c=[];for(let u of Object.keys(r)){if(!T4.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=bwe(u),f=r,p=l.pop(),g=p.replace(/\\\./g,".");for(let v of l)v!=="__proto__"&&((!T4.call(f,v)||typeof f[v]!="object")&&(f[v]=Object.create(null)),f=f[v]);f===r&&g===p||(f[g]=r[u],c.push(u))}for(let u of c)delete r[u];return r},xwe=e=>e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'",hm=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&xwe(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#"),_C=(e,r)=>{if(e=(e||"").trim(),xwe(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{let n=!1,i="";for(let a=0,o=e.length;a{"use strict";var Qr=require("path"),O4=require("os"),EC=require("fs"),M0t=_we(),rb=process.platform==="win32",Ewe=e=>{try{return M0t.parse(EC.readFileSync(e,"utf8")).prefix}catch{}},q0t=()=>Object.keys(process.env).reduce((e,r)=>/^npm_config_prefix$/i.test(r)?process.env[r]:e,void 0),j0t=()=>{if(rb&&process.env.APPDATA)return Qr.join(process.env.APPDATA,"/npm/etc/npmrc");if(process.execPath.includes("/Cellar/node")){let e=process.execPath.slice(0,process.execPath.indexOf("/Cellar/node"));return Qr.join(e,"/lib/node_modules/npm/npmrc")}if(process.execPath.endsWith("/bin/node")){let e=Qr.dirname(Qr.dirname(process.execPath));return Qr.join(e,"/etc/npmrc")}},B0t=()=>{if(rb){let{APPDATA:e}=process.env;return e?Qr.join(e,"npm"):Qr.dirname(process.execPath)}return Qr.dirname(Qr.dirname(process.execPath))},U0t=()=>{let e=q0t();if(e)return e;let r=Ewe(Qr.join(O4.homedir(),".npmrc"));if(r)return r;if(process.env.PREFIX)return process.env.PREFIX;let n=Ewe(j0t());return n||B0t()},tb=Qr.resolve(U0t()),Swe=()=>{if(rb&&process.env.LOCALAPPDATA){let e=Qr.join(process.env.LOCALAPPDATA,"Yarn");if(EC.existsSync(e))return e}return!1},G0t=()=>{if(process.env.PREFIX)return process.env.PREFIX;let e=Swe();if(e)return e;let r=Qr.join(O4.homedir(),".config/yarn");if(EC.existsSync(r))return r;let n=Qr.join(O4.homedir(),".yarn-config");return EC.existsSync(n)?n:tb};yo.npm={};yo.npm.prefix=tb;yo.npm.packages=Qr.join(tb,rb?"node_modules":"lib/node_modules");yo.npm.binaries=rb?tb:Qr.join(tb,"bin");var Dwe=Qr.resolve(G0t());yo.yarn={};yo.yarn.prefix=Dwe;yo.yarn.packages=Qr.join(Dwe,Swe()?"Data/global/node_modules":"global/node_modules");yo.yarn.binaries=Qr.join(yo.yarn.packages,".bin")});var Pwe=S((F4,$4)=>{"use strict";(function(e){F4&&typeof F4=="object"&&typeof $4<"u"?$4.exports=e():typeof define=="function"&&define.amd?define([],e):typeof window<"u"?window.isWindows=e():typeof global<"u"?global.isWindows=e():typeof self<"u"?self.isWindows=e():this.isWindows=e()})(function(){"use strict";return function(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})});var kwe=S((fHt,DC)=>{"use strict";DC.exports=(e={})=>{let r;if(e.repoUrl)r=e.repoUrl;else if(e.user&&e.repo)r=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let n=new URL(`${r}/issues/new`),i=["body","title","labels","template","milestone","assignee","projects"];for(let a of i){let o=e[a];if(o!==void 0){if(a==="labels"||a==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${a}\` option should be an array`);o=o.join(",")}n.searchParams.set(a,o)}}return n.toString()};DC.exports.default=DC.exports});var U4=S((pHt,$we)=>{"use strict";var Fwe=require("fs"),B4;function V0t(){try{return Fwe.statSync("/.dockerenv"),!0}catch{return!1}}function Y0t(){try{return Fwe.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}$we.exports=()=>(B4===void 0&&(B4=V0t()||Y0t()),B4)});var Mwe=S((dHt,G4)=>{"use strict";var K0t=require("os"),X0t=require("fs"),Lwe=U4(),Nwe=()=>{if(process.platform!=="linux")return!1;if(K0t.release().toLowerCase().includes("microsoft"))return!Lwe();try{return X0t.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Lwe():!1}catch{return!1}};process.env.__IS_WSL_TEST__?G4.exports=Nwe:G4.exports=Nwe()});var PC=S((hHt,Uwe)=>{"use strict";var{promisify:jwe}=require("util"),J0t=require("path"),Q0t=require("child_process"),CC=require("fs"),W4=Mwe(),Z0t=U4(),Bwe=jwe(CC.access),ebt=jwe(CC.readFile),qwe=J0t.join(__dirname,"xdg-open"),tbt=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let n="/etc/wsl.conf",i=!1;try{await Bwe(n,CC.constants.F_OK),i=!0}catch{}if(!i)return e;let a=await ebt(n,{encoding:"utf8"}),o=/root\s*=\s*(.*)/g.exec(a);return o?(r=o[1].trim(),r=r.endsWith("/")?r:r+"/",r):e}})();Uwe.exports=async(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");r={wait:!1,background:!1,allowNonzeroExitCode:!1,...r};let n,{app:i}=r,a=[],o=[],c={};if(Array.isArray(i)&&(a=i.slice(1),i=i[0]),process.platform==="darwin")n="open",r.wait&&o.push("--wait-apps"),r.background&&o.push("--background"),i&&o.push("-a",i);else if(process.platform==="win32"||W4&&!Z0t()){let l=await tbt();n=W4?`${l}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,o.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),W4||(c.windowsVerbatimArguments=!0);let f=["Start"];r.wait&&f.push("-Wait"),i?(f.push(`"\`"${i}\`""`,"-ArgumentList"),a.unshift(e)):f.push(`"${e}"`),a.length>0&&(a=a.map(p=>`"\`"${p}\`""`),f.push(a.join(","))),e=Buffer.from(f.join(" "),"utf16le").toString("base64")}else{if(i)n=i;else{let l=!__dirname||__dirname==="/",f=!1;try{await Bwe(qwe,CC.constants.X_OK),f=!0}catch{}n=process.versions.electron||process.platform==="android"||l||!f?"xdg-open":qwe}a.length>0&&o.push(...a),r.wait||(c.stdio="ignore",c.detached=!0)}o.push(e),process.platform==="darwin"&&a.length>0&&o.push("--args",...a);let u=Q0t.spawn(n,o,c);return r.wait?new Promise((l,f)=>{u.once("error",f),u.once("close",p=>{if(r.allowNonzeroExitCode&&p>0){f(new Error(`Exited with code ${p}`));return}l(u)})}):(u.unref(),u)}});var t1e=S((Lzt,X4)=>{"use strict";var{stdin:cb}=process;X4.exports=async()=>{let e="";if(cb.isTTY)return e;cb.setEncoding("utf8");for await(let r of cb)e+=r;return e};X4.exports.buffer=async()=>{let e=[],r=0;if(cb.isTTY)return Buffer.concat([]);for await(let n of cb)e.push(n),r+=n.length;return Buffer.concat(e,r)}});var r1e=S((Nzt,abt)=>{abt.exports={name:"@prisma/engines-version",version:"5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek ",prisma:{enginesVersion:"605197351a3c8bdd595af2d2a9bc3025bca48ea2"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var n1e=S(RC=>{"use strict";Object.defineProperty(RC,"__esModule",{value:!0});RC.enginesVersion=void 0;RC.enginesVersion=r1e().prisma.enginesVersion});var s1e=S((qzt,i1e)=>{"use strict";var obt=kR(),cbt=MR();i1e.exports=obt(()=>{cbt(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var J4=S(gm=>{"use strict";var ubt=s1e(),AC=!1;gm.show=(e=process.stderr)=>{e.isTTY&&(AC=!1,e.write("\x1B[?25h"))};gm.hide=(e=process.stderr)=>{e.isTTY&&(ubt(),AC=!0,e.write("\x1B[?25l"))};gm.toggle=(e,r)=>{e!==void 0&&(AC=e),AC?gm.show(r):gm.hide(r)}});var c1e=S((Bzt,o1e)=>{"use strict";var ub=aC(),lbt=Yh(),fbt=L0(),Z4=new Set(["\x1B","\x9B"]),pbt=39,a1e=e=>`${Z4.values().next().value}[${e}m`,dbt=e=>e.split(" ").map(r=>ub(r)),Q4=(e,r,n)=>{let i=[...r],a=!1,o=ub(lbt(e[e.length-1]));for(let[c,u]of i.entries()){let l=ub(u);if(o+l<=n?e[e.length-1]+=u:(e.push(u),o=0),Z4.has(u))a=!0;else if(a&&u==="m"){a=!1;continue}a||(o+=l,o===n&&c0&&e.length>1&&(e[e.length-2]+=e.pop())},hbt=e=>{let r=e.split(" "),n=r.length;for(;n>0&&!(ub(r[n-1])>0);)n--;return n===r.length?e:r.slice(0,n).join(" ")+r.slice(n).join("")},mbt=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let i="",a="",o,c=dbt(e),u=[""];for(let[l,f]of e.split(" ").entries()){n.trim!==!1&&(u[u.length-1]=u[u.length-1].trimLeft());let p=ub(u[u.length-1]);if(l!==0&&(p>=r&&(n.wordWrap===!1||n.trim===!1)&&(u.push(""),p=0),(p>0||n.trim===!1)&&(u[u.length-1]+=" ",p++)),n.hard&&c[l]>r){let g=r-p,v=1+Math.floor((c[l]-g-1)/r);Math.floor((c[l]-1)/r)r&&p>0&&c[l]>0){if(n.wordWrap===!1&&pr&&n.wordWrap===!1){Q4(u,f,r);continue}u[u.length-1]+=f}n.trim!==!1&&(u=u.map(hbt)),i=u.join(` -`);for(let[l,f]of[...i].entries()){if(a+=f,Z4.has(f)){let g=parseFloat(/\d[^m]*/.exec(i.slice(l,l+4)));o=g===pbt?null:g}let p=fbt.codes.get(Number(o));o&&p&&(i[l+1]===` -`?a+=a1e(p):f===` -`&&(a+=a1e(o)))}return a};o1e.exports=(e,r,n)=>String(e).normalize().replace(/\r\n/g,` -`).split(` -`).map(i=>mbt(i,r,n)).join(` -`)});var d1e=S((Uzt,p1e)=>{"use strict";var gbt=rC(),vbt=kM(),u1e=L0(),f1e=["\x1B","\x9B"],OC=e=>`${f1e[0]}[${e}m`,l1e=(e,r,n)=>{let i=[];e=[...e];for(let a of e){let o=a;a.includes(";")&&(a=a.split(";")[0][0]+"0");let c=u1e.codes.get(Number.parseInt(a,10));if(c){let u=e.indexOf(c.toString());u===-1?i.push(OC(r?c:o)):e.splice(u,1)}else if(r){i.push(OC(0));break}else i.push(OC(o))}if(r&&(i=i.filter((a,o)=>i.indexOf(a)===o),n!==void 0)){let a=OC(u1e.codes.get(Number.parseInt(n,10)));i=i.reduce((o,c)=>c===a?[c,...o]:[...o,c],[])}return i.join("")};p1e.exports=(e,r,n)=>{let i=[...e],a=[],o=typeof n=="number"?n:i.length,c=!1,u,l=0,f="";for(let[p,g]of i.entries()){let v=!1;if(f1e.includes(g)){let x=/\d[^m]*/.exec(e.slice(p,p+18));u=x&&x.length>0?x[0]:void 0,lr&&l<=o)f+=g;else if(l===r&&!c&&u!==void 0)f=l1e(a);else if(l>=o){f+=l1e(a,!0,u);break}}return f}});var t6=S((Gzt,kC)=>{"use strict";var h1e=dR(),m1e=J4(),ybt=c1e(),bbt=d1e(),xbt=24,IC=e=>{let{columns:r}=e;return r||80},wbt=(e,r)=>{let n=e.rows||xbt,i=r.split(` -`),a=i.length-n;return a<=0?r:bbt(r,i.slice(0,a).join(` -`).length+1,r.length)},e6=(e,{showCursor:r=!1}={})=>{let n=0,i=IC(e),a="",o=(...c)=>{r||m1e.hide();let u=c.join(" ")+` -`;u=wbt(e,u);let l=IC(e);u===a&&i===l||(a=u,i=l,u=ybt(u,l,{trim:!1,hard:!0,wordWrap:!1}),e.write(h1e.eraseLines(n)+u),n=u.split(` -`).length)};return o.clear=()=>{e.write(h1e.eraseLines(n)),a="",i=IC(e),n=0},o.done=()=>{a="",i=IC(e),n=0,r||m1e.show()},o};kC.exports=e6(process.stdout);kC.exports.stderr=e6(process.stderr);kC.exports.create=e6});var q1e=S((xVt,M1e)=>{"use strict";var $bt=(e,r,n)=>{let i=e.indexOf(r);if(i===-1)return e;let a=r.length,o=0,c="";do c+=e.substr(o,i-o)+r+n,o=i+a,i=e.indexOf(r,o);while(i!==-1);return c+=e.substr(o),c},Lbt=(e,r,n,i)=>{let a=0,o="";do{let c=e[i-1]==="\r";o+=e.substr(a,(c?i-1:i)-a)+r+(c?`\r -`:` -`)+n,a=i+1,i=e.indexOf(` -`,a)}while(i!==-1);return o+=e.substr(a),o};M1e.exports={stringReplaceAll:$bt,stringEncaseCRLFWithFirstIndex:Lbt}});var W1e=S((wVt,G1e)=>{"use strict";var Nbt=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,j1e=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Mbt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qbt=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,jbt=new Map([["n",` -`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function U1e(e){let r=e[0]==="u",n=e[1]==="{";return r&&!n&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):r&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):jbt.get(e)||e}function Bbt(e,r){let n=[],i=r.trim().split(/\s*,\s*/g),a;for(let o of i){let c=Number(o);if(!Number.isNaN(c))n.push(c);else if(a=o.match(Mbt))n.push(a[2].replace(qbt,(u,l,f)=>l?U1e(l):f));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return n}function Ubt(e){j1e.lastIndex=0;let r=[],n;for(;(n=j1e.exec(e))!==null;){let i=n[1];if(n[2]){let a=Bbt(i,n[2]);r.push([i].concat(a))}else r.push([i])}return r}function B1e(e,r){let n={};for(let a of r)for(let o of a.styles)n[o[0]]=a.inverse?null:o.slice(1);let i=e;for(let[a,o]of Object.entries(n))if(Array.isArray(o)){if(!(a in i))throw new Error(`Unknown Chalk style: ${a}`);i=o.length>0?i[a](...o):i[a]}return i}G1e.exports=(e,r)=>{let n=[],i=[],a=[];if(r.replace(Nbt,(o,c,u,l,f,p)=>{if(c)a.push(U1e(c));else if(l){let g=a.join("");a=[],i.push(n.length===0?g:B1e(e,n)(g)),n.push({inverse:u,styles:Ubt(l)})}else if(f){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(B1e(e,n)(a.join(""))),a=[],n.pop()}else a.push(p)}),i.push(a.join("")),n.length>0){let o=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return i.join("")}});var f6=S((_Vt,X1e)=>{"use strict";var db=L0(),{stdout:o6,stderr:c6}=gR(),{stringReplaceAll:Gbt,stringEncaseCRLFWithFirstIndex:Wbt}=q1e(),{isArray:qC}=Array,z1e=["ansi","ansi","ansi256","ansi16m"],vm=Object.create(null),Hbt=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=o6?o6.level:0;e.level=r.level===void 0?n:r.level},u6=class{constructor(r){return V1e(r)}},V1e=e=>{let r={};return Hbt(r,e),r.template=(...n)=>K1e(r.template,...n),Object.setPrototypeOf(r,jC.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},r.template.Instance=u6,r.template};function jC(e){return V1e(e)}for(let[e,r]of Object.entries(db))vm[e]={get(){let n=BC(this,l6(r.open,r.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};vm.visible={get(){let e=BC(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Y1e=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Y1e)vm[e]={get(){let{level:r}=this;return function(...n){let i=l6(db.color[z1e[r]][e](...n),db.color.close,this._styler);return BC(this,i,this._isEmpty)}}};for(let e of Y1e){let r="bg"+e[0].toUpperCase()+e.slice(1);vm[r]={get(){let{level:n}=this;return function(...i){let a=l6(db.bgColor[z1e[n]][e](...i),db.bgColor.close,this._styler);return BC(this,a,this._isEmpty)}}}}var zbt=Object.defineProperties(()=>{},{...vm,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),l6=(e,r,n)=>{let i,a;return n===void 0?(i=e,a=r):(i=n.openAll+e,a=r+n.closeAll),{open:e,close:r,openAll:i,closeAll:a,parent:n}},BC=(e,r,n)=>{let i=(...a)=>qC(a[0])&&qC(a[0].raw)?H1e(i,K1e(i,...a)):H1e(i,a.length===1?""+a[0]:a.join(" "));return Object.setPrototypeOf(i,zbt),i._generator=e,i._styler=r,i._isEmpty=n,i},H1e=(e,r)=>{if(e.level<=0||!r)return e._isEmpty?"":r;let n=e._styler;if(n===void 0)return r;let{openAll:i,closeAll:a}=n;if(r.indexOf("\x1B")!==-1)for(;n!==void 0;)r=Gbt(r,n.close,n.open),n=n.parent;let o=r.indexOf(` -`);return o!==-1&&(r=Wbt(r,a,i,o)),i+r+a},a6,K1e=(e,...r)=>{let[n]=r;if(!qC(n)||!qC(n.raw))return r.join(" ");let i=r.slice(1),a=[n.raw[0]];for(let o=1;o{Vbt.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var e_e=S((SVt,Z1e)=>{"use strict";var GC=Object.assign({},J1e()),Q1e=Object.keys(GC);Object.defineProperty(GC,"random",{get(){let e=Math.floor(Math.random()*Q1e.length),r=Q1e[e];return GC[r]}});Z1e.exports=GC});var p6=S((DVt,t_e)=>{"use strict";t_e.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var n_e=S((CVt,r_e)=>{"use strict";var sl=f6(),Ybt=p6(),Kbt={info:sl.blue("\u2139"),success:sl.green("\u2714"),warning:sl.yellow("\u26A0"),error:sl.red("\u2716")},Xbt={info:sl.blue("i"),success:sl.green("\u221A"),warning:sl.yellow("\u203C"),error:sl.red("\xD7")};r_e.exports=Ybt()?Kbt:Xbt});var i_e=S((PVt,WC)=>{"use strict";var Jbt=function(){"use strict";function e(c,u,l,f){var p;typeof u=="object"&&(l=u.depth,f=u.prototype,p=u.filter,u=u.circular);var g=[],v=[],x=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof l>"u"&&(l=1/0);function E(D,P){if(D===null)return null;if(P==0)return D;var R,k;if(typeof D!="object")return D;if(e.__isArray(D))R=[];else if(e.__isRegExp(D))R=new RegExp(D.source,o(D)),D.lastIndex&&(R.lastIndex=D.lastIndex);else if(e.__isDate(D))R=new Date(D.getTime());else{if(x&&Buffer.isBuffer(D))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(D.length):R=new Buffer(D.length),D.copy(R),R;typeof f>"u"?(k=Object.getPrototypeOf(D),R=Object.create(k)):(R=Object.create(f),k=f)}if(u){var F=g.indexOf(D);if(F!=-1)return v[F];g.push(D),v.push(R)}for(var L in D){var U;k&&(U=Object.getOwnPropertyDescriptor(k,L)),!(U&&U.set==null)&&(R[L]=E(D[L],P-1))}return R}return E(c,l)}e.clonePrototype=function(u){if(u===null)return null;var l=function(){};return l.prototype=u,new l};function r(c){return Object.prototype.toString.call(c)}e.__objToStr=r;function n(c){return typeof c=="object"&&r(c)==="[object Date]"}e.__isDate=n;function i(c){return typeof c=="object"&&r(c)==="[object Array]"}e.__isArray=i;function a(c){return typeof c=="object"&&r(c)==="[object RegExp]"}e.__isRegExp=a;function o(c){var u="";return c.global&&(u+="g"),c.ignoreCase&&(u+="i"),c.multiline&&(u+="m"),u}return e.__getRegExpFlags=o,e}();typeof WC=="object"&&WC.exports&&(WC.exports=Jbt)});var a_e=S((TVt,s_e)=>{"use strict";var Qbt=i_e();s_e.exports=function(e,r){return e=e||{},Object.keys(r).forEach(function(n){typeof e[n]>"u"&&(e[n]=Qbt(r[n]))}),e}});var c_e=S((RVt,o_e)=>{"use strict";o_e.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var p_e=S((AVt,d6)=>{"use strict";var Zbt=a_e(),hb=c_e(),l_e={nul:0,control:0};d6.exports=function(r){return f_e(r,l_e)};d6.exports.config=function(e){return e=Zbt(e||{},l_e),function(n){return f_e(n,e)}};function f_e(e,r){if(typeof e!="string")return u_e(e,r);for(var n=0,i=0;i=127&&e<160?r.control:ext(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function ext(e){var r=0,n=hb.length-1,i;if(ehb[n][1])return!1;for(;n>=r;)if(i=Math.floor((r+n)/2),e>hb[i][1])r=i+1;else if(e{"use strict";d_e.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var v_e=S((IVt,g_e)=>{"use strict";var{Buffer:ka}=require("buffer"),m_e=Symbol.for("BufferList");function Zt(e){if(!(this instanceof Zt))return new Zt(e);Zt._init.call(this,e)}Zt._init=function(r){Object.defineProperty(this,m_e,{value:!0}),this._bufs=[],this.length=0,r&&this.append(r)};Zt.prototype._new=function(r){return new Zt(r)};Zt.prototype._offset=function(r){if(r===0)return[0,0];let n=0;for(let i=0;ithis.length||r<0)return;let n=this._offset(r);return this._bufs[n[0]][n[1]]};Zt.prototype.slice=function(r,n){return typeof r=="number"&&r<0&&(r+=this.length),typeof n=="number"&&n<0&&(n+=this.length),this.copy(null,0,r,n)};Zt.prototype.copy=function(r,n,i,a){if((typeof i!="number"||i<0)&&(i=0),(typeof a!="number"||a>this.length)&&(a=this.length),i>=this.length||a<=0)return r||ka.alloc(0);let o=!!r,c=this._offset(i),u=a-i,l=u,f=o&&n||0,p=c[1];if(i===0&&a===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ka.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(r,f,p),f+=v;else{this._bufs[g].copy(r,f,p,p+l),f+=v;break}l-=v,p&&(p=0)}return r.length>f?r.slice(0,f):r};Zt.prototype.shallowSlice=function(r,n){if(r=r||0,n=typeof n!="number"?this.length:n,r<0&&(r+=this.length),n<0&&(n+=this.length),r===n)return this._new();let i=this._offset(r),a=this._offset(n),o=this._bufs.slice(i[0],a[0]+1);return a[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,a[1]),i[1]!==0&&(o[0]=o[0].slice(i[1])),this._new(o)};Zt.prototype.toString=function(r,n,i){return this.slice(n,i).toString(r)};Zt.prototype.consume=function(r){if(r=Math.trunc(r),Number.isNaN(r)||r<=0)return this;for(;this._bufs.length;)if(r>=this._bufs[0].length)r-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(r),this.length-=r;break}return this};Zt.prototype.duplicate=function(){let r=this._new();for(let n=0;nthis.length?this.length:r;let i=this._offset(r),a=i[0],o=i[1];for(;a=e.length){let l=c.indexOf(e,o);if(l!==-1)return this._reverseOffset([a,l]);o=c.length-e.length+1}else{let l=this._reverseOffset([a,o]);if(this._match(l,e))return l;o++}o=0}return-1};Zt.prototype._match=function(e,r){if(this.length-e{"use strict";var h6=Nu().Duplex,txt=ei(),mb=v_e();function Hn(e){if(!(this instanceof Hn))return new Hn(e);if(typeof e=="function"){this._callback=e;let r=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",r)}),this.on("unpipe",function(i){i.removeListener("error",r)}),e=null}mb._init.call(this,e),h6.call(this)}txt(Hn,h6);Object.assign(Hn.prototype,mb.prototype);Hn.prototype._new=function(r){return new Hn(r)};Hn.prototype._write=function(r,n,i){this._appendBuffer(r),typeof i=="function"&&i()};Hn.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)};Hn.prototype.end=function(r){h6.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Hn.prototype._destroy=function(r,n){this._bufs.length=0,this.length=0,n(r)};Hn.prototype._isBufferList=function(r){return r instanceof Hn||r instanceof mb||Hn.isBufferList(r)};Hn.isBufferList=mb.isBufferList;HC.exports=Hn;HC.exports.BufferListStream=Hn;HC.exports.BufferList=mb});var x_e=S((FVt,y6)=>{"use strict";var rxt=require("readline"),nxt=f6(),b_e=J4(),zC=e_e(),VC=n_e(),ixt=Yh(),sxt=p_e(),axt=h_e(),oxt=p6(),{BufferListStream:cxt}=y_e(),m6=Symbol("text"),g6=Symbol("prefixText"),uxt=3,v6=class{constructor(){this.requests=0,this.mutedStream=new cxt,this.mutedStream.pipe(process.stdout);let r=this;this.ourEmit=function(n,i,...a){let{stdin:o}=process;if(r.requests>0||o.emit===r.ourEmit){if(n==="keypress")return;n==="data"&&i.includes(uxt)&&process.emit("SIGINT"),Reflect.apply(r.oldEmit,this,[n,i,...a])}else Reflect.apply(process.stdin.emit,this,[n,i,...a])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=rxt.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},YC,KC=class{constructor(r){YC||(YC=new v6),typeof r=="string"&&(r={text:r}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...r},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:axt({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(r=0){if(!(r>=0&&Number.isInteger(r)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=r}_updateInterval(r){r!==void 0&&(this.interval=r)}get spinner(){return this._spinner}set spinner(r){if(this.frameIndex=0,typeof r=="object"){if(r.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=r}else if(!oxt())this._spinner=zC.line;else if(r===void 0)this._spinner=zC.dots;else if(r!=="default"&&zC[r])this._spinner=zC[r];else throw new Error(`There is no built-in spinner named '${r}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[m6]}set text(r){this[m6]=r,this.updateLineCount()}get prefixText(){return this[g6]}set prefixText(r){this[g6]=r,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(r=this[g6],n=" "){return typeof r=="string"?r+n:typeof r=="function"?r()+n:""}updateLineCount(){let r=this.stream.columns||80,n=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of ixt(n+"--"+this[m6]).split(` -`))this.lineCount+=Math.max(1,Math.ceil(sxt(i)/r))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(r){if(typeof r!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=r}get isSilent(){return this._isSilent}set isSilent(r){if(typeof r!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=r}frame(){let{frames:r}=this.spinner,n=r[this.frameIndex];this.color&&(n=nxt[this.color](n)),this.frameIndex=++this.frameIndex%r.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",a=typeof this.text=="string"?" "+this.text:"";return i+n+a}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let r=0;r0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(r){return r&&(this.text=r),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&b_e.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,YC.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text} -`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&b_e.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(YC.stop(),this.isDiscardingStdin=!1),this):this}succeed(r){return this.stopAndPersist({symbol:VC.success,text:r})}fail(r){return this.stopAndPersist({symbol:VC.error,text:r})}warn(r){return this.stopAndPersist({symbol:VC.warning,text:r})}info(r){return this.stopAndPersist({symbol:VC.info,text:r})}stopAndPersist(r={}){if(this.isSilent)return this;let n=r.prefixText||this.prefixText,i=r.text||this.text,a=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(n," ")}${r.symbol||" "}${a} -`),this}},lxt=function(e){return new KC(e)};y6.exports=lxt;y6.exports.promise=(e,r)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let n=new KC(r);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n}});var D_e=S((uYt,x6)=>{"use strict";var pxt=require("path"),dxt=require("fs"),S_e=(e=process.cwd())=>dxt.existsSync(pxt.resolve(e,"yarn.lock"));x6.exports=S_e;x6.exports.default=S_e});var P_e=S((lYt,w6)=>{"use strict";var C_e=require("fs");w6.exports=e=>new Promise(r=>{C_e.access(e,n=>{r(!n)})});w6.exports.sync=e=>{try{return C_e.accessSync(e),!0}catch{return!1}}});var R_e=S((fYt,_6)=>{"use strict";var T_e=(e,...r)=>new Promise(n=>{n(e(...r))});_6.exports=T_e;_6.exports.default=T_e});var O_e=S((pYt,E6)=>{"use strict";var hxt=R_e(),A_e=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let r=[],n=0,i=()=>{n--,r.length>0&&r.shift()()},a=(u,l,...f)=>{n++;let p=hxt(u,...f);l(p),p.then(i,i)},o=(u,l,...f)=>{nnew Promise(f=>o(u,f,...l));return Object.defineProperties(c,{activeCount:{get:()=>n},pendingCount:{get:()=>r.length},clearQueue:{value:()=>{r.length=0}}}),c};E6.exports=A_e;E6.exports.default=A_e});var F_e=S((dYt,k_e)=>{"use strict";var I_e=O_e(),XC=class extends Error{constructor(r){super(),this.value=r}},mxt=(e,r)=>Promise.resolve(e).then(r),gxt=e=>Promise.all(e).then(r=>r[1]===!0&&Promise.reject(new XC(r[0])));k_e.exports=(e,r,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);let i=I_e(n.concurrency),a=[...e].map(c=>[c,i(mxt,c,r)]),o=I_e(n.preserveOrder?1:1/0);return Promise.all(a.map(c=>o(gxt,c))).then(()=>{}).catch(c=>c instanceof XC?c.value:Promise.reject(c))}});var N_e=S((hYt,S6)=>{"use strict";var $_e=require("path"),L_e=P_e(),vxt=F_e();S6.exports=(e,r)=>(r=Object.assign({cwd:process.cwd()},r),vxt(e,n=>L_e($_e.resolve(r.cwd,n)),r));S6.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(let n of e)if(L_e.sync($_e.resolve(r.cwd,n)))return n}});var q_e=S((mYt,D6)=>{"use strict";var al=require("path"),M_e=N_e();D6.exports=(e,r={})=>{let n=al.resolve(r.cwd||""),{root:i}=al.parse(n),a=[].concat(e);return new Promise(o=>{(function c(u){M_e(a,{cwd:u}).then(l=>{l?o(al.join(u,l)):u===i?o(null):c(al.dirname(u))})})(n)})};D6.exports.sync=(e,r={})=>{let n=al.resolve(r.cwd||""),{root:i}=al.parse(n),a=[].concat(e);for(;;){let o=M_e.sync(a,{cwd:n});if(o)return al.join(n,o);if(n===i)return null;n=al.dirname(n)}}});var P6=S((gYt,C6)=>{"use strict";var j_e=q_e();C6.exports=async({cwd:e}={})=>j_e("package.json",{cwd:e});C6.exports.sync=({cwd:e}={})=>j_e.sync("package.json",{cwd:e})});var J_e=S((zYt,X_e)=>{"use strict";var _xt=1/0,Ext="[object Symbol]",Sxt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dxt="\\u0300-\\u036f\\ufe20-\\ufe23",Cxt="\\u20d0-\\u20f0",Pxt="["+Dxt+Cxt+"]",Txt=RegExp(Pxt,"g"),Rxt={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Axt=typeof global=="object"&&global&&global.Object===Object&&global,Oxt=typeof self=="object"&&self&&self.Object===Object&&self,Ixt=Axt||Oxt||Function("return this")();function kxt(e){return function(r){return e?.[r]}}var Fxt=kxt(Rxt),$xt=Object.prototype,Lxt=$xt.toString,V_e=Ixt.Symbol,Y_e=V_e?V_e.prototype:void 0,K_e=Y_e?Y_e.toString:void 0;function Nxt(e){if(typeof e=="string")return e;if(qxt(e))return K_e?K_e.call(e):"";var r=e+"";return r=="0"&&1/e==-_xt?"-0":r}function Mxt(e){return!!e&&typeof e=="object"}function qxt(e){return typeof e=="symbol"||Mxt(e)&&Lxt.call(e)==Ext}function jxt(e){return e==null?"":Nxt(e)}function Bxt(e){return e=jxt(e),e&&e.replace(Sxt,Fxt).replace(Txt,"")}X_e.exports=Bxt});var Z_e=S((VYt,Q_e)=>{"use strict";var Uxt=/[|\\{}()[\]^$+*?.-]/g;Q_e.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Uxt,"\\$&")}});var tEe=S((YYt,eEe)=>{"use strict";eEe.exports=[["\xDF","ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u0415","E"],["\u0435","e"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u0419","J"],["\u0439","j"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","H"],["\u0445","h"],["\u0426","Cz"],["\u0446","cz"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Shh"],["\u0449","shh"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0401","Yo"],["\u0451","yo"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"]]});var nEe=S((KYt,rEe)=>{"use strict";var Gxt=J_e(),Wxt=Z_e(),Hxt=tEe(),zxt=(e,r)=>{for(let[n,i]of r)e=e.replace(new RegExp(Wxt(n),"g"),i);return e};rEe.exports=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={customReplacements:[],...r};let n=new Map([...Hxt,...r.customReplacements]);return e=e.normalize(),e=zxt(e,n),e=Gxt(e),e}});var sEe=S((XYt,iEe)=>{"use strict";iEe.exports=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]]});var oEe=S((JYt,A6)=>{"use strict";var Vxt=Gge(),Yxt=nEe(),Kxt=sEe(),Xxt=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1 $2"),Jxt=(e,r)=>{let n=Vxt(r);return e.replace(new RegExp(`${n}{2,}`,"g"),r).replace(new RegExp(`^${n}|${n}$`,"g"),"")},aEe=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,...r};let n=r.preserveLeadingUnderscore&&e.startsWith("_"),i=new Map([...Kxt,...r.customReplacements]);e=Yxt(e,{customReplacements:i}),r.decamelize&&(e=Xxt(e));let a=/[^a-zA-Z\d]+/g;return r.lowercase&&(e=e.toLowerCase(),a=/[^a-z\d]+/g),e=e.replace(a,r.separator),e=e.replace(/\\/g,""),r.separator&&(e=Jxt(e,r.separator)),n&&(e=`_${e}`),e},Qxt=()=>{let e=new Map,r=(n,i)=>{if(n=aEe(n,i),!n)return"";let a=n.toLowerCase(),o=e.get(a.replace(/(?:-\d+?)+?$/,""))||0,c=e.get(a);e.set(a,typeof c=="number"?c+1:1);let u=e.get(a)||2;return(u>=2||o>2)&&(n=`${n}-${u}`),n};return r.reset=()=>{e.clear()},r};A6.exports=aEe;A6.exports.counter=Qxt});var Cb=S((_Xt,awt)=>{awt.exports={version:"5.22.0",name:"prisma",description:"Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",keywords:["CLI","ORM","Prisma","Prisma CLI","prisma2","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB"],main:"build/index.js",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/cli"},homepage:"https://www.prisma.io",author:"Tim Suchanek ",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",engines:{node:">=16.13"},prisma:{prismaCommit:"718358aa37975c18e5ea62f5b659fb47630b7609"},files:["README.md","build","install","runtime/*.js","runtime/*.d.ts","runtime/utils","runtime/dist","runtime/llhttp","prisma-client","preinstall","scripts/preinstall-entry.js"],pkg:{assets:["build/**/*","runtime/**/*","prisma-client/**/*","node_modules/@prisma/engines/**/*","node_modules/@prisma/engines/*"]},bin:{prisma:"build/index.js"},devDependencies:{"@prisma/client":"workspace:*","@prisma/debug":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/migrate":"workspace:*","@prisma/mini-proxy":"0.9.5","@prisma/studio":"0.503.0","@prisma/studio-server":"0.503.0","@swc/core":"1.6.13","@swc/jest":"0.2.36","@types/debug":"4.1.12","@types/fs-extra":"9.0.13","@types/jest":"29.5.12","@types/node":"18.19.31","@types/rimraf":"3.0.2","async-listen":"3.0.1","checkpoint-client":"1.1.33",chokidar:"3.6.0",debug:"4.3.6",dotenv:"16.0.3",esbuild:"0.23.0",execa:"5.1.1","fast-glob":"3.3.2","fs-extra":"11.1.1","fs-jetpack":"5.1.0","get-port":"5.1.1","global-dirs":"4.0.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","line-replace":"2.0.1","log-update":"4.0.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","pkg-up":"3.1.0","resolve-pkg":"2.0.0",rimraf:"3.0.2","strip-ansi":"6.0.1","ts-pattern":"5.2.0",typescript:"5.4.5","xdg-app-paths":"8.3.0",zx:"7.2.3"},scripts:{prisma:"tsx src/bin.ts",platform:"tsx src/bin.ts platform --early-access",pm:"tsx src/bin.ts platform --early-access",dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts","test:platform":"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts src/platform",tsc:"tsc -d -p tsconfig.build.json",preinstall:"node scripts/preinstall-entry.js",prepublishOnly:"pnpm run build"},dependencies:{"@prisma/engines":"workspace:*"},optionalDependencies:{fsevents:"2.3.3"},sideEffects:!1}});var _Ee=S((UXt,q6)=>{"use strict";var bEe=require("path"),xEe=require("module"),owt=require("fs"),wEe=(e,r,n)=>{if(typeof e!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof r!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof r}\``);try{e=owt.realpathSync(e)}catch(o){if(o.code==="ENOENT")e=bEe.resolve(e);else{if(n)return;throw o}}let i=bEe.join(e,"noop.js"),a=()=>xEe._resolveFilename(r,{id:i,filename:i,paths:xEe._nodeModulePaths(e)});if(n)try{return a()}catch{return}return a()};q6.exports=(e,r)=>wEe(e,r);q6.exports.silent=(e,r)=>wEe(e,r,!0)});var SEe=S((GXt,EEe)=>{"use strict";var j6=require("path"),cwt=_Ee();EEe.exports=(e,r={})=>{let n=e.replace(/\\/g,"/").split("/"),i="";n.length>0&&n[0][0]==="@"&&(i+=n.shift()+"/"),i+=n.shift();let a=j6.join(i,"package.json"),o=cwt.silent(r.cwd||process.cwd(),a);if(o)return j6.join(j6.dirname(o),n.join("/"))}});var FEe=S((ZXt,kEe)=>{"use strict";var Tb=require("fs"),{Readable:fwt}=require("stream"),Pb=require("path"),{promisify:cP}=require("util"),W6=w1(),pwt=cP(Tb.readdir),dwt=cP(Tb.stat),PEe=cP(Tb.lstat),hwt=cP(Tb.realpath),mwt="!",OEe="READDIRP_RECURSIVE_ERROR",gwt=new Set(["ENOENT","EPERM","EACCES","ELOOP",OEe]),H6="files",IEe="directories",aP="files_directories",sP="all",TEe=[H6,IEe,aP,sP],vwt=e=>gwt.has(e.code),[REe,ywt]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),bwt=process.platform==="win32"&&(REe>10||REe===10&&ywt>=5),AEe=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let r=W6(e.trim());return n=>r(n.basename)}if(Array.isArray(e)){let r=[],n=[];for(let i of e){let a=i.trim();a.charAt(0)===mwt?n.push(W6(a.slice(1))):r.push(W6(a))}return n.length>0?r.length>0?i=>r.some(a=>a(i.basename))&&!n.some(a=>a(i.basename)):i=>!n.some(a=>a(i.basename)):i=>r.some(a=>a(i.basename))}}},oP=class e extends fwt{static get defaultOptions(){return{root:".",fileFilter:r=>!0,directoryFilter:r=>!0,type:H6,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(r={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:r.highWaterMark||4096});let n={...e.defaultOptions,...r},{root:i,type:a}=n;this._fileFilter=AEe(n.fileFilter),this._directoryFilter=AEe(n.directoryFilter);let o=n.lstat?PEe:dwt;bwt?this._stat=c=>o(c,{bigint:!0}):this._stat=o,this._maxDepth=n.depth,this._wantsDir=[IEe,aP,sP].includes(a),this._wantsFile=[H6,aP,sP].includes(a),this._wantsEverything=a===sP,this._root=Pb.resolve(i),this._isDirent="Dirent"in Tb&&!n.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(r){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&r>0;){let{path:n,depth:i,files:a=[]}=this.parent||{};if(a.length>0){let o=a.splice(0,r).map(c=>this._formatEntry(c,n));for(let c of await Promise.all(o)){if(this.destroyed)return;let u=await this._getEntryType(c);u==="directory"&&this._directoryFilter(c)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(c.fullPath,i+1)),this._wantsDir&&(this.push(c),r--)):(u==="file"||this._includeAsFile(c))&&this._fileFilter(c)&&this._wantsFile&&(this.push(c),r--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(n){this.destroy(n)}finally{this.reading=!1}}}async _exploreDir(r,n){let i;try{i=await pwt(r,this._rdOptions)}catch(a){this._onError(a)}return{files:i,depth:n,path:r}}async _formatEntry(r,n){let i;try{let a=this._isDirent?r.name:r,o=Pb.resolve(Pb.join(n,a));i={path:Pb.relative(this._root,o),fullPath:o,basename:a},i[this._statsProp]=this._isDirent?r:await this._stat(o)}catch(a){this._onError(a)}return i}_onError(r){vwt(r)&&!this.destroyed?this.emit("warn",r):this.destroy(r)}async _getEntryType(r){let n=r&&r[this._statsProp];if(n){if(n.isFile())return"file";if(n.isDirectory())return"directory";if(n&&n.isSymbolicLink()){let i=r.fullPath;try{let a=await hwt(i),o=await PEe(a);if(o.isFile())return"file";if(o.isDirectory()){let c=a.length;if(i.startsWith(a)&&i.substr(c,1)===Pb.sep){let u=new Error(`Circular symlink detected: "${i}" points to "${a}"`);return u.code=OEe,this._onError(u)}return"directory"}}catch(a){this._onError(a)}}}}_includeAsFile(r){let n=r&&r[this._statsProp];return n&&this._wantsEverything&&!n.isDirectory()}},Fm=(e,r={})=>{let n=r.entryType||r.type;if(n==="both"&&(n=aP),n&&(r.type=n),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(n&&!TEe.includes(n))throw new Error(`readdirp: Invalid type passed. Use one of ${TEe.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return r.root=e,new oP(r)},xwt=(e,r={})=>new Promise((n,i)=>{let a=[];Fm(e,r).on("data",o=>a.push(o)).on("end",()=>n(a)).on("error",o=>i(o))});Fm.promise=xwt;Fm.ReaddirpStream=oP;Fm.default=Fm;kEe.exports=Fm});var jEe=S((MEe,qEe)=>{"use strict";Object.defineProperty(MEe,"__esModule",{value:!0});var NEe=w1(),wwt=Gy(),$Ee="!",_wt={returnIndex:!1},Ewt=e=>Array.isArray(e)?e:[e],Swt=(e,r)=>{if(typeof e=="function")return e;if(typeof e=="string"){let n=NEe(e,r);return i=>e===i||n(i)}return e instanceof RegExp?n=>e.test(n):n=>!1},LEe=(e,r,n,i)=>{let a=Array.isArray(n),o=a?n[0]:n;if(!a&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let c=wwt(o,!1);for(let l=0;l{if(e==null)throw new TypeError("anymatch: specify first argument");let i=typeof n=="boolean"?{returnIndex:n}:n,a=i.returnIndex||!1,o=Ewt(e),c=o.filter(l=>typeof l=="string"&&l.charAt(0)===$Ee).map(l=>l.slice(1)).map(l=>NEe(l,i)),u=o.filter(l=>typeof l!="string"||typeof l=="string"&&l.charAt(0)!==$Ee).map(l=>Swt(l,i));return r==null?(l,f=!1)=>LEe(u,c,l,typeof f=="boolean"?f:!1):LEe(u,c,r,a)};z6.default=z6;qEe.exports=z6});var BEe=S((eJt,Dwt)=>{Dwt.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var GEe=S((tJt,UEe)=>{"use strict";UEe.exports=BEe()});var HEe=S((rJt,WEe)=>{"use strict";var Cwt=require("path"),Pwt=GEe(),Twt=new Set(Pwt);WEe.exports=e=>Twt.has(Cwt.extname(e).slice(1).toLowerCase())});var uP=S(Pe=>{"use strict";var{sep:Rwt}=require("path"),{platform:V6}=process,Awt=require("os");Pe.EV_ALL="all";Pe.EV_READY="ready";Pe.EV_ADD="add";Pe.EV_CHANGE="change";Pe.EV_ADD_DIR="addDir";Pe.EV_UNLINK="unlink";Pe.EV_UNLINK_DIR="unlinkDir";Pe.EV_RAW="raw";Pe.EV_ERROR="error";Pe.STR_DATA="data";Pe.STR_END="end";Pe.STR_CLOSE="close";Pe.FSEVENT_CREATED="created";Pe.FSEVENT_MODIFIED="modified";Pe.FSEVENT_DELETED="deleted";Pe.FSEVENT_MOVED="moved";Pe.FSEVENT_CLONED="cloned";Pe.FSEVENT_UNKNOWN="unknown";Pe.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;Pe.FSEVENT_TYPE_FILE="file";Pe.FSEVENT_TYPE_DIRECTORY="directory";Pe.FSEVENT_TYPE_SYMLINK="symlink";Pe.KEY_LISTENERS="listeners";Pe.KEY_ERR="errHandlers";Pe.KEY_RAW="rawEmitters";Pe.HANDLER_KEYS=[Pe.KEY_LISTENERS,Pe.KEY_ERR,Pe.KEY_RAW];Pe.DOT_SLASH=`.${Rwt}`;Pe.BACK_SLASH_RE=/\\/g;Pe.DOUBLE_SLASH_RE=/\/\//;Pe.SLASH_OR_BACK_SLASH_RE=/[/\\]/;Pe.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;Pe.REPLACER_RE=/^\.[/\\]/;Pe.SLASH="/";Pe.SLASH_SLASH="//";Pe.BRACE_START="{";Pe.BANG="!";Pe.ONE_DOT=".";Pe.TWO_DOTS="..";Pe.STAR="*";Pe.GLOBSTAR="**";Pe.ROOT_GLOBSTAR="/**/*";Pe.SLASH_GLOBSTAR="/**";Pe.DIR_SUFFIX="Dir";Pe.ANYMATCH_OPTS={dot:!0};Pe.STRING_TYPE="string";Pe.FUNCTION_TYPE="function";Pe.EMPTY_STR="";Pe.EMPTY_FN=()=>{};Pe.IDENTITY_FN=e=>e;Pe.isWindows=V6==="win32";Pe.isMacos=V6==="darwin";Pe.isLinux=V6==="linux";Pe.isIBMi=Awt.type()==="OS400"});var JEe=S((iJt,XEe)=>{"use strict";var _c=require("fs"),yn=require("path"),{promisify:Ib}=require("util"),Owt=HEe(),{isWindows:Iwt,isLinux:kwt,EMPTY_FN:Fwt,EMPTY_STR:$wt,KEY_LISTENERS:$m,KEY_ERR:Y6,KEY_RAW:Rb,HANDLER_KEYS:Lwt,EV_CHANGE:fP,EV_ADD:lP,EV_ADD_DIR:Nwt,EV_ERROR:VEe,STR_DATA:Mwt,STR_END:qwt,BRACE_START:jwt,STAR:Bwt}=uP(),Uwt="watch",Gwt=Ib(_c.open),YEe=Ib(_c.stat),Wwt=Ib(_c.lstat),Hwt=Ib(_c.close),K6=Ib(_c.realpath),zwt={lstat:Wwt,stat:YEe},J6=(e,r)=>{e instanceof Set?e.forEach(r):r(e)},Ab=(e,r,n)=>{let i=e[r];i instanceof Set||(e[r]=i=new Set([i])),i.add(n)},Vwt=e=>r=>{let n=e[r];n instanceof Set?n.clear():delete e[r]},Ob=(e,r,n)=>{let i=e[r];i instanceof Set?i.delete(n):i===n&&delete e[r]},KEe=e=>e instanceof Set?e.size===0:!e,pP=new Map;function zEe(e,r,n,i,a){let o=(c,u)=>{n(e),a(c,u,{watchedPath:e}),u&&e!==u&&dP(yn.resolve(e,u),$m,yn.join(e,u))};try{return _c.watch(e,r,o)}catch(c){i(c)}}var dP=(e,r,n,i,a)=>{let o=pP.get(e);o&&J6(o[r],c=>{c(n,i,a)})},Ywt=(e,r,n,i)=>{let{listener:a,errHandler:o,rawEmitter:c}=i,u=pP.get(r),l;if(!n.persistent)return l=zEe(e,n,a,o,c),l.close.bind(l);if(u)Ab(u,$m,a),Ab(u,Y6,o),Ab(u,Rb,c);else{if(l=zEe(e,n,dP.bind(null,r,$m),o,dP.bind(null,r,Rb)),!l)return;l.on(VEe,async f=>{let p=dP.bind(null,r,Y6);if(u.watcherUnusable=!0,Iwt&&f.code==="EPERM")try{let g=await Gwt(e,"r");await Hwt(g),p(f)}catch{}else p(f)}),u={listeners:a,errHandlers:o,rawEmitters:c,watcher:l},pP.set(r,u)}return()=>{Ob(u,$m,a),Ob(u,Y6,o),Ob(u,Rb,c),KEe(u.listeners)&&(u.watcher.close(),pP.delete(r),Lwt.forEach(Vwt(u)),u.watcher=void 0,Object.freeze(u))}},X6=new Map,Kwt=(e,r,n,i)=>{let{listener:a,rawEmitter:o}=i,c=X6.get(r),u=new Set,l=new Set,f=c&&c.options;return f&&(f.persistentn.interval)&&(u=c.listeners,l=c.rawEmitters,_c.unwatchFile(r),c=void 0),c?(Ab(c,$m,a),Ab(c,Rb,o)):(c={listeners:a,rawEmitters:o,options:n,watcher:_c.watchFile(r,n,(p,g)=>{J6(c.rawEmitters,x=>{x(fP,r,{curr:p,prev:g})});let v=p.mtimeMs;(p.size!==g.size||v>g.mtimeMs||v===0)&&J6(c.listeners,x=>x(e,p))})},X6.set(r,c)),()=>{Ob(c,$m,a),Ob(c,Rb,o),KEe(c.listeners)&&(X6.delete(r),_c.unwatchFile(r),c.options=c.watcher=void 0,Object.freeze(c))}},Q6=class{constructor(r){this.fsw=r,this._boundHandleError=n=>r._handleError(n)}_watchWithNodeFs(r,n){let i=this.fsw.options,a=yn.dirname(r),o=yn.basename(r);this.fsw._getWatchedDir(a).add(o);let u=yn.resolve(r),l={persistent:i.persistent};n||(n=Fwt);let f;return i.usePolling?(l.interval=i.enableBinaryInterval&&Owt(o)?i.binaryInterval:i.interval,f=Kwt(r,u,l,{listener:n,rawEmitter:this.fsw._emitRaw})):f=Ywt(r,u,l,{listener:n,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),f}_handleFile(r,n,i){if(this.fsw.closed)return;let a=yn.dirname(r),o=yn.basename(r),c=this.fsw._getWatchedDir(a),u=n;if(c.has(o))return;let l=async(p,g)=>{if(this.fsw._throttle(Uwt,r,5)){if(!g||g.mtimeMs===0)try{let v=await YEe(r);if(this.fsw.closed)return;let x=v.atimeMs,E=v.mtimeMs;(!x||x<=E||E!==u.mtimeMs)&&this.fsw._emit(fP,r,v),kwt&&u.ino!==v.ino?(this.fsw._closeFile(p),u=v,this.fsw._addPathCloser(p,this._watchWithNodeFs(r,l))):u=v}catch{this.fsw._remove(a,o)}else if(c.has(o)){let v=g.atimeMs,x=g.mtimeMs;(!v||v<=x||x!==u.mtimeMs)&&this.fsw._emit(fP,r,g),u=g}}},f=this._watchWithNodeFs(r,l);if(!(i&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(r)){if(!this.fsw._throttle(lP,r,0))return;this.fsw._emit(lP,r,n)}return f}async _handleSymlink(r,n,i,a){if(this.fsw.closed)return;let o=r.fullPath,c=this.fsw._getWatchedDir(n);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let u;try{u=await K6(i)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(c.has(a)?this.fsw._symlinkPaths.get(o)!==u&&(this.fsw._symlinkPaths.set(o,u),this.fsw._emit(fP,i,r.stats)):(c.add(a),this.fsw._symlinkPaths.set(o,u),this.fsw._emit(lP,i,r.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(r,n,i,a,o,c,u){if(r=yn.join(r,$wt),!i.hasGlob&&(u=this.fsw._throttle("readdir",r,1e3),!u))return;let l=this.fsw._getWatchedDir(i.path),f=new Set,p=this.fsw._readdirp(r,{fileFilter:g=>i.filterPath(g),directoryFilter:g=>i.filterDir(g),depth:0}).on(Mwt,async g=>{if(this.fsw.closed){p=void 0;return}let v=g.path,x=yn.join(r,v);if(f.add(v),!(g.stats.isSymbolicLink()&&await this._handleSymlink(g,r,x,v))){if(this.fsw.closed){p=void 0;return}(v===a||!a&&!l.has(v))&&(this.fsw._incrReadyCount(),x=yn.join(o,yn.relative(o,x)),this._addToNodeFs(x,n,i,c+1))}}).on(VEe,this._boundHandleError);return new Promise(g=>p.once(qwt,()=>{if(this.fsw.closed){p=void 0;return}let v=u?u.clear():!1;g(),l.getChildren().filter(x=>x!==r&&!f.has(x)&&(!i.hasGlob||i.filterPath({fullPath:yn.resolve(r,x)}))).forEach(x=>{this.fsw._remove(r,x)}),p=void 0,v&&this._handleRead(r,!1,i,a,o,c,u)}))}async _handleDir(r,n,i,a,o,c,u){let l=this.fsw._getWatchedDir(yn.dirname(r)),f=l.has(yn.basename(r));!(i&&this.fsw.options.ignoreInitial)&&!o&&!f&&(!c.hasGlob||c.globFilter(r))&&this.fsw._emit(Nwt,r,n),l.add(yn.basename(r)),this.fsw._getWatchedDir(r);let p,g,v=this.fsw.options.depth;if((v==null||a<=v)&&!this.fsw._symlinkPaths.has(u)){if(!o&&(await this._handleRead(r,i,c,o,r,a,p),this.fsw.closed))return;g=this._watchWithNodeFs(r,(x,E)=>{E&&E.mtimeMs===0||this._handleRead(x,!1,c,o,r,a,p)})}return g}async _addToNodeFs(r,n,i,a,o){let c=this.fsw._emitReady;if(this.fsw._isIgnored(r)||this.fsw.closed)return c(),!1;let u=this.fsw._getWatchHelpers(r,a);!u.hasGlob&&i&&(u.hasGlob=i.hasGlob,u.globFilter=i.globFilter,u.filterPath=l=>i.filterPath(l),u.filterDir=l=>i.filterDir(l));try{let l=await zwt[u.statMethod](u.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(u.watchPath,l))return c(),!1;let f=this.fsw.options.followSymlinks&&!r.includes(Bwt)&&!r.includes(jwt),p;if(l.isDirectory()){let g=yn.resolve(r),v=f?await K6(r):r;if(this.fsw.closed||(p=await this._handleDir(u.watchPath,l,n,a,o,u,v),this.fsw.closed))return;g!==v&&v!==void 0&&this.fsw._symlinkPaths.set(g,v)}else if(l.isSymbolicLink()){let g=f?await K6(r):r;if(this.fsw.closed)return;let v=yn.dirname(u.watchPath);if(this.fsw._getWatchedDir(v).add(u.watchPath),this.fsw._emit(lP,u.watchPath,l),p=await this._handleDir(v,l,n,a,r,u,g),this.fsw.closed)return;g!==void 0&&this.fsw._symlinkPaths.set(yn.resolve(r),g)}else p=this._handleFile(u.watchPath,l,n);return c(),this.fsw._addPathCloser(r,p),!1}catch(l){if(this.fsw._handleError(l))return c(),r}}};XEe.exports=Q6});var iSe=S((sJt,a5)=>{"use strict";var i5=require("fs"),bn=require("path"),{promisify:s5}=require("util"),Lm;try{Lm=require("fsevents")}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(Lm){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let r=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);r===8&&n<16&&(Lm=void 0)}}var{EV_ADD:Z6,EV_CHANGE:Xwt,EV_ADD_DIR:QEe,EV_UNLINK:hP,EV_ERROR:Jwt,STR_DATA:Qwt,STR_END:Zwt,FSEVENT_CREATED:e1t,FSEVENT_MODIFIED:t1t,FSEVENT_DELETED:r1t,FSEVENT_MOVED:n1t,FSEVENT_UNKNOWN:i1t,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:s1t,FSEVENT_TYPE_FILE:a1t,FSEVENT_TYPE_DIRECTORY:kb,FSEVENT_TYPE_SYMLINK:nSe,ROOT_GLOBSTAR:ZEe,DIR_SUFFIX:o1t,DOT_SLASH:eSe,FUNCTION_TYPE:e5,EMPTY_FN:c1t,IDENTITY_FN:u1t}=uP(),l1t=e=>isNaN(e)?{}:{depth:e},r5=s5(i5.stat),f1t=s5(i5.lstat),tSe=s5(i5.realpath),p1t={stat:r5,lstat:f1t},dp=new Map,d1t=10,h1t=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),m1t=(e,r)=>({stop:Lm.watch(e,r)});function g1t(e,r,n,i){let a=bn.extname(r)?bn.dirname(r):r,o=bn.dirname(a),c=dp.get(a);v1t(o)&&(a=o);let u=bn.resolve(e),l=u!==r,f=(g,v,x)=>{l&&(g=g.replace(r,u)),(g===u||!g.indexOf(u+bn.sep))&&n(g,v,x)},p=!1;for(let g of dp.keys())if(r.indexOf(bn.resolve(g)+bn.sep)===0){a=g,c=dp.get(a),p=!0;break}return c||p?c.listeners.add(f):(c={listeners:new Set([f]),rawEmitter:i,watcher:m1t(a,(g,v)=>{if(!c.listeners.size||v&s1t)return;let x=Lm.getInfo(g,v);c.listeners.forEach(E=>{E(g,v,x)}),c.rawEmitter(x.event,g,x)})},dp.set(a,c)),()=>{let g=c.listeners;if(g.delete(f),!g.size&&(dp.delete(a),c.watcher))return c.watcher.stop().then(()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)})}}var v1t=e=>{let r=0;for(let n of dp.keys())if(n.indexOf(e)===0&&(r++,r>=d1t))return!0;return!1},y1t=()=>Lm&&dp.size<128,t5=(e,r)=>{let n=0;for(;!e.indexOf(r)&&(e=bn.dirname(e))!==r;)n++;return n},rSe=(e,r)=>e.type===kb&&r.isDirectory()||e.type===nSe&&r.isSymbolicLink()||e.type===a1t&&r.isFile(),n5=class{constructor(r){this.fsw=r}checkIgnored(r,n){let i=this.fsw._ignoredPaths;if(this.fsw._isIgnored(r,n))return i.add(r),n&&n.isDirectory()&&i.add(r+ZEe),!0;i.delete(r),i.delete(r+ZEe)}addOrChange(r,n,i,a,o,c,u,l){let f=o.has(c)?Xwt:Z6;this.handleEvent(f,r,n,i,a,o,c,u,l)}async checkExists(r,n,i,a,o,c,u,l){try{let f=await r5(r);if(this.fsw.closed)return;rSe(u,f)?this.addOrChange(r,n,i,a,o,c,u,l):this.handleEvent(hP,r,n,i,a,o,c,u,l)}catch(f){f.code==="EACCES"?this.addOrChange(r,n,i,a,o,c,u,l):this.handleEvent(hP,r,n,i,a,o,c,u,l)}}handleEvent(r,n,i,a,o,c,u,l,f){if(!(this.fsw.closed||this.checkIgnored(n)))if(r===hP){let p=l.type===kb;(p||c.has(u))&&this.fsw._remove(o,u,p)}else{if(r===Z6){if(l.type===kb&&this.fsw._getWatchedDir(n),l.type===nSe&&f.followSymlinks){let g=f.depth===void 0?void 0:t5(i,a)+1;return this._addToFsEvents(n,!1,!0,g)}this.fsw._getWatchedDir(o).add(u)}let p=l.type===kb?r+o1t:r;this.fsw._emit(p,n),p===QEe&&this._addToFsEvents(n,!1,!0)}}_watchWithFsEvents(r,n,i,a){if(this.fsw.closed||this.fsw._isIgnored(r))return;let o=this.fsw.options,u=g1t(r,n,async(l,f,p)=>{if(this.fsw.closed||o.depth!==void 0&&t5(l,n)>o.depth)return;let g=i(bn.join(r,bn.relative(r,l)));if(a&&!a(g))return;let v=bn.dirname(g),x=bn.basename(g),E=this.fsw._getWatchedDir(p.type===kb?g:v);if(h1t.has(f)||p.event===i1t)if(typeof o.ignored===e5){let D;try{D=await r5(g)}catch{}if(this.fsw.closed||this.checkIgnored(g,D))return;rSe(p,D)?this.addOrChange(g,l,n,v,E,x,p,o):this.handleEvent(hP,g,l,n,v,E,x,p,o)}else this.checkExists(g,l,n,v,E,x,p,o);else switch(p.event){case e1t:case t1t:return this.addOrChange(g,l,n,v,E,x,p,o);case r1t:case n1t:return this.checkExists(g,l,n,v,E,x,p,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),u}async _handleFsEventsSymlink(r,n,i,a){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(n))){this.fsw._symlinkPaths.set(n,!0),this.fsw._incrReadyCount();try{let o=await tSe(r);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||r,c=>{let u=r;return o&&o!==eSe?u=c.replace(o,r):c!==eSe&&(u=bn.join(r,c)),i(u)},!1,a)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(r,n,i,a,o){let c=i(r),u=n.isDirectory(),l=this.fsw._getWatchedDir(bn.dirname(c)),f=bn.basename(c);u&&this.fsw._getWatchedDir(c),!l.has(f)&&(l.add(f),(!a.ignoreInitial||o===!0)&&this.fsw._emit(u?QEe:Z6,c,n))}initWatch(r,n,i,a){if(this.fsw.closed)return;let o=this._watchWithFsEvents(i.watchPath,bn.resolve(r||i.watchPath),a,i.globFilter);this.fsw._addPathCloser(n,o)}async _addToFsEvents(r,n,i,a){if(this.fsw.closed)return;let o=this.fsw.options,c=typeof n===e5?n:u1t,u=this.fsw._getWatchHelpers(r);try{let l=await p1t[u.statMethod](u.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(u.watchPath,l))throw null;if(l.isDirectory()){if(u.globFilter||this.emitAdd(c(r),l,c,o,i),a&&a>o.depth)return;this.fsw._readdirp(u.watchPath,{fileFilter:f=>u.filterPath(f),directoryFilter:f=>u.filterDir(f),...l1t(o.depth-(a||0))}).on(Qwt,f=>{if(this.fsw.closed||f.stats.isDirectory()&&!u.filterPath(f))return;let p=bn.join(u.watchPath,f.path),{fullPath:g}=f;if(u.followSymlinks&&f.stats.isSymbolicLink()){let v=o.depth===void 0?void 0:t5(p,bn.resolve(u.watchPath))+1;this._handleFsEventsSymlink(p,g,c,v)}else this.emitAdd(p,f.stats,c,o,i)}).on(Jwt,c1t).on(Zwt,()=>{this.fsw._emitReady()})}else this.emitAdd(u.watchPath,l,c,o,i),this.fsw._emitReady()}catch(l){(!l||this.fsw._handleError(l))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&i!==!0)if(typeof n===e5)this.initWatch(void 0,r,u,c);else{let l;try{l=await tSe(u.watchPath)}catch{}this.initWatch(l,r,u,c)}}};a5.exports=n5;a5.exports.canUse=y1t});var mSe=S(w5=>{"use strict";var{EventEmitter:b1t}=require("events"),b5=require("fs"),kt=require("path"),{promisify:fSe}=require("util"),x1t=FEe(),p5=jEe().default,w1t=C2(),o5=d1(),_1t=I2(),E1t=Gy(),S1t=JEe(),sSe=iSe(),{EV_ALL:c5,EV_READY:D1t,EV_ADD:mP,EV_CHANGE:Fb,EV_UNLINK:aSe,EV_ADD_DIR:C1t,EV_UNLINK_DIR:P1t,EV_RAW:T1t,EV_ERROR:u5,STR_CLOSE:R1t,STR_END:A1t,BACK_SLASH_RE:O1t,DOUBLE_SLASH_RE:oSe,SLASH_OR_BACK_SLASH_RE:I1t,DOT_RE:k1t,REPLACER_RE:F1t,SLASH:l5,SLASH_SLASH:$1t,BRACE_START:L1t,BANG:d5,ONE_DOT:pSe,TWO_DOTS:N1t,GLOBSTAR:M1t,SLASH_GLOBSTAR:f5,ANYMATCH_OPTS:h5,STRING_TYPE:x5,FUNCTION_TYPE:q1t,EMPTY_STR:m5,EMPTY_FN:j1t,isWindows:B1t,isMacos:U1t,isIBMi:G1t}=uP(),W1t=fSe(b5.stat),H1t=fSe(b5.readdir),g5=(e=[])=>Array.isArray(e)?e:[e],dSe=(e,r=[])=>(e.forEach(n=>{Array.isArray(n)?dSe(n,r):r.push(n)}),r),cSe=e=>{let r=dSe(g5(e));if(!r.every(n=>typeof n===x5))throw new TypeError(`Non-string provided as watch path: ${r}`);return r.map(hSe)},uSe=e=>{let r=e.replace(O1t,l5),n=!1;for(r.startsWith($1t)&&(n=!0);r.match(oSe);)r=r.replace(oSe,l5);return n&&(r=l5+r),r},hSe=e=>uSe(kt.normalize(uSe(e))),lSe=(e=m5)=>r=>typeof r!==x5?r:hSe(kt.isAbsolute(r)?r:kt.join(e,r)),z1t=(e,r)=>kt.isAbsolute(e)?e:e.startsWith(d5)?d5+kt.join(r,e.slice(1)):kt.join(r,e),$a=(e,r)=>e[r]===void 0,v5=class{constructor(r,n){this.path=r,this._removeWatcher=n,this.items=new Set}add(r){let{items:n}=this;n&&r!==pSe&&r!==N1t&&n.add(r)}async remove(r){let{items:n}=this;if(!n||(n.delete(r),n.size>0))return;let i=this.path;try{await H1t(i)}catch{this._removeWatcher&&this._removeWatcher(kt.dirname(i),kt.basename(i))}}has(r){let{items:n}=this;if(n)return n.has(r)}getChildren(){let{items:r}=this;if(r)return[...r.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},V1t="stat",Y1t="lstat",y5=class{constructor(r,n,i,a){this.fsw=a,this.path=r=r.replace(F1t,m5),this.watchPath=n,this.fullWatchPath=kt.resolve(n),this.hasGlob=n!==r,r===m5&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&i?void 0:!1,this.globFilter=this.hasGlob?p5(r,void 0,h5):!1,this.dirParts=this.getDirParts(r),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=i,this.statMethod=i?V1t:Y1t}checkGlobSymlink(r){return this.globSymlink===void 0&&(this.globSymlink=r.fullParentDir===this.fullWatchPath?!1:{realPath:r.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?r.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):r.fullPath}entryPath(r){return kt.join(this.watchPath,kt.relative(this.watchPath,this.checkGlobSymlink(r)))}filterPath(r){let{stats:n}=r;if(n&&n.isSymbolicLink())return this.filterDir(r);let i=this.entryPath(r);return(this.hasGlob&&typeof this.globFilter===q1t?this.globFilter(i):!0)&&this.fsw._isntIgnored(i,n)&&this.fsw._hasReadPermissions(n)}getDirParts(r){if(!this.hasGlob)return[];let n=[];return(r.includes(L1t)?_1t.expand(r):[r]).forEach(a=>{n.push(kt.relative(this.watchPath,a).split(I1t))}),n}filterDir(r){if(this.hasGlob){let n=this.getDirParts(this.checkGlobSymlink(r)),i=!1;this.unmatchedGlob=!this.dirParts.some(a=>a.every((o,c)=>(o===M1t&&(i=!0),i||!n[0][c]||p5(o,n[0][c],h5))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(r),r.stats)}},gP=class extends b1t{constructor(r){super();let n={};r&&Object.assign(n,r),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,$a(n,"persistent")&&(n.persistent=!0),$a(n,"ignoreInitial")&&(n.ignoreInitial=!1),$a(n,"ignorePermissionErrors")&&(n.ignorePermissionErrors=!1),$a(n,"interval")&&(n.interval=100),$a(n,"binaryInterval")&&(n.binaryInterval=300),$a(n,"disableGlobbing")&&(n.disableGlobbing=!1),n.enableBinaryInterval=n.binaryInterval!==n.interval,$a(n,"useFsEvents")&&(n.useFsEvents=!n.usePolling),sSe.canUse()||(n.useFsEvents=!1),$a(n,"usePolling")&&!n.useFsEvents&&(n.usePolling=U1t),G1t&&(n.usePolling=!0);let a=process.env.CHOKIDAR_USEPOLLING;if(a!==void 0){let l=a.toLowerCase();l==="false"||l==="0"?n.usePolling=!1:l==="true"||l==="1"?n.usePolling=!0:n.usePolling=!!l}let o=process.env.CHOKIDAR_INTERVAL;o&&(n.interval=Number.parseInt(o,10)),$a(n,"atomic")&&(n.atomic=!n.usePolling&&!n.useFsEvents),n.atomic&&(this._pendingUnlinks=new Map),$a(n,"followSymlinks")&&(n.followSymlinks=!0),$a(n,"awaitWriteFinish")&&(n.awaitWriteFinish=!1),n.awaitWriteFinish===!0&&(n.awaitWriteFinish={});let c=n.awaitWriteFinish;c&&(c.stabilityThreshold||(c.stabilityThreshold=2e3),c.pollInterval||(c.pollInterval=100),this._pendingWrites=new Map),n.ignored&&(n.ignored=g5(n.ignored));let u=0;this._emitReady=()=>{u++,u>=this._readyCount&&(this._emitReady=j1t,this._readyEmitted=!0,process.nextTick(()=>this.emit(D1t)))},this._emitRaw=(...l)=>this.emit(T1t,...l),this._readyEmitted=!1,this.options=n,n.useFsEvents?this._fsEventsHandler=new sSe(this):this._nodeFsHandler=new S1t(this),Object.freeze(n)}add(r,n,i){let{cwd:a,disableGlobbing:o}=this.options;this.closed=!1;let c=cSe(r);return a&&(c=c.map(u=>{let l=z1t(u,a);return o||!o5(u)?l:E1t(l)})),c=c.filter(u=>u.startsWith(d5)?(this._ignoredPaths.add(u.slice(1)),!1):(this._ignoredPaths.delete(u),this._ignoredPaths.delete(u+f5),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=c.length),this.options.persistent&&(this._readyCount+=c.length),c.forEach(u=>this._fsEventsHandler._addToFsEvents(u))):(this._readyCount||(this._readyCount=0),this._readyCount+=c.length,Promise.all(c.map(async u=>{let l=await this._nodeFsHandler._addToNodeFs(u,!i,0,0,n);return l&&this._emitReady(),l})).then(u=>{this.closed||u.filter(l=>l).forEach(l=>{this.add(kt.dirname(l),kt.basename(n||l))})})),this}unwatch(r){if(this.closed)return this;let n=cSe(r),{cwd:i}=this.options;return n.forEach(a=>{!kt.isAbsolute(a)&&!this._closers.has(a)&&(i&&(a=kt.join(i,a)),a=kt.resolve(a)),this._closePath(a),this._ignoredPaths.add(a),this._watched.has(a)&&this._ignoredPaths.add(a+f5),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let r=[];return this._closers.forEach(n=>n.forEach(i=>{let a=i();a instanceof Promise&&r.push(a)})),this._streams.forEach(n=>n.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(n=>n.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(n=>{this[`_${n}`].clear()}),this._closePromise=r.length?Promise.all(r).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let r={};return this._watched.forEach((n,i)=>{let a=this.options.cwd?kt.relative(this.options.cwd,i):i;r[a||pSe]=n.getChildren().sort()}),r}emitWithAll(r,n){this.emit(...n),r!==u5&&this.emit(c5,...n)}async _emit(r,n,i,a,o){if(this.closed)return;let c=this.options;B1t&&(n=kt.normalize(n)),c.cwd&&(n=kt.relative(c.cwd,n));let u=[r,n];o!==void 0?u.push(i,a,o):a!==void 0?u.push(i,a):i!==void 0&&u.push(i);let l=c.awaitWriteFinish,f;if(l&&(f=this._pendingWrites.get(n)))return f.lastChange=new Date,this;if(c.atomic){if(r===aSe)return this._pendingUnlinks.set(n,u),setTimeout(()=>{this._pendingUnlinks.forEach((p,g)=>{this.emit(...p),this.emit(c5,...p),this._pendingUnlinks.delete(g)})},typeof c.atomic=="number"?c.atomic:100),this;r===mP&&this._pendingUnlinks.has(n)&&(r=u[0]=Fb,this._pendingUnlinks.delete(n))}if(l&&(r===mP||r===Fb)&&this._readyEmitted){let p=(g,v)=>{g?(r=u[0]=u5,u[1]=g,this.emitWithAll(r,u)):v&&(u.length>2?u[2]=v:u.push(v),this.emitWithAll(r,u))};return this._awaitWriteFinish(n,l.stabilityThreshold,r,p),this}if(r===Fb&&!this._throttle(Fb,n,50))return this;if(c.alwaysStat&&i===void 0&&(r===mP||r===C1t||r===Fb)){let p=c.cwd?kt.join(c.cwd,n):n,g;try{g=await W1t(p)}catch{}if(!g||this.closed)return;u.push(g)}return this.emitWithAll(r,u),this}_handleError(r){let n=r&&r.code;return r&&n!=="ENOENT"&&n!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||n!=="EPERM"&&n!=="EACCES")&&this.emit(u5,r),r||this.closed}_throttle(r,n,i){this._throttled.has(r)||this._throttled.set(r,new Map);let a=this._throttled.get(r),o=a.get(n);if(o)return o.count++,!1;let c,u=()=>{let f=a.get(n),p=f?f.count:0;return a.delete(n),clearTimeout(c),f&&clearTimeout(f.timeoutObject),p};c=setTimeout(u,i);let l={timeoutObject:c,clear:u,count:0};return a.set(n,l),l}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(r,n,i,a){let o,c=r;this.options.cwd&&!kt.isAbsolute(r)&&(c=kt.join(this.options.cwd,r));let u=new Date,l=f=>{b5.stat(c,(p,g)=>{if(p||!this._pendingWrites.has(r)){p&&p.code!=="ENOENT"&&a(p);return}let v=Number(new Date);f&&g.size!==f.size&&(this._pendingWrites.get(r).lastChange=v);let x=this._pendingWrites.get(r);v-x.lastChange>=n?(this._pendingWrites.delete(r),a(void 0,g)):o=setTimeout(l,this.options.awaitWriteFinish.pollInterval,g)})};this._pendingWrites.has(r)||(this._pendingWrites.set(r,{lastChange:u,cancelWait:()=>(this._pendingWrites.delete(r),clearTimeout(o),i)}),o=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(r,n){if(this.options.atomic&&k1t.test(r))return!0;if(!this._userIgnored){let{cwd:i}=this.options,a=this.options.ignored,o=a&&a.map(lSe(i)),c=g5(o).filter(l=>typeof l===x5&&!o5(l)).map(l=>l+f5),u=this._getGlobIgnored().map(lSe(i)).concat(o,c);this._userIgnored=p5(u,void 0,h5)}return this._userIgnored([r,n])}_isntIgnored(r,n){return!this._isIgnored(r,n)}_getWatchHelpers(r,n){let i=n||this.options.disableGlobbing||!o5(r)?r:w1t(r),a=this.options.followSymlinks;return new y5(r,i,a,this)}_getWatchedDir(r){this._boundRemove||(this._boundRemove=this._remove.bind(this));let n=kt.resolve(r);return this._watched.has(n)||this._watched.set(n,new v5(n,this._boundRemove)),this._watched.get(n)}_hasReadPermissions(r){if(this.options.ignorePermissionErrors)return!0;let i=(r&&Number.parseInt(r.mode,10))&511;return!!(4&Number.parseInt(i.toString(8)[0],10))}_remove(r,n,i){let a=kt.join(r,n),o=kt.resolve(a);if(i=i??(this._watched.has(a)||this._watched.has(o)),!this._throttle("remove",a,100))return;!i&&!this.options.useFsEvents&&this._watched.size===1&&this.add(r,n,!0),this._getWatchedDir(a).getChildren().forEach(v=>this._remove(a,v));let l=this._getWatchedDir(r),f=l.has(n);l.remove(n),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let p=a;if(this.options.cwd&&(p=kt.relative(this.options.cwd,a)),this.options.awaitWriteFinish&&this._pendingWrites.has(p)&&this._pendingWrites.get(p).cancelWait()===mP)return;this._watched.delete(a),this._watched.delete(o);let g=i?P1t:aSe;f&&!this._isIgnored(a)&&this._emit(g,a),this.options.useFsEvents||this._closePath(a)}_closePath(r){this._closeFile(r);let n=kt.dirname(r);this._getWatchedDir(n).remove(kt.basename(r))}_closeFile(r){let n=this._closers.get(r);n&&(n.forEach(i=>i()),this._closers.delete(r))}_addPathCloser(r,n){if(!n)return;let i=this._closers.get(r);i||(i=[],this._closers.set(r,i)),i.push(n)}_readdirp(r,n){if(this.closed)return;let i={type:c5,alwaysStat:!0,lstat:!0,...n},a=x1t(r,i);return this._streams.add(a),a.once(R1t,()=>{a=void 0}),a.once(A1t,()=>{a&&(this._streams.delete(a),a=void 0)}),a}};w5.FSWatcher=gP;var K1t=(e,r)=>{let n=new gP(r);return n.add(e),n};w5.watch=K1t});var FSe=S(CP=>{"use strict";CP.__esModule=!0;CP.Adapt=void 0;function l_t(e){return P5(e)==="boolean"}function f_t(e){return P5(e)==="object"}function p_t(e){return P5(e)==="string"}function P5(e){return typeof e}function d_t(e){var r=e.meta,n=e.path,i=e.xdg,a=function(){function o(c){c===void 0&&(c={});var u,l,f;function p(F){return F===void 0&&(F={}),new o(F)}var g=f_t(c)?c:{name:c},v=(u=g.suffix)!==null&&u!==void 0?u:"",x=(l=g.isolated)!==null&&l!==void 0?l:!0,E=[g.name,r.pkgMainFilename(),r.mainFilename()],D="$eval",P=n.parse(((f=E.find(function(F){return p_t(F)}))!==null&&f!==void 0?f:D)+v).name;p.$name=function(){return P},p.$isolated=function(){return x};function R(F){var L;F=F??{isolated:x};var U=l_t(F)?F:(L=F.isolated)!==null&&L!==void 0?L:x;return U}function k(F){return R(F)?P:""}return p.cache=function(L){return n.join(i.cache(),k(L))},p.config=function(L){return n.join(i.config(),k(L))},p.data=function(L){return n.join(i.data(),k(L))},p.runtime=function(L){return i.runtime()?n.join(i.runtime(),k(L)):void 0},p.state=function(L){return n.join(i.state(),k(L))},p.configDirs=function(L){return i.configDirs().map(function(U){return n.join(U,k(L))})},p.dataDirs=function(L){return i.dataDirs().map(function(U){return n.join(U,k(L))})},p}return o}();return{XDGAppPaths:new a}}CP.Adapt=d_t});var LSe=S(qm=>{"use strict";var $Se=qm&&qm.__spreadArray||function(e,r){for(var n=0,i=r.length,a=e.length;n{"use strict";var m_t=jm&&jm.__spreadArray||function(e,r){for(var n=0,i=r.length,a=e.length;n{"use strict";var v_t=wo&&wo.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),y_t=wo&&wo.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),MSe=wo&&wo.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&v_t(r,e,n);return y_t(r,e),r};wo.__esModule=!0;wo.adapter=void 0;var b_t=MSe(require("os")),x_t=MSe(require("path"));wo.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},os:b_t,path:x_t,process}});var BSe=S((xQt,jSe)=>{"use strict";var w_t=NSe(),__t=qSe();jSe.exports=w_t.Adapt(__t.adapter).OSPaths});var USe=S(Ws=>{"use strict";var E_t=Ws&&Ws.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),S_t=Ws&&Ws.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),D_t=Ws&&Ws.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&E_t(r,e,n);return S_t(r,e),r},C_t=Ws&&Ws.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ws.__esModule=!0;Ws.adapter=void 0;var P_t=D_t(require("path")),T_t=C_t(BSe());Ws.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},osPaths:T_t.default,path:P_t,process}});var WSe=S((_Qt,GSe)=>{"use strict";var R_t=LSe(),A_t=USe();GSe.exports=R_t.Adapt(A_t.adapter).XDG});var HSe=S(Hs=>{"use strict";var O_t=Hs&&Hs.__createBinding||(Object.create?function(e,r,n,i){i===void 0&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,i){i===void 0&&(i=n),e[i]=r[n]}),I_t=Hs&&Hs.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),k_t=Hs&&Hs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&O_t(r,e,n);return I_t(r,e),r},F_t=Hs&&Hs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Hs.__esModule=!0;Hs.adapter=void 0;var $_t=k_t(require("path")),L_t=F_t(WSe());Hs.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:function(){var e=typeof require<"u"&&require!==null&&require.main?require.main:{filename:void 0},r=e.filename,n=(r!==process.execArgv[0]?r:void 0)||(typeof process._eval>"u"?process.argv[1]:void 0);return n},pkgMainFilename:function(){return process.pkg?process.execPath:void 0}},path:$_t,process,xdg:L_t.default}});var R5=S((SQt,zSe)=>{"use strict";var N_t=FSe(),M_t=HSe();zSe.exports=N_t.Adapt(M_t.adapter).XDGAppPaths});var ZSe=S($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});$b.listen=void 0;var W_t=require("http"),H_t=require("https"),z_t=require("path"),V_t=require("events"),Y_t=e=>{if(typeof e.protocol=="string")return e.protocol;if(e instanceof W_t.Server)return"http";if(e instanceof H_t.Server)return"https"};async function QSe(e,...r){e.listen(...r,()=>{}),await(0,V_t.once)(e,"listening");let n=e.address();if(!n)throw new Error("Server not listening");let i,a=Y_t(e);if(typeof n=="string")i=encodeURIComponent((0,z_t.resolve)(n)),a?a+="+unix":a="unix";else{let{address:o,port:c,family:u}=n;i=u==="IPv6"?`[${o}]`:o,i+=`:${c}`,a||(a="tcp")}return new URL(`${a}://${i}`)}$b.listen=QSe;$b.default=QSe});var lDe=S((Btr,uDe)=>{"use strict";var cDe=Object.getOwnPropertySymbols,iEt=Object.prototype.hasOwnProperty,sEt=Object.prototype.propertyIsEnumerable;function aEt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function oEt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}uDe.exports=oEt()?Object.assign:function(e,r){for(var n,i=aEt(e),a,o=1;o{"use strict";nq.exports=uEt;nq.exports.append=pDe;var cEt=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function pDe(e,r){if(typeof e!="string")throw new TypeError("header argument is required");if(!r)throw new TypeError("field argument is required");for(var n=Array.isArray(r)?r:fDe(String(r)),i=0;i{"use strict";(function(){"use strict";var e=lDe(),r=iq(),n={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function i(E){return typeof E=="string"||E instanceof String}function a(E,D){if(Array.isArray(D)){for(var P=0;P{"use strict";mDe.exports=fEt;function lEt(e){var r,n="";if(e.isNative()?n="native":e.isEval()?(r=e.getScriptNameOrSourceURL(),r||(n=e.getEvalOrigin())):r=e.getFileName(),r){n+=r;var i=e.getLineNumber();if(i!=null){n+=":"+i;var a=e.getColumnNumber();a&&(n+=":"+a)}}return n||"unknown source"}function fEt(e){var r=!0,n=lEt(e),i=e.getFunctionName(),a=e.isConstructor(),o=!(e.isToplevel()||a),c="";if(o){var u=e.getMethodName(),l=pEt(e);i?(l&&i.indexOf(l)!==0&&(c+=l+"."),c+=i,u&&i.lastIndexOf("."+u)!==i.length-u.length-1&&(c+=" [as "+u+"]")):c+=l+"."+(u||"")}else a?c+="new "+(i||""):i?c+=i:(r=!1,c+=n);return r&&(c+=" ("+n+")"),c}function pEt(e){var r=e.receiver;return r.constructor&&r.constructor.name||null}});var yDe=S((Htr,vDe)=>{"use strict";vDe.exports=dEt;function dEt(e,r){return e.listeners(r).length}});var aq=S((ztr,sq)=>{"use strict";var hEt=require("events").EventEmitter;bDe(sq.exports,"callSiteToString",function(){var r=Error.stackTraceLimit,n={},i=Error.prepareStackTrace;function a(c,u){return u}Error.prepareStackTrace=a,Error.stackTraceLimit=2,Error.captureStackTrace(n);var o=n.stack.slice();return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o[0].toString?mEt:gDe()});bDe(sq.exports,"eventListenerCount",function(){return hEt.listenerCount||yDe()});function bDe(e,r,n){function i(){var a=n();return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,value:a}),a}Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:i})}function mEt(e){return e.toString()}});var _o=S((exports,module)=>{"use strict";var callSiteToString=aq().callSiteToString,eventListenerCount=aq().eventListenerCount,relative=require("path").relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(e,r){for(var n=e.split(/[ ,]+/),i=String(r).toLowerCase(),a=0;a",n=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(r=e.getEvalOrigin()+", "+r);var a=[r,n,i];return a.callSite=e,a.name=e.getFunctionName(),a}function defaultMessage(e){var r=e.callSite,n=e.name;n||(n="");var i=r.getThis(),a=i&&r.getTypeName();return a==="Object"&&(a=void 0),a==="Function"&&(a=i.name||a),a&&r.getMethodName()?a+"."+n:n}function formatPlain(e,r,n){var i=new Date().toUTCString(),a=i+" "+this._namespace+" deprecated "+e;if(this._traced){for(var o=0;o{"use strict";AP.exports=bEt;AP.exports.format=xDe;AP.exports.parse=wDe;var gEt=/\B(?=(\d{3})+(?!\d))/g,vEt=/(?:\.0*|(\.[^0]+)0+)$/,ll={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},yEt=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function bEt(e,r){return typeof e=="string"?wDe(e):typeof e=="number"?xDe(e,r):null}function xDe(e,r){if(!Number.isFinite(e))return null;var n=Math.abs(e),i=r&&r.thousandsSeparator||"",a=r&&r.unitSeparator||"",o=r&&r.decimalPlaces!==void 0?r.decimalPlaces:2,c=!!(r&&r.fixedDecimals),u=r&&r.unit||"";(!u||!ll[u.toLowerCase()])&&(n>=ll.pb?u="PB":n>=ll.tb?u="TB":n>=ll.gb?u="GB":n>=ll.mb?u="MB":n>=ll.kb?u="KB":u="B");var l=e/ll[u.toLowerCase()],f=l.toFixed(o);return c||(f=f.replace(vEt,"$1")),i&&(f=f.split(".").map(function(p,g){return g===0?p.replace(gEt,i):p}).join(".")),f+a+u}function wDe(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var r=yEt.exec(e),n,i="b";return r?(n=parseFloat(r[1]),i=r[4].toLowerCase()):(n=parseInt(e,10),i="b"),Math.floor(ll[i]*n)}});var Lb=S(oq=>{"use strict";var _De=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,xEt=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,EDe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,wEt=/\\([\u000b\u0020-\u00ff])/g,_Et=/([\\"])/g,SDe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;oq.format=EEt;oq.parse=SEt;function EEt(e){if(!e||typeof e!="object")throw new TypeError("argument obj is required");var r=e.parameters,n=e.type;if(!n||!SDe.test(n))throw new TypeError("invalid type");var i=n;if(r&&typeof r=="object")for(var a,o=Object.keys(r).sort(),c=0;c0&&!xEt.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(_Et,"\\$1")+'"'}function PEt(e){this.parameters=Object.create(null),this.type=e}});var Nb=S((Ktr,DDe)=>{"use strict";DDe.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?TEt:REt);function TEt(e,r){return e.__proto__=r,e}function REt(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=r[n]);return e}});var CDe=S((Xtr,AEt)=>{AEt.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"(Unused)","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var Mb=S((Jtr,TDe)=>{"use strict";var PDe=CDe();TDe.exports=Eo;Eo.STATUS_CODES=PDe;Eo.codes=OEt(Eo,PDe);Eo.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};Eo.empty={204:!0,205:!0,304:!0};Eo.retry={502:!0,503:!0,504:!0};function OEt(e,r){var n=[];return Object.keys(r).forEach(function(a){var o=r[a],c=Number(a);e[c]=o,e[o]=c,e[o.toLowerCase()]=c,n.push(c)}),n}function Eo(e){if(typeof e=="number"){if(!Eo[e])throw new Error("invalid status code: "+e);return e}if(typeof e!="string")throw new TypeError("code must be a number or string");var r=parseInt(e,10);if(!isNaN(r)){if(!Eo[r])throw new Error("invalid status code: "+r);return r}if(r=Eo[e.toLowerCase()],!r)throw new Error('invalid status message: "'+e+'"');return r}});var ADe=S((Qtr,RDe)=>{"use strict";RDe.exports=IEt;function IEt(e){return e.split(" ").map(function(r){return r.slice(0,1).toUpperCase()+r.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var zm=S((Ztr,gp)=>{"use strict";var cq=_o()("http-errors"),ODe=Nb(),Hm=Mb(),uq=ei(),kEt=ADe();gp.exports=OP;gp.exports.HttpError=FEt();gp.exports.isHttpError=LEt(gp.exports.HttpError);MEt(gp.exports,Hm.codes,gp.exports.HttpError);function IDe(e){return+(String(e).charAt(0)+"00")}function OP(){for(var e,r,n=500,i={},a=0;a=600)&&cq("non-error status code; use only 4xx or 5xx status codes"),(typeof n!="number"||!Hm[n]&&(n<400||n>=600))&&(n=500);var c=OP[n]||OP[IDe(n)];e||(e=c?new c(r):new Error(r||Hm[n]),Error.captureStackTrace(e,OP)),(!c||!(e instanceof c)||e.status!==n)&&(e.expose=n<500,e.status=e.statusCode=n);for(var u in i)u!=="status"&&u!=="statusCode"&&(e[u]=i[u]);return e}function FEt(){function e(){throw new TypeError("cannot construct abstract class")}return uq(e,Error),e}function $Et(e,r,n){var i=FDe(r);function a(o){var c=o??Hm[n],u=new Error(c);return Error.captureStackTrace(u,a),ODe(u,a.prototype),Object.defineProperty(u,"message",{enumerable:!0,configurable:!0,value:c,writable:!0}),Object.defineProperty(u,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),u}return uq(a,e),kDe(a,i),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!0,a}function LEt(e){return function(n){return!n||typeof n!="object"?!1:n instanceof e?!0:n instanceof Error&&typeof n.expose=="boolean"&&typeof n.statusCode=="number"&&n.status===n.statusCode}}function NEt(e,r,n){var i=FDe(r);function a(o){var c=o??Hm[n],u=new Error(c);return Error.captureStackTrace(u,a),ODe(u,a.prototype),Object.defineProperty(u,"message",{enumerable:!0,configurable:!0,value:c,writable:!0}),Object.defineProperty(u,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),u}return uq(a,e),kDe(a,i),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!1,a}function kDe(e,r){var n=Object.getOwnPropertyDescriptor(e,"name");n&&n.configurable&&(n.value=r,Object.defineProperty(e,"name",n))}function MEt(e,r,n){r.forEach(function(a){var o,c=kEt(Hm[a]);switch(IDe(a)){case 400:o=$Et(n,c,a);break;case 500:o=NEt(n,c,a);break}o&&(e[a]=o,e[c]=o)}),e["I'mateapot"]=cq.function(e.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function FDe(e){return e.substr(-5)!=="Error"?e+"Error":e}});var LDe=S((err,$De)=>{"use strict";var qb=1e3,jb=qb*60,Bb=jb*60,Ub=Bb*24,qEt=Ub*365.25;$De.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return jEt(e);if(n==="number"&&isNaN(e)===!1)return r.long?UEt(e):BEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function jEt(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),i=(r[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*qEt;case"days":case"day":case"d":return n*Ub;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Bb;case"minutes":case"minute":case"mins":case"min":case"m":return n*jb;case"seconds":case"second":case"secs":case"sec":case"s":return n*qb;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function BEt(e){return e>=Ub?Math.round(e/Ub)+"d":e>=Bb?Math.round(e/Bb)+"h":e>=jb?Math.round(e/jb)+"m":e>=qb?Math.round(e/qb)+"s":e+"ms"}function UEt(e){return IP(e,Ub,"day")||IP(e,Bb,"hour")||IP(e,jb,"minute")||IP(e,qb,"second")||e+" ms"}function IP(e,r,n){if(!(e{"use strict";Pt=NDe.exports=fq.debug=fq.default=fq;Pt.coerce=VEt;Pt.disable=HEt;Pt.enable=WEt;Pt.enabled=zEt;Pt.humanize=LDe();Pt.names=[];Pt.skips=[];Pt.formatters={};var lq;function GEt(e){var r=0,n;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return Pt.colors[Math.abs(r)%Pt.colors.length]}function fq(e){function r(){if(r.enabled){var n=r,i=+new Date,a=i-(lq||i);n.diff=a,n.prev=lq,n.curr=i,lq=i;for(var o=new Array(arguments.length),c=0;c{"use strict";fi=qDe.exports=pq();fi.log=XEt;fi.formatArgs=KEt;fi.save=JEt;fi.load=MDe;fi.useColors=YEt;fi.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:QEt();fi.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function YEt(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}fi.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function KEt(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+fi.humanize(this.diff),!!r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(o){o!=="%%"&&(i++,o==="%c"&&(a=i))}),e.splice(a,0,n)}}function XEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function JEt(e){try{e==null?fi.storage.removeItem("debug"):fi.storage.debug=e}catch{}}function MDe(){var e;try{e=fi.storage.debug}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}fi.enable(MDe());function QEt(){try{return window.localStorage}catch{}}});var WDe=S((xn,GDe)=>{"use strict";var BDe=require("tty"),Gb=require("util");xn=GDe.exports=pq();xn.init=sSt;xn.log=rSt;xn.formatArgs=tSt;xn.save=nSt;xn.load=UDe;xn.useColors=eSt;xn.colors=[6,2,3,4,5,1];xn.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,r){var n=r.substring(6).toLowerCase().replace(/_([a-z])/g,function(a,o){return o.toUpperCase()}),i=process.env[r];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[n]=i,e},{});var Vm=parseInt(process.env.DEBUG_FD,10)||2;Vm!==1&&Vm!==2&&Gb.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var ZEt=Vm===1?process.stdout:Vm===2?process.stderr:iSt(Vm);function eSt(){return"colors"in xn.inspectOpts?!!xn.inspectOpts.colors:BDe.isatty(Vm)}xn.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,Gb.inspect(e,this.inspectOpts).split(` -`).map(function(r){return r.trim()}).join(" ")};xn.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,Gb.inspect(e,this.inspectOpts)};function tSt(e){var r=this.namespace,n=this.useColors;if(n){var i=this.color,a=" \x1B[3"+i+";1m"+r+" \x1B[0m";e[0]=a+e[0].split(` -`).join(` -`+a),e.push("\x1B[3"+i+"m+"+xn.humanize(this.diff)+"\x1B[0m")}else e[0]=new Date().toUTCString()+" "+r+" "+e[0]}function rSt(){return ZEt.write(Gb.format.apply(Gb,arguments)+` -`)}function nSt(e){e==null?delete process.env.DEBUG:process.env.DEBUG=e}function UDe(){return process.env.DEBUG}function iSt(e){var r,n=process.binding("tty_wrap");switch(n.guessHandleType(e)){case"TTY":r=new BDe.WriteStream(e),r._type="tty",r._handle&&r._handle.unref&&r._handle.unref();break;case"FILE":var i=require("fs");r=new i.SyncWriteStream(e,{autoClose:!1}),r._type="fs";break;case"PIPE":case"TCP":var a=require("net");r=new a.Socket({fd:e,readable:!1,writable:!0}),r.readable=!1,r.read=null,r._type="pipe",r._handle&&r._handle.unref&&r._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return r.fd=e,r._isStdio=!0,r}function sSt(e){e.inspectOpts={};for(var r=Object.keys(xn.inspectOpts),n=0;n{"use strict";typeof process<"u"&&process.type==="renderer"?dq.exports=jDe():dq.exports=WDe()});var vp=S((rrr,HDe)=>{"use strict";var kP=require("buffer"),Ym=kP.Buffer,Vs={},Ys;for(Ys in kP)kP.hasOwnProperty(Ys)&&(Ys==="SlowBuffer"||Ys==="Buffer"||(Vs[Ys]=kP[Ys]));var Km=Vs.Buffer={};for(Ys in Ym)Ym.hasOwnProperty(Ys)&&(Ys==="allocUnsafe"||Ys==="allocUnsafeSlow"||(Km[Ys]=Ym[Ys]));Vs.Buffer.prototype=Ym.prototype;(!Km.from||Km.from===Uint8Array.from)&&(Km.from=function(e,r,n){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Ym(e,r,n)});Km.alloc||(Km.alloc=function(e,r,n){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=Ym(e);return!r||r.length===0?i.fill(0):typeof n=="string"?i.fill(r,n):i.fill(r),i});if(!Vs.kStringMaxLength)try{Vs.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}Vs.constants||(Vs.constants={MAX_LENGTH:Vs.kMaxLength},Vs.kStringMaxLength&&(Vs.constants.MAX_STRING_LENGTH=Vs.kStringMaxLength));HDe.exports=Vs});var VDe=S(gq=>{"use strict";var zDe="\uFEFF";gq.PrependBOM=hq;function hq(e,r){this.encoder=e,this.addBOM=!0}hq.prototype.write=function(e){return this.addBOM&&(e=zDe+e,this.addBOM=!1),this.encoder.write(e)};hq.prototype.end=function(){return this.encoder.end()};gq.StripBOM=mq;function mq(e,r){this.decoder=e,this.pass=!1,this.options=r||{}}mq.prototype.write=function(e){var r=this.decoder.write(e);return this.pass||!r||(r[0]===zDe&&(r=r.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),r};mq.prototype.end=function(){return this.decoder.end()}});var XDe=S((irr,KDe)=>{"use strict";var Wb=vp().Buffer;KDe.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:vq};function vq(e,r){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc==="base64"?this.encoder=bq:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=xq,Wb.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=wq,this.defaultCharUnicode=r.defaultCharUnicode))}vq.prototype.encoder=yq;vq.prototype.decoder=YDe;var FP=require("string_decoder").StringDecoder;FP.prototype.end||(FP.prototype.end=function(){});function YDe(e,r){FP.call(this,r.enc)}YDe.prototype=FP.prototype;function yq(e,r){this.enc=r.enc}yq.prototype.write=function(e){return Wb.from(e,this.enc)};yq.prototype.end=function(){};function bq(e,r){this.prevStr=""}bq.prototype.write=function(e){e=this.prevStr+e;var r=e.length-e.length%4;return this.prevStr=e.slice(r),e=e.slice(0,r),Wb.from(e,"base64")};bq.prototype.end=function(){return Wb.from(this.prevStr,"base64")};function xq(e,r){}xq.prototype.write=function(e){for(var r=Wb.alloc(e.length*3),n=0,i=0;i>>6),r[n++]=128+(a&63)):(r[n++]=224+(a>>>12),r[n++]=128+(a>>>6&63),r[n++]=128+(a&63))}return r.slice(0,n)};xq.prototype.end=function(){};function wq(e,r){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=r.defaultCharUnicode}wq.prototype.write=function(e){for(var r=this.acc,n=this.contBytes,i=this.accBytes,a="",o=0;o0&&(a+=this.defaultCharUnicode,n=0),c<128?a+=String.fromCharCode(c):c<224?(r=c&31,n=1,i=1):c<240?(r=c&15,n=2,i=1):a+=this.defaultCharUnicode):n>0?(r=r<<6|c&63,n--,i++,n===0&&(i===2&&r<128&&r>0?a+=this.defaultCharUnicode:i===3&&r<2048?a+=this.defaultCharUnicode:a+=String.fromCharCode(r))):a+=this.defaultCharUnicode}return this.acc=r,this.contBytes=n,this.accBytes=i,a};wq.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}});var QDe=S(Pq=>{"use strict";var $P=vp().Buffer;Pq.utf16be=LP;function LP(){}LP.prototype.encoder=_q;LP.prototype.decoder=Eq;LP.prototype.bomAware=!0;function _q(){}_q.prototype.write=function(e){for(var r=$P.from(e,"ucs2"),n=0;n=2)if(e[0]==254&&e[1]==255)n="utf-16be";else if(e[0]==255&&e[1]==254)n="utf-16le";else{for(var i=0,a=0,o=Math.min(e.length-e.length%2,64),c=0;ci?n="utf-16be":a{"use strict";var So=vp().Buffer;qP.utf7=NP;qP.unicode11utf7="utf7";function NP(e,r){this.iconv=r}NP.prototype.encoder=Rq;NP.prototype.decoder=Aq;NP.prototype.bomAware=!0;var aSt=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Rq(e,r){this.iconv=r.iconv}Rq.prototype.write=function(e){return So.from(e.replace(aSt,function(r){return"+"+(r==="+"?"":this.iconv.encode(r,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Rq.prototype.end=function(){};function Aq(e,r){this.iconv=r.iconv,this.inBase64=!1,this.base64Accum=""}var oSt=/[A-Za-z0-9\/+]/,Oq=[];for(Hb=0;Hb<256;Hb++)Oq[Hb]=oSt.test(String.fromCharCode(Hb));var Hb,cSt=43,yp=45,Tq=38;Aq.prototype.write=function(e){for(var r="",n=0,i=this.inBase64,a=this.base64Accum,o=0;o0&&(e=this.iconv.decode(So.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e};qP.utf7imap=MP;function MP(e,r){this.iconv=r}MP.prototype.encoder=Iq;MP.prototype.decoder=kq;MP.prototype.bomAware=!0;function Iq(e,r){this.iconv=r.iconv,this.inBase64=!1,this.base64Accum=So.alloc(6),this.base64AccumIdx=0}Iq.prototype.write=function(e){for(var r=this.inBase64,n=this.base64Accum,i=this.base64AccumIdx,a=So.alloc(e.length*5+10),o=0,c=0;c0&&(o+=a.write(n.slice(0,i).toString("base64").replace(/\//g,",").replace(/=+$/,""),o),i=0),a[o++]=yp,r=!1),r||(a[o++]=u,u===Tq&&(a[o++]=yp))):(r||(a[o++]=Tq,r=!0),r&&(n[i++]=u>>8,n[i++]=u&255,i==n.length&&(o+=a.write(n.toString("base64").replace(/\//g,","),o),i=0)))}return this.inBase64=r,this.base64AccumIdx=i,a.slice(0,o)};Iq.prototype.end=function(){var e=So.alloc(10),r=0;return this.inBase64&&(this.base64AccumIdx>0&&(r+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),r),this.base64AccumIdx=0),e[r++]=yp,this.inBase64=!1),e.slice(0,r)};function kq(e,r){this.iconv=r.iconv,this.inBase64=!1,this.base64Accum=""}var ZDe=Oq.slice();ZDe[44]=!0;kq.prototype.write=function(e){for(var r="",n=0,i=this.inBase64,a=this.base64Accum,o=0;o0&&(e=this.iconv.decode(So.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}});var rCe=S(tCe=>{"use strict";var jP=vp().Buffer;tCe._sbcs=Fq;function Fq(e,r){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){for(var n="",i=0;i<128;i++)n+=String.fromCharCode(i);e.chars=n+e.chars}this.decodeBuf=jP.from(e.chars,"ucs2");for(var a=jP.alloc(65536,r.defaultCharSingleByte.charCodeAt(0)),i=0;i{"use strict";nCe.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var aCe=S((urr,sCe)=>{"use strict";sCe.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b -\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E81\u0E82\u0E84\u0E87\u0E88\u0EAA\u0E8A\u0E8D\u0E94\u0E95\u0E96\u0E97\u0E99\u0E9A\u0E9B\u0E9C\u0E9D\u0E9E\u0E9F\u0EA1\u0EA2\u0EA3\u0EA5\u0EA7\u0EAB\u0EAD\u0EAE\uFFFD\uFFFD\uFFFD\u0EAF\u0EB0\u0EB2\u0EB3\u0EB4\u0EB5\u0EB6\u0EB7\u0EB8\u0EB9\u0EBC\u0EB1\u0EBB\u0EBD\uFFFD\uFFFD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A6\xA0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20AC\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u2126\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uFFFD\xA9\u2044\xA4\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\xA2\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},macgreek:{type:"_sbcs",chars:"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\xAD\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\u0387\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\uFFFD"},maciceland:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macroman:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macromania:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u015E\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\u0103\u015F\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\u0162\u0163\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macthai:{type:"_sbcs",chars:"\xAB\xBB\u2026\uF88C\uF88F\uF892\uF895\uF898\uF88B\uF88E\uF891\uF894\uF897\u201C\u201D\uF899\uFFFD\u2022\uF884\uF889\uF885\uF886\uF887\uF888\uF88A\uF88D\uF890\uF893\uF896\u2018\u2019\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFEFF\u200B\u2013\u2014\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u2122\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\xAE\xA9\uFFFD\uFFFD\uFFFD\uFFFD"},macturkish:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\uFFFD\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u255D\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u045E\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u040E\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8t:{type:"_sbcs",chars:"\u049B\u0493\u201A\u0492\u201E\u2026\u2020\u2021\uFFFD\u2030\u04B3\u2039\u04B2\u04B7\u04B6\uFFFD\u049A\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04EF\u04EE\u0451\xA4\u04E3\xA6\xA7\uFFFD\uFFFD\uFFFD\xAB\xAC\xAD\xAE\uFFFD\xB0\xB1\xB2\u0401\uFFFD\u04E2\xB6\xB7\uFFFD\u2116\uFFFD\xBB\uFFFD\uFFFD\uFFFD\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\u0587\u0589)(\xBB\xAB\u2014.\u055D,-\u058A\u2026\u055C\u055B\u055E\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053A\u056A\u053B\u056B\u053C\u056C\u053D\u056D\u053E\u056E\u053F\u056F\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054A\u057A\u054B\u057B\u054C\u057C\u054D\u057D\u054E\u057E\u054F\u057F\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055A\uFFFD"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u049A\u04BA\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u049B\u04BB\u045F\xA0\u04B0\u04B1\u04D8\xA4\u04E8\xA6\xA7\u0401\xA9\u0492\xAB\xAC\xAD\xAE\u04AE\xB0\xB1\u0406\u0456\u04E9\xB5\xB6\xB7\u0451\u2116\u0493\xBB\u04D9\u04A2\u04A3\u04AF\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},tcvn:{type:"_sbcs",chars:`\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b -\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b -\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u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FD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var uCe=S(cCe=>{"use strict";var Jm=vp().Buffer;cCe._dbcs=Ec;var Fi=-1,oCe=-2,Ks=-10,Do=-1e3,Xm=new Array(256),zb=-1;for(BP=0;BP<256;BP++)Xm[BP]=Fi;var BP;function Ec(e,r){if(this.encodingName=e.encodingName,!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var n=e.table();this.decodeTables=[],this.decodeTables[0]=Xm.slice(0),this.decodeTableSeq=[];for(var i=0;i0;e>>=8)r.push(e&255);r.length==0&&r.push(0);for(var n=this.decodeTables[0],i=r.length-1;i>0;i--){var a=n[r[i]];if(a==Fi)n[r[i]]=Do-this.decodeTables.length,this.decodeTables.push(n=Xm.slice(0));else if(a<=Do)n=this.decodeTables[Do-a];else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16))}return n};Ec.prototype._addDecodeChunk=function(e){var r=parseInt(e[0],16),n=this._getDecodeTrieNode(r);r=r&255;for(var i=1;i255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+r)};Ec.prototype._getEncodeBucket=function(e){var r=e>>8;return this.encodeTable[r]===void 0&&(this.encodeTable[r]=Xm.slice(0)),this.encodeTable[r]};Ec.prototype._setEncodeChar=function(e,r){var n=this._getEncodeBucket(e),i=e&255;n[i]<=Ks?this.encodeTableSeq[Ks-n[i]][zb]=r:n[i]==Fi&&(n[i]=r)};Ec.prototype._setEncodeSequence=function(e,r){var n=e[0],i=this._getEncodeBucket(n),a=n&255,o;i[a]<=Ks?o=this.encodeTableSeq[Ks-i[a]]:(o={},i[a]!==Fi&&(o[zb]=i[a]),i[a]=Ks-this.encodeTableSeq.length,this.encodeTableSeq.push(o));for(var c=1;c=0?this._setEncodeChar(o,c):o<=Do?this._fillEncodeTable(Do-o,c<<8,n):o<=Ks&&this._setEncodeSequence(this.decodeTableSeq[Ks-o],c))}};function UP(e,r){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=r.encodeTable,this.encodeTableSeq=r.encodeTableSeq,this.defaultCharSingleByte=r.defCharSB,this.gb18030=r.gb18030}UP.prototype.write=function(e){for(var r=Jm.alloc(e.length*(this.gb18030?4:3)),n=this.leadSurrogate,i=this.seqObj,a=-1,o=0,c=0;;){if(a===-1){if(o==e.length)break;var u=e.charCodeAt(o++)}else{var u=a;a=-1}if(55296<=u&&u<57344)if(u<56320)if(n===-1){n=u;continue}else n=u,u=Fi;else n!==-1?(u=65536+(n-55296)*1024+(u-56320),n=-1):u=Fi;else n!==-1&&(a=u,u=Fi,n=-1);var l=Fi;if(i!==void 0&&u!=Fi){var f=i[u];if(typeof f=="object"){i=f;continue}else typeof f=="number"?l=f:f==null&&(f=i[zb],f!==void 0&&(l=f,a=u));i=void 0}else if(u>=0){var p=this.encodeTable[u>>8];if(p!==void 0&&(l=p[u&255]),l<=Ks){i=this.encodeTableSeq[Ks-l];continue}if(l==Fi&&this.gb18030){var g=Mq(this.gb18030.uChars,u);if(g!=-1){var l=this.gb18030.gbChars[g]+(u-this.gb18030.uChars[g]);r[c++]=129+Math.floor(l/12600),l=l%12600,r[c++]=48+Math.floor(l/1260),l=l%1260,r[c++]=129+Math.floor(l/10),l=l%10,r[c++]=48+l;continue}}}l===Fi&&(l=this.defaultCharSingleByte),l<256?r[c++]=l:l<65536?(r[c++]=l>>8,r[c++]=l&255):(r[c++]=l>>16,r[c++]=l>>8&255,r[c++]=l&255)}return this.seqObj=i,this.leadSurrogate=n,r.slice(0,c)};UP.prototype.end=function(){if(!(this.leadSurrogate===-1&&this.seqObj===void 0)){var e=Jm.alloc(10),r=0;if(this.seqObj){var n=this.seqObj[zb];n!==void 0&&(n<256?e[r++]=n:(e[r++]=n>>8,e[r++]=n&255)),this.seqObj=void 0}return this.leadSurrogate!==-1&&(e[r++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,r)}};UP.prototype.findIdx=Mq;function Nq(e,r){this.nodeIdx=0,this.prevBuf=Jm.alloc(0),this.decodeTables=r.decodeTables,this.decodeTableSeq=r.decodeTableSeq,this.defaultCharUnicode=r.defaultCharUnicode,this.gb18030=r.gb18030}Nq.prototype.write=function(e){var r=Jm.alloc(e.length*2),n=this.nodeIdx,i=this.prevBuf,a=this.prevBuf.length,o=-this.prevBuf.length,c;a>0&&(i=Jm.concat([i,e.slice(0,10)]));for(var u=0,l=0;u=0?e[u]:i[u+a],c=this.decodeTables[n][f];if(!(c>=0))if(c===Fi)u=o,c=this.defaultCharUnicode.charCodeAt(0);else if(c===oCe){var p=o>=0?e.slice(o,u+1):i.slice(o+a,u+1+a),g=(p[0]-129)*12600+(p[1]-48)*1260+(p[2]-129)*10+(p[3]-48),v=Mq(this.gb18030.gbChars,g);c=this.gb18030.uChars[v]+g-this.gb18030.gbChars[v]}else if(c<=Do){n=Do-c;continue}else if(c<=Ks){for(var x=this.decodeTableSeq[Ks-c],E=0;E>8;c=x[x.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+c+" at "+n+"/"+f);if(c>65535){c-=65536;var D=55296+Math.floor(c/1024);r[l++]=D&255,r[l++]=D>>8,c=56320+c%1024}r[l++]=c&255,r[l++]=c>>8,n=0,o=u+1}return this.nodeIdx=n,this.prevBuf=o>=0?e.slice(o):i.slice(o+a),r.slice(0,l).toString("ucs2")};Nq.prototype.end=function(){for(var e="";this.prevBuf.length>0;){e+=this.defaultCharUnicode;var r=this.prevBuf.slice(1);this.prevBuf=Jm.alloc(0),this.nodeIdx=0,r.length>0&&(e+=this.write(r))}return this.nodeIdx=0,e};function Mq(e,r){if(e[0]>r)return-1;for(var n=0,i=e.length;n{uSt.exports=[["0","\0",128],["a1","\uFF61",62],["8140","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7"],["8180","\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["81b8","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["81c8","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["81da","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["81f0","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["81fc","\u25EF"],["824f","\uFF10",9],["8260","\uFF21",25],["8281","\uFF41",25],["829f","\u3041",82],["8340","\u30A1",62],["8380","\u30E0",22],["839f","\u0391",16,"\u03A3",6],["83bf","\u03B1",16,"\u03C3",6],["8440","\u0410",5,"\u0401\u0416",25],["8470","\u0430",5,"\u0451\u0436",7],["8480","\u043E",17],["849f","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["8740","\u2460",19,"\u2160",9],["875f","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["877e","\u337B"],["8780","\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["889f","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["8940","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186"],["8980","\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["8a40","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B"],["8a80","\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["8b40","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551"],["8b80","\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["8c40","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8"],["8c80","\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["8d40","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D"],["8d80","\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["8e40","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62"],["8e80","\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["8f40","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3"],["8f80","\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["9040","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8"],["9080","\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["9140","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB"],["9180","\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["9240","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4"],["9280","\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["9340","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC"],["9380","\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["9440","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885"],["9480","\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["9540","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577"],["9580","\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["9640","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6"],["9680","\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["9740","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32"],["9780","\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["9840","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["989f","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["9940","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED"],["9980","\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["9a40","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638"],["9a80","\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["9b40","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80"],["9b80","\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],["9c40","\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060"],["9c80","\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["9d40","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B"],["9d80","\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["9e40","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E"],["9e80","\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["9f40","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616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6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD"],["e080","\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e140","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF"],["e180","\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e240","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0"],["e280","\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5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7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e440","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264"],["e480","\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e540","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC"],["e580","\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["e640","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7"],["e680","\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],["e740","\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C"],["e780","\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["e840","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599"],["e880","\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["e940","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43"],["e980","\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],["ea40","\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF"],["ea80","\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0\u582F\u69C7\u9059\u7464\u51DC\u7199"],["ed40","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F"],["ed80","\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["ee40","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559"],["ee80","\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["eeef","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["f040","\uE000",62],["f080","\uE03F",124],["f140","\uE0BC",62],["f180","\uE0FB",124],["f240","\uE178",62],["f280","\uE1B7",124],["f340","\uE234",62],["f380","\uE273",124],["f440","\uE2F0",62],["f480","\uE32F",124],["f540","\uE3AC",62],["f580","\uE3EB",124],["f640","\uE468",62],["f680","\uE4A7",124],["f740","\uE524",62],["f780","\uE563",124],["f840","\uE5E0",62],["f880","\uE61F",124],["f940","\uE69C"],["fa40","\u2170",9,"\u2160",9,"\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u2235\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A"],["fa80","\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F"],["fb40","\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19"],["fb80","\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9"],["fc40","\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"]]});var fCe=S((prr,lSt)=>{lSt.exports=[["0","\0",127],["8ea1","\uFF61",62],["a1a1","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7"],["a2a1","\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["a2ba","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["a2ca","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["a2dc","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["a2f2","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["a2fe","\u25EF"],["a3b0","\uFF10",9],["a3c1","\uFF21",25],["a3e1","\uFF41",25],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a8a1","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["ada1","\u2460",19,"\u2160",9],["adc0","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["addf","\u337B\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["b0a1","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["b1a1","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC"],["b2a1","\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["b3a1","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431"],["b4a1","\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["b5a1","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC"],["b6a1","\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["b7a1","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372"],["b8a1","\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["b9a1","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC"],["baa1","\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["bba1","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642"],["bca1","\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["bda1","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F"],["bea1","\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["bfa1","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE"],["c0a1","\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["c1a1","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E"],["c2a1","\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["c3a1","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5"],["c4a1","\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["c5a1","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230"],["c6a1","\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["c7a1","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6"],["c8a1","\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["c9a1","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D"],["caa1","\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["cba1","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80"],["cca1","\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["cda1","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483"],["cea1","\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["cfa1","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["d0a1","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["d1a1","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8"],["d2a1","\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["d3a1","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709"],["d4a1","\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["d5a1","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5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\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A"],["d8a1","\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["d9a1","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC"],["daa1","\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["dba1","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD"],["dca1","\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["dda1","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE"],["dea1","\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],["dfa1","\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC"],["e0a1","\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e1a1","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670"],["e2a1","\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e3a1","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50"],["e4a1","\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7B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\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e7a1","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9"],["e8a1","\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e9a1","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759"],["eaa1","\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["eba1","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\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E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8"],["eea1","\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["efa1","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E"],["f0a1","\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["f1a1","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\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F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0"],["f4a1","\u582F\u69C7\u9059\u7464\u51DC\u7199"],["f9a1","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7"],["faa1","\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["fba1","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA"],["fca1","\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["fcf1","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["8fa2af","\u02D8\u02C7\xB8\u02D9\u02DD\xAF\u02DB\u02DA\uFF5E\u0384\u0385"],["8fa2c2","\xA1\xA6\xBF"],["8fa2eb","\xBA\xAA\xA9\xAE\u2122\xA4\u2116"],["8fa6e1","\u0386\u0388\u0389\u038A\u03AA"],["8fa6e7","\u038C"],["8fa6e9","\u038E\u03AB"],["8fa6ec","\u038F"],["8fa6f1","\u03AC\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03C2\u03CD\u03CB\u03B0\u03CE"],["8fa7c2","\u0402",10,"\u040E\u040F"],["8fa7f2","\u0452",10,"\u045E\u045F"],["8fa9a1","\xC6\u0110"],["8fa9a4","\u0126"],["8fa9a6","\u0132"],["8fa9a8","\u0141\u013F"],["8fa9ab","\u014A\xD8\u0152"],["8fa9af","\u0166\xDE"],["8fa9c1","\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0142\u0140\u0149\u014B\xF8\u0153\xDF\u0167\xFE"],["8faaa1","\xC1\xC0\xC4\xC2\u0102\u01CD\u0100\u0104\xC5\xC3\u0106\u0108\u010C\xC7\u010A\u010E\xC9\xC8\xCB\xCA\u011A\u0116\u0112\u0118"],["8faaba","\u011C\u011E\u0122\u0120\u0124\xCD\xCC\xCF\xCE\u01CF\u0130\u012A\u012E\u0128\u0134\u0136\u0139\u013D\u013B\u0143\u0147\u0145\xD1\xD3\xD2\xD6\xD4\u01D1\u0150\u014C\xD5\u0154\u0158\u0156\u015A\u015C\u0160\u015E\u0164\u0162\xDA\xD9\xDC\xDB\u016C\u01D3\u0170\u016A\u0172\u016E\u0168\u01D7\u01DB\u01D9\u01D5\u0174\xDD\u0178\u0176\u0179\u017D\u017B"],["8faba1","\xE1\xE0\xE4\xE2\u0103\u01CE\u0101\u0105\xE5\xE3\u0107\u0109\u010D\xE7\u010B\u010F\xE9\xE8\xEB\xEA\u011B\u0117\u0113\u0119\u01F5\u011D\u011F"],["8fabbd","\u0121\u0125\xED\xEC\xEF\xEE\u01D0"],["8fabc5","\u012B\u012F\u0129\u0135\u0137\u013A\u013E\u013C\u0144\u0148\u0146\xF1\xF3\xF2\xF6\xF4\u01D2\u0151\u014D\xF5\u0155\u0159\u0157\u015B\u015D\u0161\u015F\u0165\u0163\xFA\xF9\xFC\xFB\u016D\u01D4\u0171\u016B\u0173\u016F\u0169\u01D8\u01DC\u01DA\u01D6\u0175\xFD\xFF\u0177\u017A\u017E\u017C"],["8fb0a1","\u4E02\u4E04\u4E05\u4E0C\u4E12\u4E1F\u4E23\u4E24\u4E28\u4E2B\u4E2E\u4E2F\u4E30\u4E35\u4E40\u4E41\u4E44\u4E47\u4E51\u4E5A\u4E5C\u4E63\u4E68\u4E69\u4E74\u4E75\u4E79\u4E7F\u4E8D\u4E96\u4E97\u4E9D\u4EAF\u4EB9\u4EC3\u4ED0\u4EDA\u4EDB\u4EE0\u4EE1\u4EE2\u4EE8\u4EEF\u4EF1\u4EF3\u4EF5\u4EFD\u4EFE\u4EFF\u4F00\u4F02\u4F03\u4F08\u4F0B\u4F0C\u4F12\u4F15\u4F16\u4F17\u4F19\u4F2E\u4F31\u4F60\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E\u4F40\u4F42\u4F48\u4F49\u4F4B\u4F4C\u4F52\u4F54\u4F56\u4F58\u4F5F\u4F63\u4F6A\u4F6C\u4F6E\u4F71\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F7E\u4F81\u4F82\u4F84"],["8fb1a1","\u4F85\u4F89\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F94\u4F97\u4F99\u4F9A\u4F9E\u4F9F\u4FB2\u4FB7\u4FB9\u4FBB\u4FBC\u4FBD\u4FBE\u4FC0\u4FC1\u4FC5\u4FC6\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FCF\u4FD2\u4FDC\u4FE0\u4FE2\u4FF0\u4FF2\u4FFC\u4FFD\u4FFF\u5000\u5001\u5004\u5007\u500A\u500C\u500E\u5010\u5013\u5017\u5018\u501B\u501C\u501D\u501E\u5022\u5027\u502E\u5030\u5032\u5033\u5035\u5040\u5041\u5042\u5045\u5046\u504A\u504C\u504E\u5051\u5052\u5053\u5057\u5059\u505F\u5060\u5062\u5063\u5066\u5067\u506A\u506D\u5070\u5071\u503B\u5081\u5083\u5084\u5086\u508A\u508E\u508F\u5090"],["8fb2a1","\u5092\u5093\u5094\u5096\u509B\u509C\u509E",4,"\u50AA\u50AF\u50B0\u50B9\u50BA\u50BD\u50C0\u50C3\u50C4\u50C7\u50CC\u50CE\u50D0\u50D3\u50D4\u50D8\u50DC\u50DD\u50DF\u50E2\u50E4\u50E6\u50E8\u50E9\u50EF\u50F1\u50F6\u50FA\u50FE\u5103\u5106\u5107\u5108\u510B\u510C\u510D\u510E\u50F2\u5110\u5117\u5119\u511B\u511C\u511D\u511E\u5123\u5127\u5128\u512C\u512D\u512F\u5131\u5133\u5134\u5135\u5138\u5139\u5142\u514A\u514F\u5153\u5155\u5157\u5158\u515F\u5164\u5166\u517E\u5183\u5184\u518B\u518E\u5198\u519D\u51A1\u51A3\u51AD\u51B8\u51BA\u51BC\u51BE\u51BF\u51C2"],["8fb3a1","\u51C8\u51CF\u51D1\u51D2\u51D3\u51D5\u51D8\u51DE\u51E2\u51E5\u51EE\u51F2\u51F3\u51F4\u51F7\u5201\u5202\u5205\u5212\u5213\u5215\u5216\u5218\u5222\u5228\u5231\u5232\u5235\u523C\u5245\u5249\u5255\u5257\u5258\u525A\u525C\u525F\u5260\u5261\u5266\u526E\u5277\u5278\u5279\u5280\u5282\u5285\u528A\u528C\u5293\u5295\u5296\u5297\u5298\u529A\u529C\u52A4\u52A5\u52A6\u52A7\u52AF\u52B0\u52B6\u52B7\u52B8\u52BA\u52BB\u52BD\u52C0\u52C4\u52C6\u52C8\u52CC\u52CF\u52D1\u52D4\u52D6\u52DB\u52DC\u52E1\u52E5\u52E8\u52E9\u52EA\u52EC\u52F0\u52F1\u52F4\u52F6\u52F7\u5300\u5303\u530A\u530B"],["8fb4a1","\u530C\u5311\u5313\u5318\u531B\u531C\u531E\u531F\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u5330\u5332\u5335\u533C\u533D\u533E\u5342\u534C\u534B\u5359\u535B\u5361\u5363\u5365\u536C\u536D\u5372\u5379\u537E\u5383\u5387\u5388\u538E\u5393\u5394\u5399\u539D\u53A1\u53A4\u53AA\u53AB\u53AF\u53B2\u53B4\u53B5\u53B7\u53B8\u53BA\u53BD\u53C0\u53C5\u53CF\u53D2\u53D3\u53D5\u53DA\u53DD\u53DE\u53E0\u53E6\u53E7\u53F5\u5402\u5413\u541A\u5421\u5427\u5428\u542A\u542F\u5431\u5434\u5435\u5443\u5444\u5447\u544D\u544F\u545E\u5462\u5464\u5466\u5467\u5469\u546B\u546D\u546E\u5474\u547F"],["8fb5a1","\u5481\u5483\u5485\u5488\u5489\u548D\u5491\u5495\u5496\u549C\u549F\u54A1\u54A6\u54A7\u54A9\u54AA\u54AD\u54AE\u54B1\u54B7\u54B9\u54BA\u54BB\u54BF\u54C6\u54CA\u54CD\u54CE\u54E0\u54EA\u54EC\u54EF\u54F6\u54FC\u54FE\u54FF\u5500\u5501\u5505\u5508\u5509\u550C\u550D\u550E\u5515\u552A\u552B\u5532\u5535\u5536\u553B\u553C\u553D\u5541\u5547\u5549\u554A\u554D\u5550\u5551\u5558\u555A\u555B\u555E\u5560\u5561\u5564\u5566\u557F\u5581\u5582\u5586\u5588\u558E\u558F\u5591\u5592\u5593\u5594\u5597\u55A3\u55A4\u55AD\u55B2\u55BF\u55C1\u55C3\u55C6\u55C9\u55CB\u55CC\u55CE\u55D1\u55D2"],["8fb6a1","\u55D3\u55D7\u55D8\u55DB\u55DE\u55E2\u55E9\u55F6\u55FF\u5605\u5608\u560A\u560D",5,"\u5619\u562C\u5630\u5633\u5635\u5637\u5639\u563B\u563C\u563D\u563F\u5640\u5641\u5643\u5644\u5646\u5649\u564B\u564D\u564F\u5654\u565E\u5660\u5661\u5662\u5663\u5666\u5669\u566D\u566F\u5671\u5672\u5675\u5684\u5685\u5688\u568B\u568C\u5695\u5699\u569A\u569D\u569E\u569F\u56A6\u56A7\u56A8\u56A9\u56AB\u56AC\u56AD\u56B1\u56B3\u56B7\u56BE\u56C5\u56C9\u56CA\u56CB\u56CF\u56D0\u56CC\u56CD\u56D9\u56DC\u56DD\u56DF\u56E1\u56E4",4,"\u56F1\u56EB\u56ED"],["8fb7a1","\u56F6\u56F7\u5701\u5702\u5707\u570A\u570C\u5711\u5715\u571A\u571B\u571D\u5720\u5722\u5723\u5724\u5725\u5729\u572A\u572C\u572E\u572F\u5733\u5734\u573D\u573E\u573F\u5745\u5746\u574C\u574D\u5752\u5762\u5765\u5767\u5768\u576B\u576D",4,"\u5773\u5774\u5775\u5777\u5779\u577A\u577B\u577C\u577E\u5781\u5783\u578C\u5794\u5797\u5799\u579A\u579C\u579D\u579E\u579F\u57A1\u5795\u57A7\u57A8\u57A9\u57AC\u57B8\u57BD\u57C7\u57C8\u57CC\u57CF\u57D5\u57DD\u57DE\u57E4\u57E6\u57E7\u57E9\u57ED\u57F0\u57F5\u57F6\u57F8\u57FD\u57FE\u57FF\u5803\u5804\u5808\u5809\u57E1"],["8fb8a1","\u580C\u580D\u581B\u581E\u581F\u5820\u5826\u5827\u582D\u5832\u5839\u583F\u5849\u584C\u584D\u584F\u5850\u5855\u585F\u5861\u5864\u5867\u5868\u5878\u587C\u587F\u5880\u5881\u5887\u5888\u5889\u588A\u588C\u588D\u588F\u5890\u5894\u5896\u589D\u58A0\u58A1\u58A2\u58A6\u58A9\u58B1\u58B2\u58C4\u58BC\u58C2\u58C8\u58CD\u58CE\u58D0\u58D2\u58D4\u58D6\u58DA\u58DD\u58E1\u58E2\u58E9\u58F3\u5905\u5906\u590B\u590C\u5912\u5913\u5914\u8641\u591D\u5921\u5923\u5924\u5928\u592F\u5930\u5933\u5935\u5936\u593F\u5943\u5946\u5952\u5953\u5959\u595B\u595D\u595E\u595F\u5961\u5963\u596B\u596D"],["8fb9a1","\u596F\u5972\u5975\u5976\u5979\u597B\u597C\u598B\u598C\u598E\u5992\u5995\u5997\u599F\u59A4\u59A7\u59AD\u59AE\u59AF\u59B0\u59B3\u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A2\u5FA7\u5FAB\u5FA4\u5FAC\u5FAF\u5FB0\u5FB1\u5FB8\u5FC4\u5FC7\u5FC8\u5FC9\u5FCB\u5FD0",4,"\u5FDE\u5FE1\u5FE2\u5FE8\u5FE9\u5FEA\u5FEC\u5FED\u5FEE\u5FEF\u5FF2\u5FF3\u5FF6\u5FFA\u5FFC\u6007\u600A\u600D\u6013\u6014\u6017\u6018\u601A\u601F\u6024\u602D\u6033\u6035\u6040\u6047\u6048\u6049\u604C\u6051\u6054\u6056\u6057\u605D\u6061\u6067\u6071\u607E\u607F\u6082\u6086\u6088\u608A\u608E\u6091\u6093\u6095\u6098\u609D\u609E\u60A2\u60A4\u60A5\u60A8\u60B0\u60B1\u60B7"],["8fbea1","\u60BB\u60BE\u60C2\u60C4\u60C8\u60C9\u60CA\u60CB\u60CE\u60CF\u60D4\u60D5\u60D9\u60DB\u60DD\u60DE\u60E2\u60E5\u60F2\u60F5\u60F8\u60FC\u60FD\u6102\u6107\u610A\u610C\u6110",4,"\u6116\u6117\u6119\u611C\u611E\u6122\u612A\u612B\u6130\u6131\u6135\u6136\u6137\u6139\u6141\u6145\u6146\u6149\u615E\u6160\u616C\u6172\u6178\u617B\u617C\u617F\u6180\u6181\u6183\u6184\u618B\u618D\u6192\u6193\u6197\u6198\u619C\u619D\u619F\u61A0\u61A5\u61A8\u61AA\u61AD\u61B8\u61B9\u61BC\u61C0\u61C1\u61C2\u61CE\u61CF\u61D5\u61DC\u61DD\u61DE\u61DF\u61E1\u61E2\u61E7\u61E9\u61E5"],["8fbfa1","\u61EC\u61ED\u61EF\u6201\u6203\u6204\u6207\u6213\u6215\u621C\u6220\u6222\u6223\u6227\u6229\u622B\u6239\u623D\u6242\u6243\u6244\u6246\u624C\u6250\u6251\u6252\u6254\u6256\u625A\u625C\u6264\u626D\u626F\u6273\u627A\u627D\u628D\u628E\u628F\u6290\u62A6\u62A8\u62B3\u62B6\u62B7\u62BA\u62BE\u62BF\u62C4\u62CE\u62D5\u62D6\u62DA\u62EA\u62F2\u62F4\u62FC\u62FD\u6303\u6304\u630A\u630B\u630D\u6310\u6313\u6316\u6318\u6329\u632A\u632D\u6335\u6336\u6339\u633C\u6341\u6342\u6343\u6344\u6346\u634A\u634B\u634E\u6352\u6353\u6354\u6358\u635B\u6365\u6366\u636C\u636D\u6371\u6374\u6375"],["8fc0a1","\u6378\u637C\u637D\u637F\u6382\u6384\u6387\u638A\u6390\u6394\u6395\u6399\u639A\u639E\u63A4\u63A6\u63AD\u63AE\u63AF\u63BD\u63C1\u63C5\u63C8\u63CE\u63D1\u63D3\u63D4\u63D5\u63DC\u63E0\u63E5\u63EA\u63EC\u63F2\u63F3\u63F5\u63F8\u63F9\u6409\u640A\u6410\u6412\u6414\u6418\u641E\u6420\u6422\u6424\u6425\u6429\u642A\u642F\u6430\u6435\u643D\u643F\u644B\u644F\u6451\u6452\u6453\u6454\u645A\u645B\u645C\u645D\u645F\u6460\u6461\u6463\u646D\u6473\u6474\u647B\u647D\u6485\u6487\u648F\u6490\u6491\u6498\u6499\u649B\u649D\u649F\u64A1\u64A3\u64A6\u64A8\u64AC\u64B3\u64BD\u64BE\u64BF"],["8fc1a1","\u64C4\u64C9\u64CA\u64CB\u64CC\u64CE\u64D0\u64D1\u64D5\u64D7\u64E4\u64E5\u64E9\u64EA\u64ED\u64F0\u64F5\u64F7\u64FB\u64FF\u6501\u6504\u6508\u6509\u650A\u650F\u6513\u6514\u6516\u6519\u651B\u651E\u651F\u6522\u6526\u6529\u652E\u6531\u653A\u653C\u653D\u6543\u6547\u6549\u6550\u6552\u6554\u655F\u6560\u6567\u656B\u657A\u657D\u6581\u6585\u658A\u6592\u6595\u6598\u659D\u65A0\u65A3\u65A6\u65AE\u65B2\u65B3\u65B4\u65BF\u65C2\u65C8\u65C9\u65CE\u65D0\u65D4\u65D6\u65D8\u65DF\u65F0\u65F2\u65F4\u65F5\u65F9\u65FE\u65FF\u6600\u6604\u6608\u6609\u660D\u6611\u6612\u6615\u6616\u661D"],["8fc2a1","\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6631\u6633\u6639\u6637\u6640\u6645\u6646\u664A\u664C\u6651\u664E\u6657\u6658\u6659\u665B\u665C\u6660\u6661\u66FB\u666A\u666B\u666C\u667E\u6673\u6675\u667F\u6677\u6678\u6679\u667B\u6680\u667C\u668B\u668C\u668D\u6690\u6692\u6699\u669A\u669B\u669C\u669F\u66A0\u66A4\u66AD\u66B1\u66B2\u66B5\u66BB\u66BF\u66C0\u66C2\u66C3\u66C8\u66CC\u66CE\u66CF\u66D4\u66DB\u66DF\u66E8\u66EB\u66EC\u66EE\u66FA\u6705\u6707\u670E\u6713\u6719\u671C\u6720\u6722\u6733\u673E\u6745\u6747\u6748\u674C\u6754\u6755\u675D"],["8fc3a1","\u6766\u676C\u676E\u6774\u6776\u677B\u6781\u6784\u678E\u678F\u6791\u6793\u6796\u6798\u6799\u679B\u67B0\u67B1\u67B2\u67B5\u67BB\u67BC\u67BD\u67F9\u67C0\u67C2\u67C3\u67C5\u67C8\u67C9\u67D2\u67D7\u67D9\u67DC\u67E1\u67E6\u67F0\u67F2\u67F6\u67F7\u6852\u6814\u6819\u681D\u681F\u6828\u6827\u682C\u682D\u682F\u6830\u6831\u6833\u683B\u683F\u6844\u6845\u684A\u684C\u6855\u6857\u6858\u685B\u686B\u686E",4,"\u6875\u6879\u687A\u687B\u687C\u6882\u6884\u6886\u6888\u6896\u6898\u689A\u689C\u68A1\u68A3\u68A5\u68A9\u68AA\u68AE\u68B2\u68BB\u68C5\u68C8\u68CC\u68CF"],["8fc4a1","\u68D0\u68D1\u68D3\u68D6\u68D9\u68DC\u68DD\u68E5\u68E8\u68EA\u68EB\u68EC\u68ED\u68F0\u68F1\u68F5\u68F6\u68FB\u68FC\u68FD\u6906\u6909\u690A\u6910\u6911\u6913\u6916\u6917\u6931\u6933\u6935\u6938\u693B\u6942\u6945\u6949\u694E\u6957\u695B\u6963\u6964\u6965\u6966\u6968\u6969\u696C\u6970\u6971\u6972\u697A\u697B\u697F\u6980\u698D\u6992\u6996\u6998\u69A1\u69A5\u69A6\u69A8\u69AB\u69AD\u69AF\u69B7\u69B8\u69BA\u69BC\u69C5\u69C8\u69D1\u69D6\u69D7\u69E2\u69E5\u69EE\u69EF\u69F1\u69F3\u69F5\u69FE\u6A00\u6A01\u6A03\u6A0F\u6A11\u6A15\u6A1A\u6A1D\u6A20\u6A24\u6A28\u6A30\u6A32"],["8fc5a1","\u6A34\u6A37\u6A3B\u6A3E\u6A3F\u6A45\u6A46\u6A49\u6A4A\u6A4E\u6A50\u6A51\u6A52\u6A55\u6A56\u6A5B\u6A64\u6A67\u6A6A\u6A71\u6A73\u6A7E\u6A81\u6A83\u6A86\u6A87\u6A89\u6A8B\u6A91\u6A9B\u6A9D\u6A9E\u6A9F\u6AA5\u6AAB\u6AAF\u6AB0\u6AB1\u6AB4\u6ABD\u6ABE\u6ABF\u6AC6\u6AC9\u6AC8\u6ACC\u6AD0\u6AD4\u6AD5\u6AD6\u6ADC\u6ADD\u6AE4\u6AE7\u6AEC\u6AF0\u6AF1\u6AF2\u6AFC\u6AFD\u6B02\u6B03\u6B06\u6B07\u6B09\u6B0F\u6B10\u6B11\u6B17\u6B1B\u6B1E\u6B24\u6B28\u6B2B\u6B2C\u6B2F\u6B35\u6B36\u6B3B\u6B3F\u6B46\u6B4A\u6B4D\u6B52\u6B56\u6B58\u6B5D\u6B60\u6B67\u6B6B\u6B6E\u6B70\u6B75\u6B7D"],["8fc6a1","\u6B7E\u6B82\u6B85\u6B97\u6B9B\u6B9F\u6BA0\u6BA2\u6BA3\u6BA8\u6BA9\u6BAC\u6BAD\u6BAE\u6BB0\u6BB8\u6BB9\u6BBD\u6BBE\u6BC3\u6BC4\u6BC9\u6BCC\u6BD6\u6BDA\u6BE1\u6BE3\u6BE6\u6BE7\u6BEE\u6BF1\u6BF7\u6BF9\u6BFF\u6C02\u6C04\u6C05\u6C09\u6C0D\u6C0E\u6C10\u6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6F04\u6F08\u6F0A\u6F0C\u6F0D\u6F16\u6F18\u6F1A\u6F1B\u6F26\u6F29\u6F2A\u6F2F\u6F30\u6F33\u6F36\u6F3B\u6F3C\u6F2D\u6F4F\u6F51\u6F52\u6F53\u6F57\u6F59\u6F5A\u6F5D\u6F5E\u6F61\u6F62\u6F68\u6F6C\u6F7D\u6F7E\u6F83\u6F87\u6F88\u6F8B\u6F8C\u6F8D\u6F90\u6F92\u6F93\u6F94\u6F96\u6F9A\u6F9F\u6FA0\u6FA5\u6FA6\u6FA7\u6FA8\u6FAE\u6FAF\u6FB0\u6FB5\u6FB6\u6FBC\u6FC5\u6FC7\u6FC8\u6FCA"],["8fc9a1","\u6FDA\u6FDE\u6FE8\u6FE9\u6FF0\u6FF5\u6FF9\u6FFC\u6FFD\u7000\u7005\u7006\u7007\u700D\u7017\u7020\u7023\u702F\u7034\u7037\u7039\u703C\u7043\u7044\u7048\u7049\u704A\u704B\u7054\u7055\u705D\u705E\u704E\u7064\u7065\u706C\u706E\u7075\u7076\u707E\u7081\u7085\u7086\u7094",4,"\u709B\u70A4\u70AB\u70B0\u70B1\u70B4\u70B7\u70CA\u70D1\u70D3\u70D4\u70D5\u70D6\u70D8\u70DC\u70E4\u70FA\u7103",4,"\u710B\u710C\u710F\u711E\u7120\u712B\u712D\u712F\u7130\u7131\u7138\u7141\u7145\u7146\u7147\u714A\u714B\u7150\u7152\u7157\u715A\u715C\u715E\u7160"],["8fcaa1","\u7168\u7179\u7180\u7185\u7187\u718C\u7192\u719A\u719B\u71A0\u71A2\u71AF\u71B0\u71B2\u71B3\u71BA\u71BF\u71C0\u71C1\u71C4\u71CB\u71CC\u71D3\u71D6\u71D9\u71DA\u71DC\u71F8\u71FE\u7200\u7207\u7208\u7209\u7213\u7217\u721A\u721D\u721F\u7224\u722B\u722F\u7234\u7238\u7239\u7241\u7242\u7243\u7245\u724E\u724F\u7250\u7253\u7255\u7256\u725A\u725C\u725E\u7260\u7263\u7268\u726B\u726E\u726F\u7271\u7277\u7278\u727B\u727C\u727F\u7284\u7289\u728D\u728E\u7293\u729B\u72A8\u72AD\u72AE\u72B1\u72B4\u72BE\u72C1\u72C7\u72C9\u72CC\u72D5\u72D6\u72D8\u72DF\u72E5\u72F3\u72F4\u72FA\u72FB"],["8fcba1","\u72FE\u7302\u7304\u7305\u7307\u730B\u730D\u7312\u7313\u7318\u7319\u731E\u7322\u7324\u7327\u7328\u732C\u7331\u7332\u7335\u733A\u733B\u733D\u7343\u734D\u7350\u7352\u7356\u7358\u735D\u735E\u735F\u7360\u7366\u7367\u7369\u736B\u736C\u736E\u736F\u7371\u7377\u7379\u737C\u7380\u7381\u7383\u7385\u7386\u738E\u7390\u7393\u7395\u7397\u7398\u739C\u739E\u739F\u73A0\u73A2\u73A5\u73A6\u73AA\u73AB\u73AD\u73B5\u73B7\u73B9\u73BC\u73BD\u73BF\u73C5\u73C6\u73C9\u73CB\u73CC\u73CF\u73D2\u73D3\u73D6\u73D9\u73DD\u73E1\u73E3\u73E6\u73E7\u73E9\u73F4\u73F5\u73F7\u73F9\u73FA\u73FB\u73FD"],["8fcca1","\u73FF\u7400\u7401\u7404\u7407\u740A\u7411\u741A\u741B\u7424\u7426\u7428",9,"\u7439\u7440\u7443\u7444\u7446\u7447\u744B\u744D\u7451\u7452\u7457\u745D\u7462\u7466\u7467\u7468\u746B\u746D\u746E\u7471\u7472\u7480\u7481\u7485\u7486\u7487\u7489\u748F\u7490\u7491\u7492\u7498\u7499\u749A\u749C\u749F\u74A0\u74A1\u74A3\u74A6\u74A8\u74A9\u74AA\u74AB\u74AE\u74AF\u74B1\u74B2\u74B5\u74B9\u74BB\u74BF\u74C8\u74C9\u74CC\u74D0\u74D3\u74D8\u74DA\u74DB\u74DE\u74DF\u74E4\u74E8\u74EA\u74EB\u74EF\u74F4\u74FA\u74FB\u74FC\u74FF\u7506"],["8fcda1","\u7512\u7516\u7517\u7520\u7521\u7524\u7527\u7529\u752A\u752F\u7536\u7539\u753D\u753E\u753F\u7540\u7543\u7547\u7548\u754E\u7550\u7552\u7557\u755E\u755F\u7561\u756F\u7571\u7579",5,"\u7581\u7585\u7590\u7592\u7593\u7595\u7599\u759C\u75A2\u75A4\u75B4\u75BA\u75BF\u75C0\u75C1\u75C4\u75C6\u75CC\u75CE\u75CF\u75D7\u75DC\u75DF\u75E0\u75E1\u75E4\u75E7\u75EC\u75EE\u75EF\u75F1\u75F9\u7600\u7602\u7603\u7604\u7607\u7608\u760A\u760C\u760F\u7612\u7613\u7615\u7616\u7619\u761B\u761C\u761D\u761E\u7623\u7625\u7626\u7629\u762D\u7632\u7633\u7635\u7638\u7639"],["8fcea1","\u763A\u763C\u764A\u7640\u7641\u7643\u7644\u7645\u7649\u764B\u7655\u7659\u765F\u7664\u7665\u766D\u766E\u766F\u7671\u7674\u7681\u7685\u768C\u768D\u7695\u769B\u769C\u769D\u769F\u76A0\u76A2",6,"\u76AA\u76AD\u76BD\u76C1\u76C5\u76C9\u76CB\u76CC\u76CE\u76D4\u76D9\u76E0\u76E6\u76E8\u76EC\u76F0\u76F1\u76F6\u76F9\u76FC\u7700\u7706\u770A\u770E\u7712\u7714\u7715\u7717\u7719\u771A\u771C\u7722\u7728\u772D\u772E\u772F\u7734\u7735\u7736\u7739\u773D\u773E\u7742\u7745\u7746\u774A\u774D\u774E\u774F\u7752\u7756\u7757\u775C\u775E\u775F\u7760\u7762"],["8fcfa1","\u7764\u7767\u776A\u776C\u7770\u7772\u7773\u7774\u777A\u777D\u7780\u7784\u778C\u778D\u7794\u7795\u7796\u779A\u779F\u77A2\u77A7\u77AA\u77AE\u77AF\u77B1\u77B5\u77BE\u77C3\u77C9\u77D1\u77D2\u77D5\u77D9\u77DE\u77DF\u77E0\u77E4\u77E6\u77EA\u77EC\u77F0\u77F1\u77F4\u77F8\u77FB\u7805\u7806\u7809\u780D\u780E\u7811\u781D\u7821\u7822\u7823\u782D\u782E\u7830\u7835\u7837\u7843\u7844\u7847\u7848\u784C\u784E\u7852\u785C\u785E\u7860\u7861\u7863\u7864\u7868\u786A\u786E\u787A\u787E\u788A\u788F\u7894\u7898\u78A1\u789D\u789E\u789F\u78A4\u78A8\u78AC\u78AD\u78B0\u78B1\u78B2\u78B3"],["8fd0a1","\u78BB\u78BD\u78BF\u78C7\u78C8\u78C9\u78CC\u78CE\u78D2\u78D3\u78D5\u78D6\u78E4\u78DB\u78DF\u78E0\u78E1\u78E6\u78EA\u78F2\u78F3\u7900\u78F6\u78F7\u78FA\u78FB\u78FF\u7906\u790C\u7910\u791A\u791C\u791E\u791F\u7920\u7925\u7927\u7929\u792D\u7931\u7934\u7935\u793B\u793D\u793F\u7944\u7945\u7946\u794A\u794B\u794F\u7951\u7954\u7958\u795B\u795C\u7967\u7969\u796B\u7972\u7979\u797B\u797C\u797E\u798B\u798C\u7991\u7993\u7994\u7995\u7996\u7998\u799B\u799C\u79A1\u79A8\u79A9\u79AB\u79AF\u79B1\u79B4\u79B8\u79BB\u79C2\u79C4\u79C7\u79C8\u79CA\u79CF\u79D4\u79D6\u79DA\u79DD\u79DE"],["8fd1a1","\u79E0\u79E2\u79E5\u79EA\u79EB\u79ED\u79F1\u79F8\u79FC\u7A02\u7A03\u7A07\u7A09\u7A0A\u7A0C\u7A11\u7A15\u7A1B\u7A1E\u7A21\u7A27\u7A2B\u7A2D\u7A2F\u7A30\u7A34\u7A35\u7A38\u7A39\u7A3A\u7A44\u7A45\u7A47\u7A48\u7A4C\u7A55\u7A56\u7A59\u7A5C\u7A5D\u7A5F\u7A60\u7A65\u7A67\u7A6A\u7A6D\u7A75\u7A78\u7A7E\u7A80\u7A82\u7A85\u7A86\u7A8A\u7A8B\u7A90\u7A91\u7A94\u7A9E\u7AA0\u7AA3\u7AAC\u7AB3\u7AB5\u7AB9\u7ABB\u7ABC\u7AC6\u7AC9\u7ACC\u7ACE\u7AD1\u7ADB\u7AE8\u7AE9\u7AEB\u7AEC\u7AF1\u7AF4\u7AFB\u7AFD\u7AFE\u7B07\u7B14\u7B1F\u7B23\u7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83\u7D85\u7D86\u7D88\u7D8B\u7D8C\u7D8D\u7D91\u7D96\u7D97\u7D9D"],["8fd4a1","\u7D9E\u7DA6\u7DA7\u7DAA\u7DB3\u7DB6\u7DB7\u7DB9\u7DC2",4,"\u7DCC\u7DCD\u7DCE\u7DD7\u7DD9\u7E00\u7DE2\u7DE5\u7DE6\u7DEA\u7DEB\u7DED\u7DF1\u7DF5\u7DF6\u7DF9\u7DFA\u7E08\u7E10\u7E11\u7E15\u7E17\u7E1C\u7E1D\u7E20\u7E27\u7E28\u7E2C\u7E2D\u7E2F\u7E33\u7E36\u7E3F\u7E44\u7E45\u7E47\u7E4E\u7E50\u7E52\u7E58\u7E5F\u7E61\u7E62\u7E65\u7E6B\u7E6E\u7E6F\u7E73\u7E78\u7E7E\u7E81\u7E86\u7E87\u7E8A\u7E8D\u7E91\u7E95\u7E98\u7E9A\u7E9D\u7E9E\u7F3C\u7F3B\u7F3D\u7F3E\u7F3F\u7F43\u7F44\u7F47\u7F4F\u7F52\u7F53\u7F5B\u7F5C\u7F5D\u7F61\u7F63\u7F64\u7F65\u7F66\u7F6D"],["8fd5a1","\u7F71\u7F7D\u7F7E\u7F7F\u7F80\u7F8B\u7F8D\u7F8F\u7F90\u7F91\u7F96\u7F97\u7F9C\u7FA1\u7FA2\u7FA6\u7FAA\u7FAD\u7FB4\u7FBC\u7FBF\u7FC0\u7FC3\u7FC8\u7FCE\u7FCF\u7FDB\u7FDF\u7FE3\u7FE5\u7FE8\u7FEC\u7FEE\u7FEF\u7FF2\u7FFA\u7FFD\u7FFE\u7FFF\u8007\u8008\u800A\u800D\u800E\u800F\u8011\u8013\u8014\u8016\u801D\u801E\u801F\u8020\u8024\u8026\u802C\u802E\u8030\u8034\u8035\u8037\u8039\u803A\u803C\u803E\u8040\u8044\u8060\u8064\u8066\u806D\u8071\u8075\u8081\u8088\u808E\u809C\u809E\u80A6\u80A7\u80AB\u80B8\u80B9\u80C8\u80CD\u80CF\u80D2\u80D4\u80D5\u80D7\u80D8\u80E0\u80ED\u80EE"],["8fd6a1","\u80F0\u80F2\u80F3\u80F6\u80F9\u80FA\u80FE\u8103\u810B\u8116\u8117\u8118\u811C\u811E\u8120\u8124\u8127\u812C\u8130\u8135\u813A\u813C\u8145\u8147\u814A\u814C\u8152\u8157\u8160\u8161\u8167\u8168\u8169\u816D\u816F\u8177\u8181\u8190\u8184\u8185\u8186\u818B\u818E\u8196\u8198\u819B\u819E\u81A2\u81AE\u81B2\u81B4\u81BB\u81CB\u81C3\u81C5\u81CA\u81CE\u81CF\u81D5\u81D7\u81DB\u81DD\u81DE\u81E1\u81E4\u81EB\u81EC\u81F0\u81F1\u81F2\u81F5\u81F6\u81F8\u81F9\u81FD\u81FF\u8200\u8203\u820F\u8213\u8214\u8219\u821A\u821D\u8221\u8222\u8228\u8232\u8234\u823A\u8243\u8244\u8245\u8246"],["8fd7a1","\u824B\u824E\u824F\u8251\u8256\u825C\u8260\u8263\u8267\u826D\u8274\u827B\u827D\u827F\u8280\u8281\u8283\u8284\u8287\u8289\u828A\u828E\u8291\u8294\u8296\u8298\u829A\u829B\u82A0\u82A1\u82A3\u82A4\u82A7\u82A8\u82A9\u82AA\u82AE\u82B0\u82B2\u82B4\u82B7\u82BA\u82BC\u82BE\u82BF\u82C6\u82D0\u82D5\u82DA\u82E0\u82E2\u82E4\u82E8\u82EA\u82ED\u82EF\u82F6\u82F7\u82FD\u82FE\u8300\u8301\u8307\u8308\u830A\u830B\u8354\u831B\u831D\u831E\u831F\u8321\u8322\u832C\u832D\u832E\u8330\u8333\u8337\u833A\u833C\u833D\u8342\u8343\u8344\u8347\u834D\u834E\u8351\u8355\u8356\u8357\u8370\u8378"],["8fd8a1","\u837D\u837F\u8380\u8382\u8384\u8386\u838D\u8392\u8394\u8395\u8398\u8399\u839B\u839C\u839D\u83A6\u83A7\u83A9\u83AC\u83BE\u83BF\u83C0\u83C7\u83C9\u83CF\u83D0\u83D1\u83D4\u83DD\u8353\u83E8\u83EA\u83F6\u83F8\u83F9\u83FC\u8401\u8406\u840A\u840F\u8411\u8415\u8419\u83AD\u842F\u8439\u8445\u8447\u8448\u844A\u844D\u844F\u8451\u8452\u8456\u8458\u8459\u845A\u845C\u8460\u8464\u8465\u8467\u846A\u8470\u8473\u8474\u8476\u8478\u847C\u847D\u8481\u8485\u8492\u8493\u8495\u849E\u84A6\u84A8\u84A9\u84AA\u84AF\u84B1\u84B4\u84BA\u84BD\u84BE\u84C0\u84C2\u84C7\u84C8\u84CC\u84CF\u84D3"],["8fd9a1","\u84DC\u84E7\u84EA\u84EF\u84F0\u84F1\u84F2\u84F7\u8532\u84FA\u84FB\u84FD\u8502\u8503\u8507\u850C\u850E\u8510\u851C\u851E\u8522\u8523\u8524\u8525\u8527\u852A\u852B\u852F\u8533\u8534\u8536\u853F\u8546\u854F",4,"\u8556\u8559\u855C",6,"\u8564\u856B\u856F\u8579\u857A\u857B\u857D\u857F\u8581\u8585\u8586\u8589\u858B\u858C\u858F\u8593\u8598\u859D\u859F\u85A0\u85A2\u85A5\u85A7\u85B4\u85B6\u85B7\u85B8\u85BC\u85BD\u85BE\u85BF\u85C2\u85C7\u85CA\u85CB\u85CE\u85AD\u85D8\u85DA\u85DF\u85E0\u85E6\u85E8\u85ED\u85F3\u85F6\u85FC"],["8fdaa1","\u85FF\u8600\u8604\u8605\u860D\u860E\u8610\u8611\u8612\u8618\u8619\u861B\u861E\u8621\u8627\u8629\u8636\u8638\u863A\u863C\u863D\u8640\u8642\u8646\u8652\u8653\u8656\u8657\u8658\u8659\u865D\u8660",4,"\u8669\u866C\u866F\u8675\u8676\u8677\u867A\u868D\u8691\u8696\u8698\u869A\u869C\u86A1\u86A6\u86A7\u86A8\u86AD\u86B1\u86B3\u86B4\u86B5\u86B7\u86B8\u86B9\u86BF\u86C0\u86C1\u86C3\u86C5\u86D1\u86D2\u86D5\u86D7\u86DA\u86DC\u86E0\u86E3\u86E5\u86E7\u8688\u86FA\u86FC\u86FD\u8704\u8705\u8707\u870B\u870E\u870F\u8710\u8713\u8714\u8719\u871E\u871F\u8721\u8723"],["8fdba1","\u8728\u872E\u872F\u8731\u8732\u8739\u873A\u873C\u873D\u873E\u8740\u8743\u8745\u874D\u8758\u875D\u8761\u8764\u8765\u876F\u8771\u8772\u877B\u8783",6,"\u878B\u878C\u8790\u8793\u8795\u8797\u8798\u8799\u879E\u87A0\u87A3\u87A7\u87AC\u87AD\u87AE\u87B1\u87B5\u87BE\u87BF\u87C1\u87C8\u87C9\u87CA\u87CE\u87D5\u87D6\u87D9\u87DA\u87DC\u87DF\u87E2\u87E3\u87E4\u87EA\u87EB\u87ED\u87F1\u87F3\u87F8\u87FA\u87FF\u8801\u8803\u8806\u8809\u880A\u880B\u8810\u8819\u8812\u8813\u8814\u8818\u881A\u881B\u881C\u881E\u881F\u8828\u882D\u882E\u8830\u8832\u8835"],["8fdca1","\u883A\u883C\u8841\u8843\u8845\u8848\u8849\u884A\u884B\u884E\u8851\u8855\u8856\u8858\u885A\u885C\u885F\u8860\u8864\u8869\u8871\u8879\u887B\u8880\u8898\u889A\u889B\u889C\u889F\u88A0\u88A8\u88AA\u88BA\u88BD\u88BE\u88C0\u88CA",4,"\u88D1\u88D2\u88D3\u88DB\u88DE\u88E7\u88EF\u88F0\u88F1\u88F5\u88F7\u8901\u8906\u890D\u890E\u890F\u8915\u8916\u8918\u8919\u891A\u891C\u8920\u8926\u8927\u8928\u8930\u8931\u8932\u8935\u8939\u893A\u893E\u8940\u8942\u8945\u8946\u8949\u894F\u8952\u8957\u895A\u895B\u895C\u8961\u8962\u8963\u896B\u896E\u8970\u8973\u8975\u897A"],["8fdda1","\u897B\u897C\u897D\u8989\u898D\u8990\u8994\u8995\u899B\u899C\u899F\u89A0\u89A5\u89B0\u89B4\u89B5\u89B6\u89B7\u89BC\u89D4",4,"\u89E5\u89E9\u89EB\u89ED\u89F1\u89F3\u89F6\u89F9\u89FD\u89FF\u8A04\u8A05\u8A07\u8A0F\u8A11\u8A12\u8A14\u8A15\u8A1E\u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FE3\u8FE4\u8FE8\u8FEE\u8FF1\u8FF5\u8FF6\u8FFB\u8FFE\u9002\u9004\u9008\u900C\u9018\u901B\u9028\u9029\u902F\u902A\u902C\u902D\u9033\u9034\u9037\u903F\u9043\u9044\u904C\u905B\u905D\u9062\u9066\u9067\u906C\u9070\u9074\u9079\u9085\u9088\u908B\u908C\u908E\u9090\u9095\u9097\u9098\u9099\u909B\u90A0\u90A1\u90A2\u90A5\u90B0\u90B2\u90B3\u90B4\u90B6\u90BD\u90CC\u90BE\u90C3"],["8fe2a1","\u90C4\u90C5\u90C7\u90C8\u90D5\u90D7\u90D8\u90D9\u90DC\u90DD\u90DF\u90E5\u90D2\u90F6\u90EB\u90EF\u90F0\u90F4\u90FE\u90FF\u9100\u9104\u9105\u9106\u9108\u910D\u9110\u9114\u9116\u9117\u9118\u911A\u911C\u911E\u9120\u9125\u9122\u9123\u9127\u9129\u912E\u912F\u9131\u9134\u9136\u9137\u9139\u913A\u913C\u913D\u9143\u9147\u9148\u914F\u9153\u9157\u9159\u915A\u915B\u9161\u9164\u9167\u916D\u9174\u9179\u917A\u917B\u9181\u9183\u9185\u9186\u918A\u918E\u9191\u9193\u9194\u9195\u9198\u919E\u91A1\u91A6\u91A8\u91AC\u91AD\u91AE\u91B0\u91B1\u91B2\u91B3\u91B6\u91BB\u91BC\u91BD\u91BF"],["8fe3a1","\u91C2\u91C3\u91C5\u91D3\u91D4\u91D7\u91D9\u91DA\u91DE\u91E4\u91E5\u91E9\u91EA\u91EC",5,"\u91F7\u91F9\u91FB\u91FD\u9200\u9201\u9204\u9205\u9206\u9207\u9209\u920A\u920C\u9210\u9212\u9213\u9216\u9218\u921C\u921D\u9223\u9224\u9225\u9226\u9228\u922E\u922F\u9230\u9233\u9235\u9236\u9238\u9239\u923A\u923C\u923E\u9240\u9242\u9243\u9246\u9247\u924A\u924D\u924E\u924F\u9251\u9258\u9259\u925C\u925D\u9260\u9261\u9265\u9267\u9268\u9269\u926E\u926F\u9270\u9275",4,"\u927B\u927C\u927D\u927F\u9288\u9289\u928A\u928D\u928E\u9292\u9297"],["8fe4a1","\u9299\u929F\u92A0\u92A4\u92A5\u92A7\u92A8\u92AB\u92AF\u92B2\u92B6\u92B8\u92BA\u92BB\u92BC\u92BD\u92BF",4,"\u92C5\u92C6\u92C7\u92C8\u92CB\u92CC\u92CD\u92CE\u92D0\u92D3\u92D5\u92D7\u92D8\u92D9\u92DC\u92DD\u92DF\u92E0\u92E1\u92E3\u92E5\u92E7\u92E8\u92EC\u92EE\u92F0\u92F9\u92FB\u92FF\u9300\u9302\u9308\u930D\u9311\u9314\u9315\u931C\u931D\u931E\u931F\u9321\u9324\u9325\u9327\u9329\u932A\u9333\u9334\u9336\u9337\u9347\u9348\u9349\u9350\u9351\u9352\u9355\u9357\u9358\u935A\u935E\u9364\u9365\u9367\u9369\u936A\u936D\u936F\u9370\u9371\u9373\u9374\u9376"],["8fe5a1","\u937A\u937D\u937F\u9380\u9381\u9382\u9388\u938A\u938B\u938D\u938F\u9392\u9395\u9398\u939B\u939E\u93A1\u93A3\u93A4\u93A6\u93A8\u93AB\u93B4\u93B5\u93B6\u93BA\u93A9\u93C1\u93C4\u93C5\u93C6\u93C7\u93C9",4,"\u93D3\u93D9\u93DC\u93DE\u93DF\u93E2\u93E6\u93E7\u93F9\u93F7\u93F8\u93FA\u93FB\u93FD\u9401\u9402\u9404\u9408\u9409\u940D\u940E\u940F\u9415\u9416\u9417\u941F\u942E\u942F\u9431\u9432\u9433\u9434\u943B\u943F\u943D\u9443\u9445\u9448\u944A\u944C\u9455\u9459\u945C\u945F\u9461\u9463\u9468\u946B\u946D\u946E\u946F\u9471\u9472\u9484\u9483\u9578\u9579"],["8fe6a1","\u957E\u9584\u9588\u958C\u958D\u958E\u959D\u959E\u959F\u95A1\u95A6\u95A9\u95AB\u95AC\u95B4\u95B6\u95BA\u95BD\u95BF\u95C6\u95C8\u95C9\u95CB\u95D0\u95D1\u95D2\u95D3\u95D9\u95DA\u95DD\u95DE\u95DF\u95E0\u95E4\u95E6\u961D\u961E\u9622\u9624\u9625\u9626\u962C\u9631\u9633\u9637\u9638\u9639\u963A\u963C\u963D\u9641\u9652\u9654\u9656\u9657\u9658\u9661\u966E\u9674\u967B\u967C\u967E\u967F\u9681\u9682\u9683\u9684\u9689\u9691\u9696\u969A\u969D\u969F\u96A4\u96A5\u96A6\u96A9\u96AE\u96AF\u96B3\u96BA\u96CA\u96D2\u5DB2\u96D8\u96DA\u96DD\u96DE\u96DF\u96E9\u96EF\u96F1\u96FA\u9702"],["8fe7a1","\u9703\u9705\u9709\u971A\u971B\u971D\u9721\u9722\u9723\u9728\u9731\u9733\u9741\u9743\u974A\u974E\u974F\u9755\u9757\u9758\u975A\u975B\u9763\u9767\u976A\u976E\u9773\u9776\u9777\u9778\u977B\u977D\u977F\u9780\u9789\u9795\u9796\u9797\u9799\u979A\u979E\u979F\u97A2\u97AC\u97AE\u97B1\u97B2\u97B5\u97B6\u97B8\u97B9\u97BA\u97BC\u97BE\u97BF\u97C1\u97C4\u97C5\u97C7\u97C9\u97CA\u97CC\u97CD\u97CE\u97D0\u97D1\u97D4\u97D7\u97D8\u97D9\u97DD\u97DE\u97E0\u97DB\u97E1\u97E4\u97EF\u97F1\u97F4\u97F7\u97F8\u97FA\u9807\u980A\u9819\u980D\u980E\u9814\u9816\u981C\u981E\u9820\u9823\u9826"],["8fe8a1","\u982B\u982E\u982F\u9830\u9832\u9833\u9835\u9825\u983E\u9844\u9847\u984A\u9851\u9852\u9853\u9856\u9857\u9859\u985A\u9862\u9863\u9865\u9866\u986A\u986C\u98AB\u98AD\u98AE\u98B0\u98B4\u98B7\u98B8\u98BA\u98BB\u98BF\u98C2\u98C5\u98C8\u98CC\u98E1\u98E3\u98E5\u98E6\u98E7\u98EA\u98F3\u98F6\u9902\u9907\u9908\u9911\u9915\u9916\u9917\u991A\u991B\u991C\u991F\u9922\u9926\u9927\u992B\u9931",4,"\u9939\u993A\u993B\u993C\u9940\u9941\u9946\u9947\u9948\u994D\u994E\u9954\u9958\u9959\u995B\u995C\u995E\u995F\u9960\u999B\u999D\u999F\u99A6\u99B0\u99B1\u99B2\u99B5"],["8fe9a1","\u99B9\u99BA\u99BD\u99BF\u99C3\u99C9\u99D3\u99D4\u99D9\u99DA\u99DC\u99DE\u99E7\u99EA\u99EB\u99EC\u99F0\u99F4\u99F5\u99F9\u99FD\u99FE\u9A02\u9A03\u9A04\u9A0B\u9A0C\u9A10\u9A11\u9A16\u9A1E\u9A20\u9A22\u9A23\u9A24\u9A27\u9A2D\u9A2E\u9A33\u9A35\u9A36\u9A38\u9A47\u9A41\u9A44\u9A4A\u9A4B\u9A4C\u9A4E\u9A51\u9A54\u9A56\u9A5D\u9AAA\u9AAC\u9AAE\u9AAF\u9AB2\u9AB4\u9AB5\u9AB6\u9AB9\u9ABB\u9ABE\u9ABF\u9AC1\u9AC3\u9AC6\u9AC8\u9ACE\u9AD0\u9AD2\u9AD5\u9AD6\u9AD7\u9ADB\u9ADC\u9AE0\u9AE4\u9AE5\u9AE7\u9AE9\u9AEC\u9AF2\u9AF3\u9AF5\u9AF9\u9AFA\u9AFD\u9AFF",4],["8feaa1","\u9B04\u9B05\u9B08\u9B09\u9B0B\u9B0C\u9B0D\u9B0E\u9B10\u9B12\u9B16\u9B19\u9B1B\u9B1C\u9B20\u9B26\u9B2B\u9B2D\u9B33\u9B34\u9B35\u9B37\u9B39\u9B3A\u9B3D\u9B48\u9B4B\u9B4C\u9B55\u9B56\u9B57\u9B5B\u9B5E\u9B61\u9B63\u9B65\u9B66\u9B68\u9B6A",4,"\u9B73\u9B75\u9B77\u9B78\u9B79\u9B7F\u9B80\u9B84\u9B85\u9B86\u9B87\u9B89\u9B8A\u9B8B\u9B8D\u9B8F\u9B90\u9B94\u9B9A\u9B9D\u9B9E\u9BA6\u9BA7\u9BA9\u9BAC\u9BB0\u9BB1\u9BB2\u9BB7\u9BB8\u9BBB\u9BBC\u9BBE\u9BBF\u9BC1\u9BC7\u9BC8\u9B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B0\u9EB3\u9EB4\u9EB5\u9EC6\u9EC8\u9ECB\u9ED5\u9EDF\u9EE4\u9EE7\u9EEC\u9EED\u9EEE\u9EF0\u9EF1\u9EF2\u9EF5"],["8feda1","\u9EF8\u9EFF\u9F02\u9F03\u9F09\u9F0F\u9F10\u9F11\u9F12\u9F14\u9F16\u9F17\u9F19\u9F1A\u9F1B\u9F1F\u9F22\u9F26\u9F2A\u9F2B\u9F2F\u9F31\u9F32\u9F34\u9F37\u9F39\u9F3A\u9F3C\u9F3D\u9F3F\u9F41\u9F43",4,"\u9F53\u9F55\u9F56\u9F57\u9F58\u9F5A\u9F5D\u9F5E\u9F68\u9F69\u9F6D",4,"\u9F73\u9F75\u9F7A\u9F7D\u9F8F\u9F90\u9F91\u9F92\u9F94\u9F96\u9F97\u9F9E\u9FA1\u9FA2\u9FA3\u9FA5"]]});var GP=S((drr,fSt)=>{fSt.exports=[["0","\0",127,"\u20AC"],["8140","\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A",5,"\u4E72\u4E74",9,"\u4E7F",6,"\u4E87\u4E8A"],["8180","\u4E90\u4E96\u4E97\u4E99\u4E9C\u4E9D\u4E9E\u4EA3\u4EAA\u4EAF\u4EB0\u4EB1\u4EB4\u4EB6\u4EB7\u4EB8\u4EB9\u4EBC\u4EBD\u4EBE\u4EC8\u4ECC\u4ECF\u4ED0\u4ED2\u4EDA\u4EDB\u4EDC\u4EE0\u4EE2\u4EE6\u4EE7\u4EE9\u4EED\u4EEE\u4EEF\u4EF1\u4EF4\u4EF8\u4EF9\u4EFA\u4EFC\u4EFE\u4F00\u4F02",6,"\u4F0B\u4F0C\u4F12",4,"\u4F1C\u4F1D\u4F21\u4F23\u4F28\u4F29\u4F2C\u4F2D\u4F2E\u4F31\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E",4,"\u4F44\u4F45\u4F47",5,"\u4F52\u4F54\u4F56\u4F61\u4F62\u4F66\u4F68\u4F6A\u4F6B\u4F6D\u4F6E\u4F71\u4F72\u4F75\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F80\u4F81\u4F82\u4F85\u4F86\u4F87\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F95\u4F96\u4F98\u4F99\u4F9A\u4F9C\u4F9E\u4F9F\u4FA1\u4FA2"],["8240","\u4FA4\u4FAB\u4FAD\u4FB0",4,"\u4FB6",8,"\u4FC0\u4FC1\u4FC2\u4FC6\u4FC7\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FD2",4,"\u4FD9\u4FDB\u4FE0\u4FE2\u4FE4\u4FE5\u4FE7\u4FEB\u4FEC\u4FF0\u4FF2\u4FF4\u4FF5\u4FF6\u4FF7\u4FF9\u4FFB\u4FFC\u4FFD\u4FFF",11],["8280","\u500B\u500E\u5010\u5011\u5013\u5015\u5016\u5017\u501B\u501D\u501E\u5020\u5022\u5023\u5024\u5027\u502B\u502F",10,"\u503B\u503D\u503F\u5040\u5041\u5042\u5044\u5045\u5046\u5049\u504A\u504B\u504D\u5050",4,"\u5056\u5057\u5058\u5059\u505B\u505D",7,"\u5066",5,"\u506D",8,"\u5078\u5079\u507A\u507C\u507D\u5081\u5082\u5083\u5084\u5086\u5087\u5089\u508A\u508B\u508C\u508E",20,"\u50A4\u50A6\u50AA\u50AB\u50AD",4,"\u50B3",6,"\u50BC"],["8340","\u50BD",17,"\u50D0",5,"\u50D7\u50D8\u50D9\u50DB",10,"\u50E8\u50E9\u50EA\u50EB\u50EF\u50F0\u50F1\u50F2\u50F4\u50F6",4,"\u50FC",9,"\u5108"],["8380","\u5109\u510A\u510C",5,"\u5113",13,"\u5122",28,"\u5142\u5147\u514A\u514C\u514E\u514F\u5150\u5152\u5153\u5157\u5158\u5159\u515B\u515D",4,"\u5163\u5164\u5166\u5167\u5169\u516A\u516F\u5172\u517A\u517E\u517F\u5183\u5184\u5186\u5187\u518A\u518B\u518E\u518F\u5190\u5191\u5193\u5194\u5198\u519A\u519D\u519E\u519F\u51A1\u51A3\u51A6",4,"\u51AD\u51AE\u51B4\u51B8\u51B9\u51BA\u51BE\u51BF\u51C1\u51C2\u51C3\u51C5\u51C8\u51CA\u51CD\u51CE\u51D0\u51D2",5],["8440","\u51D8\u51D9\u51DA\u51DC\u51DE\u51DF\u51E2\u51E3\u51E5",5,"\u51EC\u51EE\u51F1\u51F2\u51F4\u51F7\u51FE\u5204\u5205\u5209\u520B\u520C\u520F\u5210\u5213\u5214\u5215\u521C\u521E\u521F\u5221\u5222\u5223\u5225\u5226\u5227\u522A\u522C\u522F\u5231\u5232\u5234\u5235\u523C\u523E\u5244",5,"\u524B\u524E\u524F\u5252\u5253\u5255\u5257\u5258"],["8480","\u5259\u525A\u525B\u525D\u525F\u5260\u5262\u5263\u5264\u5266\u5268\u526B\u526C\u526D\u526E\u5270\u5271\u5273",9,"\u527E\u5280\u5283",4,"\u5289",6,"\u5291\u5292\u5294",6,"\u529C\u52A4\u52A5\u52A6\u52A7\u52AE\u52AF\u52B0\u52B4",9,"\u52C0\u52C1\u52C2\u52C4\u52C5\u52C6\u52C8\u52CA\u52CC\u52CD\u52CE\u52CF\u52D1\u52D3\u52D4\u52D5\u52D7\u52D9",5,"\u52E0\u52E1\u52E2\u52E3\u52E5",10,"\u52F1",7,"\u52FB\u52FC\u52FD\u5301\u5302\u5303\u5304\u5307\u5309\u530A\u530B\u530C\u530E"],["8540","\u5311\u5312\u5313\u5314\u5318\u531B\u531C\u531E\u531F\u5322\u5324\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u532F",9,"\u533C\u533D\u5340\u5342\u5344\u5346\u534B\u534C\u534D\u5350\u5354\u5358\u5359\u535B\u535D\u5365\u5368\u536A\u536C\u536D\u5372\u5376\u5379\u537B\u537C\u537D\u537E\u5380\u5381\u5383\u5387\u5388\u538A\u538E\u538F"],["8580","\u5390",4,"\u5396\u5397\u5399\u539B\u539C\u539E\u53A0\u53A1\u53A4\u53A7\u53AA\u53AB\u53AC\u53AD\u53AF",6,"\u53B7\u53B8\u53B9\u53BA\u53BC\u53BD\u53BE\u53C0\u53C3",4,"\u53CE\u53CF\u53D0\u53D2\u53D3\u53D5\u53DA\u53DC\u53DD\u53DE\u53E1\u53E2\u53E7\u53F4\u53FA\u53FE\u53FF\u5400\u5402\u5405\u5407\u540B\u5414\u5418\u5419\u541A\u541C\u5422\u5424\u5425\u542A\u5430\u5433\u5436\u5437\u543A\u543D\u543F\u5441\u5442\u5444\u5445\u5447\u5449\u544C\u544D\u544E\u544F\u5451\u545A\u545D",4,"\u5463\u5465\u5467\u5469",7,"\u5474\u5479\u547A\u547E\u547F\u5481\u5483\u5485\u5487\u5488\u5489\u548A\u548D\u5491\u5493\u5497\u5498\u549C\u549E\u549F\u54A0\u54A1"],["8640","\u54A2\u54A5\u54AE\u54B0\u54B2\u54B5\u54B6\u54B7\u54B9\u54BA\u54BC\u54BE\u54C3\u54C5\u54CA\u54CB\u54D6\u54D8\u54DB\u54E0",4,"\u54EB\u54EC\u54EF\u54F0\u54F1\u54F4",5,"\u54FB\u54FE\u5500\u5502\u5503\u5504\u5505\u5508\u550A",4,"\u5512\u5513\u5515",5,"\u551C\u551D\u551E\u551F\u5521\u5525\u5526"],["8680","\u5528\u5529\u552B\u552D\u5532\u5534\u5535\u5536\u5538\u5539\u553A\u553B\u553D\u5540\u5542\u5545\u5547\u5548\u554B",4,"\u5551\u5552\u5553\u5554\u5557",4,"\u555D\u555E\u555F\u5560\u5562\u5563\u5568\u5569\u556B\u556F",5,"\u5579\u557A\u557D\u557F\u5585\u5586\u558C\u558D\u558E\u5590\u5592\u5593\u5595\u5596\u5597\u559A\u559B\u559E\u55A0",6,"\u55A8",8,"\u55B2\u55B4\u55B6\u55B8\u55BA\u55BC\u55BF",4,"\u55C6\u55C7\u55C8\u55CA\u55CB\u55CE\u55CF\u55D0\u55D5\u55D7",4,"\u55DE\u55E0\u55E2\u55E7\u55E9\u55ED\u55EE\u55F0\u55F1\u55F4\u55F6\u55F8",4,"\u55FF\u5602\u5603\u5604\u5605"],["8740","\u5606\u5607\u560A\u560B\u560D\u5610",7,"\u5619\u561A\u561C\u561D\u5620\u5621\u5622\u5625\u5626\u5628\u5629\u562A\u562B\u562E\u562F\u5630\u5633\u5635\u5637\u5638\u563A\u563C\u563D\u563E\u5640",11,"\u564F",4,"\u5655\u5656\u565A\u565B\u565D",4],["8780","\u5663\u5665\u5666\u5667\u566D\u566E\u566F\u5670\u5672\u5673\u5674\u5675\u5677\u5678\u5679\u567A\u567D",7,"\u5687",6,"\u5690\u5691\u5692\u5694",14,"\u56A4",10,"\u56B0",6,"\u56B8\u56B9\u56BA\u56BB\u56BD",12,"\u56CB",8,"\u56D5\u56D6\u56D8\u56D9\u56DC\u56E3\u56E5",5,"\u56EC\u56EE\u56EF\u56F2\u56F3\u56F6\u56F7\u56F8\u56FB\u56FC\u5700\u5701\u5702\u5705\u5707\u570B",6],["8840","\u5712",9,"\u571D\u571E\u5720\u5721\u5722\u5724\u5725\u5726\u5727\u572B\u5731\u5732\u5734",4,"\u573C\u573D\u573F\u5741\u5743\u5744\u5745\u5746\u5748\u5749\u574B\u5752",4,"\u5758\u5759\u5762\u5763\u5765\u5767\u576C\u576E\u5770\u5771\u5772\u5774\u5775\u5778\u5779\u577A\u577D\u577E\u577F\u5780"],["8880","\u5781\u5787\u5788\u5789\u578A\u578D",4,"\u5794",6,"\u579C\u579D\u579E\u579F\u57A5\u57A8\u57AA\u57AC\u57AF\u57B0\u57B1\u57B3\u57B5\u57B6\u57B7\u57B9",8,"\u57C4",6,"\u57CC\u57CD\u57D0\u57D1\u57D3\u57D6\u57D7\u57DB\u57DC\u57DE\u57E1\u57E2\u57E3\u57E5",7,"\u57EE\u57F0\u57F1\u57F2\u57F3\u57F5\u57F6\u57F7\u57FB\u57FC\u57FE\u57FF\u5801\u5803\u5804\u5805\u5808\u5809\u580A\u580C\u580E\u580F\u5810\u5812\u5813\u5814\u5816\u5817\u5818\u581A\u581B\u581C\u581D\u581F\u5822\u5823\u5825",4,"\u582B",4,"\u5831\u5832\u5833\u5834\u5836",7],["8940","\u583E",5,"\u5845",6,"\u584E\u584F\u5850\u5852\u5853\u5855\u5856\u5857\u5859",4,"\u585F",5,"\u5866",4,"\u586D",16,"\u587F\u5882\u5884\u5886\u5887\u5888\u588A\u588B\u588C"],["8980","\u588D",4,"\u5894",4,"\u589B\u589C\u589D\u58A0",7,"\u58AA",17,"\u58BD\u58BE\u58BF\u58C0\u58C2\u58C3\u58C4\u58C6",10,"\u58D2\u58D3\u58D4\u58D6",13,"\u58E5",5,"\u58ED\u58EF\u58F1\u58F2\u58F4\u58F5\u58F7\u58F8\u58FA",7,"\u5903\u5905\u5906\u5908",4,"\u590E\u5910\u5911\u5912\u5913\u5917\u5918\u591B\u591D\u591E\u5920\u5921\u5922\u5923\u5926\u5928\u592C\u5930\u5932\u5933\u5935\u5936\u593B"],["8a40","\u593D\u593E\u593F\u5940\u5943\u5945\u5946\u594A\u594C\u594D\u5950\u5952\u5953\u5959\u595B",4,"\u5961\u5963\u5964\u5966",12,"\u5975\u5977\u597A\u597B\u597C\u597E\u597F\u5980\u5985\u5989\u598B\u598C\u598E\u598F\u5990\u5991\u5994\u5995\u5998\u599A\u599B\u599C\u599D\u599F\u59A0\u59A1\u59A2\u59A6"],["8a80","\u59A7\u59AC\u59AD\u59B0\u59B1\u59B3",5,"\u59BA\u59BC\u59BD\u59BF",6,"\u59C7\u59C8\u59C9\u59CC\u59CD\u59CE\u59CF\u59D5\u59D6\u59D9\u59DB\u59DE",4,"\u59E4\u59E6\u59E7\u59E9\u59EA\u59EB\u59ED",11,"\u59FA\u59FC\u59FD\u59FE\u5A00\u5A02\u5A0A\u5A0B\u5A0D\u5A0E\u5A0F\u5A10\u5A12\u5A14\u5A15\u5A16\u5A17\u5A19\u5A1A\u5A1B\u5A1D\u5A1E\u5A21\u5A22\u5A24\u5A26\u5A27\u5A28\u5A2A",6,"\u5A33\u5A35\u5A37",4,"\u5A3D\u5A3E\u5A3F\u5A41",4,"\u5A47\u5A48\u5A4B",9,"\u5A56\u5A57\u5A58\u5A59\u5A5B",5],["8b40","\u5A61\u5A63\u5A64\u5A65\u5A66\u5A68\u5A69\u5A6B",8,"\u5A78\u5A79\u5A7B\u5A7C\u5A7D\u5A7E\u5A80",17,"\u5A93",6,"\u5A9C",13,"\u5AAB\u5AAC"],["8b80","\u5AAD",4,"\u5AB4\u5AB6\u5AB7\u5AB9",4,"\u5ABF\u5AC0\u5AC3",5,"\u5ACA\u5ACB\u5ACD",4,"\u5AD3\u5AD5\u5AD7\u5AD9\u5ADA\u5ADB\u5ADD\u5ADE\u5ADF\u5AE2\u5AE4\u5AE5\u5AE7\u5AE8\u5AEA\u5AEC",4,"\u5AF2",22,"\u5B0A",11,"\u5B18",25,"\u5B33\u5B35\u5B36\u5B38",7,"\u5B41",6],["8c40","\u5B48",7,"\u5B52\u5B56\u5B5E\u5B60\u5B61\u5B67\u5B68\u5B6B\u5B6D\u5B6E\u5B6F\u5B72\u5B74\u5B76\u5B77\u5B78\u5B79\u5B7B\u5B7C\u5B7E\u5B7F\u5B82\u5B86\u5B8A\u5B8D\u5B8E\u5B90\u5B91\u5B92\u5B94\u5B96\u5B9F\u5BA7\u5BA8\u5BA9\u5BAC\u5BAD\u5BAE\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBB\u5BBC\u5BC0\u5BC1\u5BC3\u5BC8\u5BC9\u5BCA\u5BCB\u5BCD\u5BCE\u5BCF"],["8c80","\u5BD1\u5BD4",8,"\u5BE0\u5BE2\u5BE3\u5BE6\u5BE7\u5BE9",4,"\u5BEF\u5BF1",6,"\u5BFD\u5BFE\u5C00\u5C02\u5C03\u5C05\u5C07\u5C08\u5C0B\u5C0C\u5C0D\u5C0E\u5C10\u5C12\u5C13\u5C17\u5C19\u5C1B\u5C1E\u5C1F\u5C20\u5C21\u5C23\u5C26\u5C28\u5C29\u5C2A\u5C2B\u5C2D\u5C2E\u5C2F\u5C30\u5C32\u5C33\u5C35\u5C36\u5C37\u5C43\u5C44\u5C46\u5C47\u5C4C\u5C4D\u5C52\u5C53\u5C54\u5C56\u5C57\u5C58\u5C5A\u5C5B\u5C5C\u5C5D\u5C5F\u5C62\u5C64\u5C67",6,"\u5C70\u5C72",6,"\u5C7B\u5C7C\u5C7D\u5C7E\u5C80\u5C83",4,"\u5C89\u5C8A\u5C8B\u5C8E\u5C8F\u5C92\u5C93\u5C95\u5C9D",4,"\u5CA4",4],["8d40","\u5CAA\u5CAE\u5CAF\u5CB0\u5CB2\u5CB4\u5CB6\u5CB9\u5CBA\u5CBB\u5CBC\u5CBE\u5CC0\u5CC2\u5CC3\u5CC5",5,"\u5CCC",5,"\u5CD3",5,"\u5CDA",6,"\u5CE2\u5CE3\u5CE7\u5CE9\u5CEB\u5CEC\u5CEE\u5CEF\u5CF1",9,"\u5CFC",4],["8d80","\u5D01\u5D04\u5D05\u5D08",5,"\u5D0F",4,"\u5D15\u5D17\u5D18\u5D19\u5D1A\u5D1C\u5D1D\u5D1F",4,"\u5D25\u5D28\u5D2A\u5D2B\u5D2C\u5D2F",4,"\u5D35",7,"\u5D3F",7,"\u5D48\u5D49\u5D4D",10,"\u5D59\u5D5A\u5D5C\u5D5E",10,"\u5D6A\u5D6D\u5D6E\u5D70\u5D71\u5D72\u5D73\u5D75",12,"\u5D83",21,"\u5D9A\u5D9B\u5D9C\u5D9E\u5D9F\u5DA0"],["8e40","\u5DA1",21,"\u5DB8",12,"\u5DC6",6,"\u5DCE",12,"\u5DDC\u5DDF\u5DE0\u5DE3\u5DE4\u5DEA\u5DEC\u5DED"],["8e80","\u5DF0\u5DF5\u5DF6\u5DF8",4,"\u5DFF\u5E00\u5E04\u5E07\u5E09\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u5FDC\u5FDE\u5FDF\u5FE2\u5FE3\u5FE5\u5FE6\u5FE8\u5FE9\u5FEC\u5FEF\u5FF0\u5FF2\u5FF3\u5FF4\u5FF6\u5FF7\u5FF9\u5FFA\u5FFC\u6007"],["9040","\u6008\u6009\u600B\u600C\u6010\u6011\u6013\u6017\u6018\u601A\u601E\u601F\u6022\u6023\u6024\u602C\u602D\u602E\u6030",4,"\u6036",4,"\u603D\u603E\u6040\u6044",6,"\u604C\u604E\u604F\u6051\u6053\u6054\u6056\u6057\u6058\u605B\u605C\u605E\u605F\u6060\u6061\u6065\u6066\u606E\u6071\u6072\u6074\u6075\u6077\u607E\u6080"],["9080","\u6081\u6082\u6085\u6086\u6087\u6088\u608A\u608B\u608E\u608F\u6090\u6091\u6093\u6095\u6097\u6098\u6099\u609C\u609E\u60A1\u60A2\u60A4\u60A5\u60A7\u60A9\u60AA\u60AE\u60B0\u60B3\u60B5\u60B6\u60B7\u60B9\u60BA\u60BD",7,"\u60C7\u60C8\u60C9\u60CC",4,"\u60D2\u60D3\u60D4\u60D6\u60D7\u60D9\u60DB\u60DE\u60E1",4,"\u60EA\u60F1\u60F2\u60F5\u60F7\u60F8\u60FB",4,"\u6102\u6103\u6104\u6105\u6107\u610A\u610B\u610C\u6110",4,"\u6116\u6117\u6118\u6119\u611B\u611C\u611D\u611E\u6121\u6122\u6125\u6128\u6129\u612A\u612C",18,"\u6140",6],["9140","\u6147\u6149\u614B\u614D\u614F\u6150\u6152\u6153\u6154\u6156",6,"\u615E\u615F\u6160\u6161\u6163\u6164\u6165\u6166\u6169",6,"\u6171\u6172\u6173\u6174\u6176\u6178",18,"\u618C\u618D\u618F",4,"\u6195"],["9180","\u6196",6,"\u619E",8,"\u61AA\u61AB\u61AD",9,"\u61B8",5,"\u61BF\u61C0\u61C1\u61C3",4,"\u61C9\u61CC",4,"\u61D3\u61D5",16,"\u61E7",13,"\u61F6",8,"\u6200",5,"\u6207\u6209\u6213\u6214\u6219\u621C\u621D\u621E\u6220\u6223\u6226\u6227\u6228\u6229\u622B\u622D\u622F\u6230\u6231\u6232\u6235\u6236\u6238",4,"\u6242\u6244\u6245\u6246\u624A"],["9240","\u624F\u6250\u6255\u6256\u6257\u6259\u625A\u625C",6,"\u6264\u6265\u6268\u6271\u6272\u6274\u6275\u6277\u6278\u627A\u627B\u627D\u6281\u6282\u6283\u6285\u6286\u6287\u6288\u628B",5,"\u6294\u6299\u629C\u629D\u629E\u62A3\u62A6\u62A7\u62A9\u62AA\u62AD\u62AE\u62AF\u62B0\u62B2\u62B3\u62B4\u62B6\u62B7\u62B8\u62BA\u62BE\u62C0\u62C1"],["9280","\u62C3\u62CB\u62CF\u62D1\u62D5\u62DD\u62DE\u62E0\u62E1\u62E4\u62EA\u62EB\u62F0\u62F2\u62F5\u62F8\u62F9\u62FA\u62FB\u6300\u6303\u6304\u6305\u6306\u630A\u630B\u630C\u630D\u630F\u6310\u6312\u6313\u6314\u6315\u6317\u6318\u6319\u631C\u6326\u6327\u6329\u632C\u632D\u632E\u6330\u6331\u6333",5,"\u633B\u633C\u633E\u633F\u6340\u6341\u6344\u6347\u6348\u634A\u6351\u6352\u6353\u6354\u6356",7,"\u6360\u6364\u6365\u6366\u6368\u636A\u636B\u636C\u636F\u6370\u6372\u6373\u6374\u6375\u6378\u6379\u637C\u637D\u637E\u637F\u6381\u6383\u6384\u6385\u6386\u638B\u638D\u6391\u6393\u6394\u6395\u6397\u6399",6,"\u63A1\u63A4\u63A6\u63AB\u63AF\u63B1\u63B2\u63B5\u63B6\u63B9\u63BB\u63BD\u63BF\u63C0"],["9340","\u63C1\u63C2\u63C3\u63C5\u63C7\u63C8\u63CA\u63CB\u63CC\u63D1\u63D3\u63D4\u63D5\u63D7",6,"\u63DF\u63E2\u63E4",4,"\u63EB\u63EC\u63EE\u63EF\u63F0\u63F1\u63F3\u63F5\u63F7\u63F9\u63FA\u63FB\u63FC\u63FE\u6403\u6404\u6406",4,"\u640D\u640E\u6411\u6412\u6415",5,"\u641D\u641F\u6422\u6423\u6424"],["9380","\u6425\u6427\u6428\u6429\u642B\u642E",5,"\u6435",4,"\u643B\u643C\u643E\u6440\u6442\u6443\u6449\u644B",6,"\u6453\u6455\u6456\u6457\u6459",4,"\u645F",7,"\u6468\u646A\u646B\u646C\u646E",9,"\u647B",6,"\u6483\u6486\u6488",8,"\u6493\u6494\u6497\u6498\u649A\u649B\u649C\u649D\u649F",4,"\u64A5\u64A6\u64A7\u64A8\u64AA\u64AB\u64AF\u64B1\u64B2\u64B3\u64B4\u64B6\u64B9\u64BB\u64BD\u64BE\u64BF\u64C1\u64C3\u64C4\u64C6",6,"\u64CF\u64D1\u64D3\u64D4\u64D5\u64D6\u64D9\u64DA"],["9440","\u64DB\u64DC\u64DD\u64DF\u64E0\u64E1\u64E3\u64E5\u64E7",24,"\u6501",7,"\u650A",7,"\u6513",4,"\u6519",8],["9480","\u6522\u6523\u6524\u6526",4,"\u652C\u652D\u6530\u6531\u6532\u6533\u6537\u653A\u653C\u653D\u6540",4,"\u6546\u6547\u654A\u654B\u654D\u654E\u6550\u6552\u6553\u6554\u6557\u6558\u655A\u655C\u655F\u6560\u6561\u6564\u6565\u6567\u6568\u6569\u656A\u656D\u656E\u656F\u6571\u6573\u6575\u6576\u6578",14,"\u6588\u6589\u658A\u658D\u658E\u658F\u6592\u6594\u6595\u6596\u6598\u659A\u659D\u659E\u65A0\u65A2\u65A3\u65A6\u65A8\u65AA\u65AC\u65AE\u65B1",7,"\u65BA\u65BB\u65BE\u65BF\u65C0\u65C2\u65C7\u65C8\u65C9\u65CA\u65CD\u65D0\u65D1\u65D3\u65D4\u65D5\u65D8",7,"\u65E1\u65E3\u65E4\u65EA\u65EB"],["9540","\u65F2\u65F3\u65F4\u65F5\u65F8\u65F9\u65FB",4,"\u6601\u6604\u6605\u6607\u6608\u6609\u660B\u660D\u6610\u6611\u6612\u6616\u6617\u6618\u661A\u661B\u661C\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6632\u6633\u6637",4,"\u663D\u663F\u6640\u6642\u6644",6,"\u664D\u664E\u6650\u6651\u6658"],["9580","\u6659\u665B\u665C\u665D\u665E\u6660\u6662\u6663\u6665\u6667\u6669",4,"\u6671\u6672\u6673\u6675\u6678\u6679\u667B\u667C\u667D\u667F\u6680\u6681\u6683\u6685\u6686\u6688\u6689\u668A\u668B\u668D\u668E\u668F\u6690\u6692\u6693\u6694\u6695\u6698",4,"\u669E",8,"\u66A9",4,"\u66AF",4,"\u66B5\u66B6\u66B7\u66B8\u66BA\u66BB\u66BC\u66BD\u66BF",25,"\u66DA\u66DE",7,"\u66E7\u66E8\u66EA",5,"\u66F1\u66F5\u66F6\u66F8\u66FA\u66FB\u66FD\u6701\u6702\u6703"],["9640","\u6704\u6705\u6706\u6707\u670C\u670E\u670F\u6711\u6712\u6713\u6716\u6718\u6719\u671A\u671C\u671E\u6720",5,"\u6727\u6729\u672E\u6730\u6732\u6733\u6736\u6737\u6738\u6739\u673B\u673C\u673E\u673F\u6741\u6744\u6745\u6747\u674A\u674B\u674D\u6752\u6754\u6755\u6757",4,"\u675D\u6762\u6763\u6764\u6766\u6767\u676B\u676C\u676E\u6771\u6774\u6776"],["9680","\u6778\u6779\u677A\u677B\u677D\u6780\u6782\u6783\u6785\u6786\u6788\u678A\u678C\u678D\u678E\u678F\u6791\u6792\u6793\u6794\u6796\u6799\u679B\u679F\u67A0\u67A1\u67A4\u67A6\u67A9\u67AC\u67AE\u67B1\u67B2\u67B4\u67B9",7,"\u67C2\u67C5",9,"\u67D5\u67D6\u67D7\u67DB\u67DF\u67E1\u67E3\u67E4\u67E6\u67E7\u67E8\u67EA\u67EB\u67ED\u67EE\u67F2\u67F5",7,"\u67FE\u6801\u6802\u6803\u6804\u6806\u680D\u6810\u6812\u6814\u6815\u6818",4,"\u681E\u681F\u6820\u6822",6,"\u682B",6,"\u6834\u6835\u6836\u683A\u683B\u683F\u6847\u684B\u684D\u684F\u6852\u6856",5],["9740","\u685C\u685D\u685E\u685F\u686A\u686C",7,"\u6875\u6878",8,"\u6882\u6884\u6887",7,"\u6890\u6891\u6892\u6894\u6895\u6896\u6898",9,"\u68A3\u68A4\u68A5\u68A9\u68AA\u68AB\u68AC\u68AE\u68B1\u68B2\u68B4\u68B6\u68B7\u68B8"],["9780","\u68B9",6,"\u68C1\u68C3",5,"\u68CA\u68CC\u68CE\u68CF\u68D0\u68D1\u68D3\u68D4\u68D6\u68D7\u68D9\u68DB",4,"\u68E1\u68E2\u68E4",9,"\u68EF\u68F2\u68F3\u68F4\u68F6\u68F7\u68F8\u68FB\u68FD\u68FE\u68FF\u6900\u6902\u6903\u6904\u6906",4,"\u690C\u690F\u6911\u6913",11,"\u6921\u6922\u6923\u6925",7,"\u692E\u692F\u6931\u6932\u6933\u6935\u6936\u6937\u6938\u693A\u693B\u693C\u693E\u6940\u6941\u6943",16,"\u6955\u6956\u6958\u6959\u695B\u695C\u695F"],["9840","\u6961\u6962\u6964\u6965\u6967\u6968\u6969\u696A\u696C\u696D\u696F\u6970\u6972",4,"\u697A\u697B\u697D\u697E\u697F\u6981\u6983\u6985\u698A\u698B\u698C\u698E",5,"\u6996\u6997\u6999\u699A\u699D",9,"\u69A9\u69AA\u69AC\u69AE\u69AF\u69B0\u69B2\u69B3\u69B5\u69B6\u69B8\u69B9\u69BA\u69BC\u69BD"],["9880","\u69BE\u69BF\u69C0\u69C2",7,"\u69CB\u69CD\u69CF\u69D1\u69D2\u69D3\u69D5",5,"\u69DC\u69DD\u69DE\u69E1",11,"\u69EE\u69EF\u69F0\u69F1\u69F3",9,"\u69FE\u6A00",9,"\u6A0B",11,"\u6A19",5,"\u6A20\u6A22",5,"\u6A29\u6A2B\u6A2C\u6A2D\u6A2E\u6A30\u6A32\u6A33\u6A34\u6A36",6,"\u6A3F",4,"\u6A45\u6A46\u6A48",7,"\u6A51",6,"\u6A5A"],["9940","\u6A5C",4,"\u6A62\u6A63\u6A64\u6A66",10,"\u6A72",6,"\u6A7A\u6A7B\u6A7D\u6A7E\u6A7F\u6A81\u6A82\u6A83\u6A85",8,"\u6A8F\u6A92",4,"\u6A98",7,"\u6AA1",5],["9980","\u6AA7\u6AA8\u6AAA\u6AAD",114,"\u6B25\u6B26\u6B28",6],["9a40","\u6B2F\u6B30\u6B31\u6B33\u6B34\u6B35\u6B36\u6B38\u6B3B\u6B3C\u6B3D\u6B3F\u6B40\u6B41\u6B42\u6B44\u6B45\u6B48\u6B4A\u6B4B\u6B4D",11,"\u6B5A",7,"\u6B68\u6B69\u6B6B",13,"\u6B7A\u6B7D\u6B7E\u6B7F\u6B80\u6B85\u6B88"],["9a80","\u6B8C\u6B8E\u6B8F\u6B90\u6B91\u6B94\u6B95\u6B97\u6B98\u6B99\u6B9C",4,"\u6BA2",7,"\u6BAB",7,"\u6BB6\u6BB8",6,"\u6BC0\u6BC3\u6BC4\u6BC6",4,"\u6BCC\u6BCE\u6BD0\u6BD1\u6BD8\u6BDA\u6BDC",4,"\u6BE2",7,"\u6BEC\u6BED\u6BEE\u6BF0\u6BF1\u6BF2\u6BF4\u6BF6\u6BF7\u6BF8\u6BFA\u6BFB\u6BFC\u6BFE",6,"\u6C08",4,"\u6C0E\u6C12\u6C17\u6C1C\u6C1D\u6C1E\u6C20\u6C23\u6C25\u6C2B\u6C2C\u6C2D\u6C31\u6C33\u6C36\u6C37\u6C39\u6C3A\u6C3B\u6C3C\u6C3E\u6C3F\u6C43\u6C44\u6C45\u6C48\u6C4B",4,"\u6C51\u6C52\u6C53\u6C56\u6C58"],["9b40","\u6C59\u6C5A\u6C62\u6C63\u6C65\u6C66\u6C67\u6C6B",4,"\u6C71\u6C73\u6C75\u6C77\u6C78\u6C7A\u6C7B\u6C7C\u6C7F\u6C80\u6C84\u6C87\u6C8A\u6C8B\u6C8D\u6C8E\u6C91\u6C92\u6C95\u6C96\u6C97\u6C98\u6C9A\u6C9C\u6C9D\u6C9E\u6CA0\u6CA2\u6CA8\u6CAC\u6CAF\u6CB0\u6CB4\u6CB5\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u6E2C\u6E2E\u6E30\u6E31\u6E33\u6E35"],["9c80","\u6E36\u6E37\u6E39\u6E3B",7,"\u6E45",7,"\u6E4F\u6E50\u6E51\u6E52\u6E55\u6E57\u6E59\u6E5A\u6E5C\u6E5D\u6E5E\u6E60",10,"\u6E6C\u6E6D\u6E6F",14,"\u6E80\u6E81\u6E82\u6E84\u6E87\u6E88\u6E8A",4,"\u6E91",6,"\u6E99\u6E9A\u6E9B\u6E9D\u6E9E\u6EA0\u6EA1\u6EA3\u6EA4\u6EA6\u6EA8\u6EA9\u6EAB\u6EAC\u6EAD\u6EAE\u6EB0\u6EB3\u6EB5\u6EB8\u6EB9\u6EBC\u6EBE\u6EBF\u6EC0\u6EC3\u6EC4\u6EC5\u6EC6\u6EC8\u6EC9\u6ECA\u6ECC\u6ECD\u6ECE\u6ED0\u6ED2\u6ED6\u6ED8\u6ED9\u6EDB\u6EDC\u6EDD\u6EE3\u6EE7\u6EEA",5],["9d40","\u6EF0\u6EF1\u6EF2\u6EF3\u6EF5\u6EF6\u6EF7\u6EF8\u6EFA",7,"\u6F03\u6F04\u6F05\u6F07\u6F08\u6F0A",4,"\u6F10\u6F11\u6F12\u6F16",9,"\u6F21\u6F22\u6F23\u6F25\u6F26\u6F27\u6F28\u6F2C\u6F2E\u6F30\u6F32\u6F34\u6F35\u6F37",6,"\u6F3F\u6F40\u6F41\u6F42"],["9d80","\u6F43\u6F44\u6F45\u6F48\u6F49\u6F4A\u6F4C\u6F4E",9,"\u6F59\u6F5A\u6F5B\u6F5D\u6F5F\u6F60\u6F61\u6F63\u6F64\u6F65\u6F67",5,"\u6F6F\u6F70\u6F71\u6F73\u6F75\u6F76\u6F77\u6F79\u6F7B\u6F7D",6,"\u6F85\u6F86\u6F87\u6F8A\u6F8B\u6F8F",12,"\u6F9D\u6F9E\u6F9F\u6FA0\u6FA2",4,"\u6FA8",10,"\u6FB4\u6FB5\u6FB7\u6FB8\u6FBA",5,"\u6FC1\u6FC3",5,"\u6FCA",6,"\u6FD3",10,"\u6FDF\u6FE2\u6FE3\u6FE4\u6FE5"],["9e40","\u6FE6",7,"\u6FF0",32,"\u7012",7,"\u701C",6,"\u7024",6],["9e80","\u702B",9,"\u7036\u7037\u7038\u703A",17,"\u704D\u704E\u7050",13,"\u705F",11,"\u706E\u7071\u7072\u7073\u7074\u7077\u7079\u707A\u707B\u707D\u7081\u7082\u7083\u7084\u7086\u7087\u7088\u708B\u708C\u708D\u708F\u7090\u7091\u7093\u7097\u7098\u709A\u709B\u709E",12,"\u70B0\u70B2\u70B4\u70B5\u70B6\u70BA\u70BE\u70BF\u70C4\u70C5\u70C6\u70C7\u70C9\u70CB",12,"\u70DA"],["9f40","\u70DC\u70DD\u70DE\u70E0\u70E1\u70E2\u70E3\u70E5\u70EA\u70EE\u70F0",6,"\u70F8\u70FA\u70FB\u70FC\u70FE",10,"\u710B",4,"\u7111\u7112\u7114\u7117\u711B",10,"\u7127",7,"\u7132\u7133\u7134"],["9f80","\u7135\u7137",13,"\u7146\u7147\u7148\u7149\u714B\u714D\u714F",12,"\u715D\u715F",4,"\u7165\u7169",4,"\u716F\u7170\u7171\u7174\u7175\u7176\u7177\u7179\u717B\u717C\u717E",5,"\u7185",4,"\u718B\u718C\u718D\u718E\u7190\u7191\u7192\u7193\u7195\u7196\u7197\u719A",4,"\u71A1",6,"\u71A9\u71AA\u71AB\u71AD",5,"\u71B4\u71B6\u71B7\u71B8\u71BA",8,"\u71C4",9,"\u71CF",4],["a040","\u71D6",9,"\u71E1\u71E2\u71E3\u71E4\u71E6\u71E8",5,"\u71EF",9,"\u71FA",11,"\u7207",19],["a080","\u721B\u721C\u721E",9,"\u7229\u722B\u722D\u722E\u722F\u7232\u7233\u7234\u723A\u723C\u723E\u7240",6,"\u7249\u724A\u724B\u724E\u724F\u7250\u7251\u7253\u7254\u7255\u7257\u7258\u725A\u725C\u725E\u7260\u7263\u7264\u7265\u7268\u726A\u726B\u726C\u726D\u7270\u7271\u7273\u7274\u7276\u7277\u7278\u727B\u727C\u727D\u7282\u7283\u7285",4,"\u728C\u728E\u7290\u7291\u7293",11,"\u72A0",11,"\u72AE\u72B1\u72B2\u72B3\u72B5\u72BA",6,"\u72C5\u72C6\u72C7\u72C9\u72CA\u72CB\u72CC\u72CF\u72D1\u72D3\u72D4\u72D5\u72D6\u72D8\u72DA\u72DB"],["a1a1","\u3000\u3001\u3002\xB7\u02C9\u02C7\xA8\u3003\u3005\u2014\uFF5E\u2016\u2026\u2018\u2019\u201C\u201D\u3014\u3015\u3008",7,"\u3016\u3017\u3010\u3011\xB1\xD7\xF7\u2236\u2227\u2228\u2211\u220F\u222A\u2229\u2208\u2237\u221A\u22A5\u2225\u2220\u2312\u2299\u222B\u222E\u2261\u224C\u2248\u223D\u221D\u2260\u226E\u226F\u2264\u2265\u221E\u2235\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFF04\xA4\uFFE0\uFFE1\u2030\xA7\u2116\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u203B\u2192\u2190\u2191\u2193\u3013"],["a2a1","\u2170",9],["a2b1","\u2488",19,"\u2474",19,"\u2460",9],["a2e5","\u3220",9],["a2f1","\u2160",11],["a3a1","\uFF01\uFF02\uFF03\uFFE5\uFF05",88,"\uFFE3"],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a6e0","\uFE35\uFE36\uFE39\uFE3A\uFE3F\uFE40\uFE3D\uFE3E\uFE41\uFE42\uFE43\uFE44"],["a6ee","\uFE3B\uFE3C\uFE37\uFE38\uFE31"],["a6f4","\uFE33\uFE34"],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a840","\u02CA\u02CB\u02D9\u2013\u2015\u2025\u2035\u2105\u2109\u2196\u2197\u2198\u2199\u2215\u221F\u2223\u2252\u2266\u2267\u22BF\u2550",35,"\u2581",6],["a880","\u2588",7,"\u2593\u2594\u2595\u25BC\u25BD\u25E2\u25E3\u25E4\u25E5\u2609\u2295\u3012\u301D\u301E"],["a8a1","\u0101\xE1\u01CE\xE0\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA\u01DC\xFC\xEA\u0251"],["a8bd","\u0144\u0148"],["a8c0","\u0261"],["a8c5","\u3105",36],["a940","\u3021",8,"\u32A3\u338E\u338F\u339C\u339D\u339E\u33A1\u33C4\u33CE\u33D1\u33D2\u33D5\uFE30\uFFE2\uFFE4"],["a959","\u2121\u3231"],["a95c","\u2010"],["a960","\u30FC\u309B\u309C\u30FD\u30FE\u3006\u309D\u309E\uFE49",9,"\uFE54\uFE55\uFE56\uFE57\uFE59",8],["a980","\uFE62",4,"\uFE68\uFE69\uFE6A\uFE6B"],["a996","\u3007"],["a9a4","\u2500",75],["aa40","\u72DC\u72DD\u72DF\u72E2",5,"\u72EA\u72EB\u72F5\u72F6\u72F9\u72FD\u72FE\u72FF\u7300\u7302\u7304",5,"\u730B\u730C\u730D\u730F\u7310\u7311\u7312\u7314\u7318\u7319\u731A\u731F\u7320\u7323\u7324\u7326\u7327\u7328\u732D\u732F\u7330\u7332\u7333\u7335\u7336\u733A\u733B\u733C\u733D\u7340",8],["aa80","\u7349\u734A\u734B\u734C\u734E\u734F\u7351\u7353\u7354\u7355\u7356\u7358",7,"\u7361",10,"\u736E\u7370\u7371"],["ab40","\u7372",11,"\u737F",4,"\u7385\u7386\u7388\u738A\u738C\u738D\u738F\u7390\u7392\u7393\u7394\u7395\u7397\u7398\u7399\u739A\u739C\u739D\u739E\u73A0\u73A1\u73A3",5,"\u73AA\u73AC\u73AD\u73B1\u73B4\u73B5\u73B6\u73B8\u73B9\u73BC\u73BD\u73BE\u73BF\u73C1\u73C3",4],["ab80","\u73CB\u73CC\u73CE\u73D2",6,"\u73DA\u73DB\u73DC\u73DD\u73DF\u73E1\u73E2\u73E3\u73E4\u73E6\u73E8\u73EA\u73EB\u73EC\u73EE\u73EF\u73F0\u73F1\u73F3",4],["ac40","\u73F8",10,"\u7404\u7407\u7408\u740B\u740C\u740D\u740E\u7411",8,"\u741C",5,"\u7423\u7424\u7427\u7429\u742B\u742D\u742F\u7431\u7432\u7437",4,"\u743D\u743E\u743F\u7440\u7442",11],["ac80","\u744E",6,"\u7456\u7458\u745D\u7460",12,"\u746E\u746F\u7471",4,"\u7478\u7479\u747A"],["ad40","\u747B\u747C\u747D\u747F\u7482\u7484\u7485\u7486\u7488\u7489\u748A\u748C\u748D\u748F\u7491",10,"\u749D\u749F",7,"\u74AA",15,"\u74BB",12],["ad80","\u74C8",9,"\u74D3",8,"\u74DD\u74DF\u74E1\u74E5\u74E7",6,"\u74F0\u74F1\u74F2"],["ae40","\u74F3\u74F5\u74F8",6,"\u7500\u7501\u7502\u7503\u7505",7,"\u750E\u7510\u7512\u7514\u7515\u7516\u7517\u751B\u751D\u751E\u7520",4,"\u7526\u7527\u752A\u752E\u7534\u7536\u7539\u753C\u753D\u753F\u7541\u7542\u7543\u7544\u7546\u7547\u7549\u754A\u754D\u7550\u7551\u7552\u7553\u7555\u7556\u7557\u7558"],["ae80","\u755D",7,"\u7567\u7568\u7569\u756B",6,"\u7573\u7575\u7576\u7577\u757A",4,"\u7580\u7581\u7582\u7584\u7585\u7587"],["af40","\u7588\u7589\u758A\u758C\u758D\u758E\u7590\u7593\u7595\u7598\u759B\u759C\u759E\u75A2\u75A6",4,"\u75AD\u75B6\u75B7\u75BA\u75BB\u75BF\u75C0\u75C1\u75C6\u75CB\u75CC\u75CE\u75CF\u75D0\u75D1\u75D3\u75D7\u75D9\u75DA\u75DC\u75DD\u75DF\u75E0\u75E1\u75E5\u75E9\u75EC\u75ED\u75EE\u75EF\u75F2\u75F3\u75F5\u75F6\u75F7\u75F8\u75FA\u75FB\u75FD\u75FE\u7602\u7604\u7606\u7607"],["af80","\u7608\u7609\u760B\u760D\u760E\u760F\u7611\u7612\u7613\u7614\u7616\u761A\u761C\u761D\u761E\u7621\u7623\u7627\u7628\u762C\u762E\u762F\u7631\u7632\u7636\u7637\u7639\u763A\u763B\u763D\u7641\u7642\u7644"],["b040","\u7645",6,"\u764E",5,"\u7655\u7657",4,"\u765D\u765F\u7660\u7661\u7662\u7664",6,"\u766C\u766D\u766E\u7670",7,"\u7679\u767A\u767C\u767F\u7680\u7681\u7683\u7685\u7689\u768A\u768C\u768D\u768F\u7690\u7692\u7694\u7695\u7697\u7698\u769A\u769B"],["b080","\u769C",7,"\u76A5",8,"\u76AF\u76B0\u76B3\u76B5",9,"\u76C0\u76C1\u76C3\u554A\u963F\u57C3\u6328\u54CE\u5509\u54C0\u7691\u764C\u853C\u77EE\u827E\u788D\u7231\u9698\u978D\u6C28\u5B89\u4FFA\u6309\u6697\u5CB8\u80FA\u6848\u80AE\u6602\u76CE\u51F9\u6556\u71AC\u7FF1\u8884\u50B2\u5965\u61CA\u6FB3\u82AD\u634C\u6252\u53ED\u5427\u7B06\u516B\u75A4\u5DF4\u62D4\u8DCB\u9776\u628A\u8019\u575D\u9738\u7F62\u7238\u767D\u67CF\u767E\u6446\u4F70\u8D25\u62DC\u7A17\u6591\u73ED\u642C\u6273\u822C\u9881\u677F\u7248\u626E\u62CC\u4F34\u74E3\u534A\u529E\u7ECA\u90A6\u5E2E\u6886\u699C\u8180\u7ED1\u68D2\u78C5\u868C\u9551\u508D\u8C24\u82DE\u80DE\u5305\u8912\u5265"],["b140","\u76C4\u76C7\u76C9\u76CB\u76CC\u76D3\u76D5\u76D9\u76DA\u76DC\u76DD\u76DE\u76E0",4,"\u76E6",7,"\u76F0\u76F3\u76F5\u76F6\u76F7\u76FA\u76FB\u76FD\u76FF\u7700\u7702\u7703\u7705\u7706\u770A\u770C\u770E",10,"\u771B\u771C\u771D\u771E\u7721\u7723\u7724\u7725\u7727\u772A\u772B"],["b180","\u772C\u772E\u7730",4,"\u7739\u773B\u773D\u773E\u773F\u7742\u7744\u7745\u7746\u7748",7,"\u7752",7,"\u775C\u8584\u96F9\u4FDD\u5821\u9971\u5B9D\u62B1\u62A5\u66B4\u8C79\u9C8D\u7206\u676F\u7891\u60B2\u5351\u5317\u8F88\u80CC\u8D1D\u94A1\u500D\u72C8\u5907\u60EB\u7119\u88AB\u5954\u82EF\u672C\u7B28\u5D29\u7EF7\u752D\u6CF5\u8E66\u8FF8\u903C\u9F3B\u6BD4\u9119\u7B14\u5F7C\u78A7\u84D6\u853D\u6BD5\u6BD9\u6BD6\u5E01\u5E87\u75F9\u95ED\u655D\u5F0A\u5FC5\u8F9F\u58C1\u81C2\u907F\u965B\u97AD\u8FB9\u7F16\u8D2C\u6241\u4FBF\u53D8\u535E\u8FA8\u8FA9\u8FAB\u904D\u6807\u5F6A\u8198\u8868\u9CD6\u618B\u522B\u762A\u5F6C\u658C\u6FD2\u6EE8\u5BBE\u6448\u5175\u51B0\u67C4\u4E19\u79C9\u997C\u70B3"],["b240","\u775D\u775E\u775F\u7760\u7764\u7767\u7769\u776A\u776D",11,"\u777A\u777B\u777C\u7781\u7782\u7783\u7786",5,"\u778F\u7790\u7793",11,"\u77A1\u77A3\u77A4\u77A6\u77A8\u77AB\u77AD\u77AE\u77AF\u77B1\u77B2\u77B4\u77B6",4],["b280","\u77BC\u77BE\u77C0",12,"\u77CE",8,"\u77D8\u77D9\u77DA\u77DD",4,"\u77E4\u75C5\u5E76\u73BB\u83E0\u64AD\u62E8\u94B5\u6CE2\u535A\u52C3\u640F\u94C2\u7B94\u4F2F\u5E1B\u8236\u8116\u818A\u6E24\u6CCA\u9A73\u6355\u535C\u54FA\u8865\u57E0\u4E0D\u5E03\u6B65\u7C3F\u90E8\u6016\u64E6\u731C\u88C1\u6750\u624D\u8D22\u776C\u8E29\u91C7\u5F69\u83DC\u8521\u9910\u53C2\u8695\u6B8B\u60ED\u60E8\u707F\u82CD\u8231\u4ED3\u6CA7\u85CF\u64CD\u7CD9\u69FD\u66F9\u8349\u5395\u7B56\u4FA7\u518C\u6D4B\u5C42\u8E6D\u63D2\u53C9\u832C\u8336\u67E5\u78B4\u643D\u5BDF\u5C94\u5DEE\u8BE7\u62C6\u67F4\u8C7A\u6400\u63BA\u8749\u998B\u8C17\u7F20\u94F2\u4EA7\u9610\u98A4\u660C\u7316"],["b340","\u77E6\u77E8\u77EA\u77EF\u77F0\u77F1\u77F2\u77F4\u77F5\u77F7\u77F9\u77FA\u77FB\u77FC\u7803",5,"\u780A\u780B\u780E\u780F\u7810\u7813\u7815\u7819\u781B\u781E\u7820\u7821\u7822\u7824\u7828\u782A\u782B\u782E\u782F\u7831\u7832\u7833\u7835\u7836\u783D\u783F\u7841\u7842\u7843\u7844\u7846\u7848\u7849\u784A\u784B\u784D\u784F\u7851\u7853\u7854\u7858\u7859\u785A"],["b380","\u785B\u785C\u785E",11,"\u786F",7,"\u7878\u7879\u787A\u787B\u787D",6,"\u573A\u5C1D\u5E38\u957F\u507F\u80A0\u5382\u655E\u7545\u5531\u5021\u8D85\u6284\u949E\u671D\u5632\u6F6E\u5DE2\u5435\u7092\u8F66\u626F\u64A4\u63A3\u5F7B\u6F88\u90F4\u81E3\u8FB0\u5C18\u6668\u5FF1\u6C89\u9648\u8D81\u886C\u6491\u79F0\u57CE\u6A59\u6210\u5448\u4E58\u7A0B\u60E9\u6F84\u8BDA\u627F\u901E\u9A8B\u79E4\u5403\u75F4\u6301\u5319\u6C60\u8FDF\u5F1B\u9A70\u803B\u9F7F\u4F88\u5C3A\u8D64\u7FC5\u65A5\u70BD\u5145\u51B2\u866B\u5D07\u5BA0\u62BD\u916C\u7574\u8E0C\u7A20\u6101\u7B79\u4EC7\u7EF8\u7785\u4E11\u81ED\u521D\u51FA\u6A71\u53A8\u8E87\u9504\u96CF\u6EC1\u9664\u695A"],["b440","\u7884\u7885\u7886\u7888\u788A\u788B\u788F\u7890\u7892\u7894\u7895\u7896\u7899\u789D\u789E\u78A0\u78A2\u78A4\u78A6\u78A8",7,"\u78B5\u78B6\u78B7\u78B8\u78BA\u78BB\u78BC\u78BD\u78BF\u78C0\u78C2\u78C3\u78C4\u78C6\u78C7\u78C8\u78CC\u78CD\u78CE\u78CF\u78D1\u78D2\u78D3\u78D6\u78D7\u78D8\u78DA",9],["b480","\u78E4\u78E5\u78E6\u78E7\u78E9\u78EA\u78EB\u78ED",4,"\u78F3\u78F5\u78F6\u78F8\u78F9\u78FB",5,"\u7902\u7903\u7904\u7906",6,"\u7840\u50A8\u77D7\u6410\u89E6\u5904\u63E3\u5DDD\u7A7F\u693D\u4F20\u8239\u5598\u4E32\u75AE\u7A97\u5E62\u5E8A\u95EF\u521B\u5439\u708A\u6376\u9524\u5782\u6625\u693F\u9187\u5507\u6DF3\u7EAF\u8822\u6233\u7EF0\u75B5\u8328\u78C1\u96CC\u8F9E\u6148\u74F7\u8BCD\u6B64\u523A\u8D50\u6B21\u806A\u8471\u56F1\u5306\u4ECE\u4E1B\u51D1\u7C97\u918B\u7C07\u4FC3\u8E7F\u7BE1\u7A9C\u6467\u5D14\u50AC\u8106\u7601\u7CB9\u6DEC\u7FE0\u6751\u5B58\u5BF8\u78CB\u64AE\u6413\u63AA\u632B\u9519\u642D\u8FBE\u7B54\u7629\u6253\u5927\u5446\u6B79\u50A3\u6234\u5E26\u6B86\u4EE3\u8D37\u888B\u5F85\u902E"],["b540","\u790D",5,"\u7914",9,"\u791F",4,"\u7925",14,"\u7935",4,"\u793D\u793F\u7942\u7943\u7944\u7945\u7947\u794A",8,"\u7954\u7955\u7958\u7959\u7961\u7963"],["b580","\u7964\u7966\u7969\u796A\u796B\u796C\u796E\u7970",6,"\u7979\u797B",4,"\u7982\u7983\u7986\u7987\u7988\u7989\u798B\u798C\u798D\u798E\u7990\u7991\u7992\u6020\u803D\u62C5\u4E39\u5355\u90F8\u63B8\u80C6\u65E6\u6C2E\u4F46\u60EE\u6DE1\u8BDE\u5F39\u86CB\u5F53\u6321\u515A\u8361\u6863\u5200\u6363\u8E48\u5012\u5C9B\u7977\u5BFC\u5230\u7A3B\u60BC\u9053\u76D7\u5FB7\u5F97\u7684\u8E6C\u706F\u767B\u7B49\u77AA\u51F3\u9093\u5824\u4F4E\u6EF4\u8FEA\u654C\u7B1B\u72C4\u6DA4\u7FDF\u5AE1\u62B5\u5E95\u5730\u8482\u7B2C\u5E1D\u5F1F\u9012\u7F14\u98A0\u6382\u6EC7\u7898\u70B9\u5178\u975B\u57AB\u7535\u4F43\u7538\u5E97\u60E6\u5960\u6DC0\u6BBF\u7889\u53FC\u96D5\u51CB\u5201\u6389\u540A\u9493\u8C03\u8DCC\u7239\u789F\u8776\u8FED\u8C0D\u53E0"],["b640","\u7993",6,"\u799B",11,"\u79A8",10,"\u79B4",4,"\u79BC\u79BF\u79C2\u79C4\u79C5\u79C7\u79C8\u79CA\u79CC\u79CE\u79CF\u79D0\u79D3\u79D4\u79D6\u79D7\u79D9",5,"\u79E0\u79E1\u79E2\u79E5\u79E8\u79EA"],["b680","\u79EC\u79EE\u79F1",6,"\u79F9\u79FA\u79FC\u79FE\u79FF\u7A01\u7A04\u7A05\u7A07\u7A08\u7A09\u7A0A\u7A0C\u7A0F",4,"\u7A15\u7A16\u7A18\u7A19\u7A1B\u7A1C\u4E01\u76EF\u53EE\u9489\u9876\u9F0E\u952D\u5B9A\u8BA2\u4E22\u4E1C\u51AC\u8463\u61C2\u52A8\u680B\u4F97\u606B\u51BB\u6D1E\u515C\u6296\u6597\u9661\u8C46\u9017\u75D8\u90FD\u7763\u6BD2\u728A\u72EC\u8BFB\u5835\u7779\u8D4C\u675C\u9540\u809A\u5EA6\u6E21\u5992\u7AEF\u77ED\u953B\u6BB5\u65AD\u7F0E\u5806\u5151\u961F\u5BF9\u58A9\u5428\u8E72\u6566\u987F\u56E4\u949D\u76FE\u9041\u6387\u54C6\u591A\u593A\u579B\u8EB2\u6735\u8DFA\u8235\u5241\u60F0\u5815\u86FE\u5CE8\u9E45\u4FC4\u989D\u8BB9\u5A25\u6076\u5384\u627C\u904F\u9102\u997F\u6069\u800C\u513F\u8033\u5C14\u9975\u6D31\u4E8C"],["b740","\u7A1D\u7A1F\u7A21\u7A22\u7A24",14,"\u7A34\u7A35\u7A36\u7A38\u7A3A\u7A3E\u7A40",5,"\u7A47",9,"\u7A52",4,"\u7A58",16],["b780","\u7A69",6,"\u7A71\u7A72\u7A73\u7A75\u7A7B\u7A7C\u7A7D\u7A7E\u7A82\u7A85\u7A87\u7A89\u7A8A\u7A8B\u7A8C\u7A8E\u7A8F\u7A90\u7A93\u7A94\u7A99\u7A9A\u7A9B\u7A9E\u7AA1\u7AA2\u8D30\u53D1\u7F5A\u7B4F\u4F10\u4E4F\u9600\u6CD5\u73D0\u85E9\u5E06\u756A\u7FFB\u6A0A\u77FE\u9492\u7E41\u51E1\u70E6\u53CD\u8FD4\u8303\u8D29\u72AF\u996D\u6CDB\u574A\u82B3\u65B9\u80AA\u623F\u9632\u59A8\u4EFF\u8BBF\u7EBA\u653E\u83F2\u975E\u5561\u98DE\u80A5\u532A\u8BFD\u5420\u80BA\u5E9F\u6CB8\u8D39\u82AC\u915A\u5429\u6C1B\u5206\u7EB7\u575F\u711A\u6C7E\u7C89\u594B\u4EFD\u5FFF\u6124\u7CAA\u4E30\u5C01\u67AB\u8702\u5CF0\u950B\u98CE\u75AF\u70FD\u9022\u51AF\u7F1D\u8BBD\u5949\u51E4\u4F5B\u5426\u592B\u6577\u80A4\u5B75\u6276\u62C2\u8F90\u5E45\u6C1F\u7B26\u4F0F\u4FD8\u670D"],["b840","\u7AA3\u7AA4\u7AA7\u7AA9\u7AAA\u7AAB\u7AAE",4,"\u7AB4",10,"\u7AC0",10,"\u7ACC",9,"\u7AD7\u7AD8\u7ADA\u7ADB\u7ADC\u7ADD\u7AE1\u7AE2\u7AE4\u7AE7",5,"\u7AEE\u7AF0\u7AF1\u7AF2\u7AF3"],["b880","\u7AF4",4,"\u7AFB\u7AFC\u7AFE\u7B00\u7B01\u7B02\u7B05\u7B07\u7B09\u7B0C\u7B0D\u7B0E\u7B10\u7B12\u7B13\u7B16\u7B17\u7B18\u7B1A\u7B1C\u7B1D\u7B1F\u7B21\u7B22\u7B23\u7B27\u7B29\u7B2D\u6D6E\u6DAA\u798F\u88B1\u5F17\u752B\u629A\u8F85\u4FEF\u91DC\u65A7\u812F\u8151\u5E9C\u8150\u8D74\u526F\u8986\u8D4B\u590D\u5085\u4ED8\u961C\u7236\u8179\u8D1F\u5BCC\u8BA3\u9644\u5987\u7F1A\u5490\u5676\u560E\u8BE5\u6539\u6982\u9499\u76D6\u6E89\u5E72\u7518\u6746\u67D1\u7AFF\u809D\u8D76\u611F\u79C6\u6562\u8D63\u5188\u521A\u94A2\u7F38\u809B\u7EB2\u5C97\u6E2F\u6760\u7BD9\u768B\u9AD8\u818F\u7F94\u7CD5\u641E\u9550\u7A3F\u544A\u54E5\u6B4C\u6401\u6208\u9E3D\u80F3\u7599\u5272\u9769\u845B\u683C\u86E4\u9601\u9694\u94EC\u4E2A\u5404\u7ED9\u6839\u8DDF\u8015\u66F4\u5E9A\u7FB9"],["b940","\u7B2F\u7B30\u7B32\u7B34\u7B35\u7B36\u7B37\u7B39\u7B3B\u7B3D\u7B3F",5,"\u7B46\u7B48\u7B4A\u7B4D\u7B4E\u7B53\u7B55\u7B57\u7B59\u7B5C\u7B5E\u7B5F\u7B61\u7B63",10,"\u7B6F\u7B70\u7B73\u7B74\u7B76\u7B78\u7B7A\u7B7C\u7B7D\u7B7F\u7B81\u7B82\u7B83\u7B84\u7B86",6,"\u7B8E\u7B8F"],["b980","\u7B91\u7B92\u7B93\u7B96\u7B98\u7B99\u7B9A\u7B9B\u7B9E\u7B9F\u7BA0\u7BA3\u7BA4\u7BA5\u7BAE\u7BAF\u7BB0\u7BB2\u7BB3\u7BB5\u7BB6\u7BB7\u7BB9",7,"\u7BC2\u7BC3\u7BC4\u57C2\u803F\u6897\u5DE5\u653B\u529F\u606D\u9F9A\u4F9B\u8EAC\u516C\u5BAB\u5F13\u5DE9\u6C5E\u62F1\u8D21\u5171\u94A9\u52FE\u6C9F\u82DF\u72D7\u57A2\u6784\u8D2D\u591F\u8F9C\u83C7\u5495\u7B8D\u4F30\u6CBD\u5B64\u59D1\u9F13\u53E4\u86CA\u9AA8\u8C37\u80A1\u6545\u987E\u56FA\u96C7\u522E\u74DC\u5250\u5BE1\u6302\u8902\u4E56\u62D0\u602A\u68FA\u5173\u5B98\u51A0\u89C2\u7BA1\u9986\u7F50\u60EF\u704C\u8D2F\u5149\u5E7F\u901B\u7470\u89C4\u572D\u7845\u5F52\u9F9F\u95FA\u8F68\u9B3C\u8BE1\u7678\u6842\u67DC\u8DEA\u8D35\u523D\u8F8A\u6EDA\u68CD\u9505\u90ED\u56FD\u679C\u88F9\u8FC7\u54C8"],["ba40","\u7BC5\u7BC8\u7BC9\u7BCA\u7BCB\u7BCD\u7BCE\u7BCF\u7BD0\u7BD2\u7BD4",4,"\u7BDB\u7BDC\u7BDE\u7BDF\u7BE0\u7BE2\u7BE3\u7BE4\u7BE7\u7BE8\u7BE9\u7BEB\u7BEC\u7BED\u7BEF\u7BF0\u7BF2",4,"\u7BF8\u7BF9\u7BFA\u7BFB\u7BFD\u7BFF",7,"\u7C08\u7C09\u7C0A\u7C0D\u7C0E\u7C10",5,"\u7C17\u7C18\u7C19"],["ba80","\u7C1A",4,"\u7C20",5,"\u7C28\u7C29\u7C2B",12,"\u7C39",5,"\u7C42\u9AB8\u5B69\u6D77\u6C26\u4EA5\u5BB3\u9A87\u9163\u61A8\u90AF\u97E9\u542B\u6DB5\u5BD2\u51FD\u558A\u7F55\u7FF0\u64BC\u634D\u65F1\u61BE\u608D\u710A\u6C57\u6C49\u592F\u676D\u822A\u58D5\u568E\u8C6A\u6BEB\u90DD\u597D\u8017\u53F7\u6D69\u5475\u559D\u8377\u83CF\u6838\u79BE\u548C\u4F55\u5408\u76D2\u8C89\u9602\u6CB3\u6DB8\u8D6B\u8910\u9E64\u8D3A\u563F\u9ED1\u75D5\u5F88\u72E0\u6068\u54FC\u4EA8\u6A2A\u8861\u6052\u8F70\u54C4\u70D8\u8679\u9E3F\u6D2A\u5B8F\u5F18\u7EA2\u5589\u4FAF\u7334\u543C\u539A\u5019\u540E\u547C\u4E4E\u5FFD\u745A\u58F6\u846B\u80E1\u8774\u72D0\u7CCA\u6E56"],["bb40","\u7C43",9,"\u7C4E",36,"\u7C75",5,"\u7C7E",9],["bb80","\u7C88\u7C8A",6,"\u7C93\u7C94\u7C96\u7C99\u7C9A\u7C9B\u7CA0\u7CA1\u7CA3\u7CA6\u7CA7\u7CA8\u7CA9\u7CAB\u7CAC\u7CAD\u7CAF\u7CB0\u7CB4",4,"\u7CBA\u7CBB\u5F27\u864E\u552C\u62A4\u4E92\u6CAA\u6237\u82B1\u54D7\u534E\u733E\u6ED1\u753B\u5212\u5316\u8BDD\u69D0\u5F8A\u6000\u6DEE\u574F\u6B22\u73AF\u6853\u8FD8\u7F13\u6362\u60A3\u5524\u75EA\u8C62\u7115\u6DA3\u5BA6\u5E7B\u8352\u614C\u9EC4\u78FA\u8757\u7C27\u7687\u51F0\u60F6\u714C\u6643\u5E4C\u604D\u8C0E\u7070\u6325\u8F89\u5FBD\u6062\u86D4\u56DE\u6BC1\u6094\u6167\u5349\u60E0\u6666\u8D3F\u79FD\u4F1A\u70E9\u6C47\u8BB3\u8BF2\u7ED8\u8364\u660F\u5A5A\u9B42\u6D51\u6DF7\u8C41\u6D3B\u4F19\u706B\u83B7\u6216\u60D1\u970D\u8D27\u7978\u51FB\u573E\u57FA\u673A\u7578\u7A3D\u79EF\u7B95"],["bc40","\u7CBF\u7CC0\u7CC2\u7CC3\u7CC4\u7CC6\u7CC9\u7CCB\u7CCE",6,"\u7CD8\u7CDA\u7CDB\u7CDD\u7CDE\u7CE1",6,"\u7CE9",5,"\u7CF0",7,"\u7CF9\u7CFA\u7CFC",13,"\u7D0B",5],["bc80","\u7D11",14,"\u7D21\u7D23\u7D24\u7D25\u7D26\u7D28\u7D29\u7D2A\u7D2C\u7D2D\u7D2E\u7D30",6,"\u808C\u9965\u8FF9\u6FC0\u8BA5\u9E21\u59EC\u7EE9\u7F09\u5409\u6781\u68D8\u8F91\u7C4D\u96C6\u53CA\u6025\u75BE\u6C72\u5373\u5AC9\u7EA7\u6324\u51E0\u810A\u5DF1\u84DF\u6280\u5180\u5B63\u4F0E\u796D\u5242\u60B8\u6D4E\u5BC4\u5BC2\u8BA1\u8BB0\u65E2\u5FCC\u9645\u5993\u7EE7\u7EAA\u5609\u67B7\u5939\u4F73\u5BB6\u52A0\u835A\u988A\u8D3E\u7532\u94BE\u5047\u7A3C\u4EF7\u67B6\u9A7E\u5AC1\u6B7C\u76D1\u575A\u5C16\u7B3A\u95F4\u714E\u517C\u80A9\u8270\u5978\u7F04\u8327\u68C0\u67EC\u78B1\u7877\u62E3\u6361\u7B80\u4FED\u526A\u51CF\u8350\u69DB\u9274\u8DF5\u8D31\u89C1\u952E\u7BAD\u4EF6"],["bd40","\u7D37",54,"\u7D6F",7],["bd80","\u7D78",32,"\u5065\u8230\u5251\u996F\u6E10\u6E85\u6DA7\u5EFA\u50F5\u59DC\u5C06\u6D46\u6C5F\u7586\u848B\u6868\u5956\u8BB2\u5320\u9171\u964D\u8549\u6912\u7901\u7126\u80F6\u4EA4\u90CA\u6D47\u9A84\u5A07\u56BC\u6405\u94F0\u77EB\u4FA5\u811A\u72E1\u89D2\u997A\u7F34\u7EDE\u527F\u6559\u9175\u8F7F\u8F83\u53EB\u7A96\u63ED\u63A5\u7686\u79F8\u8857\u9636\u622A\u52AB\u8282\u6854\u6770\u6377\u776B\u7AED\u6D01\u7ED3\u89E3\u59D0\u6212\u85C9\u82A5\u754C\u501F\u4ECB\u75A5\u8BEB\u5C4A\u5DFE\u7B4B\u65A4\u91D1\u4ECA\u6D25\u895F\u7D27\u9526\u4EC5\u8C28\u8FDB\u9773\u664B\u7981\u8FD1\u70EC\u6D78"],["be40","\u7D99",12,"\u7DA7",6,"\u7DAF",42],["be80","\u7DDA",32,"\u5C3D\u52B2\u8346\u5162\u830E\u775B\u6676\u9CB8\u4EAC\u60CA\u7CBE\u7CB3\u7ECF\u4E95\u8B66\u666F\u9888\u9759\u5883\u656C\u955C\u5F84\u75C9\u9756\u7ADF\u7ADE\u51C0\u70AF\u7A98\u63EA\u7A76\u7EA0\u7396\u97ED\u4E45\u7078\u4E5D\u9152\u53A9\u6551\u65E7\u81FC\u8205\u548E\u5C31\u759A\u97A0\u62D8\u72D9\u75BD\u5C45\u9A79\u83CA\u5C40\u5480\u77E9\u4E3E\u6CAE\u805A\u62D2\u636E\u5DE8\u5177\u8DDD\u8E1E\u952F\u4FF1\u53E5\u60E7\u70AC\u5267\u6350\u9E43\u5A1F\u5026\u7737\u5377\u7EE2\u6485\u652B\u6289\u6398\u5014\u7235\u89C9\u51B3\u8BC0\u7EDD\u5747\u83CC\u94A7\u519B\u541B\u5CFB"],["bf40","\u7DFB",62],["bf80","\u7E3A\u7E3C",4,"\u7E42",4,"\u7E48",21,"\u4FCA\u7AE3\u6D5A\u90E1\u9A8F\u5580\u5496\u5361\u54AF\u5F00\u63E9\u6977\u51EF\u6168\u520A\u582A\u52D8\u574E\u780D\u770B\u5EB7\u6177\u7CE0\u625B\u6297\u4EA2\u7095\u8003\u62F7\u70E4\u9760\u5777\u82DB\u67EF\u68F5\u78D5\u9897\u79D1\u58F3\u54B3\u53EF\u6E34\u514B\u523B\u5BA2\u8BFE\u80AF\u5543\u57A6\u6073\u5751\u542D\u7A7A\u6050\u5B54\u63A7\u62A0\u53E3\u6263\u5BC7\u67AF\u54ED\u7A9F\u82E6\u9177\u5E93\u88E4\u5938\u57AE\u630E\u8DE8\u80EF\u5757\u7B77\u4FA9\u5FEB\u5BBD\u6B3E\u5321\u7B50\u72C2\u6846\u77FF\u7736\u65F7\u51B5\u4E8F\u76D4\u5CBF\u7AA5\u8475\u594E\u9B41\u5080"],["c040","\u7E5E",35,"\u7E83",23,"\u7E9C\u7E9D\u7E9E"],["c080","\u7EAE\u7EB4\u7EBB\u7EBC\u7ED6\u7EE4\u7EEC\u7EF9\u7F0A\u7F10\u7F1E\u7F37\u7F39\u7F3B",6,"\u7F43\u7F46",9,"\u7F52\u7F53\u9988\u6127\u6E83\u5764\u6606\u6346\u56F0\u62EC\u6269\u5ED3\u9614\u5783\u62C9\u5587\u8721\u814A\u8FA3\u5566\u83B1\u6765\u8D56\u84DD\u5A6A\u680F\u62E6\u7BEE\u9611\u5170\u6F9C\u8C30\u63FD\u89C8\u61D2\u7F06\u70C2\u6EE5\u7405\u6994\u72FC\u5ECA\u90CE\u6717\u6D6A\u635E\u52B3\u7262\u8001\u4F6C\u59E5\u916A\u70D9\u6D9D\u52D2\u4E50\u96F7\u956D\u857E\u78CA\u7D2F\u5121\u5792\u64C2\u808B\u7C7B\u6CEA\u68F1\u695E\u51B7\u5398\u68A8\u7281\u9ECE\u7BF1\u72F8\u79BB\u6F13\u7406\u674E\u91CC\u9CA4\u793C\u8389\u8354\u540F\u6817\u4E3D\u5389\u52B1\u783E\u5386\u5229\u5088\u4F8B\u4FD0"],["c140","\u7F56\u7F59\u7F5B\u7F5C\u7F5D\u7F5E\u7F60\u7F63",4,"\u7F6B\u7F6C\u7F6D\u7F6F\u7F70\u7F73\u7F75\u7F76\u7F77\u7F78\u7F7A\u7F7B\u7F7C\u7F7D\u7F7F\u7F80\u7F82",7,"\u7F8B\u7F8D\u7F8F",4,"\u7F95",4,"\u7F9B\u7F9C\u7FA0\u7FA2\u7FA3\u7FA5\u7FA6\u7FA8",6,"\u7FB1"],["c180","\u7FB3",4,"\u7FBA\u7FBB\u7FBE\u7FC0\u7FC2\u7FC3\u7FC4\u7FC6\u7FC7\u7FC8\u7FC9\u7FCB\u7FCD\u7FCF",4,"\u7FD6\u7FD7\u7FD9",5,"\u7FE2\u7FE3\u75E2\u7ACB\u7C92\u6CA5\u96B6\u529B\u7483\u54E9\u4FE9\u8054\u83B2\u8FDE\u9570\u5EC9\u601C\u6D9F\u5E18\u655B\u8138\u94FE\u604B\u70BC\u7EC3\u7CAE\u51C9\u6881\u7CB1\u826F\u4E24\u8F86\u91CF\u667E\u4EAE\u8C05\u64A9\u804A\u50DA\u7597\u71CE\u5BE5\u8FBD\u6F66\u4E86\u6482\u9563\u5ED6\u6599\u5217\u88C2\u70C8\u52A3\u730E\u7433\u6797\u78F7\u9716\u4E34\u90BB\u9CDE\u6DCB\u51DB\u8D41\u541D\u62CE\u73B2\u83F1\u96F6\u9F84\u94C3\u4F36\u7F9A\u51CC\u7075\u9675\u5CAD\u9886\u53E6\u4EE4\u6E9C\u7409\u69B4\u786B\u998F\u7559\u5218\u7624\u6D41\u67F3\u516D\u9F99\u804B\u5499\u7B3C\u7ABF"],["c240","\u7FE4\u7FE7\u7FE8\u7FEA\u7FEB\u7FEC\u7FED\u7FEF\u7FF2\u7FF4",6,"\u7FFD\u7FFE\u7FFF\u8002\u8007\u8008\u8009\u800A\u800E\u800F\u8011\u8013\u801A\u801B\u801D\u801E\u801F\u8021\u8023\u8024\u802B",5,"\u8032\u8034\u8039\u803A\u803C\u803E\u8040\u8041\u8044\u8045\u8047\u8048\u8049\u804E\u804F\u8050\u8051\u8053\u8055\u8056\u8057"],["c280","\u8059\u805B",13,"\u806B",5,"\u8072",11,"\u9686\u5784\u62E2\u9647\u697C\u5A04\u6402\u7BD3\u6F0F\u964B\u82A6\u5362\u9885\u5E90\u7089\u63B3\u5364\u864F\u9C81\u9E93\u788C\u9732\u8DEF\u8D42\u9E7F\u6F5E\u7984\u5F55\u9646\u622E\u9A74\u5415\u94DD\u4FA3\u65C5\u5C65\u5C61\u7F15\u8651\u6C2F\u5F8B\u7387\u6EE4\u7EFF\u5CE6\u631B\u5B6A\u6EE6\u5375\u4E71\u63A0\u7565\u62A1\u8F6E\u4F26\u4ED1\u6CA6\u7EB6\u8BBA\u841D\u87BA\u7F57\u903B\u9523\u7BA9\u9AA1\u88F8\u843D\u6D1B\u9A86\u7EDC\u5988\u9EBB\u739B\u7801\u8682\u9A6C\u9A82\u561B\u5417\u57CB\u4E70\u9EA6\u5356\u8FC8\u8109\u7792\u9992\u86EE\u6EE1\u8513\u66FC\u6162\u6F2B"],["c340","\u807E\u8081\u8082\u8085\u8088\u808A\u808D",5,"\u8094\u8095\u8097\u8099\u809E\u80A3\u80A6\u80A7\u80A8\u80AC\u80B0\u80B3\u80B5\u80B6\u80B8\u80B9\u80BB\u80C5\u80C7",4,"\u80CF",6,"\u80D8\u80DF\u80E0\u80E2\u80E3\u80E6\u80EE\u80F5\u80F7\u80F9\u80FB\u80FE\u80FF\u8100\u8101\u8103\u8104\u8105\u8107\u8108\u810B"],["c380","\u810C\u8115\u8117\u8119\u811B\u811C\u811D\u811F",12,"\u812D\u812E\u8130\u8133\u8134\u8135\u8137\u8139",4,"\u813F\u8C29\u8292\u832B\u76F2\u6C13\u5FD9\u83BD\u732B\u8305\u951A\u6BDB\u77DB\u94C6\u536F\u8302\u5192\u5E3D\u8C8C\u8D38\u4E48\u73AB\u679A\u6885\u9176\u9709\u7164\u6CA1\u7709\u5A92\u9541\u6BCF\u7F8E\u6627\u5BD0\u59B9\u5A9A\u95E8\u95F7\u4EEC\u840C\u8499\u6AAC\u76DF\u9530\u731B\u68A6\u5B5F\u772F\u919A\u9761\u7CDC\u8FF7\u8C1C\u5F25\u7C73\u79D8\u89C5\u6CCC\u871C\u5BC6\u5E42\u68C9\u7720\u7EF5\u5195\u514D\u52C9\u5A29\u7F05\u9762\u82D7\u63CF\u7784\u85D0\u79D2\u6E3A\u5E99\u5999\u8511\u706D\u6C11\u62BF\u76BF\u654F\u60AF\u95FD\u660E\u879F\u9E23\u94ED\u540D\u547D\u8C2C\u6478"],["c440","\u8140",5,"\u8147\u8149\u814D\u814E\u814F\u8152\u8156\u8157\u8158\u815B",4,"\u8161\u8162\u8163\u8164\u8166\u8168\u816A\u816B\u816C\u816F\u8172\u8173\u8175\u8176\u8177\u8178\u8181\u8183",4,"\u8189\u818B\u818C\u818D\u818E\u8190\u8192",5,"\u8199\u819A\u819E",4,"\u81A4\u81A5"],["c480","\u81A7\u81A9\u81AB",7,"\u81B4",5,"\u81BC\u81BD\u81BE\u81BF\u81C4\u81C5\u81C7\u81C8\u81C9\u81CB\u81CD",6,"\u6479\u8611\u6A21\u819C\u78E8\u6469\u9B54\u62B9\u672B\u83AB\u58A8\u9ED8\u6CAB\u6F20\u5BDE\u964C\u8C0B\u725F\u67D0\u62C7\u7261\u4EA9\u59C6\u6BCD\u5893\u66AE\u5E55\u52DF\u6155\u6728\u76EE\u7766\u7267\u7A46\u62FF\u54EA\u5450\u94A0\u90A3\u5A1C\u7EB3\u6C16\u4E43\u5976\u8010\u5948\u5357\u7537\u96BE\u56CA\u6320\u8111\u607C\u95F9\u6DD6\u5462\u9981\u5185\u5AE9\u80FD\u59AE\u9713\u502A\u6CE5\u5C3C\u62DF\u4F60\u533F\u817B\u9006\u6EBA\u852B\u62C8\u5E74\u78BE\u64B5\u637B\u5FF5\u5A18\u917F\u9E1F\u5C3F\u634F\u8042\u5B7D\u556E\u954A\u954D\u6D85\u60A8\u67E0\u72DE\u51DD\u5B81"],["c540","\u81D4",14,"\u81E4\u81E5\u81E6\u81E8\u81E9\u81EB\u81EE",4,"\u81F5",5,"\u81FD\u81FF\u8203\u8207",4,"\u820E\u820F\u8211\u8213\u8215",5,"\u821D\u8220\u8224\u8225\u8226\u8227\u8229\u822E\u8232\u823A\u823C\u823D\u823F"],["c580","\u8240\u8241\u8242\u8243\u8245\u8246\u8248\u824A\u824C\u824D\u824E\u8250",7,"\u8259\u825B\u825C\u825D\u825E\u8260",7,"\u8269\u62E7\u6CDE\u725B\u626D\u94AE\u7EBD\u8113\u6D53\u519C\u5F04\u5974\u52AA\u6012\u5973\u6696\u8650\u759F\u632A\u61E6\u7CEF\u8BFA\u54E6\u6B27\u9E25\u6BB4\u85D5\u5455\u5076\u6CA4\u556A\u8DB4\u722C\u5E15\u6015\u7436\u62CD\u6392\u724C\u5F98\u6E43\u6D3E\u6500\u6F58\u76D8\u78D0\u76FC\u7554\u5224\u53DB\u4E53\u5E9E\u65C1\u802A\u80D6\u629B\u5486\u5228\u70AE\u888D\u8DD1\u6CE1\u5478\u80DA\u57F9\u88F4\u8D54\u966A\u914D\u4F69\u6C9B\u55B7\u76C6\u7830\u62A8\u70F9\u6F8E\u5F6D\u84EC\u68DA\u787C\u7BF7\u81A8\u670B\u9E4F\u6367\u78B0\u576F\u7812\u9739\u6279\u62AB\u5288\u7435\u6BD7"],["c640","\u826A\u826B\u826C\u826D\u8271\u8275\u8276\u8277\u8278\u827B\u827C\u8280\u8281\u8283\u8285\u8286\u8287\u8289\u828C\u8290\u8293\u8294\u8295\u8296\u829A\u829B\u829E\u82A0\u82A2\u82A3\u82A7\u82B2\u82B5\u82B6\u82BA\u82BB\u82BC\u82BF\u82C0\u82C2\u82C3\u82C5\u82C6\u82C9\u82D0\u82D6\u82D9\u82DA\u82DD\u82E2\u82E7\u82E8\u82E9\u82EA\u82EC\u82ED\u82EE\u82F0\u82F2\u82F3\u82F5\u82F6\u82F8"],["c680","\u82FA\u82FC",4,"\u830A\u830B\u830D\u8310\u8312\u8313\u8316\u8318\u8319\u831D",9,"\u8329\u832A\u832E\u8330\u8332\u8337\u833B\u833D\u5564\u813E\u75B2\u76AE\u5339\u75DE\u50FB\u5C41\u8B6C\u7BC7\u504F\u7247\u9A97\u98D8\u6F02\u74E2\u7968\u6487\u77A5\u62FC\u9891\u8D2B\u54C1\u8058\u4E52\u576A\u82F9\u840D\u5E73\u51ED\u74F6\u8BC4\u5C4F\u5761\u6CFC\u9887\u5A46\u7834\u9B44\u8FEB\u7C95\u5256\u6251\u94FA\u4EC6\u8386\u8461\u83E9\u84B2\u57D4\u6734\u5703\u666E\u6D66\u8C31\u66DD\u7011\u671F\u6B3A\u6816\u621A\u59BB\u4E03\u51C4\u6F06\u67D2\u6C8F\u5176\u68CB\u5947\u6B67\u7566\u5D0E\u8110\u9F50\u65D7\u7948\u7941\u9A91\u8D77\u5C82\u4E5E\u4F01\u542F\u5951\u780C\u5668\u6C14\u8FC4\u5F03\u6C7D\u6CE3\u8BAB\u6390"],["c740","\u833E\u833F\u8341\u8342\u8344\u8345\u8348\u834A",4,"\u8353\u8355",4,"\u835D\u8362\u8370",6,"\u8379\u837A\u837E",6,"\u8387\u8388\u838A\u838B\u838C\u838D\u838F\u8390\u8391\u8394\u8395\u8396\u8397\u8399\u839A\u839D\u839F\u83A1",6,"\u83AC\u83AD\u83AE"],["c780","\u83AF\u83B5\u83BB\u83BE\u83BF\u83C2\u83C3\u83C4\u83C6\u83C8\u83C9\u83CB\u83CD\u83CE\u83D0\u83D1\u83D2\u83D3\u83D5\u83D7\u83D9\u83DA\u83DB\u83DE\u83E2\u83E3\u83E4\u83E6\u83E7\u83E8\u83EB\u83EC\u83ED\u6070\u6D3D\u7275\u6266\u948E\u94C5\u5343\u8FC1\u7B7E\u4EDF\u8C26\u4E7E\u9ED4\u94B1\u94B3\u524D\u6F5C\u9063\u6D45\u8C34\u5811\u5D4C\u6B20\u6B49\u67AA\u545B\u8154\u7F8C\u5899\u8537\u5F3A\u62A2\u6A47\u9539\u6572\u6084\u6865\u77A7\u4E54\u4FA8\u5DE7\u9798\u64AC\u7FD8\u5CED\u4FCF\u7A8D\u5207\u8304\u4E14\u602F\u7A83\u94A6\u4FB5\u4EB2\u79E6\u7434\u52E4\u82B9\u64D2\u79BD\u5BDD\u6C81\u9752\u8F7B\u6C22\u503E\u537F\u6E05\u64CE\u6674\u6C30\u60C5\u9877\u8BF7\u5E86\u743C\u7A77\u79CB\u4E18\u90B1\u7403\u6C42\u56DA\u914B\u6CC5\u8D8B\u533A\u86C6\u66F2\u8EAF\u5C48\u9A71\u6E20"],["c840","\u83EE\u83EF\u83F3",4,"\u83FA\u83FB\u83FC\u83FE\u83FF\u8400\u8402\u8405\u8407\u8408\u8409\u840A\u8410\u8412",5,"\u8419\u841A\u841B\u841E",5,"\u8429",7,"\u8432",5,"\u8439\u843A\u843B\u843E",7,"\u8447\u8448\u8449"],["c880","\u844A",6,"\u8452",4,"\u8458\u845D\u845E\u845F\u8460\u8462\u8464",4,"\u846A\u846E\u846F\u8470\u8472\u8474\u8477\u8479\u847B\u847C\u53D6\u5A36\u9F8B\u8DA3\u53BB\u5708\u98A7\u6743\u919B\u6CC9\u5168\u75CA\u62F3\u72AC\u5238\u529D\u7F3A\u7094\u7638\u5374\u9E4A\u69B7\u786E\u96C0\u88D9\u7FA4\u7136\u71C3\u5189\u67D3\u74E4\u58E4\u6518\u56B7\u8BA9\u9976\u6270\u7ED5\u60F9\u70ED\u58EC\u4EC1\u4EBA\u5FCD\u97E7\u4EFB\u8BA4\u5203\u598A\u7EAB\u6254\u4ECD\u65E5\u620E\u8338\u84C9\u8363\u878D\u7194\u6EB6\u5BB9\u7ED2\u5197\u63C9\u67D4\u8089\u8339\u8815\u5112\u5B7A\u5982\u8FB1\u4E73\u6C5D\u5165\u8925\u8F6F\u962E\u854A\u745E\u9510\u95F0\u6DA6\u82E5\u5F31\u6492\u6D12\u8428\u816E\u9CC3\u585E\u8D5B\u4E09\u53C1"],["c940","\u847D",4,"\u8483\u8484\u8485\u8486\u848A\u848D\u848F",7,"\u8498\u849A\u849B\u849D\u849E\u849F\u84A0\u84A2",12,"\u84B0\u84B1\u84B3\u84B5\u84B6\u84B7\u84BB\u84BC\u84BE\u84C0\u84C2\u84C3\u84C5\u84C6\u84C7\u84C8\u84CB\u84CC\u84CE\u84CF\u84D2\u84D4\u84D5\u84D7"],["c980","\u84D8",4,"\u84DE\u84E1\u84E2\u84E4\u84E7",4,"\u84ED\u84EE\u84EF\u84F1",10,"\u84FD\u84FE\u8500\u8501\u8502\u4F1E\u6563\u6851\u55D3\u4E27\u6414\u9A9A\u626B\u5AC2\u745F\u8272\u6DA9\u68EE\u50E7\u838E\u7802\u6740\u5239\u6C99\u7EB1\u50BB\u5565\u715E\u7B5B\u6652\u73CA\u82EB\u6749\u5C71\u5220\u717D\u886B\u95EA\u9655\u64C5\u8D61\u81B3\u5584\u6C55\u6247\u7F2E\u5892\u4F24\u5546\u8D4F\u664C\u4E0A\u5C1A\u88F3\u68A2\u634E\u7A0D\u70E7\u828D\u52FA\u97F6\u5C11\u54E8\u90B5\u7ECD\u5962\u8D4A\u86C7\u820C\u820D\u8D66\u6444\u5C04\u6151\u6D89\u793E\u8BBE\u7837\u7533\u547B\u4F38\u8EAB\u6DF1\u5A20\u7EC5\u795E\u6C88\u5BA1\u5A76\u751A\u80BE\u614E\u6E17\u58F0\u751F\u7525\u7272\u5347\u7EF3"],["ca40","\u8503",8,"\u850D\u850E\u850F\u8510\u8512\u8514\u8515\u8516\u8518\u8519\u851B\u851C\u851D\u851E\u8520\u8522",8,"\u852D",9,"\u853E",4,"\u8544\u8545\u8546\u8547\u854B",10],["ca80","\u8557\u8558\u855A\u855B\u855C\u855D\u855F",4,"\u8565\u8566\u8567\u8569",8,"\u8573\u8575\u8576\u8577\u8578\u857C\u857D\u857F\u8580\u8581\u7701\u76DB\u5269\u80DC\u5723\u5E08\u5931\u72EE\u65BD\u6E7F\u8BD7\u5C38\u8671\u5341\u77F3\u62FE\u65F6\u4EC0\u98DF\u8680\u5B9E\u8BC6\u53F2\u77E2\u4F7F\u5C4E\u9A76\u59CB\u5F0F\u793A\u58EB\u4E16\u67FF\u4E8B\u62ED\u8A93\u901D\u52BF\u662F\u55DC\u566C\u9002\u4ED5\u4F8D\u91CA\u9970\u6C0F\u5E02\u6043\u5BA4\u89C6\u8BD5\u6536\u624B\u9996\u5B88\u5BFF\u6388\u552E\u53D7\u7626\u517D\u852C\u67A2\u68B3\u6B8A\u6292\u8F93\u53D4\u8212\u6DD1\u758F\u4E66\u8D4E\u5B70\u719F\u85AF\u6691\u66D9\u7F72\u8700\u9ECD\u9F20\u5C5E\u672F\u8FF0\u6811\u675F\u620D\u7AD6\u5885\u5EB6\u6570\u6F31"],["cb40","\u8582\u8583\u8586\u8588",6,"\u8590",10,"\u859D",6,"\u85A5\u85A6\u85A7\u85A9\u85AB\u85AC\u85AD\u85B1",5,"\u85B8\u85BA",6,"\u85C2",6,"\u85CA",4,"\u85D1\u85D2"],["cb80","\u85D4\u85D6",5,"\u85DD",6,"\u85E5\u85E6\u85E7\u85E8\u85EA",14,"\u6055\u5237\u800D\u6454\u8870\u7529\u5E05\u6813\u62F4\u971C\u53CC\u723D\u8C01\u6C34\u7761\u7A0E\u542E\u77AC\u987A\u821C\u8BF4\u7855\u6714\u70C1\u65AF\u6495\u5636\u601D\u79C1\u53F8\u4E1D\u6B7B\u8086\u5BFA\u55E3\u56DB\u4F3A\u4F3C\u9972\u5DF3\u677E\u8038\u6002\u9882\u9001\u5B8B\u8BBC\u8BF5\u641C\u8258\u64DE\u55FD\u82CF\u9165\u4FD7\u7D20\u901F\u7C9F\u50F3\u5851\u6EAF\u5BBF\u8BC9\u8083\u9178\u849C\u7B97\u867D\u968B\u968F\u7EE5\u9AD3\u788E\u5C81\u7A57\u9042\u96A7\u795F\u5B59\u635F\u7B0B\u84D1\u68AD\u5506\u7F29\u7410\u7D22\u9501\u6240\u584C\u4ED6\u5B83\u5979\u5854"],["cc40","\u85F9\u85FA\u85FC\u85FD\u85FE\u8600",4,"\u8606",10,"\u8612\u8613\u8614\u8615\u8617",15,"\u8628\u862A",13,"\u8639\u863A\u863B\u863D\u863E\u863F\u8640"],["cc80","\u8641",11,"\u8652\u8653\u8655",4,"\u865B\u865C\u865D\u865F\u8660\u8661\u8663",7,"\u736D\u631E\u8E4B\u8E0F\u80CE\u82D4\u62AC\u53F0\u6CF0\u915E\u592A\u6001\u6C70\u574D\u644A\u8D2A\u762B\u6EE9\u575B\u6A80\u75F0\u6F6D\u8C2D\u8C08\u5766\u6BEF\u8892\u78B3\u63A2\u53F9\u70AD\u6C64\u5858\u642A\u5802\u68E0\u819B\u5510\u7CD6\u5018\u8EBA\u6DCC\u8D9F\u70EB\u638F\u6D9B\u6ED4\u7EE6\u8404\u6843\u9003\u6DD8\u9676\u8BA8\u5957\u7279\u85E4\u817E\u75BC\u8A8A\u68AF\u5254\u8E22\u9511\u63D0\u9898\u8E44\u557C\u4F53\u66FF\u568F\u60D5\u6D95\u5243\u5C49\u5929\u6DFB\u586B\u7530\u751C\u606C\u8214\u8146\u6311\u6761\u8FE2\u773A\u8DF3\u8D34\u94C1\u5E16\u5385\u542C\u70C3"],["cd40","\u866D\u866F\u8670\u8672",6,"\u8683",6,"\u868E",4,"\u8694\u8696",5,"\u869E",4,"\u86A5\u86A6\u86AB\u86AD\u86AE\u86B2\u86B3\u86B7\u86B8\u86B9\u86BB",4,"\u86C1\u86C2\u86C3\u86C5\u86C8\u86CC\u86CD\u86D2\u86D3\u86D5\u86D6\u86D7\u86DA\u86DC"],["cd80","\u86DD\u86E0\u86E1\u86E2\u86E3\u86E5\u86E6\u86E7\u86E8\u86EA\u86EB\u86EC\u86EF\u86F5\u86F6\u86F7\u86FA\u86FB\u86FC\u86FD\u86FF\u8701\u8704\u8705\u8706\u870B\u870C\u870E\u870F\u8710\u8711\u8714\u8716\u6C40\u5EF7\u505C\u4EAD\u5EAD\u633A\u8247\u901A\u6850\u916E\u77B3\u540C\u94DC\u5F64\u7AE5\u6876\u6345\u7B52\u7EDF\u75DB\u5077\u6295\u5934\u900F\u51F8\u79C3\u7A81\u56FE\u5F92\u9014\u6D82\u5C60\u571F\u5410\u5154\u6E4D\u56E2\u63A8\u9893\u817F\u8715\u892A\u9000\u541E\u5C6F\u81C0\u62D6\u6258\u8131\u9E35\u9640\u9A6E\u9A7C\u692D\u59A5\u62D3\u553E\u6316\u54C7\u86D9\u6D3C\u5A03\u74E6\u889C\u6B6A\u5916\u8C4C\u5F2F\u6E7E\u73A9\u987D\u4E38\u70F7\u5B8C\u7897\u633D\u665A\u7696\u60CB\u5B9B\u5A49\u4E07\u8155\u6C6A\u738B\u4EA1\u6789\u7F51\u5F80\u65FA\u671B\u5FD8\u5984\u5A01"],["ce40","\u8719\u871B\u871D\u871F\u8720\u8724\u8726\u8727\u8728\u872A\u872B\u872C\u872D\u872F\u8730\u8732\u8733\u8735\u8736\u8738\u8739\u873A\u873C\u873D\u8740",6,"\u874A\u874B\u874D\u874F\u8750\u8751\u8752\u8754\u8755\u8756\u8758\u875A",5,"\u8761\u8762\u8766",7,"\u876F\u8771\u8772\u8773\u8775"],["ce80","\u8777\u8778\u8779\u877A\u877F\u8780\u8781\u8784\u8786\u8787\u8789\u878A\u878C\u878E",4,"\u8794\u8795\u8796\u8798",6,"\u87A0",4,"\u5DCD\u5FAE\u5371\u97E6\u8FDD\u6845\u56F4\u552F\u60DF\u4E3A\u6F4D\u7EF4\u82C7\u840E\u59D4\u4F1F\u4F2A\u5C3E\u7EAC\u672A\u851A\u5473\u754F\u80C3\u5582\u9B4F\u4F4D\u6E2D\u8C13\u5C09\u6170\u536B\u761F\u6E29\u868A\u6587\u95FB\u7EB9\u543B\u7A33\u7D0A\u95EE\u55E1\u7FC1\u74EE\u631D\u8717\u6DA1\u7A9D\u6211\u65A1\u5367\u63E1\u6C83\u5DEB\u545C\u94A8\u4E4C\u6C61\u8BEC\u5C4B\u65E0\u829C\u68A7\u543E\u5434\u6BCB\u6B66\u4E94\u6342\u5348\u821E\u4F0D\u4FAE\u575E\u620A\u96FE\u6664\u7269\u52FF\u52A1\u609F\u8BEF\u6614\u7199\u6790\u897F\u7852\u77FD\u6670\u563B\u5438\u9521\u727A"],["cf40","\u87A5\u87A6\u87A7\u87A9\u87AA\u87AE\u87B0\u87B1\u87B2\u87B4\u87B6\u87B7\u87B8\u87B9\u87BB\u87BC\u87BE\u87BF\u87C1",4,"\u87C7\u87C8\u87C9\u87CC",4,"\u87D4",6,"\u87DC\u87DD\u87DE\u87DF\u87E1\u87E2\u87E3\u87E4\u87E6\u87E7\u87E8\u87E9\u87EB\u87EC\u87ED\u87EF",9],["cf80","\u87FA\u87FB\u87FC\u87FD\u87FF\u8800\u8801\u8802\u8804",5,"\u880B",7,"\u8814\u8817\u8818\u8819\u881A\u881C",4,"\u8823\u7A00\u606F\u5E0C\u6089\u819D\u5915\u60DC\u7184\u70EF\u6EAA\u6C50\u7280\u6A84\u88AD\u5E2D\u4E60\u5AB3\u559C\u94E3\u6D17\u7CFB\u9699\u620F\u7EC6\u778E\u867E\u5323\u971E\u8F96\u6687\u5CE1\u4FA0\u72ED\u4E0B\u53A6\u590F\u5413\u6380\u9528\u5148\u4ED9\u9C9C\u7EA4\u54B8\u8D24\u8854\u8237\u95F2\u6D8E\u5F26\u5ACC\u663E\u9669\u73B0\u732E\u53BF\u817A\u9985\u7FA1\u5BAA\u9677\u9650\u7EBF\u76F8\u53A2\u9576\u9999\u7BB1\u8944\u6E58\u4E61\u7FD4\u7965\u8BE6\u60F3\u54CD\u4EAB\u9879\u5DF7\u6A61\u50CF\u5411\u8C61\u8427\u785D\u9704\u524A\u54EE\u56A3\u9500\u6D88\u5BB5\u6DC6\u6653"],["d040","\u8824",13,"\u8833",5,"\u883A\u883B\u883D\u883E\u883F\u8841\u8842\u8843\u8846",5,"\u884E",5,"\u8855\u8856\u8858\u885A",6,"\u8866\u8867\u886A\u886D\u886F\u8871\u8873\u8874\u8875\u8876\u8878\u8879\u887A"],["d080","\u887B\u887C\u8880\u8883\u8886\u8887\u8889\u888A\u888C\u888E\u888F\u8890\u8891\u8893\u8894\u8895\u8897",4,"\u889D",4,"\u88A3\u88A5",5,"\u5C0F\u5B5D\u6821\u8096\u5578\u7B11\u6548\u6954\u4E9B\u6B47\u874E\u978B\u534F\u631F\u643A\u90AA\u659C\u80C1\u8C10\u5199\u68B0\u5378\u87F9\u61C8\u6CC4\u6CFB\u8C22\u5C51\u85AA\u82AF\u950C\u6B23\u8F9B\u65B0\u5FFB\u5FC3\u4FE1\u8845\u661F\u8165\u7329\u60FA\u5174\u5211\u578B\u5F62\u90A2\u884C\u9192\u5E78\u674F\u6027\u59D3\u5144\u51F6\u80F8\u5308\u6C79\u96C4\u718A\u4F11\u4FEE\u7F9E\u673D\u55C5\u9508\u79C0\u8896\u7EE3\u589F\u620C\u9700\u865A\u5618\u987B\u5F90\u8BB8\u84C4\u9157\u53D9\u65ED\u5E8F\u755C\u6064\u7D6E\u5A7F\u7EEA\u7EED\u8F69\u55A7\u5BA3\u60AC\u65CB\u7384"],["d140","\u88AC\u88AE\u88AF\u88B0\u88B2",4,"\u88B8\u88B9\u88BA\u88BB\u88BD\u88BE\u88BF\u88C0\u88C3\u88C4\u88C7\u88C8\u88CA\u88CB\u88CC\u88CD\u88CF\u88D0\u88D1\u88D3\u88D6\u88D7\u88DA",4,"\u88E0\u88E1\u88E6\u88E7\u88E9",6,"\u88F2\u88F5\u88F6\u88F7\u88FA\u88FB\u88FD\u88FF\u8900\u8901\u8903",5],["d180","\u8909\u890B",4,"\u8911\u8914",4,"\u891C",4,"\u8922\u8923\u8924\u8926\u8927\u8928\u8929\u892C\u892D\u892E\u892F\u8931\u8932\u8933\u8935\u8937\u9009\u7663\u7729\u7EDA\u9774\u859B\u5B66\u7A74\u96EA\u8840\u52CB\u718F\u5FAA\u65EC\u8BE2\u5BFB\u9A6F\u5DE1\u6B89\u6C5B\u8BAD\u8BAF\u900A\u8FC5\u538B\u62BC\u9E26\u9E2D\u5440\u4E2B\u82BD\u7259\u869C\u5D16\u8859\u6DAF\u96C5\u54D1\u4E9A\u8BB6\u7109\u54BD\u9609\u70DF\u6DF9\u76D0\u4E25\u7814\u8712\u5CA9\u5EF6\u8A00\u989C\u960E\u708E\u6CBF\u5944\u63A9\u773C\u884D\u6F14\u8273\u5830\u71D5\u538C\u781A\u96C1\u5501\u5F66\u7130\u5BB4\u8C1A\u9A8C\u6B83\u592E\u9E2F\u79E7\u6768\u626C\u4F6F\u75A1\u7F8A\u6D0B\u9633\u6C27\u4EF0\u75D2\u517B\u6837\u6F3E\u9080\u8170\u5996\u7476"],["d240","\u8938",8,"\u8942\u8943\u8945",24,"\u8960",5,"\u8967",19,"\u897C"],["d280","\u897D\u897E\u8980\u8982\u8984\u8985\u8987",26,"\u6447\u5C27\u9065\u7A91\u8C23\u59DA\u54AC\u8200\u836F\u8981\u8000\u6930\u564E\u8036\u7237\u91CE\u51B6\u4E5F\u9875\u6396\u4E1A\u53F6\u66F3\u814B\u591C\u6DB2\u4E00\u58F9\u533B\u63D6\u94F1\u4F9D\u4F0A\u8863\u9890\u5937\u9057\u79FB\u4EEA\u80F0\u7591\u6C82\u5B9C\u59E8\u5F5D\u6905\u8681\u501A\u5DF2\u4E59\u77E3\u4EE5\u827A\u6291\u6613\u9091\u5C79\u4EBF\u5F79\u81C6\u9038\u8084\u75AB\u4EA6\u88D4\u610F\u6BC5\u5FC6\u4E49\u76CA\u6EA2\u8BE3\u8BAE\u8C0A\u8BD1\u5F02\u7FFC\u7FCC\u7ECE\u8335\u836B\u56E0\u6BB7\u97F3\u9634\u59FB\u541F\u94F6\u6DEB\u5BC5\u996E\u5C39\u5F15\u9690"],["d340","\u89A2",30,"\u89C3\u89CD\u89D3\u89D4\u89D5\u89D7\u89D8\u89D9\u89DB\u89DD\u89DF\u89E0\u89E1\u89E2\u89E4\u89E7\u89E8\u89E9\u89EA\u89EC\u89ED\u89EE\u89F0\u89F1\u89F2\u89F4",6],["d380","\u89FB",4,"\u8A01",5,"\u8A08",21,"\u5370\u82F1\u6A31\u5A74\u9E70\u5E94\u7F28\u83B9\u8424\u8425\u8367\u8747\u8FCE\u8D62\u76C8\u5F71\u9896\u786C\u6620\u54DF\u62E5\u4F63\u81C3\u75C8\u5EB8\u96CD\u8E0A\u86F9\u548F\u6CF3\u6D8C\u6C38\u607F\u52C7\u7528\u5E7D\u4F18\u60A0\u5FE7\u5C24\u7531\u90AE\u94C0\u72B9\u6CB9\u6E38\u9149\u6709\u53CB\u53F3\u4F51\u91C9\u8BF1\u53C8\u5E7C\u8FC2\u6DE4\u4E8E\u76C2\u6986\u865E\u611A\u8206\u4F59\u4FDE\u903E\u9C7C\u6109\u6E1D\u6E14\u9685\u4E88\u5A31\u96E8\u4E0E\u5C7F\u79B9\u5B87\u8BED\u7FBD\u7389\u57DF\u828B\u90C1\u5401\u9047\u55BB\u5CEA\u5FA1\u6108\u6B32\u72F1\u80B2\u8A89"],["d440","\u8A1E",31,"\u8A3F",8,"\u8A49",21],["d480","\u8A5F",25,"\u8A7A",6,"\u6D74\u5BD3\u88D5\u9884\u8C6B\u9A6D\u9E33\u6E0A\u51A4\u5143\u57A3\u8881\u539F\u63F4\u8F95\u56ED\u5458\u5706\u733F\u6E90\u7F18\u8FDC\u82D1\u613F\u6028\u9662\u66F0\u7EA6\u8D8A\u8DC3\u94A5\u5CB3\u7CA4\u6708\u60A6\u9605\u8018\u4E91\u90E7\u5300\u9668\u5141\u8FD0\u8574\u915D\u6655\u97F5\u5B55\u531D\u7838\u6742\u683D\u54C9\u707E\u5BB0\u8F7D\u518D\u5728\u54B1\u6512\u6682\u8D5E\u8D43\u810F\u846C\u906D\u7CDF\u51FF\u85FB\u67A3\u65E9\u6FA1\u86A4\u8E81\u566A\u9020\u7682\u7076\u71E5\u8D23\u62E9\u5219\u6CFD\u8D3C\u600E\u589E\u618E\u66FE\u8D60\u624E\u55B3\u6E23\u672D\u8F67"],["d540","\u8A81",7,"\u8A8B",7,"\u8A94",46],["d580","\u8AC3",32,"\u94E1\u95F8\u7728\u6805\u69A8\u548B\u4E4D\u70B8\u8BC8\u6458\u658B\u5B85\u7A84\u503A\u5BE8\u77BB\u6BE1\u8A79\u7C98\u6CBE\u76CF\u65A9\u8F97\u5D2D\u5C55\u8638\u6808\u5360\u6218\u7AD9\u6E5B\u7EFD\u6A1F\u7AE0\u5F70\u6F33\u5F20\u638C\u6DA8\u6756\u4E08\u5E10\u8D26\u4ED7\u80C0\u7634\u969C\u62DB\u662D\u627E\u6CBC\u8D75\u7167\u7F69\u5146\u8087\u53EC\u906E\u6298\u54F2\u86F0\u8F99\u8005\u9517\u8517\u8FD9\u6D59\u73CD\u659F\u771F\u7504\u7827\u81FB\u8D1E\u9488\u4FA6\u6795\u75B9\u8BCA\u9707\u632F\u9547\u9635\u84B8\u6323\u7741\u5F81\u72F0\u4E89\u6014\u6574\u62EF\u6B63\u653F"],["d640","\u8AE4",34,"\u8B08",27],["d680","\u8B24\u8B25\u8B27",30,"\u5E27\u75C7\u90D1\u8BC1\u829D\u679D\u652F\u5431\u8718\u77E5\u80A2\u8102\u6C41\u4E4B\u7EC7\u804C\u76F4\u690D\u6B96\u6267\u503C\u4F84\u5740\u6307\u6B62\u8DBE\u53EA\u65E8\u7EB8\u5FD7\u631A\u63B7\u81F3\u81F4\u7F6E\u5E1C\u5CD9\u5236\u667A\u79E9\u7A1A\u8D28\u7099\u75D4\u6EDE\u6CBB\u7A92\u4E2D\u76C5\u5FE0\u949F\u8877\u7EC8\u79CD\u80BF\u91CD\u4EF2\u4F17\u821F\u5468\u5DDE\u6D32\u8BCC\u7CA5\u8F74\u8098\u5E1A\u5492\u76B1\u5B99\u663C\u9AA4\u73E0\u682A\u86DB\u6731\u732A\u8BF8\u8BDB\u9010\u7AF9\u70DB\u716E\u62C4\u77A9\u5631\u4E3B\u8457\u67F1\u52A9\u86C0\u8D2E\u94F8\u7B51"],["d740","\u8B46",31,"\u8B67",4,"\u8B6D",25],["d780","\u8B87",24,"\u8BAC\u8BB1\u8BBB\u8BC7\u8BD0\u8BEA\u8C09\u8C1E\u4F4F\u6CE8\u795D\u9A7B\u6293\u722A\u62FD\u4E13\u7816\u8F6C\u64B0\u8D5A\u7BC6\u6869\u5E84\u88C5\u5986\u649E\u58EE\u72B6\u690E\u9525\u8FFD\u8D58\u5760\u7F00\u8C06\u51C6\u6349\u62D9\u5353\u684C\u7422\u8301\u914C\u5544\u7740\u707C\u6D4A\u5179\u54A8\u8D44\u59FF\u6ECB\u6DC4\u5B5C\u7D2B\u4ED4\u7C7D\u6ED3\u5B50\u81EA\u6E0D\u5B57\u9B03\u68D5\u8E2A\u5B97\u7EFC\u603B\u7EB5\u90B9\u8D70\u594F\u63CD\u79DF\u8DB3\u5352\u65CF\u7956\u8BC5\u963B\u7EC4\u94BB\u7E82\u5634\u9189\u6700\u7F6A\u5C0A\u9075\u6628\u5DE6\u4F50\u67DE\u505A\u4F5C\u5750\u5EA7"],["d840","\u8C38",8,"\u8C42\u8C43\u8C44\u8C45\u8C48\u8C4A\u8C4B\u8C4D",7,"\u8C56\u8C57\u8C58\u8C59\u8C5B",5,"\u8C63",6,"\u8C6C",6,"\u8C74\u8C75\u8C76\u8C77\u8C7B",6,"\u8C83\u8C84\u8C86\u8C87"],["d880","\u8C88\u8C8B\u8C8D",6,"\u8C95\u8C96\u8C97\u8C99",20,"\u4E8D\u4E0C\u5140\u4E10\u5EFF\u5345\u4E15\u4E98\u4E1E\u9B32\u5B6C\u5669\u4E28\u79BA\u4E3F\u5315\u4E47\u592D\u723B\u536E\u6C10\u56DF\u80E4\u9997\u6BD3\u777E\u9F17\u4E36\u4E9F\u9F10\u4E5C\u4E69\u4E93\u8288\u5B5B\u556C\u560F\u4EC4\u538D\u539D\u53A3\u53A5\u53AE\u9765\u8D5D\u531A\u53F5\u5326\u532E\u533E\u8D5C\u5366\u5363\u5202\u5208\u520E\u522D\u5233\u523F\u5240\u524C\u525E\u5261\u525C\u84AF\u527D\u5282\u5281\u5290\u5293\u5182\u7F54\u4EBB\u4EC3\u4EC9\u4EC2\u4EE8\u4EE1\u4EEB\u4EDE\u4F1B\u4EF3\u4F22\u4F64\u4EF5\u4F25\u4F27\u4F09\u4F2B\u4F5E\u4F67\u6538\u4F5A\u4F5D"],["d940","\u8CAE",62],["d980","\u8CED",32,"\u4F5F\u4F57\u4F32\u4F3D\u4F76\u4F74\u4F91\u4F89\u4F83\u4F8F\u4F7E\u4F7B\u4FAA\u4F7C\u4FAC\u4F94\u4FE6\u4FE8\u4FEA\u4FC5\u4FDA\u4FE3\u4FDC\u4FD1\u4FDF\u4FF8\u5029\u504C\u4FF3\u502C\u500F\u502E\u502D\u4FFE\u501C\u500C\u5025\u5028\u507E\u5043\u5055\u5048\u504E\u506C\u507B\u50A5\u50A7\u50A9\u50BA\u50D6\u5106\u50ED\u50EC\u50E6\u50EE\u5107\u510B\u4EDD\u6C3D\u4F58\u4F65\u4FCE\u9FA0\u6C46\u7C74\u516E\u5DFD\u9EC9\u9998\u5181\u5914\u52F9\u530D\u8A07\u5310\u51EB\u5919\u5155\u4EA0\u5156\u4EB3\u886E\u88A4\u4EB5\u8114\u88D2\u7980\u5B34\u8803\u7FB8\u51AB\u51B1\u51BD\u51BC"],["da40","\u8D0E",14,"\u8D20\u8D51\u8D52\u8D57\u8D5F\u8D65\u8D68\u8D69\u8D6A\u8D6C\u8D6E\u8D6F\u8D71\u8D72\u8D78",8,"\u8D82\u8D83\u8D86\u8D87\u8D88\u8D89\u8D8C",4,"\u8D92\u8D93\u8D95",9,"\u8DA0\u8DA1"],["da80","\u8DA2\u8DA4",12,"\u8DB2\u8DB6\u8DB7\u8DB9\u8DBB\u8DBD\u8DC0\u8DC1\u8DC2\u8DC5\u8DC7\u8DC8\u8DC9\u8DCA\u8DCD\u8DD0\u8DD2\u8DD3\u8DD4\u51C7\u5196\u51A2\u51A5\u8BA0\u8BA6\u8BA7\u8BAA\u8BB4\u8BB5\u8BB7\u8BC2\u8BC3\u8BCB\u8BCF\u8BCE\u8BD2\u8BD3\u8BD4\u8BD6\u8BD8\u8BD9\u8BDC\u8BDF\u8BE0\u8BE4\u8BE8\u8BE9\u8BEE\u8BF0\u8BF3\u8BF6\u8BF9\u8BFC\u8BFF\u8C00\u8C02\u8C04\u8C07\u8C0C\u8C0F\u8C11\u8C12\u8C14\u8C15\u8C16\u8C19\u8C1B\u8C18\u8C1D\u8C1F\u8C20\u8C21\u8C25\u8C27\u8C2A\u8C2B\u8C2E\u8C2F\u8C32\u8C33\u8C35\u8C36\u5369\u537A\u961D\u9622\u9621\u9631\u962A\u963D\u963C\u9642\u9649\u9654\u965F\u9667\u966C\u9672\u9674\u9688\u968D\u9697\u96B0\u9097\u909B\u909D\u9099\u90AC\u90A1\u90B4\u90B3\u90B6\u90BA"],["db40","\u8DD5\u8DD8\u8DD9\u8DDC\u8DE0\u8DE1\u8DE2\u8DE5\u8DE6\u8DE7\u8DE9\u8DED\u8DEE\u8DF0\u8DF1\u8DF2\u8DF4\u8DF6\u8DFC\u8DFE",6,"\u8E06\u8E07\u8E08\u8E0B\u8E0D\u8E0E\u8E10\u8E11\u8E12\u8E13\u8E15",7,"\u8E20\u8E21\u8E24",4,"\u8E2B\u8E2D\u8E30\u8E32\u8E33\u8E34\u8E36\u8E37\u8E38\u8E3B\u8E3C\u8E3E"],["db80","\u8E3F\u8E43\u8E45\u8E46\u8E4C",4,"\u8E53",5,"\u8E5A",11,"\u8E67\u8E68\u8E6A\u8E6B\u8E6E\u8E71\u90B8\u90B0\u90CF\u90C5\u90BE\u90D0\u90C4\u90C7\u90D3\u90E6\u90E2\u90DC\u90D7\u90DB\u90EB\u90EF\u90FE\u9104\u9122\u911E\u9123\u9131\u912F\u9139\u9143\u9146\u520D\u5942\u52A2\u52AC\u52AD\u52BE\u54FF\u52D0\u52D6\u52F0\u53DF\u71EE\u77CD\u5EF4\u51F5\u51FC\u9B2F\u53B6\u5F01\u755A\u5DEF\u574C\u57A9\u57A1\u587E\u58BC\u58C5\u58D1\u5729\u572C\u572A\u5733\u5739\u572E\u572F\u575C\u573B\u5742\u5769\u5785\u576B\u5786\u577C\u577B\u5768\u576D\u5776\u5773\u57AD\u57A4\u578C\u57B2\u57CF\u57A7\u57B4\u5793\u57A0\u57D5\u57D8\u57DA\u57D9\u57D2\u57B8\u57F4\u57EF\u57F8\u57E4\u57DD"],["dc40","\u8E73\u8E75\u8E77",4,"\u8E7D\u8E7E\u8E80\u8E82\u8E83\u8E84\u8E86\u8E88",6,"\u8E91\u8E92\u8E93\u8E95",6,"\u8E9D\u8E9F",11,"\u8EAD\u8EAE\u8EB0\u8EB1\u8EB3",6,"\u8EBB",7],["dc80","\u8EC3",10,"\u8ECF",21,"\u580B\u580D\u57FD\u57ED\u5800\u581E\u5819\u5844\u5820\u5865\u586C\u5881\u5889\u589A\u5880\u99A8\u9F19\u61FF\u8279\u827D\u827F\u828F\u828A\u82A8\u8284\u828E\u8291\u8297\u8299\u82AB\u82B8\u82BE\u82B0\u82C8\u82CA\u82E3\u8298\u82B7\u82AE\u82CB\u82CC\u82C1\u82A9\u82B4\u82A1\u82AA\u829F\u82C4\u82CE\u82A4\u82E1\u8309\u82F7\u82E4\u830F\u8307\u82DC\u82F4\u82D2\u82D8\u830C\u82FB\u82D3\u8311\u831A\u8306\u8314\u8315\u82E0\u82D5\u831C\u8351\u835B\u835C\u8308\u8392\u833C\u8334\u8331\u839B\u835E\u832F\u834F\u8347\u8343\u835F\u8340\u8317\u8360\u832D\u833A\u8333\u8366\u8365"],["dd40","\u8EE5",62],["dd80","\u8F24",32,"\u8368\u831B\u8369\u836C\u836A\u836D\u836E\u83B0\u8378\u83B3\u83B4\u83A0\u83AA\u8393\u839C\u8385\u837C\u83B6\u83A9\u837D\u83B8\u837B\u8398\u839E\u83A8\u83BA\u83BC\u83C1\u8401\u83E5\u83D8\u5807\u8418\u840B\u83DD\u83FD\u83D6\u841C\u8438\u8411\u8406\u83D4\u83DF\u840F\u8403\u83F8\u83F9\u83EA\u83C5\u83C0\u8426\u83F0\u83E1\u845C\u8451\u845A\u8459\u8473\u8487\u8488\u847A\u8489\u8478\u843C\u8446\u8469\u8476\u848C\u848E\u8431\u846D\u84C1\u84CD\u84D0\u84E6\u84BD\u84D3\u84CA\u84BF\u84BA\u84E0\u84A1\u84B9\u84B4\u8497\u84E5\u84E3\u850C\u750D\u8538\u84F0\u8539\u851F\u853A"],["de40","\u8F45",32,"\u8F6A\u8F80\u8F8C\u8F92\u8F9D\u8FA0\u8FA1\u8FA2\u8FA4\u8FA5\u8FA6\u8FA7\u8FAA\u8FAC\u8FAD\u8FAE\u8FAF\u8FB2\u8FB3\u8FB4\u8FB5\u8FB7\u8FB8\u8FBA\u8FBB\u8FBC\u8FBF\u8FC0\u8FC3\u8FC6"],["de80","\u8FC9",4,"\u8FCF\u8FD2\u8FD6\u8FD7\u8FDA\u8FE0\u8FE1\u8FE3\u8FE7\u8FEC\u8FEF\u8FF1\u8FF2\u8FF4\u8FF5\u8FF6\u8FFA\u8FFB\u8FFC\u8FFE\u8FFF\u9007\u9008\u900C\u900E\u9013\u9015\u9018\u8556\u853B\u84FF\u84FC\u8559\u8548\u8568\u8564\u855E\u857A\u77A2\u8543\u8572\u857B\u85A4\u85A8\u8587\u858F\u8579\u85AE\u859C\u8585\u85B9\u85B7\u85B0\u85D3\u85C1\u85DC\u85FF\u8627\u8605\u8629\u8616\u863C\u5EFE\u5F08\u593C\u5941\u8037\u5955\u595A\u5958\u530F\u5C22\u5C25\u5C2C\u5C34\u624C\u626A\u629F\u62BB\u62CA\u62DA\u62D7\u62EE\u6322\u62F6\u6339\u634B\u6343\u63AD\u63F6\u6371\u637A\u638E\u63B4\u636D\u63AC\u638A\u6369\u63AE\u63BC\u63F2\u63F8\u63E0\u63FF\u63C4\u63DE\u63CE\u6452\u63C6\u63BE\u6445\u6441\u640B\u641B\u6420\u640C\u6426\u6421\u645E\u6484\u646D\u6496"],["df40","\u9019\u901C\u9023\u9024\u9025\u9027",5,"\u9030",4,"\u9037\u9039\u903A\u903D\u903F\u9040\u9043\u9045\u9046\u9048",4,"\u904E\u9054\u9055\u9056\u9059\u905A\u905C",5,"\u9064\u9066\u9067\u9069\u906A\u906B\u906C\u906F",4,"\u9076",6,"\u907E\u9081"],["df80","\u9084\u9085\u9086\u9087\u9089\u908A\u908C",4,"\u9092\u9094\u9096\u9098\u909A\u909C\u909E\u909F\u90A0\u90A4\u90A5\u90A7\u90A8\u90A9\u90AB\u90AD\u90B2\u90B7\u90BC\u90BD\u90BF\u90C0\u647A\u64B7\u64B8\u6499\u64BA\u64C0\u64D0\u64D7\u64E4\u64E2\u6509\u6525\u652E\u5F0B\u5FD2\u7519\u5F11\u535F\u53F1\u53FD\u53E9\u53E8\u53FB\u5412\u5416\u5406\u544B\u5452\u5453\u5454\u5456\u5443\u5421\u5457\u5459\u5423\u5432\u5482\u5494\u5477\u5471\u5464\u549A\u549B\u5484\u5476\u5466\u549D\u54D0\u54AD\u54C2\u54B4\u54D2\u54A7\u54A6\u54D3\u54D4\u5472\u54A3\u54D5\u54BB\u54BF\u54CC\u54D9\u54DA\u54DC\u54A9\u54AA\u54A4\u54DD\u54CF\u54DE\u551B\u54E7\u5520\u54FD\u5514\u54F3\u5522\u5523\u550F\u5511\u5527\u552A\u5567\u558F\u55B5\u5549\u556D\u5541\u5555\u553F\u5550\u553C"],["e040","\u90C2\u90C3\u90C6\u90C8\u90C9\u90CB\u90CC\u90CD\u90D2\u90D4\u90D5\u90D6\u90D8\u90D9\u90DA\u90DE\u90DF\u90E0\u90E3\u90E4\u90E5\u90E9\u90EA\u90EC\u90EE\u90F0\u90F1\u90F2\u90F3\u90F5\u90F6\u90F7\u90F9\u90FA\u90FB\u90FC\u90FF\u9100\u9101\u9103\u9105",19,"\u911A\u911B\u911C"],["e080","\u911D\u911F\u9120\u9121\u9124",10,"\u9130\u9132",6,"\u913A",8,"\u9144\u5537\u5556\u5575\u5576\u5577\u5533\u5530\u555C\u558B\u55D2\u5583\u55B1\u55B9\u5588\u5581\u559F\u557E\u55D6\u5591\u557B\u55DF\u55BD\u55BE\u5594\u5599\u55EA\u55F7\u55C9\u561F\u55D1\u55EB\u55EC\u55D4\u55E6\u55DD\u55C4\u55EF\u55E5\u55F2\u55F3\u55CC\u55CD\u55E8\u55F5\u55E4\u8F94\u561E\u5608\u560C\u5601\u5624\u5623\u55FE\u5600\u5627\u562D\u5658\u5639\u5657\u562C\u564D\u5662\u5659\u565C\u564C\u5654\u5686\u5664\u5671\u566B\u567B\u567C\u5685\u5693\u56AF\u56D4\u56D7\u56DD\u56E1\u56F5\u56EB\u56F9\u56FF\u5704\u570A\u5709\u571C\u5E0F\u5E19\u5E14\u5E11\u5E31\u5E3B\u5E3C"],["e140","\u9145\u9147\u9148\u9151\u9153\u9154\u9155\u9156\u9158\u9159\u915B\u915C\u915F\u9160\u9166\u9167\u9168\u916B\u916D\u9173\u917A\u917B\u917C\u9180",4,"\u9186\u9188\u918A\u918E\u918F\u9193",6,"\u919C",5,"\u91A4",5,"\u91AB\u91AC\u91B0\u91B1\u91B2\u91B3\u91B6\u91B7\u91B8\u91B9\u91BB"],["e180","\u91BC",10,"\u91C8\u91CB\u91D0\u91D2",9,"\u91DD",8,"\u5E37\u5E44\u5E54\u5E5B\u5E5E\u5E61\u5C8C\u5C7A\u5C8D\u5C90\u5C96\u5C88\u5C98\u5C99\u5C91\u5C9A\u5C9C\u5CB5\u5CA2\u5CBD\u5CAC\u5CAB\u5CB1\u5CA3\u5CC1\u5CB7\u5CC4\u5CD2\u5CE4\u5CCB\u5CE5\u5D02\u5D03\u5D27\u5D26\u5D2E\u5D24\u5D1E\u5D06\u5D1B\u5D58\u5D3E\u5D34\u5D3D\u5D6C\u5D5B\u5D6F\u5D5D\u5D6B\u5D4B\u5D4A\u5D69\u5D74\u5D82\u5D99\u5D9D\u8C73\u5DB7\u5DC5\u5F73\u5F77\u5F82\u5F87\u5F89\u5F8C\u5F95\u5F99\u5F9C\u5FA8\u5FAD\u5FB5\u5FBC\u8862\u5F61\u72AD\u72B0\u72B4\u72B7\u72B8\u72C3\u72C1\u72CE\u72CD\u72D2\u72E8\u72EF\u72E9\u72F2\u72F4\u72F7\u7301\u72F3\u7303\u72FA"],["e240","\u91E6",62],["e280","\u9225",32,"\u72FB\u7317\u7313\u7321\u730A\u731E\u731D\u7315\u7322\u7339\u7325\u732C\u7338\u7331\u7350\u734D\u7357\u7360\u736C\u736F\u737E\u821B\u5925\u98E7\u5924\u5902\u9963\u9967",5,"\u9974\u9977\u997D\u9980\u9984\u9987\u998A\u998D\u9990\u9991\u9993\u9994\u9995\u5E80\u5E91\u5E8B\u5E96\u5EA5\u5EA0\u5EB9\u5EB5\u5EBE\u5EB3\u8D53\u5ED2\u5ED1\u5EDB\u5EE8\u5EEA\u81BA\u5FC4\u5FC9\u5FD6\u5FCF\u6003\u5FEE\u6004\u5FE1\u5FE4\u5FFE\u6005\u6006\u5FEA\u5FED\u5FF8\u6019\u6035\u6026\u601B\u600F\u600D\u6029\u602B\u600A\u603F\u6021\u6078\u6079\u607B\u607A\u6042"],["e340","\u9246",45,"\u9275",16],["e380","\u9286",7,"\u928F",24,"\u606A\u607D\u6096\u609A\u60AD\u609D\u6083\u6092\u608C\u609B\u60EC\u60BB\u60B1\u60DD\u60D8\u60C6\u60DA\u60B4\u6120\u6126\u6115\u6123\u60F4\u6100\u610E\u612B\u614A\u6175\u61AC\u6194\u61A7\u61B7\u61D4\u61F5\u5FDD\u96B3\u95E9\u95EB\u95F1\u95F3\u95F5\u95F6\u95FC\u95FE\u9603\u9604\u9606\u9608\u960A\u960B\u960C\u960D\u960F\u9612\u9615\u9616\u9617\u9619\u961A\u4E2C\u723F\u6215\u6C35\u6C54\u6C5C\u6C4A\u6CA3\u6C85\u6C90\u6C94\u6C8C\u6C68\u6C69\u6C74\u6C76\u6C86\u6CA9\u6CD0\u6CD4\u6CAD\u6CF7\u6CF8\u6CF1\u6CD7\u6CB2\u6CE0\u6CD6\u6CFA\u6CEB\u6CEE\u6CB1\u6CD3\u6CEF\u6CFE"],["e440","\u92A8",5,"\u92AF",24,"\u92C9",31],["e480","\u92E9",32,"\u6D39\u6D27\u6D0C\u6D43\u6D48\u6D07\u6D04\u6D19\u6D0E\u6D2B\u6D4D\u6D2E\u6D35\u6D1A\u6D4F\u6D52\u6D54\u6D33\u6D91\u6D6F\u6D9E\u6DA0\u6D5E\u6D93\u6D94\u6D5C\u6D60\u6D7C\u6D63\u6E1A\u6DC7\u6DC5\u6DDE\u6E0E\u6DBF\u6DE0\u6E11\u6DE6\u6DDD\u6DD9\u6E16\u6DAB\u6E0C\u6DAE\u6E2B\u6E6E\u6E4E\u6E6B\u6EB2\u6E5F\u6E86\u6E53\u6E54\u6E32\u6E25\u6E44\u6EDF\u6EB1\u6E98\u6EE0\u6F2D\u6EE2\u6EA5\u6EA7\u6EBD\u6EBB\u6EB7\u6ED7\u6EB4\u6ECF\u6E8F\u6EC2\u6E9F\u6F62\u6F46\u6F47\u6F24\u6F15\u6EF9\u6F2F\u6F36\u6F4B\u6F74\u6F2A\u6F09\u6F29\u6F89\u6F8D\u6F8C\u6F78\u6F72\u6F7C\u6F7A\u6FD1"],["e540","\u930A",51,"\u933F",10],["e580","\u934A",31,"\u936B\u6FC9\u6FA7\u6FB9\u6FB6\u6FC2\u6FE1\u6FEE\u6FDE\u6FE0\u6FEF\u701A\u7023\u701B\u7039\u7035\u704F\u705E\u5B80\u5B84\u5B95\u5B93\u5BA5\u5BB8\u752F\u9A9E\u6434\u5BE4\u5BEE\u8930\u5BF0\u8E47\u8B07\u8FB6\u8FD3\u8FD5\u8FE5\u8FEE\u8FE4\u8FE9\u8FE6\u8FF3\u8FE8\u9005\u9004\u900B\u9026\u9011\u900D\u9016\u9021\u9035\u9036\u902D\u902F\u9044\u9051\u9052\u9050\u9068\u9058\u9062\u905B\u66B9\u9074\u907D\u9082\u9088\u9083\u908B\u5F50\u5F57\u5F56\u5F58\u5C3B\u54AB\u5C50\u5C59\u5B71\u5C63\u5C66\u7FBC\u5F2A\u5F29\u5F2D\u8274\u5F3C\u9B3B\u5C6E\u5981\u5983\u598D\u59A9\u59AA\u59A3"],["e640","\u936C",34,"\u9390",27],["e680","\u93AC",29,"\u93CB\u93CC\u93CD\u5997\u59CA\u59AB\u599E\u59A4\u59D2\u59B2\u59AF\u59D7\u59BE\u5A05\u5A06\u59DD\u5A08\u59E3\u59D8\u59F9\u5A0C\u5A09\u5A32\u5A34\u5A11\u5A23\u5A13\u5A40\u5A67\u5A4A\u5A55\u5A3C\u5A62\u5A75\u80EC\u5AAA\u5A9B\u5A77\u5A7A\u5ABE\u5AEB\u5AB2\u5AD2\u5AD4\u5AB8\u5AE0\u5AE3\u5AF1\u5AD6\u5AE6\u5AD8\u5ADC\u5B09\u5B17\u5B16\u5B32\u5B37\u5B40\u5C15\u5C1C\u5B5A\u5B65\u5B73\u5B51\u5B53\u5B62\u9A75\u9A77\u9A78\u9A7A\u9A7F\u9A7D\u9A80\u9A81\u9A85\u9A88\u9A8A\u9A90\u9A92\u9A93\u9A96\u9A98\u9A9B\u9A9C\u9A9D\u9A9F\u9AA0\u9AA2\u9AA3\u9AA5\u9AA7\u7E9F\u7EA1\u7EA3\u7EA5\u7EA8\u7EA9"],["e740","\u93CE",7,"\u93D7",54],["e780","\u940E",32,"\u7EAD\u7EB0\u7EBE\u7EC0\u7EC1\u7EC2\u7EC9\u7ECB\u7ECC\u7ED0\u7ED4\u7ED7\u7EDB\u7EE0\u7EE1\u7EE8\u7EEB\u7EEE\u7EEF\u7EF1\u7EF2\u7F0D\u7EF6\u7EFA\u7EFB\u7EFE\u7F01\u7F02\u7F03\u7F07\u7F08\u7F0B\u7F0C\u7F0F\u7F11\u7F12\u7F17\u7F19\u7F1C\u7F1B\u7F1F\u7F21",6,"\u7F2A\u7F2B\u7F2C\u7F2D\u7F2F",4,"\u7F35\u5E7A\u757F\u5DDB\u753E\u9095\u738E\u7391\u73AE\u73A2\u739F\u73CF\u73C2\u73D1\u73B7\u73B3\u73C0\u73C9\u73C8\u73E5\u73D9\u987C\u740A\u73E9\u73E7\u73DE\u73BA\u73F2\u740F\u742A\u745B\u7426\u7425\u7428\u7430\u742E\u742C"],["e840","\u942F",14,"\u943F",43,"\u946C\u946D\u946E\u946F"],["e880","\u9470",20,"\u9491\u9496\u9498\u94C7\u94CF\u94D3\u94D4\u94DA\u94E6\u94FB\u951C\u9520\u741B\u741A\u7441\u745C\u7457\u7455\u7459\u7477\u746D\u747E\u749C\u748E\u7480\u7481\u7487\u748B\u749E\u74A8\u74A9\u7490\u74A7\u74D2\u74BA\u97EA\u97EB\u97EC\u674C\u6753\u675E\u6748\u6769\u67A5\u6787\u676A\u6773\u6798\u67A7\u6775\u67A8\u679E\u67AD\u678B\u6777\u677C\u67F0\u6809\u67D8\u680A\u67E9\u67B0\u680C\u67D9\u67B5\u67DA\u67B3\u67DD\u6800\u67C3\u67B8\u67E2\u680E\u67C1\u67FD\u6832\u6833\u6860\u6861\u684E\u6862\u6844\u6864\u6883\u681D\u6855\u6866\u6841\u6867\u6840\u683E\u684A\u6849\u6829\u68B5\u688F\u6874\u6877\u6893\u686B\u68C2\u696E\u68FC\u691F\u6920\u68F9"],["e940","\u9527\u9533\u953D\u9543\u9548\u954B\u9555\u955A\u9560\u956E\u9574\u9575\u9577",7,"\u9580",42],["e980","\u95AB",32,"\u6924\u68F0\u690B\u6901\u6957\u68E3\u6910\u6971\u6939\u6960\u6942\u695D\u6984\u696B\u6980\u6998\u6978\u6934\u69CC\u6987\u6988\u69CE\u6989\u6966\u6963\u6979\u699B\u69A7\u69BB\u69AB\u69AD\u69D4\u69B1\u69C1\u69CA\u69DF\u6995\u69E0\u698D\u69FF\u6A2F\u69ED\u6A17\u6A18\u6A65\u69F2\u6A44\u6A3E\u6AA0\u6A50\u6A5B\u6A35\u6A8E\u6A79\u6A3D\u6A28\u6A58\u6A7C\u6A91\u6A90\u6AA9\u6A97\u6AAB\u7337\u7352\u6B81\u6B82\u6B87\u6B84\u6B92\u6B93\u6B8D\u6B9A\u6B9B\u6BA1\u6BAA\u8F6B\u8F6D\u8F71\u8F72\u8F73\u8F75\u8F76\u8F78\u8F77\u8F79\u8F7A\u8F7C\u8F7E\u8F81\u8F82\u8F84\u8F87\u8F8B"],["ea40","\u95CC",27,"\u95EC\u95FF\u9607\u9613\u9618\u961B\u961E\u9620\u9623",6,"\u962B\u962C\u962D\u962F\u9630\u9637\u9638\u9639\u963A\u963E\u9641\u9643\u964A\u964E\u964F\u9651\u9652\u9653\u9656\u9657"],["ea80","\u9658\u9659\u965A\u965C\u965D\u965E\u9660\u9663\u9665\u9666\u966B\u966D",4,"\u9673\u9678",12,"\u9687\u9689\u968A\u8F8D\u8F8E\u8F8F\u8F98\u8F9A\u8ECE\u620B\u6217\u621B\u621F\u6222\u6221\u6225\u6224\u622C\u81E7\u74EF\u74F4\u74FF\u750F\u7511\u7513\u6534\u65EE\u65EF\u65F0\u660A\u6619\u6772\u6603\u6615\u6600\u7085\u66F7\u661D\u6634\u6631\u6636\u6635\u8006\u665F\u6654\u6641\u664F\u6656\u6661\u6657\u6677\u6684\u668C\u66A7\u669D\u66BE\u66DB\u66DC\u66E6\u66E9\u8D32\u8D33\u8D36\u8D3B\u8D3D\u8D40\u8D45\u8D46\u8D48\u8D49\u8D47\u8D4D\u8D55\u8D59\u89C7\u89CA\u89CB\u89CC\u89CE\u89CF\u89D0\u89D1\u726E\u729F\u725D\u7266\u726F\u727E\u727F\u7284\u728B\u728D\u728F\u7292\u6308\u6332\u63B0"],["eb40","\u968C\u968E\u9691\u9692\u9693\u9695\u9696\u969A\u969B\u969D",9,"\u96A8",7,"\u96B1\u96B2\u96B4\u96B5\u96B7\u96B8\u96BA\u96BB\u96BF\u96C2\u96C3\u96C8\u96CA\u96CB\u96D0\u96D1\u96D3\u96D4\u96D6",9,"\u96E1",6,"\u96EB"],["eb80","\u96EC\u96ED\u96EE\u96F0\u96F1\u96F2\u96F4\u96F5\u96F8\u96FA\u96FB\u96FC\u96FD\u96FF\u9702\u9703\u9705\u970A\u970B\u970C\u9710\u9711\u9712\u9714\u9715\u9717",4,"\u971D\u971F\u9720\u643F\u64D8\u8004\u6BEA\u6BF3\u6BFD\u6BF5\u6BF9\u6C05\u6C07\u6C06\u6C0D\u6C15\u6C18\u6C19\u6C1A\u6C21\u6C29\u6C24\u6C2A\u6C32\u6535\u6555\u656B\u724D\u7252\u7256\u7230\u8662\u5216\u809F\u809C\u8093\u80BC\u670A\u80BD\u80B1\u80AB\u80AD\u80B4\u80B7\u80E7\u80E8\u80E9\u80EA\u80DB\u80C2\u80C4\u80D9\u80CD\u80D7\u6710\u80DD\u80EB\u80F1\u80F4\u80ED\u810D\u810E\u80F2\u80FC\u6715\u8112\u8C5A\u8136\u811E\u812C\u8118\u8132\u8148\u814C\u8153\u8174\u8159\u815A\u8171\u8160\u8169\u817C\u817D\u816D\u8167\u584D\u5AB5\u8188\u8182\u8191\u6ED5\u81A3\u81AA\u81CC\u6726\u81CA\u81BB"],["ec40","\u9721",8,"\u972B\u972C\u972E\u972F\u9731\u9733",4,"\u973A\u973B\u973C\u973D\u973F",18,"\u9754\u9755\u9757\u9758\u975A\u975C\u975D\u975F\u9763\u9764\u9766\u9767\u9768\u976A",7],["ec80","\u9772\u9775\u9777",4,"\u977D",7,"\u9786",4,"\u978C\u978E\u978F\u9790\u9793\u9795\u9796\u9797\u9799",4,"\u81C1\u81A6\u6B24\u6B37\u6B39\u6B43\u6B46\u6B59\u98D1\u98D2\u98D3\u98D5\u98D9\u98DA\u6BB3\u5F40\u6BC2\u89F3\u6590\u9F51\u6593\u65BC\u65C6\u65C4\u65C3\u65CC\u65CE\u65D2\u65D6\u7080\u709C\u7096\u709D\u70BB\u70C0\u70B7\u70AB\u70B1\u70E8\u70CA\u7110\u7113\u7116\u712F\u7131\u7173\u715C\u7168\u7145\u7172\u714A\u7178\u717A\u7198\u71B3\u71B5\u71A8\u71A0\u71E0\u71D4\u71E7\u71F9\u721D\u7228\u706C\u7118\u7166\u71B9\u623E\u623D\u6243\u6248\u6249\u793B\u7940\u7946\u7949\u795B\u795C\u7953\u795A\u7962\u7957\u7960\u796F\u7967\u797A\u7985\u798A\u799A\u79A7\u79B3\u5FD1\u5FD0"],["ed40","\u979E\u979F\u97A1\u97A2\u97A4",6,"\u97AC\u97AE\u97B0\u97B1\u97B3\u97B5",46],["ed80","\u97E4\u97E5\u97E8\u97EE",4,"\u97F4\u97F7",23,"\u603C\u605D\u605A\u6067\u6041\u6059\u6063\u60AB\u6106\u610D\u615D\u61A9\u619D\u61CB\u61D1\u6206\u8080\u807F\u6C93\u6CF6\u6DFC\u77F6\u77F8\u7800\u7809\u7817\u7818\u7811\u65AB\u782D\u781C\u781D\u7839\u783A\u783B\u781F\u783C\u7825\u782C\u7823\u7829\u784E\u786D\u7856\u7857\u7826\u7850\u7847\u784C\u786A\u789B\u7893\u789A\u7887\u789C\u78A1\u78A3\u78B2\u78B9\u78A5\u78D4\u78D9\u78C9\u78EC\u78F2\u7905\u78F4\u7913\u7924\u791E\u7934\u9F9B\u9EF9\u9EFB\u9EFC\u76F1\u7704\u770D\u76F9\u7707\u7708\u771A\u7722\u7719\u772D\u7726\u7735\u7738\u7750\u7751\u7747\u7743\u775A\u7768"],["ee40","\u980F",62],["ee80","\u984E",32,"\u7762\u7765\u777F\u778D\u777D\u7780\u778C\u7791\u779F\u77A0\u77B0\u77B5\u77BD\u753A\u7540\u754E\u754B\u7548\u755B\u7572\u7579\u7583\u7F58\u7F61\u7F5F\u8A48\u7F68\u7F74\u7F71\u7F79\u7F81\u7F7E\u76CD\u76E5\u8832\u9485\u9486\u9487\u948B\u948A\u948C\u948D\u948F\u9490\u9494\u9497\u9495\u949A\u949B\u949C\u94A3\u94A4\u94AB\u94AA\u94AD\u94AC\u94AF\u94B0\u94B2\u94B4\u94B6",4,"\u94BC\u94BD\u94BF\u94C4\u94C8",6,"\u94D0\u94D1\u94D2\u94D5\u94D6\u94D7\u94D9\u94D8\u94DB\u94DE\u94DF\u94E0\u94E2\u94E4\u94E5\u94E7\u94E8\u94EA"],["ef40","\u986F",5,"\u988B\u988E\u9892\u9895\u9899\u98A3\u98A8",37,"\u98CF\u98D0\u98D4\u98D6\u98D7\u98DB\u98DC\u98DD\u98E0",4],["ef80","\u98E5\u98E6\u98E9",30,"\u94E9\u94EB\u94EE\u94EF\u94F3\u94F4\u94F5\u94F7\u94F9\u94FC\u94FD\u94FF\u9503\u9502\u9506\u9507\u9509\u950A\u950D\u950E\u950F\u9512",4,"\u9518\u951B\u951D\u951E\u951F\u9522\u952A\u952B\u9529\u952C\u9531\u9532\u9534\u9536\u9537\u9538\u953C\u953E\u953F\u9542\u9535\u9544\u9545\u9546\u9549\u954C\u954E\u954F\u9552\u9553\u9554\u9556\u9557\u9558\u9559\u955B\u955E\u955F\u955D\u9561\u9562\u9564",8,"\u956F\u9571\u9572\u9573\u953A\u77E7\u77EC\u96C9\u79D5\u79ED\u79E3\u79EB\u7A06\u5D47\u7A03\u7A02\u7A1E\u7A14"],["f040","\u9908",4,"\u990E\u990F\u9911",28,"\u992F",26],["f080","\u994A",9,"\u9956",12,"\u9964\u9966\u9973\u9978\u9979\u997B\u997E\u9982\u9983\u9989\u7A39\u7A37\u7A51\u9ECF\u99A5\u7A70\u7688\u768E\u7693\u7699\u76A4\u74DE\u74E0\u752C\u9E20\u9E22\u9E28",4,"\u9E32\u9E31\u9E36\u9E38\u9E37\u9E39\u9E3A\u9E3E\u9E41\u9E42\u9E44\u9E46\u9E47\u9E48\u9E49\u9E4B\u9E4C\u9E4E\u9E51\u9E55\u9E57\u9E5A\u9E5B\u9E5C\u9E5E\u9E63\u9E66",6,"\u9E71\u9E6D\u9E73\u7592\u7594\u7596\u75A0\u759D\u75AC\u75A3\u75B3\u75B4\u75B8\u75C4\u75B1\u75B0\u75C3\u75C2\u75D6\u75CD\u75E3\u75E8\u75E6\u75E4\u75EB\u75E7\u7603\u75F1\u75FC\u75FF\u7610\u7600\u7605\u760C\u7617\u760A\u7625\u7618\u7615\u7619"],["f140","\u998C\u998E\u999A",10,"\u99A6\u99A7\u99A9",47],["f180","\u99D9",32,"\u761B\u763C\u7622\u7620\u7640\u762D\u7630\u763F\u7635\u7643\u763E\u7633\u764D\u765E\u7654\u765C\u7656\u766B\u766F\u7FCA\u7AE6\u7A78\u7A79\u7A80\u7A86\u7A88\u7A95\u7AA6\u7AA0\u7AAC\u7AA8\u7AAD\u7AB3\u8864\u8869\u8872\u887D\u887F\u8882\u88A2\u88C6\u88B7\u88BC\u88C9\u88E2\u88CE\u88E3\u88E5\u88F1\u891A\u88FC\u88E8\u88FE\u88F0\u8921\u8919\u8913\u891B\u890A\u8934\u892B\u8936\u8941\u8966\u897B\u758B\u80E5\u76B2\u76B4\u77DC\u8012\u8014\u8016\u801C\u8020\u8022\u8025\u8026\u8027\u8029\u8028\u8031\u800B\u8035\u8043\u8046\u804D\u8052\u8069\u8071\u8983\u9878\u9880\u9883"],["f240","\u99FA",62],["f280","\u9A39",32,"\u9889\u988C\u988D\u988F\u9894\u989A\u989B\u989E\u989F\u98A1\u98A2\u98A5\u98A6\u864D\u8654\u866C\u866E\u867F\u867A\u867C\u867B\u86A8\u868D\u868B\u86AC\u869D\u86A7\u86A3\u86AA\u8693\u86A9\u86B6\u86C4\u86B5\u86CE\u86B0\u86BA\u86B1\u86AF\u86C9\u86CF\u86B4\u86E9\u86F1\u86F2\u86ED\u86F3\u86D0\u8713\u86DE\u86F4\u86DF\u86D8\u86D1\u8703\u8707\u86F8\u8708\u870A\u870D\u8709\u8723\u873B\u871E\u8725\u872E\u871A\u873E\u8748\u8734\u8731\u8729\u8737\u873F\u8782\u8722\u877D\u877E\u877B\u8760\u8770\u874C\u876E\u878B\u8753\u8763\u877C\u8764\u8759\u8765\u8793\u87AF\u87A8\u87D2"],["f340","\u9A5A",17,"\u9A72\u9A83\u9A89\u9A8D\u9A8E\u9A94\u9A95\u9A99\u9AA6\u9AA9",6,"\u9AB2\u9AB3\u9AB4\u9AB5\u9AB9\u9ABB\u9ABD\u9ABE\u9ABF\u9AC3\u9AC4\u9AC6",4,"\u9ACD\u9ACE\u9ACF\u9AD0\u9AD2\u9AD4\u9AD5\u9AD6\u9AD7\u9AD9\u9ADA\u9ADB\u9ADC"],["f380","\u9ADD\u9ADE\u9AE0\u9AE2\u9AE3\u9AE4\u9AE5\u9AE7\u9AE8\u9AE9\u9AEA\u9AEC\u9AEE\u9AF0",8,"\u9AFA\u9AFC",6,"\u9B04\u9B05\u9B06\u87C6\u8788\u8785\u87AD\u8797\u8783\u87AB\u87E5\u87AC\u87B5\u87B3\u87CB\u87D3\u87BD\u87D1\u87C0\u87CA\u87DB\u87EA\u87E0\u87EE\u8816\u8813\u87FE\u880A\u881B\u8821\u8839\u883C\u7F36\u7F42\u7F44\u7F45\u8210\u7AFA\u7AFD\u7B08\u7B03\u7B04\u7B15\u7B0A\u7B2B\u7B0F\u7B47\u7B38\u7B2A\u7B19\u7B2E\u7B31\u7B20\u7B25\u7B24\u7B33\u7B3E\u7B1E\u7B58\u7B5A\u7B45\u7B75\u7B4C\u7B5D\u7B60\u7B6E\u7B7B\u7B62\u7B72\u7B71\u7B90\u7BA6\u7BA7\u7BB8\u7BAC\u7B9D\u7BA8\u7B85\u7BAA\u7B9C\u7BA2\u7BAB\u7BB4\u7BD1\u7BC1\u7BCC\u7BDD\u7BDA\u7BE5\u7BE6\u7BEA\u7C0C\u7BFE\u7BFC\u7C0F\u7C16\u7C0B"],["f440","\u9B07\u9B09",5,"\u9B10\u9B11\u9B12\u9B14",10,"\u9B20\u9B21\u9B22\u9B24",10,"\u9B30\u9B31\u9B33",7,"\u9B3D\u9B3E\u9B3F\u9B40\u9B46\u9B4A\u9B4B\u9B4C\u9B4E\u9B50\u9B52\u9B53\u9B55",5],["f480","\u9B5B",32,"\u7C1F\u7C2A\u7C26\u7C38\u7C41\u7C40\u81FE\u8201\u8202\u8204\u81EC\u8844\u8221\u8222\u8223\u822D\u822F\u8228\u822B\u8238\u823B\u8233\u8234\u823E\u8244\u8249\u824B\u824F\u825A\u825F\u8268\u887E\u8885\u8888\u88D8\u88DF\u895E\u7F9D\u7F9F\u7FA7\u7FAF\u7FB0\u7FB2\u7C7C\u6549\u7C91\u7C9D\u7C9C\u7C9E\u7CA2\u7CB2\u7CBC\u7CBD\u7CC1\u7CC7\u7CCC\u7CCD\u7CC8\u7CC5\u7CD7\u7CE8\u826E\u66A8\u7FBF\u7FCE\u7FD5\u7FE5\u7FE1\u7FE6\u7FE9\u7FEE\u7FF3\u7CF8\u7D77\u7DA6\u7DAE\u7E47\u7E9B\u9EB8\u9EB4\u8D73\u8D84\u8D94\u8D91\u8DB1\u8D67\u8D6D\u8C47\u8C49\u914A\u9150\u914E\u914F\u9164"],["f540","\u9B7C",62],["f580","\u9BBB",32,"\u9162\u9161\u9170\u9169\u916F\u917D\u917E\u9172\u9174\u9179\u918C\u9185\u9190\u918D\u9191\u91A2\u91A3\u91AA\u91AD\u91AE\u91AF\u91B5\u91B4\u91BA\u8C55\u9E7E\u8DB8\u8DEB\u8E05\u8E59\u8E69\u8DB5\u8DBF\u8DBC\u8DBA\u8DC4\u8DD6\u8DD7\u8DDA\u8DDE\u8DCE\u8DCF\u8DDB\u8DC6\u8DEC\u8DF7\u8DF8\u8DE3\u8DF9\u8DFB\u8DE4\u8E09\u8DFD\u8E14\u8E1D\u8E1F\u8E2C\u8E2E\u8E23\u8E2F\u8E3A\u8E40\u8E39\u8E35\u8E3D\u8E31\u8E49\u8E41\u8E42\u8E51\u8E52\u8E4A\u8E70\u8E76\u8E7C\u8E6F\u8E74\u8E85\u8E8F\u8E94\u8E90\u8E9C\u8E9E\u8C78\u8C82\u8C8A\u8C85\u8C98\u8C94\u659B\u89D6\u89DE\u89DA\u89DC"],["f640","\u9BDC",62],["f680","\u9C1B",32,"\u89E5\u89EB\u89EF\u8A3E\u8B26\u9753\u96E9\u96F3\u96EF\u9706\u9701\u9708\u970F\u970E\u972A\u972D\u9730\u973E\u9F80\u9F83\u9F85",5,"\u9F8C\u9EFE\u9F0B\u9F0D\u96B9\u96BC\u96BD\u96CE\u96D2\u77BF\u96E0\u928E\u92AE\u92C8\u933E\u936A\u93CA\u938F\u943E\u946B\u9C7F\u9C82\u9C85\u9C86\u9C87\u9C88\u7A23\u9C8B\u9C8E\u9C90\u9C91\u9C92\u9C94\u9C95\u9C9A\u9C9B\u9C9E",5,"\u9CA5",4,"\u9CAB\u9CAD\u9CAE\u9CB0",7,"\u9CBA\u9CBB\u9CBC\u9CBD\u9CC4\u9CC5\u9CC6\u9CC7\u9CCA\u9CCB"],["f740","\u9C3C",62],["f780","\u9C7B\u9C7D\u9C7E\u9C80\u9C83\u9C84\u9C89\u9C8A\u9C8C\u9C8F\u9C93\u9C96\u9C97\u9C98\u9C99\u9C9D\u9CAA\u9CAC\u9CAF\u9CB9\u9CBE",4,"\u9CC8\u9CC9\u9CD1\u9CD2\u9CDA\u9CDB\u9CE0\u9CE1\u9CCC",4,"\u9CD3\u9CD4\u9CD5\u9CD7\u9CD8\u9CD9\u9CDC\u9CDD\u9CDF\u9CE2\u977C\u9785\u9791\u9792\u9794\u97AF\u97AB\u97A3\u97B2\u97B4\u9AB1\u9AB0\u9AB7\u9E58\u9AB6\u9ABA\u9ABC\u9AC1\u9AC0\u9AC5\u9AC2\u9ACB\u9ACC\u9AD1\u9B45\u9B43\u9B47\u9B49\u9B48\u9B4D\u9B51\u98E8\u990D\u992E\u9955\u9954\u9ADF\u9AE1\u9AE6\u9AEF\u9AEB\u9AFB\u9AED\u9AF9\u9B08\u9B0F\u9B13\u9B1F\u9B23\u9EBD\u9EBE\u7E3B\u9E82\u9E87\u9E88\u9E8B\u9E92\u93D6\u9E9D\u9E9F\u9EDB\u9EDC\u9EDD\u9EE0\u9EDF\u9EE2\u9EE9\u9EE7\u9EE5\u9EEA\u9EEF\u9F22\u9F2C\u9F2F\u9F39\u9F37\u9F3D\u9F3E\u9F44"],["f840","\u9CE3",62],["f880","\u9D22",32],["f940","\u9D43",62],["f980","\u9D82",32],["fa40","\u9DA3",62],["fa80","\u9DE2",32],["fb40","\u9E03",27,"\u9E24\u9E27\u9E2E\u9E30\u9E34\u9E3B\u9E3C\u9E40\u9E4D\u9E50\u9E52\u9E53\u9E54\u9E56\u9E59\u9E5D\u9E5F\u9E60\u9E61\u9E62\u9E65\u9E6E\u9E6F\u9E72\u9E74",9,"\u9E80"],["fb80","\u9E81\u9E83\u9E84\u9E85\u9E86\u9E89\u9E8A\u9E8C",5,"\u9E94",8,"\u9E9E\u9EA0",5,"\u9EA7\u9EA8\u9EA9\u9EAA"],["fc40","\u9EAB",8,"\u9EB5\u9EB6\u9EB7\u9EB9\u9EBA\u9EBC\u9EBF",4,"\u9EC5\u9EC6\u9EC7\u9EC8\u9ECA\u9ECB\u9ECC\u9ED0\u9ED2\u9ED3\u9ED5\u9ED6\u9ED7\u9ED9\u9EDA\u9EDE\u9EE1\u9EE3\u9EE4\u9EE6\u9EE8\u9EEB\u9EEC\u9EED\u9EEE\u9EF0",8,"\u9EFA\u9EFD\u9EFF",6],["fc80","\u9F06",4,"\u9F0C\u9F0F\u9F11\u9F12\u9F14\u9F15\u9F16\u9F18\u9F1A",5,"\u9F21\u9F23",8,"\u9F2D\u9F2E\u9F30\u9F31"],["fd40","\u9F32",4,"\u9F38\u9F3A\u9F3C\u9F3F",4,"\u9F45",10,"\u9F52",38],["fd80","\u9F79",5,"\u9F81\u9F82\u9F8D",11,"\u9F9C\u9F9D\u9F9E\u9FA1",4,"\uF92C\uF979\uF995\uF9E7\uF9F1"],["fe40","\uFA0C\uFA0D\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA18\uFA1F\uFA20\uFA21\uFA23\uFA24\uFA27\uFA28\uFA29"]]});var qq=S((hrr,pSt)=>{pSt.exports=[["a140","\uE4C6",62],["a180","\uE505",32],["a240","\uE526",62],["a280","\uE565",32],["a2ab","\uE766",5],["a2e3","\u20AC\uE76D"],["a2ef","\uE76E\uE76F"],["a2fd","\uE770\uE771"],["a340","\uE586",62],["a380","\uE5C5",31,"\u3000"],["a440","\uE5E6",62],["a480","\uE625",32],["a4f4","\uE772",10],["a540","\uE646",62],["a580","\uE685",32],["a5f7","\uE77D",7],["a640","\uE6A6",62],["a680","\uE6E5",32],["a6b9","\uE785",7],["a6d9","\uE78D",6],["a6ec","\uE794\uE795"],["a6f3","\uE796"],["a6f6","\uE797",8],["a740","\uE706",62],["a780","\uE745",32],["a7c2","\uE7A0",14],["a7f2","\uE7AF",12],["a896","\uE7BC",10],["a8bc","\uE7C7"],["a8bf","\u01F9"],["a8c1","\uE7C9\uE7CA\uE7CB\uE7CC"],["a8ea","\uE7CD",20],["a958","\uE7E2"],["a95b","\uE7E3"],["a95d","\uE7E4\uE7E5\uE7E6"],["a989","\u303E\u2FF0",11],["a997","\uE7F4",12],["a9f0","\uE801",14],["aaa1","\uE000",93],["aba1","\uE05E",93],["aca1","\uE0BC",93],["ada1","\uE11A",93],["aea1","\uE178",93],["afa1","\uE1D6",93],["d7fa","\uE810",4],["f8a1","\uE234",93],["f9a1","\uE292",93],["faa1","\uE2F0",93],["fba1","\uE34E",93],["fca1","\uE3AC",93],["fda1","\uE40A",93],["fe50","\u2E81\uE816\uE817\uE818\u2E84\u3473\u3447\u2E88\u2E8B\uE81E\u359E\u361A\u360E\u2E8C\u2E97\u396E\u3918\uE826\u39CF\u39DF\u3A73\u39D0\uE82B\uE82C\u3B4E\u3C6E\u3CE0\u2EA7\uE831\uE832\u2EAA\u4056\u415F\u2EAE\u4337\u2EB3\u2EB6\u2EB7\uE83B\u43B1\u43AC\u2EBB\u43DD\u44D6\u4661\u464C\uE843"],["fe80","\u4723\u4729\u477C\u478D\u2ECA\u4947\u497A\u497D\u4982\u4983\u4985\u4986\u499F\u499B\u49B7\u49B6\uE854\uE855\u4CA3\u4C9F\u4CA0\u4CA1\u4C77\u4CA2\u4D13",6,"\u4DAE\uE864\uE468",93]]});var pCe=S((mrr,dSt)=>{dSt.exports={uChars:[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],gbChars:[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189e3]}});var dCe=S((grr,hSt)=>{hSt.exports=[["0","\0",127],["8141","\uAC02\uAC03\uAC05\uAC06\uAC0B",4,"\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25",6,"\uAC2E\uAC32\uAC33\uAC34"],["8161","\uAC35\uAC36\uAC37\uAC3A\uAC3B\uAC3D\uAC3E\uAC3F\uAC41",9,"\uAC4C\uAC4E",5,"\uAC55"],["8181","\uAC56\uAC57\uAC59\uAC5A\uAC5B\uAC5D",18,"\uAC72\uAC73\uAC75\uAC76\uAC79\uAC7B",4,"\uAC82\uAC87\uAC88\uAC8D\uAC8E\uAC8F\uAC91\uAC92\uAC93\uAC95",6,"\uAC9E\uACA2",5,"\uACAB\uACAD\uACAE\uACB1",6,"\uACBA\uACBE\uACBF\uACC0\uACC2\uACC3\uACC5\uACC6\uACC7\uACC9\uACCA\uACCB\uACCD",7,"\uACD6\uACD8",7,"\uACE2\uACE3\uACE5\uACE6\uACE9\uACEB\uACED\uACEE\uACF2\uACF4\uACF7",4,"\uACFE\uACFF\uAD01\uAD02\uAD03\uAD05\uAD07",4,"\uAD0E\uAD10\uAD12\uAD13"],["8241","\uAD14\uAD15\uAD16\uAD17\uAD19\uAD1A\uAD1B\uAD1D\uAD1E\uAD1F\uAD21",7,"\uAD2A\uAD2B\uAD2E",5],["8261","\uAD36\uAD37\uAD39\uAD3A\uAD3B\uAD3D",6,"\uAD46\uAD48\uAD4A",5,"\uAD51\uAD52\uAD53\uAD55\uAD56\uAD57"],["8281","\uAD59",7,"\uAD62\uAD64",7,"\uAD6E\uAD6F\uAD71\uAD72\uAD77\uAD78\uAD79\uAD7A\uAD7E\uAD80\uAD83",4,"\uAD8A\uAD8B\uAD8D\uAD8E\uAD8F\uAD91",10,"\uAD9E",5,"\uADA5",17,"\uADB8",7,"\uADC2\uADC3\uADC5\uADC6\uADC7\uADC9",6,"\uADD2\uADD4",7,"\uADDD\uADDE\uADDF\uADE1\uADE2\uADE3\uADE5",18],["8341","\uADFA\uADFB\uADFD\uADFE\uAE02",5,"\uAE0A\uAE0C\uAE0E",5,"\uAE15",7],["8361","\uAE1D",18,"\uAE32\uAE33\uAE35\uAE36\uAE39\uAE3B\uAE3C"],["8381","\uAE3D\uAE3E\uAE3F\uAE42\uAE44\uAE47\uAE48\uAE49\uAE4B\uAE4F\uAE51\uAE52\uAE53\uAE55\uAE57",4,"\uAE5E\uAE62\uAE63\uAE64\uAE66\uAE67\uAE6A\uAE6B\uAE6D\uAE6E\uAE6F\uAE71",6,"\uAE7A\uAE7E",5,"\uAE86",5,"\uAE8D",46,"\uAEBF\uAEC1\uAEC2\uAEC3\uAEC5",6,"\uAECE\uAED2",5,"\uAEDA\uAEDB\uAEDD",8],["8441","\uAEE6\uAEE7\uAEE9\uAEEA\uAEEC\uAEEE",5,"\uAEF5\uAEF6\uAEF7\uAEF9\uAEFA\uAEFB\uAEFD",8],["8461","\uAF06\uAF09\uAF0A\uAF0B\uAF0C\uAF0E\uAF0F\uAF11",18],["8481","\uAF24",7,"\uAF2E\uAF2F\uAF31\uAF33\uAF35",6,"\uAF3E\uAF40\uAF44\uAF45\uAF46\uAF47\uAF4A",5,"\uAF51",10,"\uAF5E",5,"\uAF66",18,"\uAF7A",5,"\uAF81\uAF82\uAF83\uAF85\uAF86\uAF87\uAF89",6,"\uAF92\uAF93\uAF94\uAF96",5,"\uAF9D",26,"\uAFBA\uAFBB\uAFBD\uAFBE"],["8541","\uAFBF\uAFC1",5,"\uAFCA\uAFCC\uAFCF",4,"\uAFD5",6,"\uAFDD",4],["8561","\uAFE2",5,"\uAFEA",5,"\uAFF2\uAFF3\uAFF5\uAFF6\uAFF7\uAFF9",6,"\uB002\uB003"],["8581","\uB005",6,"\uB00D\uB00E\uB00F\uB011\uB012\uB013\uB015",6,"\uB01E",9,"\uB029",26,"\uB046\uB047\uB049\uB04B\uB04D\uB04F\uB050\uB051\uB052\uB056\uB058\uB05A\uB05B\uB05C\uB05E",29,"\uB07E\uB07F\uB081\uB082\uB083\uB085",6,"\uB08E\uB090\uB092",5,"\uB09B\uB09D\uB09E\uB0A3\uB0A4"],["8641","\uB0A5\uB0A6\uB0A7\uB0AA\uB0B0\uB0B2\uB0B6\uB0B7\uB0B9\uB0BA\uB0BB\uB0BD",6,"\uB0C6\uB0CA",5,"\uB0D2"],["8661","\uB0D3\uB0D5\uB0D6\uB0D7\uB0D9",6,"\uB0E1\uB0E2\uB0E3\uB0E4\uB0E6",10],["8681","\uB0F1",22,"\uB10A\uB10D\uB10E\uB10F\uB111\uB114\uB115\uB116\uB117\uB11A\uB11E",4,"\uB126\uB127\uB129\uB12A\uB12B\uB12D",6,"\uB136\uB13A",5,"\uB142\uB143\uB145\uB146\uB147\uB149",6,"\uB152\uB153\uB156\uB157\uB159\uB15A\uB15B\uB15D\uB15E\uB15F\uB161",22,"\uB17A\uB17B\uB17D\uB17E\uB17F\uB181\uB183",4,"\uB18A\uB18C\uB18E\uB18F\uB190\uB191\uB195\uB196\uB197\uB199\uB19A\uB19B\uB19D"],["8741","\uB19E",9,"\uB1A9",15],["8761","\uB1B9",18,"\uB1CD\uB1CE\uB1CF\uB1D1\uB1D2\uB1D3\uB1D5"],["8781","\uB1D6",5,"\uB1DE\uB1E0",7,"\uB1EA\uB1EB\uB1ED\uB1EE\uB1EF\uB1F1",7,"\uB1FA\uB1FC\uB1FE",5,"\uB206\uB207\uB209\uB20A\uB20D",6,"\uB216\uB218\uB21A",5,"\uB221",18,"\uB235",6,"\uB23D",26,"\uB259\uB25A\uB25B\uB25D\uB25E\uB25F\uB261",6,"\uB26A",4],["8841","\uB26F",4,"\uB276",5,"\uB27D",6,"\uB286\uB287\uB288\uB28A",4],["8861","\uB28F\uB292\uB293\uB295\uB296\uB297\uB29B",4,"\uB2A2\uB2A4\uB2A7\uB2A8\uB2A9\uB2AB\uB2AD\uB2AE\uB2AF\uB2B1\uB2B2\uB2B3\uB2B5\uB2B6\uB2B7"],["8881","\uB2B8",15,"\uB2CA\uB2CB\uB2CD\uB2CE\uB2CF\uB2D1\uB2D3",4,"\uB2DA\uB2DC\uB2DE\uB2DF\uB2E0\uB2E1\uB2E3\uB2E7\uB2E9\uB2EA\uB2F0\uB2F1\uB2F2\uB2F6\uB2FC\uB2FD\uB2FE\uB302\uB303\uB305\uB306\uB307\uB309",6,"\uB312\uB316",5,"\uB31D",54,"\uB357\uB359\uB35A\uB35D\uB360\uB361\uB362\uB363"],["8941","\uB366\uB368\uB36A\uB36C\uB36D\uB36F\uB372\uB373\uB375\uB376\uB377\uB379",6,"\uB382\uB386",5,"\uB38D"],["8961","\uB38E\uB38F\uB391\uB392\uB393\uB395",10,"\uB3A2",5,"\uB3A9\uB3AA\uB3AB\uB3AD"],["8981","\uB3AE",21,"\uB3C6\uB3C7\uB3C9\uB3CA\uB3CD\uB3CF\uB3D1\uB3D2\uB3D3\uB3D6\uB3D8\uB3DA\uB3DC\uB3DE\uB3DF\uB3E1\uB3E2\uB3E3\uB3E5\uB3E6\uB3E7\uB3E9",18,"\uB3FD",18,"\uB411",6,"\uB419\uB41A\uB41B\uB41D\uB41E\uB41F\uB421",6,"\uB42A\uB42C",7,"\uB435",15],["8a41","\uB445",10,"\uB452\uB453\uB455\uB456\uB457\uB459",6,"\uB462\uB464\uB466"],["8a61","\uB467",4,"\uB46D",18,"\uB481\uB482"],["8a81","\uB483",4,"\uB489",19,"\uB49E",5,"\uB4A5\uB4A6\uB4A7\uB4A9\uB4AA\uB4AB\uB4AD",7,"\uB4B6\uB4B8\uB4BA",5,"\uB4C1\uB4C2\uB4C3\uB4C5\uB4C6\uB4C7\uB4C9",6,"\uB4D1\uB4D2\uB4D3\uB4D4\uB4D6",5,"\uB4DE\uB4DF\uB4E1\uB4E2\uB4E5\uB4E7",4,"\uB4EE\uB4F0\uB4F2",5,"\uB4F9",26,"\uB516\uB517\uB519\uB51A\uB51D"],["8b41","\uB51E",5,"\uB526\uB52B",4,"\uB532\uB533\uB535\uB536\uB537\uB539",6,"\uB542\uB546"],["8b61","\uB547\uB548\uB549\uB54A\uB54E\uB54F\uB551\uB552\uB553\uB555",6,"\uB55E\uB562",8],["8b81","\uB56B",52,"\uB5A2\uB5A3\uB5A5\uB5A6\uB5A7\uB5A9\uB5AC\uB5AD\uB5AE\uB5AF\uB5B2\uB5B6",4,"\uB5BE\uB5BF\uB5C1\uB5C2\uB5C3\uB5C5",6,"\uB5CE\uB5D2",5,"\uB5D9",18,"\uB5ED",18],["8c41","\uB600",15,"\uB612\uB613\uB615\uB616\uB617\uB619",4],["8c61","\uB61E",6,"\uB626",5,"\uB62D",6,"\uB635",5],["8c81","\uB63B",12,"\uB649",26,"\uB665\uB666\uB667\uB669",50,"\uB69E\uB69F\uB6A1\uB6A2\uB6A3\uB6A5",5,"\uB6AD\uB6AE\uB6AF\uB6B0\uB6B2",16],["8d41","\uB6C3",16,"\uB6D5",8],["8d61","\uB6DE",17,"\uB6F1\uB6F2\uB6F3\uB6F5\uB6F6\uB6F7\uB6F9\uB6FA"],["8d81","\uB6FB",4,"\uB702\uB703\uB704\uB706",33,"\uB72A\uB72B\uB72D\uB72E\uB731",6,"\uB73A\uB73C",7,"\uB745\uB746\uB747\uB749\uB74A\uB74B\uB74D",6,"\uB756",9,"\uB761\uB762\uB763\uB765\uB766\uB767\uB769",6,"\uB772\uB774\uB776",5,"\uB77E\uB77F\uB781\uB782\uB783\uB785",6,"\uB78E\uB793\uB794\uB795\uB79A\uB79B\uB79D\uB79E"],["8e41","\uB79F\uB7A1",6,"\uB7AA\uB7AE",5,"\uB7B6\uB7B7\uB7B9",8],["8e61","\uB7C2",4,"\uB7C8\uB7CA",19],["8e81","\uB7DE",13,"\uB7EE\uB7EF\uB7F1\uB7F2\uB7F3\uB7F5",6,"\uB7FE\uB802",4,"\uB80A\uB80B\uB80D\uB80E\uB80F\uB811",6,"\uB81A\uB81C\uB81E",5,"\uB826\uB827\uB829\uB82A\uB82B\uB82D",6,"\uB836\uB83A",5,"\uB841\uB842\uB843\uB845",11,"\uB852\uB854",7,"\uB85E\uB85F\uB861\uB862\uB863\uB865",6,"\uB86E\uB870\uB872",5,"\uB879\uB87A\uB87B\uB87D",7],["8f41","\uB885",7,"\uB88E",17],["8f61","\uB8A0",7,"\uB8A9",6,"\uB8B1\uB8B2\uB8B3\uB8B5\uB8B6\uB8B7\uB8B9",4],["8f81","\uB8BE\uB8BF\uB8C2\uB8C4\uB8C6",5,"\uB8CD\uB8CE\uB8CF\uB8D1\uB8D2\uB8D3\uB8D5",7,"\uB8DE\uB8E0\uB8E2",5,"\uB8EA\uB8EB\uB8ED\uB8EE\uB8EF\uB8F1",6,"\uB8FA\uB8FC\uB8FE",5,"\uB905",18,"\uB919",6,"\uB921",26,"\uB93E\uB93F\uB941\uB942\uB943\uB945",6,"\uB94D\uB94E\uB950\uB952",5],["9041","\uB95A\uB95B\uB95D\uB95E\uB95F\uB961",6,"\uB96A\uB96C\uB96E",5,"\uB976\uB977\uB979\uB97A\uB97B\uB97D"],["9061","\uB97E",5,"\uB986\uB988\uB98B\uB98C\uB98F",15],["9081","\uB99F",12,"\uB9AE\uB9AF\uB9B1\uB9B2\uB9B3\uB9B5",6,"\uB9BE\uB9C0\uB9C2",5,"\uB9CA\uB9CB\uB9CD\uB9D3",4,"\uB9DA\uB9DC\uB9DF\uB9E0\uB9E2\uB9E6\uB9E7\uB9E9\uB9EA\uB9EB\uB9ED",6,"\uB9F6\uB9FB",4,"\uBA02",5,"\uBA09",11,"\uBA16",33,"\uBA3A\uBA3B\uBA3D\uBA3E\uBA3F\uBA41\uBA43\uBA44\uBA45\uBA46"],["9141","\uBA47\uBA4A\uBA4C\uBA4F\uBA50\uBA51\uBA52\uBA56\uBA57\uBA59\uBA5A\uBA5B\uBA5D",6,"\uBA66\uBA6A",5],["9161","\uBA72\uBA73\uBA75\uBA76\uBA77\uBA79",9,"\uBA86\uBA88\uBA89\uBA8A\uBA8B\uBA8D",5],["9181","\uBA93",20,"\uBAAA\uBAAD\uBAAE\uBAAF\uBAB1\uBAB3",4,"\uBABA\uBABC\uBABE",5,"\uBAC5\uBAC6\uBAC7\uBAC9",14,"\uBADA",33,"\uBAFD\uBAFE\uBAFF\uBB01\uBB02\uBB03\uBB05",7,"\uBB0E\uBB10\uBB12",5,"\uBB19\uBB1A\uBB1B\uBB1D\uBB1E\uBB1F\uBB21",6],["9241","\uBB28\uBB2A\uBB2C",7,"\uBB37\uBB39\uBB3A\uBB3F",4,"\uBB46\uBB48\uBB4A\uBB4B\uBB4C\uBB4E\uBB51\uBB52"],["9261","\uBB53\uBB55\uBB56\uBB57\uBB59",7,"\uBB62\uBB64",7,"\uBB6D",4],["9281","\uBB72",21,"\uBB89\uBB8A\uBB8B\uBB8D\uBB8E\uBB8F\uBB91",18,"\uBBA5\uBBA6\uBBA7\uBBA9\uBBAA\uBBAB\uBBAD",6,"\uBBB5\uBBB6\uBBB8",7,"\uBBC1\uBBC2\uBBC3\uBBC5\uBBC6\uBBC7\uBBC9",6,"\uBBD1\uBBD2\uBBD4",35,"\uBBFA\uBBFB\uBBFD\uBBFE\uBC01"],["9341","\uBC03",4,"\uBC0A\uBC0E\uBC10\uBC12\uBC13\uBC19\uBC1A\uBC20\uBC21\uBC22\uBC23\uBC26\uBC28\uBC2A\uBC2B\uBC2C\uBC2E\uBC2F\uBC32\uBC33\uBC35"],["9361","\uBC36\uBC37\uBC39",6,"\uBC42\uBC46\uBC47\uBC48\uBC4A\uBC4B\uBC4E\uBC4F\uBC51",8],["9381","\uBC5A\uBC5B\uBC5C\uBC5E",37,"\uBC86\uBC87\uBC89\uBC8A\uBC8D\uBC8F",4,"\uBC96\uBC98\uBC9B",4,"\uBCA2\uBCA3\uBCA5\uBCA6\uBCA9",6,"\uBCB2\uBCB6",5,"\uBCBE\uBCBF\uBCC1\uBCC2\uBCC3\uBCC5",7,"\uBCCE\uBCD2\uBCD3\uBCD4\uBCD6\uBCD7\uBCD9\uBCDA\uBCDB\uBCDD",22,"\uBCF7\uBCF9\uBCFA\uBCFB\uBCFD"],["9441","\uBCFE",5,"\uBD06\uBD08\uBD0A",5,"\uBD11\uBD12\uBD13\uBD15",8],["9461","\uBD1E",5,"\uBD25",6,"\uBD2D",12],["9481","\uBD3A",5,"\uBD41",6,"\uBD4A\uBD4B\uBD4D\uBD4E\uBD4F\uBD51",6,"\uBD5A",9,"\uBD65\uBD66\uBD67\uBD69",22,"\uBD82\uBD83\uBD85\uBD86\uBD8B",4,"\uBD92\uBD94\uBD96\uBD97\uBD98\uBD9B\uBD9D",6,"\uBDA5",10,"\uBDB1",6,"\uBDB9",24],["9541","\uBDD2\uBDD3\uBDD6\uBDD7\uBDD9\uBDDA\uBDDB\uBDDD",11,"\uBDEA",5,"\uBDF1"],["9561","\uBDF2\uBDF3\uBDF5\uBDF6\uBDF7\uBDF9",6,"\uBE01\uBE02\uBE04\uBE06",5,"\uBE0E\uBE0F\uBE11\uBE12\uBE13"],["9581","\uBE15",6,"\uBE1E\uBE20",35,"\uBE46\uBE47\uBE49\uBE4A\uBE4B\uBE4D\uBE4F",4,"\uBE56\uBE58\uBE5C\uBE5D\uBE5E\uBE5F\uBE62\uBE63\uBE65\uBE66\uBE67\uBE69\uBE6B",4,"\uBE72\uBE76",4,"\uBE7E\uBE7F\uBE81\uBE82\uBE83\uBE85",6,"\uBE8E\uBE92",5,"\uBE9A",13,"\uBEA9",14],["9641","\uBEB8",23,"\uBED2\uBED3"],["9661","\uBED5\uBED6\uBED9",6,"\uBEE1\uBEE2\uBEE6",5,"\uBEED",8],["9681","\uBEF6",10,"\uBF02",5,"\uBF0A",13,"\uBF1A\uBF1E",33,"\uBF42\uBF43\uBF45\uBF46\uBF47\uBF49",6,"\uBF52\uBF53\uBF54\uBF56",44],["9741","\uBF83",16,"\uBF95",8],["9761","\uBF9E",17,"\uBFB1",7],["9781","\uBFB9",11,"\uBFC6",5,"\uBFCE\uBFCF\uBFD1\uBFD2\uBFD3\uBFD5",6,"\uBFDD\uBFDE\uBFE0\uBFE2",89,"\uC03D\uC03E\uC03F"],["9841","\uC040",16,"\uC052",5,"\uC059\uC05A\uC05B"],["9861","\uC05D\uC05E\uC05F\uC061",6,"\uC06A",15],["9881","\uC07A",21,"\uC092\uC093\uC095\uC096\uC097\uC099",6,"\uC0A2\uC0A4\uC0A6",5,"\uC0AE\uC0B1\uC0B2\uC0B7",4,"\uC0BE\uC0C2\uC0C3\uC0C4\uC0C6\uC0C7\uC0CA\uC0CB\uC0CD\uC0CE\uC0CF\uC0D1",6,"\uC0DA\uC0DE",5,"\uC0E6\uC0E7\uC0E9\uC0EA\uC0EB\uC0ED",6,"\uC0F6\uC0F8\uC0FA",5,"\uC101\uC102\uC103\uC105\uC106\uC107\uC109",6,"\uC111\uC112\uC113\uC114\uC116",5,"\uC121\uC122\uC125\uC128\uC129\uC12A\uC12B\uC12E"],["9941","\uC132\uC133\uC134\uC135\uC137\uC13A\uC13B\uC13D\uC13E\uC13F\uC141",6,"\uC14A\uC14E",5,"\uC156\uC157"],["9961","\uC159\uC15A\uC15B\uC15D",6,"\uC166\uC16A",5,"\uC171\uC172\uC173\uC175\uC176\uC177\uC179\uC17A\uC17B"],["9981","\uC17C",8,"\uC186",5,"\uC18F\uC191\uC192\uC193\uC195\uC197",4,"\uC19E\uC1A0\uC1A2\uC1A3\uC1A4\uC1A6\uC1A7\uC1AA\uC1AB\uC1AD\uC1AE\uC1AF\uC1B1",11,"\uC1BE",5,"\uC1C5\uC1C6\uC1C7\uC1C9\uC1CA\uC1CB\uC1CD",6,"\uC1D5\uC1D6\uC1D9",6,"\uC1E1\uC1E2\uC1E3\uC1E5\uC1E6\uC1E7\uC1E9",6,"\uC1F2\uC1F4",7,"\uC1FE\uC1FF\uC201\uC202\uC203\uC205",6,"\uC20E\uC210\uC212",5,"\uC21A\uC21B\uC21D\uC21E\uC221\uC222\uC223"],["9a41","\uC224\uC225\uC226\uC227\uC22A\uC22C\uC22E\uC230\uC233\uC235",16],["9a61","\uC246\uC247\uC249",6,"\uC252\uC253\uC255\uC256\uC257\uC259",6,"\uC261\uC262\uC263\uC264\uC266"],["9a81","\uC267",4,"\uC26E\uC26F\uC271\uC272\uC273\uC275",6,"\uC27E\uC280\uC282",5,"\uC28A",5,"\uC291",6,"\uC299\uC29A\uC29C\uC29E",5,"\uC2A6\uC2A7\uC2A9\uC2AA\uC2AB\uC2AE",5,"\uC2B6\uC2B8\uC2BA",33,"\uC2DE\uC2DF\uC2E1\uC2E2\uC2E5",5,"\uC2EE\uC2F0\uC2F2\uC2F3\uC2F4\uC2F5\uC2F7\uC2FA\uC2FD\uC2FE\uC2FF\uC301",6,"\uC30A\uC30B\uC30E\uC30F"],["9b41","\uC310\uC311\uC312\uC316\uC317\uC319\uC31A\uC31B\uC31D",6,"\uC326\uC327\uC32A",8],["9b61","\uC333",17,"\uC346",7],["9b81","\uC34E",25,"\uC36A\uC36B\uC36D\uC36E\uC36F\uC371\uC373",4,"\uC37A\uC37B\uC37E",5,"\uC385\uC386\uC387\uC389\uC38A\uC38B\uC38D",50,"\uC3C1",22,"\uC3DA"],["9c41","\uC3DB\uC3DD\uC3DE\uC3E1\uC3E3",4,"\uC3EA\uC3EB\uC3EC\uC3EE",5,"\uC3F6\uC3F7\uC3F9",5],["9c61","\uC3FF",8,"\uC409",6,"\uC411",9],["9c81","\uC41B",8,"\uC425",6,"\uC42D\uC42E\uC42F\uC431\uC432\uC433\uC435",6,"\uC43E",9,"\uC449",26,"\uC466\uC467\uC469\uC46A\uC46B\uC46D",6,"\uC476\uC477\uC478\uC47A",5,"\uC481",18,"\uC495",6,"\uC49D",12],["9d41","\uC4AA",13,"\uC4B9\uC4BA\uC4BB\uC4BD",8],["9d61","\uC4C6",25],["9d81","\uC4E0",8,"\uC4EA",5,"\uC4F2\uC4F3\uC4F5\uC4F6\uC4F7\uC4F9\uC4FB\uC4FC\uC4FD\uC4FE\uC502",9,"\uC50D\uC50E\uC50F\uC511\uC512\uC513\uC515",6,"\uC51D",10,"\uC52A\uC52B\uC52D\uC52E\uC52F\uC531",6,"\uC53A\uC53C\uC53E",5,"\uC546\uC547\uC54B\uC54F\uC550\uC551\uC552\uC556\uC55A\uC55B\uC55C\uC55F\uC562\uC563\uC565\uC566\uC567\uC569",6,"\uC572\uC576",5,"\uC57E\uC57F\uC581\uC582\uC583\uC585\uC586\uC588\uC589\uC58A\uC58B\uC58E\uC590\uC592\uC593\uC594"],["9e41","\uC596\uC599\uC59A\uC59B\uC59D\uC59E\uC59F\uC5A1",7,"\uC5AA",9,"\uC5B6"],["9e61","\uC5B7\uC5BA\uC5BF",4,"\uC5CB\uC5CD\uC5CF\uC5D2\uC5D3\uC5D5\uC5D6\uC5D7\uC5D9",6,"\uC5E2\uC5E4\uC5E6\uC5E7"],["9e81","\uC5E8\uC5E9\uC5EA\uC5EB\uC5EF\uC5F1\uC5F2\uC5F3\uC5F5\uC5F8\uC5F9\uC5FA\uC5FB\uC602\uC603\uC604\uC609\uC60A\uC60B\uC60D\uC60E\uC60F\uC611",6,"\uC61A\uC61D",6,"\uC626\uC627\uC629\uC62A\uC62B\uC62F\uC631\uC632\uC636\uC638\uC63A\uC63C\uC63D\uC63E\uC63F\uC642\uC643\uC645\uC646\uC647\uC649",6,"\uC652\uC656",5,"\uC65E\uC65F\uC661",10,"\uC66D\uC66E\uC670\uC672",5,"\uC67A\uC67B\uC67D\uC67E\uC67F\uC681",6,"\uC68A\uC68C\uC68E",5,"\uC696\uC697\uC699\uC69A\uC69B\uC69D",6,"\uC6A6"],["9f41","\uC6A8\uC6AA",5,"\uC6B2\uC6B3\uC6B5\uC6B6\uC6B7\uC6BB",4,"\uC6C2\uC6C4\uC6C6",5,"\uC6CE"],["9f61","\uC6CF\uC6D1\uC6D2\uC6D3\uC6D5",6,"\uC6DE\uC6DF\uC6E2",5,"\uC6EA\uC6EB\uC6ED\uC6EE\uC6EF\uC6F1\uC6F2"],["9f81","\uC6F3",4,"\uC6FA\uC6FB\uC6FC\uC6FE",5,"\uC706\uC707\uC709\uC70A\uC70B\uC70D",6,"\uC716\uC718\uC71A",5,"\uC722\uC723\uC725\uC726\uC727\uC729",6,"\uC732\uC734\uC736\uC738\uC739\uC73A\uC73B\uC73E\uC73F\uC741\uC742\uC743\uC745",4,"\uC74B\uC74E\uC750\uC759\uC75A\uC75B\uC75D\uC75E\uC75F\uC761",6,"\uC769\uC76A\uC76C",7,"\uC776\uC777\uC779\uC77A\uC77B\uC77F\uC780\uC781\uC782\uC786\uC78B\uC78C\uC78D\uC78F\uC792\uC793\uC795\uC799\uC79B",4,"\uC7A2\uC7A7",4,"\uC7AE\uC7AF\uC7B1\uC7B2\uC7B3\uC7B5\uC7B6\uC7B7"],["a041","\uC7B8\uC7B9\uC7BA\uC7BB\uC7BE\uC7C2",5,"\uC7CA\uC7CB\uC7CD\uC7CF\uC7D1",6,"\uC7D9\uC7DA\uC7DB\uC7DC"],["a061","\uC7DE",5,"\uC7E5\uC7E6\uC7E7\uC7E9\uC7EA\uC7EB\uC7ED",13],["a081","\uC7FB",4,"\uC802\uC803\uC805\uC806\uC807\uC809\uC80B",4,"\uC812\uC814\uC817",4,"\uC81E\uC81F\uC821\uC822\uC823\uC825",6,"\uC82E\uC830\uC832",5,"\uC839\uC83A\uC83B\uC83D\uC83E\uC83F\uC841",6,"\uC84A\uC84B\uC84E",5,"\uC855",26,"\uC872\uC873\uC875\uC876\uC877\uC879\uC87B",4,"\uC882\uC884\uC888\uC889\uC88A\uC88E",5,"\uC895",7,"\uC89E\uC8A0\uC8A2\uC8A3\uC8A4"],["a141","\uC8A5\uC8A6\uC8A7\uC8A9",18,"\uC8BE\uC8BF\uC8C0\uC8C1"],["a161","\uC8C2\uC8C3\uC8C5\uC8C6\uC8C7\uC8C9\uC8CA\uC8CB\uC8CD",6,"\uC8D6\uC8D8\uC8DA",5,"\uC8E2\uC8E3\uC8E5"],["a181","\uC8E6",14,"\uC8F6",5,"\uC8FE\uC8FF\uC901\uC902\uC903\uC907",4,"\uC90E\u3000\u3001\u3002\xB7\u2025\u2026\xA8\u3003\xAD\u2015\u2225\uFF3C\u223C\u2018\u2019\u201C\u201D\u3014\u3015\u3008",9,"\xB1\xD7\xF7\u2260\u2264\u2265\u221E\u2234\xB0\u2032\u2033\u2103\u212B\uFFE0\uFFE1\uFFE5\u2642\u2640\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\xA7\u203B\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u2192\u2190\u2191\u2193\u2194\u3013\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229\u2227\u2228\uFFE2"],["a241","\uC910\uC912",5,"\uC919",18],["a261","\uC92D",6,"\uC935",18],["a281","\uC948",7,"\uC952\uC953\uC955\uC956\uC957\uC959",6,"\uC962\uC964",7,"\uC96D\uC96E\uC96F\u21D2\u21D4\u2200\u2203\xB4\uFF5E\u02C7\u02D8\u02DD\u02DA\u02D9\xB8\u02DB\xA1\xBF\u02D0\u222E\u2211\u220F\xA4\u2109\u2030\u25C1\u25C0\u25B7\u25B6\u2664\u2660\u2661\u2665\u2667\u2663\u2299\u25C8\u25A3\u25D0\u25D1\u2592\u25A4\u25A5\u25A8\u25A7\u25A6\u25A9\u2668\u260F\u260E\u261C\u261E\xB6\u2020\u2021\u2195\u2197\u2199\u2196\u2198\u266D\u2669\u266A\u266C\u327F\u321C\u2116\u33C7\u2122\u33C2\u33D8\u2121\u20AC\xAE"],["a341","\uC971\uC972\uC973\uC975",6,"\uC97D",10,"\uC98A\uC98B\uC98D\uC98E\uC98F"],["a361","\uC991",6,"\uC99A\uC99C\uC99E",16],["a381","\uC9AF",16,"\uC9C2\uC9C3\uC9C5\uC9C6\uC9C9\uC9CB",4,"\uC9D2\uC9D4\uC9D7\uC9D8\uC9DB\uFF01",58,"\uFFE6\uFF3D",32,"\uFFE3"],["a441","\uC9DE\uC9DF\uC9E1\uC9E3\uC9E5\uC9E6\uC9E8\uC9E9\uC9EA\uC9EB\uC9EE\uC9F2",5,"\uC9FA\uC9FB\uC9FD\uC9FE\uC9FF\uCA01\uCA02\uCA03\uCA04"],["a461","\uCA05\uCA06\uCA07\uCA0A\uCA0E",5,"\uCA15\uCA16\uCA17\uCA19",12],["a481","\uCA26\uCA27\uCA28\uCA2A",28,"\u3131",93],["a541","\uCA47",4,"\uCA4E\uCA4F\uCA51\uCA52\uCA53\uCA55",6,"\uCA5E\uCA62",5,"\uCA69\uCA6A"],["a561","\uCA6B",17,"\uCA7E",5,"\uCA85\uCA86"],["a581","\uCA87",16,"\uCA99",14,"\u2170",9],["a5b0","\u2160",9],["a5c1","\u0391",16,"\u03A3",6],["a5e1","\u03B1",16,"\u03C3",6],["a641","\uCAA8",19,"\uCABE\uCABF\uCAC1\uCAC2\uCAC3\uCAC5"],["a661","\uCAC6",5,"\uCACE\uCAD0\uCAD2\uCAD4\uCAD5\uCAD6\uCAD7\uCADA",5,"\uCAE1",6],["a681","\uCAE8\uCAE9\uCAEA\uCAEB\uCAED",6,"\uCAF5",18,"\uCB09\uCB0A\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542\u2512\u2511\u251A\u2519\u2516\u2515\u250E\u250D\u251E\u251F\u2521\u2522\u2526\u2527\u2529\u252A\u252D\u252E\u2531\u2532\u2535\u2536\u2539\u253A\u253D\u253E\u2540\u2541\u2543",7],["a741","\uCB0B",4,"\uCB11\uCB12\uCB13\uCB15\uCB16\uCB17\uCB19",6,"\uCB22",7],["a761","\uCB2A",22,"\uCB42\uCB43\uCB44"],["a781","\uCB45\uCB46\uCB47\uCB4A\uCB4B\uCB4D\uCB4E\uCB4F\uCB51",6,"\uCB5A\uCB5B\uCB5C\uCB5E",5,"\uCB65",7,"\u3395\u3396\u3397\u2113\u3398\u33C4\u33A3\u33A4\u33A5\u33A6\u3399",9,"\u33CA\u338D\u338E\u338F\u33CF\u3388\u3389\u33C8\u33A7\u33A8\u33B0",9,"\u3380",4,"\u33BA",5,"\u3390",4,"\u2126\u33C0\u33C1\u338A\u338B\u338C\u33D6\u33C5\u33AD\u33AE\u33AF\u33DB\u33A9\u33AA\u33AB\u33AC\u33DD\u33D0\u33D3\u33C3\u33C9\u33DC\u33C6"],["a841","\uCB6D",10,"\uCB7A",14],["a861","\uCB89",18,"\uCB9D",6],["a881","\uCBA4",19,"\uCBB9",11,"\xC6\xD0\xAA\u0126"],["a8a6","\u0132"],["a8a8","\u013F\u0141\xD8\u0152\xBA\xDE\u0166\u014A"],["a8b1","\u3260",27,"\u24D0",25,"\u2460",14,"\xBD\u2153\u2154\xBC\xBE\u215B\u215C\u215D\u215E"],["a941","\uCBC5",14,"\uCBD5",10],["a961","\uCBE0\uCBE1\uCBE2\uCBE3\uCBE5\uCBE6\uCBE8\uCBEA",18],["a981","\uCBFD",14,"\uCC0E\uCC0F\uCC11\uCC12\uCC13\uCC15",6,"\uCC1E\uCC1F\uCC20\uCC23\uCC24\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0140\u0142\xF8\u0153\xDF\xFE\u0167\u014B\u0149\u3200",27,"\u249C",25,"\u2474",14,"\xB9\xB2\xB3\u2074\u207F\u2081\u2082\u2083\u2084"],["aa41","\uCC25\uCC26\uCC2A\uCC2B\uCC2D\uCC2F\uCC31",6,"\uCC3A\uCC3F",4,"\uCC46\uCC47\uCC49\uCC4A\uCC4B\uCC4D\uCC4E"],["aa61","\uCC4F",4,"\uCC56\uCC5A",5,"\uCC61\uCC62\uCC63\uCC65\uCC67\uCC69",6,"\uCC71\uCC72"],["aa81","\uCC73\uCC74\uCC76",29,"\u3041",82],["ab41","\uCC94\uCC95\uCC96\uCC97\uCC9A\uCC9B\uCC9D\uCC9E\uCC9F\uCCA1",6,"\uCCAA\uCCAE",5,"\uCCB6\uCCB7\uCCB9"],["ab61","\uCCBA\uCCBB\uCCBD",6,"\uCCC6\uCCC8\uCCCA",5,"\uCCD1\uCCD2\uCCD3\uCCD5",5],["ab81","\uCCDB",8,"\uCCE5",6,"\uCCED\uCCEE\uCCEF\uCCF1",12,"\u30A1",85],["ac41","\uCCFE\uCCFF\uCD00\uCD02",5,"\uCD0A\uCD0B\uCD0D\uCD0E\uCD0F\uCD11",6,"\uCD1A\uCD1C\uCD1E\uCD1F\uCD20"],["ac61","\uCD21\uCD22\uCD23\uCD25\uCD26\uCD27\uCD29\uCD2A\uCD2B\uCD2D",11,"\uCD3A",4],["ac81","\uCD3F",28,"\uCD5D\uCD5E\uCD5F\u0410",5,"\u0401\u0416",25],["acd1","\u0430",5,"\u0451\u0436",25],["ad41","\uCD61\uCD62\uCD63\uCD65",6,"\uCD6E\uCD70\uCD72",5,"\uCD79",7],["ad61","\uCD81",6,"\uCD89",10,"\uCD96\uCD97\uCD99\uCD9A\uCD9B\uCD9D\uCD9E\uCD9F"],["ad81","\uCDA0\uCDA1\uCDA2\uCDA3\uCDA6\uCDA8\uCDAA",5,"\uCDB1",18,"\uCDC5"],["ae41","\uCDC6",5,"\uCDCD\uCDCE\uCDCF\uCDD1",16],["ae61","\uCDE2",5,"\uCDE9\uCDEA\uCDEB\uCDED\uCDEE\uCDEF\uCDF1",6,"\uCDFA\uCDFC\uCDFE",4],["ae81","\uCE03\uCE05\uCE06\uCE07\uCE09\uCE0A\uCE0B\uCE0D",6,"\uCE15\uCE16\uCE17\uCE18\uCE1A",5,"\uCE22\uCE23\uCE25\uCE26\uCE27\uCE29\uCE2A\uCE2B"],["af41","\uCE2C\uCE2D\uCE2E\uCE2F\uCE32\uCE34\uCE36",19],["af61","\uCE4A",13,"\uCE5A\uCE5B\uCE5D\uCE5E\uCE62",5,"\uCE6A\uCE6C"],["af81","\uCE6E",5,"\uCE76\uCE77\uCE79\uCE7A\uCE7B\uCE7D",6,"\uCE86\uCE88\uCE8A",5,"\uCE92\uCE93\uCE95\uCE96\uCE97\uCE99"],["b041","\uCE9A",5,"\uCEA2\uCEA6",5,"\uCEAE",12],["b061","\uCEBB",5,"\uCEC2",19],["b081","\uCED6",13,"\uCEE6\uCEE7\uCEE9\uCEEA\uCEED",6,"\uCEF6\uCEFA",5,"\uAC00\uAC01\uAC04\uAC07\uAC08\uAC09\uAC0A\uAC10",7,"\uAC19",4,"\uAC20\uAC24\uAC2C\uAC2D\uAC2F\uAC30\uAC31\uAC38\uAC39\uAC3C\uAC40\uAC4B\uAC4D\uAC54\uAC58\uAC5C\uAC70\uAC71\uAC74\uAC77\uAC78\uAC7A\uAC80\uAC81\uAC83\uAC84\uAC85\uAC86\uAC89\uAC8A\uAC8B\uAC8C\uAC90\uAC94\uAC9C\uAC9D\uAC9F\uACA0\uACA1\uACA8\uACA9\uACAA\uACAC\uACAF\uACB0\uACB8\uACB9\uACBB\uACBC\uACBD\uACC1\uACC4\uACC8\uACCC\uACD5\uACD7\uACE0\uACE1\uACE4\uACE7\uACE8\uACEA\uACEC\uACEF\uACF0\uACF1\uACF3\uACF5\uACF6\uACFC\uACFD\uAD00\uAD04\uAD06"],["b141","\uCF02\uCF03\uCF05\uCF06\uCF07\uCF09",6,"\uCF12\uCF14\uCF16",5,"\uCF1D\uCF1E\uCF1F\uCF21\uCF22\uCF23"],["b161","\uCF25",6,"\uCF2E\uCF32",5,"\uCF39",11],["b181","\uCF45",14,"\uCF56\uCF57\uCF59\uCF5A\uCF5B\uCF5D",6,"\uCF66\uCF68\uCF6A\uCF6B\uCF6C\uAD0C\uAD0D\uAD0F\uAD11\uAD18\uAD1C\uAD20\uAD29\uAD2C\uAD2D\uAD34\uAD35\uAD38\uAD3C\uAD44\uAD45\uAD47\uAD49\uAD50\uAD54\uAD58\uAD61\uAD63\uAD6C\uAD6D\uAD70\uAD73\uAD74\uAD75\uAD76\uAD7B\uAD7C\uAD7D\uAD7F\uAD81\uAD82\uAD88\uAD89\uAD8C\uAD90\uAD9C\uAD9D\uADA4\uADB7\uADC0\uADC1\uADC4\uADC8\uADD0\uADD1\uADD3\uADDC\uADE0\uADE4\uADF8\uADF9\uADFC\uADFF\uAE00\uAE01\uAE08\uAE09\uAE0B\uAE0D\uAE14\uAE30\uAE31\uAE34\uAE37\uAE38\uAE3A\uAE40\uAE41\uAE43\uAE45\uAE46\uAE4A\uAE4C\uAE4D\uAE4E\uAE50\uAE54\uAE56\uAE5C\uAE5D\uAE5F\uAE60\uAE61\uAE65\uAE68\uAE69\uAE6C\uAE70\uAE78"],["b241","\uCF6D\uCF6E\uCF6F\uCF72\uCF73\uCF75\uCF76\uCF77\uCF79",6,"\uCF81\uCF82\uCF83\uCF84\uCF86",5,"\uCF8D"],["b261","\uCF8E",18,"\uCFA2",5,"\uCFA9"],["b281","\uCFAA",5,"\uCFB1",18,"\uCFC5",6,"\uAE79\uAE7B\uAE7C\uAE7D\uAE84\uAE85\uAE8C\uAEBC\uAEBD\uAEBE\uAEC0\uAEC4\uAECC\uAECD\uAECF\uAED0\uAED1\uAED8\uAED9\uAEDC\uAEE8\uAEEB\uAEED\uAEF4\uAEF8\uAEFC\uAF07\uAF08\uAF0D\uAF10\uAF2C\uAF2D\uAF30\uAF32\uAF34\uAF3C\uAF3D\uAF3F\uAF41\uAF42\uAF43\uAF48\uAF49\uAF50\uAF5C\uAF5D\uAF64\uAF65\uAF79\uAF80\uAF84\uAF88\uAF90\uAF91\uAF95\uAF9C\uAFB8\uAFB9\uAFBC\uAFC0\uAFC7\uAFC8\uAFC9\uAFCB\uAFCD\uAFCE\uAFD4\uAFDC\uAFE8\uAFE9\uAFF0\uAFF1\uAFF4\uAFF8\uB000\uB001\uB004\uB00C\uB010\uB014\uB01C\uB01D\uB028\uB044\uB045\uB048\uB04A\uB04C\uB04E\uB053\uB054\uB055\uB057\uB059"],["b341","\uCFCC",19,"\uCFE2\uCFE3\uCFE5\uCFE6\uCFE7\uCFE9"],["b361","\uCFEA",5,"\uCFF2\uCFF4\uCFF6",5,"\uCFFD\uCFFE\uCFFF\uD001\uD002\uD003\uD005",5],["b381","\uD00B",5,"\uD012",5,"\uD019",19,"\uB05D\uB07C\uB07D\uB080\uB084\uB08C\uB08D\uB08F\uB091\uB098\uB099\uB09A\uB09C\uB09F\uB0A0\uB0A1\uB0A2\uB0A8\uB0A9\uB0AB",4,"\uB0B1\uB0B3\uB0B4\uB0B5\uB0B8\uB0BC\uB0C4\uB0C5\uB0C7\uB0C8\uB0C9\uB0D0\uB0D1\uB0D4\uB0D8\uB0E0\uB0E5\uB108\uB109\uB10B\uB10C\uB110\uB112\uB113\uB118\uB119\uB11B\uB11C\uB11D\uB123\uB124\uB125\uB128\uB12C\uB134\uB135\uB137\uB138\uB139\uB140\uB141\uB144\uB148\uB150\uB151\uB154\uB155\uB158\uB15C\uB160\uB178\uB179\uB17C\uB180\uB182\uB188\uB189\uB18B\uB18D\uB192\uB193\uB194\uB198\uB19C\uB1A8\uB1CC\uB1D0\uB1D4\uB1DC\uB1DD"],["b441","\uD02E",5,"\uD036\uD037\uD039\uD03A\uD03B\uD03D",6,"\uD046\uD048\uD04A",5],["b461","\uD051\uD052\uD053\uD055\uD056\uD057\uD059",6,"\uD061",10,"\uD06E\uD06F"],["b481","\uD071\uD072\uD073\uD075",6,"\uD07E\uD07F\uD080\uD082",18,"\uB1DF\uB1E8\uB1E9\uB1EC\uB1F0\uB1F9\uB1FB\uB1FD\uB204\uB205\uB208\uB20B\uB20C\uB214\uB215\uB217\uB219\uB220\uB234\uB23C\uB258\uB25C\uB260\uB268\uB269\uB274\uB275\uB27C\uB284\uB285\uB289\uB290\uB291\uB294\uB298\uB299\uB29A\uB2A0\uB2A1\uB2A3\uB2A5\uB2A6\uB2AA\uB2AC\uB2B0\uB2B4\uB2C8\uB2C9\uB2CC\uB2D0\uB2D2\uB2D8\uB2D9\uB2DB\uB2DD\uB2E2\uB2E4\uB2E5\uB2E6\uB2E8\uB2EB",4,"\uB2F3\uB2F4\uB2F5\uB2F7",4,"\uB2FF\uB300\uB301\uB304\uB308\uB310\uB311\uB313\uB314\uB315\uB31C\uB354\uB355\uB356\uB358\uB35B\uB35C\uB35E\uB35F\uB364\uB365"],["b541","\uD095",14,"\uD0A6\uD0A7\uD0A9\uD0AA\uD0AB\uD0AD",5],["b561","\uD0B3\uD0B6\uD0B8\uD0BA",5,"\uD0C2\uD0C3\uD0C5\uD0C6\uD0C7\uD0CA",5,"\uD0D2\uD0D6",4],["b581","\uD0DB\uD0DE\uD0DF\uD0E1\uD0E2\uD0E3\uD0E5",6,"\uD0EE\uD0F2",5,"\uD0F9",11,"\uB367\uB369\uB36B\uB36E\uB370\uB371\uB374\uB378\uB380\uB381\uB383\uB384\uB385\uB38C\uB390\uB394\uB3A0\uB3A1\uB3A8\uB3AC\uB3C4\uB3C5\uB3C8\uB3CB\uB3CC\uB3CE\uB3D0\uB3D4\uB3D5\uB3D7\uB3D9\uB3DB\uB3DD\uB3E0\uB3E4\uB3E8\uB3FC\uB410\uB418\uB41C\uB420\uB428\uB429\uB42B\uB434\uB450\uB451\uB454\uB458\uB460\uB461\uB463\uB465\uB46C\uB480\uB488\uB49D\uB4A4\uB4A8\uB4AC\uB4B5\uB4B7\uB4B9\uB4C0\uB4C4\uB4C8\uB4D0\uB4D5\uB4DC\uB4DD\uB4E0\uB4E3\uB4E4\uB4E6\uB4EC\uB4ED\uB4EF\uB4F1\uB4F8\uB514\uB515\uB518\uB51B\uB51C\uB524\uB525\uB527\uB528\uB529\uB52A\uB530\uB531\uB534\uB538"],["b641","\uD105",7,"\uD10E",17],["b661","\uD120",15,"\uD132\uD133\uD135\uD136\uD137\uD139\uD13B\uD13C\uD13D\uD13E"],["b681","\uD13F\uD142\uD146",5,"\uD14E\uD14F\uD151\uD152\uD153\uD155",6,"\uD15E\uD160\uD162",5,"\uD169\uD16A\uD16B\uD16D\uB540\uB541\uB543\uB544\uB545\uB54B\uB54C\uB54D\uB550\uB554\uB55C\uB55D\uB55F\uB560\uB561\uB5A0\uB5A1\uB5A4\uB5A8\uB5AA\uB5AB\uB5B0\uB5B1\uB5B3\uB5B4\uB5B5\uB5BB\uB5BC\uB5BD\uB5C0\uB5C4\uB5CC\uB5CD\uB5CF\uB5D0\uB5D1\uB5D8\uB5EC\uB610\uB611\uB614\uB618\uB625\uB62C\uB634\uB648\uB664\uB668\uB69C\uB69D\uB6A0\uB6A4\uB6AB\uB6AC\uB6B1\uB6D4\uB6F0\uB6F4\uB6F8\uB700\uB701\uB705\uB728\uB729\uB72C\uB72F\uB730\uB738\uB739\uB73B\uB744\uB748\uB74C\uB754\uB755\uB760\uB764\uB768\uB770\uB771\uB773\uB775\uB77C\uB77D\uB780\uB784\uB78C\uB78D\uB78F\uB790\uB791\uB792\uB796\uB797"],["b741","\uD16E",13,"\uD17D",6,"\uD185\uD186\uD187\uD189\uD18A"],["b761","\uD18B",20,"\uD1A2\uD1A3\uD1A5\uD1A6\uD1A7"],["b781","\uD1A9",6,"\uD1B2\uD1B4\uD1B6\uD1B7\uD1B8\uD1B9\uD1BB\uD1BD\uD1BE\uD1BF\uD1C1",14,"\uB798\uB799\uB79C\uB7A0\uB7A8\uB7A9\uB7AB\uB7AC\uB7AD\uB7B4\uB7B5\uB7B8\uB7C7\uB7C9\uB7EC\uB7ED\uB7F0\uB7F4\uB7FC\uB7FD\uB7FF\uB800\uB801\uB807\uB808\uB809\uB80C\uB810\uB818\uB819\uB81B\uB81D\uB824\uB825\uB828\uB82C\uB834\uB835\uB837\uB838\uB839\uB840\uB844\uB851\uB853\uB85C\uB85D\uB860\uB864\uB86C\uB86D\uB86F\uB871\uB878\uB87C\uB88D\uB8A8\uB8B0\uB8B4\uB8B8\uB8C0\uB8C1\uB8C3\uB8C5\uB8CC\uB8D0\uB8D4\uB8DD\uB8DF\uB8E1\uB8E8\uB8E9\uB8EC\uB8F0\uB8F8\uB8F9\uB8FB\uB8FD\uB904\uB918\uB920\uB93C\uB93D\uB940\uB944\uB94C\uB94F\uB951\uB958\uB959\uB95C\uB960\uB968\uB969"],["b841","\uD1D0",7,"\uD1D9",17],["b861","\uD1EB",8,"\uD1F5\uD1F6\uD1F7\uD1F9",13],["b881","\uD208\uD20A",5,"\uD211",24,"\uB96B\uB96D\uB974\uB975\uB978\uB97C\uB984\uB985\uB987\uB989\uB98A\uB98D\uB98E\uB9AC\uB9AD\uB9B0\uB9B4\uB9BC\uB9BD\uB9BF\uB9C1\uB9C8\uB9C9\uB9CC\uB9CE",4,"\uB9D8\uB9D9\uB9DB\uB9DD\uB9DE\uB9E1\uB9E3\uB9E4\uB9E5\uB9E8\uB9EC\uB9F4\uB9F5\uB9F7\uB9F8\uB9F9\uB9FA\uBA00\uBA01\uBA08\uBA15\uBA38\uBA39\uBA3C\uBA40\uBA42\uBA48\uBA49\uBA4B\uBA4D\uBA4E\uBA53\uBA54\uBA55\uBA58\uBA5C\uBA64\uBA65\uBA67\uBA68\uBA69\uBA70\uBA71\uBA74\uBA78\uBA83\uBA84\uBA85\uBA87\uBA8C\uBAA8\uBAA9\uBAAB\uBAAC\uBAB0\uBAB2\uBAB8\uBAB9\uBABB\uBABD\uBAC4\uBAC8\uBAD8\uBAD9\uBAFC"],["b941","\uD22A\uD22B\uD22E\uD22F\uD231\uD232\uD233\uD235",6,"\uD23E\uD240\uD242",5,"\uD249\uD24A\uD24B\uD24C"],["b961","\uD24D",14,"\uD25D",6,"\uD265\uD266\uD267\uD268"],["b981","\uD269",22,"\uD282\uD283\uD285\uD286\uD287\uD289\uD28A\uD28B\uD28C\uBB00\uBB04\uBB0D\uBB0F\uBB11\uBB18\uBB1C\uBB20\uBB29\uBB2B\uBB34\uBB35\uBB36\uBB38\uBB3B\uBB3C\uBB3D\uBB3E\uBB44\uBB45\uBB47\uBB49\uBB4D\uBB4F\uBB50\uBB54\uBB58\uBB61\uBB63\uBB6C\uBB88\uBB8C\uBB90\uBBA4\uBBA8\uBBAC\uBBB4\uBBB7\uBBC0\uBBC4\uBBC8\uBBD0\uBBD3\uBBF8\uBBF9\uBBFC\uBBFF\uBC00\uBC02\uBC08\uBC09\uBC0B\uBC0C\uBC0D\uBC0F\uBC11\uBC14",4,"\uBC1B",4,"\uBC24\uBC25\uBC27\uBC29\uBC2D\uBC30\uBC31\uBC34\uBC38\uBC40\uBC41\uBC43\uBC44\uBC45\uBC49\uBC4C\uBC4D\uBC50\uBC5D\uBC84\uBC85\uBC88\uBC8B\uBC8C\uBC8E\uBC94\uBC95\uBC97"],["ba41","\uD28D\uD28E\uD28F\uD292\uD293\uD294\uD296",5,"\uD29D\uD29E\uD29F\uD2A1\uD2A2\uD2A3\uD2A5",6,"\uD2AD"],["ba61","\uD2AE\uD2AF\uD2B0\uD2B2",5,"\uD2BA\uD2BB\uD2BD\uD2BE\uD2C1\uD2C3",4,"\uD2CA\uD2CC",5],["ba81","\uD2D2\uD2D3\uD2D5\uD2D6\uD2D7\uD2D9\uD2DA\uD2DB\uD2DD",6,"\uD2E6",9,"\uD2F2\uD2F3\uD2F5\uD2F6\uD2F7\uD2F9\uD2FA\uBC99\uBC9A\uBCA0\uBCA1\uBCA4\uBCA7\uBCA8\uBCB0\uBCB1\uBCB3\uBCB4\uBCB5\uBCBC\uBCBD\uBCC0\uBCC4\uBCCD\uBCCF\uBCD0\uBCD1\uBCD5\uBCD8\uBCDC\uBCF4\uBCF5\uBCF6\uBCF8\uBCFC\uBD04\uBD05\uBD07\uBD09\uBD10\uBD14\uBD24\uBD2C\uBD40\uBD48\uBD49\uBD4C\uBD50\uBD58\uBD59\uBD64\uBD68\uBD80\uBD81\uBD84\uBD87\uBD88\uBD89\uBD8A\uBD90\uBD91\uBD93\uBD95\uBD99\uBD9A\uBD9C\uBDA4\uBDB0\uBDB8\uBDD4\uBDD5\uBDD8\uBDDC\uBDE9\uBDF0\uBDF4\uBDF8\uBE00\uBE03\uBE05\uBE0C\uBE0D\uBE10\uBE14\uBE1C\uBE1D\uBE1F\uBE44\uBE45\uBE48\uBE4C\uBE4E\uBE54\uBE55\uBE57\uBE59\uBE5A\uBE5B\uBE60\uBE61\uBE64"],["bb41","\uD2FB",4,"\uD302\uD304\uD306",5,"\uD30F\uD311\uD312\uD313\uD315\uD317",4,"\uD31E\uD322\uD323"],["bb61","\uD324\uD326\uD327\uD32A\uD32B\uD32D\uD32E\uD32F\uD331",6,"\uD33A\uD33E",5,"\uD346\uD347\uD348\uD349"],["bb81","\uD34A",31,"\uBE68\uBE6A\uBE70\uBE71\uBE73\uBE74\uBE75\uBE7B\uBE7C\uBE7D\uBE80\uBE84\uBE8C\uBE8D\uBE8F\uBE90\uBE91\uBE98\uBE99\uBEA8\uBED0\uBED1\uBED4\uBED7\uBED8\uBEE0\uBEE3\uBEE4\uBEE5\uBEEC\uBF01\uBF08\uBF09\uBF18\uBF19\uBF1B\uBF1C\uBF1D\uBF40\uBF41\uBF44\uBF48\uBF50\uBF51\uBF55\uBF94\uBFB0\uBFC5\uBFCC\uBFCD\uBFD0\uBFD4\uBFDC\uBFDF\uBFE1\uC03C\uC051\uC058\uC05C\uC060\uC068\uC069\uC090\uC091\uC094\uC098\uC0A0\uC0A1\uC0A3\uC0A5\uC0AC\uC0AD\uC0AF\uC0B0\uC0B3\uC0B4\uC0B5\uC0B6\uC0BC\uC0BD\uC0BF\uC0C0\uC0C1\uC0C5\uC0C8\uC0C9\uC0CC\uC0D0\uC0D8\uC0D9\uC0DB\uC0DC\uC0DD\uC0E4"],["bc41","\uD36A",17,"\uD37E\uD37F\uD381\uD382\uD383\uD385\uD386\uD387"],["bc61","\uD388\uD389\uD38A\uD38B\uD38E\uD392",5,"\uD39A\uD39B\uD39D\uD39E\uD39F\uD3A1",6,"\uD3AA\uD3AC\uD3AE"],["bc81","\uD3AF",4,"\uD3B5\uD3B6\uD3B7\uD3B9\uD3BA\uD3BB\uD3BD",6,"\uD3C6\uD3C7\uD3CA",5,"\uD3D1",5,"\uC0E5\uC0E8\uC0EC\uC0F4\uC0F5\uC0F7\uC0F9\uC100\uC104\uC108\uC110\uC115\uC11C",4,"\uC123\uC124\uC126\uC127\uC12C\uC12D\uC12F\uC130\uC131\uC136\uC138\uC139\uC13C\uC140\uC148\uC149\uC14B\uC14C\uC14D\uC154\uC155\uC158\uC15C\uC164\uC165\uC167\uC168\uC169\uC170\uC174\uC178\uC185\uC18C\uC18D\uC18E\uC190\uC194\uC196\uC19C\uC19D\uC19F\uC1A1\uC1A5\uC1A8\uC1A9\uC1AC\uC1B0\uC1BD\uC1C4\uC1C8\uC1CC\uC1D4\uC1D7\uC1D8\uC1E0\uC1E4\uC1E8\uC1F0\uC1F1\uC1F3\uC1FC\uC1FD\uC200\uC204\uC20C\uC20D\uC20F\uC211\uC218\uC219\uC21C\uC21F\uC220\uC228\uC229\uC22B\uC22D"],["bd41","\uD3D7\uD3D9",7,"\uD3E2\uD3E4",7,"\uD3EE\uD3EF\uD3F1\uD3F2\uD3F3\uD3F5\uD3F6\uD3F7"],["bd61","\uD3F8\uD3F9\uD3FA\uD3FB\uD3FE\uD400\uD402",5,"\uD409",13],["bd81","\uD417",5,"\uD41E",25,"\uC22F\uC231\uC232\uC234\uC248\uC250\uC251\uC254\uC258\uC260\uC265\uC26C\uC26D\uC270\uC274\uC27C\uC27D\uC27F\uC281\uC288\uC289\uC290\uC298\uC29B\uC29D\uC2A4\uC2A5\uC2A8\uC2AC\uC2AD\uC2B4\uC2B5\uC2B7\uC2B9\uC2DC\uC2DD\uC2E0\uC2E3\uC2E4\uC2EB\uC2EC\uC2ED\uC2EF\uC2F1\uC2F6\uC2F8\uC2F9\uC2FB\uC2FC\uC300\uC308\uC309\uC30C\uC30D\uC313\uC314\uC315\uC318\uC31C\uC324\uC325\uC328\uC329\uC345\uC368\uC369\uC36C\uC370\uC372\uC378\uC379\uC37C\uC37D\uC384\uC388\uC38C\uC3C0\uC3D8\uC3D9\uC3DC\uC3DF\uC3E0\uC3E2\uC3E8\uC3E9\uC3ED\uC3F4\uC3F5\uC3F8\uC408\uC410\uC424\uC42C\uC430"],["be41","\uD438",7,"\uD441\uD442\uD443\uD445",14],["be61","\uD454",7,"\uD45D\uD45E\uD45F\uD461\uD462\uD463\uD465",7,"\uD46E\uD470\uD471\uD472"],["be81","\uD473",4,"\uD47A\uD47B\uD47D\uD47E\uD481\uD483",4,"\uD48A\uD48C\uD48E",5,"\uD495",8,"\uC434\uC43C\uC43D\uC448\uC464\uC465\uC468\uC46C\uC474\uC475\uC479\uC480\uC494\uC49C\uC4B8\uC4BC\uC4E9\uC4F0\uC4F1\uC4F4\uC4F8\uC4FA\uC4FF\uC500\uC501\uC50C\uC510\uC514\uC51C\uC528\uC529\uC52C\uC530\uC538\uC539\uC53B\uC53D\uC544\uC545\uC548\uC549\uC54A\uC54C\uC54D\uC54E\uC553\uC554\uC555\uC557\uC558\uC559\uC55D\uC55E\uC560\uC561\uC564\uC568\uC570\uC571\uC573\uC574\uC575\uC57C\uC57D\uC580\uC584\uC587\uC58C\uC58D\uC58F\uC591\uC595\uC597\uC598\uC59C\uC5A0\uC5A9\uC5B4\uC5B5\uC5B8\uC5B9\uC5BB\uC5BC\uC5BD\uC5BE\uC5C4",6,"\uC5CC\uC5CE"],["bf41","\uD49E",10,"\uD4AA",14],["bf61","\uD4B9",18,"\uD4CD\uD4CE\uD4CF\uD4D1\uD4D2\uD4D3\uD4D5"],["bf81","\uD4D6",5,"\uD4DD\uD4DE\uD4E0",7,"\uD4E9\uD4EA\uD4EB\uD4ED\uD4EE\uD4EF\uD4F1",6,"\uD4F9\uD4FA\uD4FC\uC5D0\uC5D1\uC5D4\uC5D8\uC5E0\uC5E1\uC5E3\uC5E5\uC5EC\uC5ED\uC5EE\uC5F0\uC5F4\uC5F6\uC5F7\uC5FC",5,"\uC605\uC606\uC607\uC608\uC60C\uC610\uC618\uC619\uC61B\uC61C\uC624\uC625\uC628\uC62C\uC62D\uC62E\uC630\uC633\uC634\uC635\uC637\uC639\uC63B\uC640\uC641\uC644\uC648\uC650\uC651\uC653\uC654\uC655\uC65C\uC65D\uC660\uC66C\uC66F\uC671\uC678\uC679\uC67C\uC680\uC688\uC689\uC68B\uC68D\uC694\uC695\uC698\uC69C\uC6A4\uC6A5\uC6A7\uC6A9\uC6B0\uC6B1\uC6B4\uC6B8\uC6B9\uC6BA\uC6C0\uC6C1\uC6C3\uC6C5\uC6CC\uC6CD\uC6D0\uC6D4\uC6DC\uC6DD\uC6E0\uC6E1\uC6E8"],["c041","\uD4FE",5,"\uD505\uD506\uD507\uD509\uD50A\uD50B\uD50D",6,"\uD516\uD518",5],["c061","\uD51E",25],["c081","\uD538\uD539\uD53A\uD53B\uD53E\uD53F\uD541\uD542\uD543\uD545",6,"\uD54E\uD550\uD552",5,"\uD55A\uD55B\uD55D\uD55E\uD55F\uD561\uD562\uD563\uC6E9\uC6EC\uC6F0\uC6F8\uC6F9\uC6FD\uC704\uC705\uC708\uC70C\uC714\uC715\uC717\uC719\uC720\uC721\uC724\uC728\uC730\uC731\uC733\uC735\uC737\uC73C\uC73D\uC740\uC744\uC74A\uC74C\uC74D\uC74F\uC751",7,"\uC75C\uC760\uC768\uC76B\uC774\uC775\uC778\uC77C\uC77D\uC77E\uC783\uC784\uC785\uC787\uC788\uC789\uC78A\uC78E\uC790\uC791\uC794\uC796\uC797\uC798\uC79A\uC7A0\uC7A1\uC7A3\uC7A4\uC7A5\uC7A6\uC7AC\uC7AD\uC7B0\uC7B4\uC7BC\uC7BD\uC7BF\uC7C0\uC7C1\uC7C8\uC7C9\uC7CC\uC7CE\uC7D0\uC7D8\uC7DD\uC7E4\uC7E8\uC7EC\uC800\uC801\uC804\uC808\uC80A"],["c141","\uD564\uD566\uD567\uD56A\uD56C\uD56E",5,"\uD576\uD577\uD579\uD57A\uD57B\uD57D",6,"\uD586\uD58A\uD58B"],["c161","\uD58C\uD58D\uD58E\uD58F\uD591",19,"\uD5A6\uD5A7"],["c181","\uD5A8",31,"\uC810\uC811\uC813\uC815\uC816\uC81C\uC81D\uC820\uC824\uC82C\uC82D\uC82F\uC831\uC838\uC83C\uC840\uC848\uC849\uC84C\uC84D\uC854\uC870\uC871\uC874\uC878\uC87A\uC880\uC881\uC883\uC885\uC886\uC887\uC88B\uC88C\uC88D\uC894\uC89D\uC89F\uC8A1\uC8A8\uC8BC\uC8BD\uC8C4\uC8C8\uC8CC\uC8D4\uC8D5\uC8D7\uC8D9\uC8E0\uC8E1\uC8E4\uC8F5\uC8FC\uC8FD\uC900\uC904\uC905\uC906\uC90C\uC90D\uC90F\uC911\uC918\uC92C\uC934\uC950\uC951\uC954\uC958\uC960\uC961\uC963\uC96C\uC970\uC974\uC97C\uC988\uC989\uC98C\uC990\uC998\uC999\uC99B\uC99D\uC9C0\uC9C1\uC9C4\uC9C7\uC9C8\uC9CA\uC9D0\uC9D1\uC9D3"],["c241","\uD5CA\uD5CB\uD5CD\uD5CE\uD5CF\uD5D1\uD5D3",4,"\uD5DA\uD5DC\uD5DE",5,"\uD5E6\uD5E7\uD5E9\uD5EA\uD5EB\uD5ED\uD5EE"],["c261","\uD5EF",4,"\uD5F6\uD5F8\uD5FA",5,"\uD602\uD603\uD605\uD606\uD607\uD609",6,"\uD612"],["c281","\uD616",5,"\uD61D\uD61E\uD61F\uD621\uD622\uD623\uD625",7,"\uD62E",9,"\uD63A\uD63B\uC9D5\uC9D6\uC9D9\uC9DA\uC9DC\uC9DD\uC9E0\uC9E2\uC9E4\uC9E7\uC9EC\uC9ED\uC9EF\uC9F0\uC9F1\uC9F8\uC9F9\uC9FC\uCA00\uCA08\uCA09\uCA0B\uCA0C\uCA0D\uCA14\uCA18\uCA29\uCA4C\uCA4D\uCA50\uCA54\uCA5C\uCA5D\uCA5F\uCA60\uCA61\uCA68\uCA7D\uCA84\uCA98\uCABC\uCABD\uCAC0\uCAC4\uCACC\uCACD\uCACF\uCAD1\uCAD3\uCAD8\uCAD9\uCAE0\uCAEC\uCAF4\uCB08\uCB10\uCB14\uCB18\uCB20\uCB21\uCB41\uCB48\uCB49\uCB4C\uCB50\uCB58\uCB59\uCB5D\uCB64\uCB78\uCB79\uCB9C\uCBB8\uCBD4\uCBE4\uCBE7\uCBE9\uCC0C\uCC0D\uCC10\uCC14\uCC1C\uCC1D\uCC21\uCC22\uCC27\uCC28\uCC29\uCC2C\uCC2E\uCC30\uCC38\uCC39\uCC3B"],["c341","\uD63D\uD63E\uD63F\uD641\uD642\uD643\uD644\uD646\uD647\uD64A\uD64C\uD64E\uD64F\uD650\uD652\uD653\uD656\uD657\uD659\uD65A\uD65B\uD65D",4],["c361","\uD662",4,"\uD668\uD66A",5,"\uD672\uD673\uD675",11],["c381","\uD681\uD682\uD684\uD686",5,"\uD68E\uD68F\uD691\uD692\uD693\uD695",7,"\uD69E\uD6A0\uD6A2",5,"\uD6A9\uD6AA\uCC3C\uCC3D\uCC3E\uCC44\uCC45\uCC48\uCC4C\uCC54\uCC55\uCC57\uCC58\uCC59\uCC60\uCC64\uCC66\uCC68\uCC70\uCC75\uCC98\uCC99\uCC9C\uCCA0\uCCA8\uCCA9\uCCAB\uCCAC\uCCAD\uCCB4\uCCB5\uCCB8\uCCBC\uCCC4\uCCC5\uCCC7\uCCC9\uCCD0\uCCD4\uCCE4\uCCEC\uCCF0\uCD01\uCD08\uCD09\uCD0C\uCD10\uCD18\uCD19\uCD1B\uCD1D\uCD24\uCD28\uCD2C\uCD39\uCD5C\uCD60\uCD64\uCD6C\uCD6D\uCD6F\uCD71\uCD78\uCD88\uCD94\uCD95\uCD98\uCD9C\uCDA4\uCDA5\uCDA7\uCDA9\uCDB0\uCDC4\uCDCC\uCDD0\uCDE8\uCDEC\uCDF0\uCDF8\uCDF9\uCDFB\uCDFD\uCE04\uCE08\uCE0C\uCE14\uCE19\uCE20\uCE21\uCE24\uCE28\uCE30\uCE31\uCE33\uCE35"],["c441","\uD6AB\uD6AD\uD6AE\uD6AF\uD6B1",7,"\uD6BA\uD6BC",7,"\uD6C6\uD6C7\uD6C9\uD6CA\uD6CB"],["c461","\uD6CD\uD6CE\uD6CF\uD6D0\uD6D2\uD6D3\uD6D5\uD6D6\uD6D8\uD6DA",5,"\uD6E1\uD6E2\uD6E3\uD6E5\uD6E6\uD6E7\uD6E9",4],["c481","\uD6EE\uD6EF\uD6F1\uD6F2\uD6F3\uD6F4\uD6F6",5,"\uD6FE\uD6FF\uD701\uD702\uD703\uD705",11,"\uD712\uD713\uD714\uCE58\uCE59\uCE5C\uCE5F\uCE60\uCE61\uCE68\uCE69\uCE6B\uCE6D\uCE74\uCE75\uCE78\uCE7C\uCE84\uCE85\uCE87\uCE89\uCE90\uCE91\uCE94\uCE98\uCEA0\uCEA1\uCEA3\uCEA4\uCEA5\uCEAC\uCEAD\uCEC1\uCEE4\uCEE5\uCEE8\uCEEB\uCEEC\uCEF4\uCEF5\uCEF7\uCEF8\uCEF9\uCF00\uCF01\uCF04\uCF08\uCF10\uCF11\uCF13\uCF15\uCF1C\uCF20\uCF24\uCF2C\uCF2D\uCF2F\uCF30\uCF31\uCF38\uCF54\uCF55\uCF58\uCF5C\uCF64\uCF65\uCF67\uCF69\uCF70\uCF71\uCF74\uCF78\uCF80\uCF85\uCF8C\uCFA1\uCFA8\uCFB0\uCFC4\uCFE0\uCFE1\uCFE4\uCFE8\uCFF0\uCFF1\uCFF3\uCFF5\uCFFC\uD000\uD004\uD011\uD018\uD02D\uD034\uD035\uD038\uD03C"],["c541","\uD715\uD716\uD717\uD71A\uD71B\uD71D\uD71E\uD71F\uD721",6,"\uD72A\uD72C\uD72E",5,"\uD736\uD737\uD739"],["c561","\uD73A\uD73B\uD73D",6,"\uD745\uD746\uD748\uD74A",5,"\uD752\uD753\uD755\uD75A",4],["c581","\uD75F\uD762\uD764\uD766\uD767\uD768\uD76A\uD76B\uD76D\uD76E\uD76F\uD771\uD772\uD773\uD775",6,"\uD77E\uD77F\uD780\uD782",5,"\uD78A\uD78B\uD044\uD045\uD047\uD049\uD050\uD054\uD058\uD060\uD06C\uD06D\uD070\uD074\uD07C\uD07D\uD081\uD0A4\uD0A5\uD0A8\uD0AC\uD0B4\uD0B5\uD0B7\uD0B9\uD0C0\uD0C1\uD0C4\uD0C8\uD0C9\uD0D0\uD0D1\uD0D3\uD0D4\uD0D5\uD0DC\uD0DD\uD0E0\uD0E4\uD0EC\uD0ED\uD0EF\uD0F0\uD0F1\uD0F8\uD10D\uD130\uD131\uD134\uD138\uD13A\uD140\uD141\uD143\uD144\uD145\uD14C\uD14D\uD150\uD154\uD15C\uD15D\uD15F\uD161\uD168\uD16C\uD17C\uD184\uD188\uD1A0\uD1A1\uD1A4\uD1A8\uD1B0\uD1B1\uD1B3\uD1B5\uD1BA\uD1BC\uD1C0\uD1D8\uD1F4\uD1F8\uD207\uD209\uD210\uD22C\uD22D\uD230\uD234\uD23C\uD23D\uD23F\uD241\uD248\uD25C"],["c641","\uD78D\uD78E\uD78F\uD791",6,"\uD79A\uD79C\uD79E",5],["c6a1","\uD264\uD280\uD281\uD284\uD288\uD290\uD291\uD295\uD29C\uD2A0\uD2A4\uD2AC\uD2B1\uD2B8\uD2B9\uD2BC\uD2BF\uD2C0\uD2C2\uD2C8\uD2C9\uD2CB\uD2D4\uD2D8\uD2DC\uD2E4\uD2E5\uD2F0\uD2F1\uD2F4\uD2F8\uD300\uD301\uD303\uD305\uD30C\uD30D\uD30E\uD310\uD314\uD316\uD31C\uD31D\uD31F\uD320\uD321\uD325\uD328\uD329\uD32C\uD330\uD338\uD339\uD33B\uD33C\uD33D\uD344\uD345\uD37C\uD37D\uD380\uD384\uD38C\uD38D\uD38F\uD390\uD391\uD398\uD399\uD39C\uD3A0\uD3A8\uD3A9\uD3AB\uD3AD\uD3B4\uD3B8\uD3BC\uD3C4\uD3C5\uD3C8\uD3C9\uD3D0\uD3D8\uD3E1\uD3E3\uD3EC\uD3ED\uD3F0\uD3F4\uD3FC\uD3FD\uD3FF\uD401"],["c7a1","\uD408\uD41D\uD440\uD444\uD45C\uD460\uD464\uD46D\uD46F\uD478\uD479\uD47C\uD47F\uD480\uD482\uD488\uD489\uD48B\uD48D\uD494\uD4A9\uD4CC\uD4D0\uD4D4\uD4DC\uD4DF\uD4E8\uD4EC\uD4F0\uD4F8\uD4FB\uD4FD\uD504\uD508\uD50C\uD514\uD515\uD517\uD53C\uD53D\uD540\uD544\uD54C\uD54D\uD54F\uD551\uD558\uD559\uD55C\uD560\uD565\uD568\uD569\uD56B\uD56D\uD574\uD575\uD578\uD57C\uD584\uD585\uD587\uD588\uD589\uD590\uD5A5\uD5C8\uD5C9\uD5CC\uD5D0\uD5D2\uD5D8\uD5D9\uD5DB\uD5DD\uD5E4\uD5E5\uD5E8\uD5EC\uD5F4\uD5F5\uD5F7\uD5F9\uD600\uD601\uD604\uD608\uD610\uD611\uD613\uD614\uD615\uD61C\uD620"],["c8a1","\uD624\uD62D\uD638\uD639\uD63C\uD640\uD645\uD648\uD649\uD64B\uD64D\uD651\uD654\uD655\uD658\uD65C\uD667\uD669\uD670\uD671\uD674\uD683\uD685\uD68C\uD68D\uD690\uD694\uD69D\uD69F\uD6A1\uD6A8\uD6AC\uD6B0\uD6B9\uD6BB\uD6C4\uD6C5\uD6C8\uD6CC\uD6D1\uD6D4\uD6D7\uD6D9\uD6E0\uD6E4\uD6E8\uD6F0\uD6F5\uD6FC\uD6FD\uD700\uD704\uD711\uD718\uD719\uD71C\uD720\uD728\uD729\uD72B\uD72D\uD734\uD735\uD738\uD73C\uD744\uD747\uD749\uD750\uD751\uD754\uD756\uD757\uD758\uD759\uD760\uD761\uD763\uD765\uD769\uD76C\uD770\uD774\uD77C\uD77D\uD781\uD788\uD789\uD78C\uD790\uD798\uD799\uD79B\uD79D"],["caa1","\u4F3D\u4F73\u5047\u50F9\u52A0\u53EF\u5475\u54E5\u5609\u5AC1\u5BB6\u6687\u67B6\u67B7\u67EF\u6B4C\u73C2\u75C2\u7A3C\u82DB\u8304\u8857\u8888\u8A36\u8CC8\u8DCF\u8EFB\u8FE6\u99D5\u523B\u5374\u5404\u606A\u6164\u6BBC\u73CF\u811A\u89BA\u89D2\u95A3\u4F83\u520A\u58BE\u5978\u59E6\u5E72\u5E79\u61C7\u63C0\u6746\u67EC\u687F\u6F97\u764E\u770B\u78F5\u7A08\u7AFF\u7C21\u809D\u826E\u8271\u8AEB\u9593\u4E6B\u559D\u66F7\u6E34\u78A3\u7AED\u845B\u8910\u874E\u97A8\u52D8\u574E\u582A\u5D4C\u611F\u61BE\u6221\u6562\u67D1\u6A44\u6E1B\u7518\u75B3\u76E3\u77B0\u7D3A\u90AF\u9451\u9452\u9F95"],["cba1","\u5323\u5CAC\u7532\u80DB\u9240\u9598\u525B\u5808\u59DC\u5CA1\u5D17\u5EB7\u5F3A\u5F4A\u6177\u6C5F\u757A\u7586\u7CE0\u7D73\u7DB1\u7F8C\u8154\u8221\u8591\u8941\u8B1B\u92FC\u964D\u9C47\u4ECB\u4EF7\u500B\u51F1\u584F\u6137\u613E\u6168\u6539\u69EA\u6F11\u75A5\u7686\u76D6\u7B87\u82A5\u84CB\uF900\u93A7\u958B\u5580\u5BA2\u5751\uF901\u7CB3\u7FB9\u91B5\u5028\u53BB\u5C45\u5DE8\u62D2\u636E\u64DA\u64E7\u6E20\u70AC\u795B\u8DDD\u8E1E\uF902\u907D\u9245\u92F8\u4E7E\u4EF6\u5065\u5DFE\u5EFA\u6106\u6957\u8171\u8654\u8E47\u9375\u9A2B\u4E5E\u5091\u6770\u6840\u5109\u528D\u5292\u6AA2"],["cca1","\u77BC\u9210\u9ED4\u52AB\u602F\u8FF2\u5048\u61A9\u63ED\u64CA\u683C\u6A84\u6FC0\u8188\u89A1\u9694\u5805\u727D\u72AC\u7504\u7D79\u7E6D\u80A9\u898B\u8B74\u9063\u9D51\u6289\u6C7A\u6F54\u7D50\u7F3A\u8A23\u517C\u614A\u7B9D\u8B19\u9257\u938C\u4EAC\u4FD3\u501E\u50BE\u5106\u52C1\u52CD\u537F\u5770\u5883\u5E9A\u5F91\u6176\u61AC\u64CE\u656C\u666F\u66BB\u66F4\u6897\u6D87\u7085\u70F1\u749F\u74A5\u74CA\u75D9\u786C\u78EC\u7ADF\u7AF6\u7D45\u7D93\u8015\u803F\u811B\u8396\u8B66\u8F15\u9015\u93E1\u9803\u9838\u9A5A\u9BE8\u4FC2\u5553\u583A\u5951\u5B63\u5C46\u60B8\u6212\u6842\u68B0"],["cda1","\u68E8\u6EAA\u754C\u7678\u78CE\u7A3D\u7CFB\u7E6B\u7E7C\u8A08\u8AA1\u8C3F\u968E\u9DC4\u53E4\u53E9\u544A\u5471\u56FA\u59D1\u5B64\u5C3B\u5EAB\u62F7\u6537\u6545\u6572\u66A0\u67AF\u69C1\u6CBD\u75FC\u7690\u777E\u7A3F\u7F94\u8003\u80A1\u818F\u82E6\u82FD\u83F0\u85C1\u8831\u88B4\u8AA5\uF903\u8F9C\u932E\u96C7\u9867\u9AD8\u9F13\u54ED\u659B\u66F2\u688F\u7A40\u8C37\u9D60\u56F0\u5764\u5D11\u6606\u68B1\u68CD\u6EFE\u7428\u889E\u9BE4\u6C68\uF904\u9AA8\u4F9B\u516C\u5171\u529F\u5B54\u5DE5\u6050\u606D\u62F1\u63A7\u653B\u73D9\u7A7A\u86A3\u8CA2\u978F\u4E32\u5BE1\u6208\u679C\u74DC"],["cea1","\u79D1\u83D3\u8A87\u8AB2\u8DE8\u904E\u934B\u9846\u5ED3\u69E8\u85FF\u90ED\uF905\u51A0\u5B98\u5BEC\u6163\u68FA\u6B3E\u704C\u742F\u74D8\u7BA1\u7F50\u83C5\u89C0\u8CAB\u95DC\u9928\u522E\u605D\u62EC\u9002\u4F8A\u5149\u5321\u58D9\u5EE3\u66E0\u6D38\u709A\u72C2\u73D6\u7B50\u80F1\u945B\u5366\u639B\u7F6B\u4E56\u5080\u584A\u58DE\u602A\u6127\u62D0\u69D0\u9B41\u5B8F\u7D18\u80B1\u8F5F\u4EA4\u50D1\u54AC\u55AC\u5B0C\u5DA0\u5DE7\u652A\u654E\u6821\u6A4B\u72E1\u768E\u77EF\u7D5E\u7FF9\u81A0\u854E\u86DF\u8F03\u8F4E\u90CA\u9903\u9A55\u9BAB\u4E18\u4E45\u4E5D\u4EC7\u4FF1\u5177\u52FE"],["cfa1","\u5340\u53E3\u53E5\u548E\u5614\u5775\u57A2\u5BC7\u5D87\u5ED0\u61FC\u62D8\u6551\u67B8\u67E9\u69CB\u6B50\u6BC6\u6BEC\u6C42\u6E9D\u7078\u72D7\u7396\u7403\u77BF\u77E9\u7A76\u7D7F\u8009\u81FC\u8205\u820A\u82DF\u8862\u8B33\u8CFC\u8EC0\u9011\u90B1\u9264\u92B6\u99D2\u9A45\u9CE9\u9DD7\u9F9C\u570B\u5C40\u83CA\u97A0\u97AB\u9EB4\u541B\u7A98\u7FA4\u88D9\u8ECD\u90E1\u5800\u5C48\u6398\u7A9F\u5BAE\u5F13\u7A79\u7AAE\u828E\u8EAC\u5026\u5238\u52F8\u5377\u5708\u62F3\u6372\u6B0A\u6DC3\u7737\u53A5\u7357\u8568\u8E76\u95D5\u673A\u6AC3\u6F70\u8A6D\u8ECC\u994B\uF906\u6677\u6B78\u8CB4"],["d0a1","\u9B3C\uF907\u53EB\u572D\u594E\u63C6\u69FB\u73EA\u7845\u7ABA\u7AC5\u7CFE\u8475\u898F\u8D73\u9035\u95A8\u52FB\u5747\u7547\u7B60\u83CC\u921E\uF908\u6A58\u514B\u524B\u5287\u621F\u68D8\u6975\u9699\u50C5\u52A4\u52E4\u61C3\u65A4\u6839\u69FF\u747E\u7B4B\u82B9\u83EB\u89B2\u8B39\u8FD1\u9949\uF909\u4ECA\u5997\u64D2\u6611\u6A8E\u7434\u7981\u79BD\u82A9\u887E\u887F\u895F\uF90A\u9326\u4F0B\u53CA\u6025\u6271\u6C72\u7D1A\u7D66\u4E98\u5162\u77DC\u80AF\u4F01\u4F0E\u5176\u5180\u55DC\u5668\u573B\u57FA\u57FC\u5914\u5947\u5993\u5BC4\u5C90\u5D0E\u5DF1\u5E7E\u5FCC\u6280\u65D7\u65E3"],["d1a1","\u671E\u671F\u675E\u68CB\u68C4\u6A5F\u6B3A\u6C23\u6C7D\u6C82\u6DC7\u7398\u7426\u742A\u7482\u74A3\u7578\u757F\u7881\u78EF\u7941\u7947\u7948\u797A\u7B95\u7D00\u7DBA\u7F88\u8006\u802D\u808C\u8A18\u8B4F\u8C48\u8D77\u9321\u9324\u98E2\u9951\u9A0E\u9A0F\u9A65\u9E92\u7DCA\u4F76\u5409\u62EE\u6854\u91D1\u55AB\u513A\uF90B\uF90C\u5A1C\u61E6\uF90D\u62CF\u62FF\uF90E",5,"\u90A3\uF914",4,"\u8AFE\uF919\uF91A\uF91B\uF91C\u6696\uF91D\u7156\uF91E\uF91F\u96E3\uF920\u634F\u637A\u5357\uF921\u678F\u6960\u6E73\uF922\u7537\uF923\uF924\uF925"],["d2a1","\u7D0D\uF926\uF927\u8872\u56CA\u5A18\uF928",4,"\u4E43\uF92D\u5167\u5948\u67F0\u8010\uF92E\u5973\u5E74\u649A\u79CA\u5FF5\u606C\u62C8\u637B\u5BE7\u5BD7\u52AA\uF92F\u5974\u5F29\u6012\uF930\uF931\uF932\u7459\uF933",5,"\u99D1\uF939",10,"\u6FC3\uF944\uF945\u81BF\u8FB2\u60F1\uF946\uF947\u8166\uF948\uF949\u5C3F\uF94A",7,"\u5AE9\u8A25\u677B\u7D10\uF952",5,"\u80FD\uF958\uF959\u5C3C\u6CE5\u533F\u6EBA\u591A\u8336"],["d3a1","\u4E39\u4EB6\u4F46\u55AE\u5718\u58C7\u5F56\u65B7\u65E6\u6A80\u6BB5\u6E4D\u77ED\u7AEF\u7C1E\u7DDE\u86CB\u8892\u9132\u935B\u64BB\u6FBE\u737A\u75B8\u9054\u5556\u574D\u61BA\u64D4\u66C7\u6DE1\u6E5B\u6F6D\u6FB9\u75F0\u8043\u81BD\u8541\u8983\u8AC7\u8B5A\u931F\u6C93\u7553\u7B54\u8E0F\u905D\u5510\u5802\u5858\u5E62\u6207\u649E\u68E0\u7576\u7CD6\u87B3\u9EE8\u4EE3\u5788\u576E\u5927\u5C0D\u5CB1\u5E36\u5F85\u6234\u64E1\u73B3\u81FA\u888B\u8CB8\u968A\u9EDB\u5B85\u5FB7\u60B3\u5012\u5200\u5230\u5716\u5835\u5857\u5C0E\u5C60\u5CF6\u5D8B\u5EA6\u5F92\u60BC\u6311\u6389\u6417\u6843"],["d4a1","\u68F9\u6AC2\u6DD8\u6E21\u6ED4\u6FE4\u71FE\u76DC\u7779\u79B1\u7A3B\u8404\u89A9\u8CED\u8DF3\u8E48\u9003\u9014\u9053\u90FD\u934D\u9676\u97DC\u6BD2\u7006\u7258\u72A2\u7368\u7763\u79BF\u7BE4\u7E9B\u8B80\u58A9\u60C7\u6566\u65FD\u66BE\u6C8C\u711E\u71C9\u8C5A\u9813\u4E6D\u7A81\u4EDD\u51AC\u51CD\u52D5\u540C\u61A7\u6771\u6850\u68DF\u6D1E\u6F7C\u75BC\u77B3\u7AE5\u80F4\u8463\u9285\u515C\u6597\u675C\u6793\u75D8\u7AC7\u8373\uF95A\u8C46\u9017\u982D\u5C6F\u81C0\u829A\u9041\u906F\u920D\u5F97\u5D9D\u6A59\u71C8\u767B\u7B49\u85E4\u8B04\u9127\u9A30\u5587\u61F6\uF95B\u7669\u7F85"],["d5a1","\u863F\u87BA\u88F8\u908F\uF95C\u6D1B\u70D9\u73DE\u7D61\u843D\uF95D\u916A\u99F1\uF95E\u4E82\u5375\u6B04\u6B12\u703E\u721B\u862D\u9E1E\u524C\u8FA3\u5D50\u64E5\u652C\u6B16\u6FEB\u7C43\u7E9C\u85CD\u8964\u89BD\u62C9\u81D8\u881F\u5ECA\u6717\u6D6A\u72FC\u7405\u746F\u8782\u90DE\u4F86\u5D0D\u5FA0\u840A\u51B7\u63A0\u7565\u4EAE\u5006\u5169\u51C9\u6881\u6A11\u7CAE\u7CB1\u7CE7\u826F\u8AD2\u8F1B\u91CF\u4FB6\u5137\u52F5\u5442\u5EEC\u616E\u623E\u65C5\u6ADA\u6FFE\u792A\u85DC\u8823\u95AD\u9A62\u9A6A\u9E97\u9ECE\u529B\u66C6\u6B77\u701D\u792B\u8F62\u9742\u6190\u6200\u6523\u6F23"],["d6a1","\u7149\u7489\u7DF4\u806F\u84EE\u8F26\u9023\u934A\u51BD\u5217\u52A3\u6D0C\u70C8\u88C2\u5EC9\u6582\u6BAE\u6FC2\u7C3E\u7375\u4EE4\u4F36\u56F9\uF95F\u5CBA\u5DBA\u601C\u73B2\u7B2D\u7F9A\u7FCE\u8046\u901E\u9234\u96F6\u9748\u9818\u9F61\u4F8B\u6FA7\u79AE\u91B4\u96B7\u52DE\uF960\u6488\u64C4\u6AD3\u6F5E\u7018\u7210\u76E7\u8001\u8606\u865C\u8DEF\u8F05\u9732\u9B6F\u9DFA\u9E75\u788C\u797F\u7DA0\u83C9\u9304\u9E7F\u9E93\u8AD6\u58DF\u5F04\u6727\u7027\u74CF\u7C60\u807E\u5121\u7028\u7262\u78CA\u8CC2\u8CDA\u8CF4\u96F7\u4E86\u50DA\u5BEE\u5ED6\u6599\u71CE\u7642\u77AD\u804A\u84FC"],["d7a1","\u907C\u9B27\u9F8D\u58D8\u5A41\u5C62\u6A13\u6DDA\u6F0F\u763B\u7D2F\u7E37\u851E\u8938\u93E4\u964B\u5289\u65D2\u67F3\u69B4\u6D41\u6E9C\u700F\u7409\u7460\u7559\u7624\u786B\u8B2C\u985E\u516D\u622E\u9678\u4F96\u502B\u5D19\u6DEA\u7DB8\u8F2A\u5F8B\u6144\u6817\uF961\u9686\u52D2\u808B\u51DC\u51CC\u695E\u7A1C\u7DBE\u83F1\u9675\u4FDA\u5229\u5398\u540F\u550E\u5C65\u60A7\u674E\u68A8\u6D6C\u7281\u72F8\u7406\u7483\uF962\u75E2\u7C6C\u7F79\u7FB8\u8389\u88CF\u88E1\u91CC\u91D0\u96E2\u9BC9\u541D\u6F7E\u71D0\u7498\u85FA\u8EAA\u96A3\u9C57\u9E9F\u6797\u6DCB\u7433\u81E8\u9716\u782C"],["d8a1","\u7ACB\u7B20\u7C92\u6469\u746A\u75F2\u78BC\u78E8\u99AC\u9B54\u9EBB\u5BDE\u5E55\u6F20\u819C\u83AB\u9088\u4E07\u534D\u5A29\u5DD2\u5F4E\u6162\u633D\u6669\u66FC\u6EFF\u6F2B\u7063\u779E\u842C\u8513\u883B\u8F13\u9945\u9C3B\u551C\u62B9\u672B\u6CAB\u8309\u896A\u977A\u4EA1\u5984\u5FD8\u5FD9\u671B\u7DB2\u7F54\u8292\u832B\u83BD\u8F1E\u9099\u57CB\u59B9\u5A92\u5BD0\u6627\u679A\u6885\u6BCF\u7164\u7F75\u8CB7\u8CE3\u9081\u9B45\u8108\u8C8A\u964C\u9A40\u9EA5\u5B5F\u6C13\u731B\u76F2\u76DF\u840C\u51AA\u8993\u514D\u5195\u52C9\u68C9\u6C94\u7704\u7720\u7DBF\u7DEC\u9762\u9EB5\u6EC5"],["d9a1","\u8511\u51A5\u540D\u547D\u660E\u669D\u6927\u6E9F\u76BF\u7791\u8317\u84C2\u879F\u9169\u9298\u9CF4\u8882\u4FAE\u5192\u52DF\u59C6\u5E3D\u6155\u6478\u6479\u66AE\u67D0\u6A21\u6BCD\u6BDB\u725F\u7261\u7441\u7738\u77DB\u8017\u82BC\u8305\u8B00\u8B28\u8C8C\u6728\u6C90\u7267\u76EE\u7766\u7A46\u9DA9\u6B7F\u6C92\u5922\u6726\u8499\u536F\u5893\u5999\u5EDF\u63CF\u6634\u6773\u6E3A\u732B\u7AD7\u82D7\u9328\u52D9\u5DEB\u61AE\u61CB\u620A\u62C7\u64AB\u65E0\u6959\u6B66\u6BCB\u7121\u73F7\u755D\u7E46\u821E\u8302\u856A\u8AA3\u8CBF\u9727\u9D61\u58A8\u9ED8\u5011\u520E\u543B\u554F\u6587"],["daa1","\u6C76\u7D0A\u7D0B\u805E\u868A\u9580\u96EF\u52FF\u6C95\u7269\u5473\u5A9A\u5C3E\u5D4B\u5F4C\u5FAE\u672A\u68B6\u6963\u6E3C\u6E44\u7709\u7C73\u7F8E\u8587\u8B0E\u8FF7\u9761\u9EF4\u5CB7\u60B6\u610D\u61AB\u654F\u65FB\u65FC\u6C11\u6CEF\u739F\u73C9\u7DE1\u9594\u5BC6\u871C\u8B10\u525D\u535A\u62CD\u640F\u64B2\u6734\u6A38\u6CCA\u73C0\u749E\u7B94\u7C95\u7E1B\u818A\u8236\u8584\u8FEB\u96F9\u99C1\u4F34\u534A\u53CD\u53DB\u62CC\u642C\u6500\u6591\u69C3\u6CEE\u6F58\u73ED\u7554\u7622\u76E4\u76FC\u78D0\u78FB\u792C\u7D46\u822C\u87E0\u8FD4\u9812\u98EF\u52C3\u62D4\u64A5\u6E24\u6F51"],["dba1","\u767C\u8DCB\u91B1\u9262\u9AEE\u9B43\u5023\u508D\u574A\u59A8\u5C28\u5E47\u5F77\u623F\u653E\u65B9\u65C1\u6609\u678B\u699C\u6EC2\u78C5\u7D21\u80AA\u8180\u822B\u82B3\u84A1\u868C\u8A2A\u8B17\u90A6\u9632\u9F90\u500D\u4FF3\uF963\u57F9\u5F98\u62DC\u6392\u676F\u6E43\u7119\u76C3\u80CC\u80DA\u88F4\u88F5\u8919\u8CE0\u8F29\u914D\u966A\u4F2F\u4F70\u5E1B\u67CF\u6822\u767D\u767E\u9B44\u5E61\u6A0A\u7169\u71D4\u756A\uF964\u7E41\u8543\u85E9\u98DC\u4F10\u7B4F\u7F70\u95A5\u51E1\u5E06\u68B5\u6C3E\u6C4E\u6CDB\u72AF\u7BC4\u8303\u6CD5\u743A\u50FB\u5288\u58C1\u64D8\u6A97\u74A7\u7656"],["dca1","\u78A7\u8617\u95E2\u9739\uF965\u535E\u5F01\u8B8A\u8FA8\u8FAF\u908A\u5225\u77A5\u9C49\u9F08\u4E19\u5002\u5175\u5C5B\u5E77\u661E\u663A\u67C4\u68C5\u70B3\u7501\u75C5\u79C9\u7ADD\u8F27\u9920\u9A08\u4FDD\u5821\u5831\u5BF6\u666E\u6B65\u6D11\u6E7A\u6F7D\u73E4\u752B\u83E9\u88DC\u8913\u8B5C\u8F14\u4F0F\u50D5\u5310\u535C\u5B93\u5FA9\u670D\u798F\u8179\u832F\u8514\u8907\u8986\u8F39\u8F3B\u99A5\u9C12\u672C\u4E76\u4FF8\u5949\u5C01\u5CEF\u5CF0\u6367\u68D2\u70FD\u71A2\u742B\u7E2B\u84EC\u8702\u9022\u92D2\u9CF3\u4E0D\u4ED8\u4FEF\u5085\u5256\u526F\u5426\u5490\u57E0\u592B\u5A66"],["dda1","\u5B5A\u5B75\u5BCC\u5E9C\uF966\u6276\u6577\u65A7\u6D6E\u6EA5\u7236\u7B26\u7C3F\u7F36\u8150\u8151\u819A\u8240\u8299\u83A9\u8A03\u8CA0\u8CE6\u8CFB\u8D74\u8DBA\u90E8\u91DC\u961C\u9644\u99D9\u9CE7\u5317\u5206\u5429\u5674\u58B3\u5954\u596E\u5FFF\u61A4\u626E\u6610\u6C7E\u711A\u76C6\u7C89\u7CDE\u7D1B\u82AC\u8CC1\u96F0\uF967\u4F5B\u5F17\u5F7F\u62C2\u5D29\u670B\u68DA\u787C\u7E43\u9D6C\u4E15\u5099\u5315\u532A\u5351\u5983\u5A62\u5E87\u60B2\u618A\u6249\u6279\u6590\u6787\u69A7\u6BD4\u6BD6\u6BD7\u6BD8\u6CB8\uF968\u7435\u75FA\u7812\u7891\u79D5\u79D8\u7C83\u7DCB\u7FE1\u80A5"],["dea1","\u813E\u81C2\u83F2\u871A\u88E8\u8AB9\u8B6C\u8CBB\u9119\u975E\u98DB\u9F3B\u56AC\u5B2A\u5F6C\u658C\u6AB3\u6BAF\u6D5C\u6FF1\u7015\u725D\u73AD\u8CA7\u8CD3\u983B\u6191\u6C37\u8058\u9A01\u4E4D\u4E8B\u4E9B\u4ED5\u4F3A\u4F3C\u4F7F\u4FDF\u50FF\u53F2\u53F8\u5506\u55E3\u56DB\u58EB\u5962\u5A11\u5BEB\u5BFA\u5C04\u5DF3\u5E2B\u5F99\u601D\u6368\u659C\u65AF\u67F6\u67FB\u68AD\u6B7B\u6C99\u6CD7\u6E23\u7009\u7345\u7802\u793E\u7940\u7960\u79C1\u7BE9\u7D17\u7D72\u8086\u820D\u838E\u84D1\u86C7\u88DF\u8A50\u8A5E\u8B1D\u8CDC\u8D66\u8FAD\u90AA\u98FC\u99DF\u9E9D\u524A\uF969\u6714\uF96A"],["dfa1","\u5098\u522A\u5C71\u6563\u6C55\u73CA\u7523\u759D\u7B97\u849C\u9178\u9730\u4E77\u6492\u6BBA\u715E\u85A9\u4E09\uF96B\u6749\u68EE\u6E17\u829F\u8518\u886B\u63F7\u6F81\u9212\u98AF\u4E0A\u50B7\u50CF\u511F\u5546\u55AA\u5617\u5B40\u5C19\u5CE0\u5E38\u5E8A\u5EA0\u5EC2\u60F3\u6851\u6A61\u6E58\u723D\u7240\u72C0\u76F8\u7965\u7BB1\u7FD4\u88F3\u89F4\u8A73\u8C61\u8CDE\u971C\u585E\u74BD\u8CFD\u55C7\uF96C\u7A61\u7D22\u8272\u7272\u751F\u7525\uF96D\u7B19\u5885\u58FB\u5DBC\u5E8F\u5EB6\u5F90\u6055\u6292\u637F\u654D\u6691\u66D9\u66F8\u6816\u68F2\u7280\u745E\u7B6E\u7D6E\u7DD6\u7F72"],["e0a1","\u80E5\u8212\u85AF\u897F\u8A93\u901D\u92E4\u9ECD\u9F20\u5915\u596D\u5E2D\u60DC\u6614\u6673\u6790\u6C50\u6DC5\u6F5F\u77F3\u78A9\u84C6\u91CB\u932B\u4ED9\u50CA\u5148\u5584\u5B0B\u5BA3\u6247\u657E\u65CB\u6E32\u717D\u7401\u7444\u7487\u74BF\u766C\u79AA\u7DDA\u7E55\u7FA8\u817A\u81B3\u8239\u861A\u87EC\u8A75\u8DE3\u9078\u9291\u9425\u994D\u9BAE\u5368\u5C51\u6954\u6CC4\u6D29\u6E2B\u820C\u859B\u893B\u8A2D\u8AAA\u96EA\u9F67\u5261\u66B9\u6BB2\u7E96\u87FE\u8D0D\u9583\u965D\u651D\u6D89\u71EE\uF96E\u57CE\u59D3\u5BAC\u6027\u60FA\u6210\u661F\u665F\u7329\u73F9\u76DB\u7701\u7B6C"],["e1a1","\u8056\u8072\u8165\u8AA0\u9192\u4E16\u52E2\u6B72\u6D17\u7A05\u7B39\u7D30\uF96F\u8CB0\u53EC\u562F\u5851\u5BB5\u5C0F\u5C11\u5DE2\u6240\u6383\u6414\u662D\u68B3\u6CBC\u6D88\u6EAF\u701F\u70A4\u71D2\u7526\u758F\u758E\u7619\u7B11\u7BE0\u7C2B\u7D20\u7D39\u852C\u856D\u8607\u8A34\u900D\u9061\u90B5\u92B7\u97F6\u9A37\u4FD7\u5C6C\u675F\u6D91\u7C9F\u7E8C\u8B16\u8D16\u901F\u5B6B\u5DFD\u640D\u84C0\u905C\u98E1\u7387\u5B8B\u609A\u677E\u6DDE\u8A1F\u8AA6\u9001\u980C\u5237\uF970\u7051\u788E\u9396\u8870\u91D7\u4FEE\u53D7\u55FD\u56DA\u5782\u58FD\u5AC2\u5B88\u5CAB\u5CC0\u5E25\u6101"],["e2a1","\u620D\u624B\u6388\u641C\u6536\u6578\u6A39\u6B8A\u6C34\u6D19\u6F31\u71E7\u72E9\u7378\u7407\u74B2\u7626\u7761\u79C0\u7A57\u7AEA\u7CB9\u7D8F\u7DAC\u7E61\u7F9E\u8129\u8331\u8490\u84DA\u85EA\u8896\u8AB0\u8B90\u8F38\u9042\u9083\u916C\u9296\u92B9\u968B\u96A7\u96A8\u96D6\u9700\u9808\u9996\u9AD3\u9B1A\u53D4\u587E\u5919\u5B70\u5BBF\u6DD1\u6F5A\u719F\u7421\u74B9\u8085\u83FD\u5DE1\u5F87\u5FAA\u6042\u65EC\u6812\u696F\u6A53\u6B89\u6D35\u6DF3\u73E3\u76FE\u77AC\u7B4D\u7D14\u8123\u821C\u8340\u84F4\u8563\u8A62\u8AC4\u9187\u931E\u9806\u99B4\u620C\u8853\u8FF0\u9265\u5D07\u5D27"],["e3a1","\u5D69\u745F\u819D\u8768\u6FD5\u62FE\u7FD2\u8936\u8972\u4E1E\u4E58\u50E7\u52DD\u5347\u627F\u6607\u7E69\u8805\u965E\u4F8D\u5319\u5636\u59CB\u5AA4\u5C38\u5C4E\u5C4D\u5E02\u5F11\u6043\u65BD\u662F\u6642\u67BE\u67F4\u731C\u77E2\u793A\u7FC5\u8494\u84CD\u8996\u8A66\u8A69\u8AE1\u8C55\u8C7A\u57F4\u5BD4\u5F0F\u606F\u62ED\u690D\u6B96\u6E5C\u7184\u7BD2\u8755\u8B58\u8EFE\u98DF\u98FE\u4F38\u4F81\u4FE1\u547B\u5A20\u5BB8\u613C\u65B0\u6668\u71FC\u7533\u795E\u7D33\u814E\u81E3\u8398\u85AA\u85CE\u8703\u8A0A\u8EAB\u8F9B\uF971\u8FC5\u5931\u5BA4\u5BE6\u6089\u5BE9\u5C0B\u5FC3\u6C81"],["e4a1","\uF972\u6DF1\u700B\u751A\u82AF\u8AF6\u4EC0\u5341\uF973\u96D9\u6C0F\u4E9E\u4FC4\u5152\u555E\u5A25\u5CE8\u6211\u7259\u82BD\u83AA\u86FE\u8859\u8A1D\u963F\u96C5\u9913\u9D09\u9D5D\u580A\u5CB3\u5DBD\u5E44\u60E1\u6115\u63E1\u6A02\u6E25\u9102\u9354\u984E\u9C10\u9F77\u5B89\u5CB8\u6309\u664F\u6848\u773C\u96C1\u978D\u9854\u9B9F\u65A1\u8B01\u8ECB\u95BC\u5535\u5CA9\u5DD6\u5EB5\u6697\u764C\u83F4\u95C7\u58D3\u62BC\u72CE\u9D28\u4EF0\u592E\u600F\u663B\u6B83\u79E7\u9D26\u5393\u54C0\u57C3\u5D16\u611B\u66D6\u6DAF\u788D\u827E\u9698\u9744\u5384\u627C\u6396\u6DB2\u7E0A\u814B\u984D"],["e5a1","\u6AFB\u7F4C\u9DAF\u9E1A\u4E5F\u503B\u51B6\u591C\u60F9\u63F6\u6930\u723A\u8036\uF974\u91CE\u5F31\uF975\uF976\u7D04\u82E5\u846F\u84BB\u85E5\u8E8D\uF977\u4F6F\uF978\uF979\u58E4\u5B43\u6059\u63DA\u6518\u656D\u6698\uF97A\u694A\u6A23\u6D0B\u7001\u716C\u75D2\u760D\u79B3\u7A70\uF97B\u7F8A\uF97C\u8944\uF97D\u8B93\u91C0\u967D\uF97E\u990A\u5704\u5FA1\u65BC\u6F01\u7600\u79A6\u8A9E\u99AD\u9B5A\u9F6C\u5104\u61B6\u6291\u6A8D\u81C6\u5043\u5830\u5F66\u7109\u8A00\u8AFA\u5B7C\u8616\u4FFA\u513C\u56B4\u5944\u63A9\u6DF9\u5DAA\u696D\u5186\u4E88\u4F59\uF97F\uF980\uF981\u5982\uF982"],["e6a1","\uF983\u6B5F\u6C5D\uF984\u74B5\u7916\uF985\u8207\u8245\u8339\u8F3F\u8F5D\uF986\u9918\uF987\uF988\uF989\u4EA6\uF98A\u57DF\u5F79\u6613\uF98B\uF98C\u75AB\u7E79\u8B6F\uF98D\u9006\u9A5B\u56A5\u5827\u59F8\u5A1F\u5BB4\uF98E\u5EF6\uF98F\uF990\u6350\u633B\uF991\u693D\u6C87\u6CBF\u6D8E\u6D93\u6DF5\u6F14\uF992\u70DF\u7136\u7159\uF993\u71C3\u71D5\uF994\u784F\u786F\uF995\u7B75\u7DE3\uF996\u7E2F\uF997\u884D\u8EDF\uF998\uF999\uF99A\u925B\uF99B\u9CF6\uF99C\uF99D\uF99E\u6085\u6D85\uF99F\u71B1\uF9A0\uF9A1\u95B1\u53AD\uF9A2\uF9A3\uF9A4\u67D3\uF9A5\u708E\u7130\u7430\u8276\u82D2"],["e7a1","\uF9A6\u95BB\u9AE5\u9E7D\u66C4\uF9A7\u71C1\u8449\uF9A8\uF9A9\u584B\uF9AA\uF9AB\u5DB8\u5F71\uF9AC\u6620\u668E\u6979\u69AE\u6C38\u6CF3\u6E36\u6F41\u6FDA\u701B\u702F\u7150\u71DF\u7370\uF9AD\u745B\uF9AE\u74D4\u76C8\u7A4E\u7E93\uF9AF\uF9B0\u82F1\u8A60\u8FCE\uF9B1\u9348\uF9B2\u9719\uF9B3\uF9B4\u4E42\u502A\uF9B5\u5208\u53E1\u66F3\u6C6D\u6FCA\u730A\u777F\u7A62\u82AE\u85DD\u8602\uF9B6\u88D4\u8A63\u8B7D\u8C6B\uF9B7\u92B3\uF9B8\u9713\u9810\u4E94\u4F0D\u4FC9\u50B2\u5348\u543E\u5433\u55DA\u5862\u58BA\u5967\u5A1B\u5BE4\u609F\uF9B9\u61CA\u6556\u65FF\u6664\u68A7\u6C5A\u6FB3"],["e8a1","\u70CF\u71AC\u7352\u7B7D\u8708\u8AA4\u9C32\u9F07\u5C4B\u6C83\u7344\u7389\u923A\u6EAB\u7465\u761F\u7A69\u7E15\u860A\u5140\u58C5\u64C1\u74EE\u7515\u7670\u7FC1\u9095\u96CD\u9954\u6E26\u74E6\u7AA9\u7AAA\u81E5\u86D9\u8778\u8A1B\u5A49\u5B8C\u5B9B\u68A1\u6900\u6D63\u73A9\u7413\u742C\u7897\u7DE9\u7FEB\u8118\u8155\u839E\u8C4C\u962E\u9811\u66F0\u5F80\u65FA\u6789\u6C6A\u738B\u502D\u5A03\u6B6A\u77EE\u5916\u5D6C\u5DCD\u7325\u754F\uF9BA\uF9BB\u50E5\u51F9\u582F\u592D\u5996\u59DA\u5BE5\uF9BC\uF9BD\u5DA2\u62D7\u6416\u6493\u64FE\uF9BE\u66DC\uF9BF\u6A48\uF9C0\u71FF\u7464\uF9C1"],["e9a1","\u7A88\u7AAF\u7E47\u7E5E\u8000\u8170\uF9C2\u87EF\u8981\u8B20\u9059\uF9C3\u9080\u9952\u617E\u6B32\u6D74\u7E1F\u8925\u8FB1\u4FD1\u50AD\u5197\u52C7\u57C7\u5889\u5BB9\u5EB8\u6142\u6995\u6D8C\u6E67\u6EB6\u7194\u7462\u7528\u752C\u8073\u8338\u84C9\u8E0A\u9394\u93DE\uF9C4\u4E8E\u4F51\u5076\u512A\u53C8\u53CB\u53F3\u5B87\u5BD3\u5C24\u611A\u6182\u65F4\u725B\u7397\u7440\u76C2\u7950\u7991\u79B9\u7D06\u7FBD\u828B\u85D5\u865E\u8FC2\u9047\u90F5\u91EA\u9685\u96E8\u96E9\u52D6\u5F67\u65ED\u6631\u682F\u715C\u7A36\u90C1\u980A\u4E91\uF9C5\u6A52\u6B9E\u6F90\u7189\u8018\u82B8\u8553"],["eaa1","\u904B\u9695\u96F2\u97FB\u851A\u9B31\u4E90\u718A\u96C4\u5143\u539F\u54E1\u5713\u5712\u57A3\u5A9B\u5AC4\u5BC3\u6028\u613F\u63F4\u6C85\u6D39\u6E72\u6E90\u7230\u733F\u7457\u82D1\u8881\u8F45\u9060\uF9C6\u9662\u9858\u9D1B\u6708\u8D8A\u925E\u4F4D\u5049\u50DE\u5371\u570D\u59D4\u5A01\u5C09\u6170\u6690\u6E2D\u7232\u744B\u7DEF\u80C3\u840E\u8466\u853F\u875F\u885B\u8918\u8B02\u9055\u97CB\u9B4F\u4E73\u4F91\u5112\u516A\uF9C7\u552F\u55A9\u5B7A\u5BA5\u5E7C\u5E7D\u5EBE\u60A0\u60DF\u6108\u6109\u63C4\u6538\u6709\uF9C8\u67D4\u67DA\uF9C9\u6961\u6962\u6CB9\u6D27\uF9CA\u6E38\uF9CB"],["eba1","\u6FE1\u7336\u7337\uF9CC\u745C\u7531\uF9CD\u7652\uF9CE\uF9CF\u7DAD\u81FE\u8438\u88D5\u8A98\u8ADB\u8AED\u8E30\u8E42\u904A\u903E\u907A\u9149\u91C9\u936E\uF9D0\uF9D1\u5809\uF9D2\u6BD3\u8089\u80B2\uF9D3\uF9D4\u5141\u596B\u5C39\uF9D5\uF9D6\u6F64\u73A7\u80E4\u8D07\uF9D7\u9217\u958F\uF9D8\uF9D9\uF9DA\uF9DB\u807F\u620E\u701C\u7D68\u878D\uF9DC\u57A0\u6069\u6147\u6BB7\u8ABE\u9280\u96B1\u4E59\u541F\u6DEB\u852D\u9670\u97F3\u98EE\u63D6\u6CE3\u9091\u51DD\u61C9\u81BA\u9DF9\u4F9D\u501A\u5100\u5B9C\u610F\u61FF\u64EC\u6905\u6BC5\u7591\u77E3\u7FA9\u8264\u858F\u87FB\u8863\u8ABC"],["eca1","\u8B70\u91AB\u4E8C\u4EE5\u4F0A\uF9DD\uF9DE\u5937\u59E8\uF9DF\u5DF2\u5F1B\u5F5B\u6021\uF9E0\uF9E1\uF9E2\uF9E3\u723E\u73E5\uF9E4\u7570\u75CD\uF9E5\u79FB\uF9E6\u800C\u8033\u8084\u82E1\u8351\uF9E7\uF9E8\u8CBD\u8CB3\u9087\uF9E9\uF9EA\u98F4\u990C\uF9EB\uF9EC\u7037\u76CA\u7FCA\u7FCC\u7FFC\u8B1A\u4EBA\u4EC1\u5203\u5370\uF9ED\u54BD\u56E0\u59FB\u5BC5\u5F15\u5FCD\u6E6E\uF9EE\uF9EF\u7D6A\u8335\uF9F0\u8693\u8A8D\uF9F1\u976D\u9777\uF9F2\uF9F3\u4E00\u4F5A\u4F7E\u58F9\u65E5\u6EA2\u9038\u93B0\u99B9\u4EFB\u58EC\u598A\u59D9\u6041\uF9F4\uF9F5\u7A14\uF9F6\u834F\u8CC3\u5165\u5344"],["eda1","\uF9F7\uF9F8\uF9F9\u4ECD\u5269\u5B55\u82BF\u4ED4\u523A\u54A8\u59C9\u59FF\u5B50\u5B57\u5B5C\u6063\u6148\u6ECB\u7099\u716E\u7386\u74F7\u75B5\u78C1\u7D2B\u8005\u81EA\u8328\u8517\u85C9\u8AEE\u8CC7\u96CC\u4F5C\u52FA\u56BC\u65AB\u6628\u707C\u70B8\u7235\u7DBD\u828D\u914C\u96C0\u9D72\u5B71\u68E7\u6B98\u6F7A\u76DE\u5C91\u66AB\u6F5B\u7BB4\u7C2A\u8836\u96DC\u4E08\u4ED7\u5320\u5834\u58BB\u58EF\u596C\u5C07\u5E33\u5E84\u5F35\u638C\u66B2\u6756\u6A1F\u6AA3\u6B0C\u6F3F\u7246\uF9FA\u7350\u748B\u7AE0\u7CA7\u8178\u81DF\u81E7\u838A\u846C\u8523\u8594\u85CF\u88DD\u8D13\u91AC\u9577"],["eea1","\u969C\u518D\u54C9\u5728\u5BB0\u624D\u6750\u683D\u6893\u6E3D\u6ED3\u707D\u7E21\u88C1\u8CA1\u8F09\u9F4B\u9F4E\u722D\u7B8F\u8ACD\u931A\u4F47\u4F4E\u5132\u5480\u59D0\u5E95\u62B5\u6775\u696E\u6A17\u6CAE\u6E1A\u72D9\u732A\u75BD\u7BB8\u7D35\u82E7\u83F9\u8457\u85F7\u8A5B\u8CAF\u8E87\u9019\u90B8\u96CE\u9F5F\u52E3\u540A\u5AE1\u5BC2\u6458\u6575\u6EF4\u72C4\uF9FB\u7684\u7A4D\u7B1B\u7C4D\u7E3E\u7FDF\u837B\u8B2B\u8CCA\u8D64\u8DE1\u8E5F\u8FEA\u8FF9\u9069\u93D1\u4F43\u4F7A\u50B3\u5168\u5178\u524D\u526A\u5861\u587C\u5960\u5C08\u5C55\u5EDB\u609B\u6230\u6813\u6BBF\u6C08\u6FB1"],["efa1","\u714E\u7420\u7530\u7538\u7551\u7672\u7B4C\u7B8B\u7BAD\u7BC6\u7E8F\u8A6E\u8F3E\u8F49\u923F\u9293\u9322\u942B\u96FB\u985A\u986B\u991E\u5207\u622A\u6298\u6D59\u7664\u7ACA\u7BC0\u7D76\u5360\u5CBE\u5E97\u6F38\u70B9\u7C98\u9711\u9B8E\u9EDE\u63A5\u647A\u8776\u4E01\u4E95\u4EAD\u505C\u5075\u5448\u59C3\u5B9A\u5E40\u5EAD\u5EF7\u5F81\u60C5\u633A\u653F\u6574\u65CC\u6676\u6678\u67FE\u6968\u6A89\u6B63\u6C40\u6DC0\u6DE8\u6E1F\u6E5E\u701E\u70A1\u738E\u73FD\u753A\u775B\u7887\u798E\u7A0B\u7A7D\u7CBE\u7D8E\u8247\u8A02\u8AEA\u8C9E\u912D\u914A\u91D8\u9266\u92CC\u9320\u9706\u9756"],["f0a1","\u975C\u9802\u9F0E\u5236\u5291\u557C\u5824\u5E1D\u5F1F\u608C\u63D0\u68AF\u6FDF\u796D\u7B2C\u81CD\u85BA\u88FD\u8AF8\u8E44\u918D\u9664\u969B\u973D\u984C\u9F4A\u4FCE\u5146\u51CB\u52A9\u5632\u5F14\u5F6B\u63AA\u64CD\u65E9\u6641\u66FA\u66F9\u671D\u689D\u68D7\u69FD\u6F15\u6F6E\u7167\u71E5\u722A\u74AA\u773A\u7956\u795A\u79DF\u7A20\u7A95\u7C97\u7CDF\u7D44\u7E70\u8087\u85FB\u86A4\u8A54\u8ABF\u8D99\u8E81\u9020\u906D\u91E3\u963B\u96D5\u9CE5\u65CF\u7C07\u8DB3\u93C3\u5B58\u5C0A\u5352\u62D9\u731D\u5027\u5B97\u5F9E\u60B0\u616B\u68D5\u6DD9\u742E\u7A2E\u7D42\u7D9C\u7E31\u816B"],["f1a1","\u8E2A\u8E35\u937E\u9418\u4F50\u5750\u5DE6\u5EA7\u632B\u7F6A\u4E3B\u4F4F\u4F8F\u505A\u59DD\u80C4\u546A\u5468\u55FE\u594F\u5B99\u5DDE\u5EDA\u665D\u6731\u67F1\u682A\u6CE8\u6D32\u6E4A\u6F8D\u70B7\u73E0\u7587\u7C4C\u7D02\u7D2C\u7DA2\u821F\u86DB\u8A3B\u8A85\u8D70\u8E8A\u8F33\u9031\u914E\u9152\u9444\u99D0\u7AF9\u7CA5\u4FCA\u5101\u51C6\u57C8\u5BEF\u5CFB\u6659\u6A3D\u6D5A\u6E96\u6FEC\u710C\u756F\u7AE3\u8822\u9021\u9075\u96CB\u99FF\u8301\u4E2D\u4EF2\u8846\u91CD\u537D\u6ADB\u696B\u6C41\u847A\u589E\u618E\u66FE\u62EF\u70DD\u7511\u75C7\u7E52\u84B8\u8B49\u8D08\u4E4B\u53EA"],["f2a1","\u54AB\u5730\u5740\u5FD7\u6301\u6307\u646F\u652F\u65E8\u667A\u679D\u67B3\u6B62\u6C60\u6C9A\u6F2C\u77E5\u7825\u7949\u7957\u7D19\u80A2\u8102\u81F3\u829D\u82B7\u8718\u8A8C\uF9FC\u8D04\u8DBE\u9072\u76F4\u7A19\u7A37\u7E54\u8077\u5507\u55D4\u5875\u632F\u6422\u6649\u664B\u686D\u699B\u6B84\u6D25\u6EB1\u73CD\u7468\u74A1\u755B\u75B9\u76E1\u771E\u778B\u79E6\u7E09\u7E1D\u81FB\u852F\u8897\u8A3A\u8CD1\u8EEB\u8FB0\u9032\u93AD\u9663\u9673\u9707\u4F84\u53F1\u59EA\u5AC9\u5E19\u684E\u74C6\u75BE\u79E9\u7A92\u81A3\u86ED\u8CEA\u8DCC\u8FED\u659F\u6715\uF9FD\u57F7\u6F57\u7DDD\u8F2F"],["f3a1","\u93F6\u96C6\u5FB5\u61F2\u6F84\u4E14\u4F98\u501F\u53C9\u55DF\u5D6F\u5DEE\u6B21\u6B64\u78CB\u7B9A\uF9FE\u8E49\u8ECA\u906E\u6349\u643E\u7740\u7A84\u932F\u947F\u9F6A\u64B0\u6FAF\u71E6\u74A8\u74DA\u7AC4\u7C12\u7E82\u7CB2\u7E98\u8B9A\u8D0A\u947D\u9910\u994C\u5239\u5BDF\u64E6\u672D\u7D2E\u50ED\u53C3\u5879\u6158\u6159\u61FA\u65AC\u7AD9\u8B92\u8B96\u5009\u5021\u5275\u5531\u5A3C\u5EE0\u5F70\u6134\u655E\u660C\u6636\u66A2\u69CD\u6EC4\u6F32\u7316\u7621\u7A93\u8139\u8259\u83D6\u84BC\u50B5\u57F0\u5BC0\u5BE8\u5F69\u63A1\u7826\u7DB5\u83DC\u8521\u91C7\u91F5\u518A\u67F5\u7B56"],["f4a1","\u8CAC\u51C4\u59BB\u60BD\u8655\u501C\uF9FF\u5254\u5C3A\u617D\u621A\u62D3\u64F2\u65A5\u6ECC\u7620\u810A\u8E60\u965F\u96BB\u4EDF\u5343\u5598\u5929\u5DDD\u64C5\u6CC9\u6DFA\u7394\u7A7F\u821B\u85A6\u8CE4\u8E10\u9077\u91E7\u95E1\u9621\u97C6\u51F8\u54F2\u5586\u5FB9\u64A4\u6F88\u7DB4\u8F1F\u8F4D\u9435\u50C9\u5C16\u6CBE\u6DFB\u751B\u77BB\u7C3D\u7C64\u8A79\u8AC2\u581E\u59BE\u5E16\u6377\u7252\u758A\u776B\u8ADC\u8CBC\u8F12\u5EF3\u6674\u6DF8\u807D\u83C1\u8ACB\u9751\u9BD6\uFA00\u5243\u66FF\u6D95\u6EEF\u7DE0\u8AE6\u902E\u905E\u9AD4\u521D\u527F\u54E8\u6194\u6284\u62DB\u68A2"],["f5a1","\u6912\u695A\u6A35\u7092\u7126\u785D\u7901\u790E\u79D2\u7A0D\u8096\u8278\u82D5\u8349\u8549\u8C82\u8D85\u9162\u918B\u91AE\u4FC3\u56D1\u71ED\u77D7\u8700\u89F8\u5BF8\u5FD6\u6751\u90A8\u53E2\u585A\u5BF5\u60A4\u6181\u6460\u7E3D\u8070\u8525\u9283\u64AE\u50AC\u5D14\u6700\u589C\u62BD\u63A8\u690E\u6978\u6A1E\u6E6B\u76BA\u79CB\u82BB\u8429\u8ACF\u8DA8\u8FFD\u9112\u914B\u919C\u9310\u9318\u939A\u96DB\u9A36\u9C0D\u4E11\u755C\u795D\u7AFA\u7B51\u7BC9\u7E2E\u84C4\u8E59\u8E74\u8EF8\u9010\u6625\u693F\u7443\u51FA\u672E\u9EDC\u5145\u5FE0\u6C96\u87F2\u885D\u8877\u60B4\u81B5\u8403"],["f6a1","\u8D05\u53D6\u5439\u5634\u5A36\u5C31\u708A\u7FE0\u805A\u8106\u81ED\u8DA3\u9189\u9A5F\u9DF2\u5074\u4EC4\u53A0\u60FB\u6E2C\u5C64\u4F88\u5024\u55E4\u5CD9\u5E5F\u6065\u6894\u6CBB\u6DC4\u71BE\u75D4\u75F4\u7661\u7A1A\u7A49\u7DC7\u7DFB\u7F6E\u81F4\u86A9\u8F1C\u96C9\u99B3\u9F52\u5247\u52C5\u98ED\u89AA\u4E03\u67D2\u6F06\u4FB5\u5BE2\u6795\u6C88\u6D78\u741B\u7827\u91DD\u937C\u87C4\u79E4\u7A31\u5FEB\u4ED6\u54A4\u553E\u58AE\u59A5\u60F0\u6253\u62D6\u6736\u6955\u8235\u9640\u99B1\u99DD\u502C\u5353\u5544\u577C\uFA01\u6258\uFA02\u64E2\u666B\u67DD\u6FC1\u6FEF\u7422\u7438\u8A17"],["f7a1","\u9438\u5451\u5606\u5766\u5F48\u619A\u6B4E\u7058\u70AD\u7DBB\u8A95\u596A\u812B\u63A2\u7708\u803D\u8CAA\u5854\u642D\u69BB\u5B95\u5E11\u6E6F\uFA03\u8569\u514C\u53F0\u592A\u6020\u614B\u6B86\u6C70\u6CF0\u7B1E\u80CE\u82D4\u8DC6\u90B0\u98B1\uFA04\u64C7\u6FA4\u6491\u6504\u514E\u5410\u571F\u8A0E\u615F\u6876\uFA05\u75DB\u7B52\u7D71\u901A\u5806\u69CC\u817F\u892A\u9000\u9839\u5078\u5957\u59AC\u6295\u900F\u9B2A\u615D\u7279\u95D6\u5761\u5A46\u5DF4\u628A\u64AD\u64FA\u6777\u6CE2\u6D3E\u722C\u7436\u7834\u7F77\u82AD\u8DDB\u9817\u5224\u5742\u677F\u7248\u74E3\u8CA9\u8FA6\u9211"],["f8a1","\u962A\u516B\u53ED\u634C\u4F69\u5504\u6096\u6557\u6C9B\u6D7F\u724C\u72FD\u7A17\u8987\u8C9D\u5F6D\u6F8E\u70F9\u81A8\u610E\u4FBF\u504F\u6241\u7247\u7BC7\u7DE8\u7FE9\u904D\u97AD\u9A19\u8CB6\u576A\u5E73\u67B0\u840D\u8A55\u5420\u5B16\u5E63\u5EE2\u5F0A\u6583\u80BA\u853D\u9589\u965B\u4F48\u5305\u530D\u530F\u5486\u54FA\u5703\u5E03\u6016\u629B\u62B1\u6355\uFA06\u6CE1\u6D66\u75B1\u7832\u80DE\u812F\u82DE\u8461\u84B2\u888D\u8912\u900B\u92EA\u98FD\u9B91\u5E45\u66B4\u66DD\u7011\u7206\uFA07\u4FF5\u527D\u5F6A\u6153\u6753\u6A19\u6F02\u74E2\u7968\u8868\u8C79\u98C7\u98C4\u9A43"],["f9a1","\u54C1\u7A1F\u6953\u8AF7\u8C4A\u98A8\u99AE\u5F7C\u62AB\u75B2\u76AE\u88AB\u907F\u9642\u5339\u5F3C\u5FC5\u6CCC\u73CC\u7562\u758B\u7B46\u82FE\u999D\u4E4F\u903C\u4E0B\u4F55\u53A6\u590F\u5EC8\u6630\u6CB3\u7455\u8377\u8766\u8CC0\u9050\u971E\u9C15\u58D1\u5B78\u8650\u8B14\u9DB4\u5BD2\u6068\u608D\u65F1\u6C57\u6F22\u6FA3\u701A\u7F55\u7FF0\u9591\u9592\u9650\u97D3\u5272\u8F44\u51FD\u542B\u54B8\u5563\u558A\u6ABB\u6DB5\u7DD8\u8266\u929C\u9677\u9E79\u5408\u54C8\u76D2\u86E4\u95A4\u95D4\u965C\u4EA2\u4F09\u59EE\u5AE6\u5DF7\u6052\u6297\u676D\u6841\u6C86\u6E2F\u7F38\u809B\u822A"],["faa1","\uFA08\uFA09\u9805\u4EA5\u5055\u54B3\u5793\u595A\u5B69\u5BB3\u61C8\u6977\u6D77\u7023\u87F9\u89E3\u8A72\u8AE7\u9082\u99ED\u9AB8\u52BE\u6838\u5016\u5E78\u674F\u8347\u884C\u4EAB\u5411\u56AE\u73E6\u9115\u97FF\u9909\u9957\u9999\u5653\u589F\u865B\u8A31\u61B2\u6AF6\u737B\u8ED2\u6B47\u96AA\u9A57\u5955\u7200\u8D6B\u9769\u4FD4\u5CF4\u5F26\u61F8\u665B\u6CEB\u70AB\u7384\u73B9\u73FE\u7729\u774D\u7D43\u7D62\u7E23\u8237\u8852\uFA0A\u8CE2\u9249\u986F\u5B51\u7A74\u8840\u9801\u5ACC\u4FE0\u5354\u593E\u5CFD\u633E\u6D79\u72F9\u8105\u8107\u83A2\u92CF\u9830\u4EA8\u5144\u5211\u578B"],["fba1","\u5F62\u6CC2\u6ECE\u7005\u7050\u70AF\u7192\u73E9\u7469\u834A\u87A2\u8861\u9008\u90A2\u93A3\u99A8\u516E\u5F57\u60E0\u6167\u66B3\u8559\u8E4A\u91AF\u978B\u4E4E\u4E92\u547C\u58D5\u58FA\u597D\u5CB5\u5F27\u6236\u6248\u660A\u6667\u6BEB\u6D69\u6DCF\u6E56\u6EF8\u6F94\u6FE0\u6FE9\u705D\u72D0\u7425\u745A\u74E0\u7693\u795C\u7CCA\u7E1E\u80E1\u82A6\u846B\u84BF\u864E\u865F\u8774\u8B77\u8C6A\u93AC\u9800\u9865\u60D1\u6216\u9177\u5A5A\u660F\u6DF7\u6E3E\u743F\u9B42\u5FFD\u60DA\u7B0F\u54C4\u5F18\u6C5E\u6CD3\u6D2A\u70D8\u7D05\u8679\u8A0C\u9D3B\u5316\u548C\u5B05\u6A3A\u706B\u7575"],["fca1","\u798D\u79BE\u82B1\u83EF\u8A71\u8B41\u8CA8\u9774\uFA0B\u64F4\u652B\u78BA\u78BB\u7A6B\u4E38\u559A\u5950\u5BA6\u5E7B\u60A3\u63DB\u6B61\u6665\u6853\u6E19\u7165\u74B0\u7D08\u9084\u9A69\u9C25\u6D3B\u6ED1\u733E\u8C41\u95CA\u51F0\u5E4C\u5FA8\u604D\u60F6\u6130\u614C\u6643\u6644\u69A5\u6CC1\u6E5F\u6EC9\u6F62\u714C\u749C\u7687\u7BC1\u7C27\u8352\u8757\u9051\u968D\u9EC3\u532F\u56DE\u5EFB\u5F8A\u6062\u6094\u61F7\u6666\u6703\u6A9C\u6DEE\u6FAE\u7070\u736A\u7E6A\u81BE\u8334\u86D4\u8AA8\u8CC4\u5283\u7372\u5B96\u6A6B\u9404\u54EE\u5686\u5B5D\u6548\u6585\u66C9\u689F\u6D8D\u6DC6"],["fda1","\u723B\u80B4\u9175\u9A4D\u4FAF\u5019\u539A\u540E\u543C\u5589\u55C5\u5E3F\u5F8C\u673D\u7166\u73DD\u9005\u52DB\u52F3\u5864\u58CE\u7104\u718F\u71FB\u85B0\u8A13\u6688\u85A8\u55A7\u6684\u714A\u8431\u5349\u5599\u6BC1\u5F59\u5FBD\u63EE\u6689\u7147\u8AF1\u8F1D\u9EBE\u4F11\u643A\u70CB\u7566\u8667\u6064\u8B4E\u9DF8\u5147\u51F6\u5308\u6D36\u80F8\u9ED1\u6615\u6B23\u7098\u75D5\u5403\u5C79\u7D07\u8A16\u6B20\u6B3D\u6B46\u5438\u6070\u6D3D\u7FD5\u8208\u50D6\u51DE\u559C\u566B\u56CD\u59EC\u5B09\u5E0C\u6199\u6198\u6231\u665E\u66E6\u7199\u71B9\u71BA\u72A7\u79A7\u7A00\u7FB2\u8A70"]]});var jq=S((vrr,mSt)=>{mSt.exports=[["0","\0",127],["a140","\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],["a1a1","\uFE5B\uFE5C\uFE5D\uFE5E\u2018\u2019\u201C\u201D\u301D\u301E\u2035\u2032\uFF03\uFF06\uFF0A\u203B\xA7\u3003\u25CB\u25CF\u25B3\u25B2\u25CE\u2606\u2605\u25C7\u25C6\u25A1\u25A0\u25BD\u25BC\u32A3\u2105\xAF\uFFE3\uFF3F\u02CD\uFE49\uFE4A\uFE4D\uFE4E\uFE4B\uFE4C\uFE5F\uFE60\uFE61\uFF0B\uFF0D\xD7\xF7\xB1\u221A\uFF1C\uFF1E\uFF1D\u2266\u2267\u2260\u221E\u2252\u2261\uFE62",4,"\uFF5E\u2229\u222A\u22A5\u2220\u221F\u22BF\u33D2\u33D1\u222B\u222E\u2235\u2234\u2640\u2642\u2295\u2299\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u2225\u2223\uFF0F"],["a240","\uFF3C\u2215\uFE68\uFF04\uFFE5\u3012\uFFE0\uFFE1\uFF05\uFF20\u2103\u2109\uFE69\uFE6A\uFE6B\u33D5\u339C\u339D\u339E\u33CE\u33A1\u338E\u338F\u33C4\xB0\u5159\u515B\u515E\u515D\u5161\u5163\u55E7\u74E9\u7CCE\u2581",7,"\u258F\u258E\u258D\u258C\u258B\u258A\u2589\u253C\u2534\u252C\u2524\u251C\u2594\u2500\u2502\u2595\u250C\u2510\u2514\u2518\u256D"],["a2a1","\u256E\u2570\u256F\u2550\u255E\u256A\u2561\u25E2\u25E3\u25E5\u25E4\u2571\u2572\u2573\uFF10",9,"\u2160",9,"\u3021",8,"\u5341\u5344\u5345\uFF21",25,"\uFF41",21],["a340","\uFF57\uFF58\uFF59\uFF5A\u0391",16,"\u03A3",6,"\u03B1",16,"\u03C3",6,"\u3105",10],["a3a1","\u3110",25,"\u02D9\u02C9\u02CA\u02C7\u02CB"],["a3e1","\u20AC"],["a440","\u4E00\u4E59\u4E01\u4E03\u4E43\u4E5D\u4E86\u4E8C\u4EBA\u513F\u5165\u516B\u51E0\u5200\u5201\u529B\u5315\u5341\u535C\u53C8\u4E09\u4E0B\u4E08\u4E0A\u4E2B\u4E38\u51E1\u4E45\u4E48\u4E5F\u4E5E\u4E8E\u4EA1\u5140\u5203\u52FA\u5343\u53C9\u53E3\u571F\u58EB\u5915\u5927\u5973\u5B50\u5B51\u5B53\u5BF8\u5C0F\u5C22\u5C38\u5C71\u5DDD\u5DE5\u5DF1\u5DF2\u5DF3\u5DFE\u5E72\u5EFE\u5F0B\u5F13\u624D"],["a4a1","\u4E11\u4E10\u4E0D\u4E2D\u4E30\u4E39\u4E4B\u5C39\u4E88\u4E91\u4E95\u4E92\u4E94\u4EA2\u4EC1\u4EC0\u4EC3\u4EC6\u4EC7\u4ECD\u4ECA\u4ECB\u4EC4\u5143\u5141\u5167\u516D\u516E\u516C\u5197\u51F6\u5206\u5207\u5208\u52FB\u52FE\u52FF\u5316\u5339\u5348\u5347\u5345\u535E\u5384\u53CB\u53CA\u53CD\u58EC\u5929\u592B\u592A\u592D\u5B54\u5C11\u5C24\u5C3A\u5C6F\u5DF4\u5E7B\u5EFF\u5F14\u5F15\u5FC3\u6208\u6236\u624B\u624E\u652F\u6587\u6597\u65A4\u65B9\u65E5\u66F0\u6708\u6728\u6B20\u6B62\u6B79\u6BCB\u6BD4\u6BDB\u6C0F\u6C34\u706B\u722A\u7236\u723B\u7247\u7259\u725B\u72AC\u738B\u4E19"],["a540","\u4E16\u4E15\u4E14\u4E18\u4E3B\u4E4D\u4E4F\u4E4E\u4EE5\u4ED8\u4ED4\u4ED5\u4ED6\u4ED7\u4EE3\u4EE4\u4ED9\u4EDE\u5145\u5144\u5189\u518A\u51AC\u51F9\u51FA\u51F8\u520A\u52A0\u529F\u5305\u5306\u5317\u531D\u4EDF\u534A\u5349\u5361\u5360\u536F\u536E\u53BB\u53EF\u53E4\u53F3\u53EC\u53EE\u53E9\u53E8\u53FC\u53F8\u53F5\u53EB\u53E6\u53EA\u53F2\u53F1\u53F0\u53E5\u53ED\u53FB\u56DB\u56DA\u5916"],["a5a1","\u592E\u5931\u5974\u5976\u5B55\u5B83\u5C3C\u5DE8\u5DE7\u5DE6\u5E02\u5E03\u5E73\u5E7C\u5F01\u5F18\u5F17\u5FC5\u620A\u6253\u6254\u6252\u6251\u65A5\u65E6\u672E\u672C\u672A\u672B\u672D\u6B63\u6BCD\u6C11\u6C10\u6C38\u6C41\u6C40\u6C3E\u72AF\u7384\u7389\u74DC\u74E6\u7518\u751F\u7528\u7529\u7530\u7531\u7532\u7533\u758B\u767D\u76AE\u76BF\u76EE\u77DB\u77E2\u77F3\u793A\u79BE\u7A74\u7ACB\u4E1E\u4E1F\u4E52\u4E53\u4E69\u4E99\u4EA4\u4EA6\u4EA5\u4EFF\u4F09\u4F19\u4F0A\u4F15\u4F0D\u4F10\u4F11\u4F0F\u4EF2\u4EF6\u4EFB\u4EF0\u4EF3\u4EFD\u4F01\u4F0B\u5149\u5147\u5146\u5148\u5168"],["a640","\u5171\u518D\u51B0\u5217\u5211\u5212\u520E\u5216\u52A3\u5308\u5321\u5320\u5370\u5371\u5409\u540F\u540C\u540A\u5410\u5401\u540B\u5404\u5411\u540D\u5408\u5403\u540E\u5406\u5412\u56E0\u56DE\u56DD\u5733\u5730\u5728\u572D\u572C\u572F\u5729\u5919\u591A\u5937\u5938\u5984\u5978\u5983\u597D\u5979\u5982\u5981\u5B57\u5B58\u5B87\u5B88\u5B85\u5B89\u5BFA\u5C16\u5C79\u5DDE\u5E06\u5E76\u5E74"],["a6a1","\u5F0F\u5F1B\u5FD9\u5FD6\u620E\u620C\u620D\u6210\u6263\u625B\u6258\u6536\u65E9\u65E8\u65EC\u65ED\u66F2\u66F3\u6709\u673D\u6734\u6731\u6735\u6B21\u6B64\u6B7B\u6C16\u6C5D\u6C57\u6C59\u6C5F\u6C60\u6C50\u6C55\u6C61\u6C5B\u6C4D\u6C4E\u7070\u725F\u725D\u767E\u7AF9\u7C73\u7CF8\u7F36\u7F8A\u7FBD\u8001\u8003\u800C\u8012\u8033\u807F\u8089\u808B\u808C\u81E3\u81EA\u81F3\u81FC\u820C\u821B\u821F\u826E\u8272\u827E\u866B\u8840\u884C\u8863\u897F\u9621\u4E32\u4EA8\u4F4D\u4F4F\u4F47\u4F57\u4F5E\u4F34\u4F5B\u4F55\u4F30\u4F50\u4F51\u4F3D\u4F3A\u4F38\u4F43\u4F54\u4F3C\u4F46\u4F63"],["a740","\u4F5C\u4F60\u4F2F\u4F4E\u4F36\u4F59\u4F5D\u4F48\u4F5A\u514C\u514B\u514D\u5175\u51B6\u51B7\u5225\u5224\u5229\u522A\u5228\u52AB\u52A9\u52AA\u52AC\u5323\u5373\u5375\u541D\u542D\u541E\u543E\u5426\u544E\u5427\u5446\u5443\u5433\u5448\u5442\u541B\u5429\u544A\u5439\u543B\u5438\u542E\u5435\u5436\u5420\u543C\u5440\u5431\u542B\u541F\u542C\u56EA\u56F0\u56E4\u56EB\u574A\u5751\u5740\u574D"],["a7a1","\u5747\u574E\u573E\u5750\u574F\u573B\u58EF\u593E\u599D\u5992\u59A8\u599E\u59A3\u5999\u5996\u598D\u59A4\u5993\u598A\u59A5\u5B5D\u5B5C\u5B5A\u5B5B\u5B8C\u5B8B\u5B8F\u5C2C\u5C40\u5C41\u5C3F\u5C3E\u5C90\u5C91\u5C94\u5C8C\u5DEB\u5E0C\u5E8F\u5E87\u5E8A\u5EF7\u5F04\u5F1F\u5F64\u5F62\u5F77\u5F79\u5FD8\u5FCC\u5FD7\u5FCD\u5FF1\u5FEB\u5FF8\u5FEA\u6212\u6211\u6284\u6297\u6296\u6280\u6276\u6289\u626D\u628A\u627C\u627E\u6279\u6273\u6292\u626F\u6298\u626E\u6295\u6293\u6291\u6286\u6539\u653B\u6538\u65F1\u66F4\u675F\u674E\u674F\u6750\u6751\u675C\u6756\u675E\u6749\u6746\u6760"],["a840","\u6753\u6757\u6B65\u6BCF\u6C42\u6C5E\u6C99\u6C81\u6C88\u6C89\u6C85\u6C9B\u6C6A\u6C7A\u6C90\u6C70\u6C8C\u6C68\u6C96\u6C92\u6C7D\u6C83\u6C72\u6C7E\u6C74\u6C86\u6C76\u6C8D\u6C94\u6C98\u6C82\u7076\u707C\u707D\u7078\u7262\u7261\u7260\u72C4\u72C2\u7396\u752C\u752B\u7537\u7538\u7682\u76EF\u77E3\u79C1\u79C0\u79BF\u7A76\u7CFB\u7F55\u8096\u8093\u809D\u8098\u809B\u809A\u80B2\u826F\u8292"],["a8a1","\u828B\u828D\u898B\u89D2\u8A00\u8C37\u8C46\u8C55\u8C9D\u8D64\u8D70\u8DB3\u8EAB\u8ECA\u8F9B\u8FB0\u8FC2\u8FC6\u8FC5\u8FC4\u5DE1\u9091\u90A2\u90AA\u90A6\u90A3\u9149\u91C6\u91CC\u9632\u962E\u9631\u962A\u962C\u4E26\u4E56\u4E73\u4E8B\u4E9B\u4E9E\u4EAB\u4EAC\u4F6F\u4F9D\u4F8D\u4F73\u4F7F\u4F6C\u4F9B\u4F8B\u4F86\u4F83\u4F70\u4F75\u4F88\u4F69\u4F7B\u4F96\u4F7E\u4F8F\u4F91\u4F7A\u5154\u5152\u5155\u5169\u5177\u5176\u5178\u51BD\u51FD\u523B\u5238\u5237\u523A\u5230\u522E\u5236\u5241\u52BE\u52BB\u5352\u5354\u5353\u5351\u5366\u5377\u5378\u5379\u53D6\u53D4\u53D7\u5473\u5475"],["a940","\u5496\u5478\u5495\u5480\u547B\u5477\u5484\u5492\u5486\u547C\u5490\u5471\u5476\u548C\u549A\u5462\u5468\u548B\u547D\u548E\u56FA\u5783\u5777\u576A\u5769\u5761\u5766\u5764\u577C\u591C\u5949\u5947\u5948\u5944\u5954\u59BE\u59BB\u59D4\u59B9\u59AE\u59D1\u59C6\u59D0\u59CD\u59CB\u59D3\u59CA\u59AF\u59B3\u59D2\u59C5\u5B5F\u5B64\u5B63\u5B97\u5B9A\u5B98\u5B9C\u5B99\u5B9B\u5C1A\u5C48\u5C45"],["a9a1","\u5C46\u5CB7\u5CA1\u5CB8\u5CA9\u5CAB\u5CB1\u5CB3\u5E18\u5E1A\u5E16\u5E15\u5E1B\u5E11\u5E78\u5E9A\u5E97\u5E9C\u5E95\u5E96\u5EF6\u5F26\u5F27\u5F29\u5F80\u5F81\u5F7F\u5F7C\u5FDD\u5FE0\u5FFD\u5FF5\u5FFF\u600F\u6014\u602F\u6035\u6016\u602A\u6015\u6021\u6027\u6029\u602B\u601B\u6216\u6215\u623F\u623E\u6240\u627F\u62C9\u62CC\u62C4\u62BF\u62C2\u62B9\u62D2\u62DB\u62AB\u62D3\u62D4\u62CB\u62C8\u62A8\u62BD\u62BC\u62D0\u62D9\u62C7\u62CD\u62B5\u62DA\u62B1\u62D8\u62D6\u62D7\u62C6\u62AC\u62CE\u653E\u65A7\u65BC\u65FA\u6614\u6613\u660C\u6606\u6602\u660E\u6600\u660F\u6615\u660A"],["aa40","\u6607\u670D\u670B\u676D\u678B\u6795\u6771\u679C\u6773\u6777\u6787\u679D\u6797\u676F\u6770\u677F\u6789\u677E\u6790\u6775\u679A\u6793\u677C\u676A\u6772\u6B23\u6B66\u6B67\u6B7F\u6C13\u6C1B\u6CE3\u6CE8\u6CF3\u6CB1\u6CCC\u6CE5\u6CB3\u6CBD\u6CBE\u6CBC\u6CE2\u6CAB\u6CD5\u6CD3\u6CB8\u6CC4\u6CB9\u6CC1\u6CAE\u6CD7\u6CC5\u6CF1\u6CBF\u6CBB\u6CE1\u6CDB\u6CCA\u6CAC\u6CEF\u6CDC\u6CD6\u6CE0"],["aaa1","\u7095\u708E\u7092\u708A\u7099\u722C\u722D\u7238\u7248\u7267\u7269\u72C0\u72CE\u72D9\u72D7\u72D0\u73A9\u73A8\u739F\u73AB\u73A5\u753D\u759D\u7599\u759A\u7684\u76C2\u76F2\u76F4\u77E5\u77FD\u793E\u7940\u7941\u79C9\u79C8\u7A7A\u7A79\u7AFA\u7CFE\u7F54\u7F8C\u7F8B\u8005\u80BA\u80A5\u80A2\u80B1\u80A1\u80AB\u80A9\u80B4\u80AA\u80AF\u81E5\u81FE\u820D\u82B3\u829D\u8299\u82AD\u82BD\u829F\u82B9\u82B1\u82AC\u82A5\u82AF\u82B8\u82A3\u82B0\u82BE\u82B7\u864E\u8671\u521D\u8868\u8ECB\u8FCE\u8FD4\u8FD1\u90B5\u90B8\u90B1\u90B6\u91C7\u91D1\u9577\u9580\u961C\u9640\u963F\u963B\u9644"],["ab40","\u9642\u96B9\u96E8\u9752\u975E\u4E9F\u4EAD\u4EAE\u4FE1\u4FB5\u4FAF\u4FBF\u4FE0\u4FD1\u4FCF\u4FDD\u4FC3\u4FB6\u4FD8\u4FDF\u4FCA\u4FD7\u4FAE\u4FD0\u4FC4\u4FC2\u4FDA\u4FCE\u4FDE\u4FB7\u5157\u5192\u5191\u51A0\u524E\u5243\u524A\u524D\u524C\u524B\u5247\u52C7\u52C9\u52C3\u52C1\u530D\u5357\u537B\u539A\u53DB\u54AC\u54C0\u54A8\u54CE\u54C9\u54B8\u54A6\u54B3\u54C7\u54C2\u54BD\u54AA\u54C1"],["aba1","\u54C4\u54C8\u54AF\u54AB\u54B1\u54BB\u54A9\u54A7\u54BF\u56FF\u5782\u578B\u57A0\u57A3\u57A2\u57CE\u57AE\u5793\u5955\u5951\u594F\u594E\u5950\u59DC\u59D8\u59FF\u59E3\u59E8\u5A03\u59E5\u59EA\u59DA\u59E6\u5A01\u59FB\u5B69\u5BA3\u5BA6\u5BA4\u5BA2\u5BA5\u5C01\u5C4E\u5C4F\u5C4D\u5C4B\u5CD9\u5CD2\u5DF7\u5E1D\u5E25\u5E1F\u5E7D\u5EA0\u5EA6\u5EFA\u5F08\u5F2D\u5F65\u5F88\u5F85\u5F8A\u5F8B\u5F87\u5F8C\u5F89\u6012\u601D\u6020\u6025\u600E\u6028\u604D\u6070\u6068\u6062\u6046\u6043\u606C\u606B\u606A\u6064\u6241\u62DC\u6316\u6309\u62FC\u62ED\u6301\u62EE\u62FD\u6307\u62F1\u62F7"],["ac40","\u62EF\u62EC\u62FE\u62F4\u6311\u6302\u653F\u6545\u65AB\u65BD\u65E2\u6625\u662D\u6620\u6627\u662F\u661F\u6628\u6631\u6624\u66F7\u67FF\u67D3\u67F1\u67D4\u67D0\u67EC\u67B6\u67AF\u67F5\u67E9\u67EF\u67C4\u67D1\u67B4\u67DA\u67E5\u67B8\u67CF\u67DE\u67F3\u67B0\u67D9\u67E2\u67DD\u67D2\u6B6A\u6B83\u6B86\u6BB5\u6BD2\u6BD7\u6C1F\u6CC9\u6D0B\u6D32\u6D2A\u6D41\u6D25\u6D0C\u6D31\u6D1E\u6D17"],["aca1","\u6D3B\u6D3D\u6D3E\u6D36\u6D1B\u6CF5\u6D39\u6D27\u6D38\u6D29\u6D2E\u6D35\u6D0E\u6D2B\u70AB\u70BA\u70B3\u70AC\u70AF\u70AD\u70B8\u70AE\u70A4\u7230\u7272\u726F\u7274\u72E9\u72E0\u72E1\u73B7\u73CA\u73BB\u73B2\u73CD\u73C0\u73B3\u751A\u752D\u754F\u754C\u754E\u754B\u75AB\u75A4\u75A5\u75A2\u75A3\u7678\u7686\u7687\u7688\u76C8\u76C6\u76C3\u76C5\u7701\u76F9\u76F8\u7709\u770B\u76FE\u76FC\u7707\u77DC\u7802\u7814\u780C\u780D\u7946\u7949\u7948\u7947\u79B9\u79BA\u79D1\u79D2\u79CB\u7A7F\u7A81\u7AFF\u7AFD\u7C7D\u7D02\u7D05\u7D00\u7D09\u7D07\u7D04\u7D06\u7F38\u7F8E\u7FBF\u8004"],["ad40","\u8010\u800D\u8011\u8036\u80D6\u80E5\u80DA\u80C3\u80C4\u80CC\u80E1\u80DB\u80CE\u80DE\u80E4\u80DD\u81F4\u8222\u82E7\u8303\u8305\u82E3\u82DB\u82E6\u8304\u82E5\u8302\u8309\u82D2\u82D7\u82F1\u8301\u82DC\u82D4\u82D1\u82DE\u82D3\u82DF\u82EF\u8306\u8650\u8679\u867B\u867A\u884D\u886B\u8981\u89D4\u8A08\u8A02\u8A03\u8C9E\u8CA0\u8D74\u8D73\u8DB4\u8ECD\u8ECC\u8FF0\u8FE6\u8FE2\u8FEA\u8FE5"],["ada1","\u8FED\u8FEB\u8FE4\u8FE8\u90CA\u90CE\u90C1\u90C3\u914B\u914A\u91CD\u9582\u9650\u964B\u964C\u964D\u9762\u9769\u97CB\u97ED\u97F3\u9801\u98A8\u98DB\u98DF\u9996\u9999\u4E58\u4EB3\u500C\u500D\u5023\u4FEF\u5026\u5025\u4FF8\u5029\u5016\u5006\u503C\u501F\u501A\u5012\u5011\u4FFA\u5000\u5014\u5028\u4FF1\u5021\u500B\u5019\u5018\u4FF3\u4FEE\u502D\u502A\u4FFE\u502B\u5009\u517C\u51A4\u51A5\u51A2\u51CD\u51CC\u51C6\u51CB\u5256\u525C\u5254\u525B\u525D\u532A\u537F\u539F\u539D\u53DF\u54E8\u5510\u5501\u5537\u54FC\u54E5\u54F2\u5506\u54FA\u5514\u54E9\u54ED\u54E1\u5509\u54EE\u54EA"],["ae40","\u54E6\u5527\u5507\u54FD\u550F\u5703\u5704\u57C2\u57D4\u57CB\u57C3\u5809\u590F\u5957\u5958\u595A\u5A11\u5A18\u5A1C\u5A1F\u5A1B\u5A13\u59EC\u5A20\u5A23\u5A29\u5A25\u5A0C\u5A09\u5B6B\u5C58\u5BB0\u5BB3\u5BB6\u5BB4\u5BAE\u5BB5\u5BB9\u5BB8\u5C04\u5C51\u5C55\u5C50\u5CED\u5CFD\u5CFB\u5CEA\u5CE8\u5CF0\u5CF6\u5D01\u5CF4\u5DEE\u5E2D\u5E2B\u5EAB\u5EAD\u5EA7\u5F31\u5F92\u5F91\u5F90\u6059"],["aea1","\u6063\u6065\u6050\u6055\u606D\u6069\u606F\u6084\u609F\u609A\u608D\u6094\u608C\u6085\u6096\u6247\u62F3\u6308\u62FF\u634E\u633E\u632F\u6355\u6342\u6346\u634F\u6349\u633A\u6350\u633D\u632A\u632B\u6328\u634D\u634C\u6548\u6549\u6599\u65C1\u65C5\u6642\u6649\u664F\u6643\u6652\u664C\u6645\u6641\u66F8\u6714\u6715\u6717\u6821\u6838\u6848\u6846\u6853\u6839\u6842\u6854\u6829\u68B3\u6817\u684C\u6851\u683D\u67F4\u6850\u6840\u683C\u6843\u682A\u6845\u6813\u6818\u6841\u6B8A\u6B89\u6BB7\u6C23\u6C27\u6C28\u6C26\u6C24\u6CF0\u6D6A\u6D95\u6D88\u6D87\u6D66\u6D78\u6D77\u6D59\u6D93"],["af40","\u6D6C\u6D89\u6D6E\u6D5A\u6D74\u6D69\u6D8C\u6D8A\u6D79\u6D85\u6D65\u6D94\u70CA\u70D8\u70E4\u70D9\u70C8\u70CF\u7239\u7279\u72FC\u72F9\u72FD\u72F8\u72F7\u7386\u73ED\u7409\u73EE\u73E0\u73EA\u73DE\u7554\u755D\u755C\u755A\u7559\u75BE\u75C5\u75C7\u75B2\u75B3\u75BD\u75BC\u75B9\u75C2\u75B8\u768B\u76B0\u76CA\u76CD\u76CE\u7729\u771F\u7720\u7728\u77E9\u7830\u7827\u7838\u781D\u7834\u7837"],["afa1","\u7825\u782D\u7820\u781F\u7832\u7955\u7950\u7960\u795F\u7956\u795E\u795D\u7957\u795A\u79E4\u79E3\u79E7\u79DF\u79E6\u79E9\u79D8\u7A84\u7A88\u7AD9\u7B06\u7B11\u7C89\u7D21\u7D17\u7D0B\u7D0A\u7D20\u7D22\u7D14\u7D10\u7D15\u7D1A\u7D1C\u7D0D\u7D19\u7D1B\u7F3A\u7F5F\u7F94\u7FC5\u7FC1\u8006\u8018\u8015\u8019\u8017\u803D\u803F\u80F1\u8102\u80F0\u8105\u80ED\u80F4\u8106\u80F8\u80F3\u8108\u80FD\u810A\u80FC\u80EF\u81ED\u81EC\u8200\u8210\u822A\u822B\u8228\u822C\u82BB\u832B\u8352\u8354\u834A\u8338\u8350\u8349\u8335\u8334\u834F\u8332\u8339\u8336\u8317\u8340\u8331\u8328\u8343"],["b040","\u8654\u868A\u86AA\u8693\u86A4\u86A9\u868C\u86A3\u869C\u8870\u8877\u8881\u8882\u887D\u8879\u8A18\u8A10\u8A0E\u8A0C\u8A15\u8A0A\u8A17\u8A13\u8A16\u8A0F\u8A11\u8C48\u8C7A\u8C79\u8CA1\u8CA2\u8D77\u8EAC\u8ED2\u8ED4\u8ECF\u8FB1\u9001\u9006\u8FF7\u9000\u8FFA\u8FF4\u9003\u8FFD\u9005\u8FF8\u9095\u90E1\u90DD\u90E2\u9152\u914D\u914C\u91D8\u91DD\u91D7\u91DC\u91D9\u9583\u9662\u9663\u9661"],["b0a1","\u965B\u965D\u9664\u9658\u965E\u96BB\u98E2\u99AC\u9AA8\u9AD8\u9B25\u9B32\u9B3C\u4E7E\u507A\u507D\u505C\u5047\u5043\u504C\u505A\u5049\u5065\u5076\u504E\u5055\u5075\u5074\u5077\u504F\u500F\u506F\u506D\u515C\u5195\u51F0\u526A\u526F\u52D2\u52D9\u52D8\u52D5\u5310\u530F\u5319\u533F\u5340\u533E\u53C3\u66FC\u5546\u556A\u5566\u5544\u555E\u5561\u5543\u554A\u5531\u5556\u554F\u5555\u552F\u5564\u5538\u552E\u555C\u552C\u5563\u5533\u5541\u5557\u5708\u570B\u5709\u57DF\u5805\u580A\u5806\u57E0\u57E4\u57FA\u5802\u5835\u57F7\u57F9\u5920\u5962\u5A36\u5A41\u5A49\u5A66\u5A6A\u5A40"],["b140","\u5A3C\u5A62\u5A5A\u5A46\u5A4A\u5B70\u5BC7\u5BC5\u5BC4\u5BC2\u5BBF\u5BC6\u5C09\u5C08\u5C07\u5C60\u5C5C\u5C5D\u5D07\u5D06\u5D0E\u5D1B\u5D16\u5D22\u5D11\u5D29\u5D14\u5D19\u5D24\u5D27\u5D17\u5DE2\u5E38\u5E36\u5E33\u5E37\u5EB7\u5EB8\u5EB6\u5EB5\u5EBE\u5F35\u5F37\u5F57\u5F6C\u5F69\u5F6B\u5F97\u5F99\u5F9E\u5F98\u5FA1\u5FA0\u5F9C\u607F\u60A3\u6089\u60A0\u60A8\u60CB\u60B4\u60E6\u60BD"],["b1a1","\u60C5\u60BB\u60B5\u60DC\u60BC\u60D8\u60D5\u60C6\u60DF\u60B8\u60DA\u60C7\u621A\u621B\u6248\u63A0\u63A7\u6372\u6396\u63A2\u63A5\u6377\u6367\u6398\u63AA\u6371\u63A9\u6389\u6383\u639B\u636B\u63A8\u6384\u6388\u6399\u63A1\u63AC\u6392\u638F\u6380\u637B\u6369\u6368\u637A\u655D\u6556\u6551\u6559\u6557\u555F\u654F\u6558\u6555\u6554\u659C\u659B\u65AC\u65CF\u65CB\u65CC\u65CE\u665D\u665A\u6664\u6668\u6666\u665E\u66F9\u52D7\u671B\u6881\u68AF\u68A2\u6893\u68B5\u687F\u6876\u68B1\u68A7\u6897\u68B0\u6883\u68C4\u68AD\u6886\u6885\u6894\u689D\u68A8\u689F\u68A1\u6882\u6B32\u6BBA"],["b240","\u6BEB\u6BEC\u6C2B\u6D8E\u6DBC\u6DF3\u6DD9\u6DB2\u6DE1\u6DCC\u6DE4\u6DFB\u6DFA\u6E05\u6DC7\u6DCB\u6DAF\u6DD1\u6DAE\u6DDE\u6DF9\u6DB8\u6DF7\u6DF5\u6DC5\u6DD2\u6E1A\u6DB5\u6DDA\u6DEB\u6DD8\u6DEA\u6DF1\u6DEE\u6DE8\u6DC6\u6DC4\u6DAA\u6DEC\u6DBF\u6DE6\u70F9\u7109\u710A\u70FD\u70EF\u723D\u727D\u7281\u731C\u731B\u7316\u7313\u7319\u7387\u7405\u740A\u7403\u7406\u73FE\u740D\u74E0\u74F6"],["b2a1","\u74F7\u751C\u7522\u7565\u7566\u7562\u7570\u758F\u75D4\u75D5\u75B5\u75CA\u75CD\u768E\u76D4\u76D2\u76DB\u7737\u773E\u773C\u7736\u7738\u773A\u786B\u7843\u784E\u7965\u7968\u796D\u79FB\u7A92\u7A95\u7B20\u7B28\u7B1B\u7B2C\u7B26\u7B19\u7B1E\u7B2E\u7C92\u7C97\u7C95\u7D46\u7D43\u7D71\u7D2E\u7D39\u7D3C\u7D40\u7D30\u7D33\u7D44\u7D2F\u7D42\u7D32\u7D31\u7F3D\u7F9E\u7F9A\u7FCC\u7FCE\u7FD2\u801C\u804A\u8046\u812F\u8116\u8123\u812B\u8129\u8130\u8124\u8202\u8235\u8237\u8236\u8239\u838E\u839E\u8398\u8378\u83A2\u8396\u83BD\u83AB\u8392\u838A\u8393\u8389\u83A0\u8377\u837B\u837C"],["b340","\u8386\u83A7\u8655\u5F6A\u86C7\u86C0\u86B6\u86C4\u86B5\u86C6\u86CB\u86B1\u86AF\u86C9\u8853\u889E\u8888\u88AB\u8892\u8896\u888D\u888B\u8993\u898F\u8A2A\u8A1D\u8A23\u8A25\u8A31\u8A2D\u8A1F\u8A1B\u8A22\u8C49\u8C5A\u8CA9\u8CAC\u8CAB\u8CA8\u8CAA\u8CA7\u8D67\u8D66\u8DBE\u8DBA\u8EDB\u8EDF\u9019\u900D\u901A\u9017\u9023\u901F\u901D\u9010\u9015\u901E\u9020\u900F\u9022\u9016\u901B\u9014"],["b3a1","\u90E8\u90ED\u90FD\u9157\u91CE\u91F5\u91E6\u91E3\u91E7\u91ED\u91E9\u9589\u966A\u9675\u9673\u9678\u9670\u9674\u9676\u9677\u966C\u96C0\u96EA\u96E9\u7AE0\u7ADF\u9802\u9803\u9B5A\u9CE5\u9E75\u9E7F\u9EA5\u9EBB\u50A2\u508D\u5085\u5099\u5091\u5080\u5096\u5098\u509A\u6700\u51F1\u5272\u5274\u5275\u5269\u52DE\u52DD\u52DB\u535A\u53A5\u557B\u5580\u55A7\u557C\u558A\u559D\u5598\u5582\u559C\u55AA\u5594\u5587\u558B\u5583\u55B3\u55AE\u559F\u553E\u55B2\u559A\u55BB\u55AC\u55B1\u557E\u5589\u55AB\u5599\u570D\u582F\u582A\u5834\u5824\u5830\u5831\u5821\u581D\u5820\u58F9\u58FA\u5960"],["b440","\u5A77\u5A9A\u5A7F\u5A92\u5A9B\u5AA7\u5B73\u5B71\u5BD2\u5BCC\u5BD3\u5BD0\u5C0A\u5C0B\u5C31\u5D4C\u5D50\u5D34\u5D47\u5DFD\u5E45\u5E3D\u5E40\u5E43\u5E7E\u5ECA\u5EC1\u5EC2\u5EC4\u5F3C\u5F6D\u5FA9\u5FAA\u5FA8\u60D1\u60E1\u60B2\u60B6\u60E0\u611C\u6123\u60FA\u6115\u60F0\u60FB\u60F4\u6168\u60F1\u610E\u60F6\u6109\u6100\u6112\u621F\u6249\u63A3\u638C\u63CF\u63C0\u63E9\u63C9\u63C6\u63CD"],["b4a1","\u63D2\u63E3\u63D0\u63E1\u63D6\u63ED\u63EE\u6376\u63F4\u63EA\u63DB\u6452\u63DA\u63F9\u655E\u6566\u6562\u6563\u6591\u6590\u65AF\u666E\u6670\u6674\u6676\u666F\u6691\u667A\u667E\u6677\u66FE\u66FF\u671F\u671D\u68FA\u68D5\u68E0\u68D8\u68D7\u6905\u68DF\u68F5\u68EE\u68E7\u68F9\u68D2\u68F2\u68E3\u68CB\u68CD\u690D\u6912\u690E\u68C9\u68DA\u696E\u68FB\u6B3E\u6B3A\u6B3D\u6B98\u6B96\u6BBC\u6BEF\u6C2E\u6C2F\u6C2C\u6E2F\u6E38\u6E54\u6E21\u6E32\u6E67\u6E4A\u6E20\u6E25\u6E23\u6E1B\u6E5B\u6E58\u6E24\u6E56\u6E6E\u6E2D\u6E26\u6E6F\u6E34\u6E4D\u6E3A\u6E2C\u6E43\u6E1D\u6E3E\u6ECB"],["b540","\u6E89\u6E19\u6E4E\u6E63\u6E44\u6E72\u6E69\u6E5F\u7119\u711A\u7126\u7130\u7121\u7136\u716E\u711C\u724C\u7284\u7280\u7336\u7325\u7334\u7329\u743A\u742A\u7433\u7422\u7425\u7435\u7436\u7434\u742F\u741B\u7426\u7428\u7525\u7526\u756B\u756A\u75E2\u75DB\u75E3\u75D9\u75D8\u75DE\u75E0\u767B\u767C\u7696\u7693\u76B4\u76DC\u774F\u77ED\u785D\u786C\u786F\u7A0D\u7A08\u7A0B\u7A05\u7A00\u7A98"],["b5a1","\u7A97\u7A96\u7AE5\u7AE3\u7B49\u7B56\u7B46\u7B50\u7B52\u7B54\u7B4D\u7B4B\u7B4F\u7B51\u7C9F\u7CA5\u7D5E\u7D50\u7D68\u7D55\u7D2B\u7D6E\u7D72\u7D61\u7D66\u7D62\u7D70\u7D73\u5584\u7FD4\u7FD5\u800B\u8052\u8085\u8155\u8154\u814B\u8151\u814E\u8139\u8146\u813E\u814C\u8153\u8174\u8212\u821C\u83E9\u8403\u83F8\u840D\u83E0\u83C5\u840B\u83C1\u83EF\u83F1\u83F4\u8457\u840A\u83F0\u840C\u83CC\u83FD\u83F2\u83CA\u8438\u840E\u8404\u83DC\u8407\u83D4\u83DF\u865B\u86DF\u86D9\u86ED\u86D4\u86DB\u86E4\u86D0\u86DE\u8857\u88C1\u88C2\u88B1\u8983\u8996\u8A3B\u8A60\u8A55\u8A5E\u8A3C\u8A41"],["b640","\u8A54\u8A5B\u8A50\u8A46\u8A34\u8A3A\u8A36\u8A56\u8C61\u8C82\u8CAF\u8CBC\u8CB3\u8CBD\u8CC1\u8CBB\u8CC0\u8CB4\u8CB7\u8CB6\u8CBF\u8CB8\u8D8A\u8D85\u8D81\u8DCE\u8DDD\u8DCB\u8DDA\u8DD1\u8DCC\u8DDB\u8DC6\u8EFB\u8EF8\u8EFC\u8F9C\u902E\u9035\u9031\u9038\u9032\u9036\u9102\u90F5\u9109\u90FE\u9163\u9165\u91CF\u9214\u9215\u9223\u9209\u921E\u920D\u9210\u9207\u9211\u9594\u958F\u958B\u9591"],["b6a1","\u9593\u9592\u958E\u968A\u968E\u968B\u967D\u9685\u9686\u968D\u9672\u9684\u96C1\u96C5\u96C4\u96C6\u96C7\u96EF\u96F2\u97CC\u9805\u9806\u9808\u98E7\u98EA\u98EF\u98E9\u98F2\u98ED\u99AE\u99AD\u9EC3\u9ECD\u9ED1\u4E82\u50AD\u50B5\u50B2\u50B3\u50C5\u50BE\u50AC\u50B7\u50BB\u50AF\u50C7\u527F\u5277\u527D\u52DF\u52E6\u52E4\u52E2\u52E3\u532F\u55DF\u55E8\u55D3\u55E6\u55CE\u55DC\u55C7\u55D1\u55E3\u55E4\u55EF\u55DA\u55E1\u55C5\u55C6\u55E5\u55C9\u5712\u5713\u585E\u5851\u5858\u5857\u585A\u5854\u586B\u584C\u586D\u584A\u5862\u5852\u584B\u5967\u5AC1\u5AC9\u5ACC\u5ABE\u5ABD\u5ABC"],["b740","\u5AB3\u5AC2\u5AB2\u5D69\u5D6F\u5E4C\u5E79\u5EC9\u5EC8\u5F12\u5F59\u5FAC\u5FAE\u611A\u610F\u6148\u611F\u60F3\u611B\u60F9\u6101\u6108\u614E\u614C\u6144\u614D\u613E\u6134\u6127\u610D\u6106\u6137\u6221\u6222\u6413\u643E\u641E\u642A\u642D\u643D\u642C\u640F\u641C\u6414\u640D\u6436\u6416\u6417\u6406\u656C\u659F\u65B0\u6697\u6689\u6687\u6688\u6696\u6684\u6698\u668D\u6703\u6994\u696D"],["b7a1","\u695A\u6977\u6960\u6954\u6975\u6930\u6982\u694A\u6968\u696B\u695E\u6953\u6979\u6986\u695D\u6963\u695B\u6B47\u6B72\u6BC0\u6BBF\u6BD3\u6BFD\u6EA2\u6EAF\u6ED3\u6EB6\u6EC2\u6E90\u6E9D\u6EC7\u6EC5\u6EA5\u6E98\u6EBC\u6EBA\u6EAB\u6ED1\u6E96\u6E9C\u6EC4\u6ED4\u6EAA\u6EA7\u6EB4\u714E\u7159\u7169\u7164\u7149\u7167\u715C\u716C\u7166\u714C\u7165\u715E\u7146\u7168\u7156\u723A\u7252\u7337\u7345\u733F\u733E\u746F\u745A\u7455\u745F\u745E\u7441\u743F\u7459\u745B\u745C\u7576\u7578\u7600\u75F0\u7601\u75F2\u75F1\u75FA\u75FF\u75F4\u75F3\u76DE\u76DF\u775B\u776B\u7766\u775E\u7763"],["b840","\u7779\u776A\u776C\u775C\u7765\u7768\u7762\u77EE\u788E\u78B0\u7897\u7898\u788C\u7889\u787C\u7891\u7893\u787F\u797A\u797F\u7981\u842C\u79BD\u7A1C\u7A1A\u7A20\u7A14\u7A1F\u7A1E\u7A9F\u7AA0\u7B77\u7BC0\u7B60\u7B6E\u7B67\u7CB1\u7CB3\u7CB5\u7D93\u7D79\u7D91\u7D81\u7D8F\u7D5B\u7F6E\u7F69\u7F6A\u7F72\u7FA9\u7FA8\u7FA4\u8056\u8058\u8086\u8084\u8171\u8170\u8178\u8165\u816E\u8173\u816B"],["b8a1","\u8179\u817A\u8166\u8205\u8247\u8482\u8477\u843D\u8431\u8475\u8466\u846B\u8449\u846C\u845B\u843C\u8435\u8461\u8463\u8469\u846D\u8446\u865E\u865C\u865F\u86F9\u8713\u8708\u8707\u8700\u86FE\u86FB\u8702\u8703\u8706\u870A\u8859\u88DF\u88D4\u88D9\u88DC\u88D8\u88DD\u88E1\u88CA\u88D5\u88D2\u899C\u89E3\u8A6B\u8A72\u8A73\u8A66\u8A69\u8A70\u8A87\u8A7C\u8A63\u8AA0\u8A71\u8A85\u8A6D\u8A62\u8A6E\u8A6C\u8A79\u8A7B\u8A3E\u8A68\u8C62\u8C8A\u8C89\u8CCA\u8CC7\u8CC8\u8CC4\u8CB2\u8CC3\u8CC2\u8CC5\u8DE1\u8DDF\u8DE8\u8DEF\u8DF3\u8DFA\u8DEA\u8DE4\u8DE6\u8EB2\u8F03\u8F09\u8EFE\u8F0A"],["b940","\u8F9F\u8FB2\u904B\u904A\u9053\u9042\u9054\u903C\u9055\u9050\u9047\u904F\u904E\u904D\u9051\u903E\u9041\u9112\u9117\u916C\u916A\u9169\u91C9\u9237\u9257\u9238\u923D\u9240\u923E\u925B\u924B\u9264\u9251\u9234\u9249\u924D\u9245\u9239\u923F\u925A\u9598\u9698\u9694\u9695\u96CD\u96CB\u96C9\u96CA\u96F7\u96FB\u96F9\u96F6\u9756\u9774\u9776\u9810\u9811\u9813\u980A\u9812\u980C\u98FC\u98F4"],["b9a1","\u98FD\u98FE\u99B3\u99B1\u99B4\u9AE1\u9CE9\u9E82\u9F0E\u9F13\u9F20\u50E7\u50EE\u50E5\u50D6\u50ED\u50DA\u50D5\u50CF\u50D1\u50F1\u50CE\u50E9\u5162\u51F3\u5283\u5282\u5331\u53AD\u55FE\u5600\u561B\u5617\u55FD\u5614\u5606\u5609\u560D\u560E\u55F7\u5616\u561F\u5608\u5610\u55F6\u5718\u5716\u5875\u587E\u5883\u5893\u588A\u5879\u5885\u587D\u58FD\u5925\u5922\u5924\u596A\u5969\u5AE1\u5AE6\u5AE9\u5AD7\u5AD6\u5AD8\u5AE3\u5B75\u5BDE\u5BE7\u5BE1\u5BE5\u5BE6\u5BE8\u5BE2\u5BE4\u5BDF\u5C0D\u5C62\u5D84\u5D87\u5E5B\u5E63\u5E55\u5E57\u5E54\u5ED3\u5ED6\u5F0A\u5F46\u5F70\u5FB9\u6147"],["ba40","\u613F\u614B\u6177\u6162\u6163\u615F\u615A\u6158\u6175\u622A\u6487\u6458\u6454\u64A4\u6478\u645F\u647A\u6451\u6467\u6434\u646D\u647B\u6572\u65A1\u65D7\u65D6\u66A2\u66A8\u669D\u699C\u69A8\u6995\u69C1\u69AE\u69D3\u69CB\u699B\u69B7\u69BB\u69AB\u69B4\u69D0\u69CD\u69AD\u69CC\u69A6\u69C3\u69A3\u6B49\u6B4C\u6C33\u6F33\u6F14\u6EFE\u6F13\u6EF4\u6F29\u6F3E\u6F20\u6F2C\u6F0F\u6F02\u6F22"],["baa1","\u6EFF\u6EEF\u6F06\u6F31\u6F38\u6F32\u6F23\u6F15\u6F2B\u6F2F\u6F88\u6F2A\u6EEC\u6F01\u6EF2\u6ECC\u6EF7\u7194\u7199\u717D\u718A\u7184\u7192\u723E\u7292\u7296\u7344\u7350\u7464\u7463\u746A\u7470\u746D\u7504\u7591\u7627\u760D\u760B\u7609\u7613\u76E1\u76E3\u7784\u777D\u777F\u7761\u78C1\u789F\u78A7\u78B3\u78A9\u78A3\u798E\u798F\u798D\u7A2E\u7A31\u7AAA\u7AA9\u7AED\u7AEF\u7BA1\u7B95\u7B8B\u7B75\u7B97\u7B9D\u7B94\u7B8F\u7BB8\u7B87\u7B84\u7CB9\u7CBD\u7CBE\u7DBB\u7DB0\u7D9C\u7DBD\u7DBE\u7DA0\u7DCA\u7DB4\u7DB2\u7DB1\u7DBA\u7DA2\u7DBF\u7DB5\u7DB8\u7DAD\u7DD2\u7DC7\u7DAC"],["bb40","\u7F70\u7FE0\u7FE1\u7FDF\u805E\u805A\u8087\u8150\u8180\u818F\u8188\u818A\u817F\u8182\u81E7\u81FA\u8207\u8214\u821E\u824B\u84C9\u84BF\u84C6\u84C4\u8499\u849E\u84B2\u849C\u84CB\u84B8\u84C0\u84D3\u8490\u84BC\u84D1\u84CA\u873F\u871C\u873B\u8722\u8725\u8734\u8718\u8755\u8737\u8729\u88F3\u8902\u88F4\u88F9\u88F8\u88FD\u88E8\u891A\u88EF\u8AA6\u8A8C\u8A9E\u8AA3\u8A8D\u8AA1\u8A93\u8AA4"],["bba1","\u8AAA\u8AA5\u8AA8\u8A98\u8A91\u8A9A\u8AA7\u8C6A\u8C8D\u8C8C\u8CD3\u8CD1\u8CD2\u8D6B\u8D99\u8D95\u8DFC\u8F14\u8F12\u8F15\u8F13\u8FA3\u9060\u9058\u905C\u9063\u9059\u905E\u9062\u905D\u905B\u9119\u9118\u911E\u9175\u9178\u9177\u9174\u9278\u9280\u9285\u9298\u9296\u927B\u9293\u929C\u92A8\u927C\u9291\u95A1\u95A8\u95A9\u95A3\u95A5\u95A4\u9699\u969C\u969B\u96CC\u96D2\u9700\u977C\u9785\u97F6\u9817\u9818\u98AF\u98B1\u9903\u9905\u990C\u9909\u99C1\u9AAF\u9AB0\u9AE6\u9B41\u9B42\u9CF4\u9CF6\u9CF3\u9EBC\u9F3B\u9F4A\u5104\u5100\u50FB\u50F5\u50F9\u5102\u5108\u5109\u5105\u51DC"],["bc40","\u5287\u5288\u5289\u528D\u528A\u52F0\u53B2\u562E\u563B\u5639\u5632\u563F\u5634\u5629\u5653\u564E\u5657\u5674\u5636\u562F\u5630\u5880\u589F\u589E\u58B3\u589C\u58AE\u58A9\u58A6\u596D\u5B09\u5AFB\u5B0B\u5AF5\u5B0C\u5B08\u5BEE\u5BEC\u5BE9\u5BEB\u5C64\u5C65\u5D9D\u5D94\u5E62\u5E5F\u5E61\u5EE2\u5EDA\u5EDF\u5EDD\u5EE3\u5EE0\u5F48\u5F71\u5FB7\u5FB5\u6176\u6167\u616E\u615D\u6155\u6182"],["bca1","\u617C\u6170\u616B\u617E\u61A7\u6190\u61AB\u618E\u61AC\u619A\u61A4\u6194\u61AE\u622E\u6469\u646F\u6479\u649E\u64B2\u6488\u6490\u64B0\u64A5\u6493\u6495\u64A9\u6492\u64AE\u64AD\u64AB\u649A\u64AC\u6499\u64A2\u64B3\u6575\u6577\u6578\u66AE\u66AB\u66B4\u66B1\u6A23\u6A1F\u69E8\u6A01\u6A1E\u6A19\u69FD\u6A21\u6A13\u6A0A\u69F3\u6A02\u6A05\u69ED\u6A11\u6B50\u6B4E\u6BA4\u6BC5\u6BC6\u6F3F\u6F7C\u6F84\u6F51\u6F66\u6F54\u6F86\u6F6D\u6F5B\u6F78\u6F6E\u6F8E\u6F7A\u6F70\u6F64\u6F97\u6F58\u6ED5\u6F6F\u6F60\u6F5F\u719F\u71AC\u71B1\u71A8\u7256\u729B\u734E\u7357\u7469\u748B\u7483"],["bd40","\u747E\u7480\u757F\u7620\u7629\u761F\u7624\u7626\u7621\u7622\u769A\u76BA\u76E4\u778E\u7787\u778C\u7791\u778B\u78CB\u78C5\u78BA\u78CA\u78BE\u78D5\u78BC\u78D0\u7A3F\u7A3C\u7A40\u7A3D\u7A37\u7A3B\u7AAF\u7AAE\u7BAD\u7BB1\u7BC4\u7BB4\u7BC6\u7BC7\u7BC1\u7BA0\u7BCC\u7CCA\u7DE0\u7DF4\u7DEF\u7DFB\u7DD8\u7DEC\u7DDD\u7DE8\u7DE3\u7DDA\u7DDE\u7DE9\u7D9E\u7DD9\u7DF2\u7DF9\u7F75\u7F77\u7FAF"],["bda1","\u7FE9\u8026\u819B\u819C\u819D\u81A0\u819A\u8198\u8517\u853D\u851A\u84EE\u852C\u852D\u8513\u8511\u8523\u8521\u8514\u84EC\u8525\u84FF\u8506\u8782\u8774\u8776\u8760\u8766\u8778\u8768\u8759\u8757\u874C\u8753\u885B\u885D\u8910\u8907\u8912\u8913\u8915\u890A\u8ABC\u8AD2\u8AC7\u8AC4\u8A95\u8ACB\u8AF8\u8AB2\u8AC9\u8AC2\u8ABF\u8AB0\u8AD6\u8ACD\u8AB6\u8AB9\u8ADB\u8C4C\u8C4E\u8C6C\u8CE0\u8CDE\u8CE6\u8CE4\u8CEC\u8CED\u8CE2\u8CE3\u8CDC\u8CEA\u8CE1\u8D6D\u8D9F\u8DA3\u8E2B\u8E10\u8E1D\u8E22\u8E0F\u8E29\u8E1F\u8E21\u8E1E\u8EBA\u8F1D\u8F1B\u8F1F\u8F29\u8F26\u8F2A\u8F1C\u8F1E"],["be40","\u8F25\u9069\u906E\u9068\u906D\u9077\u9130\u912D\u9127\u9131\u9187\u9189\u918B\u9183\u92C5\u92BB\u92B7\u92EA\u92AC\u92E4\u92C1\u92B3\u92BC\u92D2\u92C7\u92F0\u92B2\u95AD\u95B1\u9704\u9706\u9707\u9709\u9760\u978D\u978B\u978F\u9821\u982B\u981C\u98B3\u990A\u9913\u9912\u9918\u99DD\u99D0\u99DF\u99DB\u99D1\u99D5\u99D2\u99D9\u9AB7\u9AEE\u9AEF\u9B27\u9B45\u9B44\u9B77\u9B6F\u9D06\u9D09"],["bea1","\u9D03\u9EA9\u9EBE\u9ECE\u58A8\u9F52\u5112\u5118\u5114\u5110\u5115\u5180\u51AA\u51DD\u5291\u5293\u52F3\u5659\u566B\u5679\u5669\u5664\u5678\u566A\u5668\u5665\u5671\u566F\u566C\u5662\u5676\u58C1\u58BE\u58C7\u58C5\u596E\u5B1D\u5B34\u5B78\u5BF0\u5C0E\u5F4A\u61B2\u6191\u61A9\u618A\u61CD\u61B6\u61BE\u61CA\u61C8\u6230\u64C5\u64C1\u64CB\u64BB\u64BC\u64DA\u64C4\u64C7\u64C2\u64CD\u64BF\u64D2\u64D4\u64BE\u6574\u66C6\u66C9\u66B9\u66C4\u66C7\u66B8\u6A3D\u6A38\u6A3A\u6A59\u6A6B\u6A58\u6A39\u6A44\u6A62\u6A61\u6A4B\u6A47\u6A35\u6A5F\u6A48\u6B59\u6B77\u6C05\u6FC2\u6FB1\u6FA1"],["bf40","\u6FC3\u6FA4\u6FC1\u6FA7\u6FB3\u6FC0\u6FB9\u6FB6\u6FA6\u6FA0\u6FB4\u71BE\u71C9\u71D0\u71D2\u71C8\u71D5\u71B9\u71CE\u71D9\u71DC\u71C3\u71C4\u7368\u749C\u74A3\u7498\u749F\u749E\u74E2\u750C\u750D\u7634\u7638\u763A\u76E7\u76E5\u77A0\u779E\u779F\u77A5\u78E8\u78DA\u78EC\u78E7\u79A6\u7A4D\u7A4E\u7A46\u7A4C\u7A4B\u7ABA\u7BD9\u7C11\u7BC9\u7BE4\u7BDB\u7BE1\u7BE9\u7BE6\u7CD5\u7CD6\u7E0A"],["bfa1","\u7E11\u7E08\u7E1B\u7E23\u7E1E\u7E1D\u7E09\u7E10\u7F79\u7FB2\u7FF0\u7FF1\u7FEE\u8028\u81B3\u81A9\u81A8\u81FB\u8208\u8258\u8259\u854A\u8559\u8548\u8568\u8569\u8543\u8549\u856D\u856A\u855E\u8783\u879F\u879E\u87A2\u878D\u8861\u892A\u8932\u8925\u892B\u8921\u89AA\u89A6\u8AE6\u8AFA\u8AEB\u8AF1\u8B00\u8ADC\u8AE7\u8AEE\u8AFE\u8B01\u8B02\u8AF7\u8AED\u8AF3\u8AF6\u8AFC\u8C6B\u8C6D\u8C93\u8CF4\u8E44\u8E31\u8E34\u8E42\u8E39\u8E35\u8F3B\u8F2F\u8F38\u8F33\u8FA8\u8FA6\u9075\u9074\u9078\u9072\u907C\u907A\u9134\u9192\u9320\u9336\u92F8\u9333\u932F\u9322\u92FC\u932B\u9304\u931A"],["c040","\u9310\u9326\u9321\u9315\u932E\u9319\u95BB\u96A7\u96A8\u96AA\u96D5\u970E\u9711\u9716\u970D\u9713\u970F\u975B\u975C\u9766\u9798\u9830\u9838\u983B\u9837\u982D\u9839\u9824\u9910\u9928\u991E\u991B\u9921\u991A\u99ED\u99E2\u99F1\u9AB8\u9ABC\u9AFB\u9AED\u9B28\u9B91\u9D15\u9D23\u9D26\u9D28\u9D12\u9D1B\u9ED8\u9ED4\u9F8D\u9F9C\u512A\u511F\u5121\u5132\u52F5\u568E\u5680\u5690\u5685\u5687"],["c0a1","\u568F\u58D5\u58D3\u58D1\u58CE\u5B30\u5B2A\u5B24\u5B7A\u5C37\u5C68\u5DBC\u5DBA\u5DBD\u5DB8\u5E6B\u5F4C\u5FBD\u61C9\u61C2\u61C7\u61E6\u61CB\u6232\u6234\u64CE\u64CA\u64D8\u64E0\u64F0\u64E6\u64EC\u64F1\u64E2\u64ED\u6582\u6583\u66D9\u66D6\u6A80\u6A94\u6A84\u6AA2\u6A9C\u6ADB\u6AA3\u6A7E\u6A97\u6A90\u6AA0\u6B5C\u6BAE\u6BDA\u6C08\u6FD8\u6FF1\u6FDF\u6FE0\u6FDB\u6FE4\u6FEB\u6FEF\u6F80\u6FEC\u6FE1\u6FE9\u6FD5\u6FEE\u6FF0\u71E7\u71DF\u71EE\u71E6\u71E5\u71ED\u71EC\u71F4\u71E0\u7235\u7246\u7370\u7372\u74A9\u74B0\u74A6\u74A8\u7646\u7642\u764C\u76EA\u77B3\u77AA\u77B0\u77AC"],["c140","\u77A7\u77AD\u77EF\u78F7\u78FA\u78F4\u78EF\u7901\u79A7\u79AA\u7A57\u7ABF\u7C07\u7C0D\u7BFE\u7BF7\u7C0C\u7BE0\u7CE0\u7CDC\u7CDE\u7CE2\u7CDF\u7CD9\u7CDD\u7E2E\u7E3E\u7E46\u7E37\u7E32\u7E43\u7E2B\u7E3D\u7E31\u7E45\u7E41\u7E34\u7E39\u7E48\u7E35\u7E3F\u7E2F\u7F44\u7FF3\u7FFC\u8071\u8072\u8070\u806F\u8073\u81C6\u81C3\u81BA\u81C2\u81C0\u81BF\u81BD\u81C9\u81BE\u81E8\u8209\u8271\u85AA"],["c1a1","\u8584\u857E\u859C\u8591\u8594\u85AF\u859B\u8587\u85A8\u858A\u8667\u87C0\u87D1\u87B3\u87D2\u87C6\u87AB\u87BB\u87BA\u87C8\u87CB\u893B\u8936\u8944\u8938\u893D\u89AC\u8B0E\u8B17\u8B19\u8B1B\u8B0A\u8B20\u8B1D\u8B04\u8B10\u8C41\u8C3F\u8C73\u8CFA\u8CFD\u8CFC\u8CF8\u8CFB\u8DA8\u8E49\u8E4B\u8E48\u8E4A\u8F44\u8F3E\u8F42\u8F45\u8F3F\u907F\u907D\u9084\u9081\u9082\u9080\u9139\u91A3\u919E\u919C\u934D\u9382\u9328\u9375\u934A\u9365\u934B\u9318\u937E\u936C\u935B\u9370\u935A\u9354\u95CA\u95CB\u95CC\u95C8\u95C6\u96B1\u96B8\u96D6\u971C\u971E\u97A0\u97D3\u9846\u98B6\u9935\u9A01"],["c240","\u99FF\u9BAE\u9BAB\u9BAA\u9BAD\u9D3B\u9D3F\u9E8B\u9ECF\u9EDE\u9EDC\u9EDD\u9EDB\u9F3E\u9F4B\u53E2\u5695\u56AE\u58D9\u58D8\u5B38\u5F5D\u61E3\u6233\u64F4\u64F2\u64FE\u6506\u64FA\u64FB\u64F7\u65B7\u66DC\u6726\u6AB3\u6AAC\u6AC3\u6ABB\u6AB8\u6AC2\u6AAE\u6AAF\u6B5F\u6B78\u6BAF\u7009\u700B\u6FFE\u7006\u6FFA\u7011\u700F\u71FB\u71FC\u71FE\u71F8\u7377\u7375\u74A7\u74BF\u7515\u7656\u7658"],["c2a1","\u7652\u77BD\u77BF\u77BB\u77BC\u790E\u79AE\u7A61\u7A62\u7A60\u7AC4\u7AC5\u7C2B\u7C27\u7C2A\u7C1E\u7C23\u7C21\u7CE7\u7E54\u7E55\u7E5E\u7E5A\u7E61\u7E52\u7E59\u7F48\u7FF9\u7FFB\u8077\u8076\u81CD\u81CF\u820A\u85CF\u85A9\u85CD\u85D0\u85C9\u85B0\u85BA\u85B9\u85A6\u87EF\u87EC\u87F2\u87E0\u8986\u89B2\u89F4\u8B28\u8B39\u8B2C\u8B2B\u8C50\u8D05\u8E59\u8E63\u8E66\u8E64\u8E5F\u8E55\u8EC0\u8F49\u8F4D\u9087\u9083\u9088\u91AB\u91AC\u91D0\u9394\u938A\u9396\u93A2\u93B3\u93AE\u93AC\u93B0\u9398\u939A\u9397\u95D4\u95D6\u95D0\u95D5\u96E2\u96DC\u96D9\u96DB\u96DE\u9724\u97A3\u97A6"],["c340","\u97AD\u97F9\u984D\u984F\u984C\u984E\u9853\u98BA\u993E\u993F\u993D\u992E\u99A5\u9A0E\u9AC1\u9B03\u9B06\u9B4F\u9B4E\u9B4D\u9BCA\u9BC9\u9BFD\u9BC8\u9BC0\u9D51\u9D5D\u9D60\u9EE0\u9F15\u9F2C\u5133\u56A5\u58DE\u58DF\u58E2\u5BF5\u9F90\u5EEC\u61F2\u61F7\u61F6\u61F5\u6500\u650F\u66E0\u66DD\u6AE5\u6ADD\u6ADA\u6AD3\u701B\u701F\u7028\u701A\u701D\u7015\u7018\u7206\u720D\u7258\u72A2\u7378"],["c3a1","\u737A\u74BD\u74CA\u74E3\u7587\u7586\u765F\u7661\u77C7\u7919\u79B1\u7A6B\u7A69\u7C3E\u7C3F\u7C38\u7C3D\u7C37\u7C40\u7E6B\u7E6D\u7E79\u7E69\u7E6A\u7F85\u7E73\u7FB6\u7FB9\u7FB8\u81D8\u85E9\u85DD\u85EA\u85D5\u85E4\u85E5\u85F7\u87FB\u8805\u880D\u87F9\u87FE\u8960\u895F\u8956\u895E\u8B41\u8B5C\u8B58\u8B49\u8B5A\u8B4E\u8B4F\u8B46\u8B59\u8D08\u8D0A\u8E7C\u8E72\u8E87\u8E76\u8E6C\u8E7A\u8E74\u8F54\u8F4E\u8FAD\u908A\u908B\u91B1\u91AE\u93E1\u93D1\u93DF\u93C3\u93C8\u93DC\u93DD\u93D6\u93E2\u93CD\u93D8\u93E4\u93D7\u93E8\u95DC\u96B4\u96E3\u972A\u9727\u9761\u97DC\u97FB\u985E"],["c440","\u9858\u985B\u98BC\u9945\u9949\u9A16\u9A19\u9B0D\u9BE8\u9BE7\u9BD6\u9BDB\u9D89\u9D61\u9D72\u9D6A\u9D6C\u9E92\u9E97\u9E93\u9EB4\u52F8\u56A8\u56B7\u56B6\u56B4\u56BC\u58E4\u5B40\u5B43\u5B7D\u5BF6\u5DC9\u61F8\u61FA\u6518\u6514\u6519\u66E6\u6727\u6AEC\u703E\u7030\u7032\u7210\u737B\u74CF\u7662\u7665\u7926\u792A\u792C\u792B\u7AC7\u7AF6\u7C4C\u7C43\u7C4D\u7CEF\u7CF0\u8FAE\u7E7D\u7E7C"],["c4a1","\u7E82\u7F4C\u8000\u81DA\u8266\u85FB\u85F9\u8611\u85FA\u8606\u860B\u8607\u860A\u8814\u8815\u8964\u89BA\u89F8\u8B70\u8B6C\u8B66\u8B6F\u8B5F\u8B6B\u8D0F\u8D0D\u8E89\u8E81\u8E85\u8E82\u91B4\u91CB\u9418\u9403\u93FD\u95E1\u9730\u98C4\u9952\u9951\u99A8\u9A2B\u9A30\u9A37\u9A35\u9C13\u9C0D\u9E79\u9EB5\u9EE8\u9F2F\u9F5F\u9F63\u9F61\u5137\u5138\u56C1\u56C0\u56C2\u5914\u5C6C\u5DCD\u61FC\u61FE\u651D\u651C\u6595\u66E9\u6AFB\u6B04\u6AFA\u6BB2\u704C\u721B\u72A7\u74D6\u74D4\u7669\u77D3\u7C50\u7E8F\u7E8C\u7FBC\u8617\u862D\u861A\u8823\u8822\u8821\u881F\u896A\u896C\u89BD\u8B74"],["c540","\u8B77\u8B7D\u8D13\u8E8A\u8E8D\u8E8B\u8F5F\u8FAF\u91BA\u942E\u9433\u9435\u943A\u9438\u9432\u942B\u95E2\u9738\u9739\u9732\u97FF\u9867\u9865\u9957\u9A45\u9A43\u9A40\u9A3E\u9ACF\u9B54\u9B51\u9C2D\u9C25\u9DAF\u9DB4\u9DC2\u9DB8\u9E9D\u9EEF\u9F19\u9F5C\u9F66\u9F67\u513C\u513B\u56C8\u56CA\u56C9\u5B7F\u5DD4\u5DD2\u5F4E\u61FF\u6524\u6B0A\u6B61\u7051\u7058\u7380\u74E4\u758A\u766E\u766C"],["c5a1","\u79B3\u7C60\u7C5F\u807E\u807D\u81DF\u8972\u896F\u89FC\u8B80\u8D16\u8D17\u8E91\u8E93\u8F61\u9148\u9444\u9451\u9452\u973D\u973E\u97C3\u97C1\u986B\u9955\u9A55\u9A4D\u9AD2\u9B1A\u9C49\u9C31\u9C3E\u9C3B\u9DD3\u9DD7\u9F34\u9F6C\u9F6A\u9F94\u56CC\u5DD6\u6200\u6523\u652B\u652A\u66EC\u6B10\u74DA\u7ACA\u7C64\u7C63\u7C65\u7E93\u7E96\u7E94\u81E2\u8638\u863F\u8831\u8B8A\u9090\u908F\u9463\u9460\u9464\u9768\u986F\u995C\u9A5A\u9A5B\u9A57\u9AD3\u9AD4\u9AD1\u9C54\u9C57\u9C56\u9DE5\u9E9F\u9EF4\u56D1\u58E9\u652C\u705E\u7671\u7672\u77D7\u7F50\u7F88\u8836\u8839\u8862\u8B93\u8B92"],["c640","\u8B96\u8277\u8D1B\u91C0\u946A\u9742\u9748\u9744\u97C6\u9870\u9A5F\u9B22\u9B58\u9C5F\u9DF9\u9DFA\u9E7C\u9E7D\u9F07\u9F77\u9F72\u5EF3\u6B16\u7063\u7C6C\u7C6E\u883B\u89C0\u8EA1\u91C1\u9472\u9470\u9871\u995E\u9AD6\u9B23\u9ECC\u7064\u77DA\u8B9A\u9477\u97C9\u9A62\u9A65\u7E9C\u8B9C\u8EAA\u91C5\u947D\u947E\u947C\u9C77\u9C78\u9EF7\u8C54\u947F\u9E1A\u7228\u9A6A\u9B31\u9E1B\u9E1E\u7C72"],["c940","\u4E42\u4E5C\u51F5\u531A\u5382\u4E07\u4E0C\u4E47\u4E8D\u56D7\uFA0C\u5C6E\u5F73\u4E0F\u5187\u4E0E\u4E2E\u4E93\u4EC2\u4EC9\u4EC8\u5198\u52FC\u536C\u53B9\u5720\u5903\u592C\u5C10\u5DFF\u65E1\u6BB3\u6BCC\u6C14\u723F\u4E31\u4E3C\u4EE8\u4EDC\u4EE9\u4EE1\u4EDD\u4EDA\u520C\u531C\u534C\u5722\u5723\u5917\u592F\u5B81\u5B84\u5C12\u5C3B\u5C74\u5C73\u5E04\u5E80\u5E82\u5FC9\u6209\u6250\u6C15"],["c9a1","\u6C36\u6C43\u6C3F\u6C3B\u72AE\u72B0\u738A\u79B8\u808A\u961E\u4F0E\u4F18\u4F2C\u4EF5\u4F14\u4EF1\u4F00\u4EF7\u4F08\u4F1D\u4F02\u4F05\u4F22\u4F13\u4F04\u4EF4\u4F12\u51B1\u5213\u5209\u5210\u52A6\u5322\u531F\u534D\u538A\u5407\u56E1\u56DF\u572E\u572A\u5734\u593C\u5980\u597C\u5985\u597B\u597E\u5977\u597F\u5B56\u5C15\u5C25\u5C7C\u5C7A\u5C7B\u5C7E\u5DDF\u5E75\u5E84\u5F02\u5F1A\u5F74\u5FD5\u5FD4\u5FCF\u625C\u625E\u6264\u6261\u6266\u6262\u6259\u6260\u625A\u6265\u65EF\u65EE\u673E\u6739\u6738\u673B\u673A\u673F\u673C\u6733\u6C18\u6C46\u6C52\u6C5C\u6C4F\u6C4A\u6C54\u6C4B"],["ca40","\u6C4C\u7071\u725E\u72B4\u72B5\u738E\u752A\u767F\u7A75\u7F51\u8278\u827C\u8280\u827D\u827F\u864D\u897E\u9099\u9097\u9098\u909B\u9094\u9622\u9624\u9620\u9623\u4F56\u4F3B\u4F62\u4F49\u4F53\u4F64\u4F3E\u4F67\u4F52\u4F5F\u4F41\u4F58\u4F2D\u4F33\u4F3F\u4F61\u518F\u51B9\u521C\u521E\u5221\u52AD\u52AE\u5309\u5363\u5372\u538E\u538F\u5430\u5437\u542A\u5454\u5445\u5419\u541C\u5425\u5418"],["caa1","\u543D\u544F\u5441\u5428\u5424\u5447\u56EE\u56E7\u56E5\u5741\u5745\u574C\u5749\u574B\u5752\u5906\u5940\u59A6\u5998\u59A0\u5997\u598E\u59A2\u5990\u598F\u59A7\u59A1\u5B8E\u5B92\u5C28\u5C2A\u5C8D\u5C8F\u5C88\u5C8B\u5C89\u5C92\u5C8A\u5C86\u5C93\u5C95\u5DE0\u5E0A\u5E0E\u5E8B\u5E89\u5E8C\u5E88\u5E8D\u5F05\u5F1D\u5F78\u5F76\u5FD2\u5FD1\u5FD0\u5FED\u5FE8\u5FEE\u5FF3\u5FE1\u5FE4\u5FE3\u5FFA\u5FEF\u5FF7\u5FFB\u6000\u5FF4\u623A\u6283\u628C\u628E\u628F\u6294\u6287\u6271\u627B\u627A\u6270\u6281\u6288\u6277\u627D\u6272\u6274\u6537\u65F0\u65F4\u65F3\u65F2\u65F5\u6745\u6747"],["cb40","\u6759\u6755\u674C\u6748\u675D\u674D\u675A\u674B\u6BD0\u6C19\u6C1A\u6C78\u6C67\u6C6B\u6C84\u6C8B\u6C8F\u6C71\u6C6F\u6C69\u6C9A\u6C6D\u6C87\u6C95\u6C9C\u6C66\u6C73\u6C65\u6C7B\u6C8E\u7074\u707A\u7263\u72BF\u72BD\u72C3\u72C6\u72C1\u72BA\u72C5\u7395\u7397\u7393\u7394\u7392\u753A\u7539\u7594\u7595\u7681\u793D\u8034\u8095\u8099\u8090\u8092\u809C\u8290\u828F\u8285\u828E\u8291\u8293"],["cba1","\u828A\u8283\u8284\u8C78\u8FC9\u8FBF\u909F\u90A1\u90A5\u909E\u90A7\u90A0\u9630\u9628\u962F\u962D\u4E33\u4F98\u4F7C\u4F85\u4F7D\u4F80\u4F87\u4F76\u4F74\u4F89\u4F84\u4F77\u4F4C\u4F97\u4F6A\u4F9A\u4F79\u4F81\u4F78\u4F90\u4F9C\u4F94\u4F9E\u4F92\u4F82\u4F95\u4F6B\u4F6E\u519E\u51BC\u51BE\u5235\u5232\u5233\u5246\u5231\u52BC\u530A\u530B\u533C\u5392\u5394\u5487\u547F\u5481\u5491\u5482\u5488\u546B\u547A\u547E\u5465\u546C\u5474\u5466\u548D\u546F\u5461\u5460\u5498\u5463\u5467\u5464\u56F7\u56F9\u576F\u5772\u576D\u576B\u5771\u5770\u5776\u5780\u5775\u577B\u5773\u5774\u5762"],["cc40","\u5768\u577D\u590C\u5945\u59B5\u59BA\u59CF\u59CE\u59B2\u59CC\u59C1\u59B6\u59BC\u59C3\u59D6\u59B1\u59BD\u59C0\u59C8\u59B4\u59C7\u5B62\u5B65\u5B93\u5B95\u5C44\u5C47\u5CAE\u5CA4\u5CA0\u5CB5\u5CAF\u5CA8\u5CAC\u5C9F\u5CA3\u5CAD\u5CA2\u5CAA\u5CA7\u5C9D\u5CA5\u5CB6\u5CB0\u5CA6\u5E17\u5E14\u5E19\u5F28\u5F22\u5F23\u5F24\u5F54\u5F82\u5F7E\u5F7D\u5FDE\u5FE5\u602D\u6026\u6019\u6032\u600B"],["cca1","\u6034\u600A\u6017\u6033\u601A\u601E\u602C\u6022\u600D\u6010\u602E\u6013\u6011\u600C\u6009\u601C\u6214\u623D\u62AD\u62B4\u62D1\u62BE\u62AA\u62B6\u62CA\u62AE\u62B3\u62AF\u62BB\u62A9\u62B0\u62B8\u653D\u65A8\u65BB\u6609\u65FC\u6604\u6612\u6608\u65FB\u6603\u660B\u660D\u6605\u65FD\u6611\u6610\u66F6\u670A\u6785\u676C\u678E\u6792\u6776\u677B\u6798\u6786\u6784\u6774\u678D\u678C\u677A\u679F\u6791\u6799\u6783\u677D\u6781\u6778\u6779\u6794\u6B25\u6B80\u6B7E\u6BDE\u6C1D\u6C93\u6CEC\u6CEB\u6CEE\u6CD9\u6CB6\u6CD4\u6CAD\u6CE7\u6CB7\u6CD0\u6CC2\u6CBA\u6CC3\u6CC6\u6CED\u6CF2"],["cd40","\u6CD2\u6CDD\u6CB4\u6C8A\u6C9D\u6C80\u6CDE\u6CC0\u6D30\u6CCD\u6CC7\u6CB0\u6CF9\u6CCF\u6CE9\u6CD1\u7094\u7098\u7085\u7093\u7086\u7084\u7091\u7096\u7082\u709A\u7083\u726A\u72D6\u72CB\u72D8\u72C9\u72DC\u72D2\u72D4\u72DA\u72CC\u72D1\u73A4\u73A1\u73AD\u73A6\u73A2\u73A0\u73AC\u739D\u74DD\u74E8\u753F\u7540\u753E\u758C\u7598\u76AF\u76F3\u76F1\u76F0\u76F5\u77F8\u77FC\u77F9\u77FB\u77FA"],["cda1","\u77F7\u7942\u793F\u79C5\u7A78\u7A7B\u7AFB\u7C75\u7CFD\u8035\u808F\u80AE\u80A3\u80B8\u80B5\u80AD\u8220\u82A0\u82C0\u82AB\u829A\u8298\u829B\u82B5\u82A7\u82AE\u82BC\u829E\u82BA\u82B4\u82A8\u82A1\u82A9\u82C2\u82A4\u82C3\u82B6\u82A2\u8670\u866F\u866D\u866E\u8C56\u8FD2\u8FCB\u8FD3\u8FCD\u8FD6\u8FD5\u8FD7\u90B2\u90B4\u90AF\u90B3\u90B0\u9639\u963D\u963C\u963A\u9643\u4FCD\u4FC5\u4FD3\u4FB2\u4FC9\u4FCB\u4FC1\u4FD4\u4FDC\u4FD9\u4FBB\u4FB3\u4FDB\u4FC7\u4FD6\u4FBA\u4FC0\u4FB9\u4FEC\u5244\u5249\u52C0\u52C2\u533D\u537C\u5397\u5396\u5399\u5398\u54BA\u54A1\u54AD\u54A5\u54CF"],["ce40","\u54C3\u830D\u54B7\u54AE\u54D6\u54B6\u54C5\u54C6\u54A0\u5470\u54BC\u54A2\u54BE\u5472\u54DE\u54B0\u57B5\u579E\u579F\u57A4\u578C\u5797\u579D\u579B\u5794\u5798\u578F\u5799\u57A5\u579A\u5795\u58F4\u590D\u5953\u59E1\u59DE\u59EE\u5A00\u59F1\u59DD\u59FA\u59FD\u59FC\u59F6\u59E4\u59F2\u59F7\u59DB\u59E9\u59F3\u59F5\u59E0\u59FE\u59F4\u59ED\u5BA8\u5C4C\u5CD0\u5CD8\u5CCC\u5CD7\u5CCB\u5CDB"],["cea1","\u5CDE\u5CDA\u5CC9\u5CC7\u5CCA\u5CD6\u5CD3\u5CD4\u5CCF\u5CC8\u5CC6\u5CCE\u5CDF\u5CF8\u5DF9\u5E21\u5E22\u5E23\u5E20\u5E24\u5EB0\u5EA4\u5EA2\u5E9B\u5EA3\u5EA5\u5F07\u5F2E\u5F56\u5F86\u6037\u6039\u6054\u6072\u605E\u6045\u6053\u6047\u6049\u605B\u604C\u6040\u6042\u605F\u6024\u6044\u6058\u6066\u606E\u6242\u6243\u62CF\u630D\u630B\u62F5\u630E\u6303\u62EB\u62F9\u630F\u630C\u62F8\u62F6\u6300\u6313\u6314\u62FA\u6315\u62FB\u62F0\u6541\u6543\u65AA\u65BF\u6636\u6621\u6632\u6635\u661C\u6626\u6622\u6633\u662B\u663A\u661D\u6634\u6639\u662E\u670F\u6710\u67C1\u67F2\u67C8\u67BA"],["cf40","\u67DC\u67BB\u67F8\u67D8\u67C0\u67B7\u67C5\u67EB\u67E4\u67DF\u67B5\u67CD\u67B3\u67F7\u67F6\u67EE\u67E3\u67C2\u67B9\u67CE\u67E7\u67F0\u67B2\u67FC\u67C6\u67ED\u67CC\u67AE\u67E6\u67DB\u67FA\u67C9\u67CA\u67C3\u67EA\u67CB\u6B28\u6B82\u6B84\u6BB6\u6BD6\u6BD8\u6BE0\u6C20\u6C21\u6D28\u6D34\u6D2D\u6D1F\u6D3C\u6D3F\u6D12\u6D0A\u6CDA\u6D33\u6D04\u6D19\u6D3A\u6D1A\u6D11\u6D00\u6D1D\u6D42"],["cfa1","\u6D01\u6D18\u6D37\u6D03\u6D0F\u6D40\u6D07\u6D20\u6D2C\u6D08\u6D22\u6D09\u6D10\u70B7\u709F\u70BE\u70B1\u70B0\u70A1\u70B4\u70B5\u70A9\u7241\u7249\u724A\u726C\u7270\u7273\u726E\u72CA\u72E4\u72E8\u72EB\u72DF\u72EA\u72E6\u72E3\u7385\u73CC\u73C2\u73C8\u73C5\u73B9\u73B6\u73B5\u73B4\u73EB\u73BF\u73C7\u73BE\u73C3\u73C6\u73B8\u73CB\u74EC\u74EE\u752E\u7547\u7548\u75A7\u75AA\u7679\u76C4\u7708\u7703\u7704\u7705\u770A\u76F7\u76FB\u76FA\u77E7\u77E8\u7806\u7811\u7812\u7805\u7810\u780F\u780E\u7809\u7803\u7813\u794A\u794C\u794B\u7945\u7944\u79D5\u79CD\u79CF\u79D6\u79CE\u7A80"],["d040","\u7A7E\u7AD1\u7B00\u7B01\u7C7A\u7C78\u7C79\u7C7F\u7C80\u7C81\u7D03\u7D08\u7D01\u7F58\u7F91\u7F8D\u7FBE\u8007\u800E\u800F\u8014\u8037\u80D8\u80C7\u80E0\u80D1\u80C8\u80C2\u80D0\u80C5\u80E3\u80D9\u80DC\u80CA\u80D5\u80C9\u80CF\u80D7\u80E6\u80CD\u81FF\u8221\u8294\u82D9\u82FE\u82F9\u8307\u82E8\u8300\u82D5\u833A\u82EB\u82D6\u82F4\u82EC\u82E1\u82F2\u82F5\u830C\u82FB\u82F6\u82F0\u82EA"],["d0a1","\u82E4\u82E0\u82FA\u82F3\u82ED\u8677\u8674\u867C\u8673\u8841\u884E\u8867\u886A\u8869\u89D3\u8A04\u8A07\u8D72\u8FE3\u8FE1\u8FEE\u8FE0\u90F1\u90BD\u90BF\u90D5\u90C5\u90BE\u90C7\u90CB\u90C8\u91D4\u91D3\u9654\u964F\u9651\u9653\u964A\u964E\u501E\u5005\u5007\u5013\u5022\u5030\u501B\u4FF5\u4FF4\u5033\u5037\u502C\u4FF6\u4FF7\u5017\u501C\u5020\u5027\u5035\u502F\u5031\u500E\u515A\u5194\u5193\u51CA\u51C4\u51C5\u51C8\u51CE\u5261\u525A\u5252\u525E\u525F\u5255\u5262\u52CD\u530E\u539E\u5526\u54E2\u5517\u5512\u54E7\u54F3\u54E4\u551A\u54FF\u5504\u5508\u54EB\u5511\u5505\u54F1"],["d140","\u550A\u54FB\u54F7\u54F8\u54E0\u550E\u5503\u550B\u5701\u5702\u57CC\u5832\u57D5\u57D2\u57BA\u57C6\u57BD\u57BC\u57B8\u57B6\u57BF\u57C7\u57D0\u57B9\u57C1\u590E\u594A\u5A19\u5A16\u5A2D\u5A2E\u5A15\u5A0F\u5A17\u5A0A\u5A1E\u5A33\u5B6C\u5BA7\u5BAD\u5BAC\u5C03\u5C56\u5C54\u5CEC\u5CFF\u5CEE\u5CF1\u5CF7\u5D00\u5CF9\u5E29\u5E28\u5EA8\u5EAE\u5EAA\u5EAC\u5F33\u5F30\u5F67\u605D\u605A\u6067"],["d1a1","\u6041\u60A2\u6088\u6080\u6092\u6081\u609D\u6083\u6095\u609B\u6097\u6087\u609C\u608E\u6219\u6246\u62F2\u6310\u6356\u632C\u6344\u6345\u6336\u6343\u63E4\u6339\u634B\u634A\u633C\u6329\u6341\u6334\u6358\u6354\u6359\u632D\u6347\u6333\u635A\u6351\u6338\u6357\u6340\u6348\u654A\u6546\u65C6\u65C3\u65C4\u65C2\u664A\u665F\u6647\u6651\u6712\u6713\u681F\u681A\u6849\u6832\u6833\u683B\u684B\u684F\u6816\u6831\u681C\u6835\u682B\u682D\u682F\u684E\u6844\u6834\u681D\u6812\u6814\u6826\u6828\u682E\u684D\u683A\u6825\u6820\u6B2C\u6B2F\u6B2D\u6B31\u6B34\u6B6D\u8082\u6B88\u6BE6\u6BE4"],["d240","\u6BE8\u6BE3\u6BE2\u6BE7\u6C25\u6D7A\u6D63\u6D64\u6D76\u6D0D\u6D61\u6D92\u6D58\u6D62\u6D6D\u6D6F\u6D91\u6D8D\u6DEF\u6D7F\u6D86\u6D5E\u6D67\u6D60\u6D97\u6D70\u6D7C\u6D5F\u6D82\u6D98\u6D2F\u6D68\u6D8B\u6D7E\u6D80\u6D84\u6D16\u6D83\u6D7B\u6D7D\u6D75\u6D90\u70DC\u70D3\u70D1\u70DD\u70CB\u7F39\u70E2\u70D7\u70D2\u70DE\u70E0\u70D4\u70CD\u70C5\u70C6\u70C7\u70DA\u70CE\u70E1\u7242\u7278"],["d2a1","\u7277\u7276\u7300\u72FA\u72F4\u72FE\u72F6\u72F3\u72FB\u7301\u73D3\u73D9\u73E5\u73D6\u73BC\u73E7\u73E3\u73E9\u73DC\u73D2\u73DB\u73D4\u73DD\u73DA\u73D7\u73D8\u73E8\u74DE\u74DF\u74F4\u74F5\u7521\u755B\u755F\u75B0\u75C1\u75BB\u75C4\u75C0\u75BF\u75B6\u75BA\u768A\u76C9\u771D\u771B\u7710\u7713\u7712\u7723\u7711\u7715\u7719\u771A\u7722\u7727\u7823\u782C\u7822\u7835\u782F\u7828\u782E\u782B\u7821\u7829\u7833\u782A\u7831\u7954\u795B\u794F\u795C\u7953\u7952\u7951\u79EB\u79EC\u79E0\u79EE\u79ED\u79EA\u79DC\u79DE\u79DD\u7A86\u7A89\u7A85\u7A8B\u7A8C\u7A8A\u7A87\u7AD8\u7B10"],["d340","\u7B04\u7B13\u7B05\u7B0F\u7B08\u7B0A\u7B0E\u7B09\u7B12\u7C84\u7C91\u7C8A\u7C8C\u7C88\u7C8D\u7C85\u7D1E\u7D1D\u7D11\u7D0E\u7D18\u7D16\u7D13\u7D1F\u7D12\u7D0F\u7D0C\u7F5C\u7F61\u7F5E\u7F60\u7F5D\u7F5B\u7F96\u7F92\u7FC3\u7FC2\u7FC0\u8016\u803E\u8039\u80FA\u80F2\u80F9\u80F5\u8101\u80FB\u8100\u8201\u822F\u8225\u8333\u832D\u8344\u8319\u8351\u8325\u8356\u833F\u8341\u8326\u831C\u8322"],["d3a1","\u8342\u834E\u831B\u832A\u8308\u833C\u834D\u8316\u8324\u8320\u8337\u832F\u8329\u8347\u8345\u834C\u8353\u831E\u832C\u834B\u8327\u8348\u8653\u8652\u86A2\u86A8\u8696\u868D\u8691\u869E\u8687\u8697\u8686\u868B\u869A\u8685\u86A5\u8699\u86A1\u86A7\u8695\u8698\u868E\u869D\u8690\u8694\u8843\u8844\u886D\u8875\u8876\u8872\u8880\u8871\u887F\u886F\u8883\u887E\u8874\u887C\u8A12\u8C47\u8C57\u8C7B\u8CA4\u8CA3\u8D76\u8D78\u8DB5\u8DB7\u8DB6\u8ED1\u8ED3\u8FFE\u8FF5\u9002\u8FFF\u8FFB\u9004\u8FFC\u8FF6\u90D6\u90E0\u90D9\u90DA\u90E3\u90DF\u90E5\u90D8\u90DB\u90D7\u90DC\u90E4\u9150"],["d440","\u914E\u914F\u91D5\u91E2\u91DA\u965C\u965F\u96BC\u98E3\u9ADF\u9B2F\u4E7F\u5070\u506A\u5061\u505E\u5060\u5053\u504B\u505D\u5072\u5048\u504D\u5041\u505B\u504A\u5062\u5015\u5045\u505F\u5069\u506B\u5063\u5064\u5046\u5040\u506E\u5073\u5057\u5051\u51D0\u526B\u526D\u526C\u526E\u52D6\u52D3\u532D\u539C\u5575\u5576\u553C\u554D\u5550\u5534\u552A\u5551\u5562\u5536\u5535\u5530\u5552\u5545"],["d4a1","\u550C\u5532\u5565\u554E\u5539\u5548\u552D\u553B\u5540\u554B\u570A\u5707\u57FB\u5814\u57E2\u57F6\u57DC\u57F4\u5800\u57ED\u57FD\u5808\u57F8\u580B\u57F3\u57CF\u5807\u57EE\u57E3\u57F2\u57E5\u57EC\u57E1\u580E\u57FC\u5810\u57E7\u5801\u580C\u57F1\u57E9\u57F0\u580D\u5804\u595C\u5A60\u5A58\u5A55\u5A67\u5A5E\u5A38\u5A35\u5A6D\u5A50\u5A5F\u5A65\u5A6C\u5A53\u5A64\u5A57\u5A43\u5A5D\u5A52\u5A44\u5A5B\u5A48\u5A8E\u5A3E\u5A4D\u5A39\u5A4C\u5A70\u5A69\u5A47\u5A51\u5A56\u5A42\u5A5C\u5B72\u5B6E\u5BC1\u5BC0\u5C59\u5D1E\u5D0B\u5D1D\u5D1A\u5D20\u5D0C\u5D28\u5D0D\u5D26\u5D25\u5D0F"],["d540","\u5D30\u5D12\u5D23\u5D1F\u5D2E\u5E3E\u5E34\u5EB1\u5EB4\u5EB9\u5EB2\u5EB3\u5F36\u5F38\u5F9B\u5F96\u5F9F\u608A\u6090\u6086\u60BE\u60B0\u60BA\u60D3\u60D4\u60CF\u60E4\u60D9\u60DD\u60C8\u60B1\u60DB\u60B7\u60CA\u60BF\u60C3\u60CD\u60C0\u6332\u6365\u638A\u6382\u637D\u63BD\u639E\u63AD\u639D\u6397\u63AB\u638E\u636F\u6387\u6390\u636E\u63AF\u6375\u639C\u636D\u63AE\u637C\u63A4\u633B\u639F"],["d5a1","\u6378\u6385\u6381\u6391\u638D\u6370\u6553\u65CD\u6665\u6661\u665B\u6659\u665C\u6662\u6718\u6879\u6887\u6890\u689C\u686D\u686E\u68AE\u68AB\u6956\u686F\u68A3\u68AC\u68A9\u6875\u6874\u68B2\u688F\u6877\u6892\u687C\u686B\u6872\u68AA\u6880\u6871\u687E\u689B\u6896\u688B\u68A0\u6889\u68A4\u6878\u687B\u6891\u688C\u688A\u687D\u6B36\u6B33\u6B37\u6B38\u6B91\u6B8F\u6B8D\u6B8E\u6B8C\u6C2A\u6DC0\u6DAB\u6DB4\u6DB3\u6E74\u6DAC\u6DE9\u6DE2\u6DB7\u6DF6\u6DD4\u6E00\u6DC8\u6DE0\u6DDF\u6DD6\u6DBE\u6DE5\u6DDC\u6DDD\u6DDB\u6DF4\u6DCA\u6DBD\u6DED\u6DF0\u6DBA\u6DD5\u6DC2\u6DCF\u6DC9"],["d640","\u6DD0\u6DF2\u6DD3\u6DFD\u6DD7\u6DCD\u6DE3\u6DBB\u70FA\u710D\u70F7\u7117\u70F4\u710C\u70F0\u7104\u70F3\u7110\u70FC\u70FF\u7106\u7113\u7100\u70F8\u70F6\u710B\u7102\u710E\u727E\u727B\u727C\u727F\u731D\u7317\u7307\u7311\u7318\u730A\u7308\u72FF\u730F\u731E\u7388\u73F6\u73F8\u73F5\u7404\u7401\u73FD\u7407\u7400\u73FA\u73FC\u73FF\u740C\u740B\u73F4\u7408\u7564\u7563\u75CE\u75D2\u75CF"],["d6a1","\u75CB\u75CC\u75D1\u75D0\u768F\u7689\u76D3\u7739\u772F\u772D\u7731\u7732\u7734\u7733\u773D\u7725\u773B\u7735\u7848\u7852\u7849\u784D\u784A\u784C\u7826\u7845\u7850\u7964\u7967\u7969\u796A\u7963\u796B\u7961\u79BB\u79FA\u79F8\u79F6\u79F7\u7A8F\u7A94\u7A90\u7B35\u7B47\u7B34\u7B25\u7B30\u7B22\u7B24\u7B33\u7B18\u7B2A\u7B1D\u7B31\u7B2B\u7B2D\u7B2F\u7B32\u7B38\u7B1A\u7B23\u7C94\u7C98\u7C96\u7CA3\u7D35\u7D3D\u7D38\u7D36\u7D3A\u7D45\u7D2C\u7D29\u7D41\u7D47\u7D3E\u7D3F\u7D4A\u7D3B\u7D28\u7F63\u7F95\u7F9C\u7F9D\u7F9B\u7FCA\u7FCB\u7FCD\u7FD0\u7FD1\u7FC7\u7FCF\u7FC9\u801F"],["d740","\u801E\u801B\u8047\u8043\u8048\u8118\u8125\u8119\u811B\u812D\u811F\u812C\u811E\u8121\u8115\u8127\u811D\u8122\u8211\u8238\u8233\u823A\u8234\u8232\u8274\u8390\u83A3\u83A8\u838D\u837A\u8373\u83A4\u8374\u838F\u8381\u8395\u8399\u8375\u8394\u83A9\u837D\u8383\u838C\u839D\u839B\u83AA\u838B\u837E\u83A5\u83AF\u8388\u8397\u83B0\u837F\u83A6\u8387\u83AE\u8376\u839A\u8659\u8656\u86BF\u86B7"],["d7a1","\u86C2\u86C1\u86C5\u86BA\u86B0\u86C8\u86B9\u86B3\u86B8\u86CC\u86B4\u86BB\u86BC\u86C3\u86BD\u86BE\u8852\u8889\u8895\u88A8\u88A2\u88AA\u889A\u8891\u88A1\u889F\u8898\u88A7\u8899\u889B\u8897\u88A4\u88AC\u888C\u8893\u888E\u8982\u89D6\u89D9\u89D5\u8A30\u8A27\u8A2C\u8A1E\u8C39\u8C3B\u8C5C\u8C5D\u8C7D\u8CA5\u8D7D\u8D7B\u8D79\u8DBC\u8DC2\u8DB9\u8DBF\u8DC1\u8ED8\u8EDE\u8EDD\u8EDC\u8ED7\u8EE0\u8EE1\u9024\u900B\u9011\u901C\u900C\u9021\u90EF\u90EA\u90F0\u90F4\u90F2\u90F3\u90D4\u90EB\u90EC\u90E9\u9156\u9158\u915A\u9153\u9155\u91EC\u91F4\u91F1\u91F3\u91F8\u91E4\u91F9\u91EA"],["d840","\u91EB\u91F7\u91E8\u91EE\u957A\u9586\u9588\u967C\u966D\u966B\u9671\u966F\u96BF\u976A\u9804\u98E5\u9997\u509B\u5095\u5094\u509E\u508B\u50A3\u5083\u508C\u508E\u509D\u5068\u509C\u5092\u5082\u5087\u515F\u51D4\u5312\u5311\u53A4\u53A7\u5591\u55A8\u55A5\u55AD\u5577\u5645\u55A2\u5593\u5588\u558F\u55B5\u5581\u55A3\u5592\u55A4\u557D\u558C\u55A6\u557F\u5595\u55A1\u558E\u570C\u5829\u5837"],["d8a1","\u5819\u581E\u5827\u5823\u5828\u57F5\u5848\u5825\u581C\u581B\u5833\u583F\u5836\u582E\u5839\u5838\u582D\u582C\u583B\u5961\u5AAF\u5A94\u5A9F\u5A7A\u5AA2\u5A9E\u5A78\u5AA6\u5A7C\u5AA5\u5AAC\u5A95\u5AAE\u5A37\u5A84\u5A8A\u5A97\u5A83\u5A8B\u5AA9\u5A7B\u5A7D\u5A8C\u5A9C\u5A8F\u5A93\u5A9D\u5BEA\u5BCD\u5BCB\u5BD4\u5BD1\u5BCA\u5BCE\u5C0C\u5C30\u5D37\u5D43\u5D6B\u5D41\u5D4B\u5D3F\u5D35\u5D51\u5D4E\u5D55\u5D33\u5D3A\u5D52\u5D3D\u5D31\u5D59\u5D42\u5D39\u5D49\u5D38\u5D3C\u5D32\u5D36\u5D40\u5D45\u5E44\u5E41\u5F58\u5FA6\u5FA5\u5FAB\u60C9\u60B9\u60CC\u60E2\u60CE\u60C4\u6114"],["d940","\u60F2\u610A\u6116\u6105\u60F5\u6113\u60F8\u60FC\u60FE\u60C1\u6103\u6118\u611D\u6110\u60FF\u6104\u610B\u624A\u6394\u63B1\u63B0\u63CE\u63E5\u63E8\u63EF\u63C3\u649D\u63F3\u63CA\u63E0\u63F6\u63D5\u63F2\u63F5\u6461\u63DF\u63BE\u63DD\u63DC\u63C4\u63D8\u63D3\u63C2\u63C7\u63CC\u63CB\u63C8\u63F0\u63D7\u63D9\u6532\u6567\u656A\u6564\u655C\u6568\u6565\u658C\u659D\u659E\u65AE\u65D0\u65D2"],["d9a1","\u667C\u666C\u667B\u6680\u6671\u6679\u666A\u6672\u6701\u690C\u68D3\u6904\u68DC\u692A\u68EC\u68EA\u68F1\u690F\u68D6\u68F7\u68EB\u68E4\u68F6\u6913\u6910\u68F3\u68E1\u6907\u68CC\u6908\u6970\u68B4\u6911\u68EF\u68C6\u6914\u68F8\u68D0\u68FD\u68FC\u68E8\u690B\u690A\u6917\u68CE\u68C8\u68DD\u68DE\u68E6\u68F4\u68D1\u6906\u68D4\u68E9\u6915\u6925\u68C7\u6B39\u6B3B\u6B3F\u6B3C\u6B94\u6B97\u6B99\u6B95\u6BBD\u6BF0\u6BF2\u6BF3\u6C30\u6DFC\u6E46\u6E47\u6E1F\u6E49\u6E88\u6E3C\u6E3D\u6E45\u6E62\u6E2B\u6E3F\u6E41\u6E5D\u6E73\u6E1C\u6E33\u6E4B\u6E40\u6E51\u6E3B\u6E03\u6E2E\u6E5E"],["da40","\u6E68\u6E5C\u6E61\u6E31\u6E28\u6E60\u6E71\u6E6B\u6E39\u6E22\u6E30\u6E53\u6E65\u6E27\u6E78\u6E64\u6E77\u6E55\u6E79\u6E52\u6E66\u6E35\u6E36\u6E5A\u7120\u711E\u712F\u70FB\u712E\u7131\u7123\u7125\u7122\u7132\u711F\u7128\u713A\u711B\u724B\u725A\u7288\u7289\u7286\u7285\u728B\u7312\u730B\u7330\u7322\u7331\u7333\u7327\u7332\u732D\u7326\u7323\u7335\u730C\u742E\u742C\u7430\u742B\u7416"],["daa1","\u741A\u7421\u742D\u7431\u7424\u7423\u741D\u7429\u7420\u7432\u74FB\u752F\u756F\u756C\u75E7\u75DA\u75E1\u75E6\u75DD\u75DF\u75E4\u75D7\u7695\u7692\u76DA\u7746\u7747\u7744\u774D\u7745\u774A\u774E\u774B\u774C\u77DE\u77EC\u7860\u7864\u7865\u785C\u786D\u7871\u786A\u786E\u7870\u7869\u7868\u785E\u7862\u7974\u7973\u7972\u7970\u7A02\u7A0A\u7A03\u7A0C\u7A04\u7A99\u7AE6\u7AE4\u7B4A\u7B3B\u7B44\u7B48\u7B4C\u7B4E\u7B40\u7B58\u7B45\u7CA2\u7C9E\u7CA8\u7CA1\u7D58\u7D6F\u7D63\u7D53\u7D56\u7D67\u7D6A\u7D4F\u7D6D\u7D5C\u7D6B\u7D52\u7D54\u7D69\u7D51\u7D5F\u7D4E\u7F3E\u7F3F\u7F65"],["db40","\u7F66\u7FA2\u7FA0\u7FA1\u7FD7\u8051\u804F\u8050\u80FE\u80D4\u8143\u814A\u8152\u814F\u8147\u813D\u814D\u813A\u81E6\u81EE\u81F7\u81F8\u81F9\u8204\u823C\u823D\u823F\u8275\u833B\u83CF\u83F9\u8423\u83C0\u83E8\u8412\u83E7\u83E4\u83FC\u83F6\u8410\u83C6\u83C8\u83EB\u83E3\u83BF\u8401\u83DD\u83E5\u83D8\u83FF\u83E1\u83CB\u83CE\u83D6\u83F5\u83C9\u8409\u840F\u83DE\u8411\u8406\u83C2\u83F3"],["dba1","\u83D5\u83FA\u83C7\u83D1\u83EA\u8413\u83C3\u83EC\u83EE\u83C4\u83FB\u83D7\u83E2\u841B\u83DB\u83FE\u86D8\u86E2\u86E6\u86D3\u86E3\u86DA\u86EA\u86DD\u86EB\u86DC\u86EC\u86E9\u86D7\u86E8\u86D1\u8848\u8856\u8855\u88BA\u88D7\u88B9\u88B8\u88C0\u88BE\u88B6\u88BC\u88B7\u88BD\u88B2\u8901\u88C9\u8995\u8998\u8997\u89DD\u89DA\u89DB\u8A4E\u8A4D\u8A39\u8A59\u8A40\u8A57\u8A58\u8A44\u8A45\u8A52\u8A48\u8A51\u8A4A\u8A4C\u8A4F\u8C5F\u8C81\u8C80\u8CBA\u8CBE\u8CB0\u8CB9\u8CB5\u8D84\u8D80\u8D89\u8DD8\u8DD3\u8DCD\u8DC7\u8DD6\u8DDC\u8DCF\u8DD5\u8DD9\u8DC8\u8DD7\u8DC5\u8EEF\u8EF7\u8EFA"],["dc40","\u8EF9\u8EE6\u8EEE\u8EE5\u8EF5\u8EE7\u8EE8\u8EF6\u8EEB\u8EF1\u8EEC\u8EF4\u8EE9\u902D\u9034\u902F\u9106\u912C\u9104\u90FF\u90FC\u9108\u90F9\u90FB\u9101\u9100\u9107\u9105\u9103\u9161\u9164\u915F\u9162\u9160\u9201\u920A\u9225\u9203\u921A\u9226\u920F\u920C\u9200\u9212\u91FF\u91FD\u9206\u9204\u9227\u9202\u921C\u9224\u9219\u9217\u9205\u9216\u957B\u958D\u958C\u9590\u9687\u967E\u9688"],["dca1","\u9689\u9683\u9680\u96C2\u96C8\u96C3\u96F1\u96F0\u976C\u9770\u976E\u9807\u98A9\u98EB\u9CE6\u9EF9\u4E83\u4E84\u4EB6\u50BD\u50BF\u50C6\u50AE\u50C4\u50CA\u50B4\u50C8\u50C2\u50B0\u50C1\u50BA\u50B1\u50CB\u50C9\u50B6\u50B8\u51D7\u527A\u5278\u527B\u527C\u55C3\u55DB\u55CC\u55D0\u55CB\u55CA\u55DD\u55C0\u55D4\u55C4\u55E9\u55BF\u55D2\u558D\u55CF\u55D5\u55E2\u55D6\u55C8\u55F2\u55CD\u55D9\u55C2\u5714\u5853\u5868\u5864\u584F\u584D\u5849\u586F\u5855\u584E\u585D\u5859\u5865\u585B\u583D\u5863\u5871\u58FC\u5AC7\u5AC4\u5ACB\u5ABA\u5AB8\u5AB1\u5AB5\u5AB0\u5ABF\u5AC8\u5ABB\u5AC6"],["dd40","\u5AB7\u5AC0\u5ACA\u5AB4\u5AB6\u5ACD\u5AB9\u5A90\u5BD6\u5BD8\u5BD9\u5C1F\u5C33\u5D71\u5D63\u5D4A\u5D65\u5D72\u5D6C\u5D5E\u5D68\u5D67\u5D62\u5DF0\u5E4F\u5E4E\u5E4A\u5E4D\u5E4B\u5EC5\u5ECC\u5EC6\u5ECB\u5EC7\u5F40\u5FAF\u5FAD\u60F7\u6149\u614A\u612B\u6145\u6136\u6132\u612E\u6146\u612F\u614F\u6129\u6140\u6220\u9168\u6223\u6225\u6224\u63C5\u63F1\u63EB\u6410\u6412\u6409\u6420\u6424"],["dda1","\u6433\u6443\u641F\u6415\u6418\u6439\u6437\u6422\u6423\u640C\u6426\u6430\u6428\u6441\u6435\u642F\u640A\u641A\u6440\u6425\u6427\u640B\u63E7\u641B\u642E\u6421\u640E\u656F\u6592\u65D3\u6686\u668C\u6695\u6690\u668B\u668A\u6699\u6694\u6678\u6720\u6966\u695F\u6938\u694E\u6962\u6971\u693F\u6945\u696A\u6939\u6942\u6957\u6959\u697A\u6948\u6949\u6935\u696C\u6933\u693D\u6965\u68F0\u6978\u6934\u6969\u6940\u696F\u6944\u6976\u6958\u6941\u6974\u694C\u693B\u694B\u6937\u695C\u694F\u6951\u6932\u6952\u692F\u697B\u693C\u6B46\u6B45\u6B43\u6B42\u6B48\u6B41\u6B9B\uFA0D\u6BFB\u6BFC"],["de40","\u6BF9\u6BF7\u6BF8\u6E9B\u6ED6\u6EC8\u6E8F\u6EC0\u6E9F\u6E93\u6E94\u6EA0\u6EB1\u6EB9\u6EC6\u6ED2\u6EBD\u6EC1\u6E9E\u6EC9\u6EB7\u6EB0\u6ECD\u6EA6\u6ECF\u6EB2\u6EBE\u6EC3\u6EDC\u6ED8\u6E99\u6E92\u6E8E\u6E8D\u6EA4\u6EA1\u6EBF\u6EB3\u6ED0\u6ECA\u6E97\u6EAE\u6EA3\u7147\u7154\u7152\u7163\u7160\u7141\u715D\u7162\u7172\u7178\u716A\u7161\u7142\u7158\u7143\u714B\u7170\u715F\u7150\u7153"],["dea1","\u7144\u714D\u715A\u724F\u728D\u728C\u7291\u7290\u728E\u733C\u7342\u733B\u733A\u7340\u734A\u7349\u7444\u744A\u744B\u7452\u7451\u7457\u7440\u744F\u7450\u744E\u7442\u7446\u744D\u7454\u74E1\u74FF\u74FE\u74FD\u751D\u7579\u7577\u6983\u75EF\u760F\u7603\u75F7\u75FE\u75FC\u75F9\u75F8\u7610\u75FB\u75F6\u75ED\u75F5\u75FD\u7699\u76B5\u76DD\u7755\u775F\u7760\u7752\u7756\u775A\u7769\u7767\u7754\u7759\u776D\u77E0\u7887\u789A\u7894\u788F\u7884\u7895\u7885\u7886\u78A1\u7883\u7879\u7899\u7880\u7896\u787B\u797C\u7982\u797D\u7979\u7A11\u7A18\u7A19\u7A12\u7A17\u7A15\u7A22\u7A13"],["df40","\u7A1B\u7A10\u7AA3\u7AA2\u7A9E\u7AEB\u7B66\u7B64\u7B6D\u7B74\u7B69\u7B72\u7B65\u7B73\u7B71\u7B70\u7B61\u7B78\u7B76\u7B63\u7CB2\u7CB4\u7CAF\u7D88\u7D86\u7D80\u7D8D\u7D7F\u7D85\u7D7A\u7D8E\u7D7B\u7D83\u7D7C\u7D8C\u7D94\u7D84\u7D7D\u7D92\u7F6D\u7F6B\u7F67\u7F68\u7F6C\u7FA6\u7FA5\u7FA7\u7FDB\u7FDC\u8021\u8164\u8160\u8177\u815C\u8169\u815B\u8162\u8172\u6721\u815E\u8176\u8167\u816F"],["dfa1","\u8144\u8161\u821D\u8249\u8244\u8240\u8242\u8245\u84F1\u843F\u8456\u8476\u8479\u848F\u848D\u8465\u8451\u8440\u8486\u8467\u8430\u844D\u847D\u845A\u8459\u8474\u8473\u845D\u8507\u845E\u8437\u843A\u8434\u847A\u8443\u8478\u8432\u8445\u8429\u83D9\u844B\u842F\u8442\u842D\u845F\u8470\u8439\u844E\u844C\u8452\u846F\u84C5\u848E\u843B\u8447\u8436\u8433\u8468\u847E\u8444\u842B\u8460\u8454\u846E\u8450\u870B\u8704\u86F7\u870C\u86FA\u86D6\u86F5\u874D\u86F8\u870E\u8709\u8701\u86F6\u870D\u8705\u88D6\u88CB\u88CD\u88CE\u88DE\u88DB\u88DA\u88CC\u88D0\u8985\u899B\u89DF\u89E5\u89E4"],["e040","\u89E1\u89E0\u89E2\u89DC\u89E6\u8A76\u8A86\u8A7F\u8A61\u8A3F\u8A77\u8A82\u8A84\u8A75\u8A83\u8A81\u8A74\u8A7A\u8C3C\u8C4B\u8C4A\u8C65\u8C64\u8C66\u8C86\u8C84\u8C85\u8CCC\u8D68\u8D69\u8D91\u8D8C\u8D8E\u8D8F\u8D8D\u8D93\u8D94\u8D90\u8D92\u8DF0\u8DE0\u8DEC\u8DF1\u8DEE\u8DD0\u8DE9\u8DE3\u8DE2\u8DE7\u8DF2\u8DEB\u8DF4\u8F06\u8EFF\u8F01\u8F00\u8F05\u8F07\u8F08\u8F02\u8F0B\u9052\u903F"],["e0a1","\u9044\u9049\u903D\u9110\u910D\u910F\u9111\u9116\u9114\u910B\u910E\u916E\u916F\u9248\u9252\u9230\u923A\u9266\u9233\u9265\u925E\u9283\u922E\u924A\u9246\u926D\u926C\u924F\u9260\u9267\u926F\u9236\u9261\u9270\u9231\u9254\u9263\u9250\u9272\u924E\u9253\u924C\u9256\u9232\u959F\u959C\u959E\u959B\u9692\u9693\u9691\u9697\u96CE\u96FA\u96FD\u96F8\u96F5\u9773\u9777\u9778\u9772\u980F\u980D\u980E\u98AC\u98F6\u98F9\u99AF\u99B2\u99B0\u99B5\u9AAD\u9AAB\u9B5B\u9CEA\u9CED\u9CE7\u9E80\u9EFD\u50E6\u50D4\u50D7\u50E8\u50F3\u50DB\u50EA\u50DD\u50E4\u50D3\u50EC\u50F0\u50EF\u50E3\u50E0"],["e140","\u51D8\u5280\u5281\u52E9\u52EB\u5330\u53AC\u5627\u5615\u560C\u5612\u55FC\u560F\u561C\u5601\u5613\u5602\u55FA\u561D\u5604\u55FF\u55F9\u5889\u587C\u5890\u5898\u5886\u5881\u587F\u5874\u588B\u587A\u5887\u5891\u588E\u5876\u5882\u5888\u587B\u5894\u588F\u58FE\u596B\u5ADC\u5AEE\u5AE5\u5AD5\u5AEA\u5ADA\u5AED\u5AEB\u5AF3\u5AE2\u5AE0\u5ADB\u5AEC\u5ADE\u5ADD\u5AD9\u5AE8\u5ADF\u5B77\u5BE0"],["e1a1","\u5BE3\u5C63\u5D82\u5D80\u5D7D\u5D86\u5D7A\u5D81\u5D77\u5D8A\u5D89\u5D88\u5D7E\u5D7C\u5D8D\u5D79\u5D7F\u5E58\u5E59\u5E53\u5ED8\u5ED1\u5ED7\u5ECE\u5EDC\u5ED5\u5ED9\u5ED2\u5ED4\u5F44\u5F43\u5F6F\u5FB6\u612C\u6128\u6141\u615E\u6171\u6173\u6152\u6153\u6172\u616C\u6180\u6174\u6154\u617A\u615B\u6165\u613B\u616A\u6161\u6156\u6229\u6227\u622B\u642B\u644D\u645B\u645D\u6474\u6476\u6472\u6473\u647D\u6475\u6466\u64A6\u644E\u6482\u645E\u645C\u644B\u6453\u6460\u6450\u647F\u643F\u646C\u646B\u6459\u6465\u6477\u6573\u65A0\u66A1\u66A0\u669F\u6705\u6704\u6722\u69B1\u69B6\u69C9"],["e240","\u69A0\u69CE\u6996\u69B0\u69AC\u69BC\u6991\u6999\u698E\u69A7\u698D\u69A9\u69BE\u69AF\u69BF\u69C4\u69BD\u69A4\u69D4\u69B9\u69CA\u699A\u69CF\u69B3\u6993\u69AA\u69A1\u699E\u69D9\u6997\u6990\u69C2\u69B5\u69A5\u69C6\u6B4A\u6B4D\u6B4B\u6B9E\u6B9F\u6BA0\u6BC3\u6BC4\u6BFE\u6ECE\u6EF5\u6EF1\u6F03\u6F25\u6EF8\u6F37\u6EFB\u6F2E\u6F09\u6F4E\u6F19\u6F1A\u6F27\u6F18\u6F3B\u6F12\u6EED\u6F0A"],["e2a1","\u6F36\u6F73\u6EF9\u6EEE\u6F2D\u6F40\u6F30\u6F3C\u6F35\u6EEB\u6F07\u6F0E\u6F43\u6F05\u6EFD\u6EF6\u6F39\u6F1C\u6EFC\u6F3A\u6F1F\u6F0D\u6F1E\u6F08\u6F21\u7187\u7190\u7189\u7180\u7185\u7182\u718F\u717B\u7186\u7181\u7197\u7244\u7253\u7297\u7295\u7293\u7343\u734D\u7351\u734C\u7462\u7473\u7471\u7475\u7472\u7467\u746E\u7500\u7502\u7503\u757D\u7590\u7616\u7608\u760C\u7615\u7611\u760A\u7614\u76B8\u7781\u777C\u7785\u7782\u776E\u7780\u776F\u777E\u7783\u78B2\u78AA\u78B4\u78AD\u78A8\u787E\u78AB\u789E\u78A5\u78A0\u78AC\u78A2\u78A4\u7998\u798A\u798B\u7996\u7995\u7994\u7993"],["e340","\u7997\u7988\u7992\u7990\u7A2B\u7A4A\u7A30\u7A2F\u7A28\u7A26\u7AA8\u7AAB\u7AAC\u7AEE\u7B88\u7B9C\u7B8A\u7B91\u7B90\u7B96\u7B8D\u7B8C\u7B9B\u7B8E\u7B85\u7B98\u5284\u7B99\u7BA4\u7B82\u7CBB\u7CBF\u7CBC\u7CBA\u7DA7\u7DB7\u7DC2\u7DA3\u7DAA\u7DC1\u7DC0\u7DC5\u7D9D\u7DCE\u7DC4\u7DC6\u7DCB\u7DCC\u7DAF\u7DB9\u7D96\u7DBC\u7D9F\u7DA6\u7DAE\u7DA9\u7DA1\u7DC9\u7F73\u7FE2\u7FE3\u7FE5\u7FDE"],["e3a1","\u8024\u805D\u805C\u8189\u8186\u8183\u8187\u818D\u818C\u818B\u8215\u8497\u84A4\u84A1\u849F\u84BA\u84CE\u84C2\u84AC\u84AE\u84AB\u84B9\u84B4\u84C1\u84CD\u84AA\u849A\u84B1\u84D0\u849D\u84A7\u84BB\u84A2\u8494\u84C7\u84CC\u849B\u84A9\u84AF\u84A8\u84D6\u8498\u84B6\u84CF\u84A0\u84D7\u84D4\u84D2\u84DB\u84B0\u8491\u8661\u8733\u8723\u8728\u876B\u8740\u872E\u871E\u8721\u8719\u871B\u8743\u872C\u8741\u873E\u8746\u8720\u8732\u872A\u872D\u873C\u8712\u873A\u8731\u8735\u8742\u8726\u8727\u8738\u8724\u871A\u8730\u8711\u88F7\u88E7\u88F1\u88F2\u88FA\u88FE\u88EE\u88FC\u88F6\u88FB"],["e440","\u88F0\u88EC\u88EB\u899D\u89A1\u899F\u899E\u89E9\u89EB\u89E8\u8AAB\u8A99\u8A8B\u8A92\u8A8F\u8A96\u8C3D\u8C68\u8C69\u8CD5\u8CCF\u8CD7\u8D96\u8E09\u8E02\u8DFF\u8E0D\u8DFD\u8E0A\u8E03\u8E07\u8E06\u8E05\u8DFE\u8E00\u8E04\u8F10\u8F11\u8F0E\u8F0D\u9123\u911C\u9120\u9122\u911F\u911D\u911A\u9124\u9121\u911B\u917A\u9172\u9179\u9173\u92A5\u92A4\u9276\u929B\u927A\u92A0\u9294\u92AA\u928D"],["e4a1","\u92A6\u929A\u92AB\u9279\u9297\u927F\u92A3\u92EE\u928E\u9282\u9295\u92A2\u927D\u9288\u92A1\u928A\u9286\u928C\u9299\u92A7\u927E\u9287\u92A9\u929D\u928B\u922D\u969E\u96A1\u96FF\u9758\u977D\u977A\u977E\u9783\u9780\u9782\u977B\u9784\u9781\u977F\u97CE\u97CD\u9816\u98AD\u98AE\u9902\u9900\u9907\u999D\u999C\u99C3\u99B9\u99BB\u99BA\u99C2\u99BD\u99C7\u9AB1\u9AE3\u9AE7\u9B3E\u9B3F\u9B60\u9B61\u9B5F\u9CF1\u9CF2\u9CF5\u9EA7\u50FF\u5103\u5130\u50F8\u5106\u5107\u50F6\u50FE\u510B\u510C\u50FD\u510A\u528B\u528C\u52F1\u52EF\u5648\u5642\u564C\u5635\u5641\u564A\u5649\u5646\u5658"],["e540","\u565A\u5640\u5633\u563D\u562C\u563E\u5638\u562A\u563A\u571A\u58AB\u589D\u58B1\u58A0\u58A3\u58AF\u58AC\u58A5\u58A1\u58FF\u5AFF\u5AF4\u5AFD\u5AF7\u5AF6\u5B03\u5AF8\u5B02\u5AF9\u5B01\u5B07\u5B05\u5B0F\u5C67\u5D99\u5D97\u5D9F\u5D92\u5DA2\u5D93\u5D95\u5DA0\u5D9C\u5DA1\u5D9A\u5D9E\u5E69\u5E5D\u5E60\u5E5C\u7DF3\u5EDB\u5EDE\u5EE1\u5F49\u5FB2\u618B\u6183\u6179\u61B1\u61B0\u61A2\u6189"],["e5a1","\u619B\u6193\u61AF\u61AD\u619F\u6192\u61AA\u61A1\u618D\u6166\u61B3\u622D\u646E\u6470\u6496\u64A0\u6485\u6497\u649C\u648F\u648B\u648A\u648C\u64A3\u649F\u6468\u64B1\u6498\u6576\u657A\u6579\u657B\u65B2\u65B3\u66B5\u66B0\u66A9\u66B2\u66B7\u66AA\u66AF\u6A00\u6A06\u6A17\u69E5\u69F8\u6A15\u69F1\u69E4\u6A20\u69FF\u69EC\u69E2\u6A1B\u6A1D\u69FE\u6A27\u69F2\u69EE\u6A14\u69F7\u69E7\u6A40\u6A08\u69E6\u69FB\u6A0D\u69FC\u69EB\u6A09\u6A04\u6A18\u6A25\u6A0F\u69F6\u6A26\u6A07\u69F4\u6A16\u6B51\u6BA5\u6BA3\u6BA2\u6BA6\u6C01\u6C00\u6BFF\u6C02\u6F41\u6F26\u6F7E\u6F87\u6FC6\u6F92"],["e640","\u6F8D\u6F89\u6F8C\u6F62\u6F4F\u6F85\u6F5A\u6F96\u6F76\u6F6C\u6F82\u6F55\u6F72\u6F52\u6F50\u6F57\u6F94\u6F93\u6F5D\u6F00\u6F61\u6F6B\u6F7D\u6F67\u6F90\u6F53\u6F8B\u6F69\u6F7F\u6F95\u6F63\u6F77\u6F6A\u6F7B\u71B2\u71AF\u719B\u71B0\u71A0\u719A\u71A9\u71B5\u719D\u71A5\u719E\u71A4\u71A1\u71AA\u719C\u71A7\u71B3\u7298\u729A\u7358\u7352\u735E\u735F\u7360\u735D\u735B\u7361\u735A\u7359"],["e6a1","\u7362\u7487\u7489\u748A\u7486\u7481\u747D\u7485\u7488\u747C\u7479\u7508\u7507\u757E\u7625\u761E\u7619\u761D\u761C\u7623\u761A\u7628\u761B\u769C\u769D\u769E\u769B\u778D\u778F\u7789\u7788\u78CD\u78BB\u78CF\u78CC\u78D1\u78CE\u78D4\u78C8\u78C3\u78C4\u78C9\u799A\u79A1\u79A0\u799C\u79A2\u799B\u6B76\u7A39\u7AB2\u7AB4\u7AB3\u7BB7\u7BCB\u7BBE\u7BAC\u7BCE\u7BAF\u7BB9\u7BCA\u7BB5\u7CC5\u7CC8\u7CCC\u7CCB\u7DF7\u7DDB\u7DEA\u7DE7\u7DD7\u7DE1\u7E03\u7DFA\u7DE6\u7DF6\u7DF1\u7DF0\u7DEE\u7DDF\u7F76\u7FAC\u7FB0\u7FAD\u7FED\u7FEB\u7FEA\u7FEC\u7FE6\u7FE8\u8064\u8067\u81A3\u819F"],["e740","\u819E\u8195\u81A2\u8199\u8197\u8216\u824F\u8253\u8252\u8250\u824E\u8251\u8524\u853B\u850F\u8500\u8529\u850E\u8509\u850D\u851F\u850A\u8527\u851C\u84FB\u852B\u84FA\u8508\u850C\u84F4\u852A\u84F2\u8515\u84F7\u84EB\u84F3\u84FC\u8512\u84EA\u84E9\u8516\u84FE\u8528\u851D\u852E\u8502\u84FD\u851E\u84F6\u8531\u8526\u84E7\u84E8\u84F0\u84EF\u84F9\u8518\u8520\u8530\u850B\u8519\u852F\u8662"],["e7a1","\u8756\u8763\u8764\u8777\u87E1\u8773\u8758\u8754\u875B\u8752\u8761\u875A\u8751\u875E\u876D\u876A\u8750\u874E\u875F\u875D\u876F\u876C\u877A\u876E\u875C\u8765\u874F\u877B\u8775\u8762\u8767\u8769\u885A\u8905\u890C\u8914\u890B\u8917\u8918\u8919\u8906\u8916\u8911\u890E\u8909\u89A2\u89A4\u89A3\u89ED\u89F0\u89EC\u8ACF\u8AC6\u8AB8\u8AD3\u8AD1\u8AD4\u8AD5\u8ABB\u8AD7\u8ABE\u8AC0\u8AC5\u8AD8\u8AC3\u8ABA\u8ABD\u8AD9\u8C3E\u8C4D\u8C8F\u8CE5\u8CDF\u8CD9\u8CE8\u8CDA\u8CDD\u8CE7\u8DA0\u8D9C\u8DA1\u8D9B\u8E20\u8E23\u8E25\u8E24\u8E2E\u8E15\u8E1B\u8E16\u8E11\u8E19\u8E26\u8E27"],["e840","\u8E14\u8E12\u8E18\u8E13\u8E1C\u8E17\u8E1A\u8F2C\u8F24\u8F18\u8F1A\u8F20\u8F23\u8F16\u8F17\u9073\u9070\u906F\u9067\u906B\u912F\u912B\u9129\u912A\u9132\u9126\u912E\u9185\u9186\u918A\u9181\u9182\u9184\u9180\u92D0\u92C3\u92C4\u92C0\u92D9\u92B6\u92CF\u92F1\u92DF\u92D8\u92E9\u92D7\u92DD\u92CC\u92EF\u92C2\u92E8\u92CA\u92C8\u92CE\u92E6\u92CD\u92D5\u92C9\u92E0\u92DE\u92E7\u92D1\u92D3"],["e8a1","\u92B5\u92E1\u92C6\u92B4\u957C\u95AC\u95AB\u95AE\u95B0\u96A4\u96A2\u96D3\u9705\u9708\u9702\u975A\u978A\u978E\u9788\u97D0\u97CF\u981E\u981D\u9826\u9829\u9828\u9820\u981B\u9827\u98B2\u9908\u98FA\u9911\u9914\u9916\u9917\u9915\u99DC\u99CD\u99CF\u99D3\u99D4\u99CE\u99C9\u99D6\u99D8\u99CB\u99D7\u99CC\u9AB3\u9AEC\u9AEB\u9AF3\u9AF2\u9AF1\u9B46\u9B43\u9B67\u9B74\u9B71\u9B66\u9B76\u9B75\u9B70\u9B68\u9B64\u9B6C\u9CFC\u9CFA\u9CFD\u9CFF\u9CF7\u9D07\u9D00\u9CF9\u9CFB\u9D08\u9D05\u9D04\u9E83\u9ED3\u9F0F\u9F10\u511C\u5113\u5117\u511A\u5111\u51DE\u5334\u53E1\u5670\u5660\u566E"],["e940","\u5673\u5666\u5663\u566D\u5672\u565E\u5677\u571C\u571B\u58C8\u58BD\u58C9\u58BF\u58BA\u58C2\u58BC\u58C6\u5B17\u5B19\u5B1B\u5B21\u5B14\u5B13\u5B10\u5B16\u5B28\u5B1A\u5B20\u5B1E\u5BEF\u5DAC\u5DB1\u5DA9\u5DA7\u5DB5\u5DB0\u5DAE\u5DAA\u5DA8\u5DB2\u5DAD\u5DAF\u5DB4\u5E67\u5E68\u5E66\u5E6F\u5EE9\u5EE7\u5EE6\u5EE8\u5EE5\u5F4B\u5FBC\u619D\u61A8\u6196\u61C5\u61B4\u61C6\u61C1\u61CC\u61BA"],["e9a1","\u61BF\u61B8\u618C\u64D7\u64D6\u64D0\u64CF\u64C9\u64BD\u6489\u64C3\u64DB\u64F3\u64D9\u6533\u657F\u657C\u65A2\u66C8\u66BE\u66C0\u66CA\u66CB\u66CF\u66BD\u66BB\u66BA\u66CC\u6723\u6A34\u6A66\u6A49\u6A67\u6A32\u6A68\u6A3E\u6A5D\u6A6D\u6A76\u6A5B\u6A51\u6A28\u6A5A\u6A3B\u6A3F\u6A41\u6A6A\u6A64\u6A50\u6A4F\u6A54\u6A6F\u6A69\u6A60\u6A3C\u6A5E\u6A56\u6A55\u6A4D\u6A4E\u6A46\u6B55\u6B54\u6B56\u6BA7\u6BAA\u6BAB\u6BC8\u6BC7\u6C04\u6C03\u6C06\u6FAD\u6FCB\u6FA3\u6FC7\u6FBC\u6FCE\u6FC8\u6F5E\u6FC4\u6FBD\u6F9E\u6FCA\u6FA8\u7004\u6FA5\u6FAE\u6FBA\u6FAC\u6FAA\u6FCF\u6FBF\u6FB8"],["ea40","\u6FA2\u6FC9\u6FAB\u6FCD\u6FAF\u6FB2\u6FB0\u71C5\u71C2\u71BF\u71B8\u71D6\u71C0\u71C1\u71CB\u71D4\u71CA\u71C7\u71CF\u71BD\u71D8\u71BC\u71C6\u71DA\u71DB\u729D\u729E\u7369\u7366\u7367\u736C\u7365\u736B\u736A\u747F\u749A\u74A0\u7494\u7492\u7495\u74A1\u750B\u7580\u762F\u762D\u7631\u763D\u7633\u763C\u7635\u7632\u7630\u76BB\u76E6\u779A\u779D\u77A1\u779C\u779B\u77A2\u77A3\u7795\u7799"],["eaa1","\u7797\u78DD\u78E9\u78E5\u78EA\u78DE\u78E3\u78DB\u78E1\u78E2\u78ED\u78DF\u78E0\u79A4\u7A44\u7A48\u7A47\u7AB6\u7AB8\u7AB5\u7AB1\u7AB7\u7BDE\u7BE3\u7BE7\u7BDD\u7BD5\u7BE5\u7BDA\u7BE8\u7BF9\u7BD4\u7BEA\u7BE2\u7BDC\u7BEB\u7BD8\u7BDF\u7CD2\u7CD4\u7CD7\u7CD0\u7CD1\u7E12\u7E21\u7E17\u7E0C\u7E1F\u7E20\u7E13\u7E0E\u7E1C\u7E15\u7E1A\u7E22\u7E0B\u7E0F\u7E16\u7E0D\u7E14\u7E25\u7E24\u7F43\u7F7B\u7F7C\u7F7A\u7FB1\u7FEF\u802A\u8029\u806C\u81B1\u81A6\u81AE\u81B9\u81B5\u81AB\u81B0\u81AC\u81B4\u81B2\u81B7\u81A7\u81F2\u8255\u8256\u8257\u8556\u8545\u856B\u854D\u8553\u8561\u8558"],["eb40","\u8540\u8546\u8564\u8541\u8562\u8544\u8551\u8547\u8563\u853E\u855B\u8571\u854E\u856E\u8575\u8555\u8567\u8560\u858C\u8566\u855D\u8554\u8565\u856C\u8663\u8665\u8664\u879B\u878F\u8797\u8793\u8792\u8788\u8781\u8796\u8798\u8779\u8787\u87A3\u8785\u8790\u8791\u879D\u8784\u8794\u879C\u879A\u8789\u891E\u8926\u8930\u892D\u892E\u8927\u8931\u8922\u8929\u8923\u892F\u892C\u891F\u89F1\u8AE0"],["eba1","\u8AE2\u8AF2\u8AF4\u8AF5\u8ADD\u8B14\u8AE4\u8ADF\u8AF0\u8AC8\u8ADE\u8AE1\u8AE8\u8AFF\u8AEF\u8AFB\u8C91\u8C92\u8C90\u8CF5\u8CEE\u8CF1\u8CF0\u8CF3\u8D6C\u8D6E\u8DA5\u8DA7\u8E33\u8E3E\u8E38\u8E40\u8E45\u8E36\u8E3C\u8E3D\u8E41\u8E30\u8E3F\u8EBD\u8F36\u8F2E\u8F35\u8F32\u8F39\u8F37\u8F34\u9076\u9079\u907B\u9086\u90FA\u9133\u9135\u9136\u9193\u9190\u9191\u918D\u918F\u9327\u931E\u9308\u931F\u9306\u930F\u937A\u9338\u933C\u931B\u9323\u9312\u9301\u9346\u932D\u930E\u930D\u92CB\u931D\u92FA\u9325\u9313\u92F9\u92F7\u9334\u9302\u9324\u92FF\u9329\u9339\u9335\u932A\u9314\u930C"],["ec40","\u930B\u92FE\u9309\u9300\u92FB\u9316\u95BC\u95CD\u95BE\u95B9\u95BA\u95B6\u95BF\u95B5\u95BD\u96A9\u96D4\u970B\u9712\u9710\u9799\u9797\u9794\u97F0\u97F8\u9835\u982F\u9832\u9924\u991F\u9927\u9929\u999E\u99EE\u99EC\u99E5\u99E4\u99F0\u99E3\u99EA\u99E9\u99E7\u9AB9\u9ABF\u9AB4\u9ABB\u9AF6\u9AFA\u9AF9\u9AF7\u9B33\u9B80\u9B85\u9B87\u9B7C\u9B7E\u9B7B\u9B82\u9B93\u9B92\u9B90\u9B7A\u9B95"],["eca1","\u9B7D\u9B88\u9D25\u9D17\u9D20\u9D1E\u9D14\u9D29\u9D1D\u9D18\u9D22\u9D10\u9D19\u9D1F\u9E88\u9E86\u9E87\u9EAE\u9EAD\u9ED5\u9ED6\u9EFA\u9F12\u9F3D\u5126\u5125\u5122\u5124\u5120\u5129\u52F4\u5693\u568C\u568D\u5686\u5684\u5683\u567E\u5682\u567F\u5681\u58D6\u58D4\u58CF\u58D2\u5B2D\u5B25\u5B32\u5B23\u5B2C\u5B27\u5B26\u5B2F\u5B2E\u5B7B\u5BF1\u5BF2\u5DB7\u5E6C\u5E6A\u5FBE\u5FBB\u61C3\u61B5\u61BC\u61E7\u61E0\u61E5\u61E4\u61E8\u61DE\u64EF\u64E9\u64E3\u64EB\u64E4\u64E8\u6581\u6580\u65B6\u65DA\u66D2\u6A8D\u6A96\u6A81\u6AA5\u6A89\u6A9F\u6A9B\u6AA1\u6A9E\u6A87\u6A93\u6A8E"],["ed40","\u6A95\u6A83\u6AA8\u6AA4\u6A91\u6A7F\u6AA6\u6A9A\u6A85\u6A8C\u6A92\u6B5B\u6BAD\u6C09\u6FCC\u6FA9\u6FF4\u6FD4\u6FE3\u6FDC\u6FED\u6FE7\u6FE6\u6FDE\u6FF2\u6FDD\u6FE2\u6FE8\u71E1\u71F1\u71E8\u71F2\u71E4\u71F0\u71E2\u7373\u736E\u736F\u7497\u74B2\u74AB\u7490\u74AA\u74AD\u74B1\u74A5\u74AF\u7510\u7511\u7512\u750F\u7584\u7643\u7648\u7649\u7647\u76A4\u76E9\u77B5\u77AB\u77B2\u77B7\u77B6"],["eda1","\u77B4\u77B1\u77A8\u77F0\u78F3\u78FD\u7902\u78FB\u78FC\u78F2\u7905\u78F9\u78FE\u7904\u79AB\u79A8\u7A5C\u7A5B\u7A56\u7A58\u7A54\u7A5A\u7ABE\u7AC0\u7AC1\u7C05\u7C0F\u7BF2\u7C00\u7BFF\u7BFB\u7C0E\u7BF4\u7C0B\u7BF3\u7C02\u7C09\u7C03\u7C01\u7BF8\u7BFD\u7C06\u7BF0\u7BF1\u7C10\u7C0A\u7CE8\u7E2D\u7E3C\u7E42\u7E33\u9848\u7E38\u7E2A\u7E49\u7E40\u7E47\u7E29\u7E4C\u7E30\u7E3B\u7E36\u7E44\u7E3A\u7F45\u7F7F\u7F7E\u7F7D\u7FF4\u7FF2\u802C\u81BB\u81C4\u81CC\u81CA\u81C5\u81C7\u81BC\u81E9\u825B\u825A\u825C\u8583\u8580\u858F\u85A7\u8595\u85A0\u858B\u85A3\u857B\u85A4\u859A\u859E"],["ee40","\u8577\u857C\u8589\u85A1\u857A\u8578\u8557\u858E\u8596\u8586\u858D\u8599\u859D\u8581\u85A2\u8582\u8588\u8585\u8579\u8576\u8598\u8590\u859F\u8668\u87BE\u87AA\u87AD\u87C5\u87B0\u87AC\u87B9\u87B5\u87BC\u87AE\u87C9\u87C3\u87C2\u87CC\u87B7\u87AF\u87C4\u87CA\u87B4\u87B6\u87BF\u87B8\u87BD\u87DE\u87B2\u8935\u8933\u893C\u893E\u8941\u8952\u8937\u8942\u89AD\u89AF\u89AE\u89F2\u89F3\u8B1E"],["eea1","\u8B18\u8B16\u8B11\u8B05\u8B0B\u8B22\u8B0F\u8B12\u8B15\u8B07\u8B0D\u8B08\u8B06\u8B1C\u8B13\u8B1A\u8C4F\u8C70\u8C72\u8C71\u8C6F\u8C95\u8C94\u8CF9\u8D6F\u8E4E\u8E4D\u8E53\u8E50\u8E4C\u8E47\u8F43\u8F40\u9085\u907E\u9138\u919A\u91A2\u919B\u9199\u919F\u91A1\u919D\u91A0\u93A1\u9383\u93AF\u9364\u9356\u9347\u937C\u9358\u935C\u9376\u9349\u9350\u9351\u9360\u936D\u938F\u934C\u936A\u9379\u9357\u9355\u9352\u934F\u9371\u9377\u937B\u9361\u935E\u9363\u9367\u9380\u934E\u9359\u95C7\u95C0\u95C9\u95C3\u95C5\u95B7\u96AE\u96B0\u96AC\u9720\u971F\u9718\u971D\u9719\u979A\u97A1\u979C"],["ef40","\u979E\u979D\u97D5\u97D4\u97F1\u9841\u9844\u984A\u9849\u9845\u9843\u9925\u992B\u992C\u992A\u9933\u9932\u992F\u992D\u9931\u9930\u9998\u99A3\u99A1\u9A02\u99FA\u99F4\u99F7\u99F9\u99F8\u99F6\u99FB\u99FD\u99FE\u99FC\u9A03\u9ABE\u9AFE\u9AFD\u9B01\u9AFC\u9B48\u9B9A\u9BA8\u9B9E\u9B9B\u9BA6\u9BA1\u9BA5\u9BA4\u9B86\u9BA2\u9BA0\u9BAF\u9D33\u9D41\u9D67\u9D36\u9D2E\u9D2F\u9D31\u9D38\u9D30"],["efa1","\u9D45\u9D42\u9D43\u9D3E\u9D37\u9D40\u9D3D\u7FF5\u9D2D\u9E8A\u9E89\u9E8D\u9EB0\u9EC8\u9EDA\u9EFB\u9EFF\u9F24\u9F23\u9F22\u9F54\u9FA0\u5131\u512D\u512E\u5698\u569C\u5697\u569A\u569D\u5699\u5970\u5B3C\u5C69\u5C6A\u5DC0\u5E6D\u5E6E\u61D8\u61DF\u61ED\u61EE\u61F1\u61EA\u61F0\u61EB\u61D6\u61E9\u64FF\u6504\u64FD\u64F8\u6501\u6503\u64FC\u6594\u65DB\u66DA\u66DB\u66D8\u6AC5\u6AB9\u6ABD\u6AE1\u6AC6\u6ABA\u6AB6\u6AB7\u6AC7\u6AB4\u6AAD\u6B5E\u6BC9\u6C0B\u7007\u700C\u700D\u7001\u7005\u7014\u700E\u6FFF\u7000\u6FFB\u7026\u6FFC\u6FF7\u700A\u7201\u71FF\u71F9\u7203\u71FD\u7376"],["f040","\u74B8\u74C0\u74B5\u74C1\u74BE\u74B6\u74BB\u74C2\u7514\u7513\u765C\u7664\u7659\u7650\u7653\u7657\u765A\u76A6\u76BD\u76EC\u77C2\u77BA\u78FF\u790C\u7913\u7914\u7909\u7910\u7912\u7911\u79AD\u79AC\u7A5F\u7C1C\u7C29\u7C19\u7C20\u7C1F\u7C2D\u7C1D\u7C26\u7C28\u7C22\u7C25\u7C30\u7E5C\u7E50\u7E56\u7E63\u7E58\u7E62\u7E5F\u7E51\u7E60\u7E57\u7E53\u7FB5\u7FB3\u7FF7\u7FF8\u8075\u81D1\u81D2"],["f0a1","\u81D0\u825F\u825E\u85B4\u85C6\u85C0\u85C3\u85C2\u85B3\u85B5\u85BD\u85C7\u85C4\u85BF\u85CB\u85CE\u85C8\u85C5\u85B1\u85B6\u85D2\u8624\u85B8\u85B7\u85BE\u8669\u87E7\u87E6\u87E2\u87DB\u87EB\u87EA\u87E5\u87DF\u87F3\u87E4\u87D4\u87DC\u87D3\u87ED\u87D8\u87E3\u87A4\u87D7\u87D9\u8801\u87F4\u87E8\u87DD\u8953\u894B\u894F\u894C\u8946\u8950\u8951\u8949\u8B2A\u8B27\u8B23\u8B33\u8B30\u8B35\u8B47\u8B2F\u8B3C\u8B3E\u8B31\u8B25\u8B37\u8B26\u8B36\u8B2E\u8B24\u8B3B\u8B3D\u8B3A\u8C42\u8C75\u8C99\u8C98\u8C97\u8CFE\u8D04\u8D02\u8D00\u8E5C\u8E62\u8E60\u8E57\u8E56\u8E5E\u8E65\u8E67"],["f140","\u8E5B\u8E5A\u8E61\u8E5D\u8E69\u8E54\u8F46\u8F47\u8F48\u8F4B\u9128\u913A\u913B\u913E\u91A8\u91A5\u91A7\u91AF\u91AA\u93B5\u938C\u9392\u93B7\u939B\u939D\u9389\u93A7\u938E\u93AA\u939E\u93A6\u9395\u9388\u9399\u939F\u938D\u93B1\u9391\u93B2\u93A4\u93A8\u93B4\u93A3\u93A5\u95D2\u95D3\u95D1\u96B3\u96D7\u96DA\u5DC2\u96DF\u96D8\u96DD\u9723\u9722\u9725\u97AC\u97AE\u97A8\u97AB\u97A4\u97AA"],["f1a1","\u97A2\u97A5\u97D7\u97D9\u97D6\u97D8\u97FA\u9850\u9851\u9852\u98B8\u9941\u993C\u993A\u9A0F\u9A0B\u9A09\u9A0D\u9A04\u9A11\u9A0A\u9A05\u9A07\u9A06\u9AC0\u9ADC\u9B08\u9B04\u9B05\u9B29\u9B35\u9B4A\u9B4C\u9B4B\u9BC7\u9BC6\u9BC3\u9BBF\u9BC1\u9BB5\u9BB8\u9BD3\u9BB6\u9BC4\u9BB9\u9BBD\u9D5C\u9D53\u9D4F\u9D4A\u9D5B\u9D4B\u9D59\u9D56\u9D4C\u9D57\u9D52\u9D54\u9D5F\u9D58\u9D5A\u9E8E\u9E8C\u9EDF\u9F01\u9F00\u9F16\u9F25\u9F2B\u9F2A\u9F29\u9F28\u9F4C\u9F55\u5134\u5135\u5296\u52F7\u53B4\u56AB\u56AD\u56A6\u56A7\u56AA\u56AC\u58DA\u58DD\u58DB\u5912\u5B3D\u5B3E\u5B3F\u5DC3\u5E70"],["f240","\u5FBF\u61FB\u6507\u6510\u650D\u6509\u650C\u650E\u6584\u65DE\u65DD\u66DE\u6AE7\u6AE0\u6ACC\u6AD1\u6AD9\u6ACB\u6ADF\u6ADC\u6AD0\u6AEB\u6ACF\u6ACD\u6ADE\u6B60\u6BB0\u6C0C\u7019\u7027\u7020\u7016\u702B\u7021\u7022\u7023\u7029\u7017\u7024\u701C\u702A\u720C\u720A\u7207\u7202\u7205\u72A5\u72A6\u72A4\u72A3\u72A1\u74CB\u74C5\u74B7\u74C3\u7516\u7660\u77C9\u77CA\u77C4\u77F1\u791D\u791B"],["f2a1","\u7921\u791C\u7917\u791E\u79B0\u7A67\u7A68\u7C33\u7C3C\u7C39\u7C2C\u7C3B\u7CEC\u7CEA\u7E76\u7E75\u7E78\u7E70\u7E77\u7E6F\u7E7A\u7E72\u7E74\u7E68\u7F4B\u7F4A\u7F83\u7F86\u7FB7\u7FFD\u7FFE\u8078\u81D7\u81D5\u8264\u8261\u8263\u85EB\u85F1\u85ED\u85D9\u85E1\u85E8\u85DA\u85D7\u85EC\u85F2\u85F8\u85D8\u85DF\u85E3\u85DC\u85D1\u85F0\u85E6\u85EF\u85DE\u85E2\u8800\u87FA\u8803\u87F6\u87F7\u8809\u880C\u880B\u8806\u87FC\u8808\u87FF\u880A\u8802\u8962\u895A\u895B\u8957\u8961\u895C\u8958\u895D\u8959\u8988\u89B7\u89B6\u89F6\u8B50\u8B48\u8B4A\u8B40\u8B53\u8B56\u8B54\u8B4B\u8B55"],["f340","\u8B51\u8B42\u8B52\u8B57\u8C43\u8C77\u8C76\u8C9A\u8D06\u8D07\u8D09\u8DAC\u8DAA\u8DAD\u8DAB\u8E6D\u8E78\u8E73\u8E6A\u8E6F\u8E7B\u8EC2\u8F52\u8F51\u8F4F\u8F50\u8F53\u8FB4\u9140\u913F\u91B0\u91AD\u93DE\u93C7\u93CF\u93C2\u93DA\u93D0\u93F9\u93EC\u93CC\u93D9\u93A9\u93E6\u93CA\u93D4\u93EE\u93E3\u93D5\u93C4\u93CE\u93C0\u93D2\u93E7\u957D\u95DA\u95DB\u96E1\u9729\u972B\u972C\u9728\u9726"],["f3a1","\u97B3\u97B7\u97B6\u97DD\u97DE\u97DF\u985C\u9859\u985D\u9857\u98BF\u98BD\u98BB\u98BE\u9948\u9947\u9943\u99A6\u99A7\u9A1A\u9A15\u9A25\u9A1D\u9A24\u9A1B\u9A22\u9A20\u9A27\u9A23\u9A1E\u9A1C\u9A14\u9AC2\u9B0B\u9B0A\u9B0E\u9B0C\u9B37\u9BEA\u9BEB\u9BE0\u9BDE\u9BE4\u9BE6\u9BE2\u9BF0\u9BD4\u9BD7\u9BEC\u9BDC\u9BD9\u9BE5\u9BD5\u9BE1\u9BDA\u9D77\u9D81\u9D8A\u9D84\u9D88\u9D71\u9D80\u9D78\u9D86\u9D8B\u9D8C\u9D7D\u9D6B\u9D74\u9D75\u9D70\u9D69\u9D85\u9D73\u9D7B\u9D82\u9D6F\u9D79\u9D7F\u9D87\u9D68\u9E94\u9E91\u9EC0\u9EFC\u9F2D\u9F40\u9F41\u9F4D\u9F56\u9F57\u9F58\u5337\u56B2"],["f440","\u56B5\u56B3\u58E3\u5B45\u5DC6\u5DC7\u5EEE\u5EEF\u5FC0\u5FC1\u61F9\u6517\u6516\u6515\u6513\u65DF\u66E8\u66E3\u66E4\u6AF3\u6AF0\u6AEA\u6AE8\u6AF9\u6AF1\u6AEE\u6AEF\u703C\u7035\u702F\u7037\u7034\u7031\u7042\u7038\u703F\u703A\u7039\u7040\u703B\u7033\u7041\u7213\u7214\u72A8\u737D\u737C\u74BA\u76AB\u76AA\u76BE\u76ED\u77CC\u77CE\u77CF\u77CD\u77F2\u7925\u7923\u7927\u7928\u7924\u7929"],["f4a1","\u79B2\u7A6E\u7A6C\u7A6D\u7AF7\u7C49\u7C48\u7C4A\u7C47\u7C45\u7CEE\u7E7B\u7E7E\u7E81\u7E80\u7FBA\u7FFF\u8079\u81DB\u81D9\u820B\u8268\u8269\u8622\u85FF\u8601\u85FE\u861B\u8600\u85F6\u8604\u8609\u8605\u860C\u85FD\u8819\u8810\u8811\u8817\u8813\u8816\u8963\u8966\u89B9\u89F7\u8B60\u8B6A\u8B5D\u8B68\u8B63\u8B65\u8B67\u8B6D\u8DAE\u8E86\u8E88\u8E84\u8F59\u8F56\u8F57\u8F55\u8F58\u8F5A\u908D\u9143\u9141\u91B7\u91B5\u91B2\u91B3\u940B\u9413\u93FB\u9420\u940F\u9414\u93FE\u9415\u9410\u9428\u9419\u940D\u93F5\u9400\u93F7\u9407\u940E\u9416\u9412\u93FA\u9409\u93F8\u940A\u93FF"],["f540","\u93FC\u940C\u93F6\u9411\u9406\u95DE\u95E0\u95DF\u972E\u972F\u97B9\u97BB\u97FD\u97FE\u9860\u9862\u9863\u985F\u98C1\u98C2\u9950\u994E\u9959\u994C\u994B\u9953\u9A32\u9A34\u9A31\u9A2C\u9A2A\u9A36\u9A29\u9A2E\u9A38\u9A2D\u9AC7\u9ACA\u9AC6\u9B10\u9B12\u9B11\u9C0B\u9C08\u9BF7\u9C05\u9C12\u9BF8\u9C40\u9C07\u9C0E\u9C06\u9C17\u9C14\u9C09\u9D9F\u9D99\u9DA4\u9D9D\u9D92\u9D98\u9D90\u9D9B"],["f5a1","\u9DA0\u9D94\u9D9C\u9DAA\u9D97\u9DA1\u9D9A\u9DA2\u9DA8\u9D9E\u9DA3\u9DBF\u9DA9\u9D96\u9DA6\u9DA7\u9E99\u9E9B\u9E9A\u9EE5\u9EE4\u9EE7\u9EE6\u9F30\u9F2E\u9F5B\u9F60\u9F5E\u9F5D\u9F59\u9F91\u513A\u5139\u5298\u5297\u56C3\u56BD\u56BE\u5B48\u5B47\u5DCB\u5DCF\u5EF1\u61FD\u651B\u6B02\u6AFC\u6B03\u6AF8\u6B00\u7043\u7044\u704A\u7048\u7049\u7045\u7046\u721D\u721A\u7219\u737E\u7517\u766A\u77D0\u792D\u7931\u792F\u7C54\u7C53\u7CF2\u7E8A\u7E87\u7E88\u7E8B\u7E86\u7E8D\u7F4D\u7FBB\u8030\u81DD\u8618\u862A\u8626\u861F\u8623\u861C\u8619\u8627\u862E\u8621\u8620\u8629\u861E\u8625"],["f640","\u8829\u881D\u881B\u8820\u8824\u881C\u882B\u884A\u896D\u8969\u896E\u896B\u89FA\u8B79\u8B78\u8B45\u8B7A\u8B7B\u8D10\u8D14\u8DAF\u8E8E\u8E8C\u8F5E\u8F5B\u8F5D\u9146\u9144\u9145\u91B9\u943F\u943B\u9436\u9429\u943D\u943C\u9430\u9439\u942A\u9437\u942C\u9440\u9431\u95E5\u95E4\u95E3\u9735\u973A\u97BF\u97E1\u9864\u98C9\u98C6\u98C0\u9958\u9956\u9A39\u9A3D\u9A46\u9A44\u9A42\u9A41\u9A3A"],["f6a1","\u9A3F\u9ACD\u9B15\u9B17\u9B18\u9B16\u9B3A\u9B52\u9C2B\u9C1D\u9C1C\u9C2C\u9C23\u9C28\u9C29\u9C24\u9C21\u9DB7\u9DB6\u9DBC\u9DC1\u9DC7\u9DCA\u9DCF\u9DBE\u9DC5\u9DC3\u9DBB\u9DB5\u9DCE\u9DB9\u9DBA\u9DAC\u9DC8\u9DB1\u9DAD\u9DCC\u9DB3\u9DCD\u9DB2\u9E7A\u9E9C\u9EEB\u9EEE\u9EED\u9F1B\u9F18\u9F1A\u9F31\u9F4E\u9F65\u9F64\u9F92\u4EB9\u56C6\u56C5\u56CB\u5971\u5B4B\u5B4C\u5DD5\u5DD1\u5EF2\u6521\u6520\u6526\u6522\u6B0B\u6B08\u6B09\u6C0D\u7055\u7056\u7057\u7052\u721E\u721F\u72A9\u737F\u74D8\u74D5\u74D9\u74D7\u766D\u76AD\u7935\u79B4\u7A70\u7A71\u7C57\u7C5C\u7C59\u7C5B\u7C5A"],["f740","\u7CF4\u7CF1\u7E91\u7F4F\u7F87\u81DE\u826B\u8634\u8635\u8633\u862C\u8632\u8636\u882C\u8828\u8826\u882A\u8825\u8971\u89BF\u89BE\u89FB\u8B7E\u8B84\u8B82\u8B86\u8B85\u8B7F\u8D15\u8E95\u8E94\u8E9A\u8E92\u8E90\u8E96\u8E97\u8F60\u8F62\u9147\u944C\u9450\u944A\u944B\u944F\u9447\u9445\u9448\u9449\u9446\u973F\u97E3\u986A\u9869\u98CB\u9954\u995B\u9A4E\u9A53\u9A54\u9A4C\u9A4F\u9A48\u9A4A"],["f7a1","\u9A49\u9A52\u9A50\u9AD0\u9B19\u9B2B\u9B3B\u9B56\u9B55\u9C46\u9C48\u9C3F\u9C44\u9C39\u9C33\u9C41\u9C3C\u9C37\u9C34\u9C32\u9C3D\u9C36\u9DDB\u9DD2\u9DDE\u9DDA\u9DCB\u9DD0\u9DDC\u9DD1\u9DDF\u9DE9\u9DD9\u9DD8\u9DD6\u9DF5\u9DD5\u9DDD\u9EB6\u9EF0\u9F35\u9F33\u9F32\u9F42\u9F6B\u9F95\u9FA2\u513D\u5299\u58E8\u58E7\u5972\u5B4D\u5DD8\u882F\u5F4F\u6201\u6203\u6204\u6529\u6525\u6596\u66EB\u6B11\u6B12\u6B0F\u6BCA\u705B\u705A\u7222\u7382\u7381\u7383\u7670\u77D4\u7C67\u7C66\u7E95\u826C\u863A\u8640\u8639\u863C\u8631\u863B\u863E\u8830\u8832\u882E\u8833\u8976\u8974\u8973\u89FE"],["f840","\u8B8C\u8B8E\u8B8B\u8B88\u8C45\u8D19\u8E98\u8F64\u8F63\u91BC\u9462\u9455\u945D\u9457\u945E\u97C4\u97C5\u9800\u9A56\u9A59\u9B1E\u9B1F\u9B20\u9C52\u9C58\u9C50\u9C4A\u9C4D\u9C4B\u9C55\u9C59\u9C4C\u9C4E\u9DFB\u9DF7\u9DEF\u9DE3\u9DEB\u9DF8\u9DE4\u9DF6\u9DE1\u9DEE\u9DE6\u9DF2\u9DF0\u9DE2\u9DEC\u9DF4\u9DF3\u9DE8\u9DED\u9EC2\u9ED0\u9EF2\u9EF3\u9F06\u9F1C\u9F38\u9F37\u9F36\u9F43\u9F4F"],["f8a1","\u9F71\u9F70\u9F6E\u9F6F\u56D3\u56CD\u5B4E\u5C6D\u652D\u66ED\u66EE\u6B13\u705F\u7061\u705D\u7060\u7223\u74DB\u74E5\u77D5\u7938\u79B7\u79B6\u7C6A\u7E97\u7F89\u826D\u8643\u8838\u8837\u8835\u884B\u8B94\u8B95\u8E9E\u8E9F\u8EA0\u8E9D\u91BE\u91BD\u91C2\u946B\u9468\u9469\u96E5\u9746\u9743\u9747\u97C7\u97E5\u9A5E\u9AD5\u9B59\u9C63\u9C67\u9C66\u9C62\u9C5E\u9C60\u9E02\u9DFE\u9E07\u9E03\u9E06\u9E05\u9E00\u9E01\u9E09\u9DFF\u9DFD\u9E04\u9EA0\u9F1E\u9F46\u9F74\u9F75\u9F76\u56D4\u652E\u65B8\u6B18\u6B19\u6B17\u6B1A\u7062\u7226\u72AA\u77D8\u77D9\u7939\u7C69\u7C6B\u7CF6\u7E9A"],["f940","\u7E98\u7E9B\u7E99\u81E0\u81E1\u8646\u8647\u8648\u8979\u897A\u897C\u897B\u89FF\u8B98\u8B99\u8EA5\u8EA4\u8EA3\u946E\u946D\u946F\u9471\u9473\u9749\u9872\u995F\u9C68\u9C6E\u9C6D\u9E0B\u9E0D\u9E10\u9E0F\u9E12\u9E11\u9EA1\u9EF5\u9F09\u9F47\u9F78\u9F7B\u9F7A\u9F79\u571E\u7066\u7C6F\u883C\u8DB2\u8EA6\u91C3\u9474\u9478\u9476\u9475\u9A60\u9C74\u9C73\u9C71\u9C75\u9E14\u9E13\u9EF6\u9F0A"],["f9a1","\u9FA4\u7068\u7065\u7CF7\u866A\u883E\u883D\u883F\u8B9E\u8C9C\u8EA9\u8EC9\u974B\u9873\u9874\u98CC\u9961\u99AB\u9A64\u9A66\u9A67\u9B24\u9E15\u9E17\u9F48\u6207\u6B1E\u7227\u864C\u8EA8\u9482\u9480\u9481\u9A69\u9A68\u9B2E\u9E19\u7229\u864B\u8B9F\u9483\u9C79\u9EB7\u7675\u9A6B\u9C7A\u9E1D\u7069\u706A\u9EA4\u9F7E\u9F49\u9F98\u7881\u92B9\u88CF\u58BB\u6052\u7CA7\u5AFA\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2553\u2565\u2556\u255F\u256B\u2562\u2559\u2568\u255C\u2551\u2550\u256D\u256E\u2570\u256F\u2593"]]});var hCe=S((yrr,gSt)=>{gSt.exports=[["8740","\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],["8767","\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],["87a1","\u{258DE}\u3AF5\u7AFC\u9F97\u{24161}\u{2890D}\u{231EA}\u{20A8A}\u{2325E}\u430A\u8484\u9F96\u942F\u4930\u8613\u5896\u974A\u9218\u79D0\u7A32\u6660\u6A29\u889D\u744C\u7BC5\u6782\u7A2C\u524F\u9046\u34E6\u73C4\u{25DB9}\u74C6\u9FC7\u57B3\u492F\u544C\u4131\u{2368E}\u5818\u7A72\u{27B65}\u8B8F\u46AE\u{26E88}\u4181\u{25D99}\u7BAE\u{224BC}\u9FC8\u{224C1}\u{224C9}\u{224CC}\u9FC9\u8504\u{235BB}\u40B4\u9FCA\u44E1\u{2ADFF}\u62C1\u706E\u9FCB"],["8840","\u31C0",4,"\u{2010C}\u31C5\u{200D1}\u{200CD}\u31C6\u31C7\u{200CB}\u{21FE8}\u31C8\u{200CA}\u31C9\u31CA\u31CB\u31CC\u{2010E}\u31CD\u31CE\u0100\xC1\u01CD\xC0\u0112\xC9\u011A\xC8\u014C\xD3\u01D1\xD2\u0FFF\xCA\u0304\u1EBE\u0FFF\xCA\u030C\u1EC0\xCA\u0101\xE1\u01CE\xE0\u0251\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA"],["88a1","\u01DC\xFC\u0FFF\xEA\u0304\u1EBF\u0FFF\xEA\u030C\u1EC1\xEA\u0261\u23DA\u23DB"],["8940","\u{2A3A9}\u{21145}"],["8943","\u650A"],["8946","\u4E3D\u6EDD\u9D4E\u91DF"],["894c","\u{27735}\u6491\u4F1A\u4F28\u4FA8\u5156\u5174\u519C\u51E4\u52A1\u52A8\u533B\u534E\u53D1\u53D8\u56E2\u58F0\u5904\u5907\u5932\u5934\u5B66\u5B9E\u5B9F\u5C9A\u5E86\u603B\u6589\u67FE\u6804\u6865\u6D4E\u70BC\u7535\u7EA4\u7EAC\u7EBA\u7EC7\u7ECF\u7EDF\u7F06\u7F37\u827A\u82CF\u836F\u89C6\u8BBE\u8BE2\u8F66\u8F67\u8F6E"],["89a1","\u7411\u7CFC\u7DCD\u6946\u7AC9\u5227"],["89ab","\u918C\u78B8\u915E\u80BC"],["89b0","\u8D0B\u80F6\u{209E7}"],["89b5","\u809F\u9EC7\u4CCD\u9DC9\u9E0C\u4C3E\u{29DF6}\u{2700E}\u9E0A\u{2A133}\u35C1"],["89c1","\u6E9A\u823E\u7519"],["89c5","\u4911\u9A6C\u9A8F\u9F99\u7987\u{2846C}\u{21DCA}\u{205D0}\u{22AE6}\u4E24\u4E81\u4E80\u4E87\u4EBF\u4EEB\u4F37\u344C\u4FBD\u3E48\u5003\u5088\u347D\u3493\u34A5\u5186\u5905\u51DB\u51FC\u5205\u4E89\u5279\u5290\u5327\u35C7\u53A9\u3551\u53B0\u3553\u53C2\u5423\u356D\u3572\u3681\u5493\u54A3\u54B4\u54B9\u54D0\u54EF\u5518\u5523\u5528\u3598\u553F\u35A5\u35BF\u55D7\u35C5"],["8a40","\u{27D84}\u5525"],["8a43","\u{20C42}\u{20D15}\u{2512B}\u5590\u{22CC6}\u39EC\u{20341}\u8E46\u{24DB8}\u{294E5}\u4053\u{280BE}\u777A\u{22C38}\u3A34\u47D5\u{2815D}\u{269F2}\u{24DEA}\u64DD\u{20D7C}\u{20FB4}\u{20CD5}\u{210F4}\u648D\u8E7E\u{20E96}\u{20C0B}\u{20F64}\u{22CA9}\u{28256}\u{244D3}"],["8a64","\u{20D46}\u{29A4D}\u{280E9}\u47F4\u{24EA7}\u{22CC2}\u9AB2\u3A67\u{295F4}\u3FED\u3506\u{252C7}\u{297D4}\u{278C8}\u{22D44}\u9D6E\u9815"],["8a76","\u43D9\u{260A5}\u64B4\u54E3\u{22D4C}\u{22BCA}\u{21077}\u39FB\u{2106F}"],["8aa1","\u{266DA}\u{26716}\u{279A0}\u64EA\u{25052}\u{20C43}\u8E68\u{221A1}\u{28B4C}\u{20731}"],["8aac","\u480B\u{201A9}\u3FFA\u5873\u{22D8D}"],["8ab2","\u{245C8}\u{204FC}\u{26097}\u{20F4C}\u{20D96}\u5579\u40BB\u43BA"],["8abb","\u4AB4\u{22A66}\u{2109D}\u81AA\u98F5\u{20D9C}\u6379\u39FE\u{22775}\u8DC0\u56A1\u647C\u3E43"],["8ac9","\u{2A601}\u{20E09}\u{22ACF}\u{22CC9}"],["8ace","\u{210C8}\u{239C2}\u3992\u3A06\u{2829B}\u3578\u{25E49}\u{220C7}\u5652\u{20F31}\u{22CB2}\u{29720}\u34BC\u6C3D\u{24E3B}"],["8adf","\u{27574}\u{22E8B}\u{22208}\u{2A65B}\u{28CCD}\u{20E7A}\u{20C34}\u{2681C}\u7F93\u{210CF}\u{22803}\u{22939}\u35FB\u{251E3}\u{20E8C}\u{20F8D}\u{20EAA}\u3F93\u{20F30}\u{20D47}\u{2114F}\u{20E4C}"],["8af6","\u{20EAB}\u{20BA9}\u{20D48}\u{210C0}\u{2113D}\u3FF9\u{22696}\u6432\u{20FAD}"],["8b40","\u{233F4}\u{27639}\u{22BCE}\u{20D7E}\u{20D7F}\u{22C51}\u{22C55}\u3A18\u{20E98}\u{210C7}\u{20F2E}\u{2A632}\u{26B50}\u{28CD2}\u{28D99}\u{28CCA}\u95AA\u54CC\u82C4\u55B9"],["8b55","\u{29EC3}\u9C26\u9AB6\u{2775E}\u{22DEE}\u7140\u816D\u80EC\u5C1C\u{26572}\u8134\u3797\u535F\u{280BD}\u91B6\u{20EFA}\u{20E0F}\u{20E77}\u{20EFB}\u35DD\u{24DEB}\u3609\u{20CD6}\u56AF\u{227B5}\u{210C9}\u{20E10}\u{20E78}\u{21078}\u{21148}\u{28207}\u{21455}\u{20E79}\u{24E50}\u{22DA4}\u5A54\u{2101D}\u{2101E}\u{210F5}\u{210F6}\u579C\u{20E11}"],["8ba1","\u{27694}\u{282CD}\u{20FB5}\u{20E7B}\u{2517E}\u3703\u{20FB6}\u{21180}\u{252D8}\u{2A2BD}\u{249DA}\u{2183A}\u{24177}\u{2827C}\u5899\u5268\u361A\u{2573D}\u7BB2\u5B68\u4800\u4B2C\u9F27\u49E7\u9C1F\u9B8D\u{25B74}\u{2313D}\u55FB\u35F2\u5689\u4E28\u5902\u{21BC1}\u{2F878}\u9751\u{20086}\u4E5B\u4EBB\u353E\u5C23\u5F51\u5FC4\u38FA\u624C\u6535\u6B7A\u6C35\u6C3A\u706C\u722B\u4E2C\u72AD\u{248E9}\u7F52\u793B\u7CF9\u7F53\u{2626A}\u34C1"],["8bde","\u{2634B}\u8002\u8080\u{26612}\u{26951}\u535D\u8864\u89C1\u{278B2}\u8BA0\u8D1D\u9485\u9578\u957F\u95E8\u{28E0F}\u97E6\u9875\u98CE\u98DE\u9963\u{29810}\u9C7C\u9E1F\u9EC4\u6B6F\uF907\u4E37\u{20087}\u961D\u6237\u94A2"],["8c40","\u503B\u6DFE\u{29C73}\u9FA6\u3DC9\u888F\u{2414E}\u7077\u5CF5\u4B20\u{251CD}\u3559\u{25D30}\u6122\u{28A32}\u8FA7\u91F6\u7191\u6719\u73BA\u{23281}\u{2A107}\u3C8B\u{21980}\u4B10\u78E4\u7402\u51AE\u{2870F}\u4009\u6A63\u{2A2BA}\u4223\u860F\u{20A6F}\u7A2A\u{29947}\u{28AEA}\u9755\u704D\u5324\u{2207E}\u93F4\u76D9\u{289E3}\u9FA7\u77DD\u4EA3\u4FF0\u50BC\u4E2F\u4F17\u9FA8\u5434\u7D8B\u5892\u58D0\u{21DB6}\u5E92\u5E99\u5FC2\u{22712}\u658B"],["8ca1","\u{233F9}\u6919\u6A43\u{23C63}\u6CFF"],["8ca7","\u7200\u{24505}\u738C\u3EDB\u{24A13}\u5B15\u74B9\u8B83\u{25CA4}\u{25695}\u7A93\u7BEC\u7CC3\u7E6C\u82F8\u8597\u9FA9\u8890\u9FAA\u8EB9\u9FAB\u8FCF\u855F\u99E0\u9221\u9FAC\u{28DB9}\u{2143F}\u4071\u42A2\u5A1A"],["8cc9","\u9868\u676B\u4276\u573D"],["8cce","\u85D6\u{2497B}\u82BF\u{2710D}\u4C81\u{26D74}\u5D7B\u{26B15}\u{26FBE}\u9FAD\u9FAE\u5B96\u9FAF\u66E7\u7E5B\u6E57\u79CA\u3D88\u44C3\u{23256}\u{22796}\u439A\u4536"],["8ce6","\u5CD5\u{23B1A}\u8AF9\u5C78\u3D12\u{23551}\u5D78\u9FB2\u7157\u4558\u{240EC}\u{21E23}\u4C77\u3978\u344A\u{201A4}\u{26C41}\u8ACC\u4FB4\u{20239}\u59BF\u816C\u9856\u{298FA}\u5F3B"],["8d40","\u{20B9F}"],["8d42","\u{221C1}\u{2896D}\u4102\u46BB\u{29079}\u3F07\u9FB3\u{2A1B5}\u40F8\u37D6\u46F7\u{26C46}\u417C\u{286B2}\u{273FF}\u456D\u38D4\u{2549A}\u4561\u451B\u4D89\u4C7B\u4D76\u45EA\u3FC8\u{24B0F}\u3661\u44DE\u44BD\u41ED\u5D3E\u5D48\u5D56\u3DFC\u380F\u5DA4\u5DB9\u3820\u3838\u5E42\u5EBD\u5F25\u5F83\u3908\u3914\u393F\u394D\u60D7\u613D\u5CE5\u3989\u61B7\u61B9\u61CF\u39B8\u622C\u6290\u62E5\u6318\u39F8\u56B1"],["8da1","\u3A03\u63E2\u63FB\u6407\u645A\u3A4B\u64C0\u5D15\u5621\u9F9F\u3A97\u6586\u3ABD\u65FF\u6653\u3AF2\u6692\u3B22\u6716\u3B42\u67A4\u6800\u3B58\u684A\u6884\u3B72\u3B71\u3B7B\u6909\u6943\u725C\u6964\u699F\u6985\u3BBC\u69D6\u3BDD\u6A65\u6A74\u6A71\u6A82\u3BEC\u6A99\u3BF2\u6AAB\u6AB5\u6AD4\u6AF6\u6B81\u6BC1\u6BEA\u6C75\u6CAA\u3CCB\u6D02\u6D06\u6D26\u6D81\u3CEF\u6DA4\u6DB1\u6E15\u6E18\u6E29\u6E86\u{289C0}\u6EBB\u6EE2\u6EDA\u9F7F\u6EE8\u6EE9\u6F24\u6F34\u3D46\u{23F41}\u6F81\u6FBE\u3D6A\u3D75\u71B7\u5C99\u3D8A\u702C\u3D91\u7050\u7054\u706F\u707F\u7089\u{20325}\u43C1\u35F1\u{20ED8}"],["8e40","\u{23ED7}\u57BE\u{26ED3}\u713E\u{257E0}\u364E\u69A2\u{28BE9}\u5B74\u7A49\u{258E1}\u{294D9}\u7A65\u7A7D\u{259AC}\u7ABB\u7AB0\u7AC2\u7AC3\u71D1\u{2648D}\u41CA\u7ADA\u7ADD\u7AEA\u41EF\u54B2\u{25C01}\u7B0B\u7B55\u7B29\u{2530E}\u{25CFE}\u7BA2\u7B6F\u839C\u{25BB4}\u{26C7F}\u7BD0\u8421\u7B92\u7BB8\u{25D20}\u3DAD\u{25C65}\u8492\u7BFA\u7C06\u7C35\u{25CC1}\u7C44\u7C83\u{24882}\u7CA6\u667D\u{24578}\u7CC9\u7CC7\u7CE6\u7C74\u7CF3\u7CF5\u7CCE"],["8ea1","\u7E67\u451D\u{26E44}\u7D5D\u{26ED6}\u748D\u7D89\u7DAB\u7135\u7DB3\u7DD2\u{24057}\u{26029}\u7DE4\u3D13\u7DF5\u{217F9}\u7DE5\u{2836D}\u7E1D\u{26121}\u{2615A}\u7E6E\u7E92\u432B\u946C\u7E27\u7F40\u7F41\u7F47\u7936\u{262D0}\u99E1\u7F97\u{26351}\u7FA3\u{21661}\u{20068}\u455C\u{23766}\u4503\u{2833A}\u7FFA\u{26489}\u8005\u8008\u801D\u8028\u802F\u{2A087}\u{26CC3}\u803B\u803C\u8061\u{22714}\u4989\u{26626}\u{23DE3}\u{266E8}\u6725\u80A7\u{28A48}\u8107\u811A\u58B0\u{226F6}\u6C7F\u{26498}\u{24FB8}\u64E7\u{2148A}\u8218\u{2185E}\u6A53\u{24A65}\u{24A95}\u447A\u8229\u{20B0D}\u{26A52}\u{23D7E}\u4FF9\u{214FD}\u84E2\u8362\u{26B0A}\u{249A7}\u{23530}\u{21773}\u{23DF8}\u82AA\u691B\u{2F994}\u41DB"],["8f40","\u854B\u82D0\u831A\u{20E16}\u{217B4}\u36C1\u{2317D}\u{2355A}\u827B\u82E2\u8318\u{23E8B}\u{26DA3}\u{26B05}\u{26B97}\u{235CE}\u3DBF\u831D\u55EC\u8385\u450B\u{26DA5}\u83AC\u83C1\u83D3\u347E\u{26ED4}\u6A57\u855A\u3496\u{26E42}\u{22EEF}\u8458\u{25BE4}\u8471\u3DD3\u44E4\u6AA7\u844A\u{23CB5}\u7958\u84A8\u{26B96}\u{26E77}\u{26E43}\u84DE\u840F\u8391\u44A0\u8493\u84E4\u{25C91}\u4240\u{25CC0}\u4543\u8534\u5AF2\u{26E99}\u4527\u8573\u4516\u67BF\u8616"],["8fa1","\u{28625}\u{2863B}\u85C1\u{27088}\u8602\u{21582}\u{270CD}\u{2F9B2}\u456A\u8628\u3648\u{218A2}\u53F7\u{2739A}\u867E\u8771\u{2A0F8}\u87EE\u{22C27}\u87B1\u87DA\u880F\u5661\u866C\u6856\u460F\u8845\u8846\u{275E0}\u{23DB9}\u{275E4}\u885E\u889C\u465B\u88B4\u88B5\u63C1\u88C5\u7777\u{2770F}\u8987\u898A\u89A6\u89A9\u89A7\u89BC\u{28A25}\u89E7\u{27924}\u{27ABD}\u8A9C\u7793\u91FE\u8A90\u{27A59}\u7AE9\u{27B3A}\u{23F8F}\u4713\u{27B38}\u717C\u8B0C\u8B1F\u{25430}\u{25565}\u8B3F\u8B4C\u8B4D\u8AA9\u{24A7A}\u8B90\u8B9B\u8AAF\u{216DF}\u4615\u884F\u8C9B\u{27D54}\u{27D8F}\u{2F9D4}\u3725\u{27D53}\u8CD6\u{27D98}\u{27DBD}\u8D12\u8D03\u{21910}\u8CDB\u705C\u8D11\u{24CC9}\u3ED0\u8D77"],["9040","\u8DA9\u{28002}\u{21014}\u{2498A}\u3B7C\u{281BC}\u{2710C}\u7AE7\u8EAD\u8EB6\u8EC3\u92D4\u8F19\u8F2D\u{28365}\u{28412}\u8FA5\u9303\u{2A29F}\u{20A50}\u8FB3\u492A\u{289DE}\u{2853D}\u{23DBB}\u5EF8\u{23262}\u8FF9\u{2A014}\u{286BC}\u{28501}\u{22325}\u3980\u{26ED7}\u9037\u{2853C}\u{27ABE}\u9061\u{2856C}\u{2860B}\u90A8\u{28713}\u90C4\u{286E6}\u90AE\u90FD\u9167\u3AF0\u91A9\u91C4\u7CAC\u{28933}\u{21E89}\u920E\u6C9F\u9241\u9262\u{255B9}\u92B9\u{28AC6}\u{23C9B}\u{28B0C}\u{255DB}"],["90a1","\u{20D31}\u932C\u936B\u{28AE1}\u{28BEB}\u708F\u5AC3\u{28AE2}\u{28AE5}\u4965\u9244\u{28BEC}\u{28C39}\u{28BFF}\u9373\u945B\u8EBC\u9585\u95A6\u9426\u95A0\u6FF6\u42B9\u{2267A}\u{286D8}\u{2127C}\u{23E2E}\u49DF\u6C1C\u967B\u9696\u416C\u96A3\u{26ED5}\u61DA\u96B6\u78F5\u{28AE0}\u96BD\u53CC\u49A1\u{26CB8}\u{20274}\u{26410}\u{290AF}\u{290E5}\u{24AD1}\u{21915}\u{2330A}\u9731\u8642\u9736\u4A0F\u453D\u4585\u{24AE9}\u7075\u5B41\u971B\u975C\u{291D5}\u9757\u5B4A\u{291EB}\u975F\u9425\u50D0\u{230B7}\u{230BC}\u9789\u979F\u97B1\u97BE\u97C0\u97D2\u97E0\u{2546C}\u97EE\u741C\u{29433}\u97FF\u97F5\u{2941D}\u{2797A}\u4AD1\u9834\u9833\u984B\u9866\u3B0E\u{27175}\u3D51\u{20630}\u{2415C}"],["9140","\u{25706}\u98CA\u98B7\u98C8\u98C7\u4AFF\u{26D27}\u{216D3}\u55B0\u98E1\u98E6\u98EC\u9378\u9939\u{24A29}\u4B72\u{29857}\u{29905}\u99F5\u9A0C\u9A3B\u9A10\u9A58\u{25725}\u36C4\u{290B1}\u{29BD5}\u9AE0\u9AE2\u{29B05}\u9AF4\u4C0E\u9B14\u9B2D\u{28600}\u5034\u9B34\u{269A8}\u38C3\u{2307D}\u9B50\u9B40\u{29D3E}\u5A45\u{21863}\u9B8E\u{2424B}\u9C02\u9BFF\u9C0C\u{29E68}\u9DD4\u{29FB7}\u{2A192}\u{2A1AB}\u{2A0E1}\u{2A123}\u{2A1DF}\u9D7E\u9D83\u{2A134}\u9E0E\u6888"],["91a1","\u9DC4\u{2215B}\u{2A193}\u{2A220}\u{2193B}\u{2A233}\u9D39\u{2A0B9}\u{2A2B4}\u9E90\u9E95\u9E9E\u9EA2\u4D34\u9EAA\u9EAF\u{24364}\u9EC1\u3B60\u39E5\u3D1D\u4F32\u37BE\u{28C2B}\u9F02\u9F08\u4B96\u9424\u{26DA2}\u9F17\u9F16\u9F39\u569F\u568A\u9F45\u99B8\u{2908B}\u97F2\u847F\u9F62\u9F69\u7ADC\u9F8E\u7216\u4BBE\u{24975}\u{249BB}\u7177\u{249F8}\u{24348}\u{24A51}\u739E\u{28BDA}\u{218FA}\u799F\u{2897E}\u{28E36}\u9369\u93F3\u{28A44}\u92EC\u9381\u93CB\u{2896C}\u{244B9}\u7217\u3EEB\u7772\u7A43\u70D0\u{24473}\u{243F8}\u717E\u{217EF}\u70A3\u{218BE}\u{23599}\u3EC7\u{21885}\u{2542F}\u{217F8}\u3722\u{216FB}\u{21839}\u36E1\u{21774}\u{218D1}\u{25F4B}\u3723\u{216C0}\u575B\u{24A25}\u{213FE}\u{212A8}"],["9240","\u{213C6}\u{214B6}\u8503\u{236A6}\u8503\u8455\u{24994}\u{27165}\u{23E31}\u{2555C}\u{23EFB}\u{27052}\u44F4\u{236EE}\u{2999D}\u{26F26}\u67F9\u3733\u3C15\u3DE7\u586C\u{21922}\u6810\u4057\u{2373F}\u{240E1}\u{2408B}\u{2410F}\u{26C21}\u54CB\u569E\u{266B1}\u5692\u{20FDF}\u{20BA8}\u{20E0D}\u93C6\u{28B13}\u939C\u4EF8\u512B\u3819\u{24436}\u4EBC\u{20465}\u{2037F}\u4F4B\u4F8A\u{25651}\u5A68\u{201AB}\u{203CB}\u3999\u{2030A}\u{20414}\u3435\u4F29\u{202C0}\u{28EB3}\u{20275}\u8ADA\u{2020C}\u4E98"],["92a1","\u50CD\u510D\u4FA2\u4F03\u{24A0E}\u{23E8A}\u4F42\u502E\u506C\u5081\u4FCC\u4FE5\u5058\u50FC\u5159\u515B\u515D\u515E\u6E76\u{23595}\u{23E39}\u{23EBF}\u6D72\u{21884}\u{23E89}\u51A8\u51C3\u{205E0}\u44DD\u{204A3}\u{20492}\u{20491}\u8D7A\u{28A9C}\u{2070E}\u5259\u52A4\u{20873}\u52E1\u936E\u467A\u718C\u{2438C}\u{20C20}\u{249AC}\u{210E4}\u69D1\u{20E1D}\u7479\u3EDE\u7499\u7414\u7456\u7398\u4B8E\u{24ABC}\u{2408D}\u53D0\u3584\u720F\u{240C9}\u55B4\u{20345}\u54CD\u{20BC6}\u571D\u925D\u96F4\u9366\u57DD\u578D\u577F\u363E\u58CB\u5A99\u{28A46}\u{216FA}\u{2176F}\u{21710}\u5A2C\u59B8\u928F\u5A7E\u5ACF\u5A12\u{25946}\u{219F3}\u{21861}\u{24295}\u36F5\u6D05\u7443\u5A21\u{25E83}"],["9340","\u5A81\u{28BD7}\u{20413}\u93E0\u748C\u{21303}\u7105\u4972\u9408\u{289FB}\u93BD\u37A0\u5C1E\u5C9E\u5E5E\u5E48\u{21996}\u{2197C}\u{23AEE}\u5ECD\u5B4F\u{21903}\u{21904}\u3701\u{218A0}\u36DD\u{216FE}\u36D3\u812A\u{28A47}\u{21DBA}\u{23472}\u{289A8}\u5F0C\u5F0E\u{21927}\u{217AB}\u5A6B\u{2173B}\u5B44\u8614\u{275FD}\u8860\u607E\u{22860}\u{2262B}\u5FDB\u3EB8\u{225AF}\u{225BE}\u{29088}\u{26F73}\u61C0\u{2003E}\u{20046}\u{2261B}\u6199\u6198\u6075\u{22C9B}\u{22D07}\u{246D4}\u{2914D}"],["93a1","\u6471\u{24665}\u{22B6A}\u3A29\u{22B22}\u{23450}\u{298EA}\u{22E78}\u6337\u{2A45B}\u64B6\u6331\u63D1\u{249E3}\u{22D67}\u62A4\u{22CA1}\u643B\u656B\u6972\u3BF4\u{2308E}\u{232AD}\u{24989}\u{232AB}\u550D\u{232E0}\u{218D9}\u{2943F}\u66CE\u{23289}\u{231B3}\u3AE0\u4190\u{25584}\u{28B22}\u{2558F}\u{216FC}\u{2555B}\u{25425}\u78EE\u{23103}\u{2182A}\u{23234}\u3464\u{2320F}\u{23182}\u{242C9}\u668E\u{26D24}\u666B\u4B93\u6630\u{27870}\u{21DEB}\u6663\u{232D2}\u{232E1}\u661E\u{25872}\u38D1\u{2383A}\u{237BC}\u3B99\u{237A2}\u{233FE}\u74D0\u3B96\u678F\u{2462A}\u68B6\u681E\u3BC4\u6ABE\u3863\u{237D5}\u{24487}\u6A33\u6A52\u6AC9\u6B05\u{21912}\u6511\u6898\u6A4C\u3BD7\u6A7A\u6B57\u{23FC0}\u{23C9A}\u93A0\u92F2\u{28BEA}\u{28ACB}"],["9440","\u9289\u{2801E}\u{289DC}\u9467\u6DA5\u6F0B\u{249EC}\u6D67\u{23F7F}\u3D8F\u6E04\u{2403C}\u5A3D\u6E0A\u5847\u6D24\u7842\u713B\u{2431A}\u{24276}\u70F1\u7250\u7287\u7294\u{2478F}\u{24725}\u5179\u{24AA4}\u{205EB}\u747A\u{23EF8}\u{2365F}\u{24A4A}\u{24917}\u{25FE1}\u3F06\u3EB1\u{24ADF}\u{28C23}\u{23F35}\u60A7\u3EF3\u74CC\u743C\u9387\u7437\u449F\u{26DEA}\u4551\u7583\u3F63\u{24CD9}\u{24D06}\u3F58\u7555\u7673\u{2A5C6}\u3B19\u7468\u{28ACC}\u{249AB}\u{2498E}\u3AFB"],["94a1","\u3DCD\u{24A4E}\u3EFF\u{249C5}\u{248F3}\u91FA\u5732\u9342\u{28AE3}\u{21864}\u50DF\u{25221}\u{251E7}\u7778\u{23232}\u770E\u770F\u777B\u{24697}\u{23781}\u3A5E\u{248F0}\u7438\u749B\u3EBF\u{24ABA}\u{24AC7}\u40C8\u{24A96}\u{261AE}\u9307\u{25581}\u781E\u788D\u7888\u78D2\u73D0\u7959\u{27741}\u{256E3}\u410E\u799B\u8496\u79A5\u6A2D\u{23EFA}\u7A3A\u79F4\u416E\u{216E6}\u4132\u9235\u79F1\u{20D4C}\u{2498C}\u{20299}\u{23DBA}\u{2176E}\u3597\u556B\u3570\u36AA\u{201D4}\u{20C0D}\u7AE2\u5A59\u{226F5}\u{25AAF}\u{25A9C}\u5A0D\u{2025B}\u78F0\u5A2A\u{25BC6}\u7AFE\u41F9\u7C5D\u7C6D\u4211\u{25BB3}\u{25EBC}\u{25EA6}\u7CCD\u{249F9}\u{217B0}\u7C8E\u7C7C\u7CAE\u6AB2\u7DDC\u7E07\u7DD3\u7F4E\u{26261}"],["9540","\u{2615C}\u{27B48}\u7D97\u{25E82}\u426A\u{26B75}\u{20916}\u67D6\u{2004E}\u{235CF}\u57C4\u{26412}\u{263F8}\u{24962}\u7FDD\u7B27\u{2082C}\u{25AE9}\u{25D43}\u7B0C\u{25E0E}\u99E6\u8645\u9A63\u6A1C\u{2343F}\u39E2\u{249F7}\u{265AD}\u9A1F\u{265A0}\u8480\u{27127}\u{26CD1}\u44EA\u8137\u4402\u80C6\u8109\u8142\u{267B4}\u98C3\u{26A42}\u8262\u8265\u{26A51}\u8453\u{26DA7}\u8610\u{2721B}\u5A86\u417F\u{21840}\u5B2B\u{218A1}\u5AE4\u{218D8}\u86A0\u{2F9BC}\u{23D8F}\u882D\u{27422}\u5A02"],["95a1","\u886E\u4F45\u8887\u88BF\u88E6\u8965\u894D\u{25683}\u8954\u{27785}\u{27784}\u{28BF5}\u{28BD9}\u{28B9C}\u{289F9}\u3EAD\u84A3\u46F5\u46CF\u37F2\u8A3D\u8A1C\u{29448}\u5F4D\u922B\u{24284}\u65D4\u7129\u70C4\u{21845}\u9D6D\u8C9F\u8CE9\u{27DDC}\u599A\u77C3\u59F0\u436E\u36D4\u8E2A\u8EA7\u{24C09}\u8F30\u8F4A\u42F4\u6C58\u6FBB\u{22321}\u489B\u6F79\u6E8B\u{217DA}\u9BE9\u36B5\u{2492F}\u90BB\u9097\u5571\u4906\u91BB\u9404\u{28A4B}\u4062\u{28AFC}\u9427\u{28C1D}\u{28C3B}\u84E5\u8A2B\u9599\u95A7\u9597\u9596\u{28D34}\u7445\u3EC2\u{248FF}\u{24A42}\u{243EA}\u3EE7\u{23225}\u968F\u{28EE7}\u{28E66}\u{28E65}\u3ECC\u{249ED}\u{24A78}\u{23FEE}\u7412\u746B\u3EFC\u9741\u{290B0}"],["9640","\u6847\u4A1D\u{29093}\u{257DF}\u975D\u9368\u{28989}\u{28C26}\u{28B2F}\u{263BE}\u92BA\u5B11\u8B69\u493C\u73F9\u{2421B}\u979B\u9771\u9938\u{20F26}\u5DC1\u{28BC5}\u{24AB2}\u981F\u{294DA}\u92F6\u{295D7}\u91E5\u44C0\u{28B50}\u{24A67}\u{28B64}\u98DC\u{28A45}\u3F00\u922A\u4925\u8414\u993B\u994D\u{27B06}\u3DFD\u999B\u4B6F\u99AA\u9A5C\u{28B65}\u{258C8}\u6A8F\u9A21\u5AFE\u9A2F\u{298F1}\u4B90\u{29948}\u99BC\u4BBD\u4B97\u937D\u5872\u{21302}\u5822\u{249B8}"],["96a1","\u{214E8}\u7844\u{2271F}\u{23DB8}\u68C5\u3D7D\u9458\u3927\u6150\u{22781}\u{2296B}\u6107\u9C4F\u9C53\u9C7B\u9C35\u9C10\u9B7F\u9BCF\u{29E2D}\u9B9F\u{2A1F5}\u{2A0FE}\u9D21\u4CAE\u{24104}\u9E18\u4CB0\u9D0C\u{2A1B4}\u{2A0ED}\u{2A0F3}\u{2992F}\u9DA5\u84BD\u{26E12}\u{26FDF}\u{26B82}\u85FC\u4533\u{26DA4}\u{26E84}\u{26DF0}\u8420\u85EE\u{26E00}\u{237D7}\u{26064}\u79E2\u{2359C}\u{23640}\u492D\u{249DE}\u3D62\u93DB\u92BE\u9348\u{202BF}\u78B9\u9277\u944D\u4FE4\u3440\u9064\u{2555D}\u783D\u7854\u78B6\u784B\u{21757}\u{231C9}\u{24941}\u369A\u4F72\u6FDA\u6FD9\u701E\u701E\u5414\u{241B5}\u57BB\u58F3\u578A\u9D16\u57D7\u7134\u34AF\u{241AC}\u71EB\u{26C40}\u{24F97}\u5B28\u{217B5}\u{28A49}"],["9740","\u610C\u5ACE\u5A0B\u42BC\u{24488}\u372C\u4B7B\u{289FC}\u93BB\u93B8\u{218D6}\u{20F1D}\u8472\u{26CC0}\u{21413}\u{242FA}\u{22C26}\u{243C1}\u5994\u{23DB7}\u{26741}\u7DA8\u{2615B}\u{260A4}\u{249B9}\u{2498B}\u{289FA}\u92E5\u73E2\u3EE9\u74B4\u{28B63}\u{2189F}\u3EE1\u{24AB3}\u6AD8\u73F3\u73FB\u3ED6\u{24A3E}\u{24A94}\u{217D9}\u{24A66}\u{203A7}\u{21424}\u{249E5}\u7448\u{24916}\u70A5\u{24976}\u9284\u73E6\u935F\u{204FE}\u9331\u{28ACE}\u{28A16}\u9386\u{28BE7}\u{255D5}\u4935\u{28A82}\u716B"],["97a1","\u{24943}\u{20CFF}\u56A4\u{2061A}\u{20BEB}\u{20CB8}\u5502\u79C4\u{217FA}\u7DFE\u{216C2}\u{24A50}\u{21852}\u452E\u9401\u370A\u{28AC0}\u{249AD}\u59B0\u{218BF}\u{21883}\u{27484}\u5AA1\u36E2\u{23D5B}\u36B0\u925F\u5A79\u{28A81}\u{21862}\u9374\u3CCD\u{20AB4}\u4A96\u398A\u50F4\u3D69\u3D4C\u{2139C}\u7175\u42FB\u{28218}\u6E0F\u{290E4}\u44EB\u6D57\u{27E4F}\u7067\u6CAF\u3CD6\u{23FED}\u{23E2D}\u6E02\u6F0C\u3D6F\u{203F5}\u7551\u36BC\u34C8\u4680\u3EDA\u4871\u59C4\u926E\u493E\u8F41\u{28C1C}\u{26BC0}\u5812\u57C8\u36D6\u{21452}\u70FE\u{24362}\u{24A71}\u{22FE3}\u{212B0}\u{223BD}\u68B9\u6967\u{21398}\u{234E5}\u{27BF4}\u{236DF}\u{28A83}\u{237D6}\u{233FA}\u{24C9F}\u6A1A\u{236AD}\u{26CB7}\u843E\u44DF\u44CE"],["9840","\u{26D26}\u{26D51}\u{26C82}\u{26FDE}\u6F17\u{27109}\u833D\u{2173A}\u83ED\u{26C80}\u{27053}\u{217DB}\u5989\u5A82\u{217B3}\u5A61\u5A71\u{21905}\u{241FC}\u372D\u59EF\u{2173C}\u36C7\u718E\u9390\u669A\u{242A5}\u5A6E\u5A2B\u{24293}\u6A2B\u{23EF9}\u{27736}\u{2445B}\u{242CA}\u711D\u{24259}\u{289E1}\u4FB0\u{26D28}\u5CC2\u{244CE}\u{27E4D}\u{243BD}\u6A0C\u{24256}\u{21304}\u70A6\u7133\u{243E9}\u3DA5\u6CDF\u{2F825}\u{24A4F}\u7E65\u59EB\u5D2F\u3DF3\u5F5C\u{24A5D}\u{217DF}\u7DA4\u8426"],["98a1","\u5485\u{23AFA}\u{23300}\u{20214}\u577E\u{208D5}\u{20619}\u3FE5\u{21F9E}\u{2A2B6}\u7003\u{2915B}\u5D70\u738F\u7CD3\u{28A59}\u{29420}\u4FC8\u7FE7\u72CD\u7310\u{27AF4}\u7338\u7339\u{256F6}\u7341\u7348\u3EA9\u{27B18}\u906C\u71F5\u{248F2}\u73E1\u81F6\u3ECA\u770C\u3ED1\u6CA2\u56FD\u7419\u741E\u741F\u3EE2\u3EF0\u3EF4\u3EFA\u74D3\u3F0E\u3F53\u7542\u756D\u7572\u758D\u3F7C\u75C8\u75DC\u3FC0\u764D\u3FD7\u7674\u3FDC\u767A\u{24F5C}\u7188\u5623\u8980\u5869\u401D\u7743\u4039\u6761\u4045\u35DB\u7798\u406A\u406F\u5C5E\u77BE\u77CB\u58F2\u7818\u70B9\u781C\u40A8\u7839\u7847\u7851\u7866\u8448\u{25535}\u7933\u6803\u7932\u4103"],["9940","\u4109\u7991\u7999\u8FBB\u7A06\u8FBC\u4167\u7A91\u41B2\u7ABC\u8279\u41C4\u7ACF\u7ADB\u41CF\u4E21\u7B62\u7B6C\u7B7B\u7C12\u7C1B\u4260\u427A\u7C7B\u7C9C\u428C\u7CB8\u4294\u7CED\u8F93\u70C0\u{20CCF}\u7DCF\u7DD4\u7DD0\u7DFD\u7FAE\u7FB4\u729F\u4397\u8020\u8025\u7B39\u802E\u8031\u8054\u3DCC\u57B4\u70A0\u80B7\u80E9\u43ED\u810C\u732A\u810E\u8112\u7560\u8114\u4401\u3B39\u8156\u8159\u815A"],["99a1","\u4413\u583A\u817C\u8184\u4425\u8193\u442D\u81A5\u57EF\u81C1\u81E4\u8254\u448F\u82A6\u8276\u82CA\u82D8\u82FF\u44B0\u8357\u9669\u698A\u8405\u70F5\u8464\u60E3\u8488\u4504\u84BE\u84E1\u84F8\u8510\u8538\u8552\u453B\u856F\u8570\u85E0\u4577\u8672\u8692\u86B2\u86EF\u9645\u878B\u4606\u4617\u88AE\u88FF\u8924\u8947\u8991\u{27967}\u8A29\u8A38\u8A94\u8AB4\u8C51\u8CD4\u8CF2\u8D1C\u4798\u585F\u8DC3\u47ED\u4EEE\u8E3A\u55D8\u5754\u8E71\u55F5\u8EB0\u4837\u8ECE\u8EE2\u8EE4\u8EED\u8EF2\u8FB7\u8FC1\u8FCA\u8FCC\u9033\u99C4\u48AD\u98E0\u9213\u491E\u9228\u9258\u926B\u92B1\u92AE\u92BF"],["9a40","\u92E3\u92EB\u92F3\u92F4\u92FD\u9343\u9384\u93AD\u4945\u4951\u9EBF\u9417\u5301\u941D\u942D\u943E\u496A\u9454\u9479\u952D\u95A2\u49A7\u95F4\u9633\u49E5\u67A0\u4A24\u9740\u4A35\u97B2\u97C2\u5654\u4AE4\u60E8\u98B9\u4B19\u98F1\u5844\u990E\u9919\u51B4\u991C\u9937\u9942\u995D\u9962\u4B70\u99C5\u4B9D\u9A3C\u9B0F\u7A83\u9B69\u9B81\u9BDD\u9BF1\u9BF4\u4C6D\u9C20\u376F\u{21BC2}\u9D49\u9C3A"],["9aa1","\u9EFE\u5650\u9D93\u9DBD\u9DC0\u9DFC\u94F6\u8FB6\u9E7B\u9EAC\u9EB1\u9EBD\u9EC6\u94DC\u9EE2\u9EF1\u9EF8\u7AC8\u9F44\u{20094}\u{202B7}\u{203A0}\u691A\u94C3\u59AC\u{204D7}\u5840\u94C1\u37B9\u{205D5}\u{20615}\u{20676}\u{216BA}\u5757\u7173\u{20AC2}\u{20ACD}\u{20BBF}\u546A\u{2F83B}\u{20BCB}\u549E\u{20BFB}\u{20C3B}\u{20C53}\u{20C65}\u{20C7C}\u60E7\u{20C8D}\u567A\u{20CB5}\u{20CDD}\u{20CED}\u{20D6F}\u{20DB2}\u{20DC8}\u6955\u9C2F\u87A5\u{20E04}\u{20E0E}\u{20ED7}\u{20F90}\u{20F2D}\u{20E73}\u5C20\u{20FBC}\u5E0B\u{2105C}\u{2104F}\u{21076}\u671E\u{2107B}\u{21088}\u{21096}\u3647\u{210BF}\u{210D3}\u{2112F}\u{2113B}\u5364\u84AD\u{212E3}\u{21375}\u{21336}\u8B81\u{21577}\u{21619}\u{217C3}\u{217C7}\u4E78\u70BB\u{2182D}\u{2196A}"],["9b40","\u{21A2D}\u{21A45}\u{21C2A}\u{21C70}\u{21CAC}\u{21EC8}\u62C3\u{21ED5}\u{21F15}\u7198\u6855\u{22045}\u69E9\u36C8\u{2227C}\u{223D7}\u{223FA}\u{2272A}\u{22871}\u{2294F}\u82FD\u{22967}\u{22993}\u{22AD5}\u89A5\u{22AE8}\u8FA0\u{22B0E}\u97B8\u{22B3F}\u9847\u9ABD\u{22C4C}"],["9b62","\u{22C88}\u{22CB7}\u{25BE8}\u{22D08}\u{22D12}\u{22DB7}\u{22D95}\u{22E42}\u{22F74}\u{22FCC}\u{23033}\u{23066}\u{2331F}\u{233DE}\u5FB1\u6648\u66BF\u{27A79}\u{23567}\u{235F3}\u7201\u{249BA}\u77D7\u{2361A}\u{23716}\u7E87\u{20346}\u58B5\u670E"],["9ba1","\u6918\u{23AA7}\u{27657}\u{25FE2}\u{23E11}\u{23EB9}\u{275FE}\u{2209A}\u48D0\u4AB8\u{24119}\u{28A9A}\u{242EE}\u{2430D}\u{2403B}\u{24334}\u{24396}\u{24A45}\u{205CA}\u51D2\u{20611}\u599F\u{21EA8}\u3BBE\u{23CFF}\u{24404}\u{244D6}\u5788\u{24674}\u399B\u{2472F}\u{285E8}\u{299C9}\u3762\u{221C3}\u8B5E\u{28B4E}\u99D6\u{24812}\u{248FB}\u{24A15}\u7209\u{24AC0}\u{20C78}\u5965\u{24EA5}\u{24F86}\u{20779}\u8EDA\u{2502C}\u528F\u573F\u7171\u{25299}\u{25419}\u{23F4A}\u{24AA7}\u55BC\u{25446}\u{2546E}\u{26B52}\u91D4\u3473\u{2553F}\u{27632}\u{2555E}\u4718\u{25562}\u{25566}\u{257C7}\u{2493F}\u{2585D}\u5066\u34FB\u{233CC}\u60DE\u{25903}\u477C\u{28948}\u{25AAE}\u{25B89}\u{25C06}\u{21D90}\u57A1\u7151\u6FB6\u{26102}\u{27C12}\u9056\u{261B2}\u{24F9A}\u8B62\u{26402}\u{2644A}"],["9c40","\u5D5B\u{26BF7}\u8F36\u{26484}\u{2191C}\u8AEA\u{249F6}\u{26488}\u{23FEF}\u{26512}\u4BC0\u{265BF}\u{266B5}\u{2271B}\u9465\u{257E1}\u6195\u5A27\u{2F8CD}\u4FBB\u56B9\u{24521}\u{266FC}\u4E6A\u{24934}\u9656\u6D8F\u{26CBD}\u3618\u8977\u{26799}\u{2686E}\u{26411}\u{2685E}\u71DF\u{268C7}\u7B42\u{290C0}\u{20A11}\u{26926}\u9104\u{26939}\u7A45\u9DF0\u{269FA}\u9A26\u{26A2D}\u365F\u{26469}\u{20021}\u7983\u{26A34}\u{26B5B}\u5D2C\u{23519}\u83CF\u{26B9D}\u46D0\u{26CA4}\u753B\u8865\u{26DAE}\u58B6"],["9ca1","\u371C\u{2258D}\u{2704B}\u{271CD}\u3C54\u{27280}\u{27285}\u9281\u{2217A}\u{2728B}\u9330\u{272E6}\u{249D0}\u6C39\u949F\u{27450}\u{20EF8}\u8827\u88F5\u{22926}\u{28473}\u{217B1}\u6EB8\u{24A2A}\u{21820}\u39A4\u36B9\u5C10\u79E3\u453F\u66B6\u{29CAD}\u{298A4}\u8943\u{277CC}\u{27858}\u56D6\u40DF\u{2160A}\u39A1\u{2372F}\u{280E8}\u{213C5}\u71AD\u8366\u{279DD}\u{291A8}\u5A67\u4CB7\u{270AF}\u{289AB}\u{279FD}\u{27A0A}\u{27B0B}\u{27D66}\u{2417A}\u7B43\u797E\u{28009}\u6FB5\u{2A2DF}\u6A03\u{28318}\u53A2\u{26E07}\u93BF\u6836\u975D\u{2816F}\u{28023}\u{269B5}\u{213ED}\u{2322F}\u{28048}\u5D85\u{28C30}\u{28083}\u5715\u9823\u{28949}\u5DAB\u{24988}\u65BE\u69D5\u53D2\u{24AA5}\u{23F81}\u3C11\u6736\u{28090}\u{280F4}\u{2812E}\u{21FA1}\u{2814F}"],["9d40","\u{28189}\u{281AF}\u{2821A}\u{28306}\u{2832F}\u{2838A}\u35CA\u{28468}\u{286AA}\u48FA\u63E6\u{28956}\u7808\u9255\u{289B8}\u43F2\u{289E7}\u43DF\u{289E8}\u{28B46}\u{28BD4}\u59F8\u{28C09}\u8F0B\u{28FC5}\u{290EC}\u7B51\u{29110}\u{2913C}\u3DF7\u{2915E}\u{24ACA}\u8FD0\u728F\u568B\u{294E7}\u{295E9}\u{295B0}\u{295B8}\u{29732}\u{298D1}\u{29949}\u{2996A}\u{299C3}\u{29A28}\u{29B0E}\u{29D5A}\u{29D9B}\u7E9F\u{29EF8}\u{29F23}\u4CA4\u9547\u{2A293}\u71A2\u{2A2FF}\u4D91\u9012\u{2A5CB}\u4D9C\u{20C9C}\u8FBE\u55C1"],["9da1","\u8FBA\u{224B0}\u8FB9\u{24A93}\u4509\u7E7F\u6F56\u6AB1\u4EEA\u34E4\u{28B2C}\u{2789D}\u373A\u8E80\u{217F5}\u{28024}\u{28B6C}\u{28B99}\u{27A3E}\u{266AF}\u3DEB\u{27655}\u{23CB7}\u{25635}\u{25956}\u4E9A\u{25E81}\u{26258}\u56BF\u{20E6D}\u8E0E\u5B6D\u{23E88}\u{24C9E}\u63DE\u62D0\u{217F6}\u{2187B}\u6530\u562D\u{25C4A}\u541A\u{25311}\u3DC6\u{29D98}\u4C7D\u5622\u561E\u7F49\u{25ED8}\u5975\u{23D40}\u8770\u4E1C\u{20FEA}\u{20D49}\u{236BA}\u8117\u9D5E\u8D18\u763B\u9C45\u764E\u77B9\u9345\u5432\u8148\u82F7\u5625\u8132\u8418\u80BD\u55EA\u7962\u5643\u5416\u{20E9D}\u35CE\u5605\u55F1\u66F1\u{282E2}\u362D\u7534\u55F0\u55BA\u5497\u5572\u{20C41}\u{20C96}\u5ED0\u{25148}\u{20E76}\u{22C62}"],["9e40","\u{20EA2}\u9EAB\u7D5A\u55DE\u{21075}\u629D\u976D\u5494\u8CCD\u71F6\u9176\u63FC\u63B9\u63FE\u5569\u{22B43}\u9C72\u{22EB3}\u519A\u34DF\u{20DA7}\u51A7\u544D\u551E\u5513\u7666\u8E2D\u{2688A}\u75B1\u80B6\u8804\u8786\u88C7\u81B6\u841C\u{210C1}\u44EC\u7304\u{24706}\u5B90\u830B\u{26893}\u567B\u{226F4}\u{27D2F}\u{241A3}\u{27D73}\u{26ED0}\u{272B6}\u9170\u{211D9}\u9208\u{23CFC}\u{2A6A9}\u{20EAC}\u{20EF9}\u7266\u{21CA2}\u474E\u{24FC2}\u{27FF9}\u{20FEB}\u40FA"],["9ea1","\u9C5D\u651F\u{22DA0}\u48F3\u{247E0}\u{29D7C}\u{20FEC}\u{20E0A}\u6062\u{275A3}\u{20FED}"],["9ead","\u{26048}\u{21187}\u71A3\u7E8E\u9D50\u4E1A\u4E04\u3577\u5B0D\u6CB2\u5367\u36AC\u39DC\u537D\u36A5\u{24618}\u589A\u{24B6E}\u822D\u544B\u57AA\u{25A95}\u{20979}"],["9ec5","\u3A52\u{22465}\u7374\u{29EAC}\u4D09\u9BED\u{23CFE}\u{29F30}\u4C5B\u{24FA9}\u{2959E}\u{29FDE}\u845C\u{23DB6}\u{272B2}\u{267B3}\u{23720}\u632E\u7D25\u{23EF7}\u{23E2C}\u3A2A\u9008\u52CC\u3E74\u367A\u45E9\u{2048E}\u7640\u5AF0\u{20EB6}\u787A\u{27F2E}\u58A7\u40BF\u567C\u9B8B\u5D74\u7654\u{2A434}\u9E85\u4CE1\u75F9\u37FB\u6119\u{230DA}\u{243F2}"],["9ef5","\u565D\u{212A9}\u57A7\u{24963}\u{29E06}\u5234\u{270AE}\u35AD\u6C4A\u9D7C"],["9f40","\u7C56\u9B39\u57DE\u{2176C}\u5C53\u64D3\u{294D0}\u{26335}\u{27164}\u86AD\u{20D28}\u{26D22}\u{24AE2}\u{20D71}"],["9f4f","\u51FE\u{21F0F}\u5D8E\u9703\u{21DD1}\u9E81\u904C\u7B1F\u9B02\u5CD1\u7BA3\u6268\u6335\u9AFF\u7BCF\u9B2A\u7C7E\u9B2E\u7C42\u7C86\u9C15\u7BFC\u9B09\u9F17\u9C1B\u{2493E}\u9F5A\u5573\u5BC3\u4FFD\u9E98\u4FF2\u5260\u3E06\u52D1\u5767\u5056\u59B7\u5E12\u97C8\u9DAB\u8F5C\u5469\u97B4\u9940\u97BA\u532C\u6130"],["9fa1","\u692C\u53DA\u9C0A\u9D02\u4C3B\u9641\u6980\u50A6\u7546\u{2176D}\u99DA\u5273"],["9fae","\u9159\u9681\u915C"],["9fb2","\u9151\u{28E97}\u637F\u{26D23}\u6ACA\u5611\u918E\u757A\u6285\u{203FC}\u734F\u7C70\u{25C21}\u{23CFD}"],["9fc1","\u{24919}\u76D6\u9B9D\u4E2A\u{20CD4}\u83BE\u8842"],["9fc9","\u5C4A\u69C0\u50ED\u577A\u521F\u5DF5\u4ECE\u6C31\u{201F2}\u4F39\u549C\u54DA\u529A\u8D82\u35FE\u5F0C\u35F3"],["9fdb","\u6B52\u917C\u9FA5\u9B97\u982E\u98B4\u9ABA\u9EA8\u9E84\u717A\u7B14"],["9fe7","\u6BFA\u8818\u7F78"],["9feb","\u5620\u{2A64A}\u8E77\u9F53"],["9ff0","\u8DD4\u8E4F\u9E1C\u8E01\u6282\u{2837D}\u8E28\u8E75\u7AD3\u{24A77}\u7A3E\u78D8\u6CEA\u8A67\u7607"],["a040","\u{28A5A}\u9F26\u6CCE\u87D6\u75C3\u{2A2B2}\u7853\u{2F840}\u8D0C\u72E2\u7371\u8B2D\u7302\u74F1\u8CEB\u{24ABB}\u862F\u5FBA\u88A0\u44B7"],["a055","\u{2183B}\u{26E05}"],["a058","\u8A7E\u{2251B}"],["a05b","\u60FD\u7667\u9AD7\u9D44\u936E\u9B8F\u87F5"],["a063","\u880F\u8CF7\u732C\u9721\u9BB0\u35D6\u72B2\u4C07\u7C51\u994A\u{26159}\u6159\u4C04\u9E96\u617D"],["a073","\u575F\u616F\u62A6\u6239\u62CE\u3A5C\u61E2\u53AA\u{233F5}\u6364\u6802\u35D2"],["a0a1","\u5D57\u{28BC2}\u8FDA\u{28E39}"],["a0a6","\u50D9\u{21D46}\u7906\u5332\u9638\u{20F3B}\u4065"],["a0ae","\u77FE"],["a0b0","\u7CC2\u{25F1A}\u7CDA\u7A2D\u8066\u8063\u7D4D\u7505\u74F2\u8994\u821A\u670C\u8062\u{27486}\u805B\u74F0\u8103\u7724\u8989\u{267CC}\u7553\u{26ED1}\u87A9\u87CE\u81C8\u878C\u8A49\u8CAD\u8B43\u772B\u74F8\u84DA\u3635\u69B2\u8DA6"],["a0d4","\u89A9\u7468\u6DB9\u87C1\u{24011}\u74E7\u3DDB\u7176\u60A4\u619C\u3CD1\u7162\u6077"],["a0e2","\u7F71\u{28B2D}\u7250\u60E9\u4B7E\u5220\u3C18\u{23CC7}\u{25ED7}\u{27656}\u{25531}\u{21944}\u{212FE}\u{29903}\u{26DDC}\u{270AD}\u5CC1\u{261AD}\u{28A0F}\u{23677}\u{200EE}\u{26846}\u{24F0E}\u4562\u5B1F\u{2634C}\u9F50\u9EA6\u{2626B}"],["a3c0","\u2400",31,"\u2421"],["c6a1","\u2460",9,"\u2474",9,"\u2170",9,"\u4E36\u4E3F\u4E85\u4EA0\u5182\u5196\u51AB\u52F9\u5338\u5369\u53B6\u590A\u5B80\u5DDB\u2F33\u5E7F\u5EF4\u5F50\u5F61\u6534\u65E0\u7592\u7676\u8FB5\u96B6\xA8\u02C6\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\uFF3B\uFF3D\u273D\u3041",23],["c740","\u3059",58,"\u30A1\u30A2\u30A3\u30A4"],["c7a1","\u30A5",81,"\u0410",5,"\u0401\u0416",4],["c840","\u041B",26,"\u0451\u0436",25,"\u21E7\u21B8\u21B9\u31CF\u{200CC}\u4E5A\u{2008A}\u5202\u4491"],["c8a1","\u9FB0\u5188\u9FB1\u{27607}"],["c8cd","\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u309B\u309C\u2E80\u2E84\u2E86\u2E87\u2E88\u2E8A\u2E8C\u2E8D\u2E95\u2E9C\u2E9D\u2EA5\u2EA7\u2EAA\u2EAC\u2EAE\u2EB6\u2EBC\u2EBE\u2EC6\u2ECA\u2ECC\u2ECD\u2ECF\u2ED6\u2ED7\u2EDE\u2EE3"],["c8f5","\u0283\u0250\u025B\u0254\u0275\u0153\xF8\u014B\u028A\u026A"],["f9fe","\uFFED"],["fa40","\u{20547}\u92DB\u{205DF}\u{23FC5}\u854C\u42B5\u73EF\u51B5\u3649\u{24942}\u{289E4}\u9344\u{219DB}\u82EE\u{23CC8}\u783C\u6744\u62DF\u{24933}\u{289AA}\u{202A0}\u{26BB3}\u{21305}\u4FAB\u{224ED}\u5008\u{26D29}\u{27A84}\u{23600}\u{24AB1}\u{22513}\u5029\u{2037E}\u5FA4\u{20380}\u{20347}\u6EDB\u{2041F}\u507D\u5101\u347A\u510E\u986C\u3743\u8416\u{249A4}\u{20487}\u5160\u{233B4}\u516A\u{20BFF}\u{220FC}\u{202E5}\u{22530}\u{2058E}\u{23233}\u{21983}\u5B82\u877D\u{205B3}\u{23C99}\u51B2\u51B8"],["faa1","\u9D34\u51C9\u51CF\u51D1\u3CDC\u51D3\u{24AA6}\u51B3\u51E2\u5342\u51ED\u83CD\u693E\u{2372D}\u5F7B\u520B\u5226\u523C\u52B5\u5257\u5294\u52B9\u52C5\u7C15\u8542\u52E0\u860D\u{26B13}\u5305\u{28ADE}\u5549\u6ED9\u{23F80}\u{20954}\u{23FEC}\u5333\u5344\u{20BE2}\u6CCB\u{21726}\u681B\u73D5\u604A\u3EAA\u38CC\u{216E8}\u71DD\u44A2\u536D\u5374\u{286AB}\u537E\u537F\u{21596}\u{21613}\u77E6\u5393\u{28A9B}\u53A0\u53AB\u53AE\u73A7\u{25772}\u3F59\u739C\u53C1\u53C5\u6C49\u4E49\u57FE\u53D9\u3AAB\u{20B8F}\u53E0\u{23FEB}\u{22DA3}\u53F6\u{20C77}\u5413\u7079\u552B\u6657\u6D5B\u546D\u{26B53}\u{20D74}\u555D\u548F\u54A4\u47A6\u{2170D}\u{20EDD}\u3DB4\u{20D4D}"],["fb40","\u{289BC}\u{22698}\u5547\u4CED\u542F\u7417\u5586\u55A9\u5605\u{218D7}\u{2403A}\u4552\u{24435}\u66B3\u{210B4}\u5637\u66CD\u{2328A}\u66A4\u66AD\u564D\u564F\u78F1\u56F1\u9787\u53FE\u5700\u56EF\u56ED\u{28B66}\u3623\u{2124F}\u5746\u{241A5}\u6C6E\u708B\u5742\u36B1\u{26C7E}\u57E6\u{21416}\u5803\u{21454}\u{24363}\u5826\u{24BF5}\u585C\u58AA\u3561\u58E0\u58DC\u{2123C}\u58FB\u5BFF\u5743\u{2A150}\u{24278}\u93D3\u35A1\u591F\u68A6\u36C3\u6E59"],["fba1","\u{2163E}\u5A24\u5553\u{21692}\u8505\u59C9\u{20D4E}\u{26C81}\u{26D2A}\u{217DC}\u59D9\u{217FB}\u{217B2}\u{26DA6}\u6D71\u{21828}\u{216D5}\u59F9\u{26E45}\u5AAB\u5A63\u36E6\u{249A9}\u5A77\u3708\u5A96\u7465\u5AD3\u{26FA1}\u{22554}\u3D85\u{21911}\u3732\u{216B8}\u5E83\u52D0\u5B76\u6588\u5B7C\u{27A0E}\u4004\u485D\u{20204}\u5BD5\u6160\u{21A34}\u{259CC}\u{205A5}\u5BF3\u5B9D\u4D10\u5C05\u{21B44}\u5C13\u73CE\u5C14\u{21CA5}\u{26B28}\u5C49\u48DD\u5C85\u5CE9\u5CEF\u5D8B\u{21DF9}\u{21E37}\u5D10\u5D18\u5D46\u{21EA4}\u5CBA\u5DD7\u82FC\u382D\u{24901}\u{22049}\u{22173}\u8287\u3836\u3BC2\u5E2E\u6A8A\u5E75\u5E7A\u{244BC}\u{20CD3}\u53A6\u4EB7\u5ED0\u53A8\u{21771}\u5E09\u5EF4\u{28482}"],["fc40","\u5EF9\u5EFB\u38A0\u5EFC\u683E\u941B\u5F0D\u{201C1}\u{2F894}\u3ADE\u48AE\u{2133A}\u5F3A\u{26888}\u{223D0}\u5F58\u{22471}\u5F63\u97BD\u{26E6E}\u5F72\u9340\u{28A36}\u5FA7\u5DB6\u3D5F\u{25250}\u{21F6A}\u{270F8}\u{22668}\u91D6\u{2029E}\u{28A29}\u6031\u6685\u{21877}\u3963\u3DC7\u3639\u5790\u{227B4}\u7971\u3E40\u609E\u60A4\u60B3\u{24982}\u{2498F}\u{27A53}\u74A4\u50E1\u5AA0\u6164\u8424\u6142\u{2F8A6}\u{26ED2}\u6181\u51F4\u{20656}\u6187\u5BAA\u{23FB7}"],["fca1","\u{2285F}\u61D3\u{28B9D}\u{2995D}\u61D0\u3932\u{22980}\u{228C1}\u6023\u615C\u651E\u638B\u{20118}\u62C5\u{21770}\u62D5\u{22E0D}\u636C\u{249DF}\u3A17\u6438\u63F8\u{2138E}\u{217FC}\u6490\u6F8A\u{22E36}\u9814\u{2408C}\u{2571D}\u64E1\u64E5\u947B\u3A66\u643A\u3A57\u654D\u6F16\u{24A28}\u{24A23}\u6585\u656D\u655F\u{2307E}\u65B5\u{24940}\u4B37\u65D1\u40D8\u{21829}\u65E0\u65E3\u5FDF\u{23400}\u6618\u{231F7}\u{231F8}\u6644\u{231A4}\u{231A5}\u664B\u{20E75}\u6667\u{251E6}\u6673\u6674\u{21E3D}\u{23231}\u{285F4}\u{231C8}\u{25313}\u77C5\u{228F7}\u99A4\u6702\u{2439C}\u{24A21}\u3B2B\u69FA\u{237C2}\u675E\u6767\u6762\u{241CD}\u{290ED}\u67D7\u44E9\u6822\u6E50\u923C\u6801\u{233E6}\u{26DA0}\u685D"],["fd40","\u{2346F}\u69E1\u6A0B\u{28ADF}\u6973\u68C3\u{235CD}\u6901\u6900\u3D32\u3A01\u{2363C}\u3B80\u67AC\u6961\u{28A4A}\u42FC\u6936\u6998\u3BA1\u{203C9}\u8363\u5090\u69F9\u{23659}\u{2212A}\u6A45\u{23703}\u6A9D\u3BF3\u67B1\u6AC8\u{2919C}\u3C0D\u6B1D\u{20923}\u60DE\u6B35\u6B74\u{227CD}\u6EB5\u{23ADB}\u{203B5}\u{21958}\u3740\u5421\u{23B5A}\u6BE1\u{23EFC}\u6BDC\u6C37\u{2248B}\u{248F1}\u{26B51}\u6C5A\u8226\u6C79\u{23DBC}\u44C5\u{23DBD}\u{241A4}\u{2490C}\u{24900}"],["fda1","\u{23CC9}\u36E5\u3CEB\u{20D32}\u9B83\u{231F9}\u{22491}\u7F8F\u6837\u{26D25}\u{26DA1}\u{26DEB}\u6D96\u6D5C\u6E7C\u6F04\u{2497F}\u{24085}\u{26E72}\u8533\u{26F74}\u51C7\u6C9C\u6E1D\u842E\u{28B21}\u6E2F\u{23E2F}\u7453\u{23F82}\u79CC\u6E4F\u5A91\u{2304B}\u6FF8\u370D\u6F9D\u{23E30}\u6EFA\u{21497}\u{2403D}\u4555\u93F0\u6F44\u6F5C\u3D4E\u6F74\u{29170}\u3D3B\u6F9F\u{24144}\u6FD3\u{24091}\u{24155}\u{24039}\u{23FF0}\u{23FB4}\u{2413F}\u51DF\u{24156}\u{24157}\u{24140}\u{261DD}\u704B\u707E\u70A7\u7081\u70CC\u70D5\u70D6\u70DF\u4104\u3DE8\u71B4\u7196\u{24277}\u712B\u7145\u5A88\u714A\u716E\u5C9C\u{24365}\u714F\u9362\u{242C1}\u712C\u{2445A}\u{24A27}\u{24A22}\u71BA\u{28BE8}\u70BD\u720E"],["fe40","\u9442\u7215\u5911\u9443\u7224\u9341\u{25605}\u722E\u7240\u{24974}\u68BD\u7255\u7257\u3E55\u{23044}\u680D\u6F3D\u7282\u732A\u732B\u{24823}\u{2882B}\u48ED\u{28804}\u7328\u732E\u73CF\u73AA\u{20C3A}\u{26A2E}\u73C9\u7449\u{241E2}\u{216E7}\u{24A24}\u6623\u36C5\u{249B7}\u{2498D}\u{249FB}\u73F7\u7415\u6903\u{24A26}\u7439\u{205C3}\u3ED7\u745C\u{228AD}\u7460\u{28EB2}\u7447\u73E4\u7476\u83B9\u746C\u3730\u7474\u93F1\u6A2C\u7482\u4953\u{24A8C}"],["fea1","\u{2415F}\u{24A79}\u{28B8F}\u5B46\u{28C03}\u{2189E}\u74C8\u{21988}\u750E\u74E9\u751E\u{28ED9}\u{21A4B}\u5BD7\u{28EAC}\u9385\u754D\u754A\u7567\u756E\u{24F82}\u3F04\u{24D13}\u758E\u745D\u759E\u75B4\u7602\u762C\u7651\u764F\u766F\u7676\u{263F5}\u7690\u81EF\u37F8\u{26911}\u{2690E}\u76A1\u76A5\u76B7\u76CC\u{26F9F}\u8462\u{2509D}\u{2517D}\u{21E1C}\u771E\u7726\u7740\u64AF\u{25220}\u7758\u{232AC}\u77AF\u{28964}\u{28968}\u{216C1}\u77F4\u7809\u{21376}\u{24A12}\u68CA\u78AF\u78C7\u78D3\u96A5\u792E\u{255E0}\u78D7\u7934\u78B1\u{2760C}\u8FB8\u8884\u{28B2B}\u{26083}\u{2261C}\u7986\u8900\u6902\u7980\u{25857}\u799D\u{27B39}\u793C\u79A9\u6E2A\u{27126}\u3EA8\u79C6\u{2910D}\u79D4"]]});var gCe=S((brr,mCe)=>{"use strict";mCe.exports={shiftjis:{type:"_dbcs",table:function(){return lCe()},encodeAdd:{"\xA5":92,"\u203E":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return fCe()},encodeAdd:{"\xA5":92,"\u203E":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return GP()}},gbk:{type:"_dbcs",table:function(){return GP().concat(qq())}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return GP().concat(qq())},gb18030:function(){return pCe()},encodeSkipVals:[128],encodeAdd:{"\u20AC":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return dCe()}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return jq()}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return jq().concat(hCe())},encodeSkipVals:[41676]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}});var bCe=S((yCe,Qm)=>{"use strict";var vCe=[XDe(),QDe(),eCe(),rCe(),iCe(),aCe(),uCe(),gCe()];for(WP=0;WP{"use strict";var xCe=require("buffer").Buffer,zP=require("stream").Transform;wCe.exports=function(e){e.encodeStream=function(n,i){return new bp(e.getEncoder(n,i),i)},e.decodeStream=function(n,i){return new fl(e.getDecoder(n,i),i)},e.supportsStreams=!0,e.IconvLiteEncoderStream=bp,e.IconvLiteDecoderStream=fl,e._collect=fl.prototype.collect};function bp(e,r){this.conv=e,r=r||{},r.decodeStrings=!1,zP.call(this,r)}bp.prototype=Object.create(zP.prototype,{constructor:{value:bp}});bp.prototype._transform=function(e,r,n){if(typeof e!="string")return n(new Error("Iconv encoding stream needs strings as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i),n()}catch(a){n(a)}};bp.prototype._flush=function(e){try{var r=this.conv.end();r&&r.length&&this.push(r),e()}catch(n){e(n)}};bp.prototype.collect=function(e){var r=[];return this.on("error",e),this.on("data",function(n){r.push(n)}),this.on("end",function(){e(null,xCe.concat(r))}),this};function fl(e,r){this.conv=e,r=r||{},r.encoding=this.encoding="utf8",zP.call(this,r)}fl.prototype=Object.create(zP.prototype,{constructor:{value:fl}});fl.prototype._transform=function(e,r,n){if(!xCe.isBuffer(e))return n(new Error("Iconv decoding stream needs buffers as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i,this.encoding),n()}catch(a){n(a)}};fl.prototype._flush=function(e){try{var r=this.conv.end();r&&r.length&&this.push(r,this.encoding),e()}catch(n){e(n)}};fl.prototype.collect=function(e){var r="";return this.on("error",e),this.on("data",function(n){r+=n}),this.on("end",function(){e(null,r)}),this}});var SCe=S((wrr,ECe)=>{"use strict";var Sr=require("buffer").Buffer;ECe.exports=function(e){var r=void 0;e.supportsNodeEncodingsExtension=!(Sr.from||new Sr(0)instanceof Uint8Array),e.extendNodeEncodings=function(){if(!r){if(r={},!e.supportsNodeEncodingsExtension){console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node"),console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");return}var i={hex:!0,utf8:!0,"utf-8":!0,ascii:!0,binary:!0,base64:!0,ucs2:!0,"ucs-2":!0,utf16le:!0,"utf-16le":!0};Sr.isNativeEncoding=function(c){return c&&i[c.toLowerCase()]};var a=require("buffer").SlowBuffer;if(r.SlowBufferToString=a.prototype.toString,a.prototype.toString=function(c,u,l){return c=String(c||"utf8").toLowerCase(),Sr.isNativeEncoding(c)?r.SlowBufferToString.call(this,c,u,l):(typeof u>"u"&&(u=0),typeof l>"u"&&(l=this.length),e.decode(this.slice(u,l),c))},r.SlowBufferWrite=a.prototype.write,a.prototype.write=function(c,u,l,f){if(isFinite(u))isFinite(l)||(f=l,l=void 0);else{var p=f;f=u,u=l,l=p}u=+u||0;var g=this.length-u;if(l?(l=+l,l>g&&(l=g)):l=g,f=String(f||"utf8").toLowerCase(),Sr.isNativeEncoding(f))return r.SlowBufferWrite.call(this,c,u,l,f);if(c.length>0&&(l<0||u<0))throw new RangeError("attempt to write beyond buffer bounds");var v=e.encode(c,f);return v.length"u"&&(u=0),typeof l>"u"&&(l=this.length),e.decode(this.slice(u,l),c))},r.BufferWrite=Sr.prototype.write,Sr.prototype.write=function(c,u,l,f){var p=u,g=l,v=f;if(isFinite(u))isFinite(l)||(f=l,l=void 0);else{var x=f;f=u,u=l,l=x}if(f=String(f||"utf8").toLowerCase(),Sr.isNativeEncoding(f))return r.BufferWrite.call(this,c,p,g,v);u=+u||0;var E=this.length-u;if(l?(l=+l,l>E&&(l=E)):l=E,c.length>0&&(l<0||u<0))throw new RangeError("attempt to write beyond buffer bounds");var D=e.encode(c,f);return D.length{"use strict";var CCe=vp().Buffer,PCe=VDe(),wt=TCe.exports;wt.encodings=null;wt.defaultCharUnicode="\uFFFD";wt.defaultCharSingleByte="?";wt.encode=function(r,n,i){r=""+(r||"");var a=wt.getEncoder(n,i),o=a.write(r),c=a.end();return c&&c.length>0?CCe.concat([o,c]):o};wt.decode=function(r,n,i){typeof r=="string"&&(wt.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),wt.skipDecodeWarning=!0),r=CCe.from(""+(r||""),"binary"));var a=wt.getDecoder(n,i),o=a.write(r),c=a.end();return c?o+c:o};wt.encodingExists=function(r){try{return wt.getCodec(r),!0}catch{return!1}};wt.toEncoding=wt.encode;wt.fromEncoding=wt.decode;wt._codecDataCache={};wt.getCodec=function(r){wt.encodings||(wt.encodings=bCe());for(var n=wt._canonicalizeEncoding(r),i={};;){var a=wt._codecDataCache[n];if(a)return a;var o=wt.encodings[n];switch(typeof o){case"string":n=o;break;case"object":for(var c in o)i[c]=o[c];i.encodingName||(i.encodingName=n),n=o.type;break;case"function":return i.encodingName||(i.encodingName=n),a=new o(i,wt),wt._codecDataCache[i.encodingName]=a,a;default:throw new Error("Encoding not recognized: '"+r+"' (searched as: '"+n+"')")}}};wt._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};wt.getEncoder=function(r,n){var i=wt.getCodec(r),a=new i.encoder(n,i);return i.bomAware&&n&&n.addBOM&&(a=new PCe.PrependBOM(a,n)),a};wt.getDecoder=function(r,n){var i=wt.getCodec(r),a=new i.decoder(n,i);return i.bomAware&&!(n&&n.stripBOM===!1)&&(a=new PCe.StripBOM(a,n)),a};var DCe=typeof process<"u"&&process.versions&&process.versions.node;DCe&&(Bq=DCe.split(".").map(Number),(Bq[0]>0||Bq[1]>=10)&&_Ce()(wt),SCe()(wt));var Bq});var Gq=S((Err,RCe)=>{"use strict";RCe.exports=ySt;function vSt(e){for(var r=e.listeners("data"),n=0;n{"use strict";var bSt=Wm(),Zm=zm(),xSt=Uq(),wSt=Gq();OCe.exports=SSt;var _St=/^Encoding not recognized: /;function ESt(e){if(!e)return null;try{return xSt.getDecoder(e)}catch(r){throw _St.test(r.message)?Zm(415,"specified encoding unsupported",{encoding:e,type:"encoding.unsupported"}):r}}function SSt(e,r,n){var i=n,a=r||{};if((r===!0||typeof r=="string")&&(a={encoding:r}),typeof r=="function"&&(i=r,a={}),i!==void 0&&typeof i!="function")throw new TypeError("argument callback must be a function");if(!i&&!global.Promise)throw new TypeError("argument callback is required");var o=a.encoding!==!0?a.encoding:"utf-8",c=bSt.parse(a.limit),u=a.length!=null&&!isNaN(a.length)?parseInt(a.length,10):null;return i?ACe(e,o,u,c,i):new Promise(function(f,p){ACe(e,o,u,c,function(v,x){if(v)return p(v);f(x)})})}function DSt(e){wSt(e),typeof e.pause=="function"&&e.pause()}function ACe(e,r,n,i,a){var o=!1,c=!0;if(i!==null&&n!==null&&n>i)return g(Zm(413,"request entity too large",{expected:n,length:n,limit:i,type:"entity.too.large"}));var u=e._readableState;if(e._decoder||u&&(u.encoding||u.decoder))return g(Zm(500,"stream encoding should not be set",{type:"stream.encoding.set"}));var l=0,f;try{f=ESt(r)}catch(P){return g(P)}var p=f?"":[];e.on("aborted",v),e.on("close",D),e.on("data",x),e.on("end",E),e.on("error",E),c=!1;function g(){for(var P=new Array(arguments.length),R=0;Ri?g(Zm(413,"request entity too large",{limit:i,received:l,type:"entity.too.large"})):f?p+=f.write(P):p.push(P))}function E(P){if(!o){if(P)return g(P);if(n!==null&&l!==n)g(Zm(400,"request size did not match content length",{expected:n,length:n,received:l,type:"request.size.invalid"}));else{var R=f?p+(f.end()||""):Buffer.concat(p);g(null,R)}}}function D(){p=null,e.removeListener("aborted",v),e.removeListener("data",x),e.removeListener("end",E),e.removeListener("error",E),e.removeListener("close",D)}}});var FCe=S((Drr,kCe)=>{"use strict";kCe.exports=CSt;function CSt(e,r){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var n=[],i=0;i{"use strict";Wq.exports=RSt;Wq.exports.isFinished=LCe;var $Ce=FCe(),TSt=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function RSt(e,r){return LCe(e)!==!1?(TSt(r,null,e),e):(OSt(e,r),e)}function LCe(e){var r=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||r&&!r.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!r||!r.readable||e.complete&&!e.readable)}function ASt(e,r){var n,i,a=!1;function o(u){n.cancel(),i.cancel(),a=!0,r(u)}n=i=$Ce([[e,"end","finish"]],o);function c(u){e.removeListener("socket",c),!a&&n===i&&(i=$Ce([[u,"error","close"]],o))}if(e.socket){c(e.socket);return}e.on("socket",c),e.socket===void 0&&kSt(e,c)}function OSt(e,r){var n=e.__onFinished;(!n||!n.queue)&&(n=e.__onFinished=ISt(e),ASt(e,n)),n.queue.push(r)}function ISt(e){function r(n){if(e.__onFinished===r&&(e.__onFinished=null),!!r.queue){var i=r.queue;r.queue=null;for(var a=0;a{"use strict";var pl=zm(),FSt=ICe(),NCe=Uq(),$St=Vb(),MCe=require("zlib");qCe.exports=LSt;function LSt(e,r,n,i,a,o){var c,u=o,l;e._body=!0;var f=u.encoding!==null?u.encoding:null,p=u.verify;try{l=NSt(e,a,u.inflate),c=l.length,l.length=void 0}catch(g){return n(g)}if(u.length=c,u.encoding=p?null:f,u.encoding===null&&f!==null&&!NCe.encodingExists(f))return n(pl(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f.toLowerCase(),type:"charset.unsupported"}));a("read body"),FSt(l,u,function(g,v){if(g){var x;g.type==="encoding.unsupported"?x=pl(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f.toLowerCase(),type:"charset.unsupported"}):x=pl(400,g),l.resume(),$St(e,function(){n(pl(400,x))});return}if(p)try{a("verify body"),p(e,r,v,f)}catch(D){n(pl(403,D,{body:v,type:D.type||"entity.verify.failed"}));return}var E=v;try{a("parse body"),E=typeof v!="string"&&f!==null?NCe.decode(v,f):v,e.body=i(E)}catch(D){n(pl(400,D,{body:E,type:D.type||"entity.parse.failed"}));return}n()})}function NSt(e,r,n){var i=(e.headers["content-encoding"]||"identity").toLowerCase(),a=e.headers["content-length"],o;if(r('content-encoding "%s"',i),n===!1&&i!=="identity")throw pl(415,"content encoding unsupported",{encoding:i,type:"encoding.unsupported"});switch(i){case"deflate":o=MCe.createInflate(),r("inflate body"),e.pipe(o);break;case"gzip":o=MCe.createGunzip(),r("gunzip body"),e.pipe(o);break;case"identity":o=e,o.length=a;break;default:throw pl(415,'unsupported content encoding "'+i+'"',{encoding:i,type:"encoding.unsupported"})}return o}});var GCe=S(Hq=>{"use strict";var jCe=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,MSt=/^[\u0020-\u007e\u0080-\u00ff]+$/,UCe=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,qSt=/\\([\u0000-\u007f])/g,jSt=/([\\"])/g,BSt=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,BCe=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,USt=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Hq.format=GSt;Hq.parse=WSt;function GSt(e){if(!e||typeof e!="object")throw new TypeError("argument obj is required");var r=e.parameters,n=e.subtype,i=e.suffix,a=e.type;if(!a||!BCe.test(a))throw new TypeError("invalid type");if(!n||!BSt.test(n))throw new TypeError("invalid subtype");var o=a+"/"+n;if(i){if(!BCe.test(i))throw new TypeError("invalid suffix");o+="+"+i}if(r&&typeof r=="object")for(var c,u=Object.keys(r).sort(),l=0;l0&&!MSt.test(r))throw new TypeError("invalid parameter value");return'"'+r.replace(jSt,"\\$1")+'"'}function VSt(e){var r=USt.exec(e.toLowerCase());if(!r)throw new TypeError("invalid media type");var n=r[1],i=r[2],a,o=i.lastIndexOf("+");o!==-1&&(a=i.substr(o+1),i=i.substr(0,o));var c={type:n,subtype:i,suffix:a};return c}});var WCe=S((Rrr,YSt)=>{YSt.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var zCe=S((Arr,HCe)=>{"use strict";HCe.exports=WCe()});var zq=S($i=>{"use strict";var VP=zCe(),KSt=require("path").extname,VCe=/^\s*([^;\s]*)(?:;|\s|$)/,XSt=/^text\//i;$i.charset=YCe;$i.charsets={lookup:YCe};$i.contentType=JSt;$i.extension=QSt;$i.extensions=Object.create(null);$i.lookup=ZSt;$i.types=Object.create(null);eDt($i.extensions,$i.types);function YCe(e){if(!e||typeof e!="string")return!1;var r=VCe.exec(e),n=r&&VP[r[1].toLowerCase()];return n&&n.charset?n.charset:r&&XSt.test(r[1])?"UTF-8":!1}function JSt(e){if(!e||typeof e!="string")return!1;var r=e.indexOf("/")===-1?$i.lookup(e):e;if(!r)return!1;if(r.indexOf("charset")===-1){var n=$i.charset(r);n&&(r+="; charset="+n.toLowerCase())}return r}function QSt(e){if(!e||typeof e!="string")return!1;var r=VCe.exec(e),n=r&&$i.extensions[r[1].toLowerCase()];return!n||!n.length?!1:n[0]}function ZSt(e){if(!e||typeof e!="string")return!1;var r=KSt("x."+e).toLowerCase().substr(1);return r&&$i.types[r]||!1}function eDt(e,r){var n=["nginx","apache",void 0,"iana"];Object.keys(VP).forEach(function(a){var o=VP[a],c=o.extensions;if(!(!c||!c.length)){e[a]=c;for(var u=0;up||f===p&&r[l].substr(0,12)==="application/"))continue}r[l]=a}}})}});var tg=S((Irr,eg)=>{"use strict";var KCe=GCe(),tDt=zq();eg.exports=rDt;eg.exports.is=XCe;eg.exports.hasBody=JCe;eg.exports.normalize=QCe;eg.exports.match=ZCe;function XCe(e,r){var n,i=r,a=iDt(e);if(!a)return!1;if(i&&!Array.isArray(i))for(i=new Array(arguments.length-1),n=0;n2){n=new Array(arguments.length-1);for(var i=0;i{"use strict";var sDt=Wm(),aDt=Lb(),oDt=zm(),dl=zs()("body-parser:json"),cDt=Yb(),ePe=tg();rPe.exports=lDt;var uDt=/^[\x20\x09\x0a\x0d]*(.)/;function lDt(e){var r=e||{},n=typeof r.limit!="number"?sDt.parse(r.limit||"100kb"):r.limit,i=r.inflate!==!1,a=r.reviver,o=r.strict!==!1,c=r.type||"application/json",u=r.verify||!1;if(u!==!1&&typeof u!="function")throw new TypeError("option verify must be function");var l=typeof c!="function"?hDt(c):c;function f(p){if(p.length===0)return{};if(o){var g=pDt(p);if(g!=="{"&&g!=="[")throw dl("strict violation"),fDt(p,g)}try{return dl("parse json"),JSON.parse(p,a)}catch(v){throw tPe(v,{message:v.message,stack:v.stack})}}return function(g,v,x){if(g._body){dl("body already parsed"),x();return}if(g.body=g.body||{},!ePe.hasBody(g)){dl("skip empty body"),x();return}if(dl("content-type %j",g.headers["content-type"]),!l(g)){dl("skip parsing"),x();return}var E=dDt(g)||"utf-8";if(E.substr(0,4)!=="utf-"){dl("invalid charset"),x(oDt(415,'unsupported charset "'+E.toUpperCase()+'"',{charset:E,type:"charset.unsupported"}));return}cDt(g,v,x,f,dl,{encoding:E,inflate:i,limit:n,verify:u})}}function fDt(e,r){var n=e.indexOf(r),i=e.substring(0,n)+"#";try{throw JSON.parse(i),new SyntaxError("strict violation")}catch(a){return tPe(a,{message:a.message.replace("#",r),stack:a.stack})}}function pDt(e){return uDt.exec(e)[1]}function dDt(e){try{return(aDt.parse(e).parameters.charset||"").toLowerCase()}catch{return}}function tPe(e,r){for(var n=Object.getOwnPropertyNames(e),i=0;i{"use strict";var mDt=Wm(),Kb=zs()("body-parser:raw"),gDt=Yb(),iPe=tg();sPe.exports=vDt;function vDt(e){var r=e||{},n=r.inflate!==!1,i=typeof r.limit!="number"?mDt.parse(r.limit||"100kb"):r.limit,a=r.type||"application/octet-stream",o=r.verify||!1;if(o!==!1&&typeof o!="function")throw new TypeError("option verify must be function");var c=typeof a!="function"?yDt(a):a;function u(l){return l}return function(f,p,g){if(f._body){Kb("body already parsed"),g();return}if(f.body=f.body||{},!iPe.hasBody(f)){Kb("skip empty body"),g();return}if(Kb("content-type %j",f.headers["content-type"]),!c(f)){Kb("skip parsing"),g();return}gDt(f,p,g,u,Kb,{encoding:null,inflate:n,limit:i,verify:o})}}function yDt(e){return function(n){return!!iPe(n,e)}}});var uPe=S(($rr,cPe)=>{"use strict";var bDt=Wm(),xDt=Lb(),Xb=zs()("body-parser:text"),wDt=Yb(),oPe=tg();cPe.exports=_Dt;function _Dt(e){var r=e||{},n=r.defaultCharset||"utf-8",i=r.inflate!==!1,a=typeof r.limit!="number"?bDt.parse(r.limit||"100kb"):r.limit,o=r.type||"text/plain",c=r.verify||!1;if(c!==!1&&typeof c!="function")throw new TypeError("option verify must be function");var u=typeof o!="function"?SDt(o):o;function l(f){return f}return function(p,g,v){if(p._body){Xb("body already parsed"),v();return}if(p.body=p.body||{},!oPe.hasBody(p)){Xb("skip empty body"),v();return}if(Xb("content-type %j",p.headers["content-type"]),!u(p)){Xb("skip parsing"),v();return}var x=EDt(p)||n;wDt(p,g,v,l,Xb,{encoding:x,inflate:i,limit:a,verify:c})}}function EDt(e){try{return(xDt.parse(e).parameters.charset||"").toLowerCase()}catch{return}}function SDt(e){return function(n){return!!oPe(n,e)}}});var YP=S((Lrr,lPe)=>{"use strict";var DDt=String.prototype.replace,CDt=/%20/g,Vq={RFC1738:"RFC1738",RFC3986:"RFC3986"};lPe.exports={default:Vq.RFC3986,formatters:{RFC1738:function(e){return DDt.call(e,CDt,"+")},RFC3986:function(e){return String(e)}},RFC1738:Vq.RFC1738,RFC3986:Vq.RFC3986}});var Kq=S((Nrr,pPe)=>{"use strict";var PDt=YP(),Yq=Object.prototype.hasOwnProperty,xp=Array.isArray,Co=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),TDt=function(r){for(;r.length>1;){var n=r.pop(),i=n.obj[n.prop];if(xp(i)){for(var a=[],o=0;o=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===PDt.RFC1738&&(f===40||f===41)){u+=c.charAt(l);continue}if(f<128){u=u+Co[f];continue}if(f<2048){u=u+(Co[192|f>>6]+Co[128|f&63]);continue}if(f<55296||f>=57344){u=u+(Co[224|f>>12]+Co[128|f>>6&63]+Co[128|f&63]);continue}l+=1,f=65536+((f&1023)<<10|c.charCodeAt(l)&1023),u+=Co[240|f>>18]+Co[128|f>>12&63]+Co[128|f>>6&63]+Co[128|f&63]}return u},kDt=function(r){for(var n=[{obj:{o:r},prop:"o"}],i=[],a=0;a{"use strict";var Xq=Kq(),Jb=YP(),MDt=Object.prototype.hasOwnProperty,dPe={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},wp=Array.isArray,qDt=Array.prototype.push,mPe=function(e,r){qDt.apply(e,wp(r)?r:[r])},jDt=Date.prototype.toISOString,hPe=Jb.default,Yn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Xq.encode,encodeValuesOnly:!1,format:hPe,formatter:Jb.formatters[hPe],indices:!1,serializeDate:function(r){return jDt.call(r)},skipNulls:!1,strictNullHandling:!1},BDt=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},UDt=function e(r,n,i,a,o,c,u,l,f,p,g,v,x,E){var D=r;if(typeof u=="function"?D=u(n,D):D instanceof Date?D=p(D):i==="comma"&&wp(D)&&(D=Xq.maybeMap(D,function(W){return W instanceof Date?p(W):W})),D===null){if(a)return c&&!x?c(n,Yn.encoder,E,"key",g):n;D=""}if(BDt(D)||Xq.isBuffer(D)){if(c){var P=x?n:c(n,Yn.encoder,E,"key",g);return[v(P)+"="+v(c(D,Yn.encoder,E,"value",g))]}return[v(n)+"="+v(String(D))]}var R=[];if(typeof D>"u")return R;var k;if(i==="comma"&&wp(D))k=[{value:D.length>0?D.join(",")||null:void 0}];else if(wp(u))k=u;else{var F=Object.keys(D);k=l?F.sort(l):F}for(var L=0;L"u"?Yn.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Yn.charsetSentinel,delimiter:typeof r.delimiter>"u"?Yn.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Yn.encode,encoder:typeof r.encoder=="function"?r.encoder:Yn.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Yn.encodeValuesOnly,filter:o,format:i,formatter:a,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Yn.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Yn.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Yn.strictNullHandling}};gPe.exports=function(e,r){var n=e,i=GDt(r),a,o;typeof i.filter=="function"?(o=i.filter,n=o("",n)):wp(i.filter)&&(o=i.filter,a=o);var c=[];if(typeof n!="object"||n===null)return"";var u;r&&r.arrayFormat in dPe?u=r.arrayFormat:r&&"indices"in r?u=r.indices?"indices":"repeat":u="indices";var l=dPe[u];a||(a=Object.keys(n)),i.sort&&a.sort(i.sort);for(var f=0;f0?v+g:""}});var xPe=S((qrr,bPe)=>{"use strict";var rg=Kq(),Jq=Object.prototype.hasOwnProperty,WDt=Array.isArray,kn={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:rg.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},HDt=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},yPe=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},zDt="utf8=%26%2310003%3B",VDt="utf8=%E2%9C%93",YDt=function(r,n){var i={},a=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,o=n.parameterLimit===1/0?void 0:n.parameterLimit,c=a.split(n.delimiter,o),u=-1,l,f=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(E=WDt(E)?[E]:E),Jq.call(i,x)?i[x]=rg.combine(i[x],E):i[x]=E}return i},KDt=function(e,r,n,i){for(var a=i?r:yPe(r,n),o=e.length-1;o>=0;--o){var c,u=e[o];if(u==="[]"&&n.parseArrays)c=[].concat(a);else{c=n.plainObjects?Object.create(null):{};var l=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,f=parseInt(l,10);!n.parseArrays&&l===""?c={0:a}:!isNaN(f)&&u!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(c=[],c[f]=a):c[l]=a}a=c}return a},XDt=function(r,n,i,a){if(r){var o=i.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,c=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,l=i.depth>0&&c.exec(o),f=l?o.slice(0,l.index):o,p=[];if(f){if(!i.plainObjects&&Jq.call(Object.prototype,f)&&!i.allowPrototypes)return;p.push(f)}for(var g=0;i.depth>0&&(l=u.exec(o))!==null&&g"u"?kn.charset:r.charset;return{allowDots:typeof r.allowDots>"u"?kn.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:kn.allowPrototypes,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:kn.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:kn.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:kn.comma,decoder:typeof r.decoder=="function"?r.decoder:kn.decoder,delimiter:typeof r.delimiter=="string"||rg.isRegExp(r.delimiter)?r.delimiter:kn.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:kn.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:kn.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:kn.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:kn.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:kn.strictNullHandling}};bPe.exports=function(e,r){var n=JDt(r);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var i=typeof e=="string"?YDt(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(i),c=0;c{"use strict";var QDt=vPe(),ZDt=xPe(),eCt=YP();wPe.exports={formats:eCt,parse:ZDt,stringify:QDt}});var PPe=S((Brr,CPe)=>{"use strict";var tCt=Wm(),rCt=Lb(),Qq=zm(),La=zs()("body-parser:urlencoded"),nCt=_o()("body-parser"),iCt=Yb(),EPe=tg();CPe.exports=sCt;var _Pe=Object.create(null);function sCt(e){var r=e||{};r.extended===void 0&&nCt("undefined extended: provide extended option");var n=r.extended!==!1,i=r.inflate!==!1,a=typeof r.limit!="number"?tCt.parse(r.limit||"100kb"):r.limit,o=r.type||"application/x-www-form-urlencoded",c=r.verify||!1;if(c!==!1&&typeof c!="function")throw new TypeError("option verify must be function");var u=n?aCt(r):cCt(r),l=typeof o!="function"?uCt(o):o;function f(p){return p.length?u(p):{}}return function(g,v,x){if(g._body){La("body already parsed"),x();return}if(g.body=g.body||{},!EPe.hasBody(g)){La("skip empty body"),x();return}if(La("content-type %j",g.headers["content-type"]),!l(g)){La("skip parsing"),x();return}var E=oCt(g)||"utf-8";if(E!=="utf-8"){La("invalid charset"),x(Qq(415,'unsupported charset "'+E.toUpperCase()+'"',{charset:E,type:"charset.unsupported"}));return}iCt(g,v,x,f,La,{debug:La,encoding:E,inflate:i,limit:a,verify:c})}}function aCt(e){var r=e.parameterLimit!==void 0?e.parameterLimit:1e3,n=DPe("qs");if(isNaN(r)||r<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(r)&&(r=r|0),function(a){var o=SPe(a,r);if(o===void 0)throw La("too many parameters"),Qq(413,"too many parameters",{type:"parameters.too.many"});var c=Math.max(100,o);return La("parse extended urlencoding"),n(a,{allowPrototypes:!0,arrayLimit:c,depth:1/0,parameterLimit:r})}}function oCt(e){try{return(rCt.parse(e).parameters.charset||"").toLowerCase()}catch{return}}function SPe(e,r){for(var n=0,i=0;(i=e.indexOf("&",i))!==-1;)if(n++,i++,n===r)return;return n}function DPe(e){var r=_Pe[e];if(r!==void 0)return r.parse;switch(e){case"qs":r=KP();break;case"querystring":r=require("querystring");break}return _Pe[e]=r,r.parse}function cCt(e){var r=e.parameterLimit!==void 0?e.parameterLimit:1e3,n=DPe("querystring");if(isNaN(r)||r<1)throw new TypeError("option parameterLimit must be a positive number");return isFinite(r)&&(r=r|0),function(a){var o=SPe(a,r);if(o===void 0)throw La("too many parameters"),Qq(413,"too many parameters",{type:"parameters.too.many"});return La("parse urlencoding"),n(a,void 0,void 0,{maxKeys:r})}}function uCt(e){return function(n){return!!EPe(n,e)}}});var APe=S((hl,RPe)=>{"use strict";var lCt=_o()("body-parser"),TPe=Object.create(null);hl=RPe.exports=lCt.function(fCt,"bodyParser: use individual json/urlencoded middlewares");Object.defineProperty(hl,"json",{configurable:!0,enumerable:!0,get:XP("json")});Object.defineProperty(hl,"raw",{configurable:!0,enumerable:!0,get:XP("raw")});Object.defineProperty(hl,"text",{configurable:!0,enumerable:!0,get:XP("text")});Object.defineProperty(hl,"urlencoded",{configurable:!0,enumerable:!0,get:XP("urlencoded")});function fCt(e){var r={};if(e)for(var n in e)n!=="type"&&(r[n]=e[n]);var i=hl.urlencoded(r),a=hl.json(r);return function(c,u,l){a(c,u,function(f){if(f)return l(f);i(c,u,l)})}}function XP(e){return function(){return pCt(e)}}function pCt(e){var r=TPe[e];if(r!==void 0)return r;switch(e){case"json":r=nPe();break;case"raw":r=aPe();break;case"text":r=uPe();break;case"urlencoded":r=PPe();break}return TPe[e]=r}});var IPe=S((Urr,OPe)=>{"use strict";OPe.exports=hCt;var dCt=Object.prototype.hasOwnProperty;function hCt(e,r,n){if(!e)throw new TypeError("argument dest is required");if(!r)throw new TypeError("argument src is required");return n===void 0&&(n=!0),Object.getOwnPropertyNames(r).forEach(function(a){if(!(!n&&dCt.call(e,a))){var o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(e,a,o)}}),e}});var Qb=S((Grr,kPe)=>{"use strict";kPe.exports=yCt;var mCt=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,gCt=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,vCt="$1\uFFFD$2";function yCt(e){return String(e).replace(gCt,vCt).replace(mCt,encodeURI)}});var Zb=S((Wrr,FPe)=>{"use strict";var bCt=/["'&<>]/;FPe.exports=xCt;function xCt(e){var r=""+e,n=bCt.exec(r);if(!n)return r;var i,a="",o=0,c=0;for(o=n.index;o{"use strict";var LPe=require("url"),$Pe=LPe.parse,JP=LPe.Url;Zq.exports=NPe;Zq.exports.original=wCt;function NPe(e){var r=e.url;if(r!==void 0){var n=e._parsedUrl;return qPe(r,n)?n:(n=MPe(r),n._raw=r,e._parsedUrl=n)}}function wCt(e){var r=e.originalUrl;if(typeof r!="string")return NPe(e);var n=e._parsedOriginalUrl;return qPe(r,n)?n:(n=MPe(r),n._raw=r,e._parsedOriginalUrl=n)}function MPe(e){if(typeof e!="string"||e.charCodeAt(0)!==47)return $Pe(e);for(var r=e,n=null,i=null,a=1;a{"use strict";var ej=zs()("finalhandler"),_Ct=Qb(),ECt=Zb(),BPe=Vb(),SCt=ng(),UPe=Mb(),DCt=Gq(),CCt=/\x20{2}/g,PCt=/\n/g,TCt=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))},RCt=BPe.isFinished;function ACt(e){var r=ECt(e).replace(PCt,"
").replace(CCt,"  ");return` - - - -Error - - -
`+r+`
- - -`}GPe.exports=OCt;function OCt(e,r,n){var i=n||{},a=i.env||process.env.NODE_ENV||"development",o=i.onerror;return function(c){var u,l,f;if(!c&&jPe(r)){ej("cannot 404 after headers sent");return}if(c?(f=FCt(c),f===void 0?f=LCt(r):u=ICt(c),l=kCt(c,f,a)):(f=404,l="Cannot "+e.method+" "+_Ct($Ct(e))),ej("default %s",f),c&&o&&TCt(o,c,e,r),jPe(r)){ej("cannot %d after headers sent",f),e.socket.destroy();return}NCt(e,r,f,u,l)}}function ICt(e){if(!(!e.headers||typeof e.headers!="object")){for(var r=Object.create(null),n=Object.keys(e.headers),i=0;i=400&&e.status<600)return e.status;if(typeof e.statusCode=="number"&&e.statusCode>=400&&e.statusCode<600)return e.statusCode}function $Ct(e){try{return SCt.original(e).pathname}catch{return"resource"}}function LCt(e){var r=e.statusCode;return(typeof r!="number"||r<400||r>599)&&(r=500),r}function jPe(e){return typeof e.headersSent!="boolean"?!!e._header:e.headersSent}function NCt(e,r,n,i,a){function o(){var c=ACt(a);if(r.statusCode=n,r.statusMessage=UPe[n],MCt(r,i),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Content-Type","text/html; charset=utf-8"),r.setHeader("Content-Length",Buffer.byteLength(c,"utf8")),e.method==="HEAD"){r.end();return}r.end(c,"utf8")}if(RCt(e)){o();return}DCt(e),BPe(e,o),e.resume()}function MCt(e,r){if(r)for(var n=Object.keys(r),i=0;i{"use strict";VPe.exports=qCt;function HPe(e,r,n){for(var i=0;i0&&Array.isArray(a)?HPe(a,r,n-1):r.push(a)}return r}function zPe(e,r){for(var n=0;n{"use strict";XPe.exports=KPe;var YPe=/\((?!\?)/g;function KPe(e,r,n){n=n||{},r=r||[];var i=n.strict,a=n.end!==!1,o=n.sensitive?"":"i",c=0,u=r.length,l=0,f=0,p;if(e instanceof RegExp){for(;p=YPe.exec(e.source);)r.push({name:f++,optional:!1,offset:p.index});return e}if(Array.isArray(e))return e=e.map(function(x){return KPe(x,r,n).source}),new RegExp("(?:"+e.join("|")+")",o);for(e=("^"+e+(i?"":e[e.length-1]==="/"?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,function(x,E,D,P,R,k,F,L){E=E||"",D=D||"",R=R||"([^\\/"+D+"]+?)",F=F||"",r.push({name:P,optional:!!F,offset:L+c});var U=""+(F?"":E)+"(?:"+D+(F?E:"")+R+(k?"((?:[\\/"+D+"].+?)?)":"")+")"+F;return c+=U.length-x.length,U}).replace(/\*/g,function(x,E){for(var D=r.length;D-- >u&&r[D].offset>E;)r[D].offset+=3;return"(.*)"});p=YPe.exec(e);){for(var g=0,v=p.index;e.charAt(--v)==="\\";)g++;g%2!==1&&((u+l===r.length||r[u+l].offset>p.index)&&r.splice(u+l,0,{name:f++,optional:!1,offset:p.index}),l++)}return e+=a?"$":e[e.length-1]==="/"?"":"(?=\\/|$)",new RegExp(e,o)}});var tj=S((Krr,ZPe)=>{"use strict";var jCt=JPe(),BCt=zs()("express:router:layer"),UCt=Object.prototype.hasOwnProperty;ZPe.exports=ig;function ig(e,r,n){if(!(this instanceof ig))return new ig(e,r,n);BCt("new %o",e);var i=r||{};this.handle=n,this.name=n.name||"",this.params=void 0,this.path=void 0,this.regexp=jCt(e,this.keys=[],i),this.regexp.fast_star=e==="*",this.regexp.fast_slash=e==="/"&&i.end===!1}ig.prototype.handle_error=function(r,n,i,a){var o=this.handle;if(o.length!==4)return a(r);try{o(r,n,i,a)}catch(c){a(c)}};ig.prototype.handle_request=function(r,n,i){var a=this.handle;if(a.length>3)return i();try{a(r,n,i)}catch(o){i(o)}};ig.prototype.match=function(r){var n;if(r!=null){if(this.regexp.fast_slash)return this.params={},this.path="",!0;if(this.regexp.fast_star)return this.params={0:QPe(r)},this.path=r,!0;n=this.regexp.exec(r)}if(!n)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=n[0];for(var i=this.keys,a=this.params,o=1;o{"use strict";var eTe=require("http");tTe.exports=GCt()||WCt();function GCt(){return eTe.METHODS&&eTe.METHODS.map(function(r){return r.toLowerCase()})}function WCt(){return["get","post","put","head","delete","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search","connect"]}});var rj=S((Jrr,oTe)=>{"use strict";var rTe=zs()("express:router:route"),nTe=ex(),iTe=tj(),HCt=QP(),sTe=Array.prototype.slice,aTe=Object.prototype.toString;oTe.exports=sg;function sg(e){this.path=e,this.stack=[],rTe("new %o",e),this.methods={}}sg.prototype._handles_method=function(r){if(this.methods._all)return!0;var n=r.toLowerCase();return n==="head"&&!this.methods.head&&(n="get"),!!this.methods[n]};sg.prototype._options=function(){var r=Object.keys(this.methods);this.methods.get&&!this.methods.head&&r.push("head");for(var n=0;n{"use strict";cTe=uTe.exports=function(e,r){if(e&&r)for(var n in r)e[n]=r[n];return e}});var ij=S((Qrr,dTe)=>{"use strict";var zCt=rj(),fTe=tj(),VCt=QP(),nj=tx(),ZP=zs()("express:router"),lTe=_o()("express"),YCt=ex(),KCt=ng(),XCt=Nb(),JCt=/^\[object (\S+)\]$/,pTe=Array.prototype.slice,QCt=Object.prototype.toString,_p=dTe.exports=function(e){var r=e||{};function n(i,a,o){n.handle(i,a,o)}return XCt(n,_p),n.params={},n._params=[],n.caseSensitive=r.caseSensitive,n.mergeParams=r.mergeParams,n.strict=r.strict,n.stack=[],n};_p.param=function(r,n){if(typeof r=="function"){lTe("router.param(fn): Refactor to use path params"),this._params.push(r);return}var i=this._params,a=i.length,o;r[0]===":"&&(lTe("router.param("+JSON.stringify(r)+", fn): Use router.param("+JSON.stringify(r.substr(1))+", fn) instead"),r=r.substr(1));for(var c=0;c=g.length){setImmediate(E,k);return}var F=ePt(r);if(F==null)return E(k);for(var L,U,V;U!==!0&&o=u.length)return o();if(p=0,g=u[l++],f=g.name,v=i.params[f],x=c[f],E=n[f],v===void 0||!x)return D();if(E&&(E.match===v||E.error&&E.error!=="route"))return i.params[f]=E.value,D(E.error);n[f]=E={error:null,match:v,value:v},P()}function P(R){var k=x[p++];if(E.value=i.params[g.name],R){E.error=R,D(R);return}if(!k)return D();try{k(i,a,P,v,g.name)}catch(F){P(F)}}D()};_p.use=function(r){var n=0,i="/";if(typeof r!="function"){for(var a=r;Array.isArray(a)&&a.length!==0;)a=a[0];typeof a!="function"&&(n=1,i=r)}var o=YCt(pTe.call(arguments,n));if(o.length===0)throw new TypeError("Router.use() requires a middleware function");for(var c=0;c");var u=new fTe(i,{sensitive:this.caseSensitive,strict:!1,end:!1},r);u.route=void 0,this.stack.push(u)}return this};_p.route=function(r){var n=new zCt(r),i=new fTe(r,{sensitive:this.caseSensitive,strict:this.strict,end:!0},n.dispatch.bind(n));return i.route=n,this.stack.push(i),n};VCt.concat("all").forEach(function(e){_p[e]=function(r){var n=this.route(r);return n[e].apply(n,pTe.call(arguments,1)),this}});function ZCt(e,r){for(var n=0;n=0;i--)e[i+a]=e[i],i{"use strict";var hTe=Nb();mTe.init=function(e){return function(n,i,a){e.enabled("x-powered-by")&&i.setHeader("X-Powered-By","Express"),n.res=i,i.req=n,n.next=a,hTe(n,e.request),hTe(i,e.response),i.locals=i.locals||Object.create(null),a()}}});var sj=S((enr,vTe)=>{"use strict";var cPt=tx(),uPt=ng(),lPt=KP();vTe.exports=function(r){var n=cPt({},r),i=lPt.parse;return typeof r=="function"&&(i=r,n=void 0),n!==void 0&&n.allowPrototypes===void 0&&(n.allowPrototypes=!0),function(o,c,u){if(!o.query){var l=uPt(o).query;o.query=i(l,n)}u()}}});var _Te=S((tnr,wTe)=>{"use strict";var eT=zs()("express:view"),rx=require("path"),fPt=require("fs"),pPt=rx.dirname,xTe=rx.basename,dPt=rx.extname,yTe=rx.join,hPt=rx.resolve;wTe.exports=tT;function tT(e,r){var n=r||{};if(this.defaultEngine=n.defaultEngine,this.ext=dPt(e),this.name=e,this.root=n.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");var i=e;if(this.ext||(this.ext=this.defaultEngine[0]!=="."?"."+this.defaultEngine:this.defaultEngine,i+=this.ext),!n.engines[this.ext]){var a=this.ext.substr(1);eT('require "%s"',a);var o=require(a).__express;if(typeof o!="function")throw new Error('Module "'+a+'" does not provide a view engine.');n.engines[this.ext]=o}this.engine=n.engines[this.ext],this.path=this.lookup(i)}tT.prototype.lookup=function(r){var n,i=[].concat(this.root);eT('lookup "%s"',r);for(var a=0;a{"use strict";aj.exports=DPt;aj.exports.parse=RPt;var ETe=require("path").basename,mPt=Zy().Buffer,gPt=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,vPt=/%[0-9A-Fa-f]{2}/,yPt=/%([0-9A-Fa-f]{2})/g,DTe=/[^\x20-\x7e\xa0-\xff]/g,bPt=/\\([\u0000-\u007f])/g,xPt=/([\\"])/g,STe=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,wPt=/^[\x20-\x7e\x80-\xff]+$/,_Pt=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,EPt=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,SPt=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function DPt(e,r){var n=r||{},i=n.type||"attachment",a=CPt(e,n.fallback);return PPt(new PTe(i,a))}function CPt(e,r){if(e!==void 0){var n={};if(typeof e!="string")throw new TypeError("filename must be a string");if(r===void 0&&(r=!0),typeof r!="string"&&typeof r!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof r=="string"&&DTe.test(r))throw new TypeError("fallback must be ISO-8859-1 string");var i=ETe(e),a=wPt.test(i),o=typeof r!="string"?r&&CTe(i):ETe(r),c=typeof o=="string"&&o!==i;return(c||!a||vPt.test(i))&&(n["filename*"]=i),(a||c)&&(n.filename=c?o:i),n}}function PPt(e){var r=e.parameters,n=e.type;if(!n||typeof n!="string"||!_Pt.test(n))throw new TypeError("invalid type");var i=String(n).toLowerCase();if(r&&typeof r=="object")for(var a,o=Object.keys(r).sort(),c=0;c{"use strict";var FPt=require("fs").ReadStream,$Pt=require("stream");TTe.exports=LPt;function LPt(e){return e instanceof FPt?NPt(e):(e instanceof $Pt&&typeof e.destroy=="function"&&e.destroy(),e)}function NPt(e){return e.destroy(),typeof e.close=="function"&&e.on("open",MPt),e}function MPt(){typeof this.fd=="number"&&this.close()}});var cj=S((inr,ITe)=>{"use strict";ITe.exports=BPt;var qPt=require("crypto"),ATe=require("fs").Stats,OTe=Object.prototype.toString;function jPt(e){if(e.length===0)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var r=qPt.createHash("sha1").update(e,"utf8").digest("base64").substring(0,27),n=typeof e=="string"?Buffer.byteLength(e,"utf8"):e.length;return'"'+n.toString(16)+"-"+r+'"'}function BPt(e,r){if(e==null)throw new TypeError("argument entity is required");var n=UPt(e),i=r&&typeof r.weak=="boolean"?r.weak:n;if(!n&&typeof e!="string"&&!Buffer.isBuffer(e))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var a=n?GPt(e):jPt(e);return i?"W/"+a:a}function UPt(e){return typeof ATe=="function"&&e instanceof ATe?!0:e&&typeof e=="object"&&"ctime"in e&&OTe.call(e.ctime)==="[object Date]"&&"mtime"in e&&OTe.call(e.mtime)==="[object Date]"&&"ino"in e&&typeof e.ino=="number"&&"size"in e&&typeof e.size=="number"}function GPt(e){var r=e.mtime.getTime().toString(16),n=e.size.toString(16);return'"'+n+"-"+r+'"'}});var uj=S((snr,FTe)=>{"use strict";var WPt=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;FTe.exports=HPt;function HPt(e,r){var n=e["if-modified-since"],i=e["if-none-match"];if(!n&&!i)return!1;var a=e["cache-control"];if(a&&WPt.test(a))return!1;if(i&&i!=="*"){var o=r.etag;if(!o)return!1;for(var c=!0,u=zPt(i),l=0;l{VPt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var NTe=S((cnr,LTe)=>{"use strict";var onr=require("path"),YPt=require("fs");function og(){this.types=Object.create(null),this.extensions=Object.create(null)}og.prototype.define=function(e){for(var r in e){for(var n=e[r],i=0;i{"use strict";var cg=1e3,ug=cg*60,lg=ug*60,Ep=lg*24,KPt=Ep*7,XPt=Ep*365.25;MTe.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return JPt(e);if(n==="number"&&isFinite(e))return r.long?ZPt(e):QPt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function JPt(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),i=(r[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*XPt;case"weeks":case"week":case"w":return n*KPt;case"days":case"day":case"d":return n*Ep;case"hours":case"hour":case"hrs":case"hr":case"h":return n*lg;case"minutes":case"minute":case"mins":case"min":case"m":return n*ug;case"seconds":case"second":case"secs":case"sec":case"s":return n*cg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function QPt(e){var r=Math.abs(e);return r>=Ep?Math.round(e/Ep)+"d":r>=lg?Math.round(e/lg)+"h":r>=ug?Math.round(e/ug)+"m":r>=cg?Math.round(e/cg)+"s":e+"ms"}function ZPt(e){var r=Math.abs(e);return r>=Ep?rT(e,r,Ep,"day"):r>=lg?rT(e,r,lg,"hour"):r>=ug?rT(e,r,ug,"minute"):r>=cg?rT(e,r,cg,"second"):e+" ms"}function rT(e,r,n,i){var a=r>=n*1.5;return Math.round(e/n)+" "+i+(a?"s":"")}});var lj=S((lnr,jTe)=>{"use strict";jTe.exports=eTt;function eTt(e,r,n){if(typeof r!="string")throw new TypeError("argument str must be a string");var i=r.indexOf("=");if(i===-1)return-2;var a=r.slice(i+1).split(","),o=[];o.type=r.slice(0,i);for(var c=0;ce-1&&(f=e-1),!(isNaN(l)||isNaN(f)||l>f||l<0)&&o.push({start:l,end:f})}return o.length<1?-1:n&&n.combine?tTt(o):o}function tTt(e){for(var r=e.map(rTt).sort(sTt),n=0,i=1;io.end+1?r[++n]=a:a.end>o.end&&(o.end=a.end,o.index=Math.min(o.index,a.index))}r.length=n+1;var c=r.sort(iTt).map(nTt);return c.type=e.type,c}function rTt(e,r){return{start:e.start,end:e.end,index:r}}function nTt(e){return{start:e.start,end:e.end}}function iTt(e,r){return e.index-r.index}function sTt(e,r){return e.start-r.start}});var aT=S((fnr,gj)=>{"use strict";var aTt=zm(),yr=zs()("send"),Sp=_o()("send"),BTe=RTe(),oTt=Qb(),pj=Zb(),cTt=cj(),uTt=uj(),iT=require("fs"),dj=NTe(),WTe=qTe(),lTt=Vb(),fTt=lj(),nx=require("path"),pTt=Mb(),HTe=require("stream"),dTt=require("util"),hTt=nx.extname,zTe=nx.join,fj=nx.normalize,mj=nx.resolve,nT=nx.sep,mTt=/^ *bytes=/,VTe=60*60*24*365*1e3,UTe=/(?:^|[\\/])\.\.(?:[\\/]|$)/;gj.exports=gTt;gj.exports.mime=dj;function gTt(e,r,n){return new Tt(e,r,n)}function Tt(e,r,n){HTe.call(this);var i=n||{};if(this.options=i,this.path=r,this.req=e,this._acceptRanges=i.acceptRanges!==void 0?!!i.acceptRanges:!0,this._cacheControl=i.cacheControl!==void 0?!!i.cacheControl:!0,this._etag=i.etag!==void 0?!!i.etag:!0,this._dotfiles=i.dotfiles!==void 0?i.dotfiles:"ignore",this._dotfiles!=="ignore"&&this._dotfiles!=="allow"&&this._dotfiles!=="deny")throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._hidden=!!i.hidden,i.hidden!==void 0&&Sp("hidden: use dotfiles: '"+(this._hidden?"allow":"ignore")+"' instead"),i.dotfiles===void 0&&(this._dotfiles=void 0),this._extensions=i.extensions!==void 0?hj(i.extensions,"extensions option"):[],this._immutable=i.immutable!==void 0?!!i.immutable:!1,this._index=i.index!==void 0?hj(i.index,"index option"):["index.html"],this._lastModified=i.lastModified!==void 0?!!i.lastModified:!0,this._maxage=i.maxAge||i.maxage,this._maxage=typeof this._maxage=="string"?WTe(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),VTe),this._root=i.root?mj(i.root):null,!this._root&&i.from&&this.from(i.from)}dTt.inherits(Tt,HTe);Tt.prototype.etag=Sp.function(function(r){return this._etag=!!r,yr("etag %s",this._etag),this},"send.etag: pass etag as option");Tt.prototype.hidden=Sp.function(function(r){return this._hidden=!!r,this._dotfiles=void 0,yr("hidden %s",this._hidden),this},"send.hidden: use dotfiles option");Tt.prototype.index=Sp.function(function(r){var n=r?hj(r,"paths argument"):[];return yr("index %o",r),this._index=n,this},"send.index: pass index as option");Tt.prototype.root=function(r){return this._root=mj(String(r)),yr("root %s",this._root),this};Tt.prototype.from=Sp.function(Tt.prototype.root,"send.from: pass root as option");Tt.prototype.root=Sp.function(Tt.prototype.root,"send.root: pass root as option");Tt.prototype.maxage=Sp.function(function(r){return this._maxage=typeof r=="string"?WTe(r):Number(r),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),VTe),yr("max-age %d",this._maxage),this},"send.maxage: pass maxAge as option");Tt.prototype.error=function(r,n){if(XTe(this,"error"))return this.emit("error",aTt(r,n,{expose:!1}));var i=this.res,a=pTt[r]||String(r),o=YTe("Error",pj(a));vTt(i),n&&n.headers&&ETt(i,n.headers),i.statusCode=r,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",Buffer.byteLength(o)),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(o)};Tt.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]==="/"};Tt.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]};Tt.prototype.isPreconditionFailure=function(){var r=this.req,n=this.res,i=r.headers["if-match"];if(i){var a=n.getHeader("ETag");return!a||i!=="*"&&_Tt(i).every(function(u){return u!==a&&u!=="W/"+a&&"W/"+u!==a})}var o=sT(r.headers["if-unmodified-since"]);if(!isNaN(o)){var c=sT(n.getHeader("Last-Modified"));return isNaN(c)||c>o}return!1};Tt.prototype.removeContentHeaderFields=function(){for(var r=this.res,n=KTe(r),i=0;i=200&&r<300||r===304};Tt.prototype.onStatError=function(r){switch(r.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,r);break;default:this.error(500,r);break}};Tt.prototype.isFresh=function(){return uTt(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})};Tt.prototype.isRangeFresh=function(){var r=this.req.headers["if-range"];if(!r)return!0;if(r.indexOf('"')!==-1){var n=this.res.getHeader("ETag");return!!(n&&r.indexOf(n)!==-1)}var i=this.res.getHeader("Last-Modified");return sT(i)<=sT(r)};Tt.prototype.redirect=function(r){var n=this.res;if(XTe(this,"directory")){this.emit("directory",n,r);return}if(this.hasTrailingSlash()){this.error(403);return}var i=oTt(yTt(this.path+"/")),a=YTe("Redirecting",'Redirecting to '+pj(i)+"");n.statusCode=301,n.setHeader("Content-Type","text/html; charset=UTF-8"),n.setHeader("Content-Length",Buffer.byteLength(a)),n.setHeader("Content-Security-Policy","default-src 'none'"),n.setHeader("X-Content-Type-Options","nosniff"),n.setHeader("Location",i),n.end(a)};Tt.prototype.pipe=function(r){var n=this._root;this.res=r;var i=xTt(this.path);if(i===-1)return this.error(400),r;if(~i.indexOf("\0"))return this.error(400),r;var a;if(n!==null){if(i&&(i=fj("."+nT+i)),UTe.test(i))return yr('malicious path "%s"',i),this.error(403),r;a=i.split(nT),i=fj(zTe(n,i))}else{if(UTe.test(i))return yr('malicious path "%s"',i),this.error(403),r;a=fj(i).split(nT),i=mj(i)}if(bTt(a)){var o=this._dotfiles;switch(o===void 0&&(o=a[a.length-1][0]==="."?this._hidden?"allow":"ignore":"allow"),yr('%s dotfile "%s"',o,i),o){case"allow":break;case"deny":return this.error(403),r;case"ignore":default:return this.error(404),r}}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(i),r):(this.sendFile(i),r)};Tt.prototype.send=function(r,n){var i=n.size,a=this.options,o={},c=this.res,u=this.req,l=u.headers.range,f=a.start||0;if(wTt(c)){this.headersAlreadySent();return}if(yr('pipe "%s"',r),this.setHeader(r,n),this.type(r),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(i=Math.max(0,i-f),a.end!==void 0){var p=a.end-f+1;i>p&&(i=p)}if(this._acceptRanges&&mTt.test(l)){if(l=fTt(i,l,{combine:!0}),this.isRangeFresh()||(yr("range stale"),l=-2),l===-1)return yr("range unsatisfiable"),c.setHeader("Content-Range",GTe("bytes",i)),this.error(416,{headers:{"Content-Range":c.getHeader("Content-Range")}});l!==-2&&l.length===1&&(yr("range %j",l),c.statusCode=206,c.setHeader("Content-Range",GTe("bytes",i,l[0])),f+=l[0].start,i=l[0].end-l[0].start+1)}for(var g in a)o[g]=a[g];if(o.start=f,o.end=Math.max(f,f+i-1),c.setHeader("Content-Length",i),u.method==="HEAD"){c.end();return}this.stream(r,o)};Tt.prototype.sendFile=function(r){var n=0,i=this;yr('stat "%s"',r),iT.stat(r,function(c,u){if(c&&c.code==="ENOENT"&&!hTt(r)&&r[r.length-1]!==nT)return a(c);if(c)return i.onStatError(c);if(u.isDirectory())return i.redirect(r);i.emit("file",r,u),i.send(r,u)});function a(o){if(i._extensions.length<=n)return o?i.onStatError(o):i.error(404);var c=r+"."+i._extensions[n++];yr('stat "%s"',c),iT.stat(c,function(u,l){if(u)return a(u);if(l.isDirectory())return a();i.emit("file",c,l),i.send(c,l)})}};Tt.prototype.sendIndex=function(r){var n=-1,i=this;function a(o){if(++n>=i._index.length)return o?i.onStatError(o):i.error(404);var c=zTe(r,i._index[n]);yr('stat "%s"',c),iT.stat(c,function(u,l){if(u)return a(u);if(l.isDirectory())return a();i.emit("file",c,l),i.send(c,l)})}a()};Tt.prototype.stream=function(r,n){var i=!1,a=this,o=this.res,c=iT.createReadStream(r,n);this.emit("stream",c),c.pipe(o),lTt(o,function(){i=!0,BTe(c)}),c.on("error",function(l){i||(i=!0,BTe(c),a.onStatError(l))}),c.on("end",function(){a.emit("end")})};Tt.prototype.type=function(r){var n=this.res;if(!n.getHeader("Content-Type")){var i=dj.lookup(r);if(!i){yr("no content-type");return}var a=dj.charsets.lookup(i);yr("content-type %s",i),n.setHeader("Content-Type",i+(a?"; charset="+a:""))}};Tt.prototype.setHeader=function(r,n){var i=this.res;if(this.emit("headers",i,r,n),this._acceptRanges&&!i.getHeader("Accept-Ranges")&&(yr("accept ranges"),i.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!i.getHeader("Cache-Control")){var a="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(a+=", immutable"),yr("cache-control %s",a),i.setHeader("Cache-Control",a)}if(this._lastModified&&!i.getHeader("Last-Modified")){var o=n.mtime.toUTCString();yr("modified %s",o),i.setHeader("Last-Modified",o)}if(this._etag&&!i.getHeader("ETag")){var c=cTt(n);yr("etag %s",c),i.setHeader("ETag",c)}};function vTt(e){for(var r=KTe(e),n=0;n1?"/"+e.substr(r):e}function bTt(e){for(var r=0;r1&&n[0]===".")return!0}return!1}function GTe(e,r,n){return e+" "+(n?n.start+"-"+n.end:"*")+"/"+r}function YTe(e,r){return` - - - -`+e+` - - -
`+r+`
- - -`}function xTt(e){try{return decodeURIComponent(e)}catch{return-1}}function KTe(e){return typeof e.getHeaderNames!="function"?Object.keys(e._headers||{}):e.getHeaderNames()}function XTe(e,r){var n=typeof e.listenerCount!="function"?e.listeners(r).length:e.listenerCount(r);return n>0}function wTt(e){return typeof e.headersSent!="boolean"?!!e._header:e.headersSent}function hj(e,r){for(var n=[].concat(e||[]),i=0;i{"use strict";JTe.exports=STt;function STt(e){if(!e)throw new TypeError("argument req is required");var r=CTt(e.headers["x-forwarded-for"]||""),n=DTt(e),i=[n].concat(r);return i}function DTt(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}function CTt(e){for(var r=e.length,n=[],i=e.length,a=e.length-1;a>=0;a--)switch(e.charCodeAt(a)){case 32:i===r&&(i=r=a);break;case 44:i!==r&&n.push(e.substring(i,r)),i=r=a;break;default:i=a;break}return i!==r&&n.push(e.substring(i,r)),n}});var eRe=S((ZTe,ix)=>{"use strict";(function(){var e,r,n,i,a,o,c,u,l;r={},u=this,typeof ix<"u"&&ix!==null&&ix.exports?ix.exports=r:u.ipaddr=r,c=function(f,p,g,v){var x,E;if(f.length!==p.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(x=0;v>0;){if(E=g-v,E<0&&(E=0),f[x]>>E!==p[x]>>E)return!1;v-=g,x+=1}return!0},r.subnetMatch=function(f,p,g){var v,x,E,D,P;g==null&&(g="unicast");for(E in p)for(D=p[E],D[0]&&!(D[0]instanceof Array)&&(D=[D]),v=0,x=D.length;v=0;g=v+=-1)if(x=this.octets[g],x in P){if(D=P[x],E&&D!==0)return null;D!==8&&(E=!0),p+=D}else return null;return 32-p},f}(),n="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},r.IPv4.parser=function(f){var p,g,v,x,E;if(g=function(D){return D[0]==="0"&&D[1]!=="x"?parseInt(D,8):parseInt(D)},p=f.match(i.fourOctet))return function(){var D,P,R,k;for(R=p.slice(1,6),k=[],D=0,P=R.length;D4294967295||E<0)throw new Error("ipaddr: address outside defined range");return function(){var D,P;for(P=[],x=D=0;D<=24;x=D+=8)P.push(E>>x&255);return P}().reverse()}else return null},r.IPv6=function(){function f(p,g){var v,x,E,D,P,R;if(p.length===16)for(this.parts=[],v=x=0;x<=14;v=x+=2)this.parts.push(p[v]<<8|p[v+1]);else if(p.length===8)this.parts=p;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(R=this.parts,E=0,D=R.length;Eg&&(p=v.index,g=v[0].length);return g<0?E:E.substring(0,p)+"::"+E.substring(p+g)},f.prototype.toByteArray=function(){var p,g,v,x,E;for(p=[],E=this.parts,g=0,v=E.length;g>8),p.push(x&255);return p},f.prototype.toNormalizedString=function(){var p,g,v;return p=function(){var x,E,D,P;for(D=this.parts,P=[],x=0,E=D.length;x>8,p&255,g>>8,g&255])},f.prototype.prefixLengthFromSubnetMask=function(){var p,g,v,x,E,D,P;for(P={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},p=0,E=!1,g=v=7;v>=0;g=v+=-1)if(x=this.parts[g],x in P){if(D=P[x],E&&D!==0)return null;D!==16&&(E=!0),p+=D}else return null;return 128-p},f}(),a="(?:[0-9a-f]+::?)+",l="%[0-9a-z]{1,}",o={zoneIndex:new RegExp(l,"i"),native:new RegExp("^(::)?("+a+")?([0-9a-f]+)?(::)?("+l+")?$","i"),transitional:new RegExp("^((?:"+a+")|(?:::)(?:"+a+")?)"+(n+"\\."+n+"\\."+n+"\\."+n)+("("+l+")?$"),"i")},e=function(f,p){var g,v,x,E,D,P;if(f.indexOf("::")!==f.lastIndexOf("::"))return null;for(P=(f.match(o.zoneIndex)||[])[0],P&&(P=P.substring(1),f=f.replace(/%.+$/,"")),g=0,v=-1;(v=f.indexOf(":",v+1))>=0;)g++;if(f.substr(0,2)==="::"&&g--,f.substr(-2,2)==="::"&&g--,g>p)return null;for(D=p-g,E=":";D--;)E+="0:";return f=f.replace("::",E),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),p=function(){var R,k,F,L;for(F=f.split(":"),L=[],R=0,k=F.length;R=0&&p<=32))return v=[this.parse(g[1]),p],Object.defineProperty(v,"toString",{value:function(){return this.join("/")}}),v;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.subnetMaskFromPrefixLength=function(f){var p,g,v;if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(v=[0,0,0,0],g=0,p=Math.floor(f/8);g=0&&p<=128))return v=[this.parse(g[1]),p],Object.defineProperty(v,"toString",{value:function(){return this.join("/")}}),v;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},r.isValid=function(f){return r.IPv6.isValid(f)||r.IPv4.isValid(f)},r.parse=function(f){if(r.IPv6.isValid(f))return r.IPv6.parse(f);if(r.IPv4.isValid(f))return r.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},r.parseCIDR=function(f){var p;try{return r.IPv6.parseCIDR(f)}catch(g){p=g;try{return r.IPv4.parseCIDR(f)}catch(v){throw p=v,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},r.fromByteArray=function(f){var p;if(p=f.length,p===4)return new r.IPv4(f);if(p===16)return new r.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},r.process=function(f){var p;return p=this.parse(f),p.kind()==="ipv6"&&p.isIPv4MappedAddress()?p.toIPv4Address():p}}).call(ZTe)});var vj=S((dnr,uT)=>{"use strict";uT.exports=kTt;uT.exports.all=nRe;uT.exports.compile=iRe;var PTt=QTe(),rRe=eRe(),TTt=/^[0-9]+$/,oT=rRe.isValid,cT=rRe.parse,tRe={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function nRe(e,r){var n=PTt(e);if(!r)return n;typeof r!="function"&&(r=iRe(r));for(var i=0;ia)throw new TypeError("invalid range on address: "+e);return[i,o]}function ITt(e){var r=cT(e),n=r.kind();return n==="ipv4"?r.prefixLengthFromSubnetMask():null}function kTt(e,r){if(!e)throw new TypeError("req argument is required");if(!r)throw new TypeError("trust argument is required");var n=nRe(e,r),i=n[n.length-1];return i}function FTt(){return!1}function $Tt(e){return function(n){if(!oT(n))return!1;for(var i=cT(n),a,o=i.kind(),c=0;c{"use strict";var sRe=Zy().Buffer,NTt=oj(),aRe=Lb(),oRe=_o()("express"),MTt=ex(),qTt=aT().mime,jTt=cj(),BTt=vj(),UTt=KP(),GTt=require("querystring");pi.etag=cRe({weak:!1});pi.wetag=cRe({weak:!0});pi.isAbsolute=function(e){if(e[0]==="/"||e[1]===":"&&(e[2]==="\\"||e[2]==="/")||e.substring(0,2)==="\\\\")return!0};pi.flatten=oRe.function(MTt,"utils.flatten: use array-flatten npm module instead");pi.normalizeType=function(e){return~e.indexOf("/")?WTt(e):{value:qTt.lookup(e),params:{}}};pi.normalizeTypes=function(e){for(var r=[],n=0;n{"use strict";var VTt=WPe(),YTt=ij(),bj=QP(),KTt=gTe(),XTt=sj(),lT=zs()("express:application"),JTt=_Te(),QTt=require("http"),ZTt=ml().compileETag,eRt=ml().compileQueryParser,tRt=ml().compileTrust,rRt=_o()("express"),nRt=ex(),yj=tx(),iRt=require("path").resolve,fg=Nb(),wj=Array.prototype.slice,Wr=uRe=lRe.exports={},xj="@@symbol:trust_proxy_default";Wr.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()};Wr.defaultConfiguration=function(){var r=process.env.NODE_ENV||"development";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",r),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,xj,{configurable:!0,value:!0}),lT("booting in %s mode",r),this.on("mount",function(i){this.settings[xj]===!0&&typeof i.settings["trust proxy fn"]=="function"&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),fg(this.request,i.request),fg(this.response,i.response),fg(this.engines,i.engines),fg(this.settings,i.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",JTt),this.set("views",iRt("views")),this.set("jsonp callback name","callback"),r==="production"&&this.enable("view cache"),Object.defineProperty(this,"router",{get:function(){throw new Error(`'app.router' is deprecated! -Please see the 3.x to 4.x migration guide for details on how to update your app.`)}})};Wr.lazyrouter=function(){this._router||(this._router=new YTt({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")}),this._router.use(XTt(this.get("query parser fn"))),this._router.use(KTt.init(this)))};Wr.handle=function(r,n,i){var a=this._router,o=i||VTt(r,n,{env:this.get("env"),onerror:sRt.bind(this)});if(!a){lT("no routes defined on app"),o();return}a.handle(r,n,o)};Wr.use=function(r){var n=0,i="/";if(typeof r!="function"){for(var a=r;Array.isArray(a)&&a.length!==0;)a=a[0];typeof a!="function"&&(n=1,i=r)}var o=nRt(wj.call(arguments,n));if(o.length===0)throw new TypeError("app.use() requires a middleware function");this.lazyrouter();var c=this._router;return o.forEach(function(u){if(!u||!u.handle||!u.set)return c.use(i,u);lT(".use app under %s",i),u.mountpath=i,u.parent=this,c.use(i,function(f,p,g){var v=f.app;u.handle(f,p,function(x){fg(f,v.request),fg(p,v.response),g(x)})}),u.emit("mount",this)},this),this};Wr.route=function(r){return this.lazyrouter(),this._router.route(r)};Wr.engine=function(r,n){if(typeof n!="function")throw new Error("callback function required");var i=r[0]!=="."?"."+r:r;return this.engines[i]=n,this};Wr.param=function(r,n){if(this.lazyrouter(),Array.isArray(r)){for(var i=0;i1?'directories "'+f.root.slice(0,-1).join('", "')+'" or "'+f.root[f.root.length-1]+'"':'directory "'+f.root+'"',v=new Error('Failed to lookup view "'+r+'" in views '+g);return v.view=f,o(v)}l.cache&&(a[r]=f)}aRt(f,l,o)};Wr.listen=function(){var r=QTt.createServer(this);return r.listen.apply(r,arguments)};function sRt(e){this.get("env")!=="test"&&console.error(e.stack||e.toString())}function aRt(e,r,n){try{e.render(r,n)}catch(i){n(i)}}});var mRe=S((mnr,_j)=>{"use strict";_j.exports=hRe;_j.exports.preferredCharsets=hRe;var oRt=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function cRt(e){for(var r=e.split(","),n=0,i=0;n0}});var xRe=S((gnr,Ej)=>{"use strict";Ej.exports=bRe;Ej.exports.preferredEncodings=bRe;var dRt=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function hRt(e){for(var r=e.split(","),n=!1,i=1,a=0,o=0;a0}});var DRe=S((vnr,Sj)=>{"use strict";Sj.exports=SRe;Sj.exports.preferredLanguages=SRe;var yRt=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function bRt(e){for(var r=e.split(","),n=0,i=0;n0}});var ORe=S((ynr,Dj)=>{"use strict";Dj.exports=RRe;Dj.exports.preferredMediaTypes=RRe;var ERt=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function SRt(e){for(var r=RRt(e),n=0,i=0;n0)if(o.every(function(c){return r.params[c]=="*"||(r.params[c]||"").toLowerCase()==(i.params[c]||"").toLowerCase()}))a|=1;else return null;return{i:n,o:r.i,q:r.q,s:a}}function RRe(e,r){var n=SRt(e===void 0?"*/*":e||"");if(!r)return n.filter(PRe).sort(CRe).map(PRt);var i=r.map(function(o,c){return DRt(o,n,c)});return i.filter(PRe).sort(CRe).map(function(o){return r[i.indexOf(o)]})}function CRe(e,r){return r.q-e.q||r.s-e.s||e.o-r.o||e.i-r.i||0}function PRt(e){return e.type+"/"+e.subtype}function PRe(e){return e.q>0}function ARe(e){for(var r=0,n=0;(n=e.indexOf('"',n))!==-1;)r++,n++;return r}function TRt(e){var r=e.indexOf("="),n,i;return r===-1?n=e:(n=e.substr(0,r),i=e.substr(r+1)),[n,i]}function RRt(e){for(var r=e.split(","),n=1,i=0;n{"use strict";var ORt=mRe(),IRt=xRe(),kRt=DRe(),FRt=ORe();Cj.exports=jt;Cj.exports.Negotiator=jt;function jt(e){if(!(this instanceof jt))return new jt(e);this.request=e}jt.prototype.charset=function(r){var n=this.charsets(r);return n&&n[0]};jt.prototype.charsets=function(r){return ORt(this.request.headers["accept-charset"],r)};jt.prototype.encoding=function(r){var n=this.encodings(r);return n&&n[0]};jt.prototype.encodings=function(r){return IRt(this.request.headers["accept-encoding"],r)};jt.prototype.language=function(r){var n=this.languages(r);return n&&n[0]};jt.prototype.languages=function(r){return kRt(this.request.headers["accept-language"],r)};jt.prototype.mediaType=function(r){var n=this.mediaTypes(r);return n&&n[0]};jt.prototype.mediaTypes=function(r){return FRt(this.request.headers.accept,r)};jt.prototype.preferredCharset=jt.prototype.charset;jt.prototype.preferredCharsets=jt.prototype.charsets;jt.prototype.preferredEncoding=jt.prototype.encoding;jt.prototype.preferredEncodings=jt.prototype.encodings;jt.prototype.preferredLanguage=jt.prototype.language;jt.prototype.preferredLanguages=jt.prototype.languages;jt.prototype.preferredMediaType=jt.prototype.mediaType;jt.prototype.preferredMediaTypes=jt.prototype.mediaTypes});var FRe=S((xnr,kRe)=>{"use strict";var $Rt=IRe(),LRt=zq();kRe.exports=ls;function ls(e){if(!(this instanceof ls))return new ls(e);this.headers=e.headers,this.negotiator=new $Rt(e)}ls.prototype.type=ls.prototype.types=function(e){var r=e;if(r&&!Array.isArray(r)){r=new Array(arguments.length);for(var n=0;n{"use strict";var fT=FRe(),sx=_o()("express"),qRt=require("net").isIP,jRt=tg(),BRt=require("http"),URt=uj(),GRt=lj(),WRt=ng(),$Re=vj(),Gt=Object.create(BRt.IncomingMessage.prototype);LRe.exports=Gt;Gt.get=Gt.header=function(r){if(!r)throw new TypeError("name argument is required to req.get");if(typeof r!="string")throw new TypeError("name must be a string to req.get");var n=r.toLowerCase();switch(n){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[n]}};Gt.accepts=function(){var e=fT(this);return e.types.apply(e,arguments)};Gt.acceptsEncodings=function(){var e=fT(this);return e.encodings.apply(e,arguments)};Gt.acceptsEncoding=sx.function(Gt.acceptsEncodings,"req.acceptsEncoding: Use acceptsEncodings instead");Gt.acceptsCharsets=function(){var e=fT(this);return e.charsets.apply(e,arguments)};Gt.acceptsCharset=sx.function(Gt.acceptsCharsets,"req.acceptsCharset: Use acceptsCharsets instead");Gt.acceptsLanguages=function(){var e=fT(this);return e.languages.apply(e,arguments)};Gt.acceptsLanguage=sx.function(Gt.acceptsLanguages,"req.acceptsLanguage: Use acceptsLanguages instead");Gt.range=function(r,n){var i=this.get("Range");if(i)return GRt(r,i,n)};Gt.param=function(r,n){var i=this.params||{},a=this.body||{},o=this.query||{},c=arguments.length===1?"name":"name, default";return sx("req.param("+c+"): Use req.params, req.body, or req.query instead"),i[r]!=null&&i.hasOwnProperty(r)?i[r]:a[r]!=null?a[r]:o[r]!=null?o[r]:n};Gt.is=function(r){var n=r;if(!Array.isArray(r)){n=new Array(arguments.length);for(var i=0;i=200&&n<300||n===304?URt(this.headers,{etag:r.get("ETag"),"last-modified":r.get("Last-Modified")}):!1});Na(Gt,"stale",function(){return!this.fresh});Na(Gt,"xhr",function(){var r=this.get("X-Requested-With")||"";return r.toLowerCase()==="xmlhttprequest"});function Na(e,r,n){Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:n})}});var jRe=S(pT=>{"use strict";var qRe=require("crypto");pT.sign=function(e,r){if(typeof e!="string")throw new TypeError("Cookie value must be provided as a string.");if(typeof r!="string")throw new TypeError("Secret string must be provided.");return e+"."+qRe.createHmac("sha256",r).update(e).digest("base64").replace(/\=+$/,"")};pT.unsign=function(e,r){if(typeof e!="string")throw new TypeError("Signed cookie string must be provided.");if(typeof r!="string")throw new TypeError("Secret string must be provided.");var n=e.slice(0,e.lastIndexOf(".")),i=pT.sign(n,r);return MRe(i)==MRe(e)?n:!1};function MRe(e){return qRe.createHash("sha1").update(e).digest("hex")}});var BRe=S(Pj=>{"use strict";Pj.parse=YRt;Pj.serialize=KRt;var HRt=decodeURIComponent,zRt=encodeURIComponent,VRt=/; */,dT=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function YRt(e,r){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},i=r||{},a=e.split(VRt),o=i.decode||HRt,c=0;c{"use strict";var ax=Zy().Buffer,URe=oj(),Po=_o()("express"),JRt=Qb(),QRt=Zb(),ZRt=require("http"),e2t=ml().isAbsolute,t2t=Vb(),GRe=require("path"),hT=Mb(),WRe=tx(),r2t=jRe().sign,n2t=ml().normalizeType,i2t=ml().normalizeTypes,s2t=ml().setCharset,a2t=BRe(),Tj=aT(),o2t=GRe.extname,HRe=Tj.mime,c2t=GRe.resolve,u2t=iq(),er=Object.create(ZRt.ServerResponse.prototype);YRe.exports=er;var l2t=/;\s*charset\s*=/;er.status=function(r){return this.statusCode=r,this};er.links=function(e){var r=this.get("Link")||"";return r&&(r+=", "),this.set("Link",r+Object.keys(e).map(function(n){return"<"+e[n]+'>; rel="'+n+'"'}).join(", "))};er.send=function(r){var n=r,i,a=this.req,o,c=this.app;switch(arguments.length===2&&(typeof arguments[0]!="number"&&typeof arguments[1]=="number"?(Po("res.send(body, status): Use res.status(status).send(body) instead"),this.statusCode=arguments[1]):(Po("res.send(status, body): Use res.status(status).send(body) instead"),this.statusCode=arguments[0],n=arguments[1])),typeof n=="number"&&arguments.length===1&&(this.get("Content-Type")||this.type("txt"),Po("res.send(status): Use res.sendStatus(status) instead"),this.statusCode=n,n=hT[n]),typeof n){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(n===null)n="";else if(ax.isBuffer(n))this.get("Content-Type")||this.type("bin");else return this.json(n);break}typeof n=="string"&&(i="utf8",o=this.get("Content-Type"),typeof o=="string"&&this.set("Content-Type",s2t(o,"utf-8")));var u=c.get("etag fn"),l=!this.get("ETag")&&typeof u=="function",f;n!==void 0&&(ax.isBuffer(n)?f=n.length:!l&&n.length<1e3?f=ax.byteLength(n,i):(n=ax.from(n,i),i=void 0,f=n.length),this.set("Content-Length",f));var p;return l&&f!==void 0&&(p=u(n,i))&&this.set("ETag",p),a.fresh&&(this.statusCode=304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),n=""),a.method==="HEAD"?this.end():this.end(n,i),this};er.json=function(r){var n=r;arguments.length===2&&(typeof arguments[1]=="number"?(Po("res.json(obj, status): Use res.status(status).json(obj) instead"),this.statusCode=arguments[1]):(Po("res.json(status, obj): Use res.status(status).json(obj) instead"),this.statusCode=arguments[0],n=arguments[1]));var i=this.app,a=i.get("json escape"),o=i.get("json replacer"),c=i.get("json spaces"),u=VRe(n,o,c,a);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(u)};er.jsonp=function(r){var n=r;arguments.length===2&&(typeof arguments[1]=="number"?(Po("res.jsonp(obj, status): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[1]):(Po("res.jsonp(status, obj): Use res.status(status).jsonp(obj) instead"),this.statusCode=arguments[0],n=arguments[1]));var i=this.app,a=i.get("json escape"),o=i.get("json replacer"),c=i.get("json spaces"),u=VRe(n,o,c,a),l=this.req.query[i.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(l)&&(l=l[0]),typeof l=="string"&&l.length!==0&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),l=l.replace(/[^\[\]\w$.]/g,""),u===void 0?u="":typeof u=="string"&&(u=u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")),u="/**/ typeof "+l+" === 'function' && "+l+"("+u+");"),this.send(u)};er.sendStatus=function(r){var n=hT[r]||String(r);return this.statusCode=r,this.type("txt"),this.send(n)};er.sendFile=function(r,n,i){var a=i,o=this.req,c=this,u=o.next,l=n||{};if(!r)throw new TypeError("path argument is required to res.sendFile");if(typeof r!="string")throw new TypeError("path must be a string to res.sendFile");if(typeof n=="function"&&(a=n,l={}),!l.root&&!e2t(r))throw new TypeError("path must be absolute or specify root to res.sendFile");var f=encodeURI(r),p=Tj(o,f,l);zRe(c,p,l,function(g){if(a)return a(g);if(g&&g.code==="EISDIR")return u();g&&g.code!=="ECONNABORTED"&&g.syscall!=="write"&&u(g)})};er.sendfile=function(e,r,n){var i=n,a=this.req,o=this,c=a.next,u=r||{};typeof r=="function"&&(i=r,u={});var l=Tj(a,e,u);zRe(o,l,u,function(f){if(i)return i(f);if(f&&f.code==="EISDIR")return c();f&&f.code!=="ECONNABORTED"&&f.syscall!=="write"&&c(f)})};er.sendfile=Po.function(er.sendfile,"res.sendfile: Use res.sendFile instead");er.download=function(r,n,i,a){var o=a,c=n,u=i||null;typeof n=="function"?(o=n,c=null,u=null):typeof i=="function"&&(o=i,u=null);var l={"Content-Disposition":URe(c||r)};if(u&&u.headers)for(var f=Object.keys(u.headers),p=0;p0?r.accepts(a):!1;if(this.vary("Accept"),o)this.set("Content-Type",n2t(o).value),e[o](r,this,n);else if(i)i();else{var c=new Error("Not Acceptable");c.status=c.statusCode=406,c.types=i2t(a).map(function(u){return u.value}),n(c)}return this};er.attachment=function(r){return r&&this.type(o2t(r)),this.set("Content-Disposition",URe(r)),this};er.append=function(r,n){var i=this.get(r),a=n;return i&&(a=Array.isArray(i)?i.concat(n):Array.isArray(n)?[i].concat(n):[i,n]),this.set(r,a)};er.set=er.header=function(r,n){if(arguments.length===2){var i=Array.isArray(n)?n.map(String):String(n);if(r.toLowerCase()==="content-type"){if(Array.isArray(i))throw new TypeError("Content-Type cannot be set to an Array");if(!l2t.test(i)){var a=HRe.charsets.lookup(i.split(";")[0]);a&&(i+="; charset="+a.toLowerCase())}}this.setHeader(r,i)}else for(var o in r)this.set(o,r[o]);return this};er.get=function(e){return this.getHeader(e)};er.clearCookie=function(r,n){var i=WRe({expires:new Date(1),path:"/"},n);return this.cookie(r,"",i)};er.cookie=function(e,r,n){var i=WRe({},n),a=this.req.secret,o=i.signed;if(o&&!a)throw new Error('cookieParser("secret") required for signed cookies');var c=typeof r=="object"?"j:"+JSON.stringify(r):String(r);return o&&(c="s:"+r2t(c,a)),"maxAge"in i&&(i.expires=new Date(Date.now()+i.maxAge),i.maxAge/=1e3),i.path==null&&(i.path="/"),this.append("Set-Cookie",a2t.serialize(e,String(c),i)),this};er.location=function(r){var n=r;return r==="back"&&(n=this.req.get("Referrer")||"/"),this.set("Location",JRt(n))};er.redirect=function(r){var n=r,i,a=302;arguments.length===2&&(typeof arguments[0]=="number"?(a=arguments[0],n=arguments[1]):(Po("res.redirect(url, status): Use res.redirect(status, url) instead"),a=arguments[1])),n=this.location(n).get("Location"),this.format({text:function(){i=hT[a]+". Redirecting to "+n},html:function(){var o=QRt(n);i="

"+hT[a]+'. Redirecting to '+o+"

"},default:function(){i=""}}),this.statusCode=a,this.set("Content-Length",ax.byteLength(i)),this.req.method==="HEAD"?this.end():this.end(i)};er.vary=function(e){return!e||Array.isArray(e)&&!e.length?(Po("res.vary(): Provide a field name"),this):(u2t(this,e),this)};er.render=function(r,n,i){var a=this.req.app,o=i,c=n||{},u=this.req,l=this;typeof n=="function"&&(o=n,c={}),c._locals=l.locals,o=o||function(f,p){if(f)return u.next(f);l.send(p)},a.render(r,c,o)};function zRe(e,r,n,i){var a=!1,o;function c(){if(!a){a=!0;var x=new Error("Request aborted");x.code="ECONNABORTED",i(x)}}function u(){if(!a){a=!0;var x=new Error("EISDIR, read");x.code="EISDIR",i(x)}}function l(x){a||(a=!0,i(x))}function f(){a||(a=!0,i())}function p(){o=!1}function g(x){if(x&&x.code==="ECONNRESET")return c();if(x)return l(x);a||setImmediate(function(){if(o!==!1&&!a){c();return}a||(a=!0,i())})}function v(){o=!0}r.on("directory",u),r.on("end",f),r.on("error",l),r.on("file",p),r.on("stream",v),t2t(e,g),n.headers&&r.on("headers",function(E){for(var D=n.headers,P=Object.keys(D),R=0;R&]/g,function(o){switch(o.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return o}})),a}});var QRe=S((Dnr,Aj)=>{"use strict";var f2t=Qb(),XRe=Zb(),Rj=ng(),p2t=require("path").resolve,JRe=aT(),d2t=require("url");Aj.exports=h2t;Aj.exports.mime=JRe.mime;function h2t(e,r){if(!e)throw new TypeError("root path required");if(typeof e!="string")throw new TypeError("root path must be a string");var n=Object.create(r||null),i=n.fallthrough!==!1,a=n.redirect!==!1,o=n.setHeaders;if(o&&typeof o!="function")throw new TypeError("option setHeaders must be function");n.maxage=n.maxage||n.maxAge||0,n.root=p2t(e);var c=a?y2t():v2t();return function(l,f,p){if(l.method!=="GET"&&l.method!=="HEAD"){if(i)return p();f.statusCode=405,f.setHeader("Allow","GET, HEAD"),f.setHeader("Content-Length","0"),f.end();return}var g=!i,v=Rj.original(l),x=Rj(l).pathname;x==="/"&&v.pathname.substr(-1)!=="/"&&(x="");var E=JRe(l,x,n);E.on("directory",c),o&&E.on("headers",o),i&&E.on("file",function(){g=!0}),E.on("error",function(P){if(g||!(P.statusCode<500)){p(P);return}p()}),E.pipe(f)}}function m2t(e){for(var r=0;r1?"/"+e.substr(r):e}function g2t(e,r){return` - - - -`+e+` - - -
`+r+`
- - -`}function v2t(){return function(){this.error(404)}}function y2t(){return function(r){if(this.hasTrailingSlash()){this.error(404);return}var n=Rj.original(this.req);n.path=null,n.pathname=m2t(n.pathname+"/");var i=f2t(d2t.format(n)),a=g2t("Redirecting",'Redirecting to '+XRe(i)+"");r.statusCode=301,r.setHeader("Content-Type","text/html; charset=UTF-8"),r.setHeader("Content-Length",Buffer.byteLength(a)),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Location",i),r.end(a)}}});var i2e=S((Li,n2e)=>{"use strict";var mT=APe(),b2t=require("events").EventEmitter,ZRe=IPe(),e2e=fRe(),x2t=rj(),w2t=ij(),t2e=NRe(),r2e=KRe();Li=n2e.exports=_2t;function _2t(){var e=function(r,n,i){e.handle(r,n,i)};return ZRe(e,b2t.prototype,!1),ZRe(e,e2e,!1),e.request=Object.create(t2e,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(r2e,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}Li.application=e2e;Li.request=t2e;Li.response=r2e;Li.Route=x2t;Li.Router=w2t;Li.json=mT.json;Li.query=sj();Li.raw=mT.raw;Li.static=QRe();Li.text=mT.text;Li.urlencoded=mT.urlencoded;var E2t=["bodyParser","compress","cookieSession","session","logger","cookieParser","favicon","responseTime","errorHandler","timeout","methodOverride","vhost","csrf","directory","limit","multipart","staticCache"];E2t.forEach(function(e){Object.defineProperty(Li,e,{get:function(){throw new Error("Most middleware (like "+e+") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.")},configurable:!0})})});var a2e=S((Cnr,s2e)=>{"use strict";s2e.exports=i2e()});var u2e=S((Pnr,c2e)=>{"use strict";var S2t=require("os"),o2e=S2t.homedir();c2e.exports=e=>{if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return o2e?e.replace(/^~(?=$|\/|\\)/,o2e):e}});var Oj=S((Tnr,l2e)=>{"use strict";function D2t(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=a,n.enabled=c,n.humanize=sF(),n.destroy=f,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function r(p){let g=0;for(let v=0;v{if(V==="%%")return"%";L++;let W=n.formatters[j];if(typeof W=="function"){let q=P[L];V=W.call(R,q),P.splice(L,1),L--}return V}),n.formatArgs.call(R,P),(R.log||n.log).apply(R,P)}return D.namespace=p,D.useColors=n.useColors(),D.color=n.selectColor(p),D.extend=i,D.destroy=n.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(x!==n.namespaces&&(x=n.namespaces,E=n.enabled(p)),E),set:P=>{v=P}}),typeof n.init=="function"&&n.init(D),D}function i(p,g){let v=n(this.namespace+(typeof g>"u"?":":g)+p);return v.log=this.log,v}function a(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];let g,v=(typeof p=="string"?p:"").split(/[\s,]+/),x=v.length;for(g=0;g"-"+g)].join(",");return n.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let g,v;for(g=0,v=n.skips.length;g{"use strict";ps.formatArgs=P2t;ps.save=T2t;ps.load=R2t;ps.useColors=C2t;ps.storage=A2t();ps.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ps.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function C2t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function P2t(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+gT.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}ps.log=console.debug||console.log||(()=>{});function T2t(e){try{e?ps.storage.setItem("debug",e):ps.storage.removeItem("debug")}catch{}}function R2t(){let e;try{e=ps.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function A2t(){try{return localStorage}catch{}}gT.exports=Oj()(ps);var{formatters:O2t}=gT.exports;O2t.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});var d2e=S((Fn,yT)=>{"use strict";var I2t=require("tty"),vT=require("util");Fn.init=q2t;Fn.log=L2t;Fn.formatArgs=F2t;Fn.save=N2t;Fn.load=M2t;Fn.useColors=k2t;Fn.destroy=vT.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Fn.colors=[6,2,3,4,5,1];try{let e=cF();e&&(e.stderr||e).level>=2&&(Fn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Fn.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,r)=>{let n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(a,o)=>o.toUpperCase()),i=process.env[r];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[n]=i,e},{});function k2t(){return"colors"in Fn.inspectOpts?!!Fn.inspectOpts.colors:I2t.isatty(process.stderr.fd)}function F2t(e){let{namespace:r,useColors:n}=this;if(n){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),o=` ${a};1m${r} \x1B[0m`;e[0]=o+e[0].split(` -`).join(` -`+o),e.push(a+"m+"+yT.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=$2t()+r+" "+e[0]}function $2t(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function L2t(...e){return process.stderr.write(vT.format(...e)+` -`)}function N2t(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function M2t(){return process.env.DEBUG}function q2t(e){e.inspectOpts={};let r=Object.keys(Fn.inspectOpts);for(let n=0;nr.trim()).join(" ")};p2e.O=function(e){return this.inspectOpts.colors=this.useColors,vT.inspect(e,this.inspectOpts)}});var kj=S((Rnr,Ij)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ij.exports=f2e():Ij.exports=d2e()});var C2e=S((Lnr,Uj)=>{"use strict";var Q2t=require("net"),ST=class extends Error{constructor(r){super(`${r} is locked`)}},pg={old:new Set,young:new Set},Z2t=1e3*15,ET,D2e=e=>new Promise((r,n)=>{let i=Q2t.createServer();i.unref(),i.on("error",n),i.listen(e,()=>{let{port:a}=i.address();i.close(()=>{r(a)})})}),eAt=function*(e){e&&(yield*e),yield 0};Uj.exports=async e=>{let r;e&&(r=typeof e.port=="number"?[e.port]:e.port),ET===void 0&&(ET=setInterval(()=>{pg.old=pg.young,pg.young=new Set},Z2t),ET.unref&&ET.unref());for(let n of eAt(r))try{let i=await D2e({...e,port:n});for(;pg.old.has(i)||pg.young.has(i);){if(n!==0)throw new ST(n);i=await D2e({...e,port:n})}return pg.young.add(i),i}catch(i){if(!["EADDRINUSE","EACCES"].includes(i.code)&&!(i instanceof ST))throw i}throw new Error("No available ports found")};Uj.exports.makeRange=(e,r)=>{if(!Number.isInteger(e)||!Number.isInteger(r))throw new TypeError("`from` and `to` must be integer numbers");if(e<1024||e>65535)throw new RangeError("`from` must be between 1024 and 65535");if(r<1024||r>65536)throw new RangeError("`to` must be between 1024 and 65536");if(rn9,bgBlack:()=>_Oe,bgBlue:()=>DOe,bgCyan:()=>POe,bgGreen:()=>EOe,bgMagenta:()=>COe,bgRed:()=>rR,bgWhite:()=>TOe,bgYellow:()=>SOe,black:()=>xOe,blue:()=>Jn,bold:()=>N,cyan:()=>gs,dim:()=>J,gray:()=>Sl,green:()=>te,grey:()=>Oo,hidden:()=>yOe,inverse:()=>vOe,italic:()=>hs,magenta:()=>wOe,red:()=>oe,reset:()=>Og,strikethrough:()=>bOe,underline:()=>tt,white:()=>tR,yellow:()=>ze});var eR,ZB,e9,t9,r9=!0;typeof process<"u"&&({FORCE_COLOR:eR,NODE_DISABLE_COLORS:ZB,NO_COLOR:e9,TERM:t9}=process.env||{},r9=process.stdout&&process.stdout.isTTY);var n9={enabled:!ZB&&e9==null&&t9!=="dumb"&&(eR!=null&&eR!=="0"||r9)};function Vt(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),i=`\x1B[${e}m`,a=`\x1B[${r}m`;return function(o){return!n9.enabled||o==null?o:i+(~(""+o).indexOf(a)?o.replace(n,a+i):o)+a}}var Og=Vt(0,0),N=Vt(1,22),J=Vt(2,22),hs=Vt(3,23),tt=Vt(4,24),vOe=Vt(7,27),yOe=Vt(8,28),bOe=Vt(9,29),xOe=Vt(30,39),oe=Vt(31,39),te=Vt(32,39),ze=Vt(33,39),Jn=Vt(34,39),wOe=Vt(35,39),gs=Vt(36,39),tR=Vt(37,39),Sl=Vt(90,39),Oo=Vt(90,39),_Oe=Vt(40,49),rR=Vt(41,49),EOe=Vt(42,49),SOe=Vt(43,49),DOe=Vt(44,49),COe=Vt(45,49),POe=Vt(46,49),TOe=Vt(47,49);var ROe=100,i9=["green","yellow","blue","magenta","cyan","red"],nR=[],s9=Date.now(),AOe=0,iR=typeof process<"u"?process.env:{};globalThis.DEBUG??=iR.DEBUG??"";globalThis.DEBUG_COLORS??=iR.DEBUG_COLORS?iR.DEBUG_COLORS==="true":!0;var Ig={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(a=>a.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(a=>a===""||a[0]==="-"?!1:e.match(RegExp(a.split("*").join(".*")+"$"))),i=r.some(a=>a===""||a[0]!=="-"?!1:e.match(RegExp(a.slice(1).split("*").join(".*")+"$")));return n&&!i},log:(...e)=>{let[r,n,...i]=e;(console.warn??console.log)(`${r} ${n}`,...i)},formatters:{}};function OOe(e){let r={color:i9[AOe++%i9.length],enabled:Ig.enabled(e),namespace:e,log:Ig.log,extend:()=>{}},n=(...i)=>{let{enabled:a,namespace:o,color:c,log:u}=r;if(i.length!==0&&nR.push([o,...i]),nR.length>ROe&&nR.shift(),Ig.enabled(o)||a){let l=i.map(p=>typeof p=="string"?p:IOe(p)),f=`+${Date.now()-s9}ms`;s9=Date.now(),globalThis.DEBUG_COLORS?u(Ux[c](N(o)),...l,Ux[c](f)):u(o,...l,f)}};return new Proxy(n,{get:(i,a)=>r[a],set:(i,a,o)=>r[a]=o})}var sR=new Proxy(OOe,{get:(e,r)=>Ig[r],set:(e,r,n)=>Ig[r]=n});function IOe(e,r=2){let n=new Set;return JSON.stringify(e,(i,a)=>{if(typeof a=="object"&&a!==null){if(n.has(a))return"[Circular *]";n.add(a)}else if(typeof a=="bigint")return a.toString();return a},r)}var me=sR;var U2e=require("@prisma/engines");var Mne=B(require("fs"));var a9=B(require("fs"));function Mp(){let e=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(e&&a9.default.existsSync(e))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')}var kg=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Gx="libquery_engine";function qa(e,r){let n=r==="url";return e.includes("windows")?n?"query_engine.dll.node":`query_engine-${e}.dll.node`:e.includes("darwin")?n?`${Gx}.dylib.node`:`${Gx}-${e}.dylib.node`:n?`${Gx}.so.node`:`${Gx}-${e}.so.node`}var p9=B(require("child_process")),fR=B(require("fs/promises")),Yx=B(require("os"));var hi=Symbol.for("@ts-pattern/matcher"),o9=Symbol.for("@ts-pattern/isVariadic"),Hx="@ts-pattern/anonymous-select-key",aR=e=>!!(e&&typeof e=="object"),Wx=e=>e&&!!e[hi],_n=(e,r,n)=>{if(Wx(e)){let i=e[hi](),{matched:a,selections:o}=i.match(r);return a&&o&&Object.keys(o).forEach(c=>n(c,o[c])),a}if(aR(e)){if(!aR(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let i=[],a=[],o=[];for(let c of e.keys()){let u=e[c];Wx(u)&&u[o9]?o.push(u):o.length?a.push(u):i.push(u)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.length_n(f,c[p],n))&&a.every((f,p)=>_n(f,u[p],n))&&(o.length===0||_n(o[0],l,n))}return e.length===r.length&&e.every((c,u)=>_n(c,r[u],n))}return Object.keys(e).every(i=>{let a=e[i];return(i in r||Wx(o=a)&&o[hi]().matcherType==="optional")&&_n(a,r[i],n);var o})}return Object.is(r,e)},Mi=e=>{var r,n,i;return aR(e)?Wx(e)?(r=(n=(i=e[hi]()).getSelectionKeys)==null?void 0:n.call(i))!=null?r:[]:Array.isArray(e)?Fg(e,Mi):Fg(Object.values(e),Mi):[]},Fg=(e,r)=>e.reduce((n,i)=>n.concat(r(i)),[]);function kOe(...e){if(e.length===1){let[r]=e;return n=>_n(r,n,()=>{})}if(e.length===2){let[r,n]=e;return _n(r,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function En(e){return Object.assign(e,{optional:()=>lR(e),and:r=>tr(e,r),or:r=>c9(e,r),select:r=>r===void 0?$g(e):$g(r,e)})}function oR(e){return Object.assign((r=>Object.assign(r,{[Symbol.iterator](){let n=0,i=[{value:Object.assign(r,{[o9]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var a;return(a=i[n++])!=null?a:i.at(-1)}}}}))(e),{optional:()=>oR(lR(e)),select:r=>oR(r===void 0?$g(e):$g(r,e))})}function lR(e){return En({[hi]:()=>({match:r=>{let n={},i=(a,o)=>{n[a]=o};return r===void 0?(Mi(e).forEach(a=>i(a,void 0)),{matched:!0,selections:n}):{matched:_n(e,r,i),selections:n}},getSelectionKeys:()=>Mi(e),matcherType:"optional"})})}var FOe=(e,r)=>{for(let n of e)if(!r(n))return!1;return!0},$Oe=(e,r)=>{for(let[n,i]of e.entries())if(!r(i,n))return!1;return!0};function tr(...e){return En({[hi]:()=>({match:r=>{let n={},i=(a,o)=>{n[a]=o};return{matched:e.every(a=>_n(a,r,i)),selections:n}},getSelectionKeys:()=>Fg(e,Mi),matcherType:"and"})})}function c9(...e){return En({[hi]:()=>({match:r=>{let n={},i=(a,o)=>{n[a]=o};return Fg(e,Mi).forEach(a=>i(a,void 0)),{matched:e.some(a=>_n(a,r,i)),selections:n}},getSelectionKeys:()=>Fg(e,Mi),matcherType:"or"})})}function ut(e){return{[hi]:()=>({match:r=>({matched:!!e(r)})})}}function $g(...e){let r=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return En({[hi]:()=>({match:i=>{let a={[r??Hx]:i};return{matched:n===void 0||_n(n,i,(o,c)=>{a[o]=c}),selections:a}},getSelectionKeys:()=>[r??Hx].concat(n===void 0?[]:Mi(n))})})}function ja(e){return typeof e=="number"}function kc(e){return typeof e=="string"}function Fc(e){return typeof e=="bigint"}var u9=En(ut(function(e){return!0})),LOe=u9,$c=e=>Object.assign(En(e),{startsWith:r=>{return $c(tr(e,(n=r,ut(i=>kc(i)&&i.startsWith(n)))));var n},endsWith:r=>{return $c(tr(e,(n=r,ut(i=>kc(i)&&i.endsWith(n)))));var n},minLength:r=>$c(tr(e,(n=>ut(i=>kc(i)&&i.length>=n))(r))),length:r=>$c(tr(e,(n=>ut(i=>kc(i)&&i.length===n))(r))),maxLength:r=>$c(tr(e,(n=>ut(i=>kc(i)&&i.length<=n))(r))),includes:r=>{return $c(tr(e,(n=r,ut(i=>kc(i)&&i.includes(n)))));var n},regex:r=>{return $c(tr(e,(n=r,ut(i=>kc(i)&&!!i.match(n)))));var n}}),NOe=$c(ut(kc)),Ba=e=>Object.assign(En(e),{between:(r,n)=>Ba(tr(e,((i,a)=>ut(o=>ja(o)&&i<=o&&a>=o))(r,n))),lt:r=>Ba(tr(e,(n=>ut(i=>ja(i)&&iBa(tr(e,(n=>ut(i=>ja(i)&&i>n))(r))),lte:r=>Ba(tr(e,(n=>ut(i=>ja(i)&&i<=n))(r))),gte:r=>Ba(tr(e,(n=>ut(i=>ja(i)&&i>=n))(r))),int:()=>Ba(tr(e,ut(r=>ja(r)&&Number.isInteger(r)))),finite:()=>Ba(tr(e,ut(r=>ja(r)&&Number.isFinite(r)))),positive:()=>Ba(tr(e,ut(r=>ja(r)&&r>0))),negative:()=>Ba(tr(e,ut(r=>ja(r)&&r<0)))}),MOe=Ba(ut(ja)),Lc=e=>Object.assign(En(e),{between:(r,n)=>Lc(tr(e,((i,a)=>ut(o=>Fc(o)&&i<=o&&a>=o))(r,n))),lt:r=>Lc(tr(e,(n=>ut(i=>Fc(i)&&iLc(tr(e,(n=>ut(i=>Fc(i)&&i>n))(r))),lte:r=>Lc(tr(e,(n=>ut(i=>Fc(i)&&i<=n))(r))),gte:r=>Lc(tr(e,(n=>ut(i=>Fc(i)&&i>=n))(r))),positive:()=>Lc(tr(e,ut(r=>Fc(r)&&r>0))),negative:()=>Lc(tr(e,ut(r=>Fc(r)&&r<0)))}),qOe=Lc(ut(Fc)),jOe=En(ut(function(e){return typeof e=="boolean"})),BOe=En(ut(function(e){return typeof e=="symbol"})),UOe=En(ut(function(e){return e==null})),GOe=En(ut(function(e){return e!=null})),Cr={__proto__:null,matcher:hi,optional:lR,array:function(...e){return oR({[hi]:()=>({match:r=>{if(!Array.isArray(r))return{matched:!1};if(e.length===0)return{matched:!0};let n=e[0],i={};if(r.length===0)return Mi(n).forEach(o=>{i[o]=[]}),{matched:!0,selections:i};let a=(o,c)=>{i[o]=(i[o]||[]).concat([c])};return{matched:r.every(o=>_n(n,o,a)),selections:i}},getSelectionKeys:()=>e.length===0?[]:Mi(e[0])})})},set:function(...e){return En({[hi]:()=>({match:r=>{if(!(r instanceof Set))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};let i=(o,c)=>{n[o]=(n[o]||[]).concat([c])},a=e[0];return{matched:FOe(r,o=>_n(a,o,i)),selections:n}},getSelectionKeys:()=>e.length===0?[]:Mi(e[0])})})},map:function(...e){return En({[hi]:()=>({match:r=>{if(!(r instanceof Map))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};let i=(u,l)=>{n[u]=(n[u]||[]).concat([l])};if(e.length===0)return{matched:!0};var a;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(a=e[0])==null?void 0:a.toString()}`);let[o,c]=e;return{matched:$Oe(r,(u,l)=>{let f=_n(o,l,i),p=_n(c,u,i);return f&&p}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...Mi(e[0]),...Mi(e[1])]})})},intersection:tr,union:c9,not:function(e){return En({[hi]:()=>({match:r=>({matched:!_n(e,r,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:ut,select:$g,any:u9,_:LOe,string:NOe,number:MOe,bigint:qOe,boolean:jOe,symbol:BOe,nullish:UOe,nonNullable:GOe,instanceOf:function(e){return En(ut(function(r){return n=>n instanceof r}(e)))},shape:function(e){return En(ut(kOe(e)))}},cR={matched:!1,value:void 0};function He(e){return new uR(e,cR)}var uR=class e{constructor(r,n){this.input=void 0,this.state=void 0,this.input=r,this.state=n}with(...r){if(this.state.matched)return this;let n=r[r.length-1],i=[r[0]],a;r.length===3&&typeof r[1]=="function"?a=r[1]:r.length>2&&i.push(...r.slice(1,r.length-1));let o=!1,c={},u=(f,p)=>{o=!0,c[f]=p},l=!i.some(f=>_n(f,this.input,u))||a&&!a(this.input)?cR:{matched:!0,value:n(o?Hx in c?c[Hx]:c:this.input,this.input)};return new e(this.input,l)}when(r,n){if(this.state.matched)return this;let i=!!r(this.input);return new e(this.input,i?{matched:!0,value:n(this.input,this.input)}:cR)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let r;try{r=JSON.stringify(this.input)}catch{r=this.input}throw new Error(`Pattern matching error: no pattern matches value ${r}`)}run(){return this.exhaustive()}returnType(){return this}};var d9=require("util");var WOe={warn:ze("prisma:warn")},HOe={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function zx(e,...r){HOe.warn()&&console.warn(`${WOe.warn} ${e}`,...r)}var zOe=(0,d9.promisify)(p9.default.exec),Qn=me("prisma:get-platform"),VOe=["1.0.x","1.1.x","3.0.x"];async function h9(){let e=Yx.default.platform(),r=process.arch;if(e==="freebsd"){let c=await Kx("freebsd-version");if(c&&c.trim().length>0){let l=/^(\d+)\.?/.exec(c);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let n=await KOe(),i=await nIe(),a=JOe({arch:r,archFromUname:i,familyDistro:n.familyDistro}),{libssl:o}=await QOe(a);return{platform:"linux",libssl:o,arch:r,archFromUname:i,...n}}function YOe(e){let r=/^ID="?([^"\n]*)"?$/im,n=/^ID_LIKE="?([^"\n]*)"?$/im,i=r.exec(e),a=i&&i[1]&&i[1].toLowerCase()||"",o=n.exec(e),c=o&&o[1]&&o[1].toLowerCase()||"",u=He({id:a,idLike:c}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>a==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return Qn(`Found distro info: -${JSON.stringify(u,null,2)}`),u}async function KOe(){let e="/etc/os-release";try{let r=await fR.default.readFile(e,{encoding:"utf-8"});return YOe(r)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function XOe(e){let r=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(r){let n=`${r[1]}.x`;return m9(n)}}function l9(e){let r=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(r){let n=`${r[1]}${r[2]??".0"}.x`;return m9(n)}}function m9(e){let r=(()=>{if(v9(e))return e;let n=e.split(".");return n[1]="0",n.join(".")})();if(VOe.includes(r))return r}function JOe(e){return He(e).with({familyDistro:"musl"},()=>(Qn('Trying platform-specific paths for "alpine"'),["/lib"])).with({familyDistro:"debian"},({archFromUname:r})=>(Qn('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${r}-linux-gnu`,`/lib/${r}-linux-gnu`])).with({familyDistro:"rhel"},()=>(Qn('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:r,arch:n,archFromUname:i})=>(Qn(`Don't know any platform-specific paths for "${r}" on ${n} (${i})`),[]))}async function QOe(e){let r='grep -v "libssl.so.0"',n=await f9(e);if(n){Qn(`Found libssl.so file using platform-specific paths: ${n}`);let o=l9(n);if(Qn(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"libssl-specific-path"}}Qn('Falling back to "ldconfig" and other generic paths');let i=await Kx(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${r}`);if(i||(i=await f9(["/lib64","/usr/lib64","/lib"])),i){Qn(`Found libssl.so file using "ldconfig" or other generic paths: ${i}`);let o=l9(i);if(Qn(`The parsed libssl version is: ${o}`),o)return{libssl:o,strategy:"ldconfig"}}let a=await Kx("openssl version -v");if(a){Qn(`Found openssl binary with version: ${a}`);let o=XOe(a);if(Qn(`The parsed openssl version is: ${o}`),o)return{libssl:o,strategy:"openssl-binary"}}return Qn("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function f9(e){for(let r of e){let n=await ZOe(r);if(n)return n}}async function ZOe(e){try{return(await fR.default.readdir(e)).find(n=>n.startsWith("libssl.so.")&&!n.startsWith("libssl.so.0"))}catch(r){if(r.code==="ENOENT")return;throw r}}async function Hr(){let{binaryTarget:e}=await g9();return e}function eIe(e){return e.binaryTarget!==void 0}async function Lg(){let{memoized:e,...r}=await g9();return r}var Vx={};async function g9(){if(eIe(Vx))return Promise.resolve({...Vx,memoized:!0});let e=await h9(),r=tIe(e);return Vx={...e,binaryTarget:r},{...Vx,memoized:!1}}function tIe(e){let{platform:r,arch:n,archFromUname:i,libssl:a,targetDistro:o,familyDistro:c,originalDistro:u}=e;r==="linux"&&!["x64","arm64"].includes(n)&&zx(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${n}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${i}".`);let l="1.1.x";if(r==="linux"&&a===void 0){let p=He({familyDistro:c}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");zx(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}". -${p}`)}let f="debian";if(r==="linux"&&o===void 0&&Qn(`Distro is "${u}". Falling back to Prisma engines built for "${f}".`),r==="darwin"&&n==="arm64")return"darwin-arm64";if(r==="darwin")return"darwin";if(r==="win32")return"windows";if(r==="freebsd")return o;if(r==="openbsd")return"openbsd";if(r==="netbsd")return"netbsd";if(r==="linux"&&o==="nixos")return"linux-nixos";if(r==="linux"&&n==="arm64")return`${o==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${a||l}`;if(r==="linux"&&n==="arm")return`linux-arm-openssl-${a||l}`;if(r==="linux"&&o==="musl"){let p="linux-musl";return!a||v9(a)?p:`${p}-openssl-${a}`}return r==="linux"&&o&&a?`${o}-openssl-${a}`:(r!=="linux"&&zx(`Prisma detected unknown OS "${r}" and may not work as expected. Defaulting to "linux".`),a?`${f}-openssl-${a}`:o?`${o}-openssl-${l}`:`${f}-openssl-${l}`)}async function rIe(e){try{return await e()}catch{return}}function Kx(e){return rIe(async()=>{let r=await zOe(e);return Qn(`Command "${e}" successfully returned "${r.stdout}"`),r.stdout})}async function nIe(){return typeof Yx.default.machine=="function"?Yx.default.machine():(await Kx("uname -m"))?.trim()}function v9(e){return e.startsWith("1.")}var C9=B(bR());function xR(e){return(0,C9.default)(e,e,{fallback:tt})}var M6e=function(e,r,n){if(n||arguments.length===2)for(var i=0,a=r.length,o;i=e}:e;return function(){var i=Array.from(arguments);return n(arguments)?r.apply(this,i):function(a){return r.apply(void 0,M6e([a],i,!1))}}};var BY=function(e){return e._tag==="Some"},UY={_tag:"None"},GY=function(e){return{_tag:"Some",value:e}},iI=function(e){return e._tag==="Left"},WY=function(e){return e._tag==="Right"},p_=function(e){return{_tag:"Left",left:e}},d_=function(e){return{_tag:"Right",right:e}};var sI=function(e,r){return Ut(2,function(n,i){return r.flatMap(n,function(a){return e.fromIO(i(a))})})};function HY(e,r){return function(n){return function(i){return e.ap(e.map(i,function(a){return function(o){return r.ap(a,o)}}),n)}}}function zY(e,r){return function(n){return function(i){return e.map(i,function(a){return r.map(a,n)})}}}function No(e){return function(r,n){return e.map(r,function(){return n})}}function Qc(e){var r=No(e);return function(n){return r(n,void 0)}}function yi(e){return function(r,n){return e.chain(r,function(i){return e.map(n(i),function(){return i})})}}function aI(e){return function(r){return _s(r,e.fromEither)}}function g_(e,r){var n=aI(e),i=yi(r);return function(a,o){return i(a,n(o))}}var Bl=p_,Mo=d_,VY=Ut(2,function(e,r){return bi(e)?e:r(e.right)}),mI=function(e,r){return vi(e,Ul(r))},YY=function(e,r){return vi(e,W6e(r))};var v_="Either";var Ul=function(e){return function(r){return bi(r)?r:Mo(e(r.right))}},y_={URI:v_,map:mI},pFt=Ut(2,No(y_)),dFt=Qc(y_);var G6e=function(e){return function(r){return bi(r)?r:bi(e)?e:Mo(r.right(e.right))}},W6e=G6e,KY={URI:v_,map:mI,ap:YY};var H6e={URI:v_,map:mI,ap:YY,chain:VY};var XY=function(e,r){return function(n){return bi(n)?Bl(e(n.left)):Mo(r(n.right))}},JY=function(e){return function(r){return bi(r)?Bl(e(r.left)):r}};var z6e={URI:v_,fromEither:pv};var bi=iI,ia=WY;var QY=function(e){return function(r){return bi(r)?e(r.left):r.right}};var hFt=Ut(2,yi(H6e));var mFt={fromEither:z6e.fromEither};var Es=function(e,r){try{return Mo(e())}catch(n){return Bl(r(n))}};var dv=VY;var $K=B(Nt());var sn=class extends Error{constructor(n,i,a,o,c,u,l){super(n);this.__typename="RustPanic";this.name="RustPanic",this.rustStack=i,this.request=a,this.area=o,this.schemaPath=c,this.schema=u,this.introspectionUrl=l}};function vI(e){return e.__typename==="RustPanic"}function Zc(e){return e.name==="RuntimeError"}function Ss(e){let r=globalThis.PRISMA_WASM_PANIC_REGISTRY.get(),n=[r,...(e.stack||"NO_BACKTRACE").split(` -`).slice(1)].join(` -`);return{message:r,stack:n}}function b_(e){if(!(typeof e>"u"))return typeof e=="string"?[["schema.prisma",e]]:e}function eu(e){return e.map(([r])=>r).join(`, -`)}var D_={};Xn(D_,{prismaSchemaWasm:()=>on.default,prismaSchemaWasmVersion:()=>E5e});var on=B(yI());var S_=class{constructor(){this.message=""}get(){return`${this.message}`}set_message(r){this.message=`RuntimeError: ${r}`}};var{dependencies:_5e}=bI();var E5e=_5e["@prisma/prisma-schema-wasm"];globalThis.PRISMA_WASM_PANIC_REGISTRY=new S_;function S5e(e){return e.toString().toLowerCase().replace(/\s+/g,"-")}function Wl(e,r={json:!1}){if(r.json){let i=e.reduce((a,[o,c])=>(a[S5e(o)]=c,a),{});return JSON.stringify(i,null,2)}let n=e.reduce((i,a)=>Math.max(i,a[0].length),0);return e.map(([i,a])=>`${i.padEnd(n)} : ${a}`).join(` -`)}var D5e=bI(),nK=D5e.version;function tu(e){return`${e} - -${Wl([["Prisma CLI Version",nK]])}`}var k_=B(Nt());var hd=UY,C_=GY;var C5e=function(e){return e._tag==="Left"?hd:C_(e.right)},iK=function(e,r){return vi(e,wI(r))},P5e=function(e,r){return vi(e,T5e(r))};var xI="Option";var wI=function(e){return function(r){return md(r)?hd:C_(e(r.value))}},sK={URI:xI,map:iK},FFt=Ut(2,No(sK)),$Ft=Qc(sK);var T5e=function(e){return function(r){return md(r)||md(e)?hd:C_(r.value(e.value))}};var R5e=Ut(2,function(e,r){return md(e)?hd:r(e.value)}),aK={URI:xI,map:iK,ap:P5e,chain:R5e};var LFt=Ut(2,function(e,r){return md(e)?r():e});var A5e=C5e,O5e={URI:xI,fromEither:A5e},oK=BY,md=function(e){return e._tag==="None"},I5e=function(e,r){return function(n){return md(n)?e():r(n.value)}};var k5e=I5e,cK=k5e;var NFt=Ut(2,yi(aK)),MFt=Ut(2,g_(O5e,aK));var uK=function(e){return e==null?hd:C_(e)};function lK(e){return _s(Mo,e.of)}function fK(e){return function(r){return e.map(r,Mo)}}function pK(e){return zY(e,y_)}function dK(e){return HY(e,KY)}function hK(e){return function(r,n){return e.chain(r,function(i){return bi(i)?e.of(i):n(i.right)})}}function mK(e){return function(r,n,i){return e.map(r,XY(n,i))}}function gK(e){return function(r,n){return e.map(r,JY(n))}}function vK(e){return function(r){return function(n){return e.chain(n,function(i){return bi(i)?r(i.left):e.of(i)})}}}function yK(e){var r=vK(e);return function(n,i){return vi(n,r(function(a){return e.map(i(a),function(o){return bi(o)?o:Bl(a)})}))}}function P_(e,r){var n=yi(r);return function(i,a){return n(i,_s(a,e.fromIO))}}function bK(e,r){var n=yi(r);return function(i,a){return n(i,_s(a,e.fromTask))}}var _I=function(e){return function(){return Promise.resolve().then(e)}};var T_=function(e,r){return vi(e,xK(r))},EI=function(e,r){return vi(e,q5e(r))};var xK=function(e){return function(r){return function(){return Promise.resolve().then(r).then(e)}}},q5e=function(e){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(e)]).then(function(n){var i=n[0],a=n[1];return i(a)})}}},R_=function(e){return function(){return Promise.resolve(e)}},A_=Ut(2,function(e,r){return function(){return Promise.resolve().then(e).then(function(n){return r(n)()})}});var gd="Task";var Hl={URI:gd,map:T_},t$t=Ut(2,No(Hl)),r$t=Qc(Hl);var wK={URI:gd,of:R_},_K={URI:gd,map:T_,ap:EI};var EK={URI:gd,map:T_,ap:EI,chain:A_},SI={URI:gd,map:T_,of:R_,ap:EI,chain:A_};var SK={URI:gd,fromIO:_I},j5e={flatMap:A_},B5e={fromIO:SK.fromIO},n$t=sI(B5e,j5e),i$t=Ut(2,yi(EK)),s$t=Ut(2,P_(SK,EK));var G5e=function(e,r,n,i){function a(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(p){try{f(i.next(p))}catch(g){c(g)}}function l(p){try{f(i.throw(p))}catch(g){c(g)}}function f(p){p.done?o(p.value):a(p.value).then(u,l)}f((i=i.apply(e,r||[])).next())})},W5e=function(e,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(p){return l([f,p])}}function l(f){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,f[0]&&(n=0)),n;)try{if(i=1,a&&(o=f[0]&2?a.return:f[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,f[1])).done)return o;switch(a=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]({type:n,reason:i,error:a})=>{e(`error of type "${n}" in ${r}: -`,{reason:i,error:a})};function CI(e){return`${oe(N("Prisma schema validation"))} - ${e}`}function nu({errorOutput:e,reason:r}){return(0,k_.pipe)(Es(()=>JSON.parse(e),()=>({_tag:"unparsed",message:e,reason:r})),Ul(i=>{let a=oe(N(Wi(i.message))),o=He(i).with({error_code:"P1012"},c=>({reason:CI(r),errorCode:c.error_code})).with({error_code:Cr.string},c=>({reason:r,errorCode:c.error_code})).otherwise(()=>({reason:r}));return{_tag:"parsed",message:a,...o}}),QY(k_.identity))}var F_=me("prisma:getConfig"),J5e="P1012",yv=class extends Error{constructor(r){let i=`${He(r).with({_tag:"parsed"},({errorCode:a,message:o,reason:c})=>{let u=a?`Error code: ${a}`:"";return`${c} -${u} -${o}`}).with({_tag:"unparsed"},({message:a,reason:o})=>{let c=oe(N("Details:"));return`${o} -${c} ${a}`}).exhaustive()} -[Context: getConfig]`;super(tu(i)),this.name="GetConfigError"}};function jo(e){return e.directUrl!==void 0?e.directUrl:e.url}function PI(e){return e.directUrl}function bv(e){let r=e?.value,n=e?.fromEnvVar,i=n?process.env[n]:void 0;return r??i}async function Ve(e){let r=ru(F_,"getConfigWasm");F_("Using getConfig Wasm");let n=(0,$K.pipe)(Es(()=>{process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG&&(F_("Triggering a Rust panic..."),on.default.debug_panic());let a=JSON.stringify({prismaSchema:e.datamodel,datasourceOverrides:{},ignoreEnvVarErrors:e.ignoreEnvVarErrors??!1,env:process.env});return on.default.get_config(a)},a=>({type:"wasm-error",reason:"(get-config wasm)",error:a})),Ul(a=>({result:a})),dv(({result:a})=>Es(()=>JSON.parse(a),o=>({type:"parse-json",reason:"Unable to parse JSON",error:o}))),dv(a=>a.errors.length>0?Bl({type:"validation-error",reason:"(get-config wasm)",error:a.errors}):Mo(a.config)));if(ia(n)){F_("config data retrieved without errors in getConfig Wasm");let{right:a}=n;for(let o of a.generators)await LK(o);return Promise.resolve(a)}throw He(n.left).with({type:"wasm-error"},a=>{if(r(a),Zc(a.error)){let{message:c,stack:u}=Ss(a.error);return new sn(c,u,"@prisma/prisma-schema-wasm get_config","FMT_CLI",e.prismaPath,b_(e.datamodel))}let o=a.error.message;return new yv(nu({errorOutput:o,reason:a.reason}))}).with({type:"validation-error"},a=>new yv({_tag:"parsed",errorCode:J5e,reason:CI(a.reason),message:Q5e(a.error)})).otherwise(a=>(r(a),new yv({_tag:"unparsed",message:a.error.message,reason:a.reason})))}async function LK(e){for(let r of e.binaryTargets){if(r.fromEnvVar&&process.env[r.fromEnvVar]){let n=JSON.parse(process.env[r.fromEnvVar]);Array.isArray(n)?(e.binaryTargets=n.map(i=>({fromEnvVar:null,value:i})),await LK(e)):r.value=n}r.value==="native"&&(r.value=await Hr(),r.native=!0)}e.binaryTargets.length===0&&(e.binaryTargets=[{fromEnvVar:null,value:await Hr(),native:!0}])}function Q5e(e){let r=e.map(i=>Wi(i.message)).join(` - -`),n=`Validation Error Count: ${e.length}`;return`${r} -${n}`}var kF=B(ZK()),FF=B(require("fs")),Xd=B(require("path"));var WE=B(KJ()),SF=B(Pl()),DF=B(require("fs"));var pr=B(require("path"));var $ee=B(require("path"),1);var JJ=B(require("process"),1),QJ=B(require("fs/promises"),1),ZJ=require("url");var Kl=B(require("path"),1),XJ=e=>e instanceof URL?(0,ZJ.fileURLToPath)(e):e;async function eQ(e,{cwd:r=JJ.default.cwd(),type:n="file",stopAt:i}={}){let a=Kl.default.resolve(XJ(r)??""),{root:o}=Kl.default.parse(a);for(i=Kl.default.resolve(a,XJ(i??o));a&&a!==i&&a!==o;){let c=Kl.default.isAbsolute(e)?e:Kl.default.join(a,e);try{let u=await QJ.default.stat(c);if(n==="file"&&u.isFile()||n==="directory"&&u.isDirectory())return c}catch{}a=Kl.default.dirname(a)}}var Oee=B(require("fs/promises"),1),Iee=B(require("path"),1);var eZ=B(JQ(),1);var QQ=(e,r,n)=>n<0?-1:e.lastIndexOf(r,n);function l9e(e,r){let n=QQ(e,` -`,r-1),i=r-n-1,a=0;for(let o=n;o>=0;o=QQ(e,` -`,o-1))a++;return{line:a,column:i}}function tE(e,r,{oneBased:n=!1}={}){if(r<0||r>=e.length&&e.length>0)throw new RangeError("Index out of bounds");let i=l9e(e,r);return n?{line:i.line+1,column:i.column+1}:i}var f9e=e=>`\\u{${e.codePointAt(0).toString(16)}}`,Cd,pk=class pk extends Error{constructor(n){super();Je(this,"name","JSONError");Je(this,"fileName");Je(this,"codeFrame");Je(this,"rawCodeFrame");Ee(this,Cd);fe(this,Cd,n),Error.captureStackTrace?.(this,pk)}get message(){let{fileName:n,codeFrame:i}=this;return`${$(this,Cd)}${n?` in ${n}`:""}${i?` - -${i} -`:""}`}set message(n){fe(this,Cd,n)}};Cd=new WeakMap;var lk=pk,ZQ=(e,r,n=!0)=>(0,eZ.codeFrameColumns)(e,{start:r},{highlightCode:n}),p9e=(e,r)=>{let n=r.match(/in JSON at position (?\d+)(?: \(line (?\d+) column (?\d+)\))?$/);if(!n)return;let{index:i,line:a,column:o}=n.groups;if(a&&o)return{line:Number(a),column:Number(o)};if(i=Number(i),i===e.length){let{line:c,column:u}=tE(e,e.length-1,{oneBased:!0});return{line:c,column:u+1}}return tE(e,i,{oneBased:!0})},d9e=e=>e.replace(/(?<=^Unexpected token )(?')?(.)\k/,(r,n,i)=>`"${i}"(${f9e(i)})`);function fk(e,r,n){typeof r=="string"&&(n=r,r=void 0);let i;try{return JSON.parse(e,r)}catch(c){i=c.message}let a;e?(a=p9e(e,i),i=d9e(i)):i+=" while parsing empty string";let o=new lk(i);throw o.fileName=n,a&&(o.codeFrame=ZQ(e,a),o.rawCodeFrame=ZQ(e,a,!1)),o}var kee=B(Tee(),1);var Ree=require("url");function Aee(e){return e instanceof URL?(0,Ree.fileURLToPath)(e):e}var YUe=e=>Iee.default.resolve(Aee(e)??".","package.json"),KUe=(e,r)=>{let n=typeof e=="string"?fk(e):e;return r&&(0,kee.default)(n),n};async function Fee({cwd:e,normalize:r=!0}={}){let n=await Oee.default.readFile(YUe(e),"utf8");return KUe(n,r)}async function Lk(e){let r=await eQ("package.json",e);if(r)return{packageJson:await Fee({...e,cwd:$ee.default.dirname(r)}),path:r}}var CF=require("util");function Nv({schemas:e}){let r=on.default.lint(JSON.stringify(e));return JSON.parse(r)}function Nk(e,{schemas:r}){try{return e()}catch(n){let{message:i,stack:a}=Ss(n);throw new sn(i,a,"@prisma/prisma-schema-wasm lint","FMT_CLI",eu(r),r)}}function XUe(e){return e.filter(QUe)}function Mv(e){let r=XUe(e),n=[];if(r.length>0){n.push(ze(` -Prisma schema warning${r.length>1?"s":""}:`));for(let i of r)n.push(JUe(i))}return n.join(` -`)}function JUe(e){return ze(`- ${e.text}`)}function QUe(e){return e.is_warning}var Lee=me("prisma:format");async function Mk({schemas:e},r){process.env.FORCE_PANIC_PRISMA_SCHEMA&&Nee(()=>{on.default.debug_panic()},{schemas:e});let i={textDocument:{uri:"file:/dev/null"},options:{...{tabSize:2,insertSpaces:!0},...r}},{formattedMultipleSchemas:a,lintDiagnostics:o}=Nee(()=>{let u=ZUe(JSON.stringify(e),i),l=JSON.parse(u),f=Nv({schemas:l});return{formattedMultipleSchemas:l,lintDiagnostics:f}},{schemas:e}),c=Mv(o);return c&&fr.should.warn()&&console.warn(c),Promise.resolve(a)}function Nee(e,{schemas:r}){try{return e()}catch(n){let{message:i,stack:a}=Ss(n);throw Lee(`Error formatting schema: ${i}`),Lee(a),new sn(i,a,"@prisma/prisma-schema-wasm format","FMT_CLI",eu(r),r)}}function ZUe(e,r){return on.default.format(e,JSON.stringify(r))}var qk=B(Nt());var Mee=B(require("fs"));var Fd=me("prisma:getDMMF"),qv=class extends Error{constructor(r){let i=`${He(r).with({_tag:"parsed"},({errorCode:a,message:o,reason:c})=>{let u=a?`Error code: ${a}`:"";return`${c} -${u} -${o}`}).with({_tag:"unparsed"},({message:a,reason:o})=>{let c=oe(N("Details:"));return`${o} -${c} ${a}`}).exhaustive()} -[Context: getDmmf]`;super(tu(i)),this.name="GetDmmfError"}};async function pE(e){e7e(e.previewFeatures);let r=ru(Fd,"getDmmfWasm");Fd("Using getDmmf Wasm");let i=await(0,qk.pipe)(vd(()=>e.datamodel?(Fd("Using given datamodel"),Promise.resolve(e.datamodel)):(Fd(`Reading datamodel from the given datamodel path ${e.datamodelPath}`),Mee.default.promises.readFile(e.datamodelPath,{encoding:"utf-8"})),o=>({type:"read-datamodel-path",reason:"Error while trying to read the datamodel path",error:o,datamodelPath:e.datamodelPath})),kK(o=>(0,qk.pipe)(Es(()=>{process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF&&(Fd("Triggering a Rust panic..."),on.default.debug_panic());let c=JSON.stringify({prismaSchema:o,noColor:!!process.env.NO_COLOR});return on.default.get_dmmf(c)},c=>({type:"wasm-error",reason:"(get-dmmf wasm)",error:c})),Ul(c=>({result:c})),dv(({result:c})=>Es(()=>JSON.parse(c),u=>({type:"parse-json",reason:"Unable to parse JSON",error:u}))),gv)))();if(ia(i)){Fd("dmmf data retrieved without errors in getDmmf Wasm");let{right:o}=i;return Promise.resolve(o)}throw He(i.left).with({type:"read-datamodel-path"},o=>(r(o),new qv({_tag:"unparsed",message:`${o.error.message} -Datamodel path: "${o.datamodelPath}"`,reason:o.reason}))).with({type:"wasm-error"},o=>{if(r(o),Zc(o.error)){let{message:u,stack:l}=Ss(o.error);return new sn(u,l,"@prisma/prisma-schema-wasm get_dmmf","FMT_CLI",e.prismaPath,b_(e.datamodel))}let c=o.error.message;return new qv(nu({errorOutput:c,reason:o.reason}))}).with({type:"parse-json"},o=>(r(o),new qv({_tag:"unparsed",message:o.error.message,reason:o.reason}))).exhaustive()}function e7e(e){let r=i=>`${Jn(N("info"))} The preview flag "${i}" is not needed anymore, please remove it from your schema.prisma`,n={insensitiveFilters:r("insensitiveFilters"),atomicNumberOperations:r("atomicNumberOperations"),connectOrCreate:r("connectOrCreate"),transaction:r("transaction"),nApi:r("nApi"),transactionApi:r("transactionApi"),uncheckedScalarInputs:r("uncheckedScalarInputs"),nativeTypes:r("nativeTypes"),createMany:r("createMany"),groupBy:r("groupBy"),referentialActions:r("referentialActions"),microsoftSqlServer:r("microsoftSqlServer"),selectRelationCount:r("selectRelationCount"),orderByRelation:r("orderByRelation"),orderByAggregateGroup:r("orderByAggregateGroup")};e?.forEach(i=>{let a=n[i];a&&!process.env.PRISMA_HIDE_PREVIEW_FLAG_WARNINGS&&console.warn(a)})}var gne=require("@prisma/engines");var Zre=B(Pl()),Di=B(require("fs")),bF=B(uu());var ene=B(Uee()),Za=B(require("path")),tne=B(l1()),rne=require("util");var Uk=B(require("fs"));function Gee(e){if(process.platform==="win32")return;let r=Uk.default.statSync(e),n=r.mode|64|8|1;if(r.mode===n)return;let i=n.toString(8).slice(-3);Uk.default.chmodSync(e,i)}var Yk=B(require("fs")),ate=B(l_()),Kk=B(require("path")),ote=B(u_()),cte=require("util");var rte=B(require("process"),1),$d=B(require("path"),1),Bv=B(require("fs"),1),nte=B(Hee(),1);var Qee=B(require("path"),1);var jv=B(require("path"),1),Xee=require("url");var zee=B(require("process"),1),Vee=B(require("path"),1),dE=B(require("fs"),1),Yee=require("url");var Kee={directory:"isDirectory",file:"isFile"};function i7e(e){if(!Object.hasOwnProperty.call(Kee,e))throw new Error(`Invalid type specified: ${e}`)}var s7e=(e,r)=>r[Kee[e]](),a7e=e=>e instanceof URL?(0,Yee.fileURLToPath)(e):e;function Gk(e,{cwd:r=zee.default.cwd(),type:n="file",allowSymlinks:i=!0}={}){i7e(n),r=a7e(r);let a=i?dE.default.statSync:dE.default.lstatSync;for(let o of e)try{let c=a(Vee.default.resolve(r,o),{throwIfNoEntry:!1});if(!c)continue;if(s7e(n,c))return o}catch{}}var o7e=e=>e instanceof URL?(0,Xee.fileURLToPath)(e):e,c7e=Symbol("findUpStop");function u7e(e,r={}){let n=jv.default.resolve(o7e(r.cwd)||""),{root:i}=jv.default.parse(n),a=r.stopAt||i,o=r.limit||Number.POSITIVE_INFINITY,c=[e].flat(),u=f=>{if(typeof e!="function")return Gk(c,f);let p=e(f.cwd);return typeof p=="string"?Gk([p],f):p},l=[];for(;;){let f=u({...r,cwd:n});if(f===c7e||(f&&l.push(jv.default.resolve(n,f)),n===a||l.length>=o))break;n=jv.default.dirname(n)}return l}function Jee(e,r={}){return u7e(e,{...r,limit:1})[0]}function Zee({cwd:e}={}){let r=Jee("package.json",{cwd:e});return r&&Qee.default.dirname(r)}var{env:Wk,cwd:l7e}=rte.default,ete=e=>{try{return Bv.default.accessSync(e,Bv.default.constants.W_OK),!0}catch{return!1}};function tte(e,r){return r.create&&Bv.default.mkdirSync(e,{recursive:!0}),e}function f7e(e){let r=$d.default.join(e,"node_modules");if(!(!ete(r)&&(Bv.default.existsSync(r)||!ete($d.default.join(e)))))return r}function Hk(e={}){if(Wk.CACHE_DIR&&!["true","false","1","0"].includes(Wk.CACHE_DIR))return tte($d.default.join(Wk.CACHE_DIR,e.name),e);let{cwd:r=l7e(),files:n}=e;if(n){if(!Array.isArray(n))throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof n}\`.`);r=(0,nte.default)(n.map(a=>$d.default.resolve(r,a)))}if(r=Zee({cwd:r}),!(!r||!f7e(r)))return tte($d.default.join(r,"node_modules",".cache",e.name),e)}var Ld=B(require("fs")),zk=B(uu()),hE=B(require("os")),mE=B(require("path"));var ite=me("prisma:fetch-engine:cache-dir");async function Uv(){if(hE.default.platform()==="win32"){let e=Hk({name:"prisma",create:!0});if(e)return e;if(process.env.APPDATA)return mE.default.join(process.env.APPDATA,"Prisma")}if(process.env.AWS_LAMBDA_FUNCTION_VERSION)try{return await(0,zk.ensureDir)("/tmp/prisma-download"),"/tmp/prisma-download"}catch{return null}return mE.default.join(hE.default.homedir(),".cache/prisma")}async function Vk(e,r,n){let i=await Uv();if(!i)return null;let a=mE.default.join(i,e,r,n);try{Ld.default.existsSync(a)||await(0,zk.ensureDir)(a)}catch(o){return ite("The following error is being caught and just there for debugging:"),ite(o),null}return a}function ste({channel:e,version:r,binaryTarget:n,binaryName:i,extension:a=".gz"}){let o=process.env.PRISMA_BINARIES_MIRROR||process.env.PRISMA_ENGINES_MIRROR||"https://binaries.prisma.sh",c=n==="windows"&&"libquery-engine"!==i?`.exe${a}`:a;return i==="libquery-engine"&&(i=qa(n,"url")),`${o}/${e}/${r}/${n}/${i}${c}`}async function tf(e,r){if(hE.default.platform()==="darwin")await p7e(r),await Ld.default.promises.copyFile(e,r);else{let n=`${r}.tmp${process.pid}`;await Ld.default.promises.copyFile(e,n),await Ld.default.promises.rename(n,r)}}async function p7e(e){try{await Ld.default.promises.unlink(e)}catch(r){if(r.code!=="ENOENT")throw r}}var d7e=me("cleanupCache"),h7e=(0,cte.promisify)(ote.default);async function ute(e=5){try{let r=await Uv();if(!r){d7e("no rootCacheDir found");return}let i=Kk.default.join(r,"master"),a=await Yk.default.promises.readdir(i),o=await Promise.all(a.map(async u=>{let l=Kk.default.join(i,u),f=await Yk.default.promises.stat(l);return{dir:l,created:f.birthtime}}));o.sort((u,l)=>u.createdh7e(u.dir),{concurrency:20})}catch{}}var Ire=B(require("fs")),hF=B(mte());var Xte=B(require("http"),1),Jte=B(require("https"),1),uf=B(require("zlib"),1),Xi=B(require("stream"),1),Qv=require("buffer");function x7e(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let r=e.indexOf(",");if(r===-1||r<=4)throw new TypeError("malformed data: URI");let n=e.substring(5,r).split(";"),i="",a=!1,o=n[0]||"text/plain",c=o;for(let p=1;ptypeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[xE]==="URLSearchParams",Yv=e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[xE]),Tte=e=>typeof e=="object"&&(e[xE]==="AbortSignal"||e[xE]==="EventTarget"),Rte=(e,r)=>{let n=new URL(r).hostname,i=new URL(e).hostname;return n===i||n.endsWith(`.${i}`)},Ate=(e,r)=>{let n=new URL(r).protocol,i=new URL(e).protocol;return n===i};var $7e=(0,Vo.promisify)(Ts.default.pipeline),Ei=Symbol("Body internals"),Xa=class{constructor(r,{size:n=0}={}){let i=null;r===null?r=null:Zk(r)?r=Ki.Buffer.from(r.toString()):Yv(r)||Ki.Buffer.isBuffer(r)||(Vo.types.isAnyArrayBuffer(r)?r=Ki.Buffer.from(r):ArrayBuffer.isView(r)?r=Ki.Buffer.from(r.buffer,r.byteOffset,r.byteLength):r instanceof Ts.default||(r instanceof af?(r=Pte(r),i=r.type.split("=")[1]):r=Ki.Buffer.from(String(r))));let a=r;Ki.Buffer.isBuffer(r)?a=Ts.default.Readable.from(r):Yv(r)&&(a=Ts.default.Readable.from(r.stream())),this[Ei]={body:r,stream:a,boundary:i,disturbed:!1,error:null},this.size=n,r instanceof Ts.default&&r.on("error",o=>{let c=o instanceof zo?o:new _i(`Invalid response body while trying to fetch ${this.url}: ${o.message}`,"system",o);this[Ei].error=c})}get body(){return this[Ei].stream}get bodyUsed(){return this[Ei].disturbed}async arrayBuffer(){let{buffer:r,byteOffset:n,byteLength:i}=await rF(this);return r.slice(n,n+i)}async formData(){let r=this.headers.get("content-type");if(r.startsWith("application/x-www-form-urlencoded")){let i=new af,a=new URLSearchParams(await this.text());for(let[o,c]of a)i.append(o,c);return i}let{toFormData:n}=await Promise.resolve().then(()=>($te(),Fte));return n(this.body,r)}async blob(){let r=this.headers&&this.headers.get("content-type")||this[Ei].body&&this[Ei].body.type||"",n=await this.arrayBuffer();return new Ho([n],{type:r})}async json(){let r=await this.text();return JSON.parse(r)}async text(){let r=await rF(this);return new TextDecoder().decode(r)}buffer(){return rF(this)}};Xa.prototype.buffer=(0,Vo.deprecate)(Xa.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Xa.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:(0,Vo.deprecate)(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function rF(e){if(e[Ei].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[Ei].disturbed=!0,e[Ei].error)throw e[Ei].error;let{body:r}=e;if(r===null)return Ki.Buffer.alloc(0);if(!(r instanceof Ts.default))return Ki.Buffer.alloc(0);let n=[],i=0;try{for await(let a of r){if(e.size>0&&i+a.length>e.size){let o=new _i(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw r.destroy(o),o}i+=a.length,n.push(a)}}catch(a){throw a instanceof zo?a:new _i(`Invalid response body while trying to fetch ${e.url}: ${a.message}`,"system",a)}if(r.readableEnded===!0||r._readableState.ended===!0)try{return n.every(a=>typeof a=="string")?Ki.Buffer.from(n.join("")):Ki.Buffer.concat(n,i)}catch(a){throw new _i(`Could not create Buffer from response body for ${e.url}: ${a.message}`,"system",a)}else throw new _i(`Premature close of server response while trying to fetch ${e.url}`)}var qd=(e,r)=>{let n,i,{body:a}=e[Ei];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof Ts.default&&typeof a.getBoundary!="function"&&(n=new Ts.PassThrough({highWaterMark:r}),i=new Ts.PassThrough({highWaterMark:r}),a.pipe(n),a.pipe(i),e[Ei].stream=n,a=i),a},L7e=(0,Vo.deprecate)(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),SE=(e,r)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":Zk(e)?"application/x-www-form-urlencoded;charset=UTF-8":Yv(e)?e.type||null:Ki.Buffer.isBuffer(e)||Vo.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof af?`multipart/form-data; boundary=${r[Ei].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${L7e(e)}`:e instanceof Ts.default?null:"text/plain;charset=UTF-8",Lte=e=>{let{body:r}=e[Ei];return r===null?0:Yv(r)?r.size:Ki.Buffer.isBuffer(r)?r.length:r&&typeof r.getLengthSync=="function"&&r.hasKnownLength&&r.hasKnownLength()?r.getLengthSync():null},Nte=async(e,{body:r})=>{r===null?e.end():await $7e(r,e)};var nF=require("util"),Xv=B(require("http"),1),DE=typeof Xv.default.validateHeaderName=="function"?Xv.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let r=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),r}},iF=typeof Xv.default.validateHeaderValue=="function"?Xv.default.validateHeaderValue:(e,r)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(r)){let n=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(n,"code",{value:"ERR_INVALID_CHAR"}),n}},ci=class e extends URLSearchParams{constructor(r){let n=[];if(r instanceof e){let i=r.raw();for(let[a,o]of Object.entries(i))n.push(...o.map(c=>[a,c]))}else if(r!=null)if(typeof r=="object"&&!nF.types.isBoxedPrimitive(r)){let i=r[Symbol.iterator];if(i==null)n.push(...Object.entries(r));else{if(typeof i!="function")throw new TypeError("Header pairs must be iterable");n=[...r].map(a=>{if(typeof a!="object"||nF.types.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)");return n=n.length>0?n.map(([i,a])=>(DE(i),iF(i,String(a)),[String(i).toLowerCase(),String(a)])):void 0,super(n),new Proxy(this,{get(i,a,o){switch(a){case"append":case"set":return(c,u)=>(DE(c),iF(c,String(u)),URLSearchParams.prototype[a].call(i,String(c).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return c=>(DE(c),URLSearchParams.prototype[a].call(i,String(c).toLowerCase()));case"keys":return()=>(i.sort(),new Set(URLSearchParams.prototype.keys.call(i)).keys());default:return Reflect.get(i,a,o)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(r){let n=this.getAll(r);if(n.length===0)return null;let i=n.join(", ");return/^content-encoding$/i.test(r)&&(i=i.toLowerCase()),i}forEach(r,n=void 0){for(let i of this.keys())Reflect.apply(r,n,[this.get(i),i,this])}*values(){for(let r of this.keys())yield this.get(r)}*entries(){for(let r of this.keys())yield[r,this.get(r)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((r,n)=>(r[n]=this.getAll(n),r),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((r,n)=>{let i=this.getAll(n);return n==="host"?r[n]=i[0]:r[n]=i.length>1?i:i[0],r},{})}};Object.defineProperties(ci.prototype,["get","entries","forEach","values"].reduce((e,r)=>(e[r]={enumerable:!0},e),{}));function Mte(e=[]){return new ci(e.reduce((r,n,i,a)=>(i%2===0&&r.push(a.slice(i,i+2)),r),[]).filter(([r,n])=>{try{return DE(r),iF(r,String(n)),!0}catch{return!1}}))}var N7e=new Set([301,302,303,307,308]),CE=e=>N7e.has(e);var ga=Symbol("Response internals"),Rs=class e extends Xa{constructor(r=null,n={}){super(r,n);let i=n.status!=null?n.status:200,a=new ci(n.headers);if(r!==null&&!a.has("Content-Type")){let o=SE(r,this);o&&a.append("Content-Type",o)}this[ga]={type:"default",url:n.url,status:i,statusText:n.statusText||"",headers:a,counter:n.counter,highWaterMark:n.highWaterMark}}get type(){return this[ga].type}get url(){return this[ga].url||""}get status(){return this[ga].status}get ok(){return this[ga].status>=200&&this[ga].status<300}get redirected(){return this[ga].counter>0}get statusText(){return this[ga].statusText}get headers(){return this[ga].headers}get highWaterMark(){return this[ga].highWaterMark}clone(){return new e(qd(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(r,n=302){if(!CE(n))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new e(null,{headers:{location:new URL(r).toString()},status:n})}static error(){let r=new e(null,{status:0,statusText:""});return r[ga].type="error",r}static json(r=void 0,n={}){let i=JSON.stringify(r);if(i===void 0)throw new TypeError("data is not JSON serializable");let a=new ci(n&&n.headers);return a.has("content-type")||a.set("content-type","application/json"),new e(i,{...n,headers:a})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(Rs.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var Vte=require("url"),Yte=require("util");var qte=e=>{if(e.search)return e.search;let r=e.href.length-1,n=e.hash||(e.href[r]==="#"?"#":"");return e.href[r-n.length]==="?"?"?":""};var Bte=require("net");function jte(e,r=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",r&&(e.pathname="",e.search=""),e)}var Ute=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),Gte="strict-origin-when-cross-origin";function Wte(e){if(!Ute.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function M7e(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let r=e.host.replace(/(^\[)|(]$)/g,""),n=(0,Bte.isIP)(r);return n===4&&/^127\./.test(r)||n===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(r)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}function jd(e){return/^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:M7e(e)}function Hte(e,{referrerURLCallback:r,referrerOriginCallback:n}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let i=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let a=e.referrer,o=jte(a),c=jte(a,!0);o.toString().length>4096&&(o=c),r&&(o=r(o)),n&&(c=n(c));let u=new URL(e.url);switch(i){case"no-referrer":return"no-referrer";case"origin":return c;case"unsafe-url":return o;case"strict-origin":return jd(o)&&!jd(u)?"no-referrer":c.toString();case"strict-origin-when-cross-origin":return o.origin===u.origin?o:jd(o)&&!jd(u)?"no-referrer":c;case"same-origin":return o.origin===u.origin?o:"no-referrer";case"origin-when-cross-origin":return o.origin===u.origin?o:c;case"no-referrer-when-downgrade":return jd(o)&&!jd(u)?"no-referrer":o;default:throw new TypeError(`Invalid referrerPolicy: ${i}`)}}function zte(e){let r=(e.get("referrer-policy")||"").split(/[,\s]+/),n="";for(let i of r)i&&Ute.has(i)&&(n=i);return n}var pn=Symbol("Request internals"),Jv=e=>typeof e=="object"&&typeof e[pn]=="object",q7e=(0,Yte.deprecate)(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),cf=class e extends Xa{constructor(r,n={}){let i;if(Jv(r)?i=new URL(r.url):(i=new URL(r),r={}),i.username!==""||i.password!=="")throw new TypeError(`${i} is an url with embedded credentials.`);let a=n.method||r.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(a)&&(a=a.toUpperCase()),!Jv(n)&&"data"in n&&q7e(),(n.body!=null||Jv(r)&&r.body!==null)&&(a==="GET"||a==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let o=n.body?n.body:Jv(r)&&r.body!==null?qd(r):null;super(o,{size:n.size||r.size||0});let c=new ci(n.headers||r.headers||{});if(o!==null&&!c.has("Content-Type")){let f=SE(o,this);f&&c.set("Content-Type",f)}let u=Jv(r)?r.signal:null;if("signal"in n&&(u=n.signal),u!=null&&!Tte(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=n.referrer==null?r.referrer:n.referrer;if(l==="")l="no-referrer";else if(l){let f=new URL(l);l=/^about:(\/\/)?client$/.test(f)?"client":f}else l=void 0;this[pn]={method:a,redirect:n.redirect||r.redirect||"follow",headers:c,parsedURL:i,signal:u,referrer:l},this.follow=n.follow===void 0?r.follow===void 0?20:r.follow:n.follow,this.compress=n.compress===void 0?r.compress===void 0?!0:r.compress:n.compress,this.counter=n.counter||r.counter||0,this.agent=n.agent||r.agent,this.highWaterMark=n.highWaterMark||r.highWaterMark||16384,this.insecureHTTPParser=n.insecureHTTPParser||r.insecureHTTPParser||!1,this.referrerPolicy=n.referrerPolicy||r.referrerPolicy||""}get method(){return this[pn].method}get url(){return(0,Vte.format)(this[pn].parsedURL)}get headers(){return this[pn].headers}get redirect(){return this[pn].redirect}get signal(){return this[pn].signal}get referrer(){if(this[pn].referrer==="no-referrer")return"";if(this[pn].referrer==="client")return"about:client";if(this[pn].referrer)return this[pn].referrer.toString()}get referrerPolicy(){return this[pn].referrerPolicy}set referrerPolicy(r){this[pn].referrerPolicy=Wte(r)}clone(){return new e(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(cf.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var Kte=e=>{let{parsedURL:r}=e[pn],n=new ci(e[pn].headers);n.has("Accept")||n.set("Accept","*/*");let i=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(i="0"),e.body!==null){let u=Lte(e);typeof u=="number"&&!Number.isNaN(u)&&(i=String(u))}i&&n.set("Content-Length",i),e.referrerPolicy===""&&(e.referrerPolicy=Gte),e.referrer&&e.referrer!=="no-referrer"?e[pn].referrer=Hte(e):e[pn].referrer="no-referrer",e[pn].referrer instanceof URL&&n.set("Referer",e.referrer),n.has("User-Agent")||n.set("User-Agent","node-fetch"),e.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip, deflate, br");let{agent:a}=e;typeof a=="function"&&(a=a(r));let o=qte(r),c={path:r.pathname+o,method:e.method,headers:n[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:a};return{parsedURL:r,options:c}};var PE=class extends zo{constructor(r,n="aborted"){super(r,n)}};bE();eF();var j7e=new Set(["data:","http:","https:"]);async function Ja(e,r){return new Promise((n,i)=>{let a=new cf(e,r),{parsedURL:o,options:c}=Kte(a);if(!j7e.has(o.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${o.protocol.replace(/:$/,"")}" is not supported.`);if(o.protocol==="data:"){let E=vte(a.url),D=new Rs(E,{headers:{"Content-Type":E.typeFull}});n(D);return}let u=(o.protocol==="https:"?Jte.default:Xte.default).request,{signal:l}=a,f=null,p=()=>{let E=new PE("The operation was aborted.");i(E),a.body&&a.body instanceof Xi.default.Readable&&a.body.destroy(E),!(!f||!f.body)&&f.body.emit("error",E)};if(l&&l.aborted){p();return}let g=()=>{p(),x()},v=u(o.toString(),c);l&&l.addEventListener("abort",g);let x=()=>{v.abort(),l&&l.removeEventListener("abort",g)};v.on("error",E=>{i(new _i(`request to ${a.url} failed, reason: ${E.message}`,"system",E)),x()}),B7e(v,E=>{f&&f.body&&f.body.destroy(E)}),process.version<"v14"&&v.on("socket",E=>{let D;E.prependListener("end",()=>{D=E._eventsCount}),E.prependListener("close",P=>{if(f&&D{v.setTimeout(0);let D=Mte(E.rawHeaders);if(CE(E.statusCode)){let L=D.get("Location"),U=null;try{U=L===null?null:new URL(L,a.url)}catch{if(a.redirect!=="manual"){i(new _i(`uri requested responds with an invalid redirect URL: ${L}`,"invalid-redirect")),x();return}}switch(a.redirect){case"error":i(new _i(`uri requested responds with a redirect, redirect mode is set to error: ${a.url}`,"no-redirect")),x();return;case"manual":break;case"follow":{if(U===null)break;if(a.counter>=a.follow){i(new _i(`maximum redirect reached at: ${a.url}`,"max-redirect")),x();return}let V={headers:new ci(a.headers),follow:a.follow,counter:a.counter+1,agent:a.agent,compress:a.compress,method:a.method,body:qd(a),signal:a.signal,size:a.size,referrer:a.referrer,referrerPolicy:a.referrerPolicy};if(!Rte(a.url,U)||!Ate(a.url,U))for(let W of["authorization","www-authenticate","cookie","cookie2"])V.headers.delete(W);if(E.statusCode!==303&&a.body&&r.body instanceof Xi.default.Readable){i(new _i("Cannot follow redirect with body being a readable stream","unsupported-redirect")),x();return}(E.statusCode===303||(E.statusCode===301||E.statusCode===302)&&a.method==="POST")&&(V.method="GET",V.body=void 0,V.headers.delete("content-length"));let j=zte(D);j&&(V.referrerPolicy=j),n(Ja(new cf(U,V))),x();return}default:return i(new TypeError(`Redirect option '${a.redirect}' is not a valid value of RequestRedirect`))}}l&&E.once("end",()=>{l.removeEventListener("abort",g)});let P=(0,Xi.pipeline)(E,new Xi.PassThrough,L=>{L&&i(L)});process.version<"v12.10"&&E.on("aborted",g);let R={url:a.url,status:E.statusCode,statusText:E.statusMessage,headers:D,size:a.size,counter:a.counter,highWaterMark:a.highWaterMark},k=D.get("Content-Encoding");if(!a.compress||a.method==="HEAD"||k===null||E.statusCode===204||E.statusCode===304){f=new Rs(P,R),n(f);return}let F={flush:uf.default.Z_SYNC_FLUSH,finishFlush:uf.default.Z_SYNC_FLUSH};if(k==="gzip"||k==="x-gzip"){P=(0,Xi.pipeline)(P,uf.default.createGunzip(F),L=>{L&&i(L)}),f=new Rs(P,R),n(f);return}if(k==="deflate"||k==="x-deflate"){let L=(0,Xi.pipeline)(E,new Xi.PassThrough,U=>{U&&i(U)});L.once("data",U=>{(U[0]&15)===8?P=(0,Xi.pipeline)(P,uf.default.createInflate(),V=>{V&&i(V)}):P=(0,Xi.pipeline)(P,uf.default.createInflateRaw(),V=>{V&&i(V)}),f=new Rs(P,R),n(f)}),L.once("end",()=>{f||(f=new Rs(P,R),n(f))});return}if(k==="br"){P=(0,Xi.pipeline)(P,uf.default.createBrotliDecompress(),L=>{L&&i(L)}),f=new Rs(P,R),n(f);return}f=new Rs(P,R),n(f)}),Nte(v,a).catch(i)})}function B7e(e,r){let n=Qv.Buffer.from(`0\r -\r -`),i=!1,a=!1,o;e.on("response",c=>{let{headers:u}=c;i=u["transfer-encoding"]==="chunked"&&!u["content-length"]}),e.on("socket",c=>{let u=()=>{if(i&&!a){let f=new Error("Premature close");f.code="ERR_STREAM_PREMATURE_CLOSE",r(f)}},l=f=>{a=Qv.Buffer.compare(f.slice(-5),n)===0,!a&&o&&(a=Qv.Buffer.compare(o.slice(-3),n.slice(0,3))===0&&Qv.Buffer.compare(f.slice(-2),n.slice(3))===0),o=f};c.prependListener("close",u),c.on("data",l),e.on("close",()=>{c.removeListener("close",u),c.removeListener("data",l)})})}var mF=B(ire()),kre=B(require("path")),Fre=B(u_()),$re=B(jY()),Lre=require("util"),Nre=B(require("zlib"));var Cre=B(bre()),Pre=B(Dre()),Tre=B(require("url")),dF=me("prisma:fetch-engine:getProxyAgent");function Rre(e){return e.replace(/^\.*/,".").toLowerCase()}function zGe(e){e=e.trim().toLowerCase();let r=e.split(":",2),n=Rre(r[0]),i=r[1],a=e.includes(":");return{hostname:n,port:i,hasPort:a}}function VGe(e,r){let n=e.port||(e.protocol==="https:"?"443":"80"),i=Rre(e.hostname);return r.split(",").map(zGe).some(function(o){let c=i.indexOf(o.hostname),u=c>-1&&c===i.length-o.hostname.length;return o.hasPort?n===o.port&&u:u})}function YGe(e){let r=process.env.NO_PROXY||process.env.no_proxy||"";if(r&&dF(`noProxy is set to "${r}"`),r==="*"||r!==""&&VGe(e,r))return null;if(e.protocol==="http:"){let n=process.env.HTTP_PROXY||process.env.http_proxy||null;return n&&dF(`uri.protocol is HTTP and the URL for the proxy is "${n}"`),n}if(e.protocol==="https:"){let n=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null;return n&&dF(`uri.protocol is HTTPS and the URL for the proxy is "${n}"`),n}return null}function pf(e){try{let r=Tre.default.parse(e),n=YGe(r);if(n){if(r.protocol==="http:")try{return new Cre.HttpProxyAgent(n)}catch(i){throw new Error(`Error while instantiating HttpProxyAgent with URL: "${n}" -${i} -Check the following env vars "http_proxy" or "HTTP_PROXY". The value should be a valid URL starting with "http://"`)}else if(r.protocol==="https:")try{return new Pre.HttpsProxyAgent(n)}catch(i){throw new Error(`Error while instantiating HttpsProxyAgent with URL: "${n}" -${i} -Check the following env vars "https_proxy" or "HTTPS_PROXY". The value should be a valid URL starting with "https://"`)}}else return}catch(r){console.warn("An error occurred in getProxyAgent(), no proxy agent will be used.",r)}}var qE=me("prisma:fetch-engine:downloadZip"),Are=(0,Lre.promisify)(Fre.default);async function Ore(e){try{let r=`${e}.sha256`,n=await Ja(r,{agent:pf(e)});if(!n.ok){let o=`Failed to fetch sha256 checksum at ${r} - ${n.status} ${n.statusText}`;throw process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING||(o+=` - -If you need to ignore this error (e.g. in an offline environment), set the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable to a truthy value. -Example: PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1`),new Error(o)}let i=await n.text(),[a]=i.split(/\s+/);if(!/^[a-f0-9]{64}$/gi.test(a))throw new Error(`Unable to parse checksum from ${r} - response body: ${i}`);return a}catch(r){if(process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING)return qE(`fetchChecksum() failed and was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy. -Error: ${r}`),null;throw r}}async function Mre(e,r,n){let i=$re.default.directory(),a=kre.default.join(i,"partial"),o=2,[c,u]=await(0,mF.default)(async()=>await Promise.all([Ore(e),Ore(e.slice(0,e.length-3))]),{retries:o,onFailedAttempt:f=>qE("An error occurred while downloading the checksums files",f)}),l=await(0,mF.default)(async()=>{let f=await Ja(e,{compress:!1,agent:pf(e)});if(!f.ok)throw new Error(`Failed to fetch the engine file at ${e} - ${f.status} ${f.statusText}`);let p=f.headers.get("last-modified"),g=parseFloat(f.headers.get("content-length")),v=Ire.default.createWriteStream(a);return await new Promise(async(x,E)=>{let D=0;if(f.body===null)return E(new Error(`Failed to fetch the engine file at ${e} - response.body is null`));f.body.once("error",E).on("data",V=>{D+=V.length,g&&n&&n(D/g)});let P=Nre.default.createGunzip();P.on("error",E);let R=f.body.pipe(P),k=hF.default.fromStream(f.body,{algorithm:"sha256"}),F=hF.default.fromStream(R,{algorithm:"sha256"});R.pipe(v),v.on("error",E).on("close",()=>{x({lastModified:p,sha256:u,zippedSha256:c})});let L=await F,U=await k;if(c!==null&&c!==U)return E(new Error(`sha256 checksum of ${e} (zipped) should be ${c} but is ${U}`));if(u!==null&&u!==L)return E(new Error(`sha256 checksum of ${e} (unzipped) should be ${u} but is ${L}`))})},{retries:o,onFailedAttempt:f=>qE("An error occurred while downloading the engine file",f)});await tf(a,r);try{await Are(a),await Are(i)}catch(f){qE(f)}return l}var qre=B(require("fs"));var jre=B(require("path"));var KGe=me("prisma:fetch-engine:env"),gF={"query-engine":"PRISMA_QUERY_ENGINE_BINARY","libquery-engine":"PRISMA_QUERY_ENGINE_LIBRARY","schema-engine":"PRISMA_SCHEMA_ENGINE_BINARY"},XGe={"schema-engine":"PRISMA_MIGRATION_ENGINE_BINARY"};function df(e){let r=JGe(e);if(process.env[r]){let n=jre.default.resolve(process.cwd(),process.env[r]);if(!qre.default.existsSync(n))throw new Error(`Env var ${N(r)} is provided but provided path ${tt(process.env[r])} can't be resolved.`);return KGe(`Using env var ${N(r)} for binary ${N(e)}, which points to ${tt(process.env[r])}`),{path:n,fromEnvVar:r}}return null}function JGe(e){let r=gF[e],n=XGe[e];return n&&process.env[n]?process.env[r]?(console.warn(`${ze("prisma:warn")} Both ${N(r)} and ${N(n)} are specified, ${N(r)} takes precedence. ${N(n)} is deprecated.`),r):(console.warn(`${ze("prisma:warn")} ${N(n)} environment variable is deprecated, please use ${N(r)} instead`),n):r}function Bre(e){for(let r of e)if(!df(r))return!1;return!0}var Ure=B(require("crypto")),Gre=B(require("fs"));function vF(e){let r=Ure.default.createHash("sha256"),n=Gre.default.createReadStream(e);return new Promise(i=>{n.on("readable",()=>{let a=n.read();a?r.update(a):i(r.digest("hex"))})})}var Kre=B(Yre());function Xre(e){return new Kre.default(`> ${e} [:bar] :percent`,{stream:process.stdout,width:20,complete:"=",incomplete:" ",total:100,head:"",clear:!0})}var{enginesOverride:Qre}=Jre(),Yo=me("prisma:fetch-engine:download"),yF=(0,rne.promisify)(Di.default.exists),nne="master",ine=/^((\w:[\\\/])|\/)snapshot[\/\\]/;async function jE(options){(Qre?.branch||Qre?.folder)&&(options.version="_local_",options.skipCacheIntegrityCheck=!0);let{binaryTarget,...os}=await Lg();if(os.targetDistro&&["nixos"].includes(os.targetDistro)&&!Bre(Object.keys(options.binaries))?console.error(`${ze("Warning")} Precompiled engine files are not available for ${os.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines`):["freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd"].includes(binaryTarget)?console.error(`${ze("Warning")} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`):"libquery-engine"in options.binaries&&Mp(),!options.binaries||Object.values(options.binaries).length===0)return{};let opts={...options,binaryTargets:options.binaryTargets??[binaryTarget],version:options.version??"latest",binaries:options.binaries},binaryJobs=Object.entries(opts.binaries).flatMap(([e,r])=>opts.binaryTargets.map(n=>{let i=nWe(e,n),a=Za.default.join(r,i);return{binaryName:e,targetFolder:r,binaryTarget:n,fileName:i,targetFilePath:a,envVarPath:df(e)?.path,skipCacheIntegrityCheck:!!opts.skipCacheIntegrityCheck}}));process.env.BINARY_DOWNLOAD_VERSION&&(Yo(`process.env.BINARY_DOWNLOAD_VERSION is set to "${process.env.BINARY_DOWNLOAD_VERSION}"`),opts.version=process.env.BINARY_DOWNLOAD_VERSION),opts.printVersion&&console.log(`version: ${opts.version}`);let binariesToDownload=await(0,ene.default)(binaryJobs,async e=>{let r=await tWe(e,binaryTarget,opts.version),n=kg.includes(e.binaryTarget),i=n&&!e.envVarPath&&r;if(r&&!n)throw new Error(`Unknown binaryTarget ${e.binaryTarget} and no custom engine files were provided`);return i});if(binariesToDownload.length>0){let e=ute(),r,n;if(opts.showProgress){let a=ZGe(opts);r=a.finishBar,n=a.setProgress}let i=binariesToDownload.map(a=>{let o=ste({channel:"all_commits",version:opts.version,binaryTarget:a.binaryTarget,binaryName:a.binaryName});return Yo(`${o} will be downloaded to ${a.targetFilePath}`),sWe({...a,downloadUrl:o,version:opts.version,failSilent:opts.failSilent,progressCb:n?n(a.targetFilePath):void 0})});await Promise.all(i),await e,r&&r()}let binaryPaths=eWe(binaryJobs),dir=eval("__dirname");if(dir.match(ine))for(let e in binaryPaths){let r=binaryPaths[e];for(let n in r){let i=r[n];r[n]=await oWe(i)}}return binaryPaths}function ZGe(e){let r="libquery-engine"in e.binaries,n=Xre(`Downloading Prisma engines${r?" for Node-API":""} for ${e.binaryTargets?.map(c=>N(c)).join(" and ")}`),i={},a=Object.values(e.binaries).length*Object.values(e?.binaryTargets??[]).length;return{setProgress:c=>u=>{i[c]=u;let f=Object.values(i).reduce((p,g)=>p+g,0)/a;e.progressCb&&e.progressCb(f),n&&n.update(f)},finishBar:()=>{n.update(1),n.terminate()}}}function eWe(e){return e.reduce((r,n)=>(r[n.binaryName]||(r[n.binaryName]={}),r[n.binaryName][n.binaryTarget]=n.envVarPath||n.targetFilePath,r),{})}async function tWe(e,r,n){if(e.envVarPath&&Di.default.existsSync(e.envVarPath))return!1;let i=await yF(e.targetFilePath),a=await iWe({...e,version:n});if(a){if(e.skipCacheIntegrityCheck===!0)return await tf(a,e.targetFilePath),!1;let o=a+".sha256";if(await yF(o)){let c=await Di.default.promises.readFile(o,"utf-8"),u=await vF(a);if(c===u){i||(Yo(`copying ${a} to ${e.targetFilePath}`),await Di.default.promises.utimes(a,new Date,new Date),await tf(a,e.targetFilePath));let l=await vF(e.targetFilePath);return c!==l&&(Yo(`overwriting ${e.targetFilePath} with ${a} as hashes do not match`),await tf(a,e.targetFilePath)),!1}else return!0}else return process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING?(Yo(`The checksum file: ${o} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.`),!1):!0}if(!i)return Yo(`file ${e.targetFilePath} does not exist and must be downloaded`),!0;if(e.binaryTarget===r){let o=await rWe(e.targetFilePath,e.binaryName);if(o?.includes(n)!==!0)return Yo(`file ${e.targetFilePath} exists but its version is ${o} and we expect ${n}`),!0}return!1}async function rWe(e,r){try{if(r==="libquery-engine"){Mp();let n=require(e).version().commit;return`libquery-engine ${n}`}else return(await(0,Zre.default)(e,["--version"])).stdout}catch{}}function nWe(e,r){return e==="libquery-engine"?`${qa(r,"fs")}`:`${e}-${r}${r==="windows"?".exe":""}`}async function iWe({version:e,binaryTarget:r,binaryName:n}){let i=await Vk(nne,e,r);if(!i)return null;let a=Za.default.join(i,n);return Di.default.existsSync(a)&&(e!=="latest"||await yF(a))?a:null}async function sWe(e){let{version:r,progressCb:n,targetFilePath:i,downloadUrl:a}=e,o=Za.default.dirname(i);try{Di.default.accessSync(o,Di.default.constants.W_OK),await(0,bF.ensureDir)(o)}catch(l){if(e.failSilent||l.code!=="EACCES")return;throw new Error(`Can't write to ${o} please make sure you install "prisma" with the right permissions.`)}Yo(`Downloading ${a} to ${i} ...`),n&&n(0);let{sha256:c,zippedSha256:u}=await Mre(a,i,n);n&&n(1),Gee(i),await aWe(e,r,c,u)}async function aWe(e,r,n,i){let a=await Vk(nne,r,e.binaryTarget);if(!a)return;let o=Za.default.join(a,e.binaryName),c=Za.default.join(a,e.binaryName+".sha256"),u=Za.default.join(a,e.binaryName+".gz.sha256");try{await tf(e.targetFilePath,o),n!=null&&await Di.default.promises.writeFile(c,n),i!=null&&await Di.default.promises.writeFile(u,i)}catch(l){Yo(l)}}async function oWe(file){let dir=eval("__dirname");if(dir.match(ine)){let e=Za.default.join(tne.default,"prisma-binaries");await(0,bF.ensureDir)(e);let r=Za.default.join(e,Za.default.basename(file)),n=await Di.default.promises.readFile(file);return await Di.default.promises.writeFile(r,n),cWe(r),r}return file}function cWe(e){let r=Di.default.statSync(e),n=r.mode|64|8|1;if(r.mode===n)return;let i=n.toString(8).slice(-3);Di.default.chmodSync(e,i)}var UE=B(Nt());var vne=B(require("path"));var one=require("@prisma/engines");var bu=B(require("fs")),cne=B(uu()),xu=B(require("path")),une=B(l1());var xF=B(require("fs")),sne=me("chmodPlusX");function ane(e){if(process.platform==="win32")return;let r=xF.default.statSync(e),n=r.mode|64|8|1;if(r.mode===n){sne(`Execution permissions of ${e} are fine`);return}let i=n.toString(8).slice(-3);sne(`Have to call chmodPlusX on ${e}`),xF.default.chmodSync(e,i)}var Vd=/^((\w:[\\\/])|\/)snapshot[\/\\]/;async function uWe(e){let r=await Hr(),n=r==="windows"?".exe":"";return e==="libquery-engine"?qa(r,"fs"):`${e}-${r}${n}`}async function wu(e,r){if(r&&!r.match(Vd)&&bu.default.existsSync(r))return r;let n=df(e);if(n!==null)return n.path;let i=await uWe(e),a=xu.default.join((0,one.getEnginesPath)(),i);if(bu.default.existsSync(a))return BE(a);let o=xu.default.join(__dirname,"..",i);if(bu.default.existsSync(o))return BE(o);let c=xu.default.join(__dirname,"../..",i);if(bu.default.existsSync(c))return BE(c);let u=xu.default.join(__dirname,"../runtime",i);if(bu.default.existsSync(u))return BE(u);throw new Error(`Could not find ${e} binary. Searched in: -- ${a} -- ${o} -- ${c} -- ${u}`)}function lne(e,r){return vd(()=>wu(e,r),n=>n)}async function BE(file){let dir=eval("__dirname");if(dir.match(Vd)){let e=xu.default.join(une.default,"prisma-binaries");await(0,cne.ensureDir)(e);let r=xu.default.join(e,xu.default.basename(file)),n=await bu.default.promises.readFile(file);return await bu.default.promises.writeFile(r,n),ane(r),r}return file}var dne=require("@prisma/engines");var hne=B(Pl());function fne(e){let r=e.e,n=u=>`Prisma cannot find the required \`${u}\` system library in your system`,i=r.message.includes("cannot open shared object file"),a=`Please refer to the documentation about Prisma's system requirements: ${xR("https://pris.ly/d/system-requirements")}`,o=`Unable to require(\`${J(e.id)}\`).`,c=He({message:r.message,code:r.code}).with({code:"ENOENT"},()=>"File does not exist.").when(({message:u})=>i&&u.includes("libz"),()=>`${n("libz")}. Please install it and try again.`).when(({message:u})=>i&&u.includes("libgcc_s"),()=>`${n("libgcc_s")}. Please install it and try again.`).when(({message:u})=>i&&u.includes("libssl"),()=>{let u=e.platformInfo.libssl?`openssl-${e.platformInfo.libssl}`:"openssl";return`${n("libssl")}. Please install ${u} and try again.`}).when(({message:u})=>u.includes("GLIBC"),()=>`Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${a}`).when(({message:u})=>e.platformInfo.platform==="linux"&&u.includes("symbol not found"),()=>`The Prisma engines are not compatible with your system ${e.platformInfo.originalDistro} on (${e.platformInfo.archFromUname}) which uses the \`${e.platformInfo.binaryTarget}\` binaryTarget by default. ${a}`).otherwise(()=>`The Prisma engines do not seem to be compatible with your system. ${a}`);return`${o} -${c} - -Details: ${r.message}`}function pne(e,r){try{return require(e)}catch(n){let i=fne({e:n,platformInfo:r,id:e});throw new Error(i)}}async function lWe(e,r){r||(r=(0,dne.getCliQueryEngineBinaryType)()),e=await wu(r,e);let n=await Lg();if(r==="libquery-engine"){Mp();let i=pne(e,n);return`libquery-engine ${i.version().commit}`}else{let{stdout:i}=await(0,hne.default)(e,["--version"]);return i}}function mne(e,r){return vd(()=>lWe(e,r),n=>n)}async function wF(){let r=[{name:"query-engine",type:(0,gne.getCliQueryEngineBinaryType)()},{name:"schema-engine",type:"schema-engine"}],n=r.map(({name:u,type:l})=>pWe(l).then(f=>[u,f])),i=await Promise.all(n).then(Object.fromEntries),a=r.map(({name:u})=>{let[l,f]=fWe(i[u]);return[{[u]:l},f]}),o=a.map(u=>u[0]),c=a.flatMap(u=>u[1]);return[o,c]}function fWe(e){let r=[],n=He(e).with({fromEnvVar:Cr.when(oK)},c=>`, resolved by ${c.fromEnvVar.value}`).otherwise(()=>""),i=He(e).with({path:Cr.when(ia)},c=>c.path.right).with({path:Cr.when(bi)},c=>(r.push(c.path.left),"E_CANNOT_RESOLVE_PATH")).exhaustive();return[`${He(e).with({version:Cr.when(ia)},c=>c.version.right).with({version:Cr.when(bi)},c=>(r.push(c.version.left),"E_CANNOT_RESOLVE_VERSION")).exhaustive()} (at ${vne.default.relative(process.cwd(),i)}${n})`,r]}async function pWe(e){let r=uK(df(e)),n=(0,UE.pipe)(r,wI(c=>c.fromEnvVar)),i=await(0,UE.pipe)(r,cK(()=>lne(e),c=>DK(c.path)))(),a=await(0,UE.pipe)(i,gv,IK(c=>mne(c,e)))();return{path:i,version:a,fromEnvVar:n}}var yne=B(Nt());var GE=me("prisma:mergeSchemas"),_F=class extends Error{constructor(r){let i=`${He(r).with({_tag:"parsed"},({errorCode:a,message:o,reason:c})=>{let u=a?`Error code: ${a}`:"";return`${c} -${u} -${Wi(o)}`}).with({_tag:"unparsed"},({message:a,reason:o})=>{let c=oe(N("Details:"));return`${o} -${c} ${a}`}).exhaustive()} -[Context: mergeSchemas]`;super(tu(i)),this.name="MergeSchemasError"}};function ey(e){let r=ru(GE,"mergeSchemasWasm");GE("Using mergeSchemas Wasm");let n=(0,yne.pipe)(Es(()=>{let a=JSON.stringify({schema:e.schemas});return on.default.merge_schemas(a)},a=>({type:"wasm-error",reason:"(mergeSchemas wasm)",error:a})));if(ia(n))return n.right;throw He(n.left).with({type:"wasm-error"},a=>{if(r(a),console.error(""),Zc(a.error)){let{message:c,stack:u}=Ss(a.error);return GE(`Error merging schemas: ${c}`),GE(u),new sn(c,u,"@prisma/prisma-schema-wasm merge_schemas","FMT_CLI",eu(e.schemas),e.schemas)}let o=a.error.message;return new _F(nu({errorOutput:o,reason:a.reason}))}).exhaustive()}var bne=B(Nt());var ty=me("prisma:validate"),EF=class extends Error{constructor(r){let i=`${He(r).with({_tag:"parsed"},({errorCode:a,message:o,reason:c})=>{let u=a?`Error code: ${a}`:"";return`${c} -${u} -${Wi(o)}`}).with({_tag:"unparsed"},({message:a,reason:o})=>{let c=oe(N("Details:"));return`${o} -${c} ${a}`}).exhaustive()} -[Context: validate]`;super(tu(i)),this.name="ValidateError"}};function hf(e){let r=ru(ty,"validateWasm");ty("Using validate Wasm");let n=(0,bne.pipe)(Es(()=>{process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF&&(ty("Triggering a Rust panic..."),on.default.debug_panic());let a=JSON.stringify({prismaSchema:e.schemas,noColor:!!process.env.NO_COLOR});on.default.validate(a)},a=>({type:"wasm-error",reason:"(validate wasm)",error:a})));if(ia(n))return;throw He(n.left).with({type:"wasm-error"},a=>{if(r(a),console.error(""),Zc(a.error)){let{message:c,stack:u}=Ss(a.error);return ty(`Error validating schema: ${c}`),ty(u),new sn(c,u,"@prisma/prisma-schema-wasm validate","FMT_CLI",eu(e.schemas),e.schemas)}let o=a.error.message;return new EF(nu({errorOutput:o,reason:a.reason}))}).exhaustive()}var dWe=(0,CF.promisify)(DF.default.readFile),Ene=(0,CF.promisify)(DF.default.stat),Yd=sR("prisma:getSchema");async function pt(e,{cwd:r=process.cwd(),argumentName:n="--schema"}={}){let i=await Tne(e,{cwd:r,argumentName:n});if(i.ok)return i.schema;throw new Error(hWe(i.error,r))}async function ry(e,{cwd:r=process.cwd(),argumentName:n="--schema"}={}){let i=await Tne(e,{cwd:r,argumentName:n});return i.ok?i.schema:null}async function Sne(e){Yd("Reading schema from single file",e);let r=await Cne(e,"file");if(r)return{ok:!1,error:r};let n=await dWe(e,{encoding:"utf-8"}),i=[e,n];return{ok:!0,schema:{schemaPath:e,schemaRootDir:pr.default.dirname(e),schemas:[i]}}}async function Dne(e){Yd("Reading schema from multiple files",e);let r=await Cne(e,"directory");if(r)return{ok:!1,error:r};let n=await(0,WE.loadSchemaFiles)(e);Yd("Loading config");let i=await Ve({datamodel:n,ignoreEnvVarErrors:!0});return Yd("Ok"),(0,WE.usesPrismaSchemaFolder)(i)?{ok:!0,schema:{schemaPath:e,schemaRootDir:e,schemas:n}}:{ok:!1,error:{kind:"FolderPreviewNotEnabled",path:e}}}async function Cne(e,r){try{let n=await Ene(e);return r==="file"&&n.isFile()||r==="directory"&&n.isDirectory()?void 0:{kind:"WrongType",path:e,expectedTypes:[r]}}catch(n){if(n.code==="ENOENT")return{kind:"NotFound",path:e,expectedType:r};throw n}}async function Pne(e){let r;try{r=await Ene(e)}catch(n){if(n.code==="ENOENT")return{ok:!1,error:{kind:"NotFound",path:e}};throw n}return r.isFile()?Sne(e):r.isDirectory()?Dne(e):{ok:!1,error:{kind:"WrongType",path:e,expectedTypes:["file","directory"]}}}async function Tne(e,{cwd:r,argumentName:n}){if(e){let u=pr.default.resolve(r,e),l=await Pne(u);if(!l.ok){let f=pr.default.relative(r,u);throw new Error(`Could not load \`${n}\` from provided path \`${f}\`: ${PF(l.error)}`)}return l}let i=await HE(r);if(i.ok)return i;let a=await Rne(r);if(a.ok)return a;let o=await mWe(r,a.error.failures);return o.ok?o:{ok:!1,error:o.error.kind==="Yarn1WorkspaceSchemaNotFound"?a.error:o.error}}function PF(e){switch(e.kind){case"NotFound":return`${e.expectedType??"file or directory"} not found`;case"FolderPreviewNotEnabled":return'"prismaSchemaFolder" preview feature must be enabled';case"WrongType":return`expected ${e.expectedTypes.join(" or ")}`}}function hWe(e,r){let n=["Could not find Prisma Schema that is required for this command.",`You can either provide it with ${te("`--schema`")} argument, set it as \`prisma.schema\` in your package.json or put it into the default location.`,`Checked following paths: -`],i=new Set;for(let a of e.failures){let o=a.rule.schemaPath.path;i.has(a.rule.schemaPath.path)||(n.push(`${pr.default.relative(r,o)}: ${PF(a.error)}`),i.add(o))}return n.push(` -See also https://pris.ly/d/prisma-schema-location`),n.join(` -`)}async function ny(e){let r=await Lk({cwd:e,normalize:!1}),n=r?.packageJson?.prisma;return r?{data:n,packagePath:r.path}:null}async function HE(e){let r=await ny(e);if(Yd("prismaConfig",r),!r||!r.data?.schema)return{ok:!1,error:{kind:"PackageJsonNotConfigured"}};let n=r.data.schema;if(typeof n!="string")throw new Error(`Provided schema path \`${n}\` from \`${pr.default.relative(e,r.packagePath)}\` must be of type string`);let i=pr.default.isAbsolute(n)?n:pr.default.resolve(pr.default.dirname(r.packagePath),n),a=await Pne(i);if(!a.ok)throw new Error(`Could not load schema from \`${pr.default.relative(e,i)}\` provided by "prisma.schema" config of \`${pr.default.relative(e,r.packagePath)}\`: ${PF(a.error)}`);return a}async function mWe(e,r){if(!process.env.npm_config_user_agent?.includes("yarn"))return{ok:!1,error:{kind:"Yarn1WorkspaceSchemaNotFound"}};let n;try{let{stdout:o}=await SF.default.command("yarn --version",{cwd:e});if(o.startsWith("2"))return{ok:!1,error:{kind:"Yarn1WorkspaceSchemaNotFound"}};let{stdout:c}=await SF.default.command("yarn workspaces info --json",{cwd:e}),u=gWe(c);n=Object.values(u)}catch{return{ok:!1,error:{kind:"Yarn1WorkspaceSchemaNotFound"}}}let i=await yWe(e);if(!i)return{ok:!1,error:{kind:"Yarn1WorkspaceSchemaNotFound"}};for(let o of n){let c=pr.default.join(i,o.location),u=await xne(c,r);if(u.ok)return u}return await xne(i,r)}async function xne(e,r){let n=await HE(e);return n.ok?n:Rne(e,r)}async function Rne(e,r=[]){let n={schemaPath:{path:pr.default.join(e,"schema.prisma"),kind:"file"}},i={schemaPath:{path:pr.default.join(e,"prisma","schema.prisma"),kind:"file"},conflictsWith:{path:pr.default.join(e,"prisma","schema"),kind:"directory"}},a={schemaPath:{path:pr.default.join(e,"prisma","schema"),kind:"directory"},conflictsWith:{path:pr.default.join(e,"prisma","schema.prisma"),kind:"file"}},o=[n,i,a];for(let c of o){Yd(`Checking existence of ${c.schemaPath.path}`);let u=await wne(c.schemaPath);if(!u.ok){r.push({rule:c,error:u.error});continue}if(c.conflictsWith&&(await wne(c.conflictsWith)).ok)throw new Error(`Found Prisma Schemas at both \`${pr.default.relative(e,c.schemaPath.path)}\` and \`${pr.default.relative(e,c.conflictsWith.path)}\`. Please remove one.`);return u}return{ok:!1,error:{kind:"NotFoundMultipleLocations",failures:r}}}async function wne(e){switch(e.kind){case"file":return Sne(e.path);case"directory":return Dne(e.path)}}async function Bn(e){return(await pt(e)).schemas}function gWe(e){let r=e.indexOf("{"),n=e.lastIndexOf("}"),i=e.slice(r,n+1);return JSON.parse(i)}function vWe(e){let r=e.workspaces;return r?Array.isArray(r)||r.packages!==void 0:!1}async function _ne(e){let r=await Lk({cwd:e,normalize:!1});return r?{isRoot:vWe(r.packageJson),path:r.path}:null}async function yWe(e){let r=await _ne(e);if(!r)return null;if(r.isRoot===!0)return pr.default.dirname(r.path);let n=pr.default.dirname(pr.default.dirname(r.path));return r=await _ne(n),!r||r.isRoot===!1?null:pr.default.dirname(r.path)}var OF=B(RF()),YE=B(require("fs"));var Kd=B(require("path"));function Ine(e){let r=e.ignoreProcessEnv?{}:process.env,n=i=>i.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g)?.reduce(function(o,c){let u=/(.?)\${([a-zA-Z0-9_]+)?}/g.exec(c);if(!u)return o;let l=u[1],f,p;if(l==="\\")p=u[0],f=p.replace("\\$","$");else{let g=u[2];p=u[0].substring(l.length),f=Object.hasOwnProperty.call(r,g)?r[g]:e.parsed[g]||"",f=n(f)}return o.replace(p,f)},i)??i;for(let i in e.parsed){let a=Object.hasOwnProperty.call(r,i)?r[i]:e.parsed[i];e.parsed[i]=n(a)}for(let i in e.parsed)r[i]=e.parsed[i];return e}var AF=me("prisma:tryLoadEnv");function iy({rootEnvPath:e,schemaEnvPath:r},n={conflictCheck:"none"}){let i=kne(e);n.conflictCheck!=="none"&&TWe(i,r,n.conflictCheck);let a=null;return Fne(i?.path,r)||(a=kne(r)),!i&&!a&&AF("No Environment variables loaded"),a?.dotenvResult.error?console.error(oe(N("Schema Env Error: "))+a.dotenvResult.error):{message:[i?.message,a?.message].filter(Boolean).join(` -`),parsed:{...i?.dotenvResult?.parsed,...a?.dotenvResult?.parsed}}}function TWe(e,r,n){let i=e?.dotenvResult.parsed,a=!Fne(e?.path,r);if(i&&r&&a&&YE.default.existsSync(r)){let o=OF.default.parse(YE.default.readFileSync(r)),c=[];for(let u in o)i[u]===o[u]&&c.push(u);if(c.length>0){let u=Kd.default.relative(process.cwd(),e.path),l=Kd.default.relative(process.cwd(),r);if(n==="error"){let f=`There is a conflict between env var${c.length>1?"s":""} in ${tt(u)} and ${tt(l)} -Conflicting env vars: -${c.map(p=>` ${N(p)}`).join(` -`)} - -We suggest to move the contents of ${tt(l)} to ${tt(u)} to consolidate your env vars. -`;throw new Error(f)}else if(n==="warn"){let f=`Conflict for env var${c.length>1?"s":""} ${c.map(p=>N(p)).join(", ")} in ${tt(u)} and ${tt(l)} -Env vars from ${tt(l)} overwrite the ones from ${tt(u)} - `;console.warn(`${ze("warn(prisma)")} ${f}`)}}}}function kne(e){if(IF(e)){AF(`Environment variables loaded from ${e}`);let r=OF.default.config({path:e,debug:process.env.DOTENV_CONFIG_DEBUG?!0:void 0});return{dotenvResult:Ine(r),message:J(`Environment variables loaded from ${Kd.default.relative(process.cwd(),e)}`),path:e}}else AF(`Environment variables not found at ${e}`);return null}function Fne(e,r){return e&&r&&Kd.default.resolve(e)===Kd.default.resolve(r)}function IF(e){return!!(e&&YE.default.existsSync(e))}var $ne=me("prisma:loadEnv");async function mf(e,r={cwd:process.cwd()}){let n=AWe({cwd:r.cwd})??null,i=Lne(e),a=Lne(await RWe()),c=[i,a,"./prisma/.env","./.env"].find(IF);return{rootEnvPath:n,schemaEnvPath:c}}async function RWe(){try{let e=await HE(process.cwd());return e.ok&&e.schema.schemaPath,null}catch{return null}}function AWe(e){let r=kF.default.sync(i=>{let a=Xd.default.join(i,"package.json");if(kF.default.sync.exists(a))try{if(JSON.parse(FF.default.readFileSync(a,"utf8")).name!==".prisma/client")return $ne(`project root found at ${a}`),a}catch{$ne(`skipping package.json at ${a}`)}},e);if(!r)return null;let n=Xd.default.join(Xd.default.dirname(r),".env");return FF.default.existsSync(n)?n:null}function Lne(e){return e?Xd.default.join(Xd.default.dirname(e),".env"):null}async function at({schemaPath:e,printMessage:r=!1}={}){let n=await mf(e),i=iy(n,{conflictCheck:"error"});r&&i&&i.message&&process.stdout.write(i.message+` -`)}var Nne=e=>` -Using an Accelerate URL is not supported for this CLI command ${te(`prisma ${e}`)} yet. -Please use a direct connection to your database via the datasource \`directUrl\` setting. - -More information about this limitation: ${ke("https://pris.ly/d/accelerate-limitations")} -`;async function OWe(e,r,n){n===!0&&(r["--schema"]=(await pt(r["--schema"]))?.schemaPath??void 0);let i=Object.entries(r);for(let[a,o]of i){if(a.includes("url")&&o.includes("prisma://"))return Nne(e);if(a.includes("schema")){await at({schemaPath:o,printMessage:!1});let c=await Mne.default.promises.readFile(o,"utf-8"),u=await Ve({datamodel:c,ignoreEnvVarErrors:!0});if(bv(jo(u.datasources[0]))?.startsWith("prisma://"))return Nne(e)}}}async function Rr(e,r,n){let i=await OWe(e,r,n).catch(()=>{});if(i)throw new Error(i)}var LF=B(require("path"));var IWe="library";function qne(e){let r=kWe();return r||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":IWe)}function kWe(){let e=process.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":void 0}function Ko(e){return e<1e3?`${e}ms`:(e/1e3).toFixed(2)+"s"}function mn(e){if(e.fromEnvVar&&e.fromEnvVar!="null"){let r=process.env[e.fromEnvVar];if(!r)throw new Error(`Attempted to load provider value using \`env(${e.fromEnvVar})\` but it was not present. Please ensure that ${J(e.fromEnvVar)} is present in your Environment Variables`);return r}return e.value}function $F(e){if(e.fromEnvVar&&e.fromEnvVar!="null"){let r=process.env[e.fromEnvVar];if(!r)throw new Error(`Attempted to load binaryTargets value using \`env(${e.fromEnvVar})\` but it was not present. Please ensure that ${J(e.fromEnvVar)} is present in your Environment Variables`);return JSON.parse(r)}return e.value}function sy(e,r){let n=e.getPrettyName(),i=FWe(e),a=$We(e);return`\u2714 Generated ${N(n)}${i?` (${i})`:""}${a} in ${Ko(r)}`}function FWe(e){let r=e.manifest?.version;if(e.getProvider()==="prisma-client-js"){let n=qne(e.config),i="";return e.options?.noEngine?i=", engine=none":n==="binary"?i=", engine=binary":n==="library"&&(i=""),`v${r??"?.?.?"}${i}`}return r}function $We(e){let r=e.options?.generator.output;return r?J(` to .${LF.default.sep}${LF.default.relative(process.cwd(),mn(r))}`):""}var qF=B(require("crypto"));var Hne=B(MF()),zne=B(Wne());function $e(e=""){return(0,zne.default)(e).trimRight()+` -`}function _e(e,r,n=!0,i=!1){try{return(0,Hne.default)(r,{argv:e,stopAtPositional:n,permissive:i})}catch(a){return a}}function xe(e){return e instanceof Error}async function oy(){let e=_e(process.argv.slice(3),{"--schema":String}),r=(await pt(e["--schema"]))?.schemaPath??process.cwd();return qF.default.createHash("sha256").update(r).digest("hex").substring(0,8)}function cy(){let e=process.argv[1];return qF.default.createHash("sha256").update(e).digest("hex").substring(0,8)}function gf(e,r){return new Re(` -${N(oe("!"))} Unknown command "${r}" -${e}`)}var Re=class e extends Error{constructor(r){super(r),this.name="HelpError",Object.setPrototypeOf(this,e.prototype)}};var Vne=B(require("path")),Yne=B(require("url"));function KE(e){let r;try{r=new Yne.URL(e)}catch{throw new Error("Invalid data source URL, see https://www.prisma.io/docs/reference/database-reference/connection-urls")}let n=eo(r.protocol),i=l=>l&&l.length>0,a={},o=r.searchParams.get("schema"),c=r.searchParams.get("socket");for(let[l,f]of r.searchParams)["schema","socket"].includes(l)||(a[l]=f);let u;return n==="sqlite"&&r.pathname?r.pathname.startsWith("file:")?u=r.pathname.slice(5):u=Vne.default.basename(r.pathname):r.pathname.length>1&&(u=r.pathname.slice(1),n==="postgresql"&&!u&&(u="postgres")),{type:n,host:i(r.hostname)?r.hostname:void 0,user:i(r.username)?r.username:void 0,port:i(r.port)?Number(r.port):void 0,password:i(r.password)?r.password:void 0,database:u,schema:o||void 0,uri:e,ssl:!!r.searchParams.get("sslmode"),socket:c||void 0,extraFields:a}}function eo(e){switch(e){case"postgresql:":case"postgres:":case"prisma+postgres:":return"postgresql";case"mongodb+srv:":case"mongodb:":return"mongodb";case"mysql:":return"mysql";case"file:":return"sqlite";case"sqlserver:":return"sqlserver"}throw new Error(`Unknown protocol ${e}`)}var XE=B(require("stream")),Kne=B(require("util"));function jF(e,r){return NWe(e,r)}function NWe(e,r){return e?MWe(e,r):new vf(r)}function MWe(e,r){if(!e)throw new Error("expected readStream");if(!e.readable)throw new Error("readStream must be readable");let n=new vf(r);return e.pipe(n),n}function vf(e){XE.default.Transform.call(this,e),e=e||{},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1,this.on("pipe",function(r){this.encoding||r instanceof XE.default.Readable&&(this.encoding=r._readableState.encoding)})}Kne.default.inherits(vf,XE.default.Transform);vf.prototype._transform=function(e,r,n){r=r||"utf8",Buffer.isBuffer(e)&&(r=="buffer"?(e=e.toString(),r="utf8"):e=e.toString(r)),this._chunkEncoding=r;let i=e.split(/\r\n|\r|\n/g);this._lastChunkEndedWithCR&&e[0]==` -`&&i.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=i[0],i.shift()),this._lastChunkEndedWithCR=e[e.length-1]=="\r",this._lineBuffer=this._lineBuffer.concat(i),this._pushBuffer(r,1,n)};vf.prototype._pushBuffer=function(e,r,n){for(;this._lineBuffer.length>r;){let i=this._lineBuffer.shift();if((this._keepEmptyLines||i.length>0)&&!this.push(this._reencode(i,e))){let a=this;setImmediate(function(){a._pushBuffer(e,r,n)});return}}n()};vf.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)};vf.prototype._reencode=function(e,r){return this.encoding&&this.encoding!=r?Buffer.from(e,r).toString(this.encoding):this.encoding?e:Buffer.from(e,r)};var Xne=require("child_process"),Jne=B(OR());var BF=me("prisma:GeneratorProcess"),qWe=1,yf=class extends Error{constructor(n,i,a){super(n);this.code=i;this.data=a;this.name="GeneratorError";a?.stack&&(this.stack=a.stack)}},uy=class{constructor(r,{isNode:n=!1}={}){this.pathOrCommand=r;this.handlers={};this.errorLogs="";this.exited=!1;this.getManifest=this.rpcMethod("getManifest",r=>r.manifest??null);this.generate=this.rpcMethod("generate");this.isNode=n}async init(){return this.initPromise||(this.initPromise=this.initSingleton()),this.initPromise}initSingleton(){return new Promise((r,n)=>{this.isNode?this.child=(0,Xne.fork)(this.pathOrCommand,[],{stdio:["pipe","inherit","pipe","ipc"],env:{...process.env,PRISMA_GENERATOR_INVOCATION:"true"},execArgv:["--max-old-space-size=8096"]}):this.child=(0,Jne.spawn)(this.pathOrCommand,{stdio:["pipe","inherit","pipe"],env:{...process.env,PRISMA_GENERATOR_INVOCATION:"true"},shell:!0}),this.child.on("exit",(i,a)=>{if(BF(`child exited with code ${i} on signal ${a}`),this.exited=!0,i){let o=new yf(`Generator ${JSON.stringify(this.pathOrCommand)} failed: - -${this.errorLogs}`);this.pendingError=o,this.rejectAllHandlers(o)}}),this.child.stdin.on("error",()=>{}),this.child.on("error",i=>{BF(i),this.pendingError=i,i.code==="EACCES"?n(new Error(`The executable at ${this.pathOrCommand} lacks the right permissions. Please use ${N(`chmod +x ${this.pathOrCommand}`)}`)):n(i),this.rejectAllHandlers(i)}),jF(this.child.stderr).on("data",i=>{let a=String(i),o;try{o=JSON.parse(a)}catch{this.errorLogs+=a+` -`,BF(a)}o&&this.handleResponse(o)}),this.child.on("spawn",r)})}rejectAllHandlers(r){for(let n of Object.keys(this.handlers))this.handlers[n].reject(r),delete this.handlers[n]}handleResponse(r){if(r.jsonrpc&&r.id){if(typeof r.id!="number")throw new Error(`message.id has to be a number. Found value ${r.id}`);if(this.handlers[r.id]){if(jWe(r)){let n=new yf(r.error.message,r.error.code,r.error.data);this.handlers[r.id].reject(n)}else this.handlers[r.id].resolve(r.result);delete this.handlers[r.id]}}}sendMessage(r,n){if(!this.child){n(new yf("Generator process has not started yet"));return}if(!this.child.stdin.writable){n(new yf("Cannot send data to the generator process, process already exited"));return}this.child.stdin.write(JSON.stringify(r)+` -`,i=>{if(!i||i.code==="EPIPE")return n();n(i)})}getMessageId(){return qWe++}stop(){if(this.child&&!this.child?.killed){this.child.kill("SIGTERM");let r=2e3,n=200,i,a;Promise.race([new Promise(o=>{a=setTimeout(o,r)}),new Promise(o=>{i=setInterval(()=>{if(this.exited)return o("exited")},n)})]).then(o=>{o!=="exited"&&this.child?.kill("SIGKILL")}).finally(()=>{clearInterval(i),clearTimeout(a)})}}rpcMethod(r,n=i=>i){return i=>new Promise((a,o)=>{if(this.pendingError){o(this.pendingError);return}let c=this.getMessageId();this.handlers[c]={resolve:u=>a(n(u)),reject:o},this.sendMessage({jsonrpc:"2.0",method:r,params:i,id:c},u=>{u&&o(u)})})}};function jWe(e){return e.error!==void 0}var JE=class{constructor(r,n,i){this.manifest=null;this.config=n,this.generatorProcess=new uy(r,{isNode:i})}async init(){await this.generatorProcess.init(),this.manifest=await this.generatorProcess.getManifest(this.config)}stop(){this.generatorProcess.stop()}generate(){if(!this.options)throw new Error("Please first run .setOptions() on the Generator to initialize the options");return this.generatorProcess.generate(this.options)}setOptions(r){this.options=r}setBinaryPaths(r){if(!this.options)throw new Error("Please first run .setOptions() on the Generator to initialize the options");this.options.binaryPaths=r}getPrettyName(){return this.manifest?.prettyName??this.getProvider()}getProvider(){return mn(this.config.provider)}};var va=B(require("fs"),1),Lr=B(require("path"),1),Kr=B(require("process"),1),Xie=require("buffer"),hy=B(require("child_process"),1),Jie=B(require("child_process"),1),yy=B(require("path"),1),ch=B(require("fs"),1),by=B(require("url"),1),uh=B(require("os"),1),Qie=require("timers/promises"),Zie=B(require("stream"),1),ese=require("util"),tse=B(require("os"),1),rse=B(require("tty"),1),nse=B(require("readline"),1),ise=B(require("events"),1),O$=B(require("fs/promises"),1);function Qne(e){return r=>r.length>1?`${e} run ${r[0]} -- ${r.slice(1).join(" ")}`:`${e} run ${r[0]}`}var Zne={agent:"yarn {0}",run:"yarn run {0}",install:"yarn install {0}",frozen:"yarn install --frozen-lockfile",global:"yarn global add {0}",add:"yarn add {0}",upgrade:"yarn upgrade {0}","upgrade-interactive":"yarn upgrade-interactive {0}",execute:"npx {0}",uninstall:"yarn remove {0}",global_uninstall:"yarn global remove {0}"},eie={agent:"pnpm {0}",run:"pnpm run {0}",install:"pnpm i {0}",frozen:"pnpm i --frozen-lockfile",global:"pnpm add -g {0}",add:"pnpm add {0}",upgrade:"pnpm update {0}","upgrade-interactive":"pnpm update -i {0}",execute:"pnpm dlx {0}",uninstall:"pnpm remove {0}",global_uninstall:"pnpm remove --global {0}"},BWe={agent:"bun {0}",run:"bun run {0}",install:"bun install {0}",frozen:"bun install --no-save",global:"bun add -g {0}",add:"bun add {0}",upgrade:"bun update {0}","upgrade-interactive":"bun update {0}",execute:"bunx {0}",uninstall:"bun remove {0}",global_uninstall:"bun remove -g {0}"},my={npm:{agent:"npm {0}",run:Qne("npm"),install:"npm i {0}",frozen:"npm ci",global:"npm i -g {0}",add:"npm i {0}",upgrade:"npm update {0}","upgrade-interactive":null,execute:"npx {0}",uninstall:"npm uninstall {0}",global_uninstall:"npm uninstall -g {0}"},yarn:Zne,"yarn@berry":{...Zne,frozen:"yarn install --immutable",upgrade:"yarn up {0}","upgrade-interactive":"yarn up -i {0}",execute:"yarn dlx {0}",global:"npm i -g {0}",global_uninstall:"npm uninstall -g {0}"},pnpm:eie,"pnpm@6":{...eie,run:Qne("pnpm")},bun:BWe},UWe=Object.keys(my),s$={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},sse={bun:"https://bun.sh",pnpm:"https://pnpm.io/installation","pnpm@6":"https://pnpm.io/6.x/installation",yarn:"https://classic.yarnpkg.com/en/docs/install","yarn@berry":"https://yarnpkg.com/getting-started/install",npm:"https://docs.npmjs.com/cli/v8/configuring-npm/install"},Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var{hasOwnProperty:S5t}=Object.prototype;var lh={exports:{}},UF,tie;function GWe(){if(tie)return UF;tie=1,UF=i,i.sync=a;var e=ch.default;function r(o,c){var u=c.pathExt!==void 0?c.pathExt:process.env.PATHEXT;if(!u||(u=u.split(";"),u.indexOf("")!==-1))return!0;for(var l=0;lObject.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),use=(e,r)=>{let n=r.colon||VWe,i=e.match(/\//)||Zd&&e.match(/\\/)?[""]:[...Zd?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],a=Zd?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Zd?a.split(n):[""];return Zd&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:a}},lse=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:i,pathExt:a,pathExtExe:o}=use(e,r),c=[],u=f=>new Promise((p,g)=>{if(f===i.length)return r.all&&c.length?p(c):g(cse(e));let v=i[f],x=/^".*"$/.test(v)?v.slice(1,-1):v,E=ase.join(x,e),D=!x&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;p(l(D,f,0))}),l=(f,p,g)=>new Promise((v,x)=>{if(g===a.length)return v(u(p+1));let E=a[g];ose(f+E,{pathExt:o},(D,P)=>{if(!D&&P)if(r.all)c.push(f+E);else return v(f+E);return v(l(f,p,g+1))})});return n?u(0).then(f=>n(null,f),n):u(0)},YWe=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:i,pathExtExe:a}=use(e,r),o=[];for(let c=0;c{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};k$.exports=fse;k$.exports.default=fse;var XWe=k$.exports,nie=yy.default,JWe=KWe,QWe=XWe;function iie(e,r){let n=e.options.env||process.env,i=process.cwd(),a=e.options.cwd!=null,o=a&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let c;try{c=JWe.sync(e.command,{path:n[QWe({env:n})],pathExt:r?nie.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return c&&(c=nie.resolve(a?e.options.cwd:"",c)),c}function ZWe(e){return iie(e)||iie(e,!0)}var eHe=ZWe,F$={},a$=/([()\][%!^"`<>&|;, *?])/g;function tHe(e){return e=e.replace(a$,"^$1"),e}function rHe(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(a$,"^$1"),r&&(e=e.replace(a$,"^$1")),e}F$.command=tHe;F$.argument=rHe;var nHe=/^#!(.*)/,iHe=nHe,sHe=(e="")=>{let r=e.match(iHe);if(!r)return null;let[n,i]=r[0].replace(/#! ?/,"").split(" "),a=n.split("/").pop();return a==="env"?i:i?`${a} ${i}`:a},WF=ch.default,aHe=sHe;function oHe(e){let n=Buffer.alloc(150),i;try{i=WF.openSync(e,"r"),WF.readSync(i,n,0,150,0),WF.closeSync(i)}catch{}return aHe(n.toString())}var cHe=oHe,uHe=yy.default,sie=eHe,aie=F$,lHe=cHe,fHe=process.platform==="win32",pHe=/\.(?:com|exe)$/i,dHe=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function hHe(e){e.file=sie(e);let r=e.file&&lHe(e.file);return r?(e.args.unshift(e.file),e.command=r,sie(e)):e.file}function mHe(e){if(!fHe)return e;let r=hHe(e),n=!pHe.test(r);if(e.options.forceShell||n){let i=dHe.test(r);e.command=uHe.normalize(e.command),e.command=aie.command(e.command),e.args=e.args.map(o=>aie.argument(o,i));let a=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${a}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function gHe(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let i={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?i:mHe(i)}var vHe=gHe,$$=process.platform==="win32";function L$(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function yHe(e,r){if(!$$)return;let n=e.emit;e.emit=function(i,a){if(i==="exit"){let o=pse(a,r);if(o)return n.call(e,"error",o)}return n.apply(e,arguments)}}function pse(e,r){return $$&&e===1&&!r.file?L$(r.original,"spawn"):null}function bHe(e,r){return $$&&e===1&&!r.file?L$(r.original,"spawnSync"):null}var xHe={hookChildProcess:yHe,verifyENOENT:pse,verifyENOENTSync:bHe,notFoundError:L$},dse=Jie.default,N$=vHe,M$=xHe;function hse(e,r,n){let i=N$(e,r,n),a=dse.spawn(i.command,i.args,i.options);return M$.hookChildProcess(a,i),a}function wHe(e,r,n){let i=N$(e,r,n),a=dse.spawnSync(i.command,i.args,i.options);return a.error=a.error||M$.verifyENOENTSync(a.status,i),a}lh.exports=hse;lh.exports.spawn=hse;lh.exports.sync=wHe;lh.exports._parse=N$;lh.exports._enoent=M$;var _He=lh.exports,EHe=xy(_He);function SHe(e){let r=typeof e=="string"?` -`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function mse(e={}){let{env:r=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(r).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"}function DHe(e={}){let{cwd:r=Kr.default.cwd(),path:n=Kr.default.env[mse()],execPath:i=Kr.default.execPath}=e,a,o=r instanceof URL?by.default.fileURLToPath(r):r,c=Lr.default.resolve(o),u=[];for(;a!==c;)u.push(Lr.default.join(c,"node_modules/.bin")),a=c,c=Lr.default.resolve(c,"..");return u.push(Lr.default.resolve(o,i,"..")),[...u,n].join(Lr.default.delimiter)}function CHe({env:e=Kr.default.env,...r}={}){e={...e};let n=mse({env:e});return r.path=e[n],e[n]=DHe(r),e}var PHe=(e,r,n,i)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let a=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(r,n);!THe(a,o)&&i||Object.defineProperty(e,n,o)},THe=function(e,r){return e===void 0||e.configurable||e.writable===r.writable&&e.enumerable===r.enumerable&&e.configurable===r.configurable&&(e.writable||e.value===r.value)},RHe=(e,r)=>{let n=Object.getPrototypeOf(r);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},AHe=(e,r)=>`/* Wrapped ${e}*/ -${r}`,OHe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),IHe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),kHe=(e,r,n)=>{let i=n===""?"":`with ${n.trim()}() `,a=AHe.bind(null,i,r.toString());Object.defineProperty(a,"name",IHe),Object.defineProperty(e,"toString",{...OHe,value:a})};function FHe(e,r,{ignoreNonConfigurable:n=!1}={}){let{name:i}=e;for(let a of Reflect.ownKeys(r))PHe(e,r,a,n);return RHe(e,r),kHe(e,r,i),e}var uS=new WeakMap,gse=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,i=0,a=e.displayName||e.name||"",o=function(...c){if(uS.set(o,++i),i===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return n};return FHe(o,e),uS.set(o,i),o};gse.callCount=e=>{if(!uS.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return uS.get(e)};var $He=()=>{let e=yse-vse+1;return Array.from({length:e},LHe)},LHe=(e,r)=>({name:`SIGRT${r+1}`,number:vse+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),vse=34,yse=64,NHe=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],bse=()=>{let e=$He();return[...NHe,...e].map(MHe)},MHe=({name:e,number:r,description:n,action:i,forced:a=!1,standard:o})=>{let{signals:{[e]:c}}=uh.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:i,forced:a,standard:o}},qHe=()=>{let e=bse();return Object.fromEntries(e.map(jHe))},jHe=({name:e,number:r,description:n,supported:i,action:a,forced:o,standard:c})=>[e,{name:e,number:r,description:n,supported:i,action:a,forced:o,standard:c}],BHe=qHe(),UHe=()=>{let e=bse(),r=yse+1,n=Array.from({length:r},(i,a)=>GHe(a,e));return Object.assign({},...n)},GHe=(e,r)=>{let n=WHe(e,r);if(n===void 0)return{};let{name:i,description:a,supported:o,action:c,forced:u,standard:l}=n;return{[e]:{name:i,number:e,description:a,supported:o,action:c,forced:u,standard:l}}},WHe=(e,r)=>{let n=r.find(({name:i})=>uh.constants.signals[i]===e);return n!==void 0?n:r.find(i=>i.number===e)};UHe();var HHe=({timedOut:e,timeout:r,errorCode:n,signal:i,signalDescription:a,exitCode:o,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:i!==void 0?`was killed with ${i} (${a})`:o!==void 0?`failed with exit code ${o}`:"failed",oie=({stdout:e,stderr:r,all:n,error:i,signal:a,exitCode:o,command:c,escapedCommand:u,timedOut:l,isCanceled:f,killed:p,parsed:{options:{timeout:g,cwd:v=Kr.default.cwd()}}})=>{o=o===null?void 0:o,a=a===null?void 0:a;let x=a===void 0?void 0:BHe[a].description,E=i&&i.code,P=`Command ${HHe({timedOut:l,timeout:g,errorCode:E,signal:a,signalDescription:x,exitCode:o,isCanceled:f})}: ${c}`,R=Object.prototype.toString.call(i)==="[object Error]",k=R?`${P} -${i.message}`:P,F=[k,r,e].filter(Boolean).join(` -`);return R?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=k,i.command=c,i.escapedCommand=u,i.exitCode=o,i.signal=a,i.signalDescription=x,i.stdout=e,i.stderr=r,i.cwd=v,n!==void 0&&(i.all=n),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=f,i.killed=p&&!l,i},aS=["stdin","stdout","stderr"],zHe=e=>aS.some(r=>e[r]!==void 0),VHe=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return aS.map(i=>e[i]);if(zHe(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aS.map(i=>`\`${i}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let n=Math.max(r.length,aS.length);return Array.from({length:n},(i,a)=>r[a])},th=[];th.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&th.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&th.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var oS=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",HF=Symbol.for("signal-exit emitter"),zF=globalThis,YHe=Object.defineProperty.bind(Object),o$=class{constructor(){Je(this,"emitted",{afterExit:!1,exit:!1});Je(this,"listeners",{afterExit:[],exit:[]});Je(this,"count",0);Je(this,"id",Math.random());if(zF[HF])return zF[HF];YHe(zF,HF,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(r,n){this.listeners[r].push(n)}removeListener(r,n){let i=this.listeners[r],a=i.indexOf(n);a!==-1&&(a===0&&i.length===1?i.length=0:i.splice(a,1))}emit(r,n,i){if(this.emitted[r])return!1;this.emitted[r]=!0;let a=!1;for(let o of this.listeners[r])a=o(n,i)===!0||a;return r==="exit"&&(a=this.emit("afterExit",n,i)||a),a}},lS=class{},KHe=e=>({onExit(r,n){return e.onExit(r,n)},load(){return e.load()},unload(){return e.unload()}}),c$=class extends lS{onExit(){return()=>{}}load(){}unload(){}},dS,Zi,xr,rh,nh,bf,Eu,oh,xse,wse,u$=class extends lS{constructor(n){super();Ee(this,oh);Ee(this,dS,l$.platform==="win32"?"SIGINT":"SIGHUP");Ee(this,Zi,new o$);Ee(this,xr);Ee(this,rh);Ee(this,nh);Ee(this,bf,{});Ee(this,Eu,!1);fe(this,xr,n),fe(this,bf,{});for(let i of th)$(this,bf)[i]=()=>{let a=$(this,xr).listeners(i),{count:o}=$(this,Zi),c=n;if(typeof c.__signal_exit_emitter__=="object"&&typeof c.__signal_exit_emitter__.count=="number"&&(o+=c.__signal_exit_emitter__.count),a.length===o){this.unload();let u=$(this,Zi).emit("exit",null,i),l=i==="SIGHUP"?$(this,dS):i;u||n.kill(n.pid,l)}};fe(this,nh,n.reallyExit),fe(this,rh,n.emit)}onExit(n,i){if(!oS($(this,xr)))return()=>{};$(this,Eu)===!1&&this.load();let a=i?.alwaysLast?"afterExit":"exit";return $(this,Zi).on(a,n),()=>{$(this,Zi).removeListener(a,n),$(this,Zi).listeners.exit.length===0&&$(this,Zi).listeners.afterExit.length===0&&this.unload()}}load(){if(!$(this,Eu)){fe(this,Eu,!0),$(this,Zi).count+=1;for(let n of th)try{let i=$(this,bf)[n];i&&$(this,xr).on(n,i)}catch{}$(this,xr).emit=(n,...i)=>de(this,oh,wse).call(this,n,...i),$(this,xr).reallyExit=n=>de(this,oh,xse).call(this,n)}}unload(){$(this,Eu)&&(fe(this,Eu,!1),th.forEach(n=>{let i=$(this,bf)[n];if(!i)throw new Error("Listener not defined for signal: "+n);try{$(this,xr).removeListener(n,i)}catch{}}),$(this,xr).emit=$(this,rh),$(this,xr).reallyExit=$(this,nh),$(this,Zi).count-=1)}};dS=new WeakMap,Zi=new WeakMap,xr=new WeakMap,rh=new WeakMap,nh=new WeakMap,bf=new WeakMap,Eu=new WeakMap,oh=new WeakSet,xse=function(n){return oS($(this,xr))?($(this,xr).exitCode=n||0,$(this,Zi).emit("exit",$(this,xr).exitCode,null),$(this,nh).call($(this,xr),$(this,xr).exitCode)):0},wse=function(n,...i){let a=$(this,rh);if(n==="exit"&&oS($(this,xr))){typeof i[0]=="number"&&($(this,xr).exitCode=i[0]);let o=a.call($(this,xr),n,...i);return $(this,Zi).emit("exit",$(this,xr).exitCode,null),o}else return a.call($(this,xr),n,...i)};var l$=globalThis.process,{onExit:XHe,load:D5t,unload:C5t}=KHe(oS(l$)?new u$(l$):new c$),JHe=1e3*5,QHe=(e,r="SIGTERM",n={})=>{let i=e(r);return ZHe(e,r,n,i),i},ZHe=(e,r,n,i)=>{if(!eze(r,n,i))return;let a=rze(n),o=setTimeout(()=>{e("SIGKILL")},a);o.unref&&o.unref()},eze=(e,{forceKillAfterTimeout:r},n)=>tze(e)&&r!==!1&&n,tze=e=>e===uh.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",rze=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return JHe;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},nze=(e,r)=>{e.kill()&&(r.isCanceled=!0)},ize=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},sze=(e,{timeout:r,killSignal:n="SIGTERM"},i)=>{if(r===0||r===void 0)return i;let a,o=new Promise((u,l)=>{a=setTimeout(()=>{ize(e,n,l)},r)}),c=i.finally(()=>{clearTimeout(a)});return Promise.race([o,c])},aze=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},oze=async(e,{cleanup:r,detached:n},i)=>{if(!r||n)return i;let a=XHe(()=>{e.kill()});return i.finally(()=>{a()})};function _se(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function cie(e){return _se(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var cze=e=>e instanceof hy.ChildProcess&&typeof e.then=="function",VF=(e,r,n)=>{if(typeof n=="string")return e[r].pipe((0,va.createWriteStream)(n)),e;if(cie(n))return e[r].pipe(n),e;if(!cze(n))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!cie(n.stdin))throw new TypeError("The target child process's stdin must be available.");return e[r].pipe(n.stdin),n},uze=e=>{e.stdout!==null&&(e.pipeStdout=VF.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=VF.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=VF.bind(void 0,e,"all"))},Ese=async(e,{init:r,convertChunk:n,getSize:i,truncateChunk:a,addChunk:o,getFinalChunk:c,finalize:u},{maxBuffer:l=Number.POSITIVE_INFINITY}={})=>{if(!fze(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");let f=r();f.length=0;try{for await(let p of e){let g=pze(p),v=n[g](p,f);Sse({convertedChunk:v,state:f,getSize:i,truncateChunk:a,addChunk:o,maxBuffer:l})}return lze({state:f,convertChunk:n,getSize:i,truncateChunk:a,addChunk:o,getFinalChunk:c,maxBuffer:l}),u(f)}catch(p){throw p.bufferedData=u(f),p}},lze=({state:e,getSize:r,truncateChunk:n,addChunk:i,getFinalChunk:a,maxBuffer:o})=>{let c=a(e);c!==void 0&&Sse({convertedChunk:c,state:e,getSize:r,truncateChunk:n,addChunk:i,maxBuffer:o})},Sse=({convertedChunk:e,state:r,getSize:n,truncateChunk:i,addChunk:a,maxBuffer:o})=>{let c=n(e),u=r.length+c;if(u<=o){uie(e,r,a,u);return}let l=i(e,o-r.length);throw l!==void 0&&uie(l,r,a,o),new f$},uie=(e,r,n,i)=>{r.contents=n(e,r,i),r.length=i},fze=e=>typeof e=="object"&&e!==null&&typeof e[Symbol.asyncIterator]=="function",pze=e=>{let r=typeof e;if(r==="string")return"string";if(r!=="object"||e===null)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";let n=lie.call(e);return n==="[object ArrayBuffer]"?"arrayBuffer":n==="[object DataView]"?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&lie.call(e.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:lie}=Object.prototype,f$=class extends Error{constructor(){super("maxBuffer exceeded");Je(this,"name","MaxBufferError")}},dze=e=>e,hze=()=>{},mze=({contents:e})=>e,Dse=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Cse=e=>e.length;async function gze(e,r){return Ese(e,Dze,r)}var vze=()=>({contents:new ArrayBuffer(0)}),yze=e=>bze.encode(e),bze=new TextEncoder,fie=e=>new Uint8Array(e),pie=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),xze=(e,r)=>e.slice(0,r),wze=(e,{contents:r,length:n},i)=>{let a=Tse()?Eze(r,i):_ze(r,i);return new Uint8Array(a).set(e,n),a},_ze=(e,r)=>{if(r<=e.byteLength)return e;let n=new ArrayBuffer(Pse(r));return new Uint8Array(n).set(new Uint8Array(e),0),n},Eze=(e,r)=>{if(r<=e.maxByteLength)return e.resize(r),e;let n=new ArrayBuffer(r,{maxByteLength:Pse(r)});return new Uint8Array(n).set(new Uint8Array(e),0),n},Pse=e=>die**Math.ceil(Math.log(e)/Math.log(die)),die=2,Sze=({contents:e,length:r})=>Tse()?e:e.slice(0,r),Tse=()=>"resize"in ArrayBuffer.prototype,Dze={init:vze,convertChunk:{string:yze,buffer:fie,arrayBuffer:fie,dataView:pie,typedArray:pie,others:Dse},getSize:Cse,truncateChunk:xze,addChunk:wze,getFinalChunk:hze,finalize:Sze};async function Rse(e,r){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return hie(await gze(e,r))}catch(n){throw n.bufferedData!==void 0&&(n.bufferedData=hie(n.bufferedData)),n}}var hie=e=>globalThis.Buffer.from(e);async function Cze(e,r){return Ese(e,Oze,r)}var Pze=()=>({contents:"",textDecoder:new TextDecoder}),QE=(e,{textDecoder:r})=>r.decode(e,{stream:!0}),Tze=(e,{contents:r})=>r+e,Rze=(e,r)=>e.slice(0,r),Aze=({textDecoder:e})=>{let r=e.decode();return r===""?void 0:r},Oze={init:Pze,convertChunk:{string:dze,buffer:QE,arrayBuffer:QE,dataView:QE,typedArray:QE,others:Dse},getSize:Cse,truncateChunk:Rze,addChunk:Tze,getFinalChunk:Aze,finalize:mze},{PassThrough:Ize}=Zie.default,kze=function(){var e=[],r=new Ize({objectMode:!0});return r.setMaxListeners(0),r.add=n,r.isEmpty=i,r.on("unpipe",a),Array.prototype.slice.call(arguments).forEach(n),r;function n(o){return Array.isArray(o)?(o.forEach(n),this):(e.push(o),o.once("end",a.bind(null,o)),o.once("error",r.emit.bind(r,"error")),o.pipe(r,{end:!1}),this)}function i(){return e.length==0}function a(o){e=e.filter(function(c){return c!==o}),!e.length&&r.readable&&r.end()}},Fze=xy(kze),$ze=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},Lze=({input:e,inputFile:r})=>typeof r!="string"?e:($ze(e),(0,va.createReadStream)(r)),Nze=(e,r)=>{let n=Lze(r);n!==void 0&&(_se(n)?n.pipe(e.stdin):e.stdin.end(n))},Mze=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=Fze();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},YF=async(e,r)=>{if(!(!e||r===void 0)){await(0,Qie.setTimeout)(0),e.destroy();try{return await r}catch(n){return n.bufferedData}}},KF=(e,{encoding:r,buffer:n,maxBuffer:i})=>{if(!(!e||!n))return r==="utf8"||r==="utf-8"?Cze(e,{maxBuffer:i}):r===null||r==="buffer"?Rse(e,{maxBuffer:i}):qze(e,i,r)},qze=async(e,r,n)=>(await Rse(e,{maxBuffer:r})).toString(n),jze=async({stdout:e,stderr:r,all:n},{encoding:i,buffer:a,maxBuffer:o},c)=>{let u=KF(e,{encoding:i,buffer:a,maxBuffer:o}),l=KF(r,{encoding:i,buffer:a,maxBuffer:o}),f=KF(n,{encoding:i,buffer:a,maxBuffer:o*2});try{return await Promise.all([c,u,l,f])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},YF(e,u),YF(r,l),YF(n,f)])}},Bze=(async()=>{})().constructor.prototype,Uze=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Bze,e)]),mie=(e,r)=>{for(let[n,i]of Uze){let a=typeof r=="function"?(...o)=>Reflect.apply(i.value,r(),o):i.value.bind(r);Reflect.defineProperty(e,n,{...i,value:a})}},Gze=e=>new Promise((r,n)=>{e.on("exit",(i,a)=>{r({exitCode:i,signal:a})}),e.on("error",i=>{n(i)}),e.stdin&&e.stdin.on("error",i=>{n(i)})}),Ase=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],Wze=/^[\w.-]+$/,Hze=e=>typeof e!="string"||Wze.test(e)?e:`"${e.replaceAll('"','\\"')}"`,zze=(e,r)=>Ase(e,r).join(" "),Vze=(e,r)=>Ase(e,r).map(n=>Hze(n)).join(" "),Yze=/ +/g,Kze=e=>{let r=[];for(let n of e.trim().split(Yze)){let i=r.at(-1);i&&i.endsWith("\\")?r[r.length-1]=`${i.slice(0,-1)} ${n}`:r.push(n)}return r},Xze=(0,ese.debuglog)("execa").enabled,ZE=(e,r)=>String(e).padStart(r,"0"),Jze=()=>{let e=new Date;return`${ZE(e.getHours(),2)}:${ZE(e.getMinutes(),2)}:${ZE(e.getSeconds(),2)}.${ZE(e.getMilliseconds(),3)}`},Qze=(e,{verbose:r})=>{r&&Kr.default.stderr.write(`[${Jze()}] ${e} -`)},Zze=1e3*1e3*100,eVe=({env:e,extendEnv:r,preferLocal:n,localDir:i,execPath:a})=>{let o=r?{...Kr.default.env,...e}:e;return n?CHe({env:o,cwd:i,execPath:a}):o},tVe=(e,r,n={})=>{let i=EHe._parse(e,r,n);return e=i.command,r=i.args,n=i.options,n={maxBuffer:Zze,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||Kr.default.cwd(),execPath:Kr.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Xze,...n},n.env=eVe(n),n.stdio=VHe(n),Kr.default.platform==="win32"&&Lr.default.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:i}},XF=(e,r,n)=>typeof r!="string"&&!Xie.Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?SHe(r):r;function rVe(e,r,n){let i=tVe(e,r,n),a=zze(e,r),o=Vze(e,r);Qze(o,i.options),aze(i.options);let c;try{c=hy.default.spawn(i.file,i.args,i.options)}catch(x){let E=new hy.default.ChildProcess,D=Promise.reject(oie({error:x,stdout:"",stderr:"",all:"",command:a,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return mie(E,D),E}let u=Gze(c),l=sze(c,i.options,u),f=oze(c,i.options,l),p={isCanceled:!1};c.kill=QHe.bind(null,c.kill.bind(c)),c.cancel=nze.bind(null,c,p);let v=gse(async()=>{let[{error:x,exitCode:E,signal:D,timedOut:P},R,k,F]=await jze(c,i.options,f),L=XF(i.options,R),U=XF(i.options,k),V=XF(i.options,F);if(x||E!==0||D!==null){let j=oie({error:x,exitCode:E,signal:D,stdout:L,stderr:U,all:V,command:a,escapedCommand:o,parsed:i,timedOut:P,isCanceled:i.options.signal?i.options.signal.aborted:!1,killed:c.killed});if(!i.options.reject)return j;throw j}return{command:a,escapedCommand:o,exitCode:0,stdout:L,stderr:U,all:V,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Nze(c,i.options),c.all=Mze(c,i.options),uze(c),mie(c,v),c}function nVe(e,r){let[n,...i]=Kze(e);return rVe(n,i,r)}var p$=class{constructor(r){Je(this,"value");Je(this,"next");this.value=r}},ro,xf,wf,d$=class{constructor(){Ee(this,ro);Ee(this,xf);Ee(this,wf);this.clear()}enqueue(r){let n=new p$(r);$(this,ro)?($(this,xf).next=n,fe(this,xf,n)):(fe(this,ro,n),fe(this,xf,n)),Ic(this,wf)._++}dequeue(){let r=$(this,ro);if(r)return fe(this,ro,$(this,ro).next),Ic(this,wf)._--,r.value}clear(){fe(this,ro,void 0),fe(this,xf,void 0),fe(this,wf,0)}get size(){return $(this,wf)}*[Symbol.iterator](){let r=$(this,ro);for(;r;)yield r.value,r=r.next}};ro=new WeakMap,xf=new WeakMap,wf=new WeakMap;function gie(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let r=new d$,n=0,i=()=>{n--,r.size>0&&r.dequeue()()},a=async(u,l,f)=>{n++;let p=(async()=>u(...f))();l(p);try{await p}catch{}i()},o=(u,l,f)=>{r.enqueue(a.bind(void 0,u,l,f)),(async()=>(await Promise.resolve(),n0&&r.dequeue()()))()},c=(u,...l)=>new Promise(f=>{o(u,f,l)});return Object.defineProperties(c,{activeCount:{get:()=>n},pendingCount:{get:()=>r.size},clearQueue:{value:()=>{r.clear()}}}),c}var fS=class extends Error{constructor(r){super(),this.value=r}},iVe=async(e,r)=>r(await e),sVe=async e=>{let r=await Promise.all(e);if(r[1]===!0)throw new fS(r[0]);return!1};async function aVe(e,r,{concurrency:n=Number.POSITIVE_INFINITY,preserveOrder:i=!0}={}){let a=gie(n),o=[...e].map(u=>[u,a(iVe,u,r)]),c=gie(i?1:Number.POSITIVE_INFINITY);try{await Promise.all(o.map(u=>c(sVe,u)))}catch(u){if(u instanceof fS)return u.value;throw u}}var Ose={directory:"isDirectory",file:"isFile"};function oVe(e){if(!Object.hasOwnProperty.call(Ose,e))throw new Error(`Invalid type specified: ${e}`)}var cVe=(e,r)=>r[Ose[e]](),uVe=e=>e instanceof URL?(0,by.fileURLToPath)(e):e;async function vie(e,{cwd:r=Kr.default.cwd(),type:n="file",allowSymlinks:i=!0,concurrency:a,preserveOrder:o}={}){oVe(n),r=uVe(r);let c=i?va.promises.stat:va.promises.lstat;return aVe(e,async u=>{try{let l=await c(Lr.default.resolve(r,u));return cVe(n,l)}catch{return!1}},{concurrency:a,preserveOrder:o})}var lVe=e=>e instanceof URL?(0,by.fileURLToPath)(e):e,fVe=Symbol("findUpStop");async function pVe(e,r={}){let n=Lr.default.resolve(lVe(r.cwd)||""),{root:i}=Lr.default.parse(n),a=Lr.default.resolve(n,r.stopAt||i),o=r.limit||Number.POSITIVE_INFINITY,c=[e].flat(),u=async f=>{if(typeof e!="function")return vie(c,f);let p=await e(f.cwd);return typeof p=="string"?vie([p],f):p},l=[];for(;;){let f=await u({...r,cwd:n});if(f===fVe||(f&&l.push(Lr.default.resolve(n,f)),n===a||l.length>=o))break;n=Lr.default.dirname(n)}return l}async function yie(e,r={}){return(await pVe(e,{...r,limit:1}))[0]}var Ot="\x1B[",gy="\x1B]",ih="\x07",eS=";",Ise=process.env.TERM_PROGRAM==="Apple_Terminal",ot={};ot.cursorTo=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?Ot+(e+1)+"G":Ot+(r+1)+";"+(e+1)+"H"};ot.cursorMove=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let n="";return e<0?n+=Ot+-e+"D":e>0&&(n+=Ot+e+"C"),r<0?n+=Ot+-r+"A":r>0&&(n+=Ot+r+"B"),n};ot.cursorUp=(e=1)=>Ot+e+"A";ot.cursorDown=(e=1)=>Ot+e+"B";ot.cursorForward=(e=1)=>Ot+e+"C";ot.cursorBackward=(e=1)=>Ot+e+"D";ot.cursorLeft=Ot+"G";ot.cursorSavePosition=Ise?"\x1B7":Ot+"s";ot.cursorRestorePosition=Ise?"\x1B8":Ot+"u";ot.cursorGetPosition=Ot+"6n";ot.cursorNextLine=Ot+"E";ot.cursorPrevLine=Ot+"F";ot.cursorHide=Ot+"?25l";ot.cursorShow=Ot+"?25h";ot.eraseLines=e=>{let r="";for(let n=0;n[gy,"8",eS,eS,r,ih,e,gy,"8",eS,eS,ih].join("");ot.image=(e,r={})=>{let n=`${gy}1337;File=inline=1`;return r.width&&(n+=`;width=${r.width}`),r.height&&(n+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+ih};ot.iTerm={setCwd:(e=process.cwd())=>`${gy}50;CurrentDir=${e}${ih}`,annotation:(e,r={})=>{let n=`${gy}1337;`,i=typeof r.x<"u",a=typeof r.y<"u";if((i||a)&&!(i&&a&&typeof r.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?n+=(i?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):n+=e,n+ih}};var kse=(e,r=process.argv)=>{let n=e.startsWith("-")?"":e.length===1?"-":"--",i=r.indexOf(n+e),a=r.indexOf("--");return i!==-1&&(a===-1||i=2,has16m:e>=3}}function m$(e,r){if(Su===0)return 0;if($s("color=16m")||$s("color=full")||$s("color=truecolor"))return 3;if($s("color=256"))return 2;if(e&&!r&&Su===void 0)return 0;let n=Su||0;if(gn.TERM==="dumb")return n;if(process.platform==="win32"){let i=dVe.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in gn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in gn)||gn.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in gn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gn.TEAMCITY_VERSION)?1:0;if(gn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gn){let i=parseInt((gn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gn.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gn.TERM)||"COLORTERM"in gn?1:n}function hVe(e){let r=m$(e,e&&e.isTTY);return h$(r)}var mVe={supportsColor:hVe,stdout:h$(m$(!0,bie.isatty(1))),stderr:h$(m$(!0,bie.isatty(2)))},gVe=mVe,Jd=kse;function xie(e){if(/^\d{3,4}$/.test(e)){let n=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(n[1],10),patch:parseInt(n[2],10)}}let r=(e||"").split(".").map(n=>parseInt(n,10));return{major:r[0],minor:r[1],patch:r[2]}}function JF(e){let{env:r}=process;if("FORCE_HYPERLINK"in r)return!(r.FORCE_HYPERLINK.length>0&&parseInt(r.FORCE_HYPERLINK,10)===0);if(Jd("no-hyperlink")||Jd("no-hyperlinks")||Jd("hyperlink=false")||Jd("hyperlink=never"))return!1;if(Jd("hyperlink=true")||Jd("hyperlink=always"))return!0;if(!gVe.supportsColor(e)||e&&!e.isTTY||process.platform==="win32")return!1;if("NETLIFY"in r)return!0;if("CI"in r||"TEAMCITY_VERSION"in r)return!1;if("TERM_PROGRAM"in r){let n=xie(r.TERM_PROGRAM_VERSION);switch(r.TERM_PROGRAM){case"iTerm.app":return n.major===3?n.minor>=1:n.major>3}}if("VTE_VERSION"in r){if(r.VTE_VERSION==="0.50.0")return!1;let n=xie(r.VTE_VERSION);return n.major>0||n.minor>=50}return!1}var vVe={supportsHyperlink:JF,stdout:JF(process.stdout),stderr:JF(process.stderr)},q$=xy(vVe);function vy(e,r,{target:n="stdout",...i}={}){return q$[n]?ot.link(e,r):i.fallback===!1?e:typeof i.fallback=="function"?i.fallback(e,r):`${e} (\u200B${r}\u200B)`}vy.isSupported=q$.stdout;vy.stderr=(e,r,n={})=>vy(e,r,{target:"stderr",...n});vy.stderr.isSupported=q$.stderr;var Fse={},g$,$se,Lse,Nse,Mse=!0;typeof process<"u"&&({FORCE_COLOR:g$,NODE_DISABLE_COLORS:$se,NO_COLOR:Lse,TERM:Nse}=process.env||{},Mse=process.stdout&&process.stdout.isTTY);var At={enabled:!$se&&Lse==null&&Nse!=="dumb"&&(g$!=null&&g$!=="0"||Mse),reset:Kt(0,0),bold:Kt(1,22),dim:Kt(2,22),italic:Kt(3,23),underline:Kt(4,24),inverse:Kt(7,27),hidden:Kt(8,28),strikethrough:Kt(9,29),black:Kt(30,39),red:Kt(31,39),green:Kt(32,39),yellow:Kt(33,39),blue:Kt(34,39),magenta:Kt(35,39),cyan:Kt(36,39),white:Kt(37,39),gray:Kt(90,39),grey:Kt(90,39),bgBlack:Kt(40,49),bgRed:Kt(41,49),bgGreen:Kt(42,49),bgYellow:Kt(43,49),bgBlue:Kt(44,49),bgMagenta:Kt(45,49),bgCyan:Kt(46,49),bgWhite:Kt(47,49)};function wie(e,r){let n=0,i,a="",o="";for(;n{if(!(e.meta&&e.name!=="escape")){if(e.ctrl)return e.name==="a"?"first":e.name==="c"||e.name==="d"?"abort":e.name==="e"?"last":e.name==="g"?"reset":e.name==="n"?"down":e.name==="p"?"up":void 0;if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}},j$=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e},v$="\x1B",dr=`${v$}[`,xVe="\x07",y$={to(e,r){return r?`${dr}${r+1};${e+1}H`:`${dr}${e+1}G`},move(e,r){let n="";return e<0?n+=`${dr}${-e}D`:e>0&&(n+=`${dr}${e}C`),r<0?n+=`${dr}${-r}A`:r>0&&(n+=`${dr}${r}B`),n},up:(e=1)=>`${dr}${e}A`,down:(e=1)=>`${dr}${e}B`,forward:(e=1)=>`${dr}${e}C`,backward:(e=1)=>`${dr}${e}D`,nextLine:(e=1)=>`${dr}E`.repeat(e),prevLine:(e=1)=>`${dr}F`.repeat(e),left:`${dr}G`,hide:`${dr}?25l`,show:`${dr}?25h`,save:`${v$}7`,restore:`${v$}8`},wVe={up:(e=1)=>`${dr}S`.repeat(e),down:(e=1)=>`${dr}T`.repeat(e)},_Ve={screen:`${dr}2J`,up:(e=1)=>`${dr}1J`.repeat(e),down:(e=1)=>`${dr}J`.repeat(e),line:`${dr}2K`,lineEnd:`${dr}K`,lineStart:`${dr}1K`,lines(e){let r="";for(let n=0;n[...EVe(e)].length,CVe=function(e,r){if(!r)return _ie.line+SVe.to(0);let n=0,i=e.split(/\r?\n/);for(let a of i)n+=1+Math.floor(Math.max(DVe(a)-1,0)/r);return _ie.lines(n)},py={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},PVe={arrowUp:py.arrowUp,arrowDown:py.arrowDown,arrowLeft:py.arrowLeft,arrowRight:py.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},TVe=process.platform==="win32"?PVe:py,qse=TVe,eh=ya,_f=qse,b$=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1F603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),RVe=e=>b$[e]||b$.default,dy=Object.freeze({aborted:eh.red(_f.cross),done:eh.green(_f.tick),exited:eh.yellow(_f.cross),default:eh.cyan("?")}),AVe=(e,r,n)=>r?dy.aborted:n?dy.exited:e?dy.done:dy.default,OVe=e=>eh.gray(e?_f.ellipsis:_f.pointerSmall),IVe=(e,r)=>eh.gray(e?r?_f.pointerSmall:"+":_f.line),kVe={styles:b$,render:RVe,symbols:dy,symbol:AVe,delimiter:OVe,item:IVe},FVe=j$,$Ve=function(e,r){let n=String(FVe(e)||"").split(/\r?\n/);return r?n.map(i=>Math.ceil(i.length/r)).reduce((i,a)=>i+a):n.length},LVe=(e,r={})=>{let n=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",i=r.width;return(e||"").split(/\r?\n/g).map(a=>a.split(/\s+/g).reduce((o,c)=>(c.length+n.length>=i||o[o.length-1].length+c.length+1{n=n||r;let i=Math.min(r-n,e-Math.floor(n/2));i<0&&(i=0);let a=Math.min(i+n,r);return{startIndex:i,endIndex:a}},no={action:bVe,clear:CVe,style:kVe,strip:j$,figures:qse,lines:$Ve,wrap:LVe,entriesToDisplay:NVe},Eie=nse.default,{action:MVe}=no,qVe=ise.default,{beep:jVe,cursor:BVe}=ba,UVe=ya,GVe=class extends qVe{constructor(r={}){super(),this.firstRender=!0,this.in=r.stdin||process.stdin,this.out=r.stdout||process.stdout,this.onRender=(r.onRender||(()=>{})).bind(this);let n=Eie.createInterface({input:this.in,escapeCodeTimeout:50});Eie.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,a=(o,c)=>{let u=MVe(c,i);u===!1?this._&&this._(o,c):typeof this[u]=="function"?this[u](c):this.bell()};this.close=()=>{this.out.write(BVe.show),this.in.removeListener("keypress",a),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",a)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(jVe)}render(){this.onRender(UVe),this.firstRender&&(this.firstRender=!1)}},Cu=GVe,tS=ya,WVe=Cu,{erase:HVe,cursor:ly}=ba,{style:QF,clear:ZF,lines:zVe,figures:VVe}=no,x$=class extends WVe{constructor(r={}){super(r),this.transform=QF.render(r.style),this.scale=this.transform.scale,this.msg=r.message,this.initial=r.initial||"",this.validator=r.validate||(()=>!0),this.value="",this.errorMsg=r.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=ZF("",this.out.columns),this.render()}set value(r){!r&&this.initial?(this.placeholder=!0,this.rendered=tS.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(r)),this._value=r,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(r){this.placeholder||(this.cursor=this.cursor+r,this.cursorOffset+=r)}_(r,n){let i=this.value.slice(0,this.cursor),a=this.value.slice(this.cursor);this.value=`${i}${r}${a}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let r=this.value.slice(0,this.cursor-1),n=this.value.slice(this.cursor);this.value=`${r}${n}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let r=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor+1);this.value=`${r}${n}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(ly.down(zVe(this.outputError,this.out.columns)-1)+ZF(this.outputError,this.out.columns)),this.out.write(ZF(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[QF.symbol(this.done,this.aborted),tS.bold(this.msg),QF.delimiter(this.done),this.red?tS.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":VVe.pointerSmall} ${tS.red().italic(n)}`,"")),this.out.write(HVe.line+ly.to(0)+this.outputText+ly.save+this.outputError+ly.restore+ly.move(this.cursorOffset,0)))}},YVe=x$,Xo=ya,KVe=Cu,{style:Sie,clear:Die,figures:rS,wrap:XVe,entriesToDisplay:JVe}=no,{cursor:QVe}=ba,w$=class extends KVe{constructor(r={}){super(r),this.msg=r.message,this.hint=r.hint||"- Use arrow-keys. Return to submit.",this.warn=r.warn||"- This option is disabled",this.cursor=r.initial||0,this.choices=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),value:n&&(n.value===void 0?i:n.value),description:n&&n.description,selected:n&&n.selected,disabled:n&&n.disabled})),this.optionsPerPage=r.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Die("",this.out.columns),this.render()}moveCursor(r){this.cursor=r,this.value=this.choices[r].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(r,n){if(r===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(QVe.hide):this.out.write(Die(this.outputText,this.out.columns)),super.render();let{startIndex:r,endIndex:n}=JVe(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Sie.symbol(this.done,this.aborted),Xo.bold(this.msg),Sie.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Xo.yellow(this.warn):Xo.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let i=r;i0?o=rS.arrowUp:i===n-1&&n=this.out.columns||u.description.split(/\r?\n/).length>1)&&(c=` -`+XVe(u.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${a}${Xo.gray(c)} -`}}this.out.write(this.outputText)}},ZVe=w$,nS=ya,eYe=Cu,{style:Cie,clear:tYe}=no,{cursor:Pie,erase:rYe}=ba,_$=class extends eYe{constructor(r={}){super(r),this.msg=r.message,this.value=!!r.initial,this.active=r.active||"on",this.inactive=r.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(r,n){if(r===" ")this.value=!this.value;else if(r==="1")this.value=!0;else if(r==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Pie.hide):this.out.write(tYe(this.outputText,this.out.columns)),super.render(),this.outputText=[Cie.symbol(this.done,this.aborted),nS.bold(this.msg),Cie.delimiter(this.done),this.value?this.inactive:nS.cyan().underline(this.inactive),nS.gray("/"),this.value?nS.cyan().underline(this.active):this.active].join(" "),this.out.write(rYe.line+Pie.to(0)+this.outputText))}},nYe=_$,iYe=class E${constructor({token:r,date:n,parts:i,locales:a}){this.token=r,this.date=n||new Date,this.parts=i||[this],this.locales=a||{}}up(){}down(){}next(){let r=this.parts.indexOf(this);return this.parts.find((n,i)=>i>r&&n instanceof E$)}setTo(r){}prev(){let r=[].concat(this.parts).reverse(),n=r.indexOf(this);return r.find((i,a)=>a>n&&i instanceof E$)}toString(){return String(this.date)}},Zo=iYe,sYe=Zo,aYe=class extends sYe{constructor(r={}){super(r)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let r=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?r.toUpperCase():r}},oYe=aYe,cYe=Zo,uYe=e=>(e=e%10,e===1?"st":e===2?"nd":e===3?"rd":"th"),lYe=class extends cYe{constructor(r={}){super(r)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(r){this.date.setDate(parseInt(r.substr(-2)))}toString(){let r=this.date.getDate(),n=this.date.getDay();return this.token==="DD"?String(r).padStart(2,"0"):this.token==="Do"?r+uYe(r):this.token==="d"?n+1:this.token==="ddd"?this.locales.weekdaysShort[n]:this.token==="dddd"?this.locales.weekdays[n]:r}},fYe=lYe,pYe=Zo,dYe=class extends pYe{constructor(r={}){super(r)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(r){this.date.setHours(parseInt(r.substr(-2)))}toString(){let r=this.date.getHours();return/h/.test(this.token)&&(r=r%12||12),this.token.length>1?String(r).padStart(2,"0"):r}},hYe=dYe,mYe=Zo,gYe=class extends mYe{constructor(r={}){super(r)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(r){this.date.setMilliseconds(parseInt(r.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}},vYe=gYe,yYe=Zo,bYe=class extends yYe{constructor(r={}){super(r)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(r){this.date.setMinutes(parseInt(r.substr(-2)))}toString(){let r=this.date.getMinutes();return this.token.length>1?String(r).padStart(2,"0"):r}},xYe=bYe,wYe=Zo,_Ye=class extends wYe{constructor(r={}){super(r)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(r){r=parseInt(r.substr(-2))-1,this.date.setMonth(r<0?0:r)}toString(){let r=this.date.getMonth(),n=this.token.length;return n===2?String(r+1).padStart(2,"0"):n===3?this.locales.monthsShort[r]:n===4?this.locales.months[r]:String(r+1)}},EYe=_Ye,SYe=Zo,DYe=class extends SYe{constructor(r={}){super(r)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(r){this.date.setSeconds(parseInt(r.substr(-2)))}toString(){let r=this.date.getSeconds();return this.token.length>1?String(r).padStart(2,"0"):r}},CYe=DYe,PYe=Zo,TYe=class extends PYe{constructor(r={}){super(r)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(r){this.date.setFullYear(r.substr(-4))}toString(){let r=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?r.substr(-2):r}},RYe=TYe,AYe={DatePart:Zo,Meridiem:oYe,Day:fYe,Hours:hYe,Milliseconds:vYe,Minutes:xYe,Month:EYe,Seconds:CYe,Year:RYe},e$=ya,OYe=Cu,{style:Tie,clear:Rie,figures:IYe}=no,{erase:kYe,cursor:Aie}=ba,{DatePart:Oie,Meridiem:FYe,Day:$Ye,Hours:LYe,Milliseconds:NYe,Minutes:MYe,Month:qYe,Seconds:jYe,Year:BYe}=AYe,UYe=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,Iie={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new $Ye(e),3:e=>new qYe(e),4:e=>new BYe(e),5:e=>new FYe(e),6:e=>new LYe(e),7:e=>new MYe(e),8:e=>new jYe(e),9:e=>new NYe(e)},GYe={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},S$=class extends OYe{constructor(r={}){super(r),this.msg=r.message,this.cursor=0,this.typed="",this.locales=Object.assign(GYe,r.locales),this._date=r.initial||new Date,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.mask=r.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Rie("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(r){r&&this._date.setTime(r.getTime())}set mask(r){let n;for(this.parts=[];n=UYe.exec(r);){let a=n.shift(),o=n.findIndex(c=>c!=null);this.parts.push(o in Iie?Iie[o]({token:n[o]||a,date:this.date,parts:this.parts,locales:this.locales}):n[o]||a)}let i=this.parts.reduce((a,o)=>(typeof o=="string"&&typeof a[a.length-1]=="string"?a[a.length-1]+=o:a.push(o),a),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(r){this.typed="",this.cursor=r,this.fire()}reset(){this.moveCursor(this.parts.findIndex(r=>r instanceof Oie)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let r=this.parts[this.cursor].prev();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}right(){let r=this.parts[this.cursor].next();if(r==null)return this.bell();this.moveCursor(this.parts.indexOf(r)),this.render()}next(){let r=this.parts[this.cursor].next();this.moveCursor(r?this.parts.indexOf(r):this.parts.findIndex(n=>n instanceof Oie)),this.render()}_(r){/\d/.test(r)&&(this.typed+=r,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Aie.hide):this.out.write(Rie(this.outputText,this.out.columns)),super.render(),this.outputText=[Tie.symbol(this.done,this.aborted),e$.bold(this.msg),Tie.delimiter(!1),this.parts.reduce((r,n,i)=>r.concat(i===this.cursor&&!this.done?e$.cyan().underline(n.toString()):n),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` -`).reduce((r,n,i)=>r+` -${i?" ":IYe.pointerSmall} ${e$.red().italic(n)}`,"")),this.out.write(kYe.line+Aie.to(0)+this.outputText))}},WYe=S$,iS=ya,HYe=Cu,{cursor:sS,erase:zYe}=ba,{style:t$,figures:VYe,clear:kie,lines:YYe}=no,KYe=/[0-9]/,r$=e=>e!==void 0,Fie=(e,r)=>{let n=Math.pow(10,r);return Math.round(e*n)/n},D$=class extends HYe{constructor(r={}){super(r),this.transform=t$.render(r.style),this.msg=r.message,this.initial=r$(r.initial)?r.initial:"",this.float=!!r.float,this.round=r.round||2,this.inc=r.increment||1,this.min=r$(r.min)?r.min:-1/0,this.max=r$(r.max)?r.max:1/0,this.errorMsg=r.error||"Please Enter A Valid Value",this.validator=r.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(r){!r&&r!==0?(this.placeholder=!0,this.rendered=iS.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Fie(r,this.round)}`),this._value=Fie(r,this.round)),this.fire()}get value(){return this._value}parse(r){return this.float?parseFloat(r):parseInt(r)}valid(r){return r==="-"||r==="."&&this.float||KYe.test(r)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let r=this.value;this.value=r!==""?r:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let r=await this.validator(this.value);typeof r=="string"&&(this.errorMsg=r,r=!1),this.error=!r}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let r=this.value;this.value=r!==""?r:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let r=this.value.toString();if(r.length===0)return this.bell();this.value=this.parse(r=r.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=r,this.lastHit=i,this.color="cyan",r===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuer+` -${i?" ":VYe.pointerSmall} ${iS.red().italic(n)}`,"")),this.out.write(zYe.line+sS.to(0)+this.outputText+sS.save+this.outputError+sS.restore))}},XYe=D$,to=ya,{cursor:JYe}=ba,QYe=Cu,{clear:$ie,figures:_u,style:Lie,wrap:ZYe,entriesToDisplay:eKe}=no,tKe=class extends QYe{constructor(r={}){super(r),this.msg=r.message,this.cursor=r.cursor||0,this.scrollIndex=r.cursor||0,this.hint=r.hint||"",this.warn=r.warn||"- This option is disabled -",this.minSelected=r.min,this.showMinError=!1,this.maxChoices=r.max,this.instructions=r.instructions,this.optionsPerPage=r.optionsPerPage||10,this.value=r.choices.map((n,i)=>(typeof n=="string"&&(n={title:n,value:i}),{title:n&&(n.title||n.value||n),description:n&&n.description,value:n&&(n.value===void 0?i:n.value),selected:n&&n.selected,disabled:n&&n.disabled})),this.clear=$ie("",this.out.columns),r.overrideRender||this.render()}reset(){this.value.map(r=>!r.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(r=>r.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let r=this.value.filter(n=>n.selected);this.minSelected&&r.lengthr.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let r=this.value[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let r=!this.value[this.cursor].selected;this.value.filter(n=>!n.disabled).forEach(n=>n.selected=r),this.render()}_(r,n){if(r===" ")this.handleSpaceToggle();else if(r==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${_u.arrowUp}/${_u.arrowDown}: Highlight option - ${_u.arrowLeft}/${_u.arrowRight}/[space]: Toggle selection -`+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer":""}renderOption(r,n,i,a){let o=(n.selected?to.green(_u.radioOn):_u.radioOff)+" "+a+" ",c,u;return n.disabled?c=r===i?to.gray().underline(n.title):to.strikethrough().gray(n.title):(c=r===i?to.cyan().underline(n.title):n.title,r===i&&n.description&&(u=` - ${n.description}`,(o.length+c.length+u.length>=this.out.columns||n.description.split(/\r?\n/).length>1)&&(u=` -`+ZYe(n.description,{margin:o.length,width:this.out.columns})))),o+c+to.gray(u||"")}paginateOptions(r){if(r.length===0)return to.red("No matches for this query.");let{startIndex:n,endIndex:i}=eKe(this.cursor,r.length,this.optionsPerPage),a,o=[];for(let c=n;c0?a=_u.arrowUp:c===i-1&&in.selected).map(n=>n.title).join(", ");let r=[to.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&r.push(to.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(JYe.hide),super.render();let r=[Lie.symbol(this.done,this.aborted),to.bold(this.msg),Lie.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=to.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.value),this.out.write(this.clear+r),this.clear=$ie(r,this.out.columns)}},jse=tKe,fy=ya,rKe=Cu,{erase:nKe,cursor:Nie}=ba,{style:n$,clear:Mie,figures:i$,wrap:iKe,entriesToDisplay:sKe}=no,qie=(e,r)=>e[r]&&(e[r].value||e[r].title||e[r]),aKe=(e,r)=>e[r]&&(e[r].title||e[r].value||e[r]),oKe=(e,r)=>{let n=e.findIndex(i=>i.value===r||i.title===r);return n>-1?n:void 0},C$=class extends rKe{constructor(r={}){super(r),this.msg=r.message,this.suggest=r.suggest,this.choices=r.choices,this.initial=typeof r.initial=="number"?r.initial:oKe(r.choices,r.initial),this.select=this.initial||r.cursor||0,this.i18n={noMatches:r.noMatches||"no matches found"},this.fallback=r.fallback||this.initial,this.clearFirst=r.clearFirst||!1,this.suggestions=[],this.input="",this.limit=r.limit||10,this.cursor=0,this.transform=n$.render(r.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Mie("",this.out.columns),this.complete(this.render),this.render()}set fallback(r){this._fb=Number.isSafeInteger(parseInt(r))?parseInt(r):r}get fallback(){let r;return typeof this._fb=="number"?r=this.choices[this._fb]:typeof this._fb=="string"&&(r={title:this._fb}),r||this._fb||{title:this.i18n.noMatches}}moveSelect(r){this.select=r,this.suggestions.length>0?this.value=qie(this.suggestions,r):this.value=this.fallback.value,this.fire()}async complete(r){let n=this.completing=this.suggest(this.input,this.choices),i=await n;if(this.completing!==n)return;this.suggestions=i.map((o,c,u)=>({title:aKe(u,c),value:qie(u,c),description:o.description})),this.completing=!1;let a=Math.max(i.length-1,0);this.moveSelect(Math.min(a,this.select)),r&&r()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){let i=this.input.slice(0,this.cursor),a=this.input.slice(this.cursor);this.input=`${i}${r}${a}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let r=this.input.slice(0,this.cursor-1),n=this.input.slice(this.cursor);this.input=`${r}${n}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let r=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor+1);this.input=`${r}${n}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(r,n,i,a){let o,c=i?i$.arrowUp:a?i$.arrowDown:" ",u=n?fy.cyan().underline(r.title):r.title;return c=(n?fy.cyan(i$.pointer)+" ":" ")+c,r.description&&(o=` - ${r.description}`,(c.length+u.length+o.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(o=` -`+iKe(r.description,{margin:3,width:this.out.columns}))),c+" "+u+fy.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Nie.hide):this.out.write(Mie(this.outputText,this.out.columns)),super.render();let{startIndex:r,endIndex:n}=sKe(this.select,this.choices.length,this.limit);if(this.outputText=[n$.symbol(this.done,this.aborted,this.exited),fy.bold(this.msg),n$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(r,n).map((a,o)=>this.renderOption(a,this.select===o+r,o===0&&r>0,o+r===n-1&&nr.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let r=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let n=this.filteredOptions.findIndex(i=>i===r);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){let r=this.filteredOptions[this.cursor];if(r.selected)r.selected=!1,this.render();else{if(r.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();r.selected=!0,this.render()}}handleInputChange(r){this.inputValue=this.inputValue+r,this.updateFilteredOptions()}_(r,n){r===" "?this.handleSpaceToggle():this.handleInputChange(r)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` -Instructions: - ${Qd.arrowUp}/${Qd.arrowDown}: Highlight option - ${Qd.arrowLeft}/${Qd.arrowRight}/[space]: Toggle selection - [a,b,c]/delete: Filter choices - enter/return: Complete answer -`:""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:Jo.gray("Enter something to filter")} -`}renderOption(r,n,i,a){let o=(n.selected?Jo.green(Qd.radioOn):Qd.radioOff)+" "+a+" ",c;return n.disabled?c=r===i?Jo.gray().underline(n.title):Jo.strikethrough().gray(n.title):c=r===i?Jo.cyan().underline(n.title):n.title,o+c}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");let r=[Jo.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&r.push(Jo.yellow(this.warn)),r.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(uKe.hide),super.render();let r=[Bie.symbol(this.done,this.aborted),Jo.bold(this.msg),Bie.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(r+=Jo.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),r+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+r),this.clear=jie(r,this.out.columns)}},fKe=P$,Uie=ya,pKe=Cu,{style:Gie,clear:dKe}=no,{erase:hKe,cursor:Wie}=ba,T$=class extends pKe{constructor(r={}){super(r),this.msg=r.message,this.value=r.initial,this.initialValue=!!r.initial,this.yesMsg=r.yes||"yes",this.yesOption=r.yesOption||"(Y/n)",this.noMsg=r.no||"no",this.noOption=r.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(r,n){return r.toLowerCase()==="y"?(this.value=!0,this.submit()):r.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Wie.hide):this.out.write(dKe(this.outputText,this.out.columns)),super.render(),this.outputText=[Gie.symbol(this.done,this.aborted),Uie.bold(this.msg),Gie.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Uie.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(hKe.line+Wie.to(0)+this.outputText))}},mKe=T$,gKe={TextPrompt:YVe,SelectPrompt:ZVe,TogglePrompt:nYe,DatePrompt:WYe,NumberPrompt:XYe,MultiselectPrompt:jse,AutocompletePrompt:cKe,AutocompleteMultiselectPrompt:fKe,ConfirmPrompt:mKe};(function(e){let r=e,n=gKe,i=c=>c;function a(c,u,l={}){return new Promise((f,p)=>{let g=new n[c](u),v=l.onAbort||i,x=l.onSubmit||i,E=l.onExit||i;g.on("state",u.onState||i),g.on("submit",D=>f(x(D))),g.on("exit",D=>f(E(D))),g.on("abort",D=>p(v(D)))})}r.text=c=>a("TextPrompt",c),r.password=c=>(c.style="password",r.text(c)),r.invisible=c=>(c.style="invisible",r.text(c)),r.number=c=>a("NumberPrompt",c),r.date=c=>a("DatePrompt",c),r.confirm=c=>a("ConfirmPrompt",c),r.list=c=>{let u=c.separator||",";return a("TextPrompt",c,{onSubmit:l=>l.split(u).map(f=>f.trim())})},r.toggle=c=>a("TogglePrompt",c),r.select=c=>a("SelectPrompt",c),r.multiselect=c=>{c.choices=[].concat(c.choices||[]);let u=l=>l.filter(f=>f.selected).map(f=>f.value);return a("MultiselectPrompt",c,{onAbort:u,onSubmit:u})},r.autocompleteMultiselect=c=>{c.choices=[].concat(c.choices||[]);let u=l=>l.filter(f=>f.selected).map(f=>f.value);return a("AutocompleteMultiselectPrompt",c,{onAbort:u,onSubmit:u})};let o=(c,u)=>Promise.resolve(u.filter(l=>l.title.slice(0,c.length).toLowerCase()===c.toLowerCase()));r.autocomplete=c=>(c.suggest=c.suggest||o,c.choices=[].concat(c.choices||[]),a("AutocompletePrompt",c))})(Fse);var R$=Fse,vKe=["suggest","format","onState","validate","onRender","type"],Hie=()=>{};async function Du(e=[],{onSubmit:r=Hie,onCancel:n=Hie}={}){let i={},a=Du._override||{};e=[].concat(e);let o,c,u,l,f,p,g=async(v,x,E=!1)=>{if(!(!E&&v.validate&&v.validate(x)!==!0))return v.format?await v.format(x,i):x};for(c of e)if({name:l,type:f}=c,typeof f=="function"&&(f=await f(o,{...i},c),c.type=f),!!f){for(let v in c){if(vKe.includes(v))continue;let x=c[v];c[v]=typeof x=="function"?await x(o,{...i},p):x}if(p=c,typeof c.message!="string")throw new Error("prompt message is required");if({name:l,type:f}=c,R$[f]===void 0)throw new Error(`prompt type (${f}) is not defined`);if(a[c.name]!==void 0&&(o=await g(c,a[c.name]),o!==void 0)){i[l]=o;continue}try{o=Du._injected?yKe(Du._injected,c.initial):await R$[f](c),i[l]=o=await g(c,o,!0),u=await r(c,o,i)}catch{u=!await n(c,i)}if(u)return i}return i}function yKe(e,r){let n=e.shift();if(n instanceof Error)throw n;return n===void 0?r:n}function bKe(e){Du._injected=(Du._injected||[]).concat(e)}function xKe(e){Du._override=Object.assign({},e)}var wKe=Object.assign(Du,{prompt:Du,prompts:R$,inject:bKe,override:xKe}),_Ke=wKe,EKe=xy(_Ke),Bse={},sh={};Object.defineProperty(sh,"__esModule",{value:!0});sh.sync=sh.isexe=void 0;var SKe=ch.default,DKe=O$.default,CKe=async(e,r={})=>{let{ignoreErrors:n=!1}=r;try{return Use(await(0,DKe.stat)(e),r)}catch(i){let a=i;if(n||a.code==="EACCES")return!1;throw a}};sh.isexe=CKe;var PKe=(e,r={})=>{let{ignoreErrors:n=!1}=r;try{return Use((0,SKe.statSync)(e),r)}catch(i){let a=i;if(n||a.code==="EACCES")return!1;throw a}};sh.sync=PKe;var Use=(e,r)=>e.isFile()&&TKe(e,r),TKe=(e,r)=>{let n=r.uid??process.getuid?.(),i=r.groups??process.getgroups?.()??[],a=r.gid??process.getgid?.()??i[0];if(n===void 0||a===void 0)throw new Error("cannot get uid or gid");let o=new Set([a,...i]),c=e.mode,u=e.uid,l=e.gid,f=parseInt("100",8),p=parseInt("010",8),g=parseInt("001",8),v=f|p;return!!(c&g||c&p&&o.has(l)||c&f&&u===n||c&v&&n===0)},ah={};Object.defineProperty(ah,"__esModule",{value:!0});ah.sync=ah.isexe=void 0;var RKe=ch.default,AKe=O$.default,OKe=async(e,r={})=>{let{ignoreErrors:n=!1}=r;try{return Gse(await(0,AKe.stat)(e),e,r)}catch(i){let a=i;if(n||a.code==="EACCES")return!1;throw a}};ah.isexe=OKe;var IKe=(e,r={})=>{let{ignoreErrors:n=!1}=r;try{return Gse((0,RKe.statSync)(e),e,r)}catch(i){let a=i;if(n||a.code==="EACCES")return!1;throw a}};ah.sync=IKe;var kKe=(e,r)=>{let{pathExt:n=process.env.PATHEXT||""}=r,i=n.split(";");if(i.indexOf("")!==-1)return!0;for(let a=0;ae.isFile()&&kKe(r,n),Wse={};Object.defineProperty(Wse,"__esModule",{value:!0});(function(e){var r=Qo&&Qo.__createBinding||(Object.create?function(f,p,g,v){v===void 0&&(v=g);var x=Object.getOwnPropertyDescriptor(p,g);(!x||("get"in x?!p.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(f,v,x)}:function(f,p,g,v){v===void 0&&(v=g),f[v]=p[g]}),n=Qo&&Qo.__setModuleDefault||(Object.create?function(f,p){Object.defineProperty(f,"default",{enumerable:!0,value:p})}:function(f,p){f.default=p}),i=Qo&&Qo.__importStar||function(f){if(f&&f.__esModule)return f;var p={};if(f!=null)for(var g in f)g!=="default"&&Object.prototype.hasOwnProperty.call(f,g)&&r(p,f,g);return n(p,f),p},a=Qo&&Qo.__exportStar||function(f,p){for(var g in f)g!=="default"&&!Object.prototype.hasOwnProperty.call(p,g)&&r(p,f,g)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;let o=i(sh);e.posix=o;let c=i(ah);e.win32=c,a(Wse,e);let l=(process.env._ISEXE_TEST_PLATFORM_||process.platform)==="win32"?c:o;e.isexe=l.isexe,e.sync=l.sync})(Bse);var{isexe:FKe,sync:$Ke}=Bse,{join:LKe,delimiter:NKe,sep:zie,posix:Vie}=yy.default,Yie=process.platform==="win32",Hse=new RegExp(`[${Vie.sep}${zie===Vie.sep?"":zie}]`.replace(/(\\)/g,"\\$1")),MKe=new RegExp(`^\\.${Hse.source}`),zse=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Vse=(e,{path:r=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:i=NKe})=>{let a=e.match(Hse)?[""]:[...Yie?[process.cwd()]:[],...(r||"").split(i)];if(Yie){let o=n||[".EXE",".CMD",".BAT",".COM"].join(i),c=o.split(i).flatMap(u=>[u,u.toLowerCase()]);return e.includes(".")&&c[0]!==""&&c.unshift(""),{pathEnv:a,pathExt:c,pathExtExe:o}}return{pathEnv:a,pathExt:[""]}},Yse=(e,r)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&MKe.test(r)?r.slice(0,2):"")+LKe(n,r)},Kse=async(e,r={})=>{let{pathEnv:n,pathExt:i,pathExtExe:a}=Vse(e,r),o=[];for(let c of n){let u=Yse(c,e);for(let l of i){let f=u+l;if(await FKe(f,{pathExt:a,ignoreErrors:!0})){if(!r.all)return f;o.push(f)}}}if(r.all&&o.length)return o;if(r.nothrow)return null;throw zse(e)},qKe=(e,r={})=>{let{pathEnv:n,pathExt:i,pathExtExe:a}=Vse(e,r),o=[];for(let c of n){let u=Yse(c,e);for(let l of i){let f=u+l;if($Ke(f,{pathExt:a,ignoreErrors:!0})){if(!r.all)return f;o.push(f)}}}if(r.all&&o.length)return o;if(r.nothrow)return null;throw zse(e)},jKe=Kse;Kse.sync=qKe;var BKe=xy(jKe),UKe=(0,Lr.join)(uh.default.tmpdir(),"antfu-ni");function Xse(e){return BKe.sync(e,{nothrow:!0})!==null}async function wy({autoInstall:e,programmatic:r,cwd:n}={}){let i=null,a=null,o=await yie(Object.keys(s$),{cwd:n}),c;if(o?c=Lr.default.resolve(o,"../package.json"):c=await yie("package.json",{cwd:n}),c&&va.default.existsSync(c))try{let u=JSON.parse(va.default.readFileSync(c,"utf8"));if(typeof u.packageManager=="string"){let[l,f]=u.packageManager.replace(/^\^/,"").split("@");a=f,l==="yarn"&&Number.parseInt(f)>1?(i="yarn@berry",a="berry"):l==="pnpm"&&Number.parseInt(f)<7?i="pnpm@6":l in my?i=l:r||console.warn("[ni] Unknown packageManager:",u.packageManager)}}catch{}if(!i&&o&&(i=s$[Lr.default.basename(o)]),i&&!Xse(i.split("@")[0])&&!r){if(!e){console.warn(`[ni] Detected ${i} but it doesn't seem to be installed. -`),Kr.default.env.CI&&Kr.default.exit(1);let u=vy(i,sse[i]),{tryInstall:l}=await EKe({name:"tryInstall",type:"confirm",message:`Would you like to globally install ${u}?`});l||Kr.default.exit(1)}await nVe(`npm i -g ${i.split("@")[0]}${a?`@${a}`:""}`,{stdio:"inherit",cwd:n})}return i}var N5t=Kr.default.env.NI_CONFIG_FILE,GKe=Kr.default.platform==="win32"?Kr.default.env.USERPROFILE:Kr.default.env.HOME,M5t=Lr.default.join(GKe||"~/",".nirc");var pS=class extends Error{constructor({agent:r,command:n}){super(`Command "${n}" is not support by agent "${r}"`)}};function B$(e,r,n=[]){if(!(e in my))throw new Error(`Unsupported agent "${e}"`);let i=my[e][r];if(typeof i=="function")return i(n);if(!i)throw new pS({agent:e,command:r});let a=o=>!o.startsWith("--")&&o.includes(" ")?JSON.stringify(o):o;return i.replace("{0}",n.map(a).join(" ")).trim()}var A$,Jse,Qse,Zse,eae=!0;typeof process<"u"&&({FORCE_COLOR:A$,NODE_DISABLE_COLORS:Jse,NO_COLOR:Qse,TERM:Zse}=process.env||{},eae=process.stdout&&process.stdout.isTTY);var Mt={enabled:!Jse&&Qse==null&&Zse!=="dumb"&&(A$!=null&&A$!=="0"||eae),reset:Xt(0,0),bold:Xt(1,22),dim:Xt(2,22),italic:Xt(3,23),underline:Xt(4,24),inverse:Xt(7,27),hidden:Xt(8,28),strikethrough:Xt(9,29),black:Xt(30,39),red:Xt(31,39),green:Xt(32,39),yellow:Xt(33,39),blue:Xt(34,39),magenta:Xt(35,39),cyan:Xt(36,39),white:Xt(37,39),gray:Xt(90,39),grey:Xt(90,39),bgBlack:Xt(40,49),bgRed:Xt(41,49),bgGreen:Xt(42,49),bgYellow:Xt(43,49),bgBlue:Xt(44,49),bgMagenta:Xt(45,49),bgCyan:Xt(46,49),bgWhite:Xt(47,49)};function Kie(e,r){let n=0,i,a="",o="";for(;nmn(r.provider)==="prisma-client-js")?.previewFeatures||[]}var sae={string:[/\"(.*)\"/g,/\'(.*)\'/g],directive:{pattern:/(@.*)/g},entity:[/model\s+\w+/g,/enum\s+\w+/g,/datasource\s+\w+/g,/source\s+\w+/g,/generator\s+\w+/g],comment:/#.*/g,value:[/\b\s+(\w+)/g],punctuation:/(\:|}|{|"|=)/g,boolean:/(true|false)/g};var aae={keyword:gs,entity:gs,value:e=>N(Jn(e)),punctuation:Jn,directive:gs,function:gs,variable:e=>N(Jn(e)),string:e=>N(te(e)),boolean:ze,number:gs,comment:Sl};var VKe=e=>e,hS={},YKe=0,qe={manual:hS.Prism&&hS.Prism.manual,disableWorkerMessageHandler:hS.Prism&&hS.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof xa){let r=e;return new xa(r.type,qe.util.encode(r.content),r.alias)}else return Array.isArray(e)?e.map(qe.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(X instanceof xa)continue;if(U&&W!=r.length-1){k.lastIndex=q;let ee=k.exec(e);if(!ee)break;var p=ee.index+(L?ee[1].length:0),v=ee.index+ee[0].length,u=W,l=q;for(let Y=r.length;u=l&&(++W,q=l);if(r[W]instanceof xa)continue;f=u-W,X=e.slice(q,l),ee.index-=q}else{k.lastIndex=0;var g=k.exec(X),f=1}if(!g){if(o)break;continue}L&&(V=g[1]?g[1].length:0);var p=g.index+V,g=g[0].slice(V),v=p+g.length,x=X.slice(0,p),E=X.slice(v);let M=[W,f];x&&(++W,q+=x.length,M.push(x));let Q=new xa(D,F?qe.tokenize(g,F):g,j,g,U);if(M.push(Q),E&&M.push(E),Array.prototype.splice.apply(r,M),f!=1&&qe.matchGrammar(e,r,n,W,q,!0,D),o)break}}}},tokenize:function(e,r){let n=[e],i=r.rest;if(i){for(let a in i)r[a]=i[a];delete r.rest}return qe.matchGrammar(e,n,r,0,0,!1),n},hooks:{all:{},add:function(e,r){let n=qe.hooks.all;n[e]=n[e]||[],n[e].push(r)},run:function(e,r){let n=qe.hooks.all[e];if(!(!n||!n.length))for(var i=0,a;a=n[i++];)a(r)}},Token:xa};qe.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};qe.languages.javascript=qe.languages.extend("clike",{"class-name":[qe.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});qe.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;qe.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:qe.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:qe.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:qe.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:qe.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});qe.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:qe.languages.javascript}},string:/[\s\S]+/}}});qe.languages.markup&&qe.languages.markup.tag.addInlined("script","javascript");qe.languages.js=qe.languages.javascript;qe.languages.typescript=qe.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/});qe.languages.ts=qe.languages.typescript;function xa(e,r,n,i,a){this.type=e,this.content=r,this.alias=n,this.length=(i||"").length|0,this.greedy=!!a}xa.stringify=function(e,r){return typeof e=="string"?e:Array.isArray(e)?e.map(function(n){return xa.stringify(n,r)}).join(""):KKe(e.type)(e.content)};function KKe(e){return aae[e]||VKe}function ph(e){return XKe(e,sae)}function XKe(e,r){return qe.tokenize(e,r).map(i=>xa.stringify(i)).join("")}var oae=B(bR());function ke(e){return(0,oae.default)(e,e,{fallback:r=>tt(r)})}var cae=` -You don't have any ${N("datasource")} defined in your ${N("schema.prisma")}. -You can define a datasource like this: - -${N(ph(`datasource db { - provider = "postgresql" - url = env("DB_URL") -}`))} - -More information in our documentation: -${ke("https://pris.ly/d/prisma-schema")} -`;var mS=` -${Jn("info")} You don't have any generators defined in your ${N("schema.prisma")}, so nothing will be generated. -You can define them like this: - -${N(ph(`generator client { - provider = "prisma-client-js" -}`))}`,uae=` -You don't have any ${N("models")} defined in your ${N("schema.prisma")}, so nothing will be generated. -You can define a model like this: - -${N(ph(`model User { - id Int @id @default(autoincrement()) - email String @unique - name String? -}`))} - -More information in our documentation: -${ke("https://pris.ly/d/prisma-schema")} -`,lae=` -You don't have any ${N("models")} defined in your ${N("schema.prisma")}, so nothing will be generated. -You can define a model like this: - -${N(ph(`model User { - id String @id @default(auto()) @map("_id") @db.ObjectId - email String @unique - name String? -}`))} - -More information in our documentation: -${ke("https://pris.ly/d/prisma-schema")} -`;function fae(e,r){return Object.entries(e).reduce((n,[i,a])=>(r.includes(i)&&(n[i]=a),n),{})}function pae(e){if(e&&e.length>0){let r=e.map(n=>`${ze("warn")} ${n}`).join(` -`);console.warn(r)}}var Vae=B(require("fs"));var bS=B(require("path"));var Ns=B(require("path"));function dh(e){return Ns.default.sep===Ns.default.posix.sep?e:e.split(Ns.default.sep).join(Ns.default.posix.sep)}function U$(e,r){if(!Ns.default.isAbsolute(e)||!Ns.default.isAbsolute(r))throw new Error("longestCommonPathPrefix expects absolute paths");process.platform==="win32"&&(e.startsWith("\\\\")||r.startsWith("\\\\"))&&(e=Ns.default.toNamespacedPath(e),r=Ns.default.toNamespacedPath(r));let n=JKe(e.split(Ns.default.sep),r.split(Ns.default.sep)).join(Ns.default.sep);if(n==="")return process.platform==="win32"?void 0:"/";if(!(process.platform==="win32"&&["\\","\\\\?","\\\\."].includes(n)))return process.platform==="win32"&&n.endsWith(":")?n+"\\":n}function JKe(e,r){let n=Math.min(e.length,r.length),i=0;for(;i<=n&&e[i]===r[i];)i++;return e.slice(0,i)}var qae=B(require("fs")),K$=B(require("path"));var Lae=B(require("path")),Nae=B($ae());async function OXe(e,r){let n={preserveSymlinks:!1,...r};return new Promise(i=>{(0,Nae.default)(e,n,(a,o)=>{a&&i(void 0),i(o)})})}async function Df(e,r){let n=await OXe(`${e}/package.json`,r);return n&&Lae.default.dirname(n)}var Mae=me("prisma:generator"),IXe=qae.default.promises.realpath;async function X$(e){let r={basedir:e,preserveSymlinks:!0},n=await Df("prisma",r),i=await Df("@prisma/client",r),a=i&&await IXe(i);if(Mae("prismaCLIDir",n),Mae("prismaClientDir",i),n===void 0||i===void 0)return a;let o=K$.default.relative(n,i).split(K$.default.sep);if(!(o[0]!==".."||o[1]===".."))return a}var jae=B(Pl());async function J$(e,r,...n){await jae.default.command(await ec(e,r,...n),{env:{PRISMA_SKIP_POSTINSTALL_GENERATE:"true"},stdio:"inherit",cwd:e})}var Bae=B(require("fs"));var Uae=B(require("path"));function yS(e,r){let[n,i,a]=e.split(".").map(Number),[o,c,u]=r.split(".").map(Number);return no?!1:ic?!1:au,!1)}var kXe=me("prisma:generator");async function Gae(){let e="4.1.0";try{let r=await Df("typescript",{basedir:process.cwd()});kXe("typescriptPath",r);let n=r&&Uae.default.join(r,"package.json");if(n&&Bae.default.existsSync(n)){let a=require(n).version;yS(a,e)&&fr.warn(`Prisma detected that your ${N("TypeScript")} version ${a} is outdated. If you want to use Prisma Client with TypeScript please update it to version ${N(e)} or ${N("newer")}. ${J(`TypeScript found in: ${N(r)}`)}`)}}catch{}}function Wae(){if(process.env.npm_config_user_agent){let e=FXe(process.env.npm_config_user_agent);if(e){let{agent:r,major:n,minor:i,patch:a}=e;if(r==="yarn"&&n===1){let o=`${n}.${i}.${a}`,c="1.19.2";yS(o,c)&&fr.warn(`Your ${N("yarn")} has version ${o}, which is outdated. Please update it to ${N(c)} or ${N("newer")} in order to use Prisma.`)}}}}function FXe(e){let n=/(\w+)\/(\d+)\.(\d+)\.(\d+)/.exec(e);if(n){let i=n[1],a=parseInt(n[2]),o=parseInt(n[3]),c=parseInt(n[4]);return{agent:i,major:a,minor:o,patch:c}}return null}async function Hae(e){let r=await wy({cwd:e,autoInstall:!1,programmatic:!0});return r==="yarn"||r==="yarn@berry"}var zae=me("prisma:generator");async function Yae(e,r){let n=await X$(e);if(zae("baseDir",e),Wae(),await Gae(),!n&&!process.env.PRISMA_GENERATE_SKIP_AUTOINSTALL){let i=U$(e,process.cwd());zae("projectRoot",i);let a=`${N("Warning:")} ${J("[Prisma auto-install on generate]")}`;i===void 0&&(console.warn(ze(`${a} The Prisma schema directory ${N(e)} and the current working directory ${N(process.cwd())} have no common ancestor. The Prisma schema directory will be used as the project root.`)),i=e),Vae.default.existsSync(bS.default.join(i,"package.json"))||console.warn(ze(`${a} Prisma could not find a ${N("package.json")} file in the inferred project root ${N(i)}. During the next step, when an auto-install of Prisma package(s) will be attempted, it will then be created by your package manager on the appropriate level if necessary.`));let o=await Df("prisma",{basedir:e});if(process.platform==="win32"&&await Hae(e)){let c=l=>o!==void 0?l:"",u=l=>o===void 0?l:"";throw new Error(`Could not resolve ${u(`${N("prisma")} and `)}${N("@prisma/client")} in the current project. Please install ${c("it")}${u("them")} with ${u(`${N(te(`${await ec(e,"add","prisma","-D")}`))} and `)}${N(te(`${await ec(e,"add","@prisma/client")}`))}, and rerun ${N(await ec(e,"execute","prisma generate"))} \u{1F64F}.`)}if(o||await J$(i,"add",`prisma@${r??"latest"}`,"-D","--silent"),await J$(i,"add",`@prisma/client@${r??"latest"}`,"--silent"),n=await X$(bS.default.join(".",e)),!n)throw new Error(`Could not resolve @prisma/client despite the installation that we just tried. -Please try to install it by hand with ${N(te(`${await ec(e,"add","@prisma/client")}`))} and rerun ${N(await ec(e,"execute","prisma generate"))} \u{1F64F}.`);console.info(` -\u2714 Installed the ${N(te("@prisma/client"))} and ${N(te("prisma"))} packages in your project`)}if(!n)throw new Error(`Could not resolve @prisma/client. -Please try to install it with ${N(te("npm install @prisma/client"))} and rerun ${N(await ec(e,"execute","prisma generate"))} \u{1F64F}.`);return{outputPath:n,generatorPath:bS.default.resolve(n,"generator-build/index.js"),isNode:!0}}var Q$={"prisma-client-js":Yae};function xS(e){if(e==="schema-engine")return"schemaEngine";if(e==="libquery-engine")return"libqueryEngine";if(e==="query-engine")return"queryEngine";throw new Error(`Could not convert binary type ${e}`)}function Kae(e){return{fromEnvVar:null,value:e}}function Xae(e,r){return e=e||[],e.find(n=>n.native===!0)?[...e,Kae(r)]:[Kae("native"),...e]}var eoe=require("@prisma/engines");var toe=B(uu()),roe=B(require("path"));function Jae(e,r){return Object.entries(e).reduce((n,[i,a])=>(n[r(i)]=a,n),{})}function Qae(){let e=process.env.AWS_LAMBDA_JS_RUNTIME;if(!e||e==="")return null;try{let n=/^nodejs(\d+).x$/.exec(e);if(n)return parseInt(n[1])}catch{console.error(`We could not parse the AWS_LAMBDA_JS_RUNTIME env var with the following value: ${e}. This was silently ignored.`)}return null}function Zae(e){if(e==="schemaEngine")return"schema-engine";if(e==="queryEngine")return"query-engine";if(e==="libqueryEngine")return"libquery-engine";throw new Error(`Could not convert engine type ${e}`)}async function noe({neededVersions,binaryTarget,version,printDownloadProgress,skipDownload,binaryPathsOverride}){let binaryPathsByVersion=Object.create(null);for(let currentVersion in neededVersions){binaryPathsByVersion[currentVersion]={};let neededVersion=neededVersions[currentVersion];if(neededVersion.binaryTargets.length===0&&(neededVersion.binaryTargets=[{fromEnvVar:null,value:binaryTarget}]),process.env.NETLIFY){let e=parseInt(process.versions.node.split(".")[0])>=20,r=Qae(),n=r&&r>=20,i=r&&r<=18,a=neededVersion.binaryTargets.find(c=>c.value==="rhel-openssl-1.0.x");!neededVersion.binaryTargets.find(c=>c.value==="rhel-openssl-3.0.x")&&(e||n)&&!i?neededVersion.binaryTargets.push({fromEnvVar:null,value:"rhel-openssl-3.0.x"}):a||neededVersion.binaryTargets.push({fromEnvVar:null,value:"rhel-openssl-1.0.x"})}let binaryTargetBaseDir=eval("require('path').join(__dirname, '..')");version!==currentVersion&&(binaryTargetBaseDir=roe.default.join(binaryTargetBaseDir,`./engines/${currentVersion}/`),await(0,toe.ensureDir)(binaryTargetBaseDir).catch(e=>console.error(e)));let binariesConfig=neededVersion.engines.reduce((e,r)=>(binaryPathsOverride?.[r]||(e[Zae(r)]=binaryTargetBaseDir),e),Object.create(null));if(Object.values(binariesConfig).length>0){let e=neededVersion.binaryTargets.map(a=>a.value),n=await jE({binaries:binariesConfig,binaryTargets:e,showProgress:typeof printDownloadProgress=="boolean"?printDownloadProgress:!0,version:currentVersion&¤tVersion!=="latest"?currentVersion:eoe.enginesVersion,skipDownload}),i=Jae(n,xS);binaryPathsByVersion[currentVersion]=i}if(binaryPathsOverride){let e=Object.keys(binaryPathsOverride),r=neededVersion.engines.filter(n=>e.includes(n));if(r.length>0)for(let n of r){let i=binaryPathsOverride[n];binaryPathsByVersion[currentVersion][n]={[binaryTarget]:i}}}}return binaryPathsByVersion}function Z$(e,r){let n=e?.requiresEngineVersion;return n=n??r,n??"latest"}var ioe=B(fv());function soe(e){return String(new e3(e))}var e3=class{constructor(r){this.config=r}toString(){let{config:r}=this,n=r.provider.fromEnvVar?`env("${r.provider.fromEnvVar}")`:r.provider.value,i=JSON.parse(JSON.stringify({provider:n,binaryTargets:t3(r.binaryTargets)}));return`generator ${r.name} { -${(0,ioe.default)($Xe(i),2)} -}`}};function t3(e){let r;if(e.length>0){let n=e.find(i=>i.fromEnvVar!==null);n?r=`env("${n.fromEnvVar}")`:r=e.map(i=>i.native?"native":i.value)}else r=void 0;return r}function $Xe(e){let r=Object.keys(e).reduce((n,i)=>Math.max(n,i.length),0);return Object.entries(e).map(([n,i])=>`${n.padEnd(r)} = ${LXe(i)}`).join(` -`)}function LXe(e){return JSON.parse(JSON.stringify(e,(r,n)=>Array.isArray(n)?`[${n.map(i=>JSON.stringify(i)).join(", ")}]`:JSON.stringify(n)))}var Dy=me("prisma:getGenerators");async function tc(options){let{schemaPath,providerAliases:aliases,version,cliVersion,printDownloadProgress,overrideGenerators,skipDownload,binaryPathsOverride,generatorNames=[],postinstall,noEngine,allowNoModels,typedSql}=options;if(!schemaPath)throw new Error(`schemaPath for getGenerators got invalid value ${schemaPath}`);let schemaResult=null;try{schemaResult=await pt(schemaPath)}catch(e){throw new Error(`${schemaPath} does not exist`)}let{schemas}=schemaResult,binaryTarget=await Hr(),queryEngineBinaryType=(0,wS.getCliQueryEngineBinaryType)(),queryEngineType=xS(queryEngineBinaryType),prismaPath=binaryPathsOverride?.[queryEngineType];if(version&&!prismaPath){let potentialPath=eval("require('path').join(__dirname, '..')");if(!potentialPath.match(Vd)){let e={binaries:{[queryEngineBinaryType]:potentialPath},binaryTargets:[binaryTarget],showProgress:!1,version,skipDownload};prismaPath=(await jE(e))[queryEngineBinaryType][binaryTarget]}}let config=await Ve({datamodel:schemas,datamodelPath:schemaPath,prismaPath,ignoreEnvVarErrors:!0});if(config.datasources.length===0)throw new Error(cae);pae(config.warnings);let previewFeatures=iae(config),dmmf=await pE({datamodel:schemas,datamodelPath:schemaPath,prismaPath,previewFeatures});if(dmmf.datamodel.models.length===0&&!allowNoModels)throw config.datasources.some(e=>e.provider==="mongodb")?new Error(lae):new Error(uae);let generatorConfigs=jXe(overrideGenerators||config.generators,generatorNames);await qXe(generatorConfigs);let runningGenerators=[];try{let e=await(0,coe.default)(generatorConfigs,async(a,o)=>{let c=mn(a.provider),u,l=r3.default.dirname(a.sourceFilePath??schemaPath),f=mn(a.provider);aliases&&aliases[f]?(c=aliases[f].generatorPath,u=aliases[f]):Q$[f]&&(u=await Q$[f](l,cliVersion),c=u.generatorPath);let p=new JE(c,a,u?.isNode);if(await p.init(),a.output)a.output={value:r3.default.resolve(l,mn(a.output)),fromEnvVar:null},a.isCustomOutput=!0;else if(u)a.output={value:u.outputPath,fromEnvVar:null};else{if(!p.manifest||!p.manifest.defaultOutput)throw new Error(`Can't resolve output dir for generator ${N(a.name)} with provider ${N(a.provider.value)}. -The generator needs to either define the \`defaultOutput\` path in the manifest or you need to define \`output\` in the datamodel.prisma file.`);a.output={value:await nae({defaultOutput:p.manifest.defaultOutput,baseDir:l}),fromEnvVar:"null"}}let g=ey({schemas}),v=await mf(schemaPath,{cwd:a.output.value}),x={datamodel:g,datasources:config.datasources,generator:a,dmmf,otherGenerators:MXe(generatorConfigs,o),schemaPath,version:version||wS.enginesVersion,postinstall,noEngine,allowNoModels,envPaths:v,typedSql};return p.setOptions(x),runningGenerators.push(p),p},{stopOnError:!1}),r=generatorConfigs.map(a=>mn(a.provider));for(let a of e)if(a.manifest&&a.manifest.requiresGenerators&&a.manifest.requiresGenerators.length>0){for(let o of a.manifest.requiresGenerators)if(!r.includes(o))throw new Error(`Generator "${a.manifest.prettyName}" requires generator "${o}", but it is missing in your schema.prisma. -Please add it to your schema.prisma: - -generator gen { - provider = "${o}" -} -`)}let n=Object.create(null);for(let a of e)if(a.manifest&&a.manifest.requiresEngines&&Array.isArray(a.manifest.requiresEngines)&&a.manifest.requiresEngines.length>0){let o=Z$(a.manifest,version);n[o]||(n[o]={engines:[],binaryTargets:[]});for(let u of a.manifest.requiresEngines)n[o].engines.includes(u)||n[o].engines.push(u);let c=a.options?.generator?.binaryTargets;if(c&&c.length>0)for(let u of c)n[o].binaryTargets.find(l=>l.value===u.value)||n[o].binaryTargets.push(u)}Dy("neededVersions",JSON.stringify(n,null,2));let i=await noe({neededVersions:n,binaryTarget,version,printDownloadProgress,skipDownload,binaryPathsOverride});for(let a of e)if(a.manifest&&a.manifest.requiresEngines){let o=Z$(a.manifest,version),c=i[o],u=fae(c,a.manifest.requiresEngines);if(Dy({generatorBinaryPaths:u}),a.setBinaryPaths(u),o!==version&&a.options&&a.manifest.requiresEngines.includes(queryEngineType)&&u[queryEngineType]&&u[queryEngineType]?.[binaryTarget]){let l=await pE({datamodel:schemas,datamodelPath:schemaPath,prismaPath:u[queryEngineType]?.[binaryTarget],previewFeatures}),f={...a.options,dmmf:l};Dy("generator.manifest.prettyName",a.manifest.prettyName),Dy("options",f),Dy("options.generator.binaryTargets",f.generator.binaryTargets),a.setOptions(f)}}return e}catch(e){throw runningGenerators.forEach(r=>r.stop()),e}}async function NXe(e){return(await tc(e))[0]}function MXe(e,r){return[...e.slice(0,r),...e.slice(r+1)]}var aoe=[...kg,"native"],ooe={"linux-glibc-libssl1.0.1":"debian-openssl-1.0.x","linux-glibc-libssl1.0.2":"debian-openssl-1.0.x","linux-glibc-libssl1.1.0":"debian-openssl1.1.x"};async function qXe(e){let r=await Hr();for(let n of e){if(n.config.platforms)throw new Error("The `platforms` field on the generator definition is deprecated. Please rename it to `binaryTargets`.");if(n.config.pinnedBinaryTargets)throw new Error("The `pinnedBinaryTargets` field on the generator definition is deprecated.\nPlease use the PRISMA_QUERY_ENGINE_BINARY env var instead to pin the binary target.");if(n.binaryTargets){let a=(n.binaryTargets&&n.binaryTargets.length>0?n.binaryTargets:[{fromEnvVar:null,value:"native"}]).flatMap(o=>$F(o)).map(o=>o==="native"?r:o);for(let o of a){if(ooe[o])throw new Error(`Binary target ${oe(N(o))} is deprecated. Please use ${te(N(ooe[o]))} instead.`);if(!aoe.includes(o))throw new Error(`Unknown binary target ${oe(o)} in generator ${N(n.name)}. -Possible binaryTargets: ${te(aoe.join(", "))}`)}if(!a.includes(r)){let o=t3(n.binaryTargets);console.log(`${ze("Warning:")} Your current platform \`${N(r)}\` is not included in your generator's \`binaryTargets\` configuration ${JSON.stringify(o)}. -To fix it, use this generator config in your ${N("schema.prisma")}: -${te(soe({...n,binaryTargets:Xae(n.binaryTargets,r)}))} -${Sl(`Note, that by providing \`native\`, Prisma Client automatically resolves \`${r}\`. -Read more about deploying Prisma Client: ${tt("https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/generators")}`)} -`)}}}}function jXe(e,r){if(r.length<1)return e;let n=e.filter(i=>r.includes(i.name));if(n.length!==r.length){let i=r.filter(o=>n.find(c=>c.name===o)==null),a=i.length<=1;throw new Error(`The ${a?"generator":"generators"} ${N(i.join(", "))} specified via ${N("--generator")} ${a?"does":"do"} not exist in your Prisma schema`)}return n}var fr={};Xn(fr,{error:()=>WXe,info:()=>GXe,log:()=>BXe,query:()=>HXe,should:()=>uoe,tags:()=>Cy,warn:()=>UXe});var Cy={error:oe("prisma:error"),warn:ze("prisma:warn"),info:gs("prisma:info"),query:Jn("prisma:query")},uoe={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function BXe(...e){console.log(...e)}function UXe(e,...r){uoe.warn()&&console.warn(`${Cy.warn} ${e}`,...r)}function GXe(e,...r){console.info(`${Cy.info} ${e}`,...r)}function WXe(e,...r){console.error(`${Cy.error} ${e}`,...r)}function HXe(e,...r){console.log(`${Cy.query} ${e}`,...r)}var loe=B(Pl());function foe(e){let r=e.split(/\r?\n/).slice(1),n=[];for(let i of r){let a=String(i);try{let o=JSON.parse(a);n.push(o)}catch(o){throw new Error(`Could not parse schema engine response: ${o}`)}}return n}async function Cf(e,r=process.cwd(),n){if(!e)throw new Error("Connection url is empty. See https://www.prisma.io/docs/reference/database-reference/connection-urls");try{await poe({connectionString:e,cwd:r,schemaEnginePath:n,engineCommandName:"can-connect-to-database"})}catch(i){let a=i;if(a.stderr){let o=foe(a.stderr),c=o.find(u=>u.level==="ERROR"&&u.target==="schema_engine::logger");if(c&&c.fields.error_code&&c.fields.message)return{code:c.fields.error_code,message:c.fields.message};throw new Error(`Schema engine error: -${o.map(u=>u.fields.message).join(` -`)}`)}else throw new Error(`Schema engine exited. ${i}`)}return!0}async function n3(e,r=process.cwd(),n){if(await Cf(e,r,n)===!0)return!1;try{return await poe({connectionString:e,cwd:r,schemaEnginePath:n,engineCommandName:"create-database"}),!0}catch(a){let o=a;if(o.stderr){let c=foe(o.stderr),u=c.find(l=>l.level==="ERROR"&&l.target==="schema_engine::logger");throw u&&u.fields.error_code&&u.fields.message?new Error(`${u.fields.error_code}: ${u.fields.message}`):new Error(`Schema engine error: -${c.map(l=>l.fields.message).join(` -`)}`)}else throw new Error(`Schema engine exited. ${a}`)}}async function poe({connectionString:e,cwd:r,schemaEnginePath:n,engineCommandName:i}){n=n||await wu("schema-engine");try{return await(0,loe.default)(n,["cli","--datasource",e,i],{cwd:r,env:{RUST_BACKTRACE:process.env.RUST_BACKTRACE??"1",RUST_LOG:process.env.RUST_LOG??"info"}})}catch(a){let o=a;throw o.message&&(o.message=o.message.replace(e,"")),o.stdout&&(o.stdout=o.stdout.replace(e,"")),o.stderr&&(o.stderr=o.stderr.replace(e,"")),o}}var Nge=B(oge()),Mge=B(Vh()),Qh=B(require("fs")),qge=B(nv()),MD=B(require("os")),Zh=B(require("path")),jge=B(Yh()),yN=B(Age());async function Oge(e,r){return await Ja(r,{method:"PUT",agent:pf(r),headers:{"Content-Length":String(e.byteLength)},body:e})}async function Ige(e){return(await Fge(`mutation ($data: CreateErrorReportInput!) { - createErrorReport(data: $data) - }`,{data:e})).createErrorReport}async function kge(e){return(await Fge(`mutation ($signedUrl: String!) { - markErrorReportCompleted(signedUrl: $signedUrl) -}`,{signedUrl:e})).markErrorReportCompleted}async function Fge(e,r){let n="https://error-reports.prisma.sh/",i=JSON.stringify({query:e,variables:r});return await Ja(n,{method:"POST",agent:pf(n),body:i,headers:{Accept:"application/json","Content-Type":"application/json"}}).then(a=>{if(!a.ok)throw new Error(`Error during request: ${a.status} ${a.statusText} - Query: ${e}`);return a.json()}).then(a=>{if(a.errors)throw new Error(JSON.stringify(a.errors));return a.data})}function $ge(e){return e.map(([r,n])=>[r,E0(n)])}function E0(e){let r=/url\s*=\s*.+/;return e.split(` -`).map(n=>{let i=r.exec(n);return i?`${n.slice(0,i.index)}url = "***"`:n}).join(` -`)}function gN(e,r){let n={};for(let i in e)typeof e[i]=="object"?n[i]=gN(e[i],r):n[i]=r(e[i]);return n}var vN=B(require("path"));function Sa(e,r){let n=e?.datasources?.[0]?.sourceFilePath;return n?vN.default.dirname(n):r?vN.default.dirname(r):process.cwd()}function as(e){return{files:Lge(e)}}function Jh(e,r){return{files:Lge(e.schemas),configDir:Sa(r,e.schemaPath)}}function Lge(e){return e.map(([r,n])=>({path:r,content:n}))}yN.default.setGracefulCleanup();async function Bge({error:e,cliVersion:r,enginesVersion:n,getDatabaseVersionSafe:i}){let a=await He(e).with({schemaPath:Cr.not(Cr.nullish)},g=>Bn(g.schemaPath)).with({schema:Cr.not(Cr.nullish)},g=>Promise.resolve(g.schema)).otherwise(()=>{}),o=a?$ge(a):void 0,c;if(e.area==="LIFT_CLI"){let g=He({schema:a,introspectionUrl:e.introspectionUrl}).with({schema:Cr.not(void 0)},({schema:v})=>({datasource:{tag:"Schema",...as(v)}})).with({introspectionUrl:Cr.not(void 0)},({introspectionUrl:v})=>({datasource:{tag:"ConnectionString",url:v}})).otherwise(()=>{});c=await i(g)}let u=e.request?JSON.stringify(gN(e.request,g=>typeof g=="string"?E0(g):g)):void 0,l={area:e.area,kind:"RUST_PANIC",cliVersion:r,binaryVersion:n,command:Mlt(),jsStackTrace:(0,jge.default)(e.stack||e.message),rustStackTrace:e.rustStack,operatingSystem:`${MD.default.arch()} ${MD.default.platform()} ${MD.default.release()}`,platform:await Hr(),liftRequest:u,schemaFile:Nlt(o),fingerprint:await Mge.getSignature(),sqlDump:void 0,dbVersion:c},f=await Ige(l);try{if(e.schemaPath){let g=await qlt(e);await Oge(g,f)}}catch(g){console.error(`Error uploading zip file: ${g.message}`)}return await kge(f)}function Nlt(e){if(e)return e.map(([r,n])=>`// ${r} -${n}`).join(` -`)}function Mlt(){return process.argv[2]==="introspect"?"introspect":process.argv[2]==="db"&&process.argv[3]==="pull"?"db pull":process.argv.slice(2).join(" ")}async function qlt(e){if(!e.schemaPath)throw new Error("Can't make zip without schema path");let r=Zh.default.dirname(e.schemaPath),n=yN.default.fileSync(),i=Qh.default.createWriteStream(n.name),a=(0,Nge.default)("zip",{zlib:{level:9}});a.pipe(i);let o=E0(Qh.default.readFileSync(e.schemaPath,"utf-8"));if(a.append(o,{name:Zh.default.basename(e.schemaPath)}),Qh.default.existsSync(r)){let c=await(0,qge.default)("migrations/**/*",{cwd:r});for(let u of c){let l=Qh.default.readFileSync(Zh.default.resolve(r,u),"utf-8");(u.endsWith("schema.prisma")||u.endsWith(Zh.default.basename(e.schemaPath)))&&(l=E0(l)),a.append(l,{name:Zh.default.basename(u)})}}return a.finalize(),new Promise((c,u)=>{i.on("close",()=>{let l=Qh.default.readFileSync(n.name);c(l)}),a.on("error",l=>{u(l)})})}function bN(e,r){if(!e)throw new Error(`${r}. This should never happen. If you see this error, please, open an issue at https://pris.ly/prisma-prisma-bug-report`)}var bbe=B(Ju());var Yf=()=>{let e=process.env;return!!(e.CI||e.CONTINUOUS_INTEGRATION||e.BUILD_NUMBER||e.RUN_ID||e.AGOLA_GIT_REF||e.AC_APPCIRCLE||e.APPVEYOR||e.CODEBUILD||e.TF_BUILD||e.bamboo_planKey||e.BITBUCKET_COMMIT||e.BITRISE_IO||e.BUDDY_WORKSPACE_ID||e.BUILDKITE||e.CIRCLECI||e.CIRRUS_CI||e.CF_BUILD_ID||e.CM_BUILD_ID||e.CI_NAME||e.DRONE||e.DSARI||e.EARTHLY_CI||e.EAS_BUILD||e.GERRIT_PROJECT||e.GITEA_ACTIONS||e.GITHUB_ACTIONS||e.GITLAB_CI||e.GOCD||e.BUILDER_OUTPUT||e.HARNESS_BUILD_ID||e.JENKINS_URL||e.BUILD_ID||e.LAYERCI||e.MAGNUM||e.NETLIFY||e.NEVERCODE||e.PROW_JOB_ID||e.RELEASE_BUILD_ID||e.RENDER||e.SAILCI||e.HUDSON||e.JENKINS_URL||e.BUILD_ID||e.SCREWDRIVER||e.SEMAPHORE||e.SOURCEHUT||e.STRIDER||e.TASK_ID||e.RUN_ID||e.TEAMCITY_VERSION||e.TRAVIS||e.VELA||e.NOW_BUILDER||e.APPCENTER_BUILD_ID||e.CI_XCODE_PROJECT||e.XCS)};var Kf=({stream:e=process.stdin}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb");var Pa=()=>!!bbe.default._injected?.length||Kf()&&!Yf();var tC=B(require("path")),xbe=B(require("process")),wbe=B(U1()),_be=B(nv());var OM=tC.default.join(".wrangler","state","v3","d1","miniflare-D1DatabaseObject");async function Xf({arg:e}){let r=xbe.default.cwd(),n=tC.default.posix.join(r,OM),i=(0,wbe.convertPathToPattern)(n),a=await(0,_be.default)(tC.default.posix.join(i,"*.sqlite"),{});if(a.length===0)throw new Error(`No Cloudflare D1 databases found in ${OM}. Did you run \`wrangler d1 create \` and \`wrangler dev\`?`);if(a.length>1){let{originalArg:c,recommendedArg:u}=He(e).with("--to-local-d1",l=>({originalArg:l,recommendedArg:"--to-url file:"})).with("--from-local-d1",l=>({originalArg:l,recommendedArg:"--from-url file:"})).exhaustive();throw new Error(`Multiple Cloudflare D1 databases found in ${OM}. Please manually specify the local D1 database with \`${u}\`, without using the \`${c}\` flag.`)}return a[0]}var Kbe=B(Ybe());var MM=B(aC()),cs={topLeft:"\u250C",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",vertical:"\u2502",horizontal:"\u2500"};function oht(e){return e.split(` -`).reduce((r,n)=>Math.max(r,(0,MM.default)(n)),0)+2}function N0({title:e,width:r,height:n,str:i,horizontalPadding:a}){a=a||0,r=r||0,n=n||0,r=Math.max(r,oht(i)+a*2);let o=e?Oo(cs.topLeft+cs.horizontal)+" "+Og(N(e))+" "+Oo(cs.horizontal.repeat(r-e.length-2-3)+cs.topRight)+Og():Oo(cs.topLeft+cs.horizontal)+Oo(cs.horizontal.repeat(r-3)+cs.topRight),c=cs.bottomLeft+cs.horizontal.repeat(r-2)+cs.bottomRight,u=i.split(` -`);u.length{let p=Math.min((0,MM.default)(f),r),g=Math.max(r-p-2,0);return`${Oo(cs.vertical)}${" ".repeat(a)}${Og((0,Kbe.default)(f,r-2))}${" ".repeat(g-a)}${Oo(cs.vertical)}`}).join(` -`);return Oo(o+` -`+l+` -`+c)}var xc={};Xn(xc,{createDirIfNotExists:()=>O0t,getFilesInDir:()=>N0t,getNestedFoldersInDir:()=>L0t,removeDir:()=>F0t,removeEmptyDirs:()=>k0t,removeFile:()=>$0t,writeFile:()=>I0t});var C4=B(Nt()),dm=B(E4()),P4=B(require("fs/promises"));var sp=B(require("fs/promises")),S4=B(nv()),wC=B(require("path"));function dwe(e){return sp.default.mkdir(e,{recursive:!0})}function hwe({path:e,content:r}){return sp.default.writeFile(e,r,{encoding:"utf-8"})}function mwe(e){let r=dh(wC.default.join(e,"**"));return(0,S4.default)(r,{onlyFiles:!1,onlyDirectories:!0})}function gwe(e,r="**"){let n=dh(wC.default.join(e,r));return(0,S4.default)(n,{onlyFiles:!0,onlyDirectories:!1})}async function D4(e){try{if(!(await sp.default.lstat(e)).isDirectory())return}catch{return}let r=await sp.default.readdir(e);if(r.length>0){let i=r.map(a=>D4(wC.default.join(e,a)));await Promise.all(i)}(await sp.default.readdir(e)).length===0&&await sp.default.rmdir(e)}var O0t=e=>dm.tryCatch(()=>dwe(e),eb("fs-create-dir",{dir:e})),I0t=e=>dm.tryCatch(()=>hwe(e),eb("fs-write-file",e)),k0t=e=>dm.tryCatch(()=>D4(e),eb("fs-remove-empty-dirs",{dir:e})),F0t=e=>(0,C4.pipe)(dm.tryCatch(()=>P4.default.rm(e,{recursive:!0}),eb("fs-remove-dir",{dir:e}))),$0t=e=>(0,C4.pipe)(dm.tryCatch(()=>P4.default.unlink(e),eb("fs-remove-file",{filePath:e}))),L0t=e=>()=>mwe(e),N0t=(e,r="**")=>()=>gwe(e,r);function eb(e,r){return n=>({type:e,error:n,meta:r})}var I4=B(require("fs")),k4=B(Cwe());function ap(){try{let e=I4.default.realpathSync(process.argv[1]),r=e.indexOf(k4.default.yarn.packages)===0;if(e.indexOf(I4.default.realpathSync(k4.default.npm.packages))===0)return"npm";if(r)return"yarn"}catch{}return!1}function Le(e){if(ap())return e;{let r=process.env.npm_config_user_agent?.includes("yarn");return __dirname.includes("_npx")?`npx ${e}`:r?`yarn ${e}`:e}}var Kwe=B(Ju());var Gwe=B(Pwe());var j4=B(require("process"),1),Awe=B(require("os"),1),Owe=B(require("fs"),1);var Twe=B(require("fs"),1);var N4=B(require("fs"),1),L4;function W0t(){try{return N4.default.statSync("/.dockerenv"),!0}catch{return!1}}function H0t(){try{return N4.default.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function M4(){return L4===void 0&&(L4=W0t()||H0t()),L4}var q4,z0t=()=>{try{return Twe.default.statSync("/run/.containerenv"),!0}catch{return!1}};function SC(){return q4===void 0&&(q4=z0t()||M4()),q4}var Rwe=()=>{if(j4.default.platform!=="linux")return!1;if(Awe.default.release().toLowerCase().includes("microsoft"))return!SC();try{return Owe.default.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!SC():!1}catch{return!1}},Iwe=j4.default.env.__IS_WSL_TEST__?Rwe:Rwe();var Wwe=B(kwe()),Hwe=B(PC()),zwe=B(Ju()),Vwe=B(Yh());function rbt({title:e,user:r="prisma",repo:n="prisma",template:i="bug_report.yml",body:a}){return(0,Wwe.default)({user:r,repo:n,template:i,title:e,body:a})}async function Ywe(e){if(await He(e.prompt).with(!0,async()=>!!(await(0,zwe.default)({type:"select",name:"value",message:"Would you like to create a GitHub issue?",initial:0,choices:[{title:"Yes",value:!0,description:"Create a new GitHub issue"},{title:"No",value:!1,description:"Don't create a new GitHub issue"}]})).value).otherwise(()=>Promise.resolve(!0))){let n=await Hr(),i=rbt({title:e.title??"",body:nbt(n,e)}),a=(0,Gwe.default)()||Iwe;await(0,Hwe.default)(i,{wait:a})}else process.exit(130)}var nbt=(e,r)=>(0,Vwe.default)(` -Hi Prisma Team! The following command just crashed. -${r.reportId?`The report Id is: ${r.reportId}`:""} - -## Command - -\`${r.command}\` - -## Versions - -| Name | Version | -|-------------|--------------------| -| Platform | ${e.padEnd(19)}| -| Node | ${process.version.padEnd(19)}| -| Prisma CLI | ${r.cliVersion.padEnd(19)}| -| Engine | ${r.enginesVersion.padEnd(19)}| - -## Error -\`\`\` -${r.error} -\`\`\` -`);async function H4(e){if(!Pa())throw e.error;await ibt(e)}async function ibt({error:e,cliVersion:r,enginesVersion:n,command:i,getDatabaseVersionSafe:a}){let o=e.message.split(` -`).slice(0,Math.max(20,process.stdout.rows)).join(` -`);console.log(`${oe("Oops, an unexpected error occurred!")} -${oe(o)} - -${N("Please help us improve Prisma by submitting an error report.")} -${N("Error reports never contain personal or other sensitive information.")} -${J(`Learn more: ${ke("https://pris.ly/d/telemetry")}`)} -`);let{value:c}=await(0,Kwe.default)({type:"select",name:"value",message:"Submit error report",initial:0,choices:[{title:"Yes",value:!0,description:"Send error report once"},{title:"No",value:!1,description:"Don't send error report"}]});if(c)try{console.log("Submitting...");let u=await Bge({error:e,cliVersion:r,enginesVersion:n,getDatabaseVersionSafe:a});console.log(` -${N(`We successfully received the error report id: ${u}`)}`),console.log(` -${N("Thanks a lot for your help! \u{1F64F}")}`)}catch(u){let l=`${N(oe("Oops. We could not send the error report."))}`;console.log(l),console.error(`${Sl("Error report submission failed due to: ")}`,u)}await Ywe({prompt:!c,error:e,cliVersion:r,enginesVersion:n,command:i}),process.exit(1)}var Xwe=B(ek());function z4(e){return(0,Xwe.isIdentifierName)(e)}function V4(e,r){let n={};for(let i of Object.keys(e))n[i]=r(e[i],i);return n}function bo(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var op=class op{constructor(r){this.cmds=r}static new(r){return new op(r)}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--preview-feature":Boolean,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n._.length===0||n["--help"])return this.help();let i=this.cmds[n._[0]];if(i){let a=n["--preview-feature"]?[...n._.slice(1),"--preview-feature"]:n._.slice(1);return i.parse(a)}return gf(op.help,n._[0])}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${op.help}`):op.help}};op.help=$e(` -${process.platform==="win32"?"":"\u{1F3CB}\uFE0F "}Manage your database schema and lifecycle during development. - -${N("Usage")} - - ${J("$")} prisma db [command] [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -${N("Commands")} - pull Pull the state from the database to the Prisma schema using introspection - push Push the state from Prisma schema to the database during prototyping - seed Seed your database - execute Execute native commands to your database - -${N("Examples")} - - Run \`prisma db pull\` - ${J("$")} prisma db pull - - Run \`prisma db push\` - ${J("$")} prisma db push - - Run \`prisma db seed\` - ${J("$")} prisma db seed - - Run \`prisma db execute\` - ${J("$")} prisma db execute -`);var nb=op;var sbt=/^\.{0,2}\//;function Jwe(e){if(["postgres","postgresql","cockroachdb"].includes(e.type)){let r=e.host;return typeof r=="string"&&sbt.test(r)?r:null}return e.socket??null}async function Ai({schemaPath:e,throwIfEnvError:r}={}){let n=await Bn(e),i;try{i=await Ve({datamodel:n,ignoreEnvVarErrors:!1})}catch(u){if(r)throw u;i=await Ve({datamodel:n,ignoreEnvVarErrors:!0})}let a=i.datasources[0]?i.datasources[0]:void 0;if(!a)return{name:void 0,prettyProvider:void 0,dbName:void 0,dbLocation:void 0,url:void 0,schema:void 0,schemas:void 0,configDir:void 0};let o=Zwe(a.provider),c=jo(a).value;if(!c||a.provider==="sqlserver")return{name:a.name,prettyProvider:o,dbName:void 0,dbLocation:void 0,url:c||void 0,schema:void 0,schemas:a.schemas,configDir:Sa(i,e)};try{let u=KE(c),l=Qwe(u),f;["postgresql","cockroachdb"].includes(a.provider)&&(u.schema?f=u.schema:f="public");let p={name:a.name,prettyProvider:o,dbName:u.database,dbLocation:l,url:c,schema:f,schemas:a.schemas,configDir:Sa(i,e)};return a.provider==="postgresql"&&p.dbName===void 0&&(p.dbName="postgres"),p}catch{return{name:a.name,prettyProvider:o,dbName:void 0,dbLocation:void 0,url:c,schema:void 0,schemas:a.schemas,configDir:Sa(i,e)}}}async function ib(e){let r=await Bn(e),n=await Ve({datamodel:r,ignoreEnvVarErrors:!1}),i=n.datasources[0]?n.datasources[0]:void 0;if(!i)throw new Error("A datasource block is missing in the Prisma schema file.");let a=Sa(n,e),o=jo(i).value,c=await Cf(o,a);if(c===!0)return!0;{let{code:u,message:l}=c;throw new Error(`${u}: ${l}`)}}async function nl(e,r){let n=await Bn(r),i=await Ve({datamodel:n,ignoreEnvVarErrors:!1}),a=i.datasources[0]?i.datasources[0]:void 0;if(!a)throw new Error("A datasource block is missing in the Prisma schema file.");let o=Sa(i,r),c=jo(a).value,u=await Cf(c,o);if(u===!0)return;let{code:l,message:f}=u;if(l!=="P1003")throw new Error(`${l}: ${f}`);if(!o)throw new Error(`Could not locate ${r||"schema.prisma"}`);if(await n3(c,o)){if(a.provider==="sqlserver")return`SQL Server database created. -`;let p=KE(c),v=`${Zwe(a.provider)} database${p.database?` ${p.database} `:" "}created`,x=Qwe(p);return x&&(v+=` at ${N(x)}`),v}}function Qwe(e){if(e.type==="sqlite")return e.uri;let r=Jwe(e);if(r)return`unix:${r}`;if(e.host&&e.port)return`${e.host}:${e.port}`;if(e.host)return`${e.host}`}function Zwe(e){switch(e){case"mysql":return"MySQL";case"postgres":case"postgresql":return"PostgreSQL";case"sqlite":return"SQLite";case"cockroachdb":return"CockroachDB";case"sqlserver":return"SQL Server";case"mongodb":return"MongoDB"}}var sb=class extends Error{constructor(){super(`Could not find a ${N("schema.prisma")} file that is required for this command. -You can either provide it with ${te("--schema")}, set it as \`prisma.schema\` in your package.json or put it into the default location ${te("./prisma/schema.prisma")} ${ke("https://pris.ly/d/prisma-schema-location")}`)}};bo(sb,"NoSchemaFoundError");var ab=class extends Error{constructor(){super(`Use the --accept-data-loss flag to ignore the data loss warnings like ${N(te(Le("prisma db push --accept-data-loss")))}`)}};bo(ab,"DbPushIgnoreWarningsWithFlagError");var Y4=class extends Error{constructor(r){super(`Use the --force flag to use the ${r} command in an unattended environment like ${N(te(Le(`prisma migrate ${r} --force`)))}`)}};bo(Y4,"MigrateNeedsForceError");var ob=class extends Error{constructor(){super(`Prisma Migrate has detected that the environment is non-interactive. It is recommended to run this command in an interactive environment. - -Use ${N(te("--force"))} to run this command without user interaction. -See ${ke("https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-reset")}`)}};bo(ob,"MigrateResetEnvNonInteractiveError");var mm=class extends Error{constructor(){super(`Prisma Migrate has detected that the environment is non-interactive, which is not supported. - -\`prisma migrate dev\` is an interactive command designed to create new migrations and evolve the database in development. -To apply existing migrations in deployments, use ${N(te("prisma migrate deploy"))}. -See ${ke("https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-deploy")}`)}};bo(mm,"MigrateDevEnvNonInteractiveError");var K4=class extends Error{constructor(r){super(`Use the --force flag to use the ${r} command in an unattended environment like ${N(te(Le(`prisma db ${r} --force --preview-feature`)))}`)}};bo(K4,"DbDropNeedsForceError");var e1e=B(require("path"));async function Zr(e,r){let n=await pt(e,r);return TC(n.schemaPath),n}function TC(e){process.stdout.write(J(`Prisma schema loaded from ${e1e.default.relative(process.cwd(),e)}`)+` -`)}function Oi({datasourceInfo:e}){if(!e.name||!e.prettyProvider)return;let r=`Datasource "${e.name}": ${e.prettyProvider} database`;e.dbName&&(r+=` "${e.dbName}"`),e.schemas?.length?r+=`, schemas "${e.schemas.join(", ")}"`:e.schema&&(r+=`, schema "${e.schema}"`),e.dbLocation&&(r+=` at "${e.dbLocation}"`),process.stdout.write(J(r)+` -`)}var S1e=B(require("fs")),D1e=B(t1e());var C1e=B(require("path"));var _1e=B(n1e());var NC=B(t6()),MC=B(require("path"));var x1e=B(require("path"));var w1e=require("child_process");var FC=B(require("stream")),g1e=B(require("util"));function $C(e,r){return _bt(e,r)}function _bt(e,r){return e?Ebt(e,r):new cp(r)}function Ebt(e,r){if(!e)throw new Error("expected readStream");if(!e.readable)throw new Error("readStream must be readable");let n=new cp(r);return e.pipe(n),n}function cp(e){FC.default.Transform.call(this,e),e=e||{},this._readableState.objectMode=!0,this._lineBuffer=[],this._keepEmptyLines=e.keepEmptyLines||!1,this._lastChunkEndedWithCR=!1,this.on("pipe",function(r){this.encoding||r instanceof FC.default.Readable&&(this.encoding=r._readableState.encoding)})}g1e.default.inherits(cp,FC.default.Transform);cp.prototype._transform=function(e,r,n){r=r||"utf8",Buffer.isBuffer(e)&&(r=="buffer"?(e=e.toString(),r="utf8"):e=e.toString(r)),this._chunkEncoding=r;let i=e.split(/\r\n|\r|\n/g);this._lastChunkEndedWithCR&&e[0]==` -`&&i.shift(),this._lineBuffer.length>0&&(this._lineBuffer[this._lineBuffer.length-1]+=i[0],i.shift()),this._lastChunkEndedWithCR=e[e.length-1]=="\r",this._lineBuffer=this._lineBuffer.concat(i),this._pushBuffer(r,1,n)};cp.prototype._pushBuffer=function(e,r,n){for(;this._lineBuffer.length>r;){let i=this._lineBuffer.shift();if((this._keepEmptyLines||i.length>0)&&!this.push(this._reencode(i,e))){let a=this;setImmediate(function(){a._pushBuffer(e,r,n)});return}}n()};cp.prototype._flush=function(e){this._pushBuffer(this._chunkEncoding,0,e)};cp.prototype._reencode=function(e,r){return this.encoding&&this.encoding!=r?Buffer.from(e,r).toString(this.encoding):this.encoding?e:Buffer.from(e,r)};var r6=B(yC()),n6=B(Nt()),y1e=B(x4()),il=B(E4()),lb=B(require("path"));async function b1e({views:e,schemaPath:r}){let n=lb.default.dirname(dh(r)),i=lb.default.posix.join(n,"views");if(e.length===0){await v1e(i);return}let{viewFilesToKeep:a}=await Sbt(i,e);await v1e(i,a)}async function Sbt(e,r){let n=r.map(({schema:f,...p})=>[lb.default.posix.join(e,f),p]),i=n.map(([f])=>f),a=n.map(([f,{name:p,definition:g}])=>({path:lb.default.posix.join(f,`${p}.sql`),content:g})),o=a.map(({path:f})=>f),u=await(0,n6.pipe)(xc.createDirIfNotExists(e),il.chainW(()=>il.traverseArray(xc.createDirIfNotExists)(i)),il.chainW(()=>il.traverseArray(xc.writeFile)(a)))();if(r6.isRight(u))return{viewFilesToKeep:o};throw He(u.left).with({type:"fs-create-dir"},f=>{throw new Error(`Error creating the directory: ${f.meta.dir}. -${f.error}.`)}).with({type:"fs-write-file"},f=>{throw new Error(`Error writing the view definition -${f.meta.content} -to file ${f.meta.path}. -${f.error}.`)}).exhaustive()}async function v1e(e,r=[]){let n=(0,n6.pipe)(xc.getFilesInDir(e,"**/*/*.sql"),y1e.chain(o=>{let c=o.filter(u=>!r.includes(u));return il.traverseArray(xc.removeFile)(c)}),il.chainW(()=>xc.removeEmptyDirs(e))),i=await n();if(r6.isRight(i))return;let a=He(i.left).with({type:"fs-remove-empty-dirs"},o=>{throw new Error(`Error removing empty directories in: ${o.meta.dir}. -${o.error}.`)}).with({type:"fs-remove-file"},o=>{throw new Error(`Error removing the file: ${o.meta.filePath}. -${o.error}.`)}).exhaustive();throw await n(),a}var i6=me("prisma:schemaEngine:rpc"),Dbt=me("prisma:schemaEngine:stderr"),Cbt=me("prisma:schemaEngine:stdin"),LC=class extends Error{constructor(r,n){super(r),this.code=n}};bo(LC,"EngineError");var Pbt=1,Ia=class{constructor({debug:r=!1,schemaPath:n,enabledPreviewFeatures:i}){this.listeners={};this.messages=[];this.lastError=null;this.isRunning=!1;this.schemaPath=n,r&&me.enable("SchemaEngine*"),this.debug=r,this.enabledPreviewFeatures=i}applyMigrations(r){return this.runCommand(this.getRPCPayload("applyMigrations",r))}createDatabase(r){return this.runCommand(this.getRPCPayload("createDatabase",r))}createMigration(r){return this.runCommand(this.getRPCPayload("createMigration",r))}dbExecute(r){return this.runCommand(this.getRPCPayload("dbExecute",r))}debugPanic(){return this.runCommand(this.getRPCPayload("debugPanic",void 0))}devDiagnostic(r){return this.runCommand(this.getRPCPayload("devDiagnostic",r))}diagnoseMigrationHistory(r){return this.runCommand(this.getRPCPayload("diagnoseMigrationHistory",r))}ensureConnectionValidity(r){return this.runCommand(this.getRPCPayload("ensureConnectionValidity",r))}evaluateDataLoss(r){return this.runCommand(this.getRPCPayload("evaluateDataLoss",r))}getDatabaseDescription(r){return this.runCommand(this.getRPCPayload("getDatabaseDescription",{schema:r}))}getDatabaseVersion(r){return this.runCommand(this.getRPCPayload("getDatabaseVersion",r))}async introspect({schema:r,force:n=!1,baseDirectoryPath:i,compositeTypeDepth:a=-1,namespaces:o}){this.latestSchema=r;try{let c=await this.runCommand(this.getRPCPayload("introspect",{schema:r,force:n,compositeTypeDepth:a,namespaces:o,baseDirectoryPath:i})),{views:u}=c;if(u){let l=this.schemaPath??x1e.default.join(process.cwd(),"prisma");await b1e({views:u,schemaPath:l})}return c}finally{this.stop()}}migrateDiff(r){return this.runCommand(this.getRPCPayload("diff",r))}listMigrationDirectories(r){return this.runCommand(this.getRPCPayload("listMigrationDirectories",r))}markMigrationApplied(r){return this.runCommand(this.getRPCPayload("markMigrationApplied",r))}markMigrationRolledBack(r){return this.runCommand(this.getRPCPayload("markMigrationRolledBack",r))}reset(){return this.runCommand(this.getRPCPayload("reset",void 0))}schemaPush(r){return this.runCommand(this.getRPCPayload("schemaPush",r))}introspectSql(r){return this.runCommand(this.getRPCPayload("introspectSql",r))}stop(){this.child&&(this.child.kill(),this.isRunning=!1)}rejectAll(r){Object.entries(this.listeners).map(([n,i])=>{i(null,r),delete this.listeners[n]})}registerCallback(r,n){this.listeners[r]=n}handleResponse(r){let n;try{n=JSON.parse(r)}catch{console.error(`Could not parse Schema engine response: ${r.slice(0,200)}`)}if(n){if(n.id&&(n.result!==void 0||n.error!==void 0))this.listeners[n.id]||console.error(`Got result for unknown id ${n.id}`),this.listeners[n.id]&&(this.listeners[n.id](n),delete this.listeners[n.id]);else if(n.method&&n.id!==void 0&&n.method==="print"&&n.params?.content!==void 0){process.stdout.write(n.params.content+` -`);let i={id:n.id,jsonrpc:"2.0",result:{}};this.child.stdin.write(JSON.stringify(i)+` -`)}}}init(){return this.initPromise||(this.initPromise=this.internalInit()),this.initPromise}internalInit(){return new Promise(async(r,n)=>{try{let{PWD:i,...a}=process.env,o=await wu("schema-engine");i6("starting Schema engine with binary: "+o);let c=[],u=process.cwd();if(this.schemaPath){let l=await Bn(this.schemaPath),f=await Ve({datamodel:l});u=Sa(f,this.schemaPath);let p=l.flatMap(([g])=>["-d",g]);c.push(...p)}this.enabledPreviewFeatures&&Array.isArray(this.enabledPreviewFeatures)&&this.enabledPreviewFeatures.length>0&&c.push("--enabled-preview-features",this.enabledPreviewFeatures.join(",")),this.child=(0,w1e.spawn)(o,c,{cwd:u,stdio:["pipe","pipe",this.debug?process.stderr:"pipe"],env:{RUST_LOG:"info",RUST_BACKTRACE:"1",...a}}),this.isRunning=!0,this.child.on("error",l=>{console.error("[schema-engine] error: %s",l),this.rejectAll(l),n(l)}),this.child.on("exit",l=>{let f=x=>{this.rejectAll(x),n(x)},p=this.messages.join(` -`),g=this.lastError?.message||p,v=()=>{let x=`[EXIT_PANIC] -${p} -${this.lastError?.backtrace??""}`;f(new sn(Tbt(g),x,this.lastRequest,"LIFT_CLI",this.schemaPath,this.latestSchema?.files.map(E=>[E.path,E.content])))};switch(l){case 0:break;case 1:f(new Error(`Error in Schema engine: ${g}`));break;case 101:v();break;default:v()}}),this.child.stdin.on("error",l=>{Cbt(l)}),$C(this.child.stderr).on("data",l=>{let f=String(l);Dbt(f);try{let p=JSON.parse(f);this.messages.push(p.fields.message),p.level==="ERROR"&&(this.lastError=p.fields)}catch{}}),$C(this.child.stdout).on("data",l=>{this.handleResponse(String(l))}),setImmediate(()=>{r()})}catch(i){n(i)}})}async runCommand(r){if(process.env.FORCE_PANIC_SCHEMA_ENGINE&&r.method!=="getDatabaseVersion"&&(r=this.getRPCPayload("debugPanic",void 0)),await this.init(),this.child?.killed)throw new Error(`Can't execute ${JSON.stringify(r)} because Schema engine already exited.`);return new Promise((n,i)=>{if(this.registerCallback(r.id,(a,o)=>{if(o)return i(o);if(a.result!==void 0)n(a.result);else if(a.error)if(i6(a),a.error.data?.is_panic){let c=a.error.data?.error?.message??a.error.message,u=`[RESPONSE_ERROR_PANIC] -${a.error.data?.message??""}`;i(new sn(c,u,this.lastRequest,"LIFT_CLI",this.schemaPath,this.latestSchema?.files.map(l=>[l.path,l.content])))}else if(a.error.data?.message){let c=`${oe(Wi(a.error.data.message))} -`;a.error.data?.error_code?(c=oe(`${a.error.data.error_code} - -`)+c,i(new LC(c,a.error.data.error_code))):i(new Error(c))}else i(new Error(`${oe("Error in RPC")} - Request: ${JSON.stringify(r,null,2)} -Response: ${JSON.stringify(a,null,2)} -${a.error.message} -`));else i(new Error(`Got invalid RPC response without .result property: ${JSON.stringify(a)}`))}),this.child.stdin.destroyed)throw new Error(`Can't execute ${JSON.stringify(r)} because Schema engine is destroyed.`);i6("SENDING RPC CALL",JSON.stringify(r)),this.child.stdin.write(JSON.stringify(r)+` -`),this.lastRequest=r})}getRPCPayload(r,n){return{id:Pbt++,jsonrpc:"2.0",method:r,params:n?{...n}:void 0}}};function Tbt(e){return`${oe(N(`Error in Schema engine. -Reason: `))}${e} -`}var Rbt=eval("require('../package.json')"),en=class{constructor(r,n){r?(this.schemaPath=MC.default.resolve(process.cwd(),r),this.migrationsDirectoryPath=MC.default.join(MC.default.dirname(this.schemaPath),"migrations"),this.engine=new Ia({schemaPath:this.schemaPath,enabledPreviewFeatures:n})):this.engine=new Ia({enabledPreviewFeatures:n})}stop(){this.engine.stop()}getPrismaSchema(){if(!this.schemaPath)throw new Error("this.schemaPath is undefined");return pt(this.schemaPath)}reset(){return this.engine.reset()}createMigration(r){return this.engine.createMigration(r)}diagnoseMigrationHistory({optInToShadowDatabase:r}){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");return this.engine.diagnoseMigrationHistory({migrationsDirectoryPath:this.migrationsDirectoryPath,optInToShadowDatabase:r})}listMigrationDirectories(){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");return this.engine.listMigrationDirectories({migrationsDirectoryPath:this.migrationsDirectoryPath})}devDiagnostic(){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");return this.engine.devDiagnostic({migrationsDirectoryPath:this.migrationsDirectoryPath})}async markMigrationApplied({migrationId:r}){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");return await this.engine.markMigrationApplied({migrationsDirectoryPath:this.migrationsDirectoryPath,migrationName:r})}markMigrationRolledBack({migrationId:r}){return this.engine.markMigrationRolledBack({migrationName:r})}applyMigrations(){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");return this.engine.applyMigrations({migrationsDirectoryPath:this.migrationsDirectoryPath})}async evaluateDataLoss(){if(!this.migrationsDirectoryPath)throw new Error("this.migrationsDirectoryPath is undefined");let r=as((await this.getPrismaSchema()).schemas);return this.engine.evaluateDataLoss({migrationsDirectoryPath:this.migrationsDirectoryPath,schema:r})}async push({force:r=!1}){let n=as((await this.getPrismaSchema()).schemas),{warnings:i,unexecutable:a,executedSteps:o}=await this.engine.schemaPush({force:r,schema:n});return{executedSteps:o,warnings:i,unexecutable:a}}async tryToRunGenerate(){if(!this.schemaPath)throw new Error("this.schemaPath is undefined");let r=[];process.stdout.write(` -`),(0,NC.default)(`Running generate... ${J("(Use --skip-generate to skip the generators)")}`);let n=await tc({schemaPath:this.schemaPath,printDownloadProgress:!0,version:_1e.enginesVersion,cliVersion:Rbt.version});for(let i of n){(0,NC.default)(`Running generate... - ${i.getPrettyName()}`);let a=Math.round(performance.now());try{await i.generate();let o=Math.round(performance.now());r.push(sy(i,o-a)),i.stop()}catch(o){r.push(`${o.message}`),i.stop()}}(0,NC.default)(r.join(` -`))}};var E1e=$e(`${N("Usage")} - -${J("$")} prisma db execute [options] - -${N("Options")} - --h, --help Display this help message - -${hs("Datasource input, only 1 must be provided:")} ---url URL of the datasource to run the command on ---schema Path to your Prisma schema file to take the datasource URL from - -${hs("Script input, only 1 must be provided:")} ---file Path to a file. The content will be sent as the script to be executed - -${N("Flags")} - ---stdin Use the terminal standard input as the script to be executed`),fb=class fb{static new(){return new fb}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--stdin":Boolean,"--file":String,"--schema":String,"--url":String,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("db execute",n,!n["--url"]),n["--help"])return this.help();if(await at({schemaPath:n["--schema"],printMessage:!1}),n["--stdin"]&&n["--file"])throw new Error(`--stdin and --file cannot be used at the same time. Only 1 must be provided. -See \`${te(Le("prisma db execute -h"))}\``);if(!n["--stdin"]&&!n["--file"])throw new Error(`Either --stdin or --file must be provided. -See \`${te(Le("prisma db execute -h"))}\``);if(n["--url"]&&n["--schema"])throw new Error(`--url and --schema cannot be used at the same time. Only 1 must be provided. -See \`${te(Le("prisma db execute -h"))}\``);if(!n["--url"]&&!n["--schema"])throw new Error(`Either --url or --schema must be provided. -See \`${te(Le("prisma db execute -h"))}\``);let i="";if(n["--file"])try{i=S1e.default.readFileSync(C1e.default.resolve(n["--file"]),"utf-8")}catch(c){throw c.code==="ENOENT"?new Error(`Provided --file at ${n["--file"]} doesn't exist.`):(console.error(`An error occurred while reading the provided --file at ${n["--file"]}`),c)}n["--stdin"]&&(i=await(0,D1e.default)());let a;if(n["--url"])a={tag:"url",url:n["--url"]};else{let c=await pt(n["--schema"]),u=await Ve({datamodel:c.schemas});a={tag:"schema",...Jh(c,u)}}let o=new en;try{await o.engine.dbExecute({script:i,datasourceType:a})}finally{o.stop()}return"Script executed successfully."}help(r){if(r)throw new Re(` -${r} - -${E1e}`);return fb.help}};fb.help=$e(` -${process.platform==="win32"?"":"\u{1F4DD} "}Execute native commands to your database - -This command takes as input a datasource, using ${te("--url")} or ${te("--schema")} and a script, using ${te("--stdin")} or ${te("--file")}. -The input parameters are mutually exclusive, only 1 of each (datasource & script) must be provided. - -The output of the command is connector-specific, and is not meant for returning data, but only to report success or failure. - -On SQL databases, this command takes as input a SQL script. -The whole script will be sent as a single command to the database. - -${hs("This command is currently not supported on MongoDB.")} - -${E1e} -${N("Examples")} - - Execute the content of a SQL script file to the datasource URL taken from the schema - ${J("$")} prisma db execute - --file ./script.sql \\ - --schema schema.prisma - - Execute the SQL script from stdin to the datasource URL specified via the \`DATABASE_URL\` environment variable - ${J("$")} echo 'TRUNCATE TABLE dev;' | \\ - prisma db execute \\ - --stdin \\ - --url="$DATABASE_URL" - - Like previous example, but exposing the datasource url credentials to your terminal history - ${J("$")} echo 'TRUNCATE TABLE dev;' | \\ - prisma db execute \\ - --stdin \\ - --url="mysql://root:root@localhost/mydb" -`);var pb=fb;var up=B(require("path"));function P1e(e){let r=0,n=0;for(let i of e.files)r+=(i.content.match(/^model\s+/gm)||[]).length,n+=(i.content.match(/^type\s+/gm)||[]).length;return{modelsCount:r,typesCount:n}}function T1e(e){return e?e.files.every(r=>r.content.trim()===""):!0}var R1e=B(fv());function A1e(e){return e.map(r=>String(new s6(r))).join(` - -`)}var Abt=2,s6=class{constructor(r){this.dataSource=r}toString(){let{dataSource:r}=this,n={provider:r.provider,url:r.url};return r.config&&typeof r.config=="object"&&Object.assign(n,r.config),`datasource ${r.name} { -${(0,R1e.default)(Obt(n),Abt)} -}`}};function Obt(e){let r=Object.keys(e).reduce((n,i)=>Math.max(n,i.length),0);return Object.entries(e).map(([n,i])=>`${n.padEnd(r)} = ${typeof i=="object"&&i&&i.value?JSON.stringify(i.value):JSON.stringify(i)}`).join(` -`)}var O1e=B(require("path"));function I1e(e,r){if(e.files.length===1){r.write(e.files[0].content+` -`);return}let n=e.files.sort((i,a)=>i.path.localeCompare(a.path));for(let i of n){let a=O1e.default.relative(process.cwd(),i.path);r.write(`// ${a} -${i.content} -`)}}var k1e=B(require("fs/promises"));async function F1e(e){await Promise.all(e.map(([r])=>k1e.default.rm(r)))}function $1e(e,r){let n=!1,i=r.map(([a,o])=>{let c=kbt(e,o);return c.replaced&&(n=!0),[a,c.content]});return n||Ibt(e,i),i}function Ibt(e,r){let n=r[0];bN(n,"There always should be at least on file in the schema"),n[1]=`${e} -${n[1]}`}function kbt(e,r){let n=r.split(/\r\n|\r|\n/g),i=Fbt(n);if(!i)return{replaced:!1,content:r};n.splice(i.startLine,i.endLine-i.startLine+1);let a=n.join(` -`).trim();return{replaced:!0,content:`${e} - -${a}`}}function Fbt(e){if(e.length<=2)return;let r=e.findIndex(i=>{let a=i.trim();return a.startsWith("datasource")&&a.endsWith("{")});if(r===-1)return;let n=-1;for(let i=r;iL1e.default.writeFile(r.path,r.content,"utf8")))}var w_e=B(x_e()),fxt={spinner:"dots",color:"cyan",indent:0,stream:process.stdout};function __e(e=!0,r={}){let n={...fxt,...r};return i=>{if(!e)return{success:()=>{},failure:()=>{}};n.stream?.write(` -`);let a=(0,w_e.default)(n);return a.start(i),{success:o=>{a.succeed(o)},failure:o=>{a.fail(o)}}}}var E_e=me("prisma:db:pull"),ym=class ym{static new(){return new ym}urlToDatasource(r,n){let i=n||eo(`${r.split(":")[0]}:`);return A1e([{config:{},provider:i,name:"db",url:r}])}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--url":String,"--print":Boolean,"--schema":String,"--schemas":String,"--force":Boolean,"--composite-type-depth":Number,"--local-d1":Boolean}),i=__e(!n["--print"]);if(n instanceof Error)return this.help(n.message);if(await Rr("db pull",n,!n["--url"]),n["--help"])return this.help();let a=n["--url"],o=await ry(n["--schema"]),c=o?.schemaPath??null,u=o?.schemaRootDir??process.cwd();E_e("schemaPathResult",o),c&&!n["--print"]?(process.stdout.write(J(`Prisma schema loaded from ${up.default.relative(process.cwd(),c)}`)+` -`),await at({schemaPath:n["--schema"],printMessage:!0}),Oi({datasourceInfo:await Ai({schemaPath:c})})):await at({schemaPath:n["--schema"],printMessage:!1});let l=!!n["--local-d1"];if(!a&&!c&&!l)throw new sb;let{firstDatasource:f,schema:p,validationWarning:g}=await He({url:a,schemaPath:c,fromD1:l}).when(F=>F.schemaPath!==null,async F=>{let L=await Bn(F.schemaPath),U=await Ve({datamodel:L,ignoreEnvVarErrors:!0}),V=U.generators.find(({name:W})=>W==="client")?.previewFeatures,j=U.datasources[0]?U.datasources[0]:void 0;if(F.url){let W=j?.provider;W==="postgres"&&(W="postgresql");let q=eo(`${F.url.split(":")[0]}:`),X=$1e(this.urlToDatasource(F.url,W),L);if(W&&q&&W!==q&&!(W==="cockroachdb"&&q==="postgresql"))throw new Error(`The database provider found in --url (${q}) is different from the provider found in the Prisma schema (${W}).`);return{firstDatasource:j,schema:X,validationWarning:void 0}}else if(F.fromD1){let W=await Xf({arg:"--from-local-d1"}),q=up.default.relative(up.default.dirname(F.schemaPath),W),X=[["schema.prisma",this.urlToDatasource(`file:${q}`,"sqlite")]],Q={firstDatasource:(await Ve({datamodel:X,ignoreEnvVarErrors:!0})).datasources[0],schema:X,validationWarning:void 0},ee=(V||[]).includes("driverAdapters"),ce=`Without the ${N("driverAdapters")} preview feature, the schema introspected via the ${N("--local-d1")} flag will not work with ${N("@prisma/client")}.`;return ee?Q:{...Q,validationWarning:ce}}else await Ve({datamodel:L,ignoreEnvVarErrors:!1});return{firstDatasource:j,schema:L,validationWarning:void 0}}).when(F=>F.fromD1===!0,async F=>{let L=await Xf({arg:"--from-local-d1"}),U=up.default.relative(process.cwd(),L),j=[["schema.prisma",`generator client { - provider = "prisma-client-js" - previewFeatures = ["driverAdapters"] -} -${this.urlToDatasource(`file:${U}`,"sqlite")}`]];return{firstDatasource:(await Ve({datamodel:j,ignoreEnvVarErrors:!0})).datasources[0],schema:j,validationWarning:void 0}}).when(F=>F.url!==void 0,async F=>{eo(`${F.url.split(":")[0]}:`);let L=[["schema.prisma",this.urlToDatasource(F.url)]];return{firstDatasource:(await Ve({datamodel:L,ignoreEnvVarErrors:!0})).datasources[0],schema:L,validationWarning:void 0}}).run();if(c){let F=await Bn(n["--schema"]),L=/\s*model\s*(\w+)\s*{/;if(F.some(([V,j])=>!!L.exec(j))&&!n["--force"]&&f?.provider==="mongodb")throw new Error(`Iterating on one schema using re-introspection with db pull is currently not supported with MongoDB provider. -You can explicitly ignore and override your current local schema file with ${te(Le("prisma db pull --force"))} -Some information will be lost (relations, comments, mapped fields, @ignore...), follow ${ke("https://github.com/prisma/prisma/issues/9585")} for more info.`)}let v=new Ia({schemaPath:c??void 0}),x=!n["--url"]&&c?` based on datasource defined in ${tt(up.default.relative(process.cwd(),c))}`:"",E=i(`Introspecting${x}`),D=Math.round(performance.now()),P,R;try{let F=await v.introspect({schema:as(p),baseDirectoryPath:u,force:n["--force"],compositeTypeDepth:n["--composite-type-depth"],namespaces:n["--schemas"]?.split(",")});P=F.schema,R=F.warnings,E_e("Introspection warnings",R)}catch(F){if(E.failure(),F.code==="P4001"&&T1e(P))throw new Error(` -${oe(N(`${F.code} `))}${oe("The introspected database was empty:")} - -${N("prisma db pull")} could not create any models in your ${N("schema.prisma")} file and you will not be able to generate Prisma Client with the ${N(Le("prisma generate"))} command. - -${N("To fix this, you have two options:")} - -- manually create a table in your database. -- make sure the database connection URL inside the ${N("datasource")} block in ${N("schema.prisma")} points to a database that is not empty (it must contain at least one table). - -Then you can run ${te(Le("prisma db pull"))} again. -`);if(F.code==="P1003")throw new Error(` -${oe(N(`${F.code} `))}${oe("The introspected database does not exist:")} - -${N("prisma db pull")} could not create any models in your ${N("schema.prisma")} file and you will not be able to generate Prisma Client with the ${N(Le("prisma generate"))} command. - -${N("To fix this, you have two options:")} - -- manually create a database. -- make sure the database connection URL inside the ${N("datasource")} block in ${N("schema.prisma")} points to an existing database. - -Then you can run ${te(Le("prisma db pull"))} again. -`);if(F.code==="P1012"){process.stdout.write(` -`);let L=Wi(F.message);throw new Error(`${oe(L)} -Introspection failed as your current Prisma schema file is invalid - -Please fix your current schema manually (using either ${te(Le("prisma validate"))} or the Prisma VS Code extension to understand what's broken and confirm you fixed it), and then run this command again. -Or run this command with the ${te("--force")} flag to ignore your current schema and overwrite it. All local modifications will be lost. -`)}throw process.stdout.write(` -`),F}let k=this.getWarningMessage(R);if(n["--print"])I1e(P,process.stdout),k.trim().length>0&&console.error(k.replace(/(\n)/gm,` -// `));else{c=c||"schema.prisma",n["--force"]&&await F1e(p),await N1e(P);let{modelsCount:F,typesCount:L}=P1e(P),U=`${F} ${F>1?"models":"model"}`,V=`${L} ${L>1?"embedded documents":"embedded document"}`,j;L>0?j=`${U} and ${V}`:j=`${U}`;let W=F+L>1?`${j} and wrote them`:`${j} and wrote it`,q=g?` -${ze(g)}`:"";E.success(`Introspected ${W} into ${tt(up.default.relative(process.cwd(),c))} in ${N(Ko(Math.round(performance.now())-D))} - ${ze(k)} -${`Run ${te(Le("prisma generate"))} to generate Prisma Client.`}${q}`)}return""}getWarningMessage(r){return r?` -${r}`:""}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${ym.help}`):ym.help}};ym.help=$e(` -Pull the state from the database to the Prisma schema using introspection - -${N("Usage")} - - ${J("$")} prisma db pull [flags/options] - -${N("Flags")} - - -h, --help Display this help message - --force Ignore current Prisma schema file - --print Print the introspected Prisma schema to stdout - -${N("Options")} - - --schema Custom path to your Prisma schema - --composite-type-depth Specify the depth for introspecting composite types (e.g. Embedded Documents in MongoDB) - Number, default is -1 for infinite depth, 0 = off - --schemas Specify the database schemas to introspect. This overrides the schemas defined in the datasource block of your Prisma schema. - --local-d1 Generate a Prisma schema from a local Cloudflare D1 database -${N("Examples")} - -With an existing Prisma schema - ${J("$")} prisma db pull - -Or specify a Prisma schema path - ${J("$")} prisma db pull --schema=./schema.prisma - -Instead of saving the result to the filesystem, you can also print it to stdout - ${J("$")} prisma db pull --print - -Overwrite the current schema with the introspected schema instead of enriching it - ${J("$")} prisma db pull --force - -Set composite types introspection depth to 2 levels - ${J("$")} prisma db pull --composite-type-depth=2 - -`);var bm=ym;var b6=B(Ju());var xm=class xm{static new(){return new xm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--accept-data-loss":Boolean,"--force-reset":Boolean,"--skip-generate":Boolean,"--schema":String,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("db push",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i}=await Zr(n["--schema"]),a=await Ai({schemaPath:i});Oi({datasourceInfo:a});let o=new en(i);try{let f=await nl("push",i);f&&process.stdout.write(` -`+f+` -`)}catch(f){throw process.stdout.write(` -`),f}let c=!1;if(n["--force-reset"]){process.stdout.write(` -`);try{await o.reset()}catch(g){throw o.stop(),g}let f=`The ${a.prettyProvider} database`;a.dbName&&(f+=` "${a.dbName}"`);let p=a.schemas?.length||0;a.schemas&&p>0?f+=` schema${p>1?"s":""} "${a.schemas.join(", ")}"`:a.schema&&(f+=` schema "${a.schema}"`),a.dbLocation&&(f+=` at "${a.dbLocation}"`),f+=` ${p>1?"were":"was"} successfully reset. -`,process.stdout.write(f),c=!0}let u=Math.round(performance.now()),l;try{l=await o.push({force:n["--accept-data-loss"]})}catch(f){throw o.stop(),f}if(l.unexecutable&&l.unexecutable.length>0){let f=[];f.push(`${N(oe(` -\u26A0\uFE0F We found changes that cannot be executed: -`))}`);for(let g of l.unexecutable)f.push(` \u2022 ${g}`);if(process.stdout.write(` -`),Pa())process.stdout.write(`${f.join(` -`)} - -`);else throw o.stop(),new Error(`${f.join(` -`)} - -Use the --force-reset flag to drop the database before push like ${N(te(Le("prisma db push --force-reset")))} -${N(oe("All data will be lost."))} - `);process.stdout.write(` -`),(await(0,b6.default)({type:"confirm",name:"value",message:`To apply this change we need to reset the database, do you want to continue? ${oe("All data will be lost")}.`})).value||(process.stdout.write(`Reset cancelled. -`),o.stop(),process.exit(130));try{await o.reset(),a.dbName&&a.dbLocation?process.stdout.write(`The ${a.prettyProvider} database "${a.dbName}" from "${a.dbLocation}" was successfully reset. -`):process.stdout.write(`The ${a.prettyProvider} database was successfully reset. -`),c=!0,await o.push({})}catch(g){throw o.stop(),g}}if(l.warnings&&l.warnings.length>0){process.stdout.write(N(ze(` -\u26A0\uFE0F There might be data loss when applying the changes: - -`)));for(let f of l.warnings)process.stdout.write(` \u2022 ${f} - -`);if(process.stdout.write(` -`),!n["--accept-data-loss"]){if(!Pa())throw o.stop(),new ab;process.stdout.write(` -`),(await(0,b6.default)({type:"confirm",name:"value",message:"Do you want to ignore the warning(s)?"})).value||(process.stdout.write(`Push cancelled. -`),o.stop(),process.exit(130));try{await o.push({force:!0})}catch(p){throw o.stop(),p}}}if(o.stop(),!c&&l.warnings.length===0&&l.executedSteps===0)process.stdout.write(` -The database is already in sync with the Prisma schema. -`);else{let f=`Done in ${Ko(Math.round(performance.now())-u)}`,p=process.platform==="win32"?"":"\u{1F680} ",g="Your database is now in sync with your Prisma schema.",v="Your database indexes are now in sync with your Prisma schema.",x=eo(`${a.url?.split(":")[0]}:`);process.stdout.write(` -${p}${x==="mongodb"?v:g} ${f} -`)}return!process.env.PRISMA_MIGRATE_SKIP_GENERATE&&!n["--skip-generate"]&&await o.tryToRunGenerate(),""}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${xm.help}`):xm.help}};xm.help=$e(` -${process.platform==="win32"?"":"\u{1F64C} "}Push the state from your Prisma schema to your database - -${N("Usage")} - - ${J("$")} prisma db push [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - --accept-data-loss Ignore data loss warnings - --force-reset Force a reset of the database before push - --skip-generate Skip triggering generators (e.g. Prisma Client) - -${N("Examples")} - - Push the Prisma schema state to the database - ${J("$")} prisma db push - - Specify a schema - ${J("$")} prisma db push --schema=./schema.prisma - - Ignore data loss warnings - ${J("$")} prisma db push --accept-data-loss -`);var gb=xm;var W_e=B(MF());var B_e=B(Pl()),T6=B(require("fs")),U_e=B(D_e());var ol=B(require("path")),G_e=B(P6()),R6=me("prisma:migrate:seed");async function wm(e){let r=process.cwd(),n=yxt(r,e),i=await ny(r);if(i&&i.data?.seed)return;let a=(0,U_e.default)()?"yarn add -D":"npm i -D",o=`${oe('To configure seeding in your project you need to add a "prisma.seed" property in your package.json with the command to execute it:')} - -1. Open the package.json of your project -`;return n.numberOfSeedFiles?(await bxt(),o+="2. Add the following example to it:",n.js?o+=` -\`\`\` -"prisma": { - "seed": "node ${n.js}" -} -\`\`\` -`:n.ts?o+=` -\`\`\` -"prisma": { - "seed": "ts-node ${n.ts}" -} -\`\`\` -If you are using ESM (ECMAScript modules): -\`\`\` -"prisma": { - "seed": "node --loader ts-node/esm ${n.ts}" -} -\`\`\` - -3. Install the required dependencies by running: -${te(`${a} ts-node typescript @types/node`)} -`:n.sh&&(o+=` -\`\`\` -"prisma": { - "seed": "${n.sh}" -} -\`\`\` -And run \`chmod +x ${n.sh}\` to make it executable.`)):o+=`2. Add one of the following examples to your package.json: - -${N("TypeScript:")} -\`\`\` -"prisma": { - "seed": "ts-node ./prisma/seed.ts" -} -\`\`\` -If you are using ESM (ECMAScript modules): -\`\`\` -"prisma": { - "seed": "node --loader ts-node/esm ./prisma/seed.ts" -} -\`\`\` - -And install the required dependencies by running: -${a} ts-node typescript @types/node - -${N("JavaScript:")} -\`\`\` -"prisma": { - "seed": "node ./prisma/seed.js" -} -\`\`\` - -${N("Bash:")} -\`\`\` -"prisma": { - "seed": "./prisma/seed.sh" -} -\`\`\` -And run \`chmod +x prisma/seed.sh\` to make it executable.`,o+=` -More information in our documentation: -${ke("https://pris.ly/d/seeding")}`,o}async function _m(e){let r=await ny(e);if(R6({prismaConfig:r}),!r||!r.data?.seed)return null;let n=r.data.seed;if(typeof n!="string")throw new Error(`Provided seed command \`${n}\` from \`${ol.default.relative(e,r.packagePath)}\` must be of type string`);if(!n)throw new Error(`Provided seed command \`${n}\` from \`${ol.default.relative(e,r.packagePath)}\` cannot be empty`);return n}async function Em({commandFromConfig:e,extraArgs:r}){let n=r?`${e} ${r}`:e;process.stdout.write(`Running seed command \`${hs(n)}\` ... -`);try{await B_e.default.command(n,{stdout:"inherit",stderr:"inherit"})}catch(i){let a=i;return R6({e:a}),console.error(N(oe(` -An error occurred while running the seed command:`))),console.error(oe(a.stderr||String(a))),!1}return!0}function yxt(e,r){let n=ol.default.relative(e,ol.default.join(e,"prisma"));r&&(n=ol.default.relative(e,ol.default.dirname(r)));let i=ol.default.join(n,"seed."),a={seedPath:i,numberOfSeedFiles:0,js:"",ts:"",sh:""},o=["js","ts","sh"];for(let c of o){let u=i+c;T6.default.existsSync(u)&&(a[c]=u,a.numberOfSeedFiles++)}return R6({detected:a}),a}async function bxt(){(await xxt())?.["ts-node"]&&fr.warn(ze('The "ts-node" script in the package.json is not used anymore since version 3.0 and can now be removed.'))}async function xxt(e=process.cwd()){try{let r=await(0,G_e.default)({cwd:e});if(!r)return null;let n=await T6.default.promises.readFile(r,"utf-8"),i=JSON.parse(n),{"ts-node":a}=i.scripts;return{"ts-node":a}}catch{return null}}var Sm=class Sm{static new(){return new Sm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String},!1);if(xe(n)){if(n instanceof W_e.ArgError&&n.code==="ARG_UNKNOWN_OPTION")throw new Error(`${n.message} -Did you mean to pass these as arguments to your seed script? If so, add a -- separator before them: -${J("$")} prisma db seed -- --arg1 value1 --arg2 value2`);return this.help(n.message)}if(n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let i=await _m(process.cwd());if(!i){let c=await pt(n["--schema"]),u=await wm(c?.schemaPath??null);if(u)throw new Error(u);return""}let a=n._.join(" ");if(await Em({commandFromConfig:i,extraArgs:a}))return` -${process.platform==="win32"?"":"\u{1F331} "}The seed command has been executed.`;process.exit(1)}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Sm.help}`):Sm.help}};Sm.help=$e(` -${process.platform==="win32"?"":"\u{1F64C} "}Seed your database - -${N("Usage")} - - ${J("$")} prisma db seed [options] - -${N("Options")} - - -h, --help Display this help message - -${N("Examples")} - - Passing extra arguments to the seed command - ${J("$")} prisma db seed -- --arg1 value1 --arg2 value2 -`);var vb=Sm;var lp=class lp{constructor(r){this.cmds=r}static new(r){return new lp(r)}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--preview-feature":Boolean,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n._.length===0||n["--help"])return this.help();let i=n._[0],a=this.cmds[i];if(a){let o;return i==="diff"?o=n["--preview-feature"]?[...n._.slice(1),"--preview-feature"]:n._.slice(1):o=n._.filter(u=>u!=="--preview-feature").slice(1),a.parse(o)}return gf(lp.help,i)}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${lp.help}`):lp.help}};lp.help=$e(` -Update the database schema with migrations - -${N("Usage")} - - ${J("$")} prisma migrate [command] [options] - -${N("Commands for development")} - - dev Create a migration from changes in Prisma schema, apply it to the database - trigger generators (e.g. Prisma Client) - reset Reset your database and apply all migrations, all data will be lost - -${N("Commands for production/staging")} - - deploy Apply pending migrations to the database - status Check the status of your database migrations - resolve Resolve issues with database migrations, i.e. baseline, failed migration, hotfix - -${N("Command for any stage")} - - diff Compare the database schema from two arbitrary sources - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -${N("Examples")} - - Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client) - ${J("$")} prisma migrate dev - - Reset your database and apply all migrations - ${J("$")} prisma migrate reset - - Apply pending migrations to the database in production/staging - ${J("$")} prisma migrate deploy - - Check the status of migrations in the production/staging database - ${J("$")} prisma migrate status - - Specify a schema - ${J("$")} prisma migrate status --schema=./schema.prisma - - Compare the database schema from two databases and render the diff as a SQL script - ${J("$")} prisma migrate diff \\ - --from-url "$DATABASE_URL" \\ - --to-url "postgresql://login:password@localhost:5432/db" \\ - --script -`);var yb=lp;var H_e=B(fv());function JC(e){let r=e.split("_");return r.length===1?gs(N(e)):`${r[0]}_${gs(N(r.slice(1).join("_")))}`}function fp(e,r,n){let i=Object.keys(n),a=`${e}/`;return r.forEach(o=>{a+=` - \u2514\u2500 ${JC(o)}/ -${(0,H_e.default)(i.map(c=>`\u2514\u2500 ${c}`).join(` -`),4)}`}),a}var wxt=me("prisma:migrate:deploy"),Dm=class Dm{static new(){return new Dm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("migrate deploy",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i}=await Zr(n["--schema"]);Oi({datasourceInfo:await Ai({schemaPath:i})});let a=new en(i);try{let u=await nl("apply",i);u&&process.stdout.write(` -`+u+` -`)}catch(u){throw process.stdout.write(` -`),u}let o=await a.listMigrationDirectories();if(wxt({listMigrationDirectoriesResult:o}),process.stdout.write(` -`),o.migrations.length>0){let u=o.migrations;process.stdout.write(`${u.length} migration${u.length>1?"s":""} found in prisma/migrations -`)}else process.stdout.write(`No migration found in prisma/migrations -`);let c;try{process.stdout.write(` -`);let{appliedMigrationNames:u}=await a.applyMigrations();c=u}finally{a.stop()}return process.stdout.write(` -`),c.length===0?te("No pending migrations to apply."):`The following migration(s) have been applied: - -${fp("migrations",c,{"migration.sql":""})} - -${te("All migrations have been successfully applied.")}`}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Dm.help}`):Dm.help}};Dm.help=$e(` -Apply pending migrations to update the database schema in production/staging - -${N("Usage")} - - ${J("$")} prisma migrate deploy [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -${N("Examples")} - - Deploy your pending migrations to your production/staging database - ${J("$")} prisma migrate deploy - - Specify a schema - ${J("$")} prisma migrate deploy --schema=./schema.prisma - -`);var bb=Dm;var ZC=B(Ju());function z_e(e,r=!1){if(e&&e.length>0){let n=[];n.push(`${N(oe(` -\u26A0\uFE0F We found changes that cannot be executed: -`))}`);for(let i of e)n.push(`${` \u2022 Step ${i.stepIndex} ${i.message}`}`);if(process.stdout.write(` -`),r){console.error(`${n.join(` -`)} -`);return}else return`${n.join(` -`)} - -You can use ${Le("prisma migrate dev --create-only")} to create the migration file, and manually modify it to address the underlying issue(s). -Then run ${Le("prisma migrate dev")} to apply it and verify it works. -`}}var O6=B(oEe()),QC=B(Ju());async function cEe(e){if(e)return{name:(0,O6.default)(e,{separator:"_"}).substring(0,200)};if((!Kf||Yf())&&!QC.prompt._injected?.length)return{name:""};let n="Enter a name for the new migration:";QC.prompt._injected?.length&&process.stdout.write(n+` -`);let i=await(0,QC.prompt)({type:"text",name:"name",message:n});return"name"in i?{name:(0,O6.default)(i.name,{separator:"_"}).substring(0,200)||""}:{userCancelled:"Canceled by user."}}var I6=me("prisma:migrate:dev"),Cm=class Cm{static new(){return new Cm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--name":String,"-n":"--name","--create-only":Boolean,"--schema":String,"--skip-generate":Boolean,"--skip-seed":Boolean,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(await Rr("migrate dev",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i,schemas:a}=await Zr(n["--schema"]),o=await Ai({schemaPath:i});Oi({datasourceInfo:o}),process.stdout.write(` -`),hf({schemas:a}),await Ve({datamodel:a,ignoreEnvVarErrors:!1});let c=await nl("create",i);c&&process.stdout.write(c+` - -`);let u=new en(i),l;try{l=await u.devDiagnostic(),I6({devDiagnostic:JSON.stringify(l,null,2)})}catch(E){throw u.stop(),E}let f=[];if(l.action.tag==="reset"){if(!n["--force"]){if(!Pa())throw u.stop(),new mm;let E=await this.confirmReset({datasourceInfo:o,reason:l.action.reason});process.stdout.write(` -`),E||(process.stdout.write(`Reset cancelled. -`),u.stop(),process.exit(130))}try{await u.reset()}catch(E){throw u.stop(),E}}try{let{appliedMigrationNames:E}=await u.applyMigrations();f.push(...E),E.length>0&&process.stdout.write(` -The following migration(s) have been applied: - -${fp("migrations",E,{"migration.sql":""})} -`)}catch(E){throw u.stop(),E}let p;try{p=await u.evaluateDataLoss(),I6({evaluateDataLossResult:p})}catch(E){throw u.stop(),E}let g=z_e(p.unexecutableSteps,n["--create-only"]);if(g)throw u.stop(),new Error(g);if(p.warnings&&p.warnings.length>0){process.stdout.write(N(` -\u26A0\uFE0F Warnings for the current datasource: - -`));for(let E of p.warnings)process.stdout.write(` \u2022 ${E.message} -`);if(process.stdout.write(` -`),!n["--force"]){if(!Pa())throw u.stop(),new mm;let E=n["--create-only"]?"Are you sure you want to create this migration?":"Are you sure you want to create and apply this migration?";(await(0,ZC.default)({type:"confirm",name:"value",message:E})).value||(process.stdout.write(`Migration cancelled. -`),u.stop(),process.exit(130))}}let v;if(p.migrationSteps>0||n["--create-only"]){let E=await cEe(n["--name"]);E.userCancelled?(process.stdout.write(E.userCancelled+` -`),u.stop(),process.exit(130)):v=E.name}let x;try{let E=await u.createMigration({migrationsDirectoryPath:u.migrationsDirectoryPath,migrationName:v||"",draft:!!n["--create-only"],schema:as((await u.getPrismaSchema()).schemas)});if(I6({createMigrationResult:E}),n["--create-only"])return u.stop(),`Prisma Migrate created the following migration without applying it ${JC(E.generatedMigrationName)} - -You can now edit it and apply it by running ${te(Le("prisma migrate dev"))}.`;let{appliedMigrationNames:D}=await u.applyMigrations();x=D}finally{u.stop()}if(f.length>0&&process.stdout.write(` -`),x.length===0?f.length>0?process.stdout.write(`${te("Your database is now in sync with your schema.")} -`):process.stdout.write(`Already in sync, no schema change or pending migration was found. -`):process.stdout.write(` -The following migration(s) have been created and applied from new schema changes: - -${fp("migrations",x,{"migration.sql":""})} - -${te("Your database is now in sync with your schema.")} -`),!process.env.PRISMA_MIGRATE_SKIP_GENERATE&&!n["--skip-generate"]&&(await u.tryToRunGenerate(),process.stdout.write(` -`)),(c||l.action.tag==="reset")&&!process.env.PRISMA_MIGRATE_SKIP_SEED&&!n["--skip-seed"])try{let E=await _m(process.cwd());if(E)process.stdout.write(` -`),await Em({commandFromConfig:E})?process.stdout.write(` -${process.platform==="win32"?"":"\u{1F331} "}The seed command has been executed. -`):process.exit(1);else{let{schemaPath:D}=await pt(n["--schema"]);await wm(D)}}catch(E){console.error(E)}return""}async confirmReset({datasourceInfo:r,reason:n}){process.stdout.write(n+` -`);let i="";["PostgreSQL","SQL Server"].includes(r.prettyProvider)?r.schemas?.length?i=`We need to reset the following schemas: "${r.schemas.join(", ")}"`:r.schema?i=`We need to reset the "${r.schema}" schema`:i="We need to reset the database schema":i=`We need to reset the ${r.prettyProvider} database "${r.dbName}"`,r.dbLocation&&(i+=` at "${r.dbLocation}"`);let a=`${i} -Do you want to continue? ${oe("All data will be lost")}.`;return ZC.default._injected?.length&&process.stdout.write(a+` -`),(await(0,ZC.default)({type:"confirm",name:"value",message:a})).value}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Cm.help}`):Cm.help}};Cm.help=$e(` -${process.platform==="win32"?"":"\u{1F3CB}\uFE0F "}Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client) - -${N("Usage")} - - ${J("$")} prisma migrate dev [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -n, --name Name the migration - --create-only Create a new migration but do not apply it - The migration will be empty if there are no changes in Prisma schema - --skip-generate Skip triggering generators (e.g. Prisma Client) - --skip-seed Skip triggering seed - -${N("Examples")} - - Create a migration from changes in Prisma schema, apply it to the database, trigger generators (e.g. Prisma Client) - ${J("$")} prisma migrate dev - - Specify a schema - ${J("$")} prisma migrate dev --schema=./schema.prisma - - Create a migration without applying it - ${J("$")} prisma migrate dev --create-only - `);var xb=Cm;var lEe=B(JG());var pp=B(require("path"));var eP=class{constructor(){this._capturedText=[],this._orig_stdout_write=null}startCapture(){this._orig_stdout_write=process.stdout.write,process.stdout.write=this._writeCapture.bind(this)}stopCapture(){this._orig_stdout_write&&(process.stdout.write=this._orig_stdout_write)}_writeCapture(r){this._capturedText.push(r)}getCapturedText(){return this._capturedText}clearCaptureText(){this._capturedText=[]}};var Zxt=me("prisma:migrate:diff"),uEe=$e(`${N("Usage")} - - ${J("$")} prisma migrate diff [options] - -${N("Options")} - - -h, --help Display this help message - -o, --output Writes to a file instead of stdout - -${hs("From and To inputs (1 `--from-...` and 1 `--to-...` must be provided):")} - --from-url A datasource URL - --to-url - - --from-empty Flag to assume from or to is an empty datamodel - --to-empty - - --from-schema-datamodel Path to a Prisma schema file, uses the ${hs("datamodel")} for the diff - --to-schema-datamodel - - --from-schema-datasource Path to a Prisma schema file, uses the ${hs("datasource url")} for the diff - --to-schema-datasource - - --from-migrations Path to the Prisma Migrate migrations directory - --to-migrations - - --from-local-d1 Automatically locate the local Cloudflare D1 database - --to-local-d1 - -${hs("Shadow database (only required if using --from-migrations or --to-migrations):")} - --shadow-database-url URL for the shadow database - -${N("Flags")} - - --script Render a SQL script to stdout instead of the default human readable summary (not supported on MongoDB) - --exit-code Change the exit code behavior to signal if the diff is empty or not (Empty: 0, Error: 1, Not empty: 2). Default behavior is Success: 0, Error: 1.`),wb=class wb{static new(){return new wb}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--output":String,"-o":"--output","--from-empty":Boolean,"--from-schema-datasource":String,"--from-schema-datamodel":String,"--from-url":String,"--from-migrations":String,"--from-local-d1":Boolean,"--to-empty":Boolean,"--to-schema-datasource":String,"--to-schema-datamodel":String,"--to-url":String,"--to-migrations":String,"--to-local-d1":Boolean,"--shadow-database-url":String,"--script":Boolean,"--exit-code":Boolean,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("migrate diff",n,!1),n["--help"])return this.help();let i=+!!n["--from-empty"]+ +!!n["--from-schema-datasource"]+ +!!n["--from-schema-datamodel"]+ +!!n["--from-url"]+ +!!n["--from-migrations"]+ +!!n["--from-local-d1"],a=+!!n["--to-empty"]+ +!!n["--to-schema-datasource"]+ +!!n["--to-schema-datamodel"]+ +!!n["--to-url"]+ +!!n["--to-migrations"]+ +!!n["--to-local-d1"];if(i!==1||a!==1){let v=[];return i!==1&&v.push(`${i} \`--from-...\` parameter(s) provided. 1 must be provided.`),a!==1&&v.push(`${a} \`--to-...\` parameter(s) provided. 1 must be provided.`),this.help(`${v.join(` -`)}`)}if(n["--shadow-database-url"]&&(n["--from-local-d1"]||n["--to-local-d1"]))return this.help("The flag `--shadow-database-url` is not compatible with `--from-local-d1` or `--to-local-d1`.");let o;if(n["--from-empty"])o={tag:"empty"};else if(n["--from-schema-datasource"]){await at({schemaPath:n["--from-schema-datasource"],printMessage:!1});let v=await pt(pp.default.resolve(n["--from-schema-datasource"]),{argumentName:"--from-schema-datasource"}),x=await Ve({datamodel:v.schemas});o={tag:"schemaDatasource",...Jh(v,x)}}else if(n["--from-schema-datamodel"]){let v=await pt(pp.default.resolve(n["--from-schema-datamodel"]),{argumentName:"--from-schema-datamodel"});o={tag:"schemaDatamodel",...as(v.schemas)}}else n["--from-url"]?o={tag:"url",url:n["--from-url"]}:n["--from-migrations"]?o={tag:"migrations",path:pp.default.resolve(n["--from-migrations"])}:n["--from-local-d1"]&&(o={tag:"url",url:`file:${await Xf({arg:"--from-local-d1"})}`});let c;if(n["--to-empty"])c={tag:"empty"};else if(n["--to-schema-datasource"]){await at({schemaPath:n["--to-schema-datasource"],printMessage:!1});let v=await pt(pp.default.resolve(n["--to-schema-datasource"]),{argumentName:"--to-schema-datasource"}),x=await Ve({datamodel:v.schemas});c={tag:"schemaDatasource",...Jh(v,x)}}else if(n["--to-schema-datamodel"]){let v=await pt(pp.default.resolve(n["--to-schema-datamodel"]),{argumentName:"--to-schema-datamodel"});c={tag:"schemaDatamodel",...as(v.schemas)}}else n["--to-url"]?c={tag:"url",url:n["--to-url"]}:n["--to-migrations"]?c={tag:"migrations",path:pp.default.resolve(n["--to-migrations"])}:n["--to-local-d1"]&&(c={tag:"url",url:`file:${await Xf({arg:"--to-local-d1"})}`});let u=new en,l=new eP,f=n["--output"],p=!!f;p&&l.startCapture();let g;try{g=await u.engine.migrateDiff({from:o,to:c,script:n["--script"]||!1,shadowDatabaseUrl:n["--shadow-database-url"],exitCode:n["--exit-code"]})}finally{u.stop()}if(p){l.stopCapture();let v=l.getCapturedText();l.clearCaptureText(),await lEe.default.writeAsync(f,v.join(` -`))}return Zxt({migrateDiffOutput:g}),n["--exit-code"]&&g.exitCode&&process.exit(g.exitCode),""}help(r){if(r)throw new Re(` -${r} - -${uEe}`);return wb.help}};wb.help=$e(` -${process.platform==="win32"?"":"\u{1F50D} "}Compares the database schema from two arbitrary sources, and outputs the differences either as a human-readable summary (by default) or an executable script. - -${te("prisma migrate diff")} is a read-only command that does not write to your datasource(s). -${te("prisma db execute")} can be used to execute its ${te("--script")} output. - -The command takes a source ${te("--from-...")} and a destination ${te("--to-...")}. -The source and destination must use the same provider, -e.g. a diff using 2 different providers like PostgreSQL and SQLite is not supported. - -It compares the source with the destination to generate a diff. -The diff can be interpreted as generating a migration that brings the source schema (from) to the shape of the destination schema (to). -The default output is a human readable diff, it can be rendered as SQL using \`--script\` on SQL databases. - -See the documentation for more information ${ke("https://pris.ly/d/migrate-diff")} - -${uEe} -${N("Examples")} - - From database to database as summary - e.g. compare two live databases - ${J("$")} prisma migrate diff \\ - --from-url "$DATABASE_URL" \\ - --to-url "postgresql://login:password@localhost:5432/db2" - - From a live database to a Prisma datamodel - e.g. roll forward after a migration failed in the middle - ${J("$")} prisma migrate diff \\ - --shadow-database-url "$SHADOW_DB" \\ - --from-url "$PROD_DB" \\ - --to-schema-datamodel=next_datamodel.prisma \\ - --script - - From a live database to a datamodel - e.g. roll backward after a migration failed in the middle - ${J("$")} prisma migrate diff \\ - --shadow-database-url "$SHADOW_DB" \\ - --from-url "$PROD_DB" \\ - --to-schema-datamodel=previous_datamodel.prisma \\ - --script - - From a local D1 database to a datamodel - ${J("$")} prisma migrate diff \\ - --from-local-d1 \\ - --to-schema-datamodel=./prisma/schema.prisma \\ - --script - - From a Prisma datamodel to a local D1 database - ${J("$")} prisma migrate diff \\ - --from-schema-datamodel=./prisma/schema.prisma \\ - --to-local-d1 \\ - --script - - From a Prisma Migrate \`migrations\` directory to another database - e.g. generate a migration for a hotfix already applied on production - ${J("$")} prisma migrate diff \\ - --shadow-database-url "$SHADOW_DB" \\ - --from-migrations ./migrations \\ - --to-url "$PROD_DB" \\ - --script - - Execute the --script output with \`prisma db execute\` using bash pipe \`|\` - ${J("$")} prisma migrate diff \\ - --from-[...] \\ - --to-[...] \\ - --script | prisma db execute --stdin --url="$DATABASE_URL" - - Detect if both sources are in sync, it will exit with exit code 2 if changes are detected - ${J("$")} prisma migrate diff \\ - --exit-code \\ - --from-[...] \\ - --to-[...] -`);var _b=wb;var fEe=B(Ju());var Pm=class Pm{static new(){return new Pm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--force":Boolean,"-f":"--force","--skip-generate":Boolean,"--skip-seed":Boolean,"--schema":String,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(await Rr("migrate reset",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i}=await Zr(n["--schema"]);Oi({datasourceInfo:await Ai({schemaPath:i})});let a=await nl("create",i);if(a&&process.stdout.write(` -`+a+` -`),process.stdout.write(` -`),!n["--force"]){if(!Pa())throw new ob;let u=await(0,fEe.default)({type:"confirm",name:"value",message:`Are you sure you want to reset your database? ${oe("All data will be lost")}.`});process.stdout.write(` -`),u.value||(process.stdout.write(`Reset cancelled. -`),process.exit(130))}let o=new en(i),c;try{await o.reset();let{appliedMigrationNames:u}=await o.applyMigrations();c=u}finally{o.stop()}if(c.length===0?process.stdout.write(`${te(`Database reset successful -`)} -`):(process.stdout.write(` -`),process.stdout.write(`${te("Database reset successful")} - -The following migration(s) have been applied: - -${fp("migrations",c,{"migration.sql":""})} -`)),!process.env.PRISMA_MIGRATE_SKIP_GENERATE&&!n["--skip-generate"]&&await o.tryToRunGenerate(),!process.env.PRISMA_MIGRATE_SKIP_SEED&&!n["--skip-seed"]){let u=await _m(process.cwd());if(u)process.stdout.write(` -`),await Em({commandFromConfig:u})?process.stdout.write(` -${process.platform==="win32"?"":"\u{1F331} "}The seed command has been executed. -`):process.exit(1);else{let{schemaPath:l}=await pt(n["--schema"]);await wm(l)}}return""}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Pm.help}`):Pm.help}};Pm.help=$e(` -Reset your database and apply all migrations, all data will be lost - -${N("Usage")} - - ${J("$")} prisma migrate reset [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - --skip-generate Skip triggering generators (e.g. Prisma Client) - --skip-seed Skip triggering seed - -f, --force Skip the confirmation prompt - -${N("Examples")} - - Reset your database and apply all migrations, all data will be lost - ${J("$")} prisma migrate reset - - Specify a schema - ${J("$")} prisma migrate reset --schema=./schema.prisma - - Use --force to skip the confirmation prompt - ${J("$")} prisma migrate reset --force - `);var Eb=Pm;var Tm=class Tm{static new(){return new Tm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--applied":String,"--rolled-back":String,"--schema":String,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("migrate resolve",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i}=await Zr(n["--schema"]);if(Oi({datasourceInfo:await Ai({schemaPath:i})}),!n["--applied"]&&!n["--rolled-back"])throw new Error(`--applied or --rolled-back must be part of the command like: -${N(te(Le("prisma migrate resolve --applied 20201231000000_example")))} -${N(te(Le("prisma migrate resolve --rolled-back 20201231000000_example")))}`);if(n["--applied"]&&n["--rolled-back"])throw new Error("Pass either --applied or --rolled-back, not both.");if(n["--applied"]){if(typeof n["--applied"]!="string"||n["--applied"].length===0)throw new Error(`--applied value must be a string like ${N(te(Le("prisma migrate resolve --applied 20201231000000_example")))}`);await ib(i);let a=new en(i);try{await a.markMigrationApplied({migrationId:n["--applied"]})}finally{a.stop()}return process.stdout.write(` -Migration ${n["--applied"]} marked as applied. -`),""}else{if(typeof n["--rolled-back"]!="string"||n["--rolled-back"].length===0)throw new Error(`--rolled-back value must be a string like ${N(te(Le("prisma migrate resolve --rolled-back 20201231000000_example")))}`);await ib(i);let a=new en(i);try{await a.markMigrationRolledBack({migrationId:n["--rolled-back"]})}finally{a.stop()}return process.stdout.write(` -Migration ${n["--rolled-back"]} marked as rolled back. -`),""}}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Tm.help}`):Tm.help}};Tm.help=$e(` -Resolve issues with database migrations in deployment databases: -- recover from failed migrations -- baseline databases when starting to use Prisma Migrate on existing databases -- reconcile hotfixes done manually on databases with your migration history - -Run "prisma migrate status" to identify if you need to use resolve. - -Read more about resolving migration history issues: ${ke("https://pris.ly/d/migrate-resolve")} - -${N("Usage")} - - ${J("$")} prisma migrate resolve [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - --applied Record a specific migration as applied - --rolled-back Record a specific migration as rolled back - -${N("Examples")} - - Update migrations table, recording a specific migration as applied - ${J("$")} prisma migrate resolve --applied 20201231000000_add_users_table - - Update migrations table, recording a specific migration as rolled back - ${J("$")} prisma migrate resolve --rolled-back 20201231000000_add_users_table - - Specify a schema - ${J("$")} prisma migrate resolve --rolled-back 20201231000000_add_users_table --schema=./schema.prisma -`);var Sb=Tm;var pEe=me("prisma:migrate:status"),Rm=class Rm{static new(){return new Rm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String},!1);if(xe(n))return this.help(n.message);if(await Rr("migrate status",n,!0),n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i}=await Zr(n["--schema"]);Oi({datasourceInfo:await Ai({schemaPath:i})});let a=new en(i);await ib(i);let o,c;try{o=await a.diagnoseMigrationHistory({optInToShadowDatabase:!1}),pEe({diagnoseResult:JSON.stringify(o,null,2)}),c=await a.listMigrationDirectories(),pEe({listMigrationDirectoriesResult:c})}finally{a.stop()}if(process.stdout.write(` -`),c.migrations.length>0){let l=c.migrations;process.stdout.write(`${l.length} migration${l.length>1?"s":""} found in prisma/migrations -`)}else process.stdout.write(`No migration found in prisma/migrations -`);let u=[];if(o.history?.diagnostic==="databaseIsBehind"?(u=o.history.unappliedMigrationNames,process.stdout.write(`Following migration${u.length>1?"s":""} have not yet been applied: -${u.join(` -`)} - -To apply migrations in development run ${N(te(Le("prisma migrate dev")))}. -To apply migrations in production run ${N(te(Le("prisma migrate deploy")))}. -`),process.exit(1)):o.history?.diagnostic==="historiesDiverge"&&(console.error(`Your local migration history and the migrations table from your database are different: - -The last common migration is: ${o.history.lastCommonMigrationName} - -The migration${o.history.unappliedMigrationNames.length>1?"s":""} have not yet been applied: -${o.history.unappliedMigrationNames.join(` -`)} - -The migration${o.history.unpersistedMigrationNames.length>1?"s":""} from the database are not found locally in prisma/migrations: -${o.history.unpersistedMigrationNames.join(` -`)}`),process.exit(1)),o.hasMigrationsTable){if(o.failedMigrationNames.length>0){let l=o.failedMigrationNames;console.error(`Following migration${l.length>1?"s":""} have failed: -${l.join(` -`)} - -During development if the failed migration(s) have not been deployed to a production database you can then fix the migration(s) and run ${N(te(Le("prisma migrate dev")))}. -`),console.error(`The failed migration(s) can be marked as rolled back or applied: - -- If you rolled back the migration(s) manually: -${N(te(Le(`prisma migrate resolve --rolled-back "${l[0]}"`)))} - -- If you fixed the database manually (hotfix): -${N(te(Le(`prisma migrate resolve --applied "${l[0]}"`)))} - -Read more about how to resolve migration issues in a production database: -${ke("https://pris.ly/d/migrate-resolve")}`),process.exit(1)}else if(process.stdout.write(` -`),u.length===0)return"Database schema is up to date!"}else if(c.migrations.length===0)console.error(`The current database is not managed by Prisma Migrate. - -Read more about how to baseline an existing production database: -${ke("https://pris.ly/d/migrate-baseline")}`),process.exit(1);else{let l=c.migrations.shift();console.error(`The current database is not managed by Prisma Migrate. - -If you want to keep the current database structure and data and create new migrations, baseline this database with the migration "${l}": -${N(te(Le(`prisma migrate resolve --applied "${l}"`)))} - -Read more about how to baseline an existing production database: -https://pris.ly/d/migrate-baseline`),process.exit(1)}return""}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Rm.help}`):Rm.help}};Rm.help=$e(` -Check the status of your database migrations - - ${N("Usage")} - - ${J("$")} prisma migrate status [options] - - ${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - - ${N("Examples")} - - Check the status of your database migrations - ${J("$")} prisma migrate status - - Specify a schema - ${J("$")} prisma migrate status --schema=./schema.prisma -`);var Db=Rm;var ewt=me("prisma:cli");async function k6(e){let r,n;try{r=new Ia({}),n=await r.getDatabaseVersion(e)}catch(i){ewt(i)}finally{r&&r.isRunning&&r.stop()}return n}var dEe=["postgresql","cockroachdb","mysql","sqlite"];async function F6(e,r){let n=await pt(e),i=await Ve({datamodel:n.schemas});if(!dEe.includes(i.datasources?.[0]?.activeProvider))throw new Error(`Typed SQL is supported only for ${dEe.join(", ")} providers`);if(!rwt(i))throw new Error(`\`typedSql\` preview feature needs to be enabled in ${n.schemaPath}`);let a=i.datasources[0];if(!a)throw new Error(`Could not find datasource in schema ${n.schemaPath}`);let o=jo(a).value;if(!o)throw new Error(`Could not get url from datasource ${a.name} in ${n.schemaPath}`);let c=new Ia({schemaPath:n.schemaPath}),u=[],l=[];try{for(let f of r){let p=await twt(c,o,f);p.ok?u.push(p.result):l.push(p.error)}}finally{c.stop()}return l.length>0?{ok:!1,errors:l}:{ok:!0,queries:u}}async function twt(e,r,n){try{let a=(await e.introspectSql({url:r,queries:[n]})).queries[0];return a?{ok:!0,result:a}:{ok:!1,error:{fileName:n.fileName,message:"Invalid response from schema engine"}}}catch(i){return{ok:!1,error:{fileName:n.fileName,message:String(i)}}}}function rwt(e){return e.generators.some(r=>r?.previewFeatures?.includes("typedSql"))}var $n=B(require("path"));var M6=require("@prisma/engines");var tP=require("@prisma/engines");var N6=B(require("os"));var $6=B(require("fs")),hEe=B(require("module")),mEe=B(P6());async function gEe(e=process.cwd()){return await nwt(e)??await iwt(e)}async function nwt(e=process.cwd()){try{let r=swt("@prisma/client/package.json",e);if(!r)return null;let n=await $6.default.promises.readFile(r,"utf-8"),i=JSON.parse(n);return i.version?i.version:null}catch{return null}}async function iwt(e=process.cwd()){try{let r=await(0,mEe.default)({cwd:e});if(!r)return null;let n=await $6.default.promises.readFile(r,"utf-8"),i=JSON.parse(n),a=i.dependencies?.["@prisma/client"]??i.devDependencies?.["@prisma/client"];return a||null}catch{return null}}function swt(e,r){try{return require.resolve(e,{paths:hEe.default._nodeModulePaths(r)})}catch{return null}}var L6=Cb(),Am=class Am{static new(){return new Am}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--version":Boolean,"-v":"--version","--json":Boolean,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n["--help"])return this.help();await at({printMessage:!n["--json"]});let i=await Hr(),a=(0,tP.getCliQueryEngineBinaryType)(),[o,c]=await wF(),u=o.map(v=>He(v).with({"query-engine":Cr.select()},x=>[`Query Engine${a==="libquery-engine"?" (Node-API)":" (Binary)"}`,x]).with({"schema-engine":Cr.select()},x=>["Schema Engine",x]).exhaustive()),l=await gEe(),f=[[L6.name,L6.version],["@prisma/client",l??"Not found"],["Computed binaryTarget",i],["Operating System",N6.default.platform()],["Architecture",N6.default.arch()],["Node.js",process.version],...u,["Schema Wasm",`@prisma/prisma-schema-wasm ${D_.prismaSchemaWasmVersion}`],["Default Engines Hash",tP.enginesVersion],["Studio",L6.devDependencies["@prisma/studio-server"]]];c.length>0&&(process.exitCode=1,c.forEach(v=>console.error(v)));let p=null;try{p=(await pt()).schemaPath}catch{p=null}let g=await this.getFeatureFlags(p);return g&&g.length>0&&f.push(["Preview Features",g.join(", ")]),Wl(f,{json:n["--json"]})}async getFeatureFlags(r){if(!r)return[];try{let n=await Bn(),a=(await Ve({datamodel:n,ignoreEnvVarErrors:!0})).generators.find(o=>o.previewFeatures.length>0);if(a)return a.previewFeatures}catch{}return[]}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Am.help}`):Am.help}};Am.help=$e(` - Print current version of Prisma components - - ${N("Usage")} - - ${J("$")} prisma -v [options] - ${J("$")} prisma version [options] - - ${N("Options")} - - -h, --help Display this help message - --json Output JSON -`);var Om=Am;var Fa=class Fa{constructor(r,n){this.cmds=r;this.ensureBinaries=n}static new(r,n){return new Fa(r,n)}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--version":Boolean,"-v":"--version","--json":Boolean,"--experimental":Boolean,"--preview-feature":Boolean,"--early-access":Boolean,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n["--version"])return await(0,M6.ensureBinariesExist)(),Om.new().parse(r);if(n._.length===0||n["--help"])return this.help();let i=n._[0];if(i==="lift")throw new Error(`${oe("prisma lift")} has been renamed to ${te("prisma migrate")}`);i==="introspect"&&(fr.warn(""),fr.warn(`${N(`The ${tt("prisma introspect")} command is deprecated. Please use ${te("prisma db pull")} instead.`)}`),fr.warn(""));let a=this.cmds[i];if(a){this.ensureBinaries.includes(i)&&await(0,M6.ensureBinariesExist)();let o;return n["--experimental"]?o=[...n._.slice(1),`--experimental=${n["--experimental"]}`]:n["--preview-feature"]?o=[...n._.slice(1),`--preview-feature=${n["--preview-feature"]}`]:n["--early-access"]?o=[...n._.slice(1),`--early-access=${n["--early-access"]}`]:o=n._.slice(1),a.parse(o)}return gf(this.help(),n._[0])}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Fa.help}`):Fa.help}};Fa.tryPdpMessage=`Optimize performance through connection pooling and caching with Prisma Accelerate -and capture real-time events from your database with Prisma Pulse. -Learn more at ${ke("https://pris.ly/cli/pdp")}`,Fa.boxedTryPdpMessage=N0({height:Fa.tryPdpMessage.split(` -`).length,width:0,str:Fa.tryPdpMessage,horizontalPadding:2}),Fa.help=$e(` - ${process.platform==="win32"?"":N(te("\u25ED "))}Prisma is a modern DB toolkit to query, migrate and model your database (${ke("https://prisma.io")}) - - ${N("Usage")} - - ${J("$")} prisma [command] - - ${N("Commands")} - - init Set up Prisma for your app - generate Generate artifacts (e.g. Prisma Client) - db Manage your database schema and lifecycle - migrate Migrate your database - studio Browse your data with Prisma Studio - validate Validate your Prisma schema - format Format your Prisma schema - version Displays Prisma version info - debug Displays Prisma debug info - - ${N("Flags")} - - --preview-feature Run Preview Prisma commands - --help, -h Show additional information about a command - -${Fa.boxedTryPdpMessage} - - ${N("Examples")} - - Set up a new Prisma project - ${J("$")} prisma init - - Generate artifacts (e.g. Prisma Client) - ${J("$")} prisma generate - - Browse your data - ${J("$")} prisma studio - - Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client) - ${J("$")} prisma migrate dev - - Pull the schema from an existing database, updating the Prisma schema - ${J("$")} prisma db pull - - Push the Prisma schema state to the database - ${J("$")} prisma db push - - Validate your Prisma schema - ${J("$")} prisma validate - - Format your Prisma schema - ${J("$")} prisma format - - Display Prisma version info - ${J("$")} prisma version - - Display Prisma debug info - ${J("$")} prisma debug - `);var rP=Fa;var Im=class Im{static new(){return new Im}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let i=(c,u)=>{let l=process.env[c],f=`- ${c}${u?` ${u}`:""}`;return l===void 0?J(f+":"):N(f+`: \`${l}\``)},a;try{a=ke((await pt(n["--schema"]))?.schemaPath)}catch(c){a=c.message}let o=ke(await Uv());return`${tt("-- Prisma schema --")} -Path: ${a} - -${tt("-- Local cache directory for engines files --")} -Path: ${o} - -${tt("-- Environment variables --")} -When not set, the line is dimmed and no value is displayed. -When set, the line is bold and the value is inside the \`\` backticks. - -For general debugging -${i("CI")} -${i("DEBUG")} -${i("NODE_ENV")} -${i("RUST_LOG")} -${i("RUST_BACKTRACE")} -${i("NO_COLOR")} -${i("TERM")} -${i("NODE_TLS_REJECT_UNAUTHORIZED")} -${i("NO_PROXY")} -${i("http_proxy")} -${i("HTTP_PROXY")} -${i("https_proxy")} -${i("HTTPS_PROXY")} - -For more information about Prisma environment variables: -See ${ke("https://www.prisma.io/docs/reference/api-reference/environment-variables-reference")} - -For hiding messages -${i("PRISMA_DISABLE_WARNINGS")} -${i("PRISMA_HIDE_PREVIEW_FLAG_WARNINGS")} -${i("PRISMA_HIDE_UPDATE_MESSAGE")} - -For downloading engines -${i("PRISMA_ENGINES_MIRROR")} -${i("PRISMA_BINARIES_MIRROR","(deprecated)")} -${i("PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING")} -${i("BINARY_DOWNLOAD_VERSION")} - -For configuring the Query Engine Type -${i("PRISMA_CLI_QUERY_ENGINE_TYPE")} -${i("PRISMA_CLIENT_ENGINE_TYPE")} - -For custom engines -${i("PRISMA_QUERY_ENGINE_BINARY")} -${i("PRISMA_QUERY_ENGINE_LIBRARY")} -${i("PRISMA_SCHEMA_ENGINE_BINARY")} -${i("PRISMA_MIGRATION_ENGINE_BINARY")} - -For the "postinstall" npm hook -${i("PRISMA_GENERATE_SKIP_AUTOINSTALL")} -${i("PRISMA_SKIP_POSTINSTALL_GENERATE")} -${i("PRISMA_GENERATE_IN_POSTINSTALL")} - -For "prisma generate" -${i("PRISMA_GENERATE_DATAPROXY")} -${i("PRISMA_GENERATE_NO_ENGINE")} - -For Prisma Client -${i("PRISMA_SHOW_ALL_TRACES")} -${i("PRISMA_CLIENT_NO_RETRY","(Binary engine only)")} - -For Prisma Migrate -${i("PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK")} -${i("PRISMA_MIGRATE_SKIP_GENERATE")} -${i("PRISMA_MIGRATE_SKIP_SEED")} - -For Prisma Studio -${i("BROWSER")} - -${tt("-- Terminal is interactive? --")} -${Kf()} - -${tt("-- CI detected? --")} -${Yf()} -`}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Im.help}`):Im.help}};Im.help=$e(` - Print information helpful for debugging and bug reports - - ${N("Usage")} - - ${J("$")} prisma debug [options] - - ${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema -`);var nP=Im;var vEe=B(require("fs/promises")),yEe=B(require("path"));var km=class km{static new(){return new km}async parse(r){let n=Math.round(performance.now()),i=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String,"--check":Boolean});if(i instanceof Error)return this.help(i.message);if(i["--help"])return this.help();let{schemaPath:a,schemas:o}=await Zr(i["--schema"]),c=await Mk({schemas:o});if(hf({schemas:c}),i["--check"]){for(let[f,p]of c){let g=o.find(x=>x[0]===f);if(!g)return new Re(`${N(oe("!"))} The schema ${tt(f)} is not found in the schema list.`);let[,v]=g;if(v!==p)return new Re(`${N(oe("!"))} There are unformatted files. Run ${tt("prisma format")} to format them.`)}return"All files are formatted correctly!"}for(let[f,p]of c)await vEe.default.writeFile(f,p);let u=Math.round(performance.now()),l=yEe.default.relative(process.cwd(),a);return`Formatted ${tt(l)} in ${Ko(u-n)} \u{1F680}`}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${km.help}`):km.help}};km.help=$e(` -Format a Prisma schema. - -${N("Usage")} - - ${J("$")} prisma format [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -${N("Examples")} - -With an existing Prisma schema - ${J("$")} prisma format - -Or specify a Prisma schema path - ${J("$")} prisma format --schema=./schema.prisma - - `);var iP=km;var E5=require("@prisma/engines");var S5=B(require("fs"));var hp=B(t6()),bP=B(require("path")),_Se=B(SEe());function B6(e){let r=e.datasources?.[0];return r!==void 0&&r.provider!=="sqlite"&&(r.url.fromEnvVar===null||r.directUrl?.fromEnvVar===null)?` -\u{1F6D1} Hardcoding URLs in your schema poses a security risk: ${ke("https://pris.ly/d/datasource-env")} -`:""}var U6=B(require("fs/promises"));var wc=B(require("path")),DEe="sql";async function G6(e){let r=await uwt(e),n=await F6(e,r);if(n.ok)return n.queries;throw new Error(lwt(n.errors))}function CEe(e){return wc.default.join(wc.default.dirname(e),DEe)}async function uwt(e){let r=wc.default.join(wc.default.dirname(e),DEe),n=await U6.default.readdir(r),i=[];for(let a of n){let{name:o,ext:c}=wc.default.parse(a);if(c!==".sql")continue;let u=wc.default.join(r,a);if(!z4(o))throw new Error(`${u} can not be used as a typed sql query: name must be a valid JS identifier`);if(o.startsWith("$"))throw new Error(`${u} can not be used as a typed sql query: name must not start with $`);let l=await U6.default.readFile(wc.default.join(r,a),"utf8");i.push({name:o,source:l,fileName:u})}return i}function lwt(e){let r=[`Errors while reading sql files: -`];for(let{fileName:n,message:i}of e)r.push(`In ${N(wc.default.relative(process.cwd(),n))}:`),r.push(i),r.push("");return r.join(` -`)}var gSe=B(mSe()),_5=class{constructor(){this._queue=[]}push(r){this._deferred?(this._deferred(r),this._deferred=void 0):this._queue.push(r)}nextEvent(){let r=this._queue.shift();return r?Promise.resolve(r):new Promise(n=>{this._deferred=n})}},vP=class{constructor(r){this.changeQueue=new _5;this.watcher=gSe.default.watch(r,{ignoreInitial:!0,followSymlinks:!0}),this.watcher.on("all",(n,i)=>{this.changeQueue.push(i)})}add(r){this.watcher.add(r)}async*[Symbol.asyncIterator](){for(;;)yield await this.changeQueue.nextEvent()}async stop(){await this.watcher.close()}};var vSe=`${ze(N("warn"))} Prisma 2.12.0 has breaking changes. -You can update your code with -${N("`npx @prisma/codemods update-2.12 ./`")} -Read more at ${ke("https://pris.ly/2.12")}`;var ySe=[{text:"Tip: Want real-time updates to your database without manual polling? Discover how with Pulse:",link:"https://pris.ly/tip-0-pulse"},{text:"Tip: Want to react to database changes in your app as they happen? Discover how with Pulse:",link:"https://pris.ly/tip-1-pulse"},{text:"Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more:",link:"https://pris.ly/tip-2-accelerate"},{text:"Tip: Interested in query caching in just a few lines of code? Try Accelerate today!",link:"https://pris.ly/tip-3-accelerate"},{text:"Tip: Easily identify and fix slow SQL queries in your app. Optimize helps you enhance your visibility:",link:"https://pris.ly/--optimize"},{text:"Tip: Curious about the SQL queries Prisma ORM generates? Optimize helps you enhance your visibility:",link:"https://pris.ly/tip-2-optimize"},{text:"Tip: Want to turn off tips and other hints?",link:"https://pris.ly/tip-4-nohints"},{text:"Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey:",link:"https://pris.ly/orm/survey/release-5-22"}];function bSe(e){return`${e.text} ${e.link}`}function xSe(){return ySe[Math.floor(Math.random()*ySe.length)]}function wSe(e){let r=!1,n=null;return async(...i)=>{if(r)return n=i,null;r=!0,await e(...i).catch(a=>console.error(a)),n&&(await e(...n).catch(a=>console.error(a)),n=null),r=!1}}var yP=eval("require('../package.json')"),Nm=class Nm{constructor(){this.logText="";this.hasGeneratorErrored=!1;this.runGenerate=wSe(async({generators:r})=>{let n=[];for(let i of r){let a=Math.round(performance.now());try{await i.generate();let o=Math.round(performance.now());n.push(sy(i,o-a)+` -`),i.stop()}catch(o){this.hasGeneratorErrored=!0,i.stop(),n.push(`${o.message} - -`)}}this.logText+=n.join(` -`)})}static new(){return new Nm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--watch":Boolean,"--schema":String,"--data-proxy":Boolean,"--accelerate":Boolean,"--no-engine":Boolean,"--no-hints":Boolean,"--generator":[String],"--postinstall":String,"--telemetry-information":String,"--allow-no-models":Boolean,"--sql":Boolean}),i=process.env.PRISMA_GENERATE_IN_POSTINSTALL,a=process.cwd();if(i&&i!=="true"&&(a=i),xe(n))return this.help(n.message);if(n["--help"])return this.help();let o=n["--watch"]||!1;await at({schemaPath:n["--schema"],printMessage:!0});let c=await J1t(n["--schema"],a,!!i),u=xSe();if(!c)return"";let{schemas:l,schemaPath:f}=c;TC(f);let p=await Ve({datamodel:l,ignoreEnvVarErrors:!0}),g,v,x=null,E;n["--sql"]&&(E=await G6(f));try{if(v=await tc({schemaPath:f,printDownloadProgress:!o,version:E5.enginesVersion,cliVersion:yP.version,generatorNames:n["--generator"],postinstall:!!n["--postinstall"],typedSql:E,noEngine:!!n["--no-engine"]||!!n["--data-proxy"]||!!n["--accelerate"]||!!process.env.PRISMA_GENERATE_DATAPROXY||!!process.env.PRISMA_GENERATE_ACCELERATE||!!process.env.PRISMA_GENERATE_NO_ENGINE,allowNoModels:!!n["--allow-no-models"]}),!v||v.length===0)this.logText+=`${mS} -`;else{let R=v.find(k=>k.options&&mn(k.options.generator.provider)==="prisma-client-js");x=R?.manifest?.version??null,g=!!R;try{await this.runGenerate({generators:v})}catch(k){this.logText+=`${k.message} - -`}}}catch(R){if(i)return console.error(`${Jn("info")} The postinstall script automatically ran \`prisma generate\`, which failed. -The postinstall script still succeeds but won't generate the Prisma Client. -Please run \`${Le("prisma generate")}\` to see the errors.`),"";if(o)this.logText+=`${R.message} - -`;else throw R}let D=!1;if(g)try{let R=X1t();if(R&&typeof R=="string"){let[k,F]=R.split(".");parseInt(k)==2&&parseInt(F)<12&&(D=!0)}}catch{}if(i&&D&&fr.should.warn())return"There have been breaking changes in Prisma Client since you updated last time.\nPlease run `prisma generate` manually.";let P=` -${te("Watching...")} ${J(f)} -`;if(o){(0,hp.default)(P+` -`+this.logText);let R=new vP(f);n["--sql"]&&R.add(CEe(f));for await(let k of R){(0,hp.default)(`Change in ${bP.default.relative(process.cwd(),k)}`);let F;try{if(n["--sql"]&&(E=await G6(f)),F=await tc({schemaPath:f,printDownloadProgress:!o,version:E5.enginesVersion,cliVersion:yP.version,generatorNames:n["--generator"],typedSql:E}),!F||F.length===0)this.logText+=`${mS} -`;else{(0,hp.default)(` -${te("Building...")} - -${this.logText}`);try{await this.runGenerate({generators:F}),(0,hp.default)(P+` -`+this.logText)}catch(L){this.logText+=`${L.message} - -`,(0,hp.default)(P+` -`+this.logText)}}}catch(L){this.logText+=`${L.message} - -`,(0,hp.default)(P+` -`+this.logText)}}}else{let R=v?.find(({options:L})=>L?.generator.provider&&mn(L?.generator.provider)==="prisma-client-js"),k="";if(R){let L=R.options?.generator;if(L?.previewFeatures.includes("deno")&&!!globalThis.Deno&&!L?.isCustomOutput)throw new Error(`Can't find output dir for generator ${N(L.name)} with provider ${N(L.provider.value)}. -When using Deno, you need to define \`output\` in the client generator section of your schema.prisma file.`);let V=D?` - -${vSe}`:"",j=n["--no-hints"]??!1,q=x&&yP.version!==x&&fr.should.warn()?` - -${ze(N("warn"))} Versions of ${N(`prisma@${yP.version}`)} and ${N(`@prisma/client@${x}`)} don't match. -This might lead to unexpected behavior. -Please make sure they have the same version.`:"";j?k=`${B6(p)}${V}${q}`:k=` -Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) - -${bSe(u)} -${B6(p)}${V}${q}`}let F=` -`+this.logText+(g&&!this.hasGeneratorErrored?k:"");if(this.hasGeneratorErrored){if(i)return fr.info(`The postinstall script automatically ran \`prisma generate\`, which failed. -The postinstall script still succeeds but won't generate the Prisma Client. -Please run \`${Le("prisma generate")}\` to see the errors.`),"";throw new Error(F)}else return F}return""}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Nm.help}`):Nm.help}};Nm.help=$e(` -Generate artifacts (e.g. Prisma Client) - -${N("Usage")} - - ${J("$")} prisma generate [options] - -${N("Options")} - -h, --help Display this help message - --schema Custom path to your Prisma schema - --watch Watch the Prisma schema and rerun after a change - --generator Generator to use (may be provided multiple times) - --no-engine Generate a client for use with Accelerate only - --no-hints Hides the hint messages but still outputs errors and warnings - --allow-no-models Allow generating a client without models - --sql Generate typed sql module - -${N("Examples")} - - With an existing Prisma schema - ${J("$")} prisma generate - - Or specify a schema - ${J("$")} prisma generate --schema=./schema.prisma - - Run the command with multiple specific generators - ${J("$")} prisma generate --generator client1 --generator client2 - - Watch Prisma schema file and rerun after each change - ${J("$")} prisma generate --watch - -`);var xP=Nm;function X1t(){try{let e=(0,_Se.default)(".prisma/client",{cwd:process.cwd()});if(!e){let r=bP.default.join(process.cwd(),"node_modules/.prisma/client");S5.default.existsSync(r)&&(e=r)}if(e){let r=bP.default.join(e,"index.js");if(S5.default.existsSync(r)){let n=require(r);return n?.prismaVersion?.client??n?.Prisma?.prismaVersion?.client}}}catch{return null}return null}async function J1t(e,r,n){if(n){let i=await ry(e,{cwd:r});return i||(fr.warn(`We could not find your Prisma schema in the default locations (see: ${ke("https://pris.ly/d/prisma-schema-location")}). -If you have a Prisma schema file in a custom path, you will need to run -\`prisma generate --schema=./path/to/your/schema.prisma\` to generate Prisma Client. -If you do not have a Prisma schema file yet, you can ignore this message.`),null)}return pt(e,{cwd:r})}var DSe=B(RF()),Ii=B(require("fs"));var cl=B(require("path"));var CSe=require("util");function wP(e){return N(rR(" ERROR "))+" "+oe(e)}var Q1t=e=>{let{datasourceProvider:r="postgresql",generatorProvider:n=r_t,previewFeatures:i=n_t,output:a=SSe,withModel:o=!1}=e||{},l=`// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema -${r!=="sqlite"?` -// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? -// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init -`:""} -generator client { - provider = "${n}" -${i.length>0?` previewFeatures = [${i.map(f=>`"${f}"`).join(", ")}] -`:""}${a!=SSe?` output = "${a}" -`:""}} - -datasource db { - provider = "${r}" - url = env("DATABASE_URL") -} -`;if(o){let f=`email String @unique - name String?`;switch(r){case"mongodb":l+=` -model User { - id String @id @default(auto()) @map("_id") @db.ObjectId - ${f} -} -`;break;case"cockroachdb":l+=` -model User { - id BigInt @id @default(sequence()) - ${f} -} -`;break;default:l+=` -model User { - id Int @id @default(autoincrement()) - ${f} -} -`}}return l},ESe=(e="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",r=!0)=>{let n=r?`# Environment variables declared in this file are automatically made available to Prisma. -# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema - -# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. -# See the documentation for all the connection string options: https://pris.ly/d/connection-strings - -`:"";return n+=`DATABASE_URL="${e}"`,n},Z1t=e=>{switch(e){case"mysql":return 3306;case"sqlserver":return 1433;case"mongodb":return 27017;case"postgresql":return 5432;case"cockroachdb":return 26257}},e_t=(e,r=Z1t(e),n="public")=>{switch(e){case"postgresql":return`postgresql://johndoe:randompassword@localhost:${r}/mydb?schema=${n}`;case"cockroachdb":return`postgresql://johndoe:randompassword@localhost:${r}/mydb?schema=${n}`;case"mysql":return`mysql://johndoe:randompassword@localhost:${r}/mydb`;case"sqlserver":return`sqlserver://localhost:${r};database=mydb;user=SA;password=randompassword;`;case"mongodb":return"mongodb+srv://root:randompassword@cluster0.ab1cd.mongodb.net/mydb?retryWrites=true&w=majority";case"sqlite":return"file:./dev.db";default:return}},t_t=()=>`node_modules -# Keep environment variables out of version control -.env -`,r_t="prisma-client-js",n_t=[],SSe="node_modules/.prisma/client",Mm=class Mm{static new(){return new Mm}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--url":String,"--datasource-provider":String,"--generator-provider":String,"--preview-feature":[String],"--output":String,"--with-model":Boolean});if((0,CSe.isError)(n)||n["--help"])return this.help();if(await Rr("init",n,!1),n._[0])throw Error("The init command does not take any argument.");let a=process.cwd(),o=cl.default.join(a,"prisma");Ii.default.existsSync(cl.default.join(a,"schema.prisma"))&&(console.log(wP(`File ${N("schema.prisma")} already exists in your project. - Please try again in a project that is not yet using Prisma. - `)),process.exit(1)),Ii.default.existsSync(o)&&(console.log(wP(`A folder called ${N("prisma")} already exists in your project. - Please try again in a project that is not yet using Prisma. - `)),process.exit(1)),Ii.default.existsSync(cl.default.join(o,"schema.prisma"))&&(console.log(wP(`File ${N("prisma/schema.prisma")} already exists in your project. - Please try again in a project that is not yet using Prisma. - `)),process.exit(1));let{datasourceProvider:c,url:u}=await He(n).with({"--datasource-provider":Cr.when(D=>!!D)},D=>{let P=D["--datasource-provider"].toLowerCase();if(!["postgresql","mysql","sqlserver","sqlite","mongodb","cockroachdb"].includes(P))throw new Error(`Provider "${n["--datasource-provider"]}" is invalid or not supported. Try again with "postgresql", "mysql", "sqlite", "sqlserver", "mongodb" or "cockroachdb".`);let R=P,k=e_t(R);return Promise.resolve({datasourceProvider:R,url:k})}).with({"--url":Cr.when(D=>!!D)},async D=>{let P=D["--url"],R=await Cf(P);if(R!==!0){let{code:F,message:L}=R;if(F!=="P1003")throw F?new Error(`${F}: ${L}`):new Error(L)}return{datasourceProvider:eo(`${P.split(":")[0]}:`),url:P}}).otherwise(()=>Promise.resolve({datasourceProvider:"postgresql",url:void 0})),l=n["--generator-provider"],f=n["--preview-feature"],p=n["--output"];Ii.default.existsSync(a)||Ii.default.mkdirSync(a),Ii.default.existsSync(o)||Ii.default.mkdirSync(o),Ii.default.writeFileSync(cl.default.join(o,"schema.prisma"),Q1t({datasourceProvider:c,generatorProvider:l,previewFeatures:f,output:p,withModel:n["--with-model"]}));let g=[],v=cl.default.join(a,".env");if(!Ii.default.existsSync(v))Ii.default.writeFileSync(v,ESe(u));else{let D=Ii.default.readFileSync(v,{encoding:"utf8"}),P=DSe.default.parse(D);Object.keys(P).includes("DATABASE_URL")?g.push(`${ze("warn")} Prisma would have added DATABASE_URL but it already exists in ${N(cl.default.relative(a,v))}`):Ii.default.appendFileSync(v,` - -# This was inserted by \`prisma init\`: -`+ESe(u))}let x=cl.default.join(a,".gitignore");try{Ii.default.writeFileSync(x,t_t(),{flag:"wx"})}catch(D){D.code==="EEXIST"?g.push(`${ze("warn")} You already have a .gitignore file. Don't forget to add \`.env\` in it to not commit any private information.`):console.error("Failed to write .gitignore file, reason: ",D)}let E=[];return c==="mongodb"?E.push("Define models in the schema.prisma file."):E.push(`Run ${te(Le("prisma db pull"))} to turn your database schema into a Prisma schema.`),E.push(`Run ${te(Le("prisma generate"))} to generate the Prisma Client. You can then start querying your database.`),E.push(`Tip: Explore how you can extend the ${te("ORM")} with scalable connection pooling, global caching, and real-time database events. Read: https://pris.ly/cli/beyond-orm`),(!u||n["--datasource-provider"])&&(n["--datasource-provider"]||E.unshift(`Set the ${te("provider")} of the ${te("datasource")} block in ${te("schema.prisma")} to match your database: ${te("postgresql")}, ${te("mysql")}, ${te("sqlite")}, ${te("sqlserver")}, ${te("mongodb")} or ${te("cockroachdb")}.`),E.unshift(`Set the ${te("DATABASE_URL")} in the ${te(".env")} file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started`)),` -\u2714 Your Prisma schema was created at ${te("prisma/schema.prisma")} - You can now open it in your favorite editor. -${g.length>0&&fr.should.warn()?` -${g.join(` -`)} -`:""} -Next steps: -${E.map((D,P)=>`${P+1}. ${D}`).join(` -`)} - -More information in our documentation: -${ke("https://pris.ly/d/getting-started")} - `}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${Mm.help}`):Mm.help}};Mm.help=$e(` - Set up a new Prisma project - - ${N("Usage")} - - ${J("$")} prisma init [options] - - ${N("Options")} - - -h, --help Display this help message - --datasource-provider Define the datasource provider to use: postgresql, mysql, sqlite, sqlserver, mongodb or cockroachdb - --generator-provider Define the generator provider to use. Default: \`prisma-client-js\` - --preview-feature Define a preview feature to use. - --output Define Prisma Client generator output path to use. - --url Define a custom datasource url - - ${N("Flags")} - - --with-model Add example model to created schema file - - ${N("Examples")} - - Set up a new Prisma project with PostgreSQL (default) - ${J("$")} prisma init - - Set up a new Prisma project and specify MySQL as the datasource provider to use - ${J("$")} prisma init --datasource-provider mysql - - Set up a new Prisma project and specify \`prisma-client-go\` as the generator provider to use - ${J("$")} prisma init --generator-provider prisma-client-go - - Set up a new Prisma project and specify \`x\` and \`y\` as the preview features to use - ${J("$")} prisma init --preview-feature x --preview-feature y - - Set up a new Prisma project and specify \`./generated-client\` as the output path to use - ${J("$")} prisma init --output ./generated-client - - Set up a new Prisma project and specify the url that will be used - ${J("$")} prisma init --url mysql://user:password@localhost:3306/mydb - - Set up a new Prisma project with an example model - ${J("$")} prisma init --with-model - `);var _P=Mm;var bt={};Xn(bt,{$:()=>D5,Accelerate:()=>k5,Auth:()=>$5,Environment:()=>q5,Login:()=>TP,Logout:()=>RP,Project:()=>G5,Pulse:()=>z5,ServiceToken:()=>X5,Workspace:()=>Q5});var EP=class extends Error{constructor(){super(`This feature is currently in Early Access. There may be bugs and it's not recommended to use it in production environments. -Please provide the ${te("--early-access")} flag to use this command.`)}};var SP=async(e,r)=>{let n=r[0];if(!n)return new Re("Unknown command.");let i=e[n];return i?r.find(c=>["-h","--help"].includes(c))?`Help output for this command will be available soon. In the meantime, visit ${ke("https://pris.ly/cli/platform-docs")} for more information.`:await i.parse(r.slice(1)):new Re(`Unknown command or parameter "${n}"`)};var PSe=e=>{let{command:r,subcommand:n,subcommands:i,options:a,examples:o,additionalContent:c}=e,u=n?`prisma platform ${r} ${n}`:r&&i?`prisma platform ${r} [command]`:"prisma platform [command]",l=$e(` -${N("Usage")} - - ${J("$")} ${u} [options] -`),f=i&&$e(` -${N("Commands")} - -${i.map(([E,D])=>`${E.padStart(15)} ${D}`).join(` -`)} - `),p=a&&$e(` -${N("Options")} - -${a.map(([E,D,P])=>` ${E.padStart(15)} ${D&&D+","} ${P}`).join(` -`)} - `),g=o&&$e(` -${N("Examples")} - -${o.map(E=>` ${J("$")} ${E}`).join(` -`)} - `),v=c&&$e(` -${c.map(E=>`${E}`).join(` -`)} - `),x=[l,f,p,g,v].filter(Boolean).join("");return E=>E?new Re(` -${N(oe("!"))} ${E} -${x}`):x};var D5=class e{constructor(r){this.commands=r;this.help=PSe({subcommands:[["auth","Manage authentication with your Prisma Data Platform account"],["workspace","Manage workspaces"],["project","Manage projects"],["environment","Manage environments"],["apikey","Manage API keys"],["accelerate","Manage Prisma Accelerate"],["pulse","Manage Prisma Pulse"]],options:[["--early-access","","Enable early access features"],["--token","","Specify a token to use for authentication"]],examples:["prisma platform auth login","prisma platform project create --workspace "],additionalContent:["For detailed command descriptions and options, use `prisma platform [command] --help`",`For additional help visit ${ke("https://pris.ly/cli/platform-docs")}`]})}static new(r){return new e(r)}async parse(r){if(!!!r.find(o=>o.match(/early-access/)))throw new EP;let i=r=r.filter(o=>o!=="--early-access");return r.length===0||["-h","--help"].includes(i[0])?this.help():await SP(this.commands,i)}};var k5={};Xn(k5,{$:()=>i_t,Disable:()=>O5,Enable:()=>I5});var ki=()=>class TSe{constructor(r){this.commands=r}static new(r){return new TSe(r)}async parse(r){return await SP(this.commands,r)}};var i_t=ki();var s_t=(e,r,n)=>{let i=Vn(e,r,n);return i===void 0?new Error(`Missing ${r.join(" or ")} parameter`):i};function zn(e,r){let n=_e(e,r);if(xe(n))throw n;return n}var Ft=(e,r,n)=>{let i=s_t(e,r,n);if(i instanceof Error)throw new Error(`Missing ${r.join(" or ")} parameter`);return i},Vn=(e,r,n)=>{let i=Object.entries(e).find(([a])=>r.includes(a));if(!i&&n){let a=process.env[n];if(a)return a}return i?.[1]??void 0};var xo=e=>e instanceof Error?e:new Error(`Unknown error: ${e}`),RSe=e=>e,ASe=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),C5=(e,r)=>{try{return e()}catch(n){return r?r(xo(n)):xo(n)}};var a_t=(e,r)=>{let n={key:r.key??J,values:V4(r.values??{},i=>i===!0?RSe:i)};return Wl(Object.entries(n.values).map(([i,a])=>{let o=a(e[i]);return o===null?null:[n.key(String(i)),o]}).filter(Boolean))},mp=e=>`${te("Success!")} ${e}`,Xe={resourceCreated:e=>mp(`${e.__typename} ${e.displayName} - ${e.id} created.`),resourceDeleted:e=>mp(`${e.__typename} ${e.displayName} - ${e.id} deleted.`),resource:(e,r)=>Xe.table(e,{values:{displayName:n=>tR(N(n)),id:!0,createdAt:n=>n?Intl.DateTimeFormat().format(new Date(n)):null,...r}}),resourceList:e=>e.length===0?Xe.info("No records found."):e.map(r=>Xe.resource(r)).join(` - - -`),info:e=>e,sections:e=>e.join(` - -`),table:a_t,success:mp};var OSe=B(Vh()),ISe=B(Cb());var o_t=me("prisma:cli:platform:_lib:userAgent"),DP=async()=>{let e=await OSe.getSignature().catch(xo);xe(e)&&o_t(`await checkpoint.getSignature() failed silently with ${e.message}`);let r=xe(e)?"unknown":e;return`prisma-cli/${ISe.version} (Signature: ${r})`};var c_t=new URL("https://console.prisma.io/api"),kSe=new URL("https://console.prisma.io"),ft=async e=>{let r=await DP(),n="POST",i=new ci({"Content-Type":"application/json",Authorization:`Bearer ${e.token}`,"User-Agent":r}),a=JSON.stringify(e.body),o=await Ja(c_t.href,{method:n,headers:i,body:a}),c=await o.text();if(o.status>=400)throw new Error(c);let u=JSON.parse(c);if(u.error)throw new Error(`Error from PDP Platform API: ${c}`);let l=Object.values(u.data).filter(f=>typeof f=="object"&&f!==null&&f.__typename?.startsWith("Error"))[0];if(l)throw u_t({message:"",...l});return u.data},u_t=e=>new Error(e.message);var Gm=B(uu()),XSe=B(require("path"));var Bm={};Xn(Bm,{default:()=>A5});var VSe=B(R5(),1);Bx(Bm,B(R5(),1));var A5=VSe.default;var YSe=B(uu()),q_t=(e,{beforeParse:r,reviver:n}={})=>{let i=new TextDecoder().decode(e);return typeof r=="function"&&(i=r(i)),JSON.parse(i,n)},KSe=async(e,r)=>{let n=await YSe.default.readFile(e);return q_t(n,r)};var JSe=new A5("prisma-platform-cli").config(),Um=XSe.default.join(JSe,"auth.json"),j_t=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid credentials");if(typeof e.token!="string")throw new Error("Invalid credentials");return e},ul={path:Um,save:async e=>Gm.default.mkdirp(JSe).then(()=>Gm.default.writeJSON(Um,e)).catch(xo),load:async()=>Gm.default.pathExists(Um).then(e=>e?KSe(Um).then(j_t):null).catch(xo),delete:async()=>Gm.default.pathExists(Um).then(e=>e?Gm.default.remove(Um):void 0).then(()=>null).catch(xo)};var Dt={global:{"--token":String},workspace:{"--token":String,"--workspace":String,"-w":"--workspace"},project:{"--token":String,"--project":String,"-p":"--project"},environment:{"--token":String,"--environment":String,"-e":"--environment"},serviceToken:{"--token":String,"--serviceToken":String,"-s":"--serviceToken"},apikey:{"--token":String,"--apikey":String}},B_t=new Error(`No platform credentials found. Run ${te(Le("prisma platform auth login --early-access"))} first. Alternatively you can provide a token via the \`--token\` or \`-t\` parameters, or set the 'PRISMA_TOKEN' environment variable with a token.`),Ct=async e=>{let r=Vn(e,["--token","-t"],"PRISMA_TOKEN");if(r)return r;let n=await ul.load();if(xe(n))throw n;if(!n)throw B_t;return n.token},U_t="prisma://accelerate.prisma-data.net",PP=e=>{let r=new URL(U_t);return r.searchParams.set("api_key",e),N(r.href)};var O5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.environment}),i=await Ct(n),a=Ft(n,["--environment","-e"]);return await ft({token:i,body:{query:` - mutation ($input: MutationAccelerateDisableInput!) { - accelerateDisable(input: $input) { - __typename - ... on Error { - message - } - } - } - `,variables:{input:{environmentId:a}}}}),Xe.success(`Accelerate disabled. Prisma clients connected to ${a} will not be able to send queries through Accelerate.`)}};var I5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.environment,"--url":String,"--apikey":Boolean,"--region":String});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--environment","-e"]),o=Ft(n,["--url"]),c=Vn(n,["--apikey"])??!1,u=Vn(n,["--region"]),{databaseLinkCreate:l}=await ft({token:i,body:{query:` - mutation ($input: MutationDatabaseLinkCreateInput!) { - databaseLinkCreate(input: $input) { - __typename - ... on Error { - message - } - ... on DatabaseLink { - id - } - } - } - `,variables:{input:{environmentId:a,connectionString:o,...u&&{regionId:u}}}}}),{serviceTokenCreate:f}=await ft({token:i,body:{query:` - mutation ( - $accelerateEnableInput: MutationAccelerateEnableInput! - $serviceTokenCreateInput: MutationServiceTokenCreateInput! - $withServiceToken: Boolean! - ) { - accelerateEnable(input: $accelerateEnableInput) { - __typename - ... on Error { - message - } - } - serviceTokenCreate(input: $serviceTokenCreateInput) @include(if: $withServiceToken) { - __typename - ... on Error { - message - } - ... on ServiceTokenWithValue { - value - } - } - } - `,variables:{withServiceToken:c,accelerateEnableInput:{databaseLinkId:l.id},serviceTokenCreateInput:{environmentId:a}}}}),p=ke("https://pris.ly/d/accelerate-getting-started");return f?Xe.success(`Accelerate enabled. Use this Accelerate connection string to authenticate requests: - -${PP(f.value)} - -For more information, check out the Getting started guide here: ${p}`):Xe.success(`Accelerate enabled. Use your secure API key in your Accelerate connection string to authenticate requests. - -For more information, check out the Getting started guide here: ${p}`)}};var $5={};Xn($5,{$:()=>G_t,Login:()=>TP,Logout:()=>RP,Show:()=>F5});var G_t=ki();var eDe=B(ZSe()),tDe=B(require("http"));var rDe=B(PC());var K_t=me("prisma:cli:platform:login"),TP=class e{static new(){return new e}async parse(r){let n=_e(r,{"--optimize":Boolean});if(xe(n))return n;n["--optimize"]&&console.warn("The '--optimize' flag is deprecated. Use API keys instead.");let i=await ul.load();if(xe(i))throw i;if(i)return`Already authenticated. Run ${te(Le("prisma platform auth show --early-access"))} to see the current user.`;console.info(`Authenticating to Prisma Platform CLI via browser. -`);let a=tDe.default.createServer(),c=await(0,eDe.default)(a,0,"127.0.0.1"),u=await X_t({connection:"github",redirectTo:c.href});console.info("Visit the following URL in your browser to authenticate:"),console.info(ke(u.href));let l=await Promise.all([new Promise((f,p)=>{a.once("request",(g,v)=>{a.close(),v.setHeader("connection","close");let x=new URL(g.url||"/","http://localhost").searchParams,E=x.get("token")??"",D=x.get("error"),P=nDe();if(D)P.pathname+="/error",P.searchParams.set("error",D),p(new Error(D));else{let R=Q_t(x.get("user")??"");if(R){x.delete("token"),x.delete("user"),P.pathname+="/success";let k=new URLSearchParams({...Object.fromEntries(x.entries()),email:R.email});P.search=k.toString(),f({token:E,user:R})}else P.pathname+="/error",P.searchParams.set("error","Invalid user"),p(new Error("Invalid user"))}v.statusCode=302,v.setHeader("location",P.href),v.end()}),a.once("error",p)}),(0,rDe.default)(u.href)]).then(f=>f[0]).catch(xo);if(xe(l))throw new Error(`Authentication failed: ${l.message}`);{let f=await ul.save({token:l.token});if(xe(f))throw new Error("Writing credentials to disk failed",{cause:f})}return mp(`Authentication successful for ${l.user.email}`)}},nDe=()=>new URL("/auth/cli",kSe),X_t=async e=>{let n={client:await DP(),...e},i=J_t(n),a=nDe();return a.searchParams.set("state",i),a},J_t=e=>Buffer.from(JSON.stringify(e),"utf-8").toString("base64"),Q_t=e=>{try{let r=JSON.parse(Buffer.from(e,"base64").toString("utf-8"));return typeof r!="object"||r===null?!1:typeof r.id=="string"&&typeof r.displayName=="string"&&typeof r.email=="string"?r:null}catch(r){return K_t(`parseUser() failed silently with ${r}`),null}};var iDe=e=>{if(typeof e!="string")throw new Error("JWTs must use Compact JWS serialization, JWT must be a string");let{1:r,length:n}=e.split(".");if(n===5)throw new Error("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new Error("Invalid JWT");if(!r)throw new Error("JWTs must contain a payload");let i=C5(()=>atob(r),()=>new Error("Failed to base64 decode the payload."));if(xe(i))return i;let a=C5(()=>JSON.parse(i),()=>new Error("Failed to parse the decoded payload as JSON."));if(xe(a))return a;if(!ASe(a))throw new Error("Invalid JWT Claims Set.");return a};var RP=class e{static new(){return new e}async parse(){let r=await ul.load();if(xe(r))throw r;if(!r)return`You are not currently logged in. Run ${te(Le("prisma platform auth login --early-access"))} to log in.`;if(r.token){let n=iDe(r.token);!xe(n)&&n.jti&&await ft({token:r.token,body:{query:` - mutation ($input: MutationManagementTokenDeleteInput!) { - managementTokenDelete(input: $input) { - __typename - ... on Error { - message - } - } - } - `,variables:{input:{id:n.jti}}}})}return await ul.delete(),mp("You have logged out.")}};var F5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.global,"--sensitive":Boolean}),i=await Ct(n),{me:a}=await ft({token:i,body:{query:` - query { - me { - __typename - user { - __typename - id - email - displayName - } - } - } - `}}),o={...a.user,token:Vn(n,["--sensitive"])?i:null};return Xe.sections([Xe.info(`Currently authenticated as ${te(a.user.email)}`),Xe.resource(o,{email:!0,token:!0})])}};var q5={};Xn(q5,{$:()=>Z_t,Create:()=>L5,Delete:()=>N5,Show:()=>M5});var Z_t=ki();var L5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.project,"--name":String,"-n":"--name"}),i=await Ct(n),a=Ft(n,["--project","-p"]),o=Vn(n,["--name","-n"]),{environmentCreate:c}=await ft({token:i,body:{query:` - mutation ($input: MutationEnvironmentCreateInput!) { - environmentCreate(input: $input) { - __typename - ...on Error { - message - } - ...on Environment { - id - createdAt - displayName - } - } - } - `,variables:{input:{projectId:a,displayName:o}}}});return Xe.resourceCreated(c)}};var N5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.environment});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--environment","-e"]),{environmentDelete:o}=await ft({token:i,body:{query:` - mutation ($input: MutationEnvironmentDeleteInput!) { - environmentDelete(input: $input) { - __typename - ...on Error { - message - } - ...on Environment { - id - createdAt - displayName - } - } - } - `,variables:{input:{id:a}}}});return Xe.resourceDeleted(o)}};var M5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.project});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--project","-p"]),{project:o}=await ft({token:i,body:{query:` - query ($input: QueryProjectInput!) { - project(input: $input) { - __typename - ... on Error { - message - } - ... on Project { - environments { - __typename - id - createdAt - displayName - } - } - } - } - `,variables:{input:{id:a}}}});return Xe.resourceList(o.environments)}};var G5={};Xn(G5,{$:()=>eEt,Create:()=>j5,Delete:()=>B5,Show:()=>U5});var eEt=ki();var j5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.workspace,"--name":String,"-n":"--name"}),i=await Ct(n),a=Ft(n,["--workspace","-w"]),o=Vn(n,["--name","-n"]),{projectCreate:c}=await ft({token:i,body:{query:` - mutation ($input: MutationProjectCreateInput!) { - projectCreate(input: $input) { - __typename - ...on Error { - message - } - ...on Project { - id - createdAt - displayName - } - } - } - `,variables:{input:{workspaceId:a,displayName:o}}}});return Xe.resourceCreated(c)}};var B5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.project});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--project","-p"]),{projectDelete:o}=await ft({token:i,body:{query:` - mutation ($input: MutationProjectDeleteInput!) { - projectDelete(input: $input) { - __typename - ...on Error { - message - } - ...on ProjectNode { - id - createdAt - displayName - } - } - } - `,variables:{input:{id:a}}}});return Xe.resourceDeleted(o)}};var U5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.workspace});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--workspace","-w"]),{workspace:o}=await ft({token:i,body:{query:` - query ($input: QueryWorkspaceInput!) { - workspace(input: $input) { - __typename - ... on Error { - message - } - ... on Workspace { - projects { - __typename - id - createdAt - displayName - } - } - } - } - `,variables:{input:{id:a}}}});return Xe.resourceList(o.projects)}};var z5={};Xn(z5,{$:()=>tEt,Disable:()=>W5,Enable:()=>H5});var tEt=ki();var W5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.environment}),i=await Ct(n),a=Ft(n,["--environment","-e"]);return await ft({token:i,body:{query:` - mutation ($input: MutationPulseDisableInput!) { - pulseDisable(input: $input) { - __typename - ... on Error { - message - } - } - } - `,variables:{input:{environmentId:a}}}}),Xe.success("Pulse disabled.")}};var H5=class e{static new(){return new e}async parse(r){let n=_e(r,{...Dt.environment,"--url":String,"--apikey":Boolean});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--environment","-e"]),o=Ft(n,["--url"]),c=Vn(n,["--apikey"])??!1,{databaseLinkCreate:u}=await ft({token:i,body:{query:` - mutation ($input: MutationDatabaseLinkCreateInput!) { - databaseLinkCreate(input: $input) { - __typename - ... on Error { - message - } - ... on DatabaseLink { - id - } - } - } - `,variables:{input:{environmentId:a,connectionString:o}}}}),{serviceTokenCreate:l}=await ft({token:i,body:{query:` - mutation ( - $pulseEnableInput: MutationPulseEnableInput! - $serviceTokenCreateInput: MutationServiceTokenCreateInput! - $withServiceToken: Boolean! - ) { - pulseEnable(input: $pulseEnableInput) { - __typename - ... on Error { - message - } - } - serviceTokenCreate(input: $serviceTokenCreateInput) @include(if: $withServiceToken) { - __typename - ... on Error { - message - } - ... on ServiceTokenWithValue { - value - } - } - } - `,variables:{withServiceToken:c,pulseEnableInput:{databaseLinkId:u.id},serviceTokenCreateInput:{environmentId:a}}}}),f=ke("https://pris.ly/d/pulse-getting-started");return l?Xe.success(`Pulse enabled. Use this Pulse connection string to authenticate requests: - -${PP(l.value)} - -For more information, check out the Getting started guide here: ${f}`):Xe.success(`Pulse enabled. Use your secure API key in your Pulse connection string to authenticate requests. - -For more information, check out the Getting started guide here: ${f}`)}};var X5={};Xn(X5,{$:()=>rEt,Create:()=>V5,Delete:()=>Y5,Show:()=>K5});var rEt=ki();var V5=class e{constructor(r=!1){this.legacy=r}static new(r=!1){return new e(r)}async parse(r){let n=zn(r,{...Dt.environment,"--name":String,"-n":"--name"}),i=await Ct(n),a=Ft(n,["--environment","-e"]),o=Vn(n,["--name","-n"]),{serviceTokenCreate:c}=await ft({token:i,body:{query:` - mutation ($input: MutationServiceTokenCreateInput!) { - serviceTokenCreate(input: $input) { - __typename - ... on Error { - message - } - ... on ServiceTokenWithValue { - value - serviceToken { - __typename - id - createdAt - displayName - } - } - } - } - `,variables:{input:{displayName:o,environmentId:a}}}}),u=this.legacy?{...c.serviceToken,__typename:"APIKey"}:c.serviceToken;return Xe.sections([Xe.resourceCreated(u),Xe.info(c.value)])}};var Y5=class e{constructor(r=!1){this.legacy=r}static new(r=!1){return new e(r)}async parse(r){let n=zn(r,{...Dt[this.legacy?"apikey":"serviceToken"]}),i=await Ct(n),a=this.legacy?Ft(n,["--apikey"]):Ft(n,["--serviceToken","-s"]),{serviceTokenDelete:o}=await ft({token:i,body:{query:` - mutation ($input: MutationServiceTokenDeleteInput!) { - serviceTokenDelete(input: $input) { - __typename - ... on Error { - message - } - ... on ServiceTokenNode { - id - displayName - } - } - } - `,variables:{input:{id:a}}}});return Xe.resourceDeleted(this.legacy?{...o,__typename:"APIKey"}:o)}};var K5=class e{constructor(r=!1){this.legacy=r}static new(r=!1){return new e(r)}async parse(r){let n=_e(r,{...Dt.environment});if(xe(n))return n;let i=await Ct(n),a=Ft(n,["--environment","-e"]),{environment:o}=await ft({token:i,body:{query:` - query ($input: QueryEnvironmentInput!) { - environment(input: $input) { - __typename - ... on Error { - message - } - ... on Environment { - serviceTokens { - id - createdAt - displayName - } - } - } - } - `,variables:{input:{id:a}}}}),c=this.legacy?o.serviceTokens.map(u=>({...u,__typename:"APIKey"})):o.serviceTokens;return Xe.resourceList(c)}};var Q5={};Xn(Q5,{$:()=>nEt,Show:()=>J5});var nEt=ki();var J5=class e{static new(){return new e}async parse(r){let n=zn(r,{...Dt.global}),i=await Ct(n),{me:a}=await ft({token:i,body:{query:` - query { - me { - __typename - workspaces { - id - displayName - createdAt - } - } - } - `}});return Xe.resourceList(a.workspaces)}};var P2e=require("@prisma/engines");var sDe=require("buffer");function aDe(e,r,n,i){Object.defineProperty(e,r,{get:n,set:i,enumerable:!0,configurable:!0})}var oDe={};aDe(oDe,"serializeRPCMessage",()=>tq);aDe(oDe,"deserializeRPCMessage",()=>rq);var Z5="PrismaBigInt::",eq="PrismaBytes::";function tq(e){return JSON.stringify(e,(r,n)=>typeof n=="bigint"?Z5+n:n?.type==="Buffer"&&Array.isArray(n?.data)?eq+sDe.Buffer.from(n.data).toString("base64"):n)}function rq(e){return JSON.parse(e,(r,n)=>typeof n=="string"&&n.startsWith(Z5)?BigInt(n.substr(Z5.length)):typeof n=="string"&&n.startsWith(eq)?n.substr(eq.length):n)}var b2e=B(hDe()),xT=B(a2e()),x2e=B(require("http")),w2e=B(u2e()),_2e=require("zlib");var To=require("path");var Mj=require("crypto"),m2e=B(kj());function Lj(e,r,n,i){Object.defineProperty(e,r,{get:n,set:i,enumerable:!0,configurable:!0})}var g2e=globalThis,Fj={},bT={},Dp=g2e.parcelRequire1308;Dp==null&&(Dp=function(e){if(e in Fj)return Fj[e].exports;if(e in bT){var r=bT[e];delete bT[e];var n={id:e,exports:{}};return Fj[e]=n,r.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i},Dp.register=function(r,n){bT[r]=n},g2e.parcelRequire1308=Dp);var v2e=Dp.register;v2e("9lTzd",function(module,exports){Lj(module.exports,"guessEnginePaths",()=>guessEnginePaths),Lj(module.exports,"guessPrismaClientPath",()=>guessPrismaClientPath);var $5COlq=Dp("5COlq");async function guessEnginePaths({forceBinary,forceLibrary,resolveOverrides}){let queryEngineName,queryEngineType;if(forceLibrary?(queryEngineName=await(0,$5COlq.prismaEngineName)("query-engine","library"),queryEngineType="library"):forceBinary?(queryEngineName=await(0,$5COlq.prismaEngineName)("query-engine","binary"),queryEngineType="binary"):(queryEngineName=void 0,queryEngineType=void 0),!queryEngineName||!queryEngineType)return{queryEngine:void 0};let queryEnginePath;if(resolveOverrides[".prisma/client"])queryEnginePath=(0,To.resolve)(resolveOverrides[".prisma/client"],`../${queryEngineName}`);else if(resolveOverrides["@prisma/engines"])queryEnginePath=(0,To.resolve)(resolveOverrides["@prisma/engines"],`../../${queryEngineName}`);else{let atPrismaEnginesPath;try{atPrismaEnginesPath=eval("require.resolve('@prisma/engines')")}catch(e){throw new Error("Unable to resolve Prisma engine paths. This is a bug.")}queryEnginePath=(0,To.resolve)(atPrismaEnginesPath`../../${queryEngineName}`)}return{queryEngine:{type:queryEngineType,path:queryEnginePath}}}function guessPrismaClientPath({resolveOverrides}){let prismaClientPath=resolveOverrides["@prisma/client"]||eval("require.resolve('@prisma/client')");return(0,To.resolve)(prismaClientPath,"../")}});v2e("5COlq",function(e,r){Lj(e.exports,"prismaEngineName",()=>n);async function n(i,a){let o=await Hr(),c=o==="windows"?".exe":"";if(a==="library")return qa(o,"fs");if(a==="binary")return`${i}-${o}${c}`;throw new Error(`Unknown engine type: ${a}`)}});function j2t(e){return{models:$j(e.models),enums:$j(e.enums),types:$j(e.types)}}function $j(e){let r={};for(let{name:n,...i}of e)r[n]=i;return r}var ox=(0,m2e.debug)("prisma:studio-pcw"),B2t=/^\s*datasource\s+([^\s]+)\s*{/m,U2t=/url *= *env\("(.*)"\)/,G2t=/url *= *"(.*)"/;async function W2t({schema:e,schemaPath:r,dmmf:n,datasourceProvider:i,previewFeatures:a,datasources:o,engineType:c,paths:u,directUrl:l,versions:f}){let p=e.match(B2t)?.[1]??"",g=e.match(U2t)?.[1]??null,v=e.match(G2t)?.[1]??null,{getPrismaClient:x,PrismaClientKnownRequestError:E,PrismaClientRustPanicError:D,PrismaClientInitializationError:P,PrismaClientValidationError:R}=require(`${u.prismaClient}/runtime/${c}`),k=e,F=(0,Mj.createHash)("sha256").update(Buffer.from(k,"utf8").toString("base64")).digest("hex"),L=x({runtimeDataModel:j2t(n.datamodel),generator:{name:"studio-client",provider:{value:"prisma-client-js",fromEnvVar:null},output:null,binaryTargets:[],previewFeatures:a,config:{}},clientVersion:f?.prisma??"in-memory",engineVersion:f?.queryEngine??"in-memory",dirname:(0,To.dirname)(r),filename:(0,To.basename)(r),activeProvider:i,datasourceNames:[p],relativePath:"",relativeEnvPaths:{rootEnvPath:"",schemaEnvPath:""},inlineDatasources:{[p]:{url:{fromEnvVar:g,value:v}}},inlineSchema:k,inlineSchemaHash:F});return l&&(o={[p]:{url:l}}),ox("[getPrismaClient]",{prismaClientPath:u.prismaClient,queryEngine:u.queryEngine,previewFeatures:a,datasources:o}),{prisma:new L({errorFormat:"colorless",datasources:o,__internal:{engine:{binaryPath:u.queryEngine?.path}}}),PrismaClient:L,PrismaClientKnownRequestError:E,PrismaClientRustPanicError:D,PrismaClientInitializationError:P,PrismaClientValidationError:R}}function H2t({generator:e,forceBinary:r,forceLibrary:n,paths:i}){let{externalToInternalDmmf:a}=require(`${i.prismaClient}/generator-build/index.js`),o=a(e.options.dmmf),c=e.options.datasources?.[0]?.activeProvider;if(!c)throw new Error("Could not find a `datasource` declaration in your Prisma Schema. Please declare one, then try again. Read more about the Prisma Schema: https://pris.ly/prisma-schema");let u=e.config.previewFeatures||[];return n?!u.includes("nApi")&&u.push("nApi"):r&&(u=u.filter(l=>l!=="nApi")),{dmmf:o,datasourceProvider:c,previewFeatures:u}}async function z2t({schemaPath:e,forceBinary:r,forceLibrary:n,paths:i}){ox("[getDMMF] Calling getGenerator with:",{paths:i});let a=await tc({schemaPath:e,skipDownload:n||r||!1,overrideGenerators:[{name:"studio-client",provider:{fromEnvVar:"",value:"prisma-client-js"},previewFeatures:[],output:{fromEnvVar:"",value:""},binaryTargets:[],config:{},sourceFilePath:"schema.prisma"}],binaryPathsOverride:i.queryEngine?{[i.queryEngine.type==="binary"?"queryEngine":"libqueryEngine"]:i.queryEngine.path}:void 0,providerAliases:{"prisma-client-js":{generatorPath:`${i.prismaClient}/generator-build/index.js`,outputPath:"",isNode:!0}}}),o=a.find(c=>c.config.provider.value==="prisma-client-js");if(!o)throw new Error("Unable to get Prisma Client generator. This is a bug.");return a.filter(c=>c.config.provider.value!=="prisma-client-js").forEach(c=>c.stop()),o}var h2e=Dp("9lTzd");function V2t(e){return(0,Mj.createHash)("md5").update(e).digest("hex")}async function Y2t(e){iy(await mf(e,{cwd:(0,To.resolve)(e,"../")}),{conflictCheck:"error"})}var Nj=class{constructor(r,n,i={},a={},o){if(this.getDMMF=async()=>{if(this.dmmf&&this.datasourceProvider&&this.previewFeatures)return Promise.resolve({dmmf:this.dmmf,datasourceProvider:this.datasourceProvider,previewFeatures:this.previewFeatures});try{await Y2t(this.schemaPath);let c=this.resolvePrismaClient(),{queryEngine:u}=await this.resolvePrismaEngines();ox("[getDMMF] Calling getGenerator with:",{queryEngine:u,prismaClientPath:c});let l=await z2t({schemaPath:this.schemaPath,forceBinary:this.forcePrismaBinary,forceLibrary:this.forcePrismaLibrary,paths:{queryEngine:u,prismaClient:c}});if(!this.forcePrismaBinary&&!this.forcePrismaLibrary){let v=await Hr(),x,E;if(l.options.binaryPaths.queryEngine)x="binary",E=l.options.binaryPaths.queryEngine[v];else if(l.options.binaryPaths.libqueryEngine)x="library",E=l.options.binaryPaths.libqueryEngine[v];else throw new Error("Unable to resolve Prisma Query Engine. This is a bug.");this.resolvedPrismaEngines={queryEngine:{type:x,path:E}}}let{dmmf:f,datasourceProvider:p,previewFeatures:g}=H2t({generator:l,forceBinary:this.forcePrismaBinary,forceLibrary:this.forcePrismaLibrary,paths:{prismaClient:c}});this.dmmf=f,this.datasourceProvider=p,this.previewFeatures=g,l.stop(),ox("[getDMMF] finished",{prismaClientPath:c,prismaEngines:this.resolvedPrismaEngines,previewFeatures:g})}catch(c){throw console.error("Unable to get DMMF from Prisma Client: ",c),c}return{dmmf:this.dmmf,datasourceProvider:this.datasourceProvider,previewFeatures:this.previewFeatures}},this.request=async(c,{prisma:u}={})=>{u||(u=(await this.getPrismaClient()).prisma);try{let l;return c.operation==="$transaction"?l=await u.$transaction(c.queries.map(f=>this._request(u,f))):l=await this._request(u,c),l}catch(l){throw l}finally{await u.$disconnect()}},ox("[constructor]",a),this.schema=r,this.schemaPath=n,this.env={...i},this.resolveOverrides=a.resolve||{},this.forcePrismaBinary=!!a.forcePrismaBinary,this.forcePrismaLibrary=!!a.forcePrismaLibrary,this.readOnly=!!a.readOnly,this.datasources=a.datasources,this.directUrl=a.directUrl,this.versions=o,this.forcePrismaLibrary&&this.forcePrismaBinary)throw new Error("Invalid params: `forcePrismaBinary` and `forcePrismaLibrary` cannot both be truthy");this.forcePrismaLibrary?this.env.PRISMA_CLIENT_ENGINE_TYPE="library":this.forcePrismaBinary&&(this.env.PRISMA_CLIENT_ENGINE_TYPE="binary"),Object.assign(process.env,this.env)}get schemaHash(){return V2t(this.schema)}async resolvePrismaEngines(){if(this.resolvedPrismaEngines)return this.resolvedPrismaEngines;let{queryEngine:r}=await(0,h2e.guessEnginePaths)({forceBinary:this.forcePrismaBinary,forceLibrary:this.forcePrismaLibrary,resolveOverrides:this.resolveOverrides});return this.resolvedPrismaEngines={queryEngine:r},this.resolvedPrismaEngines}resolvePrismaClient(){return(0,h2e.guessPrismaClientPath)({resolveOverrides:this.resolveOverrides})}async getPrismaClient(){let{dmmf:r,datasourceProvider:n,previewFeatures:i}=await this.getDMMF(),{queryEngine:a}=await this.resolvePrismaEngines(),o=this.resolvePrismaClient();if(this.prismaClient)return this.prismaClient;let{prisma:c,PrismaClient:u,PrismaClientKnownRequestError:l,PrismaClientRustPanicError:f,PrismaClientInitializationError:p,PrismaClientValidationError:g}=await W2t({schema:this.schema,schemaPath:this.schemaPath,dmmf:r,engineType:a?.type??"library",datasourceProvider:n,datasources:this.datasources,previewFeatures:i,paths:{queryEngine:a,prismaClient:o},directUrl:this.directUrl,versions:this.versions});return this.prismaClient={prisma:c,PrismaClient:u,PrismaClientKnownRequestError:l,PrismaClientRustPanicError:f,PrismaClientInitializationError:p,PrismaClientValidationError:g},this.prismaClient}_request(r,n){let i=["findUnique","findMany","findFirst","count","aggregate","groupBy"];if(!n.modelName)throw new Error("Invalid Prisma Clinet query");let a=n.modelName.charAt(0).toLowerCase()+n.modelName.slice(1);if(!(a in r))throw new Error(`No model in schema with name \`${n.modelName}\``);if(this.readOnly&&!i.includes(n.operation))throw new Error("You are not permitted to perform this action");return r[a][n.operation].call(null,n.args)}},y2e=Nj;function Onr(e){let r=e.match(/^(?!(\s+\/\/\s+))\s+url\s+\=\s+(?env\()?\"(?.*)\"/im),{usesEnv:n,url:i}=r?.groups;return n?{env:i}:{url:i}}var _T=B(Vh()),E2e=require("crypto"),S2e=B(kj()),qj=class{constructor(r){this.respond=async n=>{let i={requestId:n.requestId,channel:`-${n.channel}`,action:n.action,payload:{error:null,data:null}};try{switch(n.action){case"getDMMF":let{dmmf:a}=await this.pcw.getDMMF();i.payload.data={dmmf:a,schemaHash:this.pcw.schemaHash};break;case"clientRequest":n.payload.data.schemaHash&&n.payload.data.schemaHash!==this.pcw.schemaHash?i.payload.error={type:"PrismaClientSchemaDriftedError",code:"P500",message:"The underlying schema has changed. Please reload Studio.",stack:""}:i.payload.data=await this.pcw.request(n.payload.data);break}}catch(a){i.payload.error={type:a.type,code:a.code,message:a.message,stack:a.message}}return i},this.options=r,this.schema=r.schemaText,this.pcw=new y2e(this.schema,r.schemaPath,{},{...r.prismaClient},r.versions)}},jj=class{constructor(r){this.name="Prisma Studio",this.schemaPath=r.schemaPath}respond(r){let n={requestId:r.requestId,channel:`-${r.channel}`,action:r.action,payload:{error:null,data:null}};switch(r.action){case"get":n.payload.data={name:this.name,schemaPath:this.schemaPath,lastOpenedAt:new Date().toISOString()};break;case"getAll":n.payload.data=[{name:this.name,schemaPath:this.schemaPath,lastOpenedAt:new Date().toISOString()}];break}return Promise.resolve(n)}},K2t=e=>(0,E2e.createHash)("sha256").update(e).digest("hex").substring(0,8),X2t=K2t,Bj=class{constructor(r){this.respond=async n=>{let i={requestId:n.requestId,channel:`-${n.channel}`,action:n.action,payload:{error:null,data:null}};try{switch(n.action){case"send":await this.send(n.payload.data);break}}catch(a){i.payload.error=a.message}return i},this.send=async({command:n,commandDetails:i,commandContext:a})=>{this.options.telemetry&&this.options.versions&&(0,_T.check)({product:"prisma-studio",command:n,version:this.options.versions.prisma,project_hash:X2t(this.options.schemaPath)})},this.options={schemaPath:r.schemaPath,telemetry:r.telemetry??!0,versions:r.versions},(0,_T.getSignature)().then(()=>{this.send({command:"studio_launch",commandDetails:{},commandContext:"{}"})})}},J2t=(0,S2e.default)("prisma:studio-server"),gl=J2t,wT=class{constructor(r){this.start=async()=>{try{gl("Starting Studio server");let n=(0,xT.default)();if(n.use(xT.default.text()),this.options.development)n.use((0,b2e.default)({origin:"*"}));else{n.use(function(a,o,c){(a.url==="/"||a.url==="/databrowser.html")&&(a.url="/pages/http/databrowser.html"),c()});let i=this.options.staticAssetDir;i&&n.use(xT.default.static(i,{etag:!1,setHeaders:a=>{a.set("Cache-Control","no-cache"),a.set("Last-Modified",new Date().toUTCString())}}))}n.post("/api",async(i,a)=>{gl("Incoming request: ",i.body);let o=rq(i.body),{requestId:c,channel:u,action:l,payload:f}=o,p;switch(u){case"project":p=await this.channels.project.respond(o);break;case"prisma":p=await this.channels.prisma.respond(o);break;case"telemetry":p=await this.channels.telemetry.respond(o);break;default:gl("Unimplemented `channel`, ignoring request:",o),p={requestId:c,channel:`-${u}`,action:l,payload:{error:null,data:null}};break}a.setHeader("Content-Type","application/json"),a.setHeader("Content-Encoding","gzip"),a.send((0,_2e.gzipSync)(Buffer.from(tq(p),"utf8"))),gl("Outgoing response: ",p)}),this.server=x2e.default.createServer(n),this.server.listen(this.options.port,this.options.hostname,()=>{gl(`Studio server is up at http://${this.options.hostname||"0.0.0.0"}:${this.options.port}/`)})}catch(n){console.log(`An error occured while starting Studio: - -`,n),process.exit(1)}},this.stop=n=>{gl("Stopping Studio server. Reason:",n),this.server&&this.server.close(i=>{i?gl("Unable to close server: ",i):gl("Closed out remaining connections")})},this.options=r,this.options.schemaPath=(0,w2e.default)(this.options.schemaPath),this.channels={project:new jj(r),prisma:new qj(r),telemetry:new Bj(r)}}};var Gj=B(C2e());var T2e=B(PC()),Wj=B(require("path")),DT=me("prisma:cli:studio"),tAt=Cb(),dg=class dg{static new(){return new dg}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--port":Number,"-p":"--port","--browser":String,"-b":"--browser","--hostname":String,"-n":"--hostname","--schema":String,"--telemetry-information":String});if(xe(n))return this.help(n.message);if(n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i,schemas:a}=await Zr(n["--schema"]),o=n["--hostname"],c=n["--port"]||await(0,Gj.default)({port:Gj.default.makeRange(5555,5600)}),u=n["--browser"]||process.env.BROWSER,l=Wj.default.resolve(__dirname,"../build/public"),f=ey({schemas:a}),p=await Ve({datamodel:a,ignoreEnvVarErrors:!0});process.env.PRISMA_DISABLE_WARNINGS="true";let g=new wT({schemaPath:i,schemaText:f,hostname:o,port:c,staticAssetDir:l,prismaClient:{resolve:{"@prisma/client":Wj.default.resolve(__dirname,"../prisma-client/index.js")},directUrl:bv(PI(p.datasources[0]))},versions:{prisma:tAt.version,queryEngine:P2e.enginesVersion}});await g.start();let v=`http://localhost:${c}`;if(!u||u.toLowerCase()!=="none")try{let x=await(0,T2e.default)(v,{app:u,url:!0});x.on("spawn",()=>{DT(`requested to open the url ${v}`)}),x.on("error",E=>{DT(E),DT(`failed to open the url ${v} in browser`)})}catch(x){DT(x)}return this.instance=g,`Prisma Studio is up on ${v}`}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${dg.help}`):dg.help}};dg.help=$e(` -Browse your data with Prisma Studio - -${N("Usage")} - - ${J("$")} prisma studio [options] - -${N("Options")} - - -h, --help Display this help message - -p, --port Port to start Studio on - -b, --browser Browser to open Studio in - -n, --hostname Hostname to bind the Express server to - --schema Custom path to your Prisma schema - -${N("Examples")} - - Start Studio on the default port - ${J("$")} prisma studio - - Start Studio on a custom port - ${J("$")} prisma studio --port 5555 - - Start Studio in a specific browser - ${J("$")} prisma studio --port 5555 --browser firefox - ${J("$")} BROWSER=firefox prisma studio --port 5555 - - Start Studio without opening in a browser - ${J("$")} prisma studio --port 5555 --browser none - ${J("$")} BROWSER=none prisma studio --port 5555 - - Specify a schema - ${J("$")} prisma studio --schema=./schema.prisma -`);var CT=dg;var R2e=B(Vh()),PT=class e{static new(){return new e}async parse(){let r=await R2e.getInfo(),n=await oy(),i=cy(),a=r.cacheItems.map(o=>({product:o.output.product,version:o.version,package:o.output.package,release_tag:o.output.release_tag,cli_path:o.cli_path,cli_path_hash:o.output.cli_path_hash,last_reminder:o.last_reminder,cached_at:o.cached_at}));return JSON.stringify({signature:r.signature,cachePath:r.cachePath,current:{projectPathHash:n,cliPathHash:i},cacheItems:a},void 0,2)}};var A2e=B(Vh()),Cp=me("prisma:cli:checkpoint");async function O2e({schemaPath:e,isPrismaInstalledGlobally:r,version:n,command:i,telemetryInformation:a}){if(process.env.CHECKPOINT_DISABLE)return Cp("runCheckpointClientCheck() is disabled by the CHECKPOINT_DISABLE env var."),0;try{let o=performance.now(),[c,{schemaProvider:u,schemaPreviewFeatures:l,schemaGeneratorsProviders:f}]=await Promise.all([oy(),rAt(e)]),p=cy(),v=performance.now()-o;Cp(`runCheckpointClientCheck(): Execution time for getting info: ${v} ms`);let x={product:"prisma",version:n,cli_path_hash:p,project_hash:c,schema_providers:u?[u]:void 0,schema_preview_features:l,schema_generators_providers:f,cli_install_type:r?"global":"local",command:i,information:a||process.env.PRISMA_TELEMETRY_INFORMATION,cli_path:process.argv[1]},E=performance.now(),D=await A2e.check(x),R=performance.now()-E;return Cp(`runCheckpointClientCheck(): Execution time for "await checkpoint.check(data)": ${R} ms`),D}catch(o){return Cp("Error from runCheckpointClientCheck()"),Cp(o),0}}async function rAt(e){let r,n,i;try{let a=await Bn(e);try{let o=await Ve({datamodel:a,ignoreEnvVarErrors:!0});o.datasources.length>0&&(r=o.datasources[0].provider),i=o.generators.filter(u=>u&&u.provider).map(u=>mn(u.provider));let c=o.generators.find(u=>mn(u.provider)==="prisma-client-js");c&&c.previewFeatures.length>0&&(n=c.previewFeatures)}catch(o){Cp("Error from tryToReadDataFromSchema() while processing the schema. This is not a fatal error. It will continue without the processed data."),Cp(o)}}catch{}return{schemaProvider:r,schemaPreviewFeatures:n,schemaGeneratorsProviders:i}}var nAt=["--url","--shadow-database-url","--from-url","--to-url","--schema","--file","--from-schema-datamodel","--to-schema-datamodel","--from-schema-datasource","--to-schema-datasource","--from-migrations","--to-migrations","--hostname","--name","--applied","--rolled-back","--token"],I2e=e=>{let r="[redacted]";for(let n=0;n{let o=i===a,c=i.indexOf(a);o?e[n+1]=r:c!==-1&&(e[n]=`${a}=${r}`)})}return e};var k2e=B(require("fs")),F2e=B(require("path"));function $2e(){if(k2e.default.existsSync(F2e.default.join(process.cwd(),"prisma.yml")))throw new Error("We detected a Prisma 1 project. For Prisma 1, please use the `prisma1` CLI instead.\nYou can install it with `npm install -g prisma1`.\nIf you want to upgrade to Prisma 2+, please have a look at our upgrade guide:\nhttp://pris.ly/d/upgrading-to-prisma2")}var L2e=ap();function M2e(e){let r=4,n="",i=e.data.previous_version,a=e.data.current_version,o=N2e(e.data.package,e.data.release_tag),c=N2e("@prisma/client",e.data.release_tag,{canBeGlobal:!1,canBeDev:!1});try{let[f]=i.split("."),[p]=a.split(".");f ${a} -${n}Run the following to update - ${N(o)} - ${N(c)}`,l=N0({height:r,width:59,str:u,horizontalPadding:2});console.error(l)}function N2e(e,r,n={canBeGlobal:!0,canBeDev:!0}){let i=process.env.npm_config_user_agent?.includes("yarn"),a="";return L2e==="yarn"&&n.canBeGlobal?a=`yarn global add ${e}`:L2e==="npm"&&n.canBeGlobal?a=`npm i -g ${e}`:i&&n.canBeDev?a=`yarn add --dev ${e}`:n.canBeDev?a=`npm i --save-dev ${e}`:i?a=`yarn add ${e}`:a=`npm i ${e}`,a+=`@${r}`,a}var q2e=B(require("path"));var hg=class hg{static new(){return new hg}async parse(r){let n=_e(r,{"--help":Boolean,"-h":"--help","--schema":String,"--telemetry-information":String});if(n instanceof Error)return this.help(n.message);if(n["--help"])return this.help();await at({schemaPath:n["--schema"],printMessage:!0});let{schemaPath:i,schemas:a}=await Zr(n["--schema"]),{lintDiagnostics:o}=Nk(()=>({lintDiagnostics:Nv({schemas:a})}),{schemas:a}),c=Mv(o);c&&fr.should.warn()&&console.warn(c),hf({schemas:a}),await Ve({datamodel:a,ignoreEnvVarErrors:!1});let u=q2e.default.relative(process.cwd(),i);return a.length>1?`The schemas at ${tt(u)} are valid \u{1F680}`:`The schema at ${tt(u)} is valid \u{1F680}`}help(r){return r?new Re(` -${N(oe("!"))} ${r} -${hg.help}`):hg.help}};hg.help=$e(` -Validate a Prisma schema. - -${N("Usage")} - - ${J("$")} prisma validate [options] - -${N("Options")} - - -h, --help Display this help message - --schema Custom path to your Prisma schema - -${N("Examples")} - - With an existing Prisma schema - ${J("$")} prisma validate - - Or specify a Prisma schema path - ${J("$")} prisma validate --schema=./schema.prisma - -`);var TT=hg;var iAt=me("prisma:cli:bin"),G2e=Cb(),Hj=process.argv.slice(2);process.removeAllListeners("warning");process.once("SIGINT",()=>{process.exit(130)});var j2e=_e(Hj,{"--schema":String,"--telemetry-information":String},!1,!0),W2e=I2e([...Hj]).join(" "),sAt=ap();async function aAt(){$2e();let e=rP.new({init:_P.new(),platform:bt.$.new({workspace:bt.Workspace.$.new({show:bt.Workspace.Show.new()}),auth:bt.Auth.$.new({login:bt.Auth.Login.new(),logout:bt.Auth.Logout.new(),show:bt.Auth.Show.new()}),environment:bt.Environment.$.new({create:bt.Environment.Create.new(),delete:bt.Environment.Delete.new(),show:bt.Environment.Show.new()}),project:bt.Project.$.new({create:bt.Project.Create.new(),delete:bt.Project.Delete.new(),show:bt.Project.Show.new()}),pulse:bt.Pulse.$.new({enable:bt.Pulse.Enable.new(),disable:bt.Pulse.Disable.new()}),accelerate:bt.Accelerate.$.new({enable:bt.Accelerate.Enable.new(),disable:bt.Accelerate.Disable.new()}),serviceToken:bt.ServiceToken.$.new({create:bt.ServiceToken.Create.new(),delete:bt.ServiceToken.Delete.new(),show:bt.ServiceToken.Show.new()}),apikey:bt.ServiceToken.$.new({create:bt.ServiceToken.Create.new(!0),delete:bt.ServiceToken.Delete.new(!0),show:bt.ServiceToken.Show.new(!0)})}),migrate:yb.new({dev:xb.new(),status:Db.new(),resolve:Sb.new(),reset:Eb.new(),deploy:bb.new(),diff:_b.new()}),db:nb.new({execute:pb.new(),pull:bm.new(),push:gb.new(),seed:vb.new()}),introspect:bm.new(),studio:CT.new(),generate:xP.new(),version:Om.new(),validate:TT.new(),format:iP.new(),telemetry:PT.new(),debug:nP.new()},["version","init","migrate","db","introspect","studio","generate","validate","format","telemetry"]),r=performance.now(),n=await e.parse(Hj),a=performance.now()-r;if(iAt(`Execution time for executing "await cli.parse(commandArray)": ${a} ms`),n instanceof Re)return console.error(n.message),1;if(xe(n))return console.error(n),1;console.log(n);let o=await O2e({command:W2e,isPrismaInstalledGlobally:sAt,schemaPath:j2e["--schema"],telemetryInformation:j2e["--telemetry-information"],version:G2e.version}),c=process.env.PRISMA_HIDE_UPDATE_MESSAGE;return o&&o.status==="ok"&&o.data.outdated&&!c&&M2e(o),0}eval("require.main === module")&&aAt().then(e=>{e!==0&&process.exit(e)}).catch(e=>{if(typeof e[Symbol.iterator]=="function")for(let r of e)B2e(r);else B2e(e)});function B2e(e){vI(e)?H4({error:e,cliVersion:G2e.version,enginesVersion:U2e.enginesVersion,command:W2e,getDatabaseVersionSafe:k6}).catch(r=>{me.enabled("prisma")?console.error(N(oe("Error: "))+r.stack):console.error(N(oe("Error: "))+r.message)}).finally(()=>{process.exit(1)}):(me.enabled("prisma")?console.error(N(oe("Error: "))+e.stack):console.error(N(oe("Error: "))+e.message),process.exit(1))}$n.default.join(__dirname,"../../engines/query-engine-darwin");$n.default.join(__dirname,"../../engines/schema-engine-darwin");$n.default.join(__dirname,"../../engines/query-engine-windows.exe");$n.default.join(__dirname,"../../engines/schema-engine-windows.exe");$n.default.join(__dirname,"../../engines/query-engine-debian-openssl-1.0.x");$n.default.join(__dirname,"../../engines/schema-engine-debian-openssl-1.0.x");$n.default.join(__dirname,"../../engines/query-engine-debian-openssl-1.1.x");$n.default.join(__dirname,"../../engines/schema-engine-debian-openssl-1.1.x");$n.default.join(__dirname,"../../engines/query-engine-debian-openssl-3.0.x");$n.default.join(__dirname,"../../engines/schema-engine-debian-openssl-3.0.x");$n.default.join(__dirname,"../../engines/query-engine-rhel-openssl-1.0.x");$n.default.join(__dirname,"../../engines/schema-engine-rhel-openssl-1.0.x");$n.default.join(__dirname,"../../engines/query-engine-rhel-openssl-1.1.x");$n.default.join(__dirname,"../../engines/schema-engine-rhel-openssl-1.1.x");$n.default.join(__dirname,"../../engines/query-engine-rhel-openssl-3.0.x");$n.default.join(__dirname,"../../engines/schema-engine-rhel-openssl-3.0.x"); -/*! Bundled license information: - -is-extglob/index.js: - (*! - * is-extglob - * - * Copyright (c) 2014-2016, Jon Schlinkert. - * Licensed under the MIT License. - *) - -is-glob/index.js: - (*! - * is-glob - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - *) - -is-number/index.js: - (*! - * is-number - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - *) - -to-regex-range/index.js: - (*! - * to-regex-range - * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. - *) - -fill-range/index.js: - (*! - * fill-range - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Licensed under the MIT License. - *) - -queue-microtask/index.js: - (*! queue-microtask. MIT License. Feross Aboukhadijeh *) - -run-parallel/index.js: - (*! run-parallel. MIT License. Feross Aboukhadijeh *) - -fetch-blob/index.js: - (*! fetch-blob. MIT License. Jimmy Wärting *) - -formdata-polyfill/esm.min.js: - (*! formdata-polyfill. MIT License. Jimmy Wärting *) - -node-domexception/index.js: - (*! node-domexception. MIT License. Jimmy Wärting *) - -progress/lib/node-progress.js: - (*! - * node-progress - * Copyright(c) 2011 TJ Holowaychuk - * MIT Licensed - *) - -normalize-path/index.js: - (*! - * normalize-path - * - * Copyright (c) 2014-2018, Jon Schlinkert. - * Released under the MIT License. - *) - -safe-buffer/index.js: - (*! safe-buffer. MIT License. Feross Aboukhadijeh *) - -archiver/lib/error.js: - (** - * Archiver Core - * - * @ignore - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -archiver/lib/core.js: - (** - * Archiver Core - * - * @ignore - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -crc-32/crc32.js: - (*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *) - -zip-stream/index.js: - (** - * ZipStream - * - * @ignore - * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} - * @copyright (c) 2014 Chris Talkington, contributors. - *) - -archiver/lib/plugins/zip.js: - (** - * ZIP Format Plugin - * - * @module plugins/zip - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -archiver/lib/plugins/tar.js: - (** - * TAR Format Plugin - * - * @module plugins/tar - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -archiver/lib/plugins/json.js: - (** - * JSON Format Plugin - * - * @module plugins/json - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -archiver/index.js: - (** - * Archiver Vending - * - * @ignore - * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} - * @copyright (c) 2012-2014 Chris Talkington, contributors. - *) - -tmp/lib/tmp.js: - (*! - * Tmp - * - * Copyright (c) 2011-2017 KARASZI Istvan - * - * MIT Licensed - *) - -is-windows/index.js: - (*! - * is-windows - * - * Copyright © 2015-2018, Jon Schlinkert. - * Released under the MIT License. - *) - -object-assign/index.js: - (* - object-assign - (c) Sindre Sorhus - @license MIT - *) - -vary/index.js: - (*! - * vary - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -depd/lib/compat/callsite-tostring.js: - (*! - * depd - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - *) - -depd/lib/compat/event-listener-count.js: - (*! - * depd - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -depd/lib/compat/index.js: - (*! - * depd - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -depd/index.js: - (*! - * depd - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -bytes/index.js: - (*! - * bytes - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015 Jed Watson - * MIT Licensed - *) - -content-type/index.js: - (*! - * content-type - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -statuses/index.js: - (*! - * statuses - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - *) - -toidentifier/index.js: - (*! - * toidentifier - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - *) - -http-errors/index.js: - (*! - * http-errors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - *) - -unpipe/index.js: - (*! - * unpipe - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -raw-body/index.js: - (*! - * raw-body - * Copyright(c) 2013-2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -ee-first/index.js: - (*! - * ee-first - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - *) - -on-finished/index.js: - (*! - * on-finished - * Copyright(c) 2013 Jonathan Ong - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/lib/read.js: - (*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -media-typer/index.js: - (*! - * media-typer - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - *) - -mime-db/index.js: - (*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - *) - -mime-types/index.js: - (*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -type-is/index.js: - (*! - * type-is - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/lib/types/json.js: - (*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/lib/types/raw.js: - (*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/lib/types/text.js: - (*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/lib/types/urlencoded.js: - (*! - * body-parser - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -body-parser/index.js: - (*! - * body-parser - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -merge-descriptors/index.js: - (*! - * merge-descriptors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -encodeurl/index.js: - (*! - * encodeurl - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - *) - -escape-html/index.js: - (*! - * escape-html - * Copyright(c) 2012-2013 TJ Holowaychuk - * Copyright(c) 2015 Andreas Lubbe - * Copyright(c) 2015 Tiancheng "Timothy" Gu - * MIT Licensed - *) - -parseurl/index.js: - (*! - * parseurl - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -finalhandler/index.js: - (*! - * finalhandler - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/router/layer.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -methods/index.js: - (*! - * methods - * Copyright(c) 2013-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/router/route.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/router/index.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/middleware/init.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/middleware/query.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/view.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -content-disposition/index.js: - (*! - * content-disposition - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -destroy/index.js: - (*! - * destroy - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - *) - -etag/index.js: - (*! - * etag - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -fresh/index.js: - (*! - * fresh - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2016-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -range-parser/index.js: - (*! - * range-parser - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -send/index.js: - (*! - * send - * Copyright(c) 2012 TJ Holowaychuk - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -forwarded/index.js: - (*! - * forwarded - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -proxy-addr/index.js: - (*! - * proxy-addr - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/utils.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/application.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -negotiator/index.js: - (*! - * negotiator - * Copyright(c) 2012 Federico Romero - * Copyright(c) 2012-2014 Isaac Z. Schlueter - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -accepts/index.js: - (*! - * accepts - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/request.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -cookie/index.js: - (*! - * cookie - * Copyright(c) 2012-2014 Roman Shtylman - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/response.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -serve-static/index.js: - (*! - * serve-static - * Copyright(c) 2010 Sencha Inc. - * Copyright(c) 2011 TJ Holowaychuk - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - *) - -express/lib/express.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) - -express/index.js: - (*! - * express - * Copyright(c) 2009-2013 TJ Holowaychuk - * Copyright(c) 2013 Roman Shtylman - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - *) -*/ diff --git a/mcp-server/node_modules/prisma/build/prisma_schema_build_bg.wasm b/mcp-server/node_modules/prisma/build/prisma_schema_build_bg.wasm deleted file mode 100644 index 9859f3e..0000000 Binary files a/mcp-server/node_modules/prisma/build/prisma_schema_build_bg.wasm and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/alert.60ea9f84.svg b/mcp-server/node_modules/prisma/build/public/assets/alert.60ea9f84.svg deleted file mode 100644 index 3c52249..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/array.1a36c222.svg b/mcp-server/node_modules/prisma/build/public/assets/array.1a36c222.svg deleted file mode 100644 index 79e97b3..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/array.1a36c222.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/boolean.9188b434.svg b/mcp-server/node_modules/prisma/build/public/assets/boolean.9188b434.svg deleted file mode 100644 index 786dee4..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/boolean.9188b434.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg b/mcp-server/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg deleted file mode 100644 index 18f9335..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/cross.c2610cf5.svg b/mcp-server/node_modules/prisma/build/public/assets/cross.c2610cf5.svg deleted file mode 100644 index d3d9478..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg b/mcp-server/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg deleted file mode 100644 index 97a9f0f..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/download.8d34b65a.svg b/mcp-server/node_modules/prisma/build/public/assets/download.8d34b65a.svg deleted file mode 100644 index 50ca3f6..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/download.8d34b65a.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg b/mcp-server/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg deleted file mode 100644 index dc27e11..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg b/mcp-server/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg deleted file mode 100644 index a77c3a6..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg b/mcp-server/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg deleted file mode 100644 index f8025d4..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg b/mcp-server/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg deleted file mode 100644 index 513e80f..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/index.js b/mcp-server/node_modules/prisma/build/public/assets/index.js deleted file mode 100644 index cef682f..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/index.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,r=(t,s,i)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[s]=i,l=(e,t)=>{for(var s in t||(t={}))a.call(t,s)&&r(e,s,t[s]);if(i)for(var s of i(t))n.call(t,s)&&r(e,s,t[s]);return e},o=(e,i)=>t(e,s(i)),d=(e,t)=>{var s={};for(var r in e)a.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&i)for(var r of i(e))t.indexOf(r)<0&&n.call(e,r)&&(s[r]=e[r]);return s};import{l as c,o as h,a as p,u,b as m,d as g,c as v,v as f,t as y,w as I,r as C,e as w,f as b,g as E,h as _,R as x,i as S,j as N,m as L,k as R,A as M,n as O,F as k}from"./vendor.js";var A=Object.defineProperty,D=Object.getOwnPropertyDescriptor,T=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?D(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&A(t,s,n),n};class P{constructor(){this.transport={type:"http",url:`${window.location.origin}/api`},this.updates=!1,this.readonly=!1}async update(e){c.exports.has(e,"transport")&&(this.transport=e.transport),c.exports.has(e,"updates")&&(this.updates=e.updates),c.exports.has(e,"readonly")&&(this.readonly=e.readonly)}}T([h],P.prototype,"transport",2),T([h],P.prototype,"updates",2),T([h],P.prototype,"readonly",2),T([p],P.prototype,"update",1);var V=new P;class j{constructor(e){this.path=e.path,this.code=e.code,this.type=e.type,this.message=e.message,this.stack=e.stack,this.context=e.context||null,this.nativeError=e.nativeError}}const F=({path:e,message:t,code:s,type:i,stack:a,context:n,nativeError:r})=>{const l=new j({path:e,message:t,code:s,type:i,stack:a,context:n||null,nativeError:r});return console.error(`[${e}] ${t}`,n),console.error(r),l},B=(e,t,s)=>{const i=a=>a===e.length?s&&s():t(e[a],(()=>i(a+1)));return i(0)};const H=[(e,t,s)=>(e.createObjectStore("projects",{keyPath:"id"}),e.createObjectStore("openTabs",{keyPath:"id"}),e.createObjectStore("sessions",{keyPath:"id"}),e.createObjectStore("scripts",{keyPath:"id"}),s()),(e,t,s)=>(e.createObjectStore("models",{keyPath:"id"}),e.createObjectStore("fields",{keyPath:"id"}),e.createObjectStore("enums",{keyPath:"id"}),s()),(e,t,s)=>{const i=t.objectStore("sessions"),a=t.objectStore("scripts"),n=i.getAll();n.onsuccess=()=>{const e=a.getAll();e.onsuccess=()=>{const t=n.result,r=e.result;B(t,((e,t)=>{const s=r.find((t=>t.id===e.scriptId));s?i.put(o(l({},e),{lastSavedHash:s.lastSavedHash||""})).onsuccess=t:e.lastSavedHash=""}),(()=>{B(r,((e,t)=>{delete e.lastSavedHash,a.put(e).onsuccess=t}),(()=>s()))}))}}},(e,t,s)=>{e.createObjectStore("tabs",{keyPath:"id"});const i=t.objectStore("openTabs"),a=t.objectStore("tabs"),n=i.getAll();n.onsuccess=()=>{const t=n.result;B(t,((e,t)=>{if(!e.sessionId)return t();e.preview=!1,a.put(e).onsuccess=t}),(()=>(e.deleteObjectStore("openTabs"),s())))}},(e,t,s)=>{const i=t.objectStore("tabs"),a=t.objectStore("projects"),n=i.getAll();n.onsuccess=()=>{const e=a.getAll();e.onsuccess=()=>{const t=n.result,i=e.result;B(i,((e,s)=>{e.tabOrder=t.filter((t=>t.projectId===e.id)).map((e=>e.id)),a.put(e).onsuccess=s}),(()=>s()))}}},(e,t,s)=>{const i=["tabs","sessions","scripts","models","fields","enums"],a={};B(i,((e,s)=>{const i=t.objectStore(e).getAll();i.onsuccess=()=>{a[e]=i.result,s()}}),(()=>{B(i,((s,i)=>{e.deleteObjectStore(s),e.createObjectStore(s,{keyPath:["id","projectId"]});const n=a[s];B(n,((e,i)=>{t.objectStore(s).put(e).onsuccess=i}),(()=>i()))}),(()=>(e.createObjectStore("actions",{keyPath:["id","projectId"]}),s())))}))},(e,t,s)=>{const i=t.objectStore("projects"),a=i.getAll();a.onsuccess=()=>{const e=a.result;B(e,((e,t)=>{e.theme="light",i.put(e).onsuccess=t}),(()=>s()))}},(e,t,s)=>{const i=t.objectStore("sessions"),a=t.objectStore("scripts"),n=i.getAll();n.onsuccess=()=>{const e=n.result;B(e,((e,t)=>{e.type=e.scriptId?"script":"fallback",i.put(e).onsuccess=t}),(()=>{const e=a.getAll();e.onsuccess=()=>{const t=e.result;B(t,((e,t)=>{e.generated=!1,a.put(e).onsuccess=t}),(()=>s()))}}))}},(e,t,s)=>{const i=t.objectStore("scripts"),a=i.getAll();a.onsuccess=()=>{const e=a.result;B(e,((e,t)=>{e.frozen=e.generated,delete e.generated,i.put(e).onsuccess=t}),(()=>s()))}},(e,t,s)=>(e.deleteObjectStore("models"),e.deleteObjectStore("fields"),e.deleteObjectStore("enums"),s()),(e,t,s)=>{const i=t.objectStore("projects");i.createIndex("createdAt","createdAt"),i.createIndex("updatedAt","updatedAt");const a=t.objectStore("actions");a.createIndex("createdAt","createdAt"),a.createIndex("updatedAt","updatedAt");const n=t.objectStore("scripts");n.createIndex("createdAt","createdAt"),n.createIndex("updatedAt","updatedAt");const r=t.objectStore("sessions");r.createIndex("createdAt","createdAt"),r.createIndex("updatedAt","updatedAt");const l=t.objectStore("tabs");l.createIndex("createdAt","createdAt"),l.createIndex("updatedAt","updatedAt");const o=i.getAll();return o.onsuccess=()=>{const e=o.result;B(e,((e,t)=>{delete e.tabOrder,e.createdAt=(new Date).toISOString(),e.updatedAt=(new Date).toISOString(),i.put(e).onsuccess=t}),(()=>{B([a,n,r,l],((e,t)=>{const s=e.getAll();s.onsuccess=()=>{const i=s.result;B(i,((t,s)=>{t.createdAt=(new Date).toISOString(),t.updatedAt=(new Date).toISOString(),e.put(t).onsuccess=s}),(()=>t()))}}),(()=>s()))}))},s()},(e,t,s)=>{const i=t.objectStore("projects");i.deleteIndex("createdAt"),i.createIndex("createdAt",["id","createdAt"]),i.deleteIndex("updatedAt"),i.createIndex("updatedAt",["id","updatedAt"]);const a=t.objectStore("actions");a.deleteIndex("createdAt"),a.createIndex("createdAt",["id","projectId","createdAt"]),a.deleteIndex("updatedAt"),a.createIndex("updatedAt",["id","projectId","updatedAt"]);const n=t.objectStore("scripts");n.deleteIndex("createdAt"),n.createIndex("createdAt",["id","projectId","createdAt"]),n.deleteIndex("updatedAt"),n.createIndex("updatedAt",["id","projectId","updatedAt"]);const r=t.objectStore("sessions");r.deleteIndex("createdAt"),r.createIndex("createdAt",["id","projectId","createdAt"]),r.deleteIndex("updatedAt"),r.createIndex("updatedAt",["id","projectId","updatedAt"]);const l=t.objectStore("tabs");return l.deleteIndex("createdAt"),l.createIndex("createdAt",["id","projectId","createdAt"]),l.deleteIndex("updatedAt"),l.createIndex("updatedAt",["id","projectId","updatedAt"]),s()},(e,t,s)=>{const i=t.objectStore("scripts"),a=i.getAll();a.onsuccess=()=>{const e=a.result;B(e,((e,t)=>{e.where=e.where.map((e=>(e.fieldIds=[e.fieldId],delete e.fieldId,e))),i.put(e).onsuccess=t}),(()=>s()))}}],Z=(e,t,s,i)=>{console.log("------Starting IndexedDB migration------");const a=u(i);B(H.slice(t),((t,s)=>t(e,a,s)),(()=>console.log("------IndexedDB migration complete------")))};class q{constructor(e,t){this.cursor=()=>this.db.transaction(this.storeName).store.openCursor(),this.transaction=e=>this.db.transaction(this.storeName,e),this.getAll=async({projectId:e}={})=>{const t=await this.db.getAllFromIndex(this.storeName,"createdAt");return e?t.filter((t=>t.projectId===e)):t},this.create=async e=>{try{await this.db.put(this.storeName,o(l({},e),{createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()}))}catch(t){console.log("Error during PersistenceItem.create",t,this.storeName)}},this.update=async(e,t)=>{try{const t=await this.db.get(this.storeName,e);await this.db.put(this.storeName,o(l({},t),{updatedAt:(new Date).toISOString()}))}catch(s){console.log("Error during PersistenceItem.update",s,this.storeName)}},this.delete=async e=>{try{await this.db.delete(this.storeName,e)}catch(t){console.log("Error during PersistenceItem.delete",t,this.storeName)}},this.clear=async()=>{try{await this.db.clear(this.storeName)}catch(e){console.log("Error during PersistenceItem.clear",e,this.storeName)}},this.storeName=e,this.db=t}}var U=new class{constructor(){this.databaseName="Prisma Studio",this.indexedDBVersion=13,this.databaseInstance=null,this.projectId="",this.ready=!1,this.init=async({projectId:e})=>{try{this.projectId=e,this.databaseInstance=await m(this.databaseName,this.indexedDBVersion,{upgrade:Z}),this.projects=new q("projects",this.databaseInstance),this.tabs=new q("tabs",this.databaseInstance),this.sessions=new q("sessions",this.databaseInstance),this.scripts=new q("scripts",this.databaseInstance),this.actions=new q("actions",this.databaseInstance),this.ready=!0}catch(t){throw F({path:"PersistenceStore.init",message:"Unable to init PersistenceStore",nativeError:t})}},this.save=(e,t)=>new Promise((async(s,i)=>{if(!this.ready)throw F({path:"PersistenceStore.save",message:"PersistenceStore is not ready to receive `save` operations yet",context:{tableName:e,value:t}});try{switch(e){case"sessions":await this.sessions.create(t);break;case"scripts":await this.scripts.create(t);break;case"tabs":await this.tabs.create(t);break;case"projects":await this.projects.create(t);break;case"actions":await this.actions.create(t)}s()}catch(a){i(a)}})),this.load=async e=>new Promise((async(t,s)=>{if(!this.ready)throw F({path:"PersistenceStore.load",message:"PersistenceStore is not ready to receive `load` operations yet",context:{tableName:e}});try{switch(e){case"projects":return t(await this.projects.getAll());default:return t(await this[e].getAll({projectId:this.projectId}))}}catch(i){return s(i)}})),this.remove=async(e,t)=>new Promise((async(s,i)=>{if(!this.ready)throw F({path:"PersistenceStore.remove",message:"PersistenceStore is not ready to receive `remove` operations yet",context:{tableName:e,id:t}});try{switch(e){case"projects":return await this[e].delete(t),s();default:return await this[e].delete([t,this.projectId]),s()}}catch(a){return i(a)}})),this.clear=async e=>new Promise((async(t,s)=>{if(!this.ready)throw F({path:"PersistenceStore.clear",message:"PersistenceStore is not ready to receive `clear` operations yet",context:{tableName:e}});try{return await this[e].clear(),t()}catch(i){return s(i)}})),this.clearAll=async()=>{var e;null==(e=this.databaseInstance)||e.close(),await g(this.databaseName)}}},z=Object.defineProperty,$=Object.getOwnPropertyDescriptor,J=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?$(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&z(t,s,n),n};class W{constructor(e,{idbTableName:t}={}){this.idbTableName=null,this.members={},this.type=e,this.idbTableName=null!=t?t:null}get values(){return this.members}get size(){return Object.keys(this.members).length}async restore(){if(this.idbTableName){(await U.load(this.idbTableName)).forEach((e=>{e?this.add(e,{skipPersist:!0}):console.warn("Attempt to restore a null member from IndexedDB, ignoring",{member:e,idbTableName:this.idbTableName})}))}return Promise.resolve()}get(e){return e&&this.members[e]||null}add(e,{skipPersist:t=!1}={}){let s;if(e.id||(e.id=f()),this.members[e.id])s=this.members[e.id],s.update(e,{skipPersist:t});else{s=new(0,this.type)(e),s.idbTableName=this.idbTableName,this.members[e.id]=s,!t&&this.idbTableName&&U.save(this.idbTableName,s.serialize())}return s}remove(e){const t=this.members[e];return t&&delete this.members[e],this.idbTableName&&U.remove(this.idbTableName,e),t}clear(){this.members={},this.idbTableName&&U.clear(this.idbTableName)}toJS(){return y(this)}}J([h],W.prototype,"type",2),J([h],W.prototype,"idbTableName",2),J([h],W.prototype,"members",2),J([v],W.prototype,"values",1),J([v],W.prototype,"size",1),J([p],W.prototype,"restore",1),J([p],W.prototype,"add",1),J([p],W.prototype,"remove",1),J([p],W.prototype,"clear",1),J([p],W.prototype,"toJS",1);var K=Object.defineProperty,G=Object.getOwnPropertyDescriptor,Q=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?G(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&K(t,s,n),n};class Y{constructor(e){this.forceUpdate=async()=>{await U.save(this.idbTableName,this.serialize())},this.id=e.id}update(e,{skipPersist:t=!1}={}){if(!t&&this.idbTableName){const t=this.serialize(),s=Object.keys(t),i=Object.keys(e);new Set([...s,...i]).size!==s.length+i.length&&this.forceUpdate()}}serialize(){}}Q([h],Y.prototype,"id",2),Q([h],Y.prototype,"idbTableName",2),Q([p],Y.prototype,"update",1),Q([p],Y.prototype,"forceUpdate",2);const X=(e,t)=>`${e}.${t}`;var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?te(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ee(t,s,n),n};class ie extends Y{constructor(e){super(e),this.id=e.id,this.name=e.name,this.values=e.values}update(e,t={}){c.exports.has(e,"name")&&(this.name=e.name),c.exports.has(e,"values")&&(this.values=e.values),super.update(e,t)}}se([h],ie.prototype,"id",2),se([h],ie.prototype,"name",2),se([h],ie.prototype,"values",2),se([p],ie.prototype,"update",1);var ae=Object.defineProperty,ne=Object.getOwnPropertyDescriptor;class re extends W{constructor(){super(ie),this.getByName=e=>this.get(e)}add(e,t={}){return super.add(l({id:e.name},e),t)}}((e,t,s,i)=>{for(var a,n=i>1?void 0:i?ne(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);i&&n&&ae(t,s,n)})([p],re.prototype,"add",1);var le=new re,oe=Object.defineProperty,de=Object.getOwnPropertyDescriptor,ce=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?de(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&oe(t,s,n),n};class he extends Y{constructor(e){if(super(e),this.id=e.id,this.modelId=e.modelId,this.name=e.name,this.type=e.type,this.kind=e.kind,"Json"===this.type&&"string"==typeof e.default)try{this.default=JSON.parse(e.default)}catch(t){this.default=e.default}else if("BigInt"===this.type&&"string"==typeof e.default)try{this.default=BigInt(e.default)}catch(t){this.default=e.default}else this.default=e.default;this.isId=e.isId,this.isUnique=e.isUnique,this.isRequired=e.isRequired,this.isList=e.isList,this.isReadOnly=e.isReadOnly,this.isUpdatedAt=e.isUpdatedAt,this.relationName=e.relationName,this.relationFromFieldNames=e.relationFromFieldNames,this.relationToFieldNames=e.relationToFieldNames}get model(){return as.get(this.modelId)}get isScalar(){return"scalar"===this.kind&&!this.isEnum}get isString(){return"String"===this.type}get isInt(){return"Int"===this.type}get isBigInt(){return"BigInt"===this.type}get isFloat(){return"Float"===this.type}get isDecimal(){return"Decimal"===this.type}get isBoolean(){return"Boolean"===this.type}get isDateTime(){return"DateTime"===this.type}get isJson(){return"Json"===this.type}get isBytes(){return"Bytes"===this.type}get isEnum(){return!!this.typeAsEnum}get isRelation(){return"object"===this.kind}get isScalarListRelation(){return this.isScalar&&this.isList&&this.isPartOfRelation||!1}get isScalarListTwoWayMNRelation(){var e;if(this.isScalarListRelation){const t=(null==(e=this.model)?void 0:e.name)||null;if(!t)return!1;const s=this.relationItIsPartOf;if(!s)return!1;const i=as.getByName(s.type);if(!i)return!1;const a=i.fields.find((e=>e.type===t));if(!a)return!1;const n=a.relationFromFieldNames[0],r=i.getFieldByName(n);if(!r)return!1;if(r.isScalarListRelation)return!0}return!1}get isPartOfRelation(){return null!==this.relationItIsPartOf}get relationItIsPartOf(){return this.model&&this.model.fields.find((e=>e.isRelation&&e.relationFromFieldNames.includes(this.name)))||null}get isSortable(){return this.isScalar&&!this.isList||this.isEnum&&!this.isList}get isFunctionDefault(){return"string"!=typeof this.default&&"number"!=typeof this.default&&"boolean"!=typeof this.default&&"bigint"!=typeof this.default&&!c.exports.isArray(this.default)}get defaultAsString(){return this.isList?"[]":this.default?"string"==typeof this.default||"number"==typeof this.default||"boolean"==typeof this.default?`${this.default}`:"bigint"==typeof this.default||c.exports.isArray(this.default)?this.default.toString():c.exports.isObject(this.default)?`${this.default.name}()`:"":""}get placeholder(){return this.isList?"[]":this.isString?"Value":this.isInt||this.isFloat||this.isBigInt||this.isDecimal?"1337":this.isBoolean?"false":this.isDateTime?(new Date).toISOString():this.isJson?"{}":this.isEnum?this.typeAsEnum.values[0]:this.isRelation?"ID":"Value"}get typeAsModel(){return this.isRelation?as.getByName(this.type):null}get typeAsEnum(){return le.getByName(this.type)}get typeAsLabel(){let e=this.type;const t=this.typeAsModel;return t&&(e=t.name),this.isList?e+="[]":this.isRequired||(e+="?"),e}get lowestValidValue(){if(this.isList)return[];if(!this.isRequired)return null;if(this.isString)return"";if(this.isInt||this.isFloat||this.isDecimal)return 0;if(this.isBigInt)return BigInt(0);if(this.isBoolean)return!1;if(this.isDateTime)return new Date(0).toISOString();if(this.isJson)return{};if(this.isEnum){if(!this.typeAsEnum)throw F({path:"Field.lowestValidValue",message:"Invalid type of field: enum",context:{fieldId:this.id,type:this.type}});return this.typeAsEnum.values[0]}return null}get getRelationIDFieldName(){if(!this.isRelation)return null;const e=as.getByName(this.type);return e&&e.idField?e.idField.name:null}update(e,t={}){c.exports.has(e,"default")&&(this.default=e.default),c.exports.has(e,"isId")&&(this.isId=e.isId),c.exports.has(e,"isUnique")&&(this.isUnique=e.isUnique),c.exports.has(e,"isRequired")&&(this.isRequired=e.isRequired),c.exports.has(e,"isList")&&(this.isList=e.isList),c.exports.has(e,"isReadOnly")&&(this.isReadOnly=e.isReadOnly),c.exports.has(e,"isUpdatedAt")&&(this.isUpdatedAt=e.isUpdatedAt),super.update(e,t)}}ce([h],he.prototype,"id",2),ce([h],he.prototype,"modelId",2),ce([h],he.prototype,"name",2),ce([h],he.prototype,"type",2),ce([h],he.prototype,"kind",2),ce([h],he.prototype,"default",2),ce([h],he.prototype,"isId",2),ce([h],he.prototype,"isUnique",2),ce([h],he.prototype,"isRequired",2),ce([h],he.prototype,"isList",2),ce([h],he.prototype,"isReadOnly",2),ce([h],he.prototype,"isUpdatedAt",2),ce([h],he.prototype,"relationName",2),ce([h],he.prototype,"relationFromFieldNames",2),ce([h],he.prototype,"relationToFieldNames",2),ce([v],he.prototype,"model",1),ce([v],he.prototype,"isScalar",1),ce([v],he.prototype,"isString",1),ce([v],he.prototype,"isInt",1),ce([v],he.prototype,"isBigInt",1),ce([v],he.prototype,"isFloat",1),ce([v],he.prototype,"isDecimal",1),ce([v],he.prototype,"isBoolean",1),ce([v],he.prototype,"isDateTime",1),ce([v],he.prototype,"isJson",1),ce([v],he.prototype,"isBytes",1),ce([v],he.prototype,"isEnum",1),ce([v],he.prototype,"isRelation",1),ce([v],he.prototype,"isScalarListRelation",1),ce([v],he.prototype,"isScalarListTwoWayMNRelation",1),ce([v],he.prototype,"isPartOfRelation",1),ce([v],he.prototype,"relationItIsPartOf",1),ce([v],he.prototype,"isSortable",1),ce([v],he.prototype,"isFunctionDefault",1),ce([v],he.prototype,"defaultAsString",1),ce([v],he.prototype,"placeholder",1),ce([v],he.prototype,"typeAsModel",1),ce([v],he.prototype,"typeAsEnum",1),ce([v],he.prototype,"typeAsLabel",1),ce([v],he.prototype,"lowestValidValue",1),ce([v],he.prototype,"getRelationIDFieldName",1),ce([p],he.prototype,"update",1);var pe=new class extends W{constructor(){super(he)}getByName(e,t){return this.get(X(t,e))}},ue=Object.defineProperty,me=Object.getOwnPropertyDescriptor,ge=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?me(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ue(t,s,n),n};const ve=class{constructor(){this.previousError={type:null},this.updateError=(e={})=>{c.exports.has(e,"visible")&&(this.error.visible=e.visible)},this.updateActions=(e={})=>{c.exports.has(e,"visible")&&(this.actions.visible=e.visible)},this.setPreviousError=e=>{this.previousError=e,localStorage.setItem(ve.previousErrorLocalStorageKey,JSON.stringify(e))},this.error={visible:!1};const e=localStorage.getItem(ve.previousErrorLocalStorageKey);e&&(this.previousError=JSON.parse(e)),this.actions={visible:!1}}};let fe=ve;fe.previousErrorLocalStorageKey="previousError",ge([h],fe.prototype,"error",2),ge([h],fe.prototype,"actions",2),ge([h],fe.prototype,"previousError",2),ge([p],fe.prototype,"updateError",2),ge([p],fe.prototype,"updateActions",2),ge([p],fe.prototype,"setPreviousError",2);var ye=new fe;const Ie=(e,t)=>{if(null==t)throw F({path:"getRecordId",message:"Invalid recordValue",context:{modelId:e,recordValue:t}});const s=as.get(e);if(!s)throw F({path:"getRecordId",message:"Invalid modelId",context:{modelId:e}});let i=`${e}::`;return i+=s.uniqueIdentifier.fields.map((e=>null===t[e.name]?"null":void 0===t[e.name]?"undefined":t[e.name])).join(","),i};var Ce=Object.defineProperty,we=Object.getOwnPropertyDescriptor,be=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?we(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ce(t,s,n),n};class Ee{constructor(e){this.update=e=>{c.exports.has(e,"selectedRecordIds")&&(this.selectedRecordIds=e.selectedRecordIds)},this.sessionId=e.sessionId,this.selectedRecordIds=[]}get session(){return He.get(this.sessionId)}get maxRows(){var e,t;return(null==(t=null==(e=this.session)?void 0:e.script)?void 0:t.recordIds.length)||0}get maxColumns(){var e,t;return(null==(t=null==(e=this.session)?void 0:e.script)?void 0:t.fieldIds.length)||0}get selectedRecords(){return this.selectedRecordIds.map((e=>at.get(e)))}}be([h],Ee.prototype,"sessionId",2),be([h],Ee.prototype,"selectedRecordIds",2),be([v],Ee.prototype,"session",1),be([v],Ee.prototype,"maxRows",1),be([v],Ee.prototype,"maxColumns",1),be([v],Ee.prototype,"selectedRecords",1),be([p],Ee.prototype,"update",2);const _e=(e,t)=>{const s=e.split("::"),i=Number(s[0].slice(1,-1));if(isNaN(i))throw F({path:"parseTreePath",message:"Invalid tree path: Failed to parse segment as index",context:{path:e,recordIdx:i}});const a=at.get(t[i]);if(!a)throw F({path:"parseTreePath",message:"Invalid tree path: Invalid record index",context:{path:e,recordIdx:i}});return s.slice(1).reduce((({model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r},l)=>{var o,d,c,h,p,u;if(l.startsWith("[")&&l.endsWith("]"))if(s=null,i=Number(l.slice(1,-1)),isNaN(i)){const e=l.slice(1,-1).split("-");r=[Number(e[0]),Number(e[1])],i=null,a=null,n=n.slice(r[0],r[1]+1)}else if(t){const c=Ie(t.id,n[i]);if(!c)throw F({path:"parseTreePath",message:"Invalid tree path: Failed to parse tree path segment as array",context:{path:e,fieldName:l,recordId:c,accumulator:{model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r}}});n=null!=(d=null==(a=null!=(o=at.get(c))?o:null)?void 0:a.value)?d:null}else a=null,n=null!=(c=n[i])?c:null;else{if(!t)throw F({path:"parseTreePath",message:"Invalid tree path: Failed to parse tree path segment as field name",context:{path:e,fieldName:l,accumulator:{model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r}}});if(!(s=t.getFieldByName(l)))throw F({path:"parseTreePath",message:"Invalid field name",context:{path:e,fieldName:l,accumulator:{model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r}}});if(t=null!=(h=s.typeAsModel)?h:null,i=null,a=null,n=n[l],r=null,!s.isScalar&&!s.isEnum&&!Array.isArray(n)&&null!=n){const o=t&&Ie(t.id,n);if(!o)throw F({path:"parseTreePath",message:"Invalid tree path: Failed to parse tree path segment as relation",context:{path:e,fieldName:l,recordId:o,accumulator:{model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r}}});n=null!=(u=null==(a=null!=(p=at.get(o))?p:null)?void 0:a.value)?u:null}}return{model:t,field:s,index:i,record:a,value:n,arraySliceIndices:r}}),{model:a.model,field:null,index:null,record:a,value:a.value,arraySliceIndices:null})};var xe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Ne=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Se(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&xe(t,s,n),n};class Le{constructor(e){this.selectionOrder=[],this.isExpanded=e=>this.expandedPaths.includes(e),this.select=e=>{this.activePath=e},this.move=(e,t)=>{0===this.selectionOrder.length&&this.setSelectionOrder();const s=this.selectionOrder.findIndex((e=>e===this.activePath));let i;switch(t){case"up":i=this.selectionOrder[s-e];break;case"down":i=this.selectionOrder[s+e]}this.activePath=i||"[0]"},this.expand=()=>{var e,t;if(this.isExpanded(this.activePath))return;if(!(null==(e=this.session)?void 0:e.script))throw F({path:"SessionSelectionTree.expand",message:"Unable to resolve recordIds",context:{sessionId:this.sessionId,scriptId:null==(t=this.session)?void 0:t.scriptId}});const{record:s,value:i,field:a}=_e(this.activePath,this.session.script.recordIds);null!=i&&((null==a?void 0:a.isList)||!(null==a?void 0:a.isScalar)&&!(null==a?void 0:a.isEnum))&&0!==(null==i?void 0:i.length)&&(this.expandedPaths.push(this.activePath),this.setSelectionOrder(),s&&s.fetchRelations())},this.collapse=()=>{this.expandedPaths=this.expandedPaths.filter((e=>!e.startsWith(this.activePath))),this.setSelectionOrder()},this.update=e=>{c.exports.has(e,"isEditing")&&(this.isEditing=e.isEditing)},this.reset=()=>{this.isEditing=!1},this.sessionId=e.sessionId,this.isEditing=e.isEditing,this.activePath="",this.expandedPaths=[]}get session(){return He.get(this.sessionId)}jumpToParent(){const e=this.activePath.split("::").slice(0,-1).join("::");""!=e&&(this.activePath=e)}setSelectionOrder(){var e,t;if(!(null==(e=this.session)?void 0:e.script))throw F({path:"SessionSelectionTree.setSelectionOrder",message:"Unable to resolve recordIds",context:{sessionId:this.sessionId,scriptId:null==(t=this.session)?void 0:t.scriptId}});const{recordIds:s}=this.session.script;let i=s.map(((e,t)=>`[${t}]`));this.expandedPaths.forEach((e=>{const{value:t,model:a}=_e(e,s),n=i.findIndex((t=>t===e)),r=[];if(r.push(i[n]),Array.isArray(t))if(t.length<=100)r.push(...Array.from({length:t.length}).map(((t,s)=>`${e}::[${s}]`)));else{const s=Math.floor(t.length/100);r.push(...Array.from({length:s}).map(((t,s)=>`${e}::[${100*s}-${100*(s+1)-1}]`))),t.length%100!=0&&r.push(`${e}::[${100*s}-${100*s+t.length%100-1}]`)}else null!==t&&a&&r.push(...a.fields.map((t=>`${e}::${t.name}`)));i=[...i.slice(0,n),...r,...i.slice(n+1)]})),this.selectionOrder=i}}Ne([h],Le.prototype,"sessionId",2),Ne([h],Le.prototype,"isEditing",2),Ne([h],Le.prototype,"activePath",2),Ne([h],Le.prototype,"expandedPaths",2),Ne([h],Le.prototype,"selectionOrder",2),Ne([v],Le.prototype,"session",1),Ne([p],Le.prototype,"select",2),Ne([p],Le.prototype,"move",2),Ne([p],Le.prototype,"expand",2),Ne([p],Le.prototype,"collapse",2),Ne([p],Le.prototype,"jumpToParent",1),Ne([p],Le.prototype,"setSelectionOrder",1),Ne([p],Le.prototype,"update",2),Ne([p],Le.prototype,"reset",2);var Re=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,Oe=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Me(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Re(t,s,n),n};class ke{constructor(e){this.table=new Ee(e.table),this.tree=new Le(e.tree)}}Oe([h],ke.prototype,"table",2),Oe([h],ke.prototype,"tree",2);var Ae=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Te=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?De(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ae(t,s,n),n};class Pe extends Y{constructor(e){var t,s;super(e),this.createUncommittedRecord=()=>{if(!this.isScript)return;const e=xs.add({type:"create",recordId:null,sessionId:this.id,value:{modelId:this.script.modelId}});xs.add({type:"update",recordId:e.recordId,sessionId:this.id,value:this.script.model.fields.reduce(((e,t)=>(t.isId?e[t.name]=void 0:void 0!==t.default?t.isFunctionDefault?e[t.name]=void 0:e[t.name]=t.default:t.isUpdatedAt?e[t.name]=(new Date).toISOString():!t.isScalar&&!t.isEnum||t.isPartOfRelation?t.isRelation&&t.isList?e[t.name]=t.lowestValidValue:e[t.name]=void 0:e[t.name]=t.lowestValidValue,e)),{})})},this.update=(e,t={})=>{c.exports.has(e,"lastSavedHash")&&(this.lastSavedHash=e.lastSavedHash),super.update(e,t)},this.serialize=()=>({projectId:Kt.activeProjectId,id:this.id,type:this.type,lastSavedHash:this.lastSavedHash,scriptId:this.scriptId}),this.id=e.id,this.type=e.type,this.scriptId=null!=(t=e.scriptId)?t:null,this.lastSavedHash=null!=(s=e.lastSavedHash)?s:this.hash,this.selection=new ke({table:{sessionId:this.id,selectedRecordIds:[]},tree:{sessionId:this.id,isEditing:!1}})}get script(){if(!this.isScript)throw F({path:"Session.script",message:"Invalid `get` call to script: Session is not a `script` type",context:{type:this.type,scriptId:this.scriptId}});const e=St.get(this.scriptId);if(!e)throw F({path:"Session.script",message:"Invalid scriptId in session",context:{type:this.type,scriptId:this.scriptId}});return e}get name(){return this.isScript?this.script.model.name:"Session Name"}get isScript(){return"script"===this.type}get isModelList(){return"model-list"===this.type}get isDirty(){return this.isScript?!this.script.frozen&&(null===this.script.name||(!!Object.values(xs.values).filter((e=>e.sessionId===this.id))||null!==this.script.name&&this.lastSavedHash!==this.hash)):this.lastSavedHash!==this.hash}get hash(){return this.isScript?this.script.hash:""}forceSave(){this.isDirty&&this.update({lastSavedHash:this.hash})}discardChanges(){if(this.isScript)try{const{code:e,modelId:t,where:s,fieldIds:i,sortFieldId:a,sortOrder:n}=JSON.parse(this.lastSavedHash);this.script.update({code:e,modelId:t,where:s,fieldIds:i,sort:{fieldId:a,order:n}})}catch(e){console.log("Could not restore session",e)}}}Te([h],Pe.prototype,"id",2),Te([h],Pe.prototype,"type",2),Te([h],Pe.prototype,"scriptId",2),Te([h],Pe.prototype,"lastSavedHash",2),Te([v],Pe.prototype,"script",1),Te([v],Pe.prototype,"name",1),Te([v],Pe.prototype,"isScript",1),Te([v],Pe.prototype,"isModelList",1),Te([v],Pe.prototype,"isDirty",1),Te([v],Pe.prototype,"hash",1),Te([p],Pe.prototype,"createUncommittedRecord",2),Te([p],Pe.prototype,"forceSave",1),Te([p],Pe.prototype,"discardChanges",1),Te([p],Pe.prototype,"update",2);var Ve=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?je(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ve(t,s,n),n};class Be extends W{constructor(){super(Pe,{idbTableName:"sessions"}),this.findOrCreate=({scriptId:e})=>Object.values(this.values).find((t=>t.scriptId===e))||this.add({type:"script",scriptId:e,lastSavedHash:null}),this.remove=e=>{const t=super.remove(e);return Object.values(xs.values).forEach((t=>{t.sessionId===e&&xs.remove(t.id)})),t}}}Fe([p],Be.prototype,"findOrCreate",2),Fe([p],Be.prototype,"remove",2);var He=new Be;const Ze=(e,t)=>e.isList?Array.isArray(t)?t.every((t=>e.isEnum?!qe(e,t):e.isRelation?!Ue(e,t):!ze(e,t)))?void 0:"Every value in this list must be valid":"Value must be a list":e.isEnum?qe(e,t):e.isRelation?Ue(e,t):ze(e,t),qe=(e,t)=>{if(!e.isRequired&&c.exports.isNil(t))return;if(void 0===t&&void 0!==e.default)return;const s=e.typeAsEnum;return s&&s.values.includes(t)?void 0:"Value must be an Enum variant"},Ue=(e,t)=>{if(!e.isRequired&&c.exports.isNil(t))return;if(e.isRequired&&!t)return"Required fields must not be `null`";return e.typeAsModel?void 0:`Value must be a ${e.type} identifier`},ze=(e,t)=>{if((void 0!==t||void 0===e.default)&&(e.isList||e.isRequired||!c.exports.isNil(t)))return e.isRequired&&c.exports.isNil(t)?"Required fields must not be `null`":e.isString&&"string"!=typeof t?"Value must be a String":!e.isInt||"number"==typeof t&&!isNaN(t)&&Number.isInteger(t)?e.isFloat&&("number"!=typeof t||isNaN(t))?"Value must be a Float":e.isBigInt&&"bigint"!=typeof t?"Value must be a valid BigInt":e.isBoolean&&"boolean"!=typeof t?"Value must be a Boolean":e.isDateTime&&isNaN(new Date(String(t)))?"Value must be a valid DateTime":e.isJson&&"object"!=typeof t?"Value must be a valid Json":void 0:"Value must be an Integer"};var $e=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,We=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Je(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&$e(t,s,n),n};class Ke extends Y{constructor(e){if(super(e),this.serialize=()=>({projectId:Kt.activeProjectId,id:this.id,type:this.type,recordId:this.recordId,sessionId:this.sessionId,value:y(this.value)}),this.id=e.id,this.sessionId=e.sessionId,this.type=e.type,this.value=e.value,"create"===this.type){const t=`tmp--${this.id}`,s=e.value.modelId;at.add({id:t,modelId:s,value:{}}),this.recordId=t}else this.recordId=e.recordId}get record(){return this.recordId?at.get(this.recordId):null}get session(){return He.get(this.sessionId)}get isValid(){return(e=>{const t=xs.get(e);if(!t)throw F({path:"isActionValid",message:"Invalid action",context:{actionId:e}});const s=at.get(t.recordId);if(!s)return!1;const i=s.model;if(!i)return!1;const a=Object.keys(t.value);switch(t.type){case"create":return!!as.get(t.value.modelId);case"delete":return!!at.get(t.recordId);case"update":return a.every((e=>{const s=i.getFieldByName(e),a=t.value[e];return!!s&&!Ze(s,a)}));default:return!1}})(this.id)}update(e,t={}){c.exports.has(e,"recordId")&&(this.recordId=e.recordId),c.exports.has(e,"sessionId")&&(this.sessionId=e.sessionId),c.exports.has(e,"value")&&(this.value=e.value),super.update(e,t)}}We([h],Ke.prototype,"id",2),We([h],Ke.prototype,"recordId",2),We([h],Ke.prototype,"sessionId",2),We([h],Ke.prototype,"type",2),We([h],Ke.prototype,"value",2),We([v],Ke.prototype,"record",1),We([v],Ke.prototype,"session",1),We([v],Ke.prototype,"isValid",1),We([p],Ke.prototype,"update",1);const Ge=async e=>{var t,s;console.log("Running query: ",e);let{error:i,data:a}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:l({schemaHash:Kt.activeProject.schemaHash},e)}});if(i)throw F({path:"runQuery",code:i.code,type:i.type,stack:i.stack,message:`Error in Prisma Client request: \n\n${i.message}`,context:{code:e,error:i}});if(!a)throw F({path:"runQuery",message:`Malformed response from Prisma Client: \n\n${a}`,context:{code:e}});const n=as.get(e.modelName);if(!n)throw F({path:"runQuery",message:"Unrecognized Model",context:{code:e,response:a}});const r=Object.entries((null==(t=e.args)?void 0:t.select)||(null==(s=e.args)?void 0:s.include)||{}).filter((([e,t])=>!!t)).map((([e])=>{var t;return null==(t=pe.getByName(n.id,e))?void 0:t.id})).filter((e=>!!e));if(!a)return Promise.resolve({modelId:n.id,fieldIds:r,recordIds:[]});Array.isArray(a)||(a=[a]);const o=a.map((e=>at.add({modelId:n.id,value:e}).id));return{modelId:n.id,fieldIds:r,recordIds:o}};var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Ye(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Qe(t,s,n),n};class et extends Y{constructor(e){super(e),this.fetchRelations=async()=>{try{if(!this.isCommitted)return;await Ge((e=>{const t=at.get(e);if(!t)throw F({path:"getFindOneQuery",message:"Invalid recordId",context:{recordId:e}});const s=t.model,i=s.uniqueIdentifier,a=i.name,n=i.fields.reduce(((e,s)=>(e[s.name]=t.value[s.name],e)),{});let r;return r=1===i.fields.length?n:{[`${a}`]:n},{modelName:s.name,operation:"findUnique",args:{where:r,select:s.fields.reduce(((e,t)=>(e[t.name]=!0,e)),{})}}})(this.id))}catch(e){us.update({type:"client",description:"Unable to fetch record",dump:e.message}),ye.updateError({visible:!0})}},this.id=e.id,this.valueInDB=e.value||{},this.modelId=e.modelId}get model(){let e=as.get(this.modelId);if(!e)throw F({path:"Record.model",message:"Invalid modelId",context:{modelId:this.modelId}});return e}get value(){const e=xs.actions.filter((e=>e.recordId===this.id&&"update"===e.type));if(0==e.length)return this.valueInDB;const t=e[0];return this.model.fields.reduce(((e,s)=>void 0===t.value[s.name]?(e[s.name]=this.valueInDB[s.name],e):(e[s.name]=t.value[s.name],e)),{})}get isCommitted(){return!this.id.startsWith("tmp-")}get dirtyFieldNames(){if(!this.isCommitted)return this.model.fields.map((e=>e.name));const e=xs.actions.filter((e=>{var t;return e.sessionId===(null==(t=Tt.activeTab)?void 0:t.sessionId)&&e.recordId===this.id})).reduce(((e,t)=>(Object.keys(t.value).forEach((t=>{e.add(t)})),e)),new Set);return Array.from(e)}get invalidFields(){return Object.keys(this.value).map((e=>{const t=this.model.getFieldByName(e);if(!t)return;const s=Ze(t,this.value[e]);return s?{field:t,reason:s}:void 0})).filter((e=>!!e))}update(e,t={}){c.exports.has(e,"value")&&(this.valueInDB=l(l({},this.valueInDB),e.value)),super.update(e,t)}}Xe([h],et.prototype,"id",2),Xe([h],et.prototype,"modelId",2),Xe([h],et.prototype,"valueInDB",2),Xe([v],et.prototype,"model",1),Xe([v],et.prototype,"value",1),Xe([v],et.prototype,"isCommitted",1),Xe([v],et.prototype,"dirtyFieldNames",1),Xe([v],et.prototype,"invalidFields",1),Xe([p],et.prototype,"update",1),Xe([p],et.prototype,"fetchRelations",2);var tt=Object.defineProperty,st=Object.getOwnPropertyDescriptor;class it extends W{constructor(){super(et)}add(e,t={}){var s;const i=null!=(s=e.id)?s:Ie(e.modelId,e.value);if(!i)throw F({path:"RecordStore.add",message:"Unable to determine ID for record to create",context:{record:e}});const a=super.add(l({id:i},e));return Object.keys(e.value).forEach((s=>{var i;const n=a.model.getFieldByName(s);if(!n)throw F({path:"RecordStore.add",message:"Invalid field name",context:{fieldName:s,recordValue:e.value}});if(!n.isRelation)return;const r=null==(i=n.typeAsModel)?void 0:i.id;if(!r)throw F({path:"RecordStore.add",message:"Unable to create related records",context:{fieldId:n.id,type:n.type}});if(n.isList)e.value[s].map((e=>{const s=Ie(r,e);!this.get(s)&&e&&this.add({modelId:r,value:e},t)}));else if(null!==e.value[s]){const i=Ie(r,e.value[s]);!this.get(i)&&e.value[s]&&this.add({modelId:r,value:e.value[s]},t)}})),a}}((e,t,s,i)=>{for(var a,n=i>1?void 0:i?st(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);i&&n&&tt(t,s,n)})([p],it.prototype,"add",1);var at=new it;const nt=e=>Array.from(new Set(e)),rt=({modelId:e,where:t,fieldIds:s,sort:i,pagination:a})=>{const n=as.get(e);if(!n)throw F({path:"getFindManyQuery",message:"Invalid modelId",context:{modelId:e}});const r={};if(t&&(null==t?void 0:t.size)>0&&(r.where={AND:Object.values(t.values).reduce(((e,t)=>{var s,i,a,n,r,l,o,d,h;if(!t.enabled||!t.isValid)return e;if(!c.exports.first(t.fields)||!c.exports.last(t.fields))return e;"in"===t.operation||"notIn"===t.operation?t.value=JSON.parse(t.value||"[]"):!(null==(s=c.exports.last(t.fields))?void 0:s.isInt)&&!(null==(i=c.exports.last(t.fields))?void 0:i.isFloat)||(null==(a=c.exports.last(t.fields))?void 0:a.isList)?(null==(n=c.exports.last(t.fields))?void 0:n.isBoolean)&&!(null==(r=c.exports.last(t.fields))?void 0:r.isList)?t.value=Boolean("false"!==t.value&&t.value):(null==(l=c.exports.last(t.fields))?void 0:l.isDateTime)&&!(null==(o=c.exports.last(t.fields))?void 0:o.isList)?t.value=new Date(t.value).toISOString():(null==(d=c.exports.last(t.fields))?void 0:d.isBigInt)&&!(null==(h=c.exports.last(t.fields))?void 0:h.isList)&&(t.value=BigInt(t.value)):t.value=Number(t.value);let p={[`${t.operation}`]:t.value};return"isNull"===t.operation?p={equals:null}:"isNotNull"===t.operation&&(p={not:{equals:null}}),c.exports.last(t.fields).isList&&(p={some:p}),t.fields.length>1&&(p={[`${c.exports.last(t.fields).name}`]:p}),c.exports.first(t.fields).isList&&(p={some:p}),e.push({[c.exports.first(t.fields).name]:p}),e}),[])}),(null==i?void 0:i.fieldId)&&(null==i?void 0:i.order)){const e=pe.get(i.fieldId);if(!e)throw F({path:"getFindManyQuery",message:"Invalid sort fieldId",context:{sort:i}});r.orderBy=[{[`${e.name}`]:i.order}]}void 0!==(null==a?void 0:a.take)&&null!==a.take&&(r.take=Number(a.take)),void 0!==(null==a?void 0:a.skip)&&null!==a.skip&&(r.skip=Number(a.skip)),s=s?nt([].concat(n.uniqueIdentifier.fields.map((e=>e.id)),s)):n.fieldIds;const l=((e,t)=>t.slice().sort(((t,s)=>e.fieldIds.findIndex((e=>e===t))-e.fieldIds.findIndex((e=>e===s)))))(n,s).map((e=>pe.get(e)));return r.select=l.reduce(((e,t)=>{if(!t)return e;if(t.isList&&t.isRelation){const s=t.getRelationIDFieldName;e[t.name]=!s||{select:{[s]:!0}}}else e[t.name]=!0;return e}),{}),{modelName:n.name,operation:"findMany",args:r}};var lt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,dt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?ot(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&<(t,s,n),n};class ct{constructor(e){this.take=e.take,this.skip=e.skip}update(e={}){c.exports.has(e,"take")&&(this.take=e.take),c.exports.has(e,"skip")&&(this.skip=e.skip)}reset(){this.update({take:100,skip:0})}}dt([h],ct.prototype,"take",2),dt([h],ct.prototype,"skip",2),dt([p],ct.prototype,"update",1),dt([p],ct.prototype,"reset",1);var ht=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,ut=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?pt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ht(t,s,n),n};class mt{constructor(e){this.fieldId=e.fieldId,this.order=e.order}get field(){return pe.get(this.fieldId)}update(e={}){c.exports.has(e,"fieldId")&&(this.fieldId=e.fieldId),c.exports.has(e,"order")&&(this.order=e.order)}reset(){this.update({fieldId:null,order:"asc"})}}ut([h],mt.prototype,"fieldId",2),ut([h],mt.prototype,"order",2),ut([v],mt.prototype,"field",1),ut([p],mt.prototype,"update",1),ut([p],mt.prototype,"reset",1);const gt=(e,t)=>{if(!e.isScalar)return!1;if(e.isString)return"string"==typeof t;if(e.isInt||e.isFloat||e.isDecimal)return""!==t&&!isNaN(Number(t));if(e.isBigInt)try{return""!==t&&!!BigInt(t)}catch(s){return!1}if(e.isBoolean)return"true"===t||"false"===t;if(e.isDateTime)return!isNaN(new Date(t));if(e.isJson)try{return!!JSON.parse(t)}catch(s){return!1}return!!e.isBytes&&"string"==typeof t},vt=(e,t)=>!!e.isEnum&&e.typeAsEnum.values.includes(t);var ft=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,It=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?yt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ft(t,s,n),n};class Ct extends Y{constructor(e){super(e),this.update=(e,t)=>{c.exports.has(e,"fieldIds")&&(this.fieldIds=e.fieldIds),c.exports.has(e,"operation")&&(this.operation=e.operation),c.exports.has(e,"value")&&(this.value=e.value),c.exports.has(e,"enabled")&&(this.enabled=e.enabled),this.script.update({where:[]}),super.update(e,t)},this.serialize=()=>({id:String(this.id),fieldIds:[...this.fieldIds],operation:String(this.operation),value:this.value,scriptId:String(this.scriptId),enabled:this.enabled}),this.id=e.id,this.fieldIds=e.fieldIds,this.operation=e.operation||this.supportedOperations[0],this.value=e.value,this.scriptId=e.scriptId,this.enabled=e.enabled||!0}get fields(){return this.fieldIds.map((e=>{const t=pe.get(e);if(!t)throw F({path:"ScriptWhereItem.fields",message:"Invalid fieldId",context:{fieldId:e}});return t}))}get script(){const e=St.get(this.scriptId);if(!e)throw F({path:"ScriptWhereItem.script",message:"Invalid scriptId",context:{scriptId:this.scriptId}});return e}get supportedOperations(){const e=c.exports.last(this.fields);if(!e)return[];let t;if(e.isRequired&&e.isString)t="StringFilter";else if(!e.isRequired&&e.isString)t="StringNullableFilter";else if(e.isRequired&&e.isInt)t="IntFilter";else if(!e.isRequired&&e.isInt)t="IntNullableFilter";else if(e.isRequired&&e.isFloat)t="FloatFilter";else if(!e.isRequired&&e.isFloat)t="FloatNullableFilter";else if(e.isRequired&&e.isBigInt)t="BigIntFilter";else if(!e.isRequired&&e.isBigInt)t="BigIntNullableFilter";else if(e.isRequired&&e.isDecimal)t="DecimalFilter";else if(!e.isRequired&&e.isDecimal)t="DecimalNullableFilter";else if(e.isRequired&&e.isBoolean)t="BoolFilter";else if(!e.isRequired&&e.isBoolean)t="BoolNullableFilter";else if(e.isRequired&&e.isDateTime)t="DateTimeFilter";else if(!e.isRequired&&e.isDateTime)t="DateTimeNullableFilter";else if(e.isRequired&&e.isJson)t="JsonFilter";else if(!e.isRequired&&e.isJson)t="JsonNullableFilter";else if(e.isRequired&&e.isBytes)t="BytesFilter";else if(!e.isRequired&&e.isBytes)t="BytesNullableFilter";else if(e.isRequired&&e.isEnum)t=`Enum${e.type}Filter`;else if(!e.isRequired&&e.isEnum)t=`Enum${e.type}NullableFilter`;else{if(!e.isRelation)throw F({path:"ScriptWhere.supportedOperations",message:"Unsupported field for `where` filter",context:{fields:this.fields.map((e=>null==e?void 0:e.serialize()))}});t=`${e.type}WhereInput`}const s=Ss.inputObjectTypes.get(t);if(!s)throw F({path:"ScriptWhere.supportedOperations",message:"Could not find appropriate InputType for this field type. This should never happen.",context:{inputTypeName:t,fields:this.fields.map((e=>null==e?void 0:e.serialize()))}});const i=s.fields.map((e=>e.name)).filter((e=>"mode"!==e));return e.isRequired||e.isRelation?i:i.concat(["isNull","isNotNull"])}get isValid(){return(e=>{var t,s,i,a,n,r;if(!e.enabled)return!0;if(!c.exports.last(e.fields))return!1;if(!e.operation)return!1;if(!(null==(t=c.exports.last(e.fields))?void 0:t.isScalar)&&!(null==(s=c.exports.last(e.fields))?void 0:s.isEnum))return!1;if(e.fields.length>1&&!(null==(i=c.exports.first(e.fields))?void 0:i.isRelation))return!1;if(["isNull","isNotNull"].includes(e.operation)&&(void 0===e.value||null===e.value))return!0;if((null==(a=c.exports.last(e.fields))?void 0:a.isRequired)&&(void 0===e.value||null===e.value))return!1;if(void 0===e.value||null===e.value)return!1;if(["in","notIn"].includes(e.operation))try{const t=JSON.parse(e.value);return Array.isArray(t)&&t.every((t=>{var s,i;return(null==(s=c.exports.last(e.fields))?void 0:s.isScalar)?gt(c.exports.last(e.fields),t):!!(null==(i=c.exports.last(e.fields))?void 0:i.isEnum)&&vt(c.exports.last(e.fields),t)}))}catch(l){return!1}return!!e.supportedOperations.includes(e.operation)&&((null==(n=c.exports.last(e.fields))?void 0:n.isScalar)?gt(c.exports.last(e.fields),e.value):!(null==(r=c.exports.last(e.fields))?void 0:r.isEnum)||vt(c.exports.last(e.fields),e.value))})(this)}getFilterableFieldsAtIndex(e){if(e>=this.fieldIds.length)throw F({path:"ScriptWhere.getFilterableFieldsAtIndex",message:"Index is out of range",context:{fieldIds:this.fieldIds,index:e}});if(0===e)return this.script.model.fields.filter((e=>e.isScalar&&!e.isList||e.isEnum&&!e.isList||e.isRelation));if(1===e){return pe.get(this.fieldIds[e-1]).typeAsModel.fields.filter((e=>e.isScalar&&!e.isList||e.isEnum&&!e.isList))}return[]}}It([h],Ct.prototype,"id",2),It([h],Ct.prototype,"fieldIds",2),It([h],Ct.prototype,"operation",2),It([h],Ct.prototype,"value",2),It([h],Ct.prototype,"scriptId",2),It([h],Ct.prototype,"enabled",2),It([v],Ct.prototype,"fields",1),It([v],Ct.prototype,"script",1),It([v],Ct.prototype,"supportedOperations",1),It([v],Ct.prototype,"isValid",1),It([p],Ct.prototype,"update",2);class wt extends W{constructor({modelId:e,scriptId:t}){super(Ct),this.serialize=()=>Object.values(this.values).map((e=>e.serialize())),this.modelId=e,this.scriptId=t}get model(){let e=as.get(this.modelId);if(!e)throw F({path:"ScriptWhere.model",message:"Invalid modelId",context:{modelId:this.modelId}});return e}get script(){return St.get(this.scriptId)}add(e,t){var s;const i=super.add(o(l({},e),{scriptId:this.scriptId}),t);return null==(s=this.script)||s.update({where:[]},t),i}}It([h],wt.prototype,"modelId",2),It([h],wt.prototype,"scriptId",2),It([v],wt.prototype,"model",1),It([v],wt.prototype,"script",1),It([p],wt.prototype,"add",1);var bt=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,_t=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Et(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&bt(t,s,n),n};class xt extends Y{constructor(e){var t,s,i,a,n,r,l,o;super(e),this.run=async()=>{if(!this.model)throw F({path:"Script.run",message:"Invalid modelId",context:{modelId:this.modelId}});this.update({running:!0}),ye.updateError({visible:!1});const e=this.frozen||"visual"===this.inputMode?rt({modelId:this.modelId,where:this.where,sort:this.sort,pagination:this.pagination}):this.code;try{const[,{recordIds:t,modelId:s,fieldIds:i}]=await Promise.all([this.model.runCountQuery(),Ge(e)]);this.update({recordIds:t}),"visual"===this.inputMode&&this.update({code:e}),"code"===this.inputMode&&this.update({modelId:s,fieldIds:i}),ye.previousError.type&&ye.setPreviousError({type:null})}catch(t){"PrismaClientSchemaDriftedError"===t.type?us.update({type:"schemaDrift",description:"Your source Prisma Schema has changed. Please reload Studio to continue. Your changes will be saved.",dump:""}):us.update({type:"client",description:"Unable to run script",dump:`Message: ${t.message}\n \nQuery:\n${JSON.stringify({modelName:e.modelName,operation:e.operation,args:e.args},null,2)}\n `}),ye.updateError({visible:!0})}finally{this.update({running:!1})}},this.loadMore=async()=>{if(this.__recordIds.length>=(this.model.count||0)||"code"===this.inputMode)return[];this.update({running:!0});const e=rt({modelId:this.modelId,where:this.where,sort:this.sort,pagination:{take:100,skip:this.pagination.skip+this.__recordIds.length}});try{const{recordIds:t}=await Ge(e),s=nt([...this.__recordIds,...t]);return this.update({running:!1,recordIds:s,pagination:{take:s.length}}),t.map((e=>at.get(e))).filter((e=>!!e))}catch(t){throw this.update({running:!1}),console.log(t.type),"PrismaClientSchemaDriftedError"===t.type?us.update({type:"schemaDrift",description:"Your source Prisma Schema has changed. Please reload Studio to continue. Your changes will be saved.",dump:""}):us.update({type:"client",description:"Unable to fetch paginated records",dump:`Message: ${t.message}\n \nStack: ${t.stack}\n \nQuery:\n${JSON.stringify(e,null,2)}\n `}),ye.updateError({visible:!0}),F({path:"Script.loadMore",message:"Unable to fetch next page of records",context:{take:this.pagination.take,skip:this.pagination.skip,lastFetchedRecordId:c.exports.last(this.__recordIds)},nativeError:t})}},this.update=(e,t={})=>{c.exports.has(e,"name")&&(this.name=e.name),c.exports.has(e,"frozen")&&(this.frozen=e.frozen),c.exports.has(e,"modelId")&&(this.modelId=e.modelId),c.exports.has(e,"fieldIds")&&(this.fieldIds=e.fieldIds),c.exports.has(e,"inputMode")&&(this.inputMode=e.inputMode),c.exports.has(e,"viewMode")&&(this.viewMode=e.viewMode),c.exports.has(e,"sort")&&this.sort.update(e.sort),c.exports.has(e,"pagination")&&this.pagination.update(e.pagination),c.exports.has(e,"code")&&(this.code="string"==typeof e.code?JSON.parse(e.code):e.code),c.exports.has(e,"recordIds")&&(this.__recordIds=e.recordIds.filter((e=>{var t;return(null==(t=at.get(e))?void 0:t.modelId)===this.modelId}))),c.exports.has(e,"running")&&(this.running=e.running),super.update(e,t)},this.serialize=()=>({projectId:Kt.activeProjectId,id:this.id,frozen:this.frozen,name:this.name,inputMode:this.inputMode,code:JSON.stringify(this.code),modelId:this.modelId,where:this.where.serialize(),fieldIds:this.fieldIds.map((e=>String(e))),sortFieldId:this.sort.fieldId,sortOrder:this.sort.order,viewMode:this.viewMode}),this.id=e.id,this.frozen=e.frozen,this.name=e.name,this.modelId=e.modelId,this.fieldIds=e.fieldIds||[],this.inputMode="visual",this.where=new wt({modelId:e.modelId,scriptId:this.id}),(e.where||[]).forEach((e=>this.where.add(e))),this.sort=new mt({fieldId:null!=(s=null==(t=e.sort)?void 0:t.fieldId)?s:null,order:null!=(a=null==(i=e.sort)?void 0:i.order)?a:"asc"}),this.pagination=new ct({take:null!=(r=null==(n=e.pagination)?void 0:n.take)?r:100,skip:null!=(o=null==(l=e.pagination)?void 0:l.skip)?o:0}),this.viewMode="table",this.code=("string"==typeof e.code?JSON.parse(e.code):e.code)||rt({modelId:this.modelId,where:this.where,sort:this.sort,pagination:this.pagination}),this.__recordIds=[],this.running=!1}get hash(){return(({code:e,modelId:t,where:s,fieldIds:i})=>JSON.stringify({code:e,modelId:t,where:s.serialize(),fieldIds:i}))({code:this.code,modelId:this.modelId,where:this.where,fieldIds:this.fieldIds})}get model(){let e=as.get(this.modelId);if(!e)throw F({path:"Script.model",message:"Invalid modelId",context:{modelId:this.modelId}});return e}get fields(){return this.fieldIds.map((e=>{const t=pe.get(e);if(!t)throw F({path:"Script.fields",message:"Invalid fieldId",context:{fieldId:e}});return t}))}get recordIds(){const e=xs.actions.filter((e=>{var t,s;return"create"===e.type&&e.sessionId===(null==(t=Tt.activeTab)?void 0:t.sessionId)&&(null==(s=e.record)?void 0:s.modelId)===this.modelId})).map((e=>e.recordId)).filter((e=>!!e)),t=xs.actions.filter((e=>{var t;return"delete"===e.type&&e.sessionId===(null==(t=Tt.activeTab)?void 0:t.sessionId)})).map((e=>e.recordId));return[...e,...this.__recordIds.filter((e=>!t.includes(e)))]}get records(){return this.recordIds.map((e=>at.get(e))).filter((e=>!!e))}get uncommittedRecords(){return xs.actions.filter((e=>{var t;return"create"===e.type&&(null==(t=e.record)?void 0:t.modelId)===this.modelId})).map((e=>e.record)).filter((e=>!!e))}reset(){this.update({recordIds:[],inputMode:"visual",viewMode:"table",running:!1}),this.sort.reset(),this.pagination.reset()}}_t([h],xt.prototype,"id",2),_t([h],xt.prototype,"frozen",2),_t([h],xt.prototype,"name",2),_t([h],xt.prototype,"modelId",2),_t([h],xt.prototype,"fieldIds",2),_t([h],xt.prototype,"inputMode",2),_t([h],xt.prototype,"where",2),_t([h],xt.prototype,"sort",2),_t([h],xt.prototype,"pagination",2),_t([h],xt.prototype,"viewMode",2),_t([h],xt.prototype,"code",2),_t([h],xt.prototype,"running",2),_t([h],xt.prototype,"__recordIds",2),_t([v],xt.prototype,"hash",1),_t([v],xt.prototype,"model",1),_t([v],xt.prototype,"fields",1),_t([v],xt.prototype,"recordIds",1),_t([v],xt.prototype,"records",1),_t([v],xt.prototype,"uncommittedRecords",1),_t([p],xt.prototype,"run",2),_t([p],xt.prototype,"loadMore",2),_t([p],xt.prototype,"update",2),_t([p],xt.prototype,"reset",1);var St=new class extends W{constructor(){super(xt,{idbTableName:"scripts"})}},Nt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Rt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Lt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Nt(t,s,n),n};class Mt extends Y{constructor(e){super(e),this.save=()=>{this.session&&(this.session.forceSave(),this.session.isScript&&!this.session.script.name&&this.session.script.update({name:`Copy of ${this.session.script.model.name}`}))},this.discardChanges=()=>{this.session&&this.session.discardChanges()},this.load=({modelId:e,scriptId:t,sessionId:s})=>{if(!s&&!t&&!e)throw F({path:"Tab.load",message:"Invaid params",context:{modelId:e,scriptId:t,sessionId:s}});if(e){const s=as.get(e);if(!s)throw F({path:"Tab.load",message:"Invalid modelId",context:{modelId:e}});t=St.add({frozen:!0,name:null,modelId:e,fieldIds:s.fieldIds}).id}t&&(s=He.add({type:"script",scriptId:t,lastSavedHash:null}).id),s&&this.update({sessionId:s}),xs.actions.length>0?ye.updateActions({visible:!0}):ye.updateActions({visible:!1})},this.update=(e,t={})=>(c.exports.has(e,"sessionId")&&(this.sessionId=e.sessionId),c.exports.has(e,"preview")&&(this.preview=e.preview),super.update(e,t)),this.serialize=()=>({projectId:Kt.activeProjectId,id:this.id,sessionId:this.sessionId,preview:this.preview}),this.id=e.id,this.sessionId=e.sessionId,this.preview=e.preview||!1,this.isFiltersOpen=!1,this.preview&&(this.disposer=I((()=>{var e;return!!(null==(e=this.session)?void 0:e.isDirty)}),(()=>{this.update({preview:!1})})))}get title(){var e;return(null==(e=this.session)?void 0:e.isScript)?this.session.script.name||this.session.script.model&&this.session.script.model.name:"+"}get session(){return He.get(this.sessionId)}get isDirty(){if(!this.session)return!1;if(!this.session.isScript)return!1;const e=this.session.script,t=Object.values(xs.values).filter((e=>e.sessionId===this.sessionId));return e.fieldIds.length!==e.model.fieldIds.length||0!==e.pagination.skip||t.length>0}get hasFilters(){if(!this.session)return!1;if(!this.session.isScript)return!1;return this.session.script.where.size>0}clean(){this.disposer&&this.disposer()}toggleFilterPanel(){this.isFiltersOpen=!this.isFiltersOpen}}Rt([h],Mt.prototype,"id",2),Rt([h],Mt.prototype,"sessionId",2),Rt([h],Mt.prototype,"preview",2),Rt([h],Mt.prototype,"isFiltersOpen",2),Rt([v],Mt.prototype,"title",1),Rt([v],Mt.prototype,"session",1),Rt([v],Mt.prototype,"isDirty",1),Rt([v],Mt.prototype,"hasFilters",1),Rt([p],Mt.prototype,"save",2),Rt([p],Mt.prototype,"discardChanges",2),Rt([p],Mt.prototype,"load",2),Rt([p],Mt.prototype,"update",2),Rt([p],Mt.prototype,"clean",1),Rt([p],Mt.prototype,"toggleFilterPanel",1);var Ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,At=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?kt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ot(t,s,n),n};class Dt extends W{constructor(){super(Mt,{idbTableName:"tabs"}),this.hydrate=({activeTabId:e})=>{let t=this.get(e);t&&t.session?(Object.values(this.values).forEach((e=>{if(e.session){if(e.session.isScript){if(!as.get(e.session.script.modelId))return void this.remove(e.id)}}else this.remove(e.id)})),t=this.get(e),t&&t.session?this.switch({id:e}):this.switch({id:"model-list-tab"})):this.switch({id:"model-list-tab"})},this.remove=e=>{var t,s;if(!this.get(e))return this.get("model-list-tab");const i=this.openTabs.findIndex((e=>e.id===this.activeTabId)),a=this.openTabs.findIndex((t=>t.id===e)),n=super.remove(e);if(Object.values(xs.values).filter((e=>e.sessionId===n.sessionId)).forEach((e=>xs.remove(e.id))),i===a){let e=a-1;-1===e&&(e=a),this.switch({id:null!=(s=null==(t=this.openTabs[e])?void 0:t.id)?s:"model-list-tab"})}return n},He.add({id:"model-list-session",type:"model-list",scriptId:null,lastSavedHash:null},{skipPersist:!0}),super.add({id:"model-list-tab",sessionId:"model-list-session",preview:!1},{skipPersist:!0}),this.activeTabId="model-list-tab"}get activeTab(){return this.get(this.activeTabId)}get openTabs(){return Object.values(this.values).reverse().filter((e=>!!e&&!!e.session)).sort((e=>"model-list-tab"===e.id?1:-1))}get previewTab(){return Object.values(this.values).find((e=>e.preview))||null}add(e,t={}){var s=e,{modelId:i,scriptId:a,sessionId:n}=s,r=d(s,["modelId","scriptId","sessionId"]);let c;if(!n&&!a&&!i)throw F({path:"TabStore.add",message:"Invaid params",context:{modelId:i,scriptId:a,sessionId:n}});if(i){const e=as.get(i);if(!e)throw F({path:"TabStore.add",message:"Invalid modelId",context:{modelId:i}});a=St.add({frozen:!0,name:null,modelId:i,fieldIds:e.fieldIds}).id}return a&&(n=He.add({type:"script",scriptId:a,lastSavedHash:null}).id),n&&(c=super.add(o(l({},r),{sessionId:n}),t)),c}switch({id:e,index:t,direction:s}){if(!e&&void 0===t&&void 0===s)throw F({path:"TabStore.switch",message:"Invalid params",context:{id:e,index:t,direction:s}});let i;if(e?i=this.get(e):void 0!==t&&(i=this.openTabs[t]),s){const e=this.openTabs.findIndex((e=>e.id===this.activeTabId));-1!==e&&("right"===s?(i=this.openTabs[e+1],e===this.openTabs.length-1&&(i=this.openTabs[0])):"left"===s&&(i=this.openTabs[e-1]))}i||(i=this.get("model-list-tab")),this.activeTabId=i.id,xs.actions.length>0?ye.updateActions({visible:!0}):ye.updateActions({visible:!1})}}At([h],Dt.prototype,"activeTabId",2),At([v],Dt.prototype,"activeTab",1),At([v],Dt.prototype,"openTabs",1),At([v],Dt.prototype,"previewTab",1),At([p],Dt.prototype,"hydrate",2),At([p],Dt.prototype,"add",1),At([p],Dt.prototype,"switch",1),At([p],Dt.prototype,"remove",2);var Tt=new Dt,Pt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,jt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Vt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Pt(t,s,n),n};class Ft{constructor(){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=new URLSearchParams(window.location.search).get("theme"),s=localStorage.getItem("theme");this.theme=t||(s||(e.matches?"dark":"light")),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>this.apply(e.matches?"dark":"light")))}apply(e){this.theme=e;const t=window.matchMedia("(prefers-color-scheme: dark)");t.matches&&"light"===this.theme||!t.matches&&"dark"===this.theme?localStorage.setItem("theme",this.theme):localStorage.removeItem("theme")}hydrate(e){this.apply(e)}}jt([h],Ft.prototype,"theme",2),jt([p],Ft.prototype,"apply",1),jt([p],Ft.prototype,"hydrate",1);var Bt=new Ft,Ht=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,qt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Zt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ht(t,s,n),n};class Ut extends Y{constructor(e){super(e),this.update=(e,t)=>{c.exports.has(e,"name")&&(this.name=e.name),c.exports.has(e,"schemaPath")&&(this.schemaPath=e.schemaPath),c.exports.has(e,"schemaHash")&&(this.schemaHash=e.schemaHash),c.exports.has(e,"recentModelIds")&&(this.recentModelIds=e.recentModelIds),super.update(e,t)},this.id=e.id,this.name=e.name,this.schemaPath=e.schemaPath,this.schemaHash=e.schemaHash,this.recentModelIds=e.recentModelIds||[],C((()=>[Tt.activeTabId,Bt.theme]),(()=>{qs.ready&&U.save("projects",this.serialize())}),{fireImmediately:!0})}get recentModels(){return this.recentModelIds.map((e=>as.get(e))).filter((e=>!!e))}addRecentModel(e){this.recentModelIds.includes(e)&&(this.recentModelIds=this.recentModelIds.filter((t=>t!==e))),5===this.recentModelIds.length&&this.recentModelIds.pop(),this.recentModelIds.unshift(e)}serialize(){return{id:this.id,activeTabId:String(Tt.activeTabId),recentModelIds:this.recentModelIds.map((e=>String(e)))}}}qt([h],Ut.prototype,"id",2),qt([h],Ut.prototype,"name",2),qt([h],Ut.prototype,"schemaPath",2),qt([h],Ut.prototype,"schemaHash",2),qt([h],Ut.prototype,"recentModelIds",2),qt([v],Ut.prototype,"recentModels",1),qt([p],Ut.prototype,"addRecentModel",1),qt([p],Ut.prototype,"update",2);var zt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Jt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?$t(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&zt(t,s,n),n};class Wt extends W{constructor(){super(Ut,{idbTableName:"projects"}),this.activeProjectId=null}get activeProject(){const e=this.activeProjectId;return e?this.get(e):null}switch(e){this.activeProjectId=e}}Jt([h],Wt.prototype,"activeProjectId",2),Jt([v],Wt.prototype,"activeProject",1),Jt([p],Wt.prototype,"switch",1);var Kt=new Wt;const Gt=({modelId:e})=>{const t=as.get(e);if(!t)throw F({path:"getCountQuery",message:"Invalid modelId",context:{modelId:e}});return{modelName:t.name,operation:"count"}};var Qt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,Xt=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Yt(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Qt(t,s,n),n};class es extends Y{constructor(e){super(e),this.getFieldByName=e=>pe.getByName(e,this.id),this.runCountQuery=async()=>{try{const{error:e,data:t}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:l({schemaHash:Kt.activeProject.schemaHash},Gt({modelId:this.id}))}});if(e||!t)throw e;if(Array.isArray(t))throw new Error(`Malformed response for \`count\` query: ${JSON.stringify(t,null,2)} `);const s=parseInt(t);this.update({count:s})}catch(e){console.log("Count request failed for model:",this.name,e),this.update({count:0})}},this.id=e.id,this.dbName=e.dbName,this.name=e.name,this.plural=e.plural,this.count=void 0,this.fieldIds=e.fieldIds||[],this.compoundId=e.compoundId,this.compoundUnique=e.compoundUnique}get fields(){return this.fieldIds.map((e=>{const t=pe.get(e);if(!t)throw F({path:"Model.field",message:"Invalid fieldId",context:{fieldId:e}});return t}))}get uniqueIdentifier(){var e,t;if(this.idField)return{name:this.idField.name,fields:[this.idField]};if(this.compoundId.fieldIds.length>0){const t=this.compoundId.fieldIds.map((e=>{const t=pe.get(e);if(!t)throw F({path:"Model.uniqueIdentifier",message:"Invalid fieldId in compoundId.fieldIds",context:{fieldId:e}});return t}));return{name:null!=(e=this.compoundId.name)?e:t.map((e=>e.name)).join("_"),fields:t}}if(this.compoundUnique.fieldIds.length>0){const e=this.compoundUnique.fieldIds.map((e=>{const t=pe.get(e);if(!t)throw F({path:"Model.uniqueIdentifier",message:"Invalid fieldId in compoundUnique.fieldIds",context:{fieldId:e}});return t}));return{name:null!=(t=this.compoundUnique.name)?t:e.map((e=>e.name)).join("_"),fields:e}}const s=this.uniqueFields&&this.uniqueFields[0];if(s)return{name:s.name,fields:[s]};throw F({path:"ModelStore.uniqueIdentifiers",message:"Unable to resolve unique identifiers for model",context:{modelId:this.id}})}get idField(){return this.fields.find((e=>e.isId))||null}get hasScalarListRelation(){return this.fields.some((e=>e.isScalarListRelation))||!1}get hasScalarListTwoWayMNRelation(){return this.fields.some((e=>e.isScalarListTwoWayMNRelation))||!1}get uniqueFields(){return this.fields.filter((e=>e.isUnique))}update(e,t={}){c.exports.has(e,"name")&&(this.name=e.name),c.exports.has(e,"plural")&&(this.plural=e.plural),c.exports.has(e,"count")&&(this.count=e.count),c.exports.has(e,"fieldIds")&&(this.fieldIds=e.fieldIds),c.exports.has(e,"compoundId")&&(this.compoundId=e.compoundId),c.exports.has(e,"compoundUnique")&&(this.compoundUnique=e.compoundUnique),super.update(e,t)}}Xt([h],es.prototype,"id",2),Xt([h],es.prototype,"dbName",2),Xt([h],es.prototype,"name",2),Xt([h],es.prototype,"plural",2),Xt([h],es.prototype,"count",2),Xt([h],es.prototype,"fieldIds",2),Xt([h],es.prototype,"compoundId",2),Xt([h],es.prototype,"compoundUnique",2),Xt([v],es.prototype,"fields",1),Xt([v],es.prototype,"uniqueIdentifier",1),Xt([v],es.prototype,"idField",1),Xt([v],es.prototype,"hasScalarListRelation",1),Xt([v],es.prototype,"hasScalarListTwoWayMNRelation",1),Xt([v],es.prototype,"uniqueFields",1),Xt([p],es.prototype,"runCountQuery",2),Xt([p],es.prototype,"update",1);var ts=Object.defineProperty,ss=Object.getOwnPropertyDescriptor;class is extends W{constructor(){super(es)}add(e,t={}){const s=e.name;return super.add(o(l({},e),{id:s}),t)}getByName(e){return this.get(e)}}((e,t,s,i)=>{for(var a,n=i>1?void 0:i?ss(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);i&&n&&ts(t,s,n)})([p],is.prototype,"add",1);var as=new is,ns=Object.defineProperty,rs=Object.getOwnPropertyDescriptor;class ls{send(e){window.transport.request({channel:"telemetry",action:"send",payload:{data:{command:e.command,commandDetails:JSON.stringify(e.commandDetails),commandContext:JSON.stringify({model_count:as.size})}}})}}((e,t,s,i)=>{for(var a,n=i>1?void 0:i?rs(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);i&&n&&ns(t,s,n)})([p],ls.prototype,"send",1);var os=new ls,ds=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,hs=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?cs(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ds(t,s,n),n};class ps{constructor(){this.type="fatal",this.description=null,this.dump=null}update(e){this.type=e.type,this.description=e.description,this.dump=e.dump,os.send({command:"error_throw",commandDetails:{type:this.type,description:this.description}})}}hs([h],ps.prototype,"type",2),hs([h],ps.prototype,"description",2),hs([h],ps.prototype,"dump",2),hs([p],ps.prototype,"update",1);var us=new ps;const ms=e=>{const t=[];return e.filter((e=>"delete"===e.type)).forEach((s=>{if(!s.record)throw F({path:"prismaQueriesFromActions._delete",message:"Unrecognized Record in Action",context:{action:s.serialize()}});const i=s.record.model,a={where:ys(s)};t.push({modelName:i.name,operation:"delete",args:a}),e=e.filter((e=>s.id!==e.id&&s.recordId!==e.recordId))})),{actions:e,requests:t}},gs=e=>{const t=[];return e.filter((e=>"create"===e.type)).forEach((s=>{if(!s.record)throw F({path:"prismaQueriesFromActions._create",message:"Unrecognized Record in Action",context:{action:s.serialize()}});const i=s.record.model,a={data:{},select:fs(s)},n=e.find((e=>"update"===e.type&&e.sessionId===s.sessionId&&e.recordId===s.recordId));n&&(a.data=Cs(n),a.select=l(l({},a.select),fs(n))),t.push({modelName:i.name,operation:"create",args:a}),e=e.filter((e=>e.id!==(null==n?void 0:n.id)&&s.id!==e.id))})),{actions:e,requests:t}},vs=e=>{const t=[];return e.filter((e=>"update"===e.type)).forEach((s=>{if(!s.record)throw F({path:"prismaQueriesFromActions._update",message:"Unrecognized Record in Action",context:{action:s.serialize()}});const i=s.record.model,a={where:ys(s),data:Is(s),select:fs(s)};t.push({modelName:i.name,operation:"update",args:a}),e=e.filter((e=>s.id!==e.id))})),{actions:e,requests:t}},fs=e=>{if(!e.record)throw F({path:"prismaQueriesFromActions._getRequestSelectArgument",message:"Unrecognized Record in Action",context:{action:e.serialize()}});const t=e.record.model.uniqueIdentifier.fields.reduce(((e,t)=>(e[t.name]=!0,e)),{});return"create"===e.type||"delete"===e.type?t:Object.keys(e.value).reduce(((e,t)=>(e[t]=!0,e)),t)},ys=e=>{if(!e.record)throw F({path:"prismaQueriesFromActions._getRequestWhereArgument",message:"Unrecognized Record in Action",context:{action:e.serialize()}});const t=e.record.model.uniqueIdentifier,s=t.name,i=t.fields.reduce(((t,s)=>(t[s.name]=e.record.valueInDB[s.name],t)),{});return 1===t.fields.length?i:{[s]:i}},Is=e=>{if(!e.record)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Unrecognized Record in Action",context:{action:e.serialize()}});const t=e.record.model;return Object.keys(e.value).reduce(((s,i)=>{const a=t.getFieldByName(i),n=e.value[i];if(!a)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Malformed field in action",context:{action:e.serialize()}});if(a.isReadOnly)return s;if(void 0===n)return s;if(a.isScalar&&a.isList||a.isEnum&&a.isList)s[i]={set:n};else if(a.isScalar||a.isEnum)s[i]=n;else if(a.isList&&a.isRelation){if(!a.typeAsModel)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Invalid field type",context:{field:a.serialize()}});const t=(e.record.valueInDB[i]||[]).map((e=>Ie(a.typeAsModel.id,e))),r=n.map((e=>Ie(a.typeAsModel.id,e))),l=c.exports.difference(r,t),o=c.exports.difference(t,r);s[i]={},c.exports.isEmpty(l)||(s[i].connect=l.map(((e,t)=>{const s=at.get(e)||at.add({id:e,modelId:a.typeAsModel.id,value:n[t]}),i=s.model.uniqueIdentifier,r=i.name,l=i.fields.reduce(((e,t)=>(e[t.name]=s.valueInDB[t.name],e)),{});return 1===i.fields.length?l:{[r]:l}}))),c.exports.isEmpty(o)||(s[i].disconnect=o.map(((t,s)=>{const i=at.get(t);if(!i)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Attempting to disconnect a non-existent record",context:{action:e.serialize(),index:s}});const a=i.model.uniqueIdentifier,n=a.name,r=a.fields.reduce(((e,t)=>(e[t.name]=i.valueInDB[t.name],e)),{});return 1===a.fields.length?r:{[n]:r}})))}else if(a.isRelation)if(null===n)s[i]={disconnect:!0};else{if(!a.typeAsModel)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Invalid field type",context:{field:a.serialize()}});const e=Ie(a.typeAsModel.id,n),t=at.get(e)||at.add({id:e,modelId:a.typeAsModel.id,value:n}),r=t.model.uniqueIdentifier,l=r.name,o=r.fields.reduce(((e,s)=>(e[s.name]=t.valueInDB[s.name],e)),{});1===r.fields.length?s[i]={connect:o}:s[i]={connect:{[l]:o}}}return s}),{})},Cs=e=>{const t=Is(e);return Object.keys(t).forEach((s=>{if(!e.record)throw F({path:"prismaQueriesFromActions._getCreateRequestDataArgument",message:"Unrecognized Record in Action",context:{action:e.serialize()}});const i=e.record.model.getFieldByName(s);if(!i)throw F({path:"prismaQueriesFromActions._getUpdateRequestDataArgument",message:"Malformed field in action",context:{action:e.serialize()}});i.isRelation&&!i.isList&&t[s].disconnect&&delete t[s],i.isRelation&&i.isList&&t[s].disconnect&&delete t[s].disconnect})),t};var ws=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,Es=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?bs(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&ws(t,s,n),n};class _s extends W{constructor(){super(Ke,{idbTableName:"actions"}),this.committing=!1,this.add=(e,t={})=>{var s;const i=super.add(e,t);return this.consolidate(),this.actions.length>0&&(null==(s=Tt.activeTab)||s.update({preview:!1}),ye.updateActions({visible:!0})),i},this.remove=e=>{const t=super.remove(e);return 0===this.actions.length&&ye.updateActions({visible:!1}),t},this.commit=async()=>{var e,t;if(this.invalidActions.length>0)return console.error("Commit failed: Some actions are invalid",this.invalidActions),us.update({type:"fatal",description:"Failed to commit changes because some actions are invalid",dump:`Invalid actions: \n${JSON.stringify(this.invalidActions,null,2)}`}),void ye.updateError({visible:!0});if(!(null==(t=null==(e=Tt.activeTab)?void 0:e.session)?void 0:t.isScript))return;const s=this.actions;let i=[];try{i=(e=>{const t=e.map((e=>xs.get(e))),s=[ms,gs,vs].reduce(((e,t)=>{const s=t(e.actions);return e.actions=s.actions,e.requests.push(...s.requests),e}),{actions:t,requests:[]});return s.actions.length>0&&console.warn("All actions were not processed. Pending actions: ",JSON.stringify(y(s.actions),null,2)),s.requests})(s.map((e=>e.id))),console.log("Committing actions: ",i)}catch(a){throw console.error("Commit failed: Unable to generate Prisma Client requests",a),us.update({type:"fatal",description:"An unexpected error occurred while saving your changes",dump:`Message: ${a.message}\n`}),ye.updateError({visible:!0}),a}w((()=>this.committing=!0));try{const{error:e}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{schemaHash:Kt.activeProject.schemaHash,operation:"$transaction",queries:i}}});if(e)throw e;this.actions.filter((e=>"create"===e.type)).forEach((e=>{var t;return null==(t=e.record)?void 0:t.model.update({count:(e.record.model.count||0)+1})})),this.actions.filter((e=>"delete"===e.type)).forEach((e=>{var t;return null==(t=e.record)?void 0:t.model.update({count:(e.record.model.count||0)-1})})),this.discard(),Tt.activeTab.session.isScript&&await Tt.activeTab.session.script.run(),w((()=>this.committing=!1))}catch(a){w((()=>this.committing=!1));const e=Tt.activeTab.session.script.model;if("PrismaClientSchemaDriftedError"===a.type)us.update({type:"schemaDrift",description:"Your source Prisma Schema has changed. Please reload Studio to continue. Your changes will be saved.",dump:""});else if("PrismaClientRustPanicError"===a.type||"PrismaClientUnknownRequestError"===a.type)us.update({type:"fatal",description:`An unexpected error occurred while saving your changes to the \`${e.name}\` table`,dump:`Message: ${a.message}\n\nQuery: \n${JSON.stringify(i[0],null,2)}\n`});else{const e=`Type: ${a.type}\nMessage: ${a.message}\n\nCode: ${a.code}\n\nQuery:\n${i[0]}\n`;us.update({type:"client",description:`Failed to commit changes: ${a.message}`,dump:e})}throw ye.updateError({visible:!0}),a}},this.discard=()=>{const e=[...this.actions];for(let t=0;t{const e=Object.values(this.values).map((e=>e.id)),t=new Set,s=(i,a)=>{const n=this.get(i);if(!n)return;const r=e.findIndex(((e,t)=>{if(t<=a)return!1;const s=this.get(e);return!!s&&(s.sessionId===n.sessionId&&s.recordId===n.recordId&&s.type===n.type)}));if(-1===r)return;const o=this.get(e[r]);return o?(n.update({value:l(l({},n.value),o.value)}),t.add(e[r]),e.splice(r,1),s(i,a)):void 0};e.forEach(s);e.forEach((s=>{const i=this.get(s);i&&"delete"===i.type&&e.forEach((e=>{var a;const n=this.get(e);n&&(n&&"delete"!==n.type&&n.recordId===i.recordId&&t.add(e),(null==(a=n.record)?void 0:a.isCommitted)||t.add(s))}))})),t.forEach((e=>this.remove(e)))}}get actions(){return Object.values(this.values).filter((e=>{var t;return e.sessionId===(null==(t=Tt.activeTab)?void 0:t.sessionId)}))}get invalidActions(){return this.actions.filter((e=>!e.isValid))}}Es([h],_s.prototype,"committing",2),Es([v],_s.prototype,"actions",1),Es([v],_s.prototype,"invalidActions",1),Es([p],_s.prototype,"add",2),Es([p],_s.prototype,"remove",2),Es([p],_s.prototype,"commit",2),Es([p],_s.prototype,"discard",2),Es([p],_s.prototype,"consolidate",2);var xs=new _s;var Ss=new class{constructor(){this.inputObjectTypes=new Map}hydrate(e){(e.schema.inputObjectTypes.prisma||[]).forEach((e=>this.inputObjectTypes.set(e.name,e)));const{models:t,enums:s,types:i}=e.datamodel;t.forEach((t=>{var s,a,n,r,l,o,d;const c=as.add({dbName:t.dbName,name:t.name,plural:(null==(s=e.mappings.modelOperations.find((e=>e.model===t.name)))?void 0:s.plural)||t.name,fieldIds:[],compoundId:{name:null,fieldIds:[]},compoundUnique:{name:null,fieldIds:[]}});let h=[];t.fields.forEach((e=>{if("unsupported"===e.kind)return;"object"===e.kind&&i.some((t=>t.name===e.type))&&(e.type="Json",e.kind="scalar");let t=pe.add({id:X(c.id,e.name),modelId:c.id,name:e.name,type:e.type,kind:e.kind,default:e.default,isId:e.isId,isUnique:e.isUnique,isRequired:e.isRequired,isList:e.isList,isReadOnly:e.isReadOnly,isUpdatedAt:e.isUpdatedAt,relationName:e.relationName||"",relationFromFieldNames:e.relationFromFields||[],relationToFieldNames:e.relationToFields||[]});h.push(t.id)}));const p={name:null!=(n=null==(a=t.primaryKey)?void 0:a.name)?n:null,fieldIds:((null==(r=t.primaryKey)?void 0:r.fields)||[]).map((e=>X(c.id,e)))},u={name:null!=(o=null==(l=t.uniqueIndexes[0])?void 0:l.name)?o:null,fieldIds:(null==(d=t.uniqueIndexes[0])?void 0:d.fields.map((e=>X(t.name,e))))||[]};c.update({fieldIds:h,compoundId:p,compoundUnique:u})})),s.forEach((e=>{le.add({name:e.name,values:e.values.map((e=>e.name))})}))}removeUnusedModels(e){const{models:t}=e.datamodel;c.exports.difference(Object.values(as.values).map((e=>e.id)),t.map((e=>e.name))).forEach((e=>{Object.values(xs.values).forEach((t=>{var s;(null==(s=t.session)?void 0:s.isScript)&&t.session.script.modelId===e&&xs.remove(t.id)})),Object.values(Tt.values).forEach((t=>{var s;(null==(s=t.session)?void 0:s.isScript)&&t.session.script.modelId===e&&Tt.remove(t.id)})),Object.values(He.values).forEach((t=>{(null==t?void 0:t.isScript)&&t.script.modelId===e&&He.remove(t.id)})),as.remove(e)}))}removeUnusedFields(e){const{models:t}=e.datamodel;c.exports.difference(Object.values(pe.values).map((e=>e.id)),c.exports.flatten(t.map((e=>e.fields.map((t=>X(e.name,t.name))))))).forEach((e=>pe.remove(e)))}removeUnusedEnums(e){const{enums:t}=e.datamodel;c.exports.difference(Object.values(le.values).map((e=>e.id)),t.map((e=>e.name))).forEach((e=>le.remove(e)))}};function Ns(e,t,s,i){Object.defineProperty(e,t,{get:s,set:i,enumerable:!0,configurable:!0})}var Ls={};Ns(Ls,"serializeRPCMessage",(()=>Rs)),Ns(Ls,"deserializeRPCMessage",(()=>Ms));function Rs(e){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?"PrismaBigInt::"+t:"Buffer"===(null==t?void 0:t.type)&&Array.isArray(null==t?void 0:t.data)?"PrismaBytes::"+b.Buffer.from(t.data).toString("base64"):t))}function Ms(e){return JSON.parse(e,((e,t)=>"string"==typeof t&&t.startsWith("PrismaBigInt::")?BigInt(t.substr("PrismaBigInt::".length)):"string"==typeof t&&t.startsWith("PrismaBytes::")?t.substr("PrismaBytes::".length):t))}class Os{constructor(e){this.requestIdCounter=0,this.baseUrl=e}request(e){const t=new URL(this.baseUrl);return t.search=window.location.search,new Promise(((s,i)=>{const a=this.requestIdCounter;fetch(t.toString(),{method:"POST",headers:{"Content-Type":"text/plain"},body:Rs({requestId:a,channel:e.channel,action:e.action,payload:e.payload})}).then((async e=>{if(200===e.status){const t=Ms(await e.text());return s(t.payload)}return console.error("Non-200 Status Code in HTTPTransport.send. Body:",e.body),i({message:`Error in HTTP Request (Status: ${e.status})`,stack:JSON.stringify(e.body,null,2)})})).catch((e=>(console.error("Unable to communicate with backend: ",e),i({message:"Unable to communicate with Prisma Client. Is Studio still running? You may need to restart it using `npx prisma studio`",stack:e})))),this.requestIdCounter++}))}}const ks=async()=>{const e=Object.values(as.values),{error:t,data:s}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{schemaHash:Kt.activeProject.schemaHash,operation:"$transaction",queries:e.map((e=>Gt({modelId:e.id})))}}});if(t)throw F({path:"getAllCounts",message:"Unable to process `count` query",context:{error:t}});if(!Array.isArray(s))throw F({path:"getAllCounts",message:"Malformed response for `count` query:\n\n",context:{error:t}});s.forEach(((t,s)=>{e[s].update({count:t})}))},As=e=>(e=>{if("object"==typeof(t=e)&&null!==t&&"message"in t&&"string"==typeof t.message)return e;var t;try{return new Error(JSON.stringify(e))}catch{return new Error(String(e))}})(e).message;var Ds=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ps=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Ts(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Ds(t,s,n),n};class Vs{constructor(){this.hasCheckedForUpdates=!1,this.latestVersion="0.503.0",this.changelog="",this.isDownloading=!1,this.isUpdateReady=!1,this.isInstalling=!1,this.check=async()=>{if(!V.updates)return;w((()=>{this.hasCheckedForUpdates=!1,this.isDownloading=!1,this.isUpdateReady=!1,this.isInstalling=!1}));const{error:e,data:t}=await window.transport.request({channel:"update",action:"check",payload:{data:null}});if(e)return void console.error("Update check failed",e);const{available:s,version:i,changelog:a}=t;w(s?()=>{this.hasCheckedForUpdates=!0,this.latestVersion=i,this.changelog=a}:()=>{this.hasCheckedForUpdates=!0,this.latestVersion="0.503.0"})},this.download=async()=>V.updates?this.isDownloading?Promise.reject("Another download is in progress"):(w((()=>{this.isDownloading=!0,this.isUpdateReady=!1,this.isInstalling=!1})),await window.transport.request({channel:"update",action:"download",payload:{data:null}}),void w((()=>{this.isDownloading=!1,this.isUpdateReady=!0}))):Promise.resolve(),this.cancelDownload=async()=>{if(V.updates){if(!this.isDownloading)return Promise.resolve();await window.transport.request({channel:"update",action:"downloadCancel",payload:{data:null}}),w((()=>{this.isDownloading=!1,this.isUpdateReady=!1}))}},this.install=async()=>{V.updates&&(w((()=>{this.isDownloading=!1,this.isUpdateReady=!0,this.isInstalling=!0})),await window.transport.request({channel:"update",action:"install",payload:{data:null}}),w((()=>{this.isUpdateReady=!1,this.isInstalling=!1})))}}get isUpToDate(){return"0.503.0"===this.latestVersion}}Ps([h],Vs.prototype,"hasCheckedForUpdates",2),Ps([h],Vs.prototype,"latestVersion",2),Ps([h],Vs.prototype,"changelog",2),Ps([h],Vs.prototype,"isDownloading",2),Ps([h],Vs.prototype,"isUpdateReady",2),Ps([h],Vs.prototype,"isInstalling",2),Ps([v],Vs.prototype,"isUpToDate",1),Ps([p],Vs.prototype,"check",2),Ps([p],Vs.prototype,"download",2),Ps([p],Vs.prototype,"cancelDownload",2);var js=new Vs;var Fs=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,Hs=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?Bs(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&Fs(t,s,n),n};class Zs{constructor(){this.ready=!1,E({enforceActions:"always"}),console.log("Studio version","0.503.0")}async initTransport(){if("http"!==V.transport.type)return console.error("Unrecognized transport, aborting"),Promise.reject();window.transport=new Os(V.transport.url),window.toJS=y,window.stores={ActionStore:xs,BootstrapStore:qs,ConfigStore:V,DMMFStore:Ss,EnumStore:le,ErrorStore:us,FieldStore:pe,LayoutStore:ye,ModelStore:as,PersistenceStore:U,ProjectStore:Kt,RecordStore:at,ScriptStore:St,SessionStore:He,TabStore:Tt,TelemetryStore:os,ThemeStore:Bt,UpdateStore:js}}async init(){console.time("Bootstrap Duration"),this.update({ready:!1}),this.disposeProjectReaction&&this.disposeProjectReaction();try{const{error:e,data:t}=await window.transport.request({channel:"prisma",action:"getDMMF",payload:{data:null}});if(e||!t)throw new Error(`Error starting Prisma Client: ${JSON.stringify(e,null,2)}`);const{dmmf:s,schemaHash:i}=t,{error:a,data:n}=await window.transport.request({channel:"project",action:"get",payload:{data:null}});if(a||!n)throw new Error(`Error fetching project: ${a}`);const{name:r,schemaPath:l}=n,o=(e=>((e.endsWith("/")||e.endsWith("\\"))&&(e=e.slice(0,-1)),(e.startsWith("/")||e.startsWith("\\"))&&(e=e.slice(1)),e.replace(RegExp(/\/|\\/,"gi"),"-")))(l);Kt.add({id:o,name:r,schemaPath:l,schemaHash:i,recentModelIds:[]},{skipPersist:!0}),Kt.switch(o),await U.init({projectId:o}),Ss.hydrate(s);for(let c of[Kt,pe,as,le,St,at,He,xs,Tt])await c.restore();Ss.removeUnusedModels(s),Ss.removeUnusedFields(s),Ss.removeUnusedEnums(s),window.requestIdleCallback?window.requestIdleCallback(ks):await ks();Object.values(St.values).filter((e=>e.frozen&&as.get(e.modelId))).forEach((e=>e.update({fieldIds:e.model.fieldIds})));const d=(await U.load("projects")).find((e=>e.id===o));d&&Tt.hydrate({activeTabId:d.activeTabId}),await Kt.activeProject.forceUpdate(),this.update({ready:!0}),console.timeEnd("Bootstrap Duration")}catch(e){console.error(e);const t=(e=>{const t=/Error code: (P\d{4})/g.exec(e);return(null==t?void 0:t[1])?t[1]:""})(As(e));throw this.update({ready:!0}),0!==t.length?us.update({type:"client",description:`There was an error parsing your schema file with Prisma. Review documentation on error ${t} to learn more.`,dump:`${e.message}\n${e.stack}`}):us.update({type:"fatal",description:"Unable to load project",dump:`${e.message}\n${e.stack}`}),ye.updateError({visible:!0}),F({path:"BootstrapStore.init",message:"Studio bootstrap failed",context:{message:e.message,stack:e.stack},nativeError:e})}window.requestIdleCallback?window.requestIdleCallback(this.cleanupIndexedDB):this.cleanupIndexedDB()}update(e={}){c.exports.has(e,"ready")&&(this.ready=e.ready)}cleanupIndexedDB(){const e=Object.values(Tt.openTabs).map((e=>e.sessionId));Object.values(He.values).filter((t=>!e.includes(t.id))).forEach((e=>He.remove(e.id)));const t=Object.values(He.values).map((e=>e.scriptId));Object.values(St.values).filter((e=>!t.includes(e.id)&&null===e.name)).forEach((e=>St.remove(e.id)))}}Hs([h],Zs.prototype,"ready",2),Hs([p],Zs.prototype,"initTransport",1),Hs([p],Zs.prototype,"init",1),Hs([p],Zs.prototype,"update",1);var qs=new Zs;var Us="_container_18uec_1",zs="_wide_18uec_32",$s="_ghost_18uec_35",Js="_blue_18uec_49",Ws="_green_18uec_62",Ks="_red_18uec_75",Gs="_disabled_18uec_85";var Qs=_((e=>{var t=e,{dataTestId:s,innerRef:i,className:a,children:n,ghost:r=!1,wide:o=!1,blue:c=!1,green:h=!1,red:p=!1,disabled:u,onClick:m}=t,g=d(t,["dataTestId","innerRef","className","children","ghost","wide","blue","green","red","disabled","onClick"]);return x.createElement("button",l({"data-testid":null!=s?s:"button",ref:i,className:S(Us,{[zs]:o,[$s]:r,[Js]:c,[Ws]:h,[Ks]:p,[Gs]:u},a),disabled:u,onClick:e=>{u||m&&(e.stopPropagation(),e.preventDefault(),m(e))}},g),n)}));function Ys(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M7.875 16.9722L12 21.25M12 21.25L16.125 16.9722M12 21.25V11.625",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),N.exports.createElement("path",{d:"M20.8773 17.125C21.7462 16.5127 22.3978 15.6389 22.7375 14.6303C23.0773 13.6217 23.0874 12.5309 22.7666 11.5162C22.4458 10.5014 21.8107 9.6155 20.9534 8.987C20.0961 8.3585 19.0612 8.02011 17.999 8.02095H16.7398C16.4392 6.84701 15.8767 5.7567 15.0948 4.8321C14.3129 3.90751 13.3319 3.17272 12.2256 2.68306C11.1193 2.1934 9.91659 1.96162 8.70798 2.00518C7.49937 2.04873 6.31637 2.36649 5.24803 2.93452C4.1797 3.50255 3.25387 4.30606 2.54025 5.28455C1.82663 6.26304 1.34382 7.39102 1.12815 8.58356C0.912487 9.77611 0.969594 11.0021 1.29517 12.1694C1.62075 13.3366 2.20632 14.4146 3.00779 15.3222",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}function Xs(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 88 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M9.632 40.256C7.92533 40.256 6.432 39.9893 5.152 39.456C3.872 38.9013 2.88 38.1227 2.176 37.12C1.49333 36.096 1.152 34.912 1.152 33.568V32.864C1.152 32.7573 1.184 32.672 1.248 32.608C1.33333 32.5227 1.42933 32.48 1.536 32.48H5.184C5.29067 32.48 5.376 32.5227 5.44 32.608C5.52533 32.672 5.568 32.7573 5.568 32.864V33.344C5.568 34.1973 5.96267 34.9227 6.752 35.52C7.54133 36.096 8.608 36.384 9.952 36.384C11.0827 36.384 11.9253 36.1493 12.48 35.68C13.0347 35.1893 13.312 34.592 13.312 33.888C13.312 33.376 13.1413 32.9493 12.8 32.608C12.4587 32.2453 11.9893 31.936 11.392 31.68C10.816 31.4027 9.888 31.0293 8.608 30.56C7.17867 30.0693 5.96267 29.568 4.96 29.056C3.97867 28.544 3.14667 27.8507 2.464 26.976C1.80267 26.08 1.472 24.9813 1.472 23.68C1.472 22.4 1.80267 21.28 2.464 20.32C3.12533 19.36 4.04267 18.624 5.216 18.112C6.38933 17.6 7.744 17.344 9.28 17.344C10.9013 17.344 12.3413 17.632 13.6 18.208C14.88 18.784 15.872 19.5947 16.576 20.64C17.3013 21.664 17.664 22.8587 17.664 24.224V24.704C17.664 24.8107 17.6213 24.9067 17.536 24.992C17.472 25.056 17.3867 25.088 17.28 25.088H13.6C13.4933 25.088 13.3973 25.056 13.312 24.992C13.248 24.9067 13.216 24.8107 13.216 24.704V24.448C13.216 23.552 12.8427 22.7947 12.096 22.176C11.3707 21.536 10.368 21.216 9.088 21.216C8.08533 21.216 7.296 21.4293 6.72 21.856C6.16533 22.2827 5.888 22.8693 5.888 23.616C5.888 24.1493 6.048 24.5973 6.368 24.96C6.70933 25.3227 7.2 25.6533 7.84 25.952C8.50133 26.2293 9.51467 26.6133 10.88 27.104C12.3947 27.6587 13.5787 28.1493 14.432 28.576C15.3067 29.0027 16.0853 29.6427 16.768 30.496C17.472 31.328 17.824 32.416 17.824 33.76C17.824 35.7653 17.088 37.3547 15.616 38.528C14.144 39.68 12.1493 40.256 9.632 40.256ZM29.1753 26.784C29.1753 26.8907 29.1326 26.9867 29.0473 27.072C28.9833 27.136 28.8979 27.168 28.7913 27.168H25.7193C25.6126 27.168 25.5593 27.2213 25.5593 27.328V34.112C25.5593 34.816 25.6979 35.3387 25.9753 35.68C26.2739 36.0213 26.7433 36.192 27.3833 36.192H28.4393C28.5459 36.192 28.6313 36.2347 28.6953 36.32C28.7806 36.384 28.8233 36.4693 28.8233 36.576V39.616C28.8233 39.8507 28.6953 39.9893 28.4393 40.032C27.5433 40.0747 26.9033 40.096 26.5193 40.096C24.7486 40.096 23.4259 39.808 22.5513 39.232C21.6766 38.6347 21.2286 37.5253 21.2073 35.904V27.328C21.2073 27.2213 21.1539 27.168 21.0473 27.168H19.2233C19.1166 27.168 19.0206 27.136 18.9353 27.072C18.8713 26.9867 18.8393 26.8907 18.8393 26.784V23.936C18.8393 23.8293 18.8713 23.744 18.9353 23.68C19.0206 23.5947 19.1166 23.552 19.2233 23.552H21.0473C21.1539 23.552 21.2073 23.4987 21.2073 23.392V19.584C21.2073 19.4773 21.2393 19.392 21.3033 19.328C21.3886 19.2427 21.4846 19.2 21.5913 19.2H25.1753C25.2819 19.2 25.3673 19.2427 25.4313 19.328C25.5166 19.392 25.5593 19.4773 25.5593 19.584V23.392C25.5593 23.4987 25.6126 23.552 25.7193 23.552H28.7913C28.8979 23.552 28.9833 23.5947 29.0473 23.68C29.1326 23.744 29.1753 23.8293 29.1753 23.936V26.784ZM40.5315 23.936C40.5315 23.8293 40.5635 23.744 40.6275 23.68C40.7128 23.5947 40.8088 23.552 40.9155 23.552H44.6595C44.7662 23.552 44.8515 23.5947 44.9155 23.68C45.0008 23.744 45.0435 23.8293 45.0435 23.936V39.616C45.0435 39.7227 45.0008 39.8187 44.9155 39.904C44.8515 39.968 44.7662 40 44.6595 40H40.9155C40.8088 40 40.7128 39.968 40.6275 39.904C40.5635 39.8187 40.5315 39.7227 40.5315 39.616V38.528C40.5315 38.464 40.5102 38.432 40.4675 38.432C40.4248 38.4107 40.3822 38.432 40.3395 38.496C39.4862 39.648 38.1635 40.224 36.3715 40.224C34.7502 40.224 33.4168 39.7333 32.3715 38.752C31.3262 37.7707 30.8035 36.3947 30.8035 34.624V23.936C30.8035 23.8293 30.8355 23.744 30.8995 23.68C30.9848 23.5947 31.0808 23.552 31.1875 23.552H34.8995C35.0062 23.552 35.0915 23.5947 35.1555 23.68C35.2408 23.744 35.2835 23.8293 35.2835 23.936V33.504C35.2835 34.3573 35.5075 35.0507 35.9555 35.584C36.4248 36.1173 37.0648 36.384 37.8755 36.384C38.6008 36.384 39.1982 36.1707 39.6675 35.744C40.1368 35.296 40.4248 34.72 40.5315 34.016V23.936ZM57.617 17.984C57.617 17.8773 57.649 17.792 57.713 17.728C57.7983 17.6427 57.8943 17.6 58.001 17.6H61.745C61.8517 17.6 61.937 17.6427 62.001 17.728C62.0863 17.792 62.129 17.8773 62.129 17.984V39.616C62.129 39.7227 62.0863 39.8187 62.001 39.904C61.937 39.968 61.8517 40 61.745 40H58.001C57.8943 40 57.7983 39.968 57.713 39.904C57.649 39.8187 57.617 39.7227 57.617 39.616V38.56C57.617 38.496 57.5957 38.464 57.553 38.464C57.5103 38.4427 57.4677 38.4533 57.425 38.496C56.529 39.6693 55.3023 40.256 53.745 40.256C52.2517 40.256 50.961 39.84 49.873 39.008C48.8063 38.176 48.0383 37.0347 47.569 35.584C47.2063 34.4747 47.025 33.184 47.025 31.712C47.025 30.1973 47.217 28.8747 47.601 27.744C48.0917 26.3787 48.8597 25.3013 49.905 24.512C50.9717 23.7013 52.2837 23.296 53.841 23.296C55.377 23.296 56.5717 23.8293 57.425 24.896C57.4677 24.96 57.5103 24.9813 57.553 24.96C57.5957 24.9387 57.617 24.896 57.617 24.832V17.984ZM56.945 35.008C57.3717 34.2187 57.585 33.1413 57.585 31.776C57.585 30.3467 57.3503 29.2267 56.881 28.416C56.3903 27.584 55.6757 27.168 54.737 27.168C53.7343 27.168 52.977 27.584 52.465 28.416C51.9317 29.248 51.665 30.3787 51.665 31.808C51.665 33.088 51.889 34.1547 52.337 35.008C52.8703 35.9253 53.6597 36.384 54.705 36.384C55.665 36.384 56.4117 35.9253 56.945 35.008ZM67.006 21.696C66.2807 21.696 65.6727 21.4613 65.182 20.992C64.7127 20.5013 64.478 19.8933 64.478 19.168C64.478 18.4213 64.7127 17.8133 65.182 17.344C65.6513 16.8747 66.2593 16.64 67.006 16.64C67.7527 16.64 68.3607 16.8747 68.83 17.344C69.2993 17.8133 69.534 18.4213 69.534 19.168C69.534 19.8933 69.2887 20.5013 68.798 20.992C68.3287 21.4613 67.7313 21.696 67.006 21.696ZM65.086 40C64.9793 40 64.8833 39.968 64.798 39.904C64.734 39.8187 64.702 39.7227 64.702 39.616V23.904C64.702 23.7973 64.734 23.712 64.798 23.648C64.8833 23.5627 64.9793 23.52 65.086 23.52H68.83C68.9367 23.52 69.022 23.5627 69.086 23.648C69.1713 23.712 69.214 23.7973 69.214 23.904V39.616C69.214 39.7227 69.1713 39.8187 69.086 39.904C69.022 39.968 68.9367 40 68.83 40H65.086ZM79.0342 40.256C77.2422 40.256 75.7062 39.7867 74.4262 38.848C73.1462 37.9093 72.2716 36.6293 71.8022 35.008C71.5036 34.0053 71.3542 32.9173 71.3542 31.744C71.3542 30.4853 71.5036 29.3547 71.8022 28.352C72.2929 26.7733 73.1782 25.536 74.4582 24.64C75.7382 23.744 77.2742 23.296 79.0662 23.296C80.8156 23.296 82.3089 23.744 83.5462 24.64C84.7836 25.5147 85.6582 26.7413 86.1702 28.32C86.5116 29.3867 86.6822 30.5067 86.6822 31.68C86.6822 32.832 86.5329 33.9093 86.2342 34.912C85.7649 36.576 84.8902 37.888 83.6102 38.848C82.3516 39.7867 80.8262 40.256 79.0342 40.256ZM79.0342 36.384C79.7382 36.384 80.3356 36.1707 80.8262 35.744C81.3169 35.3173 81.6689 34.7307 81.8822 33.984C82.0529 33.3013 82.1382 32.5547 82.1382 31.744C82.1382 30.848 82.0529 30.0907 81.8822 29.472C81.6476 28.7467 81.2849 28.1813 80.7942 27.776C80.3036 27.3707 79.7062 27.168 79.0022 27.168C78.2769 27.168 77.6689 27.3707 77.1782 27.776C76.7089 28.1813 76.3676 28.7467 76.1542 29.472C75.9836 29.984 75.8982 30.7413 75.8982 31.744C75.8982 32.704 75.9729 33.4507 76.1222 33.984C76.3356 34.7307 76.6876 35.3173 77.1782 35.744C77.6902 36.1707 78.3089 36.384 79.0342 36.384Z",fill:"#2D3748"}),N.exports.createElement("path",{d:"M5.9 3.186C6.516 3.186 7.05733 3.312 7.524 3.564C7.99067 3.816 8.35 4.17533 8.602 4.642C8.86333 5.09933 8.994 5.62667 8.994 6.224C8.994 6.812 8.85867 7.33 8.588 7.778C8.32667 8.226 7.95333 8.576 7.468 8.828C6.992 9.07067 6.44133 9.192 5.816 9.192H3.828C3.78133 9.192 3.758 9.21533 3.758 9.262V12.832C3.758 12.8787 3.73933 12.9207 3.702 12.958C3.674 12.986 3.63667 13 3.59 13H1.952C1.90533 13 1.86333 12.986 1.826 12.958C1.798 12.9207 1.784 12.8787 1.784 12.832V3.354C1.784 3.30733 1.798 3.27 1.826 3.242C1.86333 3.20467 1.90533 3.186 1.952 3.186H5.9ZM5.606 7.61C6.03533 7.61 6.38067 7.48867 6.642 7.246C6.90333 6.994 7.034 6.66733 7.034 6.266C7.034 5.85533 6.90333 5.524 6.642 5.272C6.38067 5.02 6.03533 4.894 5.606 4.894H3.828C3.78133 4.894 3.758 4.91733 3.758 4.964V7.54C3.758 7.58667 3.78133 7.61 3.828 7.61H5.606ZM16.0035 13C15.9102 13 15.8448 12.958 15.8075 12.874L14.0575 8.996C14.0388 8.95867 14.0108 8.94 13.9735 8.94H12.6715C12.6248 8.94 12.6015 8.96333 12.6015 9.01V12.832C12.6015 12.8787 12.5828 12.9207 12.5455 12.958C12.5175 12.986 12.4802 13 12.4335 13H10.7955C10.7488 13 10.7068 12.986 10.6695 12.958C10.6415 12.9207 10.6275 12.8787 10.6275 12.832V3.368C10.6275 3.32133 10.6415 3.284 10.6695 3.256C10.7068 3.21867 10.7488 3.2 10.7955 3.2H14.7995C15.3968 3.2 15.9195 3.32133 16.3675 3.564C16.8248 3.80667 17.1748 4.152 17.4175 4.6C17.6695 5.048 17.7955 5.566 17.7955 6.154C17.7955 6.78867 17.6368 7.33467 17.3195 7.792C17.0022 8.24 16.5588 8.55733 15.9895 8.744C15.9428 8.76267 15.9288 8.79533 15.9475 8.842L17.8515 12.804C17.8702 12.8413 17.8795 12.8693 17.8795 12.888C17.8795 12.9627 17.8282 13 17.7255 13H16.0035ZM12.6715 4.894C12.6248 4.894 12.6015 4.91733 12.6015 4.964V7.358C12.6015 7.40467 12.6248 7.428 12.6715 7.428H14.5055C14.8975 7.428 15.2148 7.31133 15.4575 7.078C15.7095 6.84467 15.8355 6.54133 15.8355 6.168C15.8355 5.79467 15.7095 5.49133 15.4575 5.258C15.2148 5.01533 14.8975 4.894 14.5055 4.894H12.6715ZM19.8151 13C19.7685 13 19.7265 12.986 19.6891 12.958C19.6611 12.9207 19.6471 12.8787 19.6471 12.832V3.368C19.6471 3.32133 19.6611 3.284 19.6891 3.256C19.7265 3.21867 19.7685 3.2 19.8151 3.2H21.4531C21.4998 3.2 21.5371 3.21867 21.5651 3.256C21.6025 3.284 21.6211 3.32133 21.6211 3.368V12.832C21.6211 12.8787 21.6025 12.9207 21.5651 12.958C21.5371 12.986 21.4998 13 21.4531 13H19.8151ZM27.1049 13.112C26.3582 13.112 25.7049 12.9953 25.1449 12.762C24.5849 12.5193 24.1509 12.1787 23.8429 11.74C23.5442 11.292 23.3949 10.774 23.3949 10.186V9.878C23.3949 9.83133 23.4089 9.794 23.4369 9.766C23.4742 9.72867 23.5162 9.71 23.5629 9.71H25.1589C25.2055 9.71 25.2429 9.72867 25.2709 9.766C25.3082 9.794 25.3269 9.83133 25.3269 9.878V10.088C25.3269 10.4613 25.4995 10.7787 25.8449 11.04C26.1902 11.292 26.6569 11.418 27.2449 11.418C27.7395 11.418 28.1082 11.3153 28.3509 11.11C28.5935 10.8953 28.7149 10.634 28.7149 10.326C28.7149 10.102 28.6402 9.91533 28.4909 9.766C28.3415 9.60733 28.1362 9.472 27.8749 9.36C27.6229 9.23867 27.2169 9.07533 26.6569 8.87C26.0315 8.65533 25.4995 8.436 25.0609 8.212C24.6315 7.988 24.2675 7.68467 23.9689 7.302C23.6795 6.91 23.5349 6.42933 23.5349 5.86C23.5349 5.3 23.6795 4.81 23.9689 4.39C24.2582 3.97 24.6595 3.648 25.1729 3.424C25.6862 3.2 26.2789 3.088 26.9509 3.088C27.6602 3.088 28.2902 3.214 28.8409 3.466C29.4009 3.718 29.8349 4.07267 30.1429 4.53C30.4602 4.978 30.6189 5.50067 30.6189 6.098V6.308C30.6189 6.35467 30.6002 6.39667 30.5629 6.434C30.5349 6.462 30.4975 6.476 30.4509 6.476H28.8409C28.7942 6.476 28.7522 6.462 28.7149 6.434C28.6869 6.39667 28.6729 6.35467 28.6729 6.308V6.196C28.6729 5.804 28.5095 5.47267 28.1829 5.202C27.8655 4.922 27.4269 4.782 26.8669 4.782C26.4282 4.782 26.0829 4.87533 25.8309 5.062C25.5882 5.24867 25.4669 5.50533 25.4669 5.832C25.4669 6.06533 25.5369 6.26133 25.6769 6.42C25.8262 6.57867 26.0409 6.72333 26.3209 6.854C26.6102 6.97533 27.0535 7.14333 27.6509 7.358C28.3135 7.60067 28.8315 7.81533 29.2049 8.002C29.5875 8.18867 29.9282 8.46867 30.2269 8.842C30.5349 9.206 30.6889 9.682 30.6889 10.27C30.6889 11.1473 30.3669 11.8427 29.7229 12.356C29.0789 12.86 28.2062 13.112 27.1049 13.112ZM38.791 3.312C38.8377 3.23733 38.903 3.2 38.987 3.2H40.625C40.6717 3.2 40.709 3.21867 40.737 3.256C40.7744 3.284 40.793 3.32133 40.793 3.368V12.832C40.793 12.8787 40.7744 12.9207 40.737 12.958C40.709 12.986 40.6717 13 40.625 13H38.987C38.9404 13 38.8984 12.986 38.861 12.958C38.833 12.9207 38.819 12.8787 38.819 12.832V6.658C38.819 6.62067 38.8097 6.602 38.791 6.602C38.7724 6.602 38.7537 6.616 38.735 6.644L37.251 8.968C37.2044 9.04267 37.139 9.08 37.055 9.08H36.229C36.145 9.08 36.0797 9.04267 36.033 8.968L34.549 6.644C34.5304 6.616 34.5117 6.60667 34.493 6.616C34.4744 6.616 34.465 6.63467 34.465 6.672V12.832C34.465 12.8787 34.4464 12.9207 34.409 12.958C34.381 12.986 34.3437 13 34.297 13H32.659C32.6124 13 32.5704 12.986 32.533 12.958C32.505 12.9207 32.491 12.8787 32.491 12.832V3.368C32.491 3.32133 32.505 3.284 32.533 3.256C32.5704 3.21867 32.6124 3.2 32.659 3.2H34.297C34.381 3.2 34.4464 3.23733 34.493 3.312L36.593 6.574C36.621 6.63 36.649 6.63 36.677 6.574L38.791 3.312ZM49.1488 13C49.0555 13 48.9948 12.9533 48.9668 12.86L48.5468 11.488C48.5282 11.4507 48.5048 11.432 48.4768 11.432H45.0328C45.0048 11.432 44.9815 11.4507 44.9628 11.488L44.5568 12.86C44.5288 12.9533 44.4682 13 44.3748 13H42.5968C42.5408 13 42.4988 12.986 42.4708 12.958C42.4428 12.9207 42.4382 12.8693 42.4568 12.804L45.4808 3.34C45.5088 3.24667 45.5695 3.2 45.6628 3.2H47.8608C47.9542 3.2 48.0148 3.24667 48.0428 3.34L51.0668 12.804C51.0762 12.8227 51.0808 12.846 51.0808 12.874C51.0808 12.958 51.0295 13 50.9268 13H49.1488ZM45.4668 9.822C45.4575 9.878 45.4762 9.906 45.5228 9.906H47.9868C48.0428 9.906 48.0615 9.878 48.0428 9.822L46.7828 5.664C46.7735 5.62667 46.7595 5.61267 46.7408 5.622C46.7222 5.622 46.7082 5.636 46.6988 5.664L45.4668 9.822Z",fill:"#718096"}))}var ei="_container_vmd0x_1";var ti=_((e=>{var t=e,{className:s,children:i,onClick:a}=t,n=d(t,["className","children","onClick"]);return x.createElement(Qs,l({className:S(ei,s),onClick:a},n),i)}));class si extends x.PureComponent{componentDidMount(){var e;const{target:t,keys:s,preventDefault:i,stopPropagation:a,onMatch:n}=this.props,r=null!=(e=null==t?void 0:t.current)?e:document;this.instance=L(r),this.instance.bind(s,((e,t)=>{i&&e.preventDefault(),a&&e.stopImmediatePropagation(),n(e,t)}),"keydown")}componentWillUnmount(){this.instance.unbind(this.props.keys,"keydown")}render(){return x.createElement(x.Fragment,null)}}si.defaultProps={preventDefault:!0,stopPropagation:!0};var ii={container:"_container_1lyn8_1",input:"_input_1lyn8_6",file:"_file_1lyn8_16"};class ai extends x.PureComponent{constructor(){super(...arguments),this.input=x.createRef(),this.handleChange=e=>{const{disabled:t,onChange:s}=this.props;t||s(e.currentTarget.value)},this.handleBlur=()=>{const{disabled:e,onBlur:t}=this.props;e||t()}}componentDidMount(){var e;const t=null!=(e=this.props.innerRef)?e:this.input;t.current&&this.props.focusOnMount&&t.current.focus()}render(){const e=this.props,{className:t,innerRef:s,style:i,type:a,tabIndex:n,value:r,placeholder:o,disabled:c,focusOnMount:h,onChange:p,onBlur:u,onConfirm:m,onCancel:g}=e,v=d(e,["className","innerRef","style","type","tabIndex","value","placeholder","disabled","focusOnMount","onChange","onBlur","onConfirm","onCancel"]),f=null!=s?s:this.input;return x.createElement("div",l({className:S(ii.container,t),style:i},v),x.createElement("input",{ref:f,lang:"en",tabIndex:n,className:S(ii.input,{[ii.disabled]:c}),type:a,placeholder:o,disabled:c,value:null===r?"":r,onChange:this.handleChange,onBlur:this.handleBlur}),m&&x.createElement(si,{keys:"enter",target:f,onMatch:m}),g&&x.createElement(si,{keys:"esc",target:f,onMatch:g}))}}function ni(e){return N.exports.createElement("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L8.70711 7.29289ZM15.7782 17.1924C16.1687 17.5829 16.8019 17.5829 17.1924 17.1924C17.5829 16.8019 17.5829 16.1687 17.1924 15.7782L15.7782 17.1924ZM7.29289 15.7782C6.90237 16.1687 6.90237 16.8019 7.29289 17.1924C7.68342 17.5829 8.31658 17.5829 8.70711 17.1924L7.29289 15.7782ZM17.1924 8.70711C17.5829 8.31658 17.5829 7.68342 17.1924 7.29289C16.8019 6.90237 16.1687 6.90237 15.7782 7.29289L17.1924 8.70711ZM7.29289 8.70711L15.7782 17.1924L17.1924 15.7782L8.70711 7.29289L7.29289 8.70711ZM8.70711 17.1924L17.1924 8.70711L15.7782 7.29289L7.29289 15.7782L8.70711 17.1924Z",fill:"currentColor"}))}function ri(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"m23.968743,20.378119c0,0.634822 -0.252181,1.243672 -0.701129,1.69262c-0.448948,0.448948 -1.057797,0.701129 -1.69262,0.701129l-19.149988,0c-0.634858,0 -1.24372,-0.252181 -1.692632,-0.701129c-0.448924,-0.448948 -0.701117,-1.057797 -0.701117,-1.69262l0,-16.75624c0,-0.634858 0.252193,-1.24372 0.701117,-1.692632c0.448912,-0.448924 1.057774,-0.701117 1.692632,-0.701117l5.984371,0l2.393749,3.590623l10.771868,0c0.634822,0 1.243672,0.252193 1.69262,0.701117c0.448948,0.448912 0.701129,1.057774 0.701129,1.692632l0,13.165617z"}))}function li(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fill:"none",d:"m10.7143,14.96883c2.6036,0 4.7143,-2.1106 4.7143,-4.7143c0,-2.60358 -2.1107,-4.71424 -4.7143,-4.71424c-2.60364,0 -4.7143,2.11066 -4.7143,4.71424c0,2.6037 2.11066,4.7143 4.7143,4.7143z"}),N.exports.createElement("path",{fill:"none",d:"m18,17.54023l-3.4286,-3.4285",strokeLinecap:"round"}))}ai.defaultProps={value:"",disabled:!1,focusOnMount:!1,onChange:()=>{},onBlur:()=>{}};var oi="_header_zfcta_1",di="_search_zfcta_15",ci="_list_zfcta_25",hi="_project_zfcta_32",pi="_projectRemoveButton_zfcta_44",ui="_projectMeta_zfcta_54",mi="_projectName_zfcta_59",gi="_projectDir_zfcta_63";class vi extends x.PureComponent{constructor(e){super(e),this.state={projects:[],searchText:""},this.handleSearch=e=>{this.setState({searchText:e})}}async componentDidMount(){const{error:e,data:t}=await window.transport.request({channel:"project",action:"getAll",payload:{data:null}});if(e)return F({path:"ProjectList.componentDidMount",message:"Failed to fetch all projects",context:{error:e}});this.setState({projects:t||[]})}handleOpen(e){window.transport.request({channel:"project",action:"open",payload:{data:{schemaPath:e}}})}handleRemove(e){this.setState((t=>({projects:t.projects.filter((t=>t.schemaPath!==e))}))),window.transport.request({channel:"project",action:"delete",payload:{data:{schemaPath:e}}})}guessProjectName(e){return e.name?e.name:e.schemaPath.endsWith("/prisma/schema.prisma")?c.exports.capitalize(e.schemaPath.split("/").slice(-3,-2)[0]):e.schemaPath.endsWith("\\prisma\\schema.prisma")?c.exports.capitalize(e.schemaPath.split("\\").slice(-3,-2)[0]):e.schemaPath.endsWith("/schema.prisma")?c.exports.capitalize(e.schemaPath.split("/").slice(-2,-1)[0]):e.schemaPath.endsWith("\\schema.prisma")?c.exports.capitalize(e.schemaPath.split("\\").slice(-2,-1)[0]):"Untitled Project"}render(){const{projects:e,searchText:t}=this.state,s=e.filter((e=>{var s,i;return(null==(s=e.name)?void 0:s.toLowerCase().includes(null==t?void 0:t.toLowerCase()))||(null==(i=e.schemaPath)?void 0:i.toLowerCase().includes(null==t?void 0:t.toLowerCase()))}));return x.createElement(x.Fragment,null,x.createElement("div",{className:oi},x.createElement(li,null),x.createElement(ai,{type:"text",className:di,value:t,placeholder:"Search",onChange:this.handleSearch})),x.createElement("div",{className:ci},s.map((e=>x.createElement("div",{key:e.schemaPath,className:hi,onClick:()=>this.handleOpen(e.schemaPath)},x.createElement(ri,null),x.createElement("div",{className:ui},x.createElement("span",{className:mi},this.guessProjectName(e)),x.createElement("span",{className:gi},e.schemaPath)),x.createElement(ti,{className:pi,onClick:()=>this.handleRemove(e.schemaPath)},x.createElement(ni,null)))))))}}var fi={container:"_container_1qwck_1",left:"_left_1qwck_8",right:"_right_1qwck_9",logotype:"_logotype_1qwck_19",logo:"_logo_1qwck_19",fadeIn:"_fadeIn_1qwck_1",type:"_type_1qwck_33",updateContainer:"_updateContainer_1qwck_42",downloadIcon:"_downloadIcon_1qwck_51",alertIcon:"_alertIcon_1qwck_57",updateText:"_updateText_1qwck_63",readMoreLink:"_readMoreLink_1qwck_69",links:"_links_1qwck_75",link:"_link_1qwck_75",slideInRight:"_slideInRight_1qwck_1",footer:"_footer_1qwck_101"};class yi extends x.Component{constructor(){super(...arguments),this.handleOpen=async()=>{const{error:e,data:t}=await window.transport.request({channel:"window",action:"pickPrismaSchema",payload:{data:null}});e||await window.transport.request({channel:"project",action:"open",payload:{data:{schemaPath:t.path}}})},this.handleInstallUpdate=async()=>{await js.download(),await js.install()},this.handleCancelDownload=async()=>{await js.cancelDownload()}}async componentDidMount(){await js.check()}render(){return x.createElement("div",{className:S(fi.container,{"theme--light":"light"===Bt.theme,"theme--dark":"dark"===Bt.theme})},x.createElement("div",{className:fi.container},x.createElement("div",{className:fi.left},x.createElement("div",{className:fi.logotype},x.createElement("img",{src:"./icon-1024.png",className:fi.logo}),x.createElement(Xs,{className:fi.type})),js.hasCheckedForUpdates&&!js.isUpToDate&&x.createElement("div",{className:fi.updateContainer},x.createElement(Ys,{className:fi.downloadIcon}),!js.isDownloading&&!js.isInstalling&&x.createElement(x.Fragment,null,x.createElement("span",{className:fi.updateText},"New version available"),x.createElement(Qs,{green:!0,onClick:this.handleInstallUpdate},"Update")),js.isDownloading&&x.createElement(x.Fragment,null,x.createElement("span",{className:fi.updateText},"Downloading .."),x.createElement(Qs,{red:!0,onClick:this.handleCancelDownload},"Cancel")),js.isInstalling&&x.createElement(x.Fragment,null,x.createElement("span",{className:fi.updateText},"Installing .."),x.createElement(Qs,{red:!0,onClick:this.handleCancelDownload},"Cancel"))),x.createElement("div",{className:fi.links},x.createElement("a",{className:fi.link},"0.503.0"),"|",x.createElement("a",{className:fi.link,href:"https://github.com/prisma/studio/releases",target:"_blank",rel:"noreferrer noopener"},"Changelog"))),x.createElement("div",{className:fi.right},x.createElement(vi,null),x.createElement("div",{className:fi.footer},x.createElement(Qs,{className:fi.button,onClick:this.handleOpen},"Select Schema")))))}}var Ii=_(yi);function Ci(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("rect",{fillRule:"evenodd",clipRule:"evenodd",y:10,width:24,height:4,rx:2}))}function wi(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.3327 2.54004C24.1705 3.30678 24.227 4.60642 23.4591 5.44287L9.78844 20.3338C9.3987 20.7583 8.8484 21 8.27163 21C7.69485 21 7.14456 20.7583 6.75481 20.3338L0.540861 13.5652C-0.227044 12.7287 -0.170453 11.4291 0.667261 10.6624C1.50497 9.89561 2.80659 9.95212 3.57449 10.7886L8.27163 15.9049L20.4255 2.66625C21.1934 1.82981 22.495 1.7733 23.3327 2.54004Z"}))}var bi="_container_me63q_1",Ei="_checkbox_me63q_8",_i="_checked_me63q_22";var xi=_((({className:e,checked:t=!1,indeterminate:s=!1,onChange:i})=>x.createElement("div",{"data-testid":"checkbox","data-test-selected":t,className:S(bi,e),onClick:()=>i&&i(!t)},x.createElement("div",{className:S(Ei,{[_i]:t})},t&&(s?x.createElement(Ci,null):x.createElement(wi,null))))));var Si="_mask_u1smr_1";var Ni=_((({className:e,onClick:t})=>x.createElement("div",{"data-testid":"mask",className:S(Si,e),onClick:t})));var Li="_container_1t3y0_1",Ri="_transparent_1t3y0_8";class Mi extends x.PureComponent{constructor(){super(...arguments),this.state={top:0,bottom:0,left:0,right:0,minWidth:void 0,maxWidth:void 0,minHeight:void 0,maxHeight:void 0}}componentDidMount(){this.setPosition(this.props)}componentWillReceiveProps(e){this.setPosition(e)}setPosition({target:e,targetOffsetX:t,targetOffsetY:s}){e&&this.setState(((e,t={})=>{const s=e.current.getBoundingClientRect(),i={top:0,bottom:0,left:0,right:0};return t.x||(t.x=0),t.y||(t.y=0),window.innerWidth-s.right<100?(i.right=window.innerWidth-s.right-t.x,i.left=void 0,i.maxWidth=window.innerWidth-i.right-20):(i.left=s.left+t.x,i.right=void 0,i.maxWidth=window.innerWidth-i.left-20),window.innerHeight-s.bottom<100?(i.bottom=s.top-t.y,i.top=20,i.maxHeight=window.innerHeight-i.bottom-20):(i.top=s.bottom+t.y,i.bottom=void 0,i.maxHeight=window.innerHeight-i.top-20),i})(e,{x:t,y:s}))}render(){const e=this.props,{className:t,maskClassName:s,domElementId:i,target:a,targetOffsetX:n,targetOffsetY:r,darken:o,children:c,onClickOutside:h}=e,p=d(e,["className","maskClassName","domElementId","target","targetOffsetX","targetOffsetY","darken","children","onClickOutside"]);return x.createElement(x.Fragment,null,R.createPortal(x.createElement(x.Fragment,null,x.createElement(Ni,{className:S({[Ri]:!o},s),onClick:h}),x.createElement("div",l({"data-testid":"modal",className:S(Li,t),style:a&&this.state},p),c)),document.getElementById(i)))}}Mi.defaultProps={domElementId:"modal-root",targetOffsetX:0,targetOffsetY:5,darken:!1};var Oi=_(Mi);var ki="_container_58c43_1";var Ai=_((({className:e,target:t,targetOffsetX:s,targetOffsetY:i,darken:a,children:n,onClickOutside:r})=>x.createElement(Oi,{className:S(ki,e),target:t,targetOffsetX:s,targetOffsetY:i,darken:a,onClickOutside:r},n)));var Di="_container_bc1do_1",Ti="_pill_bc1do_8",Pi="_label_bc1do_26",Vi="_open_bc1do_33",ji="_exists_bc1do_43";var Fi="_tooltip_1bhvr_1",Bi="_search_1bhvr_7",Hi="_checkbox_1bhvr_30",Zi="_name_1bhvr_39",qi="_type_1bhvr_50";class Ui extends x.PureComponent{constructor(){super(...arguments),this.button=x.createRef(),this.state={isOpen:!1,searchValue:""},this.handleToggle=()=>{this.setState((e=>({isOpen:!e.isOpen})))},this.handleSelect=async e=>{var t,s;null==(t=Tt.activeTab)||t.update({preview:!1});const i=null==(s=Tt.activeTab)?void 0:s.session.script;let a;a=i.fieldIds.includes(e)?i.fieldIds.filter((t=>t!==e)):i.fieldIds.concat(e),i.update({frozen:!1,fieldIds:a})},this.handleSearch=e=>{this.setState({searchValue:e})},this.handleSelectAll=async()=>{var e,t;null==(e=Tt.activeTab)||e.update({preview:!1});const s=null==(t=Tt.activeTab)?void 0:t.session.script,i=s.fieldIds.length>0?[]:s.model.fieldIds;s.update({frozen:!1,fieldIds:i})}}render(){const{isOpen:e,searchValue:t}=this.state,{model:s,fieldIds:i}=Tt.activeTab.session.script,a=s.fields.filter((e=>e.name.toLowerCase().includes(t.toLowerCase()))),n=s.fieldIds.filter((e=>i.includes(e)));return x.createElement("div",{className:Di},x.createElement("div",{"data-testid":"field-filter",ref:this.button,className:S(Ti,{[Vi]:e,[ji]:n.length0,indeterminate:n.lengththis.handleSelectAll()}),x.createElement(ai,{type:"text",className:Bi,placeholder:"Search",value:t,onChange:this.handleSearch}),a.map((e=>{const t=n.includes(e.id);return x.createElement(x.Fragment,{key:e.id},x.createElement(xi,{className:Hi,checked:t,onChange:()=>this.handleSelect(e.id)}),x.createElement("div",{"data-testid":"filter-option",className:Zi,onClick:()=>this.handleSelect(e.id)},e.name),x.createElement("div",{className:qi,onClick:()=>this.handleSelect(e.id)},e.typeAsLabel))})))))}}var zi=_(Ui);var $i={tooltip:"_tooltip_13qj3_1",tooltipBody:"_tooltipBody_13qj3_4",text:"_text_13qj3_8",separator:"_separator_13qj3_15",input:"_input_13qj3_19"};class Ji extends x.PureComponent{constructor(){super(...arguments),this.button=x.createRef(),this.tooltipBody=x.createRef(),this.runScriptDebounced=c.exports.debounce((()=>{var e;(null==(e=Tt.activeTab)?void 0:e.session.script).run()}),300,{leading:!1,trailing:!0}),this.state={isOpen:!1},this.handleToggle=()=>{this.setState((e=>({isOpen:!e.isOpen})))},this.handleChangeTake=e=>{var t,s;null==(t=Tt.activeTab)||t.update({preview:!1});(null==(s=Tt.activeTab)?void 0:s.session.script).update({frozen:!1,pagination:{take:Number(e)}}),this.runScriptDebounced(),os.send({command:"pagination_change",commandDetails:{take_change:!0,skip_change:!1}})},this.handleChangeSkip=e=>{var t,s;null==(t=Tt.activeTab)||t.update({preview:!1});const i=Number(e);if(isNaN(i)||i<0)return;(null==(s=Tt.activeTab)?void 0:s.session.script).update({frozen:!1,pagination:{skip:i}}),this.runScriptDebounced(),os.send({command:"pagination_change",commandDetails:{take_change:!1,skip_change:!0}})}}render(){var e;const{isOpen:t}=this.state,{recordIds:s,model:i,pagination:a}=Tt.activeTab.session.script;return x.createElement("div",{className:Di},x.createElement("div",{"data-testid":"page-filter",ref:this.button,className:S(Ti,{[Vi]:t}),onClick:this.handleToggle},x.createElement("span",{className:Pi}," Showing "),x.createElement("span",null,x.createElement("span",{className:$i.noPadding,"data-testid":"pagination__take"},s.length)," of ",x.createElement("span",{className:$i.noPadding,"data-testid":"pagination__total"},null!=(e=i.count)?e:"?"))),t&&x.createElement(Ai,{className:$i.tooltip,target:this.button,onClickOutside:this.handleToggle},x.createElement("div",{className:$i.tooltipBody,ref:this.tooltipBody},x.createElement("span",{className:$i.text},"Take"),x.createElement(ai,{"data-testid":"pagination__take-input",type:"number",tabIndex:0,focusOnMount:!0,className:$i.input,value:String(a.take),onChange:this.handleChangeTake}),x.createElement("div",{className:$i.separator}),x.createElement("span",{className:$i.text},"Skip"),x.createElement(ai,{"data-testid":"pagination__skip-input",type:"number",tabIndex:0,focusOnMount:!0,className:$i.input,value:String(a.skip),onChange:this.handleChangeSkip}))),t&&x.createElement(si,{keys:"esc",target:this.tooltipBody,onMatch:()=>this.handleToggle()}))}}var Wi=_(Ji);class Ki extends x.PureComponent{constructor(){super(...arguments),this.button=x.createRef(),this.handleAddWhere=()=>{var e,t;null==(e=Tt.activeTab)||e.update({preview:!1});const s=null==(t=Tt.activeTab)?void 0:t.session.script;s.update({frozen:!1});const i=s.where.add({fieldIds:[s.model.uniqueIdentifier.fields[0].id],value:null});s.pagination.reset(),os.send({command:"filter_change",commandDetails:{total_filters_count:s.where.size,field_types:i.fields.map((e=>e.type)),operation:i.operation}})}}render(){const{where:e}=Tt.activeTab.session.script;return x.createElement("div",{className:Di},x.createElement("div",{"data-testid":"where-filter",ref:this.button,className:S(Ti,{[ji]:e.size>0}),onClick:()=>Tt.activeTab.toggleFilterPanel()}," ",x.createElement("span",{className:S(Pi)},"Filters"),x.createElement("span",null,e.size||"None"," ")))}}var Gi=_(Ki);var Qi={container:"_container_1n6lm_1",separator:"_separator_1n6lm_6",action:"_action_1n6lm_13",discardBtn:"_discardBtn_1n6lm_16"};class Yi extends x.PureComponent{constructor(){super(...arguments),this.handleDiscard=()=>{const{onSuccess:e}=this.props;xs.discard(),null==e||e(),os.send({command:"action_discard",commandDetails:{pending_action_count:xs.actions.length}})},this.handleCommit=async()=>{const{onSuccess:e,onFailure:t}=this.props;try{await xs.commit(),null==e||e()}catch(s){null==t||t()}os.send({command:"action_commit",commandDetails:{pending_action_count:xs.actions.length}})}}render(){const e=xs.actions.filter((e=>"create"!==e.type||!xs.actions.find((t=>t.recordId===e.recordId)))).length,t=xs.invalidActions.length;return 0===e?null:x.createElement(x.Fragment,null,x.createElement("div",{className:Qi.separator}),x.createElement("div",{"data-testid":"pending-actions",className:S(Qi.container,this.props.className)},x.createElement(Qs,{"data-testid":"commit-actions",green:!0,className:S(Qi.action,Qi.confirmBtn),disabled:t>0||xs.committing,onClick:this.handleCommit},xs.committing?"Saving Changes":`Save ${e} change${e>1?"s":""}`),x.createElement(Qs,{"data-testid":"discard-actions",ghost:!0,disabled:xs.committing,className:S(Qi.action,Qi.discardBtn),onClick:this.handleDiscard},"Discard changes"),x.createElement(si,{keys:"mod+s",onMatch:()=>xs.commit()})))}}var Xi=_(Yi);function ea(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 1.71429C14 0.767512 13.1046 0 12 0C10.8954 0 10 0.767512 10 1.71429V10L1.71429 10C0.767512 10 0 10.8954 0 12C0 13.1046 0.767512 14 1.71429 14L10 14V22.2857C10 23.2325 10.8954 24 12 24C13.1046 24 14 23.2325 14 22.2857V14L22.2857 14C23.2325 14 24 13.1046 24 12C24 10.8954 23.2325 10 22.2857 10L14 10V1.71429Z"}))}var ta="_filters_kgv6c_1",sa="_cell_kgv6c_29",ia="_fields_kgv6c_35",aa="_field_kgv6c_35",na="_dropdown_kgv6c_43",ra="_operation_kgv6c_49",la="_value_kgv6c_50",oa="_deleteButton_kgv6c_106",da="_addButton_kgv6c_129",ca="_removeButton_kgv6c_177",ha="_infoBox_kgv6c_188",pa="_container_kgv6c_192",ua="_containerHidden_kgv6c_200",ma="_containerWithoutFilters_kgv6c_204",ga="_filterControlsRow_kgv6c_209",va="_filterControlsRowWithoutFilters_kgv6c_214",fa="_invalid_kgv6c_218",ya="_relationType_kgv6c_222";function Ia(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("g",null,N.exports.createElement("circle",{cx:6,cy:12,r:2}),N.exports.createElement("circle",{cx:12,cy:12,r:2}),N.exports.createElement("circle",{cx:18,cy:12,r:2})))}var Ca="_container_1u411_1",wa="_button_1u411_7",ba="_open_1u411_18",Ea="_textButton_1u411_27",_a="_caret_1u411_46",xa="_select_1u411_56";var Sa="_container_32t9m_1",Na="_mask_32t9m_25",La="_item_32t9m_29",Ra="_highlighted_32t9m_37";class Ma extends x.PureComponent{constructor(e){super(e),this.menuRef=x.createRef(),this.itemRefs=[],this.handleHighlightNext=()=>{const{items:e}=this.props;this.setState((t=>t.highlightIndex===e.length-1?{highlightIndex:0}:{highlightIndex:t.highlightIndex+1}),(()=>{var e,t;null==(e=this.itemRefs[this.state.highlightIndex].current)||e.scrollIntoView(!1),null==(t=this.itemRefs[this.state.highlightIndex].current)||t.scrollIntoView({block:"nearest"})}))},this.handleHighlightPrevious=()=>{const{items:e}=this.props;this.setState((t=>0===t.highlightIndex||-1===t.highlightIndex?{highlightIndex:e.length-1}:{highlightIndex:t.highlightIndex-1}),(()=>{var e,t;null==(e=this.itemRefs[this.state.highlightIndex].current)||e.scrollIntoView(!1),null==(t=this.itemRefs[this.state.highlightIndex].current)||t.scrollIntoView({block:"nearest"})}))},this.handleSelect=()=>{const{highlightIndex:e}=this.state,{items:t,onSelect:s}=this.props;e<0||e>=t.length||s(t[e])},this.handleCancel=e=>{e.preventDefault()},this.state={highlightIndex:-1},this.itemRefs=e.items.map((()=>x.createRef()))}componentDidMount(){var e,t;(null==(e=this.props.target.current)?void 0:e.getBoundingClientRect())&&(null==(t=this.menuRef.current)||t.focus())}render(){const{highlightIndex:e}=this.state,{target:t,items:s,onSelect:i,onBlur:a}=this.props;return x.createElement(Oi,{className:Sa,maskClassName:Na,domElementId:"dropdown-root",target:t,targetOffsetY:0,darken:!1,onClickOutside:a},x.createElement(x.Fragment,null,x.createElement("div",{ref:this.menuRef,className:Sa,tabIndex:1},s.map(((t,s)=>x.createElement("div",{ref:this.itemRefs[s],key:t.id,"data-testid":"dropdown-menu__item",className:S(La,{[Ra]:e===s}),onClick:()=>i(t)},t.label)))),x.createElement(si,{keys:"up",target:this.menuRef,onMatch:this.handleHighlightPrevious}),x.createElement(si,{keys:"down",target:this.menuRef,onMatch:this.handleHighlightNext}),x.createElement(si,{keys:"esc",target:this.menuRef,onMatch:()=>null==a?void 0:a()}),x.createElement(si,{keys:"enter",target:this.menuRef,onMatch:this.handleSelect})))}}var Oa=_(Ma);class ka extends x.PureComponent{constructor(){super(...arguments),this.button=x.createRef(),this.state={isOpen:!1},this.handleToggle=()=>{this.state.isOpen?this.handleClose():this.handleOpen()},this.handleSelect=e=>{const{onSelect:t}=this.props;t&&t(e),setTimeout((()=>this.handleToggle()),0)},this.handleOpen=()=>{setTimeout((()=>this.setState({isOpen:!0})),0)},this.handleClose=()=>{setTimeout((()=>this.setState({isOpen:!1})),0)}}render(){const e=this.props,{className:t,type:s,nativeSelect:i,items:a,selectedItem:n,onSelect:r,innerRef:o,buttonClassName:c}=e,h=d(e,["className","type","nativeSelect","items","selectedItem","onSelect","innerRef","buttonClassName"]),{isOpen:p}=this.state;return x.createElement("div",{className:S(Ca,t)},x.createElement("div",l({ref:this.button,className:S(wa,{[ba]:p},c),onClick:this.handleToggle},h),"button"===s&&x.createElement(Ia,null),"text"===s&&x.createElement("div",{"data-testid":"dropdown__item--selected",className:Ea,title:null==n?void 0:n.label},x.createElement("span",null,(null==n?void 0:n.label)||""),x.createElement("div",{className:_a}))),i&&x.createElement("select",{ref:o,className:xa,value:null==n?void 0:n.id,onChange:e=>this.handleSelect(a.find((t=>t.id===e.currentTarget.value)))},a.map((e=>x.createElement("option",{key:e.id,value:e.id},e.label)))),p&&!i&&x.createElement(Oa,{target:this.button,items:a,onSelect:this.handleSelect,onBlur:this.handleClose}))}}var Aa=_(ka);class Da extends x.PureComponent{constructor(){super(...arguments),this.runScriptDebounced=c.exports.debounce((()=>{var e;(null==(e=Tt.activeTab)?void 0:e.session.script).run()}),500,{leading:!1,trailing:!0}),this.handleChangeField=({id:e},t)=>{var s,i,a,n;const{whereId:r}=this.props;null==(s=Tt.activeTab)||s.update({preview:!1});const l=null==(i=Tt.activeTab)?void 0:i.session.script,o=l.where.get(r);if(o){if(l.update({frozen:!1}),0===t){const t=pe.get(e);if(null==t?void 0:t.isRelation){const t=null==(n=null==(a=pe.get(e))?void 0:a.typeAsModel)?void 0:n.uniqueIdentifier.fields[0].id;o.update({fieldIds:[e,t]})}else o.update({fieldIds:[e]})}else{const s=[...o.fieldIds];s[t]=e,o.update({fieldIds:s})}o.supportedOperations.includes(o.operation)||this.handleChangeOperation({id:o.supportedOperations[0]}),["in","notIn"].includes(o.operation)&&this.handleChangeValue("[]"),this.runScriptDebounced(),os.send({command:"filter_change",commandDetails:{total_filters_count:l.where.size,field_types:o.fields.map((e=>e.type)),operation:o.operation}})}},this.handleChangeOperation=({id:e})=>{var t,s;const{whereId:i}=this.props;null==(t=Tt.activeTab)||t.update({preview:!1});const a=null==(s=Tt.activeTab)?void 0:s.session.script,n=a.where.get(i);n&&(a.update({frozen:!1}),n.update({operation:e}),["in","notIn"].includes(n.operation)&&this.handleChangeValue("[]"),["isNull","isNotNull"].includes(n.operation)&&this.handleChangeValue(""),this.runScriptDebounced(),os.send({command:"filter_change",commandDetails:{total_filters_count:a.where.size,field_types:n.fields.map((e=>e.type)),operation:n.operation}}))},this.handleChangeValue=e=>{var t,s;const{whereId:i}=this.props;null==(t=Tt.activeTab)||t.update({preview:!1});const a=null==(s=Tt.activeTab)?void 0:s.session.script;a.update({frozen:!1});const n=a.where.get(i);n&&(n.update({value:e}),this.runScriptDebounced())},this.handleDelete=()=>{var e,t;const{whereId:s}=this.props;null==(e=Tt.activeTab)||e.update({preview:!1});const i=null==(t=Tt.activeTab)?void 0:t.session.script;Object.values(i.where.values).length,i.where.remove(s),this.runScriptDebounced()}}render(){const{whereId:e,rowIndex:t}=this.props,s=Tt.activeTab.session.script.where.get(e);return s?x.createElement(x.Fragment,null,x.createElement("div",{className:S(ia,sa)},x.createElement("div",{className:aa},x.createElement("div",{className:ya},0===t?"where":"and"))),x.createElement("div",{className:S(ia,sa)},s.fields.slice(0,2).map(((e,t)=>x.createElement("div",{className:aa,key:t},x.createElement(Aa,{"data-testid":"where-filter__row__field"+(t>0?"_relation_scalars":""),"data-test-invalid":!s.isValid,buttonClassName:na,type:"text",items:s.getFilterableFieldsAtIndex(t).map((e=>({id:e.id,label:e.name}))),selectedItem:{id:e.id,label:e.name},onSelect:e=>this.handleChangeField(e,t)}))))),x.createElement("div",{className:S(ra,sa)},x.createElement(Aa,{"data-testid":"where-filter__row__operation",buttonClassName:na,type:"text",items:s.supportedOperations.map((e=>({id:e,label:e}))),selectedItem:{id:s.operation,label:s.operation},onSelect:this.handleChangeOperation})),x.createElement("div",{className:S(la,sa)},x.createElement("input",{className:S({[fa]:!s.isValid}),"data-testid":"where-filter__row__value",type:"text",disabled:"isNull"===s.operation||"isNotNull"===s.operation,placeholder:"enter value...",value:null===s.value?"":s.value,onChange:e=>this.handleChangeValue(e.currentTarget.value)})),x.createElement("div",{className:S(oa,sa)},x.createElement(ti,{"data-testid":"where-filter__row__delete-btn",onClick:this.handleDelete},x.createElement(ea,null)))):null}}var Ta=_(Da);class Pa extends x.PureComponent{constructor(){super(...arguments),this.handleAddWhere=()=>{var e,t;null==(e=Tt.activeTab)||e.update({preview:!1});const s=null==(t=Tt.activeTab)?void 0:t.session.script;s.update({frozen:!1});const i=s.where.add({fieldIds:[s.model.uniqueIdentifier.fields[0].id],value:null});s.pagination.reset(),os.send({command:"filter_change",commandDetails:{total_filters_count:s.where.size,field_types:i.fields.map((e=>e.type)),operation:i.operation}})},this.handleResetFilters=()=>{var e,t;null==(e=Tt.activeTab)||e.update({preview:!1});const s=null==(t=Tt.activeTab)?void 0:t.session.script;s.where.clear(),s.run()}}render(){const{where:e}=Tt.activeTab.session.script,t=Object.values(e.values).length>0;return x.createElement("div",{className:S(pa,{[ma]:0===Object.values(e.values).length},{[ua]:!Tt.activeTab.isFiltersOpen})},t?x.createElement("div",{className:ta},Object.values(e.values).map(((e,t)=>x.createElement(Ta,{rowIndex:t,key:e.id,whereId:e.id})))):x.createElement("div",{className:ha},"ℹ️ Use filters to narrow your search results. Multiple filters show results at their intersection (AND)."),x.createElement("div",{className:t?ga:va},x.createElement(Qs,{"data-testid":"create-where-filter-btn",className:da,blue:!0,onClick:this.handleAddWhere},x.createElement(x.Fragment,null,x.createElement(ea,null),"Add a new filter")),t&&x.createElement(x.Fragment,null,x.createElement(Qs,{className:ca,onClick:this.handleResetFilters},"Clear all"))))}}var Va=_(Pa);var ja="_container_u5odf_1",Fa="_firstCommittedRow_u5odf_7",Ba="_tableCell_u5odf_11",Ha="_dirty_u5odf_11",Za="_invalid_u5odf_15",qa="_empty_u5odf_19";var Ua="_input_1ebqz_1";class za extends x.PureComponent{constructor(e){super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const t=e.currentTarget.value;if(""!==t)try{const e=BigInt(t);this.setState({value:e})}catch(s){}else this.setState({value:null})};const{initialValue:t}=e,s=null==t?null:BigInt(t);this.state={value:s}}render(){const{value:e}=this.state;return x.createElement("input",{"data-testid":"input--bigint",ref:this.input,className:Ua,type:"string",value:null==e?"":e.toString(),placeholder:"null",onChange:this.handleChange})}}var $a=_(za);var Ja="_container_1f6qf_1";class Wa extends x.PureComponent{constructor(){super(...arguments),this.handleDragStart=e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/html",e.target.parentNode),e.dataTransfer.setDragImage(e.target.parentNode,20,20),this.props.onDragStart(e)},this.handleDragEnd=e=>{this.props.onDragEnd(e)}}render(){const e=this.props,{className:t,children:s}=e,i=d(e,["className","children"]);return x.createElement("div",o(l({draggable:!0,className:S(Ja,t)},i),{onDragStart:e=>this.handleDragStart(e),onDragEnd:e=>this.handleDragEnd(e)}),s)}}var Ka=_(Wa);function Ga(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M24 10H0V6H24V10Z",fill:"currentColor"}),N.exports.createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M24 18H0V14H24V18Z",fill:"currentColor"}))}var Qa="_container_i5u05_1",Ya="_input_i5u05_7",Xa="_itemContainer_i5u05_27",en="_itemScrollContainer_i5u05_45",tn="_item_i5u05_27",sn="_invalid_i5u05_53",an="_dragButton_i5u05_63",nn="_closeButton_i5u05_77",rn="_addScalarListItemBtn_i5u05_101",ln="_separator_i5u05_109",on="_draggedOver_i5u05_113";class dn extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length,0)].current)||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map((e=>BigInt(e)))})}catch(t){}},this.handleChangeItem=(e,t)=>{const{value:s}=this.state;try{let i=BigInt(t.currentTarget.value);if(!Array.isArray(s))throw F({path:"BigIntListInput.handleChangeItem",message:"Invalid value",context:{value:s,idx:e,changedItem:i}});const a=[...s];return a.splice(e,1,i),this.setState({value:a})}catch(i){}},this.handleChangeNewItem=e=>{try{let t=BigInt(e.currentTarget.value);this.setState({newItem:t})}catch(t){}},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"BigIntListInput.handleAddItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,t||BigInt(0)],newItem:null},(()=>{var e,t;null==(e=this.items[this.items.length-1].current)||e.focus(),null==(t=this.items[this.items.length-2].current)||t.scrollIntoView(!1)}))},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"BigIntListInput.handleEnterKeydown",message:"Invalid value",context:{value:t,idx:e}});let s=[...t];s.splice(e+1,0,null),this.items.push(x.createRef()),this.setState({value:s,newItem:null},(()=>{var t,s,i;null==(t=this.items[e+1].current)||t.focus(),null==(s=this.items[e+1].current)||s.scrollIntoView(!1),null==(i=this.items[e+1].current)||i.scrollIntoView({block:"nearest"})}))},this.handleRemoveItem=e=>{var t,s,i,a;const{value:n}=this.state;if(!Array.isArray(n))throw F({path:"BigIntListInput.handleRemoveClick",message:"Invalid Value",context:{value:n,idx:e}});this.items.splice(e,1);const r=[...n];r.splice(e,1),null==(s=null==(t=this.items[e-1])?void 0:t.current)||s.focus(),null==(a=null==(i=this.items[e-1])?void 0:i.current)||a.scrollIntoView(),setTimeout((()=>this.setState({value:r})),0)},this.handleTabKeydown=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"BigIntListInput.handleTabKeydown",message:"Invalid value",context:{value:i,idx:e}});e===i.length||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e+1].current)||s.focus())},this.handleShiftTabKeydown=(e,t)=>{var s;0===e||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e-1].current)||s.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,s;if(!this.draggedItem)return;const{value:i=[]}=this.state;if(!Array.isArray(i))throw F({path:"BigIntListInput.HandleDragEnd",message:"Invalid value",context:{value:i,idx:e}});const a=[...i];let n=BigInt(null!=(s=null==(t=this.draggedItem.current)?void 0:t.value)?s:0);this.items.splice(e,1),a.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),a.splice(this.state.draggedOverIdx-1,0,n)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),a.splice(this.state.draggedOverIdx,0,n)),this.draggedItem=null,this.setState({value:a,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"BigIntListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t.map((e=>BigInt(e))),newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw F({path:"BigIntListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--bigint-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:e.map((e=>(null==e?void 0:e.toString())||"null")),onChange:this.handleChange}),x.createElement("ul",{className:S(Xa,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(cn,{innerRef:this.items[t],value:null===e?"":e.toString(),invalid:null===e||Number.isNaN(e),onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(cn,{innerRef:this.items[e.length],value:null===this.state.newItem?"":this.state.newItem.toString(),invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class cn extends x.Component{render(){return x.createElement("li",{"data-testid":"input--bigint-list-item",className:S(tn,{[sn]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement("input",{ref:this.props.innerRef,className:Ya,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--bigint-list-item__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--bigint-list-item__remove-btn",onClick:e=>{var t,s;return null==(s=(t=this.props).onRemove)?void 0:s.call(t,e)},className:nn},x.createElement(ea,null)),this.props.onEnter&&x.createElement(si,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&x.createElement(si,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&x.createElement(si,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&x.createElement(si,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var hn=_(dn);var pn="_container_z3tbz_1",un="_input_z3tbz_7",mn="_dropdown_z3tbz_19",gn="_match_z3tbz_37",vn="_highlight_z3tbz_45";class fn extends x.Component{constructor(e){super(e),this.input=x.createRef(),this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const{suggestions:t,onChange:s}=this.props,i=e.currentTarget.value,a=t.findIndex((e=>e.toUpperCase().startsWith(i.toUpperCase())));this.setState({phrase:i,highlightIdx:a}),s(t[a]||t[0])},this.handleSuggestionClick=e=>{const{suggestions:t,onChange:s,onSubmit:i}=this.props,a=t[e];s(a),null==i||i(a)},this.handleSubmit=()=>{const{highlightIdx:e}=this.state,{suggestions:t,onChange:s,onSubmit:i}=this.props,a=t[e]||t[0];s(a),null==i||i(a)},this.state={phrase:String(e.value),highlightIdx:0}}render(){const{phrase:e,highlightIdx:t}=this.state,{className:s,style:i,suggestions:a,dataTestId:n}=this.props;return x.createElement("div",{"data-testid":n,className:S(pn,s),style:i},x.createElement("input",{ref:this.input,type:"text",className:un,value:e,onChange:this.handleChange}),x.createElement("ul",{className:mn},a.map(((e,s)=>x.createElement("li",{key:e,"data-testid":"suggestion",className:S(gn,{[vn]:t===s}),onClick:()=>this.handleSuggestionClick(s)},e)))),x.createElement(si,{target:this.input,keys:"up",onMatch:()=>this.setState({highlightIdx:Math.max(t-1,0)})}),x.createElement(si,{target:this.input,keys:"down",onMatch:()=>this.setState((e=>({highlightIdx:Math.min(e.highlightIdx+1,a.length-1)})))}),x.createElement(si,{target:this.input,preventDefault:!1,stopPropagation:!1,keys:"enter",onMatch:this.handleSubmit}))}}var yn=_(fn);var In="_input_j8mok_1";class Cn extends x.PureComponent{constructor(e){super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{this.setState({value:"true"===e})},this.handleSubmit=e=>{this.setState({value:"true"===e},(()=>{this.props.stopEditing()}))},this.state={value:!!e.initialValue}}render(){const{value:e}=this.state;return x.createElement(yn,{ref:this.input,dataTestId:"input--boolean",className:In,value:null==e?"":String(e),suggestions:["true","false"],onChange:this.handleChange,onSubmit:this.handleSubmit})}}var wn=_(Cn);var bn="_itemContainer_1k9ef_1",En="_itemDropdown_1k9ef_5";class _n extends x.PureComponent{constructor(e){var t;super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length-1,0)].current)||e.focus())},this.handleChangeItem=(e,t)=>{const{value:s}=this.state;if(!Array.isArray(s))throw F({path:"BooleanListInput.handleChangeItem",message:"Invalid value",context:{value:s,changedItem:e}});const i=[...s];return i.splice(t,1,"true"===e.id),this.setState({value:i})},this.handleChangeNewItem=e=>{this.setState({newItem:e},(()=>setTimeout((()=>this.handleAddNewItem()),0)))},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(t){if(!Array.isArray(e))throw F({path:"BooleanListInput.handleAddNewItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,"true"===t.id],newItem:null},(()=>{var e,t,s;null==(t=null==(e=this.items[this.items.length-2])?void 0:e.current)||t.focus(),null==(s=this.items[this.items.length-2].current)||s.scrollIntoView(!1)}))}},this.handleRemoveItem=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"BooleanListInput.handleRemoveClick",message:"Invalid Value",context:{value:t,idx:e}});this.items.splice(e,1);const s=[...t];s.splice(e,1),setTimeout((()=>this.setState({value:s})),0)},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,s;if(!this.draggedItem)return;const i=null!=(t=this.state.value)?t:[];if(!Array.isArray(i))throw F({path:"BooleanListInput.HandleDragEnd",message:"Invalid value",context:{value:i,idx:e}});const a=String(null==(s=this.draggedItem.current)?void 0:s.value),n=[...i];this.items.splice(e,1),n.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),n.splice(this.state.draggedOverIdx-1,0,"true"===a)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),n.splice(this.state.draggedOverIdx,0,"true"===a)),this.draggedItem=null,this.setState({value:n,draggedOverIdx:-1})};const{initialValue:s}=e;if(!Array.isArray(s))throw F({path:"BooleanListInput.constructor",message:"Invalid initialValue",context:{initialValue:s}});this.state={value:s,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(null!=(t=null==s?void 0:s.length)?t:0,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw F({path:"BooleanListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--boolean-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:JSON.stringify(e),readOnly:!0}),x.createElement("ul",{className:S(Xa,bn,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(xn,{innerRef:this.items[t],suggestions:[{id:"true",label:"true"},{id:"false",label:"false"}],value:{id:String(e),label:String(e)},invalid:!0!==e&&!1!==e,onChange:e=>this.handleChangeItem(e,t),onRemove:this.handleRemoveItem.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(xn,{key:e.length,innerRef:this.items[e.length],suggestions:[{id:"",label:""},{id:"true",label:"true"},{id:"false",label:"false"}],value:{id:"",label:""},invalid:!1,onChange:e=>this.handleChangeNewItem(e),onAdd:this.handleAddNewItem,onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class xn extends x.Component{render(){return x.createElement("li",{"data-testid":"input--boolean-list-item",className:S(tn,{[sn]:this.props.invalid}),onDragOver:this.props.onDragOver||void 0},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement(Aa,{innerRef:this.props.innerRef,"data-testid":"input",className:En,type:"text",nativeSelect:!0,items:this.props.suggestions,selectedItem:this.props.value,onSelect:e=>this.props.onChange(e)}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--boolean-list-item__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--boolean-list-item__remove-btn",onClick:e=>{var t,s;return null==(s=(t=this.props).onRemove)?void 0:s.call(t,e)},className:nn},x.createElement(ea,null)))}}var Sn=_(_n);class Nn extends x.PureComponent{constructor(e){super(e),this.input=x.createRef(),this.getValue=()=>this.state.value?b.Buffer.from(this.state.value,"base64"):null,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const{field:t}=this.props,s=e.currentTarget.value;t.isRequired||""!==s?this.setState({value:s}):this.setState({value:null})};const{initialValue:t}=e,s=null==t?null:(e.initialValue instanceof Uint8Array?b.Buffer.from(e.initialValue):e.initialValue||b.Buffer.from("")).toString("base64");this.state={value:s}}render(){const{value:e}=this.state;return x.createElement("input",{"data-testid":"input--bytes",ref:this.input,className:Ua,type:"text",value:null==e?"":e,placeholder:"null",onChange:this.handleChange})}}var Ln=_(Nn);class Rn extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>{var e;return null==(e=this.state.value)?void 0:e.map((e=>b.Buffer.from(e||"","base64")))},this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length,0)].current)||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t})}catch(t){}},this.handleChangeItem=(e,t)=>{const{value:s}=this.state,i=t.currentTarget.value;if(!Array.isArray(s))throw F({path:"BytesListInput.handleChangeItem",message:"Invalid value",context:{value:s,idx:e,changedItem:i}});const a=[...s];return a.splice(e,1,i),this.setState({value:a})},this.handleChangeNewItem=e=>{const t=e.currentTarget.value;this.setState({newItem:t})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"BytesListInput.handleAddItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,t],newItem:null},(()=>{var e,t;null==(e=this.items[this.items.length-1].current)||e.focus(),null==(t=this.items[this.items.length-2].current)||t.scrollIntoView(!1)}))},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"BytesListInput.handleEnterKeydown",message:"Invalid value",context:{value:t,idx:e}});let s=[...t];s.splice(e+1,0,""),this.items.push(x.createRef()),this.setState({value:s,newItem:null},(()=>{var t,s,i;null==(t=this.items[e+1].current)||t.focus(),null==(s=this.items[e+1].current)||s.scrollIntoView(!1),null==(i=this.items[e+1].current)||i.scrollIntoView({block:"nearest"})}))},this.handleRemoveItem=(e,t)=>{var s,i,a,n;const{value:r}=this.state;if(t.preventDefault(),t.stopPropagation(),!Array.isArray(r))throw F({path:"BytesListInput.handleRemoveClick",message:"Invalid Value",context:{value:r,idx:e}});const l=[...r];l.splice(e,1),this.items.splice(e,1),null==(i=null==(s=this.items[e-1])?void 0:s.current)||i.focus(),null==(n=null==(a=this.items[e-1])?void 0:a.current)||n.scrollIntoView(),setTimeout((()=>this.setState({value:l})),0)},this.handleTabKeydown=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"BytesListInput.handleTabKeydown",message:"Invalid value",context:{value:i,idx:e}});e===i.length||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e+1].current)||s.focus())},this.handleShiftTabKeydown=(e,t)=>{var s;0===e||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e-1].current)||s.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:s=[]}=this.state;if(!Array.isArray(s))throw F({path:"BytesListInput.HandleDragEnd",message:"Invalid value",context:{value:s,idx:e}});const i=[...s],a=(null==(t=this.draggedItem.current)?void 0:t.value)||"";this.items.splice(e,1),i.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),i.splice(this.state.draggedOverIdx-1,0,a)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),i.splice(this.state.draggedOverIdx,0,a)),this.draggedItem=null,this.setState({value:i,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"BytesListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t.map((e=>(e instanceof Uint8Array?b.Buffer.from(e):e).toString("base64"))),newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw F({path:"BytesListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--bytes-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:e.join(", "),onChange:this.handleChange}),x.createElement("ul",{className:S(Xa,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(Mn,{innerRef:this.items[t],value:null===e?"":e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(Mn,{innerRef:this.items[e.length],value:this.state.newItem||"",onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Mn extends x.Component{render(){return x.createElement("li",{"data-testid":"input--bytes-list-item",className:tn,onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement("input",{ref:this.props.innerRef,className:Ya,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--bytes-list-item__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--bytes-list-item__remove-btn",onClick:this.props.onRemove,className:nn},x.createElement(ea,null)),this.props.onEnter&&x.createElement(si,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&x.createElement(si,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&x.createElement(si,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&x.createElement(si,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var On=_(Rn);class kn extends x.PureComponent{constructor(e){super(e),this.input=x.createRef(),this.getValue=()=>{const{value:e}=this.state;if(!e)return e;try{return new Date(e).toISOString()}catch(t){return e}},this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const{field:t}=this.props,s=e.currentTarget.value;t.isRequired||""!==s?this.setState({value:s}):this.setState({value:null})};const{initialValue:t}=e,s=null==t?null:t;this.state={value:s}}render(){const{value:e}=this.state;return x.createElement("input",{"data-testid":"input--datetime",ref:this.input,className:Ua,type:"text",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var An=_(kn);class Dn extends x.PureComponent{constructor(e){var t;super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{this.setState({value:e})},this.handleSubmit=e=>{this.setState({value:e},(()=>{this.props.stopEditing()}))},this.state={value:null!=(t=e.initialValue)?t:null}}render(){const{value:e}=this.state,{field:t}=this.props;return x.createElement(yn,{ref:this.input,dataTestId:"input--enum",className:In,value:null==e?"":String(e),suggestions:t.typeAsEnum.values,onChange:this.handleChange,onSubmit:this.handleSubmit})}}var Tn=_(Dn);class Pn extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length-1,0)].current)||e.focus())},this.handleChangeItem=(e,t)=>{const{value:s}=this.state,i=String(e.id);if(!Array.isArray(s))throw F({path:"EnumListInput.handleChangeItem",message:"Invalid value",context:{value:s,changedItem:i}});const a=[...s];return a.splice(t,1,i),this.setState({value:a})},this.handleChangeNewItem=e=>{this.setState({newItem:e},(()=>setTimeout((()=>this.handleAddNewItem()),0)))},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(t){if(!Array.isArray(e))throw F({path:"EnumListInput.handleAddNewItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,String(t.id)],newItem:null},(()=>{var e,t,s;null==(t=null==(e=this.items[this.items.length-2])?void 0:e.current)||t.focus(),null==(s=this.items[this.items.length-2].current)||s.scrollIntoView(!1)}))}},this.handleRemoveItem=e=>{var t,s,i,a;const{value:n}=this.state;if(!Array.isArray(n))throw F({path:"EnumListInput.handleRemoveClick",message:"Invalid Value",context:{value:n,idx:e}});this.items.splice(e,1);const r=[...n];r.splice(e,1),null==(s=null==(t=this.items[e-1])?void 0:t.current)||s.focus(),null==(a=null==(i=this.items[e-1])?void 0:i.current)||a.scrollIntoView(),setTimeout((()=>this.setState({value:r})),0)},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:s=[]}=this.state;if(!Array.isArray(s))throw F({path:"EnumListInput.HandleDragEnd",message:"Invalid value",context:{value:s,idx:e}});const i=String(null==(t=this.draggedItem.current)?void 0:t.value),a=[...s];this.items.splice(e,1),a.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),a.splice(this.state.draggedOverIdx-1,0,i)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),a.splice(this.state.draggedOverIdx,0,i)),this.draggedItem=null,this.setState({value:a,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"EnumListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state,{field:t}=this.props;if(!Array.isArray(e))throw F({path:"EnumListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--enum-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:JSON.stringify(e),readOnly:!0}),x.createElement("ul",{className:S(Xa,bn,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,s)=>x.createElement(x.Fragment,{key:s},x.createElement(Vn,{innerRef:this.items[s],suggestions:t.typeAsEnum.values.map((e=>({id:e,label:e}))),value:{id:String(e),label:String(e)},onChange:e=>this.handleChangeItem(e,s),onRemove:this.handleRemoveItem.bind(this,s),onDragStart:this.handleDragStart.bind(this,s),onDragEnd:this.handleDragEnd.bind(this,s),onDragOver:this.handleDragOver.bind(this,s)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===s+1})}))))),x.createElement(Vn,{key:e.length,innerRef:this.items[e.length],suggestions:[{id:"",label:""},...t.typeAsEnum.values.map((e=>({id:e,label:e})))],value:{id:"",label:""},onChange:e=>this.handleChangeNewItem(e),onAdd:this.handleAddNewItem.bind(this),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Vn extends x.Component{render(){return x.createElement("li",{className:tn,onDragOver:this.props.onDragOver||void 0},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement(Aa,{innerRef:this.props.innerRef,"data-testid":"input",className:En,type:"text",nativeSelect:!0,items:this.props.suggestions,selectedItem:this.props.value,onSelect:e=>this.props.onChange(e)}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--enum-list__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--enum-list__remove-btn",onClick:e=>{var t,s;return null==(s=(t=this.props).onRemove)?void 0:s.call(t,e)},className:nn},x.createElement(ea,null)))}}var jn=_(Pn);var Fn="_input_c6cnd_1";class Bn extends x.PureComponent{constructor(e){var t;super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=(e=!1)=>{var t;const{api:s,field:i}=this.props,a=(null==(t=this.input.current)?void 0:t.value)||"";if(!i.isRequired&&""===a)return this.setState({value:null});try{const t=JSON.parse(a);if(i.isList&&!Array.isArray(t))throw new Error;return this.setState({value:t},(()=>e&&(null==s?void 0:s.stopEditing())))}catch(n){return this.setState({value:a},(()=>e&&(null==s?void 0:s.stopEditing())))}},this.state={value:null!=(t=e.initialValue)?t:null}}render(){const{value:e}=this.state;return x.createElement(x.Fragment,null,x.createElement("textarea",{"data-testid":"input--json",ref:this.input,className:Fn,value:"string"==typeof e?e:JSON.stringify(e),onChange:e=>this.handleChange()}))}}var Hn=_(Bn);class Zn extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length,0)].current)||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map((e=>String(e)))})}catch(t){}},this.handleChangeItem=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"JsonListInput.handleChangeItem",message:"Invalid value",context:{value:i,idx:e}});let a=null!=(s=t.currentTarget.value)?s:"";try{a=JSON.parse(a)}catch(r){}const n=[...i];return n.splice(e,1,a),this.setState({value:n})},this.handleChangeNewItem=e=>{var t;let s=null!=(t=e.currentTarget.value)?t:"";try{s=JSON.parse(s)}catch(i){}this.setState({newItem:s})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"JsonListInput.handleAddItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,t||""],newItem:null},(()=>{var e,t;null==(e=this.items[this.items.length-1].current)||e.focus(),null==(t=this.items[this.items.length-2].current)||t.scrollIntoView(!1)}))},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"JsonListInput.handleEnterKeydown",message:"Invalid value",context:{value:t,idx:e}});let s=[...t];s.splice(e+1,0,""),this.items.push(x.createRef()),this.setState({value:s,newItem:null},(()=>{var t,s,i;null==(t=this.items[e+1].current)||t.focus(),null==(s=this.items[e+1].current)||s.scrollIntoView(!1),null==(i=this.items[e+1].current)||i.scrollIntoView({block:"nearest"})}))},this.handleRemoveItem=e=>{var t,s,i,a;const{value:n}=this.state;if(!Array.isArray(n))throw F({path:"JsonListInput.handleRemoveClick",message:"Invalid Value",context:{value:n,idx:e}});const r=[...n];r.splice(e,1),this.items.splice(e,1),null==(s=null==(t=this.items[e-1])?void 0:t.current)||s.focus(),null==(a=null==(i=this.items[e-1])?void 0:i.current)||a.scrollIntoView(),setTimeout((()=>this.setState({value:r})),0)},this.handleTabKeydown=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"JsonListInput.handleTabKeydown",message:"Invalid value",context:{value:i,idx:e}});e===i.length||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e+1].current)||s.focus())},this.handleShiftTabKeydown=(e,t)=>{var s;0===e||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e-1].current)||s.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,s;if(!this.draggedItem)return;const{value:i=[]}=this.state;if(!Array.isArray(i))throw F({path:"JsonListInput.HandleDragEnd",message:"Invalid value",context:{value:i,idx:e}});let a=null!=(s=null==(t=this.draggedItem.current)?void 0:t.value)?s:"";const n=[...i];try{a=JSON.parse(a)}catch(r){}this.items.splice(e,1),n.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),n.splice(this.state.draggedOverIdx-1,0,a)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),n.splice(this.state.draggedOverIdx,0,a)),this.draggedItem=null,this.setState({value:n,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"JsonListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"JsonListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--json-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:JSON.stringify(e),onChange:this.handleChange}),x.createElement("ul",{className:S(Xa,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(qn,{innerRef:this.items[t],value:e,invalid:"string"==typeof e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(qn,{innerRef:this.items[e.length],value:t,invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class qn extends x.Component{render(){return x.createElement("li",{className:S(tn,{[sn]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement("input",{ref:this.props.innerRef,className:Ya,type:"text",value:null===this.props.value?"":"string"==typeof this.props.value?this.props.value:JSON.stringify(this.props.value),tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--json-list__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--json-list__remove-btn",onClick:e=>{var t,s;return null==(s=(t=this.props).onRemove)?void 0:s.call(t,e)},className:nn},x.createElement(ea,null)),this.props.onEnter&&x.createElement(si,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&x.createElement(si,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&x.createElement(si,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&x.createElement(si,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Un=_(Zn);class zn extends x.PureComponent{constructor(e){super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const t=e.currentTarget.value;if(""===t)return void this.setState({value:null});const s=parseFloat(t);this.setState({value:s})};const{initialValue:t}=e,s=null==t?null:parseFloat(`${t}`);this.state={value:s}}render(){const{value:e}=this.state;return x.createElement("input",{"data-testid":"input--number",ref:this.input,className:Ua,type:"number",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var $n=_(zn);class Jn extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length,0)].current)||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map((e=>parseInt(e))).filter((e=>!isNaN(e)))})}catch(t){}},this.handleChangeItem=(e,t)=>{const{value:s}=this.state,{field:i}=this.props;let a=i.isInt?parseInt(t.currentTarget.value):parseFloat(t.currentTarget.value);if(isNaN(a)&&(a=null),!Array.isArray(s))throw F({path:"NumberListInput.handleChangeItem",message:"Invalid value",context:{value:s,idx:e,changedItem:a}});const n=[...s];return n.splice(e,1,a),this.setState({value:n})},this.handleChangeNewItem=e=>{const{field:t}=this.props;let s=t.isInt?parseInt(e.currentTarget.value):parseFloat(e.currentTarget.value);isNaN(s)&&(s=null),this.setState({newItem:s})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"NumberListInput.handleAddItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,t||0],newItem:null},(()=>{var e,t;null==(e=this.items[this.items.length-1].current)||e.focus(),null==(t=this.items[this.items.length-2].current)||t.scrollIntoView(!1)}))},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"NumberListInput.handleEnterKeydown",message:"Invalid value",context:{value:t,idx:e}});let s=[...t];s.splice(e+1,0,null),this.items.push(x.createRef()),this.setState({value:s,newItem:null},(()=>{var t,s,i;null==(t=this.items[e+1].current)||t.focus(),null==(s=this.items[e+1].current)||s.scrollIntoView(!1),null==(i=this.items[e+1].current)||i.scrollIntoView({block:"nearest"})}))},this.handleRemoveItem=e=>{var t,s,i,a;const{value:n}=this.state;if(!Array.isArray(n))throw F({path:"NumberListInput.handleRemoveClick",message:"Invalid Value",context:{value:n,idx:e}});this.items.splice(e,1);const r=[...n];r.splice(e,1),null==(s=null==(t=this.items[e-1])?void 0:t.current)||s.focus(),null==(a=null==(i=this.items[e-1])?void 0:i.current)||a.scrollIntoView(),setTimeout((()=>this.setState({value:r})),0)},this.handleTabKeydown=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"NumberListInput.handleTabKeydown",message:"Invalid value",context:{value:i,idx:e}});e===i.length||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e+1].current)||s.focus())},this.handleShiftTabKeydown=(e,t)=>{var s;0===e||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e-1].current)||s.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t,s,i,a;if(!this.draggedItem)return;const{field:n}=this.props,{value:r=[]}=this.state;if(!Array.isArray(r))throw F({path:"NumberListInput.HandleDragEnd",message:"Invalid value",context:{value:r,idx:e}});const l=[...r];let o=n.isInt?parseInt(null!=(s=null==(t=this.draggedItem.current)?void 0:t.value)?s:""):parseFloat(null!=(a=null==(i=this.draggedItem.current)?void 0:i.value)?a:"");isNaN(o)&&(o=null),this.items.splice(e,1),l.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),l.splice(this.state.draggedOverIdx-1,0,o)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),l.splice(this.state.draggedOverIdx,0,o)),this.draggedItem=null,this.setState({value:l,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"NumberListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw F({path:"NumberListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--number-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:JSON.stringify(e),onChange:this.handleChange}),x.createElement("ul",{className:S(Xa,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(Wn,{innerRef:this.items[t],value:null===e?"":String(e),invalid:null===e||Number.isNaN(e),onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(Wn,{innerRef:this.items[e.length],value:null===this.state.newItem?"":String(this.state.newItem),invalid:!1,onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Wn extends x.Component{render(){return x.createElement("li",{"data-testid":"input--number-list-item",className:S(tn,{[sn]:this.props.invalid}),onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement("input",{ref:this.props.innerRef,className:Ya,type:"number",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--number-list-item__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--number-list-item__remove-btn",onClick:e=>{var t,s;return null==(s=(t=this.props).onRemove)?void 0:s.call(t,e)},className:nn},x.createElement(ea,null)),this.props.onEnter&&x.createElement(si,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&x.createElement(si,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&x.createElement(si,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&x.createElement(si,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Kn=_(Jn);var Gn="_container_hrw1c_1",Qn="_table_hrw1c_11",Yn="_footer_hrw1c_23",Xn="_footerBtnUnderline_hrw1c_30",er="_footerBtnMargin_hrw1c_41";var tr="_pill_14n8h_1",sr="_modelName_14n8h_18",ir="_isNull_14n8h_21",ar="_isPressed_14n8h_21",nr="_count_14n8h_30";class rr extends x.Component{render(){const{type:e,count:t=0,isList:s=!1,isNull:i=!1,isPressed:a=!1,onClick:n}=this.props;return x.createElement("div",{"data-testid":"relation-pill","data-test-null":`${i}`,className:S(tr,{[ir]:i,[ar]:a}),onClick:n},s&&x.createElement("span",{className:nr},t),x.createElement("span",{className:sr},e))}}var lr="_container_dd10p_1",or="_title_dd10p_11",dr="_input_dd10p_16",cr="_inputPlaceholder_dd10p_32";class hr extends N.exports.Component{constructor(e){super(e),this.handleChangeSearch=e=>{const{field:t,script:s}=this.props,i=Object.values(s.where.values).find((e=>c.exports.last(e.fieldIds)===t.id));if(!i)throw F({path:"TableCellHeaderWithSearch.handleChangeSearch",message:"Unable to find script `where` to update",context:{field:t.serialize(),script:s.serialize(),where:s.where.values}});i.update({enabled:!0,value:e.currentTarget.value}),this.handleSearchDebounced()},this.handleSearch=async()=>{this.props.onSearch()},this.handleSearchDebounced=c.exports.debounce(this.handleSearch,500,{leading:!1,trailing:!0})}render(){var e,t;const{script:s,field:i}=this.props,a=Object.values(s.where.values).find((e=>c.exports.last(e.fieldIds)===i.id));return N.exports.createElement("div",{"data-testid":"header-field-search",className:lr},N.exports.createElement("div",{className:or},i.name),a&&((null==(e=c.exports.last(a.fields))?void 0:e.isScalar)||(null==(t=c.exports.last(a.fields))?void 0:t.isEnum))?N.exports.createElement("input",{className:dr,type:"text",placeholder:`search ${i.name}...`,value:a.value||"",onChange:this.handleChangeSearch}):N.exports.createElement("div",{className:cr}))}}var pr=_(hr);var ur="_container_1lgfw_1",mr="_placeholder_1lgfw_8",gr="_relation_1lgfw_11",vr="_loading_1lgfw_16";class fr extends x.Component{constructor(){super(...arguments),this.handleClickRelation=()=>{const{api:e,node:t,field:s}=this.props;this.props.resizeRowForRelation(t,s);const i=e.getFocusedCell();e.startEditingCell({rowIndex:i.rowIndex,colKey:i.column})},this.getRenderedValue=()=>{const{node:{data:e},field:t}=this.props,s=e,i=s.value[t.name];return s?t.isRelation?null:t.isJson?JSON.stringify(i||null):void 0===i?t.defaultAsString:null===i?"null":t.isBigInt?t.isList?"["+i.map((e=>e.toString())).join(",")+"]":i.toString():t.isBytes?t.isList?"["+i.map((e=>`"${(e instanceof Uint8Array?b.Buffer.from(e):e).toString("base64")}"`)).join(",")+"]":(i instanceof Uint8Array?b.Buffer.from(i):i).toString("base64"):t.isList?JSON.stringify(i):String(i):""}}render(){const{node:{data:e},field:t}=this.props,s=e;if(!s)return x.createElement("div",{className:vr});const i=s.value[t.name],a=void 0===i,n=null===i;return x.createElement("div",{className:S(ur,{[mr]:a||n,[gr]:t.isRelation})},t.isRelation&&x.createElement(rr,{type:t.type,isList:t.isList,isNull:!i,count:(i||[]).length,onClick:this.handleClickRelation}),this.getRenderedValue())}}var yr=_(fr);var Ir="_container_av89p_1";class Cr extends x.Component{render(){return x.createElement("div",{"data-testid":"empty-overlay",className:Ir},"There are no rows in this table")}}class wr extends x.Component{constructor(e){var t;if(super(e),this.container=x.createRef(),this.table=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:s}=this.props;if(!e)return;const i=s(),a=this.container.current.getBoundingClientRect(),n=t.rowHeight-Gr;this.table.current.style.height=`${n}px`,this.table.current.style.width=i.width-(V.readonly?0:32)-20+"px",this.table.current.style.left=i.left-a.left+(V.readonly?0:32)+10+"px"},this.handleGridReady=async e=>{const{value:t}=this.state,{field:s}=this.props;this.gridApi=e.api,V.readonly||await this.loadedScript.run();const i=t?Ie(s.typeAsModel.id,t):null,a=at.get(i);this.gridApi.setRowData([...a?[a]:[],...this.loadedScript.records.filter((e=>e.id!==i))]),this.selectConnectedRecords()},this.handleScroll=async e=>{const{node:t}=this.props;if(this.gridApi.stopEditing(),"horizontal"===e.direction)return;if(this.loadedScript.recordIds.length>=(this.loadedScript.model.count||0))return;const s=t.rowHeight-Gr,i=this.loadedScript.pagination.take;!this.loadedScript.running&&e.top+s>=Gr*(i-20)&&(this.gridApi.applyTransaction({add:await this.loadedScript.loadMore()}),this.selectConnectedRecords())},this.selectConnectedRecords=async()=>{var e;const{value:t}=this.state,{field:s}=this.props;if(null===t)return;const i=Ie(s.typeAsModel.id,t);null==(e=this.gridApi.getRowNode(i))||e.setSelected(!0,!0,!0)},this.handleSelectionChanged=e=>{var t;const{value:s}=this.state,{field:i}=this.props,a=s&&Ie(i.typeAsModel.id,s),n=e.api.getSelectedNodes().map((e=>e.id))[0]||null;n?a!==n&&(null==(t=this.gridApi.getRowNode(n))||t.setSelected(!0,!0),this.setState({value:at.get(n).value})):this.setState({value:null})},this.handleSearch=async()=>{const{value:e}=this.state,{field:t}=this.props;await this.loadedScript.run();if(!!Object.values(this.loadedScript.where.values).find((e=>null!==e.value&&""!==e.value)))this.gridApi.setRowData(this.loadedScript.records);else{const s=e?Ie(t.typeAsModel.id,e):null;this.gridApi.setRowData([...e?[at.get(s)]:[],...this.loadedScript.records.filter((e=>e.id!==s))])}this.selectConnectedRecords()},this.handleClickRelation=()=>{var e;null==(e=this.props.api)||e.stopEditing()},this.handleRowDoubleClicked=e=>{this.handleSelectionChanged(e),this.props.stopEditing()},this.handleViewConnections=()=>{const{field:e}=this.props,{value:t}=this.state;if(null===t)return;if(!e.typeAsModel)return;const s=e.typeAsModel,i=t?Ie(e.typeAsModel.id,t):null,a=at.get(i);if(!a)return;const n=Tt.add({modelId:s.id,preview:!1});s.uniqueIdentifier.fields.map((e=>{n.session.script.where.add({fieldIds:[e.id],operation:"equals",value:a.value[e.name]})})),Tt.switch({id:n.id})},!e.field.typeAsModel)throw F({path:"RelationInput.constructor",message:"Invalid field.typeAsModel",context:{field:e.field.serialize()}});this.state={value:null!=(t=e.initialValue)?t:null},this.loadedScript=St.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0}),this.loadedScript.fields.forEach((e=>{e.isScalar&&this.loadedScript.where.add({fieldIds:[e.id],operation:e.isInt||e.isFloat||e.isDecimal?"equals":"contains",value:null})}))}componentWillUnmount(){var e,t;null==(e=this.props.api)||e.resetRowHeights(),null==(t=this.props.api)||t.onRowHeightChanged()}render(){const{value:e}=this.state,{field:t}=this.props,s=t.typeAsModel.fields;return x.createElement(x.Fragment,null,x.createElement("div",{ref:this.container,className:Gn},x.createElement(rr,{type:t.type,isNull:!e,isPressed:!0,onClick:this.handleClickRelation})),x.createElement("div",{"data-testid":"input--relation",ref:this.table,className:S(Qn,"ag-theme-relations")},x.createElement(M,{rowSelection:"single",getRowNodeId:e=>e.id,suppressCellSelection:!0,headerHeight:64,frameworkComponents:{TableCellRenderer:yr,TableCellHeaderWithSearch:pr,TableEmptyOverlay:Cr},onGridReady:this.handleGridReady,onBodyScroll:this.handleScroll,onSelectionChanged:this.handleSelectionChanged,noRowsOverlayComponent:"TableEmptyOverlay"},x.createElement(O,{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,hide:V.readonly,pinned:!0,suppressNavigable:!0,suppressMovable:!0,maxWidth:32,checkboxSelection:!0}),s.map((e=>x.createElement(O,{key:e.id,editable:!1,resizable:!1,sortable:!1,suppressMovable:!0,headerComponent:"TableCellHeaderWithSearch",headerComponentParams:{field:e,script:this.loadedScript,onSearch:this.handleSearch},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}})))),x.createElement("div",{className:Yn},x.createElement(Qs,{className:er,green:!0,"data-testid":"open-in-new-tab",disabled:null===e,onClick:this.handleViewConnections},"Open in new tab"))))}}var br=_(wr);class Er extends x.Component{constructor(e){if(super(e),this.container=x.createRef(),this.table=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{},this.afterGuiAttached=async()=>{if(!this.container.current||!this.table.current)return;const{api:e,node:t,getTableDimensions:s}=this.props;if(!e)return;const i=s(),a=this.container.current.getBoundingClientRect(),n=t.rowHeight-Gr;this.table.current.style.height=`${n}px`,this.table.current.style.width=i.width-(V.readonly?0:32)-20+"px",this.table.current.style.left=i.left-a.left+(V.readonly?0:32)+10+"px"},this.handleGridReady=async e=>{const{value:t=[]}=this.state,{field:s}=this.props;this.gridApi=e.api,V.readonly||await this.loadedScript.run();const i=t.map((e=>Ie(s.typeAsModel.id,e))),a=s.getRelationIDFieldName;if(a){const e=t.map((e=>e[`${a}`]));let{error:i,data:n}=await window.transport.request({channel:"prisma",action:"clientRequest",payload:{data:{schemaHash:Kt.activeProject.schemaHash,modelName:s.typeAsModel.id,operation:"findMany",args:{where:{[a]:{in:e}}}}}});if(i)throw F({path:"runQuery",code:i.code,type:i.type,stack:i.stack,message:`Error in Prisma Client request: \n\n${i.message}`,context:{error:i}});n.forEach((e=>at.add({modelId:s.typeAsModel.id,value:e})))}this.gridApi.setRowData([...i.map((e=>at.get(e))),...this.loadedScript.records.filter((e=>!i.includes(e.id)))]),this.selectConnectedRecords()},this.handleScroll=async e=>{const{value:t=[]}=this.state,{node:s,field:i}=this.props;if("horizontal"===e.direction)return;if(this.loadedScript.recordIds.length>=(this.loadedScript.model.count||0))return;const a=!!Object.values(this.loadedScript.where.values).find((e=>{var t;return e.id!==(null==(t=this.whereFilterThatFetchesUnconnectedRecords)?void 0:t.id)&&null!==e.value&&""!==e.value})),n=s.rowHeight-Gr,r=(a?0:t.length)+this.loadedScript.pagination.take;if(!this.loadedScript.running&&e.top+n>=Gr*(r-20)){const e=await this.loadedScript.loadMore(),s=t.map((e=>Ie(i.typeAsModel.id,e)));this.gridApi.applyTransaction({add:e.filter((e=>!s.includes(e.id)))}),this.selectConnectedRecords()}},this.selectConnectedRecords=async()=>{const{value:e=[]}=this.state,{field:t}=this.props,s=e.map((e=>Ie(t.typeAsModel.id,e)));this.selectedRecordIds=[],this.gridApi.forEachNode((e=>{s.includes(e.id)&&(e.setSelected(!0,!1,!0),this.selectedRecordIds.push(e.id))}))},this.handleSelectionChanged=()=>{var e,t;const{value:s=[]}=this.state,{field:i}=this.props,a=s.map((e=>Ie(i.typeAsModel.id,e))),n=this.selectedRecordIds,r=this.gridApi.getSelectedNodes().map((e=>e.id));if(c.exports.isEqual(n,r))return;let l;if(n.length>r.length){const t=c.exports.difference(n,r);this.selectedRecordIds=this.selectedRecordIds.filter((e=>e!==t[0])),null==(e=this.gridApi.getRowNode(t[0]))||e.setSelected(!1),l=a.filter((e=>e!==t[0]))}else{const e=c.exports.difference(r,n);this.selectedRecordIds.push(e[0]),null==(t=this.gridApi.getRowNode(e[0]))||t.setSelected(!0),l=a.concat([e[0]])}this.setState({value:l.map((e=>at.get(e).value))})},this.handleClickRelation=()=>{var e;null==(e=this.props.api)||e.stopEditing()},this.handleSearch=async()=>{var e,t;const{value:s=[]}=this.state,{field:i}=this.props,a=!!Object.values(this.loadedScript.where.values).find((e=>{var t;return e.id!==(null==(t=this.whereFilterThatFetchesUnconnectedRecords)?void 0:t.id)&&null!==e.value&&""!==e.value}));if(a?null==(e=this.whereFilterThatFetchesUnconnectedRecords)||e.update({enabled:!1}):null==(t=this.whereFilterThatFetchesUnconnectedRecords)||t.update({enabled:!0}),await this.loadedScript.run(),a)this.gridApi.setRowData(this.loadedScript.records);else{const e=s.map((e=>Ie(i.typeAsModel.id,e)));this.gridApi.setRowData([...e.map((e=>at.get(e))),...this.loadedScript.records.filter((t=>!e.includes(t.id)))])}this.selectConnectedRecords()},this.handleSkipToUnconnected=()=>{const{value:e=[]}=this.state,{field:t}=this.props,s=e.length-1;if(-1===s)return;if(!t.typeAsModel)return;const i=at.get(Ie(t.typeAsModel.id,e[s]));if(!i)return;const a=this.gridApi.getRowNode(i.id);this.gridApi.ensureNodeVisible(a,"top")},this.handleViewConnections=()=>{const{field:e,node:t}=this.props,{value:s=[]}=this.state;if(0===s.length)return;if(!e.isRelation||!e.typeAsModel)return;const i=at.get(t.id);if(!i)return;const a=e.typeAsModel,n=a.fields.find((t=>t.isRelation&&t.relationName===e.relationName));if(!n)return;const r=i.model.uniqueIdentifier.fields[0],l=Tt.add({modelId:a.id,preview:!1});l.session.script.where.add({fieldIds:[n.id,r.id],operation:"equals",value:String(i.value[r.name])}),Tt.switch({id:l.id})},!e.field.typeAsModel)throw F({path:"RelationListInput.constructor",message:"Invalid field.typeAsModel",context:{field:e.field.serialize()}});const{initialValue:t}=e;this.state={value:null!=t?t:[]},this.loadedScript=St.add({name:null,frozen:!0,modelId:e.field.typeAsModel.id,fieldIds:e.field.typeAsModel.fieldIds},{skipPersist:!0}),this.loadedScript.fields.forEach((e=>{e.isScalar&&this.loadedScript.where.add({fieldIds:[e.id],operation:e.isInt||e.isFloat||e.isDecimal?"equals":"contains",value:null})}));const s=e.field.typeAsModel,i=at.get(e.node.id),a=s.fields.find((t=>t.isRelation&&t.relationName===e.field.relationName));if(s&&i&&a&&i.isCommitted){const e=JSON.stringify(i.model.uniqueIdentifier.fields.reduce(((e,t)=>(t.isBigInt?e[t.name]=i.value[t.name].toString():e[t.name]=i.value[t.name],e)),{}));this.whereFilterThatFetchesUnconnectedRecords=this.loadedScript.where.add({fieldIds:[a.id],operation:"equals",value:a.isList?`{ none: ${e} }`:`{ NOT: ${e} }`})}else this.whereFilterThatFetchesUnconnectedRecords=null;this.selectedRecordIds=[]}componentWillUnmount(){var e,t;null==(e=this.props.api)||e.resetRowHeights(),null==(t=this.props.api)||t.onRowHeightChanged()}render(){const{value:e=[]}=this.state,{field:t}=this.props,s=t.typeAsModel.fields;return x.createElement(x.Fragment,null,x.createElement("div",{ref:this.container,className:Gn},x.createElement(rr,{type:t.type,isList:!0,count:e.length,isNull:!1,isPressed:!0,onClick:this.handleClickRelation})),x.createElement("div",{"data-testid":"input--relation-list",ref:this.table,className:S(Qn,"ag-theme-relations")},x.createElement(M,{rowSelection:"multiple",getRowNodeId:e=>e.id,suppressCellSelection:!0,headerHeight:64,frameworkComponents:{TableCellRenderer:yr,TableCellHeaderWithSearch:pr,TableEmptyOverlay:Cr},rowMultiSelectWithClick:!0,onGridReady:this.handleGridReady,onBodyScroll:this.handleScroll,onSelectionChanged:this.handleSelectionChanged,noRowsOverlayComponent:"TableEmptyOverlay"},x.createElement(O,{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,pinned:!0,hide:V.readonly,suppressNavigable:!0,maxWidth:32,checkboxSelection:!0}),s.map((e=>x.createElement(O,{key:e.id,editable:!1,resizable:!1,sortable:!1,suppressMovable:!0,headerComponent:"TableCellHeaderWithSearch",headerComponentParams:{field:e,script:this.loadedScript,onSearch:this.handleSearch},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e}})))),x.createElement("div",{className:Yn},x.createElement(Qs,{"data-testid":"open-in-new-tab",disabled:0===e.length,className:er,green:!0,onClick:this.handleViewConnections},"Open in new tab"),x.createElement("button",{className:Xn,onClick:this.handleSkipToUnconnected,hidden:V.readonly},"Skip to unconnected records"))))}}var _r=_(Er);class xr extends x.PureComponent{constructor(e){var t;super(e),this.input=x.createRef(),this.getValue=()=>this.state.value,this.focus=()=>{var e;null==(e=this.input.current)||e.focus()},this.handleChange=e=>{const{field:t}=this.props,s=e.currentTarget.value;t.isRequired||""!==s?this.setState({value:s}):this.setState({value:null})},this.state={value:null!=(t=e.initialValue)?t:null}}render(){const{value:e}=this.state;return x.createElement("input",{"data-testid":"input--string",ref:this.input,className:Ua,type:"text",value:null==e?"":String(e),placeholder:"null",onChange:this.handleChange})}}var Sr=_(xr);class Nr extends x.PureComponent{constructor(e){super(e),this.items=[],this.draggedItem=null,this.getValue=()=>this.state.value,this.focus=()=>{var e;const{value:t}=this.state;t&&(null==(e=this.items[Math.max(t.length,0)].current)||e.focus())},this.handleChange=e=>{try{const t=JSON.parse(e.currentTarget.value);Array.isArray(t)&&this.setState({value:t.map((e=>String(e)))})}catch(t){}},this.handleChangeItem=(e,t)=>{const{value:s}=this.state,i=String(t.currentTarget.value);if(!Array.isArray(s))throw F({path:"StringListInput.handleChangeItem",message:"Invalid value",context:{value:s,idx:e,changedItem:i}});const a=[...s];return a.splice(e,1,i),this.setState({value:a})},this.handleChangeNewItem=e=>{const t=String(e.currentTarget.value);this.setState({newItem:t})},this.handleAddNewItem=()=>{const{value:e,newItem:t}=this.state;if(!Array.isArray(e))throw F({path:"StringListInput.handleAddItem",message:"Invalid value",context:{value:e,newItem:t}});this.items.push(x.createRef()),this.setState({value:[...e,t||""],newItem:null},(()=>{var e,t;null==(e=this.items[this.items.length-1].current)||e.focus(),null==(t=this.items[this.items.length-2].current)||t.scrollIntoView(!1)}))},this.handleEnterKeydown=e=>{const{value:t}=this.state;if(!Array.isArray(t))throw F({path:"StringListInput.handleEnterKeydown",message:"Invalid value",context:{value:t,idx:e}});let s=[...t];s.splice(e+1,0,""),this.items.push(x.createRef()),this.setState({value:s,newItem:null},(()=>{var t,s,i;null==(t=this.items[e+1].current)||t.focus(),null==(s=this.items[e+1].current)||s.scrollIntoView(!1),null==(i=this.items[e+1].current)||i.scrollIntoView({block:"nearest"})}))},this.handleRemoveItem=(e,t)=>{var s,i,a,n;const{value:r}=this.state;if(t.preventDefault(),t.stopPropagation(),!Array.isArray(r))throw F({path:"StringListInput.handleRemoveClick",message:"Invalid Value",context:{value:r,idx:e}});const l=[...r];l.splice(e,1),this.items.splice(e,1),null==(i=null==(s=this.items[e-1])?void 0:s.current)||i.focus(),null==(n=null==(a=this.items[e-1])?void 0:a.current)||n.scrollIntoView(),setTimeout((()=>this.setState({value:l})),0)},this.handleTabKeydown=(e,t)=>{var s;const{value:i}=this.state;if(!Array.isArray(i))throw F({path:"StringListInput.handleTabKeydown",message:"Invalid value",context:{value:i,idx:e}});e===i.length||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e+1].current)||s.focus())},this.handleShiftTabKeydown=(e,t)=>{var s;0===e||(t.preventDefault(),t.stopPropagation(),null==(s=this.items[e-1].current)||s.focus())},this.handleFinishEditing=()=>{this.props.stopEditing()},this.handleDragStart=e=>{this.draggedItem=this.items[e]},this.handleDragOver=(e,t)=>{t.preventDefault(),this.setState({draggedOverIdx:e})},this.handleDragEnd=e=>{var t;if(!this.draggedItem)return;const{value:s=[]}=this.state;if(!Array.isArray(s))throw F({path:"StringListInput.HandleDragEnd",message:"Invalid value",context:{value:s,idx:e}});const i=[...s],a=String(null==(t=this.draggedItem.current)?void 0:t.value);this.items.splice(e,1),i.splice(e,1),this.state.draggedOverIdx>e?(this.items.splice(this.state.draggedOverIdx-1,0,this.draggedItem),i.splice(this.state.draggedOverIdx-1,0,a)):(this.items.splice(this.state.draggedOverIdx,0,this.draggedItem),i.splice(this.state.draggedOverIdx,0,a)),this.draggedItem=null,this.setState({value:i,draggedOverIdx:-1})};const{initialValue:t}=e;if(!Array.isArray(t))throw F({path:"StringListInput.constructor",message:"Invalid initialValue",context:{initialValue:t}});this.state={value:t,newItem:null,draggedOverIdx:-1},this.items=Array.from({length:Math.max(t.length,1)}).map((()=>x.createRef())),this.items.push(x.createRef())}render(){const{value:e}=this.state;if(!Array.isArray(e))throw F({path:"StringListInput.render",message:"Invalid value",context:{value:e}});return x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"input--string-list",className:Qa},x.createElement("input",{type:"text",className:Ya,value:JSON.stringify(e),onChange:this.handleChange}),x.createElement("ul",{className:S(Xa,"ag-theme-dark")},x.createElement("div",{className:en},x.createElement("div",{className:S(ln,{[on]:0===this.state.draggedOverIdx})}),e.map(((e,t)=>x.createElement(x.Fragment,{key:t},x.createElement(Lr,{innerRef:this.items[t],value:e,onChange:this.handleChangeItem.bind(this,t),onRemove:this.handleRemoveItem.bind(this,t),onEnter:this.handleEnterKeydown.bind(this,t),onTab:this.handleTabKeydown.bind(this,t),onShiftTab:this.handleShiftTabKeydown.bind(this,t),onModEnter:this.handleFinishEditing.bind(this,t),onDragStart:this.handleDragStart.bind(this,t),onDragEnd:this.handleDragEnd.bind(this,t),onDragOver:this.handleDragOver.bind(this,t)}),x.createElement("div",{className:S(ln,{[on]:this.state.draggedOverIdx===t+1})}))))),x.createElement(Lr,{innerRef:this.items[e.length],value:this.state.newItem||"",onChange:this.handleChangeNewItem,onAdd:this.handleAddNewItem,onEnter:this.handleAddNewItem,onShiftTab:this.handleShiftTabKeydown.bind(this,e.length),onDragOver:this.handleDragOver.bind(this,e.length)}))))}}class Lr extends x.Component{render(){return x.createElement("li",{"data-testid":"input--string-list-item",className:tn,onDragOver:this.props.onDragOver},this.props.onDragStart&&this.props.onDragEnd&&x.createElement(Ka,{className:an,onDragStart:this.props.onDragStart,onDragEnd:this.props.onDragEnd},x.createElement(Ga,null)),x.createElement("input",{ref:this.props.innerRef,className:Ya,type:"text",value:this.props.value,tabIndex:this.props.tabIndex,onChange:this.props.onChange}),this.props.onAdd&&x.createElement(Qs,{"data-testid":"input--string-list-item__add-btn",onClick:this.props.onAdd,className:rn},"Add"),this.props.onRemove&&x.createElement(Qs,{"data-testid":"input--string-list-item__remove-btn",onClick:this.props.onRemove,className:nn},x.createElement(ea,null)),this.props.onEnter&&x.createElement(si,{keys:"enter",target:this.props.innerRef,onMatch:this.props.onEnter}),this.props.onTab&&x.createElement(si,{keys:["tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onTab}),this.props.onShiftTab&&x.createElement(si,{keys:["shift+tab"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onShiftTab}),this.props.onModEnter&&x.createElement(si,{keys:["mod+enter"],preventDefault:!1,stopPropagation:!1,target:this.props.innerRef,onMatch:this.props.onModEnter}))}}var Rr=_(Nr);var Mr="_container_1mf95_1",Or="_invalid_1mf95_6",kr="_phantom_1mf95_10";class Ar extends x.Component{constructor(e){super(e),this.container=x.createRef(),this.input=x.createRef(),this.afterGuiAttached=()=>{var e,t,s;const{api:i,node:a,field:n,resizeRowForRelation:r}=this.props;this.stopEditingImmediately?null==i||i.stopEditing():(r(a,n),null==(t=null==(e=this.input.current)?void 0:e.afterGuiAttached)||t.call(e),null==(s=this.input.current)||s.focus())},this.getValue=()=>{var e,t;return null==(t=null==(e=this.input.current)?void 0:e.getValue)?void 0:t.call(e)},this.isPopup=()=>!0,this.handleClickOutside=e=>{var t,s;(null==(t=this.container.current)?void 0:t.contains(e.target))||null==(s=this.props.api)||s.stopEditing()};const{node:{data:t},field:s}=e,i=t;this.stopEditingImmediately=!1,8===e.keyPress||127===e.keyPress?(this.initialValue=s.lowestValidValue,this.stopEditingImmediately=!0):e.charPress?e.field.isScalar&&!e.field.isList&&(this.initialValue=e.charPress):this.initialValue=i.value[s.name]}componentDidMount(){document.addEventListener("click",this.handleClickOutside)}componentWillUnmount(){document.removeEventListener("click",this.handleClickOutside)}render(){var e,t;const{node:{data:s},columnApi:i,column:a,field:n}=this.props,r=s,d=null!=(t=null==(e=i.getColumnState().find((e=>e.colId===a.getColId())))?void 0:e.width)?t:200,c=r.invalidFields.find((e=>e.field.id===n.id));return x.createElement("div",{ref:this.container,className:S(Mr,{[Or]:!!c}),style:{width:d}},n.isString&&(n.isList?x.createElement(Rr,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(Sr,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),(n.isInt||n.isFloat||n.isDecimal)&&(n.isList?x.createElement(Kn,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement($n,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isBigInt&&(n.isList?x.createElement(hn,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement($a,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isBoolean&&(n.isList?x.createElement(Sn,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(wn,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isDateTime&&(n.isList?x.createElement(Rr,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(An,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isJson&&(n.isList?x.createElement(Un,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(Hn,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isBytes&&(n.isList?x.createElement(On,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(Ln,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isEnum&&(n.isList?x.createElement(jn,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(Tn,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),n.isRelation&&(n.isList?x.createElement(_r,o(l({ref:this.input},this.props),{initialValue:this.initialValue})):x.createElement(br,o(l({ref:this.input},this.props),{initialValue:this.initialValue}))),c&&x.createElement("div",{className:kr},c.reason))}}var Dr=_(Ar);function Tr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99999 0H0V24H7.99999V21H4.00001V3H7.99999V0ZM16 0V3H19.9999V21H16V24H24V0H16Z"}))}function Pr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.85714 5C3.07006 5 0 8.13402 0 12C0 15.866 3.07006 19 6.85714 19H17.143C20.9299 19 24 15.866 24 12C24 8.13402 20.9299 5 17.143 5H6.85714ZM6.85714 17.25C9.69746 17.25 12 14.8995 12 12C12 9.10051 9.69746 6.75 6.85714 6.75C4.01683 6.75 1.7143 9.10051 1.7143 12C1.7143 14.8995 4.01683 17.25 6.85714 17.25Z"}))}function Vr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 10V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10H4ZM0 6C0 2.68629 2.68629 0 6 0H18C21.3137 0 24 2.68629 24 6V18C24 21.3137 21.3137 24 18 24H6C2.68629 24 0 21.3137 0 18V6Z"}))}function jr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.8H0V0H24V4.8Z"}),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8 14.4H0V9.60001H16.8V14.4Z"}),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 24H0V19.2H24V24Z"}))}function Fr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8.0001C0 6.89554 0.89544 6.00015 1.99999 6.00015H22.0001C23.1046 6.00015 24 6.89554 24 8.0001C24 9.10465 23.1046 10.0001 22.0001 10.0001H1.99999C0.89544 10.0001 0 9.10465 0 8.0001Z"}),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 15.9999C0 14.8954 0.89544 14 1.99999 14H22.0001C23.1046 14 24 14.8954 24 15.9999C24 17.1046 23.1046 17.9998 22.0001 17.9998H1.99999C0.89544 17.9998 0 17.1046 0 15.9999Z"}),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29671 0.0223986C10.389 0.186247 11.1418 1.20459 10.9779 2.2969L7.97789 22.2965C7.81404 23.3887 6.7957 24.1414 5.70334 23.9777C4.611 23.8138 3.85829 22.7954 4.02216 21.7032L7.02216 1.70355C7.18601 0.611239 8.20435 -0.141449 9.29671 0.0223986Z"}),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2967 0.0223986C19.3891 0.186247 20.1418 1.20459 19.9779 2.2969L16.9779 22.2965C16.8139 23.3887 15.7957 24.1414 14.7033 23.9777C13.611 23.8138 12.8583 22.7954 13.0222 21.7032L16.0222 1.70355C16.186 0.611239 17.2044 -0.141449 18.2967 0.0223986Z"}))}function Br(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M9.5452 24V21.1961H8.44912C6.82779 21.1961 6.50809 20.7754 6.50809 18.6723V15.1291C6.50809 13.3829 5.38916 12.2613 3.32256 12.1211V11.8917C5.38916 11.7515 6.50809 10.6171 6.50809 8.88371V5.32767C6.50809 3.22464 6.82779 2.80404 8.44912 2.80404H9.5452V0H7.70696C4.40725 0 3.33397 1.15985 3.33397 4.72863V7.54542C3.33397 9.55924 2.51189 10.3367 0 10.222V13.778C2.51189 13.6761 3.33397 14.4535 3.33397 16.4674V19.2713C3.33397 22.8401 4.40725 24 7.70696 24H9.5452Z"}),N.exports.createElement("path",{d:"M16.293 24C19.5929 24 20.6659 22.8401 20.6659 19.2713V16.4674C20.6659 14.4535 21.4882 13.6761 24 13.778V10.222C21.4882 10.3367 20.6659 9.55924 20.6659 7.54542V4.72863C20.6659 1.15985 19.5929 0 16.293 0H14.4548V2.80404H15.5509C17.1722 2.80404 17.4919 3.22464 17.4919 5.32767V8.88371C17.4919 10.6171 18.6108 11.7515 20.6774 11.8917V12.1211C18.6108 12.2613 17.4919 13.3829 17.4919 15.1291V18.6723C17.4919 20.7754 17.1722 21.1961 15.5509 21.1961H14.4548V24H16.293Z"}))}function Hr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M18.327 24L16.5266 18.3105H7.4735L5.67304 24H0L8.76437 0H15.2018L24 24H18.327ZM15.2697 14.06C13.6051 8.90463 12.6653 5.98911 12.4502 5.31336C12.2463 4.63761 12.0991 4.10355 12.0085 3.71118C11.6349 5.10627 10.5648 8.55585 8.79833 14.06H15.2697Z"}))}var Zr="_icon_f25b9_1",qr="_required_f25b9_8";var Ur=_((({className:e,string:t=!1,int:s=!1,float:i=!1,boolean:a=!1,dateTime:n=!1,enumerable:r=!1,array:l=!1,required:o=!1})=>{let d;return d=l?Tr:t?Hr:s||i?Fr:a?Pr:r?jr:n?Vr:Br,x.createElement(x.Fragment,null,x.createElement(d,{className:S(Zr,e)}),x.createElement("span",{className:qr},!o&&"?"))}));function zr(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 9 7",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M4.5 7L8.39711 0.25H0.602886L4.5 7Z",fill:"currentColor"}))}var $r={container:"_container_e5y85_1",sortable:"_sortable_e5y85_11",title:"_title_e5y85_15",spacer:"_spacer_e5y85_22",sortIndicator:"_sortIndicator_e5y85_26",visible:"_visible_e5y85_34",asc:"_asc_e5y85_37"};class Jr extends x.Component{constructor(){super(...arguments),this.state={wasReordered:!1},this.handleReorder=()=>{this.setState({wasReordered:!0})},this.handleSort=()=>{var e;const{wasReordered:t}=this.state,{field:s,script:i}=this.props;this.setState({wasReordered:!1}),s&&s.isSortable&&(t||(null==(e=Tt.activeTab)||e.update({preview:!1}),i.sort.fieldId===s.id&&"asc"===i.sort.order?i.sort.update({fieldId:s.id,order:"desc"}):i.sort.fieldId===s.id&&"desc"===i.sort.order?i.sort.update({fieldId:null,order:"asc"}):i.sort.update({fieldId:s.id,order:"asc"}),i.run(),os.send({command:"sort_change",commandDetails:{field_type:s.type}})))}}componentDidMount(){this.props.column.addEventListener("movingChanged",this.handleReorder)}componentWillUnmount(){this.props.column.removeEventListener("movingChanged",this.handleReorder)}render(){var e,t;const{field:s,script:i,displayName:a,columnApi:n,column:r}=this.props,l=null!=(t=null==(e=n.getColumnState().find((e=>e.colId===r.getColId())))?void 0:e.width)?t:200;return x.createElement("div",{"data-testid":"table__header__cell",className:S($r.container,{[$r.sortable]:s.isSortable}),style:{width:l},title:`${s.name} (${s.type})`,onClick:this.handleSort},x.createElement("span",{"data-testid":"table__header__cell__title",className:$r.title},a),x.createElement(Ur,{required:s.isRequired,array:s.isList,object:s.isRelation,string:s.isString,int:s.isInt||s.isBigInt,float:s.isFloat||s.isDecimal,boolean:s.isBoolean,dateTime:s.isDateTime,enumerable:s.isEnum}),x.createElement("div",{className:$r.spacer}),x.createElement(zr,{"data-test-asc":i.sort.fieldId===s.id&&"asc"===i.sort.order,"data-test-desc":i.sort.fieldId===s.id&&"desc"===i.sort.order,className:S($r.sortIndicator,{[$r.visible]:i.sort.fieldId===s.id,[$r.asc]:"asc"===i.sort.order,[$r.desc]:"desc"===i.sort.order})}))}}var Wr=_(Jr);class Kr extends x.Component{render(){return x.createElement("div",{"data-testid":"loading-overlay",className:Ir},"Fetching rows in this table...")}}const Gr=32;class Qr extends x.Component{constructor(e){super(e),this.table=x.createRef(),this.recordOrder=new Map,this.reactionDisposers=[],this.focus=()=>{var e;null==(e=this.table.current)||e.focus()},this.refresh=()=>{this.loadGridDataDebounced()},this.selectRows=(e=[])=>{this.gridApi.deselectAll(),e.forEach((e=>{var t,s;null==(s=null==(t=this.gridApi)?void 0:t.getRowNode(e))||s.setSelected(!0)}))},this.deleteSelectedRows=()=>{var e;const t=null==(e=Tt.activeTab)?void 0:e.sessionId;if(!t)return;this.gridApi.getSelectedNodes().map((e=>at.get(e.id))).filter((e=>!!e)).forEach((e=>xs.add({type:"delete",recordId:e.id,sessionId:t,value:{}})))},this.getDimensions=()=>{var e;return null==(e=this.table.current)?void 0:e.getBoundingClientRect()},this.resizeRowForRelation=(e,t)=>{if(!t.typeAsModel)return!1;const s=this.getDimensions();if(!s)return;const i=2*Gr,a=64+(s.height-4*Gr-64-15-36)+15+36,n=64+i+15+36,r=64+Gr*(t.typeAsModel.count||0)+15+36,l=Math.min(Math.max(n,r),a);e.setRowHeight(Gr+l),this.gridApi.onRowHeightChanged(),this.gridApi.ensureNodeVisible(e,"top")},this.loadGridData=async()=>{var e;const t=null==(e=Tt.activeTab)?void 0:e.session;t&&t.isScript&&(await t.script.run(),0!==t.script.model.count||0!==t.script.recordIds.length||this.gridApi.showNoRowsOverlay())},this.configureGridColumns=()=>{var e;const t=null==(e=Tt.activeTab)?void 0:e.session;t&&t.isScript&&(this.gridApi.stopEditing(),this.gridApi.setColumnDefs([{colId:"checkbox",headerName:"",editable:!1,resizable:!1,sortable:!1,hide:V.readonly,pinned:!0,suppressMovable:!0,maxWidth:32,checkboxSelection:!0,headerCheckboxSelection:!0},...t.script.model.fields.map((e=>{const s=!(e.isScalarListTwoWayMNRelation||V.readonly&&!e.isRelation);return{colId:e.id,headerName:e.name,editable:s,resizable:!0,tooltipValueGetter:s?void 0:()=>"This field is not editable",sortable:!0,hide:!t.script.fieldIds.includes(e.id),valueGetter:t=>t.data.value[e.name],valueSetter:t=>this.handleCellValueChanged(t,e),comparator:(e,t,s,i,a)=>(this.recordOrder.get(s.id)-this.recordOrder.get(i.id)||0)*(a?-1:1),headerComponent:"TableCellHeader",headerComponentParams:{field:e,script:t.script},cellRenderer:"TableCellRenderer",cellRendererParams:{field:e,resizeRowForRelation:this.resizeRowForRelation},cellClassRules:{[Ba]:()=>!0,[Ha]:({data:t})=>t.dirtyFieldNames.includes(e.name),[Za]:({data:t})=>!!t.invalidFields.find((t=>t.field.id===e.id)),[qa]:({data:t})=>void 0===t.value[e.name]||null===t.value[e.name]},cellEditor:"TableCellEditor",cellEditorParams:{field:e,sessionId:t.id,getTableDimensions:this.getDimensions,resizeRowForRelation:this.resizeRowForRelation}}}))]),this.gridApi.ensureColumnVisible(t.script.model.fieldIds[0]))},this.configureReactions=()=>{this.disposeReactions();let e=v((()=>{var e;return[Tt.activeTab,null==(e=Tt.activeTab)?void 0:e.session]})).observe((()=>{this.configureGridColumns(),this.loadGridDataDebounced()}));this.reactionDisposers.push(e),e=v((()=>{var e,t,s,i,a;return(null==(t=null==(e=Tt.activeTab)?void 0:e.session)?void 0:t.isScript)?null==(a=null==(i=null==(s=Tt.activeTab)?void 0:s.session)?void 0:i.script)?void 0:a.fields:[]})).observe((({oldValue:e=[],newValue:t=[]})=>{var s,i;if(!(null==(i=null==(s=Tt.activeTab)?void 0:s.session)?void 0:i.isScript))return;let a=[],n=[];const r=new Map;e.forEach((e=>r.set(e.id,e)));const l=new Map;t.forEach((e=>l.set(e.id,e))),l.forEach(((e,t)=>{r.has(t)||a.push(e),r.delete(t)})),r.forEach((e=>n.push(e))),a.forEach((e=>this.columnApi.setColumnVisible(e.id,!0))),n.forEach((e=>this.columnApi.setColumnVisible(e.id,!1)))})),this.reactionDisposers.push(e),e=v((()=>{var e,t,s,i,a;return(null==(t=null==(e=Tt.activeTab)?void 0:e.session)?void 0:t.isScript)?null==(a=null==(i=null==(s=Tt.activeTab)?void 0:s.session)?void 0:i.script)?void 0:a.records:[]})).observe((({oldValue:e=[],newValue:t=[]})=>{var s,i,a,n,r,l;if(!(null==(i=null==(s=Tt.activeTab)?void 0:s.session)?void 0:i.isScript))return;const o=[],d=[],h=[],p=new Map;e.forEach((e=>p.set(e.id,e)));const u=new Map;t.forEach((e=>u.set(e.id,e)));let m=0;this.recordOrder.clear(),u.forEach((e=>{this.recordOrder.set(e.id,m++),p.has(e.id)&&this.gridApi.getRowNode(e.id)?d.push(e):o.push(e),p.delete(e.id)})),p.forEach((e=>{this.gridApi.getRowNode(e.id)&&h.push(e)}));c.exports.findLast(o,(e=>!1===e.isCommitted))&&(this.gridApi.deselectAll(),this.gridApi.ensureIndexVisible(0),this.gridApi.setFocusedCell(Tt.activeTab.session.script.uncommittedRecords.length-1,c.exports.last(o).model.fieldIds[0])),this.gridApi.setSortModel(null),this.gridApi.applyTransaction({add:o,update:d,remove:h}),this.gridApi.setSortModel([{colId:null==(n=null==(a=Tt.activeTab)?void 0:a.session)?void 0:n.script.fieldIds[0],sort:null==(l=null==(r=Tt.activeTab)?void 0:r.session)?void 0:l.script.sort.order}])}),!0),this.reactionDisposers.push(e)},this.disposeReactions=()=>{this.reactionDisposers.forEach((e=>e())),this.reactionDisposers=[]},this.handleGridReady=async e=>{this.columnApi=e.columnApi,this.gridApi=e.api,this.configureReactions(),this.configureGridColumns(),this.loadGridDataDebounced()},this.handleScroll=async e=>{var t,s;if("horizontal"===e.direction)return;const i=null==(s=null==(t=Tt.activeTab)?void 0:t.session)?void 0:s.script;if(i.recordIds.length>=(i.model.count||0))return;const a=this.props.height;!i.running&&e.top+a>=32*(i.pagination.take-20)&&i.loadMore()},this.handleSelectionChanged=e=>{var t;null==(t=Tt.activeTab)||t.session.selection.table.update({selectedRecordIds:e.api.getSelectedRows().map((e=>e.id))})},this.handleCellEditingStopped=e=>{const t=this.gridApi.getFocusedCell(),s=e;if(!t||!s)return;if(t.rowIndex===s.rowIndex&&t.column.getColId()!==s.column.getColId())return;if(t.rowIndex===s.rowIndex)return;const i=pe.get(t.column.getColId()),a=pe.get(e.column.getColId());(null==a?void 0:a.isRelation)&&(null==i?void 0:i.isRelation)&&this.gridApi.startEditingCell({rowIndex:t.rowIndex,colKey:t.column.getColId()})},this.handleCellValueChanged=(e,t)=>{var s,i,a,n;const{oldValue:r,newValue:l,node:{data:o}}=e,d=o,h=null==(s=Tt.activeTab)?void 0:s.sessionId;if(!h)return!1;if(c.exports.isEqual(r,l))return!1;if(!(null==(a=null==(i=Tt.activeTab)?void 0:i.session)?void 0:a.isScript))return!1;if(Tt.activeTab.session.script.update({frozen:!1}),xs.add({type:"update",recordId:d.id,sessionId:h,value:{[t.name]:l}}),t.isRelation&&!t.isList){if(!t.typeAsModel)return!1;const e=t.relationFromFieldNames,s=t.relationToFieldNames;let i;i=null==l?null:at.get(Ie(t.typeAsModel.id,l)),xs.add({type:"update",sessionId:h,recordId:null!=(n=d.id)?n:null,value:e.reduce(((e,t,a)=>{var n;return e[t]=null!=(n=null==i?void 0:i.value[s[a]])?n:null,e}),{})})}if(t.isPartOfRelation&&t.relationItIsPartOf){if(!t.relationItIsPartOf.typeAsModel)return!1;const e=t.relationItIsPartOf.relationFromFieldNames,s=t.relationItIsPartOf.relationToFieldNames;xs.add({type:"update",sessionId:h,recordId:d.id,value:{[t.relationItIsPartOf.name]:null==l?null:s.reduce(((t,s,i)=>(t[s]=d.value[e[i]],t)),{})}})}return!0},this.loadGridDataDebounced=c.exports.debounce(this.loadGridData,300,{leading:!1,trailing:!0}),this.handleScrollThrottled=c.exports.throttle(this.handleScroll,100,{leading:!0,trailing:!0})}componentWillUnmount(){this.disposeReactions()}copyToClipboard(){const e=this.gridApi.getFocusedCell(),t=this.gridApi.getDisplayedRowAtIndex(e.rowIndex),s=this.gridApi.getValue(e.column,t);if("object"!=typeof s||null===s)if(s)navigator.clipboard.writeText(s);else{const e=this.gridApi.getSelectedRows().map((e=>y(e.value))),t=JSON.stringify(e);if(0===e.length)return;navigator.clipboard.writeText(t)}}render(){var e;const t=null==(e=Tt.activeTab)?void 0:e.session;return x.createElement(x.Fragment,null,x.createElement("div",{ref:this.table,className:S(ja,"ag-theme-main")},x.createElement(Va,null),x.createElement(M,{rowSelection:"multiple",rowDeselection:!0,suppressRowClickSelection:!0,frameworkComponents:{TableLoadingOverlay:Kr,TableEmptyOverlay:Cr,TableCellHeader:Wr,TableCellRenderer:yr,TableCellEditor:Dr},rowClassRules:{[Fa]:e=>!!t.script.uncommittedRecords.length&&e.node.id===t.script.recordIds[t.script.uncommittedRecords.length]},loadingOverlayComponent:"TableLoadingOverlay",noRowsOverlayComponent:"TableEmptyOverlay",suppressColumnVirtualisation:!!window.Cypress,getRowNodeId:e=>e.id,onGridReady:this.handleGridReady,onBodyScroll:this.handleScrollThrottled,onSelectionChanged:this.handleSelectionChanged,onCellEditingStopped:this.handleCellEditingStopped})),x.createElement(si,{keys:"mod+c",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{e.preventDefault(),e.stopPropagation(),this.copyToClipboard()}}),x.createElement(si,{keys:"mod+up",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(0,this.gridApi.getFocusedCell().column))}}),x.createElement(si,{keys:"mod+down",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(Tt.activeTab.session.script.recordIds.length-1,this.gridApi.getFocusedCell().column))}}),x.createElement(si,{keys:"mod+left",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{this.gridApi.getEditingCells().length>0||(e.preventDefault(),e.stopPropagation(),this.gridApi.setFocusedCell(this.gridApi.getFocusedCell().rowIndex,this.columnApi.getColumnState()[1].colId))}}),x.createElement(si,{keys:"mod+right",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{if(this.gridApi.getEditingCells().length>0)return;e.preventDefault(),e.stopPropagation();const t=this.columnApi.getColumnState();this.gridApi.setFocusedCell(this.gridApi.getFocusedCell().rowIndex,t[t.length-1].colId)}}),x.createElement(si,{keys:"enter",target:this.table,preventDefault:!1,stopPropagation:!1,onMatch:e=>{const t=this.gridApi.getFocusedCell();if("checkbox"===t.column.getColId()){e.preventDefault(),e.stopPropagation();const s=this.gridApi.getRowNode(Tt.activeTab.session.script.recordIds[t.rowIndex]),i=this.gridApi.getSelectedNodes().find((e=>e.id===s.id));null==s||s.setSelected(!i)}}}))}}var Yr="_stickyItems_1qvgu_1",Xr="_outer_1qvgu_8";const el=x.createContext({});class tl extends x.PureComponent{constructor(e){super(e),this.list=x.createRef(),this.lastScrollTop=0,this.isLoading=!1,this.handleScroll=()=>{const e=this.list.current._outerRef;e.scrollTop!==this.lastScrollTop&&(this.lastScrollTop=e.scrollTop,this.handleHorizontalScrollThrottled())},this.handleHorizontalScroll=()=>{const{itemSize:e,onLoad:t}=this.props;if(this.isLoading||!t)return;const s=this.list.current._outerRef;s.scrollHeight-(s.scrollTop+s.clientHeight)<15*e&&(this.isLoading=!0,t())},this.handleHorizontalScrollThrottled=c.exports.throttle(this.handleHorizontalScroll,100,{leading:!0,trailing:!0})}componentDidUpdate(){this.isLoading=!1}render(){const{className:e,outerElementRef:t,innerElementRef:s,height:i,width:a,itemCount:n,itemKey:r,itemSize:l,itemData:o,itemRenderer:d,stickyIndices:c,stickyItemsClassName:h,overscan:p}=this.props;return x.createElement(el.Provider,{value:{stickyIndices:c,stickyItemsClassName:h,itemSize:l,itemData:o,itemKey:r,itemRenderer:d}},x.createElement("div",{"data-testid":"infinite-list",className:e,onScroll:this.handleScroll},x.createElement(k,{ref:this.list,outerRef:t,innerRef:s,height:i,width:a,itemCount:n,itemSize:l,itemKey:r,itemData:o,overscanCount:p,outerElementType:il,innerElementType:sl},d)))}}tl.defaultProps={stickyIndices:[],stickyItemsClassName:"",overscan:10};const sl=x.forwardRef(((e,t)=>{var s=e,{children:i}=s,a=d(s,["children"]);return x.createElement(el.Consumer,null,(({stickyItemsClassName:e,stickyIndices:s=[],itemSize:n,itemData:r,itemKey:d,itemRenderer:c})=>x.createElement("div",l({ref:t},a),x.createElement("div",{className:S(Yr,e)},s.map((e=>x.createElement(c,{key:d(e),index:e,style:{display:"flex",position:"absolute",top:e*n,left:0,width:"100%",height:n},data:o(l({},r),{sticky:!0})})))),x.Children.map(i,((e,t)=>s.includes(t)?null:e)))))})),il=x.forwardRef(((e,t)=>{var s=e,{children:i,className:a}=s,n=d(s,["children","className"]);return x.createElement("div",l({ref:t,tabIndex:1,className:S(Xr,a)},n),i)}));var al=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,rl=(e,t,s,i)=>{for(var a,n=i>1?void 0:i?nl(t,s):t,r=e.length-1;r>=0;r--)(a=e[r])&&(n=(i?a(t,s,n):a(n))||n);return i&&n&&al(t,s,n),n};class ll{constructor(e){w((()=>{this.sessionId=e.sessionId}))}get session(){return He.get(this.sessionId)}}rl([h],ll.prototype,"sessionId",2),rl([v],ll.prototype,"session",1);const ol=new ll({sessionId:"model-list-session"}),dl=N.exports.createContext(ol),cl=dl.Provider;dl.Consumer;const hl=dl,pl=e=>(e.contextType=hl,e);var ul="_container_wwbam_1";var ml="_container_fkswg_1",gl="_one_fkswg_21",vl="_two_fkswg_22",fl="_three_fkswg_23";var yl=_((({className:e,size:t=3}={})=>x.createElement("div",{className:S(ml,e)},x.createElement("div",{className:gl,style:{height:t,width:t}}),x.createElement("div",{className:vl,style:{height:t,width:t}}),x.createElement("div",{className:fl,style:{height:t,width:t}}))));class Il extends x.PureComponent{constructor(){super(...arguments),this.clickStartCoords={x:0,y:0},this.startClick=e=>{this.clickStartCoords={x:e.clientX,y:e.clientY}},this.finishClick=e=>{if(this.props.onClickButNotDrag&&Math.abs(this.clickStartCoords.x-e.clientX)<5&&Math.abs(this.clickStartCoords.y-e.clientY)<5)return this.props.onClickButNotDrag(e);this.props.onClick&&this.props.onClick(e)}}render(){const e=this.props,{onClickButNotDrag:t,children:s}=e,i=d(e,["onClickButNotDrag","children"]);return x.createElement("div",o(l({},i),{onMouseDown:this.startClick,onMouseUp:this.finishClick,onClick:void 0}),s)}}function Cl(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"m2.314892,2.715466c0,-2.097726 2.320696,-3.364698 4.085258,-2.230334l13.864359,8.912782c1.89413,1.21769 1.89413,3.986482 0,5.204172l-13.864359,8.912782c-1.764597,1.134364 -4.085258,-0.132608 -4.085258,-2.230334l0,-18.569068z"}))}const wl=(e,{maxLength:t=100}={})=>e.length<=t?e:`${e.slice(0,t-1)}…`,bl=(e,{maxLength:t}={maxLength:100})=>{if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return`"${wl(e,{maxLength:t-2})}"`;if("number"==typeof e||"boolean"==typeof e)return wl(`${e}`,{maxLength:t});const s=e=>"string"==typeof e?`"${e}"`:"number"==typeof e||"boolean"==typeof e?`${e}`:Array.isArray(e)?"[ … ]":"{ … }";if(Array.isArray(e)){t-="[ ]".length;const i=[];return e.some((e=>{const a=s(e),n=a.length+", ".length;return!(n{const n=`${i}: ${s(e[i])}`,r=n.length+", ".length;return!(r{const{path:t,isLoading:s,onToggleCollapse:i}=this.props;e.stopPropagation(),s||i(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:s,fieldName:i,modelName:a,value:n,isLoading:r,style:l}=this.props,o=e.split("::").length-1;return x.createElement("div",{tabIndex:1,"data-testid":"tree__array",className:S(El.container,{[El.expanded]:s,[El.active]:!s&&t}),style:l},x.createElement("div",{className:El.depthGutter,style:{width:16*o}}),x.createElement("div",{"data-testid":"expand-btn",className:El.expandButton,onClick:this.handleToggleCollapse},r&&x.createElement(yl,{size:3,className:El.loader}),!r&&n&&n.length>0&&x.createElement(Cl,null)),x.createElement("div",{className:S(El.meta,{[El.active]:s&&t}),onClick:this.handleToggleCollapse},x.createElement(Ur,{className:El.icon,array:!0,required:!0}),x.createElement("div",{className:El.fieldName},i,":"),x.createElement("div",{className:El.fieldType},a)),x.createElement(Il,{className:El.fieldValue,onClickButNotDrag:this.handleExpand},x.createElement(x.Fragment,null,`(${n?n.length:0}) `,r||0===(null==n?void 0:n.length)?"[ ]":bl(n,{maxLength:150}))))}}var xl=_(_l);class Sl extends x.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:s,onToggleCollapse:i}=this.props;e.stopPropagation(),s||i(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:s,startIndex:i,endIndex:a,value:n,isLoading:r,style:l}=this.props,o=e.split("::").length-1;return x.createElement("div",{tabIndex:1,"data-testid":"tree__array",className:S(El.container,{[El.expanded]:s,[El.active]:!s&&t}),style:l},x.createElement("div",{className:El.depthGutter,style:{width:16*o}}),x.createElement("div",{"data-testid":"expand-btn",className:El.expandButton},r?x.createElement(yl,{size:3,className:El.loader}):x.createElement(Cl,null)),x.createElement("div",{className:S(El.meta,{[El.active]:s&&t}),onClick:this.handleToggleCollapse},x.createElement(Ur,{className:El.icon,array:!0,required:!0}),x.createElement("div",{className:El.fieldName},`[${i}-${a}]:`)),x.createElement(Il,{className:El.fieldValue,onClickButNotDrag:this.handleExpand},x.createElement(x.Fragment,null,`(${n&&n.length}) `,bl(n,{maxLength:150}))))}}var Nl=_(Sl);var Ll={container:"_container_1m4mj_1",meta:"_meta_1m4mj_8",fieldValue:"_fieldValue_1m4mj_14",active:"_active_1m4mj_20",icon:"_icon_1m4mj_36",fieldName:"_fieldName_1m4mj_39"};class Rl extends x.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:s}=this.props;e&&e.stopPropagation(),s(t)}}render(){const{path:e,isSelected:t,fieldName:s,value:i,style:a}=this.props,n=e.split("::").length-1;return x.createElement("div",{"data-testid":"tree__enum",style:a,className:S(Ll.container,{[Ll.active]:t}),tabIndex:1,onClick:this.handleClick},x.createElement("div",{className:Ll.depthGutter,style:{width:16*n}}),x.createElement("div",{className:Ll.meta},x.createElement(Ur,{className:Ll.icon,enumerable:!0,required:!0}),s&&x.createElement("div",{className:Ll.fieldName},s,":")),x.createElement("div",{className:Ll.fieldValue},bl(i)))}}var Ml=_(Rl);var Ol={container:"_container_1rxo6_1",meta:"_meta_1rxo6_9",fieldValue:"_fieldValue_1rxo6_14",active:"_active_1rxo6_19",expanded:"_expanded_1rxo6_28",expandButton:"_expandButton_1rxo6_28",loader:"_loader_1rxo6_51",icon:"_icon_1rxo6_65",fieldName:"_fieldName_1rxo6_68",fieldType:"_fieldType_1rxo6_73"};class kl extends x.PureComponent{constructor(){super(...arguments),this.handleToggleCollapse=e=>{const{path:t,isLoading:s,onToggleCollapse:i}=this.props;e.stopPropagation(),s||i(t)},this.handleExpand=e=>{const{isExpanded:t}=this.props;t||this.handleToggleCollapse(e)}}render(){const{path:e,isSelected:t,isExpanded:s,fieldName:i,modelName:a,value:n,isLoading:r,style:l}=this.props,o=e.split("::").length-1;return x.createElement("div",{"data-testid":"tree__object","data-test-expanded":"true",style:l,className:S(Ol.container,{[Ol.expanded]:s,[Ol.active]:!s&&t}),tabIndex:1},x.createElement("div",{className:Ol.depthGutter,style:{width:16*o}}),x.createElement("div",{"data-testid":"expand-btn",className:Ol.expandButton,onClick:this.handleToggleCollapse},r&&x.createElement(yl,{size:3,className:Ol.loader}),!r&&n&&x.createElement(Cl,null)),x.createElement("div",{className:S(Ol.meta,{[Ol.active]:s&&t}),onClick:this.handleToggleCollapse},x.createElement(Ur,{className:Ol.icon,object:!0,required:!0}),i&&x.createElement("div",{className:Ol.fieldName},i,":"),x.createElement("div",{className:Ol.fieldType},a)),x.createElement(Il,{className:Ol.fieldValue,onClickButNotDrag:this.handleExpand},n?bl(n,{maxLength:150}):"null"))}}var Al=_(kl);var Dl={container:"_container_w0wc7_1",meta:"_meta_w0wc7_8",fieldValue:"_fieldValue_w0wc7_14",active:"_active_w0wc7_20",icon:"_icon_w0wc7_36",fieldName:"_fieldName_w0wc7_39"};class Tl extends x.PureComponent{constructor(){super(...arguments),this.handleClick=e=>{const{path:t,onClick:s}=this.props;e&&e.stopPropagation(),s(t)}}render(){const{path:e,isSelected:t,fieldName:s,value:i,isString:a,isInt:n,isFloat:r,isBoolean:l,isDateTime:o,style:d}=this.props,c=e.split("::").length-1;return x.createElement("div",{"data-testid":"tree__scalar",style:d,className:S(Dl.container,{[Dl.active]:t}),tabIndex:1,onClick:this.handleClick},x.createElement("div",{className:Dl.depthGutter,style:{width:16*c}}),x.createElement("div",{className:Dl.meta},((h=this.props).isString||h.isInt||h.isFloat||h.isBoolean||h.isDateTime)&&x.createElement(Ur,{className:Dl.icon,required:!0,string:a,int:n,float:r,boolean:l,dateTime:o}),x.createElement("div",{className:Dl.fieldName},s,":")),x.createElement("div",{className:Dl.fieldValue},bl(i)));var h}}var Pl=_(Tl);class Vl extends x.PureComponent{constructor(){super(...arguments),this.isArraySlice=e=>null===e.record&&Array.isArray(e.arraySliceIndices)&&Array.isArray(e.value),this.handleToggleCollapse=e=>{const{selection:t}=this.context.session;this.handleSelect(e),t.tree.isExpanded(e)?t.tree.collapse():t.tree.expand()},this.handleSelect=e=>{const{selection:t}=this.context.session;t.tree.select(e)}}render(){var e,t,s,i,a,n,r,l,o,d,c,h,p;const{selection:u}=this.context.session,{style:m,index:g,data:{pathsToRender:v,recordIds:f}}=this.props,y=v[g],I=_e(y,f),C=u.tree.activePath,w=u.tree.isExpanded(y);return this.isArraySlice(I)?x.createElement(Nl,{path:y,isSelected:y===C,isExpanded:w,startIndex:I.arraySliceIndices[0],endIndex:I.arraySliceIndices[1],value:I.value,isLoading:!I.value,style:m,onToggleCollapse:this.handleToggleCollapse}):(null==(e=I.field)?void 0:e.isList)||Array.isArray(I.value)?x.createElement(xl,{path:y,isSelected:y===C,isExpanded:w,fieldName:I.field.name,modelName:I.field.typeAsLabel,value:I.value,isLoading:!I.value,style:m,onToggleCollapse:this.handleToggleCollapse}):(null==(t=I.field)?void 0:t.isRelation)||I.record?x.createElement(Al,{path:y,isSelected:y===C,isExpanded:w,fieldName:null==(s=I.field)?void 0:s.name,modelName:I.model.name,value:I.value,isLoading:null===(null==(i=I.record)?void 0:i.value),style:m,onToggleCollapse:this.handleToggleCollapse}):(null==(a=I.field)?void 0:a.isEnum)?x.createElement(Ml,{path:y,isSelected:y===C,fieldName:null==(n=I.field)?void 0:n.name,value:I.value,style:m,onClick:this.handleSelect}):x.createElement(Pl,{path:y,isSelected:y===C,fieldName:(null==(r=I.field)?void 0:r.name)||`${I.index}`,value:I.value,isString:(null==(l=I.field)?void 0:l.isString)||!1,isInt:(null==(o=I.field)?void 0:o.isInt)||!1,isFloat:(null==(d=I.field)?void 0:d.isFloat)||(null==(c=I.field)?void 0:c.isDecimal)||!1,isBoolean:(null==(h=I.field)?void 0:h.isBoolean)||!1,isDateTime:(null==(p=I.field)?void 0:p.isDateTime)||!1,style:m,onClick:this.handleSelect})}}var jl=_(pl(Vl));class Fl extends x.PureComponent{constructor(e){super(e),this.tree=x.createRef(),this.refresh=async()=>{const{session:e}=this.context;await e.script.run()},this._scrollIntoView=()=>{const{height:e}=this.props,t=this.getActivePathIndex(),s=this.tree.current,i=23*t,a=i+23;i<=s.scrollTop&&s.scrollTo({top:i}),a>=s.scrollTop+e&&s.scrollTo({top:a-e})},this.getActivePathIndex=()=>{const{session:e}=this.context;return e.selection.tree.selectionOrder.findIndex((t=>t===e.selection.tree.activePath))},this.handleLoadMore=()=>{const{session:e}=this.context;e.script.loadMore(),e.selection.tree.setSelectionOrder()},this.scrollIntoView=c.exports.throttle(this._scrollIntoView,30,{leading:!0,trailing:!0})}focus(){var e;null==(e=this.tree.current)||e.focus()}componentDidMount(){this.context.session.selection.tree.setSelectionOrder()}render(){const{session:e}=this.context,{height:t,width:s,recordIds:i}=this.props,{tree:a}=e.selection,n=a.selectionOrder;return x.createElement(x.Fragment,null,x.createElement(tl,{outerElementRef:this.tree,className:ul,height:t-20,width:s-20,itemCount:n.length,itemSize:23,itemData:{pathsToRender:n,recordIds:i},itemKey:e=>n[e],itemRenderer:jl,onLoad:this.handleLoadMore}),x.createElement(si,{keys:"up",target:this.tree,onMatch:e=>{a.move(1,"up"),this.scrollIntoView()}}),x.createElement(si,{keys:"down",target:this.tree,onMatch:e=>{a.move(1,"down"),this.scrollIntoView()}}),x.createElement(si,{keys:"left",target:this.tree,onMatch:e=>{a.isExpanded(a.activePath)?a.collapse():a.jumpToParent(),this.scrollIntoView()}}),x.createElement(si,{keys:"right",target:this.tree,onMatch:e=>{a.expand(),this.scrollIntoView()}}),x.createElement(si,{keys:"space",target:this.tree,onMatch:e=>{a.expand(),this.scrollIntoView()}}))}}var Bl=_(pl(Fl));var Hl="_container_ks368_1";class Zl extends x.PureComponent{constructor(){super(...arguments),this.table=x.createRef(),this.tree=x.createRef()}scrollIntoView(){this.table.current.scrollIntoView()}focus(){var e,t;const{session:s}=this.context;"table"===s.script.viewMode&&(null==(e=this.table.current)||e.focus()),"tree"===s.script.viewMode&&(null==(t=this.tree.current)||t.focus())}refresh(){var e,t;const{session:s}=this.context;"table"===s.script.viewMode&&(null==(e=this.table.current)||e.refresh()),"tree"===s.script.viewMode&&(null==(t=this.tree.current)||t.refresh())}selectRows(e){var t;const{session:s}=this.context;"table"===s.script.viewMode&&(null==(t=this.table.current)||t.selectRows(e))}deleteSelectedRows(){var e;const{session:t}=this.context;"table"===t.script.viewMode&&(null==(e=this.table.current)||e.deleteSelectedRows())}render(){const{sessionId:e,session:t}=this.context,{className:s,width:i,height:a}=this.props;return x.createElement("div",{className:S(Hl,s),"data-testid":"results"},"tree"===t.script.viewMode&&x.createElement(Bl,{ref:this.tree,key:e,width:i,height:a,recordIds:t.script.recordIds}),"table"===t.script.viewMode&&x.createElement(Qr,{ref:this.table,width:i,height:a}))}}var ql=_(pl(Zl));function Ul(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fill:"currentColor",d:"M8.53033 1.46948C7.62352 0.563232 6.37899 0.000732422 4.99687 0.000732422C2.23265 0.000732422 0 2.23823 0 5.00073C0 7.76323 2.23265 10.0007 4.99687 10.0007C7.32958 10.0007 9.27455 8.40698 9.83115 6.25073H8.53033C8.01751 7.70698 6.62914 8.75073 4.99687 8.75073C2.92683 8.75073 1.24453 7.06948 1.24453 5.00073C1.24453 2.93198 2.92683 1.25073 4.99687 1.25073C6.03502 1.25073 6.9606 1.68198 7.63602 2.36323L5.62226 4.37573H10V0.000732422L8.53033 1.46948Z"}))}var zl={container:"_container_3cx2j_1",header:"_header_3cx2j_7",separator:"_separator_3cx2j_15",refreshBtn:"_refreshBtn_3cx2j_22",spin:"_spin_3cx2j_50",pendingActions:"_pendingActions_3cx2j_57"};function $l(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),N.exports.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),N.exports.createElement("path",{d:"M12 17H12.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}var Jl="_container_q775b_1",Wl="_header_q775b_12",Kl="_error_q775b_22",Gl="_closeButton_q775b_34",Ql="_footer_q775b_40";class Yl extends x.Component{componentDidMount(){document.getElementById("dialog-root").style.pointerEvents="initial"}componentWillUnmount(){document.getElementById("dialog-root").style.pointerEvents="none"}render(){const{dataTestId:e,className:t,error:s,title:i,primaryButton:a,secondaryButton:n,children:r,onClose:l}=this.props;return x.createElement(Oi,{"data-testid":null!=e?e:"dialog",className:S(Jl,t),domElementId:"dialog-root",darken:!0,onClickOutside:l},x.createElement(x.Fragment,null,i&&x.createElement("div",{className:S(Wl,{[Kl]:s})},s&&x.createElement($l,null),i),r,(a||n)&&x.createElement("div",{className:Ql},a,n),l&&x.createElement(ti,{className:Gl,onClick:l},x.createElement(ni,null))))}}var Xl=_(Yl);var eo="_container_sfoat_1",to="_content_sfoat_10";class so extends x.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleDelete=()=>{this.props.onDeleteRecord(),this.handleCommit(),this.props.onClose()},this.handleCommit=async()=>{const{onSuccess:e,onFailure:t}=this.props;try{await xs.commit(),null==e||e()}catch(s){null==t||t()}os.send({command:"action_commit",commandDetails:{pending_action_count:xs.actions.length}})}}render(){return x.createElement(x.Fragment,null,x.createElement(Xl,{error:!0,title:"Confirm record deletion",className:eo,onClose:this.handleClose,primaryButton:x.createElement(Qs,{red:!0,dataTestId:"delete-record-btn-confirm",onClick:this.handleDelete},"Delete")},x.createElement("p",{className:to},"You are about to delete the selected record permanently from the dataset.")),x.createElement(si,{keys:"esc",onMatch:this.handleClose}))}}var io=_(so);class ao extends x.PureComponent{constructor(){super(...arguments),this.results=x.createRef(),this.state={isDeletePromptOpen:!1},this.handleCreateRecord=()=>{var e,t;null==(t=null==(e=Tt.activeTab)?void 0:e.session)||t.createUncommittedRecord(),os.send({command:"record_create",commandDetails:{}})},this.handleOpenDeletePrompt=()=>{this.setState({isDeletePromptOpen:!0})},this.handleDeleteRecords=()=>{this.results.current.deleteSelectedRows(),this.results.current.selectRows([]),this.results.current.focus()},this.handleSuccess=()=>{this.results.current.selectRows([]),this.results.current.focus(),this.results.current.refresh()}}render(){var e;const{isDeletePromptOpen:t}=this.state,s=null==(e=Tt.activeTab)?void 0:e.session;if(!s||!(null==s?void 0:s.isScript))return null;const i="tree"===s.script.viewMode||s.script.model.hasScalarListTwoWayMNRelation;return x.createElement("div",{className:zl.container,"data-testid":"databrowser"},x.createElement("div",{className:zl.header},x.createElement(Qs,{dataTestId:"refresh-btn",className:S(zl.refreshBtn,{[zl.spin]:s.script.running}),disabled:s.script.running,onClick:()=>s.script.run()},x.createElement(Ul,null)),x.createElement(Gi,null),x.createElement(zi,null),x.createElement(Wi,null),x.createElement("div",{className:zl.separator}),!V.readonly&&x.createElement(Qs,{"data-testid":"create-record-btn",onClick:this.handleCreateRecord,disabled:i},"Add record"),s.selection.table.selectedRecordIds.length>0&&x.createElement(x.Fragment,null,x.createElement(Qs,{"data-testid":"delete-record-btn",red:!0,onClick:()=>this.handleOpenDeletePrompt(),disabled:s.script.model.hasScalarListTwoWayMNRelation},x.createElement(x.Fragment,null,"Delete ",s.selection.table.selectedRecordIds.length," ","record",s.selection.table.selectedRecordIds.length>1?"s":"")),t&&x.createElement(io,{onClose:()=>this.setState({isDeletePromptOpen:!1}),onDeleteRecord:this.handleDeleteRecords,onSuccess:this.handleSuccess})),x.createElement(Xi,{className:zl.pendingActions,onSuccess:this.handleSuccess})),x.createElement(ql,{ref:this.results,className:zl.results,width:window.innerWidth,height:window.innerHeight-36-44}))}}var no=_(ao);var ro={container:"_container_1pcqt_1",content:"_content_1pcqt_10",description:"_description_1pcqt_20",reportBtn:"_reportBtn_1pcqt_25",detailsBtn:"_detailsBtn_1pcqt_36",open:"_open_1pcqt_49",dump:"_dump_1pcqt_52"};class lo extends x.PureComponent{constructor(){super(...arguments),this.state={isDetailsOpen:!1},this.handleToggleDetails=()=>{this.setState((e=>({isDetailsOpen:!e.isDetailsOpen})))},this.handleDismiss=()=>{ye.updateError({visible:!1})}}render(){const{isDetailsOpen:e}=this.state;return x.createElement(Xl,{dataTestId:"client-error-dialog",className:ro.container,error:!0,title:"Prisma Client Error",primaryButton:x.createElement(Qs,{dataTestId:"dismiss-btn",className:ro.action,onClick:this.handleDismiss},"Dismiss"),secondaryButton:x.createElement("a",{"data-testid":"error-docs-btn",href:"https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/error-reference#query-engine",target:"_blank",rel:"noreferrer noopener"},"Error Documentation")},x.createElement("div",{className:ro.content,"data-testid":"client-error"},x.createElement("p",{className:ro.description},us.description),x.createElement(Qs,{ghost:!0,className:S(ro.detailsBtn,{[ro.open]:e}),onClick:this.handleToggleDetails},x.createElement(x.Fragment,null,x.createElement(zr,null),e?"Hide":"Show"," details")),e&&x.createElement("pre",{className:ro.dump},us.dump)))}}var oo=_(lo);class co extends x.PureComponent{constructor(){super(...arguments),this.state={isDetailsOpen:!1,isSendingReport:!1,didFailErrorReport:!1,errorReportId:null,previousError:ye.previousError},this.handleToggleDetails=()=>{this.setState((e=>({isDetailsOpen:!e.isDetailsOpen})))},this.handleDiscard=()=>{xs.discard(),setTimeout((()=>{window.transport.request({channel:"project",action:"close",payload:{data:null}}),window.location.reload()}),500)},this.handleRestart=()=>{ye.setPreviousError({type:us.type}),window.location.reload()},this.handleHardRestart=()=>{window.indexedDB.deleteDatabase("Prisma Studio"),ye.setPreviousError({type:null}),window.location.reload()}}render(){const{isDetailsOpen:e}=this.state,t=window.location.origin.includes("localhost")?"https://github.com/prisma/studio/issues/new?template=prisma-cli-studio-bug-report.yml":"https://github.com/prisma/studio/issues/new?template=data-browser-bug-report.yml";return x.createElement(Xl,{"data-testid":"fatal-error-dialog",className:ro.container,error:!0,title:"Fatal Error",primaryButton:this.state.previousError.type?x.createElement(Qs,{dataTestId:"reopen-btn-hard",className:ro.action,onClick:this.handleHardRestart,red:!0},"Force reload Studio"):x.createElement(Qs,{dataTestId:"reopen-btn",className:ro.action,onClick:this.handleRestart},"Reload Studio"),secondaryButton:this.state.previousError.type?void 0:x.createElement(Qs,{dataTestId:"dismiss-btn",ghost:!0,className:S(ro.action,ro.discardBtn),onClick:this.handleDiscard},x.createElement(x.Fragment,null,"Discard all unsaved changes and close Studio"))},x.createElement("div",{className:ro.content},x.createElement("p",{className:ro.description},this.state.previousError.type?"A persistent non-recoverable error has occurred. Force reload to clear temporary data and reopen Studio.\n Consider reporting this error to us by opening an issue on GitHub and attaching the error details.":"A non-recoverable error has occurred. Reload Studio to continue.\n Consider reporting this error to us by opening an issue on GitHub\n and attaching the error details."),x.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:ro.reportBtn},"Report error in a new GitHub issue"),x.createElement(Qs,{ghost:!0,className:S(ro.detailsBtn,{[ro.open]:e}),onClick:this.handleToggleDetails},x.createElement(x.Fragment,null,x.createElement(zr,null),e?"Hide":"Show"," details")),e&&x.createElement("pre",{className:ro.dump},us.dump)))}}var ho=_(co);class po extends x.PureComponent{constructor(){super(...arguments),this.handleRestart=()=>{window.location.reload()}}render(){return x.createElement(Xl,{className:ro.container,error:!0,title:"Prisma Schema Changed",primaryButton:x.createElement(Qs,{className:ro.action,onClick:this.handleRestart},"Reload"),secondaryButton:x.createElement("a",{href:"https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/error-reference#query-engine",target:"_blank",rel:"noreferrer noopener"},"Error Documentation")},x.createElement("div",{className:ro.content},x.createElement("p",{className:ro.description},us.description)))}}var uo=_(po);var mo="_container_ud69p_1";class go extends x.Component{render(){const e=this.props,{children:t,className:s,style:i}=e,a=d(e,["children","className","style"]);return x.createElement("div",l({className:S(mo,s),style:i},a),t)}}var vo="_container_serom_1";var fo=_((({type:e})=>x.createElement("div",{"data-testid":"shortcuts-key",className:vo},e)));var yo="_container_o8wgd_1",Io="_content_o8wgd_17",Co="_section_o8wgd_22",wo="_sectionName_o8wgd_28",bo="_row_o8wgd_34",Eo="_name_o8wgd_39",_o="_keys_o8wgd_43",xo="_separator_o8wgd_49";class So extends x.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()}}render(){const e={sections:[{name:"Results Table",shortcuts:[{name:"Move cell selection",mac:["←","→","↑","↓"],windowsAndLinux:["←","→","↑","↓"]},{name:"Move horizontally",mac:["tab","shift+tab"],windowsAndLinux:["tab","shift+tab"]},{name:"Move vertically",mac:["enter","shift+enter"],windowsAndLinux:["enter","shift+enter"]},{name:"Edit selected cell",mac:["enter"],windowsAndLinux:["enter"]},{name:"Jump to last cell in row",mac:["⌘+→"],windowsAndLinux:["ctrl+→"]},{name:"Jump to first cell in row",mac:["⌘+←"],windowsAndLinux:["ctrl+←"]},{name:"Copy focused cell OR selected rows to clipboard",mac:["⌘+c"],windowsAndLinux:["ctrl+c"]},{name:"Delete selected rows",mac:["⌫"],windowsAndLinux:["del"]},{name:"Commit unsaved changes to Database",mac:["⌘+s"],windowsAndLinux:["ctrl+s"]}]},{name:"Global",shortcuts:[{name:"Show this cheatsheet",mac:["⌘+/"],windowsAndLinux:["ctrl+/"]}]}].filter((e=>!!e))},t=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"mac":"windowsAndLinux";return x.createElement(x.Fragment,null,x.createElement(Xl,{className:yo,title:"Shortcuts",onClose:this.handleClose},x.createElement("div",{className:Io},e.sections.map((e=>x.createElement(go,{key:e.name,className:Co},x.createElement(x.Fragment,null,x.createElement("div",{className:wo},e.name),e.shortcuts.map((e=>x.createElement("div",{key:e.name,className:bo},x.createElement("div",{className:Eo},e.name),x.createElement("div",{className:_o},e[t].map(((e,t)=>x.createElement(x.Fragment,{key:t},t>0&&x.createElement("span",{className:xo},"/"),e.split("+").map((e=>x.createElement(fo,{key:e,type:e})))))))))))))))),x.createElement(si,{keys:"esc",onMatch:this.handleClose}))}}var No=_(So);var Lo={container:"_container_1z063_1",content:"_content_1z063_10",description:"_description_1z063_17"};class Ro extends x.Component{handleInstall(){js.install()}render(){const{onClose:e}=this.props;return x.createElement(Xl,{className:Lo.container,title:"Updates ready",primaryButton:x.createElement(Qs,{green:!0,disabled:js.isInstalling,onClick:this.handleInstall},"Install and restart"),secondaryButton:x.createElement(Qs,{ghost:!0,className:Lo.laterBtn,onClick:e},"Install Later")},x.createElement("div",{className:Lo.content},x.createElement("p",{className:Lo.description},"New updates have been downloaded and are ready to be installed. Doing this will restart Studio.",x.createElement("br",null),x.createElement("br",null),"Your current session will be saved and restored after the installation.")))}}var Mo=_(Ro);function Oo(e){return N.exports.createElement("svg",Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),N.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.286 15.9606C19.2271 15.6362 19.2669 15.3017 19.4 15C19.5267 14.7042 19.7373 14.452 20.0055 14.2743C20.2738 14.0966 20.5882 14.0013 20.91 13.9999H21.0001C21.5304 13.9999 22.0391 13.7893 22.4142 13.4142C22.7893 13.0391 23 12.5305 23 12C23 11.4695 22.7893 10.9609 22.4142 10.5858C22.0391 10.2107 21.5304 10.0001 21.0001 10.0001H20.83C20.5082 9.9987 20.1938 9.90341 19.9255 9.72576C19.6572 9.54797 19.4467 9.29579 19.32 9V8.92001C19.1869 8.61839 19.1471 8.28381 19.206 7.95942C19.2648 7.63503 19.4195 7.33569 19.65 7.1L19.71 7.04001C19.8959 6.85426 20.0435 6.63368 20.1441 6.39088C20.2448 6.14809 20.2966 5.88784 20.2966 5.62501C20.2966 5.36218 20.2448 5.10192 20.1441 4.85912C20.0435 4.61632 19.8959 4.39574 19.71 4.21001C19.5243 4.02405 19.3037 3.87653 19.0609 3.77588C18.8181 3.67523 18.5578 3.62343 18.295 3.62343C18.0321 3.62343 17.772 3.67523 17.5292 3.77588C17.2863 3.87653 17.0658 4.02405 16.88 4.21001L16.8201 4.27C16.5844 4.50055 16.285 4.65519 15.9605 4.714C15.6362 4.77282 15.3017 4.73311 15 4.6C14.7042 4.47324 14.452 4.26275 14.2743 3.99446C14.0966 3.72617 14.0013 3.41179 13.9999 3.09V3.00001C13.9999 2.46957 13.7893 1.96086 13.4142 1.58579C13.0391 1.21072 12.5305 1 12 1C11.4695 1 10.9609 1.21072 10.5858 1.58579C10.2107 1.96086 10.0001 2.46957 10.0001 3.00001V3.17C9.99869 3.49179 9.9034 3.80617 9.72575 4.07446C9.54796 4.34275 9.29579 4.55324 9 4.68H8.92C8.61838 4.81311 8.2838 4.85282 7.95941 4.79401C7.63502 4.73519 7.33568 4.58054 7.1 4.35L7.04 4.29001C6.85425 4.10405 6.63368 3.95653 6.39088 3.85588C6.14808 3.75524 5.88784 3.70343 5.625 3.70343C5.36217 3.70343 5.10191 3.75524 4.85912 3.85588C4.61632 3.95653 4.39574 4.10405 4.21001 4.29001C4.02405 4.47576 3.87653 4.69633 3.77588 4.93912C3.67523 5.18191 3.62343 5.44218 3.62343 5.70501C3.62343 5.96784 3.67523 6.22808 3.77588 6.47088C3.87653 6.71368 4.02405 6.93426 4.21001 7.12001L4.27 7.18001C4.50054 7.41569 4.65519 7.71502 4.714 8.03941C4.77282 8.36382 4.73311 8.69838 4.6 9C4.48572 9.31078 4.2806 9.57987 4.01131 9.77251C3.74201 9.96515 3.42099 10.0723 3.09 10.08H3.00001C2.46957 10.08 1.96086 10.2907 1.58579 10.6658C1.21072 11.0408 1 11.5496 1 12.08C1 12.6105 1.21072 13.1191 1.58579 13.4942C1.96086 13.8693 2.46957 14.08 3.00001 14.08H3.17C3.49179 14.0813 3.80617 14.1766 4.07446 14.3543C4.34275 14.5319 4.55323 14.7842 4.68 15.08C4.81311 15.3817 4.85282 15.7162 4.79401 16.0406C4.73519 16.365 4.58054 16.6643 4.34999 16.9L4.29 16.9601C4.10405 17.1458 3.95653 17.3664 3.85588 17.6092C3.75524 17.8519 3.70343 18.1122 3.70343 18.3751C3.70343 18.6378 3.75524 18.8981 3.85588 19.1409C3.95653 19.3836 4.10405 19.6043 4.29 19.7901C4.47575 19.976 4.69633 20.1235 4.93911 20.2242C5.18191 20.3248 5.44217 20.3767 5.705 20.3767C5.96783 20.3767 6.22808 20.3248 6.47088 20.2242C6.71368 20.1235 6.93425 19.976 7.12 19.7901L7.18001 19.73C7.41568 19.4995 7.71502 19.3449 8.03941 19.286C8.36381 19.2272 8.69838 19.2669 9 19.4C9.31077 19.5143 9.57986 19.7194 9.7725 19.9888C9.96514 20.258 10.0722 20.5791 10.0799 20.91V21.0001C10.0799 21.5304 10.2907 22.0392 10.6658 22.4143C11.0408 22.7894 11.5496 23 12.08 23C12.6105 23 13.1191 22.7894 13.4942 22.4143C13.8693 22.0392 14.08 21.5304 14.08 21.0001V20.83C14.0813 20.5082 14.1766 20.1938 14.3543 19.9255C14.5319 19.6573 14.7842 19.4467 15.08 19.32C15.3817 19.1869 15.7162 19.1471 16.0406 19.206C16.3649 19.2648 16.6643 19.4195 16.8999 19.65L16.96 19.7101C17.1458 19.896 17.3663 20.0435 17.6092 20.1441C17.8519 20.2448 18.1122 20.2966 18.375 20.2966C18.6378 20.2966 18.8981 20.2448 19.1409 20.1441C19.3836 20.0435 19.6043 19.896 19.7901 19.7101C19.976 19.5243 20.1235 19.3037 20.2241 19.0609C20.3248 18.8181 20.3766 18.5578 20.3766 18.295C20.3766 18.0321 20.3248 17.772 20.2241 17.5292C20.1235 17.2863 19.976 17.0658 19.7901 16.88L19.73 16.8201C19.4995 16.5844 19.3448 16.2851 19.286 15.9606ZM14.75 12C14.75 13.5188 13.5188 14.75 12 14.75C10.4812 14.75 9.25 13.5188 9.25 12C9.25 10.4812 10.4812 9.25 12 9.25C13.5188 9.25 14.75 10.4812 14.75 12Z",fill:"currentColor"}),N.exports.createElement("path",{d:"M19.4 15L19.8575 15.2018L19.8595 15.197L19.4 15ZM19.286 15.9606L19.778 15.8713L19.778 15.8713L19.286 15.9606ZM20.0055 14.2743L19.7295 13.8574L19.7293 13.8575L20.0055 14.2743ZM20.91 13.9999L20.91 13.4999L20.9079 13.5L20.91 13.9999ZM22.4142 13.4142L22.7678 13.7678L22.7678 13.7678L22.4142 13.4142ZM22.4142 10.5858L22.7678 10.2323L22.7678 10.2323L22.4142 10.5858ZM20.83 10.0001L20.8278 10.5001H20.83V10.0001ZM19.9255 9.72576L19.6493 10.1425L19.6494 10.1426L19.9255 9.72576ZM19.32 9H18.82V9.10264L18.8604 9.19698L19.32 9ZM19.32 8.92001H19.82V8.81459L19.7774 8.71815L19.32 8.92001ZM19.206 7.95942L19.6979 8.04867L19.6979 8.04867L19.206 7.95942ZM19.65 7.1L19.2967 6.74614L19.2924 6.75044L19.65 7.1ZM19.71 7.04001L20.0633 7.39384L20.0634 7.39371L19.71 7.04001ZM20.1441 6.39088L19.6822 6.19941L19.6822 6.19942L20.1441 6.39088ZM20.1441 4.85912L19.6822 5.05059L19.6822 5.05059L20.1441 4.85912ZM19.71 4.21001L19.3563 4.56338L19.3566 4.56372L19.71 4.21001ZM19.0609 3.77588L19.2524 3.31399L19.2524 3.31399L19.0609 3.77588ZM16.88 4.21001L17.2337 4.56344L17.2337 4.56338L16.88 4.21001ZM16.8201 4.27L17.1697 4.62745L17.1737 4.62343L16.8201 4.27ZM15.9605 4.714L15.8714 4.22202L15.8713 4.22203L15.9605 4.714ZM15 4.6L15.2018 4.14253L15.1969 4.14043L15 4.6ZM14.2743 3.99446L13.8574 4.27051L13.8575 4.27066L14.2743 3.99446ZM13.9999 3.09L13.4999 3.09L13.4999 3.09214L13.9999 3.09ZM13.4142 1.58579L13.0606 1.93936L13.0606 1.93936L13.4142 1.58579ZM10.5858 1.58579L10.9394 1.93936L10.9394 1.93936L10.5858 1.58579ZM10.0001 3.17L10.5001 3.17214V3.17H10.0001ZM9.72575 4.07446L10.1425 4.35066L10.1426 4.35051L9.72575 4.07446ZM9 4.68V5.18H9.10262L9.19695 5.13957L9 4.68ZM8.92 4.68V4.18H8.81457L8.71812 4.22257L8.92 4.68ZM7.95941 4.79401L7.8702 5.28599L7.87022 5.28599L7.95941 4.79401ZM7.1 4.35L6.74642 4.70358L6.75036 4.70743L7.1 4.35ZM7.04 4.29001L6.68625 4.64336L6.68645 4.64356L7.04 4.29001ZM6.39088 3.85588L6.58235 3.39399L6.58233 3.39398L6.39088 3.85588ZM4.85912 3.85588L4.66767 3.39398L4.66764 3.39399L4.85912 3.85588ZM4.21001 4.29001L4.56336 4.64376L4.56377 4.64335L4.21001 4.29001ZM3.77588 4.93912L3.314 4.74764L3.31399 4.74765L3.77588 4.93912ZM3.77588 6.47088L4.23776 6.27941L4.23776 6.27941L3.77588 6.47088ZM4.21001 7.12001L4.5636 6.76649L4.56336 6.76626L4.21001 7.12001ZM4.27 7.18001L4.62744 6.83035L4.62359 6.8265L4.27 7.18001ZM4.714 8.03941L4.22202 8.12861L4.22202 8.12862L4.714 8.03941ZM4.6 9L4.14256 8.79813L4.13618 8.8126L4.13072 8.82745L4.6 9ZM3.09 10.08L3.09 10.5801L3.10163 10.5798L3.09 10.08ZM1.58579 10.6658L1.93929 11.0195L1.93936 11.0194L1.58579 10.6658ZM1.58579 13.4942L1.93936 13.1407L1.93936 13.1407L1.58579 13.4942ZM3.17 14.08L3.17213 13.58H3.17V14.08ZM4.07446 14.3543L3.79841 14.7712L3.79841 14.7712L4.07446 14.3543ZM4.68 15.08L4.2204 15.277L4.22255 15.2819L4.68 15.08ZM4.79401 16.0406L5.28599 16.1298L5.28599 16.1298L4.79401 16.0406ZM4.34999 16.9L4.70385 17.2532L4.70742 17.2496L4.34999 16.9ZM4.29 16.9601L4.64337 17.3138L4.64384 17.3133L4.29 16.9601ZM3.85588 17.6092L4.31774 17.8007L4.31777 17.8006L3.85588 17.6092ZM3.85588 19.1409L3.39397 19.3324L3.39402 19.3325L3.85588 19.1409ZM4.29 19.7901L4.6437 19.4367L4.64337 19.4363L4.29 19.7901ZM4.93911 20.2242L4.74763 20.686L4.74764 20.6861L4.93911 20.2242ZM6.47088 20.2242L6.27941 19.7623L6.2794 19.7623L6.47088 20.2242ZM7.12 19.7901L7.4737 20.1435L7.4738 20.1434L7.12 19.7901ZM7.18001 19.73L6.83041 19.3725L6.82621 19.3767L7.18001 19.73ZM8.03941 19.286L7.95016 18.794L7.95016 18.794L8.03941 19.286ZM9 19.4L8.79814 19.8574L8.81261 19.8638L8.82746 19.8693L9 19.4ZM9.7725 19.9888L9.3658 20.2796L9.36587 20.2797L9.7725 19.9888ZM10.0799 20.91L10.5801 20.91L10.5798 20.8984L10.0799 20.91ZM10.6658 22.4143L11.0195 22.0608L11.0194 22.0607L10.6658 22.4143ZM13.4942 22.4143L13.8478 22.7678L13.8478 22.7678L13.4942 22.4143ZM14.08 20.83L13.58 20.8279V20.83H14.08ZM14.3543 19.9255L13.9374 19.6494L13.9374 19.6495L14.3543 19.9255ZM15.08 19.32L15.277 19.7796L15.2818 19.7774L15.08 19.32ZM16.0406 19.206L15.9513 19.6979L15.9513 19.6979L16.0406 19.206ZM16.8999 19.65L17.2535 19.2964L17.2495 19.2925L16.8999 19.65ZM16.96 19.7101L17.3137 19.3566L17.3136 19.3565L16.96 19.7101ZM17.6092 20.1441L17.8007 19.6823L17.8006 19.6822L17.6092 20.1441ZM19.1409 20.1441L19.3324 20.606L19.3325 20.606L19.1409 20.1441ZM19.7901 19.7101L19.4366 19.3564L19.4364 19.3566L19.7901 19.7101ZM20.2241 19.0609L20.686 19.2524L20.686 19.2524L20.2241 19.0609ZM20.2241 17.5292L20.686 17.3377L20.686 17.3377L20.2241 17.5292ZM19.7901 16.88L20.1435 16.5263L20.1432 16.5261L19.7901 16.88ZM19.73 16.8201L19.3725 17.1697L19.3768 17.174L19.73 16.8201ZM18.9425 14.7982C18.7691 15.1912 18.7173 15.6271 18.794 16.0498L19.778 15.8713C19.737 15.6453 19.7646 15.4122 19.8574 15.2018L18.9425 14.7982ZM19.7293 13.8575C19.3799 14.089 19.1056 14.4175 18.9404 14.803L19.8595 15.197C19.9479 14.9909 20.0946 14.8151 20.2817 14.691L19.7293 13.8575ZM20.9079 13.5C20.4888 13.5017 20.0791 13.6258 19.7295 13.8574L20.2816 14.6911C20.4685 14.5674 20.6877 14.5009 20.9121 14.4999L20.9079 13.5ZM21.0001 13.4999H20.91V14.4999H21.0001V13.4999ZM22.0607 13.0606C21.7794 13.342 21.3978 13.4999 21.0001 13.4999V14.4999C21.663 14.4999 22.2989 14.2366 22.7678 13.7678L22.0607 13.0606ZM22.5 12C22.5 12.3979 22.342 12.7793 22.0607 13.0606L22.7678 13.7678C23.2367 13.2989 23.5 12.6631 23.5 12H22.5ZM22.0607 10.9394C22.342 11.2207 22.5 11.6021 22.5 12H23.5C23.5 11.3369 23.2367 10.7011 22.7678 10.2323L22.0607 10.9394ZM21.0001 10.5001C21.3978 10.5001 21.7794 10.6581 22.0607 10.9394L22.7678 10.2323C22.2989 9.76338 21.663 9.50007 21.0001 9.50007V10.5001ZM20.83 10.5001H21.0001V9.50007H20.83V10.5001ZM19.6494 10.1426C19.9991 10.3742 20.4088 10.4983 20.8278 10.5001L20.8321 9.50007C20.6077 9.49912 20.3885 9.43264 20.2016 9.30888L19.6494 10.1426ZM18.8604 9.19698C19.0256 9.58246 19.2999 9.91099 19.6493 10.1425L20.2017 9.30898C20.0146 9.18495 19.8678 9.00913 19.7795 8.80303L18.8604 9.19698ZM18.82 8.92001V9H19.82V8.92001H18.82ZM18.714 7.87016C18.6373 8.29292 18.6891 8.72889 18.8625 9.12187L19.7774 8.71815C19.6846 8.50788 19.6569 8.27469 19.6979 8.04867L18.714 7.87016ZM19.2924 6.75044C18.9922 7.05749 18.7907 7.44748 18.714 7.87017L19.6979 8.04867C19.7389 7.82258 19.8468 7.61389 20.0075 7.44956L19.2924 6.75044ZM19.3568 6.68618L19.2967 6.74617L20.0032 7.45383L20.0633 7.39384L19.3568 6.68618ZM19.6822 6.19942C19.6068 6.3815 19.4961 6.54696 19.3566 6.68631L20.0634 7.39371C20.2958 7.16156 20.4802 6.88587 20.606 6.58235L19.6822 6.19942ZM19.7966 5.62501C19.7966 5.82209 19.7577 6.01728 19.6822 6.19941L20.606 6.58236C20.7318 6.2789 20.7966 5.95359 20.7966 5.62501H19.7966ZM19.6822 5.05059C19.7577 5.23272 19.7966 5.42792 19.7966 5.62501H20.7966C20.7966 5.29643 20.7318 4.97111 20.606 4.66765L19.6822 5.05059ZM19.3566 4.56372C19.4961 4.70305 19.6068 4.86851 19.6822 5.05059L20.606 4.66765C20.4802 4.36414 20.2958 4.08844 20.0634 3.8563L19.3566 4.56372ZM18.8694 4.23777C19.0515 4.31325 19.2169 4.42388 19.3563 4.56338L20.0638 3.85664C19.8316 3.62422 19.5559 3.43981 19.2524 3.31399L18.8694 4.23777ZM18.295 4.12343C18.4921 4.12343 18.6873 4.16228 18.8694 4.23777L19.2524 3.31399C18.9488 3.18818 18.6235 3.12343 18.295 3.12343V4.12343ZM17.7206 4.23777C17.9027 4.16227 18.0978 4.12343 18.295 4.12343V3.12343C17.9664 3.12343 17.6412 3.18818 17.3377 3.31399L17.7206 4.23777ZM17.2337 4.56338C17.3731 4.42388 17.5385 4.31325 17.7206 4.23777L17.3377 3.31399C17.0341 3.43981 16.7585 3.62422 16.5263 3.85664L17.2337 4.56338ZM17.1737 4.62343L17.2337 4.56344L16.5263 3.85658L16.4664 3.91657L17.1737 4.62343ZM16.0497 5.20599C16.4725 5.12936 16.8626 4.92785 17.1697 4.62742L16.4704 3.91258C16.3062 4.07324 16.0976 4.18102 15.8714 4.22202L16.0497 5.20599ZM14.7981 5.05745C15.1912 5.23087 15.6271 5.28263 16.0498 5.20598L15.8713 4.22203C15.6453 4.26302 15.4121 4.23536 15.2018 4.14255L14.7981 5.05745ZM13.8575 4.27066C14.089 4.6201 14.4176 4.89437 14.803 5.05957L15.1969 4.14043C14.9909 4.05211 14.8151 3.90541 14.691 3.71827L13.8575 4.27066ZM13.4999 3.09214C13.5017 3.51128 13.6258 3.92088 13.8574 4.27051L14.6911 3.71842C14.5674 3.53147 14.5009 3.31231 14.4999 3.08787L13.4999 3.09214ZM13.4999 3.00001V3.09H14.4999V3.00001H13.4999ZM13.0606 1.93936C13.3419 2.22063 13.4999 2.60214 13.4999 3.00001H14.4999C14.4999 2.337 14.2366 1.7011 13.7677 1.23223L13.0606 1.93936ZM12 1.5C12.3978 1.5 12.7793 1.65802 13.0606 1.93936L13.7677 1.23223C13.2989 0.763416 12.6631 0.5 12 0.5V1.5ZM10.9394 1.93936C11.2207 1.65802 11.6022 1.5 12 1.5V0.5C11.3369 0.5 10.7011 0.763416 10.2323 1.23223L10.9394 1.93936ZM10.5001 3.00001C10.5001 2.60214 10.6581 2.22063 10.9394 1.93936L10.2323 1.23223C9.76337 1.7011 9.50006 2.337 9.50006 3.00001H10.5001ZM10.5001 3.17V3.00001H9.50006V3.17H10.5001ZM10.1426 4.35051C10.3742 4.00088 10.4983 3.59128 10.5001 3.17214L9.50007 3.16786C9.49911 3.39231 9.43265 3.61146 9.30886 3.79842L10.1426 4.35051ZM9.19695 5.13957C9.58244 4.97437 9.91098 4.7001 10.1425 4.35066L9.30896 3.79827C9.18494 3.98541 9.00914 4.1321 8.80305 4.22042L9.19695 5.13957ZM8.92 5.18H9V4.18H8.92V5.18ZM7.87022 5.28599C8.29291 5.36262 8.72887 5.31088 9.12188 5.13743L8.71812 4.22257C8.5079 4.31534 8.2747 4.34302 8.0486 4.30203L7.87022 5.28599ZM6.75036 4.70743C7.05747 5.00783 7.44751 5.20934 7.8702 5.28599L8.04862 4.30204C7.82253 4.26104 7.6139 4.15325 7.44963 3.99257L6.75036 4.70743ZM6.68645 4.64356L6.74645 4.70356L7.45354 3.99644L7.39355 3.93645L6.68645 4.64356ZM6.19941 4.31776C6.3815 4.39325 6.54694 4.50389 6.68625 4.64336L7.39375 3.93665C7.16157 3.70421 6.88585 3.51981 6.58235 3.39399L6.19941 4.31776ZM5.625 4.20343C5.82212 4.20343 6.01731 4.24229 6.19943 4.31777L6.58233 3.39398C6.27885 3.2682 5.95355 3.20343 5.625 3.20343V4.20343ZM5.05057 4.31777C5.23268 4.24229 5.42789 4.20343 5.625 4.20343V3.20343C5.29646 3.20343 4.97115 3.26819 4.66767 3.39398L5.05057 4.31777ZM4.56377 4.64335C4.70306 4.50389 4.86849 4.39325 5.05059 4.31776L4.66764 3.39399C4.36414 3.51981 4.08842 3.70421 3.85624 3.93666L4.56377 4.64335ZM4.23776 5.1306C4.31325 4.94851 4.42389 4.78307 4.56336 4.64376L3.85665 3.93626C3.62421 4.16844 3.43981 4.44415 3.314 4.74764L4.23776 5.1306ZM4.12343 5.70501C4.12343 5.50787 4.16228 5.31267 4.23776 5.13059L3.31399 4.74765C3.18817 5.05116 3.12343 5.37648 3.12343 5.70501H4.12343ZM4.23776 6.27941C4.16228 6.09732 4.12343 5.90214 4.12343 5.70501H3.12343C3.12343 6.03354 3.18817 6.35885 3.31399 6.66235L4.23776 6.27941ZM4.56336 6.76626C4.42389 6.62694 4.31325 6.4615 4.23776 6.27941L3.31399 6.66235C3.43981 6.96586 3.62421 7.24157 3.85665 7.47376L4.56336 6.76626ZM4.62359 6.8265L4.5636 6.76649L3.85641 7.47352L3.9164 7.53352L4.62359 6.8265ZM5.20598 7.95022C5.12935 7.52752 4.92783 7.13747 4.62742 6.83037L3.91258 7.52965C4.07325 7.69391 4.18103 7.90253 4.22202 8.12861L5.20598 7.95022ZM5.05743 9.20188C5.23088 8.80887 5.28262 8.37292 5.20598 7.95021L4.22202 8.12862C4.26302 8.35472 4.23534 8.5879 4.14256 8.79813L5.05743 9.20188ZM4.30221 10.1792C4.65304 9.9282 4.92035 9.57757 5.06928 9.17256L4.13072 8.82745C4.05109 9.04399 3.90816 9.23154 3.7204 9.36584L4.30221 10.1792ZM3.10163 10.5798C3.53294 10.5698 3.95127 10.4302 4.30221 10.1792L3.7204 9.36584C3.53275 9.50008 3.30904 9.57473 3.07837 9.58009L3.10163 10.5798ZM3.00001 10.58H3.09V9.57996H3.00001V10.58ZM1.93936 11.0194C2.22069 10.738 2.60223 10.58 3.00001 10.58V9.57996C2.33691 9.57996 1.70104 9.84346 1.23223 10.3123L1.93936 11.0194ZM1.5 12.08C1.5 11.6821 1.65806 11.3006 1.93929 11.0195L1.23229 10.3122C0.763381 10.781 0.5 11.417 0.5 12.08H1.5ZM1.93936 13.1407C1.65802 12.8593 1.5 12.4779 1.5 12.08H0.5C0.5 12.7431 0.763415 13.3789 1.23223 13.8478L1.93936 13.1407ZM3.00001 13.58C2.60214 13.58 2.22063 13.422 1.93936 13.1407L1.23222 13.8478C1.7011 14.3167 2.337 14.58 3.00001 14.58V13.58ZM3.17 13.58H3.00001V14.58H3.17V13.58ZM4.35051 13.9374C4.00088 13.7059 3.59127 13.5818 3.17213 13.58L3.16786 14.58C3.3923 14.5809 3.61146 14.6474 3.79841 14.7712L4.35051 13.9374ZM5.13956 14.883C4.97441 14.4977 4.70016 14.1689 4.35051 13.9374L3.79841 14.7712C3.98534 14.895 4.13206 15.0708 4.22043 15.277L5.13956 14.883ZM5.28599 16.1298C5.36262 15.7071 5.31087 15.2712 5.13744 14.8782L4.22255 15.2819C4.31535 15.4922 4.34301 15.7253 4.30203 15.9514L5.28599 16.1298ZM4.70742 17.2496C5.00783 16.9425 5.20934 16.5525 5.28599 16.1298L4.30203 15.9514C4.26104 16.1774 4.15325 16.3861 3.99257 16.5503L4.70742 17.2496ZM4.64384 17.3133L4.70383 17.2532L3.99616 16.5467L3.93616 16.6068L4.64384 17.3133ZM4.31777 17.8006C4.39324 17.6186 4.50388 17.4531 4.64337 17.3138L3.93663 16.6063C3.70422 16.8385 3.51981 17.1142 3.39398 17.4177L4.31777 17.8006ZM4.20343 18.3751C4.20343 18.1778 4.2423 17.9826 4.31774 17.8007L3.39401 17.4177C3.26818 17.7211 3.20343 18.0465 3.20343 18.3751H4.20343ZM4.31778 18.9495C4.24228 18.7673 4.20343 18.5721 4.20343 18.3751H3.20343C3.20343 18.7035 3.26819 19.0289 3.39397 19.3324L4.31778 18.9495ZM4.64337 19.4363C4.50394 19.2971 4.39325 19.1315 4.31773 18.9494L3.39402 19.3325C3.5198 19.6358 3.70416 19.9116 3.93663 20.1438L4.64337 19.4363ZM5.13059 19.7623C4.94852 19.6868 4.78305 19.5761 4.6437 19.4367L3.93631 20.1435C4.16845 20.3758 4.44414 20.5602 4.74763 20.686L5.13059 19.7623ZM5.705 19.8767C5.50792 19.8767 5.31272 19.8378 5.13059 19.7623L4.74764 20.6861C5.0511 20.8118 5.37642 20.8767 5.705 20.8767V19.8767ZM6.2794 19.7623C6.09727 19.8378 5.90208 19.8767 5.705 19.8767V20.8767C6.03359 20.8767 6.35889 20.8118 6.66235 20.6861L6.2794 19.7623ZM6.7663 19.4367C6.62695 19.5761 6.46149 19.6868 6.27941 19.7623L6.66235 20.6861C6.96586 20.5602 7.24155 20.3758 7.4737 20.1435L6.7663 19.4367ZM6.82621 19.3767L6.7662 19.4368L7.4738 20.1434L7.53381 20.0833L6.82621 19.3767ZM7.95016 18.794C7.52747 18.8707 7.13748 19.0723 6.83044 19.3725L7.52957 20.0875C7.69388 19.9268 7.90256 19.819 8.12866 19.778L7.95016 18.794ZM9.20186 18.9425C8.80888 18.7691 8.37292 18.7173 7.95016 18.794L8.12866 19.778C8.3547 19.737 8.58788 19.7646 8.79814 19.8574L9.20186 18.9425ZM10.1792 19.6979C9.92824 19.347 9.57759 19.0796 9.17254 18.9307L8.82746 19.8693C9.04396 19.9489 9.23149 20.0918 9.3658 20.2796L10.1792 19.6979ZM10.5798 20.8984C10.5698 20.4671 10.4302 20.0487 10.1791 19.6978L9.36587 20.2797C9.50006 20.4673 9.57472 20.691 9.58008 20.9216L10.5798 20.8984ZM10.5799 21.0001V20.91H9.57995V21.0001H10.5799ZM11.0194 22.0607C10.738 21.7793 10.5799 21.3978 10.5799 21.0001H9.57995C9.57995 21.6631 9.84346 22.299 10.3123 22.7678L11.0194 22.0607ZM12.08 22.5C11.6821 22.5 11.3006 22.342 11.0195 22.0608L10.3122 22.7678C10.781 23.2367 11.417 23.5 12.08 23.5V22.5ZM13.1407 22.0607C12.8593 22.342 12.4779 22.5 12.08 22.5V23.5C12.7431 23.5 13.3789 23.2367 13.8478 22.7678L13.1407 22.0607ZM13.58 21.0001C13.58 21.3978 13.422 21.7794 13.1407 22.0607L13.8478 22.7678C14.3167 22.2989 14.58 21.663 14.58 21.0001H13.58ZM13.58 20.83V21.0001H14.58V20.83H13.58ZM13.9374 19.6495C13.7059 19.9991 13.5818 20.4088 13.58 20.8279L14.58 20.8321C14.5809 20.6077 14.6474 20.3885 14.7712 20.2016L13.9374 19.6495ZM14.883 18.8604C14.4977 19.0256 14.1689 19.2999 13.9374 19.6494L14.7712 20.2016C14.8949 20.0146 15.0708 19.8679 15.277 19.7795L14.883 18.8604ZM16.1298 18.714C15.7071 18.6373 15.2712 18.6891 14.8782 18.8625L15.2818 19.7774C15.4922 19.6846 15.7253 19.6569 15.9513 19.6979L16.1298 18.714ZM17.2495 19.2925C16.9425 18.9922 16.5525 18.7907 16.1298 18.714L15.9513 19.6979C16.1774 19.739 16.3861 19.8468 16.5504 20.0075L17.2495 19.2925ZM17.3136 19.3565L17.2535 19.2964L16.5464 20.0035L16.6065 20.0636L17.3136 19.3565ZM17.8006 19.6822C17.6185 19.6068 17.4531 19.4961 17.3137 19.3566L16.6064 20.0635C16.8385 20.2958 17.1142 20.4802 17.4177 20.606L17.8006 19.6822ZM18.375 19.7966C18.1779 19.7966 17.9827 19.7577 17.8007 19.6823L17.4176 20.606C17.7211 20.7318 18.0464 20.7966 18.375 20.7966V19.7966ZM18.9495 19.6822C18.7673 19.7578 18.5721 19.7966 18.375 19.7966V20.7966C18.7036 20.7966 19.0289 20.7318 19.3324 20.606L18.9495 19.6822ZM19.4364 19.3566C19.2971 19.4961 19.1315 19.6068 18.9494 19.6823L19.3325 20.606C19.6358 20.4802 19.9115 20.2958 20.1437 20.0635L19.4364 19.3566ZM19.7623 18.8695C19.6868 19.0515 19.5761 19.217 19.4366 19.3564L20.1435 20.0637C20.3758 19.8316 20.5602 19.5559 20.686 19.2524L19.7623 18.8695ZM19.8766 18.295C19.8766 18.492 19.8378 18.6873 19.7623 18.8695L20.686 19.2524C20.8118 18.9489 20.8766 18.6236 20.8766 18.295H19.8766ZM19.7623 17.7206C19.8378 17.9028 19.8766 18.0979 19.8766 18.295H20.8766C20.8766 17.9664 20.8118 17.6412 20.686 17.3377L19.7623 17.7206ZM19.4366 17.2337C19.5761 17.3731 19.6868 17.5385 19.7623 17.7206L20.686 17.3377C20.5602 17.0341 20.3758 16.7585 20.1435 16.5263L19.4366 17.2337ZM19.3768 17.174L19.4369 17.234L20.1432 16.5261L20.0831 16.4661L19.3768 17.174ZM18.794 16.0498C18.8707 16.4726 19.0722 16.8626 19.3725 17.1696L20.0875 16.4705C19.9268 16.3062 19.819 16.0975 19.778 15.8713L18.794 16.0498ZM12 15.25C13.795 15.25 15.25 13.795 15.25 12H14.25C14.25 13.2427 13.2427 14.25 12 14.25V15.25ZM8.75 12C8.75 13.795 10.205 15.25 12 15.25V14.25C10.7573 14.25 9.75 13.2427 9.75 12H8.75ZM12 8.75C10.205 8.75 8.75 10.205 8.75 12H9.75C9.75 10.7573 10.7573 9.75 12 9.75V8.75ZM15.25 12C15.25 10.205 13.795 8.75 12 8.75V9.75C13.2427 9.75 14.25 10.7573 14.25 12H15.25Z",fill:"currentColor"}))}var ko="_button_1t4fm_7",Ao="_dot_1t4fm_14",Do="_menu_1t4fm_26",To="_menuItem_1t4fm_31",Po="_highlight_1t4fm_41";class Vo extends x.Component{constructor(){super(...arguments),this.button=x.createRef(),this.state={isOpen:!1,isUpdateReadyDialogOpen:!1,isShortcutDialogOpen:!1},this.handleToggle=()=>{this.setState((e=>({isOpen:!e.isOpen})))},this.handleClose=()=>{this.setState({isOpen:!1})},this.handleSwitchTheme=()=>{Bt.apply("light"===Bt.theme?"dark":"light"),this.handleClose()},this.handleUpdateCheck=async()=>{this.handleClose(),await js.check()},this.handleUpdateDownload=async()=>{this.handleClose(),await js.download()},this.handleUpdateInstall=()=>{this.setState({isUpdateReadyDialogOpen:!0}),this.handleClose()},this.handleViewShortcuts=()=>{this.setState({isOpen:!1,isShortcutDialogOpen:!0})}}componentDidMount(){let e=v((()=>js.isUpdateReady)).observe((({newValue:t})=>{t&&(e(),this.setState({isUpdateReadyDialogOpen:!0}))}))}render(){const{isOpen:e,isUpdateReadyDialogOpen:t,isShortcutDialogOpen:s}=this.state;return x.createElement(x.Fragment,null,x.createElement(Qs,{innerRef:this.button,className:S(ko,{[Ao]:!js.isUpToDate||js.isUpdateReady}),ghost:!0,onClick:this.handleToggle,"data-testid":"settings-dialog"},x.createElement(Oo,null)),e&&x.createElement(Ai,{target:this.button,onClickOutside:this.handleClose},x.createElement("ul",{className:Do},x.createElement("li",{className:To,onClick:this.handleSwitchTheme},"light"===Bt.theme?"Dark theme":"Light theme"),js.hasCheckedForUpdates&&!js.isUpToDate&&!js.isDownloading&&!js.isUpdateReady&&x.createElement("li",{className:S(To,{[Po]:!0}),onClick:this.handleUpdateDownload},"Download v",js.latestVersion),js.isDownloading&&x.createElement("li",{className:S(To,{[Po]:!0}),onClick:this.handleUpdateDownload},"Downloading v",js.latestVersion),js.isUpdateReady&&x.createElement("li",{className:S(To,{[Po]:!0}),onClick:this.handleUpdateInstall},"Install v",js.latestVersion),V.updates&&x.createElement("li",{className:To,onClick:this.handleUpdateCheck},"Check for updates"),x.createElement("li",{className:To},x.createElement("a",{href:"https://github.com/prisma/studio/releases",target:"_blank",rel:"noreferrer noopener"},"View changelog")),x.createElement("li",{className:To,onClick:this.handleViewShortcuts,"data-testid":"view-shortcuts"},"View shortcuts"))),t&&x.createElement(Mo,{onClose:()=>this.setState({isUpdateReadyDialogOpen:!1})}),s&&x.createElement(No,{onClose:()=>this.setState({isShortcutDialogOpen:!1})}))}}var jo=_(Vo);var Fo={container:"_container_18ph6_1",title:"_title_18ph6_11",active:"_active_18ph6_14",preview:"_preview_18ph6_23",modelListTabButton:"_modelListTabButton_18ph6_27",closeButton:"_closeButton_18ph6_50",dirtyIndicator:"_dirtyIndicator_18ph6_59"};var Bo={container:"_container_os6jn_1",content:"_content_os6jn_10",description:"_description_os6jn_19"};class Ho extends x.Component{render(){const{onCancel:e,onDiscard:t,tabHasFilters:s,tabIsDirty:i}=this.props,a=(s&&i?"Unsaved changes on a filtered view":s&&"Filtered view")||i&&"Unsaved changes",n=(s&&i?"This tab has unsaved changes and filters applied. Do you still want to close it?":s&&"This tab has filters applied. Do you still want to close it?")||i&&"This tab contains unsaved changes. Do you want to discard them?",r=(s&&i?"Discard changes":s&&"Close filtered view")||i&&"Discard changes";return x.createElement(Xl,{dataTestId:"tab-discard-dialog",className:Bo.container,title:a,primaryButton:x.createElement(Qs,{"data-testid":"discard-btn",red:!0,onClick:t},r),secondaryButton:x.createElement(Qs,{"data-testid":"cancel-btn",ghost:!0,className:Bo.cancelBtn,onClick:e},"Cancel")},x.createElement("div",{className:Bo.content},x.createElement("p",{className:Bo.description},n)))}}var Zo=_(Ho);class qo extends x.PureComponent{constructor(e){super(e),this.container=x.createRef(),this.handleClick=()=>{Tt.switch({id:this.props.id})},this.handleDoubleClick=()=>{const e=Tt.get(this.props.id);e&&e.preview&&e.update({preview:!1})},this.handleClose=e=>{e&&e.stopPropagation(),e&&e.preventDefault();const t=Tt.get(this.props.id);t&&(t.isDirty||t.hasFilters?this.setState({isCloseDialogOpen:!0}):(Tt.remove(this.props.id),this.setState({isCloseDialogOpen:!1})))},this.handleDiscardChanges=()=>{Tt.remove(this.props.id),this.setState({isCloseDialogOpen:!1})},this.handleCancelClose=()=>{this.setState({isCloseDialogOpen:!1})},this.state={isCloseDialogOpen:!1},this.reaction=v((()=>Tt.activeTabId)).observe((({newValue:t})=>{var s;t===e.id&&(null==(s=this.container.current)||s.scrollIntoView())}))}componentWillUnmount(){this.reaction()}render(){const{isCloseDialogOpen:e}=this.state,{id:t}=this.props,s=Tt.get(t),i=Tt.activeTabId===t;if(!s||!s.session)return null;const a=null==s?void 0:s.isDirty,n=null==s?void 0:s.hasFilters;return x.createElement("div",{ref:this.container,"data-testid":"tab","data-test-active":i,"data-test-dirty":a||n,"data-test-preview":s.preview,className:S(Fo.container,{[Fo.active]:i,[Fo.preview]:s.preview}),onClick:this.handleClick,onDoubleClick:this.handleDoubleClick},s.session.isModelList&&x.createElement("div",{"data-testid":"new-tab-btn",className:Fo.modelListTabButton},x.createElement(ea,null)),s.session.isScript&&x.createElement(x.Fragment,null,x.createElement("div",{"data-testid":"title",className:Fo.title},s.title),x.createElement(ti,{"data-testid":"close-btn",className:S(Fo.closeButton,{[Fo.dirty]:a||n}),onClick:this.handleClose},a?x.createElement("div",{className:Fo.dirtyIndicator}):x.createElement(ea,null)),e&&x.createElement(Zo,{tabHasFilters:n,tabIsDirty:a,onCancel:this.handleCancelClose,onDiscard:this.handleDiscardChanges})),x.createElement(si,{keys:"mod+w",onMatch:()=>this.handleClose()}))}}var Uo=_(qo);var zo="_container_13n52_1";class $o extends x.Component{render(){return x.createElement("div",{"data-testid":"tab-bar",className:zo},Tt.openTabs.map((e=>x.createElement(Uo,{key:e.id,id:e.id}))))}}var Jo=_($o);var Wo="_container_1ud7d_1";var Ko=_((({className:e})=>x.createElement("div",{"data-testid":"header",className:S(Wo,e),style:{paddingLeft:32}},x.createElement(Jo,null),x.createElement(jo,null))));var Go={container:"_container_1xigg_1",content:"_content_1xigg_10",header:"_header_1xigg_20",title:"_title_1xigg_24",search:"_search_1xigg_30",section:"_section_1xigg_41",allModels:"_allModels_1xigg_45",sectionTitle:"_sectionTitle_1xigg_50",list:"_list_1xigg_55",model:"_model_1xigg_60",active:"_active_1xigg_66",spacer:"_spacer_1xigg_72",count:"_count_1xigg_75",empty:"_empty_1xigg_79"};class Qo extends x.PureComponent{constructor(){var e;super(...arguments),this.state={searchValue:"",highlightedSection:"recent",highlightedIdx:0},this.input=x.createRef(),this.recentModelRefs=((null==(e=Kt.activeProject)?void 0:e.recentModelIds)||[]).map((e=>x.createRef())),this.allModelRefs=Object.keys(as.values).map((e=>x.createRef())),this.filteredModelRefs=[],this.getRecentModels=()=>{var e;return(null==(e=Kt.activeProject)?void 0:e.recentModels)||[]},this.getAllModels=()=>c.exports.orderBy(Object.values(as.values),["name"]),this.getFilteredModels=e=>this.getAllModels().filter((t=>t.name.toLowerCase().includes(e.toLowerCase()))),this.scrollToHighlightedIdx=()=>{var e,t,s,i,a,n;const{highlightedSection:r,highlightedIdx:l}=this.state;"recent"===r?null==(t=null==(e=this.recentModelRefs[l])?void 0:e.current)||t.scrollIntoView({behavior:"smooth",block:"nearest"}):"all"===r?null==(i=null==(s=this.allModelRefs[l])?void 0:s.current)||i.scrollIntoView({behavior:"smooth",block:"nearest"}):"filtered"===r&&(null==(n=null==(a=this.filteredModelRefs[l])?void 0:a.current)||n.scrollIntoView({behavior:"smooth",block:"nearest"}))},this.handleSelectModel=e=>{var t;const s=as.get(e);if(!s)return;null==(t=Kt.activeProject)||t.addRecentModel(s.id);let i=Object.values(Tt.values).find((e=>{var t;return(null==(t=e.session)?void 0:t.isScript)&&e.session.script.model.id===s.id&&e.session.script.frozen}))||null;return i?(i.update({preview:!1}),void Tt.switch({id:i.id})):(i=Tt.previewTab,i?(i.load({modelId:s.id}),i.update({preview:!1}),void Tt.switch({id:i.id})):(i=Tt.add({modelId:s.id,preview:!1}),void Tt.switch({id:i.id})))},this.handleSelectHighlightedModel=()=>{var e,t,s;const{highlightedSection:i,highlightedIdx:a,searchValue:n}=this.state;"recent"===i?this.handleSelectModel(null==(e=this.getRecentModels()[a])?void 0:e.id):"all"===i?this.handleSelectModel(null==(t=this.getAllModels()[a])?void 0:t.id):"filtered"===i&&this.handleSelectModel(null==(s=this.getFilteredModels(n)[a])?void 0:s.id)},this.handleSearch=e=>{var t;this.filteredModelRefs=this.getFilteredModels(e).map((e=>x.createRef()));const s=(null==(t=Kt.activeProject)?void 0:t.recentModels)||[];""===e?this.setState({searchValue:e,highlightedSection:s.length>0?"recent":"all",highlightedIdx:0}):this.setState({searchValue:e,highlightedSection:"filtered",highlightedIdx:0})},this.handleHighlightPrev=()=>{this.setState((e=>{var t;let s=e.highlightedSection,i=e.highlightedIdx;if("recent"===e.highlightedSection)e.highlightedIdx-1<0||(i-=1);else if("all"===e.highlightedSection)if(e.highlightedIdx-1<0){const e=(null==(t=Kt.activeProject)?void 0:t.recentModels)||[];0===e.length||(s="recent",i=e.length-1)}else i-=1;else"filtered"===e.highlightedSection&&(e.highlightedIdx-1<0||(i-=1));return{highlightedSection:s,highlightedIdx:i}}),(()=>this.scrollToHighlightedIdx()))},this.handleHighlightNext=()=>{this.setState((e=>{var t;let s=e.highlightedSection,i=e.highlightedIdx;if("recent"===e.highlightedSection){const a=(null==(t=Kt.activeProject)?void 0:t.recentModels)||[];e.highlightedIdx+1>=a.length?(s="all",i=0):i+=1}else if("all"===e.highlightedSection){const t=Object.values(as.values);e.highlightedIdx+1>=t.length||(i+=1)}else if("filtered"===e.highlightedSection){const t=this.getFilteredModels(e.searchValue);e.highlightedIdx+1>=t.length||(i+=1)}return{highlightedSection:s,highlightedIdx:i}}),(()=>this.scrollToHighlightedIdx()))}}render(){var e;const{searchValue:t,highlightedSection:s,highlightedIdx:i}=this.state,a=(null==(e=Kt.activeProject)?void 0:e.recentModels)||[],n=this.getAllModels(),r=this.getFilteredModels(t);return x.createElement("div",{className:Go.container,"data-testid":"model-list-tab"},x.createElement("div",{className:Go.content},x.createElement("header",{className:Go.header},x.createElement("div",{className:Go.title},"Open a Model"),x.createElement(ai,{"data-testid":"model-list-search",innerRef:this.input,type:"text",className:Go.search,focusOnMount:!0,value:t,onChange:this.handleSearch,placeholder:"Search"})),a.length>0&&""===t&&x.createElement("section",{"data-testid":"recent-model-list",className:Go.section},x.createElement("div",{className:Go.sectionTitle},"Recently Opened"),x.createElement("ul",{className:Go.list},a.map(((e,t)=>x.createElement(Yo,{key:e.id,ref:this.recentModelRefs[t],name:e.name,count:e.count,isActive:"recent"===s&&i===t,onClick:()=>this.handleSelectModel(e.id)}))))),""===t&&x.createElement("section",{"data-testid":"model-list",className:S(Go.section,Go.allModels)},x.createElement("div",{className:Go.sectionTitle},"All Models"),x.createElement("ul",{className:Go.list},n.map(((e,t)=>x.createElement(Yo,{key:e.id,ref:this.allModelRefs[t],name:e.name,count:e.count,isActive:"all"===s&&i===t,onClick:()=>this.handleSelectModel(e.id)}))))),""!==t&&x.createElement("section",{"data-testid":"filtered-model-list",className:S(Go.section,Go.allModels)},x.createElement("div",{className:Go.sectionTitle},"Matches"),x.createElement("ul",{className:Go.list},r.map(((e,t)=>x.createElement(Yo,{key:e.id,ref:this.filteredModelRefs[t],name:e.name,count:e.count,isActive:"filtered"===s&&i===t,onClick:()=>{var t;this.handleSelectModel(e.id),null==(t=Tt.activeTab)||t.update({preview:!1})}})))),0===r.length&&x.createElement("div",{className:Go.empty},"No matches"))),x.createElement(si,{keys:["command+shift+[","command+option+right"],target:this.input,onMatch:()=>Tt.switch({direction:"right"})}),x.createElement(si,{keys:["command+shift+]","command+option+left"],target:this.input,onMatch:()=>Tt.switch({direction:"left"})}),x.createElement(si,{keys:"up",target:this.input,onMatch:()=>this.handleHighlightPrev()}),x.createElement(si,{keys:"down",target:this.input,onMatch:()=>this.handleHighlightNext()}),x.createElement(si,{keys:"enter",target:this.input,onMatch:()=>this.handleSelectHighlightedModel()}),x.createElement(si,{keys:"cmd+enter",target:this.input,onMatch:()=>this.handleSelectHighlightedModel()}))}}const Yo=N.exports.forwardRef((({name:e,count:t=0,isActive:s=!1,onClick:i},a)=>x.createElement("li",{ref:a,className:S(Go.model,{[Go.active]:s}),onClick:i},x.createElement("div",{"data-testid":"model-name",className:Go.name},e),x.createElement("div",{className:Go.spacer}),x.createElement("div",{"data-testid":"model-record-count",className:Go.count},null!=t?t:""))));var Xo=_(Qo);var ed="_container_dq66k_1",td="_header_dq66k_9",sd="_body_dq66k_14";class id extends x.PureComponent{constructor(){super(...arguments),this.state={error:!1}}componentDidCatch(e){us.update({type:"fatal",description:e.message,dump:e.stack||""}),ye.updateError({visible:!0}),F({path:"Studio.componentDidCatch",message:"Caught an error during rendering",nativeError:e})}static getDerivedStateFromError(e){return{error:!0,errorMessage:e.message}}render(){var e,t,s,i;const{error:a}=this.state;return a?x.createElement(ho,null):x.createElement("div",{className:ed},x.createElement(Ko,{className:td}),x.createElement("div",{className:sd},(null==(t=null==(e=Tt.activeTab)?void 0:e.session)?void 0:t.isScript)&&x.createElement(no,null),(null==(i=null==(s=Tt.activeTab)?void 0:s.session)?void 0:i.isModelList)&&x.createElement(Xo,null)),ye.error.visible&&"client"===us.type&&x.createElement(oo,null),ye.error.visible&&"fatal"===us.type&&x.createElement(ho,null),ye.error.visible&&"schemaDrift"===us.type&&x.createElement(uo,null))}}var ad=_(id);var nd="_container_1d62f_1",rd="_tab1_1d62f_11",ld="_tab2_1d62f_17",od="_tabEmptySpace_1d62f_22",dd="_filter1_1d62f_28",cd="_filter2_1d62f_29",hd="_filter3_1d62f_30",pd="_filter4_1d62f_31",ud="_separator_1d62f_55",md="_button1_1d62f_61",gd="_btnSpace_1d62f_69",vd="_table_1d62f_90";class fd extends x.PureComponent{render(){return x.createElement("div",{"data-testid":"skeleton",className:nd},x.createElement("div",{className:rd,style:{paddingLeft:32}}),x.createElement("div",{className:ld}),x.createElement("div",{className:od}),x.createElement("div",{className:dd}),x.createElement("div",{className:cd}),x.createElement("div",{className:hd}),x.createElement("div",{className:pd}),x.createElement("div",{className:ud}),x.createElement("div",{className:md}),x.createElement("div",{className:gd}," Getting things ready..."),x.createElement("div",{className:vd}))}}var yd=_(fd);var Id="_container_1w9ta_1";class Cd extends x.Component{constructor(){super(...arguments),this.state={isShortcutDialogOpen:!1}}async componentDidMount(){js.hasCheckedForUpdates||await js.check()}render(){const{isShortcutDialogOpen:e}=this.state;return x.createElement(x.Fragment,null,x.createElement("div",{className:S(Id,{"theme--light":"light"===Bt.theme,"theme--dark":"dark"===Bt.theme})},qs.ready&&Tt.activeTab?x.createElement(cl,{value:new ll({sessionId:Tt.activeTab.sessionId})},x.createElement(ad,null)):x.createElement(yd,null),x.createElement("div",{id:"modal-root"}),x.createElement("div",{id:"dropdown-root"}),x.createElement("div",{id:"dialog-root"})),x.createElement(si,{keys:"mod+/",onMatch:()=>this.setState((e=>({isShortcutDialogOpen:!e.isShortcutDialogOpen})))}),e&&x.createElement(No,{onClose:()=>this.setState({isShortcutDialogOpen:!1})}))}}var wd=_(Cd);window.databrowser=async function(e){await V.update(e),await qs.initTransport(),qs.init();const t=document.createElement("div");t.id="root",document.body.appendChild(t),R.render(x.createElement(wd),t)},window.splash=async function(e){await V.update(e),await qs.initTransport();const t=document.createElement("div");t.id="root",document.body.appendChild(t),R.render(x.createElement(Ii),t)}; diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff b/mcp-server/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff deleted file mode 100644 index 2fc4f3d..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff b/mcp-server/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff deleted file mode 100644 index 125fe1a..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 deleted file mode 100644 index 9b199df..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 deleted file mode 100644 index ecdbc38..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 deleted file mode 100644 index 0a28013..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 deleted file mode 100644 index 27e3db5..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 deleted file mode 100644 index 3d2f76d..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 deleted file mode 100644 index c7c4677..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 deleted file mode 100644 index 2133c2a..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 deleted file mode 100644 index fe5f44b..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 deleted file mode 100644 index b5db446..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 deleted file mode 100644 index 924ae72..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 deleted file mode 100644 index ef110cb..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 deleted file mode 100644 index 67c318e..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 b/mcp-server/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 deleted file mode 100644 index 38a5910..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff b/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff deleted file mode 100644 index 3ac25e3..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 b/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 deleted file mode 100644 index ec297c5..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 b/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 deleted file mode 100644 index 84d1c99..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 b/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 deleted file mode 100644 index 37c99bf..0000000 Binary files a/mcp-server/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 and /dev/null differ diff --git a/mcp-server/node_modules/prisma/build/public/assets/logotype.a960b169.svg b/mcp-server/node_modules/prisma/build/public/assets/logotype.a960b169.svg deleted file mode 100644 index 7c65c04..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/logotype.a960b169.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/number.85ddf96b.svg b/mcp-server/node_modules/prisma/build/public/assets/number.85ddf96b.svg deleted file mode 100644 index 63b2359..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/number.85ddf96b.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/object.0ba944a6.svg b/mcp-server/node_modules/prisma/build/public/assets/object.0ba944a6.svg deleted file mode 100644 index c356985..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/object.0ba944a6.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/play.8811691e.svg b/mcp-server/node_modules/prisma/build/public/assets/play.8811691e.svg deleted file mode 100644 index ded6cd4..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/play.8811691e.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg b/mcp-server/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg deleted file mode 100644 index 164f96e..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg b/mcp-server/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg deleted file mode 100644 index 2e7e0fa..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/search.2ed766ce.svg b/mcp-server/node_modules/prisma/build/public/assets/search.2ed766ce.svg deleted file mode 100644 index 724b384..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/search.2ed766ce.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/settings.5ad25af2.svg b/mcp-server/node_modules/prisma/build/public/assets/settings.5ad25af2.svg deleted file mode 100644 index c80509b..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/mcp-server/node_modules/prisma/build/public/assets/string.ea615a24.svg b/mcp-server/node_modules/prisma/build/public/assets/string.ea615a24.svg deleted file mode 100644 index 69e8115..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/string.ea615a24.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg b/mcp-server/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg deleted file mode 100644 index 590f76d..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg b/mcp-server/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg deleted file mode 100644 index 22012b4..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/mcp-server/node_modules/prisma/build/public/assets/vendor.js b/mcp-server/node_modules/prisma/build/public/assets/vendor.js deleted file mode 100644 index c963444..0000000 --- a/mcp-server/node_modules/prisma/build/public/assets/vendor.js +++ /dev/null @@ -1,385 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,o,n)=>o in t?e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={exports:{}},u={},p=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function h(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var f=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var o,n,r=h(e),i=1;iB.length&&B.push(e)}function z(e,t,o,n){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var i=!1;if(null===e)i=!0;else switch(r){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case v:case m:i=!0}}if(i)return o(n,e,""===t?"."+K(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s=w},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125>>1,r=e[n];if(!(void 0!==r&&0<_(r,t)))break e;e[n]=t,e[o]=r,o=n}}function O(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var o=e.pop();if(o!==t){e[0]=o;e:for(var n=0,r=e.length;n_(s,o))void 0!==l&&0>_(l,s)?(e[n]=l,e[a]=o,n=a):(e[n]=s,e[i]=o,n=i);else{if(!(void 0!==l&&0>_(l,o)))break e;e[n]=l,e[a]=o,n=a}}}return t}return null}function _(e,t){var o=e.sortIndex-t.sortIndex;return 0!==o?o:e.id-t.id}var T=[],D=[],P=1,A=null,N=3,x=!1,F=!1,I=!1;function L(e){for(var t=O(D);null!==t;){if(null===t.callback)S(D);else{if(!(t.startTime<=e))break;S(D),t.sortIndex=t.expirationTime,R(T,t)}t=O(D)}}function M(e){if(I=!1,L(e),!F)if(null!==O(T))F=!0,t(G);else{var n=O(D);null!==n&&o(M,n.startTime-e)}}function G(t,i){F=!1,I&&(I=!1,n()),x=!0;var s=N;try{for(L(i),A=O(T);null!==A&&(!(A.expirationTime>i)||t&&!r());){var a=A.callback;if(null!==a){A.callback=null,N=A.priorityLevel;var l=a(A.expirationTime<=i);i=e.unstable_now(),"function"==typeof l?A.callback=l:A===O(T)&&S(T),L(i)}else S(T);A=O(T)}if(null!==A)var u=!0;else{var p=O(D);null!==p&&o(M,p.startTime-i),u=!1}return u}finally{A=null,N=s,x=!1}}function k(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){F||x||(F=!0,t(G))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return O(T)},e.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var o=N;N=t;try{return e()}finally{N=o}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=V,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var o=N;N=e;try{return t()}finally{N=o}},e.unstable_scheduleCallback=function(r,i,s){var a=e.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0a?(r.sortIndex=l,R(D,r),null===O(T)&&r===O(D)&&(I?n():I=!0,o(M,l-a))):(r.sortIndex=s,R(T,r),F||x||(F=!0,t(G))),r},e.unstable_shouldYield=function(){var t=e.unstable_now();L(t);var o=O(T);return o!==A&&null!==A&&null!==o&&null!==o.callback&&o.startTime<=t&&o.expirationTime